@atomm-developer/generator-sdk 1.0.3
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/README.md +453 -0
- package/dist/index-qYdFih-w.js +81234 -0
- package/dist/index-wW-kUlHs.js +245 -0
- package/dist/index.d.ts +672 -0
- package/dist/index.es.js +7 -0
- package/dist/index.umd.js +20 -0
- package/package.json +57 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).GeneratorSDK=t()}(this,function(){"use strict";var e,t=Object.defineProperty,r=(e,r,n)=>((e,r,n)=>r in e?t(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n)(e,"symbol"!=typeof r?r+"":r,n);function n(e,t){return function(){return e.apply(t,arguments)}}const{toString:i}=Object.prototype,{getPrototypeOf:o}=Object,{iterator:s,toStringTag:a}=Symbol,l=(e=>t=>{const r=i.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),c=e=>(e=e.toLowerCase(),t=>l(t)===e),u=e=>t=>typeof t===e,{isArray:p}=Array,d=u("undefined");function m(e){return null!==e&&!d(e)&&null!==e.constructor&&!d(e.constructor)&&y(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const f=c("ArrayBuffer");const h=u("string"),y=u("function"),g=u("number"),b=e=>null!==e&&"object"==typeof e,v=e=>{if("object"!==l(e))return!1;const t=o(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||a in e||s in e)},x=c("Date"),w=c("File"),S=c("Blob"),N=c("FileList");const j="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},E=void 0!==j.FormData?j.FormData:void 0,C=c("URLSearchParams"),[k,T,R,O]=["ReadableStream","Request","Response","Headers"].map(c);function P(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let n,i;if("object"!=typeof e&&(e=[e]),p(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{if(m(e))return;const i=r?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let s;for(n=0;n<o;n++)s=i[n],t.call(null,e[s],s,e)}}function _(e,t){if(m(e))return null;t=t.toLowerCase();const r=Object.keys(e);let n,i=r.length;for(;i-- >0;)if(n=r[i],t===n.toLowerCase())return n;return null}const A="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,I=e=>!d(e)&&e!==A;const M=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&o(Uint8Array)),D=c("HTMLFormElement"),z=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),B=c("RegExp"),L=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};P(r,(r,i)=>{let o;!1!==(o=t(r,i,e))&&(n[i]=o||r)}),Object.defineProperties(e,n)};const q=c("AsyncFunction"),U=(H="function"==typeof setImmediate,F=y(A.postMessage),H?setImmediate:F?($=`axios@${Math.random()}`,V=[],A.addEventListener("message",({source:e,data:t})=>{e===A&&t===$&&V.length&&V.shift()()},!1),e=>{V.push(e),A.postMessage($,"*")}):e=>setTimeout(e));var H,F,$,V;const G="undefined"!=typeof queueMicrotask?queueMicrotask.bind(A):"undefined"!=typeof process&&process.nextTick||U,W={isArray:p,isArrayBuffer:f,isBuffer:m,isFormData:e=>{let t;return e&&(E&&e instanceof E||y(e.append)&&("formdata"===(t=l(e))||"object"===t&&y(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&f(e.buffer),t},isString:h,isNumber:g,isBoolean:e=>!0===e||!1===e,isObject:b,isPlainObject:v,isEmptyObject:e=>{if(!b(e)||m(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(t){return!1}},isReadableStream:k,isRequest:T,isResponse:R,isHeaders:O,isUndefined:d,isDate:x,isFile:w,isReactNativeBlob:e=>!(!e||void 0===e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:S,isRegExp:B,isFunction:y,isStream:e=>b(e)&&y(e.pipe),isURLSearchParams:C,isTypedArray:M,isFileList:N,forEach:P,merge:function e(){const{caseless:t,skipUndefined:r}=I(this)&&this||{},n={},i=(i,o)=>{if("__proto__"===o||"constructor"===o||"prototype"===o)return;const s=t&&_(n,o)||o;v(n[s])&&v(i)?n[s]=e(n[s],i):v(i)?n[s]=e({},i):p(i)?n[s]=i.slice():r&&d(i)||(n[s]=i)};for(let o=0,s=arguments.length;o<s;o++)arguments[o]&&P(arguments[o],i);return n},extend:(e,t,r,{allOwnKeys:i}={})=>(P(t,(t,i)=>{r&&y(t)?Object.defineProperty(e,i,{value:n(t,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,i,{value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:i}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let i,s,a;const l={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),s=i.length;s-- >0;)a=i[s],n&&!n(a,e,t)||l[a]||(t[a]=e[a],l[a]=!0);e=!1!==r&&o(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:l,kindOfTest:c,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return-1!==n&&n===r},toArray:e=>{if(!e)return null;if(p(e))return e;let t=e.length;if(!g(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[s]).call(e);let n;for(;(n=r.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:D,hasOwnProperty:z,hasOwnProp:z,reduceDescriptors:L,freezeMethods:e=>{L(e,(t,r)=>{if(y(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];y(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))})},toObjectSet:(e,t)=>{const r={},n=e=>{e.forEach(e=>{r[e]=!0})};return p(e)?n(e):n(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:_,global:A,isContextDefined:I,isSpecCompliantForm:function(e){return!!(e&&y(e.append)&&"FormData"===e[a]&&e[s])},toJSONObject:e=>{const t=new Array(10),r=(e,n)=>{if(b(e)){if(t.indexOf(e)>=0)return;if(m(e))return e;if(!("toJSON"in e)){t[n]=e;const i=p(e)?[]:{};return P(e,(e,t)=>{const o=r(e,n+1);!d(o)&&(i[t]=o)}),t[n]=void 0,i}}return e};return r(e,0)},isAsyncFn:q,isThenable:e=>e&&(b(e)||y(e))&&y(e.then)&&y(e.catch),setImmediate:U,asap:G,isIterable:e=>null!=e&&y(e[s])};let K=class e extends Error{static from(t,r,n,i,o,s){const a=new e(t.message,r||t.code,n,i,o);return a.cause=t,a.name=t.name,null!=t.status&&null==a.status&&(a.status=t.status),s&&Object.assign(a,s),a}constructor(e,t,r,n,i){super(e),Object.defineProperty(this,"message",{value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i,this.status=i.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:W.toJSONObject(this.config),code:this.code,status:this.status}}};K.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",K.ERR_BAD_OPTION="ERR_BAD_OPTION",K.ECONNABORTED="ECONNABORTED",K.ETIMEDOUT="ETIMEDOUT",K.ERR_NETWORK="ERR_NETWORK",K.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",K.ERR_DEPRECATED="ERR_DEPRECATED",K.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",K.ERR_BAD_REQUEST="ERR_BAD_REQUEST",K.ERR_CANCELED="ERR_CANCELED",K.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",K.ERR_INVALID_URL="ERR_INVALID_URL";function X(e){return W.isPlainObject(e)||W.isArray(e)}function Q(e){return W.endsWith(e,"[]")?e.slice(0,-2):e}function Y(e,t,r){return e?e.concat(t).map(function(e,t){return e=Q(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}const J=W.toFlatObject(W,{},null,function(e){return/^is[A-Z]/.test(e)});function Z(e,t,r){if(!W.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(r=W.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!W.isUndefined(t[e])})).metaTokens,i=r.visitor||c,o=r.dots,s=r.indexes,a=(r.Blob||"undefined"!=typeof Blob&&Blob)&&W.isSpecCompliantForm(t);if(!W.isFunction(i))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(W.isDate(e))return e.toISOString();if(W.isBoolean(e))return e.toString();if(!a&&W.isBlob(e))throw new K("Blob is not supported. Use a Buffer instead.");return W.isArrayBuffer(e)||W.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,r,i){let a=e;if(W.isReactNative(t)&&W.isReactNativeBlob(e))return t.append(Y(i,r,o),l(e)),!1;if(e&&!i&&"object"==typeof e)if(W.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(W.isArray(e)&&function(e){return W.isArray(e)&&!e.some(X)}(e)||(W.isFileList(e)||W.endsWith(r,"[]"))&&(a=W.toArray(e)))return r=Q(r),a.forEach(function(e,n){!W.isUndefined(e)&&null!==e&&t.append(!0===s?Y([r],n,o):null===s?r:r+"[]",l(e))}),!1;return!!X(e)||(t.append(Y(i,r,o),l(e)),!1)}const u=[],p=Object.assign(J,{defaultVisitor:c,convertValue:l,isVisitable:X});if(!W.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!W.isUndefined(r)){if(-1!==u.indexOf(r))throw Error("Circular reference detected in "+n.join("."));u.push(r),W.forEach(r,function(r,o){!0===(!(W.isUndefined(r)||null===r)&&i.call(t,r,W.isString(o)?o.trim():o,n,p))&&e(r,n?n.concat(o):[o])}),u.pop()}}(e),t}function ee(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function te(e,t){this._pairs=[],e&&Z(e,this,t)}const re=te.prototype;function ne(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function ie(e,t,r){if(!t)return e;const n=r&&r.encode||ne,i=W.isFunction(r)?{serialize:r}:r,o=i&&i.serialize;let s;if(s=o?o(t,i):W.isURLSearchParams(t)?t.toString():new te(t,i).toString(n),s){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+s}return e}re.append=function(e,t){this._pairs.push([e,t])},re.toString=function(e){const t=e?function(t){return e.call(this,t,ee)}:ee;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class oe{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){W.forEach(this.handlers,function(t){null!==t&&e(t)})}}const se={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},ae={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:te,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},le="undefined"!=typeof window&&"undefined"!=typeof document,ce="object"==typeof navigator&&navigator||void 0,ue=le&&(!ce||["ReactNative","NativeScript","NS"].indexOf(ce.product)<0),pe="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,de=le&&window.location.href||"http://localhost",me={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:le,hasStandardBrowserEnv:ue,hasStandardBrowserWebWorkerEnv:pe,navigator:ce,origin:de},Symbol.toStringTag,{value:"Module"})),...ae};function fe(e){function t(e,r,n,i){let o=e[i++];if("__proto__"===o)return!0;const s=Number.isFinite(+o),a=i>=e.length;if(o=!o&&W.isArray(n)?n.length:o,a)return W.hasOwnProp(n,o)?n[o]=[n[o],r]:n[o]=r,!s;n[o]&&W.isObject(n[o])||(n[o]=[]);return t(e,r,n[o],i)&&W.isArray(n[o])&&(n[o]=function(e){const t={},r=Object.keys(e);let n;const i=r.length;let o;for(n=0;n<i;n++)o=r[n],t[o]=e[o];return t}(n[o])),!s}if(W.isFormData(e)&&W.isFunction(e.entries)){const r={};return W.forEachEntry(e,(e,n)=>{t(function(e){return W.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),n,r,0)}),r}return null}const he={transitional:se,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,i=W.isObject(e);i&&W.isHTMLForm(e)&&(e=new FormData(e));if(W.isFormData(e))return n?JSON.stringify(fe(e)):e;if(W.isArrayBuffer(e)||W.isBuffer(e)||W.isStream(e)||W.isFile(e)||W.isBlob(e)||W.isReadableStream(e))return e;if(W.isArrayBufferView(e))return e.buffer;if(W.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Z(e,new me.classes.URLSearchParams,{visitor:function(e,t,r,n){return me.isNode&&W.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((o=W.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Z(o?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||n?(t.setContentType("application/json",!1),function(e,t,r){if(W.isString(e))try{return(t||JSON.parse)(e),W.trim(e)}catch(n){if("SyntaxError"!==n.name)throw n}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||he.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(W.isResponse(e)||W.isReadableStream(e))return e;if(e&&W.isString(e)&&(r&&!this.responseType||n)){const r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e,this.parseReviver)}catch(i){if(r){if("SyntaxError"===i.name)throw K.from(i,K.ERR_BAD_RESPONSE,this,null,this.response);throw i}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:me.classes.FormData,Blob:me.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};W.forEach(["delete","get","head","post","put","patch"],e=>{he.headers[e]={}});const ye=W.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ge=Symbol("internals");function be(e){return e&&String(e).trim().toLowerCase()}function ve(e){return!1===e||null==e?e:W.isArray(e)?e.map(ve):String(e)}function xe(e,t,r,n,i){return W.isFunction(n)?n.call(this,t,r):(i&&(t=r),W.isString(t)?W.isString(n)?-1!==t.indexOf(n):W.isRegExp(n)?n.test(t):void 0:void 0)}let we=class{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function i(e,t,r){const i=be(t);if(!i)throw new Error("header name must be a non-empty string");const o=W.findKey(n,i);(!o||void 0===n[o]||!0===r||void 0===r&&!1!==n[o])&&(n[o||t]=ve(e))}const o=(e,t)=>W.forEach(e,(e,r)=>i(e,r,t));if(W.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(W.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))o((e=>{const t={};let r,n,i;return e&&e.split("\n").forEach(function(e){i=e.indexOf(":"),r=e.substring(0,i).trim().toLowerCase(),n=e.substring(i+1).trim(),!r||t[r]&&ye[r]||("set-cookie"===r?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t})(e),t);else if(W.isObject(e)&&W.isIterable(e)){let r,n,i={};for(const t of e){if(!W.isArray(t))throw TypeError("Object iterator must return a key-value pair");i[n=t[0]]=(r=i[n])?W.isArray(r)?[...r,t[1]]:[r,t[1]]:t[1]}o(i,t)}else null!=e&&i(t,e,r);return this}get(e,t){if(e=be(e)){const r=W.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}(e);if(W.isFunction(t))return t.call(this,e,r);if(W.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=be(e)){const r=W.findKey(this,e);return!(!r||void 0===this[r]||t&&!xe(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function i(e){if(e=be(e)){const i=W.findKey(r,e);!i||t&&!xe(0,r[i],i,t)||(delete r[i],n=!0)}}return W.isArray(e)?e.forEach(i):i(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const i=t[r];e&&!xe(0,this[i],i,e,!0)||(delete this[i],n=!0)}return n}normalize(e){const t=this,r={};return W.forEach(this,(n,i)=>{const o=W.findKey(r,i);if(o)return t[o]=ve(n),void delete t[i];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r)}(i):String(i).trim();s!==i&&delete t[i],t[s]=ve(n),r[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return W.forEach(this,(r,n)=>{null!=r&&!1!==r&&(t[n]=e&&W.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){const t=(this[ge]=this[ge]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=be(e);t[n]||(!function(e,t){const r=W.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(e,r,i){return this[n].call(this,t,e,r,i)},configurable:!0})})}(r,e),t[n]=!0)}return W.isArray(e)?e.forEach(n):n(e),this}};function Se(e,t){const r=this||he,n=t||r,i=we.from(n.headers);let o=n.data;return W.forEach(e,function(e){o=e.call(r,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function Ne(e){return!(!e||!e.__CANCEL__)}we.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),W.reduceDescriptors(we.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),W.freezeMethods(we);let je=class extends K{constructor(e,t,r){super(null==e?"canceled":e,K.ERR_CANCELED,t,r),this.name="CanceledError",this.__CANCEL__=!0}};function Ee(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new K("Request failed with status code "+r.status,[K.ERR_BAD_REQUEST,K.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}const Ce=(e,t,r=3)=>{let n=0;const i=function(e,t){e=e||10;const r=new Array(e),n=new Array(e);let i,o=0,s=0;return t=void 0!==t?t:1e3,function(a){const l=Date.now(),c=n[s];i||(i=l),r[o]=a,n[o]=l;let u=s,p=0;for(;u!==o;)p+=r[u++],u%=e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),l-i<t)return;const d=c&&l-c;return d?Math.round(1e3*p/d):void 0}}(50,250);return function(e,t){let r,n,i=0,o=1e3/t;const s=(t,o=Date.now())=>{i=o,r=null,n&&(clearTimeout(n),n=null),e(...t)};return[(...e)=>{const t=Date.now(),a=t-i;a>=o?s(e,t):(r=e,n||(n=setTimeout(()=>{n=null,s(r)},o-a)))},()=>r&&s(r)]}(r=>{const o=r.loaded,s=r.lengthComputable?r.total:void 0,a=o-n,l=i(a);n=o;e({loaded:o,total:s,progress:s?o/s:void 0,bytes:a,rate:l||void 0,estimated:l&&s&&o<=s?(s-o)/l:void 0,event:r,lengthComputable:null!=s,[t?"download":"upload"]:!0})},r)},ke=(e,t)=>{const r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Te=e=>(...t)=>W.asap(()=>e(...t)),Re=me.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,me.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(me.origin),me.navigator&&/(msie|trident)/i.test(me.navigator.userAgent)):()=>!0,Oe=me.hasStandardBrowserEnv?{write(e,t,r,n,i,o,s){if("undefined"==typeof document)return;const a=[`${e}=${encodeURIComponent(t)}`];W.isNumber(r)&&a.push(`expires=${new Date(r).toUTCString()}`),W.isString(n)&&a.push(`path=${n}`),W.isString(i)&&a.push(`domain=${i}`),!0===o&&a.push("secure"),W.isString(s)&&a.push(`SameSite=${s}`),document.cookie=a.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function Pe(e,t,r){let n=!("string"==typeof(i=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(i));var i;return e&&(n||0==r)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const _e=e=>e instanceof we?{...e}:e;function Ae(e,t){t=t||{};const r={};function n(e,t,r,n){return W.isPlainObject(e)&&W.isPlainObject(t)?W.merge.call({caseless:n},e,t):W.isPlainObject(t)?W.merge({},t):W.isArray(t)?t.slice():t}function i(e,t,r,i){return W.isUndefined(t)?W.isUndefined(e)?void 0:n(void 0,e,0,i):n(e,t,0,i)}function o(e,t){if(!W.isUndefined(t))return n(void 0,t)}function s(e,t){return W.isUndefined(t)?W.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function a(r,i,o){return o in t?n(r,i):o in e?n(void 0,r):void 0}const l={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(e,t,r)=>i(_e(e),_e(t),0,!0)};return W.forEach(Object.keys({...e,...t}),function(n){if("__proto__"===n||"constructor"===n||"prototype"===n)return;const o=W.hasOwnProp(l,n)?l[n]:i,s=o(e[n],t[n],n);W.isUndefined(s)&&o!==a||(r[n]=s)}),r}const Ie=e=>{const t=Ae({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:o,headers:s,auth:a}=t;if(t.headers=s=we.from(s),t.url=ie(Pe(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),W.isFormData(r))if(me.hasStandardBrowserEnv||me.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(W.isFunction(r.getHeaders)){const e=r.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,r])=>{t.includes(e.toLowerCase())&&s.set(e,r)})}if(me.hasStandardBrowserEnv&&(n&&W.isFunction(n)&&(n=n(t)),n||!1!==n&&Re(t.url))){const e=i&&o&&Oe.read(o);e&&s.set(i,e)}return t},Me="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,r){const n=Ie(e);let i=n.data;const o=we.from(n.headers).normalize();let s,a,l,c,u,{responseType:p,onUploadProgress:d,onDownloadProgress:m}=n;function f(){c&&c(),u&&u(),n.cancelToken&&n.cancelToken.unsubscribe(s),n.signal&&n.signal.removeEventListener("abort",s)}let h=new XMLHttpRequest;function y(){if(!h)return;const n=we.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders());Ee(function(e){t(e),f()},function(e){r(e),f()},{data:p&&"text"!==p&&"json"!==p?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:n,config:e,request:h}),h=null}h.open(n.method.toUpperCase(),n.url,!0),h.timeout=n.timeout,"onloadend"in h?h.onloadend=y:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(y)},h.onabort=function(){h&&(r(new K("Request aborted",K.ECONNABORTED,e,h)),h=null)},h.onerror=function(t){const n=t&&t.message?t.message:"Network Error",i=new K(n,K.ERR_NETWORK,e,h);i.event=t||null,r(i),h=null},h.ontimeout=function(){let t=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const i=n.transitional||se;n.timeoutErrorMessage&&(t=n.timeoutErrorMessage),r(new K(t,i.clarifyTimeoutError?K.ETIMEDOUT:K.ECONNABORTED,e,h)),h=null},void 0===i&&o.setContentType(null),"setRequestHeader"in h&&W.forEach(o.toJSON(),function(e,t){h.setRequestHeader(t,e)}),W.isUndefined(n.withCredentials)||(h.withCredentials=!!n.withCredentials),p&&"json"!==p&&(h.responseType=n.responseType),m&&([l,u]=Ce(m,!0),h.addEventListener("progress",l)),d&&h.upload&&([a,c]=Ce(d),h.upload.addEventListener("progress",a),h.upload.addEventListener("loadend",c)),(n.cancelToken||n.signal)&&(s=t=>{h&&(r(!t||t.type?new je(null,e,h):t),h.abort(),h=null)},n.cancelToken&&n.cancelToken.subscribe(s),n.signal&&(n.signal.aborted?s():n.signal.addEventListener("abort",s)));const g=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(n.url);g&&-1===me.protocols.indexOf(g)?r(new K("Unsupported protocol "+g+":",K.ERR_BAD_REQUEST,e)):h.send(i||null)})},De=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let r,n=new AbortController;const i=function(e){if(!r){r=!0,s();const t=e instanceof Error?e:this.reason;n.abort(t instanceof K?t:new je(t instanceof Error?t.message:t))}};let o=t&&setTimeout(()=>{o=null,i(new K(`timeout of ${t}ms exceeded`,K.ETIMEDOUT))},t);const s=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)}),e=null)};e.forEach(e=>e.addEventListener("abort",i));const{signal:a}=n;return a.unsubscribe=()=>W.asap(s),a}},ze=function*(e,t){let r=e.byteLength;if(r<t)return void(yield e);let n,i=0;for(;i<r;)n=i+t,yield e.slice(i,n),i=n},Be=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}},Le=(e,t,r,n)=>{const i=async function*(e,t){for await(const r of Be(e))yield*ze(r,t)}(e,t);let o,s=0,a=e=>{o||(o=!0,n&&n(e))};return new ReadableStream({async pull(e){try{const{done:t,value:n}=await i.next();if(t)return a(),void e.close();let o=n.byteLength;if(r){let e=s+=o;r(e)}e.enqueue(new Uint8Array(n))}catch(t){throw a(t),t}},cancel:e=>(a(e),i.return())},{highWaterMark:2})},{isFunction:qe}=W,Ue=(({Request:e,Response:t})=>({Request:e,Response:t}))(W.global),{ReadableStream:He,TextEncoder:Fe}=W.global,$e=(e,...t)=>{try{return!!e(...t)}catch(r){return!1}},Ve=e=>{e=W.merge.call({skipUndefined:!0},Ue,e);const{fetch:t,Request:r,Response:n}=e,i=t?qe(t):"function"==typeof fetch,o=qe(r),s=qe(n);if(!i)return!1;const a=i&&qe(He),l=i&&("function"==typeof Fe?(e=>t=>e.encode(t))(new Fe):async e=>new Uint8Array(await new r(e).arrayBuffer())),c=o&&a&&$e(()=>{let e=!1;const t=new r(me.origin,{body:new He,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),u=s&&a&&$e(()=>W.isReadableStream(new n("").body)),p={stream:u&&(e=>e.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!p[e]&&(p[e]=(t,r)=>{let n=t&&t[e];if(n)return n.call(t);throw new K(`Response type '${e}' is not supported`,K.ERR_NOT_SUPPORT,r)})});const d=async(e,t)=>{const n=W.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(W.isBlob(e))return e.size;if(W.isSpecCompliantForm(e)){const t=new r(me.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return W.isArrayBufferView(e)||W.isArrayBuffer(e)?e.byteLength:(W.isURLSearchParams(e)&&(e+=""),W.isString(e)?(await l(e)).byteLength:void 0)})(t):n};return async e=>{let{url:i,method:s,data:a,signal:l,cancelToken:m,timeout:f,onDownloadProgress:h,onUploadProgress:y,responseType:g,headers:b,withCredentials:v="same-origin",fetchOptions:x}=Ie(e),w=t||fetch;g=g?(g+"").toLowerCase():"text";let S=De([l,m&&m.toAbortSignal()],f),N=null;const j=S&&S.unsubscribe&&(()=>{S.unsubscribe()});let E;try{if(y&&c&&"get"!==s&&"head"!==s&&0!==(E=await d(b,a))){let e,t=new r(i,{method:"POST",body:a,duplex:"half"});if(W.isFormData(a)&&(e=t.headers.get("content-type"))&&b.setContentType(e),t.body){const[e,r]=ke(E,Ce(Te(y)));a=Le(t.body,65536,e,r)}}W.isString(v)||(v=v?"include":"omit");const t=o&&"credentials"in r.prototype,l={...x,signal:S,method:s.toUpperCase(),headers:b.normalize().toJSON(),body:a,duplex:"half",credentials:t?v:void 0};N=o&&new r(i,l);let m=await(o?w(N,x):w(i,l));const f=u&&("stream"===g||"response"===g);if(u&&(h||f&&j)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=m[t]});const t=W.toFiniteNumber(m.headers.get("content-length")),[r,i]=h&&ke(t,Ce(Te(h),!0))||[];m=new n(Le(m.body,65536,r,()=>{i&&i(),j&&j()}),e)}g=g||"text";let C=await p[W.findKey(p,g)||"text"](m,e);return!f&&j&&j(),await new Promise((t,r)=>{Ee(t,r,{data:C,headers:we.from(m.headers),status:m.status,statusText:m.statusText,config:e,request:N})})}catch(C){if(j&&j(),C&&"TypeError"===C.name&&/Load failed|fetch/i.test(C.message))throw Object.assign(new K("Network Error",K.ERR_NETWORK,e,N,C&&C.response),{cause:C.cause||C});throw K.from(C,C&&C.code,e,N,C&&C.response)}}},Ge=new Map,We=e=>{let t=e&&e.env||{};const{fetch:r,Request:n,Response:i}=t,o=[n,i,r];let s,a,l=o.length,c=Ge;for(;l--;)s=o[l],a=c.get(s),void 0===a&&c.set(s,a=l?new Map:Ve(t)),c=a;return a};We();const Ke={http:null,xhr:Me,fetch:{get:We}};W.forEach(Ke,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(r){}Object.defineProperty(e,"adapterName",{value:t})}});const Xe=e=>`- ${e}`,Qe=e=>W.isFunction(e)||null===e||!1===e;const Ye={getAdapter:function(e,t){e=W.isArray(e)?e:[e];const{length:r}=e;let n,i;const o={};for(let s=0;s<r;s++){let r;if(n=e[s],i=n,!Qe(n)&&(i=Ke[(r=String(n)).toLowerCase()],void 0===i))throw new K(`Unknown adapter '${r}'`);if(i&&(W.isFunction(i)||(i=i.get(t))))break;o[r||"#"+s]=i}if(!i){const e=Object.entries(o).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let t=r?e.length>1?"since :\n"+e.map(Xe).join("\n"):" "+Xe(e[0]):"as no adapter specified";throw new K("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return i},adapters:Ke};function Je(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new je(null,e)}function Ze(e){Je(e),e.headers=we.from(e.headers),e.data=Se.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Ye.getAdapter(e.adapter||he.adapter,e)(e).then(function(t){return Je(e),t.data=Se.call(e,e.transformResponse,t),t.headers=we.from(t.headers),t},function(t){return Ne(t)||(Je(e),t&&t.response&&(t.response.data=Se.call(e,e.transformResponse,t.response),t.response.headers=we.from(t.response.headers))),Promise.reject(t)})}const et="1.13.6",tt={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{tt[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const rt={};tt.transitional=function(e,t,r){return(n,i,o)=>{if(!1===e)throw new K(function(e,t){return"[Axios v"+et+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}(i," has been removed"+(t?" in "+t:"")),K.ERR_DEPRECATED);return t&&!rt[i]&&(rt[i]=!0),!e||e(n,i,o)}},tt.spelling=function(e){return(e,t)=>!0};const nt={assertOptions:function(e,t,r){if("object"!=typeof e)throw new K("options must be an object",K.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const o=n[i],s=t[o];if(s){const t=e[o],r=void 0===t||s(t,o,e);if(!0!==r)throw new K("option "+o+" must be "+r,K.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new K("Unknown option "+o,K.ERR_BAD_OPTION)}},validators:tt},it=nt.validators;let ot=class{constructor(e){this.defaults=e||{},this.interceptors={request:new oe,response:new oe}}async request(e,t){try{return await this._request(e,t)}catch(r){if(r instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{r.stack?t&&!String(r.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(r.stack+="\n"+t):r.stack=t}catch(n){}}throw r}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Ae(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:i}=t;void 0!==r&&nt.assertOptions(r,{silentJSONParsing:it.transitional(it.boolean),forcedJSONParsing:it.transitional(it.boolean),clarifyTimeoutError:it.transitional(it.boolean),legacyInterceptorReqResOrdering:it.transitional(it.boolean)},!1),null!=n&&(W.isFunction(n)?t.paramsSerializer={serialize:n}:nt.assertOptions(n,{encode:it.function,serialize:it.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),nt.assertOptions(t,{baseUrl:it.spelling("baseURL"),withXsrfToken:it.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=i&&W.merge(i.common,i[t.method]);i&&W.forEach(["delete","get","head","post","put","patch","common"],e=>{delete i[e]}),t.headers=we.concat(o,i);const s=[];let a=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;a=a&&e.synchronous;const r=t.transitional||se;r&&r.legacyInterceptorReqResOrdering?s.unshift(e.fulfilled,e.rejected):s.push(e.fulfilled,e.rejected)});const l=[];let c;this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)});let u,p=0;if(!a){const e=[Ze.bind(this),void 0];for(e.unshift(...s),e.push(...l),u=e.length,c=Promise.resolve(t);p<u;)c=c.then(e[p++],e[p++]);return c}u=s.length;let d=t;for(;p<u;){const e=s[p++],t=s[p++];try{d=e(d)}catch(m){t.call(this,m);break}}try{c=Ze.call(this,d)}catch(m){return Promise.reject(m)}for(p=0,u=l.length;p<u;)c=c.then(l[p++],l[p++]);return c}getUri(e){return ie(Pe((e=Ae(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};W.forEach(["delete","get","head","options"],function(e){ot.prototype[e]=function(t,r){return this.request(Ae(r||{},{method:e,url:t,data:(r||{}).data}))}}),W.forEach(["post","put","patch"],function(e){function t(t){return function(r,n,i){return this.request(Ae(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}ot.prototype[e]=t(),ot.prototype[e+"Form"]=t(!0)});const st={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(st).forEach(([e,t])=>{st[t]=e});const at=function e(t){const r=new ot(t),i=n(ot.prototype.request,r);return W.extend(i,ot.prototype,r,{allOwnKeys:!0}),W.extend(i,r,null,{allOwnKeys:!0}),i.create=function(r){return e(Ae(t,r))},i}(he);at.Axios=ot,at.CanceledError=je,at.CancelToken=class e{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const r=this;this.promise.then(e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t;const n=new Promise(e=>{r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e(function(e,n,i){r.reason||(r.reason=new je(e,n,i),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}},at.isCancel=Ne,at.VERSION=et,at.toFormData=Z,at.AxiosError=K,at.Cancel=at.CanceledError,at.all=function(e){return Promise.all(e)},at.spread=function(e){return function(t){return e.apply(null,t)}},at.isAxiosError=function(e){return W.isObject(e)&&!0===e.isAxiosError},at.mergeConfig=Ae,at.AxiosHeaders=we,at.formToJSON=e=>fe(W.isHTMLForm(e)?new FormData(e):e),at.getAdapter=Ye.getAdapter,at.HttpStatusCode=st,at.default=at;const{Axios:lt,AxiosError:ct,CanceledError:ut,isCancel:pt,CancelToken:dt,VERSION:mt,all:ft,Cancel:ht,isAxiosError:yt,spread:gt,toFormData:bt,AxiosHeaders:vt,HttpStatusCode:xt,formToJSON:wt,getAdapter:St,mergeConfig:Nt}=at,jt={prod:"https://api.xtool.com",pre:"https://api-pre.xtool.com",test:"https://api-test.xtool.com",test_us:"https://api-test.xtool.com",dev:"https://api-dev.makeblock.com"},Et="xtool-aimake-generator",Ct=e=>jt[e]??jt.prod,kt=e=>`__atomm_sdk_token__${e}`,Tt=e=>{try{return localStorage.getItem(kt(e))||""}catch{return""}},Rt=e=>{try{localStorage.removeItem(kt(e))}catch{}};class Ot extends Error{constructor(e,t){super(t),this.code=e,this.name="SdkError"}}const Pt=(e,t,r)=>{const n=Ct(t),i=at.create({baseURL:n,timeout:6e4,headers:{"Content-Type":"application/json;charset=UTF-8"}});return i.interceptors.request.use(t=>{t.headers.lang=(()=>{try{return localStorage.getItem("LANG_KEY")||"en"}catch{return"en"}})();const r=Tt(e);return r&&(t.headers.uToken=r),t},e=>Promise.reject(e)),i.interceptors.response.use(t=>{if(n="blob"===t.config.responseType,i=t.headers["content-type"]??"",n&&i.includes("application/octet-stream"))return t;var n,i;const o=t.data;if(0===o.code)return o.data;20101===o.code&&(Rt(e),null==r||r(e));const s=o.msg||o.message||"Request failed";return Promise.reject(new Ot(o.code,s))},e=>{var t;const r=(null==(t=null==e?void 0:e.response)?void 0:t.data)||{},n=r.msg||r.message||(null==e?void 0:e.message)||"Network error",i=r.code??-1;return Promise.reject(new Ot(i,n))}),i};var _t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function At(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var It,Mt,Dt={exports:{}},zt={},Bt={},Lt={exports:{}};function qt(){if(Mt)return Bt;Mt=1;var e=Bt&&Bt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Bt,"__esModule",{value:!0});const t=e((It||(It=1,r=function(){function e(){for(var e=0,t={};e<arguments.length;e++){var r=arguments[e];for(var n in r)t[n]=r[n]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function r(n){function i(){}function o(t,r,o){if("undefined"!=typeof document){"number"==typeof(o=e({path:"/"},i.defaults,o)).expires&&(o.expires=new Date(1*new Date+864e5*o.expires)),o.expires=o.expires?o.expires.toUTCString():"";try{var s=JSON.stringify(r);/^[\{\[]/.test(s)&&(r=s)}catch(c){}r=n.write?n.write(r,t):encodeURIComponent(String(r)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var a="";for(var l in o)o[l]&&(a+="; "+l,!0!==o[l]&&(a+="="+o[l].split(";")[0]));return document.cookie=t+"="+r+a}}function s(e,r){if("undefined"!=typeof document){for(var i={},o=document.cookie?document.cookie.split("; "):[],s=0;s<o.length;s++){var a=o[s].split("="),l=a.slice(1).join("=");r||'"'!==l.charAt(0)||(l=l.slice(1,-1));try{var c=t(a[0]);if(l=(n.read||n)(l,c)||t(l),r)try{l=JSON.parse(l)}catch(u){}if(i[c]=l,e===c)break}catch(u){}}return e?i[e]:i}}return i.set=o,i.get=function(e){return s(e,!1)},i.getJSON=function(e){return s(e,!0)},i.remove=function(t,r){o(t,"",e(r,{expires:-1}))},i.defaults={},i.withConverter=r,i}(function(){})},Lt.exports=r()),Lt.exports));var r;class n{static get(e){if(0===localStorage.length)return null;if(!e){const e=Object.keys(localStorage),t={};return e.forEach(e=>{t[e]=this.get(e)}),t}{const r=localStorage.getItem(e);if(null!==r)try{return JSON.parse(r)}catch(t){return r}}return null}static getJSON(e){return this.get(e)}static set(e,t){localStorage.setItem(e,JSON.stringify(t))}static remove(e){e?localStorage.removeItem(e):localStorage.clear()}}n.defaults={};class i{static get storage(){return"cookie"===this.strategy?this.cookie:this.local}static config(e){e&&(this.storage.defaults=e)}static get(e){return e?this.storage.get(e):this.storage.getJSON(e)}static set(e,t,r){this.storage.set(e,t,r)}static remove(e,t){this.storage.remove(e,t)}}return Bt.default=i,i.strategy="localstorage",i.cookie=t.default,i.local=n,Bt}var Ut,Ht={exports:{}};function Ft(){if(Ut)return Ht.exports;Ut=1;var e,t="object"==typeof Reflect?Reflect:null,r=t&&"function"==typeof t.apply?t.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};e=t&&"function"==typeof t.ownKeys?t.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var n=Number.isNaN||function(e){return e!=e};function i(){i.init.call(this)}Ht.exports=i,Ht.exports.once=function(e,t){return new Promise(function(r,n){function i(r){e.removeListener(t,o),n(r)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),r([].slice.call(arguments))}f(e,t,o,{once:!0}),"error"!==t&&function(e,t,r){"function"==typeof e.on&&f(e,"error",t,r)}(e,i,{once:!0})})},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var o=10;function s(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function a(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function l(e,t,r,n){var i,o,l;if(s(r),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),l=o[t]),void 0===l)l=o[t]=r,++e._eventsCount;else if("function"==typeof l?l=o[t]=n?[r,l]:[l,r]:n?l.unshift(r):l.push(r),(i=a(e))>0&&l.length>i&&!l.warned){l.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+l.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=l.length,console&&console.warn}return e}function c(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function u(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=c.bind(n);return i.listener=r,n.wrapFn=i,i}function p(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(i):m(i,i.length)}function d(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function m(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function f(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,function i(o){n.once&&e.removeEventListener(t,i),r(o)})}}return Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return o},set:function(e){if("number"!=typeof e||e<0||n(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");o=e}}),i.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||n(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},i.prototype.getMaxListeners=function(){return a(this)},i.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var s;if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var l=o[e];if(void 0===l)return!1;if("function"==typeof l)r(l,this,t);else{var c=l.length,u=m(l,c);for(n=0;n<c;++n)r(u[n],this,t)}return!0},i.prototype.addListener=function(e,t){return l(this,e,t,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(e,t){return l(this,e,t,!0)},i.prototype.once=function(e,t){return s(t),this.on(e,u(this,e,t)),this},i.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,u(this,e,t)),this},i.prototype.removeListener=function(e,t){var r,n,i,o,a;if(s(t),void 0===(n=this._events))return this;if(void 0===(r=n[e]))return this;if(r===t||r.listener===t)0===--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(i=-1,o=r.length-1;o>=0;o--)if(r[o]===t||r[o].listener===t){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,i),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,a||t)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var i,o=Object.keys(r);for(n=0;n<o.length;++n)"removeListener"!==(i=o[n])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},i.prototype.listeners=function(e){return p(this,e,!0)},i.prototype.rawListeners=function(e){return p(this,e,!1)},i.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):d.call(e,t)},i.prototype.listenerCount=d,i.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]},Ht.exports}var $t,Vt={};var Gt,Wt={exports:{}},Kt=Wt.exports;function Xt(){return Gt||(Gt=1,e=Wt,t=Wt.exports,function(r,n){var i,o="user-agent",s="",a="function",l="object",c="string",u="undefined",p="browser",d="cpu",m="device",f="engine",h="os",y="result",g="name",b="type",v="vendor",x="version",w="architecture",S="major",N="model",j="console",E="mobile",C="tablet",k="smarttv",T="wearable",R="xr",O="embedded",P="inapp",_="brands",A="formFactors",I="fullVersionList",M="platform",D="platformVersion",z="bitness",B="sec-ch-ua",L=B+"-full-version-list",q=B+"-arch",U=B+"-"+z,H=B+"-form-factors",F=B+"-"+E,$=B+"-"+N,V=B+"-"+M,G=V+"-version",W=[_,I,E,N,M,D,w,A,z],K="Amazon",X="Apple",Q="ASUS",Y="BlackBerry",J="Google",Z="Huawei",ee="Lenovo",te="Honor",re="LG",ne="Microsoft",ie="Motorola",oe="Nvidia",se="OnePlus",ae="OPPO",le="Samsung",ce="Sharp",ue="Sony",pe="Xiaomi",de="Zebra",me="Chrome",fe="Chromium",he="Chromecast",ye="Edge",ge="Firefox",be="Opera",ve="Facebook",xe="Sogou",we="Mobile ",Se=" Browser",Ne="Windows",je=typeof r!==u,Ee=je&&r.navigator?r.navigator:n,Ce=Ee&&Ee.userAgentData?Ee.userAgentData:n,ke=function(e){for(var t={},r=0;r<e.length;r++)t[e[r].toUpperCase()]=e[r];return t},Te=function(e,t){if(typeof e===l&&e.length>0){for(var r in e)if(_e(t)==_e(e[r]))return!0;return!1}return!!Oe(e)&&_e(t)==_e(e)},Re=function(e,t){for(var r in e)return/^(browser|cpu|device|engine|os)$/.test(r)||!!t&&Re(e[r])},Oe=function(e){return typeof e===c},Pe=function(e){if(!e)return n;for(var t=[],r=Me(/\\?\"/g,e).split(","),i=0;i<r.length;i++)if(r[i].indexOf(";")>-1){var o=ze(r[i]).split(";v=");t[i]={brand:o[0],version:o[1]}}else t[i]=ze(r[i]);return t},_e=function(e){return Oe(e)?e.toLowerCase():e},Ae=function(e){return Oe(e)?Me(/[^\d\.]/g,e).split(".")[0]:n},Ie=function(e){for(var t in e)if(e.hasOwnProperty(t)){var r=e[t];typeof r==l&&2==r.length?this[r[0]]=r[1]:this[r]=n}return this},Me=function(e,t){return Oe(t)?t.replace(e,s):t},De=function(e){return Me(/\\?\"/g,e)},ze=function(e,t){return e=Me(/^\s\s*/,String(e)),typeof t===u?e:e.substring(0,t)},Be=function(e,t){if(e&&t)for(var r,i,o,s,c,u,p=0;p<t.length&&!c;){var d=t[p],m=t[p+1];for(r=i=0;r<d.length&&!c&&d[r];)if(c=d[r++].exec(e))for(o=0;o<m.length;o++)u=c[++i],typeof(s=m[o])===l&&s.length>0?2===s.length?typeof s[1]==a?this[s[0]]=s[1].call(this,u):this[s[0]]=s[1]:s.length>=3&&(typeof s[1]!==a||s[1].exec&&s[1].test?3==s.length?this[s[0]]=u?u.replace(s[1],s[2]):n:4==s.length?this[s[0]]=u?s[3].call(this,u.replace(s[1],s[2])):n:s.length>4&&(this[s[0]]=u?s[3].apply(this,[u.replace(s[1],s[2])].concat(s.slice(4))):n):s.length>3?this[s[0]]=u?s[1].apply(this,s.slice(2)):n:this[s[0]]=u?s[1].call(this,u,s[2]):n):this[s]=u||n;p+=2}},Le=function(e,t){for(var r in t)if(typeof t[r]===l&&t[r].length>0){for(var i=0;i<t[r].length;i++)if(Te(t[r][i],e))return"?"===r?n:r}else if(Te(t[r],e))return"?"===r?n:r;return t.hasOwnProperty("*")?t["*"]:e},qe={ME:"4.90","NT 3.51":"3.51","NT 4.0":"4.0",2e3:["5.0","5.01"],XP:["5.1","5.2"],Vista:"6.0",7:"6.1",8:"6.2",8.1:"6.3",10:["6.4","10.0"],NT:""},Ue={embedded:"Automotive",mobile:"Mobile",tablet:["Tablet","EInk"],smarttv:"TV",wearable:"Watch",xr:["VR","XR"],"?":["Desktop","Unknown"],"*":n},He={Chrome:"Google Chrome",Edge:"Microsoft Edge","Edge WebView2":"Microsoft Edge WebView2","Chrome WebView":"Android WebView","Chrome Headless":"HeadlessChrome","Huawei Browser":"HuaweiBrowser","MIUI Browser":"Miui Browser","Opera Mobi":"OperaMobile",Yandex:"YaBrowser"},Fe={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[x,[g,we+"Chrome"]],[/webview.+edge\/([\w\.]+)/i],[x,[g,ye+" WebView"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[x,[g,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[g,x],[/opios[\/ ]+([\w\.]+)/i],[x,[g,be+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[x,[g,be+" GX"]],[/\bopr\/([\w\.]+)/i],[x,[g,be]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[x,[g,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[x,[g,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(atlas|flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon|otter|dooble|(?:hi|lg |ovi|qute)browser|palemoon)\/v?([-\w\.]+)/i,/(brave)(?: chrome)?\/([\d\.]+)/i,/(aloha|heytap|ovi|115|surf|qwant)browser\/([\d\.]+)/i,/(qwant)(?:ios|mobile)\/([\d\.]+)/i,/(ecosia|weibo)(?:__| \w+@)([\d\.]+)/i],[g,x],[/quark(?:pc)?\/([-\w\.]+)/i],[x,[g,"Quark"]],[/\bddg\/([\w\.]+)/i],[x,[g,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[x,[g,"UCBrowser"]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[x,[g,"WeChat"]],[/konqueror\/([\w\.]+)/i],[x,[g,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[x,[g,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[x,[g,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[x,[g,"Smart "+ee+Se]],[/(av(?:ast|g|ira))\/([\w\.]+)/i],[[g,/(.+)/,"$1 Secure"+Se],x],[/norton\/([\w\.]+)/i],[x,[g,"Norton Private"+Se]],[/\bfocus\/([\w\.]+)/i],[x,[g,ge+" Focus"]],[/ mms\/([\w\.]+)$/i],[x,[g,be+" Neon"]],[/ opt\/([\w\.]+)$/i],[x,[g,be+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[x,[g,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[x,[g,"Dolphin"]],[/coast\/([\w\.]+)/i],[x,[g,be+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[x,[g,"MIUI"+Se]],[/fxios\/([\w\.-]+)/i],[x,[g,we+ge]],[/\bqihoobrowser\/?([\w\.]*)/i],[x,[g,"360"]],[/\b(qq)\/([\w\.]+)/i],[[g,/(.+)/,"$1Browser"],x],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[g,/(.+)/,"$1"+Se],x],[/samsungbrowser\/([\w\.]+)/i],[x,[g,le+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[x,[g,xe+" Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[g,xe+" Mobile"],x],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[g,x],[/(lbbrowser|luakit|rekonq|steam(?= (clie|tenf|gameo)))/i],[g],[/ome\/([\w\.]+).+(iron(?= saf)|360(?=[es]e$))/i],[x,g],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[g,ve],x,[b,P]],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(bing)(?:web|sapphire)\/([\w\.]+)/i,/(instagram|snapchat|klarna)[\/ ]([-\w\.]+)/i],[g,x,[b,P]],[/\bgsa\/([\w\.]+) .*safari\//i],[x,[g,"GSA"],[b,P]],[/(?:musical_ly|trill)(?:.+app_?version\/|_)([\w\.]+)/i],[x,[g,"TikTok"],[b,P]],[/\[(linkedin)app\]/i],[g,[b,P]],[/(zalo(?:app)?)[\/\sa-z]*([\w\.-]+)/i],[[g,/(.+)/,"Zalo"],x,[b,P]],[/(chromium)[\/ ]([-\w\.]+)/i],[g,x],[/ome-(lighthouse)$/i],[g,[b,"fetcher"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[x,[g,me+" Headless"]],[/wv\).+chrome\/([\w\.]+).+edgw\//i],[x,[g,ye+" WebView2"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[g,me+" WebView"],x],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[x,[g,"Android"+Se]],[/chrome\/([\w\.]+) mobile/i],[x,[g,we+"Chrome"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[g,x],[/version\/([\w\.\,]+) .*mobile(?:\/\w+ | ?)safari/i],[x,[g,we+"Safari"]],[/iphone .*mobile(?:\/\w+ | ?)safari/i],[[g,we+"Safari"]],[/version\/([\w\.\,]+) .*(safari)/i],[x,g],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[g,[x,"1"]],[/(webkit|khtml)\/([\w\.]+)/i],[g,x],[/(?:mobile|tablet);.*(firefox)\/([\w\.-]+)/i],[[g,we+ge],x],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[g,"Netscape"],x],[/(wolvic|librewolf)\/([\w\.]+)/i],[g,x],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[x,[g,ge+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+(?= .+rv\:.+gecko\/\d+)|[0-4][\w\.]+(?!.+compatible))/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[g,[x,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[g,[x,/[^\d\.]+./,s]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[w,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[w,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[w,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[w,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[w,"arm"]],[/ sun4\w[;\)]/i],[[w,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i,/((ppc|powerpc)(64)?)( mac|;|\))/i,/(?:osf1|[freopnt]{3,4}bsd) (alpha)/i],[[w,/ower/,s,_e]],[/mc680.0/i],[[w,"68k"]],[/winnt.+\[axp/i],[[w,"alpha"]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[N,[v,le],[b,C]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr]|browser)[-\w]+)/i,/sec-(sgh\w+)/i],[N,[v,le],[b,E]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)[\/\);]/i],[N,[v,X],[b,E]],[/\b(?:ios|apple\w+)\/.+[\(\/](ipad)/i,/\b(ipad)[\d,]*[;\] ].+(mac |i(pad)?)os/i],[N,[v,X],[b,C]],[/(macintosh);/i],[N,[v,X]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[N,[v,ce],[b,E]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[N,[v,te],[b,C]],[/honor([-\w ]+)[;\)]/i],[N,[v,te],[b,E]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[N,[v,Z],[b,C]],[/(?:huawei) ?([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][\dc][adnt]?)\b(?!.+d\/s)/i],[N,[v,Z],[b,E]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b(?:xiao)?((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[N,/_/g," "],[v,pe],[b,C]],[/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/oid[^\)]+; (redmi[\-_ ]?(?:note|k)?[\w_ ]+|m?[12]\d[01]\d\w{3,6}|poco[\w ]+|(shark )?\w{3}-[ah]0|qin ?[1-3](s\+|ultra| pro)?)( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note|max|cc)?[_ ]?(?:\d{0,2}\w?)[_ ]?(?:plus|se|lite|pro)?( 5g|lte)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[N,/_/g," "],[v,pe],[b,E]],[/droid.+; (cph2[3-6]\d[13579]|((gm|hd)19|(ac|be|in|kb)20|(d[en]|eb|le|mt)21|ne22)[0-2]\d|p[g-l]\w[1m]10)\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[N,[v,se],[b,E]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[N,[v,ae],[b,E]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[N,[v,Le,{OnePlus:["203","304","403","404","413","415"],"*":ae}],[b,C]],[/(vivo (5r?|6|8l?|go|one|s|x[il]?[2-4]?)[\w\+ ]*)(?: bui|\))/i],[N,[v,"BLU"],[b,E]],[/; vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[N,[v,"Vivo"],[b,E]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[N,[v,"Realme"],[b,E]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[N,[v,ee],[b,C]],[/lenovo[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i],[N,[v,ee],[b,E]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ]([\w\s]+)(\)| bui)/i,/((?:moto(?! 360)[-\w\(\) ]+|xt\d{3,4}[cgkosw\+]?[-\d]*|nexus 6)(?= bui|\)))/i],[N,[v,ie],[b,E]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[N,[v,ie],[b,C]],[/\b(?:lg)?([vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[N,[v,re],[b,C]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+(?!.*(?:browser|netcast|android tv|watch|webos))(\w+)/i,/\blg-?([\d\w]+) bui/i],[N,[v,re],[b,E]],[/(nokia) (t[12][01])/i],[v,N,[b,C]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*?))( bui|\)|;|\/)/i],[[N,/_/g," "],[b,E],[v,"Nokia"]],[/(pixel (c|tablet))\b/i],[N,[v,J],[b,C]],[/droid.+;(?: google)? (g(01[13]a|020[aem]|025[jn]|1b60|1f8f|2ybb|4s1m|576d|5nz6|8hhn|8vou|a02099|c15s|d1yq|e2ae|ec77|gh2x|kv4x|p4bc|pj41|r83y|tt9q|ur25|wvk6)|pixel[\d ]*a?( pro)?( xl)?( fold)?( \(5g\))?)( bui|\))/i],[N,[v,J],[b,E]],[/(google) (pixelbook( go)?)/i],[v,N],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-\w\w\d\d)(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[N,[v,ue],[b,E]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[N,"Xperia Tablet"],[v,ue],[b,C]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[N,[v,K],[b,C]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[N,/(.+)/g,"Fire Phone $1"],[v,K],[b,E]],[/(playbook);[-\w\),; ]+(rim)/i],[N,v,[b,C]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/(?:blackberry|\(bb10;) (\w+)/i],[N,[v,Y],[b,E]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[N,[v,Q],[b,C]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[N,[v,Q],[b,E]],[/(nexus 9)/i],[N,[v,"HTC"],[b,C]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[v,[N,/_/g," "],[b,E]],[/tcl (xess p17aa)/i,/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])(_\w(\w|\w\w))?(\)| bui)/i],[N,[v,"TCL"],[b,C]],[/droid [\w\.]+; (418(?:7d|8v)|5087z|5102l|61(?:02[dh]|25[adfh]|27[ai]|56[dh]|59k|65[ah])|a509dl|t(?:43(?:0w|1[adepqu])|50(?:6d|7[adju])|6(?:09dl|10k|12b|71[efho]|76[hjk])|7(?:66[ahju]|67[hw]|7[045][bh]|71[hk]|73o|76[ho]|79w|81[hks]?|82h|90[bhsy]|99b)|810[hs]))(_\w(\w|\w\w))?(\)| bui)/i],[N,[v,"TCL"],[b,E]],[/(itel) ((\w+))/i],[[v,_e],N,[b,Le,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[N,[v,"Acer"],[b,C]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[N,[v,"Meizu"],[b,E]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[N,[v,"Ulefone"],[b,E]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[N,[v,"Energizer"],[b,E]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[N,[v,"Cat"],[b,E]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[N,[v,"Smartfren"],[b,E]],[/droid.+; (a(in)?(0(15|59|6[35])|142)p?)/i],[N,[v,"Nothing"],[b,E]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[N,[v,"Archos"],[b,C]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[N,[v,"Archos"],[b,E]],[/; (n159v)/i],[N,[v,"HMD"],[b,E]],[/(imo) (tab \w+)/i,/(infinix|tecno) (x1101b?|p904|dp(7c|8d|10a)( pro)?|p70[1-3]a?|p904|t1101)/i],[v,N,[b,C]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (blu|hmd|imo|infinix|lava|oneplus|tcl|wiko)[_ ]([\w\+ ]+?)(?: bui|\)|; r)/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(oppo) ?([\w ]+) bui/i,/(hisense) ([ehv][\w ]+)\)/i,/droid[^;]+; (philips)[_ ]([sv-x][\d]{3,4}[xz]?)/i],[v,N,[b,E]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i],[v,N,[b,C]],[/(surface duo)/i],[N,[v,ne],[b,C]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[N,[v,"Fairphone"],[b,E]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[N,[v,oe],[b,C]],[/(sprint) (\w+)/i],[v,N,[b,E]],[/(kin\.[onetw]{3})/i],[[N,/\./g," "],[v,ne],[b,E]],[/droid.+; ([c6]+|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[N,[v,de],[b,C]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[N,[v,de],[b,E]],[/(philips)[\w ]+tv/i,/smart-tv.+(samsung)/i],[v,[b,k]],[/hbbtv.+maple;(\d+)/i],[[N,/^/,"SmartTV"],[v,le],[b,k]],[/(vizio)(?: |.+model\/)(\w+-\w+)/i,/tcast.+(lg)e?. ([-\w]+)/i],[v,N,[b,k]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[v,re],[b,k]],[/(apple) ?tv/i],[v,[N,X+" TV"],[b,k]],[/crkey.*devicetype\/chromecast/i],[[N,he+" Third Generation"],[v,J],[b,k]],[/crkey.*devicetype\/([^/]*)/i],[[N,/^/,"Chromecast "],[v,J],[b,k]],[/fuchsia.*crkey/i],[[N,he+" Nest Hub"],[v,J],[b,k]],[/crkey/i],[[N,he],[v,J],[b,k]],[/(portaltv)/i],[N,[v,ve],[b,k]],[/droid.+aft(\w+)( bui|\))/i],[N,[v,K],[b,k]],[/(shield \w+ tv)/i],[N,[v,oe],[b,k]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[N,[v,ce],[b,k]],[/(bravia[\w ]+)( bui|\))/i],[N,[v,ue],[b,k]],[/(mi(tv|box)-?\w+) bui/i],[N,[v,pe],[b,k]],[/Hbbtv.*(technisat) (.*);/i],[v,N,[b,k]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[v,/.+\/(\w+)/,"$1",Le,{LG:"lge"}],[N,ze],[b,k]],[/(playstation \w+)/i],[N,[v,ue],[b,j]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[N,[v,ne],[b,j]],[/(ouya)/i,/(nintendo) (\w+)/i,/(retroid) (pocket ([^\)]+))/i,/(valve).+(steam deck)/i,/droid.+; ((shield|rgcube|gr0006))( bui|\))/i],[[v,Le,{Nvidia:"Shield",Anbernic:"RGCUBE",Logitech:"GR0006"}],N,[b,j]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[N,[v,le],[b,T]],[/((pebble))app/i,/(asus|google|lg|oppo|xiaomi) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[v,N,[b,T]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[N,[v,ae],[b,T]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[N,[v,X],[b,T]],[/(opwwe\d{3})/i],[N,[v,se],[b,T]],[/(moto 360)/i],[N,[v,ie],[b,T]],[/(smartwatch 3)/i],[N,[v,ue],[b,T]],[/(g watch r)/i],[N,[v,re],[b,T]],[/droid.+; (wt63?0{2,3})\)/i],[N,[v,de],[b,T]],[/droid.+; (glass) \d/i],[N,[v,J],[b,R]],[/(pico) ([\w ]+) os\d/i],[v,N,[b,R]],[/(quest( \d| pro)?s?).+vr/i],[N,[v,ve],[b,R]],[/mobile vr; rv.+firefox/i],[[b,R]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[v,[b,O]],[/(aeobc)\b/i],[N,[v,K],[b,O]],[/(homepod).+mac os/i],[N,[v,X],[b,O]],[/windows iot/i],[[b,O]],[/droid.+; ([\w- ]+) (4k|android|smart|google)[- ]?tv/i],[N,[b,k]],[/\b((4k|android|smart|opera)[- ]?tv|tv; rv:|large screen[\w ]+safari)\b/i],[[b,k]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew|; hmsc).+?(mobile|vr|\d) safari/i],[N,[b,Le,{mobile:"Mobile",xr:"VR","*":C}]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[b,C]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[b,E]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[N,[v,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[x,[g,ye+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[g,x],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[x,[g,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links|dillo)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[g,x],[/ladybird\//i],[[g,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[x,g]],os:[[/(windows nt) (6\.[23]); arm/i],[[g,/N/,"R"],[x,Le,qe]],[/(windows (?:phone|mobile|iot))(?: os)?[\/ ]?([\d\.]*( se)?)/i,/(windows)[\/ ](1[01]|2000|3\.1|7|8(\.1)?|9[58]|me|server 20\d\d( r2)?|vista|xp)/i],[g,x],[/windows nt ?([\d\.\)]*)(?!.+xbox)/i,/\bwin(?=3| ?9|n)(?:nt| 9x )?([\d\.;]*)/i],[[x,/(;|\))/g,"",Le,qe],[g,Ne]],[/(windows ce)\/?([\d\.]*)/i],[g,x],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv|ios(?=.+ip(?:ad|hone)|.+apple ?tv)|ip(?:ad|hone)(?: |.+i(?:pad)?)os|apple ?tv.+ios)[\/ ]([\w\.]+)/i,/\btvos ?([\w\.]+)/i,/cfnetwork\/.+darwin/i],[[x,/_/g,"."],[g,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+(haiku|morphos))/i],[[g,"macOS"],[x,/_/g,"."]],[/android ([\d\.]+).*crkey/i],[x,[g,he+" Android"]],[/fuchsia.*crkey\/([\d\.]+)/i],[x,[g,he+" Fuchsia"]],[/crkey\/([\d\.]+).*devicetype\/smartspeaker/i],[x,[g,he+" SmartSpeaker"]],[/linux.*crkey\/([\d\.]+)/i],[x,[g,he+" Linux"]],[/crkey\/([\d\.]+)/i],[x,[g,he]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[x,g],[/(ubuntu) ([\w\.]+) like android/i],[[g,/(.+)/,"$1 Touch"],x],[/(harmonyos)[\/ ]?([\d\.]*)/i,/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen)\w*[-\/\.; ]?([\d\.]*)/i],[g,x],[/\(bb(10);/i],[x,[g,Y]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[x,[g,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile[;\w ]*|tablet|tv|[^\)]*(?:viera|lg(?:l25|-d300)|alcatel ?o.+|y300-f1)); rv:([\w\.]+)\).+gecko\//i],[x,[g,ge+" OS"]],[/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i,/webos(?:[ \/]?|\.tv-20(?=2[2-9]))(\d[\d\.]*)/i],[x,[g,"webOS"]],[/web0s;.+?(?:chr[o0]me|safari)\/(\d+)/i],[[x,Le,{25:"120",24:"108",23:"94",22:"87",6:"79",5:"68",4:"53",3:"38",2:"538",1:"537","*":"TV"}],[g,"webOS"]],[/watch(?: ?os[,\/ ]|\d,\d\/)([\d\.]+)/i],[x,[g,"watchOS"]],[/cros [\w]+(?:\)| ([\w\.]+)\b)/i],[x,[g,"Chrome OS"]],[/kepler ([\w\.]+); (aft|aeo)/i],[x,[g,"Vega OS"]],[/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) (\w+)/i,/(xbox); +xbox ([^\);]+)/i,/(pico) .+os([\w\.]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/linux.+(mint)[\/\(\) ]?([\w\.]*)/i,/(mageia|vectorlinux|fuchsia|arcaos|arch(?= ?linux))[;l ]([\d\.]*)/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire|knoppix)(?: gnu[\/ ]linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/\b(aix)[; ]([1-9\.]{0,4})/i,/(hurd|linux|morphos)(?: (?:arm|x86|ppc)\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) ?(r\d)?/i],[g,x],[/(sunos) ?([\d\.]*)/i],[[g,"Solaris"],x],[/\b(beos|os\/2|amigaos|openvms|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[g,x]]},$e=(Ie.call((i={init:{},isIgnore:{},isIgnoreRgx:{},toString:{}}).init,[[p,[g,x,S,b]],[d,[w]],[m,[b,N,v]],[f,[g,x]],[h,[g,x]]]),Ie.call(i.isIgnore,[[p,[x,S]],[f,[x]],[h,[x]]]),Ie.call(i.isIgnoreRgx,[[p,/ ?browser$/i],[h,/ ?os$/i]]),Ie.call(i.toString,[[p,[g,x]],[d,[w]],[m,[v,N]],[f,[g,x]],[h,[g,x]]]),i),Ve=function(e,t){var r=$e.init[t],n=$e.isIgnore[t]||0,i=$e.isIgnoreRgx[t]||0,o=$e.toString[t]||0;function a(){Ie.call(this,r)}return a.prototype.getItem=function(){return e},a.prototype.withClientHints=function(){return Ce?Ce.getHighEntropyValues(W).then(function(t){return e.setCH(new Ge(t,!1)).parseCH().get()}):e.parseCH().get()},a.prototype.withFeatureCheck=function(){return e.detectFeature().get()},t!=y&&(a.prototype.is=function(e){var t=!1;for(var r in this)if(this.hasOwnProperty(r)&&!Te(n,r)&&_e(i?Me(i,this[r]):this[r])==_e(i?Me(i,e):e)){if(t=!0,e!=u)break}else if(e==u&&t){t=!t;break}return t},a.prototype.toString=function(){var e=s;for(var t in o)typeof this[o[t]]!==u&&(e+=(e?" ":s)+this[o[t]]);return e||u}),a.prototype.then=function(e){var t=this,r=function(){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e])};r.prototype={is:a.prototype.is,toString:a.prototype.toString,withClientHints:a.prototype.withClientHints,withFeatureCheck:a.prototype.withFeatureCheck};var n=new r;return e(n),n},new a};function Ge(e,t){if(e=e||{},Ie.call(this,W),t)Ie.call(this,[[_,Pe(e[B])],[I,Pe(e[L])],[E,/\?1/.test(e[F])],[N,De(e[$])],[M,De(e[V])],[D,De(e[G])],[w,De(e[q])],[A,Pe(e[H])],[z,De(e[U])]]);else for(var r in e)this.hasOwnProperty(r)&&typeof e[r]!==u&&(this[r]=e[r])}function We(e,t,r,n){return Ie.call(this,[["itemType",e],["ua",t],["uaCH",n],["rgxMap",r],["data",Ve(this,e)]]),this}function Ke(e,t,r){if(typeof e===l?(Re(e,!0)?(typeof t===l&&(r=t),t=e):(r=e,t=n),e=n):typeof e!==c||Re(t,!0)||(r=t,t=n),r)if(typeof r.append===a){var i={};r.forEach(function(e,t){i[String(t).toLowerCase()]=e}),r=i}else{var u={};for(var g in r)r.hasOwnProperty(g)&&(u[String(g).toLowerCase()]=r[g]);r=u}if(!(this instanceof Ke))return new Ke(e,t,r).getResult();var b=typeof e===c?e:r&&r[o]?r[o]:Ee&&Ee.userAgent?Ee.userAgent:s,v=new Ge(r,!0),x=t?function(e,t){var r={},n=t;if(!Re(t))for(var i in n={},t)for(var o in t[i])n[o]=t[i][o].concat(n[o]?n[o]:[]);for(var s in e)r[s]=n[s]&&n[s].length%2==0?n[s].concat(e[s]):e[s];return r}(Fe,t):Fe,w=function(e){return e==y?function(){return new We(e,b,x,v).set("ua",b).set(p,this.getBrowser()).set(d,this.getCPU()).set(m,this.getDevice()).set(f,this.getEngine()).set(h,this.getOS()).get()}:function(){return new We(e,b,x[e],v).parseUA().get()}};return Ie.call(this,[["getBrowser",w(p)],["getCPU",w(d)],["getDevice",w(m)],["getEngine",w(f)],["getOS",w(h)],["getResult",w(y)],["getUA",function(){return b}],["setUA",function(e){return Oe(e)&&(b=ze(e,500)),this}]]).setUA(b),this}We.prototype.get=function(e){return e?this.data.hasOwnProperty(e)?this.data[e]:n:this.data},We.prototype.set=function(e,t){return this.data[e]=t,this},We.prototype.setCH=function(e){return this.uaCH=e,this},We.prototype.detectFeature=function(){if(Ee&&Ee.userAgent==this.ua)switch(this.itemType){case p:Ee.brave&&typeof Ee.brave.isBrave==a&&this.set(g,"Brave");break;case m:!this.get(b)&&Ce&&Ce[E]&&this.set(b,E),"Macintosh"==this.get(N)&&Ee&&typeof Ee.standalone!==u&&Ee.maxTouchPoints&&Ee.maxTouchPoints>2&&this.set(N,"iPad").set(b,C);break;case h:!this.get(g)&&Ce&&Ce[M]&&this.set(g,Ce[M]);break;case y:var e=this.data,t=function(t){return e[t].getItem().detectFeature().get()};this.set(p,t(p)).set(d,t(d)).set(m,t(m)).set(f,t(f)).set(h,t(h))}return this},We.prototype.parseUA=function(){switch(this.itemType!=y&&Be.call(this.data,this.ua,this.rgxMap),this.itemType){case p:this.set(S,Ae(this.get(x)));break;case h:if("iOS"==this.get(g)&&"18.6"==this.get(x)){var e=/\) Version\/([\d\.]+)/.exec(this.ua);e&&parseInt(e[1].substring(0,2),10)>=26&&this.set(x,e[1])}}return this},We.prototype.parseCH=function(){var e=this.uaCH,t=this.rgxMap;switch(this.itemType){case p:case f:var r,i=e[I]||e[_];if(i)for(var o=0;o<i.length;o++){var s=i[o].brand||i[o],a=i[o].version;this.itemType==p&&!/not.a.brand/i.test(s)&&(!r||/Chrom/.test(r)&&s!=fe||r==ye&&/WebView2/.test(s))&&(s=Le(s,He),(r=this.get(g))&&!/Chrom/.test(r)&&/Chrom/.test(s)||this.set(g,s).set(x,a).set(S,Ae(a)),r=s),this.itemType==f&&s==fe&&this.set(x,a)}break;case d:var l=e[w];l&&(l&&"64"==e[z]&&(l+="64"),Be.call(this.data,l+";",t));break;case m:if(e[E]&&this.set(b,E),e[N]&&(this.set(N,e[N]),!this.get(b)||!this.get(v))){var c={};Be.call(c,"droid 9; "+e[N]+")",t),!this.get(b)&&c.type&&this.set(b,c.type),!this.get(v)&&c.vendor&&this.set(v,c.vendor)}if(e[A]){var u;if("string"!=typeof e[A])for(var j=0;!u&&j<e[A].length;)u=Le(e[A][j++],Ue);else u=Le(e[A],Ue);this.set(b,u)}break;case h:var C=e[M];if(C){var k=e[D];C==Ne&&(k=parseInt(Ae(k),10)>=13?"11":"10"),this.set(g,C).set(x,k)}this.get(g)==Ne&&"Xbox"==e[N]&&this.set(g,"Xbox").set(x,n);break;case y:var T=this.data,R=function(t){return T[t].getItem().setCH(e).parseCH().get()};this.set(p,R(p)).set(d,R(d)).set(m,R(m)).set(f,R(f)).set(h,R(h))}return this},Ke.VERSION="2.0.9",Ke.BROWSER=ke([g,x,S,b]),Ke.CPU=ke([w]),Ke.DEVICE=ke([N,v,b,j,E,k,C,T,O]),Ke.ENGINE=Ke.OS=ke([g,x]),e.exports&&(t=e.exports=Ke),t.UAParser=Ke;var Xe=je&&(r.jQuery||r.Zepto);if(Xe&&!Xe.ua){var Qe=new Ke;Xe.ua=Qe.getResult(),Xe.ua.get=function(){return Qe.getUA()},Xe.ua.set=function(e){Qe.setUA(e);var t=Qe.getResult();for(var r in t)Xe.ua[r]=t[r]}}}("object"==typeof window?window:Kt)),Wt.exports;var e,t}var Qt,Yt={},Jt={};var Zt,er,tr={};function rr(){return er||(er=1,e=Yt,g=Yt&&Yt.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),b=Yt&&Yt.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||g(t,e,r)},Object.defineProperty(e,"__esModule",{value:!0}),b((Qt||(Qt=1,Object.defineProperty(Jt,"__esModule",{value:!0}),Jt.SYSTEM_TYPE=Jt.XTOOL_PLATFORM=Jt.MAKEBLOCK_PLATFORM=Jt.AREA=Jt.DOMAIN_SPACE=Jt.MESSAGE_TYPE=Jt.CLIENT_ENV=Jt.PAGE_MODE=void 0,(r=t||(Jt.PAGE_MODE=t={})).PAGE="page",r.WIN="win",r.FULL_WIN="full-win",(i=n||(Jt.CLIENT_ENV=n={})).DEV="dev",i.TEST_US="test_us",i.TEST="test",i.PRE="pre",i.PROD="prod",i.LOCAL="local",(s=o||(Jt.MESSAGE_TYPE=o={})).LOGIN="login",s.LOGOUT="logout",s.REGISTER="register",s.FINDPWD="findpwd",s.SWITCH_HSOT="switchHost",(l=a||(Jt.DOMAIN_SPACE=a={})).MAKEBLOCK="makeblock",l.XTOOL="xtool",(u=c||(Jt.AREA=c={})).EU="eu",u.CN="cn",u.US="us",(d=p||(Jt.MAKEBLOCK_PLATFORM=p={})).MBLOCK_5="mblock_5",d.MBLOCK_WEB="mblock_web",d.MBLOCK_PC="mblock_pc",d.MBLOCK_MOBILE="mblock_mobile",d.ONE_BOX="one_box",d.STEAM_PLATFORM_STU="steam_platform_stu",d.STEAM_PLATFORM_TEACHER="steam_platform_teacher",d.COMMUNITY="community",d.EXT_BUILDER="ext_builder",d.MAKEX="makex",d.MAKE_D2V="makeblock_d2v",(f=m||(Jt.XTOOL_PLATFORM=m={})).XCS="xcs",f.PROJECTS="projects",f.DESIGN_FIND="design_find",f.ATOMM="atomm",f.SUPPORT="support",f.X_ART="xart",f.SMB="smb",f.CUSTOM_THINGS="custom_things",f.PASSPORT="passport",f.FOCUSAUR="focusaur",f.XCS_CMS="xcs_cms",f.MARKETING="marketing",f.MATERIALS_LAB="materials_lab",f.STUDIO="studio",f.BRAND_WEBSITE="brand_website",f.PRM="prm",(y=h||(Jt.SYSTEM_TYPE=h={})).PC="pc",y.PAD="pad",y.MOBILE="mobile",y.APP="app",y.OS="os"),Jt),e),b((Zt||(Zt=1,Object.defineProperty(tr,"__esModule",{value:!0}),tr.LANG_KEY=tr.TOKEN_KEY=tr.MESSAGE_ORIGIN_NAME=tr.POST_MESSAGE_SOURCE=void 0,tr.POST_MESSAGE_SOURCE="makeblock-passport",tr.MESSAGE_ORIGIN_NAME="passport-client",tr.TOKEN_KEY="utoken",tr.LANG_KEY="IntlLang"),tr),e)),Yt;var e,t,r,n,i,o,s,a,l,c,u,p,d,m,f,h,y,g,b}var nr,ir={},or={};function sr(){return nr||(nr=1,function(e){var t=or&&or.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e))}catch(t){o(t)}}function a(e){try{l(n.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.openLoginModal=e.closeLoginModal=void 0;const r=rr(),n={position:"fixed",top:0,right:0,bottom:0,left:0,zIndex:19999,backgroundColor:"rgba(57, 57, 57, 0.15)",display:"flex",justifyContent:"center",alignItems:"center"},i={width:"100vw",height:"100vh",borderRadius:"0"},o={position:"absolute",top:"0.3rem",right:"0.4rem",zIndex:"100",cursor:"pointer",fontSize:"20px",width:"24px",height:"24px",display:"flex",justifyContent:"center",alignItems:"center","-webkit-app-region":"no-drag"},s="passport-modal-container",a="passport-advertisement-container",l="passport-advertisement-content",c="passport-modal-content-wrap",u="passport-modal-content-scroll",p="passport-modal-content",d="passport-modal-close-btn",m="passport-modal-iframe",f="passport-modal-loading";let h=null;e.closeLoginModal=e=>{const t=document.querySelector(`#${s}`);t&&t.remove&&(t.remove(),window.postMessage({action:"close-passport-modal",reason:e}),h&&(window.removeEventListener("message",h),h=null))};const y=e=>{const t=e.data,{action:r,from:n}=t;if("hide-modal-close"===r&&["xtool-passport-web"].some(e=>e===n)){const e=document.querySelector(`#${d}`);e&&(e.style.display="none")}};e.openLoginModal=(g,b,v)=>{const x=g,{advertisement:w,advertisementPosition:S,height:N,loading:j,adaptWindow:E,loadingImage:C}=v,k=b===r.PAGE_MODE.FULL_WIN,T=b===r.PAGE_MODE.WIN,R=E&&!k;let O=document.querySelector("#passport-prefetch-iframe");O&&O.remove(),T&&(h&&window.removeEventListener("message",h),h=(e=>t=>{const r=t.data,{action:n,payload:i}=r;if("win-height-change"===n){const t=document.querySelector(`#${p}`),r=document.querySelector(`#${f}`),n=document.querySelector(`#${m}`),o=document.querySelector(`#${l}`);if(t){const r=i>520?i:520;t.style.height=`${r}px`,n.style.height=`${r}px`,e||(o.style.height=`${r}px`)}r&&(n.style.visibility="visible",r.remove())}})(N),window.addEventListener("message",h),window.removeEventListener("message",y),window.addEventListener("message",y));if(document.querySelector(`#${s}`))return;const P=document.querySelector("body"),_=`<div id="${s}" >\n \n <style>\n @media (max-width: 576px) {\n #passport-modal-content-wrap {\n position: fixed !important;\n left:0 !important;\n top:0 !important;\n width: 100% !important;\n height: 100% !important;\n max-height: 100% !important;\n border-radius: 0px !important;\n }\n }\n </style>\n \n <div id="${a}">\n <div id="${l}"></div>\n <div id="${c}"> \n <span id="${d}">×</span>\n <div id="${u}">\n <div id="${p}" >\n <iframe id="${m}" src="${x}" scrolling="no" frameborder="0"></iframe>\n ${j?"string"==typeof C?`<img id="${f}" src="${C}" style="width: 15%;" />`:C instanceof HTMLElement?(C.style.position="absolute",C.style.top="0",C.style.left="0",C.style.width="100%",C.style.height="100%",C.id=f,C.outerHTML):`<img id="${f}" src="https://storage-us.atomm.com/resource/static/passport/passport-client-common-loading.gif" style="width: 15%;" />`:""} \n </div>\n </div>\n </div>\n </div>\n </div>`,A=document.createElement("div");A.innerHTML+=_,null==P||P.append(A);const I=document.querySelector(`#${s}`),M=document.querySelector(`#${a}`),D=document.querySelector(`#${l}`),z=document.querySelector(`#${c}`),B=document.querySelector(`#${u}`),L=document.querySelector(`#${p}`),q=document.querySelector(`#${m}`),U=document.querySelector(`#${d}`),H=document.querySelector(`#${f}`);H&&(q.style.visibility="hidden",H.style.visibility="visible",(e=>t(void 0,void 0,void 0,function*(){return new Promise(t=>{window.addEventListener("message",e=>{const r=e.data,{action:n}=r;"passport-on-mounted"===n&&t(!0)}),e.onload=function(){t(!0)}})}))(q).then(()=>{q.style.visibility="visible",null==H||H.remove()})),w&&(w.style.height="100%",null==D||D.appendChild(w));U.onclick=()=>{(0,e.closeLoginModal)("click-close-btn")};const F=(e,t)=>{if(e)for(const r in t)e.style[r]=t[r]};F(I,n),F(M,(e=>({display:"flex",borderRadius:"20px",overflow:e?"unset":"hidden",alignItems:"center",position:"relative"}))(k)),F(D,((e,t,r)=>({height:`${t||600}px`,backgroundColor:"white",order:e?1:0,maxHeight:r?"calc(100vh - 20px)":"unset"}))("right"===S,N,R)),F(z,Object.assign({},((e,t,r)=>({height:r?`${r}px`:"auto",width:"400px",maxHeight:t?"calc(100vh - 20px)":"unset",boxSizing:"border-box",zIndex:2e4,borderRadius:e?"unset":"20px",overflow:"hidden auto",backgroundColor:"white"}))(!!w,R,N),k?i:{})),F(B,((e,t)=>({height:t?"100%":"auto",overflow:"hidden"}))(0,k)),F(L,((e,t)=>({height:t?"100%":`${e||600}px`,position:"relative"}))(N,k)),F(U,o),F(q,((e,t)=>({boxSizing:"border-box",width:"100%",userSelect:"none",height:t?"100%":`${e||600}px`}))(N,k)),C instanceof HTMLElement||F(H,(e=>({position:"absolute",left:"50%",top:"50%",transform:"translate(-50%,-50%)",display:e?"block":"none"}))(j))}}(or)),or}var ar,lr,cr={};function ur(){return lr||(lr=1,e=ir,t=ir&&ir.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=ir&&ir.__exportStar||function(e,r){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||t(r,e,n)},Object.defineProperty(e,"__esModule",{value:!0}),r(sr(),e),r((ar||(ar=1,Object.defineProperty(cr,"__esModule",{value:!0}),cr.systemLang=void 0,cr.systemLang=()=>{const{language:e,languages:t}=navigator;return e||(Array.isArray(t)&&t.length>0?t[0]:null)}),cr),e)),ir;var e,t,r}var pr,dr,mr,fr={};
|
|
2
|
+
/*! Axios v1.13.6 Copyright (c) 2026 Matt Zabriskie and contributors */function hr(){if(dr)return pr;function e(e,t){return function(){return e.apply(t,arguments)}}dr=1;const{toString:t}=Object.prototype,{getPrototypeOf:r}=Object,{iterator:n,toStringTag:i}=Symbol,o=(e=>r=>{const n=t.call(r);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),s=e=>(e=e.toLowerCase(),t=>o(t)===e),a=e=>t=>typeof t===e,{isArray:l}=Array,c=a("undefined");function u(e){return null!==e&&!c(e)&&null!==e.constructor&&!c(e.constructor)&&m(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const p=s("ArrayBuffer");const d=a("string"),m=a("function"),f=a("number"),h=e=>null!==e&&"object"==typeof e,y=e=>{if("object"!==o(e))return!1;const t=r(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||i in e||n in e)},g=s("Date"),b=s("File"),v=s("Blob"),x=s("FileList");const w="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==_t?_t:{},S=void 0!==w.FormData?w.FormData:void 0,N=s("URLSearchParams"),[j,E,C,k]=["ReadableStream","Request","Response","Headers"].map(s);function T(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let n,i;if("object"!=typeof e&&(e=[e]),l(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{if(u(e))return;const i=r?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let s;for(n=0;n<o;n++)s=i[n],t.call(null,e[s],s,e)}}function R(e,t){if(u(e))return null;t=t.toLowerCase();const r=Object.keys(e);let n,i=r.length;for(;i-- >0;)if(n=r[i],t===n.toLowerCase())return n;return null}const O="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:_t,P=e=>!c(e)&&e!==O;const _=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&r(Uint8Array)),A=s("HTMLFormElement"),I=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),M=s("RegExp"),D=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};T(r,(r,i)=>{let o;!1!==(o=t(r,i,e))&&(n[i]=o||r)}),Object.defineProperties(e,n)};const z=s("AsyncFunction"),B=((e,t)=>e?setImmediate:t?((e,t)=>(O.addEventListener("message",({source:r,data:n})=>{r===O&&n===e&&t.length&&t.shift()()},!1),r=>{t.push(r),O.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))("function"==typeof setImmediate,m(O.postMessage)),L="undefined"!=typeof queueMicrotask?queueMicrotask.bind(O):"undefined"!=typeof process&&process.nextTick||B;var q={isArray:l,isArrayBuffer:p,isBuffer:u,isFormData:e=>{let t;return e&&(S&&e instanceof S||m(e.append)&&("formdata"===(t=o(e))||"object"===t&&m(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&p(e.buffer),t},isString:d,isNumber:f,isBoolean:e=>!0===e||!1===e,isObject:h,isPlainObject:y,isEmptyObject:e=>{if(!h(e)||u(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(t){return!1}},isReadableStream:j,isRequest:E,isResponse:C,isHeaders:k,isUndefined:c,isDate:g,isFile:b,isReactNativeBlob:e=>!(!e||void 0===e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:v,isRegExp:M,isFunction:m,isStream:e=>h(e)&&m(e.pipe),isURLSearchParams:N,isTypedArray:_,isFileList:x,forEach:T,merge:function e(){const{caseless:t,skipUndefined:r}=P(this)&&this||{},n={},i=(i,o)=>{if("__proto__"===o||"constructor"===o||"prototype"===o)return;const s=t&&R(n,o)||o;y(n[s])&&y(i)?n[s]=e(n[s],i):y(i)?n[s]=e({},i):l(i)?n[s]=i.slice():r&&c(i)||(n[s]=i)};for(let o=0,s=arguments.length;o<s;o++)arguments[o]&&T(arguments[o],i);return n},extend:(t,r,n,{allOwnKeys:i}={})=>(T(r,(r,i)=>{n&&m(r)?Object.defineProperty(t,i,{value:e(r,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,i,{value:r,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:i}),t),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,n,i)=>{let o,s,a;const l={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)a=o[s],i&&!i(a,e,t)||l[a]||(t[a]=e[a],l[a]=!0);e=!1!==n&&r(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:o,kindOfTest:s,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return-1!==n&&n===r},toArray:e=>{if(!e)return null;if(l(e))return e;let t=e.length;if(!f(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[n]).call(e);let i;for(;(i=r.next())&&!i.done;){const r=i.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:A,hasOwnProperty:I,hasOwnProp:I,reduceDescriptors:D,freezeMethods:e=>{D(e,(t,r)=>{if(m(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];m(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))})},toObjectSet:(e,t)=>{const r={},n=e=>{e.forEach(e=>{r[e]=!0})};return l(e)?n(e):n(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:R,global:O,isContextDefined:P,isSpecCompliantForm:function(e){return!!(e&&m(e.append)&&"FormData"===e[i]&&e[n])},toJSONObject:e=>{const t=new Array(10),r=(e,n)=>{if(h(e)){if(t.indexOf(e)>=0)return;if(u(e))return e;if(!("toJSON"in e)){t[n]=e;const i=l(e)?[]:{};return T(e,(e,t)=>{const o=r(e,n+1);!c(o)&&(i[t]=o)}),t[n]=void 0,i}}return e};return r(e,0)},isAsyncFn:z,isThenable:e=>e&&(h(e)||m(e))&&m(e.then)&&m(e.catch),setImmediate:B,asap:L,isIterable:e=>null!=e&&m(e[n])};class U extends Error{static from(e,t,r,n,i,o){const s=new U(e.message,t||e.code,r,n,i);return s.cause=e,s.name=e.name,null!=e.status&&null==s.status&&(s.status=e.status),o&&Object.assign(s,o),s}constructor(e,t,r,n,i){super(e),Object.defineProperty(this,"message",{value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i,this.status=i.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:q.toJSONObject(this.config),code:this.code,status:this.status}}}U.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",U.ERR_BAD_OPTION="ERR_BAD_OPTION",U.ECONNABORTED="ECONNABORTED",U.ETIMEDOUT="ETIMEDOUT",U.ERR_NETWORK="ERR_NETWORK",U.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",U.ERR_DEPRECATED="ERR_DEPRECATED",U.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",U.ERR_BAD_REQUEST="ERR_BAD_REQUEST",U.ERR_CANCELED="ERR_CANCELED",U.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",U.ERR_INVALID_URL="ERR_INVALID_URL";var H=U;function F(e){return q.isPlainObject(e)||q.isArray(e)}function $(e){return q.endsWith(e,"[]")?e.slice(0,-2):e}function V(e,t,r){return e?e.concat(t).map(function(e,t){return e=$(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}const G=q.toFlatObject(q,{},null,function(e){return/^is[A-Z]/.test(e)});function W(e,t,r){if(!q.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(r=q.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!q.isUndefined(t[e])})).metaTokens,i=r.visitor||c,o=r.dots,s=r.indexes,a=(r.Blob||"undefined"!=typeof Blob&&Blob)&&q.isSpecCompliantForm(t);if(!q.isFunction(i))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(q.isDate(e))return e.toISOString();if(q.isBoolean(e))return e.toString();if(!a&&q.isBlob(e))throw new H("Blob is not supported. Use a Buffer instead.");return q.isArrayBuffer(e)||q.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,r,i){let a=e;if(q.isReactNative(t)&&q.isReactNativeBlob(e))return t.append(V(i,r,o),l(e)),!1;if(e&&!i&&"object"==typeof e)if(q.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(q.isArray(e)&&function(e){return q.isArray(e)&&!e.some(F)}(e)||(q.isFileList(e)||q.endsWith(r,"[]"))&&(a=q.toArray(e)))return r=$(r),a.forEach(function(e,n){!q.isUndefined(e)&&null!==e&&t.append(!0===s?V([r],n,o):null===s?r:r+"[]",l(e))}),!1;return!!F(e)||(t.append(V(i,r,o),l(e)),!1)}const u=[],p=Object.assign(G,{defaultVisitor:c,convertValue:l,isVisitable:F});if(!q.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!q.isUndefined(r)){if(-1!==u.indexOf(r))throw Error("Circular reference detected in "+n.join("."));u.push(r),q.forEach(r,function(r,o){!0===(!(q.isUndefined(r)||null===r)&&i.call(t,r,q.isString(o)?o.trim():o,n,p))&&e(r,n?n.concat(o):[o])}),u.pop()}}(e),t}function K(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function X(e,t){this._pairs=[],e&&W(e,this,t)}const Q=X.prototype;function Y(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function J(e,t,r){if(!t)return e;const n=r&&r.encode||Y,i=q.isFunction(r)?{serialize:r}:r,o=i&&i.serialize;let s;if(s=o?o(t,i):q.isURLSearchParams(t)?t.toString():new X(t,i).toString(n),s){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+s}return e}Q.append=function(e,t){this._pairs.push([e,t])},Q.toString=function(e){const t=e?function(t){return e.call(this,t,K)}:K;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};var Z=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){q.forEach(this.handlers,function(t){null!==t&&e(t)})}},ee={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},te={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:X,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const re="undefined"!=typeof window&&"undefined"!=typeof document,ne="object"==typeof navigator&&navigator||void 0,ie=re&&(!ne||["ReactNative","NativeScript","NS"].indexOf(ne.product)<0),oe="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,se=re&&window.location.href||"http://localhost";var ae={...Object.freeze({__proto__:null,hasBrowserEnv:re,hasStandardBrowserWebWorkerEnv:oe,hasStandardBrowserEnv:ie,navigator:ne,origin:se}),...te};function le(e){function t(e,r,n,i){let o=e[i++];if("__proto__"===o)return!0;const s=Number.isFinite(+o),a=i>=e.length;if(o=!o&&q.isArray(n)?n.length:o,a)return q.hasOwnProp(n,o)?n[o]=[n[o],r]:n[o]=r,!s;n[o]&&q.isObject(n[o])||(n[o]=[]);return t(e,r,n[o],i)&&q.isArray(n[o])&&(n[o]=function(e){const t={},r=Object.keys(e);let n;const i=r.length;let o;for(n=0;n<i;n++)o=r[n],t[o]=e[o];return t}(n[o])),!s}if(q.isFormData(e)&&q.isFunction(e.entries)){const r={};return q.forEachEntry(e,(e,n)=>{t(function(e){return q.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),n,r,0)}),r}return null}const ce={transitional:ee,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,i=q.isObject(e);i&&q.isHTMLForm(e)&&(e=new FormData(e));if(q.isFormData(e))return n?JSON.stringify(le(e)):e;if(q.isArrayBuffer(e)||q.isBuffer(e)||q.isStream(e)||q.isFile(e)||q.isBlob(e)||q.isReadableStream(e))return e;if(q.isArrayBufferView(e))return e.buffer;if(q.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return W(e,new ae.classes.URLSearchParams,{visitor:function(e,t,r,n){return ae.isNode&&q.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((o=q.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return W(o?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||n?(t.setContentType("application/json",!1),function(e,t,r){if(q.isString(e))try{return(t||JSON.parse)(e),q.trim(e)}catch(n){if("SyntaxError"!==n.name)throw n}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||ce.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(q.isResponse(e)||q.isReadableStream(e))return e;if(e&&q.isString(e)&&(r&&!this.responseType||n)){const r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e,this.parseReviver)}catch(i){if(r){if("SyntaxError"===i.name)throw H.from(i,H.ERR_BAD_RESPONSE,this,null,this.response);throw i}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ae.classes.FormData,Blob:ae.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};q.forEach(["delete","get","head","post","put","patch"],e=>{ce.headers[e]={}});var ue=ce;const pe=q.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const de=Symbol("internals");function me(e){return e&&String(e).trim().toLowerCase()}function fe(e){return!1===e||null==e?e:q.isArray(e)?e.map(fe):String(e)}function he(e,t,r,n,i){return q.isFunction(n)?n.call(this,t,r):(i&&(t=r),q.isString(t)?q.isString(n)?-1!==t.indexOf(n):q.isRegExp(n)?n.test(t):void 0:void 0)}class ye{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function i(e,t,r){const i=me(t);if(!i)throw new Error("header name must be a non-empty string");const o=q.findKey(n,i);(!o||void 0===n[o]||!0===r||void 0===r&&!1!==n[o])&&(n[o||t]=fe(e))}const o=(e,t)=>q.forEach(e,(e,r)=>i(e,r,t));if(q.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(q.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))o((e=>{const t={};let r,n,i;return e&&e.split("\n").forEach(function(e){i=e.indexOf(":"),r=e.substring(0,i).trim().toLowerCase(),n=e.substring(i+1).trim(),!r||t[r]&&pe[r]||("set-cookie"===r?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t})(e),t);else if(q.isObject(e)&&q.isIterable(e)){let r,n,i={};for(const t of e){if(!q.isArray(t))throw TypeError("Object iterator must return a key-value pair");i[n=t[0]]=(r=i[n])?q.isArray(r)?[...r,t[1]]:[r,t[1]]:t[1]}o(i,t)}else null!=e&&i(t,e,r);return this}get(e,t){if(e=me(e)){const r=q.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}(e);if(q.isFunction(t))return t.call(this,e,r);if(q.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=me(e)){const r=q.findKey(this,e);return!(!r||void 0===this[r]||t&&!he(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function i(e){if(e=me(e)){const i=q.findKey(r,e);!i||t&&!he(0,r[i],i,t)||(delete r[i],n=!0)}}return q.isArray(e)?e.forEach(i):i(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const i=t[r];e&&!he(0,this[i],i,e,!0)||(delete this[i],n=!0)}return n}normalize(e){const t=this,r={};return q.forEach(this,(n,i)=>{const o=q.findKey(r,i);if(o)return t[o]=fe(n),void delete t[i];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r)}(i):String(i).trim();s!==i&&delete t[i],t[s]=fe(n),r[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return q.forEach(this,(r,n)=>{null!=r&&!1!==r&&(t[n]=e&&q.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){const t=(this[de]=this[de]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=me(e);t[n]||(!function(e,t){const r=q.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(e,r,i){return this[n].call(this,t,e,r,i)},configurable:!0})})}(r,e),t[n]=!0)}return q.isArray(e)?e.forEach(n):n(e),this}}ye.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),q.reduceDescriptors(ye.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),q.freezeMethods(ye);var ge=ye;function be(e,t){const r=this||ue,n=t||r,i=ge.from(n.headers);let o=n.data;return q.forEach(e,function(e){o=e.call(r,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function ve(e){return!(!e||!e.__CANCEL__)}var xe=class extends H{constructor(e,t,r){super(null==e?"canceled":e,H.ERR_CANCELED,t,r),this.name="CanceledError",this.__CANCEL__=!0}};function we(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new H("Request failed with status code "+r.status,[H.ERR_BAD_REQUEST,H.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}const Se=(e,t,r=3)=>{let n=0;const i=function(e,t){e=e||10;const r=new Array(e),n=new Array(e);let i,o=0,s=0;return t=void 0!==t?t:1e3,function(a){const l=Date.now(),c=n[s];i||(i=l),r[o]=a,n[o]=l;let u=s,p=0;for(;u!==o;)p+=r[u++],u%=e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),l-i<t)return;const d=c&&l-c;return d?Math.round(1e3*p/d):void 0}}(50,250);return function(e,t){let r,n,i=0,o=1e3/t;const s=(t,o=Date.now())=>{i=o,r=null,n&&(clearTimeout(n),n=null),e(...t)};return[(...e)=>{const t=Date.now(),a=t-i;a>=o?s(e,t):(r=e,n||(n=setTimeout(()=>{n=null,s(r)},o-a)))},()=>r&&s(r)]}(r=>{const o=r.loaded,s=r.lengthComputable?r.total:void 0,a=o-n,l=i(a);n=o;e({loaded:o,total:s,progress:s?o/s:void 0,bytes:a,rate:l||void 0,estimated:l&&s&&o<=s?(s-o)/l:void 0,event:r,lengthComputable:null!=s,[t?"download":"upload"]:!0})},r)},Ne=(e,t)=>{const r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},je=e=>(...t)=>q.asap(()=>e(...t));var Ee=ae.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,ae.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(ae.origin),ae.navigator&&/(msie|trident)/i.test(ae.navigator.userAgent)):()=>!0,Ce=ae.hasStandardBrowserEnv?{write(e,t,r,n,i,o,s){if("undefined"==typeof document)return;const a=[`${e}=${encodeURIComponent(t)}`];q.isNumber(r)&&a.push(`expires=${new Date(r).toUTCString()}`),q.isString(n)&&a.push(`path=${n}`),q.isString(i)&&a.push(`domain=${i}`),!0===o&&a.push("secure"),q.isString(s)&&a.push(`SameSite=${s}`),document.cookie=a.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function ke(e,t,r){let n=!("string"==typeof(i=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(i));var i;return e&&(n||0==r)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Te=e=>e instanceof ge?{...e}:e;function Re(e,t){t=t||{};const r={};function n(e,t,r,n){return q.isPlainObject(e)&&q.isPlainObject(t)?q.merge.call({caseless:n},e,t):q.isPlainObject(t)?q.merge({},t):q.isArray(t)?t.slice():t}function i(e,t,r,i){return q.isUndefined(t)?q.isUndefined(e)?void 0:n(void 0,e,0,i):n(e,t,0,i)}function o(e,t){if(!q.isUndefined(t))return n(void 0,t)}function s(e,t){return q.isUndefined(t)?q.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function a(r,i,o){return o in t?n(r,i):o in e?n(void 0,r):void 0}const l={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(e,t,r)=>i(Te(e),Te(t),0,!0)};return q.forEach(Object.keys({...e,...t}),function(n){if("__proto__"===n||"constructor"===n||"prototype"===n)return;const o=q.hasOwnProp(l,n)?l[n]:i,s=o(e[n],t[n],n);q.isUndefined(s)&&o!==a||(r[n]=s)}),r}var Oe=e=>{const t=Re({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:o,headers:s,auth:a}=t;if(t.headers=s=ge.from(s),t.url=J(ke(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),q.isFormData(r))if(ae.hasStandardBrowserEnv||ae.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(q.isFunction(r.getHeaders)){const e=r.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,r])=>{t.includes(e.toLowerCase())&&s.set(e,r)})}if(ae.hasStandardBrowserEnv&&(n&&q.isFunction(n)&&(n=n(t)),n||!1!==n&&Ee(t.url))){const e=i&&o&&Ce.read(o);e&&s.set(i,e)}return t};var Pe="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,r){const n=Oe(e);let i=n.data;const o=ge.from(n.headers).normalize();let s,a,l,c,u,{responseType:p,onUploadProgress:d,onDownloadProgress:m}=n;function f(){c&&c(),u&&u(),n.cancelToken&&n.cancelToken.unsubscribe(s),n.signal&&n.signal.removeEventListener("abort",s)}let h=new XMLHttpRequest;function y(){if(!h)return;const n=ge.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders());we(function(e){t(e),f()},function(e){r(e),f()},{data:p&&"text"!==p&&"json"!==p?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:n,config:e,request:h}),h=null}h.open(n.method.toUpperCase(),n.url,!0),h.timeout=n.timeout,"onloadend"in h?h.onloadend=y:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(y)},h.onabort=function(){h&&(r(new H("Request aborted",H.ECONNABORTED,e,h)),h=null)},h.onerror=function(t){const n=t&&t.message?t.message:"Network Error",i=new H(n,H.ERR_NETWORK,e,h);i.event=t||null,r(i),h=null},h.ontimeout=function(){let t=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const i=n.transitional||ee;n.timeoutErrorMessage&&(t=n.timeoutErrorMessage),r(new H(t,i.clarifyTimeoutError?H.ETIMEDOUT:H.ECONNABORTED,e,h)),h=null},void 0===i&&o.setContentType(null),"setRequestHeader"in h&&q.forEach(o.toJSON(),function(e,t){h.setRequestHeader(t,e)}),q.isUndefined(n.withCredentials)||(h.withCredentials=!!n.withCredentials),p&&"json"!==p&&(h.responseType=n.responseType),m&&([l,u]=Se(m,!0),h.addEventListener("progress",l)),d&&h.upload&&([a,c]=Se(d),h.upload.addEventListener("progress",a),h.upload.addEventListener("loadend",c)),(n.cancelToken||n.signal)&&(s=t=>{h&&(r(!t||t.type?new xe(null,e,h):t),h.abort(),h=null)},n.cancelToken&&n.cancelToken.subscribe(s),n.signal&&(n.signal.aborted?s():n.signal.addEventListener("abort",s)));const g=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(n.url);g&&-1===ae.protocols.indexOf(g)?r(new H("Unsupported protocol "+g+":",H.ERR_BAD_REQUEST,e)):h.send(i||null)})};var _e=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let r,n=new AbortController;const i=function(e){if(!r){r=!0,s();const t=e instanceof Error?e:this.reason;n.abort(t instanceof H?t:new xe(t instanceof Error?t.message:t))}};let o=t&&setTimeout(()=>{o=null,i(new H(`timeout of ${t}ms exceeded`,H.ETIMEDOUT))},t);const s=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)}),e=null)};e.forEach(e=>e.addEventListener("abort",i));const{signal:a}=n;return a.unsubscribe=()=>q.asap(s),a}};const Ae=function*(e,t){let r=e.byteLength;if(r<t)return void(yield e);let n,i=0;for(;i<r;)n=i+t,yield e.slice(i,n),i=n},Ie=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}},Me=(e,t,r,n)=>{const i=async function*(e,t){for await(const r of Ie(e))yield*Ae(r,t)}(e,t);let o,s=0,a=e=>{o||(o=!0,n&&n(e))};return new ReadableStream({async pull(e){try{const{done:t,value:n}=await i.next();if(t)return a(),void e.close();let o=n.byteLength;if(r){let e=s+=o;r(e)}e.enqueue(new Uint8Array(n))}catch(t){throw a(t),t}},cancel:e=>(a(e),i.return())},{highWaterMark:2})},{isFunction:De}=q,ze=(({Request:e,Response:t})=>({Request:e,Response:t}))(q.global),{ReadableStream:Be,TextEncoder:Le}=q.global,qe=(e,...t)=>{try{return!!e(...t)}catch(r){return!1}},Ue=e=>{e=q.merge.call({skipUndefined:!0},ze,e);const{fetch:t,Request:r,Response:n}=e,i=t?De(t):"function"==typeof fetch,o=De(r),s=De(n);if(!i)return!1;const a=i&&De(Be),l=i&&("function"==typeof Le?(e=>t=>e.encode(t))(new Le):async e=>new Uint8Array(await new r(e).arrayBuffer())),c=o&&a&&qe(()=>{let e=!1;const t=new r(ae.origin,{body:new Be,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),u=s&&a&&qe(()=>q.isReadableStream(new n("").body)),p={stream:u&&(e=>e.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!p[e]&&(p[e]=(t,r)=>{let n=t&&t[e];if(n)return n.call(t);throw new H(`Response type '${e}' is not supported`,H.ERR_NOT_SUPPORT,r)})});const d=async(e,t)=>{const n=q.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(q.isBlob(e))return e.size;if(q.isSpecCompliantForm(e)){const t=new r(ae.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return q.isArrayBufferView(e)||q.isArrayBuffer(e)?e.byteLength:(q.isURLSearchParams(e)&&(e+=""),q.isString(e)?(await l(e)).byteLength:void 0)})(t):n};return async e=>{let{url:i,method:s,data:a,signal:l,cancelToken:m,timeout:f,onDownloadProgress:h,onUploadProgress:y,responseType:g,headers:b,withCredentials:v="same-origin",fetchOptions:x}=Oe(e),w=t||fetch;g=g?(g+"").toLowerCase():"text";let S=_e([l,m&&m.toAbortSignal()],f),N=null;const j=S&&S.unsubscribe&&(()=>{S.unsubscribe()});let E;try{if(y&&c&&"get"!==s&&"head"!==s&&0!==(E=await d(b,a))){let e,t=new r(i,{method:"POST",body:a,duplex:"half"});if(q.isFormData(a)&&(e=t.headers.get("content-type"))&&b.setContentType(e),t.body){const[e,r]=Ne(E,Se(je(y)));a=Me(t.body,65536,e,r)}}q.isString(v)||(v=v?"include":"omit");const t=o&&"credentials"in r.prototype,l={...x,signal:S,method:s.toUpperCase(),headers:b.normalize().toJSON(),body:a,duplex:"half",credentials:t?v:void 0};N=o&&new r(i,l);let m=await(o?w(N,x):w(i,l));const f=u&&("stream"===g||"response"===g);if(u&&(h||f&&j)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=m[t]});const t=q.toFiniteNumber(m.headers.get("content-length")),[r,i]=h&&Ne(t,Se(je(h),!0))||[];m=new n(Me(m.body,65536,r,()=>{i&&i(),j&&j()}),e)}g=g||"text";let C=await p[q.findKey(p,g)||"text"](m,e);return!f&&j&&j(),await new Promise((t,r)=>{we(t,r,{data:C,headers:ge.from(m.headers),status:m.status,statusText:m.statusText,config:e,request:N})})}catch(C){if(j&&j(),C&&"TypeError"===C.name&&/Load failed|fetch/i.test(C.message))throw Object.assign(new H("Network Error",H.ERR_NETWORK,e,N,C&&C.response),{cause:C.cause||C});throw H.from(C,C&&C.code,e,N,C&&C.response)}}},He=new Map,Fe=e=>{let t=e&&e.env||{};const{fetch:r,Request:n,Response:i}=t,o=[n,i,r];let s,a,l=o.length,c=He;for(;l--;)s=o[l],a=c.get(s),void 0===a&&c.set(s,a=l?new Map:Ue(t)),c=a;return a};Fe();const $e={http:null,xhr:Pe,fetch:{get:Fe}};q.forEach($e,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(r){}Object.defineProperty(e,"adapterName",{value:t})}});const Ve=e=>`- ${e}`,Ge=e=>q.isFunction(e)||null===e||!1===e;var We={getAdapter:function(e,t){e=q.isArray(e)?e:[e];const{length:r}=e;let n,i;const o={};for(let s=0;s<r;s++){let r;if(n=e[s],i=n,!Ge(n)&&(i=$e[(r=String(n)).toLowerCase()],void 0===i))throw new H(`Unknown adapter '${r}'`);if(i&&(q.isFunction(i)||(i=i.get(t))))break;o[r||"#"+s]=i}if(!i){const e=Object.entries(o).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let t=r?e.length>1?"since :\n"+e.map(Ve).join("\n"):" "+Ve(e[0]):"as no adapter specified";throw new H("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return i},adapters:$e};function Ke(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new xe(null,e)}function Xe(e){Ke(e),e.headers=ge.from(e.headers),e.data=be.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return We.getAdapter(e.adapter||ue.adapter,e)(e).then(function(t){return Ke(e),t.data=be.call(e,e.transformResponse,t),t.headers=ge.from(t.headers),t},function(t){return ve(t)||(Ke(e),t&&t.response&&(t.response.data=be.call(e,e.transformResponse,t.response),t.response.headers=ge.from(t.response.headers))),Promise.reject(t)})}const Qe="1.13.6",Ye={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ye[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Je={};Ye.transitional=function(e,t,r){return(n,i,o)=>{if(!1===e)throw new H(function(e,t){return"[Axios v"+Qe+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}(i," has been removed"+(t?" in "+t:"")),H.ERR_DEPRECATED);return t&&!Je[i]&&(Je[i]=!0),!e||e(n,i,o)}},Ye.spelling=function(e){return(e,t)=>!0};var Ze={assertOptions:function(e,t,r){if("object"!=typeof e)throw new H("options must be an object",H.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const o=n[i],s=t[o];if(s){const t=e[o],r=void 0===t||s(t,o,e);if(!0!==r)throw new H("option "+o+" must be "+r,H.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new H("Unknown option "+o,H.ERR_BAD_OPTION)}},validators:Ye};const et=Ze.validators;class tt{constructor(e){this.defaults=e||{},this.interceptors={request:new Z,response:new Z}}async request(e,t){try{return await this._request(e,t)}catch(r){if(r instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{r.stack?t&&!String(r.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(r.stack+="\n"+t):r.stack=t}catch(n){}}throw r}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Re(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:i}=t;void 0!==r&&Ze.assertOptions(r,{silentJSONParsing:et.transitional(et.boolean),forcedJSONParsing:et.transitional(et.boolean),clarifyTimeoutError:et.transitional(et.boolean),legacyInterceptorReqResOrdering:et.transitional(et.boolean)},!1),null!=n&&(q.isFunction(n)?t.paramsSerializer={serialize:n}:Ze.assertOptions(n,{encode:et.function,serialize:et.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Ze.assertOptions(t,{baseUrl:et.spelling("baseURL"),withXsrfToken:et.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=i&&q.merge(i.common,i[t.method]);i&&q.forEach(["delete","get","head","post","put","patch","common"],e=>{delete i[e]}),t.headers=ge.concat(o,i);const s=[];let a=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;a=a&&e.synchronous;const r=t.transitional||ee;r&&r.legacyInterceptorReqResOrdering?s.unshift(e.fulfilled,e.rejected):s.push(e.fulfilled,e.rejected)});const l=[];let c;this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)});let u,p=0;if(!a){const e=[Xe.bind(this),void 0];for(e.unshift(...s),e.push(...l),u=e.length,c=Promise.resolve(t);p<u;)c=c.then(e[p++],e[p++]);return c}u=s.length;let d=t;for(;p<u;){const e=s[p++],t=s[p++];try{d=e(d)}catch(m){t.call(this,m);break}}try{c=Xe.call(this,d)}catch(m){return Promise.reject(m)}for(p=0,u=l.length;p<u;)c=c.then(l[p++],l[p++]);return c}getUri(e){return J(ke((e=Re(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}q.forEach(["delete","get","head","options"],function(e){tt.prototype[e]=function(t,r){return this.request(Re(r||{},{method:e,url:t,data:(r||{}).data}))}}),q.forEach(["post","put","patch"],function(e){function t(t){return function(r,n,i){return this.request(Re(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}tt.prototype[e]=t(),tt.prototype[e+"Form"]=t(!0)});var rt=tt;class nt{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const r=this;this.promise.then(e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t;const n=new Promise(e=>{r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e(function(e,n,i){r.reason||(r.reason=new xe(e,n,i),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new nt(function(t){e=t}),cancel:e}}}var it=nt;const ot={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(ot).forEach(([e,t])=>{ot[t]=e});var st=ot;const at=function t(r){const n=new rt(r),i=e(rt.prototype.request,n);return q.extend(i,rt.prototype,n,{allOwnKeys:!0}),q.extend(i,n,null,{allOwnKeys:!0}),i.create=function(e){return t(Re(r,e))},i}(ue);return at.Axios=rt,at.CanceledError=xe,at.CancelToken=it,at.isCancel=ve,at.VERSION=Qe,at.toFormData=W,at.AxiosError=H,at.Cancel=at.CanceledError,at.all=function(e){return Promise.all(e)},at.spread=function(e){return function(t){return e.apply(null,t)}},at.isAxiosError=function(e){return q.isObject(e)&&!0===e.isAxiosError},at.mergeConfig=Re,at.AxiosHeaders=ge,at.formToJSON=e=>le(q.isHTMLForm(e)?new FormData(e):e),at.getAdapter=We.getAdapter,at.HttpStatusCode=st,at.default=at,pr=at}var yr,gr,br,vr={};function xr(){if(yr)return vr;yr=1;var e=vr&&vr.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e))}catch(t){o(t)}}function a(e){try{l(n.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})};Object.defineProperty(vr,"__esModule",{value:!0}),vr.CroSiteClient=void 0;const t=rr(),r={local:{xtool:{us:{},cn:{}},makeblock:{us:{},cn:{}}},dev:{xtool:{us:{},cn:{}},makeblock:{us:{},cn:{}}},test_us:{xtool:{us:{passport:"https://passport-api-test.xtool.com",customthing:"https://passport-api-test.customthings.com",designFind:"https://passport-api-test.designfind.com",atomm:"https://passport-api-test.atomm.com"},cn:{}},makeblock:{us:{},cn:{}}},test:{xtool:{us:{passport:"https://passport-api-test.xtool.com",customthing:"https://passport-api-test.customthings.com",designFind:"https://passport-api-test.designfind.com",atomm:"https://passport-api-test.atomm.com"},cn:{}},makeblock:{us:{},cn:{}}},pre:{xtool:{us:{passport:"https://passport-api-pre.xtool.com",customthing:"https://passport-api-pre.customthings.com",designFind:"https://passport-api-pre.designfind.com",atomm:"https://passport-api-pre.atomm.com"},cn:{}},makeblock:{us:{},cn:{}}},prod:{xtool:{us:{passport:"https://passport-api.xtool.com",customthing:"https://passport-api.customthings.com",atomm:"https://passport-api.atomm.com"},cn:{passport:"https://passport-api.makextool.com",customthing:"https://passport-api.customthings.cn",atomm:"https://passport-api.atomm.com.cn"}},makeblock:{us:{},cn:{}}}},n="/v1/cookie/add-cookies";return vr.CroSiteClient=class{constructor(e){this._area=t.AREA.US,this._env=t.CLIENT_ENV.PROD,this._domainSpace=t.DOMAIN_SPACE.XTOOL;const{env:r,domainSpace:n,area:i}=e;r&&(this.env=r),n&&(this.domainSpace=n),i&&(this.area=i)}set area(e){this._area=e}get area(){return this._area}set env(e){this._env=e}get env(){return this._env}set domainSpace(e){this._domainSpace=e}get domainSpace(){return this._domainSpace}get domain(){var e,t;return null===(t=null===(e=r[this.env])||void 0===e?void 0:e[this.domainSpace])||void 0===t?void 0:t[this.area]}getSubHost(e){return new URL(e).hostname.split(".").slice(1).join(".")}setCookie(e){return fetch(e,{method:"GET",credentials:"include"}).then(()=>!0).catch(()=>!0)}setCrosSiteCookie(t){return e(this,void 0,void 0,function*(){const e=this.domain||{},r=[];for(const n in e){const i=e[n];r.push(this.setCookie(`${i}/v1/cookie/set-cookies?utoken=${t}&domain=${this.getSubHost(i)}`))}return Promise.all(r)})}setThirdPartyCookie(t,r){return e(this,void 0,void 0,function*(){if(!r)return;let e=yield this.preFetchThirdPartyCookie();const i=this.domain,o=[];for(const t in i){const r=i[t];r.includes(`.${this.getSubHost(location.origin)}`)||e.includes(`${r}${n}`)||o.push(`${r}${n}`)}let s=t;for(let t=o.length-1;t>=0;t--)s=`${o[t]}?utoken=${r}&domain=${this.getSubHost(o[t])}&target=${encodeURIComponent(s)}`;window.location.href=s})}preFetchThirdPartyCookie(){return e(this,void 0,void 0,function*(){const t=[],r=this.domain;let i=[];for(const e in r){const t=r[e];i.push(`${t}${n}`)}return yield Promise.all(i.map(r=>e(this,void 0,void 0,function*(){try{return yield fetch(r),!0}catch(e){return t.push(r),!1}}))),t})}},vr}function wr(){if(gr)return zt;gr=1;var e,t,r,n=zt&&zt.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=zt&&zt.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=zt&&zt.__importStar||function(){var e=function(t){return(e=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t})(t)};return function(t){if(t&&t.__esModule)return t;var r={};if(null!=t)for(var o=e(t),s=0;s<o.length;s++)"default"!==o[s]&&n(r,t,o[s]);return i(r,t),r}}(),s=zt&&zt.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e))}catch(t){o(t)}}function a(e){try{l(n.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})},a=zt&&zt.__classPrivateFieldSet||function(e,t,r,n,i){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(e,r):i?i.value=r:t.set(e,r),r},l=zt&&zt.__classPrivateFieldGet||function(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)},c=zt&&zt.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r},u=zt&&zt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(zt,"__esModule",{value:!0}),zt.MRequest=void 0;const p=u(qt()),d=Ft(),m=o(($t||($t=1,Object.defineProperty(Vt,"__esModule",{value:!0}),Vt.QUERY=Vt.googleClientId=void 0,Vt.googleClientId="741723023720-rvn5ckm07n0k2m2iits9t9fike24b0d8.apps.googleusercontent.com",Vt.QUERY={PLATFORM:"p",REDIRECT:"r",MODE:"md",SHOW_SWITCH_HOST:"sh",SHOW_SOCIAL_LOGIN:"sl",SHOW_SWITCH_LOGIN_REGISTER:"lr",ONLY_PHONE_LOGIN:"op",USE_LOCALSTORAGE:"uls",USE_RELOGIN:"rl",HIDE_LOGO:"hl",LOGO:"lo",BUSINESS_LOGO:"blo",TEXT_LOGO:"tlo",SUB_TEXT_LOGO:"stlo",COPYRIGHT:"cr",ORG_CODE:"oc",TOKEN:"ut",CLEAR_TOKEN:"cut",COOKIES_SAME_SITE:"sameSite",COOKIES_SECURE:"secure",APP_VERSION:"av",SYSTEM:"s",ORIGIN:"o",CUSTOM_IMAGE:"img"},Vt.default={dev:{xtool:{us:{page:"https://dev-web.makeblock.com/xtool-passport/index.html#/",coopPage:"https://dev-web-cf.makeblock.com/xtool-passport/index.html#/",prefetch:"https://dev-web.makeblock.com/xtool-passport/prefetch.html",api:"https://xtool-passport-api-dev.makeblock.com/v1"},eu:{page:"https://dev-web.makeblock.com/xtool-passport/index.html#/",coopPage:"https://dev-web-cf.makeblock.com/xtool-passport/index.html#/",prefetch:"https://dev-web.makeblock.com/xtool-passport/prefetch.html",api:"https://xtool-passport-api-dev.makeblock.com/v1"},cn:{page:"https://dev-web.makeblock.com/xtool-passport/index.html#/",coopPage:"https://dev-web-cf.makeblock.com/xtool-passport/index.html#/",prefetch:"https://dev-web.makeblock.com/xtool-passport/prefetch.html",api:"https://xtool-passport-api-dev.makeblock.com/v1"}},makeblock:{us:{page:"https://dev-web.makeblock.com/passport/index.html#/",api:"https://passport-api-dev.makeblock.com/v1"},eu:{page:"https://dev-web.makeblock.com/passport/index.html#/",api:"https://passport-api-dev.makeblock.com/v1"},cn:{page:"https://dev-web.makeblock.com/passport/index.html#/",api:"https://passport-api-dev.makeblock.com/v1"}}},test:{xtool:{us:{page:"https://test-web.xtool.com/xtool-passport/index.html#/",coopPage:"https://test-web-cf.atomm.com/xtool-passport/index.html#/",prefetch:"https://test-web.xtool.com/xtool-passport/prefetch.html",api:"https://passport-api-test.xtool.com/v1"},eu:{page:"https://test-web.mblock.cc/xtool-passport/index.html#/",coopPage:"https://test-web-cf.atomm.com/xtool-passport/index.html#/",prefetch:"https://test-web.mblock.cc/xtool-passport/prefetch.html",api:"https://passport-api-test.mblock.cc/v1"},cn:{page:"https://test-web.makeblock.com/xtool-passport/index.html#/",coopPage:"https://test-web-cf.makeblock.com/xtool-passport/index.html#/",prefetch:"https://test-web.makeblock.com/xtool-passport/prefetch.html",api:"https://xtool-passport-api-test.makeblock.com/v1"}},makeblock:{us:{page:"https://test-web.makeblock.com/passport/index.html#/",api:"https://passport-api-test.mblock.cc/v1"},eu:{page:"https://test-web.mblock.cc/passport/index.html#/",api:"https://passport-api-test.mblock.cc/v1"},cn:{page:"https://test-web.makeblock.com/passport/index.html#/",api:"https://passport-api-test.makeblock.com/v1"}}},test_us:{xtool:{us:{page:"https://test-web.xtool.com/xtool-passport/index.html#/",coopPage:"https://test-web-cf.atomm.com/xtool-passport/index.html#/",prefetch:"https://test-web.xtool.com/xtool-passport/prefetch.html",api:"https://passport-api-test.xtool.com/v1"},eu:{page:"https://test-web.mblock.cc/xtool-passport/index.html#/",coopPage:"https://test-web-cf.atomm.com/xtool-passport/index.html#/",prefetch:"https://test-web.mblock.cc/xtool-passport/prefetch.html",api:"https://passport-api-test.mblock.cc/v1"},cn:{page:"https://test-web.makeblock.com/xtool-passport/index.html#/",coopPage:"https://test-web-cf.makeblock.com/xtool-passport/index.html#/",prefetch:"https://test-web.makeblock.com/xtool-passport/prefetch.html",api:"https://xtool-passport-api-test.makeblock.com/v1"}},makeblock:{us:{page:"https://test-web.makeblock.com/passport/index.html#/",api:"https://passport-api-test.mblock.cc/v1"},eu:{page:"https://test-web.mblock.cc/passport/index.html#/",api:"https://passport-api-test.mblock.cc/v1"},cn:{page:"https://test-web.makeblock.com/passport/index.html#/",api:"https://passport-api-test.makeblock.com/v1"}}},pre:{xtool:{us:{page:"https://pre-web.xtool.com/xtool-passport/index.html#/",coopPage:"https://pre-web-cf.atomm.com/xtool-passport/index.html#/",prefetch:"https://pre-web.xtool.com/xtool-passport/prefetch.html",api:"https://passport-api-pre.xtool.com/v1"},eu:{page:"https://pre-web.xtool.com/xtool-passport/index.html#/",coopPage:"https://pre-web-cf.atomm.com/xtool-passport/index.html#/",prefetch:"https://pre-web.xtool.com/xtool-passport/prefetch.html",api:"https://passport-api-pre.xtool.com/v1"},cn:{page:"https://pre-web.xtool.com/xtool-passport/index.html#/",coopPage:"https://pre-web-cf.atomm.com/xtool-passport/index.html#/",prefetch:"https://pre-web.xtool.com/xtool-passport/prefetch.html",api:"https://passport-api-pre.xtool.com/v1"}},makeblock:{}},prod:{xtool:{us:{page:"https://passport.xtool.com/#/",coopPage:"https://passport.atomm.com/index.html/#/",prefetch:"https://passport.xtool.com/prefetch.html",api:"https://passport-api.xtool.com/v1"},eu:{page:"https://passport.xtool.com/#/",coopPage:"https://passport.atomm.com/index.html/#/",prefetch:"https://passport.xtool.com/prefetch.html",api:"https://passport-api.xtool.com/v1"},cn:{page:"https://passport.makextool.com/#/",coopPage:"https://passport.atomm.com/index.html/#/",prefetch:"https://passport.makextool.com/prefetch.html",api:"https://passport-api.makextool.com/v1"}},makeblock:{us:{page:"https://passport.mblock.cc/#/",api:"https://passport-api.mblock.cc/v1"},eu:{page:"https://passport.mblock.cc/#/",api:"https://passport-api.mblock.cc/v1"},cn:{page:"https://passport.makeblock.com/#/",api:"https://passport-api.makeblock.com/v1"}}}}),Vt)),f=Xt(),h=rr(),y=ur(),g=o(function(){if(mr)return fr;mr=1;var e=fr&&fr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(fr,"__esModule",{value:!0}),fr.mr=void 0;const t=e(hr());class r{constructor(){this.axios=t.default.create({timeout:3e4,transformRequest:[e=>JSON.stringify(e)],transformResponse:[e=>JSON.parse(e)]}),this.interceptors()}interceptors(){this.axios.interceptors.request.use(e=>(e.headers["Content-Type"]="application/json;charset=UTF-8",Promise.resolve(e)),e=>Promise.reject(e)),this.axios.interceptors.response.use(e=>{const{status:t,data:r}=e;return 200===t&&0===r.code?Promise.resolve(r.data):Promise.reject(r)},e=>Promise.reject(e))}apis(e){const t=this,r=Object.keys(e),n={};return r.forEach(r=>{const i=e[r].split(" ");let[o,s="GET"]=i;s=s.toLowerCase(),Object.defineProperty(n,r,{value(...e){const r=s.toUpperCase();if("GET"===r)return t.axios.get(o,...e);if("POST"===r)return t.axios.post(o,...e);if("PUT"===r)return t.axios.put(o,...e);if("PATCH"===r)return t.axios.patch(o,...e);if("DELETE"===r)return t.axios.delete(o,...e);const n=Object.assign({url:o,method:s},e);return t.axios(n)}})}),n}}return fr.default=r,fr.mr=new r,fr}()),b=xr();class v extends d.EventEmitter{constructor(n){var i;super(),this.thirdPartryCookie=!1,this._oneTap={enabled:!1},this._coop=!1,this._business=!1,this._disableSafari=!1,this._adaptWindow=!1,this._preFetch=!1,this._loading=!1,this._height=0,this._area=h.AREA.CN,this._domainSpace=h.DOMAIN_SPACE.MAKEBLOCK,this._advertisement=null,this._loadingImage=null,this._advertisementPosition=null,e.set(this,{}),this._env=h.CLIENT_ENV.PROD,this._platform="",t.set(this,""),this._redirect=location.href,this._mode=h.PAGE_MODE.PAGE,this._showSwitchHost=!0,this._showSwitchLoginRegister=!0,this._showSocialLogin=!0,this._onlyPhoneLogin=!1,this._useLocalstorage=!1,this._useReLogin=!1,this._businessLogo="",this._logo="",this._textLogo="",this._subTextLogo="",this._hideLogo=!1,this._copyright="",this._orgCode="",this._appVersion="",this._system="",this._origin="",this._customImage="",this._entryPage="login",r.set(this,null),this.tokenChange=e=>{this.emit("tokenChange",e)},this.langChange=e=>{this.emit("langChange",e)};const{search:o,hash:a}=location,l=new URLSearchParams(o||a);l.get("uls")||(p.default.strategy="cookie",p.default.config({sameSite:"None",secure:!0,domain:this.getCookieDomain(),expires:525600})),"1"===l.get("rl")&&(this.token="");const{domainSpace:u,platform:d,system:f,mode:y,businessLogo:g,appVersion:b,area:v,origin:x,customImage:w,redirect:S,entryPage:N,lang:j,advertisement:E,loadingImage:C,advertisementPosition:k,height:T,loading:R,preFetch:O,adaptWindow:P,disableSafari:_,oneTap:A,business:I,coop:M}=n;if(this.domainSpace=u,this.platform=d,this.mode=y,g&&(this.businessLogo=g),"boolean"==typeof I&&(this.business=I),"boolean"==typeof M&&(this.coop=M),"number"==typeof T&&(this.height=T),A&&(this.oneTap=A),"boolean"==typeof _&&(this.disableSafari=_),"boolean"==typeof P&&(this.adaptWindow=P),"boolean"==typeof R&&(this.loading=R),"boolean"==typeof O&&(this.preFetch=O),k&&(this.advertisementPosition=k),E&&(this.advertisement=E),C&&(this.loadingImage=C),f&&(this.system=f),f&&(this.system=f),b&&(this.appVersion=b),v&&(this.area=v),x&&(this.origin=x),w&&(this.customImage=w),void 0!==S&&(this.redirect=S),N&&(this.entryPage=N),j&&(this.lang=j),null===(i=this.oneTap)||void 0===i?void 0:i.enabled){const e=this.oneTap,{enabled:t,manual:r=!1}=e,n=c(e,["enabled","manual"]);let i=document.createElement("script");i.src="https://accounts.google.com/gsi/client",i.async=!0,document.body.appendChild(i),i.onload=()=>{google.accounts.id.initialize(Object.assign(Object.assign({},n),{client_id:m.googleClientId,callback:e=>s(this,void 0,void 0,function*(){var t;let r=yield fetch(`${this.domain.api}/oauth/google/onetab`,{method:"post",headers:{"Content-Type":"application/json","x-app-code":this.platform,"x-app-platform":this.system,"x-app-version":this.appVersion,lang:this.lang},body:JSON.stringify({idToken:e.credential,cid:m.googleClientId})}).then(e=>e.json()),n=null===(t=r.data)||void 0===t?void 0:t.utoken;n&&(this.token=n,yield this.setCrosSiteCookie(n),this.emit("oneTap",r))})})),r||this.token||google.accounts.id.prompt()}}this.domainSpace===h.DOMAIN_SPACE.XTOOL&&this.preFetch&&setTimeout(()=>{if(this.isCrosSite(this.baseUrl,location.href)){if(!this.domain.prefetch)return;let e=document.createElement("div");e.id="passport-prefetch-iframe",e.innerHTML=` <iframe src="${this.domain.prefetch}" frameborder="0"></iframe>`,e.style.display="none",e.style.transform="translateZ(0)",e.style.position="fixed",document.body.appendChild(e)}else this.preFetchSource()}),this.listenerThirdPartryCookie()}oneTapPrompt(){google.accounts.id.prompt()}setCrosSiteCookie(e){return new b.CroSiteClient({env:this.env,domainSpace:this.domainSpace,area:this.area}).setCrosSiteCookie(e)}setThirdPartyCookie(e,t){new b.CroSiteClient({env:this.env,domainSpace:this.domainSpace,area:this.area}).setThirdPartyCookie(e,t)}preFetchSource(){return s(this,void 0,void 0,function*(){var e,t,r;try{const{data:n}=yield fetch(`${this.domain.api}/preload/resources`).then(e=>e.json());if(!n)return;null===(e=n["dns-prefetch"])||void 0===e||e.forEach(e=>{const t=document.createElement("link");t.rel="dns-prefetch",t.href=e,document.body.appendChild(t)}),null===(t=n.preconnect)||void 0===t||t.forEach(e=>{const t=document.createElement("link");t.rel="preconnect",t.crossOrigin="",t.href=e,document.body.appendChild(t)}),null===(r=n.prefetch)||void 0===r||r.forEach(e=>{const t=document.createElement("link");t.rel="preload",e.includes(".js")?t.as="script":e.includes(".css")&&(t.as="style"),t.href=e,document.body.appendChild(t)})}catch(n){}})}listenerThirdPartryCookie(){window.addEventListener("message",e=>{const{type:t,content:r}=e.data;"check-third-party-cookie"===t&&(this.thirdPartryCookie=r)})}get oneTap(){return this._oneTap}set oneTap(e){this._oneTap=e}get coop(){return this._coop}set coop(e){this._coop=e}get business(){return this._business}set business(e){this._business=e}get disableSafari(){return this._disableSafari}set disableSafari(e){this._disableSafari=e}get adaptWindow(){return this._adaptWindow}set adaptWindow(e){this._adaptWindow=e}get preFetch(){return this._preFetch}set preFetch(e){this._preFetch=e}get loading(){return this._loading}set loading(e){this._loading=e}get height(){return this._height}set height(e){this._height=e}get area(){return this._area}set area(e){this._area=e}set domainSpace(e){this._domainSpace=e}get domainSpace(){return this._domainSpace}set advertisement(e){this._advertisement=e}get advertisement(){return this._advertisement}set loadingImage(e){this._loadingImage=e}get loadingImage(){return this._loadingImage}set advertisementPosition(e){this._advertisementPosition=e}get advertisementPosition(){return this._advertisementPosition}get storage(){return p.default}get domain(){return m.default[this._env][this._domainSpace][this._area]}set cookieConfig(t){p.default.config(t),a(this,e,t,"f")}set env(e){this._env=e}get env(){return this._env}set platform(e){this._platform=e}get platform(){return this._platform}get lang(){return p.default.get(h.LANG_KEY)||l(this,t,"f")||(0,y.systemLang)()||"en"}set lang(e){const r=l(this,t,"f"),n=this.lang;p.default.set(h.LANG_KEY,e),a(this,t,e,"f"),r===n&&n===e&&r===e||this.langChange(e)}set redirect(e){this._redirect=e}set mode(e){this._mode=e}set showSwitchHost(e){this._showSwitchHost=e}set showSwitchLoginRegister(e){this._showSwitchLoginRegister=e}set showSocialLogin(e){this._showSocialLogin=e}set onlyPhoneLogin(e){this._onlyPhoneLogin=e}set useLocalstorage(e){this._useLocalstorage=e}set useReLogin(e){this._useReLogin=e}set businessLogo(e){this._businessLogo=e}set logo(e){this._logo=e}set textLogo(e){this._textLogo=e}set subTextLogo(e){this._subTextLogo=e}set hideLogo(e){this._hideLogo=e}set copyright(e){this._copyright=e}set orgCode(e){this._orgCode=e}set appVersion(e){const t=this.appVersion;this._appVersion=e,this.appVersion!==t&&this.appVersionChange(this.appVersion)}get appVersion(){return this._appVersion}set system(e){this._system=e}get system(){return this._system}set origin(e){this._origin=e}get origin(){return this._origin||this.platform}set customImage(e){this._customImage=e}get customImage(){return this._customImage}get baseUrl(){return`${this.coop?this.domain.coopPage:this.domain.page}${this.lang}`}queryString(){const t=new URLSearchParams,{sameSite:r,secure:n}=l(this,e,"f");return this._platform&&t.append(m.QUERY.PLATFORM,this._platform),this._redirect&&t.append(m.QUERY.REDIRECT,this._redirect),[h.PAGE_MODE.WIN,h.PAGE_MODE.FULL_WIN].some(e=>e===this._mode)&&t.append(m.QUERY.MODE,this._mode),!1===this._showSwitchHost&&t.append(m.QUERY.SHOW_SWITCH_HOST,"false"),!1===this._showSwitchLoginRegister&&t.append(m.QUERY.SHOW_SWITCH_LOGIN_REGISTER,"0"),!1===this._showSocialLogin&&t.append(m.QUERY.SHOW_SOCIAL_LOGIN,"0"),!0===this._onlyPhoneLogin&&t.append(m.QUERY.ONLY_PHONE_LOGIN,"1"),!0===this._useLocalstorage&&t.append(m.QUERY.USE_LOCALSTORAGE,"1"),!0===this._useReLogin&&t.append(m.QUERY.REDIRECT,"1"),this._business&&this._businessLogo&&t.append(m.QUERY.BUSINESS_LOGO,this._businessLogo),this._logo&&t.append(m.QUERY.LOGO,this._logo),this._textLogo&&t.append(m.QUERY.TEXT_LOGO,this._textLogo),this._subTextLogo&&t.append(m.QUERY.SUB_TEXT_LOGO,this._textLogo),!0===this._hideLogo&&t.append(m.QUERY.HIDE_LOGO,"1"),this._copyright&&t.append(m.QUERY.COPYRIGHT,this._copyright),this._orgCode&&t.append(m.QUERY.ORG_CODE,this._orgCode),this._appVersion&&t.append(m.QUERY.APP_VERSION,this._appVersion),this._system&&t.append(m.QUERY.SYSTEM,this._system),this._origin&&t.append(m.QUERY.ORIGIN,this._origin),this._customImage&&t.append(m.QUERY.CUSTOM_IMAGE,this._customImage),r&&t.append(m.QUERY.COOKIES_SAME_SITE,r),void 0!==n&&t.append(m.QUERY.COOKIES_SECURE,`${n}`),t.toString()}get url(){return this.getEntryUrl()}get entryPage(){return this._entryPage}set entryPage(e){this._entryPage=e}getEntryPath(e=this.entryPage){return"register"===e?"register":this.business?"login-business":"login"}getEntryUrl(e=this.entryPage){return`${this.baseUrl}/${this.getEntryPath(e)}?${this.queryString()}`}get stuLoginUrl(){return`${this.baseUrl}/login/stu?${this.queryString()}`}get profile(){return`${this.baseUrl}/profile?ut=${this.token}`}getUrl(e){const t=new f.UAParser(navigator.userAgent).getBrowser();if(this.isCrosSite(this.baseUrl,location.href)&&"Safari"===t.name){let t=`${this.baseUrl}/${e}?${this.queryString()}`;return`${this.baseUrl}/authcb?ut=${this.token}&r=${encodeURIComponent(t)}`}return`${this.baseUrl}/${e}?${this.queryString()}`}isCrosSite(e,t){const r=e=>new URL(e).hostname.split(".").slice(1).join(".");return r(e)!==r(t)}get token(){return this.storage.get(h.TOKEN_KEY)||l(this,r,"f")}set token(e){const t=l(this,r,"f"),n=this.token;e?p.default.set(h.TOKEN_KEY,e):p.default.remove(h.TOKEN_KEY),a(this,r,e,"f"),t===n&&n===e&&t===e||this.tokenChange(e)}getMessageClientState(){return{domainSpace:this.domainSpace,platform:this.platform,system:this.system,token:this.token||"",lang:this.lang,area:this.area,env:this.env}}onStateListener(e){this.on("tokenChange",t=>{e({type:"token",value:t})}),this.on("langChange",t=>{e({type:"lang",value:t})})}appVersionChange(e){this.emit("appVersionChange",e)}set close(e){this._close=e}set switchHost(e){this._switchHost=e}listenMessage(){const e=e=>{const{source:r,payload:n}=e.data;if(r===h.POST_MESSAGE_SOURCE){const{type:e}=n;if(e===h.MESSAGE_TYPE.LOGIN||e===h.MESSAGE_TYPE.REGISTER||e===h.MESSAGE_TYPE.FINDPWD){const{token:e}=n;e&&(this.token=e);let r=e=>{this.thirdPartryCookie&&this.domainSpace===h.DOMAIN_SPACE.XTOOL&&!this.disableSafari?this.setThirdPartyCookie(e||location.href,this.token):e?window.location.href=e:window.location.reload()};"function"==typeof this._close&&(this._close(n,r),t())}e===h.MESSAGE_TYPE.SWITCH_HSOT&&"function"==typeof this._switchHost&&this._switchHost(n.data)}},t=()=>{this._close=void 0,window.removeEventListener("message",e)};return window.addEventListener("message",e),t}logout(){this.isInIframe&&window.parent.postMessage({action:`${this._domainSpace}-${h.MESSAGE_TYPE.LOGOUT}`,from:h.MESSAGE_ORIGIN_NAME,platform:this.platform},"*");const e=this.token;if(!e)return;this.token=null;const t=`${this.domain.api}/user/logout`;return g.mr.axios.post(t,{},{headers:{utoken:e}})}userInfo(){const e=this.token;if(!e)return;const t=`${this.domain.api}/user/basic`;return g.mr.axios.get(t,{headers:{utoken:e}})}isValidIP(e){if(/^(\d{1,3}\.){3}\d{1,3}$/.test(e)){return e.split(".").every(e=>{const t=parseInt(e,10);return t>=0&&t<=255})}return e.includes(":")}getRootDomain(e=document.location.hostname){if(this.isValidIP(e))return e;const t=e.split(".");return 1===t.length?e:t.slice(1).join(".")}getCookieDomain(e=document.location.hostname){if(this.isValidIP(e))return e;const t=e.split(".");return`.${1===t.length?e:t.slice(1).join(".")}`}openLoginModal(e,t=this.entryPage){this.close=(t,r)=>{(0,y.closeLoginModal)(),e&&e(t,r)},this.listenMessage(),(0,y.openLoginModal)(this.getEntryUrl(t),this._mode,{advertisement:this.advertisement,advertisementPosition:this.advertisementPosition,height:this.height,loading:this.loading,adaptWindow:this.adaptWindow,loadingImage:this.loadingImage})}get isInIframe(){return window.self!==window.parent}openModal(e,t=this.entryPage){if(this.isInIframe){let r;const n=(new Date).getTime(),i=`${this._domainSpace}-${h.MESSAGE_TYPE.LOGIN}`,o=e=>{const t=e.data;(null==t?void 0:t.action)===`${i}-${n}`&&(r=Boolean(null==t?void 0:t.notOpenModal))};window.addEventListener("message",o),window.parent.postMessage({action:i,key:n,from:h.MESSAGE_ORIGIN_NAME,platform:this.platform},"*");const s=5;let a,l=0;const c=()=>{if(l++,void 0!==r||l>s){if(window.removeEventListener("message",o),r)return;return this.openLoginModal(e,t),void clearTimeout(a)}a=setTimeout(c,10)};return void c()}this.openLoginModal(e,t)}checkAuthByProfile(){return new Promise(e=>{const t=new URLSearchParams,r=this.token||`${(new Date).getTime()}`;t.append(m.QUERY.TOKEN,r);const n=`${this.baseUrl}/profile/settings?${t.toString()}&${this.queryString()}`,i="check-auth-by-profile",o=()=>{const e=document.querySelector(`#${i}`);e&&(null==e||e.remove())};o();const s=t=>{const n=t.data,{action:i,ut:a="",userInfo:l={},msg:c}=n;i===`profile-settings-ut-cb-${r}`&&(e({ut:a,userInfo:l,msg:c}),o(),window.removeEventListener("message",s),clearTimeout(u))};window.addEventListener("message",s);const a=document.querySelector("body"),l=`\n <div style="position: fixed; z-index: -1; width: 0; height: 0;">\n <iframe id="checkAuthByProfile-iframe" src="${n}" frameborder="0"></iframe>\n </div>\n `,c=document.createElement("div");c.id=i,c.innerHTML+=l,null==a||a.append(c);let u,p=0;const d=()=>{if(p++,p>60)return e({ut:"",userInfo:{},msg:"Receive messages timeout"}),o(),window.removeEventListener("message",s),void clearTimeout(u);u=setTimeout(d,1e3)};d()})}}return e=new WeakMap,t=new WeakMap,r=new WeakMap,g.mr.axios.interceptors.request.use(e=>{const{url:t,params:r={}}=e;if(t){let n=t.match(/(:[^{:&/|_}]*)/g);Array.isArray(n)&&n.length>0&&n.forEach(n=>{const i=n.replace(":","");i.length>=1&&i in r&&(e.url=t.replace(n,r[i]),delete e.params[i])})}return Promise.resolve(e)},e=>Promise.reject(e)),zt.MRequest=g.default,zt.default=v,zt}var Sr=(br||(br=1,function(e){const t=wr(),r=rr(),n=xr(),i=t.default||t;e.exports=i,e.exports.default=i,e.exports.PassportClient=i,Object.defineProperty(e.exports,"__esModule",{value:!0}),Object.assign(e.exports,t,r,n)}(Dt)),Dt.exports);const Nr=At(Sr);class jr{constructor(){r(this,"listeners",new Map)}on(e,t){this.listeners.has(e)||this.listeners.set(e,new Set);return this.listeners.get(e).add(t),()=>this.off(e,t)}off(e,t){var r;null==(r=this.listeners.get(e))||r.delete(t)}emit(e,t){var r;null==(r=this.listeners.get(e))||r.forEach(e=>{try{e(t)}catch(r){}})}clear(){this.listeners.clear()}}const Er={prod:{env:Sr.CLIENT_ENV.PROD,area:Sr.AREA.US},pre:{env:Sr.CLIENT_ENV.PRE,area:Sr.AREA.US},test:{env:Sr.CLIENT_ENV.TEST_US,area:Sr.AREA.US},dev:{env:Sr.CLIENT_ENV.DEV,area:Sr.AREA.CN}};class Cr{constructor(e,t,n){r(this,"appKey"),r(this,"passportClient"),r(this,"http"),r(this,"emitter",new jr),r(this,"_status",{isLogin:!1,userInfo:null}),this.appKey=e,this.http=n;const i=Er[t]??Er.prod;this.passportClient=new Nr({domainSpace:Sr.DOMAIN_SPACE.XTOOL,platform:Sr.XTOOL_PLATFORM.ATOMM,mode:Sr.PAGE_MODE.WIN,area:Sr.AREA.US,...i}),this.passportClient.env=i.env,this._restoreFromStorage()}getStatus(){return{...this._status}}getToken(){return Tt(this.appKey)}login(){return new Promise((e,t)=>{try{this.passportClient.openModal(async({token:r})=>{try{if(!r)return void t(new Error("Login failed: token is empty"));((e,t)=>{try{localStorage.setItem(kt(e),t)}catch{}})(this.appKey,r),this.passportClient.token=r;const n=await this._fetchUserInfo(r);this._setLoginStatus(n),e(n)}catch(n){Rt(this.appKey),t(n)}})}catch(r){t(r)}})}async logout(){try{await this.passportClient.logout()}catch{}this._clearLoginStatus()}onChange(e){return this.emitter.on("change",e)}async _restoreFromStorage(){const e=Tt(this.appKey);if(e)try{this.passportClient.token=e;const t=await this._fetchUserInfo(e);this._setLoginStatus(t)}catch{Rt(this.appKey)}}async _fetchUserInfo(e){this.passportClient.token=e;const t=await this.passportClient.userInfo(),r=(null==t?void 0:t.data)??t;if(!(null==r?void 0:r.uid))throw new Error("Invalid user info: missing uid");return{uid:r.uid,uuid:r.uuid??String(r.uid),userName:r.userName??"",headpic:r.headpic??"",email:r.email??"",phoneNumber:r.phoneNumber??"",phoneZone:r.phoneZone??"",gender:r.gender??0,signature:r.signature??"",createTime:r.createTime??0}}_setLoginStatus(e){this._status={isLogin:!0,userInfo:e},this.emitter.emit("change",this.getStatus())}_clearLoginStatus(){Rt(this.appKey),this._status={isLogin:!1,userInfo:null},this.emitter.emit("change",this.getStatus())}}const kr=[];for(let qs=0;qs<256;++qs)kr.push((qs+256).toString(16).slice(1));let Tr;const Rr=new Uint8Array(16);const Or={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Pr(e,t,r){var n;if(Or.randomUUID&&!e)return Or.randomUUID();const i=(e=e||{}).random??(null==(n=e.rng)?void 0:n.call(e))??function(){if(!Tr){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Tr=crypto.getRandomValues.bind(crypto)}return Tr(Rr)}();if(i.length<16)throw new Error("Random bytes length must be >= 16");return i[6]=15&i[6]|64,i[8]=63&i[8]|128,function(e,t=0){return(kr[e[t+0]]+kr[e[t+1]]+kr[e[t+2]]+kr[e[t+3]]+"-"+kr[e[t+4]]+kr[e[t+5]]+"-"+kr[e[t+6]]+kr[e[t+7]]+"-"+kr[e[t+8]]+kr[e[t+9]]+"-"+kr[e[t+10]]+kr[e[t+11]]+kr[e[t+12]]+kr[e[t+13]]+kr[e[t+14]]+kr[e[t+15]]).toLowerCase()}(i)}class _r{constructor(e,t,n){r(this,"http"),r(this,"module"),r(this,"credits"),r(this,"emitter",new jr),r(this,"_freeRemaining",0),r(this,"_freeTotal",0),r(this,"_creditsPerUse",0),r(this,"_freePeriodEnd",0),r(this,"_loaded",!1),this.module=`generator_${e}`,this.http=t,this.credits=n}async getUsage(){const[e]=await Promise.all([this.http.request({method:"GET",url:"/ai/v5/artimind/free_trial/count",params:{module:this.module}}),this.credits.getBalance()]);return this._freeRemaining=e.remaining_count,this._freeTotal=e.total_count,this._creditsPerUse=e.need_credits,this._loaded=!0,this._buildUsageInfo()}getCachedUsage(){return this._loaded?this._buildUsageInfo():null}check(){return this._isInFreePeriod()?{canProceed:!0,reason:"free_period"}:this._freeRemaining>0?{canProceed:!0,reason:"free_count"}:this.credits.getCachedBalance()>=this._creditsPerUse&&this._creditsPerUse>0?{canProceed:!0,reason:"credits"}:{canProceed:!1,reason:"insufficient"}}async consume(e){if(this._isInFreePeriod())return{freeRemaining:this._freeRemaining,isCredit:!1};const t={module:this.module,external_id:(null==e?void 0:e.externalId)??Pr()},r=await this.http.request({method:"POST",url:"/ai/v5/artimind/free_trial",data:t});return this._freeRemaining=r.remaining_count,r.is_credit&&await this.credits.getBalance(),this._freePeriodEnd=Date.now()+3e4,this.emitter.emit("change",this._buildUsageInfo()),{freeRemaining:r.remaining_count,isCredit:r.is_credit}}async refreshCredits(){await this.credits.getBalance(),this._loaded&&this.emitter.emit("change",this._buildUsageInfo())}onChange(e){return this.emitter.on("change",e)}_isInFreePeriod(){return Date.now()<this._freePeriodEnd}_buildUsageInfo(){const e=Date.now(),t=e<this._freePeriodEnd,r=t?Math.ceil((this._freePeriodEnd-e)/1e3):0;return{freeRemaining:this._freeRemaining,freeTotal:this._freeTotal,creditsPerUse:this._creditsPerUse,creditsBalance:this.credits.getCachedBalance(),inFreePeriod:t,freePeriodRemaining:r}}}var Ar,Ir,Mr,Dr;(Ir=Ar||(Ar={})).HTTP="http",Ir.HTTPS="https",(Dr=Mr||(Mr={})).MD5="md5",Dr.CRC32="crc32",Dr.CRC32C="crc32c",Dr.SHA1="sha1",Dr.SHA256="sha256";const zr="__smithy_context";class Br{constructor(e){r(this,"method"),r(this,"protocol"),r(this,"hostname"),r(this,"port"),r(this,"path"),r(this,"query"),r(this,"headers"),r(this,"username"),r(this,"password"),r(this,"fragment"),r(this,"body"),this.method=e.method||"GET",this.hostname=e.hostname||"localhost",this.port=e.port,this.query=e.query||{},this.headers=e.headers||{},this.body=e.body,this.protocol=e.protocol?":"!==e.protocol.slice(-1)?`${e.protocol}:`:e.protocol:"https:",this.path=e.path?"/"!==e.path.charAt(0)?`/${e.path}`:e.path:"/",this.username=e.username,this.password=e.password,this.fragment=e.fragment}static clone(e){const t=new Br({...e,headers:{...e.headers}});var r;return t.query&&(t.query=(r=t.query,Object.keys(r).reduce((e,t)=>{const n=r[t];return{...e,[t]:Array.isArray(n)?[...n]:n}},{}))),t}static isInstance(e){if(!e)return!1;const t=e;return"method"in t&&"protocol"in t&&"hostname"in t&&"path"in t&&"object"==typeof t.query&&"object"==typeof t.headers}clone(){return Br.clone(this)}}class Lr{constructor(e){r(this,"statusCode"),r(this,"reason"),r(this,"headers"),r(this,"body"),this.statusCode=e.statusCode,this.reason=e.reason,this.headers=e.headers||{},this.body=e.body}static isInstance(e){if(!e)return!1;const t=e;return"number"==typeof t.statusCode&&"object"==typeof t.headers}}const qr={step:"build",tags:["SET_EXPECT_HEADER","EXPECT_HEADER"],name:"addExpectContinueMiddleware",override:!0},Ur=e=>({applyToStack:t=>{t.add(function(e){return t=>async r=>{var n,i,o,s;const{request:a}=r;if(!1!==e.expectContinueHeader&&Br.isInstance(a)&&a.body&&"node"===e.runtime&&"FetchHttpHandler"!==(null==(i=null==(n=e.requestHandler)?void 0:n.constructor)?void 0:i.name)){let t=!0;if("number"==typeof e.expectContinueHeader)try{t=(Number(null==(o=a.headers)?void 0:o["content-length"])??(null==(s=e.bodyLengthChecker)?void 0:s.call(e,a.body))??1/0)>=e.expectContinueHeader}catch(l){}else t=!!e.expectContinueHeader;t&&(a.headers.Expect="100-continue")}return t({...r,request:a})}}(e),qr)}}),Hr="WHEN_SUPPORTED",Fr="WHEN_REQUIRED",$r=Hr,Vr="WHEN_SUPPORTED",Gr="WHEN_REQUIRED",Wr=Hr;var Kr,Xr,Qr,Yr;(Xr=Kr||(Kr={})).MD5="MD5",Xr.CRC32="CRC32",Xr.CRC32C="CRC32C",Xr.CRC64NVME="CRC64NVME",Xr.SHA1="SHA1",Xr.SHA256="SHA256",(Yr=Qr||(Qr={})).HEADER="header",Yr.TRAILER="trailer";const Jr=Kr.CRC32;function Zr(e,t,r){e.__aws_sdk_context?e.__aws_sdk_context.features||(e.__aws_sdk_context.features={}):e.__aws_sdk_context={features:{}},e.__aws_sdk_context.features[t]=r}const en=e=>{var t,r;return Lr.isInstance(e)?(null==(t=e.headers)?void 0:t.date)??(null==(r=e.headers)?void 0:r.Date):void 0},tn=e=>new Date(Date.now()+e),rn=(e,t)=>{const r=Date.parse(e);return((e,t)=>Math.abs(tn(t).getTime()-e)>=3e5)(r,t)?r-Date.now():t},nn=(e,t)=>{if(!t)throw new Error(`Property \`${e}\` is not resolved for AWS SDK SigV4Auth`);return t},on=async e=>{var t,r,n;const i=nn("context",e.context),o=nn("config",e.config),s=null==(n=null==(r=null==(t=i.endpointV2)?void 0:t.properties)?void 0:r.authSchemes)?void 0:n[0],a=nn("signer",o.signer);return{config:o,signer:await a(s),signingRegion:null==e?void 0:e.signingRegion,signingRegionSet:null==e?void 0:e.signingRegionSet,signingName:null==e?void 0:e.signingName}};class sn{async sign(e,t,r){var n;if(!Br.isInstance(e))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const i=await on(r),{config:o,signer:s}=i;let{signingRegion:a,signingName:l}=i;const c=r.context;if(null==(n=null==c?void 0:c.authSchemes)?void 0:n.length){const[e,t]=c.authSchemes;"sigv4a"===(null==e?void 0:e.name)&&"sigv4"===(null==t?void 0:t.name)&&(a=(null==t?void 0:t.signingRegion)??a,l=(null==t?void 0:t.signingName)??l)}return await s.sign(e,{signingDate:tn(o.systemClockOffset),signingRegion:a,signingService:l})}errorHandler(e){return t=>{const r=t.ServerTime??en(t.$response);if(r){const n=nn("config",e.config),i=n.systemClockOffset;n.systemClockOffset=rn(r,n.systemClockOffset);n.systemClockOffset!==i&&t.$metadata&&(t.$metadata.clockSkewCorrected=!0)}throw t}}successHandler(e,t){const r=en(e);if(r){const e=nn("config",t.config);e.systemClockOffset=rn(r,e.systemClockOffset)}}}class an extends sn{async sign(e,t,r){var n;if(!Br.isInstance(e))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const{config:i,signer:o,signingRegion:s,signingRegionSet:a,signingName:l}=await on(r),c=(await(null==(n=i.sigv4aSigningRegionSet)?void 0:n.call(i))??a??[s]).join(",");return await o.sign(e,{signingDate:tn(i.systemClockOffset),signingRegion:c,signingService:l})}}const ln=e=>e[zr]||(e[zr]={}),cn=e=>{if("function"==typeof e)return e;const t=Promise.resolve(e);return()=>t};const un=(e,t)=>(r,n)=>async i=>{var o;const s=((e,t)=>{if(!t||0===t.length)return e;const r=[];for(const n of t)for(const t of e)t.schemeId.split("#")[1]===n&&r.push(t);for(const n of e)r.find(({schemeId:e})=>e===n.schemeId)||r.push(n);return r})(e.httpAuthSchemeProvider(await t.httpAuthSchemeParametersProvider(e,n,i.input)),e.authSchemePreference?await e.authSchemePreference():[]),a=function(e){const t=new Map;for(const r of e)t.set(r.schemeId,r);return t}(e.httpAuthSchemes),l=ln(n),c=[];for(const r of s){const i=a.get(r.schemeId);if(!i){c.push(`HttpAuthScheme \`${r.schemeId}\` was not enabled for this service.`);continue}const s=i.identityProvider(await t.identityProviderConfigProvider(e));if(!s){c.push(`HttpAuthScheme \`${r.schemeId}\` did not have an IdentityProvider configured.`);continue}const{identityProperties:u={},signingProperties:p={}}=(null==(o=r.propertiesExtractor)?void 0:o.call(r,e,n))||{};r.identityProperties=Object.assign(r.identityProperties||{},u),r.signingProperties=Object.assign(r.signingProperties||{},p),l.selectedHttpAuthScheme={httpAuthOption:r,identity:await s(r.identityProperties),signer:i.signer};break}if(!l.selectedHttpAuthScheme)throw new Error(c.join("\n"));return r(i)},pn={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},dn=e=>e=>{throw e},mn=(e,t)=>{},fn={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},hn=e=>({applyToStack:e=>{e.addRelativeTo((e,t)=>async r=>{if(!Br.isInstance(r.request))return e(r);const n=ln(t).selectedHttpAuthScheme;if(!n)throw new Error("No HttpAuthScheme was selected: unable to sign request");const{httpAuthOption:{signingProperties:i={}},identity:o,signer:s}=n,a=await e({...r,request:await s.sign(r.request,o,i)}).catch((s.errorHandler||dn)(i));return(s.successHandler||mn)(a.response,i),a},fn)}}),yn=e=>{if("function"==typeof e)return e;const t=Promise.resolve(e);return()=>t},gn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bn=Object.entries(gn).reduce((e,[t,r])=>(e[r]=Number(t),e),{}),vn=gn.split(""),xn=e=>{let t=e.length/4*3;"=="===e.slice(-2)?t-=2:"="===e.slice(-1)&&t--;const r=new ArrayBuffer(t),n=new DataView(r);for(let i=0;i<e.length;i+=4){let t=0,r=0;for(let n=i,a=i+3;n<=a;n++)if("="!==e[n]){if(!(e[n]in bn))throw new TypeError(`Invalid character ${e[n]} in base64 string.`);t|=bn[e[n]]<<6*(a-n),r+=6}else t>>=6;const o=i/4*3;t>>=r%8;const s=Math.floor(r/8);for(let e=0;e<s;e++){const r=8*(s-e-1);n.setUint8(o+e,(t&255<<r)>>r)}}return new Uint8Array(r)},wn=e=>(new TextEncoder).encode(e),Sn=e=>"string"==typeof e?wn(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e),Nn=e=>{if("string"==typeof e)return e;if("object"!=typeof e||"number"!=typeof e.byteOffset||"number"!=typeof e.byteLength)throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return new TextDecoder("utf-8").decode(e)};function jn(e){let t;t="string"==typeof e?wn(e):e;const r="object"==typeof t&&"number"==typeof t.length,n="object"==typeof t&&"number"==typeof t.byteOffset&&"number"==typeof t.byteLength;if(!r&&!n)throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");let i="";for(let o=0;o<t.length;o+=3){let e=0,r=0;for(let i=o,s=Math.min(o+3,t.length);i<s;i++)e|=t[i]<<8*(s-i-1),r+=8;const n=Math.ceil(r/6);e<<=6*n-r;for(let t=1;t<=n;t++){const r=6*(n-t);i+=vn[(e&63<<r)>>r]}i+="==".slice(0,4-n)}return i}class En extends Uint8Array{static fromString(e,t="utf-8"){if("string"==typeof e)return"base64"===t?En.mutate(xn(e)):En.mutate(wn(e));throw new Error(`Unsupported conversion from ${typeof e} to Uint8ArrayBlobAdapter.`)}static mutate(e){return Object.setPrototypeOf(e,En.prototype),e}transformToString(e="utf-8"){return"base64"===e?jn(this):Nn(this)}}const Cn="function"==typeof ReadableStream?ReadableStream:function(){};class kn extends Cn{}const Tn=e=>{var t;return"function"==typeof ReadableStream&&((null==(t=null==e?void 0:e.constructor)?void 0:t.name)===ReadableStream.name||e instanceof ReadableStream)},Rn=({expectedChecksum:e,checksum:t,source:r,checksumSourceLocation:n,base64Encoder:i})=>{var o;if(!Tn(r))throw new Error(`@smithy/util-stream: unsupported source type ${(null==(o=null==r?void 0:r.constructor)?void 0:o.name)??r} in ChecksumStream.`);const s=i??jn;if("function"!=typeof TransformStream)throw new Error("@smithy/util-stream: unable to instantiate ChecksumStream because API unavailable: ReadableStream/TransformStream.");const a=new TransformStream({start(){},async transform(e,r){t.update(e),r.enqueue(e)},async flush(r){const i=await t.digest(),o=s(i);if(e!==o){const t=new Error(`Checksum mismatch: expected "${e}" but received "${o}" in response header "${n}".`);r.error(t)}else r.terminate()}});r.pipeThrough(a);const l=a.readable;return Object.setPrototypeOf(l,kn.prototype),l};class On{constructor(e){r(this,"allocByteArray"),r(this,"byteLength",0),r(this,"byteArrays",[]),this.allocByteArray=e}push(e){this.byteArrays.push(e),this.byteLength+=e.byteLength}flush(){if(1===this.byteArrays.length){const e=this.byteArrays[0];return this.reset(),e}const e=this.allocByteArray(this.byteLength);let t=0;for(let r=0;r<this.byteArrays.length;++r){const n=this.byteArrays[r];e.set(n,t),t+=n.byteLength}return this.reset(),e}reset(){this.byteArrays=[],this.byteLength=0}}const Pn=function(e,t,r){const n=e.getReader();let i=!1,o=0;const s=["",new On(e=>new Uint8Array(e))];let a=-1;const l=async e=>{const{value:c,done:u}=await n.read(),p=c;if(u){if(-1!==a){const t=_n(s,a);An(t)>0&&e.enqueue(t)}e.close()}else{const n=function(e,t=!0){if(t&&"undefined"!=typeof Buffer&&e instanceof Buffer)return 2;if(e instanceof Uint8Array)return 1;if("string"==typeof e)return 0;return-1}(p,!1);if(a!==n&&(a>=0&&e.enqueue(_n(s,a)),a=n),-1===a)return void e.enqueue(p);const c=An(p);o+=c;const u=An(s[a]);if(c>=t&&0===u)e.enqueue(p);else{const n=function(e,t,r){switch(t){case 0:return e[0]+=r,An(e[0]);case 1:case 2:return e[t].push(r),An(e[t])}}(s,a,p);!i&&o>2*t&&(i=!0,null==r||r.warn(`@smithy/util-stream - stream chunk size ${c} is below threshold of ${t}, automatically buffering.`)),n>=t?e.enqueue(_n(s,a)):await l(e)}}};return new ReadableStream({pull:l})};function _n(e,t){switch(t){case 0:const r=e[0];return e[0]="",r;case 1:case 2:return e[t].flush()}throw new Error(`@smithy/util-stream - invalid index ${t} given to flush()`)}function An(e){return(null==e?void 0:e.byteLength)??(null==e?void 0:e.length)??0}const In=(e,t)=>{const{base64Encoder:r,bodyLengthChecker:n,checksumAlgorithmFn:i,checksumLocationName:o,streamHasher:s}=t,a=void 0!==r&&void 0!==n&&void 0!==i&&void 0!==o&&void 0!==s,l=a?s(i,e):void 0,c=e.getReader();return new ReadableStream({async pull(e){const{value:t,done:i}=await c.read();if(i){if(e.enqueue("0\r\n"),a){const t=r(await l);e.enqueue(`${o}:${t}\r\n`),e.enqueue("\r\n")}e.close()}else e.enqueue(`${(n(t)||0).toString(16)}\r\n${t}\r\n`)}})};const Mn=e=>encodeURIComponent(e).replace(/[!'()*]/g,Dn),Dn=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`;function zn(e,t){return new Request(e,t)}function Bn(e=0){return new Promise((t,r)=>{e&&setTimeout(()=>{const t=new Error(`Request did not complete within ${e} ms`);t.name="TimeoutError",r(t)},e)})}const Ln={supported:void 0};class qn{constructor(e){r(this,"config"),r(this,"configProvider"),"function"==typeof e?this.configProvider=e().then(e=>e||{}):(this.config=e??{},this.configProvider=Promise.resolve(this.config)),void 0===Ln.supported&&(Ln.supported=Boolean("undefined"!=typeof Request&&"keepalive"in zn("https://[::1]")))}static create(e){return"function"==typeof(null==e?void 0:e.handle)?e:new qn(e)}destroy(){}async handle(e,{abortSignal:t,requestTimeout:r}={}){var n;this.config||(this.config=await this.configProvider);const i=r??this.config.requestTimeout,o=!0===this.config.keepAlive,s=this.config.credentials;if(null==t?void 0:t.aborted){const e=Un(t);return Promise.reject(e)}let a=e.path;const l=function(e){const t=[];for(let r of Object.keys(e).sort()){const n=e[r];if(r=Mn(r),Array.isArray(n))for(let e=0,i=n.length;e<i;e++)t.push(`${r}=${Mn(n[e])}`);else{let e=r;(n||"string"==typeof n)&&(e+=`=${Mn(n)}`),t.push(e)}}return t.join("&")}(e.query||{});l&&(a+=`?${l}`),e.fragment&&(a+=`#${e.fragment}`);let c="";if(null!=e.username||null!=e.password){c=`${e.username??""}:${e.password??""}@`}const{port:u,method:p}=e,d=`${e.protocol}//${c}${e.hostname}${u?`:${u}`:""}${a}`,m="GET"===p||"HEAD"===p?void 0:e.body,f={body:m,headers:new Headers(e.headers),method:p,credentials:s};(null==(n=this.config)?void 0:n.cache)&&(f.cache=this.config.cache),m&&(f.duplex="half"),"undefined"!=typeof AbortController&&(f.signal=t),Ln.supported&&(f.keepalive=o),"function"==typeof this.config.requestInit&&Object.assign(f,this.config.requestInit(e));let h=()=>{};const y=zn(d,f),g=[fetch(y).then(e=>{const t=e.headers,r={};for(const n of t.entries())r[n[0]]=n[1];return null!=e.body?{response:new Lr({headers:r,reason:e.statusText,statusCode:e.status,body:e.body})}:e.blob().then(t=>({response:new Lr({headers:r,reason:e.statusText,statusCode:e.status,body:t})}))}),Bn(i)];return t&&g.push(new Promise((e,r)=>{const n=()=>{const e=Un(t);r(e)};if("function"==typeof t.addEventListener){const e=t;e.addEventListener("abort",n,{once:!0}),h=()=>e.removeEventListener("abort",n)}else t.onabort=n})),Promise.race(g).finally(h)}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then(r=>(r[e]=t,r))}httpHandlerConfigs(){return this.config??{}}}function Un(e){const t=e&&"object"==typeof e&&"reason"in e?e.reason:void 0;if(t){if(t instanceof Error){const e=new Error("Request aborted");return e.name="AbortError",e.cause=t,e}const e=new Error(String(t));return e.name="AbortError",e}const r=new Error("Request aborted");return r.name="AbortError",r}const Hn=async e=>{var t;return"function"==typeof Blob&&e instanceof Blob||"Blob"===(null==(t=e.constructor)?void 0:t.name)?void 0!==Blob.prototype.arrayBuffer?new Uint8Array(await e.arrayBuffer()):async function(e){const t=await function(e){return new Promise((t,r)=>{const n=new FileReader;n.onloadend=()=>{if(2!==n.readyState)return r(new Error("Reader aborted too early"));const e=n.result??"",i=e.indexOf(","),o=i>-1?i+1:e.length;t(e.substring(o))},n.onabort=()=>r(new Error("Read aborted")),n.onerror=()=>r(n.error),n.readAsDataURL(e)})}(e),r=xn(t);return new Uint8Array(r)}(e):async function(e){const t=[],r=e.getReader();let n=!1,i=0;for(;!n;){const{done:e,value:o}=await r.read();o&&(t.push(o),i+=o.length),n=e}const o=new Uint8Array(i);let s=0;for(const a of t)o.set(a,s),s+=a.length;return o}(e)};const Fn={},$n={};for(let qs=0;qs<256;qs++){let e=qs.toString(16).toLowerCase();1===e.length&&(e=`0${e}`),Fn[qs]=e,$n[e]=qs}function Vn(e){if(e.length%2!=0)throw new Error("Hex encoded strings must have an even number length");const t=new Uint8Array(e.length/2);for(let r=0;r<e.length;r+=2){const n=e.slice(r,r+2).toLowerCase();if(!(n in $n))throw new Error(`Cannot decode unrecognized sequence ${n} as hexadecimal`);t[r/2]=$n[n]}return t}function Gn(e){let t="";for(let r=0;r<e.byteLength;r++)t+=Fn[e[r]];return t}const Wn="The stream has already been transformed.",Kn=e=>{var t,r;if(!Xn(e)&&!Tn(e)){const n=(null==(r=null==(t=null==e?void 0:e.__proto__)?void 0:t.constructor)?void 0:r.name)||e;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${n}`)}let n=!1;const i=async()=>{if(n)throw new Error(Wn);return n=!0,await Hn(e)};return Object.assign(e,{transformToByteArray:i,transformToString:async e=>{const t=await i();if("base64"===e)return jn(t);if("hex"===e)return Gn(t);if(void 0===e||"utf8"===e||"utf-8"===e)return Nn(t);if("function"==typeof TextDecoder)return new TextDecoder(e).decode(t);throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(n)throw new Error(Wn);if(n=!0,Xn(e))return(e=>{if("function"!=typeof e.stream)throw new Error("Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.\nIf you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body");return e.stream()})(e);if(Tn(e))return e;throw new Error(`Cannot transform payload to web stream, got ${e}`)}})},Xn=e=>"function"==typeof Blob&&e instanceof Blob;const Qn=async(e=new Uint8Array,t)=>{if(e instanceof Uint8Array)return En.mutate(e);if(!e)return En.mutate(new Uint8Array);const r=t.streamCollector(e);return En.mutate(await r)};function Yn(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}const Jn=e=>"function"==typeof e?e():e,Zn=(e,t,r,n,i)=>({name:t,namespace:e,traits:r,input:n,output:i}),ei=(e,t)=>(t.find(([t])=>t.match(e))||[void 0,void 0])[1];const ti=e=>{if("string"==typeof e)return ti(new URL(e));const{hostname:t,pathname:r,port:n,protocol:i,search:o}=e;let s;return o&&(s=function(e){const t={};if(e=e.replace(/^\?/,""))for(const r of e.split("&")){let[e,n=null]=r.split("=");e=decodeURIComponent(e),n&&(n=decodeURIComponent(n)),e in t?Array.isArray(t[e])?t[e].push(n):t[e]=[t[e],n]:t[e]=n}return t}(o)),{hostname:t,port:n?parseInt(n):void 0,protocol:i,path:r,query:s}},ri=e=>(t,r)=>async n=>{const{operationSchema:i}=ln(r),[,o,s,a,l,c]=i??[],u=r.endpointV2?async()=>(e=>{if("object"==typeof e){if("url"in e){const t=ti(e.url);if(e.headers){t.headers={};for(const[r,n]of Object.entries(e.headers))t.headers[r.toLowerCase()]=n.join(", ")}return t}return e}return ti(e)})(r.endpointV2):e.endpoint,p=await e.protocol.serializeRequest(Zn(o,s,a,l,c),n.input,{...e,...r,endpoint:u});return t({...n,request:p})},ni={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},ii={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function oi(e){return{applyToStack:t=>{t.add(ri(e),ii),t.add((e=>(t,r)=>async n=>{var i,o,s,a;const{response:l}=await t(n),{operationSchema:c}=ln(r),[,u,p,d,m,f]=c??[];try{return{response:l,output:await e.protocol.deserializeResponse(Zn(u,p,d,m,f),{...e,...r},l)}}catch(h){if(Object.defineProperty(h,"$response",{value:l,enumerable:!1,writable:!1,configurable:!1}),!("$metadata"in h)){const e="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";try{h.message+="\n "+e}catch(y){r.logger&&"NoOpLogger"!==(null==(o=null==(i=r.logger)?void 0:i.constructor)?void 0:o.name)&&(null==(a=null==(s=r.logger)?void 0:s.warn)||a.call(s,e))}void 0!==h.$responseBodyText&&h.$response&&(h.$response.body=h.$responseBodyText);try{if(Lr.isInstance(l)){const{headers:e={}}=l,t=Object.entries(e);h.$metadata={httpStatusCode:l.statusCode,requestId:ei(/^x-[\w-]+-request-?id$/,t),extendedRequestId:ei(/^x-[\w-]+-id-2$/,t),cfId:ei(/^x-[\w-]+-cf-id$/,t)}}}catch(y){}}throw h}})(e),ni),e.protocol.setSerdeContext(e)}}}const si=[];function ai(e){if("object"==typeof e)return e;if(si[e|=0])return si[e];const t={};let r=0;for(const n of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"])1==(e>>r++&1)&&(t[n]=1);return si[e]=t}const li=Symbol.for("@smithy/nor-struct-it"),ci=Symbol.for("@smithy/ns"),ui=[],pi={},di=class e{constructor(t,n){r(this,"ref"),r(this,"memberName"),r(this,"symbol",e.symbol),r(this,"name"),r(this,"schema"),r(this,"_isMemberSchema"),r(this,"traits"),r(this,"memberTraits"),r(this,"normalizedTraits"),this.ref=t,this.memberName=n;const i=[];let o=t,s=t;for(this._isMemberSchema=!1;hi(o);)i.push(o[1]),o=o[0],s=Jn(o),this._isMemberSchema=!0;if(i.length>0){this.memberTraits={};for(let e=i.length-1;e>=0;--e){const t=i[e];Object.assign(this.memberTraits,ai(t))}}else this.memberTraits=0;if(s instanceof e){const e=this.memberTraits;return Object.assign(this,s),this.memberTraits=Object.assign({},e,s.getMemberTraits(),this.getMemberTraits()),this.normalizedTraits=void 0,void(this.memberName=n??s.memberName)}if(this.schema=Jn(s),yi(this.schema)?(this.name=`${this.schema[1]}#${this.schema[2]}`,this.traits=this.schema[3]):(this.name=this.memberName??String(s),this.traits=0),this._isMemberSchema&&!n)throw new Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(!0)} missing member name.`)}static[Symbol.hasInstance](e){const t=this.prototype.isPrototypeOf(e);if(!t&&"object"==typeof e&&null!==e){return e.symbol===this.symbol}return t}static of(t){const r="function"==typeof t||"object"==typeof t&&null!==t;if("number"==typeof t){if(ui[t])return ui[t]}else if("string"==typeof t){if(pi[t])return pi[t]}else if(r&&t[ci])return t[ci];const n=Jn(t);if(n instanceof e)return n;if(hi(n)){const[r,i]=n;if(r instanceof e)return Object.assign(r.getMergedTraits(),ai(i)),r;throw new Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(t,null,2)}.`)}const i=new e(n);return r?t[ci]=i:"string"==typeof n?pi[n]=i:"number"==typeof n?ui[n]=i:i}getSchema(){const e=this.schema;return Array.isArray(e)&&0===e[0]?e[4]:e}getName(e=!1){const{name:t}=this;return!e&&t&&t.includes("#")?t.split("#")[1]:t||void 0}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){const e=this.getSchema();return"number"==typeof e?e>=64&&e<128:1===e[0]}isMapSchema(){const e=this.getSchema();return"number"==typeof e?e>=128&&e<=255:2===e[0]}isStructSchema(){const e=this.getSchema();if("object"!=typeof e)return!1;const t=e[0];return 3===t||-3===t||4===t}isUnionSchema(){const e=this.getSchema();return"object"==typeof e&&4===e[0]}isBlobSchema(){const e=this.getSchema();return 21===e||42===e}isTimestampSchema(){const e=this.getSchema();return"number"==typeof e&&e>=4&&e<=7}isUnitSchema(){return"unit"===this.getSchema()}isDocumentSchema(){return 15===this.getSchema()}isStringSchema(){return 0===this.getSchema()}isBooleanSchema(){return 2===this.getSchema()}isNumericSchema(){return 1===this.getSchema()}isBigIntegerSchema(){return 17===this.getSchema()}isBigDecimalSchema(){return 19===this.getSchema()}isStreaming(){const{streaming:e}=this.getMergedTraits();return!!e||42===this.getSchema()}isIdempotencyToken(){return!!this.getMergedTraits().idempotencyToken}getMergedTraits(){return this.normalizedTraits??(this.normalizedTraits={...this.getOwnTraits(),...this.getMemberTraits()})}getMemberTraits(){return ai(this.memberTraits)}getOwnTraits(){return ai(this.traits)}getKeySchema(){const[e,t]=[this.isDocumentSchema(),this.isMapSchema()];if(!e&&!t)throw new Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(!0)}`);const r=this.getSchema();return fi([e?15:r[4]??0,0],"key")}getValueSchema(){const e=this.getSchema(),[t,r,n]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()],i="number"==typeof e?63&e:e&&"object"==typeof e&&(r||n)?e[3+e[0]]:t?15:void 0;if(null!=i)return fi([i,0],r?"value":"member");throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no value member.`)}getMemberSchema(e){const t=this.getSchema();if(this.isStructSchema()&&t[4].includes(e)){const r=t[4].indexOf(e),n=t[5][r];return fi(hi(n)?n:[n,0],e)}if(this.isDocumentSchema())return fi([15,0],e);throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no member=${e}.`)}getMemberSchemas(){const e={};try{for(const[t,r]of this.structIterator())e[t]=r}catch(t){}return e}getEventStreamMember(){if(this.isStructSchema())for(const[e,t]of this.structIterator())if(t.isStreaming()&&t.isStructSchema())return e;return""}*structIterator(){if(this.isUnitSchema())return;if(!this.isStructSchema())throw new Error("@smithy/core/schema - cannot iterate non-struct schema.");const e=this.getSchema(),t=e[4].length;let r=e[li];if(r&&t===r.length)yield*r;else{r=Array(t);for(let n=0;n<t;++n){const t=e[4][n],i=fi([e[5][n],0],t);yield r[n]=[t,i]}e[li]=r}}};r(di,"symbol",Symbol.for("@smithy/nor"));let mi=di;function fi(e,t){if(e instanceof mi)return Object.assign(e,{memberName:t,_isMemberSchema:!0});return new mi(e,t)}const hi=e=>Array.isArray(e)&&2===e.length,yi=e=>Array.isArray(e)&&e.length>=5,gi=class e{constructor(e,t=new Map,n=new Map){r(this,"namespace"),r(this,"schemas"),r(this,"exceptions"),this.namespace=e,this.schemas=t,this.exceptions=n}static for(t){return e.registries.has(t)||e.registries.set(t,new e(t)),e.registries.get(t)}copyFrom(e){const{schemas:t,exceptions:r}=this;for(const[n,i]of e.schemas)t.has(n)||t.set(n,i);for(const[n,i]of e.exceptions)r.has(n)||r.set(n,i)}register(t,r){const n=this.normalizeShapeId(t);for(const i of[this,e.for(n.split("#")[0])])i.schemas.set(n,r)}getSchema(e){const t=this.normalizeShapeId(e);if(!this.schemas.has(t))throw new Error(`@smithy/core/schema - schema not found for ${t}`);return this.schemas.get(t)}registerError(t,r){const n=t,i=n[1];for(const o of[this,e.for(i)])o.schemas.set(i+"#"+n[2],n),o.exceptions.set(n,r)}getErrorCtor(t){const r=t;if(this.exceptions.has(r))return this.exceptions.get(r);return e.for(r[1]).exceptions.get(r)}getBaseException(){for(const e of this.exceptions.keys())if(Array.isArray(e)){const[,t,r]=e,n=t+"#"+r;if(n.startsWith("smithy.ts.sdk.synthetic.")&&n.endsWith("ServiceException"))return e}}find(e){return[...this.schemas.values()].find(e)}clear(){this.schemas.clear(),this.exceptions.clear()}normalizeShapeId(e){return e.includes("#")?e:this.namespace+"#"+e}};r(gi,"registries",new Map);let bi=gi;const vi=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],xi=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function wi(e){const t=e.getUTCFullYear(),r=e.getUTCMonth(),n=e.getUTCDay(),i=e.getUTCDate(),o=e.getUTCHours(),s=e.getUTCMinutes(),a=e.getUTCSeconds();return`${vi[n]}, ${i<10?`0${i}`:`${i}`} ${xi[r]} ${t} ${o<10?`0${o}`:`${o}`}:${s<10?`0${s}`:`${s}`}:${a<10?`0${a}`:`${a}`} GMT`}const Si="undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Ni=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0")),ji=()=>{if(Si)return Si();const e=new Uint8Array(16);return crypto.getRandomValues(e),e[6]=15&e[6]|64,e[8]=63&e[8]|128,Ni[e[0]]+Ni[e[1]]+Ni[e[2]]+Ni[e[3]]+"-"+Ni[e[4]]+Ni[e[5]]+"-"+Ni[e[6]]+Ni[e[7]]+"-"+Ni[e[8]]+Ni[e[9]]+"-"+Ni[e[10]]+Ni[e[11]]+Ni[e[12]]+Ni[e[13]]+Ni[e[14]]+Ni[e[15]]},Ei=function(e){return Object.assign(new String(e),{deserializeJSON:()=>JSON.parse(String(e)),toString:()=>String(e),toJSON:()=>String(e)})};function Ci(e){return(e.includes(",")||e.includes('"'))&&(e=`"${e.replace(/"/g,'\\"')}"`),e}Ei.from=e=>e&&"object"==typeof e&&(e instanceof Ei||"deserializeJSON"in e)?e:"string"==typeof e||Object.getPrototypeOf(e)===String.prototype?Ei(String(e)):Ei(JSON.stringify(e)),Ei.fromObject=Ei.from;const ki="(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?",Ti="(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)",Ri="(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?",Oi="(\\d?\\d)",Pi="(\\d{4})",_i=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/),Ai=new RegExp(`^${ki}, ${Oi} ${Ti} ${Pi} ${Ri} GMT$`),Ii=new RegExp(`^${ki}, ${Oi}-${Ti}-(\\d\\d) ${Ri} GMT$`),Mi=new RegExp(`^${ki} ${Ti} ( [1-9]|\\d\\d) ${Ri} ${Pi}$`),Di=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function zi(e,t,r){const n=Number(e);if(n<t||n>r)throw new Error(`Value ${n} out of range [${t}, ${r}]`)}function Bi(e,t,r){if(!Number.isInteger(r))throw new Error("Invalid number of delimiters ("+r+") for splitEvery.");const n=e.split(t),i=[];let o="";for(let s=0;s<n.length;s++)""===o?o=n[s]:o+=t+n[s],(s+1)%r===0&&(i.push(o),o="");return""!==o&&i.push(o),i}const Li=e=>{const t=e.length,r=[];let n,i=!1,o=0;for(let s=0;s<t;++s){const t=e[s];switch(t){case'"':"\\"!==n&&(i=!i);break;case",":i||(r.push(e.slice(o,s)),o=s+1)}n=t}return r.push(e.slice(o)),r.map(e=>{const t=(e=e.trim()).length;return t<2?e:('"'===e[0]&&'"'===e[t-1]&&(e=e.slice(1,t-1)),e.replace(/\\"/g,'"'))})},qi=/^-?\d*(\.\d+)?$/;class Ui{constructor(e,t){if(r(this,"string"),r(this,"type"),this.string=e,this.type=t,!qi.test(e))throw new Error('@smithy/core/serde - NumericValue must only contain [0-9], at most one decimal point ".", and an optional negation prefix "-".')}toString(){return this.string}static[Symbol.hasInstance](e){if(!e||"object"!=typeof e)return!1;const t=e;return Ui.prototype.isPrototypeOf(e)||"bigDecimal"===t.type&&qi.test(t.string)}}class Hi{constructor(){r(this,"serdeContext")}setSerdeContext(e){this.serdeContext=e}}class Fi extends Hi{constructor(e){super(),r(this,"options"),r(this,"compositeErrorRegistry"),this.options=e,this.compositeErrorRegistry=bi.for(e.defaultNamespace);for(const t of e.errorTypeRegistries??[])this.compositeErrorRegistry.copyFrom(t)}getRequestType(){return Br}getResponseType(){return Lr}setSerdeContext(e){this.serdeContext=e,this.serializer.setSerdeContext(e),this.deserializer.setSerdeContext(e),this.getPayloadCodec()&&this.getPayloadCodec().setSerdeContext(e)}updateServiceEndpoint(e,t){if("url"in t){e.protocol=t.url.protocol,e.hostname=t.url.hostname,e.port=t.url.port?Number(t.url.port):void 0,e.path=t.url.pathname,e.fragment=t.url.hash||void 0,e.username=t.url.username||void 0,e.password=t.url.password||void 0,e.query||(e.query={});for(const[r,n]of t.url.searchParams.entries())e.query[r]=n;if(t.headers)for(const[r,n]of Object.entries(t.headers))e.headers[r]=n.join(", ");return e}if(e.protocol=t.protocol,e.hostname=t.hostname,e.port=t.port?Number(t.port):void 0,e.path=t.path,e.query={...t.query},t.headers)for(const[r,n]of Object.entries(t.headers))e.headers[r]=n;return e}setHostPrefix(e,t,r){var n,i;if(null==(n=this.serdeContext)?void 0:n.disableHostPrefix)return;const o=mi.of(t.input),s=ai(t.traits??{});if(s.endpoint){let t=null==(i=s.endpoint)?void 0:i[0];if("string"==typeof t){const n=[...o.structIterator()].filter(([,e])=>e.getMergedTraits().hostLabel);for(const[e]of n){const n=r[e];if("string"!=typeof n)throw new Error(`@smithy/core/schema - ${e} in input must be a string as hostLabel.`);t=t.replace(`{${e}}`,n)}e.hostname=t+e.hostname}}}deserializeMetadata(e){return{httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}}async serializeEventStream({eventStream:e,requestSchema:t,initialRequest:r}){return(await this.loadEventStreamCapability()).serializeEventStream({eventStream:e,requestSchema:t,initialRequest:r})}async deserializeEventStream({response:e,responseSchema:t,initialResponseContainer:r}){return(await this.loadEventStreamCapability()).deserializeEventStream({response:e,responseSchema:t,initialResponseContainer:r})}async loadEventStreamCapability(){const{EventStreamSerde:e}=await Promise.resolve().then(()=>rP);return new e({marshaller:this.getEventStreamMarshaller(),serializer:this.serializer,deserializer:this.deserializer,serdeContext:this.serdeContext,defaultContentType:this.getDefaultContentType()})}getDefaultContentType(){throw new Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`)}async deserializeHttpMessage(e,t,r,n,i){return[]}getEventStreamMarshaller(){const e=this.serdeContext;if(!e.eventStreamMarshaller)throw new Error("@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext.");return e.eventStreamMarshaller}}class $i extends Fi{async serializeRequest(e,t,r){const n={...t??{}},i=this.serializer,o={},s={},a=await r.endpoint(),l=mi.of(null==e?void 0:e.input),c=[],u=[];let p,d=!1;const m=new Br({protocol:"",hostname:"",port:void 0,path:"",fragment:void 0,query:o,headers:s,body:void 0});if(a){this.updateServiceEndpoint(m,a),this.setHostPrefix(m,e,n);const t=ai(e.traits);if(t.http){m.method=t.http[0];const[e,r]=t.http[1].split("?");"/"==m.path?m.path=e:m.path+=e;const n=new URLSearchParams(r??"");Object.assign(o,Object.fromEntries(n))}}for(const[f,h]of l.structIterator()){const e=h.getMergedTraits()??{},t=n[f];if(null!=t||h.isIdempotencyToken())if(e.httpPayload){if(h.isStreaming()){h.isStructSchema()?n[f]&&(p=await this.serializeEventStream({eventStream:n[f],requestSchema:l})):p=t}else i.write(h,t),p=i.flush();delete n[f]}else if(e.httpLabel){i.write(h,t);const e=i.flush();m.path.includes(`{${f}+}`)?m.path=m.path.replace(`{${f}+}`,e.split("/").map(Yn).join("/")):m.path.includes(`{${f}}`)&&(m.path=m.path.replace(`{${f}}`,Yn(e))),delete n[f]}else if(e.httpHeader)i.write(h,t),s[e.httpHeader.toLowerCase()]=String(i.flush()),delete n[f];else if("string"==typeof e.httpPrefixHeaders){for(const[r,n]of Object.entries(t)){const t=e.httpPrefixHeaders+r;i.write([h.getValueSchema(),{httpHeader:t}],n),s[t.toLowerCase()]=i.flush()}delete n[f]}else e.httpQuery||e.httpQueryParams?(this.serializeQuery(h,t,o),delete n[f]):(d=!0,c.push(f),u.push(h));else if(e.httpLabel&&(m.path.includes(`{${f}+}`)||m.path.includes(`{${f}}`)))throw new Error(`No value provided for input HTTP label: ${f}.`)}if(d&&n){const[e,t]=(l.getName(!0)??"#Unknown").split("#"),r=l.getSchema()[6],o=[3,e,t,l.getMergedTraits(),c,u,void 0];r?o[6]=r:o.pop(),i.write(o,n),p=i.flush()}return m.headers=s,m.query=o,m.body=p,m}serializeQuery(e,t,r){const n=this.serializer,i=e.getMergedTraits();if(i.httpQueryParams){for(const[o,s]of Object.entries(t))if(!(o in r)){const t=e.getValueSchema();Object.assign(t.getMergedTraits(),{...i,httpQuery:o,httpQueryParams:void 0}),this.serializeQuery(t,s,r)}}else if(e.isListSchema()){const o=!!e.getMergedTraits().sparse,s=[];for(const r of t){n.write([e.getValueSchema(),i],r);const t=n.flush();(o||void 0!==t)&&s.push(t)}r[i.httpQuery]=s}else n.write([e,i],t),r[i.httpQuery]=n.flush()}async deserializeResponse(e,t,r){const n=this.deserializer,i=mi.of(e.output),o={};if(r.statusCode>=300){const i=await Qn(r.body,t);throw i.byteLength>0&&Object.assign(o,await n.read(15,i)),await this.handleError(e,t,r,o,this.deserializeMetadata(r)),new Error("@smithy/core/protocols - HTTP Protocol error handler failed to throw.")}for(const a in r.headers){const e=r.headers[a];delete r.headers[a],r.headers[a.toLowerCase()]=e}const s=await this.deserializeHttpMessage(i,t,r,o);if(s.length){const e=await Qn(r.body,t);if(e.byteLength>0){const t=await n.read(i,e);for(const e of s)null!=t[e]&&(o[e]=t[e])}}else s.discardResponseBody&&await Qn(r.body,t);return o.$metadata=this.deserializeMetadata(r),o}async deserializeHttpMessage(e,t,r,n,i){let o;o=n instanceof Set?i:n;let s=!0;const a=this.deserializer,l=mi.of(e),c=[];for(const[u,p]of l.structIterator()){const e=p.getMemberTraits();if(e.httpPayload){s=!1;if(p.isStreaming()){const e=p.isStructSchema();o[u]=e?await this.deserializeEventStream({response:r,responseSchema:l}):Kn(r.body)}else if(r.body){const e=await Qn(r.body,t);e.byteLength>0&&(o[u]=await a.read(p,e))}}else if(e.httpHeader){const t=String(e.httpHeader).toLowerCase(),n=r.headers[t];if(null!=n)if(p.isListSchema()){const e=p.getValueSchema();let r;e.getMergedTraits().httpHeader=t,r=e.isTimestampSchema()&&4===e.getSchema()?Bi(n,",",2):Li(n);const i=[];for(const t of r)i.push(await a.read(e,t.trim()));o[u]=i}else o[u]=await a.read(p,n)}else if(void 0!==e.httpPrefixHeaders){o[u]={};for(const[t,n]of Object.entries(r.headers))if(t.startsWith(e.httpPrefixHeaders)){const r=p.getValueSchema();r.getMergedTraits().httpHeader=t,o[u][t.slice(e.httpPrefixHeaders.length)]=await a.read(r,n)}}else e.httpResponseCode?o[u]=r.statusCode:c.push(u)}return c.discardResponseBody=s,c}}function Vi(e,t){if(t.timestampFormat.useTrait&&e.isTimestampSchema()&&(5===e.getSchema()||6===e.getSchema()||7===e.getSchema()))return e.getSchema();const{httpLabel:r,httpPrefixHeaders:n,httpHeader:i,httpQuery:o}=e.getMergedTraits();return(t.httpBindings?"string"==typeof n||Boolean(i)?6:Boolean(o)||Boolean(r)?5:void 0:void 0)??t.timestampFormat.default}class Gi extends Hi{constructor(e){super(),r(this,"settings"),this.settings=e}read(e,t){var r;const n=mi.of(e);if(n.isListSchema())return Li(t).map(e=>this.read(n.getValueSchema(),e));if(n.isBlobSchema())return((null==(r=this.serdeContext)?void 0:r.base64Decoder)??xn)(t);if(n.isTimestampSchema()){switch(Vi(n,this.settings)){case 5:return(e=>{if(null==e)return;if("string"!=typeof e)throw new TypeError("RFC3339 timestamps must be strings");const t=_i.exec(e);if(!t)throw new TypeError(`Invalid RFC3339 timestamp format ${e}`);const[,r,n,i,o,s,a,,l,c]=t;zi(n,1,12),zi(i,1,31),zi(o,0,23),zi(s,0,59),zi(a,0,60);const u=new Date(Date.UTC(Number(r),Number(n)-1,Number(i),Number(o),Number(s),Number(a),Number(l)?Math.round(1e3*parseFloat(`0.${l}`)):0));if(u.setUTCFullYear(Number(r)),"Z"!=c.toUpperCase()){const[,e,t,r]=/([+-])(\d\d):(\d\d)/.exec(c)||[void 0,"+",0,0],n="-"===e?1:-1;u.setTime(u.getTime()+n*(60*Number(t)*60*1e3+60*Number(r)*1e3))}return u})(t);case 6:return(e=>{if(null==e)return;if("string"!=typeof e)throw new TypeError("RFC7231 timestamps must be strings.");let t,r,n,i,o,s,a,l;if((l=Ai.exec(e))?[,t,r,n,i,o,s,a]=l:(l=Ii.exec(e))?([,t,r,n,i,o,s,a]=l,n=(Number(n)+1900).toString()):(l=Mi.exec(e))&&([,r,t,i,o,s,a,n]=l),n&&s){const e=Date.UTC(Number(n),Di.indexOf(r),Number(t),Number(i),Number(o),Number(s),a?Math.round(1e3*parseFloat(`0.${a}`)):0);zi(t,1,31),zi(i,0,23),zi(o,0,59),zi(s,0,60);const l=new Date(e);return l.setUTCFullYear(Number(n)),l}throw new TypeError(`Invalid RFC7231 date-time value ${e}.`)})(t);case 7:return(e=>{if(null==e)return;let t=NaN;if("number"==typeof e)t=e;else if("string"==typeof e){if(!/^-?\d*\.?\d+$/.test(e))throw new TypeError("parseEpochTimestamp - numeric string invalid.");t=Number.parseFloat(e)}else"object"==typeof e&&1===e.tag&&(t=e.value);if(isNaN(t)||Math.abs(t)===1/0)throw new TypeError("Epoch timestamps must be valid finite numbers.");return new Date(Math.round(1e3*t))})(t);default:return new Date(t)}}if(n.isStringSchema()){const e=n.getMergedTraits().mediaType;let r=t;if(e){n.getMergedTraits().httpHeader&&(r=this.base64ToUtf8(r));return("application/json"===e||e.endsWith("+json"))&&(r=Ei.from(r)),r}}return n.isNumericSchema()?Number(t):n.isBigIntegerSchema()?BigInt(t):n.isBigDecimalSchema()?new Ui(t,"bigDecimal"):n.isBooleanSchema()?"true"===String(t).toLowerCase():t}base64ToUtf8(e){var t,r;return((null==(t=this.serdeContext)?void 0:t.utf8Encoder)??Nn)(((null==(r=this.serdeContext)?void 0:r.base64Decoder)??xn)(e))}}class Wi extends Hi{constructor(e,t){super(),r(this,"codecDeserializer"),r(this,"stringDeserializer"),this.codecDeserializer=e,this.stringDeserializer=new Gi(t)}setSerdeContext(e){this.stringDeserializer.setSerdeContext(e),this.codecDeserializer.setSerdeContext(e),this.serdeContext=e}read(e,t){var r,n;const i=mi.of(e),o=i.getMergedTraits(),s=(null==(r=this.serdeContext)?void 0:r.utf8Encoder)??Nn;if(o.httpHeader||o.httpResponseCode)return this.stringDeserializer.read(i,s(t));if(o.httpPayload){if(i.isBlobSchema()){const e=(null==(n=this.serdeContext)?void 0:n.utf8Decoder)??wn;return"string"==typeof t?e(t):t}if(i.isStringSchema())return"byteLength"in t?s(t):t}return this.codecDeserializer.read(i,t)}}class Ki extends Hi{constructor(e){super(),r(this,"settings"),r(this,"stringBuffer",""),this.settings=e}write(e,t){var r,n;const i=mi.of(e);switch(typeof t){case"object":if(null===t)return void(this.stringBuffer="null");if(i.isTimestampSchema()){if(!(t instanceof Date))throw new Error(`@smithy/core/protocols - received non-Date value ${t} when schema expected Date in ${i.getName(!0)}`);switch(Vi(i,this.settings)){case 5:this.stringBuffer=t.toISOString().replace(".000Z","Z");break;case 6:this.stringBuffer=wi(t);break;default:this.stringBuffer=String(t.getTime()/1e3)}return}if(i.isBlobSchema()&&"byteLength"in t)return void(this.stringBuffer=((null==(r=this.serdeContext)?void 0:r.base64Encoder)??jn)(t));if(i.isListSchema()&&Array.isArray(t)){let e="";for(const r of t){this.write([i.getValueSchema(),i.getMergedTraits()],r);const t=this.flush();""!==e&&(e+=", "),e+=i.getValueSchema().isTimestampSchema()?t:Ci(t)}return void(this.stringBuffer=e)}this.stringBuffer=JSON.stringify(t,null,2);break;case"string":const e=i.getMergedTraits().mediaType;let o=t;if(e){if(("application/json"===e||e.endsWith("+json"))&&(o=Ei.from(o)),i.getMergedTraits().httpHeader)return void(this.stringBuffer=((null==(n=this.serdeContext)?void 0:n.base64Encoder)??jn)(o.toString()))}this.stringBuffer=t;break;default:i.isIdempotencyToken()?this.stringBuffer=ji():this.stringBuffer=String(t)}}flush(){const e=this.stringBuffer;return this.stringBuffer="",e}}class Xi{constructor(e,t,n=new Ki(t)){r(this,"codecSerializer"),r(this,"stringSerializer"),r(this,"buffer"),this.codecSerializer=e,this.stringSerializer=n}setSerdeContext(e){this.codecSerializer.setSerdeContext(e),this.stringSerializer.setSerdeContext(e)}write(e,t){const r=mi.of(e),n=r.getMergedTraits();return n.httpHeader||n.httpLabel||n.httpQuery?(this.stringSerializer.write(r,t),void(this.buffer=this.stringSerializer.flush())):this.codecSerializer.write(r,t)}flush(){if(void 0!==this.buffer){const e=this.buffer;return this.buffer=void 0,e}return this.codecSerializer.flush()}}class Qi{constructor(e){r(this,"authSchemes",new Map);for(const[t,r]of Object.entries(e))void 0!==r&&this.authSchemes.set(t,r)}getIdentityProvider(e){return this.authSchemes.get(e)}}const Yi=(Ji=3e5,function(e){return Zi(e)&&e.expiration.getTime()-Date.now()<Ji});var Ji;const Zi=e=>void 0!==e.expiration,eo=(e,t,r)=>{let n,i,o,s=!1;return async t=>(o&&!(null==t?void 0:t.forceRefresh)||(n=await(async()=>{i||(i=e());try{n=await i,o=!0,s=!1}finally{i=void 0}return n})()),n)},to="X-Amz-Date",ro="X-Amz-Signature",no="X-Amz-Security-Token",io="authorization",oo=to.toLowerCase(),so=[io,oo,"date"],ao=ro.toLowerCase(),lo="x-amz-content-sha256",co=no.toLowerCase(),uo={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},po=/^proxy-/,mo=/^sec-/,fo="AWS4-HMAC-SHA256",ho="AWS4-HMAC-SHA256-PAYLOAD",yo="aws4_request",go={},bo=[],vo=(e,t,r)=>`${e}/${t}/${r}/${yo}`,xo=(e,t,r)=>{const n=new e(t);return n.update(Sn(r)),n.digest()},wo=({headers:e},t,r)=>{const n={};for(const i of Object.keys(e).sort()){if(null==e[i])continue;const o=i.toLowerCase();(o in uo||(null==t?void 0:t.has(o))||po.test(o)||mo.test(o))&&(!r||r&&!r.has(o))||(n[o]=e[i].trim().replace(/\s+/g," "))}return n},So=e=>"function"==typeof ArrayBuffer&&e instanceof ArrayBuffer||"[object ArrayBuffer]"===Object.prototype.toString.call(e),No=async({headers:e,body:t},r)=>{for(const n of Object.keys(e))if(n.toLowerCase()===lo)return e[n];if(null==t)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if("string"==typeof t||ArrayBuffer.isView(t)||So(t)){const e=new r;return e.update(Sn(t)),Gn(await e.digest())}return"UNSIGNED-PAYLOAD"};class jo{format(e){const t=[];for(const i of Object.keys(e)){const r=wn(i);t.push(Uint8Array.from([r.byteLength]),r,this.formatHeaderValue(e[i]))}const r=new Uint8Array(t.reduce((e,t)=>e+t.byteLength,0));let n=0;for(const i of t)r.set(i,n),n+=i.byteLength;return r}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":const t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case"integer":const r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,e.value,!1),new Uint8Array(r.buffer);case"long":const n=new Uint8Array(9);return n[0]=5,n.set(e.value.bytes,1),n;case"binary":const i=new DataView(new ArrayBuffer(3+e.value.byteLength));i.setUint8(0,6),i.setUint16(1,e.value.byteLength,!1);const o=new Uint8Array(i.buffer);return o.set(e.value,3),o;case"string":const s=wn(e.value),a=new DataView(new ArrayBuffer(3+s.byteLength));a.setUint8(0,7),a.setUint16(1,s.byteLength,!1);const l=new Uint8Array(a.buffer);return l.set(s,3),l;case"timestamp":const c=new Uint8Array(9);return c[0]=8,c.set(To.fromNumber(e.value.valueOf()).bytes,1),c;case"uuid":if(!ko.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);const u=new Uint8Array(17);return u[0]=9,u.set(Vn(e.value.replace(/\-/g,"")),1),u}}}var Eo,Co;(Co=Eo||(Eo={}))[Co.boolTrue=0]="boolTrue",Co[Co.boolFalse=1]="boolFalse",Co[Co.byte=2]="byte",Co[Co.short=3]="short",Co[Co.integer=4]="integer",Co[Co.long=5]="long",Co[Co.byteArray=6]="byteArray",Co[Co.string=7]="string",Co[Co.timestamp=8]="timestamp",Co[Co.uuid=9]="uuid";const ko=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;let To=class e{constructor(e){if(r(this,"bytes"),this.bytes=e,8!==e.byteLength)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(t){if(t>0x8000000000000000||t<-0x8000000000000000)throw new Error(`${t} is too large (or, if negative, too small) to represent as an Int64`);const r=new Uint8Array(8);for(let e=7,n=Math.abs(Math.round(t));e>-1&&n>0;e--,n/=256)r[e]=n;return t<0&&Ro(r),new e(r)}valueOf(){const e=this.bytes.slice(0),t=128&e[0];return t&&Ro(e),parseInt(Gn(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}};function Ro(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,0===e[t]);t--);}const Oo=e=>{e=Br.clone(e);for(const t of Object.keys(e.headers))so.indexOf(t.toLowerCase())>-1&&delete e.headers[t];return e},Po=e=>"number"==typeof e?new Date(1e3*e):"string"==typeof e?Number(e)?new Date(1e3*Number(e)):new Date(e):e;class _o{constructor({applyChecksum:e,credentials:t,region:n,service:i,sha256:o,uriEscapePath:s=!0}){r(this,"service"),r(this,"regionProvider"),r(this,"credentialProvider"),r(this,"sha256"),r(this,"uriEscapePath"),r(this,"applyChecksum"),this.service=i,this.sha256=o,this.uriEscapePath=s,this.applyChecksum="boolean"!=typeof e||e,this.regionProvider=cn(n),this.credentialProvider=cn(t)}createCanonicalRequest(e,t,r){const n=Object.keys(t).sort();return`${e.method}\n${this.getCanonicalPath(e)}\n${(({query:e={}})=>{const t=[],r={};for(const n of Object.keys(e)){if(n.toLowerCase()===ao)continue;const i=Mn(n);t.push(i);const o=e[n];"string"==typeof o?r[i]=`${i}=${Mn(o)}`:Array.isArray(o)&&(r[i]=o.slice(0).reduce((e,t)=>e.concat([`${i}=${Mn(t)}`]),[]).sort().join("&"))}return t.sort().map(e=>r[e]).filter(e=>e).join("&")})(e)}\n${n.map(e=>`${e}:${t[e]}`).join("\n")}\n\n${n.join(";")}\n${r}`}async createStringToSign(e,t,r,n){const i=new this.sha256;i.update(Sn(r));return`${n}\n${e}\n${t}\n${Gn(await i.digest())}`}getCanonicalPath({path:e}){if(this.uriEscapePath){const t=[];for(const n of e.split("/"))0!==(null==n?void 0:n.length)&&"."!==n&&(".."===n?t.pop():t.push(n));const r=`${(null==e?void 0:e.startsWith("/"))?"/":""}${t.join("/")}${t.length>0&&(null==e?void 0:e.endsWith("/"))?"/":""}`;return Mn(r).replace(/%2F/g,"/")}return e}validateResolvedCredentials(e){if("object"!=typeof e||"string"!=typeof e.accessKeyId||"string"!=typeof e.secretAccessKey)throw new Error("Resolved credential object is not valid")}formatDate(e){const t=(r=e,Po(r).toISOString().replace(/\.\d{3}Z$/,"Z")).replace(/[\-:]/g,"");var r;return{longDate:t,shortDate:t.slice(0,8)}}getCanonicalHeaderList(e){return Object.keys(e).sort().join(";")}}class Ao extends _o{constructor({applyChecksum:e,credentials:t,region:n,service:i,sha256:o,uriEscapePath:s=!0}){super({applyChecksum:e,credentials:t,region:n,service:i,sha256:o,uriEscapePath:s}),r(this,"headerFormatter",new jo)}async presign(e,t={}){const{signingDate:r=new Date,expiresIn:n=3600,unsignableHeaders:i,unhoistableHeaders:o,signableHeaders:s,hoistableHeaders:a,signingRegion:l,signingService:c}=t,u=await this.credentialProvider();this.validateResolvedCredentials(u);const p=l??await this.regionProvider(),{longDate:d,shortDate:m}=this.formatDate(r);if(n>604800)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");const f=vo(m,p,c??this.service),h=((e,t={})=>{var r,n;const{headers:i,query:o={}}=Br.clone(e);for(const s of Object.keys(i)){const e=s.toLowerCase();("x-amz-"===e.slice(0,6)&&!(null==(r=t.unhoistableHeaders)?void 0:r.has(e))||(null==(n=t.hoistableHeaders)?void 0:n.has(e)))&&(o[s]=i[s],delete i[s])}return{...e,headers:i,query:o}})(Oo(e),{unhoistableHeaders:o,hoistableHeaders:a});u.sessionToken&&(h.query[no]=u.sessionToken),h.query["X-Amz-Algorithm"]=fo,h.query["X-Amz-Credential"]=`${u.accessKeyId}/${f}`,h.query[to]=d,h.query["X-Amz-Expires"]=n.toString(10);const y=wo(h,i,s);return h.query["X-Amz-SignedHeaders"]=this.getCanonicalHeaderList(y),h.query[ro]=await this.getSignature(d,f,this.getSigningKey(u,p,m,c),this.createCanonicalRequest(h,y,await No(e,this.sha256))),h}async sign(e,t){return"string"==typeof e?this.signString(e,t):e.headers&&e.payload?this.signEvent(e,t):e.message?this.signMessage(e,t):this.signRequest(e,t)}async signEvent({headers:e,payload:t},{signingDate:r=new Date,priorSignature:n,signingRegion:i,signingService:o}){const s=i??await this.regionProvider(),{shortDate:a,longDate:l}=this.formatDate(r),c=vo(a,s,o??this.service),u=await No({headers:{},body:t},this.sha256),p=new this.sha256;p.update(e);const d=Gn(await p.digest()),m=[ho,l,c,n,d,u].join("\n");return this.signString(m,{signingDate:r,signingRegion:s,signingService:o})}async signMessage(e,{signingDate:t=new Date,signingRegion:r,signingService:n}){return this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:t,signingRegion:r,signingService:n,priorSignature:e.priorSignature}).then(t=>({message:e.message,signature:t}))}async signString(e,{signingDate:t=new Date,signingRegion:r,signingService:n}={}){const i=await this.credentialProvider();this.validateResolvedCredentials(i);const o=r??await this.regionProvider(),{shortDate:s}=this.formatDate(t),a=new this.sha256(await this.getSigningKey(i,o,s,n));return a.update(Sn(e)),Gn(await a.digest())}async signRequest(e,{signingDate:t=new Date,signableHeaders:r,unsignableHeaders:n,signingRegion:i,signingService:o}={}){const s=await this.credentialProvider();this.validateResolvedCredentials(s);const a=i??await this.regionProvider(),l=Oo(e),{longDate:c,shortDate:u}=this.formatDate(t),p=vo(u,a,o??this.service);l.headers[oo]=c,s.sessionToken&&(l.headers[co]=s.sessionToken);const d=await No(l,this.sha256);!((e,t)=>{e=e.toLowerCase();for(const r of Object.keys(t))if(e===r.toLowerCase())return!0;return!1})(lo,l.headers)&&this.applyChecksum&&(l.headers[lo]=d);const m=wo(l,n,r),f=await this.getSignature(c,p,this.getSigningKey(s,a,u,o),this.createCanonicalRequest(l,m,d));return l.headers[io]=`${fo} Credential=${s.accessKeyId}/${p}, SignedHeaders=${this.getCanonicalHeaderList(m)}, Signature=${f}`,l}async getSignature(e,t,r,n){const i=await this.createStringToSign(e,t,n,fo),o=new this.sha256(await r);return o.update(Sn(i)),Gn(await o.digest())}getSigningKey(e,t,r,n){return(async(e,t,r,n,i)=>{const o=`${r}:${n}:${i}:${Gn(await xo(e,t.secretAccessKey,t.accessKeyId))}:${t.sessionToken}`;if(o in go)return go[o];for(bo.push(o);bo.length>50;)delete go[bo.shift()];let s=`AWS4${t.secretAccessKey}`;for(const a of[r,n,i,yo])s=await xo(e,s,a);return go[o]=s})(this.sha256,e,r,t,n||this.service)}}const Io=e=>{let t,r=e.credentials,n=!!e.credentials;Object.defineProperty(e,"credentials",{set(i){i&&i!==r&&i!==t&&(n=!0),r=i;const o=function(e,{credentials:t,credentialDefaultProvider:r}){let n;n=t?(null==t?void 0:t.memoized)?t:((e,t,r)=>{if(void 0===e)return;const n="function"!=typeof e?async()=>Promise.resolve(e):e;let i,o,s,a=!1;const l=async e=>{o||(o=n(e));try{i=await o,s=!0,a=!1}finally{o=void 0}return i};return void 0===t?async e=>(s&&!(null==e?void 0:e.forceRefresh)||(i=await l(e)),i):async e=>(s&&!(null==e?void 0:e.forceRefresh)||(i=await l(e)),a?i:r(i)?t(i)?(await l(e),i):i:(a=!0,i))})(t,Yi,Zi):r?yn(r(Object.assign({},e,{parentClientConfig:e}))):async()=>{throw new Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")};return n.memoized=!0,n}(e,{credentials:r,credentialDefaultProvider:e.credentialDefaultProvider}),s=function(e,t){if(t.configBound)return t;const r=async r=>t({...r,callerClientConfig:e});return r.memoized=t.memoized,r.configBound=!0,r}(e,o);if(n&&!s.attributed){const e="object"==typeof r&&null!==r;t=async t=>{const r=await s(t);return!e||r.$source&&0!==Object.keys(r.$source).length?r:function(e,t,r){return e.$source||(e.$source={}),e.$source[t]=r,e}(r,"CREDENTIALS_CODE","e")},t.memoized=s.memoized,t.configBound=s.configBound,t.attributed=!0}else t=s},get:()=>t,enumerable:!0,configurable:!0}),e.credentials=r;const{signingEscapePath:i=!0,systemClockOffset:o=e.systemClockOffset||0,sha256:s}=e;let a;a=e.signer?yn(e.signer):e.regionInfoProvider?()=>yn(e.region)().then(async t=>[await e.regionInfoProvider(t,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},t]).then(([t,r])=>{const{signingRegion:n,signingService:o}=t;e.signingRegion=e.signingRegion||n||r,e.signingName=e.signingName||o||e.serviceId;const a={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:s,uriEscapePath:i};return new(e.signerConstructor||Ao)(a)}):async t=>{const r=(t=Object.assign({},{name:"sigv4",signingName:e.signingName||e.defaultSigningName,signingRegion:await yn(e.region)(),properties:{}},t)).signingRegion,n=t.signingName;e.signingRegion=e.signingRegion||r,e.signingName=e.signingName||n||e.serviceId;const o={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:s,uriEscapePath:i};return new(e.signerConstructor||Ao)(o)};return Object.assign(e,{systemClockOffset:o,signingEscapePath:i,signer:a})};const Mo="function"==typeof TextEncoder?new TextEncoder:null,Do=e=>{if("string"==typeof e){if(Mo)return Mo.encode(e).byteLength;let t=e.length;for(let r=t-1;r>=0;r--){const n=e.charCodeAt(r);n>127&&n<=2047?t++:n>2047&&n<=65535&&(t+=2),n>=56320&&n<=57343&&r--}return t}if("number"==typeof e.byteLength)return e.byteLength;if("number"==typeof e.size)return e.size;throw new Error(`Body Length computation failed for ${e}`)},zo=(e,t)=>{const r=[];if(e&&r.push(e),t)for(const n of t)r.push(n);return r},Bo=(e,t)=>`${e||"anonymous"}${t&&t.length>0?` (a.k.a. ${t.join(",")})`:""}`,Lo=()=>{let e=[],t=[],r=!1;const n=new Set,i=r=>{var n;return e.forEach(e=>{r.add(e.middleware,{...e})}),t.forEach(e=>{r.addRelativeTo(e.middleware,{...e})}),null==(n=r.identifyOnResolve)||n.call(r,a.identifyOnResolve()),r},o=e=>{const t=[];return e.before.forEach(e=>{0===e.before.length&&0===e.after.length?t.push(e):t.push(...o(e))}),t.push(e),e.after.reverse().forEach(e=>{0===e.before.length&&0===e.after.length?t.push(e):t.push(...o(e))}),t},s=(r=!1)=>{const n=[],i=[],s={};e.forEach(e=>{const t={...e,before:[],after:[]};for(const r of zo(t.name,t.aliases))s[r]=t;n.push(t)}),t.forEach(e=>{const t={...e,before:[],after:[]};for(const r of zo(t.name,t.aliases))s[r]=t;i.push(t)}),i.forEach(e=>{if(e.toMiddleware){const t=s[e.toMiddleware];if(void 0===t){if(r)return;throw new Error(`${e.toMiddleware} is not found when adding ${Bo(e.name,e.aliases)} middleware ${e.relation} ${e.toMiddleware}`)}"after"===e.relation&&t.after.push(e),"before"===e.relation&&t.before.push(e)}});var a;return(a=n,a.sort((e,t)=>qo[t.step]-qo[e.step]||Uo[t.priority||"normal"]-Uo[e.priority||"normal"])).map(o).reduce((e,t)=>(e.push(...t),e),[])},a={add:(t,r={})=>{const{name:i,override:o,aliases:s}=r,a={step:"initialize",priority:"normal",middleware:t,...r},l=zo(i,s);if(l.length>0){if(l.some(e=>n.has(e))){if(!o)throw new Error(`Duplicate middleware name '${Bo(i,s)}'`);for(const t of l){const r=e.findIndex(e=>{var r;return e.name===t||(null==(r=e.aliases)?void 0:r.some(e=>e===t))});if(-1===r)continue;const n=e[r];if(n.step!==a.step||a.priority!==n.priority)throw new Error(`"${Bo(n.name,n.aliases)}" middleware with ${n.priority} priority in ${n.step} step cannot be overridden by "${Bo(i,s)}" middleware with ${a.priority} priority in ${a.step} step.`);e.splice(r,1)}}for(const e of l)n.add(e)}e.push(a)},addRelativeTo:(e,r)=>{const{name:i,override:o,aliases:s}=r,a={middleware:e,...r},l=zo(i,s);if(l.length>0){if(l.some(e=>n.has(e))){if(!o)throw new Error(`Duplicate middleware name '${Bo(i,s)}'`);for(const e of l){const r=t.findIndex(t=>{var r;return t.name===e||(null==(r=t.aliases)?void 0:r.some(t=>t===e))});if(-1===r)continue;const n=t[r];if(n.toMiddleware!==a.toMiddleware||n.relation!==a.relation)throw new Error(`"${Bo(n.name,n.aliases)}" middleware ${n.relation} "${n.toMiddleware}" middleware cannot be overridden by "${Bo(i,s)}" middleware ${a.relation} "${a.toMiddleware}" middleware.`);t.splice(r,1)}}for(const e of l)n.add(e)}t.push(a)},clone:()=>i(Lo()),use:e=>{e.applyToStack(a)},remove:r=>"string"==typeof r?(r=>{let i=!1;const o=e=>{const t=zo(e.name,e.aliases);if(t.includes(r)){i=!0;for(const e of t)n.delete(e);return!1}return!0};return e=e.filter(o),t=t.filter(o),i})(r):(r=>{let i=!1;const o=e=>{if(e.middleware===r){i=!0;for(const t of zo(e.name,e.aliases))n.delete(t);return!1}return!0};return e=e.filter(o),t=t.filter(o),i})(r),removeByTag:r=>{let i=!1;const o=e=>{const{tags:t,name:o,aliases:s}=e;if(t&&t.includes(r)){const e=zo(o,s);for(const t of e)n.delete(t);return i=!0,!1}return!0};return e=e.filter(o),t=t.filter(o),i},concat:e=>{var t;const n=i(Lo());return n.use(e),n.identifyOnResolve(r||n.identifyOnResolve()||((null==(t=e.identifyOnResolve)?void 0:t.call(e))??!1)),n},applyToStack:i,identify:()=>s(!0).map(e=>{const t=e.step??e.relation+" "+e.toMiddleware;return Bo(e.name,e.aliases)+" - "+t}),identifyOnResolve:e=>("boolean"==typeof e&&(r=e),r),resolve:(e,t)=>{for(const r of s().map(e=>e.middleware).reverse())e=r(e,t);return e}};return a},qo={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},Uo={high:3,normal:2,low:1};class Ho{constructor(e){r(this,"config"),r(this,"middlewareStack",Lo()),r(this,"initConfig"),r(this,"handlers"),this.config=e;const{protocol:t,protocolSettings:n}=e;n&&"function"==typeof t&&(e.protocol=new t(n))}send(e,t,r){const n="function"!=typeof t?t:void 0,i="function"==typeof t?t:r;let o;if(void 0===n&&!0===this.config.cacheMiddleware){this.handlers||(this.handlers=new WeakMap);const t=this.handlers;t.has(e.constructor)?o=t.get(e.constructor):(o=e.resolveMiddleware(this.middlewareStack,this.config,n),t.set(e.constructor,o))}else delete this.handlers,o=e.resolveMiddleware(this.middlewareStack,this.config,n);if(!i)return o(e).then(e=>e.output);o(e).then(e=>i(null,e.output),e=>i(e)).catch(()=>{})}destroy(){var e,t,r;null==(r=null==(t=null==(e=this.config)?void 0:e.requestHandler)?void 0:t.destroy)||r.call(t),delete this.handlers}}const Fo="***SensitiveInformation***";function $o(e,t){if(null==t)return t;const r=mi.of(e);if(r.getMergedTraits().sensitive)return Fo;if(r.isListSchema()){if(!!r.getValueSchema().getMergedTraits().sensitive)return Fo}else if(r.isMapSchema()){if(!!r.getKeySchema().getMergedTraits().sensitive||!!r.getValueSchema().getMergedTraits().sensitive)return Fo}else if(r.isStructSchema()&&"object"==typeof t){const e=t,n={};for(const[t,i]of r.structIterator())null!=e[t]&&(n[t]=$o(i,e[t]));return n}return t}class Vo{constructor(){r(this,"middlewareStack",Lo()),r(this,"schema")}static classBuilder(){return new Go}resolveMiddlewareWithContext(e,t,r,{middlewareFn:n,clientName:i,commandName:o,inputFilterSensitiveLog:s,outputFilterSensitiveLog:a,smithyContext:l,additionalContext:c,CommandCtor:u}){for(const h of n.bind(this)(u,e,t,r))this.middlewareStack.use(h);const p=e.concat(this.middlewareStack),{logger:d}=t,m={logger:d,clientName:i,commandName:o,inputFilterSensitiveLog:s,outputFilterSensitiveLog:a,[zr]:{commandInstance:this,...l},...c},{requestHandler:f}=t;return p.resolve(e=>f.handle(e.request,r||{}),m)}}class Go{constructor(){r(this,"_init",()=>{}),r(this,"_ep",{}),r(this,"_middlewareFn",()=>[]),r(this,"_commandName",""),r(this,"_clientName",""),r(this,"_additionalContext",{}),r(this,"_smithyContext",{}),r(this,"_inputFilterSensitiveLog"),r(this,"_outputFilterSensitiveLog"),r(this,"_serializer",null),r(this,"_deserializer",null),r(this,"_operationSchema")}init(e){this._init=e}ep(e){return this._ep=e,this}m(e){return this._middlewareFn=e,this}s(e,t,r={}){return this._smithyContext={service:e,operation:t,...r},this}c(e={}){return this._additionalContext=e,this}n(e,t){return this._clientName=e,this._commandName=t,this}f(e=e=>e,t=e=>e){return this._inputFilterSensitiveLog=e,this._outputFilterSensitiveLog=t,this}ser(e){return this._serializer=e,this}de(e){return this._deserializer=e,this}sc(e){return this._operationSchema=e,this._smithyContext.operationSchema=e,this}build(){const e=this;let t;return t=class extends Vo{constructor(...[t]){super(),r(this,"input"),r(this,"serialize",e._serializer),r(this,"deserialize",e._deserializer),this.input=t??{},e._init(this),this.schema=e._operationSchema}static getEndpointParameterInstructions(){return e._ep}resolveMiddleware(r,n,i){const o=e._operationSchema,s=(null==o?void 0:o[4])??(null==o?void 0:o.input),a=(null==o?void 0:o[5])??(null==o?void 0:o.output);return this.resolveMiddlewareWithContext(r,n,i,{CommandCtor:t,middlewareFn:e._middlewareFn,clientName:e._clientName,commandName:e._commandName,inputFilterSensitiveLog:e._inputFilterSensitiveLog??(o?$o.bind(null,s):e=>e),outputFilterSensitiveLog:e._outputFilterSensitiveLog??(o?$o.bind(null,a):e=>e),smithyContext:e._smithyContext,additionalContext:e._additionalContext})}}}}class Wo extends Error{constructor(e){super(e.message),r(this,"$fault"),r(this,"$response"),r(this,"$retryable"),r(this,"$metadata"),Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=e.name,this.$fault=e.$fault,this.$metadata=e.$metadata}static isInstance(e){if(!e)return!1;const t=e;return Wo.prototype.isPrototypeOf(t)||Boolean(t.$fault)&&Boolean(t.$metadata)&&("client"===t.$fault||"server"===t.$fault)}static[Symbol.hasInstance](e){if(!e)return!1;const t=e;return this===Wo?Wo.isInstance(e):!!Wo.isInstance(e)&&(t.name&&this.name?this.prototype.isPrototypeOf(e)||t.name===this.name:this.prototype.isPrototypeOf(e))}}const Ko=(e,t={})=>{Object.entries(t).filter(([,e])=>void 0!==e).forEach(([t,r])=>{null!=e[t]&&""!==e[t]||(e[t]=r)});const r=e.message||e.Message||"UnknownError";return e.message=r,delete e.Message,e},Xo=e=>{switch(e){case"standard":case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}},Qo=Object.values(Mr),Yo=e=>Object.assign((e=>{const t=[];for(const r in Mr){const n=Mr[r];void 0!==e[n]&&t.push({algorithmId:()=>n,checksumConstructor:()=>e[n]})}for(const[r,n]of Object.entries(e.checksumAlgorithms??{}))t.push({algorithmId:()=>r,checksumConstructor:()=>n});return{addChecksumAlgorithm(r){e.checksumAlgorithms=e.checksumAlgorithms??{};const n=r.algorithmId(),i=r.checksumConstructor();Qo.includes(n)?e.checksumAlgorithms[n.toUpperCase()]=i:e.checksumAlgorithms[n]=i,t.push(r)},checksumAlgorithms:()=>t}})(e),(e=>({setRetryStrategy(t){e.retryStrategy=t},retryStrategy:()=>e.retryStrategy}))(e)),Jo=e=>Object.assign((e=>{const t={};return e.checksumAlgorithms().forEach(e=>{const r=e.algorithmId();Qo.includes(r)&&(t[r]=e.checksumConstructor())}),t})(e),(e=>{const t={};return t.retryStrategy=e.retryStrategy(),t})(e)),Zo=e=>{const t="#text";for(const r in e)e.hasOwnProperty(r)&&void 0!==e[r][t]?e[r]=e[r][t]:"object"==typeof e[r]&&null!==e[r]&&(e[r]=Zo(e[r]));return e};class es{trace(){}debug(){}info(){}warn(){}error(){}}class ts{constructor(e=!1){r(this,"queryCompat"),this.queryCompat=e}resolveRestContentType(e,t){const r=t.getMemberSchemas(),n=Object.values(r).find(e=>!!e.getMergedTraits().httpPayload);if(n){const t=n.getMergedTraits().mediaType;return t||(n.isStringSchema()?"text/plain":n.isBlobSchema()?"application/octet-stream":e)}if(!t.isUnitSchema()){if(Object.values(r).find(e=>{const{httpQuery:t,httpQueryParams:r,httpHeader:n,httpLabel:i,httpPrefixHeaders:o}=e.getMergedTraits();return!t&&!r&&!n&&!i&&void 0===o}))return e}}async getErrorSchemaOrThrowBaseException(e,t,r,n,i,o){let s=t,a=e;e.includes("#")&&([s,a]=e.split("#"));const l={$metadata:i,$fault:r.statusCode<500?"client":"server"},c=bi.for(s);try{return{errorSchema:(null==o?void 0:o(c,a))??c.getSchema(e),errorMetadata:l}}catch(u){n.message=n.message??n.Message??"UnknownError";const e=bi.for("smithy.ts.sdk.synthetic."+s),t=e.getBaseException();if(t){const r=e.getErrorCtor(t)??Error;throw this.decorateServiceException(Object.assign(new r({name:a}),l),n)}throw this.decorateServiceException(Object.assign(new Error(a),l),n)}}decorateServiceException(e,t={}){var r,n,i,o;if(this.queryCompat){const s=e.Message??t.Message,a=Ko(e,t);s&&(a.message=s),a.Error={...a.Error,Type:null==(r=a.Error)?void 0:r.Type,Code:null==(n=a.Error)?void 0:n.Code,Message:(null==(i=a.Error)?void 0:i.message)??(null==(o=a.Error)?void 0:o.Message)??s};const l=a.$metadata.requestId;return l&&(a.RequestId=l),a}return Ko(e,t)}setQueryCompatError(e,t){var r;const n=null==(r=t.headers)?void 0:r["x-amzn-query-error"];if(void 0!==e&&null!=n){const[t,r]=n.split(";"),i=Object.entries(e),o={Code:t,Type:r};Object.assign(e,o);for(const[e,n]of i)o["message"===e?"Message":e]=n;delete o.__type,e.Error=o}}queryCompatOutput(e,t){e.Error&&(t.Error=e.Error),e.Type&&(t.Type=e.Type),e.Code&&(t.Code=e.Code)}findQueryCompatibleError(e,t){try{return e.getSchema(t)}catch(r){return e.find(e=>{var r;return(null==(r=mi.of(e).getMergedTraits().awsQueryError)?void 0:r[0])===t})}}}class rs{constructor(){r(this,"serdeContext")}setSerdeContext(e){this.serdeContext=e}}class ns{constructor(e,t){r(this,"from"),r(this,"to"),r(this,"keys"),this.from=e,this.to=t,this.keys=new Set(Object.keys(this.from).filter(e=>"__type"!==e))}mark(e){this.keys.delete(e)}hasUnknown(){return 1===this.keys.size&&0===Object.keys(this.to).length}writeUnknown(){if(this.hasUnknown()){const e=this.keys.values().next().value,t=this.from[e];this.to.$unknown=[e,t]}}}const is=/[&<>"]/g,os={"&":"&","<":"<",">":">",'"':"""};function ss(e){return e.replace(is,e=>os[e])}const as=/[&"'<>\r\n\u0085\u2028]/g,ls={"&":"&",'"':""","'":"'","<":"<",">":">","\r":"
","\n":"
","
":"…","\u2028":"
"};class cs{constructor(e){r(this,"value"),this.value=e}toString(){return(""+this.value).replace(as,e=>ls[e])}}class us{constructor(e,t=[]){r(this,"name"),r(this,"children"),r(this,"attributes",{}),this.name=e,this.children=t}static of(e,t,r){const n=new us(e);return void 0!==t&&n.addChildNode(new cs(t)),void 0!==r&&n.withName(r),n}withName(e){return this.name=e,this}addAttribute(e,t){return this.attributes[e]=t,this}addChildNode(e){return this.children.push(e),this}removeAttribute(e){return delete this.attributes[e],this}n(e){return this.name=e,this}c(e){return this.children.push(e),this}a(e,t){return null!=t&&(this.attributes[e]=t),this}cc(e,t,r=t){if(null!=e[t]){const n=us.of(t,e[t]).withName(r);this.c(n)}}l(e,t,r,n){if(null!=e[t]){n().map(e=>{e.withName(r),this.c(e)})}}lc(e,t,r,n){if(null!=e[t]){const e=n(),t=new us(r);e.map(e=>{t.c(e)}),this.c(t)}}toString(){const e=Boolean(this.children.length);let t=`<${this.name}`;const r=this.attributes;for(const n of Object.keys(r)){const e=r[n];null!=e&&(t+=` ${n}="${ss(""+e)}"`)}return t+(e?`>${this.children.map(e=>e.toString()).join("")}</${this.name}>`:"/>")}}let ps;class ds extends rs{constructor(e){super(),r(this,"settings"),r(this,"stringDeserializer"),this.settings=e,this.stringDeserializer=new Gi(e)}setSerdeContext(e){this.serdeContext=e,this.stringDeserializer.setSerdeContext(e)}read(e,t,r){var n;const i=mi.of(e),o=i.getMemberSchemas();if(i.isStructSchema()&&i.isMemberSchema()&&!!Object.values(o).find(e=>!!e.getMemberTraits().eventPayload)){const e={},r=Object.keys(o)[0];return o[r].isBlobSchema()?e[r]=t:e[r]=this.read(o[r],t),e}const s=((null==(n=this.serdeContext)?void 0:n.utf8Encoder)??Nn)(t),a=this.parseXml(s);return this.readSchema(e,r?a[r]:a)}readSchema(e,t){const r=mi.of(e);if(r.isUnitSchema())return;const n=r.getMergedTraits();if(r.isListSchema()&&!Array.isArray(t))return this.readSchema(r,[t]);if(null==t)return t;if("object"==typeof t){const e=!!n.xmlFlattened;if(r.isListSchema()){const n=r.getValueSchema(),i=[],o=n.getMergedTraits().xmlName??"member",s=e?t:(t[0]??t)[o];if(null==s)return i;const a=Array.isArray(s)?s:[s];for(const e of a)i.push(this.readSchema(n,e));return i}const i={};if(r.isMapSchema()){const n=r.getKeySchema(),o=r.getValueSchema();let s;s=e?Array.isArray(t)?t:[t]:Array.isArray(t.entry)?t.entry:[t.entry];const a=n.getMergedTraits().xmlName??"key",l=o.getMergedTraits().xmlName??"value";for(const e of s){const t=e[a],r=e[l];i[t]=this.readSchema(o,r)}return i}if(r.isStructSchema()){const e=r.isUnionSchema();let n;e&&(n=new ns(t,i));for(const[o,s]of r.structIterator()){const r=s.getMergedTraits(),a=r.httpPayload?r.xmlName??s.getName():s.getMemberTraits().xmlName??o;e&&n.mark(a),null!=t[a]&&(i[o]=this.readSchema(s,t[a]))}return e&&n.writeUnknown(),i}if(r.isDocumentSchema())return t;throw new Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${r.getName(!0)}`)}return r.isListSchema()?[]:r.isMapSchema()||r.isStructSchema()?{}:this.stringDeserializer.read(r,t)}parseXml(e){if(e.length){let r;try{r=function(e){ps||(ps=new DOMParser);const t=ps.parseFromString(e,"application/xml");if(t.getElementsByTagName("parsererror").length>0)throw new Error("DOMParser XML parsing error.");const r=e=>{var t;if(e.nodeType===Node.TEXT_NODE&&(null==(t=e.textContent)?void 0:t.trim()))return e.textContent;if(e.nodeType===Node.ELEMENT_NODE){const t=e;if(0===t.attributes.length&&0===t.childNodes.length)return"";const n={},i=Array.from(t.attributes);for(const e of i)n[`${e.name}`]=e.value;const o=Array.from(t.childNodes);for(const e of o){const s=r(e);if(null!=s){const t=e.nodeName;if(1===o.length&&0===i.length&&"#text"===t)return s;n[t]?Array.isArray(n[t])?n[t].push(s):n[t]=[n[t],s]:n[t]=s}else if(1===o.length&&0===i.length)return t.textContent}return n}return null};return{[t.documentElement.nodeName]:r(t.documentElement)}}(e)}catch(t){throw t&&"object"==typeof t&&Object.defineProperty(t,"$responseBodyText",{value:e}),t}const n="#text",i=Object.keys(r)[0],o=r[i];return o[n]&&(o[i]=o[n],delete o[n]),Zo(o)}return{}}}class ms extends rs{constructor(e){super(),r(this,"settings"),r(this,"stringBuffer"),r(this,"byteBuffer"),r(this,"buffer"),this.settings=e}write(e,t){var r;const n=mi.of(e);if(n.isStringSchema()&&"string"==typeof t)this.stringBuffer=t;else if(n.isBlobSchema())this.byteBuffer="byteLength"in t?t:((null==(r=this.serdeContext)?void 0:r.base64Decoder)??xn)(t);else{this.buffer=this.writeStruct(n,t,void 0);const e=n.getMergedTraits();e.httpPayload&&!e.xmlName&&this.buffer.withName(n.getName())}}flush(){var e;if(void 0!==this.byteBuffer){const e=this.byteBuffer;return delete this.byteBuffer,e}if(void 0!==this.stringBuffer){const e=this.stringBuffer;return delete this.stringBuffer,e}const t=this.buffer;return this.settings.xmlNamespace&&((null==(e=null==t?void 0:t.attributes)?void 0:e.xmlns)||t.addAttribute("xmlns",this.settings.xmlNamespace)),delete this.buffer,t.toString()}writeStruct(e,t,r){const n=e.getMergedTraits(),i=e.isMemberSchema()&&!n.httpPayload?e.getMemberTraits().xmlName??e.getMemberName():n.xmlName??e.getName();if(!i||!e.isStructSchema())throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write struct with empty name or non-struct, schema=${e.getName(!0)}.`);const o=us.of(i),[s,a]=this.getXmlnsAttribute(e,r);for(const[c,u]of e.structIterator()){const e=t[c];if(null!=e||u.isIdempotencyToken()){if(u.getMergedTraits().xmlAttribute){o.addAttribute(u.getMergedTraits().xmlName??c,this.writeSimple(u,e));continue}if(u.isListSchema())this.writeList(u,e,o,a);else if(u.isMapSchema())this.writeMap(u,e,o,a);else if(u.isStructSchema())o.addChildNode(this.writeStruct(u,e,a));else{const t=us.of(u.getMergedTraits().xmlName??u.getMemberName());this.writeSimpleInto(u,e,t,a),o.addChildNode(t)}}}const{$unknown:l}=t;if(l&&e.isUnionSchema()&&Array.isArray(l)&&1===Object.keys(t).length){const[e,r]=l,n=us.of(e);if("string"!=typeof r){if(!(t instanceof us||t instanceof cs))throw new Error("@aws-sdk - $unknown union member in XML requires value of type string, @aws-sdk/xml-builder::XmlNode or XmlText.");o.addChildNode(t)}this.writeSimpleInto(0,r,n,a),o.addChildNode(n)}return a&&o.addAttribute(s,a),o}writeList(e,t,r,n){if(!e.isMemberSchema())throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member list: ${e.getName(!0)}`);const i=e.getMergedTraits(),o=e.getValueSchema(),s=o.getMergedTraits(),a=!!s.sparse,l=!!i.xmlFlattened,[c,u]=this.getXmlnsAttribute(e,n),p=(t,r)=>{if(o.isListSchema())this.writeList(o,Array.isArray(r)?r:[r],t,u);else if(o.isMapSchema())this.writeMap(o,r,t,u);else if(o.isStructSchema()){const n=this.writeStruct(o,r,u);t.addChildNode(n.withName(l?i.xmlName??e.getMemberName():s.xmlName??"member"))}else{const n=us.of(l?i.xmlName??e.getMemberName():s.xmlName??"member");this.writeSimpleInto(o,r,n,u),t.addChildNode(n)}};if(l)for(const d of t)(a||null!=d)&&p(r,d);else{const n=us.of(i.xmlName??e.getMemberName());u&&n.addAttribute(c,u);for(const e of t)(a||null!=e)&&p(n,e);r.addChildNode(n)}}writeMap(e,t,r,n,i=!1){if(!e.isMemberSchema())throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member map: ${e.getName(!0)}`);const o=e.getMergedTraits(),s=e.getKeySchema(),a=s.getMergedTraits().xmlName??"key",l=e.getValueSchema(),c=l.getMergedTraits(),u=c.xmlName??"value",p=!!c.sparse,d=!!o.xmlFlattened,[m,f]=this.getXmlnsAttribute(e,n),h=(e,t,r)=>{const n=us.of(a,t),[i,o]=this.getXmlnsAttribute(s,f);o&&n.addAttribute(i,o),e.addChildNode(n);let c=us.of(u);l.isListSchema()?this.writeList(l,r,c,f):l.isMapSchema()?this.writeMap(l,r,c,f,!0):l.isStructSchema()?c=this.writeStruct(l,r,f):this.writeSimpleInto(l,r,c,f),e.addChildNode(c)};if(d){for(const[y,g]of Object.entries(t))if(p||null!=g){const t=us.of(o.xmlName??e.getMemberName());h(t,y,g),r.addChildNode(t)}}else{let n;i||(n=us.of(o.xmlName??e.getMemberName()),f&&n.addAttribute(m,f),r.addChildNode(n));for(const[e,o]of Object.entries(t))if(p||null!=o){const t=us.of("entry");h(t,e,o),(i?r:n).addChildNode(t)}}}writeSimple(e,t){var r;if(null===t)throw new Error("@aws-sdk/core/protocols - (XML serializer) cannot write null value.");const n=mi.of(e);let i=null;if(t&&"object"==typeof t)if(n.isBlobSchema())i=((null==(r=this.serdeContext)?void 0:r.base64Encoder)??jn)(t);else{if(!(n.isTimestampSchema()&&t instanceof Date)){if(n.isBigDecimalSchema()&&t)return t instanceof Ui?t.string:String(t);throw n.isMapSchema()||n.isListSchema()?new Error("@aws-sdk/core/protocols - xml serializer, cannot call _write() on List/Map schema, call writeList or writeMap() instead."):new Error(`@aws-sdk/core/protocols - xml serializer, unhandled schema type for object value and schema: ${n.getName(!0)}`)}switch(Vi(n,this.settings)){case 5:i=t.toISOString().replace(".000Z","Z");break;case 6:default:i=wi(t);break;case 7:i=String(t.getTime()/1e3)}}if((n.isBooleanSchema()||n.isNumericSchema()||n.isBigIntegerSchema()||n.isBigDecimalSchema())&&(i=String(t)),n.isStringSchema()&&(i=void 0===t&&n.isIdempotencyToken()?ji():String(t)),null===i)throw new Error(`Unhandled schema-value pair ${n.getName(!0)}=${t}`);return i}writeSimpleInto(e,t,r,n){const i=this.writeSimple(e,t),o=mi.of(e),s=new cs(i),[a,l]=this.getXmlnsAttribute(o,n);l&&r.addAttribute(a,l),r.addChildNode(s)}getXmlnsAttribute(e,t){const r=e.getMergedTraits(),[n,i]=r.xmlNamespace??[];return i&&i!==t?[n?`xmlns:${n}`:"xmlns",i]:[void 0,void 0]}}class fs extends rs{constructor(e){super(),r(this,"settings"),this.settings=e}createSerializer(){const e=new ms(this.settings);return e.setSerdeContext(this.serdeContext),e}createDeserializer(){const e=new ds(this.settings);return e.setSerdeContext(this.serdeContext),e}}class hs extends $i{constructor(e){super(e),r(this,"codec"),r(this,"serializer"),r(this,"deserializer"),r(this,"mixin",new ts);const t={timestampFormat:{useTrait:!0,default:5},httpBindings:!0,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace};this.codec=new fs(t),this.serializer=new Xi(this.codec.createSerializer(),t),this.deserializer=new Wi(this.codec.createDeserializer(),t)}getPayloadCodec(){return this.codec}getShapeId(){return"aws.protocols#restXml"}async serializeRequest(e,t,r){const n=await super.serializeRequest(e,t,r),i=mi.of(e.input);if(!n.headers["content-type"]){const e=this.mixin.resolveRestContentType(this.getDefaultContentType(),i);e&&(n.headers["content-type"]=e)}return"string"!=typeof n.body||n.headers["content-type"]!==this.getDefaultContentType()||n.body.startsWith("<?xml ")||this.hasUnstructuredPayloadBinding(i)||(n.body='<?xml version="1.0" encoding="UTF-8"?>'+n.body),n}async deserializeResponse(e,t,r){return super.deserializeResponse(e,t,r)}async handleError(e,t,r,n,i){var o,s,a;const l=((e,t)=>{var r;return void 0!==(null==(r=null==t?void 0:t.Error)?void 0:r.Code)?t.Error.Code:void 0!==(null==t?void 0:t.Code)?t.Code:404==e.statusCode?"NotFound":void 0})(r,n)??"Unknown";if(n.Error&&"object"==typeof n.Error)for(const h of Object.keys(n.Error))n[h]=n.Error[h],"message"===h.toLowerCase()&&(n.message=n.Error[h]);n.RequestId&&!i.requestId&&(i.requestId=n.RequestId);const{errorSchema:c,errorMetadata:u}=await this.mixin.getErrorSchemaOrThrowBaseException(l,this.options.defaultNamespace,r,n,i),p=mi.of(c),d=(null==(o=n.Error)?void 0:o.message)??(null==(s=n.Error)?void 0:s.Message)??n.message??n.Message??"Unknown",m=new(bi.for(c[1]).getErrorCtor(c)??Error)(d);await this.deserializeHttpMessage(c,t,r,n);const f={};for(const[h,y]of p.structIterator()){const e=y.getMergedTraits().xmlName??h,t=(null==(a=n.Error)?void 0:a[e])??n[e];f[h]=this.codec.createDeserializer().readSchema(y,t)}throw this.mixin.decorateServiceException(Object.assign(m,u,{$fault:p.getMergedTraits().error,message:d},f),n)}getDefaultContentType(){return"application/xml"}hasUnstructuredPayloadBinding(e){for(const[,t]of e.structIterator())if(t.getMergedTraits().httpPayload)return!(t.isStructSchema()||t.isMapSchema()||t.isListSchema());return!1}}const ys=e=>e===Kr.MD5?"content-md5":`x-amz-checksum-${e.toLowerCase()}`,gs=e=>void 0!==e&&"string"!=typeof e&&!ArrayBuffer.isView(e)&&!So(e);function bs(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e))}catch(t){o(t)}}function a(e){try{l(n.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})}function vs(e,t){var r,n,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(l){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(o=0)),o;)try{if(r=1,n&&(i=2&a[0]?n.return:a[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;switch(n=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,n=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(l){a=[6,l],n=0}finally{r=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}function xs(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ws(e){return this instanceof ws?(this.v=e,this):new ws(e)}function Ss(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(e,t||[]),o=[];return n=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",function(e){return function(t){return Promise.resolve(t).then(e,c)}}),n[Symbol.asyncIterator]=function(){return this},n;function s(e,t){i[e]&&(n[e]=function(t){return new Promise(function(r,n){o.push([e,t,r,n])>1||a(e,t)})},t&&(n[e]=t(n[e])))}function a(e,t){try{(r=i[e](t)).value instanceof ws?Promise.resolve(r.value.v).then(l,c):u(o[0][2],r)}catch(n){u(o[0][3],n)}var r}function l(e){a("next",e)}function c(e){a("throw",e)}function u(e,t){e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function Ns(e){var t,r;return t={},n("next"),n("throw",function(e){throw e}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:ws(e[n](t)),done:!1}:i?i(t):t}:i}}function js(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=xs(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,i){(function(e,t,r,n){Promise.resolve(n).then(function(t){e({value:t,done:r})},t)})(n,i,(t=e[r](t)).done,t.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const Es=e=>(new TextEncoder).encode(e);var Cs="undefined"!=typeof Buffer&&Buffer.from?function(e){return Buffer.from(e,"utf8")}:Es;function ks(e){return e instanceof Uint8Array?e:"string"==typeof e?Cs(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}function Ts(e){return"string"==typeof e?0===e.length:0===e.byteLength}function Rs(e){return new Uint8Array([(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e])}function Os(e){if(!Uint32Array.from){for(var t=new Uint32Array(e.length),r=0;r<e.length;)t[r]=e[r],r+=1;return t}return Uint32Array.from(e)}var Ps=function(){function e(){this.crc32c=new _s}return e.prototype.update=function(e){Ts(e)||this.crc32c.update(ks(e))},e.prototype.digest=function(){return bs(this,void 0,void 0,function(){return vs(this,function(e){return[2,Rs(this.crc32c.digest())]})})},e.prototype.reset=function(){this.crc32c=new _s},e}(),_s=function(){function e(){this.checksum=4294967295}return e.prototype.update=function(e){var t,r;try{for(var n=xs(e),i=n.next();!i.done;i=n.next()){var o=i.value;this.checksum=this.checksum>>>8^As[255&(this.checksum^o)]}}catch(s){t={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}return this},e.prototype.digest=function(){return(4294967295^this.checksum)>>>0},e}(),As=Os([0,4067132163,3778769143,324072436,3348797215,904991772,648144872,3570033899,2329499855,2024987596,1809983544,2575936315,1296289744,3207089363,2893594407,1578318884,274646895,3795141740,4049975192,51262619,3619967088,632279923,922689671,3298075524,2592579488,1760304291,2075979607,2312596564,1562183871,2943781820,3156637768,1313733451,549293790,3537243613,3246849577,871202090,3878099393,357341890,102525238,4101499445,2858735121,1477399826,1264559846,3107202533,1845379342,2677391885,2361733625,2125378298,820201905,3263744690,3520608582,598981189,4151959214,85089709,373468761,3827903834,3124367742,1213305469,1526817161,2842354314,2107672161,2412447074,2627466902,1861252501,1098587580,3004210879,2688576843,1378610760,2262928035,1955203488,1742404180,2511436119,3416409459,969524848,714683780,3639785095,205050476,4266873199,3976438427,526918040,1361435347,2739821008,2954799652,1114974503,2529119692,1691668175,2005155131,2247081528,3690758684,697762079,986182379,3366744552,476452099,3993867776,4250756596,255256311,1640403810,2477592673,2164122517,1922457750,2791048317,1412925310,1197962378,3037525897,3944729517,427051182,170179418,4165941337,746937522,3740196785,3451792453,1070968646,1905808397,2213795598,2426610938,1657317369,3053634322,1147748369,1463399397,2773627110,4215344322,153784257,444234805,3893493558,1021025245,3467647198,3722505002,797665321,2197175160,1889384571,1674398607,2443626636,1164749927,3070701412,2757221520,1446797203,137323447,4198817972,3910406976,461344835,3484808360,1037989803,781091935,3705997148,2460548119,1623424788,1939049696,2180517859,1429367560,2807687179,3020495871,1180866812,410100952,3927582683,4182430767,186734380,3756733383,763408580,1053836080,3434856499,2722870694,1344288421,1131464017,2971354706,1708204729,2545590714,2229949006,1988219213,680717673,3673779818,3383336350,1002577565,4010310262,493091189,238226049,4233660802,2987750089,1082061258,1395524158,2705686845,1972364758,2279892693,2494862625,1725896226,952904198,3399985413,3656866545,731699698,4283874585,222117402,510512622,3959836397,3280807620,837199303,582374963,3504198960,68661723,4135334616,3844915500,390545967,1230274059,3141532936,2825850620,1510247935,2395924756,2091215383,1878366691,2644384480,3553878443,565732008,854102364,3229815391,340358836,3861050807,4117890627,119113024,1493875044,2875275879,3090270611,1247431312,2660249211,1828433272,2141937292,2378227087,3811616794,291187481,34330861,4032846830,615137029,3603020806,3314634738,939183345,1776939221,2609017814,2295496738,2058945313,2926798794,1545135305,1330124605,3173225534,4084100981,17165430,307568514,3762199681,888469610,3332340585,3587147933,665062302,2042050490,2346497209,2559330125,1793573966,3190661285,1279665062,1595330642,2910671697]);let Is,Ms,Ds,zs,Bs,Ls,Us,Hs,Fs;const $s=()=>{Is||(Is=(()=>{const e=new Array(8);for(let t=0;t<8;t++){const r=new Array(512);for(let e=0;e<256;e++){let n=BigInt(e);for(let e=0;e<8*(t+1);e++)1n&n?n=n>>1n^0x9a6c9329ac4bc9b5n:n>>=1n;r[2*e]=Number(n>>32n&0xffffffffn),r[2*e+1]=Number(0xffffffffn&n)}e[t]=new Uint32Array(r)}return e})(),[Ms,Ds,zs,Bs,Ls,Us,Hs,Fs]=Is)};class Vs{constructor(){r(this,"c1",0),r(this,"c2",0),$s(),this.reset()}update(e){const t=e.length;let r=0,n=this.c1,i=this.c2;for(;r+8<=t;){const t=(255&(i^e[r++]))<<1,o=(255&(i>>>8^e[r++]))<<1,s=(255&(i>>>16^e[r++]))<<1,a=(255&(i>>>24^e[r++]))<<1,l=(255&(n^e[r++]))<<1,c=(255&(n>>>8^e[r++]))<<1,u=(255&(n>>>16^e[r++]))<<1,p=(255&(n>>>24^e[r++]))<<1;n=Fs[t]^Hs[o]^Us[s]^Ls[a]^Bs[l]^zs[c]^Ds[u]^Ms[p],i=Fs[t+1]^Hs[o+1]^Us[s+1]^Ls[a+1]^Bs[l+1]^zs[c+1]^Ds[u+1]^Ms[p+1]}for(;r<t;){const t=(255&(i^e[r]))<<1;i=(i>>>8|(255&n)<<24)>>>0,n=n>>>8^Ms[t],i^=Ms[t+1],r++}this.c1=n,this.c2=i}async digest(){const e=4294967295^this.c1,t=4294967295^this.c2;return new Uint8Array([e>>>24,e>>>16&255,e>>>8&255,255&e,t>>>24,t>>>16&255,t>>>8&255,255&t])}reset(){this.c1=4294967295,this.c2=4294967295}}var Gs=function(){function e(){this.crc32=new Ws}return e.prototype.update=function(e){Ts(e)||this.crc32.update(ks(e))},e.prototype.digest=function(){return bs(this,void 0,void 0,function(){return vs(this,function(e){return[2,Rs(this.crc32.digest())]})})},e.prototype.reset=function(){this.crc32=new Ws},e}(),Ws=function(){function e(){this.checksum=4294967295}return e.prototype.update=function(e){var t,r;try{for(var n=xs(e),i=n.next();!i.done;i=n.next()){var o=i.value;this.checksum=this.checksum>>>8^Ks[255&(this.checksum^o)]}}catch(s){t={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}return this},e.prototype.digest=function(){return(4294967295^this.checksum)>>>0},e}(),Ks=Os([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]);const Xs=[Kr.CRC32,Kr.CRC32C,Kr.CRC64NVME,Kr.SHA1,Kr.SHA256],Qs=[Kr.SHA256,Kr.SHA1,Kr.CRC32,Kr.CRC32C,Kr.CRC64NVME],Ys=(e,t)=>{const{checksumAlgorithms:r={}}=t;switch(e){case Kr.MD5:return(null==r?void 0:r.MD5)??t.md5;case Kr.CRC32:return(null==r?void 0:r.CRC32)??Gs;case Kr.CRC32C:return(null==r?void 0:r.CRC32C)??Ps;case Kr.CRC64NVME:return(null==r?void 0:r.CRC64NVME)??Vs;case Kr.SHA1:return(null==r?void 0:r.SHA1)??t.sha1;case Kr.SHA256:return(null==r?void 0:r.SHA256)??t.sha256;default:if(null==r?void 0:r[e])return r[e];throw new Error(`The checksum algorithm "${e}" is not supported by the client. Select one of ${Xs}, or provide an implementation to the client constructor checksums field.`)}},Js=(e,t)=>{const r=new e;return r.update(Sn(t||"")),r.digest()},Zs={name:"flexibleChecksumsMiddleware",step:"build",tags:["BODY_CHECKSUM"],override:!0},ea=(e,t)=>(r,n)=>async i=>{if(!Br.isInstance(i.request))return r(i);if(((e,t)=>{const r=e.toLowerCase();for(const n of Object.keys(t))if(n.toLowerCase().startsWith(r))return!0;return!1})("x-amz-checksum-",i.request.headers))return r(i);const{request:o,input:s}=i,{body:a,headers:l}=o,{base64Encoder:c,streamHasher:u}=e,{requestChecksumRequired:p,requestAlgorithmMember:d}=t,m=await e.requestChecksumCalculation(),f=null==d?void 0:d.name,h=null==d?void 0:d.httpHeader;f&&!s[f]&&(m===Hr||p)&&(s[f]=Jr,h&&(l[h]=Jr));const y=((e,{requestChecksumRequired:t,requestAlgorithmMember:r,requestChecksumCalculation:n})=>{if(!r)return n===Hr||t?Jr:void 0;if(!e[r])return;return e[r]})(s,{requestChecksumRequired:p,requestAlgorithmMember:null==d?void 0:d.name,requestChecksumCalculation:m});let g=a,b=l;if(y){switch(y){case Kr.CRC32:Zr(n,"FLEXIBLE_CHECKSUMS_REQ_CRC32","U");break;case Kr.CRC32C:Zr(n,"FLEXIBLE_CHECKSUMS_REQ_CRC32C","V");break;case Kr.CRC64NVME:Zr(n,"FLEXIBLE_CHECKSUMS_REQ_CRC64","W");break;case Kr.SHA1:Zr(n,"FLEXIBLE_CHECKSUMS_REQ_SHA1","X");break;case Kr.SHA256:Zr(n,"FLEXIBLE_CHECKSUMS_REQ_SHA256","Y")}const t=ys(y),r=Ys(y,e);if(gs(a)){const{getAwsChunkedEncodingStream:i,bodyLengthChecker:o}=e;g=i("number"==typeof e.requestStreamBufferSize&&e.requestStreamBufferSize>=8192?Pn(a,e.requestStreamBufferSize,n.logger):a,{base64Encoder:c,bodyLengthChecker:o,checksumLocationName:t,checksumAlgorithmFn:r,streamHasher:u}),b={...l,"content-encoding":l["content-encoding"]?`${l["content-encoding"]},aws-chunked`:"aws-chunked","transfer-encoding":"chunked","x-amz-decoded-content-length":l["content-length"],"x-amz-content-sha256":"STREAMING-UNSIGNED-PAYLOAD-TRAILER","x-amz-trailer":t},delete b["content-length"]}else if(!((e,t)=>{const r=e.toLowerCase();for(const n of Object.keys(t))if(r===n.toLowerCase())return!0;return!1})(t,l)){const e=await Js(r,a);b={...l,[t]:c(e)}}}try{return await r({...i,request:{...o,headers:b,body:g}})}catch(v){if(v instanceof Error&&"InvalidChunkSizeError"===v.name)try{v.message.endsWith(".")||(v.message+="."),v.message+=" Set [requestStreamBufferSize=number e.g. 65_536] in client constructor to instruct AWS SDK to buffer your input stream."}catch(x){}throw v}},ta={name:"flexibleChecksumsInputMiddleware",toMiddleware:"serializerMiddleware",relation:"before",tags:["BODY_CHECKSUM"],override:!0},ra=(e=[])=>{const t=[];let r=Qs.length;for(const n of e){const e=Qs.indexOf(n);-1!==e?t[e]=n:t[r++]=n}return t.filter(Boolean)},na=async(e,{checksumAlgorithmFn:t,base64Encoder:r})=>r(await Js(t,e)),ia={name:"flexibleChecksumsResponseMiddleware",toMiddleware:"deserializerMiddleware",relation:"after",tags:["BODY_CHECKSUM"],override:!0},oa=(e,t)=>(r,n)=>async i=>{if(!Br.isInstance(i.request))return r(i);const o=i.input,s=await r(i),a=s.response,{requestValidationModeMember:l,responseAlgorithms:c}=t;if(l&&"ENABLED"===o[l]){const{clientName:t,commandName:r}=n,i=Object.keys(e.checksumAlgorithms??{}).filter(e=>{const t=ys(e);return void 0!==a.headers[t]}),o=ra([...c??[],...i]);if("S3Client"===t&&"GetObjectCommand"===r&&o.every(e=>{const t=ys(e),r=a.headers[t];return!r||(e=>{const t=e.lastIndexOf("-");if(-1!==t){const r=e.slice(t+1);if(!r.startsWith("0")){const e=parseInt(r,10);if(!isNaN(e)&&e>=1&&e<=1e4)return!0}}return!1})(r)}))return s;await(async(e,{config:t,responseAlgorithms:r,logger:n})=>{const i=ra(r),{body:o,headers:s}=e;for(const l of i){const r=ys(l),i=s[r];if(i){let s;try{s=Ys(l,t)}catch(a){if(l===Kr.CRC64NVME){null==n||n.warn(`Skipping ${Kr.CRC64NVME} checksum validation: ${a.message}`);continue}throw a}const{base64Encoder:c}=t;if(gs(o))return void(e.body=Rn({expectedChecksum:i,checksumSourceLocation:r,checksum:new s,source:o,base64Encoder:c}));const u=await na(o,{checksumAlgorithmFn:s,base64Encoder:c});if(u===i)break;throw new Error(`Checksum mismatch: expected "${u}" but received "${i}" in response header "${r}".`)}}})(a,{config:e,responseAlgorithms:o,logger:n.logger})}return s},sa=(e,t)=>({applyToStack:r=>{r.add(ea(e,t),Zs),r.addRelativeTo(((e,t)=>(r,n)=>async i=>{const o=i.input,{requestValidationModeMember:s}=t,a=await e.requestChecksumCalculation(),l=await e.responseChecksumValidation();switch(a){case Fr:Zr(n,"FLEXIBLE_CHECKSUMS_REQ_WHEN_REQUIRED","a");break;case Hr:Zr(n,"FLEXIBLE_CHECKSUMS_REQ_WHEN_SUPPORTED","Z")}switch(l){case Gr:Zr(n,"FLEXIBLE_CHECKSUMS_RES_WHEN_REQUIRED","c");break;case Vr:Zr(n,"FLEXIBLE_CHECKSUMS_RES_WHEN_SUPPORTED","b")}return s&&!o[s]&&l===Vr&&(o[s]="ENABLED"),r(i)})(e,t),ta),r.addRelativeTo(oa(e,t),ia)}});const aa={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},la=e=>({applyToStack:t=>{t.add((e=>t=>async r=>{if(!Br.isInstance(r.request))return t(r);const{request:n}=r,{handlerProtocol:i=""}=e.requestHandler.metadata||{};if(i.indexOf("h2")>=0&&!n.headers[":authority"])delete n.headers.host,n.headers[":authority"]=n.hostname+(n.port?":"+n.port:"");else if(!n.headers.host){let e=n.hostname;null!=n.port&&(e+=`:${n.port}`),n.headers.host=e}return t(r)})(e),aa)}}),ca={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},ua={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"};const pa={step:"finalizeRequest",tags:["CHECK_CONTENT_LENGTH_HEADER"],name:"getCheckContentLengthHeaderPlugin",override:!0},da=e=>({applyToStack:e=>{e.add((e,t)=>async r=>{var n;const{request:i}=r;if(Br.isInstance(i)&&!("content-length"in i.headers)&&!("x-amz-decoded-content-length"in i.headers)){const e="Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.";"function"!=typeof(null==(n=null==t?void 0:t.logger)?void 0:n.warn)||t.logger instanceof es||t.logger.warn(e)}return e({...r})},pa)}}),ma={tags:["REGION_REDIRECT","S3"],name:"regionRedirectEndpointMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"};const fa={step:"initialize",tags:["REGION_REDIRECT","S3"],name:"regionRedirectMiddleware",override:!0},ha=e=>({applyToStack:t=>{var r;t.add(function(e){return(t,r)=>async n=>{var i,o,s,a;try{return await t(n)}catch(l){if(e.followRegionRedirects){const u=null==(i=null==l?void 0:l.$metadata)?void 0:i.httpStatusCode,p="HeadBucketCommand"===r.commandName,d=null==(s=null==(o=null==l?void 0:l.$response)?void 0:o.headers)?void 0:s["x-amz-bucket-region"];if(d&&(301===u||400===u&&("IllegalLocationConstraintException"===(null==l?void 0:l.name)||p))){try{const t=d;null==(a=r.logger)||a.debug(`Redirecting from ${await e.region()} to ${t}`),r.__s3RegionRedirect=t}catch(c){throw new Error("Region redirect failed: "+c)}return t(n)}}throw l}}}(e),fa),t.addRelativeTo((r=e,(e,t)=>async n=>{const i=await r.region(),o=r.region;let s=()=>{};t.__s3RegionRedirect&&(Object.defineProperty(r,"region",{writable:!1,value:async()=>t.__s3RegionRedirect}),s=()=>Object.defineProperty(r,"region",{writable:!0,value:o}));try{const o=await e(n);if(t.__s3RegionRedirect&&(s(),i!==await r.region()))throw new Error("Region was not restored following S3 region redirect.");return o}catch(a){throw s(),a}}),ma)}}),ya=class e{constructor(e={}){r(this,"data"),r(this,"lastPurgeTime",Date.now()),this.data=e}get(e){const t=this.data[e];if(t)return t}set(e,t){return this.data[e]=t,t}delete(e){delete this.data[e]}async purgeExpired(){const t=Date.now();if(!(this.lastPurgeTime+e.EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS>t))for(const e in this.data){const r=this.data[e];if(!r.isRefreshing){const n=await r.identity;n.expiration&&n.expiration.getTime()<t&&delete this.data[e]}}}};r(ya,"EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS",3e4);let ga=ya;class ba{constructor(e,t=!1,n=Date.now()){r(this,"_identity"),r(this,"isRefreshing"),r(this,"accessed"),this._identity=e,this.isRefreshing=t,this.accessed=n}get identity(){return this.accessed=Date.now(),this._identity}}const va=class e{constructor(e,t=new ga){r(this,"createSessionFn"),r(this,"cache"),this.createSessionFn=e,this.cache=t}async getS3ExpressIdentity(t,r){const n=r.Bucket,{cache:i}=this,o=i.get(n);return o?o.identity.then(t=>{var r,s;if(((null==(r=t.expiration)?void 0:r.getTime())??0)<Date.now())return i.set(n,new ba(this.getIdentity(n))).identity;return((null==(s=t.expiration)?void 0:s.getTime())??0)<Date.now()+e.REFRESH_WINDOW_MS&&!o.isRefreshing&&(o.isRefreshing=!0,this.getIdentity(n).then(e=>{i.set(n,new ba(Promise.resolve(e)))})),t}):i.set(n,new ba(this.getIdentity(n))).identity}async getIdentity(e){var t,r;await this.cache.purgeExpired().catch(e=>{});const n=await this.createSessionFn(e);if(!(null==(t=n.Credentials)?void 0:t.AccessKeyId)||!(null==(r=n.Credentials)?void 0:r.SecretAccessKey))throw new Error("s3#createSession response credential missing AccessKeyId or SecretAccessKey.");return{accessKeyId:n.Credentials.AccessKeyId,secretAccessKey:n.Credentials.SecretAccessKey,sessionToken:n.Credentials.SessionToken,expiration:n.Credentials.Expiration?new Date(n.Credentials.Expiration):void 0}}};r(va,"REFRESH_WINDOW_MS",6e4);let xa=va;const wa="X-Amz-S3session-Token",Sa=wa.toLowerCase();class Na extends Ao{async signWithCredentials(e,t,r){const n=ja(t);e.headers[Sa]=t.sessionToken;return Ea(this,n),this.signRequest(e,r??{})}async presignWithCredentials(e,t,r){const n=ja(t);delete e.headers[Sa],e.headers[wa]=t.sessionToken,e.query=e.query??{},e.query[wa]=t.sessionToken;return Ea(this,n),this.presign(e,r)}}function ja(e){return{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,expiration:e.expiration}}function Ea(e,t){const r=setTimeout(()=>{throw new Error("SignatureV4S3Express credential override was created but not called.")},10),n=e.credentialProvider;e.credentialProvider=()=>(clearTimeout(r),e.credentialProvider=n,Promise.resolve(t))}const Ca={name:"s3ExpressMiddleware",step:"build",tags:["S3","S3_EXPRESS"],override:!0},ka=e=>({applyToStack:t=>{t.add((e=>(t,r)=>async n=>{var i,o,s,a,l;if(r.endpointV2){const t=r.endpointV2,c="sigv4-s3express"===(null==(s=null==(o=null==(i=t.properties)?void 0:i.authSchemes)?void 0:o[0])?void 0:s.name);if(("S3Express"===(null==(a=t.properties)?void 0:a.backend)||"Directory"===(null==(l=t.properties)?void 0:l.bucketType))&&(Zr(r,"S3_EXPRESS_BUCKET","J"),r.isS3ExpressBucket=!0),c){const t=n.input.Bucket;if(t){const i=await e.s3ExpressIdentityProvider.getS3ExpressIdentity(await e.credentials(),{Bucket:t});r.s3ExpressIdentity=i,Br.isInstance(n.request)&&i.sessionToken&&(n.request.headers[Sa]=i.sessionToken)}}}return t(n)})(e),Ca)}}),Ta=e=>e=>{throw e},Ra=(e,t)=>{},Oa=e=>(t,r)=>async n=>{if(!Br.isInstance(n.request))return t(n);const i=ln(r).selectedHttpAuthScheme;if(!i)throw new Error("No HttpAuthScheme was selected: unable to sign request");const{httpAuthOption:{signingProperties:o={}},identity:s,signer:a}=i;let l;l=r.s3ExpressIdentity?await(async(e,t,r,n)=>{const i=await n.signWithCredentials(r,e,{});if(i.headers["X-Amz-Security-Token"]||i.headers["x-amz-security-token"])throw new Error("X-Amz-Security-Token must not be set for s3-express requests.");return i})(r.s3ExpressIdentity,0,n.request,await e.signer()):await a.sign(n.request,s,o);const c=await t({...n,request:l}).catch((a.errorHandler||Ta)(o));return(a.successHandler||Ra)(c.response,o),c},Pa={CopyObjectCommand:!0,UploadPartCopyCommand:!0,CompleteMultipartUploadCommand:!0},_a=e=>(t,r)=>async n=>{const i=await t(n),{response:o}=i;if(!Lr.isInstance(o))return i;const{statusCode:s,body:a}=o;if(s<200||s>=300)return i;if(!("function"==typeof(null==a?void 0:a.stream)||"function"==typeof(null==a?void 0:a.pipe)||"function"==typeof(null==a?void 0:a.tee)))return i;let l=a,c=a;!a||"object"!=typeof a||a instanceof Uint8Array||([l,c]=await async function(e){return"function"==typeof e.stream&&(e=e.stream()),e.tee()}(a)),o.body=c;const u=await Aa(l,{streamCollector:async e=>async function(e,t){let r=0;const n=[],i=e.getReader();let o=!1;for(;!o;){const{done:e,value:s}=await i.read();if(s&&(n.push(s),r+=(null==s?void 0:s.byteLength)??0),r>=t)break;o=e}i.releaseLock();const s=new Uint8Array(Math.min(t,r));let a=0;for(const l of n){if(l.byteLength>s.byteLength-a){s.set(l.subarray(0,s.byteLength-a),a);break}s.set(l,a),a+=l.length}return s}(e,3e3)});"function"==typeof(null==l?void 0:l.destroy)&&l.destroy();const p=e.utf8Encoder(u.subarray(u.length-16));if(0===u.length&&Pa[r.commandName]){const e=new Error("S3 aborted request");throw e.name="InternalError",e}return p&&p.endsWith("</Error>")&&(o.statusCode=400),i},Aa=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),Ia={relation:"after",toMiddleware:"deserializerMiddleware",tags:["THROW_200_EXCEPTIONS","S3"],name:"throw200ExceptionsMiddleware",override:!0},Ma=e=>({applyToStack:t=>{t.addRelativeTo(_a(e),Ia)}});const Da={name:"bucketEndpointMiddleware",override:!0,relation:"after",toMiddleware:"endpointV2Middleware"};const za={step:"initialize",tags:["VALIDATE_BUCKET_NAME"],name:"validateBucketNameMiddleware",override:!0},Ba=e=>({applyToStack:t=>{t.add(function({bucketEndpoint:e}){return t=>async r=>{const{input:{Bucket:n}}=r;if(!e&&"string"==typeof n&&!("string"==typeof(i=n)&&0===i.indexOf("arn:")&&i.split(":").length>=6)&&n.indexOf("/")>=0){const e=new Error(`Bucket name shouldn't contain '/', received '${n}'`);throw e.name="InvalidBucketName",e}var i;return t({...r})}}(e),za),t.addRelativeTo(function(e){return(t,r)=>async n=>{var i,o,s,a;if(e.bucketEndpoint){const e=r.endpointV2;if(e){const t=n.input.Bucket;if("string"==typeof t)try{const n=new URL(t);r.endpointV2={...e,url:n}}catch(l){const e=`@aws-sdk/middleware-sdk-s3: bucketEndpoint=true was set but Bucket=${t} could not be parsed as URL.`;throw"NoOpLogger"===(null==(o=null==(i=r.logger)?void 0:i.constructor)?void 0:o.name)||null==(a=null==(s=r.logger)?void 0:s.warn)||a.call(s,e),l}}}return t(n)}}(e),Da)}});const La=new RegExp("^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$"),qa=e=>La.test(e)||e.startsWith("[")&&e.endsWith("]"),Ua=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),Ha=(e,t=!1)=>{if(!t)return Ua.test(e);const r=e.split(".");for(const n of r)if(!Ha(n))return!1;return!0},Fa={},$a="endpoints";function Va(e){return"object"!=typeof e||null==e?e:"ref"in e?`$${Va(e.ref)}`:"fn"in e?`${e.fn}(${(e.argv||[]).map(Va).join(", ")})`:JSON.stringify(e,null,2)}class Ga extends Error{constructor(e){super(e),this.name="EndpointError"}}const Wa=(e,t)=>(e=>{const t=e.split("."),r=[];for(const n of t){const t=n.indexOf("[");if(-1!==t){if(n.indexOf("]")!==n.length-1)throw new Ga(`Path: '${e}' does not end with ']'`);const i=n.slice(t+1,-1);if(Number.isNaN(parseInt(i)))throw new Ga(`Invalid array index: '${i}' in path: '${e}'`);0!==t&&r.push(n.slice(0,t)),r.push(i)}else r.push(n)}return r})(t).reduce((r,n)=>{if("object"!=typeof r)throw new Ga(`Index '${n}' in '${t}' not found in '${JSON.stringify(e)}'`);return Array.isArray(r)?r[parseInt(n)]:r[n]},e),Ka={[Ar.HTTP]:80,[Ar.HTTPS]:443},Xa={booleanEquals:(e,t)=>e===t,getAttr:Wa,isSet:e=>null!=e,isValidHostLabel:Ha,not:e=>!e,parseURL:e=>{const t=(()=>{try{if(e instanceof URL)return e;if("object"==typeof e&&"hostname"in e){const{hostname:t,port:r,protocol:n="",path:i="",query:o={}}=e,s=new URL(`${n}//${t}${r?`:${r}`:""}${i}`);return s.search=Object.entries(o).map(([e,t])=>`${e}=${t}`).join("&"),s}return new URL(e)}catch(t){return null}})();if(!t)return null;const r=t.href,{host:n,hostname:i,pathname:o,protocol:s,search:a}=t;if(a)return null;const l=s.slice(0,-1);if(!Object.values(Ar).includes(l))return null;const c=qa(i);return{scheme:l,authority:`${n}${r.includes(`${n}:${Ka[l]}`)||"string"==typeof e&&e.includes(`${n}:${Ka[l]}`)?`:${Ka[l]}`:""}`,path:o,normalizedPath:o.endsWith("/")?o:`${o}/`,isIp:c}},stringEquals:(e,t)=>e===t,substring:(e,t,r,n)=>t>=r||e.length<r||/[^\u0000-\u007f]/.test(e)?null:n?e.substring(e.length-r,e.length-t):e.substring(t,r),uriEncode:e=>encodeURIComponent(e).replace(/[!*'()]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)},Qa=(e,t)=>{const r=[],n={...t.endpointParams,...t.referenceRecord};let i=0;for(;i<e.length;){const t=e.indexOf("{",i);if(-1===t){r.push(e.slice(i));break}r.push(e.slice(i,t));const o=e.indexOf("}",t);if(-1===o){r.push(e.slice(t));break}"{"===e[t+1]&&"}"===e[o+1]&&(r.push(e.slice(t+1,o)),i=o+2);const s=e.substring(t+1,o);if(s.includes("#")){const[e,t]=s.split("#");r.push(Wa(n[e],t))}else r.push(n[s]);i=o+1}return r.join("")},Ya=(e,t,r)=>{if("string"==typeof e)return Qa(e,r);if(e.fn)return Za.callFunction(e,r);if(e.ref)return(({ref:e},t)=>({...t.endpointParams,...t.referenceRecord}[e]))(e,r);throw new Ga(`'${t}': ${String(e)} is not a string, function or reference.`)},Ja=({fn:e,argv:t},r)=>{const n=t.map(e=>["boolean","number"].includes(typeof e)?e:Za.evaluateExpression(e,"arg",r)),i=e.split(".");return i[0]in Fa&&null!=i[1]?Fa[i[0]][i[1]](...n):Xa[e](...n)},Za={evaluateExpression:Ya,callFunction:Ja},el=({assign:e,...t},r)=>{var n,i;if(e&&e in r.referenceRecord)throw new Ga(`'${e}' is already defined in Reference Record.`);const o=Ja(t,r);return null==(i=null==(n=r.logger)?void 0:n.debug)||i.call(n,`${$a} evaluateCondition: ${Va(t)} = ${Va(o)}`),{result:""===o||!!o,...null!=e&&{toAssign:{name:e,value:o}}}},tl=(e=[],t)=>{var r,n;const i={};for(const o of e){const{result:e,toAssign:s}=el(o,{...t,referenceRecord:{...t.referenceRecord,...i}});if(!e)return{result:e};s&&(i[s.name]=s.value,null==(n=null==(r=t.logger)?void 0:r.debug)||n.call(r,`${$a} assign: ${s.name} := ${Va(s.value)}`))}return{result:!0,referenceRecord:i}},rl=(e,t)=>Object.entries(e).reduce((e,[r,n])=>({...e,[r]:n.map(e=>{const n=Ya(e,"Header value entry",t);if("string"!=typeof n)throw new Ga(`Header '${r}' value '${n}' is not a string`);return n})}),{}),nl=(e,t)=>Object.entries(e).reduce((e,[r,n])=>({...e,[r]:ol.getEndpointProperty(n,t)}),{}),il=(e,t)=>{if(Array.isArray(e))return e.map(e=>il(e,t));switch(typeof e){case"string":return Qa(e,t);case"object":if(null===e)throw new Ga(`Unexpected endpoint property: ${e}`);return ol.getEndpointProperties(e,t);case"boolean":return e;default:throw new Ga("Unexpected endpoint property type: "+typeof e)}},ol={getEndpointProperty:il,getEndpointProperties:nl},sl=(e,t)=>{const r=Ya(e,"Endpoint URL",t);if("string"==typeof r)try{return new URL(r)}catch(n){throw n}throw new Ga("Endpoint URL must be a string, got "+typeof r)},al=(e,t)=>{var r,n;const{conditions:i,endpoint:o}=e,{result:s,referenceRecord:a}=tl(i,t);if(!s)return;const l={...t,referenceRecord:{...t.referenceRecord,...a}},{url:c,properties:u,headers:p}=o;return null==(n=null==(r=t.logger)?void 0:r.debug)||n.call(r,`${$a} Resolving endpoint from template: ${Va(o)}`),{...null!=p&&{headers:rl(p,l)},...null!=u&&{properties:nl(u,l)},url:sl(c,l)}},ll=(e,t)=>{const{conditions:r,error:n}=e,{result:i,referenceRecord:o}=tl(r,t);if(i)throw new Ga(Ya(n,"Error",{...t,referenceRecord:{...t.referenceRecord,...o}}))},cl=(e,t)=>{for(const r of e)if("endpoint"===r.type){const e=al(r,t);if(e)return e}else if("error"===r.type)ll(r,t);else{if("tree"!==r.type)throw new Ga(`Unknown endpoint rule: ${r}`);{const e=ul.evaluateTreeRule(r,t);if(e)return e}}throw new Ga("Rules evaluation failed")},ul={evaluateRules:cl,evaluateTreeRule:(e,t)=>{const{conditions:r,rules:n}=e,{result:i,referenceRecord:o}=tl(r,t);if(i)return ul.evaluateRules(n,{...t,referenceRecord:{...t.referenceRecord,...o}})}},pl=(e,t=!1)=>{if(t){for(const t of e.split("."))if(!pl(t))return!1;return!0}return!!Ha(e)&&(!(e.length<3||e.length>63)&&(e===e.toLowerCase()&&!qa(e)))};let dl={partitions:[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-east-2":{description:"Asia Pacific (Taipei)"},"ap-northeast-1":{description:"Asia Pacific (Tokyo)"},"ap-northeast-2":{description:"Asia Pacific (Seoul)"},"ap-northeast-3":{description:"Asia Pacific (Osaka)"},"ap-south-1":{description:"Asia Pacific (Mumbai)"},"ap-south-2":{description:"Asia Pacific (Hyderabad)"},"ap-southeast-1":{description:"Asia Pacific (Singapore)"},"ap-southeast-2":{description:"Asia Pacific (Sydney)"},"ap-southeast-3":{description:"Asia Pacific (Jakarta)"},"ap-southeast-4":{description:"Asia Pacific (Melbourne)"},"ap-southeast-5":{description:"Asia Pacific (Malaysia)"},"ap-southeast-6":{description:"Asia Pacific (New Zealand)"},"ap-southeast-7":{description:"Asia Pacific (Thailand)"},"aws-global":{description:"aws global region"},"ca-central-1":{description:"Canada (Central)"},"ca-west-1":{description:"Canada West (Calgary)"},"eu-central-1":{description:"Europe (Frankfurt)"},"eu-central-2":{description:"Europe (Zurich)"},"eu-north-1":{description:"Europe (Stockholm)"},"eu-south-1":{description:"Europe (Milan)"},"eu-south-2":{description:"Europe (Spain)"},"eu-west-1":{description:"Europe (Ireland)"},"eu-west-2":{description:"Europe (London)"},"eu-west-3":{description:"Europe (Paris)"},"il-central-1":{description:"Israel (Tel Aviv)"},"me-central-1":{description:"Middle East (UAE)"},"me-south-1":{description:"Middle East (Bahrain)"},"mx-central-1":{description:"Mexico (Central)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",implicitGlobalRegion:"cn-northwest-1",name:"aws-cn",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"aws-cn global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-eusc",outputs:{dnsSuffix:"amazonaws.eu",dualStackDnsSuffix:"api.amazonwebservices.eu",implicitGlobalRegion:"eusc-de-east-1",name:"aws-eusc",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eusc\\-(de)\\-\\w+\\-\\d+$",regions:{"eusc-de-east-1":{description:"AWS European Sovereign Cloud (Germany)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"api.aws.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"aws-iso global region"},"us-iso-east-1":{description:"US ISO East"},"us-iso-west-1":{description:"US ISO WEST"}}},{id:"aws-iso-b",outputs:{dnsSuffix:"sc2s.sgov.gov",dualStackDnsSuffix:"api.aws.scloud",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"aws-iso-b global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"},"us-isob-west-1":{description:"US ISOB West"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"api.cloud-aws.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{"aws-iso-e-global":{description:"aws-iso-e global region"},"eu-isoe-west-1":{description:"EU ISOE West"}}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"api.aws.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{"aws-iso-f-global":{description:"aws-iso-f global region"},"us-isof-east-1":{description:"US ISOF EAST"},"us-isof-south-1":{description:"US ISOF SOUTH"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-gov-west-1",name:"aws-us-gov",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"aws-us-gov global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}}]};const ml={isVirtualHostableS3Bucket:pl,parseArn:e=>{const t=e.split(":");if(t.length<6)return null;const[r,n,i,o,s,...a]=t;if("arn"!==r||""===n||""===i||""===a.join(":"))return null;return{partition:n,service:i,region:o,accountId:s,resourceId:a.map(e=>e.split("/")).flat()}},partition:e=>{const{partitions:t}=dl;for(const n of t){const{regions:t,outputs:r}=n;for(const[n,i]of Object.entries(t))if(n===e)return{...r,...i}}for(const n of t){const{regionRegex:t,outputs:r}=n;if(new RegExp(t).test(e))return{...r}}const r=t.find(e=>"aws"===e.id);if(!r)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...r.outputs}}};var fl,hl;Fa.aws=ml,(hl=fl||(fl={})).STANDARD="standard",hl.ADAPTIVE="adaptive";const yl=fl.STANDARD,gl=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],bl=["TimeoutError","RequestTimeout","RequestTimeoutException"],vl=[500,502,503,504],xl=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],wl=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND"],Sl=e=>{var t,r;return 429===(null==(t=e.$metadata)?void 0:t.httpStatusCode)||gl.includes(e.name)||1==(null==(r=e.$retryable)?void 0:r.throttling)},Nl=(e,t=0)=>{var r;return(e=>void 0!==(null==e?void 0:e.$retryable))(e)||(e=>{var t;return null==(t=e.$metadata)?void 0:t.clockSkewCorrected})(e)||bl.includes(e.name)||xl.includes((null==e?void 0:e.code)||"")||wl.includes((null==e?void 0:e.code)||"")||vl.includes((null==(r=e.$metadata)?void 0:r.httpStatusCode)||0)||(e=>!!(e&&e instanceof TypeError)&&new Set(["Failed to fetch","NetworkError when attempting to fetch resource","The Internet connection appears to be offline","Load failed","Network request failed"]).has(e.message))(e)||void 0!==e.cause&&t<=10&&Nl(e.cause,t+1)},jl=class e{constructor(e){r(this,"beta"),r(this,"minCapacity"),r(this,"minFillRate"),r(this,"scaleConstant"),r(this,"smooth"),r(this,"currentCapacity",0),r(this,"enabled",!1),r(this,"lastMaxRate",0),r(this,"measuredTxRate",0),r(this,"requestCount",0),r(this,"fillRate"),r(this,"lastThrottleTime"),r(this,"lastTimestamp",0),r(this,"lastTxRateBucket"),r(this,"maxCapacity"),r(this,"timeWindow",0),this.beta=(null==e?void 0:e.beta)??.7,this.minCapacity=(null==e?void 0:e.minCapacity)??1,this.minFillRate=(null==e?void 0:e.minFillRate)??.5,this.scaleConstant=(null==e?void 0:e.scaleConstant)??.4,this.smooth=(null==e?void 0:e.smooth)??.8;const t=this.getCurrentTimeInSeconds();this.lastThrottleTime=t,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1e3}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(t){if(this.enabled){if(this.refillTokenBucket(),t>this.currentCapacity){const r=(t-this.currentCapacity)/this.fillRate*1e3;await new Promise(t=>e.setTimeoutFn(t,r))}this.currentCapacity=this.currentCapacity-t}}refillTokenBucket(){const e=this.getCurrentTimeInSeconds();if(!this.lastTimestamp)return void(this.lastTimestamp=e);const t=(e-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+t),this.lastTimestamp=e}updateClientSendingRate(e){let t;if(this.updateMeasuredRate(),Sl(e)){const e=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=e,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),t=this.cubicThrottle(e),this.enableTokenBucket()}else this.calculateTimeWindow(),t=this.cubicSuccess(this.getCurrentTimeInSeconds());const r=Math.min(t,2*this.measuredTxRate);this.updateTokenBucketRate(r)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}cubicThrottle(e){return this.getPrecise(e*this.beta)}cubicSuccess(e){return this.getPrecise(this.scaleConstant*Math.pow(e-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(e){this.refillTokenBucket(),this.fillRate=Math.max(e,this.minFillRate),this.maxCapacity=Math.max(e,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){const e=this.getCurrentTimeInSeconds(),t=Math.floor(2*e)/2;if(this.requestCount++,t>this.lastTxRateBucket){const e=this.requestCount/(t-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(e*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=t}}getPrecise(e){return parseFloat(e.toFixed(8))}};r(jl,"setTimeoutFn",setTimeout);let El=jl;const Cl=({retryDelay:e,retryCount:t,retryCost:r})=>({getRetryCount:()=>t,getRetryDelay:()=>Math.min(2e4,e),getRetryCost:()=>r});class kl{constructor(e){r(this,"maxAttempts"),r(this,"mode",fl.STANDARD),r(this,"capacity",500),r(this,"retryBackoffStrategy",(()=>{let e=100;return{computeNextBackoffDelay:t=>Math.floor(Math.min(2e4,Math.random()*2**t*e)),setDelayBase:t=>{e=t}}})()),r(this,"maxAttemptsProvider"),this.maxAttempts=e,this.maxAttemptsProvider="function"==typeof e?e:async()=>e}async acquireInitialRetryToken(e){return Cl({retryDelay:100,retryCount:0})}async refreshRetryTokenForRetry(e,t){const r=await this.getMaxAttempts();if(this.shouldRetry(e,t,r)){const r=t.errorType;this.retryBackoffStrategy.setDelayBase("THROTTLING"===r?500:100);const n=this.retryBackoffStrategy.computeNextBackoffDelay(e.getRetryCount()),i=t.retryAfterHint?Math.max(t.retryAfterHint.getTime()-Date.now()||0,n):n,o=this.getCapacityCost(r);return this.capacity-=o,Cl({retryDelay:i,retryCount:e.getRetryCount()+1,retryCost:o})}throw new Error("No retry token available")}recordSuccess(e){this.capacity=Math.max(500,this.capacity+(e.getRetryCost()??1))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(e){return 3}}shouldRetry(e,t,r){return e.getRetryCount()+1<r&&this.capacity>=this.getCapacityCost(t.errorType)&&this.isRetryableError(t.errorType)}getCapacityCost(e){return"TRANSIENT"===e?10:5}isRetryableError(e){return"THROTTLING"===e||"TRANSIENT"===e}}class Tl{constructor(e,t){r(this,"maxAttemptsProvider"),r(this,"rateLimiter"),r(this,"standardRetryStrategy"),r(this,"mode",fl.ADAPTIVE),this.maxAttemptsProvider=e;const{rateLimiter:n}=t??{};this.rateLimiter=n??new El,this.standardRetryStrategy=new kl(e)}async acquireInitialRetryToken(e){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(e)}async refreshRetryTokenForRetry(e,t){return this.rateLimiter.updateClientSendingRate(t),this.standardRetryStrategy.refreshRetryTokenForRetry(e,t)}recordSuccess(e){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(e)}}const Rl=/\d{12}\.ddb/;const Ol="user-agent",Pl="x-amz-user-agent",_l=/[^!$%&'*+\-.^_`|~\w]/g,Al=/[^!$%&'*+\-.^_`|~\w#]/g;const Il=e=>(t,r)=>async n=>{var i,o,s,a;const{request:l}=n;if(!Br.isInstance(l))return t(n);const{headers:c}=l,u=(null==(i=null==r?void 0:r.userAgent)?void 0:i.map(Ml))||[],p=(await e.defaultUserAgentProvider()).map(Ml);await async function(e,t,r){var n,i,o,s,a;const l=r.request;if("rpc-v2-cbor"===(null==(n=null==l?void 0:l.headers)?void 0:n["smithy-protocol"])&&Zr(e,"PROTOCOL_RPC_V2_CBOR","M"),"function"==typeof t.retryStrategy){const r=await t.retryStrategy();if("string"==typeof r.mode)switch(r.mode){case fl.ADAPTIVE:Zr(e,"RETRY_MODE_ADAPTIVE","F");break;case fl.STANDARD:Zr(e,"RETRY_MODE_STANDARD","E")}}if("function"==typeof t.accountIdEndpointMode){const r=e.endpointV2;switch(String(null==(i=null==r?void 0:r.url)?void 0:i.hostname).match(Rl)&&Zr(e,"ACCOUNT_ID_ENDPOINT","O"),await(null==(o=t.accountIdEndpointMode)?void 0:o.call(t))){case"disabled":Zr(e,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":Zr(e,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":Zr(e,"ACCOUNT_ID_MODE_REQUIRED","R")}}const c=null==(a=null==(s=e.__smithy_context)?void 0:s.selectedHttpAuthScheme)?void 0:a.identity;if(null==c?void 0:c.$source){const t=c;t.accountId&&Zr(e,"RESOLVED_ACCOUNT_ID","T");for(const[r,n]of Object.entries(t.$source??{}))Zr(e,r,n)}}(r,e,n);const d=r;p.push(`m/${function(e){let t="";for(const r in e){const n=e[r];if(!(t.length+n.length+1<=1024))break;t.length?t+=","+n:t+=n}return t}(Object.assign({},null==(o=r.__smithy_context)?void 0:o.features,null==(s=d.__aws_sdk_context)?void 0:s.features))}`);const m=(null==(a=null==e?void 0:e.customUserAgent)?void 0:a.map(Ml))||[],f=await e.userAgentAppId();f&&p.push(Ml(["app",`${f}`]));const h=[].concat([...p,...u,...m]).join(" "),y=[...p.filter(e=>e.startsWith("aws-sdk-")),...m].join(" ");return"browser"!==e.runtime?(y&&(c[Pl]=c[Pl]?`${c[Ol]} ${y}`:y),c[Ol]=h):c[Pl]=h,t({...n,request:l})},Ml=e=>{var t;const r=e[0].split("/").map(e=>e.replace(_l,"-")).join("/"),n=null==(t=e[1])?void 0:t.replace(Al,"-"),i=r.indexOf("/"),o=r.substring(0,i);let s=r.substring(i+1);return"api"===o&&(s=s.toLowerCase()),[o,s,n].filter(e=>e&&e.length>0).reduce((e,t,r)=>{switch(r){case 0:return t;case 1:return`${e}/${t}`;default:return`${e}#${t}`}},"")},Dl={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},zl=new Set,Bl=e=>"string"==typeof e&&(e.startsWith("fips-")||e.endsWith("-fips")),Ll=e=>{const{region:t,useFipsEndpoint:r}=e;if(!t)throw new Error("Region is missing");return Object.assign(e,{region:async()=>{const e=(e=>Bl(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e)("function"==typeof t?await t():t);return((e,t=Ha)=>{if(zl.has(e)||t(e))zl.add(e);else if("*"!==e)throw new Error(`Region not accepted: region="${e}" is not a valid hostname component.`)})(e),e},useFipsEndpoint:async()=>{const e="string"==typeof t?t:await t();return!!Bl(e)||("function"!=typeof r?Promise.resolve(!!r):r())}})},ql="content-length";const Ul={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},Hl=e=>({applyToStack:t=>{var r;t.add((r=e.bodyLengthChecker,e=>async t=>{const n=t.request;if(Br.isInstance(n)){const{body:e,headers:t}=n;if(e&&-1===Object.keys(t).map(e=>e.toLowerCase()).indexOf(ql))try{const t=r(e);n.headers={...n.headers,[ql]:String(t)}}catch(i){}}return e({...t,request:n})}),Ul)}}),Fl=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,$l=/(\d+\.){3}\d+/,Vl=/\.\./,Gl=e=>Fl.test(e)&&!$l.test(e)&&!Vl.test(e),Wl=e=>{const[t,r,n,,,i]=e.split(":"),o="arn"===t&&e.split(":").length>=6,s=Boolean(o&&r&&n&&i);if(o&&!s)throw new Error(`Invalid ARN: ${e} was an invalid ARN.`);return s},Kl=(e,t,r,n=!1)=>{const i=async()=>{let i;if(n){const n=r.clientContextParams;i=(null==n?void 0:n[e])??r[e]??r[t]}else i=r[e]??r[t];return"function"==typeof i?i():i};return"credentialScope"===e||"CredentialScope"===t?async()=>{const e="function"==typeof r.credentials?await r.credentials():r.credentials;return(null==e?void 0:e.credentialScope)??(null==e?void 0:e.CredentialScope)}:"accountId"===e||"AccountId"===t?async()=>{const e="function"==typeof r.credentials?await r.credentials():r.credentials;return(null==e?void 0:e.accountId)??(null==e?void 0:e.AccountId)}:"endpoint"===e||"endpoint"===t?async()=>{if(!1===r.isCustomEndpoint)return;const e=await i();if(e&&"object"==typeof e){if("url"in e)return e.url.href;if("hostname"in e){const{protocol:t,hostname:r,port:n,path:i}=e;return`${t}//${r}${n?":"+n:""}${i}`}}return e}:i},Xl=async e=>{},Ql=e=>{if("object"==typeof e){if("url"in e){const t=ti(e.url);if(e.headers){t.headers={};for(const[r,n]of Object.entries(e.headers))t.headers[r.toLowerCase()]=n.join(", ")}return t}return e}return ti(e)},Yl=async(e,t,r)=>{var n;const i={},o=(null==(n=null==t?void 0:t.getEndpointParameterInstructions)?void 0:n.call(t))||{};for(const[s,a]of Object.entries(o))switch(a.type){case"staticContextParams":i[s]=a.value;break;case"contextParams":i[s]=e[a.name];break;case"clientContextParams":case"builtInParams":i[s]=await Kl(a.name,s,r,"builtInParams"!==a.type)();break;case"operationContextParams":i[s]=a.get(e);break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(a))}return 0===Object.keys(o).length&&Object.assign(i,r),"s3"===String(r.serviceId).toLowerCase()&&await(async e=>{const t=(null==e?void 0:e.Bucket)||"";if("string"==typeof e.Bucket&&(e.Bucket=t.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),Wl(t)){if(!0===e.ForcePathStyle)throw new Error("Path-style addressing cannot be used with ARN buckets")}else(!Gl(t)||-1!==t.indexOf(".")&&!String(e.Endpoint).startsWith("http:")||t.toLowerCase()!==t||t.length<3)&&(e.ForcePathStyle=!0);return e.DisableMultiRegionAccessPoints&&(e.disableMultiRegionAccessPoints=!0,e.DisableMRAP=!0),e})(i),i},Jl=({config:e,instructions:t})=>(r,n)=>async i=>{var o,s,a;e.isCustomEndpoint&&function(e,t,r){e.__smithy_context?e.__smithy_context.features||(e.__smithy_context.features={}):e.__smithy_context={features:{}},e.__smithy_context.features[t]=r}(n,"ENDPOINT_OVERRIDE","N");const l=await(async(e,t,r,n)=>{if(!r.isCustomEndpoint){let e;e=r.serviceConfiguredEndpoint?await r.serviceConfiguredEndpoint():await Xl(r.serviceId),e&&(r.endpoint=()=>Promise.resolve(Ql(e)),r.isCustomEndpoint=!0)}const i=await Yl(e,t,r);if("function"!=typeof r.endpointProvider)throw new Error("config.endpointProvider is not set.");const o=r.endpointProvider(i,n);if(r.isCustomEndpoint&&r.endpoint){const e=await r.endpoint();if(null==e?void 0:e.headers){o.headers??(o.headers={});for(const[t,r]of Object.entries(e.headers))o.headers[t]=Array.isArray(r)?r:[r]}}return o})(i.input,{getEndpointParameterInstructions:()=>t},{...e},n);n.endpointV2=l,n.authSchemes=null==(o=l.properties)?void 0:o.authSchemes;const c=null==(s=n.authSchemes)?void 0:s[0];if(c){n.signing_region=c.signingRegion,n.signing_service=c.signingName;const e=ln(n),t=null==(a=null==e?void 0:e.selectedHttpAuthScheme)?void 0:a.httpAuthOption;t&&(t.signingProperties=Object.assign(t.signingProperties||{},{signing_region:c.signingRegion,signingRegion:c.signingRegion,signing_service:c.signingName,signingName:c.signingName,signingRegionSet:c.signingRegionSet},c.properties))}return r({...i})},Zl={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:"serializerMiddleware"},ec=(e,t)=>({applyToStack:r=>{r.addRelativeTo(Jl({config:e,instructions:t}),Zl)}}),tc=e=>e instanceof Error?e:e instanceof Object?Object.assign(new Error,e):"string"==typeof e?new Error(e):new Error(`AWS SDK error wrapper for ${e}`),rc=e=>{const{retryStrategy:t,retryMode:r}=e,n=cn(e.maxAttempts??3);let i=t?Promise.resolve(t):void 0;return Object.assign(e,{maxAttempts:n,retryStrategy:()=>i??(i=(async()=>await cn(r)()===fl.ADAPTIVE?new Tl(n):new kl(n))())})},nc=e=>(null==e?void 0:e.body)instanceof ReadableStream,ic=e=>void 0!==e.acquireInitialRetryToken&&void 0!==e.refreshRetryTokenForRetry&&void 0!==e.recordSuccess,oc=e=>{const t={error:e,errorType:sc(e)},r=cc(e.$response);return r&&(t.retryAfterHint=r),t},sc=e=>Sl(e)?"THROTTLING":Nl(e)?"TRANSIENT":(e=>{var t;if(void 0!==(null==(t=e.$metadata)?void 0:t.httpStatusCode)){const t=e.$metadata.httpStatusCode;return 500<=t&&t<=599&&!Nl(e)}return!1})(e)?"SERVER_ERROR":"CLIENT_ERROR",ac={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},lc=e=>({applyToStack:t=>{t.add((e=>(t,r)=>async n=>{var i;let o=await e.retryStrategy();const s=await e.maxAttempts();if(!ic(o))return(null==o?void 0:o.mode)&&(r.userAgent=[...r.userAgent||[],["cfg/retry-mode",o.mode]]),o.retry(t,n);{let e=await o.acquireInitialRetryToken(r.partition_id),c=new Error,u=0,p=0;const{request:d}=n,m=Br.isInstance(d);for(m&&(d.headers["amz-sdk-invocation-id"]=ji());;)try{m&&(d.headers["amz-sdk-request"]=`attempt=${u+1}; max=${s}`);const{response:r,output:i}=await t(n);return o.recordSuccess(e),i.$metadata.attempts=u+1,i.$metadata.totalRetryDelay=p,{response:r,output:i}}catch(a){const t=oc(a);if(c=tc(a),m&&nc(d))throw null==(i=r.logger instanceof es?console:r.logger)||i.warn("An error was encountered in a non-retryable streaming request."),c;try{e=await o.refreshRetryTokenForRetry(e,t)}catch(l){throw c.$metadata||(c.$metadata={}),c.$metadata.attempts=u+1,c.$metadata.totalRetryDelay=p,c}u=e.getRetryCount();const n=e.getRetryDelay();p+=n,await new Promise(e=>setTimeout(e,n))}}})(e),ac)}}),cc=e=>{if(!Lr.isInstance(e))return;const t=Object.keys(e.headers).find(e=>"retry-after"===e.toLowerCase());if(!t)return;const r=e.headers[t],n=Number(r);if(!Number.isNaN(n))return new Date(1e3*n);return new Date(r)};class uc{constructor(e){r(this,"sigv4aSigner"),r(this,"sigv4Signer"),r(this,"signerOptions"),this.sigv4Signer=new Na(e),this.signerOptions=e}static sigv4aDependency(){return"none"}async sign(e,t={}){return"*"===t.signingRegion?this.getSigv4aSigner().sign(e,t):this.sigv4Signer.sign(e,t)}async signWithCredentials(e,t,r={}){if("*"===r.signingRegion)throw this.getSigv4aSigner(),new Error('signWithCredentials with signingRegion \'*\' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt');return this.sigv4Signer.signWithCredentials(e,t,r)}async presign(e,t={}){if("*"===t.signingRegion)throw this.getSigv4aSigner(),new Error('presign with signingRegion \'*\' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt');return this.sigv4Signer.presign(e,t)}async presignWithCredentials(e,t,r={}){if("*"===r.signingRegion)throw new Error("Method presignWithCredentials is not supported for [signingRegion=*].");return this.sigv4Signer.presignWithCredentials(e,t,r)}getSigv4aSigner(){if(!this.sigv4aSigner)throw"node"===this.signerOptions.runtime?new Error("Neither CRT nor JS SigV4a implementation is available. Please load either @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt"):new Error("JS SigV4a implementation is not available or not a valid constructor. Please check whether you have installed the @aws-sdk/signature-v4a package explicitly. The CRT implementation is not available for browsers. You must also register the package by calling [require('@aws-sdk/signature-v4a');] or an ESM equivalent such as [import '@aws-sdk/signature-v4a';]. For more information please go to https://github.com/aws/aws-sdk-js-v3#using-javascript-non-crt-implementation-of-sigv4a");return this.sigv4aSigner}}const pc="required",dc="type",mc="rules",fc="conditions",hc="fn",yc="argv",gc="ref",bc="assign",vc="url",xc="properties",wc="backend",Sc="authSchemes",Nc="disableDoubleEncoding",jc="signingName",Ec="signingRegion",Cc="headers",kc="signingRegionSet",Tc=!0,Rc="isSet",Oc="booleanEquals",Pc="error",_c="aws.partition",Ac="stringEquals",Ic="getAttr",Mc="name",Dc="substring",zc="bucketSuffix",Bc="parseURL",Lc="endpoint",qc="tree",Uc="aws.isVirtualHostableS3Bucket",Hc="{url#scheme}://{Bucket}.{url#authority}{url#path}",Fc="not",$c="accessPointSuffix",Vc="{url#scheme}://{url#authority}{url#path}",Gc="hardwareType",Wc="regionPrefix",Kc="bucketAliasSuffix",Xc="outpostId",Qc="isValidHostLabel",Yc="sigv4a",Jc="s3-outposts",Zc="s3",eu="{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}",tu="https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}",ru="https://{Bucket}.s3.{partitionResult#dnsSuffix}",nu="aws.parseArn",iu="bucketArn",ou="arnType",su="s3-object-lambda",au="accesspoint",lu="accessPointName",cu="{url#scheme}://{accessPointName}-{bucketArn#accountId}.{url#authority}{url#path}",uu="mrapPartition",pu="outpostType",du="arnPrefix",mu="{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",fu="https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",hu="https://s3.{partitionResult#dnsSuffix}",yu={[pc]:!1,[dc]:"string"},gu={[pc]:!0,default:!1,[dc]:"boolean"},bu={[pc]:!1,[dc]:"boolean"},vu={[hc]:Oc,[yc]:[{[gc]:"Accelerate"},!0]},xu={[hc]:Oc,[yc]:[{[gc]:"UseFIPS"},!0]},wu={[hc]:Oc,[yc]:[{[gc]:"UseDualStack"},!0]},Su={[hc]:Rc,[yc]:[{[gc]:"Endpoint"}]},Nu={[hc]:_c,[yc]:[{[gc]:"Region"}],[bc]:"partitionResult"},ju={[hc]:Ac,[yc]:[{[hc]:Ic,[yc]:[{[gc]:"partitionResult"},Mc]},"aws-cn"]},Eu={[hc]:Rc,[yc]:[{[gc]:"Bucket"}]},Cu={[gc]:"Bucket"},ku={[fc]:[vu],[Pc]:"S3Express does not support S3 Accelerate.",[dc]:Pc},Tu={[fc]:[Su,{[hc]:Bc,[yc]:[{[gc]:"Endpoint"}],[bc]:"url"}],[mc]:[{[fc]:[{[hc]:Rc,[yc]:[{[gc]:"DisableS3ExpressSessionAuth"}]},{[hc]:Oc,[yc]:[{[gc]:"DisableS3ExpressSessionAuth"},!0]}],[mc]:[{[fc]:[{[hc]:Oc,[yc]:[{[hc]:Ic,[yc]:[{[gc]:"url"},"isIp"]},!0]}],[mc]:[{[fc]:[{[hc]:"uriEncode",[yc]:[Cu],[bc]:"uri_encoded_bucket"}],[mc]:[{[Lc]:{[vc]:"{url#scheme}://{url#authority}/{uri_encoded_bucket}{url#path}",[xc]:{[wc]:"S3Express",[Sc]:[{[Nc]:!0,[Mc]:"sigv4",[jc]:"s3express",[Ec]:"{Region}"}]},[Cc]:{}},[dc]:Lc}],[dc]:qc}],[dc]:qc},{[fc]:[{[hc]:Uc,[yc]:[Cu,!1]}],[mc]:[{[Lc]:{[vc]:Hc,[xc]:{[wc]:"S3Express",[Sc]:[{[Nc]:!0,[Mc]:"sigv4",[jc]:"s3express",[Ec]:"{Region}"}]},[Cc]:{}},[dc]:Lc}],[dc]:qc},{[Pc]:"S3Express bucket name is not a valid virtual hostable name.",[dc]:Pc}],[dc]:qc},{[fc]:[{[hc]:Oc,[yc]:[{[hc]:Ic,[yc]:[{[gc]:"url"},"isIp"]},!0]}],[mc]:[{[fc]:[{[hc]:"uriEncode",[yc]:[Cu],[bc]:"uri_encoded_bucket"}],[mc]:[{[Lc]:{[vc]:"{url#scheme}://{url#authority}/{uri_encoded_bucket}{url#path}",[xc]:{[wc]:"S3Express",[Sc]:[{[Nc]:!0,[Mc]:"sigv4-s3express",[jc]:"s3express",[Ec]:"{Region}"}]},[Cc]:{}},[dc]:Lc}],[dc]:qc}],[dc]:qc},{[fc]:[{[hc]:Uc,[yc]:[Cu,!1]}],[mc]:[{[Lc]:{[vc]:Hc,[xc]:{[wc]:"S3Express",[Sc]:[{[Nc]:!0,[Mc]:"sigv4-s3express",[jc]:"s3express",[Ec]:"{Region}"}]},[Cc]:{}},[dc]:Lc}],[dc]:qc},{[Pc]:"S3Express bucket name is not a valid virtual hostable name.",[dc]:Pc}],[dc]:qc},Ru={[hc]:Bc,[yc]:[{[gc]:"Endpoint"}],[bc]:"url"},Ou={[hc]:Oc,[yc]:[{[hc]:Ic,[yc]:[{[gc]:"url"},"isIp"]},!0]},Pu={[gc]:"url"},_u={[hc]:"uriEncode",[yc]:[Cu],[bc]:"uri_encoded_bucket"},Au={[wc]:"S3Express",[Sc]:[{[Nc]:!0,[Mc]:"sigv4",[jc]:"s3express",[Ec]:"{Region}"}]},Iu={},Mu={[hc]:Uc,[yc]:[Cu,!1]},Du={[Pc]:"S3Express bucket name is not a valid virtual hostable name.",[dc]:Pc},zu={[hc]:Rc,[yc]:[{[gc]:"UseS3ExpressControlEndpoint"}]},Bu={[hc]:Oc,[yc]:[{[gc]:"UseS3ExpressControlEndpoint"},!0]},Lu={[hc]:Fc,[yc]:[Su]},qu={[hc]:Oc,[yc]:[{[gc]:"UseDualStack"},!1]},Uu={[hc]:Oc,[yc]:[{[gc]:"UseFIPS"},!1]},Hu={[Pc]:"Unrecognized S3Express bucket name format.",[dc]:Pc},Fu={[hc]:Fc,[yc]:[Eu]},$u={[gc]:Gc},Vu={[fc]:[Lu],[Pc]:"Expected a endpoint to be specified but no endpoint was found",[dc]:Pc},Gu={[Sc]:[{[Nc]:!0,[Mc]:Yc,[jc]:Jc,[kc]:["*"]},{[Nc]:!0,[Mc]:"sigv4",[jc]:Jc,[Ec]:"{Region}"}]},Wu={[hc]:Oc,[yc]:[{[gc]:"ForcePathStyle"},!1]},Ku={[gc]:"ForcePathStyle"},Xu={[hc]:Oc,[yc]:[{[gc]:"Accelerate"},!1]},Qu={[hc]:Ac,[yc]:[{[gc]:"Region"},"aws-global"]},Yu={[Sc]:[{[Nc]:!0,[Mc]:"sigv4",[jc]:Zc,[Ec]:"us-east-1"}]},Ju={[hc]:Fc,[yc]:[Qu]},Zu={[hc]:Oc,[yc]:[{[gc]:"UseGlobalEndpoint"},!0]},ep={[vc]:"https://{Bucket}.s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",[xc]:{[Sc]:[{[Nc]:!0,[Mc]:"sigv4",[jc]:Zc,[Ec]:"{Region}"}]},[Cc]:{}},tp={[Sc]:[{[Nc]:!0,[Mc]:"sigv4",[jc]:Zc,[Ec]:"{Region}"}]},rp={[hc]:Oc,[yc]:[{[gc]:"UseGlobalEndpoint"},!1]},np={[vc]:"https://{Bucket}.s3-fips.{Region}.{partitionResult#dnsSuffix}",[xc]:tp,[Cc]:{}},ip={[vc]:"https://{Bucket}.s3-accelerate.dualstack.{partitionResult#dnsSuffix}",[xc]:tp,[Cc]:{}},op={[vc]:"https://{Bucket}.s3.dualstack.{Region}.{partitionResult#dnsSuffix}",[xc]:tp,[Cc]:{}},sp={[hc]:Oc,[yc]:[{[hc]:Ic,[yc]:[Pu,"isIp"]},!1]},ap={[vc]:eu,[xc]:tp,[Cc]:{}},lp={[vc]:Hc,[xc]:tp,[Cc]:{}},cp={[Lc]:lp,[dc]:Lc},up={[vc]:tu,[xc]:tp,[Cc]:{}},pp={[vc]:"https://{Bucket}.s3.{Region}.{partitionResult#dnsSuffix}",[xc]:tp,[Cc]:{}},dp={[Pc]:"Invalid region: region was not a valid DNS name.",[dc]:Pc},mp={[gc]:iu},fp={[gc]:ou},hp={[hc]:Ic,[yc]:[mp,"service"]},yp={[gc]:lu},gp={[fc]:[wu],[Pc]:"S3 Object Lambda does not support Dual-stack",[dc]:Pc},bp={[fc]:[vu],[Pc]:"S3 Object Lambda does not support S3 Accelerate",[dc]:Pc},vp={[fc]:[{[hc]:Rc,[yc]:[{[gc]:"DisableAccessPoints"}]},{[hc]:Oc,[yc]:[{[gc]:"DisableAccessPoints"},!0]}],[Pc]:"Access points are not supported for this operation",[dc]:Pc},xp={[fc]:[{[hc]:Rc,[yc]:[{[gc]:"UseArnRegion"}]},{[hc]:Oc,[yc]:[{[gc]:"UseArnRegion"},!1]},{[hc]:Fc,[yc]:[{[hc]:Ac,[yc]:[{[hc]:Ic,[yc]:[mp,"region"]},"{Region}"]}]}],[Pc]:"Invalid configuration: region from ARN `{bucketArn#region}` does not match client region `{Region}` and UseArnRegion is `false`",[dc]:Pc},wp={[hc]:Ic,[yc]:[{[gc]:"bucketPartition"},Mc]},Sp={[hc]:Ic,[yc]:[mp,"accountId"]},Np={[Sc]:[{[Nc]:!0,[Mc]:"sigv4",[jc]:su,[Ec]:"{bucketArn#region}"}]},jp={[Pc]:"Invalid ARN: The access point name may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointName}`",[dc]:Pc},Ep={[Pc]:"Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`",[dc]:Pc},Cp={[Pc]:"Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)",[dc]:Pc},kp={[Pc]:"Client was configured for partition `{partitionResult#name}` but ARN (`{Bucket}`) has `{bucketPartition#name}`",[dc]:Pc},Tp={[Pc]:"Invalid ARN: The ARN may only contain a single resource component after `accesspoint`.",[dc]:Pc},Rp={[Pc]:"Invalid ARN: Expected a resource of the format `accesspoint:<accesspoint name>` but no name was provided",[dc]:Pc},Op={[Sc]:[{[Nc]:!0,[Mc]:"sigv4",[jc]:Zc,[Ec]:"{bucketArn#region}"}]},Pp={[Sc]:[{[Nc]:!0,[Mc]:Yc,[jc]:Jc,[kc]:["*"]},{[Nc]:!0,[Mc]:"sigv4",[jc]:Jc,[Ec]:"{bucketArn#region}"}]},_p={[hc]:nu,[yc]:[Cu]},Ap={[vc]:"https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[xc]:tp,[Cc]:{}},Ip={[vc]:"https://s3-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[xc]:tp,[Cc]:{}},Mp={[vc]:"https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[xc]:tp,[Cc]:{}},Dp={[vc]:mu,[xc]:tp,[Cc]:{}},zp={[vc]:"https://s3.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[xc]:tp,[Cc]:{}},Bp={[gc]:"UseObjectLambdaEndpoint"},Lp={[Sc]:[{[Nc]:!0,[Mc]:"sigv4",[jc]:su,[Ec]:"{Region}"}]},qp={[vc]:"https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",[xc]:tp,[Cc]:{}},Up={[vc]:"https://s3-fips.{Region}.{partitionResult#dnsSuffix}",[xc]:tp,[Cc]:{}},Hp={[vc]:"https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}",[xc]:tp,[Cc]:{}},Fp={[vc]:Vc,[xc]:tp,[Cc]:{}},$p={[vc]:"https://s3.{Region}.{partitionResult#dnsSuffix}",[xc]:tp,[Cc]:{}},Vp=[{[gc]:"Region"}],Gp=[{[gc]:"Endpoint"}],Wp=[Cu],Kp=[vu],Xp=[Su,Ru],Qp=[{[hc]:Rc,[yc]:[{[gc]:"DisableS3ExpressSessionAuth"}]},{[hc]:Oc,[yc]:[{[gc]:"DisableS3ExpressSessionAuth"},!0]}],Yp=[_u],Jp=[Mu],Zp=[Nu],ed=[xu,wu],td=[xu,qu],rd=[Uu,wu],nd=[Uu,qu],id=[{[hc]:Dc,[yc]:[Cu,6,14,!0],[bc]:"s3expressAvailabilityZoneId"},{[hc]:Dc,[yc]:[Cu,14,16,!0],[bc]:"s3expressAvailabilityZoneDelim"},{[hc]:Ac,[yc]:[{[gc]:"s3expressAvailabilityZoneDelim"},"--"]}],od=[{[fc]:[xu,wu],[Lc]:{[vc]:"https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.dualstack.{Region}.{partitionResult#dnsSuffix}",[xc]:Au,[Cc]:{}},[dc]:Lc},{[fc]:td,[Lc]:{[vc]:"https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.{Region}.{partitionResult#dnsSuffix}",[xc]:Au,[Cc]:{}},[dc]:Lc},{[fc]:rd,[Lc]:{[vc]:"https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.dualstack.{Region}.{partitionResult#dnsSuffix}",[xc]:Au,[Cc]:{}},[dc]:Lc},{[fc]:nd,[Lc]:{[vc]:"https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.{Region}.{partitionResult#dnsSuffix}",[xc]:Au,[Cc]:{}},[dc]:Lc}],sd=[{[hc]:Dc,[yc]:[Cu,6,15,!0],[bc]:"s3expressAvailabilityZoneId"},{[hc]:Dc,[yc]:[Cu,15,17,!0],[bc]:"s3expressAvailabilityZoneDelim"},{[hc]:Ac,[yc]:[{[gc]:"s3expressAvailabilityZoneDelim"},"--"]}],ad=[{[hc]:Dc,[yc]:[Cu,6,19,!0],[bc]:"s3expressAvailabilityZoneId"},{[hc]:Dc,[yc]:[Cu,19,21,!0],[bc]:"s3expressAvailabilityZoneDelim"},{[hc]:Ac,[yc]:[{[gc]:"s3expressAvailabilityZoneDelim"},"--"]}],ld=[{[hc]:Dc,[yc]:[Cu,6,20,!0],[bc]:"s3expressAvailabilityZoneId"},{[hc]:Dc,[yc]:[Cu,20,22,!0],[bc]:"s3expressAvailabilityZoneDelim"},{[hc]:Ac,[yc]:[{[gc]:"s3expressAvailabilityZoneDelim"},"--"]}],cd=[{[hc]:Dc,[yc]:[Cu,6,26,!0],[bc]:"s3expressAvailabilityZoneId"},{[hc]:Dc,[yc]:[Cu,26,28,!0],[bc]:"s3expressAvailabilityZoneDelim"},{[hc]:Ac,[yc]:[{[gc]:"s3expressAvailabilityZoneDelim"},"--"]}],ud=[{[fc]:[xu,wu],[Lc]:{[vc]:"https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.dualstack.{Region}.{partitionResult#dnsSuffix}",[xc]:{[wc]:"S3Express",[Sc]:[{[Nc]:!0,[Mc]:"sigv4-s3express",[jc]:"s3express",[Ec]:"{Region}"}]},[Cc]:{}},[dc]:Lc},{[fc]:td,[Lc]:{[vc]:"https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.{Region}.{partitionResult#dnsSuffix}",[xc]:{[wc]:"S3Express",[Sc]:[{[Nc]:!0,[Mc]:"sigv4-s3express",[jc]:"s3express",[Ec]:"{Region}"}]},[Cc]:{}},[dc]:Lc},{[fc]:rd,[Lc]:{[vc]:"https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.dualstack.{Region}.{partitionResult#dnsSuffix}",[xc]:{[wc]:"S3Express",[Sc]:[{[Nc]:!0,[Mc]:"sigv4-s3express",[jc]:"s3express",[Ec]:"{Region}"}]},[Cc]:{}},[dc]:Lc},{[fc]:nd,[Lc]:{[vc]:"https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.{Region}.{partitionResult#dnsSuffix}",[xc]:{[wc]:"S3Express",[Sc]:[{[Nc]:!0,[Mc]:"sigv4-s3express",[jc]:"s3express",[Ec]:"{Region}"}]},[Cc]:{}},[dc]:Lc}],pd=[Cu,0,7,!0],dd=[{[hc]:Dc,[yc]:[Cu,7,15,!0],[bc]:"s3expressAvailabilityZoneId"},{[hc]:Dc,[yc]:[Cu,15,17,!0],[bc]:"s3expressAvailabilityZoneDelim"},{[hc]:Ac,[yc]:[{[gc]:"s3expressAvailabilityZoneDelim"},"--"]}],md=[{[hc]:Dc,[yc]:[Cu,7,16,!0],[bc]:"s3expressAvailabilityZoneId"},{[hc]:Dc,[yc]:[Cu,16,18,!0],[bc]:"s3expressAvailabilityZoneDelim"},{[hc]:Ac,[yc]:[{[gc]:"s3expressAvailabilityZoneDelim"},"--"]}],fd=[{[hc]:Dc,[yc]:[Cu,7,20,!0],[bc]:"s3expressAvailabilityZoneId"},{[hc]:Dc,[yc]:[Cu,20,22,!0],[bc]:"s3expressAvailabilityZoneDelim"},{[hc]:Ac,[yc]:[{[gc]:"s3expressAvailabilityZoneDelim"},"--"]}],hd=[{[hc]:Dc,[yc]:[Cu,7,21,!0],[bc]:"s3expressAvailabilityZoneId"},{[hc]:Dc,[yc]:[Cu,21,23,!0],[bc]:"s3expressAvailabilityZoneDelim"},{[hc]:Ac,[yc]:[{[gc]:"s3expressAvailabilityZoneDelim"},"--"]}],yd=[{[hc]:Dc,[yc]:[Cu,7,27,!0],[bc]:"s3expressAvailabilityZoneId"},{[hc]:Dc,[yc]:[Cu,27,29,!0],[bc]:"s3expressAvailabilityZoneDelim"},{[hc]:Ac,[yc]:[{[gc]:"s3expressAvailabilityZoneDelim"},"--"]}],gd=[Eu],bd=[{[hc]:Qc,[yc]:[{[gc]:Xc},!1]}],vd=[{[hc]:Ac,[yc]:[{[gc]:Wc},"beta"]}],xd=[{[hc]:Qc,[yc]:[{[gc]:"Region"},!1]}],wd=[{[hc]:Ac,[yc]:[{[gc]:"Region"},"us-east-1"]}],Sd=[{[hc]:Ac,[yc]:[fp,au]}],Nd=[{[hc]:Ic,[yc]:[mp,"resourceId[1]"],[bc]:lu},{[hc]:Fc,[yc]:[{[hc]:Ac,[yc]:[yp,""]}]}],jd=[mp,"resourceId[1]"],Ed=[wu],Cd=[{[hc]:Fc,[yc]:[{[hc]:Ac,[yc]:[{[hc]:Ic,[yc]:[mp,"region"]},""]}]}],kd=[{[hc]:Fc,[yc]:[{[hc]:Rc,[yc]:[{[hc]:Ic,[yc]:[mp,"resourceId[2]"]}]}]}],Td=[mp,"resourceId[2]"],Rd=[{[hc]:_c,[yc]:[{[hc]:Ic,[yc]:[mp,"region"]}],[bc]:"bucketPartition"}],Od=[{[hc]:Ac,[yc]:[wp,{[hc]:Ic,[yc]:[{[gc]:"partitionResult"},Mc]}]}],Pd=[{[hc]:Qc,[yc]:[{[hc]:Ic,[yc]:[mp,"region"]},!0]}],_d=[{[hc]:Qc,[yc]:[Sp,!1]}],Ad=[{[hc]:Qc,[yc]:[yp,!1]}],Id=[xu],Md=[{[hc]:Qc,[yc]:[{[gc]:"Region"},!0]}],Dd={parameters:{Bucket:yu,Region:yu,UseFIPS:gu,UseDualStack:gu,Endpoint:yu,ForcePathStyle:gu,Accelerate:gu,UseGlobalEndpoint:gu,UseObjectLambdaEndpoint:bu,Key:yu,Prefix:yu,CopySource:yu,DisableAccessPoints:bu,DisableMultiRegionAccessPoints:gu,UseArnRegion:bu,UseS3ExpressControlEndpoint:bu,DisableS3ExpressSessionAuth:bu},[mc]:[{[fc]:[{[hc]:Rc,[yc]:Vp}],[mc]:[{[fc]:[vu,xu],error:"Accelerate cannot be used with FIPS",[dc]:Pc},{[fc]:[wu,Su],error:"Cannot set dual-stack in combination with a custom endpoint.",[dc]:Pc},{[fc]:[Su,xu],error:"A custom endpoint cannot be combined with FIPS",[dc]:Pc},{[fc]:[Su,vu],error:"A custom endpoint cannot be combined with S3 Accelerate",[dc]:Pc},{[fc]:[xu,Nu,ju],error:"Partition does not support FIPS",[dc]:Pc},{[fc]:[Eu,{[hc]:Dc,[yc]:[Cu,0,6,Tc],[bc]:zc},{[hc]:Ac,[yc]:[{[gc]:zc},"--x-s3"]}],[mc]:[ku,Tu,{[fc]:[zu,Bu],[mc]:[{[fc]:Zp,[mc]:[{[fc]:[_u,Lu],[mc]:[{[fc]:ed,endpoint:{[vc]:"https://s3express-control-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[xc]:Au,[Cc]:Iu},[dc]:Lc},{[fc]:td,endpoint:{[vc]:"https://s3express-control-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[xc]:Au,[Cc]:Iu},[dc]:Lc},{[fc]:rd,endpoint:{[vc]:"https://s3express-control.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[xc]:Au,[Cc]:Iu},[dc]:Lc},{[fc]:nd,endpoint:{[vc]:"https://s3express-control.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[xc]:Au,[Cc]:Iu},[dc]:Lc}],[dc]:qc}],[dc]:qc}],[dc]:qc},{[fc]:Jp,[mc]:[{[fc]:Zp,[mc]:[{[fc]:Qp,[mc]:[{[fc]:id,[mc]:od,[dc]:qc},{[fc]:sd,[mc]:od,[dc]:qc},{[fc]:ad,[mc]:od,[dc]:qc},{[fc]:ld,[mc]:od,[dc]:qc},{[fc]:cd,[mc]:od,[dc]:qc},Hu],[dc]:qc},{[fc]:id,[mc]:ud,[dc]:qc},{[fc]:sd,[mc]:ud,[dc]:qc},{[fc]:ad,[mc]:ud,[dc]:qc},{[fc]:ld,[mc]:ud,[dc]:qc},{[fc]:cd,[mc]:ud,[dc]:qc},Hu],[dc]:qc}],[dc]:qc},Du],[dc]:qc},{[fc]:[Eu,{[hc]:Dc,[yc]:pd,[bc]:$c},{[hc]:Ac,[yc]:[{[gc]:$c},"--xa-s3"]}],[mc]:[ku,Tu,{[fc]:Jp,[mc]:[{[fc]:Zp,[mc]:[{[fc]:Qp,[mc]:[{[fc]:dd,[mc]:od,[dc]:qc},{[fc]:md,[mc]:od,[dc]:qc},{[fc]:fd,[mc]:od,[dc]:qc},{[fc]:hd,[mc]:od,[dc]:qc},{[fc]:yd,[mc]:od,[dc]:qc},Hu],[dc]:qc},{[fc]:dd,[mc]:ud,[dc]:qc},{[fc]:md,[mc]:ud,[dc]:qc},{[fc]:fd,[mc]:ud,[dc]:qc},{[fc]:hd,[mc]:ud,[dc]:qc},{[fc]:yd,[mc]:ud,[dc]:qc},Hu],[dc]:qc}],[dc]:qc},Du],[dc]:qc},{[fc]:[Fu,zu,Bu],[mc]:[{[fc]:Zp,[mc]:[{[fc]:Xp,endpoint:{[vc]:Vc,[xc]:Au,[Cc]:Iu},[dc]:Lc},{[fc]:ed,endpoint:{[vc]:"https://s3express-control-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",[xc]:Au,[Cc]:Iu},[dc]:Lc},{[fc]:td,endpoint:{[vc]:"https://s3express-control-fips.{Region}.{partitionResult#dnsSuffix}",[xc]:Au,[Cc]:Iu},[dc]:Lc},{[fc]:rd,endpoint:{[vc]:"https://s3express-control.dualstack.{Region}.{partitionResult#dnsSuffix}",[xc]:Au,[Cc]:Iu},[dc]:Lc},{[fc]:nd,endpoint:{[vc]:"https://s3express-control.{Region}.{partitionResult#dnsSuffix}",[xc]:Au,[Cc]:Iu},[dc]:Lc}],[dc]:qc}],[dc]:qc},{[fc]:[Eu,{[hc]:Dc,[yc]:[Cu,49,50,Tc],[bc]:Gc},{[hc]:Dc,[yc]:[Cu,8,12,Tc],[bc]:Wc},{[hc]:Dc,[yc]:pd,[bc]:Kc},{[hc]:Dc,[yc]:[Cu,32,49,Tc],[bc]:Xc},{[hc]:_c,[yc]:Vp,[bc]:"regionPartition"},{[hc]:Ac,[yc]:[{[gc]:Kc},"--op-s3"]}],[mc]:[{[fc]:bd,[mc]:[{[fc]:Jp,[mc]:[{[fc]:[{[hc]:Ac,[yc]:[$u,"e"]}],[mc]:[{[fc]:vd,[mc]:[Vu,{[fc]:Xp,endpoint:{[vc]:"https://{Bucket}.ec2.{url#authority}",[xc]:Gu,[Cc]:Iu},[dc]:Lc}],[dc]:qc},{endpoint:{[vc]:"https://{Bucket}.ec2.s3-outposts.{Region}.{regionPartition#dnsSuffix}",[xc]:Gu,[Cc]:Iu},[dc]:Lc}],[dc]:qc},{[fc]:[{[hc]:Ac,[yc]:[$u,"o"]}],[mc]:[{[fc]:vd,[mc]:[Vu,{[fc]:Xp,endpoint:{[vc]:"https://{Bucket}.op-{outpostId}.{url#authority}",[xc]:Gu,[Cc]:Iu},[dc]:Lc}],[dc]:qc},{endpoint:{[vc]:"https://{Bucket}.op-{outpostId}.s3-outposts.{Region}.{regionPartition#dnsSuffix}",[xc]:Gu,[Cc]:Iu},[dc]:Lc}],[dc]:qc},{error:'Unrecognized hardware type: "Expected hardware type o or e but got {hardwareType}"',[dc]:Pc}],[dc]:qc},{error:"Invalid Outposts Bucket alias - it must be a valid bucket name.",[dc]:Pc}],[dc]:qc},{error:"Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`.",[dc]:Pc}],[dc]:qc},{[fc]:gd,[mc]:[{[fc]:[Su,{[hc]:Fc,[yc]:[{[hc]:Rc,[yc]:[{[hc]:Bc,[yc]:Gp}]}]}],error:"Custom endpoint `{Endpoint}` was not a valid URI",[dc]:Pc},{[fc]:[Wu,Mu],[mc]:[{[fc]:Zp,[mc]:[{[fc]:xd,[mc]:[{[fc]:[vu,ju],error:"S3 Accelerate cannot be used in this region",[dc]:Pc},{[fc]:[wu,xu,Xu,Lu,Qu],endpoint:{[vc]:"https://{Bucket}.s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",[xc]:Yu,[Cc]:Iu},[dc]:Lc},{[fc]:[wu,xu,Xu,Lu,Ju,Zu],[mc]:[{endpoint:ep,[dc]:Lc}],[dc]:qc},{[fc]:[wu,xu,Xu,Lu,Ju,rp],endpoint:ep,[dc]:Lc},{[fc]:[qu,xu,Xu,Lu,Qu],endpoint:{[vc]:"https://{Bucket}.s3-fips.us-east-1.{partitionResult#dnsSuffix}",[xc]:Yu,[Cc]:Iu},[dc]:Lc},{[fc]:[qu,xu,Xu,Lu,Ju,Zu],[mc]:[{endpoint:np,[dc]:Lc}],[dc]:qc},{[fc]:[qu,xu,Xu,Lu,Ju,rp],endpoint:np,[dc]:Lc},{[fc]:[wu,Uu,vu,Lu,Qu],endpoint:{[vc]:"https://{Bucket}.s3-accelerate.dualstack.us-east-1.{partitionResult#dnsSuffix}",[xc]:Yu,[Cc]:Iu},[dc]:Lc},{[fc]:[wu,Uu,vu,Lu,Ju,Zu],[mc]:[{endpoint:ip,[dc]:Lc}],[dc]:qc},{[fc]:[wu,Uu,vu,Lu,Ju,rp],endpoint:ip,[dc]:Lc},{[fc]:[wu,Uu,Xu,Lu,Qu],endpoint:{[vc]:"https://{Bucket}.s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",[xc]:Yu,[Cc]:Iu},[dc]:Lc},{[fc]:[wu,Uu,Xu,Lu,Ju,Zu],[mc]:[{endpoint:op,[dc]:Lc}],[dc]:qc},{[fc]:[wu,Uu,Xu,Lu,Ju,rp],endpoint:op,[dc]:Lc},{[fc]:[qu,Uu,Xu,Su,Ru,Ou,Qu],endpoint:{[vc]:eu,[xc]:Yu,[Cc]:Iu},[dc]:Lc},{[fc]:[qu,Uu,Xu,Su,Ru,sp,Qu],endpoint:{[vc]:Hc,[xc]:Yu,[Cc]:Iu},[dc]:Lc},{[fc]:[qu,Uu,Xu,Su,Ru,Ou,Ju,Zu],[mc]:[{[fc]:wd,endpoint:ap,[dc]:Lc},{endpoint:ap,[dc]:Lc}],[dc]:qc},{[fc]:[qu,Uu,Xu,Su,Ru,sp,Ju,Zu],[mc]:[{[fc]:wd,endpoint:lp,[dc]:Lc},cp],[dc]:qc},{[fc]:[qu,Uu,Xu,Su,Ru,Ou,Ju,rp],endpoint:ap,[dc]:Lc},{[fc]:[qu,Uu,Xu,Su,Ru,sp,Ju,rp],endpoint:lp,[dc]:Lc},{[fc]:[qu,Uu,vu,Lu,Qu],endpoint:{[vc]:tu,[xc]:Yu,[Cc]:Iu},[dc]:Lc},{[fc]:[qu,Uu,vu,Lu,Ju,Zu],[mc]:[{[fc]:wd,endpoint:up,[dc]:Lc},{endpoint:up,[dc]:Lc}],[dc]:qc},{[fc]:[qu,Uu,vu,Lu,Ju,rp],endpoint:up,[dc]:Lc},{[fc]:[qu,Uu,Xu,Lu,Qu],endpoint:{[vc]:ru,[xc]:Yu,[Cc]:Iu},[dc]:Lc},{[fc]:[qu,Uu,Xu,Lu,Ju,Zu],[mc]:[{[fc]:wd,endpoint:{[vc]:ru,[xc]:tp,[Cc]:Iu},[dc]:Lc},{endpoint:pp,[dc]:Lc}],[dc]:qc},{[fc]:[qu,Uu,Xu,Lu,Ju,rp],endpoint:pp,[dc]:Lc}],[dc]:qc},dp],[dc]:qc}],[dc]:qc},{[fc]:[Su,Ru,{[hc]:Ac,[yc]:[{[hc]:Ic,[yc]:[Pu,"scheme"]},"http"]},{[hc]:Uc,[yc]:[Cu,Tc]},Wu,Uu,qu,Xu],[mc]:[{[fc]:Zp,[mc]:[{[fc]:xd,[mc]:[cp],[dc]:qc},dp],[dc]:qc}],[dc]:qc},{[fc]:[Wu,{[hc]:nu,[yc]:Wp,[bc]:iu}],[mc]:[{[fc]:[{[hc]:Ic,[yc]:[mp,"resourceId[0]"],[bc]:ou},{[hc]:Fc,[yc]:[{[hc]:Ac,[yc]:[fp,""]}]}],[mc]:[{[fc]:[{[hc]:Ac,[yc]:[hp,su]}],[mc]:[{[fc]:Sd,[mc]:[{[fc]:Nd,[mc]:[gp,bp,{[fc]:Cd,[mc]:[vp,{[fc]:kd,[mc]:[xp,{[fc]:Rd,[mc]:[{[fc]:Zp,[mc]:[{[fc]:Od,[mc]:[{[fc]:Pd,[mc]:[{[fc]:[{[hc]:Ac,[yc]:[Sp,""]}],error:"Invalid ARN: Missing account id",[dc]:Pc},{[fc]:_d,[mc]:[{[fc]:Ad,[mc]:[{[fc]:Xp,endpoint:{[vc]:cu,[xc]:Np,[Cc]:Iu},[dc]:Lc},{[fc]:Id,endpoint:{[vc]:"https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",[xc]:Np,[Cc]:Iu},[dc]:Lc},{endpoint:{[vc]:"https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda.{bucketArn#region}.{bucketPartition#dnsSuffix}",[xc]:Np,[Cc]:Iu},[dc]:Lc}],[dc]:qc},jp],[dc]:qc},Ep],[dc]:qc},Cp],[dc]:qc},kp],[dc]:qc}],[dc]:qc}],[dc]:qc},Tp],[dc]:qc},{error:"Invalid ARN: bucket ARN is missing a region",[dc]:Pc}],[dc]:qc},Rp],[dc]:qc},{error:"Invalid ARN: Object Lambda ARNs only support `accesspoint` arn types, but found: `{arnType}`",[dc]:Pc}],[dc]:qc},{[fc]:Sd,[mc]:[{[fc]:Nd,[mc]:[{[fc]:Cd,[mc]:[{[fc]:Sd,[mc]:[{[fc]:Cd,[mc]:[vp,{[fc]:kd,[mc]:[xp,{[fc]:Rd,[mc]:[{[fc]:Zp,[mc]:[{[fc]:[{[hc]:Ac,[yc]:[wp,"{partitionResult#name}"]}],[mc]:[{[fc]:Pd,[mc]:[{[fc]:[{[hc]:Ac,[yc]:[hp,Zc]}],[mc]:[{[fc]:_d,[mc]:[{[fc]:Ad,[mc]:[{[fc]:Kp,error:"Access Points do not support S3 Accelerate",[dc]:Pc},{[fc]:ed,endpoint:{[vc]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",[xc]:Op,[Cc]:Iu},[dc]:Lc},{[fc]:td,endpoint:{[vc]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",[xc]:Op,[Cc]:Iu},[dc]:Lc},{[fc]:rd,endpoint:{[vc]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",[xc]:Op,[Cc]:Iu},[dc]:Lc},{[fc]:[Uu,qu,Su,Ru],endpoint:{[vc]:cu,[xc]:Op,[Cc]:Iu},[dc]:Lc},{[fc]:nd,endpoint:{[vc]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.{bucketArn#region}.{bucketPartition#dnsSuffix}",[xc]:Op,[Cc]:Iu},[dc]:Lc}],[dc]:qc},jp],[dc]:qc},Ep],[dc]:qc},{error:"Invalid ARN: The ARN was not for the S3 service, found: {bucketArn#service}",[dc]:Pc}],[dc]:qc},Cp],[dc]:qc},kp],[dc]:qc}],[dc]:qc}],[dc]:qc},Tp],[dc]:qc}],[dc]:qc}],[dc]:qc},{[fc]:[{[hc]:Qc,[yc]:[yp,Tc]}],[mc]:[{[fc]:Ed,error:"S3 MRAP does not support dual-stack",[dc]:Pc},{[fc]:Id,error:"S3 MRAP does not support FIPS",[dc]:Pc},{[fc]:Kp,error:"S3 MRAP does not support S3 Accelerate",[dc]:Pc},{[fc]:[{[hc]:Oc,[yc]:[{[gc]:"DisableMultiRegionAccessPoints"},Tc]}],error:"Invalid configuration: Multi-Region Access Point ARNs are disabled.",[dc]:Pc},{[fc]:[{[hc]:_c,[yc]:Vp,[bc]:uu}],[mc]:[{[fc]:[{[hc]:Ac,[yc]:[{[hc]:Ic,[yc]:[{[gc]:uu},Mc]},{[hc]:Ic,[yc]:[mp,"partition"]}]}],[mc]:[{endpoint:{[vc]:"https://{accessPointName}.accesspoint.s3-global.{mrapPartition#dnsSuffix}",[xc]:{[Sc]:[{[Nc]:Tc,name:Yc,[jc]:Zc,[kc]:["*"]}]},[Cc]:Iu},[dc]:Lc}],[dc]:qc},{error:"Client was configured for partition `{mrapPartition#name}` but bucket referred to partition `{bucketArn#partition}`",[dc]:Pc}],[dc]:qc}],[dc]:qc},{error:"Invalid Access Point Name",[dc]:Pc}],[dc]:qc},Rp],[dc]:qc},{[fc]:[{[hc]:Ac,[yc]:[hp,Jc]}],[mc]:[{[fc]:Ed,error:"S3 Outposts does not support Dual-stack",[dc]:Pc},{[fc]:Id,error:"S3 Outposts does not support FIPS",[dc]:Pc},{[fc]:Kp,error:"S3 Outposts does not support S3 Accelerate",[dc]:Pc},{[fc]:[{[hc]:Rc,[yc]:[{[hc]:Ic,[yc]:[mp,"resourceId[4]"]}]}],error:"Invalid Arn: Outpost Access Point ARN contains sub resources",[dc]:Pc},{[fc]:[{[hc]:Ic,[yc]:jd,[bc]:Xc}],[mc]:[{[fc]:bd,[mc]:[xp,{[fc]:Rd,[mc]:[{[fc]:Zp,[mc]:[{[fc]:Od,[mc]:[{[fc]:Pd,[mc]:[{[fc]:_d,[mc]:[{[fc]:[{[hc]:Ic,[yc]:Td,[bc]:pu}],[mc]:[{[fc]:[{[hc]:Ic,[yc]:[mp,"resourceId[3]"],[bc]:lu}],[mc]:[{[fc]:[{[hc]:Ac,[yc]:[{[gc]:pu},au]}],[mc]:[{[fc]:Xp,endpoint:{[vc]:"https://{accessPointName}-{bucketArn#accountId}.{outpostId}.{url#authority}",[xc]:Pp,[Cc]:Iu},[dc]:Lc},{endpoint:{[vc]:"https://{accessPointName}-{bucketArn#accountId}.{outpostId}.s3-outposts.{bucketArn#region}.{bucketPartition#dnsSuffix}",[xc]:Pp,[Cc]:Iu},[dc]:Lc}],[dc]:qc},{error:"Expected an outpost type `accesspoint`, found {outpostType}",[dc]:Pc}],[dc]:qc},{error:"Invalid ARN: expected an access point name",[dc]:Pc}],[dc]:qc},{error:"Invalid ARN: Expected a 4-component resource",[dc]:Pc}],[dc]:qc},Ep],[dc]:qc},Cp],[dc]:qc},kp],[dc]:qc}],[dc]:qc}],[dc]:qc},{error:"Invalid ARN: The outpost Id may only contain a-z, A-Z, 0-9 and `-`. Found: `{outpostId}`",[dc]:Pc}],[dc]:qc},{error:"Invalid ARN: The Outpost Id was not set",[dc]:Pc}],[dc]:qc},{error:"Invalid ARN: Unrecognized format: {Bucket} (type: {arnType})",[dc]:Pc}],[dc]:qc},{error:"Invalid ARN: No ARN type specified",[dc]:Pc}],[dc]:qc},{[fc]:[{[hc]:Dc,[yc]:[Cu,0,4,!1],[bc]:du},{[hc]:Ac,[yc]:[{[gc]:du},"arn:"]},{[hc]:Fc,[yc]:[{[hc]:Rc,[yc]:[_p]}]}],error:"Invalid ARN: `{Bucket}` was not a valid ARN",[dc]:Pc},{[fc]:[{[hc]:Oc,[yc]:[Ku,Tc]},_p],error:"Path-style addressing cannot be used with ARN buckets",[dc]:Pc},{[fc]:Yp,[mc]:[{[fc]:Zp,[mc]:[{[fc]:[Xu],[mc]:[{[fc]:[wu,Lu,xu,Qu],endpoint:{[vc]:"https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[xc]:Yu,[Cc]:Iu},[dc]:Lc},{[fc]:[wu,Lu,xu,Ju,Zu],[mc]:[{endpoint:Ap,[dc]:Lc}],[dc]:qc},{[fc]:[wu,Lu,xu,Ju,rp],endpoint:Ap,[dc]:Lc},{[fc]:[qu,Lu,xu,Qu],endpoint:{[vc]:"https://s3-fips.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[xc]:Yu,[Cc]:Iu},[dc]:Lc},{[fc]:[qu,Lu,xu,Ju,Zu],[mc]:[{endpoint:Ip,[dc]:Lc}],[dc]:qc},{[fc]:[qu,Lu,xu,Ju,rp],endpoint:Ip,[dc]:Lc},{[fc]:[wu,Lu,Uu,Qu],endpoint:{[vc]:"https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[xc]:Yu,[Cc]:Iu},[dc]:Lc},{[fc]:[wu,Lu,Uu,Ju,Zu],[mc]:[{endpoint:Mp,[dc]:Lc}],[dc]:qc},{[fc]:[wu,Lu,Uu,Ju,rp],endpoint:Mp,[dc]:Lc},{[fc]:[qu,Su,Ru,Uu,Qu],endpoint:{[vc]:mu,[xc]:Yu,[Cc]:Iu},[dc]:Lc},{[fc]:[qu,Su,Ru,Uu,Ju,Zu],[mc]:[{[fc]:wd,endpoint:Dp,[dc]:Lc},{endpoint:Dp,[dc]:Lc}],[dc]:qc},{[fc]:[qu,Su,Ru,Uu,Ju,rp],endpoint:Dp,[dc]:Lc},{[fc]:[qu,Lu,Uu,Qu],endpoint:{[vc]:fu,[xc]:Yu,[Cc]:Iu},[dc]:Lc},{[fc]:[qu,Lu,Uu,Ju,Zu],[mc]:[{[fc]:wd,endpoint:{[vc]:fu,[xc]:tp,[Cc]:Iu},[dc]:Lc},{endpoint:zp,[dc]:Lc}],[dc]:qc},{[fc]:[qu,Lu,Uu,Ju,rp],endpoint:zp,[dc]:Lc}],[dc]:qc},{error:"Path-style addressing cannot be used with S3 Accelerate",[dc]:Pc}],[dc]:qc}],[dc]:qc}],[dc]:qc},{[fc]:[{[hc]:Rc,[yc]:[Bp]},{[hc]:Oc,[yc]:[Bp,Tc]}],[mc]:[{[fc]:Zp,[mc]:[{[fc]:Md,[mc]:[gp,bp,{[fc]:Xp,endpoint:{[vc]:Vc,[xc]:Lp,[Cc]:Iu},[dc]:Lc},{[fc]:Id,endpoint:{[vc]:"https://s3-object-lambda-fips.{Region}.{partitionResult#dnsSuffix}",[xc]:Lp,[Cc]:Iu},[dc]:Lc},{endpoint:{[vc]:"https://s3-object-lambda.{Region}.{partitionResult#dnsSuffix}",[xc]:Lp,[Cc]:Iu},[dc]:Lc}],[dc]:qc},dp],[dc]:qc}],[dc]:qc},{[fc]:[Fu],[mc]:[{[fc]:Zp,[mc]:[{[fc]:Md,[mc]:[{[fc]:[xu,wu,Lu,Qu],endpoint:{[vc]:"https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",[xc]:Yu,[Cc]:Iu},[dc]:Lc},{[fc]:[xu,wu,Lu,Ju,Zu],[mc]:[{endpoint:qp,[dc]:Lc}],[dc]:qc},{[fc]:[xu,wu,Lu,Ju,rp],endpoint:qp,[dc]:Lc},{[fc]:[xu,qu,Lu,Qu],endpoint:{[vc]:"https://s3-fips.us-east-1.{partitionResult#dnsSuffix}",[xc]:Yu,[Cc]:Iu},[dc]:Lc},{[fc]:[xu,qu,Lu,Ju,Zu],[mc]:[{endpoint:Up,[dc]:Lc}],[dc]:qc},{[fc]:[xu,qu,Lu,Ju,rp],endpoint:Up,[dc]:Lc},{[fc]:[Uu,wu,Lu,Qu],endpoint:{[vc]:"https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",[xc]:Yu,[Cc]:Iu},[dc]:Lc},{[fc]:[Uu,wu,Lu,Ju,Zu],[mc]:[{endpoint:Hp,[dc]:Lc}],[dc]:qc},{[fc]:[Uu,wu,Lu,Ju,rp],endpoint:Hp,[dc]:Lc},{[fc]:[Uu,qu,Su,Ru,Qu],endpoint:{[vc]:Vc,[xc]:Yu,[Cc]:Iu},[dc]:Lc},{[fc]:[Uu,qu,Su,Ru,Ju,Zu],[mc]:[{[fc]:wd,endpoint:Fp,[dc]:Lc},{endpoint:Fp,[dc]:Lc}],[dc]:qc},{[fc]:[Uu,qu,Su,Ru,Ju,rp],endpoint:Fp,[dc]:Lc},{[fc]:[Uu,qu,Lu,Qu],endpoint:{[vc]:hu,[xc]:Yu,[Cc]:Iu},[dc]:Lc},{[fc]:[Uu,qu,Lu,Ju,Zu],[mc]:[{[fc]:wd,endpoint:{[vc]:hu,[xc]:tp,[Cc]:Iu},[dc]:Lc},{endpoint:$p,[dc]:Lc}],[dc]:qc},{[fc]:[Uu,qu,Lu,Ju,rp],endpoint:$p,[dc]:Lc}],[dc]:qc},dp],[dc]:qc}],[dc]:qc}],[dc]:qc},{error:"A region must be set when sending requests to S3.",[dc]:Pc}]},zd=new class{constructor({size:e,params:t}){r(this,"capacity"),r(this,"data",new Map),r(this,"parameters",[]),this.capacity=e??50,t&&(this.parameters=t)}get(e,t){const r=this.hash(e);if(!1===r)return t();if(!this.data.has(r)){if(this.data.size>this.capacity+10){const e=this.data.keys();let t=0;for(;;){const{value:r,done:n}=e.next();if(this.data.delete(r),n||++t>10)break}}this.data.set(r,t())}return this.data.get(r)}size(){return this.data.size}hash(e){let t="";const{parameters:r}=this;if(0===r.length)return!1;for(const n of r){const r=String(e[n]??"");if(r.includes("|;"))return!1;t+=r+"|;"}return t}}({size:50,params:["Accelerate","Bucket","DisableAccessPoints","DisableMultiRegionAccessPoints","DisableS3ExpressSessionAuth","Endpoint","ForcePathStyle","Region","UseArnRegion","UseDualStack","UseFIPS","UseGlobalEndpoint","UseObjectLambdaEndpoint","UseS3ExpressControlEndpoint"]}),Bd=(e,t={})=>zd.get(e,()=>((e,t)=>{var r,n,i,o;const{endpointParams:s,logger:a}=t,{parameters:l,rules:c}=e;null==(n=null==(r=t.logger)?void 0:r.debug)||n.call(r,`${$a} Initial EndpointParams: ${Va(s)}`);const u=Object.entries(l).filter(([,e])=>null!=e.default).map(([e,t])=>[e,t.default]);if(u.length>0)for(const[m,f]of u)s[m]=s[m]??f;const p=Object.entries(l).filter(([,e])=>e.required).map(([e])=>e);for(const m of p)if(null==s[m])throw new Ga(`Missing required parameter: '${m}'`);const d=cl(c,{endpointParams:s,logger:a,referenceRecord:{}});return null==(o=null==(i=t.logger)?void 0:i.debug)||o.call(i,`${$a} Resolved endpoint: ${Va(d)}`),d})(Dd,{endpointParams:e,logger:t.logger}));Fa.aws=ml;const Ld=(qd=async(e,t,r)=>({operation:ln(t).operation,region:await cn(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),async(e,t,r)=>{var n,i,o;if(!r)throw new Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");const s=await qd(e,t,r),a=null==(o=null==(i=null==(n=ln(t))?void 0:n.commandInstance)?void 0:i.constructor)?void 0:o.getEndpointParameterInstructions;if(!a)throw new Error(`getEndpointParameterInstructions() is not defined on '${t.commandName}'`);const l=await Yl(r,{getEndpointParameterInstructions:a},e);return Object.assign(s,l)});var qd;function Ud(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"s3",region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}function Hd(e){return{schemeId:"aws.auth#sigv4a",signingProperties:{name:"s3",region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}const Fd=($d=Bd,Vd=e=>{const t=[];return e.operation,t.push(Ud(e)),t.push(Hd(e)),t},Gd={"aws.auth#sigv4":Ud,"aws.auth#sigv4a":Hd},e=>{var t;const r=null==(t=$d(e).properties)?void 0:t.authSchemes;if(!r)return Vd(e);const n=[];for(const i of r){const{name:t,properties:o={},...s}=i,a=t.toLowerCase();let l;if("sigv4a"===a){l="aws.auth#sigv4a";const e=r.find(e=>{const t=e.name.toLowerCase();return"sigv4a"!==t&&t.startsWith("sigv4")});if("none"===uc.sigv4aDependency()&&e)continue}else{if(!a.startsWith("sigv4"))throw new Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${a}'`);l="aws.auth#sigv4"}const c=Gd[l];if(!c)throw new Error(`Could not find HttpAuthOption create function for '${l}'`);const u=c(e);u.schemeId=l,u.signingProperties={...u.signingProperties||{},...s,...o},n.push(u)}return n});var $d,Vd,Gd;const Wd=e=>{const t=(e=>(e.sigv4aSigningRegionSet=yn(e.sigv4aSigningRegionSet),e))(Io(e));return Object.assign(t,{authSchemePreference:cn(e.authSchemePreference??[])})},Kd={ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},DisableS3ExpressSessionAuth:{type:"clientContextParams",name:"disableS3ExpressSessionAuth"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};class Xd extends Wo{constructor(e){super(e),Object.setPrototypeOf(this,Xd.prototype)}}class Qd extends Xd{constructor(e){super({name:"NoSuchUpload",$fault:"client",...e}),r(this,"name","NoSuchUpload"),r(this,"$fault","client"),Object.setPrototypeOf(this,Qd.prototype)}}class Yd extends Xd{constructor(e){super({name:"AccessDenied",$fault:"client",...e}),r(this,"name","AccessDenied"),r(this,"$fault","client"),Object.setPrototypeOf(this,Yd.prototype)}}class Jd extends Xd{constructor(e){super({name:"ObjectNotInActiveTierError",$fault:"client",...e}),r(this,"name","ObjectNotInActiveTierError"),r(this,"$fault","client"),Object.setPrototypeOf(this,Jd.prototype)}}class Zd extends Xd{constructor(e){super({name:"BucketAlreadyExists",$fault:"client",...e}),r(this,"name","BucketAlreadyExists"),r(this,"$fault","client"),Object.setPrototypeOf(this,Zd.prototype)}}class em extends Xd{constructor(e){super({name:"BucketAlreadyOwnedByYou",$fault:"client",...e}),r(this,"name","BucketAlreadyOwnedByYou"),r(this,"$fault","client"),Object.setPrototypeOf(this,em.prototype)}}class tm extends Xd{constructor(e){super({name:"NoSuchBucket",$fault:"client",...e}),r(this,"name","NoSuchBucket"),r(this,"$fault","client"),Object.setPrototypeOf(this,tm.prototype)}}class rm extends Xd{constructor(e){super({name:"InvalidObjectState",$fault:"client",...e}),r(this,"name","InvalidObjectState"),r(this,"$fault","client"),r(this,"StorageClass"),r(this,"AccessTier"),Object.setPrototypeOf(this,rm.prototype),this.StorageClass=e.StorageClass,this.AccessTier=e.AccessTier}}class nm extends Xd{constructor(e){super({name:"NoSuchKey",$fault:"client",...e}),r(this,"name","NoSuchKey"),r(this,"$fault","client"),Object.setPrototypeOf(this,nm.prototype)}}class im extends Xd{constructor(e){super({name:"NotFound",$fault:"client",...e}),r(this,"name","NotFound"),r(this,"$fault","client"),Object.setPrototypeOf(this,im.prototype)}}class om extends Xd{constructor(e){super({name:"EncryptionTypeMismatch",$fault:"client",...e}),r(this,"name","EncryptionTypeMismatch"),r(this,"$fault","client"),Object.setPrototypeOf(this,om.prototype)}}class sm extends Xd{constructor(e){super({name:"InvalidRequest",$fault:"client",...e}),r(this,"name","InvalidRequest"),r(this,"$fault","client"),Object.setPrototypeOf(this,sm.prototype)}}class am extends Xd{constructor(e){super({name:"InvalidWriteOffset",$fault:"client",...e}),r(this,"name","InvalidWriteOffset"),r(this,"$fault","client"),Object.setPrototypeOf(this,am.prototype)}}class lm extends Xd{constructor(e){super({name:"TooManyParts",$fault:"client",...e}),r(this,"name","TooManyParts"),r(this,"$fault","client"),Object.setPrototypeOf(this,lm.prototype)}}class cm extends Xd{constructor(e){super({name:"IdempotencyParameterMismatch",$fault:"client",...e}),r(this,"name","IdempotencyParameterMismatch"),r(this,"$fault","client"),Object.setPrototypeOf(this,cm.prototype)}}class um extends Xd{constructor(e){super({name:"ObjectAlreadyInActiveTierError",$fault:"client",...e}),r(this,"name","ObjectAlreadyInActiveTierError"),r(this,"$fault","client"),Object.setPrototypeOf(this,um.prototype)}}const pm="AccessKeyId",dm="Bucket",mm="BucketKeyEnabled",fm="Body",hm="ChecksumAlgorithm",ym="CacheControl",gm="ChecksumCRC32",bm="ChecksumCRC32C",vm="ChecksumCRC64NVME",xm="Cache-Control",wm="Content-Disposition",Sm="ContentDisposition",Nm="Content-Encoding",jm="ContentEncoding",Em="ContentLanguage",Cm="Content-Language",km="Content-Length",Tm="ContentLength",Rm="Content-MD5",Om="ContentMD5",Pm="CompleteMultipartUpload",_m="ChecksumSHA1",Am="ChecksumSHA256",Im="ChecksumType",Mm="Content-Type",Dm="ContentType",zm="Credentials",Bm="Expiration",Lm="ExpectedBucketOwner",qm="ETag",Um="Expires",Hm="GrantFullControl",Fm="GrantRead",$m="GrantReadACP",Vm="GrantWriteACP",Gm="IfMatch",Wm="If-Match",Km="IfNoneMatch",Xm="If-None-Match",Qm="Key",Ym="Metadata",Jm="ObjectLockLegalHoldStatus",Zm="ObjectLockMode",ef="ObjectLockRetainUntilDate",tf="PartNumber",rf="RequestCharged",nf="RequestPayer",of="SecretAccessKey",sf="StorageClass",af="ServerSideEncryption",lf="SSECustomerAlgorithm",cf="SSECustomerKey",uf="SSECustomerKeyMD5",pf="SSEKMSEncryptionContext",df="SSEKMSKeyId",mf="SessionToken",ff="Tagging",hf="UploadId",yf="VersionId",gf="WebsiteRedirectLocation",bf="client",vf="error",xf="http",wf="httpChecksum",Sf="httpError",Nf="httpHeader",jf="httpPayload",Ef="httpPrefixHeaders",Cf="httpQuery",kf="smithy.ts.sdk.synthetic.com.amazonaws.s3",Tf="streaming",Rf="uploadId",Of="xmlFlattened",Pf="xmlName",_f="x-amz-acl",Af="x-amz-checksum-algorithm",If="x-amz-checksum-crc32",Mf="x-amz-checksum-crc32c",Df="x-amz-checksum-crc64nvme",zf="x-amz-checksum-sha1",Bf="x-amz-checksum-sha256",Lf="x-amz-checksum-type",qf="x-amz-expiration",Uf="x-amz-expected-bucket-owner",Hf="x-amz-grant-full-control",Ff="x-amz-grant-read",$f="x-amz-grant-read-acp",Vf="x-amz-grant-write-acp",Gf="x-amz-meta-",Wf="x-amz-object-lock-legal-hold",Kf="x-amz-object-lock-mode",Xf="x-amz-object-lock-retain-until-date",Qf="x-amz-request-charged",Yf="x-amz-request-payer",Jf="x-amz-storage-class",Zf="x-amz-sdk-checksum-algorithm",eh="x-amz-server-side-encryption",th="x-amz-server-side-encryption-aws-kms-key-id",rh="x-amz-server-side-encryption-bucket-key-enabled",nh="x-amz-server-side-encryption-context",ih="x-amz-server-side-encryption-customer-algorithm",oh="x-amz-server-side-encryption-customer-key",sh="x-amz-server-side-encryption-customer-key-MD5",ah="x-amz-tagging",lh="x-amz-version-id",ch="x-amz-website-redirect-location",uh="com.amazonaws.s3",ph=bi.for(kf);var dh=[-3,kf,"S3ServiceException",0,[],[]];ph.registerError(dh,Xd);const mh=bi.for(uh);var fh=[-3,uh,"AccessDenied",{[vf]:bf,[Sf]:403},[],[]];mh.registerError(fh,Yd);var hh=[-3,uh,"BucketAlreadyExists",{[vf]:bf,[Sf]:409},[],[]];mh.registerError(hh,Zd);var yh=[-3,uh,"BucketAlreadyOwnedByYou",{[vf]:bf,[Sf]:409},[],[]];mh.registerError(yh,em);var gh=[-3,uh,"EncryptionTypeMismatch",{[vf]:bf,[Sf]:400},[],[]];mh.registerError(gh,om);var bh=[-3,uh,"IdempotencyParameterMismatch",{[vf]:bf,[Sf]:400},[],[]];mh.registerError(bh,cm);var vh=[-3,uh,"InvalidObjectState",{[vf]:bf,[Sf]:403},[sf,"AccessTier"],[0,0]];mh.registerError(vh,rm);var xh=[-3,uh,"InvalidRequest",{[vf]:bf,[Sf]:400},[],[]];mh.registerError(xh,sm);var wh=[-3,uh,"InvalidWriteOffset",{[vf]:bf,[Sf]:400},[],[]];mh.registerError(wh,am);var Sh=[-3,uh,"NoSuchBucket",{[vf]:bf,[Sf]:404},[],[]];mh.registerError(Sh,tm);var Nh=[-3,uh,"NoSuchKey",{[vf]:bf,[Sf]:404},[],[]];mh.registerError(Nh,nm);var jh=[-3,uh,"NoSuchUpload",{[vf]:bf,[Sf]:404},[],[]];mh.registerError(jh,Qd);var Eh=[-3,uh,"NotFound",{[vf]:bf},[],[]];mh.registerError(Eh,im);var Ch=[-3,uh,"ObjectAlreadyInActiveTierError",{[vf]:bf,[Sf]:403},[],[]];mh.registerError(Ch,um);var kh=[-3,uh,"ObjectNotInActiveTierError",{[vf]:bf,[Sf]:403},[],[]];mh.registerError(kh,Jd);var Th=[-3,uh,"TooManyParts",{[vf]:bf,[Sf]:400},[],[]];mh.registerError(Th,lm);const Rh=[ph,mh];var Oh=[0,uh,"SessionCredentialValue",8,0],Ph=[0,uh,cf,8,0],_h=[0,uh,pf,8,0],Ah=[0,uh,df,8,0],Ih=[0,uh,"StreamingBlob",{[Tf]:1},42],Mh=[3,uh,"AbortMultipartUploadOutput",0,[rf],[[0,{[Nf]:Qf}]]],Dh=[3,uh,"AbortMultipartUploadRequest",0,[dm,Qm,hf,nf,Lm,"IfMatchInitiatedTime"],[[0,1],[0,1],[0,{[Cf]:Rf}],[0,{[Nf]:Yf}],[0,{[Nf]:Uf}],[6,{[Nf]:"x-amz-if-match-initiated-time"}]],3],zh=[3,uh,"CompletedMultipartUpload",0,["Parts"],[[()=>Qh,{[Of]:1,[Pf]:"Part"}]]],Bh=[3,uh,"CompletedPart",0,[qm,gm,bm,vm,_m,Am,tf],[0,0,0,0,0,0,1]],Lh=[3,uh,"CompleteMultipartUploadOutput",{[Pf]:"CompleteMultipartUploadResult"},["Location",dm,Qm,Bm,qm,gm,bm,vm,_m,Am,Im,af,yf,df,mm,rf],[0,0,0,[0,{[Nf]:qf}],0,0,0,0,0,0,0,[0,{[Nf]:eh}],[0,{[Nf]:lh}],[()=>Ah,{[Nf]:th}],[2,{[Nf]:rh}],[0,{[Nf]:Qf}]]],qh=[3,uh,"CompleteMultipartUploadRequest",0,[dm,Qm,hf,"MultipartUpload",gm,bm,vm,_m,Am,Im,"MpuObjectSize",nf,Lm,Gm,Km,lf,cf,uf],[[0,1],[0,1],[0,{[Cf]:Rf}],[()=>zh,{[jf]:1,[Pf]:Pm}],[0,{[Nf]:If}],[0,{[Nf]:Mf}],[0,{[Nf]:Df}],[0,{[Nf]:zf}],[0,{[Nf]:Bf}],[0,{[Nf]:Lf}],[1,{[Nf]:"x-amz-mp-object-size"}],[0,{[Nf]:Yf}],[0,{[Nf]:Uf}],[0,{[Nf]:Wm}],[0,{[Nf]:Xm}],[0,{[Nf]:ih}],[()=>Ph,{[Nf]:oh}],[0,{[Nf]:sh}]],3],Uh=[3,uh,"CreateMultipartUploadOutput",{[Pf]:"InitiateMultipartUploadResult"},["AbortDate","AbortRuleId",dm,Qm,hf,af,lf,uf,df,pf,mm,rf,hm,Im],[[4,{[Nf]:"x-amz-abort-date"}],[0,{[Nf]:"x-amz-abort-rule-id"}],[0,{[Pf]:dm}],0,0,[0,{[Nf]:eh}],[0,{[Nf]:ih}],[0,{[Nf]:sh}],[()=>Ah,{[Nf]:th}],[()=>_h,{[Nf]:nh}],[2,{[Nf]:rh}],[0,{[Nf]:Qf}],[0,{[Nf]:Af}],[0,{[Nf]:Lf}]]],Hh=[3,uh,"CreateMultipartUploadRequest",0,[dm,Qm,"ACL",ym,Sm,jm,Em,Dm,Um,Hm,Fm,$m,Vm,Ym,af,sf,gf,lf,cf,uf,df,pf,mm,nf,ff,Zm,ef,Jm,Lm,hm,Im],[[0,1],[0,1],[0,{[Nf]:_f}],[0,{[Nf]:xm}],[0,{[Nf]:wm}],[0,{[Nf]:Nm}],[0,{[Nf]:Cm}],[0,{[Nf]:Mm}],[4,{[Nf]:Um}],[0,{[Nf]:Hf}],[0,{[Nf]:Ff}],[0,{[Nf]:$f}],[0,{[Nf]:Vf}],[128,{[Ef]:Gf}],[0,{[Nf]:eh}],[0,{[Nf]:Jf}],[0,{[Nf]:ch}],[0,{[Nf]:ih}],[()=>Ph,{[Nf]:oh}],[0,{[Nf]:sh}],[()=>Ah,{[Nf]:th}],[()=>_h,{[Nf]:nh}],[2,{[Nf]:rh}],[0,{[Nf]:Yf}],[0,{[Nf]:ah}],[0,{[Nf]:Kf}],[5,{[Nf]:Xf}],[0,{[Nf]:Wf}],[0,{[Nf]:Uf}],[0,{[Nf]:Af}],[0,{[Nf]:Lf}]],2],Fh=[3,uh,"CreateSessionOutput",{[Pf]:"CreateSessionResult"},[zm,af,df,pf,mm],[[()=>Wh,{[Pf]:zm}],[0,{[Nf]:eh}],[()=>Ah,{[Nf]:th}],[()=>_h,{[Nf]:nh}],[2,{[Nf]:rh}]],1],$h=[3,uh,"CreateSessionRequest",0,[dm,"SessionMode",af,df,pf,mm],[[0,1],[0,{[Nf]:"x-amz-create-session-mode"}],[0,{[Nf]:eh}],[()=>Ah,{[Nf]:th}],[()=>_h,{[Nf]:nh}],[2,{[Nf]:rh}]],1],Vh=[3,uh,"PutObjectOutput",0,[Bm,qm,gm,bm,vm,_m,Am,Im,af,yf,lf,uf,df,pf,mm,"Size",rf],[[0,{[Nf]:qf}],[0,{[Nf]:qm}],[0,{[Nf]:If}],[0,{[Nf]:Mf}],[0,{[Nf]:Df}],[0,{[Nf]:zf}],[0,{[Nf]:Bf}],[0,{[Nf]:Lf}],[0,{[Nf]:eh}],[0,{[Nf]:lh}],[0,{[Nf]:ih}],[0,{[Nf]:sh}],[()=>Ah,{[Nf]:th}],[()=>_h,{[Nf]:nh}],[2,{[Nf]:rh}],[1,{[Nf]:"x-amz-object-size"}],[0,{[Nf]:Qf}]]],Gh=[3,uh,"PutObjectRequest",0,[dm,Qm,"ACL",fm,ym,Sm,jm,Em,Tm,Om,Dm,hm,gm,bm,vm,_m,Am,Um,Gm,Km,Hm,Fm,$m,Vm,"WriteOffsetBytes",Ym,af,sf,gf,lf,cf,uf,df,pf,mm,nf,ff,Zm,ef,Jm,Lm],[[0,1],[0,1],[0,{[Nf]:_f}],[()=>Ih,16],[0,{[Nf]:xm}],[0,{[Nf]:wm}],[0,{[Nf]:Nm}],[0,{[Nf]:Cm}],[1,{[Nf]:km}],[0,{[Nf]:Rm}],[0,{[Nf]:Mm}],[0,{[Nf]:Zf}],[0,{[Nf]:If}],[0,{[Nf]:Mf}],[0,{[Nf]:Df}],[0,{[Nf]:zf}],[0,{[Nf]:Bf}],[4,{[Nf]:Um}],[0,{[Nf]:Wm}],[0,{[Nf]:Xm}],[0,{[Nf]:Hf}],[0,{[Nf]:Ff}],[0,{[Nf]:$f}],[0,{[Nf]:Vf}],[1,{[Nf]:"x-amz-write-offset-bytes"}],[128,{[Ef]:Gf}],[0,{[Nf]:eh}],[0,{[Nf]:Jf}],[0,{[Nf]:ch}],[0,{[Nf]:ih}],[()=>Ph,{[Nf]:oh}],[0,{[Nf]:sh}],[()=>Ah,{[Nf]:th}],[()=>_h,{[Nf]:nh}],[2,{[Nf]:rh}],[0,{[Nf]:Yf}],[0,{[Nf]:ah}],[0,{[Nf]:Kf}],[5,{[Nf]:Xf}],[0,{[Nf]:Wf}],[0,{[Nf]:Uf}]],2],Wh=[3,uh,"SessionCredentials",0,[pm,of,mf,Bm],[[0,{[Pf]:pm}],[()=>Oh,{[Pf]:of}],[()=>Oh,{[Pf]:mf}],[4,{[Pf]:Bm}]],4],Kh=[3,uh,"UploadPartOutput",0,[af,qm,gm,bm,vm,_m,Am,lf,uf,df,mm,rf],[[0,{[Nf]:eh}],[0,{[Nf]:qm}],[0,{[Nf]:If}],[0,{[Nf]:Mf}],[0,{[Nf]:Df}],[0,{[Nf]:zf}],[0,{[Nf]:Bf}],[0,{[Nf]:ih}],[0,{[Nf]:sh}],[()=>Ah,{[Nf]:th}],[2,{[Nf]:rh}],[0,{[Nf]:Qf}]]],Xh=[3,uh,"UploadPartRequest",0,[dm,Qm,tf,hf,fm,Tm,Om,hm,gm,bm,vm,_m,Am,lf,cf,uf,nf,Lm],[[0,1],[0,1],[1,{[Cf]:"partNumber"}],[0,{[Cf]:Rf}],[()=>Ih,16],[1,{[Nf]:km}],[0,{[Nf]:Rm}],[0,{[Nf]:Zf}],[0,{[Nf]:If}],[0,{[Nf]:Mf}],[0,{[Nf]:Df}],[0,{[Nf]:zf}],[0,{[Nf]:Bf}],[0,{[Nf]:ih}],[()=>Ph,{[Nf]:oh}],[0,{[Nf]:sh}],[0,{[Nf]:Yf}],[0,{[Nf]:Uf}]],4],Qh=[1,uh,"CompletedPartList",0,()=>Bh],Yh=[9,uh,"AbortMultipartUpload",{[xf]:["DELETE","/{Key+}?x-id=AbortMultipartUpload",204]},()=>Dh,()=>Mh],Jh=[9,uh,Pm,{[xf]:["POST","/{Key+}",200]},()=>qh,()=>Lh],Zh=[9,uh,"CreateMultipartUpload",{[xf]:["POST","/{Key+}?uploads",200]},()=>Hh,()=>Uh],ey=[9,uh,"CreateSession",{[xf]:["GET","/?session",200]},()=>$h,()=>Fh],ty=[9,uh,"PutObject",{[wf]:"-",[xf]:["PUT","/{Key+}?x-id=PutObject",200]},()=>Gh,()=>Vh],ry=[9,uh,"UploadPart",{[wf]:"-",[xf]:["PUT","/{Key+}?x-id=UploadPart",200]},()=>Xh,()=>Kh];class ny extends(Vo.classBuilder().ep({...Kd,DisableS3ExpressSessionAuth:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(e,t,r,n){return[ec(r,e.getEndpointParameterInstructions()),Ma(r)]}).s("AmazonS3","CreateSession",{}).n("S3Client","CreateSessionCommand").sc(ey).build()){}const iy="3.1014.0";function oy(e){return"string"==typeof e?0===e.length:0===e.byteLength}var sy={name:"SHA-1"},ay={name:"HMAC",hash:sy},ly=new Uint8Array([218,57,163,238,94,107,75,13,50,85,191,239,149,96,24,144,175,216,7,9]);const cy={};function uy(){return"undefined"!=typeof window?window:"undefined"!=typeof self?self:cy}var py=function(){function e(e){this.toHash=new Uint8Array(0),void 0!==e&&(this.key=new Promise(function(t,r){uy().crypto.subtle.importKey("raw",dy(e),ay,!1,["sign"]).then(t,r)}),this.key.catch(function(){}))}return e.prototype.update=function(e){if(!oy(e)){var t=dy(e),r=new Uint8Array(this.toHash.byteLength+t.byteLength);r.set(this.toHash,0),r.set(t,this.toHash.byteLength),this.toHash=r}},e.prototype.digest=function(){var e=this;return this.key?this.key.then(function(t){return uy().crypto.subtle.sign(ay,t,e.toHash).then(function(e){return new Uint8Array(e)})}):oy(this.toHash)?Promise.resolve(ly):Promise.resolve().then(function(){return uy().crypto.subtle.digest(sy,e.toHash)}).then(function(e){return Promise.resolve(new Uint8Array(e))})},e.prototype.reset=function(){this.toHash=new Uint8Array(0)},e}();function dy(e){return"string"==typeof e?Es(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}var my=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"];function fy(e){return!(!function(e){if("object"==typeof e&&"object"==typeof e.crypto){return"function"==typeof e.crypto.getRandomValues}return!1}(e)||"object"!=typeof e.crypto.subtle)&&function(e){return e&&my.every(function(t){return"function"==typeof e[t]})}(e.crypto.subtle)}var hy=function(){function e(e){if(!fy(uy()))throw new Error("SHA1 not supported");this.hash=new py(e)}return e.prototype.update=function(e,t){this.hash.update(ks(e))},e.prototype.digest=function(){return this.hash.digest()},e.prototype.reset=function(){this.hash.reset()},e}(),yy={name:"SHA-256"},gy={name:"HMAC",hash:yy},by=new Uint8Array([227,176,196,66,152,252,28,20,154,251,244,200,153,111,185,36,39,174,65,228,100,155,147,76,164,149,153,27,120,82,184,85]),vy=function(){function e(e){this.toHash=new Uint8Array(0),this.secret=e,this.reset()}return e.prototype.update=function(e){if(!Ts(e)){var t=ks(e),r=new Uint8Array(this.toHash.byteLength+t.byteLength);r.set(this.toHash,0),r.set(t,this.toHash.byteLength),this.toHash=r}},e.prototype.digest=function(){var e=this;return this.key?this.key.then(function(t){return uy().crypto.subtle.sign(gy,t,e.toHash).then(function(e){return new Uint8Array(e)})}):Ts(this.toHash)?Promise.resolve(by):Promise.resolve().then(function(){return uy().crypto.subtle.digest(yy,e.toHash)}).then(function(e){return Promise.resolve(new Uint8Array(e))})},e.prototype.reset=function(){var e=this;this.toHash=new Uint8Array(0),this.secret&&void 0!==this.secret&&(this.key=new Promise(function(t,r){uy().crypto.subtle.importKey("raw",ks(e.secret),gy,!1,["sign"]).then(t,r)}),this.key.catch(function(){}))},e}(),xy=64,wy=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Sy=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],Ny=Math.pow(2,53)-1,jy=function(){function e(){this.state=Int32Array.from(Sy),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return e.prototype.update=function(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");var t=0,r=e.byteLength;if(this.bytesHashed+=r,8*this.bytesHashed>Ny)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;r>0;)this.buffer[this.bufferLength++]=e[t++],r--,this.bufferLength===xy&&(this.hashBuffer(),this.bufferLength=0)},e.prototype.digest=function(){if(!this.finished){var e=8*this.bytesHashed,t=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),r=this.bufferLength;if(t.setUint8(this.bufferLength++,128),r%xy>=56){for(var n=this.bufferLength;n<xy;n++)t.setUint8(n,0);this.hashBuffer(),this.bufferLength=0}for(n=this.bufferLength;n<56;n++)t.setUint8(n,0);t.setUint32(56,Math.floor(e/4294967296),!0),t.setUint32(60,e),this.hashBuffer(),this.finished=!0}var i=new Uint8Array(32);for(n=0;n<8;n++)i[4*n]=this.state[n]>>>24&255,i[4*n+1]=this.state[n]>>>16&255,i[4*n+2]=this.state[n]>>>8&255,i[4*n+3]=this.state[n]>>>0&255;return i},e.prototype.hashBuffer=function(){for(var e=this.buffer,t=this.state,r=t[0],n=t[1],i=t[2],o=t[3],s=t[4],a=t[5],l=t[6],c=t[7],u=0;u<xy;u++){if(u<16)this.temp[u]=(255&e[4*u])<<24|(255&e[4*u+1])<<16|(255&e[4*u+2])<<8|255&e[4*u+3];else{var p=this.temp[u-2],d=(p>>>17|p<<15)^(p>>>19|p<<13)^p>>>10,m=((p=this.temp[u-15])>>>7|p<<25)^(p>>>18|p<<14)^p>>>3;this.temp[u]=(d+this.temp[u-7]|0)+(m+this.temp[u-16]|0)}var f=(((s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7))+(s&a^~s&l)|0)+(c+(wy[u]+this.temp[u]|0)|0)|0,h=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&n^r&i^n&i)|0;c=l,l=a,a=s,s=o+f|0,o=i,i=n,n=r,r=f+h|0}t[0]+=r,t[1]+=n,t[2]+=i,t[3]+=o,t[4]+=s,t[5]+=a,t[6]+=l,t[7]+=c},e}(),Ey=function(){function e(e){this.secret=e,this.hash=new jy,this.reset()}return e.prototype.update=function(e){if(!Ts(e)&&!this.error)try{this.hash.update(ks(e))}catch(t){this.error=t}},e.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},e.prototype.digest=function(){return bs(this,void 0,void 0,function(){return vs(this,function(e){return[2,this.digestSync()]})})},e.prototype.reset=function(){if(this.hash=new jy,this.secret){this.outer=new jy;var e=function(e){var t=ks(e);if(t.byteLength>xy){var r=new jy;r.update(t),t=r.digest()}var n=new Uint8Array(xy);return n.set(t),n}(this.secret),t=new Uint8Array(xy);t.set(e);for(var r=0;r<xy;r++)e[r]^=54,t[r]^=92;this.hash.update(e),this.outer.update(t);for(r=0;r<e.byteLength;r++)e[r]=0}},e}();var Cy=function(){function e(e){fy(uy())?this.hash=new vy(e):this.hash=new Ey(e)}return e.prototype.update=function(e,t){this.hash.update(ks(e))},e.prototype.digest=function(){return this.hash.digest()},e.prototype.reset=function(){this.hash.reset()},e}();const ky=({serviceId:e,clientVersion:t})=>async r=>{var n,i,o;const s="undefined"!=typeof window?window.navigator:void 0,a=(null==s?void 0:s.userAgent)??"",l=(null==(n=null==s?void 0:s.userAgentData)?void 0:n.platform)??Ty.os(a)??"other",c=(null==(i=null==s?void 0:s.userAgentData)?void 0:i.brands)??[],u=c[c.length-1],p=(null==u?void 0:u.brand)??Ty.browser(a)??"unknown",d=(null==u?void 0:u.version)??"unknown",m=[["aws-sdk-js",t],["ua","2.1"],[`os/${l}`,void 0],["lang/js"],["md/browser",`${p}_${d}`]];e&&m.push([`api/${e}`,t]);const f=await(null==(o=null==r?void 0:r.userAgentAppId)?void 0:o.call(r));return f&&m.push([`app/${f}`]),m},Ty={os:e=>/iPhone|iPad|iPod/.test(e)?"iOS":/Macintosh|Mac OS X/.test(e)?"macOS":/Windows NT/.test(e)?"Windows":/Android/.test(e)?"Android":/Linux/.test(e)?"Linux":void 0,browser:e=>/EdgiOS|EdgA|Edg\//.test(e)?"Microsoft Edge":/Firefox\//.test(e)?"Firefox":/Chrome\//.test(e)?"Chrome":/Safari\//.test(e)?"Safari":void 0};class Ry{constructor(e){if(r(this,"bytes"),this.bytes=e,8!==e.byteLength)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>0x8000000000000000||e<-0x8000000000000000)throw new Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);const t=new Uint8Array(8);for(let r=7,n=Math.abs(Math.round(e));r>-1&&n>0;r--,n/=256)t[r]=n;return e<0&&Oy(t),new Ry(t)}valueOf(){const e=this.bytes.slice(0),t=128&e[0];return t&&Oy(e),parseInt(Gn(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}}function Oy(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,0===e[t]);t--);}class Py{constructor(e,t){r(this,"toUtf8"),r(this,"fromUtf8"),this.toUtf8=e,this.fromUtf8=t}format(e){const t=[];for(const i of Object.keys(e)){const r=this.fromUtf8(i);t.push(Uint8Array.from([r.byteLength]),r,this.formatHeaderValue(e[i]))}const r=new Uint8Array(t.reduce((e,t)=>e+t.byteLength,0));let n=0;for(const i of t)r.set(i,n),n+=i.byteLength;return r}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":const t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case"integer":const r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,e.value,!1),new Uint8Array(r.buffer);case"long":const n=new Uint8Array(9);return n[0]=5,n.set(e.value.bytes,1),n;case"binary":const i=new DataView(new ArrayBuffer(3+e.value.byteLength));i.setUint8(0,6),i.setUint16(1,e.value.byteLength,!1);const o=new Uint8Array(i.buffer);return o.set(e.value,3),o;case"string":const s=this.fromUtf8(e.value),a=new DataView(new ArrayBuffer(3+s.byteLength));a.setUint8(0,7),a.setUint16(1,s.byteLength,!1);const l=new Uint8Array(a.buffer);return l.set(s,3),l;case"timestamp":const c=new Uint8Array(9);return c[0]=8,c.set(Ry.fromNumber(e.value.valueOf()).bytes,1),c;case"uuid":if(!Hy.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);const u=new Uint8Array(17);return u[0]=9,u.set(Vn(e.value.replace(/\-/g,"")),1),u}}parse(e){const t={};let r=0;for(;r<e.byteLength;){const n=e.getUint8(r++),i=this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+r,n));switch(r+=n,e.getUint8(r++)){case 0:t[i]={type:Ay,value:!0};break;case 1:t[i]={type:Ay,value:!1};break;case 2:t[i]={type:Iy,value:e.getInt8(r++)};break;case 3:t[i]={type:My,value:e.getInt16(r,!1)},r+=2;break;case 4:t[i]={type:Dy,value:e.getInt32(r,!1)},r+=4;break;case 5:t[i]={type:zy,value:new Ry(new Uint8Array(e.buffer,e.byteOffset+r,8))},r+=8;break;case 6:const n=e.getUint16(r,!1);r+=2,t[i]={type:By,value:new Uint8Array(e.buffer,e.byteOffset+r,n)},r+=n;break;case 7:const o=e.getUint16(r,!1);r+=2,t[i]={type:Ly,value:this.toUtf8(new Uint8Array(e.buffer,e.byteOffset+r,o))},r+=o;break;case 8:t[i]={type:qy,value:new Date(new Ry(new Uint8Array(e.buffer,e.byteOffset+r,8)).valueOf())},r+=8;break;case 9:const s=new Uint8Array(e.buffer,e.byteOffset+r,16);r+=16,t[i]={type:Uy,value:`${Gn(s.subarray(0,4))}-${Gn(s.subarray(4,6))}-${Gn(s.subarray(6,8))}-${Gn(s.subarray(8,10))}-${Gn(s.subarray(10))}`};break;default:throw new Error("Unrecognized header type tag")}}return t}}var _y;!function(e){e[e.boolTrue=0]="boolTrue",e[e.boolFalse=1]="boolFalse",e[e.byte=2]="byte",e[e.short=3]="short",e[e.integer=4]="integer",e[e.long=5]="long",e[e.byteArray=6]="byteArray",e[e.string=7]="string",e[e.timestamp=8]="timestamp",e[e.uuid=9]="uuid"}(_y||(_y={}));const Ay="boolean",Iy="byte",My="short",Dy="integer",zy="long",By="binary",Ly="string",qy="timestamp",Uy="uuid",Hy=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;class Fy{constructor(e,t){r(this,"headerMarshaller"),r(this,"messageBuffer"),r(this,"isEndOfStream"),this.headerMarshaller=new Py(e,t),this.messageBuffer=[],this.isEndOfStream=!1}feed(e){this.messageBuffer.push(this.decode(e))}endOfStream(){this.isEndOfStream=!0}getMessage(){const e=this.messageBuffer.pop(),t=this.isEndOfStream;return{getMessage:()=>e,isEndOfStream:()=>t}}getAvailableMessages(){const e=this.messageBuffer;this.messageBuffer=[];const t=this.isEndOfStream;return{getMessages:()=>e,isEndOfStream:()=>t}}encode({headers:e,body:t}){const r=this.headerMarshaller.format(e),n=r.byteLength+t.byteLength+16,i=new Uint8Array(n),o=new DataView(i.buffer,i.byteOffset,i.byteLength),s=new Ws;return o.setUint32(0,n,!1),o.setUint32(4,r.byteLength,!1),o.setUint32(8,s.update(i.subarray(0,8)).digest(),!1),i.set(r,12),i.set(t,r.byteLength+12),o.setUint32(n-4,s.update(i.subarray(8,n-4)).digest(),!1),i}decode(e){const{headers:t,body:r}=function({byteLength:e,byteOffset:t,buffer:r}){if(e<16)throw new Error("Provided message too short to accommodate event stream message overhead");const n=new DataView(r,t,e),i=n.getUint32(0,!1);if(e!==i)throw new Error("Reported message length does not match received message length");const o=n.getUint32(4,!1),s=n.getUint32(8,!1),a=n.getUint32(e-4,!1),l=(new Ws).update(new Uint8Array(r,t,8));if(s!==l.digest())throw new Error(`The prelude checksum specified in the message (${s}) does not match the calculated CRC32 checksum (${l.digest()})`);if(l.update(new Uint8Array(r,t+8,e-12)),a!==l.digest())throw new Error(`The message checksum (${l.digest()}) did not match the expected value of ${a}`);return{headers:new DataView(r,t+8+4,o),body:new Uint8Array(r,t+8+4+o,i-o-16)}}(e);return{headers:this.headerMarshaller.parse(t),body:r}}formatHeaders(e){return this.headerMarshaller.format(e)}}class $y{constructor(e){r(this,"options"),this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(const e of this.options.inputStream){const t=this.options.decoder.decode(e);yield t}}}class Vy{constructor(e){r(this,"options"),this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(const e of this.options.messageStream){const t=this.options.encoder.encode(e);yield t}this.options.includeEndFrame&&(yield new Uint8Array(0))}}class Gy{constructor(e){r(this,"options"),this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(const e of this.options.messageStream){const t=await this.options.deserializer(e);void 0!==t&&(yield t)}}}class Wy{constructor(e){r(this,"options"),this.options=e}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(const e of this.options.inputStream){const t=this.options.serializer(e);yield t}}}function Ky(e,t){return async function(r){const{value:n}=r.headers[":message-type"];if("error"===n){const e=new Error(r.headers[":error-message"].value||"UnknownError");throw e.name=r.headers[":error-code"].value,e}if("exception"===n){const n=r.headers[":exception-type"].value,i={[n]:r},o=await e(i);if(o.$unknown){const e=new Error(t(r.body));throw e.name=n,e}throw o[n]}if("event"===n){const t={[r.headers[":event-type"].value]:r},n=await e(t);if(n.$unknown)return;return n}throw Error(`Unrecognizable event type: ${r.headers[":event-type"].value}`)}}let Xy=class{constructor({utf8Encoder:e,utf8Decoder:t}){r(this,"eventStreamCodec"),r(this,"utfEncoder"),this.eventStreamCodec=new Fy(e,t),this.utfEncoder=e}deserialize(e,t){const r=function(e){let t=0,r=0,n=null,i=null;const o=e=>{if("number"!=typeof e)throw new Error("Attempted to allocate an event message where size was not a number: "+e);t=e,r=4,n=new Uint8Array(e),new DataView(n.buffer).setUint32(0,e,!1)};return{[Symbol.asyncIterator]:async function*(){const s=e[Symbol.asyncIterator]();for(;;){const{value:e,done:a}=await s.next();if(a){if(!t)return;if(t!==r)throw new Error("Truncated event message received.");return void(yield n)}const l=e.length;let c=0;for(;c<l;){if(!n){const t=l-c;i||(i=new Uint8Array(4));const n=Math.min(4-r,t);if(i.set(e.slice(c,c+n),r),r+=n,c+=n,r<4)break;o(new DataView(i.buffer).getUint32(0,!1)),i=null}const s=Math.min(t-r,l-c);n.set(e.slice(c,c+s),r),r+=s,c+=s,t&&t===r&&(yield n,n=null,t=0,r=0)}}}}}(e);return new Gy({messageStream:new $y({inputStream:r,decoder:this.eventStreamCodec}),deserializer:Ky(t,this.utfEncoder)})}serialize(e,t){return new Vy({messageStream:new Wy({inputStream:e,serializer:t}),encoder:this.eventStreamCodec,includeEndFrame:!0})}};class Qy{constructor({utf8Encoder:e,utf8Decoder:t}){r(this,"universalMarshaller"),this.universalMarshaller=new Xy({utf8Decoder:t,utf8Encoder:e})}deserialize(e,t){const r=Yy(e)?(n=e,{[Symbol.asyncIterator]:async function*(){const e=n.getReader();try{for(;;){const{done:t,value:r}=await e.read();if(t)return;yield r}}finally{e.releaseLock()}}}):e;var n;return this.universalMarshaller.deserialize(r,t)}serialize(e,t){const r=this.universalMarshaller.serialize(e,t);return"function"==typeof ReadableStream?(e=>{const t=e[Symbol.asyncIterator]();return new ReadableStream({async pull(e){const{done:r,value:n}=await t.next();if(r)return e.close();e.enqueue(n)}})})(r):r}}const Yy=e=>"function"==typeof ReadableStream&&e instanceof ReadableStream,Jy=e=>new Qy(e);const Zy=async function(e,t){const r=new e;return await async function(e,t,r=1048576){const n=e.size;let i=0;for(;i<n;){const o=e.slice(i,Math.min(n,i+r));t(new Uint8Array(await o.arrayBuffer())),i+=o.size}}(t,e=>{r.update(e)}),r.digest()},eg=64,tg=[1732584193,4023233417,2562383102,271733878];class rg{constructor(){r(this,"state"),r(this,"buffer"),r(this,"bufferLength"),r(this,"bytesHashed"),r(this,"finished"),this.reset()}update(e){if(function(e){if("string"==typeof e)return 0===e.length;return 0===e.byteLength}(e))return;if(this.finished)throw new Error("Attempted to update an already finished hash.");const t=function(e){if("string"==typeof e)return wn(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array(e)}(e);let r=0,{byteLength:n}=t;for(this.bytesHashed+=n;n>0;)this.buffer.setUint8(this.bufferLength++,t[r++]),n--,this.bufferLength===eg&&(this.hashBuffer(),this.bufferLength=0)}async digest(){if(!this.finished){const{buffer:e,bufferLength:t,bytesHashed:r}=this,n=8*r;if(e.setUint8(this.bufferLength++,128),t%eg>=56){for(let t=this.bufferLength;t<eg;t++)e.setUint8(t,0);this.hashBuffer(),this.bufferLength=0}for(let i=this.bufferLength;i<56;i++)e.setUint8(i,0);e.setUint32(56,n>>>0,!0),e.setUint32(60,Math.floor(n/4294967296),!0),this.hashBuffer(),this.finished=!0}const e=new DataView(new ArrayBuffer(16));for(let t=0;t<4;t++)e.setUint32(4*t,this.state[t],!0);return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}hashBuffer(){const{buffer:e,state:t}=this;let r=t[0],n=t[1],i=t[2],o=t[3];r=ig(r,n,i,o,e.getUint32(0,!0),7,3614090360),o=ig(o,r,n,i,e.getUint32(4,!0),12,3905402710),i=ig(i,o,r,n,e.getUint32(8,!0),17,606105819),n=ig(n,i,o,r,e.getUint32(12,!0),22,3250441966),r=ig(r,n,i,o,e.getUint32(16,!0),7,4118548399),o=ig(o,r,n,i,e.getUint32(20,!0),12,1200080426),i=ig(i,o,r,n,e.getUint32(24,!0),17,2821735955),n=ig(n,i,o,r,e.getUint32(28,!0),22,4249261313),r=ig(r,n,i,o,e.getUint32(32,!0),7,1770035416),o=ig(o,r,n,i,e.getUint32(36,!0),12,2336552879),i=ig(i,o,r,n,e.getUint32(40,!0),17,4294925233),n=ig(n,i,o,r,e.getUint32(44,!0),22,2304563134),r=ig(r,n,i,o,e.getUint32(48,!0),7,1804603682),o=ig(o,r,n,i,e.getUint32(52,!0),12,4254626195),i=ig(i,o,r,n,e.getUint32(56,!0),17,2792965006),n=ig(n,i,o,r,e.getUint32(60,!0),22,1236535329),r=og(r,n,i,o,e.getUint32(4,!0),5,4129170786),o=og(o,r,n,i,e.getUint32(24,!0),9,3225465664),i=og(i,o,r,n,e.getUint32(44,!0),14,643717713),n=og(n,i,o,r,e.getUint32(0,!0),20,3921069994),r=og(r,n,i,o,e.getUint32(20,!0),5,3593408605),o=og(o,r,n,i,e.getUint32(40,!0),9,38016083),i=og(i,o,r,n,e.getUint32(60,!0),14,3634488961),n=og(n,i,o,r,e.getUint32(16,!0),20,3889429448),r=og(r,n,i,o,e.getUint32(36,!0),5,568446438),o=og(o,r,n,i,e.getUint32(56,!0),9,3275163606),i=og(i,o,r,n,e.getUint32(12,!0),14,4107603335),n=og(n,i,o,r,e.getUint32(32,!0),20,1163531501),r=og(r,n,i,o,e.getUint32(52,!0),5,2850285829),o=og(o,r,n,i,e.getUint32(8,!0),9,4243563512),i=og(i,o,r,n,e.getUint32(28,!0),14,1735328473),n=og(n,i,o,r,e.getUint32(48,!0),20,2368359562),r=sg(r,n,i,o,e.getUint32(20,!0),4,4294588738),o=sg(o,r,n,i,e.getUint32(32,!0),11,2272392833),i=sg(i,o,r,n,e.getUint32(44,!0),16,1839030562),n=sg(n,i,o,r,e.getUint32(56,!0),23,4259657740),r=sg(r,n,i,o,e.getUint32(4,!0),4,2763975236),o=sg(o,r,n,i,e.getUint32(16,!0),11,1272893353),i=sg(i,o,r,n,e.getUint32(28,!0),16,4139469664),n=sg(n,i,o,r,e.getUint32(40,!0),23,3200236656),r=sg(r,n,i,o,e.getUint32(52,!0),4,681279174),o=sg(o,r,n,i,e.getUint32(0,!0),11,3936430074),i=sg(i,o,r,n,e.getUint32(12,!0),16,3572445317),n=sg(n,i,o,r,e.getUint32(24,!0),23,76029189),r=sg(r,n,i,o,e.getUint32(36,!0),4,3654602809),o=sg(o,r,n,i,e.getUint32(48,!0),11,3873151461),i=sg(i,o,r,n,e.getUint32(60,!0),16,530742520),n=sg(n,i,o,r,e.getUint32(8,!0),23,3299628645),r=ag(r,n,i,o,e.getUint32(0,!0),6,4096336452),o=ag(o,r,n,i,e.getUint32(28,!0),10,1126891415),i=ag(i,o,r,n,e.getUint32(56,!0),15,2878612391),n=ag(n,i,o,r,e.getUint32(20,!0),21,4237533241),r=ag(r,n,i,o,e.getUint32(48,!0),6,1700485571),o=ag(o,r,n,i,e.getUint32(12,!0),10,2399980690),i=ag(i,o,r,n,e.getUint32(40,!0),15,4293915773),n=ag(n,i,o,r,e.getUint32(4,!0),21,2240044497),r=ag(r,n,i,o,e.getUint32(32,!0),6,1873313359),o=ag(o,r,n,i,e.getUint32(60,!0),10,4264355552),i=ag(i,o,r,n,e.getUint32(24,!0),15,2734768916),n=ag(n,i,o,r,e.getUint32(52,!0),21,1309151649),r=ag(r,n,i,o,e.getUint32(16,!0),6,4149444226),o=ag(o,r,n,i,e.getUint32(44,!0),10,3174756917),i=ag(i,o,r,n,e.getUint32(8,!0),15,718787259),n=ag(n,i,o,r,e.getUint32(36,!0),21,3951481745),t[0]=r+t[0]&4294967295,t[1]=n+t[1]&4294967295,t[2]=i+t[2]&4294967295,t[3]=o+t[3]&4294967295}reset(){this.state=Uint32Array.from(tg),this.buffer=new DataView(new ArrayBuffer(eg)),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}}function ng(e,t,r,n,i,o){return((t=(t+e&4294967295)+(n+o&4294967295)&4294967295)<<i|t>>>32-i)+r&4294967295}function ig(e,t,r,n,i,o,s){return ng(t&r|~t&n,e,t,i,o,s)}function og(e,t,r,n,i,o,s){return ng(t&n|r&~n,e,t,i,o,s)}function sg(e,t,r,n,i,o,s){return ng(t^r^n,e,t,i,o,s)}function ag(e,t,r,n,i,o,s){return ng(r^(t|~n),e,t,i,o,s)}const lg=["in-region","cross-region","mobile","standard","legacy"],cg=()=>{var e;const t=null==window?void 0:window.navigator;if(null==t?void 0:t.connection){const{effectiveType:e,rtt:r,downlink:n}=null==t?void 0:t.connection;if("string"==typeof e&&"4g"!==e||Number(r)>100||Number(n)<10)return!0}return(null==(e=null==t?void 0:t.userAgentData)?void 0:e.mobile)||"number"==typeof(null==t?void 0:t.maxTouchPoints)&&(null==t?void 0:t.maxTouchPoints)>1},ug=e=>{const t=(({defaultsMode:e}={})=>eo(async()=>{const t="function"==typeof e?await e():e;switch(null==t?void 0:t.toLowerCase()){case"auto":return Promise.resolve(cg()?"mobile":"standard");case"mobile":case"in-region":case"cross-region":case"standard":case"legacy":return Promise.resolve(null==t?void 0:t.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${lg.join(", ")}, got ${t}`)}}))(e),r=()=>t().then(Xo),n=(e=>({apiVersion:"2006-03-01",base64Decoder:(null==e?void 0:e.base64Decoder)??xn,base64Encoder:(null==e?void 0:e.base64Encoder)??jn,disableHostPrefix:(null==e?void 0:e.disableHostPrefix)??!1,endpointProvider:(null==e?void 0:e.endpointProvider)??Bd,extensions:(null==e?void 0:e.extensions)??[],getAwsChunkedEncodingStream:(null==e?void 0:e.getAwsChunkedEncodingStream)??In,httpAuthSchemeProvider:(null==e?void 0:e.httpAuthSchemeProvider)??Fd,httpAuthSchemes:(null==e?void 0:e.httpAuthSchemes)??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new sn},{schemeId:"aws.auth#sigv4a",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4a"),signer:new an}],logger:(null==e?void 0:e.logger)??new es,protocol:(null==e?void 0:e.protocol)??hs,protocolSettings:(null==e?void 0:e.protocolSettings)??{defaultNamespace:"com.amazonaws.s3",errorTypeRegistries:Rh,xmlNamespace:"http://s3.amazonaws.com/doc/2006-03-01/",version:"2006-03-01",serviceTarget:"AmazonS3"},sdkStreamMixin:(null==e?void 0:e.sdkStreamMixin)??Kn,serviceId:(null==e?void 0:e.serviceId)??"S3",signerConstructor:(null==e?void 0:e.signerConstructor)??uc,signingEscapePath:(null==e?void 0:e.signingEscapePath)??!1,urlParser:(null==e?void 0:e.urlParser)??ti,useArnRegion:(null==e?void 0:e.useArnRegion)??void 0,utf8Decoder:(null==e?void 0:e.utf8Decoder)??wn,utf8Encoder:(null==e?void 0:e.utf8Encoder)??Nn}))(e);return{...n,...e,runtime:"browser",defaultsMode:t,bodyLengthChecker:(null==e?void 0:e.bodyLengthChecker)??Do,credentialDefaultProvider:(null==e?void 0:e.credentialDefaultProvider)??(e=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:(null==e?void 0:e.defaultUserAgentProvider)??ky({serviceId:n.serviceId,clientVersion:iy}),eventStreamSerdeProvider:(null==e?void 0:e.eventStreamSerdeProvider)??Jy,maxAttempts:(null==e?void 0:e.maxAttempts)??3,md5:(null==e?void 0:e.md5)??rg,region:(null==e?void 0:e.region)??(i="Region is missing",()=>Promise.reject(i)),requestHandler:qn.create((null==e?void 0:e.requestHandler)??r),retryMode:(null==e?void 0:e.retryMode)??(async()=>(await r()).retryMode||yl),sha1:(null==e?void 0:e.sha1)??hy,sha256:(null==e?void 0:e.sha256)??Cy,streamCollector:(null==e?void 0:e.streamCollector)??Hn,streamHasher:(null==e?void 0:e.streamHasher)??Zy,useDualstackEndpoint:(null==e?void 0:e.useDualstackEndpoint)??(()=>Promise.resolve(false)),useFipsEndpoint:(null==e?void 0:e.useFipsEndpoint)??(()=>Promise.resolve(false))};var i};class pg extends Ho{constructor(...[e]){const t=ug(e||{});super(t),r(this,"config"),this.initConfig=t;var n;const i=function(e){const t=yn(e.userAgentAppId??void 0),{customUserAgent:r}=e;return Object.assign(e,{customUserAgent:"string"==typeof r?[[r]]:r,userAgentAppId:async()=>{var r,n;const i=await t();if(!function(e){return void 0===e||"string"==typeof e&&e.length<=50}(i)){const t="NoOpLogger"!==(null==(n=null==(r=e.logger)?void 0:r.constructor)?void 0:n.name)&&e.logger?e.logger:console;"string"!=typeof i?null==t||t.warn("userAgentAppId must be a string or undefined."):i.length>50&&(null==t||t.warn("The provided userAgentAppId exceeds the maximum length of 50 characters."))}return i}})}((n=t,Object.assign(n,{useFipsEndpoint:n.useFipsEndpoint??!1,useDualstackEndpoint:n.useDualstackEndpoint??!1,forcePathStyle:n.forcePathStyle??!1,useAccelerateEndpoint:n.useAccelerateEndpoint??!1,useGlobalEndpoint:n.useGlobalEndpoint??!1,disableMultiregionAccessPoints:n.disableMultiregionAccessPoints??!1,defaultSigningName:"s3",clientContextParams:n.clientContextParams??{}}))),o=(e=>{const{requestChecksumCalculation:t,responseChecksumValidation:r,requestStreamBufferSize:n}=e;return Object.assign(e,{requestChecksumCalculation:cn(t??$r),responseChecksumValidation:cn(r??Wr),requestStreamBufferSize:Number(n??0),checksumAlgorithms:e.checksumAlgorithms??{}})})(i),s=rc(o),a=(e=>{const t=e.tls??!0,{endpoint:r,useDualstackEndpoint:n,useFipsEndpoint:i}=e,o=null!=r?async()=>Ql(await cn(r)()):void 0,s=!!r,a=Object.assign(e,{endpoint:o,tls:t,isCustomEndpoint:s,useDualstackEndpoint:cn(n??!1),useFipsEndpoint:cn(i??!1)});let l;return a.serviceConfiguredEndpoint=async()=>(e.serviceId&&!l&&(l=Xl(e.serviceId)),l),a})(Ll(s)),l=(c=a,Object.assign(c,{eventStreamMarshaller:c.eventStreamSerdeProvider(c)}));var c;const u=((e,{session:t})=>{const[r,n]=t,{forcePathStyle:i,useAccelerateEndpoint:o,disableMultiregionAccessPoints:s,followRegionRedirects:a,s3ExpressIdentityProvider:l,bucketEndpoint:c,expectContinueHeader:u}=e;return Object.assign(e,{forcePathStyle:i??!1,useAccelerateEndpoint:o??!1,disableMultiregionAccessPoints:s??!1,followRegionRedirects:a??!1,s3ExpressIdentityProvider:l??new xa(async e=>r().send(new n({Bucket:e}))),bucketEndpoint:c??!1,expectContinueHeader:u??2097152})})(Wd(l),{session:[()=>this,ny]}),p=((e,t)=>{const r=Object.assign((e=>({setRegion(t){e.region=t},region:()=>e.region}))(e),Yo(e),(e=>({setHttpHandler(t){e.httpHandler=t},httpHandler:()=>e.httpHandler,updateHttpClientConfig(t,r){var n;null==(n=e.httpHandler)||n.updateHttpClientConfig(t,r)},httpHandlerConfigs:()=>e.httpHandler.httpHandlerConfigs()}))(e),(e=>{const t=e.httpAuthSchemes;let r=e.httpAuthSchemeProvider,n=e.credentials;return{setHttpAuthScheme(e){const r=t.findIndex(t=>t.schemeId===e.schemeId);-1===r?t.push(e):t.splice(r,1,e)},httpAuthSchemes:()=>t,setHttpAuthSchemeProvider(e){r=e},httpAuthSchemeProvider:()=>r,setCredentials(e){n=e},credentials:()=>n}})(e));return t.forEach(e=>e.configure(r)),Object.assign(e,{region:r.region()},Jo(r),{httpHandler:r.httpHandler()},{httpAuthSchemes:(n=r).httpAuthSchemes(),httpAuthSchemeProvider:n.httpAuthSchemeProvider(),credentials:n.credentials()});var n})(u,(null==e?void 0:e.extensions)||[]);var d;this.config=p,this.middlewareStack.use(oi(this.config)),this.middlewareStack.use((d=this.config,{applyToStack:e=>{e.add(Il(d),Dl)}})),this.middlewareStack.use(lc(this.config)),this.middlewareStack.use(Hl(this.config)),this.middlewareStack.use(la(this.config)),this.middlewareStack.use((this.config,{applyToStack:e=>{e.add((e,t)=>async r=>{var n,i;try{const i=await e(r),{clientName:o,commandName:s,logger:a,dynamoDbDocumentClientOptions:l={}}=t,{overrideInputFilterSensitiveLog:c,overrideOutputFilterSensitiveLog:u}=l,p=c??t.inputFilterSensitiveLog,d=u??t.outputFilterSensitiveLog,{$metadata:m,...f}=i.output;return null==(n=null==a?void 0:a.info)||n.call(a,{clientName:o,commandName:s,input:p(r.input),output:d(f),metadata:m}),i}catch(o){const{clientName:e,commandName:n,logger:s,dynamoDbDocumentClientOptions:a={}}=t,{overrideInputFilterSensitiveLog:l}=a,c=l??t.inputFilterSensitiveLog;throw null==(i=null==s?void 0:s.error)||i.call(s,{clientName:e,commandName:n,input:c(r.input),error:o,metadata:o.$metadata}),o}},ca)}})),this.middlewareStack.use((this.config,{applyToStack:e=>{e.add(e=>async t=>e(t),ua)}})),this.middlewareStack.use(((e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:r})=>({applyToStack:n=>{n.addRelativeTo(un(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:r}),pn)}}))(this.config,{httpAuthSchemeParametersProvider:Ld,identityProviderConfigProvider:async e=>new Qi({"aws.auth#sigv4":e.credentials,"aws.auth#sigv4a":e.credentials})})),this.middlewareStack.use(hn(this.config)),this.middlewareStack.use(Ba(this.config)),this.middlewareStack.use(Ur(this.config)),this.middlewareStack.use(ha(this.config)),this.middlewareStack.use(ka(this.config)),this.middlewareStack.use((e=>({applyToStack:t=>{t.addRelativeTo(Oa(e),fn)}}))(this.config))}destroy(){super.destroy()}}class dg extends(Vo.classBuilder().ep({...Kd,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m(function(e,t,r,n){return[ec(r,e.getEndpointParameterInstructions()),Ma(r)]}).s("AmazonS3","AbortMultipartUpload",{}).n("S3Client","AbortMultipartUploadCommand").sc(Yh).build()){}const mg={name:"ssecMiddleware",step:"initialize",tags:["SSE"],override:!0},fg=e=>({applyToStack:t=>{var r;t.add((r=e,e=>async t=>{const n={...t.input},i=[{target:"SSECustomerKey",hash:"SSECustomerKeyMD5"},{target:"CopySourceSSECustomerKey",hash:"CopySourceSSECustomerKeyMD5"}];for(const e of i){const t=n[e.target];if(t){let i;"string"==typeof t?hg(t,r)?i=r.base64Decoder(t):(i=r.utf8Decoder(t),n[e.target]=r.base64Encoder(i)):(i=ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength):new Uint8Array(t),n[e.target]=r.base64Encoder(i));const o=new r.md5;o.update(i),n[e.hash]=r.base64Encoder(await o.digest())}}return e({...t,input:n})}),mg)}});function hg(e,t){if(!/^(?:[A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e))return!1;try{return 32===t.base64Decoder(e).length}catch{return!1}}class yg extends(Vo.classBuilder().ep({...Kd,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m(function(e,t,r,n){return[ec(r,e.getEndpointParameterInstructions()),Ma(r),fg(r)]}).s("AmazonS3","CompleteMultipartUpload",{}).n("S3Client","CompleteMultipartUploadCommand").sc(Jh).build()){}class gg extends(Vo.classBuilder().ep({...Kd,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m(function(e,t,r,n){return[ec(r,e.getEndpointParameterInstructions()),Ma(r),fg(r)]}).s("AmazonS3","CreateMultipartUpload",{}).n("S3Client","CreateMultipartUploadCommand").sc(Zh).build()){}class bg extends(Vo.classBuilder().ep({...Kd,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m(function(e,t,r,n){return[ec(r,e.getEndpointParameterInstructions()),sa(r,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!1}),da(),Ma(r),fg(r)]}).s("AmazonS3","PutObject",{}).n("S3Client","PutObjectCommand").sc(ty).build()){}class vg extends(Vo.classBuilder().ep({...Kd,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m(function(e,t,r,n){return[ec(r,e.getEndpointParameterInstructions()),sa(r,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!1}),Ma(r),fg(r)]}).s("AmazonS3","UploadPart",{}).n("S3Client","UploadPartCommand").sc(ry).build()){}const xg=new WeakMap,wg=new WeakMap;class Sg{constructor(){this.onabort=null,xg.set(this,[]),wg.set(this,!1)}get aborted(){if(!wg.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return wg.get(this)}static get none(){return new Sg}addEventListener(e,t){if(!xg.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");xg.get(this).push(t)}removeEventListener(e,t){if(!xg.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");const r=xg.get(this),n=r.indexOf(t);n>-1&&r.splice(n,1)}dispatchEvent(e){throw new Error("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.")}}function Ng(e){if(e.aborted)return;e.onabort&&e.onabort.call(e);const t=xg.get(e);t&&t.slice().forEach(t=>{t.call(e,{type:"abort"})}),wg.set(e,!0)}let jg=class extends Error{constructor(e){super(e),this.name="AbortError"}},Eg=class{constructor(e){if(this._signal=new Sg,e){Array.isArray(e)||(e=arguments);for(const t of e)t.aborted?this.abort():t.addEventListener("abort",()=>{this.abort()})}}get signal(){return this._signal}abort(){Ng(this._signal)}static timeout(e){const t=new Sg,r=setTimeout(Ng,e,t);return"function"==typeof r.unref&&r.unref(),t}};function Cg(e){return e.toLowerCase()}function kg(e){if(e&&"object"==typeof e){const t=e;if("function"==typeof t.rawHeaders&&"function"==typeof t.clone&&"function"==typeof t.get&&"function"==typeof t.set&&"function"==typeof t.contains&&"function"==typeof t.remove&&"function"==typeof t.headersArray&&"function"==typeof t.headerValues&&"function"==typeof t.headerNames&&"function"==typeof t.toJson)return!0}return!1}class Tg{constructor(e){if(this._headersMap={},e)for(const t in e)this.set(t,e[t])}set(e,t){this._headersMap[Cg(e)]={name:e,value:t.toString().trim()}}get(e){const t=this._headersMap[Cg(e)];return t?t.value:void 0}contains(e){return!!this._headersMap[Cg(e)]}remove(e){const t=this.contains(e);return delete this._headersMap[Cg(e)],t}rawHeaders(){return this.toJson({preserveCase:!0})}headersArray(){const e=[];for(const t in this._headersMap)e.push(this._headersMap[t]);return e}headerNames(){const e=[],t=this.headersArray();for(let r=0;r<t.length;++r)e.push(t[r].name);return e}headerValues(){const e=[],t=this.headersArray();for(let r=0;r<t.length;++r)e.push(t[r].value);return e}toJson(e={}){const t={};if(e.preserveCase)for(const r in this._headersMap){const e=this._headersMap[r];t[e.name]=e.value}else for(const r in this._headersMap){const e=this._headersMap[r];t[Cg(e.name)]=e.value}return t}toString(){return JSON.stringify(this.toJson({preserveCase:!0}))}clone(){const e={};for(const t in this._headersMap){const r=this._headersMap[t];e[r.name]=r.value}return new Tg(e)}}function Rg(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function Og(e){const t=atob(e),r=new Uint8Array(t.length);for(let n=0;n<t.length;n++)r[n]=t.charCodeAt(n);return r}const Pg="3.0.5",_g={StatusCodes:{TooManyRequests:429,ServiceUnavailable:503}},Ag={AUTHORIZATION:"authorization",RETRY_AFTER:"Retry-After"},Ig="$",Mg="_";var Dg,zg=new Uint8Array(16);function Bg(){if(!Dg&&!(Dg="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Dg(zg)}const Lg=/^(?:[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;for(var qg=[],Ug=0;Ug<256;++Ug)qg.push((Ug+256).toString(16).substr(1));function Hg(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(qg[e[t+0]]+qg[e[t+1]]+qg[e[t+2]]+qg[e[t+3]]+"-"+qg[e[t+4]]+qg[e[t+5]]+"-"+qg[e[t+6]]+qg[e[t+7]]+"-"+qg[e[t+8]]+qg[e[t+9]]+"-"+qg[e[t+10]]+qg[e[t+11]]+qg[e[t+12]]+qg[e[t+13]]+qg[e[t+14]]+qg[e[t+15]]).toLowerCase();if(!function(e){return"string"==typeof e&&Lg.test(e)}(r))throw TypeError("Stringified UUID is invalid");return r}function Fg(e,t,r){var n=(e=e||{}).random||(e.rng||Bg)();return n[6]=15&n[6]|64,n[8]=63&n[8]|128,Hg(n)}const $g=/^[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 Vg(){return Fg()}const Gg=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Wg(e,t,r){return e&&t?e.split(t).join(r||""):e}class Kg{constructor(e={},t){this.modelMappers=e,this.isXML=t}validateConstraints(e,t,r){const n=(e,n)=>{throw new Error(`"${r}" with value "${t}" should satisfy the constraint "${e}": ${n}.`)};if(e.constraints&&null!=t){const r=t,{ExclusiveMaximum:i,ExclusiveMinimum:o,InclusiveMaximum:s,InclusiveMinimum:a,MaxItems:l,MaxLength:c,MinItems:u,MinLength:p,MultipleOf:d,Pattern:m,UniqueItems:f}=e.constraints;null!=i&&r>=i&&n("ExclusiveMaximum",i),null!=o&&r<=o&&n("ExclusiveMinimum",o),null!=s&&r>s&&n("InclusiveMaximum",s),null!=a&&r<a&&n("InclusiveMinimum",a);const h=t;if(null!=l&&h.length>l&&n("MaxItems",l),null!=c&&h.length>c&&n("MaxLength",c),null!=u&&h.length<u&&n("MinItems",u),null!=p&&h.length<p&&n("MinLength",p),null!=d&&r%d!==0&&n("MultipleOf",d),m){const e="string"==typeof m?new RegExp(m):m;"string"==typeof t&&null!==t.match(e)||n("Pattern",m)}f&&h.some((e,t,r)=>r.indexOf(e)!==t)&&n("UniqueItems",f)}}serialize(e,t,r,n={}){var i,o,s;const a={rootName:null!==(i=n.rootName)&&void 0!==i?i:"",includeRoot:null!==(o=n.includeRoot)&&void 0!==o&&o,xmlCharKey:null!==(s=n.xmlCharKey)&&void 0!==s?s:Mg};let l={};const c=e.type.name;r||(r=e.serializedName),null!==c.match(/^Sequence$/i)&&(l=[]),e.isConstant&&(t=e.defaultValue);const{required:u,nullable:p}=e;if(u&&p&&void 0===t)throw new Error(`${r} cannot be undefined.`);if(u&&!p&&null==t)throw new Error(`${r} cannot be null or undefined.`);if(!u&&!1===p&&null===t)throw new Error(`${r} cannot be null.`);if(null==t)l=t;else if(null!==c.match(/^any$/i))l=t;else if(null!==c.match(/^(Number|String|Boolean|Object|Stream|Uuid)$/i))l=function(e,t,r){if(null!=r)if(null!==e.match(/^Number$/i)){if("number"!=typeof r)throw new Error(`${t} with value ${r} must be of type number.`)}else if(null!==e.match(/^String$/i)){if("string"!=typeof r.valueOf())throw new Error(`${t} with value "${r}" must be of type string.`)}else if(null!==e.match(/^Uuid$/i)){if("string"!=typeof r.valueOf()||(n=r,!$g.test(n)))throw new Error(`${t} with value "${r}" must be of type string and a valid uuid.`)}else if(null!==e.match(/^Boolean$/i)){if("boolean"!=typeof r)throw new Error(`${t} with value ${r} must be of type boolean.`)}else if(null!==e.match(/^Stream$/i)){const e=typeof r;if(!("string"===e||"function"===e||r instanceof ArrayBuffer||ArrayBuffer.isView(r)||("function"==typeof Blob||"object"==typeof Blob)&&r instanceof Blob))throw new Error(`${t} must be a string, Blob, ArrayBuffer, ArrayBufferView, or a function returning NodeJS.ReadableStream.`)}var n;return r}(c,r,t);else if(null!==c.match(/^Enum$/i)){l=function(e,t,r){if(!t)throw new Error(`Please provide a set of allowedValues to validate ${e} as an Enum Type.`);if(!t.some(e=>"string"==typeof e.valueOf()?e.toLowerCase()===r.toLowerCase():e===r))throw new Error(`${r} is not a valid value for ${e}. The valid values are: ${JSON.stringify(t)}.`);return r}(r,e.type.allowedValues,t)}else null!==c.match(/^(Date|DateTime|TimeSpan|DateTimeRfc1123|UnixTime)$/i)?l=function(e,t,r){if(null!=t)if(null!==e.match(/^Date$/i)){if(!(t instanceof Date||"string"==typeof t.valueOf()&&!isNaN(Date.parse(t))))throw new Error(`${r} must be an instanceof Date or a string in ISO8601 format.`);t=t instanceof Date?t.toISOString().substring(0,10):new Date(t).toISOString().substring(0,10)}else if(null!==e.match(/^DateTime$/i)){if(!(t instanceof Date||"string"==typeof t.valueOf()&&!isNaN(Date.parse(t))))throw new Error(`${r} must be an instanceof Date or a string in ISO8601 format.`);t=t instanceof Date?t.toISOString():new Date(t).toISOString()}else if(null!==e.match(/^DateTimeRfc1123$/i)){if(!(t instanceof Date||"string"==typeof t.valueOf()&&!isNaN(Date.parse(t))))throw new Error(`${r} must be an instanceof Date or a string in RFC-1123 format.`);t=t instanceof Date?t.toUTCString():new Date(t).toUTCString()}else if(null!==e.match(/^UnixTime$/i)){if(!(t instanceof Date||"string"==typeof t.valueOf()&&!isNaN(Date.parse(t))))throw new Error(`${r} must be an instanceof Date or a string in RFC-1123/ISO8601 format for it to be serialized in UnixTime/Epoch format.`);t=function(e){if(!e)return;"string"==typeof e.valueOf()&&(e=new Date(e));return Math.floor(e.getTime()/1e3)}(t)}else if(null!==e.match(/^TimeSpan$/i)&&!function(e){return Gg.test(e)}(t))throw new Error(`${r} must be a string in ISO 8601 format. Instead was "${t}".`);return t}(c,t,r):null!==c.match(/^ByteArray$/i)?l=function(e,t){let r="";if(null!=t){if(!(t instanceof Uint8Array))throw new Error(`${e} must be of type Uint8Array.`);r=Rg(t)}return r}(r,t):null!==c.match(/^Base64Url$/i)?l=function(e,t){let r="";if(null!=t){if(!(t instanceof Uint8Array))throw new Error(`${e} must be of type Uint8Array.`);r=function(e){if(!e)return;if(!(e instanceof Uint8Array))throw new Error("Please provide an input of type Uint8Array for converting to Base64Url.");return function(e,t){let r=e.length;for(;r-1>=0&&e[r-1]===t;)--r;return e.substr(0,r)}(Rg(e),"=").replace(/\+/g,"-").replace(/\//g,"_")}(t)||""}return r}(r,t):null!==c.match(/^Sequence$/i)?l=function(e,t,r,n,i,o){if(!Array.isArray(r))throw new Error(`${n} must be of type Array.`);const s=t.type.element;if(!s||"object"!=typeof s)throw new Error(`element" metadata for an Array must be defined in the mapper and it must of type "object" in ${n}.`);const a=[];for(let l=0;l<r.length;l++){const t=e.serialize(s,r[l],n,o);if(i&&s.xmlNamespace){const e=s.xmlNamespacePrefix?`xmlns:${s.xmlNamespacePrefix}`:"xmlns";"Composite"===s.type.name?(a[l]=Object.assign({},t),a[l][Ig]={[e]:s.xmlNamespace}):(a[l]={},a[l][o.xmlCharKey]=t,a[l][Ig]={[e]:s.xmlNamespace})}else a[l]=t}return a}(this,e,t,r,Boolean(this.isXML),a):null!==c.match(/^Dictionary$/i)?l=function(e,t,r,n,i,o){if("object"!=typeof r)throw new Error(`${n} must be of type object.`);const s=t.type.value;if(!s||"object"!=typeof s)throw new Error(`"value" metadata for a Dictionary must be defined in the mapper and it must of type "object" in ${n}.`);const a={};for(const l of Object.keys(r)){const t=e.serialize(s,r[l],n,o);a[l]=Jg(s,t,i,o)}if(i&&t.xmlNamespace){const e=t.xmlNamespacePrefix?`xmlns:${t.xmlNamespacePrefix}`:"xmlns",r=a;return r[Ig]={[e]:t.xmlNamespace},r}return a}(this,e,t,r,Boolean(this.isXML),a):null!==c.match(/^Composite$/i)&&(l=function(e,t,r,n,i,o){tb(e,t)&&(t=eb(e,t,r,"clientName"));if(null!=r){const s={},a=Yg(e,t,n);for(const c of Object.keys(a)){const l=a[c];if(l.readOnly)continue;let u,p=s;if(e.isXML)u=l.xmlIsWrapped?l.xmlName:l.xmlElementName||l.xmlName;else{const e=Xg(l.serializedName);u=e.pop();for(const t of e){null!=p[t]||null==r[c]&&void 0===l.defaultValue||(p[t]={}),p=p[t]}}if(null!=p){if(i&&t.xmlNamespace){const e=t.xmlNamespacePrefix?`xmlns:${t.xmlNamespacePrefix}`:"xmlns";p[Ig]=Object.assign(Object.assign({},p[Ig]),{[e]:t.xmlNamespace})}const s=""!==l.serializedName?n+"."+l.serializedName:n;let a=r[c];const d=tb(e,t);d&&d.clientName===c&&null==a&&(a=t.serializedName);const m=e.serialize(l,a,s,o);if(void 0!==m&&null!=u){const e=Jg(l,m,i,o);i&&l.xmlIsAttribute?(p[Ig]=p[Ig]||{},p[Ig][u]=m):i&&l.xmlIsWrapped?p[u]={[l.xmlElementName]:e}:p[u]=e}}}const l=function(e,t,r){const n=t.type.additionalProperties;if(!n&&t.type.className){const n=Qg(e,t,r);return null==n?void 0:n.type.additionalProperties}return n}(e,t,n);if(l){const t=Object.keys(a);for(const i in r){t.every(e=>e!==i)&&(s[i]=e.serialize(l,r[i],n+'["'+i+'"]',o))}}return s}return r}(this,e,t,r,Boolean(this.isXML),a));return l}deserialize(e,t,r,n={}){var i,o,s;const a={rootName:null!==(i=n.rootName)&&void 0!==i?i:"",includeRoot:null!==(o=n.includeRoot)&&void 0!==o&&o,xmlCharKey:null!==(s=n.xmlCharKey)&&void 0!==s?s:Mg};if(null==t)return this.isXML&&"Sequence"===e.type.name&&!e.xmlIsWrapped&&(t=[]),void 0!==e.defaultValue&&(t=e.defaultValue),t;let l;const c=e.type.name;if(r||(r=e.serializedName),null!==c.match(/^Composite$/i))l=function(e,t,r,n,i){var o,s;const a=null!==(o=i.xmlCharKey)&&void 0!==o?o:Mg;tb(e,t)&&(t=eb(e,t,r,"serializedName"));const l=Yg(e,t,n);let c={};const u=[];for(const d of Object.keys(l)){const o=l[d],p=Xg(l[d].serializedName);u.push(p[0]);const{serializedName:m,xmlName:f,xmlElementName:h}=o;let y=n;""!==m&&void 0!==m&&(y=n+"."+m);const g=o.headerCollectionPrefix;if(g){const t={};for(const n of Object.keys(r))n.startsWith(g)&&(t[n.substring(g.length)]=e.deserialize(o.type.value,r[n],y,i)),u.push(n);c[d]=t}else if(e.isXML)if(o.xmlIsAttribute&&r[Ig])c[d]=e.deserialize(o,r[Ig][f],y,i);else if(o.xmlIsMsText)void 0!==r[a]?c[d]=r[a]:"string"==typeof r&&(c[d]=r);else{const t=h||f||m;if(o.xmlIsWrapped){const t=r[f],n=null!==(s=null==t?void 0:t[h])&&void 0!==s?s:[];c[d]=e.deserialize(o,n,y,i),u.push(f)}else{const n=r[t];c[d]=e.deserialize(o,n,y,i),u.push(t)}}else{let n,s=r;for(const e of p){if(!s)break;s=s[e]}n=s;const a=t.type.polymorphicDiscriminator;let u;if(a&&d===a.clientName&&null==n&&(n=t.serializedName),Array.isArray(r[d])&&""===l[d].serializedName){n=r[d];const t=e.deserialize(o,n,y,i);for(const[e,r]of Object.entries(c))Object.prototype.hasOwnProperty.call(t,e)||(t[e]=r);c=t}else void 0===n&&void 0===o.defaultValue||(u=e.deserialize(o,n,y,i),c[d]=u)}}const p=t.type.additionalProperties;if(p){const t=e=>{for(const t in l){if(Xg(l[t].serializedName)[0]===e)return!1}return!0};for(const o in r)t(o)&&(c[o]=e.deserialize(p,r[o],n+'["'+o+'"]',i))}else if(r)for(const d of Object.keys(r))void 0!==c[d]||u.includes(d)||Zg(d,i)||(c[d]=r[d]);return c}(this,e,t,r,a);else{if(this.isXML){const e=a.xmlCharKey,r=t;null!=r[Ig]&&null!=r[e]&&(t=r[e])}null!==c.match(/^Number$/i)?(l=parseFloat(t),isNaN(l)&&(l=t)):null!==c.match(/^Boolean$/i)?l="true"===t||"false"!==t&&t:null!==c.match(/^(String|Enum|Object|Stream|Uuid|TimeSpan|any)$/i)?l=t:null!==c.match(/^(Date|DateTime|DateTimeRfc1123)$/i)?l=new Date(t):null!==c.match(/^UnixTime$/i)?l=function(e){if(!e)return;return new Date(1e3*e)}(t):null!==c.match(/^ByteArray$/i)?l=Og(t):null!==c.match(/^Base64Url$/i)?l=function(e){if(!e)return;if(e&&"string"!=typeof e.valueOf())throw new Error("Please provide an input of type string for converting to Uint8Array");return Og(e=e.replace(/-/g,"+").replace(/_/g,"/"))}(t):null!==c.match(/^Sequence$/i)?l=function(e,t,r,n,i){const o=t.type.element;if(!o||"object"!=typeof o)throw new Error(`element" metadata for an Array must be defined in the mapper and it must of type "object" in ${n}`);if(r){Array.isArray(r)||(r=[r]);const t=[];for(let s=0;s<r.length;s++)t[s]=e.deserialize(o,r[s],`${n}[${s}]`,i);return t}return r}(this,e,t,r,a):null!==c.match(/^Dictionary$/i)&&(l=function(e,t,r,n,i){const o=t.type.value;if(!o||"object"!=typeof o)throw new Error(`"value" metadata for a Dictionary must be defined in the mapper and it must of type "object" in ${n}`);if(r){const t={};for(const s of Object.keys(r))t[s]=e.deserialize(o,r[s],n,i);return t}return r}(this,e,t,r,a))}return e.isConstant&&(l=e.defaultValue),l}}function Xg(e){const t=[];let r="";if(e){const n=e.split(".");for(const e of n)"\\"===e.charAt(e.length-1)?r+=e.substr(0,e.length-1)+".":(r+=e,t.push(r),r="")}return t}function Qg(e,t,r){const n=t.type.className;if(!n)throw new Error(`Class name for model "${r}" is not provided in the mapper "${JSON.stringify(t,void 0,2)}".`);return e.modelMappers[n]}function Yg(e,t,r){let n=t.type.modelProperties;if(!n){const i=Qg(e,t,r);if(!i)throw new Error(`mapper() cannot be null or undefined for model "${t.type.className}".`);if(n=null==i?void 0:i.type.modelProperties,!n)throw new Error(`modelProperties cannot be null or undefined in the mapper "${JSON.stringify(i)}" of type "${t.type.className}" for object "${r}".`)}return n}function Jg(e,t,r,n){if(!r||!e.xmlNamespace)return t;const i=e.xmlNamespacePrefix?`xmlns:${e.xmlNamespacePrefix}`:"xmlns",o={[i]:e.xmlNamespace};if(["Composite"].includes(e.type.name)){if(t[Ig])return t;{const e=Object.assign({},t);return e[Ig]=o,e}}const s={};return s[n.xmlCharKey]=t,s[Ig]=o,s}function Zg(e,t){return[Ig,t.xmlCharKey].includes(e)}function eb(e,t,r,n){const i=tb(e,t);if(i){const o=i[n];if(null!=o){const n=r[o];if(null!=n){const r=t.type.uberParent||t.type.className,i=n===r?n:r+"."+n,o=e.modelMappers.discriminators[i];o&&(t=o)}}}return t}function tb(e,t){return t.type.polymorphicDiscriminator||rb(e,t.type.uberParent)||rb(e,t.type.className)}function rb(e,t){return t&&e.modelMappers[t]&&e.modelMappers[t].type.polymorphicDiscriminator}const nb=function(e){const t={};for(const r of e)t[r]=r;return t}(["Base64Url","Boolean","ByteArray","Composite","Date","DateTime","DateTimeRfc1123","Dictionary","Enum","Number","Object","Sequence","String","Stream","TimeSpan","UnixTime"]);class ib{constructor(e,t,r,n,i,o,s,a,l,c,u,p,d,m,f){this.streamResponseBody=o,this.streamResponseStatusCodes=f,this.url=e||"",this.method=t||"GET",this.headers=kg(i)?i:new Tg(i),this.body=r,this.query=n,this.formData=void 0,this.withCredentials=s||!1,this.abortSignal=a,this.timeout=l||0,this.onUploadProgress=c,this.onDownloadProgress=u,this.proxySettings=p,this.keepAlive=d,this.decompressResponse=m,this.requestId=this.headers.get("x-ms-client-request-id")||Vg()}validateRequestProperties(){if(!this.method)throw new Error("WebResource.method is required.");if(!this.url)throw new Error("WebResource.url is required.")}prepare(e){if(!e)throw new Error("options object is required");if(void 0===e.method||null===e.method||"string"!=typeof e.method.valueOf())throw new Error("options.method must be a string.");if(e.url&&e.pathTemplate)throw new Error("options.url and options.pathTemplate are mutually exclusive. Please provide exactly one of them.");if(!(void 0!==e.pathTemplate&&null!==e.pathTemplate&&"string"==typeof e.pathTemplate.valueOf()||void 0!==e.url&&null!==e.url&&"string"==typeof e.url.valueOf()))throw new Error("Please provide exactly one of options.pathTemplate or options.url.");if(e.url){if("string"!=typeof e.url)throw new Error('options.url must be of type "string".');this.url=e.url}if(e.method){const t=["GET","PUT","HEAD","DELETE","OPTIONS","POST","PATCH","TRACE"];if(-1===t.indexOf(e.method.toUpperCase()))throw new Error('The provided method "'+e.method+'" is invalid. Supported HTTP methods are: '+JSON.stringify(t))}if(this.method=e.method.toUpperCase(),e.pathTemplate){const{pathTemplate:t,pathParameters:r}=e;if("string"!=typeof t)throw new Error('options.pathTemplate must be of type "string".');e.baseUrl||(e.baseUrl="https://management.azure.com");const n=e.baseUrl;let i=n+(n.endsWith("/")?"":"/")+(t.startsWith("/")?t.slice(1):t);const o=i.match(/({[\w-]*\s*[\w-]*})/gi);if(o&&o.length){if(!r)throw new Error(`pathTemplate: ${t} has been provided. Hence, options.pathParameters must also be provided.`);o.forEach(function(e){const n=e.slice(1,-1),o=r[n];if(null==o||"string"!=typeof o&&"object"!=typeof o){const e=JSON.stringify(r,void 0,2);throw new Error(`pathTemplate: ${t} contains the path parameter ${n} however, it is not present in parameters: ${e}.The value of the path parameter can either be a "string" of the form { ${n}: "some sample value" } or it can be an "object" of the form { "${n}": { value: "some sample value", skipUrlEncoding: true } }.`)}if("string"==typeof o.valueOf()&&(i=i.replace(e,encodeURIComponent(o))),"object"==typeof o.valueOf()){if(!o.value)throw new Error(`options.pathParameters[${n}] is of type "object" but it does not contain a "value" property.`);i=o.skipUrlEncoding?i.replace(e,o.value):i.replace(e,encodeURIComponent(o.value))}})}this.url=i}if(e.queryParameters){const t=e.queryParameters;if("object"!=typeof t)throw new Error('options.queryParameters must be of type object. It should be a JSON object of "query-parameter-name" as the key and the "query-parameter-value" as the value. The "query-parameter-value" may be fo type "string" or an "object" of the form { value: "query-parameter-value", skipUrlEncoding: true }.');this.url&&-1===this.url.indexOf("?")&&(this.url+="?");const r=[];this.query={};for(const e in t){const n=t[e];if(n)if("string"==typeof n)r.push(e+"="+encodeURIComponent(n)),this.query[e]=encodeURIComponent(n);else if("object"==typeof n){if(!n.value)throw new Error(`options.queryParameters[${e}] is of type "object" but it does not contain a "value" property.`);n.skipUrlEncoding?(r.push(e+"="+n.value),this.query[e]=n.value):(r.push(e+"="+encodeURIComponent(n.value)),this.query[e]=encodeURIComponent(n.value))}}this.url+=r.join("&")}if(e.headers){const t=e.headers;for(const r of Object.keys(e.headers))this.headers.set(r,t[r])}return this.headers.get("accept-language")||this.headers.set("accept-language","en-US"),this.headers.get("x-ms-client-request-id")||e.disableClientRequestId||this.headers.set("x-ms-client-request-id",this.requestId),this.headers.get("Content-Type")||this.headers.set("Content-Type","application/json; charset=utf-8"),this.body=e.body,void 0!==e.body&&null!==e.body&&(e.bodyIsStream?(this.headers.get("Transfer-Encoding")||this.headers.set("Transfer-Encoding","chunked"),"application/octet-stream"!==this.headers.get("Content-Type")&&this.headers.set("Content-Type","application/octet-stream")):(e.serializationMapper&&(this.body=new Kg(e.mappers).serialize(e.serializationMapper,e.body,"requestBody")),e.disableJsonStringifyOnBody||(this.body=JSON.stringify(e.body)))),e.spanOptions&&(this.spanOptions=e.spanOptions),e.tracingContext&&(this.tracingContext=e.tracingContext),this.abortSignal=e.abortSignal,this.onDownloadProgress=e.onDownloadProgress,this.onUploadProgress=e.onUploadProgress,this}clone(){const e=new ib(this.url,this.method,this.body,this.query,this.headers&&this.headers.clone(),this.streamResponseBody,this.withCredentials,this.abortSignal,this.timeout,this.onUploadProgress,this.onDownloadProgress,this.proxySettings,this.keepAlive,this.decompressResponse,this.streamResponseStatusCodes);return this.formData&&(e.formData=this.formData),this.operationSpec&&(e.operationSpec=this.operationSpec),this.shouldDeserialize&&(e.shouldDeserialize=this.shouldDeserialize),this.operationResponseGetter&&(e.operationResponseGetter=this.operationResponseGetter),e}}class ob{constructor(){this._rawQuery={}}any(){return Object.keys(this._rawQuery).length>0}keys(){return Object.keys(this._rawQuery)}set(e,t){const r=t;if(e)if(null!=r){const t=Array.isArray(r)?r:r.toString();this._rawQuery[e]=t}else delete this._rawQuery[e]}get(e){return e?this._rawQuery[e]:void 0}toString(){let e="";for(const t in this._rawQuery){e&&(e+="&");const r=this._rawQuery[t];if(Array.isArray(r)){const n=[];for(const e of r)n.push(`${t}=${e}`);e+=n.join("&")}else e+=`${t}=${r}`}return e}static parse(e){const t=new ob;if(e){e.startsWith("?")&&(e=e.substring(1));let r="ParameterName",n="",i="";for(let o=0;o<e.length;++o){const s=e[o];switch(r){case"ParameterName":switch(s){case"=":r="ParameterValue";break;case"&":n="",i="";break;default:n+=s}break;case"ParameterValue":if("&"===s)t.set(n,i),n="",i="",r="ParameterName";else i+=s;break;default:throw new Error("Unrecognized URLQuery parse state: "+r)}}"ParameterValue"===r&&t.set(n,i)}return t}}class sb{setScheme(e){e?this.set(e,"SCHEME"):this._scheme=void 0}getScheme(){return this._scheme}setHost(e){e?this.set(e,"SCHEME_OR_HOST"):this._host=void 0}getHost(){return this._host}setPort(e){null==e||""===e?this._port=void 0:this.set(e.toString(),"PORT")}getPort(){return this._port}setPath(e){if(e){const t=e.indexOf("://");if(-1!==t){const r=e.lastIndexOf("/",t);this.set(-1===r?e:e.substr(r+1),"SCHEME")}else this.set(e,"PATH")}else this._path=void 0}appendPath(e){if(e){let t=this.getPath();t&&(t.endsWith("/")||(t+="/"),e.startsWith("/")&&(e=e.substring(1)),e=t+e),this.set(e,"PATH")}}getPath(){return this._path}setQuery(e){this._query=e?ob.parse(e):void 0}setQueryParameter(e,t){e&&(this._query||(this._query=new ob),this._query.set(e,t))}getQueryParameterValue(e){return this._query?this._query.get(e):void 0}getQuery(){return this._query?this._query.toString():void 0}set(e,t){const r=new lb(e,t);for(;r.next();){const e=r.current();let t;if(e)switch(e.type){case"SCHEME":this._scheme=e.text||void 0;break;case"HOST":this._host=e.text||void 0;break;case"PORT":this._port=e.text||void 0;break;case"PATH":t=e.text||void 0,this._path&&"/"!==this._path&&"/"===t||(this._path=t);break;case"QUERY":this._query=ob.parse(e.text);break;default:throw new Error(`Unrecognized URLTokenType: ${e.type}`)}}}toString(){let e="";return this._scheme&&(e+=`${this._scheme}://`),this._host&&(e+=this._host),this._port&&(e+=`:${this._port}`),this._path&&(this._path.startsWith("/")||(e+="/"),e+=this._path),this._query&&this._query.any()&&(e+=`?${this._query.toString()}`),e}replaceAll(e,t){e&&(this.setScheme(Wg(this.getScheme(),e,t)),this.setHost(Wg(this.getHost(),e,t)),this.setPort(Wg(this.getPort(),e,t)),this.setPath(Wg(this.getPath(),e,t)),this.setQuery(Wg(this.getQuery(),e,t)))}static parse(e){const t=new sb;return t.set(e,"SCHEME_OR_HOST"),t}}class ab{constructor(e,t){this.text=e,this.type=t}static scheme(e){return new ab(e,"SCHEME")}static host(e){return new ab(e,"HOST")}static port(e){return new ab(e,"PORT")}static path(e){return new ab(e,"PATH")}static query(e){return new ab(e,"QUERY")}}class lb{constructor(e,t){this._text=e,this._textLength=e?e.length:0,this._currentState=null!=t?t:"SCHEME_OR_HOST",this._currentIndex=0}current(){return this._currentToken}next(){if(cb(this))switch(this._currentState){case"SCHEME":!function(e){const t=function(e){return mb(e,e=>function(e){const t=e.charCodeAt(0);return 48<=t&&t<=57||65<=t&&t<=90||97<=t&&t<=122}(e))}(e);e._currentToken=ab.scheme(t),cb(e)?e._currentState="HOST":e._currentState="DONE"}(this);break;case"SCHEME_OR_HOST":!function(e){const t=fb(e,":","/","?");cb(e)?":"===ub(e)?"://"===db(e,3)?(e._currentToken=ab.scheme(t),e._currentState="HOST"):(e._currentToken=ab.host(t),e._currentState="PORT"):(e._currentToken=ab.host(t),"/"===ub(e)?e._currentState="PATH":e._currentState="QUERY"):(e._currentToken=ab.host(t),e._currentState="DONE")}(this);break;case"HOST":!function(e){"://"===db(e,3)&&pb(e,3);const t=fb(e,":","/","?");e._currentToken=ab.host(t),cb(e)?":"===ub(e)?e._currentState="PORT":"/"===ub(e)?e._currentState="PATH":e._currentState="QUERY":e._currentState="DONE"}(this);break;case"PORT":!function(e){":"===ub(e)&&pb(e);const t=fb(e,"/","?");e._currentToken=ab.port(t),cb(e)?"/"===ub(e)?e._currentState="PATH":e._currentState="QUERY":e._currentState="DONE"}(this);break;case"PATH":!function(e){const t=fb(e,"?");e._currentToken=ab.path(t),cb(e)?e._currentState="QUERY":e._currentState="DONE"}(this);break;case"QUERY":!function(e){"?"===ub(e)&&pb(e);const t=function(e){let t="";e._currentIndex<e._textLength&&(t=e._text.substring(e._currentIndex),e._currentIndex=e._textLength);return t}(e);e._currentToken=ab.query(t),e._currentState="DONE"}(this);break;default:throw new Error(`Unrecognized URLTokenizerState: ${this._currentState}`)}else this._currentToken=void 0;return!!this._currentToken}}function cb(e){return e._currentIndex<e._textLength}function ub(e){return e._text[e._currentIndex]}function pb(e,t){cb(e)&&(t||(t=1),e._currentIndex+=t)}function db(e,t){let r=e._currentIndex+t;return e._textLength<r&&(r=e._textLength),e._text.substring(e._currentIndex,r)}function mb(e,t){let r="";for(;cb(e);){const n=ub(e);if(!t(n))break;r+=n,pb(e)}return r}function fb(e,...t){return mb(e,e=>-1===t.indexOf(e))}const hb="REDACTED",yb=["x-ms-client-request-id","x-ms-return-client-request-id","x-ms-useragent","x-ms-correlation-request-id","x-ms-request-id","client-request-id","ms-cv","return-client-request-id","traceparent","Access-Control-Allow-Credentials","Access-Control-Allow-Headers","Access-Control-Allow-Methods","Access-Control-Allow-Origin","Access-Control-Expose-Headers","Access-Control-Max-Age","Access-Control-Request-Headers","Access-Control-Request-Method","Origin","Accept","Accept-Encoding","Cache-Control","Connection","Content-Length","Content-Type","Date","ETag","Expires","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","Last-Modified","Pragma","Request-Id","Retry-After","Server","Transfer-Encoding","User-Agent","WWW-Authenticate"],gb=["api-version"];class bb{constructor({allowedHeaderNames:e=[],allowedQueryParameters:t=[]}={}){e=Array.isArray(e)?yb.concat(e):yb,t=Array.isArray(t)?gb.concat(t):gb,this.allowedHeaderNames=new Set(e.map(e=>e.toLowerCase())),this.allowedQueryParameters=new Set(t.map(e=>e.toLowerCase()))}sanitize(e){const t=new Set;return JSON.stringify(e,(e,r)=>{if(r instanceof Error)return Object.assign(Object.assign({},r),{name:r.name,message:r.message});if("_headersMap"===e)return this.sanitizeHeaders(r);if("url"===e)return this.sanitizeUrl(r);if("query"===e)return this.sanitizeQuery(r);if("body"!==e&&"response"!==e&&"operationSpec"!==e){if(Array.isArray(r)||!("object"!=typeof(n=r)||null===n||Array.isArray(n)||n instanceof RegExp||n instanceof Date)){if(t.has(r))return"[Circular]";t.add(r)}var n;return r}},2)}sanitizeHeaders(e){return this.sanitizeObject(e,this.allowedHeaderNames,(e,t)=>e[t].value)}sanitizeQuery(e){return this.sanitizeObject(e,this.allowedQueryParameters,(e,t)=>e[t])}sanitizeObject(e,t,r){if("object"!=typeof e||null===e)return e;const n={};for(const i of Object.keys(e))t.has(i.toLowerCase())?n[i]=r(e,i):n[i]=hb;return n}sanitizeUrl(e){if("string"!=typeof e||null===e)return e;const t=sb.parse(e),r=t.getQuery();if(!r)return e;const n=ob.parse(r);for(const i of n.keys())this.allowedQueryParameters.has(i.toLowerCase())||n.set(i,hb);return t.setQuery(n.toString()),t.toString()}}const vb={},xb=new bb;class wb extends Error{constructor(e,t,r,n,i){super(e),this.name="RestError",this.code=t,this.statusCode=r,this.request=n,this.response=i,Object.setPrototypeOf(this,wb.prototype)}[vb](){return`RestError: ${this.message} \n ${xb.sanitize(this)}`}}wb.REQUEST_SEND_ERROR="REQUEST_SEND_ERROR",wb.PARSE_ERROR="PARSE_ERROR";class Sb{sendRequest(e){var t;const r=new XMLHttpRequest;if(e.proxySettings)throw new Error("HTTP proxy is not supported in browser environment");const n=e.abortSignal;if(n){if(n.aborted)return Promise.reject(new jg("The operation was aborted."));const e=()=>{r.abort()};n.addEventListener("abort",e),r.addEventListener("readystatechange",()=>{r.readyState===XMLHttpRequest.DONE&&n.removeEventListener("abort",e)})}if(Nb(r.upload,e.onUploadProgress),Nb(r,e.onDownloadProgress),e.formData){const t=e.formData,r=new FormData,n=(e,t)=>{t&&Object.prototype.hasOwnProperty.call(t,"value")&&Object.prototype.hasOwnProperty.call(t,"options")?r.append(e,t.value,t.options):r.append(e,t)};for(const e of Object.keys(t)){const r=t[e];if(Array.isArray(r))for(let t=0;t<r.length;t++)n(e,r[t]);else n(e,r)}e.body=r,e.formData=void 0;const i=e.headers.get("Content-Type");i&&-1!==i.indexOf("multipart/form-data")&&e.headers.remove("Content-Type")}r.open(e.method,e.url),r.timeout=e.timeout,r.withCredentials=e.withCredentials;for(const i of e.headers.headersArray())r.setRequestHeader(i.name,i.value);return r.responseType=(null===(t=e.streamResponseStatusCodes)||void 0===t?void 0:t.size)||e.streamResponseBody?"blob":"text",r.send(void 0===e.body?null:e.body),"blob"===r.responseType?new Promise((t,n)=>{!function(e,t,r,n){e.addEventListener("readystatechange",()=>{var i;if(e.readyState===XMLHttpRequest.HEADERS_RECEIVED)if(t.streamResponseBody||(null===(i=t.streamResponseStatusCodes)||void 0===i?void 0:i.has(e.status))){const n=new Promise((r,n)=>{e.addEventListener("load",()=>{r(e.response)}),Eb(t,e,n)});r({request:t,status:e.status,headers:jb(e),blobBody:n})}else e.addEventListener("load",()=>{if(e.response){const i=new FileReader;i.onload=function(n){var i;const o=null===(i=n.target)||void 0===i?void 0:i.result;r({request:t,status:e.status,headers:jb(e),bodyAsText:o})},i.onerror=function(e){n(i.error)},i.readAsText(e.response,"UTF-8")}else r({request:t,status:e.status,headers:jb(e)})})})}(r,e,t,n),Eb(e,r,n)}):new Promise(function(t,n){r.addEventListener("load",()=>t({request:e,status:r.status,headers:jb(r),bodyAsText:r.responseText})),Eb(e,r,n)})}}function Nb(e,t){t&&e.addEventListener("progress",e=>t({loadedBytes:e.loaded}))}function jb(e){const t=new Tg,r=e.getAllResponseHeaders().trim().split(/[\r\n]+/);for(const n of r){const e=n.indexOf(":"),r=n.slice(0,e),i=n.slice(e+2);t.set(r,i)}return t}function Eb(e,t,r){t.addEventListener("error",()=>r(new wb(`Failed to send request to ${e.url}`,wb.REQUEST_SEND_ERROR,void 0,e)));const n=new jg("The operation was aborted.");t.addEventListener("abort",()=>r(n)),t.addEventListener("timeout",()=>r(n))}var Cb,kb;function Tb(e){const{requestOptions:t,tracingOptions:r}=e;let n=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}(e,["requestOptions","tracingOptions"]);return t&&(n=Object.assign(Object.assign({},n),t)),r&&(n.tracingContext=r.tracingContext,n.spanOptions=null==r?void 0:r.spanOptions),n}(kb=Cb||(Cb={}))[kb.OFF=0]="OFF",kb[kb.ERROR=1]="ERROR",kb[kb.WARNING=2]="WARNING",kb[kb.INFO=3]="INFO";class Rb{constructor(e,t){this._nextPolicy=e,this._options=t}shouldLog(e){return this._options.shouldLog(e)}log(e,t){this._options.log(e,t)}}class Ob{constructor(e){this._logger=e}shouldLog(e){return!!this._logger&&e!==Cb.OFF&&e<=this._logger.minimumLogLevel}log(e,t){this._logger&&this.shouldLog(e)&&this._logger.log(e,t)}}if(!(self.document&&self.DOMParser&&self.Node&&self.XMLSerializer))throw new Error('This library depends on the following DOM objects: ["document", "DOMParser", "Node", "XMLSerializer"] to parse XML, but some of these are undefined. You may provide a polyfill to make these globally available in order to support your environment. For more information, please refer to https://aka.ms/azsdk/js/web-workers. ');let Pb,_b,Ab,Ib,Mb;function Db(){return Pb||(Pb=document.implementation.createDocument(null,null,null)),Pb}function zb(){return _b||(_b=new DOMParser),_b}function Bb(e,t={}){var r,n,i,o;try{const s={rootName:null!==(r=t.rootName)&&void 0!==r?r:"",includeRoot:null!==(n=t.includeRoot)&&void 0!==n&&n,xmlCharKey:null!==(i=t.xmlCharKey)&&void 0!==i?i:Mg},a=zb().parseFromString(null!==(o=null==Ib?void 0:Ib.createHTML(e))&&void 0!==o?o:e,"application/xml");let l;return function(e){const t=e.getElementsByTagName("parsererror");if(t.length>0&&function(){var e,t;if(void 0===Mb)try{const r=null!==(e=null==Ib?void 0:Ib.createHTML("INVALID"))&&void 0!==e?e:"INVALID";Mb=null!==(t=zb().parseFromString(r,"text/xml").getElementsByTagName("parsererror")[0].namespaceURI)&&void 0!==t?t:""}catch(r){Mb=""}return Mb}())for(let r=0;r<t.length;r++)if(t[r].namespaceURI===Mb)throw new Error(t[r].innerHTML)}(a),l=s.includeRoot?Lb(a,s):Lb(a.childNodes[0],s),Promise.resolve(l)}catch(s){return Promise.reject(s)}}function Lb(e,t){let r={};const n=e.childNodes.length,i=e.childNodes[0],o=i&&1===n&&i.nodeType===Node.TEXT_NODE&&i.nodeValue||void 0,s=function(e){return function(e){return!!e.attributes}(e)&&e.hasAttributes()?e:void 0}(e);if(s){r[Ig]={};for(let e=0;e<s.attributes.length;e++){const t=s.attributes[e];r[Ig][t.nodeName]=t.nodeValue}o&&(r[t.xmlCharKey]=o)}else 0===n?r="":o&&(r=o);if(!o)for(let a=0;a<n;a++){const n=e.childNodes[a];if(n.nodeType!==Node.TEXT_NODE){const e=Lb(n,t);r[n.nodeName]?Array.isArray(r[n.nodeName])?r[n.nodeName].push(e):r[n.nodeName]=[r[n.nodeName],e]:r[n.nodeName]=e}}return r}function qb(e,t={}){var r,n,i;const o={rootName:null!==(r=t.rootName)&&void 0!==r?r:"root",includeRoot:null!==(n=t.includeRoot)&&void 0!==n&&n,xmlCharKey:null!==(i=t.xmlCharKey)&&void 0!==i?i:Mg},s=Hb(e,o.rootName,o)[0];return'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'+(Ab||(Ab=new XMLSerializer),Ab).serializeToString(s)}function Ub(e){const t=[];for(const r of Object.keys(e)){const n=Db().createAttribute(r);n.value=e[r].toString(),t.push(n)}return t}function Hb(e,t,r){if(null==e||"string"==typeof e||"number"==typeof e||"boolean"==typeof e){const r=Db().createElement(t);return r.textContent=null==e?"":e.toString(),[r]}if(Array.isArray(e)){const n=[];for(const i of e)for(const e of Hb(i,t,r))n.push(e);return n}if("object"==typeof e){const n=Db().createElement(t);for(const t of Object.keys(e))if(t===Ig)for(const r of Ub(e[t]))n.attributes.setNamedItem(r);else if(t===r.xmlCharKey)n.textContent=e[t].toString();else for(const i of Hb(e[t],t,r))n.appendChild(i);return[n]}throw new Error(`Illegal value passed to buildObject: ${e}`)}function Fb(e,t){return{create:(r,n)=>new Gb(r,n,e,t)}}void 0!==self.trustedTypes&&(Ib=self.trustedTypes.createPolicy("@azure/core-http#xml.browser",{createHTML:e=>e}));const $b=["application/json","text/json"],Vb=["application/xml","application/atom+xml"];class Gb extends Rb{constructor(e,t,r,n={}){var i;super(e,t),this.jsonContentTypes=r&&r.json||$b,this.xmlContentTypes=r&&r.xml||Vb,this.xmlCharKey=null!==(i=n.xmlCharKey)&&void 0!==i?i:Mg}async sendRequest(e){return this._nextPolicy.sendRequest(e).then(e=>function(e,t,r,n={}){var i,o,s;const a={rootName:null!==(i=n.rootName)&&void 0!==i?i:"",includeRoot:null!==(o=n.includeRoot)&&void 0!==o&&o,xmlCharKey:null!==(s=n.xmlCharKey)&&void 0!==s?s:Mg};return function(e,t,r,n){var i;const o=e=>{const t=`Error "${e}" occurred while parsing the response body - ${r.bodyAsText}.`,n=e.code||wb.PARSE_ERROR,i=new wb(t,n,r.status,r.request,r);return Promise.reject(i)},s=(null===(i=r.request.streamResponseStatusCodes)||void 0===i?void 0:i.has(r.status))||r.request.streamResponseBody;if(!s&&r.bodyAsText){const i=r.bodyAsText,s=r.headers.get("Content-Type")||"",a=s?s.split(";").map(e=>e.toLowerCase()):[];if(0===a.length||a.some(t=>-1!==e.indexOf(t)))return new Promise(e=>{r.parsedBody=JSON.parse(i),e(r)}).catch(o);if(a.some(e=>-1!==t.indexOf(e)))return Bb(i,n).then(e=>(r.parsedBody=e,r)).catch(o)}return Promise.resolve(r)}(e,t,r,a).then(e=>{if(!function(e){const t=e.request.shouldDeserialize;let r;r=void 0===t||("boolean"==typeof t?t:t(e));return r}(e))return e;const t=e.request.operationSpec;if(!t||!t.responses)return e;const i=function(e){let t;const r=e.request,n=r.operationSpec;if(n){const i=r.operationResponseGetter;t=i?i(n,e):n.responses[e.status]}return t}(e),{error:o,shouldReturnResponse:s}=function(e,t,r){var n;const i=200<=e.status&&e.status<300,o=function(e){const t=Object.keys(e.responses);return 0===t.length||1===t.length&&"default"===t[0]}(t)?i:!!r;if(o){if(!r)return{error:null,shouldReturnResponse:!1};if(!r.isError)return{error:null,shouldReturnResponse:!1}}const s=null!=r?r:t.responses.default,a=(null===(n=e.request.streamResponseStatusCodes)||void 0===n?void 0:n.has(e.status))||e.request.streamResponseBody,l=a?`Unexpected status code: ${e.status}`:e.bodyAsText,c=new wb(l,void 0,e.status,e.request,e);if(!s)throw c;const u=s.bodyMapper,p=s.headersMapper;try{if(e.parsedBody){const r=e.parsedBody;let n;if(u){let e=r;t.isXML&&u.type.name===nb.Sequence&&(e="object"==typeof r?r[u.xmlElementName]:[]),n=t.serializer.deserialize(u,e,"error.response.parsedBody")}const i=r.error||n||r;c.code=i.code,i.message&&(c.message=i.message),u&&(c.response.parsedBody=n)}e.headers&&p&&(c.response.parsedHeaders=t.serializer.deserialize(p,e.headers.toJson(),"operationRes.parsedHeaders"))}catch(d){c.message=`Error "${d.message}" occurred in deserializing the responseBody - "${e.bodyAsText}" for the default response.`}return{error:c,shouldReturnResponse:!1}}(e,t,i);if(o)throw o;if(s)return e;if(i){if(i.bodyMapper){let r=e.parsedBody;t.isXML&&i.bodyMapper.type.name===nb.Sequence&&(r="object"==typeof r?r[i.bodyMapper.xmlElementName]:[]);try{e.parsedBody=t.serializer.deserialize(i.bodyMapper,r,"operationRes.parsedBody",n)}catch(a){throw new wb(`Error ${a} occurred in deserializing the responseBody - ${e.bodyAsText}`,void 0,e.status,e.request,e)}}else"HEAD"===t.httpMethod&&(e.parsedBody=r.status>=200&&r.status<300);i.headersMapper&&(e.parsedHeaders=t.serializer.deserialize(i.headersMapper,e.headers.toJson(),"operationRes.parsedHeaders",n))}return e})}(this.jsonContentTypes,this.xmlContentTypes,e,{xmlCharKey:this.xmlCharKey}))}}const Wb={enable:!0};class Kb extends Rb{constructor(e,t,r){super(e,t),this.keepAliveOptions=r}async sendRequest(e){return e.keepAlive=this.keepAliveOptions.enable,this._nextPolicy.sendRequest(e)}}const Xb=["GET","HEAD"];class Qb extends Rb{constructor(e,t,r=20){super(e,t),this.maxRetries=r}sendRequest(e){return this._nextPolicy.sendRequest(e).then(e=>Yb(this,e,0))}}function Yb(e,t,r){const{request:n,status:i}=t,o=t.headers.get("location");if(o&&(300===i||301===i&&Xb.includes(n.method)||302===i&&Xb.includes(n.method)||303===i&&"POST"===n.method||307===i)&&(!e.maxRetries||r<e.maxRetries)){const t=sb.parse(n.url);return t.setPath(o),n.url=t.toString(),303===i&&(n.method="GET",delete n.body),e._nextPolicy.sendRequest(n).then(t=>Yb(e,t,r+1))}return Promise.resolve(t)}function Jb(e){return"number"==typeof e}function Zb(e,t,r,n,i){return!!t(n,i)&&r.retryCount<e}function ev(e,t={retryCount:0,retryInterval:0},r){r&&(t.error&&(r.innerError=t.error),t.error=r),t.retryCount++;let n=Math.pow(2,t.retryCount-1)-1;return n*=.8*e.retryInterval+Math.floor(Math.random()*(.4*e.retryInterval)),t.retryInterval=Math.min(e.minRetryInterval+n,e.maxRetryInterval),t}"undefined"!=typeof Deno&&void 0!==Deno.version&&Deno.version.deno,"undefined"!=typeof Bun&&Bun.version;const tv=void 0!==globalThis.process&&Boolean(globalThis.process.version)&&Boolean(null==(e=globalThis.process.versions)?void 0:e.node);class rv extends Error{constructor(e){super(e),this.name="AbortError"}}function nv(e,t){let r;const{abortSignal:n,abortErrorMsg:i}=t??{};return function(e,t){const{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:i}=t??{};return new Promise((t,o)=>{function s(){o(new rv(i??"The operation was aborted."))}function a(){null==n||n.removeEventListener("abort",l)}function l(){null==r||r(),a(),s()}if(null==n?void 0:n.aborted)return s();try{e(e=>{a(),t(e)},e=>{a(),o(e)})}catch(c){o(c)}null==n||n.addEventListener("abort",l)})}(t=>{r=setTimeout(t,e)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:n,abortErrorMsg:i??"The delay was aborted."})}const iv=tv;const ov="undefined"!=typeof process&&process.env&&process.env.DEBUG||void 0;let sv,av=[],lv=[];const cv=[];ov&&pv(ov);const uv=Object.assign(e=>fv(e),{enable:pv,enabled:dv,disable:function(){const e=sv||"";return pv(""),e},log:function(...e){if(e.length>0){const t=String(e[0]);t.includes(":error")||t.includes(":warning")||t.includes(":info")||t.includes(":verbose")}}});function pv(e){sv=e,av=[],lv=[];const t=e.split(",").map(e=>e.trim());for(const r of t)r.startsWith("-")?lv.push(r.substring(1)):av.push(r);for(const r of cv)r.enabled=dv(r.namespace)}function dv(e){if(e.endsWith("*"))return!0;for(const t of lv)if(mv(e,t))return!1;for(const t of av)if(mv(e,t))return!0;return!1}function mv(e,t){if(-1===t.indexOf("*"))return e===t;let r=t;if(-1!==t.indexOf("**")){const e=[];let n="";for(const r of t)"*"===r&&"*"===n||(n=r,e.push(r));r=e.join("")}let n=0,i=0;const o=r.length,s=e.length;let a=-1,l=-1;for(;n<s&&i<o;)if("*"!==r[i]){if(r[i]!==e[n]){if(a>=0){if(i=a+1,n=l+1,n===s)return!1;for(;e[n]!==r[i];)if(n++,n===s)return!1;l=n,n++,i++;continue}return!1}i++,n++}else{if(a=i,i++,i===o)return!0;for(;e[n]!==r[i];)if(n++,n===s)return!1;l=n,n++,i++}const c=n===e.length,u=i===r.length,p=i===r.length-1&&"*"===r[i];return c&&(u||p)}function fv(e){const t=Object.assign(function(...r){if(!t.enabled)return;r.length>0&&(r[0]=`${e} ${r[0]}`);t.log(...r)},{enabled:dv(e),destroy:hv,log:uv.log,namespace:e,extend:yv});return cv.push(t),t}function hv(){const e=cv.indexOf(this);return e>=0&&(cv.splice(e,1),!0)}function yv(e){const t=fv(`${this.namespace}:${e}`);return t.log=this.log,t}const gv=["verbose","info","warning","error"],bv={verbose:400,info:300,warning:200,error:100};function vv(e,t){t.log=(...t)=>{e.log(...t)}}function xv(e){return gv.includes(e)}function wv(e){const t=new Set,r="undefined"!=typeof process&&process.env&&process.env[e.logLevelEnvVarName]||void 0;let n;const i=uv(e.namespace);function o(e){if(e&&!xv(e))throw new Error(`Unknown log level '${e}'. Acceptable values: ${gv.join(",")}`);n=e;const r=[];for(const n of t)s(n)&&r.push(n.namespace);uv.enable(r.join(","))}function s(e){return Boolean(n&&bv[e.level]<=bv[n])}function a(e,r){const n=Object.assign(e.extend(r),{level:r});if(vv(e,n),s(n)){const e=uv.disable();uv.enable(e+","+n.namespace)}return t.add(n),n}return i.log=(...e)=>{uv.log(...e)},r&&xv(r)&&o(r),{setLogLevel:o,getLogLevel:function(){return n},createClientLogger:function(e){const t=i.extend(e);return vv(i,t),{error:a(t,"error"),warning:a(t,"warning"),info:a(t,"info"),verbose:a(t,"verbose")}},logger:i}}wv({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"});const Sv=wv({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"});function Nv(e){return Sv.createClientLogger(e)}const jv=Nv("core-http");var Ev,Cv;(Cv=Ev||(Ev={}))[Cv.Exponential=0]="Exponential";class kv extends Rb{constructor(e,t,r,n,i){super(e,t),this.retryCount=Jb(r)?r:3,this.retryInterval=Jb(n)?n:3e4,this.maxRetryInterval=Jb(i)?i:9e4}sendRequest(e){return this._nextPolicy.sendRequest(e.clone()).then(t=>Tv(this,e,t)).catch(t=>Tv(this,e,t.response,void 0,t))}}async function Tv(e,t,r,n,i){n=ev({retryInterval:e.retryInterval,minRetryInterval:0,maxRetryInterval:e.maxRetryInterval},n,i);const o=t.abortSignal&&t.abortSignal.aborted;if(o||!Zb(e.retryCount,function(e){const t=null==e?void 0:e.status;return(503!==t||!(null==r?void 0:r.headers.get(Ag.RETRY_AFTER)))&&!(void 0===t||t<500&&408!==t||501===t||505===t)},n,r)){if(o||i||!r){throw n.error||new wb("Failed to send the request.",wb.REQUEST_SEND_ERROR,r&&r.status,r&&r.request,r)}return r}jv.info(`Retrying request in ${n.retryInterval}`);try{await nv(n.retryInterval);const r=await e._nextPolicy.sendRequest(t.clone());return Tv(e,t,r,n)}catch(s){return Tv(e,t,r,n,s)}}function Rv(e={}){return{create:(t,r)=>new Ov(t,r,e)}}class Ov extends Rb{get allowedHeaderNames(){return this.sanitizer.allowedHeaderNames}set allowedHeaderNames(e){this.sanitizer.allowedHeaderNames=e}get allowedQueryParameters(){return this.sanitizer.allowedQueryParameters}set allowedQueryParameters(e){this.sanitizer.allowedQueryParameters=e}constructor(e,t,{logger:r=jv.info,allowedHeaderNames:n=[],allowedQueryParameters:i=[]}={}){super(e,t),this.logger=r,this.sanitizer=new bb({allowedHeaderNames:n,allowedQueryParameters:i})}sendRequest(e){return this.logger.enabled?(this.logRequest(e),this._nextPolicy.sendRequest(e).then(e=>this.logResponse(e))):this._nextPolicy.sendRequest(e)}logRequest(e){this.logger(`Request: ${this.sanitizer.sanitize(e)}`)}logResponse(e){return this.logger(`Response status code: ${e.status}`),this.logger(`Headers: ${this.sanitizer.sanitize(e.headers)}`),e}}function Pv(e){return _v(e.parameterPath,e.mapper)}function _v(e,t){let r;return r="string"==typeof e?e:Array.isArray(e)?e.join("."):t.serializedName,r}function Av(e){const t=e;return t&&"function"==typeof t.getToken&&(void 0===t.signRequest||t.getToken.length>0)}function Iv(){return"x-ms-useragent"}const Mv=Iv;function Dv(){const e=[{key:"core-http",value:Pg}],t=function(){const e=self.navigator;return[{key:"OS",value:(e.oscpu||e.platform).replace(" ","")}]}();return function(e,t=" ",r="/"){return e.map(e=>{const t=e.value?`${r}${e.value}`:"";return`${e.key}${t}`}).join(t)}(e.concat(t))}class zv extends Rb{constructor(e,t,r,n){super(e,t),this._nextPolicy=e,this._options=t,this.headerKey=r,this.headerValue=n}sendRequest(e){return this.addUserAgentHeader(e),this._nextPolicy.sendRequest(e)}addUserAgentHeader(e){e.headers||(e.headers=new Tg),!e.headers.get(this.headerKey)&&this.headerValue&&e.headers.set(this.headerKey,this.headerValue)}}var Bv,Lv;(Lv=Bv||(Bv={})).Csv=",",Lv.Ssv=" ",Lv.Tsv="\t",Lv.Pipes="|",Lv.Multi="Multi";const qv={forcedRefreshWindowInMs:1e3,retryIntervalInMs:3e3,refreshWindowInMs:12e4};function Uv(e,t,r){let n=null,i=null;const o=Object.assign(Object.assign({},qv),r),s={get isRefreshing(){return null!==n},get shouldRefresh(){var e;return!s.isRefreshing&&(null!==(e=null==i?void 0:i.expiresOnTimestamp)&&void 0!==e?e:0)-o.refreshWindowInMs<Date.now()},get mustRefresh(){return null===i||i.expiresOnTimestamp-o.forcedRefreshWindowInMs<Date.now()}};function a(r){var a;if(!s.isRefreshing){n=async function(e,t,r){async function n(){if(!(Date.now()<r)){const t=await e();if(null===t)throw new Error("Failed to refresh access token.");return t}try{return await e()}catch(a){return null}}let i=await n();for(;null===i;)await nv(t),i=await n();return i}(()=>e.getToken(t,r),o.retryIntervalInMs,null!==(a=null==i?void 0:i.expiresOnTimestamp)&&void 0!==a?a:Date.now()).then(e=>(n=null,i=e,i)).catch(e=>{throw n=null,i=null,e})}return n}return async e=>s.mustRefresh?a(e):(s.shouldRefresh&&a(e),i)}function Hv(e="x-ms-client-request-id"){return{create:(t,r)=>new Fv(t,r,e)}}class Fv extends Rb{constructor(e,t,r){super(e,t),this._requestIdHeaderName=r}sendRequest(e){return e.headers.contains(this._requestIdHeaderName)||e.headers.set(this._requestIdHeaderName,e.requestId),this._nextPolicy.sendRequest(e)}}let $v;function Vv(e){return{create:(e,t)=>{throw new Error("ProxyPolicy is not supported in browser environment")}}}class Gv extends Rb{constructor(e,t,r=30){super(e,t),this._retryTimeout=r}sendRequest(e){return this._nextPolicy.sendRequest(e.clone()).then(t=>function(e,t,r){if(409===r.status){const n=function(e){let t,r;if(e){try{r=JSON.parse(e)}catch(n){}if(r&&r.error&&r.error.message&&r.error.code&&"MissingSubscriptionRegistration"===r.error.code){const e=r.error.message.match(/.*'(.*)'/i);e&&(t=e.pop())}}return t}(r.bodyAsText);if(n){const i=function(e){let t;const r=e.match(/.*\/subscriptions\/[a-f0-9-]+\//gi);if(!r||!r[0])throw new Error(`Unable to extract subscriptionId from the given url - ${e}.`);t=r[0];return t}(t.url);return async function(e,t,r,n){const i=`${t}providers/${r}/register?api-version=2016-02-01`,o=`${t}providers/${r}?api-version=2016-02-01`,s=Wv(n);s.method="POST",s.url=i;const a=await e._nextPolicy.sendRequest(s);if(200!==a.status)throw new Error(`Autoregistration of ${r} failed. Please try registering manually.`);return Kv(e,o,n)}(e,i,n,t).catch(()=>!1).then(n=>n?(t.headers.set("x-ms-client-request-id",Vg()),e._nextPolicy.sendRequest(t.clone())):r)}}return Promise.resolve(r)}(this,e,t))}}function Wv(e,t=!1){const r=e.clone();return t&&(r.url=e.url),r.headers.set("x-ms-client-request-id",Vg()),r.headers.set("Content-Type","application/json; charset=utf-8"),r}async function Kv(e,t,r){const n=Wv(r);n.url=t,n.method="GET";const i=await e._nextPolicy.sendRequest(n),o=i.parsedBody;return!(!i.parsedBody||!o.registrationState||"Registered"!==o.registrationState)||(await nv(1e3*e._retryTimeout),Kv(e,t,r))}class Xv extends Rb{constructor(e,t,r){super(e,t),this.authenticationProvider=r}signRequest(e){return this.authenticationProvider.signRequest(e)}sendRequest(e){return this.signRequest(e).then(e=>this._nextPolicy.sendRequest(e))}}class Qv extends Rb{constructor(e,t,r,n,i,o){super(e,t),this.retryCount=Jb(r)?r:3,this.retryInterval=Jb(n)?n:3e4,this.minRetryInterval=Jb(i)?i:3e3,this.maxRetryInterval=Jb(o)?o:9e4}sendRequest(e){return this._nextPolicy.sendRequest(e.clone()).catch(t=>Yv(this,e,t.response,t))}}async function Yv(e,t,r,n,i){if(i=ev(e,i,n),!Zb(e.retryCount,function(e,t){return!(!t||!t.code||"ETIMEDOUT"!==t.code&&"ESOCKETTIMEDOUT"!==t.code&&"ECONNREFUSED"!==t.code&&"ECONNRESET"!==t.code&&"ENOENT"!==t.code)},i,r,n))return n?Promise.reject(i.error):r;try{return await nv(i.retryInterval),e._nextPolicy.sendRequest(t.clone())}catch(o){return Yv(e,t,r,o,i)}}const Jv=_g.StatusCodes;const Zv="The operation was aborted.";class ex extends Rb{constructor(e,t,r){super(e,t),this.numberOfRetries=0,this._handleResponse=r||this._defaultResponseHandler}async sendRequest(e){const t=await this._nextPolicy.sendRequest(e.clone());return t.status!==Jv.TooManyRequests&&t.status!==Jv.ServiceUnavailable?t:this._handleResponse(e,t)}async _defaultResponseHandler(e,t){var r;const n=t.headers.get(Ag.RETRY_AFTER);if(n){const t=ex.parseRetryAfterHeader(n);if(t){if(this.numberOfRetries+=1,await nv(t,{abortSignal:e.abortSignal,abortErrorMsg:Zv}),null===(r=e.abortSignal)||void 0===r?void 0:r.aborted)throw new jg(Zv);return this.numberOfRetries<3?this.sendRequest(e):this._nextPolicy.sendRequest(e)}}return t}static parseRetryAfterHeader(e){const t=Number(e);return Number.isNaN(t)?ex.parseDateRetryAfterHeader(e):1e3*t}static parseDateRetryAfterHeader(e){try{const t=Date.now(),r=Date.parse(e)-t;return Number.isNaN(r)?void 0:r}catch(t){return}}}var tx="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof global?global:{},rx="1.9.0",nx=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;var ix=function(e){var t=new Set([e]),r=new Set,n=e.match(nx);if(!n)return function(){return!1};var i=+n[1],o=+n[2],s=+n[3];if(null!=n[4])return function(t){return t===e};function a(e){return r.add(e),!1}function l(e){return t.add(e),!0}return function(e){if(t.has(e))return!0;if(r.has(e))return!1;var n=e.match(nx);if(!n)return a(e);var c=+n[1],u=+n[2],p=+n[3];return null!=n[4]||i!==c?a(e):0===i?o===u&&s<=p?l(e):a(e):o<=u?l(e):a(e)}}(rx),ox=rx.split(".")[0],sx=Symbol.for("opentelemetry.js.api."+ox),ax=tx;function lx(e,t,r,n){var i;void 0===n&&(n=!1);var o=ax[sx]=null!==(i=ax[sx])&&void 0!==i?i:{version:rx};if(!n&&o[e]){var s=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return r.error(s.stack||s.message),!1}if(o.version!==rx){s=new Error("@opentelemetry/api: Registration of version v"+o.version+" for "+e+" does not match previously registered API v"+rx);return r.error(s.stack||s.message),!1}return o[e]=t,r.debug("@opentelemetry/api: Registered a global for "+e+" v"+rx+"."),!0}function cx(e){var t,r,n=null===(t=ax[sx])||void 0===t?void 0:t.version;if(n&&ix(n))return null===(r=ax[sx])||void 0===r?void 0:r[e]}function ux(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+rx+".");var r=ax[sx];r&&delete r[e]}var px,dx,mx=function(){function e(e){this._namespace=e.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return fx("debug",this._namespace,e)},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return fx("error",this._namespace,e)},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return fx("info",this._namespace,e)},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return fx("warn",this._namespace,e)},e.prototype.verbose=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return fx("verbose",this._namespace,e)},e}();function fx(e,t,r){var n=cx("diag");if(n)return r.unshift(t),n[e].apply(n,function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}([],function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(a){i={error:a}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s}(r),!1))}(dx=px||(px={}))[dx.NONE=0]="NONE",dx[dx.ERROR=30]="ERROR",dx[dx.WARN=50]="WARN",dx[dx.INFO=60]="INFO",dx[dx.DEBUG=70]="DEBUG",dx[dx.VERBOSE=80]="VERBOSE",dx[dx.ALL=9999]="ALL";var hx=function(){function e(){function e(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=cx("diag");if(n)return n[e].apply(n,function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}([],function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(a){i={error:a}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s}(t),!1))}}var t=this;t.setLogger=function(e,r){var n,i,o;if(void 0===r&&(r={logLevel:px.INFO}),e===t){var s=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return t.error(null!==(n=s.stack)&&void 0!==n?n:s.message),!1}"number"==typeof r&&(r={logLevel:r});var a=cx("diag"),l=function(e,t){function r(r,n){var i=t[r];return"function"==typeof i&&e>=n?i.bind(t):function(){}}return e<px.NONE?e=px.NONE:e>px.ALL&&(e=px.ALL),t=t||{},{error:r("error",px.ERROR),warn:r("warn",px.WARN),info:r("info",px.INFO),debug:r("debug",px.DEBUG),verbose:r("verbose",px.VERBOSE)}}(null!==(i=r.logLevel)&&void 0!==i?i:px.INFO,e);if(a&&!r.suppressOverrideMessage){var c=null!==(o=(new Error).stack)&&void 0!==o?o:"<failed to generate stacktrace>";a.warn("Current logger will be overwritten from "+c),l.warn("Current logger will overwrite one already registered from "+c)}return lx("diag",l,t,!0)},t.disable=function(){ux("diag",t)},t.createComponentLogger=function(e){return new mx(e)},t.verbose=e("verbose"),t.debug=e("debug"),t.info=e("info"),t.warn=e("warn"),t.error=e("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}(),yx=function(){function e(e){this._entries=e?new Map(e):new Map}return e.prototype.getEntry=function(e){var t=this._entries.get(e);if(t)return Object.assign({},t)},e.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(e){var t=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(a){i={error:a}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s}(e,2);return[t[0],t[1]]})},e.prototype.setEntry=function(t,r){var n=new e(this._entries);return n._entries.set(t,r),n},e.prototype.removeEntry=function(t){var r=new e(this._entries);return r._entries.delete(t),r},e.prototype.removeEntries=function(){for(var t,r,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var o=new e(this._entries);try{for(var s=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(n),a=s.next();!a.done;a=s.next()){var l=a.value;o._entries.delete(l)}}catch(c){t={error:c}}finally{try{a&&!a.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}return o},e.prototype.clear=function(){return new e},e}();function gx(e){return void 0===e&&(e={}),new yx(new Map(Object.entries(e)))}function bx(e){return Symbol.for(e)}hx.instance();var vx,xx,wx=new(function(){return function e(t){var r=this;r._currentContext=t?new Map(t):new Map,r.getValue=function(e){return r._currentContext.get(e)},r.setValue=function(t,n){var i=new e(r._currentContext);return i._currentContext.set(t,n),i},r.deleteValue=function(t){var n=new e(r._currentContext);return n._currentContext.delete(t),n}}}()),Sx=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),Nx=function(){function e(){}return e.prototype.createGauge=function(e,t){return Mx},e.prototype.createHistogram=function(e,t){return Dx},e.prototype.createCounter=function(e,t){return Ix},e.prototype.createUpDownCounter=function(e,t){return zx},e.prototype.createObservableGauge=function(e,t){return Lx},e.prototype.createObservableCounter=function(e,t){return Bx},e.prototype.createObservableUpDownCounter=function(e,t){return qx},e.prototype.addBatchObservableCallback=function(e,t){},e.prototype.removeBatchObservableCallback=function(e){},e}(),jx=function(){return function(){}}(),Ex=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Sx(t,e),t.prototype.add=function(e,t){},t}(jx),Cx=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Sx(t,e),t.prototype.add=function(e,t){},t}(jx),kx=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Sx(t,e),t.prototype.record=function(e,t){},t}(jx),Tx=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Sx(t,e),t.prototype.record=function(e,t){},t}(jx),Rx=function(){function e(){}return e.prototype.addCallback=function(e){},e.prototype.removeCallback=function(e){},e}(),Ox=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Sx(t,e),t}(Rx),Px=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Sx(t,e),t}(Rx),_x=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Sx(t,e),t}(Rx),Ax=new Nx,Ix=new Ex,Mx=new kx,Dx=new Tx,zx=new Cx,Bx=new Ox,Lx=new Px,qx=new _x,Ux={get:function(e,t){if(null!=e)return e[t]},keys:function(e){return null==e?[]:Object.keys(e)}},Hx={set:function(e,t,r){null!=e&&(e[t]=r)}},Fx=function(){function e(){}return e.prototype.active=function(){return wx},e.prototype.with=function(e,t,r){for(var n=[],i=3;i<arguments.length;i++)n[i-3]=arguments[i];return t.call.apply(t,function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}([r],function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(a){i={error:a}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s}(n),!1))},e.prototype.bind=function(e,t){return t},e.prototype.enable=function(){return this},e.prototype.disable=function(){return this},e}(),$x="context",Vx=new Fx,Gx=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalContextManager=function(e){return lx($x,e,hx.instance())},e.prototype.active=function(){return this._getContextManager().active()},e.prototype.with=function(e,t,r){for(var n,i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];return(n=this._getContextManager()).with.apply(n,function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}([e,t,r],function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(a){i={error:a}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s}(i),!1))},e.prototype.bind=function(e,t){return this._getContextManager().bind(e,t)},e.prototype._getContextManager=function(){return cx($x)||Vx},e.prototype.disable=function(){this._getContextManager().disable(),ux($x,hx.instance())},e}();(xx=vx||(vx={}))[xx.NONE=0]="NONE",xx[xx.SAMPLED=1]="SAMPLED";var Wx="0000000000000000",Kx="00000000000000000000000000000000",Xx={traceId:Kx,spanId:Wx,traceFlags:vx.NONE},Qx=function(){function e(e){void 0===e&&(e=Xx),this._spanContext=e}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(e,t){return this},e.prototype.setAttributes=function(e){return this},e.prototype.addEvent=function(e,t){return this},e.prototype.addLink=function(e){return this},e.prototype.addLinks=function(e){return this},e.prototype.setStatus=function(e){return this},e.prototype.updateName=function(e){return this},e.prototype.end=function(e){},e.prototype.isRecording=function(){return!1},e.prototype.recordException=function(e,t){},e}(),Yx=bx("OpenTelemetry Context Key SPAN");function Jx(e){return e.getValue(Yx)||void 0}function Zx(){return Jx(Gx.getInstance().active())}function ew(e,t){return e.setValue(Yx,t)}function tw(e){return e.deleteValue(Yx)}function rw(e,t){return ew(e,new Qx(t))}function nw(e){var t;return null===(t=Jx(e))||void 0===t?void 0:t.spanContext()}var iw=/^([0-9a-f]{32})$/i,ow=/^[0-9a-f]{16}$/i;function sw(e){return r=e.traceId,iw.test(r)&&r!==Kx&&(t=e.spanId,ow.test(t)&&t!==Wx);var t,r}function aw(e){return new Qx(e)}var lw=Gx.getInstance(),cw=function(){function e(){}return e.prototype.startSpan=function(e,t,r){if(void 0===r&&(r=lw.active()),Boolean(null==t?void 0:t.root))return new Qx;var n,i=r&&nw(r);return"object"==typeof(n=i)&&"string"==typeof n.spanId&&"string"==typeof n.traceId&&"number"==typeof n.traceFlags&&sw(i)?new Qx(i):new Qx},e.prototype.startActiveSpan=function(e,t,r,n){var i,o,s;if(!(arguments.length<2)){2===arguments.length?s=t:3===arguments.length?(i=t,s=r):(i=t,o=r,s=n);var a=null!=o?o:lw.active(),l=this.startSpan(e,i,a),c=ew(a,l);return lw.with(c,s,void 0,l)}},e}();var uw=new cw,pw=function(){function e(e,t,r,n){this._provider=e,this.name=t,this.version=r,this.options=n}return e.prototype.startSpan=function(e,t,r){return this._getTracer().startSpan(e,t,r)},e.prototype.startActiveSpan=function(e,t,r,n){var i=this._getTracer();return Reflect.apply(i.startActiveSpan,i,arguments)},e.prototype._getTracer=function(){if(this._delegate)return this._delegate;var e=this._provider.getDelegateTracer(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):uw},e}(),dw=new(function(){function e(){}return e.prototype.getTracer=function(e,t,r){return new cw},e}()),mw=function(){function e(){}return e.prototype.getTracer=function(e,t,r){var n;return null!==(n=this.getDelegateTracer(e,t,r))&&void 0!==n?n:new pw(this,e,t,r)},e.prototype.getDelegate=function(){var e;return null!==(e=this._delegate)&&void 0!==e?e:dw},e.prototype.setDelegate=function(e){this._delegate=e},e.prototype.getDelegateTracer=function(e,t,r){var n;return null===(n=this._delegate)||void 0===n?void 0:n.getTracer(e,t,r)},e}(),fw=Gx.getInstance();hx.instance();var hw=new(function(){function e(){}return e.prototype.getMeter=function(e,t,r){return Ax},e}()),yw="metrics";(function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalMeterProvider=function(e){return lx(yw,e,hx.instance())},e.prototype.getMeterProvider=function(){return cx(yw)||hw},e.prototype.getMeter=function(e,t,r){return this.getMeterProvider().getMeter(e,t,r)},e.prototype.disable=function(){ux(yw,hx.instance())},e})().getInstance();var gw=function(){function e(){}return e.prototype.inject=function(e,t){},e.prototype.extract=function(e,t){return e},e.prototype.fields=function(){return[]},e}(),bw=bx("OpenTelemetry Baggage Key");function vw(e){return e.getValue(bw)||void 0}function xw(){return vw(Gx.getInstance().active())}function ww(e,t){return e.setValue(bw,t)}function Sw(e){return e.deleteValue(bw)}var Nw="propagation",jw=new gw;(function(){function e(){this.createBaggage=gx,this.getBaggage=vw,this.getActiveBaggage=xw,this.setBaggage=ww,this.deleteBaggage=Sw}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalPropagator=function(e){return lx(Nw,e,hx.instance())},e.prototype.inject=function(e,t,r){return void 0===r&&(r=Hx),this._getGlobalPropagator().inject(e,t,r)},e.prototype.extract=function(e,t,r){return void 0===r&&(r=Ux),this._getGlobalPropagator().extract(e,t,r)},e.prototype.fields=function(){return this._getGlobalPropagator().fields()},e.prototype.disable=function(){ux(Nw,hx.instance())},e.prototype._getGlobalPropagator=function(){return cx(Nw)||jw},e})().getInstance();var Ew,Cw,kw="trace",Tw=function(){function e(){this._proxyTracerProvider=new mw,this.wrapSpanContext=aw,this.isSpanContextValid=sw,this.deleteSpan=tw,this.getSpan=Jx,this.getActiveSpan=Zx,this.getSpanContext=nw,this.setSpan=ew,this.setSpanContext=rw}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalTracerProvider=function(e){var t=lx(kw,this._proxyTracerProvider,hx.instance());return t&&this._proxyTracerProvider.setDelegate(e),t},e.prototype.getTracerProvider=function(){return cx(kw)||this._proxyTracerProvider},e.prototype.getTracer=function(e,t){return this.getTracerProvider().getTracer(e,t)},e.prototype.disable=function(){ux(kw,hx.instance()),this._proxyTracerProvider=new mw},e}().getInstance();function Rw(e,t){return Tw.setSpan(e,t)}(Cw=Ew||(Ew={}))[Cw.INTERNAL=0]="INTERNAL",Cw[Cw.SERVER=1]="SERVER",Cw[Cw.CLIENT=2]="CLIENT",Cw[Cw.PRODUCER=3]="PRODUCER",Cw[Cw.CONSUMER=4]="CONSUMER";const Ow=fw;var Pw,_w;function Aw(e){return function(t,r){const n=Tw.getTracer("azure/core-tracing",i);var i;const o=(null==r?void 0:r.tracingOptions)||{},s=Object.assign({kind:Ew.INTERNAL},o.spanOptions),a=e.packagePrefix?`${e.packagePrefix}.${t}`:t;let l;l=function(){var e;if("undefined"==typeof process)return!1;const t=null===(e=process.env.AZURE_TRACING_DISABLED)||void 0===e?void 0:e.toLowerCase();return"false"!==t&&"0"!==t&&Boolean(t)}()?Tw.wrapSpanContext(Xx):n.startSpan(a,s,o.tracingContext),e.namespace&&l.setAttribute("az.namespace",e.namespace);let c=o.spanOptions||{};l.isRecording()&&e.namespace&&(c=Object.assign(Object.assign({},o.spanOptions),{attributes:Object.assign(Object.assign({},s.attributes),{"az.namespace":e.namespace})}));const u=Object.assign(Object.assign({},o),{spanOptions:c,tracingContext:Rw(o.tracingContext||Ow.active(),l)});return{span:l,updatedOptions:Object.assign(Object.assign({},r),{tracingOptions:u})}}}(_w=Pw||(Pw={}))[_w.UNSET=0]="UNSET",_w[_w.OK=1]="OK",_w[_w.ERROR=2]="ERROR";const Iw=Aw({packagePrefix:"",namespace:""});function Mw(e={}){return{create:(t,r)=>new Dw(t,r,e)}}class Dw extends Rb{constructor(e,t,r){super(e,t),this.userAgent=r.userAgent}async sendRequest(e){if(!e.tracingContext)return this._nextPolicy.sendRequest(e);const t=this.tryCreateSpan(e);if(!t)return this._nextPolicy.sendRequest(e);try{const r=await this._nextPolicy.sendRequest(e);return this.tryProcessResponse(t,r),r}catch(r){throw this.tryProcessError(t,r),r}}tryCreateSpan(e){var t,r;try{const{span:n}=Iw(`HTTP ${e.method}`,{tracingOptions:{spanOptions:Object.assign(Object.assign({},e.spanOptions),{kind:Ew.CLIENT}),tracingContext:e.tracingContext}});if(!n.isRecording())return void n.end();const i=null===(t=e.tracingContext)||void 0===t?void 0:t.getValue(Symbol.for("az.namespace"));"string"==typeof i&&n.setAttribute("az.namespace",i),n.setAttributes({"http.method":e.method,"http.url":e.url,requestId:e.requestId}),this.userAgent&&n.setAttribute("http.user_agent",this.userAgent);const o=n.spanContext(),s=function(e){const t=[];if(e.traceId||t.push("traceId"),e.spanId||t.push("spanId"),t.length)return;const r=(e.traceFlags||0).toString(16),n=1===r.length?`0${r}`:r;return`00-${e.traceId}-${e.spanId}-${n}`}(o);if(s&&(r=o,Tw.isSpanContextValid(r))){e.headers.set("traceparent",s);const t=o.traceState&&o.traceState.serialize();t&&e.headers.set("tracestate",t)}return n}catch(n){return void jv.warning(`Skipping creating a tracing span due to an error: ${n.message}`)}}tryProcessError(e,t){try{e.setStatus({code:Pw.ERROR,message:t.message}),t.statusCode&&e.setAttribute("http.status_code",t.statusCode),e.end()}catch(r){jv.warning(`Skipping tracing span processing due to an error: ${r.message}`)}}tryProcessResponse(e,t){try{e.setAttribute("http.status_code",t.status);const r=t.headers.get("x-ms-request-id");r&&e.setAttribute("serviceRequestId",r),e.setStatus({code:Pw.OK}),e.end()}catch(r){jv.warning(`Skipping tracing span processing due to an error: ${r.message}`)}}}class zw{constructor(e,t){let r;if(t||(t={}),this._withCredentials=t.withCredentials||!1,this._httpClient=t.httpClient||($v||($v=new Sb),$v),this._requestPolicyOptions=new Ob(t.httpPipelineLogger),Array.isArray(t.requestPolicyFactories))jv.info("ServiceClient: using custom request policies"),r=t.requestPolicyFactories;else{let i;if(Av(e)){jv.info("ServiceClient: creating bearer token authentication policy from provided credentials");const r=()=>{let r;const n=this,i=t;return{create(t,o){const s=function(e,t){if(null==e?void 0:e.credentialScopes)return e.credentialScopes;if(t)return`${t}/.default`;return}(i,n.baseUri);if(!s)throw new Error("When using credential, the ServiceClient must contain a baseUri or a credentialScopes in ServiceClientOptions. Unable to create a bearerTokenAuthenticationPolicy");return null==r&&(r=function(e,t){const r=Uv(e,t);class n extends Rb{constructor(e,t){super(e,t)}async sendRequest(e){if(!e.url.toLowerCase().startsWith("https://"))throw new Error("Bearer token authentication is not permitted for non-TLS protected (non-https) URLs.");const{token:t}=await r({abortSignal:e.abortSignal,tracingOptions:{tracingContext:e.tracingContext}});return e.headers.set(Ag.AUTHORIZATION,`Bearer ${t}`),this._nextPolicy.sendRequest(e)}}return{create:(e,t)=>new n(e,t)}}(e,s)),r.create(t,o)}}};i=r()}else if(e&&"function"==typeof e.signRequest)jv.info("ServiceClient: creating signing policy from provided credentials"),n=e,i={create:(e,t)=>new Xv(e,t,n)};else if(null!=e)throw new Error("The credentials argument must implement the TokenCredential interface");if(jv.info("ServiceClient: using default request policies"),r=function(e,t){const r=[];t.generateClientRequestIdHeader&&r.push(Hv(t.clientRequestIdHeaderName));e&&r.push(e);const n=Bw(t.userAgentHeaderName,Mv),i=Bw(t.userAgent,Dv);n&&i&&r.push(function(e){const t=e&&void 0!==e.key&&null!==e.key?e.key:"x-ms-useragent",r=e&&void 0!==e.value&&null!==e.value?e.value:Dv();return{create:(e,n)=>new zv(e,n,t,r)}}({key:n,value:i}));r.push(function(e=20){return{create:(t,r)=>new Qb(t,r,e)}}()),r.push(function(e=30){return{create:(t,r)=>new Gv(t,r,e)}}(t.rpRegistrationRetryTimeout)),t.noRetryPolicy||(r.push({create:(e,t)=>new kv(e,t,o,s,a)}),r.push(function(e,t,r,n){return{create:(i,o)=>new Qv(i,o,e,t,r,n)}}()),r.push({create:(e,t)=>new ex(e,t)}));var o,s,a;r.push(Fb(t.deserializationContentTypes)),iv&&r.push(Vv(t.proxySettings));return r.push(Rv({logger:jv.info})),r}(i,t),t.requestPolicyFactories){const e=t.requestPolicyFactories(r);e&&(r=e)}}var n;this._requestPolicyFactories=r}sendRequest(e){if(null==e||"object"!=typeof e)throw new Error("options cannot be null or undefined and it must be of type object.");let t;try{!function(e){if(e&&"object"==typeof e){const t=e;if("string"==typeof t.url&&"string"==typeof t.method&&"object"==typeof t.headers&&kg(t.headers)&&"function"==typeof t.validateRequestProperties&&"function"==typeof t.prepare&&"function"==typeof t.clone)return!0}return!1}(e)?(t=new ib,t=t.prepare(e)):(e.validateRequestProperties(),t=e)}catch(n){return Promise.reject(n)}let r=this._httpClient;if(this._requestPolicyFactories&&this._requestPolicyFactories.length>0)for(let i=this._requestPolicyFactories.length-1;i>=0;--i)r=this._requestPolicyFactories[i].create(r,this._requestPolicyOptions);return r.sendRequest(t)}async sendOperationRequest(e,t,r){var n;"function"==typeof e.options&&(r=e.options,e.options=void 0);const i=null===(n=e.options)||void 0===n?void 0:n.serializerOptions,o=new ib;let s;try{const r=t.baseUrl||this.baseUri;if(!r)throw new Error("If operationSpec.baseUrl is not specified, then the ServiceClient must have a baseUri string property that contains the base URL to use.");o.method=t.httpMethod,o.operationSpec=t;const n=sb.parse(r);if(t.path&&n.appendPath(t.path),t.urlParameters&&t.urlParameters.length>0)for(const o of t.urlParameters){let r=Lw(this,e,o,t.serializer);r=t.serializer.serialize(o.mapper,r,Pv(o),i),o.skipEncoding||(r=encodeURIComponent(r)),n.replaceAll(`{${o.mapper.serializedName||Pv(o)}}`,r)}if(t.queryParameters&&t.queryParameters.length>0)for(const o of t.queryParameters){let r=Lw(this,e,o,t.serializer);if(null!=r){if(r=t.serializer.serialize(o.mapper,r,Pv(o),i),void 0!==o.collectionFormat&&null!==o.collectionFormat)if(o.collectionFormat===Bv.Multi){if(0===r.length)continue;for(const e in r){const t=r[e];r[e]=null==t?"":t.toString()}}else o.collectionFormat!==Bv.Ssv&&o.collectionFormat!==Bv.Tsv||(r=r.join(o.collectionFormat));if(!o.skipEncoding)if(Array.isArray(r))for(const e in r)void 0!==r[e]&&null!==r[e]&&(r[e]=encodeURIComponent(r[e]));else r=encodeURIComponent(r);void 0!==o.collectionFormat&&null!==o.collectionFormat&&o.collectionFormat!==Bv.Multi&&o.collectionFormat!==Bv.Ssv&&o.collectionFormat!==Bv.Tsv&&(r=r.join(o.collectionFormat)),n.setQueryParameter(o.mapper.serializedName||Pv(o),r)}}o.url=n.toString();const a=t.contentType||this.requestContentType;if(a&&t.requestBody&&o.headers.set("Content-Type",a),t.headerParameters)for(const s of t.headerParameters){let r=Lw(this,e,s,t.serializer);if(null!=r){r=t.serializer.serialize(s.mapper,r,Pv(s),i);const e=s.mapper.headerCollectionPrefix;if(e)for(const t of Object.keys(r))o.headers.set(e+t,r[t]);else o.headers.set(s.mapper.serializedName||Pv(s),r)}}const c=e.options;if(c){if(c.customHeaders)for(const e in c.customHeaders)o.headers.set(e,c.customHeaders[e]);c.abortSignal&&(o.abortSignal=c.abortSignal),c.timeout&&(o.timeout=c.timeout),c.onUploadProgress&&(o.onUploadProgress=c.onUploadProgress),c.onDownloadProgress&&(o.onDownloadProgress=c.onDownloadProgress),c.spanOptions&&(o.spanOptions=c.spanOptions),c.tracingContext&&(o.tracingContext=c.tracingContext),void 0!==c.shouldDeserialize&&null!==c.shouldDeserialize&&(o.shouldDeserialize=c.shouldDeserialize)}let u,p;o.withCredentials=this._withCredentials,function(e,t,r,n){var i,o,s,a,l,c;const u=null!==(o=null===(i=r.options)||void 0===i?void 0:i.serializerOptions)&&void 0!==o?o:{},p={rootName:null!==(s=u.rootName)&&void 0!==s?s:"",includeRoot:null!==(a=u.includeRoot)&&void 0!==a&&a,xmlCharKey:null!==(l=u.xmlCharKey)&&void 0!==l?l:Mg},d=u.xmlCharKey;if(n.requestBody&&n.requestBody.mapper){t.body=Lw(e,r,n.requestBody,n.serializer);const i=n.requestBody.mapper,{required:o,xmlName:s,xmlElementName:a,serializedName:l,xmlNamespace:u,xmlNamespacePrefix:f}=i,h=i.type.name;try{if(void 0!==t.body&&null!==t.body||o){const e=Pv(n.requestBody);t.body=n.serializer.serialize(i,t.body,e,p);const r=h===nb.Stream;if(n.isXML){const e=f?`xmlns:${f}`:"xmlns",n=function(e,t,r,n,i){if(e&&!["Composite","Sequence","Dictionary"].includes(r)){const r={};return r[i.xmlCharKey]=n,r[Ig]={[t]:e},r}return n}(u,e,h,t.body,p);h===nb.Sequence?t.body=qb(function(e,t,r,n){if(Array.isArray(e)||(e=[e]),!r||!n)return{[t]:e};const i={[t]:e};return i[Ig]={[r]:n},i}(n,a||s||l,e,u),{rootName:s||l,xmlCharKey:d}):r||(t.body=qb(n,{rootName:s||l,xmlCharKey:d}))}else{if(h===nb.String&&((null===(c=n.contentType)||void 0===c?void 0:c.match("text/plain"))||"text"===n.mediaType))return;r||(t.body=JSON.stringify(t.body))}}}catch(m){throw new Error(`Error "${m.message}" occurred in serializing the payload - ${JSON.stringify(l,void 0," ")}.`)}}else if(n.formDataParameters&&n.formDataParameters.length>0){t.formData={};for(const i of n.formDataParameters){const o=Lw(e,r,i,n.serializer);if(null!=o){const e=i.mapper.serializedName||Pv(i);t.formData[e]=n.serializer.serialize(i.mapper,o,Pv(i),p)}}}}(this,o,e,t),void 0===o.streamResponseStatusCodes&&(o.streamResponseStatusCodes=function(e){const t=new Set;for(const r in e.responses){const n=e.responses[r];n.bodyMapper&&n.bodyMapper.type.name===nb.Stream&&t.add(Number(r))}return t}(t));try{u=await this.sendRequest(o)}catch(l){p=l}p?(p.response&&(p.details=Hw(p.response,t.responses[p.statusCode]||t.responses.default)),s=Promise.reject(p)):s=Promise.resolve(Hw(u,t.responses[u.status]))}catch(l){s=Promise.reject(l)}const a=r;return a&&s.then(e=>a(null,e._response.parsedBody,e._response.request,e._response)).catch(e=>a(e)),s}}function Bw(e,t){let r;return"string"==typeof e?r=e:(r=t(),"function"==typeof e&&(r=e(r))),r}function Lw(e,t,r,n){return qw(e,t,r.parameterPath,r.mapper,n)}function qw(e,t,r,n,i){var o;let s;"string"==typeof r&&(r=[r]);const a=null===(o=t.options)||void 0===o?void 0:o.serializerOptions;if(Array.isArray(r)){if(r.length>0){if(n.isConstant)s=n.defaultValue;else{let i=Uw(t,r);i.propertyFound||(i=Uw(e,r));let o=!1;i.propertyFound||(o=n.required||"options"===r[0]&&2===r.length),s=o?n.defaultValue:i.propertyValue}const o=_v(r,n);i.serialize(n,s,o,a)}}else{n.required&&(s={});for(const o in r){const l=n.type.modelProperties[o],c=r[o],u=qw(e,t,c,l,i),p=_v(c,l);i.serialize(l,u,p,a),null!=u&&(s||(s={}),s[o]=u)}}return s}function Uw(e,t){const r={propertyFound:!1};let n=0;for(;n<t.length;++n){const r=t[n];if(null==e||!(r in e))break;e=e[r]}return n===t.length&&(r.propertyValue=e,r.propertyFound=!0),r}function Hw(e,t){const r=e.parsedHeaders,n=t&&t.bodyMapper,i=t=>Object.defineProperty(t,"_response",{value:e});if(n){const t=n.type.name;if("Stream"===t)return i(Object.assign(Object.assign({},r),{blobBody:e.blobBody,readableStreamBody:e.readableStreamBody}));const o="Composite"===t&&n.type.modelProperties||{},s=Object.keys(o).some(e=>""===o[e].serializedName);if("Sequence"===t||s){const t=[...e.parsedBody||[]];for(const r of Object.keys(o))o[r].serializedName&&(t[r]=e.parsedBody[r]);if(r)for(const e of Object.keys(r))t[e]=r[e];return i(t),t}if("Composite"===t||"Dictionary"===t)return i(Object.assign(Object.assign({},r),e.parsedBody))}return n||"HEAD"===e.request.method||("object"!=typeof(o=e.parsedBody)&&"function"!=typeof o||null===o)?i(Object.assign(Object.assign({},r),{body:e.parsedBody})):i(Object.assign(Object.assign({},r),e.parsedBody));var o}const Fw={serializedName:"StorageError",type:{name:"Composite",className:"StorageError",modelProperties:{message:{serializedName:"Message",xmlName:"Message",type:{name:"String"}},code:{serializedName:"Code",xmlName:"Code",type:{name:"String"}}}}},$w={serializedName:"FilterBlobSegment",xmlName:"EnumerationResults",type:{name:"Composite",className:"FilterBlobSegment",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:!0,xmlName:"ServiceEndpoint",xmlIsAttribute:!0,type:{name:"String"}},where:{serializedName:"Where",required:!0,xmlName:"Where",type:{name:"String"}},blobs:{serializedName:"Blobs",required:!0,xmlName:"Blobs",xmlIsWrapped:!0,xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"FilterBlobItem"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}},Vw={serializedName:"BlobTags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags",modelProperties:{blobTagSet:{serializedName:"BlobTagSet",required:!0,xmlName:"TagSet",xmlIsWrapped:!0,xmlElementName:"Tag",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobTag"}}}}}}},Gw={serializedName:"ListBlobsFlatSegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListBlobsFlatSegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:!0,xmlName:"ServiceEndpoint",xmlIsAttribute:!0,type:{name:"String"}},containerName:{serializedName:"ContainerName",required:!0,xmlName:"ContainerName",xmlIsAttribute:!0,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"}}}}},Ww={serializedName:"ListBlobsHierarchySegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListBlobsHierarchySegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:!0,xmlName:"ServiceEndpoint",xmlIsAttribute:!0,type:{name:"String"}},containerName:{serializedName:"ContainerName",required:!0,xmlName:"ContainerName",xmlIsAttribute:!0,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"}}}}},Kw={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"}}}}}}},Xw={serializedName:"BlockList",type:{name:"Composite",className:"BlockList",modelProperties:{committedBlocks:{serializedName:"CommittedBlocks",xmlName:"CommittedBlocks",xmlIsWrapped:!0,xmlElementName:"Block",type:{name:"Sequence",element:{type:{name:"Composite",className:"Block"}}}},uncommittedBlocks:{serializedName:"UncommittedBlocks",xmlName:"UncommittedBlocks",xmlIsWrapped:!0,xmlElementName:"Block",type:{name:"Sequence",element:{type:{name:"Composite",className:"Block"}}}}}}},Qw={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"}}}}},Yw={serializedName:"QueryRequest",xmlName:"QueryRequest",type:{name:"Composite",className:"QueryRequest",modelProperties:{queryType:{serializedName:"QueryType",required:!0,xmlName:"QueryType",type:{name:"String"}},expression:{serializedName:"Expression",required:!0,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"}}}}},Jw={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"}}}}},Zw={serializedName:"Container_createExceptionHeaders",type:{name:"Composite",className:"ContainerCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},eS={serializedName:"Container_getPropertiesHeaders",type:{name:"Composite",className:"ContainerGetPropertiesHeaders",modelProperties:{metadata:{serializedName:"x-ms-meta",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}},headerCollectionPrefix:"x-ms-meta-"},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"}}}}},tS={serializedName:"Container_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ContainerGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},rS={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"}}}}},nS={serializedName:"Container_deleteExceptionHeaders",type:{name:"Composite",className:"ContainerDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},iS={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"}}}}},oS={serializedName:"Container_setMetadataExceptionHeaders",type:{name:"Composite",className:"ContainerSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},sS={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"}}}}},aS={serializedName:"Container_getAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},lS={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"}}}}},cS={serializedName:"Container_setAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerSetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},uS={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"}}}}},pS={serializedName:"Container_restoreExceptionHeaders",type:{name:"Composite",className:"ContainerRestoreExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},dS={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"}}}}},mS={serializedName:"Container_renameExceptionHeaders",type:{name:"Composite",className:"ContainerRenameExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},fS={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"}}}}},hS={serializedName:"Container_submitBatchExceptionHeaders",type:{name:"Composite",className:"ContainerSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},yS={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"}}}}},gS={serializedName:"Container_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ContainerFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},bS={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"}}}}},vS={serializedName:"Container_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},xS={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"}}}}},wS={serializedName:"Container_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},SS={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"}}}}},NS={serializedName:"Container_renewLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},jS={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"}}}}},ES={serializedName:"Container_breakLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},CS={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"}}}}},kS={serializedName:"Container_changeLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},TS={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"}}}}},RS={serializedName:"Container_listBlobFlatSegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobFlatSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},OS={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"}}}}},PS={serializedName:"Container_listBlobHierarchySegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobHierarchySegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},_S={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"]}}}}},AS={serializedName:"Container_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},IS={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",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}},headerCollectionPrefix:"x-ms-meta-"},objectReplicationPolicyId:{serializedName:"x-ms-or-policy-id",xmlName:"x-ms-or-policy-id",type:{name:"String"}},objectReplicationRules:{serializedName:"x-ms-or",xmlName:"x-ms-or",type:{name:"Dictionary",value:{type:{name:"String"}}},headerCollectionPrefix:"x-ms-or-"},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"}}}}},MS={serializedName:"Blob_downloadExceptionHeaders",type:{name:"Composite",className:"BlobDownloadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},DS={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",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}},headerCollectionPrefix:"x-ms-meta-"},objectReplicationPolicyId:{serializedName:"x-ms-or-policy-id",xmlName:"x-ms-or-policy-id",type:{name:"String"}},objectReplicationRules:{serializedName:"x-ms-or",xmlName:"x-ms-or",type:{name:"Dictionary",value:{type:{name:"String"}}},headerCollectionPrefix:"x-ms-or-"},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"}}}}},zS={serializedName:"Blob_getPropertiesExceptionHeaders",type:{name:"Composite",className:"BlobGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},BS={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"}}}}},LS={serializedName:"Blob_deleteExceptionHeaders",type:{name:"Composite",className:"BlobDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},qS={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"}}}}},US={serializedName:"Blob_undeleteExceptionHeaders",type:{name:"Composite",className:"BlobUndeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},HS={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"}}}}},FS={serializedName:"Blob_setExpiryExceptionHeaders",type:{name:"Composite",className:"BlobSetExpiryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},$S={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"}}}}},VS={serializedName:"Blob_setHttpHeadersExceptionHeaders",type:{name:"Composite",className:"BlobSetHttpHeadersExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},GS={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"]}}}}},WS={serializedName:"Blob_setImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobSetImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},KS={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"}}}}},XS={serializedName:"Blob_deleteImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobDeleteImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},QS={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"}}}}},YS={serializedName:"Blob_setLegalHoldExceptionHeaders",type:{name:"Composite",className:"BlobSetLegalHoldExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},JS={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"}}}}},ZS={serializedName:"Blob_setMetadataExceptionHeaders",type:{name:"Composite",className:"BlobSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},eN={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"}}}}},tN={serializedName:"Blob_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"BlobAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},rN={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"}}}}},nN={serializedName:"Blob_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"BlobReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},iN={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"}}}}},oN={serializedName:"Blob_renewLeaseExceptionHeaders",type:{name:"Composite",className:"BlobRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},sN={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"}}}}},aN={serializedName:"Blob_changeLeaseExceptionHeaders",type:{name:"Composite",className:"BlobChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},lN={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"}}}}},cN={serializedName:"Blob_breakLeaseExceptionHeaders",type:{name:"Composite",className:"BlobBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},uN={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"}}}}},pN={serializedName:"Blob_createSnapshotExceptionHeaders",type:{name:"Composite",className:"BlobCreateSnapshotExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},dN={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"}}}}},mN={serializedName:"Blob_startCopyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobStartCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},fN={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:!0,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"}}}}},hN={serializedName:"Blob_copyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},yN={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"}}}}},gN={serializedName:"Blob_abortCopyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobAbortCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},bN={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"}}}}},vN={serializedName:"Blob_setTierExceptionHeaders",type:{name:"Composite",className:"BlobSetTierExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},xN={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"]}}}}},wN={serializedName:"Blob_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"BlobGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},SN={serializedName:"Blob_queryHeaders",type:{name:"Composite",className:"BlobQueryHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"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"}}}}},NN={serializedName:"Blob_queryExceptionHeaders",type:{name:"Composite",className:"BlobQueryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},jN={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"}}}}},EN={serializedName:"Blob_getTagsExceptionHeaders",type:{name:"Composite",className:"BlobGetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},CN={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"}}}}},kN={serializedName:"Blob_setTagsExceptionHeaders",type:{name:"Composite",className:"BlobSetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},TN={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"}}}}},RN={serializedName:"PageBlob_createExceptionHeaders",type:{name:"Composite",className:"PageBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},ON={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"}}}}},PN={serializedName:"PageBlob_uploadPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobUploadPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},_N={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"}}}}},AN={serializedName:"PageBlob_clearPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobClearPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},IN={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"}}}}},MN={serializedName:"PageBlob_uploadPagesFromURLExceptionHeaders",type:{name:"Composite",className:"PageBlobUploadPagesFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},DN={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"}}}}},zN={serializedName:"PageBlob_getPageRangesExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},BN={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"}}}}},LN={serializedName:"PageBlob_getPageRangesDiffExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesDiffExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},qN={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"}}}}},UN={serializedName:"PageBlob_resizeExceptionHeaders",type:{name:"Composite",className:"PageBlobResizeExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},HN={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"}}}}},FN={serializedName:"PageBlob_updateSequenceNumberExceptionHeaders",type:{name:"Composite",className:"PageBlobUpdateSequenceNumberExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},$N={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"}}}}},VN={serializedName:"PageBlob_copyIncrementalExceptionHeaders",type:{name:"Composite",className:"PageBlobCopyIncrementalExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},GN={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"}}}}},WN={serializedName:"AppendBlob_createExceptionHeaders",type:{name:"Composite",className:"AppendBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},KN={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"}}}}},XN={serializedName:"AppendBlob_appendBlockExceptionHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},QN={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"}}}}},YN={serializedName:"AppendBlob_appendBlockFromUrlExceptionHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockFromUrlExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},JN={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"}}}}},ZN={serializedName:"AppendBlob_sealExceptionHeaders",type:{name:"Composite",className:"AppendBlobSealExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},ej={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"}}}}},tj={serializedName:"BlockBlob_uploadExceptionHeaders",type:{name:"Composite",className:"BlockBlobUploadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},rj={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"}}}}},nj={serializedName:"BlockBlob_putBlobFromUrlExceptionHeaders",type:{name:"Composite",className:"BlockBlobPutBlobFromUrlExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},ij={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"}}}}},oj={serializedName:"BlockBlob_stageBlockExceptionHeaders",type:{name:"Composite",className:"BlockBlobStageBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},sj={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"}}}}},aj={serializedName:"BlockBlob_stageBlockFromURLExceptionHeaders",type:{name:"Composite",className:"BlockBlobStageBlockFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},lj={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"}}}}},cj={serializedName:"BlockBlob_commitBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobCommitBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},uj={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"}}}}},pj={serializedName:"BlockBlob_getBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobGetBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},dj=Object.freeze(Object.defineProperty({__proto__:null,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"}}}}},AppendBlobAppendBlockExceptionHeaders:XN,AppendBlobAppendBlockFromUrlExceptionHeaders:YN,AppendBlobAppendBlockFromUrlHeaders:QN,AppendBlobAppendBlockHeaders:KN,AppendBlobCreateExceptionHeaders:WN,AppendBlobCreateHeaders:GN,AppendBlobSealExceptionHeaders:ZN,AppendBlobSealHeaders:JN,ArrowConfiguration:{serializedName:"ArrowConfiguration",xmlName:"ArrowConfiguration",type:{name:"Composite",className:"ArrowConfiguration",modelProperties:{schema:{serializedName:"Schema",required:!0,xmlName:"Schema",xmlIsWrapped:!0,xmlElementName:"Field",type:{name:"Sequence",element:{type:{name:"Composite",className:"ArrowField"}}}}}}},ArrowField:{serializedName:"ArrowField",xmlName:"Field",type:{name:"Composite",className:"ArrowField",modelProperties:{type:{serializedName:"Type",required:!0,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"}}}}},BlobAbortCopyFromURLExceptionHeaders:gN,BlobAbortCopyFromURLHeaders:yN,BlobAcquireLeaseExceptionHeaders:tN,BlobAcquireLeaseHeaders:eN,BlobBreakLeaseExceptionHeaders:cN,BlobBreakLeaseHeaders:lN,BlobChangeLeaseExceptionHeaders:aN,BlobChangeLeaseHeaders:sN,BlobCopyFromURLExceptionHeaders:hN,BlobCopyFromURLHeaders:fN,BlobCreateSnapshotExceptionHeaders:pN,BlobCreateSnapshotHeaders:uN,BlobDeleteExceptionHeaders:LS,BlobDeleteHeaders:BS,BlobDeleteImmutabilityPolicyExceptionHeaders:XS,BlobDeleteImmutabilityPolicyHeaders:KS,BlobDownloadExceptionHeaders:MS,BlobDownloadHeaders:IS,BlobFlatListSegment:{serializedName:"BlobFlatListSegment",xmlName:"Blobs",type:{name:"Composite",className:"BlobFlatListSegment",modelProperties:{blobItems:{serializedName:"BlobItems",required:!0,xmlName:"BlobItems",xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobItemInternal"}}}}}}},BlobGetAccountInfoExceptionHeaders:wN,BlobGetAccountInfoHeaders:xN,BlobGetPropertiesExceptionHeaders:zS,BlobGetPropertiesHeaders:DS,BlobGetTagsExceptionHeaders:EN,BlobGetTagsHeaders:jN,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:!0,xmlName:"BlobItems",xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobItemInternal"}}}}}}},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:!0,xmlName:"Deleted",type:{name:"Boolean"}},snapshot:{serializedName:"Snapshot",required:!0,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"}}}}},BlobName:{serializedName:"BlobName",type:{name:"Composite",className:"BlobName",modelProperties:{encoded:{serializedName:"Encoded",xmlName:"Encoded",xmlIsAttribute:!0,type:{name:"Boolean"}},content:{serializedName:"content",xmlName:"content",xmlIsMsText:!0,type:{name:"String"}}}}},BlobPrefix:{serializedName:"BlobPrefix",type:{name:"Composite",className:"BlobPrefix",modelProperties:{name:{serializedName:"Name",xmlName:"Name",type:{name:"Composite",className:"BlobName"}}}}},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:!0,xmlName:"Last-Modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"Etag",required:!0,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"}}}}},BlobQueryExceptionHeaders:NN,BlobQueryHeaders:SN,BlobReleaseLeaseExceptionHeaders:nN,BlobReleaseLeaseHeaders:rN,BlobRenewLeaseExceptionHeaders:oN,BlobRenewLeaseHeaders:iN,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:!0,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"}}}}},BlobServiceStatistics:{serializedName:"BlobServiceStatistics",xmlName:"StorageServiceStats",type:{name:"Composite",className:"BlobServiceStatistics",modelProperties:{geoReplication:{serializedName:"GeoReplication",xmlName:"GeoReplication",type:{name:"Composite",className:"GeoReplication"}}}}},BlobSetExpiryExceptionHeaders:FS,BlobSetExpiryHeaders:HS,BlobSetHttpHeadersExceptionHeaders:VS,BlobSetHttpHeadersHeaders:$S,BlobSetImmutabilityPolicyExceptionHeaders:WS,BlobSetImmutabilityPolicyHeaders:GS,BlobSetLegalHoldExceptionHeaders:YS,BlobSetLegalHoldHeaders:QS,BlobSetMetadataExceptionHeaders:ZS,BlobSetMetadataHeaders:JS,BlobSetTagsExceptionHeaders:kN,BlobSetTagsHeaders:CN,BlobSetTierExceptionHeaders:vN,BlobSetTierHeaders:bN,BlobStartCopyFromURLExceptionHeaders:mN,BlobStartCopyFromURLHeaders:dN,BlobTag:{serializedName:"BlobTag",xmlName:"Tag",type:{name:"Composite",className:"BlobTag",modelProperties:{key:{serializedName:"Key",required:!0,xmlName:"Key",type:{name:"String"}},value:{serializedName:"Value",required:!0,xmlName:"Value",type:{name:"String"}}}}},BlobTags:Vw,BlobUndeleteExceptionHeaders:US,BlobUndeleteHeaders:qS,Block:{serializedName:"Block",type:{name:"Composite",className:"Block",modelProperties:{name:{serializedName:"Name",required:!0,xmlName:"Name",type:{name:"String"}},size:{serializedName:"Size",required:!0,xmlName:"Size",type:{name:"Number"}}}}},BlockBlobCommitBlockListExceptionHeaders:cj,BlockBlobCommitBlockListHeaders:lj,BlockBlobGetBlockListExceptionHeaders:pj,BlockBlobGetBlockListHeaders:uj,BlockBlobPutBlobFromUrlExceptionHeaders:nj,BlockBlobPutBlobFromUrlHeaders:rj,BlockBlobStageBlockExceptionHeaders:oj,BlockBlobStageBlockFromURLExceptionHeaders:aj,BlockBlobStageBlockFromURLHeaders:sj,BlockBlobStageBlockHeaders:ij,BlockBlobUploadExceptionHeaders:tj,BlockBlobUploadHeaders:ej,BlockList:Xw,BlockLookupList:Kw,ClearRange:{serializedName:"ClearRange",xmlName:"ClearRange",type:{name:"Composite",className:"ClearRange",modelProperties:{start:{serializedName:"Start",required:!0,xmlName:"Start",type:{name:"Number"}},end:{serializedName:"End",required:!0,xmlName:"End",type:{name:"Number"}}}}},ContainerAcquireLeaseExceptionHeaders:vS,ContainerAcquireLeaseHeaders:bS,ContainerBreakLeaseExceptionHeaders:ES,ContainerBreakLeaseHeaders:jS,ContainerChangeLeaseExceptionHeaders:kS,ContainerChangeLeaseHeaders:CS,ContainerCreateExceptionHeaders:Zw,ContainerCreateHeaders:Jw,ContainerDeleteExceptionHeaders:nS,ContainerDeleteHeaders:rS,ContainerFilterBlobsExceptionHeaders:gS,ContainerFilterBlobsHeaders:yS,ContainerGetAccessPolicyExceptionHeaders:aS,ContainerGetAccessPolicyHeaders:sS,ContainerGetAccountInfoExceptionHeaders:AS,ContainerGetAccountInfoHeaders:_S,ContainerGetPropertiesExceptionHeaders:tS,ContainerGetPropertiesHeaders:eS,ContainerItem:{serializedName:"ContainerItem",xmlName:"Container",type:{name:"Composite",className:"ContainerItem",modelProperties:{name:{serializedName:"Name",required:!0,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"}}}}}}},ContainerListBlobFlatSegmentExceptionHeaders:RS,ContainerListBlobFlatSegmentHeaders:TS,ContainerListBlobHierarchySegmentExceptionHeaders:PS,ContainerListBlobHierarchySegmentHeaders:OS,ContainerProperties:{serializedName:"ContainerProperties",type:{name:"Composite",className:"ContainerProperties",modelProperties:{lastModified:{serializedName:"Last-Modified",required:!0,xmlName:"Last-Modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"Etag",required:!0,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"}}}}},ContainerReleaseLeaseExceptionHeaders:wS,ContainerReleaseLeaseHeaders:xS,ContainerRenameExceptionHeaders:mS,ContainerRenameHeaders:dS,ContainerRenewLeaseExceptionHeaders:NS,ContainerRenewLeaseHeaders:SS,ContainerRestoreExceptionHeaders:pS,ContainerRestoreHeaders:uS,ContainerSetAccessPolicyExceptionHeaders:cS,ContainerSetAccessPolicyHeaders:lS,ContainerSetMetadataExceptionHeaders:oS,ContainerSetMetadataHeaders:iS,ContainerSubmitBatchExceptionHeaders:hS,ContainerSubmitBatchHeaders:fS,CorsRule:{serializedName:"CorsRule",type:{name:"Composite",className:"CorsRule",modelProperties:{allowedOrigins:{serializedName:"AllowedOrigins",required:!0,xmlName:"AllowedOrigins",type:{name:"String"}},allowedMethods:{serializedName:"AllowedMethods",required:!0,xmlName:"AllowedMethods",type:{name:"String"}},allowedHeaders:{serializedName:"AllowedHeaders",required:!0,xmlName:"AllowedHeaders",type:{name:"String"}},exposedHeaders:{serializedName:"ExposedHeaders",required:!0,xmlName:"ExposedHeaders",type:{name:"String"}},maxAgeInSeconds:{constraints:{InclusiveMinimum:0},serializedName:"MaxAgeInSeconds",required:!0,xmlName:"MaxAgeInSeconds",type:{name:"Number"}}}}},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"}}}}},FilterBlobItem:{serializedName:"FilterBlobItem",xmlName:"Blob",type:{name:"Composite",className:"FilterBlobItem",modelProperties:{name:{serializedName:"Name",required:!0,xmlName:"Name",type:{name:"String"}},containerName:{serializedName:"ContainerName",required:!0,xmlName:"ContainerName",type:{name:"String"}},tags:{serializedName:"Tags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags"}}}}},FilterBlobSegment:$w,GeoReplication:{serializedName:"GeoReplication",type:{name:"Composite",className:"GeoReplication",modelProperties:{status:{serializedName:"Status",required:!0,xmlName:"Status",type:{name:"Enum",allowedValues:["live","bootstrap","unavailable"]}},lastSyncOn:{serializedName:"LastSyncTime",required:!0,xmlName:"LastSyncTime",type:{name:"DateTimeRfc1123"}}}}},JsonTextConfiguration:{serializedName:"JsonTextConfiguration",xmlName:"JsonTextConfiguration",type:{name:"Composite",className:"JsonTextConfiguration",modelProperties:{recordSeparator:{serializedName:"RecordSeparator",xmlName:"RecordSeparator",type:{name:"String"}}}}},KeyInfo:{serializedName:"KeyInfo",type:{name:"Composite",className:"KeyInfo",modelProperties:{startsOn:{serializedName:"Start",required:!0,xmlName:"Start",type:{name:"String"}},expiresOn:{serializedName:"Expiry",required:!0,xmlName:"Expiry",type:{name:"String"}}}}},ListBlobsFlatSegmentResponse:Gw,ListBlobsHierarchySegmentResponse:Ww,ListContainersSegmentResponse:{serializedName:"ListContainersSegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListContainersSegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:!0,xmlName:"ServiceEndpoint",xmlIsAttribute:!0,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:!0,xmlName:"Containers",xmlIsWrapped:!0,xmlElementName:"Container",type:{name:"Sequence",element:{type:{name:"Composite",className:"ContainerItem"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}},Logging:{serializedName:"Logging",type:{name:"Composite",className:"Logging",modelProperties:{version:{serializedName:"Version",required:!0,xmlName:"Version",type:{name:"String"}},deleteProperty:{serializedName:"Delete",required:!0,xmlName:"Delete",type:{name:"Boolean"}},read:{serializedName:"Read",required:!0,xmlName:"Read",type:{name:"Boolean"}},write:{serializedName:"Write",required:!0,xmlName:"Write",type:{name:"Boolean"}},retentionPolicy:{serializedName:"RetentionPolicy",xmlName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}}}}},Metrics:{serializedName:"Metrics",type:{name:"Composite",className:"Metrics",modelProperties:{version:{serializedName:"Version",xmlName:"Version",type:{name:"String"}},enabled:{serializedName:"Enabled",required:!0,xmlName:"Enabled",type:{name:"Boolean"}},includeAPIs:{serializedName:"IncludeAPIs",xmlName:"IncludeAPIs",type:{name:"Boolean"}},retentionPolicy:{serializedName:"RetentionPolicy",xmlName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}}}}},PageBlobClearPagesExceptionHeaders:AN,PageBlobClearPagesHeaders:_N,PageBlobCopyIncrementalExceptionHeaders:VN,PageBlobCopyIncrementalHeaders:$N,PageBlobCreateExceptionHeaders:RN,PageBlobCreateHeaders:TN,PageBlobGetPageRangesDiffExceptionHeaders:LN,PageBlobGetPageRangesDiffHeaders:BN,PageBlobGetPageRangesExceptionHeaders:zN,PageBlobGetPageRangesHeaders:DN,PageBlobResizeExceptionHeaders:UN,PageBlobResizeHeaders:qN,PageBlobUpdateSequenceNumberExceptionHeaders:FN,PageBlobUpdateSequenceNumberHeaders:HN,PageBlobUploadPagesExceptionHeaders:PN,PageBlobUploadPagesFromURLExceptionHeaders:MN,PageBlobUploadPagesFromURLHeaders:IN,PageBlobUploadPagesHeaders:ON,PageList:Qw,PageRange:{serializedName:"PageRange",xmlName:"PageRange",type:{name:"Composite",className:"PageRange",modelProperties:{start:{serializedName:"Start",required:!0,xmlName:"Start",type:{name:"Number"}},end:{serializedName:"End",required:!0,xmlName:"End",type:{name:"Number"}}}}},QueryFormat:{serializedName:"QueryFormat",type:{name:"Composite",className:"QueryFormat",modelProperties:{type:{serializedName:"Type",required:!0,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:"any"}}}}},QueryRequest:Yw,QuerySerialization:{serializedName:"QuerySerialization",type:{name:"Composite",className:"QuerySerialization",modelProperties:{format:{serializedName:"Format",xmlName:"Format",type:{name:"Composite",className:"QueryFormat"}}}}},RetentionPolicy:{serializedName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy",modelProperties:{enabled:{serializedName:"Enabled",required:!0,xmlName:"Enabled",type:{name:"Boolean"}},days:{constraints:{InclusiveMinimum:1},serializedName:"Days",xmlName:"Days",type:{name:"Number"}}}}},ServiceFilterBlobsExceptionHeaders:{serializedName:"Service_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ServiceFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},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"}}}}},ServiceGetAccountInfoExceptionHeaders:{serializedName:"Service_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ServiceGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},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"}}}}},ServiceGetPropertiesExceptionHeaders:{serializedName:"Service_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},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"}}}}},ServiceGetStatisticsExceptionHeaders:{serializedName:"Service_getStatisticsExceptionHeaders",type:{name:"Composite",className:"ServiceGetStatisticsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},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"}}}}},ServiceGetUserDelegationKeyExceptionHeaders:{serializedName:"Service_getUserDelegationKeyExceptionHeaders",type:{name:"Composite",className:"ServiceGetUserDelegationKeyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},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"}}}}},ServiceListContainersSegmentExceptionHeaders:{serializedName:"Service_listContainersSegmentExceptionHeaders",type:{name:"Composite",className:"ServiceListContainersSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},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"}}}}},ServiceSetPropertiesExceptionHeaders:{serializedName:"Service_setPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceSetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},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"}}}}},ServiceSubmitBatchExceptionHeaders:{serializedName:"Service_submitBatchExceptionHeaders",type:{name:"Composite",className:"ServiceSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}},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"}}}}},SignedIdentifier:{serializedName:"SignedIdentifier",xmlName:"SignedIdentifier",type:{name:"Composite",className:"SignedIdentifier",modelProperties:{id:{serializedName:"Id",required:!0,xmlName:"Id",type:{name:"String"}},accessPolicy:{serializedName:"AccessPolicy",xmlName:"AccessPolicy",type:{name:"Composite",className:"AccessPolicy"}}}}},StaticWebsite:{serializedName:"StaticWebsite",type:{name:"Composite",className:"StaticWebsite",modelProperties:{enabled:{serializedName:"Enabled",required:!0,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"}}}}},StorageError:Fw,UserDelegationKey:{serializedName:"UserDelegationKey",type:{name:"Composite",className:"UserDelegationKey",modelProperties:{signedObjectId:{serializedName:"SignedOid",required:!0,xmlName:"SignedOid",type:{name:"String"}},signedTenantId:{serializedName:"SignedTid",required:!0,xmlName:"SignedTid",type:{name:"String"}},signedStartsOn:{serializedName:"SignedStart",required:!0,xmlName:"SignedStart",type:{name:"String"}},signedExpiresOn:{serializedName:"SignedExpiry",required:!0,xmlName:"SignedExpiry",type:{name:"String"}},signedService:{serializedName:"SignedService",required:!0,xmlName:"SignedService",type:{name:"String"}},signedVersion:{serializedName:"SignedVersion",required:!0,xmlName:"SignedVersion",type:{name:"String"}},value:{serializedName:"Value",required:!0,xmlName:"Value",type:{name:"String"}}}}}},Symbol.toStringTag,{value:"Module"})),mj={parameterPath:["options","contentType"],mapper:{defaultValue:"application/xml",isConstant:!0,serializedName:"Content-Type",type:{name:"String"}}},fj={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:!0,serializedName:"Accept",type:{name:"String"}}},hj={parameterPath:"url",mapper:{serializedName:"url",required:!0,xmlName:"url",type:{name:"String"}},skipEncoding:!0},yj={parameterPath:"comp",mapper:{defaultValue:"properties",isConstant:!0,serializedName:"comp",type:{name:"String"}}},gj={parameterPath:["options","timeoutInSeconds"],mapper:{constraints:{InclusiveMinimum:0},serializedName:"timeout",xmlName:"timeout",type:{name:"Number"}}},bj={parameterPath:"version",mapper:{defaultValue:"2023-11-03",isConstant:!0,serializedName:"x-ms-version",type:{name:"String"}}},vj={parameterPath:["options","requestId"],mapper:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}}},xj={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:!0,serializedName:"Accept",type:{name:"String"}}},wj={parameterPath:"comp",mapper:{defaultValue:"list",isConstant:!0,serializedName:"comp",type:{name:"String"}}},Sj={parameterPath:["options","prefix"],mapper:{serializedName:"prefix",xmlName:"prefix",type:{name:"String"}}},Nj={parameterPath:["options","marker"],mapper:{serializedName:"marker",xmlName:"marker",type:{name:"String"}}},jj={parameterPath:["options","maxPageSize"],mapper:{constraints:{InclusiveMinimum:1},serializedName:"maxresults",xmlName:"maxresults",type:{name:"Number"}}};Bv.Csv;const Ej={parameterPath:"restype",mapper:{defaultValue:"account",isConstant:!0,serializedName:"restype",type:{name:"String"}}},Cj={parameterPath:"contentLength",mapper:{serializedName:"Content-Length",required:!0,xmlName:"Content-Length",type:{name:"Number"}}},kj={parameterPath:"restype",mapper:{defaultValue:"container",isConstant:!0,serializedName:"restype",type:{name:"String"}}},Tj={parameterPath:["options","metadata"],mapper:{serializedName:"x-ms-meta",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}},headerCollectionPrefix:"x-ms-meta-"}},Rj={parameterPath:["options","access"],mapper:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}}},Oj={parameterPath:["options","leaseAccessConditions","leaseId"],mapper:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}}},Pj={parameterPath:["options","modifiedAccessConditions","ifModifiedSince"],mapper:{serializedName:"If-Modified-Since",xmlName:"If-Modified-Since",type:{name:"DateTimeRfc1123"}}},_j={parameterPath:["options","modifiedAccessConditions","ifUnmodifiedSince"],mapper:{serializedName:"If-Unmodified-Since",xmlName:"If-Unmodified-Since",type:{name:"DateTimeRfc1123"}}},Aj={parameterPath:"comp",mapper:{defaultValue:"metadata",isConstant:!0,serializedName:"comp",type:{name:"String"}}},Ij={parameterPath:"comp",mapper:{defaultValue:"acl",isConstant:!0,serializedName:"comp",type:{name:"String"}}},Mj={parameterPath:"comp",mapper:{defaultValue:"undelete",isConstant:!0,serializedName:"comp",type:{name:"String"}}},Dj={parameterPath:"comp",mapper:{defaultValue:"lease",isConstant:!0,serializedName:"comp",type:{name:"String"}}},zj={parameterPath:"action",mapper:{defaultValue:"acquire",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},Bj={parameterPath:["options","duration"],mapper:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Number"}}},Lj={parameterPath:["options","proposedLeaseId"],mapper:{serializedName:"x-ms-proposed-lease-id",xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}},qj={parameterPath:"action",mapper:{defaultValue:"release",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},Uj={parameterPath:"leaseId",mapper:{serializedName:"x-ms-lease-id",required:!0,xmlName:"x-ms-lease-id",type:{name:"String"}}},Hj={parameterPath:"action",mapper:{defaultValue:"renew",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},Fj={parameterPath:"action",mapper:{defaultValue:"break",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},$j={parameterPath:["options","breakPeriod"],mapper:{serializedName:"x-ms-lease-break-period",xmlName:"x-ms-lease-break-period",type:{name:"Number"}}},Vj={parameterPath:"action",mapper:{defaultValue:"change",isConstant:!0,serializedName:"x-ms-lease-action",type:{name:"String"}}},Gj={parameterPath:"proposedLeaseId",mapper:{serializedName:"x-ms-proposed-lease-id",required:!0,xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}},Wj={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:Bv.Csv},Kj={parameterPath:["options","snapshot"],mapper:{serializedName:"snapshot",xmlName:"snapshot",type:{name:"String"}}},Xj={parameterPath:["options","versionId"],mapper:{serializedName:"versionid",xmlName:"versionid",type:{name:"String"}}},Qj={parameterPath:["options","range"],mapper:{serializedName:"x-ms-range",xmlName:"x-ms-range",type:{name:"String"}}},Yj={parameterPath:["options","cpkInfo","encryptionKey"],mapper:{serializedName:"x-ms-encryption-key",xmlName:"x-ms-encryption-key",type:{name:"String"}}},Jj={parameterPath:["options","cpkInfo","encryptionKeySha256"],mapper:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}}},Zj={parameterPath:["options","cpkInfo","encryptionAlgorithm"],mapper:{serializedName:"x-ms-encryption-algorithm",xmlName:"x-ms-encryption-algorithm",type:{name:"String"}}},eE={parameterPath:["options","modifiedAccessConditions","ifMatch"],mapper:{serializedName:"If-Match",xmlName:"If-Match",type:{name:"String"}}},tE={parameterPath:["options","modifiedAccessConditions","ifNoneMatch"],mapper:{serializedName:"If-None-Match",xmlName:"If-None-Match",type:{name:"String"}}},rE={parameterPath:["options","modifiedAccessConditions","ifTags"],mapper:{serializedName:"x-ms-if-tags",xmlName:"x-ms-if-tags",type:{name:"String"}}},nE={parameterPath:["options","blobHttpHeaders","blobCacheControl"],mapper:{serializedName:"x-ms-blob-cache-control",xmlName:"x-ms-blob-cache-control",type:{name:"String"}}},iE={parameterPath:["options","blobHttpHeaders","blobContentType"],mapper:{serializedName:"x-ms-blob-content-type",xmlName:"x-ms-blob-content-type",type:{name:"String"}}},oE={parameterPath:["options","blobHttpHeaders","blobContentMD5"],mapper:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}}},sE={parameterPath:["options","blobHttpHeaders","blobContentEncoding"],mapper:{serializedName:"x-ms-blob-content-encoding",xmlName:"x-ms-blob-content-encoding",type:{name:"String"}}},aE={parameterPath:["options","blobHttpHeaders","blobContentLanguage"],mapper:{serializedName:"x-ms-blob-content-language",xmlName:"x-ms-blob-content-language",type:{name:"String"}}},lE={parameterPath:["options","blobHttpHeaders","blobContentDisposition"],mapper:{serializedName:"x-ms-blob-content-disposition",xmlName:"x-ms-blob-content-disposition",type:{name:"String"}}},cE={parameterPath:"comp",mapper:{defaultValue:"immutabilityPolicies",isConstant:!0,serializedName:"comp",type:{name:"String"}}},uE={parameterPath:["options","immutabilityPolicyExpiry"],mapper:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}}},pE={parameterPath:["options","immutabilityPolicyMode"],mapper:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}}},dE={parameterPath:["options","encryptionScope"],mapper:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}}},mE={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"]}}},fE={parameterPath:["options","rehydratePriority"],mapper:{serializedName:"x-ms-rehydrate-priority",xmlName:"x-ms-rehydrate-priority",type:{name:"Enum",allowedValues:["High","Standard"]}}},hE={parameterPath:["options","sourceModifiedAccessConditions","sourceIfModifiedSince"],mapper:{serializedName:"x-ms-source-if-modified-since",xmlName:"x-ms-source-if-modified-since",type:{name:"DateTimeRfc1123"}}},yE={parameterPath:["options","sourceModifiedAccessConditions","sourceIfUnmodifiedSince"],mapper:{serializedName:"x-ms-source-if-unmodified-since",xmlName:"x-ms-source-if-unmodified-since",type:{name:"DateTimeRfc1123"}}},gE={parameterPath:["options","sourceModifiedAccessConditions","sourceIfMatch"],mapper:{serializedName:"x-ms-source-if-match",xmlName:"x-ms-source-if-match",type:{name:"String"}}},bE={parameterPath:["options","sourceModifiedAccessConditions","sourceIfNoneMatch"],mapper:{serializedName:"x-ms-source-if-none-match",xmlName:"x-ms-source-if-none-match",type:{name:"String"}}},vE={parameterPath:["options","sourceModifiedAccessConditions","sourceIfTags"],mapper:{serializedName:"x-ms-source-if-tags",xmlName:"x-ms-source-if-tags",type:{name:"String"}}},xE={parameterPath:"copySource",mapper:{serializedName:"x-ms-copy-source",required:!0,xmlName:"x-ms-copy-source",type:{name:"String"}}},wE={parameterPath:["options","blobTagsString"],mapper:{serializedName:"x-ms-tags",xmlName:"x-ms-tags",type:{name:"String"}}},SE={parameterPath:["options","legalHold"],mapper:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}},NE={parameterPath:["options","sourceContentMD5"],mapper:{serializedName:"x-ms-source-content-md5",xmlName:"x-ms-source-content-md5",type:{name:"ByteArray"}}},jE={parameterPath:["options","copySourceAuthorization"],mapper:{serializedName:"x-ms-copy-source-authorization",xmlName:"x-ms-copy-source-authorization",type:{name:"String"}}},EE={parameterPath:["options","copySourceTags"],mapper:{serializedName:"x-ms-copy-source-tag-option",xmlName:"x-ms-copy-source-tag-option",type:{name:"Enum",allowedValues:["REPLACE","COPY"]}}},CE={parameterPath:["options","queryRequest"],mapper:Yw},kE={parameterPath:"comp",mapper:{defaultValue:"tags",isConstant:!0,serializedName:"comp",type:{name:"String"}}},TE={parameterPath:["options","tags"],mapper:Vw},RE={parameterPath:["options","transactionalContentMD5"],mapper:{serializedName:"Content-MD5",xmlName:"Content-MD5",type:{name:"ByteArray"}}},OE={parameterPath:["options","transactionalContentCrc64"],mapper:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}},PE={parameterPath:"blobContentLength",mapper:{serializedName:"x-ms-blob-content-length",required:!0,xmlName:"x-ms-blob-content-length",type:{name:"Number"}}},_E={parameterPath:["options","blobSequenceNumber"],mapper:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}}},AE={parameterPath:["options","contentType"],mapper:{defaultValue:"application/octet-stream",isConstant:!0,serializedName:"Content-Type",type:{name:"String"}}},IE={parameterPath:"body",mapper:{serializedName:"body",required:!0,xmlName:"body",type:{name:"Stream"}}},ME={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:!0,serializedName:"Accept",type:{name:"String"}}},DE={parameterPath:"comp",mapper:{defaultValue:"page",isConstant:!0,serializedName:"comp",type:{name:"String"}}},zE={parameterPath:"pageWrite",mapper:{defaultValue:"update",isConstant:!0,serializedName:"x-ms-page-write",type:{name:"String"}}},BE={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThanOrEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-le",xmlName:"x-ms-if-sequence-number-le",type:{name:"Number"}}},LE={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThan"],mapper:{serializedName:"x-ms-if-sequence-number-lt",xmlName:"x-ms-if-sequence-number-lt",type:{name:"Number"}}},qE={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-eq",xmlName:"x-ms-if-sequence-number-eq",type:{name:"Number"}}},UE={parameterPath:"sourceUrl",mapper:{serializedName:"x-ms-copy-source",required:!0,xmlName:"x-ms-copy-source",type:{name:"String"}}},HE={parameterPath:["options","sourceContentCrc64"],mapper:{serializedName:"x-ms-source-content-crc64",xmlName:"x-ms-source-content-crc64",type:{name:"ByteArray"}}},FE={parameterPath:"comp",mapper:{defaultValue:"pagelist",isConstant:!0,serializedName:"comp",type:{name:"String"}}},$E={parameterPath:"comp",mapper:{defaultValue:"appendblock",isConstant:!0,serializedName:"comp",type:{name:"String"}}},VE={parameterPath:["options","appendPositionAccessConditions","maxSize"],mapper:{serializedName:"x-ms-blob-condition-maxsize",xmlName:"x-ms-blob-condition-maxsize",type:{name:"Number"}}},GE={parameterPath:["options","appendPositionAccessConditions","appendPosition"],mapper:{serializedName:"x-ms-blob-condition-appendpos",xmlName:"x-ms-blob-condition-appendpos",type:{name:"Number"}}},WE={parameterPath:["options","sourceRange"],mapper:{serializedName:"x-ms-source-range",xmlName:"x-ms-source-range",type:{name:"String"}}},KE={parameterPath:"blobType",mapper:{defaultValue:"BlockBlob",isConstant:!0,serializedName:"x-ms-blob-type",type:{name:"String"}}},XE={parameterPath:"comp",mapper:{defaultValue:"block",isConstant:!0,serializedName:"comp",type:{name:"String"}}},QE={parameterPath:"blockId",mapper:{serializedName:"blockid",required:!0,xmlName:"blockid",type:{name:"String"}}},YE={parameterPath:"blocks",mapper:Kw},JE={parameterPath:"comp",mapper:{defaultValue:"blocklist",isConstant:!0,serializedName:"comp",type:{name:"String"}}};class ZE{constructor(e){this.client=e}create(e){const t={options:Tb(e||{})};return this.client.sendOperationRequest(t,tC)}getProperties(e){const t={options:Tb(e||{})};return this.client.sendOperationRequest(t,rC)}delete(e){const t={options:Tb(e||{})};return this.client.sendOperationRequest(t,nC)}setMetadata(e){const t={options:Tb(e||{})};return this.client.sendOperationRequest(t,iC)}getAccessPolicy(e){const t={options:Tb(e||{})};return this.client.sendOperationRequest(t,oC)}setAccessPolicy(e){const t={options:Tb(e||{})};return this.client.sendOperationRequest(t,sC)}restore(e){const t={options:Tb(e||{})};return this.client.sendOperationRequest(t,aC)}rename(e,t){const r={sourceContainerName:e,options:Tb(t||{})};return this.client.sendOperationRequest(r,lC)}submitBatch(e,t,r,n){const i={contentLength:e,multipartContentType:t,body:r,options:Tb(n||{})};return this.client.sendOperationRequest(i,cC)}filterBlobs(e){const t={options:Tb(e||{})};return this.client.sendOperationRequest(t,uC)}acquireLease(e){const t={options:Tb(e||{})};return this.client.sendOperationRequest(t,pC)}releaseLease(e,t){const r={leaseId:e,options:Tb(t||{})};return this.client.sendOperationRequest(r,dC)}renewLease(e,t){const r={leaseId:e,options:Tb(t||{})};return this.client.sendOperationRequest(r,mC)}breakLease(e){const t={options:Tb(e||{})};return this.client.sendOperationRequest(t,fC)}changeLease(e,t,r){const n={leaseId:e,proposedLeaseId:t,options:Tb(r||{})};return this.client.sendOperationRequest(n,hC)}listBlobFlatSegment(e){const t={options:Tb(e||{})};return this.client.sendOperationRequest(t,yC)}listBlobHierarchySegment(e,t){const r={delimiter:e,options:Tb(t||{})};return this.client.sendOperationRequest(r,gC)}getAccountInfo(e){const t={options:Tb(e||{})};return this.client.sendOperationRequest(t,bC)}}const eC=new Kg(dj,!0),tC={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:Jw},default:{bodyMapper:Fw,headersMapper:Zw}},queryParameters:[gj,kj],urlParameters:[hj],headerParameters:[bj,vj,xj,Tj,Rj,{parameterPath:["options","containerEncryptionScope","defaultEncryptionScope"],mapper:{serializedName:"x-ms-default-encryption-scope",xmlName:"x-ms-default-encryption-scope",type:{name:"String"}}},{parameterPath:["options","containerEncryptionScope","preventEncryptionScopeOverride"],mapper:{serializedName:"x-ms-deny-encryption-scope-override",xmlName:"x-ms-deny-encryption-scope-override",type:{name:"Boolean"}}}],isXML:!0,serializer:eC},rC={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:eS},default:{bodyMapper:Fw,headersMapper:tS}},queryParameters:[gj,kj],urlParameters:[hj],headerParameters:[bj,vj,xj,Oj],isXML:!0,serializer:eC},nC={path:"/{containerName}",httpMethod:"DELETE",responses:{202:{headersMapper:rS},default:{bodyMapper:Fw,headersMapper:nS}},queryParameters:[gj,kj],urlParameters:[hj],headerParameters:[bj,vj,xj,Oj,Pj,_j],isXML:!0,serializer:eC},iC={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:iS},default:{bodyMapper:Fw,headersMapper:oS}},queryParameters:[gj,kj,Aj],urlParameters:[hj],headerParameters:[bj,vj,xj,Tj,Oj,Pj],isXML:!0,serializer:eC},oC={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:{type:{name:"Sequence",element:{type:{name:"Composite",className:"SignedIdentifier"}}},serializedName:"SignedIdentifiers",xmlName:"SignedIdentifiers",xmlIsWrapped:!0,xmlElementName:"SignedIdentifier"},headersMapper:sS},default:{bodyMapper:Fw,headersMapper:aS}},queryParameters:[gj,kj,Ij],urlParameters:[hj],headerParameters:[bj,vj,xj,Oj],isXML:!0,serializer:eC},sC={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:lS},default:{bodyMapper:Fw,headersMapper:cS}},requestBody:{parameterPath:["options","containerAcl"],mapper:{serializedName:"containerAcl",xmlName:"SignedIdentifiers",xmlIsWrapped:!0,xmlElementName:"SignedIdentifier",type:{name:"Sequence",element:{type:{name:"Composite",className:"SignedIdentifier"}}}}},queryParameters:[gj,kj,Ij],urlParameters:[hj],headerParameters:[mj,fj,bj,vj,Rj,Oj,Pj,_j],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:eC},aC={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:uS},default:{bodyMapper:Fw,headersMapper:pS}},queryParameters:[gj,kj,Mj],urlParameters:[hj],headerParameters:[bj,vj,xj,{parameterPath:["options","deletedContainerName"],mapper:{serializedName:"x-ms-deleted-container-name",xmlName:"x-ms-deleted-container-name",type:{name:"String"}}},{parameterPath:["options","deletedContainerVersion"],mapper:{serializedName:"x-ms-deleted-container-version",xmlName:"x-ms-deleted-container-version",type:{name:"String"}}}],isXML:!0,serializer:eC},lC={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:dS},default:{bodyMapper:Fw,headersMapper:mS}},queryParameters:[gj,kj,{parameterPath:"comp",mapper:{defaultValue:"rename",isConstant:!0,serializedName:"comp",type:{name:"String"}}}],urlParameters:[hj],headerParameters:[bj,vj,xj,{parameterPath:"sourceContainerName",mapper:{serializedName:"x-ms-source-container-name",required:!0,xmlName:"x-ms-source-container-name",type:{name:"String"}}},{parameterPath:["options","sourceLeaseId"],mapper:{serializedName:"x-ms-source-lease-id",xmlName:"x-ms-source-lease-id",type:{name:"String"}}}],isXML:!0,serializer:eC},cC={path:"/{containerName}",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:fS},default:{bodyMapper:Fw,headersMapper:hS}},requestBody:{parameterPath:"body",mapper:{serializedName:"body",required:!0,xmlName:"body",type:{name:"Stream"}}},queryParameters:[gj,{parameterPath:"comp",mapper:{defaultValue:"batch",isConstant:!0,serializedName:"comp",type:{name:"String"}}},kj],urlParameters:[hj],headerParameters:[mj,fj,bj,vj,Cj,{parameterPath:"multipartContentType",mapper:{serializedName:"Content-Type",required:!0,xmlName:"Content-Type",type:{name:"String"}}}],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:eC},uC={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:$w,headersMapper:yS},default:{bodyMapper:Fw,headersMapper:gS}},queryParameters:[gj,Nj,jj,{parameterPath:"comp",mapper:{defaultValue:"blobs",isConstant:!0,serializedName:"comp",type:{name:"String"}}},{parameterPath:["options","where"],mapper:{serializedName:"where",xmlName:"where",type:{name:"String"}}},kj],urlParameters:[hj],headerParameters:[bj,vj,xj],isXML:!0,serializer:eC},pC={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:bS},default:{bodyMapper:Fw,headersMapper:vS}},queryParameters:[gj,kj,Dj],urlParameters:[hj],headerParameters:[bj,vj,xj,Pj,_j,zj,Bj,Lj],isXML:!0,serializer:eC},dC={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:xS},default:{bodyMapper:Fw,headersMapper:wS}},queryParameters:[gj,kj,Dj],urlParameters:[hj],headerParameters:[bj,vj,xj,Pj,_j,qj,Uj],isXML:!0,serializer:eC},mC={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:SS},default:{bodyMapper:Fw,headersMapper:NS}},queryParameters:[gj,kj,Dj],urlParameters:[hj],headerParameters:[bj,vj,xj,Pj,_j,Uj,Hj],isXML:!0,serializer:eC},fC={path:"/{containerName}",httpMethod:"PUT",responses:{202:{headersMapper:jS},default:{bodyMapper:Fw,headersMapper:ES}},queryParameters:[gj,kj,Dj],urlParameters:[hj],headerParameters:[bj,vj,xj,Pj,_j,Fj,$j],isXML:!0,serializer:eC},hC={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:CS},default:{bodyMapper:Fw,headersMapper:kS}},queryParameters:[gj,kj,Dj],urlParameters:[hj],headerParameters:[bj,vj,xj,Pj,_j,Uj,Vj,Gj],isXML:!0,serializer:eC},yC={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:Gw,headersMapper:TS},default:{bodyMapper:Fw,headersMapper:RS}},queryParameters:[gj,wj,Sj,Nj,jj,kj,Wj],urlParameters:[hj],headerParameters:[bj,vj,xj],isXML:!0,serializer:eC},gC={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:Ww,headersMapper:OS},default:{bodyMapper:Fw,headersMapper:PS}},queryParameters:[gj,wj,Sj,Nj,jj,kj,Wj,{parameterPath:"delimiter",mapper:{serializedName:"delimiter",required:!0,xmlName:"delimiter",type:{name:"String"}}}],urlParameters:[hj],headerParameters:[bj,vj,xj],isXML:!0,serializer:eC},bC={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:_S},default:{bodyMapper:Fw,headersMapper:AS}},queryParameters:[yj,Ej],urlParameters:[hj],headerParameters:[bj,xj],isXML:!0,serializer:eC};let vC=class{constructor(e){this.client=e}download(e){const t={options:Tb(e||{})};return this.client.sendOperationRequest(t,wC)}getProperties(e){const t={options:Tb(e||{})};return this.client.sendOperationRequest(t,SC)}delete(e){const t={options:Tb(e||{})};return this.client.sendOperationRequest(t,NC)}undelete(e){const t={options:Tb(e||{})};return this.client.sendOperationRequest(t,jC)}setExpiry(e,t){const r={expiryOptions:e,options:Tb(t||{})};return this.client.sendOperationRequest(r,EC)}setHttpHeaders(e){const t={options:Tb(e||{})};return this.client.sendOperationRequest(t,CC)}setImmutabilityPolicy(e){const t={options:Tb(e||{})};return this.client.sendOperationRequest(t,kC)}deleteImmutabilityPolicy(e){const t={options:Tb(e||{})};return this.client.sendOperationRequest(t,TC)}setLegalHold(e,t){const r={legalHold:e,options:Tb(t||{})};return this.client.sendOperationRequest(r,RC)}setMetadata(e){const t={options:Tb(e||{})};return this.client.sendOperationRequest(t,OC)}acquireLease(e){const t={options:Tb(e||{})};return this.client.sendOperationRequest(t,PC)}releaseLease(e,t){const r={leaseId:e,options:Tb(t||{})};return this.client.sendOperationRequest(r,_C)}renewLease(e,t){const r={leaseId:e,options:Tb(t||{})};return this.client.sendOperationRequest(r,AC)}changeLease(e,t,r){const n={leaseId:e,proposedLeaseId:t,options:Tb(r||{})};return this.client.sendOperationRequest(n,IC)}breakLease(e){const t={options:Tb(e||{})};return this.client.sendOperationRequest(t,MC)}createSnapshot(e){const t={options:Tb(e||{})};return this.client.sendOperationRequest(t,DC)}startCopyFromURL(e,t){const r={copySource:e,options:Tb(t||{})};return this.client.sendOperationRequest(r,zC)}copyFromURL(e,t){const r={copySource:e,options:Tb(t||{})};return this.client.sendOperationRequest(r,BC)}abortCopyFromURL(e,t){const r={copyId:e,options:Tb(t||{})};return this.client.sendOperationRequest(r,LC)}setTier(e,t){const r={tier:e,options:Tb(t||{})};return this.client.sendOperationRequest(r,qC)}getAccountInfo(e){const t={options:Tb(e||{})};return this.client.sendOperationRequest(t,UC)}query(e){const t={options:Tb(e||{})};return this.client.sendOperationRequest(t,HC)}getTags(e){const t={options:Tb(e||{})};return this.client.sendOperationRequest(t,FC)}setTags(e){const t={options:Tb(e||{})};return this.client.sendOperationRequest(t,$C)}};const xC=new Kg(dj,!0),wC={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:IS},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:IS},default:{bodyMapper:Fw,headersMapper:MS}},queryParameters:[gj,Kj,Xj],urlParameters:[hj],headerParameters:[bj,vj,xj,Oj,Pj,_j,Qj,{parameterPath:["options","rangeGetContentMD5"],mapper:{serializedName:"x-ms-range-get-content-md5",xmlName:"x-ms-range-get-content-md5",type:{name:"Boolean"}}},{parameterPath:["options","rangeGetContentCRC64"],mapper:{serializedName:"x-ms-range-get-content-crc64",xmlName:"x-ms-range-get-content-crc64",type:{name:"Boolean"}}},Yj,Jj,Zj,eE,tE,rE],isXML:!0,serializer:xC},SC={path:"/{containerName}/{blob}",httpMethod:"HEAD",responses:{200:{headersMapper:DS},default:{bodyMapper:Fw,headersMapper:zS}},queryParameters:[gj,Kj,Xj],urlParameters:[hj],headerParameters:[bj,vj,xj,Oj,Pj,_j,Yj,Jj,Zj,eE,tE,rE],isXML:!0,serializer:xC},NC={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{202:{headersMapper:BS},default:{bodyMapper:Fw,headersMapper:LS}},queryParameters:[gj,Kj,Xj,{parameterPath:["options","blobDeleteType"],mapper:{serializedName:"deletetype",xmlName:"deletetype",type:{name:"String"}}}],urlParameters:[hj],headerParameters:[bj,vj,xj,Oj,Pj,_j,eE,tE,rE,{parameterPath:["options","deleteSnapshots"],mapper:{serializedName:"x-ms-delete-snapshots",xmlName:"x-ms-delete-snapshots",type:{name:"Enum",allowedValues:["include","only"]}}}],isXML:!0,serializer:xC},jC={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:qS},default:{bodyMapper:Fw,headersMapper:US}},queryParameters:[gj,Mj],urlParameters:[hj],headerParameters:[bj,vj,xj],isXML:!0,serializer:xC},EC={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:HS},default:{bodyMapper:Fw,headersMapper:FS}},queryParameters:[gj,{parameterPath:"comp",mapper:{defaultValue:"expiry",isConstant:!0,serializedName:"comp",type:{name:"String"}}}],urlParameters:[hj],headerParameters:[bj,vj,xj,{parameterPath:"expiryOptions",mapper:{serializedName:"x-ms-expiry-option",required:!0,xmlName:"x-ms-expiry-option",type:{name:"String"}}},{parameterPath:["options","expiresOn"],mapper:{serializedName:"x-ms-expiry-time",xmlName:"x-ms-expiry-time",type:{name:"String"}}}],isXML:!0,serializer:xC},CC={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:$S},default:{bodyMapper:Fw,headersMapper:VS}},queryParameters:[yj,gj],urlParameters:[hj],headerParameters:[bj,vj,xj,Oj,Pj,_j,eE,tE,rE,nE,iE,oE,sE,aE,lE],isXML:!0,serializer:xC},kC={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:GS},default:{bodyMapper:Fw,headersMapper:WS}},queryParameters:[gj,cE],urlParameters:[hj],headerParameters:[bj,vj,xj,_j,uE,pE],isXML:!0,serializer:xC},TC={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{200:{headersMapper:KS},default:{bodyMapper:Fw,headersMapper:XS}},queryParameters:[gj,cE],urlParameters:[hj],headerParameters:[bj,vj,xj],isXML:!0,serializer:xC},RC={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:QS},default:{bodyMapper:Fw,headersMapper:YS}},queryParameters:[gj,{parameterPath:"comp",mapper:{defaultValue:"legalhold",isConstant:!0,serializedName:"comp",type:{name:"String"}}}],urlParameters:[hj],headerParameters:[bj,vj,xj,{parameterPath:"legalHold",mapper:{serializedName:"x-ms-legal-hold",required:!0,xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}}],isXML:!0,serializer:xC},OC={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:JS},default:{bodyMapper:Fw,headersMapper:ZS}},queryParameters:[gj,Aj],urlParameters:[hj],headerParameters:[bj,vj,xj,Tj,Oj,Pj,_j,Yj,Jj,Zj,eE,tE,rE,dE],isXML:!0,serializer:xC},PC={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:eN},default:{bodyMapper:Fw,headersMapper:tN}},queryParameters:[gj,Dj],urlParameters:[hj],headerParameters:[bj,vj,xj,Pj,_j,zj,Bj,Lj,eE,tE,rE],isXML:!0,serializer:xC},_C={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:rN},default:{bodyMapper:Fw,headersMapper:nN}},queryParameters:[gj,Dj],urlParameters:[hj],headerParameters:[bj,vj,xj,Pj,_j,qj,Uj,eE,tE,rE],isXML:!0,serializer:xC},AC={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:iN},default:{bodyMapper:Fw,headersMapper:oN}},queryParameters:[gj,Dj],urlParameters:[hj],headerParameters:[bj,vj,xj,Pj,_j,Uj,Hj,eE,tE,rE],isXML:!0,serializer:xC},IC={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:sN},default:{bodyMapper:Fw,headersMapper:aN}},queryParameters:[gj,Dj],urlParameters:[hj],headerParameters:[bj,vj,xj,Pj,_j,Uj,Vj,Gj,eE,tE,rE],isXML:!0,serializer:xC},MC={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:lN},default:{bodyMapper:Fw,headersMapper:cN}},queryParameters:[gj,Dj],urlParameters:[hj],headerParameters:[bj,vj,xj,Pj,_j,Fj,$j,eE,tE,rE],isXML:!0,serializer:xC},DC={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:uN},default:{bodyMapper:Fw,headersMapper:pN}},queryParameters:[gj,{parameterPath:"comp",mapper:{defaultValue:"snapshot",isConstant:!0,serializedName:"comp",type:{name:"String"}}}],urlParameters:[hj],headerParameters:[bj,vj,xj,Tj,Oj,Pj,_j,Yj,Jj,Zj,eE,tE,rE,dE],isXML:!0,serializer:xC},zC={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:dN},default:{bodyMapper:Fw,headersMapper:mN}},queryParameters:[gj],urlParameters:[hj],headerParameters:[bj,vj,xj,Tj,Oj,Pj,_j,eE,tE,rE,uE,pE,mE,fE,hE,yE,gE,bE,vE,xE,wE,{parameterPath:["options","sealBlob"],mapper:{serializedName:"x-ms-seal-blob",xmlName:"x-ms-seal-blob",type:{name:"Boolean"}}},SE],isXML:!0,serializer:xC},BC={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:fN},default:{bodyMapper:Fw,headersMapper:hN}},queryParameters:[gj],urlParameters:[hj],headerParameters:[bj,vj,xj,Tj,Oj,Pj,_j,eE,tE,rE,uE,pE,dE,mE,hE,yE,gE,bE,xE,wE,SE,{parameterPath:"xMsRequiresSync",mapper:{defaultValue:"true",isConstant:!0,serializedName:"x-ms-requires-sync",type:{name:"String"}}},NE,jE,EE],isXML:!0,serializer:xC},LC={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:yN},default:{bodyMapper:Fw,headersMapper:gN}},queryParameters:[gj,{parameterPath:"comp",mapper:{defaultValue:"copy",isConstant:!0,serializedName:"comp",type:{name:"String"}}},{parameterPath:"copyId",mapper:{serializedName:"copyid",required:!0,xmlName:"copyid",type:{name:"String"}}}],urlParameters:[hj],headerParameters:[bj,vj,xj,Oj,{parameterPath:"copyActionAbortConstant",mapper:{defaultValue:"abort",isConstant:!0,serializedName:"x-ms-copy-action",type:{name:"String"}}}],isXML:!0,serializer:xC},qC={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:bN},202:{headersMapper:bN},default:{bodyMapper:Fw,headersMapper:vN}},queryParameters:[gj,Kj,Xj,{parameterPath:"comp",mapper:{defaultValue:"tier",isConstant:!0,serializedName:"comp",type:{name:"String"}}}],urlParameters:[hj],headerParameters:[bj,vj,xj,Oj,rE,fE,{parameterPath:"tier",mapper:{serializedName:"x-ms-access-tier",required:!0,xmlName:"x-ms-access-tier",type:{name:"Enum",allowedValues:["P4","P6","P10","P15","P20","P30","P40","P50","P60","P70","P80","Hot","Cool","Archive","Cold"]}}}],isXML:!0,serializer:xC},UC={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{headersMapper:xN},default:{bodyMapper:Fw,headersMapper:wN}},queryParameters:[yj,Ej],urlParameters:[hj],headerParameters:[bj,xj],isXML:!0,serializer:xC},HC={path:"/{containerName}/{blob}",httpMethod:"POST",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:SN},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:SN},default:{bodyMapper:Fw,headersMapper:NN}},requestBody:CE,queryParameters:[gj,Kj,{parameterPath:"comp",mapper:{defaultValue:"query",isConstant:!0,serializedName:"comp",type:{name:"String"}}}],urlParameters:[hj],headerParameters:[mj,fj,bj,vj,Oj,Pj,_j,Yj,Jj,Zj,eE,tE,rE],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:xC},FC={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:Vw,headersMapper:jN},default:{bodyMapper:Fw,headersMapper:EN}},queryParameters:[gj,Kj,Xj,kE],urlParameters:[hj],headerParameters:[bj,vj,xj,Oj,rE],isXML:!0,serializer:xC},$C={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:CN},default:{bodyMapper:Fw,headersMapper:kN}},requestBody:TE,queryParameters:[gj,Xj,kE],urlParameters:[hj],headerParameters:[mj,fj,bj,vj,Oj,rE,RE,OE],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:xC};class VC{constructor(e){this.client=e}create(e,t,r){const n={contentLength:e,blobContentLength:t,options:Tb(r||{})};return this.client.sendOperationRequest(n,KC)}uploadPages(e,t,r){const n={contentLength:e,body:t,options:Tb(r||{})};return this.client.sendOperationRequest(n,XC)}clearPages(e,t){const r={contentLength:e,options:Tb(t||{})};return this.client.sendOperationRequest(r,QC)}uploadPagesFromURL(e,t,r,n,i){const o={sourceUrl:e,sourceRange:t,contentLength:r,range:n,options:Tb(i||{})};return this.client.sendOperationRequest(o,YC)}getPageRanges(e){const t={options:Tb(e||{})};return this.client.sendOperationRequest(t,JC)}getPageRangesDiff(e){const t={options:Tb(e||{})};return this.client.sendOperationRequest(t,ZC)}resize(e,t){const r={blobContentLength:e,options:Tb(t||{})};return this.client.sendOperationRequest(r,ek)}updateSequenceNumber(e,t){const r={sequenceNumberAction:e,options:Tb(t||{})};return this.client.sendOperationRequest(r,tk)}copyIncremental(e,t){const r={copySource:e,options:Tb(t||{})};return this.client.sendOperationRequest(r,rk)}}const GC=new Kg(dj,!0),WC=new Kg(dj,!1),KC={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:TN},default:{bodyMapper:Fw,headersMapper:RN}},queryParameters:[gj],urlParameters:[hj],headerParameters:[bj,vj,xj,Cj,Tj,Oj,Pj,_j,Yj,Jj,Zj,eE,tE,rE,nE,iE,oE,sE,aE,lE,uE,pE,dE,mE,wE,SE,{parameterPath:"blobType",mapper:{defaultValue:"PageBlob",isConstant:!0,serializedName:"x-ms-blob-type",type:{name:"String"}}},PE,_E],isXML:!0,serializer:GC},XC={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:ON},default:{bodyMapper:Fw,headersMapper:PN}},requestBody:IE,queryParameters:[gj,DE],urlParameters:[hj],headerParameters:[bj,vj,Cj,Oj,Pj,_j,Qj,Yj,Jj,Zj,eE,tE,rE,dE,RE,OE,AE,ME,zE,BE,LE,qE],mediaType:"binary",serializer:WC},QC={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:_N},default:{bodyMapper:Fw,headersMapper:AN}},queryParameters:[gj,DE],urlParameters:[hj],headerParameters:[bj,vj,xj,Cj,Oj,Pj,_j,Qj,Yj,Jj,Zj,eE,tE,rE,dE,BE,LE,qE,{parameterPath:"pageWrite",mapper:{defaultValue:"clear",isConstant:!0,serializedName:"x-ms-page-write",type:{name:"String"}}}],isXML:!0,serializer:GC},YC={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:IN},default:{bodyMapper:Fw,headersMapper:MN}},queryParameters:[gj,DE],urlParameters:[hj],headerParameters:[bj,vj,xj,Cj,Oj,Pj,_j,Yj,Jj,Zj,eE,tE,rE,dE,hE,yE,gE,bE,NE,jE,zE,BE,LE,qE,UE,{parameterPath:"sourceRange",mapper:{serializedName:"x-ms-source-range",required:!0,xmlName:"x-ms-source-range",type:{name:"String"}}},HE,{parameterPath:"range",mapper:{serializedName:"x-ms-range",required:!0,xmlName:"x-ms-range",type:{name:"String"}}}],isXML:!0,serializer:GC},JC={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:Qw,headersMapper:DN},default:{bodyMapper:Fw,headersMapper:zN}},queryParameters:[gj,Nj,jj,Kj,FE],urlParameters:[hj],headerParameters:[bj,vj,xj,Oj,Pj,_j,Qj,eE,tE,rE],isXML:!0,serializer:GC},ZC={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:Qw,headersMapper:BN},default:{bodyMapper:Fw,headersMapper:LN}},queryParameters:[gj,Nj,jj,Kj,FE,{parameterPath:["options","prevsnapshot"],mapper:{serializedName:"prevsnapshot",xmlName:"prevsnapshot",type:{name:"String"}}}],urlParameters:[hj],headerParameters:[bj,vj,xj,Oj,Pj,_j,Qj,eE,tE,rE,{parameterPath:["options","prevSnapshotUrl"],mapper:{serializedName:"x-ms-previous-snapshot-url",xmlName:"x-ms-previous-snapshot-url",type:{name:"String"}}}],isXML:!0,serializer:GC},ek={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:qN},default:{bodyMapper:Fw,headersMapper:UN}},queryParameters:[yj,gj],urlParameters:[hj],headerParameters:[bj,vj,xj,Oj,Pj,_j,Yj,Jj,Zj,eE,tE,rE,dE,PE],isXML:!0,serializer:GC},tk={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:HN},default:{bodyMapper:Fw,headersMapper:FN}},queryParameters:[yj,gj],urlParameters:[hj],headerParameters:[bj,vj,xj,Oj,Pj,_j,eE,tE,rE,_E,{parameterPath:"sequenceNumberAction",mapper:{serializedName:"x-ms-sequence-number-action",required:!0,xmlName:"x-ms-sequence-number-action",type:{name:"Enum",allowedValues:["max","update","increment"]}}}],isXML:!0,serializer:GC},rk={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:$N},default:{bodyMapper:Fw,headersMapper:VN}},queryParameters:[gj,{parameterPath:"comp",mapper:{defaultValue:"incrementalcopy",isConstant:!0,serializedName:"comp",type:{name:"String"}}}],urlParameters:[hj],headerParameters:[bj,vj,xj,Pj,_j,eE,tE,rE,xE],isXML:!0,serializer:GC};class nk{constructor(e){this.client=e}create(e,t){const r={contentLength:e,options:Tb(t||{})};return this.client.sendOperationRequest(r,sk)}appendBlock(e,t,r){const n={contentLength:e,body:t,options:Tb(r||{})};return this.client.sendOperationRequest(n,ak)}appendBlockFromUrl(e,t,r){const n={sourceUrl:e,contentLength:t,options:Tb(r||{})};return this.client.sendOperationRequest(n,lk)}seal(e){const t={options:Tb(e||{})};return this.client.sendOperationRequest(t,ck)}}const ik=new Kg(dj,!0),ok=new Kg(dj,!1),sk={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:GN},default:{bodyMapper:Fw,headersMapper:WN}},queryParameters:[gj],urlParameters:[hj],headerParameters:[bj,vj,xj,Cj,Tj,Oj,Pj,_j,Yj,Jj,Zj,eE,tE,rE,nE,iE,oE,sE,aE,lE,uE,pE,dE,wE,SE,{parameterPath:"blobType",mapper:{defaultValue:"AppendBlob",isConstant:!0,serializedName:"x-ms-blob-type",type:{name:"String"}}}],isXML:!0,serializer:ik},ak={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:KN},default:{bodyMapper:Fw,headersMapper:XN}},requestBody:IE,queryParameters:[gj,$E],urlParameters:[hj],headerParameters:[bj,vj,Cj,Oj,Pj,_j,Yj,Jj,Zj,eE,tE,rE,dE,RE,OE,AE,ME,VE,GE],mediaType:"binary",serializer:ok},lk={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:QN},default:{bodyMapper:Fw,headersMapper:YN}},queryParameters:[gj,$E],urlParameters:[hj],headerParameters:[bj,vj,xj,Cj,Oj,Pj,_j,Yj,Jj,Zj,eE,tE,rE,dE,hE,yE,gE,bE,NE,jE,RE,UE,HE,VE,GE,WE],isXML:!0,serializer:ik},ck={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:JN},default:{bodyMapper:Fw,headersMapper:ZN}},queryParameters:[gj,{parameterPath:"comp",mapper:{defaultValue:"seal",isConstant:!0,serializedName:"comp",type:{name:"String"}}}],urlParameters:[hj],headerParameters:[bj,vj,xj,Oj,Pj,_j,eE,tE,GE],isXML:!0,serializer:ik};class uk{constructor(e){this.client=e}upload(e,t,r){const n={contentLength:e,body:t,options:Tb(r||{})};return this.client.sendOperationRequest(n,mk)}putBlobFromUrl(e,t,r){const n={contentLength:e,copySource:t,options:Tb(r||{})};return this.client.sendOperationRequest(n,fk)}stageBlock(e,t,r,n){const i={blockId:e,contentLength:t,body:r,options:Tb(n||{})};return this.client.sendOperationRequest(i,hk)}stageBlockFromURL(e,t,r,n){const i={blockId:e,contentLength:t,sourceUrl:r,options:Tb(n||{})};return this.client.sendOperationRequest(i,yk)}commitBlockList(e,t){const r={blocks:e,options:Tb(t||{})};return this.client.sendOperationRequest(r,gk)}getBlockList(e,t){const r={listType:e,options:Tb(t||{})};return this.client.sendOperationRequest(r,bk)}}const pk=new Kg(dj,!0),dk=new Kg(dj,!1),mk={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:ej},default:{bodyMapper:Fw,headersMapper:tj}},requestBody:IE,queryParameters:[gj],urlParameters:[hj],headerParameters:[bj,vj,Cj,Tj,Oj,Pj,_j,Yj,Jj,Zj,eE,tE,rE,nE,iE,oE,sE,aE,lE,uE,pE,dE,mE,wE,SE,RE,OE,AE,ME,KE],mediaType:"binary",serializer:dk},fk={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:rj},default:{bodyMapper:Fw,headersMapper:nj}},queryParameters:[gj],urlParameters:[hj],headerParameters:[bj,vj,xj,Cj,Tj,Oj,Pj,_j,Yj,Jj,Zj,eE,tE,rE,nE,iE,oE,sE,aE,lE,dE,mE,hE,yE,gE,bE,vE,xE,wE,NE,jE,EE,RE,KE,{parameterPath:["options","copySourceBlobProperties"],mapper:{serializedName:"x-ms-copy-source-blob-properties",xmlName:"x-ms-copy-source-blob-properties",type:{name:"Boolean"}}}],isXML:!0,serializer:pk},hk={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:ij},default:{bodyMapper:Fw,headersMapper:oj}},requestBody:IE,queryParameters:[gj,XE,QE],urlParameters:[hj],headerParameters:[bj,vj,Cj,Oj,Yj,Jj,Zj,dE,RE,OE,AE,ME],mediaType:"binary",serializer:dk},yk={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:sj},default:{bodyMapper:Fw,headersMapper:aj}},queryParameters:[gj,XE,QE],urlParameters:[hj],headerParameters:[bj,vj,xj,Cj,Oj,Yj,Jj,Zj,dE,hE,yE,gE,bE,NE,jE,UE,HE,WE],isXML:!0,serializer:pk},gk={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:lj},default:{bodyMapper:Fw,headersMapper:cj}},requestBody:YE,queryParameters:[gj,JE],urlParameters:[hj],headerParameters:[mj,fj,bj,vj,Tj,Oj,Pj,_j,Yj,Jj,Zj,eE,tE,rE,nE,iE,oE,sE,aE,lE,uE,pE,dE,mE,wE,SE,RE,OE],isXML:!0,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:pk},bk={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:Xw,headersMapper:uj},default:{bodyMapper:Fw,headersMapper:pj}},queryParameters:[gj,Kj,JE,{parameterPath:"listType",mapper:{defaultValue:"committed",serializedName:"blocklisttype",required:!0,xmlName:"blocklisttype",type:{name:"Enum",allowedValues:["committed","uncommitted","all"]}}}],urlParameters:[hj],headerParameters:[bj,vj,xj,Oj,rE],isXML:!0,serializer:pk},vk=Nv("storage-blob"),xk="2023-11-03",wk=268435456,Sk=4194304e3,Nk=5e4,jk=4194304,Ek={FORCE_BROWSER_NO_CACHE:"_",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"},Ck="Content-Length",kk="Cookie",Tk="User-Agent",Rk="",Ok=["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-if-tags","x-ms-source-if-tags"],Pk=["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"],_k=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function Ak(e){const t=sb.parse(e);let r=t.getPath();return r=r||"/",r=encodeURIComponent(r).replace(/%2F/g,"/").replace(/'/g,"%27").replace(/\+/g,"%20").replace(/%25/g,"%"),t.setPath(r),t.toString()}function Ik(e,t){const r=e.split(";");for(const n of r)if(n.trim().startsWith(t))return n.trim().match(t+"=(.*)")[1];return""}function Mk(e){let t="";e.startsWith("UseDevelopmentStorage=true")&&(t=function(e){let t="";if(-1!==e.search("DevelopmentStorageProxyUri=")){const r=e.split(";");for(const e of r)e.trim().startsWith("DevelopmentStorageProxyUri=")&&(t=e.trim().match("DevelopmentStorageProxyUri=(.*)")[1])}return t}(e),e="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;");let r=Ik(e,"BlobEndpoint");if(r=r.endsWith("/")?r.slice(0,-1):r,-1!==e.search("DefaultEndpointsProtocol=")&&-1!==e.search("AccountKey=")){let n="",i="",o=Buffer.from("accountKey","base64"),s="";if(i=Ik(e,"AccountName"),o=Buffer.from(Ik(e,"AccountKey"),"base64"),!r){n=Ik(e,"DefaultEndpointsProtocol");const t=n.toLowerCase();if("https"!==t&&"http"!==t)throw new Error("Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'");if(s=Ik(e,"EndpointSuffix"),!s)throw new Error("Invalid EndpointSuffix in the provided Connection String");r=`${n}://${i}.blob.${s}`}if(!i)throw new Error("Invalid AccountName in the provided Connection String");if(0===o.length)throw new Error("Invalid AccountKey in the provided Connection String");return{kind:"AccountConnString",url:r,accountName:i,accountKey:o,proxyUri:t}}{const t=Ik(e,"SharedAccessSignature");let n=Ik(e,"AccountName");if(n||(n=Uk(r)),!r)throw new Error("Invalid BlobEndpoint in the provided SAS Connection String");if(!t)throw new Error("Invalid SharedAccessSignature in the provided SAS Connection String");return{kind:"SASConnString",url:r,accountName:n,accountSas:t}}}function Dk(e,t){const r=sb.parse(e);let n=r.getPath();n=n?n.endsWith("/")?`${n}${t}`:`${n}/${t}`:t,r.setPath(n);return new URL(r.toString()).toString()}function zk(e,t,r){const n=sb.parse(e);return n.setQueryParameter(t,r),n.toString()}function Bk(e,t){return sb.parse(e).getQueryParameterValue(t)}function Lk(e,t=!0){const r=e.toISOString();return t?r.substring(0,r.length-1)+"0000Z":r.substring(0,r.length-5)+"Z"}function qk(e,t){e.length>42&&(e=e.slice(0,42));const r=e+function(e,t,r=" "){if(String.prototype.padStart)return e.padStart(t,r);return r=r||" ",e.length>t?e:((t-=e.length)>r.length&&(r+=r.repeat(t/r.length)),r.slice(0,t)+e)}(t.toString(),48-e.length,"0");return n=r,iv?Buffer.from(n).toString("base64"):btoa(n);var n}function Uk(e){const t=sb.parse(e);let r;try{return r="blob"===t.getHost().split(".")[1]?t.getHost().split(".")[0]:Hk(t)?t.getPath().split("/")[1]:"",r}catch(n){throw new Error("Unable to extract accountName with provided information.")}}function Hk(e){if(void 0===e.getHost())return!1;const t=e.getHost()+(void 0===e.getPort()?"":":"+e.getPort());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)||void 0!==e.getPort()&&_k.includes(e.getPort())}function Fk(e){if(void 0===e)return;const t=[];for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const n=e[r];t.push(`${encodeURIComponent(r)}=${encodeURIComponent(n)}`)}return t.join("&")}function $k(e){if(void 0===e)return;const t={blobTagSet:[]};for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const n=e[r];t.blobTagSet.push({key:r,value:n})}return t}function Vk(e){if(void 0===e)return;const t={};for(const r of e.blobTagSet)t[r.key]=r.value;return t}function Gk(e){if(void 0!==e)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||!1}}};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 Wk(e){if(!e)return;if("policy-id"in e)return;const t=[];for(const r in e){const n=r.split("_"),i="or-";n[0].startsWith(i)&&(n[0]=n[0].substring(i.length));const o={ruleId:n[1],replicationStatus:e[r]},s=t.findIndex(e=>e.policyId===n[0]);s>-1?t[s].rules.push(o):t.push({policyId:n[0],rules:[o]})}return t}function Kk(e){return e?e.scheme+" "+e.value:void 0}function*Xk(e){let t=[],r=[];e.pageRange&&(t=e.pageRange),e.clearRange&&(r=e.clearRange);let n=0,i=0;for(;n<t.length&&i<r.length;)t[n].start<r[i].start?(yield{start:t[n].start,end:t[n].end,isClear:!1},++n):(yield{start:r[i].start,end:r[i].end,isClear:!0},++i);for(;n<t.length;++n)yield{start:t[n].start,end:t[n].end,isClear:!1};for(;i<r.length;++i)yield{start:r[i].start,end:r[i].end,isClear:!0}}class Qk extends Rb{constructor(e,t){super(e,t)}async sendRequest(e){return iv||("GET"!==e.method.toUpperCase()&&"HEAD"!==e.method.toUpperCase()||(e.url=zk(e.url,Ek.FORCE_BROWSER_NO_CACHE,(new Date).getTime().toString())),e.headers.remove(kk),e.headers.remove(Ck)),this._nextPolicy.sendRequest(e)}}class Yk{create(e,t){return new Qk(e,t)}}var Jk,Zk;(Zk=Jk||(Jk={}))[Zk.EXPONENTIAL=0]="EXPONENTIAL",Zk[Zk.FIXED=1]="FIXED";const eT={maxRetryDelayInMs:12e4,maxTries:4,retryDelayInMs:4e3,retryPolicyType:Jk.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},tT=new jg("The operation was aborted.");class rT extends Rb{constructor(e,t,r=eT){super(e,t),this.retryOptions={retryPolicyType:r.retryPolicyType?r.retryPolicyType:eT.retryPolicyType,maxTries:r.maxTries&&r.maxTries>=1?Math.floor(r.maxTries):eT.maxTries,tryTimeoutInMs:r.tryTimeoutInMs&&r.tryTimeoutInMs>=0?r.tryTimeoutInMs:eT.tryTimeoutInMs,retryDelayInMs:r.retryDelayInMs&&r.retryDelayInMs>=0?Math.min(r.retryDelayInMs,r.maxRetryDelayInMs?r.maxRetryDelayInMs:eT.maxRetryDelayInMs):eT.retryDelayInMs,maxRetryDelayInMs:r.maxRetryDelayInMs&&r.maxRetryDelayInMs>=0?r.maxRetryDelayInMs:eT.maxRetryDelayInMs,secondaryHost:r.secondaryHost?r.secondaryHost:eT.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,t,r){const n=e.clone(),i=t||!this.retryOptions.secondaryHost||!("GET"===e.method||"HEAD"===e.method||"OPTIONS"===e.method)||r%2==1;let o;i||(n.url=function(e,t){const r=sb.parse(e);return r.setHost(t),r.toString()}(n.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(n.url=zk(n.url,Ek.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));try{if(vk.info(`RetryPolicy: =====> Try=${r} ${i?"Primary":"Secondary"}`),o=await this._nextPolicy.sendRequest(n),!this.shouldRetry(i,r,o))return o;t=t||!i&&404===o.status}catch(s){if(vk.error(`RetryPolicy: Caught error, message: ${s.message}, code: ${s.code}`),!this.shouldRetry(i,r,o,s))throw s}return await this.delay(i,r,e.abortSignal),this.attemptSendRequest(e,t,++r)}shouldRetry(e,t,r,n){if(t>=this.retryOptions.maxTries)return vk.info(`RetryPolicy: Attempt(s) ${t} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;const i=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(n)for(const o of i)if(n.name.toUpperCase().includes(o)||n.message.toUpperCase().includes(o)||n.code&&n.code.toString().toUpperCase()===o)return vk.info(`RetryPolicy: Network error ${o} found, will retry.`),!0;if(r||n){const t=r?r.status:n?n.statusCode:0;if(!e&&404===t)return vk.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(503===t||500===t)return vk.info(`RetryPolicy: Will retry for status code ${t}.`),!0}return!("PARSE_ERROR"!==(null==n?void 0:n.code)||!(null==n?void 0:n.message.startsWith('Error "Error: Unclosed root tag')))&&(vk.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0)}async delay(e,t,r){let n=0;if(e)switch(this.retryOptions.retryPolicyType){case Jk.EXPONENTIAL:n=Math.min((Math.pow(2,t-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Jk.FIXED:n=this.retryOptions.retryDelayInMs}else n=1e3*Math.random();return vk.info(`RetryPolicy: Delay for ${n}ms`),async function(e,t,r){return new Promise((n,i)=>{let o;const s=()=>{void 0!==o&&clearTimeout(o),i(r)};o=setTimeout(()=>{void 0!==t&&t.removeEventListener("abort",s),n()},e),void 0!==t&&t.addEventListener("abort",s)})}(n,r,tT)}}class nT{constructor(e){this.retryOptions=e}create(e,t){return new rT(e,t,this.retryOptions)}}class iT extends Rb{sendRequest(e){return this._nextPolicy.sendRequest(this.signRequest(e))}signRequest(e){return e}}class oT extends iT{constructor(e,t){super(e,t)}}class sT{create(e,t){throw new Error("Method should be implemented in children classes.")}}class aT extends sT{create(e,t){return new oT(e,t)}}const lT=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));class cT extends Rb{constructor(e,t,r){super(e,t),this.telemetry=r}async sendRequest(e){return iv&&(e.headers||(e.headers=new Tg),e.headers.get(Tk)||e.headers.set(Tk,this.telemetry)),this._nextPolicy.sendRequest(e)}}class uT{constructor(e){const t=[];if(iv){if(e){const r=e.userAgentPrefix||"";r.length>0&&-1===t.indexOf(r)&&t.push(r)}const r="azsdk-js-storageblob/12.17.0";-1===t.indexOf(r)&&t.push(r);let n=`(NODE-VERSION ${process.version})`;lT&&(n=`(NODE-VERSION ${process.version}; ${(void 0)()} ${(void 0)()})`),-1===t.indexOf(n)&&t.push(n)}this.telemetryString=t.join(" ")}create(e,t){return new cT(e,t,this.telemetryString)}}const pT=new Sb;const dT="/.default",mT={AUTHORIZATION:"authorization"},fT={forcedRefreshWindowInMs:1e3,retryIntervalInMs:3e3,refreshWindowInMs:12e4};function hT(e,t,r){let n=null,i=null;const o=Object.assign(Object.assign({},fT),r),s={get isRefreshing(){return null!==n},get shouldRefresh(){var e;return!s.isRefreshing&&(null!==(e=null==i?void 0:i.expiresOnTimestamp)&&void 0!==e?e:0)-o.refreshWindowInMs<Date.now()},get mustRefresh(){return null===i||i.expiresOnTimestamp-o.forcedRefreshWindowInMs<Date.now()}};function a(r){var a;if(!s.isRefreshing){n=async function(e,t,r){async function n(){if(!(Date.now()<r)){const t=await e();if(null===t)throw new Error("Failed to refresh access token.");return t}try{return await e()}catch(a){return null}}let i=await n();for(;null===i;)await nv(t),i=await n();return i}(()=>e.getToken(t,r),o.retryIntervalInMs,null!==(a=null==i?void 0:i.expiresOnTimestamp)&&void 0!==a?a:Date.now()).then(e=>(n=null,i=e,i)).catch(e=>{throw n=null,i=null,e})}return n}return async e=>s.mustRefresh?a(e):(s.shouldRefresh&&a(e),i)}function yT(e,t){let r=hT(e,t);class n extends Rb{constructor(e,t){super(e,t)}async sendRequest(t){if(!t.url.toLowerCase().startsWith("https://"))throw new Error("Bearer token authentication is not permitted for non-TLS protected (non-https) URLs.");const n=r,i=(await n({abortSignal:t.abortSignal,tracingOptions:{tracingContext:t.tracingContext}})).token;t.headers.set(mT.AUTHORIZATION,`Bearer ${i}`);const o=await this._nextPolicy.sendRequest(t);if(401===(null==o?void 0:o.status)){const n=function(e){const t=e.headers.get("WWW-Authenticate");if(401===e.status&&t)return t}(o);if(n){const i=function(e){return`${e.slice(7).trim()} `.split(" ").filter(e=>e).map(e=>(([e,t])=>({[e]:t}))(e.trim().split("="))).reduce((e,t)=>Object.assign(Object.assign({},e),t),{})}(n),o=i.resource_id+dT,s=sb.parse(i.authorization_uri).getPath().split("/")[1],a=hT(e,o),l=(await a({abortSignal:t.abortSignal,tracingOptions:{tracingContext:t.tracingContext},tenantId:s})).token;return r=a,t.headers.set(mT.AUTHORIZATION,`Bearer ${l}`),this._nextPolicy.sendRequest(t)}}return o}}return{create:(e,t)=>new n(e,t)}}function gT(e){if(!e||"object"!=typeof e)return!1;const t=e;return Array.isArray(t.factories)&&"object"==typeof t.options&&"function"==typeof t.toServiceClientOptions}class bT{constructor(e,t={}){this.factories=e,this.options=Object.assign(Object.assign({},t),{httpClient:t.httpClient||pT})}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}}function vT(e,t={}){var r;void 0===e&&(e=new aT);const n=new uT(t.userAgentOptions),i=[Mw({userAgent:n.telemetryString}),(o=t.keepAliveOptions,{create:(e,t)=>new Kb(e,t,o||Wb)}),n,Hv(),new Yk,new nT(t.retryOptions),Fb(void 0,{xmlCharKey:"#"}),Rv({logger:vk.info,allowedHeaderNames:Ok,allowedQueryParameters:Pk})];var o;return iv&&(i.push(Vv(t.proxyOptions)),i.push({create:(e,t)=>{throw new Error("DisableResponseDecompressionPolicy is not supported in browser environment")}})),i.push(Av(e)?function(e,t){return e.credential=t,e}(yT(e,null!==(r=t.audience)&&void 0!==r?r:"https://storage.azure.com/.default"),e):e),new bT(i,t)}class xT{}class wT extends zw{constructor(e,t){if(void 0===e)throw new Error("'url' cannot be null");if(t||(t={}),!t.userAgent){const e=Dv();t.userAgent=`azure-storage-blob/12.17.0 ${e}`}super(void 0,t),this.requestContentType="application/json; charset=utf-8",this.baseUri=t.endpoint||"{url}",this.url=e,this.version=t.version||"2023-11-03"}}class ST{constructor(e,t){var r,n;this.url=Ak(e),this.accountName=Uk(e),this.pipeline=t,this.storageClientContext=new wT(this.url,t.toServiceClientOptions()),this.isHttps=(r=function(e){return sb.parse(e).getScheme()}(this.url)||"",n="https",r.toLocaleLowerCase()===n.toLocaleLowerCase()),this.credential=new aT;for(const i of this.pipeline.factories)iv&&i instanceof xT||i instanceof aT?this.credential=i:Av(i.credential)&&(this.credential=i.credential);this.storageClientContext.requestContentType=void 0}}const NT=Aw({packagePrefix:"Azure.Storage.Blob",namespace:"Microsoft.Storage"});function jT(e){var t,r;return{spanOptions:null===(t=null==e?void 0:e.tracingOptions)||void 0===t?void 0:t.spanOptions,tracingContext:null===(r=null==e?void 0:e.tracingOptions)||void 0===r?void 0:r.tracingContext}}class ET{constructor(){this.read=!1,this.add=!1,this.create=!1,this.write=!1,this.delete=!1,this.deleteVersion=!1,this.tag=!1,this.move=!1,this.execute=!1,this.setImmutabilityPolicy=!1,this.permanentDelete=!1}static parse(e){const t=new ET;for(const r of e)switch(r){case"r":t.read=!0;break;case"a":t.add=!0;break;case"c":t.create=!0;break;case"w":t.write=!0;break;case"d":t.delete=!0;break;case"x":t.deleteVersion=!0;break;case"t":t.tag=!0;break;case"m":t.move=!0;break;case"e":t.execute=!0;break;case"i":t.setImmutabilityPolicy=!0;break;case"y":t.permanentDelete=!0;break;default:throw new RangeError(`Invalid permission: ${r}`)}return t}static from(e){const t=new ET;return e.read&&(t.read=!0),e.add&&(t.add=!0),e.create&&(t.create=!0),e.write&&(t.write=!0),e.delete&&(t.delete=!0),e.deleteVersion&&(t.deleteVersion=!0),e.tag&&(t.tag=!0),e.move&&(t.move=!0),e.execute&&(t.execute=!0),e.setImmutabilityPolicy&&(t.setImmutabilityPolicy=!0),e.permanentDelete&&(t.permanentDelete=!0),t}toString(){const e=[];return this.read&&e.push("r"),this.add&&e.push("a"),this.create&&e.push("c"),this.write&&e.push("w"),this.delete&&e.push("d"),this.deleteVersion&&e.push("x"),this.tag&&e.push("t"),this.move&&e.push("m"),this.execute&&e.push("e"),this.setImmutabilityPolicy&&e.push("i"),this.permanentDelete&&e.push("y"),e.join("")}}class CT{constructor(){this.read=!1,this.add=!1,this.create=!1,this.write=!1,this.delete=!1,this.deleteVersion=!1,this.list=!1,this.tag=!1,this.move=!1,this.execute=!1,this.setImmutabilityPolicy=!1,this.permanentDelete=!1,this.filterByTags=!1}static parse(e){const t=new CT;for(const r of e)switch(r){case"r":t.read=!0;break;case"a":t.add=!0;break;case"c":t.create=!0;break;case"w":t.write=!0;break;case"d":t.delete=!0;break;case"l":t.list=!0;break;case"t":t.tag=!0;break;case"x":t.deleteVersion=!0;break;case"m":t.move=!0;break;case"e":t.execute=!0;break;case"i":t.setImmutabilityPolicy=!0;break;case"y":t.permanentDelete=!0;break;case"f":t.filterByTags=!0;break;default:throw new RangeError(`Invalid permission ${r}`)}return t}static from(e){const t=new CT;return e.read&&(t.read=!0),e.add&&(t.add=!0),e.create&&(t.create=!0),e.write&&(t.write=!0),e.delete&&(t.delete=!0),e.list&&(t.list=!0),e.deleteVersion&&(t.deleteVersion=!0),e.tag&&(t.tag=!0),e.move&&(t.move=!0),e.execute&&(t.execute=!0),e.setImmutabilityPolicy&&(t.setImmutabilityPolicy=!0),e.permanentDelete&&(t.permanentDelete=!0),e.filterByTags&&(t.filterByTags=!0),t}toString(){const e=[];return this.read&&e.push("r"),this.add&&e.push("a"),this.create&&e.push("c"),this.write&&e.push("w"),this.delete&&e.push("d"),this.deleteVersion&&e.push("x"),this.list&&e.push("l"),this.tag&&e.push("t"),this.move&&e.push("m"),this.execute&&e.push("e"),this.setImmutabilityPolicy&&e.push("i"),this.permanentDelete&&e.push("y"),this.filterByTags&&e.push("f"),e.join("")}}function kT(e){return e.end?`${e.start}-${e.end}`:e.start}var TT,RT;(RT=TT||(TT={})).Https="https",RT.HttpsAndHttp="https,http";class OT{constructor(e,t,r,n,i,o,s,a,l,c,u,p,d,m,f,h,y,g,b,v){this.version=e,this.signature=t,void 0!==r&&"string"!=typeof r?(this.permissions=r.permissions,this.services=r.services,this.resourceTypes=r.resourceTypes,this.protocol=r.protocol,this.startsOn=r.startsOn,this.expiresOn=r.expiresOn,this.ipRangeInner=r.ipRange,this.identifier=r.identifier,this.encryptionScope=r.encryptionScope,this.resource=r.resource,this.cacheControl=r.cacheControl,this.contentDisposition=r.contentDisposition,this.contentEncoding=r.contentEncoding,this.contentLanguage=r.contentLanguage,this.contentType=r.contentType,r.userDelegationKey&&(this.signedOid=r.userDelegationKey.signedObjectId,this.signedTenantId=r.userDelegationKey.signedTenantId,this.signedStartsOn=r.userDelegationKey.signedStartsOn,this.signedExpiresOn=r.userDelegationKey.signedExpiresOn,this.signedService=r.userDelegationKey.signedService,this.signedVersion=r.userDelegationKey.signedVersion,this.preauthorizedAgentObjectId=r.preauthorizedAgentObjectId,this.correlationId=r.correlationId)):(this.services=n,this.resourceTypes=i,this.expiresOn=a,this.permissions=r,this.protocol=o,this.startsOn=s,this.ipRangeInner=l,this.encryptionScope=v,this.identifier=c,this.resource=u,this.cacheControl=p,this.contentDisposition=d,this.contentEncoding=m,this.contentLanguage=f,this.contentType=h,y&&(this.signedOid=y.signedObjectId,this.signedTenantId=y.signedTenantId,this.signedStartsOn=y.signedStartsOn,this.signedExpiresOn=y.signedExpiresOn,this.signedService=y.signedService,this.signedVersion=y.signedVersion,this.preauthorizedAgentObjectId=g,this.correlationId=b))}get ipRange(){if(this.ipRangeInner)return{end:this.ipRangeInner.end,start:this.ipRangeInner.start}}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"],t=[];for(const r of e)switch(r){case"sv":this.tryAppendQueryParameter(t,r,this.version);break;case"ss":this.tryAppendQueryParameter(t,r,this.services);break;case"srt":this.tryAppendQueryParameter(t,r,this.resourceTypes);break;case"spr":this.tryAppendQueryParameter(t,r,this.protocol);break;case"st":this.tryAppendQueryParameter(t,r,this.startsOn?Lk(this.startsOn,!1):void 0);break;case"se":this.tryAppendQueryParameter(t,r,this.expiresOn?Lk(this.expiresOn,!1):void 0);break;case"sip":this.tryAppendQueryParameter(t,r,this.ipRange?kT(this.ipRange):void 0);break;case"si":this.tryAppendQueryParameter(t,r,this.identifier);break;case"ses":this.tryAppendQueryParameter(t,r,this.encryptionScope);break;case"skoid":this.tryAppendQueryParameter(t,r,this.signedOid);break;case"sktid":this.tryAppendQueryParameter(t,r,this.signedTenantId);break;case"skt":this.tryAppendQueryParameter(t,r,this.signedStartsOn?Lk(this.signedStartsOn,!1):void 0);break;case"ske":this.tryAppendQueryParameter(t,r,this.signedExpiresOn?Lk(this.signedExpiresOn,!1):void 0);break;case"sks":this.tryAppendQueryParameter(t,r,this.signedService);break;case"skv":this.tryAppendQueryParameter(t,r,this.signedVersion);break;case"sr":this.tryAppendQueryParameter(t,r,this.resource);break;case"sp":this.tryAppendQueryParameter(t,r,this.permissions);break;case"sig":this.tryAppendQueryParameter(t,r,this.signature);break;case"rscc":this.tryAppendQueryParameter(t,r,this.cacheControl);break;case"rscd":this.tryAppendQueryParameter(t,r,this.contentDisposition);break;case"rsce":this.tryAppendQueryParameter(t,r,this.contentEncoding);break;case"rscl":this.tryAppendQueryParameter(t,r,this.contentLanguage);break;case"rsct":this.tryAppendQueryParameter(t,r,this.contentType);break;case"saoid":this.tryAppendQueryParameter(t,r,this.preauthorizedAgentObjectId);break;case"scid":this.tryAppendQueryParameter(t,r,this.correlationId)}return t.join("&")}tryAppendQueryParameter(e,t,r){r&&(t=encodeURIComponent(t),r=encodeURIComponent(r),t.length>0&&r.length>0&&e.push(`${t}=${r}`))}}function PT(e,t,r){const n=e.version?e.version:xk,i=t instanceof xT?t:void 0;let o;if(void 0===i)throw TypeError("Invalid sharedKeyCredential, userDelegationKey or accountName.");if(n>="2020-12-06")return void 0!==i?function(e,t){if(e=AT(e),!(e.identifier||e.permissions&&e.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r,n="c",i=e.snapshotTime;e.blobName&&(n="b",e.snapshotTime?n="bs":e.versionId&&(n="bv",i=e.versionId));e.permissions&&(r=e.blobName?ET.parse(e.permissions.toString()).toString():CT.parse(e.permissions.toString()).toString());const o=[r||"",e.startsOn?Lk(e.startsOn,!1):"",e.expiresOn?Lk(e.expiresOn,!1):"",_T(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?kT(e.ipRange):"",e.protocol?e.protocol:"",e.version,n,i,e.encryptionScope,e.cacheControl?e.cacheControl:"",e.contentDisposition?e.contentDisposition:"",e.contentEncoding?e.contentEncoding:"",e.contentLanguage?e.contentLanguage:"",e.contentType?e.contentType:""].join("\n"),s=t.computeHMACSHA256(o);return new OT(e.version,s,r,void 0,void 0,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,void 0,void 0,void 0,e.encryptionScope)}(e,i):function(e,t){if(e=AT(e),!e.permissions||!e.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r,n="c",i=e.snapshotTime;e.blobName&&(n="b",e.snapshotTime?n="bs":e.versionId&&(n="bv",i=e.versionId));e.permissions&&(r=e.blobName?ET.parse(e.permissions.toString()).toString():CT.parse(e.permissions.toString()).toString());const o=[r||"",e.startsOn?Lk(e.startsOn,!1):"",e.expiresOn?Lk(e.expiresOn,!1):"",_T(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?Lk(t.userDelegationKey.signedStartsOn,!1):"",t.userDelegationKey.signedExpiresOn?Lk(t.userDelegationKey.signedExpiresOn,!1):"",t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.preauthorizedAgentObjectId,void 0,e.correlationId,e.ipRange?kT(e.ipRange):"",e.protocol?e.protocol:"",e.version,n,i,e.encryptionScope,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join("\n"),s=t.computeHMACSHA256(o);return new OT(e.version,s,r,void 0,void 0,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey,e.preauthorizedAgentObjectId,e.correlationId,e.encryptionScope)}(e,o);if(n>="2018-11-09")return void 0!==i?function(e,t){if(e=AT(e),!(e.identifier||e.permissions&&e.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r,n="c",i=e.snapshotTime;e.blobName&&(n="b",e.snapshotTime?n="bs":e.versionId&&(n="bv",i=e.versionId));e.permissions&&(r=e.blobName?ET.parse(e.permissions.toString()).toString():CT.parse(e.permissions.toString()).toString());const o=[r||"",e.startsOn?Lk(e.startsOn,!1):"",e.expiresOn?Lk(e.expiresOn,!1):"",_T(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?kT(e.ipRange):"",e.protocol?e.protocol:"",e.version,n,i,e.cacheControl?e.cacheControl:"",e.contentDisposition?e.contentDisposition:"",e.contentEncoding?e.contentEncoding:"",e.contentLanguage?e.contentLanguage:"",e.contentType?e.contentType:""].join("\n"),s=t.computeHMACSHA256(o);return new OT(e.version,s,r,void 0,void 0,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType)}(e,i):n>="2020-02-10"?function(e,t){if(e=AT(e),!e.permissions||!e.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r,n="c",i=e.snapshotTime;e.blobName&&(n="b",e.snapshotTime?n="bs":e.versionId&&(n="bv",i=e.versionId));e.permissions&&(r=e.blobName?ET.parse(e.permissions.toString()).toString():CT.parse(e.permissions.toString()).toString());const o=[r||"",e.startsOn?Lk(e.startsOn,!1):"",e.expiresOn?Lk(e.expiresOn,!1):"",_T(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?Lk(t.userDelegationKey.signedStartsOn,!1):"",t.userDelegationKey.signedExpiresOn?Lk(t.userDelegationKey.signedExpiresOn,!1):"",t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.preauthorizedAgentObjectId,void 0,e.correlationId,e.ipRange?kT(e.ipRange):"",e.protocol?e.protocol:"",e.version,n,i,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join("\n"),s=t.computeHMACSHA256(o);return new OT(e.version,s,r,void 0,void 0,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey,e.preauthorizedAgentObjectId,e.correlationId)}(e,o):function(e,t){if(e=AT(e),!e.permissions||!e.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r,n="c",i=e.snapshotTime;e.blobName&&(n="b",e.snapshotTime?n="bs":e.versionId&&(n="bv",i=e.versionId));e.permissions&&(r=e.blobName?ET.parse(e.permissions.toString()).toString():CT.parse(e.permissions.toString()).toString());const o=[r||"",e.startsOn?Lk(e.startsOn,!1):"",e.expiresOn?Lk(e.expiresOn,!1):"",_T(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?Lk(t.userDelegationKey.signedStartsOn,!1):"",t.userDelegationKey.signedExpiresOn?Lk(t.userDelegationKey.signedExpiresOn,!1):"",t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.ipRange?kT(e.ipRange):"",e.protocol?e.protocol:"",e.version,n,i,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join("\n"),s=t.computeHMACSHA256(o);return new OT(e.version,s,r,void 0,void 0,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey)}(e,o);if(n>="2015-04-05"){if(void 0!==i)return function(e,t){if(e=AT(e),!(e.identifier||e.permissions&&e.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r,n="c";e.blobName&&(n="b");e.permissions&&(r=e.blobName?ET.parse(e.permissions.toString()).toString():CT.parse(e.permissions.toString()).toString());const i=[r||"",e.startsOn?Lk(e.startsOn,!1):"",e.expiresOn?Lk(e.expiresOn,!1):"",_T(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?kT(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"),o=t.computeHMACSHA256(i);return new OT(e.version,o,r,void 0,void 0,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType)}(e,i);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 _T(e,t,r){const n=[`/blob/${e}/${t}`];return r&&n.push(`/${r}`),n.join("")}function AT(e){const t=e.version?e.version:xk;if(e.snapshotTime&&t<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(void 0===e.blobName&&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(void 0===e.blobName&&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.");return e.version=t,e}class IT{constructor(e,t){const r=new wT(e.url,e.pipeline.toServiceClientOptions());this._url=e.url,void 0===e.name?(this._isContainer=!0,this._containerOrBlobOperation=new ZE(r)):(this._isContainer=!1,this._containerOrBlobOperation=new vC(r)),t||(t=Vg()),this._leaseId=t}get leaseId(){return this._leaseId}get url(){return this._url}async acquireLease(e,t={}){var r,n,i,o,s,a;const{span:l,updatedOptions:c}=NT("BlobLeaseClient-acquireLease",t);if(this._isContainer&&((null===(r=t.conditions)||void 0===r?void 0:r.ifMatch)&&(null===(n=t.conditions)||void 0===n?void 0:n.ifMatch)!==Rk||(null===(i=t.conditions)||void 0===i?void 0:i.ifNoneMatch)&&(null===(o=t.conditions)||void 0===o?void 0:o.ifNoneMatch)!==Rk||(null===(s=t.conditions)||void 0===s?void 0:s.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.");try{return await this._containerOrBlobOperation.acquireLease(Object.assign({abortSignal:t.abortSignal,duration:e,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:null===(a=t.conditions)||void 0===a?void 0:a.tagConditions}),proposedLeaseId:this._leaseId},jT(c)))}catch(u){throw l.setStatus({code:Pw.ERROR,message:u.message}),u}finally{l.end()}}async changeLease(e,t={}){var r,n,i,o,s,a;const{span:l,updatedOptions:c}=NT("BlobLeaseClient-changeLease",t);if(this._isContainer&&((null===(r=t.conditions)||void 0===r?void 0:r.ifMatch)&&(null===(n=t.conditions)||void 0===n?void 0:n.ifMatch)!==Rk||(null===(i=t.conditions)||void 0===i?void 0:i.ifNoneMatch)&&(null===(o=t.conditions)||void 0===o?void 0:o.ifNoneMatch)!==Rk||(null===(s=t.conditions)||void 0===s?void 0:s.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.");try{const r=await this._containerOrBlobOperation.changeLease(this._leaseId,e,Object.assign({abortSignal:t.abortSignal,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:null===(a=t.conditions)||void 0===a?void 0:a.tagConditions})},jT(c)));return this._leaseId=e,r}catch(u){throw l.setStatus({code:Pw.ERROR,message:u.message}),u}finally{l.end()}}async releaseLease(e={}){var t,r,n,i,o,s;const{span:a,updatedOptions:l}=NT("BlobLeaseClient-releaseLease",e);if(this._isContainer&&((null===(t=e.conditions)||void 0===t?void 0:t.ifMatch)&&(null===(r=e.conditions)||void 0===r?void 0:r.ifMatch)!==Rk||(null===(n=e.conditions)||void 0===n?void 0:n.ifNoneMatch)&&(null===(i=e.conditions)||void 0===i?void 0:i.ifNoneMatch)!==Rk||(null===(o=e.conditions)||void 0===o?void 0:o.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.");try{return await this._containerOrBlobOperation.releaseLease(this._leaseId,Object.assign({abortSignal:e.abortSignal,modifiedAccessConditions:Object.assign(Object.assign({},e.conditions),{ifTags:null===(s=e.conditions)||void 0===s?void 0:s.tagConditions})},jT(l)))}catch(c){throw a.setStatus({code:Pw.ERROR,message:c.message}),c}finally{a.end()}}async renewLease(e={}){var t,r,n,i,o,s;const{span:a,updatedOptions:l}=NT("BlobLeaseClient-renewLease",e);if(this._isContainer&&((null===(t=e.conditions)||void 0===t?void 0:t.ifMatch)&&(null===(r=e.conditions)||void 0===r?void 0:r.ifMatch)!==Rk||(null===(n=e.conditions)||void 0===n?void 0:n.ifNoneMatch)&&(null===(i=e.conditions)||void 0===i?void 0:i.ifNoneMatch)!==Rk||(null===(o=e.conditions)||void 0===o?void 0:o.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.");try{return await this._containerOrBlobOperation.renewLease(this._leaseId,Object.assign({abortSignal:e.abortSignal,modifiedAccessConditions:Object.assign(Object.assign({},e.conditions),{ifTags:null===(s=e.conditions)||void 0===s?void 0:s.tagConditions})},jT(l)))}catch(c){throw a.setStatus({code:Pw.ERROR,message:c.message}),c}finally{a.end()}}async breakLease(e,t={}){var r,n,i,o,s,a;const{span:l,updatedOptions:c}=NT("BlobLeaseClient-breakLease",t);if(this._isContainer&&((null===(r=t.conditions)||void 0===r?void 0:r.ifMatch)&&(null===(n=t.conditions)||void 0===n?void 0:n.ifMatch)!==Rk||(null===(i=t.conditions)||void 0===i?void 0:i.ifNoneMatch)&&(null===(o=t.conditions)||void 0===o?void 0:o.ifNoneMatch)!==Rk||(null===(s=t.conditions)||void 0===s?void 0:s.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.");try{const r=Object.assign({abortSignal:t.abortSignal,breakPeriod:e,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:null===(a=t.conditions)||void 0===a?void 0:a.tagConditions})},jT(c));return await this._containerOrBlobOperation.breakLease(r)}catch(u){throw l.setStatus({code:Pw.ERROR,message:u.message}),u}finally{l.end()}}}class MT{constructor(e,t={}){this.originalResponse=e}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(){}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(){throw Error("Quick query in browser is not supported yet.")}get readableStreamBody(){}get _response(){return this.originalResponse._response}}var DT,zT,BT,LT,qT,UT;function HT(e){if(void 0!==e)return e}function FT(e,t){if(e&&!t)throw new RangeError("Customer-provided encryption key must be used over HTTPS.");e&&!e.encryptionAlgorithm&&(e.encryptionAlgorithm="AES256")}function $T(e){const t=(e._response.parsedBody.pageRange||[]).map(e=>({offset:e.start,count:e.end-e.start})),r=(e._response.parsedBody.clearRange||[]).map(e=>({offset:e.start,count:e.end-e.start}));return Object.assign(Object.assign({},e),{pageRange:t,clearRange:r,_response:Object.assign(Object.assign({},e._response),{parsedBody:{pageRange:t,clearRange:r}})})}(zT=DT||(DT={})).Hot="Hot",zT.Cool="Cool",zT.Cold="Cold",zT.Archive="Archive",(LT=BT||(BT={})).P4="P4",LT.P6="P6",LT.P10="P10",LT.P15="P15",LT.P20="P20",LT.P30="P30",LT.P40="P40",LT.P50="P50",LT.P60="P60",LT.P70="P70",LT.P80="P80",(UT=qT||(qT={})).StorageOAuthScopes="https://storage.azure.com/.default",UT.DiskComputeOAuthScopes="https://disk.compute.azure.com/.default";class VT extends Error{constructor(e){super(e),this.name="PollerStoppedError",Object.setPrototypeOf(this,VT.prototype)}}class GT extends Error{constructor(e){super(e),this.name="PollerCancelledError",Object.setPrototypeOf(this,GT.prototype)}}class WT{constructor(e){this.resolveOnUnsuccessful=!1,this.stopped=!0,this.pollProgressCallbacks=[],this.operation=e,this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t}),this.promise.catch(()=>{})}async startPolling(e={}){for(this.stopped&&(this.stopped=!1);!this.isStopped()&&!this.isDone();)await this.poll(e),await this.delay()}async pollOnce(e={}){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 t=()=>{this.pollOncePromise=void 0};this.pollOncePromise.then(t,t).catch(this.reject)}return this.pollOncePromise}processUpdatedState(){if(this.operation.state.error&&(this.stopped=!0,!this.resolveOnUnsuccessful))throw this.reject(this.operation.state.error),this.operation.state.error;if(this.operation.state.isCancelled&&(this.stopped=!0,!this.resolveOnUnsuccessful)){const e=new GT("Operation was canceled");throw this.reject(e),e}this.isDone()&&this.resolve&&this.resolve(this.getResult())}async pollUntilDone(e={}){return this.stopped&&this.startPolling(e).catch(this.reject),this.processUpdatedState(),this.promise}onProgress(e){return this.pollProgressCallbacks.push(e),()=>{this.pollProgressCallbacks=this.pollProgressCallbacks.filter(t=>t!==e)}}isDone(){const e=this.operation.state;return Boolean(e.isCompleted||e.isCancelled||e.error)}stopPolling(){this.stopped||(this.stopped=!0,this.reject&&this.reject(new VT("This poller is already stopped")))}isStopped(){return this.stopped}cancelOperation(e={}){if(this.cancelPromise){if(e.abortSignal)throw new Error("A cancel request is currently pending")}else this.cancelPromise=this.cancelOnce(e);return this.cancelPromise}getOperationState(){return this.operation.state}getResult(){return this.operation.state.result}toString(){return this.operation.toString()}}class KT extends WT{constructor(e){const{blobClient:t,copySource:r,intervalInMs:n=15e3,onProgress:i,resumeFrom:o,startCopyFromURLOptions:s}=e;let a;o&&(a=JSON.parse(o).state);super(JT(Object.assign(Object.assign({},a),{blobClient:t,copySource:r,startCopyFromURLOptions:s}))),"function"==typeof i&&this.onProgress(i),this.intervalInMs=n}delay(){return nv(this.intervalInMs)}}const XT=async function(e={}){const t=this.state,{copyId:r}=t;return t.isCompleted?JT(t):r?(await t.blobClient.abortCopyFromURL(r,{abortSignal:e.abortSignal}),t.isCancelled=!0,JT(t)):(t.isCancelled=!0,JT(t))},QT=async function(e={}){const t=this.state,{blobClient:r,copySource:n,startCopyFromURLOptions:i}=t;if(t.isStarted){if(!t.isCompleted)try{const r=await t.blobClient.getProperties({abortSignal:e.abortSignal}),{copyStatus:n,copyProgress:i}=r,o=t.copyProgress;i&&(t.copyProgress=i),"pending"===n&&i!==o&&"function"==typeof e.fireProgress?e.fireProgress(t):"success"===n?(t.result=r,t.isCompleted=!0):"failed"===n&&(t.error=new Error(`Blob copy failed with reason: "${r.copyStatusDescription||"unknown"}"`),t.isCompleted=!0)}catch(o){t.error=o,t.isCompleted=!0}}else{t.isStarted=!0;const e=await r.startCopyFromURL(n,i);t.copyId=e.copyId,"success"===e.copyStatus&&(t.result=e,t.isCompleted=!0)}return JT(t)},YT=function(){return JSON.stringify({state:this.state},(e,t)=>{if("blobClient"!==e)return t})};function JT(e){return{state:Object.assign({},e),cancel:XT,toString:YT,update:QT}}function ZT(e){if(e.offset<0)throw new RangeError("Range.offset cannot be smaller than 0.");if(e.count&&e.count<=0)throw new RangeError("Range.count must be larger than 0. Leave it undefined if you want a range from offset to the end.");return e.count?`bytes=${e.offset}-${e.offset+e.count-1}`:`bytes=${e.offset}-`}var eR,tR,rR=Ft();(tR=eR||(eR={}))[tR.Good=0]="Good",tR[tR.Error=1]="Error";class nR{constructor(e=5){if(this.actives=0,this.completed=0,this.offset=0,this.operations=[],this.state=eR.Good,e<1)throw new RangeError("concurrency must be larger than 0");this.concurrency=e,this.emitter=new rR.EventEmitter}addOperation(e){this.operations.push(async()=>{try{this.actives++,await e(),this.actives--,this.completed++,this.parallelExecute()}catch(t){this.emitter.emit("error",t)}})}async do(){return 0===this.operations.length?Promise.resolve():(this.parallelExecute(),new Promise((e,t)=>{this.emitter.on("finish",e),this.emitter.on("error",e=>{this.state=eR.Error,t(e)})}))}nextOperation(){return this.offset<this.operations.length?this.operations[this.offset++]:null}parallelExecute(){if(this.state!==eR.Error)if(this.completed>=this.operations.length)this.emitter.emit("finish");else for(;this.actives<this.concurrency;){const e=this.nextOperation();if(!e)return;e()}}}class iR{}class oR extends ST{constructor(e,t,r,n){let i,o;if(n=n||{},gT(t))o=e,i=t;else if(iv&&t instanceof xT||t instanceof aT||Av(t))o=e,i=vT(t,n=r);else if(t||"string"==typeof t){if(!t||"string"!=typeof t||!r||"string"!=typeof r)throw new Error("Expecting non-empty strings for containerName and blobName parameters");{const s=t,a=r,l=Mk(e);if("AccountConnString"===l.kind){if(!iv)throw new Error("Account connection string is only supported in Node.js environment");{const e=new xT(l.accountName,l.accountKey);o=Dk(Dk(l.url,encodeURIComponent(s)),encodeURIComponent(a)),n.proxyOptions||(n.proxyOptions=void l.proxyUri),i=vT(e,n)}}else{if("SASConnString"!==l.kind)throw new Error("Connection string must be either an Account connection string or a SAS connection string");o=Dk(Dk(l.url,encodeURIComponent(s)),encodeURIComponent(a))+"?"+l.accountSas,i=vT(new aT,n)}}}else o=e,r&&"string"!=typeof r&&(n=r),i=vT(new aT,n);super(o,i),({blobName:this._name,containerName:this._containerName}=this.getBlobAndContainerNamesFromUrl()),this.blobContext=new vC(this.storageClientContext),this._snapshot=Bk(this.url,Ek.SNAPSHOT),this._versionId=Bk(this.url,Ek.VERSIONID)}get name(){return this._name}get containerName(){return this._containerName}withSnapshot(e){return new oR(zk(this.url,Ek.SNAPSHOT,0===e.length?void 0:e),this.pipeline)}withVersion(e){return new oR(zk(this.url,Ek.VERSIONID,0===e.length?void 0:e),this.pipeline)}getAppendBlobClient(){return new sR(this.url,this.pipeline)}getBlockBlobClient(){return new aR(this.url,this.pipeline)}getPageBlobClient(){return new lR(this.url,this.pipeline)}async download(e=0,t,r={}){var n;r.conditions=r.conditions||{},r.conditions=r.conditions||{},FT(r.customerProvidedKey,this.isHttps);const{span:i,updatedOptions:o}=NT("BlobClient-download",r);try{const i=await this.blobContext.download(Object.assign({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:null===(n=r.conditions)||void 0===n?void 0:n.tagConditions}),requestOptions:{onDownloadProgress:iv?void 0:r.onProgress},range:0!==e||t?ZT({offset:e,count:t}):void 0,rangeGetContentMD5:r.rangeGetContentMD5,rangeGetContentCRC64:r.rangeGetContentCrc64,snapshot:r.snapshot,cpkInfo:r.customerProvidedKey},jT(o))),s=Object.assign(Object.assign({},i),{_response:i._response,objectReplicationDestinationPolicyId:i.objectReplicationPolicyId,objectReplicationSourceProperties:Wk(i.objectReplicationRules)});if(!iv)return s;if((void 0===r.maxRetryRequests||r.maxRetryRequests<0)&&(r.maxRetryRequests=5),void 0===i.contentLength)throw new RangeError("File download response doesn't contain valid content length header");if(!i.etag)throw new RangeError("File download response doesn't contain valid etag header");return new 1(s,async t=>{var n;const o={leaseAccessConditions:r.conditions,modifiedAccessConditions:{ifMatch:r.conditions.ifMatch||i.etag,ifModifiedSince:r.conditions.ifModifiedSince,ifNoneMatch:r.conditions.ifNoneMatch,ifUnmodifiedSince:r.conditions.ifUnmodifiedSince,ifTags:null===(n=r.conditions)||void 0===n?void 0:n.tagConditions},range:ZT({count:e+i.contentLength-t,offset:t}),rangeGetContentMD5:r.rangeGetContentMD5,rangeGetContentCRC64:r.rangeGetContentCrc64,snapshot:r.snapshot,cpkInfo:r.customerProvidedKey};return(await this.blobContext.download(Object.assign({abortSignal:r.abortSignal},o))).readableStreamBody},e,i.contentLength,{maxRetryRequests:r.maxRetryRequests,onProgress:r.onProgress})}catch(s){throw i.setStatus({code:Pw.ERROR,message:s.message}),s}finally{i.end()}}async exists(e={}){const{span:t,updatedOptions:r}=NT("BlobClient-exists",e);try{return FT(e.customerProvidedKey,this.isHttps),await this.getProperties({abortSignal:e.abortSignal,customerProvidedKey:e.customerProvidedKey,conditions:e.conditions,tracingOptions:r.tracingOptions}),!0}catch(n){if(404===n.statusCode)return!1;if(409===n.statusCode&&("BlobUsesCustomerSpecifiedEncryption"===n.details.errorCode||"BlobDoesNotUseCustomerSpecifiedEncryption"===n.details.errorCode))return!0;throw t.setStatus({code:Pw.ERROR,message:n.message}),n}finally{t.end()}}async getProperties(e={}){var t;const{span:r,updatedOptions:n}=NT("BlobClient-getProperties",e);try{e.conditions=e.conditions||{},FT(e.customerProvidedKey,this.isHttps);const r=await this.blobContext.getProperties(Object.assign({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:Object.assign(Object.assign({},e.conditions),{ifTags:null===(t=e.conditions)||void 0===t?void 0:t.tagConditions}),cpkInfo:e.customerProvidedKey},jT(n)));return Object.assign(Object.assign({},r),{_response:r._response,objectReplicationDestinationPolicyId:r.objectReplicationPolicyId,objectReplicationSourceProperties:Wk(r.objectReplicationRules)})}catch(i){throw r.setStatus({code:Pw.ERROR,message:i.message}),i}finally{r.end()}}async delete(e={}){var t;const{span:r,updatedOptions:n}=NT("BlobClient-delete",e);e.conditions=e.conditions||{};try{return await this.blobContext.delete(Object.assign({abortSignal:e.abortSignal,deleteSnapshots:e.deleteSnapshots,leaseAccessConditions:e.conditions,modifiedAccessConditions:Object.assign(Object.assign({},e.conditions),{ifTags:null===(t=e.conditions)||void 0===t?void 0:t.tagConditions})},jT(n)))}catch(i){throw r.setStatus({code:Pw.ERROR,message:i.message}),i}finally{r.end()}}async deleteIfExists(e={}){var t,r;const{span:n,updatedOptions:i}=NT("BlobClient-deleteIfExists",e);try{const e=await this.delete(i);return Object.assign(Object.assign({succeeded:!0},e),{_response:e._response})}catch(o){if("BlobNotFound"===(null===(t=o.details)||void 0===t?void 0:t.errorCode))return n.setStatus({code:Pw.ERROR,message:"Expected exception when deleting a blob or snapshot only if it exists."}),Object.assign(Object.assign({succeeded:!1},null===(r=o.response)||void 0===r?void 0:r.parsedHeaders),{_response:o.response});throw n.setStatus({code:Pw.ERROR,message:o.message}),o}finally{n.end()}}async undelete(e={}){const{span:t,updatedOptions:r}=NT("BlobClient-undelete",e);try{return await this.blobContext.undelete(Object.assign({abortSignal:e.abortSignal},jT(r)))}catch(n){throw t.setStatus({code:Pw.ERROR,message:n.message}),n}finally{t.end()}}async setHTTPHeaders(e,t={}){var r;const{span:n,updatedOptions:i}=NT("BlobClient-setHTTPHeaders",t);t.conditions=t.conditions||{};try{return FT(t.customerProvidedKey,this.isHttps),await this.blobContext.setHttpHeaders(Object.assign({abortSignal:t.abortSignal,blobHttpHeaders:e,leaseAccessConditions:t.conditions,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:null===(r=t.conditions)||void 0===r?void 0:r.tagConditions})},jT(i)))}catch(o){throw n.setStatus({code:Pw.ERROR,message:o.message}),o}finally{n.end()}}async setMetadata(e,t={}){var r;const{span:n,updatedOptions:i}=NT("BlobClient-setMetadata",t);t.conditions=t.conditions||{};try{return FT(t.customerProvidedKey,this.isHttps),await this.blobContext.setMetadata(Object.assign({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,metadata:e,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:null===(r=t.conditions)||void 0===r?void 0:r.tagConditions}),cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope},jT(i)))}catch(o){throw n.setStatus({code:Pw.ERROR,message:o.message}),o}finally{n.end()}}async setTags(e,t={}){var r;const{span:n,updatedOptions:i}=NT("BlobClient-setTags",t);try{return await this.blobContext.setTags(Object.assign(Object.assign({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:null===(r=t.conditions)||void 0===r?void 0:r.tagConditions})},jT(i)),{tags:$k(e)}))}catch(o){throw n.setStatus({code:Pw.ERROR,message:o.message}),o}finally{n.end()}}async getTags(e={}){var t;const{span:r,updatedOptions:n}=NT("BlobClient-getTags",e);try{const r=await this.blobContext.getTags(Object.assign({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:Object.assign(Object.assign({},e.conditions),{ifTags:null===(t=e.conditions)||void 0===t?void 0:t.tagConditions})},jT(n)));return Object.assign(Object.assign({},r),{_response:r._response,tags:Vk({blobTagSet:r.blobTagSet})||{}})}catch(i){throw r.setStatus({code:Pw.ERROR,message:i.message}),i}finally{r.end()}}getBlobLeaseClient(e){return new IT(this,e)}async createSnapshot(e={}){var t;const{span:r,updatedOptions:n}=NT("BlobClient-createSnapshot",e);e.conditions=e.conditions||{};try{return FT(e.customerProvidedKey,this.isHttps),await this.blobContext.createSnapshot(Object.assign({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,metadata:e.metadata,modifiedAccessConditions:Object.assign(Object.assign({},e.conditions),{ifTags:null===(t=e.conditions)||void 0===t?void 0:t.tagConditions}),cpkInfo:e.customerProvidedKey,encryptionScope:e.encryptionScope},jT(n)))}catch(i){throw r.setStatus({code:Pw.ERROR,message:i.message}),i}finally{r.end()}}async beginCopyFromURL(e,t={}){const r=new KT({blobClient:{abortCopyFromURL:(...e)=>this.abortCopyFromURL(...e),getProperties:(...e)=>this.getProperties(...e),startCopyFromURL:(...e)=>this.startCopyFromURL(...e)},copySource:e,intervalInMs:t.intervalInMs,onProgress:t.onProgress,resumeFrom:t.resumeFrom,startCopyFromURLOptions:t});return await r.poll(),r}async abortCopyFromURL(e,t={}){const{span:r,updatedOptions:n}=NT("BlobClient-abortCopyFromURL",t);try{return await this.blobContext.abortCopyFromURL(e,Object.assign({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions},jT(n)))}catch(i){throw r.setStatus({code:Pw.ERROR,message:i.message}),i}finally{r.end()}}async syncCopyFromURL(e,t={}){var r,n,i;const{span:o,updatedOptions:s}=NT("BlobClient-syncCopyFromURL",t);t.conditions=t.conditions||{},t.sourceConditions=t.sourceConditions||{};try{return await this.blobContext.copyFromURL(e,Object.assign({abortSignal:t.abortSignal,metadata:t.metadata,leaseAccessConditions:t.conditions,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:null===(r=t.conditions)||void 0===r?void 0:r.tagConditions}),sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions.ifMatch,sourceIfModifiedSince:t.sourceConditions.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions.ifUnmodifiedSince},sourceContentMD5:t.sourceContentMD5,copySourceAuthorization:Kk(t.sourceAuthorization),tier:HT(t.tier),blobTagsString:Fk(t.tags),immutabilityPolicyExpiry:null===(n=t.immutabilityPolicy)||void 0===n?void 0:n.expiriesOn,immutabilityPolicyMode:null===(i=t.immutabilityPolicy)||void 0===i?void 0:i.policyMode,legalHold:t.legalHold,encryptionScope:t.encryptionScope,copySourceTags:t.copySourceTags},jT(s)))}catch(a){throw o.setStatus({code:Pw.ERROR,message:a.message}),a}finally{o.end()}}async setAccessTier(e,t={}){var r;const{span:n,updatedOptions:i}=NT("BlobClient-setAccessTier",t);try{return await this.blobContext.setTier(HT(e),Object.assign({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:null===(r=t.conditions)||void 0===r?void 0:r.tagConditions}),rehydratePriority:t.rehydratePriority},jT(i)))}catch(o){throw n.setStatus({code:Pw.ERROR,message:o.message}),o}finally{n.end()}}async downloadToBuffer(e,t,r,n={}){let i,o=0,s=0,a=n;e instanceof Buffer?(i=e,o=t||0,s="number"==typeof r?r:0):(o="number"==typeof e?e:0,s="number"==typeof t?t:0,a=r||{});const{span:l,updatedOptions:c}=NT("BlobClient-downloadToBuffer",a);try{if(a.blockSize||(a.blockSize=0),a.blockSize<0)throw new RangeError("blockSize option must be >= 0");if(0===a.blockSize&&(a.blockSize=jk),o<0)throw new RangeError("offset option must be >= 0");if(s&&s<=0)throw new RangeError("count option must be greater than 0");if(a.conditions||(a.conditions={}),!s){const e=await this.getProperties(Object.assign(Object.assign({},a),{tracingOptions:Object.assign(Object.assign({},a.tracingOptions),jT(c))}));if(s=e.contentLength-o,s<0)throw new RangeError(`offset ${o} shouldn't be larger than blob size ${e.contentLength}`)}if(!i)try{i=Buffer.alloc(s)}catch(u){throw new Error(`Unable to allocate the buffer of size: ${s}(in bytes). Please try passing your own buffer to the "downloadToBuffer" method or try using other methods like "download" or "downloadToFile".\t ${u.message}`)}if(i.length<s)throw new RangeError(`The buffer's size should be equal to or larger than the request count of bytes: ${s}`);let e=0;const t=new nR(a.concurrency);for(let r=o;r<o+s;r+=a.blockSize)t.addOperation(async()=>{let t=o+s;r+a.blockSize<t&&(t=r+a.blockSize);(await this.download(r,t-r,{abortSignal:a.abortSignal,conditions:a.conditions,maxRetryRequests:a.maxRetryRequestsPerBlock,customerProvidedKey:a.customerProvidedKey,tracingOptions:Object.assign(Object.assign({},a.tracingOptions),jT(c))})).readableStreamBody;await void 0,e+=t-r,a.onProgress&&a.onProgress({loadedBytes:e})});return await t.do(),i}catch(p){throw l.setStatus({code:Pw.ERROR,message:p.message}),p}finally{l.end()}}async downloadToFile(e,t=0,r,n={}){const{span:i,updatedOptions:o}=NT("BlobClient-downloadToFile",n);try{const e=await this.download(t,r,Object.assign(Object.assign({},n),{tracingOptions:Object.assign(Object.assign({},n.tracingOptions),jT(o))}));return e.readableStreamBody&&await void e.readableStreamBody,e.blobDownloadStream=void 0,e}catch(s){throw i.setStatus({code:Pw.ERROR,message:s.message}),s}finally{i.end()}}getBlobAndContainerNamesFromUrl(){let e,t;try{const r=sb.parse(this.url);if("blob"===r.getHost().split(".")[1]){const n=r.getPath().match("/([^/]*)(/(.*))?");e=n[1],t=n[3]}else if(Hk(r)){const n=r.getPath().match("/([^/]*)/([^/]*)(/(.*))?");e=n[2],t=n[4]}else{const n=r.getPath().match("/([^/]*)(/(.*))?");e=n[1],t=n[3]}if(e=decodeURIComponent(e),t=decodeURIComponent(t),t=t.replace(/\\/g,"/"),!e)throw new Error("Provided containerName is invalid.");return{blobName:t,containerName:e}}catch(r){throw new Error("Unable to extract blobName and containerName with provided information.")}}async startCopyFromURL(e,t={}){var r,n,i;const{span:o,updatedOptions:s}=NT("BlobClient-startCopyFromURL",t);t.conditions=t.conditions||{},t.sourceConditions=t.sourceConditions||{};try{return await this.blobContext.startCopyFromURL(e,Object.assign({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:null===(r=t.conditions)||void 0===r?void 0:r.tagConditions}),sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions.ifMatch,sourceIfModifiedSince:t.sourceConditions.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions.ifUnmodifiedSince,sourceIfTags:t.sourceConditions.tagConditions},immutabilityPolicyExpiry:null===(n=t.immutabilityPolicy)||void 0===n?void 0:n.expiriesOn,immutabilityPolicyMode:null===(i=t.immutabilityPolicy)||void 0===i?void 0:i.policyMode,legalHold:t.legalHold,rehydratePriority:t.rehydratePriority,tier:HT(t.tier),blobTagsString:Fk(t.tags),sealBlob:t.sealBlob},jT(s)))}catch(a){throw o.setStatus({code:Pw.ERROR,message:a.message}),a}finally{o.end()}}generateSasUrl(e){return new Promise(t=>{if(!(this.credential instanceof xT))throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential");const r=PT(Object.assign({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId},e),this.credential).toString();t(function(e,t){const r=sb.parse(e);let n=r.getQuery();return n?n+="&"+t:n=t,r.setQuery(n),r.toString()}(this.url,r))})}async deleteImmutabilityPolicy(e){const{span:t,updatedOptions:r}=NT("BlobClient-deleteImmutabilityPolicy",e);try{return await this.blobContext.deleteImmutabilityPolicy(Object.assign({abortSignal:null==e?void 0:e.abortSignal},jT(r)))}catch(n){throw t.setStatus({code:Pw.ERROR,message:n.message}),n}finally{t.end()}}async setImmutabilityPolicy(e,t){const{span:r,updatedOptions:n}=NT("BlobClient-setImmutabilityPolicy",t);try{return await this.blobContext.setImmutabilityPolicy(Object.assign({abortSignal:null==t?void 0:t.abortSignal,immutabilityPolicyExpiry:e.expiriesOn,immutabilityPolicyMode:e.policyMode,modifiedAccessConditions:null==t?void 0:t.modifiedAccessCondition},jT(n)))}catch(i){throw r.setStatus({code:Pw.ERROR,message:i.message}),i}finally{r.end()}}async setLegalHold(e,t){const{span:r,updatedOptions:n}=NT("BlobClient-setLegalHold",t);try{return await this.blobContext.setLegalHold(e,Object.assign({abortSignal:null==t?void 0:t.abortSignal},jT(n)))}catch(i){throw r.setStatus({code:Pw.ERROR,message:i.message}),i}finally{r.end()}}}class sR extends oR{constructor(e,t,r,n){let i,o;if(n=n||{},gT(t))o=e,i=t;else if(iv&&t instanceof xT||t instanceof aT||Av(t))o=e,i=vT(t,n=r);else if(t||"string"==typeof t){if(!t||"string"!=typeof t||!r||"string"!=typeof r)throw new Error("Expecting non-empty strings for containerName and blobName parameters");{const s=t,a=r,l=Mk(e);if("AccountConnString"===l.kind){if(!iv)throw new Error("Account connection string is only supported in Node.js environment");{const e=new xT(l.accountName,l.accountKey);o=Dk(Dk(l.url,encodeURIComponent(s)),encodeURIComponent(a)),n.proxyOptions||(n.proxyOptions=void l.proxyUri),i=vT(e,n)}}else{if("SASConnString"!==l.kind)throw new Error("Connection string must be either an Account connection string or a SAS connection string");o=Dk(Dk(l.url,encodeURIComponent(s)),encodeURIComponent(a))+"?"+l.accountSas,i=vT(new aT,n)}}}else o=e,i=vT(new aT,n);super(o,i),this.appendBlobContext=new nk(this.storageClientContext)}withSnapshot(e){return new sR(zk(this.url,Ek.SNAPSHOT,0===e.length?void 0:e),this.pipeline)}async create(e={}){var t,r,n;const{span:i,updatedOptions:o}=NT("AppendBlobClient-create",e);e.conditions=e.conditions||{};try{return FT(e.customerProvidedKey,this.isHttps),await this.appendBlobContext.create(0,Object.assign({abortSignal:e.abortSignal,blobHttpHeaders:e.blobHTTPHeaders,leaseAccessConditions:e.conditions,metadata:e.metadata,modifiedAccessConditions:Object.assign(Object.assign({},e.conditions),{ifTags:null===(t=e.conditions)||void 0===t?void 0:t.tagConditions}),cpkInfo:e.customerProvidedKey,encryptionScope:e.encryptionScope,immutabilityPolicyExpiry:null===(r=e.immutabilityPolicy)||void 0===r?void 0:r.expiriesOn,immutabilityPolicyMode:null===(n=e.immutabilityPolicy)||void 0===n?void 0:n.policyMode,legalHold:e.legalHold,blobTagsString:Fk(e.tags)},jT(o)))}catch(s){throw i.setStatus({code:Pw.ERROR,message:s.message}),s}finally{i.end()}}async createIfNotExists(e={}){var t,r;const{span:n,updatedOptions:i}=NT("AppendBlobClient-createIfNotExists",e),o={ifNoneMatch:"*"};try{const e=await this.create(Object.assign(Object.assign({},i),{conditions:o}));return Object.assign(Object.assign({succeeded:!0},e),{_response:e._response})}catch(s){if("BlobAlreadyExists"===(null===(t=s.details)||void 0===t?void 0:t.errorCode))return n.setStatus({code:Pw.ERROR,message:"Expected exception when creating a blob only if it does not already exist."}),Object.assign(Object.assign({succeeded:!1},null===(r=s.response)||void 0===r?void 0:r.parsedHeaders),{_response:s.response});throw n.setStatus({code:Pw.ERROR,message:s.message}),s}finally{n.end()}}async seal(e={}){var t;const{span:r,updatedOptions:n}=NT("AppendBlobClient-seal",e);e.conditions=e.conditions||{};try{return await this.appendBlobContext.seal(Object.assign({abortSignal:e.abortSignal,appendPositionAccessConditions:e.conditions,leaseAccessConditions:e.conditions,modifiedAccessConditions:Object.assign(Object.assign({},e.conditions),{ifTags:null===(t=e.conditions)||void 0===t?void 0:t.tagConditions})},jT(n)))}catch(i){throw r.setStatus({code:Pw.ERROR,message:i.message}),i}finally{r.end()}}async appendBlock(e,t,r={}){var n;const{span:i,updatedOptions:o}=NT("AppendBlobClient-appendBlock",r);r.conditions=r.conditions||{};try{return FT(r.customerProvidedKey,this.isHttps),await this.appendBlobContext.appendBlock(t,e,Object.assign({abortSignal:r.abortSignal,appendPositionAccessConditions:r.conditions,leaseAccessConditions:r.conditions,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:null===(n=r.conditions)||void 0===n?void 0:n.tagConditions}),requestOptions:{onUploadProgress:r.onProgress},transactionalContentMD5:r.transactionalContentMD5,transactionalContentCrc64:r.transactionalContentCrc64,cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope},jT(o)))}catch(s){throw i.setStatus({code:Pw.ERROR,message:s.message}),s}finally{i.end()}}async appendBlockFromURL(e,t,r,n={}){var i;const{span:o,updatedOptions:s}=NT("AppendBlobClient-appendBlockFromURL",n);n.conditions=n.conditions||{},n.sourceConditions=n.sourceConditions||{};try{return FT(n.customerProvidedKey,this.isHttps),await this.appendBlobContext.appendBlockFromUrl(e,0,Object.assign({abortSignal:n.abortSignal,sourceRange:ZT({offset:t,count:r}),sourceContentMD5:n.sourceContentMD5,sourceContentCrc64:n.sourceContentCrc64,leaseAccessConditions:n.conditions,appendPositionAccessConditions:n.conditions,modifiedAccessConditions:Object.assign(Object.assign({},n.conditions),{ifTags:null===(i=n.conditions)||void 0===i?void 0:i.tagConditions}),sourceModifiedAccessConditions:{sourceIfMatch:n.sourceConditions.ifMatch,sourceIfModifiedSince:n.sourceConditions.ifModifiedSince,sourceIfNoneMatch:n.sourceConditions.ifNoneMatch,sourceIfUnmodifiedSince:n.sourceConditions.ifUnmodifiedSince},copySourceAuthorization:Kk(n.sourceAuthorization),cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope},jT(s)))}catch(a){throw o.setStatus({code:Pw.ERROR,message:a.message}),a}finally{o.end()}}}class aR extends oR{constructor(e,t,r,n){let i,o;if(n=n||{},gT(t))o=e,i=t;else if(iv&&t instanceof xT||t instanceof aT||Av(t))o=e,i=vT(t,n=r);else if(t||"string"==typeof t){if(!t||"string"!=typeof t||!r||"string"!=typeof r)throw new Error("Expecting non-empty strings for containerName and blobName parameters");{const s=t,a=r,l=Mk(e);if("AccountConnString"===l.kind){if(!iv)throw new Error("Account connection string is only supported in Node.js environment");{const e=new xT(l.accountName,l.accountKey);o=Dk(Dk(l.url,encodeURIComponent(s)),encodeURIComponent(a)),n.proxyOptions||(n.proxyOptions=void l.proxyUri),i=vT(e,n)}}else{if("SASConnString"!==l.kind)throw new Error("Connection string must be either an Account connection string or a SAS connection string");o=Dk(Dk(l.url,encodeURIComponent(s)),encodeURIComponent(a))+"?"+l.accountSas,i=vT(new aT,n)}}}else o=e,r&&"string"!=typeof r&&(n=r),i=vT(new aT,n);super(o,i),this.blockBlobContext=new uk(this.storageClientContext),this._blobContext=new vC(this.storageClientContext)}withSnapshot(e){return new aR(zk(this.url,Ek.SNAPSHOT,0===e.length?void 0:e),this.pipeline)}async query(e,t={}){var r;FT(t.customerProvidedKey,this.isHttps);const{span:n,updatedOptions:i}=NT("BlockBlobClient-query",t);try{if(!iv)throw new Error("This operation currently is only supported in Node.js.");FT(t.customerProvidedKey,this.isHttps);const n=await this._blobContext.query(Object.assign({abortSignal:t.abortSignal,queryRequest:{queryType:"SQL",expression:e,inputSerialization:Gk(t.inputTextConfiguration),outputSerialization:Gk(t.outputTextConfiguration)},leaseAccessConditions:t.conditions,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:null===(r=t.conditions)||void 0===r?void 0:r.tagConditions}),cpkInfo:t.customerProvidedKey},jT(i)));return new MT(n,{abortSignal:t.abortSignal,onProgress:t.onProgress,onError:t.onError})}catch(o){throw n.setStatus({code:Pw.ERROR,message:o.message}),o}finally{n.end()}}async upload(e,t,r={}){var n,i,o;r.conditions=r.conditions||{};const{span:s,updatedOptions:a}=NT("BlockBlobClient-upload",r);try{return FT(r.customerProvidedKey,this.isHttps),await this.blockBlobContext.upload(t,e,Object.assign({abortSignal:r.abortSignal,blobHttpHeaders:r.blobHTTPHeaders,leaseAccessConditions:r.conditions,metadata:r.metadata,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:null===(n=r.conditions)||void 0===n?void 0:n.tagConditions}),requestOptions:{onUploadProgress:r.onProgress},cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope,immutabilityPolicyExpiry:null===(i=r.immutabilityPolicy)||void 0===i?void 0:i.expiriesOn,immutabilityPolicyMode:null===(o=r.immutabilityPolicy)||void 0===o?void 0:o.policyMode,legalHold:r.legalHold,tier:HT(r.tier),blobTagsString:Fk(r.tags)},jT(a)))}catch(l){throw s.setStatus({code:Pw.ERROR,message:l.message}),l}finally{s.end()}}async syncUploadFromURL(e,t={}){var r,n,i,o,s;t.conditions=t.conditions||{};const{span:a,updatedOptions:l}=NT("BlockBlobClient-syncUploadFromURL",t);try{return FT(t.customerProvidedKey,this.isHttps),await this.blockBlobContext.putBlobFromUrl(0,e,Object.assign(Object.assign(Object.assign({},t),{blobHttpHeaders:t.blobHTTPHeaders,leaseAccessConditions:t.conditions,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:t.conditions.tagConditions}),sourceModifiedAccessConditions:{sourceIfMatch:null===(r=t.sourceConditions)||void 0===r?void 0:r.ifMatch,sourceIfModifiedSince:null===(n=t.sourceConditions)||void 0===n?void 0:n.ifModifiedSince,sourceIfNoneMatch:null===(i=t.sourceConditions)||void 0===i?void 0:i.ifNoneMatch,sourceIfUnmodifiedSince:null===(o=t.sourceConditions)||void 0===o?void 0:o.ifUnmodifiedSince,sourceIfTags:null===(s=t.sourceConditions)||void 0===s?void 0:s.tagConditions},cpkInfo:t.customerProvidedKey,copySourceAuthorization:Kk(t.sourceAuthorization),tier:HT(t.tier),blobTagsString:Fk(t.tags),copySourceTags:t.copySourceTags}),jT(l)))}catch(c){throw a.setStatus({code:Pw.ERROR,message:c.message}),c}finally{a.end()}}async stageBlock(e,t,r,n={}){const{span:i,updatedOptions:o}=NT("BlockBlobClient-stageBlock",n);try{return FT(n.customerProvidedKey,this.isHttps),await this.blockBlobContext.stageBlock(e,r,t,Object.assign({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,requestOptions:{onUploadProgress:n.onProgress},transactionalContentMD5:n.transactionalContentMD5,transactionalContentCrc64:n.transactionalContentCrc64,cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope},jT(o)))}catch(s){throw i.setStatus({code:Pw.ERROR,message:s.message}),s}finally{i.end()}}async stageBlockFromURL(e,t,r=0,n,i={}){const{span:o,updatedOptions:s}=NT("BlockBlobClient-stageBlockFromURL",i);try{return FT(i.customerProvidedKey,this.isHttps),await this.blockBlobContext.stageBlockFromURL(e,0,t,Object.assign({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,sourceContentMD5:i.sourceContentMD5,sourceContentCrc64:i.sourceContentCrc64,sourceRange:0!==r||n?ZT({offset:r,count:n}):void 0,cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope,copySourceAuthorization:Kk(i.sourceAuthorization)},jT(s)))}catch(a){throw o.setStatus({code:Pw.ERROR,message:a.message}),a}finally{o.end()}}async commitBlockList(e,t={}){var r,n,i;t.conditions=t.conditions||{};const{span:o,updatedOptions:s}=NT("BlockBlobClient-commitBlockList",t);try{return FT(t.customerProvidedKey,this.isHttps),await this.blockBlobContext.commitBlockList({latest:e},Object.assign({abortSignal:t.abortSignal,blobHttpHeaders:t.blobHTTPHeaders,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:null===(r=t.conditions)||void 0===r?void 0:r.tagConditions}),cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,immutabilityPolicyExpiry:null===(n=t.immutabilityPolicy)||void 0===n?void 0:n.expiriesOn,immutabilityPolicyMode:null===(i=t.immutabilityPolicy)||void 0===i?void 0:i.policyMode,legalHold:t.legalHold,tier:HT(t.tier),blobTagsString:Fk(t.tags)},jT(s)))}catch(a){throw o.setStatus({code:Pw.ERROR,message:a.message}),a}finally{o.end()}}async getBlockList(e,t={}){var r;const{span:n,updatedOptions:i}=NT("BlockBlobClient-getBlockList",t);try{const n=await this.blockBlobContext.getBlockList(e,Object.assign({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:null===(r=t.conditions)||void 0===r?void 0:r.tagConditions})},jT(i)));return n.committedBlocks||(n.committedBlocks=[]),n.uncommittedBlocks||(n.uncommittedBlocks=[]),n}catch(o){throw n.setStatus({code:Pw.ERROR,message:o.message}),o}finally{n.end()}}async uploadData(e,t={}){const{span:r,updatedOptions:n}=NT("BlockBlobClient-uploadData",t);try{if(iv){let t;return t=e instanceof Buffer?e:e instanceof ArrayBuffer?Buffer.from(e):Buffer.from(e.buffer,e.byteOffset,e.byteLength),this.uploadSeekableInternal((e,r)=>t.slice(e,e+r),t.byteLength,n)}{const t=new Blob([e]);return this.uploadSeekableInternal((e,r)=>t.slice(e,e+r),t.size,n)}}catch(i){throw r.setStatus({code:Pw.ERROR,message:i.message}),i}finally{r.end()}}async uploadBrowserData(e,t={}){const{span:r,updatedOptions:n}=NT("BlockBlobClient-uploadBrowserData",t);try{const t=new Blob([e]);return await this.uploadSeekableInternal((e,r)=>t.slice(e,e+r),t.size,n)}catch(i){throw r.setStatus({code:Pw.ERROR,message:i.message}),i}finally{r.end()}}async uploadSeekableInternal(e,t,r={}){if(r.blockSize||(r.blockSize=0),r.blockSize<0||r.blockSize>Sk)throw new RangeError("blockSize option must be >= 0 and <= 4194304000");if(0===r.maxSingleShotSize||r.maxSingleShotSize||(r.maxSingleShotSize=wk),r.maxSingleShotSize<0||r.maxSingleShotSize>wk)throw new RangeError("maxSingleShotSize option must be >= 0 and <= 268435456");if(0===r.blockSize){if(t>2097152e8)throw new RangeError(`${t} is too larger to upload to a block blob.`);t>r.maxSingleShotSize&&(r.blockSize=Math.ceil(t/Nk),r.blockSize<jk&&(r.blockSize=jk))}r.blobHTTPHeaders||(r.blobHTTPHeaders={}),r.conditions||(r.conditions={});const{span:n,updatedOptions:i}=NT("BlockBlobClient-uploadSeekableInternal",r);try{if(t<=r.maxSingleShotSize)return await this.upload(e(0,t),t,i);const n=Math.floor((t-1)/r.blockSize)+1;if(n>Nk)throw new RangeError("The buffer's size is too big or the BlockSize is too small;the number of blocks must be <= 50000");const o=[],s=Vg();let a=0;const l=new nR(r.concurrency);for(let c=0;c<n;c++)l.addOperation(async()=>{const l=qk(s,c),u=r.blockSize*c,p=(c===n-1?t:u+r.blockSize)-u;o.push(l),await this.stageBlock(l,e(u,p),p,{abortSignal:r.abortSignal,conditions:r.conditions,encryptionScope:r.encryptionScope,tracingOptions:i.tracingOptions}),a+=p,r.onProgress&&r.onProgress({loadedBytes:a})});return await l.do(),this.commitBlockList(o,i)}catch(o){throw n.setStatus({code:Pw.ERROR,message:o.message}),o}finally{n.end()}}async uploadFile(e,t={}){const{span:r,updatedOptions:n}=NT("BlockBlobClient-uploadFile",t);try{const e=(await void 0).size;return await this.uploadSeekableInternal((e,t)=>()=>{},e,Object.assign(Object.assign({},t),{tracingOptions:Object.assign(Object.assign({},t.tracingOptions),jT(n))}))}catch(i){throw r.setStatus({code:Pw.ERROR,message:i.message}),i}finally{r.end()}}async uploadStream(e,t=8388608,r=5,n={}){n.blobHTTPHeaders||(n.blobHTTPHeaders={}),n.conditions||(n.conditions={});const{span:i,updatedOptions:o}=NT("BlockBlobClient-uploadStream",n);try{let i=0;const s=Vg();let a=0;const l=[],c=new iR(e,t,r,async(e,t)=>{const r=qk(s,i);l.push(r),i++,await this.stageBlock(r,e,t,{conditions:n.conditions,encryptionScope:n.encryptionScope,tracingOptions:o.tracingOptions}),a+=t,n.onProgress&&n.onProgress({loadedBytes:a})},Math.ceil(r/4*3));return await c.do(),await this.commitBlockList(l,Object.assign(Object.assign({},n),{tracingOptions:Object.assign(Object.assign({},n.tracingOptions),jT(o))}))}catch(s){throw i.setStatus({code:Pw.ERROR,message:s.message}),s}finally{i.end()}}}class lR extends oR{constructor(e,t,r,n){let i,o;if(n=n||{},gT(t))o=e,i=t;else if(iv&&t instanceof xT||t instanceof aT||Av(t))o=e,i=vT(t,n=r);else if(t||"string"==typeof t){if(!t||"string"!=typeof t||!r||"string"!=typeof r)throw new Error("Expecting non-empty strings for containerName and blobName parameters");{const s=t,a=r,l=Mk(e);if("AccountConnString"===l.kind){if(!iv)throw new Error("Account connection string is only supported in Node.js environment");{const e=new xT(l.accountName,l.accountKey);o=Dk(Dk(l.url,encodeURIComponent(s)),encodeURIComponent(a)),n.proxyOptions||(n.proxyOptions=void l.proxyUri),i=vT(e,n)}}else{if("SASConnString"!==l.kind)throw new Error("Connection string must be either an Account connection string or a SAS connection string");o=Dk(Dk(l.url,encodeURIComponent(s)),encodeURIComponent(a))+"?"+l.accountSas,i=vT(new aT,n)}}}else o=e,i=vT(new aT,n);super(o,i),this.pageBlobContext=new VC(this.storageClientContext)}withSnapshot(e){return new lR(zk(this.url,Ek.SNAPSHOT,0===e.length?void 0:e),this.pipeline)}async create(e,t={}){var r,n,i;t.conditions=t.conditions||{};const{span:o,updatedOptions:s}=NT("PageBlobClient-create",t);try{return FT(t.customerProvidedKey,this.isHttps),await this.pageBlobContext.create(0,e,Object.assign({abortSignal:t.abortSignal,blobHttpHeaders:t.blobHTTPHeaders,blobSequenceNumber:t.blobSequenceNumber,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:null===(r=t.conditions)||void 0===r?void 0:r.tagConditions}),cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,immutabilityPolicyExpiry:null===(n=t.immutabilityPolicy)||void 0===n?void 0:n.expiriesOn,immutabilityPolicyMode:null===(i=t.immutabilityPolicy)||void 0===i?void 0:i.policyMode,legalHold:t.legalHold,tier:HT(t.tier),blobTagsString:Fk(t.tags)},jT(s)))}catch(a){throw o.setStatus({code:Pw.ERROR,message:a.message}),a}finally{o.end()}}async createIfNotExists(e,t={}){var r,n;const{span:i,updatedOptions:o}=NT("PageBlobClient-createIfNotExists",t);try{const r={ifNoneMatch:"*"},n=await this.create(e,Object.assign(Object.assign({},t),{conditions:r,tracingOptions:o.tracingOptions}));return Object.assign(Object.assign({succeeded:!0},n),{_response:n._response})}catch(s){if("BlobAlreadyExists"===(null===(r=s.details)||void 0===r?void 0:r.errorCode))return i.setStatus({code:Pw.ERROR,message:"Expected exception when creating a blob only if it does not already exist."}),Object.assign(Object.assign({succeeded:!1},null===(n=s.response)||void 0===n?void 0:n.parsedHeaders),{_response:s.response});throw i.setStatus({code:Pw.ERROR,message:s.message}),s}finally{i.end()}}async uploadPages(e,t,r,n={}){var i;n.conditions=n.conditions||{};const{span:o,updatedOptions:s}=NT("PageBlobClient-uploadPages",n);try{return FT(n.customerProvidedKey,this.isHttps),await this.pageBlobContext.uploadPages(r,e,Object.assign({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:Object.assign(Object.assign({},n.conditions),{ifTags:null===(i=n.conditions)||void 0===i?void 0:i.tagConditions}),requestOptions:{onUploadProgress:n.onProgress},range:ZT({offset:t,count:r}),sequenceNumberAccessConditions:n.conditions,transactionalContentMD5:n.transactionalContentMD5,transactionalContentCrc64:n.transactionalContentCrc64,cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope},jT(s)))}catch(a){throw o.setStatus({code:Pw.ERROR,message:a.message}),a}finally{o.end()}}async uploadPagesFromURL(e,t,r,n,i={}){var o;i.conditions=i.conditions||{},i.sourceConditions=i.sourceConditions||{};const{span:s,updatedOptions:a}=NT("PageBlobClient-uploadPagesFromURL",i);try{return FT(i.customerProvidedKey,this.isHttps),await this.pageBlobContext.uploadPagesFromURL(e,ZT({offset:t,count:n}),0,ZT({offset:r,count:n}),Object.assign({abortSignal:i.abortSignal,sourceContentMD5:i.sourceContentMD5,sourceContentCrc64:i.sourceContentCrc64,leaseAccessConditions:i.conditions,sequenceNumberAccessConditions:i.conditions,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:null===(o=i.conditions)||void 0===o?void 0:o.tagConditions}),sourceModifiedAccessConditions:{sourceIfMatch:i.sourceConditions.ifMatch,sourceIfModifiedSince:i.sourceConditions.ifModifiedSince,sourceIfNoneMatch:i.sourceConditions.ifNoneMatch,sourceIfUnmodifiedSince:i.sourceConditions.ifUnmodifiedSince},cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope,copySourceAuthorization:Kk(i.sourceAuthorization)},jT(a)))}catch(l){throw s.setStatus({code:Pw.ERROR,message:l.message}),l}finally{s.end()}}async clearPages(e=0,t,r={}){var n;r.conditions=r.conditions||{};const{span:i,updatedOptions:o}=NT("PageBlobClient-clearPages",r);try{return await this.pageBlobContext.clearPages(0,Object.assign({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:null===(n=r.conditions)||void 0===n?void 0:n.tagConditions}),range:ZT({offset:e,count:t}),sequenceNumberAccessConditions:r.conditions,cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope},jT(o)))}catch(s){throw i.setStatus({code:Pw.ERROR,message:s.message}),s}finally{i.end()}}async getPageRanges(e=0,t,r={}){var n;r.conditions=r.conditions||{};const{span:i,updatedOptions:o}=NT("PageBlobClient-getPageRanges",r);try{return await this.pageBlobContext.getPageRanges(Object.assign({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:null===(n=r.conditions)||void 0===n?void 0:n.tagConditions}),range:ZT({offset:e,count:t})},jT(o))).then($T)}catch(s){throw i.setStatus({code:Pw.ERROR,message:s.message}),s}finally{i.end()}}async listPageRangesSegment(e=0,t,r,n={}){var i;const{span:o,updatedOptions:s}=NT("PageBlobClient-getPageRangesSegment",n);try{return await this.pageBlobContext.getPageRanges(Object.assign({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:Object.assign(Object.assign({},n.conditions),{ifTags:null===(i=n.conditions)||void 0===i?void 0:i.tagConditions}),range:ZT({offset:e,count:t}),marker:r,maxPageSize:n.maxPageSize},jT(s)))}catch(a){throw o.setStatus({code:Pw.ERROR,message:a.message}),a}finally{o.end()}}listPageRangeItemSegments(e=0,t,r,n={}){return Ss(this,arguments,function*(){let i;if(r||void 0===r)do{i=yield ws(this.listPageRangesSegment(e,t,r,n)),r=i.continuationToken,yield yield ws(yield ws(i))}while(r)})}listPageRangeItems(e=0,t,r={}){return Ss(this,arguments,function*(){var n,i;try{for(var o,s=js(this.listPageRangeItemSegments(e,t,void 0,r));!(o=yield ws(s.next())).done;){const e=o.value;yield ws(yield*Ns(js(Xk(e))))}}catch(a){n={error:a}}finally{try{o&&!o.done&&(i=s.return)&&(yield ws(i.call(s)))}finally{if(n)throw n.error}}})}listPageRanges(e=0,t,r={}){r.conditions=r.conditions||{};const n=this.listPageRangeItems(e,t,r);return{next:()=>n.next(),[Symbol.asyncIterator](){return this},byPage:(n={})=>this.listPageRangeItemSegments(e,t,n.continuationToken,Object.assign({maxPageSize:n.maxPageSize},r))}}async getPageRangesDiff(e,t,r,n={}){var i;n.conditions=n.conditions||{};const{span:o,updatedOptions:s}=NT("PageBlobClient-getPageRangesDiff",n);try{return await this.pageBlobContext.getPageRangesDiff(Object.assign({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:Object.assign(Object.assign({},n.conditions),{ifTags:null===(i=n.conditions)||void 0===i?void 0:i.tagConditions}),prevsnapshot:r,range:ZT({offset:e,count:t})},jT(s))).then($T)}catch(a){throw o.setStatus({code:Pw.ERROR,message:a.message}),a}finally{o.end()}}async listPageRangesDiffSegment(e,t,r,n,i){var o;const{span:s,updatedOptions:a}=NT("PageBlobClient-getPageRangesDiffSegment",i);try{return await this.pageBlobContext.getPageRangesDiff(Object.assign({abortSignal:null==i?void 0:i.abortSignal,leaseAccessConditions:null==i?void 0:i.conditions,modifiedAccessConditions:Object.assign(Object.assign({},null==i?void 0:i.conditions),{ifTags:null===(o=null==i?void 0:i.conditions)||void 0===o?void 0:o.tagConditions}),prevsnapshot:r,range:ZT({offset:e,count:t}),marker:n,maxPageSize:null==i?void 0:i.maxPageSize},jT(a)))}catch(l){throw s.setStatus({code:Pw.ERROR,message:l.message}),l}finally{s.end()}}listPageRangeDiffItemSegments(e,t,r,n,i){return Ss(this,arguments,function*(){let o;if(n||void 0===n)do{o=yield ws(this.listPageRangesDiffSegment(e,t,r,n,i)),n=o.continuationToken,yield yield ws(yield ws(o))}while(n)})}listPageRangeDiffItems(e,t,r,n){return Ss(this,arguments,function*(){var i,o;try{for(var s,a=js(this.listPageRangeDiffItemSegments(e,t,r,void 0,n));!(s=yield ws(a.next())).done;){const e=s.value;yield ws(yield*Ns(js(Xk(e))))}}catch(l){i={error:l}}finally{try{s&&!s.done&&(o=a.return)&&(yield ws(o.call(a)))}finally{if(i)throw i.error}}})}listPageRangesDiff(e,t,r,n={}){n.conditions=n.conditions||{};const i=this.listPageRangeDiffItems(e,t,r,Object.assign({},n));return{next:()=>i.next(),[Symbol.asyncIterator](){return this},byPage:(i={})=>this.listPageRangeDiffItemSegments(e,t,r,i.continuationToken,Object.assign({maxPageSize:i.maxPageSize},n))}}async getPageRangesDiffForManagedDisks(e,t,r,n={}){var i;n.conditions=n.conditions||{};const{span:o,updatedOptions:s}=NT("PageBlobClient-GetPageRangesDiffForManagedDisks",n);try{return await this.pageBlobContext.getPageRangesDiff(Object.assign({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:Object.assign(Object.assign({},n.conditions),{ifTags:null===(i=n.conditions)||void 0===i?void 0:i.tagConditions}),prevSnapshotUrl:r,range:ZT({offset:e,count:t})},jT(s))).then($T)}catch(a){throw o.setStatus({code:Pw.ERROR,message:a.message}),a}finally{o.end()}}async resize(e,t={}){var r;t.conditions=t.conditions||{};const{span:n,updatedOptions:i}=NT("PageBlobClient-resize",t);try{return await this.pageBlobContext.resize(e,Object.assign({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:null===(r=t.conditions)||void 0===r?void 0:r.tagConditions}),encryptionScope:t.encryptionScope},jT(i)))}catch(o){throw n.setStatus({code:Pw.ERROR,message:o.message}),o}finally{n.end()}}async updateSequenceNumber(e,t,r={}){var n;r.conditions=r.conditions||{};const{span:i,updatedOptions:o}=NT("PageBlobClient-updateSequenceNumber",r);try{return await this.pageBlobContext.updateSequenceNumber(e,Object.assign({abortSignal:r.abortSignal,blobSequenceNumber:t,leaseAccessConditions:r.conditions,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:null===(n=r.conditions)||void 0===n?void 0:n.tagConditions})},jT(o)))}catch(s){throw i.setStatus({code:Pw.ERROR,message:s.message}),s}finally{i.end()}}async startCopyIncremental(e,t={}){var r;const{span:n,updatedOptions:i}=NT("PageBlobClient-startCopyIncremental",t);try{return await this.pageBlobContext.copyIncremental(e,Object.assign({abortSignal:t.abortSignal,modifiedAccessConditions:Object.assign(Object.assign({},t.conditions),{ifTags:null===(r=t.conditions)||void 0===r?void 0:r.tagConditions})},jT(i)))}catch(o){throw n.setStatus({code:Pw.ERROR,message:o.message}),o}finally{n.end()}}}function cR(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var uR,pR={exports:{}};var dR,mR=(uR||(uR=1,dR=window,pR.exports=function(){function e(t,r,n){function i(s,a){if(!r[s]){if(!t[s]){if(!a&&cR)return cR(s);if(o)return o(s,!0);var l=new Error("Cannot find module '"+s+"'");throw l.code="MODULE_NOT_FOUND",l}var c=r[s]={exports:{}};t[s][0].call(c.exports,function(e){return i(t[s][1][e]||e)},c,c.exports,e,t,r,n)}return r[s].exports}for(var o=cR,s=0;s<n.length;s++)i(n[s]);return i}return e}()({1:[function(e,t,r){var n=e("./browser/client");n.Buffer=e("buffer").Buffer,n.urllib=e("../shims/xhr"),n.version=e("./browser/version").version,t.exports=n},{"../shims/xhr":546,"./browser/client":3,"./browser/version":6,buffer:103}],2:[function(e,t,r){var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator")),o=n(e("@babel/runtime/helpers/asyncToGenerator"));e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.regexp.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.object.keys.js"),e("core-js/modules/es.array.slice.js");var s=e("assert"),a=e("../common/utils/checkBucketName").checkBucketName,l=r;function c(e){return Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)}function u(e){return e?c(e)?e:[e]:[]}l.useBucket=function(e){return a(e),this.options.bucket=e,this},l.setBucket=function(e){return a(e),this.options.bucket=e,this},l.getBucket=function(){return this.options.bucket},l.deleteBucket=function(){var e=(0,o.default)(i.default.mark(function e(t,r){var n,o;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=this._bucketRequestParams("DELETE",t,"",r),e.next=3,this.request(n);case 3:if(200!==(o=e.sent).status&&204!==o.status){e.next=6;break}return e.abrupt("return",{res:o.res});case 6:return e.next=8,this.requestError(o);case 8:throw e.sent;case 9:case"end":return e.stop()}},e,this)}));function t(t,r){return e.apply(this,arguments)}return t}(),l.putBucketACL=function(){var e=(0,o.default)(i.default.mark(function e(t,r,n){var o,s;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(o=this._bucketRequestParams("PUT",t,"acl",n)).headers={"x-oss-acl":r},o.successStatuses=[200],e.next=5,this.request(o);case 5:return s=e.sent,e.abrupt("return",{bucket:s.headers.location&&s.headers.location.substring(1)||null,res:s.res});case 7:case"end":return e.stop()}},e,this)}));function t(t,r,n){return e.apply(this,arguments)}return t}(),l.getBucketACL=function(){var e=(0,o.default)(i.default.mark(function e(t,r){var n,o;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(n=this._bucketRequestParams("GET",t,"acl",r)).successStatuses=[200],n.xmlResponse=!0,e.next=5,this.request(n);case 5:return o=e.sent,e.abrupt("return",{acl:o.data.AccessControlList.Grant,owner:{id:o.data.Owner.ID,displayName:o.data.Owner.DisplayName},res:o.res});case 7:case"end":return e.stop()}},e,this)}));function t(t,r){return e.apply(this,arguments)}return t}(),l.putBucketLogging=function(){var e=(0,o.default)(i.default.mark(function e(t,r,n){var o,s,a;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o=this._bucketRequestParams("PUT",t,"logging",n),s='<?xml version="1.0" encoding="UTF-8"?>\n<BucketLoggingStatus>\n<LoggingEnabled>\n<TargetBucket>'.concat(t,"</TargetBucket>\n"),r&&(s+="<TargetPrefix>".concat(r,"</TargetPrefix>\n")),s+="</LoggingEnabled>\n</BucketLoggingStatus>",o.content=s,o.mime="xml",o.successStatuses=[200],e.next=9,this.request(o);case 9:return a=e.sent,e.abrupt("return",{res:a.res});case 11:case"end":return e.stop()}},e,this)}));function t(t,r,n){return e.apply(this,arguments)}return t}(),l.getBucketLogging=function(){var e=(0,o.default)(i.default.mark(function e(t,r){var n,o,s;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(n=this._bucketRequestParams("GET",t,"logging",r)).successStatuses=[200],n.xmlResponse=!0,e.next=5,this.request(n);case 5:return o=e.sent,s=o.data.LoggingEnabled,e.abrupt("return",{enable:!!s,prefix:s&&s.TargetPrefix||null,res:o.res});case 8:case"end":return e.stop()}},e,this)}));function t(t,r){return e.apply(this,arguments)}return t}(),l.deleteBucketLogging=function(){var e=(0,o.default)(i.default.mark(function e(t,r){var n,o;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(n=this._bucketRequestParams("DELETE",t,"logging",r)).successStatuses=[204,200],e.next=4,this.request(n);case 4:return o=e.sent,e.abrupt("return",{res:o.res});case 6:case"end":return e.stop()}},e,this)}));function t(t,r){return e.apply(this,arguments)}return t}(),l.putBucketCORS=function(){var e=(0,o.default)(i.default.mark(function e(t,r,n){var o,a,l,c,p,d,m,f,h,y;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(s((r=r||[]).length,"rules is required"),r.forEach(function(e){s(e.allowedOrigin,"allowedOrigin is required"),s(e.allowedMethod,"allowedMethod is required")}),o=this._bucketRequestParams("PUT",t,"cors",n),a='<?xml version="1.0" encoding="UTF-8"?>\n<CORSConfiguration>',l=function(e){a+="<AllowedOrigin>".concat(e,"</AllowedOrigin>")},c=function(e){a+="<AllowedMethod>".concat(e,"</AllowedMethod>")},p=function(e){a+="<AllowedHeader>".concat(e,"</AllowedHeader>")},d=function(e){a+="<ExposeHeader>".concat(e,"</ExposeHeader>")},m=0,f=r.length;m<f;m++)h=r[m],a+="<CORSRule>",u(h.allowedOrigin).forEach(l),u(h.allowedMethod).forEach(c),u(h.allowedHeader).forEach(p),u(h.exposeHeader).forEach(d),h.maxAgeSeconds&&(a+="<MaxAgeSeconds>".concat(h.maxAgeSeconds,"</MaxAgeSeconds>")),a+="</CORSRule>";return a+="</CORSConfiguration>",o.content=a,o.mime="xml",o.successStatuses=[200],e.next=16,this.request(o);case 16:return y=e.sent,e.abrupt("return",{res:y.res});case 18:case"end":return e.stop()}},e,this)}));function t(t,r,n){return e.apply(this,arguments)}return t}(),l.getBucketCORS=function(){var e=(0,o.default)(i.default.mark(function e(t,r){var n,o,s,a;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(n=this._bucketRequestParams("GET",t,"cors",r)).successStatuses=[200],n.xmlResponse=!0,e.next=5,this.request(n);case 5:return o=e.sent,s=[],o.data&&o.data.CORSRule&&(c(a=o.data.CORSRule)||(a=[a]),a.forEach(function(e){var t={};Object.keys(e).forEach(function(r){t[r.slice(0,1).toLowerCase()+r.slice(1,r.length)]=e[r]}),s.push(t)})),e.abrupt("return",{rules:s,res:o.res});case 9:case"end":return e.stop()}},e,this)}));function t(t,r){return e.apply(this,arguments)}return t}(),l.deleteBucketCORS=function(){var e=(0,o.default)(i.default.mark(function e(t,r){var n,o;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(n=this._bucketRequestParams("DELETE",t,"cors",r)).successStatuses=[204],e.next=4,this.request(n);case 4:return o=e.sent,e.abrupt("return",{res:o.res});case 6:case"end":return e.stop()}},e,this)}));function t(t,r){return e.apply(this,arguments)}return t}(),l.putBucketReferer=function(){var e=(0,o.default)(i.default.mark(function e(t,r,n,o){var s,a,l,c;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(s=this._bucketRequestParams("PUT",t,"referer",o),a='<?xml version="1.0" encoding="UTF-8"?>\n<RefererConfiguration>\n',a+=" <AllowEmptyReferer>".concat(r?"true":"false","</AllowEmptyReferer>\n"),n&&n.length>0){for(a+=" <RefererList>\n",l=0;l<n.length;l++)a+=" <Referer>".concat(n[l],"</Referer>\n");a+=" </RefererList>\n"}else a+=" <RefererList />\n";return a+="</RefererConfiguration>",s.content=a,s.mime="xml",s.successStatuses=[200],e.next=10,this.request(s);case 10:return c=e.sent,e.abrupt("return",{res:c.res});case 12:case"end":return e.stop()}},e,this)}));function t(t,r,n,i){return e.apply(this,arguments)}return t}(),l.getBucketReferer=function(){var e=(0,o.default)(i.default.mark(function e(t,r){var n,o,s;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(n=this._bucketRequestParams("GET",t,"referer",r)).successStatuses=[200],n.xmlResponse=!0,e.next=5,this.request(n);case 5:return o=e.sent,(s=o.data.RefererList.Referer||null)&&(c(s)||(s=[s])),e.abrupt("return",{allowEmpty:"true"===o.data.AllowEmptyReferer,referers:s,res:o.res});case 9:case"end":return e.stop()}},e,this)}));function t(t,r){return e.apply(this,arguments)}return t}(),l.deleteBucketReferer=function(){var e=(0,o.default)(i.default.mark(function e(t,r){return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.putBucketReferer(t,!0,null,r);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)}));function t(t,r){return e.apply(this,arguments)}return t}(),l._bucketRequestParams=function(e,t,r,n){return{method:e,bucket:t,subres:r,additionalHeaders:n&&n.additionalHeaders,timeout:n&&n.timeout,ctx:n&&n.ctx}}},{"../common/utils/checkBucketName":53,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,assert:95,"core-js/modules/es.array.slice.js":319,"core-js/modules/es.object.keys.js":328,"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.regexp.to-string.js":339,"core-js/modules/web.dom-collections.for-each.js":380}],3:[function(e,t,r){(function(r,n){(function(){var i=e("@babel/runtime/helpers/interopRequireDefault"),o=i(e("@babel/runtime/regenerator")),s=i(e("@babel/runtime/helpers/asyncToGenerator"));e("core-js/modules/es.function.name.js"),e("core-js/modules/es.object.assign.js"),e("core-js/modules/es.array.includes.js"),e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.replace.js"),e("core-js/modules/es.array.concat.js"),e("core-js/modules/es.symbol.js"),e("core-js/modules/es.symbol.description.js"),e("core-js/modules/es.array.slice.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.promise.js"),e("core-js/modules/es.regexp.to-string.js");var a=e("debug")("ali-oss"),l=e("xml2js"),c=e("agentkeepalive"),u=e("merge-descriptors"),p=e("platform"),d=e("utility"),m=e("urllib"),f=e("./version"),h=e("bowser"),y=e("../common/signUtils"),g=e("../common/client/initOptions"),b=e("../common/utils/createRequest").createRequest,v=e("../common/utils/encoder").encoder,x=e("../common/client/getReqUrl").getReqUrl,w=e("../common/utils/setSTSToken").setSTSToken,S=e("../common/utils/retry").retry,N=e("../common/utils/isFunction").isFunction,j=e("../common/utils/getStandardRegion").getStandardRegion,E=new c;function C(){var e=p.name,t=p.version;e&&e.toLowerCase&&"ie"===e.toLowerCase()&&t.split(".")[0]}function k(){return location&&"https:"===location.protocol}function T(e,t){if(C(),!(this instanceof T))return new T(e,t);e&&e.inited?this.options=e:this.options=T.initOptions(e),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=m,this.agent=this.options.agent||E),this.ctx=t,this.userAgent=this._getUserAgent(),this.stsTokenFreshTime=new Date,this.options.amendTimeSkewed=0}t.exports=T,T.initOptions=function(e){e.stsToken;var t=Object.assign({secure:k(),useFetch:!1},e);return g(t)};var R=T.prototype;function O(e){return P.apply(this,arguments)}function P(){return(P=(0,s.default)(o.default.mark(function e(t){var r,n,i,s,a,l;return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.options.stsToken||!N(this.options.refreshSTSToken)){e.next=3;break}return e.next=3,w.call(this);case 3:return r=b.call(this,t),this.options.useFetch||(r.params.mode="disable-fetch"),s=!!t.stream,e.prev=6,e.next=9,this.urllib.request(r.url,r.params);case 9:n=e.sent,this.debug("response %s %s, got %s, headers: %j",t.method,r.url,n.status,n.headers,"info"),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(6),i=e.t0;case 16:if(!n||!t.successStatuses||-1!==t.successStatuses.indexOf(n.status)){e.next=28;break}return e.next=19,this.requestError(n);case 19:if("RequestTimeTooSkewed"!==(a=e.sent).code||s){e.next=25;break}return this.options.amendTimeSkewed=+new Date(a.serverTime)-new Date,e.next=24,this.request(t);case 24:return e.abrupt("return",e.sent);case 25:a.params=t,e.next=32;break;case 28:if(!i){e.next=32;break}return e.next=31,this.requestError(i);case 31:a=e.sent;case 32:if(!a){e.next=34;break}throw a;case 34:if(!t.xmlResponse){e.next=39;break}return e.next=37,this.parseXML(n.data);case 37:l=e.sent,n.data=l;case 39:return e.abrupt("return",n);case 40:case"end":return e.stop()}},e,this,[[6,13]])}))).apply(this,arguments)}R.debug=a,u(R,e("./object")),u(R,e("./bucket")),u(R,e("../common/bucket/getBucketWebsite")),u(R,e("../common/bucket/putBucketWebsite")),u(R,e("../common/bucket/deleteBucketWebsite")),u(R,e("../common/bucket/getBucketLifecycle")),u(R,e("../common/bucket/putBucketLifecycle")),u(R,e("../common/bucket/deleteBucketLifecycle")),u(R,e("../common/bucket/putBucketVersioning")),u(R,e("../common/bucket/getBucketVersioning")),u(R,e("../common/bucket/getBucketInventory")),u(R,e("../common/bucket/deleteBucketInventory")),u(R,e("../common/bucket/listBucketInventory")),u(R,e("../common/bucket/putBucketInventory")),u(R,e("../common/bucket/abortBucketWorm")),u(R,e("../common/bucket/completeBucketWorm")),u(R,e("../common/bucket/extendBucketWorm")),u(R,e("../common/bucket/getBucketWorm")),u(R,e("../common/bucket/initiateBucketWorm")),u(R,e("./managed-upload")),u(R,e("../common/multipart-copy")),u(R,e("../common/multipart")),u(R,e("../common/parallel")),R.signature=function(e){return this.debug("authorization stringToSign: %s",e,"info"),y.computeSignature(this.options.accessKeySecret,e,this.options.headerEncoding)},R._getReqUrl=x,R.authorization=function(e,t,r,n){var i=y.buildCanonicalString(e.toUpperCase(),t,{headers:n,parameters:r});return y.authorization(this.options.accessKeyId,this.options.accessKeySecret,i,this.options.headerEncoding)},R.authorizationV4=function(e,t,r,n,i){return y.authorizationV4(this.options.accessKeyId,this.options.accessKeySecret,j(this.options.region),e,t,r,n,i,this.options.headerEncoding)},R.request=function(){var e=(0,s.default)(o.default.mark(function e(t){var r=this;return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.options.retryMax){e.next=6;break}return e.next=3,S(O.bind(this),this.options.retryMax,{errorHandler:function(e){return!!function(e){if(t.stream)return!1;var n=[-1,-2].includes(e.status),i=r.options.requestErrorRetryHandle||function(){return!0};return n&&i(e)}(e)}})(t);case 3:return e.abrupt("return",e.sent);case 6:return e.abrupt("return",O.call(this,t));case 7:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}(),R._getResource=function(e){var t="/";return e.bucket&&(t+="".concat(e.bucket,"/")),e.object&&(t+=v(e.object,this.options.headerEncoding)),t},R._escape=function(e){return d.encodeURIComponent(e).replace(/%2F/g,"/")},R._getUserAgent=function(){var e=n&&n.browser?"js":"nodejs",t="aliyun-sdk-".concat(e,"/").concat(f.version),r=p.description;return!r&&n&&(r="Node.js ".concat(n.version.slice(1)," on ").concat(n.platform," ").concat(n.arch)),this._checkUserAgent("".concat(t," ").concat(r))},R._checkUserAgent=function(e){return e.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta")},R.checkBrowserAndVersion=function(e,t){return h.name===e&&h.version.split(".")[0]===t},R.parseXML=function(e){return new Promise(function(t,n){r.isBuffer(e)&&(e=e.toString()),l.parseString(e,{explicitRoot:!1,explicitArray:!1},function(e,r){e?n(e):t(r)})})},R.requestError=function(){var e=(0,s.default)(o.default.mark(function e(t){var r,n,i,a,l,c=this;return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=null,n=function(){var e=(0,s.default)(o.default.mark(function e(n){var i,s;return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,c.parseXML(n);case 3:if(e.t0=e.sent,e.t0){e.next=6;break}e.t0={};case 6:i=e.t0,e.next=16;break;case 9:return e.prev=9,e.t1=e.catch(0),c.debug(n,"error"),e.t1.message+="\nraw xml: ".concat(n),e.t1.status=t.status,e.t1.requestId=t.headers&&t.headers["x-oss-request-id"],e.abrupt("return",e.t1);case 16:return s=i.Message||"unknow request error, status: ".concat(t.status),i.Condition&&(s+=" (condition: ".concat(i.Condition,")")),(r=new Error(s)).name=i.Code?"".concat(i.Code,"Error"):"UnknownError",r.status=t.status,r.code=i.Code,r.ecCode=i.EC,r.requestId=i.RequestId,r.hostId=i.HostId,r.serverTime=i.ServerTime,e.abrupt("return",r);case 27:case"end":return e.stop()}},e,null,[[0,9]])}));return function(t){return e.apply(this,arguments)}}(),t.data&&t.data.length){e.next=38;break}if(-1!==t.status&&-2!==t.status){e.next=10;break}(r=new Error(t.message)).name=t.name,r.status=t.status,r.code=t.name,e.next=36;break;case 10:if(404!==t.status){e.next=17;break}(r=new Error("Object not exists")).name="NoSuchKeyError",r.status=404,r.code="NoSuchKey",e.next=34;break;case 17:if(412!==t.status){e.next=24;break}(r=new Error("Pre condition failed")).name="PreconditionFailedError",r.status=412,r.code="PreconditionFailed",e.next=34;break;case 24:if((r=new Error("Unknow error, status: ".concat(t.status))).name="UnknownError",r.status=t.status,r.res=t,!(i=t.headers&&t.headers["x-oss-err"])){e.next=34;break}return a=atob(i),e.next=33,n(a);case 33:r=e.sent;case 34:r.requestId=t.headers&&t.headers["x-oss-request-id"],r.host="";case 36:e.next=43;break;case 38:return l=String(t.data),this.debug("request response error data: %s",l,"error"),e.next=42,n(l);case 42:r=e.sent;case 43:return this.debug("generate error %j",r,"error"),e.abrupt("return",r);case 45:case"end":return e.stop()}},e,this)}));function t(t){return e.apply(this,arguments)}return t}()}).call(this)}).call(this,{isBuffer:e("../../node_modules/is-buffer/index.js")},e("_process"))},{"../../node_modules/is-buffer/index.js":409,"../common/bucket/abortBucketWorm":7,"../common/bucket/completeBucketWorm":8,"../common/bucket/deleteBucketInventory":9,"../common/bucket/deleteBucketLifecycle":10,"../common/bucket/deleteBucketWebsite":11,"../common/bucket/extendBucketWorm":12,"../common/bucket/getBucketInventory":13,"../common/bucket/getBucketLifecycle":14,"../common/bucket/getBucketVersioning":15,"../common/bucket/getBucketWebsite":16,"../common/bucket/getBucketWorm":17,"../common/bucket/initiateBucketWorm":18,"../common/bucket/listBucketInventory":19,"../common/bucket/putBucketInventory":20,"../common/bucket/putBucketLifecycle":21,"../common/bucket/putBucketVersioning":22,"../common/bucket/putBucketWebsite":23,"../common/client/getReqUrl":25,"../common/client/initOptions":26,"../common/multipart":30,"../common/multipart-copy":29,"../common/parallel":51,"../common/signUtils":52,"../common/utils/createRequest":58,"../common/utils/encoder":62,"../common/utils/getStandardRegion":65,"../common/utils/isFunction":72,"../common/utils/retry":80,"../common/utils/setSTSToken":82,"./bucket":2,"./managed-upload":4,"./object":5,"./version":6,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,_process:538,agentkeepalive:94,bowser:101,"core-js/modules/es.array.concat.js":310,"core-js/modules/es.array.includes.js":315,"core-js/modules/es.array.slice.js":319,"core-js/modules/es.function.name.js":322,"core-js/modules/es.object.assign.js":325,"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.promise.js":333,"core-js/modules/es.regexp.exec.js":338,"core-js/modules/es.regexp.to-string.js":339,"core-js/modules/es.string.replace.js":345,"core-js/modules/es.symbol.description.js":351,"core-js/modules/es.symbol.js":354,debug:536,"merge-descriptors":428,platform:440,urllib:546,utility:545,xml2js:496}],4:[function(e,t,r){(function(t){(function(){var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.function.name.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.promise.js"),e("core-js/modules/es.array.from.js"),e("core-js/modules/es.string.iterator.js"),e("core-js/modules/es.array.map.js"),e("core-js/modules/es.array.filter.js"),e("core-js/modules/es.array.find.js"),e("core-js/modules/es.array.concat.js"),e("core-js/modules/es.regexp.to-string.js"),e("core-js/modules/es.array.slice.js"),e("core-js/modules/es.array.iterator.js"),e("core-js/modules/es.array-buffer.slice.js"),e("core-js/modules/es.typed-array.uint8-array.js"),e("core-js/modules/es.typed-array.copy-within.js"),e("core-js/modules/es.typed-array.every.js"),e("core-js/modules/es.typed-array.fill.js"),e("core-js/modules/es.typed-array.filter.js"),e("core-js/modules/es.typed-array.find.js"),e("core-js/modules/es.typed-array.find-index.js"),e("core-js/modules/es.typed-array.for-each.js"),e("core-js/modules/es.typed-array.includes.js"),e("core-js/modules/es.typed-array.index-of.js"),e("core-js/modules/es.typed-array.iterator.js"),e("core-js/modules/es.typed-array.join.js"),e("core-js/modules/es.typed-array.last-index-of.js"),e("core-js/modules/es.typed-array.map.js"),e("core-js/modules/es.typed-array.reduce.js"),e("core-js/modules/es.typed-array.reduce-right.js"),e("core-js/modules/es.typed-array.reverse.js"),e("core-js/modules/es.typed-array.set.js"),e("core-js/modules/es.typed-array.slice.js"),e("core-js/modules/es.typed-array.some.js"),e("core-js/modules/es.typed-array.sort.js"),e("core-js/modules/es.typed-array.subarray.js"),e("core-js/modules/es.typed-array.to-locale-string.js"),e("core-js/modules/es.typed-array.to-string.js");var o=n(e("@babel/runtime/helpers/asyncToGenerator")),s=e("util"),a=e("path"),l=e("mime"),c=e("copy-to"),u=e("../common/utils/isBlob").isBlob,p=e("../common/utils/isFile").isFile,d=e("../common/utils/isBuffer").isBuffer,m=r;m.multipartUpload=function(){var e=(0,o.default)(i.default.mark(function e(t,r){var n,o,s,c,m,f,h,y,g,b=arguments;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=b.length>2&&void 0!==b[2]?b[2]:{},this.resetCancelFlag(),n.disabledMD5=void 0===n.disabledMD5||!!n.disabledMD5,!n.checkpoint||!n.checkpoint.uploadId){e.next=8;break}return r&&p(r)&&(n.checkpoint.file=r),e.next=7,this._resumeMultipart(n.checkpoint,n);case 7:case 41:return e.abrupt("return",e.sent);case 8:return o=102400,n.mime||(p(r)?n.mime=l.getType(a.extname(r.name)):u(r)?n.mime=r.type:d(r)?n.mime="":n.mime=l.getType(a.extname(r))),n.headers=n.headers||{},this._convertMetaToHeaders(n.meta,n.headers),e.next=14,this._getFileSize(r);case 14:if(!((s=e.sent)<o)){e.next=26;break}return n.contentLength=s,e.next=19,this.put(t,r,n);case 19:if(c=e.sent,!n||!n.progress){e.next=23;break}return e.next=23,n.progress(1);case 23:return m={res:c.res,bucket:this.options.bucket,name:t,etag:c.res.headers.etag},(n.headers&&n.headers["x-oss-callback"]||n.callback)&&(m.data=c.data),e.abrupt("return",m);case 26:if(!n.partSize||parseInt(n.partSize,10)===n.partSize){e.next=28;break}throw new Error("partSize must be int number");case 28:if(!(n.partSize&&n.partSize<o)){e.next=30;break}throw new Error("partSize must not be smaller than ".concat(o));case 30:return e.next=32,this.initMultipartUpload(t,n);case 32:if(f=e.sent,h=f.uploadId,y=this._getPartSize(s,n.partSize),g={file:r,name:t,fileSize:s,partSize:y,uploadId:h,doneParts:[]},!n||!n.progress){e.next=39;break}return e.next=39,n.progress(0,g,f.res);case 39:return e.next=41,this._resumeMultipart(g,n);case 42:case"end":return e.stop()}},e,this)}));function t(t,r){return e.apply(this,arguments)}return t}(),m._resumeMultipart=function(){var e=(0,o.default)(i.default.mark(function e(t,r){var n,s,a,l,u,p,d,m,f,h,y,g,b,v,x,w,S,N,j;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this,!this.isCancel()){e.next=3;break}throw this._makeCancelEvent();case 3:return s=t.file,a=t.fileSize,l=t.partSize,u=t.uploadId,p=t.doneParts,d=t.name,m=[],p.length>0&&c(p).to(m),f=this._divideParts(a,l),h=f.length,y=!1,g=function(e,n){return new Promise(function(){var a=(0,o.default)(i.default.mark(function o(a,l){var m,g,b,v,x;return i.default.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(i.prev=0,e.isCancel()){i.next=29;break}return m=f[n-1],i.next=5,e._createBuffer(s,m.start,m.end);case 5:return g=i.sent,b={content:g,size:m.end-m.start},i.prev=7,i.next=10,e._uploadPart(d,u,n,b,r);case 10:v=i.sent,i.next=18;break;case 13:if(i.prev=13,i.t0=i.catch(7),404!==i.t0.status){i.next=17;break}throw e._makeAbortEvent();case 17:throw i.t0;case 18:if(e.isCancel()||y){i.next=26;break}if(t.doneParts.push({number:n,etag:v.res.headers.etag}),!r.progress){i.next=23;break}return i.next=23,r.progress(p.length/(h+1),t,v.res);case 23:a({number:n,etag:v.res.headers.etag}),i.next=27;break;case 26:a();case 27:i.next=30;break;case 29:a();case 30:i.next=41;break;case 32:i.prev=32,i.t1=i.catch(0),(x=new Error).name=i.t1.name,x.message=i.t1.message,x.stack=i.t1.stack,x.partNum=n,c(i.t1).to(x),l(x);case 41:case"end":return i.stop()}},o,null,[[0,32],[7,13]])}));return function(e,t){return a.apply(this,arguments)}}())},b=Array.from(new Array(h),function(e,t){return t+1}),v=m.map(function(e){return e.number}),x=b.filter(function(e){return v.indexOf(e)<0}),w=5,S=r.parallel||w,e.next=17,this._parallel(x,S,function(e){return new Promise(function(t,r){g(n,e).then(function(e){e&&m.push(e),t()}).catch(function(e){r(e)})})});case 17:if(N=e.sent,y=!0,!(j=N.find(function(e){return"abort"===e.name}))){e.next=22;break}throw j;case 22:if(!this.isCancel()){e.next=25;break}throw g=null,this._makeCancelEvent();case 25:if(!(N&&N.length>0)){e.next=28;break}throw N[0].message="Failed to upload some parts with error: ".concat(N[0].toString()," part_num: ").concat(N[0].partNum),N[0];case 28:return e.next=30,this.completeMultipartUpload(d,u,m,r);case 30:return e.abrupt("return",e.sent);case 31:case"end":return e.stop()}},e,this)}));function t(t,r){return e.apply(this,arguments)}return t}(),m._getFileSize=function(){var e=(0,o.default)(i.default.mark(function e(t){return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!d(t)){e.next=4;break}return e.abrupt("return",t.length);case 4:if(!u(t)&&!p(t)){e.next=6;break}return e.abrupt("return",t.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return e.stop()}},e)}));function t(t){return e.apply(this,arguments)}return t}();var f=e("stream").Readable;function h(e,t){if(!(this instanceof h))return new h(e,t);f.call(this,t),this.file=e,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}function y(e){return e.arrayBuffer?e.arrayBuffer():new Promise(function(t,r){var n=new FileReader;n.onload=function(e){t(e.target.result)},n.onerror=function(e){r(e)},n.readAsArrayBuffer(e)})}s.inherits(h,f),h.prototype.readFileAndPush=function(e){if(this.fileBuffer)for(var t=!0;t&&this.fileBuffer&&this.start<this.fileBuffer.length;){var r=this.start,n=r+e;n=n>this.fileBuffer.length?this.fileBuffer.length:n,this.start=n,t=this.push(this.fileBuffer.slice(r,n))}},h.prototype._read=function(e){if(this.file&&this.start>=this.file.size||this.fileBuffer&&this.start>=this.fileBuffer.length||this.finish||0===this.start&&!this.file)return this.finish||(this.fileBuffer=null,this.finish=!0),void this.push(null);e=e||16384;var r=this;this.reader.onload=function(n){r.fileBuffer=t.from(new Uint8Array(n.target.result)),r.file=null,r.readFileAndPush(e)},0===this.start?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(e)},m._createBuffer=function(){var e=(0,o.default)(i.default.mark(function e(r,n,o){var s,a;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!u(r)&&!p(r)){e.next=8;break}return s=r.slice(n,o),e.next=4,y(s);case 4:return a=e.sent,e.abrupt("return",t.from(a));case 8:if(!d(r)){e.next=12;break}return e.abrupt("return",r.subarray(n,o));case 12:throw new Error("_createBuffer requires File/Blob/Buffer.");case 13:case"end":return e.stop()}},e)}));function r(t,r,n){return e.apply(this,arguments)}return r}(),m._getPartSize=function(e,t){var r=1e4;t||(t=1048576);var n=Math.ceil(e/r);return t<n&&(t=n),t},m._divideParts=function(e,t){for(var r=Math.ceil(e/t),n=[],i=0;i<r;i++){var o=t*i,s=Math.min(o+t,e);n.push({start:o,end:s})}return n}}).call(this)}).call(this,e("buffer").Buffer)},{"../common/utils/isBlob":68,"../common/utils/isBuffer":69,"../common/utils/isFile":71,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,buffer:103,"copy-to":107,"core-js/modules/es.array-buffer.slice.js":309,"core-js/modules/es.array.concat.js":310,"core-js/modules/es.array.filter.js":312,"core-js/modules/es.array.find.js":313,"core-js/modules/es.array.from.js":314,"core-js/modules/es.array.iterator.js":316,"core-js/modules/es.array.map.js":318,"core-js/modules/es.array.slice.js":319,"core-js/modules/es.function.name.js":322,"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.promise.js":333,"core-js/modules/es.regexp.to-string.js":339,"core-js/modules/es.string.iterator.js":343,"core-js/modules/es.typed-array.copy-within.js":356,"core-js/modules/es.typed-array.every.js":357,"core-js/modules/es.typed-array.fill.js":358,"core-js/modules/es.typed-array.filter.js":359,"core-js/modules/es.typed-array.find-index.js":360,"core-js/modules/es.typed-array.find.js":361,"core-js/modules/es.typed-array.for-each.js":362,"core-js/modules/es.typed-array.includes.js":363,"core-js/modules/es.typed-array.index-of.js":364,"core-js/modules/es.typed-array.iterator.js":365,"core-js/modules/es.typed-array.join.js":366,"core-js/modules/es.typed-array.last-index-of.js":367,"core-js/modules/es.typed-array.map.js":368,"core-js/modules/es.typed-array.reduce-right.js":369,"core-js/modules/es.typed-array.reduce.js":370,"core-js/modules/es.typed-array.reverse.js":371,"core-js/modules/es.typed-array.set.js":372,"core-js/modules/es.typed-array.slice.js":373,"core-js/modules/es.typed-array.some.js":374,"core-js/modules/es.typed-array.sort.js":375,"core-js/modules/es.typed-array.subarray.js":376,"core-js/modules/es.typed-array.to-locale-string.js":377,"core-js/modules/es.typed-array.to-string.js":378,"core-js/modules/es.typed-array.uint8-array.js":379,mime:430,path:439,stream:468,util:489}],5:[function(e,t,r){var n=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.function.name.js"),e("core-js/modules/es.object.keys.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.regexp.to-string.js"),e("core-js/modules/es.array.map.js"),e("core-js/modules/es.number.constructor.js"),e("core-js/modules/es.object.assign.js"),e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.replace.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.promise.js");var i=n(e("@babel/runtime/regenerator")),o=n(e("@babel/runtime/helpers/asyncToGenerator")),s=e("fs"),a=e("copy-to"),l=e("path"),c=e("mime"),u=e("../common/callback"),p=e("merge-descriptors"),d=e("../common/utils/isBlob").isBlob,m=e("../common/utils/isFile").isFile,f=e("../common/utils/isBuffer").isBuffer,h=e("../common/utils/obj2xml").obj2xml,y=e("../common/utils/parseRestoreInfo").parseRestoreInfo,g=r;g.append=function(){var e=(0,o.default)(i.default.mark(function e(t,r,n){var o;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return void 0===(n=n||{}).position&&(n.position="0"),n.subres={append:"",position:n.position},n.method="POST",e.next=6,this.put(t,r,n);case 6:return(o=e.sent).nextAppendPosition=o.res.headers["x-oss-next-append-position"],e.abrupt("return",o);case 9:case"end":return e.stop()}},e,this)}));function t(t,r,n){return e.apply(this,arguments)}return t}(),g.put=function(){var e=(0,o.default)(i.default.mark(function e(t,r,n){var o,s,a,p,h;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if((n=n||{}).disabledMD5=void 0===n.disabledMD5||!!n.disabledMD5,n.headers=n.headers||{},t=this._objectName(t),!f(r)){e.next=8;break}o=r,e.next=19;break;case 8:if(!d(r)&&!m(r)){e.next=18;break}return n.mime||(m(r)?n.mime=c.getType(l.extname(r.name)):n.mime=r.type),e.next=12,this._createBuffer(r,0,r.size);case 12:return o=e.sent,e.next=15,this._getFileSize(r);case 15:n.contentLength=e.sent,e.next=19;break;case 18:throw new TypeError("Must provide Buffer/Blob/File for put.");case 19:return this._convertMetaToHeaders(n.meta,n.headers),s=n.method||"PUT",a=this._objectRequestParams(s,t,n),u.encodeCallback(a,n),a.mime=n.mime,a.disabledMD5=n.disabledMD5,a.content=o,a.successStatuses=[200],e.next=29,this.request(a);case 29:return p=e.sent,h={name:t,url:this._objectUrl(t),res:p.res},a.headers&&a.headers["x-oss-callback"]&&(h.data=JSON.parse(p.data.toString())),e.abrupt("return",h);case 33:case"end":return e.stop()}},e,this)}));function t(t,r,n){return e.apply(this,arguments)}return t}(),g.putStream=function(){var e=(0,o.default)(i.default.mark(function e(t,r,n){var o,s,a,l;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(n=n||{}).headers=n.headers||{},t=this._objectName(t),n.contentLength?n.headers["Content-Length"]=n.contentLength:n.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(n.meta,n.headers),o=n.method||"PUT",s=this._objectRequestParams(o,t,n),u.encodeCallback(s,n),s.mime=n.mime,s.stream=r,s.successStatuses=[200],e.next=13,this.request(s);case 13:return a=e.sent,l={name:t,url:this._objectUrl(t),res:a.res},s.headers&&s.headers["x-oss-callback"]&&(l.data=JSON.parse(a.data.toString())),e.abrupt("return",l);case 17:case"end":return e.stop()}},e,this)}));function t(t,r,n){return e.apply(this,arguments)}return t}(),p(g,e("../common/object/copyObject")),p(g,e("../common/object/getObjectTagging")),p(g,e("../common/object/putObjectTagging")),p(g,e("../common/object/deleteObjectTagging")),p(g,e("../common/image")),p(g,e("../common/object/getBucketVersions")),p(g,e("../common/object/getACL")),p(g,e("../common/object/putACL")),p(g,e("../common/object/head")),p(g,e("../common/object/delete")),p(g,e("../common/object/get")),p(g,e("../common/object/putSymlink")),p(g,e("../common/object/getSymlink")),p(g,e("../common/object/deleteMulti")),p(g,e("../common/object/getObjectMeta")),p(g,e("../common/object/getObjectUrl")),p(g,e("../common/object/generateObjectUrl")),p(g,e("../common/object/signatureUrl")),p(g,e("../common/object/asyncSignatureUrl")),p(g,e("../common/object/signatureUrlV4")),p(g,e("../common/object/signPostObjectPolicyV4")),g.putMeta=function(){var e=(0,o.default)(i.default.mark(function e(t,r,n){var o;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.copy(t,t,{meta:r||{},timeout:n&&n.timeout,ctx:n&&n.ctx});case 2:return o=e.sent,e.abrupt("return",o);case 4:case"end":return e.stop()}},e,this)}));function t(t,r,n){return e.apply(this,arguments)}return t}(),g.list=function(){var e=(0,o.default)(i.default.mark(function e(t,r){var n,o,s,a,l;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(n=this._objectRequestParams("GET","",r)).query=t,n.xmlResponse=!0,n.successStatuses=[200],e.next=6,this.request(n);case 6:return o=e.sent,s=o.data.Contents||[],a=this,s&&(Array.isArray(s)||(s=[s]),s=s.map(function(e){return{name:e.Key,url:a._objectUrl(e.Key),lastModified:e.LastModified,etag:e.ETag,type:e.Type,size:Number(e.Size),storageClass:e.StorageClass,owner:{id:e.Owner.ID,displayName:e.Owner.DisplayName},restoreInfo:y(e.RestoreInfo)}})),(l=o.data.CommonPrefixes||null)&&(Array.isArray(l)||(l=[l]),l=l.map(function(e){return e.Prefix})),e.abrupt("return",{res:o.res,objects:s,prefixes:l,nextMarker:o.data.NextMarker||null,isTruncated:"true"===o.data.IsTruncated});case 13:case"end":return e.stop()}},e,this)}));function t(t,r){return e.apply(this,arguments)}return t}(),g.listV2=function(){var e=(0,o.default)(i.default.mark(function e(t){var r,n,o,s,a,l,c,u=arguments;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=u.length>1&&void 0!==u[1]?u[1]:{},(n=t["continuation-token"]||t.continuationToken)&&(r.subres=Object.assign({"continuation-token":n},r.subres)),(o=this._objectRequestParams("GET","",r)).query=Object.assign({"list-type":2},t),delete o.query["continuation-token"],delete o.query.continuationToken,o.xmlResponse=!0,o.successStatuses=[200],e.next=11,this.request(o);case 11:return s=e.sent,a=s.data.Contents||[],l=this,a&&(Array.isArray(a)||(a=[a]),a=a.map(function(e){var t=null;return e.Owner&&(t={id:e.Owner.ID,displayName:e.Owner.DisplayName}),{name:e.Key,url:l._objectUrl(e.Key),lastModified:e.LastModified,etag:e.ETag,type:e.Type,size:Number(e.Size),storageClass:e.StorageClass,owner:t,restoreInfo:y(e.RestoreInfo)}})),(c=s.data.CommonPrefixes||null)&&(Array.isArray(c)||(c=[c]),c=c.map(function(e){return e.Prefix})),e.abrupt("return",{res:s.res,objects:a,prefixes:c,isTruncated:"true"===s.data.IsTruncated,keyCount:+s.data.KeyCount,continuationToken:s.data.ContinuationToken||null,nextContinuationToken:s.data.NextContinuationToken||null});case 18:case"end":return e.stop()}},e,this)}));function t(t){return e.apply(this,arguments)}return t}(),g.restore=function(){var e=(0,o.default)(i.default.mark(function e(t){var r,n,o,s,a=arguments;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(r=(r=a.length>1&&void 0!==a[1]?a[1]:{type:"Archive"})||{}).subres=Object.assign({restore:""},r.subres),r.versionId&&(r.subres.versionId=r.versionId),n=this._objectRequestParams("POST",t,r),o={RestoreRequest:{Days:r.Days?r.Days:2}},"ColdArchive"!==r.type&&"DeepColdArchive"!==r.type||(o.RestoreRequest.JobParameters={Tier:r.JobParameters?r.JobParameters:"Standard"}),n.content=h(o,{headers:!0}),n.mime="xml",n.successStatuses=[202],e.next=12,this.request(n);case 12:return s=e.sent,e.abrupt("return",{res:s.res});case 14:case"end":return e.stop()}},e,this)}));function t(t){return e.apply(this,arguments)}return t}(),g._objectUrl=function(e){return this._getReqUrl({bucket:this.options.bucket,object:e})},g._objectRequestParams=function(e,t,r){if(!this.options.bucket&&!this.options.cname)throw new Error("Please create a bucket first");r=r||{};var n={object:t=this._objectName(t),bucket:this.options.bucket,method:e,subres:r&&r.subres,additionalHeaders:r&&r.additionalHeaders,timeout:r&&r.timeout,ctx:r&&r.ctx};return r.headers&&(n.headers={},a(r.headers).to(n.headers)),n},g._objectName=function(e){return e.replace(/^\/+/,"")},g._convertMetaToHeaders=function(e,t){e&&Object.keys(e).forEach(function(r){t["x-oss-meta-".concat(r)]=e[r]})},g._deleteFileSafe=function(e){var t=this;return new Promise(function(r){s.exists(e,function(n){n?s.unlink(e,function(n){n&&t.debug("unlink %j error: %s",e,n,"error"),r()}):r()})})}},{"../common/callback":24,"../common/image":27,"../common/object/asyncSignatureUrl":31,"../common/object/copyObject":32,"../common/object/delete":33,"../common/object/deleteMulti":34,"../common/object/deleteObjectTagging":35,"../common/object/generateObjectUrl":36,"../common/object/get":37,"../common/object/getACL":38,"../common/object/getBucketVersions":39,"../common/object/getObjectMeta":40,"../common/object/getObjectTagging":41,"../common/object/getObjectUrl":42,"../common/object/getSymlink":43,"../common/object/head":44,"../common/object/putACL":45,"../common/object/putObjectTagging":46,"../common/object/putSymlink":47,"../common/object/signPostObjectPolicyV4":48,"../common/object/signatureUrl":49,"../common/object/signatureUrlV4":50,"../common/utils/isBlob":68,"../common/utils/isBuffer":69,"../common/utils/isFile":71,"../common/utils/obj2xml":76,"../common/utils/parseRestoreInfo":78,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"copy-to":107,"core-js/modules/es.array.map.js":318,"core-js/modules/es.function.name.js":322,"core-js/modules/es.number.constructor.js":324,"core-js/modules/es.object.assign.js":325,"core-js/modules/es.object.keys.js":328,"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.promise.js":333,"core-js/modules/es.regexp.exec.js":338,"core-js/modules/es.regexp.to-string.js":339,"core-js/modules/es.string.replace.js":345,"core-js/modules/web.dom-collections.for-each.js":380,fs:102,"merge-descriptors":428,mime:430,path:439}],6:[function(e,t,r){r.version="6.23.0"},{}],7:[function(e,t,r){var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator")),o=n(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(r,"__esModule",{value:!0}),r.abortBucketWorm=void 0;var s=e("../utils/checkBucketName");function a(e,t){return l.apply(this,arguments)}function l(){return(l=(0,o.default)(i.default.mark(function e(t,r){var n,o;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return s.checkBucketName(t),n=this._bucketRequestParams("DELETE",t,"worm",r),e.next=4,this.request(n);case 4:return o=e.sent,e.abrupt("return",{res:o.res,status:o.status});case 6:case"end":return e.stop()}},e,this)}))).apply(this,arguments)}r.abortBucketWorm=a},{"../utils/checkBucketName":53,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93}],8:[function(e,t,r){var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator")),o=n(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(r,"__esModule",{value:!0}),r.completeBucketWorm=void 0;var s=e("../utils/checkBucketName");function a(e,t,r){return l.apply(this,arguments)}function l(){return(l=(0,o.default)(i.default.mark(function e(t,r,n){var o,a;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return s.checkBucketName(t),o=this._bucketRequestParams("POST",t,{wormId:r},n),e.next=4,this.request(o);case 4:return a=e.sent,e.abrupt("return",{res:a.res,status:a.status});case 6:case"end":return e.stop()}},e,this)}))).apply(this,arguments)}r.completeBucketWorm=a},{"../utils/checkBucketName":53,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93}],9:[function(e,t,r){var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js");var o=n(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(r,"__esModule",{value:!0}),r.deleteBucketInventory=void 0;var s=e("../utils/checkBucketName");function a(e,t){return l.apply(this,arguments)}function l(){return l=(0,o.default)(i.default.mark(function e(t,r){var n,o,a,l,c=arguments;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=c.length>2&&void 0!==c[2]?c[2]:{},o=Object.assign({inventory:"",inventoryId:r},n.subres),s.checkBucketName(t),(a=this._bucketRequestParams("DELETE",t,o,n)).successStatuses=[204],e.next=7,this.request(a);case 7:return l=e.sent,e.abrupt("return",{status:l.status,res:l.res});case 9:case"end":return e.stop()}},e,this)})),l.apply(this,arguments)}r.deleteBucketInventory=a},{"../utils/checkBucketName":53,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"core-js/modules/es.object.assign.js":325}],10:[function(e,t,r){var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator")),o=n(e("@babel/runtime/helpers/asyncToGenerator")),s=e("../utils/checkBucketName").checkBucketName;r.deleteBucketLifecycle=function(){var e=(0,o.default)(i.default.mark(function e(t,r){var n,o;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return s(t),(n=this._bucketRequestParams("DELETE",t,"lifecycle",r)).successStatuses=[204],e.next=5,this.request(n);case 5:return o=e.sent,e.abrupt("return",{res:o.res});case 7:case"end":return e.stop()}},e,this)}));function t(t,r){return e.apply(this,arguments)}return t}()},{"../utils/checkBucketName":53,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93}],11:[function(e,t,r){var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator")),o=n(e("@babel/runtime/helpers/asyncToGenerator")),s=e("../utils/checkBucketName").checkBucketName;r.deleteBucketWebsite=function(){var e=(0,o.default)(i.default.mark(function e(t,r){var n,o;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return s(t),(n=this._bucketRequestParams("DELETE",t,"website",r)).successStatuses=[204],e.next=5,this.request(n);case 5:return o=e.sent,e.abrupt("return",{res:o.res});case 7:case"end":return e.stop()}},e,this)}));function t(t,r){return e.apply(this,arguments)}return t}()},{"../utils/checkBucketName":53,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93}],12:[function(e,t,r){var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator")),o=n(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(r,"__esModule",{value:!0}),r.extendBucketWorm=void 0;var s=e("../utils/checkBucketName"),a=e("../utils/obj2xml");function l(e,t,r,n){return c.apply(this,arguments)}function c(){return(c=(0,o.default)(i.default.mark(function e(t,r,n,o){var l,c,u;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return s.checkBucketName(t),l=this._bucketRequestParams("POST",t,{wormExtend:"",wormId:r},o),c={ExtendWormConfiguration:{RetentionPeriodInDays:n}},l.mime="xml",l.content=a.obj2xml(c,{headers:!0}),l.successStatuses=[200],e.next=8,this.request(l);case 8:return u=e.sent,e.abrupt("return",{res:u.res,status:u.status});case 10:case"end":return e.stop()}},e,this)}))).apply(this,arguments)}r.extendBucketWorm=l},{"../utils/checkBucketName":53,"../utils/obj2xml":76,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93}],13:[function(e,t,r){var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js");var o=n(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(r,"__esModule",{value:!0}),r.getBucketInventory=void 0;var s=e("../utils/checkBucketName"),a=e("../utils/formatInventoryConfig");function l(e,t){return c.apply(this,arguments)}function c(){return c=(0,o.default)(i.default.mark(function e(t,r){var n,o,l,c,u=arguments;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=u.length>2&&void 0!==u[2]?u[2]:{},o=Object.assign({inventory:"",inventoryId:r},n.subres),s.checkBucketName(t),(l=this._bucketRequestParams("GET",t,o,n)).successStatuses=[200],l.xmlResponse=!0,e.next=8,this.request(l);case 8:return c=e.sent,e.abrupt("return",{status:c.status,res:c.res,inventory:a.formatInventoryConfig(c.data)});case 10:case"end":return e.stop()}},e,this)})),c.apply(this,arguments)}r.getBucketInventory=l},{"../utils/checkBucketName":53,"../utils/formatInventoryConfig":63,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"core-js/modules/es.object.assign.js":325}],14:[function(e,t,r){var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.array.map.js");var o=n(e("@babel/runtime/helpers/asyncToGenerator")),s=e("../utils/checkBucketName").checkBucketName,a=e("../utils/isArray").isArray,l=e("../utils/formatObjKey").formatObjKey;r.getBucketLifecycle=function(){var e=(0,o.default)(i.default.mark(function e(t,r){var n,o,c;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return s(t),(n=this._bucketRequestParams("GET",t,"lifecycle",r)).successStatuses=[200],n.xmlResponse=!0,e.next=6,this.request(n);case 6:return o=e.sent,(c=o.data.Rule||null)&&(a(c)||(c=[c]),c=c.map(function(e){return e.ID&&(e.id=e.ID,delete e.ID),e.Tag&&!a(e.Tag)&&(e.Tag=[e.Tag]),l(e,"firstLowerCase")})),e.abrupt("return",{rules:c,res:o.res});case 10:case"end":return e.stop()}},e,this)}));function t(t,r){return e.apply(this,arguments)}return t}()},{"../utils/checkBucketName":53,"../utils/formatObjKey":64,"../utils/isArray":67,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"core-js/modules/es.array.map.js":318}],15:[function(e,t,r){var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator")),o=n(e("@babel/runtime/helpers/asyncToGenerator")),s=e("../utils/checkBucketName").checkBucketName;r.getBucketVersioning=function(){var e=(0,o.default)(i.default.mark(function e(t,r){var n,o,a;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return s(t),(n=this._bucketRequestParams("GET",t,"versioning",r)).xmlResponse=!0,n.successStatuses=[200],e.next=6,this.request(n);case 6:return o=e.sent,a=o.data.Status,e.abrupt("return",{status:o.status,versionStatus:a,res:o.res});case 9:case"end":return e.stop()}},e,this)}));function t(t,r){return e.apply(this,arguments)}return t}()},{"../utils/checkBucketName":53,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93}],16:[function(e,t,r){var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator")),o=n(e("@babel/runtime/helpers/asyncToGenerator")),s=e("../utils/checkBucketName").checkBucketName,a=e("../utils/isObject").isObject;r.getBucketWebsite=function(){var e=(0,o.default)(i.default.mark(function e(t,r){var n,o,l;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return s(t),(n=this._bucketRequestParams("GET",t,"website",r)).successStatuses=[200],n.xmlResponse=!0,e.next=6,this.request(n);case 6:return o=e.sent,l=[],o.data.RoutingRules&&o.data.RoutingRules.RoutingRule&&(l=a(o.data.RoutingRules.RoutingRule)?[o.data.RoutingRules.RoutingRule]:o.data.RoutingRules.RoutingRule),e.abrupt("return",{index:o.data.IndexDocument&&o.data.IndexDocument.Suffix||"",supportSubDir:o.data.IndexDocument&&o.data.IndexDocument.SupportSubDir||"false",type:o.data.IndexDocument&&o.data.IndexDocument.Type,routingRules:l,error:o.data.ErrorDocument&&o.data.ErrorDocument.Key||null,res:o.res});case 10:case"end":return e.stop()}},e,this)}));function t(t,r){return e.apply(this,arguments)}return t}()},{"../utils/checkBucketName":53,"../utils/isObject":74,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93}],17:[function(e,t,r){var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js");var o=n(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(r,"__esModule",{value:!0}),r.getBucketWorm=void 0;var s=e("../utils/checkBucketName"),a=e("../utils/dataFix");function l(e,t){return c.apply(this,arguments)}function c(){return(c=(0,o.default)(i.default.mark(function e(t,r){var n,o;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return s.checkBucketName(t),(n=this._bucketRequestParams("GET",t,"worm",r)).successStatuses=[200],n.xmlResponse=!0,e.next=6,this.request(n);case 6:return o=e.sent,a.dataFix(o.data,{lowerFirst:!0,rename:{RetentionPeriodInDays:"days"}}),e.abrupt("return",Object.assign(Object.assign({},o.data),{res:o.res,status:o.status}));case 9:case"end":return e.stop()}},e,this)}))).apply(this,arguments)}r.getBucketWorm=l},{"../utils/checkBucketName":53,"../utils/dataFix":59,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"core-js/modules/es.object.assign.js":325}],18:[function(e,t,r){var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator")),o=n(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(r,"__esModule",{value:!0}),r.initiateBucketWorm=void 0;var s=e("../utils/obj2xml"),a=e("../utils/checkBucketName");function l(e,t,r){return c.apply(this,arguments)}function c(){return(c=(0,o.default)(i.default.mark(function e(t,r,n){var o,l,c;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a.checkBucketName(t),o=this._bucketRequestParams("POST",t,"worm",n),l={InitiateWormConfiguration:{RetentionPeriodInDays:r}},o.mime="xml",o.content=s.obj2xml(l,{headers:!0}),o.successStatuses=[200],e.next=8,this.request(o);case 8:return c=e.sent,e.abrupt("return",{res:c.res,wormId:c.res.headers["x-oss-worm-id"],status:c.status});case 10:case"end":return e.stop()}},e,this)}))).apply(this,arguments)}r.initiateBucketWorm=l},{"../utils/checkBucketName":53,"../utils/obj2xml":76,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93}],19:[function(e,t,r){var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js");var o=n(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(r,"__esModule",{value:!0}),r.listBucketInventory=void 0;var s=e("../utils/checkBucketName"),a=e("../utils/formatInventoryConfig");function l(e){return c.apply(this,arguments)}function c(){return c=(0,o.default)(i.default.mark(function e(t){var r,n,o,l,c,u,p,d,m=arguments;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=m.length>1&&void 0!==m[1]?m[1]:{},n=r.continuationToken,o=Object.assign({inventory:""},n&&{"continuation-token":n},r.subres),s.checkBucketName(t),(l=this._bucketRequestParams("GET",t,o,r)).successStatuses=[200],l.xmlResponse=!0,e.next=9,this.request(l);case 9:return c=e.sent,u=c.data,p=c.res,d=c.status,e.abrupt("return",{isTruncated:"true"===u.IsTruncated,nextContinuationToken:u.NextContinuationToken,inventoryList:a.formatInventoryConfig(u.InventoryConfiguration,!0),status:d,res:p});case 12:case"end":return e.stop()}},e,this)})),c.apply(this,arguments)}r.listBucketInventory=l},{"../utils/checkBucketName":53,"../utils/formatInventoryConfig":63,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"core-js/modules/es.object.assign.js":325}],20:[function(e,t,r){var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js"),e("core-js/modules/es.array.concat.js");var o=n(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(r,"__esModule",{value:!0}),r.putBucketInventory=void 0;var s=e("../utils/checkBucketName"),a=e("../utils/obj2xml");function l(e,t){return c.apply(this,arguments)}function c(){return c=(0,o.default)(i.default.mark(function e(t,r){var n,o,l,c,u,p,d,m,f,h,y,g=arguments;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=g.length>2&&void 0!==g[2]?g[2]:{},o=Object.assign({inventory:"",inventoryId:r.id},n.subres),s.checkBucketName(t),l=r.OSSBucketDestination,c=r.optionalFields,u=r.includedObjectVersions,p="acs:oss:::",d="acs:ram::".concat(l.accountId,":role/"),m={InventoryConfiguration:{Id:r.id,IsEnabled:r.isEnabled,Filter:{Prefix:r.prefix||""},Destination:{OSSBucketDestination:{Format:l.format,AccountId:l.accountId,RoleArn:"".concat(d).concat(l.rolename),Bucket:"".concat(p).concat(l.bucket),Prefix:l.prefix||"",Encryption:l.encryption||""}},Schedule:{Frequency:r.frequency},IncludedObjectVersions:u,OptionalFields:{Field:(null==c?void 0:c.field)||[]}}},f=a.obj2xml(m,{headers:!0,firstUpperCase:!0}),(h=this._bucketRequestParams("PUT",t,o,n)).successStatuses=[200],h.mime="xml",h.content=f,e.next=14,this.request(h);case 14:return y=e.sent,e.abrupt("return",{status:y.status,res:y.res});case 16:case"end":return e.stop()}},e,this)})),c.apply(this,arguments)}r.putBucketInventory=l},{"../utils/checkBucketName":53,"../utils/obj2xml":76,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"core-js/modules/es.array.concat.js":310,"core-js/modules/es.object.assign.js":325}],21:[function(e,t,r){var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.array.includes.js");var o=n(e("@babel/runtime/helpers/asyncToGenerator")),s=e("../utils/checkBucketName").checkBucketName,a=e("../utils/isArray").isArray,l=e("../utils/deepCopy").deepCopy,c=e("../utils/isObject").isObject,u=e("../utils/obj2xml").obj2xml,p=e("../utils/checkObjectTag").checkObjectTag,d=e("../utils/getStrBytesCount").getStrBytesCount;function m(e){e.days&&(e.expiration={days:e.days}),e.date&&(e.expiration={createdBeforeDate:e.date})}function f(e,t){var r=e.days,n=e.createdBeforeDate;if(!r&&!n)throw new Error("".concat(t," must includes days or createdBeforeDate"));if(r&&(a(r)||!/^[1-9][0-9]*$/.test(r)))throw new Error("days must be a positive integer");if(n&&!/\d{4}-\d{2}-\d{2}T00:00:00.000Z/.test(n))throw new Error("createdBeforeDate must be date and conform to iso8601 format")}function h(e,t){var r=e.noncurrentDays;if(!r)throw new Error("".concat(t," must includes noncurrentDays"));if(r&&(a(r)||!/^[1-9][0-9]*$/.test(r)))throw new Error("noncurrentDays must be a positive integer")}function y(e){if(!a(e)&&!c(e))throw new Error("tag must be Object or Array");e=c(e)?[e]:e;var t={};l(e).forEach(function(e){t[e.key]=e.value}),p(t)}function g(e){if(!["IA","Archive","ColdArchive","DeepColdArchive"].includes(e))throw new Error("StorageClass must be IA or Archive or ColdArchive or DeepColdArchive")}function b(e){if(e.id&&d(e.id)>255)throw new Error("ID is composed of 255 bytes at most");if(void 0===e.prefix)throw new Error("Rule must includes prefix");if(!["Enabled","Disabled"].includes(e.status))throw new Error("Status must be Enabled or Disabled");if(!(e.expiration||e.noncurrentVersionExpiration||e.abortMultipartUpload||e.transition||e.noncurrentVersionTransition))throw new Error("Rule must includes expiration or noncurrentVersionExpiration or abortMultipartUpload or transition or noncurrentVersionTransition");if(e.transition&&(g(e.transition.storageClass),f(e.transition,"Transition")),e.expiration)if(e.expiration.expiredObjectDeleteMarker){if(e.expiration.days||e.expiration.createdBeforeDate)throw new Error("expiredObjectDeleteMarker cannot be used with days or createdBeforeDate")}else f(e.expiration,"Expiration");if(e.abortMultipartUpload&&f(e.abortMultipartUpload,"AbortMultipartUpload"),e.noncurrentVersionTransition&&(g(e.noncurrentVersionTransition.storageClass),h(e.noncurrentVersionTransition,"NoncurrentVersionTransition")),e.noncurrentVersionExpiration&&h(e.noncurrentVersionExpiration,"NoncurrentVersionExpiration"),e.tag){if(e.abortMultipartUpload)throw new Error("Tag cannot be used with abortMultipartUpload");y(e.tag)}}r.putBucketLifecycle=function(){var e=(0,o.default)(i.default.mark(function e(t,r,n){var o,l,c,p,d;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(s(t),a(r)){e.next=3;break}throw new Error("rules must be Array");case 3:return o=this._bucketRequestParams("PUT",t,"lifecycle",n),c={LifecycleConfiguration:{Rule:l=[]}},r.forEach(function(e){m(e),b(e),e.id&&(e.ID=e.id,delete e.id),l.push(e)}),p=u(c,{headers:!0,firstUpperCase:!0}),o.content=p,o.mime="xml",o.successStatuses=[200],e.next=13,this.request(o);case 13:return d=e.sent,e.abrupt("return",{res:d.res});case 15:case"end":return e.stop()}},e,this)}));function t(t,r,n){return e.apply(this,arguments)}return t}()},{"../utils/checkBucketName":53,"../utils/checkObjectTag":56,"../utils/deepCopy":60,"../utils/getStrBytesCount":66,"../utils/isArray":67,"../utils/isObject":74,"../utils/obj2xml":76,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"core-js/modules/es.array.includes.js":315,"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.regexp.exec.js":338,"core-js/modules/web.dom-collections.for-each.js":380}],22:[function(e,t,r){var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.array.includes.js");var o=n(e("@babel/runtime/helpers/asyncToGenerator")),s=e("../utils/checkBucketName").checkBucketName,a=e("../utils/obj2xml").obj2xml;r.putBucketVersioning=function(){var e=(0,o.default)(i.default.mark(function e(t,r){var n,o,l,c,u=arguments;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=u.length>2&&void 0!==u[2]?u[2]:{},s(t),["Enabled","Suspended"].includes(r)){e.next=4;break}throw new Error("status must be Enabled or Suspended");case 4:return o=this._bucketRequestParams("PUT",t,"versioning",n),l={VersioningConfiguration:{Status:r}},o.mime="xml",o.content=a(l,{headers:!0}),e.next=10,this.request(o);case 10:return c=e.sent,e.abrupt("return",{res:c.res,status:c.status});case 12:case"end":return e.stop()}},e,this)}));function t(t,r){return e.apply(this,arguments)}return t}()},{"../utils/checkBucketName":53,"../utils/obj2xml":76,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"core-js/modules/es.array.includes.js":315}],23:[function(e,t,r){var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator")),o=n(e("@babel/runtime/helpers/asyncToGenerator")),s=e("../utils/checkBucketName").checkBucketName,a=e("../utils/obj2xml").obj2xml,l=e("../utils/isArray").isArray;r.putBucketWebsite=function(){var e=(0,o.default)(i.default.mark(function e(t){var r,n,o,c,u,p,d,m=arguments;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=m.length>1&&void 0!==m[1]?m[1]:{},n=m.length>2?m[2]:void 0,s(t),o=this._bucketRequestParams("PUT",t,"website",n),c={Suffix:r.index||"index.html"},p={WebsiteConfiguration:u={IndexDocument:c}},r.supportSubDir&&(c.SupportSubDir=r.supportSubDir),r.type&&(c.Type=r.type),r.error&&(u.ErrorDocument={Key:r.error}),void 0===r.routingRules){e.next=14;break}if(l(r.routingRules)){e.next=13;break}throw new Error("RoutingRules must be Array");case 13:u.RoutingRules={RoutingRule:r.routingRules};case 14:return p=a(p),o.content=p,o.mime="xml",o.successStatuses=[200],e.next=20,this.request(o);case 20:return d=e.sent,e.abrupt("return",{res:d.res});case 22:case"end":return e.stop()}},e,this)}));function t(t){return e.apply(this,arguments)}return t}()},{"../utils/checkBucketName":53,"../utils/isArray":67,"../utils/obj2xml":76,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93}],24:[function(e,t,r){(function(t){(function(){e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.regexp.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.object.keys.js"),r.encodeCallback=function(e,r){if(e.headers=e.headers||{},!Object.prototype.hasOwnProperty.call(e.headers,"x-oss-callback")&&r.callback){var n={callbackUrl:encodeURI(r.callback.url),callbackBody:r.callback.body};r.callback.host&&(n.callbackHost=r.callback.host),r.callback.contentType&&(n.callbackBodyType=r.callback.contentType),r.callback.callbackSNI&&(n.callbackSNI=r.callback.callbackSNI);var i=t.from(JSON.stringify(n)).toString("base64");if(e.headers["x-oss-callback"]=i,r.callback.customValue){var o={};Object.keys(r.callback.customValue).forEach(function(e){o["x:".concat(e)]=r.callback.customValue[e].toString()}),e.headers["x-oss-callback-var"]=t.from(JSON.stringify(o)).toString("base64")}}}}).call(this)}).call(this,e("buffer").Buffer)},{buffer:103,"core-js/modules/es.object.keys.js":328,"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.regexp.to-string.js":339,"core-js/modules/web.dom-collections.for-each.js":380}],25:[function(e,t,r){e("core-js/modules/es.array.concat.js"),e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.replace.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js");var n=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.getReqUrl=void 0;var i=n(e("copy-to")),o=n(e("url")),s=n(e("merge-descriptors")),a=n(e("is-type-of")),l=e("../utils/isIP"),c=e("../utils/checkConfigValid");function u(e){var t={},r=this.options.cname;c.checkConfigValid(this.options.endpoint,"endpoint"),i.default(this.options.endpoint,!1).to(t),!e.bucket||r||l.isIP(t.hostname)||this.options.sldEnable||(t.host="".concat(e.bucket,".").concat(t.host));var n="/";e.bucket&&this.options.sldEnable&&(n+="".concat(e.bucket,"/")),e.object&&(n+=this._escape(e.object).replace(/\+/g,"%2B")),t.pathname=n;var u={};if(e.query&&s.default(u,e.query),e.subres){var p={};a.default.string(e.subres)?p[e.subres]="":a.default.array(e.subres)?e.subres.forEach(function(e){p[e]=""}):p=e.subres,s.default(u,p)}return t.query=u,o.default.format(t)}r.getReqUrl=u},{"../utils/checkConfigValid":54,"../utils/isIP":73,"copy-to":107,"core-js/modules/es.array.concat.js":310,"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.regexp.exec.js":338,"core-js/modules/es.string.replace.js":345,"core-js/modules/web.dom-collections.for-each.js":380,"is-type-of":537,"merge-descriptors":428,url:543}],26:[function(e,t,r){e("core-js/modules/es.array.concat.js"),e("core-js/modules/es.object.assign.js"),e("core-js/modules/es.string.trim.js");var n=e("humanize-ms"),i=e("url"),o=e("../utils/checkBucketName").checkBucketName,s=e("../utils/setRegion").setRegion,a=e("../utils/checkConfigValid").checkConfigValid;function l(e,t){a(e,"endpoint");var r=i.parse(e);if(r.protocol||(r=i.parse("http".concat(t?"s":"","://").concat(e))),"http:"!==r.protocol&&"https:"!==r.protocol)throw new Error("Endpoint protocol must be http or https.");return r}t.exports=function(e){if(!e||!e.accessKeyId||!e.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");e.stsToken&&!e.refreshSTSToken&&e.refreshSTSTokenInterval,e.bucket&&o(e.bucket);var t=Object.assign({region:"oss-cn-hangzhou",internal:!1,secure:!1,timeout:6e4,bucket:null,endpoint:null,cname:!1,isRequestPay:!1,sldEnable:!1,headerEncoding:"utf-8",refreshSTSToken:null,refreshSTSTokenInterval:3e5,retryMax:0,authorizationV4:!1},e);if(t.accessKeyId=t.accessKeyId.trim(),t.accessKeySecret=t.accessKeySecret.trim(),t.timeout&&(t.timeout=n(t.timeout)),t.endpoint)t.endpoint=l(t.endpoint,t.secure);else{if(!t.region)throw new Error("require options.endpoint or options.region");t.endpoint=s(t.region,t.internal,t.secure)}return t.inited=!0,t}},{"../utils/checkBucketName":53,"../utils/checkConfigValid":54,"../utils/setRegion":81,"core-js/modules/es.array.concat.js":310,"core-js/modules/es.object.assign.js":325,"core-js/modules/es.string.trim.js":349,"humanize-ms":399,url:543}],27:[function(e,t,r){e("merge-descriptors")(r,e("./processObjectSave"))},{"./processObjectSave":28,"merge-descriptors":428}],28:[function(e,t,r){var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.array.concat.js");var o=n(e("@babel/runtime/helpers/asyncToGenerator")),s=e("../utils/checkBucketName").checkBucketName,a=e("querystring"),l=e("js-base64").Base64.encode;function c(e,t){if(!e)throw new Error("".concat(t," is required"));if("string"!=typeof e)throw new Error("".concat(t," must be String"))}r.processObjectSave=function(){var e=(0,o.default)(i.default.mark(function e(t,r,n,o){var u,p,d,m;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return c(t,"sourceObject"),c(r,"targetObject"),c(n,"process"),r=this._objectName(r),o&&s(o),u=this._objectRequestParams("POST",t,{subres:"x-oss-process"}),p=o?",b_".concat(l(o)):"",r=l(r),d={"x-oss-process":"".concat(n,"|sys/saveas,o_").concat(r).concat(p)},u.content=a.stringify(d),e.next=12,this.request(u);case 12:return m=e.sent,e.abrupt("return",{res:m.res,status:m.res.status});case 14:case"end":return e.stop()}},e,this)}));function t(t,r,n,i){return e.apply(this,arguments)}return t}()},{"../utils/checkBucketName":53,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"core-js/modules/es.array.concat.js":310,"js-base64":413,querystring:451}],29:[function(e,t,r){var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.array.concat.js"),e("core-js/modules/es.function.name.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.promise.js"),e("core-js/modules/es.array.from.js"),e("core-js/modules/es.string.iterator.js"),e("core-js/modules/es.array.map.js"),e("core-js/modules/es.array.filter.js"),e("core-js/modules/es.array.find.js"),e("core-js/modules/es.regexp.to-string.js");var o=n(e("@babel/runtime/helpers/asyncToGenerator")),s=e("debug")("ali-oss:multipart-copy"),a=e("copy-to"),l=r;l.uploadPartCopy=function(){var e=(0,o.default)(i.default.mark(function e(t,r,n,o,s){var a,l,c,u,p,d=arguments;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(a=d.length>5&&void 0!==d[5]?d[5]:{}).headers=a.headers||{},l=a.versionId||a.subres&&a.subres.versionId||null,c=l?"/".concat(s.sourceBucketName,"/").concat(encodeURIComponent(s.sourceKey),"?versionId=").concat(l):"/".concat(s.sourceBucketName,"/").concat(encodeURIComponent(s.sourceKey)),a.headers["x-oss-copy-source"]=c,o&&(a.headers["x-oss-copy-source-range"]="bytes=".concat(o)),a.subres={partNumber:n,uploadId:r},(u=this._objectRequestParams("PUT",t,a)).mime=a.mime,u.successStatuses=[200],e.next=12,this.request(u);case 12:return p=e.sent,e.abrupt("return",{name:t,etag:p.res.headers.etag,res:p.res});case 14:case"end":return e.stop()}},e,this)}));function t(t,r,n,i,o){return e.apply(this,arguments)}return t}(),l.multipartUploadCopy=function(){var e=(0,o.default)(i.default.mark(function e(t,r){var n,o,s,a,l,c,u,p,d,m,f,h=arguments;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=h.length>2&&void 0!==h[2]?h[2]:{},this.resetCancelFlag(),o=n.versionId,s={versionId:void 0===o?null:o},e.next=6,this._getObjectMeta(r.sourceBucketName,r.sourceKey,s);case 6:if(a=e.sent,l=a.res.headers["content-length"],r.startOffset=r.startOffset||0,r.endOffset=r.endOffset||l,!n.checkpoint||!n.checkpoint.uploadId){e.next=14;break}return e.next=13,this._resumeMultipartCopy(n.checkpoint,r,n);case 13:case 31:return e.abrupt("return",e.sent);case 14:if(c=102400,!((u=r.endOffset-r.startOffset)<c)){e.next=18;break}throw new Error("copySize must not be smaller than ".concat(c));case 18:if(!(n.partSize&&n.partSize<c)){e.next=20;break}throw new Error("partSize must not be smaller than ".concat(c));case 20:return e.next=22,this.initMultipartUpload(t,n);case 22:if(p=e.sent,d=p.uploadId,m=this._getPartSize(u,n.partSize),f={name:t,copySize:u,partSize:m,uploadId:d,doneParts:[]},!n||!n.progress){e.next=29;break}return e.next=29,n.progress(0,f,p.res);case 29:return e.next=31,this._resumeMultipartCopy(f,r,n);case 32:case"end":return e.stop()}},e,this)}));function t(t,r){return e.apply(this,arguments)}return t}(),l._resumeMultipartCopy=function(){var e=(0,o.default)(i.default.mark(function e(t,r,n){var l,c,u,p,d,m,f,h,y,g,b,v,x,w,S,N,j,E,C,k,T;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.isCancel()){e.next=2;break}throw this._makeCancelEvent();case 2:if(l=n.versionId,u={versionId:c=void 0===l?null:l},p=t.copySize,d=t.partSize,m=t.uploadId,f=t.doneParts,h=t.name,y=this._divideMultipartCopyParts(p,d,r.startOffset),g=y.length,b={headers:{}},n.copyheaders&&a(n.copyheaders).to(b.headers),c&&a(u).to(b),v=function(e,r,a){return new Promise(function(){var l=(0,o.default)(i.default.mark(function o(l,c){var u,p,d;return i.default.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(i.prev=0,e.isCancel()){i.next=22;break}return u=y[r-1],p="".concat(u.start,"-").concat(u.end-1),i.prev=4,i.next=7,e.uploadPartCopy(h,m,r,p,a,b);case 7:d=i.sent,i.next=15;break;case 10:if(i.prev=10,i.t0=i.catch(4),404!==i.t0.status){i.next=14;break}throw e._makeAbortEvent();case 14:throw i.t0;case 15:if(e.isCancel()){i.next=22;break}if(s("content-range ".concat(d.res.headers["content-range"])),f.push({number:r,etag:d.res.headers.etag}),t.doneParts=f,!n||!n.progress){i.next=22;break}return i.next=22,n.progress(f.length/g,t,d.res);case 22:l(),i.next=29;break;case 25:i.prev=25,i.t1=i.catch(0),i.t1.partNum=r,c(i.t1);case 29:case"end":return i.stop()}},o,null,[[0,25],[4,10]])}));return function(e,t){return l.apply(this,arguments)}}())},x=Array.from(new Array(g),function(e,t){return t+1}),w=f.map(function(e){return e.number}),S=x.filter(function(e){return w.indexOf(e)<0}),N=5,j=n.parallel||N,!this.checkBrowserAndVersion("Internet Explorer","10")&&1!==j){e.next=28;break}E=0;case 18:if(!(E<S.length)){e.next=26;break}if(!this.isCancel()){e.next=21;break}throw this._makeCancelEvent();case 21:return e.next=23,v(this,S[E],r);case 23:E++,e.next=18;break;case 26:e.next=40;break;case 28:return e.next=30,this._parallelNode(S,j,v,r);case 30:if(C=e.sent,!(k=C.find(function(e){return"abort"===e.name}))){e.next=34;break}throw k;case 34:if(!this.isCancel()){e.next=36;break}throw this._makeCancelEvent();case 36:if(!(C&&C.length>0)){e.next=40;break}throw(T=C[0]).message="Failed to copy some parts with error: ".concat(T.toString()," part_num: ").concat(T.partNum),T;case 40:return e.next=42,this.completeMultipartUpload(h,m,f,n);case 42:return e.abrupt("return",e.sent);case 43:case"end":return e.stop()}},e,this)}));function t(t,r,n){return e.apply(this,arguments)}return t}(),l._divideMultipartCopyParts=function(e,t,r){for(var n=Math.ceil(e/t),i=[],o=0;o<n;o++){var s=t*o+r,a=Math.min(s+t,e+r);i.push({start:s,end:a})}return i},l._getObjectMeta=function(){var e=(0,o.default)(i.default.mark(function e(t,r,n){var o,s;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o=this.getBucket(),this.setBucket(t),e.next=4,this.head(r,n);case 4:return s=e.sent,this.setBucket(o),e.abrupt("return",s);case 7:case"end":return e.stop()}},e,this)}));function t(t,r,n){return e.apply(this,arguments)}return t}()},{"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"copy-to":107,"core-js/modules/es.array.concat.js":310,"core-js/modules/es.array.filter.js":312,"core-js/modules/es.array.find.js":313,"core-js/modules/es.array.from.js":314,"core-js/modules/es.array.map.js":318,"core-js/modules/es.function.name.js":322,"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.promise.js":333,"core-js/modules/es.regexp.to-string.js":339,"core-js/modules/es.string.iterator.js":343,debug:536}],30:[function(e,t,r){(function(t){(function(){var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.array.map.js"),e("core-js/modules/es.array.filter.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.array.sort.js"),e("core-js/modules/es.array.concat.js"),e("core-js/modules/es.object.keys.js"),e("core-js/modules/es.regexp.to-string.js");var o=n(e("@babel/runtime/helpers/asyncToGenerator")),s=e("copy-to"),a=e("./callback"),l=e("./utils/deepCopy").deepCopyWith,c=e("./utils/isBuffer").isBuffer,u=e("./utils/omit").omit,p=r;p.listUploads=function(){var e=(0,o.default)(i.default.mark(function e(t,r){var n,o,a,l;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n={},s(r=r||{}).to(n),n.subres="uploads",(o=this._objectRequestParams("GET","",n)).query=t,o.xmlResponse=!0,o.successStatuses=[200],e.next=10,this.request(o);case 10:return a=e.sent,l=a.data.Upload||[],Array.isArray(l)||(l=[l]),l=l.map(function(e){return{name:e.Key,uploadId:e.UploadId,initiated:e.Initiated}}),e.abrupt("return",{res:a.res,uploads:l,bucket:a.data.Bucket,nextKeyMarker:a.data.NextKeyMarker,nextUploadIdMarker:a.data.NextUploadIdMarker,isTruncated:"true"===a.data.IsTruncated});case 15:case"end":return e.stop()}},e,this)}));function t(t,r){return e.apply(this,arguments)}return t}(),p.listParts=function(){var e=(0,o.default)(i.default.mark(function e(t,r,n,o){var a,l,c;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a={},s(o=o||{}).to(a),a.subres={uploadId:r},(l=this._objectRequestParams("GET",t,a)).query=n,l.xmlResponse=!0,l.successStatuses=[200],e.next=10,this.request(l);case 10:return c=e.sent,e.abrupt("return",{res:c.res,uploadId:c.data.UploadId,bucket:c.data.Bucket,name:c.data.Key,partNumberMarker:c.data.PartNumberMarker,nextPartNumberMarker:c.data.NextPartNumberMarker,maxParts:c.data.MaxParts,isTruncated:c.data.IsTruncated,parts:c.data.Part||[]});case 12:case"end":return e.stop()}},e,this)}));function t(t,r,n,i){return e.apply(this,arguments)}return t}(),p.abortMultipartUpload=function(){var e=(0,o.default)(i.default.mark(function e(t,r,n){var o,a,l;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this._stop(),o={},s(n=n||{}).to(o),o.subres={uploadId:r},(a=this._objectRequestParams("DELETE",t,o)).successStatuses=[204],e.next=9,this.request(a);case 9:return l=e.sent,e.abrupt("return",{res:l.res});case 11:case"end":return e.stop()}},e,this)}));function t(t,r,n){return e.apply(this,arguments)}return t}(),p.initMultipartUpload=function(){var e=(0,o.default)(i.default.mark(function e(t,r){var n,o,a;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n={},s(r=r||{}).to(n),n.headers=n.headers||{},this._convertMetaToHeaders(r.meta,n.headers),n.subres="uploads",(o=this._objectRequestParams("POST",t,n)).mime=r.mime,o.xmlResponse=!0,o.successStatuses=[200],e.next=12,this.request(o);case 12:return a=e.sent,e.abrupt("return",{res:a.res,bucket:a.data.Bucket,name:a.data.Key,uploadId:a.data.UploadId});case 14:case"end":return e.stop()}},e,this)}));function t(t,r){return e.apply(this,arguments)}return t}(),p.uploadPart=function(){var e=(0,o.default)(i.default.mark(function e(r,n,o,s,a,l,c){var u;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(u={size:l-a},!t||!t.browser){e.next=8;break}return e.next=5,this._createBuffer(s,a,l);case 5:u.content=e.sent,e.next=11;break;case 8:return e.next=10,this._createStream(s,a,l);case 10:u.stream=e.sent;case 11:return e.next=13,this._uploadPart(r,n,o,u,c);case 13:return e.abrupt("return",e.sent);case 14:case"end":return e.stop()}},e,this)}));function r(t,r,n,i,o,s,a){return e.apply(this,arguments)}return r}(),p.completeMultipartUpload=function(){var e=(0,o.default)(i.default.mark(function e(t,r,n,o){var s,p,d,m,f,h,y,g;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(s=n.concat().sort(function(e,t){return e.number-t.number}).filter(function(e,t,r){return!t||e.number!==r[t-1].number}),p='<?xml version="1.0" encoding="UTF-8"?>\n<CompleteMultipartUpload>\n',d=0;d<s.length;d++)m=s[d],p+="<Part>\n",p+="<PartNumber>".concat(m.number,"</PartNumber>\n"),p+="<ETag>".concat(m.etag,"</ETag>\n"),p+="</Part>\n";return p+="</CompleteMultipartUpload>",f={},(f=l(o=o||{},function(e){if(c(e))return null})).subres={uploadId:r},f.headers=u(f.headers,["x-oss-server-side-encryption","x-oss-storage-class"]),h=this._objectRequestParams("POST",t,f),a.encodeCallback(h,f),h.mime="xml",h.content=p,h.headers&&h.headers["x-oss-callback"]||(h.xmlResponse=!0),h.successStatuses=[200],e.next=17,this.request(h);case 17:if(y=e.sent,!o.progress){e.next=21;break}return e.next=21,o.progress(1,null,y.res);case 21:return g={res:y.res,bucket:h.bucket,name:t,etag:y.res.headers.etag},h.headers&&h.headers["x-oss-callback"]&&(g.data=JSON.parse(y.data.toString())),e.abrupt("return",g);case 24:case"end":return e.stop()}},e,this)}));function t(t,r,n,i){return e.apply(this,arguments)}return t}(),p._uploadPart=function(){var e=(0,o.default)(i.default.mark(function e(r,n,o,a,l){var c,p,d;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return c={},s(l=l||{}).to(c),c.headers=c.headers||{},c.headers["Content-Length"]=a.size,c.headers=u(c.headers,["x-oss-server-side-encryption","x-oss-storage-class"]),c.subres={partNumber:o,uploadId:n},(p=this._objectRequestParams("PUT",r,c)).mime=c.mime,t&&t.browser?p.content=a.content:p.stream=a.stream,p.successStatuses=[200],p.disabledMD5=l.disabledMD5,e.next=15,this.request(p);case 15:if((d=e.sent).res.headers.etag){e.next=18;break}throw new Error("Please set the etag of expose-headers in OSS \n https://help.aliyun.com/document_detail/32069.html");case 18:return a.stream&&(a.stream=null,p.stream=null),e.abrupt("return",{name:r,etag:d.res.headers.etag,res:d.res});case 20:case"end":return e.stop()}},e,this)}));function r(t,r,n,i,o){return e.apply(this,arguments)}return r}()}).call(this)}).call(this,e("_process"))},{"./callback":24,"./utils/deepCopy":60,"./utils/isBuffer":69,"./utils/omit":77,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,_process:538,"copy-to":107,"core-js/modules/es.array.concat.js":310,"core-js/modules/es.array.filter.js":312,"core-js/modules/es.array.map.js":318,"core-js/modules/es.array.sort.js":320,"core-js/modules/es.object.keys.js":328,"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.regexp.to-string.js":339}],31:[function(e,t,r){var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.regexp.exec.js");var o=n(e("@babel/runtime/helpers/asyncToGenerator")),s=e("url"),a=e("utility"),l=e("copy-to"),c=e("../../common/signUtils"),u=e("../utils/isIP").isIP,p=e("../utils/setSTSToken").setSTSToken,d=e("../utils/isFunction").isFunction;r.asyncSignatureUrl=function(){var e=(0,o.default)(i.default.mark(function e(t,r){var n,o,m,f,h,y,g=arguments;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=!(g.length>2&&void 0!==g[2])||g[2],!u(this.options.endpoint.hostname)){e.next=3;break}throw new Error("can not get the object URL when endpoint is IP");case 3:if(!n||!/^\?/.test(t)){e.next=5;break}throw new Error("Invalid object name ".concat(t));case 5:if(r=r||{},t=this._objectName(t),r.method=r.method||"GET",o=a.timestamp()+(r.expires||1800),m={bucket:this.options.bucket,object:t},f=this._getResource(m),!this.options.stsToken||!d(this.options.refreshSTSToken)){e.next=14;break}return e.next=14,p.call(this);case 14:return this.options.stsToken&&(r["security-token"]=this.options.stsToken),h=c._signatureForURL(this.options.accessKeySecret,r,f,o),(y=s.parse(this._getReqUrl(m))).query={OSSAccessKeyId:this.options.accessKeyId,Expires:o,Signature:h.Signature},l(h.subResource).to(y.query),e.abrupt("return",y.format());case 20:case"end":return e.stop()}},e,this)}));function t(t,r){return e.apply(this,arguments)}return t}()},{"../../common/signUtils":52,"../utils/isFunction":72,"../utils/isIP":73,"../utils/setSTSToken":82,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"copy-to":107,"core-js/modules/es.regexp.exec.js":338,url:543,utility:545}],32:[function(e,t,r){var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.object.keys.js"),e("core-js/modules/es.array.find.js"),e("core-js/modules/es.array.includes.js"),e("core-js/modules/es.array.concat.js"),e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.replace.js");var o=n(e("@babel/runtime/helpers/typeof")),s=n(e("@babel/runtime/helpers/asyncToGenerator")),a=e("../utils/checkBucketName").checkBucketName,l=r,c=["content-type","content-encoding","content-language","content-disposition","cache-control","expires"];l.copy=function(){var e=(0,s.default)(i.default.mark(function e(t,r,n,s){var a,l,u;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return"object"===(0,o.default)(n)&&(s=n),(s=s||{}).headers=s.headers||{},Object.keys(s.headers).forEach(function(e){s.headers["x-oss-copy-source-".concat(e.toLowerCase())]=s.headers[e]}),(s.meta||Object.keys(s.headers).find(function(e){return c.includes(e.toLowerCase())}))&&(s.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(s.meta,s.headers),r=this._getSourceName(r,n),s.versionId&&(r="".concat(r,"?versionId=").concat(s.versionId)),s.headers["x-oss-copy-source"]=r,(a=this._objectRequestParams("PUT",t,s)).xmlResponse=!0,a.successStatuses=[200,304],e.next=14,this.request(a);case 14:return l=e.sent,(u=l.data)&&(u={etag:u.ETag,lastModified:u.LastModified}),e.abrupt("return",{data:u,res:l.res});case 18:case"end":return e.stop()}},e,this)}));function t(t,r,n,i){return e.apply(this,arguments)}return t}(),l._getSourceName=function(e,t){return"string"==typeof t?e=this._objectName(e):"/"!==e[0]?t=this.options.bucket:(t=e.replace(/\/(.+?)(\/.*)/,"$1"),e=e.replace(/(\/.+?\/)(.*)/,"$2")),a(t),e=encodeURIComponent(e),e="/".concat(t,"/").concat(e)}},{"../utils/checkBucketName":53,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/helpers/typeof":91,"@babel/runtime/regenerator":93,"core-js/modules/es.array.concat.js":310,"core-js/modules/es.array.find.js":313,"core-js/modules/es.array.includes.js":315,"core-js/modules/es.object.keys.js":328,"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.regexp.exec.js":338,"core-js/modules/es.string.replace.js":345,"core-js/modules/web.dom-collections.for-each.js":380}],33:[function(e,t,r){var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js");var o=n(e("@babel/runtime/helpers/asyncToGenerator"));r.delete=function(){var e=(0,o.default)(i.default.mark(function e(t){var r,n,o,s=arguments;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(r=s.length>1&&void 0!==s[1]?s[1]:{}).subres=Object.assign({},r.subres),r.versionId&&(r.subres.versionId=r.versionId),(n=this._objectRequestParams("DELETE",t,r)).successStatuses=[204],e.next=7,this.request(n);case 7:return o=e.sent,e.abrupt("return",{res:o.res});case 9:case"end":return e.stop()}},e,this)}));function t(t){return e.apply(this,arguments)}return t}()},{"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"core-js/modules/es.object.assign.js":325}],34:[function(e,t,r){var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js");var o=n(e("@babel/runtime/helpers/asyncToGenerator")),s=e("utility"),a=e("../utils/obj2xml").obj2xml;r.deleteMulti=function(){var e=(0,o.default)(i.default.mark(function e(t){var r,n,o,l,c,u,p,d,m,f,h,y,g,b=arguments;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=b.length>1&&void 0!==b[1]?b[1]:{},n=[],t&&t.length){e.next=4;break}throw new Error("names is required");case 4:for(o=0;o<t.length;o++)l={},"string"==typeof t[o]?l.Key=s.escape(this._objectName(t[o])):(c=t[o],u=c.key,p=c.versionId,l.Key=s.escape(this._objectName(u)),l.VersionId=p),n.push(l);return d={Delete:{Quiet:!!r.quiet,Object:n}},m=a(d,{headers:!0}),r.subres=Object.assign({delete:""},r.subres),r.versionId&&(r.subres.versionId=r.versionId),(f=this._objectRequestParams("POST","",r)).mime="xml",f.content=m,f.xmlResponse=!0,f.successStatuses=[200],e.next=16,this.request(f);case 16:return h=e.sent,y=h.data,(g=y&&y.Deleted||null)&&(Array.isArray(g)||(g=[g])),e.abrupt("return",{res:h.res,deleted:g||[]});case 21:case"end":return e.stop()}},e,this)}));function t(t){return e.apply(this,arguments)}return t}()},{"../utils/obj2xml":76,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"core-js/modules/es.object.assign.js":325,utility:545}],35:[function(e,t,r){var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js");var o=n(e("@babel/runtime/helpers/asyncToGenerator"));r.deleteObjectTagging=function(){var e=(0,o.default)(i.default.mark(function e(t){var r,n,o,s=arguments;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(r=s.length>1&&void 0!==s[1]?s[1]:{}).subres=Object.assign({tagging:""},r.subres),r.versionId&&(r.subres.versionId=r.versionId),t=this._objectName(t),(n=this._objectRequestParams("DELETE",t,r)).successStatuses=[204],e.next=8,this.request(n);case 8:return o=e.sent,e.abrupt("return",{status:o.status,res:o.res});case 10:case"end":return e.stop()}},e,this)}));function t(t){return e.apply(this,arguments)}return t}()},{"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"core-js/modules/es.object.assign.js":325}],36:[function(e,t,r){e("core-js/modules/es.array.concat.js");var n=e("url"),i=e("../utils/isIP").isIP;r.generateObjectUrl=function(e,t){if(i(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");if(t)"/"!==t[t.length-1]&&(t+="/");else{t=this.options.endpoint.format();var r=n.parse(t),o=this.options.bucket;r.hostname="".concat(o,".").concat(r.hostname),r.host="".concat(o,".").concat(r.host),t=r.format()}return t+this._escape(this._objectName(e))}},{"../utils/isIP":73,"core-js/modules/es.array.concat.js":310,url:543}],37:[function(e,t,r){(function(t){(function(){var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js");var o=n(e("@babel/runtime/helpers/asyncToGenerator")),s=e("fs"),a=e("is-type-of"),l=e("../utils/isObject").isObject;r.get=function(){var e=(0,o.default)(i.default.mark(function e(r,n){var o,c,u,p,d,m,f,h,y=arguments;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o=y.length>2&&void 0!==y[2]?y[2]:{},c=null,u=!1,a.writableStream(n)?c=n:a.string(n)?(c=s.createWriteStream(n),u=!0):l(n)&&(o=n),o=o||{},p=t&&t.browser,d=null===o.responseCacheControl?"":"no-cache",m=p&&d?{"response-cache-control":d}:{},o.subres=Object.assign(m,o.subres),o.versionId&&(o.subres.versionId=o.versionId),o.process&&(o.subres["x-oss-process"]=o.process),e.prev=11,(h=this._objectRequestParams("GET",r,o)).writeStream=c,h.successStatuses=[200,206,304],e.next=17,this.request(h);case 17:f=e.sent,u&&c.destroy(),e.next=28;break;case 21:if(e.prev=21,e.t0=e.catch(11),!u){e.next=27;break}return c.destroy(),e.next=27,this._deleteFileSafe(n);case 27:throw e.t0;case 28:return e.abrupt("return",{res:f.res,content:f.data});case 29:case"end":return e.stop()}},e,this,[[11,21]])}));function r(t,r){return e.apply(this,arguments)}return r}()}).call(this)}).call(this,e("_process"))},{"../utils/isObject":74,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,_process:538,"core-js/modules/es.object.assign.js":325,fs:102,"is-type-of":537}],38:[function(e,t,r){var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js");var o=n(e("@babel/runtime/helpers/asyncToGenerator"));r.getACL=function(){var e=(0,o.default)(i.default.mark(function e(t){var r,n,o,s=arguments;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(r=s.length>1&&void 0!==s[1]?s[1]:{}).subres=Object.assign({acl:""},r.subres),r.versionId&&(r.subres.versionId=r.versionId),t=this._objectName(t),(n=this._objectRequestParams("GET",t,r)).successStatuses=[200],n.xmlResponse=!0,e.next=9,this.request(n);case 9:return o=e.sent,e.abrupt("return",{acl:o.data.AccessControlList.Grant,owner:{id:o.data.Owner.ID,displayName:o.data.Owner.DisplayName},res:o.res});case 11:case"end":return e.stop()}},e,this)}));function t(t){return e.apply(this,arguments)}return t}()},{"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"core-js/modules/es.object.assign.js":325}],39:[function(e,t,r){var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.replace.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.object.keys.js"),e("core-js/modules/es.object.assign.js"),e("core-js/modules/es.array.map.js"),e("core-js/modules/es.number.constructor.js");var o=n(e("@babel/runtime/helpers/asyncToGenerator")),s=r,a=e("../utils/isObject").isObject,l=e("../utils/isArray").isArray,c=e("../utils/parseRestoreInfo").parseRestoreInfo;function u(){return p.apply(this,arguments)}function p(){return p=(0,o.default)(i.default.mark(function e(){var t,r,n,o,s,a,u,p,d=arguments;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=d.length>0&&void 0!==d[0]?d[0]:{},r=d.length>1&&void 0!==d[1]?d[1]:{},!t.versionIdMarker||void 0!==t.keyMarker){e.next=4;break}throw new Error("A version-id marker cannot be specified without a key marker");case 4:return r.subres=Object.assign({versions:""},r.subres),r.versionId&&(r.subres.versionId=r.versionId),(n=this._objectRequestParams("GET","",r)).xmlResponse=!0,n.successStatuses=[200],n.query=m(t),e.next=12,this.request(n);case 12:return o=e.sent,s=o.data.Version||[],a=o.data.DeleteMarker||[],u=this,s&&(Array.isArray(s)||(s=[s]),s=s.map(function(e){return{name:e.Key,url:u._objectUrl(e.Key),lastModified:e.LastModified,isLatest:"true"===e.IsLatest,versionId:e.VersionId,etag:e.ETag,type:e.Type,size:Number(e.Size),storageClass:e.StorageClass,owner:{id:e.Owner.ID,displayName:e.Owner.DisplayName},restoreInfo:c(e.RestoreInfo)}})),a&&(l(a)||(a=[a]),a=a.map(function(e){return{name:e.Key,lastModified:e.LastModified,versionId:e.VersionId,owner:{id:e.Owner.ID,displayName:e.Owner.DisplayName}}})),(p=o.data.CommonPrefixes||null)&&(l(p)||(p=[p]),p=p.map(function(e){return e.Prefix})),e.abrupt("return",{res:o.res,objects:s,deleteMarker:a,prefixes:p,nextMarker:o.data.NextKeyMarker||null,NextVersionIdMarker:o.data.NextVersionIdMarker||null,nextKeyMarker:o.data.NextKeyMarker||null,nextVersionIdMarker:o.data.NextVersionIdMarker||null,isTruncated:"true"===o.data.IsTruncated});case 21:case"end":return e.stop()}},e,this)})),p.apply(this,arguments)}function d(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function m(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={};return a(e)&&Object.keys(e).forEach(function(r){t[d(r)]=e[r]}),t}s.getBucketVersions=u,s.listObjectVersions=u},{"../utils/isArray":67,"../utils/isObject":74,"../utils/parseRestoreInfo":78,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"core-js/modules/es.array.map.js":318,"core-js/modules/es.number.constructor.js":324,"core-js/modules/es.object.assign.js":325,"core-js/modules/es.object.keys.js":328,"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.regexp.exec.js":338,"core-js/modules/es.string.replace.js":345,"core-js/modules/web.dom-collections.for-each.js":380}],40:[function(e,t,r){var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js");var o=n(e("@babel/runtime/helpers/asyncToGenerator"));r.getObjectMeta=function(){var e=(0,o.default)(i.default.mark(function e(t,r){var n,o;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=r||{},t=this._objectName(t),r.subres=Object.assign({objectMeta:""},r.subres),r.versionId&&(r.subres.versionId=r.versionId),(n=this._objectRequestParams("HEAD",t,r)).successStatuses=[200],e.next=8,this.request(n);case 8:return o=e.sent,e.abrupt("return",{status:o.status,res:o.res});case 10:case"end":return e.stop()}},e,this)}));function t(t,r){return e.apply(this,arguments)}return t}()},{"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"core-js/modules/es.object.assign.js":325}],41:[function(e,t,r){var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js");var o=n(e("@babel/runtime/helpers/asyncToGenerator")),s=r,a=e("../utils/isObject").isObject;s.getObjectTagging=function(){var e=(0,o.default)(i.default.mark(function e(t){var r,n,o,s,l,c,u=arguments;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(r=u.length>1&&void 0!==u[1]?u[1]:{}).subres=Object.assign({tagging:""},r.subres),r.versionId&&(r.subres.versionId=r.versionId),t=this._objectName(t),(n=this._objectRequestParams("GET",t,r)).successStatuses=[200],e.next=8,this.request(n);case 8:return o=e.sent,e.next=11,this.parseXML(o.data);case 11:return s=e.sent,l=(l=s.TagSet.Tag)&&a(l)?[l]:l||[],c={},l.forEach(function(e){c[e.Key]=e.Value}),e.abrupt("return",{status:o.status,res:o.res,tag:c});case 17:case"end":return e.stop()}},e,this)}));function t(t){return e.apply(this,arguments)}return t}()},{"../utils/isObject":74,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"core-js/modules/es.object.assign.js":325,"core-js/modules/es.object.to-string.js":329,"core-js/modules/web.dom-collections.for-each.js":380}],42:[function(e,t,r){var n=e("../utils/isIP").isIP;r.getObjectUrl=function(e,t){if(n(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");return t?"/"!==t[t.length-1]&&(t+="/"):t=this.options.endpoint.format(),t+this._escape(this._objectName(e))}},{"../utils/isIP":73}],43:[function(e,t,r){var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js");var o=n(e("@babel/runtime/helpers/asyncToGenerator"));r.getSymlink=function(){var e=(0,o.default)(i.default.mark(function e(t){var r,n,o,s,a=arguments;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(r=a.length>1&&void 0!==a[1]?a[1]:{}).subres=Object.assign({symlink:""},r.subres),r.versionId&&(r.subres.versionId=r.versionId),t=this._objectName(t),(n=this._objectRequestParams("GET",t,r)).successStatuses=[200],e.next=8,this.request(n);case 8:return o=e.sent,s=o.res.headers["x-oss-symlink-target"],e.abrupt("return",{targetName:decodeURIComponent(s),res:o.res});case 11:case"end":return e.stop()}},e,this)}));function t(t){return e.apply(this,arguments)}return t}()},{"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"core-js/modules/es.object.assign.js":325}],44:[function(e,t,r){var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.object.keys.js");var o=n(e("@babel/runtime/helpers/asyncToGenerator")),s=e("../utils/checkEnv").checkEnv;r.head=function(){var e=(0,o.default)(i.default.mark(function e(t){var r,n,o,a,l=arguments;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=l.length>1&&void 0!==l[1]?l[1]:{},s("Because HeadObject has gzip enabled, head cannot get the file size correctly. If you need to get the file size, please use getObjectMeta"),r.subres=Object.assign({},r.subres),r.versionId&&(r.subres.versionId=r.versionId),(n=this._objectRequestParams("HEAD",t,r)).successStatuses=[200,304],e.next=8,this.request(n);case 8:return o=e.sent,a={meta:null,res:o.res,status:o.status},200===o.status&&Object.keys(o.headers).forEach(function(e){0===e.indexOf("x-oss-meta-")&&(a.meta||(a.meta={}),a.meta[e.substring(11)]=o.headers[e])}),e.abrupt("return",a);case 12:case"end":return e.stop()}},e,this)}));function t(t){return e.apply(this,arguments)}return t}()},{"../utils/checkEnv":55,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"core-js/modules/es.object.assign.js":325,"core-js/modules/es.object.keys.js":328,"core-js/modules/es.object.to-string.js":329,"core-js/modules/web.dom-collections.for-each.js":380}],45:[function(e,t,r){var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js");var o=n(e("@babel/runtime/helpers/asyncToGenerator"));r.putACL=function(){var e=(0,o.default)(i.default.mark(function e(t,r,n){var o,s;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(n=n||{}).subres=Object.assign({acl:""},n.subres),n.versionId&&(n.subres.versionId=n.versionId),n.headers=n.headers||{},n.headers["x-oss-object-acl"]=r,t=this._objectName(t),(o=this._objectRequestParams("PUT",t,n)).successStatuses=[200],e.next=10,this.request(o);case 10:return s=e.sent,e.abrupt("return",{res:s.res});case 12:case"end":return e.stop()}},e,this)}));function t(t,r,n){return e.apply(this,arguments)}return t}()},{"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"core-js/modules/es.object.assign.js":325}],46:[function(e,t,r){var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js"),e("core-js/modules/es.array.map.js"),e("core-js/modules/es.object.keys.js");var o=n(e("@babel/runtime/helpers/asyncToGenerator")),s=e("../utils/obj2xml").obj2xml,a=e("../utils/checkObjectTag").checkObjectTag;r.putObjectTagging=function(){var e=(0,o.default)(i.default.mark(function e(t,r){var n,o,l,c,u=arguments;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=u.length>2&&void 0!==u[2]?u[2]:{},a(r),n.subres=Object.assign({tagging:""},n.subres),n.versionId&&(n.subres.versionId=n.versionId),t=this._objectName(t),(o=this._objectRequestParams("PUT",t,n)).successStatuses=[200],r=Object.keys(r).map(function(e){return{Key:e,Value:r[e]}}),l={Tagging:{TagSet:{Tag:r}}},o.mime="xml",o.content=s(l),e.next=13,this.request(o);case 13:return c=e.sent,e.abrupt("return",{res:c.res,status:c.status});case 15:case"end":return e.stop()}},e,this)}));function t(t,r){return e.apply(this,arguments)}return t}()},{"../utils/checkObjectTag":56,"../utils/obj2xml":76,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"core-js/modules/es.array.map.js":318,"core-js/modules/es.object.assign.js":325,"core-js/modules/es.object.keys.js":328}],47:[function(e,t,r){var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js");var o=n(e("@babel/runtime/helpers/asyncToGenerator"));r.putSymlink=function(){var e=(0,o.default)(i.default.mark(function e(t,r,n){var o,s;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(n=n||{}).headers=n.headers||{},r=this._escape(this._objectName(r)),this._convertMetaToHeaders(n.meta,n.headers),n.headers["x-oss-symlink-target"]=r,n.subres=Object.assign({symlink:""},n.subres),n.versionId&&(n.subres.versionId=n.versionId),n.storageClass&&(n.headers["x-oss-storage-class"]=n.storageClass),t=this._objectName(t),(o=this._objectRequestParams("PUT",t,n)).successStatuses=[200],e.next=13,this.request(o);case 13:return s=e.sent,e.abrupt("return",{res:s.res});case 15:case"end":return e.stop()}},e,this)}));function t(t,r,n){return e.apply(this,arguments)}return t}()},{"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"core-js/modules/es.object.assign.js":325}],48:[function(e,t,r){(function(t){(function(){e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.regexp.to-string.js");var n=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.signPostObjectPolicyV4=void 0;var i=n(e("dateformat")),o=e("../utils/getStandardRegion"),s=e("../utils/policy2Str"),a=e("../signUtils");function l(e,r){var n=t.from(s.policy2Str(e),"utf8").toString("base64"),l=i.default(r,"UTC:yyyymmdd'T'HHMMss'Z'").split("T")[0];return a.getSignatureV4(this.options.accessKeySecret,l,o.getStandardRegion(this.options.region),n)}r.signPostObjectPolicyV4=l}).call(this)}).call(this,e("buffer").Buffer)},{"../signUtils":52,"../utils/getStandardRegion":65,"../utils/policy2Str":79,buffer:103,"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.regexp.to-string.js":339,dateformat:383}],49:[function(e,t,r){e("core-js/modules/es.regexp.exec.js");var n=e("url"),i=e("utility"),o=e("copy-to"),s=e("../../common/signUtils"),a=e("../utils/isIP").isIP;r.signatureUrl=function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(a(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");if(r&&/^\?/.test(e))throw new Error("Invalid object name ".concat(e));t=t||{},e=this._objectName(e),t.method=t.method||"GET";var l=i.timestamp()+(t.expires||1800),c={bucket:this.options.bucket,object:e},u=this._getResource(c);this.options.stsToken&&(t["security-token"]=this.options.stsToken);var p=s._signatureForURL(this.options.accessKeySecret,t,u,l),d=n.parse(this._getReqUrl(c));return d.query={OSSAccessKeyId:this.options.accessKeyId,Expires:l,Signature:p.Signature},o(p.subResource).to(d.query),d.format()}},{"../../common/signUtils":52,"../utils/isIP":73,"copy-to":107,"core-js/modules/es.regexp.exec.js":338,url:543,utility:545}],50:[function(e,t,r){var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js"),e("core-js/modules/es.array.join.js");var o=n(e("@babel/runtime/helpers/asyncToGenerator")),s=e("dateformat"),a=e("url"),l=e("../../common/signUtils"),c=e("../utils/setSTSToken").setSTSToken,u=e("../utils/isFunction").isFunction,p=e("../utils/getStandardRegion").getStandardRegion;r.signatureUrlV4=function(){var e=(0,o.default)(i.default.mark(function e(t,r,n,o,d){var m,f,h,y,g,b,v,x,w,S,N;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(m=this.options.cloudBoxId,f=l.getProduct(m),h=l.getSignRegion(p(this.options.region),m),y=n&&n.headers||{},g=Object.assign({},n&&n.queries||{}),b=s(new Date,"UTC:yyyymmdd'T'HHMMss'Z'"),v=b.split("T")[0],(x=l.fixAdditionalHeaders(d)).length>0&&(g["x-oss-additional-headers"]=x.join(";")),g["x-oss-credential"]=l.getCredential(v,h,this.options.accessKeyId,f),g["x-oss-date"]=b,g["x-oss-expires"]=r,g["x-oss-signature-version"]="OSS4-HMAC-SHA256",!this.options.stsToken||!u(this.options.refreshSTSToken)){e.next=17;break}return e.next=17,c.call(this);case 17:return this.options.stsToken&&(g["x-oss-security-token"]=this.options.stsToken),w=l.getCanonicalRequest(t,{headers:y,queries:g},this.options.bucket,o,x),S=l.getStringToSign(h,b,w,f),g["x-oss-signature"]=l.getSignatureV4(this.options.accessKeySecret,v,h,S,f),(N=a.parse(this._getReqUrl({bucket:this.options.bucket,object:o}))).query=Object.assign({},g),e.abrupt("return",N.format());case 24:case"end":return e.stop()}},e,this)}));function t(t,r,n,i,o){return e.apply(this,arguments)}return t}()},{"../../common/signUtils":52,"../utils/getStandardRegion":65,"../utils/isFunction":72,"../utils/setSTSToken":82,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"core-js/modules/es.array.join.js":317,"core-js/modules/es.object.assign.js":325,dateformat:383,url:543}],51:[function(e,t,r){var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.array.iterator.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.promise.js"),e("core-js/modules/es.string.iterator.js"),e("core-js/modules/web.dom-collections.iterator.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.function.name.js");var o=n(e("@babel/runtime/helpers/asyncToGenerator")),s=e("./utils/isArray").isArray,a=r;a._parallelNode=function(){var e=(0,o.default)(i.default.mark(function e(t,r,n,o){var s,a,l,c,u,p,d,m;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:s=this,a=[],l=[],c=t.length/r,u=t.length%r,p=0===u?c:(t.length-u)/r+1,d=1,m=0;case 8:if(!(m<t.length)){e.next=26;break}if(!s.isCancel()){e.next=11;break}return e.abrupt("break",26);case 11:if(o?l.push(n(s,t[m],o)):l.push(n(s,t[m])),l.length!==r&&(d!==p||m!==t.length-1)){e.next=23;break}return e.prev=13,d+=1,e.next=17,Promise.all(l);case 17:e.next=22;break;case 19:e.prev=19,e.t0=e.catch(13),a.push(e.t0);case 22:l=[];case 23:m++,e.next=8;break;case 26:return e.abrupt("return",a);case 27:case"end":return e.stop()}},e,this,[[13,19]])}));function t(t,r,n,i){return e.apply(this,arguments)}return t}(),a._parallel=function(e,t,r){var n=this;return new Promise(function(i){var o=[];if(t<=0||!e)i(o);else{var s=p(e),a=!1,l=0,c=!1;f()}function u(e){return function(){if(null===e)throw new Error("Callback was already called.");var t=e;e=null;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];t.apply(this,n)}}function p(e){var t=-1,r=e.length;return function(){return++t<r&&!n.isCancel()?{value:e[t],key:t}:null}}function d(e){l-=1,e?(a=!0,o.push(e),i(o)):a&&l<=0?(a=!0,i(o)):c||(n.isCancel()?i(o):f())}function m(e,t){r(e).then(function(e){t(null,e)}).catch(function(e){t(e)})}function f(){for(c=!0;l<t&&!a&&!n.isCancel();){var e=s();if(null===e||o.length>0)return a=!0,void(l<=0&&i(o));l+=1,m(e.value,u(d))}c=!1}})},a.cancel=function(e){this.options.cancelFlag=!0,s(this.multipartUploadStreams)&&this.multipartUploadStreams.forEach(function(e){if(!1===e.destroyed){var t={name:"cancel",message:"cancel"};e.destroy(t)}}),this.multipartUploadStreams=[],e&&this.abortMultipartUpload(e.name,e.uploadId,e.options)},a.isCancel=function(){return this.options.cancelFlag},a.resetCancelFlag=function(){this.options.cancelFlag=!1},a._stop=function(){this.options.cancelFlag=!0},a._makeCancelEvent=function(){return{status:0,name:"cancel"}},a._makeAbortEvent=function(){return{status:0,name:"abort",message:"upload task has been abort"}}},{"./utils/isArray":67,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"core-js/modules/es.array.iterator.js":316,"core-js/modules/es.function.name.js":322,"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.promise.js":333,"core-js/modules/es.string.iterator.js":343,"core-js/modules/web.dom-collections.for-each.js":380,"core-js/modules/web.dom-collections.iterator.js":381}],52:[function(e,t,r){(function(t){(function(){var n=e("@babel/runtime/helpers/interopRequireDefault")(e("@babel/runtime/helpers/toConsumableArray"));e("core-js/modules/es.string.trim.js"),e("core-js/modules/es.array.sort.js"),e("core-js/modules/es.array.join.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.object.keys.js"),e("core-js/modules/es.array.concat.js"),e("core-js/modules/es.array.filter.js"),e("core-js/modules/es.array.iterator.js"),e("core-js/modules/es.set.js"),e("core-js/modules/es.string.iterator.js"),e("core-js/modules/web.dom-collections.iterator.js"),e("core-js/modules/es.array.map.js"),e("core-js/modules/es.string.starts-with.js"),e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.replace.js"),e("core-js/modules/es.object.entries.js"),e("core-js/modules/es.regexp.to-string.js");var i=e("./../../shims/crypto/crypto.js"),o=e("is-type-of"),s=e("qs"),a=e("./utils/lowercaseKeyHeader").lowercaseKeyHeader,l=e("./utils/encodeString").encodeString;r.getProduct=function(e){return void 0===e?"oss":"oss-cloudbox"},r.getSignRegion=function(e,t){return void 0===t?e:t},r.buildCanonicalizedResource=function(e,t){var r="".concat(e),n="?";if(o.string(t)&&""!==t.trim())r+=n+t;else if(o.array(t))t.sort(),r+=n+t.join("&");else if(t){var i=function(e){r+=n+e,(t[e]||0===t[e])&&(r+="=".concat(t[e])),n="&"};Object.keys(t).sort().forEach(i)}return r},r.buildCanonicalString=function(e,t,r,n){var i=a((r=r||{}).headers),o="x-oss-",s=[],l={},c=[e.toUpperCase(),i["content-md5"]||"",i["content-type"],n||i["x-oss-date"]];return Object.keys(i).forEach(function(e){var t=e.toLowerCase();0===t.indexOf(o)&&(l[t]=String(i[e]).trim())}),Object.keys(l).sort().forEach(function(e){s.push("".concat(e,":").concat(l[e]))}),(c=c.concat(s)).push(this.buildCanonicalizedResource(t,r.parameters)),c.join("\n")},r.computeSignature=function(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"utf-8";return i.createHmac("sha1",e).update(t.from(r,n)).digest("base64")},r.authorization=function(e,t,r,n){return"OSS ".concat(e,":").concat(this.computeSignature(t,r,n))},r.fixAdditionalHeaders=function(e){if(!e)return[];var t="x-oss-";return(0,n.default)(new Set(e.map(function(e){return e.toLowerCase()}))).filter(function(e){return"content-type"!==e&&"content-md5"!==e&&!e.startsWith(t)}).sort()},r.getCanonicalRequest=function(e,t,r,i,c){var u=a(t.headers),p=t.queries||{},d="x-oss-";if(i&&!r)throw Error("Please ensure that bucketName is passed into getCanonicalRequest.");var m=[e.toUpperCase(),l("/".concat(r?"".concat(r,"/"):"").concat(i||"")).replace(/%2F/g,"/")];m.push(s.stringify(p,{encoder:l,sort:function(e,t){return e.localeCompare(t)},strictNullHandling:!0})),c&&c.forEach(function(e){if(!Object.prototype.hasOwnProperty.call(u,e))throw Error("Can't find additional header ".concat(e," in request headers."))});var f=new Set(c);Object.keys(u).forEach(function(e){("content-type"===e||"content-md5"===e||e.startsWith(d))&&f.add(e)});var h="".concat((0,n.default)(f).sort().map(function(e){return"".concat(e,":").concat(o.string(u[e])?u[e].trim():u[e],"\n")}).join(""));return m.push(h),c&&c.length>0?m.push(c.join(";")):m.push(""),m.push(u["x-oss-content-sha256"]||"UNSIGNED-PAYLOAD"),m.join("\n")},r.getCredential=function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"oss",i="".concat(e,"/").concat(t,"/").concat(n,"/aliyun_v4_request");return r?"".concat(r,"/").concat(i):i},r.getStringToSign=function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"oss";return["OSS4-HMAC-SHA256",t,this.getCredential(t.split("T")[0],e,void 0,n),i.createHash("sha256").update(r).digest("hex")].join("\n")},r.getSignatureV4=function(e,t,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"oss",s=i.createHmac("sha256","aliyun_v4".concat(e)).update(t).digest(),a=i.createHmac("sha256",s).update(r).digest(),l=i.createHmac("sha256",a).update(o).digest(),c=i.createHmac("sha256",l).update("aliyun_v4_request").digest();return i.createHmac("sha256",c).update(n).digest("hex")},r.authorizationV4=function(e,r,n,i,s,a,l,c){var u=arguments.length>8&&void 0!==arguments[8]?arguments[8]:"utf-8",p=arguments.length>9?arguments[9]:void 0,d=this.getProduct(p),m=this.fixAdditionalHeaders(c),f={};Object.entries(s.headers).forEach(function(e){f[e[0]]=o.string(e[1])?t.from(e[1],u).toString():e[1]});var h=f["x-oss-date"]||s.queries&&s.queries["x-oss-date"],y=this.getCanonicalRequest(i,{headers:f,queries:s.queries},a,l,m),g=this.getStringToSign(n,h,y,d),b=h.split("T")[0],v=this.getSignatureV4(r,b,n,g,d),x=m.length>0?"AdditionalHeaders=".concat(m.join(";"),","):"";return"OSS4-HMAC-SHA256 Credential=".concat(this.getCredential(b,n,e,d),",").concat(x,"Signature=").concat(v)},r._signatureForURL=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,s={},a=r.subResource,l=void 0===a?{}:a;if(r.process&&(l["x-oss-process"]=r.process),r.trafficLimit&&(l["x-oss-traffic-limit"]=r.trafficLimit),r.response&&Object.keys(r.response).forEach(function(e){var t="response-".concat(e.toLowerCase());l[t]=r.response[e]}),Object.keys(r).forEach(function(e){var t=e.toLowerCase(),n=r[e];0===t.indexOf("x-oss-")?s[t]=n:(0===t.indexOf("content-md5")||0===t.indexOf("content-type"))&&(s[e]=n)}),Object.prototype.hasOwnProperty.call(r,"security-token")&&(l["security-token"]=r["security-token"]),Object.prototype.hasOwnProperty.call(r,"callback")){var c={callbackUrl:encodeURI(r.callback.url),callbackBody:r.callback.body};if(r.callback.host&&(c.callbackHost=r.callback.host),r.callback.contentType&&(c.callbackBodyType=r.callback.contentType),r.callback.callbackSNI&&(c.callbackSNI=r.callback.callbackSNI),l.callback=t.from(JSON.stringify(c)).toString("base64"),r.callback.customValue){var u={};Object.keys(r.callback.customValue).forEach(function(e){u["x:".concat(e)]=r.callback.customValue[e]}),l["callback-var"]=t.from(JSON.stringify(u)).toString("base64")}}var p=this.buildCanonicalString(r.method,n,{headers:s,parameters:l},i.toString());return{Signature:this.computeSignature(e,p,o),subResource:l}}}).call(this)}).call(this,e("buffer").Buffer)},{"./../../shims/crypto/crypto.js":531,"./utils/encodeString":61,"./utils/lowercaseKeyHeader":75,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/helpers/toConsumableArray":90,buffer:103,"core-js/modules/es.array.concat.js":310,"core-js/modules/es.array.filter.js":312,"core-js/modules/es.array.iterator.js":316,"core-js/modules/es.array.join.js":317,"core-js/modules/es.array.map.js":318,"core-js/modules/es.array.sort.js":320,"core-js/modules/es.object.entries.js":326,"core-js/modules/es.object.keys.js":328,"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.regexp.exec.js":338,"core-js/modules/es.regexp.to-string.js":339,"core-js/modules/es.set.js":341,"core-js/modules/es.string.iterator.js":343,"core-js/modules/es.string.replace.js":345,"core-js/modules/es.string.starts-with.js":348,"core-js/modules/es.string.trim.js":349,"core-js/modules/web.dom-collections.for-each.js":380,"core-js/modules/web.dom-collections.iterator.js":381,"is-type-of":537,qs:445}],53:[function(e,t,r){e("core-js/modules/es.regexp.exec.js"),Object.defineProperty(r,"__esModule",{value:!0}),r.checkBucketName=void 0,r.checkBucketName=function(e){if(!(arguments.length>1&&void 0!==arguments[1]&&arguments[1]?/^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/:/^[a-z0-9_][a-z0-9-_]{1,61}[a-z0-9_]$/).test(e))throw new Error("The bucket must be conform to the specifications")}},{"core-js/modules/es.regexp.exec.js":338}],54:[function(e,t,r){e("core-js/modules/es.regexp.exec.js"),Object.defineProperty(r,"__esModule",{value:!0}),r.checkConfigValid=void 0;var n={endpoint:i,region:/^[a-zA-Z0-9\-_]+$/};function i(e){return"string"==typeof e?/^[a-zA-Z0-9._:/-]+$/.test(e):!!e.host&&/^[a-zA-Z0-9._:/-]+$/.test(e.host)}r.checkConfigValid=function(e,t){if(n[t]&&!(n[t]instanceof Function?n[t](e):n[t].test(e)))throw new Error("The ".concat(t," must be conform to the specifications"))}},{"core-js/modules/es.regexp.exec.js":338}],55:[function(e,t,r){(function(e){(function(){function t(t){e.browser}Object.defineProperty(r,"__esModule",{value:!0}),r.checkEnv=void 0,r.checkEnv=t}).call(this)}).call(this,e("_process"))},{_process:538}],56:[function(e,t,r){e("core-js/modules/es.array.concat.js"),e("core-js/modules/es.object.entries.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js"),Object.defineProperty(r,"__esModule",{value:!0}),r.checkObjectTag=void 0;var n=e("./checkValid").checkValid,i=e("./isObject").isObject,o=[{validator:function(e){if("string"!=typeof e)throw new Error("the key and value of the tag must be String")}},{pattern:/^[a-zA-Z0-9 +-=._:/]+$/,msg:"tag can contain letters, numbers, spaces, and the following symbols: plus sign (+), hyphen (-), equal sign (=), period (.), underscore (_), colon (:), and forward slash (/)"}],s={key:[].concat(o,[{pattern:/^.{1,128}$/,msg:"tag key can be a maximum of 128 bytes in length"}]),value:[].concat(o,[{pattern:/^.{0,256}$/,msg:"tag value can be a maximum of 256 bytes in length"}])};function a(e){if(!i(e))throw new Error("tag must be Object");var t=Object.entries(e);if(t.length>10)throw new Error("maximum of 10 tags for a object");var r=["key","value"];t.forEach(function(e){e.forEach(function(e,t){n(e,s[r[t]])})})}r.checkObjectTag=a},{"./checkValid":57,"./isObject":74,"core-js/modules/es.array.concat.js":310,"core-js/modules/es.object.entries.js":326,"core-js/modules/es.object.to-string.js":329,"core-js/modules/web.dom-collections.for-each.js":380}],57:[function(e,t,r){function n(e,t){t.forEach(function(t){if(t.validator)t.validator(e);else if(t.pattern&&!t.pattern.test(e))throw new Error(t.msg)})}e("core-js/modules/es.object.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.regexp.exec.js"),Object.defineProperty(r,"__esModule",{value:!0}),r.checkValid=void 0,r.checkValid=n},{"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.regexp.exec.js":338,"core-js/modules/web.dom-collections.for-each.js":380}],58:[function(e,t,r){(function(t){(function(){e("core-js/modules/es.array.includes.js"),e("core-js/modules/es.string.includes.js"),e("core-js/modules/es.object.assign.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.object.entries.js"),e("core-js/modules/es.array.concat.js"),Object.defineProperty(r,"__esModule",{value:!0}),r.createRequest=void 0;var n=e("./../../../shims/crypto/crypto.js"),i=e("debug")("ali-oss"),o=e("lodash/isString"),s=e("lodash/isArray"),a=e("lodash/isObject"),l=e("mime"),c=e("dateformat"),u=e("copy-to"),p=e("path"),d=e("./encoder").encoder,m=e("./isIP").isIP,f=e("./setRegion").setRegion,h=e("../client/getReqUrl").getReqUrl,y=e("./isDingTalk").isDingTalk;function g(e,t){return e[t]||e[t.toLowerCase()]}function b(e,t){delete e[t],delete e[t.toLowerCase()]}function v(e){var r=new Date;this.options.amendTimeSkewed&&(r=+new Date+this.options.amendTimeSkewed);var v={"x-oss-date":c(r,this.options.authorizationV4?"UTC:yyyymmdd'T'HHMMss'Z'":"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'")};this.options.authorizationV4&&(v["x-oss-content-sha256"]="UNSIGNED-PAYLOAD"),"undefined"!=typeof window&&(v["x-oss-user-agent"]=this.userAgent),this.userAgent.includes("nodejs")&&(v["User-Agent"]=this.userAgent),this.options.isRequestPay&&Object.assign(v,{"x-oss-request-payer":"requester"}),this.options.stsToken&&(v["x-oss-security-token"]=this.options.stsToken),u(e.headers).to(v),g(v,"Content-Type")||(e.mime&&e.mime.indexOf("/")>0?v["Content-Type"]=e.mime:y()?v["Content-Type"]="application/octet-stream":v["Content-Type"]=l.getType(e.mime||p.extname(e.object||""))),g(v,"Content-Type")||b(v,"Content-Type"),e.content&&(e.disabledMD5||(e.headers&&e.headers["Content-MD5"]?v["Content-MD5"]=e.headers["Content-MD5"]:v["Content-MD5"]=n.createHash("md5").update(t.from(e.content,"utf8")).digest("base64")),v["Content-Length"]||(v["Content-Length"]=e.content.length));var x=Object.prototype.hasOwnProperty;for(var w in v)v[w]&&x.call(v,w)&&(v[w]=d(String(v[w]),this.options.headerEncoding));var S={};if(o(e.subres)?S[e.subres]=null:s(e.subres)?e.subres.forEach(function(e){S[e]=null}):a(e.subres)&&Object.entries(e.subres).forEach(function(e){S[e[0]]=""===e[1]?null:e[1]}),a(e.query)&&Object.entries(e.query).forEach(function(e){S[e[0]]=e[1]}),v.authorization=this.options.authorizationV4?this.authorizationV4(e.method,{headers:v,queries:S},e.bucket,e.object,e.additionalHeaders):this.authorization(e.method,this._getResource(e),e.subres,v,this.options.headerEncoding),m(this.options.endpoint.hostname)){var N=this.options,j=N.region,E=N.internal,C=N.secure,k=f(j,E,C);v.host="".concat(e.bucket,".").concat(k.host)}var T=h.bind(this)(e);i("request %s %s, with headers %j, !!stream: %s",e.method,T,v,!!e.stream);var R=e.timeout||this.options.timeout,O={method:e.method,content:e.content,stream:e.stream,headers:v,timeout:R,writeStream:e.writeStream,customResponse:e.customResponse,ctx:e.ctx||this.ctx};return this.agent&&(O.agent=this.agent),this.httpsAgent&&(O.httpsAgent=this.httpsAgent),O.enableProxy=!!this.options.enableProxy,O.proxy=this.options.proxy?this.options.proxy:null,{url:T,params:O}}r.createRequest=v}).call(this)}).call(this,e("buffer").Buffer)},{"../client/getReqUrl":25,"./../../../shims/crypto/crypto.js":531,"./encoder":62,"./isDingTalk":70,"./isIP":73,"./setRegion":81,buffer:103,"copy-to":107,"core-js/modules/es.array.concat.js":310,"core-js/modules/es.array.includes.js":315,"core-js/modules/es.object.assign.js":325,"core-js/modules/es.object.entries.js":326,"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.string.includes.js":342,"core-js/modules/web.dom-collections.for-each.js":380,dateformat:383,debug:536,"lodash/isArray":422,"lodash/isObject":423,"lodash/isString":425,mime:430,path:439}],59:[function(e,t,r){e("core-js/modules/es.object.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.object.entries.js"),e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.replace.js"),e("core-js/modules/es.array.includes.js"),e("core-js/modules/es.object.keys.js"),Object.defineProperty(r,"__esModule",{value:!0}),r.dataFix=void 0;var n=e("./isObject"),i=["true","TRUE","1",1],o=["false","FALSE","0",0];function s(e,t,r){if(n.isObject(e)){var i=t.remove,o=void 0===i?[]:i,c=t.rename,u=void 0===c?{}:c,p=t.camel,d=void 0===p?[]:p,m=t.bool,f=void 0===m?[]:m,h=t.lowerFirst,y=void 0!==h&&h;return o.forEach(function(t){return delete e[t]}),Object.entries(u).forEach(function(t){e[t[0]]&&(e[t[1]]||(e[t[1]]=e[t[0]],delete e[t[0]]))}),d.forEach(function(t){if(e[t]){var r=t.replace(/^(.)/,function(e){return e.toLowerCase()}).replace(/-(\w)/g,function(e,t){return t.toUpperCase()});e[r]||(e[r]=e[t])}}),f.forEach(function(t){e[t]=a(e[t])}),"function"==typeof r&&r(e),l(e,y),s}}function a(e){return!!e&&(!!i.includes(e)||!o.includes(e)&&e)}function l(e,t){t&&Object.keys(e).forEach(function(t){var r=t.replace(/^\w/,function(e){return e.toLowerCase()});void 0===e[r]&&(e[r]=e[t],delete e[t])})}r.dataFix=s},{"./isObject":74,"core-js/modules/es.array.includes.js":315,"core-js/modules/es.object.entries.js":326,"core-js/modules/es.object.keys.js":328,"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.regexp.exec.js":338,"core-js/modules/es.string.replace.js":345,"core-js/modules/web.dom-collections.for-each.js":380}],60:[function(e,t,r){var n=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.array.slice.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.object.keys.js");var i=n(e("@babel/runtime/helpers/typeof"));Object.defineProperty(r,"__esModule",{value:!0}),r.deepCopyWith=r.deepCopy=void 0;var o=e("./isBuffer");r.deepCopy=function(e){if(null===e||"object"!==(0,i.default)(e))return e;if(o.isBuffer(e))return e.slice();var t=Array.isArray(e)?[]:{};return Object.keys(e).forEach(function(n){t[n]=r.deepCopy(e[n])}),t},r.deepCopyWith=function(e,t){function n(e,r,s){var a=t(e,r,s);if(void 0!==a)return a;if(null===e||"object"!==(0,i.default)(e))return e;if(o.isBuffer(e))return e.slice();var l=Array.isArray(e)?[]:{};return Object.keys(e).forEach(function(t){l[t]=n(e[t],t,e)}),l}return t?n(e,"",null):r.deepCopy(e)}},{"./isBuffer":69,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/helpers/typeof":91,"core-js/modules/es.array.slice.js":319,"core-js/modules/es.object.keys.js":328,"core-js/modules/es.object.to-string.js":329,"core-js/modules/web.dom-collections.for-each.js":380}],61:[function(e,t,r){e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.replace.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.regexp.to-string.js");var n=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.encodeString=void 0;var i=n(e("lodash/toString"));function o(e){var t=i.default(e);return encodeURIComponent(t).replace(/[!'()*]/g,function(e){return"%".concat(e.charCodeAt(0).toString(16).toUpperCase())})}r.encodeString=o},{"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.regexp.exec.js":338,"core-js/modules/es.regexp.to-string.js":339,"core-js/modules/es.string.replace.js":345,"lodash/toString":427}],62:[function(e,t,r){(function(t){(function(){function n(e){return"utf-8"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"utf-8")?e:t.from(e).toString("latin1")}e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.regexp.to-string.js"),Object.defineProperty(r,"__esModule",{value:!0}),r.encoder=void 0,r.encoder=n}).call(this)}).call(this,e("buffer").Buffer)},{buffer:103,"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.regexp.to-string.js":339}],63:[function(e,t,r){e("core-js/modules/es.array.map.js"),e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.replace.js"),Object.defineProperty(r,"__esModule",{value:!0}),r.formatInventoryConfig=void 0;var n=e("../utils/dataFix"),i=e("../utils/isObject"),o=e("../utils/isArray"),s=e("../utils/formatObjKey");function a(e){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&i.isObject(e)&&(e=[e]),e=o.isArray(e)?e.map(l):l(e)}function l(e){return n.dataFix(e,{bool:["IsEnabled"]},function(e){var t,r;e.prefix=e.Filter.Prefix,delete e.Filter,e.OSSBucketDestination=e.Destination.OSSBucketDestination,e.OSSBucketDestination.rolename=e.OSSBucketDestination.RoleArn.replace(/.*\//,""),delete e.OSSBucketDestination.RoleArn,e.OSSBucketDestination.bucket=e.OSSBucketDestination.Bucket.replace(/.*:::/,""),delete e.OSSBucketDestination.Bucket,delete e.Destination,e.frequency=e.Schedule.Frequency,delete e.Schedule.Frequency,(null===(t=null==e?void 0:e.OptionalFields)||void 0===t?void 0:t.Field)&&!o.isArray(null===(r=e.OptionalFields)||void 0===r?void 0:r.Field)&&(e.OptionalFields.Field=[e.OptionalFields.Field])}),e=s.formatObjKey(e,"firstLowerCase",{exclude:["OSSBucketDestination","SSE-OSS","SSE-KMS"]})}r.formatInventoryConfig=a},{"../utils/dataFix":59,"../utils/formatObjKey":64,"../utils/isArray":67,"../utils/isObject":74,"core-js/modules/es.array.map.js":318,"core-js/modules/es.regexp.exec.js":338,"core-js/modules/es.string.replace.js":345}],64:[function(e,t,r){var n=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.object.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.object.keys.js"),e("core-js/modules/es.array.includes.js"),e("core-js/modules/es.string.includes.js"),e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.replace.js");var i=n(e("@babel/runtime/helpers/typeof"));function o(e,t,r){if(null===e||"object"!==(0,i.default)(e))return e;var n;if(Array.isArray(e)){n=[];for(var a=0;a<e.length;a++)n.push(o(e[a],t,r))}else n={},Object.keys(e).forEach(function(i){n[s(i,t,r)]=o(e[i],t,r)});return n}function s(e,t,r){return r&&r.exclude&&r.exclude.includes(e)||("firstUpperCase"===t?e=e.replace(/^./,function(e){return e.toUpperCase()}):"firstLowerCase"===t&&(e=e.replace(/^./,function(e){return e.toLowerCase()}))),e}Object.defineProperty(r,"__esModule",{value:!0}),r.formatObjKey=void 0,r.formatObjKey=o},{"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/helpers/typeof":91,"core-js/modules/es.array.includes.js":315,"core-js/modules/es.object.keys.js":328,"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.regexp.exec.js":338,"core-js/modules/es.string.includes.js":342,"core-js/modules/es.string.replace.js":345,"core-js/modules/web.dom-collections.for-each.js":380}],65:[function(e,t,r){function n(e){return e.replace(/^oss-/g,"")}e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.replace.js"),Object.defineProperty(r,"__esModule",{value:!0}),r.getStandardRegion=void 0,r.getStandardRegion=n},{"core-js/modules/es.regexp.exec.js":338,"core-js/modules/es.string.replace.js":345}],66:[function(e,t,r){function n(e){for(var t=0,r=0;r<e.length;r++){var n=e.charAt(r);/^[\u00-\uff]$/.test(n)?t+=1:t+=2}return t}e("core-js/modules/es.regexp.exec.js"),Object.defineProperty(r,"__esModule",{value:!0}),r.getStrBytesCount=void 0,r.getStrBytesCount=n},{"core-js/modules/es.regexp.exec.js":338}],67:[function(e,t,r){e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.regexp.to-string.js"),Object.defineProperty(r,"__esModule",{value:!0}),r.isArray=void 0,r.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}},{"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.regexp.to-string.js":339}],68:[function(e,t,r){function n(e){return"undefined"!=typeof Blob&&e instanceof Blob}Object.defineProperty(r,"__esModule",{value:!0}),r.isBlob=void 0,r.isBlob=n},{}],69:[function(e,t,r){(function(e){(function(){function t(t){return e.isBuffer(t)}Object.defineProperty(r,"__esModule",{value:!0}),r.isBuffer=void 0,r.isBuffer=t}).call(this)}).call(this,{isBuffer:e("../../../node_modules/is-buffer/index.js")})},{"../../../node_modules/is-buffer/index.js":409}],70:[function(e,t,r){(function(t){(function(){function n(){return!(!t.browser||!window.navigator.userAgent.toLowerCase().includes("aliapp(dingtalk"))}e("core-js/modules/es.array.includes.js"),e("core-js/modules/es.string.includes.js"),Object.defineProperty(r,"__esModule",{value:!0}),r.isDingTalk=void 0,r.isDingTalk=n}).call(this)}).call(this,e("_process"))},{_process:538,"core-js/modules/es.array.includes.js":315,"core-js/modules/es.string.includes.js":342}],71:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.isFile=void 0,r.isFile=function(e){return"undefined"!=typeof File&&e instanceof File}},{}],72:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.isFunction=void 0,r.isFunction=function(e){return"function"==typeof e}},{}],73:[function(e,t,r){e("core-js/modules/es.regexp.exec.js"),Object.defineProperty(r,"__esModule",{value:!0}),r.isIP=void 0,r.isIP=function(e){var t=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/;return/^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$/.test(e)||t.test(e)}},{"core-js/modules/es.regexp.exec.js":338}],74:[function(e,t,r){e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.regexp.to-string.js"),Object.defineProperty(r,"__esModule",{value:!0}),r.isObject=void 0,r.isObject=function(e){return"[object Object]"===Object.prototype.toString.call(e)}},{"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.regexp.to-string.js":339}],75:[function(e,t,r){e("core-js/modules/es.object.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.object.keys.js"),Object.defineProperty(r,"__esModule",{value:!0}),r.lowercaseKeyHeader=void 0;var n=e("./isObject");function i(e){var t={};return n.isObject(e)&&Object.keys(e).forEach(function(r){t[r.toLowerCase()]=e[r]}),t}r.lowercaseKeyHeader=i},{"./isObject":74,"core-js/modules/es.object.keys.js":328,"core-js/modules/es.object.to-string.js":329,"core-js/modules/web.dom-collections.for-each.js":380}],76:[function(e,t,r){e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.replace.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.regexp.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.object.keys.js"),e("core-js/modules/es.array.concat.js"),e("core-js/modules/es.array.join.js"),e("core-js/modules/es.array.map.js"),Object.defineProperty(r,"__esModule",{value:!0}),r.obj2xml=void 0;var n=e("./formatObjKey");function i(e){return Object.prototype.toString.call(e).replace(/(.*? |])/g,"").toLowerCase()}function o(e,t){var r="";return t&&t.headers&&(r='<?xml version="1.0" encoding="UTF-8"?>\n'),t&&t.firstUpperCase&&(e=n.formatObjKey(e,"firstUpperCase")),"object"===i(e)?Object.keys(e).forEach(function(t){"undefined"!==i(e[t])&&"null"!==i(e[t])&&("string"===i(e[t])||"number"===i(e[t])?r+="<".concat(t,">").concat(e[t],"</").concat(t,">"):"object"===i(e[t])?r+="<".concat(t,">").concat(o(e[t]),"</").concat(t,">"):"array"===i(e[t])?r+=e[t].map(function(e){return"<".concat(t,">").concat(o(e),"</").concat(t,">")}).join(""):r+="<".concat(t,">").concat(e[t].toString(),"</").concat(t,">"))}):r+=e.toString(),r}r.obj2xml=o},{"./formatObjKey":64,"core-js/modules/es.array.concat.js":310,"core-js/modules/es.array.join.js":317,"core-js/modules/es.array.map.js":318,"core-js/modules/es.object.keys.js":328,"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.regexp.exec.js":338,"core-js/modules/es.regexp.to-string.js":339,"core-js/modules/es.string.replace.js":345,"core-js/modules/web.dom-collections.for-each.js":380}],77:[function(e,t,r){function n(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=i(e))||t){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){l=!0,s=e},f:function(){try{a||null==r.return||r.return()}finally{if(l)throw s}}}}function i(e,t){if(e){if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function s(e,t){var r,i=Object.assign({},e),o=n(t);try{for(o.s();!(r=o.n()).done;)delete i[r.value]}catch(s){o.e(s)}finally{o.f()}return i}e("core-js/modules/es.array.slice.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.regexp.to-string.js"),e("core-js/modules/es.function.name.js"),e("core-js/modules/es.array.from.js"),e("core-js/modules/es.string.iterator.js"),e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.symbol.js"),e("core-js/modules/es.symbol.description.js"),e("core-js/modules/es.symbol.iterator.js"),e("core-js/modules/es.array.iterator.js"),e("core-js/modules/web.dom-collections.iterator.js"),e("core-js/modules/es.object.assign.js"),Object.defineProperty(r,"__esModule",{value:!0}),r.omit=void 0,r.omit=s},{"core-js/modules/es.array.from.js":314,"core-js/modules/es.array.iterator.js":316,"core-js/modules/es.array.slice.js":319,"core-js/modules/es.function.name.js":322,"core-js/modules/es.object.assign.js":325,"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.regexp.exec.js":338,"core-js/modules/es.regexp.to-string.js":339,"core-js/modules/es.string.iterator.js":343,"core-js/modules/es.symbol.description.js":351,"core-js/modules/es.symbol.iterator.js":353,"core-js/modules/es.symbol.js":354,"core-js/modules/web.dom-collections.iterator.js":381}],78:[function(e,t,r){e("core-js/modules/es.array.includes.js"),e("core-js/modules/es.string.includes.js"),e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.match.js"),Object.defineProperty(r,"__esModule",{value:!0}),r.parseRestoreInfo=void 0,r.parseRestoreInfo=function(e){var t;if(e&&!(t={ongoingRequest:e.includes("true")}).ongoingRequest){var r=e.match(/expiry-date="(.*)"/);r&&r[1]&&(t.expiryDate=new Date(r[1]))}return t}},{"core-js/modules/es.array.includes.js":315,"core-js/modules/es.regexp.exec.js":338,"core-js/modules/es.string.includes.js":342,"core-js/modules/es.string.match.js":344}],79:[function(e,t,r){function n(e){var t;if(e)if("string"==typeof e)try{t=JSON.stringify(JSON.parse(e))}catch(r){throw new Error("Policy string is not a valid JSON: ".concat(r.message))}else t=JSON.stringify(e);return t}e("core-js/modules/es.object.keys.js"),Object.defineProperty(r,"__esModule",{value:!0}),r.policy2Str=void 0,r.policy2Str=n},{"core-js/modules/es.object.keys.js":328}],80:[function(e,t,r){function n(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=0,i=r.retryDelay,o=void 0===i?500:i,s=r.errorHandler,a=void 0===s?function(){return!0}:s,l=function r(){for(var i=arguments.length,s=new Array(i),l=0;l<i;l++)s[l]=arguments[l];return new Promise(function(i,l){e.apply(void 0,s).then(function(e){n=0,i(e)}).catch(function(e){n<t&&a(e)?(n++,setTimeout(function(){i(r.apply(void 0,s))},o)):(n=0,l(e))})})};return l}e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.promise.js"),Object.defineProperty(r,"__esModule",{value:!0}),r.retry=void 0,r.retry=n},{"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.promise.js":333}],81:[function(e,t,r){var n=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.setRegion=void 0;var i=n(e("url")),o=e("./checkConfigValid");function s(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];o.checkConfigValid(e,"region");var n=r?"https://":"http://",s=t?"-internal.aliyuncs.com":".aliyuncs.com",a="vpc100-oss-cn-";return e.substr(0,a.length)===a&&(s=".aliyuncs.com"),i.default.parse(n+e+s)}r.setRegion=s},{"./checkConfigValid":54,url:543}],82:[function(e,t,r){var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.keys.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.array.find.js"),e("core-js/modules/es.object.assign.js");var o=n(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(r,"__esModule",{value:!0}),r.checkCredentials=r.setSTSToken=void 0;var s=e("./formatObjKey");function a(){return l.apply(this,arguments)}function l(){return(l=(0,o.default)(i.default.mark(function e(){var t,r;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.options||(this.options={}),t=new Date,!this.stsTokenFreshTime){e.next=14;break}if(!(+t-this.stsTokenFreshTime>=this.options.refreshSTSTokenInterval)){e.next=12;break}return this.stsTokenFreshTime=t,e.next=7,this.options.refreshSTSToken();case 7:r=e.sent,(r=s.formatObjKey(r,"firstLowerCase")).securityToken&&(r.stsToken=r.securityToken),c(r),Object.assign(this.options,r);case 12:e.next=15;break;case 14:this.stsTokenFreshTime=t;case 15:return e.abrupt("return",null);case 16:case"end":return e.stop()}},e,this)}))).apply(this,arguments)}function c(e){var t=["accessKeySecret","accessKeyId","stsToken"],r=Object.keys(e);t.forEach(function(e){if(!r.find(function(t){return t===e}))throw Error("refreshSTSToken must return contains ".concat(e))})}r.setSTSToken=a,r.checkCredentials=c},{"./formatObjKey":64,"@babel/runtime/helpers/asyncToGenerator":85,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/regenerator":93,"core-js/modules/es.array.find.js":313,"core-js/modules/es.object.assign.js":325,"core-js/modules/es.object.keys.js":328,"core-js/modules/es.object.to-string.js":329}],83:[function(e,t,r){function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports},{}],84:[function(e,t,r){var n=e("./arrayLikeToArray.js");function i(e){if(Array.isArray(e))return n(e)}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports},{"./arrayLikeToArray.js":83}],85:[function(e,t,r){function n(e,t,r,n,i,o,s){try{var a=e[o](s),l=a.value}catch(c){return void r(c)}a.done?t(l):Promise.resolve(l).then(n,i)}function i(e){return function(){var t=this,r=arguments;return new Promise(function(i,o){var s=e.apply(t,r);function a(e){n(s,i,o,a,l,"next",e)}function l(e){n(s,i,o,a,l,"throw",e)}a(void 0)})}}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports},{}],86:[function(e,t,r){function n(e){return e&&e.__esModule?e:{default:e}}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports},{}],87:[function(e,t,r){function n(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports},{}],88:[function(e,t,r){function n(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports},{}],89:[function(e,t,r){var n=e("./typeof.js").default;function i(){t.exports=i=function(){return r},t.exports.__esModule=!0,t.exports.default=t.exports;var e,r={},o=Object.prototype,s=o.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},l="function"==typeof Symbol?Symbol:{},c=l.iterator||"@@iterator",u=l.asyncIterator||"@@asyncIterator",p=l.toStringTag||"@@toStringTag";function d(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(M){d=function(e,t,r){return e[t]=r}}function m(e,t,r,n){var i=t&&t.prototype instanceof x?t:x,o=Object.create(i.prototype),s=new A(n||[]);return a(o,"_invoke",{value:R(e,r,s)}),o}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(n){return{type:"throw",arg:n}}}r.wrap=m;var h="suspendedStart",y="suspendedYield",g="executing",b="completed",v={};function x(){}function w(){}function S(){}var N={};d(N,c,function(){return this});var j=Object.getPrototypeOf,E=j&&j(j(I([])));E&&E!==o&&s.call(E,c)&&(N=E);var C=S.prototype=x.prototype=Object.create(N);function k(e){["next","throw","return"].forEach(function(t){d(e,t,function(e){return this._invoke(t,e)})})}function T(e,t){function r(i,o,a,l){var c=f(e[i],e,o);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==n(p)&&s.call(p,"__await")?t.resolve(p.__await).then(function(e){r("next",e,a,l)},function(e){r("throw",e,a,l)}):t.resolve(p).then(function(e){u.value=e,a(u)},function(e){return r("throw",e,a,l)})}l(c.arg)}var i;a(this,"_invoke",{value:function(e,n){function o(){return new t(function(t,i){r(e,n,t,i)})}return i=i?i.then(o,o):o()}})}function R(t,r,n){var i=h;return function(o,s){if(i===g)throw new Error("Generator is already running");if(i===b){if("throw"===o)throw s;return{value:e,done:!0}}for(n.method=o,n.arg=s;;){var a=n.delegate;if(a){var l=O(a,n);if(l){if(l===v)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=b,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=g;var c=f(t,r,n);if("normal"===c.type){if(i=n.done?b:y,c.arg===v)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=b,n.method="throw",n.arg=c.arg)}}}function O(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,O(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var o=f(i,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var s=o.arg;return s?s.done?(r[t.resultName]=s.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):s:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function I(t){if(t||""===t){var r=t[c];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function r(){for(;++i<t.length;)if(s.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(n(t)+" is not iterable")}return w.prototype=S,a(C,"constructor",{value:S,configurable:!0}),a(S,"constructor",{value:w,configurable:!0}),w.displayName=d(S,p,"GeneratorFunction"),r.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},r.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,S):(e.__proto__=S,d(e,p,"GeneratorFunction")),e.prototype=Object.create(C),e},r.awrap=function(e){return{__await:e}},k(T.prototype),d(T.prototype,u,function(){return this}),r.AsyncIterator=T,r.async=function(e,t,n,i,o){void 0===o&&(o=Promise);var s=new T(m(e,t,n,i),o);return r.isGeneratorFunction(t)?s:s.next().then(function(e){return e.done?e.value:s.next()})},k(C),d(C,p,"Generator"),d(C,c,function(){return this}),d(C,"toString",function(){return"[object Generator]"}),r.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},r.values=I,A.prototype={constructor:A,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(_),!t)for(var r in this)"t"===r.charAt(0)&&s.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(n,i){return a.type="throw",a.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var l=s.call(o,"catchLoc"),c=s.call(o,"finallyLoc");if(l&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&s.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),_(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;_(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:I(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},r}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports},{"./typeof.js":91}],90:[function(e,t,r){var n=e("./arrayWithoutHoles.js"),i=e("./iterableToArray.js"),o=e("./unsupportedIterableToArray.js"),s=e("./nonIterableSpread.js");function a(e){return n(e)||i(e)||o(e)||s()}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports},{"./arrayWithoutHoles.js":84,"./iterableToArray.js":87,"./nonIterableSpread.js":88,"./unsupportedIterableToArray.js":92}],91:[function(e,t,r){function n(e){return t.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t.exports.__esModule=!0,t.exports.default=t.exports,n(e)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports},{}],92:[function(e,t,r){var n=e("./arrayLikeToArray.js");function i(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports},{"./arrayLikeToArray.js":83}],93:[function(e,t,r){var n=e("../helpers/regeneratorRuntime")();t.exports=n;try{regeneratorRuntime=n}catch(i){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},{"../helpers/regeneratorRuntime":89}],94:[function(e,t,r){function n(){}t.exports=n,t.exports.HttpsAgent=n},{}],95:[function(e,t,r){(function(r){(function(){var n=e("object.assign/polyfill")();
|
|
3
|
+
/*!
|
|
4
|
+
* The buffer module from node.js, for the browser.
|
|
5
|
+
*
|
|
6
|
+
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
|
|
7
|
+
* @license MIT
|
|
8
|
+
*/function i(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0}function o(e){return r.Buffer&&"function"==typeof r.Buffer.isBuffer?r.Buffer.isBuffer(e):!(null==e||!e._isBuffer)}var s=e("util/"),a=Object.prototype.hasOwnProperty,l=Array.prototype.slice,c="foo"===function(){}.name;function u(e){return Object.prototype.toString.call(e)}function p(e){return!o(e)&&"function"==typeof r.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):!!e&&(e instanceof DataView||!!(e.buffer&&e.buffer instanceof ArrayBuffer)))}var d=t.exports=v,m=/\s*function\s+([^\(\s]*)\s*/;function f(e){if(s.isFunction(e)){if(c)return e.name;var t=e.toString().match(m);return t&&t[1]}}function h(e,t){return"string"==typeof e?e.length<t?e:e.slice(0,t):e}function y(e){if(c||!s.isFunction(e))return s.inspect(e);var t=f(e);return"[Function"+(t?": "+t:"")+"]"}function g(e){return h(y(e.actual),128)+" "+e.operator+" "+h(y(e.expected),128)}function b(e,t,r,n,i){throw new d.AssertionError({message:r,actual:e,expected:t,operator:n,stackStartFunction:i})}function v(e,t){e||b(e,!0,t,"==",d.ok)}function x(e,t,r,n){if(e===t)return!0;if(o(e)&&o(t))return 0===i(e,t);if(s.isDate(e)&&s.isDate(t))return e.getTime()===t.getTime();if(s.isRegExp(e)&&s.isRegExp(t))return e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase;if(null!==e&&"object"==typeof e||null!==t&&"object"==typeof t){if(p(e)&&p(t)&&u(e)===u(t)&&!(e instanceof Float32Array||e instanceof Float64Array))return 0===i(new Uint8Array(e.buffer),new Uint8Array(t.buffer));if(o(e)!==o(t))return!1;var a=(n=n||{actual:[],expected:[]}).actual.indexOf(e);return-1!==a&&a===n.expected.indexOf(t)||(n.actual.push(e),n.expected.push(t),S(e,t,r,n))}return r?e===t:e==t}function w(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function S(e,t,r,n){if(null==e||null==t)return!1;if(s.isPrimitive(e)||s.isPrimitive(t))return e===t;if(r&&Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1;var i=w(e),o=w(t);if(i&&!o||!i&&o)return!1;if(i)return x(e=l.call(e),t=l.call(t),r);var a,c,u=T(e),p=T(t);if(u.length!==p.length)return!1;for(u.sort(),p.sort(),c=u.length-1;c>=0;c--)if(u[c]!==p[c])return!1;for(c=u.length-1;c>=0;c--)if(!x(e[a=u[c]],t[a],r,n))return!1;return!0}function N(e,t,r){x(e,t,!0)&&b(e,t,r,"notDeepStrictEqual",N)}function j(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(r){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function E(e){var t;try{e()}catch(r){t=r}return t}function C(e,t,r,n){var i;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof r&&(n=r,r=null),i=E(t),n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),e&&!i&&b(i,r,"Missing expected exception"+n);var o="string"==typeof n,a=!e&&i&&!r;if((!e&&s.isError(i)&&o&&j(i,r)||a)&&b(i,r,"Got unwanted exception"+n),e&&i&&r&&!j(i,r)||!e&&i)throw i}function k(e,t){e||b(e,!0,t,"==",k)}d.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=g(this),this.generatedMessage=!0);var t=e.stackStartFunction||b;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var r=new Error;if(r.stack){var n=r.stack,i=f(t),o=n.indexOf("\n"+i);if(o>=0){var s=n.indexOf("\n",o+1);n=n.substring(s+1)}this.stack=n}}},s.inherits(d.AssertionError,Error),d.fail=b,d.ok=v,d.equal=function(e,t,r){e!=t&&b(e,t,r,"==",d.equal)},d.notEqual=function(e,t,r){e==t&&b(e,t,r,"!=",d.notEqual)},d.deepEqual=function(e,t,r){x(e,t,!1)||b(e,t,r,"deepEqual",d.deepEqual)},d.deepStrictEqual=function(e,t,r){x(e,t,!0)||b(e,t,r,"deepStrictEqual",d.deepStrictEqual)},d.notDeepEqual=function(e,t,r){x(e,t,!1)&&b(e,t,r,"notDeepEqual",d.notDeepEqual)},d.notDeepStrictEqual=N,d.strictEqual=function(e,t,r){e!==t&&b(e,t,r,"===",d.strictEqual)},d.notStrictEqual=function(e,t,r){e===t&&b(e,t,r,"!==",d.notStrictEqual)},d.throws=function(e,t,r){C(!0,e,t,r)},d.doesNotThrow=function(e,t,r){C(!1,e,t,r)},d.ifError=function(e){if(e)throw e},d.strict=n(k,d,{equal:d.strictEqual,deepEqual:d.deepStrictEqual,notEqual:d.notStrictEqual,notDeepEqual:d.notDeepStrictEqual}),d.strict.strict=d.strict;var T=Object.keys||function(e){var t=[];for(var r in e)a.call(e,r)&&t.push(r);return t}}).call(this)}).call(this,void 0!==dR?dR:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"object.assign/polyfill":438,"util/":98}],96:[function(e,t,r){"function"==typeof Object.create?t.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},{}],97:[function(e,t,r){t.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},{}],98:[function(e,t,r){(function(t,n){(function(){var i=/%[sdj%]/g;r.format=function(e){if(!S(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(a(arguments[r]));return t.join(" ")}r=1;for(var n=arguments,o=n.length,s=String(e).replace(i,function(e){if("%%"===e)return"%";if(r>=o)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}default:return e}}),l=n[r];r<o;l=n[++r])v(l)||!C(l)?s+=" "+l:s+=" "+a(l);return s},r.deprecate=function(e,i){if(j(n.process))return function(){return r.deprecate(e,i).apply(this,arguments)};if(!0===t.noDeprecation)return e;var o=!1;function s(){if(!o){if(t.throwDeprecation)throw new Error(i);t.traceDeprecation,o=!0}return e.apply(this,arguments)}return s};var o,s={};function a(e,t){var n={seen:[],stylize:c};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),b(t)?n.showHidden=t:t&&r._extend(n,t),j(n.showHidden)&&(n.showHidden=!1),j(n.depth)&&(n.depth=2),j(n.colors)&&(n.colors=!1),j(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=l),p(n,e,n.depth)}function l(e,t){var r=a.styles[t];return r?"["+a.colors[r][0]+"m"+e+"["+a.colors[r][1]+"m":e}function c(e,t){return e}function u(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}function p(e,t,n){if(e.customInspect&&t&&R(t.inspect)&&t.inspect!==r.inspect&&(!t.constructor||t.constructor.prototype!==t)){var i=t.inspect(n,e);return S(i)||(i=p(e,i,n)),i}var o=d(e,t);if(o)return o;var s=Object.keys(t),a=u(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(t)),T(t)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return m(t);if(0===s.length){if(R(t)){var l=t.name?": "+t.name:"";return e.stylize("[Function"+l+"]","special")}if(E(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(k(t))return e.stylize(Date.prototype.toString.call(t),"date");if(T(t))return m(t)}var c,b="",v=!1,x=["{","}"];return g(t)&&(v=!0,x=["[","]"]),R(t)&&(b=" [Function"+(t.name?": "+t.name:"")+"]"),E(t)&&(b=" "+RegExp.prototype.toString.call(t)),k(t)&&(b=" "+Date.prototype.toUTCString.call(t)),T(t)&&(b=" "+m(t)),0!==s.length||v&&0!=t.length?n<0?E(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),c=v?f(e,t,n,a,s):s.map(function(r){return h(e,t,n,a,r,v)}),e.seen.pop(),y(c,b,x)):x[0]+b+x[1]}function d(e,t){if(j(t))return e.stylize("undefined","undefined");if(S(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return w(t)?e.stylize(""+t,"number"):b(t)?e.stylize(""+t,"boolean"):v(t)?e.stylize("null","null"):void 0}function m(e){return"["+Error.prototype.toString.call(e)+"]"}function f(e,t,r,n,i){for(var o=[],s=0,a=t.length;s<a;++s)_(t,String(s))?o.push(h(e,t,r,n,String(s),!0)):o.push("");return i.forEach(function(i){i.match(/^\d+$/)||o.push(h(e,t,r,n,i,!0))}),o}function h(e,t,r,n,i,o){var s,a,l;if((l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?a=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(a=e.stylize("[Setter]","special")),_(n,i)||(s="["+i+"]"),a||(e.seen.indexOf(l.value)<0?(a=v(r)?p(e,l.value,null):p(e,l.value,r-1)).indexOf("\n")>-1&&(a=o?a.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+a.split("\n").map(function(e){return" "+e}).join("\n")):a=e.stylize("[Circular]","special")),j(s)){if(o&&i.match(/^\d+$/))return a;(s=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+a}function y(e,t,r){return e.reduce(function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}function g(e){return Array.isArray(e)}function b(e){return"boolean"==typeof e}function v(e){return null===e}function x(e){return null==e}function w(e){return"number"==typeof e}function S(e){return"string"==typeof e}function N(e){return"symbol"==typeof e}function j(e){return void 0===e}function E(e){return C(e)&&"[object RegExp]"===P(e)}function C(e){return"object"==typeof e&&null!==e}function k(e){return C(e)&&"[object Date]"===P(e)}function T(e){return C(e)&&("[object Error]"===P(e)||e instanceof Error)}function R(e){return"function"==typeof e}function O(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function P(e){return Object.prototype.toString.call(e)}function _(e,t){return Object.prototype.hasOwnProperty.call(e,t)}r.debuglog=function(e){return j(o)&&(o=t.env.NODE_DEBUG||""),e=e.toUpperCase(),s[e]||(new RegExp("\\b"+e+"\\b","i").test(o)?(t.pid,s[e]=function(){r.format.apply(r,arguments)}):s[e]=function(){}),s[e]},r.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},r.isArray=g,r.isBoolean=b,r.isNull=v,r.isNullOrUndefined=x,r.isNumber=w,r.isString=S,r.isSymbol=N,r.isUndefined=j,r.isRegExp=E,r.isObject=C,r.isDate=k,r.isError=T,r.isFunction=R,r.isPrimitive=O,r.isBuffer=e("./support/isBuffer"),r.log=function(){},r.inherits=e("inherits"),r._extend=function(e,t){if(!t||!C(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}}).call(this)}).call(this,e("_process"),void 0!==dR?dR:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":97,_process:538,inherits:96}],99:[function(e,t,r){(function(e){(function(){var r=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],n="undefined"==typeof globalThis?e:globalThis;t.exports=function(){for(var e=[],t=0;t<r.length;t++)"function"==typeof n[r[t]]&&(e[e.length]=r[t]);return e}}).call(this)}).call(this,void 0!==dR?dR:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],100:[function(e,t,r){r.byteLength=u,r.toByteArray=d,r.fromByteArray=h;for(var n=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,l=s.length;a<l;++a)n[a]=s[a],i[s.charCodeAt(a)]=a;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function u(e){var t=c(e),r=t[0],n=t[1];return 3*(r+n)/4-n}function p(e,t,r){return 3*(t+r)/4-r}function d(e){var t,r,n=c(e),s=n[0],a=n[1],l=new o(p(e,s,a)),u=0,d=a>0?s-4:s;for(r=0;r<d;r+=4)t=i[e.charCodeAt(r)]<<18|i[e.charCodeAt(r+1)]<<12|i[e.charCodeAt(r+2)]<<6|i[e.charCodeAt(r+3)],l[u++]=t>>16&255,l[u++]=t>>8&255,l[u++]=255&t;return 2===a&&(t=i[e.charCodeAt(r)]<<2|i[e.charCodeAt(r+1)]>>4,l[u++]=255&t),1===a&&(t=i[e.charCodeAt(r)]<<10|i[e.charCodeAt(r+1)]<<4|i[e.charCodeAt(r+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t),l}function m(e){return n[e>>18&63]+n[e>>12&63]+n[e>>6&63]+n[63&e]}function f(e,t,r){for(var n,i=[],o=t;o<r;o+=3)n=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),i.push(m(n));return i.join("")}function h(e){for(var t,r=e.length,i=r%3,o=[],s=16383,a=0,l=r-i;a<l;a+=s)o.push(f(e,a,a+s>l?l:a+s));return 1===i?(t=e[r-1],o.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},{}],101:[function(e,t,r){var n,i,o;n=this,i="bowser",o=function(){var e=!0;function t(t){function r(e){var r=t.match(e);return r&&r.length>1&&r[1]||""}function n(e){var r=t.match(e);return r&&r.length>1&&r[2]||""}var i,s=r(/(ipod|iphone|ipad)/i).toLowerCase(),a=!/like android/i.test(t)&&/android/i.test(t),l=/nexus\s*[0-6]\s*/i.test(t),c=!l&&/nexus\s*[0-9]+/i.test(t),u=/CrOS/.test(t),p=/silk/i.test(t),d=/sailfish/i.test(t),m=/tizen/i.test(t),f=/(web|hpw)(o|0)s/i.test(t),h=/windows phone/i.test(t),y=!h&&/windows/i.test(t),g=!s&&!p&&/macintosh/i.test(t),b=!a&&!d&&!m&&!f&&/linux/i.test(t),v=n(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),x=r(/version\/(\d+(\.\d+)?)/i),w=/tablet/i.test(t)&&!/tablet pc/i.test(t),S=!w&&/[^-]mobi/i.test(t),N=/xbox/i.test(t);function j(e){switch(e){case"NT":return"NT";case"XP":case"NT 5.1":return"XP";case"NT 5.0":return"2000";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}/opera/i.test(t)?i={name:"Opera",opera:e,version:x||r(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(t)?i={name:"Opera",opera:e,version:r(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||x}:/SamsungBrowser/i.test(t)?i={name:"Samsung Internet for Android",samsungBrowser:e,version:x||r(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(t)?i={name:"NAVER Whale browser",whale:e,version:r(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(t)?i={name:"MZ Browser",mzbrowser:e,version:r(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(t)?i={name:"Opera Coast",coast:e,version:x||r(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(t)?i={name:"Focus",focus:e,version:r(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(t)?i={name:"Yandex Browser",yandexbrowser:e,version:x||r(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(t)?i={name:"UC Browser",ucbrowser:e,version:r(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(t)?i={name:"Maxthon",maxthon:e,version:r(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(t)?i={name:"Epiphany",epiphany:e,version:r(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(t)?i={name:"Puffin",puffin:e,version:r(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(t)?i={name:"Sleipnir",sleipnir:e,version:r(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(t)?i={name:"K-Meleon",kMeleon:e,version:r(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:h?(i={name:"Windows Phone",osname:"Windows Phone",windowsphone:e},v?(i.msedge=e,i.version=v):(i.msie=e,i.version=r(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(t)?i={name:"Internet Explorer",msie:e,version:r(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:u?i={name:"Chrome",osname:"Chrome OS",chromeos:e,chromeBook:e,chrome:e,version:r(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(t)?i={name:"Microsoft Edge",msedge:e,version:v}:/vivaldi/i.test(t)?i={name:"Vivaldi",vivaldi:e,version:r(/vivaldi\/(\d+(\.\d+)?)/i)||x}:d?i={name:"Sailfish",osname:"Sailfish OS",sailfish:e,version:r(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(t)?i={name:"SeaMonkey",seamonkey:e,version:r(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(t)?(i={name:"Firefox",firefox:e,version:r(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(t)&&(i.firefoxos=e,i.osname="Firefox OS")):p?i={name:"Amazon Silk",silk:e,version:r(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(t)?i={name:"PhantomJS",phantom:e,version:r(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(t)?i={name:"SlimerJS",slimer:e,version:r(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(t)||/rim\stablet/i.test(t)?i={name:"BlackBerry",osname:"BlackBerry OS",blackberry:e,version:x||r(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:f?(i={name:"WebOS",osname:"WebOS",webos:e,version:x||r(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(t)&&(i.touchpad=e)):/bada/i.test(t)?i={name:"Bada",osname:"Bada",bada:e,version:r(/dolfin\/(\d+(\.\d+)?)/i)}:m?i={name:"Tizen",osname:"Tizen",tizen:e,version:r(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||x}:/qupzilla/i.test(t)?i={name:"QupZilla",qupzilla:e,version:r(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||x}:/chromium/i.test(t)?i={name:"Chromium",chromium:e,version:r(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||x}:/chrome|crios|crmo/i.test(t)?i={name:"Chrome",chrome:e,version:r(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:a?i={name:"Android",version:x}:/safari|applewebkit/i.test(t)?(i={name:"Safari",safari:e},x&&(i.version=x)):s?(i={name:"iphone"==s?"iPhone":"ipad"==s?"iPad":"iPod"},x&&(i.version=x)):i=/googlebot/i.test(t)?{name:"Googlebot",googlebot:e,version:r(/googlebot\/(\d+(\.\d+))/i)||x}:{name:r(/^(.*)\/(.*) /),version:n(/^(.*)\/(.*) /)},!i.msedge&&/(apple)?webkit/i.test(t)?(/(apple)?webkit\/537\.36/i.test(t)?(i.name=i.name||"Blink",i.blink=e):(i.name=i.name||"Webkit",i.webkit=e),!i.version&&x&&(i.version=x)):!i.opera&&/gecko\//i.test(t)&&(i.name=i.name||"Gecko",i.gecko=e,i.version=i.version||r(/gecko\/(\d+(\.\d+)?)/i)),i.windowsphone||!a&&!i.silk?!i.windowsphone&&s?(i[s]=e,i.ios=e,i.osname="iOS"):g?(i.mac=e,i.osname="macOS"):N?(i.xbox=e,i.osname="Xbox"):y?(i.windows=e,i.osname="Windows"):b&&(i.linux=e,i.osname="Linux"):(i.android=e,i.osname="Android");var E="";i.windows?E=j(r(/Windows ((NT|XP)( \d\d?.\d)?)/i)):i.windowsphone?E=r(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):i.mac?E=(E=r(/Mac OS X (\d+([_\.\s]\d+)*)/i)).replace(/[_\s]/g,"."):s?E=(E=r(/os (\d+([_\s]\d+)*) like mac os x/i)).replace(/[_\s]/g,"."):a?E=r(/android[ \/-](\d+(\.\d+)*)/i):i.webos?E=r(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):i.blackberry?E=r(/rim\stablet\sos\s(\d+(\.\d+)*)/i):i.bada?E=r(/bada\/(\d+(\.\d+)*)/i):i.tizen&&(E=r(/tizen[\/\s](\d+(\.\d+)*)/i)),E&&(i.osversion=E);var C=!i.windows&&E.split(".")[0];return w||c||"ipad"==s||a&&(3==C||C>=4&&!S)||i.silk?i.tablet=e:(S||"iphone"==s||"ipod"==s||a||l||i.blackberry||i.webos||i.bada)&&(i.mobile=e),i.msedge||i.msie&&i.version>=10||i.yandexbrowser&&i.version>=15||i.vivaldi&&i.version>=1||i.chrome&&i.version>=20||i.samsungBrowser&&i.version>=4||i.whale&&1===o([i.version,"1.0"])||i.mzbrowser&&1===o([i.version,"6.0"])||i.focus&&1===o([i.version,"1.0"])||i.firefox&&i.version>=20||i.safari&&i.version>=6||i.opera&&i.version>=10||i.ios&&i.osversion&&i.osversion.split(".")[0]>=6||i.blackberry&&i.version>=10.1||i.chromium&&i.version>=20?i.a=e:i.msie&&i.version<10||i.chrome&&i.version<20||i.firefox&&i.version<20||i.safari&&i.version<6||i.opera&&i.version<10||i.ios&&i.osversion&&i.osversion.split(".")[0]<6||i.chromium&&i.version<20?i.c=e:i.x=e,i}var r=t("undefined"!=typeof navigator&&navigator.userAgent||"");function n(e){return e.split(".").length}function i(e,t){var r,n=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(r=0;r<e.length;r++)n.push(t(e[r]));return n}function o(e){for(var t=Math.max(n(e[0]),n(e[1])),r=i(e,function(e){var r=t-n(e);return i((e+=new Array(r+1).join(".0")).split("."),function(e){return new Array(20-e.length).join("0")+e}).reverse()});--t>=0;){if(r[0][t]>r[1][t])return 1;if(r[0][t]!==r[1][t])return-1;if(0===t)return 0}}function s(e,n,i){var s=r;"string"==typeof n&&(i=n,n=void 0),void 0===n&&(n=!1),i&&(s=t(i));var a=""+s.version;for(var l in e)if(e.hasOwnProperty(l)&&s[l]){if("string"!=typeof e[l])throw new Error("Browser version in the minVersion map should be a string: "+l+": "+String(e));return o([a,e[l]])<0}return n}function a(e,t,r){return!s(e,t,r)}return r.test=function(e){for(var t=0;t<e.length;++t){var n=e[t];if("string"==typeof n&&n in r)return!0}return!1},r.isUnsupportedBrowser=s,r.compareVersions=o,r.check=a,r._detect=t,r.detect=t,r},void 0!==t&&t.exports?t.exports=o():n[i]=o()},{}],102:[function(e,t,r){},{}],103:[function(e,t,r){(function(t){(function(){var t=e("base64-js"),n=e("ieee754");r.Buffer=a,r.SlowBuffer=g,r.INSPECT_MAX_BYTES=50;var i=2147483647;function o(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(t){return!1}}function s(e){if(e>i)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return t.__proto__=a.prototype,t}function a(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return p(e)}return l(e,t,r)}function l(e,t,r){if("string"==typeof e)return d(e,t);if(ArrayBuffer.isView(e))return m(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Q(e,ArrayBuffer)||e&&Q(e.buffer,ArrayBuffer))return f(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return a.from(n,t,r);var i=h(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return a.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function u(e,t,r){return c(e),e<=0?s(e):void 0!==t?"string"==typeof r?s(e).fill(t,r):s(e).fill(t):s(e)}function p(e){return c(e),s(e<0?0:0|y(e))}function d(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!a.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=0|b(e,t),n=s(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}function m(e){for(var t=e.length<0?0:0|y(e.length),r=s(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}function f(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return(n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r)).__proto__=a.prototype,n}function h(e){if(a.isBuffer(e)){var t=0|y(e.length),r=s(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||Y(e.length)?s(0):m(e):"Buffer"===e.type&&Array.isArray(e.data)?m(e.data):void 0}function y(e){if(e>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return 0|e}function g(e){return+e!=e&&(e=0),a.alloc(+e)}function b(e,t){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Q(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return V(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return K(e).length;default:if(i)return n?-1:V(e).length;t=(""+t).toLowerCase(),i=!0}}function v(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return M(this,t,r);case"utf8":case"utf-8":return O(this,t,r);case"ascii":return A(this,t,r);case"latin1":case"binary":return I(this,t,r);case"base64":return R(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function x(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function w(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),Y(r=+r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=a.from(t,n)),a.isBuffer(t))return 0===t.length?-1:S(e,t,r,n,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):S(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function S(e,t,r,n,i){var o,s=1,a=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;s=2,a/=2,l/=2,r/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var u=-1;for(o=r;o<a;o++)if(c(e,o)===c(t,-1===u?0:o-u)){if(-1===u&&(u=o),o-u+1===l)return u*s}else-1!==u&&(o-=o-u),u=-1}else for(r+l>a&&(r=a-l),o=r;o>=0;o--){for(var p=!0,d=0;d<l;d++)if(c(e,o+d)!==c(t,d)){p=!1;break}if(p)return o}return-1}function N(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=t.length;n>o/2&&(n=o/2);for(var s=0;s<n;++s){var a=parseInt(t.substr(2*s,2),16);if(Y(a))return s;e[r+s]=a}return s}function j(e,t,r,n){return X(V(t,e.length-r),e,r,n)}function E(e,t,r,n){return X(G(t),e,r,n)}function C(e,t,r,n){return E(e,t,r,n)}function k(e,t,r,n){return X(K(t),e,r,n)}function T(e,t,r,n){return X(W(t,e.length-r),e,r,n)}function R(e,r,n){return 0===r&&n===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(r,n))}function O(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var o,s,a,l,c=e[i],u=null,p=c>239?4:c>223?3:c>191?2:1;if(i+p<=r)switch(p){case 1:c<128&&(u=c);break;case 2:128==(192&(o=e[i+1]))&&(l=(31&c)<<6|63&o)>127&&(u=l);break;case 3:o=e[i+1],s=e[i+2],128==(192&o)&&128==(192&s)&&(l=(15&c)<<12|(63&o)<<6|63&s)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:o=e[i+1],s=e[i+2],a=e[i+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(l=(15&c)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&l<1114112&&(u=l)}null===u?(u=65533,p=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|1023&u),n.push(u),i+=p}return _(n)}r.kMaxLength=i,a.TYPED_ARRAY_SUPPORT=o(),!a.TYPED_ARRAY_SUPPORT&&"undefined"!=typeof console&&console.error,Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),"undefined"!=typeof Symbol&&null!=Symbol.species&&a[Symbol.species]===a&&Object.defineProperty(a,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),a.poolSize=8192,a.from=function(e,t,r){return l(e,t,r)},a.prototype.__proto__=Uint8Array.prototype,a.__proto__=Uint8Array,a.alloc=function(e,t,r){return u(e,t,r)},a.allocUnsafe=function(e){return p(e)},a.allocUnsafeSlow=function(e){return p(e)},a.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==a.prototype},a.compare=function(e,t){if(Q(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),Q(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(e)||!a.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},a.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return a.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=a.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var o=e[r];if(Q(o,Uint8Array)&&(o=a.from(o)),!a.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(n,i),i+=o.length}return n},a.byteLength=b,a.prototype._isBuffer=!0,a.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)x(this,t,t+1);return this},a.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)x(this,t,t+3),x(this,t+1,t+2);return this},a.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)x(this,t,t+7),x(this,t+1,t+6),x(this,t+2,t+5),x(this,t+3,t+4);return this},a.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?O(this,0,e):v.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(e){if(!a.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===a.compare(this,e)},a.prototype.inspect=function(){var e="",t=r.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},a.prototype.compare=function(e,t,r,n,i){if(Q(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(n>>>=0),s=(r>>>=0)-(t>>>=0),l=Math.min(o,s),c=this.slice(n,i),u=e.slice(t,r),p=0;p<l;++p)if(c[p]!==u[p]){o=c[p],s=u[p];break}return o<s?-1:s<o?1:0},a.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},a.prototype.indexOf=function(e,t,r){return w(this,e,t,r,!0)},a.prototype.lastIndexOf=function(e,t,r){return w(this,e,t,r,!1)},a.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return N(this,e,t,r);case"utf8":case"utf-8":return j(this,e,t,r);case"ascii":return E(this,e,t,r);case"latin1":case"binary":return C(this,e,t,r);case"base64":return k(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var P=4096;function _(e){var t=e.length;if(t<=P)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=P));return r}function A(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function I(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function M(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=t;o<r;++o)i+=$(e[o]);return i}function D(e,t,r){for(var n=e.slice(t,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function z(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function B(e,t,r,n,i,o){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function L(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function q(e,t,r,i,o){return t=+t,r>>>=0,o||L(e,t,r,4),n.write(e,t,r,i,23,4),r+4}function U(e,t,r,i,o){return t=+t,r>>>=0,o||L(e,t,r,8),n.write(e,t,r,i,52,8),r+8}a.prototype.slice=function(e,t){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var n=this.subarray(e,t);return n.__proto__=a.prototype,n},a.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||z(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n},a.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||z(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},a.prototype.readUInt8=function(e,t){return e>>>=0,t||z(e,1,this.length),this[e]},a.prototype.readUInt16LE=function(e,t){return e>>>=0,t||z(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUInt16BE=function(e,t){return e>>>=0,t||z(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUInt32LE=function(e,t){return e>>>=0,t||z(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},a.prototype.readUInt32BE=function(e,t){return e>>>=0,t||z(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||z(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},a.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||z(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},a.prototype.readInt8=function(e,t){return e>>>=0,t||z(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},a.prototype.readInt16LE=function(e,t){e>>>=0,t||z(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},a.prototype.readInt16BE=function(e,t){e>>>=0,t||z(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},a.prototype.readInt32LE=function(e,t){return e>>>=0,t||z(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return e>>>=0,t||z(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readFloatLE=function(e,t){return e>>>=0,t||z(e,4,this.length),n.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return e>>>=0,t||z(e,4,this.length),n.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return e>>>=0,t||z(e,8,this.length),n.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return e>>>=0,t||z(e,8,this.length),n.read(this,e,!1,52,8)},a.prototype.writeUIntLE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||B(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[t]=255&e;++o<r&&(i*=256);)this[t+o]=e/i&255;return t+r},a.prototype.writeUIntBE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||B(this,e,t,r,Math.pow(2,8*r)-1,0);var i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},a.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,1,255,0),this[t]=255&e,t+1},a.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},a.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);B(this,e,t,r,i-1,-i)}var o=0,s=1,a=0;for(this[t]=255&e;++o<r&&(s*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/s|0)-a&255;return t+r},a.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);B(this,e,t,r,i-1,-i)}var o=r-1,s=1,a=0;for(this[t+o]=255&e;--o>=0&&(s*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s|0)-a&255;return t+r},a.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},a.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeFloatLE=function(e,t,r){return q(this,e,t,!0,r)},a.prototype.writeFloatBE=function(e,t,r){return q(this,e,t,!1,r)},a.prototype.writeDoubleLE=function(e,t,r){return U(this,e,t,!0,r)},a.prototype.writeDoubleBE=function(e,t,r){return U(this,e,t,!1,r)},a.prototype.copy=function(e,t,r,n){if(!a.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i=n-r;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,n);else if(this===e&&r<t&&t<n)for(var o=i-1;o>=0;--o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,n),t);return i},a.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!a.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===e.length){var i=e.charCodeAt(0);("utf8"===n&&i<128||"latin1"===n)&&(e=i)}}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var o;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o<r;++o)this[o]=e;else{var s=a.isBuffer(e)?e:a.from(e,n),l=s.length;if(0===l)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<r-t;++o)this[o+t]=s[o%l]}return this};var H=/[^+/0-9A-Za-z-_]/g;function F(e){if((e=(e=e.split("=")[0]).trim().replace(H,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}function $(e){return e<16?"0"+e.toString(16):e.toString(16)}function V(e,t){var r;t=t||1/0;for(var n=e.length,i=null,o=[],s=0;s<n;++s){if((r=e.charCodeAt(s))>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function G(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}function W(e,t){for(var r,n,i,o=[],s=0;s<e.length&&!((t-=2)<0);++s)n=(r=e.charCodeAt(s))>>8,i=r%256,o.push(i),o.push(n);return o}function K(e){return t.toByteArray(F(e))}function X(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function Q(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Y(e){return e!=e}}).call(this)}).call(this,e("buffer").Buffer)},{"base64-js":100,buffer:103,ieee754:400}],104:[function(e,t,r){t.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},{}],105:[function(e,t,r){var n=e("get-intrinsic"),i=e("./"),o=i(n("String.prototype.indexOf"));t.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&o(e,".prototype.")>-1?i(r):r}},{"./":106,"get-intrinsic":390}],106:[function(e,t,r){var n=e("function-bind"),i=e("get-intrinsic"),o=e("set-function-length"),s=i("%TypeError%"),a=i("%Function.prototype.apply%"),l=i("%Function.prototype.call%"),c=i("%Reflect.apply%",!0)||n.call(l,a),u=i("%Object.defineProperty%",!0),p=i("%Math.max%");if(u)try{u({},"a",{value:1})}catch(m){u=null}t.exports=function(e){if("function"!=typeof e)throw new s("a function is required");var t=c(n,l,arguments);return o(t,1+p(0,e.length-(arguments.length-1)),!0)};var d=function(){return c(n,a,arguments)};u?u(t.exports,"apply",{value:d}):t.exports.apply=d},{"function-bind":389,"get-intrinsic":390,"set-function-length":466}],107:[function(e,t,r){var n=Array.prototype.slice;function i(e,t){if(!(this instanceof i))return new i(e,t);this.src=e,this._withAccess=t}function o(e,t){return void 0===e[t]&&void 0===e.__lookupGetter__(t)&&void 0===e.__lookupSetter__(t)}t.exports=i,i.prototype.withAccess=function(e){return this._withAccess=!1!==e,this},i.prototype.pick=function(e){return Array.isArray(e)||(e=n.call(arguments)),e.length&&(this.keys=e),this},i.prototype.to=function(e){if(e=e||{},!this.src)return e;var t=this.keys||Object.keys(this.src);if(!this._withAccess){for(var r=0;r<t.length;r++)void 0===e[n=t[r]]&&(e[n]=this.src[n]);return e}for(r=0;r<t.length;r++){var n=t[r];if(o(e,n)){var i=this.src.__lookupGetter__(n),s=this.src.__lookupSetter__(n);i&&e.__defineGetter__(n,i),s&&e.__defineSetter__(n,s),i||s||(e[n]=this.src[n])}}return e},i.prototype.toCover=function(e){for(var t=this.keys||Object.keys(this.src),r=0;r<t.length;r++){var n=t[r];delete e[n];var i=this.src.__lookupGetter__(n),o=this.src.__lookupSetter__(n);i&&e.__defineGetter__(n,i),o&&e.__defineSetter__(n,o),i||o||(e[n]=this.src[n])}},i.prototype.override=i.prototype.toCover,i.prototype.and=function(e){var t={};return this.to(t),this.src=e,this.to(t),this.src=t,this}},{}],108:[function(e,t,r){var n=e("../internals/is-callable"),i=e("../internals/try-to-string"),o=TypeError;t.exports=function(e){if(n(e))return e;throw new o(i(e)+" is not a function")}},{"../internals/is-callable":203,"../internals/try-to-string":293}],109:[function(e,t,r){var n=e("../internals/is-constructor"),i=e("../internals/try-to-string"),o=TypeError;t.exports=function(e){if(n(e))return e;throw new o(i(e)+" is not a constructor")}},{"../internals/is-constructor":204,"../internals/try-to-string":293}],110:[function(e,t,r){var n=e("../internals/is-possible-prototype"),i=String,o=TypeError;t.exports=function(e){if(n(e))return e;throw new o("Can't set "+i(e)+" as a prototype")}},{"../internals/is-possible-prototype":209}],111:[function(e,t,r){var n=e("../internals/well-known-symbol"),i=e("../internals/object-create"),o=e("../internals/object-define-property").f,s=n("unscopables"),a=Array.prototype;void 0===a[s]&&o(a,s,{configurable:!0,value:i(null)}),t.exports=function(e){a[s][e]=!0}},{"../internals/object-create":229,"../internals/object-define-property":231,"../internals/well-known-symbol":306}],112:[function(e,t,r){var n=e("../internals/string-multibyte").charAt;t.exports=function(e,t,r){return t+(r?n(e,t).length:1)}},{"../internals/string-multibyte":271}],113:[function(e,t,r){var n=e("../internals/object-is-prototype-of"),i=TypeError;t.exports=function(e,t){if(n(t,e))return e;throw new i("Incorrect invocation")}},{"../internals/object-is-prototype-of":238}],114:[function(e,t,r){var n=e("../internals/is-object"),i=String,o=TypeError;t.exports=function(e){if(n(e))return e;throw new o(i(e)+" is not an object")}},{"../internals/is-object":208}],115:[function(e,t,r){t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},{}],116:[function(e,t,r){var n=e("../internals/fails");t.exports=n(function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})},{"../internals/fails":171}],117:[function(e,t,r){var n,i,o,s=e("../internals/array-buffer-basic-detection"),a=e("../internals/descriptors"),l=e("../internals/global"),c=e("../internals/is-callable"),u=e("../internals/is-object"),p=e("../internals/has-own-property"),d=e("../internals/classof"),m=e("../internals/try-to-string"),f=e("../internals/create-non-enumerable-property"),h=e("../internals/define-built-in"),y=e("../internals/define-built-in-accessor"),g=e("../internals/object-is-prototype-of"),b=e("../internals/object-get-prototype-of"),v=e("../internals/object-set-prototype-of"),x=e("../internals/well-known-symbol"),w=e("../internals/uid"),S=e("../internals/internal-state"),N=S.enforce,j=S.get,E=l.Int8Array,C=E&&E.prototype,k=l.Uint8ClampedArray,T=k&&k.prototype,R=E&&b(E),O=C&&b(C),P=Object.prototype,_=l.TypeError,A=x("toStringTag"),I=w("TYPED_ARRAY_TAG"),M="TypedArrayConstructor",D=s&&!!v&&"Opera"!==d(l.opera),z=!1,B={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},L={BigInt64Array:8,BigUint64Array:8},q=function(e){if(!u(e))return!1;var t=d(e);return"DataView"===t||p(B,t)||p(L,t)},U=function(e){var t=b(e);if(u(t)){var r=j(t);return r&&p(r,M)?r[M]:U(t)}},H=function(e){if(!u(e))return!1;var t=d(e);return p(B,t)||p(L,t)},F=function(e){if(H(e))return e;throw new _("Target is not a typed array")},$=function(e){if(c(e)&&(!v||g(R,e)))return e;throw new _(m(e)+" is not a typed array constructor")},V=function(e,t,r,n){if(a){if(r)for(var i in B){var o=l[i];if(o&&p(o.prototype,e))try{delete o.prototype[e]}catch(s){try{o.prototype[e]=t}catch(c){}}}O[e]&&!r||h(O,e,r?t:D&&C[e]||t,n)}},G=function(e,t,r){var n,i;if(a){if(v){if(r)for(n in B)if((i=l[n])&&p(i,e))try{delete i[e]}catch(o){}if(R[e]&&!r)return;try{return h(R,e,r?t:D&&R[e]||t)}catch(o){}}for(n in B)!(i=l[n])||i[e]&&!r||h(i,e,t)}};for(n in B)(o=(i=l[n])&&i.prototype)?N(o)[M]=i:D=!1;for(n in L)(o=(i=l[n])&&i.prototype)&&(N(o)[M]=i);if((!D||!c(R)||R===Function.prototype)&&(R=function(){throw new _("Incorrect invocation")},D))for(n in B)l[n]&&v(l[n],R);if((!D||!O||O===P)&&(O=R.prototype,D))for(n in B)l[n]&&v(l[n].prototype,O);if(D&&b(T)!==O&&v(T,O),a&&!p(O,A))for(n in z=!0,y(O,A,{configurable:!0,get:function(){return u(this)?this[I]:void 0}}),B)l[n]&&f(l[n],I,n);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:D,TYPED_ARRAY_TAG:z&&I,aTypedArray:F,aTypedArrayConstructor:$,exportTypedArrayMethod:V,exportTypedArrayStaticMethod:G,getTypedArrayConstructor:U,isView:q,isTypedArray:H,TypedArray:R,TypedArrayPrototype:O}},{"../internals/array-buffer-basic-detection":115,"../internals/classof":138,"../internals/create-non-enumerable-property":145,"../internals/define-built-in":149,"../internals/define-built-in-accessor":148,"../internals/descriptors":153,"../internals/global":188,"../internals/has-own-property":189,"../internals/internal-state":199,"../internals/is-callable":203,"../internals/is-object":208,"../internals/object-get-prototype-of":236,"../internals/object-is-prototype-of":238,"../internals/object-set-prototype-of":242,"../internals/try-to-string":293,"../internals/uid":299,"../internals/well-known-symbol":306}],118:[function(e,t,r){var n=e("../internals/global"),i=e("../internals/function-uncurry-this"),o=e("../internals/descriptors"),s=e("../internals/array-buffer-basic-detection"),a=e("../internals/function-name"),l=e("../internals/create-non-enumerable-property"),c=e("../internals/define-built-in-accessor"),u=e("../internals/define-built-ins"),p=e("../internals/fails"),d=e("../internals/an-instance"),m=e("../internals/to-integer-or-infinity"),f=e("../internals/to-length"),h=e("../internals/to-index"),y=e("../internals/math-fround"),g=e("../internals/ieee754"),b=e("../internals/object-get-prototype-of"),v=e("../internals/object-set-prototype-of"),x=e("../internals/array-fill"),w=e("../internals/array-slice"),S=e("../internals/inherit-if-required"),N=e("../internals/copy-constructor-properties"),j=e("../internals/set-to-string-tag"),E=e("../internals/internal-state"),C=a.PROPER,k=a.CONFIGURABLE,T="ArrayBuffer",R="DataView",O="prototype",P="Wrong length",_="Wrong index",A=E.getterFor(T),I=E.getterFor(R),M=E.set,D=n[T],z=D,B=z&&z[O],L=n[R],q=L&&L[O],U=Object.prototype,H=n.Array,F=n.RangeError,$=i(x),V=i([].reverse),G=g.pack,W=g.unpack,K=function(e){return[255&e]},X=function(e){return[255&e,e>>8&255]},Q=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},Y=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},J=function(e){return G(y(e),23,4)},Z=function(e){return G(e,52,8)},ee=function(e,t,r){c(e[O],t,{configurable:!0,get:function(){return r(this)[t]}})},te=function(e,t,r,n){var i=I(e),o=h(r),s=!!n;if(o+t>i.byteLength)throw new F(_);var a=i.bytes,l=o+i.byteOffset,c=w(a,l,l+t);return s?c:V(c)},re=function(e,t,r,n,i,o){var s=I(e),a=h(r),l=n(+i),c=!!o;if(a+t>s.byteLength)throw new F(_);for(var u=s.bytes,p=a+s.byteOffset,d=0;d<t;d++)u[p+d]=l[c?d:t-d-1]};if(s){var ne=C&&D.name!==T;p(function(){D(1)})&&p(function(){new D(-1)})&&!p(function(){return new D,new D(1.5),new D(NaN),1!==D.length||ne&&!k})?ne&&k&&l(D,"name",T):((z=function(e){return d(this,B),S(new D(h(e)),this,z)})[O]=B,B.constructor=z,N(z,D)),v&&b(q)!==U&&v(q,U);var ie=new L(new z(2)),oe=i(q.setInt8);ie.setInt8(0,2147483648),ie.setInt8(1,2147483649),!ie.getInt8(0)&&ie.getInt8(1)||u(q,{setInt8:function(e,t){oe(this,e,t<<24>>24)},setUint8:function(e,t){oe(this,e,t<<24>>24)}},{unsafe:!0})}else B=(z=function(e){d(this,B);var t=h(e);M(this,{type:T,bytes:$(H(t),0),byteLength:t}),o||(this.byteLength=t,this.detached=!1)})[O],q=(L=function(e,t,r){d(this,q),d(e,B);var n=A(e),i=n.byteLength,s=m(t);if(s<0||s>i)throw new F("Wrong offset");if(s+(r=void 0===r?i-s:f(r))>i)throw new F(P);M(this,{type:R,buffer:e,byteLength:r,byteOffset:s,bytes:n.bytes}),o||(this.buffer=e,this.byteLength=r,this.byteOffset=s)})[O],o&&(ee(z,"byteLength",A),ee(L,"buffer",I),ee(L,"byteLength",I),ee(L,"byteOffset",I)),u(q,{getInt8:function(e){return te(this,1,e)[0]<<24>>24},getUint8:function(e){return te(this,1,e)[0]},getInt16:function(e){var t=te(this,2,e,arguments.length>1&&arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=te(this,2,e,arguments.length>1&&arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return Y(te(this,4,e,arguments.length>1&&arguments[1]))},getUint32:function(e){return Y(te(this,4,e,arguments.length>1&&arguments[1]))>>>0},getFloat32:function(e){return W(te(this,4,e,arguments.length>1&&arguments[1]),23)},getFloat64:function(e){return W(te(this,8,e,arguments.length>1&&arguments[1]),52)},setInt8:function(e,t){re(this,1,e,K,t)},setUint8:function(e,t){re(this,1,e,K,t)},setInt16:function(e,t){re(this,2,e,X,t,arguments.length>2&&arguments[2])},setUint16:function(e,t){re(this,2,e,X,t,arguments.length>2&&arguments[2])},setInt32:function(e,t){re(this,4,e,Q,t,arguments.length>2&&arguments[2])},setUint32:function(e,t){re(this,4,e,Q,t,arguments.length>2&&arguments[2])},setFloat32:function(e,t){re(this,4,e,J,t,arguments.length>2&&arguments[2])},setFloat64:function(e,t){re(this,8,e,Z,t,arguments.length>2&&arguments[2])}});j(z,T),j(L,R),t.exports={ArrayBuffer:z,DataView:L}},{"../internals/an-instance":113,"../internals/array-buffer-basic-detection":115,"../internals/array-fill":120,"../internals/array-slice":131,"../internals/copy-constructor-properties":141,"../internals/create-non-enumerable-property":145,"../internals/define-built-in-accessor":148,"../internals/define-built-ins":150,"../internals/descriptors":153,"../internals/fails":171,"../internals/function-name":178,"../internals/function-uncurry-this":181,"../internals/global":188,"../internals/ieee754":194,"../internals/inherit-if-required":196,"../internals/internal-state":199,"../internals/math-fround":222,"../internals/object-get-prototype-of":236,"../internals/object-set-prototype-of":242,"../internals/set-to-string-tag":266,"../internals/to-index":281,"../internals/to-integer-or-infinity":283,"../internals/to-length":284}],119:[function(e,t,r){var n=e("../internals/to-object"),i=e("../internals/to-absolute-index"),o=e("../internals/length-of-array-like"),s=e("../internals/delete-property-or-throw"),a=Math.min;t.exports=[].copyWithin||function(e,t){var r=n(this),l=o(r),c=i(e,l),u=i(t,l),p=arguments.length>2?arguments[2]:void 0,d=a((void 0===p?l:i(p,l))-u,l-c),m=1;for(u<c&&c<u+d&&(m=-1,u+=d-1,c+=d-1);d-- >0;)u in r?r[c]=r[u]:s(r,c),c+=m,u+=m;return r}},{"../internals/delete-property-or-throw":152,"../internals/length-of-array-like":219,"../internals/to-absolute-index":279,"../internals/to-object":285}],120:[function(e,t,r){var n=e("../internals/to-object"),i=e("../internals/to-absolute-index"),o=e("../internals/length-of-array-like");t.exports=function(e){for(var t=n(this),r=o(t),s=arguments.length,a=i(s>1?arguments[1]:void 0,r),l=s>2?arguments[2]:void 0,c=void 0===l?r:i(l,r);c>a;)t[a++]=e;return t}},{"../internals/length-of-array-like":219,"../internals/to-absolute-index":279,"../internals/to-object":285}],121:[function(e,t,r){var n=e("../internals/array-iteration").forEach,i=e("../internals/array-method-is-strict")("forEach");t.exports=i?[].forEach:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}},{"../internals/array-iteration":125,"../internals/array-method-is-strict":128}],122:[function(e,t,r){var n=e("../internals/length-of-array-like");t.exports=function(e,t,r){for(var i=0,o=arguments.length>2?r:n(t),s=new e(o);o>i;)s[i]=t[i++];return s}},{"../internals/length-of-array-like":219}],123:[function(e,t,r){var n=e("../internals/function-bind-context"),i=e("../internals/function-call"),o=e("../internals/to-object"),s=e("../internals/call-with-safe-iteration-closing"),a=e("../internals/is-array-iterator-method"),l=e("../internals/is-constructor"),c=e("../internals/length-of-array-like"),u=e("../internals/create-property"),p=e("../internals/get-iterator"),d=e("../internals/get-iterator-method"),m=Array;t.exports=function(e){var t=o(e),r=l(this),f=arguments.length,h=f>1?arguments[1]:void 0,y=void 0!==h;y&&(h=n(h,f>2?arguments[2]:void 0));var g,b,v,x,w,S,N=d(t),j=0;if(!N||this===m&&a(N))for(g=c(t),b=r?new this(g):m(g);g>j;j++)S=y?h(t[j],j):t[j],u(b,j,S);else for(w=(x=p(t,N)).next,b=r?new this:[];!(v=i(w,x)).done;j++)S=y?s(x,h,[v.value,j],!0):v.value,u(b,j,S);return b.length=j,b}},{"../internals/call-with-safe-iteration-closing":135,"../internals/create-property":147,"../internals/function-bind-context":175,"../internals/function-call":177,"../internals/get-iterator":184,"../internals/get-iterator-method":183,"../internals/is-array-iterator-method":200,"../internals/is-constructor":204,"../internals/length-of-array-like":219,"../internals/to-object":285}],124:[function(e,t,r){var n=e("../internals/to-indexed-object"),i=e("../internals/to-absolute-index"),o=e("../internals/length-of-array-like"),s=function(e){return function(t,r,s){var a,l=n(t),c=o(l),u=i(s,c);if(e&&r!=r){for(;c>u;)if((a=l[u++])!=a)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===r)return e||u||0;return!e&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},{"../internals/length-of-array-like":219,"../internals/to-absolute-index":279,"../internals/to-indexed-object":282}],125:[function(e,t,r){var n=e("../internals/function-bind-context"),i=e("../internals/function-uncurry-this"),o=e("../internals/indexed-object"),s=e("../internals/to-object"),a=e("../internals/length-of-array-like"),l=e("../internals/array-species-create"),c=i([].push),u=function(e){var t=1===e,r=2===e,i=3===e,u=4===e,p=6===e,d=7===e,m=5===e||p;return function(f,h,y,g){for(var b,v,x=s(f),w=o(x),S=a(w),N=n(h,y),j=0,E=g||l,C=t?E(f,S):r||d?E(f,0):void 0;S>j;j++)if((m||j in w)&&(v=N(b=w[j],j,x),e))if(t)C[j]=v;else if(v)switch(e){case 3:return!0;case 5:return b;case 6:return j;case 2:c(C,b)}else switch(e){case 4:return!1;case 7:c(C,b)}return p?-1:i||u?u:C}};t.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},{"../internals/array-species-create":134,"../internals/function-bind-context":175,"../internals/function-uncurry-this":181,"../internals/indexed-object":195,"../internals/length-of-array-like":219,"../internals/to-object":285}],126:[function(e,t,r){var n=e("../internals/function-apply"),i=e("../internals/to-indexed-object"),o=e("../internals/to-integer-or-infinity"),s=e("../internals/length-of-array-like"),a=e("../internals/array-method-is-strict"),l=Math.min,c=[].lastIndexOf,u=!!c&&1/[1].lastIndexOf(1,-0)<0,p=a("lastIndexOf"),d=u||!p;t.exports=d?function(e){if(u)return n(c,this,arguments)||0;var t=i(this),r=s(t),a=r-1;for(arguments.length>1&&(a=l(a,o(arguments[1]))),a<0&&(a=r+a);a>=0;a--)if(a in t&&t[a]===e)return a||0;return-1}:c},{"../internals/array-method-is-strict":128,"../internals/function-apply":174,"../internals/length-of-array-like":219,"../internals/to-indexed-object":282,"../internals/to-integer-or-infinity":283}],127:[function(e,t,r){var n=e("../internals/fails"),i=e("../internals/well-known-symbol"),o=e("../internals/engine-v8-version"),s=i("species");t.exports=function(e){return o>=51||!n(function(){var t=[];return(t.constructor={})[s]=function(){return{foo:1}},1!==t[e](Boolean).foo})}},{"../internals/engine-v8-version":167,"../internals/fails":171,"../internals/well-known-symbol":306}],128:[function(e,t,r){var n=e("../internals/fails");t.exports=function(e,t){var r=[][e];return!!r&&n(function(){r.call(null,t||function(){return 1},1)})}},{"../internals/fails":171}],129:[function(e,t,r){var n=e("../internals/a-callable"),i=e("../internals/to-object"),o=e("../internals/indexed-object"),s=e("../internals/length-of-array-like"),a=TypeError,l=function(e){return function(t,r,l,c){var u=i(t),p=o(u),d=s(u);n(r);var m=e?d-1:0,f=e?-1:1;if(l<2)for(;;){if(m in p){c=p[m],m+=f;break}if(m+=f,e?m<0:d<=m)throw new a("Reduce of empty array with no initial value")}for(;e?m>=0:d>m;m+=f)m in p&&(c=r(c,p[m],m,u));return c}};t.exports={left:l(!1),right:l(!0)}},{"../internals/a-callable":108,"../internals/indexed-object":195,"../internals/length-of-array-like":219,"../internals/to-object":285}],130:[function(e,t,r){var n=e("../internals/descriptors"),i=e("../internals/is-array"),o=TypeError,s=Object.getOwnPropertyDescriptor,a=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();t.exports=a?function(e,t){if(i(e)&&!s(e,"length").writable)throw new o("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},{"../internals/descriptors":153,"../internals/is-array":201}],131:[function(e,t,r){var n=e("../internals/function-uncurry-this");t.exports=n([].slice)},{"../internals/function-uncurry-this":181}],132:[function(e,t,r){var n=e("../internals/array-slice"),i=Math.floor,o=function(e,t){var r=e.length;if(r<8)for(var s,a,l=1;l<r;){for(a=l,s=e[l];a&&t(e[a-1],s)>0;)e[a]=e[--a];a!==l++&&(e[a]=s)}else for(var c=i(r/2),u=o(n(e,0,c),t),p=o(n(e,c),t),d=u.length,m=p.length,f=0,h=0;f<d||h<m;)e[f+h]=f<d&&h<m?t(u[f],p[h])<=0?u[f++]:p[h++]:f<d?u[f++]:p[h++];return e};t.exports=o},{"../internals/array-slice":131}],133:[function(e,t,r){var n=e("../internals/is-array"),i=e("../internals/is-constructor"),o=e("../internals/is-object"),s=e("../internals/well-known-symbol")("species"),a=Array;t.exports=function(e){var t;return n(e)&&(t=e.constructor,(i(t)&&(t===a||n(t.prototype))||o(t)&&null===(t=t[s]))&&(t=void 0)),void 0===t?a:t}},{"../internals/is-array":201,"../internals/is-constructor":204,"../internals/is-object":208,"../internals/well-known-symbol":306}],134:[function(e,t,r){var n=e("../internals/array-species-constructor");t.exports=function(e,t){return new(n(e))(0===t?0:t)}},{"../internals/array-species-constructor":133}],135:[function(e,t,r){var n=e("../internals/an-object"),i=e("../internals/iterator-close");t.exports=function(e,t,r,o){try{return o?t(n(r)[0],r[1]):t(r)}catch(s){i(e,"throw",s)}}},{"../internals/an-object":114,"../internals/iterator-close":214}],136:[function(e,t,r){var n=e("../internals/well-known-symbol")("iterator"),i=!1;try{var o=0,s={next:function(){return{done:!!o++}},return:function(){i=!0}};s[n]=function(){return this},Array.from(s,function(){throw 2})}catch(a){}t.exports=function(e,t){try{if(!t&&!i)return!1}catch(a){return!1}var r=!1;try{var o={};o[n]=function(){return{next:function(){return{done:r=!0}}}},e(o)}catch(a){}return r}},{"../internals/well-known-symbol":306}],137:[function(e,t,r){var n=e("../internals/function-uncurry-this"),i=n({}.toString),o=n("".slice);t.exports=function(e){return o(i(e),8,-1)}},{"../internals/function-uncurry-this":181}],138:[function(e,t,r){var n=e("../internals/to-string-tag-support"),i=e("../internals/is-callable"),o=e("../internals/classof-raw"),s=e("../internals/well-known-symbol")("toStringTag"),a=Object,l="Arguments"===o(function(){return arguments}()),c=function(e,t){try{return e[t]}catch(r){}};t.exports=n?o:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=c(t=a(e),s))?r:l?o(t):"Object"===(n=o(t))&&i(t.callee)?"Arguments":n}},{"../internals/classof-raw":137,"../internals/is-callable":203,"../internals/to-string-tag-support":290,"../internals/well-known-symbol":306}],139:[function(e,t,r){var n=e("../internals/object-create"),i=e("../internals/define-built-in-accessor"),o=e("../internals/define-built-ins"),s=e("../internals/function-bind-context"),a=e("../internals/an-instance"),l=e("../internals/is-null-or-undefined"),c=e("../internals/iterate"),u=e("../internals/iterator-define"),p=e("../internals/create-iter-result-object"),d=e("../internals/set-species"),m=e("../internals/descriptors"),f=e("../internals/internal-metadata").fastKey,h=e("../internals/internal-state"),y=h.set,g=h.getterFor;t.exports={getConstructor:function(e,t,r,u){var p=e(function(e,i){a(e,d),y(e,{type:t,index:n(null),first:void 0,last:void 0,size:0}),m||(e.size=0),l(i)||c(i,e[u],{that:e,AS_ENTRIES:r})}),d=p.prototype,h=g(t),b=function(e,t,r){var n,i,o=h(e),s=v(e,t);return s?s.value=r:(o.last=s={index:i=f(t,!0),key:t,value:r,previous:n=o.last,next:void 0,removed:!1},o.first||(o.first=s),n&&(n.next=s),m?o.size++:e.size++,"F"!==i&&(o.index[i]=s)),e},v=function(e,t){var r,n=h(e),i=f(t);if("F"!==i)return n.index[i];for(r=n.first;r;r=r.next)if(r.key===t)return r};return o(d,{clear:function(){for(var e=this,t=h(e),r=t.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),r=r.next;t.first=t.last=void 0,t.index=n(null),m?t.size=0:e.size=0},delete:function(e){var t=this,r=h(t),n=v(t,e);if(n){var i=n.next,o=n.previous;delete r.index[n.index],n.removed=!0,o&&(o.next=i),i&&(i.previous=o),r.first===n&&(r.first=i),r.last===n&&(r.last=o),m?r.size--:t.size--}return!!n},forEach:function(e){for(var t,r=h(this),n=s(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:r.first;)for(n(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!v(this,e)}}),o(d,r?{get:function(e){var t=v(this,e);return t&&t.value},set:function(e,t){return b(this,0===e?0:e,t)}}:{add:function(e){return b(this,e=0===e?0:e,e)}}),m&&i(d,"size",{configurable:!0,get:function(){return h(this).size}}),p},setStrong:function(e,t,r){var n=t+" Iterator",i=g(t),o=g(n);u(e,t,function(e,t){y(this,{type:n,target:e,state:i(e),kind:t,last:void 0})},function(){for(var e=o(this),t=e.kind,r=e.last;r&&r.removed;)r=r.previous;return e.target&&(e.last=r=r?r.next:e.state.first)?p("keys"===t?r.key:"values"===t?r.value:[r.key,r.value],!1):(e.target=void 0,p(void 0,!0))},r?"entries":"values",!r,!0),d(t)}}},{"../internals/an-instance":113,"../internals/create-iter-result-object":144,"../internals/define-built-in-accessor":148,"../internals/define-built-ins":150,"../internals/descriptors":153,"../internals/function-bind-context":175,"../internals/internal-metadata":198,"../internals/internal-state":199,"../internals/is-null-or-undefined":207,"../internals/iterate":213,"../internals/iterator-define":216,"../internals/object-create":229,"../internals/set-species":265}],140:[function(e,t,r){var n=e("../internals/export"),i=e("../internals/global"),o=e("../internals/function-uncurry-this"),s=e("../internals/is-forced"),a=e("../internals/define-built-in"),l=e("../internals/internal-metadata"),c=e("../internals/iterate"),u=e("../internals/an-instance"),p=e("../internals/is-callable"),d=e("../internals/is-null-or-undefined"),m=e("../internals/is-object"),f=e("../internals/fails"),h=e("../internals/check-correctness-of-iteration"),y=e("../internals/set-to-string-tag"),g=e("../internals/inherit-if-required");t.exports=function(e,t,r){var b=-1!==e.indexOf("Map"),v=-1!==e.indexOf("Weak"),x=b?"set":"add",w=i[e],S=w&&w.prototype,N=w,j={},E=function(e){var t=o(S[e]);a(S,e,"add"===e?function(e){return t(this,0===e?0:e),this}:"delete"===e?function(e){return!(v&&!m(e))&&t(this,0===e?0:e)}:"get"===e?function(e){return v&&!m(e)?void 0:t(this,0===e?0:e)}:"has"===e?function(e){return!(v&&!m(e))&&t(this,0===e?0:e)}:function(e,r){return t(this,0===e?0:e,r),this})};if(s(e,!p(w)||!(v||S.forEach&&!f(function(){(new w).entries().next()}))))N=r.getConstructor(t,e,b,x),l.enable();else if(s(e,!0)){var C=new N,k=C[x](v?{}:-0,1)!==C,T=f(function(){C.has(1)}),R=h(function(e){new w(e)}),O=!v&&f(function(){for(var e=new w,t=5;t--;)e[x](t,t);return!e.has(-0)});R||((N=t(function(e,t){u(e,S);var r=g(new w,e,N);return d(t)||c(t,r[x],{that:r,AS_ENTRIES:b}),r})).prototype=S,S.constructor=N),(T||O)&&(E("delete"),E("has"),b&&E("get")),(O||k)&&E(x),v&&S.clear&&delete S.clear}return j[e]=N,n({global:!0,constructor:!0,forced:N!==w},j),y(N,e),v||r.setStrong(N,e,b),N}},{"../internals/an-instance":113,"../internals/check-correctness-of-iteration":136,"../internals/define-built-in":149,"../internals/export":170,"../internals/fails":171,"../internals/function-uncurry-this":181,"../internals/global":188,"../internals/inherit-if-required":196,"../internals/internal-metadata":198,"../internals/is-callable":203,"../internals/is-forced":205,"../internals/is-null-or-undefined":207,"../internals/is-object":208,"../internals/iterate":213,"../internals/set-to-string-tag":266}],141:[function(e,t,r){var n=e("../internals/has-own-property"),i=e("../internals/own-keys"),o=e("../internals/object-get-own-property-descriptor"),s=e("../internals/object-define-property");t.exports=function(e,t,r){for(var a=i(t),l=s.f,c=o.f,u=0;u<a.length;u++){var p=a[u];n(e,p)||r&&n(r,p)||l(e,p,c(t,p))}}},{"../internals/has-own-property":189,"../internals/object-define-property":231,"../internals/object-get-own-property-descriptor":232,"../internals/own-keys":246}],142:[function(e,t,r){var n=e("../internals/well-known-symbol")("match");t.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[n]=!1,"/./"[e](t)}catch(i){}}return!1}},{"../internals/well-known-symbol":306}],143:[function(e,t,r){var n=e("../internals/fails");t.exports=!n(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},{"../internals/fails":171}],144:[function(e,t,r){t.exports=function(e,t){return{value:e,done:t}}},{}],145:[function(e,t,r){var n=e("../internals/descriptors"),i=e("../internals/object-define-property"),o=e("../internals/create-property-descriptor");t.exports=n?function(e,t,r){return i.f(e,t,o(1,r))}:function(e,t,r){return e[t]=r,e}},{"../internals/create-property-descriptor":146,"../internals/descriptors":153,"../internals/object-define-property":231}],146:[function(e,t,r){t.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},{}],147:[function(e,t,r){var n=e("../internals/to-property-key"),i=e("../internals/object-define-property"),o=e("../internals/create-property-descriptor");t.exports=function(e,t,r){var s=n(t);s in e?i.f(e,s,o(0,r)):e[s]=r}},{"../internals/create-property-descriptor":146,"../internals/object-define-property":231,"../internals/to-property-key":289}],148:[function(e,t,r){var n=e("../internals/make-built-in"),i=e("../internals/object-define-property");t.exports=function(e,t,r){return r.get&&n(r.get,t,{getter:!0}),r.set&&n(r.set,t,{setter:!0}),i.f(e,t,r)}},{"../internals/make-built-in":220,"../internals/object-define-property":231}],149:[function(e,t,r){var n=e("../internals/is-callable"),i=e("../internals/object-define-property"),o=e("../internals/make-built-in"),s=e("../internals/define-global-property");t.exports=function(e,t,r,a){a||(a={});var l=a.enumerable,c=void 0!==a.name?a.name:t;if(n(r)&&o(r,c,a),a.global)l?e[t]=r:s(t,r);else{try{a.unsafe?e[t]&&(l=!0):delete e[t]}catch(u){}l?e[t]=r:i.f(e,t,{value:r,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return e}},{"../internals/define-global-property":151,"../internals/is-callable":203,"../internals/make-built-in":220,"../internals/object-define-property":231}],150:[function(e,t,r){var n=e("../internals/define-built-in");t.exports=function(e,t,r){for(var i in t)n(e,i,t[i],r);return e}},{"../internals/define-built-in":149}],151:[function(e,t,r){var n=e("../internals/global"),i=Object.defineProperty;t.exports=function(e,t){try{i(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},{"../internals/global":188}],152:[function(e,t,r){var n=e("../internals/try-to-string"),i=TypeError;t.exports=function(e,t){if(!delete e[t])throw new i("Cannot delete property "+n(t)+" of "+n(e))}},{"../internals/try-to-string":293}],153:[function(e,t,r){var n=e("../internals/fails");t.exports=!n(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},{"../internals/fails":171}],154:[function(e,t,r){var n=e("../internals/global"),i=e("../internals/is-object"),o=n.document,s=i(o)&&i(o.createElement);t.exports=function(e){return s?o.createElement(e):{}}},{"../internals/global":188,"../internals/is-object":208}],155:[function(e,t,r){var n=TypeError,i=9007199254740991;t.exports=function(e){if(e>i)throw n("Maximum allowed index exceeded");return e}},{}],156:[function(e,t,r){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},{}],157:[function(e,t,r){var n=e("../internals/document-create-element")("span").classList,i=n&&n.constructor&&n.constructor.prototype;t.exports=i===Object.prototype?void 0:i},{"../internals/document-create-element":154}],158:[function(e,t,r){var n=e("../internals/engine-user-agent").match(/firefox\/(\d+)/i);t.exports=!!n&&+n[1]},{"../internals/engine-user-agent":166}],159:[function(e,t,r){var n=e("../internals/engine-is-deno"),i=e("../internals/engine-is-node");t.exports=!n&&!i&&"object"==typeof window&&"object"==typeof document},{"../internals/engine-is-deno":160,"../internals/engine-is-node":164}],160:[function(e,t,r){t.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},{}],161:[function(e,t,r){var n=e("../internals/engine-user-agent");t.exports=/MSIE|Trident/.test(n)},{"../internals/engine-user-agent":166}],162:[function(e,t,r){var n=e("../internals/engine-user-agent");t.exports=/ipad|iphone|ipod/i.test(n)&&"undefined"!=typeof Pebble},{"../internals/engine-user-agent":166}],163:[function(e,t,r){var n=e("../internals/engine-user-agent");t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},{"../internals/engine-user-agent":166}],164:[function(e,t,r){var n=e("../internals/global"),i=e("../internals/classof-raw");t.exports="process"===i(n.process)},{"../internals/classof-raw":137,"../internals/global":188}],165:[function(e,t,r){var n=e("../internals/engine-user-agent");t.exports=/web0s(?!.*chrome)/i.test(n)},{"../internals/engine-user-agent":166}],166:[function(e,t,r){t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},{}],167:[function(e,t,r){var n,i,o=e("../internals/global"),s=e("../internals/engine-user-agent"),a=o.process,l=o.Deno,c=a&&a.versions||l&&l.version,u=c&&c.v8;u&&(i=(n=u.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!i&&s&&(!(n=s.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=s.match(/Chrome\/(\d+)/))&&(i=+n[1]),t.exports=i},{"../internals/engine-user-agent":166,"../internals/global":188}],168:[function(e,t,r){var n=e("../internals/engine-user-agent").match(/AppleWebKit\/(\d+)\./);t.exports=!!n&&+n[1]},{"../internals/engine-user-agent":166}],169:[function(e,t,r){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],170:[function(e,t,r){var n=e("../internals/global"),i=e("../internals/object-get-own-property-descriptor").f,o=e("../internals/create-non-enumerable-property"),s=e("../internals/define-built-in"),a=e("../internals/define-global-property"),l=e("../internals/copy-constructor-properties"),c=e("../internals/is-forced");t.exports=function(e,t){var r,u,p,d,m,f=e.target,h=e.global,y=e.stat;if(r=h?n:y?n[f]||a(f,{}):(n[f]||{}).prototype)for(u in t){if(d=t[u],p=e.dontCallGetSet?(m=i(r,u))&&m.value:r[u],!c(h?u:f+(y?".":"#")+u,e.forced)&&void 0!==p){if(typeof d==typeof p)continue;l(d,p)}(e.sham||p&&p.sham)&&o(d,"sham",!0),s(r,u,d,e)}}},{"../internals/copy-constructor-properties":141,"../internals/create-non-enumerable-property":145,"../internals/define-built-in":149,"../internals/define-global-property":151,"../internals/global":188,"../internals/is-forced":205,"../internals/object-get-own-property-descriptor":232}],171:[function(e,t,r){t.exports=function(e){try{return!!e()}catch(t){return!0}}},{}],172:[function(e,t,r){e("../modules/es.regexp.exec");var n=e("../internals/function-uncurry-this-clause"),i=e("../internals/define-built-in"),o=e("../internals/regexp-exec"),s=e("../internals/fails"),a=e("../internals/well-known-symbol"),l=e("../internals/create-non-enumerable-property"),c=a("species"),u=RegExp.prototype;t.exports=function(e,t,r,p){var d=a(e),m=!s(function(){var t={};return t[d]=function(){return 7},7!==""[e](t)}),f=m&&!s(function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[c]=function(){return r},r.flags="",r[d]=/./[d]),r.exec=function(){return t=!0,null},r[d](""),!t});if(!m||!f||r){var h=n(/./[d]),y=t(d,""[e],function(e,t,r,i,s){var a=n(e),l=t.exec;return l===o||l===u.exec?m&&!s?{done:!0,value:h(t,r,i)}:{done:!0,value:a(r,t,i)}:{done:!1}});i(String.prototype,e,y[0]),i(u,d,y[1])}p&&l(u[d],"sham",!0)}},{"../internals/create-non-enumerable-property":145,"../internals/define-built-in":149,"../internals/fails":171,"../internals/function-uncurry-this-clause":180,"../internals/regexp-exec":256,"../internals/well-known-symbol":306,"../modules/es.regexp.exec":338}],173:[function(e,t,r){var n=e("../internals/fails");t.exports=!n(function(){return Object.isExtensible(Object.preventExtensions({}))})},{"../internals/fails":171}],174:[function(e,t,r){var n=e("../internals/function-bind-native"),i=Function.prototype,o=i.apply,s=i.call;t.exports="object"==typeof Reflect&&Reflect.apply||(n?s.bind(o):function(){return s.apply(o,arguments)})},{"../internals/function-bind-native":176}],175:[function(e,t,r){var n=e("../internals/function-uncurry-this-clause"),i=e("../internals/a-callable"),o=e("../internals/function-bind-native"),s=n(n.bind);t.exports=function(e,t){return i(e),void 0===t?e:o?s(e,t):function(){return e.apply(t,arguments)}}},{"../internals/a-callable":108,"../internals/function-bind-native":176,"../internals/function-uncurry-this-clause":180}],176:[function(e,t,r){var n=e("../internals/fails");t.exports=!n(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},{"../internals/fails":171}],177:[function(e,t,r){var n=e("../internals/function-bind-native"),i=Function.prototype.call;t.exports=n?i.bind(i):function(){return i.apply(i,arguments)}},{"../internals/function-bind-native":176}],178:[function(e,t,r){var n=e("../internals/descriptors"),i=e("../internals/has-own-property"),o=Function.prototype,s=n&&Object.getOwnPropertyDescriptor,a=i(o,"name"),l=a&&"something"===function(){}.name,c=a&&(!n||n&&s(o,"name").configurable);t.exports={EXISTS:a,PROPER:l,CONFIGURABLE:c}},{"../internals/descriptors":153,"../internals/has-own-property":189}],179:[function(e,t,r){var n=e("../internals/function-uncurry-this"),i=e("../internals/a-callable");t.exports=function(e,t,r){try{return n(i(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(o){}}},{"../internals/a-callable":108,"../internals/function-uncurry-this":181}],180:[function(e,t,r){var n=e("../internals/classof-raw"),i=e("../internals/function-uncurry-this");t.exports=function(e){if("Function"===n(e))return i(e)}},{"../internals/classof-raw":137,"../internals/function-uncurry-this":181}],181:[function(e,t,r){var n=e("../internals/function-bind-native"),i=Function.prototype,o=i.call,s=n&&i.bind.bind(o,o);t.exports=n?s:function(e){return function(){return o.apply(e,arguments)}}},{"../internals/function-bind-native":176}],182:[function(e,t,r){var n=e("../internals/global"),i=e("../internals/is-callable"),o=function(e){return i(e)?e:void 0};t.exports=function(e,t){return arguments.length<2?o(n[e]):n[e]&&n[e][t]}},{"../internals/global":188,"../internals/is-callable":203}],183:[function(e,t,r){var n=e("../internals/classof"),i=e("../internals/get-method"),o=e("../internals/is-null-or-undefined"),s=e("../internals/iterators"),a=e("../internals/well-known-symbol")("iterator");t.exports=function(e){if(!o(e))return i(e,a)||i(e,"@@iterator")||s[n(e)]}},{"../internals/classof":138,"../internals/get-method":186,"../internals/is-null-or-undefined":207,"../internals/iterators":218,"../internals/well-known-symbol":306}],184:[function(e,t,r){var n=e("../internals/function-call"),i=e("../internals/a-callable"),o=e("../internals/an-object"),s=e("../internals/try-to-string"),a=e("../internals/get-iterator-method"),l=TypeError;t.exports=function(e,t){var r=arguments.length<2?a(e):t;if(i(r))return o(n(r,e));throw new l(s(e)+" is not iterable")}},{"../internals/a-callable":108,"../internals/an-object":114,"../internals/function-call":177,"../internals/get-iterator-method":183,"../internals/try-to-string":293}],185:[function(e,t,r){var n=e("../internals/function-uncurry-this"),i=e("../internals/is-array"),o=e("../internals/is-callable"),s=e("../internals/classof-raw"),a=e("../internals/to-string"),l=n([].push);t.exports=function(e){if(o(e))return e;if(i(e)){for(var t=e.length,r=[],n=0;n<t;n++){var c=e[n];"string"==typeof c?l(r,c):"number"!=typeof c&&"Number"!==s(c)&&"String"!==s(c)||l(r,a(c))}var u=r.length,p=!0;return function(e,t){if(p)return p=!1,t;if(i(this))return t;for(var n=0;n<u;n++)if(r[n]===e)return t}}}},{"../internals/classof-raw":137,"../internals/function-uncurry-this":181,"../internals/is-array":201,"../internals/is-callable":203,"../internals/to-string":291}],186:[function(e,t,r){var n=e("../internals/a-callable"),i=e("../internals/is-null-or-undefined");t.exports=function(e,t){var r=e[t];return i(r)?void 0:n(r)}},{"../internals/a-callable":108,"../internals/is-null-or-undefined":207}],187:[function(e,t,r){var n=e("../internals/function-uncurry-this"),i=e("../internals/to-object"),o=Math.floor,s=n("".charAt),a=n("".replace),l=n("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,u=/\$([$&'`]|\d{1,2})/g;t.exports=function(e,t,r,n,p,d){var m=r+e.length,f=n.length,h=u;return void 0!==p&&(p=i(p),h=c),a(d,h,function(i,a){var c;switch(s(a,0)){case"$":return"$";case"&":return e;case"`":return l(t,0,r);case"'":return l(t,m);case"<":c=p[l(a,1,-1)];break;default:var u=+a;if(0===u)return i;if(u>f){var d=o(u/10);return 0===d?i:d<=f?void 0===n[d-1]?s(a,1):n[d-1]+s(a,1):i}c=n[u-1]}return void 0===c?"":c})}},{"../internals/function-uncurry-this":181,"../internals/to-object":285}],188:[function(e,t,r){(function(e){(function(){var r=function(e){return e&&e.Math===Math&&e};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof e&&e)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()}).call(this)}).call(this,void 0!==dR?dR:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],189:[function(e,t,r){var n=e("../internals/function-uncurry-this"),i=e("../internals/to-object"),o=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(e,t){return o(i(e),t)}},{"../internals/function-uncurry-this":181,"../internals/to-object":285}],190:[function(e,t,r){t.exports={}},{}],191:[function(e,t,r){t.exports=function(e,t){}},{}],192:[function(e,t,r){var n=e("../internals/get-built-in");t.exports=n("document","documentElement")},{"../internals/get-built-in":182}],193:[function(e,t,r){var n=e("../internals/descriptors"),i=e("../internals/fails"),o=e("../internals/document-create-element");t.exports=!n&&!i(function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a})},{"../internals/descriptors":153,"../internals/document-create-element":154,"../internals/fails":171}],194:[function(e,t,r){var n=Array,i=Math.abs,o=Math.pow,s=Math.floor,a=Math.log,l=Math.LN2,c=function(e,t,r){var c,u,p,d=n(r),m=8*r-t-1,f=(1<<m)-1,h=f>>1,y=23===t?o(2,-24)-o(2,-77):0,g=e<0||0===e&&1/e<0?1:0,b=0;for((e=i(e))!=e||e===1/0?(u=e!=e?1:0,c=f):(c=s(a(e)/l),e*(p=o(2,-c))<1&&(c--,p*=2),(e+=c+h>=1?y/p:y*o(2,1-h))*p>=2&&(c++,p/=2),c+h>=f?(u=0,c=f):c+h>=1?(u=(e*p-1)*o(2,t),c+=h):(u=e*o(2,h-1)*o(2,t),c=0));t>=8;)d[b++]=255&u,u/=256,t-=8;for(c=c<<t|u,m+=t;m>0;)d[b++]=255&c,c/=256,m-=8;return d[--b]|=128*g,d},u=function(e,t){var r,n=e.length,i=8*n-t-1,s=(1<<i)-1,a=s>>1,l=i-7,c=n-1,u=e[c--],p=127&u;for(u>>=7;l>0;)p=256*p+e[c--],l-=8;for(r=p&(1<<-l)-1,p>>=-l,l+=t;l>0;)r=256*r+e[c--],l-=8;if(0===p)p=1-a;else{if(p===s)return r?NaN:u?-1/0:1/0;r+=o(2,t),p-=a}return(u?-1:1)*r*o(2,p-t)};t.exports={pack:c,unpack:u}},{}],195:[function(e,t,r){var n=e("../internals/function-uncurry-this"),i=e("../internals/fails"),o=e("../internals/classof-raw"),s=Object,a=n("".split);t.exports=i(function(){return!s("z").propertyIsEnumerable(0)})?function(e){return"String"===o(e)?a(e,""):s(e)}:s},{"../internals/classof-raw":137,"../internals/fails":171,"../internals/function-uncurry-this":181}],196:[function(e,t,r){var n=e("../internals/is-callable"),i=e("../internals/is-object"),o=e("../internals/object-set-prototype-of");t.exports=function(e,t,r){var s,a;return o&&n(s=t.constructor)&&s!==r&&i(a=s.prototype)&&a!==r.prototype&&o(e,a),e}},{"../internals/is-callable":203,"../internals/is-object":208,"../internals/object-set-prototype-of":242}],197:[function(e,t,r){var n=e("../internals/function-uncurry-this"),i=e("../internals/is-callable"),o=e("../internals/shared-store"),s=n(Function.toString);i(o.inspectSource)||(o.inspectSource=function(e){return s(e)}),t.exports=o.inspectSource},{"../internals/function-uncurry-this":181,"../internals/is-callable":203,"../internals/shared-store":268}],198:[function(e,t,r){var n=e("../internals/export"),i=e("../internals/function-uncurry-this"),o=e("../internals/hidden-keys"),s=e("../internals/is-object"),a=e("../internals/has-own-property"),l=e("../internals/object-define-property").f,c=e("../internals/object-get-own-property-names"),u=e("../internals/object-get-own-property-names-external"),p=e("../internals/object-is-extensible"),d=e("../internals/uid"),m=e("../internals/freezing"),f=!1,h=d("meta"),y=0,g=function(e){l(e,h,{value:{objectID:"O"+y++,weakData:{}}})},b=function(e,t){if(!s(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,h)){if(!p(e))return"F";if(!t)return"E";g(e)}return e[h].objectID},v=function(e,t){if(!a(e,h)){if(!p(e))return!0;if(!t)return!1;g(e)}return e[h].weakData},x=function(e){return m&&f&&p(e)&&!a(e,h)&&g(e),e},w=function(){S.enable=function(){},f=!0;var e=c.f,t=i([].splice),r={};r[h]=1,e(r).length&&(c.f=function(r){for(var n=e(r),i=0,o=n.length;i<o;i++)if(n[i]===h){t(n,i,1);break}return n},n({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:u.f}))},S=t.exports={enable:w,fastKey:b,getWeakData:v,onFreeze:x};o[h]=!0},{"../internals/export":170,"../internals/freezing":173,"../internals/function-uncurry-this":181,"../internals/has-own-property":189,"../internals/hidden-keys":190,"../internals/is-object":208,"../internals/object-define-property":231,"../internals/object-get-own-property-names":234,"../internals/object-get-own-property-names-external":233,"../internals/object-is-extensible":237,"../internals/uid":299}],199:[function(e,t,r){var n,i,o,s=e("../internals/weak-map-basic-detection"),a=e("../internals/global"),l=e("../internals/is-object"),c=e("../internals/create-non-enumerable-property"),u=e("../internals/has-own-property"),p=e("../internals/shared-store"),d=e("../internals/shared-key"),m=e("../internals/hidden-keys"),f="Object already initialized",h=a.TypeError,y=a.WeakMap,g=function(e){return o(e)?i(e):n(e,{})},b=function(e){return function(t){var r;if(!l(t)||(r=i(t)).type!==e)throw new h("Incompatible receiver, "+e+" required");return r}};if(s||p.state){var v=p.state||(p.state=new y);v.get=v.get,v.has=v.has,v.set=v.set,n=function(e,t){if(v.has(e))throw new h(f);return t.facade=e,v.set(e,t),t},i=function(e){return v.get(e)||{}},o=function(e){return v.has(e)}}else{var x=d("state");m[x]=!0,n=function(e,t){if(u(e,x))throw new h(f);return t.facade=e,c(e,x,t),t},i=function(e){return u(e,x)?e[x]:{}},o=function(e){return u(e,x)}}t.exports={set:n,get:i,has:o,enforce:g,getterFor:b}},{"../internals/create-non-enumerable-property":145,"../internals/global":188,"../internals/has-own-property":189,"../internals/hidden-keys":190,"../internals/is-object":208,"../internals/shared-key":267,"../internals/shared-store":268,"../internals/weak-map-basic-detection":303}],200:[function(e,t,r){var n=e("../internals/well-known-symbol"),i=e("../internals/iterators"),o=n("iterator"),s=Array.prototype;t.exports=function(e){return void 0!==e&&(i.Array===e||s[o]===e)}},{"../internals/iterators":218,"../internals/well-known-symbol":306}],201:[function(e,t,r){var n=e("../internals/classof-raw");t.exports=Array.isArray||function(e){return"Array"===n(e)}},{"../internals/classof-raw":137}],202:[function(e,t,r){var n=e("../internals/classof");t.exports=function(e){var t=n(e);return"BigInt64Array"===t||"BigUint64Array"===t}},{"../internals/classof":138}],203:[function(e,t,r){var n="object"==typeof document&&document.all;t.exports=void 0===n&&void 0!==n?function(e){return"function"==typeof e||e===n}:function(e){return"function"==typeof e}},{}],204:[function(e,t,r){var n=e("../internals/function-uncurry-this"),i=e("../internals/fails"),o=e("../internals/is-callable"),s=e("../internals/classof"),a=e("../internals/get-built-in"),l=e("../internals/inspect-source"),c=function(){},u=[],p=a("Reflect","construct"),d=/^\s*(?:class|function)\b/,m=n(d.exec),f=!d.test(c),h=function(e){if(!o(e))return!1;try{return p(c,u,e),!0}catch(t){return!1}},y=function(e){if(!o(e))return!1;switch(s(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return f||!!m(d,l(e))}catch(t){return!0}};y.sham=!0,t.exports=!p||i(function(){var e;return h(h.call)||!h(Object)||!h(function(){e=!0})||e})?y:h},{"../internals/classof":138,"../internals/fails":171,"../internals/function-uncurry-this":181,"../internals/get-built-in":182,"../internals/inspect-source":197,"../internals/is-callable":203}],205:[function(e,t,r){var n=e("../internals/fails"),i=e("../internals/is-callable"),o=/#|\.prototype\./,s=function(e,t){var r=l[a(e)];return r===u||r!==c&&(i(t)?n(t):!!t)},a=s.normalize=function(e){return String(e).replace(o,".").toLowerCase()},l=s.data={},c=s.NATIVE="N",u=s.POLYFILL="P";t.exports=s},{"../internals/fails":171,"../internals/is-callable":203}],206:[function(e,t,r){var n=e("../internals/is-object"),i=Math.floor;t.exports=Number.isInteger||function(e){return!n(e)&&isFinite(e)&&i(e)===e}},{"../internals/is-object":208}],207:[function(e,t,r){t.exports=function(e){return null==e}},{}],208:[function(e,t,r){var n=e("../internals/is-callable");t.exports=function(e){return"object"==typeof e?null!==e:n(e)}},{"../internals/is-callable":203}],209:[function(e,t,r){var n=e("../internals/is-object");t.exports=function(e){return n(e)||null===e}},{"../internals/is-object":208}],210:[function(e,t,r){t.exports=!1},{}],211:[function(e,t,r){var n=e("../internals/is-object"),i=e("../internals/classof-raw"),o=e("../internals/well-known-symbol")("match");t.exports=function(e){var t;return n(e)&&(void 0!==(t=e[o])?!!t:"RegExp"===i(e))}},{"../internals/classof-raw":137,"../internals/is-object":208,"../internals/well-known-symbol":306}],212:[function(e,t,r){var n=e("../internals/get-built-in"),i=e("../internals/is-callable"),o=e("../internals/object-is-prototype-of"),s=e("../internals/use-symbol-as-uid"),a=Object;t.exports=s?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return i(t)&&o(t.prototype,a(e))}},{"../internals/get-built-in":182,"../internals/is-callable":203,"../internals/object-is-prototype-of":238,"../internals/use-symbol-as-uid":300}],213:[function(e,t,r){var n=e("../internals/function-bind-context"),i=e("../internals/function-call"),o=e("../internals/an-object"),s=e("../internals/try-to-string"),a=e("../internals/is-array-iterator-method"),l=e("../internals/length-of-array-like"),c=e("../internals/object-is-prototype-of"),u=e("../internals/get-iterator"),p=e("../internals/get-iterator-method"),d=e("../internals/iterator-close"),m=TypeError,f=function(e,t){this.stopped=e,this.result=t},h=f.prototype;t.exports=function(e,t,r){var y,g,b,v,x,w,S,N=r&&r.that,j=!(!r||!r.AS_ENTRIES),E=!(!r||!r.IS_RECORD),C=!(!r||!r.IS_ITERATOR),k=!(!r||!r.INTERRUPTED),T=n(t,N),R=function(e){return y&&d(y,"normal",e),new f(!0,e)},O=function(e){return j?(o(e),k?T(e[0],e[1],R):T(e[0],e[1])):k?T(e,R):T(e)};if(E)y=e.iterator;else if(C)y=e;else{if(!(g=p(e)))throw new m(s(e)+" is not iterable");if(a(g)){for(b=0,v=l(e);v>b;b++)if((x=O(e[b]))&&c(h,x))return x;return new f(!1)}y=u(e,g)}for(w=E?e.next:y.next;!(S=i(w,y)).done;){try{x=O(S.value)}catch(P){d(y,"throw",P)}if("object"==typeof x&&x&&c(h,x))return x}return new f(!1)}},{"../internals/an-object":114,"../internals/function-bind-context":175,"../internals/function-call":177,"../internals/get-iterator":184,"../internals/get-iterator-method":183,"../internals/is-array-iterator-method":200,"../internals/iterator-close":214,"../internals/length-of-array-like":219,"../internals/object-is-prototype-of":238,"../internals/try-to-string":293}],214:[function(e,t,r){var n=e("../internals/function-call"),i=e("../internals/an-object"),o=e("../internals/get-method");t.exports=function(e,t,r){var s,a;i(e);try{if(!(s=o(e,"return"))){if("throw"===t)throw r;return r}s=n(s,e)}catch(l){a=!0,s=l}if("throw"===t)throw r;if(a)throw s;return i(s),r}},{"../internals/an-object":114,"../internals/function-call":177,"../internals/get-method":186}],215:[function(e,t,r){var n=e("../internals/iterators-core").IteratorPrototype,i=e("../internals/object-create"),o=e("../internals/create-property-descriptor"),s=e("../internals/set-to-string-tag"),a=e("../internals/iterators"),l=function(){return this};t.exports=function(e,t,r,c){var u=t+" Iterator";return e.prototype=i(n,{next:o(+!c,r)}),s(e,u,!1,!0),a[u]=l,e}},{"../internals/create-property-descriptor":146,"../internals/iterators":218,"../internals/iterators-core":217,"../internals/object-create":229,"../internals/set-to-string-tag":266}],216:[function(e,t,r){var n=e("../internals/export"),i=e("../internals/function-call"),o=e("../internals/is-pure"),s=e("../internals/function-name"),a=e("../internals/is-callable"),l=e("../internals/iterator-create-constructor"),c=e("../internals/object-get-prototype-of"),u=e("../internals/object-set-prototype-of"),p=e("../internals/set-to-string-tag"),d=e("../internals/create-non-enumerable-property"),m=e("../internals/define-built-in"),f=e("../internals/well-known-symbol"),h=e("../internals/iterators"),y=e("../internals/iterators-core"),g=s.PROPER,b=s.CONFIGURABLE,v=y.IteratorPrototype,x=y.BUGGY_SAFARI_ITERATORS,w=f("iterator"),S="keys",N="values",j="entries",E=function(){return this};t.exports=function(e,t,r,s,f,y,C){l(r,t,s);var k,T,R,O=function(e){if(e===f&&M)return M;if(!x&&e&&e in A)return A[e];switch(e){case S:case N:case j:return function(){return new r(this,e)}}return function(){return new r(this)}},P=t+" Iterator",_=!1,A=e.prototype,I=A[w]||A["@@iterator"]||f&&A[f],M=!x&&I||O(f),D="Array"===t&&A.entries||I;if(D&&(k=c(D.call(new e)))!==Object.prototype&&k.next&&(o||c(k)===v||(u?u(k,v):a(k[w])||m(k,w,E)),p(k,P,!0,!0),o&&(h[P]=E)),g&&f===N&&I&&I.name!==N&&(!o&&b?d(A,"name",N):(_=!0,M=function(){return i(I,this)})),f)if(T={values:O(N),keys:y?M:O(S),entries:O(j)},C)for(R in T)(x||_||!(R in A))&&m(A,R,T[R]);else n({target:t,proto:!0,forced:x||_},T);return o&&!C||A[w]===M||m(A,w,M,{name:f}),h[t]=M,T}},{"../internals/create-non-enumerable-property":145,"../internals/define-built-in":149,"../internals/export":170,"../internals/function-call":177,"../internals/function-name":178,"../internals/is-callable":203,"../internals/is-pure":210,"../internals/iterator-create-constructor":215,"../internals/iterators":218,"../internals/iterators-core":217,"../internals/object-get-prototype-of":236,"../internals/object-set-prototype-of":242,"../internals/set-to-string-tag":266,"../internals/well-known-symbol":306}],217:[function(e,t,r){var n,i,o,s=e("../internals/fails"),a=e("../internals/is-callable"),l=e("../internals/is-object"),c=e("../internals/object-create"),u=e("../internals/object-get-prototype-of"),p=e("../internals/define-built-in"),d=e("../internals/well-known-symbol"),m=e("../internals/is-pure"),f=d("iterator"),h=!1;[].keys&&("next"in(o=[].keys())?(i=u(u(o)))!==Object.prototype&&(n=i):h=!0),!l(n)||s(function(){var e={};return n[f].call(e)!==e})?n={}:m&&(n=c(n)),a(n[f])||p(n,f,function(){return this}),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:h}},{"../internals/define-built-in":149,"../internals/fails":171,"../internals/is-callable":203,"../internals/is-object":208,"../internals/is-pure":210,"../internals/object-create":229,"../internals/object-get-prototype-of":236,"../internals/well-known-symbol":306}],218:[function(e,t,r){arguments[4][190][0].apply(r,arguments)},{dup:190}],219:[function(e,t,r){var n=e("../internals/to-length");t.exports=function(e){return n(e.length)}},{"../internals/to-length":284}],220:[function(e,t,r){var n=e("../internals/function-uncurry-this"),i=e("../internals/fails"),o=e("../internals/is-callable"),s=e("../internals/has-own-property"),a=e("../internals/descriptors"),l=e("../internals/function-name").CONFIGURABLE,c=e("../internals/inspect-source"),u=e("../internals/internal-state"),p=u.enforce,d=u.get,m=String,f=Object.defineProperty,h=n("".slice),y=n("".replace),g=n([].join),b=a&&!i(function(){return 8!==f(function(){},"length",{value:8}).length}),v=String(String).split("String"),x=t.exports=function(e,t,r){"Symbol("===h(m(t),0,7)&&(t="["+y(m(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!s(e,"name")||l&&e.name!==t)&&(a?f(e,"name",{value:t,configurable:!0}):e.name=t),b&&r&&s(r,"arity")&&e.length!==r.arity&&f(e,"length",{value:r.arity});try{r&&s(r,"constructor")&&r.constructor?a&&f(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(i){}var n=p(e);return s(n,"source")||(n.source=g(v,"string"==typeof t?t:"")),e};Function.prototype.toString=x(function(){return o(this)&&d(this).source||c(this)},"toString")},{"../internals/descriptors":153,"../internals/fails":171,"../internals/function-name":178,"../internals/function-uncurry-this":181,"../internals/has-own-property":189,"../internals/inspect-source":197,"../internals/internal-state":199,"../internals/is-callable":203}],221:[function(e,t,r){var n=e("../internals/math-sign"),i=Math.abs,o=2220446049250313e-31,s=1/o,a=function(e){return e+s-s};t.exports=function(e,t,r,s){var l=+e,c=i(l),u=n(l);if(c<s)return u*a(c/s/t)*s*t;var p=(1+t/o)*c,d=p-(p-c);return d>r||d!=d?u*(1/0):u*d}},{"../internals/math-sign":223}],222:[function(e,t,r){var n=e("../internals/math-float-round"),i=1.1920928955078125e-7,o=34028234663852886e22,s=11754943508222875e-54;t.exports=Math.fround||function(e){return n(e,i,o,s)}},{"../internals/math-float-round":221}],223:[function(e,t,r){t.exports=Math.sign||function(e){var t=+e;return 0===t||t!=t?t:t<0?-1:1}},{}],224:[function(e,t,r){var n=Math.ceil,i=Math.floor;t.exports=Math.trunc||function(e){var t=+e;return(t>0?i:n)(t)}},{}],225:[function(e,t,r){var n,i,o,s,a,l=e("../internals/global"),c=e("../internals/safe-get-built-in"),u=e("../internals/function-bind-context"),p=e("../internals/task").set,d=e("../internals/queue"),m=e("../internals/engine-is-ios"),f=e("../internals/engine-is-ios-pebble"),h=e("../internals/engine-is-webos-webkit"),y=e("../internals/engine-is-node"),g=l.MutationObserver||l.WebKitMutationObserver,b=l.document,v=l.process,x=l.Promise,w=c("queueMicrotask");if(!w){var S=new d,N=function(){var e,t;for(y&&(e=v.domain)&&e.exit();t=S.get();)try{t()}catch(r){throw S.head&&n(),r}e&&e.enter()};m||y||h||!g||!b?!f&&x&&x.resolve?((s=x.resolve(void 0)).constructor=x,a=u(s.then,s),n=function(){a(N)}):y?n=function(){v.nextTick(N)}:(p=u(p,l),n=function(){p(N)}):(i=!0,o=b.createTextNode(""),new g(N).observe(o,{characterData:!0}),n=function(){o.data=i=!i}),w=function(e){S.head||n(),S.add(e)}}t.exports=w},{"../internals/engine-is-ios":163,"../internals/engine-is-ios-pebble":162,"../internals/engine-is-node":164,"../internals/engine-is-webos-webkit":165,"../internals/function-bind-context":175,"../internals/global":188,"../internals/queue":254,"../internals/safe-get-built-in":263,"../internals/task":277}],226:[function(e,t,r){var n=e("../internals/a-callable"),i=TypeError,o=function(e){var t,r;this.promise=new e(function(e,n){if(void 0!==t||void 0!==r)throw new i("Bad Promise constructor");t=e,r=n}),this.resolve=n(t),this.reject=n(r)};t.exports.f=function(e){return new o(e)}},{"../internals/a-callable":108}],227:[function(e,t,r){var n=e("../internals/is-regexp"),i=TypeError;t.exports=function(e){if(n(e))throw new i("The method doesn't accept regular expressions");return e}},{"../internals/is-regexp":211}],228:[function(e,t,r){var n=e("../internals/descriptors"),i=e("../internals/function-uncurry-this"),o=e("../internals/function-call"),s=e("../internals/fails"),a=e("../internals/object-keys"),l=e("../internals/object-get-own-property-symbols"),c=e("../internals/object-property-is-enumerable"),u=e("../internals/to-object"),p=e("../internals/indexed-object"),d=Object.assign,m=Object.defineProperty,f=i([].concat);t.exports=!d||s(function(){if(n&&1!==d({b:1},d(m({},"a",{enumerable:!0,get:function(){m(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol("assign detection"),i="abcdefghijklmnopqrst";return e[r]=7,i.split("").forEach(function(e){t[e]=e}),7!==d({},e)[r]||a(d({},t)).join("")!==i})?function(e,t){for(var r=u(e),i=arguments.length,s=1,d=l.f,m=c.f;i>s;)for(var h,y=p(arguments[s++]),g=d?f(a(y),d(y)):a(y),b=g.length,v=0;b>v;)h=g[v++],n&&!o(m,y,h)||(r[h]=y[h]);return r}:d},{"../internals/descriptors":153,"../internals/fails":171,"../internals/function-call":177,"../internals/function-uncurry-this":181,"../internals/indexed-object":195,"../internals/object-get-own-property-symbols":235,"../internals/object-keys":240,"../internals/object-property-is-enumerable":241,"../internals/to-object":285}],229:[function(e,t,r){var n,i=e("../internals/an-object"),o=e("../internals/object-define-properties"),s=e("../internals/enum-bug-keys"),a=e("../internals/hidden-keys"),l=e("../internals/html"),c=e("../internals/document-create-element"),u=e("../internals/shared-key"),p=">",d="<",m="prototype",f="script",h=u("IE_PROTO"),y=function(){},g=function(e){return d+f+p+e+d+"/"+f+p},b=function(e){e.write(g("")),e.close();var t=e.parentWindow.Object;return e=null,t},v=function(){var e,t=c("iframe"),r="java"+f+":";return t.style.display="none",l.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(g("document.F=Object")),e.close(),e.F},x=function(){try{n=new ActiveXObject("htmlfile")}catch(t){}x="undefined"!=typeof document?document.domain&&n?b(n):v():b(n);for(var e=s.length;e--;)delete x[m][s[e]];return x()};a[h]=!0,t.exports=Object.create||function(e,t){var r;return null!==e?(y[m]=i(e),r=new y,y[m]=null,r[h]=e):r=x(),void 0===t?r:o.f(r,t)}},{"../internals/an-object":114,"../internals/document-create-element":154,"../internals/enum-bug-keys":169,"../internals/hidden-keys":190,"../internals/html":192,"../internals/object-define-properties":230,"../internals/shared-key":267}],230:[function(e,t,r){var n=e("../internals/descriptors"),i=e("../internals/v8-prototype-define-bug"),o=e("../internals/object-define-property"),s=e("../internals/an-object"),a=e("../internals/to-indexed-object"),l=e("../internals/object-keys");r.f=n&&!i?Object.defineProperties:function(e,t){s(e);for(var r,n=a(t),i=l(t),c=i.length,u=0;c>u;)o.f(e,r=i[u++],n[r]);return e}},{"../internals/an-object":114,"../internals/descriptors":153,"../internals/object-define-property":231,"../internals/object-keys":240,"../internals/to-indexed-object":282,"../internals/v8-prototype-define-bug":301}],231:[function(e,t,r){var n=e("../internals/descriptors"),i=e("../internals/ie8-dom-define"),o=e("../internals/v8-prototype-define-bug"),s=e("../internals/an-object"),a=e("../internals/to-property-key"),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,p="enumerable",d="configurable",m="writable";r.f=n?o?function(e,t,r){if(s(e),t=a(t),s(r),"function"==typeof e&&"prototype"===t&&"value"in r&&m in r&&!r[m]){var n=u(e,t);n&&n[m]&&(e[t]=r.value,r={configurable:d in r?r[d]:n[d],enumerable:p in r?r[p]:n[p],writable:!1})}return c(e,t,r)}:c:function(e,t,r){if(s(e),t=a(t),s(r),i)try{return c(e,t,r)}catch(n){}if("get"in r||"set"in r)throw new l("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},{"../internals/an-object":114,"../internals/descriptors":153,"../internals/ie8-dom-define":193,"../internals/to-property-key":289,"../internals/v8-prototype-define-bug":301}],232:[function(e,t,r){var n=e("../internals/descriptors"),i=e("../internals/function-call"),o=e("../internals/object-property-is-enumerable"),s=e("../internals/create-property-descriptor"),a=e("../internals/to-indexed-object"),l=e("../internals/to-property-key"),c=e("../internals/has-own-property"),u=e("../internals/ie8-dom-define"),p=Object.getOwnPropertyDescriptor;r.f=n?p:function(e,t){if(e=a(e),t=l(t),u)try{return p(e,t)}catch(r){}if(c(e,t))return s(!i(o.f,e,t),e[t])}},{"../internals/create-property-descriptor":146,"../internals/descriptors":153,"../internals/function-call":177,"../internals/has-own-property":189,"../internals/ie8-dom-define":193,"../internals/object-property-is-enumerable":241,"../internals/to-indexed-object":282,"../internals/to-property-key":289}],233:[function(e,t,r){var n=e("../internals/classof-raw"),i=e("../internals/to-indexed-object"),o=e("../internals/object-get-own-property-names").f,s=e("../internals/array-slice"),a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],l=function(e){try{return o(e)}catch(t){return s(a)}};t.exports.f=function(e){return a&&"Window"===n(e)?l(e):o(i(e))}},{"../internals/array-slice":131,"../internals/classof-raw":137,"../internals/object-get-own-property-names":234,"../internals/to-indexed-object":282}],234:[function(e,t,r){var n=e("../internals/object-keys-internal"),i=e("../internals/enum-bug-keys").concat("length","prototype");r.f=Object.getOwnPropertyNames||function(e){return n(e,i)}},{"../internals/enum-bug-keys":169,"../internals/object-keys-internal":239}],235:[function(e,t,r){r.f=Object.getOwnPropertySymbols},{}],236:[function(e,t,r){var n=e("../internals/has-own-property"),i=e("../internals/is-callable"),o=e("../internals/to-object"),s=e("../internals/shared-key"),a=e("../internals/correct-prototype-getter"),l=s("IE_PROTO"),c=Object,u=c.prototype;t.exports=a?c.getPrototypeOf:function(e){var t=o(e);if(n(t,l))return t[l];var r=t.constructor;return i(r)&&t instanceof r?r.prototype:t instanceof c?u:null}},{"../internals/correct-prototype-getter":143,"../internals/has-own-property":189,"../internals/is-callable":203,"../internals/shared-key":267,"../internals/to-object":285}],237:[function(e,t,r){var n=e("../internals/fails"),i=e("../internals/is-object"),o=e("../internals/classof-raw"),s=e("../internals/array-buffer-non-extensible"),a=Object.isExtensible,l=n(function(){});t.exports=l||s?function(e){return!!i(e)&&(!s||"ArrayBuffer"!==o(e))&&(!a||a(e))}:a},{"../internals/array-buffer-non-extensible":116,"../internals/classof-raw":137,"../internals/fails":171,"../internals/is-object":208}],238:[function(e,t,r){var n=e("../internals/function-uncurry-this");t.exports=n({}.isPrototypeOf)},{"../internals/function-uncurry-this":181}],239:[function(e,t,r){var n=e("../internals/function-uncurry-this"),i=e("../internals/has-own-property"),o=e("../internals/to-indexed-object"),s=e("../internals/array-includes").indexOf,a=e("../internals/hidden-keys"),l=n([].push);t.exports=function(e,t){var r,n=o(e),c=0,u=[];for(r in n)!i(a,r)&&i(n,r)&&l(u,r);for(;t.length>c;)i(n,r=t[c++])&&(~s(u,r)||l(u,r));return u}},{"../internals/array-includes":124,"../internals/function-uncurry-this":181,"../internals/has-own-property":189,"../internals/hidden-keys":190,"../internals/to-indexed-object":282}],240:[function(e,t,r){var n=e("../internals/object-keys-internal"),i=e("../internals/enum-bug-keys");t.exports=Object.keys||function(e){return n(e,i)}},{"../internals/enum-bug-keys":169,"../internals/object-keys-internal":239}],241:[function(e,t,r){var n={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!n.call({1:2},1);r.f=o?function(e){var t=i(this,e);return!!t&&t.enumerable}:n},{}],242:[function(e,t,r){var n=e("../internals/function-uncurry-this-accessor"),i=e("../internals/an-object"),o=e("../internals/a-possible-prototype");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=n(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(s){}return function(r,n){return i(r),o(n),t?e(r,n):r.__proto__=n,r}}():void 0)},{"../internals/a-possible-prototype":110,"../internals/an-object":114,"../internals/function-uncurry-this-accessor":179}],243:[function(e,t,r){var n=e("../internals/descriptors"),i=e("../internals/fails"),o=e("../internals/function-uncurry-this"),s=e("../internals/object-get-prototype-of"),a=e("../internals/object-keys"),l=e("../internals/to-indexed-object"),c=o(e("../internals/object-property-is-enumerable").f),u=o([].push),p=n&&i(function(){var e=Object.create(null);return e[2]=2,!c(e,2)}),d=function(e){return function(t){for(var r,i=l(t),o=a(i),d=p&&null===s(i),m=o.length,f=0,h=[];m>f;)r=o[f++],n&&!(d?r in i:c(i,r))||u(h,e?[r,i[r]]:i[r]);return h}};t.exports={entries:d(!0),values:d(!1)}},{"../internals/descriptors":153,"../internals/fails":171,"../internals/function-uncurry-this":181,"../internals/object-get-prototype-of":236,"../internals/object-keys":240,"../internals/object-property-is-enumerable":241,"../internals/to-indexed-object":282}],244:[function(e,t,r){var n=e("../internals/to-string-tag-support"),i=e("../internals/classof");t.exports=n?{}.toString:function(){return"[object "+i(this)+"]"}},{"../internals/classof":138,"../internals/to-string-tag-support":290}],245:[function(e,t,r){var n=e("../internals/function-call"),i=e("../internals/is-callable"),o=e("../internals/is-object"),s=TypeError;t.exports=function(e,t){var r,a;if("string"===t&&i(r=e.toString)&&!o(a=n(r,e)))return a;if(i(r=e.valueOf)&&!o(a=n(r,e)))return a;if("string"!==t&&i(r=e.toString)&&!o(a=n(r,e)))return a;throw new s("Can't convert object to primitive value")}},{"../internals/function-call":177,"../internals/is-callable":203,"../internals/is-object":208}],246:[function(e,t,r){var n=e("../internals/get-built-in"),i=e("../internals/function-uncurry-this"),o=e("../internals/object-get-own-property-names"),s=e("../internals/object-get-own-property-symbols"),a=e("../internals/an-object"),l=i([].concat);t.exports=n("Reflect","ownKeys")||function(e){var t=o.f(a(e)),r=s.f;return r?l(t,r(e)):t}},{"../internals/an-object":114,"../internals/function-uncurry-this":181,"../internals/get-built-in":182,"../internals/object-get-own-property-names":234,"../internals/object-get-own-property-symbols":235}],247:[function(e,t,r){var n=e("../internals/global");t.exports=n},{"../internals/global":188}],248:[function(e,t,r){t.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},{}],249:[function(e,t,r){var n=e("../internals/global"),i=e("../internals/promise-native-constructor"),o=e("../internals/is-callable"),s=e("../internals/is-forced"),a=e("../internals/inspect-source"),l=e("../internals/well-known-symbol"),c=e("../internals/engine-is-browser"),u=e("../internals/engine-is-deno"),p=e("../internals/is-pure"),d=e("../internals/engine-v8-version"),m=i&&i.prototype,f=l("species"),h=!1,y=o(n.PromiseRejectionEvent),g=s("Promise",function(){var e=a(i),t=e!==String(i);if(!t&&66===d)return!0;if(p&&(!m.catch||!m.finally))return!0;if(!d||d<51||!/native code/.test(e)){var r=new i(function(e){e(1)}),n=function(e){e(function(){},function(){})};if((r.constructor={})[f]=n,!(h=r.then(function(){})instanceof n))return!0}return!t&&(c||u)&&!y});t.exports={CONSTRUCTOR:g,REJECTION_EVENT:y,SUBCLASSING:h}},{"../internals/engine-is-browser":159,"../internals/engine-is-deno":160,"../internals/engine-v8-version":167,"../internals/global":188,"../internals/inspect-source":197,"../internals/is-callable":203,"../internals/is-forced":205,"../internals/is-pure":210,"../internals/promise-native-constructor":250,"../internals/well-known-symbol":306}],250:[function(e,t,r){var n=e("../internals/global");t.exports=n.Promise},{"../internals/global":188}],251:[function(e,t,r){var n=e("../internals/an-object"),i=e("../internals/is-object"),o=e("../internals/new-promise-capability");t.exports=function(e,t){if(n(e),i(t)&&t.constructor===e)return t;var r=o.f(e);return(0,r.resolve)(t),r.promise}},{"../internals/an-object":114,"../internals/is-object":208,"../internals/new-promise-capability":226}],252:[function(e,t,r){var n=e("../internals/promise-native-constructor"),i=e("../internals/check-correctness-of-iteration"),o=e("../internals/promise-constructor-detection").CONSTRUCTOR;t.exports=o||!i(function(e){n.all(e).then(void 0,function(){})})},{"../internals/check-correctness-of-iteration":136,"../internals/promise-constructor-detection":249,"../internals/promise-native-constructor":250}],253:[function(e,t,r){var n=e("../internals/object-define-property").f;t.exports=function(e,t,r){r in e||n(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})}},{"../internals/object-define-property":231}],254:[function(e,t,r){var n=function(){this.head=null,this.tail=null};n.prototype={add:function(e){var t={item:e,next:null},r=this.tail;r?r.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},t.exports=n},{}],255:[function(e,t,r){var n=e("../internals/function-call"),i=e("../internals/an-object"),o=e("../internals/is-callable"),s=e("../internals/classof-raw"),a=e("../internals/regexp-exec"),l=TypeError;t.exports=function(e,t){var r=e.exec;if(o(r)){var c=n(r,e,t);return null!==c&&i(c),c}if("RegExp"===s(e))return n(a,e,t);throw new l("RegExp#exec called on incompatible receiver")}},{"../internals/an-object":114,"../internals/classof-raw":137,"../internals/function-call":177,"../internals/is-callable":203,"../internals/regexp-exec":256}],256:[function(e,t,r){var n,i,o=e("../internals/function-call"),s=e("../internals/function-uncurry-this"),a=e("../internals/to-string"),l=e("../internals/regexp-flags"),c=e("../internals/regexp-sticky-helpers"),u=e("../internals/shared"),p=e("../internals/object-create"),d=e("../internals/internal-state").get,m=e("../internals/regexp-unsupported-dot-all"),f=e("../internals/regexp-unsupported-ncg"),h=u("native-string-replace",String.prototype.replace),y=RegExp.prototype.exec,g=y,b=s("".charAt),v=s("".indexOf),x=s("".replace),w=s("".slice),S=(i=/b*/g,o(y,n=/a/,"a"),o(y,i,"a"),0!==n.lastIndex||0!==i.lastIndex),N=c.BROKEN_CARET,j=void 0!==/()??/.exec("")[1];(S||j||N||m||f)&&(g=function(e){var t,r,n,i,s,c,u,m=this,f=d(m),E=a(e),C=f.raw;if(C)return C.lastIndex=m.lastIndex,t=o(g,C,E),m.lastIndex=C.lastIndex,t;var k=f.groups,T=N&&m.sticky,R=o(l,m),O=m.source,P=0,_=E;if(T&&(R=x(R,"y",""),-1===v(R,"g")&&(R+="g"),_=w(E,m.lastIndex),m.lastIndex>0&&(!m.multiline||m.multiline&&"\n"!==b(E,m.lastIndex-1))&&(O="(?: "+O+")",_=" "+_,P++),r=new RegExp("^(?:"+O+")",R)),j&&(r=new RegExp("^"+O+"$(?!\\s)",R)),S&&(n=m.lastIndex),i=o(y,T?r:m,_),T?i?(i.input=w(i.input,P),i[0]=w(i[0],P),i.index=m.lastIndex,m.lastIndex+=i[0].length):m.lastIndex=0:S&&i&&(m.lastIndex=m.global?i.index+i[0].length:n),j&&i&&i.length>1&&o(h,i[0],r,function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(i[s]=void 0)}),i&&k)for(i.groups=c=p(null),s=0;s<k.length;s++)c[(u=k[s])[0]]=i[u[1]];return i}),t.exports=g},{"../internals/function-call":177,"../internals/function-uncurry-this":181,"../internals/internal-state":199,"../internals/object-create":229,"../internals/regexp-flags":257,"../internals/regexp-sticky-helpers":259,"../internals/regexp-unsupported-dot-all":260,"../internals/regexp-unsupported-ncg":261,"../internals/shared":269,"../internals/to-string":291}],257:[function(e,t,r){var n=e("../internals/an-object");t.exports=function(){var e=n(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},{"../internals/an-object":114}],258:[function(e,t,r){var n=e("../internals/function-call"),i=e("../internals/has-own-property"),o=e("../internals/object-is-prototype-of"),s=e("../internals/regexp-flags"),a=RegExp.prototype;t.exports=function(e){var t=e.flags;return void 0!==t||"flags"in a||i(e,"flags")||!o(a,e)?t:n(s,e)}},{"../internals/function-call":177,"../internals/has-own-property":189,"../internals/object-is-prototype-of":238,"../internals/regexp-flags":257}],259:[function(e,t,r){var n=e("../internals/fails"),i=e("../internals/global").RegExp,o=n(function(){var e=i("a","y");return e.lastIndex=2,null!==e.exec("abcd")}),s=o||n(function(){return!i("a","y").sticky}),a=o||n(function(){var e=i("^r","gy");return e.lastIndex=2,null!==e.exec("str")});t.exports={BROKEN_CARET:a,MISSED_STICKY:s,UNSUPPORTED_Y:o}},{"../internals/fails":171,"../internals/global":188}],260:[function(e,t,r){var n=e("../internals/fails"),i=e("../internals/global").RegExp;t.exports=n(function(){var e=i(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)})},{"../internals/fails":171,"../internals/global":188}],261:[function(e,t,r){var n=e("../internals/fails"),i=e("../internals/global").RegExp;t.exports=n(function(){var e=i("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})},{"../internals/fails":171,"../internals/global":188}],262:[function(e,t,r){var n=e("../internals/is-null-or-undefined"),i=TypeError;t.exports=function(e){if(n(e))throw new i("Can't call method on "+e);return e}},{"../internals/is-null-or-undefined":207}],263:[function(e,t,r){var n=e("../internals/global"),i=e("../internals/descriptors"),o=Object.getOwnPropertyDescriptor;t.exports=function(e){if(!i)return n[e];var t=o(n,e);return t&&t.value}},{"../internals/descriptors":153,"../internals/global":188}],264:[function(e,t,r){t.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},{}],265:[function(e,t,r){var n=e("../internals/get-built-in"),i=e("../internals/define-built-in-accessor"),o=e("../internals/well-known-symbol"),s=e("../internals/descriptors"),a=o("species");t.exports=function(e){var t=n(e);s&&t&&!t[a]&&i(t,a,{configurable:!0,get:function(){return this}})}},{"../internals/define-built-in-accessor":148,"../internals/descriptors":153,"../internals/get-built-in":182,"../internals/well-known-symbol":306}],266:[function(e,t,r){var n=e("../internals/object-define-property").f,i=e("../internals/has-own-property"),o=e("../internals/well-known-symbol")("toStringTag");t.exports=function(e,t,r){e&&!r&&(e=e.prototype),e&&!i(e,o)&&n(e,o,{configurable:!0,value:t})}},{"../internals/has-own-property":189,"../internals/object-define-property":231,"../internals/well-known-symbol":306}],267:[function(e,t,r){var n=e("../internals/shared"),i=e("../internals/uid"),o=n("keys");t.exports=function(e){return o[e]||(o[e]=i(e))}},{"../internals/shared":269,"../internals/uid":299}],268:[function(e,t,r){var n=e("../internals/global"),i=e("../internals/define-global-property"),o="__core-js_shared__",s=n[o]||i(o,{});t.exports=s},{"../internals/define-global-property":151,"../internals/global":188}],269:[function(e,t,r){var n=e("../internals/is-pure"),i=e("../internals/shared-store");(t.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.35.0",mode:n?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.35.0/LICENSE",source:"https://github.com/zloirock/core-js"})},{"../internals/is-pure":210,"../internals/shared-store":268}],270:[function(e,t,r){var n=e("../internals/an-object"),i=e("../internals/a-constructor"),o=e("../internals/is-null-or-undefined"),s=e("../internals/well-known-symbol")("species");t.exports=function(e,t){var r,a=n(e).constructor;return void 0===a||o(r=n(a)[s])?t:i(r)}},{"../internals/a-constructor":109,"../internals/an-object":114,"../internals/is-null-or-undefined":207,"../internals/well-known-symbol":306}],271:[function(e,t,r){var n=e("../internals/function-uncurry-this"),i=e("../internals/to-integer-or-infinity"),o=e("../internals/to-string"),s=e("../internals/require-object-coercible"),a=n("".charAt),l=n("".charCodeAt),c=n("".slice),u=function(e){return function(t,r){var n,u,p=o(s(t)),d=i(r),m=p.length;return d<0||d>=m?e?"":void 0:(n=l(p,d))<55296||n>56319||d+1===m||(u=l(p,d+1))<56320||u>57343?e?a(p,d):n:e?c(p,d,d+2):u-56320+(n-55296<<10)+65536}};t.exports={codeAt:u(!1),charAt:u(!0)}},{"../internals/function-uncurry-this":181,"../internals/require-object-coercible":262,"../internals/to-integer-or-infinity":283,"../internals/to-string":291}],272:[function(e,t,r){var n=e("../internals/function-name").PROPER,i=e("../internals/fails"),o=e("../internals/whitespaces"),s="
";t.exports=function(e){return i(function(){return!!o[e]()||s[e]()!==s||n&&o[e].name!==e})}},{"../internals/fails":171,"../internals/function-name":178,"../internals/whitespaces":307}],273:[function(e,t,r){var n=e("../internals/function-uncurry-this"),i=e("../internals/require-object-coercible"),o=e("../internals/to-string"),s=e("../internals/whitespaces"),a=n("".replace),l=RegExp("^["+s+"]+"),c=RegExp("(^|[^"+s+"])["+s+"]+$"),u=function(e){return function(t){var r=o(i(t));return 1&e&&(r=a(r,l,"")),2&e&&(r=a(r,c,"$1")),r}};t.exports={start:u(1),end:u(2),trim:u(3)}},{"../internals/function-uncurry-this":181,"../internals/require-object-coercible":262,"../internals/to-string":291,"../internals/whitespaces":307}],274:[function(e,t,r){var n=e("../internals/engine-v8-version"),i=e("../internals/fails"),o=e("../internals/global").String;t.exports=!!Object.getOwnPropertySymbols&&!i(function(){var e=Symbol("symbol detection");return!o(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41})},{"../internals/engine-v8-version":167,"../internals/fails":171,"../internals/global":188}],275:[function(e,t,r){var n=e("../internals/function-call"),i=e("../internals/get-built-in"),o=e("../internals/well-known-symbol"),s=e("../internals/define-built-in");t.exports=function(){var e=i("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,a=o("toPrimitive");t&&!t[a]&&s(t,a,function(e){return n(r,this)},{arity:1})}},{"../internals/define-built-in":149,"../internals/function-call":177,"../internals/get-built-in":182,"../internals/well-known-symbol":306}],276:[function(e,t,r){var n=e("../internals/symbol-constructor-detection");t.exports=n&&!!Symbol.for&&!!Symbol.keyFor},{"../internals/symbol-constructor-detection":274}],277:[function(e,t,r){var n,i,o,s,a=e("../internals/global"),l=e("../internals/function-apply"),c=e("../internals/function-bind-context"),u=e("../internals/is-callable"),p=e("../internals/has-own-property"),d=e("../internals/fails"),m=e("../internals/html"),f=e("../internals/array-slice"),h=e("../internals/document-create-element"),y=e("../internals/validate-arguments-length"),g=e("../internals/engine-is-ios"),b=e("../internals/engine-is-node"),v=a.setImmediate,x=a.clearImmediate,w=a.process,S=a.Dispatch,N=a.Function,j=a.MessageChannel,E=a.String,C=0,k={},T="onreadystatechange";d(function(){n=a.location});var R=function(e){if(p(k,e)){var t=k[e];delete k[e],t()}},O=function(e){return function(){R(e)}},P=function(e){R(e.data)},_=function(e){a.postMessage(E(e),n.protocol+"//"+n.host)};v&&x||(v=function(e){y(arguments.length,1);var t=u(e)?e:N(e),r=f(arguments,1);return k[++C]=function(){l(t,void 0,r)},i(C),C},x=function(e){delete k[e]},b?i=function(e){w.nextTick(O(e))}:S&&S.now?i=function(e){S.now(O(e))}:j&&!g?(s=(o=new j).port2,o.port1.onmessage=P,i=c(s.postMessage,s)):a.addEventListener&&u(a.postMessage)&&!a.importScripts&&n&&"file:"!==n.protocol&&!d(_)?(i=_,a.addEventListener("message",P,!1)):i=T in h("script")?function(e){m.appendChild(h("script"))[T]=function(){m.removeChild(this),R(e)}}:function(e){setTimeout(O(e),0)}),t.exports={set:v,clear:x}},{"../internals/array-slice":131,"../internals/document-create-element":154,"../internals/engine-is-ios":163,"../internals/engine-is-node":164,"../internals/fails":171,"../internals/function-apply":174,"../internals/function-bind-context":175,"../internals/global":188,"../internals/has-own-property":189,"../internals/html":192,"../internals/is-callable":203,"../internals/validate-arguments-length":302}],278:[function(e,t,r){var n=e("../internals/function-uncurry-this");t.exports=n(1..valueOf)},{"../internals/function-uncurry-this":181}],279:[function(e,t,r){var n=e("../internals/to-integer-or-infinity"),i=Math.max,o=Math.min;t.exports=function(e,t){var r=n(e);return r<0?i(r+t,0):o(r,t)}},{"../internals/to-integer-or-infinity":283}],280:[function(e,t,r){var n=e("../internals/to-primitive"),i=TypeError;t.exports=function(e){var t=n(e,"number");if("number"==typeof t)throw new i("Can't convert number to bigint");return BigInt(t)}},{"../internals/to-primitive":288}],281:[function(e,t,r){var n=e("../internals/to-integer-or-infinity"),i=e("../internals/to-length"),o=RangeError;t.exports=function(e){if(void 0===e)return 0;var t=n(e),r=i(t);if(t!==r)throw new o("Wrong length or index");return r}},{"../internals/to-integer-or-infinity":283,"../internals/to-length":284}],282:[function(e,t,r){var n=e("../internals/indexed-object"),i=e("../internals/require-object-coercible");t.exports=function(e){return n(i(e))}},{"../internals/indexed-object":195,"../internals/require-object-coercible":262}],283:[function(e,t,r){var n=e("../internals/math-trunc");t.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},{"../internals/math-trunc":224}],284:[function(e,t,r){var n=e("../internals/to-integer-or-infinity"),i=Math.min;t.exports=function(e){return e>0?i(n(e),9007199254740991):0}},{"../internals/to-integer-or-infinity":283}],285:[function(e,t,r){var n=e("../internals/require-object-coercible"),i=Object;t.exports=function(e){return i(n(e))}},{"../internals/require-object-coercible":262}],286:[function(e,t,r){var n=e("../internals/to-positive-integer"),i=RangeError;t.exports=function(e,t){var r=n(e);if(r%t)throw new i("Wrong offset");return r}},{"../internals/to-positive-integer":287}],287:[function(e,t,r){var n=e("../internals/to-integer-or-infinity"),i=RangeError;t.exports=function(e){var t=n(e);if(t<0)throw new i("The argument can't be less than 0");return t}},{"../internals/to-integer-or-infinity":283}],288:[function(e,t,r){var n=e("../internals/function-call"),i=e("../internals/is-object"),o=e("../internals/is-symbol"),s=e("../internals/get-method"),a=e("../internals/ordinary-to-primitive"),l=e("../internals/well-known-symbol"),c=TypeError,u=l("toPrimitive");t.exports=function(e,t){if(!i(e)||o(e))return e;var r,l=s(e,u);if(l){if(void 0===t&&(t="default"),r=n(l,e,t),!i(r)||o(r))return r;throw new c("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},{"../internals/function-call":177,"../internals/get-method":186,"../internals/is-object":208,"../internals/is-symbol":212,"../internals/ordinary-to-primitive":245,"../internals/well-known-symbol":306}],289:[function(e,t,r){var n=e("../internals/to-primitive"),i=e("../internals/is-symbol");t.exports=function(e){var t=n(e,"string");return i(t)?t:t+""}},{"../internals/is-symbol":212,"../internals/to-primitive":288}],290:[function(e,t,r){var n={};n[e("../internals/well-known-symbol")("toStringTag")]="z",t.exports="[object z]"===String(n)},{"../internals/well-known-symbol":306}],291:[function(e,t,r){var n=e("../internals/classof"),i=String;t.exports=function(e){if("Symbol"===n(e))throw new TypeError("Cannot convert a Symbol value to a string");return i(e)}},{"../internals/classof":138}],292:[function(e,t,r){var n=Math.round;t.exports=function(e){var t=n(e);return t<0?0:t>255?255:255&t}},{}],293:[function(e,t,r){var n=String;t.exports=function(e){try{return n(e)}catch(t){return"Object"}}},{}],294:[function(e,t,r){var n=e("../internals/export"),i=e("../internals/global"),o=e("../internals/function-call"),s=e("../internals/descriptors"),a=e("../internals/typed-array-constructors-require-wrappers"),l=e("../internals/array-buffer-view-core"),c=e("../internals/array-buffer"),u=e("../internals/an-instance"),p=e("../internals/create-property-descriptor"),d=e("../internals/create-non-enumerable-property"),m=e("../internals/is-integral-number"),f=e("../internals/to-length"),h=e("../internals/to-index"),y=e("../internals/to-offset"),g=e("../internals/to-uint8-clamped"),b=e("../internals/to-property-key"),v=e("../internals/has-own-property"),x=e("../internals/classof"),w=e("../internals/is-object"),S=e("../internals/is-symbol"),N=e("../internals/object-create"),j=e("../internals/object-is-prototype-of"),E=e("../internals/object-set-prototype-of"),C=e("../internals/object-get-own-property-names").f,k=e("../internals/typed-array-from"),T=e("../internals/array-iteration").forEach,R=e("../internals/set-species"),O=e("../internals/define-built-in-accessor"),P=e("../internals/object-define-property"),_=e("../internals/object-get-own-property-descriptor"),A=e("../internals/array-from-constructor-and-list"),I=e("../internals/internal-state"),M=e("../internals/inherit-if-required"),D=I.get,z=I.set,B=I.enforce,L=P.f,q=_.f,U=i.RangeError,H=c.ArrayBuffer,F=H.prototype,$=c.DataView,V=l.NATIVE_ARRAY_BUFFER_VIEWS,G=l.TYPED_ARRAY_TAG,W=l.TypedArray,K=l.TypedArrayPrototype,X=l.isTypedArray,Q="BYTES_PER_ELEMENT",Y="Wrong length",J=function(e,t){O(e,t,{configurable:!0,get:function(){return D(this)[t]}})},Z=function(e){var t;return j(F,e)||"ArrayBuffer"===(t=x(e))||"SharedArrayBuffer"===t},ee=function(e,t){return X(e)&&!S(t)&&t in e&&m(+t)&&t>=0},te=function(e,t){return t=b(t),ee(e,t)?p(2,e[t]):q(e,t)},re=function(e,t,r){return t=b(t),!(ee(e,t)&&w(r)&&v(r,"value"))||v(r,"get")||v(r,"set")||r.configurable||v(r,"writable")&&!r.writable||v(r,"enumerable")&&!r.enumerable?L(e,t,r):(e[t]=r.value,e)};s?(V||(_.f=te,P.f=re,J(K,"buffer"),J(K,"byteOffset"),J(K,"byteLength"),J(K,"length")),n({target:"Object",stat:!0,forced:!V},{getOwnPropertyDescriptor:te,defineProperty:re}),t.exports=function(e,t,r){var s=e.match(/\d+/)[0]/8,l=e+(r?"Clamped":"")+"Array",c="get"+e,p="set"+e,m=i[l],b=m,v=b&&b.prototype,x={},S=function(e,t){var r=D(e);return r.view[c](t*s+r.byteOffset,!0)},j=function(e,t,n){var i=D(e);i.view[p](t*s+i.byteOffset,r?g(n):n,!0)},O=function(e,t){L(e,t,{get:function(){return S(this,t)},set:function(e){return j(this,t,e)},enumerable:!0})};V?a&&(b=t(function(e,t,r,n){return u(e,v),M(w(t)?Z(t)?void 0!==n?new m(t,y(r,s),n):void 0!==r?new m(t,y(r,s)):new m(t):X(t)?A(b,t):o(k,b,t):new m(h(t)),e,b)}),E&&E(b,W),T(C(m),function(e){e in b||d(b,e,m[e])}),b.prototype=v):(b=t(function(e,t,r,n){u(e,v);var i,a,l,c=0,p=0;if(w(t)){if(!Z(t))return X(t)?A(b,t):o(k,b,t);i=t,p=y(r,s);var d=t.byteLength;if(void 0===n){if(d%s)throw new U(Y);if((a=d-p)<0)throw new U(Y)}else if((a=f(n)*s)+p>d)throw new U(Y);l=a/s}else l=h(t),i=new H(a=l*s);for(z(e,{buffer:i,byteOffset:p,byteLength:a,length:l,view:new $(i)});c<l;)O(e,c++)}),E&&E(b,W),v=b.prototype=N(K)),v.constructor!==b&&d(v,"constructor",b),B(v).TypedArrayConstructor=b,G&&d(v,G,l);var P=b!==m;x[l]=b,n({global:!0,constructor:!0,forced:P,sham:!V},x),Q in b||d(b,Q,s),Q in v||d(v,Q,s),R(l)}):t.exports=function(){}},{"../internals/an-instance":113,"../internals/array-buffer":118,"../internals/array-buffer-view-core":117,"../internals/array-from-constructor-and-list":122,"../internals/array-iteration":125,"../internals/classof":138,"../internals/create-non-enumerable-property":145,"../internals/create-property-descriptor":146,"../internals/define-built-in-accessor":148,"../internals/descriptors":153,"../internals/export":170,"../internals/function-call":177,"../internals/global":188,"../internals/has-own-property":189,"../internals/inherit-if-required":196,"../internals/internal-state":199,"../internals/is-integral-number":206,"../internals/is-object":208,"../internals/is-symbol":212,"../internals/object-create":229,"../internals/object-define-property":231,"../internals/object-get-own-property-descriptor":232,"../internals/object-get-own-property-names":234,"../internals/object-is-prototype-of":238,"../internals/object-set-prototype-of":242,"../internals/set-species":265,"../internals/to-index":281,"../internals/to-length":284,"../internals/to-offset":286,"../internals/to-property-key":289,"../internals/to-uint8-clamped":292,"../internals/typed-array-constructors-require-wrappers":295,"../internals/typed-array-from":297}],295:[function(e,t,r){var n=e("../internals/global"),i=e("../internals/fails"),o=e("../internals/check-correctness-of-iteration"),s=e("../internals/array-buffer-view-core").NATIVE_ARRAY_BUFFER_VIEWS,a=n.ArrayBuffer,l=n.Int8Array;t.exports=!s||!i(function(){l(1)})||!i(function(){new l(-1)})||!o(function(e){new l,new l(null),new l(1.5),new l(e)},!0)||i(function(){return 1!==new l(new a(2),1,void 0).length})},{"../internals/array-buffer-view-core":117,"../internals/check-correctness-of-iteration":136,"../internals/fails":171,"../internals/global":188}],296:[function(e,t,r){var n=e("../internals/array-from-constructor-and-list"),i=e("../internals/typed-array-species-constructor");t.exports=function(e,t){return n(i(e),t)}},{"../internals/array-from-constructor-and-list":122,"../internals/typed-array-species-constructor":298}],297:[function(e,t,r){var n=e("../internals/function-bind-context"),i=e("../internals/function-call"),o=e("../internals/a-constructor"),s=e("../internals/to-object"),a=e("../internals/length-of-array-like"),l=e("../internals/get-iterator"),c=e("../internals/get-iterator-method"),u=e("../internals/is-array-iterator-method"),p=e("../internals/is-big-int-array"),d=e("../internals/array-buffer-view-core").aTypedArrayConstructor,m=e("../internals/to-big-int");t.exports=function(e){var t,r,f,h,y,g,b,v,x=o(this),w=s(e),S=arguments.length,N=S>1?arguments[1]:void 0,j=void 0!==N,E=c(w);if(E&&!u(E))for(v=(b=l(w,E)).next,w=[];!(g=i(v,b)).done;)w.push(g.value);for(j&&S>2&&(N=n(N,arguments[2])),r=a(w),f=new(d(x))(r),h=p(f),t=0;r>t;t++)y=j?N(w[t],t):w[t],f[t]=h?m(y):+y;return f}},{"../internals/a-constructor":109,"../internals/array-buffer-view-core":117,"../internals/function-bind-context":175,"../internals/function-call":177,"../internals/get-iterator":184,"../internals/get-iterator-method":183,"../internals/is-array-iterator-method":200,"../internals/is-big-int-array":202,"../internals/length-of-array-like":219,"../internals/to-big-int":280,"../internals/to-object":285}],298:[function(e,t,r){var n=e("../internals/array-buffer-view-core"),i=e("../internals/species-constructor"),o=n.aTypedArrayConstructor,s=n.getTypedArrayConstructor;t.exports=function(e){return o(i(e,s(e)))}},{"../internals/array-buffer-view-core":117,"../internals/species-constructor":270}],299:[function(e,t,r){var n=e("../internals/function-uncurry-this"),i=0,o=Math.random(),s=n(1..toString);t.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+s(++i+o,36)}},{"../internals/function-uncurry-this":181}],300:[function(e,t,r){var n=e("../internals/symbol-constructor-detection");t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},{"../internals/symbol-constructor-detection":274}],301:[function(e,t,r){var n=e("../internals/descriptors"),i=e("../internals/fails");t.exports=n&&i(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},{"../internals/descriptors":153,"../internals/fails":171}],302:[function(e,t,r){var n=TypeError;t.exports=function(e,t){if(e<t)throw new n("Not enough arguments");return e}},{}],303:[function(e,t,r){var n=e("../internals/global"),i=e("../internals/is-callable"),o=n.WeakMap;t.exports=i(o)&&/native code/.test(String(o))},{"../internals/global":188,"../internals/is-callable":203}],304:[function(e,t,r){var n=e("../internals/path"),i=e("../internals/has-own-property"),o=e("../internals/well-known-symbol-wrapped"),s=e("../internals/object-define-property").f;t.exports=function(e){var t=n.Symbol||(n.Symbol={});i(t,e)||s(t,e,{value:o.f(e)})}},{"../internals/has-own-property":189,"../internals/object-define-property":231,"../internals/path":247,"../internals/well-known-symbol-wrapped":305}],305:[function(e,t,r){var n=e("../internals/well-known-symbol");r.f=n},{"../internals/well-known-symbol":306}],306:[function(e,t,r){var n=e("../internals/global"),i=e("../internals/shared"),o=e("../internals/has-own-property"),s=e("../internals/uid"),a=e("../internals/symbol-constructor-detection"),l=e("../internals/use-symbol-as-uid"),c=n.Symbol,u=i("wks"),p=l?c.for||c:c&&c.withoutSetter||s;t.exports=function(e){return o(u,e)||(u[e]=a&&o(c,e)?c[e]:p("Symbol."+e)),u[e]}},{"../internals/global":188,"../internals/has-own-property":189,"../internals/shared":269,"../internals/symbol-constructor-detection":274,"../internals/uid":299,"../internals/use-symbol-as-uid":300}],307:[function(e,t,r){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},{}],308:[function(e,t,r){var n=e("../internals/export"),i=e("../internals/global"),o=e("../internals/array-buffer"),s=e("../internals/set-species"),a="ArrayBuffer",l=o[a];n({global:!0,constructor:!0,forced:i[a]!==l},{ArrayBuffer:l}),s(a)},{"../internals/array-buffer":118,"../internals/export":170,"../internals/global":188,"../internals/set-species":265}],309:[function(e,t,r){var n=e("../internals/export"),i=e("../internals/function-uncurry-this-clause"),o=e("../internals/fails"),s=e("../internals/array-buffer"),a=e("../internals/an-object"),l=e("../internals/to-absolute-index"),c=e("../internals/to-length"),u=e("../internals/species-constructor"),p=s.ArrayBuffer,d=s.DataView,m=d.prototype,f=i(p.prototype.slice),h=i(m.getUint8),y=i(m.setUint8);n({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:o(function(){return!new p(2).slice(1,void 0).byteLength})},{slice:function(e,t){if(f&&void 0===t)return f(a(this),e);for(var r=a(this).byteLength,n=l(e,r),i=l(void 0===t?r:t,r),o=new(u(this,p))(c(i-n)),s=new d(this),m=new d(o),g=0;n<i;)y(m,g++,h(s,n++));return o}})},{"../internals/an-object":114,"../internals/array-buffer":118,"../internals/export":170,"../internals/fails":171,"../internals/function-uncurry-this-clause":180,"../internals/species-constructor":270,"../internals/to-absolute-index":279,"../internals/to-length":284}],310:[function(e,t,r){var n=e("../internals/export"),i=e("../internals/fails"),o=e("../internals/is-array"),s=e("../internals/is-object"),a=e("../internals/to-object"),l=e("../internals/length-of-array-like"),c=e("../internals/does-not-exceed-safe-integer"),u=e("../internals/create-property"),p=e("../internals/array-species-create"),d=e("../internals/array-method-has-species-support"),m=e("../internals/well-known-symbol"),f=e("../internals/engine-v8-version"),h=m("isConcatSpreadable"),y=f>=51||!i(function(){var e=[];return e[h]=!1,e.concat()[0]!==e}),g=function(e){if(!s(e))return!1;var t=e[h];return void 0!==t?!!t:o(e)};n({target:"Array",proto:!0,arity:1,forced:!y||!d("concat")},{concat:function(e){var t,r,n,i,o,s=a(this),d=p(s,0),m=0;for(t=-1,n=arguments.length;t<n;t++)if(g(o=-1===t?s:arguments[t]))for(i=l(o),c(m+i),r=0;r<i;r++,m++)r in o&&u(d,m,o[r]);else c(m+1),u(d,m++,o);return d.length=m,d}})},{"../internals/array-method-has-species-support":127,"../internals/array-species-create":134,"../internals/create-property":147,"../internals/does-not-exceed-safe-integer":155,"../internals/engine-v8-version":167,"../internals/export":170,"../internals/fails":171,"../internals/is-array":201,"../internals/is-object":208,"../internals/length-of-array-like":219,"../internals/to-object":285,"../internals/well-known-symbol":306}],311:[function(e,t,r){var n=e("../internals/export"),i=e("../internals/array-fill"),o=e("../internals/add-to-unscopables");n({target:"Array",proto:!0},{fill:i}),o("fill")},{"../internals/add-to-unscopables":111,"../internals/array-fill":120,"../internals/export":170}],312:[function(e,t,r){var n=e("../internals/export"),i=e("../internals/array-iteration").filter;n({target:"Array",proto:!0,forced:!e("../internals/array-method-has-species-support")("filter")},{filter:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":125,"../internals/array-method-has-species-support":127,"../internals/export":170}],313:[function(e,t,r){var n=e("../internals/export"),i=e("../internals/array-iteration").find,o=e("../internals/add-to-unscopables"),s="find",a=!0;s in[]&&Array(1)[s](function(){a=!1}),n({target:"Array",proto:!0,forced:a},{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o(s)},{"../internals/add-to-unscopables":111,"../internals/array-iteration":125,"../internals/export":170}],314:[function(e,t,r){var n=e("../internals/export"),i=e("../internals/array-from");n({target:"Array",stat:!0,forced:!e("../internals/check-correctness-of-iteration")(function(e){Array.from(e)})},{from:i})},{"../internals/array-from":123,"../internals/check-correctness-of-iteration":136,"../internals/export":170}],315:[function(e,t,r){var n=e("../internals/export"),i=e("../internals/array-includes").includes,o=e("../internals/fails"),s=e("../internals/add-to-unscopables");n({target:"Array",proto:!0,forced:o(function(){return!Array(1).includes()})},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),s("includes")},{"../internals/add-to-unscopables":111,"../internals/array-includes":124,"../internals/export":170,"../internals/fails":171}],316:[function(e,t,r){var n=e("../internals/to-indexed-object"),i=e("../internals/add-to-unscopables"),o=e("../internals/iterators"),s=e("../internals/internal-state"),a=e("../internals/object-define-property").f,l=e("../internals/iterator-define"),c=e("../internals/create-iter-result-object"),u=e("../internals/is-pure"),p=e("../internals/descriptors"),d="Array Iterator",m=s.set,f=s.getterFor(d);t.exports=l(Array,"Array",function(e,t){m(this,{type:d,target:n(e),index:0,kind:t})},function(){var e=f(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=void 0,c(void 0,!0);switch(e.kind){case"keys":return c(r,!1);case"values":return c(t[r],!1)}return c([r,t[r]],!1)},"values");var h=o.Arguments=o.Array;if(i("keys"),i("values"),i("entries"),!u&&p&&"values"!==h.name)try{a(h,"name",{value:"values"})}catch(y){}},{"../internals/add-to-unscopables":111,"../internals/create-iter-result-object":144,"../internals/descriptors":153,"../internals/internal-state":199,"../internals/is-pure":210,"../internals/iterator-define":216,"../internals/iterators":218,"../internals/object-define-property":231,"../internals/to-indexed-object":282}],317:[function(e,t,r){var n=e("../internals/export"),i=e("../internals/function-uncurry-this"),o=e("../internals/indexed-object"),s=e("../internals/to-indexed-object"),a=e("../internals/array-method-is-strict"),l=i([].join);n({target:"Array",proto:!0,forced:o!==Object||!a("join",",")},{join:function(e){return l(s(this),void 0===e?",":e)}})},{"../internals/array-method-is-strict":128,"../internals/export":170,"../internals/function-uncurry-this":181,"../internals/indexed-object":195,"../internals/to-indexed-object":282}],318:[function(e,t,r){var n=e("../internals/export"),i=e("../internals/array-iteration").map;n({target:"Array",proto:!0,forced:!e("../internals/array-method-has-species-support")("map")},{map:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":125,"../internals/array-method-has-species-support":127,"../internals/export":170}],319:[function(e,t,r){var n=e("../internals/export"),i=e("../internals/is-array"),o=e("../internals/is-constructor"),s=e("../internals/is-object"),a=e("../internals/to-absolute-index"),l=e("../internals/length-of-array-like"),c=e("../internals/to-indexed-object"),u=e("../internals/create-property"),p=e("../internals/well-known-symbol"),d=e("../internals/array-method-has-species-support"),m=e("../internals/array-slice"),f=d("slice"),h=p("species"),y=Array,g=Math.max;n({target:"Array",proto:!0,forced:!f},{slice:function(e,t){var r,n,p,d=c(this),f=l(d),b=a(e,f),v=a(void 0===t?f:t,f);if(i(d)&&(r=d.constructor,(o(r)&&(r===y||i(r.prototype))||s(r)&&null===(r=r[h]))&&(r=void 0),r===y||void 0===r))return m(d,b,v);for(n=new(void 0===r?y:r)(g(v-b,0)),p=0;b<v;b++,p++)b in d&&u(n,p,d[b]);return n.length=p,n}})},{"../internals/array-method-has-species-support":127,"../internals/array-slice":131,"../internals/create-property":147,"../internals/export":170,"../internals/is-array":201,"../internals/is-constructor":204,"../internals/is-object":208,"../internals/length-of-array-like":219,"../internals/to-absolute-index":279,"../internals/to-indexed-object":282,"../internals/well-known-symbol":306}],320:[function(e,t,r){var n=e("../internals/export"),i=e("../internals/function-uncurry-this"),o=e("../internals/a-callable"),s=e("../internals/to-object"),a=e("../internals/length-of-array-like"),l=e("../internals/delete-property-or-throw"),c=e("../internals/to-string"),u=e("../internals/fails"),p=e("../internals/array-sort"),d=e("../internals/array-method-is-strict"),m=e("../internals/engine-ff-version"),f=e("../internals/engine-is-ie-or-edge"),h=e("../internals/engine-v8-version"),y=e("../internals/engine-webkit-version"),g=[],b=i(g.sort),v=i(g.push),x=u(function(){g.sort(void 0)}),w=u(function(){g.sort(null)}),S=d("sort"),N=!u(function(){if(h)return h<70;if(!(m&&m>3)){if(f)return!0;if(y)return y<603;var e,t,r,n,i="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)g.push({k:t+n,v:r})}for(g.sort(function(e,t){return t.v-e.v}),n=0;n<g.length;n++)t=g[n].k.charAt(0),i.charAt(i.length-1)!==t&&(i+=t);return"DGBEFHACIJK"!==i}}),j=function(e){return function(t,r){return void 0===r?-1:void 0===t?1:void 0!==e?+e(t,r)||0:c(t)>c(r)?1:-1}};n({target:"Array",proto:!0,forced:x||!w||!S||!N},{sort:function(e){void 0!==e&&o(e);var t=s(this);if(N)return void 0===e?b(t):b(t,e);var r,n,i=[],c=a(t);for(n=0;n<c;n++)n in t&&v(i,t[n]);for(p(i,j(e)),r=a(i),n=0;n<r;)t[n]=i[n++];for(;n<c;)l(t,n++);return t}})},{"../internals/a-callable":108,"../internals/array-method-is-strict":128,"../internals/array-sort":132,"../internals/delete-property-or-throw":152,"../internals/engine-ff-version":158,"../internals/engine-is-ie-or-edge":161,"../internals/engine-v8-version":167,"../internals/engine-webkit-version":168,"../internals/export":170,"../internals/fails":171,"../internals/function-uncurry-this":181,"../internals/length-of-array-like":219,"../internals/to-object":285,"../internals/to-string":291}],321:[function(e,t,r){var n=e("../internals/export"),i=e("../internals/to-object"),o=e("../internals/to-absolute-index"),s=e("../internals/to-integer-or-infinity"),a=e("../internals/length-of-array-like"),l=e("../internals/array-set-length"),c=e("../internals/does-not-exceed-safe-integer"),u=e("../internals/array-species-create"),p=e("../internals/create-property"),d=e("../internals/delete-property-or-throw"),m=e("../internals/array-method-has-species-support")("splice"),f=Math.max,h=Math.min;n({target:"Array",proto:!0,forced:!m},{splice:function(e,t){var r,n,m,y,g,b,v=i(this),x=a(v),w=o(e,x),S=arguments.length;for(0===S?r=n=0:1===S?(r=0,n=x-w):(r=S-2,n=h(f(s(t),0),x-w)),c(x+r-n),m=u(v,n),y=0;y<n;y++)(g=w+y)in v&&p(m,y,v[g]);if(m.length=n,r<n){for(y=w;y<x-n;y++)b=y+r,(g=y+n)in v?v[b]=v[g]:d(v,b);for(y=x;y>x-n+r;y--)d(v,y-1)}else if(r>n)for(y=x-n;y>w;y--)b=y+r-1,(g=y+n-1)in v?v[b]=v[g]:d(v,b);for(y=0;y<r;y++)v[y+w]=arguments[y+2];return l(v,x-n+r),m}})},{"../internals/array-method-has-species-support":127,"../internals/array-set-length":130,"../internals/array-species-create":134,"../internals/create-property":147,"../internals/delete-property-or-throw":152,"../internals/does-not-exceed-safe-integer":155,"../internals/export":170,"../internals/length-of-array-like":219,"../internals/to-absolute-index":279,"../internals/to-integer-or-infinity":283,"../internals/to-object":285}],322:[function(e,t,r){var n=e("../internals/descriptors"),i=e("../internals/function-name").EXISTS,o=e("../internals/function-uncurry-this"),s=e("../internals/define-built-in-accessor"),a=Function.prototype,l=o(a.toString),c=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,u=o(c.exec);n&&!i&&s(a,"name",{configurable:!0,get:function(){try{return u(c,l(this))[1]}catch(e){return""}}})},{"../internals/define-built-in-accessor":148,"../internals/descriptors":153,"../internals/function-name":178,"../internals/function-uncurry-this":181}],323:[function(e,t,r){var n=e("../internals/export"),i=e("../internals/get-built-in"),o=e("../internals/function-apply"),s=e("../internals/function-call"),a=e("../internals/function-uncurry-this"),l=e("../internals/fails"),c=e("../internals/is-callable"),u=e("../internals/is-symbol"),p=e("../internals/array-slice"),d=e("../internals/get-json-replacer-function"),m=e("../internals/symbol-constructor-detection"),f=String,h=i("JSON","stringify"),y=a(/./.exec),g=a("".charAt),b=a("".charCodeAt),v=a("".replace),x=a(1..toString),w=/[\uD800-\uDFFF]/g,S=/^[\uD800-\uDBFF]$/,N=/^[\uDC00-\uDFFF]$/,j=!m||l(function(){var e=i("Symbol")("stringify detection");return"[null]"!==h([e])||"{}"!==h({a:e})||"{}"!==h(Object(e))}),E=l(function(){return'"\\udf06\\ud834"'!==h("\udf06\ud834")||'"\\udead"'!==h("\udead")}),C=function(e,t){var r=p(arguments),n=d(t);if(c(n)||void 0!==e&&!u(e))return r[1]=function(e,t){if(c(n)&&(t=s(n,this,f(e),t)),!u(t))return t},o(h,null,r)},k=function(e,t,r){var n=g(r,t-1),i=g(r,t+1);return y(S,e)&&!y(N,i)||y(N,e)&&!y(S,n)?"\\u"+x(b(e,0),16):e};h&&n({target:"JSON",stat:!0,arity:3,forced:j||E},{stringify:function(e,t,r){var n=p(arguments),i=o(j?C:h,null,n);return E&&"string"==typeof i?v(i,w,k):i}})},{"../internals/array-slice":131,"../internals/export":170,"../internals/fails":171,"../internals/function-apply":174,"../internals/function-call":177,"../internals/function-uncurry-this":181,"../internals/get-built-in":182,"../internals/get-json-replacer-function":185,"../internals/is-callable":203,"../internals/is-symbol":212,"../internals/symbol-constructor-detection":274}],324:[function(e,t,r){var n=e("../internals/export"),i=e("../internals/is-pure"),o=e("../internals/descriptors"),s=e("../internals/global"),a=e("../internals/path"),l=e("../internals/function-uncurry-this"),c=e("../internals/is-forced"),u=e("../internals/has-own-property"),p=e("../internals/inherit-if-required"),d=e("../internals/object-is-prototype-of"),m=e("../internals/is-symbol"),f=e("../internals/to-primitive"),h=e("../internals/fails"),y=e("../internals/object-get-own-property-names").f,g=e("../internals/object-get-own-property-descriptor").f,b=e("../internals/object-define-property").f,v=e("../internals/this-number-value"),x=e("../internals/string-trim").trim,w="Number",S=s[w],N=a[w],j=S.prototype,E=s.TypeError,C=l("".slice),k=l("".charCodeAt),T=function(e){var t=f(e,"number");return"bigint"==typeof t?t:R(t)},R=function(e){var t,r,n,i,o,s,a,l,c=f(e,"number");if(m(c))throw new E("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=x(c),43===(t=k(c,0))||45===t){if(88===(r=k(c,2))||120===r)return NaN}else if(48===t){switch(k(c,1)){case 66:case 98:n=2,i=49;break;case 79:case 111:n=8,i=55;break;default:return+c}for(s=(o=C(c,2)).length,a=0;a<s;a++)if((l=k(o,a))<48||l>i)return NaN;return parseInt(o,n)}return+c},O=c(w,!S(" 0o1")||!S("0b1")||S("+0x1")),P=function(e){return d(j,e)&&h(function(){v(e)})},_=function(e){var t=arguments.length<1?0:S(T(e));return P(this)?p(Object(t),this,_):t};_.prototype=j,O&&!i&&(j.constructor=_),n({global:!0,constructor:!0,wrap:!0,forced:O},{Number:_});var A=function(e,t){for(var r,n=o?y(t):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),i=0;n.length>i;i++)u(t,r=n[i])&&!u(e,r)&&b(e,r,g(t,r))};i&&N&&A(a[w],N),(O||i)&&A(a[w],S)},{"../internals/descriptors":153,"../internals/export":170,"../internals/fails":171,"../internals/function-uncurry-this":181,"../internals/global":188,"../internals/has-own-property":189,"../internals/inherit-if-required":196,"../internals/is-forced":205,"../internals/is-pure":210,"../internals/is-symbol":212,"../internals/object-define-property":231,"../internals/object-get-own-property-descriptor":232,"../internals/object-get-own-property-names":234,"../internals/object-is-prototype-of":238,"../internals/path":247,"../internals/string-trim":273,"../internals/this-number-value":278,"../internals/to-primitive":288}],325:[function(e,t,r){var n=e("../internals/export"),i=e("../internals/object-assign");n({target:"Object",stat:!0,arity:2,forced:Object.assign!==i},{assign:i})},{"../internals/export":170,"../internals/object-assign":228}],326:[function(e,t,r){var n=e("../internals/export"),i=e("../internals/object-to-array").entries;n({target:"Object",stat:!0},{entries:function(e){return i(e)}})},{"../internals/export":170,"../internals/object-to-array":243}],327:[function(e,t,r){var n=e("../internals/export"),i=e("../internals/symbol-constructor-detection"),o=e("../internals/fails"),s=e("../internals/object-get-own-property-symbols"),a=e("../internals/to-object");n({target:"Object",stat:!0,forced:!i||o(function(){s.f(1)})},{getOwnPropertySymbols:function(e){var t=s.f;return t?t(a(e)):[]}})},{"../internals/export":170,"../internals/fails":171,"../internals/object-get-own-property-symbols":235,"../internals/symbol-constructor-detection":274,"../internals/to-object":285}],328:[function(e,t,r){var n=e("../internals/export"),i=e("../internals/to-object"),o=e("../internals/object-keys");n({target:"Object",stat:!0,forced:e("../internals/fails")(function(){o(1)})},{keys:function(e){return o(i(e))}})},{"../internals/export":170,"../internals/fails":171,"../internals/object-keys":240,"../internals/to-object":285}],329:[function(e,t,r){var n=e("../internals/to-string-tag-support"),i=e("../internals/define-built-in"),o=e("../internals/object-to-string");n||i(Object.prototype,"toString",o,{unsafe:!0})},{"../internals/define-built-in":149,"../internals/object-to-string":244,"../internals/to-string-tag-support":290}],330:[function(e,t,r){var n=e("../internals/export"),i=e("../internals/function-call"),o=e("../internals/a-callable"),s=e("../internals/new-promise-capability"),a=e("../internals/perform"),l=e("../internals/iterate");n({target:"Promise",stat:!0,forced:e("../internals/promise-statics-incorrect-iteration")},{all:function(e){var t=this,r=s.f(t),n=r.resolve,c=r.reject,u=a(function(){var r=o(t.resolve),s=[],a=0,u=1;l(e,function(e){var o=a++,l=!1;u++,i(r,t,e).then(function(e){l||(l=!0,s[o]=e,--u||n(s))},c)}),--u||n(s)});return u.error&&c(u.value),r.promise}})},{"../internals/a-callable":108,"../internals/export":170,"../internals/function-call":177,"../internals/iterate":213,"../internals/new-promise-capability":226,"../internals/perform":248,"../internals/promise-statics-incorrect-iteration":252}],331:[function(e,t,r){var n=e("../internals/export"),i=e("../internals/is-pure"),o=e("../internals/promise-constructor-detection").CONSTRUCTOR,s=e("../internals/promise-native-constructor"),a=e("../internals/get-built-in"),l=e("../internals/is-callable"),c=e("../internals/define-built-in"),u=s&&s.prototype;if(n({target:"Promise",proto:!0,forced:o,real:!0},{catch:function(e){return this.then(void 0,e)}}),!i&&l(s)){var p=a("Promise").prototype.catch;u.catch!==p&&c(u,"catch",p,{unsafe:!0})}},{"../internals/define-built-in":149,"../internals/export":170,"../internals/get-built-in":182,"../internals/is-callable":203,"../internals/is-pure":210,"../internals/promise-constructor-detection":249,"../internals/promise-native-constructor":250}],332:[function(e,t,r){var n,i,o,s,a=e("../internals/export"),l=e("../internals/is-pure"),c=e("../internals/engine-is-node"),u=e("../internals/global"),p=e("../internals/function-call"),d=e("../internals/define-built-in"),m=e("../internals/object-set-prototype-of"),f=e("../internals/set-to-string-tag"),h=e("../internals/set-species"),y=e("../internals/a-callable"),g=e("../internals/is-callable"),b=e("../internals/is-object"),v=e("../internals/an-instance"),x=e("../internals/species-constructor"),w=e("../internals/task").set,S=e("../internals/microtask"),N=e("../internals/host-report-errors"),j=e("../internals/perform"),E=e("../internals/queue"),C=e("../internals/internal-state"),k=e("../internals/promise-native-constructor"),T=e("../internals/promise-constructor-detection"),R=e("../internals/new-promise-capability"),O="Promise",P=T.CONSTRUCTOR,_=T.REJECTION_EVENT,A=T.SUBCLASSING,I=C.getterFor(O),M=C.set,D=k&&k.prototype,z=k,B=D,L=u.TypeError,q=u.document,U=u.process,H=R.f,F=H,$=!!(q&&q.createEvent&&u.dispatchEvent),V="unhandledrejection",G="rejectionhandled",W=0,K=1,X=2,Q=1,Y=2,J=function(e){var t;return!(!b(e)||!g(t=e.then))&&t},Z=function(e,t){var r,n,i,o=t.value,s=t.state===K,a=s?e.ok:e.fail,l=e.resolve,c=e.reject,u=e.domain;try{a?(s||(t.rejection===Y&&ie(t),t.rejection=Q),!0===a?r=o:(u&&u.enter(),r=a(o),u&&(u.exit(),i=!0)),r===e.promise?c(new L("Promise-chain cycle")):(n=J(r))?p(n,r,l,c):l(r)):c(o)}catch(d){u&&!i&&u.exit(),c(d)}},ee=function(e,t){e.notified||(e.notified=!0,S(function(){for(var r,n=e.reactions;r=n.get();)Z(r,e);e.notified=!1,t&&!e.rejection&&re(e)}))},te=function(e,t,r){var n,i;$?((n=q.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),u.dispatchEvent(n)):n={promise:t,reason:r},!_&&(i=u["on"+e])?i(n):e===V&&N("Unhandled promise rejection",r)},re=function(e){p(w,u,function(){var t,r=e.facade,n=e.value;if(ne(e)&&(t=j(function(){c?U.emit("unhandledRejection",n,r):te(V,r,n)}),e.rejection=c||ne(e)?Y:Q,t.error))throw t.value})},ne=function(e){return e.rejection!==Q&&!e.parent},ie=function(e){p(w,u,function(){var t=e.facade;c?U.emit("rejectionHandled",t):te(G,t,e.value)})},oe=function(e,t,r){return function(n){e(t,n,r)}},se=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=X,ee(e,!0))},ae=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw new L("Promise can't be resolved itself");var n=J(t);n?S(function(){var r={done:!1};try{p(n,t,oe(ae,r,e),oe(se,r,e))}catch(i){se(r,i,e)}}):(e.value=t,e.state=K,ee(e,!1))}catch(i){se({done:!1},i,e)}}};if(P&&(B=(z=function(e){v(this,B),y(e),p(n,this);var t=I(this);try{e(oe(ae,t),oe(se,t))}catch(r){se(t,r)}}).prototype,(n=function(e){M(this,{type:O,done:!1,notified:!1,parent:!1,reactions:new E,rejection:!1,state:W,value:void 0})}).prototype=d(B,"then",function(e,t){var r=I(this),n=H(x(this,z));return r.parent=!0,n.ok=!g(e)||e,n.fail=g(t)&&t,n.domain=c?U.domain:void 0,r.state===W?r.reactions.add(n):S(function(){Z(n,r)}),n.promise}),i=function(){var e=new n,t=I(e);this.promise=e,this.resolve=oe(ae,t),this.reject=oe(se,t)},R.f=H=function(e){return e===z||e===o?new i(e):F(e)},!l&&g(k)&&D!==Object.prototype)){s=D.then,A||d(D,"then",function(e,t){var r=this;return new z(function(e,t){p(s,r,e,t)}).then(e,t)},{unsafe:!0});try{delete D.constructor}catch(le){}m&&m(D,B)}a({global:!0,constructor:!0,wrap:!0,forced:P},{Promise:z}),f(z,O,!1,!0),h(O)},{"../internals/a-callable":108,"../internals/an-instance":113,"../internals/define-built-in":149,"../internals/engine-is-node":164,"../internals/export":170,"../internals/function-call":177,"../internals/global":188,"../internals/host-report-errors":191,"../internals/internal-state":199,"../internals/is-callable":203,"../internals/is-object":208,"../internals/is-pure":210,"../internals/microtask":225,"../internals/new-promise-capability":226,"../internals/object-set-prototype-of":242,"../internals/perform":248,"../internals/promise-constructor-detection":249,"../internals/promise-native-constructor":250,"../internals/queue":254,"../internals/set-species":265,"../internals/set-to-string-tag":266,"../internals/species-constructor":270,"../internals/task":277}],333:[function(e,t,r){e("../modules/es.promise.constructor"),e("../modules/es.promise.all"),e("../modules/es.promise.catch"),e("../modules/es.promise.race"),e("../modules/es.promise.reject"),e("../modules/es.promise.resolve")},{"../modules/es.promise.all":330,"../modules/es.promise.catch":331,"../modules/es.promise.constructor":332,"../modules/es.promise.race":334,"../modules/es.promise.reject":335,"../modules/es.promise.resolve":336}],334:[function(e,t,r){var n=e("../internals/export"),i=e("../internals/function-call"),o=e("../internals/a-callable"),s=e("../internals/new-promise-capability"),a=e("../internals/perform"),l=e("../internals/iterate");n({target:"Promise",stat:!0,forced:e("../internals/promise-statics-incorrect-iteration")},{race:function(e){var t=this,r=s.f(t),n=r.reject,c=a(function(){var s=o(t.resolve);l(e,function(e){i(s,t,e).then(r.resolve,n)})});return c.error&&n(c.value),r.promise}})},{"../internals/a-callable":108,"../internals/export":170,"../internals/function-call":177,"../internals/iterate":213,"../internals/new-promise-capability":226,"../internals/perform":248,"../internals/promise-statics-incorrect-iteration":252}],335:[function(e,t,r){var n=e("../internals/export"),i=e("../internals/new-promise-capability");n({target:"Promise",stat:!0,forced:e("../internals/promise-constructor-detection").CONSTRUCTOR},{reject:function(e){var t=i.f(this);return(0,t.reject)(e),t.promise}})},{"../internals/export":170,"../internals/new-promise-capability":226,"../internals/promise-constructor-detection":249}],336:[function(e,t,r){var n=e("../internals/export"),i=e("../internals/get-built-in"),o=e("../internals/is-pure"),s=e("../internals/promise-native-constructor"),a=e("../internals/promise-constructor-detection").CONSTRUCTOR,l=e("../internals/promise-resolve"),c=i("Promise"),u=o&&!a;n({target:"Promise",stat:!0,forced:o||a},{resolve:function(e){return l(u&&this===c?s:this,e)}})},{"../internals/export":170,"../internals/get-built-in":182,"../internals/is-pure":210,"../internals/promise-constructor-detection":249,"../internals/promise-native-constructor":250,"../internals/promise-resolve":251}],337:[function(e,t,r){var n=e("../internals/descriptors"),i=e("../internals/global"),o=e("../internals/function-uncurry-this"),s=e("../internals/is-forced"),a=e("../internals/inherit-if-required"),l=e("../internals/create-non-enumerable-property"),c=e("../internals/object-create"),u=e("../internals/object-get-own-property-names").f,p=e("../internals/object-is-prototype-of"),d=e("../internals/is-regexp"),m=e("../internals/to-string"),f=e("../internals/regexp-get-flags"),h=e("../internals/regexp-sticky-helpers"),y=e("../internals/proxy-accessor"),g=e("../internals/define-built-in"),b=e("../internals/fails"),v=e("../internals/has-own-property"),x=e("../internals/internal-state").enforce,w=e("../internals/set-species"),S=e("../internals/well-known-symbol"),N=e("../internals/regexp-unsupported-dot-all"),j=e("../internals/regexp-unsupported-ncg"),E=S("match"),C=i.RegExp,k=C.prototype,T=i.SyntaxError,R=o(k.exec),O=o("".charAt),P=o("".replace),_=o("".indexOf),A=o("".slice),I=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,M=/a/g,D=/a/g,z=new C(M)!==M,B=h.MISSED_STICKY,L=h.UNSUPPORTED_Y,q=n&&(!z||B||N||j||b(function(){return D[E]=!1,C(M)!==M||C(D)===D||"/a/i"!==String(C(M,"i"))})),U=function(e){for(var t,r=e.length,n=0,i="",o=!1;n<=r;n++)"\\"!==(t=O(e,n))?o||"."!==t?("["===t?o=!0:"]"===t&&(o=!1),i+=t):i+="[\\s\\S]":i+=t+O(e,++n);return i},H=function(e){for(var t,r=e.length,n=0,i="",o=[],s=c(null),a=!1,l=!1,u=0,p="";n<=r;n++){if("\\"===(t=O(e,n)))t+=O(e,++n);else if("]"===t)a=!1;else if(!a)switch(!0){case"["===t:a=!0;break;case"("===t:R(I,A(e,n+1))&&(n+=2,l=!0),i+=t,u++;continue;case">"===t&&l:if(""===p||v(s,p))throw new T("Invalid capture group name");s[p]=!0,o[o.length]=[p,u],l=!1,p="";continue}l?p+=t:i+=t}return[i,o]};if(s("RegExp",q)){for(var F=function(e,t){var r,n,i,o,s,c,u=p(k,this),h=d(e),y=void 0===t,g=[],b=e;if(!u&&h&&y&&e.constructor===F)return e;if((h||p(k,e))&&(e=e.source,y&&(t=f(b))),e=void 0===e?"":m(e),t=void 0===t?"":m(t),b=e,N&&"dotAll"in M&&(n=!!t&&_(t,"s")>-1)&&(t=P(t,/s/g,"")),r=t,B&&"sticky"in M&&(i=!!t&&_(t,"y")>-1)&&L&&(t=P(t,/y/g,"")),j&&(e=(o=H(e))[0],g=o[1]),s=a(C(e,t),u?this:k,F),(n||i||g.length)&&(c=x(s),n&&(c.dotAll=!0,c.raw=F(U(e),r)),i&&(c.sticky=!0),g.length&&(c.groups=g)),e!==b)try{l(s,"source",""===b?"(?:)":b)}catch(v){}return s},$=u(C),V=0;$.length>V;)y(F,C,$[V++]);k.constructor=F,F.prototype=k,g(i,"RegExp",F,{constructor:!0})}w("RegExp")},{"../internals/create-non-enumerable-property":145,"../internals/define-built-in":149,"../internals/descriptors":153,"../internals/fails":171,"../internals/function-uncurry-this":181,"../internals/global":188,"../internals/has-own-property":189,"../internals/inherit-if-required":196,"../internals/internal-state":199,"../internals/is-forced":205,"../internals/is-regexp":211,"../internals/object-create":229,"../internals/object-get-own-property-names":234,"../internals/object-is-prototype-of":238,"../internals/proxy-accessor":253,"../internals/regexp-get-flags":258,"../internals/regexp-sticky-helpers":259,"../internals/regexp-unsupported-dot-all":260,"../internals/regexp-unsupported-ncg":261,"../internals/set-species":265,"../internals/to-string":291,"../internals/well-known-symbol":306}],338:[function(e,t,r){var n=e("../internals/export"),i=e("../internals/regexp-exec");n({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},{"../internals/export":170,"../internals/regexp-exec":256}],339:[function(e,t,r){var n=e("../internals/function-name").PROPER,i=e("../internals/define-built-in"),o=e("../internals/an-object"),s=e("../internals/to-string"),a=e("../internals/fails"),l=e("../internals/regexp-get-flags"),c="toString",u=RegExp.prototype,p=u[c],d=a(function(){return"/a/b"!==p.call({source:"a",flags:"b"})}),m=n&&p.name!==c;(d||m)&&i(u,c,function(){var e=o(this);return"/"+s(e.source)+"/"+s(l(e))},{unsafe:!0})},{"../internals/an-object":114,"../internals/define-built-in":149,"../internals/fails":171,"../internals/function-name":178,"../internals/regexp-get-flags":258,"../internals/to-string":291}],340:[function(e,t,r){e("../internals/collection")("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},e("../internals/collection-strong"))},{"../internals/collection":140,"../internals/collection-strong":139}],341:[function(e,t,r){e("../modules/es.set.constructor")},{"../modules/es.set.constructor":340}],342:[function(e,t,r){var n=e("../internals/export"),i=e("../internals/function-uncurry-this"),o=e("../internals/not-a-regexp"),s=e("../internals/require-object-coercible"),a=e("../internals/to-string"),l=e("../internals/correct-is-regexp-logic"),c=i("".indexOf);n({target:"String",proto:!0,forced:!l("includes")},{includes:function(e){return!!~c(a(s(this)),a(o(e)),arguments.length>1?arguments[1]:void 0)}})},{"../internals/correct-is-regexp-logic":142,"../internals/export":170,"../internals/function-uncurry-this":181,"../internals/not-a-regexp":227,"../internals/require-object-coercible":262,"../internals/to-string":291}],343:[function(e,t,r){var n=e("../internals/string-multibyte").charAt,i=e("../internals/to-string"),o=e("../internals/internal-state"),s=e("../internals/iterator-define"),a=e("../internals/create-iter-result-object"),l="String Iterator",c=o.set,u=o.getterFor(l);s(String,"String",function(e){c(this,{type:l,string:i(e),index:0})},function(){var e,t=u(this),r=t.string,i=t.index;return i>=r.length?a(void 0,!0):(e=n(r,i),t.index+=e.length,a(e,!1))})},{"../internals/create-iter-result-object":144,"../internals/internal-state":199,"../internals/iterator-define":216,"../internals/string-multibyte":271,"../internals/to-string":291}],344:[function(e,t,r){var n=e("../internals/function-call"),i=e("../internals/fix-regexp-well-known-symbol-logic"),o=e("../internals/an-object"),s=e("../internals/is-null-or-undefined"),a=e("../internals/to-length"),l=e("../internals/to-string"),c=e("../internals/require-object-coercible"),u=e("../internals/get-method"),p=e("../internals/advance-string-index"),d=e("../internals/regexp-exec-abstract");i("match",function(e,t,r){return[function(t){var r=c(this),i=s(t)?void 0:u(t,e);return i?n(i,t,r):new RegExp(t)[e](l(r))},function(e){var n=o(this),i=l(e),s=r(t,n,i);if(s.done)return s.value;if(!n.global)return d(n,i);var c=n.unicode;n.lastIndex=0;for(var u,m=[],f=0;null!==(u=d(n,i));){var h=l(u[0]);m[f]=h,""===h&&(n.lastIndex=p(i,a(n.lastIndex),c)),f++}return 0===f?null:m}]})},{"../internals/advance-string-index":112,"../internals/an-object":114,"../internals/fix-regexp-well-known-symbol-logic":172,"../internals/function-call":177,"../internals/get-method":186,"../internals/is-null-or-undefined":207,"../internals/regexp-exec-abstract":255,"../internals/require-object-coercible":262,"../internals/to-length":284,"../internals/to-string":291}],345:[function(e,t,r){var n=e("../internals/function-apply"),i=e("../internals/function-call"),o=e("../internals/function-uncurry-this"),s=e("../internals/fix-regexp-well-known-symbol-logic"),a=e("../internals/fails"),l=e("../internals/an-object"),c=e("../internals/is-callable"),u=e("../internals/is-null-or-undefined"),p=e("../internals/to-integer-or-infinity"),d=e("../internals/to-length"),m=e("../internals/to-string"),f=e("../internals/require-object-coercible"),h=e("../internals/advance-string-index"),y=e("../internals/get-method"),g=e("../internals/get-substitution"),b=e("../internals/regexp-exec-abstract"),v=e("../internals/well-known-symbol")("replace"),x=Math.max,w=Math.min,S=o([].concat),N=o([].push),j=o("".indexOf),E=o("".slice),C=function(e){return void 0===e?e:String(e)},k="$0"==="a".replace(/./,"$0"),T=!!/./[v]&&""===/./[v]("a","$0");s("replace",function(e,t,r){var o=T?"$":"$0";return[function(e,r){var n=f(this),o=u(e)?void 0:y(e,v);return o?i(o,e,n,r):i(t,m(n),e,r)},function(e,i){var s=l(this),a=m(e);if("string"==typeof i&&-1===j(i,o)&&-1===j(i,"$<")){var u=r(t,s,a,i);if(u.done)return u.value}var f=c(i);f||(i=m(i));var y,v=s.global;v&&(y=s.unicode,s.lastIndex=0);for(var k,T=[];null!==(k=b(s,a))&&(N(T,k),v);)""===m(k[0])&&(s.lastIndex=h(a,d(s.lastIndex),y));for(var R="",O=0,P=0;P<T.length;P++){k=T[P];for(var _,A=m(k[0]),I=x(w(p(k.index),a.length),0),M=[],D=1;D<k.length;D++)N(M,C(k[D]));var z=k.groups;if(f){var B=S([A],M,I,a);void 0!==z&&N(B,z),_=m(n(i,void 0,B))}else _=g(A,a,I,M,z,i);I>=O&&(R+=E(a,O,I)+_,O=I+A.length)}return R+E(a,O)}]},!!a(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})||!k||T)},{"../internals/advance-string-index":112,"../internals/an-object":114,"../internals/fails":171,"../internals/fix-regexp-well-known-symbol-logic":172,"../internals/function-apply":174,"../internals/function-call":177,"../internals/function-uncurry-this":181,"../internals/get-method":186,"../internals/get-substitution":187,"../internals/is-callable":203,"../internals/is-null-or-undefined":207,"../internals/regexp-exec-abstract":255,"../internals/require-object-coercible":262,"../internals/to-integer-or-infinity":283,"../internals/to-length":284,"../internals/to-string":291,"../internals/well-known-symbol":306}],346:[function(e,t,r){var n=e("../internals/function-call"),i=e("../internals/fix-regexp-well-known-symbol-logic"),o=e("../internals/an-object"),s=e("../internals/is-null-or-undefined"),a=e("../internals/require-object-coercible"),l=e("../internals/same-value"),c=e("../internals/to-string"),u=e("../internals/get-method"),p=e("../internals/regexp-exec-abstract");i("search",function(e,t,r){return[function(t){var r=a(this),i=s(t)?void 0:u(t,e);return i?n(i,t,r):new RegExp(t)[e](c(r))},function(e){var n=o(this),i=c(e),s=r(t,n,i);if(s.done)return s.value;var a=n.lastIndex;l(a,0)||(n.lastIndex=0);var u=p(n,i);return l(n.lastIndex,a)||(n.lastIndex=a),null===u?-1:u.index}]})},{"../internals/an-object":114,"../internals/fix-regexp-well-known-symbol-logic":172,"../internals/function-call":177,"../internals/get-method":186,"../internals/is-null-or-undefined":207,"../internals/regexp-exec-abstract":255,"../internals/require-object-coercible":262,"../internals/same-value":264,"../internals/to-string":291}],347:[function(e,t,r){var n=e("../internals/function-apply"),i=e("../internals/function-call"),o=e("../internals/function-uncurry-this"),s=e("../internals/fix-regexp-well-known-symbol-logic"),a=e("../internals/an-object"),l=e("../internals/is-null-or-undefined"),c=e("../internals/is-regexp"),u=e("../internals/require-object-coercible"),p=e("../internals/species-constructor"),d=e("../internals/advance-string-index"),m=e("../internals/to-length"),f=e("../internals/to-string"),h=e("../internals/get-method"),y=e("../internals/array-slice"),g=e("../internals/regexp-exec-abstract"),b=e("../internals/regexp-exec"),v=e("../internals/regexp-sticky-helpers"),x=e("../internals/fails"),w=v.UNSUPPORTED_Y,S=4294967295,N=Math.min,j=[].push,E=o(/./.exec),C=o(j),k=o("".slice),T=!x(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return 2!==r.length||"a"!==r[0]||"b"!==r[1]});s("split",function(e,t,r){var o;return o="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,r){var o=f(u(this)),s=void 0===r?S:r>>>0;if(0===s)return[];if(void 0===e)return[o];if(!c(e))return i(t,o,e,s);for(var a,l,p,d=[],m=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),h=0,g=new RegExp(e.source,m+"g");(a=i(b,g,o))&&!((l=g.lastIndex)>h&&(C(d,k(o,h,a.index)),a.length>1&&a.index<o.length&&n(j,d,y(a,1)),p=a[0].length,h=l,d.length>=s));)g.lastIndex===a.index&&g.lastIndex++;return h===o.length?!p&&E(g,"")||C(d,""):C(d,k(o,h)),d.length>s?y(d,0,s):d}:"0".split(void 0,0).length?function(e,r){return void 0===e&&0===r?[]:i(t,this,e,r)}:t,[function(t,r){var n=u(this),s=l(t)?void 0:h(t,e);return s?i(s,t,n,r):i(o,f(n),t,r)},function(e,n){var i=a(this),s=f(e),l=r(o,i,s,n,o!==t);if(l.done)return l.value;var c=p(i,RegExp),u=i.unicode,h=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(w?"g":"y"),y=new c(w?"^(?:"+i.source+")":i,h),b=void 0===n?S:n>>>0;if(0===b)return[];if(0===s.length)return null===g(y,s)?[s]:[];for(var v=0,x=0,j=[];x<s.length;){y.lastIndex=w?0:x;var E,T=g(y,w?k(s,x):s);if(null===T||(E=N(m(y.lastIndex+(w?x:0)),s.length))===v)x=d(s,x,u);else{if(C(j,k(s,v,x)),j.length===b)return j;for(var R=1;R<=T.length-1;R++)if(C(j,T[R]),j.length===b)return j;x=v=E}}return C(j,k(s,v)),j}]},!T,w)},{"../internals/advance-string-index":112,"../internals/an-object":114,"../internals/array-slice":131,"../internals/fails":171,"../internals/fix-regexp-well-known-symbol-logic":172,"../internals/function-apply":174,"../internals/function-call":177,"../internals/function-uncurry-this":181,"../internals/get-method":186,"../internals/is-null-or-undefined":207,"../internals/is-regexp":211,"../internals/regexp-exec":256,"../internals/regexp-exec-abstract":255,"../internals/regexp-sticky-helpers":259,"../internals/require-object-coercible":262,"../internals/species-constructor":270,"../internals/to-length":284,"../internals/to-string":291}],348:[function(e,t,r){var n,i=e("../internals/export"),o=e("../internals/function-uncurry-this-clause"),s=e("../internals/object-get-own-property-descriptor").f,a=e("../internals/to-length"),l=e("../internals/to-string"),c=e("../internals/not-a-regexp"),u=e("../internals/require-object-coercible"),p=e("../internals/correct-is-regexp-logic"),d=e("../internals/is-pure"),m=o("".slice),f=Math.min,h=p("startsWith");i({target:"String",proto:!0,forced:!(!d&&!h&&(n=s(String.prototype,"startsWith"),n&&!n.writable)||h)},{startsWith:function(e){var t=l(u(this));c(e);var r=a(f(arguments.length>1?arguments[1]:void 0,t.length)),n=l(e);return m(t,r,r+n.length)===n}})},{"../internals/correct-is-regexp-logic":142,"../internals/export":170,"../internals/function-uncurry-this-clause":180,"../internals/is-pure":210,"../internals/not-a-regexp":227,"../internals/object-get-own-property-descriptor":232,"../internals/require-object-coercible":262,"../internals/to-length":284,"../internals/to-string":291}],349:[function(e,t,r){var n=e("../internals/export"),i=e("../internals/string-trim").trim;n({target:"String",proto:!0,forced:e("../internals/string-trim-forced")("trim")},{trim:function(){return i(this)}})},{"../internals/export":170,"../internals/string-trim":273,"../internals/string-trim-forced":272}],350:[function(e,t,r){var n=e("../internals/export"),i=e("../internals/global"),o=e("../internals/function-call"),s=e("../internals/function-uncurry-this"),a=e("../internals/is-pure"),l=e("../internals/descriptors"),c=e("../internals/symbol-constructor-detection"),u=e("../internals/fails"),p=e("../internals/has-own-property"),d=e("../internals/object-is-prototype-of"),m=e("../internals/an-object"),f=e("../internals/to-indexed-object"),h=e("../internals/to-property-key"),y=e("../internals/to-string"),g=e("../internals/create-property-descriptor"),b=e("../internals/object-create"),v=e("../internals/object-keys"),x=e("../internals/object-get-own-property-names"),w=e("../internals/object-get-own-property-names-external"),S=e("../internals/object-get-own-property-symbols"),N=e("../internals/object-get-own-property-descriptor"),j=e("../internals/object-define-property"),E=e("../internals/object-define-properties"),C=e("../internals/object-property-is-enumerable"),k=e("../internals/define-built-in"),T=e("../internals/define-built-in-accessor"),R=e("../internals/shared"),O=e("../internals/shared-key"),P=e("../internals/hidden-keys"),_=e("../internals/uid"),A=e("../internals/well-known-symbol"),I=e("../internals/well-known-symbol-wrapped"),M=e("../internals/well-known-symbol-define"),D=e("../internals/symbol-define-to-primitive"),z=e("../internals/set-to-string-tag"),B=e("../internals/internal-state"),L=e("../internals/array-iteration").forEach,q=O("hidden"),U="Symbol",H="prototype",F=B.set,$=B.getterFor(U),V=Object[H],G=i.Symbol,W=G&&G[H],K=i.RangeError,X=i.TypeError,Q=i.QObject,Y=N.f,J=j.f,Z=w.f,ee=C.f,te=s([].push),re=R("symbols"),ne=R("op-symbols"),ie=R("wks"),oe=!Q||!Q[H]||!Q[H].findChild,se=function(e,t,r){var n=Y(V,t);n&&delete V[t],J(e,t,r),n&&e!==V&&J(V,t,n)},ae=l&&u(function(){return 7!==b(J({},"a",{get:function(){return J(this,"a",{value:7}).a}})).a})?se:J,le=function(e,t){var r=re[e]=b(W);return F(r,{type:U,tag:e,description:t}),l||(r.description=t),r},ce=function(e,t,r){e===V&&ce(ne,t,r),m(e);var n=h(t);return m(r),p(re,n)?(r.enumerable?(p(e,q)&&e[q][n]&&(e[q][n]=!1),r=b(r,{enumerable:g(0,!1)})):(p(e,q)||J(e,q,g(1,b(null))),e[q][n]=!0),ae(e,n,r)):J(e,n,r)},ue=function(e,t){m(e);var r=f(t),n=v(r).concat(he(r));return L(n,function(t){l&&!o(de,r,t)||ce(e,t,r[t])}),e},pe=function(e,t){return void 0===t?b(e):ue(b(e),t)},de=function(e){var t=h(e),r=o(ee,this,t);return!(this===V&&p(re,t)&&!p(ne,t))&&(!(r||!p(this,t)||!p(re,t)||p(this,q)&&this[q][t])||r)},me=function(e,t){var r=f(e),n=h(t);if(r!==V||!p(re,n)||p(ne,n)){var i=Y(r,n);return!i||!p(re,n)||p(r,q)&&r[q][n]||(i.enumerable=!0),i}},fe=function(e){var t=Z(f(e)),r=[];return L(t,function(e){p(re,e)||p(P,e)||te(r,e)}),r},he=function(e){var t=e===V,r=Z(t?ne:f(e)),n=[];return L(r,function(e){!p(re,e)||t&&!p(V,e)||te(n,re[e])}),n};c||(G=function(){if(d(W,this))throw new X("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?y(arguments[0]):void 0,t=_(e),r=function(e){var n=void 0===this?i:this;n===V&&o(r,ne,e),p(n,q)&&p(n[q],t)&&(n[q][t]=!1);var s=g(1,e);try{ae(n,t,s)}catch(a){if(!(a instanceof K))throw a;se(n,t,s)}};return l&&oe&&ae(V,t,{configurable:!0,set:r}),le(t,e)},k(W=G[H],"toString",function(){return $(this).tag}),k(G,"withoutSetter",function(e){return le(_(e),e)}),C.f=de,j.f=ce,E.f=ue,N.f=me,x.f=w.f=fe,S.f=he,I.f=function(e){return le(A(e),e)},l&&(T(W,"description",{configurable:!0,get:function(){return $(this).description}}),a||k(V,"propertyIsEnumerable",de,{unsafe:!0}))),n({global:!0,constructor:!0,wrap:!0,forced:!c,sham:!c},{Symbol:G}),L(v(ie),function(e){M(e)}),n({target:U,stat:!0,forced:!c},{useSetter:function(){oe=!0},useSimple:function(){oe=!1}}),n({target:"Object",stat:!0,forced:!c,sham:!l},{create:pe,defineProperty:ce,defineProperties:ue,getOwnPropertyDescriptor:me}),n({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:fe}),D(),z(G,U),P[q]=!0},{"../internals/an-object":114,"../internals/array-iteration":125,"../internals/create-property-descriptor":146,"../internals/define-built-in":149,"../internals/define-built-in-accessor":148,"../internals/descriptors":153,"../internals/export":170,"../internals/fails":171,"../internals/function-call":177,"../internals/function-uncurry-this":181,"../internals/global":188,"../internals/has-own-property":189,"../internals/hidden-keys":190,"../internals/internal-state":199,"../internals/is-pure":210,"../internals/object-create":229,"../internals/object-define-properties":230,"../internals/object-define-property":231,"../internals/object-get-own-property-descriptor":232,"../internals/object-get-own-property-names":234,"../internals/object-get-own-property-names-external":233,"../internals/object-get-own-property-symbols":235,"../internals/object-is-prototype-of":238,"../internals/object-keys":240,"../internals/object-property-is-enumerable":241,"../internals/set-to-string-tag":266,"../internals/shared":269,"../internals/shared-key":267,"../internals/symbol-constructor-detection":274,"../internals/symbol-define-to-primitive":275,"../internals/to-indexed-object":282,"../internals/to-property-key":289,"../internals/to-string":291,"../internals/uid":299,"../internals/well-known-symbol":306,"../internals/well-known-symbol-define":304,"../internals/well-known-symbol-wrapped":305}],351:[function(e,t,r){var n=e("../internals/export"),i=e("../internals/descriptors"),o=e("../internals/global"),s=e("../internals/function-uncurry-this"),a=e("../internals/has-own-property"),l=e("../internals/is-callable"),c=e("../internals/object-is-prototype-of"),u=e("../internals/to-string"),p=e("../internals/define-built-in-accessor"),d=e("../internals/copy-constructor-properties"),m=o.Symbol,f=m&&m.prototype;if(i&&l(m)&&(!("description"in f)||void 0!==m().description)){var h={},y=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:u(arguments[0]),t=c(f,this)?new m(e):void 0===e?m():m(e);return""===e&&(h[t]=!0),t};d(y,m),y.prototype=f,f.constructor=y;var g="Symbol(description detection)"===String(m("description detection")),b=s(f.valueOf),v=s(f.toString),x=/^Symbol\((.*)\)[^)]+$/,w=s("".replace),S=s("".slice);p(f,"description",{configurable:!0,get:function(){var e=b(this);if(a(h,e))return"";var t=v(e),r=g?S(t,7,-1):w(t,x,"$1");return""===r?void 0:r}}),n({global:!0,constructor:!0,forced:!0},{Symbol:y})}},{"../internals/copy-constructor-properties":141,"../internals/define-built-in-accessor":148,"../internals/descriptors":153,"../internals/export":170,"../internals/function-uncurry-this":181,"../internals/global":188,"../internals/has-own-property":189,"../internals/is-callable":203,"../internals/object-is-prototype-of":238,"../internals/to-string":291}],352:[function(e,t,r){var n=e("../internals/export"),i=e("../internals/get-built-in"),o=e("../internals/has-own-property"),s=e("../internals/to-string"),a=e("../internals/shared"),l=e("../internals/symbol-registry-detection"),c=a("string-to-symbol-registry"),u=a("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!l},{for:function(e){var t=s(e);if(o(c,t))return c[t];var r=i("Symbol")(t);return c[t]=r,u[r]=t,r}})},{"../internals/export":170,"../internals/get-built-in":182,"../internals/has-own-property":189,"../internals/shared":269,"../internals/symbol-registry-detection":276,"../internals/to-string":291}],353:[function(e,t,r){e("../internals/well-known-symbol-define")("iterator")},{"../internals/well-known-symbol-define":304}],354:[function(e,t,r){e("../modules/es.symbol.constructor"),e("../modules/es.symbol.for"),e("../modules/es.symbol.key-for"),e("../modules/es.json.stringify"),e("../modules/es.object.get-own-property-symbols")},{"../modules/es.json.stringify":323,"../modules/es.object.get-own-property-symbols":327,"../modules/es.symbol.constructor":350,"../modules/es.symbol.for":352,"../modules/es.symbol.key-for":355}],355:[function(e,t,r){var n=e("../internals/export"),i=e("../internals/has-own-property"),o=e("../internals/is-symbol"),s=e("../internals/try-to-string"),a=e("../internals/shared"),l=e("../internals/symbol-registry-detection"),c=a("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!l},{keyFor:function(e){if(!o(e))throw new TypeError(s(e)+" is not a symbol");if(i(c,e))return c[e]}})},{"../internals/export":170,"../internals/has-own-property":189,"../internals/is-symbol":212,"../internals/shared":269,"../internals/symbol-registry-detection":276,"../internals/try-to-string":293}],356:[function(e,t,r){var n=e("../internals/function-uncurry-this"),i=e("../internals/array-buffer-view-core"),o=n(e("../internals/array-copy-within")),s=i.aTypedArray;(0,i.exportTypedArrayMethod)("copyWithin",function(e,t){return o(s(this),e,t,arguments.length>2?arguments[2]:void 0)})},{"../internals/array-buffer-view-core":117,"../internals/array-copy-within":119,"../internals/function-uncurry-this":181}],357:[function(e,t,r){var n=e("../internals/array-buffer-view-core"),i=e("../internals/array-iteration").every,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("every",function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":117,"../internals/array-iteration":125}],358:[function(e,t,r){var n=e("../internals/array-buffer-view-core"),i=e("../internals/array-fill"),o=e("../internals/to-big-int"),s=e("../internals/classof"),a=e("../internals/function-call"),l=e("../internals/function-uncurry-this"),c=e("../internals/fails"),u=n.aTypedArray,p=n.exportTypedArrayMethod,d=l("".slice);p("fill",function(e){var t=arguments.length;u(this);var r="Big"===d(s(this),0,3)?o(e):+e;return a(i,this,r,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)},c(function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e}))},{"../internals/array-buffer-view-core":117,"../internals/array-fill":120,"../internals/classof":138,"../internals/fails":171,"../internals/function-call":177,"../internals/function-uncurry-this":181,"../internals/to-big-int":280}],359:[function(e,t,r){var n=e("../internals/array-buffer-view-core"),i=e("../internals/array-iteration").filter,o=e("../internals/typed-array-from-species-and-list"),s=n.aTypedArray;(0,n.exportTypedArrayMethod)("filter",function(e){var t=i(s(this),e,arguments.length>1?arguments[1]:void 0);return o(this,t)})},{"../internals/array-buffer-view-core":117,"../internals/array-iteration":125,"../internals/typed-array-from-species-and-list":296}],360:[function(e,t,r){var n=e("../internals/array-buffer-view-core"),i=e("../internals/array-iteration").findIndex,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("findIndex",function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":117,"../internals/array-iteration":125}],361:[function(e,t,r){var n=e("../internals/array-buffer-view-core"),i=e("../internals/array-iteration").find,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("find",function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":117,"../internals/array-iteration":125}],362:[function(e,t,r){var n=e("../internals/array-buffer-view-core"),i=e("../internals/array-iteration").forEach,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("forEach",function(e){i(o(this),e,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":117,"../internals/array-iteration":125}],363:[function(e,t,r){var n=e("../internals/array-buffer-view-core"),i=e("../internals/array-includes").includes,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("includes",function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":117,"../internals/array-includes":124}],364:[function(e,t,r){var n=e("../internals/array-buffer-view-core"),i=e("../internals/array-includes").indexOf,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("indexOf",function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":117,"../internals/array-includes":124}],365:[function(e,t,r){var n=e("../internals/global"),i=e("../internals/fails"),o=e("../internals/function-uncurry-this"),s=e("../internals/array-buffer-view-core"),a=e("../modules/es.array.iterator"),l=e("../internals/well-known-symbol")("iterator"),c=n.Uint8Array,u=o(a.values),p=o(a.keys),d=o(a.entries),m=s.aTypedArray,f=s.exportTypedArrayMethod,h=c&&c.prototype,y=!i(function(){h[l].call([1])}),g=!!h&&h.values&&h[l]===h.values&&"values"===h.values.name,b=function(){return u(m(this))};f("entries",function(){return d(m(this))},y),f("keys",function(){return p(m(this))},y),f("values",b,y||!g,{name:"values"}),f(l,b,y||!g,{name:"values"})},{"../internals/array-buffer-view-core":117,"../internals/fails":171,"../internals/function-uncurry-this":181,"../internals/global":188,"../internals/well-known-symbol":306,"../modules/es.array.iterator":316}],366:[function(e,t,r){var n=e("../internals/array-buffer-view-core"),i=e("../internals/function-uncurry-this"),o=n.aTypedArray,s=n.exportTypedArrayMethod,a=i([].join);s("join",function(e){return a(o(this),e)})},{"../internals/array-buffer-view-core":117,"../internals/function-uncurry-this":181}],367:[function(e,t,r){var n=e("../internals/array-buffer-view-core"),i=e("../internals/function-apply"),o=e("../internals/array-last-index-of"),s=n.aTypedArray;(0,n.exportTypedArrayMethod)("lastIndexOf",function(e){var t=arguments.length;return i(o,s(this),t>1?[e,arguments[1]]:[e])})},{"../internals/array-buffer-view-core":117,"../internals/array-last-index-of":126,"../internals/function-apply":174}],368:[function(e,t,r){var n=e("../internals/array-buffer-view-core"),i=e("../internals/array-iteration").map,o=e("../internals/typed-array-species-constructor"),s=n.aTypedArray;(0,n.exportTypedArrayMethod)("map",function(e){return i(s(this),e,arguments.length>1?arguments[1]:void 0,function(e,t){return new(o(e))(t)})})},{"../internals/array-buffer-view-core":117,"../internals/array-iteration":125,"../internals/typed-array-species-constructor":298}],369:[function(e,t,r){var n=e("../internals/array-buffer-view-core"),i=e("../internals/array-reduce").right,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("reduceRight",function(e){var t=arguments.length;return i(o(this),e,t,t>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":117,"../internals/array-reduce":129}],370:[function(e,t,r){var n=e("../internals/array-buffer-view-core"),i=e("../internals/array-reduce").left,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("reduce",function(e){var t=arguments.length;return i(o(this),e,t,t>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":117,"../internals/array-reduce":129}],371:[function(e,t,r){var n=e("../internals/array-buffer-view-core"),i=n.aTypedArray,o=n.exportTypedArrayMethod,s=Math.floor;o("reverse",function(){for(var e,t=this,r=i(t).length,n=s(r/2),o=0;o<n;)e=t[o],t[o++]=t[--r],t[r]=e;return t})},{"../internals/array-buffer-view-core":117}],372:[function(e,t,r){var n=e("../internals/global"),i=e("../internals/function-call"),o=e("../internals/array-buffer-view-core"),s=e("../internals/length-of-array-like"),a=e("../internals/to-offset"),l=e("../internals/to-object"),c=e("../internals/fails"),u=n.RangeError,p=n.Int8Array,d=p&&p.prototype,m=d&&d.set,f=o.aTypedArray,h=o.exportTypedArrayMethod,y=!c(function(){var e=new Uint8ClampedArray(2);return i(m,e,{length:1,0:3},1),3!==e[1]}),g=y&&o.NATIVE_ARRAY_BUFFER_VIEWS&&c(function(){var e=new p(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]});h("set",function(e){f(this);var t=a(arguments.length>1?arguments[1]:void 0,1),r=l(e);if(y)return i(m,this,r,t);var n=this.length,o=s(r),c=0;if(o+t>n)throw new u("Wrong length");for(;c<o;)this[t+c]=r[c++]},!y||g)},{"../internals/array-buffer-view-core":117,"../internals/fails":171,"../internals/function-call":177,"../internals/global":188,"../internals/length-of-array-like":219,"../internals/to-object":285,"../internals/to-offset":286}],373:[function(e,t,r){var n=e("../internals/array-buffer-view-core"),i=e("../internals/typed-array-species-constructor"),o=e("../internals/fails"),s=e("../internals/array-slice"),a=n.aTypedArray;(0,n.exportTypedArrayMethod)("slice",function(e,t){for(var r=s(a(this),e,t),n=i(this),o=0,l=r.length,c=new n(l);l>o;)c[o]=r[o++];return c},o(function(){new Int8Array(1).slice()}))},{"../internals/array-buffer-view-core":117,"../internals/array-slice":131,"../internals/fails":171,"../internals/typed-array-species-constructor":298}],374:[function(e,t,r){var n=e("../internals/array-buffer-view-core"),i=e("../internals/array-iteration").some,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("some",function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":117,"../internals/array-iteration":125}],375:[function(e,t,r){var n=e("../internals/global"),i=e("../internals/function-uncurry-this-clause"),o=e("../internals/fails"),s=e("../internals/a-callable"),a=e("../internals/array-sort"),l=e("../internals/array-buffer-view-core"),c=e("../internals/engine-ff-version"),u=e("../internals/engine-is-ie-or-edge"),p=e("../internals/engine-v8-version"),d=e("../internals/engine-webkit-version"),m=l.aTypedArray,f=l.exportTypedArrayMethod,h=n.Uint16Array,y=h&&i(h.prototype.sort),g=!(!y||o(function(){y(new h(2),null)})&&o(function(){y(new h(2),{})})),b=!!y&&!o(function(){if(p)return p<74;if(c)return c<67;if(u)return!0;if(d)return d<602;var e,t,r=new h(516),n=Array(516);for(e=0;e<516;e++)t=e%4,r[e]=515-e,n[e]=e-2*t+3;for(y(r,function(e,t){return(e/4|0)-(t/4|0)}),e=0;e<516;e++)if(r[e]!==n[e])return!0}),v=function(e){return function(t,r){return void 0!==e?+e(t,r)||0:r!=r?-1:t!=t?1:0===t&&0===r?1/t>0&&1/r<0?1:-1:t>r}};f("sort",function(e){return void 0!==e&&s(e),b?y(this,e):a(m(this),v(e))},!b||g)},{"../internals/a-callable":108,"../internals/array-buffer-view-core":117,"../internals/array-sort":132,"../internals/engine-ff-version":158,"../internals/engine-is-ie-or-edge":161,"../internals/engine-v8-version":167,"../internals/engine-webkit-version":168,"../internals/fails":171,"../internals/function-uncurry-this-clause":180,"../internals/global":188}],376:[function(e,t,r){var n=e("../internals/array-buffer-view-core"),i=e("../internals/to-length"),o=e("../internals/to-absolute-index"),s=e("../internals/typed-array-species-constructor"),a=n.aTypedArray;(0,n.exportTypedArrayMethod)("subarray",function(e,t){var r=a(this),n=r.length,l=o(e,n);return new(s(r))(r.buffer,r.byteOffset+l*r.BYTES_PER_ELEMENT,i((void 0===t?n:o(t,n))-l))})},{"../internals/array-buffer-view-core":117,"../internals/to-absolute-index":279,"../internals/to-length":284,"../internals/typed-array-species-constructor":298}],377:[function(e,t,r){var n=e("../internals/global"),i=e("../internals/function-apply"),o=e("../internals/array-buffer-view-core"),s=e("../internals/fails"),a=e("../internals/array-slice"),l=n.Int8Array,c=o.aTypedArray,u=o.exportTypedArrayMethod,p=[].toLocaleString,d=!!l&&s(function(){p.call(new l(1))});u("toLocaleString",function(){return i(p,d?a(c(this)):c(this),a(arguments))},s(function(){return[1,2].toLocaleString()!==new l([1,2]).toLocaleString()})||!s(function(){l.prototype.toLocaleString.call([1,2])}))},{"../internals/array-buffer-view-core":117,"../internals/array-slice":131,"../internals/fails":171,"../internals/function-apply":174,"../internals/global":188}],378:[function(e,t,r){var n=e("../internals/array-buffer-view-core").exportTypedArrayMethod,i=e("../internals/fails"),o=e("../internals/global"),s=e("../internals/function-uncurry-this"),a=o.Uint8Array,l=a&&a.prototype||{},c=[].toString,u=s([].join);i(function(){c.call({})})&&(c=function(){return u(this)});var p=l.toString!==c;n("toString",c,p)},{"../internals/array-buffer-view-core":117,"../internals/fails":171,"../internals/function-uncurry-this":181,"../internals/global":188}],379:[function(e,t,r){e("../internals/typed-array-constructor")("Uint8",function(e){return function(t,r,n){return e(this,t,r,n)}})},{"../internals/typed-array-constructor":294}],380:[function(e,t,r){var n=e("../internals/global"),i=e("../internals/dom-iterables"),o=e("../internals/dom-token-list-prototype"),s=e("../internals/array-for-each"),a=e("../internals/create-non-enumerable-property"),l=function(e){if(e&&e.forEach!==s)try{a(e,"forEach",s)}catch(t){e.forEach=s}};for(var c in i)i[c]&&l(n[c]&&n[c].prototype);l(o)},{"../internals/array-for-each":121,"../internals/create-non-enumerable-property":145,"../internals/dom-iterables":156,"../internals/dom-token-list-prototype":157,"../internals/global":188}],381:[function(e,t,r){var n=e("../internals/global"),i=e("../internals/dom-iterables"),o=e("../internals/dom-token-list-prototype"),s=e("../modules/es.array.iterator"),a=e("../internals/create-non-enumerable-property"),l=e("../internals/set-to-string-tag"),c=e("../internals/well-known-symbol")("iterator"),u=s.values,p=function(e,t){if(e){if(e[c]!==u)try{a(e,c,u)}catch(n){e[c]=u}if(l(e,t,!0),i[t])for(var r in s)if(e[r]!==s[r])try{a(e,r,s[r])}catch(n){e[r]=s[r]}}};for(var d in i)p(n[d]&&n[d].prototype,d);p(o,"DOMTokenList")},{"../internals/create-non-enumerable-property":145,"../internals/dom-iterables":156,"../internals/dom-token-list-prototype":157,"../internals/global":188,"../internals/set-to-string-tag":266,"../internals/well-known-symbol":306,"../modules/es.array.iterator":316}],382:[function(e,t,r){function n(e){return Array.isArray?Array.isArray(e):"[object Array]"===g(e)}function i(e){return"boolean"==typeof e}function o(e){return null===e}function s(e){return null==e}function a(e){return"number"==typeof e}function l(e){return"string"==typeof e}function c(e){return"symbol"==typeof e}function u(e){return void 0===e}function p(e){return"[object RegExp]"===g(e)}function d(e){return"object"==typeof e&&null!==e}function m(e){return"[object Date]"===g(e)}function f(e){return"[object Error]"===g(e)||e instanceof Error}function h(e){return"function"==typeof e}function y(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function g(e){return Object.prototype.toString.call(e)}r.isArray=n,r.isBoolean=i,r.isNull=o,r.isNullOrUndefined=s,r.isNumber=a,r.isString=l,r.isSymbol=c,r.isUndefined=u,r.isRegExp=p,r.isObject=d,r.isDate=m,r.isError=f,r.isFunction=h,r.isPrimitive=y,r.isBuffer=e("buffer").Buffer.isBuffer},{buffer:103}],383:[function(e,t,r){!function(e){var n=function(){var e=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,t=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,r=/[^-+\dA-Z]/g;return function(l,c,u,p){if(1!==arguments.length||"string"!==a(l)||/\d/.test(l)||(c=l,l=void 0),(l=l||new Date)instanceof Date||(l=new Date(l)),isNaN(l))throw TypeError("Invalid date");var d=(c=String(n.masks[c]||c||n.masks.default)).slice(0,4);"UTC:"!==d&&"GMT:"!==d||(c=c.slice(4),u=!0,"GMT:"===d&&(p=!0));var m=u?"getUTC":"get",f=l[m+"Date"](),h=l[m+"Day"](),y=l[m+"Month"](),g=l[m+"FullYear"](),b=l[m+"Hours"](),v=l[m+"Minutes"](),x=l[m+"Seconds"](),w=l[m+"Milliseconds"](),S=u?0:l.getTimezoneOffset(),N=o(l),j=s(l),E={d:f,dd:i(f),ddd:n.i18n.dayNames[h],dddd:n.i18n.dayNames[h+7],m:y+1,mm:i(y+1),mmm:n.i18n.monthNames[y],mmmm:n.i18n.monthNames[y+12],yy:String(g).slice(2),yyyy:g,h:b%12||12,hh:i(b%12||12),H:b,HH:i(b),M:v,MM:i(v),s:x,ss:i(x),l:i(w,3),L:i(Math.round(w/10)),t:b<12?"a":"p",tt:b<12?"am":"pm",T:b<12?"A":"P",TT:b<12?"AM":"PM",Z:p?"GMT":u?"UTC":(String(l).match(t)||[""]).pop().replace(r,""),o:(S>0?"-":"+")+i(100*Math.floor(Math.abs(S)/60)+Math.abs(S)%60,4),S:["th","st","nd","rd"][f%10>3?0:(f%100-f%10!=10)*f%10],W:N,N:j};return c.replace(e,function(e){return e in E?E[e]:e.slice(1,e.length-1)})}}();function i(e,t){for(e=String(e),t=t||2;e.length<t;)e="0"+e;return e}function o(e){var t=new Date(e.getFullYear(),e.getMonth(),e.getDate());t.setDate(t.getDate()-(t.getDay()+6)%7+3);var r=new Date(t.getFullYear(),0,4);r.setDate(r.getDate()-(r.getDay()+6)%7+3);var n=t.getTimezoneOffset()-r.getTimezoneOffset();t.setHours(t.getHours()-n);var i=(t-r)/6048e5;return 1+Math.floor(i)}function s(e){var t=e.getDay();return 0===t&&(t=7),t}function a(e){return null===e?"null":void 0===e?"undefined":"object"!=typeof e?typeof e:Array.isArray(e)?"array":{}.toString.call(e).slice(8,-1).toLowerCase()}n.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},n.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]},"object"==typeof r?t.exports=n:e.dateFormat=n}(this)},{}],384:[function(e,t,r){var n=e("has-property-descriptors")(),i=e("get-intrinsic"),o=n&&i("%Object.defineProperty%",!0);if(o)try{o({},"a",{value:1})}catch(c){o=!1}var s=i("%SyntaxError%"),a=i("%TypeError%"),l=e("gopd");t.exports=function(e,t,r){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new a("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new a("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new a("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new a("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new a("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new a("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],p=!!l&&l(e,t);if(o)o(e,t,{configurable:null===c&&p?p.configurable:!c,enumerable:null===n&&p?p.enumerable:!n,value:r,writable:null===i&&p?p.writable:!i});else{if(!u&&(n||i||c))throw new s("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=r}}},{"get-intrinsic":390,gopd:391,"has-property-descriptors":392}],385:[function(e,t,r){var n=/["'&<>]/;function i(e){var t,r=""+e,i=n.exec(r);if(!i)return r;var o="",s=0,a=0;for(s=i.index;s<r.length;s++){switch(r.charCodeAt(s)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}a!==s&&(o+=r.substring(a,s)),a=s+1,o+=t}return a!==s?o+r.substring(a,s):o}t.exports=i},{}],386:[function(e,t,r){var n,i="object"==typeof Reflect?Reflect:null,o=i&&"function"==typeof i.apply?i.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};function s(e){console&&console.warn}n=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function l(){l.init.call(this)}t.exports=l,t.exports.once=x,l.EventEmitter=l,l.prototype._events=void 0,l.prototype._eventsCount=0,l.prototype._maxListeners=void 0;var c=10;function u(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function p(e){return void 0===e._maxListeners?l.defaultMaxListeners:e._maxListeners}function d(e,t,r,n){var i,o,a;if(u(r),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),a=o[t]),void 0===a)a=o[t]=r,++e._eventsCount;else if("function"==typeof a?a=o[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(i=p(e))>0&&a.length>i&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,s(l)}return e}function m(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=m.bind(n);return i.listener=r,n.wrapFn=i,i}function h(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?v(i):g(i,i.length)}function y(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function g(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function b(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function v(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function x(e,t){return new Promise(function(r,n){function i(r){e.removeListener(t,o),n(r)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),r([].slice.call(arguments))}S(e,t,o,{once:!0}),"error"!==t&&w(e,i,{once:!0})})}function w(e,t,r){"function"==typeof e.on&&S(e,"error",t,r)}function S(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,function i(o){n.once&&e.removeEventListener(t,i),r(o)})}}Object.defineProperty(l,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");c=e}}),l.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},l.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},l.prototype.getMaxListeners=function(){return p(this)},l.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var n="error"===e,i=this._events;if(void 0!==i)n=n&&void 0===i.error;else if(!n)return!1;if(n){var s;if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var l=i[e];if(void 0===l)return!1;if("function"==typeof l)o(l,this,t);else{var c=l.length,u=g(l,c);for(r=0;r<c;++r)o(u[r],this,t)}return!0},l.prototype.addListener=function(e,t){return d(this,e,t,!1)},l.prototype.on=l.prototype.addListener,l.prototype.prependListener=function(e,t){return d(this,e,t,!0)},l.prototype.once=function(e,t){return u(t),this.on(e,f(this,e,t)),this},l.prototype.prependOnceListener=function(e,t){return u(t),this.prependListener(e,f(this,e,t)),this},l.prototype.removeListener=function(e,t){var r,n,i,o,s;if(u(t),void 0===(n=this._events))return this;if(void 0===(r=n[e]))return this;if(r===t||r.listener===t)0===--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(i=-1,o=r.length-1;o>=0;o--)if(r[o]===t||r[o].listener===t){s=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():b(r,i),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,s||t)}return this},l.prototype.off=l.prototype.removeListener,l.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var i,o=Object.keys(r);for(n=0;n<o.length;++n)"removeListener"!==(i=o[n])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},l.prototype.listeners=function(e){return h(this,e,!0)},l.prototype.rawListeners=function(e){return h(this,e,!1)},l.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):y.call(e,t)},l.prototype.listenerCount=y,l.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},{}],387:[function(e,t,r){var n=e("is-callable"),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty,s=function(e,t,r){for(var n=0,i=e.length;n<i;n++)o.call(e,n)&&(null==r?t(e[n],n,e):t.call(r,e[n],n,e))},a=function(e,t,r){for(var n=0,i=e.length;n<i;n++)null==r?t(e.charAt(n),n,e):t.call(r,e.charAt(n),n,e)},l=function(e,t,r){for(var n in e)o.call(e,n)&&(null==r?t(e[n],n,e):t.call(r,e[n],n,e))},c=function(e,t,r){if(!n(t))throw new TypeError("iterator must be a function");var o;arguments.length>=3&&(o=r),"[object Array]"===i.call(e)?s(e,t,o):"string"==typeof e?a(e,t,o):l(e,t,o)};t.exports=c},{"is-callable":410}],388:[function(e,t,r){var n="Function.prototype.bind called on incompatible ",i=Object.prototype.toString,o=Math.max,s="[object Function]",a=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var i=0;i<t.length;i+=1)r[i+e.length]=t[i];return r},l=function(e,t){for(var r=[],n=t,i=0;n<e.length;n+=1,i+=1)r[i]=e[n];return r},c=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r};t.exports=function(e){var t=this;if("function"!=typeof t||i.apply(t)!==s)throw new TypeError(n+t);for(var r,u=l(arguments,1),p=function(){if(this instanceof r){var n=t.apply(this,a(u,arguments));return Object(n)===n?n:this}return t.apply(e,a(u,arguments))},d=o(0,t.length-u.length),m=[],f=0;f<d;f++)m[f]="$"+f;if(r=Function("binder","return function ("+c(m,",")+"){ return binder.apply(this,arguments); }")(p),t.prototype){var h=function(){};h.prototype=t.prototype,r.prototype=new h,h.prototype=null}return r}},{}],389:[function(e,t,r){var n=e("./implementation");t.exports=Function.prototype.bind||n},{"./implementation":388}],390:[function(e,t,r){var n,i=SyntaxError,o=Function,s=TypeError,a=function(e){try{return o('"use strict"; return ('+e+").constructor;")()}catch(t){}},l=Object.getOwnPropertyDescriptor;if(l)try{l({},"")}catch(P){l=null}var c=function(){throw new s},u=l?function(){try{return c}catch(e){try{return l(arguments,"callee").get}catch(t){return c}}}():c,p=e("has-symbols")(),d=e("has-proto")(),m=Object.getPrototypeOf||(d?function(e){return e.__proto__}:null),f={},h="undefined"!=typeof Uint8Array&&m?m(Uint8Array):n,y={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":p&&m?m([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":f,"%AsyncGenerator%":f,"%AsyncGeneratorFunction%":f,"%AsyncIteratorPrototype%":f,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":f,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":p&&m?m(m([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&p&&m?m((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&p&&m?m((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":p&&m?m(""[Symbol.iterator]()):n,"%Symbol%":p?Symbol:n,"%SyntaxError%":i,"%ThrowTypeError%":u,"%TypedArray%":h,"%TypeError%":s,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};if(m)try{null.error}catch(P){var g=m(m(P));y["%Error.prototype%"]=g}var b=function e(t){var r;if("%AsyncFunction%"===t)r=a("async function () {}");else if("%GeneratorFunction%"===t)r=a("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=a("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&m&&(r=m(i.prototype))}return y[t]=r,r},v={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},x=e("function-bind"),w=e("hasown"),S=x.call(Function.call,Array.prototype.concat),N=x.call(Function.apply,Array.prototype.splice),j=x.call(Function.call,String.prototype.replace),E=x.call(Function.call,String.prototype.slice),C=x.call(Function.call,RegExp.prototype.exec),k=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,T=/\\(\\)?/g,R=function(e){var t=E(e,0,1),r=E(e,-1);if("%"===t&&"%"!==r)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new i("invalid intrinsic syntax, expected opening `%`");var n=[];return j(e,k,function(e,t,r,i){n[n.length]=r?j(i,T,"$1"):t||e}),n},O=function(e,t){var r,n=e;if(w(v,n)&&(n="%"+(r=v[n])[0]+"%"),w(y,n)){var o=y[n];if(o===f&&(o=b(n)),void 0===o&&!t)throw new s("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new i("intrinsic "+e+" does not exist!")};t.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new s("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new s('"allowMissing" argument must be a boolean');if(null===C(/^%?[^%]*%?$/,e))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=R(e),n=r.length>0?r[0]:"",o=O("%"+n+"%",t),a=o.name,c=o.value,u=!1,p=o.alias;p&&(n=p[0],N(r,S([0,1],p)));for(var d=1,m=!0;d<r.length;d+=1){var f=r[d],h=E(f,0,1),g=E(f,-1);if(('"'===h||"'"===h||"`"===h||'"'===g||"'"===g||"`"===g)&&h!==g)throw new i("property names with quotes must have matching quotes");if("constructor"!==f&&m||(u=!0),w(y,a="%"+(n+="."+f)+"%"))c=y[a];else if(null!=c){if(!(f in c)){if(!t)throw new s("base intrinsic for "+e+" exists, but the property is not available.");return}if(l&&d+1>=r.length){var b=l(c,f);c=(m=!!b)&&"get"in b&&!("originalValue"in b.get)?b.get:c[f]}else m=w(c,f),c=c[f];m&&!u&&(y[a]=c)}}return c}},{"function-bind":389,"has-proto":393,"has-symbols":394,hasown:397}],391:[function(e,t,r){var n=e("get-intrinsic")("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(i){n=null}t.exports=n},{"get-intrinsic":390}],392:[function(e,t,r){var n=e("get-intrinsic")("%Object.defineProperty%",!0),i=function(){if(n)try{return n({},"a",{value:1}),!0}catch(e){return!1}return!1};i.hasArrayLengthDefineBug=function(){if(!i())return null;try{return 1!==n([],"length",{value:1}).length}catch(e){return!0}},t.exports=i},{"get-intrinsic":390}],393:[function(e,t,r){var n={foo:{}},i=Object;t.exports=function(){return{__proto__:n}.foo===n.foo&&!({__proto__:null}instanceof i)}},{}],394:[function(e,t,r){var n="undefined"!=typeof Symbol&&Symbol,i=e("./shams");t.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},{"./shams":395}],395:[function(e,t,r){t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;var n=42;for(t in e[t]=n,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==n||!0!==o.enumerable)return!1}return!0}},{}],396:[function(e,t,r){var n=e("has-symbols/shams");t.exports=function(){return n()&&!!Symbol.toStringTag}},{"has-symbols/shams":395}],397:[function(e,t,r){var n=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=e("function-bind");t.exports=o.call(n,i)},{"function-bind":389}],398:[function(e,t,r){var n=e("http"),i=e("url"),o=t.exports;for(var s in n)n.hasOwnProperty(s)&&(o[s]=n[s]);function a(e){if("string"==typeof e&&(e=i.parse(e)),e.protocol||(e.protocol="https:"),"https:"!==e.protocol)throw new Error('Protocol "'+e.protocol+'" not supported. Expected "https:"');return e}o.request=function(e,t){return e=a(e),n.request.call(this,e,t)},o.get=function(e,t){return e=a(e),n.get.call(this,e,t)}},{http:539,url:543}],399:[function(e,t,r){var n=e("util"),i=e("ms");t.exports=function(e){if("number"==typeof e)return e;var t=i(e);return void 0===t&&new Error(n.format("humanize-ms(%j) result undefined",e)),t}},{ms:432,util:489}],400:[function(e,t,r){
|
|
9
|
+
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
10
|
+
r.read=function(e,t,r,n,i){var o,s,a=8*i-n-1,l=(1<<a)-1,c=l>>1,u=-7,p=r?i-1:0,d=r?-1:1,m=e[t+p];for(p+=d,o=m&(1<<-u)-1,m>>=-u,u+=a;u>0;o=256*o+e[t+p],p+=d,u-=8);for(s=o&(1<<-u)-1,o>>=-u,u+=n;u>0;s=256*s+e[t+p],p+=d,u-=8);if(0===o)o=1-c;else{if(o===l)return s?NaN:1/0*(m?-1:1);s+=Math.pow(2,n),o-=c}return(m?-1:1)*s*Math.pow(2,o-n)},r.write=function(e,t,r,n,i,o){var s,a,l,c=8*o-i-1,u=(1<<c)-1,p=u>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,m=n?0:o-1,f=n?1:-1,h=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=u):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),(t+=s+p>=1?d/l:d*Math.pow(2,1-p))*l>=2&&(s++,l/=2),s+p>=u?(a=0,s=u):s+p>=1?(a=(t*l-1)*Math.pow(2,i),s+=p):(a=t*Math.pow(2,p-1)*Math.pow(2,i),s=0));i>=8;e[r+m]=255&a,m+=f,a/=256,i-=8);for(s=s<<i|a,c+=i;c>0;e[r+m]=255&s,m+=f,s/=256,c-=8);e[r+m-f]|=128*h}},{}],401:[function(e,t,r){var n,i,o,s=[e("./nextTick"),e("./queueMicrotask"),e("./mutation.js"),e("./messageChannel"),e("./stateChange"),e("./timeout")],a=-1,l=[],c=!1;function u(){n&&i&&(n=!1,i.length?l=i.concat(l):a=-1,l.length&&p())}function p(){if(!n){c=!1,n=!0;for(var e=l.length,t=setTimeout(u);e;){for(i=l,l=[];i&&++a<e;)i[a].run();a=-1,e=l.length}i=null,a=-1,n=!1,clearTimeout(t)}}for(var d=-1,m=s.length;++d<m;)if(s[d]&&s[d].test&&s[d].test()){o=s[d].install(p);break}function f(e,t){this.fun=e,this.array=t}function h(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];l.push(new f(e,t)),c||n||(c=!0,o())}f.prototype.run=function(){var e=this.fun,t=this.array;switch(t.length){case 0:return e();case 1:return e(t[0]);case 2:return e(t[0],t[1]);case 3:return e(t[0],t[1],t[2]);default:return e.apply(null,t)}},t.exports=h},{"./messageChannel":402,"./mutation.js":403,"./nextTick":102,"./queueMicrotask":404,"./stateChange":405,"./timeout":406}],402:[function(e,t,r){(function(e){(function(){r.test=function(){return!e.setImmediate&&void 0!==e.MessageChannel},r.install=function(t){var r=new e.MessageChannel;return r.port1.onmessage=t,function(){r.port2.postMessage(0)}}}).call(this)}).call(this,void 0!==dR?dR:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],403:[function(e,t,r){(function(e){(function(){var t=e.MutationObserver||e.WebKitMutationObserver;r.test=function(){return t},r.install=function(r){var n=0,i=new t(r),o=e.document.createTextNode("");return i.observe(o,{characterData:!0}),function(){o.data=n=++n%2}}}).call(this)}).call(this,void 0!==dR?dR:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],404:[function(e,t,r){(function(e){(function(){r.test=function(){return"function"==typeof e.queueMicrotask},r.install=function(t){return function(){e.queueMicrotask(t)}}}).call(this)}).call(this,void 0!==dR?dR:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],405:[function(e,t,r){(function(e){(function(){r.test=function(){return"document"in e&&"onreadystatechange"in e.document.createElement("script")},r.install=function(t){return function(){var r=e.document.createElement("script");return r.onreadystatechange=function(){t(),r.onreadystatechange=null,r.parentNode.removeChild(r),r=null},e.document.documentElement.appendChild(r),t}}}).call(this)}).call(this,void 0!==dR?dR:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],406:[function(e,t,r){r.test=function(){return!0},r.install=function(e){return function(){setTimeout(e,0)}}},{}],407:[function(e,t,r){"function"==typeof Object.create?t.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},{}],408:[function(e,t,r){var n=e("has-tostringtag/shams")(),i=e("call-bind/callBound")("Object.prototype.toString"),o=function(e){return!(n&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===i(e)},s=function(e){return!!o(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==i(e)&&"[object Function]"===i(e.callee)},a=function(){return o(arguments)}();o.isLegacyArguments=s,t.exports=a?o:s},{"call-bind/callBound":105,"has-tostringtag/shams":396}],409:[function(e,t,r){function n(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function i(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&n(e.slice(0,0))}
|
|
11
|
+
/*!
|
|
12
|
+
* Determine if an object is a Buffer
|
|
13
|
+
*
|
|
14
|
+
* @author Feross Aboukhadijeh <https://feross.org>
|
|
15
|
+
* @license MIT
|
|
16
|
+
*/
|
|
17
|
+
t.exports=function(e){return null!=e&&(n(e)||i(e)||!!e._isBuffer)}},{}],410:[function(e,t,r){var n,i,o=Function.prototype.toString,s="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof s&&"function"==typeof Object.defineProperty)try{n=Object.defineProperty({},"length",{get:function(){throw i}}),i={},s(function(){throw 42},null,n)}catch(w){w!==i&&(s=null)}else s=null;var a=/^\s*class\b/,l=function(e){try{var t=o.call(e);return a.test(t)}catch(r){return!1}},c=function(e){try{return!l(e)&&(o.call(e),!0)}catch(t){return!1}},u=Object.prototype.toString,p="[object Object]",d="[object Function]",m="[object GeneratorFunction]",f="[object HTMLAllCollection]",h="[object HTML document.all class]",y="[object HTMLCollection]",g="function"==typeof Symbol&&!!Symbol.toStringTag,b=!(0 in[,]),v=function(){return!1};if("object"==typeof document){var x=document.all;u.call(x)===u.call(document.all)&&(v=function(e){if((b||!e)&&(void 0===e||"object"==typeof e))try{var t=u.call(e);return(t===f||t===h||t===y||t===p)&&null==e("")}catch(r){}return!1})}t.exports=s?function(e){if(v(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;try{s(e,null,n)}catch(t){if(t!==i)return!1}return!l(e)&&c(e)}:function(e){if(v(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(g)return c(e);if(l(e))return!1;var t=u.call(e);return!(t!==d&&t!==m&&!/^\[object HTML/.test(t))&&c(e)}},{}],411:[function(e,t,r){var n,i=Object.prototype.toString,o=Function.prototype.toString,s=/^\s*(?:function)?\*/,a=e("has-tostringtag/shams")(),l=Object.getPrototypeOf,c=function(){if(!a)return!1;try{return Function("return function*() {}")()}catch(e){}};t.exports=function(e){if("function"!=typeof e)return!1;if(s.test(o.call(e)))return!0;if(!a)return"[object GeneratorFunction]"===i.call(e);if(!l)return!1;if(void 0===n){var t=c();n=!!t&&l(t)}return l(e)===n}},{"has-tostringtag/shams":396}],412:[function(e,t,r){var n=e("which-typed-array");t.exports=function(e){return!!n(e)}},{"which-typed-array":490}],413:[function(e,t,r){(function(e){(function(){var n,i;n="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:this,i=function(e){var r,n=(e=e||{}).Base64,i="2.6.4",o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=function(e){for(var t={},r=0,n=e.length;r<n;r++)t[e.charAt(r)]=r;return t}(o),a=String.fromCharCode,l=function(e){if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?a(192|t>>>6)+a(128|63&t):a(224|t>>>12&15)+a(128|t>>>6&63)+a(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return a(240|t>>>18&7)+a(128|t>>>12&63)+a(128|t>>>6&63)+a(128|63&t)},c=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,u=function(e){return e.replace(c,l)},p=function(e){var t=[0,2,1][e.length%3],r=e.charCodeAt(0)<<16|(e.length>1?e.charCodeAt(1):0)<<8|(e.length>2?e.charCodeAt(2):0);return[o.charAt(r>>>18),o.charAt(r>>>12&63),t>=2?"=":o.charAt(r>>>6&63),t>=1?"=":o.charAt(63&r)].join("")},d=e.btoa&&"function"==typeof e.btoa?function(t){return e.btoa(t)}:function(e){if(e.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return e.replace(/[\s\S]{1,3}/g,p)},m=function(e){return d(u(String(e)))},f=function(e){return e.replace(/[+\/]/g,function(e){return"+"==e?"-":"_"}).replace(/=/g,"")},h=function(e,t){return t?f(m(e)):m(e)},y=function(e){return h(e,!0)};e.Uint8Array&&(r=function(e,t){for(var r="",n=0,i=e.length;n<i;n+=3){var s=e[n],a=e[n+1],l=e[n+2],c=s<<16|a<<8|l;r+=o.charAt(c>>>18)+o.charAt(c>>>12&63)+(void 0!==a?o.charAt(c>>>6&63):"=")+(void 0!==l?o.charAt(63&c):"=")}return t?f(r):r});var g,b=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,v=function(e){switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return a((t>>>10)+55296)+a(56320+(1023&t));case 3:return a((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return a((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},x=function(e){return e.replace(b,v)},w=function(e){var t=e.length,r=t%4,n=(t>0?s[e.charAt(0)]<<18:0)|(t>1?s[e.charAt(1)]<<12:0)|(t>2?s[e.charAt(2)]<<6:0)|(t>3?s[e.charAt(3)]:0),i=[a(n>>>16),a(n>>>8&255),a(255&n)];return i.length-=[0,0,2,1][r],i.join("")},S=e.atob&&"function"==typeof e.atob?function(t){return e.atob(t)}:function(e){return e.replace(/\S{1,4}/g,w)},N=function(e){return S(String(e).replace(/[^A-Za-z0-9\+\/]/g,""))},j=function(e){return x(S(e))},E=function(e){return String(e).replace(/[-_]/g,function(e){return"-"==e?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},C=function(e){return j(E(e))};e.Uint8Array&&(g=function(e){return Uint8Array.from(N(E(e)),function(e){return e.charCodeAt(0)})});var k=function(){var t=e.Base64;return e.Base64=n,t};if(e.Base64={VERSION:i,atob:N,btoa:d,fromBase64:C,toBase64:h,utob:u,encode:h,encodeURI:y,btou:x,decode:C,noConflict:k,fromUint8Array:r,toUint8Array:g},"function"==typeof Object.defineProperty){var T=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}};e.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",T(function(){return C(this)})),Object.defineProperty(String.prototype,"toBase64",T(function(e){return h(this,e)})),Object.defineProperty(String.prototype,"toBase64URI",T(function(){return h(this,!0)}))}}return e.Meteor&&(Base64=e.Base64),void 0!==t&&t.exports&&(t.exports.Base64=e.Base64),{Base64:e.Base64}},"object"==typeof r&&void 0!==t?t.exports=i(n):i(n)}).call(this)}).call(this,void 0!==dR?dR:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],414:[function(e,t,r){var n=e("./_root").Symbol;t.exports=n},{"./_root":421}],415:[function(e,t,r){function n(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}t.exports=n},{}],416:[function(e,t,r){var n=e("./_Symbol"),i=e("./_getRawTag"),o=e("./_objectToString"),s="[object Null]",a="[object Undefined]",l=n?n.toStringTag:void 0;function c(e){return null==e?void 0===e?a:s:l&&l in Object(e)?i(e):o(e)}t.exports=c},{"./_Symbol":414,"./_getRawTag":419,"./_objectToString":420}],417:[function(e,t,r){var n=e("./_Symbol"),i=e("./_arrayMap"),o=e("./isArray"),s=e("./isSymbol"),a=n?n.prototype:void 0,l=a?a.toString:void 0;function c(e){if("string"==typeof e)return e;if(o(e))return i(e,c)+"";if(s(e))return l?l.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}t.exports=c},{"./_Symbol":414,"./_arrayMap":415,"./isArray":422,"./isSymbol":426}],418:[function(e,t,r){(function(e){(function(){var r="object"==typeof e&&e&&e.Object===Object&&e;t.exports=r}).call(this)}).call(this,void 0!==dR?dR:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],419:[function(e,t,r){var n=e("./_Symbol"),i=Object.prototype,o=i.hasOwnProperty,s=i.toString,a=n?n.toStringTag:void 0;function l(e){var t=o.call(e,a),r=e[a];try{e[a]=void 0;var n=!0}catch(l){}var i=s.call(e);return n&&(t?e[a]=r:delete e[a]),i}t.exports=l},{"./_Symbol":414}],420:[function(e,t,r){var n=Object.prototype.toString;function i(e){return n.call(e)}t.exports=i},{}],421:[function(e,t,r){var n=e("./_freeGlobal"),i="object"==typeof self&&self&&self.Object===Object&&self,o=n||i||Function("return this")();t.exports=o},{"./_freeGlobal":418}],422:[function(e,t,r){var n=Array.isArray;t.exports=n},{}],423:[function(e,t,r){function n(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}t.exports=n},{}],424:[function(e,t,r){function n(e){return null!=e&&"object"==typeof e}t.exports=n},{}],425:[function(e,t,r){var n=e("./_baseGetTag"),i=e("./isArray"),o=e("./isObjectLike"),s="[object String]";function a(e){return"string"==typeof e||!i(e)&&o(e)&&n(e)==s}t.exports=a},{"./_baseGetTag":416,"./isArray":422,"./isObjectLike":424}],426:[function(e,t,r){var n=e("./_baseGetTag"),i=e("./isObjectLike"),o="[object Symbol]";function s(e){return"symbol"==typeof e||i(e)&&n(e)==o}t.exports=s},{"./_baseGetTag":416,"./isObjectLike":424}],427:[function(e,t,r){var n=e("./_baseToString");function i(e){return null==e?"":n(e)}t.exports=i},{"./_baseToString":417}],428:[function(e,t,r){t.exports=i;var n=Object.prototype.hasOwnProperty;function i(e,t,r){if(!e)throw new TypeError("argument dest is required");if(!t)throw new TypeError("argument src is required");return void 0===r&&(r=!0),Object.getOwnPropertyNames(t).forEach(function(i){if(r||!n.call(e,i)){var o=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(e,i,o)}}),e}},{}],429:[function(e,t,r){function n(){this._types=Object.create(null),this._extensions=Object.create(null);for(var e=0;e<arguments.length;e++)this.define(arguments[e]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}e("core-js/modules/es.array.map.js"),e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.replace.js"),e("core-js/modules/es.regexp.constructor.js"),e("core-js/modules/es.regexp.to-string.js"),n.prototype.define=function(e,t){for(var r in e){var n=e[r].map(function(e){return e.toLowerCase()});r=r.toLowerCase();for(var i=0;i<n.length;i++){var o=n[i];if("*"!==o[0]){if(!t&&o in this._types)throw new Error('Attempt to change mapping for "'+o+'" extension from "'+this._types[o]+'" to "'+r+'". Pass `force=true` to allow this, otherwise remove "'+o+'" from the list of extensions for "'+r+'".');this._types[o]=r}}if(t||!this._extensions[r]){var s=n[0];this._extensions[r]="*"!==s[0]?s:s.substr(1)}}},n.prototype.getType=function(e){var t=(e=String(e)).replace(/^.*[/\\]/,"").toLowerCase(),r=t.replace(/^.*\./,"").toLowerCase(),n=t.length<e.length;return(r.length<t.length-1||!n)&&this._types[r]||null},n.prototype.getExtension=function(e){return(e=/^\s*([^;\s]*)/.test(e)&&RegExp.$1)&&this._extensions[e.toLowerCase()]||null},t.exports=n},{"core-js/modules/es.array.map.js":318,"core-js/modules/es.regexp.constructor.js":337,"core-js/modules/es.regexp.exec.js":338,"core-js/modules/es.regexp.to-string.js":339,"core-js/modules/es.string.replace.js":345}],430:[function(e,t,r){var n=e("./Mime");t.exports=new n(e("./types/standard"))},{"./Mime":429,"./types/standard":431}],431:[function(e,t,r){t.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["es","ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avif":["avif"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]}},{}],432:[function(e,t,r){var n=1e3,i=60*n,o=60*i,s=24*o,a=7*s,l=365.25*s;function c(e){if(!((e=String(e)).length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return r*l;case"weeks":case"week":case"w":return r*a;case"days":case"day":case"d":return r*s;case"hours":case"hour":case"hrs":case"hr":case"h":return r*o;case"minutes":case"minute":case"mins":case"min":case"m":return r*i;case"seconds":case"second":case"secs":case"sec":case"s":return r*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function u(e){var t=Math.abs(e);return t>=s?Math.round(e/s)+"d":t>=o?Math.round(e/o)+"h":t>=i?Math.round(e/i)+"m":t>=n?Math.round(e/n)+"s":e+"ms"}function p(e){var t=Math.abs(e);return t>=s?d(e,t,s,"day"):t>=o?d(e,t,o,"hour"):t>=i?d(e,t,i,"minute"):t>=n?d(e,t,n,"second"):e+" ms"}function d(e,t,r,n){var i=t>=1.5*r;return Math.round(e/r)+" "+n+(i?"s":"")}t.exports=function(e,t){t=t||{};var r=typeof e;if("string"===r&&e.length>0)return c(e);if("number"===r&&isFinite(e))return t.long?p(e):u(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},{}],433:[function(e,t,r){(function(r){(function(){var n="function"==typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=n&&i&&"function"==typeof i.get?i.get:null,s=n&&Map.prototype.forEach,a="function"==typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&a?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=a&&l&&"function"==typeof l.get?l.get:null,u=a&&Set.prototype.forEach,p="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,d="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,m="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,f=Boolean.prototype.valueOf,h=Object.prototype.toString,y=Function.prototype.toString,g=String.prototype.match,b=String.prototype.slice,v=String.prototype.replace,x=String.prototype.toUpperCase,w=String.prototype.toLowerCase,S=RegExp.prototype.test,N=Array.prototype.concat,j=Array.prototype.join,E=Array.prototype.slice,C=Math.floor,k="function"==typeof BigInt?BigInt.prototype.valueOf:null,T=Object.getOwnPropertySymbols,R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,O="function"==typeof Symbol&&"object"==typeof Symbol.iterator,P="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,_=Object.prototype.propertyIsEnumerable,A=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function I(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||S.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-C(-e):C(e);if(n!==e){var i=String(n),o=b.call(t,i.length+1);return v.call(i,r,"$&_")+"."+v.call(v.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return v.call(t,r,"$&_")}var M=e("./util.inspect"),D=M.custom,z=W(D)?D:null;function B(e,t,r){var n="double"===(r.quoteStyle||t)?'"':"'";return n+e+n}function L(e){return v.call(String(e),/"/g,""")}function q(e){return!("[object Array]"!==Y(e)||P&&"object"==typeof e&&P in e)}function U(e){return!("[object Date]"!==Y(e)||P&&"object"==typeof e&&P in e)}function H(e){return!("[object RegExp]"!==Y(e)||P&&"object"==typeof e&&P in e)}function F(e){return!("[object Error]"!==Y(e)||P&&"object"==typeof e&&P in e)}function $(e){return!("[object String]"!==Y(e)||P&&"object"==typeof e&&P in e)}function V(e){return!("[object Number]"!==Y(e)||P&&"object"==typeof e&&P in e)}function G(e){return!("[object Boolean]"!==Y(e)||P&&"object"==typeof e&&P in e)}function W(e){if(O)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!R)return!1;try{return R.call(e),!0}catch(t){}return!1}function K(e){if(!e||"object"!=typeof e||!k)return!1;try{return k.call(e),!0}catch(t){}return!1}t.exports=function e(t,n,i,a){var l=n||{};if(Q(l,"quoteStyle")&&"single"!==l.quoteStyle&&"double"!==l.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Q(l,"maxStringLength")&&("number"==typeof l.maxStringLength?l.maxStringLength<0&&l.maxStringLength!==1/0:null!==l.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var p=!Q(l,"customInspect")||l.customInspect;if("boolean"!=typeof p&&"symbol"!==p)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Q(l,"indent")&&null!==l.indent&&"\t"!==l.indent&&!(parseInt(l.indent,10)===l.indent&&l.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Q(l,"numericSeparator")&&"boolean"!=typeof l.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var d=l.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return se(t,l);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var m=String(t);return d?I(t,m):m}if("bigint"==typeof t){var h=String(t)+"n";return d?I(t,h):h}var y=void 0===l.depth?5:l.depth;if(void 0===i&&(i=0),i>=y&&y>0&&"object"==typeof t)return q(t)?"[Array]":"[Object]";var g=de(l,i);if(void 0===a)a=[];else if(Z(a,t)>=0)return"[Circular]";function x(t,r,n){if(r&&(a=E.call(a)).push(r),n){var o={depth:l.depth};return Q(l,"quoteStyle")&&(o.quoteStyle=l.quoteStyle),e(t,o,i+1,a)}return e(t,l,i+1,a)}if("function"==typeof t&&!H(t)){var S=J(t),C=fe(t,x);return"[Function"+(S?": "+S:" (anonymous)")+"]"+(C.length>0?" { "+j.call(C,", ")+" }":"")}if(W(t)){var T=O?v.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):R.call(t);return"object"!=typeof t||O?T:le(T)}if(oe(t)){for(var D="<"+w.call(String(t.nodeName)),X=t.attributes||[],ae=0;ae<X.length;ae++)D+=" "+X[ae].name+"="+B(L(X[ae].value),"double",l);return D+=">",t.childNodes&&t.childNodes.length&&(D+="..."),D+="</"+w.call(String(t.nodeName))+">"}if(q(t)){if(0===t.length)return"[]";var he=fe(t,x);return g&&!pe(he)?"["+me(he,g)+"]":"[ "+j.call(he,", ")+" ]"}if(F(t)){var ye=fe(t,x);return"cause"in Error.prototype||!("cause"in t)||_.call(t,"cause")?0===ye.length?"["+String(t)+"]":"{ ["+String(t)+"] "+j.call(ye,", ")+" }":"{ ["+String(t)+"] "+j.call(N.call("[cause]: "+x(t.cause),ye),", ")+" }"}if("object"==typeof t&&p){if(z&&"function"==typeof t[z]&&M)return M(t,{depth:y-i});if("symbol"!==p&&"function"==typeof t.inspect)return t.inspect()}if(ee(t)){var ge=[];return s&&s.call(t,function(e,r){ge.push(x(r,t,!0)+" => "+x(e,t))}),ue("Map",o.call(t),ge,g)}if(ne(t)){var be=[];return u&&u.call(t,function(e){be.push(x(e,t))}),ue("Set",c.call(t),be,g)}if(te(t))return ce("WeakMap");if(ie(t))return ce("WeakSet");if(re(t))return ce("WeakRef");if(V(t))return le(x(Number(t)));if(K(t))return le(x(k.call(t)));if(G(t))return le(f.call(t));if($(t))return le(x(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if(t===r)return"{ [object globalThis] }";if(!U(t)&&!H(t)){var ve=fe(t,x),xe=A?A(t)===Object.prototype:t instanceof Object||t.constructor===Object,we=t instanceof Object?"":"null prototype",Se=!xe&&P&&Object(t)===t&&P in t?b.call(Y(t),8,-1):we?"Object":"",Ne=(xe||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(Se||we?"["+j.call(N.call([],Se||[],we||[]),": ")+"] ":"");return 0===ve.length?Ne+"{}":g?Ne+"{"+me(ve,g)+"}":Ne+"{ "+j.call(ve,", ")+" }"}return String(t)};var X=Object.prototype.hasOwnProperty||function(e){return e in this};function Q(e,t){return X.call(e,t)}function Y(e){return h.call(e)}function J(e){if(e.name)return e.name;var t=g.call(y.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function Z(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function ee(e){if(!o||!e||"object"!=typeof e)return!1;try{o.call(e);try{c.call(e)}catch(t){return!0}return e instanceof Map}catch(r){}return!1}function te(e){if(!p||!e||"object"!=typeof e)return!1;try{p.call(e,p);try{d.call(e,d)}catch(t){return!0}return e instanceof WeakMap}catch(r){}return!1}function re(e){if(!m||!e||"object"!=typeof e)return!1;try{return m.call(e),!0}catch(t){}return!1}function ne(e){if(!c||!e||"object"!=typeof e)return!1;try{c.call(e);try{o.call(e)}catch(t){return!0}return e instanceof Set}catch(r){}return!1}function ie(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{p.call(e,p)}catch(t){return!0}return e instanceof WeakSet}catch(r){}return!1}function oe(e){return!(!e||"object"!=typeof e)&&("undefined"!=typeof HTMLElement&&e instanceof HTMLElement||"string"==typeof e.nodeName&&"function"==typeof e.getAttribute)}function se(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return se(b.call(e,0,t.maxStringLength),t)+n}return B(v.call(v.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,ae),"single",t)}function ae(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+x.call(t.toString(16))}function le(e){return"Object("+e+")"}function ce(e){return e+" { ? }"}function ue(e,t,r,n){return e+" ("+t+") {"+(n?me(r,n):j.call(r,", "))+"}"}function pe(e){for(var t=0;t<e.length;t++)if(Z(e[t],"\n")>=0)return!1;return!0}function de(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=j.call(Array(e.indent+1)," ")}return{base:r,prev:j.call(Array(t+1),r)}}function me(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+j.call(e,","+r)+"\n"+t.prev}function fe(e,t){var r=q(e),n=[];if(r){n.length=e.length;for(var i=0;i<e.length;i++)n[i]=Q(e,i)?t(e[i],e):""}var o,s="function"==typeof T?T(e):[];if(O){o={};for(var a=0;a<s.length;a++)o["$"+s[a]]=s[a]}for(var l in e)Q(e,l)&&(r&&String(Number(l))===l&&l<e.length||O&&o["$"+l]instanceof Symbol||(S.call(/[^\w$]/,l)?n.push(t(l,e)+": "+t(e[l],e)):n.push(l+": "+t(e[l],e))));if("function"==typeof T)for(var c=0;c<s.length;c++)_.call(e,s[c])&&n.push("["+t(s[c])+"]: "+t(e[s[c]],e));return n}}).call(this)}).call(this,void 0!==dR?dR:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./util.inspect":102}],434:[function(e,t,r){var n;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,s=e("./isArguments"),a=Object.prototype.propertyIsEnumerable,l=!a.call({toString:null},"toString"),c=a.call(function(){},"prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],p=function(e){var t=e.constructor;return t&&t.prototype===e},d={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},m=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!d["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{p(window[e])}catch(t){return!0}}catch(t){return!0}return!1}(),f=function(e){if("undefined"==typeof window||!m)return p(e);try{return p(e)}catch(t){return!1}};n=function(e){var t=null!==e&&"object"==typeof e,r="[object Function]"===o.call(e),n=s(e),a=t&&"[object String]"===o.call(e),p=[];if(!t&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var d=c&&r;if(a&&e.length>0&&!i.call(e,0))for(var m=0;m<e.length;++m)p.push(String(m));if(n&&e.length>0)for(var h=0;h<e.length;++h)p.push(String(h));else for(var y in e)d&&"prototype"===y||!i.call(e,y)||p.push(String(y));if(l)for(var g=f(e),b=0;b<u.length;++b)g&&"constructor"===u[b]||!i.call(e,u[b])||p.push(u[b]);return p}}t.exports=n},{"./isArguments":436}],435:[function(e,t,r){var n=Array.prototype.slice,i=e("./isArguments"),o=Object.keys,s=o?function(e){return o(e)}:e("./implementation"),a=Object.keys;s.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return i(e)?a(n.call(e)):a(e)})}else Object.keys=s;return Object.keys||s},t.exports=s},{"./implementation":434,"./isArguments":436}],436:[function(e,t,r){var n=Object.prototype.toString;t.exports=function(e){var t=n.call(e),r="[object Arguments]"===t;return r||(r="[object Array]"!==t&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===n.call(e.callee)),r}},{}],437:[function(e,t,r){var n=e("object-keys"),i=e("has-symbols/shams")(),o=e("call-bind/callBound"),s=Object,a=o("Array.prototype.push"),l=o("Object.prototype.propertyIsEnumerable"),c=i?Object.getOwnPropertySymbols:null;t.exports=function(e,t){if(null==e)throw new TypeError("target must be an object");var r=s(e);if(1===arguments.length)return r;for(var o=1;o<arguments.length;++o){var u=s(arguments[o]),p=n(u),d=i&&(Object.getOwnPropertySymbols||c);if(d)for(var m=d(u),f=0;f<m.length;++f){var h=m[f];l(u,h)&&a(p,h)}for(var y=0;y<p.length;++y){var g=p[y];if(l(u,g)){var b=u[g];r[g]=b}}}return r}},{"call-bind/callBound":105,"has-symbols/shams":395,"object-keys":435}],438:[function(e,t,r){var n=e("./implementation"),i=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),r={},n=0;n<t.length;++n)r[t[n]]=t[n];var i=Object.assign({},r),o="";for(var s in i)o+=s;return e!==o},o=function(){if(!Object.assign||!Object.preventExtensions)return!1;var e=Object.preventExtensions({1:2});try{Object.assign(e,"xy")}catch(t){return"y"===e[1]}return!1};t.exports=function(){return Object.assign?i()||o()?n:Object.assign:n}},{"./implementation":437}],439:[function(e,t,r){(function(e){(function(){function r(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var r,n="",i=0,o=-1,s=0,a=0;a<=e.length;++a){if(a<e.length)r=e.charCodeAt(a);else{if(47===r)break;r=47}if(47===r){if(o===a-1||1===s);else if(o!==a-1&&2===s){if(n.length<2||2!==i||46!==n.charCodeAt(n.length-1)||46!==n.charCodeAt(n.length-2))if(n.length>2){var l=n.lastIndexOf("/");if(l!==n.length-1){-1===l?(n="",i=0):i=(n=n.slice(0,l)).length-1-n.lastIndexOf("/"),o=a,s=0;continue}}else if(2===n.length||1===n.length){n="",i=0,o=a,s=0;continue}t&&(n.length>0?n+="/..":n="..",i=2)}else n.length>0?n+="/"+e.slice(o+1,a):n=e.slice(o+1,a),i=a-o-1;o=a,s=0}else 46===r&&-1!==s?++s:s=-1}return n}function i(e,t){var r=t.dir||t.root,n=t.base||(t.name||"")+(t.ext||"");return r?r===t.root?r+n:r+e+n:n}var o={resolve:function(){for(var t,i="",o=!1,s=arguments.length-1;s>=-1&&!o;s--){var a;s>=0?a=arguments[s]:(void 0===t&&(t=e.cwd()),a=t),r(a),0!==a.length&&(i=a+"/"+i,o=47===a.charCodeAt(0))}return i=n(i,!o),o?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(e){if(r(e),0===e.length)return".";var t=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1);return 0!==(e=n(e,!t)).length||t||(e="."),e.length>0&&i&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return r(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,t=0;t<arguments.length;++t){var n=arguments[t];r(n),n.length>0&&(void 0===e?e=n:e+="/"+n)}return void 0===e?".":o.normalize(e)},relative:function(e,t){if(r(e),r(t),e===t)return"";if((e=o.resolve(e))===(t=o.resolve(t)))return"";for(var n=1;n<e.length&&47===e.charCodeAt(n);++n);for(var i=e.length,s=i-n,a=1;a<t.length&&47===t.charCodeAt(a);++a);for(var l=t.length-a,c=s<l?s:l,u=-1,p=0;p<=c;++p){if(p===c){if(l>c){if(47===t.charCodeAt(a+p))return t.slice(a+p+1);if(0===p)return t.slice(a+p)}else s>c&&(47===e.charCodeAt(n+p)?u=p:0===p&&(u=0));break}var d=e.charCodeAt(n+p);if(d!==t.charCodeAt(a+p))break;47===d&&(u=p)}var m="";for(p=n+u+1;p<=i;++p)p!==i&&47!==e.charCodeAt(p)||(0===m.length?m+="..":m+="/..");return m.length>0?m+t.slice(a+u):(a+=u,47===t.charCodeAt(a)&&++a,t.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(r(e),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,i=-1,o=!0,s=e.length-1;s>=1;--s)if(47===(t=e.charCodeAt(s))){if(!o){i=s;break}}else o=!1;return-1===i?n?"/":".":n&&1===i?"//":e.slice(0,i)},basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');r(e);var n,i=0,o=-1,s=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var a=t.length-1,l=-1;for(n=e.length-1;n>=0;--n){var c=e.charCodeAt(n);if(47===c){if(!s){i=n+1;break}}else-1===l&&(s=!1,l=n+1),a>=0&&(c===t.charCodeAt(a)?-1===--a&&(o=n):(a=-1,o=l))}return i===o?o=l:-1===o&&(o=e.length),e.slice(i,o)}for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!s){i=n+1;break}}else-1===o&&(s=!1,o=n+1);return-1===o?"":e.slice(i,o)},extname:function(e){r(e);for(var t=-1,n=0,i=-1,o=!0,s=0,a=e.length-1;a>=0;--a){var l=e.charCodeAt(a);if(47!==l)-1===i&&(o=!1,i=a+1),46===l?-1===t?t=a:1!==s&&(s=1):-1!==t&&(s=-1);else if(!o){n=a+1;break}}return-1===t||-1===i||0===s||1===s&&t===i-1&&t===n+1?"":e.slice(t,i)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return i("/",e)},parse:function(e){r(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var n,i=e.charCodeAt(0),o=47===i;o?(t.root="/",n=1):n=0;for(var s=-1,a=0,l=-1,c=!0,u=e.length-1,p=0;u>=n;--u)if(47!==(i=e.charCodeAt(u)))-1===l&&(c=!1,l=u+1),46===i?-1===s?s=u:1!==p&&(p=1):-1!==s&&(p=-1);else if(!c){a=u+1;break}return-1===s||-1===l||0===p||1===p&&s===l-1&&s===a+1?-1!==l&&(t.base=t.name=0===a&&o?e.slice(1,l):e.slice(a,l)):(0===a&&o?(t.name=e.slice(1,s),t.base=e.slice(1,l)):(t.name=e.slice(a,s),t.base=e.slice(a,l)),t.ext=e.slice(s,l)),a>0?t.dir=e.slice(0,a-1):o&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};o.posix=o,t.exports=o}).call(this)}).call(this,e("_process"))},{_process:538}],440:[function(e,t,r){(function(e){(function(){(function(){var n={function:!0,object:!0},i=n[typeof window]&&window||this,o=n[typeof r]&&r,s=n[typeof t]&&t&&!t.nodeType&&t,a=o&&s&&"object"==typeof e&&e;!a||a.global!==a&&a.window!==a&&a.self!==a||(i=a);var l=Math.pow(2,53)-1,c=/\bOpera/,u=Object.prototype,p=u.hasOwnProperty,d=u.toString;function m(e){return(e=String(e)).charAt(0).toUpperCase()+e.slice(1)}function f(e,t,r){var n={"10.0":"10",6.4:"10 Technical Preview",6.3:"8.1",6.2:"8",6.1:"Server 2008 R2 / 7","6.0":"Server 2008 / Vista",5.2:"Server 2003 / XP 64-bit",5.1:"XP",5.01:"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return t&&r&&/^Win/i.test(e)&&!/^Windows Phone /i.test(e)&&(n=n[/[\d.]+$/.exec(e)])&&(e="Windows "+n),e=String(e),t&&r&&(e=e.replace(RegExp(t,"i"),r)),e=y(e.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0])}function h(e,t){var r=-1,n=e?e.length:0;if("number"==typeof n&&n>-1&&n<=l)for(;++r<n;)t(e[r],r,e);else g(e,t)}function y(e){return e=S(e),/^(?:webOS|i(?:OS|P))/.test(e)?e:m(e)}function g(e,t){for(var r in e)p.call(e,r)&&t(e[r],r,e)}function b(e){return null==e?m(e):d.call(e).slice(8,-1)}function v(e,t){var r=null!=e?typeof e[t]:"number";return!(/^(?:boolean|number|string|undefined)$/.test(r)||"object"==r&&!e[t])}function x(e){return String(e).replace(/([ -])(?!$)/g,"$1?")}function w(e,t){var r=null;return h(e,function(n,i){r=t(r,n,i,e)}),r}function S(e){return String(e).replace(/^ +| +$/g,"")}function N(e){var t=i,r=e&&"object"==typeof e&&"String"!=b(e);r&&(t=e,e=null);var n=t.navigator||{},o=n.userAgent||"";e||(e=o);var s,a,l=r?!!n.likeChrome:/\bChrome\b/.test(e)&&!/internal|\n/i.test(d.toString()),u="Object",p=r?u:"ScriptBridgingProxyObject",m=r?u:"Environment",h=r&&t.java?"JavaPackage":b(t.java),j=r?u:"RuntimeObject",E=/\bJava/.test(h)&&t.java,C=E&&b(t.environment)==m,k=E?"a":"α",T=E?"b":"β",R=t.document||{},O=t.operamini||t.opera,P=c.test(P=r&&O?O["[[Class]]"]:b(O))?P:O=null,_=e,A=[],I=null,M=e==o,D=M&&O&&"function"==typeof O.version&&O.version(),z=H([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),B=$(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Electron","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"(?:Edge|Edg|EdgA|EdgiOS)"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt",{label:"Samsung Internet",pattern:"SamsungBrowser"},"SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","Vivaldi","Waterfox","WebPositive",{label:"Yandex Browser",pattern:"YaBrowser"},{label:"UC Browser",pattern:"UCBrowser"},"Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chromium","Chrome",{label:"Chrome",pattern:"(?:HeadlessChrome)"},{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"]),L=G([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},{label:"Galaxy S5",pattern:"SM-G900"},{label:"Galaxy S6",pattern:"SM-G920"},{label:"Galaxy S6 Edge",pattern:"SM-G925"},{label:"Galaxy S7",pattern:"SM-G930"},{label:"Galaxy S7 Edge",pattern:"SM-G935"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nexus","Nook","PlayBook","PlayStation Vita","PlayStation","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]),q=F({Apple:{iPad:1,iPhone:1,iPod:1},Alcatel:{},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},Huawei:{},Lenovo:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Oppo:{},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1},Xiaomi:{Mi:1,Redmi:1}}),U=V(["Windows Phone","KaiOS","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian",{label:"DragonFly BSD",pattern:"DragonFly"},"Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","OpenBSD","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Tizen","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "]);function H(t){return w(t,function(t,r){return t||RegExp("\\b"+(r.pattern||x(r))+"\\b","i").exec(e)&&(r.label||r)})}function F(t){return w(t,function(t,r,n){return t||(r[L]||r[/^[a-z]+(?: +[a-z]+\b)*/i.exec(L)]||RegExp("\\b"+x(n)+"(?:\\b|\\w*\\d)","i").exec(e))&&n})}function $(t){return w(t,function(t,r){return t||RegExp("\\b"+(r.pattern||x(r))+"\\b","i").exec(e)&&(r.label||r)})}function V(t){return w(t,function(t,r){var n=r.pattern||x(r);return!t&&(t=RegExp("\\b"+n+"(?:/[\\d.]+|[ \\w.]*)","i").exec(e))&&(t=f(t,n,r.label||r)),t})}function G(t){return w(t,function(t,r){var n=r.pattern||x(r);return!t&&(t=RegExp("\\b"+n+" *\\d+[.\\w_]*","i").exec(e)||RegExp("\\b"+n+" *\\w+-[\\w]*","i").exec(e)||RegExp("\\b"+n+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(e))&&((t=String(r.label&&!RegExp(n,"i").test(r.label)?r.label:t).split("/"))[1]&&!/[\d.]+/.test(t[0])&&(t[0]+=" "+t[1]),r=r.label||r,t=y(t[0].replace(RegExp(n,"i"),r).replace(RegExp("; *(?:"+r+"[_-])?","i")," ").replace(RegExp("("+r+")[-_.]?(\\w)","i"),"$1 $2"))),t})}function W(t){return w(t,function(t,r){return t||(RegExp(r+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(e)||0)[1]||null})}function K(){return this.description||""}if(z&&(z=[z]),/\bAndroid\b/.test(U)&&!L&&(s=/\bAndroid[^;]*;(.*?)(?:Build|\) AppleWebKit)\b/i.exec(e))&&(L=S(s[1]).replace(/^[a-z]{2}-[a-z]{2};\s*/i,"")||null),q&&!L?L=G([q]):q&&L&&(L=L.replace(RegExp("^("+x(q)+")[-_.\\s]","i"),q+" ").replace(RegExp("^("+x(q)+")[-_.]?(\\w)","i"),q+" $2")),(s=/\bGoogle TV\b/.exec(L))&&(L=s[0]),/\bSimulator\b/i.test(e)&&(L=(L?L+" ":"")+"Simulator"),"Opera Mini"==B&&/\bOPiOS\b/.test(e)&&A.push("running in Turbo/Uncompressed mode"),"IE"==B&&/\blike iPhone OS\b/.test(e)?(q=(s=N(e.replace(/like iPhone OS/,""))).manufacturer,L=s.product):/^iP/.test(L)?(B||(B="Safari"),U="iOS"+((s=/ OS ([\d_]+)/i.exec(e))?" "+s[1].replace(/_/g,"."):"")):"Konqueror"==B&&/^Linux\b/i.test(U)?U="Kubuntu":q&&"Google"!=q&&(/Chrome/.test(B)&&!/\bMobile Safari\b/i.test(e)||/\bVita\b/.test(L))||/\bAndroid\b/.test(U)&&/^Chrome/.test(B)&&/\bVersion\//i.test(e)?(B="Android Browser",U=/\bAndroid\b/.test(U)?U:"Android"):"Silk"==B?(/\bMobi/i.test(e)||(U="Android",A.unshift("desktop mode")),/Accelerated *= *true/i.test(e)&&A.unshift("accelerated")):"UC Browser"==B&&/\bUCWEB\b/.test(e)?A.push("speed mode"):"PaleMoon"==B&&(s=/\bFirefox\/([\d.]+)\b/.exec(e))?A.push("identifying as Firefox "+s[1]):"Firefox"==B&&(s=/\b(Mobile|Tablet|TV)\b/i.exec(e))?(U||(U="Firefox OS"),L||(L=s[1])):!B||(s=!/\bMinefield\b/i.test(e)&&/\b(?:Firefox|Safari)\b/.exec(B))?(B&&!L&&/[\/,]|^[^(]+?\)/.test(e.slice(e.indexOf(s+"/")+8))&&(B=null),(s=L||q||U)&&(L||q||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(U))&&(B=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(U)?U:s)+" Browser")):"Electron"==B&&(s=(/\bChrome\/([\d.]+)\b/.exec(e)||0)[1])&&A.push("Chromium "+s),D||(D=W(["(?:Cloud9|CriOS|CrMo|Edge|Edg|EdgA|EdgiOS|FxiOS|HeadlessChrome|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$)|UCBrowser|YaBrowser)","Version",x(B),"(?:Firefox|Minefield|NetFront)"])),(s=("iCab"==z&&parseFloat(D)>3?"WebKit":/\bOpera\b/.test(B)&&(/\bOPR\b/.test(e)?"Blink":"Presto"))||/\b(?:Midori|Nook|Safari)\b/i.test(e)&&!/^(?:Trident|EdgeHTML)$/.test(z)&&"WebKit"||!z&&/\bMSIE\b/i.test(e)&&("Mac OS"==U?"Tasman":"Trident")||"WebKit"==z&&/\bPlayStation\b(?! Vita\b)/i.test(B)&&"NetFront")&&(z=[s]),"IE"==B&&(s=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(e)||0)[1])?(B+=" Mobile",U="Windows Phone "+(/\+$/.test(s)?s:s+".x"),A.unshift("desktop mode")):/\bWPDesktop\b/i.test(e)?(B="IE Mobile",U="Windows Phone 8.x",A.unshift("desktop mode"),D||(D=(/\brv:([\d.]+)/.exec(e)||0)[1])):"IE"!=B&&"Trident"==z&&(s=/\brv:([\d.]+)/.exec(e))&&(B&&A.push("identifying as "+B+(D?" "+D:"")),B="IE",D=s[1]),M){if(v(t,"global"))if(E&&(_=(s=E.lang.System).getProperty("os.arch"),U=U||s.getProperty("os.name")+" "+s.getProperty("os.version")),C){try{D=t.require("ringo/engine").version.join("."),B="RingoJS"}catch(Q){(s=t.system)&&s.global.system==t.system&&(B="Narwhal",U||(U=s[0].os||null))}B||(B="Rhino")}else"object"==typeof t.process&&!t.process.browser&&(s=t.process)&&("object"==typeof s.versions&&("string"==typeof s.versions.electron?(A.push("Node "+s.versions.node),B="Electron",D=s.versions.electron):"string"==typeof s.versions.nw&&(A.push("Chromium "+D,"Node "+s.versions.node),B="NW.js",D=s.versions.nw)),B||(B="Node.js",_=s.arch,U=s.platform,D=(D=/[\d.]+/.exec(s.version))?D[0]:null));else b(s=t.runtime)==p?(B="Adobe AIR",U=s.flash.system.Capabilities.os):b(s=t.phantom)==j?(B="PhantomJS",D=(s=s.version||null)&&s.major+"."+s.minor+"."+s.patch):"number"==typeof R.documentMode&&(s=/\bTrident\/(\d+)/i.exec(e))?(D=[D,R.documentMode],(s=+s[1]+4)!=D[1]&&(A.push("IE "+D[1]+" mode"),z&&(z[1]=""),D[1]=s),D="IE"==B?String(D[1].toFixed(1)):D[0]):"number"==typeof R.documentMode&&/^(?:Chrome|Firefox)\b/.test(B)&&(A.push("masking as "+B+" "+D),B="IE",D="11.0",z=["Trident"],U="Windows");U=U&&y(U)}if(D&&(s=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(D)||/(?:alpha|beta)(?: ?\d)?/i.exec(e+";"+(M&&n.appMinorVersion))||/\bMinefield\b/i.test(e)&&"a")&&(I=/b/i.test(s)?"beta":"alpha",D=D.replace(RegExp(s+"\\+?$"),"")+("beta"==I?T:k)+(/\d+\+?/.exec(s)||"")),"Fennec"==B||"Firefox"==B&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(U))B="Firefox Mobile";else if("Maxthon"==B&&D)D=D.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(L))"Xbox 360"==L&&(U=null),"Xbox 360"==L&&/\bIEMobile\b/.test(e)&&A.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(B)&&(!B||L||/Browser|Mobi/.test(B))||"Windows CE"!=U&&!/Mobi/i.test(e))if("IE"==B&&M)try{null===t.external&&A.unshift("platform preview")}catch(Q){A.unshift("embedded")}else(/\bBlackBerry\b/.test(L)||/\bBB10\b/.test(e))&&(s=(RegExp(L.replace(/ +/g," *")+"/([.\\d]+)","i").exec(e)||0)[1]||D)?(U=((s=[s,/BB10/.test(e)])[1]?(L=null,q="BlackBerry"):"Device Software")+" "+s[0],D=null):this!=g&&"Wii"!=L&&(M&&O||/Opera/.test(B)&&/\b(?:MSIE|Firefox)\b/i.test(e)||"Firefox"==B&&/\bOS X (?:\d+\.){2,}/.test(U)||"IE"==B&&(U&&!/^Win/.test(U)&&D>5.5||/\bWindows XP\b/.test(U)&&D>8||8==D&&!/\bTrident\b/.test(e)))&&!c.test(s=N.call(g,e.replace(c,"")+";"))&&s.name&&(s="ing as "+s.name+((s=s.version)?" "+s:""),c.test(B)?(/\bIE\b/.test(s)&&"Mac OS"==U&&(U=null),s="identify"+s):(s="mask"+s,B=P?y(P.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(s)&&(U=null),M||(D=null)),z=["Presto"],A.push(s));else B+=" Mobile";(s=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(e)||0)[1])&&(s=[parseFloat(s.replace(/\.(\d)$/,".0$1")),s],"Safari"==B&&"+"==s[1].slice(-1)?(B="WebKit Nightly",I="alpha",D=s[1].slice(0,-1)):D!=s[1]&&D!=(s[2]=(/\bSafari\/([\d.]+\+?)/i.exec(e)||0)[1])||(D=null),s[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(e)||0)[1],537.36==s[0]&&537.36==s[2]&&parseFloat(s[1])>=28&&"WebKit"==z&&(z=["Blink"]),M&&(l||s[1])?(z&&(z[1]="like Chrome"),s=s[1]||((s=s[0])<530?1:s<532?2:s<532.05?3:s<533?4:s<534.03?5:s<534.07?6:s<534.1?7:s<534.13?8:s<534.16?9:s<534.24?10:s<534.3?11:s<535.01?12:s<535.02?"13+":s<535.07?15:s<535.11?16:s<535.19?17:s<536.05?18:s<536.1?19:s<537.01?20:s<537.11?"21+":s<537.13?23:s<537.18?24:s<537.24?25:s<537.36?26:"Blink"!=z?"27":"28")):(z&&(z[1]="like Safari"),s=(s=s[0])<400?1:s<500?2:s<526?3:s<533?4:s<534?"4+":s<535?5:s<537?6:s<538?7:s<601?8:s<602?9:s<604?10:s<606?11:s<608?12:"12"),z&&(z[1]+=" "+(s+="number"==typeof s?".x":/[.+]/.test(s)?"":"+")),"Safari"==B&&(!D||parseInt(D)>45)?D=s:"Chrome"==B&&/\bHeadlessChrome/i.test(e)&&A.unshift("headless")),"Opera"==B&&(s=/\bzbov|zvav$/.exec(U))?(B+=" ",A.unshift("desktop mode"),"zvav"==s?(B+="Mini",D=null):B+="Mobile",U=U.replace(RegExp(" *"+s+"$"),"")):"Safari"==B&&/\bChrome\b/.exec(z&&z[1])?(A.unshift("desktop mode"),B="Chrome Mobile",D=null,/\bOS X\b/.test(U)?(q="Apple",U="iOS 4.3+"):U=null):/\bSRWare Iron\b/.test(B)&&!D&&(D=W("Chrome")),D&&0==D.indexOf(s=/[\d.]+$/.exec(U))&&e.indexOf("/"+s+"-")>-1&&(U=S(U.replace(s,""))),U&&-1!=U.indexOf(B)&&!RegExp(B+" OS").test(U)&&(U=U.replace(RegExp(" *"+x(B)+" *"),"")),z&&!/\b(?:Avant|Nook)\b/.test(B)&&(/Browser|Lunascape|Maxthon/.test(B)||"Safari"!=B&&/^iOS/.test(U)&&/\bSafari\b/.test(z[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(B)&&z[1])&&(s=z[z.length-1])&&A.push(s),A.length&&(A=["("+A.join("; ")+")"]),q&&L&&L.indexOf(q)<0&&A.push("on "+q),L&&A.push((/^on /.test(A[A.length-1])?"":"on ")+L),U&&(s=/ ([\d.+]+)$/.exec(U),a=s&&"/"==U.charAt(U.length-s[0].length-1),U={architecture:32,family:s&&!a?U.replace(s[0],""):U,version:s?s[1]:null,toString:function(){var e=this.version;return this.family+(e&&!a?" "+e:"")+(64==this.architecture?" 64-bit":"")}}),(s=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(_))&&!/\bi686\b/i.test(_)?(U&&(U.architecture=64,U.family=U.family.replace(RegExp(" *"+s),"")),B&&(/\bWOW64\b/i.test(e)||M&&/\w(?:86|32)$/.test(n.cpuClass||n.platform)&&!/\bWin64; x64\b/i.test(e))&&A.unshift("32-bit")):U&&/^OS X/.test(U.family)&&"Chrome"==B&&parseFloat(D)>=39&&(U.architecture=64),e||(e=null);var X={};return X.description=e,X.layout=z&&z[0],X.manufacturer=q,X.name=B,X.prerelease=I,X.product=L,X.ua=e,X.version=B&&D,X.os=U||{architecture:null,family:null,version:null,toString:function(){return"null"}},X.parse=N,X.toString=K,X.version&&A.unshift(D),X.name&&A.unshift(B),U&&B&&(U!=String(U).split(" ")[0]||U!=B.split(" ")[0]&&!L)&&A.push(L?"("+U+")":"on "+U),A.length&&(X.description=A.join(" ")),X}var j=N();o&&s?g(j,function(e,t){o[t]=e}):i.platform=j}).call(this)}).call(this)}).call(this,void 0!==dR?dR:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],441:[function(e,t,r){(function(e){(function(){function r(t,r,n,i){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var o,s,a=arguments.length;switch(a){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick(function(){t.call(null,r)});case 3:return e.nextTick(function(){t.call(null,r,n)});case 4:return e.nextTick(function(){t.call(null,r,n,i)});default:for(o=new Array(a-1),s=0;s<o.length;)o[s++]=arguments[s];return e.nextTick(function(){t.apply(null,o)})}}void 0===e||!e.version||0===e.version.indexOf("v0.")||0===e.version.indexOf("v1.")&&0!==e.version.indexOf("v1.8.")?t.exports={nextTick:r}:t.exports=e}).call(this)}).call(this,e("_process"))},{_process:538}],442:[function(e,t,r){var n,i,o=t.exports={};function s(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function l(e){if(n===setTimeout)return setTimeout(e,0);if((n===s||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(r){return n.call(this,e,0)}}}function c(e){if(i===clearTimeout)return clearTimeout(e);if((i===a||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{return i(e)}catch(t){try{return i.call(null,e)}catch(r){return i.call(this,e)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:s}catch(e){n=s}try{i="function"==typeof clearTimeout?clearTimeout:a}catch(e){i=a}}();var u,p=[],d=!1,m=-1;function f(){d&&u&&(d=!1,u.length?p=u.concat(p):m=-1,p.length&&h())}function h(){if(!d){var e=l(f);d=!0;for(var t=p.length;t;){for(u=p,p=[];++m<t;)u&&u[m].run();m=-1,t=p.length}u=null,d=!1,c(e)}}function y(e,t){this.fun=e,this.array=t}function g(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];p.push(new y(e,t)),1!==p.length||d||l(h)},y.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},{}],443:[function(e,t,r){(function(e){(function(){!function(n){var i="object"==typeof r&&r&&!r.nodeType&&r,o="object"==typeof t&&t&&!t.nodeType&&t,s="object"==typeof e&&e;s.global!==s&&s.window!==s&&s.self!==s||(n=s);var a,l,c=2147483647,u=36,p=1,d=26,m=38,f=700,h=72,y=128,g="-",b=/^xn--/,v=/[^\x20-\x7E]/,x=/[\x2E\u3002\uFF0E\uFF61]/g,w={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},S=u-p,N=Math.floor,j=String.fromCharCode;function E(e){throw new RangeError(w[e])}function C(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function k(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+C((e=e.replace(x,".")).split("."),t).join(".")}function T(e){for(var t,r,n=[],i=0,o=e.length;i<o;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<o?56320==(64512&(r=e.charCodeAt(i++)))?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),i--):n.push(t);return n}function R(e){return C(e,function(e){var t="";return e>65535&&(t+=j((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=j(e)}).join("")}function O(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:u}function P(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function _(e,t,r){var n=0;for(e=r?N(e/f):e>>1,e+=N(e/t);e>S*d>>1;n+=u)e=N(e/S);return N(n+(S+1)*e/(e+m))}function A(e){var t,r,n,i,o,s,a,l,m,f,b=[],v=e.length,x=0,w=y,S=h;for((r=e.lastIndexOf(g))<0&&(r=0),n=0;n<r;++n)e.charCodeAt(n)>=128&&E("not-basic"),b.push(e.charCodeAt(n));for(i=r>0?r+1:0;i<v;){for(o=x,s=1,a=u;i>=v&&E("invalid-input"),((l=O(e.charCodeAt(i++)))>=u||l>N((c-x)/s))&&E("overflow"),x+=l*s,!(l<(m=a<=S?p:a>=S+d?d:a-S));a+=u)s>N(c/(f=u-m))&&E("overflow"),s*=f;S=_(x-o,t=b.length+1,0==o),N(x/t)>c-w&&E("overflow"),w+=N(x/t),x%=t,b.splice(x++,0,w)}return R(b)}function I(e){var t,r,n,i,o,s,a,l,m,f,b,v,x,w,S,C=[];for(v=(e=T(e)).length,t=y,r=0,o=h,s=0;s<v;++s)(b=e[s])<128&&C.push(j(b));for(n=i=C.length,i&&C.push(g);n<v;){for(a=c,s=0;s<v;++s)(b=e[s])>=t&&b<a&&(a=b);for(a-t>N((c-r)/(x=n+1))&&E("overflow"),r+=(a-t)*x,t=a,s=0;s<v;++s)if((b=e[s])<t&&++r>c&&E("overflow"),b==t){for(l=r,m=u;!(l<(f=m<=o?p:m>=o+d?d:m-o));m+=u)S=l-f,w=u-f,C.push(j(P(f+S%w,0))),l=N(S/w);C.push(j(P(l,0))),o=_(r,x,n==i),r=0,++n}++r,++t}return C.join("")}function M(e){return k(e,function(e){return b.test(e)?A(e.slice(4).toLowerCase()):e})}function D(e){return k(e,function(e){return v.test(e)?"xn--"+I(e):e})}if(a={version:"1.4.1",ucs2:{decode:T,encode:R},decode:A,encode:I,toASCII:D,toUnicode:M},i&&o)if(t.exports==i)o.exports=a;else for(l in a)a.hasOwnProperty(l)&&(i[l]=a[l]);else n.punycode=a}(this)}).call(this)}).call(this,void 0!==dR?dR:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],444:[function(e,t,r){var n=String.prototype.replace,i=/%20/g,o={RFC1738:"RFC1738",RFC3986:"RFC3986"};t.exports={default:o.RFC3986,formatters:{RFC1738:function(e){return n.call(e,i,"+")},RFC3986:function(e){return String(e)}},RFC1738:o.RFC1738,RFC3986:o.RFC3986}},{}],445:[function(e,t,r){var n=e("./stringify"),i=e("./parse"),o=e("./formats");t.exports={formats:o,parse:i,stringify:n}},{"./formats":444,"./parse":446,"./stringify":447}],446:[function(e,t,r){var n=e("./utils"),i=Object.prototype.hasOwnProperty,o=Array.isArray,s={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},a=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},l=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},c="utf8=%26%2310003%3B",u="utf8=%E2%9C%93",p=function(e,t){var r,p={__proto__:null},d=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,m=t.parameterLimit===1/0?void 0:t.parameterLimit,f=d.split(t.delimiter,m),h=-1,y=t.charset;if(t.charsetSentinel)for(r=0;r<f.length;++r)0===f[r].indexOf("utf8=")&&(f[r]===u?y="utf-8":f[r]===c&&(y="iso-8859-1"),h=r,r=f.length);for(r=0;r<f.length;++r)if(r!==h){var g,b,v=f[r],x=v.indexOf("]="),w=-1===x?v.indexOf("="):x+1;-1===w?(g=t.decoder(v,s.decoder,y,"key"),b=t.strictNullHandling?null:""):(g=t.decoder(v.slice(0,w),s.decoder,y,"key"),b=n.maybeMap(l(v.slice(w+1),t),function(e){return t.decoder(e,s.decoder,y,"value")})),b&&t.interpretNumericEntities&&"iso-8859-1"===y&&(b=a(b)),v.indexOf("[]=")>-1&&(b=o(b)?[b]:b),i.call(p,g)?p[g]=n.combine(p[g],b):p[g]=b}return p},d=function(e,t,r,n){for(var i=n?t:l(t,r),o=e.length-1;o>=0;--o){var s,a=e[o];if("[]"===a&&r.parseArrays)s=[].concat(i);else{s=r.plainObjects?Object.create(null):{};var c="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,u=parseInt(c,10);r.parseArrays||""!==c?!isNaN(u)&&a!==c&&String(u)===c&&u>=0&&r.parseArrays&&u<=r.arrayLimit?(s=[])[u]=i:"__proto__"!==c&&(s[c]=i):s={0:i}}i=s}return i},m=function(e,t,r,n){if(e){var o=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,l=r.depth>0&&s.exec(o),c=l?o.slice(0,l.index):o,u=[];if(c){if(!r.plainObjects&&i.call(Object.prototype,c)&&!r.allowPrototypes)return;u.push(c)}for(var p=0;r.depth>0&&null!==(l=a.exec(o))&&p<r.depth;){if(p+=1,!r.plainObjects&&i.call(Object.prototype,l[1].slice(1,-1))&&!r.allowPrototypes)return;u.push(l[1])}return l&&u.push("["+o.slice(l.index)+"]"),d(u,t,r,n)}},f=function(e){if(!e)return s;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?s.charset:e.charset;return{allowDots:void 0===e.allowDots?s.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:s.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:s.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:s.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:s.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:s.comma,decoder:"function"==typeof e.decoder?e.decoder:s.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:s.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:s.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:s.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:s.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:s.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:s.strictNullHandling}};t.exports=function(e,t){var r=f(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var i="string"==typeof e?p(e,r):e,o=r.plainObjects?Object.create(null):{},s=Object.keys(i),a=0;a<s.length;++a){var l=s[a],c=m(l,i[l],r,"string"==typeof e);o=n.merge(o,c,r)}return!0===r.allowSparse?o:n.compact(o)}},{"./utils":448}],447:[function(e,t,r){var n=e("side-channel"),i=e("./utils"),o=e("./formats"),s=Object.prototype.hasOwnProperty,a={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,c=Array.prototype.push,u=function(e,t){c.apply(e,l(t)?t:[t])},p=Date.prototype.toISOString,d=o.default,m={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:i.encode,encodeValuesOnly:!1,format:d,formatter:o.formatters[d],indices:!1,serializeDate:function(e){return p.call(e)},skipNulls:!1,strictNullHandling:!1},f=function(e){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e||"symbol"==typeof e||"bigint"==typeof e},h={},y=function e(t,r,o,s,a,c,p,d,y,g,b,v,x,w,S,N){for(var j=t,E=N,C=0,k=!1;void 0!==(E=E.get(h))&&!k;){var T=E.get(t);if(C+=1,void 0!==T){if(T===C)throw new RangeError("Cyclic object value");k=!0}void 0===E.get(h)&&(C=0)}if("function"==typeof d?j=d(r,j):j instanceof Date?j=b(j):"comma"===o&&l(j)&&(j=i.maybeMap(j,function(e){return e instanceof Date?b(e):e})),null===j){if(a)return p&&!w?p(r,m.encoder,S,"key",v):r;j=""}if(f(j)||i.isBuffer(j))return p?[x(w?r:p(r,m.encoder,S,"key",v))+"="+x(p(j,m.encoder,S,"value",v))]:[x(r)+"="+x(String(j))];var R,O=[];if(void 0===j)return O;if("comma"===o&&l(j))w&&p&&(j=i.maybeMap(j,p)),R=[{value:j.length>0?j.join(",")||null:void 0}];else if(l(d))R=d;else{var P=Object.keys(j);R=y?P.sort(y):P}for(var _=s&&l(j)&&1===j.length?r+"[]":r,A=0;A<R.length;++A){var I=R[A],M="object"==typeof I&&void 0!==I.value?I.value:j[I];if(!c||null!==M){var D=l(j)?"function"==typeof o?o(_,I):_:_+(g?"."+I:"["+I+"]");N.set(t,C);var z=n();z.set(h,N),u(O,e(M,D,o,s,a,c,"comma"===o&&w&&l(j)?null:p,d,y,g,b,v,x,w,S,z))}}return O},g=function(e){if(!e)return m;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||m.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=o.default;if(void 0!==e.format){if(!s.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n=o.formatters[r],i=m.filter;return("function"==typeof e.filter||l(e.filter))&&(i=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:m.addQueryPrefix,allowDots:void 0===e.allowDots?m.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:m.charsetSentinel,delimiter:void 0===e.delimiter?m.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:m.encode,encoder:"function"==typeof e.encoder?e.encoder:m.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:m.encodeValuesOnly,filter:i,format:r,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:m.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:m.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:m.strictNullHandling}};t.exports=function(e,t){var r,i=e,o=g(t);"function"==typeof o.filter?i=(0,o.filter)("",i):l(o.filter)&&(r=o.filter);var s,c=[];if("object"!=typeof i||null===i)return"";s=t&&t.arrayFormat in a?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var p=a[s];if(t&&"commaRoundTrip"in t&&"boolean"!=typeof t.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var d="comma"===p&&t&&t.commaRoundTrip;r||(r=Object.keys(i)),o.sort&&r.sort(o.sort);for(var m=n(),f=0;f<r.length;++f){var h=r[f];o.skipNulls&&null===i[h]||u(c,y(i[h],h,p,d,o.strictNullHandling,o.skipNulls,o.encode?o.encoder:null,o.filter,o.sort,o.allowDots,o.serializeDate,o.format,o.formatter,o.encodeValuesOnly,o.charset,m))}var b=c.join(o.delimiter),v=!0===o.addQueryPrefix?"?":"";return o.charsetSentinel&&("iso-8859-1"===o.charset?v+="utf8=%26%2310003%3B&":v+="utf8=%E2%9C%93&"),b.length>0?v+b:""}},{"./formats":444,"./utils":448,"side-channel":467}],448:[function(e,t,r){var n=e("./formats"),i=Object.prototype.hasOwnProperty,o=Array.isArray,s=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),a=function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(o(r)){for(var n=[],i=0;i<r.length;++i)void 0!==r[i]&&n.push(r[i]);t.obj[t.prop]=n}}},l=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r},c=function e(t,r,n){if(!r)return t;if("object"!=typeof r){if(o(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!i.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var s=t;return o(t)&&!o(r)&&(s=l(t,n)),o(t)&&o(r)?(r.forEach(function(r,o){if(i.call(t,o)){var s=t[o];s&&"object"==typeof s&&r&&"object"==typeof r?t[o]=e(s,r,n):t.push(r)}else t[o]=r}),t):Object.keys(r).reduce(function(t,o){var s=r[o];return i.call(t,o)?t[o]=e(t[o],s,n):t[o]=s,t},s)},u=function(e,t){return Object.keys(t).reduce(function(e,r){return e[r]=t[r],e},e)},p=function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(i){return n}},d=function(e,t,r,i,o){if(0===e.length)return e;var a=e;if("symbol"==typeof e?a=Symbol.prototype.toString.call(e):"string"!=typeof e&&(a=String(e)),"iso-8859-1"===r)return escape(a).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var l="",c=0;c<a.length;++c){var u=a.charCodeAt(c);45===u||46===u||95===u||126===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||o===n.RFC1738&&(40===u||41===u)?l+=a.charAt(c):u<128?l+=s[u]:u<2048?l+=s[192|u>>6]+s[128|63&u]:u<55296||u>=57344?l+=s[224|u>>12]+s[128|u>>6&63]+s[128|63&u]:(c+=1,u=65536+((1023&u)<<10|1023&a.charCodeAt(c)),l+=s[240|u>>18]+s[128|u>>12&63]+s[128|u>>6&63]+s[128|63&u])}return l},m=function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var i=t[n],o=i.obj[i.prop],s=Object.keys(o),l=0;l<s.length;++l){var c=s[l],u=o[c];"object"==typeof u&&null!==u&&-1===r.indexOf(u)&&(t.push({obj:o,prop:c}),r.push(u))}return a(t),e},f=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},h=function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},y=function(e,t){return[].concat(e,t)},g=function(e,t){if(o(e)){for(var r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)};t.exports={arrayToObject:l,assign:u,combine:y,compact:m,decode:p,encode:d,isBuffer:h,isRegExp:f,maybeMap:g,merge:c}},{"./formats":444}],449:[function(e,t,r){function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.exports=function(e,t,r,o){t=t||"&",r=r||"=";var s={};if("string"!=typeof e||0===e.length)return s;var a=/\+/g;e=e.split(t);var l=1e3;o&&"number"==typeof o.maxKeys&&(l=o.maxKeys);var c=e.length;l>0&&c>l&&(c=l);for(var u=0;u<c;++u){var p,d,m,f,h=e[u].replace(a,"%20"),y=h.indexOf(r);y>=0?(p=h.substr(0,y),d=h.substr(y+1)):(p=h,d=""),m=decodeURIComponent(p),f=decodeURIComponent(d),n(s,m)?i(s[m])?s[m].push(f):s[m]=[s[m],f]:s[m]=f}return s};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},{}],450:[function(e,t,r){var n=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};t.exports=function(e,t,r,a){return t=t||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?o(s(e),function(s){var a=encodeURIComponent(n(s))+r;return i(e[s])?o(e[s],function(e){return a+encodeURIComponent(n(e))}).join(t):a+encodeURIComponent(n(e[s]))}).join(t):a?encodeURIComponent(n(a))+r+encodeURIComponent(n(e)):""};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function o(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n<e.length;n++)r.push(t(e[n],n));return r}var s=Object.keys||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t}},{}],451:[function(e,t,r){r.decode=r.parse=e("./decode"),r.encode=r.stringify=e("./encode")},{"./decode":449,"./encode":450}],452:[function(e,t,r){var n=e("process-nextick-args"),i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};t.exports=p;var o=Object.create(e("core-util-is"));o.inherits=e("inherits");var s=e("./_stream_readable"),a=e("./_stream_writable");o.inherits(p,s);for(var l=i(a.prototype),c=0;c<l.length;c++){var u=l[c];p.prototype[u]||(p.prototype[u]=a.prototype[u])}function p(e){if(!(this instanceof p))return new p(e);s.call(this,e),a.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",d)}function d(){this.allowHalfOpen||this._writableState.ended||n.nextTick(m,this)}function m(e){e.end()}Object.defineProperty(p.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(p.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),p.prototype._destroy=function(e,t){this.push(null),this.end(),n.nextTick(t,e)}},{"./_stream_readable":454,"./_stream_writable":456,"core-util-is":382,inherits:407,"process-nextick-args":441}],453:[function(e,t,r){t.exports=o;var n=e("./_stream_transform"),i=Object.create(e("core-util-is"));function o(e){if(!(this instanceof o))return new o(e);n.call(this,e)}i.inherits=e("inherits"),i.inherits(o,n),o.prototype._transform=function(e,t,r){r(null,e)}},{"./_stream_transform":455,"core-util-is":382,inherits:407}],454:[function(e,t,r){(function(r,n){(function(){var i=e("process-nextick-args");t.exports=S;var o,s=e("isarray");S.ReadableState=w,e("events").EventEmitter;var a=function(e,t){return e.listeners(t).length},l=e("./internal/streams/stream"),c=e("safe-buffer").Buffer,u=(void 0!==n?n:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};function p(e){return c.from(e)}function d(e){return c.isBuffer(e)||e instanceof u}var m=Object.create(e("core-util-is"));m.inherits=e("inherits");var f=e("util"),h=void 0;h=f&&f.debuglog?f.debuglog("stream"):function(){};var y,g=e("./internal/streams/BufferList"),b=e("./internal/streams/destroy");m.inherits(S,l);var v=["error","close","destroy","pause","resume"];function x(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?s(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}function w(t,r){t=t||{};var n=r instanceof(o=o||e("./_stream_duplex"));this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var i=t.highWaterMark,s=t.readableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(s||0===s)?s:a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new g,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(y||(y=e("string_decoder/").StringDecoder),this.decoder=new y(t.encoding),this.encoding=t.encoding)}function S(t){if(o=o||e("./_stream_duplex"),!(this instanceof S))return new S(t);this._readableState=new w(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),l.call(this)}function N(e,t,r,n,i){var o,s=e._readableState;return null===t?(s.reading=!1,O(e,s)):(i||(o=E(s,t)),o?e.emit("error",o):s.objectMode||t&&t.length>0?("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=p(t)),n?s.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):j(e,s,t,!0):s.ended?e.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?j(e,s,t,!1):A(e,s)):j(e,s,t,!1))):n||(s.reading=!1)),C(s)}function j(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&P(e)),A(e,t)}function E(e,t){var r;return d(t)||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk")),r}function C(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}Object.defineProperty(S.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),S.prototype.destroy=b.destroy,S.prototype._undestroy=b.undestroy,S.prototype._destroy=function(e,t){this.push(null),t(e)},S.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=c.from(e,t),t=""),r=!0),N(this,e,t,!1,r)},S.prototype.unshift=function(e){return N(this,e,null,!0,!1)},S.prototype.isPaused=function(){return!1===this._readableState.flowing},S.prototype.setEncoding=function(t){return y||(y=e("string_decoder/").StringDecoder),this._readableState.decoder=new y(t),this._readableState.encoding=t,this};var k=8388608;function T(e){return e>=k?e=k:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function R(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=T(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function O(e,t){if(!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,P(e)}}function P(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(h("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(_,e):_(e))}function _(e){h("emit readable"),e.emit("readable"),L(e)}function A(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(I,e,t))}function I(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(h("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}function M(e){return function(){var t=e._readableState;h("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&a(e,"data")&&(t.flowing=!0,L(e))}}function D(e){h("readable nexttick read 0"),e.read(0)}function z(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(B,e,t))}function B(e,t){t.reading||(h("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),L(e),t.flowing&&!t.reading&&e.read(0)}function L(e){var t=e._readableState;for(h("flow",t.flowing);t.flowing&&null!==e.read(););}function q(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=U(e,t.buffer,t.decoder),r);var r}function U(e,t,r){var n;return e<t.head.data.length?(n=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):n=e===t.head.data.length?t.shift():r?H(e,t):F(e,t),n}function H(e,t){var r=t.head,n=1,i=r.data;for(e-=i.length;r=r.next;){var o=r.data,s=e>o.length?o.length:e;if(s===o.length?i+=o:i+=o.slice(0,e),0===(e-=s)){s===o.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(s));break}++n}return t.length-=n,i}function F(e,t){var r=c.allocUnsafe(e),n=t.head,i=1;for(n.data.copy(r),e-=n.data.length;n=n.next;){var o=n.data,s=e>o.length?o.length:e;if(o.copy(r,r.length-e,0,s),0===(e-=s)){s===o.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(s));break}++i}return t.length-=i,r}function $(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i.nextTick(V,t,e))}function V(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function G(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}S.prototype.read=function(e){h("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return h("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?$(this):P(this),null;if(0===(e=R(e,t))&&t.ended)return 0===t.length&&$(this),null;var n,i=t.needReadable;return h("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&h("length less than watermark",i=!0),t.ended||t.reading?h("reading or ended",i=!1):i&&(h("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=R(r,t))),null===(n=e>0?q(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&$(this)),null!==n&&this.emit("data",n),n},S.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},S.prototype.pipe=function(e,t){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,h("pipe count=%d opts=%j",o.pipesCount,t);var s=t&&!1===t.end||e===r.stdout||e===r.stderr?v:c;function l(e,t){h("onunpipe"),e===n&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,d())}function c(){h("onend"),e.end()}o.endEmitted?i.nextTick(s):n.once("end",s),e.on("unpipe",l);var u=M(n);e.on("drain",u);var p=!1;function d(){h("cleanup"),e.removeListener("close",g),e.removeListener("finish",b),e.removeListener("drain",u),e.removeListener("error",y),e.removeListener("unpipe",l),n.removeListener("end",c),n.removeListener("end",v),n.removeListener("data",f),p=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||u()}var m=!1;function f(t){h("ondata"),m=!1,!1!==e.write(t)||m||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==G(o.pipes,e))&&!p&&(h("false write response, pause",o.awaitDrain),o.awaitDrain++,m=!0),n.pause())}function y(t){h("onerror",t),v(),e.removeListener("error",y),0===a(e,"error")&&e.emit("error",t)}function g(){e.removeListener("finish",b),v()}function b(){h("onfinish"),e.removeListener("close",g),v()}function v(){h("unpipe"),n.unpipe(e)}return n.on("data",f),x(e,"error",y),e.once("close",g),e.once("finish",b),e.emit("pipe",n),o.flowing||(h("pipe resume"),n.resume()),e},S.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var s=G(t.pipes,e);return-1===s||(t.pipes.splice(s,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},S.prototype.on=function(e,t){var r=l.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var n=this._readableState;n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&P(this):i.nextTick(D,this))}return r},S.prototype.addListener=S.prototype.on,S.prototype.resume=function(){var e=this._readableState;return e.flowing||(h("resume"),e.flowing=!0,z(this,e)),this},S.prototype.pause=function(){return h("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(h("pause"),this._readableState.flowing=!1,this.emit("pause")),this},S.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",function(){if(h("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){h("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i||(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))}),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<v.length;o++)e.on(v[o],this.emit.bind(this,v[o]));return this._read=function(t){h("wrapped _read",t),n&&(n=!1,e.resume())},this},Object.defineProperty(S.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),S._fromList=q}).call(this)}).call(this,e("_process"),void 0!==dR?dR:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./_stream_duplex":452,"./internal/streams/BufferList":457,"./internal/streams/destroy":458,"./internal/streams/stream":459,_process:538,"core-util-is":382,events:386,inherits:407,isarray:460,"process-nextick-args":441,"safe-buffer":461,"string_decoder/":462,util:102}],455:[function(e,t,r){t.exports=s;var n=e("./_stream_duplex"),i=Object.create(e("core-util-is"));function o(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function s(e){if(!(this instanceof s))return new s(e);n.call(this,e),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",a)}function a(){var e=this;"function"==typeof this._flush?this._flush(function(t,r){l(e,t,r)}):l(this,null,null)}function l(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}i.inherits=e("inherits"),i.inherits(s,n),s.prototype.push=function(e,t){return this._transformState.needTransform=!1,n.prototype.push.call(this,e,t)},s.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")},s.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},s.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},s.prototype._destroy=function(e,t){var r=this;n.prototype._destroy.call(this,e,function(e){t(e),r.emit("close")})}},{"./_stream_duplex":452,"core-util-is":382,inherits:407}],456:[function(e,t,r){(function(r,n,i){(function(){var o=e("process-nextick-args");function s(e){var t=this;this.next=null,this.entry=null,this.finish=function(){z(t,e)}}t.exports=x;var a,l=!r.browser&&["v0.10","v0.9."].indexOf(r.version.slice(0,5))>-1?i:o.nextTick;x.WritableState=v;var c=Object.create(e("core-util-is"));c.inherits=e("inherits");var u={deprecate:e("util-deprecate")},p=e("./internal/streams/stream"),d=e("safe-buffer").Buffer,m=(void 0!==n?n:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};function f(e){return d.from(e)}function h(e){return d.isBuffer(e)||e instanceof m}var y,g=e("./internal/streams/destroy");function b(){}function v(t,r){a=a||e("./_stream_duplex"),t=t||{};var n=r instanceof a;this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var i=t.highWaterMark,o=t.writableHighWaterMark,l=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(o||0===o)?o:l,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var c=!1===t.decodeStrings;this.decodeStrings=!c,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){T(r,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new s(this)}function x(t){if(a=a||e("./_stream_duplex"),!(y.call(x,this)||this instanceof a))return new x(t);this._writableState=new v(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),p.call(this)}function w(e,t){var r=new Error("write after end");e.emit("error",r),o.nextTick(t,r)}function S(e,t,r,n){var i=!0,s=!1;return null===r?s=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||t.objectMode||(s=new TypeError("Invalid non-string/buffer chunk")),s&&(e.emit("error",s),o.nextTick(n,s),i=!1),i}function N(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=d.from(t,r)),t}function j(e,t,r,n,i,o){if(!r){var s=N(t,n,i);n!==s&&(r=!0,i="buffer",n=s)}var a=t.objectMode?1:n.length;t.length+=a;var l=t.length<t.highWaterMark;if(l||(t.needDrain=!0),t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else E(e,t,!1,a,n,i,o);return l}function E(e,t,r,n,i,o,s){t.writelen=n,t.writecb=s,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function C(e,t,r,n,i){--t.pendingcb,r?(o.nextTick(i,n),o.nextTick(M,e,t),e._writableState.errorEmitted=!0,e.emit("error",n)):(i(n),e._writableState.errorEmitted=!0,e.emit("error",n),M(e,t))}function k(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function T(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(k(r),t)C(e,r,n,t,i);else{var o=_(r);o||r.corked||r.bufferProcessing||!r.bufferedRequest||P(e,r),n?l(R,e,r,o,i):R(e,r,o,i)}}function R(e,t,r,n){r||O(e,t),t.pendingcb--,n(),M(e,t)}function O(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function P(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),o=t.corkedRequestsFree;o.entry=r;for(var a=0,l=!0;r;)i[a]=r,r.isBuf||(l=!1),r=r.next,a+=1;i.allBuffers=l,E(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new s(t),t.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,u=r.encoding,p=r.callback;if(E(e,t,!1,t.objectMode?1:c.length,c,u,p),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function _(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function A(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),M(e,t)})}function I(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,o.nextTick(A,e,t)):(t.prefinished=!0,e.emit("prefinish")))}function M(e,t){var r=_(t);return r&&(I(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}function D(e,t,r){t.ending=!0,M(e,t),r&&(t.finished?o.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function z(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}c.inherits(x,p),v.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(v.prototype,"buffer",{get:u.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(y=Function.prototype[Symbol.hasInstance],Object.defineProperty(x,Symbol.hasInstance,{value:function(e){return!!y.call(this,e)||this===x&&e&&e._writableState instanceof v}})):y=function(e){return e instanceof this},x.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},x.prototype.write=function(e,t,r){var n=this._writableState,i=!1,o=!n.objectMode&&h(e);return o&&!d.isBuffer(e)&&(e=f(e)),"function"==typeof t&&(r=t,t=null),o?t="buffer":t||(t=n.defaultEncoding),"function"!=typeof r&&(r=b),n.ended?w(this,r):(o||S(this,n,e,r))&&(n.pendingcb++,i=j(this,n,o,e,t,r)),i},x.prototype.cork=function(){this._writableState.corked++},x.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||P(this,e))},x.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(x.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),x.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},x.prototype._writev=null,x.prototype.end=function(e,t,r){var n=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||D(this,n,r)},Object.defineProperty(x.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),x.prototype.destroy=g.destroy,x.prototype._undestroy=g.undestroy,x.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this)}).call(this,e("_process"),void 0!==dR?dR:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("timers").setImmediate)},{"./_stream_duplex":452,"./internal/streams/destroy":458,"./internal/streams/stream":459,_process:538,"core-util-is":382,inherits:407,"process-nextick-args":441,"safe-buffer":461,timers:484,"util-deprecate":486}],457:[function(e,t,r){function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=e("safe-buffer").Buffer,o=e("util");function s(e,t,r){e.copy(t,r)}t.exports=function(){function e(){n(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},e.prototype.concat=function(e){if(0===this.length)return i.alloc(0);for(var t=i.allocUnsafe(e>>>0),r=this.head,n=0;r;)s(r.data,t,n),n+=r.data.length,r=r.next;return t},e}(),o&&o.inspect&&o.inspect.custom&&(t.exports.prototype[o.inspect.custom]=function(){var e=o.inspect({length:this.length});return this.constructor.name+" "+e})},{"safe-buffer":461,util:102}],458:[function(e,t,r){var n=e("process-nextick-args");function i(e,t){var r=this,i=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return i||o?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(s,this,e)):n.nextTick(s,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,n.nextTick(s,r,e)):n.nextTick(s,r,e):t&&t(e)}),this)}function o(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function s(e,t){e.emit("error",t)}t.exports={destroy:i,undestroy:o}},{"process-nextick-args":441}],459:[function(e,t,r){t.exports=e("events").EventEmitter},{events:386}],460:[function(e,t,r){var n={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},{}],461:[function(e,t,r){var n=e("buffer"),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function s(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(o(n,r),r.Buffer=s),o(i,s),s.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},s.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},s.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},s.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},{buffer:103}],462:[function(e,t,r){var n=e("safe-buffer").Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function s(e){var t=o(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}function a(e){var t;switch(this.encoding=s(e),this.encoding){case"utf16le":this.text=f,this.end=h,t=4;break;case"utf8":this.fillLast=p,t=4;break;case"base64":this.text=y,this.end=g,t=3;break;default:return this.write=b,void(this.end=v)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function l(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function c(e,t,r){var n=t.length-1;if(n<r)return 0;var i=l(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||-2===i?0:(i=l(t[n]))>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||-2===i?0:(i=l(t[n]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}function u(e,t,r){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}function p(e){var t=this.lastTotal-this.lastNeed,r=u(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function d(e,t){var r=c(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function m(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function f(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function h(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function y(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function g(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function b(e){return e.toString(this.encoding)}function v(e){return e&&e.length?this.write(e):""}r.StringDecoder=a,a.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},a.prototype.end=m,a.prototype.text=d,a.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},{"safe-buffer":461}],463:[function(e,t,r){(r=t.exports=e("./lib/_stream_readable.js")).Stream=r,r.Readable=r,r.Writable=e("./lib/_stream_writable.js"),r.Duplex=e("./lib/_stream_duplex.js"),r.Transform=e("./lib/_stream_transform.js"),r.PassThrough=e("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":452,"./lib/_stream_passthrough.js":453,"./lib/_stream_readable.js":454,"./lib/_stream_transform.js":455,"./lib/_stream_writable.js":456}],464:[function(e,t,r){
|
|
18
|
+
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
19
|
+
var n=e("buffer"),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function s(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(o(n,r),r.Buffer=s),s.prototype=Object.create(i.prototype),o(i,s),s.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},s.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},s.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},s.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},{buffer:103}],465:[function(e,t,r){(function(t){(function(){!function(r){r.parser=function(e,t){return new o(e,t)},r.SAXParser=o,r.SAXStream=p,r.createStream=u,r.MAX_BUFFER_LENGTH=65536;var n,i=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function o(e,t){if(!(this instanceof o))return new o(e,t);var n=this;a(n),n.q=n.c="",n.bufferCheckPosition=r.MAX_BUFFER_LENGTH,n.opt=t||{},n.opt.lowercase=n.opt.lowercase||n.opt.lowercasetags,n.looseCase=n.opt.lowercase?"toLowerCase":"toUpperCase",n.tags=[],n.closed=n.closedRoot=n.sawRoot=!1,n.tag=n.error=null,n.strict=!!e,n.noscript=!(!e&&!n.opt.noscript),n.state=R.BEGIN,n.strictEntities=n.opt.strictEntities,n.ENTITIES=n.strictEntities?Object.create(r.XML_ENTITIES):Object.create(r.ENTITIES),n.attribList=[],n.opt.xmlns&&(n.ns=Object.create(y)),n.trackPosition=!1!==n.opt.position,n.trackPosition&&(n.position=n.line=n.column=0),P(n,"onready")}function s(e){for(var t=Math.max(r.MAX_BUFFER_LENGTH,10),n=0,o=0,s=i.length;o<s;o++){var a=e[i[o]].length;if(a>t)switch(i[o]){case"textNode":A(e);break;case"cdata":_(e,"oncdata",e.cdata),e.cdata="";break;case"script":_(e,"onscript",e.script),e.script="";break;default:M(e,"Max buffer length exceeded: "+i[o])}n=Math.max(n,a)}var l=r.MAX_BUFFER_LENGTH-n;e.bufferCheckPosition=l+e.position}function a(e){for(var t=0,r=i.length;t<r;t++)e[i[t]]=""}function l(e){A(e),""!==e.cdata&&(_(e,"oncdata",e.cdata),e.cdata=""),""!==e.script&&(_(e,"onscript",e.script),e.script="")}r.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],Object.create||(Object.create=function(e){function t(){}return t.prototype=e,new t}),Object.keys||(Object.keys=function(e){var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r);return t}),o.prototype={end:function(){D(this)},write:G,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){l(this)}};try{n=e("stream").Stream}catch(W){n=function(){}}n||(n=function(){});var c=r.EVENTS.filter(function(e){return"error"!==e&&"end"!==e});function u(e,t){return new p(e,t)}function p(e,t){if(!(this instanceof p))return new p(e,t);n.apply(this),this._parser=new o(e,t),this.writable=!0,this.readable=!0;var r=this;this._parser.onend=function(){r.emit("end")},this._parser.onerror=function(e){r.emit("error",e),r._parser.error=null},this._decoder=null,c.forEach(function(e){Object.defineProperty(r,"on"+e,{get:function(){return r._parser["on"+e]},set:function(t){if(!t)return r.removeAllListeners(e),r._parser["on"+e]=t,t;r.on(e,t)},enumerable:!0,configurable:!1})})}p.prototype=Object.create(n.prototype,{constructor:{value:p}}),p.prototype.write=function(r){if("function"==typeof t&&"function"==typeof t.isBuffer&&t.isBuffer(r)){if(!this._decoder){var n=e("string_decoder").StringDecoder;this._decoder=new n("utf8")}r=this._decoder.write(r)}return this._parser.write(r.toString()),this.emit("data",r),!0},p.prototype.end=function(e){return e&&e.length&&this.write(e),this._parser.end(),!0},p.prototype.on=function(e,t){var r=this;return r._parser["on"+e]||-1===c.indexOf(e)||(r._parser["on"+e]=function(){var t=1===arguments.length?[arguments[0]]:Array.apply(null,arguments);t.splice(0,0,e),r.emit.apply(r,t)}),n.prototype.on.call(r,e,t)};var d="[CDATA[",m="DOCTYPE",f="http://www.w3.org/XML/1998/namespace",h="http://www.w3.org/2000/xmlns/",y={xml:f,xmlns:h},g=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,b=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,v=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,x=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function w(e){return" "===e||"\n"===e||"\r"===e||"\t"===e}function S(e){return'"'===e||"'"===e}function N(e){return">"===e||w(e)}function j(e,t){return e.test(t)}function E(e,t){return!j(e,t)}var C,k,T,R=0;for(var O in r.STATE={BEGIN:R++,BEGIN_WHITESPACE:R++,TEXT:R++,TEXT_ENTITY:R++,OPEN_WAKA:R++,SGML_DECL:R++,SGML_DECL_QUOTED:R++,DOCTYPE:R++,DOCTYPE_QUOTED:R++,DOCTYPE_DTD:R++,DOCTYPE_DTD_QUOTED:R++,COMMENT_STARTING:R++,COMMENT:R++,COMMENT_ENDING:R++,COMMENT_ENDED:R++,CDATA:R++,CDATA_ENDING:R++,CDATA_ENDING_2:R++,PROC_INST:R++,PROC_INST_BODY:R++,PROC_INST_ENDING:R++,OPEN_TAG:R++,OPEN_TAG_SLASH:R++,ATTRIB:R++,ATTRIB_NAME:R++,ATTRIB_NAME_SAW_WHITE:R++,ATTRIB_VALUE:R++,ATTRIB_VALUE_QUOTED:R++,ATTRIB_VALUE_CLOSED:R++,ATTRIB_VALUE_UNQUOTED:R++,ATTRIB_VALUE_ENTITY_Q:R++,ATTRIB_VALUE_ENTITY_U:R++,CLOSE_TAG:R++,CLOSE_TAG_SAW_WHITE:R++,SCRIPT:R++,SCRIPT_ENDING:R++},r.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},r.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(r.ENTITIES).forEach(function(e){var t=r.ENTITIES[e],n="number"==typeof t?String.fromCharCode(t):t;r.ENTITIES[e]=n}),r.STATE)r.STATE[r.STATE[O]]=O;function P(e,t,r){e[t]&&e[t](r)}function _(e,t,r){e.textNode&&A(e),P(e,t,r)}function A(e){e.textNode=I(e.opt,e.textNode),e.textNode&&P(e,"ontext",e.textNode),e.textNode=""}function I(e,t){return e.trim&&(t=t.trim()),e.normalize&&(t=t.replace(/\s+/g," ")),t}function M(e,t){return A(e),e.trackPosition&&(t+="\nLine: "+e.line+"\nColumn: "+e.column+"\nChar: "+e.c),t=new Error(t),e.error=t,P(e,"onerror",t),e}function D(e){return e.sawRoot&&!e.closedRoot&&z(e,"Unclosed root tag"),e.state!==R.BEGIN&&e.state!==R.BEGIN_WHITESPACE&&e.state!==R.TEXT&&M(e,"Unexpected end"),A(e),e.c="",e.closed=!0,P(e,"onend"),o.call(e,e.strict,e.opt),e}function z(e,t){if("object"!=typeof e||!(e instanceof o))throw new Error("bad call to strictFail");e.strict&&M(e,t)}function B(e){e.strict||(e.tagName=e.tagName[e.looseCase]());var t=e.tags[e.tags.length-1]||e,r=e.tag={name:e.tagName,attributes:{}};e.opt.xmlns&&(r.ns=t.ns),e.attribList.length=0,_(e,"onopentagstart",r)}function L(e,t){var r=e.indexOf(":")<0?["",e]:e.split(":"),n=r[0],i=r[1];return t&&"xmlns"===e&&(n="xmlns",i=""),{prefix:n,local:i}}function q(e){if(e.strict||(e.attribName=e.attribName[e.looseCase]()),-1!==e.attribList.indexOf(e.attribName)||e.tag.attributes.hasOwnProperty(e.attribName))e.attribName=e.attribValue="";else{if(e.opt.xmlns){var t=L(e.attribName,!0),r=t.prefix,n=t.local;if("xmlns"===r)if("xml"===n&&e.attribValue!==f)z(e,"xml: prefix must be bound to "+f+"\nActual: "+e.attribValue);else if("xmlns"===n&&e.attribValue!==h)z(e,"xmlns: prefix must be bound to "+h+"\nActual: "+e.attribValue);else{var i=e.tag,o=e.tags[e.tags.length-1]||e;i.ns===o.ns&&(i.ns=Object.create(o.ns)),i.ns[n]=e.attribValue}e.attribList.push([e.attribName,e.attribValue])}else e.tag.attributes[e.attribName]=e.attribValue,_(e,"onattribute",{name:e.attribName,value:e.attribValue});e.attribName=e.attribValue=""}}function U(e,t){if(e.opt.xmlns){var r=e.tag,n=L(e.tagName);r.prefix=n.prefix,r.local=n.local,r.uri=r.ns[n.prefix]||"",r.prefix&&!r.uri&&(z(e,"Unbound namespace prefix: "+JSON.stringify(e.tagName)),r.uri=n.prefix);var i=e.tags[e.tags.length-1]||e;r.ns&&i.ns!==r.ns&&Object.keys(r.ns).forEach(function(t){_(e,"onopennamespace",{prefix:t,uri:r.ns[t]})});for(var o=0,s=e.attribList.length;o<s;o++){var a=e.attribList[o],l=a[0],c=a[1],u=L(l,!0),p=u.prefix,d=u.local,m=""===p?"":r.ns[p]||"",f={name:l,value:c,prefix:p,local:d,uri:m};p&&"xmlns"!==p&&!m&&(z(e,"Unbound namespace prefix: "+JSON.stringify(p)),f.uri=p),e.tag.attributes[l]=f,_(e,"onattribute",f)}e.attribList.length=0}e.tag.isSelfClosing=!!t,e.sawRoot=!0,e.tags.push(e.tag),_(e,"onopentag",e.tag),t||(e.noscript||"script"!==e.tagName.toLowerCase()?e.state=R.TEXT:e.state=R.SCRIPT,e.tag=null,e.tagName=""),e.attribName=e.attribValue="",e.attribList.length=0}function H(e){if(!e.tagName)return z(e,"Weird empty close tag."),e.textNode+="</>",void(e.state=R.TEXT);if(e.script){if("script"!==e.tagName)return e.script+="</"+e.tagName+">",e.tagName="",void(e.state=R.SCRIPT);_(e,"onscript",e.script),e.script=""}var t=e.tags.length,r=e.tagName;e.strict||(r=r[e.looseCase]());for(var n=r;t--&&e.tags[t].name!==n;)z(e,"Unexpected close tag");if(t<0)return z(e,"Unmatched closing tag: "+e.tagName),e.textNode+="</"+e.tagName+">",void(e.state=R.TEXT);e.tagName=r;for(var i=e.tags.length;i-- >t;){var o=e.tag=e.tags.pop();e.tagName=e.tag.name,_(e,"onclosetag",e.tagName);var s={};for(var a in o.ns)s[a]=o.ns[a];var l=e.tags[e.tags.length-1]||e;e.opt.xmlns&&o.ns!==l.ns&&Object.keys(o.ns).forEach(function(t){var r=o.ns[t];_(e,"onclosenamespace",{prefix:t,uri:r})})}0===t&&(e.closedRoot=!0),e.tagName=e.attribValue=e.attribName="",e.attribList.length=0,e.state=R.TEXT}function F(e){var t,r=e.entity,n=r.toLowerCase(),i="";return e.ENTITIES[r]?e.ENTITIES[r]:e.ENTITIES[n]?e.ENTITIES[n]:("#"===(r=n).charAt(0)&&("x"===r.charAt(1)?(r=r.slice(2),i=(t=parseInt(r,16)).toString(16)):(r=r.slice(1),i=(t=parseInt(r,10)).toString(10))),r=r.replace(/^0+/,""),isNaN(t)||i.toLowerCase()!==r?(z(e,"Invalid character entity"),"&"+e.entity+";"):String.fromCodePoint(t))}function $(e,t){"<"===t?(e.state=R.OPEN_WAKA,e.startTagPosition=e.position):w(t)||(z(e,"Non-whitespace before first tag."),e.textNode=t,e.state=R.TEXT)}function V(e,t){var r="";return t<e.length&&(r=e.charAt(t)),r}function G(e){var t=this;if(this.error)throw this.error;if(t.closed)return M(t,"Cannot write after close. Assign an onready handler.");if(null===e)return D(t);"object"==typeof e&&(e=e.toString());for(var r=0,n="";n=V(e,r++),t.c=n,n;)switch(t.trackPosition&&(t.position++,"\n"===n?(t.line++,t.column=0):t.column++),t.state){case R.BEGIN:if(t.state=R.BEGIN_WHITESPACE,"\ufeff"===n)continue;$(t,n);continue;case R.BEGIN_WHITESPACE:$(t,n);continue;case R.TEXT:if(t.sawRoot&&!t.closedRoot){for(var i=r-1;n&&"<"!==n&&"&"!==n;)(n=V(e,r++))&&t.trackPosition&&(t.position++,"\n"===n?(t.line++,t.column=0):t.column++);t.textNode+=e.substring(i,r-1)}"<"!==n||t.sawRoot&&t.closedRoot&&!t.strict?(w(n)||t.sawRoot&&!t.closedRoot||z(t,"Text data outside of root node."),"&"===n?t.state=R.TEXT_ENTITY:t.textNode+=n):(t.state=R.OPEN_WAKA,t.startTagPosition=t.position);continue;case R.SCRIPT:"<"===n?t.state=R.SCRIPT_ENDING:t.script+=n;continue;case R.SCRIPT_ENDING:"/"===n?t.state=R.CLOSE_TAG:(t.script+="<"+n,t.state=R.SCRIPT);continue;case R.OPEN_WAKA:if("!"===n)t.state=R.SGML_DECL,t.sgmlDecl="";else if(w(n));else if(j(g,n))t.state=R.OPEN_TAG,t.tagName=n;else if("/"===n)t.state=R.CLOSE_TAG,t.tagName="";else if("?"===n)t.state=R.PROC_INST,t.procInstName=t.procInstBody="";else{if(z(t,"Unencoded <"),t.startTagPosition+1<t.position){var o=t.position-t.startTagPosition;n=new Array(o).join(" ")+n}t.textNode+="<"+n,t.state=R.TEXT}continue;case R.SGML_DECL:(t.sgmlDecl+n).toUpperCase()===d?(_(t,"onopencdata"),t.state=R.CDATA,t.sgmlDecl="",t.cdata=""):t.sgmlDecl+n==="--"?(t.state=R.COMMENT,t.comment="",t.sgmlDecl=""):(t.sgmlDecl+n).toUpperCase()===m?(t.state=R.DOCTYPE,(t.doctype||t.sawRoot)&&z(t,"Inappropriately located doctype declaration"),t.doctype="",t.sgmlDecl=""):">"===n?(_(t,"onsgmldeclaration",t.sgmlDecl),t.sgmlDecl="",t.state=R.TEXT):S(n)?(t.state=R.SGML_DECL_QUOTED,t.sgmlDecl+=n):t.sgmlDecl+=n;continue;case R.SGML_DECL_QUOTED:n===t.q&&(t.state=R.SGML_DECL,t.q=""),t.sgmlDecl+=n;continue;case R.DOCTYPE:">"===n?(t.state=R.TEXT,_(t,"ondoctype",t.doctype),t.doctype=!0):(t.doctype+=n,"["===n?t.state=R.DOCTYPE_DTD:S(n)&&(t.state=R.DOCTYPE_QUOTED,t.q=n));continue;case R.DOCTYPE_QUOTED:t.doctype+=n,n===t.q&&(t.q="",t.state=R.DOCTYPE);continue;case R.DOCTYPE_DTD:t.doctype+=n,"]"===n?t.state=R.DOCTYPE:S(n)&&(t.state=R.DOCTYPE_DTD_QUOTED,t.q=n);continue;case R.DOCTYPE_DTD_QUOTED:t.doctype+=n,n===t.q&&(t.state=R.DOCTYPE_DTD,t.q="");continue;case R.COMMENT:"-"===n?t.state=R.COMMENT_ENDING:t.comment+=n;continue;case R.COMMENT_ENDING:"-"===n?(t.state=R.COMMENT_ENDED,t.comment=I(t.opt,t.comment),t.comment&&_(t,"oncomment",t.comment),t.comment=""):(t.comment+="-"+n,t.state=R.COMMENT);continue;case R.COMMENT_ENDED:">"!==n?(z(t,"Malformed comment"),t.comment+="--"+n,t.state=R.COMMENT):t.state=R.TEXT;continue;case R.CDATA:"]"===n?t.state=R.CDATA_ENDING:t.cdata+=n;continue;case R.CDATA_ENDING:"]"===n?t.state=R.CDATA_ENDING_2:(t.cdata+="]"+n,t.state=R.CDATA);continue;case R.CDATA_ENDING_2:">"===n?(t.cdata&&_(t,"oncdata",t.cdata),_(t,"onclosecdata"),t.cdata="",t.state=R.TEXT):"]"===n?t.cdata+="]":(t.cdata+="]]"+n,t.state=R.CDATA);continue;case R.PROC_INST:"?"===n?t.state=R.PROC_INST_ENDING:w(n)?t.state=R.PROC_INST_BODY:t.procInstName+=n;continue;case R.PROC_INST_BODY:if(!t.procInstBody&&w(n))continue;"?"===n?t.state=R.PROC_INST_ENDING:t.procInstBody+=n;continue;case R.PROC_INST_ENDING:">"===n?(_(t,"onprocessinginstruction",{name:t.procInstName,body:t.procInstBody}),t.procInstName=t.procInstBody="",t.state=R.TEXT):(t.procInstBody+="?"+n,t.state=R.PROC_INST_BODY);continue;case R.OPEN_TAG:j(b,n)?t.tagName+=n:(B(t),">"===n?U(t):"/"===n?t.state=R.OPEN_TAG_SLASH:(w(n)||z(t,"Invalid character in tag name"),t.state=R.ATTRIB));continue;case R.OPEN_TAG_SLASH:">"===n?(U(t,!0),H(t)):(z(t,"Forward-slash in opening tag not followed by >"),t.state=R.ATTRIB);continue;case R.ATTRIB:if(w(n))continue;">"===n?U(t):"/"===n?t.state=R.OPEN_TAG_SLASH:j(g,n)?(t.attribName=n,t.attribValue="",t.state=R.ATTRIB_NAME):z(t,"Invalid attribute name");continue;case R.ATTRIB_NAME:"="===n?t.state=R.ATTRIB_VALUE:">"===n?(z(t,"Attribute without value"),t.attribValue=t.attribName,q(t),U(t)):w(n)?t.state=R.ATTRIB_NAME_SAW_WHITE:j(b,n)?t.attribName+=n:z(t,"Invalid attribute name");continue;case R.ATTRIB_NAME_SAW_WHITE:if("="===n)t.state=R.ATTRIB_VALUE;else{if(w(n))continue;z(t,"Attribute without value"),t.tag.attributes[t.attribName]="",t.attribValue="",_(t,"onattribute",{name:t.attribName,value:""}),t.attribName="",">"===n?U(t):j(g,n)?(t.attribName=n,t.state=R.ATTRIB_NAME):(z(t,"Invalid attribute name"),t.state=R.ATTRIB)}continue;case R.ATTRIB_VALUE:if(w(n))continue;S(n)?(t.q=n,t.state=R.ATTRIB_VALUE_QUOTED):(z(t,"Unquoted attribute value"),t.state=R.ATTRIB_VALUE_UNQUOTED,t.attribValue=n);continue;case R.ATTRIB_VALUE_QUOTED:if(n!==t.q){"&"===n?t.state=R.ATTRIB_VALUE_ENTITY_Q:t.attribValue+=n;continue}q(t),t.q="",t.state=R.ATTRIB_VALUE_CLOSED;continue;case R.ATTRIB_VALUE_CLOSED:w(n)?t.state=R.ATTRIB:">"===n?U(t):"/"===n?t.state=R.OPEN_TAG_SLASH:j(g,n)?(z(t,"No whitespace between attributes"),t.attribName=n,t.attribValue="",t.state=R.ATTRIB_NAME):z(t,"Invalid attribute name");continue;case R.ATTRIB_VALUE_UNQUOTED:if(!N(n)){"&"===n?t.state=R.ATTRIB_VALUE_ENTITY_U:t.attribValue+=n;continue}q(t),">"===n?U(t):t.state=R.ATTRIB;continue;case R.CLOSE_TAG:if(t.tagName)">"===n?H(t):j(b,n)?t.tagName+=n:t.script?(t.script+="</"+t.tagName,t.tagName="",t.state=R.SCRIPT):(w(n)||z(t,"Invalid tagname in closing tag"),t.state=R.CLOSE_TAG_SAW_WHITE);else{if(w(n))continue;E(g,n)?t.script?(t.script+="</"+n,t.state=R.SCRIPT):z(t,"Invalid tagname in closing tag."):t.tagName=n}continue;case R.CLOSE_TAG_SAW_WHITE:if(w(n))continue;">"===n?H(t):z(t,"Invalid characters in closing tag");continue;case R.TEXT_ENTITY:case R.ATTRIB_VALUE_ENTITY_Q:case R.ATTRIB_VALUE_ENTITY_U:var a,l;switch(t.state){case R.TEXT_ENTITY:a=R.TEXT,l="textNode";break;case R.ATTRIB_VALUE_ENTITY_Q:a=R.ATTRIB_VALUE_QUOTED,l="attribValue";break;case R.ATTRIB_VALUE_ENTITY_U:a=R.ATTRIB_VALUE_UNQUOTED,l="attribValue"}if(";"===n)if(t.opt.unparsedEntities){var c=F(t);t.entity="",t.state=a,t.write(c)}else t[l]+=F(t),t.entity="",t.state=a;else j(t.entity.length?x:v,n)?t.entity+=n:(z(t,"Invalid character in entity name"),t[l]+="&"+t.entity+n,t.entity="",t.state=a);continue;default:throw new Error(t,"Unknown state: "+t.state)}return t.position>=t.bufferCheckPosition&&s(t),t}
|
|
20
|
+
/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */R=r.STATE,String.fromCodePoint||(C=String.fromCharCode,k=Math.floor,T=function(){var e,t,r=16384,n=[],i=-1,o=arguments.length;if(!o)return"";for(var s="";++i<o;){var a=Number(arguments[i]);if(!isFinite(a)||a<0||a>1114111||k(a)!==a)throw RangeError("Invalid code point: "+a);a<=65535?n.push(a):(e=55296+((a-=65536)>>10),t=a%1024+56320,n.push(e,t)),(i+1===o||n.length>r)&&(s+=C.apply(null,n),n.length=0)}return s},Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:T,configurable:!0,writable:!0}):String.fromCodePoint=T)}(void 0===r?this.sax={}:r)}).call(this)}).call(this,e("buffer").Buffer)},{buffer:103,stream:468,string_decoder:483}],466:[function(e,t,r){var n=e("get-intrinsic"),i=e("define-data-property"),o=e("has-property-descriptors")(),s=e("gopd"),a=n("%TypeError%"),l=n("%Math.floor%");t.exports=function(e,t){if("function"!=typeof e)throw new a("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||l(t)!==t)throw new a("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,c=!0;if("length"in e&&s){var u=s(e,"length");u&&!u.configurable&&(n=!1),u&&!u.writable&&(c=!1)}return(n||c||!r)&&(o?i(e,"length",t,!0,!0):i(e,"length",t)),e}},{"define-data-property":384,"get-intrinsic":390,gopd:391,"has-property-descriptors":392}],467:[function(e,t,r){var n=e("get-intrinsic"),i=e("call-bind/callBound"),o=e("object-inspect"),s=n("%TypeError%"),a=n("%WeakMap%",!0),l=n("%Map%",!0),c=i("WeakMap.prototype.get",!0),u=i("WeakMap.prototype.set",!0),p=i("WeakMap.prototype.has",!0),d=i("Map.prototype.get",!0),m=i("Map.prototype.set",!0),f=i("Map.prototype.has",!0),h=function(e,t){for(var r,n=e;null!==(r=n.next);n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r},y=function(e,t){var r=h(e,t);return r&&r.value},g=function(e,t,r){var n=h(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},b=function(e,t){return!!h(e,t)};t.exports=function(){var e,t,r,n={assert:function(e){if(!n.has(e))throw new s("Side channel does not contain "+o(e))},get:function(n){if(a&&n&&("object"==typeof n||"function"==typeof n)){if(e)return c(e,n)}else if(l){if(t)return d(t,n)}else if(r)return y(r,n)},has:function(n){if(a&&n&&("object"==typeof n||"function"==typeof n)){if(e)return p(e,n)}else if(l){if(t)return f(t,n)}else if(r)return b(r,n);return!1},set:function(n,i){a&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new a),u(e,n,i)):l?(t||(t=new l),m(t,n,i)):(r||(r={key:{},next:null}),g(r,n,i))}};return n}},{"call-bind/callBound":105,"get-intrinsic":390,"object-inspect":433}],468:[function(e,t,r){t.exports=i;var n=e("events").EventEmitter;function i(){n.call(this)}e("inherits")(i,n),i.Readable=e("readable-stream/lib/_stream_readable.js"),i.Writable=e("readable-stream/lib/_stream_writable.js"),i.Duplex=e("readable-stream/lib/_stream_duplex.js"),i.Transform=e("readable-stream/lib/_stream_transform.js"),i.PassThrough=e("readable-stream/lib/_stream_passthrough.js"),i.finished=e("readable-stream/lib/internal/streams/end-of-stream.js"),i.pipeline=e("readable-stream/lib/internal/streams/pipeline.js"),i.Stream=i,i.prototype.pipe=function(e,t){var r=this;function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(r.on("end",a),r.on("close",l));var s=!1;function a(){s||(s=!0,e.end())}function l(){s||(s=!0,"function"==typeof e.destroy&&e.destroy())}function c(e){if(u(),0===n.listenerCount(this,"error"))throw e}function u(){r.removeListener("data",i),e.removeListener("drain",o),r.removeListener("end",a),r.removeListener("close",l),r.removeListener("error",c),e.removeListener("error",c),r.removeListener("end",u),r.removeListener("close",u),e.removeListener("close",u)}return r.on("error",c),e.on("error",c),r.on("end",u),r.on("close",u),e.on("close",u),e.emit("pipe",r),e}},{events:386,inherits:407,"readable-stream/lib/_stream_duplex.js":470,"readable-stream/lib/_stream_passthrough.js":471,"readable-stream/lib/_stream_readable.js":472,"readable-stream/lib/_stream_transform.js":473,"readable-stream/lib/_stream_writable.js":474,"readable-stream/lib/internal/streams/end-of-stream.js":478,"readable-stream/lib/internal/streams/pipeline.js":480}],469:[function(e,t,r){function n(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var i={};function o(e,t,r){function o(e,r,n){return"string"==typeof t?t:t(e,r,n)}r||(r=Error);var s=function(e){function t(t,r,n){return e.call(this,o(t,r,n))||this}return n(t,e),t}(r);s.prototype.name=r.name,s.prototype.code=e,i[e]=s}function s(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map(function(e){return String(e)}),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}function a(e,t,r){return e.substr(0,t.length)===t}function l(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function c(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}o("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),o("ERR_INVALID_ARG_TYPE",function(e,t,r){var n,i;if("string"==typeof t&&a(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be",l(e," argument"))i="The ".concat(e," ").concat(n," ").concat(s(t,"type"));else{var o=c(e,".")?"property":"argument";i='The "'.concat(e,'" ').concat(o," ").concat(n," ").concat(s(t,"type"))}return i+=". Received type ".concat(typeof r)},TypeError),o("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),o("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),o("ERR_STREAM_PREMATURE_CLOSE","Premature close"),o("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),o("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),o("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),o("ERR_STREAM_WRITE_AFTER_END","write after end"),o("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),o("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),o("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=i},{}],470:[function(e,t,r){(function(r){(function(){var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};t.exports=c;var i=e("./_stream_readable"),o=e("./_stream_writable");e("inherits")(c,i);for(var s=n(o.prototype),a=0;a<s.length;a++){var l=s[a];c.prototype[l]||(c.prototype[l]=o.prototype[l])}function c(e){if(!(this instanceof c))return new c(e);i.call(this,e),o.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",u)))}function u(){this._writableState.ended||r.nextTick(p,this)}function p(e){e.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})}).call(this)}).call(this,e("_process"))},{"./_stream_readable":472,"./_stream_writable":474,_process:538,inherits:407}],471:[function(e,t,r){t.exports=i;var n=e("./_stream_transform");function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}e("inherits")(i,n),i.prototype._transform=function(e,t,r){r(null,e)}},{"./_stream_transform":473,inherits:407}],472:[function(e,t,r){(function(r,n){(function(){var i;t.exports=T,T.ReadableState=k,e("events").EventEmitter;var o=function(e,t){return e.listeners(t).length},s=e("./internal/streams/stream"),a=e("buffer").Buffer,l=(void 0!==n?n:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};function c(e){return a.from(e)}function u(e){return a.isBuffer(e)||e instanceof l}var p,d=e("util");p=d&&d.debuglog?d.debuglog("stream"):function(){};var m,f,h,y=e("./internal/streams/buffer_list"),g=e("./internal/streams/destroy"),b=e("./internal/streams/state").getHighWaterMark,v=e("../errors").codes,x=v.ERR_INVALID_ARG_TYPE,w=v.ERR_STREAM_PUSH_AFTER_EOF,S=v.ERR_METHOD_NOT_IMPLEMENTED,N=v.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;e("inherits")(T,s);var j=g.errorOrDestroy,E=["error","close","destroy","pause","resume"];function C(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}function k(t,r,n){i=i||e("./_stream_duplex"),t=t||{},"boolean"!=typeof n&&(n=r instanceof i),this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=b(this,t,"readableHighWaterMark",n),this.buffer=new y,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(m||(m=e("string_decoder/").StringDecoder),this.decoder=new m(t.encoding),this.encoding=t.encoding)}function T(t){if(i=i||e("./_stream_duplex"),!(this instanceof T))return new T(t);var r=this instanceof i;this._readableState=new k(t,this,r),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),s.call(this)}function R(e,t,r,n,i){p("readableAddChunk",t);var o,s=e._readableState;if(null===t)s.reading=!1,M(e,s);else if(i||(o=P(s,t)),o)j(e,o);else if(s.objectMode||t&&t.length>0)if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===a.prototype||(t=c(t)),n)s.endEmitted?j(e,new N):O(e,s,t,!0);else if(s.ended)j(e,new w);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?O(e,s,t,!1):B(e,s)):O(e,s,t,!1)}else n||(s.reading=!1,B(e,s));return!s.ended&&(s.length<s.highWaterMark||0===s.length)}function O(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&D(e)),B(e,t)}function P(e,t){var r;return u(t)||"string"==typeof t||void 0===t||e.objectMode||(r=new x("chunk",["string","Buffer","Uint8Array"],t)),r}Object.defineProperty(T.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),T.prototype.destroy=g.destroy,T.prototype._undestroy=g.undestroy,T.prototype._destroy=function(e,t){t(e)},T.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=a.from(e,t),t=""),r=!0),R(this,e,t,!1,r)},T.prototype.unshift=function(e){return R(this,e,null,!0,!1)},T.prototype.isPaused=function(){return!1===this._readableState.flowing},T.prototype.setEncoding=function(t){m||(m=e("string_decoder/").StringDecoder);var r=new m(t);this._readableState.decoder=r,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,i="";null!==n;)i+=r.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var _=1073741824;function A(e){return e>=_?e=_:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function I(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=A(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function M(e,t){if(p("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?D(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,z(e)))}}function D(e){var t=e._readableState;p("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(p("emitReadable",t.flowing),t.emittedReadable=!0,r.nextTick(z,e))}function z(e){var t=e._readableState;p("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,V(e)}function B(e,t){t.readingMore||(t.readingMore=!0,r.nextTick(L,e,t))}function L(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(p("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function q(e){return function(){var t=e._readableState;p("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&o(e,"data")&&(t.flowing=!0,V(e))}}function U(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function H(e){p("readable nexttick read 0"),e.read(0)}function F(e,t){t.resumeScheduled||(t.resumeScheduled=!0,r.nextTick($,e,t))}function $(e,t){p("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),V(e),t.flowing&&!t.reading&&e.read(0)}function V(e){var t=e._readableState;for(p("flow",t.flowing);t.flowing&&null!==e.read(););}function G(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r);var r}function W(e){var t=e._readableState;p("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,r.nextTick(K,t,e))}function K(e,t){if(p("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function X(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}T.prototype.read=function(e){p("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return p("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?W(this):D(this),null;if(0===(e=I(e,t))&&t.ended)return 0===t.length&&W(this),null;var n,i=t.needReadable;return p("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&p("length less than watermark",i=!0),t.ended||t.reading?p("reading or ended",i=!1):i&&(p("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=I(r,t))),null===(n=e>0?G(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&W(this)),null!==n&&this.emit("data",n),n},T.prototype._read=function(e){j(this,new S("_read()"))},T.prototype.pipe=function(e,t){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,p("pipe count=%d opts=%j",i.pipesCount,t);var s=t&&!1===t.end||e===r.stdout||e===r.stderr?g:l;function a(e,t){p("onunpipe"),e===n&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,d())}function l(){p("onend"),e.end()}i.endEmitted?r.nextTick(s):n.once("end",s),e.on("unpipe",a);var c=q(n);e.on("drain",c);var u=!1;function d(){p("cleanup"),e.removeListener("close",h),e.removeListener("finish",y),e.removeListener("drain",c),e.removeListener("error",f),e.removeListener("unpipe",a),n.removeListener("end",l),n.removeListener("end",g),n.removeListener("data",m),u=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||c()}function m(t){p("ondata");var r=e.write(t);p("dest.write",r),!1===r&&((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==X(i.pipes,e))&&!u&&(p("false write response, pause",i.awaitDrain),i.awaitDrain++),n.pause())}function f(t){p("onerror",t),g(),e.removeListener("error",f),0===o(e,"error")&&j(e,t)}function h(){e.removeListener("finish",y),g()}function y(){p("onfinish"),e.removeListener("close",h),g()}function g(){p("unpipe"),n.unpipe(e)}return n.on("data",m),C(e,"error",f),e.once("close",h),e.once("finish",y),e.emit("pipe",n),i.flowing||(p("pipe resume"),n.resume()),e},T.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var s=X(t.pipes,e);return-1===s||(t.pipes.splice(s,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},T.prototype.on=function(e,t){var n=s.prototype.on.call(this,e,t),i=this._readableState;return"data"===e?(i.readableListening=this.listenerCount("readable")>0,!1!==i.flowing&&this.resume()):"readable"===e&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,p("on readable",i.length,i.reading),i.length?D(this):i.reading||r.nextTick(H,this))),n},T.prototype.addListener=T.prototype.on,T.prototype.removeListener=function(e,t){var n=s.prototype.removeListener.call(this,e,t);return"readable"===e&&r.nextTick(U,this),n},T.prototype.removeAllListeners=function(e){var t=s.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||r.nextTick(U,this),t},T.prototype.resume=function(){var e=this._readableState;return e.flowing||(p("resume"),e.flowing=!e.readableListening,F(this,e)),e.paused=!1,this},T.prototype.pause=function(){return p("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(p("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},T.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",function(){if(p("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){p("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i||(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))}),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<E.length;o++)e.on(E[o],this.emit.bind(this,E[o]));return this._read=function(t){p("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(T.prototype[Symbol.asyncIterator]=function(){return void 0===f&&(f=e("./internal/streams/async_iterator")),f(this)}),Object.defineProperty(T.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(T.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(T.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),T._fromList=G,Object.defineProperty(T.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(T.from=function(t,r){return void 0===h&&(h=e("./internal/streams/from")),h(T,t,r)})}).call(this)}).call(this,e("_process"),void 0!==dR?dR:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../errors":469,"./_stream_duplex":470,"./internal/streams/async_iterator":475,"./internal/streams/buffer_list":476,"./internal/streams/destroy":477,"./internal/streams/from":479,"./internal/streams/state":481,"./internal/streams/stream":482,_process:538,buffer:103,events:386,inherits:407,"string_decoder/":483,util:102}],473:[function(e,t,r){t.exports=u;var n=e("../errors").codes,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,s=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=n.ERR_TRANSFORM_WITH_LENGTH_0,l=e("./_stream_duplex");function c(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function u(e){if(!(this instanceof u))return new u(e);l.call(this,e),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",p)}function p(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?d(this,null,null):this._flush(function(t,r){d(e,t,r)})}function d(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new a;if(e._transformState.transforming)throw new s;return e.push(null)}e("inherits")(u,l),u.prototype.push=function(e,t){return this._transformState.needTransform=!1,l.prototype.push.call(this,e,t)},u.prototype._transform=function(e,t,r){r(new i("_transform()"))},u.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},u.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},u.prototype._destroy=function(e,t){l.prototype._destroy.call(this,e,function(e){t(e)})}},{"../errors":469,"./_stream_duplex":470,inherits:407}],474:[function(e,t,r){(function(r,n){(function(){function i(e){var t=this;this.next=null,this.entry=null,this.finish=function(){$(t,e)}}var o;t.exports=k,k.WritableState=C;var s={deprecate:e("util-deprecate")},a=e("./internal/streams/stream"),l=e("buffer").Buffer,c=(void 0!==n?n:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};function u(e){return l.from(e)}function p(e){return l.isBuffer(e)||e instanceof c}var d,m=e("./internal/streams/destroy"),f=e("./internal/streams/state").getHighWaterMark,h=e("../errors").codes,y=h.ERR_INVALID_ARG_TYPE,g=h.ERR_METHOD_NOT_IMPLEMENTED,b=h.ERR_MULTIPLE_CALLBACK,v=h.ERR_STREAM_CANNOT_PIPE,x=h.ERR_STREAM_DESTROYED,w=h.ERR_STREAM_NULL_VALUES,S=h.ERR_STREAM_WRITE_AFTER_END,N=h.ERR_UNKNOWN_ENCODING,j=m.errorOrDestroy;function E(){}function C(t,r,n){o=o||e("./_stream_duplex"),t=t||{},"boolean"!=typeof n&&(n=r instanceof o),this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=f(this,t,"writableHighWaterMark",n),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===t.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){M(r,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function k(t){var r=this instanceof(o=o||e("./_stream_duplex"));if(!r&&!d.call(k,this))return new k(t);this._writableState=new C(t,this,r),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),a.call(this)}function T(e,t){var n=new S;j(e,n),r.nextTick(t,n)}function R(e,t,n,i){var o;return null===n?o=new w:"string"==typeof n||t.objectMode||(o=new y("chunk",["string","Buffer"],n)),!o||(j(e,o),r.nextTick(i,o),!1)}function O(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=l.from(t,r)),t}function P(e,t,r,n,i,o){if(!r){var s=O(t,n,i);n!==s&&(r=!0,i="buffer",n=s)}var a=t.objectMode?1:n.length;t.length+=a;var l=t.length<t.highWaterMark;if(l||(t.needDrain=!0),t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else _(e,t,!1,a,n,i,o);return l}function _(e,t,r,n,i,o,s){t.writelen=n,t.writecb=s,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new x("write")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function A(e,t,n,i,o){--t.pendingcb,n?(r.nextTick(o,i),r.nextTick(H,e,t),e._writableState.errorEmitted=!0,j(e,i)):(o(i),e._writableState.errorEmitted=!0,j(e,i),H(e,t))}function I(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function M(e,t){var n=e._writableState,i=n.sync,o=n.writecb;if("function"!=typeof o)throw new b;if(I(n),t)A(e,n,i,t,o);else{var s=L(n)||e.destroyed;s||n.corked||n.bufferProcessing||!n.bufferedRequest||B(e,n),i?r.nextTick(D,e,n,s,o):D(e,n,s,o)}}function D(e,t,r,n){r||z(e,t),t.pendingcb--,n(),H(e,t)}function z(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function B(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,o=new Array(n),s=t.corkedRequestsFree;s.entry=r;for(var a=0,l=!0;r;)o[a]=r,r.isBuf||(l=!1),r=r.next,a+=1;o.allBuffers=l,_(e,t,!0,t.length,o,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,s.next=null):t.corkedRequestsFree=new i(t),t.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,u=r.encoding,p=r.callback;if(_(e,t,!1,t.objectMode?1:c.length,c,u,p),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function L(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function q(e,t){e._final(function(r){t.pendingcb--,r&&j(e,r),t.prefinished=!0,e.emit("prefinish"),H(e,t)})}function U(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,r.nextTick(q,e,t)))}function H(e,t){var r=L(t);if(r&&(U(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return r}function F(e,t,n){t.ending=!0,H(e,t),n&&(t.finished?r.nextTick(n):e.once("finish",n)),t.ended=!0,e.writable=!1}function $(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}e("inherits")(k,a),C.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(C.prototype,"buffer",{get:s.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(d=Function.prototype[Symbol.hasInstance],Object.defineProperty(k,Symbol.hasInstance,{value:function(e){return!!d.call(this,e)||this===k&&e&&e._writableState instanceof C}})):d=function(e){return e instanceof this},k.prototype.pipe=function(){j(this,new v)},k.prototype.write=function(e,t,r){var n=this._writableState,i=!1,o=!n.objectMode&&p(e);return o&&!l.isBuffer(e)&&(e=u(e)),"function"==typeof t&&(r=t,t=null),o?t="buffer":t||(t=n.defaultEncoding),"function"!=typeof r&&(r=E),n.ending?T(this,r):(o||R(this,n,e,r))&&(n.pendingcb++,i=P(this,n,o,e,t,r)),i},k.prototype.cork=function(){this._writableState.corked++},k.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||B(this,e))},k.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new N(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(k.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(k.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),k.prototype._write=function(e,t,r){r(new g("_write()"))},k.prototype._writev=null,k.prototype.end=function(e,t,r){var n=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||F(this,n,r),this},Object.defineProperty(k.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(k.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),k.prototype.destroy=m.destroy,k.prototype._undestroy=m.undestroy,k.prototype._destroy=function(e,t){t(e)}}).call(this)}).call(this,e("_process"),void 0!==dR?dR:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../errors":469,"./_stream_duplex":470,"./internal/streams/destroy":477,"./internal/streams/state":481,"./internal/streams/stream":482,_process:538,buffer:103,inherits:407,"util-deprecate":486}],475:[function(e,t,r){(function(r){(function(){var n;function i(e,t,r){return(t=o(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e){var t=s(e,"string");return"symbol"==typeof t?t:String(t)}function s(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var a=e("./end-of-stream"),l=Symbol("lastResolve"),c=Symbol("lastReject"),u=Symbol("error"),p=Symbol("ended"),d=Symbol("lastPromise"),m=Symbol("handlePromise"),f=Symbol("stream");function h(e,t){return{value:e,done:t}}function y(e){var t=e[l];if(null!==t){var r=e[f].read();null!==r&&(e[d]=null,e[l]=null,e[c]=null,t(h(r,!1)))}}function g(e){r.nextTick(y,e)}function b(e,t){return function(r,n){e.then(function(){t[p]?r(h(void 0,!0)):t[m](r,n)},n)}}var v=Object.getPrototypeOf(function(){}),x=Object.setPrototypeOf((i(n={get stream(){return this[f]},next:function(){var e=this,t=this[u];if(null!==t)return Promise.reject(t);if(this[p])return Promise.resolve(h(void 0,!0));if(this[f].destroyed)return new Promise(function(t,n){r.nextTick(function(){e[u]?n(e[u]):t(h(void 0,!0))})});var n,i=this[d];if(i)n=new Promise(b(i,this));else{var o=this[f].read();if(null!==o)return Promise.resolve(h(o,!1));n=new Promise(this[m])}return this[d]=n,n}},Symbol.asyncIterator,function(){return this}),i(n,"return",function(){var e=this;return new Promise(function(t,r){e[f].destroy(null,function(e){e?r(e):t(h(void 0,!0))})})}),n),v),w=function(e){var t,r=Object.create(x,(i(t={},f,{value:e,writable:!0}),i(t,l,{value:null,writable:!0}),i(t,c,{value:null,writable:!0}),i(t,u,{value:null,writable:!0}),i(t,p,{value:e._readableState.endEmitted,writable:!0}),i(t,m,{value:function(e,t){var n=r[f].read();n?(r[d]=null,r[l]=null,r[c]=null,e(h(n,!1))):(r[l]=e,r[c]=t)},writable:!0}),t));return r[d]=null,a(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[c];return null!==t&&(r[d]=null,r[l]=null,r[c]=null,t(e)),void(r[u]=e)}var n=r[l];null!==n&&(r[d]=null,r[l]=null,r[c]=null,n(h(void 0,!0))),r[p]=!0}),e.on("readable",g.bind(null,r)),r};t.exports=w}).call(this)}).call(this,e("_process"))},{"./end-of-stream":478,_process:538}],476:[function(e,t,r){function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach(function(t){o(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function o(e,t,r){return(t=c(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,c(n.key),n)}}function l(e,t,r){return t&&a(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function c(e){var t=u(e,"string");return"symbol"==typeof t?t:String(t)}function u(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var p=e("buffer").Buffer,d=e("util").inspect,m=d&&d.custom||"inspect";function f(e,t,r){p.prototype.copy.call(e,t,r)}t.exports=function(){function e(){s(this,e),this.head=null,this.tail=null,this.length=0}return l(e,[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return p.alloc(0);for(var t=p.allocUnsafe(e>>>0),r=this.head,n=0;r;)f(r.data,t,n),n+=r.data.length,r=r.next;return t}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var i=t.data,o=e>i.length?i.length:e;if(o===i.length?n+=i:n+=i.slice(0,e),0===(e-=o)){o===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=p.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0===(e-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,t}},{key:m,value:function(e,t){return d(this,i(i({},t),{},{depth:0,customInspect:!1}))}}]),e}()},{buffer:103,util:102}],477:[function(e,t,r){(function(e){(function(){function r(t,r){var o=this,a=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return a||l?(r?r(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(s,this,t)):e.nextTick(s,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(t){!r&&t?o._writableState?o._writableState.errorEmitted?e.nextTick(i,o):(o._writableState.errorEmitted=!0,e.nextTick(n,o,t)):e.nextTick(n,o,t):r?(e.nextTick(i,o),r(t)):e.nextTick(i,o)}),this)}function n(e,t){s(e,t),i(e)}function i(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function o(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function s(e,t){e.emit("error",t)}function a(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}t.exports={destroy:r,undestroy:o,errorOrDestroy:a}}).call(this)}).call(this,e("_process"))},{_process:538}],478:[function(e,t,r){var n=e("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function i(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];e.apply(this,n)}}}function o(){}function s(e){return e.setHeader&&"function"==typeof e.abort}function a(e,t,r){if("function"==typeof t)return a(e,null,t);t||(t={}),r=i(r||o);var l=t.readable||!1!==t.readable&&e.readable,c=t.writable||!1!==t.writable&&e.writable,u=function(){e.writable||d()},p=e._writableState&&e._writableState.finished,d=function(){c=!1,p=!0,l||r.call(e)},m=e._readableState&&e._readableState.endEmitted,f=function(){l=!1,m=!0,c||r.call(e)},h=function(t){r.call(e,t)},y=function(){var t;return l&&!m?(e._readableState&&e._readableState.ended||(t=new n),r.call(e,t)):c&&!p?(e._writableState&&e._writableState.ended||(t=new n),r.call(e,t)):void 0},g=function(){e.req.on("finish",d)};return s(e)?(e.on("complete",d),e.on("abort",y),e.req?g():e.on("request",g)):c&&!e._writableState&&(e.on("end",u),e.on("close",u)),e.on("end",f),e.on("finish",d),!1!==t.error&&e.on("error",h),e.on("close",y),function(){e.removeListener("complete",d),e.removeListener("abort",y),e.removeListener("request",g),e.req&&e.req.removeListener("finish",d),e.removeListener("end",u),e.removeListener("close",u),e.removeListener("finish",d),e.removeListener("end",f),e.removeListener("error",h),e.removeListener("close",y)}}t.exports=a},{"../../../errors":469}],479:[function(e,t,r){t.exports=function(){throw new Error("Readable.from is not available in the browser")}},{}],480:[function(e,t,r){var n;function i(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var o=e("../../../errors").codes,s=o.ERR_MISSING_ARGS,a=o.ERR_STREAM_DESTROYED;function l(e){if(e)throw e}function c(e){return e.setHeader&&"function"==typeof e.abort}function u(t,r,o,s){s=i(s);var l=!1;t.on("close",function(){l=!0}),void 0===n&&(n=e("./end-of-stream")),n(t,{readable:r,writable:o},function(e){if(e)return s(e);l=!0,s()});var u=!1;return function(e){if(!l&&!u)return u=!0,c(t)?t.abort():"function"==typeof t.destroy?t.destroy():void s(e||new a("pipe"))}}function p(e){e()}function d(e,t){return e.pipe(t)}function m(e){return e.length?"function"!=typeof e[e.length-1]?l:e.pop():l}function f(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n,i=m(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new s("streams");var o=t.map(function(e,r){var s=r<t.length-1;return u(e,s,r>0,function(e){n||(n=e),e&&o.forEach(p),s||(o.forEach(p),i(n))})});return t.reduce(d)}t.exports=f},{"../../../errors":469,"./end-of-stream":478}],481:[function(e,t,r){var n=e("../../../errors").codes.ERR_INVALID_OPT_VALUE;function i(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}function o(e,t,r,o){var s=i(t,o,r);if(null!=s){if(!isFinite(s)||Math.floor(s)!==s||s<0)throw new n(o?r:"highWaterMark",s);return Math.floor(s)}return e.objectMode?16:16384}t.exports={getHighWaterMark:o}},{"../../../errors":469}],482:[function(e,t,r){arguments[4][459][0].apply(r,arguments)},{dup:459,events:386}],483:[function(e,t,r){arguments[4][462][0].apply(r,arguments)},{dup:462,"safe-buffer":464}],484:[function(e,t,r){(function(t,n){(function(){var i=e("process/browser.js").nextTick,o=Function.prototype.apply,s=Array.prototype.slice,a={},l=0;function c(e,t){this._id=e,this._clearFn=t}r.setTimeout=function(){return new c(o.call(setTimeout,window,arguments),clearTimeout)},r.setInterval=function(){return new c(o.call(setInterval,window,arguments),clearInterval)},r.clearTimeout=r.clearInterval=function(e){e.close()},c.prototype.unref=c.prototype.ref=function(){},c.prototype.close=function(){this._clearFn.call(window,this._id)},r.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},r.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},r._unrefActive=r.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},r.setImmediate="function"==typeof t?t:function(e){var t=l++,n=!(arguments.length<2)&&s.call(arguments,1);return a[t]=!0,i(function(){a[t]&&(n?e.apply(null,n):e.call(null),r.clearImmediate(t))}),t},r.clearImmediate="function"==typeof n?n:function(e){delete a[e]}}).call(this)}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":442,timers:484}],485:[function(e,t,r){var n=e("buffer").Buffer;t.exports=function(e){if(e instanceof Uint8Array){if(0===e.byteOffset&&e.byteLength===e.buffer.byteLength)return e.buffer;if("function"==typeof e.buffer.slice)return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}if(n.isBuffer(e)){for(var t=new Uint8Array(e.length),r=e.length,i=0;i<r;i++)t[i]=e[i];return t.buffer}throw new Error("Argument must be a Buffer")}},{buffer:103}],486:[function(e,t,r){(function(e){(function(){function r(e,t){if(n("noDeprecation"))return e;var r=!1;function i(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation"),r=!0}return e.apply(this,arguments)}return i}function n(t){try{if(!e.localStorage)return!1}catch(n){return!1}var r=e.localStorage[t];return null!=r&&"true"===String(r).toLowerCase()}t.exports=r}).call(this)}).call(this,void 0!==dR?dR:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],487:[function(e,t,r){arguments[4][97][0].apply(r,arguments)},{dup:97}],488:[function(e,t,r){var n=e("is-arguments"),i=e("is-generator-function"),o=e("which-typed-array"),s=e("is-typed-array");function a(e){return e.call.bind(e)}var l="undefined"!=typeof BigInt,c="undefined"!=typeof Symbol,u=a(Object.prototype.toString),p=a(Number.prototype.valueOf),d=a(String.prototype.valueOf),m=a(Boolean.prototype.valueOf);if(l)var f=a(BigInt.prototype.valueOf);if(c)var h=a(Symbol.prototype.valueOf);function y(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(r){return!1}}function g(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch}function b(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):s(e)||U(e)}function v(e){return"Uint8Array"===o(e)}function x(e){return"Uint8ClampedArray"===o(e)}function w(e){return"Uint16Array"===o(e)}function S(e){return"Uint32Array"===o(e)}function N(e){return"Int8Array"===o(e)}function j(e){return"Int16Array"===o(e)}function E(e){return"Int32Array"===o(e)}function C(e){return"Float32Array"===o(e)}function k(e){return"Float64Array"===o(e)}function T(e){return"BigInt64Array"===o(e)}function R(e){return"BigUint64Array"===o(e)}function O(e){return"[object Map]"===u(e)}function P(e){return"undefined"!=typeof Map&&(O.working?O(e):e instanceof Map)}function _(e){return"[object Set]"===u(e)}function A(e){return"undefined"!=typeof Set&&(_.working?_(e):e instanceof Set)}function I(e){return"[object WeakMap]"===u(e)}function M(e){return"undefined"!=typeof WeakMap&&(I.working?I(e):e instanceof WeakMap)}function D(e){return"[object WeakSet]"===u(e)}function z(e){return D(e)}function B(e){return"[object ArrayBuffer]"===u(e)}function L(e){return"undefined"!=typeof ArrayBuffer&&(B.working?B(e):e instanceof ArrayBuffer)}function q(e){return"[object DataView]"===u(e)}function U(e){return"undefined"!=typeof DataView&&(q.working?q(e):e instanceof DataView)}r.isArgumentsObject=n,r.isGeneratorFunction=i,r.isTypedArray=s,r.isPromise=g,r.isArrayBufferView=b,r.isUint8Array=v,r.isUint8ClampedArray=x,r.isUint16Array=w,r.isUint32Array=S,r.isInt8Array=N,r.isInt16Array=j,r.isInt32Array=E,r.isFloat32Array=C,r.isFloat64Array=k,r.isBigInt64Array=T,r.isBigUint64Array=R,O.working="undefined"!=typeof Map&&O(new Map),r.isMap=P,_.working="undefined"!=typeof Set&&_(new Set),r.isSet=A,I.working="undefined"!=typeof WeakMap&&I(new WeakMap),r.isWeakMap=M,D.working="undefined"!=typeof WeakSet&&D(new WeakSet),r.isWeakSet=z,B.working="undefined"!=typeof ArrayBuffer&&B(new ArrayBuffer),r.isArrayBuffer=L,q.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&q(new DataView(new ArrayBuffer(1),0,1)),r.isDataView=U;var H="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function F(e){return"[object SharedArrayBuffer]"===u(e)}function $(e){return void 0!==H&&(void 0===F.working&&(F.working=F(new H)),F.working?F(e):e instanceof H)}function V(e){return"[object AsyncFunction]"===u(e)}function G(e){return"[object Map Iterator]"===u(e)}function W(e){return"[object Set Iterator]"===u(e)}function K(e){return"[object Generator]"===u(e)}function X(e){return"[object WebAssembly.Module]"===u(e)}function Q(e){return y(e,p)}function Y(e){return y(e,d)}function J(e){return y(e,m)}function Z(e){return l&&y(e,f)}function ee(e){return c&&y(e,h)}function te(e){return Q(e)||Y(e)||J(e)||Z(e)||ee(e)}function re(e){return"undefined"!=typeof Uint8Array&&(L(e)||$(e))}r.isSharedArrayBuffer=$,r.isAsyncFunction=V,r.isMapIterator=G,r.isSetIterator=W,r.isGeneratorObject=K,r.isWebAssemblyCompiledModule=X,r.isNumberObject=Q,r.isStringObject=Y,r.isBooleanObject=J,r.isBigIntObject=Z,r.isSymbolObject=ee,r.isBoxedPrimitive=te,r.isAnyArrayBuffer=re,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(r,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})},{"is-arguments":408,"is-generator-function":411,"is-typed-array":412,"which-typed-array":490}],489:[function(e,t,r){(function(t){(function(){var n=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++)r[t[n]]=Object.getOwnPropertyDescriptor(e,t[n]);return r},i=/%[sdj%]/g;r.format=function(e){if(!N(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(l(arguments[r]));return t.join(" ")}r=1;for(var n=arguments,o=n.length,s=String(e).replace(i,function(e){if("%%"===e)return"%";if(r>=o)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}default:return e}}),a=n[r];r<o;a=n[++r])x(a)||!k(a)?s+=" "+a:s+=" "+l(a);return s},r.deprecate=function(e,n){if(void 0!==t&&!0===t.noDeprecation)return e;if(void 0===t)return function(){return r.deprecate(e,n).apply(this,arguments)};var i=!1;function o(){if(!i){if(t.throwDeprecation)throw new Error(n);t.traceDeprecation,i=!0}return e.apply(this,arguments)}return o};var o={},s=/^$/;if(t.env.NODE_DEBUG){var a=t.env.NODE_DEBUG;a=a.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),s=new RegExp("^"+a+"$","i")}function l(e,t){var n={seen:[],stylize:u};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),v(t)?n.showHidden=t:t&&r._extend(n,t),E(n.showHidden)&&(n.showHidden=!1),E(n.depth)&&(n.depth=2),E(n.colors)&&(n.colors=!1),E(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=c),d(n,e,n.depth)}function c(e,t){var r=l.styles[t];return r?"["+l.colors[r][0]+"m"+e+"["+l.colors[r][1]+"m":e}function u(e,t){return e}function p(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}function d(e,t,n){if(e.customInspect&&t&&O(t.inspect)&&t.inspect!==r.inspect&&(!t.constructor||t.constructor.prototype!==t)){var i=t.inspect(n,e);return N(i)||(i=d(e,i,n)),i}var o=m(e,t);if(o)return o;var s=Object.keys(t),a=p(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(t)),R(t)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return f(t);if(0===s.length){if(O(t)){var l=t.name?": "+t.name:"";return e.stylize("[Function"+l+"]","special")}if(C(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(T(t))return e.stylize(Date.prototype.toString.call(t),"date");if(R(t))return f(t)}var c,u="",v=!1,x=["{","}"];return b(t)&&(v=!0,x=["[","]"]),O(t)&&(u=" [Function"+(t.name?": "+t.name:"")+"]"),C(t)&&(u=" "+RegExp.prototype.toString.call(t)),T(t)&&(u=" "+Date.prototype.toUTCString.call(t)),R(t)&&(u=" "+f(t)),0!==s.length||v&&0!=t.length?n<0?C(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),c=v?h(e,t,n,a,s):s.map(function(r){return y(e,t,n,a,r,v)}),e.seen.pop(),g(c,u,x)):x[0]+u+x[1]}function m(e,t){if(E(t))return e.stylize("undefined","undefined");if(N(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return S(t)?e.stylize(""+t,"number"):v(t)?e.stylize(""+t,"boolean"):x(t)?e.stylize("null","null"):void 0}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e,t,r,n,i){for(var o=[],s=0,a=t.length;s<a;++s)A(t,String(s))?o.push(y(e,t,r,n,String(s),!0)):o.push("");return i.forEach(function(i){i.match(/^\d+$/)||o.push(y(e,t,r,n,i,!0))}),o}function y(e,t,r,n,i,o){var s,a,l;if((l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?a=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(a=e.stylize("[Setter]","special")),A(n,i)||(s="["+i+"]"),a||(e.seen.indexOf(l.value)<0?(a=x(r)?d(e,l.value,null):d(e,l.value,r-1)).indexOf("\n")>-1&&(a=o?a.split("\n").map(function(e){return" "+e}).join("\n").slice(2):"\n"+a.split("\n").map(function(e){return" "+e}).join("\n")):a=e.stylize("[Circular]","special")),E(s)){if(o&&i.match(/^\d+$/))return a;(s=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.slice(1,-1),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+a}function g(e,t,r){return e.reduce(function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}function b(e){return Array.isArray(e)}function v(e){return"boolean"==typeof e}function x(e){return null===e}function w(e){return null==e}function S(e){return"number"==typeof e}function N(e){return"string"==typeof e}function j(e){return"symbol"==typeof e}function E(e){return void 0===e}function C(e){return k(e)&&"[object RegExp]"===_(e)}function k(e){return"object"==typeof e&&null!==e}function T(e){return k(e)&&"[object Date]"===_(e)}function R(e){return k(e)&&("[object Error]"===_(e)||e instanceof Error)}function O(e){return"function"==typeof e}function P(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function _(e){return Object.prototype.toString.call(e)}function A(e,t){return Object.prototype.hasOwnProperty.call(e,t)}r.debuglog=function(e){return e=e.toUpperCase(),o[e]||(s.test(e)?(t.pid,o[e]=function(){r.format.apply(r,arguments)}):o[e]=function(){}),o[e]},r.inspect=l,l.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},r.types=e("./support/types"),r.isArray=b,r.isBoolean=v,r.isNull=x,r.isNullOrUndefined=w,r.isNumber=S,r.isString=N,r.isSymbol=j,r.isUndefined=E,r.isRegExp=C,r.types.isRegExp=C,r.isObject=k,r.isDate=T,r.types.isDate=T,r.isError=R,r.types.isNativeError=R,r.isFunction=O,r.isPrimitive=P,r.isBuffer=e("./support/isBuffer"),r.log=function(){},r.inherits=e("inherits"),r._extend=function(e,t){if(!t||!k(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var I="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function M(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}function D(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function r(){for(var r=[],n=0;n<arguments.length;n++)r.push(arguments[n]);var i=r.pop();if("function"!=typeof i)throw new TypeError("The last argument must be of type Function");var o=this,s=function(){return i.apply(o,arguments)};e.apply(this,r).then(function(e){t.nextTick(s.bind(null,null,e))},function(e){t.nextTick(M.bind(null,e,s))})}return Object.setPrototypeOf(r,Object.getPrototypeOf(e)),Object.defineProperties(r,n(e)),r}r.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(I&&e[I]){var t;if("function"!=typeof(t=e[I]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,I,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise(function(e,n){t=e,r=n}),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push(function(e,n){e?r(e):t(n)});try{e.apply(this,i)}catch(s){r(s)}return n}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),I&&Object.defineProperty(t,I,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,n(e))},r.promisify.custom=I,r.callbackify=D}).call(this)}).call(this,e("_process"))},{"./support/isBuffer":487,"./support/types":488,_process:538,inherits:407}],490:[function(e,t,r){(function(r){(function(){var n=e("for-each"),i=e("available-typed-arrays"),o=e("call-bind"),s=e("call-bind/callBound"),a=e("gopd"),l=s("Object.prototype.toString"),c=e("has-tostringtag/shams")(),u="undefined"==typeof globalThis?r:globalThis,p=i(),d=s("String.prototype.slice"),m=Object.getPrototypeOf,f=s("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r<e.length;r+=1)if(e[r]===t)return r;return-1},h={__proto__:null};n(p,c&&a&&m?function(e){var t=new u[e];if(Symbol.toStringTag in t){var r=m(t),n=a(r,Symbol.toStringTag);if(!n){var i=m(r);n=a(i,Symbol.toStringTag)}h["$"+e]=o(n.get)}}:function(e){var t=new u[e],r=t.slice||t.set;r&&(h["$"+e]=o(r))});var y=function(e){var t=!1;return n(h,function(r,n){if(!t)try{"$"+r(e)===n&&(t=d(n,1))}catch(i){}}),t},g=function(e){var t=!1;return n(h,function(r,n){if(!t)try{r(e),t=d(n,1)}catch(i){}}),t};t.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!c){var t=d(l(e),8,-1);return f(p,t)>-1?t:"Object"===t&&g(e)}return a?y(e):null}}).call(this)}).call(this,void 0!==dR?dR:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"available-typed-arrays":99,"call-bind":106,"call-bind/callBound":105,"for-each":387,gopd:391,"has-tostringtag/shams":396}],491:[function(e,t,r){(function(){r.stripBOM=function(e){return"\ufeff"===e[0]?e.substring(1):e}}).call(this)},{}],492:[function(e,t,r){(function(){var t,n,i,o,s,a={}.hasOwnProperty;t=e("xmlbuilder"),n=e("./defaults").defaults,o=function(e){return"string"==typeof e&&(e.indexOf("&")>=0||e.indexOf(">")>=0||e.indexOf("<")>=0)},s=function(e){return"<![CDATA["+i(e)+"]]>"},i=function(e){return e.replace("]]>","]]]]><![CDATA[>")},r.Builder=function(){function e(e){var t,r,i;for(t in this.options={},r=n[.2])a.call(r,t)&&(i=r[t],this.options[t]=i);for(t in e)a.call(e,t)&&(i=e[t],this.options[t]=i)}return e.prototype.buildObject=function(e){var r,i,l,c,u;return r=this.options.attrkey,i=this.options.charkey,1===Object.keys(e).length&&this.options.rootName===n[.2].rootName?e=e[u=Object.keys(e)[0]]:u=this.options.rootName,l=function(e){return function(t,n){var c,u,p,d,m,f;if("object"!=typeof n)e.options.cdata&&o(n)?t.raw(s(n)):t.txt(n);else if(Array.isArray(n)){for(d in n)if(a.call(n,d))for(m in u=n[d])p=u[m],t=l(t.ele(m),p).up()}else for(m in n)if(a.call(n,m))if(u=n[m],m===r){if("object"==typeof u)for(c in u)f=u[c],t=t.att(c,f)}else if(m===i)t=e.options.cdata&&o(u)?t.raw(s(u)):t.txt(u);else if(Array.isArray(u))for(d in u)a.call(u,d)&&(t="string"==typeof(p=u[d])?e.options.cdata&&o(p)?t.ele(m).raw(s(p)).up():t.ele(m,p).up():l(t.ele(m),p).up());else"object"==typeof u?t=l(t.ele(m),u).up():"string"==typeof u&&e.options.cdata&&o(u)?t=t.ele(m).raw(s(u)).up():(null==u&&(u=""),t=t.ele(m,u.toString()).up());return t}}(this),c=t.create(u,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),l(c,e).end(this.options.renderOpts)},e}()}).call(this)},{"./defaults":493,xmlbuilder:529}],493:[function(e,t,r){(function(){r.defaults={.1:{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},.2:{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:"\n"},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(this)},{}],494:[function(e,t,r){(function(){var t,n,i,o,s,a,l,c,u,p=function(e,t){return function(){return e.apply(t,arguments)}},d=function(e,t){for(var r in t)m.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},m={}.hasOwnProperty;c=e("sax"),o=e("events"),t=e("./bom"),l=e("./processors"),u=e("timers").setImmediate,n=e("./defaults").defaults,s=function(e){return"object"==typeof e&&null!=e&&0===Object.keys(e).length},a=function(e,t,r){var n,i;for(n=0,i=e.length;n<i;n++)t=(0,e[n])(t,r);return t},i=function(e,t,r){var n;return(n=Object.create(null)).value=r,n.writable=!0,n.enumerable=!0,n.configurable=!0,Object.defineProperty(e,t,n)},r.Parser=function(e){function o(e){var t,i,o;if(this.parseStringPromise=p(this.parseStringPromise,this),this.parseString=p(this.parseString,this),this.reset=p(this.reset,this),this.assignOrPush=p(this.assignOrPush,this),this.processAsync=p(this.processAsync,this),!(this instanceof r.Parser))return new r.Parser(e);for(t in this.options={},i=n[.2])m.call(i,t)&&(o=i[t],this.options[t]=o);for(t in e)m.call(e,t)&&(o=e[t],this.options[t]=o);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(l.normalize)),this.reset()}return d(o,e),o.prototype.processAsync=function(){var e,t;try{return this.remaining.length<=this.options.chunkSize?(e=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(e),this.saxParser.close()):(e=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(e),u(this.processAsync))}catch(r){if(t=r,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(t)}},o.prototype.assignOrPush=function(e,t,r){return t in e?(e[t]instanceof Array||i(e,t,[e[t]]),e[t].push(r)):this.options.explicitArray?i(e,t,[r]):i(e,t,r)},o.prototype.reset=function(){var e,t,r,n;return this.removeAllListeners(),this.saxParser=c.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(e){return function(t){if(e.saxParser.resume(),!e.saxParser.errThrown)return e.saxParser.errThrown=!0,e.emit("error",t)}}(this),this.saxParser.onend=function(e){return function(){if(!e.saxParser.ended)return e.saxParser.ended=!0,e.emit("end",e.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,n=[],e=this.options.attrkey,t=this.options.charkey,this.saxParser.onopentag=function(r){return function(o){var s,l,c,u,p;if((c={})[t]="",!r.options.ignoreAttrs)for(s in p=o.attributes)m.call(p,s)&&(e in c||r.options.mergeAttrs||(c[e]={}),l=r.options.attrValueProcessors?a(r.options.attrValueProcessors,o.attributes[s],s):o.attributes[s],u=r.options.attrNameProcessors?a(r.options.attrNameProcessors,s):s,r.options.mergeAttrs?r.assignOrPush(c,u,l):i(c[e],u,l));return c["#name"]=r.options.tagNameProcessors?a(r.options.tagNameProcessors,o.name):o.name,r.options.xmlns&&(c[r.options.xmlnskey]={uri:o.uri,local:o.local}),n.push(c)}}(this),this.saxParser.onclosetag=function(e){return function(){var r,o,l,c,u,p,d,f,h,y;if(p=n.pop(),u=p["#name"],e.options.explicitChildren&&e.options.preserveChildrenOrder||delete p["#name"],!0===p.cdata&&(r=p.cdata,delete p.cdata),h=n[n.length-1],p[t].match(/^\s*$/)&&!r?(o=p[t],delete p[t]):(e.options.trim&&(p[t]=p[t].trim()),e.options.normalize&&(p[t]=p[t].replace(/\s{2,}/g," ").trim()),p[t]=e.options.valueProcessors?a(e.options.valueProcessors,p[t],u):p[t],1===Object.keys(p).length&&t in p&&!e.EXPLICIT_CHARKEY&&(p=p[t])),s(p)&&(p="function"==typeof e.options.emptyTag?e.options.emptyTag():""!==e.options.emptyTag?e.options.emptyTag:o),null!=e.options.validator&&(y="/"+function(){var e,t,r;for(r=[],e=0,t=n.length;e<t;e++)c=n[e],r.push(c["#name"]);return r}().concat(u).join("/"),function(){var t;try{return p=e.options.validator(y,h&&h[u],p)}catch(r){return t=r,e.emit("error",t)}}()),e.options.explicitChildren&&!e.options.mergeAttrs&&"object"==typeof p)if(e.options.preserveChildrenOrder){if(h){for(l in h[e.options.childkey]=h[e.options.childkey]||[],d={},p)m.call(p,l)&&i(d,l,p[l]);h[e.options.childkey].push(d),delete p["#name"],1===Object.keys(p).length&&t in p&&!e.EXPLICIT_CHARKEY&&(p=p[t])}}else c={},e.options.attrkey in p&&(c[e.options.attrkey]=p[e.options.attrkey],delete p[e.options.attrkey]),!e.options.charsAsChildren&&e.options.charkey in p&&(c[e.options.charkey]=p[e.options.charkey],delete p[e.options.charkey]),Object.getOwnPropertyNames(p).length>0&&(c[e.options.childkey]=p),p=c;return n.length>0?e.assignOrPush(h,u,p):(e.options.explicitRoot&&(f=p,i(p={},u,f)),e.resultObject=p,e.saxParser.ended=!0,e.emit("end",e.resultObject))}}(this),r=function(e){return function(r){var i,o;if(o=n[n.length-1])return o[t]+=r,e.options.explicitChildren&&e.options.preserveChildrenOrder&&e.options.charsAsChildren&&(e.options.includeWhiteChars||""!==r.replace(/\\n/g,"").trim())&&(o[e.options.childkey]=o[e.options.childkey]||[],(i={"#name":"__text__"})[t]=r,e.options.normalize&&(i[t]=i[t].replace(/\s{2,}/g," ").trim()),o[e.options.childkey].push(i)),o}}(this),this.saxParser.ontext=r,this.saxParser.oncdata=function(){return function(e){var t;if(t=r(e))return t.cdata=!0}}()},o.prototype.parseString=function(e,r){var n;null!=r&&"function"==typeof r&&(this.on("end",function(e){return this.reset(),r(null,e)}),this.on("error",function(e){return this.reset(),r(e)}));try{return""===(e=e.toString()).trim()?(this.emit("end",null),!0):(e=t.stripBOM(e),this.options.async?(this.remaining=e,u(this.processAsync),this.saxParser):this.saxParser.write(e).close())}catch(i){if(n=i,!this.saxParser.errThrown&&!this.saxParser.ended)return this.emit("error",n),this.saxParser.errThrown=!0;if(this.saxParser.ended)throw n}},o.prototype.parseStringPromise=function(e){return new Promise(function(t){return function(r,n){return t.parseString(e,function(e,t){return e?n(e):r(t)})}}(this))},o}(o),r.parseString=function(e,t,n){var i,o;return null!=n?("function"==typeof n&&(i=n),"object"==typeof t&&(o=t)):("function"==typeof t&&(i=t),o={}),new r.Parser(o).parseString(e,i)},r.parseStringPromise=function(e,t){var n;return"object"==typeof t&&(n=t),new r.Parser(n).parseStringPromise(e)}}).call(this)},{"./bom":491,"./defaults":493,"./processors":495,events:386,sax:465,timers:484}],495:[function(e,t,r){(function(){var e;e=new RegExp(/(?!xmlns)^.*:/),r.normalize=function(e){return e.toLowerCase()},r.firstCharLowerCase=function(e){return e.charAt(0).toLowerCase()+e.slice(1)},r.stripPrefix=function(t){return t.replace(e,"")},r.parseNumbers=function(e){return isNaN(e)||(e=e%1==0?parseInt(e,10):parseFloat(e)),e},r.parseBooleans=function(e){return/^(?:true|false)$/i.test(e)&&(e="true"===e.toLowerCase()),e}}).call(this)},{}],496:[function(e,t,r){(function(){var t,n,i,o,s=function(e,t){for(var r in t)a.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},a={}.hasOwnProperty;n=e("./defaults"),t=e("./builder"),i=e("./parser"),o=e("./processors"),r.defaults=n.defaults,r.processors=o,r.ValidationError=function(e){function t(e){this.message=e}return s(t,e),t}(Error),r.Builder=t.Builder,r.Parser=i.Parser,r.parseString=i.parseString,r.parseStringPromise=i.parseStringPromise}).call(this)},{"./builder":492,"./defaults":493,"./parser":494,"./processors":495}],497:[function(e,t,r){(function(){t.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},{}],498:[function(e,t,r){(function(){t.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(this)},{}],499:[function(e,t,r){(function(){var e,r,n,i,o,s,a,l=[].slice,c={}.hasOwnProperty;e=function(){var e,t,r,n,i,s;if(s=arguments[0],i=2<=arguments.length?l.call(arguments,1):[],o(Object.assign))Object.assign.apply(null,arguments);else for(e=0,r=i.length;e<r;e++)if(null!=(n=i[e]))for(t in n)c.call(n,t)&&(s[t]=n[t]);return s},o=function(e){return!!e&&"[object Function]"===Object.prototype.toString.call(e)},s=function(e){var t;return!!e&&("function"==(t=typeof e)||"object"===t)},n=function(e){return o(Array.isArray)?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)},i=function(e){var t;if(n(e))return!e.length;for(t in e)if(c.call(e,t))return!1;return!0},a=function(e){var t,r;return s(e)&&(r=Object.getPrototypeOf(e))&&(t=r.constructor)&&"function"==typeof t&&t instanceof t&&Function.prototype.toString.call(t)===Function.prototype.toString.call(Object)},r=function(e){return o(e.valueOf)?e.valueOf():e},t.exports.assign=e,t.exports.isFunction=o,t.exports.isObject=s,t.exports.isArray=n,t.exports.isEmpty=i,t.exports.isPlainObject=a,t.exports.getValue=r}).call(this)},{}],500:[function(e,t,r){(function(){t.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(this)},{}],501:[function(e,t,r){(function(){var r;r=e("./NodeType"),e("./XMLNode"),t.exports=function(){function e(e,t,n){if(this.parent=e,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),null==t)throw new Error("Missing attribute name. "+this.debugInfo(t));this.name=this.stringify.name(t),this.value=this.stringify.attValue(n),this.type=r.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(e.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(e.prototype,"textContent",{get:function(){return this.value},set:function(e){return this.value=e||""}}),Object.defineProperty(e.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(e.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(e.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(e.prototype,"specified",{get:function(){return!0}}),e.prototype.clone=function(){return Object.create(this)},e.prototype.toString=function(e){return this.options.writer.attribute(this,this.options.writer.filterOptions(e))},e.prototype.debugInfo=function(e){return null==(e=e||this.name)?"parent: <"+this.parent.name+">":"attribute: {"+e+"}, parent: <"+this.parent.name+">"},e.prototype.isEqualNode=function(e){return e.namespaceURI===this.namespaceURI&&e.prefix===this.prefix&&e.localName===this.localName&&e.value===this.value},e}()}).call(this)},{"./NodeType":498,"./XMLNode":520}],502:[function(e,t,r){(function(){var r,n,i=function(e,t){for(var r in t)o.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},o={}.hasOwnProperty;r=e("./NodeType"),n=e("./XMLCharacterData"),t.exports=function(e){function t(e,n){if(t.__super__.constructor.call(this,e),null==n)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=r.CData,this.value=this.stringify.cdata(n)}return i(t,e),t.prototype.clone=function(){return Object.create(this)},t.prototype.toString=function(e){return this.options.writer.cdata(this,this.options.writer.filterOptions(e))},t}(n)}).call(this)},{"./NodeType":498,"./XMLCharacterData":503}],503:[function(e,t,r){(function(){var r,n=function(e,t){for(var r in t)i.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},i={}.hasOwnProperty;r=e("./XMLNode"),t.exports=function(e){function t(e){t.__super__.constructor.call(this,e),this.value=""}return n(t,e),Object.defineProperty(t.prototype,"data",{get:function(){return this.value},set:function(e){return this.value=e||""}}),Object.defineProperty(t.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(t.prototype,"textContent",{get:function(){return this.value},set:function(e){return this.value=e||""}}),t.prototype.clone=function(){return Object.create(this)},t.prototype.substringData=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.appendData=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.insertData=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.deleteData=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.replaceData=function(e,t,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.isEqualNode=function(e){return!!t.__super__.isEqualNode.apply(this,arguments).isEqualNode(e)&&e.data===this.data},t}(r)}).call(this)},{"./XMLNode":520}],504:[function(e,t,r){(function(){var r,n,i=function(e,t){for(var r in t)o.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},o={}.hasOwnProperty;r=e("./NodeType"),n=e("./XMLCharacterData"),t.exports=function(e){function t(e,n){if(t.__super__.constructor.call(this,e),null==n)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=r.Comment,this.value=this.stringify.comment(n)}return i(t,e),t.prototype.clone=function(){return Object.create(this)},t.prototype.toString=function(e){return this.options.writer.comment(this,this.options.writer.filterOptions(e))},t}(n)}).call(this)},{"./NodeType":498,"./XMLCharacterData":503}],505:[function(e,t,r){(function(){var r,n;r=e("./XMLDOMErrorHandler"),n=e("./XMLDOMStringList"),t.exports=function(){function e(){this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new r,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=Object.create(this.defaultParams)}return Object.defineProperty(e.prototype,"parameterNames",{get:function(){return new n(Object.keys(this.defaultParams))}}),e.prototype.getParameter=function(e){return this.params.hasOwnProperty(e)?this.params[e]:null},e.prototype.canSetParameter=function(e,t){return!0},e.prototype.setParameter=function(e,t){return null!=t?this.params[e]=t:delete this.params[e]},e}()}).call(this)},{"./XMLDOMErrorHandler":506,"./XMLDOMStringList":508}],506:[function(e,t,r){(function(){t.exports=function(){function e(){}return e.prototype.handleError=function(e){throw new Error(e)},e}()}).call(this)},{}],507:[function(e,t,r){(function(){t.exports=function(){function e(){}return e.prototype.hasFeature=function(e,t){return!0},e.prototype.createDocumentType=function(e,t,r){throw new Error("This DOM method is not implemented.")},e.prototype.createDocument=function(e,t,r){throw new Error("This DOM method is not implemented.")},e.prototype.createHTMLDocument=function(e){throw new Error("This DOM method is not implemented.")},e.prototype.getFeature=function(e,t){throw new Error("This DOM method is not implemented.")},e}()}).call(this)},{}],508:[function(e,t,r){(function(){t.exports=function(){function e(e){this.arr=e||[]}return Object.defineProperty(e.prototype,"length",{get:function(){return this.arr.length}}),e.prototype.item=function(e){return this.arr[e]||null},e.prototype.contains=function(e){return-1!==this.arr.indexOf(e)},e}()}).call(this)},{}],509:[function(e,t,r){(function(){var r,n,i=function(e,t){for(var r in t)o.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},o={}.hasOwnProperty;n=e("./XMLNode"),r=e("./NodeType"),t.exports=function(e){function t(e,n,i,o,s,a){if(t.__super__.constructor.call(this,e),null==n)throw new Error("Missing DTD element name. "+this.debugInfo());if(null==i)throw new Error("Missing DTD attribute name. "+this.debugInfo(n));if(!o)throw new Error("Missing DTD attribute type. "+this.debugInfo(n));if(!s)throw new Error("Missing DTD attribute default. "+this.debugInfo(n));if(0!==s.indexOf("#")&&(s="#"+s),!s.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(n));if(a&&!s.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(n));this.elementName=this.stringify.name(n),this.type=r.AttributeDeclaration,this.attributeName=this.stringify.name(i),this.attributeType=this.stringify.dtdAttType(o),a&&(this.defaultValue=this.stringify.dtdAttDefault(a)),this.defaultValueType=s}return i(t,e),t.prototype.toString=function(e){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(e))},t}(n)}).call(this)},{"./NodeType":498,"./XMLNode":520}],510:[function(e,t,r){(function(){var r,n,i=function(e,t){for(var r in t)o.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},o={}.hasOwnProperty;n=e("./XMLNode"),r=e("./NodeType"),t.exports=function(e){function t(e,n,i){if(t.__super__.constructor.call(this,e),null==n)throw new Error("Missing DTD element name. "+this.debugInfo());i||(i="(#PCDATA)"),Array.isArray(i)&&(i="("+i.join(",")+")"),this.name=this.stringify.name(n),this.type=r.ElementDeclaration,this.value=this.stringify.dtdElementValue(i)}return i(t,e),t.prototype.toString=function(e){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(e))},t}(n)}).call(this)},{"./NodeType":498,"./XMLNode":520}],511:[function(e,t,r){(function(){var r,n,i,o=function(e,t){for(var r in t)s.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},s={}.hasOwnProperty;i=e("./Utility").isObject,n=e("./XMLNode"),r=e("./NodeType"),t.exports=function(e){function t(e,n,o,s){if(t.__super__.constructor.call(this,e),null==o)throw new Error("Missing DTD entity name. "+this.debugInfo(o));if(null==s)throw new Error("Missing DTD entity value. "+this.debugInfo(o));if(this.pe=!!n,this.name=this.stringify.name(o),this.type=r.EntityDeclaration,i(s)){if(!s.pubID&&!s.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(o));if(s.pubID&&!s.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(o));if(this.internal=!1,null!=s.pubID&&(this.pubID=this.stringify.dtdPubID(s.pubID)),null!=s.sysID&&(this.sysID=this.stringify.dtdSysID(s.sysID)),null!=s.nData&&(this.nData=this.stringify.dtdNData(s.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(o))}else this.value=this.stringify.dtdEntityValue(s),this.internal=!0}return o(t,e),Object.defineProperty(t.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(t.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(t.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(t.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(t.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(t.prototype,"xmlVersion",{get:function(){return null}}),t.prototype.toString=function(e){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(e))},t}(n)}).call(this)},{"./NodeType":498,"./Utility":499,"./XMLNode":520}],512:[function(e,t,r){(function(){var r,n,i=function(e,t){for(var r in t)o.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},o={}.hasOwnProperty;n=e("./XMLNode"),r=e("./NodeType"),t.exports=function(e){function t(e,n,i){if(t.__super__.constructor.call(this,e),null==n)throw new Error("Missing DTD notation name. "+this.debugInfo(n));if(!i.pubID&&!i.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(n));this.name=this.stringify.name(n),this.type=r.NotationDeclaration,null!=i.pubID&&(this.pubID=this.stringify.dtdPubID(i.pubID)),null!=i.sysID&&(this.sysID=this.stringify.dtdSysID(i.sysID))}return i(t,e),Object.defineProperty(t.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(t.prototype,"systemId",{get:function(){return this.sysID}}),t.prototype.toString=function(e){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(e))},t}(n)}).call(this)},{"./NodeType":498,"./XMLNode":520}],513:[function(e,t,r){(function(){var r,n,i,o=function(e,t){for(var r in t)s.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},s={}.hasOwnProperty;i=e("./Utility").isObject,n=e("./XMLNode"),r=e("./NodeType"),t.exports=function(e){function t(e,n,o,s){var a;t.__super__.constructor.call(this,e),i(n)&&(n=(a=n).version,o=a.encoding,s=a.standalone),n||(n="1.0"),this.type=r.Declaration,this.version=this.stringify.xmlVersion(n),null!=o&&(this.encoding=this.stringify.xmlEncoding(o)),null!=s&&(this.standalone=this.stringify.xmlStandalone(s))}return o(t,e),t.prototype.toString=function(e){return this.options.writer.declaration(this,this.options.writer.filterOptions(e))},t}(n)}).call(this)},{"./NodeType":498,"./Utility":499,"./XMLNode":520}],514:[function(e,t,r){(function(){var r,n,i,o,s,a,l,c,u=function(e,t){for(var r in t)p.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},p={}.hasOwnProperty;c=e("./Utility").isObject,l=e("./XMLNode"),r=e("./NodeType"),n=e("./XMLDTDAttList"),o=e("./XMLDTDEntity"),i=e("./XMLDTDElement"),s=e("./XMLDTDNotation"),a=e("./XMLNamedNodeMap"),t.exports=function(e){function t(e,n,i){var o,s,a,l,u,p;if(t.__super__.constructor.call(this,e),this.type=r.DocType,e.children)for(s=0,a=(l=e.children).length;s<a;s++)if((o=l[s]).type===r.Element){this.name=o.name;break}this.documentObject=e,c(n)&&(n=(u=n).pubID,i=u.sysID),null==i&&(i=(p=[n,i])[0],n=p[1]),null!=n&&(this.pubID=this.stringify.dtdPubID(n)),null!=i&&(this.sysID=this.stringify.dtdSysID(i))}return u(t,e),Object.defineProperty(t.prototype,"entities",{get:function(){var e,t,n,i,o;for(i={},t=0,n=(o=this.children).length;t<n;t++)(e=o[t]).type!==r.EntityDeclaration||e.pe||(i[e.name]=e);return new a(i)}}),Object.defineProperty(t.prototype,"notations",{get:function(){var e,t,n,i,o;for(i={},t=0,n=(o=this.children).length;t<n;t++)(e=o[t]).type===r.NotationDeclaration&&(i[e.name]=e);return new a(i)}}),Object.defineProperty(t.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(t.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(t.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),t.prototype.element=function(e,t){var r;return r=new i(this,e,t),this.children.push(r),this},t.prototype.attList=function(e,t,r,i,o){var s;return s=new n(this,e,t,r,i,o),this.children.push(s),this},t.prototype.entity=function(e,t){var r;return r=new o(this,!1,e,t),this.children.push(r),this},t.prototype.pEntity=function(e,t){var r;return r=new o(this,!0,e,t),this.children.push(r),this},t.prototype.notation=function(e,t){var r;return r=new s(this,e,t),this.children.push(r),this},t.prototype.toString=function(e){return this.options.writer.docType(this,this.options.writer.filterOptions(e))},t.prototype.ele=function(e,t){return this.element(e,t)},t.prototype.att=function(e,t,r,n,i){return this.attList(e,t,r,n,i)},t.prototype.ent=function(e,t){return this.entity(e,t)},t.prototype.pent=function(e,t){return this.pEntity(e,t)},t.prototype.not=function(e,t){return this.notation(e,t)},t.prototype.up=function(){return this.root()||this.documentObject},t.prototype.isEqualNode=function(e){return!!t.__super__.isEqualNode.apply(this,arguments).isEqualNode(e)&&e.name===this.name&&e.publicId===this.publicId&&e.systemId===this.systemId},t}(l)}).call(this)},{"./NodeType":498,"./Utility":499,"./XMLDTDAttList":509,"./XMLDTDElement":510,"./XMLDTDEntity":511,"./XMLDTDNotation":512,"./XMLNamedNodeMap":519,"./XMLNode":520}],515:[function(e,t,r){(function(){var r,n,i,o,s,a,l,c=function(e,t){for(var r in t)u.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},u={}.hasOwnProperty;l=e("./Utility").isPlainObject,i=e("./XMLDOMImplementation"),n=e("./XMLDOMConfiguration"),o=e("./XMLNode"),r=e("./NodeType"),a=e("./XMLStringifier"),s=e("./XMLStringWriter"),t.exports=function(e){function t(e){t.__super__.constructor.call(this,null),this.name="#document",this.type=r.Document,this.documentURI=null,this.domConfig=new n,e||(e={}),e.writer||(e.writer=new s),this.options=e,this.stringify=new a(e)}return c(t,e),Object.defineProperty(t.prototype,"implementation",{value:new i}),Object.defineProperty(t.prototype,"doctype",{get:function(){var e,t,n,i;for(t=0,n=(i=this.children).length;t<n;t++)if((e=i[t]).type===r.DocType)return e;return null}}),Object.defineProperty(t.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(t.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(t.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(t.prototype,"xmlEncoding",{get:function(){return 0!==this.children.length&&this.children[0].type===r.Declaration?this.children[0].encoding:null}}),Object.defineProperty(t.prototype,"xmlStandalone",{get:function(){return 0!==this.children.length&&this.children[0].type===r.Declaration&&"yes"===this.children[0].standalone}}),Object.defineProperty(t.prototype,"xmlVersion",{get:function(){return 0!==this.children.length&&this.children[0].type===r.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(t.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(t.prototype,"origin",{get:function(){return null}}),Object.defineProperty(t.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(t.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(t.prototype,"contentType",{get:function(){return null}}),t.prototype.end=function(e){var t;return t={},e?l(e)&&(t=e,e=this.options.writer):e=this.options.writer,e.document(this,e.filterOptions(t))},t.prototype.toString=function(e){return this.options.writer.document(this,this.options.writer.filterOptions(e))},t.prototype.createElement=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.createTextNode=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.createComment=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.createCDATASection=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.createProcessingInstruction=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.createAttribute=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.createEntityReference=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.getElementsByTagName=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.importNode=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.createElementNS=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.createAttributeNS=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.getElementsByTagNameNS=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.getElementById=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.adoptNode=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.renameNode=function(e,t,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.getElementsByClassName=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.createEvent=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.createNodeIterator=function(e,t,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.createTreeWalker=function(e,t,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},t}(o)}).call(this)},{"./NodeType":498,"./Utility":499,"./XMLDOMConfiguration":505,"./XMLDOMImplementation":507,"./XMLNode":520,"./XMLStringWriter":525,"./XMLStringifier":526}],516:[function(e,t,r){(function(){var r,n,i,o,s,a,l,c,u,p,d,m,f,h,y,g,b,v,x,w,S,N,j,E={}.hasOwnProperty;j=e("./Utility"),S=j.isObject,w=j.isFunction,N=j.isPlainObject,x=j.getValue,r=e("./NodeType"),m=e("./XMLDocument"),f=e("./XMLElement"),o=e("./XMLCData"),s=e("./XMLComment"),y=e("./XMLRaw"),v=e("./XMLText"),h=e("./XMLProcessingInstruction"),p=e("./XMLDeclaration"),d=e("./XMLDocType"),a=e("./XMLDTDAttList"),c=e("./XMLDTDEntity"),l=e("./XMLDTDElement"),u=e("./XMLDTDNotation"),i=e("./XMLAttribute"),b=e("./XMLStringifier"),g=e("./XMLStringWriter"),n=e("./WriterState"),t.exports=function(){function e(e,t,n){var i;this.name="?xml",this.type=r.Document,e||(e={}),i={},e.writer?N(e.writer)&&(i=e.writer,e.writer=new g):e.writer=new g,this.options=e,this.writer=e.writer,this.writerOptions=this.writer.filterOptions(i),this.stringify=new b(e),this.onDataCallback=t||function(){},this.onEndCallback=n||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return e.prototype.createChildNode=function(e){var t,n,i,o,s,a,l,c;switch(e.type){case r.CData:this.cdata(e.value);break;case r.Comment:this.comment(e.value);break;case r.Element:for(n in i={},l=e.attribs)E.call(l,n)&&(t=l[n],i[n]=t.value);this.node(e.name,i);break;case r.Dummy:this.dummy();break;case r.Raw:this.raw(e.value);break;case r.Text:this.text(e.value);break;case r.ProcessingInstruction:this.instruction(e.target,e.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+e.constructor.name)}for(s=0,a=(c=e.children).length;s<a;s++)o=c[s],this.createChildNode(o),o.type===r.Element&&this.up();return this},e.prototype.dummy=function(){return this},e.prototype.node=function(e,t,r){var n;if(null==e)throw new Error("Missing node name.");if(this.root&&-1===this.currentLevel)throw new Error("Document can only have one root node. "+this.debugInfo(e));return this.openCurrent(),e=x(e),null==t&&(t={}),t=x(t),S(t)||(r=(n=[t,r])[0],t=n[1]),this.currentNode=new f(this,e,t),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,null!=r&&this.text(r),this},e.prototype.element=function(e,t,n){var i,o,s,a,l,c;if(this.currentNode&&this.currentNode.type===r.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(e)||S(e)||w(e))for(a=this.options.noValidation,this.options.noValidation=!0,(c=new m(this.options).element("TEMP_ROOT")).element(e),this.options.noValidation=a,o=0,s=(l=c.children).length;o<s;o++)i=l[o],this.createChildNode(i),i.type===r.Element&&this.up();else this.node(e,t,n);return this},e.prototype.attribute=function(e,t){var r,n;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(e));if(null!=e&&(e=x(e)),S(e))for(r in e)E.call(e,r)&&(n=e[r],this.attribute(r,n));else w(t)&&(t=t.apply()),this.options.keepNullAttributes&&null==t?this.currentNode.attribs[e]=new i(this,e,""):null!=t&&(this.currentNode.attribs[e]=new i(this,e,t));return this},e.prototype.text=function(e){var t;return this.openCurrent(),t=new v(this,e),this.onData(this.writer.text(t,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},e.prototype.cdata=function(e){var t;return this.openCurrent(),t=new o(this,e),this.onData(this.writer.cdata(t,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},e.prototype.comment=function(e){var t;return this.openCurrent(),t=new s(this,e),this.onData(this.writer.comment(t,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},e.prototype.raw=function(e){var t;return this.openCurrent(),t=new y(this,e),this.onData(this.writer.raw(t,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},e.prototype.instruction=function(e,t){var r,n,i,o,s;if(this.openCurrent(),null!=e&&(e=x(e)),null!=t&&(t=x(t)),Array.isArray(e))for(r=0,o=e.length;r<o;r++)n=e[r],this.instruction(n);else if(S(e))for(n in e)E.call(e,n)&&(i=e[n],this.instruction(n,i));else w(t)&&(t=t.apply()),s=new h(this,e,t),this.onData(this.writer.processingInstruction(s,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},e.prototype.declaration=function(e,t,r){var n;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return n=new p(this,e,t,r),this.onData(this.writer.declaration(n,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},e.prototype.doctype=function(e,t,r){if(this.openCurrent(),null==e)throw new Error("Missing root node name.");if(this.root)throw new Error("dtd() must come before the root node.");return this.currentNode=new d(this,t,r),this.currentNode.rootNodeName=e,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},e.prototype.dtdElement=function(e,t){var r;return this.openCurrent(),r=new l(this,e,t),this.onData(this.writer.dtdElement(r,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},e.prototype.attList=function(e,t,r,n,i){var o;return this.openCurrent(),o=new a(this,e,t,r,n,i),this.onData(this.writer.dtdAttList(o,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},e.prototype.entity=function(e,t){var r;return this.openCurrent(),r=new c(this,!1,e,t),this.onData(this.writer.dtdEntity(r,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},e.prototype.pEntity=function(e,t){var r;return this.openCurrent(),r=new c(this,!0,e,t),this.onData(this.writer.dtdEntity(r,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},e.prototype.notation=function(e,t){var r;return this.openCurrent(),r=new u(this,e,t),this.onData(this.writer.dtdNotation(r,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},e.prototype.up=function(){if(this.currentLevel<0)throw new Error("The document node has no parent.");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this},e.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},e.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},e.prototype.openNode=function(e){var t,i,o,s;if(!e.isOpen){if(this.root||0!==this.currentLevel||e.type!==r.Element||(this.root=e),i="",e.type===r.Element){for(o in this.writerOptions.state=n.OpenTag,i=this.writer.indent(e,this.writerOptions,this.currentLevel)+"<"+e.name,s=e.attribs)E.call(s,o)&&(t=s[o],i+=this.writer.attribute(t,this.writerOptions,this.currentLevel));i+=(e.children?">":"/>")+this.writer.endline(e,this.writerOptions,this.currentLevel),this.writerOptions.state=n.InsideTag}else this.writerOptions.state=n.OpenTag,i=this.writer.indent(e,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+e.rootNodeName,e.pubID&&e.sysID?i+=' PUBLIC "'+e.pubID+'" "'+e.sysID+'"':e.sysID&&(i+=' SYSTEM "'+e.sysID+'"'),e.children?(i+=" [",this.writerOptions.state=n.InsideTag):(this.writerOptions.state=n.CloseTag,i+=">"),i+=this.writer.endline(e,this.writerOptions,this.currentLevel);return this.onData(i,this.currentLevel),e.isOpen=!0}},e.prototype.closeNode=function(e){var t;if(!e.isClosed)return t="",this.writerOptions.state=n.CloseTag,t=e.type===r.Element?this.writer.indent(e,this.writerOptions,this.currentLevel)+"</"+e.name+">"+this.writer.endline(e,this.writerOptions,this.currentLevel):this.writer.indent(e,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(e,this.writerOptions,this.currentLevel),this.writerOptions.state=n.None,this.onData(t,this.currentLevel),e.isClosed=!0},e.prototype.onData=function(e,t){return this.documentStarted=!0,this.onDataCallback(e,t+1)},e.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},e.prototype.debugInfo=function(e){return null==e?"":"node: <"+e+">"},e.prototype.ele=function(){return this.element.apply(this,arguments)},e.prototype.nod=function(e,t,r){return this.node(e,t,r)},e.prototype.txt=function(e){return this.text(e)},e.prototype.dat=function(e){return this.cdata(e)},e.prototype.com=function(e){return this.comment(e)},e.prototype.ins=function(e,t){return this.instruction(e,t)},e.prototype.dec=function(e,t,r){return this.declaration(e,t,r)},e.prototype.dtd=function(e,t,r){return this.doctype(e,t,r)},e.prototype.e=function(e,t,r){return this.element(e,t,r)},e.prototype.n=function(e,t,r){return this.node(e,t,r)},e.prototype.t=function(e){return this.text(e)},e.prototype.d=function(e){return this.cdata(e)},e.prototype.c=function(e){return this.comment(e)},e.prototype.r=function(e){return this.raw(e)},e.prototype.i=function(e,t){return this.instruction(e,t)},e.prototype.att=function(){return this.currentNode&&this.currentNode.type===r.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},e.prototype.a=function(){return this.currentNode&&this.currentNode.type===r.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},e.prototype.ent=function(e,t){return this.entity(e,t)},e.prototype.pent=function(e,t){return this.pEntity(e,t)},e.prototype.not=function(e,t){return this.notation(e,t)},e}()}).call(this)},{"./NodeType":498,"./Utility":499,"./WriterState":500,"./XMLAttribute":501,"./XMLCData":502,"./XMLComment":504,"./XMLDTDAttList":509,"./XMLDTDElement":510,"./XMLDTDEntity":511,"./XMLDTDNotation":512,"./XMLDeclaration":513,"./XMLDocType":514,"./XMLDocument":515,"./XMLElement":518,"./XMLProcessingInstruction":522,"./XMLRaw":523,"./XMLStringWriter":525,"./XMLStringifier":526,"./XMLText":527}],517:[function(e,t,r){(function(){var r,n,i=function(e,t){for(var r in t)o.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},o={}.hasOwnProperty;n=e("./XMLNode"),r=e("./NodeType"),t.exports=function(e){function t(e){t.__super__.constructor.call(this,e),this.type=r.Dummy}return i(t,e),t.prototype.clone=function(){return Object.create(this)},t.prototype.toString=function(e){return""},t}(n)}).call(this)},{"./NodeType":498,"./XMLNode":520}],518:[function(e,t,r){(function(){var r,n,i,o,s,a,l,c,u=function(e,t){for(var r in t)p.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},p={}.hasOwnProperty;c=e("./Utility"),l=c.isObject,a=c.isFunction,s=c.getValue,o=e("./XMLNode"),r=e("./NodeType"),n=e("./XMLAttribute"),i=e("./XMLNamedNodeMap"),t.exports=function(e){function t(e,n,i){var o,s,a,l;if(t.__super__.constructor.call(this,e),null==n)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(n),this.type=r.Element,this.attribs={},this.schemaTypeInfo=null,null!=i&&this.attribute(i),e.type===r.Document&&(this.isRoot=!0,this.documentObject=e,e.rootObject=this,e.children))for(s=0,a=(l=e.children).length;s<a;s++)if((o=l[s]).type===r.DocType){o.name=this.name;break}}return u(t,e),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(t.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(t.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(t.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(t.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(t.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(t.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(t.prototype,"attributes",{get:function(){return this.attributeMap&&this.attributeMap.nodes||(this.attributeMap=new i(this.attribs)),this.attributeMap}}),t.prototype.clone=function(){var e,t,r,n;for(t in(r=Object.create(this)).isRoot&&(r.documentObject=null),r.attribs={},n=this.attribs)p.call(n,t)&&(e=n[t],r.attribs[t]=e.clone());return r.children=[],this.children.forEach(function(e){var t;return(t=e.clone()).parent=r,r.children.push(t)}),r},t.prototype.attribute=function(e,t){var r,i;if(null!=e&&(e=s(e)),l(e))for(r in e)p.call(e,r)&&(i=e[r],this.attribute(r,i));else a(t)&&(t=t.apply()),this.options.keepNullAttributes&&null==t?this.attribs[e]=new n(this,e,""):null!=t&&(this.attribs[e]=new n(this,e,t));return this},t.prototype.removeAttribute=function(e){var t,r,n;if(null==e)throw new Error("Missing attribute name. "+this.debugInfo());if(e=s(e),Array.isArray(e))for(r=0,n=e.length;r<n;r++)t=e[r],delete this.attribs[t];else delete this.attribs[e];return this},t.prototype.toString=function(e){return this.options.writer.element(this,this.options.writer.filterOptions(e))},t.prototype.att=function(e,t){return this.attribute(e,t)},t.prototype.a=function(e,t){return this.attribute(e,t)},t.prototype.getAttribute=function(e){return this.attribs.hasOwnProperty(e)?this.attribs[e].value:null},t.prototype.setAttribute=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.getAttributeNode=function(e){return this.attribs.hasOwnProperty(e)?this.attribs[e]:null},t.prototype.setAttributeNode=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.removeAttributeNode=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.getElementsByTagName=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.getAttributeNS=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.setAttributeNS=function(e,t,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.removeAttributeNS=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.getAttributeNodeNS=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.setAttributeNodeNS=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.getElementsByTagNameNS=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.hasAttribute=function(e){return this.attribs.hasOwnProperty(e)},t.prototype.hasAttributeNS=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.setIdAttribute=function(e,t){return this.attribs.hasOwnProperty(e)?this.attribs[e].isId:t},t.prototype.setIdAttributeNS=function(e,t,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.setIdAttributeNode=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.getElementsByTagName=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.getElementsByTagNameNS=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.getElementsByClassName=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.isEqualNode=function(e){var r,n,i;if(!t.__super__.isEqualNode.apply(this,arguments).isEqualNode(e))return!1;if(e.namespaceURI!==this.namespaceURI)return!1;if(e.prefix!==this.prefix)return!1;if(e.localName!==this.localName)return!1;if(e.attribs.length!==this.attribs.length)return!1;for(r=n=0,i=this.attribs.length-1;0<=i?n<=i:n>=i;r=0<=i?++n:--n)if(!this.attribs[r].isEqualNode(e.attribs[r]))return!1;return!0},t}(o)}).call(this)},{"./NodeType":498,"./Utility":499,"./XMLAttribute":501,"./XMLNamedNodeMap":519,"./XMLNode":520}],519:[function(e,t,r){(function(){t.exports=function(){function e(e){this.nodes=e}return Object.defineProperty(e.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),e.prototype.clone=function(){return this.nodes=null},e.prototype.getNamedItem=function(e){return this.nodes[e]},e.prototype.setNamedItem=function(e){var t;return t=this.nodes[e.nodeName],this.nodes[e.nodeName]=e,t||null},e.prototype.removeNamedItem=function(e){var t;return t=this.nodes[e],delete this.nodes[e],t||null},e.prototype.item=function(e){return this.nodes[Object.keys(this.nodes)[e]]||null},e.prototype.getNamedItemNS=function(e,t){throw new Error("This DOM method is not implemented.")},e.prototype.setNamedItemNS=function(e){throw new Error("This DOM method is not implemented.")},e.prototype.removeNamedItemNS=function(e,t){throw new Error("This DOM method is not implemented.")},e}()}).call(this)},{}],520:[function(e,t,r){(function(){var r,n,i,o,s,a,l,c,u,p,d,m,f,h,y,g,b,v={}.hasOwnProperty;b=e("./Utility"),g=b.isObject,y=b.isFunction,h=b.isEmpty,f=b.getValue,c=null,i=null,o=null,s=null,a=null,d=null,m=null,p=null,l=null,n=null,u=null,r=null,t.exports=function(){function t(t){this.parent=t,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,c||(c=e("./XMLElement"),i=e("./XMLCData"),o=e("./XMLComment"),s=e("./XMLDeclaration"),a=e("./XMLDocType"),d=e("./XMLRaw"),m=e("./XMLText"),p=e("./XMLProcessingInstruction"),l=e("./XMLDummy"),n=e("./NodeType"),u=e("./XMLNodeList"),e("./XMLNamedNodeMap"),r=e("./DocumentPosition"))}return Object.defineProperty(t.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(t.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.childNodeList&&this.childNodeList.nodes||(this.childNodeList=new u(this.children)),this.childNodeList}}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(t.prototype,"previousSibling",{get:function(){var e;return e=this.parent.children.indexOf(this),this.parent.children[e-1]||null}}),Object.defineProperty(t.prototype,"nextSibling",{get:function(){var e;return e=this.parent.children.indexOf(this),this.parent.children[e+1]||null}}),Object.defineProperty(t.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(t.prototype,"textContent",{get:function(){var e,t,r,i,o;if(this.nodeType===n.Element||this.nodeType===n.DocumentFragment){for(o="",t=0,r=(i=this.children).length;t<r;t++)(e=i[t]).textContent&&(o+=e.textContent);return o}return null},set:function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),t.prototype.setParent=function(e){var t,r,n,i,o;for(this.parent=e,e&&(this.options=e.options,this.stringify=e.stringify),o=[],r=0,n=(i=this.children).length;r<n;r++)t=i[r],o.push(t.setParent(this));return o},t.prototype.element=function(e,t,r){var n,i,o,s,a,l,c,u,p,d,m;if(l=null,null===t&&null==r&&(t=(p=[{},null])[0],r=p[1]),null==t&&(t={}),t=f(t),g(t)||(r=(d=[t,r])[0],t=d[1]),null!=e&&(e=f(e)),Array.isArray(e))for(o=0,c=e.length;o<c;o++)i=e[o],l=this.element(i);else if(y(e))l=this.element(e.apply());else if(g(e)){for(a in e)if(v.call(e,a))if(m=e[a],y(m)&&(m=m.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&0===a.indexOf(this.stringify.convertAttKey))l=this.attribute(a.substr(this.stringify.convertAttKey.length),m);else if(!this.options.separateArrayItems&&Array.isArray(m)&&h(m))l=this.dummy();else if(g(m)&&h(m))l=this.element(a);else if(this.options.keepNullNodes||null!=m)if(!this.options.separateArrayItems&&Array.isArray(m))for(s=0,u=m.length;s<u;s++)i=m[s],(n={})[a]=i,l=this.element(n);else g(m)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&0===a.indexOf(this.stringify.convertTextKey)?l=this.element(m):(l=this.element(a)).element(m):l=this.element(a,m);else l=this.dummy()}else l=this.options.keepNullNodes||null!==r?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&0===e.indexOf(this.stringify.convertTextKey)?this.text(r):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&0===e.indexOf(this.stringify.convertCDataKey)?this.cdata(r):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&0===e.indexOf(this.stringify.convertCommentKey)?this.comment(r):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&0===e.indexOf(this.stringify.convertRawKey)?this.raw(r):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&0===e.indexOf(this.stringify.convertPIKey)?this.instruction(e.substr(this.stringify.convertPIKey.length),r):this.node(e,t,r):this.dummy();if(null==l)throw new Error("Could not create any elements with: "+e+". "+this.debugInfo());return l},t.prototype.insertBefore=function(e,t,r){var n,i,o,s,a;if(null!=e?e.type:void 0)return s=t,(o=e).setParent(this),s?(i=children.indexOf(s),a=children.splice(i),children.push(o),Array.prototype.push.apply(children,a)):children.push(o),o;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(e));return i=this.parent.children.indexOf(this),a=this.parent.children.splice(i),n=this.parent.element(e,t,r),Array.prototype.push.apply(this.parent.children,a),n},t.prototype.insertAfter=function(e,t,r){var n,i,o;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(e));return i=this.parent.children.indexOf(this),o=this.parent.children.splice(i+1),n=this.parent.element(e,t,r),Array.prototype.push.apply(this.parent.children,o),n},t.prototype.remove=function(){var e;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return e=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[e,e-e+1].concat([])),this.parent},t.prototype.node=function(e,t,r){var n,i;return null!=e&&(e=f(e)),t||(t={}),t=f(t),g(t)||(r=(i=[t,r])[0],t=i[1]),n=new c(this,e,t),null!=r&&n.text(r),this.children.push(n),n},t.prototype.text=function(e){var t;return g(e)&&this.element(e),t=new m(this,e),this.children.push(t),this},t.prototype.cdata=function(e){var t;return t=new i(this,e),this.children.push(t),this},t.prototype.comment=function(e){var t;return t=new o(this,e),this.children.push(t),this},t.prototype.commentBefore=function(e){var t,r;return t=this.parent.children.indexOf(this),r=this.parent.children.splice(t),this.parent.comment(e),Array.prototype.push.apply(this.parent.children,r),this},t.prototype.commentAfter=function(e){var t,r;return t=this.parent.children.indexOf(this),r=this.parent.children.splice(t+1),this.parent.comment(e),Array.prototype.push.apply(this.parent.children,r),this},t.prototype.raw=function(e){var t;return t=new d(this,e),this.children.push(t),this},t.prototype.dummy=function(){return new l(this)},t.prototype.instruction=function(e,t){var r,n,i,o,s;if(null!=e&&(e=f(e)),null!=t&&(t=f(t)),Array.isArray(e))for(o=0,s=e.length;o<s;o++)r=e[o],this.instruction(r);else if(g(e))for(r in e)v.call(e,r)&&(n=e[r],this.instruction(r,n));else y(t)&&(t=t.apply()),i=new p(this,e,t),this.children.push(i);return this},t.prototype.instructionBefore=function(e,t){var r,n;return r=this.parent.children.indexOf(this),n=this.parent.children.splice(r),this.parent.instruction(e,t),Array.prototype.push.apply(this.parent.children,n),this},t.prototype.instructionAfter=function(e,t){var r,n;return r=this.parent.children.indexOf(this),n=this.parent.children.splice(r+1),this.parent.instruction(e,t),Array.prototype.push.apply(this.parent.children,n),this},t.prototype.declaration=function(e,t,r){var i,o;return i=this.document(),o=new s(i,e,t,r),0===i.children.length?i.children.unshift(o):i.children[0].type===n.Declaration?i.children[0]=o:i.children.unshift(o),i.root()||i},t.prototype.dtd=function(e,t){var r,i,o,s,l,c,u,p,d;for(r=this.document(),i=new a(r,e,t),o=s=0,c=(p=r.children).length;s<c;o=++s)if(p[o].type===n.DocType)return r.children[o]=i,i;for(o=l=0,u=(d=r.children).length;l<u;o=++l)if(d[o].isRoot)return r.children.splice(o,0,i),i;return r.children.push(i),i},t.prototype.up=function(){if(this.isRoot)throw new Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},t.prototype.root=function(){var e;for(e=this;e;){if(e.type===n.Document)return e.rootObject;if(e.isRoot)return e;e=e.parent}},t.prototype.document=function(){var e;for(e=this;e;){if(e.type===n.Document)return e;e=e.parent}},t.prototype.end=function(e){return this.document().end(e)},t.prototype.prev=function(){var e;if((e=this.parent.children.indexOf(this))<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[e-1]},t.prototype.next=function(){var e;if(-1===(e=this.parent.children.indexOf(this))||e===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[e+1]},t.prototype.importDocument=function(e){var t;return(t=e.root().clone()).parent=this,t.isRoot=!1,this.children.push(t),this},t.prototype.debugInfo=function(e){var t,r;return null!=(e=e||this.name)||(null!=(t=this.parent)?t.name:void 0)?null==e?"parent: <"+this.parent.name+">":(null!=(r=this.parent)?r.name:void 0)?"node: <"+e+">, parent: <"+this.parent.name+">":"node: <"+e+">":""},t.prototype.ele=function(e,t,r){return this.element(e,t,r)},t.prototype.nod=function(e,t,r){return this.node(e,t,r)},t.prototype.txt=function(e){return this.text(e)},t.prototype.dat=function(e){return this.cdata(e)},t.prototype.com=function(e){return this.comment(e)},t.prototype.ins=function(e,t){return this.instruction(e,t)},t.prototype.doc=function(){return this.document()},t.prototype.dec=function(e,t,r){return this.declaration(e,t,r)},t.prototype.e=function(e,t,r){return this.element(e,t,r)},t.prototype.n=function(e,t,r){return this.node(e,t,r)},t.prototype.t=function(e){return this.text(e)},t.prototype.d=function(e){return this.cdata(e)},t.prototype.c=function(e){return this.comment(e)},t.prototype.r=function(e){return this.raw(e)},t.prototype.i=function(e,t){return this.instruction(e,t)},t.prototype.u=function(){return this.up()},t.prototype.importXMLBuilder=function(e){return this.importDocument(e)},t.prototype.replaceChild=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.removeChild=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.appendChild=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.hasChildNodes=function(){return 0!==this.children.length},t.prototype.cloneNode=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.isSupported=function(e,t){return!0},t.prototype.hasAttributes=function(){return 0!==this.attribs.length},t.prototype.compareDocumentPosition=function(e){var t,n;return(t=this)===e?0:this.document()!==e.document()?(n=r.Disconnected|r.ImplementationSpecific,Math.random()<.5?n|=r.Preceding:n|=r.Following,n):t.isAncestor(e)?r.Contains|r.Preceding:t.isDescendant(e)?r.Contains|r.Following:t.isPreceding(e)?r.Preceding:r.Following},t.prototype.isSameNode=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.lookupPrefix=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.isDefaultNamespace=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.lookupNamespaceURI=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.isEqualNode=function(e){var t,r,n;if(e.nodeType!==this.nodeType)return!1;if(e.children.length!==this.children.length)return!1;for(t=r=0,n=this.children.length-1;0<=n?r<=n:r>=n;t=0<=n?++r:--r)if(!this.children[t].isEqualNode(e.children[t]))return!1;return!0},t.prototype.getFeature=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.setUserData=function(e,t,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.getUserData=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.contains=function(e){return!!e&&(e===this||this.isDescendant(e))},t.prototype.isDescendant=function(e){var t,r,n,i;for(r=0,n=(i=this.children).length;r<n;r++){if(e===(t=i[r]))return!0;if(t.isDescendant(e))return!0}return!1},t.prototype.isAncestor=function(e){return e.isDescendant(this)},t.prototype.isPreceding=function(e){var t,r;return t=this.treePosition(e),r=this.treePosition(this),-1!==t&&-1!==r&&t<r},t.prototype.isFollowing=function(e){var t,r;return t=this.treePosition(e),r=this.treePosition(this),-1!==t&&-1!==r&&t>r},t.prototype.treePosition=function(e){var t,r;return r=0,t=!1,this.foreachTreeNode(this.document(),function(n){if(r++,!t&&n===e)return t=!0}),t?r:-1},t.prototype.foreachTreeNode=function(e,t){var r,n,i,o,s;for(e||(e=this.document()),n=0,i=(o=e.children).length;n<i;n++){if(s=t(r=o[n]))return s;if(s=this.foreachTreeNode(r,t))return s}},t}()}).call(this)},{"./DocumentPosition":497,"./NodeType":498,"./Utility":499,"./XMLCData":502,"./XMLComment":504,"./XMLDeclaration":513,"./XMLDocType":514,"./XMLDummy":517,"./XMLElement":518,"./XMLNamedNodeMap":519,"./XMLNodeList":521,"./XMLProcessingInstruction":522,"./XMLRaw":523,"./XMLText":527}],521:[function(e,t,r){(function(){t.exports=function(){function e(e){this.nodes=e}return Object.defineProperty(e.prototype,"length",{get:function(){return this.nodes.length||0}}),e.prototype.clone=function(){return this.nodes=null},e.prototype.item=function(e){return this.nodes[e]||null},e}()}).call(this)},{}],522:[function(e,t,r){(function(){var r,n,i=function(e,t){for(var r in t)o.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},o={}.hasOwnProperty;r=e("./NodeType"),n=e("./XMLCharacterData"),t.exports=function(e){function t(e,n,i){if(t.__super__.constructor.call(this,e),null==n)throw new Error("Missing instruction target. "+this.debugInfo());this.type=r.ProcessingInstruction,this.target=this.stringify.insTarget(n),this.name=this.target,i&&(this.value=this.stringify.insValue(i))}return i(t,e),t.prototype.clone=function(){return Object.create(this)},t.prototype.toString=function(e){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(e))},t.prototype.isEqualNode=function(e){return!!t.__super__.isEqualNode.apply(this,arguments).isEqualNode(e)&&e.target===this.target},t}(n)}).call(this)},{"./NodeType":498,"./XMLCharacterData":503}],523:[function(e,t,r){(function(){var r,n,i=function(e,t){for(var r in t)o.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},o={}.hasOwnProperty;r=e("./NodeType"),n=e("./XMLNode"),t.exports=function(e){function t(e,n){if(t.__super__.constructor.call(this,e),null==n)throw new Error("Missing raw text. "+this.debugInfo());this.type=r.Raw,this.value=this.stringify.raw(n)}return i(t,e),t.prototype.clone=function(){return Object.create(this)},t.prototype.toString=function(e){return this.options.writer.raw(this,this.options.writer.filterOptions(e))},t}(n)}).call(this)},{"./NodeType":498,"./XMLNode":520}],524:[function(e,t,r){(function(){var r,n,i,o=function(e,t){for(var r in t)s.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},s={}.hasOwnProperty;r=e("./NodeType"),i=e("./XMLWriterBase"),n=e("./WriterState"),t.exports=function(e){function t(e,r){this.stream=e,t.__super__.constructor.call(this,r)}return o(t,e),t.prototype.endline=function(e,r,i){return e.isLastRootNode&&r.state===n.CloseTag?"":t.__super__.endline.call(this,e,r,i)},t.prototype.document=function(e,t){var r,n,i,o,s,a,l,c,u;for(n=i=0,s=(l=e.children).length;i<s;n=++i)(r=l[n]).isLastRootNode=n===e.children.length-1;for(t=this.filterOptions(t),u=[],o=0,a=(c=e.children).length;o<a;o++)r=c[o],u.push(this.writeChildNode(r,t,0));return u},t.prototype.attribute=function(e,r,n){return this.stream.write(t.__super__.attribute.call(this,e,r,n))},t.prototype.cdata=function(e,r,n){return this.stream.write(t.__super__.cdata.call(this,e,r,n))},t.prototype.comment=function(e,r,n){return this.stream.write(t.__super__.comment.call(this,e,r,n))},t.prototype.declaration=function(e,r,n){return this.stream.write(t.__super__.declaration.call(this,e,r,n))},t.prototype.docType=function(e,t,r){var i,o,s,a;if(r||(r=0),this.openNode(e,t,r),t.state=n.OpenTag,this.stream.write(this.indent(e,t,r)),this.stream.write("<!DOCTYPE "+e.root().name),e.pubID&&e.sysID?this.stream.write(' PUBLIC "'+e.pubID+'" "'+e.sysID+'"'):e.sysID&&this.stream.write(' SYSTEM "'+e.sysID+'"'),e.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(e,t,r)),t.state=n.InsideTag,o=0,s=(a=e.children).length;o<s;o++)i=a[o],this.writeChildNode(i,t,r+1);t.state=n.CloseTag,this.stream.write("]")}return t.state=n.CloseTag,this.stream.write(t.spaceBeforeSlash+">"),this.stream.write(this.endline(e,t,r)),t.state=n.None,this.closeNode(e,t,r)},t.prototype.element=function(e,t,i){var o,a,l,c,u,p,d,m,f;for(d in i||(i=0),this.openNode(e,t,i),t.state=n.OpenTag,this.stream.write(this.indent(e,t,i)+"<"+e.name),m=e.attribs)s.call(m,d)&&(o=m[d],this.attribute(o,t,i));if(c=0===(l=e.children.length)?null:e.children[0],0===l||e.children.every(function(e){return(e.type===r.Text||e.type===r.Raw)&&""===e.value}))t.allowEmpty?(this.stream.write(">"),t.state=n.CloseTag,this.stream.write("</"+e.name+">")):(t.state=n.CloseTag,this.stream.write(t.spaceBeforeSlash+"/>"));else if(!t.pretty||1!==l||c.type!==r.Text&&c.type!==r.Raw||null==c.value){for(this.stream.write(">"+this.endline(e,t,i)),t.state=n.InsideTag,u=0,p=(f=e.children).length;u<p;u++)a=f[u],this.writeChildNode(a,t,i+1);t.state=n.CloseTag,this.stream.write(this.indent(e,t,i)+"</"+e.name+">")}else this.stream.write(">"),t.state=n.InsideTag,t.suppressPrettyCount++,this.writeChildNode(c,t,i+1),t.suppressPrettyCount--,t.state=n.CloseTag,this.stream.write("</"+e.name+">");return this.stream.write(this.endline(e,t,i)),t.state=n.None,this.closeNode(e,t,i)},t.prototype.processingInstruction=function(e,r,n){return this.stream.write(t.__super__.processingInstruction.call(this,e,r,n))},t.prototype.raw=function(e,r,n){return this.stream.write(t.__super__.raw.call(this,e,r,n))},t.prototype.text=function(e,r,n){return this.stream.write(t.__super__.text.call(this,e,r,n))},t.prototype.dtdAttList=function(e,r,n){return this.stream.write(t.__super__.dtdAttList.call(this,e,r,n))},t.prototype.dtdElement=function(e,r,n){return this.stream.write(t.__super__.dtdElement.call(this,e,r,n))},t.prototype.dtdEntity=function(e,r,n){return this.stream.write(t.__super__.dtdEntity.call(this,e,r,n))},t.prototype.dtdNotation=function(e,r,n){return this.stream.write(t.__super__.dtdNotation.call(this,e,r,n))},t}(i)}).call(this)},{"./NodeType":498,"./WriterState":500,"./XMLWriterBase":528}],525:[function(e,t,r){(function(){var r,n=function(e,t){for(var r in t)i.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},i={}.hasOwnProperty;r=e("./XMLWriterBase"),t.exports=function(e){function t(e){t.__super__.constructor.call(this,e)}return n(t,e),t.prototype.document=function(e,t){var r,n,i,o,s;for(t=this.filterOptions(t),o="",n=0,i=(s=e.children).length;n<i;n++)r=s[n],o+=this.writeChildNode(r,t,0);return t.pretty&&o.slice(-t.newline.length)===t.newline&&(o=o.slice(0,-t.newline.length)),o},t}(r)}).call(this)},{"./XMLWriterBase":528}],526:[function(e,t,r){(function(){var e=function(e,t){return function(){return e.apply(t,arguments)}},r={}.hasOwnProperty;t.exports=function(){function t(t){var n,i,o;for(n in this.assertLegalName=e(this.assertLegalName,this),this.assertLegalChar=e(this.assertLegalChar,this),t||(t={}),this.options=t,this.options.version||(this.options.version="1.0"),i=t.stringify||{})r.call(i,n)&&(o=i[n],this[n]=o)}return t.prototype.name=function(e){return this.options.noValidation?e:this.assertLegalName(""+e||"")},t.prototype.text=function(e){return this.options.noValidation?e:this.assertLegalChar(this.textEscape(""+e||""))},t.prototype.cdata=function(e){return this.options.noValidation?e:(e=(e=""+e||"").replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(e))},t.prototype.comment=function(e){if(this.options.noValidation)return e;if((e=""+e||"").match(/--/))throw new Error("Comment text cannot contain double-hypen: "+e);return this.assertLegalChar(e)},t.prototype.raw=function(e){return this.options.noValidation?e:""+e||""},t.prototype.attValue=function(e){return this.options.noValidation?e:this.assertLegalChar(this.attEscape(e=""+e||""))},t.prototype.insTarget=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},t.prototype.insValue=function(e){if(this.options.noValidation)return e;if((e=""+e||"").match(/\?>/))throw new Error("Invalid processing instruction value: "+e);return this.assertLegalChar(e)},t.prototype.xmlVersion=function(e){if(this.options.noValidation)return e;if(!(e=""+e||"").match(/1\.[0-9]+/))throw new Error("Invalid version number: "+e);return e},t.prototype.xmlEncoding=function(e){if(this.options.noValidation)return e;if(!(e=""+e||"").match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+e);return this.assertLegalChar(e)},t.prototype.xmlStandalone=function(e){return this.options.noValidation?e:e?"yes":"no"},t.prototype.dtdPubID=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},t.prototype.dtdSysID=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},t.prototype.dtdElementValue=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},t.prototype.dtdAttType=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},t.prototype.dtdAttDefault=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},t.prototype.dtdEntityValue=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},t.prototype.dtdNData=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},t.prototype.convertAttKey="@",t.prototype.convertPIKey="?",t.prototype.convertTextKey="#text",t.prototype.convertCDataKey="#cdata",t.prototype.convertCommentKey="#comment",t.prototype.convertRawKey="#raw",t.prototype.assertLegalChar=function(e){var t,r;if(this.options.noValidation)return e;if(t="","1.0"===this.options.version){if(t=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,r=e.match(t))throw new Error("Invalid character in string: "+e+" at index "+r.index)}else if("1.1"===this.options.version&&(t=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,r=e.match(t)))throw new Error("Invalid character in string: "+e+" at index "+r.index);return e},t.prototype.assertLegalName=function(e){var t;if(this.options.noValidation)return e;if(this.assertLegalChar(e),t=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!e.match(t))throw new Error("Invalid character in name");return e},t.prototype.textEscape=function(e){var t;return this.options.noValidation?e:(t=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,e.replace(t,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
"))},t.prototype.attEscape=function(e){var t;return this.options.noValidation?e:(t=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,e.replace(t,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
"))},t}()}).call(this)},{}],527:[function(e,t,r){(function(){var r,n,i=function(e,t){for(var r in t)o.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},o={}.hasOwnProperty;r=e("./NodeType"),n=e("./XMLCharacterData"),t.exports=function(e){function t(e,n){if(t.__super__.constructor.call(this,e),null==n)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=r.Text,this.value=this.stringify.text(n)}return i(t,e),Object.defineProperty(t.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(t.prototype,"wholeText",{get:function(){var e,t,r;for(r="",t=this.previousSibling;t;)r=t.data+r,t=t.previousSibling;for(r+=this.data,e=this.nextSibling;e;)r+=e.data,e=e.nextSibling;return r}}),t.prototype.clone=function(){return Object.create(this)},t.prototype.toString=function(e){return this.options.writer.text(this,this.options.writer.filterOptions(e))},t.prototype.splitText=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.replaceWholeText=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t}(n)}).call(this)},{"./NodeType":498,"./XMLCharacterData":503}],528:[function(e,t,r){(function(){var r,n,i,o={}.hasOwnProperty;i=e("./Utility").assign,r=e("./NodeType"),e("./XMLDeclaration"),e("./XMLDocType"),e("./XMLCData"),e("./XMLComment"),e("./XMLElement"),e("./XMLRaw"),e("./XMLText"),e("./XMLProcessingInstruction"),e("./XMLDummy"),e("./XMLDTDAttList"),e("./XMLDTDElement"),e("./XMLDTDEntity"),e("./XMLDTDNotation"),n=e("./WriterState"),t.exports=function(){function e(e){var t,r,n;for(t in e||(e={}),this.options=e,r=e.writer||{})o.call(r,t)&&(n=r[t],this["_"+t]=this[t],this[t]=n)}return e.prototype.filterOptions=function(e){var t,r,o,s,a,l,c,u;return e||(e={}),e=i({},this.options,e),(t={writer:this}).pretty=e.pretty||!1,t.allowEmpty=e.allowEmpty||!1,t.indent=null!=(r=e.indent)?r:" ",t.newline=null!=(o=e.newline)?o:"\n",t.offset=null!=(s=e.offset)?s:0,t.dontPrettyTextNodes=null!=(a=null!=(l=e.dontPrettyTextNodes)?l:e.dontprettytextnodes)?a:0,t.spaceBeforeSlash=null!=(c=null!=(u=e.spaceBeforeSlash)?u:e.spacebeforeslash)?c:"",!0===t.spaceBeforeSlash&&(t.spaceBeforeSlash=" "),t.suppressPrettyCount=0,t.user={},t.state=n.None,t},e.prototype.indent=function(e,t,r){var n;return!t.pretty||t.suppressPrettyCount?"":t.pretty&&(n=(r||0)+t.offset+1)>0?new Array(n).join(t.indent):""},e.prototype.endline=function(e,t,r){return!t.pretty||t.suppressPrettyCount?"":t.newline},e.prototype.attribute=function(e,t,r){var n;return this.openAttribute(e,t,r),n=" "+e.name+'="'+e.value+'"',this.closeAttribute(e,t,r),n},e.prototype.cdata=function(e,t,r){var i;return this.openNode(e,t,r),t.state=n.OpenTag,i=this.indent(e,t,r)+"<![CDATA[",t.state=n.InsideTag,i+=e.value,t.state=n.CloseTag,i+="]]>"+this.endline(e,t,r),t.state=n.None,this.closeNode(e,t,r),i},e.prototype.comment=function(e,t,r){var i;return this.openNode(e,t,r),t.state=n.OpenTag,i=this.indent(e,t,r)+"\x3c!-- ",t.state=n.InsideTag,i+=e.value,t.state=n.CloseTag,i+=" --\x3e"+this.endline(e,t,r),t.state=n.None,this.closeNode(e,t,r),i},e.prototype.declaration=function(e,t,r){var i;return this.openNode(e,t,r),t.state=n.OpenTag,i=this.indent(e,t,r)+"<?xml",t.state=n.InsideTag,i+=' version="'+e.version+'"',null!=e.encoding&&(i+=' encoding="'+e.encoding+'"'),null!=e.standalone&&(i+=' standalone="'+e.standalone+'"'),t.state=n.CloseTag,i+=t.spaceBeforeSlash+"?>",i+=this.endline(e,t,r),t.state=n.None,this.closeNode(e,t,r),i},e.prototype.docType=function(e,t,r){var i,o,s,a,l;if(r||(r=0),this.openNode(e,t,r),t.state=n.OpenTag,a=this.indent(e,t,r),a+="<!DOCTYPE "+e.root().name,e.pubID&&e.sysID?a+=' PUBLIC "'+e.pubID+'" "'+e.sysID+'"':e.sysID&&(a+=' SYSTEM "'+e.sysID+'"'),e.children.length>0){for(a+=" [",a+=this.endline(e,t,r),t.state=n.InsideTag,o=0,s=(l=e.children).length;o<s;o++)i=l[o],a+=this.writeChildNode(i,t,r+1);t.state=n.CloseTag,a+="]"}return t.state=n.CloseTag,a+=t.spaceBeforeSlash+">",a+=this.endline(e,t,r),t.state=n.None,this.closeNode(e,t,r),a},e.prototype.element=function(e,t,i){var s,a,l,c,u,p,d,m,f,h,y,g,b,v;for(f in i||(i=0),h=!1,y="",this.openNode(e,t,i),t.state=n.OpenTag,y+=this.indent(e,t,i)+"<"+e.name,g=e.attribs)o.call(g,f)&&(s=g[f],y+=this.attribute(s,t,i));if(c=0===(l=e.children.length)?null:e.children[0],0===l||e.children.every(function(e){return(e.type===r.Text||e.type===r.Raw)&&""===e.value}))t.allowEmpty?(y+=">",t.state=n.CloseTag,y+="</"+e.name+">"+this.endline(e,t,i)):(t.state=n.CloseTag,y+=t.spaceBeforeSlash+"/>"+this.endline(e,t,i));else if(!t.pretty||1!==l||c.type!==r.Text&&c.type!==r.Raw||null==c.value){if(t.dontPrettyTextNodes)for(u=0,d=(b=e.children).length;u<d;u++)if(((a=b[u]).type===r.Text||a.type===r.Raw)&&null!=a.value){t.suppressPrettyCount++,h=!0;break}for(y+=">"+this.endline(e,t,i),t.state=n.InsideTag,p=0,m=(v=e.children).length;p<m;p++)a=v[p],y+=this.writeChildNode(a,t,i+1);t.state=n.CloseTag,y+=this.indent(e,t,i)+"</"+e.name+">",h&&t.suppressPrettyCount--,y+=this.endline(e,t,i),t.state=n.None}else y+=">",t.state=n.InsideTag,t.suppressPrettyCount++,h=!0,y+=this.writeChildNode(c,t,i+1),t.suppressPrettyCount--,h=!1,t.state=n.CloseTag,y+="</"+e.name+">"+this.endline(e,t,i);return this.closeNode(e,t,i),y},e.prototype.writeChildNode=function(e,t,n){switch(e.type){case r.CData:return this.cdata(e,t,n);case r.Comment:return this.comment(e,t,n);case r.Element:return this.element(e,t,n);case r.Raw:return this.raw(e,t,n);case r.Text:return this.text(e,t,n);case r.ProcessingInstruction:return this.processingInstruction(e,t,n);case r.Dummy:return"";case r.Declaration:return this.declaration(e,t,n);case r.DocType:return this.docType(e,t,n);case r.AttributeDeclaration:return this.dtdAttList(e,t,n);case r.ElementDeclaration:return this.dtdElement(e,t,n);case r.EntityDeclaration:return this.dtdEntity(e,t,n);case r.NotationDeclaration:return this.dtdNotation(e,t,n);default:throw new Error("Unknown XML node type: "+e.constructor.name)}},e.prototype.processingInstruction=function(e,t,r){var i;return this.openNode(e,t,r),t.state=n.OpenTag,i=this.indent(e,t,r)+"<?",t.state=n.InsideTag,i+=e.target,e.value&&(i+=" "+e.value),t.state=n.CloseTag,i+=t.spaceBeforeSlash+"?>",i+=this.endline(e,t,r),t.state=n.None,this.closeNode(e,t,r),i},e.prototype.raw=function(e,t,r){var i;return this.openNode(e,t,r),t.state=n.OpenTag,i=this.indent(e,t,r),t.state=n.InsideTag,i+=e.value,t.state=n.CloseTag,i+=this.endline(e,t,r),t.state=n.None,this.closeNode(e,t,r),i},e.prototype.text=function(e,t,r){var i;return this.openNode(e,t,r),t.state=n.OpenTag,i=this.indent(e,t,r),t.state=n.InsideTag,i+=e.value,t.state=n.CloseTag,i+=this.endline(e,t,r),t.state=n.None,this.closeNode(e,t,r),i},e.prototype.dtdAttList=function(e,t,r){var i;return this.openNode(e,t,r),t.state=n.OpenTag,i=this.indent(e,t,r)+"<!ATTLIST",t.state=n.InsideTag,i+=" "+e.elementName+" "+e.attributeName+" "+e.attributeType,"#DEFAULT"!==e.defaultValueType&&(i+=" "+e.defaultValueType),e.defaultValue&&(i+=' "'+e.defaultValue+'"'),t.state=n.CloseTag,i+=t.spaceBeforeSlash+">"+this.endline(e,t,r),t.state=n.None,this.closeNode(e,t,r),i},e.prototype.dtdElement=function(e,t,r){var i;return this.openNode(e,t,r),t.state=n.OpenTag,i=this.indent(e,t,r)+"<!ELEMENT",t.state=n.InsideTag,i+=" "+e.name+" "+e.value,t.state=n.CloseTag,i+=t.spaceBeforeSlash+">"+this.endline(e,t,r),t.state=n.None,this.closeNode(e,t,r),i},e.prototype.dtdEntity=function(e,t,r){var i;return this.openNode(e,t,r),t.state=n.OpenTag,i=this.indent(e,t,r)+"<!ENTITY",t.state=n.InsideTag,e.pe&&(i+=" %"),i+=" "+e.name,e.value?i+=' "'+e.value+'"':(e.pubID&&e.sysID?i+=' PUBLIC "'+e.pubID+'" "'+e.sysID+'"':e.sysID&&(i+=' SYSTEM "'+e.sysID+'"'),e.nData&&(i+=" NDATA "+e.nData)),t.state=n.CloseTag,i+=t.spaceBeforeSlash+">"+this.endline(e,t,r),t.state=n.None,this.closeNode(e,t,r),i},e.prototype.dtdNotation=function(e,t,r){var i;return this.openNode(e,t,r),t.state=n.OpenTag,i=this.indent(e,t,r)+"<!NOTATION",t.state=n.InsideTag,i+=" "+e.name,e.pubID&&e.sysID?i+=' PUBLIC "'+e.pubID+'" "'+e.sysID+'"':e.pubID?i+=' PUBLIC "'+e.pubID+'"':e.sysID&&(i+=' SYSTEM "'+e.sysID+'"'),t.state=n.CloseTag,i+=t.spaceBeforeSlash+">"+this.endline(e,t,r),t.state=n.None,this.closeNode(e,t,r),i},e.prototype.openNode=function(e,t,r){},e.prototype.closeNode=function(e,t,r){},e.prototype.openAttribute=function(e,t,r){},e.prototype.closeAttribute=function(e,t,r){},e}()}).call(this)},{"./NodeType":498,"./Utility":499,"./WriterState":500,"./XMLCData":502,"./XMLComment":504,"./XMLDTDAttList":509,"./XMLDTDElement":510,"./XMLDTDEntity":511,"./XMLDTDNotation":512,"./XMLDeclaration":513,"./XMLDocType":514,"./XMLDummy":517,"./XMLElement":518,"./XMLProcessingInstruction":522,"./XMLRaw":523,"./XMLText":527}],529:[function(e,t,r){(function(){var r,n,i,o,s,a,l,c,u,p;p=e("./Utility"),c=p.assign,u=p.isFunction,i=e("./XMLDOMImplementation"),o=e("./XMLDocument"),s=e("./XMLDocumentCB"),l=e("./XMLStringWriter"),a=e("./XMLStreamWriter"),r=e("./NodeType"),n=e("./WriterState"),t.exports.create=function(e,t,r,n){var i,s;if(null==e)throw new Error("Root element needs a name.");return n=c({},t,r,n),s=(i=new o(n)).element(e),n.headless||(i.declaration(n),null==n.pubID&&null==n.sysID||i.dtd(n)),s},t.exports.begin=function(e,t,r){var n;return u(e)&&(t=(n=[e,t])[0],r=n[1],e={}),t?new s(e,t,r):new o(e)},t.exports.stringWriter=function(e){return new l(e)},t.exports.streamWriter=function(e,t){return new a(e,t)},t.exports.implementation=new i,t.exports.nodeType=r,t.exports.writerState=n}).call(this)},{"./NodeType":498,"./Utility":499,"./WriterState":500,"./XMLDOMImplementation":507,"./XMLDocument":515,"./XMLDocumentCB":516,"./XMLStreamWriter":524,"./XMLStringWriter":525}],530:[function(e,t,r){t.exports=i;var n=Object.prototype.hasOwnProperty;function i(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var i in r)n.call(r,i)&&(e[i]=r[i])}return e}},{}],531:[function(e,t,r){e("core-js/modules/es.array.fill.js"),e("core-js/modules/es.array.concat.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.regexp.to-string.js"),e("core-js/modules/es.array.join.js"),e("core-js/modules/es.array.slice.js");var n=e("buffer").Buffer,i={sha1:e("./sha"),sha256:e("./sha256"),md5:e("./md5")},o=64,s=n.alloc(o);function a(e,t,r){n.isBuffer(t)||(t=n.from(t)),n.isBuffer(r)||(r=n.from(r)),t.length>o?t=e(t):t.length<o&&(t=n.concat([t,s],o));for(var i=n.alloc(o),a=n.alloc(o),l=0;l<o;l++)i[l]=54^t[l],a[l]=92^t[l];var c=e(n.concat([i,r]));return e(n.concat([a,c]))}function l(e,t){var r=i[e=e||"sha1"],o=[];return r||c("algorithm:",e,"is not yet supported"),{update:function(e){return n.isBuffer(e)||(e=n.from(e)),o.push(e),e.length,this},digest:function(e){var i=n.concat(o),s=t?a(r,t,i):r(i);return o=null,e?s.toString(e):s}}}function c(){var e=[].slice.call(arguments).join(" ");throw new Error([e,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join("\n"))}s.fill(0),r.createHash=function(e){return l(e)},r.createHmac=function(e,t){return l(e,t)},r.createCredentials=function(){c("sorry,createCredentials is not implemented yet")},r.createCipher=function(){c("sorry,createCipher is not implemented yet")},r.createCipheriv=function(){c("sorry,createCipheriv is not implemented yet")},r.createDecipher=function(){c("sorry,createDecipher is not implemented yet")},r.createDecipheriv=function(){c("sorry,createDecipheriv is not implemented yet")},r.createSign=function(){c("sorry,createSign is not implemented yet")},r.createVerify=function(){c("sorry,createVerify is not implemented yet")},r.createDiffieHellman=function(){c("sorry,createDiffieHellman is not implemented yet")},r.pbkdf2=function(){c("sorry,pbkdf2 is not implemented yet")}},{"./md5":533,"./sha":534,"./sha256":535,buffer:103,"core-js/modules/es.array.concat.js":310,"core-js/modules/es.array.fill.js":311,"core-js/modules/es.array.join.js":317,"core-js/modules/es.array.slice.js":319,"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.regexp.to-string.js":339}],532:[function(e,t,r){e("core-js/modules/es.array.fill.js"),e("core-js/modules/es.array.concat.js");var n=e("buffer").Buffer,i=4,o=n.alloc(i);o.fill(0);var s=8;function a(e,t){if(e.length%i!==0){var r=e.length+(i-e.length%i);e=n.concat([e,o],r)}for(var s=[],a=t?e.readInt32BE:e.readInt32LE,l=0;l<e.length;l+=i)s.push(a.call(e,l));return s}function l(e,t,r){for(var i=n.alloc(t),o=r?i.writeInt32BE:i.writeInt32LE,s=0;s<e.length;s++)o.call(i,e[s],4*s,!0);return i}function c(e,t,r,i){return n.isBuffer(e)||(e=n.from(e)),l(t(a(e,i),e.length*s),r,i)}t.exports={hash:c}},{buffer:103,"core-js/modules/es.array.concat.js":310,"core-js/modules/es.array.fill.js":311}],533:[function(e,t,r){var n=e("./helpers");function i(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;for(var r=1732584193,n=-271733879,i=-1732584194,o=271733878,p=0;p<e.length;p+=16){var d=r,m=n,f=i,h=o;r=s(r,n,i,o,e[p+0],7,-680876936),o=s(o,r,n,i,e[p+1],12,-389564586),i=s(i,o,r,n,e[p+2],17,606105819),n=s(n,i,o,r,e[p+3],22,-1044525330),r=s(r,n,i,o,e[p+4],7,-176418897),o=s(o,r,n,i,e[p+5],12,1200080426),i=s(i,o,r,n,e[p+6],17,-1473231341),n=s(n,i,o,r,e[p+7],22,-45705983),r=s(r,n,i,o,e[p+8],7,1770035416),o=s(o,r,n,i,e[p+9],12,-1958414417),i=s(i,o,r,n,e[p+10],17,-42063),n=s(n,i,o,r,e[p+11],22,-1990404162),r=s(r,n,i,o,e[p+12],7,1804603682),o=s(o,r,n,i,e[p+13],12,-40341101),i=s(i,o,r,n,e[p+14],17,-1502002290),r=a(r,n=s(n,i,o,r,e[p+15],22,1236535329),i,o,e[p+1],5,-165796510),o=a(o,r,n,i,e[p+6],9,-1069501632),i=a(i,o,r,n,e[p+11],14,643717713),n=a(n,i,o,r,e[p+0],20,-373897302),r=a(r,n,i,o,e[p+5],5,-701558691),o=a(o,r,n,i,e[p+10],9,38016083),i=a(i,o,r,n,e[p+15],14,-660478335),n=a(n,i,o,r,e[p+4],20,-405537848),r=a(r,n,i,o,e[p+9],5,568446438),o=a(o,r,n,i,e[p+14],9,-1019803690),i=a(i,o,r,n,e[p+3],14,-187363961),n=a(n,i,o,r,e[p+8],20,1163531501),r=a(r,n,i,o,e[p+13],5,-1444681467),o=a(o,r,n,i,e[p+2],9,-51403784),i=a(i,o,r,n,e[p+7],14,1735328473),r=l(r,n=a(n,i,o,r,e[p+12],20,-1926607734),i,o,e[p+5],4,-378558),o=l(o,r,n,i,e[p+8],11,-2022574463),i=l(i,o,r,n,e[p+11],16,1839030562),n=l(n,i,o,r,e[p+14],23,-35309556),r=l(r,n,i,o,e[p+1],4,-1530992060),o=l(o,r,n,i,e[p+4],11,1272893353),i=l(i,o,r,n,e[p+7],16,-155497632),n=l(n,i,o,r,e[p+10],23,-1094730640),r=l(r,n,i,o,e[p+13],4,681279174),o=l(o,r,n,i,e[p+0],11,-358537222),i=l(i,o,r,n,e[p+3],16,-722521979),n=l(n,i,o,r,e[p+6],23,76029189),r=l(r,n,i,o,e[p+9],4,-640364487),o=l(o,r,n,i,e[p+12],11,-421815835),i=l(i,o,r,n,e[p+15],16,530742520),r=c(r,n=l(n,i,o,r,e[p+2],23,-995338651),i,o,e[p+0],6,-198630844),o=c(o,r,n,i,e[p+7],10,1126891415),i=c(i,o,r,n,e[p+14],15,-1416354905),n=c(n,i,o,r,e[p+5],21,-57434055),r=c(r,n,i,o,e[p+12],6,1700485571),o=c(o,r,n,i,e[p+3],10,-1894986606),i=c(i,o,r,n,e[p+10],15,-1051523),n=c(n,i,o,r,e[p+1],21,-2054922799),r=c(r,n,i,o,e[p+8],6,1873313359),o=c(o,r,n,i,e[p+15],10,-30611744),i=c(i,o,r,n,e[p+6],15,-1560198380),n=c(n,i,o,r,e[p+13],21,1309151649),r=c(r,n,i,o,e[p+4],6,-145523070),o=c(o,r,n,i,e[p+11],10,-1120210379),i=c(i,o,r,n,e[p+2],15,718787259),n=c(n,i,o,r,e[p+9],21,-343485551),r=u(r,d),n=u(n,m),i=u(i,f),o=u(o,h)}return Array(r,n,i,o)}function o(e,t,r,n,i,o){return u(p(u(u(t,e),u(n,o)),i),r)}function s(e,t,r,n,i,s,a){return o(t&r|~t&n,e,t,i,s,a)}function a(e,t,r,n,i,s,a){return o(t&n|r&~n,e,t,i,s,a)}function l(e,t,r,n,i,s,a){return o(t^r^n,e,t,i,s,a)}function c(e,t,r,n,i,s,a){return o(r^(t|~n),e,t,i,s,a)}function u(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function p(e,t){return e<<t|e>>>32-t}t.exports=function(e){return n.hash(e,i,16)}},{"./helpers":532}],534:[function(e,t,r){var n=e("./helpers");function i(e,t){e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var r=Array(80),n=1732584193,i=-271733879,c=-1732584194,u=271733878,p=-1009589776,d=0;d<e.length;d+=16){for(var m=n,f=i,h=c,y=u,g=p,b=0;b<80;b++){r[b]=b<16?e[d+b]:l(r[b-3]^r[b-8]^r[b-14]^r[b-16],1);var v=a(a(l(n,5),o(b,i,c,u)),a(a(p,r[b]),s(b)));p=u,u=c,c=l(i,30),i=n,n=v}n=a(n,m),i=a(i,f),c=a(c,h),u=a(u,y),p=a(p,g)}return Array(n,i,c,u,p)}function o(e,t,r,n){return e<20?t&r|~t&n:e<40?t^r^n:e<60?t&r|t&n|r&n:t^r^n}function s(e){return e<20?1518500249:e<40?1859775393:e<60?-1894007588:-899497514}function a(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function l(e,t){return e<<t|e>>>32-t}t.exports=function(e){return n.hash(e,i,20,!0)}},{"./helpers":532}],535:[function(e,t,r){var n=e("./helpers"),i=function(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r},o=function(e,t){return e>>>t|e<<32-t},s=function(e,t){return e>>>t},a=function(e,t,r){return e&t^~e&r},l=function(e,t,r){return e&t^e&r^t&r},c=function(e){return o(e,2)^o(e,13)^o(e,22)},u=function(e){return o(e,6)^o(e,11)^o(e,25)},p=function(e){return o(e,7)^o(e,18)^s(e,3)},d=function(e){return o(e,17)^o(e,19)^s(e,10)},m=function(e,t){var r,n,o,s,m,f,h,y,g,b,v=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),x=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),w=new Array(64);e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var S=0;S<e.length;S+=16){r=x[0],n=x[1],o=x[2],s=x[3],m=x[4],f=x[5],h=x[6],y=x[7];for(var N=0;N<64;N++)w[N]=N<16?e[N+S]:i(i(i(d(w[N-2]),w[N-7]),p(w[N-15])),w[N-16]),g=i(i(i(i(y,u(m)),a(m,f,h)),v[N]),w[N]),b=i(c(r),l(r,n,o)),y=h,h=f,f=m,m=i(s,g),s=o,o=n,n=r,r=i(g,b);x[0]=i(r,x[0]),x[1]=i(n,x[1]),x[2]=i(o,x[2]),x[3]=i(s,x[3]),x[4]=i(m,x[4]),x[5]=i(f,x[5]),x[6]=i(h,x[6]),x[7]=i(y,x[7])}return x};t.exports=function(e){return n.hash(e,m,32,!0)}},{"./helpers":532}],536:[function(e,t,r){t.exports=function(){return function(){}}},{}],537:[function(e,t,r){(function(r){(function(){var n=e("@babel/runtime/helpers/interopRequireDefault")(e("@babel/runtime/helpers/typeof")),i=e("stream").Stream,o=e("../lib/common/utils/isArray").isArray;function s(e){return e instanceof i}t.exports.string=function(e){return"string"==typeof e},t.exports.array=o,t.exports.buffer=r.isBuffer,t.exports.writableStream=function(e){return s(e)&&"function"==typeof e._write&&"object"===(0,n.default)(e._writableState)}}).call(this)}).call(this,{isBuffer:e("../node_modules/is-buffer/index.js")})},{"../lib/common/utils/isArray":67,"../node_modules/is-buffer/index.js":409,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/helpers/typeof":91,stream:468}],538:[function(e,t,r){var n=e("immediate"),i=t.exports={};function o(){}i.nextTick=n,i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=o,i.addListener=o,i.once=o,i.off=o,i.removeListener=o,i.removeAllListeners=o,i.emit=o,i.prependListener=o,i.prependOnceListener=o,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},{immediate:401}],539:[function(e,t,r){(function(t){(function(){e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.search.js");var n=e("./lib/request"),i=e("./lib/response"),o=e("xtend"),s=e("builtin-status-codes"),a=e("url"),l=r;l.request=function(e,r){e="string"==typeof e?a.parse(e):o(e);var i=-1===t.location.protocol.search(/^https?:$/)?"http:":"",s=e.protocol||i,l=e.hostname||e.host,c=e.port,u=e.path||"/";l&&-1!==l.indexOf(":")&&(l="["+l+"]"),e.url=(l?s+"//"+l:"")+(c?":"+c:"")+u,e.method=(e.method||"GET").toUpperCase(),e.headers=e.headers||{};var p=new n(e);return r&&p.on("response",r),p},l.get=function(e,t){var r=l.request(e,t);return r.end(),r},l.ClientRequest=n,l.IncomingMessage=i.IncomingMessage,l.Agent=function(){},l.Agent.defaultMaxSockets=4,l.globalAgent=new l.Agent,l.STATUS_CODES=s,l.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this)}).call(this,void 0!==dR?dR:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./lib/request":541,"./lib/response":542,"builtin-status-codes":104,"core-js/modules/es.regexp.exec.js":338,"core-js/modules/es.string.search.js":346,url:543,xtend:530}],540:[function(e,t,r){(function(t){(function(){e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.promise.js"),e("core-js/modules/es.array-buffer.constructor.js"),e("core-js/modules/es.array-buffer.slice.js"),e("core-js/modules/es.array.slice.js"),r.fetch=l(t.fetch)&&l(t.ReadableStream),r.writableStream=l(t.WritableStream),r.abortController=l(t.AbortController),r.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),r.blobConstructor=!0}catch(c){}var n;function i(){if(void 0!==n)return n;if(t.XMLHttpRequest){n=new t.XMLHttpRequest;try{n.open("GET",t.XDomainRequest?"/":"https://example.com")}catch(c){n=null}}else n=null;return n}function o(e){var t=i();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(c){}return!1}var s=void 0!==t.ArrayBuffer,a=s&&l(t.ArrayBuffer.prototype.slice);function l(e){return"function"==typeof e}r.arraybuffer=r.fetch||s&&o("arraybuffer"),r.msstream=!r.fetch&&a&&o("ms-stream"),r.mozchunkedarraybuffer=!r.fetch&&s&&o("moz-chunked-arraybuffer"),r.overrideMimeType=r.fetch||!!i()&&l(i().overrideMimeType),r.vbArray=l(t.VBArray),n=null}).call(this)}).call(this,void 0!==dR?dR:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"core-js/modules/es.array-buffer.constructor.js":308,"core-js/modules/es.array-buffer.slice.js":309,"core-js/modules/es.array.slice.js":319,"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.promise.js":333}],541:[function(e,t,r){(function(r,n,i){(function(){e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.regexp.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.object.keys.js"),e("core-js/modules/es.array.concat.js"),e("core-js/modules/es.array.map.js"),e("core-js/modules/es.function.name.js"),e("core-js/modules/es.promise.js");var o=e("./capability"),s=e("inherits"),a=e("./response"),l=e("readable-stream"),c=e("to-arraybuffer"),u=a.IncomingMessage,p=a.readyStates;function d(e,t){return o.fetch&&t?"fetch":o.mozchunkedarraybuffer?"moz-chunked-arraybuffer":o.msstream?"ms-stream":o.arraybuffer&&e?"arraybuffer":o.vbArray&&e?"text:vbarray":"text"}var m=t.exports=function(e){var t,r=this;l.Writable.call(r),r._opts=e,r._body=[],r._headers={},e.auth&&r.setHeader("Authorization","Basic "+new i(e.auth).toString("base64")),Object.keys(e.headers).forEach(function(t){r.setHeader(t,e.headers[t])});var n=!0;if("disable-fetch"===e.mode||"requestTimeout"in e&&!o.abortController)n=!1,t=!0;else if("prefer-streaming"===e.mode)t=!1;else if("allow-wrong-content-type"===e.mode)t=!o.overrideMimeType;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");t=!0}r._mode=d(t,n),r._fetchTimer=null,r.on("finish",function(){r._onFinish()})};function f(e){try{var t=e.status;return null!==t&&0!==t}catch(r){return!1}}s(m,l.Writable),m.prototype.setHeader=function(e,t){var r=this,n=e.toLowerCase();-1===h.indexOf(n)&&(r._headers[n]={name:e,value:t})},m.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},m.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},m.prototype._onFinish=function(){var e=this;if(!e._destroyed){var t=e._opts,s=e._headers,a=null;"GET"!==t.method&&"HEAD"!==t.method&&(a=o.arraybuffer?c(i.concat(e._body)):o.blobConstructor?new n.Blob(e._body.map(function(e){return c(e)}),{type:(s["content-type"]||{}).value||""}):i.concat(e._body).toString());var l=[];if(Object.keys(s).forEach(function(e){var t=s[e].name,r=s[e].value;Array.isArray(r)?r.forEach(function(e){l.push([t,e])}):l.push([t,r])}),"fetch"===e._mode){var u=null;if(o.abortController){var d=new AbortController;u=d.signal,e._fetchAbortController=d,"requestTimeout"in t&&0!==t.requestTimeout&&(e._fetchTimer=n.setTimeout(function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()},t.requestTimeout))}n.fetch(e._opts.url,{method:e._opts.method,headers:l,body:a||void 0,mode:"cors",credentials:t.withCredentials?"include":"same-origin",signal:u}).then(function(t){e._fetchResponse=t,e._connect()},function(t){n.clearTimeout(e._fetchTimer),e._destroyed||e.emit("error",t)})}else{var m=e._xhr=new n.XMLHttpRequest;try{m.open(e._opts.method,e._opts.url,!0)}catch(f){return void r.nextTick(function(){e.emit("error",f)})}"responseType"in m&&(m.responseType=e._mode.split(":")[0]),"withCredentials"in m&&(m.withCredentials=!!t.withCredentials),"text"===e._mode&&"overrideMimeType"in m&&m.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in t&&(m.timeout=t.requestTimeout,m.ontimeout=function(){e.emit("requestTimeout")}),l.forEach(function(e){m.setRequestHeader(e[0],e[1])}),e._response=null,m.onreadystatechange=function(){switch(m.readyState){case p.LOADING:case p.DONE:e._onXHRProgress()}},"moz-chunked-arraybuffer"===e._mode&&(m.onprogress=function(){e._onXHRProgress()}),m.onerror=function(){e._destroyed||e.emit("error",new Error("XHR error"))};try{m.send(a)}catch(f){return void r.nextTick(function(){e.emit("error",f)})}}}},m.prototype._onXHRProgress=function(){var e=this;f(e._xhr)&&!e._destroyed&&(e._response||e._connect(),e._response._onXHRProgress())},m.prototype._connect=function(){var e=this;e._destroyed||(e._response=new u(e._xhr,e._fetchResponse,e._mode,e._fetchTimer),e._response.on("error",function(t){e.emit("error",t)}),e.emit("response",e._response))},m.prototype._write=function(e,t,r){this._body.push(e),r()},m.prototype.abort=m.prototype.destroy=function(){var e=this;e._destroyed=!0,n.clearTimeout(e._fetchTimer),e._response&&(e._response._destroyed=!0),e._xhr?e._xhr.abort():e._fetchAbortController&&e._fetchAbortController.abort()},m.prototype.end=function(e,t,r){var n=this;"function"==typeof e&&(r=e,e=void 0),l.Writable.prototype.end.call(n,e,t,r)},m.prototype.flushHeaders=function(){},m.prototype.setTimeout=function(){},m.prototype.setNoDelay=function(){},m.prototype.setSocketKeepAlive=function(){};var h=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}).call(this)}).call(this,e("_process"),void 0!==dR?dR:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer)},{"./capability":540,"./response":542,_process:538,buffer:103,"core-js/modules/es.array.concat.js":310,"core-js/modules/es.array.map.js":318,"core-js/modules/es.function.name.js":322,"core-js/modules/es.object.keys.js":328,"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.promise.js":333,"core-js/modules/es.regexp.to-string.js":339,"core-js/modules/web.dom-collections.for-each.js":380,inherits:407,"readable-stream":463,"to-arraybuffer":485}],542:[function(e,t,r){(function(t,n,i){(function(){e("core-js/modules/es.object.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.promise.js"),e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.split.js"),e("core-js/modules/es.string.match.js"),e("core-js/modules/es.array.iterator.js"),e("core-js/modules/es.array-buffer.slice.js"),e("core-js/modules/es.typed-array.uint8-array.js"),e("core-js/modules/es.typed-array.copy-within.js"),e("core-js/modules/es.typed-array.every.js"),e("core-js/modules/es.typed-array.fill.js"),e("core-js/modules/es.typed-array.filter.js"),e("core-js/modules/es.typed-array.find.js"),e("core-js/modules/es.typed-array.find-index.js"),e("core-js/modules/es.typed-array.for-each.js"),e("core-js/modules/es.typed-array.includes.js"),e("core-js/modules/es.typed-array.index-of.js"),e("core-js/modules/es.typed-array.iterator.js"),e("core-js/modules/es.typed-array.join.js"),e("core-js/modules/es.typed-array.last-index-of.js"),e("core-js/modules/es.typed-array.map.js"),e("core-js/modules/es.typed-array.reduce.js"),e("core-js/modules/es.typed-array.reduce-right.js"),e("core-js/modules/es.typed-array.reverse.js"),e("core-js/modules/es.typed-array.set.js"),e("core-js/modules/es.typed-array.slice.js"),e("core-js/modules/es.typed-array.some.js"),e("core-js/modules/es.typed-array.sort.js"),e("core-js/modules/es.typed-array.subarray.js"),e("core-js/modules/es.typed-array.to-locale-string.js"),e("core-js/modules/es.typed-array.to-string.js"),e("core-js/modules/es.array.slice.js");var o=e("./capability"),s=e("inherits"),a=e("readable-stream"),l=r.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},c=r.IncomingMessage=function(e,r,s,l){var c=this;if(a.Readable.call(c),c._mode=s,c.headers={},c.rawHeaders=[],c.trailers={},c.rawTrailers=[],c.on("end",function(){t.nextTick(function(){c.emit("close")})}),"fetch"===s){var u=function e(){d.read().then(function(t){if(!c._destroyed){if(t.done)return n.clearTimeout(l),void c.push(null);c.push(new i(t.value)),e()}}).catch(function(e){n.clearTimeout(l),c._destroyed||c.emit("error",e)})};if(c._fetchResponse=r,c.url=r.url,c.statusCode=r.status,c.statusMessage=r.statusText,r.headers.forEach(function(e,t){c.headers[t.toLowerCase()]=e,c.rawHeaders.push(t,e)}),o.writableStream){var p=new WritableStream({write:function(e){return new Promise(function(t,r){c._destroyed?r():c.push(new i(e))?t():c._resumeFetch=t})},close:function(){n.clearTimeout(l),c._destroyed||c.push(null)},abort:function(e){c._destroyed||c.emit("error",e)}});try{return void r.body.pipeTo(p).catch(function(e){n.clearTimeout(l),c._destroyed||c.emit("error",e)})}catch(h){}}var d=r.body.getReader();u()}else if(c._xhr=e,c._pos=0,c.url=e.responseURL,c.statusCode=e.status,c.statusMessage=e.statusText,e.getAllResponseHeaders().split(/\r?\n/).forEach(function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var r=t[1].toLowerCase();"set-cookie"===r?(void 0===c.headers[r]&&(c.headers[r]=[]),c.headers[r].push(t[2])):void 0!==c.headers[r]?c.headers[r]+=", "+t[2]:c.headers[r]=t[2],c.rawHeaders.push(t[1],t[2])}}),c._charset="x-user-defined",!o.overrideMimeType){var m=c.rawHeaders["mime-type"];if(m){var f=m.match(/;\s*charset=([^;])(;|$)/);f&&(c._charset=f[1].toLowerCase())}c._charset||(c._charset="utf-8")}};s(c,a.Readable),c.prototype._read=function(){var e=this,t=e._resumeFetch;t&&(e._resumeFetch=null,t())},c.prototype._onXHRProgress=function(){var e=this,t=e._xhr,r=null;switch(e._mode){case"text:vbarray":if(t.readyState!==l.DONE)break;try{r=new n.VBArray(t.responseBody).toArray()}catch(u){}if(null!==r){e.push(new i(r));break}case"text":try{r=t.responseText}catch(u){e._mode="text:vbarray";break}if(r.length>e._pos){var o=r.substr(e._pos);if("x-user-defined"===e._charset){for(var s=new i(o.length),a=0;a<o.length;a++)s[a]=255&o.charCodeAt(a);e.push(s)}else e.push(o,e._charset);e._pos=r.length}break;case"arraybuffer":if(t.readyState!==l.DONE||!t.response)break;r=t.response,e.push(new i(new Uint8Array(r)));break;case"moz-chunked-arraybuffer":if(r=t.response,t.readyState!==l.LOADING||!r)break;e.push(new i(new Uint8Array(r)));break;case"ms-stream":if(r=t.response,t.readyState!==l.LOADING)break;var c=new n.MSStreamReader;c.onprogress=function(){c.result.byteLength>e._pos&&(e.push(new i(new Uint8Array(c.result.slice(e._pos)))),e._pos=c.result.byteLength)},c.onload=function(){e.push(null)},c.readAsArrayBuffer(r)}e._xhr.readyState===l.DONE&&"ms-stream"!==e._mode&&e.push(null)}}).call(this)}).call(this,e("_process"),void 0!==dR?dR:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer)},{"./capability":540,_process:538,buffer:103,"core-js/modules/es.array-buffer.slice.js":309,"core-js/modules/es.array.iterator.js":316,"core-js/modules/es.array.slice.js":319,"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.promise.js":333,"core-js/modules/es.regexp.exec.js":338,"core-js/modules/es.string.match.js":344,"core-js/modules/es.string.split.js":347,"core-js/modules/es.typed-array.copy-within.js":356,"core-js/modules/es.typed-array.every.js":357,"core-js/modules/es.typed-array.fill.js":358,"core-js/modules/es.typed-array.filter.js":359,"core-js/modules/es.typed-array.find-index.js":360,"core-js/modules/es.typed-array.find.js":361,"core-js/modules/es.typed-array.for-each.js":362,"core-js/modules/es.typed-array.includes.js":363,"core-js/modules/es.typed-array.index-of.js":364,"core-js/modules/es.typed-array.iterator.js":365,"core-js/modules/es.typed-array.join.js":366,"core-js/modules/es.typed-array.last-index-of.js":367,"core-js/modules/es.typed-array.map.js":368,"core-js/modules/es.typed-array.reduce-right.js":369,"core-js/modules/es.typed-array.reduce.js":370,"core-js/modules/es.typed-array.reverse.js":371,"core-js/modules/es.typed-array.set.js":372,"core-js/modules/es.typed-array.slice.js":373,"core-js/modules/es.typed-array.some.js":374,"core-js/modules/es.typed-array.sort.js":375,"core-js/modules/es.typed-array.subarray.js":376,"core-js/modules/es.typed-array.to-locale-string.js":377,"core-js/modules/es.typed-array.to-string.js":378,"core-js/modules/es.typed-array.uint8-array.js":379,"core-js/modules/web.dom-collections.for-each.js":380,inherits:407,"readable-stream":463}],543:[function(e,t,r){var n=e("@babel/runtime/helpers/interopRequireDefault")(e("@babel/runtime/helpers/typeof"));e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.search.js"),e("core-js/modules/es.array.concat.js"),e("core-js/modules/es.string.split.js"),e("core-js/modules/es.string.replace.js"),e("core-js/modules/es.array.join.js"),e("core-js/modules/es.string.trim.js"),e("core-js/modules/es.string.match.js"),e("core-js/modules/es.array.slice.js"),e("core-js/modules/es.object.keys.js"),e("core-js/modules/es.array.splice.js");var i=e("punycode"),o=e("./util");function s(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}r.parse=w,r.resolve=N,r.resolveObject=j,r.format=S,r.Url=s;var a=/^([a-z0-9.+-]+:)/i,l=/:[0-9]*$/,c=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,u=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),p=["'"].concat(u),d=["%","/","?",";","#"].concat(p),m=["/","?","#"],f=255,h=/^[+a-z0-9A-Z_-]{0,63}$/,y=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,g={javascript:!0,"javascript:":!0},b={javascript:!0,"javascript:":!0},v={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},x=e("querystring");function w(e,t,r){if(e&&o.isObject(e)&&e instanceof s)return e;var n=new s;return n.parse(e,t,r),n}function S(e){return o.isString(e)&&(e=w(e)),e instanceof s?e.format():s.prototype.format.call(e)}function N(e,t){return w(e,!1,!0).resolve(t)}function j(e,t){return e?w(e,!1,!0).resolveObject(t):t}s.prototype.parse=function(e,t,r){if(!o.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+(0,n.default)(e));var s=e.indexOf("?"),l=-1!==s&&s<e.indexOf("#")?"?":"#",u=e.split(l),w=/\\/g;u[0]=u[0].replace(w,"/");var S=e=u.join(l);if(S=S.trim(),!r&&1===e.split("#").length){var N=c.exec(S);if(N)return this.path=S,this.href=S,this.pathname=N[1],N[2]?(this.search=N[2],this.query=t?x.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var j=a.exec(S);if(j){var E=(j=j[0]).toLowerCase();this.protocol=E,S=S.substr(j.length)}if(r||j||S.match(/^\/\/[^@\/]+@[^@\/]+/)){var C="//"===S.substr(0,2);!C||j&&b[j]||(S=S.substr(2),this.slashes=!0)}if(!b[j]&&(C||j&&!v[j])){for(var k,T,R=-1,O=0;O<m.length;O++)-1!==(P=S.indexOf(m[O]))&&(-1===R||P<R)&&(R=P);for(-1!==(T=-1===R?S.lastIndexOf("@"):S.lastIndexOf("@",R))&&(k=S.slice(0,T),S=S.slice(T+1),this.auth=decodeURIComponent(k)),R=-1,O=0;O<d.length;O++){var P;-1!==(P=S.indexOf(d[O]))&&(-1===R||P<R)&&(R=P)}-1===R&&(R=S.length),this.host=S.slice(0,R),S=S.slice(R),this.parseHost(),this.hostname=this.hostname||"";var _="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!_)for(var A=this.hostname.split("."),I=(O=0,A.length);O<I;O++){var M=A[O];if(M&&!M.match(h)){for(var D="",z=0,B=M.length;z<B;z++)M.charCodeAt(z)>127?D+="x":D+=M[z];if(!D.match(h)){var L=A.slice(0,O),q=A.slice(O+1),U=M.match(y);U&&(L.push(U[1]),q.unshift(U[2])),q.length&&(S="/"+q.join(".")+S),this.hostname=L.join(".");break}}}this.hostname.length>f?this.hostname="":this.hostname=this.hostname.toLowerCase(),_||(this.hostname=i.toASCII(this.hostname));var H=this.port?":"+this.port:"",F=this.hostname||"";this.host=F+H,this.href+=this.host,_&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==S[0]&&(S="/"+S))}if(!g[E])for(O=0,I=p.length;O<I;O++){var $=p[O];if(-1!==S.indexOf($)){var V=encodeURIComponent($);V===$&&(V=escape($)),S=S.split($).join(V)}}var G=S.indexOf("#");-1!==G&&(this.hash=S.substr(G),S=S.slice(0,G));var W=S.indexOf("?");if(-1!==W?(this.search=S.substr(W),this.query=S.substr(W+1),t&&(this.query=x.parse(this.query)),S=S.slice(0,W)):t&&(this.search="",this.query={}),S&&(this.pathname=S),v[E]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){H=this.pathname||"";var K=this.search||"";this.path=H+K}return this.href=this.format(),this},s.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",n=this.hash||"",i=!1,s="";this.host?i=e+this.host:this.hostname&&(i=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&o.isObject(this.query)&&Object.keys(this.query).length&&(s=x.stringify(this.query));var a=this.search||s&&"?"+s||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||v[t])&&!1!==i?(i="//"+(i||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):i||(i=""),n&&"#"!==n.charAt(0)&&(n="#"+n),a&&"?"!==a.charAt(0)&&(a="?"+a),t+i+(r=r.replace(/[?#]/g,function(e){return encodeURIComponent(e)}))+(a=a.replace("#","%23"))+n},s.prototype.resolve=function(e){return this.resolveObject(w(e,!1,!0)).format()},s.prototype.resolveObject=function(e){if(o.isString(e)){var t=new s;t.parse(e,!1,!0),e=t}for(var r=new s,n=Object.keys(this),i=0;i<n.length;i++){var a=n[i];r[a]=this[a]}if(r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var l=Object.keys(e),c=0;c<l.length;c++){var u=l[c];"protocol"!==u&&(r[u]=e[u])}return v[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!v[e.protocol]){for(var p=Object.keys(e),d=0;d<p.length;d++){var m=p[d];r[m]=e[m]}return r.href=r.format(),r}if(r.protocol=e.protocol,e.host||b[e.protocol])r.pathname=e.pathname;else{for(var f=(e.pathname||"").split("/");f.length&&!(e.host=f.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==f[0]&&f.unshift(""),f.length<2&&f.unshift(""),r.pathname=f.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var h=r.pathname||"",y=r.search||"";r.path=h+y}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var g=r.pathname&&"/"===r.pathname.charAt(0),x=e.host||e.pathname&&"/"===e.pathname.charAt(0),w=x||g||r.host&&e.pathname,S=w,N=r.pathname&&r.pathname.split("/")||[],j=(f=e.pathname&&e.pathname.split("/")||[],r.protocol&&!v[r.protocol]);if(j&&(r.hostname="",r.port=null,r.host&&(""===N[0]?N[0]=r.host:N.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===f[0]?f[0]=e.host:f.unshift(e.host)),e.host=null),w=w&&(""===f[0]||""===N[0])),x)r.host=e.host||""===e.host?e.host:r.host,r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,N=f;else if(f.length)N||(N=[]),N.pop(),N=N.concat(f),r.search=e.search,r.query=e.query;else if(!o.isNullOrUndefined(e.search))return j&&(r.hostname=r.host=N.shift(),(R=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=R.shift(),r.host=r.hostname=R.shift())),r.search=e.search,r.query=e.query,o.isNull(r.pathname)&&o.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r;if(!N.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var E=N.slice(-1)[0],C=(r.host||e.host||N.length>1)&&("."===E||".."===E)||""===E,k=0,T=N.length;T>=0;T--)"."===(E=N[T])?N.splice(T,1):".."===E?(N.splice(T,1),k++):k&&(N.splice(T,1),k--);if(!w&&!S)for(;k--;k)N.unshift("..");!w||""===N[0]||N[0]&&"/"===N[0].charAt(0)||N.unshift(""),C&&"/"!==N.join("/").substr(-1)&&N.push("");var R,O=""===N[0]||N[0]&&"/"===N[0].charAt(0);return j&&(r.hostname=r.host=O?"":N.length?N.shift():"",(R=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=R.shift(),r.host=r.hostname=R.shift())),(w=w||r.host&&N.length)&&!O&&N.unshift(""),N.length?r.pathname=N.join("/"):(r.pathname=null,r.path=null),o.isNull(r.pathname)&&o.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},s.prototype.parseHost=function(){var e=this.host,t=l.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},{"./util":544,"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/helpers/typeof":91,"core-js/modules/es.array.concat.js":310,"core-js/modules/es.array.join.js":317,"core-js/modules/es.array.slice.js":319,"core-js/modules/es.array.splice.js":321,"core-js/modules/es.object.keys.js":328,"core-js/modules/es.regexp.exec.js":338,"core-js/modules/es.string.match.js":344,"core-js/modules/es.string.replace.js":345,"core-js/modules/es.string.search.js":346,"core-js/modules/es.string.split.js":347,"core-js/modules/es.string.trim.js":349,punycode:443,querystring:451}],544:[function(e,t,r){var n=e("@babel/runtime/helpers/interopRequireDefault")(e("@babel/runtime/helpers/typeof"));t.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"===(0,n.default)(e)&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},{"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/helpers/typeof":91}],545:[function(e,t,r){e("core-js/modules/es.number.constructor.js"),r.encodeURIComponent=function(e){try{return encodeURIComponent(e)}catch(t){return e}},r.escape=e("escape-html"),r.timestamp=function(e){if(e){var t=e;return"string"==typeof t&&(t=Number(t)),10===String(e).length&&(t*=1e3),new Date(t)}return Math.round(Date.now()/1e3)}},{"core-js/modules/es.number.constructor.js":324,"escape-html":385}],546:[function(e,t,r){(function(t,n){(function(){var t=e("@babel/runtime/helpers/interopRequireDefault")(e("@babel/runtime/helpers/typeof"));e("core-js/modules/es.string.trim.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.promise.js"),e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.function.name.js"),e("core-js/modules/es.array.concat.js");var i=e("util"),o=e("url"),s=e("http"),a=e("https"),l=e("debug")("urllib"),c=e("humanize-ms"),u=0,p=Math.pow(2,31)-10,d=/^https?:\/\//i;function m(e,t){return void 0===e?t:e}function f(e){return e?e.split(";")[0].trim().toLowerCase():""}function h(e,t){return function(r,n,i){if(r)return t(r);e({data:n,status:i.statusCode,headers:i.headers,res:i})}}r.TIMEOUTS=[c("300s"),c("300s")];var y=["json","text"];r.request=function(e,t,n){return 2===arguments.length&&"function"==typeof t&&(n=t,t=null),"function"==typeof n?r.requestWithCallback(e,t,n):new Promise(function(n,i){r.requestWithCallback(e,t,h(n,i))})},r.requestWithCallback=function(e,h,g){if(!e||"string"!=typeof e&&"object"!==(0,t.default)(e)){var b=i.format("expect request url to be a string or a http request options, but got %j",e);throw new Error(b)}2===arguments.length&&"function"==typeof h&&(g=h,h=null),u>=p&&(u=0);var v=++u;(h=h||{}).requestUrls=h.requestUrls||[];var x={requestId:v,url:e,args:h,ctx:h.ctx};h.emitter&&h.emitter.emit("request",x),h.timeout=h.timeout||r.TIMEOUTS,h.maxRedirects=h.maxRedirects||10,h.streaming=h.streaming||h.customResponse;var w,S=Date.now();"string"==typeof e?(d.test(e)||(e="https://"+e),w=o.parse(e)):w=e;var N=(h.type||h.method||w.method||"GET").toUpperCase(),j=w.port||80,E=s,C=m(h.agent,r.agent),k=h.fixJSONCtlChars;"https:"===w.protocol&&(E=a,C=m(h.httpsAgent,r.httpsAgent),w.port||(j=443));var T={host:w.hostname||w.host||"localhost",path:w.path||"/",method:N,port:j,agent:C,headers:h.headers||{},lookup:h.lookup};Array.isArray(h.timeout)?T.requestTimeout=h.timeout[h.timeout.length-1]:void 0!==h.timeout&&(T.requestTimeout=h.timeout);var R=h.auth||w.auth;R&&(T.auth=R);var O=h.content||h.data,P="GET"===N||"HEAD"===N||h.dataAsQueryString;if(!h.content&&O&&"string"!=typeof O&&!n.isBuffer(O))if(P)O=h.nestedQuerystring?qs.stringify(O):querystring.stringify(O);else{var _=T.headers["Content-Type"]||T.headers["content-type"];_||(_="json"===h.contentType?"application/json":"application/x-www-form-urlencoded",T.headers["Content-Type"]=_),O="application/json"===f(_)?JSON.stringify(O):h.nestedQuerystring?qs.stringify(O):querystring.stringify(O)}P&&O&&(T.path+=(w.query?"&":"?")+O,O=null);var A=0;if(O){var I=O.length;n.isBuffer(O)||(I=n.byteLength(O)),A=T.headers["Content-Length"]=I}"json"===h.dataType&&(T.headers.Accept="application/json"),"function"==typeof h.beforeRequest&&h.beforeRequest(T);var M=null,D=null,z=null,B=!1,L=!1,q=0,U=-1,H=!1,F="",$="",V=null;function G(){M&&(clearTimeout(M),M=null)}function W(){D&&(clearTimeout(D),D=null)}function K(t,r,n){if(W(),g){var i=g;g=null;var o={};n&&(U=n.statusCode,o=n.headers);var s=Date.now()-S;V&&(V.contentDownload=s),l("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",s,q,U,T.method,T.host,T.path,L,V);var a={status:U,statusCode:U,headers:o,size:q,aborted:H,rt:s,keepAliveSocket:L,data:r,requestUrls:h.requestUrls,timing:V,remoteAddress:F,remotePort:$};if(t){var c="";C&&"function"==typeof C.getCurrentStatus&&(c=", agent status: "+JSON.stringify(C.getCurrentStatus())),t.message+=", "+T.method+" "+e+" "+U+" (connected: "+B+", keepalive socket: "+L+c+")\nheaders: "+JSON.stringify(o),t.data=r,t.path=T.path,t.status=U,t.headers=o,t.res=a}i(t,r,h.streaming?n:a),h.emitter&&(x.url=e,x.socket=Z&&Z.connection,x.options=T,x.size=A,h.emitter.emit("response",{requestId:v,error:t,ctx:h.ctx,req:x,res:a}))}}function X(t){var n=null;if(h.followRedirect&&statuses.redirect[t.statusCode]){h._followRedirectCount=(h._followRedirectCount||0)+1;var i=t.headers.location;if(i){if(!(h._followRedirectCount>h.maxRedirects)){var s=h.formatRedirectUrl?h.formatRedirectUrl(e,i):o.resolve(e,i);l("Request#%d %s: `redirected` from %s to %s",v,T.path,e,s),W(),h.headers&&h.headers.Host&&d.test(i)&&(h.headers.Host=null);var a=g;return g=null,r.requestWithCallback(s,h,a),{redirect:!0,error:null}}(n=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+e)).name="MaxRedirectError"}else(n=new Error("Got statusCode "+t.statusCode+" but cannot resolve next location from headers")).name="FollowRedirectError"}return{redirect:!1,error:n}}function Q(e,t,r){return r(null,t,e.headers["content-encoding"])}h.timing&&(V={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0}),h.gzip&&(T.headers["Accept-Encoding"]||T.headers["accept-encoding"]||(T.headers["Accept-Encoding"]="gzip"));var Y,J,Z,ee=h.writeStream;function te(t){if(V&&(V.waiting=Date.now()-S),l("Request#%d %s `req response` event emit: status %d, headers: %j",v,e,t.statusCode,t.headers),h.streaming){var r=X(t);return r.redirect?void t.resume():r.error?(t.resume(),K(r.error,null,t)):K(null,null,t)}if(t.on("close",function(){l("Request#%d %s: `res close` event emit, total size %d",v,e,q)}),t.on("error",function(){l("Request#%d %s: `res error` event emit, total size %d",v,e,q)}),t.on("aborted",function(){H=!0,l("Request#%d %s: `res aborted` event emit, total size %d",v,e,q)}),ee){var i=X(t);return i.redirect?void t.resume():i.error?(t.resume(),ee.end(),K(i.error,null,t)):(!1===h.consumeWriteStream?t.on("end",K.bind(null,null,null,t)):ee.on("close",function(){l("Request#%d %s: writeStream close event emitted",v,e),K(z||null,null,t)}),t.pipe(ee))}var o=[];t.on("data",function(t){l("Request#%d %s: `res data` event emit, size %d",v,e,t.length),q+=t.length,o.push(t)}),t.on("end",function(){var r=n.concat(o,q);if(l("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",v,e,q,t._dumped),z)return K(z,r,t);var i=X(t);if(i.error)return K(i.error,r,t);i.redirect||Q(t,r,function(n,i,o){if(n)return K(n,r,t);if(!o&&y.indexOf(h.dataType)>=0){try{i=decodeBodyByCharset(i,t)}catch(a){return l("decodeBodyByCharset error: %s",a),K(null,i,t)}if("json"===h.dataType)if(0===q)i=null;else{var s=parseJSON(i,k);s.error?n=s.error:i=s.data}}H&&l("Request#%d %s: Remote socket was terminated before `response.end()` was called",v,e),K(n,i,t)})})}function re(){l("Connect timer ticking, timeout: %d",Y),M=setTimeout(function(){M=null,-1===U&&(U=-2);var t="Connect timeout for "+Y+"ms",r="ConnectionTimeoutError";Z.socket||(r="SocketAssignTimeoutError",t+=", working sockets is full"),(z=new Error(t)).name=r,z.requestId=v,l("ConnectTimeout: Request#%d %s %s: %s, connected: %s",v,e,z.name,t,B),ie()},Y)}function ne(){l("Response timer ticking, timeout: %d",J),D=setTimeout(function(){D=null;var t="Response timeout for "+J+"ms",r="ResponseTimeoutError";(z=new Error(t)).name=r,z.requestId=v,l("ResponseTimeout: Request#%d %s %s: %s, connected: %s",v,e,z.name,t,B),ie()},J)}l("Request#%d %s %s with headers %j, options.path: %s",v,N,e,T.headers,T.path),h.requestUrls.push(e),Array.isArray(h.timeout)?(Y=c(h.timeout[0]),J=c(h.timeout[1])):Y=J=c(h.timeout),l("ConnectTimeout: %d, ResponseTimeout: %d",Y,J),T.mode=h.mode?h.mode:"";try{Z=E.request(T,te)}catch(oe){return K(oe)}function ie(){l("Request#%d %s abort, connected: %s",v,e,B),Z.socket||(z.noSocket=!0,K(z)),Z.abort()}return"undefined"==typeof window?re():Z.on("requestTimeout",function(){-1===U&&(U=-2);var e="ConnectionTimeoutError";(z=new Error("Connect timeout for "+Y+"ms")).name=e,z.requestId=v,ie()}),V&&Z.on("finish",function(){V.requestSent=Date.now()-S}),Z.once("socket",function(t){V&&(V.queuing=Date.now()-S);var r=t.readyState;if("opening"===r)return t.once("lookup",function(t,r,n){l("Request#%d %s lookup: %s, %s, %s",v,e,t,r,n),V&&(V.dnslookup=Date.now()-S),r&&(F=r)}),void t.once("connect",function(){V&&(V.connected=Date.now()-S),G(),ne(),l("Request#%d %s new socket connected",v,e),B=!0,F||(F=t.remoteAddress),$=t.remotePort});l("Request#%d %s reuse socket connected, readyState: %s",v,e,r),B=!0,L=!0,F||(F=t.remoteAddress),$=t.remotePort,G(),ne()}),Z.on("error",function(t){"Error"!==t.name&&"TypeError"!==t.name||(t.name=B?"ResponseError":"RequestError"),t.message+=' (req "error")',l("Request#%d %s `req error` event emit, %s: %s",v,e,t.name,t.message),K(z||t)}),ee&&ee.once("error",function(t){t.message+=' (writeStream "error")',z=t,l("Request#%d %s `writeStream error` event emit, %s: %s",v,e,t.name,t.message),ie()}),h.stream?(h.stream.pipe(Z),h.stream.once("error",function(t){t.message+=' (stream "error")',z=t,l("Request#%d %s `readStream error` event emit, %s: %s",v,e,t.name,t.message),ie()})):Z.end(O),Z.requestId=v,Z}}).call(this)}).call(this,e("_process"),e("buffer").Buffer)},{"@babel/runtime/helpers/interopRequireDefault":86,"@babel/runtime/helpers/typeof":91,_process:538,buffer:103,"core-js/modules/es.array.concat.js":310,"core-js/modules/es.function.name.js":322,"core-js/modules/es.object.to-string.js":329,"core-js/modules/es.promise.js":333,"core-js/modules/es.regexp.exec.js":338,"core-js/modules/es.string.trim.js":349,debug:536,http:539,https:398,"humanize-ms":399,url:543,util:489}]},{},[1])(1)),pR.exports);const fR=At(mR);var hR,yR,gR,bR,vR,xR,wR,SR,NR,jR,ER,CR,kR,TR,RR,OR,PR,_R,AR,IR,MR,DR,zR,BR,LR,qR,UR,HR,FR,$R,VR,GR,WR,KR,XR,QR,YR,JR,ZR,eO,tO,rO,nO,iO,oO,sO,aO,lO,cO,uO,pO,dO={exports:{}};function mO(){return yR||(yR=1,hR=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return e.apply(t,r)}}),hR}function fO(){if(bR)return gR;bR=1;var e=mO(),t=Object.prototype.toString;function r(e){return"[object Array]"===t.call(e)}function n(e){return void 0===e}function i(e){return null!==e&&"object"==typeof e}function o(e){return"[object Function]"===t.call(e)}function s(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),r(e))for(var n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}return gR={isArray:r,isArrayBuffer:function(e){return"[object ArrayBuffer]"===t.call(e)},isBuffer:function(e){return null!==e&&!n(e)&&null!==e.constructor&&!n(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:i,isUndefined:n,isDate:function(e){return"[object Date]"===t.call(e)},isFile:function(e){return"[object File]"===t.call(e)},isBlob:function(e){return"[object Blob]"===t.call(e)},isFunction:o,isStream:function(e){return i(e)&&o(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:s,merge:function e(){var t={};function r(r,n){"object"==typeof t[n]&&"object"==typeof r?t[n]=e(t[n],r):t[n]=r}for(var n=0,i=arguments.length;n<i;n++)s(arguments[n],r);return t},deepMerge:function e(){var t={};function r(r,n){"object"==typeof t[n]&&"object"==typeof r?t[n]=e(t[n],r):t[n]="object"==typeof r?e({},r):r}for(var n=0,i=arguments.length;n<i;n++)s(arguments[n],r);return t},extend:function(t,r,n){return s(r,function(r,i){t[i]=n&&"function"==typeof r?e(r,n):r}),t},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}},gR}function hO(){if(xR)return vR;xR=1;var e=fO();function t(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}return vR=function(r,n,i){if(!n)return r;var o;if(i)o=i(n);else if(e.isURLSearchParams(n))o=n.toString();else{var s=[];e.forEach(n,function(r,n){null!=r&&(e.isArray(r)?n+="[]":r=[r],e.forEach(r,function(r){e.isDate(r)?r=r.toISOString():e.isObject(r)&&(r=JSON.stringify(r)),s.push(t(n)+"="+t(r))}))}),o=s.join("&")}if(o){var a=r.indexOf("#");-1!==a&&(r=r.slice(0,a)),r+=(-1===r.indexOf("?")?"?":"&")+o}return r}}function yO(){return CR?ER:(CR=1,ER=function(e){return!(!e||!e.__CANCEL__)})}function gO(){if(_R)return PR;_R=1;var e=OR?RR:(OR=1,RR=function(e,t,r,n,i){return e.config=t,r&&(e.code=r),e.request=n,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e});return PR=function(t,r,n,i,o){var s=new Error(t);return e(s,r,n,i,o)}}function bO(){if(qR)return LR;qR=1;var e=DR?MR:(DR=1,MR=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}),t=BR?zR:(BR=1,zR=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e});return LR=function(r,n){return r&&!e(n)?t(r,n):n}}function vO(){if(KR)return WR;KR=1;var e=fO(),t=function(){if(IR)return AR;IR=1;var e=gO();return AR=function(t,r,n){var i=n.config.validateStatus;!i||i(n.status)?t(n):r(e("Request failed with status code "+n.status,n.config,null,n.request,n))}}(),r=hO(),n=bO(),i=function(){if(HR)return UR;HR=1;var e=fO(),t=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return UR=function(r){var n,i,o,s={};return r?(e.forEach(r.split("\n"),function(r){if(o=r.indexOf(":"),n=e.trim(r.substr(0,o)).toLowerCase(),i=e.trim(r.substr(o+1)),n){if(s[n]&&t.indexOf(n)>=0)return;s[n]="set-cookie"===n?(s[n]?s[n]:[]).concat([i]):s[n]?s[n]+", "+i:i}}),s):s}}(),o=function(){if($R)return FR;$R=1;var e=fO();return FR=e.isStandardBrowserEnv()?function(){var t,r=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var t=e;return r&&(n.setAttribute("href",t),t=n.href),n.setAttribute("href",t),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=i(window.location.href),function(r){var n=e.isString(r)?i(r):r;return n.protocol===t.protocol&&n.host===t.host}}():function(){return function(){return!0}}()}(),s=gO();return WR=function(a){return new Promise(function(l,c){var u=a.data,p=a.headers;e.isFormData(u)&&delete p["Content-Type"];var d=new XMLHttpRequest;if(a.auth){var m=a.auth.username||"",f=a.auth.password||"";p.Authorization="Basic "+btoa(m+":"+f)}var h=n(a.baseURL,a.url);if(d.open(a.method.toUpperCase(),r(h,a.params,a.paramsSerializer),!0),d.timeout=a.timeout,d.onreadystatechange=function(){if(d&&4===d.readyState&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var e="getAllResponseHeaders"in d?i(d.getAllResponseHeaders()):null,r={data:a.responseType&&"text"!==a.responseType?d.response:d.responseText,status:d.status,statusText:d.statusText,headers:e,config:a,request:d};t(l,c,r),d=null}},d.onabort=function(){d&&(c(s("Request aborted",a,"ECONNABORTED",d)),d=null)},d.onerror=function(){c(s("Network Error",a,null,d)),d=null},d.ontimeout=function(){var e="timeout of "+a.timeout+"ms exceeded";a.timeoutErrorMessage&&(e=a.timeoutErrorMessage),c(s(e,a,"ECONNABORTED",d)),d=null},e.isStandardBrowserEnv()){var y=function(){if(GR)return VR;GR=1;var e=fO();return VR=e.isStandardBrowserEnv()?function(){return{write:function(t,r,n,i,o,s){var a=[];a.push(t+"="+encodeURIComponent(r)),e.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),e.isString(i)&&a.push("path="+i),e.isString(o)&&a.push("domain="+o),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()}(),g=(a.withCredentials||o(h))&&a.xsrfCookieName?y.read(a.xsrfCookieName):void 0;g&&(p[a.xsrfHeaderName]=g)}if("setRequestHeader"in d&&e.forEach(p,function(e,t){void 0===u&&"content-type"===t.toLowerCase()?delete p[t]:d.setRequestHeader(t,e)}),e.isUndefined(a.withCredentials)||(d.withCredentials=!!a.withCredentials),a.responseType)try{d.responseType=a.responseType}catch(b){if("json"!==a.responseType)throw b}"function"==typeof a.onDownloadProgress&&d.addEventListener("progress",a.onDownloadProgress),"function"==typeof a.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",a.onUploadProgress),a.cancelToken&&a.cancelToken.promise.then(function(e){d&&(d.abort(),c(e),d=null)}),void 0===u&&(u=null),d.send(u)})}}function xO(){if(QR)return XR;QR=1;var e=fO(),t=function(){if(TR)return kR;TR=1;var e=fO();return kR=function(t,r){e.forEach(t,function(e,n){n!==r&&n.toUpperCase()===r.toUpperCase()&&(t[r]=e,delete t[n])})}}(),r={"Content-Type":"application/x-www-form-urlencoded"};function n(t,r){!e.isUndefined(t)&&e.isUndefined(t["Content-Type"])&&(t["Content-Type"]=r)}var i,o={adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(i=vO()),i),transformRequest:[function(r,i){return t(i,"Accept"),t(i,"Content-Type"),e.isFormData(r)||e.isArrayBuffer(r)||e.isBuffer(r)||e.isStream(r)||e.isFile(r)||e.isBlob(r)?r:e.isArrayBufferView(r)?r.buffer:e.isURLSearchParams(r)?(n(i,"application/x-www-form-urlencoded;charset=utf-8"),r.toString()):e.isObject(r)?(n(i,"application/json;charset=utf-8"),JSON.stringify(r)):r}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(t){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300}};return o.headers={common:{Accept:"application/json, text/plain, */*"}},e.forEach(["delete","get","head"],function(e){o.headers[e]={}}),e.forEach(["post","put","patch"],function(t){o.headers[t]=e.merge(r)}),XR=o}function wO(){if(JR)return YR;JR=1;var e=fO(),t=function(){if(jR)return NR;jR=1;var e=fO();return NR=function(t,r,n){return e.forEach(n,function(e){t=e(t,r)}),t}}(),r=yO(),n=xO();function i(e){e.cancelToken&&e.cancelToken.throwIfRequested()}return YR=function(o){return i(o),o.headers=o.headers||{},o.data=t(o.data,o.headers,o.transformRequest),o.headers=e.merge(o.headers.common||{},o.headers[o.method]||{},o.headers),e.forEach(["delete","get","head","post","put","patch","common"],function(e){delete o.headers[e]}),(o.adapter||n.adapter)(o).then(function(e){return i(o),e.data=t(e.data,e.headers,o.transformResponse),e},function(e){return r(e)||(i(o),e&&e.response&&(e.response.data=t(e.response.data,e.response.headers,o.transformResponse))),Promise.reject(e)})}}function SO(){if(eO)return ZR;eO=1;var e=fO();return ZR=function(t,r){r=r||{};var n={},i=["url","method","params","data"],o=["headers","auth","proxy"],s=["baseURL","url","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"];e.forEach(i,function(e){void 0!==r[e]&&(n[e]=r[e])}),e.forEach(o,function(i){e.isObject(r[i])?n[i]=e.deepMerge(t[i],r[i]):void 0!==r[i]?n[i]=r[i]:e.isObject(t[i])?n[i]=e.deepMerge(t[i]):void 0!==t[i]&&(n[i]=t[i])}),e.forEach(s,function(e){void 0!==r[e]?n[e]=r[e]:void 0!==t[e]&&(n[e]=t[e])});var a=i.concat(o).concat(s),l=Object.keys(r).filter(function(e){return-1===a.indexOf(e)});return e.forEach(l,function(e){void 0!==r[e]?n[e]=r[e]:void 0!==t[e]&&(n[e]=t[e])}),n}}function NO(){if(rO)return tO;rO=1;var e=fO(),t=hO(),r=function(){if(SR)return wR;SR=1;var e=fO();function t(){this.handlers=[]}return t.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},t.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},t.prototype.forEach=function(t){e.forEach(this.handlers,function(e){null!==e&&t(e)})},wR=t}(),n=wO(),i=SO();function o(e){this.defaults=e,this.interceptors={request:new r,response:new r}}return o.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=i(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[n,void 0],r=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)r=r.then(t.shift(),t.shift());return r},o.prototype.getUri=function(e){return e=i(this.defaults,e),t(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},e.forEach(["delete","get","head","options"],function(t){o.prototype[t]=function(r,n){return this.request(e.merge(n||{},{method:t,url:r}))}}),e.forEach(["post","put","patch"],function(t){o.prototype[t]=function(r,n,i){return this.request(e.merge(i||{},{method:t,url:r,data:n}))}}),tO=o}function jO(){if(iO)return nO;function e(e){this.message=e}return iO=1,e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,nO=e}function EO(){if(cO)return dO.exports;cO=1;var e=fO(),t=mO(),r=NO(),n=SO();function i(n){var i=new r(n),o=t(r.prototype.request,i);return e.extend(o,r.prototype,i),e.extend(o,i),o}var o=i(xO());return o.Axios=r,o.create=function(e){return i(n(o.defaults,e))},o.Cancel=jO(),o.CancelToken=function(){if(sO)return oO;sO=1;var e=jO();function t(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var r;this.promise=new Promise(function(e){r=e});var n=this;t(function(t){n.reason||(n.reason=new e(t),r(n.reason))})}return t.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},t.source=function(){var e;return{token:new t(function(t){e=t}),cancel:e}},oO=t}(),o.isCancel=yO(),o.all=function(e){return Promise.all(e)},o.spread=lO?aO:(lO=1,aO=function(e){return function(t){return e.apply(null,t)}}),dO.exports=o,dO.exports.default=o,dO.exports}const CO=At(pO?uO:(pO=1,uO=EO())),kO="/efficacy/v1/oss";var TO,RO,OO,PO,_O,AO,IO,MO;var DO=function(){if(MO)return IO;MO=1;let e=function(){if(RO)return TO;function e(){this._types=Object.create(null),this._extensions=Object.create(null);for(let e=0;e<arguments.length;e++)this.define(arguments[e]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}return RO=1,e.prototype.define=function(e,t){for(let r in e){let n=e[r].map(function(e){return e.toLowerCase()});r=r.toLowerCase();for(let e=0;e<n.length;e++){const i=n[e];if("*"!==i[0]){if(!t&&i in this._types)throw new Error('Attempt to change mapping for "'+i+'" extension from "'+this._types[i]+'" to "'+r+'". Pass `force=true` to allow this, otherwise remove "'+i+'" from the list of extensions for "'+r+'".');this._types[i]=r}}if(t||!this._extensions[r]){const e=n[0];this._extensions[r]="*"!==e[0]?e:e.substr(1)}}},e.prototype.getType=function(e){let t=(e=String(e)).replace(/^.*[/\\]/,"").toLowerCase(),r=t.replace(/^.*\./,"").toLowerCase(),n=t.length<e.length;return(r.length<t.length-1||!n)&&this._types[r]||null},e.prototype.getExtension=function(e){return(e=/^\s*([^;\s]*)/.test(e)&&RegExp.$1)&&this._extensions[e.toLowerCase()]||null},TO=e}();return IO=new e(PO?OO:(PO=1,OO={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["es","ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avif":["avif"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]}),AO?_O:(AO=1,_O={"application/prs.cww":["cww"],"application/vnd.1000minds.decision-model+xml":["1km"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["xfdf"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.keynote":["key"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.apple.numbers":["numbers"],"application/vnd.apple.pages":["pages"],"application/vnd.apple.pkpass":["pkpass"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.balsamiq.bmml+xml":["bmml"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.citationstyles.style+xml":["csl"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dbf":["dbf"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"],"application/vnd.enliven":["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder":["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-apps.document":["gdoc"],"application/vnd.google-apps.presentation":["gslides"],"application/vnd.google-apps.spreadsheet":["gsheet"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account":["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.hydrostatix.sof-data":["sfd-hdstx"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz":["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor":["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"],"application/vnd.mapbox-vector-tile":["mvt"],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc":["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-fontobject":["eot"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-outlook":["msg"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["*stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12":["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["mpp","mpt"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq":["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.ac+xml":["*ac"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.n-gage.symbian.install":["n-gage"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image":["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web":["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openblox.game+xml":["obgx"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openstreetmap.data+xml":["osm"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.rar":["rar"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.software602.filler.form+xml":["fo"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smzip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.wadl+xml":["wadl"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.syncml.dmddf+xml":["ddf"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml":["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"],"application/x-apple-diskimage":["*dmg"],"application/x-arj":["arj"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bdoc":["*bdoc"],"application/x-bittorrent":["torrent"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-cocoa":["cco"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["*deb","udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva":["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric":["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-httpd-php":["php"],"application/x-install-instructions":["install"],"application/x-iso9660-image":["*iso"],"application/x-iwork-keynote-sffkey":["*key"],"application/x-iwork-numbers-sffnumbers":["*numbers"],"application/x-iwork-pages-sffpages":["*pages"],"application/x-java-archive-diff":["jardiff"],"application/x-java-jnlp-file":["jnlp"],"application/x-keepass2":["kdbx"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-makeself":["run"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdos-program":["*exe"],"application/x-msdownload":["*exe","*dll","com","bat","*msi"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["*wmf","*wmz","*emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-ns-proxy-autoconfig":["pac"],"application/x-nzb":["nzb"],"application/x-perl":["pl","pm"],"application/x-pilot":["*prc","*pdb"],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["*rar"],"application/x-redhat-package-manager":["rpm"],"application/x-research-info-systems":["ris"],"application/x-sea":["sea"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["sql"],"application/x-stuffit":["sit"],"application/x-stuffitx":["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl","tk"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["*obj"],"application/x-ustar":["ustar"],"application/x-virtualbox-hdd":["hdd"],"application/x-virtualbox-ova":["ova"],"application/x-virtualbox-ovf":["ovf"],"application/x-virtualbox-vbox":["vbox"],"application/x-virtualbox-vbox-extpack":["vbox-extpack"],"application/x-virtualbox-vdi":["vdi"],"application/x-virtualbox-vhd":["vhd"],"application/x-virtualbox-vmdk":["vmdk"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt","pem"],"application/x-xfig":["fig"],"application/x-xliff+xml":["*xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/x-aac":["aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":["*m4a"],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-realaudio":["*ra"],"audio/x-wav":["*wav"],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"image/prs.btif":["btif"],"image/prs.pti":["pti"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.airzip.accelerator.azv":["azv"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":["*sub"],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.microsoft.icon":["ico"],"image/vnd.ms-dds":["dds"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo":["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.pco.b16":["b16"],"image/vnd.tencent.tap":["tap"],"image/vnd.valve.source.texture":["vtf"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/vnd.zbrush.pcx":["pcx"],"image/x-3ds":["3ds"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["*ico"],"image/x-jng":["jng"],"image/x-mrsid-image":["sid"],"image/x-ms-bmp":["*bmp"],"image/x-pcx":["*pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap":["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"message/vnd.wfa.wsc":["wsc"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["mts"],"model/vnd.opengex":["ogex"],"model/vnd.parasolid.transmit.binary":["x_b"],"model/vnd.parasolid.transmit.text":["x_t"],"model/vnd.sap.vds":["vds"],"model/vnd.usdz+zip":["usdz"],"model/vnd.valve.source.compiled-map":["bsp"],"model/vnd.vtu":["vtu"],"text/prs.lines.tag":["dsc"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-org":["*org"],"text/x-pascal":["p","pas"],"text/x-processing":["pde"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-suse-ymp":["ymp"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/x-msvideo":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"]}))}();const zO=At(DO);var BO,LO={exports:{}};BO||(BO=1,LO.exports=function(e){var t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function r(e,t){var r=e[0],n=e[1],i=e[2],o=e[3];n=((n+=((i=((i+=((o=((o+=((r=((r+=(n&i|~n&o)+t[0]-680876936|0)<<7|r>>>25)+n|0)&n|~r&i)+t[1]-389564586|0)<<12|o>>>20)+r|0)&r|~o&n)+t[2]+606105819|0)<<17|i>>>15)+o|0)&o|~i&r)+t[3]-1044525330|0)<<22|n>>>10)+i|0,n=((n+=((i=((i+=((o=((o+=((r=((r+=(n&i|~n&o)+t[4]-176418897|0)<<7|r>>>25)+n|0)&n|~r&i)+t[5]+1200080426|0)<<12|o>>>20)+r|0)&r|~o&n)+t[6]-1473231341|0)<<17|i>>>15)+o|0)&o|~i&r)+t[7]-45705983|0)<<22|n>>>10)+i|0,n=((n+=((i=((i+=((o=((o+=((r=((r+=(n&i|~n&o)+t[8]+1770035416|0)<<7|r>>>25)+n|0)&n|~r&i)+t[9]-1958414417|0)<<12|o>>>20)+r|0)&r|~o&n)+t[10]-42063|0)<<17|i>>>15)+o|0)&o|~i&r)+t[11]-1990404162|0)<<22|n>>>10)+i|0,n=((n+=((i=((i+=((o=((o+=((r=((r+=(n&i|~n&o)+t[12]+1804603682|0)<<7|r>>>25)+n|0)&n|~r&i)+t[13]-40341101|0)<<12|o>>>20)+r|0)&r|~o&n)+t[14]-1502002290|0)<<17|i>>>15)+o|0)&o|~i&r)+t[15]+1236535329|0)<<22|n>>>10)+i|0,n=((n+=((i=((i+=((o=((o+=((r=((r+=(n&o|i&~o)+t[1]-165796510|0)<<5|r>>>27)+n|0)&i|n&~i)+t[6]-1069501632|0)<<9|o>>>23)+r|0)&n|r&~n)+t[11]+643717713|0)<<14|i>>>18)+o|0)&r|o&~r)+t[0]-373897302|0)<<20|n>>>12)+i|0,n=((n+=((i=((i+=((o=((o+=((r=((r+=(n&o|i&~o)+t[5]-701558691|0)<<5|r>>>27)+n|0)&i|n&~i)+t[10]+38016083|0)<<9|o>>>23)+r|0)&n|r&~n)+t[15]-660478335|0)<<14|i>>>18)+o|0)&r|o&~r)+t[4]-405537848|0)<<20|n>>>12)+i|0,n=((n+=((i=((i+=((o=((o+=((r=((r+=(n&o|i&~o)+t[9]+568446438|0)<<5|r>>>27)+n|0)&i|n&~i)+t[14]-1019803690|0)<<9|o>>>23)+r|0)&n|r&~n)+t[3]-187363961|0)<<14|i>>>18)+o|0)&r|o&~r)+t[8]+1163531501|0)<<20|n>>>12)+i|0,n=((n+=((i=((i+=((o=((o+=((r=((r+=(n&o|i&~o)+t[13]-1444681467|0)<<5|r>>>27)+n|0)&i|n&~i)+t[2]-51403784|0)<<9|o>>>23)+r|0)&n|r&~n)+t[7]+1735328473|0)<<14|i>>>18)+o|0)&r|o&~r)+t[12]-1926607734|0)<<20|n>>>12)+i|0,n=((n+=((i=((i+=((o=((o+=((r=((r+=(n^i^o)+t[5]-378558|0)<<4|r>>>28)+n|0)^n^i)+t[8]-2022574463|0)<<11|o>>>21)+r|0)^r^n)+t[11]+1839030562|0)<<16|i>>>16)+o|0)^o^r)+t[14]-35309556|0)<<23|n>>>9)+i|0,n=((n+=((i=((i+=((o=((o+=((r=((r+=(n^i^o)+t[1]-1530992060|0)<<4|r>>>28)+n|0)^n^i)+t[4]+1272893353|0)<<11|o>>>21)+r|0)^r^n)+t[7]-155497632|0)<<16|i>>>16)+o|0)^o^r)+t[10]-1094730640|0)<<23|n>>>9)+i|0,n=((n+=((i=((i+=((o=((o+=((r=((r+=(n^i^o)+t[13]+681279174|0)<<4|r>>>28)+n|0)^n^i)+t[0]-358537222|0)<<11|o>>>21)+r|0)^r^n)+t[3]-722521979|0)<<16|i>>>16)+o|0)^o^r)+t[6]+76029189|0)<<23|n>>>9)+i|0,n=((n+=((i=((i+=((o=((o+=((r=((r+=(n^i^o)+t[9]-640364487|0)<<4|r>>>28)+n|0)^n^i)+t[12]-421815835|0)<<11|o>>>21)+r|0)^r^n)+t[15]+530742520|0)<<16|i>>>16)+o|0)^o^r)+t[2]-995338651|0)<<23|n>>>9)+i|0,n=((n+=((o=((o+=(n^((r=((r+=(i^(n|~o))+t[0]-198630844|0)<<6|r>>>26)+n|0)|~i))+t[7]+1126891415|0)<<10|o>>>22)+r|0)^((i=((i+=(r^(o|~n))+t[14]-1416354905|0)<<15|i>>>17)+o|0)|~r))+t[5]-57434055|0)<<21|n>>>11)+i|0,n=((n+=((o=((o+=(n^((r=((r+=(i^(n|~o))+t[12]+1700485571|0)<<6|r>>>26)+n|0)|~i))+t[3]-1894986606|0)<<10|o>>>22)+r|0)^((i=((i+=(r^(o|~n))+t[10]-1051523|0)<<15|i>>>17)+o|0)|~r))+t[1]-2054922799|0)<<21|n>>>11)+i|0,n=((n+=((o=((o+=(n^((r=((r+=(i^(n|~o))+t[8]+1873313359|0)<<6|r>>>26)+n|0)|~i))+t[15]-30611744|0)<<10|o>>>22)+r|0)^((i=((i+=(r^(o|~n))+t[6]-1560198380|0)<<15|i>>>17)+o|0)|~r))+t[13]+1309151649|0)<<21|n>>>11)+i|0,n=((n+=((o=((o+=(n^((r=((r+=(i^(n|~o))+t[4]-145523070|0)<<6|r>>>26)+n|0)|~i))+t[11]-1120210379|0)<<10|o>>>22)+r|0)^((i=((i+=(r^(o|~n))+t[2]+718787259|0)<<15|i>>>17)+o|0)|~r))+t[9]-343485551|0)<<21|n>>>11)+i|0,e[0]=r+e[0]|0,e[1]=n+e[1]|0,e[2]=i+e[2]|0,e[3]=o+e[3]|0}function n(e){var t,r=[];for(t=0;t<64;t+=4)r[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return r}function i(e){var t,r=[];for(t=0;t<64;t+=4)r[t>>2]=e[t]+(e[t+1]<<8)+(e[t+2]<<16)+(e[t+3]<<24);return r}function o(e){var t,i,o,s,a,l,c=e.length,u=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=c;t+=64)r(u,n(e.substring(t-64,t)));for(i=(e=e.substring(t-64)).length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t<i;t+=1)o[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(r(u,o),t=0;t<16;t+=1)o[t]=0;return s=(s=8*c).toString(16).match(/(.*?)(.{0,8})$/),a=parseInt(s[2],16),l=parseInt(s[1],16)||0,o[14]=a,o[15]=l,r(u,o),u}function s(e){var t,n,o,s,a,l,c=e.length,u=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=c;t+=64)r(u,i(e.subarray(t-64,t)));for(n=(e=t-64<c?e.subarray(t-64):new Uint8Array(0)).length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t<n;t+=1)o[t>>2]|=e[t]<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(r(u,o),t=0;t<16;t+=1)o[t]=0;return s=(s=8*c).toString(16).match(/(.*?)(.{0,8})$/),a=parseInt(s[2],16),l=parseInt(s[1],16)||0,o[14]=a,o[15]=l,r(u,o),u}function a(e){var r,n="";for(r=0;r<4;r+=1)n+=t[e>>8*r+4&15]+t[e>>8*r&15];return n}function l(e){var t;for(t=0;t<e.length;t+=1)e[t]=a(e[t]);return e.join("")}function c(e){return/[\u0080-\uFFFF]/.test(e)&&(e=unescape(encodeURIComponent(e))),e}function u(e,t){var r,n=e.length,i=new ArrayBuffer(n),o=new Uint8Array(i);for(r=0;r<n;r+=1)o[r]=e.charCodeAt(r);return t?o:i}function p(e){return String.fromCharCode.apply(null,new Uint8Array(e))}function d(e,t,r){var n=new Uint8Array(e.byteLength+t.byteLength);return n.set(new Uint8Array(e)),n.set(new Uint8Array(t),e.byteLength),n}function m(e){var t,r=[],n=e.length;for(t=0;t<n-1;t+=2)r.push(parseInt(e.substr(t,2),16));return String.fromCharCode.apply(String,r)}function f(){this.reset()}return l(o("hello")),"undefined"==typeof ArrayBuffer||ArrayBuffer.prototype.slice||function(){function t(e,t){return(e=0|e||0)<0?Math.max(e+t,0):Math.min(e,t)}ArrayBuffer.prototype.slice=function(r,n){var i,o,s,a,l=this.byteLength,c=t(r,l),u=l;return n!==e&&(u=t(n,l)),c>u?new ArrayBuffer(0):(i=u-c,o=new ArrayBuffer(i),s=new Uint8Array(o),a=new Uint8Array(this,c,i),s.set(a),o)}}(),f.prototype.append=function(e){return this.appendBinary(c(e)),this},f.prototype.appendBinary=function(e){this._buff+=e,this._length+=e.length;var t,i=this._buff.length;for(t=64;t<=i;t+=64)r(this._hash,n(this._buff.substring(t-64,t)));return this._buff=this._buff.substring(t-64),this},f.prototype.end=function(e){var t,r,n=this._buff,i=n.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<i;t+=1)o[t>>2]|=n.charCodeAt(t)<<(t%4<<3);return this._finish(o,i),r=l(this._hash),e&&(r=m(r)),this.reset(),r},f.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},f.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},f.prototype.setState=function(e){return this._buff=e.buff,this._length=e.length,this._hash=e.hash,this},f.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},f.prototype._finish=function(e,t){var n,i,o,s=t;if(e[s>>2]|=128<<(s%4<<3),s>55)for(r(this._hash,e),s=0;s<16;s+=1)e[s]=0;n=(n=8*this._length).toString(16).match(/(.*?)(.{0,8})$/),i=parseInt(n[2],16),o=parseInt(n[1],16)||0,e[14]=i,e[15]=o,r(this._hash,e)},f.hash=function(e,t){return f.hashBinary(c(e),t)},f.hashBinary=function(e,t){var r=l(o(e));return t?m(r):r},f.ArrayBuffer=function(){this.reset()},f.ArrayBuffer.prototype.append=function(e){var t,n=d(this._buff.buffer,e),o=n.length;for(this._length+=e.byteLength,t=64;t<=o;t+=64)r(this._hash,i(n.subarray(t-64,t)));return this._buff=t-64<o?new Uint8Array(n.buffer.slice(t-64)):new Uint8Array(0),this},f.ArrayBuffer.prototype.end=function(e){var t,r,n=this._buff,i=n.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<i;t+=1)o[t>>2]|=n[t]<<(t%4<<3);return this._finish(o,i),r=l(this._hash),e&&(r=m(r)),this.reset(),r},f.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},f.ArrayBuffer.prototype.getState=function(){var e=f.prototype.getState.call(this);return e.buff=p(e.buff),e},f.ArrayBuffer.prototype.setState=function(e){return e.buff=u(e.buff,!0),f.prototype.setState.call(this,e)},f.ArrayBuffer.prototype.destroy=f.prototype.destroy,f.ArrayBuffer.prototype._finish=f.prototype._finish,f.ArrayBuffer.hash=function(e,t){var r=l(s(new Uint8Array(e)));return t?m(r):r},f}());const qO=e=>{const t="application/octet-stream";var r;return r=e,"undefined"!=typeof File&&r instanceof File?zO.getType(e.name)||t:e.type||t},UO=e=>{let t=e;try{t=decodeURIComponent(t)}catch(n){}const r=t.split("/");for(let i=0;i<r.length;i++){const e=r[i];let t;try{t=decodeURIComponent(e)}catch(n){t=e}const o=encodeURIComponent(t);r[i]=o.replace(/\+/g,"%2B")}return{encode:r.join("/"),decode:t}};class HO{constructor(e){r(this,"baseURL"),this.baseURL=e}async upload(e,t,r,n,i){return this.uploadWithAuth(t,r,n,{utoken:e},i)}async uploadToAliyun(e,t,r,n){try{let o=function(){u&&p&&u.abortMultipartUpload(p.name,p.uploadId)};const{encode:s,decode:a}=UO(r),l=`${e.prefixDir}${a}`,c=`${e.prefixDir}${s}`,u=new fR(e);let p;const d={progress:function(e,t){p=t;const r=Math.floor(100*e);n&&n.callback&&n.callback.onProgress&&n.callback.onProgress(r)}};n&&n.callback&&n.callback.AbortController&&n.callback.AbortController(o),n&&n.timeout&&(d.timeout=n.timeout),n&&n.contentType&&(d.mime=n.contentType);const m={};n&&n.contentDisposition&&(m["Content-Disposition"]=n.contentDisposition),n&&n.contentEncoding&&(m["Content-Encoding"]=n.contentEncoding),e&&e.overwrite?m["x-oss-forbid-overwrite"]="false":m["x-oss-forbid-overwrite"]="true",i=m,0!==Object.keys(i).length&&(d.headers=m);const f=await u.multipartUpload(l,t,d);if(200===f.res.status){const t=`https://${e.host}/${c}`;n&&n.callback&&n.callback.onSuccess&&n.callback.onSuccess(t)}else n&&n.callback&&n.callback.onError&&n.callback.onError(new Error(`upload error status ${f.res.status}`))}catch(o){n&&n.callback&&n.callback.onError&&n.callback.onError(o)}var i}async uploadToAzure(e,t,r,n){try{let i=function(){l.abort()};const{encode:o}=UO(r),s=`${e.prefixDir}${o}`,a={maxSingleShotSize:1048576};let l=new Eg;if(n&&n.timeout){const e=l.signal,t=Eg.timeout(n.timeout);l=new Eg(e,t)}a.abortSignal=l.signal,n&&n.callback&&n.callback.AbortController&&n.callback.AbortController(i);let c="";c=n&&n.contentType?n.contentType:qO(t),a.blobHTTPHeaders={blobContentType:c},n&&n.contentDisposition&&(a.blobHTTPHeaders.blobContentDisposition=n.contentDisposition),n&&n.contentEncoding&&(a.blobHTTPHeaders.blobContentEncoding=n.contentEncoding),e&&!e.overwrite&&(a.conditions={ifNoneMatch:"*"});const u=(e=>e.size)(t);a.onProgress=e=>{const t=u>0?Math.floor(e.loadedBytes/u*100):0;n&&n.callback&&n.callback.onProgress&&n.callback.onProgress(t)};const p=`https://${e.ossHost}/${e.bucket}/${s}?${e.stsToken}`,d=new aR(p),m=await d.uploadData(t,a);if(m.errorCode)n&&n.callback&&n.callback.onError&&n.callback.onError(new Error(`upload error status ${m.errorCode}`));else{const t=`https://${e.host}/${e.bucket}/${s}`;n&&n.callback&&n.callback.onSuccess&&n.callback.onSuccess(t)}}catch(i){n&&n.callback&&n.callback.onError&&n.callback.onError(i)}}async uploadToCloudflare(e,t,r,n){var i,o,s;try{const{encode:o,decode:s}=UO(r),a=`${e.prefixDir}${s}`,l=`${e.prefixDir}${o}`,c=`https://${e.region}.r2.cloudflarestorage.com`,u=new pg({region:"auto",endpoint:c,credentials:{accessKeyId:e.accessKeyId,secretAccessKey:e.accessKeySecret,sessionToken:e.stsToken},forcePathStyle:!0}),p={Bucket:e.bucket,Key:a,Body:t,ContentType:(null==n?void 0:n.contentType)||qO(t)};(null==n?void 0:n.contentDisposition)&&(p.ContentDisposition=n.contentDisposition),(null==n?void 0:n.contentEncoding)&&(p.ContentEncoding=n.contentEncoding),e&&!e.overwrite&&(p.IfNoneMatch="*");let d=null;(null==n?void 0:n.timeout)&&(d=new globalThis.AbortController,setTimeout(()=>{null==d||d.abort()},n.timeout)),(null==(i=null==n?void 0:n.callback)?void 0:i.AbortController)&&n.callback.AbortController(()=>{null==d||d.abort()});let m=`https://${e.host}/${l}`;e.host!==e.ossHost||e.host.startsWith(`${e.bucket}.`)||(m=`https://${e.host}/${e.bucket}/${l}`),t.size<=5242880?await this.handleSingleUpload(t,m,p,n,u,d):await this.handleMultipartUpload(t,m,p,n,u)}catch(a){null==(s=null==(o=null==n?void 0:n.callback)?void 0:o.onError)||s.call(o,a)}}async handleSingleUpload(e,t,r,n,i,o){var s,a,l,c;const u=await e.arrayBuffer(),p=new Uint8Array(u),d=new bg({...r,Body:p}),m=Date.now(),f=Math.max(1e3,e.size/1048576*500),h=setInterval(()=>{var e,t;const r=Date.now()-m,i=Math.min(95,Math.floor(r/f*95));null==(t=null==(e=null==n?void 0:n.callback)?void 0:e.onProgress)||t.call(e,i)},100);try{if(!(await(null==i?void 0:i.send(d,{abortSignal:null==o?void 0:o.signal}))))throw new Error("Upload failed: no result from S3 client");clearInterval(h),null==(a=null==(s=null==n?void 0:n.callback)?void 0:s.onProgress)||a.call(s,100),null==(c=null==(l=null==n?void 0:n.callback)?void 0:l.onSuccess)||c.call(l,t)}catch(y){throw clearInterval(h),y}}async handleMultipartUpload(e,t,r,n,i){var o,s,a,l;const c=5242880,u=Math.ceil(e.size/c);let p=0;const d=new gg({Bucket:r.Bucket,Key:r.Key,ContentType:r.ContentType}),m=await(null==i?void 0:i.send(d));if(!m)throw new Error("Failed to create multipart upload: no result from S3 client");const f=m.UploadId;if(!f)throw new Error("Failed to create multipart upload");const h=[];try{for(let t=0;t<u;t++){const a=t*c,l=Math.min(a+c,e.size),d=e.slice(a,l),m=await d.arrayBuffer(),y=new Uint8Array(m),g=new vg({Bucket:r.Bucket,Key:r.Key,UploadId:f,PartNumber:t+1,Body:y}),b=await(null==i?void 0:i.send(g));if(!b)throw new Error(`Failed to upload part ${t+1}: no result from S3 client`);h.push({ETag:b.ETag,PartNumber:t+1}),p++;const v=Math.floor(p/u*100);null==(s=null==(o=null==n?void 0:n.callback)?void 0:o.onProgress)||s.call(o,v)}const d=new yg({Bucket:r.Bucket,Key:r.Key,UploadId:f,MultipartUpload:{Parts:h}});await(null==i?void 0:i.send(d)),null==(l=null==(a=null==n?void 0:n.callback)?void 0:a.onSuccess)||l.call(a,t)}catch(y){const e=new dg({Bucket:r.Bucket,Key:r.Key,UploadId:f});try{await(null==i?void 0:i.send(e))}catch(g){}throw y}}async uploadWithConfig(e,t,r,n){switch(e.ossType){case 0:await this.uploadToAliyun(e,t,r,n);break;case 2:await this.uploadToAzure(e,t,r,n);break;case 3:await this.uploadToCloudflare(e,t,r,n)}}async getToken(e,t){return this.getConfigWithAuth(t,{utoken:e})}async getConfigWithAuth(e,t){const r=await((e,t,r)=>{const n={};return r.utoken&&(n.utoken=r.utoken),r.authToken&&(n["x-auth-token"]=r.authToken),r.efficacyToken&&(n["x-efficacy-api-token"]=r.efficacyToken),CO({baseURL:e,url:`${kO}/ststoken/${t}`,method:"GET",timeout:2e4,headers:n})})(this.baseURL,e,t);if(0!==r.data.code)throw new Error("auth error");const n=r.data.data,i=n.ossConfig;return{accessKeyId:n.accessKeyId,accessKeySecret:n.accessKeySecret,stsToken:n.stsToken,host:n.host,ossType:i.ossType,region:i.region,bucket:i.bucket,prefixDir:i.prefixDir,ossHost:i.ossHost,overwrite:i.overwrite}}async uploadWithAuth(e,t,r,n,i){var o,s;try{const o=await this.getConfigWithAuth(e,n);await this.uploadWithConfig(o,t,r,i)}catch(a){null==(s=null==(o=null==i?void 0:i.callback)?void 0:o.onError)||s.call(o,a)}}async uploadWithAppKey(e,t,r,n,i){var o,s;try{const o=await((e,t)=>CO({baseURL:e,url:kO+`/public/token/${t}`,method:"GET",timeout:2e4}))(this.baseURL,n),s=o.data.data.token;await this.uploadWithAuth(e,t,r,{authToken:s},i)}catch(a){null==(s=null==(o=null==i?void 0:i.callback)?void 0:o.onError)||s.call(o,a)}}}class FO{constructor(e,t,n){r(this,"appKey"),r(this,"env"),r(this,"http"),r(this,"uploader",null),this.appKey=e,this.env=t,this.http=n}async save(e){const{title:t="Draft",snapshot:r,cover:n,originImage:i,id:o}=e,[s,a]=await Promise.all([n?this._uploadCanvas(n,o?String(o):void 0):Promise.resolve(""),i?this._uploadOriginImage(i):Promise.resolve("")]),l=!o,c={title:t,info:{version:"1.0.0",...r,originImageUrl:a||""},category:this.appKey,cover:s||""};l||(c.id=Number(o));const u=await this.http.request({method:l?"POST":"PUT",url:"/ai/v5/artimind/generator",data:c});return{id:l?null==u?void 0:u.id:Number(o),isNew:l}}async restore(e){const t=await this.http.request({method:"GET",url:`/ai/v5/artimind/generator/${e}`});return this._normalizeRecord(t)}async delete(e){await this.http.request({method:"DELETE",url:`/ai/v5/artimind/generator/${e}`})}_normalizeRecord(e){const{originImageUrl:t,...r}=e.info??{};return{id:e.id,title:e.title,cover:e.cover,snapshot:r,originImageUrl:t||"",createdAt:e.created_at,updatedAt:e.updated_at}}getUploader(){if(!this.uploader){const e=Ct(this.env);this.uploader=new HO(e)}return this.uploader}async _uploadCanvas(e,t){let r;try{r=e.toDataURL("image/png")}catch{return""}const n=this._dataUrlToFile(r,`${t??Pr()}.png`);return this._uploadFile(n,t)}async _uploadOriginImage(e){if("string"==typeof e&&(e.startsWith("http://")||e.startsWith("https://")))return e;let t;if(e instanceof HTMLCanvasElement)try{t=e.toDataURL("image/png")}catch{return""}else t=e;const r=this._dataUrlToFile(t,`${Pr()}.png`);return this._uploadFile(r)}_uploadFile(e,t){return new Promise((r,n)=>{const i=Tt(this.appKey),o=t??Pr();this.getUploader().upload(i,Et,e,o,{contentType:e.type,callback:{onSuccess:e=>r(e),onError:e=>n(e)}})})}_dataUrlToFile(e,t){var r;const[n,i]=e.split(","),o=(null==(r=n.match(/:(.*?);/))?void 0:r[1])??"image/png",s=atob(i),a=new Uint8Array(s.length);for(let l=0;l<s.length;l++)a[l]=s.charCodeAt(l);return new File([a],t,{type:o})}}class $O{constructor(e){r(this,"http"),r(this,"emitter",new jr),r(this,"_balance",0),this.http=e}async getBalance(){const e=await this.http.request({method:"GET",url:"/ai/v1/credit/getBalance"});return this._balance=e.quota,this.emitter.emit("change",e.quota),e}async consume(e){const t=await this.http.request({method:"POST",url:"/sdk/v1/credits/consume",data:{amount:e.amount,action:e.action}});return t.success&&(this._balance=t.balance,this.emitter.emit("change",t.balance)),t}onChange(e){return this.emitter.on("change",e)}getCachedBalance(){return this._balance}}class VO{constructor(e,t,n){r(this,"appKey"),r(this,"env"),r(this,"http"),r(this,"provider",null),r(this,"uploader",null),this.appKey=e,this.env=t,this.http=n}register(e){this.provider=e}async download(e){var t,r;const n=await this._getCanvas("download"),i=(null==e?void 0:e.format)??"png",o="svg"===i?"image/svg+xml":"image/png",s=(null==e?void 0:e.fileName)??(null==(r=null==(t=this.provider)?void 0:t.getFileName)?void 0:r.call(t,"download"))??`export-${Date.now()}.${i}`,a=await new Promise(e=>n.toBlob(e,o));if(!a)throw new Ot(-1,"Failed to create blob from canvas");const l=URL.createObjectURL(a),c=document.createElement("a");return c.download=s,c.href=l,c.style.display="none",document.body.appendChild(c),c.click(),setTimeout(()=>{URL.revokeObjectURL(l),document.body.removeChild(c)},1e3),{success:!0,fileName:s}}async openInStudio(e){const t=await this._resolveStudioAsset(e),r="url"===t.type?t.url:await this._uploadFile(t.file);return this._openStudioProtocol(r),{success:!0}}async _getCanvas(e){if(!this.provider)throw new Ot(-1,"Export provider not registered. Call sdk.export.register() first.");const t=await Promise.resolve(this.provider.getExportCanvas(e));if(!t)throw new Ot(-1,`No canvas available for purpose: ${e}`);return t}async _resolveStudioAsset(e){if("string"==typeof e){if(this._isDataUrl(e))return{type:"file",file:this._dataUrlToFile(e,`${Pr()}.png`)};if(this._isHttpUrl(e))return{type:"url",url:e};throw new Ot(-1,"Invalid openInStudio source. Expected an image URL or data URL.")}if(e instanceof File)return{type:"file",file:e};if(e instanceof Blob)return{type:"file",file:this._blobToFile(e)};const t=await this._getCanvas("studio");let r;try{r=t.toDataURL("image/png")}catch{throw new Ot(-1,"Failed to export canvas (cross-origin taint?)")}return{type:"file",file:this._dataUrlToFile(r,`${Pr()}.png`)}}_getUploader(){if(!this.uploader){const e=Ct(this.env);this.uploader=new HO(e)}return this.uploader}_uploadFile(e){return new Promise((t,r)=>{const n=Tt(this.appKey),i=Pr();this._getUploader().upload(n,Et,e,i,{contentType:e.type,callback:{onSuccess:e=>t(e),onError:e=>r(e)}})})}_openStudioProtocol(e){const t={event:{name:"OpenOSSImage",data:{url:e,source:"aimake",aimakeInfo:{generator:this.appKey}}},query:{token:""}};try{const r=`xtool://external/?${btoa(encodeURIComponent(JSON.stringify(t)).replace(/%([0-9A-F]{2})/g,(e,t)=>String.fromCharCode(parseInt(t,16))))}`;window.parent!==window?window.parent.postMessage({eventName:"ExternalAppAddToCanvas",payload:{urls:[{type:"2D",url:e,aimakeInfo:{generator:this.appKey}}]}},"*"):window.location.href=r}catch{window.open(e,"_blank")}}_dataUrlToFile(e,t){var r;const[n,i]=e.split(","),o=(null==(r=n.match(/:(.*?);/))?void 0:r[1])??"image/png",s=atob(i),a=new Uint8Array(s.length);for(let l=0;l<s.length;l++)a[l]=s.charCodeAt(l);return new File([a],t,{type:o})}_blobToFile(e){const t=e.type||"image/png",r=this._mimeTypeToExtension(t);return new File([e],`${Pr()}.${r}`,{type:t})}_isDataUrl(e){return/^data:image\/[a-zA-Z0-9.+-]+;base64,/.test(e)}_isHttpUrl(e){try{const t=new URL(e);return"http:"===t.protocol||"https:"===t.protocol}catch{return!1}}_mimeTypeToExtension(e){var t;return"image/svg+xml"===e?"svg":(null==(t=e.split("/")[1])?void 0:t.split("+")[0])??"png"}}class GO{constructor(e,t){r(this,"appKey"),r(this,"http"),this.appKey=e,this.http=t}async getList(e={}){const{page:t=1,pageSize:r=20}=e,n=await this.http.request({method:"POST",url:"/ai/v5/artimind/generator/type",data:{category:this.appKey,page:t,page_size:r}}),i=Array.isArray(n)?n:[];return{total:i.length,items:i.map(e=>({id:e.id,title:e.title,cover:e.cover,createdAt:e.created_at,updatedAt:e.updated_at}))}}async getDetail(e){const t=await this.http.request({method:"GET",url:`/ai/v5/artimind/generator/${e}`});return this._normalizeRecord(t)}async delete(e){await this.http.request({method:"DELETE",url:`/ai/v5/artimind/generator/${e}`})}_normalizeRecord(e){const{originImageUrl:t,...r}=e.info??{};return{id:e.id,title:e.title,cover:e.cover,snapshot:r,originImageUrl:t||"",createdAt:e.created_at,updatedAt:e.updated_at}}}const WO="generator-template",KO="1.0.0";function XO(e){return JSON.parse(JSON.stringify(e))}function QO(e){return null!==e&&"object"==typeof e&&!Array.isArray(e)}function YO(e,t){if(!e)throw new Error(`[GeneratorSDK.template] ${t}`)}function JO(e){YO(QO(e),"template must be an object"),YO(e.type===WO,`template.type must be "${WO}"`),YO(e.version===KO,`template.version must be "${KO}"`),YO("string"==typeof e.generatorId&&e.generatorId.trim(),"template.generatorId is required"),YO(QO(e.defaults),"template.defaults must be an object"),YO(QO(e.panelFilter),"template.panelFilter must be an object"),YO(Array.isArray(e.adjustableFields),"template.adjustableFields must be an array"),e.adjustableFields.forEach((e,t)=>{YO(QO(e),`template.adjustableFields[${t}] must be an object`),YO("string"==typeof e.groupId&&e.groupId.trim(),`template.adjustableFields[${t}].groupId is required`),YO("string"==typeof e.fieldId&&e.fieldId.trim(),`template.adjustableFields[${t}].fieldId is required`),YO("string"==typeof e.path&&e.path.trim(),`template.adjustableFields[${t}].path is required`)})}class ZO{getFieldOptions(e){const{panelSchema:t}=e;return YO(QO(t),"panelSchema must be an object"),YO(Array.isArray(t.groups),"panelSchema.groups must be an array"),t.groups.flatMap(e=>e&&Array.isArray(e.fields)?e.fields.flatMap(t=>{var r,n;const i=null==(n=null==(r=null==t?void 0:t.bind)?void 0:r.path)?void 0:n.trim();return(null==t?void 0:t.id)&&i?[{groupId:e.id,groupTitle:e.title,fieldId:t.id,fieldLabel:t.label,path:i}]:[]}):[])}build(e){const{generatorId:t,appKey:r,state:n,panelSchema:i,selectedFieldPaths:o,templateMeta:s,metadata:a}=e;YO("string"==typeof t&&t.trim(),"generatorId is required"),YO(QO(n),"state must be an object");const l=this.getFieldOptions({panelSchema:i}),c=(u=o,Array.from(new Set(u.map(e=>e.trim()).filter(Boolean))));var u;const p=new Map(l.map(e=>[e.path,e]));return c.forEach(e=>{YO(p.has(e),`selected field path "${e}" does not exist in panelSchema`)}),{type:WO,version:KO,generatorId:t.trim(),...r?{appKey:r}:{},...s?{templateMeta:XO(s)}:{},defaults:XO(n),panelFilter:c.length>0?{includeFields:c}:{},adjustableFields:c.map(e=>p.get(e)).filter(e=>Boolean(e)).map(e=>XO(e)),...a?{metadata:XO(a)}:{}}}serialize(e){return JO(e),JSON.stringify(e,null,2)}parse(e){let t;try{t=JSON.parse(e)}catch{throw new Error("[GeneratorSDK.template] invalid JSON text")}return JO(t),XO(t)}download(e,t){JO(e),YO("undefined"!=typeof document,"download is only available in browser environments"),YO("undefined"!=typeof Blob,"Blob is not available in current environment"),YO("undefined"!=typeof URL,"URL is not available in current environment");const r=(null==t?void 0:t.fileName)??`${e.generatorId}-template.json`,n=new Blob([this.serialize(e)],{type:"application/json;charset=utf-8"}),i=URL.createObjectURL(n),o=document.createElement("a");o.href=i,o.download=r,o.style.display="none",document.body.appendChild(o),o.click(),setTimeout(()=>{URL.revokeObjectURL(i),o.remove()},0)}toRuntimeSnapshot(e){return JO(e),{state:XO(e.defaults),panelFilter:XO(e.panelFilter)}}async applyToRuntime(e,t,r){YO(e&&"function"==typeof e.setState,"runtime.setState is required");const n=this.toRuntimeSnapshot(t);await e.setState(n.state,{source:(null==r?void 0:r.source)??"template"}),(null==r?void 0:r.onPanelFilter)&&await r.onPanelFilter(n.panelFilter)}}const eP=new Map;class tP{constructor(e){r(this,"auth"),r(this,"cloud"),r(this,"history"),r(this,"credits"),r(this,"billing"),r(this,"export"),r(this,"template"),r(this,"appKey"),r(this,"env");const{appKey:t,env:n}=e;this.appKey=t,this.env=n;const i=Pt(t,n,()=>{this.auth.logout()});this.auth=new Cr(t,n,i),this.cloud=new FO(t,n,i),this.history=new GO(t,i),this.credits=new $O(i),this.billing=new _r(t,i,this.credits),this.export=new VO(t,n,i),this.template=new ZO}static init(e){if(!e.appKey)throw new Error("[GeneratorSDK] appKey is required");const t=e.env??"prod",r=`${e.appKey}::${t}`;if(eP.has(r))return eP.get(r);const n=new tP({appKey:e.appKey,env:t});return eP.set(r,n),n}static _clearCache(){eP.clear()}}tP.SdkError=Ot,tP.withBilling=async(e,t,r)=>{var n;const i=e.check();if(!i.canProceed)throw new Ot(40301,"Insufficient credits. Please purchase more credits.");const o=await t();let s;return s="free_period"===i.reason?{freeRemaining:(null==(n=e.getCachedUsage())?void 0:n.freeRemaining)??0,isCredit:!1}:await e.consume(r),{result:o,billing:s}};const rP=Object.freeze(Object.defineProperty({__proto__:null,EventStreamSerde:class{constructor({marshaller:e,serializer:t,deserializer:n,serdeContext:i,defaultContentType:o}){r(this,"marshaller"),r(this,"serializer"),r(this,"deserializer"),r(this,"serdeContext"),r(this,"defaultContentType"),this.marshaller=e,this.serializer=t,this.deserializer=n,this.serdeContext=i,this.defaultContentType=o}async serializeEventStream({eventStream:e,requestSchema:t,initialRequest:r}){const n=this.marshaller,i=t.getEventStreamMember(),o=t.getMemberSchema(i),s=this.serializer,a=this.defaultContentType,l=Symbol("initialRequestMarker"),c={async*[Symbol.asyncIterator](){if(r){const e={":event-type":{type:"string",value:"initial-request"},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:a}};s.write(t,r);const n=s.flush();yield{[l]:!0,headers:e,body:n}}for await(const t of e)yield t}};return n.serialize(c,e=>{if(e[l])return{headers:e.headers,body:e.body};const t=Object.keys(e).find(e=>"__type"!==e)??"",{additionalHeaders:r,body:n,eventType:i,explicitPayloadContentType:s}=this.writeEventBody(t,o,e);return{headers:{":event-type":{type:"string",value:i},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:s??a},...r},body:n}})}async deserializeEventStream({response:e,responseSchema:t,initialResponseContainer:r}){var n;const i=this.marshaller,o=t.getEventStreamMember(),s=t.getMemberSchema(o).getMemberSchemas(),a=Symbol("initialResponseMarker"),l=i.deserialize(e.body,async e=>{var r,n;const i=Object.keys(e).find(e=>"__type"!==e)??"",l=e[i].body;if("initial-response"===i){const e=await this.deserializer.read(t,l);return delete e[o],{[a]:!0,...e}}if(i in s){const t=s[i];if(t.isStructSchema()){const o={};let s=!1;for(const[a,c]of t.structIterator()){const{eventHeader:t,eventPayload:u}=c.getMergedTraits();if(s=s||Boolean(t||u),u)c.isBlobSchema()?o[a]=l:c.isStringSchema()?o[a]=((null==(r=this.serdeContext)?void 0:r.utf8Encoder)??Nn)(l):c.isStructSchema()&&(o[a]=await this.deserializer.read(c,l));else if(t){const t=null==(n=e[i].headers[a])?void 0:n.value;null!=t&&(c.isNumericSchema()?o[a]=t&&"object"==typeof t&&"bytes"in t?BigInt(t.toString()):Number(t):o[a]=t)}}if(s)return{[i]:o};if(0===l.byteLength)return{[i]:{}}}return{[i]:await this.deserializer.read(t,l)}}return{$unknown:e}}),c=l[Symbol.asyncIterator](),u=await c.next();if(u.done)return l;if(null==(n=u.value)?void 0:n[a]){if(!t)throw new Error("@smithy::core/protocols - initial-response event encountered in event stream but no response schema given.");for(const[e,t]of Object.entries(u.value))r[e]=t}return{async*[Symbol.asyncIterator](){var e;for((null==(e=null==u?void 0:u.value)?void 0:e[a])||(yield u.value);;){const{done:e,value:t}=await c.next();if(e)break;yield t}}}}writeEventBody(e,t,r){var n;const i=this.serializer;let o,s=e,a=null;const l={};if(t.getSchema()[4].includes(e)){const n=t.getMemberSchema(e);if(n.isStructSchema()){for(const[t,i]of n.structIterator()){const{eventHeader:n,eventPayload:o}=i.getMergedTraits();if(o)a=t;else if(n){const n=r[e][t];let o="binary";i.isNumericSchema()?o=(-2)**31<=n&&n<=2**31-1?"integer":"long":i.isTimestampSchema()?o="timestamp":i.isStringSchema()?o="string":i.isBooleanSchema()&&(o="boolean"),null!=n&&(l[t]={type:o,value:n},delete r[e][t])}}if(null!==a){const t=n.getMemberSchema(a);t.isBlobSchema()?o="application/octet-stream":t.isStringSchema()&&(o="text/plain"),i.write(t,r[e][a])}else i.write(n,r[e])}else{if(!n.isUnitSchema())throw new Error("@smithy/core/event-streams - non-struct member not supported in event stream union.");i.write(n,{})}}else{const[t,n]=r[e];s=t,i.write(15,n)}const c=i.flush()??new Uint8Array;return{body:"string"==typeof c?((null==(n=this.serdeContext)?void 0:n.utf8Decoder)??wn)(c):c,eventType:s,explicitPayloadContentType:o,additionalHeaders:l}}}},Symbol.toStringTag,{value:"Module"}));return tP});
|