// Aliyun OSS SDK for JavaScript v6.13.0 // Copyright Aliyun.com, Inc. or its affiliates. All Rights Reserved. // License at https://github.com/ali-sdk/ali-oss/blob/master/LICENSE !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.OSS=e()}}(function(){var define,module,exports;return function(){function e(t,r,n){function i(s,a){if(!r[s]){if(!t[s]){var u="function"==typeof require&&require;if(!a&&u)return u(s,!0);if(o)return o(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var l=r[s]={exports:{}};t[s][0].call(l.exports,function(e){return i(t[s][1][e]||e)},l,l.exports,e,t,r,n)}return r[s].exports}for(var o="function"==typeof require&&require,s=0;s1e4)){e.next=36;break}return this._setOptions=Date.now(),e.next=35,I.call(this);case 35:return e.abrupt("return",this.request(t));case 36:throw s;case 37:if(!t.xmlResponse){e.next=42;break}return e.next=40,this.parseXML(n.data);case 40:a=e.sent,n.data=a;case 42:return e.abrupt("return",n);case 43:case"end":return e.stop()}},e,this,[[3,10]])})),u.apply(this,arguments)}var c=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.symbol"),e("core-js/modules/es.symbol.description"),e("core-js/modules/es.array.concat"),e("core-js/modules/es.array.includes"),e("core-js/modules/es.array.index-of"),e("core-js/modules/es.array.slice"),e("core-js/modules/es.function.name"),e("core-js/modules/es.object.assign"),e("core-js/modules/es.object.to-string"),e("core-js/modules/es.promise"),e("core-js/modules/es.regexp.exec"),e("core-js/modules/es.regexp.to-string"),e("core-js/modules/es.string.replace"),e("core-js/modules/es.string.split"),e("core-js/modules/es.string.starts-with");var l=c(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var f=c(e("@babel/runtime/helpers/asyncToGenerator")),p=e("debug")("ali-oss"),d=e("xml2js"),h=e("agentkeepalive"),m=e("merge-descriptors"),y=e("platform"),b=e("utility"),g=e("urllib"),v=e("./version"),w=e("bowser"),x=e("../common/signUtils"),j=e("../common/client/initOptions"),_=e("../common/utils/createRequest"),E=_.createRequest,T=e("../common/utils/encoder"),S=T.encoder,O=e("../common/client/getReqUrl"),k=O.getReqUrl,A=e("../common/utils/setSTSToken"),I=A.setSTSToken,N=e("../common/utils/retry"),D=N.retry,C=new h;t.exports=s,s.initOptions=function(e){e.stsToken||console.warn("Please use STS Token for safety, see more details at https://help.aliyun.com/document_detail/32077.html");var t=Object.assign({secure:o(),useFetch:!1},e);return j(t)};var R=s.prototype;R.debug=p,m(R,e("./object")),m(R,e("../common/bucket/getBucketWebsite")),m(R,e("../common/bucket/putBucketWebsite")),m(R,e("../common/bucket/deleteBucketWebsite")),m(R,e("../common/bucket/getBucketLifecycle")),m(R,e("../common/bucket/putBucketLifecycle")),m(R,e("../common/bucket/deleteBucketLifecycle")),m(R,e("../common/bucket/putBucketVersioning")),m(R,e("../common/bucket/getBucketVersioning")),m(R,e("../common/bucket/getBucketInventory")),m(R,e("../common/bucket/deleteBucketInventory")),m(R,e("../common/bucket/listBucketInventory")),m(R,e("../common/bucket/putBucketInventory")),m(R,e("../common/bucket/abortBucketWorm")),m(R,e("../common/bucket/completeBucketWorm")),m(R,e("../common/bucket/extendBucketWorm")),m(R,e("../common/bucket/getBucketWorm")),m(R,e("../common/bucket/initiateBucketWorm")),m(R,e("./managed-upload")),m(R,e("../common/multipart")),m(R,e("../common/parallel")),R.signature=function(e){return this.debug("authorization stringToSign: %s",e,"info"),x.computeSignature(this.options.accessKeySecret,e,this.options.headerEncoding)},R._getReqUrl=k,R.authorization=function(e,t,r,n){var i=x.buildCanonicalString(e.toUpperCase(),t,{headers:n,parameters:r});return x.authorization(this.options.accessKeyId,this.options.accessKeySecret,i,this.options.headerEncoding)},R.request=function(){var e=(0,f.default)(l.default.mark(function e(t){var r,n=this;return l.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=!t.stream||t.stream.readable,this.options.retryMax&&r?this.request=D(a.bind(this),this.options.retryMax,{errorHandler:function(e){return!!function(e){var t=[-1,-2].includes(e.status),r=n.options.requestErrorRetryHandle||function(){return!0};return t&&r(e)}(e)}}):this.request=a.bind(this),e.next=4,this.request(t);case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}(),R._getResource=function(e){var t="/";return e.bucket&&(t+="".concat(e.bucket,"/")),e.object&&(t+=S(e.object,this.options.headerEncoding)),t},R._escape=function(e){return b.encodeURIComponent(e).replace(/%2F/g,"/")},R._getUserAgent=function(){var e=n&&n.browser?"js":"nodejs",t="aliyun-sdk-".concat(e,"/").concat(v.version),r=y.description;return!r&&n&&(r="Node.js ".concat(n.version.slice(1)," on ").concat(n.platform," ").concat(n.arch)),this._checkUserAgent("".concat(t," ").concat(r))},R._checkUserAgent=function(e){return e.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta")},R.checkBrowserAndVersion=function(e,t){return w.name===e&&w.version.split(".")[0]===t},R.parseXML=function(e){return new Promise(function(t,n){r.isBuffer(e)&&(e=e.toString()),d.parseString(e,{explicitRoot:!1,explicitArray:!1},function(e,r){e?n(e):t(r)})})},R.requestError=function(){function e(e){return t.apply(this,arguments)}var t=(0,f.default)(l.default.mark(function e(t){var r,n,i,o;return l.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=null,t.data&&t.data.length){e.next=5;break}-1===t.status||-2===t.status?(r=new Error(t.message),r.name=t.name,r.status=t.status,r.code=t.name):(404===t.status?(r=new Error("Object not exists"),r.name="NoSuchKeyError",r.status=404,r.code="NoSuchKey"):412===t.status?(r=new Error("Pre condition failed"),r.name="PreconditionFailedError",r.status=412,r.code="PreconditionFailed"):(r=new Error("Unknow error, status: ".concat(t.status)),r.name="UnknowError",r.status=t.status),r.requestId=t.headers["x-oss-request-id"],r.host=""),e.next=32;break;case 5:return n=String(t.data),this.debug("request response error data: %s",n,"error"),e.prev=7,e.next=10,this.parseXML(n);case 10:if(e.t0=e.sent,e.t0){e.next=13;break}e.t0={};case 13:i=e.t0,e.next=23;break;case 16:return e.prev=16,e.t1=e.catch(7),this.debug(n,"error"),e.t1.message+="\nraw xml: ".concat(n),e.t1.status=t.status,e.t1.requestId=t.headers["x-oss-request-id"],e.abrupt("return",e.t1);case 23:o=i.Message||"unknow request error, status: ".concat(t.status),i.Condition&&(o+=" (condition: ".concat(i.Condition,")")),r=new Error(o),r.name=i.Code?"".concat(i.Code,"Error"):"UnknowError",r.status=t.status,r.code=i.Code,r.requestId=i.RequestId,r.hostId=i.HostId,r.serverTime=i.ServerTime;case 32:return this.debug("generate error %j",r,"error"),e.abrupt("return",r);case 34:case"end":return e.stop()}},e,this,[[7,16]])}));return e}()}).call(this,{isBuffer:e("../../node_modules/is-buffer/index.js")},e("_process"))},{"../../node_modules/is-buffer/index.js":308,"../common/bucket/abortBucketWorm":6,"../common/bucket/completeBucketWorm":7,"../common/bucket/deleteBucketInventory":8,"../common/bucket/deleteBucketLifecycle":9,"../common/bucket/deleteBucketWebsite":10,"../common/bucket/extendBucketWorm":11,"../common/bucket/getBucketInventory":12,"../common/bucket/getBucketLifecycle":13,"../common/bucket/getBucketVersioning":14,"../common/bucket/getBucketWebsite":15,"../common/bucket/getBucketWorm":16,"../common/bucket/initiateBucketWorm":17,"../common/bucket/listBucketInventory":18,"../common/bucket/putBucketInventory":19,"../common/bucket/putBucketLifecycle":20,"../common/bucket/putBucketVersioning":21,"../common/bucket/putBucketWebsite":22,"../common/client/getReqUrl":24,"../common/client/initOptions":25,"../common/multipart":28,"../common/parallel":46,"../common/signUtils":47,"../common/utils/createRequest":52,"../common/utils/encoder":55,"../common/utils/retry":67,"../common/utils/setSTSToken":69,"./managed-upload":3,"./object":4,"./version":5,"@babel/runtime/helpers/asyncToGenerator":70,"@babel/runtime/helpers/interopRequireDefault":71,"@babel/runtime/regenerator":74,_process:393,agentkeepalive:75,bowser:77,"core-js/modules/es.array.concat":234,"core-js/modules/es.array.includes":240,"core-js/modules/es.array.index-of":241,"core-js/modules/es.array.slice":246,"core-js/modules/es.function.name":249,"core-js/modules/es.object.assign":251,"core-js/modules/es.object.to-string":254,"core-js/modules/es.promise":255,"core-js/modules/es.regexp.exec":256,"core-js/modules/es.regexp.to-string":257,"core-js/modules/es.string.replace":261,"core-js/modules/es.string.split":263,"core-js/modules/es.string.starts-with":264,"core-js/modules/es.symbol":267,"core-js/modules/es.symbol.description":266,debug:391,"merge-descriptors":311,platform:317,"regenerator-runtime/runtime":337,urllib:397,utility:396,xml2js:352}],3:[function(e,t,r){(function(t){"use strict";function n(e,t){if(!(this instanceof n))return new n(e,t);x.call(this,t),this.file=e,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}var i=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.array.concat"),e("core-js/modules/es.array.filter"),e("core-js/modules/es.array.find"),e("core-js/modules/es.array.from"),e("core-js/modules/es.array.index-of"),e("core-js/modules/es.array.iterator"),e("core-js/modules/es.array.map"),e("core-js/modules/es.array.slice"),e("core-js/modules/es.array.splice"),e("core-js/modules/es.array-buffer.slice"),e("core-js/modules/es.function.name"),e("core-js/modules/es.object.to-string"),e("core-js/modules/es.promise"),e("core-js/modules/es.regexp.to-string"),e("core-js/modules/es.string.iterator"),e("core-js/modules/es.typed-array.uint8-array"),e("core-js/modules/es.typed-array.copy-within"),e("core-js/modules/es.typed-array.every"),e("core-js/modules/es.typed-array.fill"),e("core-js/modules/es.typed-array.filter"),e("core-js/modules/es.typed-array.find"),e("core-js/modules/es.typed-array.find-index"),e("core-js/modules/es.typed-array.for-each"),e("core-js/modules/es.typed-array.includes"),e("core-js/modules/es.typed-array.index-of"),e("core-js/modules/es.typed-array.iterator"),e("core-js/modules/es.typed-array.join"),e("core-js/modules/es.typed-array.last-index-of"),e("core-js/modules/es.typed-array.map"),e("core-js/modules/es.typed-array.reduce"),e("core-js/modules/es.typed-array.reduce-right"),e("core-js/modules/es.typed-array.reverse"),e("core-js/modules/es.typed-array.set"),e("core-js/modules/es.typed-array.slice"),e("core-js/modules/es.typed-array.some"),e("core-js/modules/es.typed-array.sort"),e("core-js/modules/es.typed-array.subarray"),e("core-js/modules/es.typed-array.to-locale-string"),e("core-js/modules/es.typed-array.to-string");var o=i(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var s=i(e("@babel/runtime/helpers/asyncToGenerator")),a=e("util"),u=e("path"),c=e("mime"),l=e("copy-to"),f=e("../common/utils/isBlob"),p=f.isBlob,d=e("../common/utils/isFile"),h=d.isFile,m=e("../common/utils/isArray"),y=m.isArray,b=e("../common/utils/isBuffer"),g=b.isBuffer,v=r;v.multipartUpload=function(){function e(e,r){return t.apply(this,arguments)}var t=(0,s.default)(o.default.mark(function e(t,r){var n,i,s,a,l,f,d,m,y,b=arguments;return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=b.length>2&&void 0!==b[2]?b[2]:{},this.resetCancelFlag(),!n.checkpoint||!n.checkpoint.uploadId){e.next=7;break}return r&&h(r)&&(n.checkpoint.file=r),e.next=6,this._resumeMultipart(n.checkpoint,n);case 6:return e.abrupt("return",e.sent);case 7:return i=102400,n.mime||(h(r)?n.mime=c.getType(u.extname(r.name)):p(r)?n.mime=r.type:g(r)?n.mime="":n.mime=c.getType(u.extname(r))),n.headers=n.headers||{},this._convertMetaToHeaders(n.meta,n.headers),e.next=13,this._getFileSize(r);case 13:if(!((s=e.sent)0&&l(f).to(d),h=this._divideParts(a,u),m=h.length,b=!1,g=function(e,n){return new Promise(function(){var a=(0,s.default)(o.default.mark(function s(a,u){var d,g,v,w,x,j;return o.default.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(o.prev=0,e.isCancel()){o.next=33;break}return d=h[n-1],g=e._createStream(i,d.start,d.end),v={stream:g,size:d.end-d.start},y(e.multipartUploadStreams)?e.multipartUploadStreams.push(g):e.multipartUploadStreams=[g],w=function(){g.destroyed||g.destroy();var t=e.multipartUploadStreams.indexOf(g);-1!==t&&e.multipartUploadStreams.splice(t,1)},g.on("close",w),g.on("end",w),g.on("error",w),o.prev=10,o.next=13,e._uploadPart(p,c,n,v);case 13:x=o.sent,o.next=22;break;case 16:if(o.prev=16,o.t0=o.catch(10),w(),404!==o.t0.status){o.next=21;break}throw e._makeAbortEvent();case 21:throw o.t0;case 22:if(e.isCancel()||b){o.next=30;break}if(t.doneParts.push({number:n,etag:x.res.headers.etag}),!r.progress){o.next=27;break}return o.next=27,r.progress(f.length/m,t,x.res);case 27:a({number:n,etag:x.res.headers.etag}),o.next=31;break;case 30:a();case 31:o.next=34;break;case 33:a();case 34:o.next=45;break;case 36:o.prev=36,o.t1=o.catch(0),j=new Error,j.name=o.t1.name,j.message=o.t1.message,j.stack=o.t1.stack,j.partNum=n,l(o.t1).to(j),u(j);case 45:case"end":return o.stop()}},s,null,[[0,36],[10,16]])}));return function(e,t){return a.apply(this,arguments)}}())},v=Array.from(new Array(m),function(e,t){return t+1}),w=d.map(function(e){return e.number}),x=v.filter(function(e){return w.indexOf(e)<0}),j=5,_=r.parallel||j,e.next=17,this._parallel(x,_,function(e){return new Promise(function(t,r){g(n,e).then(function(e){e&&d.push(e),t()}).catch(function(e){r(e)})})});case 17:if(E=e.sent,b=!0,!(T=E.find(function(e){return"abort"===e.name}))){e.next=22;break}throw T;case 22:if(!this.isCancel()){e.next=25;break}throw g=null,this._makeCancelEvent();case 25:if(!(E&&E.length>0)){e.next=28;break}throw E[0].message="Failed to upload some parts with error: ".concat(E[0].toString()," part_num: ").concat(E[0].partNum),E[0];case 28:return e.next=30,this.completeMultipartUpload(p,c,d,r);case 30:return e.abrupt("return",e.sent);case 31:case"end":return e.stop()}},e,this)}));return e}(),v._getFileSize=function(){function e(e){return t.apply(this,arguments)}var t=(0,s.default)(o.default.mark(function e(t){return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!g(t)){e.next=4;break}return e.abrupt("return",t.length);case 4:if(!p(t)&&!h(t)){e.next=6;break}return e.abrupt("return",t.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return e.stop()}},e)}));return e}();var w=e("stream"),x=w.Readable;a.inherits(n,x),n.prototype.readFileAndPush=function(e){if(this.fileBuffer)for(var t=!0;t&&this.fileBuffer&&this.startthis.fileBuffer.length?this.fileBuffer.length:n,this.start=n,t=this.push(this.fileBuffer.slice(r,n))}},n.prototype._read=function(e){if(this.file&&this.start>=this.file.size||this.fileBuffer&&this.start>=this.fileBuffer.length||this.finish||0===this.start&&!this.file)return this.finish||(this.fileBuffer=null,this.finish=!0),void this.push(null);e=e||16384;var r=this;this.reader.onload=function(n){r.fileBuffer=t.from(new Uint8Array(n.target.result)),r.file=null,r.readFileAndPush(e)},0===this.start?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(e)},v._createStream=function(e,t,r){if(p(e)||h(e))return new n(e.slice(t,r));if(g(e)){var i=e.subarray(t,r);return new x({read:function(){this.push(i),this.push(null)}})}throw new Error("_createStream requires Buffer/File/Blob.")},v._getPartSize=function(e,t){t||(t=1048576);var r=Math.ceil(e/1e4);return t1&&void 0!==l[1]?l[1]:{},n=t["continuation-token"]||t.continuationToken,delete t["continuation-token"],delete t.continuationToken,n&&(r.subres=Object.assign({"continuation-token":n},r.subres)),o=this._objectRequestParams("GET","",r),o.query=Object.assign({"list-type":2},t),o.xmlResponse=!0,o.successStatuses=[200],e.next=11,this.request(o);case 11:return s=e.sent,a=s.data.Contents,u=this,a&&(Array.isArray(a)||(a=[a]),a=a.map(function(e){return{name:e.Key,url:u._objectUrl(e.Key),lastModified:e.LastModified,etag:e.ETag,type:e.Type,size:Number(e.Size),storageClass:e.StorageClass,owner:e.Owner?{id:e.Owner.ID,displayName:e.Owner.DisplayName}:null}})),c=s.data.CommonPrefixes||null,c&&(Array.isArray(c)||(c=[c]),c=c.map(function(e){return e.Prefix})),e.abrupt("return",{res:s.res,objects:a,prefixes:c,isTruncated:"true"===s.data.IsTruncated,keyCount:+s.data.KeyCount,continuationToken:s.data.ContinuationToken||null,nextContinuationToken:s.data.NextContinuationToken||null});case 18:case"end":return e.stop()}},e,this)}));return e}(),v.restore=function(){function e(e,r){return t.apply(this,arguments)}var t=(0,o.default)(i.default.mark(function e(t,r){var n,o;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=r||{},r.subres=Object.assign({restore:""},r.subres),r.versionId&&(r.subres.versionId=r.versionId),n=this._objectRequestParams("POST",t,r),n.successStatuses=[202],e.next=7,this.request(n);case 7:return o=e.sent,e.abrupt("return",{res:o.res});case 9:case"end":return e.stop()}},e,this)}));return e}(),v._objectUrl=function(e){return this._getReqUrl({bucket:this.options.bucket,object:e})},v._objectRequestParams=function(e,t,r){if(!this.options.bucket&&!this.options.cname)throw new Error("Please create a bucket first");r=r||{},t=this._objectName(t);var n={object:t,bucket:this.options.bucket,method:e,subres:r&&r.subres,timeout:r&&r.timeout,ctx:r&&r.ctx};return r.headers&&(n.headers={},a(r.headers).to(n.headers)),n},v._objectName=function(e){return e.replace(/^\/+/,"")},v._convertMetaToHeaders=function(e,t){e&&Object.keys(e).forEach(function(r){t["x-oss-meta-".concat(r)]=e[r]})},v._deleteFileSafe=function(e){var t=this;return new Promise(function(r){s.exists(e,function(n){n?s.unlink(e,function(n){n&&t.debug("unlink %j error: %s",e,n,"error"),r()}):r()})})},v.get=function(){function e(e,r){return t.apply(this,arguments)}var t=(0,o.default)(i.default.mark(function e(t,r){var n,o,a,u,c,f,p=arguments;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=p.length>2&&void 0!==p[2]?p[2]:{},o=null,a=!1,l.writableStream(r)?o=r:l.string(r)?(o=s.createWriteStream(r),a=!0):n=r,n=n||{},u=null===n.responseCacheControl?"":"no-cache",n.subres=Object.assign(u?{"response-cache-control":u}:{},n.subres),n.versionId&&(n.subres.versionId=n.versionId),n.process&&(n.subres["x-oss-process"]=n.process),e.prev=9,f=this._objectRequestParams("GET",t,n),f.writeStream=o,f.successStatuses=[200,206,304],e.next=15,this.request(f);case 15:c=e.sent,a&&o.destroy(),e.next=26;break;case 19:if(e.prev=19,e.t0=e.catch(9),!a){e.next=25;break}return o.destroy(),e.next=25,this._deleteFileSafe(r);case 25:throw e.t0;case 26:return e.abrupt("return",{res:c.res,content:c.data});case 27:case"end":return e.stop()}},e,this,[[9,19]])}));return e}()},{"../common/callback":23,"../common/image":26,"../common/object/copyObject":29,"../common/object/delete":30,"../common/object/deleteMulti":31,"../common/object/deleteObjectTagging":32,"../common/object/generateObjectUrl":33,"../common/object/get":34,"../common/object/getACL":35,"../common/object/getBucketVersions":36,"../common/object/getObjectMeta":37,"../common/object/getObjectTagging":38,"../common/object/getObjectUrl":39,"../common/object/getSymlink":40,"../common/object/head":41,"../common/object/putACL":42,"../common/object/putObjectTagging":43,"../common/object/putSymlink":44,"../common/object/signatureUrl":45,"../common/utils/isBlob":60,"../common/utils/isBuffer":61,"../common/utils/isFile":62,"@babel/runtime/helpers/asyncToGenerator":70,"@babel/runtime/helpers/interopRequireDefault":71,"@babel/runtime/regenerator":74,"copy-to":101,"core-js/modules/es.array.for-each":238,"core-js/modules/es.array.map":245,"core-js/modules/es.function.name":249,"core-js/modules/es.number.constructor":250,"core-js/modules/es.object.assign":251,"core-js/modules/es.object.keys":253,"core-js/modules/es.object.to-string":254,"core-js/modules/es.promise":255,"core-js/modules/es.regexp.exec":256,"core-js/modules/es.regexp.to-string":257,"core-js/modules/es.string.replace":261,"core-js/modules/web.dom-collections.for-each":292,fs:78,"is-type-of":392,"merge-descriptors":311,mime:313,path:316,"regenerator-runtime/runtime":337}],5:[function(e,t,r){"use strict" ;r.version="6.13.0"},{}],6:[function(e,t,r){"use strict";function n(e,t){return i.apply(this,arguments)}function i(){return i=(0,a.default)(s.default.mark(function e(t,r){var n,i;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return u.checkBucketName(t),n=this._bucketRequestParams("DELETE",t,"worm",r),e.next=4,this.request(n);case 4:return i=e.sent,e.abrupt("return",{res:i.res,status:i.status});case 6:case"end":return e.stop()}},e,this)})),i.apply(this,arguments)}var o=e("@babel/runtime/helpers/interopRequireDefault"),s=o(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var a=o(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(r,"__esModule",{value:!0}),r.abortBucketWorm=void 0;var u=e("../utils/checkBucketName");r.abortBucketWorm=n},{"../utils/checkBucketName":48,"@babel/runtime/helpers/asyncToGenerator":70,"@babel/runtime/helpers/interopRequireDefault":71,"@babel/runtime/regenerator":74,"regenerator-runtime/runtime":337}],7:[function(e,t,r){"use strict";function n(e,t,r){return i.apply(this,arguments)}function i(){return i=(0,a.default)(s.default.mark(function e(t,r,n){var i,o;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return u.checkBucketName(t),i=this._bucketRequestParams("POST",t,{wormId:r},n),e.next=4,this.request(i);case 4:return o=e.sent,e.abrupt("return",{res:o.res,status:o.status});case 6:case"end":return e.stop()}},e,this)})),i.apply(this,arguments)}var o=e("@babel/runtime/helpers/interopRequireDefault"),s=o(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var a=o(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(r,"__esModule",{value:!0}),r.completeBucketWorm=void 0;var u=e("../utils/checkBucketName");r.completeBucketWorm=n},{"../utils/checkBucketName":48,"@babel/runtime/helpers/asyncToGenerator":70,"@babel/runtime/helpers/interopRequireDefault":71,"@babel/runtime/regenerator":74,"regenerator-runtime/runtime":337}],8:[function(e,t,r){"use strict";function n(e,t){return i.apply(this,arguments)}function i(){return i=(0,a.default)(s.default.mark(function e(t,r){var n,i,o,a,c=arguments;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=c.length>2&&void 0!==c[2]?c[2]:{},i=Object.assign({inventory:"",inventoryId:r},n.subres),u.checkBucketName(t),o=this._bucketRequestParams("DELETE",t,i,n),o.successStatuses=[204],e.next=7,this.request(o);case 7:return a=e.sent,e.abrupt("return",{status:a.status,res:a.res});case 9:case"end":return e.stop()}},e,this)})),i.apply(this,arguments)}var o=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.object.assign");var s=o(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var a=o(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(r,"__esModule",{value:!0}),r.deleteBucketInventory=void 0;var u=e("../utils/checkBucketName");r.deleteBucketInventory=n},{"../utils/checkBucketName":48,"@babel/runtime/helpers/asyncToGenerator":70,"@babel/runtime/helpers/interopRequireDefault":71,"@babel/runtime/regenerator":74,"core-js/modules/es.object.assign":251,"regenerator-runtime/runtime":337}],9:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var o=n(e("@babel/runtime/helpers/asyncToGenerator")),s=e("../utils/checkBucketName"),a=s.checkBucketName;r.deleteBucketLifecycle=function(){function e(e,r){return t.apply(this,arguments)}var t=(0,o.default)(i.default.mark(function e(t,r){var n,o;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a(t),n=this._bucketRequestParams("DELETE",t,"lifecycle",r),n.successStatuses=[204],e.next=5,this.request(n);case 5:return o=e.sent,e.abrupt("return",{res:o.res});case 7:case"end":return e.stop()}},e,this)}));return e}()},{"../utils/checkBucketName":48,"@babel/runtime/helpers/asyncToGenerator":70,"@babel/runtime/helpers/interopRequireDefault":71,"@babel/runtime/regenerator":74,"regenerator-runtime/runtime":337}],10:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var o=n(e("@babel/runtime/helpers/asyncToGenerator")),s=e("../utils/checkBucketName"),a=s.checkBucketName;r.deleteBucketWebsite=function(){function e(e,r){return t.apply(this,arguments)}var t=(0,o.default)(i.default.mark(function e(t,r){var n,o;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a(t),n=this._bucketRequestParams("DELETE",t,"website",r),n.successStatuses=[204],e.next=5,this.request(n);case 5:return o=e.sent,e.abrupt("return",{res:o.res});case 7:case"end":return e.stop()}},e,this)}));return e}()},{"../utils/checkBucketName":48,"@babel/runtime/helpers/asyncToGenerator":70,"@babel/runtime/helpers/interopRequireDefault":71,"@babel/runtime/regenerator":74,"regenerator-runtime/runtime":337}],11:[function(e,t,r){"use strict";function n(e,t,r,n){return i.apply(this,arguments)}function i(){return i=(0,a.default)(s.default.mark(function e(t,r,n,i){var o,a,l;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return u.checkBucketName(t),o=this._bucketRequestParams("POST",t,{wormExtend:"",wormId:r},i),a={ExtendWormConfiguration:{RetentionPeriodInDays:n}},o.mime="xml",o.content=c.obj2xml(a,{headers:!0}),o.successStatuses=[200],e.next=8,this.request(o);case 8:return l=e.sent,e.abrupt("return",{res:l.res,status:l.status});case 10:case"end":return e.stop()}},e,this)})),i.apply(this,arguments)}var o=e("@babel/runtime/helpers/interopRequireDefault"),s=o(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var a=o(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(r,"__esModule",{value:!0}),r.extendBucketWorm=void 0;var u=e("../utils/checkBucketName"),c=e("../utils/obj2xml");r.extendBucketWorm=n},{"../utils/checkBucketName":48,"../utils/obj2xml":66,"@babel/runtime/helpers/asyncToGenerator":70,"@babel/runtime/helpers/interopRequireDefault":71,"@babel/runtime/regenerator":74,"regenerator-runtime/runtime":337}],12:[function(e,t,r){"use strict";function n(e,t){return i.apply(this,arguments)}function i(){return i=(0,a.default)(s.default.mark(function e(t,r){var n,i,o,a,l=arguments;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=l.length>2&&void 0!==l[2]?l[2]:{},i=Object.assign({inventory:"",inventoryId:r},n.subres),u.checkBucketName(t),o=this._bucketRequestParams("GET",t,i,n),o.successStatuses=[200],o.xmlResponse=!0,e.next=8,this.request(o);case 8:return a=e.sent,e.abrupt("return",{status:a.status,res:a.res,inventory:c.formatInventoryConfig(a.data)});case 10:case"end":return e.stop()}},e,this)})),i.apply(this,arguments)}var o=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.object.assign");var s=o(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var a=o(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(r,"__esModule",{value:!0}),r.getBucketInventory=void 0;var u=e("../utils/checkBucketName"),c=e("../utils/formatInventoryConfig");r.getBucketInventory=n},{"../utils/checkBucketName":48,"../utils/formatInventoryConfig":56,"@babel/runtime/helpers/asyncToGenerator":70,"@babel/runtime/helpers/interopRequireDefault":71,"@babel/runtime/regenerator":74,"core-js/modules/es.object.assign":251,"regenerator-runtime/runtime":337}],13:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.array.map");var i=n(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var o=n(e("@babel/runtime/helpers/asyncToGenerator")),s=e("../utils/checkBucketName"),a=s.checkBucketName,u=e("../utils/isArray"),c=u.isArray,l=e("../utils/formatObjKey"),f=l.formatObjKey;r.getBucketLifecycle=function(){function e(e,r){return t.apply(this,arguments)}var t=(0,o.default)(i.default.mark(function e(t,r){var n,o,s;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a(t),n=this._bucketRequestParams("GET",t,"lifecycle",r),n.successStatuses=[200],n.xmlResponse=!0,e.next=6,this.request(n);case 6:return o=e.sent,s=o.data.Rule||null,s&&(c(s)||(s=[s]),s=s.map(function(e){return e.ID&&(e.id=e.ID,delete e.ID),e.Tag&&!c(e.Tag)&&(e.Tag=[e.Tag]),f(e,"firstLowerCase")})),e.abrupt("return",{rules:s,res:o.res});case 10:case"end":return e.stop()}},e,this)}));return e}()},{"../utils/checkBucketName":48,"../utils/formatObjKey":57,"../utils/isArray":59,"@babel/runtime/helpers/asyncToGenerator":70,"@babel/runtime/helpers/interopRequireDefault":71,"@babel/runtime/regenerator":74,"core-js/modules/es.array.map":245,"regenerator-runtime/runtime":337}],14:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var o=n(e("@babel/runtime/helpers/asyncToGenerator")),s=e("../utils/checkBucketName"),a=s.checkBucketName;r.getBucketVersioning=function(){function e(e,r){return t.apply(this,arguments)}var t=(0,o.default)(i.default.mark(function e(t,r){var n,o,s;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a(t),n=this._bucketRequestParams("GET",t,"versioning",r),n.xmlResponse=!0,n.successStatuses=[200],e.next=6,this.request(n);case 6:return o=e.sent,s=o.data.Status,e.abrupt("return",{status:o.status,versionStatus:s,res:o.res});case 9:case"end":return e.stop()}},e,this)}));return e}()},{"../utils/checkBucketName":48,"@babel/runtime/helpers/asyncToGenerator":70,"@babel/runtime/helpers/interopRequireDefault":71,"@babel/runtime/regenerator":74,"regenerator-runtime/runtime":337}],15:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var o=n(e("@babel/runtime/helpers/asyncToGenerator")),s=e("../utils/checkBucketName"),a=s.checkBucketName,u=e("../utils/isObject"),c=u.isObject;r.getBucketWebsite=function(){function e(e,r){return t.apply(this,arguments)}var t=(0,o.default)(i.default.mark(function e(t,r){var n,o,s;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a(t),n=this._bucketRequestParams("GET",t,"website",r),n.successStatuses=[200],n.xmlResponse=!0,e.next=6,this.request(n);case 6:return o=e.sent,s=[],o.data.RoutingRules&&o.data.RoutingRules.RoutingRule&&(s=c(o.data.RoutingRules.RoutingRule)?[o.data.RoutingRules.RoutingRule]:o.data.RoutingRules.RoutingRule),e.abrupt("return",{index:o.data.IndexDocument&&o.data.IndexDocument.Suffix||"",supportSubDir:o.data.IndexDocument&&o.data.IndexDocument.SupportSubDir||"false",type:o.data.IndexDocument&&o.data.IndexDocument.Type,routingRules:s,error:o.data.ErrorDocument&&o.data.ErrorDocument.Key||null,res:o.res});case 10:case"end":return e.stop()}},e,this)}));return e}()},{"../utils/checkBucketName":48,"../utils/isObject":64,"@babel/runtime/helpers/asyncToGenerator":70,"@babel/runtime/helpers/interopRequireDefault":71,"@babel/runtime/regenerator":74,"regenerator-runtime/runtime":337}],16:[function(e,t,r){"use strict";function n(e,t){return i.apply(this,arguments)}function i(){return i=(0,a.default)(s.default.mark(function e(t,r){var n,i;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return u.checkBucketName(t),n=this._bucketRequestParams("GET",t,"worm",r),n.successStatuses=[200],n.xmlResponse=!0,e.next=6,this.request(n);case 6:return i=e.sent,c.dataFix(i.data,{lowerFirst:!0,rename:{RetentionPeriodInDays:"days"}}),e.abrupt("return",Object.assign(Object.assign({},i.data),{res:i.res,status:i.status}));case 9:case"end":return e.stop()}},e,this)})),i.apply(this,arguments)}var o=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.object.assign");var s=o(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var a=o(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(r,"__esModule",{value:!0}),r.getBucketWorm=void 0;var u=e("../utils/checkBucketName"),c=e("../utils/dataFix");r.getBucketWorm=n},{"../utils/checkBucketName":48,"../utils/dataFix":53,"@babel/runtime/helpers/asyncToGenerator":70,"@babel/runtime/helpers/interopRequireDefault":71,"@babel/runtime/regenerator":74,"core-js/modules/es.object.assign":251,"regenerator-runtime/runtime":337}],17:[function(e,t,r){"use strict";function n(e,t,r){return i.apply(this,arguments)}function i(){return i=(0,a.default)(s.default.mark(function e(t,r,n){var i,o,a;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return c.checkBucketName(t),i=this._bucketRequestParams("POST",t,"worm",n),o={InitiateWormConfiguration:{RetentionPeriodInDays:r}},i.mime="xml",i.content=u.obj2xml(o,{headers:!0}),i.successStatuses=[200],e.next=8,this.request(i);case 8:return a=e.sent,e.abrupt("return",{res:a.res,wormId:a.res.headers["x-oss-worm-id"],status:a.status});case 10:case"end":return e.stop()}},e,this)})),i.apply(this,arguments)}var o=e("@babel/runtime/helpers/interopRequireDefault"),s=o(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var a=o(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(r,"__esModule",{value:!0}),r.initiateBucketWorm=void 0;var u=e("../utils/obj2xml"),c=e("../utils/checkBucketName");r.initiateBucketWorm=n},{"../utils/checkBucketName":48,"../utils/obj2xml":66,"@babel/runtime/helpers/asyncToGenerator":70,"@babel/runtime/helpers/interopRequireDefault":71,"@babel/runtime/regenerator":74,"regenerator-runtime/runtime":337}],18:[function(e,t,r){"use strict";function n(e){return i.apply(this,arguments)}function i(){return i=(0,a.default)(s.default.mark(function e(t){var r,n,i,o,a,l,f,p,d=arguments;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=d.length>1&&void 0!==d[1]?d[1]:{},n=r.continuationToken,i=Object.assign({inventory:""},n&&{"continuation-token":n},r.subres),u.checkBucketName(t),o=this._bucketRequestParams("GET",t,i,r),o.successStatuses=[200],o.xmlResponse=!0,e.next=9,this.request(o);case 9:return a=e.sent,l=a.data,f=a.res,p=a.status,e.abrupt("return",{isTruncated:"true"===l.IsTruncated,nextContinuationToken:l.NextContinuationToken,inventoryList:c.formatInventoryConfig(l.InventoryConfiguration,!0),status:p,res:f});case 12:case"end":return e.stop()}},e,this)})),i.apply(this,arguments)}var o=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.object.assign");var s=o(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var a=o(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(r,"__esModule",{value:!0}),r.listBucketInventory=void 0;var u=e("../utils/checkBucketName"),c=e("../utils/formatInventoryConfig");r.listBucketInventory=n},{"../utils/checkBucketName":48,"../utils/formatInventoryConfig":56,"@babel/runtime/helpers/asyncToGenerator":70,"@babel/runtime/helpers/interopRequireDefault":71,"@babel/runtime/regenerator":74,"core-js/modules/es.object.assign":251,"regenerator-runtime/runtime":337}],19:[function(e,t,r){"use strict";function n(e,t){return i.apply(this,arguments)}function i(){return i=(0,a.default)(s.default.mark(function e(t,r){var n,i,o,a,l,f,p,d,h,m,y,b=arguments;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=b.length>2&&void 0!==b[2]?b[2]:{},i=Object.assign({inventory:"",inventoryId:r.id},n.subres),u.checkBucketName(t),o=r.OSSBucketDestination,a=r.optionalFields,l=r.includedObjectVersions,f="acs:oss:::",p="acs:ram::".concat(o.accountId,":role/"),d={InventoryConfiguration:{Id:r.id,IsEnabled:r.isEnabled,Filter:{Prefix:r.prefix||""},Destination:{OSSBucketDestination:{Format:o.format,AccountId:o.accountId,RoleArn:"".concat(p).concat(o.rolename),Bucket:"".concat(f).concat(o.bucket),Prefix:o.prefix||"",Encryption:o.encryption||""}},Schedule:{Frequency:r.frequency},IncludedObjectVersions:l,OptionalFields:{Field:(null===a||void 0===a?void 0:a.field)||[]}}},h=c.obj2xml(d,{headers:!0,firstUpperCase:!0}),m=this._bucketRequestParams("PUT",t,i,n),m.successStatuses=[200],m.mime="xml",m.content=h,e.next=14,this.request(m);case 14:return y=e.sent,e.abrupt("return",{status:y.status,res:y.res});case 16:case"end":return e.stop()}},e,this)})),i.apply(this,arguments)}var o=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.array.concat"),e("core-js/modules/es.object.assign");var s=o(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var a=o(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(r,"__esModule",{value:!0}),r.putBucketInventory=void 0;var u=e("../utils/checkBucketName"),c=e("../utils/obj2xml");r.putBucketInventory=n},{"../utils/checkBucketName":48,"../utils/obj2xml":66,"@babel/runtime/helpers/asyncToGenerator":70,"@babel/runtime/helpers/interopRequireDefault":71,"@babel/runtime/regenerator":74,"core-js/modules/es.array.concat":234,"core-js/modules/es.object.assign":251,"regenerator-runtime/runtime":337}],20:[function(e,t,r){"use strict";function n(e){e.days&&(e.expiration={days:e.days}),e.date&&(e.expiration={createdBeforeDate:e.date})}function i(e,t){var r=e.days,n=e.createdBeforeDate;if(!r&&!n)throw new Error("".concat(t," must includes days or createdBeforeDate"));if(r&&!/^[1-9][0-9]*$/.test(r))throw new Error("days must be a positive integer");if(n&&!/\d{4}-\d{2}-\d{2}T00:00:00.000Z/.test(n))throw new Error("createdBeforeDate must be date and conform to iso8601 format")}function o(e){if(!d(e)&&!b(e))throw new Error("tag must be Object or Array");e=b(e)?[e]:e;var t={};m(e).forEach(function(e){t[e.key]=e.value}),x(t)}function s(e){if(e.id&&_(e.id)>255)throw new Error("ID is composed of 255 bytes at most");if(void 0===e.prefix)throw new Error("Rule must includes prefix");if(!["Enabled","Disabled"].includes(e.status))throw new Error("Status must be Enabled or Disabled");if(e.transition){if(!["IA","Archive"].includes(e.transition.storageClass))throw new Error("StorageClass must be IA or Archive");i(e.transition,"Transition")}if(e.expiration)if(e.expiration.expiredObjectDeleteMarker){if(e.expiration.days||e.expiration.createdBeforeDate)throw new Error("expiredObjectDeleteMarker cannot be used with days or createdBeforeDate")}else i(e.expiration,"Expiration");if(e.abortMultipartUpload&&i(e.abortMultipartUpload,"AbortMultipartUpload"),!(e.expiration||e.abortMultipartUpload||e.transition||e.noncurrentVersionTransition))throw new Error("Rule must includes expiration or abortMultipartUpload or transition or noncurrentVersionTransition");if(e.tag){if(e.abortMultipartUpload)throw new Error("Tag cannot be used with abortMultipartUpload");o(e.tag)}}var a=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.array.for-each"),e("core-js/modules/es.array.includes"),e("core-js/modules/web.dom-collections.for-each");var u=a(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var c=a(e("@babel/runtime/helpers/asyncToGenerator")),l=e("../utils/checkBucketName"),f=l.checkBucketName,p=e("../utils/isArray"),d=p.isArray,h=e("../utils/deepCopy"),m=h.deepCopy,y=e("../utils/isObject"),b=y.isObject,g=e("../utils/obj2xml"),v=g.obj2xml,w=e("../utils/checkObjectTag"),x=w.checkObjectTag,j=e("../utils/getStrBytesCount"),_=j.getStrBytesCount;r.putBucketLifecycle=function(){function e(e,r,n){return t.apply(this,arguments)}var t=(0,c.default)(u.default.mark(function e(t,r,i){var o,a,c,l,p;return u.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(f(t),d(r)){e.next=3;break}throw new Error("rules must be Array");case 3:return o=this._bucketRequestParams("PUT",t,"lifecycle",i),a=[],c={LifecycleConfiguration:{Rule:a}},r.forEach(function(e){n(e),s(e),e.id&&(e.ID=e.id,delete e.id),a.push(e)}),l=v(c,{headers:!0,firstUpperCase:!0}),o.content=l,o.mime="xml",o.successStatuses=[200],e.next=13,this.request(o);case 13:return p=e.sent,e.abrupt("return",{res:p.res});case 15:case"end":return e.stop()}},e,this)}));return e}()},{"../utils/checkBucketName":48,"../utils/checkObjectTag":50,"../utils/deepCopy":54,"../utils/getStrBytesCount":58,"../utils/isArray":59,"../utils/isObject":64,"../utils/obj2xml":66,"@babel/runtime/helpers/asyncToGenerator":70,"@babel/runtime/helpers/interopRequireDefault":71,"@babel/runtime/regenerator":74,"core-js/modules/es.array.for-each":238,"core-js/modules/es.array.includes":240,"core-js/modules/web.dom-collections.for-each":292,"regenerator-runtime/runtime":337}],21:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.array.includes");var i=n(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var o=n(e("@babel/runtime/helpers/asyncToGenerator")),s=e("../utils/checkBucketName"),a=s.checkBucketName,u=e("../utils/obj2xml"),c=u.obj2xml;r.putBucketVersioning=function(){function e(e,r){return t.apply(this,arguments)}var t=(0,o.default)(i.default.mark(function e(t,r){var n,o,s,u,l=arguments;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=l.length>2&&void 0!==l[2]?l[2]:{},a(t),["Enabled","Suspended"].includes(r)){e.next=4;break}throw new Error("status must be Enabled or Suspended");case 4:return o=this._bucketRequestParams("PUT",t,"versioning",n),s={VersioningConfiguration:{Status:r}},o.mime="xml",o.content=c(s,{headers:!0}),e.next=10,this.request(o);case 10:return u=e.sent,e.abrupt("return",{res:u.res,status:u.status});case 12:case"end":return e.stop()}},e,this)}));return e}()},{"../utils/checkBucketName":48,"../utils/obj2xml":66,"@babel/runtime/helpers/asyncToGenerator":70,"@babel/runtime/helpers/interopRequireDefault":71,"@babel/runtime/regenerator":74,"core-js/modules/es.array.includes":240,"regenerator-runtime/runtime":337}],22:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var o=n(e("@babel/runtime/helpers/asyncToGenerator")),s=e("../utils/checkBucketName"),a=s.checkBucketName,u=e("../utils/obj2xml"),c=u.obj2xml,l=e("../utils/isArray"),f=l.isArray;r.putBucketWebsite=function(){function e(e){return t.apply(this,arguments)}var t=(0,o.default)(i.default.mark(function e(t){var r,n,o,s,u,l,p,d=arguments;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=d.length>1&&void 0!==d[1]?d[1]:{},n=d.length>2?d[2]:void 0,a(t),o=this._bucketRequestParams("PUT",t,"website",n),s={Suffix:r.index||"index.html"},u={IndexDocument:s},l={WebsiteConfiguration:u},r.supportSubDir&&(s.SupportSubDir=r.supportSubDir),r.type&&(s.Type=r.type),r.error&&(u.ErrorDocument={Key:r.error}),void 0===r.routingRules){e.next=14;break}if(f(r.routingRules)){e.next=13;break}throw new Error("RoutingRules must be Array");case 13:u.RoutingRules={RoutingRule:r.routingRules};case 14:return l=c(l),o.content=l,o.mime="xml",o.successStatuses=[200],e.next=20,this.request(o);case 20:return p=e.sent,e.abrupt("return",{res:p.res});case 22:case"end":return e.stop()}},e,this)}));return e}()},{"../utils/checkBucketName":48,"../utils/isArray":59,"../utils/obj2xml":66,"@babel/runtime/helpers/asyncToGenerator":70,"@babel/runtime/helpers/interopRequireDefault":71,"@babel/runtime/regenerator":74,"regenerator-runtime/runtime":337}],23:[function(e,t,r){(function(t){"use strict";e("core-js/modules/es.array.for-each"),e("core-js/modules/es.object.keys"),e("core-js/modules/es.object.to-string"),e("core-js/modules/es.regexp.to-string"),e("core-js/modules/web.dom-collections.for-each"),r.encodeCallback=function(e,r){if(e.headers=e.headers||{},!Object.prototype.hasOwnProperty.call(e.headers,"x-oss-callback")&&r.callback){var n={callbackUrl:encodeURI(r.callback.url),callbackBody:r.callback.body};r.callback.host&&(n.callbackHost=r.callback.host),r.callback.contentType&&(n.callbackBodyType=r.callback.contentType);var i=t.from(JSON.stringify(n)).toString("base64");if(e.headers["x-oss-callback"]=i,r.callback.customValue){var o={};Object.keys(r.callback.customValue).forEach(function(e){o["x:".concat(e)]=r.callback.customValue[e]}),e.headers["x-oss-callback-var"]=t.from(JSON.stringify(o)).toString("base64")}}}}).call(this,e("buffer").Buffer)},{buffer:98,"core-js/modules/es.array.for-each":238,"core-js/modules/es.object.keys":253,"core-js/modules/es.object.to-string":254,"core-js/modules/es.regexp.to-string":257,"core-js/modules/web.dom-collections.for-each":292}],24:[function(e,t,r){"use strict";function n(e){var t={},r=this.options.cname;l.checkConfigValid(this.options.endpoint,"endpoint"),o.default(this.options.endpoint,!1).to(t),!e.bucket||r||c.isIP(t.hostname)||this.options.sldEnable||(t.host="".concat(e.bucket,".").concat(t.host));var n="/";e.bucket&&this.options.sldEnable&&(n+="".concat(e.bucket,"/")),e.object&&(n+=this._escape(e.object).replace(/\+/g,"%2B")),t.pathname=n;var i={};if(e.query&&a.default(i,e.query),e.subres){var f={};u.default.string(e.subres)?f[e.subres]="":u.default.array(e.subres)?e.subres.forEach(function(e){f[e]=""}):f=e.subres,a.default(i,f)}return t.query=i,s.default.format(t)}e("core-js/modules/es.array.concat"),e("core-js/modules/es.array.for-each"),e("core-js/modules/es.regexp.exec"),e("core-js/modules/es.string.replace"),e("core-js/modules/web.dom-collections.for-each");var i=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.getReqUrl=void 0;var o=i(e("copy-to")),s=i(e("url")),a=i(e("merge-descriptors")),u=i(e("is-type-of")),c=e("../utils/isIP"),l=e("../utils/checkConfigValid");r.getReqUrl=n},{"../utils/checkConfigValid":49,"../utils/isIP":63,"copy-to":101,"core-js/modules/es.array.concat":234,"core-js/modules/es.array.for-each":238,"core-js/modules/es.regexp.exec":256,"core-js/modules/es.string.replace":261,"core-js/modules/web.dom-collections.for-each":292,"is-type-of":392,"merge-descriptors":311,url:394}],25:[function(e,t,r){"use strict";function n(e,t){f(e,"endpoint");var r=o.parse(e);if(r.protocol||(r=o.parse("http".concat(t?"s":"","://").concat(e))),"http:"!==r.protocol&&"https:"!==r.protocol)throw new Error("Endpoint protocol must be http or https.");return r}e("core-js/modules/es.array.concat"),e("core-js/modules/es.object.assign"),e("core-js/modules/es.string.trim");var i=e("humanize-ms"),o=e("url"),s=e("../utils/checkBucketName"),a=s.checkBucketName,u=e("../utils/setRegion"),c=u.setRegion,l=e("../utils/checkConfigValid"),f=l.checkConfigValid;t.exports=function(e){if(!e||!e.accessKeyId||!e.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");e.bucket&&a(e.bucket);var t=Object.assign({region:"oss-cn-hangzhou",internal:!1,secure:!1,timeout:6e4,bucket:null,endpoint:null,cname:!1,isRequestPay:!1,sldEnable:!1,headerEncoding:"utf-8",refreshSTSToken:null},e);if(t.accessKeyId=t.accessKeyId.trim(),t.accessKeySecret=t.accessKeySecret.trim(),t.timeout&&(t.timeout=i(t.timeout)),t.endpoint)t.endpoint=n(t.endpoint,t.secure);else{if(!t.region)throw new Error("require options.endpoint or options.region");t.endpoint=c(t.region,t.internal,t.secure)}return t.inited=!0,t}},{"../utils/checkBucketName":48,"../utils/checkConfigValid":49,"../utils/setRegion":68,"core-js/modules/es.array.concat":234,"core-js/modules/es.object.assign":251,"core-js/modules/es.string.trim":265,"humanize-ms":299,url:394}],26:[function(e,t,r){"use strict";e("merge-descriptors")(r,e("./processObjectSave"))},{"./processObjectSave":27,"merge-descriptors":311}],27:[function(e,t,r){"use strict";function n(e,t){if(!e)throw new Error("".concat(t," is required"));if("string"!=typeof e)throw new Error("".concat(t," must be String"))}var i=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.array.concat");var o=i(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var s=i(e("@babel/runtime/helpers/asyncToGenerator")),a=e("../utils/checkBucketName"),u=a.checkBucketName,c=e("querystring"),l=e("js-base64"),f=l.Base64.encode;r.processObjectSave=function(){function e(e,r,n,i){return t.apply(this,arguments)}var t=(0,s.default)(o.default.mark(function e(t,r,i,s){var a,l,p,d;return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n(t,"sourceObject"),n(r,"targetObject"),n(i,"process"),r=this._objectName(r),s&&u(s),a=this._objectRequestParams("POST",t,{subres:"x-oss-process"}),l=s?",b_".concat(f(s)):"",r=f(r),p={"x-oss-process":"".concat(i,"|sys/saveas,o_").concat(r).concat(l)},a.content=c.stringify(p),e.next=12,this.request(a);case 12:return d=e.sent,e.abrupt("return",{res:d.res,status:d.res.status});case 14:case"end":return e.stop()}},e,this)}));return e}()},{"../utils/checkBucketName":48,"@babel/runtime/helpers/asyncToGenerator":70,"@babel/runtime/helpers/interopRequireDefault":71,"@babel/runtime/regenerator":74,"core-js/modules/es.array.concat":234,"js-base64":310,querystring:323,"regenerator-runtime/runtime":337}],28:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.array.concat"),e("core-js/modules/es.array.filter"),e("core-js/modules/es.array.map"),e("core-js/modules/es.array.sort"),e("core-js/modules/es.object.to-string"),e("core-js/modules/es.regexp.to-string");var i=n(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var o=n(e("@babel/runtime/helpers/asyncToGenerator")),s=e("copy-to"),a=e("./callback"),u=e("./utils/deepCopy"),c=u.deepCopyWith,l=e("./utils/isBuffer"),f=l.isBuffer,p=r;p.listUploads=function(){function e(e,r){return t.apply(this,arguments)}var t=(0,o.default)(i.default.mark(function e(t,r){var n,o,a,u;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=r||{},n={},s(r).to(n),n.subres="uploads",o=this._objectRequestParams("GET","",n),o.query=t,o.xmlResponse=!0,o.successStatuses=[200],e.next=10,this.request(o);case 10:return a=e.sent,u=a.data.Upload||[],Array.isArray(u)||(u=[u]),u=u.map(function(e){return{name:e.Key,uploadId:e.UploadId,initiated:e.Initiated}}),e.abrupt("return",{res:a.res,uploads:u,bucket:a.data.Bucket,nextKeyMarker:a.data.NextKeyMarker,nextUploadIdMarker:a.data.NextUploadIdMarker,isTruncated:"true"===a.data.IsTruncated});case 15:case"end":return e.stop()}},e,this)}));return e}(),p.listParts=function(){function e(e,r,n,i){return t.apply(this,arguments)}var t=(0,o.default)(i.default.mark(function e(t,r,n,o){var a,u,c;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o=o||{},a={},s(o).to(a),a.subres={uploadId:r},u=this._objectRequestParams("GET",t,a),u.query=n,u.xmlResponse=!0,u.successStatuses=[200],e.next=10,this.request(u);case 10:return c=e.sent,e.abrupt("return",{res:c.res,uploadId:c.data.UploadId,bucket:c.data.Bucket,name:c.data.Key,partNumberMarker:c.data.PartNumberMarker,nextPartNumberMarker:c.data.NextPartNumberMarker,maxParts:c.data.MaxParts,isTruncated:c.data.IsTruncated,parts:c.data.Part||[]});case 12:case"end":return e.stop()}},e,this)}));return e}(),p.abortMultipartUpload=function(){function e(e,r,n){return t.apply(this,arguments)}var t=(0,o.default)(i.default.mark(function e(t,r,n){var o,a,u;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this._stop(),n=n||{},o={},s(n).to(o),o.subres={uploadId:r},a=this._objectRequestParams("DELETE",t,o),a.successStatuses=[204],e.next=9,this.request(a);case 9:return u=e.sent,e.abrupt("return",{res:u.res});case 11:case"end":return e.stop()}},e,this)}));return e}(),p.initMultipartUpload=function(){function e(e,r){return t.apply(this,arguments)}var t=(0,o.default)(i.default.mark(function e(t,r){var n,o,a;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=r||{},n={},s(r).to(n),n.headers=n.headers||{},this._convertMetaToHeaders(r.meta,n.headers),n.subres="uploads",o=this._objectRequestParams("POST",t,n),o.mime=r.mime,o.xmlResponse=!0,o.successStatuses=[200],e.next=12,this.request(o);case 12:return a=e.sent,e.abrupt("return",{res:a.res,bucket:a.data.Bucket,name:a.data.Key,uploadId:a.data.UploadId});case 14:case"end":return e.stop()}},e,this)}));return e}(),p.uploadPart=function(){function e(e,r,n,i,o,s,a){return t.apply(this,arguments)} var t=(0,o.default)(i.default.mark(function e(t,r,n,o,s,a,u){var c;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return c={stream:this._createStream(o,s,a),size:a-s},e.next=3,this._uploadPart(t,r,n,c,u);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}},e,this)}));return e}(),p.completeMultipartUpload=function(){function e(e,r,n,i){return t.apply(this,arguments)}var t=(0,o.default)(i.default.mark(function e(t,r,n,o){var s,u,l,p,d,h,m,y;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(s=n.concat().sort(function(e,t){return e.number-t.number}).filter(function(e,t,r){return!t||e.number!==r[t-1].number}),u='\n\n',l=0;l\n",u+="".concat(p.number,"\n"),u+="".concat(p.etag,"\n"),u+="\n";return u+="",o=o||{},d={},d=c(o,function(e){if(f(e))return null}),d.headers&&delete d.headers["x-oss-server-side-encryption"],d.subres={uploadId:r},h=this._objectRequestParams("POST",t,d),a.encodeCallback(h,d),h.mime="xml",h.content=u,h.headers&&h.headers["x-oss-callback"]||(h.xmlResponse=!0),h.successStatuses=[200],e.next=17,this.request(h);case 17:return m=e.sent,y={res:m.res,bucket:h.bucket,name:t,etag:m.res.headers.etag},h.headers&&h.headers["x-oss-callback"]&&(y.data=JSON.parse(m.data.toString())),e.abrupt("return",y);case 21:case"end":return e.stop()}},e,this)}));return e}(),p._uploadPart=function(){function e(e,r,n,i,o){return t.apply(this,arguments)}var t=(0,o.default)(i.default.mark(function e(t,r,n,o,a){var u,c,l;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=a||{},u={},s(a).to(u),u.headers={"Content-Length":o.size},u.subres={partNumber:n,uploadId:r},c=this._objectRequestParams("PUT",t,u),c.mime=u.mime,c.stream=o.stream,c.successStatuses=[200],e.next=11,this.request(c);case 11:if(l=e.sent,l.res.headers.etag){e.next=14;break}throw new Error("Please set the etag of expose-headers in OSS \n https://help.aliyun.com/document_detail/32069.html");case 14:return o.stream=null,c.stream=null,e.abrupt("return",{name:t,etag:l.res.headers.etag,res:l.res});case 17:case"end":return e.stop()}},e,this)}));return e}()},{"./callback":23,"./utils/deepCopy":54,"./utils/isBuffer":61,"@babel/runtime/helpers/asyncToGenerator":70,"@babel/runtime/helpers/interopRequireDefault":71,"@babel/runtime/regenerator":74,"copy-to":101,"core-js/modules/es.array.concat":234,"core-js/modules/es.array.filter":236,"core-js/modules/es.array.map":245,"core-js/modules/es.array.sort":247,"core-js/modules/es.object.to-string":254,"core-js/modules/es.regexp.to-string":257,"regenerator-runtime/runtime":337}],29:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.array.concat"),e("core-js/modules/es.array.find"),e("core-js/modules/es.array.for-each"),e("core-js/modules/es.array.includes"),e("core-js/modules/es.object.keys"),e("core-js/modules/es.regexp.exec"),e("core-js/modules/es.string.replace"),e("core-js/modules/web.dom-collections.for-each");var i=n(e("@babel/runtime/regenerator")),o=n(e("@babel/runtime/helpers/typeof"));e("regenerator-runtime/runtime");var s=n(e("@babel/runtime/helpers/asyncToGenerator")),a=e("../utils/checkBucketName"),u=a.checkBucketName,c=r,l=["content-type","content-encoding","content-language","content-disposition","cache-control","expires"];c.copy=function(){function e(e,r,n,i){return t.apply(this,arguments)}var t=(0,s.default)(i.default.mark(function e(t,r,n,s){var a,u,c;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return"object"===(0,o.default)(n)&&(s=n),s=s||{},s.headers=s.headers||{},Object.keys(s.headers).forEach(function(e){s.headers["x-oss-copy-source-".concat(e.toLowerCase())]=s.headers[e]}),(s.meta||Object.keys(s.headers).find(function(e){return l.includes(e.toLowerCase())}))&&(s.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(s.meta,s.headers),r=this._getSourceName(r,n),s.versionId&&(r="".concat(r,"?versionId=").concat(s.versionId)),s.headers["x-oss-copy-source"]=r,a=this._objectRequestParams("PUT",t,s),a.xmlResponse=!0,a.successStatuses=[200,304],e.next=14,this.request(a);case 14:return u=e.sent,c=u.data,c&&(c={etag:c.ETag,lastModified:c.LastModified}),e.abrupt("return",{data:c,res:u.res});case 18:case"end":return e.stop()}},e,this)}));return e}(),c._getSourceName=function(e,t){return"string"==typeof t?e=this._objectName(e):"/"!==e[0]?t=this.options.bucket:(t=e.replace(/\/(.+?)(\/.*)/,"$1"),e=e.replace(/(\/.+?\/)(.*)/,"$2")),u(t),e=encodeURIComponent(e),e="/".concat(t,"/").concat(e)}},{"../utils/checkBucketName":48,"@babel/runtime/helpers/asyncToGenerator":70,"@babel/runtime/helpers/interopRequireDefault":71,"@babel/runtime/helpers/typeof":72,"@babel/runtime/regenerator":74,"core-js/modules/es.array.concat":234,"core-js/modules/es.array.find":237,"core-js/modules/es.array.for-each":238,"core-js/modules/es.array.includes":240,"core-js/modules/es.object.keys":253,"core-js/modules/es.regexp.exec":256,"core-js/modules/es.string.replace":261,"core-js/modules/web.dom-collections.for-each":292,"regenerator-runtime/runtime":337}],30:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.object.assign");var i=n(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var o=n(e("@babel/runtime/helpers/asyncToGenerator"));r.delete=function(){function e(e){return t.apply(this,arguments)}var t=(0,o.default)(i.default.mark(function e(t){var r,n,o,s=arguments;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=s.length>1&&void 0!==s[1]?s[1]:{},r.subres=Object.assign({},r.subres),r.versionId&&(r.subres.versionId=r.versionId),n=this._objectRequestParams("DELETE",t,r),n.successStatuses=[204],e.next=7,this.request(n);case 7:return o=e.sent,e.abrupt("return",{res:o.res});case 9:case"end":return e.stop()}},e,this)}));return e}()},{"@babel/runtime/helpers/asyncToGenerator":70,"@babel/runtime/helpers/interopRequireDefault":71,"@babel/runtime/regenerator":74,"core-js/modules/es.object.assign":251,"regenerator-runtime/runtime":337}],31:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.object.assign");var i=n(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var o=n(e("@babel/runtime/helpers/asyncToGenerator")),s=e("utility"),a=e("../utils/obj2xml"),u=a.obj2xml;r.deleteMulti=function(){function e(e){return t.apply(this,arguments)}var t=(0,o.default)(i.default.mark(function e(t){var r,n,o,a,c,l,f,p,d,h,m,y,b,g=arguments;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=g.length>1&&void 0!==g[1]?g[1]:{},n=[],t&&t.length){e.next=4;break}throw new Error("names is required");case 4:for(o=0;o1&&void 0!==s[1]?s[1]:{},r.subres=Object.assign({tagging:""},r.subres),r.versionId&&(r.subres.versionId=r.versionId),t=this._objectName(t),n=this._objectRequestParams("DELETE",t,r),n.successStatuses=[204],e.next=8,this.request(n);case 8:return o=e.sent,e.abrupt("return",{status:o.status,res:o.res});case 10:case"end":return e.stop()}},e,this)}));return e}()},{"@babel/runtime/helpers/asyncToGenerator":70,"@babel/runtime/helpers/interopRequireDefault":71,"@babel/runtime/regenerator":74,"core-js/modules/es.object.assign":251,"regenerator-runtime/runtime":337}],33:[function(e,t,r){"use strict";e("core-js/modules/es.array.concat");var n=e("url"),i=e("../utils/isIP"),o=i.isIP;r.generateObjectUrl=function(e,t){if(o(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");if(t)"/"!==t[t.length-1]&&(t+="/");else{t=this.options.endpoint.format();var r=n.parse(t),i=this.options.bucket;r.hostname="".concat(i,".").concat(r.hostname),r.host="".concat(i,".").concat(r.host),t=r.format()}return t+this._escape(this._objectName(e))}},{"../utils/isIP":63,"core-js/modules/es.array.concat":234,url:394}],34:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.object.assign");var i=n(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var o=n(e("@babel/runtime/helpers/asyncToGenerator")),s=e("fs"),a=e("is-type-of");r.get=function(){function e(e,r){return t.apply(this,arguments)}var t=(0,o.default)(i.default.mark(function e(t,r){var n,o,u,c,l,f=arguments;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=f.length>2&&void 0!==f[2]?f[2]:{},o=null,u=!1,a.writableStream(r)?o=r:a.string(r)?(o=s.createWriteStream(r),u=!0):n=r,n=n||{},n.subres=Object.assign({"response-cache-control":"no-cache"},n.subres),n.versionId&&(n.subres.versionId=n.versionId),n.process&&(n.subres["x-oss-process"]=n.process),e.prev=8,l=this._objectRequestParams("GET",t,n),l.writeStream=o,l.successStatuses=[200,206,304],e.next=14,this.request(l);case 14:c=e.sent,u&&o.destroy(),e.next=25;break;case 18:if(e.prev=18,e.t0=e.catch(8),!u){e.next=24;break}return o.destroy(),e.next=24,this._deleteFileSafe(r);case 24:throw e.t0;case 25:return e.abrupt("return",{res:c.res,content:c.data});case 26:case"end":return e.stop()}},e,this,[[8,18]])}));return e}()},{"@babel/runtime/helpers/asyncToGenerator":70,"@babel/runtime/helpers/interopRequireDefault":71,"@babel/runtime/regenerator":74,"core-js/modules/es.object.assign":251,fs:78,"is-type-of":392,"regenerator-runtime/runtime":337}],35:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.object.assign");var i=n(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var o=n(e("@babel/runtime/helpers/asyncToGenerator"));r.getACL=function(){function e(e){return t.apply(this,arguments)}var t=(0,o.default)(i.default.mark(function e(t){var r,n,o,s=arguments;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=s.length>1&&void 0!==s[1]?s[1]:{},r.subres=Object.assign({acl:""},r.subres),r.versionId&&(r.subres.versionId=r.versionId),t=this._objectName(t),n=this._objectRequestParams("GET",t,r),n.successStatuses=[200],n.xmlResponse=!0,e.next=9,this.request(n);case 9:return o=e.sent,e.abrupt("return",{acl:o.data.AccessControlList.Grant,owner:{id:o.data.Owner.ID,displayName:o.data.Owner.DisplayName},res:o.res});case 11:case"end":return e.stop()}},e,this)}));return e}()},{"@babel/runtime/helpers/asyncToGenerator":70,"@babel/runtime/helpers/interopRequireDefault":71,"@babel/runtime/regenerator":74,"core-js/modules/es.object.assign":251,"regenerator-runtime/runtime":337}],36:[function(e,t,r){"use strict";function n(){return i.apply(this,arguments)}function i(){return i=(0,c.default)(u.default.mark(function e(){var t,r,n,i,o,a,c,l,f=arguments;return u.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=f.length>0&&void 0!==f[0]?f[0]:{},r=f.length>1&&void 0!==f[1]?f[1]:{},!t.versionIdMarker||void 0!==t.keyMarker){e.next=4;break}throw new Error("A version-id marker cannot be specified without a key marker");case 4:return r.subres=Object.assign({versions:""},r.subres),r.versionId&&(r.subres.versionId=r.versionId),n=this._objectRequestParams("GET","",r),n.xmlResponse=!0,n.successStatuses=[200],n.query=s(t),e.next=12,this.request(n);case 12:return i=e.sent,o=i.data.Version||[],a=i.data.DeleteMarker||[],c=this,o&&(Array.isArray(o)||(o=[o]),o=o.map(function(e){return{name:e.Key,url:c._objectUrl(e.Key),lastModified:e.LastModified,isLatest:"true"===e.IsLatest,versionId:e.VersionId,etag:e.ETag,type:e.Type,size:Number(e.Size),storageClass:e.StorageClass,owner:{id:e.Owner.ID,displayName:e.Owner.DisplayName}}})),a&&(h(a)||(a=[a]),a=a.map(function(e){return{name:e.Key,lastModified:e.LastModified,versionId:e.VersionId,owner:{id:e.Owner.ID,displayName:e.Owner.DisplayName}}})),l=i.data.CommonPrefixes||null,l&&(h(l)||(l=[l]),l=l.map(function(e){return e.Prefix})),e.abrupt("return",{res:i.res,objects:o,deleteMarker:a,prefixes:l,nextMarker:i.data.NextKeyMarker||null,NextVersionIdMarker:i.data.NextVersionIdMarker||null,nextKeyMarker:i.data.NextKeyMarker||null,nextVersionIdMarker:i.data.NextVersionIdMarker||null,isTruncated:"true"===i.data.IsTruncated});case 21:case"end":return e.stop()}},e,this)})),i.apply(this,arguments)}function o(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={};return p(e)&&Object.keys(e).forEach(function(r){t[o(r)]=e[r]}),t}var a=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.array.for-each"),e("core-js/modules/es.array.map"),e("core-js/modules/es.number.constructor"),e("core-js/modules/es.object.assign"),e("core-js/modules/es.object.keys"),e("core-js/modules/es.regexp.exec"),e("core-js/modules/es.string.replace"),e("core-js/modules/web.dom-collections.for-each");var u=a(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var c=a(e("@babel/runtime/helpers/asyncToGenerator")),l=r,f=e("../utils/isObject"),p=f.isObject,d=e("../utils/isArray"),h=d.isArray;l.getBucketVersions=n,l.listObjectVersions=n},{"../utils/isArray":59,"../utils/isObject":64,"@babel/runtime/helpers/asyncToGenerator":70,"@babel/runtime/helpers/interopRequireDefault":71,"@babel/runtime/regenerator":74,"core-js/modules/es.array.for-each":238,"core-js/modules/es.array.map":245,"core-js/modules/es.number.constructor":250,"core-js/modules/es.object.assign":251,"core-js/modules/es.object.keys":253,"core-js/modules/es.regexp.exec":256,"core-js/modules/es.string.replace":261,"core-js/modules/web.dom-collections.for-each":292,"regenerator-runtime/runtime":337}],37:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.object.assign");var i=n(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var o=n(e("@babel/runtime/helpers/asyncToGenerator"));r.getObjectMeta=function(){function e(e,r){return t.apply(this,arguments)}var t=(0,o.default)(i.default.mark(function e(t,r){var n,o;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=r||{},t=this._objectName(t),r.subres=Object.assign({objectMeta:""},r.subres),r.versionId&&(r.subres.versionId=r.versionId),n=this._objectRequestParams("HEAD",t,r),n.successStatuses=[200],e.next=8,this.request(n);case 8:return o=e.sent,e.abrupt("return",{status:o.status,res:o.res});case 10:case"end":return e.stop()}},e,this)}));return e}()},{"@babel/runtime/helpers/asyncToGenerator":70,"@babel/runtime/helpers/interopRequireDefault":71,"@babel/runtime/regenerator":74,"core-js/modules/es.object.assign":251,"regenerator-runtime/runtime":337}],38:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.array.for-each"),e("core-js/modules/es.object.assign"),e("core-js/modules/web.dom-collections.for-each");var i=n(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var o=n(e("@babel/runtime/helpers/asyncToGenerator")),s=r,a=e("../utils/isObject"),u=a.isObject;s.getObjectTagging=function(){function e(e){return t.apply(this,arguments)}var t=(0,o.default)(i.default.mark(function e(t){var r,n,o,s,a,c,l=arguments;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=l.length>1&&void 0!==l[1]?l[1]:{},r.subres=Object.assign({tagging:""},r.subres),r.versionId&&(r.subres.versionId=r.versionId),t=this._objectName(t),n=this._objectRequestParams("GET",t,r),n.successStatuses=[200],e.next=8,this.request(n);case 8:return o=e.sent,e.next=11,this.parseXML(o.data);case 11:return s=e.sent,a=s.TagSet.Tag,a=a&&u(a)?[a]:a||[],c={},a.forEach(function(e){c[e.Key]=e.Value}),e.abrupt("return",{status:o.status,res:o.res,tag:c});case 17:case"end":return e.stop()}},e,this)}));return e}()},{"../utils/isObject":64,"@babel/runtime/helpers/asyncToGenerator":70,"@babel/runtime/helpers/interopRequireDefault":71,"@babel/runtime/regenerator":74,"core-js/modules/es.array.for-each":238,"core-js/modules/es.object.assign":251,"core-js/modules/web.dom-collections.for-each":292,"regenerator-runtime/runtime":337}],39:[function(e,t,r){"use strict";var n=e("../utils/isIP"),i=n.isIP;r.getObjectUrl=function(e,t){if(i(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");return t?"/"!==t[t.length-1]&&(t+="/"):t=this.options.endpoint.format(),t+this._escape(this._objectName(e))}},{"../utils/isIP":63}],40:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.object.assign");var i=n(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var o=n(e("@babel/runtime/helpers/asyncToGenerator"));r.getSymlink=function(){function e(e){return t.apply(this,arguments)}var t=(0,o.default)(i.default.mark(function e(t){var r,n,o,s,a=arguments;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=a.length>1&&void 0!==a[1]?a[1]:{},r.subres=Object.assign({symlink:""},r.subres),r.versionId&&(r.subres.versionId=r.versionId),t=this._objectName(t),n=this._objectRequestParams("GET",t,r),n.successStatuses=[200],e.next=8,this.request(n);case 8:return o=e.sent,s=o.res.headers["x-oss-symlink-target"],e.abrupt("return",{targetName:decodeURIComponent(s),res:o.res});case 11:case"end":return e.stop()}},e,this)}));return e}()},{"@babel/runtime/helpers/asyncToGenerator":70,"@babel/runtime/helpers/interopRequireDefault":71,"@babel/runtime/regenerator":74,"core-js/modules/es.object.assign":251,"regenerator-runtime/runtime":337}],41:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.array.for-each"),e("core-js/modules/es.array.index-of"),e("core-js/modules/es.object.assign"),e("core-js/modules/es.object.keys"),e("core-js/modules/web.dom-collections.for-each");var i=n(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var o=n(e("@babel/runtime/helpers/asyncToGenerator"));r.head=function(){function e(e){return t.apply(this,arguments)}var t=(0,o.default)(i.default.mark(function e(t){var r,n,o,s,a=arguments;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=a.length>1&&void 0!==a[1]?a[1]:{},r.subres=Object.assign({},r.subres),r.versionId&&(r.subres.versionId=r.versionId),n=this._objectRequestParams("HEAD",t,r),n.successStatuses=[200,304],e.next=7,this.request(n);case 7:return o=e.sent,s={meta:null,res:o.res,status:o.status},200===o.status&&Object.keys(o.headers).forEach(function(e){0===e.indexOf("x-oss-meta-")&&(s.meta||(s.meta={}),s.meta[e.substring(11)]=o.headers[e])}),e.abrupt("return",s);case 11:case"end":return e.stop()}},e,this)}));return e}()},{"@babel/runtime/helpers/asyncToGenerator":70,"@babel/runtime/helpers/interopRequireDefault":71,"@babel/runtime/regenerator":74,"core-js/modules/es.array.for-each":238,"core-js/modules/es.array.index-of":241,"core-js/modules/es.object.assign":251,"core-js/modules/es.object.keys":253,"core-js/modules/web.dom-collections.for-each":292,"regenerator-runtime/runtime":337}],42:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.object.assign");var i=n(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var o=n(e("@babel/runtime/helpers/asyncToGenerator"));r.putACL=function(){function e(e,r,n){return t.apply(this,arguments)}var t=(0,o.default)(i.default.mark(function e(t,r,n){var o,s;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=n||{},n.subres=Object.assign({acl:""},n.subres),n.versionId&&(n.subres.versionId=n.versionId),n.headers=n.headers||{},n.headers["x-oss-object-acl"]=r,t=this._objectName(t),o=this._objectRequestParams("PUT",t,n),o.successStatuses=[200],e.next=10,this.request(o);case 10:return s=e.sent,e.abrupt("return",{res:s.res});case 12:case"end":return e.stop()}},e,this)}));return e}()},{"@babel/runtime/helpers/asyncToGenerator":70,"@babel/runtime/helpers/interopRequireDefault":71,"@babel/runtime/regenerator":74,"core-js/modules/es.object.assign":251,"regenerator-runtime/runtime":337}],43:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.array.map"),e("core-js/modules/es.object.assign"),e("core-js/modules/es.object.keys");var i=n(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var o=n(e("@babel/runtime/helpers/asyncToGenerator")),s=e("../utils/obj2xml"),a=s.obj2xml,u=e("../utils/checkObjectTag"),c=u.checkObjectTag;r.putObjectTagging=function(){function e(e,r){return t.apply(this,arguments)}var t=(0,o.default)(i.default.mark(function e(t,r){var n,o,s,u,l=arguments;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=l.length>2&&void 0!==l[2]?l[2]:{},c(r),n.subres=Object.assign({tagging:""},n.subres),n.versionId&&(n.subres.versionId=n.versionId),t=this._objectName(t),o=this._objectRequestParams("PUT",t,n),o.successStatuses=[200],r=Object.keys(r).map(function(e){return{Key:e,Value:r[e]}}),s={Tagging:{TagSet:{Tag:r}}},o.mime="xml",o.content=a(s),e.next=13,this.request(o);case 13:return u=e.sent,e.abrupt("return",{res:u.res,status:u.status});case 15:case"end":return e.stop()}},e,this)}));return e}()},{"../utils/checkObjectTag":50,"../utils/obj2xml":66,"@babel/runtime/helpers/asyncToGenerator":70,"@babel/runtime/helpers/interopRequireDefault":71,"@babel/runtime/regenerator":74,"core-js/modules/es.array.map":245,"core-js/modules/es.object.assign":251,"core-js/modules/es.object.keys":253,"regenerator-runtime/runtime":337}],44:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.object.assign");var i=n(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var o=n(e("@babel/runtime/helpers/asyncToGenerator"));r.putSymlink=function(){function e(e,r,n){return t.apply(this,arguments)}var t=(0,o.default)(i.default.mark(function e(t,r,n){var o,s;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=n||{},n.headers=n.headers||{},r=this._escape(this._objectName(r)),this._convertMetaToHeaders(n.meta,n.headers),n.headers["x-oss-symlink-target"]=r,n.subres=Object.assign({symlink:""},n.subres),n.versionId&&(n.subres.versionId=n.versionId),n.storageClass&&(n.headers["x-oss-storage-class"]=n.storageClass),t=this._objectName(t),o=this._objectRequestParams("PUT",t,n),o.successStatuses=[200],e.next=13,this.request(o);case 13:return s=e.sent,e.abrupt("return",{res:s.res});case 15:case"end":return e.stop()}},e,this)}));return e}()},{"@babel/runtime/helpers/asyncToGenerator":70,"@babel/runtime/helpers/interopRequireDefault":71,"@babel/runtime/regenerator":74,"core-js/modules/es.object.assign":251,"regenerator-runtime/runtime":337}],45:[function(e,t,r){"use strict";var n=e("url"),i=e("utility"),o=e("copy-to"),s=e("../../common/signUtils"),a=e("../utils/isIP"),u=a.isIP;r.signatureUrl=function(e,t){if(u(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");t=t||{},e=this._objectName(e),t.method=t.method||"GET";var r=i.timestamp()+(t.expires||1800),a={bucket:this.options.bucket,object:e},c=this._getResource(a);this.options.stsToken&&(t["security-token"]=this.options.stsToken);var l=s._signatureForURL(this.options.accessKeySecret,t,c,r),f=n.parse(this._getReqUrl(a));return f.query={OSSAccessKeyId:this.options.accessKeyId,Expires:r,Signature:l.Signature},o(l.subResource).to(f.query),f.format()}},{"../../common/signUtils":47,"../utils/isIP":63,"copy-to":101,url:394,utility:396}],46:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.array.for-each"),e("core-js/modules/es.array.iterator"),e("core-js/modules/es.function.name"),e("core-js/modules/es.object.to-string"),e("core-js/modules/es.promise"),e("core-js/modules/es.string.iterator"),e("core-js/modules/web.dom-collections.for-each"),e("core-js/modules/web.dom-collections.iterator");var i=n(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var o=n(e("@babel/runtime/helpers/asyncToGenerator")),s=e("./utils/isArray"),a=s.isArray,u=r;u._parallelNode=function(){function e(e,r,n,i){return t.apply(this,arguments)}var t=(0,o.default)(i.default.mark(function e(t,r,n,o){var s,a,u,c,l,f,p,d;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:s=this,a=[],u=[],c=t.length/r,l=t.length%r,f=0===l?c:(t.length-l)/r+1,p=1,d=0;case 8:if(!(d0)return f=!0,void(p<=0&&i(c));p+=1,a(e.value,o(s))}d=!1}var c=[];if(t<=0||!e)return void i(c);var l=function(e){var t=-1,r=e.length;return function(){return++tt[0]?1:e[0]2&&void 0!==arguments[2]?arguments[2]:"utf-8";return n.createHmac("sha1",e).update(t.from(r,i)).digest("base64")},r.authorization=function(e,t,r,n){return"OSS ".concat(e,":").concat(this.computeSignature(t,r,n))},r._signatureForURL=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,s={},a=r.subResource,u=void 0===a?{}:a;if(r.process){u["x-oss-process"]=r.process}if(r.trafficLimit){u["x-oss-traffic-limit"]=r.trafficLimit}if(r.response&&Object.keys(r.response).forEach(function(e){var t="response-".concat(e.toLowerCase());u[t]=r.response[e]}),Object.keys(r).forEach(function(e){var t=e.toLowerCase(),n=r[e];0===t.indexOf("x-oss-")?s[t]=n:0===t.indexOf("content-md5")?s[e]=n:0===t.indexOf("content-type")&&(s[e]=n)}),Object.prototype.hasOwnProperty.call(r,"security-token")&&(u["security-token"]=r["security-token"]),Object.prototype.hasOwnProperty.call(r,"callback")){var c={callbackUrl:encodeURI(r.callback.url),callbackBody:r.callback.body};if(r.callback.host&&(c.callbackHost=r.callback.host),r.callback.contentType&&(c.callbackBodyType=r.callback.contentType),u.callback=t.from(JSON.stringify(c)).toString("base64"),r.callback.customValue){var l={};Object.keys(r.callback.customValue).forEach(function(e){l["x:".concat(e)]=r.callback.customValue[e]}),u["callback-var"]=t.from(JSON.stringify(l)).toString("base64")}}var f=this.buildCanonicalString(r.method,n,{headers:s,parameters:u},i.toString());return{Signature:this.computeSignature(e,f,o),subResource:u}}}).call(this,e("buffer").Buffer)},{"./../../shims/crypto/crypto.js":387,"./utils/lowercaseKeyHeader":65,buffer:98,"core-js/modules/es.array.concat":234,"core-js/modules/es.array.for-each":238,"core-js/modules/es.array.index-of":241,"core-js/modules/es.array.join":243,"core-js/modules/es.array.sort":247,"core-js/modules/es.object.keys":253,"core-js/modules/es.object.to-string":254,"core-js/modules/es.regexp.to-string":257,"core-js/modules/es.string.trim":265,"core-js/modules/web.dom-collections.for-each":292,"is-type-of":392}],48:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.checkBucketName=void 0,r.checkBucketName=function(e){ if(!(arguments.length>1&&void 0!==arguments[1]&&arguments[1]?/^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/:/^[a-z0-9_][a-z0-9-_]{1,61}[a-z0-9_]$/).test(e))throw new Error("The bucket must be conform to the specifications")}},{}],49:[function(e,t,r){"use strict";function n(e){return"string"==typeof e?/^[a-zA-Z0-9._:\/-]+$/.test(e):!!e.host&&/^[a-zA-Z0-9._:\/-]+$/.test(e.host)}Object.defineProperty(r,"__esModule",{value:!0}),r.checkConfigValid=void 0;var i={endpoint:n,region:/^[a-zA-Z0-9\-_]+$/};r.checkConfigValid=function(e,t){if(i[t]){if(!(i[t]instanceof Function?i[t](e):i[t].test(e)))throw new Error("The ".concat(t," must be conform to the specifications"))}}},{}],50:[function(e,t,r){"use strict";function n(e){if(!a(e))throw new Error("tag must be Object");var t=Object.entries(e);if(t.length>10)throw new Error("maximum of 10 tags for a object");var r=["key","value"];t.forEach(function(e){e.forEach(function(e,t){o(e,c[r[t]])})})}e("core-js/modules/es.array.concat"),e("core-js/modules/es.array.for-each"),e("core-js/modules/es.object.entries"),e("core-js/modules/web.dom-collections.for-each"),Object.defineProperty(r,"__esModule",{value:!0}),r.checkObjectTag=void 0;var i=e("./checkValid"),o=i.checkValid,s=e("./isObject"),a=s.isObject,u=[{validator:function(e){if("string"!=typeof e)throw new Error("the key and value of the tag must be String")}},{pattern:/^[a-zA-Z0-9 +-=._:\/]+$/,msg:"tag can contain letters, numbers, spaces, and the following symbols: plus sign (+), hyphen (-), equal sign (=), period (.), underscore (_), colon (:), and forward slash (/)"}],c={key:[].concat(u,[{pattern:/^.{1,128}$/,msg:"tag key can be a maximum of 128 bytes in length"}]),value:[].concat(u,[{pattern:/^.{0,256}$/,msg:"tag value can be a maximum of 256 bytes in length"}])};r.checkObjectTag=n},{"./checkValid":51,"./isObject":64,"core-js/modules/es.array.concat":234,"core-js/modules/es.array.for-each":238,"core-js/modules/es.object.entries":252,"core-js/modules/web.dom-collections.for-each":292}],51:[function(e,t,r){"use strict";function n(e,t){t.forEach(function(t){if(t.validator)t.validator(e);else if(t.pattern&&!t.pattern.test(e))throw new Error(t.msg)})}e("core-js/modules/es.array.for-each"),e("core-js/modules/web.dom-collections.for-each"),Object.defineProperty(r,"__esModule",{value:!0}),r.checkValid=void 0,r.checkValid=n},{"core-js/modules/es.array.for-each":238,"core-js/modules/web.dom-collections.for-each":292}],52:[function(e,t,r){(function(t){"use strict";function n(e,t){return e[t]||e[t.toLowerCase()]}function i(e,t){delete e[t],delete e[t.toLowerCase()]}function o(e){var r=new Date;this.options.amendTimeSkewed&&(r=+new Date+this.options.amendTimeSkewed);var o={"x-oss-date":c(r,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'"),"x-oss-user-agent":this.userAgent};this.userAgent.includes("nodejs")&&(o["User-Agent"]=this.userAgent),this.options.isRequestPay&&Object.assign(o,{"x-oss-request-payer":"requester"}),this.options.stsToken&&(o["x-oss-security-token"]=this.options.stsToken),l(e.headers).to(o),n(o,"Content-Type")||(e.mime&&e.mime.indexOf("/")>0?o["Content-Type"]=e.mime:o["Content-Type"]=u.getType(e.mime||f.extname(e.object||""))),n(o,"Content-Type")||i(o,"Content-Type"),e.content&&(o["Content-MD5"]=s.createHash("md5").update(t.from(e.content,"utf8")).digest("base64"),o["Content-Length"]||(o["Content-Length"]=e.content.length));var p=Object.prototype.hasOwnProperty;for(var h in o)o[h]&&p.call(o,h)&&(o[h]=d(String(o[h]),this.options.headerEncoding));var y=this._getResource(e);if(o.authorization=this.authorization(e.method,y,e.subres,o,this.options.headerEncoding),m(this.options.endpoint.hostname)){var g=this.options,w=g.region,x=g.internal,j=g.secure,_=b(w,x,j);o.host="".concat(e.bucket,".").concat(_.host)}var E=v.bind(this)(e);a("request %s %s, with headers %j, !!stream: %s",e.method,E,o,!!e.stream);var T=e.timeout||this.options.timeout,S={method:e.method,content:e.content,stream:e.stream,headers:o,timeout:T,writeStream:e.writeStream,customResponse:e.customResponse,ctx:e.ctx||this.ctx};return this.agent&&(S.agent=this.agent),this.httpsAgent&&(S.httpsAgent=this.httpsAgent),S.enableProxy=!!this.options.enableProxy,S.proxy=this.options.proxy?this.options.proxy:null,{url:E,params:S}}e("core-js/modules/es.array.concat"),e("core-js/modules/es.array.includes"),e("core-js/modules/es.array.index-of"),e("core-js/modules/es.object.assign"),e("core-js/modules/es.string.includes"),Object.defineProperty(r,"__esModule",{value:!0}),r.createRequest=void 0;var s=e("./../../../shims/crypto/crypto.js"),a=e("debug")("ali-oss"),u=e("mime"),c=e("dateformat"),l=e("copy-to"),f=e("path"),p=e("./encoder"),d=p.encoder,h=e("./isIP"),m=h.isIP,y=e("./setRegion"),b=y.setRegion,g=e("../client/getReqUrl"),v=g.getReqUrl;r.createRequest=o}).call(this,e("buffer").Buffer)},{"../client/getReqUrl":24,"./../../../shims/crypto/crypto.js":387,"./encoder":55,"./isIP":63,"./setRegion":68,buffer:98,"copy-to":101,"core-js/modules/es.array.concat":234,"core-js/modules/es.array.includes":240,"core-js/modules/es.array.index-of":241,"core-js/modules/es.object.assign":251,"core-js/modules/es.string.includes":258,dateformat:295,debug:391,mime:313,path:316}],53:[function(e,t,r){"use strict";function n(e,t,r){if(s.isObject(e)){var a=t.remove,u=void 0===a?[]:a,c=t.rename,l=void 0===c?{}:c,f=t.camel,p=void 0===f?[]:f,d=t.bool,h=void 0===d?[]:d,m=t.lowerFirst,y=void 0!==m&&m;return u.forEach(function(t){return delete e[t]}),Object.entries(l).forEach(function(t){e[t[0]]&&(e[t[1]]||(e[t[1]]=e[t[0]],delete e[t[0]]))}),p.forEach(function(t){if(e[t]){var r=t.replace(/^(.)/,function(e){return e.toLowerCase()}).replace(/-(\w)/g,function(e,t){return t.toUpperCase()});e[r]||(e[r]=e[t])}}),h.forEach(function(t){e[t]=i(e[t])}),"function"==typeof r&&r(e),o(e,y),n}}function i(e){return!!e&&(!!a.includes(e)||!u.includes(e)&&e)}function o(e,t){t&&Object.keys(e).forEach(function(t){var r=t.replace(/^\w/,function(e){return e.toLowerCase()});void 0===e[r]&&(e[r]=e[t],delete e[t])})}e("core-js/modules/es.array.for-each"),e("core-js/modules/es.array.includes"),e("core-js/modules/es.object.entries"),e("core-js/modules/es.object.keys"),e("core-js/modules/es.regexp.exec"),e("core-js/modules/es.string.replace"),e("core-js/modules/web.dom-collections.for-each"),Object.defineProperty(r,"__esModule",{value:!0}),r.dataFix=void 0;var s=e("./isObject"),a=["true","TRUE","1",1],u=["false","FALSE","0",0];r.dataFix=n},{"./isObject":64,"core-js/modules/es.array.for-each":238,"core-js/modules/es.array.includes":240,"core-js/modules/es.object.entries":252,"core-js/modules/es.object.keys":253,"core-js/modules/es.regexp.exec":256,"core-js/modules/es.string.replace":261,"core-js/modules/web.dom-collections.for-each":292}],54:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.array.for-each"),e("core-js/modules/es.array.slice"),e("core-js/modules/es.object.keys"),e("core-js/modules/web.dom-collections.for-each");var i=n(e("@babel/runtime/helpers/typeof"));Object.defineProperty(r,"__esModule",{value:!0}),r.deepCopyWith=r.deepCopy=void 0;var o=e("./isBuffer");r.deepCopy=function(e){if(null===e||"object"!==(0,i.default)(e))return e;if(o.isBuffer(e))return e.slice();var t=Array.isArray(e)?[]:{};return Object.keys(e).forEach(function(n){t[n]=r.deepCopy(e[n])}),t},r.deepCopyWith=function(e,t){function n(r,s,a){var u=t(r,s,a);if(void 0!==u)return u;if(null===r||"object"!==(0,i.default)(r))return r;if(o.isBuffer(r))return e.slice();var c=Array.isArray(r)?[]:{};return Object.keys(r).forEach(function(e){c[e]=n(r[e],e,r)}),c}return t?n(e,"",null):r.deepCopy(e)}},{"./isBuffer":61,"@babel/runtime/helpers/interopRequireDefault":71,"@babel/runtime/helpers/typeof":72,"core-js/modules/es.array.for-each":238,"core-js/modules/es.array.slice":246,"core-js/modules/es.object.keys":253,"core-js/modules/web.dom-collections.for-each":292}],55:[function(e,t,r){(function(t){"use strict";function n(e){return"utf-8"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"utf-8")?e:t.from(e).toString("latin1")}e("core-js/modules/es.object.to-string"),e("core-js/modules/es.regexp.to-string"),Object.defineProperty(r,"__esModule",{value:!0}),r.encoder=void 0,r.encoder=n}).call(this,e("buffer").Buffer)},{buffer:98,"core-js/modules/es.object.to-string":254,"core-js/modules/es.regexp.to-string":257}],56:[function(e,t,r){"use strict";function n(e){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&s.isObject(e)&&(e=[e]),e=a.isArray(e)?e.map(i):i(e)}function i(e){return o.dataFix(e,{bool:["IsEnabled"]},function(e){var t,r;e.prefix=e.Filter.Prefix,delete e.Filter,e.OSSBucketDestination=e.Destination.OSSBucketDestination,e.OSSBucketDestination.rolename=e.OSSBucketDestination.RoleArn.replace(/.*\//,""),delete e.OSSBucketDestination.RoleArn,e.OSSBucketDestination.bucket=e.OSSBucketDestination.Bucket.replace(/.*:::/,""),delete e.OSSBucketDestination.Bucket,delete e.Destination,e.frequency=e.Schedule.Frequency,delete e.Schedule.Frequency,(null===(t=null===e||void 0===e?void 0:e.OptionalFields)||void 0===t?void 0:t.Field)&&!a.isArray(null===(r=e.OptionalFields)||void 0===r?void 0:r.Field)&&(e.OptionalFields.Field=[e.OptionalFields.Field])}),e=u.formatObjKey(e,"firstLowerCase",{exclude:["OSSBucketDestination","SSE-OSS","SSE-KMS"]})}e("core-js/modules/es.array.map"),e("core-js/modules/es.regexp.exec"),e("core-js/modules/es.string.replace"),Object.defineProperty(r,"__esModule",{value:!0}),r.formatInventoryConfig=void 0;var o=e("../utils/dataFix"),s=e("../utils/isObject"),a=e("../utils/isArray"),u=e("../utils/formatObjKey");r.formatInventoryConfig=n},{"../utils/dataFix":53,"../utils/formatObjKey":57,"../utils/isArray":59,"../utils/isObject":64,"core-js/modules/es.array.map":245,"core-js/modules/es.regexp.exec":256,"core-js/modules/es.string.replace":261}],57:[function(e,t,r){"use strict";function n(e,t,r){if(null===e||"object"!==(0,s.default)(e))return e;var o;if(Array.isArray(e)){o=[];for(var a=0;a").concat(e[t],""):"object"===n(e[t])?r+="<".concat(t,">").concat(i(e[t]),""):"array"===n(e[t])?r+=e[t].map(function(e){return"<".concat(t,">").concat(i(e),"")}).join(""):r+="<".concat(t,">").concat(e[t].toString(),""))}):r+=e.toString(),r}e("core-js/modules/es.array.concat"),e("core-js/modules/es.array.for-each"),e("core-js/modules/es.array.join"),e("core-js/modules/es.array.map"),e("core-js/modules/es.object.keys"),e("core-js/modules/es.object.to-string"),e("core-js/modules/es.regexp.exec"),e("core-js/modules/es.regexp.to-string"),e("core-js/modules/es.string.replace"),e("core-js/modules/web.dom-collections.for-each"),Object.defineProperty(r,"__esModule",{value:!0}),r.obj2xml=void 0;var o=e("./formatObjKey");r.obj2xml=i},{"./formatObjKey":57,"core-js/modules/es.array.concat":234,"core-js/modules/es.array.for-each":238,"core-js/modules/es.array.join":243,"core-js/modules/es.array.map":245,"core-js/modules/es.object.keys":253,"core-js/modules/es.object.to-string":254,"core-js/modules/es.regexp.exec":256,"core-js/modules/es.regexp.to-string":257,"core-js/modules/es.string.replace":261,"core-js/modules/web.dom-collections.for-each":292}],67:[function(e,t,r){"use strict";function n(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=0,i=r.retryDelay,o=void 0===i?500:i,s=r.errorHandler,a=void 0===s?function(){return!0}:s;return function r(){for(var i=arguments.length,s=new Array(i),u=0;u1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];s.checkConfigValid(e,"region");var n=r?"https://":"http://",i=t?"-internal.aliyuncs.com":".aliyuncs.com";return"vpc100-oss-cn-"===e.substr(0,"vpc100-oss-cn-".length)&&(i=".aliyuncs.com"),o.default.parse(n+e+i)}var i=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.setRegion=void 0;var o=i(e("url")),s=e("./checkConfigValid");r.setRegion=n},{"./checkConfigValid":49,url:394}],69:[function(e,t,r){"use strict";function n(){return i.apply(this,arguments)}function i(){return i=(0,u.default)(a.default.mark(function e(){var t;return a.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.options||(this.options={}),e.next=3,this.options.refreshSTSToken();case 3:t=e.sent,t=c.formatObjKey(t,"firstLowerCase"),t.securityToken&&(t.stsToken=t.securityToken),o(t),Object.assign(this.options,t);case 8:case"end":return e.stop()}},e,this)})),i.apply(this,arguments)}function o(e){var t=["accessKeySecret","accessKeyId","stsToken"],r=Object.keys(e);t.forEach(function(e){if(!r.find(function(t){return t===e}))throw Error("refreshSTSToken must return contains ".concat(e))})}var s=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.array.find"),e("core-js/modules/es.array.for-each"),e("core-js/modules/es.object.assign"),e("core-js/modules/es.object.keys");var a=s(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var u=s(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(r,"__esModule",{value:!0}),r.setSTSToken=void 0;var c=e("./formatObjKey");r.setSTSToken=n},{"./formatObjKey":57,"@babel/runtime/helpers/asyncToGenerator":70,"@babel/runtime/helpers/interopRequireDefault":71,"@babel/runtime/regenerator":74,"core-js/modules/es.array.find":237,"core-js/modules/es.array.for-each":238,"core-js/modules/es.object.assign":251,"core-js/modules/es.object.keys":253,"regenerator-runtime/runtime":337}],70:[function(e,t,r){function n(e,t,r,n,i,o,s){try{var a=e[o](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,i)}function i(e){return function(){var t=this,r=arguments;return new Promise(function(i,o){function s(e){n(u,i,o,s,a,"next",e)}function a(e){n(u,i,o,s,a,"throw",e)}var u=e.apply(t,r);s(void 0)})}}t.exports=i},{}],71:[function(e,t,r){function n(e){return e&&e.__esModule?e:{default:e}}t.exports=n},{}],72:[function(e,t,r){function n(e){"@babel/helpers - typeof";return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t.exports=n=function(e){return typeof e}:t.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}t.exports=n},{}],73:[function(e,t,r){var n=function(e){"use strict";function t(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}function r(e,t,r,n){var o=t&&t.prototype instanceof i?t:i,s=Object.create(o.prototype),a=new d(n||[]);return s._invoke=c(e,r,a),s}function n(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}function i(){}function o(){}function s(){}function a(e){["next","throw","return"].forEach(function(r){t(e,r,function(e){return this._invoke(r,e)})})}function u(e,t){function r(i,o,s,a){var u=n(e[i],e,o);if("throw"!==u.type){var c=u.arg,l=c.value;return l&&"object"==typeof l&&g.call(l,"__await")?t.resolve(l.__await).then(function(e){r("next",e,s,a)},function(e){r("throw",e,s,a)}):t.resolve(l).then(function(e){c.value=e,s(c)},function(e){return r("throw",e,s,a)})}a(u.arg)}function i(e,n){function i(){return new t(function(t,i){r(e,n,t,i)})}return o=o?o.then(i,i):i()}var o;this._invoke=i}function c(e,t,r){var i=_;return function(o,s){if(i===T)throw new Error("Generator is already running");if(i===S){if("throw"===o)throw s;return m()}for(r.method=o,r.arg=s;;){var a=r.delegate;if(a){var u=l(a,r);if(u){if(u===O)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===_)throw i=S,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=T;var c=n(e,t,r);if("normal"===c.type){if(i=r.done?S:E,c.arg===O)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=S,r.method="throw",r.arg=c.arg)}}}function l(e,t){var r=e.iterator[t.method];if(r===y){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=y,l(e,t),"throw"===t.method))return O;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return O}var i=n(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,O;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=y),t.delegate=null,O):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,O)}function f(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function p(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function d(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(f,this),this.reset(!0)}function h(e){if(e){var t=e[w];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function t(){for(;++r=0;--n){var i=this.tryEntries[n],o=i.completion;if("root"===i.tryLoc)return t("end");if(i.tryLoc<=this.prev){var s=g.call(i,"catchLoc"),a=g.call(i,"finallyLoc");if(s&&a){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&g.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),p(r),O}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;p(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:h(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=y),O}},e}("object"==typeof t?t.exports:{});try{regeneratorRuntime=n}catch(e){Function("r","regeneratorRuntime = r")(n)}},{}],74:[function(e,t,r){t.exports=e("regenerator-runtime")},{"regenerator-runtime":73}],75:[function(e,t,r){function n(){}t.exports=n,t.exports.HttpsAgent=n},{}],76:[function(e,t,r){"use strict";function n(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function i(e){var t=n(e),r=t[0],i=t[1];return 3*(r+i)/4-i}function o(e,t,r){return 3*(t+r)/4-r}function s(e){var t,r,i=n(e),s=i[0],a=i[1],u=new p(o(e,s,a)),c=0,l=a>0?s-4:s;for(r=0;r>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===a&&(t=f[e.charCodeAt(r)]<<2|f[e.charCodeAt(r+1)]>>4,u[c++]=255&t),1===a&&(t=f[e.charCodeAt(r)]<<10|f[e.charCodeAt(r+1)]<<4|f[e.charCodeAt(r+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u}function a(e){return l[e>>18&63]+l[e>>12&63]+l[e>>6&63]+l[63&e]}function u(e,t,r){for(var n,i=[],o=t;os?s:o+16383));return 1===n?(t=e[r-1],i.push(l[t>>2]+l[t<<4&63]+"==")):2===n&&(t=(e[r-2]<<8)+e[r-1],i.push(l[t>>10]+l[t>>4&63]+l[t<<2&63]+"=")),i.join("")}r.byteLength=i,r.toByteArray=s,r.fromByteArray=c;for(var l=[],f=[],p="undefined"!=typeof Uint8Array?Uint8Array:Array,d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h=0,m=d.length;h1&&r[1]||""}function r(t){var r=e.match(t);return r&&r.length>1&&r[2]||""}var i,o=t(/(ipod|iphone|ipad)/i).toLowerCase(),a=/like android/i.test(e),u=!a&&/android/i.test(e),c=/nexus\s*[0-6]\s*/i.test(e),l=!c&&/nexus\s*[0-9]+/i.test(e),f=/CrOS/.test(e),p=/silk/i.test(e),d=/sailfish/i.test(e),h=/tizen/i.test(e),m=/(web|hpw)(o|0)s/i.test(e),y=/windows phone/i.test(e),b=(/SamsungBrowser/i.test(e),!y&&/windows/i.test(e)),g=!o&&!p&&/macintosh/i.test(e),v=!u&&!d&&!h&&!m&&/linux/i.test(e),w=r(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),x=t(/version\/(\d+(\.\d+)?)/i),j=/tablet/i.test(e)&&!/tablet pc/i.test(e),_=!j&&/[^-]mobi/i.test(e),E=/xbox/i.test(e);/opera/i.test(e)?i={name:"Opera",opera:s,version:x||t(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(e)?i={name:"Opera",opera:s,version:t(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||x}:/SamsungBrowser/i.test(e)?i={name:"Samsung Internet for Android",samsungBrowser:s,version:x||t(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(e)?i={name:"NAVER Whale browser",whale:s,version:t(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(e)?i={name:"MZ Browser",mzbrowser:s,version:t(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(e)?i={name:"Opera Coast",coast:s,version:x||t(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(e)?i={name:"Focus",focus:s,version:t(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(e)?i={name:"Yandex Browser",yandexbrowser:s,version:x||t(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(e)?i={name:"UC Browser",ucbrowser:s,version:t(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(e)?i={name:"Maxthon",maxthon:s,version:t(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(e)?i={name:"Epiphany",epiphany:s,version:t(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(e)?i={name:"Puffin",puffin:s,version:t(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(e)?i={name:"Sleipnir",sleipnir:s,version:t(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(e)?i={name:"K-Meleon",kMeleon:s,version:t(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:y?(i={name:"Windows Phone",osname:"Windows Phone",windowsphone:s},w?(i.msedge=s,i.version=w):(i.msie=s,i.version=t(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(e)?i={name:"Internet Explorer",msie:s,version:t(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:f?i={name:"Chrome",osname:"Chrome OS",chromeos:s,chromeBook:s,chrome:s,version:t(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(e)?i={name:"Microsoft Edge",msedge:s,version:w}:/vivaldi/i.test(e)?i={name:"Vivaldi",vivaldi:s,version:t(/vivaldi\/(\d+(\.\d+)?)/i)||x}:d?i={name:"Sailfish",osname:"Sailfish OS",sailfish:s,version:t(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(e)?i={name:"SeaMonkey",seamonkey:s,version:t(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(e)?(i={name:"Firefox",firefox:s,version:t(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(e)&&(i.firefoxos=s,i.osname="Firefox OS")):p?i={name:"Amazon Silk",silk:s,version:t(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(e)?i={name:"PhantomJS",phantom:s,version:t(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(e)?i={name:"SlimerJS",slimer:s,version:t(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(e)||/rim\stablet/i.test(e)?i={name:"BlackBerry",osname:"BlackBerry OS",blackberry:s,version:x||t(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:m?(i={name:"WebOS",osname:"WebOS",webos:s,version:x||t(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(e)&&(i.touchpad=s)):/bada/i.test(e)?i={name:"Bada",osname:"Bada",bada:s,version:t(/dolfin\/(\d+(\.\d+)?)/i)}:h?i={name:"Tizen",osname:"Tizen",tizen:s,version:t(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||x}:/qupzilla/i.test(e)?i={name:"QupZilla",qupzilla:s,version:t(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||x}:/chromium/i.test(e)?i={name:"Chromium",chromium:s,version:t(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||x }:/chrome|crios|crmo/i.test(e)?i={name:"Chrome",chrome:s,version:t(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:u?i={name:"Android",version:x}:/safari|applewebkit/i.test(e)?(i={name:"Safari",safari:s},x&&(i.version=x)):o?(i={name:"iphone"==o?"iPhone":"ipad"==o?"iPad":"iPod"},x&&(i.version=x)):i=/googlebot/i.test(e)?{name:"Googlebot",googlebot:s,version:t(/googlebot\/(\d+(\.\d+))/i)||x}:{name:t(/^(.*)\/(.*) /),version:r(/^(.*)\/(.*) /)},!i.msedge&&/(apple)?webkit/i.test(e)?(/(apple)?webkit\/537\.36/i.test(e)?(i.name=i.name||"Blink",i.blink=s):(i.name=i.name||"Webkit",i.webkit=s),!i.version&&x&&(i.version=x)):!i.opera&&/gecko\//i.test(e)&&(i.name=i.name||"Gecko",i.gecko=s,i.version=i.version||t(/gecko\/(\d+(\.\d+)?)/i)),i.windowsphone||!u&&!i.silk?!i.windowsphone&&o?(i[o]=s,i.ios=s,i.osname="iOS"):g?(i.mac=s,i.osname="macOS"):E?(i.xbox=s,i.osname="Xbox"):b?(i.windows=s,i.osname="Windows"):v&&(i.linux=s,i.osname="Linux"):(i.android=s,i.osname="Android");var T="";i.windows?T=function(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}(t(/Windows ((NT|XP)( \d\d?.\d)?)/i)):i.windowsphone?T=t(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):i.mac?(T=t(/Mac OS X (\d+([_\.\s]\d+)*)/i),T=T.replace(/[_\s]/g,".")):o?(T=t(/os (\d+([_\s]\d+)*) like mac os x/i),T=T.replace(/[_\s]/g,".")):u?T=t(/android[ \/-](\d+(\.\d+)*)/i):i.webos?T=t(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):i.blackberry?T=t(/rim\stablet\sos\s(\d+(\.\d+)*)/i):i.bada?T=t(/bada\/(\d+(\.\d+)*)/i):i.tizen&&(T=t(/tizen[\/\s](\d+(\.\d+)*)/i)),T&&(i.osversion=T);var S=!i.windows&&T.split(".")[0];return j||l||"ipad"==o||u&&(3==S||S>=4&&!_)||i.silk?i.tablet=s:(_||"iphone"==o||"ipod"==o||u||c||i.blackberry||i.webos||i.bada)&&(i.mobile=s),i.msedge||i.msie&&i.version>=10||i.yandexbrowser&&i.version>=15||i.vivaldi&&i.version>=1||i.chrome&&i.version>=20||i.samsungBrowser&&i.version>=4||i.whale&&1===n([i.version,"1.0"])||i.mzbrowser&&1===n([i.version,"6.0"])||i.focus&&1===n([i.version,"1.0"])||i.firefox&&i.version>=20||i.safari&&i.version>=6||i.opera&&i.version>=10||i.ios&&i.osversion&&i.osversion.split(".")[0]>=6||i.blackberry&&i.version>=10.1||i.chromium&&i.version>=20?i.a=s:i.msie&&i.version<10||i.chrome&&i.version<20||i.firefox&&i.version<20||i.safari&&i.version<6||i.opera&&i.version<10||i.ios&&i.osversion&&i.osversion.split(".")[0]<6||i.chromium&&i.version<20?i.c=s:i.x=s,i}function t(e){return e.split(".").length}function r(e,t){var r,n=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(r=0;r=0;){if(i[0][n]>i[1][n])return 1;if(i[0][n]!==i[1][n])return-1;if(0===n)return 0}}function i(t,r,i){var o=a;"string"==typeof r&&(i=r,r=void 0),void 0===r&&(r=!1),i&&(o=e(i));var s=""+o.version;for(var u in t)if(t.hasOwnProperty(u)&&o[u]){if("string"!=typeof t[u])throw new Error("Browser version in the minVersion map should be a string: "+u+": "+String(t));return n([s,t[u]])<0}return r}function o(e,t,r){return!i(e,t,r)}var s=!0,a=e("undefined"!=typeof navigator?navigator.userAgent||"":"");return a.test=function(e){for(var t=0;te._pos){var o=r.substr(e._pos);if("x-user-defined"===e._charset){for(var s=i.alloc(o.length),a=0;ae._pos&&(e.push(i.from(new Uint8Array(c.result.slice(e._pos)))),e._pos=c.result.byteLength)},c.onload=function(){e.push(null)},c.readAsArrayBuffer(r)}e._xhr.readyState===u.DONE&&"ms-stream"!==e._mode&&e.push(null)}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer)},{"./capability":80,_process:393,buffer:98,inherits:307,"readable-stream":97}],83:[function(e,t,r){"use strict";function n(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function i(e,t,r){function i(e,r,n){return"string"==typeof t?t:t(e,r,n)}r||(r=Error);var o=function(e){function t(t,r,n){return e.call(this,i(t,r,n))||this}return n(t,e),t}(r);o.prototype.name=r.name,o.prototype.code=e,c[e]=o}function o(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map(function(e){return String(e)}),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}function s(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function a(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function u(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}var c={};i("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),i("ERR_INVALID_ARG_TYPE",function(e,t,r){var n;"string"==typeof t&&s(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";var i;if(a(e," argument"))i="The ".concat(e," ").concat(n," ").concat(o(t,"type"));else{var c=u(e,".")?"property":"argument";i='The "'.concat(e,'" ').concat(c," ").concat(n," ").concat(o(t,"type"))}return i+=". Received type ".concat(typeof r)},TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=c},{}],84:[function(e,t,r){(function(r){"use strict";function n(e){if(!(this instanceof n))return new n(e);a.call(this,e),u.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",i)))}function i(){this._writableState.ended||r.nextTick(o,this)}function o(e){e.end()}var s=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};t.exports=n;var a=e("./_stream_readable"),u=e("./_stream_writable");e("inherits")(n,a);for(var c=s(u.prototype),l=0;l0)if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===C.prototype||(t=i(t)),n)s.endEmitted?K(e,new z):l(e,s,t,!0);else if(s.ended)K(e,new V);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?l(e,s,t,!1):b(e,s)):l(e,s,t,!1)}else n||(s.reading=!1,b(e,s))}return!s.ended&&(s.length=$?e=$:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function d(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=p(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function h(e,t){if(I("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?m(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,y(e)))}}function m(e){var t=e._readableState;I("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(I("emitReadable",t.flowing),t.emittedReadable=!0,r.nextTick(y,e))}function y(e){var t=e._readableState;I("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,E(e)}function b(e,t){t.readingMore||(t.readingMore=!0,r.nextTick(g,e,t))}function g(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function x(e){I("readable nexttick read 0"),e.read(0)}function j(e,t){t.resumeScheduled||(t.resumeScheduled=!0,r.nextTick(_,e,t))}function _(e,t){I("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),E(e),t.flowing&&!t.reading&&e.read(0)}function E(e){var t=e._readableState;for(I("flow",t.flowing);t.flowing&&null!==e.read(););}function T(e,t){if(0===t.length)return null;var r;return t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r}function S(e){var t=e._readableState;I("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,r.nextTick(O,t,e))}function O(e,t){if(I("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function k(e,t){for(var r=0,n=e.length;r=t.highWaterMark:t.length>0)||t.ended))return I("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?S(this):m(this),null;if(0===(e=d(e,t))&&t.ended)return 0===t.length&&S(this),null;var n=t.needReadable;I("need readable",n),(0===t.length||t.length-e0?T(e,t):null,null===i?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&S(this)),null!==i&&this.emit("data",i),i},u.prototype._read=function(e){K(this,new H("_read()"))},u.prototype.pipe=function(e,t){function n(e,t){I("onunpipe"),e===p&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,o())}function i(){I("onend"),e.end()}function o(){I("cleanup"),e.removeListener("close",c),e.removeListener("finish",l),e.removeListener("drain",y),e.removeListener("error",u),e.removeListener("unpipe",n),p.removeListener("end",i),p.removeListener("end",f),p.removeListener("data",a),b=!0,!d.awaitDrain||e._writableState&&!e._writableState.needDrain||y()}function a(t){I("ondata");var r=e.write(t);I("dest.write",r),!1===r&&((1===d.pipesCount&&d.pipes===e||d.pipesCount>1&&-1!==k(d.pipes,e))&&!b&&(I("false write response, pause",d.awaitDrain),d.awaitDrain++),p.pause())}function u(t){I("onerror",t),f(),e.removeListener("error",u),0===N(e,"error")&&K(e,t)}function c(){e.removeListener("finish",l),f()}function l(){I("onfinish"),e.removeListener("close",c),f()}function f(){I("unpipe"),p.unpipe(e)}var p=this,d=this._readableState;switch(d.pipesCount){case 0:d.pipes=e;break;case 1:d.pipes=[d.pipes,e];break;default:d.pipes.push(e)}d.pipesCount+=1,I("pipe count=%d opts=%j",d.pipesCount,t);var h=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr,m=h?i:f;d.endEmitted?r.nextTick(m):p.once("end",m),e.on("unpipe",n);var y=v(p);e.on("drain",y);var b=!1;return p.on("data",a),s(e,"error",u),e.once("close",c),e.once("finish",l),e.emit("pipe",p),d.flowing||(I("pipe resume"),p.resume()),e},u.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o0,!1!==i.flowing&&this.resume()):"readable"===e&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,I("on readable",i.length,i.reading),i.length?m(this):i.reading||r.nextTick(x,this))),n},u.prototype.addListener=u.prototype.on,u.prototype.removeListener=function(e,t){var n=D.prototype.removeListener.call(this,e,t);return"readable"===e&&r.nextTick(w,this),n},u.prototype.removeAllListeners=function(e){var t=D.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||r.nextTick(w,this),t},u.prototype.resume=function(){var e=this._readableState;return e.flowing||(I("resume"),e.flowing=!e.readableListening,j(this,e)),e.paused=!1,this},u.prototype.pause=function(){return I("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(I("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},u.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;e.on("end",function(){if(I("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){if(I("wrapped data"),r.decoder&&(i=r.decoder.write(i)),(!r.objectMode||null!==i&&void 0!==i)&&(r.objectMode||i&&i.length)){t.push(i)||(n=!0,e.pause())}});for(var i in e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o-1))throw new W(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),c.prototype._write=function(e,t,r){r(new L("_write()"))},c.prototype._writev=null,c.prototype.end=function(e,t,r){var n=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!==e&&void 0!==e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||T(this,n,r),this},Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),c.prototype.destroy=D.destroy,c.prototype._undestroy=D.undestroy,c.prototype._destroy=function(e,t){t(e)}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../errors":83,"./_stream_duplex":84,"./internal/streams/destroy":91,"./internal/streams/state":95,"./internal/streams/stream":96,_process:393,buffer:98,inherits:307,"util-deprecate":343}],89:[function(e,t,r){(function(r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e,t){return{value:e,done:t}}function o(e){var t=e[l];if(null!==t){var r=e[y].read();null!==r&&(e[h]=null,e[l]=null,e[f]=null,t(i(r,!1)))}}function s(e){r.nextTick(o,e)}function a(e,t){return function(r,n){e.then(function(){if(t[d])return void r(i(void 0,!0));t[m](r,n)},n)}}var u,c=e("./end-of-stream"),l=Symbol("lastResolve"),f=Symbol("lastReject"),p=Symbol("error"),d=Symbol("ended"),h=Symbol("lastPromise"),m=Symbol("handlePromise"),y=Symbol("stream"),b=Object.getPrototypeOf(function(){}),g=Object.setPrototypeOf((u={get stream(){return this[y]},next:function(){var e=this,t=this[p];if(null!==t)return Promise.reject(t);if(this[d])return Promise.resolve(i(void 0,!0));if(this[y].destroyed)return new Promise(function(t,n){r.nextTick(function(){e[p]?n(e[p]):t(i(void 0,!0))})});var n,o=this[h];if(o)n=new Promise(a(o,this));else{var s=this[y].read();if(null!==s)return Promise.resolve(i(s,!1));n=new Promise(this[m])}return this[h]=n,n}},n(u,Symbol.asyncIterator,function(){return this}),n(u,"return",function(){var e=this;return new Promise(function(t,r){e[y].destroy(null,function(e){if(e)return void r(e);t(i(void 0,!0))})})}),u),b),v=function(e){var t,r=Object.create(g,(t={},n(t,y,{value:e,writable:!0}),n(t,l,{value:null,writable:!0}),n(t,f,{value:null,writable:!0}),n(t,p,{value:null,writable:!0}),n(t,d,{value:e._readableState.endEmitted,writable:!0}),n(t,m,{value:function(e,t){var n=r[y].read();n?(r[h]=null,r[l]=null,r[f]=null,e(i(n,!1))):(r[l]=e,r[f]=t)},writable:!0}),t));return r[h]=null,c(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[f];return null!==t&&(r[h]=null,r[l]=null,r[f]=null,t(e)),void(r[p]=e)}var n=r[l];null!==n&&(r[h]=null,r[l]=null,r[f]=null,n(i(void 0,!0))),r[d]=!0}),e.on("readable",s.bind(null,r)),r};t.exports=v}).call(this,e("_process"))},{"./end-of-stream":92,_process:393}],90:[function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return f.alloc(0);for(var t=f.allocUnsafe(e>>>0),r=this.head,n=0;r;)c(r.data,t,n),n+=r.data.length,r=r.next;return t}},{key:"consume",value:function(e,t){var r;return ei.length?i.length:e;if(o===i.length?n+=i:n+=i.slice(0,e),0===(e-=o)){o===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=f.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0===(e-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,t}},{key:h,value:function(e,t){return d(this,i({},t,{depth:0,customInspect:!1}))}}]),e}()},{buffer:98,util:78}],91:[function(e,t,r){(function(e){"use strict";function r(t,r){var o=this,a=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return a||u?(r?r(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(s,this,t)):e.nextTick(s,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(t){!r&&t?o._writableState?o._writableState.errorEmitted?e.nextTick(i,o):(o._writableState.errorEmitted=!0,e.nextTick(n,o,t)):e.nextTick(n,o,t):r?(e.nextTick(i,o),r(t)):e.nextTick(i,o)}),this)}function n(e,t){s(e,t),i(e)}function i(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function o(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function s(e,t){e.emit("error",t)}function a(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}t.exports={destroy:r,undestroy:o,errorOrDestroy:a}}).call(this,e("_process"))},{_process:393}],92:[function(e,t,r){"use strict";function n(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i0,function(e){i||(i=e),e&&o.forEach(a),u||(o.forEach(a),n(i))})});return t.reduce(u)}var f,p=e("../../../errors").codes,d=p.ERR_MISSING_ARGS,h=p.ERR_STREAM_DESTROYED;t.exports=l},{"../../../errors":83,"./end-of-stream":92}],95:[function(e,t,r){"use strict";function n(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}function i(e,t,r,i){var s=n(t,i,r);if(null!=s){if(!isFinite(s)||Math.floor(s)!==s||s<0){throw new o(i?r:"highWaterMark",s)}return Math.floor(s)}return e.objectMode?16:16384}var o=e("../../../errors").codes.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:i}},{"../../../errors":83}],96:[function(e,t,r){t.exports=e("events").EventEmitter},{events:297}],97:[function(e,t,r){r=t.exports=e("./lib/_stream_readable.js"),r.Stream=r,r.Readable=r,r.Writable=e("./lib/_stream_writable.js"),r.Duplex=e("./lib/_stream_duplex.js"),r.Transform=e("./lib/_stream_transform.js"),r.PassThrough=e("./lib/_stream_passthrough.js"),r.finished=e("./lib/internal/streams/end-of-stream.js"),r.pipeline=e("./lib/internal/streams/pipeline.js")},{"./lib/_stream_duplex.js":84,"./lib/_stream_passthrough.js":85,"./lib/_stream_readable.js":86,"./lib/_stream_transform.js":87,"./lib/_stream_writable.js":88,"./lib/internal/streams/end-of-stream.js":92,"./lib/internal/streams/pipeline.js":94}],98:[function(e,t,r){(function(t){"use strict";function n(e){if(e>K)throw new RangeError('The value "'+e+'" is invalid for option "size"');var r=new Uint8Array(e);return r.__proto__=t.prototype,r}function t(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return a(e)}return i(e,t,r)}function i(e,r,n){if("string"==typeof e)return u(e,r);if(ArrayBuffer.isView(e))return c(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(X(e,ArrayBuffer)||e&&X(e.buffer,ArrayBuffer))return l(e,r,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var i=e.valueOf&&e.valueOf();if(null!=i&&i!==e)return t.from(i,r,n);var o=f(e);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return t.from(e[Symbol.toPrimitive]("string"),r,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function o(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function s(e,t,r){return o(e),e<=0?n(e):void 0!==t?"string"==typeof r?n(e).fill(t,r):n(e).fill(t):n(e)}function a(e){return o(e),n(e<0?0:0|p(e))}function u(e,r){if("string"==typeof r&&""!==r||(r="utf8"),!t.isEncoding(r))throw new TypeError("Unknown encoding: "+r);var i=0|h(e,r),o=n(i),s=o.write(e,r);return s!==i&&(o=o.slice(0,s)),o}function c(e){for(var t=e.length<0?0:0|p(e.length),r=n(t),i=0;i=K)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+K.toString(16)+" bytes");return 0|e}function d(e){return+e!=e&&(e=0),t.alloc(+e)}function h(e,r){if(t.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||X(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,i=arguments.length>2&&!0===arguments[2];if(!i&&0===n)return 0;for(var o=!1;;)switch(r){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return q(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return G(e).length;default:if(o)return i?-1:q(e).length;r=(""+r).toLowerCase(),o=!0}}function m(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,t>>>=0,r<=t)return"";for(e||(e="utf8");;)switch(e){case"hex":return I(this,t,r);case"utf8":case"utf-8":return S(this,t,r);case"ascii":return k(this,t,r);case"latin1":case"binary":return A(this,t,r);case"base64":return T(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function y(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function b(e,r,n,i,o){if(0===e.length)return-1;if("string"==typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,V(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof r&&(r=t.from(r,i)),t.isBuffer(r))return 0===r.length?-1:g(e,r,n,i,o);if("number"==typeof r)return r&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,r,n):Uint8Array.prototype.lastIndexOf.call(e,r,n):g(e,[r],n,i,o);throw new TypeError("val must be string, number or Buffer")}function g(e,t,r,n,i){function o(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}var s=1,a=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;s=2,a/=2,u/=2,r/=2}var c;if(i){var l=-1;for(c=r;ca&&(r=a-u),c=r;c>=0;c--){for(var f=!0,p=0;pi&&(n=i):n=i;var o=t.length;n>o/2&&(n=o/2);for(var s=0;s239?4:o>223?3:o>191?2:1;if(i+a<=r){var u,c,l,f;switch(a){case 1:o<128&&(s=o);break;case 2:u=e[i+1],128==(192&u)&&(f=(31&o)<<6|63&u)>127&&(s=f);break;case 3:u=e[i+1],c=e[i+2],128==(192&u)&&128==(192&c)&&(f=(15&o)<<12|(63&u)<<6|63&c)>2047&&(f<55296||f>57343)&&(s=f);break;case 4:u=e[i+1],c=e[i+2],l=e[i+3],128==(192&u)&&128==(192&c)&&128==(192&l)&&(f=(15&o)<<18|(63&u)<<12|(63&c)<<6|63&l)>65535&&f<1114112&&(s=f)}}null===s?(s=65533,a=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|1023&s),n.push(s),i+=a}return O(n)}function O(e){var t=e.length;if(t<=Y)return String.fromCharCode.apply(String,e);for(var r="",n=0;nn)&&(r=n);for(var i="",o=t;or)throw new RangeError("Trying to access beyond buffer length")}function C(e,r,n,i,o,s){if(!t.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>o||re.length)throw new RangeError("Index out of range")}function R(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function M(e,t,r,n,i){return t=+t,r>>>=0,i||R(e,t,r,4,3.4028234663852886e38,-3.4028234663852886e38),z.write(e,t,r,n,23,4),r+4}function P(e,t,r,n,i){return t=+t,r>>>=0,i||R(e,t,r,8,1.7976931348623157e308,-1.7976931348623157e308),z.write(e,t,r,n,52,8),r+8}function L(e){if(e=e.split("=")[0],e=e.trim().replace($,""),e.length<2)return"";for(;e.length%4!=0;)e+="=";return e}function B(e){return e<16?"0"+e.toString(16):e.toString(16)}function q(e,t){t=t||1/0;for(var r,n=e.length,i=null,o=[],s=0;s55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function F(e){for(var t=[],r=0;r>8,i=r%256,o.push(i),o.push(n);return o}function G(e){return H.toByteArray(L(e))}function W(e,t,r,n){for(var i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function X(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function V(e){return e!==e}var H=e("base64-js"),z=e("ieee754");r.Buffer=t,r.SlowBuffer=d,r.INSPECT_MAX_BYTES=50;var K=2147483647;r.kMaxLength=K,t.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(e){return!1}}(),t.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(t.prototype,"parent",{enumerable:!0,get:function(){if(t.isBuffer(this))return this.buffer}}),Object.defineProperty(t.prototype,"offset",{enumerable:!0,get:function(){if(t.isBuffer(this))return this.byteOffset}}),"undefined"!=typeof Symbol&&null!=Symbol.species&&t[Symbol.species]===t&&Object.defineProperty(t,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),t.poolSize=8192,t.from=function(e,t,r){return i(e,t,r)},t.prototype.__proto__=Uint8Array.prototype,t.__proto__=Uint8Array,t.alloc=function(e,t,r){return s(e,t,r)},t.allocUnsafe=function(e){return a(e)},t.allocUnsafeSlow=function(e){return a(e)},t.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==t.prototype},t.compare=function(e,r){if(X(e,Uint8Array)&&(e=t.from(e,e.offset,e.byteLength)),X(r,Uint8Array)&&(r=t.from(r,r.offset,r.byteLength)),!t.isBuffer(e)||!t.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===r)return 0;for(var n=e.length,i=r.length,o=0,s=Math.min(n,i);ot&&(e+=" ... "),""},t.prototype.compare=function(e,r,n,i,o){if(X(e,Uint8Array)&&(e=t.from(e,e.offset,e.byteLength)),!t.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===r&&(r=0),void 0===n&&(n=e?e.length:0),void 0===i&&(i=0),void 0===o&&(o=this.length),r<0||n>e.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&r>=n)return 0;if(i>=o)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,o>>>=0,this===e)return 0;for(var s=o-i,a=n-r,u=Math.min(s,a),c=this.slice(i,o),l=e.slice(r,n),f=0;f>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return v(this,e,t,r);case"utf8":case"utf-8":return w(this,e,t,r);case"ascii":return x(this,e,t,r);case"latin1":case"binary":return j(this,e,t,r);case"base64":return _(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},t.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Y=4096;t.prototype.slice=function(e,r){var n=this.length;e=~~e,r=void 0===r?n:~~r,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),r<0?(r+=n)<0&&(r=0):r>n&&(r=n),r>>=0,t>>>=0,r||D(e,t,this.length);for(var n=this[e],i=1,o=0;++o>>=0,t>>>=0,r||D(e,t,this.length) ;for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},t.prototype.readUInt8=function(e,t){return e>>>=0,t||D(e,1,this.length),this[e]},t.prototype.readUInt16LE=function(e,t){return e>>>=0,t||D(e,2,this.length),this[e]|this[e+1]<<8},t.prototype.readUInt16BE=function(e,t){return e>>>=0,t||D(e,2,this.length),this[e]<<8|this[e+1]},t.prototype.readUInt32LE=function(e,t){return e>>>=0,t||D(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},t.prototype.readUInt32BE=function(e,t){return e>>>=0,t||D(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},t.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||D(e,t,this.length);for(var n=this[e],i=1,o=0;++o=i&&(n-=Math.pow(2,8*t)),n},t.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||D(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},t.prototype.readInt8=function(e,t){return e>>>=0,t||D(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},t.prototype.readInt16LE=function(e,t){e>>>=0,t||D(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},t.prototype.readInt16BE=function(e,t){e>>>=0,t||D(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},t.prototype.readInt32LE=function(e,t){return e>>>=0,t||D(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},t.prototype.readInt32BE=function(e,t){return e>>>=0,t||D(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},t.prototype.readFloatLE=function(e,t){return e>>>=0,t||D(e,4,this.length),z.read(this,e,!0,23,4)},t.prototype.readFloatBE=function(e,t){return e>>>=0,t||D(e,4,this.length),z.read(this,e,!1,23,4)},t.prototype.readDoubleLE=function(e,t){return e>>>=0,t||D(e,8,this.length),z.read(this,e,!0,52,8)},t.prototype.readDoubleBE=function(e,t){return e>>>=0,t||D(e,8,this.length),z.read(this,e,!1,52,8)},t.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){C(this,e,t,r,Math.pow(2,8*r)-1,0)}var i=1,o=0;for(this[t]=255&e;++o>>=0,r>>>=0,!n){C(this,e,t,r,Math.pow(2,8*r)-1,0)}var i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},t.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,1,255,0),this[t]=255&e,t+1},t.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},t.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},t.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},t.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},t.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);C(this,e,t,r,i-1,-i)}var o=0,s=1,a=0;for(this[t]=255&e;++o>0)-a&255;return t+r},t.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);C(this,e,t,r,i-1,-i)}var o=r-1,s=1,a=0;for(this[t+o]=255&e;--o>=0&&(s*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+r},t.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},t.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},t.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},t.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},t.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||C(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},t.prototype.writeFloatLE=function(e,t,r){return M(this,e,t,!0,r)},t.prototype.writeFloatBE=function(e,t,r){return M(this,e,t,!1,r)},t.prototype.writeDoubleLE=function(e,t,r){return P(this,e,t,!0,r)},t.prototype.writeDoubleBE=function(e,t,r){return P(this,e,t,!1,r)},t.prototype.copy=function(e,r,n,i){if(!t.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),i||0===i||(i=this.length),r>=e.length&&(r=e.length),r||(r=0),i>0&&i=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-r=0;--s)e[s+r]=this[s+n];else Uint8Array.prototype.set.call(e,this.subarray(n,i),r);return o},t.prototype.fill=function(e,r,n,i){if("string"==typeof e){if("string"==typeof r?(i=r,r=0,n=this.length):"string"==typeof n&&(i=n,n=this.length),void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!t.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(1===e.length){var o=e.charCodeAt(0);("utf8"===i&&o<128||"latin1"===i)&&(e=o)}}else"number"==typeof e&&(e&=255);if(r<0||this.length>>=0,n=void 0===n?this.length:n>>>0,e||(e=0);var s;if("number"==typeof e)for(s=r;s>8&255]},C=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},R=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},M=function(e){return A(e,23,4)},P=function(e){return A(e,52,8)},L=function(e,t){b(e.prototype,t,{get:function(){return x(this)[t]}})},B=function(e,t,r,n){var i=p(r),o=x(e);if(i+t>o.byteLength)throw k("Wrong index");var s=x(o.buffer).bytes,a=i+o.byteOffset,u=s.slice(a,a+t);return n?u:u.reverse()},q=function(e,t,r,n,i,o){var s=p(r),a=x(e);if(s+t>a.byteLength)throw k("Wrong index");for(var u=x(a.buffer).bytes,c=s+a.byteOffset,l=n(+i),f=0;fW;)(F=G[W++])in E||s(E,F,_[F]);U.constructor=E}m&&h(S)!==O&&m(S,O);var X=new T(new E(2)),V=S.setInt8;X.setInt8(0,2147483648),X.setInt8(1,2147483649),!X.getInt8(0)&&X.getInt8(1)||a(S,{setInt8:function(e,t){V.call(this,e,t<<24>>24)},setUint8:function(e,t){V.call(this,e,t<<24>>24)}},{unsafe:!0})}else E=function(e){c(this,E,"ArrayBuffer");var t=p(e);j(this,{bytes:g.call(new Array(t),0),byteLength:t}),i||(this.byteLength=t)},T=function(e,t,r){c(this,T,"DataView"),c(e,E,"DataView");var n=x(e).byteLength,o=l(t);if(o<0||o>n)throw k("Wrong offset");if(r=void 0===r?n-o:f(r),o+r>n)throw k("Wrong length");j(this,{buffer:e,byteLength:r,byteOffset:o}),i||(this.buffer=e,this.byteLength=r,this.byteOffset=o)},i&&(L(E,"byteLength"),L(T,"buffer"),L(T,"byteLength"),L(T,"byteOffset")),a(T.prototype,{getInt8:function(e){return B(this,1,e)[0]<<24>>24},getUint8:function(e){return B(this,1,e)[0]},getInt16:function(e){var t=B(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=B(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return R(B(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return R(B(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return I(B(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return I(B(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){q(this,1,e,N,t)},setUint8:function(e,t){q(this,1,e,N,t)},setInt16:function(e,t){q(this,2,e,D,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){q(this,2,e,D,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){q(this,4,e,C,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){q(this,4,e,C,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){q(this,4,e,M,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){q(this,8,e,P,t,arguments.length>2?arguments[2]:void 0)}});v(E,"ArrayBuffer"),v(T,"DataView"),t.exports={ArrayBuffer:E,DataView:T}},{"../internals/an-instance":106,"../internals/array-buffer-native":108,"../internals/array-fill":112,"../internals/create-non-enumerable-property":131,"../internals/descriptors":136,"../internals/fails":145,"../internals/global":150,"../internals/ieee754":156,"../internals/internal-state":160,"../internals/object-define-property":180,"../internals/object-get-own-property-names":183,"../internals/object-get-prototype-of":185,"../internals/object-set-prototype-of":189,"../internals/redefine-all":196,"../internals/set-to-string-tag":206,"../internals/to-index":216,"../internals/to-integer":218,"../internals/to-length":219}],111:[function(e,t,r){"use strict";var n=e("../internals/to-object"),i=e("../internals/to-absolute-index"),o=e("../internals/to-length"),s=Math.min;t.exports=[].copyWithin||function(e,t){var r=n(this),a=o(r.length),u=i(e,a),c=i(t,a),l=arguments.length>2?arguments[2]:void 0,f=s((void 0===l?a:i(l,a))-c,a-u),p=1;for(c0;)c in r?r[u]=r[c]:delete r[u],u+=p,c+=p;return r}},{"../internals/to-absolute-index":215,"../internals/to-length":219,"../internals/to-object":220}],112:[function(e,t,r){"use strict";var n=e("../internals/to-object"),i=e("../internals/to-absolute-index"),o=e("../internals/to-length");t.exports=function(e){for(var t=n(this),r=o(t.length),s=arguments.length,a=i(s>1?arguments[1]:void 0,r),u=s>2?arguments[2]:void 0,c=void 0===u?r:i(u,r);c>a;)t[a++]=e;return t}},{"../internals/to-absolute-index":215,"../internals/to-length":219,"../internals/to-object":220}],113:[function(e,t,r){"use strict";var n=e("../internals/array-iteration").forEach,i=e("../internals/array-method-is-strict"),o=e("../internals/array-method-uses-to-length"),s=i("forEach"),a=o("forEach");t.exports=s&&a?[].forEach:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}},{"../internals/array-iteration":116,"../internals/array-method-is-strict":119,"../internals/array-method-uses-to-length":120}],114:[function(e,t,r){"use strict";var n=e("../internals/function-bind-context"),i=e("../internals/to-object"),o=e("../internals/call-with-safe-iteration-closing"),s=e("../internals/is-array-iterator-method"),a=e("../internals/to-length"),u=e("../internals/create-property"),c=e("../internals/get-iterator-method");t.exports=function(e){var t,r,l,f,p,d,h=i(e),m="function"==typeof this?this:Array,y=arguments.length,b=y>1?arguments[1]:void 0,g=void 0!==b,v=c(h),w=0;if(g&&(b=n(b,y>2?arguments[2]:void 0,2)),void 0==v||m==Array&&s(v))for(t=a(h.length),r=new m(t);t>w;w++)d=g?b(h[w],w):h[w],u(r,w,d);else for(f=v.call(h),p=f.next,r=new m;!(l=p.call(f)).done;w++)d=g?o(f,b,[l.value,w],!0):l.value,u(r,w,d);return r.length=w,r}},{"../internals/call-with-safe-iteration-closing":123,"../internals/create-property":133,"../internals/function-bind-context":147,"../internals/get-iterator-method":149,"../internals/is-array-iterator-method":161,"../internals/to-length":219,"../internals/to-object":220}],115:[function(e,t,r){var n=e("../internals/to-indexed-object"),i=e("../internals/to-length"),o=e("../internals/to-absolute-index"),s=function(e){return function(t,r,s){var a,u=n(t),c=i(u.length),l=o(s,c);if(e&&r!=r){for(;c>l;)if((a=u[l++])!=a)return!0}else for(;c>l;l++)if((e||l in u)&&u[l]===r)return e||l||0;return!e&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},{"../internals/to-absolute-index":215,"../internals/to-indexed-object":217,"../internals/to-length":219}],116:[function(e,t,r){var n=e("../internals/function-bind-context"),i=e("../internals/indexed-object"),o=e("../internals/to-object"),s=e("../internals/to-length"),a=e("../internals/array-species-create"),u=[].push,c=function(e){var t=1==e,r=2==e,c=3==e,l=4==e,f=6==e,p=5==e||f;return function(d,h,m,y){for(var b,g,v=o(d),w=i(v),x=n(h,m,3),j=s(w.length),_=0,E=y||a,T=t?E(d,j):r?E(d,0):void 0;j>_;_++)if((p||_ in w)&&(b=w[_],g=x(b,_,v),e))if(t)T[_]=g;else if(g)switch(e){case 3:return!0;case 5:return b;case 6:return _;case 2:u.call(T,b)}else if(l)return!1;return f?-1:c||l?l:T}};t.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6)}},{"../internals/array-species-create":122,"../internals/function-bind-context":147,"../internals/indexed-object":157,"../internals/to-length":219,"../internals/to-object":220}],117:[function(e,t,r){"use strict";var n=e("../internals/to-indexed-object"),i=e("../internals/to-integer"),o=e("../internals/to-length"),s=e("../internals/array-method-is-strict"),a=e("../internals/array-method-uses-to-length"),u=Math.min,c=[].lastIndexOf,l=!!c&&1/[1].lastIndexOf(1,-0)<0,f=s("lastIndexOf"),p=a("indexOf",{ACCESSORS:!0,1:0}),d=l||!f||!p;t.exports=d?function(e){if(l)return c.apply(this,arguments)||0;var t=n(this),r=o(t.length),s=r-1;for(arguments.length>1&&(s=u(s,i(arguments[1]))),s<0&&(s=r+s);s>=0;s--)if(s in t&&t[s]===e)return s||0;return-1}:c},{"../internals/array-method-is-strict":119,"../internals/array-method-uses-to-length":120,"../internals/to-indexed-object":217,"../internals/to-integer":218,"../internals/to-length":219}],118:[function(e,t,r){var n=e("../internals/fails"),i=e("../internals/well-known-symbol"),o=e("../internals/engine-v8-version"),s=i("species");t.exports=function(e){return o>=51||!n(function(){var t=[],r=t.constructor={};return r[s]=function(){return{foo:1}},1!==t[e](Boolean).foo})}},{"../internals/engine-v8-version":142,"../internals/fails":145,"../internals/well-known-symbol":231}],119:[function(e,t,r){"use strict";var n=e("../internals/fails");t.exports=function(e,t){var r=[][e];return!!r&&n(function(){r.call(null,t||function(){throw 1},1)})}},{"../internals/fails":145}],120:[function(e,t,r){var n=e("../internals/descriptors"),i=e("../internals/fails"),o=e("../internals/has"),s=Object.defineProperty,a={},u=function(e){throw e};t.exports=function(e,t){if(o(a,e))return a[e];t||(t={});var r=[][e],c=!!o(t,"ACCESSORS")&&t.ACCESSORS,l=o(t,0)?t[0]:u,f=o(t,1)?t[1]:void 0;return a[e]=!!r&&!i(function(){if(c&&!n)return!0;var e={length:-1};c?s(e,1,{enumerable:!0,get:u}):e[1]=1,r.call(e,l,f)})}},{"../internals/descriptors":136,"../internals/fails":145,"../internals/has":151}],121:[function(e,t,r){var n=e("../internals/a-function"),i=e("../internals/to-object"),o=e("../internals/indexed-object"),s=e("../internals/to-length"),a=function(e){return function(t,r,a,u){n(r);var c=i(t),l=o(c),f=s(c.length),p=e?f-1:0,d=e?-1:1;if(a<2)for(;;){if(p in l){u=l[p],p+=d;break}if(p+=d,e?p<0:f<=p)throw TypeError("Reduce of empty array with no initial value")}for(;e?p>=0:f>p;p+=d)p in l&&(u=r(u,l[p],p,c));return u}};t.exports={left:a(!1),right:a(!0)}},{"../internals/a-function":102,"../internals/indexed-object":157,"../internals/to-length":219,"../internals/to-object":220}],122:[function(e,t,r){var n=e("../internals/is-object"),i=e("../internals/is-array"),o=e("../internals/well-known-symbol"),s=o("species");t.exports=function(e,t){var r;return i(e)&&(r=e.constructor,"function"!=typeof r||r!==Array&&!i(r.prototype)?n(r)&&null===(r=r[s])&&(r=void 0):r=void 0),new(void 0===r?Array:r)(0===t?0:t)}},{"../internals/is-array":162,"../internals/is-object":164,"../internals/well-known-symbol":231}],123:[function(e,t,r){var n=e("../internals/an-object"),i=e("../internals/iterator-close");t.exports=function(e,t,r,o){try{return o?t(n(r)[0],r[1]):t(r)}catch(t){throw i(e),t}}},{"../internals/an-object":107,"../internals/iterator-close":168}],124:[function(e,t,r){var n=e("../internals/well-known-symbol"),i=n("iterator"),o=!1;try{var s=0,a={next:function(){return{done:!!s++}},return:function(){o=!0}};a[i]=function(){return this},Array.from(a,function(){throw 2})}catch(e){}t.exports=function(e,t){if(!t&&!o)return!1;var r=!1;try{var n={};n[i]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(e){}return r}},{"../internals/well-known-symbol":231}],125:[function(e,t,r){var n={}.toString;t.exports=function(e){return n.call(e).slice(8,-1)}},{}],126:[function(e,t,r){var n=e("../internals/to-string-tag-support"),i=e("../internals/classof-raw"),o=e("../internals/well-known-symbol"),s=o("toStringTag"),a="Arguments"==i(function(){return arguments}()),u=function(e,t){try{return e[t]}catch(e){}};t.exports=n?i:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=u(t=Object(e),s))?r:a?i(t):"Object"==(n=i(t))&&"function"==typeof t.callee?"Arguments":n}},{"../internals/classof-raw":125,"../internals/to-string-tag-support":224,"../internals/well-known-symbol":231}],127:[function(e,t,r){var n=e("../internals/has"),i=e("../internals/own-keys"),o=e("../internals/object-get-own-property-descriptor"),s=e("../internals/object-define-property");t.exports=function(e,t){for(var r=i(t),a=s.f,u=o.f,c=0;c=74)&&(n=s.match(/Chrome\/(\d+)/))&&(i=n[1]),t.exports=i&&+i},{"../internals/engine-user-agent":141,"../internals/global":150}],143:[function(e,t,r){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],144:[function(e,t,r){var n=e("../internals/global"),i=e("../internals/object-get-own-property-descriptor").f,o=e("../internals/create-non-enumerable-property"),s=e("../internals/redefine"),a=e("../internals/set-global"),u=e("../internals/copy-constructor-properties"),c=e("../internals/is-forced");t.exports=function(e,t){var r,l,f,p,d,h=e.target,m=e.global,y=e.stat;if(r=m?n:y?n[h]||a(h,{}):(n[h]||{}).prototype)for(l in t){if(p=t[l],e.noTargetGet?(d=i(r,l),f=d&&d.value):f=r[l],!c(m?l:h+(y?".":"#")+l,e.forced)&&void 0!==f){if(typeof p==typeof f)continue;u(p,f)}(e.sham||f&&f.sham)&&o(p,"sham",!0),s(r,l,p,e)}}},{"../internals/copy-constructor-properties":127,"../internals/create-non-enumerable-property":131,"../internals/global":150,"../internals/is-forced":163,"../internals/object-get-own-property-descriptor":181,"../internals/redefine":197,"../internals/set-global":204}],145:[function(e,t,r){t.exports=function(e){try{return!!e()}catch(e){return!0}}},{}],146:[function(e,t,r){"use strict";e("../modules/es.regexp.exec");var n=e("../internals/redefine"),i=e("../internals/fails"),o=e("../internals/well-known-symbol"),s=e("../internals/regexp-exec"),a=e("../internals/create-non-enumerable-property"),u=o("species"),c=!i(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$")}),l=function(){return"$0"==="a".replace(/./,"$0")}(),f=o("replace"),p=function(){return!!/./[f]&&""===/./[f]("a","$0")}(),d=!i(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return 2!==r.length||"a"!==r[0]||"b"!==r[1]});t.exports=function(e,t,r,f){var h=o(e),m=!i(function(){var t={};return t[h]=function(){return 7},7!=""[e](t)}),y=m&&!i(function(){var t=!1,r=/a/;return"split"===e&&(r={},r.constructor={},r.constructor[u]=function(){return r},r.flags="",r[h]=/./[h]),r.exec=function(){return t=!0,null},r[h](""),!t});if(!m||!y||"replace"===e&&(!c||!l||p)||"split"===e&&!d){var b=/./[h],g=r(h,""[e],function(e,t,r,n,i){return t.exec===s?m&&!i?{done:!0,value:b.call(t,r,n)}:{done:!0,value:e.call(r,t,n)}:{done:!1}},{REPLACE_KEEPS_$0:l,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:p}),v=g[0],w=g[1];n(String.prototype,e,v),n(RegExp.prototype,h,2==t?function(e,t){return w.call(e,this,t)}:function(e){return w.call(e,this)})}f&&a(RegExp.prototype[h],"sham",!0)}},{"../internals/create-non-enumerable-property":131,"../internals/fails":145,"../internals/redefine":197,"../internals/regexp-exec":199,"../internals/well-known-symbol":231,"../modules/es.regexp.exec":256}],147:[function(e,t,r){var n=e("../internals/a-function");t.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 0:return function(){return e.call(t)};case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,i){return e.call(t,r,n,i)}}return function(){return e.apply(t,arguments)}}},{"../internals/a-function":102}],148:[function(e,t,r){var n=e("../internals/path"),i=e("../internals/global"),o=function(e){return"function"==typeof e?e:void 0};t.exports=function(e,t){return arguments.length<2?o(n[e])||o(i[e]):n[e]&&n[e][t]||i[e]&&i[e][t]}},{"../internals/global":150,"../internals/path":193}],149:[function(e,t,r){var n=e("../internals/classof"),i=e("../internals/iterators"),o=e("../internals/well-known-symbol"),s=o("iterator");t.exports=function(e){if(void 0!=e)return e[s]||e["@@iterator"]||i[n(e)]}},{"../internals/classof":126,"../internals/iterators":170,"../internals/well-known-symbol":231}],150:[function(e,t,r){(function(e){var r=function(e){return e&&e.Math==Math&&e};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof e&&e)||function(){return this}()||Function("return this")()}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],151:[function(e,t,r){var n={}.hasOwnProperty;t.exports=function(e,t){return n.call(e,t)}},{}],152:[function(e,t,r){t.exports={}},{}],153:[function(e,t,r){var n=e("../internals/global");t.exports=function(e,t){var r=n.console;r&&r.error&&(1===arguments.length?r.error(e):r.error(e,t))}},{"../internals/global":150}],154:[function(e,t,r){var n=e("../internals/get-built-in");t.exports=n("document","documentElement")},{"../internals/get-built-in":148}],155:[function(e,t,r){var n=e("../internals/descriptors"),i=e("../internals/fails"),o=e("../internals/document-create-element");t.exports=!n&&!i(function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a})},{"../internals/descriptors":136,"../internals/document-create-element":137,"../internals/fails":145}],156:[function(e,t,r){var n=Math.abs,i=Math.pow,o=Math.floor,s=Math.log,a=Math.LN2,u=function(e,t,r){var u,c,l,f=new Array(r),p=8*r-t-1,d=(1<>1,m=23===t?i(2,-24)-i(2,-77):0,y=e<0||0===e&&1/e<0?1:0,b=0;for(e=n(e),e!=e||e===1/0?(c=e!=e?1:0,u=d):(u=o(s(e)/a),e*(l=i(2,-u))<1&&(u--,l*=2),e+=u+h>=1?m/l:m*i(2,1-h),e*l>=2&&(u++,l/=2),u+h>=d?(c=0,u=d):u+h>=1?(c=(e*l-1)*i(2,t),u+=h):(c=e*i(2,h-1)*i(2,t),u=0));t>=8;f[b++]=255&c,c/=256,t-=8);for(u=u<0;f[b++]=255&u,u/=256,p-=8);return f[--b]|=128*y,f},c=function(e,t){var r,n=e.length,o=8*n-t-1,s=(1<>1,u=o-7,c=n-1,l=e[c--],f=127&l;for(l>>=7;u>0;f=256*f+e[c],c--,u-=8);for(r=f&(1<<-u)-1,f>>=-u,u+=t;u>0;r=256*r+e[c],c--,u-=8);if(0===f)f=1-a;else{if(f===s)return r?NaN:l?-1/0:1/0;r+=i(2,t),f-=a}return(l?-1:1)*r*i(2,f-t)};t.exports={pack:u,unpack:c}},{}],157:[function(e,t,r){var n=e("../internals/fails"),i=e("../internals/classof-raw"),o="".split;t.exports=n(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return"String"==i(e)?o.call(e,""):Object(e)}:Object},{"../internals/classof-raw":125,"../internals/fails":145}],158:[function(e,t,r){var n=e("../internals/is-object"),i=e("../internals/object-set-prototype-of");t.exports=function(e,t,r){var o,s;return i&&"function"==typeof(o=t.constructor)&&o!==r&&n(s=o.prototype)&&s!==r.prototype&&i(e,s),e}},{"../internals/is-object":164,"../internals/object-set-prototype-of":189}],159:[function(e,t,r){var n=e("../internals/shared-store"),i=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(e){return i.call(e)}),t.exports=n.inspectSource},{"../internals/shared-store":208}],160:[function(e,t,r){var n,i,o,s=e("../internals/native-weak-map"),a=e("../internals/global"),u=e("../internals/is-object"),c=e("../internals/create-non-enumerable-property"),l=e("../internals/has"),f=e("../internals/shared-store"),p=e("../internals/shared-key"),d=e("../internals/hidden-keys"),h=a.WeakMap,m=function(e){return o(e)?i(e):n(e,{})},y=function(e){return function(t){var r;if(!u(t)||(r=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}};if(s){var b=f.state||(f.state=new h),g=b.get,v=b.has,w=b.set;n=function(e,t){return t.facade=e,w.call(b,e,t),t},i=function(e){return g.call(b,e)||{}},o=function(e){return v.call(b,e)}}else{var x=p("state");d[x]=!0,n=function(e,t){return t.facade=e,c(e,x,t),t},i=function(e){return l(e,x)?e[x]:{}},o=function(e){return l(e,x)}}t.exports={set:n,get:i,has:o,enforce:m,getterFor:y}},{"../internals/create-non-enumerable-property":131,"../internals/global":150,"../internals/has":151,"../internals/hidden-keys":152,"../internals/is-object":164,"../internals/native-weak-map":174,"../internals/shared-key":207,"../internals/shared-store":208}],161:[function(e,t,r){var n=e("../internals/well-known-symbol"),i=e("../internals/iterators"),o=n("iterator"),s=Array.prototype;t.exports=function(e){return void 0!==e&&(i.Array===e||s[o]===e)}},{"../internals/iterators":170,"../internals/well-known-symbol":231}],162:[function(e,t,r){var n=e("../internals/classof-raw");t.exports=Array.isArray||function(e){return"Array"==n(e)}},{"../internals/classof-raw":125}],163:[function(e,t,r){var n=e("../internals/fails"),i=/#|\.prototype\./,o=function(e,t){var r=a[s(e)];return r==c||r!=u&&("function"==typeof t?n(t):!!t)},s=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},a=o.data={},u=o.NATIVE="N",c=o.POLYFILL="P";t.exports=o},{"../internals/fails":145}],164:[function(e,t,r){t.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},{}],165:[function(e,t,r){t.exports=!1},{}],166:[function(e,t,r){var n=e("../internals/is-object"),i=e("../internals/classof-raw"),o=e("../internals/well-known-symbol"),s=o("match");t.exports=function(e){var t;return n(e)&&(void 0!==(t=e[s])?!!t:"RegExp"==i(e))}},{"../internals/classof-raw":125,"../internals/is-object":164,"../internals/well-known-symbol":231}],167:[function(e,t,r){var n=e("../internals/an-object"),i=e("../internals/is-array-iterator-method"),o=e("../internals/to-length"),s=e("../internals/function-bind-context"),a=e("../internals/get-iterator-method"),u=e("../internals/iterator-close"),c=function(e,t){this.stopped=e,this.result=t};t.exports=function(e,t,r){var l,f,p,d,h,m,y,b=r&&r.that,g=!(!r||!r.AS_ENTRIES),v=!(!r||!r.IS_ITERATOR),w=!(!r||!r.INTERRUPTED),x=s(t,b,1+g+w),j=function(e){return l&&u(l),new c(!0,e)},_=function(e){return g?(n(e),w?x(e[0],e[1],j):x(e[0],e[1])):w?x(e,j):x(e)};if(v)l=e;else{if("function"!=typeof(f=a(e)))throw TypeError("Target is not iterable");if(i(f)){for(p=0,d=o(e.length);d>p;p++)if((h=_(e[p]))&&h instanceof c)return h;return new c(!1)}l=f.call(e)}for(m=l.next;!(y=m.call(l)).done;){try{h=_(y.value)}catch(e){throw u(l),e}if("object"==typeof h&&h&&h instanceof c)return h}return new c(!1)}},{"../internals/an-object":107,"../internals/function-bind-context":147,"../internals/get-iterator-method":149,"../internals/is-array-iterator-method":161,"../internals/iterator-close":168,"../internals/to-length":219}],168:[function(e,t,r){var n=e("../internals/an-object");t.exports=function(e){var t=e.return;if(void 0!==t)return n(t.call(e)).value}},{"../internals/an-object":107}],169:[function(e,t,r){"use strict";var n,i,o,s=e("../internals/object-get-prototype-of"),a=e("../internals/create-non-enumerable-property"),u=e("../internals/has"),c=e("../internals/well-known-symbol"),l=e("../internals/is-pure"),f=c("iterator"),p=!1,d=function(){return this};[].keys&&(o=[].keys(),"next"in o?(i=s(s(o)))!==Object.prototype&&(n=i):p=!0),void 0==n&&(n={}),l||u(n,f)||a(n,f,d),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:p}},{"../internals/create-non-enumerable-property":131,"../internals/has":151,"../internals/is-pure":165,"../internals/object-get-prototype-of":185,"../internals/well-known-symbol":231}],170:[function(e,t,r){arguments[4][152][0].apply(r,arguments)},{dup:152}],171:[function(e,t,r){var n,i,o,s,a,u,c,l,f=e("../internals/global"),p=e("../internals/object-get-own-property-descriptor").f,d=e("../internals/task").set,h=e("../internals/engine-is-ios"),m=e("../internals/engine-is-node"),y=f.MutationObserver||f.WebKitMutationObserver,b=f.document,g=f.process,v=f.Promise,w=p(f,"queueMicrotask"),x=w&&w.value;x||(n=function(){var e,t;for(m&&(e=g.domain)&&e.exit();i;){t=i.fn,i=i.next;try{t()}catch(e){throw i?s():o=void 0,e}}o=void 0,e&&e.enter()},!h&&!m&&y&&b?(a=!0,u=b.createTextNode(""),new y(n).observe(u,{characterData:!0}),s=function(){u.data=a=!a}):v&&v.resolve?(c=v.resolve(void 0),l=c.then,s=function(){l.call(c,n)}):s=m?function(){g.nextTick(n)}:function(){d.call(f,n)}),t.exports=x||function(e){var t={fn:e,next:void 0};o&&(o.next=t),i||(i=t,s()),o=t}},{"../internals/engine-is-ios":139,"../internals/engine-is-node":140,"../internals/global":150,"../internals/object-get-own-property-descriptor":181,"../internals/task":214}],172:[function(e,t,r){var n=e("../internals/global");t.exports=n.Promise},{"../internals/global":150}],173:[function(e,t,r){var n=e("../internals/fails");t.exports=!!Object.getOwnPropertySymbols&&!n(function(){return!String(Symbol())})},{"../internals/fails":145}],174:[function(e,t,r){var n=e("../internals/global"),i=e("../internals/inspect-source"),o=n.WeakMap;t.exports="function"==typeof o&&/native code/.test(i(o))},{"../internals/global":150,"../internals/inspect-source":159}],175:[function(e,t,r){"use strict";var n=e("../internals/a-function"),i=function(e){var t,r;this.promise=new e(function(e,n){if(void 0!==t||void 0!==r)throw TypeError("Bad Promise constructor");t=e,r=n}),this.resolve=n(t),this.reject=n(r)};t.exports.f=function(e){return new i(e)}},{"../internals/a-function":102}],176:[function(e,t,r){var n=e("../internals/is-regexp");t.exports=function(e){if(n(e))throw TypeError("The method doesn't accept regular expressions");return e}},{"../internals/is-regexp":166}],177:[function(e,t,r){"use strict";var n=e("../internals/descriptors"),i=e("../internals/fails"),o=e("../internals/object-keys"),s=e("../internals/object-get-own-property-symbols"),a=e("../internals/object-property-is-enumerable"),u=e("../internals/to-object"),c=e("../internals/indexed-object"),l=Object.assign,f=Object.defineProperty;t.exports=!l||i(function(){if(n&&1!==l({b:1},l(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol(),i="abcdefghijklmnopqrst";return e[r]=7,i.split("").forEach(function(e){t[e]=e}),7!=l({},e)[r]||o(l({},t)).join("")!=i})?function(e,t){for(var r=u(e),i=arguments.length,l=1,f=s.f,p=a.f;i>l;)for(var d,h=c(arguments[l++]),m=f?o(h).concat(f(h)):o(h),y=m.length,b=0;y>b;)d=m[b++],n&&!p.call(h,d)||(r[d]=h[d]);return r}:l},{"../internals/descriptors":136,"../internals/fails":145,"../internals/indexed-object":157,"../internals/object-get-own-property-symbols":184,"../internals/object-keys":187,"../internals/object-property-is-enumerable":188,"../internals/to-object":220}],178:[function(e,t,r){var n,i=e("../internals/an-object"),o=e("../internals/object-define-properties"),s=e("../internals/enum-bug-keys"),a=e("../internals/hidden-keys"),u=e("../internals/html"),c=e("../internals/document-create-element"),l=e("../internals/shared-key"),f=l("IE_PROTO"),p=function(){},d=function(e){return"