Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 

15 Zeilen
197 KiB

  1. (self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[5754],{65754:function(At){(function(he,w){At.exports=w()})(this,function(){return function(re){var he={};function w(P){if(he[P])return he[P].exports;var b=he[P]={i:P,l:!1,exports:{}};return re[P].call(b.exports,b,b.exports,w),b.l=!0,b.exports}return w.m=re,w.c=he,w.d=function(P,b,l){w.o(P,b)||Object.defineProperty(P,b,{enumerable:!0,get:l})},w.r=function(P){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(P,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(P,"__esModule",{value:!0})},w.t=function(P,b){if(b&1&&(P=w(P)),b&8||b&4&&typeof P=="object"&&P&&P.__esModule)return P;var l=Object.create(null);if(w.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:P}),b&2&&typeof P!="string")for(var U in P)w.d(l,U,function(I){return P[I]}.bind(null,U));return l},w.n=function(P){var b=P&&P.__esModule?function(){return P.default}:function(){return P};return w.d(b,"a",b),b},w.o=function(P,b){return Object.prototype.hasOwnProperty.call(P,b)},w.p="/dist/",w(w.s="./index.js")}({"./index.js":function(re,he,w){var P=w("./src/cos.js");re.exports=P},"./lib/base64.js":function(re,he){var w=function(P){P=P||{};var b=P.Base64,l="2.1.9",U,I="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",H=function(d){for(var f={},m=0,g=d.length;m<g;m++)f[d.charAt(m)]=m;return f}(I),D=String.fromCharCode,k=function(f){if(f.length<2){var m=f.charCodeAt(0);return m<128?f:m<2048?D(192|m>>>6)+D(128|m&63):D(224|m>>>12&15)+D(128|m>>>6&63)+D(128|m&63)}else{var m=65536+(f.charCodeAt(0)-55296)*1024+(f.charCodeAt(1)-56320);return D(240|m>>>18&7)+D(128|m>>>12&63)+D(128|m>>>6&63)+D(128|m&63)}},N=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,B=function(f){return f.replace(N,k)},L=function(f){var m=[0,2,1][f.length%3],g=f.charCodeAt(0)<<16|(f.length>1?f.charCodeAt(1):0)<<8|(f.length>2?f.charCodeAt(2):0),M=[I.charAt(g>>>18),I.charAt(g>>>12&63),m>=2?"=":I.charAt(g>>>6&63),m>=1?"=":I.charAt(g&63)];return M.join("")},T=P.btoa?function(d){return P.btoa(d)}:function(d){return d.replace(/[\s\S]{1,3}/g,L)},O=U?function(d){return(d.constructor===U.constructor?d:new U(d)).toString("base64")}:function(d){return T(B(d))},j=function(f,m){return m?O(String(f)).replace(/[+\/]/g,function(g){return g=="+"?"-":"_"}).replace(/=/g,""):O(String(f))},R=function(f){return j(f,!0)},ne=new RegExp(["[\xC0-\xDF][\x80-\xBF]","[\xE0-\xEF][\x80-\xBF]{2}","[\xF0-\xF7][\x80-\xBF]{3}"].join("|"),"g"),x=function(f){switch(f.length){case 4:var m=(7&f.charCodeAt(0))<<18|(63&f.charCodeAt(1))<<12|(63&f.charCodeAt(2))<<6|63&f.charCodeAt(3),g=m-65536;return D((g>>>10)+55296)+D((g&1023)+56320);case 3:return D((15&f.charCodeAt(0))<<12|(63&f.charCodeAt(1))<<6|63&f.charCodeAt(2));default:return D((31&f.charCodeAt(0))<<6|63&f.charCodeAt(1))}},C=function(f){return f.replace(ne,x)},p=function(f){var m=f.length,g=m%4,M=(m>0?H[f.charAt(0)]<<18:0)|(m>1?H[f.charAt(1)]<<12:0)|(m>2?H[f.charAt(2)]<<6:0)|(m>3?H[f.charAt(3)]:0),q=[D(M>>>16),D(M>>>8&255),D(M&255)];return q.length-=[0,0,2,1][g],q.join("")},A=P.atob?function(d){return P.atob(d)}:function(d){return d.replace(/[\s\S]{1,4}/g,p)},i=U?function(d){return(d.constructor===U.constructor?d:new U(d,"base64")).toString()}:function(d){return C(A(d))},u=function(f){return i(String(f).replace(/[-_]/g,function(m){return m=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,""))},c=function(){var f=P.Base64;return P.Base64=b,f},a={VERSION:l,atob:A,btoa:T,fromBase64:u,toBase64:j,utob:B,encode:j,encodeURI:R,btou:C,decode:u,noConflict:c};return a}();re.exports=w},"./lib/crypto.js":function(re,he,w){(function(P){var b=w("./node_modules/@babel/runtime/helpers/typeof.js"),l=l||function(U,I){var H={},D=H.lib={},k=function(){},N=D.Base={extend:function(C){k.prototype=this;var p=new k;return C&&p.mixIn(C),p.hasOwnProperty("init")||(p.init=function(){p.$super.init.apply(this,arguments)}),p.init.prototype=p,p.$super=this,p},create:function(){var C=this.extend();return C.init.apply(C,arguments),C},init:function(){},mixIn:function(C){for(var p in C)C.hasOwnProperty(p)&&(this[p]=C[p]);C.hasOwnProperty("toString")&&(this.toString=C.toString)},clone:function(){return this.init.prototype.extend(this)}},B=D.WordArray=N.extend({init:function(C,p){C=this.words=C||[],this.sigBytes=p!=I?p:4*C.length},toString:function(C){return(C||T).stringify(this)},concat:function(C){var p=this.words,A=C.words,i=this.sigBytes;if(C=C.sigBytes,this.clamp(),i%4)for(var u=0;u<C;u++)p[i+u>>>2]|=(A[u>>>2]>>>24-8*(u%4)&255)<<24-8*((i+u)%4);else if(65535<A.length)for(u=0;u<C;u+=4)p[i+u>>>2]=A[u>>>2];else p.push.apply(p,A);return this.sigBytes+=C,this},clamp:function(){var C=this.words,p=this.sigBytes;C[p>>>2]&=4294967295<<32-8*(p%4),C.length=U.ceil(p/4)},clone:function(){var C=N.clone.call(this);return C.words=this.words.slice(0),C},random:function(C){for(var p=[],A=0;A<C;A+=4)p.push(4294967296*U.random()|0);return new B.init(p,C)}}),L=H.enc={},T=L.Hex={stringify:function(C){var p=C.words;C=C.sigBytes;for(var A=[],i=0;i<C;i++){var u=p[i>>>2]>>>24-8*(i%4)&255;A.push((u>>>4).toString(16)),A.push((u&15).toString(16))}return A.join("")},parse:function(C){for(var p=C.length,A=[],i=0;i<p;i+=2)A[i>>>3]|=parseInt(C.substr(i,2),16)<<24-4*(i%8);return new B.init(A,p/2)}},O=L.Latin1={stringify:function(C){var p=C.words;C=C.sigBytes;for(var A=[],i=0;i<C;i++)A.push(String.fromCharCode(p[i>>>2]>>>24-8*(i%4)&255));return A.join("")},parse:function(C){for(var p=C.length,A=[],i=0;i<p;i++)A[i>>>2]|=(C.charCodeAt(i)&255)<<24-8*(i%4);return new B.init(A,p)}},j=L.Utf8={stringify:function(C){try{return decodeURIComponent(escape(O.stringify(C)))}catch(p){throw Error("Malformed UTF-8 data")}},parse:function(C){return O.parse(unescape(encodeURIComponent(C)))}},R=D.BufferedBlockAlgorithm=N.extend({reset:function(){this._data=new B.init,this._nDataBytes=0},_append:function(C){typeof C=="string"&&(C=j.parse(C)),this._data.concat(C),this._nDataBytes+=C.sigBytes},_process:function(C){var p=this._data,A=p.words,i=p.sigBytes,u=this.blockSize,c=i/(4*u),c=C?U.ceil(c):U.max((c|0)-this._minBufferSize,0);if(C=c*u,i=U.min(4*C,i),C){for(var a=0;a<C;a+=u)this._doProcessBlock(A,a);a=A.splice(0,C),p.sigBytes-=i}return new B.init(a,i)},clone:function(){var C=N.clone.call(this);return C._data=this._data.clone(),C},_minBufferSize:0});D.Hasher=R.extend({cfg:N.extend(),init:function(C){this.cfg=this.cfg.extend(C),this.reset()},reset:function(){R.reset.call(this),this._doReset()},update:function(C){return this._append(C),this._process(),this},finalize:function(C){return C&&this._append(C),this._doFinalize()},blockSize:16,_createHelper:function(C){return function(p,A){return new C.init(A).finalize(p)}},_createHmacHelper:function(C){return function(p,A){return new ne.HMAC.init(C,A).finalize(p)}}});var ne=H.algo={};return H}(Math);(function(){var U=l,I=U.lib,H=I.WordArray,D=I.Hasher,k=[],I=U.algo.SHA1=D.extend({_doReset:function(){this._hash=new H.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(B,L){for(var T=this._hash.words,O=T[0],j=T[1],R=T[2],ne=T[3],x=T[4],C=0;80>C;C++){if(16>C)k[C]=B[L+C]|0;else{var p=k[C-3]^k[C-8]^k[C-14]^k[C-16];k[C]=p<<1|p>>>31}p=(O<<5|O>>>27)+x+k[C],p=20>C?p+((j&R|~j&ne)+1518500249):40>C?p+((j^R^ne)+1859775393):60>C?p+((j&R|j&ne|R&ne)-1894007588):p+((j^R^ne)-899497514),x=ne,ne=R,R=j<<30|j>>>2,j=O,O=p}T[0]=T[0]+O|0,T[1]=T[1]+j|0,T[2]=T[2]+R|0,T[3]=T[3]+ne|0,T[4]=T[4]+x|0},_doFinalize:function(){var B=this._data,L=B.words,T=8*this._nDataBytes,O=8*B.sigBytes;return L[O>>>5]|=128<<24-O%32,L[(O+64>>>9<<4)+14]=Math.floor(T/4294967296),L[(O+64>>>9<<4)+15]=T,B.sigBytes=4*L.length,this._process(),this._hash},clone:function(){var B=D.clone.call(this);return B._hash=this._hash.clone(),B}});U.SHA1=D._createHelper(I),U.HmacSHA1=D._createHmacHelper(I)})(),function(){var U=l,I=U.enc.Utf8;U.algo.HMAC=U.lib.Base.extend({init:function(D,k){D=this._hasher=new D.init,typeof k=="string"&&(k=I.parse(k));var N=D.blockSize,B=4*N;k.sigBytes>B&&(k=D.finalize(k)),k.clamp();for(var L=this._oKey=k.clone(),T=this._iKey=k.clone(),O=L.words,j=T.words,R=0;R<N;R++)O[R]^=1549556828,j[R]^=909522486;L.sigBytes=T.sigBytes=B,this.reset()},reset:function(){var D=this._hasher;D.reset(),D.update(this._iKey)},update:function(D){return this._hasher.update(D),this},finalize:function(D){var k=this._hasher;return D=k.finalize(D),k.reset(),k.finalize(this._oKey.clone().concat(D))}})}(),function(){var U=l,I=U.lib,H=I.WordArray,D=U.enc,k=D.Base64={stringify:function(B){var L=B.words,T=B.sigBytes,O=this._map;B.clamp();for(var j=[],R=0;R<T;R+=3)for(var ne=L[R>>>2]>>>24-R%4*8&255,x=L[R+1>>>2]>>>24-(R+1)%4*8&255,C=L[R+2>>>2]>>>24-(R+2)%4*8&255,p=ne<<16|x<<8|C,A=0;A<4&&R+A*.75<T;A++)j.push(O.charAt(p>>>6*(3-A)&63));var i=O.charAt(64);if(i)for(;j.length%4;)j.push(i);return j.join("")},parse:function(B){var L=B.length,T=this._map,O=T.charAt(64);if(O){var j=B.indexOf(O);j!=-1&&(L=j)}for(var R=[],ne=0,x=0;x<L;x++)if(x%4){var C=T.indexOf(B.charAt(x-1))<<x%4*2,p=T.indexOf(B.charAt(x))>>>6-x%4*2;R[ne>>>2]|=(C|p)<<24-ne%4*8,ne++}return H.create(R,ne)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),b(P)==="object"?P.exports=l:window.CryptoJS=l}).call(this,w("./node_modules/webpack/buildin/module.js")(re))},"./lib/json2xml.js":function(re,he,w){var P=w("./node_modules/@babel/runtime/helpers/typeof.js"),b="a-zA-Z_\xC0-\xD6\xD8-\xF6\xF8-\xFF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FFF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD",l="-.0-9\xB7\u0300-\u036F\u203F\u2040",U=new RegExp("^([^"+b+"])|^((x|X)(m|M)(l|L))|([^"+b+l+"])","g"),I=/[^\x09\x0A\x0D\x20-\xFF\x85\xA0-\uD7FF\uE000-\uFDCF\uFDE0-\uFFFD]/gm,H=function(L){var T=[];if(L instanceof Object)for(var O in L)L.hasOwnProperty(O)&&T.push(O);return T},D=function(L,T){var O=function(R,ne,x,C,p){var A=T.indent!==void 0?T.indent:" ",i=T.prettyPrint?`
  2. `+new Array(C).join(A):"";T.removeIllegalNameCharacters&&(R=R.replace(U,"_"));var u=[i,"<",R,x||""];return ne&&ne.length>0?(u.push(">"),u.push(ne),p&&u.push(i),u.push("</"),u.push(R),u.push(">")):u.push("/>"),u.join("")};return function j(R,ne,x){var C=P(R);switch((Array.isArray?Array.isArray(R):R instanceof Array)?C="array":R instanceof Date&&(C="date"),C){case"array":var p=[];return R.map(function(c){p.push(j(c,1,x+1))}),T.prettyPrint&&p.push(`
  3. `),p.join("");break;case"date":return R.toJSON?R.toJSON():R+"";case"object":var A=[];for(var i in R)if(R.hasOwnProperty(i))if(R[i]instanceof Array)for(var u=0;u<R[i].length;u++)R[i].hasOwnProperty(u)&&A.push(O(i,j(R[i][u],0,x+1),null,x+1,H(R[i][u]).length));else A.push(O(i,j(R[i],0,x+1),null,x+1));return T.prettyPrint&&A.length>0&&A.push(`
  4. `),A.join("");break;case"function":return R();default:return T.escape?N(R):""+R}}(L,0,0)},k=function(L){var T=['<?xml version="1.0" encoding="UTF-8"'];return L&&T.push(' standalone="yes"'),T.push("?>"),T.join("")};function N(B){return(""+B).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&apos;").replace(/"/g,"&quot;").replace(I,"")}re.exports=function(B,L){if(L||(L={xmlHeader:{standalone:!0},prettyPrint:!0,indent:" ",escape:!0}),typeof B=="string")try{B=JSON.parse(B.toString())}catch(R){return!1}var T="",O="";L&&(P(L)=="object"?(L.xmlHeader&&(T=k(!!L.xmlHeader.standalone)),typeof L.docType!="undefined"&&(O="<!DOCTYPE "+L.docType+">")):T=k()),L=L||{};var j=[T,L.prettyPrint&&O?`
  5. `:"",O,D(B,L)];return j.join("").replace(/\n{2,}/g,`
  6. `).replace(/\s+$/g,"")}},"./lib/md5.js":function(re,he,w){(function(P){var b,l=w("./node_modules/@babel/runtime/helpers/typeof.js");(function(){"use strict";var U=(typeof window=="undefined"?"undefined":l(window))==="object",I=U?window:{};I.JS_MD5_NO_WINDOW&&(U=!1);var H=!U&&(typeof self=="undefined"?"undefined":l(self))==="object";H&&(I=self);var D=!I.JS_MD5_NO_COMMON_JS&&l(P)==="object"&&P.exports,k=w("./node_modules/webpack/buildin/amd-options.js"),N=!I.JS_MD5_NO_ARRAY_BUFFER&&typeof ArrayBuffer!="undefined",B="0123456789abcdef".split(""),L=[128,32768,8388608,-2147483648],T=[0,8,16,24],O=["hex","array","digest","buffer","arrayBuffer","base64"],j="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),R=[],ne;if(N){var x=new ArrayBuffer(68);ne=new Uint8Array(x),R=new Uint32Array(x)}(I.JS_MD5_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(u){return Object.prototype.toString.call(u)==="[object Array]"}),N&&(I.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(u){return l(u)==="object"&&u.buffer&&u.buffer.constructor===ArrayBuffer});var C=function(c){return function(a,d){return new A(!0).update(a,d)[c]()}},p=function(){var c=C("hex");c.getCtx=c.create=function(){return new A},c.update=function(f){return c.create().update(f)};for(var a=0;a<O.length;++a){var d=O[a];c[d]=C(d)}return c};function A(u){if(u)R[0]=R[16]=R[1]=R[2]=R[3]=R[4]=R[5]=R[6]=R[7]=R[8]=R[9]=R[10]=R[11]=R[12]=R[13]=R[14]=R[15]=0,this.blocks=R,this.buffer8=ne;else if(N){var c=new ArrayBuffer(68);this.buffer8=new Uint8Array(c),this.blocks=new Uint32Array(c)}else this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];this.h0=this.h1=this.h2=this.h3=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}A.prototype.update=function(u,c){if(!this.finalized){for(var a,d=0,f,m=u.length,g=this.blocks,M=this.buffer8;d<m;){if(this.hashed&&(this.hashed=!1,g[0]=g[16],g[16]=g[1]=g[2]=g[3]=g[4]=g[5]=g[6]=g[7]=g[8]=g[9]=g[10]=g[11]=g[12]=g[13]=g[14]=g[15]=0),N)for(f=this.start;d<m&&f<64;++d)a=u.charCodeAt(d),c||a<128?M[f++]=a:a<2048?(M[f++]=192|a>>6,M[f++]=128|a&63):a<55296||a>=57344?(M[f++]=224|a>>12,M[f++]=128|a>>6&63,M[f++]=128|a&63):(a=65536+((a&1023)<<10|u.charCodeAt(++d)&1023),M[f++]=240|a>>18,M[f++]=128|a>>12&63,M[f++]=128|a>>6&63,M[f++]=128|a&63);else for(f=this.start;d<m&&f<64;++d)a=u.charCodeAt(d),c||a<128?g[f>>2]|=a<<T[f++&3]:a<2048?(g[f>>2]|=(192|a>>6)<<T[f++&3],g[f>>2]|=(128|a&63)<<T[f++&3]):a<55296||a>=57344?(g[f>>2]|=(224|a>>12)<<T[f++&3],g[f>>2]|=(128|a>>6&63)<<T[f++&3],g[f>>2]|=(128|a&63)<<T[f++&3]):(a=65536+((a&1023)<<10|u.charCodeAt(++d)&1023),g[f>>2]|=(240|a>>18)<<T[f++&3],g[f>>2]|=(128|a>>12&63)<<T[f++&3],g[f>>2]|=(128|a>>6&63)<<T[f++&3],g[f>>2]|=(128|a&63)<<T[f++&3]);this.lastByteIndex=f,this.bytes+=f-this.start,f>=64?(this.start=f-64,this.hash(),this.hashed=!0):this.start=f}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},A.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var u=this.blocks,c=this.lastByteIndex;u[c>>2]|=L[c&3],c>=56&&(this.hashed||this.hash(),u[0]=u[16],u[16]=u[1]=u[2]=u[3]=u[4]=u[5]=u[6]=u[7]=u[8]=u[9]=u[10]=u[11]=u[12]=u[13]=u[14]=u[15]=0),u[14]=this.bytes<<3,u[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},A.prototype.hash=function(){var u,c,a,d,f,m,g=this.blocks;this.first?(u=g[0]-680876937,u=(u<<7|u>>>25)-271733879<<0,d=(-1732584194^u&2004318071)+g[1]-117830708,d=(d<<12|d>>>20)+u<<0,a=(-271733879^d&(u^-271733879))+g[2]-1126478375,a=(a<<17|a>>>15)+d<<0,c=(u^a&(d^u))+g[3]-1316259209,c=(c<<22|c>>>10)+a<<0):(u=this.h0,c=this.h1,a=this.h2,d=this.h3,u+=(d^c&(a^d))+g[0]-680876936,u=(u<<7|u>>>25)+c<<0,d+=(a^u&(c^a))+g[1]-389564586,d=(d<<12|d>>>20)+u<<0,a+=(c^d&(u^c))+g[2]+606105819,a=(a<<17|a>>>15)+d<<0,c+=(u^a&(d^u))+g[3]-1044525330,c=(c<<22|c>>>10)+a<<0),u+=(d^c&(a^d))+g[4]-176418897,u=(u<<7|u>>>25)+c<<0,d+=(a^u&(c^a))+g[5]+1200080426,d=(d<<12|d>>>20)+u<<0,a+=(c^d&(u^c))+g[6]-1473231341,a=(a<<17|a>>>15)+d<<0,c+=(u^a&(d^u))+g[7]-45705983,c=(c<<22|c>>>10)+a<<0,u+=(d^c&(a^d))+g[8]+1770035416,u=(u<<7|u>>>25)+c<<0,d+=(a^u&(c^a))+g[9]-1958414417,d=(d<<12|d>>>20)+u<<0,a+=(c^d&(u^c))+g[10]-42063,a=(a<<17|a>>>15)+d<<0,c+=(u^a&(d^u))+g[11]-1990404162,c=(c<<22|c>>>10)+a<<0,u+=(d^c&(a^d))+g[12]+1804603682,u=(u<<7|u>>>25)+c<<0,d+=(a^u&(c^a))+g[13]-40341101,d=(d<<12|d>>>20)+u<<0,a+=(c^d&(u^c))+g[14]-1502002290,a=(a<<17|a>>>15)+d<<0,c+=(u^a&(d^u))+g[15]+1236535329,c=(c<<22|c>>>10)+a<<0,u+=(a^d&(c^a))+g[1]-165796510,u=(u<<5|u>>>27)+c<<0,d+=(c^a&(u^c))+g[6]-1069501632,d=(d<<9|d>>>23)+u<<0,a+=(u^c&(d^u))+g[11]+643717713,a=(a<<14|a>>>18)+d<<0,c+=(d^u&(a^d))+g[0]-373897302,c=(c<<20|c>>>12)+a<<0,u+=(a^d&(c^a))+g[5]-701558691,u=(u<<5|u>>>27)+c<<0,d+=(c^a&(u^c))+g[10]+38016083,d=(d<<9|d>>>23)+u<<0,a+=(u^c&(d^u))+g[15]-660478335,a=(a<<14|a>>>18)+d<<0,c+=(d^u&(a^d))+g[4]-405537848,c=(c<<20|c>>>12)+a<<0,u+=(a^d&(c^a))+g[9]+568446438,u=(u<<5|u>>>27)+c<<0,d+=(c^a&(u^c))+g[14]-1019803690,d=(d<<9|d>>>23)+u<<0,a+=(u^c&(d^u))+g[3]-187363961,a=(a<<14|a>>>18)+d<<0,c+=(d^u&(a^d))+g[8]+1163531501,c=(c<<20|c>>>12)+a<<0,u+=(a^d&(c^a))+g[13]-1444681467,u=(u<<5|u>>>27)+c<<0,d+=(c^a&(u^c))+g[2]-51403784,d=(d<<9|d>>>23)+u<<0,a+=(u^c&(d^u))+g[7]+1735328473,a=(a<<14|a>>>18)+d<<0,c+=(d^u&(a^d))+g[12]-1926607734,c=(c<<20|c>>>12)+a<<0,f=c^a,u+=(f^d)+g[5]-378558,u=(u<<4|u>>>28)+c<<0,d+=(f^u)+g[8]-2022574463,d=(d<<11|d>>>21)+u<<0,m=d^u,a+=(m^c)+g[11]+1839030562,a=(a<<16|a>>>16)+d<<0,c+=(m^a)+g[14]-35309556,c=(c<<23|c>>>9)+a<<0,f=c^a,u+=(f^d)+g[1]-1530992060,u=(u<<4|u>>>28)+c<<0,d+=(f^u)+g[4]+1272893353,d=(d<<11|d>>>21)+u<<0,m=d^u,a+=(m^c)+g[7]-155497632,a=(a<<16|a>>>16)+d<<0,c+=(m^a)+g[10]-1094730640,c=(c<<23|c>>>9)+a<<0,f=c^a,u+=(f^d)+g[13]+681279174,u=(u<<4|u>>>28)+c<<0,d+=(f^u)+g[0]-358537222,d=(d<<11|d>>>21)+u<<0,m=d^u,a+=(m^c)+g[3]-722521979,a=(a<<16|a>>>16)+d<<0,c+=(m^a)+g[6]+76029189,c=(c<<23|c>>>9)+a<<0,f=c^a,u+=(f^d)+g[9]-640364487,u=(u<<4|u>>>28)+c<<0,d+=(f^u)+g[12]-421815835,d=(d<<11|d>>>21)+u<<0,m=d^u,a+=(m^c)+g[15]+530742520,a=(a<<16|a>>>16)+d<<0,c+=(m^a)+g[2]-995338651,c=(c<<23|c>>>9)+a<<0,u+=(a^(c|~d))+g[0]-198630844,u=(u<<6|u>>>26)+c<<0,d+=(c^(u|~a))+g[7]+1126891415,d=(d<<10|d>>>22)+u<<0,a+=(u^(d|~c))+g[14]-1416354905,a=(a<<15|a>>>17)+d<<0,c+=(d^(a|~u))+g[5]-57434055,c=(c<<21|c>>>11)+a<<0,u+=(a^(c|~d))+g[12]+1700485571,u=(u<<6|u>>>26)+c<<0,d+=(c^(u|~a))+g[3]-1894986606,d=(d<<10|d>>>22)+u<<0,a+=(u^(d|~c))+g[10]-1051523,a=(a<<15|a>>>17)+d<<0,c+=(d^(a|~u))+g[1]-2054922799,c=(c<<21|c>>>11)+a<<0,u+=(a^(c|~d))+g[8]+1873313359,u=(u<<6|u>>>26)+c<<0,d+=(c^(u|~a))+g[15]-30611744,d=(d<<10|d>>>22)+u<<0,a+=(u^(d|~c))+g[6]-1560198380,a=(a<<15|a>>>17)+d<<0,c+=(d^(a|~u))+g[13]+1309151649,c=(c<<21|c>>>11)+a<<0,u+=(a^(c|~d))+g[4]-145523070,u=(u<<6|u>>>26)+c<<0,d+=(c^(u|~a))+g[11]-1120210379,d=(d<<10|d>>>22)+u<<0,a+=(u^(d|~c))+g[2]+718787259,a=(a<<15|a>>>17)+d<<0,c+=(d^(a|~u))+g[9]-343485551,c=(c<<21|c>>>11)+a<<0,this.first?(this.h0=u+1732584193<<0,this.h1=c-271733879<<0,this.h2=a-1732584194<<0,this.h3=d+271733878<<0,this.first=!1):(this.h0=this.h0+u<<0,this.h1=this.h1+c<<0,this.h2=this.h2+a<<0,this.h3=this.h3+d<<0)},A.prototype.hex=function(){this.finalize();var u=this.h0,c=this.h1,a=this.h2,d=this.h3;return B[u>>4&15]+B[u&15]+B[u>>12&15]+B[u>>8&15]+B[u>>20&15]+B[u>>16&15]+B[u>>28&15]+B[u>>24&15]+B[c>>4&15]+B[c&15]+B[c>>12&15]+B[c>>8&15]+B[c>>20&15]+B[c>>16&15]+B[c>>28&15]+B[c>>24&15]+B[a>>4&15]+B[a&15]+B[a>>12&15]+B[a>>8&15]+B[a>>20&15]+B[a>>16&15]+B[a>>28&15]+B[a>>24&15]+B[d>>4&15]+B[d&15]+B[d>>12&15]+B[d>>8&15]+B[d>>20&15]+B[d>>16&15]+B[d>>28&15]+B[d>>24&15]},A.prototype.toString=A.prototype.hex,A.prototype.digest=function(u){if(u==="hex")return this.hex();this.finalize();var c=this.h0,a=this.h1,d=this.h2,f=this.h3,m=[c&255,c>>8&255,c>>16&255,c>>24&255,a&255,a>>8&255,a>>16&255,a>>24&255,d&255,d>>8&255,d>>16&255,d>>24&255,f&255,f>>8&255,f>>16&255,f>>24&255];return m},A.prototype.array=A.prototype.digest,A.prototype.arrayBuffer=function(){this.finalize();var u=new ArrayBuffer(16),c=new Uint32Array(u);return c[0]=this.h0,c[1]=this.h1,c[2]=this.h2,c[3]=this.h3,u},A.prototype.buffer=A.prototype.arrayBuffer,A.prototype.base64=function(){for(var u,c,a,d="",f=this.array(),m=0;m<15;)u=f[m++],c=f[m++],a=f[m++],d+=j[u>>>2]+j[(u<<4|c>>>4)&63]+j[(c<<2|a>>>6)&63]+j[a&63];return u=f[m],d+=j[u>>>2]+j[u<<4&63]+"==",d};var i=p();D?P.exports=i:(I.md5=i,k&&(b=function(){return i}.call(i,w,i,P),b!==void 0&&(P.exports=b)))})()}).call(this,w("./node_modules/webpack/buildin/module.js")(re))},"./lib/request.js":function(re,he,w){var P=w("./node_modules/@babel/runtime/helpers/typeof.js"),b=function(k){switch(P(k)){case"string":return k;case"boolean":return k?"true":"false";case"number":return isFinite(k)?k:"";default:return""}},l=function(k,N,B,L){return N=N||"&",B=B||"=",k===null&&(k=void 0),P(k)==="object"?Object.keys(k).map(function(T){var O=encodeURIComponent(b(T))+B;return Array.isArray(k[T])?k[T].map(function(j){return O+encodeURIComponent(b(j))}).join(N):O+encodeURIComponent(b(k[T]))}).filter(Boolean).join(N):L?encodeURIComponent(b(L))+B+encodeURIComponent(b(k)):""},U=function(k,N,B){var L={},T=N.getAllResponseHeaders();return T&&T.length>0&&T.trim().split(`
  7. `).forEach(function(O){if(O){var j=O.indexOf(":"),R=O.substr(0,j).trim().toLowerCase(),ne=O.substr(j+1).trim();L[R]=ne}}),{error:k,statusCode:N.status,statusMessage:N.statusText,headers:L,body:B}},I=function(k,N){return!N&&N==="text"?k.responseText:k.response},H=function(k,N){var B=(k.method||"GET").toUpperCase(),L=k.url;if(k.qs){var T=l(k.qs);T&&(L+=(L.indexOf("?")===-1?"?":"&")+T)}var O=new XMLHttpRequest;if(O.open(B,L,!0),O.responseType=k.dataType||"text",k.xhrFields)for(var j in k.xhrFields)O[j]=k.xhrFields[j];var R=k.headers;if(R)for(var ne in R)R.hasOwnProperty(ne)&&ne.toLowerCase()!=="content-length"&&ne.toLowerCase()!=="user-agent"&&ne.toLowerCase()!=="origin"&&ne.toLowerCase()!=="host"&&O.setRequestHeader(ne,R[ne]);return k.onProgress&&O.upload&&(O.upload.onprogress=k.onProgress),k.onDownloadProgress&&(O.onprogress=k.onDownloadProgress),k.timeout&&(O.timeout=k.timeout),O.ontimeout=function(x){var C=new Error("timeout");N(U(C,O))},O.onload=function(){N(U(null,O,I(O,k.dataType)))},O.onerror=function(x){var C=I(O,k.dataType);if(C)N(U(null,O,C));else{var p=O.statusText;!p&&O.status===0&&(p=new Error("CORS blocked or network error")),N(U(p,O,C))}},O.send(k.body||""),O};re.exports=H},"./lib/xml2json.js":function(re,he,w){var P=w("./node_modules/@xmldom/xmldom/lib/index.js").DOMParser,b=function(){this.version="1.3.5";var U={mergeCDATA:!0,normalize:!0,stripElemPrefix:!0},I=new RegExp(/(?!xmlns)^.*:/),H=new RegExp(/^\s+|\s+$/g);return this.grokType=function(D){return/^\s*$/.test(D)?null:/^(?:true|false)$/i.test(D)?D.toLowerCase()==="true":isFinite(D)?parseFloat(D):D},this.parseString=function(D,k){if(D){var N=this.stringToXML(D);return N.getElementsByTagName("parsererror").length?null:this.parseXML(N,k)}else return null},this.parseXML=function(D,k){for(var N in k)U[N]=k[N];var B={},L=0,T="",O=D.childNodes.length;if(O)for(var j,R,ne,x=0;x<D.childNodes.length;x++)j=D.childNodes.item(x),j.nodeType===4?U.mergeCDATA&&(T+=j.nodeValue):j.nodeType===3?T+=j.nodeValue:j.nodeType===1&&(L===0&&(B={}),U.stripElemPrefix?R=j.nodeName.replace(I,""):R=j.nodeName,ne=b.parseXML(j),B.hasOwnProperty(R)?(B[R].constructor!==Array&&(B[R]=[B[R]]),B[R].push(ne)):(B[R]=ne,L++));return Object.keys(B).length||(B=T||""),B},this.xmlToString=function(D){try{var k=D.xml?D.xml:new XMLSerializer().serializeToString(D);return k}catch(N){return null}},this.stringToXML=function(D){try{var k=null;if(window.DOMParser){var N=new P;return k=N.parseFromString(D,"text/xml"),k}else return k=new ActiveXObject("Microsoft.XMLDOM"),k.async=!1,k.loadXML(D),k}catch(B){return null}},this}.call({}),l=function(I){return b.parseString(I)};re.exports=l},"./node_modules/@babel/runtime/helpers/classCallCheck.js":function(re,he){function w(P,b){if(!(P instanceof b))throw new TypeError("Cannot call a class as a function")}re.exports=w,re.exports.__esModule=!0,re.exports.default=re.exports},"./node_modules/@babel/runtime/helpers/createClass.js":function(re,he,w){var P=w("./node_modules/@babel/runtime/helpers/toPropertyKey.js");function b(U,I){for(var H=0;H<I.length;H++){var D=I[H];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(U,P(D.key),D)}}function l(U,I,H){return I&&b(U.prototype,I),H&&b(U,H),Object.defineProperty(U,"prototype",{writable:!1}),U}re.exports=l,re.exports.__esModule=!0,re.exports.default=re.exports},"./node_modules/@babel/runtime/helpers/toPrimitive.js":function(re,he,w){var P=w("./node_modules/@babel/runtime/helpers/typeof.js").default;function b(l,U){if(P(l)!=="object"||l===null)return l;var I=l[Symbol.toPrimitive];if(I!==void 0){var H=I.call(l,U||"default");if(P(H)!=="object")return H;throw new TypeError("@@toPrimitive must return a primitive value.")}return(U==="string"?String:Number)(l)}re.exports=b,re.exports.__esModule=!0,re.exports.default=re.exports},"./node_modules/@babel/runtime/helpers/toPropertyKey.js":function(re,he,w){var P=w("./node_modules/@babel/runtime/helpers/typeof.js").default,b=w("./node_modules/@babel/runtime/helpers/toPrimitive.js");function l(U){var I=b(U,"string");return P(I)==="symbol"?I:String(I)}re.exports=l,re.exports.__esModule=!0,re.exports.default=re.exports},"./node_modules/@babel/runtime/helpers/typeof.js":function(re,he){function w(P){return re.exports=w=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},re.exports.__esModule=!0,re.exports.default=re.exports,w(P)}re.exports=w,re.exports.__esModule=!0,re.exports.default=re.exports},"./node_modules/@xmldom/xmldom/lib/conventions.js":function(re,he,w){"use strict";function P(H,D,k){if(k===void 0&&(k=Array.prototype),H&&typeof k.find=="function")return k.find.call(H,D);for(var N=0;N<H.length;N++)if(Object.prototype.hasOwnProperty.call(H,N)){var B=H[N];if(D.call(void 0,B,N,H))return B}}function b(H,D){return D===void 0&&(D=Object),D&&typeof D.freeze=="function"?D.freeze(H):H}function l(H,D){if(H===null||typeof H!="object")throw new TypeError("target is not an object");for(var k in D)Object.prototype.hasOwnProperty.call(D,k)&&(H[k]=D[k]);return H}var U=b({HTML:"text/html",isHTML:function(H){return H===U.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),I=b({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(H){return H===I.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});he.assign=l,he.find=P,he.freeze=b,he.MIME_TYPE=U,he.NAMESPACE=I},"./node_modules/@xmldom/xmldom/lib/dom-parser.js":function(re,he,w){var P=w("./node_modules/@xmldom/xmldom/lib/conventions.js"),b=w("./node_modules/@xmldom/xmldom/lib/dom.js"),l=w("./node_modules/@xmldom/xmldom/lib/entities.js"),U=w("./node_modules/@xmldom/xmldom/lib/sax.js"),I=b.DOMImplementation,H=P.NAMESPACE,D=U.ParseError,k=U.XMLReader;function N(x){return x.replace(/\r[\n\u0085]/g,`
  8. `).replace(/[\r\u0085\u2028]/g,`
  9. `)}function B(x){this.options=x||{locator:{}}}B.prototype.parseFromString=function(x,C){var p=this.options,A=new k,i=p.domBuilder||new T,u=p.errorHandler,c=p.locator,a=p.xmlns||{},d=/\/x?html?$/.test(C),f=d?l.HTML_ENTITIES:l.XML_ENTITIES;c&&i.setDocumentLocator(c),A.errorHandler=L(u,i,c),A.domBuilder=p.domBuilder||i,d&&(a[""]=H.HTML),a.xml=a.xml||H.XML;var m=p.normalizeLineEndings||N;return x&&typeof x=="string"?A.parse(m(x),a,f):A.errorHandler.error("invalid doc source"),i.doc};function L(x,C,p){if(!x){if(C instanceof T)return C;x=C}var A={},i=x instanceof Function;p=p||{};function u(c){var a=x[c];!a&&i&&(a=x.length==2?function(d){x(c,d)}:x),A[c]=a&&function(d){a("[xmldom "+c+"] "+d+j(p))}||function(){}}return u("warning"),u("error"),u("fatalError"),A}function T(){this.cdata=!1}function O(x,C){C.lineNumber=x.lineNumber,C.columnNumber=x.columnNumber}T.prototype={startDocument:function(){this.doc=new I().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(x,C,p,A){var i=this.doc,u=i.createElementNS(x,p||C),c=A.length;ne(this,u),this.currentElement=u,this.locator&&O(this.locator,u);for(var a=0;a<c;a++){var x=A.getURI(a),d=A.getValue(a),p=A.getQName(a),f=i.createAttributeNS(x,p);this.locator&&O(A.getLocator(a),f),f.value=f.nodeValue=d,u.setAttributeNode(f)}},endElement:function(x,C,p){var A=this.currentElement,i=A.tagName;this.currentElement=A.parentNode},startPrefixMapping:function(x,C){},endPrefixMapping:function(x){},processingInstruction:function(x,C){var p=this.doc.createProcessingInstruction(x,C);this.locator&&O(this.locator,p),ne(this,p)},ignorableWhitespace:function(x,C,p){},characters:function(x,C,p){if(x=R.apply(this,arguments),x){if(this.cdata)var A=this.doc.createCDATASection(x);else var A=this.doc.createTextNode(x);this.currentElement?this.currentElement.appendChild(A):/^\s*$/.test(x)&&this.doc.appendChild(A),this.locator&&O(this.locator,A)}},skippedEntity:function(x){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(x){(this.locator=x)&&(x.lineNumber=0)},comment:function(x,C,p){x=R.apply(this,arguments);var A=this.doc.createComment(x);this.locator&&O(this.locator,A),ne(this,A)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(x,C,p){var A=this.doc.implementation;if(A&&A.createDocumentType){var i=A.createDocumentType(x,C,p);this.locator&&O(this.locator,i),ne(this,i),this.doc.doctype=i}},warning:function(x){console.warn("[xmldom warning] "+x,j(this.locator))},error:function(x){console.error("[xmldom error] "+x,j(this.locator))},fatalError:function(x){throw new D(x,this.locator)}};function j(x){if(x)return`
  10. @`+(x.systemId||"")+"#[line:"+x.lineNumber+",col:"+x.columnNumber+"]"}function R(x,C,p){return typeof x=="string"?x.substr(C,p):x.length>=C+p||C?new java.lang.String(x,C,p)+"":x}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(x){T.prototype[x]=function(){return null}});function ne(x,C){x.currentElement?x.currentElement.appendChild(C):x.doc.appendChild(C)}he.__DOMHandler=T,he.normalizeLineEndings=N,he.DOMParser=B},"./node_modules/@xmldom/xmldom/lib/dom.js":function(re,he,w){var P=w("./node_modules/@xmldom/xmldom/lib/conventions.js"),b=P.find,l=P.NAMESPACE;function U(r){return r!==""}function I(r){return r?r.split(/[\t\n\f\r ]+/).filter(U):[]}function H(r,e){return r.hasOwnProperty(e)||(r[e]=!0),r}function D(r){if(!r)return[];var e=I(r);return Object.keys(e.reduce(H,{}))}function k(r){return function(e){return r&&r.indexOf(e)!==-1}}function N(r,e){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}function B(r,e){var n=r.prototype;if(!(n instanceof e)){let s=function(){};var o=s;s.prototype=e.prototype,s=new s,N(n,s),r.prototype=n=s}n.constructor!=r&&(typeof r!="function"&&console.error("unknown Class:"+r),n.constructor=r)}var L={},T=L.ELEMENT_NODE=1,O=L.ATTRIBUTE_NODE=2,j=L.TEXT_NODE=3,R=L.CDATA_SECTION_NODE=4,ne=L.ENTITY_REFERENCE_NODE=5,x=L.ENTITY_NODE=6,C=L.PROCESSING_INSTRUCTION_NODE=7,p=L.COMMENT_NODE=8,A=L.DOCUMENT_NODE=9,i=L.DOCUMENT_TYPE_NODE=10,u=L.DOCUMENT_FRAGMENT_NODE=11,c=L.NOTATION_NODE=12,a={},d={},f=a.INDEX_SIZE_ERR=(d[1]="Index size error",1),m=a.DOMSTRING_SIZE_ERR=(d[2]="DOMString size error",2),g=a.HIERARCHY_REQUEST_ERR=(d[3]="Hierarchy request error",3),M=a.WRONG_DOCUMENT_ERR=(d[4]="Wrong document",4),q=a.INVALID_CHARACTER_ERR=(d[5]="Invalid character",5),te=a.NO_DATA_ALLOWED_ERR=(d[6]="No data allowed",6),X=a.NO_MODIFICATION_ALLOWED_ERR=(d[7]="No modification allowed",7),W=a.NOT_FOUND_ERR=(d[8]="Not found",8),G=a.NOT_SUPPORTED_ERR=(d[9]="Not supported",9),J=a.INUSE_ATTRIBUTE_ERR=(d[10]="Attribute in use",10),Y=a.INVALID_STATE_ERR=(d[11]="Invalid state",11),pe=a.SYNTAX_ERR=(d[12]="Syntax error",12),ee=a.INVALID_MODIFICATION_ERR=(d[13]="Invalid modification",13),V=a.NAMESPACE_ERR=(d[14]="Invalid namespace",14),ue=a.INVALID_ACCESS_ERR=(d[15]="Invalid access",15);function $(r,e){if(e instanceof Error)var n=e;else n=this,Error.call(this,d[r]),this.message=d[r],Error.captureStackTrace&&Error.captureStackTrace(this,$);return n.code=r,e&&(this.message=this.message+": "+e),n}$.prototype=Error.prototype,N(a,$);function Z(){}Z.prototype={length:0,item:function(r){return r>=0&&r<this.length?this[r]:null},toString:function(r,e){for(var n=[],o=0;o<this.length;o++)oe(this[o],n,r,e);return n.join("")},filter:function(r){return Array.prototype.filter.call(this,r)},indexOf:function(r){return Array.prototype.indexOf.call(this,r)}};function ce(r,e){this._node=r,this._refresh=e,ie(this)}function ie(r){var e=r._node._inc||r._node.ownerDocument._inc;if(r._inc!==e){var n=r._refresh(r._node);if(dt(r,"length",n.length),!r.$$length||n.length<r.$$length)for(var o=n.length;o in r;o++)Object.prototype.hasOwnProperty.call(r,o)&&delete r[o];N(n,r),r._inc=e}}ce.prototype.item=function(r){return ie(this),this[r]||null},B(ce,Z);function se(){}function ge(r,e){for(var n=r.length;n--;)if(r[n]===e)return n}function fe(r,e,n,o){if(o?e[ge(e,o)]=n:e[e.length++]=n,r){n.ownerElement=r;var s=r.ownerDocument;s&&(o&&be(s,r,o),ze(s,r,n))}}function De(r,e,n){var o=ge(e,n);if(o>=0){for(var s=e.length-1;o<s;)e[o]=e[++o];if(e.length=s,r){var h=r.ownerDocument;h&&(be(h,r,n),n.ownerElement=null)}}else throw new $(W,new Error(r.tagName+"@"+n))}se.prototype={length:0,item:Z.prototype.item,getNamedItem:function(r){for(var e=this.length;e--;){var n=this[e];if(n.nodeName==r)return n}},setNamedItem:function(r){var e=r.ownerElement;if(e&&e!=this._ownerElement)throw new $(J);var n=this.getNamedItem(r.nodeName);return fe(this._ownerElement,this,r,n),n},setNamedItemNS:function(r){var e=r.ownerElement,n;if(e&&e!=this._ownerElement)throw new $(J);return n=this.getNamedItemNS(r.namespaceURI,r.localName),fe(this._ownerElement,this,r,n),n},removeNamedItem:function(r){var e=this.getNamedItem(r);return De(this._ownerElement,this,e),e},removeNamedItemNS:function(r,e){var n=this.getNamedItemNS(r,e);return De(this._ownerElement,this,n),n},getNamedItemNS:function(r,e){for(var n=this.length;n--;){var o=this[n];if(o.localName==e&&o.namespaceURI==r)return o}return null}};function Ae(){}Ae.prototype={hasFeature:function(r,e){return!0},createDocument:function(r,e,n){var o=new Ne;if(o.implementation=this,o.childNodes=new Z,o.doctype=n||null,n&&o.appendChild(n),e){var s=o.createElementNS(r,e);o.appendChild(s)}return o},createDocumentType:function(r,e,n){var o=new $e;return o.name=r,o.nodeName=r,o.publicId=e||"",o.systemId=n||"",o}};function ve(){}ve.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(r,e){return Oe(this,r,e)},replaceChild:function(r,e){Oe(this,r,e,Ie),e&&this.removeChild(e)},removeChild:function(r){return v(this,r)},appendChild:function(r){return this.insertBefore(r,null)},hasChildNodes:function(){return this.firstChild!=null},cloneNode:function(r){return tt(this.ownerDocument||this,this,r)},normalize:function(){for(var r=this.firstChild;r;){var e=r.nextSibling;e&&e.nodeType==j&&r.nodeType==j?(this.removeChild(e),r.appendData(e.data)):(r.normalize(),r=e)}},isSupported:function(r,e){return this.ownerDocument.implementation.hasFeature(r,e)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(r){for(var e=this;e;){var n=e._nsMap;if(n){for(var o in n)if(Object.prototype.hasOwnProperty.call(n,o)&&n[o]===r)return o}e=e.nodeType==O?e.ownerDocument:e.parentNode}return null},lookupNamespaceURI:function(r){for(var e=this;e;){var n=e._nsMap;if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r];e=e.nodeType==O?e.ownerDocument:e.parentNode}return null},isDefaultNamespace:function(r){var e=this.lookupPrefix(r);return e==null}};function je(r){return r=="<"&&"&lt;"||r==">"&&"&gt;"||r=="&"&&"&amp;"||r=='"'&&"&quot;"||"&#"+r.charCodeAt()+";"}N(L,ve),N(L,ve.prototype);function xe(r,e){if(e(r))return!0;if(r=r.firstChild)do if(xe(r,e))return!0;while(r=r.nextSibling)}function Ne(){this.ownerDocument=this}function ze(r,e,n){r&&r._inc++;var o=n.namespaceURI;o===l.XMLNS&&(e._nsMap[n.prefix?n.localName:""]=n.value)}function be(r,e,n,o){r&&r._inc++;var s=n.namespaceURI;s===l.XMLNS&&delete e._nsMap[n.prefix?n.localName:""]}function _(r,e,n){if(r&&r._inc){r._inc++;var o=e.childNodes;if(n)o[o.length++]=n;else{for(var s=e.firstChild,h=0;s;)o[h++]=s,s=s.nextSibling;o.length=h,delete o[o.length]}}}function v(r,e){var n=e.previousSibling,o=e.nextSibling;return n?n.nextSibling=o:r.firstChild=o,o?o.previousSibling=n:r.lastChild=n,e.parentNode=null,e.previousSibling=null,e.nextSibling=null,_(r.ownerDocument,r),e}function E(r){return r&&(r.nodeType===ve.DOCUMENT_NODE||r.nodeType===ve.DOCUMENT_FRAGMENT_NODE||r.nodeType===ve.ELEMENT_NODE)}function S(r){return r&&(z(r)||le(r)||K(r)||r.nodeType===ve.DOCUMENT_FRAGMENT_NODE||r.nodeType===ve.COMMENT_NODE||r.nodeType===ve.PROCESSING_INSTRUCTION_NODE)}function K(r){return r&&r.nodeType===ve.DOCUMENT_TYPE_NODE}function z(r){return r&&r.nodeType===ve.ELEMENT_NODE}function le(r){return r&&r.nodeType===ve.TEXT_NODE}function me(r,e){var n=r.childNodes||[];if(b(n,z)||K(e))return!1;var o=b(n,K);return!(e&&o&&n.indexOf(o)>n.indexOf(e))}function Ee(r,e){var n=r.childNodes||[];function o(h){return z(h)&&h!==e}if(b(n,o))return!1;var s=b(n,K);return!(e&&s&&n.indexOf(s)>n.indexOf(e))}function Te(r,e,n){if(!E(r))throw new $(g,"Unexpected parent node type "+r.nodeType);if(n&&n.parentNode!==r)throw new $(W,"child not in parent");if(!S(e)||K(e)&&r.nodeType!==ve.DOCUMENT_NODE)throw new $(g,"Unexpected node type "+e.nodeType+" for parent node type "+r.nodeType)}function Fe(r,e,n){var o=r.childNodes||[],s=e.childNodes||[];if(e.nodeType===ve.DOCUMENT_FRAGMENT_NODE){var h=s.filter(z);if(h.length>1||b(s,le))throw new $(g,"More than one element or text in fragment");if(h.length===1&&!me(r,n))throw new $(g,"Element in fragment can not be inserted before doctype")}if(z(e)&&!me(r,n))throw new $(g,"Only one element can be added and only after doctype");if(K(e)){if(b(o,K))throw new $(g,"Only one doctype is allowed");var y=b(o,z);if(n&&o.indexOf(y)<o.indexOf(n))throw new $(g,"Doctype can only be inserted before an element");if(!n&&y)throw new $(g,"Doctype can not be appended since element is present")}}function Ie(r,e,n){var o=r.childNodes||[],s=e.childNodes||[];if(e.nodeType===ve.DOCUMENT_FRAGMENT_NODE){var h=s.filter(z);if(h.length>1||b(s,le))throw new $(g,"More than one element or text in fragment");if(h.length===1&&!Ee(r,n))throw new $(g,"Element in fragment can not be inserted before doctype")}if(z(e)&&!Ee(r,n))throw new $(g,"Only one element can be added and only after doctype");if(K(e)){let de=function(ae){return K(ae)&&ae!==n};var F=de;if(b(o,de))throw new $(g,"Only one doctype is allowed");var y=b(o,z);if(n&&o.indexOf(y)<o.indexOf(n))throw new $(g,"Doctype can only be inserted before an element")}}function Oe(r,e,n,o){Te(r,e,n),r.nodeType===ve.DOCUMENT_NODE&&(o||Fe)(r,e,n);var s=e.parentNode;if(s&&s.removeChild(e),e.nodeType===u){var h=e.firstChild;if(h==null)return e;var y=e.lastChild}else h=y=e;var F=n?n.previousSibling:r.lastChild;h.previousSibling=F,y.nextSibling=n,F?F.nextSibling=h:r.firstChild=h,n==null?r.lastChild=y:n.previousSibling=y;do h.parentNode=r;while(h!==y&&(h=h.nextSibling));return _(r.ownerDocument||r,r),e.nodeType==u&&(e.firstChild=e.lastChild=null),e}function Ue(r,e){return e.parentNode&&e.parentNode.removeChild(e),e.parentNode=r,e.previousSibling=r.lastChild,e.nextSibling=null,e.previousSibling?e.previousSibling.nextSibling=e:r.firstChild=e,r.lastChild=e,_(r.ownerDocument,r,e),e}Ne.prototype={nodeName:"#document",nodeType:A,doctype:null,documentElement:null,_inc:1,insertBefore:function(r,e){if(r.nodeType==u){for(var n=r.firstChild;n;){var o=n.nextSibling;this.insertBefore(n,e),n=o}return r}return Oe(this,r,e),r.ownerDocument=this,this.documentElement===null&&r.nodeType===T&&(this.documentElement=r),r},removeChild:function(r){return this.documentElement==r&&(this.documentElement=null),v(this,r)},replaceChild:function(r,e){Oe(this,r,e,Ie),r.ownerDocument=this,e&&this.removeChild(e),z(r)&&(this.documentElement=r)},importNode:function(r,e){return lt(this,r,e)},getElementById:function(r){var e=null;return xe(this.documentElement,function(n){if(n.nodeType==T&&n.getAttribute("id")==r)return e=n,!0}),e},getElementsByClassName:function(r){var e=D(r);return new ce(this,function(n){var o=[];return e.length>0&&xe(n.documentElement,function(s){if(s!==n&&s.nodeType===T){var h=s.getAttribute("class");if(h){var y=r===h;if(!y){var F=D(h);y=e.every(k(F))}y&&o.push(s)}}}),o})},createElement:function(r){var e=new Ke;e.ownerDocument=this,e.nodeName=r,e.tagName=r,e.localName=r,e.childNodes=new Z;var n=e.attributes=new se;return n._ownerElement=e,e},createDocumentFragment:function(){var r=new Qe;return r.ownerDocument=this,r.childNodes=new Z,r},createTextNode:function(r){var e=new Ve;return e.ownerDocument=this,e.appendData(r),e},createComment:function(r){var e=new We;return e.ownerDocument=this,e.appendData(r),e},createCDATASection:function(r){var e=new Xe;return e.ownerDocument=this,e.appendData(r),e},createProcessingInstruction:function(r,e){var n=new Ge;return n.ownerDocument=this,n.tagName=n.nodeName=n.target=r,n.nodeValue=n.data=e,n},createAttribute:function(r){var e=new qe;return e.ownerDocument=this,e.name=r,e.nodeName=r,e.localName=r,e.specified=!0,e},createEntityReference:function(r){var e=new Je;return e.ownerDocument=this,e.nodeName=r,e},createElementNS:function(r,e){var n=new Ke,o=e.split(":"),s=n.attributes=new se;return n.childNodes=new Z,n.ownerDocument=this,n.nodeName=e,n.tagName=e,n.namespaceURI=r,o.length==2?(n.prefix=o[0],n.localName=o[1]):n.localName=e,s._ownerElement=n,n},createAttributeNS:function(r,e){var n=new qe,o=e.split(":");return n.ownerDocument=this,n.nodeName=e,n.name=e,n.namespaceURI=r,n.specified=!0,o.length==2?(n.prefix=o[0],n.localName=o[1]):n.localName=e,n}},B(Ne,ve);function Ke(){this._nsMap={}}Ke.prototype={nodeType:T,hasAttribute:function(r){return this.getAttributeNode(r)!=null},getAttribute:function(r){var e=this.getAttributeNode(r);return e&&e.value||""},getAttributeNode:function(r){return this.attributes.getNamedItem(r)},setAttribute:function(r,e){var n=this.ownerDocument.createAttribute(r);n.value=n.nodeValue=""+e,this.setAttributeNode(n)},removeAttribute:function(r){var e=this.getAttributeNode(r);e&&this.removeAttributeNode(e)},appendChild:function(r){return r.nodeType===u?this.insertBefore(r,null):Ue(this,r)},setAttributeNode:function(r){return this.attributes.setNamedItem(r)},setAttributeNodeNS:function(r){return this.attributes.setNamedItemNS(r)},removeAttributeNode:function(r){return this.attributes.removeNamedItem(r.nodeName)},removeAttributeNS:function(r,e){var n=this.getAttributeNodeNS(r,e);n&&this.removeAttributeNode(n)},hasAttributeNS:function(r,e){return this.getAttributeNodeNS(r,e)!=null},getAttributeNS:function(r,e){var n=this.getAttributeNodeNS(r,e);return n&&n.value||""},setAttributeNS:function(r,e,n){var o=this.ownerDocument.createAttributeNS(r,e);o.value=o.nodeValue=""+n,this.setAttributeNode(o)},getAttributeNodeNS:function(r,e){return this.attributes.getNamedItemNS(r,e)},getElementsByTagName:function(r){return new ce(this,function(e){var n=[];return xe(e,function(o){o!==e&&o.nodeType==T&&(r==="*"||o.tagName==r)&&n.push(o)}),n})},getElementsByTagNameNS:function(r,e){return new ce(this,function(n){var o=[];return xe(n,function(s){s!==n&&s.nodeType===T&&(r==="*"||s.namespaceURI===r)&&(e==="*"||s.localName==e)&&o.push(s)}),o})}},Ne.prototype.getElementsByTagName=Ke.prototype.getElementsByTagName,Ne.prototype.getElementsByTagNameNS=Ke.prototype.getElementsByTagNameNS,B(Ke,ve);function qe(){}qe.prototype.nodeType=O,B(qe,ve);function Se(){}Se.prototype={data:"",substringData:function(r,e){return this.data.substring(r,r+e)},appendData:function(r){r=this.data+r,this.nodeValue=this.data=r,this.length=r.length},insertData:function(r,e){this.replaceData(r,0,e)},appendChild:function(r){throw new Error(d[g])},deleteData:function(r,e){this.replaceData(r,e,"")},replaceData:function(r,e,n){var o=this.data.substring(0,r),s=this.data.substring(r+e);n=o+n+s,this.nodeValue=this.data=n,this.length=n.length}},B(Se,ve);function Ve(){}Ve.prototype={nodeName:"#text",nodeType:j,splitText:function(r){var e=this.data,n=e.substring(r);e=e.substring(0,r),this.data=this.nodeValue=e,this.length=e.length;var o=this.ownerDocument.createTextNode(n);return this.parentNode&&this.parentNode.insertBefore(o,this.nextSibling),o}},B(Ve,Se);function We(){}We.prototype={nodeName:"#comment",nodeType:p},B(We,Se);function Xe(){}Xe.prototype={nodeName:"#cdata-section",nodeType:R},B(Xe,Se);function $e(){}$e.prototype.nodeType=i,B($e,ve);function Ze(){}Ze.prototype.nodeType=c,B(Ze,ve);function et(){}et.prototype.nodeType=x,B(et,ve);function Je(){}Je.prototype.nodeType=ne,B(Je,ve);function Qe(){}Qe.prototype.nodeName="#document-fragment",Qe.prototype.nodeType=u,B(Qe,ve);function Ge(){}Ge.prototype.nodeType=C,B(Ge,ve);function ot(){}ot.prototype.serializeToString=function(r,e,n){return it.call(r,e,n)},ve.prototype.toString=it;function it(r,e){var n=[],o=this.nodeType==9&&this.documentElement||this,s=o.prefix,h=o.namespaceURI;if(h&&s==null){var s=o.lookupPrefix(h);if(s==null)var y=[{namespace:h,prefix:null}]}return oe(this,n,r,e,y),n.join("")}function ct(r,e,n){var o=r.prefix||"",s=r.namespaceURI;if(!s||o==="xml"&&s===l.XML||s===l.XMLNS)return!1;for(var h=n.length;h--;){var y=n[h];if(y.prefix===o)return y.namespace!==s}return!0}function ut(r,e,n){r.push(" ",e,'="',n.replace(/[<>&"\t\n\r]/g,je),'"')}function oe(r,e,n,o,s){if(s||(s=[]),o)if(r=o(r),r){if(typeof r=="string"){e.push(r);return}}else return;switch(r.nodeType){case T:var h=r.attributes,y=h.length,F=r.firstChild,de=r.tagName;n=l.isHTML(r.namespaceURI)||n;var ae=de;if(!n&&!r.prefix&&r.namespaceURI){for(var Ce,Q=0;Q<h.length;Q++)if(h.item(Q).name==="xmlns"){Ce=h.item(Q).value;break}if(!Ce)for(var Be=s.length-1;Be>=0;Be--){var Le=s[Be];if(Le.prefix===""&&Le.namespace===r.namespaceURI){Ce=Le.namespace;break}}if(Ce!==r.namespaceURI)for(var Be=s.length-1;Be>=0;Be--){var Le=s[Be];if(Le.namespace===r.namespaceURI){Le.prefix&&(ae=Le.prefix+":"+de);break}}}e.push("<",ae);for(var Me=0;Me<y;Me++){var Pe=h.item(Me);Pe.prefix=="xmlns"?s.push({prefix:Pe.localName,namespace:Pe.value}):Pe.nodeName=="xmlns"&&s.push({prefix:"",namespace:Pe.value})}for(var Me=0;Me<y;Me++){var Pe=h.item(Me);if(ct(Pe,n,s)){var _e=Pe.prefix||"",He=Pe.namespaceURI;ut(e,_e?"xmlns:"+_e:"xmlns",He),s.push({prefix:_e,namespace:He})}oe(Pe,e,n,o,s)}if(de===ae&&ct(r,n,s)){var _e=r.prefix||"",He=r.namespaceURI;ut(e,_e?"xmlns:"+_e:"xmlns",He),s.push({prefix:_e,namespace:He})}if(F||n&&!/^(?:meta|link|img|br|hr|input)$/i.test(de)){if(e.push(">"),n&&/^script$/i.test(de))for(;F;)F.data?e.push(F.data):oe(F,e,n,o,s.slice()),F=F.nextSibling;else for(;F;)oe(F,e,n,o,s.slice()),F=F.nextSibling;e.push("</",ae,">")}else e.push("/>");return;case A:case u:for(var F=r.firstChild;F;)oe(F,e,n,o,s.slice()),F=F.nextSibling;return;case O:return ut(e,r.name,r.value);case j:return e.push(r.data.replace(/[<&>]/g,je));case R:return e.push("<![CDATA[",r.data,"]]>");case p:return e.push("<!--",r.data,"-->");case i:var Re=r.publicId,ye=r.systemId;if(e.push("<!DOCTYPE ",r.name),Re)e.push(" PUBLIC ",Re),ye&&ye!="."&&e.push(" ",ye),e.push(">");else if(ye&&ye!=".")e.push(" SYSTEM ",ye,">");else{var ke=r.internalSubset;ke&&e.push(" [",ke,"]"),e.push(">")}return;case C:return e.push("<?",r.target," ",r.data,"?>");case ne:return e.push("&",r.nodeName,";");default:e.push("??",r.nodeName)}}function lt(r,e,n){var o;switch(e.nodeType){case T:o=e.cloneNode(!1),o.ownerDocument=r;case u:break;case O:n=!0;break}if(o||(o=e.cloneNode(!1)),o.ownerDocument=r,o.parentNode=null,n)for(var s=e.firstChild;s;)o.appendChild(lt(r,s,n)),s=s.nextSibling;return o}function tt(r,e,n){var o=new e.constructor;for(var s in e)if(Object.prototype.hasOwnProperty.call(e,s)){var h=e[s];typeof h!="object"&&h!=o[s]&&(o[s]=h)}switch(e.childNodes&&(o.childNodes=new Z),o.ownerDocument=r,o.nodeType){case T:var y=e.attributes,F=o.attributes=new se,de=y.length;F._ownerElement=o;for(var ae=0;ae<de;ae++)o.setAttributeNode(tt(r,y.item(ae),!0));break;case O:n=!0}if(n)for(var Ce=e.firstChild;Ce;)o.appendChild(tt(r,Ce,n)),Ce=Ce.nextSibling;return o}function dt(r,e,n){r[e]=n}try{if(Object.defineProperty){let r=function(e){switch(e.nodeType){case T:case u:var n=[];for(e=e.firstChild;e;)e.nodeType!==7&&e.nodeType!==8&&n.push(r(e)),e=e.nextSibling;return n.join("");default:return e.nodeValue}};var t=r;Object.defineProperty(ce.prototype,"length",{get:function(){return ie(this),this.$$length}}),Object.defineProperty(ve.prototype,"textContent",{get:function(){return r(this)},set:function(e){switch(this.nodeType){case T:case u:for(;this.firstChild;)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),dt=function(e,n,o){e["$$"+n]=o}}}catch(r){}he.DocumentType=$e,he.DOMException=$,he.DOMImplementation=Ae,he.Element=Ke,he.Node=ve,he.NodeList=Z,he.XMLSerializer=ot},"./node_modules/@xmldom/xmldom/lib/entities.js":function(re,he,w){"use strict";var P=w("./node_modules/@xmldom/xmldom/lib/conventions.js").freeze;he.XML_ENTITIES=P({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),he.HTML_ENTITIES=P({Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",AMP:"&",amp:"&",And:"\u2A53",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",ap:"\u2248",apacir:"\u2A6F",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",Barwed:"\u2306",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",Because:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxDL:"\u2557",boxDl:"\u2556",boxdL:"\u2555",boxdl:"\u2510",boxDR:"\u2554",boxDr:"\u2553",boxdR:"\u2552",boxdr:"\u250C",boxH:"\u2550",boxh:"\u2500",boxHD:"\u2566",boxHd:"\u2564",boxhD:"\u2565",boxhd:"\u252C",boxHU:"\u2569",boxHu:"\u2567",boxhU:"\u2568",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxUL:"\u255D",boxUl:"\u255C",boxuL:"\u255B",boxul:"\u2518",boxUR:"\u255A",boxUr:"\u2559",boxuR:"\u2558",boxur:"\u2514",boxV:"\u2551",boxv:"\u2502",boxVH:"\u256C",boxVh:"\u256B",boxvH:"\u256A",boxvh:"\u253C",boxVL:"\u2563",boxVl:"\u2562",boxvL:"\u2561",boxvl:"\u2524",boxVR:"\u2560",boxVr:"\u255F",boxvR:"\u255E",boxvr:"\u251C",bprime:"\u2035",Breve:"\u02D8",breve:"\u02D8",brvbar:"\xA6",Bscr:"\u212C",bscr:"\u{1D4B7}",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",Cap:"\u22D2",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",CenterDot:"\xB7",centerdot:"\xB7",Cfr:"\u212D",cfr:"\u{1D520}",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",cir:"\u25CB",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",Colon:"\u2237",colon:":",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",Conint:"\u222F",conint:"\u222E",ContourIntegral:"\u222E",Copf:"\u2102",copf:"\u{1D554}",coprod:"\u2210",Coproduct:"\u2210",COPY:"\xA9",copy:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",Cross:"\u2A2F",cross:"\u2717",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",Cup:"\u22D3",cup:"\u222A",cupbrcap:"\u2A48",CupCap:"\u224D",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",Dagger:"\u2021",dagger:"\u2020",daleth:"\u2138",Darr:"\u21A1",dArr:"\u21D3",darr:"\u2193",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",DD:"\u2145",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",Diamond:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",Downarrow:"\u21D3",downarrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",ecir:"\u2256",Ecirc:"\xCA",ecirc:"\xEA",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",eDot:"\u2251",edot:"\u0117",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp:"\u2003",emsp13:"\u2004",emsp14:"\u2005",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",Escr:"\u2130",escr:"\u212F",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",ExponentialE:"\u2147",exponentiale:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",ForAll:"\u2200",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",Fscr:"\u2131",fscr:"\u{1D4BB}",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",gE:"\u2267",ge:"\u2265",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",Gg:"\u22D9",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gl:"\u2277",gla:"\u2AA5",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gnE:"\u2269",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",Gt:"\u226B",GT:">",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",hArr:"\u21D4",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",Hfr:"\u210C",hfr:"\u{1D525}",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",Hopf:"\u210D",hopf:"\u{1D559}",horbar:"\u2015",HorizontalLine:"\u2500",Hscr:"\u210B",hscr:"\u{1D4BD}",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",Ifr:"\u2111",ifr:"\u{1D526}",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Im:"\u2111",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",Int:"\u222C",int:"\u222B",intcal:"\u22BA",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",Iscr:"\u2110",iscr:"\u{1D4BE}",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",Lang:"\u27EA",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",Larr:"\u219E",lArr:"\u21D0",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",lAtail:"\u291B",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lBarr:"\u290E",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",lE:"\u2266",le:"\u2264",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",Leftarrow:"\u21D0",leftarrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",Ll:"\u22D8",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lnE:"\u2268",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftarrow:"\u27F5",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",Lscr:"\u2112",lscr:"\u{1D4C1}",Lsh:"\u21B0",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",Lt:"\u226A",LT:"<",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",Mscr:"\u2133",mscr:"\u{1D4C2}",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",nearhk:"\u2924",neArr:"\u21D7",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:`
  11. `,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlArr:"\u21CD",nlarr:"\u219A",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nLeftarrow:"\u21CD",nleftarrow:"\u219A",nLeftrightarrow:"\u21CE",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",nopf:"\u{1D55F}",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nRightarrow:"\u21CF",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nVDash:"\u22AF",nVdash:"\u22AE",nvDash:"\u22AD",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwArr:"\u21D6",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",ocir:"\u229A",Ocirc:"\xD4",ocirc:"\xF4",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",Or:"\u2A54",or:"\u2228",orarr:"\u21BB",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",Otimes:"\u2A37",otimes:"\u2297",otimesas:"\u2A36",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",par:"\u2225",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\u{1D513}",pfr:"\u{1D52D}",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",Popf:"\u2119",popf:"\u{1D561}",pound:"\xA3",Pr:"\u2ABB",pr:"\u227A",prap:"\u2AB7",prcue:"\u227C",prE:"\u2AB3",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",Prime:"\u2033",prime:"\u2032",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportion:"\u2237",Proportional:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\u{1D4AB}",pscr:"\u{1D4C5}",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\u{1D514}",qfr:"\u{1D52E}",qint:"\u2A0C",Qopf:"\u211A",qopf:"\u{1D562}",qprime:"\u2057",Qscr:"\u{1D4AC}",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",QUOT:'"',quot:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",Rang:"\u27EB",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",Rarr:"\u21A0",rArr:"\u21D2",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",rAtail:"\u291C",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",RBarr:"\u2910",rBarr:"\u290F",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",Re:"\u211C",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",REG:"\xAE",reg:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",Rfr:"\u211C",rfr:"\u{1D52F}",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",Rightarrow:"\u21D2",rightarrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",Ropf:"\u211D",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",Rscr:"\u211B",rscr:"\u{1D4C7}",Rsh:"\u21B1",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",Sc:"\u2ABC",sc:"\u227B",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",sccue:"\u227D",scE:"\u2AB4",sce:"\u2AB0",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",searhk:"\u2925",seArr:"\u21D8",searr:"\u2198",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1D516}",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",Sopf:"\u{1D54A}",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",Square:"\u25A1",square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",Sscr:"\u{1D4AE}",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",Sub:"\u22D0",sub:"\u2282",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",Subset:"\u22D0",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",Sum:"\u2211",sum:"\u2211",sung:"\u266A",Sup:"\u22D1",sup:"\u2283",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",Supset:"\u22D1",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swArr:"\u21D9",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:" ",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\u{1D517}",tfr:"\u{1D531}",there4:"\u2234",Therefore:"\u2234",therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",thinsp:"\u2009",ThinSpace:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",Tilde:"\u223C",tilde:"\u02DC",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",Topf:"\u{1D54B}",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",TRADE:"\u2122",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\u{1D4AF}",tscr:"\u{1D4C9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",Uarr:"\u219F",uArr:"\u21D1",uarr:"\u2191",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\u{1D518}",ufr:"\u{1D532}",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1D54C}",uopf:"\u{1D566}",UpArrow:"\u2191",Uparrow:"\u21D1",uparrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",Updownarrow:"\u21D5",updownarrow:"\u2195",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",upsi:"\u03C5",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTee:"\u22A5",UpTeeArrow:"\u21A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\u{1D4B0}",uscr:"\u{1D4CA}",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",vArr:"\u21D5",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",Vbar:"\u2AEB",vBar:"\u2AE8",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",VDash:"\u22AB",Vdash:"\u22A9",vDash:"\u22A8",vdash:"\u22A2",Vdashl:"\u2AE6",Vee:"\u22C1",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",Verbar:"\u2016",verbar:"|",Vert:"\u2016",vert:"|",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\u{1D54D}",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\u{1D4B1}",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",Wedge:"\u22C0",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1D51A}",wfr:"\u{1D534}",Wopf:"\u{1D54E}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1D4B2}",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\u{1D51B}",xfr:"\u{1D535}",xhArr:"\u27FA",xharr:"\u27F7",Xi:"\u039E",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\u{1D54F}",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",Xscr:"\u{1D4B3}",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\u{1D51C}",yfr:"\u{1D536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1D550}",yopf:"\u{1D56A}",Yscr:"\u{1D4B4}",yscr:"\u{1D4CE}",YUcy:"\u042E",yucy:"\u044E",Yuml:"\u0178",yuml:"\xFF",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",Zfr:"\u2128",zfr:"\u{1D537}",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",Zopf:"\u2124",zopf:"\u{1D56B}",Zscr:"\u{1D4B5}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"}),he.entityMap=he.HTML_ENTITIES},"./node_modules/@xmldom/xmldom/lib/index.js":function(re,he,w){var P=w("./node_modules/@xmldom/xmldom/lib/dom.js");he.DOMImplementation=P.DOMImplementation,he.XMLSerializer=P.XMLSerializer,he.DOMParser=w("./node_modules/@xmldom/xmldom/lib/dom-parser.js").DOMParser},"./node_modules/@xmldom/xmldom/lib/sax.js":function(re,he,w){var P=w("./node_modules/@xmldom/xmldom/lib/conventions.js").NAMESPACE,b=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,l=new RegExp("[\\-\\.0-9"+b.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),U=new RegExp("^"+b.source+l.source+"*(?::"+b.source+l.source+"*)?$"),I=0,H=1,D=2,k=3,N=4,B=5,L=6,T=7;function O(f,m){this.message=f,this.locator=m,Error.captureStackTrace&&Error.captureStackTrace(this,O)}O.prototype=new Error,O.prototype.name=O.name;function j(){}j.prototype={parse:function(f,m,g){var M=this.domBuilder;M.startDocument(),i(m,m={}),R(f,m,g,M,this.errorHandler),M.endDocument()}};function R(f,m,g,M,q){function te(E){if(E>65535){E-=65536;var S=55296+(E>>10),K=56320+(E&1023);return String.fromCharCode(S,K)}else return String.fromCharCode(E)}function X(E){var S=E.slice(1,-1);return Object.hasOwnProperty.call(g,S)?g[S]:S.charAt(0)==="#"?te(parseInt(S.substr(1).replace("x","0x"))):(q.error("entity not found:"+E),E)}function W(E){if(E>$){var S=f.substring($,E).replace(/&#?\w+;/g,X);ee&&G($),M.characters(S,0,E-$),$=E}}function G(E,S){for(;E>=Y&&(S=pe.exec(f));)J=S.index,Y=J+S[0].length,ee.lineNumber++;ee.columnNumber=E-J+1}for(var J=0,Y=0,pe=/.*(?:\r\n?|\n)|.*$/g,ee=M.locator,V=[{currentNSMap:m}],ue={},$=0;;){try{var Z=f.indexOf("<",$);if(Z<0){if(!f.substr($).match(/^\s*$/)){var ce=M.doc,ie=ce.createTextNode(f.substr($));ce.appendChild(ie),M.currentElement=ie}return}switch(Z>$&&W(Z),f.charAt(Z+1)){case"/":var se=f.indexOf(">",Z+3),ge=f.substring(Z+2,se).replace(/[ \t\n\r]+$/g,""),fe=V.pop();se<0?(ge=f.substring(Z+2).replace(/[\s<].*/,""),q.error("end tag name: "+ge+" is not complete:"+fe.tagName),se=Z+1+ge.length):ge.match(/\s</)&&(ge=ge.replace(/[\s<].*/,""),q.error("end tag name: "+ge+" maybe not complete"),se=Z+1+ge.length);var De=fe.localNSMap,Ae=fe.tagName==ge,ve=Ae||fe.tagName&&fe.tagName.toLowerCase()==ge.toLowerCase();if(ve){if(M.endElement(fe.uri,fe.localName,ge),De)for(var je in De)Object.prototype.hasOwnProperty.call(De,je)&&M.endPrefixMapping(je);Ae||q.fatalError("end tag name: "+ge+" is not match the current start tagName:"+fe.tagName)}else V.push(fe);se++;break;case"?":ee&&G(Z),se=c(f,Z,M);break;case"!":ee&&G(Z),se=u(f,Z,M,q);break;default:ee&&G(Z);var xe=new a,Ne=V[V.length-1].currentNSMap,se=x(f,Z,xe,Ne,X,q),ze=xe.length;if(!xe.closed&&A(f,se,xe.tagName,ue)&&(xe.closed=!0,g.nbsp||q.warning("unclosed xml attribute")),ee&&ze){for(var be=ne(ee,{}),_=0;_<ze;_++){var v=xe[_];G(v.offset),v.locator=ne(ee,{})}M.locator=be,C(xe,M,Ne)&&V.push(xe),M.locator=ee}else C(xe,M,Ne)&&V.push(xe);P.isHTML(xe.uri)&&!xe.closed?se=p(f,se,xe.tagName,X,M):se++}}catch(E){if(E instanceof O)throw E;q.error("element parse error: "+E),se=-1}se>$?$=se:W(Math.max(Z,$)+1)}}function ne(f,m){return m.lineNumber=f.lineNumber,m.columnNumber=f.columnNumber,m}function x(f,m,g,M,q,te){function X(V,ue,$){g.attributeNames.hasOwnProperty(V)&&te.fatalError("Attribute "+V+" redefined"),g.addValue(V,ue.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,q),$)}for(var W,G,J=++m,Y=I;;){var pe=f.charAt(J);switch(pe){case"=":if(Y===H)W=f.slice(m,J),Y=k;else if(Y===D)Y=k;else throw new Error("attribute equal must after attrName");break;case"'":case'"':if(Y===k||Y===H)if(Y===H&&(te.warning('attribute value must after "="'),W=f.slice(m,J)),m=J+1,J=f.indexOf(pe,m),J>0)G=f.slice(m,J),X(W,G,m-1),Y=B;else throw new Error("attribute value no end '"+pe+"' match");else if(Y==N)G=f.slice(m,J),X(W,G,m),te.warning('attribute "'+W+'" missed start quot('+pe+")!!"),m=J+1,Y=B;else throw new Error('attribute value must after "="');break;case"/":switch(Y){case I:g.setTagName(f.slice(m,J));case B:case L:case T:Y=T,g.closed=!0;case N:case H:break;case D:g.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return te.error("unexpected end of input"),Y==I&&g.setTagName(f.slice(m,J)),J;case">":switch(Y){case I:g.setTagName(f.slice(m,J));case B:case L:case T:break;case N:case H:G=f.slice(m,J),G.slice(-1)==="/"&&(g.closed=!0,G=G.slice(0,-1));case D:Y===D&&(G=W),Y==N?(te.warning('attribute "'+G+'" missed quot(")!'),X(W,G,m)):((!P.isHTML(M[""])||!G.match(/^(?:disabled|checked|selected)$/i))&&te.warning('attribute "'+G+'" missed value!! "'+G+'" instead!!'),X(G,G,m));break;case k:throw new Error("attribute value missed!!")}return J;case"\x80":pe=" ";default:if(pe<=" ")switch(Y){case I:g.setTagName(f.slice(m,J)),Y=L;break;case H:W=f.slice(m,J),Y=D;break;case N:var G=f.slice(m,J);te.warning('attribute "'+G+'" missed quot(")!!'),X(W,G,m);case B:Y=L;break}else switch(Y){case D:var ee=g.tagName;(!P.isHTML(M[""])||!W.match(/^(?:disabled|checked|selected)$/i))&&te.warning('attribute "'+W+'" missed value!! "'+W+'" instead2!!'),X(W,W,m),m=J,Y=H;break;case B:te.warning('attribute space is required"'+W+'"!!');case L:Y=H,m=J;break;case k:Y=N,m=J;break;case T:throw new Error("elements closed character '/' and '>' must be connected to")}}J++}}function C(f,m,g){for(var M=f.tagName,q=null,te=f.length;te--;){var X=f[te],W=X.qName,G=X.value,ee=W.indexOf(":");if(ee>0)var J=X.prefix=W.slice(0,ee),Y=W.slice(ee+1),pe=J==="xmlns"&&Y;else Y=W,J=null,pe=W==="xmlns"&&"";X.localName=Y,pe!==!1&&(q==null&&(q={},i(g,g={})),g[pe]=q[pe]=G,X.uri=P.XMLNS,m.startPrefixMapping(pe,G))}for(var te=f.length;te--;){X=f[te];var J=X.prefix;J&&(J==="xml"&&(X.uri=P.XML),J!=="xmlns"&&(X.uri=g[J||""]))}var ee=M.indexOf(":");ee>0?(J=f.prefix=M.slice(0,ee),Y=f.localName=M.slice(ee+1)):(J=null,Y=f.localName=M);var V=f.uri=g[J||""];if(m.startElement(V,Y,M,f),f.closed){if(m.endElement(V,Y,M),q)for(J in q)Object.prototype.hasOwnProperty.call(q,J)&&m.endPrefixMapping(J)}else return f.currentNSMap=g,f.localNSMap=q,!0}function p(f,m,g,M,q){if(/^(?:script|textarea)$/i.test(g)){var te=f.indexOf("</"+g+">",m),X=f.substring(m+1,te);if(/[&<]/.test(X))return/^script$/i.test(g)?(q.characters(X,0,X.length),te):(X=X.replace(/&#?\w+;/g,M),q.characters(X,0,X.length),te)}return m+1}function A(f,m,g,M){var q=M[g];return q==null&&(q=f.lastIndexOf("</"+g+">"),q<m&&(q=f.lastIndexOf("</"+g)),M[g]=q),q<m}function i(f,m){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(m[g]=f[g])}function u(f,m,g,M){var q=f.charAt(m+2);switch(q){case"-":if(f.charAt(m+3)==="-"){var te=f.indexOf("-->",m+4);return te>m?(g.comment(f,m+4,te-m-4),te+3):(M.error("Unclosed comment"),-1)}else return-1;default:if(f.substr(m+3,6)=="CDATA["){var te=f.indexOf("]]>",m+9);return g.startCDATA(),g.characters(f,m+9,te-m-9),g.endCDATA(),te+3}var X=d(f,m),W=X.length;if(W>1&&/!doctype/i.test(X[0][0])){var G=X[1][0],J=!1,Y=!1;W>3&&(/^public$/i.test(X[2][0])?(J=X[3][0],Y=W>4&&X[4][0]):/^system$/i.test(X[2][0])&&(Y=X[3][0]));var pe=X[W-1];return g.startDTD(G,J,Y),g.endDTD(),pe.index+pe[0].length}}return-1}function c(f,m,g){var M=f.indexOf("?>",m);if(M){var q=f.substring(m,M).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(q){var te=q[0].length;return g.processingInstruction(q[1],q[2]),M+2}else return-1}return-1}function a(){this.attributeNames={}}a.prototype={setTagName:function(f){if(!U.test(f))throw new Error("invalid tagName:"+f);this.tagName=f},addValue:function(f,m,g){if(!U.test(f))throw new Error("invalid attribute:"+f);this.attributeNames[f]=this.length,this[this.length++]={qName:f,value:m,offset:g}},length:0,getLocalName:function(f){return this[f].localName},getLocator:function(f){return this[f].locator},getQName:function(f){return this[f].qName},getURI:function(f){return this[f].uri},getValue:function(f){return this[f].value}};function d(f,m){var g,M=[],q=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(q.lastIndex=m,q.exec(f);g=q.exec(f);)if(M.push(g),g[1])return M}he.XMLReader=j,he.ParseError=O},"./node_modules/process/browser.js":function(re,he){var w=re.exports={},P,b;function l(){throw new Error("setTimeout has not been defined")}function U(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?P=setTimeout:P=l}catch(R){P=l}try{typeof clearTimeout=="function"?b=clearTimeout:b=U}catch(R){b=U}})();function I(R){if(P===setTimeout)return setTimeout(R,0);if((P===l||!P)&&setTimeout)return P=setTimeout,setTimeout(R,0);try{return P(R,0)}catch(ne){try{return P.call(null,R,0)}catch(x){return P.call(this,R,0)}}}function H(R){if(b===clearTimeout)return clearTimeout(R);if((b===U||!b)&&clearTimeout)return b=clearTimeout,clearTimeout(R);try{return b(R)}catch(ne){try{return b.call(null,R)}catch(x){return b.call(this,R)}}}var D=[],k=!1,N,B=-1;function L(){!k||!N||(k=!1,N.length?D=N.concat(D):B=-1,D.length&&T())}function T(){if(!k){var R=I(L);k=!0;for(var ne=D.length;ne;){for(N=D,D=[];++B<ne;)N&&N[B].run();B=-1,ne=D.length}N=null,k=!1,H(R)}}w.nextTick=function(R){var ne=new Array(arguments.length-1);if(arguments.length>1)for(var x=1;x<arguments.length;x++)ne[x-1]=arguments[x];D.push(new O(R,ne)),D.length===1&&!k&&I(T)};function O(R,ne){this.fun=R,this.array=ne}O.prototype.run=function(){this.fun.apply(null,this.array)},w.title="browser",w.browser=!0,w.env={},w.argv=[],w.version="",w.versions={};function j(){}w.on=j,w.addListener=j,w.once=j,w.off=j,w.removeListener=j,w.removeAllListeners=j,w.emit=j,w.prependListener=j,w.prependOnceListener=j,w.listeners=function(R){return[]},w.binding=function(R){throw new Error("process.binding is not supported")},w.cwd=function(){return"/"},w.chdir=function(R){throw new Error("process.chdir is not supported")},w.umask=function(){return 0}},"./node_modules/webpack/buildin/amd-options.js":function(re,he){(function(w){re.exports=w}).call(this,{})},"./node_modules/webpack/buildin/module.js":function(re,he){re.exports=function(w){return w.webpackPolyfill||(w.deprecate=function(){},w.paths=[],w.children||(w.children=[]),Object.defineProperty(w,"loaded",{enumerable:!0,get:function(){return w.l}}),Object.defineProperty(w,"id",{enumerable:!0,get:function(){return w.i}}),w.webpackPolyfill=1),w}},"./package.json":function(re){re.exports=JSON.parse('{"name":"cos-js-sdk-v5","version":"1.8.0","description":"JavaScript SDK for [\u817E\u8BAF\u4E91\u5BF9\u8C61\u5B58\u50A8](https://cloud.tencent.com/product/cos)","main":"dist/cos-js-sdk-v5.js","types":"index.d.ts","scripts":{"prettier":"prettier --write src demo/demo.js demo/CIDemos/*.js test/test.js server/sts.js lib/request.js index.d.ts","server":"node server/sts.js","dev":"cross-env NODE_ENV=development webpack -w --mode=development","build":"cross-env NODE_ENV=production webpack --mode=production","cos-auth.min.js":"uglifyjs ./demo/common/cos-auth.js -o ./demo/common/cos-auth.min.js -c -m","test":"jest --runInBand --coverage"},"repository":{"type":"git","url":"git+https://github.com/tencentyun/cos-js-sdk-v5.git"},"keywords":[],"author":"carsonxu","license":"ISC","bugs":{"url":"https://github.com/tencentyun/cos-js-sdk-v5/issues"},"homepage":"https://github.com/tencentyun/cos-js-sdk-v5#readme","dependencies":{"@xmldom/xmldom":"^0.8.6"},"devDependencies":{"@babel/core":"7.17.9","@babel/plugin-transform-runtime":"7.18.10","@babel/preset-env":"7.16.11","babel-loader":"8.2.5","body-parser":"^1.18.3","cross-env":"^5.2.0","express":"^4.16.4","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","prettier":"^3.0.1","qcloud-cos-sts":"^3.0.2","request":"^2.87.0","terser-webpack-plugin":"4.2.3","uglifyjs":"^2.4.11","webpack":"4.46.0","webpack-cli":"4.10.0"}}')},"./src/advance.js":function(re,he,w){var P=w("./node_modules/@babel/runtime/helpers/typeof.js"),b=w("./src/session.js"),l=w("./src/async.js"),U=w("./src/event.js").EventProxy,I=w("./src/util.js"),H=w("./src/tracker.js");function D(i,u){var c=this,a=new U,d=i.TaskId,f=i.Bucket,m=i.Region,g=i.Key,M=i.Body,q=i.ChunkSize||i.SliceSize||c.options.ChunkSize,te=i.AsyncLimit,X=i.StorageClass,W=i.ServerSideEncryption,G,J,Y=i.onHashProgress,pe=i.tracker;pe&&pe.setParams({chunkSize:q}),a.on("error",function(ee){if(!!c._isRunningTask(d))return ee.UploadId=i.UploadData.UploadId||"",u(ee)}),a.on("upload_complete",function(ee){var V=I.extend({UploadId:i.UploadData.UploadId||""},ee);u(null,V)}),a.on("upload_slice_complete",function(ee){var V={};I.each(i.Headers,function(ue,$){var Z=$.toLowerCase();(Z.indexOf("x-cos-meta-")===0||Z==="pic-operations")&&(V[$]=ue)}),O.call(c,{Bucket:f,Region:m,Key:g,UploadId:ee.UploadId,SliceList:ee.SliceList,Headers:V,tracker:pe},function(ue,$){if(!!c._isRunningTask(d)){if(b.removeUsing(ee.UploadId),ue)return J(null,!0),a.emit("error",ue);b.removeUploadId.call(c,ee.UploadId),J({loaded:G,total:G},!0),a.emit("upload_complete",$)}})}),a.on("get_upload_data_finish",function(ee){var V=b.getFileId(M,i.ChunkSize,f,g);V&&b.saveUploadId.call(c,V,ee.UploadId,c.options.UploadIdCacheLimit),b.setUsing(ee.UploadId),J(null,!0),L.call(c,{TaskId:d,Bucket:f,Region:m,Key:g,Body:M,FileSize:G,SliceSize:q,AsyncLimit:te,ServerSideEncryption:W,UploadData:ee,Headers:i.Headers,onProgress:J,tracker:pe},function(ue,$){if(!!c._isRunningTask(d)){if(ue)return J(null,!0),a.emit("error",ue);a.emit("upload_slice_complete",$)}})}),a.on("get_file_size_finish",function(){if(J=I.throttleOnProgress.call(c,G,i.onProgress),i.UploadData.UploadId)a.emit("get_upload_data_finish",i.UploadData);else{var ee=I.extend({TaskId:d,Bucket:f,Region:m,Key:g,Headers:i.Headers,StorageClass:X,Body:M,FileSize:G,SliceSize:q,onHashProgress:Y,tracker:pe},i);k.call(c,ee,function(V,ue){if(!!c._isRunningTask(d)){if(V)return a.emit("error",V);i.UploadData.UploadId=ue.UploadId,i.UploadData.PartList=ue.PartList,a.emit("get_upload_data_finish",i.UploadData)}})}}),G=i.ContentLength,delete i.ContentLength,!i.Headers&&(i.Headers={}),I.each(i.Headers,function(ee,V){V.toLowerCase()==="content-length"&&delete i.Headers[V]}),function(){for(var ee=[1,2,4,8,16,32,64,128,256,512,1024,1024*2,1024*4,1024*5],V=1024*1024,ue=0;ue<ee.length&&(V=ee[ue]*1024*1024,!(G/V<=c.options.MaxPartNumber));ue++);i.ChunkSize=i.SliceSize=q=Math.max(q,V)}(),G===0?(i.Body="",i.ContentLength=0,i.SkipTask=!0,c.putObject(i,u)):a.emit("get_file_size_finish")}function k(i,u){var c=i.TaskId,a=i.Bucket,d=i.Region,f=i.Key,m=i.StorageClass,g=this,M={},q=i.FileSize,te=i.SliceSize,X=Math.ceil(q/te),W=0,G=0,J=I.throttleOnProgress.call(g,q,i.onHashProgress),Y=function(ue,$){var Z=te*(ue-1),ce=Math.min(Z+te,q),ie=ce-Z;M[ue]?$(null,{PartNumber:ue,ETag:M[ue],Size:ie}):I.fileSlice(i.Body,Z,ce,!1,function(se){I.getFileMd5(se,function(ge,fe){if(ge)return $(I.error(ge));var De='"'+fe+'"';M[ue]=De,W+=1,G+=ie,J({loaded:G,total:q}),$(null,{PartNumber:ue,ETag:De,Size:ie})})})},pe=function(ue,$){var Z=ue.length;if(Z===0)return $(null,!0);if(Z>X)return $(null,!1);if(Z>1){var ce=Math.max(ue[0].Size,ue[1].Size);if(ce!==te)return $(null,!1)}var ie=function se(ge){if(ge<Z){var fe=ue[ge];Y(fe.PartNumber,function(De,Ae){Ae&&Ae.ETag===fe.ETag&&Ae.Size===fe.Size?se(ge+1):$(null,!1)})}else $(null,!0)};ie(0)},ee=new U;ee.on("error",function(V){if(!!g._isRunningTask(c))return u(V)}),ee.on("upload_id_available",function(V){var ue={},$=[];I.each(V.PartList,function(ie){ue[ie.PartNumber]=ie});for(var Z=1;Z<=X;Z++){var ce=ue[Z];ce?(ce.PartNumber=Z,ce.Uploaded=!0):ce={PartNumber:Z,ETag:null,Uploaded:!1},$.push(ce)}V.PartList=$,u(null,V)}),ee.on("no_available_upload_id",function(){if(!!g._isRunningTask(c)){var V=I.extend({Bucket:a,Region:d,Key:f,Query:I.clone(i.Query),StorageClass:m,Body:i.Body,calledBySdk:"sliceUploadFile",tracker:i.tracker},i),ue=I.clone(i.Headers);delete ue["x-cos-mime-limit"],V.Headers=ue,g.multipartInit(V,function($,Z){if(!!g._isRunningTask(c)){if($)return ee.emit("error",$);var ce=Z.UploadId;if(!ce)return u(I.error(new Error("no such upload id")));ee.emit("upload_id_available",{UploadId:ce,PartList:[]})}})}}),ee.on("has_and_check_upload_id",function(V){V=V.reverse(),l.eachLimit(V,1,function(ue,$){if(!!g._isRunningTask(c)){if(b.using[ue]){$();return}B.call(g,{Bucket:a,Region:d,Key:f,UploadId:ue,tracker:i.tracker},function(Z,ce){if(!!g._isRunningTask(c)){if(Z)return b.removeUsing(ue),ee.emit("error",Z);var ie=ce.PartList;ie.forEach(function(se){se.PartNumber*=1,se.Size*=1,se.ETag=se.ETag||""}),pe(ie,function(se,ge){if(!!g._isRunningTask(c)){if(se)return ee.emit("error",se);ge?$({UploadId:ue,PartList:ie}):$()}})}})}},function(ue){!g._isRunningTask(c)||(J(null,!0),ue&&ue.UploadId?ee.emit("upload_id_available",ue):ee.emit("no_available_upload_id"))})}),ee.on("seek_local_avail_upload_id",function(V){var ue=b.getFileId(i.Body,i.ChunkSize,a,f),$=b.getUploadIdList.call(g,ue);if(!ue||!$){ee.emit("has_and_check_upload_id",V);return}var Z=function ce(ie){if(ie>=$.length){ee.emit("has_and_check_upload_id",V);return}var se=$[ie];if(!I.isInArray(V,se)){b.removeUploadId.call(g,se),ce(ie+1);return}if(b.using[se]){ce(ie+1);return}B.call(g,{Bucket:a,Region:d,Key:f,UploadId:se,tracker:i.tracker},function(ge,fe){!g._isRunningTask(c)||(ge?(b.removeUploadId.call(g,se),ce(ie+1)):ee.emit("upload_id_available",{UploadId:se,PartList:fe.PartList}))})};Z(0)}),ee.on("get_remote_upload_id_list",function(){N.call(g,{Bucket:a,Region:d,Key:f,tracker:i.tracker},function(V,ue){if(!!g._isRunningTask(c)){if(V)return ee.emit("error",V);var $=I.filter(ue.UploadList,function(ie){return ie.Key===f&&(!m||ie.StorageClass.toUpperCase()===m.toUpperCase())}).reverse().map(function(ie){return ie.UploadId||ie.UploadID});if($.length)ee.emit("seek_local_avail_upload_id",$);else{var Z=b.getFileId(i.Body,i.ChunkSize,a,f),ce;Z&&(ce=b.getUploadIdList.call(g,Z))&&I.each(ce,function(ie){b.removeUploadId.call(g,ie)}),ee.emit("no_available_upload_id")}}})}),ee.emit("get_remote_upload_id_list")}function N(i,u){var c=this,a=[],d={Bucket:i.Bucket,Region:i.Region,Prefix:i.Key,calledBySdk:i.calledBySdk||"sliceUploadFile",tracker:i.tracker},f=function m(){c.multipartList(d,function(g,M){if(g)return u(g);a.push.apply(a,M.Upload||[]),M.IsTruncated==="true"?(d.KeyMarker=M.NextKeyMarker,d.UploadIdMarker=M.NextUploadIdMarker,m()):u(null,{UploadList:a})})};f()}function B(i,u){var c=this,a=[],d={Bucket:i.Bucket,Region:i.Region,Key:i.Key,UploadId:i.UploadId,calledBySdk:"sliceUploadFile",tracker:i.tracker},f=function m(){c.multipartListPart(d,function(g,M){if(g)return u(g);a.push.apply(a,M.Part||[]),M.IsTruncated==="true"?(d.PartNumberMarker=M.NextPartNumberMarker,m()):u(null,{PartList:a})})};f()}function L(i,u){var c=this,a=i.TaskId,d=i.Bucket,f=i.Region,m=i.Key,g=i.UploadData,M=i.FileSize,q=i.SliceSize,te=Math.min(i.AsyncLimit||c.options.ChunkParallelLimit||1,256),X=i.Body,W=Math.ceil(M/q),G=0,J=i.ServerSideEncryption,Y=i.Headers,pe=I.filter(g.PartList,function(V){return V.Uploaded&&(G+=V.PartNumber>=W&&M%q||q),!V.Uploaded}),ee=i.onProgress;l.eachLimit(pe,te,function(V,ue){if(!!c._isRunningTask(a)){var $=V.PartNumber,Z=Math.min(M,V.PartNumber*q)-(V.PartNumber-1)*q,ce=0;T.call(c,{TaskId:a,Bucket:d,Region:f,Key:m,SliceSize:q,FileSize:M,PartNumber:$,ServerSideEncryption:J,Body:X,UploadData:g,Headers:Y,onProgress:function(se){G+=se.loaded-ce,ce=se.loaded,ee({loaded:G,total:M})},tracker:i.tracker},function(ie,se){!c._isRunningTask(a)||(!ie&&!se.ETag&&(ie='get ETag error, please add "ETag" to CORS ExposeHeader setting.( \u83B7\u53D6ETag\u5931\u8D25\uFF0C\u8BF7\u5728CORS ExposeHeader\u8BBE\u7F6E\u4E2D\u6DFB\u52A0ETag\uFF0C\u8BF7\u53C2\u8003\u6587\u6863\uFF1Ahttps://cloud.tencent.com/document/product/436/13318 )'),ie?G-=ce:(G+=Z-ce,V.ETag=se.ETag),ee({loaded:G,total:M}),ue(ie||null,se))})}},function(V){if(!!c._isRunningTask(a)){if(V)return u(V);u(null,{UploadId:g.UploadId,SliceList:g.PartList})}})}function T(i,u){var c=this,a=i.TaskId,d=i.Bucket,f=i.Region,m=i.Key,g=i.FileSize,M=i.Body,q=i.PartNumber*1,te=i.SliceSize,X=i.ServerSideEncryption,W=i.UploadData,G=i.Headers||{},J=c.options.ChunkRetryTimes+1,Y=te*(q-1),pe=te,ee=Y+te;ee>g&&(ee=g,pe=ee-Y);var V=["x-cos-traffic-limit","x-cos-mime-limit"],ue={};I.each(G,function(Z,ce){V.indexOf(ce)>-1&&(ue[ce]=Z)});var $=W.PartList[q-1];l.retry(J,function(Z){!c._isRunningTask(a)||I.fileSlice(M,Y,ee,!0,function(ce){c.multipartUpload({TaskId:a,Bucket:d,Region:f,Key:m,ContentLength:pe,PartNumber:q,UploadId:W.UploadId,ServerSideEncryption:X,Body:ce,Headers:ue,onProgress:i.onProgress,calledBySdk:"sliceUploadFile",tracker:i.tracker},function(ie,se){if(!!c._isRunningTask(a))return ie?Z(ie):($.Uploaded=!0,Z(null,se))})})},function(Z,ce){if(!!c._isRunningTask(a))return u(Z,ce)})}function O(i,u){var c=i.Bucket,a=i.Region,d=i.Key,f=i.UploadId,m=i.SliceList,g=this,M=this.options.ChunkRetryTimes+1,q=i.Headers,te=m.map(function(X){return{PartNumber:X.PartNumber,ETag:X.ETag}});l.retry(M,function(X){g.multipartComplete({Bucket:c,Region:a,Key:d,UploadId:f,Parts:te,Headers:q,calledBySdk:"sliceUploadFile",tracker:i.tracker},X)},function(X,W){u(X,W)})}function j(i,u){var c=i.Bucket,a=i.Region,d=i.Key,f=i.UploadId,m=i.Level||"task",g=i.AsyncLimit,M=this,q=new U;if(q.on("error",function(te){return u(te)}),q.on("get_abort_array",function(te){R.call(M,{Bucket:c,Region:a,Key:d,Headers:i.Headers,AsyncLimit:g,AbortArray:te},u)}),m==="bucket")N.call(M,{Bucket:c,Region:a,calledBySdk:"abortUploadTask"},function(te,X){if(te)return u(te);q.emit("get_abort_array",X.UploadList||[])});else if(m==="file"){if(!d)return u(I.error(new Error("abort_upload_task_no_key")));N.call(M,{Bucket:c,Region:a,Key:d,calledBySdk:"abortUploadTask"},function(te,X){if(te)return u(te);q.emit("get_abort_array",X.UploadList||[])})}else if(m==="task"){if(!f)return u(I.error(new Error("abort_upload_task_no_id")));if(!d)return u(I.error(new Error("abort_upload_task_no_key")));q.emit("get_abort_array",[{Key:d,UploadId:f}])}else return u(I.error(new Error("abort_unknown_level")))}function R(i,u){var c=i.Bucket,a=i.Region,d=i.Key,f=i.AbortArray,m=i.AsyncLimit||1,g=this,M=0,q=new Array(f.length);l.eachLimit(f,m,function(te,X){var W=M;if(d&&d!==te.Key){q[W]={error:{KeyNotMatch:!0}},X(null);return}var G=te.UploadId||te.UploadID;g.multipartAbort({Bucket:c,Region:a,Key:te.Key,Headers:i.Headers,UploadId:G},function(J){var Y={Bucket:c,Region:a,Key:te.Key,UploadId:G};q[W]={error:J,task:Y},X(null)}),M++},function(te){if(te)return u(te);for(var X=[],W=[],G=0,J=q.length;G<J;G++){var Y=q[G];Y.task&&(Y.error?W.push(Y.task):X.push(Y.task))}return u(null,{successList:X,errorList:W})})}function ne(i,u){var c=this,a=i.SliceSize===void 0?c.options.SliceSize:i.SliceSize,d=[],f=i.Body,m=f.size||f.length||0,g={TaskId:""};if(c.options.EnableReporter){var M=c.options.UseAccelerate||typeof c.options.Domain=="string"&&c.options.Domain.includes("accelerate."),q=m>a?"sliceUploadFile":"putObject";i.tracker=new H({Beacon:c.options.BeaconReporter,clsReporter:c.options.ClsReporter,bucket:i.Bucket,region:i.Region,apiName:"uploadFile",realApi:q,fileKey:i.Key,fileSize:m,accelerate:M,deepTracker:c.options.DeepTracker,customId:c.options.CustomId,delay:c.options.TrackerDelay})}I.each(i,function(Y,pe){P(Y)!=="object"&&typeof Y!="function"&&(g[pe]=Y)});var te=i.onTaskReady,X=function(pe){g.TaskId=pe,te&&te(pe)};i.onTaskReady=X;var W=m>a?"sliceUploadFile":"putObject",G=i.onFileFinish,J=function(pe,ee){i.tracker&&i.tracker.report(pe,ee),G&&G(pe,ee,g),u&&u(pe,ee)};d.push({api:W,params:i,callback:J}),c._addTasks(d)}function x(i,u){var c=this,a=i.SliceSize===void 0?c.options.SliceSize:i.SliceSize,d=0,f=0,m=I.throttleOnProgress.call(c,f,i.onProgress),g=i.files.length,M=i.onFileFinish,q=Array(g),te=function(G,J,Y){m(null,!0),M&&M(G,J,Y),q[Y.Index]={options:Y,error:G,data:J},--g<=0&&u&&u(null,{files:q})},X=[];I.each(i.files,function(W,G){(function(){var J=W.Body,Y=J.size||J.length||0,pe={Index:G,TaskId:""};if(!c.options.UseRawKey&&W.Key&&W.Key.substr(0,1)==="/"&&(W.Key=W.Key.substr(1)),d+=Y,c.options.EnableReporter){var ee=c.options.UseAccelerate||typeof c.options.Domain=="string"&&c.options.Domain.includes("accelerate."),V=Y>a?"sliceUploadFile":"putObject";W.tracker=new H({Beacon:c.options.BeaconReporter,clsReporter:c.options.ClsReporter,bucket:W.Bucket,region:W.Region,apiName:"uploadFiles",realApi:V,fileKey:W.Key,fileSize:Y,accelerate:ee,deepTracker:c.options.DeepTracker,customId:c.options.CustomId,delay:c.options.TrackerDelay})}I.each(W,function(De,Ae){P(De)!=="object"&&typeof De!="function"&&(pe[Ae]=De)});var ue=W.onTaskReady,$=function(Ae){pe.TaskId=Ae,ue&&ue(Ae)};W.onTaskReady=$;var Z=0,ce=W.onProgress,ie=function(Ae){f=f-Z+Ae.loaded,Z=Ae.loaded,ce&&ce(Ae),m({loaded:f,total:d})};W.onProgress=ie;var se=Y>a?"sliceUploadFile":"putObject",ge=W.onFileFinish,fe=function(Ae,ve){W.tracker&&W.tracker.report(Ae,ve),ge&&ge(Ae,ve),te&&te(Ae,ve,pe)};X.push({api:se,params:W,callback:fe})})()}),c._addTasks(X)}function C(i,u){var c=new U,a=this,d=i.Bucket,f=i.Region,m=i.Key,g=i.CopySource,M=I.getSourceParams.call(this,g);if(!M){u(I.error(new Error("CopySource format error")));return}var q=M.Bucket,te=M.Region,X=decodeURIComponent(M.Key),W=i.CopySliceSize===void 0?a.options.CopySliceSize:i.CopySliceSize;W=Math.max(0,W);var G=i.CopyChunkSize||this.options.CopyChunkSize,J=this.options.CopyChunkParallelLimit,Y=this.options.ChunkRetryTimes+1,pe=0,ee=0,V,ue,$={},Z={},ce={};c.on("copy_slice_complete",function(ie){var se={};I.each(i.Headers,function(fe,De){De.toLowerCase().indexOf("x-cos-meta-")===0&&(se[De]=fe)});var ge=I.map(ie.PartList,function(fe){return{PartNumber:fe.PartNumber,ETag:fe.ETag}});l.retry(Y,function(fe){a.multipartComplete({Bucket:d,Region:f,Key:m,UploadId:ie.UploadId,Parts:ge,tracker:i.tracker,calledBySdk:"sliceCopyFile"},fe)},function(fe,De){if(b.removeUsing(ie.UploadId),fe)return ue(null,!0),u(fe);b.removeUploadId(ie.UploadId),ue({loaded:V,total:V},!0),u(null,De)})}),c.on("get_copy_data_finish",function(ie){var se=b.getCopyFileId(g,$,G,d,m);se&&b.saveUploadId(se,ie.UploadId,a.options.UploadIdCacheLimit),b.setUsing(ie.UploadId);var ge=I.filter(ie.PartList,function(fe){return fe.Uploaded&&(ee+=fe.PartNumber>=pe&&V%G||G),!fe.Uploaded});l.eachLimit(ge,J,function(fe,De){var Ae=fe.PartNumber,ve=fe.CopySourceRange,je=fe.end-fe.start;l.retry(Y,function(xe){p.call(a,{Bucket:d,Region:f,Key:m,CopySource:g,UploadId:ie.UploadId,PartNumber:Ae,CopySourceRange:ve,tracker:i.tracker,calledBySdk:"sliceCopyFile"},xe)},function(xe,Ne){if(xe)return De(xe);ee+=je,ue({loaded:ee,total:V}),fe.ETag=Ne.ETag,De(xe||null,Ne)})},function(fe){if(fe)return b.removeUsing(ie.UploadId),ue(null,!0),u(fe);c.emit("copy_slice_complete",ie)})}),c.on("get_chunk_size_finish",function(){var ie=function(){a.multipartInit({Bucket:d,Region:f,Key:m,Headers:ce,tracker:i.tracker,calledBySdk:"sliceCopyFile"},function(Ae,ve){if(Ae)return u(Ae);i.UploadId=ve.UploadId,c.emit("get_copy_data_finish",{UploadId:i.UploadId,PartList:i.PartList})})},se=b.getCopyFileId(g,$,G,d,m),ge=b.getUploadIdList(se);if(!se||!ge)return ie();var fe=function De(Ae){if(Ae>=ge.length)return ie();var ve=ge[Ae];if(b.using[ve])return De(Ae+1);B.call(a,{Bucket:d,Region:f,Key:m,UploadId:ve,tracker:i.tracker,calledBySdk:"sliceCopyFile"},function(je,xe){if(je)b.removeUploadId(ve),De(Ae+1);else{if(b.using[ve])return De(Ae+1);var Ne={},ze=0;I.each(xe.PartList,function(be){var _=parseInt(be.Size),v=ze+_-1;Ne[be.PartNumber+"|"+ze+"|"+v]=be.ETag,ze+=_}),I.each(i.PartList,function(be){var _=Ne[be.PartNumber+"|"+be.start+"|"+be.end];_&&(be.ETag=_,be.Uploaded=!0)}),c.emit("get_copy_data_finish",{UploadId:ve,PartList:i.PartList})}})};fe(0)}),c.on("get_file_size_finish",function(){if(function(){for(var se=[1,2,4,8,16,32,64,128,256,512,1024,1024*2,1024*4,1024*5],ge=1024*1024,fe=0;fe<se.length&&(ge=se[fe]*1024*1024,!(V/ge<=a.options.MaxPartNumber));fe++);i.ChunkSize=G=Math.max(G,ge),pe=Math.ceil(V/G);for(var De=[],Ae=1;Ae<=pe;Ae++){var ve=(Ae-1)*G,je=Ae*G<V?Ae*G-1:V-1,xe={PartNumber:Ae,start:ve,end:je,CopySourceRange:"bytes="+ve+"-"+je};De.push(xe)}i.PartList=De}(),i.Headers["x-cos-metadata-directive"]==="Replaced"?ce=i.Headers:ce=Z,ce["x-cos-storage-class"]=i.Headers["x-cos-storage-class"]||Z["x-cos-storage-class"],ce=I.clearKey(ce),Z["x-cos-storage-class"]==="ARCHIVE"||Z["x-cos-storage-class"]==="DEEP_ARCHIVE"){var ie=Z["x-cos-restore"];if(!ie||ie==='ongoing-request="true"'){u(I.error(new Error("Unrestored archive object is not allowed to be copied")));return}}delete ce["x-cos-copy-source"],delete ce["x-cos-metadata-directive"],delete ce["x-cos-copy-source-If-Modified-Since"],delete ce["x-cos-copy-source-If-Unmodified-Since"],delete ce["x-cos-copy-source-If-Match"],delete ce["x-cos-copy-source-If-None-Match"],c.emit("get_chunk_size_finish")}),a.headObject({Bucket:q,Region:te,Key:X,tracker:i.tracker,calledBySdk:"sliceCopyFile"},function(ie,se){if(ie){ie.statusCode&&ie.statusCode===404?u(I.error(ie,{ErrorStatus:X+" Not Exist"})):u(ie);return}if(V=i.FileSize=se.headers["content-length"],V===void 0||!V){u(I.error(new Error('get Content-Length error, please add "Content-Length" to CORS ExposeHeader setting.\uFF08 \u83B7\u53D6Content-Length\u5931\u8D25\uFF0C\u8BF7\u5728CORS ExposeHeader\u8BBE\u7F6E\u4E2D\u6DFB\u52A0Content-Length\uFF0C\u8BF7\u53C2\u8003\u6587\u6863\uFF1Ahttps://cloud.tencent.com/document/product/436/13318 \uFF09')));return}if(i.tracker&&i.tracker.setParams({httpSize:V}),ue=I.throttleOnProgress.call(a,V,i.onProgress),V<=W)i.Headers["x-cos-metadata-directive"]||(i.Headers["x-cos-metadata-directive"]="Copy"),a.putObjectCopy(Object.assign(i,{calledBySdk:"sliceCopyFile"}),function(fe,De){if(fe)return ue(null,!0),u(fe);ue({loaded:V,total:V},!0),u(fe,De)});else{var ge=se.headers;$=ge,Z={"Cache-Control":ge["cache-control"],"Content-Disposition":ge["content-disposition"],"Content-Encoding":ge["content-encoding"],"Content-Type":ge["content-type"],Expires:ge.expires,"x-cos-storage-class":ge["x-cos-storage-class"]},I.each(ge,function(fe,De){var Ae="x-cos-meta-";De.indexOf(Ae)===0&&De.length>Ae.length&&(Z[De]=fe)}),c.emit("get_file_size_finish")}})}function p(i,u){var c=i.TaskId,a=i.Bucket,d=i.Region,f=i.Key,m=i.CopySource,g=i.UploadId,M=i.PartNumber*1,q=i.CopySourceRange,te=this.options.ChunkRetryTimes+1,X=this;l.retry(te,function(W){X.uploadPartCopy({TaskId:c,Bucket:a,Region:d,Key:f,CopySource:m,UploadId:g,PartNumber:M,CopySourceRange:q,tracker:i.tracker,calledBySdk:i.calledBySdk},function(G,J){W(G||null,J)})},function(W,G){return u(W,G)})}var A={sliceUploadFile:D,abortUploadTask:j,uploadFile:ne,uploadFiles:x,sliceCopyFile:C};re.exports.init=function(i,u){u.transferToTaskMethod(A,"sliceUploadFile"),I.each(A,function(c,a){i.prototype[a]=I.apiWrapper(a,c)})}},"./src/async.js":function(re,he){var w=function(U,I,H,D){if(D=D||function(){},!U.length||I<=0)return D();var k=0,N=0,B=0;(function L(){if(k>=U.length)return D();for(;B<I&&N<U.length;)N+=1,B+=1,H(U[N-1],function(T){T?(D(T),D=function(){}):(k+=1,B-=1,k>=U.length?D():L())})})()},P=function(U,I,H){var D=function k(N){I(function(B,L){B&&N<U?k(N+1):H(B,L)})};U<1?H():D(1)},b={eachLimit:w,retry:P};re.exports=b},"./src/base.js":function(re,he,w){var P=w("./node_modules/@babel/runtime/helpers/typeof.js"),b=w("./lib/request.js"),l=w("./src/util.js");function U(t,r){var e=this.options.Protocol||(l.isBrowser&&(typeof location=="undefined"?"undefined":P(location))==="object"&&location.protocol==="http:"?"http:":"https:"),n=this.options.ServiceDomain,o=t.AppId||this.options.appId,s=t.Region;n?(n=n.replace(/\{\{AppId\}\}/gi,o||"").replace(/\{\{Region\}\}/gi,s||"").replace(/\{\{.*?\}\}/gi,""),/^[a-zA-Z]+:\/\//.test(n)||(n=e+"//"+n),n.slice(-1)==="/"&&(n=n.slice(0,-1))):s?n=e+"//cos."+s+".myqcloud.com":n=e+"//service.cos.myqcloud.com";var h="",y=s?"cos."+s+".myqcloud.com":"service.cos.myqcloud.com",F=n.replace(/^https?:\/\/([^/]+)(\/.*)?$/,"$1");y===F&&(h=y),oe.call(this,{Action:"name/cos:GetService",url:n,method:"GET",headers:t.Headers,SignHost:h,tracker:t.tracker},function(de,ae){if(de)return r(de);var Ce=ae&&ae.ListAllMyBucketsResult&&ae.ListAllMyBucketsResult.Buckets&&ae.ListAllMyBucketsResult.Buckets.Bucket||[];Ce=l.isArray(Ce)?Ce:[Ce];var Q=ae&&ae.ListAllMyBucketsResult&&ae.ListAllMyBucketsResult.Owner||{};r(null,{Buckets:Ce,Owner:Q,statusCode:ae.statusCode,headers:ae.headers})})}function I(t,r){var e=this,n="";if(t.BucketAZConfig){var o={BucketAZConfig:t.BucketAZConfig};n=l.json2xml({CreateBucketConfiguration:o})}oe.call(this,{Action:"name/cos:PutBucket",method:"PUT",Bucket:t.Bucket,Region:t.Region,headers:t.Headers,body:n,tracker:t.tracker},function(s,h){if(s)return r(s);var y=Ge({protocol:e.options.Protocol,domain:e.options.Domain,bucket:t.Bucket,region:t.Region,isLocation:!0});r(null,{Location:y,statusCode:h.statusCode,headers:h.headers})})}function H(t,r){oe.call(this,{Action:"name/cos:HeadBucket",Bucket:t.Bucket,Region:t.Region,headers:t.Headers,method:"HEAD",tracker:t.tracker},r)}function D(t,r){var e={};e.prefix=t.Prefix||"",e.delimiter=t.Delimiter,e.marker=t.Marker,e["max-keys"]=t.MaxKeys,e["encoding-type"]=t.EncodingType,oe.call(this,{Action:"name/cos:GetBucket",ResourceKey:e.prefix,method:"GET",Bucket:t.Bucket,Region:t.Region,headers:t.Headers,qs:e,tracker:t.tracker},function(n,o){if(n)return r(n);var s=o.ListBucketResult||{},h=s.Contents||[],y=s.CommonPrefixes||[];h=l.isArray(h)?h:[h],y=l.isArray(y)?y:[y];var F=l.clone(s);l.extend(F,{Contents:h,CommonPrefixes:y,statusCode:o.statusCode,headers:o.headers}),r(null,F)})}function k(t,r){oe.call(this,{Action:"name/cos:DeleteBucket",Bucket:t.Bucket,Region:t.Region,headers:t.Headers,method:"DELETE",tracker:t.tracker},function(e,n){if(e&&e.statusCode===204)return r(null,{statusCode:e.statusCode});if(e)return r(e);r(null,{statusCode:n.statusCode,headers:n.headers})})}function N(t,r){var e=t.Headers,n="";if(t.AccessControlPolicy){var o=l.clone(t.AccessControlPolicy||{}),s=o.Grants||o.Grant;s=l.isArray(s)?s:[s],delete o.Grant,delete o.Grants,o.AccessControlList={Grant:s},n=l.json2xml({AccessControlPolicy:o}),e["Content-Type"]="application/xml",e["Content-MD5"]=l.b64(l.md5(n))}l.each(e,function(h,y){y.indexOf("x-cos-grant-")===0&&(e[y]=Qe(e[y]))}),oe.call(this,{Action:"name/cos:PutBucketACL",method:"PUT",Bucket:t.Bucket,Region:t.Region,headers:e,action:"acl",body:n,tracker:t.tracker},function(h,y){if(h)return r(h);r(null,{statusCode:y.statusCode,headers:y.headers})})}function B(t,r){oe.call(this,{Action:"name/cos:GetBucketACL",method:"GET",Bucket:t.Bucket,Region:t.Region,headers:t.Headers,action:"acl",tracker:t.tracker},function(e,n){if(e)return r(e);var o=n.AccessControlPolicy||{},s=o.Owner||{},h=o.AccessControlList.Grant||[];h=l.isArray(h)?h:[h];var y=Je(o);n.headers&&n.headers["x-cos-acl"]&&(y.ACL=n.headers["x-cos-acl"]),y=l.extend(y,{Owner:s,Grants:h,statusCode:n.statusCode,headers:n.headers}),r(null,y)})}function L(t,r){var e=t.CORSConfiguration||{},n=e.CORSRules||t.CORSRules||[];n=l.clone(l.isArray(n)?n:[n]),l.each(n,function(y){l.each(["AllowedOrigin","AllowedHeader","AllowedMethod","ExposeHeader"],function(F){var de=F+"s",ae=y[de]||y[F]||[];delete y[de],y[F]=l.isArray(ae)?ae:[ae]})});var o={CORSRule:n};t.ResponseVary&&(o.ResponseVary=t.ResponseVary);var s=l.json2xml({CORSConfiguration:o}),h=t.Headers;h["Content-Type"]="application/xml",h["Content-MD5"]=l.b64(l.md5(s)),oe.call(this,{Action:"name/cos:PutBucketCORS",method:"PUT",Bucket:t.Bucket,Region:t.Region,body:s,action:"cors",headers:h,tracker:t.tracker},function(y,F){if(y)return r(y);r(null,{statusCode:F.statusCode,headers:F.headers})})}function T(t,r){oe.call(this,{Action:"name/cos:GetBucketCORS",method:"GET",Bucket:t.Bucket,Region:t.Region,headers:t.Headers,action:"cors",tracker:t.tracker},function(e,n){if(e){if(e.statusCode===404&&e.error&&e.error.Code==="NoSuchCORSConfiguration"){var o={CORSRules:[],statusCode:e.statusCode};e.headers&&(o.headers=e.headers),r(null,o)}else r(e);return}var s=n.CORSConfiguration||{},h=s.CORSRules||s.CORSRule||[];h=l.clone(l.isArray(h)?h:[h]);var y=s.ResponseVary;l.each(h,function(F){l.each(["AllowedOrigin","AllowedHeader","AllowedMethod","ExposeHeader"],function(de){var ae=de+"s",Ce=F[ae]||F[de]||[];delete F[de],F[ae]=l.isArray(Ce)?Ce:[Ce]})}),r(null,{CORSRules:h,ResponseVary:y,statusCode:n.statusCode,headers:n.headers})})}function O(t,r){oe.call(this,{Action:"name/cos:DeleteBucketCORS",method:"DELETE",Bucket:t.Bucket,Region:t.Region,headers:t.Headers,action:"cors",tracker:t.tracker},function(e,n){if(e&&e.statusCode===204)return r(null,{statusCode:e.statusCode});if(e)return r(e);r(null,{statusCode:n.statusCode||e.statusCode,headers:n.headers})})}function j(t,r){oe.call(this,{Action:"name/cos:GetBucketLocation",method:"GET",Bucket:t.Bucket,Region:t.Region,headers:t.Headers,action:"location",tracker:t.tracker},r)}function R(t,r){var e=t.Policy;try{typeof e=="string"&&(e=JSON.parse(e))}catch(s){}if(!e||typeof e=="string")return r(l.error(new Error("Policy format error")));var n=JSON.stringify(e);e.version||(e.version="2.0");var o=t.Headers;o["Content-Type"]="application/json",o["Content-MD5"]=l.b64(l.md5(n)),oe.call(this,{Action:"name/cos:PutBucketPolicy",method:"PUT",Bucket:t.Bucket,Region:t.Region,action:"policy",body:n,headers:o,tracker:t.tracker},function(s,h){if(s&&s.statusCode===204)return r(null,{statusCode:s.statusCode});if(s)return r(s);r(null,{statusCode:h.statusCode,headers:h.headers})})}function ne(t,r){oe.call(this,{Action:"name/cos:GetBucketPolicy",method:"GET",Bucket:t.Bucket,Region:t.Region,headers:t.Headers,action:"policy",rawBody:!0,tracker:t.tracker},function(e,n){if(e)return e.statusCode&&e.statusCode===403?r(l.error(e,{ErrorStatus:"Access Denied"})):e.statusCode&&e.statusCode===405?r(l.error(e,{ErrorStatus:"Method Not Allowed"})):e.statusCode&&e.statusCode===404?r(l.error(e,{ErrorStatus:"Policy Not Found"})):r(e);var o={};try{o=JSON.parse(n.body)}catch(s){}r(null,{Policy:o,statusCode:n.statusCode,headers:n.headers})})}function x(t,r){oe.call(this,{Action:"name/cos:DeleteBucketPolicy",method:"DELETE",Bucket:t.Bucket,Region:t.Region,headers:t.Headers,action:"policy",tracker:t.tracker},function(e,n){if(e&&e.statusCode===204)return r(null,{statusCode:e.statusCode});if(e)return r(e);r(null,{statusCode:n.statusCode||e.statusCode,headers:n.headers})})}function C(t,r){var e=t.Tagging||{},n=e.TagSet||e.Tags||t.Tags||[];n=l.clone(l.isArray(n)?n:[n]);var o=l.json2xml({Tagging:{TagSet:{Tag:n}}}),s=t.Headers;s["Content-Type"]="application/xml",s["Content-MD5"]=l.b64(l.md5(o)),oe.call(this,{Action:"name/cos:PutBucketTagging",method:"PUT",Bucket:t.Bucket,Region:t.Region,body:o,action:"tagging",headers:s,tracker:t.tracker},function(h,y){if(h&&h.statusCode===204)return r(null,{statusCode:h.statusCode});if(h)return r(h);r(null,{statusCode:y.statusCode,headers:y.headers})})}function p(t,r){oe.call(this,{Action:"name/cos:GetBucketTagging",method:"GET",Bucket:t.Bucket,Region:t.Region,headers:t.Headers,action:"tagging",tracker:t.tracker},function(e,n){if(e){if(e.statusCode===404&&e.error&&(e.error==="Not Found"||e.error.Code==="NoSuchTagSet")){var o={Tags:[],statusCode:e.statusCode};e.headers&&(o.headers=e.headers),r(null,o)}else r(e);return}var s=[];try{s=n.Tagging.TagSet.Tag||[]}catch(h){}s=l.clone(l.isArray(s)?s:[s]),r(null,{Tags:s,statusCode:n.statusCode,headers:n.headers})})}function A(t,r){oe.call(this,{Action:"name/cos:DeleteBucketTagging",method:"DELETE",Bucket:t.Bucket,Region:t.Region,headers:t.Headers,action:"tagging",tracker:t.tracker},function(e,n){if(e&&e.statusCode===204)return r(null,{statusCode:e.statusCode});if(e)return r(e);r(null,{statusCode:n.statusCode,headers:n.headers})})}function i(t,r){var e=t.LifecycleConfiguration||{},n=e.Rules||t.Rules||[];n=l.clone(n);var o=l.json2xml({LifecycleConfiguration:{Rule:n}}),s=t.Headers;s["Content-Type"]="application/xml",s["Content-MD5"]=l.b64(l.md5(o)),oe.call(this,{Action:"name/cos:PutBucketLifecycle",method:"PUT",Bucket:t.Bucket,Region:t.Region,body:o,action:"lifecycle",headers:s,tracker:t.tracker},function(h,y){if(h&&h.statusCode===204)return r(null,{statusCode:h.statusCode});if(h)return r(h);r(null,{statusCode:y.statusCode,headers:y.headers})})}function u(t,r){oe.call(this,{Action:"name/cos:GetBucketLifecycle",method:"GET",Bucket:t.Bucket,Region:t.Region,headers:t.Headers,action:"lifecycle",tracker:t.tracker},function(e,n){if(e){if(e.statusCode===404&&e.error&&e.error.Code==="NoSuchLifecycleConfiguration"){var o={Rules:[],statusCode:e.statusCode};e.headers&&(o.headers=e.headers),r(null,o)}else r(e);return}var s=[];try{s=n.LifecycleConfiguration.Rule||[]}catch(h){}s=l.clone(l.isArray(s)?s:[s]),r(null,{Rules:s,statusCode:n.statusCode,headers:n.headers})})}function c(t,r){oe.call(this,{Action:"name/cos:DeleteBucketLifecycle",method:"DELETE",Bucket:t.Bucket,Region:t.Region,headers:t.Headers,action:"lifecycle",tracker:t.tracker},function(e,n){if(e&&e.statusCode===204)return r(null,{statusCode:e.statusCode});if(e)return r(e);r(null,{statusCode:n.statusCode,headers:n.headers})})}function a(t,r){if(!t.VersioningConfiguration){r(l.error(new Error("missing param VersioningConfiguration")));return}var e=t.VersioningConfiguration||{},n=l.json2xml({VersioningConfiguration:e}),o=t.Headers;o["Content-Type"]="application/xml",o["Content-MD5"]=l.b64(l.md5(n)),oe.call(this,{Action:"name/cos:PutBucketVersioning",method:"PUT",Bucket:t.Bucket,Region:t.Region,body:n,action:"versioning",headers:o,tracker:t.tracker},function(s,h){if(s&&s.statusCode===204)return r(null,{statusCode:s.statusCode});if(s)return r(s);r(null,{statusCode:h.statusCode,headers:h.headers})})}function d(t,r){oe.call(this,{Action:"name/cos:GetBucketVersioning",method:"GET",Bucket:t.Bucket,Region:t.Region,headers:t.Headers,action:"versioning",tracker:t.tracker},function(e,n){e||!n.VersioningConfiguration&&(n.VersioningConfiguration={}),r(e,n)})}function f(t,r){var e=l.clone(t.ReplicationConfiguration),n=l.json2xml({ReplicationConfiguration:e});n=n.replace(/<(\/?)Rules>/gi,"<$1Rule>"),n=n.replace(/<(\/?)Tags>/gi,"<$1Tag>");var o=t.Headers;o["Content-Type"]="application/xml",o["Content-MD5"]=l.b64(l.md5(n)),oe.call(this,{Action:"name/cos:PutBucketReplication",method:"PUT",Bucket:t.Bucket,Region:t.Region,body:n,action:"replication",headers:o,tracker:t.tracker},function(s,h){if(s&&s.statusCode===204)return r(null,{statusCode:s.statusCode});if(s)return r(s);r(null,{statusCode:h.statusCode,headers:h.headers})})}function m(t,r){oe.call(this,{Action:"name/cos:GetBucketReplication",method:"GET",Bucket:t.Bucket,Region:t.Region,headers:t.Headers,action:"replication",tracker:t.tracker},function(e,n){if(e){if(e.statusCode===404&&e.error&&(e.error==="Not Found"||e.error.Code==="ReplicationConfigurationnotFoundError")){var o={ReplicationConfiguration:{Rules:[]},statusCode:e.statusCode};e.headers&&(o.headers=e.headers),r(null,o)}else r(e);return}!n.ReplicationConfiguration&&(n.ReplicationConfiguration={}),n.ReplicationConfiguration.Rule&&(n.ReplicationConfiguration.Rules=l.makeArray(n.ReplicationConfiguration.Rule),delete n.ReplicationConfiguration.Rule),r(e,n)})}function g(t,r){oe.call(this,{Action:"name/cos:DeleteBucketReplication",method:"DELETE",Bucket:t.Bucket,Region:t.Region,headers:t.Headers,action:"replication",tracker:t.tracker},function(e,n){if(e&&e.statusCode===204)return r(null,{statusCode:e.statusCode});if(e)return r(e);r(null,{statusCode:n.statusCode,headers:n.headers})})}function M(t,r){if(!t.WebsiteConfiguration){r(l.error(new Error("missing param WebsiteConfiguration")));return}var e=l.clone(t.WebsiteConfiguration||{}),n=e.RoutingRules||e.RoutingRule||[];n=l.isArray(n)?n:[n],delete e.RoutingRule,delete e.RoutingRules,n.length&&(e.RoutingRules={RoutingRule:n});var o=l.json2xml({WebsiteConfiguration:e}),s=t.Headers;s["Content-Type"]="application/xml",s["Content-MD5"]=l.b64(l.md5(o)),oe.call(this,{Action:"name/cos:PutBucketWebsite",method:"PUT",Bucket:t.Bucket,Region:t.Region,body:o,action:"website",headers:s,tracker:t.tracker},function(h,y){if(h&&h.statusCode===204)return r(null,{statusCode:h.statusCode});if(h)return r(h);r(null,{statusCode:y.statusCode,headers:y.headers})})}function q(t,r){oe.call(this,{Action:"name/cos:GetBucketWebsite",method:"GET",Bucket:t.Bucket,Region:t.Region,Key:t.Key,headers:t.Headers,action:"website",tracker:t.tracker},function(e,n){if(e){if(e.statusCode===404&&e.error.Code==="NoSuchWebsiteConfiguration"){var o={WebsiteConfiguration:{},statusCode:e.statusCode};e.headers&&(o.headers=e.headers),r(null,o)}else r(e);return}var s=n.WebsiteConfiguration||{};if(s.RoutingRules){var h=l.clone(s.RoutingRules.RoutingRule||[]);h=l.makeArray(h),s.RoutingRules=h}r(null,{WebsiteConfiguration:s,statusCode:n.statusCode,headers:n.headers})})}function te(t,r){oe.call(this,{Action:"name/cos:DeleteBucketWebsite",method:"DELETE",Bucket:t.Bucket,Region:t.Region,headers:t.Headers,action:"website",tracker:t.tracker},function(e,n){if(e&&e.statusCode===204)return r(null,{statusCode:e.statusCode});if(e)return r(e);r(null,{statusCode:n.statusCode,headers:n.headers})})}function X(t,r){if(!t.RefererConfiguration){r(l.error(new Error("missing param RefererConfiguration")));return}var e=l.clone(t.RefererConfiguration||{}),n=e.DomainList||{},o=n.Domains||n.Domain||[];o=l.isArray(o)?o:[o],o.length&&(e.DomainList={Domain:o});var s=l.json2xml({RefererConfiguration:e}),h=t.Headers;h["Content-Type"]="application/xml",h["Content-MD5"]=l.b64(l.md5(s)),oe.call(this,{Action:"name/cos:PutBucketReferer",method:"PUT",Bucket:t.Bucket,Region:t.Region,body:s,action:"referer",headers:h,tracker:t.tracker},function(y,F){if(y&&y.statusCode===204)return r(null,{statusCode:y.statusCode});if(y)return r(y);r(null,{statusCode:F.statusCode,headers:F.headers})})}function W(t,r){oe.call(this,{Action:"name/cos:GetBucketReferer",method:"GET",Bucket:t.Bucket,Region:t.Region,Key:t.Key,headers:t.Headers,action:"referer",tracker:t.tracker},function(e,n){if(e){if(e.statusCode===404&&e.error.Code==="NoSuchRefererConfiguration"){var o={WebsiteConfiguration:{},statusCode:e.statusCode};e.headers&&(o.headers=e.headers),r(null,o)}else r(e);return}var s=n.RefererConfiguration||{};if(s.DomainList){var h=l.makeArray(s.DomainList.Domain||[]);s.DomainList={Domains:h}}r(null,{RefererConfiguration:s,statusCode:n.statusCode,headers:n.headers})})}function G(t,r){var e=t.DomainConfiguration||{},n=e.DomainRule||t.DomainRule||[];n=l.clone(n);var o=l.json2xml({DomainConfiguration:{DomainRule:n}}),s=t.Headers;s["Content-Type"]="application/xml",s["Content-MD5"]=l.b64(l.md5(o)),oe.call(this,{Action:"name/cos:PutBucketDomain",method:"PUT",Bucket:t.Bucket,Region:t.Region,body:o,action:"domain",headers:s,tracker:t.tracker},function(h,y){if(h&&h.statusCode===204)return r(null,{statusCode:h.statusCode});if(h)return r(h);r(null,{statusCode:y.statusCode,headers:y.headers})})}function J(t,r){oe.call(this,{Action:"name/cos:GetBucketDomain",method:"GET",Bucket:t.Bucket,Region:t.Region,headers:t.Headers,action:"domain",tracker:t.tracker},function(e,n){if(e)return r(e);var o=[];try{o=n.DomainConfiguration.DomainRule||[]}catch(s){}o=l.clone(l.isArray(o)?o:[o]),r(null,{DomainRule:o,statusCode:n.statusCode,headers:n.headers})})}function Y(t,r){oe.call(this,{Action:"name/cos:DeleteBucketDomain",method:"DELETE",Bucket:t.Bucket,Region:t.Region,headers:t.Headers,action:"domain",tracker:t.tracker},function(e,n){if(e&&e.statusCode===204)return r(null,{statusCode:e.statusCode});if(e)return r(e);r(null,{statusCode:n.statusCode,headers:n.headers})})}function pe(t,r){var e=t.OriginConfiguration||{},n=e.OriginRule||t.OriginRule||[];n=l.clone(n);var o=l.json2xml({OriginConfiguration:{OriginRule:n}}),s=t.Headers;s["Content-Type"]="application/xml",s["Content-MD5"]=l.b64(l.md5(o)),oe.call(this,{Action:"name/cos:PutBucketOrigin",method:"PUT",Bucket:t.Bucket,Region:t.Region,body:o,action:"origin",headers:s,tracker:t.tracker},function(h,y){if(h&&h.statusCode===204)return r(null,{statusCode:h.statusCode});if(h)return r(h);r(null,{statusCode:y.statusCode,headers:y.headers})})}function ee(t,r){oe.call(this,{Action:"name/cos:GetBucketOrigin",method:"GET",Bucket:t.Bucket,Region:t.Region,headers:t.Headers,action:"origin",tracker:t.tracker},function(e,n){if(e)return r(e);var o=[];try{o=n.OriginConfiguration.OriginRule||[]}catch(s){}o=l.clone(l.isArray(o)?o:[o]),r(null,{OriginRule:o,statusCode:n.statusCode,headers:n.headers})})}function V(t,r){oe.call(this,{Action:"name/cos:DeleteBucketOrigin",method:"DELETE",Bucket:t.Bucket,Region:t.Region,headers:t.Headers,action:"origin",tracker:t.tracker},function(e,n){if(e&&e.statusCode===204)return r(null,{statusCode:e.statusCode});if(e)return r(e);r(null,{statusCode:n.statusCode,headers:n.headers})})}function ue(t,r){var e=l.json2xml({BucketLoggingStatus:t.BucketLoggingStatus||""}),n=t.Headers;n["Content-Type"]="application/xml",n["Content-MD5"]=l.b64(l.md5(e)),oe.call(this,{Action:"name/cos:PutBucketLogging",method:"PUT",Bucket:t.Bucket,Region:t.Region,body:e,action:"logging",headers:n,tracker:t.tracker},function(o,s){if(o&&o.statusCode===204)return r(null,{statusCode:o.statusCode});if(o)return r(o);r(null,{statusCode:s.statusCode,headers:s.headers})})}function $(t,r){oe.call(this,{Action:"name/cos:GetBucketLogging",method:"GET",Bucket:t.Bucket,Region:t.Region,headers:t.Headers,action:"logging",tracker:t.tracker},function(e,n){if(e)return r(e);r(null,{BucketLoggingStatus:n.BucketLoggingStatus,statusCode:n.statusCode,headers:n.headers})})}function Z(t,r,e){var n=l.clone(r.InventoryConfiguration);if(n.OptionalFields){var o=n.OptionalFields||[];n.OptionalFields={Field:o}}if(n.Destination&&n.Destination.COSBucketDestination&&n.Destination.COSBucketDestination.Encryption){var s=n.Destination.COSBucketDestination.Encryption;Object.keys(s).indexOf("SSECOS")>-1&&(s["SSE-COS"]=s.SSECOS,delete s.SSECOS)}var h=l.json2xml({InventoryConfiguration:n}),y=r.Headers;y["Content-Type"]="application/xml",y["Content-MD5"]=l.b64(l.md5(h));var F=t==="PUT"?"name/cos:PutBucketInventory":"name/cos:PostBucketInventory";oe.call(this,{Action:F,method:t,Bucket:r.Bucket,Region:r.Region,body:h,action:"inventory",qs:{id:r.Id},headers:y,tracker:r.tracker},function(de,ae){if(de&&de.statusCode===204)return e(null,{statusCode:de.statusCode});if(de)return e(de);e(null,{statusCode:ae.statusCode,headers:ae.headers})})}function ce(t,r){return Z.call(this,"PUT",t,r)}function ie(t,r){return Z.call(this,"POST",t,r)}function se(t,r){oe.call(this,{Action:"name/cos:GetBucketInventory",method:"GET",Bucket:t.Bucket,Region:t.Region,headers:t.Headers,action:"inventory",qs:{id:t.Id},tracker:t.tracker},function(e,n){if(e)return r(e);var o=n.InventoryConfiguration;if(o&&o.OptionalFields&&o.OptionalFields.Field){var s=o.OptionalFields.Field;l.isArray(s)||(s=[s]),o.OptionalFields=s}if(o.Destination&&o.Destination.COSBucketDestination&&o.Destination.COSBucketDestination.Encryption){var h=o.Destination.COSBucketDestination.Encryption;Object.keys(h).indexOf("SSE-COS")>-1&&(h.SSECOS=h["SSE-COS"],delete h["SSE-COS"])}r(null,{InventoryConfiguration:o,statusCode:n.statusCode,headers:n.headers})})}function ge(t,r){oe.call(this,{Action:"name/cos:ListBucketInventory",method:"GET",Bucket:t.Bucket,Region:t.Region,headers:t.Headers,action:"inventory",qs:{"continuation-token":t.ContinuationToken},tracker:t.tracker},function(e,n){if(e)return r(e);var o=n.ListInventoryConfigurationResult,s=o.InventoryConfiguration||[];s=l.isArray(s)?s:[s],delete o.InventoryConfiguration,l.each(s,function(h){if(h&&h.OptionalFields&&h.OptionalFields.Field){var y=h.OptionalFields.Field;l.isArray(y)||(y=[y]),h.OptionalFields=y}if(h.Destination&&h.Destination.COSBucketDestination&&h.Destination.COSBucketDestination.Encryption){var F=h.Destination.COSBucketDestination.Encryption;Object.keys(F).indexOf("SSE-COS")>-1&&(F.SSECOS=F["SSE-COS"],delete F["SSE-COS"])}}),o.InventoryConfigurations=s,l.extend(o,{statusCode:n.statusCode,headers:n.headers}),r(null,o)})}function fe(t,r){oe.call(this,{Action:"name/cos:DeleteBucketInventory",method:"DELETE",Bucket:t.Bucket,Region:t.Region,headers:t.Headers,action:"inventory",qs:{id:t.Id},tracker:t.tracker},function(e,n){if(e&&e.statusCode===204)return r(null,{statusCode:e.statusCode});if(e)return r(e);r(null,{statusCode:n.statusCode,headers:n.headers})})}function De(t,r){if(!t.AccelerateConfiguration){r(l.error(new Error("missing param AccelerateConfiguration")));return}var e={AccelerateConfiguration:t.AccelerateConfiguration||{}},n=l.json2xml(e),o={};o["Content-Type"]="application/xml",o["Content-MD5"]=l.b64(l.md5(n)),oe.call(this,{Action:"name/cos:PutBucketAccelerate",method:"PUT",Bucket:t.Bucket,Region:t.Region,body:n,action:"accelerate",headers:o,tracker:t.tracker},function(s,h){if(s)return r(s);r(null,{statusCode:h.statusCode,headers:h.headers})})}function Ae(t,r){oe.call(this,{Action:"name/cos:GetBucketAccelerate",method:"GET",Bucket:t.Bucket,Region:t.Region,action:"accelerate",tracker:t.tracker},function(e,n){e||!n.AccelerateConfiguration&&(n.AccelerateConfiguration={}),r(e,n)})}function ve(t,r){var e=t.ServerSideEncryptionConfiguration||{},n=e.Rule||e.Rules||[],o=l.json2xml({ServerSideEncryptionConfiguration:{Rule:n}}),s=t.Headers;s["Content-Type"]="application/xml",s["Content-MD5"]=l.b64(l.md5(o)),oe.call(this,{Action:"name/cos:PutBucketEncryption",method:"PUT",Bucket:t.Bucket,Region:t.Region,body:o,action:"encryption",headers:s,tracker:t.tracker},function(h,y){if(h&&h.statusCode===204)return r(null,{statusCode:h.statusCode});if(h)return r(h);r(null,{statusCode:y.statusCode,headers:y.headers})})}function je(t,r){oe.call(this,{Action:"name/cos:GetBucketEncryption",method:"GET",Bucket:t.Bucket,Region:t.Region,headers:t.Headers,action:"encryption",tracker:t.tracker},function(e,n){if(e){if(e.statusCode===404&&e.code==="NoSuchEncryptionConfiguration"){var o={EncryptionConfiguration:{Rules:[]},statusCode:e.statusCode};e.headers&&(o.headers=e.headers),r(null,o)}else r(e);return}var s=l.makeArray(n.EncryptionConfiguration&&n.EncryptionConfiguration.Rule||[]);n.EncryptionConfiguration={Rules:s},r(e,n)})}function xe(t,r){oe.call(this,{Action:"name/cos:DeleteBucketReplication",method:"DELETE",Bucket:t.Bucket,Region:t.Region,headers:t.Headers,action:"encryption",tracker:t.tracker},function(e,n){if(e&&e.statusCode===204)return r(null,{statusCode:e.statusCode});if(e)return r(e);r(null,{statusCode:n.statusCode,headers:n.headers})})}function Ne(t,r){oe.call(this,{Action:"name/cos:HeadObject",method:"HEAD",Bucket:t.Bucket,Region:t.Region,Key:t.Key,VersionId:t.VersionId,headers:t.Headers,tracker:t.tracker},function(e,n){if(e){var o=e.statusCode;return t.Headers["If-Modified-Since"]&&o&&o===304?r(null,{NotModified:!0,statusCode:o}):r(e)}n.ETag=l.attr(n.headers,"etag",""),r(null,n)})}function ze(t,r){var e={};e.prefix=t.Prefix||"",e.delimiter=t.Delimiter,e["key-marker"]=t.KeyMarker,e["version-id-marker"]=t.VersionIdMarker,e["max-keys"]=t.MaxKeys,e["encoding-type"]=t.EncodingType,oe.call(this,{Action:"name/cos:GetBucketObjectVersions",ResourceKey:e.prefix,method:"GET",Bucket:t.Bucket,Region:t.Region,headers:t.Headers,qs:e,action:"versions",tracker:t.tracker},function(n,o){if(n)return r(n);var s=o.ListVersionsResult||{},h=s.DeleteMarker||[];h=l.isArray(h)?h:[h];var y=s.Version||[];y=l.isArray(y)?y:[y];var F=l.clone(s);delete F.DeleteMarker,delete F.Version,l.extend(F,{DeleteMarkers:h,Versions:y,statusCode:o.statusCode,headers:o.headers}),r(null,F)})}function be(t,r){if(this.options.ObjectKeySimplifyCheck){var e=l.simplifyPath(t.Key);if(e==="/"){r(l.error(new Error("The Getobject Key is illegal")));return}}var n=t.Query||{},o=t.QueryString||"",s=l.throttleOnProgress.call(this,0,t.onProgress),h=t.tracker;h&&h.setParams({signStartTime:new Date().getTime()}),n["response-content-type"]=t.ResponseContentType,n["response-content-language"]=t.ResponseContentLanguage,n["response-expires"]=t.ResponseExpires,n["response-cache-control"]=t.ResponseCacheControl,n["response-content-disposition"]=t.ResponseContentDisposition,n["response-content-encoding"]=t.ResponseContentEncoding,oe.call(this,{Action:"name/cos:GetObject",method:"GET",Bucket:t.Bucket,Region:t.Region,Key:t.Key,VersionId:t.VersionId,DataType:t.DataType,headers:t.Headers,qs:n,qsStr:o,rawBody:!0,onDownloadProgress:s,tracker:h},function(y,F){if(s(null,!0),y){var de=y.statusCode;return t.Headers["If-Modified-Since"]&&de&&de===304?r(null,{NotModified:!0}):r(y)}r(null,{Body:F.body,ETag:l.attr(F.headers,"etag",""),statusCode:F.statusCode,headers:F.headers})})}function _(t,r){var e=this,n=t.ContentLength,o=l.throttleOnProgress.call(e,n,t.onProgress),s=t.Headers;!s["Cache-Control"]&&!s["cache-control"]&&(s["Cache-Control"]=""),!s["Content-Type"]&&!s["content-type"]&&(s["Content-Type"]=t.Body&&t.Body.type||"");var h=t.UploadAddMetaMd5||e.options.UploadAddMetaMd5||e.options.UploadCheckContentMd5,y=t.tracker;h&&y&&y.setParams({md5StartTime:new Date().getTime()}),l.getBodyMd5(h,t.Body,function(F){F&&(y&&y.setParams({md5EndTime:new Date().getTime()}),e.options.UploadCheckContentMd5&&(s["Content-MD5"]=l.b64(F)),(t.UploadAddMetaMd5||e.options.UploadAddMetaMd5)&&(s["x-cos-meta-md5"]=F)),t.ContentLength!==void 0&&(s["Content-Length"]=t.ContentLength),o(null,!0),oe.call(e,{Action:"name/cos:PutObject",TaskId:t.TaskId,method:"PUT",Bucket:t.Bucket,Region:t.Region,Key:t.Key,headers:t.Headers,qs:t.Query,body:t.Body,onProgress:o,tracker:y},function(de,ae){if(de)return o(null,!0),r(de);o({loaded:n,total:n},!0);var Ce=Ge({ForcePathStyle:e.options.ForcePathStyle,protocol:e.options.Protocol,domain:e.options.Domain,bucket:t.Bucket,region:e.options.UseAccelerate?"accelerate":t.Region,object:t.Key});Ce=Ce.substr(Ce.indexOf("://")+3),ae.Location=Ce,ae.ETag=l.attr(ae.headers,"etag",""),r(null,ae)})},t.onHashProgress)}function v(t,r){oe.call(this,{Action:"name/cos:DeleteObject",method:"DELETE",Bucket:t.Bucket,Region:t.Region,Key:t.Key,headers:t.Headers,VersionId:t.VersionId,action:t.Recursive?"recursive":"",tracker:t.tracker},function(e,n){if(e){var o=e.statusCode;return o&&o===404?r(null,{BucketNotFound:!0,statusCode:o}):r(e)}r(null,{statusCode:n.statusCode,headers:n.headers})})}function E(t,r){var e={};t.VersionId&&(e.versionId=t.VersionId),oe.call(this,{Action:"name/cos:GetObjectACL",method:"GET",Bucket:t.Bucket,Region:t.Region,Key:t.Key,headers:t.Headers,qs:e,action:"acl",tracker:t.tracker},function(n,o){if(n)return r(n);var s=o.AccessControlPolicy||{},h=s.Owner||{},y=s.AccessControlList&&s.AccessControlList.Grant||[];y=l.isArray(y)?y:[y];var F=Je(s);delete F.GrantWrite,o.headers&&o.headers["x-cos-acl"]&&(F.ACL=o.headers["x-cos-acl"]),F=l.extend(F,{Owner:h,Grants:y,statusCode:o.statusCode,headers:o.headers}),r(null,F)})}function S(t,r){var e=t.Headers,n="";if(t.AccessControlPolicy){var o=l.clone(t.AccessControlPolicy||{}),s=o.Grants||o.Grant;s=l.isArray(s)?s:[s],delete o.Grant,delete o.Grants,o.AccessControlList={Grant:s},n=l.json2xml({AccessControlPolicy:o}),e["Content-Type"]="application/xml",e["Content-MD5"]=l.b64(l.md5(n))}l.each(e,function(h,y){y.indexOf("x-cos-grant-")===0&&(e[y]=Qe(e[y]))}),oe.call(this,{Action:"name/cos:PutObjectACL",method:"PUT",Bucket:t.Bucket,Region:t.Region,Key:t.Key,action:"acl",headers:e,body:n,tracker:t.tracker},function(h,y){if(h)return r(h);r(null,{statusCode:y.statusCode,headers:y.headers})})}function K(t,r){var e=t.Headers;e.Origin=t.Origin,e["Access-Control-Request-Method"]=t.AccessControlRequestMethod,e["Access-Control-Request-Headers"]=t.AccessControlRequestHeaders,oe.call(this,{Action:"name/cos:OptionsObject",method:"OPTIONS",Bucket:t.Bucket,Region:t.Region,Key:t.Key,headers:e,tracker:t.tracker},function(n,o){if(n)return n.statusCode&&n.statusCode===403?r(null,{OptionsForbidden:!0,statusCode:n.statusCode}):r(n);var s=o.headers||{};r(null,{AccessControlAllowOrigin:s["access-control-allow-origin"],AccessControlAllowMethods:s["access-control-allow-methods"],AccessControlAllowHeaders:s["access-control-allow-headers"],AccessControlExposeHeaders:s["access-control-expose-headers"],AccessControlMaxAge:s["access-control-max-age"],statusCode:o.statusCode,headers:o.headers})})}function z(t,r){var e=this,n=t.Headers;!n["Cache-Control"]&&!n["cache-control"]&&(n["Cache-Control"]="");var o=t.CopySource||"",s=l.getSourceParams.call(this,o);if(!s){r(l.error(new Error("CopySource format error")));return}var h=s.Bucket,y=s.Region,F=decodeURIComponent(s.Key);oe.call(this,{Scope:[{action:"name/cos:GetObject",bucket:h,region:y,prefix:F},{action:"name/cos:PutObject",bucket:t.Bucket,region:t.Region,prefix:t.Key}],method:"PUT",Bucket:t.Bucket,Region:t.Region,Key:t.Key,VersionId:t.VersionId,headers:t.Headers,tracker:t.tracker},function(de,ae){if(de)return r(de);var Ce=l.clone(ae.CopyObjectResult||{}),Q=Ge({ForcePathStyle:e.options.ForcePathStyle,protocol:e.options.Protocol,domain:e.options.Domain,bucket:t.Bucket,region:t.Region,object:t.Key,isLocation:!0});l.extend(Ce,{Location:Q,statusCode:ae.statusCode,headers:ae.headers}),r(null,Ce)})}function le(t,r){var e=t.CopySource||"",n=l.getSourceParams.call(this,e);if(!n){r(l.error(new Error("CopySource format error")));return}var o=n.Bucket,s=n.Region,h=decodeURIComponent(n.Key);oe.call(this,{Scope:[{action:"name/cos:GetObject",bucket:o,region:s,prefix:h},{action:"name/cos:PutObject",bucket:t.Bucket,region:t.Region,prefix:t.Key}],method:"PUT",Bucket:t.Bucket,Region:t.Region,Key:t.Key,VersionId:t.VersionId,qs:{partNumber:t.PartNumber,uploadId:t.UploadId},headers:t.Headers,tracker:t.tracker},function(y,F){if(y)return r(y);var de=l.clone(F.CopyPartResult||{});l.extend(de,{statusCode:F.statusCode,headers:F.headers}),r(null,de)})}function me(t,r){var e=t.Objects||[],n=t.Quiet;e=l.isArray(e)?e:[e];var o=l.json2xml({Delete:{Object:e,Quiet:n||!1}}),s=t.Headers;s["Content-Type"]="application/xml",s["Content-MD5"]=l.b64(l.md5(o));var h=l.map(e,function(y){return{action:"name/cos:DeleteObject",bucket:t.Bucket,region:t.Region,prefix:y.Key}});oe.call(this,{Scope:h,method:"POST",Bucket:t.Bucket,Region:t.Region,body:o,action:"delete",headers:s,tracker:t.tracker},function(y,F){if(y)return r(y);var de=F.DeleteResult||{},ae=de.Deleted||[],Ce=de.Error||[];ae=l.isArray(ae)?ae:[ae],Ce=l.isArray(Ce)?Ce:[Ce];var Q=l.clone(de);l.extend(Q,{Error:Ce,Deleted:ae,statusCode:F.statusCode,headers:F.headers}),r(null,Q)})}function Ee(t,r){var e=t.Headers;if(!t.RestoreRequest){r(l.error(new Error("missing param RestoreRequest")));return}var n=t.RestoreRequest||{},o=l.json2xml({RestoreRequest:n});e["Content-Type"]="application/xml",e["Content-MD5"]=l.b64(l.md5(o)),oe.call(this,{Action:"name/cos:RestoreObject",method:"POST",Bucket:t.Bucket,Region:t.Region,Key:t.Key,VersionId:t.VersionId,body:o,action:"restore",headers:e,tracker:t.tracker},r)}function Te(t,r){var e=t.Tagging||{},n=e.TagSet||e.Tags||t.Tags||[];n=l.clone(l.isArray(n)?n:[n]);var o=l.json2xml({Tagging:{TagSet:{Tag:n}}}),s=t.Headers;s["Content-Type"]="application/xml",s["Content-MD5"]=l.b64(l.md5(o)),oe.call(this,{Action:"name/cos:PutObjectTagging",method:"PUT",Bucket:t.Bucket,Key:t.Key,Region:t.Region,body:o,action:"tagging",headers:s,VersionId:t.VersionId,tracker:t.tracker},function(h,y){if(h&&h.statusCode===204)return r(null,{statusCode:h.statusCode});if(h)return r(h);r(null,{statusCode:y.statusCode,headers:y.headers})})}function Fe(t,r){oe.call(this,{Action:"name/cos:GetObjectTagging",method:"GET",Key:t.Key,Bucket:t.Bucket,Region:t.Region,headers:t.Headers,action:"tagging",VersionId:t.VersionId,tracker:t.tracker},function(e,n){if(e){if(e.statusCode===404&&e.error&&(e.error==="Not Found"||e.error.Code==="NoSuchTagSet")){var o={Tags:[],statusCode:e.statusCode};e.headers&&(o.headers=e.headers),r(null,o)}else r(e);return}var s=[];try{s=n.Tagging.TagSet.Tag||[]}catch(h){}s=l.clone(l.isArray(s)?s:[s]),r(null,{Tags:s,statusCode:n.statusCode,headers:n.headers})})}function Ie(t,r){oe.call(this,{Action:"name/cos:DeleteObjectTagging",method:"DELETE",Bucket:t.Bucket,Region:t.Region,Key:t.Key,headers:t.Headers,action:"tagging",VersionId:t.VersionId,tracker:t.tracker},function(e,n){if(e&&e.statusCode===204)return r(null,{statusCode:e.statusCode});if(e)return r(e);r(null,{statusCode:n.statusCode,headers:n.headers})})}function Oe(t,r){var e=t.SelectType;if(!e)return r(l.error(new Error("missing param SelectType")));var n=t.SelectRequest||{},o=l.json2xml({SelectRequest:n}),s=t.Headers;s["Content-Type"]="application/xml",s["Content-MD5"]=l.b64(l.md5(o)),oe.call(this,{Action:"name/cos:GetObject",method:"POST",Bucket:t.Bucket,Region:t.Region,Key:t.Key,headers:t.Headers,action:"select",qs:{"select-type":t.SelectType},VersionId:t.VersionId,body:o,DataType:"arraybuffer",rawBody:!0,tracker:t.tracker},function(h,y){if(h&&h.statusCode===204)return r(null,{statusCode:h.statusCode});if(h)return r(h);var F=l.parseSelectPayload(y.body);r(null,{statusCode:y.statusCode,headers:y.headers,Body:F.body,Payload:F.payload})})}function Ue(t,r){var e=this,n=t.Headers,o=t.tracker;!n["Cache-Control"]&&!n["cache-control"]&&(n["Cache-Control"]=""),!n["Content-Type"]&&!n["content-type"]&&(n["Content-Type"]=t.Body&&t.Body.type||"");var s=t.Body&&(t.UploadAddMetaMd5||e.options.UploadAddMetaMd5);s&&o&&o.setParams({md5StartTime:new Date().getTime()}),l.getBodyMd5(s,t.Body,function(h){h&&(t.Headers["x-cos-meta-md5"]=h),s&&o&&o.setParams({md5EndTime:new Date().getTime()}),oe.call(e,{Action:"name/cos:InitiateMultipartUpload",method:"POST",Bucket:t.Bucket,Region:t.Region,Key:t.Key,action:"uploads",headers:t.Headers,qs:t.Query,tracker:o},function(y,F){if(y)return o&&o.parent&&o.parent.setParams({errorNode:"multipartInit"}),r(y);if(F=l.clone(F||{}),F&&F.InitiateMultipartUploadResult)return r(null,l.extend(F.InitiateMultipartUploadResult,{statusCode:F.statusCode,headers:F.headers}));r(null,F)})},t.onHashProgress)}function Ke(t,r){var e=this;l.getFileSize("multipartUpload",t,function(){var n=t.tracker,o=e.options.UploadCheckContentMd5;o&&n&&n.setParams({md5StartTime:new Date().getTime()}),l.getBodyMd5(o,t.Body,function(s){s&&(t.Headers["Content-MD5"]=l.b64(s)),o&&n&&n.setParams({md5EndTime:new Date().getTime()}),n&&n.setParams({partNumber:t.PartNumber}),oe.call(e,{Action:"name/cos:UploadPart",TaskId:t.TaskId,method:"PUT",Bucket:t.Bucket,Region:t.Region,Key:t.Key,qs:{partNumber:t.PartNumber,uploadId:t.UploadId},headers:t.Headers,onProgress:t.onProgress,body:t.Body||null,tracker:n},function(h,y){if(h)return n&&n.parent&&n.parent.setParams({errorNode:"multipartUpload"}),r(h);r(null,{ETag:l.attr(y.headers,"etag",""),statusCode:y.statusCode,headers:y.headers})})})})}function qe(t,r){for(var e=this,n=t.UploadId,o=t.Parts,s=t.tracker,h=0,y=o.length;h<y;h++)o[h].ETag&&o[h].ETag.indexOf('"')===0||(o[h].ETag='"'+o[h].ETag+'"');var F=l.json2xml({CompleteMultipartUpload:{Part:o}});F=F.replace(/\n\s*/g,"");var de=t.Headers;de["Content-Type"]="application/xml",de["Content-MD5"]=l.b64(l.md5(F)),oe.call(this,{Action:"name/cos:CompleteMultipartUpload",method:"POST",Bucket:t.Bucket,Region:t.Region,Key:t.Key,qs:{uploadId:n},body:F,headers:de,tracker:s},function(ae,Ce){if(ae)return s&&s.parent&&s.parent.setParams({errorNode:"multipartComplete"}),r(ae);var Q=Ge({ForcePathStyle:e.options.ForcePathStyle,protocol:e.options.Protocol,domain:e.options.Domain,bucket:t.Bucket,region:t.Region,object:t.Key,isLocation:!0}),Be=Ce.CompleteMultipartUploadResult||{};Be.ProcessResults&&Be&&Be.ProcessResults&&(Be.UploadResult={OriginalInfo:{Key:Be.Key,Location:Q,ETag:Be.ETag,ImageInfo:Be.ImageInfo},ProcessResults:Be.ProcessResults},delete Be.ImageInfo,delete Be.ProcessResults);var Le=l.extend(Be,{Location:Q,statusCode:Ce.statusCode,headers:Ce.headers});r(null,Le)})}function Se(t,r){var e={};e.delimiter=t.Delimiter,e["encoding-type"]=t.EncodingType,e.prefix=t.Prefix||"",e["max-uploads"]=t.MaxUploads,e["key-marker"]=t.KeyMarker,e["upload-id-marker"]=t.UploadIdMarker,e=l.clearKey(e);var n=t.tracker;n&&n.setParams({signStartTime:new Date().getTime()}),oe.call(this,{Action:"name/cos:ListMultipartUploads",ResourceKey:e.prefix,method:"GET",Bucket:t.Bucket,Region:t.Region,headers:t.Headers,qs:e,action:"uploads",tracker:n},function(o,s){if(o)return n&&n.parent&&n.parent.setParams({errorNode:"multipartList"}),r(o);if(s&&s.ListMultipartUploadsResult){var h=s.ListMultipartUploadsResult.Upload||[];h=l.isArray(h)?h:[h],s.ListMultipartUploadsResult.Upload=h}var y=l.clone(s.ListMultipartUploadsResult||{});l.extend(y,{statusCode:s.statusCode,headers:s.headers}),r(null,y)})}function Ve(t,r){var e={},n=t.tracker;e.uploadId=t.UploadId,e["encoding-type"]=t.EncodingType,e["max-parts"]=t.MaxParts,e["part-number-marker"]=t.PartNumberMarker,oe.call(this,{Action:"name/cos:ListParts",method:"GET",Bucket:t.Bucket,Region:t.Region,Key:t.Key,headers:t.Headers,qs:e,tracker:n},function(o,s){if(o)return n&&n.parent&&n.parent.setParams({errorNode:"multipartListPart"}),r(o);var h=s.ListPartsResult||{},y=h.Part||[];y=l.isArray(y)?y:[y],h.Part=y;var F=l.clone(h);l.extend(F,{statusCode:s.statusCode,headers:s.headers}),r(null,F)})}function We(t,r){var e={};e.uploadId=t.UploadId,oe.call(this,{Action:"name/cos:AbortMultipartUpload",method:"DELETE",Bucket:t.Bucket,Region:t.Region,Key:t.Key,headers:t.Headers,qs:e,tracker:t.tracker},function(n,o){if(n)return r(n);r(null,{statusCode:o.statusCode,headers:o.headers})})}function Xe(t,r){oe.call(this,{method:t.Method,Bucket:t.Bucket,Region:t.Region,Key:t.Key,action:t.Action,headers:t.Headers,qs:t.Query,body:t.Body,Url:t.Url,rawBody:t.RawBody,DataType:t.DataType,tracker:t.tracker},function(e,n){if(e)return r(e);n&&n.body&&(n.Body=n.body,delete n.body),r(e,n)})}function $e(t,r){var e=t.Headers;!e["Cache-Control"]&&!e["cache-control"]&&(e["Cache-Control"]=""),!e["Content-Type"]&&!e["content-type"]&&(e["Content-Type"]=t.Body&&t.Body.type||""),oe.call(this,{Action:"name/cos:AppendObject",method:"POST",Bucket:t.Bucket,Region:t.Region,action:"append",Key:t.Key,body:t.Body,qs:{position:t.Position},headers:t.Headers,tracker:t.tracker},function(n,o){if(n)return r(n);r(null,o)})}function Ze(t){var r=this;return l.getAuth({SecretId:t.SecretId||this.options.SecretId||"",SecretKey:t.SecretKey||this.options.SecretKey||"",Bucket:t.Bucket,Region:t.Region,Method:t.Method,Key:t.Key,Query:t.Query,Headers:t.Headers,Expires:t.Expires,UseRawKey:r.options.UseRawKey,SystemClockOffset:r.options.SystemClockOffset})}function et(t,r){var e=this,n=t.UseAccelerate===void 0?e.options.UseAccelerate:t.UseAccelerate,o=Ge({ForcePathStyle:e.options.ForcePathStyle,protocol:t.Protocol||e.options.Protocol,domain:t.Domain||e.options.Domain,bucket:t.Bucket,region:n?"accelerate":t.Region,object:t.Key}),s="";t.Query&&(s+=l.obj2str(t.Query)),t.QueryString&&(s+=(s?"&":"")+t.QueryString);var h=o;if(t.Sign!==void 0&&!t.Sign)return s&&(h+="?"+s),r(null,{Url:h}),h;var y=ot.call(this,{Bucket:t.Bucket,Region:t.Region,UseAccelerate:t.UseAccelerate,Url:o}),F=it.call(this,{Action:(t.Method||"").toUpperCase()==="PUT"?"name/cos:PutObject":"name/cos:GetObject",Bucket:t.Bucket||"",Region:t.Region||"",Method:t.Method||"get",Key:t.Key,Expires:t.Expires,Headers:t.Headers,Query:t.Query,SignHost:y,ForceSignHost:t.ForceSignHost===!1?!1:e.options.ForceSignHost},function(de,ae){if(!!r){if(de){r(de);return}var Ce=function(Le){var Me=Le.match(/q-url-param-list.*?(?=&)/g)[0],Pe="q-url-param-list="+encodeURIComponent(Me.replace(/q-url-param-list=/,"")).toLowerCase(),_e=new RegExp(Me,"g"),He=Le.replace(_e,Pe);return He},Q=o;Q+="?"+(ae.Authorization.indexOf("q-signature")>-1?Ce(ae.Authorization):"sign="+encodeURIComponent(ae.Authorization)),ae.SecurityToken&&(Q+="&x-cos-security-token="+ae.SecurityToken),ae.ClientIP&&(Q+="&clientIP="+ae.ClientIP),ae.ClientUA&&(Q+="&clientUA="+ae.ClientUA),ae.Token&&(Q+="&token="+ae.Token),s&&(Q+="&"+s),setTimeout(function(){r(null,{Url:Q})})}});return F?(h+="?"+F.Authorization+(F.SecurityToken?"&x-cos-security-token="+F.SecurityToken:""),s&&(h+="&"+s)):s&&(h+="?"+s),h}function Je(t){var r={GrantFullControl:[],GrantWrite:[],GrantRead:[],GrantReadAcp:[],GrantWriteAcp:[],ACL:""},e={FULL_CONTROL:"GrantFullControl",WRITE:"GrantWrite",READ:"GrantRead",READ_ACP:"GrantReadAcp",WRITE_ACP:"GrantWriteAcp"},n=t&&t.AccessControlList||{},o=n.Grant;o&&(o=l.isArray(o)?o:[o]);var s={READ:0,WRITE:0,FULL_CONTROL:0};return o&&o.length&&l.each(o,function(h){h.Grantee.ID==="qcs::cam::anyone:anyone"||h.Grantee.URI==="http://cam.qcloud.com/groups/global/AllUsers"?s[h.Permission]=1:h.Grantee.ID!==t.Owner.ID&&r[e[h.Permission]].push('id="'+h.Grantee.ID+'"')}),s.FULL_CONTROL||s.WRITE&&s.READ?r.ACL="public-read-write":s.READ?r.ACL="public-read":r.ACL="private",l.each(e,function(h){r[h]=Qe(r[h].join(","))}),r}function Qe(t){var r=t.split(","),e={},n,o;for(n=0;n<r.length;)o=r[n].trim(),e[o]?r.splice(n,1):(e[o]=!0,r[n]=o,n++);return r.join(",")}function Ge(t){var r=t.region||"",e=t.bucket||"",n=e.substr(0,e.lastIndexOf("-")),o=e.substr(e.lastIndexOf("-")+1),s=t.domain,h=t.object;typeof s=="function"&&(s=s({Bucket:e,Region:r})),["http","https"].includes(t.protocol)&&(t.protocol=t.protocol+":");var y=t.protocol||(l.isBrowser&&(typeof location=="undefined"?"undefined":P(location))==="object"&&location.protocol==="http:"?"http:":"https:");s||(["cn-south","cn-south-2","cn-north","cn-east","cn-southwest","sg"].indexOf(r)>-1?s="{Region}.myqcloud.com":s="cos.{Region}.myqcloud.com",t.ForcePathStyle||(s="{Bucket}."+s)),s=s.replace(/\{\{AppId\}\}/gi,o).replace(/\{\{Bucket\}\}/gi,n).replace(/\{\{Region\}\}/gi,r).replace(/\{\{.*?\}\}/gi,""),s=s.replace(/\{AppId\}/gi,o).replace(/\{BucketName\}/gi,n).replace(/\{Bucket\}/gi,e).replace(/\{Region\}/gi,r).replace(/\{.*?\}/gi,""),/^[a-zA-Z]+:\/\//.test(s)||(s=y+"//"+s),s.slice(-1)==="/"&&(s=s.slice(0,-1));var F=s;return t.ForcePathStyle&&(F+="/"+e),F+="/",h&&(F+=l.camSafeUrlEncode(h).replace(/%2F/g,"/")),t.isLocation&&(F=F.replace(/^https?:\/\//,"")),F}var ot=function(r){if(!r.Bucket||!r.Region)return"";var e=r.UseAccelerate===void 0?this.options.UseAccelerate:r.UseAccelerate,n=r.Url||Ge({ForcePathStyle:this.options.ForcePathStyle,protocol:this.options.Protocol,domain:this.options.Domain,bucket:r.Bucket,region:e?"accelerate":r.Region}),o=n.replace(/^https?:\/\/([^/]+)(\/.*)?$/,"$1");return o};function it(t,r){var e=l.clone(t.Headers),n="";l.each(e,function(Re,ye){(Re===""||["content-type","cache-control","expires"].indexOf(ye.toLowerCase())>-1)&&delete e[ye],ye.toLowerCase()==="host"&&(n=Re)});var o=t.ForceSignHost!==!1;!n&&t.SignHost&&o&&(e.Host=t.SignHost);var s=!1,h=function(ye,ke){s||(s=!0,ke&&ke.XCosSecurityToken&&!ke.SecurityToken&&(ke=l.clone(ke),ke.SecurityToken=ke.XCosSecurityToken,delete ke.XCosSecurityToken),r&&r(ye,ke))},y=this,F=t.Bucket||"",de=t.Region||"",ae=t.Key||"";y.options.ForcePathStyle&&F&&(ae=F+"/"+ae);var Ce="/"+ae,Q={},Be=t.Scope;if(!Be){var Le=t.Action||"",Me=t.ResourceKey||t.Key||"";Be=t.Scope||[{action:Le,bucket:F,region:de,prefix:Me}]}var Pe=l.md5(JSON.stringify(Be));y._StsCache=y._StsCache||[],function(){var Re,ye;for(Re=y._StsCache.length-1;Re>=0;Re--){ye=y._StsCache[Re];var ke=Math.round(l.getSkewTime(y.options.SystemClockOffset)/1e3)+30;if(ye.StartTime&&ke<ye.StartTime||ke>=ye.ExpiredTime){y._StsCache.splice(Re,1);continue}if(!ye.ScopeLimit||ye.ScopeLimit&&ye.ScopeKey===Pe){Q=ye;break}}}();var _e=function(){var ye="";Q.StartTime&&t.Expires?ye=Q.StartTime+";"+(Q.StartTime+t.Expires*1):Q.StartTime&&Q.ExpiredTime&&(ye=Q.StartTime+";"+Q.ExpiredTime);var ke=l.getAuth({SecretId:Q.TmpSecretId,SecretKey:Q.TmpSecretKey,Method:t.Method,Pathname:Ce,Query:t.Query,Headers:e,Expires:t.Expires,UseRawKey:y.options.UseRawKey,SystemClockOffset:y.options.SystemClockOffset,KeyTime:ye,ForceSignHost:o}),we={Authorization:ke,SecurityToken:Q.SecurityToken||Q.XCosSecurityToken||"",Token:Q.Token||"",ClientIP:Q.ClientIP||"",ClientUA:Q.ClientUA||"",SignFrom:"client"};h(null,we)},He=function(ye){if(ye.Authorization){var ke=!1,we=ye.Authorization;if(we)if(we.indexOf(" ")>-1)ke=!1;else if(we.indexOf("q-sign-algorithm=")>-1&&we.indexOf("q-ak=")>-1&&we.indexOf("q-sign-time=")>-1&&we.indexOf("q-key-time=")>-1&&we.indexOf("q-url-param-list=")>-1)ke=!0;else try{we=atob(we),we.indexOf("a=")>-1&&we.indexOf("k=")>-1&&we.indexOf("t=")>-1&&we.indexOf("r=")>-1&&we.indexOf("b=")>-1&&(ke=!0)}catch(pt){}if(!ke)return l.error(new Error("getAuthorization callback params format error"))}else{if(!ye.TmpSecretId)return l.error(new Error('getAuthorization callback params missing "TmpSecretId"'));if(!ye.TmpSecretKey)return l.error(new Error('getAuthorization callback params missing "TmpSecretKey"'));if(!ye.SecurityToken&&!ye.XCosSecurityToken)return l.error(new Error('getAuthorization callback params missing "SecurityToken"'));if(!ye.ExpiredTime)return l.error(new Error('getAuthorization callback params missing "ExpiredTime"'));if(ye.ExpiredTime&&ye.ExpiredTime.toString().length!==10)return l.error(new Error('getAuthorization callback params "ExpiredTime" should be 10 digits'));if(ye.StartTime&&ye.StartTime.toString().length!==10)return l.error(new Error('getAuthorization callback params "StartTime" should be 10 StartTime'))}return!1};if(Q.ExpiredTime&&Q.ExpiredTime-l.getSkewTime(y.options.SystemClockOffset)/1e3>60)_e();else if(y.options.getAuthorization)y.options.getAuthorization.call(y,{Bucket:F,Region:de,Method:t.Method,Key:ae,Pathname:Ce,Query:t.Query,Headers:e,Scope:Be,SystemClockOffset:y.options.SystemClockOffset,ForceSignHost:o},function(Re){typeof Re=="string"&&(Re={Authorization:Re});var ye=He(Re);if(ye)return h(ye);Re.Authorization?h(null,Re):(Q=Re||{},Q.Scope=Be,Q.ScopeKey=Pe,y._StsCache.push(Q),_e())});else if(y.options.getSTS)y.options.getSTS.call(y,{Bucket:F,Region:de},function(Re){Q=Re||{},Q.Scope=Be,Q.ScopeKey=Pe,Q.TmpSecretId||(Q.TmpSecretId=Q.SecretId),Q.TmpSecretKey||(Q.TmpSecretKey=Q.SecretKey);var ye=He(Q);if(ye)return h(ye);y._StsCache.push(Q),_e()});else return function(){var Re=l.getAuth({SecretId:t.SecretId||y.options.SecretId,SecretKey:t.SecretKey||y.options.SecretKey,Method:t.Method,Pathname:Ce,Query:t.Query,Headers:e,Expires:t.Expires,UseRawKey:y.options.UseRawKey,SystemClockOffset:y.options.SystemClockOffset,ForceSignHost:o}),ye={Authorization:Re,SecurityToken:y.options.SecurityToken||y.options.XCosSecurityToken,SignFrom:"client"};return h(null,ye),ye}();return""}function ct(t){var r=this,e=!1,n=!1,o=!1,s=t.headers&&(t.headers.date||t.headers.Date)||t.error&&t.error.ServerTime;try{var h=t.error.Code,y=t.error.Message;(h==="RequestTimeTooSkewed"||h==="AccessDenied"&&y==="Request has expired")&&(n=!0)}catch(de){}if(t)if(n&&s){var F=Date.parse(s);this.options.CorrectClockSkew&&Math.abs(l.getSkewTime(this.options.SystemClockOffset)-F)>=3e4&&(console.error("error: Local time is too skewed."),this.options.SystemClockOffset=F-Date.now(),e=!0)}else Math.floor(t.statusCode/100)===5?e=!0:t.message==="CORS blocked or network error"&&(o=!0,e=r.options.AutoSwitchHost);return{canRetry:e,networkError:o}}function ut(t){var r=t.requestUrl,e=t.clientCalcSign,n=t.networkError;if(!this.options.AutoSwitchHost||!r||!e||!n)return!1;var o=/^https?:\/\/[^\/]*\.cos\.[^\/]*\.myqcloud\.com(\/.*)?$/,s=/^https?:\/\/[^\/]*\.cos\.accelerate\.myqcloud\.com(\/.*)?$/,h=o.test(r)&&!s.test(r);return h}function oe(t,r){var e=this;!t.headers&&(t.headers={}),!t.qs&&(t.qs={}),t.VersionId&&(t.qs.versionId=t.VersionId),t.qs=l.clearKey(t.qs),t.headers&&(t.headers=l.clearKey(t.headers)),t.qs&&(t.qs=l.clearKey(t.qs));var n=l.clone(t.qs);t.action&&(n[t.action]="");var o=t.url||t.Url,s=t.SignHost||ot.call(this,{Bucket:t.Bucket,Region:t.Region,Url:o}),h=t.tracker,y=function F(de){var ae=e.options.SystemClockOffset;h&&h.setParams({signStartTime:new Date().getTime(),httpRetryTimes:de-1}),t.SwitchHost&&(s=s.replace(/myqcloud.com/,"tencentcos.cn")),it.call(e,{Bucket:t.Bucket||"",Region:t.Region||"",Method:t.method,Key:t.Key,Query:n,Headers:t.headers,SignHost:s,Action:t.Action,ResourceKey:t.ResourceKey,Scope:t.Scope,ForceSignHost:e.options.ForceSignHost,SwitchHost:t.SwitchHost},function(Ce,Q){if(Ce){r(Ce);return}h&&h.setParams({signEndTime:new Date().getTime(),httpStartTime:new Date().getTime()}),t.AuthData=Q,lt.call(e,t,function(Be,Le){h&&h.setParams({httpEndTime:new Date().getTime()});var Me=!1,Pe=!1;if(Be){var _e=ct.call(e,Be);Me=_e.canRetry||ae!==e.options.SystemClockOffset,Pe=_e.networkError}if(Be&&de<2&&Me){t.headers&&(delete t.headers.Authorization,delete t.headers.token,delete t.headers.clientIP,delete t.headers.clientUA,t.headers["x-cos-security-token"]&&delete t.headers["x-cos-security-token"],t.headers["x-ci-security-token"]&&delete t.headers["x-ci-security-token"]);var He=ut.call(e,{requestUrl:(Be==null?void 0:Be.url)||"",clientCalcSign:Q.SignFrom==="client",networkError:Pe});t.SwitchHost=He,F(de+1)}else r(Be,Le)})})};y(1)}function lt(t,r){var e=this,n=t.TaskId;if(!(n&&!e._isRunningTask(n))){var o=t.Bucket,s=t.Region,h=t.Key,y=t.method||"GET",F=t.Url||t.url,de=t.body,ae=t.rawBody;e.options.UseAccelerate&&(s="accelerate"),F=F||Ge({ForcePathStyle:e.options.ForcePathStyle,protocol:e.options.Protocol,domain:e.options.Domain,bucket:o,region:s,object:h}),t.SwitchHost&&(F=F.replace(/myqcloud.com/,"tencentcos.cn"));var Ce=h?F:"";t.action&&(F=F+"?"+(l.isIOS_QQ?"".concat(t.action,"="):t.action)),t.qsStr&&(F.indexOf("?")>-1?F=F+"&"+t.qsStr:F=F+"?"+t.qsStr);var Q={method:y,url:F,headers:t.headers,qs:t.qs,body:de},Be="x-cos-security-token";if(l.isCIHost(F)&&(Be="x-ci-security-token"),Q.headers.Authorization=t.AuthData.Authorization,t.AuthData.Token&&(Q.headers.token=t.AuthData.Token),t.AuthData.ClientIP&&(Q.headers.clientIP=t.AuthData.ClientIP),t.AuthData.ClientUA&&(Q.headers.clientUA=t.AuthData.ClientUA),t.AuthData.SecurityToken&&(Q.headers[Be]=t.AuthData.SecurityToken),Q.headers&&(Q.headers=l.clearKey(Q.headers)),Q=l.clearKey(Q),t.onProgress&&typeof t.onProgress=="function"){var Le=de&&(de.size||de.length)||0;Q.onProgress=function(ke){if(!(n&&!e._isRunningTask(n))){var we=ke?ke.loaded:0;t.onProgress({loaded:we,total:Le})}}}t.onDownloadProgress&&(Q.onDownloadProgress=t.onDownloadProgress),t.DataType&&(Q.dataType=t.DataType),this.options.Timeout&&(Q.timeout=this.options.Timeout),e.options.ForcePathStyle&&(Q.pathStyle=e.options.ForcePathStyle),e.emit("before-send",Q);var Me=Q.url.includes("accelerate."),Pe=Q.qs?Object.keys(Q.qs).map(function(ke){return"".concat(ke,"=").concat(Q.qs[ke])}).join("&"):"",_e=Pe?Q.url+"?"+Pe:Q.url;if(t.tracker){var He;t.tracker.setParams({url:_e,httpMethod:Q.method,accelerate:Me,httpSize:((He=Q.body)===null||He===void 0?void 0:He.size)||0}),t.tracker.parent&&!t.tracker.parent.params.url&&t.tracker.parent.setParams({url:Ce,accelerate:Me})}var Re=(e.options.Request||b)(Q,function(ke){if(!(ke&&ke.error==="abort")){var we={options:Q,error:ke&&ke.error,statusCode:ke&&ke.statusCode||0,statusMessage:ke&&ke.statusMessage||"",headers:ke&&ke.headers||{},body:ke&&ke.body};e.emit("after-receive",we);var pt=we.error,st=we.body,Ye={statusCode:we.statusCode,statusMessage:we.statusMessage,headers:we.headers},yt,rt=function(gt,vt){if(n&&e.off("inner-kill-task",ye),!yt){yt=!0;var nt={};Ye&&Ye.statusCode&&(nt.statusCode=Ye.statusCode),Ye&&Ye.headers&&(nt.headers=Ye.headers),gt?(Q.url&&(nt.url=Q.url),Q.method&&(nt.method=Q.method),gt=l.extend(gt||{},nt),r(gt,null)):(vt=l.extend(vt||{},nt),r(null,vt)),Re=null}};if(pt)return rt(l.error(pt));var ft=Ye.statusCode,Ct=Math.floor(ft/100)===2;if(ae&&Ct)return rt(null,{body:st});var at;try{at=st&&st.indexOf("<")>-1&&st.indexOf(">")>-1&&l.xml2json(st)||{}}catch(mt){at={}}var ht=at&&at.Error;Ct?rt(null,at):ht?rt(l.error(new Error(ht.Message),{code:ht.Code,error:ht})):ft?rt(l.error(new Error(Ye.statusMessage),{code:""+ft})):ft&&rt(l.error(new Error("statusCode error")))}}),ye=function ke(we){we.TaskId===n&&(Re&&Re.abort&&Re.abort(),e.off("inner-kill-task",ke))};n&&e.on("inner-kill-task",ye)}}var tt={getService:U,putBucket:I,headBucket:H,getBucket:D,deleteBucket:k,putBucketAcl:N,getBucketAcl:B,putBucketCors:L,getBucketCors:T,deleteBucketCors:O,getBucketLocation:j,getBucketPolicy:ne,putBucketPolicy:R,deleteBucketPolicy:x,putBucketTagging:C,getBucketTagging:p,deleteBucketTagging:A,putBucketLifecycle:i,getBucketLifecycle:u,deleteBucketLifecycle:c,putBucketVersioning:a,getBucketVersioning:d,putBucketReplication:f,getBucketReplication:m,deleteBucketReplication:g,putBucketWebsite:M,getBucketWebsite:q,deleteBucketWebsite:te,putBucketReferer:X,getBucketReferer:W,putBucketDomain:G,getBucketDomain:J,deleteBucketDomain:Y,putBucketOrigin:pe,getBucketOrigin:ee,deleteBucketOrigin:V,putBucketLogging:ue,getBucketLogging:$,putBucketInventory:ce,postBucketInventory:ie,getBucketInventory:se,listBucketInventory:ge,deleteBucketInventory:fe,putBucketAccelerate:De,getBucketAccelerate:Ae,putBucketEncryption:ve,getBucketEncryption:je,deleteBucketEncryption:xe,getObject:be,headObject:Ne,listObjectVersions:ze,putObject:_,deleteObject:v,getObjectAcl:E,putObjectAcl:S,optionsObject:K,putObjectCopy:z,deleteMultipleObject:me,restoreObject:Ee,putObjectTagging:Te,getObjectTagging:Fe,deleteObjectTagging:Ie,selectObjectContent:Oe,appendObject:$e,uploadPartCopy:le,multipartInit:Ue,multipartUpload:Ke,multipartComplete:qe,multipartList:Se,multipartListPart:Ve,multipartAbort:We,request:Xe,getObjectUrl:et,getAuth:Ze};function dt(t,r,e){l.each(["Cors","Acl"],function(n){if(t.slice(-n.length)===n){var o=t.slice(0,-n.length)+n.toUpperCase(),s=l.apiWrapper(t,r),h=!1;e[o]=function(){!h&&console.warn("warning: cos."+o+" has been deprecated. Please Use cos."+t+" instead."),h=!0,s.apply(this,arguments)}}})}re.exports.init=function(t,r){r.transferToTaskMethod(tt,"putObject"),l.each(tt,function(e,n){t.prototype[n]=l.apiWrapper(n,e),dt(n,e,t.prototype)})}},"./src/cos.js":function(re,he,w){"use strict";var P=w("./src/util.js"),b=w("./src/event.js"),l=w("./src/task.js"),U=w("./src/base.js"),I=w("./src/advance.js"),H=w("./package.json"),D={AppId:"",SecretId:"",SecretKey:"",SecurityToken:"",ChunkRetryTimes:2,FileParallelLimit:3,ChunkParallelLimit:3,ChunkSize:1024*1024,SliceSize:1024*1024,CopyChunkParallelLimit:20,CopyChunkSize:1024*1024*10,CopySliceSize:1024*1024*10,MaxPartNumber:1e4,ProgressInterval:1e3,Domain:"",ServiceDomain:"",Protocol:"",CompatibilityMode:!1,ForcePathStyle:!1,UseRawKey:!1,Timeout:0,CorrectClockSkew:!0,SystemClockOffset:0,UploadCheckContentMd5:!1,UploadQueueSize:1e4,UploadAddMetaMd5:!1,UploadIdCacheLimit:50,UseAccelerate:!1,ForceSignHost:!0,AutoSwitchHost:!0,CopySourceParser:null,ObjectKeySimplifyCheck:!0,DeepTracker:!1,TrackerDelay:5e3,CustomId:"",BeaconReporter:null,ClsReporter:null},k=function(B){if(this.options=P.extend(P.clone(D),B||{}),this.options.FileParallelLimit=Math.max(1,this.options.FileParallelLimit),this.options.ChunkParallelLimit=Math.max(1,this.options.ChunkParallelLimit),this.options.ChunkRetryTimes=Math.max(0,this.options.ChunkRetryTimes),this.options.ChunkSize=Math.max(1024*1024,this.options.ChunkSize),this.options.CopyChunkParallelLimit=Math.max(1,this.options.CopyChunkParallelLimit),this.options.CopyChunkSize=Math.max(1024*1024,this.options.CopyChunkSize),this.options.CopySliceSize=Math.max(0,this.options.CopySliceSize),this.options.MaxPartNumber=Math.max(1024,Math.min(1e4,this.options.MaxPartNumber)),this.options.Timeout=Math.max(0,this.options.Timeout),this.options.EnableReporter=this.options.BeaconReporter||this.options.ClsReporter,this.options.AppId&&console.warn('warning: AppId has been deprecated, Please put it at the end of parameter Bucket(E.g: "test-1250000000").'),this.options.SecretId&&this.options.SecretId.indexOf(" ")>-1&&(console.error("error: SecretId\u683C\u5F0F\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5"),console.error("error: SecretId format is incorrect. Please check")),this.options.SecretKey&&this.options.SecretKey.indexOf(" ")>-1&&(console.error("error: SecretKey\u683C\u5F0F\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5"),console.error("error: SecretKey format is incorrect. Please check")),P.isNode()&&(console.log("Tip: Next.js\u3001Nuxt.js \u7B49\u670D\u52A1\u7AEF\u6E32\u67D3\u6280\u672F\u53EF\u6B63\u5E38\u4F7F\u7528JavaScript SDK\uFF0C\u8BF7\u5FFD\u7565\u4E0B\u65B9 nodejs \u73AF\u5883\u8B66\u544A"),console.warn("warning: cos-js-sdk-v5 \u4E0D\u652F\u6301 nodejs \u73AF\u5883\u4F7F\u7528\uFF0C\u8BF7\u6539\u7528 cos-nodejs-sdk-v5\uFF0C\u53C2\u8003\u6587\u6863\uFF1A https://cloud.tencent.com/document/product/436/8629"),console.warn("warning: cos-js-sdk-v5 does not support nodejs environment. Please use cos-nodejs-sdk-v5 instead. See: https://cloud.tencent.com/document/product/436/8629")),this.options.ForcePathStyle)throw console.warn("cos-js-sdk-v5\u4E0D\u518D\u652F\u6301\u4F7F\u7528path-style\uFF0C\u4EC5\u652F\u6301\u4F7F\u7528virtual-hosted-style\uFF0C\u53C2\u8003\u6587\u6863\uFF1Ahttps://cloud.tencent.com/document/product/436/96243"),new Error("ForcePathStyle is not supported");b.init(this),l.init(this)};U.init(k,l),I.init(k,l),k.util={md5:P.md5,xml2json:P.xml2json,json2xml:P.json2xml,encodeBase64:P.encodeBase64},k.getAuthorization=P.getAuth,k.version=H.version,re.exports=k},"./src/event.js":function(re,he){var w=function(l){var U={},I=function(D){return!U[D]&&(U[D]=[]),U[D]};l.on=function(H,D){H==="task-list-update"&&console.warn('warning: Event "'+H+'" has been deprecated. Please use "list-update" instead.'),I(H).push(D)},l.off=function(H,D){for(var k=I(H),N=k.length-1;N>=0;N--)D===k[N]&&k.splice(N,1)},l.emit=function(H,D){for(var k=I(H).map(function(B){return B}),N=0;N<k.length;N++)k[N](D)}},P=function(){w(this)};re.exports.init=w,re.exports.EventProxy=P},"./src/session.js":function(re,he,w){var P=w("./src/util.js"),b="cos_sdk_upload_cache",l=30*24*3600,U,I,H=function(){try{var T=JSON.parse(localStorage.getItem(b))}catch(O){}T||(T=[]),U=T},D=function(){try{U.length?localStorage.setItem(b,JSON.stringify(U)):localStorage.removeItem(b)}catch(T){}},k=function(){if(!U){H.call(this);for(var T=!1,O=Math.round(Date.now()/1e3),j=U.length-1;j>=0;j--){var R=U[j][2];(!R||R+l<O)&&(U.splice(j,1),T=!0)}T&&D()}},N=function(){I||(I=setTimeout(function(){D(),I=null},400))},B={using:{},setUsing:function(T){B.using[T]=!0},removeUsing:function(T){delete B.using[T]},getFileId:function(T,O,j,R){return T.name&&T.size&&T.lastModifiedDate&&O?P.md5([T.name,T.size,T.lastModifiedDate,O,j,R].join("::")):null},getCopyFileId:function(T,O,j,R,ne){var x=O["content-length"],C=O.etag||"",p=O["last-modified"];return T&&j?P.md5([T,x,C,p,j,R,ne].join("::")):null},getUploadIdList:function(T){if(!T)return null;k.call(this);for(var O=[],j=0;j<U.length;j++)U[j][0]===T&&O.push(U[j][1]);return O.length?O:null},saveUploadId:function(T,O,j){if(k.call(this),!!T){for(var R=U.length-1;R>=0;R--){var ne=U[R];ne[0]===T&&ne[1]===O&&U.splice(R,1)}U.unshift([T,O,Math.round(Date.now()/1e3)]),U.length>j&&U.splice(j),N()}},removeUploadId:function(T){k.call(this),delete B.using[T];for(var O=U.length-1;O>=0;O--)U[O][1]===T&&U.splice(O,1);N()}};re.exports=B},"./src/task.js":function(re,he,w){var P=w("./src/session.js"),b=w("./src/util.js"),l={},U=function(D,k){l[k]=D[k],D[k]=function(N,B){N.SkipTask?l[k].call(this,N,B):this._addTask(k,N,B)}},I=function(D){var k=[],N={},B=0,L=0,T=function(p){var A={id:p.id,Bucket:p.Bucket,Region:p.Region,Key:p.Key,FilePath:p.FilePath,state:p.state,loaded:p.loaded,size:p.size,speed:p.speed,percent:p.percent,hashPercent:p.hashPercent,error:p.error};return p.FilePath&&(A.FilePath=p.FilePath),p._custom&&(A._custom=p._custom),A},O=function(){var C,p=function(){C=0,D.emit("task-list-update",{list:b.map(k,T)}),D.emit("list-update",{list:b.map(k,T)})};return function(){C||(C=setTimeout(p))}}(),j=function(){if(!(k.length<=D.options.UploadQueueSize)){for(var p=0;p<L&&p<k.length&&k.length>D.options.UploadQueueSize;){var A=k[p].state==="waiting"||k[p].state==="checking"||k[p].state==="uploading";!k[p]||!A?(N[k[p].id]&&delete N[k[p].id],k.splice(p,1),L--):p++}O()}},R=function C(){if(!(B>=D.options.FileParallelLimit)){for(;k[L]&&k[L].state!=="waiting";)L++;if(!(L>=k.length)){var p=k[L];L++,B++,p.state="checking",p.params.onTaskStart&&p.params.onTaskStart(T(p)),!p.params.UploadData&&(p.params.UploadData={});var A=b.formatParams(p.api,p.params);l[p.api].call(D,A,function(i,u){!D._isRunningTask(p.id)||((p.state==="checking"||p.state==="uploading")&&(p.state=i?"error":"success",i&&(p.error=i),B--,O(),C(),p.callback&&p.callback(i,u),p.state==="success"&&(p.params&&(delete p.params.UploadData,delete p.params.Body,delete p.params),delete p.callback)),j())}),O(),setTimeout(C)}}},ne=function(p,A){var i=N[p];if(!!i){var u=i&&i.state==="waiting",c=i&&(i.state==="checking"||i.state==="uploading");if(A==="canceled"&&i.state!=="canceled"||A==="paused"&&u||A==="paused"&&c){i.state=A,D.emit("inner-kill-task",{TaskId:p,toState:A});try{var a=i&&i.params&&i.params.UploadData.UploadId}catch(d){}A==="canceled"&&a&&P.removeUsing(a),O(),c&&(B--,R()),A==="canceled"&&(i.params&&(delete i.params.UploadData,delete i.params.Body,delete i.params),delete i.callback)}j()}};D._addTasks=function(C){b.each(C,function(p){D._addTask(p.api,p.params,p.callback,!0)}),O()};var x=!0;D._addTask=function(C,p,A,i){p=b.formatParams(C,p);var u=b.uuid();p.TaskId=u,p.onTaskReady&&p.onTaskReady(u),p.TaskReady&&(p.TaskReady(u),x&&console.warn('warning: Param "TaskReady" has been deprecated. Please use "onTaskReady" instead.'),x=!1);var c={params:p,callback:A,api:C,index:k.length,id:u,Bucket:p.Bucket,Region:p.Region,Key:p.Key,FilePath:p.FilePath||"",state:"waiting",loaded:0,size:0,speed:0,percent:0,hashPercent:0,error:null,_custom:p._custom},a=p.onHashProgress;p.onHashProgress=function(f){!D._isRunningTask(c.id)||(c.hashPercent=f.percent,a&&a(f),O())};var d=p.onProgress;return p.onProgress=function(f){!D._isRunningTask(c.id)||(c.state==="checking"&&(c.state="uploading"),c.loaded=f.loaded,c.speed=f.speed,c.percent=f.percent,d&&d(f),O())},b.getFileSize(C,p,function(f,m){if(f)return A(b.error(f));N[u]=c,k.push(c),c.size=m,!i&&O(),R(),j()}),u},D._isRunningTask=function(C){var p=N[C];return!!(p&&(p.state==="checking"||p.state==="uploading"))},D.getTaskList=function(){return b.map(k,T)},D.cancelTask=function(C){ne(C,"canceled")},D.pauseTask=function(C){ne(C,"paused")},D.restartTask=function(C){var p=N[C];p&&(p.state==="paused"||p.state==="error")&&(p.state="waiting",O(),L=Math.min(L,p.index),R())},D.isUploadRunning=function(){return B||L<k.length}};re.exports.transferToTaskMethod=U,re.exports.init=I},"./src/tracker.js":function(re,he,w){var P=w("./node_modules/@babel/runtime/helpers/classCallCheck.js"),b=w("./node_modules/@babel/runtime/helpers/createClass.js"),l=w("./node_modules/@babel/runtime/helpers/typeof.js"),U=w("./package.json"),I=null,H=function(A,i){if(!I){if(typeof A!="function")throw new Error("Beacon not found");I=new A({appkey:"0WEB05PY6MHRGK0U",versionCode:U.version,channelID:"js_sdk",openid:"openid",unionid:"unid",strictMode:!1,delay:i,sessionDuration:60*1e3})}return I},D=function(A){return!A||A<0?0:(A/1e3).toFixed(3)},k={getUid:function(){var A=function(){return((1+Math.random())*65536|0).toString(16).substring(1)};return A()+A()+"-"+A()+"-"+A()+"-"+A()+"-"+A()+A()+A()},getNetType:function(){if((typeof navigator=="undefined"?"undefined":l(navigator))==="object"){var A=navigator.connection||navigator.mozConnection||navigator.webkitConnection;return(A==null?void 0:A.type)||(A==null?void 0:A.effectiveType)||"unknown"}return"unknown"},getProtocol:function(){return(typeof location=="undefined"?"undefined":l(location))==="object"?location.protocol.replace(/:/,""):"unknown protocol"},getOsType:function(){if((typeof navigator=="undefined"?"undefined":l(navigator))!=="object")return"unknown os";var A=navigator.userAgent.toLowerCase(),i=/macintosh|mac os x/i.test(navigator.userAgent);return A.indexOf("win32")>=0||A.indexOf("wow32")>=0?"win32":A.indexOf("win64")>=0||A.indexOf("wow64")>=0?"win64":i?"mac":"unknown os"},isMobile:function(){var A=/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i;return!!((typeof navigator=="undefined"?"undefined":l(navigator))==="object"&&navigator.userAgent.match(A))},isAndroid:function(){var A=/(Android|Adr|Linux)/i;return!!((typeof navigator=="undefined"?"undefined":l(navigator))==="object"&&navigator.userAgent.match(A))},isIOS:function(){var A=/(iPhone|iPod|iPad|iOS)/i;return!!((typeof navigator=="undefined"?"undefined":l(navigator))==="object"&&navigator.userAgent.match(A))},isOtherMobile:function(){return N&&!isAndroid&&!isIOS},getUA:function(){if((typeof navigator=="undefined"?"undefined":l(navigator))!=="object")return"unknown device";var A=navigator.userAgent;return A}},N=k.isMobile(),B=k.isAndroid()?"android":k.isIOS?"ios":"other_mobile",L=k.getOsType(),T=N?B:L,O=k.getUA(),j=k.getProtocol(),R=function(A){return["putObject","sliceUploadFile","uploadFile","uploadFiles"].includes(A)?"UploadTask":A==="getObject"?"DownloadTask":["putObjectCopy","sliceCopyFile"].includes(A)?"CopyTask":A};function ne(p){return p.replace(/([A-Z])/g,"_$1").toLowerCase()}function x(p){var A={},i=["sdkVersionName","sdkVersionCode","osName","networkType","requestName","requestResult","bucket","region","appid","accelerate","url","host","requestPath","userAgent","networkProtocol","httpMethod","httpSize","httpSpeed","httpTookTime","httpMd5","httpSign","httpFullTime","httpDomain","partNumber","httpRetryTimes","customId","traceId","realApi"],u=[].concat(i,["errorNode","errorCode","errorName","errorMessage","errorRequestId","errorHttpCode","errorServiceName","errorType","fullError"]),c=p.requestResult==="Success"?i:u;for(var a in p)if(!!c.includes(a)){var d=ne(a);A[d]=p[a]}return A.request_name=p.realApi?R(p.realApi):p.requestName,A}var C=function(){"use strict";function p(A){P(this,p);var i=A.parent,u=A.traceId,c=A.bucket,a=A.region,d=A.apiName,f=A.realApi,m=A.httpMethod,g=A.fileKey,M=A.fileSize,q=A.accelerate,te=A.customId,X=A.delay,W=A.deepTracker,G=A.Beacon,J=A.clsReporter,Y=c&&c.substr(c.lastIndexOf("-")+1)||"";this.parent=i,this.deepTracker=W,this.delay=X,J&&!this.clsReporter&&(this.clsReporter=J),this.params={sdkVersionName:"cos-js-sdk-v5",sdkVersionCode:U.version,osName:T,networkType:"",requestName:d||"",requestResult:"",realApi:f,bucket:c,region:a,accelerate:q,httpMethod:m,url:"",host:"",httpDomain:"",requestPath:g||"",userAgent:O,networkProtocol:j,errorType:"",errorCode:"",errorName:"",errorMessage:"",errorRequestId:"",errorHttpCode:0,errorServiceName:"",errorNode:"",httpTookTime:0,httpSize:M||0,httpMd5:0,httpSign:0,httpFullTime:0,httpSpeed:0,md5StartTime:0,md5EndTime:0,signStartTime:0,signEndTime:0,httpStartTime:0,httpEndTime:0,startTime:new Date().getTime(),endTime:0,traceId:u||k.getUid(),appid:Y,partNumber:0,httpRetryTimes:0,customId:te||"",partTime:0},G&&(this.beacon=H(G,X))}return b(p,[{key:"formatResult",value:function(i,u){var c,a,d,f,m,g,M=new Date().getTime(),q=k.getNetType(),te=i?(i==null?void 0:i.code)||(i==null||(c=i.error)===null||c===void 0?void 0:c.code)||(i==null||(a=i.error)===null||a===void 0?void 0:a.Code):"",X=i?(i==null?void 0:i.message)||(i==null||(d=i.error)===null||d===void 0?void 0:d.message)||(i==null||(f=i.error)===null||f===void 0?void 0:f.Message):"",W=X,G=i?(i==null?void 0:i.resource)||(i==null||(m=i.error)===null||m===void 0?void 0:m.resource)||(i==null||(g=i.error)===null||g===void 0?void 0:g.Resource):"",J=i?i==null?void 0:i.statusCode:u.statusCode,Y=i?(i==null?void 0:i.headers)&&(i==null?void 0:i.headers["x-cos-request-id"]):(u==null?void 0:u.headers)&&(u==null?void 0:u.headers["x-cos-request-id"]),pe=i?Y?"Server":"Client":"";this.params.requestName==="getObject"&&(this.params.httpSize=u?u.headers&&u.headers["content-length"]:0);var ee=this.params.realApi==="sliceUploadFile",V=this.params.realApi==="sliceCopyFile";if(ee||V){var ue=this.params.httpSize/1024/this.params.partTime;Object.assign(this.params,{httpSpeed:ue<0?0:ue.toFixed(3)})}else{var $=M-this.params.startTime,Z=this.params.httpEndTime-this.params.httpStartTime,ce=this.params.httpSize/1024/(Z/1e3),ie=this.params.md5EndTime-this.params.md5StartTime,se=this.params.signEndTime-this.params.signStartTime;this.parent&&(this.parent.addParamValue("httpTookTime",D(Z)),this.parent.addParamValue("httpFullTime",D($)),this.parent.addParamValue("httpMd5",D(ie)),this.parent.addParamValue("httpSign",D(se)),["multipartUpload","uploadPartCopy","putObjectCopy"].includes(this.params.requestName)&&this.parent.addParamValue("partTime",D(Z))),Object.assign(this.params,{httpFullTime:D($),httpMd5:D(ie),httpSign:D(se),httpTookTime:D(Z),httpSpeed:ce<0?0:ce.toFixed(3)})}if(Object.assign(this.params,{networkType:q,requestResult:i?"Failure":"Success",errorType:pe,errorCode:te,errorHttpCode:J,errorName:W,errorMessage:X,errorServiceName:G,errorRequestId:Y}),i&&(!te||!X)&&(this.params.fullError=i?JSON.stringify(i):""),this.params.url){try{var ge=/^http(s)?:\/\/(.*?)\//.exec(this.params.url);this.params.host=ge[2]}catch(fe){this.params.host=this.params.url}this.params.httpDomain=this.params.host}}},{key:"report",value:function(i,u){if(!(!this.beacon&&!this.clsReporter)){this.formatResult(i,u);var c=x(this.params);this.beacon&&this.sendEventsToBeacon(c),this.clsReporter&&this.sendEventsToCLS(c)}}},{key:"setParams",value:function(i){Object.assign(this.params,i)}},{key:"addParamValue",value:function(i,u){this.params[i]=(+this.params[i]+ +u).toFixed(3)}},{key:"sendEventsToBeacon",value:function(i){var u=this.params.requestName==="sliceUploadFile"||this.params.realApi==="sliceUploadFile";if(!(u&&!this.deepTracker)){var c="qcloud_track_cos_sdk";this.delay===0?this.beacon&&this.beacon.onDirectUserAction(c,i):this.beacon&&this.beacon.onUserAction(c,i)}}},{key:"sendEventsToCLS",value:function(i){var u=this.delay===0;this.clsReporter.log(i,u)}},{key:"generateSubTracker",value:function(i){return Object.assign(i,{parent:this,deepTracker:this.deepTracker,traceId:this.params.traceId,bucket:this.params.bucket,region:this.params.region,accelerate:this.params.accelerate,fileKey:this.params.requestPath,customId:this.params.customId,delay:this.delay,clsReporter:this.clsReporter}),new p(i)}}]),p}();re.exports=C},"./src/util.js":function(re,he,w){"use strict";(function(P){var b=w("./node_modules/@babel/runtime/helpers/typeof.js");function l(_,v){var E=typeof Symbol!="undefined"&&_[Symbol.iterator]||_["@@iterator"];if(!E){if(Array.isArray(_)||(E=U(_))||v&&_&&typeof _.length=="number"){E&&(_=E);var S=0,K=function(){};return{s:K,n:function(){return S>=_.length?{done:!0}:{done:!1,value:_[S++]}},e:function(Te){throw Te},f:K}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
  12. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var z=!0,le=!1,me;return{s:function(){E=E.call(_)},n:function(){var Te=E.next();return z=Te.done,Te},e:function(Te){le=!0,me=Te},f:function(){try{!z&&E.return!=null&&E.return()}finally{if(le)throw me}}}}function U(_,v){if(!!_){if(typeof _=="string")return I(_,v);var E=Object.prototype.toString.call(_).slice(8,-1);if(E==="Object"&&_.constructor&&(E=_.constructor.name),E==="Map"||E==="Set")return Array.from(_);if(E==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(E))return I(_,v)}}function I(_,v){(v==null||v>_.length)&&(v=_.length);for(var E=0,S=new Array(v);E<v;E++)S[E]=_[E];return S}var H=w("./lib/md5.js"),D=w("./lib/crypto.js"),k=w("./lib/xml2json.js"),N=w("./lib/json2xml.js"),B=w("./lib/base64.js"),L=w("./src/tracker.js");function T(_){return encodeURIComponent(_).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}function O(_,v){var E=[];for(var S in _)_.hasOwnProperty(S)&&E.push(v?T(S).toLowerCase():S);return E.sort(function(K,z){return K=K.toLowerCase(),z=z.toLowerCase(),K===z?0:K>z?1:-1})}var j=function(v,E){var S,K,z,le=[],me=O(v);for(S=0;S<me.length;S++)K=me[S],z=v[K]===void 0||v[K]===null?"":""+v[K],K=E?T(K).toLowerCase():T(K),z=T(z)||"",le.push(K+"="+z);return le.join("&")},R=["cache-control","content-disposition","content-encoding","content-length","content-md5","expect","expires","host","if-match","if-modified-since","if-none-match","if-unmodified-since","origin","range","transfer-encoding","pic-operations"],ne=function(v){var E={};for(var S in v){var K=S.toLowerCase();(K.indexOf("x-cos-")>-1||R.indexOf(K)>-1)&&(E[S]=v[S])}return E},x=function(v){v=v||{};var E=v.SecretId,S=v.SecretKey,K=v.KeyTime,z=(v.method||v.Method||"get").toLowerCase(),le=q(v.Query||v.params||{}),me=ne(q(v.Headers||v.headers||{})),Ee=v.Key||"",Te;v.UseRawKey?Te=v.Pathname||v.pathname||"/"+Ee:(Te=v.Pathname||v.pathname||Ee,Te.indexOf("/")!==0&&(Te="/"+Te));var Fe=v.ForceSignHost!==!1;if(!me.Host&&!me.host&&v.Bucket&&v.Region&&Fe&&(me.Host=v.Bucket+".cos."+v.Region+".myqcloud.com"),!E)throw new Error("missing param SecretId");if(!S)throw new Error("missing param SecretKey");var Ie=Math.round(ge(v.SystemClockOffset)/1e3)-1,Oe=Ie,Ue=v.Expires||v.expires;Ue===void 0?Oe+=900:Oe+=Ue*1||0;var Ke="sha1",qe=E,Se=K||Ie+";"+Oe,Ve=K||Ie+";"+Oe,We=O(me,!0).join(";").toLowerCase(),Xe=O(le,!0).join(";").toLowerCase(),$e=D.HmacSHA1(Ve,S).toString(),Ze=[z,Te,be.obj2str(le,!0),be.obj2str(me,!0),""].join(`
  13. `),et=["sha1",Se,D.SHA1(Ze).toString(),""].join(`
  14. `),Je=D.HmacSHA1(et,$e).toString(),Qe=["q-sign-algorithm="+Ke,"q-ak="+qe,"q-sign-time="+Se,"q-key-time="+Ve,"q-header-list="+We,"q-url-param-list="+Xe,"q-signature="+Je].join("&");return Qe},C=function(v,E,S){var K=E/8,z=v.slice(S,S+K);return new Uint8Array(z).reverse(),new{8:Uint8Array,16:Uint16Array,32:Uint32Array}[E](z)[0]},p=function(v,E,S,K){var z=v.slice(E,S),le="";return new Uint8Array(z).forEach(function(me){le+=String.fromCharCode(me)}),K&&(le=decodeURIComponent(escape(le))),le},A=function(v){for(var E={},S=p(v),K={records:[]};v.byteLength;){var z=C(v,32,0),le=C(v,32,4),me=z-le-16,Ee=0,Te;for(v=v.slice(12);Ee<le;){var Fe=C(v,8,Ee),Ie=p(v,Ee+1,Ee+1+Fe),Oe=C(v,16,Ee+Fe+2),Ue=p(v,Ee+Fe+4,Ee+Fe+4+Oe);E[Ie]=Ue,Ee+=Fe+4+Oe}if(E[":event-type"]==="Records")Te=p(v,Ee,Ee+me,!0),K.records.push(Te);else if(E[":event-type"]==="Stats")Te=p(v,Ee,Ee+me,!0),K.stats=be.xml2json(Te).Stats;else if(E[":event-type"]==="error"){var Ke=E[":error-code"],qe=E[":error-message"],Se=new Error(qe);Se.message=qe,Se.name=Se.code=Ke,K.error=Se}else["Progress","Continuation","End"].includes(E[":event-type"]);v=v.slice(Ee+me+4)}return{payload:K.records.join(""),body:S}},i=function(v){var E=this.options.CopySourceParser;if(E)return E(v);var S=v.match(/^([^.]+-\d+)\.cos(v6|-cdc|-cdz|-internal)?\.([^.]+)\.((myqcloud\.com)|(tencentcos\.cn))\/(.+)$/);return S?{Bucket:S[1],Region:S[3],Key:S[7]}:null},u=function(){},c=function(v){var E={};for(var S in v)v.hasOwnProperty(S)&&v[S]!==void 0&&v[S]!==null&&(E[S]=v[S]);return E},a=function(v,E){var S,K=new FileReader;FileReader.prototype.readAsBinaryString?(S=FileReader.prototype.readAsBinaryString,K.onload=function(){E(this.result)}):FileReader.prototype.readAsArrayBuffer?S=function(le){var me="",Ee=this,Te=new FileReader;Te.onload=function(Fe){for(var Ie=new Uint8Array(Te.result),Oe=Ie.byteLength,Ue=0;Ue<Oe;Ue++)me+=String.fromCharCode(Ie[Ue]);E(me)},Te.readAsArrayBuffer(le)}:console.error("FileReader not support readAsBinaryString"),S.call(K,v)},d=function(){var _=function(S,K){S=S.split("."),K=K.split(".");for(var z=0;z<K.length;z++)if(S[z]!==K[z])return parseInt(S[z])>parseInt(K[z])?1:-1;return 0},v=function(S){if(!S)return!1;var K=(S.match(/Chrome\/([.\d]+)/)||[])[1],z=(S.match(/QBCore\/([.\d]+)/)||[])[1],le=(S.match(/QQBrowser\/([.\d]+)/)||[])[1],me=K&&_(K,"53.0.2785.116")<0&&z&&_(z,"3.53.991.400")<0&&le&&_(le,"9.0.2524.400")<=0||!1;return me};return v(typeof navigator!="undefined"&&navigator.userAgent)}(),f=function(v,E,S,K,z){var le;if(v.slice?le=v.slice(E,S):v.mozSlice?le=v.mozSlice(E,S):v.webkitSlice&&(le=v.webkitSlice(E,S)),K&&d){var me=new FileReader;me.onload=function(Ee){le=null,z(new Blob([me.result]))},me.readAsArrayBuffer(le)}else z(le)},m=function(v,E,S,K){S=S||u,v?typeof E=="string"?S(be.md5(E,!0)):Blob&&E instanceof Blob?be.getFileMd5(E,function(z,le){S(le)},K):S():S()},g=1024*1024,M=function(v,E,S){var K=v.size,z=0,le=H.getCtx(),me=function Ee(Te){if(Te>=K){var Fe=le.digest("hex");E(null,Fe);return}var Ie=Math.min(K,Te+g);be.fileSlice(v,Te,Ie,!1,function(Oe){a(Oe,function(Ue){Oe=null,le=le.update(Ue,!0),z+=Ue.length,Ue=null,S&&S({loaded:z,total:K,percent:Math.round(z/K*1e4)/1e4}),Ee(Te+g)})})};me(0)};function q(_){return pe(_,function(v){return b(v)==="object"&&v!==null?q(v):v})}function te(_,v,E){return _&&v in _?_[v]:E}function X(_,v){return Y(v,function(E,S){_[S]=v[S]}),_}function W(_){return _ instanceof Array}function G(_,v){for(var E=!1,S=0;S<_.length;S++)if(v===_[S]){E=!0;break}return E}function J(_){return W(_)?_:[_]}function Y(_,v){for(var E in _)_.hasOwnProperty(E)&&v(_[E],E)}function pe(_,v){var E=W(_)?[]:{};for(var S in _)_.hasOwnProperty(S)&&(E[S]=v(_[S],S));return E}function ee(_,v){var E=W(_),S=E?[]:{};for(var K in _)_.hasOwnProperty(K)&&v(_[K],K)&&(E?S.push(_[K]):S[K]=_[K]);return S}var V=function(v){var E,S,K,z="";for(E=0,S=v.length/2;E<S;E++)K=parseInt(v[E*2]+v[E*2+1],16),z+=String.fromCharCode(K);return btoa(z)},ue=function(){var v=function(){return((1+Math.random())*65536|0).toString(16).substring(1)};return v()+v()+"-"+v()+"-"+v()+"-"+v()+"-"+v()+v()+v()},$=function(v,E){var S=E.Bucket,K=E.Region,z=E.Key,le=this.options.Domain,me=!le||typeof le=="string"&&le.indexOf("{Bucket}")>-1,Ee=!le||typeof le=="string"&&le.indexOf("{Region}")>-1;if(v.indexOf("Bucket")>-1||v==="deleteMultipleObject"||v==="multipartList"||v==="listObjectVersions"){if(me&&!S)return"Bucket";if(Ee&&!K)return"Region"}else if(v.indexOf("Object")>-1||v.indexOf("multipart")>-1||v==="sliceUploadFile"||v==="abortUploadTask"||v==="uploadFile"){if(me&&!S)return"Bucket";if(Ee&&!K)return"Region";if(!z)return"Key"}return!1},Z=function(v,E){if(E=X({},E),v!=="getAuth"&&v!=="getV4Auth"&&v!=="getObjectUrl"){var S=E.Headers||{};if(E&&b(E)==="object"){(function(){for(var z in E)E.hasOwnProperty(z)&&z.indexOf("x-cos-")>-1&&(S[z]=E[z])})();var K={"x-cos-mfa":"MFA","Content-MD5":"ContentMD5","Content-Length":"ContentLength","Content-Type":"ContentType",Expect:"Expect",Expires:"Expires","Cache-Control":"CacheControl","Content-Disposition":"ContentDisposition","Content-Encoding":"ContentEncoding",Range:"Range","If-Modified-Since":"IfModifiedSince","If-Unmodified-Since":"IfUnmodifiedSince","If-Match":"IfMatch","If-None-Match":"IfNoneMatch","x-cos-copy-source":"CopySource","x-cos-copy-source-Range":"CopySourceRange","x-cos-metadata-directive":"MetadataDirective","x-cos-copy-source-If-Modified-Since":"CopySourceIfModifiedSince","x-cos-copy-source-If-Unmodified-Since":"CopySourceIfUnmodifiedSince","x-cos-copy-source-If-Match":"CopySourceIfMatch","x-cos-copy-source-If-None-Match":"CopySourceIfNoneMatch","x-cos-acl":"ACL","x-cos-grant-read":"GrantRead","x-cos-grant-write":"GrantWrite","x-cos-grant-full-control":"GrantFullControl","x-cos-grant-read-acp":"GrantReadAcp","x-cos-grant-write-acp":"GrantWriteAcp","x-cos-storage-class":"StorageClass","x-cos-traffic-limit":"TrafficLimit","x-cos-mime-limit":"MimeLimit","x-cos-server-side-encryption-customer-algorithm":"SSECustomerAlgorithm","x-cos-server-side-encryption-customer-key":"SSECustomerKey","x-cos-server-side-encryption-customer-key-MD5":"SSECustomerKeyMD5","x-cos-server-side-encryption":"ServerSideEncryption","x-cos-server-side-encryption-cos-kms-key-id":"SSEKMSKeyId","x-cos-server-side-encryption-context":"SSEContext","Pic-Operations":"PicOperations"};be.each(K,function(z,le){E[z]!==void 0&&(S[le]=E[z])}),E.Headers=c(S)}}return E},ce=function(v,E){return function(S,K){var z=this;typeof S=="function"&&(K=S,S={}),S=Z(v,S);var le;if(z.options.EnableReporter)if(S.calledBySdk==="sliceUploadFile"||S.calledBySdk==="sliceCopyFile")le=S.tracker&&S.tracker.generateSubTracker({apiName:v});else if(["uploadFile","uploadFiles"].includes(v))le=null;else{var me=0;S.Body&&(me=typeof S.Body=="string"?S.Body.length:S.Body.size||S.Body.byteLength||0);var Ee=z.options.UseAccelerate||typeof z.options.Domain=="string"&&z.options.Domain.includes("accelerate.");le=new L({Beacon:z.options.BeaconReporter,clsReporter:z.options.ClsReporter,bucket:S.Bucket,region:S.Region,apiName:v,realApi:v,accelerate:Ee,fileKey:S.Key,fileSize:me,deepTracker:z.options.DeepTracker,customId:z.options.CustomId,delay:z.options.TrackerDelay})}S.tracker=le;var Te=function(Se){return Se&&Se.headers&&(Se.headers["x-cos-request-id"]&&(Se.RequestId=Se.headers["x-cos-request-id"]),Se.headers["x-ci-request-id"]&&(Se.RequestId=Se.headers["x-ci-request-id"]),Se.headers["x-cos-version-id"]&&(Se.VersionId=Se.headers["x-cos-version-id"]),Se.headers["x-cos-delete-marker"]&&(Se.DeleteMarker=Se.headers["x-cos-delete-marker"])),Se},Fe=function(Se,Ve){le&&le.report(Se,Ve),K&&K(Te(Se),Te(Ve))},Ie=function(){if(v!=="getService"&&v!=="abortUploadTask"){var Se=$.call(z,v,S);if(Se)return"missing param "+Se;if(S.Region){if(z.options.CompatibilityMode){if(!/^([a-z\d-.]+)$/.test(S.Region))return"Region format error."}else{if(S.Region.indexOf("cos.")>-1)return'param Region should not be start with "cos."';if(!/^([a-z\d-]+)$/.test(S.Region))return"Region format error."}!z.options.CompatibilityMode&&S.Region.indexOf("-")===-1&&S.Region!=="yfb"&&S.Region!=="default"&&S.Region!=="accelerate"&&console.warn("warning: param Region format error, find help here: https://cloud.tencent.com/document/product/436/6224")}if(S.Bucket){if(!/^([a-z\d-]+)-(\d+)$/.test(S.Bucket))if(S.AppId)S.Bucket=S.Bucket+"-"+S.AppId;else if(z.options.AppId)S.Bucket=S.Bucket+"-"+z.options.AppId;else return'Bucket should format as "test-1250000000".';S.AppId&&(console.warn('warning: AppId has been deprecated, Please put it at the end of parameter Bucket(E.g Bucket:"test-1250000000" ).'),delete S.AppId)}!z.options.UseRawKey&&S.Key&&S.Key.substr(0,1)==="/"&&(S.Key=S.Key.substr(1))}},Oe=Ie(),Ue=["getAuth","getObjectUrl"].includes(v);if(typeof Promise=="function"&&!Ue&&!K)return new Promise(function(qe,Se){if(K=function(We,Xe){We?Se(We):qe(Xe)},Oe)return Fe(be.error(new Error(Oe)));E.call(z,S,Fe)});if(Oe)return Fe(be.error(new Error(Oe)));var Ke=E.call(z,S,Fe);if(Ue)return Ke}},ie=function(v,E){var S=this,K=0,z=0,le=Date.now(),me,Ee;function Te(){if(Ee=0,E&&typeof E=="function"){me=Date.now();var Fe=Math.max(0,Math.round((z-K)/((me-le)/1e3)*100)/100)||0,Ie;z===0&&v===0?Ie=1:Ie=Math.floor(z/v*100)/100||0,le=me,K=z;try{E({loaded:z,total:v,speed:Fe,percent:Ie})}catch(Oe){}}}return function(Fe,Ie){if(Fe&&(z=Fe.loaded,v=Fe.total),Ie)clearTimeout(Ee),Te();else{if(Ee)return;Ee=setTimeout(Te,S.options.ProgressInterval)}}},se=function(v,E,S){var K;if(typeof E.Body=="string"?E.Body=new Blob([E.Body],{type:"text/plain"}):E.Body instanceof ArrayBuffer&&(E.Body=new Blob([E.Body])),E.Body&&(E.Body instanceof Blob||E.Body.toString()==="[object File]"||E.Body.toString()==="[object Blob]"))K=E.Body.size;else{S(be.error(new Error("params body format error, Only allow File|Blob|String.")));return}E.ContentLength=K,S(null,K)},ge=function(v){return Date.now()+(v||0)},fe=function(v,E){var S=v;return v.message=v.message||null,typeof E=="string"?(v.error=E,v.message=E):b(E)==="object"&&E!==null&&(X(v,E),(E.code||E.name)&&(v.code=E.code||E.name),E.message&&(v.message=E.message),E.stack&&(v.stack=E.stack)),typeof Object.defineProperty=="function"&&(Object.defineProperty(v,"name",{writable:!0,enumerable:!1}),Object.defineProperty(v,"message",{enumerable:!0})),v.name=E&&E.name||v.name||v.code||"Error",v.code||(v.code=v.name),v.error||(v.error=q(S)),v},De=function(){return(typeof globalThis=="undefined"?"undefined":b(globalThis))==="object"&&(globalThis.constructor.name==="DedicatedWorkerGlobalScope"||globalThis.FileReaderSync)},Ae=function(){return(typeof window=="undefined"?"undefined":b(window))!=="object"&&(typeof P=="undefined"?"undefined":b(P))==="object"&&!0&&!De()},ve=function(v){return/^https?:\/\/([^/]+\.)?ci\.[^/]+/.test(v)},je=function(){if((typeof navigator=="undefined"?"undefined":b(navigator))!=="object")return!1;var _=navigator.userAgent,v=!!_.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);return v}(),xe=function(){return(typeof navigator=="undefined"?"undefined":b(navigator))!=="object"?!1:/\sQQ/i.test(navigator.userAgent)}(),Ne=function(v,E){var S=B.encode(v);return E&&(S=S.replaceAll("+","-").replaceAll("/","_").replaceAll("=","")),S},ze=function(v){var E=v.split("/"),S=[],K=l(E),z;try{for(K.s();!(z=K.n()).done;){var le=z.value;le===".."?S.length&&S.pop():le.length&&le!=="."&&S.push(le)}}catch(me){K.e(me)}finally{K.f()}return"/"+S.join("/")},be={noop:u,formatParams:Z,apiWrapper:ce,xml2json:k,json2xml:N,md5:H,clearKey:c,fileSlice:f,getBodyMd5:m,getFileMd5:M,b64:V,extend:X,isArray:W,isInArray:G,makeArray:J,each:Y,map:pe,filter:ee,clone:q,attr:te,uuid:ue,camSafeUrlEncode:T,throttleOnProgress:ie,getFileSize:se,getSkewTime:ge,error:fe,obj2str:j,getAuth:x,parseSelectPayload:A,getSourceParams:i,isBrowser:!0,isNode:Ae,isCIHost:ve,isIOS_QQ:je&&xe,encodeBase64:Ne,simplifyPath:ze};re.exports=be}).call(this,w("./node_modules/process/browser.js"))}})})}}]);