// Aliyun OSS SDK for JavaScript v6.11.2 // 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,k.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]])}));return e}(),I._getResource=function(e){var t="/";return e.bucket&&(t+="".concat(e.bucket,"/")),e.object&&(t+=E(e.object,this.options.headerEncoding)),t},I._escape=function(e){return m.encodeURIComponent(e).replace(/%2F/g,"/")},I._getUserAgent=function(){var e=n&&n.browser?"js":"nodejs",t="aliyun-sdk-".concat(e,"/").concat(b.version),r=d.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))},I._checkUserAgent=function(e){return e.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta")},I.checkBrowserAndVersion=function(e,t){return g.name===e&&g.version.split(".")[0]===t},I.parseXML=function(e){return new Promise(function(t,n){r.isBuffer(e)&&(e=e.toString()),f.parseString(e,{explicitRoot:!1,explicitArray:!1},function(e,r){e?n(e):t(r)})})},I.requestError=function(){function e(e){return t.apply(this,arguments)}var t=(0,c.default)(u.default.mark(function e(t){var r,n,i,o;return u.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":295,"../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":51,"../common/utils/encoder":54,"../common/utils/setSTSToken":66,"./managed-upload":3,"./object":4,"./version":5,"@babel/runtime/helpers/asyncToGenerator":67,"@babel/runtime/helpers/interopRequireDefault":68,"@babel/runtime/regenerator":71,_process:306,agentkeepalive:72,bowser:77,"core-js/modules/es.array.concat":231,"core-js/modules/es.array.index-of":238,"core-js/modules/es.array.slice":242,"core-js/modules/es.function.name":244,"core-js/modules/es.object.assign":246,"core-js/modules/es.object.to-string":249,"core-js/modules/es.promise":250,"core-js/modules/es.regexp.exec":251,"core-js/modules/es.regexp.to-string":252,"core-js/modules/es.string.replace":255,"core-js/modules/es.string.split":256,"core-js/modules/es.string.starts-with":257,"core-js/modules/es.symbol":260,"core-js/modules/es.symbol.description":259,debug:380,"merge-descriptors":298,platform:304,"regenerator-runtime/runtime":324,urllib:383,utility:382,xml2js:341}],3:[function(e,t,r){(function(t){"use strict";function n(e,t){if(!(this instanceof n))return new n(e,t);v.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-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,h=e("../common/utils/isFile"),d=h.isFile,m=e("../common/utils/isBuffer"),y=m.isBuffer,b=r;b.multipartUpload=function(){function e(e,r,n){return t.apply(this,arguments)}var t=(0,s.default)(o.default.mark(function e(t,r,n){var i,s,a,l,f,h,m,b,g;return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.resetCancelFlag(),n=n||{},!n.checkpoint||!n.checkpoint.uploadId){e.next=7;break}return r&&d(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||(d(r)?n.mime=c.getType(u.extname(r.name)):p(r)?n.mime=r.type:y(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(h),d=this._divideParts(a,u),m=d.length,y=!1,b=function(e,n){return new Promise(function(){var a=(0,s.default)(o.default.mark(function s(a,u){var h,b,g,v;return o.default.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(o.prev=0,e.isCancel()){o.next=26;break}return h=d[n-1],b={stream:e._createStream(i,h.start,h.end),size:h.end-h.start},o.prev=4,o.next=7,e._uploadPart(p,c,n,b);case 7:g=o.sent,o.next=15;break;case 10:if(o.prev=10,o.t0=o.catch(4),404!==o.t0.status){o.next=14;break}throw e._makeAbortEvent();case 14:throw o.t0;case 15:if(e.isCancel()||y){o.next=23;break}if(t.doneParts.push({number:n,etag:g.res.headers.etag}),!r.progress){o.next=20;break}return o.next=20,r.progress(f.length/m,t,g.res);case 20:a({number:n,etag:g.res.headers.etag}),o.next=24;break;case 23:a();case 24:o.next=27;break;case 26:a();case 27:o.next=38;break;case 29:o.prev=29,o.t1=o.catch(0),v=new Error,v.name=o.t1.name,v.message=o.t1.message,v.stack=o.t1.stack,v.partNum=n,l(o.t1).to(v),u(v);case 38:case"end":return o.stop()}},s,null,[[0,29],[4,10]])}));return function(e,t){return a.apply(this,arguments)}}())},g=Array.from(new Array(m),function(e,t){return t+1}),v=h.map(function(e){return e.number}),w=g.filter(function(e){return v.indexOf(e)<0}),x=5,_=r.parallel||x,e.next=17,this._parallel(w,_,function(e){return new Promise(function(t,r){b(n,e).then(function(e){e&&h.push(e),t()}).catch(function(e){r(e)})})});case 17:if(j=e.sent,y=!0,!(E=j.find(function(e){return"abort"===e.name}))){e.next=22;break}throw E;case 22:if(!this.isCancel()){e.next=25;break}throw b=null,this._makeCancelEvent();case 25:if(!(j&&j.length>0)){e.next=28;break}throw j[0].message="Failed to upload some parts with error: ".concat(j[0].toString()," part_num: ").concat(j[0].partNum),j[0];case 28:return e.next=30,this.completeMultipartUpload(p,c,h,r);case 30:return e.abrupt("return",e.sent);case 31:case"end":return e.stop()}},e,this)}));return e}(),b._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(!y(t)){e.next=4;break}return e.abrupt("return",t.length);case 4:if(!p(t)&&!d(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 g=e("stream"),v=g.Readable;a.inherits(n,v),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)},b._createStream=function(e,t,r){if(p(e)||d(e))return new n(e.slice(t,r));if(y(e)){var i=e.subarray(t,r);return new v({read:function(){this.push(i),this.push(null)}})}throw new Error("_createStream requires Buffer/File/Blob.")},b._getPartSize=function(e,t){t||(t=1048576);var r=Math.ceil(e/1e4);return t2&&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":67,"@babel/runtime/helpers/interopRequireDefault":68,"@babel/runtime/regenerator":71,"core-js/modules/es.object.assign":246,"regenerator-runtime/runtime":324}],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":67,"@babel/runtime/helpers/interopRequireDefault":68,"@babel/runtime/regenerator":71,"regenerator-runtime/runtime":324}],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":67,"@babel/runtime/helpers/interopRequireDefault":68,"@babel/runtime/regenerator":71,"regenerator-runtime/runtime":324}],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":64,"@babel/runtime/helpers/asyncToGenerator":67,"@babel/runtime/helpers/interopRequireDefault":68,"@babel/runtime/regenerator":71,"regenerator-runtime/runtime":324}],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":55,"@babel/runtime/helpers/asyncToGenerator":67,"@babel/runtime/helpers/interopRequireDefault":68,"@babel/runtime/regenerator":71,"core-js/modules/es.object.assign":246,"regenerator-runtime/runtime":324}],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":56,"../utils/isArray":58,"@babel/runtime/helpers/asyncToGenerator":67,"@babel/runtime/helpers/interopRequireDefault":68,"@babel/runtime/regenerator":71,"core-js/modules/es.array.map":241,"regenerator-runtime/runtime":324}],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":67,"@babel/runtime/helpers/interopRequireDefault":68,"@babel/runtime/regenerator":71,"regenerator-runtime/runtime":324}],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":63,"@babel/runtime/helpers/asyncToGenerator":67,"@babel/runtime/helpers/interopRequireDefault":68,"@babel/runtime/regenerator":71,"regenerator-runtime/runtime":324}],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":52,"@babel/runtime/helpers/asyncToGenerator":67,"@babel/runtime/helpers/interopRequireDefault":68,"@babel/runtime/regenerator":71,"core-js/modules/es.object.assign":246,"regenerator-runtime/runtime":324}],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":64,"@babel/runtime/helpers/asyncToGenerator":67,"@babel/runtime/helpers/interopRequireDefault":68,"@babel/runtime/regenerator":71,"regenerator-runtime/runtime":324}],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,h=arguments;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=h.length>1&&void 0!==h[1]?h[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":55,"@babel/runtime/helpers/asyncToGenerator":67,"@babel/runtime/helpers/interopRequireDefault":68,"@babel/runtime/regenerator":71,"core-js/modules/es.object.assign":246,"regenerator-runtime/runtime":324}],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,h,d,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/"),h={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)||[]}}},d=c.obj2xml(h,{headers:!0,firstUpperCase:!0}),m=this._bucketRequestParams("PUT",t,i,n),m.successStatuses=[200],m.mime="xml",m.content=d,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":64,"@babel/runtime/helpers/asyncToGenerator":67,"@babel/runtime/helpers/interopRequireDefault":68,"@babel/runtime/regenerator":71,"core-js/modules/es.array.concat":231,"core-js/modules/es.object.assign":246,"regenerator-runtime/runtime":324}],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(!h(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&&j(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"),h=p.isArray,d=e("../utils/deepCopy"),m=d.deepCopy,y=e("../utils/isObject"),b=y.isObject,g=e("../utils/obj2xml"),v=g.obj2xml,w=e("../utils/checkObjectTag"),x=w.checkObjectTag,_=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),h(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":49,"../utils/deepCopy":53,"../utils/getStrBytesCount":57,"../utils/isArray":58,"../utils/isObject":63,"../utils/obj2xml":64,"@babel/runtime/helpers/asyncToGenerator":67,"@babel/runtime/helpers/interopRequireDefault":68,"@babel/runtime/regenerator":71,"core-js/modules/es.array.for-each":235,"core-js/modules/es.array.includes":237,"core-js/modules/web.dom-collections.for-each":285,"regenerator-runtime/runtime":324}],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":64,"@babel/runtime/helpers/asyncToGenerator":67,"@babel/runtime/helpers/interopRequireDefault":68,"@babel/runtime/regenerator":71,"core-js/modules/es.array.includes":237,"regenerator-runtime/runtime":324}],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,h=arguments;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=h.length>1&&void 0!==h[1]?h[1]:{},n=h.length>2?h[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":58,"../utils/obj2xml":64,"@babel/runtime/helpers/asyncToGenerator":67,"@babel/runtime/helpers/interopRequireDefault":68,"@babel/runtime/regenerator":71,"regenerator-runtime/runtime":324}],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":235,"core-js/modules/es.object.keys":248,"core-js/modules/es.object.to-string":249,"core-js/modules/es.regexp.to-string":252,"core-js/modules/web.dom-collections.for-each":285}],24:[function(e,t,r){"use strict";function n(e){var t={},r=this.options.cname;o.default(this.options.endpoint).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 l={};u.default.string(e.subres)?l[e.subres]="":u.default.array(e.subres)?e.subres.forEach(function(e){l[e]=""}):l=e.subres,a.default(i,l)}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");r.getReqUrl=n},{"../utils/isIP":62,"copy-to":101,"core-js/modules/es.array.concat":231,"core-js/modules/es.array.for-each":235,"core-js/modules/es.regexp.exec":251,"core-js/modules/es.string.replace":255,"core-js/modules/web.dom-collections.for-each":285,"is-type-of":381,"merge-descriptors":298,url:330}],25:[function(e,t,r){"use strict";function n(e,t){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;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/setRegion":65,"core-js/modules/es.array.concat":231,"core-js/modules/es.object.assign":246,"core-js/modules/es.string.trim":258,"humanize-ms":292,url:330}],26:[function(e,t,r){"use strict";e("merge-descriptors")(r,e("./processObjectSave"))},{"./processObjectSave":27,"merge-descriptors":298}],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,h;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 h=e.sent,e.abrupt("return",{res:h.res,status:h.res.status});case 14:case"end":return e.stop()}},e,this)}));return e}()},{"../utils/checkBucketName":48,"@babel/runtime/helpers/asyncToGenerator":67,"@babel/runtime/helpers/interopRequireDefault":68,"@babel/runtime/regenerator":71,"core-js/modules/es.array.concat":231,"js-base64":297,querystring:310,"regenerator-runtime/runtime":324}],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.deepCopy,l=r;l.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}(),l.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}(),l.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}(),l.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}(),l.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}(),l.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,f,p,h,d,m;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(f.number,"\n"),u+="".concat(f.etag,"\n"),u+="\n";return u+="",o=o||{},p={},p=c(o),p.headers&&delete p.headers["x-oss-server-side-encryption"],p.subres={uploadId:r},h=this._objectRequestParams("POST",t,p),a.encodeCallback(h,p),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 d=e.sent,m={res:d.res,bucket:h.bucket,name:t,etag:d.res.headers.etag},h.headers&&h.headers["x-oss-callback"]&&(m.data=JSON.parse(d.data.toString())),e.abrupt("return",m);case 21:case"end":return e.stop()}},e,this)}));return e}(),l._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":53,"@babel/runtime/helpers/asyncToGenerator":67,"@babel/runtime/helpers/interopRequireDefault":68,"@babel/runtime/regenerator":71,"copy-to":101,"core-js/modules/es.array.concat":231,"core-js/modules/es.array.filter":233,"core-js/modules/es.array.map":241,"core-js/modules/es.array.sort":243,"core-js/modules/es.object.to-string":249,"core-js/modules/es.regexp.to-string":252,"regenerator-runtime/runtime":324}],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=encodeURI(e),e="/".concat(t,"/").concat(e)}},{"../utils/checkBucketName":48,"@babel/runtime/helpers/asyncToGenerator":67,"@babel/runtime/helpers/interopRequireDefault":68,"@babel/runtime/helpers/typeof":69,"@babel/runtime/regenerator":71,"core-js/modules/es.array.concat":231,"core-js/modules/es.array.find":234,"core-js/modules/es.array.for-each":235,"core-js/modules/es.array.includes":237,"core-js/modules/es.object.keys":248,"core-js/modules/es.regexp.exec":251,"core-js/modules/es.string.replace":255,"core-js/modules/web.dom-collections.for-each":285,"regenerator-runtime/runtime":324}],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":67,"@babel/runtime/helpers/interopRequireDefault":68,"@babel/runtime/regenerator":71,"core-js/modules/es.object.assign":246,"regenerator-runtime/runtime":324}],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,h,d,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":67,"@babel/runtime/helpers/interopRequireDefault":68,"@babel/runtime/regenerator":71,"core-js/modules/es.object.assign":246,"regenerator-runtime/runtime":324}],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":62,"core-js/modules/es.array.concat":231,url:330}],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({},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":67,"@babel/runtime/helpers/interopRequireDefault":68,"@babel/runtime/regenerator":71,"core-js/modules/es.object.assign":246,fs:78,"is-type-of":381,"regenerator-runtime/runtime":324}],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":67,"@babel/runtime/helpers/interopRequireDefault":68,"@babel/runtime/regenerator":71,"core-js/modules/es.object.assign":246,"regenerator-runtime/runtime":324}],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&&(d(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&&(d(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.NextMarker||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,h=e("../utils/isArray"),d=h.isArray;l.getBucketVersions=n,l.listObjectVersions=n},{"../utils/isArray":58,"../utils/isObject":63,"@babel/runtime/helpers/asyncToGenerator":67,"@babel/runtime/helpers/interopRequireDefault":68,"@babel/runtime/regenerator":71,"core-js/modules/es.array.for-each":235,"core-js/modules/es.array.map":241,"core-js/modules/es.number.constructor":245,"core-js/modules/es.object.assign":246,"core-js/modules/es.object.keys":248,"core-js/modules/es.regexp.exec":251,"core-js/modules/es.string.replace":255,"core-js/modules/web.dom-collections.for-each":285,"regenerator-runtime/runtime":324}],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":67,"@babel/runtime/helpers/interopRequireDefault":68,"@babel/runtime/regenerator":71,"core-js/modules/es.object.assign":246,"regenerator-runtime/runtime":324}],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":63,"@babel/runtime/helpers/asyncToGenerator":67,"@babel/runtime/helpers/interopRequireDefault":68,"@babel/runtime/regenerator":71,"core-js/modules/es.array.for-each":235,"core-js/modules/es.object.assign":246,"core-js/modules/web.dom-collections.for-each":285,"regenerator-runtime/runtime":324}],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":62}],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":67,"@babel/runtime/helpers/interopRequireDefault":68,"@babel/runtime/regenerator":71,"core-js/modules/es.object.assign":246,"regenerator-runtime/runtime":324}],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":67,"@babel/runtime/helpers/interopRequireDefault":68,"@babel/runtime/regenerator":71,"core-js/modules/es.array.for-each":235,"core-js/modules/es.array.index-of":238,"core-js/modules/es.object.assign":246,"core-js/modules/es.object.keys":248,"core-js/modules/web.dom-collections.for-each":285,"regenerator-runtime/runtime":324}],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":67,"@babel/runtime/helpers/interopRequireDefault":68,"@babel/runtime/regenerator":71,"core-js/modules/es.object.assign":246,"regenerator-runtime/runtime":324}],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":49,"../utils/obj2xml":64,"@babel/runtime/helpers/asyncToGenerator":67,"@babel/runtime/helpers/interopRequireDefault":68,"@babel/runtime/regenerator":71,"core-js/modules/es.array.map":241,"core-js/modules/es.object.assign":246,"core-js/modules/es.object.keys":248,"regenerator-runtime/runtime":324}],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":67,"@babel/runtime/helpers/interopRequireDefault":68,"@babel/runtime/regenerator":71,"core-js/modules/es.object.assign":246,"regenerator-runtime/runtime":324}],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":62,"copy-to":101,url:330,utility:382}],46:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");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.iterator");var i=n(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var o=n(e("@babel/runtime/helpers/asyncToGenerator")),s=r;s._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,h;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,h=0;case 8:if(!(h0)return f=!0,void(p<=0&&i(c));p+=1,a(e.value,o(s))}h=!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":376,buffer:98,"core-js/modules/es.array.concat":231,"core-js/modules/es.array.for-each":235,"core-js/modules/es.array.index-of":238,"core-js/modules/es.array.join":240,"core-js/modules/es.array.sort":243,"core-js/modules/es.object.keys":248,"core-js/modules/es.object.to-string":249,"core-js/modules/es.regexp.to-string":252,"core-js/modules/es.string.trim":258,"core-js/modules/web.dom-collections.for-each":285,"is-type-of":381}],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){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":50,"./isObject":63,"core-js/modules/es.array.concat":231,"core-js/modules/es.array.for-each":235,"core-js/modules/es.object.entries":247,"core-js/modules/web.dom-collections.for-each":285}],50:[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":235,"core-js/modules/web.dom-collections.for-each":285}],51:[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 d in o)o[d]&&p.call(o,d)&&(o[d]=h(String(o[d]),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,_=g.secure,j=b(w,x,_);o.host="".concat(e.bucket,".").concat(j.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"),h=p.encoder,d=e("./isIP"),m=d.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":376,"./encoder":54,"./isIP":62,"./setRegion":65,buffer:98,"copy-to":101,"core-js/modules/es.array.concat":231, "core-js/modules/es.array.includes":237,"core-js/modules/es.array.index-of":238,"core-js/modules/es.object.assign":246,"core-js/modules/es.string.includes":253,dateformat:288,debug:380,mime:300,path:303}],52:[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,h=t.bool,d=void 0===h?[]:h,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])}}),d.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":63,"core-js/modules/es.array.for-each":235,"core-js/modules/es.array.includes":237,"core-js/modules/es.object.entries":247,"core-js/modules/es.object.keys":248,"core-js/modules/es.regexp.exec":251,"core-js/modules/es.string.replace":255,"core-js/modules/web.dom-collections.for-each":285}],53:[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.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.deepCopy=void 0,r.deepCopy=function(e){if(null===e||"object"!==(0,i.default)(e))return e;var t=Array.isArray(e)?[]:{};return Object.keys(e).forEach(function(n){t[n]=r.deepCopy(e[n])}),t}},{"@babel/runtime/helpers/interopRequireDefault":68,"@babel/runtime/helpers/typeof":69,"core-js/modules/es.array.for-each":235,"core-js/modules/es.object.keys":248,"core-js/modules/web.dom-collections.for-each":285}],54:[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":249,"core-js/modules/es.regexp.to-string":252}],55:[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":52,"../utils/formatObjKey":56,"../utils/isArray":58,"../utils/isObject":63,"core-js/modules/es.array.map":241,"core-js/modules/es.regexp.exec":251,"core-js/modules/es.string.replace":255}],56:[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":56,"core-js/modules/es.array.concat":231,"core-js/modules/es.array.for-each":235,"core-js/modules/es.array.join":240,"core-js/modules/es.array.map":241,"core-js/modules/es.object.keys":248,"core-js/modules/es.object.to-string":249,"core-js/modules/es.regexp.exec":251,"core-js/modules/es.regexp.to-string":252,"core-js/modules/es.string.replace":255,"core-js/modules/web.dom-collections.for-each":285}],65:[function(e,t,r){"use strict";function n(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],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"));r.setRegion=n},{url:330}],66:[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":56,"@babel/runtime/helpers/asyncToGenerator":67,"@babel/runtime/helpers/interopRequireDefault":68,"@babel/runtime/regenerator":71,"core-js/modules/es.array.find":234,"core-js/modules/es.array.for-each":235,"core-js/modules/es.object.assign":246,"core-js/modules/es.object.keys":248,"regenerator-runtime/runtime":324}],67:[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},{}],68:[function(e,t,r){function n(e){return e&&e.__esModule?e:{default:e}}t.exports=n},{}],69:[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},{}],70:[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 h(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=j;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===j)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 h(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(f,this),this.reset(!0)}function d(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:d(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)}},{}],71:[function(e,t,r){t.exports=e("regenerator-runtime")},{"regenerator-runtime":70}],72:[function(e,t,r){function n(){}t.exports=n,t.exports.HttpsAgent=n},{}],73:[function(e,t,r){t.exports=e("./register")().Promise},{"./register":75}],74:[function(e,t,r){"use strict";var n=null;t.exports=function(e,t){return function(r,i){r=r||null,i=i||{};var o=!1!==i.global;if(null===n&&o&&(n=e["@@any-promise/REGISTRATION"]||null),null!==n&&null!==r&&n.implementation!==r)throw new Error('any-promise already defined as "'+n.implementation+'". You can only register an implementation before the first call to require("any-promise") and an implementation cannot be changed');return null===n&&(n=null!==r&&void 0!==i.Promise?{Promise:i.Promise,implementation:r}:t(r),o&&(e["@@any-promise/REGISTRATION"]=n)),n}}},{}],75:[function(e,t,r){"use strict";function n(){if(void 0===window.Promise)throw new Error("any-promise browser requires a polyfill or explicit registration e.g: require('any-promise/register/bluebird')");return{Promise:window.Promise,implementation:"window.Promise"}}t.exports=e("./loader")(window,n)},{"./loader":74}],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,h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=0,m=h.length;d1&&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),h=/sailfish/i.test(e),d=/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&&!h&&!d&&!m&&/linux/i.test(e),w=r(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),x=t(/version\/(\d+(\.\d+)?)/i),_=/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}:h?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)}:d?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 _||l||"ipad"==o||u&&(3==S||S>=4&&!j)||i.silk?i.tablet=s:(j||"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:306,buffer:98,inherits:294,"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 h(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 d(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 _(e,t){t.resumeScheduled||(t.resumeScheduled=!0,r.nextTick(j,e,t))}function j(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=h(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,!h.awaitDrain||e._writableState&&!e._writableState.needDrain||y()}function a(t){I("ondata");var r=e.write(t);I("dest.write",r),!1===r&&((1===h.pipesCount&&h.pipes===e||h.pipesCount>1&&-1!==k(h.pipes,e))&&!b&&(I("false write response, pause",h.awaitDrain),h.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,h=this._readableState;switch(h.pipesCount){case 0:h.pipes=e;break;case 1:h.pipes=[h.pipes,e];break;default:h.pipes.push(e)}h.pipesCount+=1,I("pipe count=%d opts=%j",h.pipesCount,t);var d=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr,m=d?i:f;h.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),h.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,_(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:306,buffer:98,inherits:294,"util-deprecate":332}],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[d]=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[h])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"),h=Symbol("ended"),d=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[h])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[d];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[d]=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,h,{value:e._readableState.endEmitted,writable:!0}),n(t,m,{value:function(e,t){var n=r[y].read();n?(r[d]=null,r[l]=null,r[f]=null,e(i(n,!1))):(r[l]=e,r[f]=t)},writable:!0}),t));return r[d]=null,c(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[f];return null!==t&&(r[d]=null,r[l]=null,r[f]=null,t(e)),void(r[p]=e)}var n=r[l];null!==n&&(r[d]=null,r[l]=null,r[f]=null,n(i(void 0,!0))),r[h]=!0}),e.on("readable",s.bind(null,r)),r};t.exports=v}).call(this,e("_process"))},{"./end-of-stream":92,_process:306}],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:d,value:function(e,t){return h(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:306}],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,h=p.ERR_MISSING_ARGS,d=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:290}],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|d(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 h(e){return+e!=e&&(e=0),t.alloc(+e)}function d(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 F(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:F(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 P(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 M(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 F(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 q(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=h,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 _(this,e,t,r);case"base64":return j(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 P(this,e,t,!0,r)},t.prototype.writeFloatBE=function(e,t,r){return P(this,e,t,!1,r)},t.prototype.writeDoubleLE=function(e,t,r){return M(this,e,t,!0,r)},t.prototype.writeDoubleBE=function(e,t,r){return M(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]},P=function(e){return A(e,23,4)},M=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()},F=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;)(q=G[W++])in E||s(E,q,j[q]);U.constructor=E}m&&d(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);_(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");_(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){F(this,1,e,N,t)},setUint8:function(e,t){F(this,1,e,N,t)},setInt16:function(e,t){F(this,2,e,D,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){F(this,2,e,D,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){F(this,4,e,C,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){F(this,4,e,C,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){F(this,4,e,P,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){F(this,8,e,M,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":144,"../internals/global":149,"../internals/ieee754":155,"../internals/internal-state":159,"../internals/object-define-property":178,"../internals/object-get-own-property-names":181,"../internals/object-get-prototype-of":183,"../internals/object-set-prototype-of":187,"../internals/redefine-all":194,"../internals/set-to-string-tag":203,"../internals/to-index":213,"../internals/to-integer":215,"../internals/to-length":216}],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":212,"../internals/to-length":216,"../internals/to-object":217}],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":212,"../internals/to-length":216,"../internals/to-object":217}],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,h,d=i(e),m="function"==typeof this?this:Array,y=arguments.length,b=y>1?arguments[1]:void 0,g=void 0!==b,v=c(d),w=0;if(g&&(b=n(b,y>2?arguments[2]:void 0,2)),void 0==v||m==Array&&s(v))for(t=a(d.length),r=new m(t);t>w;w++)h=g?b(d[w],w):d[w],u(r,w,h);else for(f=v.call(d),p=f.next,r=new m;!(l=p.call(f)).done;w++)h=g?o(f,b,[l.value,w],!0):l.value,u(r,w,h);return r.length=w,r}},{"../internals/call-with-safe-iteration-closing":123,"../internals/create-property":133,"../internals/function-bind-context":146,"../internals/get-iterator-method":148,"../internals/is-array-iterator-method":160,"../internals/to-length":216,"../internals/to-object":217}],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":212,"../internals/to-indexed-object":214,"../internals/to-length":216}],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(h,d,m,y){for(var b,g,v=o(h),w=i(v),x=n(d,m,3),_=s(w.length),j=0,E=y||a,T=t?E(h,_):r?E(h,0):void 0;_>j;j++)if((p||j in w)&&(b=w[j],g=x(b,j,v),e))if(t)T[j]=g;else if(g)switch(e){case 3:return!0;case 5:return b;case 6:return j;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":146,"../internals/indexed-object":156,"../internals/to-length":216,"../internals/to-object":217}],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}),h=l||!f||!p;t.exports=h?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":214,"../internals/to-integer":215,"../internals/to-length":216}],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":141,"../internals/fails":144,"../internals/well-known-symbol":228}],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":144}],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":144,"../internals/has":150}],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,h=e?-1:1;if(a<2)for(;;){if(p in l){u=l[p],p+=h;break}if(p+=h,e?p<0:f<=p)throw TypeError("Reduce of empty array with no initial value")}for(;e?p>=0:f>p;p+=h)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":156,"../internals/to-length":216,"../internals/to-object":217}],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":161,"../internals/is-object":163,"../internals/well-known-symbol":228}],123:[function(e,t,r){var n=e("../internals/an-object");t.exports=function(e,t,r,i){try{return i?t(n(r)[0],r[1]):t(r)}catch(t){var o=e.return;throw void 0!==o&&n(o.call(e)),t}}},{"../internals/an-object":107}],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":228}],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":221,"../internals/well-known-symbol":228}],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":140,"../internals/global":149}],142:[function(e,t,r){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],143:[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,h,d=e.target,m=e.global,y=e.stat;if(r=m?n:y?n[d]||a(d,{}):(n[d]||{}).prototype)for(l in t){if(p=t[l],e.noTargetGet?(h=i(r,l),f=h&&h.value):f=r[l],!c(m?l:d+(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":149,"../internals/is-forced":162,"../internals/object-get-own-property-descriptor":179,"../internals/redefine":195,"../internals/set-global":201}],144:[function(e,t,r){t.exports=function(e){try{return!!e()}catch(e){return!0}}},{}],145:[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")}(),h=!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 d=o(e),m=!i(function(){var t={};return t[d]=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[d]=/./[d]),r.exec=function(){return t=!0,null},r[d](""),!t});if(!m||!y||"replace"===e&&(!c||!l||p)||"split"===e&&!h){var b=/./[d],g=r(d,""[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,d,2==t?function(e,t){return w.call(e,this,t)}:function(e){return w.call(e,this)})}f&&a(RegExp.prototype[d],"sham",!0)}},{"../internals/create-non-enumerable-property":131,"../internals/fails":144,"../internals/redefine":195,"../internals/regexp-exec":197,"../internals/well-known-symbol":228,"../modules/es.regexp.exec":251}],146:[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}],147:[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":149,"../internals/path":191}],148:[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":168, "../internals/well-known-symbol":228}],149:[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")()}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],150:[function(e,t,r){var n={}.hasOwnProperty;t.exports=function(e,t){return n.call(e,t)}},{}],151:[function(e,t,r){t.exports={}},{}],152:[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":149}],153:[function(e,t,r){var n=e("../internals/get-built-in");t.exports=n("document","documentElement")},{"../internals/get-built-in":147}],154:[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":144}],155:[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,h=(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=h):(u=o(s(e)/a),e*(l=i(2,-u))<1&&(u--,l*=2),e+=u+d>=1?m/l:m*i(2,1-d),e*l>=2&&(u++,l/=2),u+d>=h?(c=0,u=h):u+d>=1?(c=(e*l-1)*i(2,t),u+=d):(c=e*i(2,d-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}},{}],156:[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":144}],157:[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":163,"../internals/object-set-prototype-of":187}],158:[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":205}],159:[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-key"),p=e("../internals/hidden-keys"),h=a.WeakMap,d=function(e){return o(e)?i(e):n(e,{})},m=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 y=new h,b=y.get,g=y.has,v=y.set;n=function(e,t){return v.call(y,e,t),t},i=function(e){return b.call(y,e)||{}},o=function(e){return g.call(y,e)}}else{var w=f("state");p[w]=!0,n=function(e,t){return c(e,w,t),t},i=function(e){return l(e,w)?e[w]:{}},o=function(e){return l(e,w)}}t.exports={set:n,get:i,has:o,enforce:d,getterFor:m}},{"../internals/create-non-enumerable-property":131,"../internals/global":149,"../internals/has":150,"../internals/hidden-keys":151,"../internals/is-object":163,"../internals/native-weak-map":172,"../internals/shared-key":204}],160:[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":168,"../internals/well-known-symbol":228}],161:[function(e,t,r){var n=e("../internals/classof-raw");t.exports=Array.isArray||function(e){return"Array"==n(e)}},{"../internals/classof-raw":125}],162:[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":144}],163:[function(e,t,r){t.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},{}],164:[function(e,t,r){t.exports=!1},{}],165:[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":163,"../internals/well-known-symbol":228}],166:[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/call-with-safe-iteration-closing"),c=function(e,t){this.stopped=e,this.result=t};(t.exports=function(e,t,r,l,f){var p,h,d,m,y,b,g,v=s(t,r,l?2:1);if(f)p=e;else{if("function"!=typeof(h=a(e)))throw TypeError("Target is not iterable");if(i(h)){for(d=0,m=o(e.length);m>d;d++)if((y=l?v(n(g=e[d])[0],g[1]):v(e[d]))&&y instanceof c)return y;return new c(!1)}p=h.call(e)}for(b=p.next;!(g=b.call(p)).done;)if("object"==typeof(y=u(p,v,g.value,l))&&y&&y instanceof c)return y;return new c(!1)}).stop=function(e){return new c(!0,e)}},{"../internals/an-object":107,"../internals/call-with-safe-iteration-closing":123,"../internals/function-bind-context":146,"../internals/get-iterator-method":148,"../internals/is-array-iterator-method":160,"../internals/to-length":216}],167:[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,h=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,h),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:p}},{"../internals/create-non-enumerable-property":131,"../internals/has":150,"../internals/is-pure":164,"../internals/object-get-prototype-of":183,"../internals/well-known-symbol":228}],168:[function(e,t,r){arguments[4][151][0].apply(r,arguments)},{dup:151}],169:[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,h=e("../internals/classof-raw"),d=e("../internals/task").set,m=e("../internals/engine-is-ios"),y=f.MutationObserver||f.WebKitMutationObserver,b=f.process,g=f.Promise,v="process"==h(b),w=p(f,"queueMicrotask"),x=w&&w.value;x||(n=function(){var e,t;for(v&&(e=b.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()},v?s=function(){b.nextTick(n)}:y&&!m?(a=!0,u=document.createTextNode(""),new y(n).observe(u,{characterData:!0}),s=function(){u.data=a=!a}):g&&g.resolve?(c=g.resolve(void 0),l=c.then,s=function(){l.call(c,n)}):s=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/classof-raw":125,"../internals/engine-is-ios":139,"../internals/global":149,"../internals/object-get-own-property-descriptor":179,"../internals/task":211}],170:[function(e,t,r){var n=e("../internals/global");t.exports=n.Promise},{"../internals/global":149}],171:[function(e,t,r){var n=e("../internals/fails");t.exports=!!Object.getOwnPropertySymbols&&!n(function(){return!String(Symbol())})},{"../internals/fails":144}],172:[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":149,"../internals/inspect-source":158}],173:[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}],174:[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":165}],175:[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 h,d=c(arguments[l++]),m=f?o(d).concat(f(d)):o(d),y=m.length,b=0;y>b;)h=m[b++],n&&!p.call(d,h)||(r[h]=d[h]);return r}:l},{"../internals/descriptors":136,"../internals/fails":144,"../internals/indexed-object":156,"../internals/object-get-own-property-symbols":182,"../internals/object-keys":185,"../internals/object-property-is-enumerable":186,"../internals/to-object":217}],176:[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(){},h=function(e){return"