(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-66b0f12c"],{"88e7":function(e,t,r){"use strict";var n=r("9b15"),i=r.n(n),s=r("e1bd"),o=null;function a(){return o?o.expiration-18e4<(new Date).getTime()?(o=null,null):o:null}async function c(e){var t=a();if(t)return t;const r=await e(),n=r.data;var s=Date.parse(n.expiration);return t=new i.a({endpoint:n.ossEndpoint,accessKeyId:n.accessKeyId,accessKeySecret:n.accessKeySecret,bucket:n.bucket,stsToken:n.securityToken}),o={client:t,expiration:s,domain:n.domain,ossObjectNamePrefix:n.ossObjectNamePrefix,bucket:n.bucket},o}function u(e,t,r){const n=r.lastIndexOf("."),i=r.substr(n),o=r.substr(0,n),a=`${e}${Object(s["a"])()}${i}`,c=t+"/"+a;return{objectName:a,fileName:o,objectUrl:c}}t["a"]={oss:c,getRandomObjectName:u}},"9b15":function(e,t,r){(function(t){var r;(function(t){e.exports=t()})((function(){var e;return function(){function e(t,n,i){function s(a,c){if(!n[a]){if(!t[a]){var u="function"==typeof r&&r;if(!c&&u)return r(a,!0);if(o)return o(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var p=n[a]={exports:{}};t[a][0].call(p.exports,(function(e){var r=t[a][1][e];return s(r||e)}),p,p.exports,e,t,n,i)}return n[a].exports}for(var o="function"==typeof r&&r,a=0;a\n\n\n').concat(t,"\n"),r&&(o+="".concat(r,"\n")),o+="\n",s.content=o,s.mime="xml",s.successStatuses=[200],e.next=9,this.request(s);case 9:return a=e.sent,e.abrupt("return",{res:a.res});case 11:case"end":return e.stop()}}),e,this)})));function t(t,r,n){return e.apply(this,arguments)}return t}(),u.getBucketLogging=function(){var e=(0,s.default)(i.default.mark((function e(t,r){var n,s,o;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=this._bucketRequestParams("GET",t,"logging",r),n.successStatuses=[200],n.xmlResponse=!0,e.next=5,this.request(n);case 5:return s=e.sent,o=s.data.LoggingEnabled,e.abrupt("return",{enable:!!o,prefix:o&&o.TargetPrefix||null,res:s.res});case 8:case"end":return e.stop()}}),e,this)})));function t(t,r){return e.apply(this,arguments)}return t}(),u.deleteBucketLogging=function(){var e=(0,s.default)(i.default.mark((function e(t,r){var n,s;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=this._bucketRequestParams("DELETE",t,"logging",r),n.successStatuses=[204,200],e.next=4,this.request(n);case 4:return s=e.sent,e.abrupt("return",{res:s.res});case 6:case"end":return e.stop()}}),e,this)})));function t(t,r){return e.apply(this,arguments)}return t}(),u.putBucketCORS=function(){var e=(0,s.default)(i.default.mark((function e(t,r,n){var s,a,c,u,l,f,h,d,m,y;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:for(r=r||[],o(r.length,"rules is required"),r.forEach((function(e){o(e.allowedOrigin,"allowedOrigin is required"),o(e.allowedMethod,"allowedMethod is required")})),s=this._bucketRequestParams("PUT",t,"cors",n),a='\n',c=function(e){a+="".concat(e,"")},u=function(e){a+="".concat(e,"")},l=function(e){a+="".concat(e,"")},f=function(e){a+="".concat(e,"")},h=0,d=r.length;h",p(m.allowedOrigin).forEach(c),p(m.allowedMethod).forEach(u),p(m.allowedHeader).forEach(l),p(m.exposeHeader).forEach(f),m.maxAgeSeconds&&(a+="".concat(m.maxAgeSeconds,"")),a+="";return a+="",s.content=a,s.mime="xml",s.successStatuses=[200],e.next=16,this.request(s);case 16:return y=e.sent,e.abrupt("return",{res:y.res});case 18:case"end":return e.stop()}}),e,this)})));function t(t,r,n){return e.apply(this,arguments)}return t}(),u.getBucketCORS=function(){var e=(0,s.default)(i.default.mark((function e(t,r){var n,s,o,a;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=this._bucketRequestParams("GET",t,"cors",r),n.successStatuses=[200],n.xmlResponse=!0,e.next=5,this.request(n);case 5:return s=e.sent,o=[],s.data&&s.data.CORSRule&&(a=s.data.CORSRule,l(a)||(a=[a]),a.forEach((function(e){var t={};Object.keys(e).forEach((function(r){t[r.slice(0,1).toLowerCase()+r.slice(1,r.length)]=e[r]})),o.push(t)}))),e.abrupt("return",{rules:o,res:s.res});case 9:case"end":return e.stop()}}),e,this)})));function t(t,r){return e.apply(this,arguments)}return t}(),u.deleteBucketCORS=function(){var e=(0,s.default)(i.default.mark((function e(t,r){var n,s;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=this._bucketRequestParams("DELETE",t,"cors",r),n.successStatuses=[204],e.next=4,this.request(n);case 4:return s=e.sent,e.abrupt("return",{res:s.res});case 6:case"end":return e.stop()}}),e,this)})));function t(t,r){return e.apply(this,arguments)}return t}(),u.putBucketReferer=function(){var e=(0,s.default)(i.default.mark((function e(t,r,n,s){var o,a,c,u;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(o=this._bucketRequestParams("PUT",t,"referer",s),a='\n\n',a+=" ".concat(r?"true":"false","\n"),n&&n.length>0){for(a+=" \n",c=0;c".concat(n[c],"\n");a+=" \n"}else a+=" \n";return a+="",o.content=a,o.mime="xml",o.successStatuses=[200],e.next=10,this.request(o);case 10:return u=e.sent,e.abrupt("return",{res:u.res});case 12:case"end":return e.stop()}}),e,this)})));function t(t,r,n,i){return e.apply(this,arguments)}return t}(),u.getBucketReferer=function(){var e=(0,s.default)(i.default.mark((function e(t,r){var n,s,o;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=this._bucketRequestParams("GET",t,"referer",r),n.successStatuses=[200],n.xmlResponse=!0,e.next=5,this.request(n);case 5:return s=e.sent,o=s.data.RefererList.Referer||null,o&&(l(o)||(o=[o])),e.abrupt("return",{allowEmpty:"true"===s.data.AllowEmptyReferer,referers:o,res:s.res});case 9:case"end":return e.stop()}}),e,this)})));function t(t,r){return e.apply(this,arguments)}return t}(),u.deleteBucketReferer=function(){var e=(0,s.default)(i.default.mark((function e(t,r){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.putBucketReferer(t,!0,null,r);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));function t(t,r){return e.apply(this,arguments)}return t}(),u._bucketRequestParams=function(e,t,r,n){return{method:e,bucket:t,subres:r,timeout:n&&n.timeout,ctx:n&&n.ctx}}},{"../common/utils/checkBucketName":50,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,assert:78,"core-js/modules/es.array.slice.js":250,"core-js/modules/es.object.keys.js":257,"core-js/modules/es.object.to-string.js":258,"core-js/modules/web.dom-collections.for-each.js":296}],3:[function(e,t,r){(function(r,n){(function(){"use strict";var i=e("@babel/runtime/helpers/interopRequireDefault"),s=i(e("@babel/runtime/regenerator")),o=i(e("@babel/runtime/helpers/asyncToGenerator"));e("core-js/modules/es.function.name.js"),e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.split.js"),e("core-js/modules/es.object.assign.js"),e("core-js/modules/es.array.includes.js"),e("core-js/modules/es.string.replace.js"),e("core-js/modules/es.array.concat.js"),e("core-js/modules/es.symbol.js"),e("core-js/modules/es.symbol.description.js"),e("core-js/modules/es.array.slice.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.promise.js"),e("core-js/modules/es.regexp.to-string.js");var a=e("debug")("ali-oss"),c=e("xml2js"),u=e("agentkeepalive"),l=e("merge-descriptors"),p=e("platform"),f=e("utility"),h=e("urllib"),d=e("./version"),m=e("bowser"),y=e("../common/signUtils"),b=e("../common/client/initOptions"),g=e("../common/utils/createRequest"),v=g.createRequest,w=e("../common/utils/encoder"),j=w.encoder,x=e("../common/client/getReqUrl"),T=x.getReqUrl,k=e("../common/utils/setSTSToken"),E=k.setSTSToken,_=e("../common/utils/retry"),S=_.retry,O=e("../common/utils/isFunction"),A=O.isFunction,D=new u;function I(){var e=p.name,t=p.version;e&&e.toLowerCase&&"ie"===e.toLowerCase()&&t.split(".")[0]<10&&console.warn("ali-oss does not support the current browser")}function C(){return location&&"https:"===location.protocol}function N(e,t){if(I(),!(this instanceof N))return new N(e,t);e&&e.inited?this.options=e:this.options=N.initOptions(e),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=h,this.agent=this.options.agent||D),this.ctx=t,this.userAgent=this._getUserAgent(),this.stsTokenFreshTime=new Date,this.options.amendTimeSkewed=0}t.exports=N,N.initOptions=function(e){e.stsToken||console.warn("Please use STS Token for safety, see more details at https://help.aliyun.com/document_detail/32077.html");var t=Object.assign({secure:C(),useFetch:!1},e);return b(t)};var R=N.prototype;function M(e){return P.apply(this,arguments)}function P(){return P=(0,o.default)(s.default.mark((function e(t){var r,n,i,o,a,c;return s.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!this.options.stsToken||!A(this.options.refreshSTSToken)){e.next=3;break}return e.next=3,E.call(this);case 3:return r=v.call(this,t),this.options.useFetch||(r.params.mode="disable-fetch"),o=!!t.stream,e.prev=6,e.next=9,this.urllib.request(r.url,r.params);case 9:n=e.sent,this.debug("response %s %s, got %s, headers: %j",t.method,r.url,n.status,n.headers,"info"),e.next=16;break;case 13:e.prev=13,e.t0=e["catch"](6),i=e.t0;case 16:if(!n||!t.successStatuses||-1!==t.successStatuses.indexOf(n.status)){e.next=28;break}return e.next=19,this.requestError(n);case 19:if(a=e.sent,"RequestTimeTooSkewed"!==a.code||o){e.next=25;break}return this.options.amendTimeSkewed=+new Date(a.serverTime)-new Date,e.next=24,this.request(t);case 24:return e.abrupt("return",e.sent);case 25:a.params=t,e.next=32;break;case 28:if(!i){e.next=32;break}return e.next=31,this.requestError(i);case 31:a=e.sent;case 32:if(!a){e.next=34;break}throw a;case 34:if(!t.xmlResponse){e.next=39;break}return e.next=37,this.parseXML(n.data);case 37:c=e.sent,n.data=c;case 39:return e.abrupt("return",n);case 40:case"end":return e.stop()}}),e,this,[[6,13]])}))),P.apply(this,arguments)}R.debug=a,l(R,e("./object")),l(R,e("./bucket")),l(R,e("../common/bucket/getBucketWebsite")),l(R,e("../common/bucket/putBucketWebsite")),l(R,e("../common/bucket/deleteBucketWebsite")),l(R,e("../common/bucket/getBucketLifecycle")),l(R,e("../common/bucket/putBucketLifecycle")),l(R,e("../common/bucket/deleteBucketLifecycle")),l(R,e("../common/bucket/putBucketVersioning")),l(R,e("../common/bucket/getBucketVersioning")),l(R,e("../common/bucket/getBucketInventory")),l(R,e("../common/bucket/deleteBucketInventory")),l(R,e("../common/bucket/listBucketInventory")),l(R,e("../common/bucket/putBucketInventory")),l(R,e("../common/bucket/abortBucketWorm")),l(R,e("../common/bucket/completeBucketWorm")),l(R,e("../common/bucket/extendBucketWorm")),l(R,e("../common/bucket/getBucketWorm")),l(R,e("../common/bucket/initiateBucketWorm")),l(R,e("./managed-upload")),l(R,e("../common/multipart-copy")),l(R,e("../common/multipart")),l(R,e("../common/parallel")),R.signature=function(e){return this.debug("authorization stringToSign: %s",e,"info"),y.computeSignature(this.options.accessKeySecret,e,this.options.headerEncoding)},R._getReqUrl=T,R.authorization=function(e,t,r,n){var i=y.buildCanonicalString(e.toUpperCase(),t,{headers:n,parameters:r});return y.authorization(this.options.accessKeyId,this.options.accessKeySecret,i,this.options.headerEncoding)},R.request=function(){var e=(0,o.default)(s.default.mark((function e(t){var r=this;return s.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!this.options.retryMax){e.next=6;break}return e.next=3,S(M.bind(this),this.options.retryMax,{errorHandler:function(e){var n=function(e){if(t.stream)return!1;var n=[-1,-2].includes(e.status),i=r.options.requestErrorRetryHandle||function(){return!0};return n&&i(e)};return!!n(e)}})(t);case 3:return e.abrupt("return",e.sent);case 6:return e.abrupt("return",M.call(this,t));case 7:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),R._getResource=function(e){var t="/";return e.bucket&&(t+="".concat(e.bucket,"/")),e.object&&(t+=j(e.object,this.options.headerEncoding)),t},R._escape=function(e){return f.encodeURIComponent(e).replace(/%2F/g,"/")},R._getUserAgent=function(){var e=n&&n.browser?"js":"nodejs",t="aliyun-sdk-".concat(e,"/").concat(d.version),r=p.description;return!r&&n&&(r="Node.js ".concat(n.version.slice(1)," on ").concat(n.platform," ").concat(n.arch)),this._checkUserAgent("".concat(t," ").concat(r))},R._checkUserAgent=function(e){var t=e.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta");return t},R.checkBrowserAndVersion=function(e,t){return m.name===e&&m.version.split(".")[0]===t},R.parseXML=function(e){return new Promise((function(t,n){r.isBuffer(e)&&(e=e.toString()),c.parseString(e,{explicitRoot:!1,explicitArray:!1},(function(e,r){e?n(e):t(r)}))}))},R.requestError=function(){var e=(0,o.default)(s.default.mark((function e(t){var r,n,i,o;return s.default.wrap((function(e){while(1)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]])})));function t(t){return e.apply(this,arguments)}return t}()}).call(this)}).call(this,{isBuffer:e("../../node_modules/is-buffer/index.js")},e("_process"))},{"../../node_modules/is-buffer/index.js":312,"../common/bucket/abortBucketWorm":7,"../common/bucket/completeBucketWorm":8,"../common/bucket/deleteBucketInventory":9,"../common/bucket/deleteBucketLifecycle":10,"../common/bucket/deleteBucketWebsite":11,"../common/bucket/extendBucketWorm":12,"../common/bucket/getBucketInventory":13,"../common/bucket/getBucketLifecycle":14,"../common/bucket/getBucketVersioning":15,"../common/bucket/getBucketWebsite":16,"../common/bucket/getBucketWorm":17,"../common/bucket/initiateBucketWorm":18,"../common/bucket/listBucketInventory":19,"../common/bucket/putBucketInventory":20,"../common/bucket/putBucketLifecycle":21,"../common/bucket/putBucketVersioning":22,"../common/bucket/putBucketWebsite":23,"../common/client/getReqUrl":25,"../common/client/initOptions":26,"../common/multipart":30,"../common/multipart-copy":29,"../common/parallel":48,"../common/signUtils":49,"../common/utils/createRequest":54,"../common/utils/encoder":57,"../common/utils/isFunction":65,"../common/utils/retry":70,"../common/utils/setSTSToken":72,"./bucket":2,"./managed-upload":4,"./object":5,"./version":6,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,_process:399,agentkeepalive:77,bowser:83,"core-js/modules/es.array.concat.js":241,"core-js/modules/es.array.includes.js":246,"core-js/modules/es.array.slice.js":250,"core-js/modules/es.function.name.js":253,"core-js/modules/es.object.assign.js":255,"core-js/modules/es.object.to-string.js":258,"core-js/modules/es.promise.js":259,"core-js/modules/es.regexp.exec.js":261,"core-js/modules/es.regexp.to-string.js":262,"core-js/modules/es.string.replace.js":266,"core-js/modules/es.string.split.js":268,"core-js/modules/es.symbol.description.js":270,"core-js/modules/es.symbol.js":271,debug:397,"merge-descriptors":315,platform:322,urllib:407,utility:406,xml2js:358}],4:[function(e,t,r){(function(t){(function(){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.function.name.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.promise.js"),e("core-js/modules/es.array.from.js"),e("core-js/modules/es.string.iterator.js"),e("core-js/modules/es.array.map.js"),e("core-js/modules/es.array.filter.js"),e("core-js/modules/es.array.find.js"),e("core-js/modules/es.array.concat.js"),e("core-js/modules/es.regexp.to-string.js"),e("core-js/modules/es.array.slice.js"),e("core-js/modules/es.array.iterator.js"),e("core-js/modules/es.array-buffer.slice.js"),e("core-js/modules/es.typed-array.uint8-array.js"),e("core-js/modules/es.typed-array.copy-within.js"),e("core-js/modules/es.typed-array.every.js"),e("core-js/modules/es.typed-array.fill.js"),e("core-js/modules/es.typed-array.filter.js"),e("core-js/modules/es.typed-array.find.js"),e("core-js/modules/es.typed-array.find-index.js"),e("core-js/modules/es.typed-array.for-each.js"),e("core-js/modules/es.typed-array.includes.js"),e("core-js/modules/es.typed-array.index-of.js"),e("core-js/modules/es.typed-array.iterator.js"),e("core-js/modules/es.typed-array.join.js"),e("core-js/modules/es.typed-array.last-index-of.js"),e("core-js/modules/es.typed-array.map.js"),e("core-js/modules/es.typed-array.reduce.js"),e("core-js/modules/es.typed-array.reduce-right.js"),e("core-js/modules/es.typed-array.reverse.js"),e("core-js/modules/es.typed-array.set.js"),e("core-js/modules/es.typed-array.slice.js"),e("core-js/modules/es.typed-array.some.js"),e("core-js/modules/es.typed-array.sort.js"),e("core-js/modules/es.typed-array.subarray.js"),e("core-js/modules/es.typed-array.to-locale-string.js"),e("core-js/modules/es.typed-array.to-string.js");var s=n(e("@babel/runtime/helpers/asyncToGenerator")),o=e("util"),a=e("path"),c=e("mime"),u=e("copy-to"),l=e("../common/utils/isBlob"),p=l.isBlob,f=e("../common/utils/isFile"),h=f.isFile,d=e("../common/utils/isArray"),m=(d.isArray,e("../common/utils/isBuffer")),y=m.isBuffer,b=e("../common/utils/retry"),g=(b.retry,r);g.multipartUpload=function(){var e=(0,s.default)(i.default.mark((function e(t,r){var n,s,o,u,l,f,d,m,b,g=arguments;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=g.length>2&&void 0!==g[2]?g[2]:{},this.resetCancelFlag(),n.disabledMD5=void 0===n.disabledMD5||!!n.disabledMD5,!n.checkpoint||!n.checkpoint.uploadId){e.next=8;break}return r&&h(r)&&(n.checkpoint.file=r),e.next=7,this._resumeMultipart(n.checkpoint,n);case 7:return e.abrupt("return",e.sent);case 8:return s=102400,n.mime||(h(r)?n.mime=c.getType(a.extname(r.name)):p(r)?n.mime=r.type:y(r)?n.mime="":n.mime=c.getType(a.extname(r))),n.headers=n.headers||{},this._convertMetaToHeaders(n.meta,n.headers),e.next=14,this._getFileSize(r);case 14:if(o=e.sent,!(o0&&u(p).to(h),d=this._divideParts(a,c),m=d.length,y=!1,b=function(e,n){return new Promise(function(){var a=(0,s.default)(i.default.mark((function s(a,c){var h,b,g,v,w;return i.default.wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(i.prev=0,e.isCancel()){i.next=29;break}return h=d[n-1],i.next=5,e._createBuffer(o,h.start,h.end);case 5:return b=i.sent,g={content:b,size:h.end-h.start},i.prev=7,i.next=10,e._uploadPart(f,l,n,g,{timeout:r.timeout,disabledMD5:r.disabledMD5});case 10:v=i.sent,i.next=18;break;case 13:if(i.prev=13,i.t0=i["catch"](7),404!==i.t0.status){i.next=17;break}throw e._makeAbortEvent();case 17:throw i.t0;case 18:if(e.isCancel()||y){i.next=26;break}if(t.doneParts.push({number:n,etag:v.res.headers.etag}),!r.progress){i.next=23;break}return i.next=23,r.progress(p.length/m,t,v.res);case 23:a({number:n,etag:v.res.headers.etag}),i.next=27;break;case 26:a();case 27:i.next=30;break;case 29:a();case 30:i.next=41;break;case 32:i.prev=32,i.t1=i["catch"](0),w=new Error,w.name=i.t1.name,w.message=i.t1.message,w.stack=i.t1.stack,w.partNum=n,u(i.t1).to(w),c(w);case 41:case"end":return i.stop()}}),s,null,[[0,32],[7,13]])})));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})),j=5,x=r.parallel||j,e.next=17,this._parallel(w,x,(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(T=e.sent,y=!0,k=T.find((function(e){return"abort"===e.name})),!k){e.next=22;break}throw k;case 22:if(!this.isCancel()){e.next=25;break}throw b=null,this._makeCancelEvent();case 25:if(!(T&&T.length>0)){e.next=28;break}throw T[0].message="Failed to upload some parts with error: ".concat(T[0].toString()," part_num: ").concat(T[0].partNum),T[0];case 28:return e.next=30,this.completeMultipartUpload(f,l,h,r);case 30:return e.abrupt("return",e.sent);case 31:case"end":return e.stop()}}),e,this)})));function t(t,r){return e.apply(this,arguments)}return t}(),g._getFileSize=function(){var e=(0,s.default)(i.default.mark((function e(t){return i.default.wrap((function(e){while(1)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)&&!h(t)){e.next=6;break}return e.abrupt("return",t.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}();var v=e("stream"),w=v.Readable;function j(e,t){if(!(this instanceof j))return new j(e,t);w.call(this,t),this.file=e,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}function x(e){return e.arrayBuffer?e.arrayBuffer():new Promise((function(t,r){var n=new FileReader;n.onload=function(e){t(e.target.result)},n.onerror=function(e){r(e)},n.readAsArrayBuffer(e)}))}o.inherits(j,w),j.prototype.readFileAndPush=function(e){if(this.fileBuffer){var t=!0;while(t&&this.fileBuffer&&this.startthis.fileBuffer.length?this.fileBuffer.length:n,this.start=n,t=this.push(this.fileBuffer.slice(r,n))}}},j.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);var r=16384;e=e||r;var n=this;this.reader.onload=function(r){n.fileBuffer=t.from(new Uint8Array(r.target.result)),n.file=null,n.readFileAndPush(e)},0===this.start?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(e)},g._createBuffer=function(){var e=(0,s.default)(i.default.mark((function e(r,n,s){var o,a;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!p(r)&&!h(r)){e.next=8;break}return o=r.slice(n,s),e.next=4,x(o);case 4:return a=e.sent,e.abrupt("return",t.from(a));case 8:if(!y(r)){e.next=12;break}return e.abrupt("return",r.subarray(n,s));case 12:throw new Error("_createBuffer requires File/Blob/Buffer.");case 13:case"end":return e.stop()}}),e)})));function r(t,r,n){return e.apply(this,arguments)}return r}(),g._getPartSize=function(e,t){var r=1e4,n=1048576;t||(t=n);var i=Math.ceil(e/r);return t1&&void 0!==l[1]?l[1]:{},n=t["continuation-token"]||t.continuationToken,n&&(r.subres=Object.assign({"continuation-token":n},r.subres)),s=this._objectRequestParams("GET","",r),s.query=Object.assign({"list-type":2},t),delete s.query["continuation-token"],delete s.query.continuationToken,s.xmlResponse=!0,s.successStatuses=[200],e.next=11,this.request(s);case 11:return o=e.sent,a=o.data.Contents||[],c=this,a&&(Array.isArray(a)||(a=[a]),a=a.map((function(e){return{name:e.Key,url:c._objectUrl(e.Key),lastModified:e.LastModified,etag:e.ETag,type:e.Type,size:Number(e.Size),storageClass:e.StorageClass,owner:e.Owner?{id:e.Owner.ID,displayName:e.Owner.DisplayName}:null}}))),u=o.data.CommonPrefixes||null,u&&(Array.isArray(u)||(u=[u]),u=u.map((function(e){return e.Prefix}))),e.abrupt("return",{res:o.res,objects:a,prefixes:u,isTruncated:"true"===o.data.IsTruncated,keyCount:+o.data.KeyCount,continuationToken:o.data.ContinuationToken||null,nextContinuationToken:o.data.NextContinuationToken||null});case 18:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),w.restore=function(){var e=(0,s.default)(i.default.mark((function e(t){var r,n,s,o,a=arguments;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=a.length>1&&void 0!==a[1]?a[1]:{type:"Archive"},r=r||{},r.subres=Object.assign({restore:""},r.subres),r.versionId&&(r.subres.versionId=r.versionId),n=this._objectRequestParams("POST",t,r),"ColdArchive"===r.type&&(s={RestoreRequest:{Days:r.Days?r.Days:2,JobParameters:{Tier:r.JobParameters?r.JobParameters:"Standard"}}},n.content=v(s,{headers:!0}),n.mime="xml"),n.successStatuses=[202],e.next=9,this.request(n);case 9:return o=e.sent,e.abrupt("return",{res:o.res});case 11:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),w._objectUrl=function(e){return this._getReqUrl({bucket:this.options.bucket,object:e})},w._objectRequestParams=function(e,t,r){if(!this.options.bucket&&!this.options.cname)throw new Error("Please create a bucket first");r=r||{},t=this._objectName(t);var n={object:t,bucket:this.options.bucket,method:e,subres:r&&r.subres,timeout:r&&r.timeout,ctx:r&&r.ctx};return r.headers&&(n.headers={},a(r.headers).to(n.headers)),n},w._objectName=function(e){return e.replace(/^\/+/,"")},w._convertMetaToHeaders=function(e,t){e&&Object.keys(e).forEach((function(r){t["x-oss-meta-".concat(r)]=e[r]}))},w._deleteFileSafe=function(e){var t=this;return new Promise((function(r){o.exists(e,(function(n){n?o.unlink(e,(function(n){n&&t.debug("unlink %j error: %s",e,n,"error"),r()})):r()}))}))}},{"../common/callback":24,"../common/image":27,"../common/object/copyObject":31,"../common/object/delete":32,"../common/object/deleteMulti":33,"../common/object/deleteObjectTagging":34,"../common/object/generateObjectUrl":35,"../common/object/get":36,"../common/object/getACL":37,"../common/object/getBucketVersions":38,"../common/object/getObjectMeta":39,"../common/object/getObjectTagging":40,"../common/object/getObjectUrl":41,"../common/object/getSymlink":42,"../common/object/head":43,"../common/object/putACL":44,"../common/object/putObjectTagging":45,"../common/object/putSymlink":46,"../common/object/signatureUrl":47,"../common/utils/isBlob":62,"../common/utils/isBuffer":63,"../common/utils/isFile":64,"../common/utils/obj2xml":69,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,"copy-to":88,"core-js/modules/es.array.map.js":249,"core-js/modules/es.function.name.js":253,"core-js/modules/es.number.constructor.js":254,"core-js/modules/es.object.assign.js":255,"core-js/modules/es.object.keys.js":257,"core-js/modules/es.object.to-string.js":258,"core-js/modules/es.promise.js":259,"core-js/modules/es.regexp.exec.js":261,"core-js/modules/es.regexp.to-string.js":262,"core-js/modules/es.string.replace.js":266,"core-js/modules/web.dom-collections.for-each.js":296,fs:84,"merge-descriptors":315,mime:317,path:321}],6:[function(e,t,r){"use strict";r.version="6.17.1"},{}],7:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator")),s=n(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(r,"__esModule",{value:!0}),r.abortBucketWorm=void 0;var o=e("../utils/checkBucketName");function a(e,t){return c.apply(this,arguments)}function c(){return c=(0,s.default)(i.default.mark((function e(t,r){var n,s;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return o.checkBucketName(t),n=this._bucketRequestParams("DELETE",t,"worm",r),e.next=4,this.request(n);case 4:return s=e.sent,e.abrupt("return",{res:s.res,status:s.status});case 6:case"end":return e.stop()}}),e,this)}))),c.apply(this,arguments)}r.abortBucketWorm=a},{"../utils/checkBucketName":50,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76}],8:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator")),s=n(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(r,"__esModule",{value:!0}),r.completeBucketWorm=void 0;var o=e("../utils/checkBucketName");function a(e,t,r){return c.apply(this,arguments)}function c(){return c=(0,s.default)(i.default.mark((function e(t,r,n){var s,a;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return o.checkBucketName(t),s=this._bucketRequestParams("POST",t,{wormId:r},n),e.next=4,this.request(s);case 4:return a=e.sent,e.abrupt("return",{res:a.res,status:a.status});case 6:case"end":return e.stop()}}),e,this)}))),c.apply(this,arguments)}r.completeBucketWorm=a},{"../utils/checkBucketName":50,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76}],9:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js");var s=n(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(r,"__esModule",{value:!0}),r.deleteBucketInventory=void 0;var o=e("../utils/checkBucketName");function a(e,t){return c.apply(this,arguments)}function c(){return c=(0,s.default)(i.default.mark((function e(t,r){var n,s,a,c,u=arguments;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=u.length>2&&void 0!==u[2]?u[2]:{},s=Object.assign({inventory:"",inventoryId:r},n.subres),o.checkBucketName(t),a=this._bucketRequestParams("DELETE",t,s,n),a.successStatuses=[204],e.next=7,this.request(a);case 7:return c=e.sent,e.abrupt("return",{status:c.status,res:c.res});case 9:case"end":return e.stop()}}),e,this)}))),c.apply(this,arguments)}r.deleteBucketInventory=a},{"../utils/checkBucketName":50,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,"core-js/modules/es.object.assign.js":255}],10:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator")),s=n(e("@babel/runtime/helpers/asyncToGenerator")),o=e("../utils/checkBucketName"),a=o.checkBucketName,c=r;c.deleteBucketLifecycle=function(){var e=(0,s.default)(i.default.mark((function e(t,r){var n,s;return i.default.wrap((function(e){while(1)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 s=e.sent,e.abrupt("return",{res:s.res});case 7:case"end":return e.stop()}}),e,this)})));function t(t,r){return e.apply(this,arguments)}return t}()},{"../utils/checkBucketName":50,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76}],11:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator")),s=n(e("@babel/runtime/helpers/asyncToGenerator")),o=e("../utils/checkBucketName"),a=o.checkBucketName,c=r;c.deleteBucketWebsite=function(){var e=(0,s.default)(i.default.mark((function e(t,r){var n,s;return i.default.wrap((function(e){while(1)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 s=e.sent,e.abrupt("return",{res:s.res});case 7:case"end":return e.stop()}}),e,this)})));function t(t,r){return e.apply(this,arguments)}return t}()},{"../utils/checkBucketName":50,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76}],12:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator")),s=n(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(r,"__esModule",{value:!0}),r.extendBucketWorm=void 0;var o=e("../utils/checkBucketName"),a=e("../utils/obj2xml");function c(e,t,r,n){return u.apply(this,arguments)}function u(){return u=(0,s.default)(i.default.mark((function e(t,r,n,s){var c,u,l;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return o.checkBucketName(t),c=this._bucketRequestParams("POST",t,{wormExtend:"",wormId:r},s),u={ExtendWormConfiguration:{RetentionPeriodInDays:n}},c.mime="xml",c.content=a.obj2xml(u,{headers:!0}),c.successStatuses=[200],e.next=8,this.request(c);case 8:return l=e.sent,e.abrupt("return",{res:l.res,status:l.status});case 10:case"end":return e.stop()}}),e,this)}))),u.apply(this,arguments)}r.extendBucketWorm=c},{"../utils/checkBucketName":50,"../utils/obj2xml":69,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76}],13:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js");var s=n(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(r,"__esModule",{value:!0}),r.getBucketInventory=void 0;var o=e("../utils/checkBucketName"),a=e("../utils/formatInventoryConfig");function c(e,t){return u.apply(this,arguments)}function u(){return u=(0,s.default)(i.default.mark((function e(t,r){var n,s,c,u,l=arguments;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=l.length>2&&void 0!==l[2]?l[2]:{},s=Object.assign({inventory:"",inventoryId:r},n.subres),o.checkBucketName(t),c=this._bucketRequestParams("GET",t,s,n),c.successStatuses=[200],c.xmlResponse=!0,e.next=8,this.request(c);case 8:return u=e.sent,e.abrupt("return",{status:u.status,res:u.res,inventory:a.formatInventoryConfig(u.data)});case 10:case"end":return e.stop()}}),e,this)}))),u.apply(this,arguments)}r.getBucketInventory=c},{"../utils/checkBucketName":50,"../utils/formatInventoryConfig":58,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,"core-js/modules/es.object.assign.js":255}],14:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.array.map.js");var s=n(e("@babel/runtime/helpers/asyncToGenerator")),o=e("../utils/checkBucketName"),a=o.checkBucketName,c=e("../utils/isArray"),u=c.isArray,l=e("../utils/formatObjKey"),p=l.formatObjKey,f=r;f.getBucketLifecycle=function(){var e=(0,s.default)(i.default.mark((function e(t,r){var n,s,o;return i.default.wrap((function(e){while(1)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 s=e.sent,o=s.data.Rule||null,o&&(u(o)||(o=[o]),o=o.map((function(e){return e.ID&&(e.id=e.ID,delete e.ID),e.Tag&&!u(e.Tag)&&(e.Tag=[e.Tag]),p(e,"firstLowerCase")}))),e.abrupt("return",{rules:o,res:s.res});case 10:case"end":return e.stop()}}),e,this)})));function t(t,r){return e.apply(this,arguments)}return t}()},{"../utils/checkBucketName":50,"../utils/formatObjKey":59,"../utils/isArray":61,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,"core-js/modules/es.array.map.js":249}],15:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator")),s=n(e("@babel/runtime/helpers/asyncToGenerator")),o=e("../utils/checkBucketName"),a=o.checkBucketName,c=r;c.getBucketVersioning=function(){var e=(0,s.default)(i.default.mark((function e(t,r){var n,s,o;return i.default.wrap((function(e){while(1)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 s=e.sent,o=s.data.Status,e.abrupt("return",{status:s.status,versionStatus:o,res:s.res});case 9:case"end":return e.stop()}}),e,this)})));function t(t,r){return e.apply(this,arguments)}return t}()},{"../utils/checkBucketName":50,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76}],16:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator")),s=n(e("@babel/runtime/helpers/asyncToGenerator")),o=e("../utils/checkBucketName"),a=o.checkBucketName,c=e("../utils/isObject"),u=c.isObject,l=r;l.getBucketWebsite=function(){var e=(0,s.default)(i.default.mark((function e(t,r){var n,s,o;return i.default.wrap((function(e){while(1)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 s=e.sent,o=[],s.data.RoutingRules&&s.data.RoutingRules.RoutingRule&&(o=u(s.data.RoutingRules.RoutingRule)?[s.data.RoutingRules.RoutingRule]:s.data.RoutingRules.RoutingRule),e.abrupt("return",{index:s.data.IndexDocument&&s.data.IndexDocument.Suffix||"",supportSubDir:s.data.IndexDocument&&s.data.IndexDocument.SupportSubDir||"false",type:s.data.IndexDocument&&s.data.IndexDocument.Type,routingRules:o,error:s.data.ErrorDocument&&s.data.ErrorDocument.Key||null,res:s.res});case 10:case"end":return e.stop()}}),e,this)})));function t(t,r){return e.apply(this,arguments)}return t}()},{"../utils/checkBucketName":50,"../utils/isObject":67,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76}],17:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js");var s=n(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(r,"__esModule",{value:!0}),r.getBucketWorm=void 0;var o=e("../utils/checkBucketName"),a=e("../utils/dataFix");function c(e,t){return u.apply(this,arguments)}function u(){return u=(0,s.default)(i.default.mark((function e(t,r){var n,s;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return o.checkBucketName(t),n=this._bucketRequestParams("GET",t,"worm",r),n.successStatuses=[200],n.xmlResponse=!0,e.next=6,this.request(n);case 6:return s=e.sent,a.dataFix(s.data,{lowerFirst:!0,rename:{RetentionPeriodInDays:"days"}}),e.abrupt("return",Object.assign(Object.assign({},s.data),{res:s.res,status:s.status}));case 9:case"end":return e.stop()}}),e,this)}))),u.apply(this,arguments)}r.getBucketWorm=c},{"../utils/checkBucketName":50,"../utils/dataFix":55,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,"core-js/modules/es.object.assign.js":255}],18:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator")),s=n(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(r,"__esModule",{value:!0}),r.initiateBucketWorm=void 0;var o=e("../utils/obj2xml"),a=e("../utils/checkBucketName");function c(e,t,r){return u.apply(this,arguments)}function u(){return u=(0,s.default)(i.default.mark((function e(t,r,n){var s,c,u;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a.checkBucketName(t),s=this._bucketRequestParams("POST",t,"worm",n),c={InitiateWormConfiguration:{RetentionPeriodInDays:r}},s.mime="xml",s.content=o.obj2xml(c,{headers:!0}),s.successStatuses=[200],e.next=8,this.request(s);case 8:return u=e.sent,e.abrupt("return",{res:u.res,wormId:u.res.headers["x-oss-worm-id"],status:u.status});case 10:case"end":return e.stop()}}),e,this)}))),u.apply(this,arguments)}r.initiateBucketWorm=c},{"../utils/checkBucketName":50,"../utils/obj2xml":69,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76}],19:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js");var s=n(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(r,"__esModule",{value:!0}),r.listBucketInventory=void 0;var o=e("../utils/checkBucketName"),a=e("../utils/formatInventoryConfig");function c(e){return u.apply(this,arguments)}function u(){return u=(0,s.default)(i.default.mark((function e(t){var r,n,s,c,u,l,p,f,h=arguments;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=h.length>1&&void 0!==h[1]?h[1]:{},n=r.continuationToken,s=Object.assign({inventory:""},n&&{"continuation-token":n},r.subres),o.checkBucketName(t),c=this._bucketRequestParams("GET",t,s,r),c.successStatuses=[200],c.xmlResponse=!0,e.next=9,this.request(c);case 9:return u=e.sent,l=u.data,p=u.res,f=u.status,e.abrupt("return",{isTruncated:"true"===l.IsTruncated,nextContinuationToken:l.NextContinuationToken,inventoryList:a.formatInventoryConfig(l.InventoryConfiguration,!0),status:f,res:p});case 12:case"end":return e.stop()}}),e,this)}))),u.apply(this,arguments)}r.listBucketInventory=c},{"../utils/checkBucketName":50,"../utils/formatInventoryConfig":58,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,"core-js/modules/es.object.assign.js":255}],20:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js"),e("core-js/modules/es.array.concat.js");var s=n(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(r,"__esModule",{value:!0}),r.putBucketInventory=void 0;var o=e("../utils/checkBucketName"),a=e("../utils/obj2xml");function c(e,t){return u.apply(this,arguments)}function u(){return u=(0,s.default)(i.default.mark((function e(t,r){var n,s,c,u,l,p,f,h,d,m,y,b=arguments;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=b.length>2&&void 0!==b[2]?b[2]:{},s=Object.assign({inventory:"",inventoryId:r.id},n.subres),o.checkBucketName(t),c=r.OSSBucketDestination,u=r.optionalFields,l=r.includedObjectVersions,p="acs:oss:::",f="acs:ram::".concat(c.accountId,":role/"),h={InventoryConfiguration:{Id:r.id,IsEnabled:r.isEnabled,Filter:{Prefix:r.prefix||""},Destination:{OSSBucketDestination:{Format:c.format,AccountId:c.accountId,RoleArn:"".concat(f).concat(c.rolename),Bucket:"".concat(p).concat(c.bucket),Prefix:c.prefix||"",Encryption:c.encryption||""}},Schedule:{Frequency:r.frequency},IncludedObjectVersions:l,OptionalFields:{Field:(null===u||void 0===u?void 0:u.field)||[]}}},d=a.obj2xml(h,{headers:!0,firstUpperCase:!0}),m=this._bucketRequestParams("PUT",t,s,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)}))),u.apply(this,arguments)}r.putBucketInventory=c},{"../utils/checkBucketName":50,"../utils/obj2xml":69,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,"core-js/modules/es.array.concat.js":241,"core-js/modules/es.object.assign.js":255}],21:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.array.includes.js");var s=n(e("@babel/runtime/helpers/asyncToGenerator")),o=e("../utils/checkBucketName"),a=o.checkBucketName,c=e("../utils/isArray"),u=c.isArray,l=e("../utils/deepCopy"),p=l.deepCopy,f=e("../utils/isObject"),h=f.isObject,d=e("../utils/obj2xml"),m=d.obj2xml,y=e("../utils/checkObjectTag"),b=y.checkObjectTag,g=e("../utils/getStrBytesCount"),v=g.getStrBytesCount,w=r;function j(e){e.days&&(e.expiration={days:e.days}),e.date&&(e.expiration={createdBeforeDate:e.date})}function x(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 T(e){if(!u(e)&&!h(e))throw new Error("tag must be Object or Array");e=h(e)?[e]:e;var t={},r=p(e);r.forEach((function(e){t[e.key]=e.value})),b(t)}function k(e){if(e.id&&v(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");x(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 x(e.expiration,"Expiration");if(e.abortMultipartUpload&&x(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");T(e.tag)}}w.putBucketLifecycle=function(){var e=(0,s.default)(i.default.mark((function e(t,r,n){var s,o,c,l,p;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a(t),u(r)){e.next=3;break}throw new Error("rules must be Array");case 3:return s=this._bucketRequestParams("PUT",t,"lifecycle",n),o=[],c={LifecycleConfiguration:{Rule:o}},r.forEach((function(e){j(e),k(e),e.id&&(e.ID=e.id,delete e.id),o.push(e)})),l=m(c,{headers:!0,firstUpperCase:!0}),s.content=l,s.mime="xml",s.successStatuses=[200],e.next=13,this.request(s);case 13:return p=e.sent,e.abrupt("return",{res:p.res});case 15:case"end":return e.stop()}}),e,this)})));function t(t,r,n){return e.apply(this,arguments)}return t}()},{"../utils/checkBucketName":50,"../utils/checkObjectTag":52,"../utils/deepCopy":56,"../utils/getStrBytesCount":60,"../utils/isArray":61,"../utils/isObject":67,"../utils/obj2xml":69,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,"core-js/modules/es.array.includes.js":246,"core-js/modules/web.dom-collections.for-each.js":296}],22:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.array.includes.js");var s=n(e("@babel/runtime/helpers/asyncToGenerator")),o=e("../utils/checkBucketName"),a=o.checkBucketName,c=e("../utils/obj2xml"),u=c.obj2xml,l=r;l.putBucketVersioning=function(){var e=(0,s.default)(i.default.mark((function e(t,r){var n,s,o,c,l=arguments;return i.default.wrap((function(e){while(1)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 s=this._bucketRequestParams("PUT",t,"versioning",n),o={VersioningConfiguration:{Status:r}},s.mime="xml",s.content=u(o,{headers:!0}),e.next=10,this.request(s);case 10:return c=e.sent,e.abrupt("return",{res:c.res,status:c.status});case 12:case"end":return e.stop()}}),e,this)})));function t(t,r){return e.apply(this,arguments)}return t}()},{"../utils/checkBucketName":50,"../utils/obj2xml":69,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,"core-js/modules/es.array.includes.js":246}],23:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator")),s=n(e("@babel/runtime/helpers/asyncToGenerator")),o=e("../utils/checkBucketName"),a=o.checkBucketName,c=e("../utils/obj2xml"),u=c.obj2xml,l=e("../utils/isArray"),p=l.isArray,f=r;f.putBucketWebsite=function(){var e=(0,s.default)(i.default.mark((function e(t){var r,n,s,o,c,l,f,h=arguments;return i.default.wrap((function(e){while(1)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),s=this._bucketRequestParams("PUT",t,"website",n),o={Suffix:r.index||"index.html"},c={IndexDocument:o},l={WebsiteConfiguration:c},r.supportSubDir&&(o.SupportSubDir=r.supportSubDir),r.type&&(o.Type=r.type),r.error&&(c.ErrorDocument={Key:r.error}),void 0===r.routingRules){e.next=14;break}if(p(r.routingRules)){e.next=13;break}throw new Error("RoutingRules must be Array");case 13:c.RoutingRules={RoutingRule:r.routingRules};case 14:return l=u(l),s.content=l,s.mime="xml",s.successStatuses=[200],e.next=20,this.request(s);case 20:return f=e.sent,e.abrupt("return",{res:f.res});case 22:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{"../utils/checkBucketName":50,"../utils/isArray":61,"../utils/obj2xml":69,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76}],24:[function(e,t,r){(function(t){(function(){"use strict";e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.regexp.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.object.keys.js"),r.encodeCallback=function(e,r){if(e.headers=e.headers||{},!Object.prototype.hasOwnProperty.call(e.headers,"x-oss-callback")&&r.callback){var n={callbackUrl:encodeURI(r.callback.url),callbackBody:r.callback.body};r.callback.host&&(n.callbackHost=r.callback.host),r.callback.contentType&&(n.callbackBodyType=r.callback.contentType);var i=t.from(JSON.stringify(n)).toString("base64");if(e.headers["x-oss-callback"]=i,r.callback.customValue){var s={};Object.keys(r.callback.customValue).forEach((function(e){s["x:".concat(e)]=r.callback.customValue[e]})),e.headers["x-oss-callback-var"]=t.from(JSON.stringify(s)).toString("base64")}}}}).call(this)}).call(this,e("buffer").Buffer)},{buffer:85,"core-js/modules/es.object.keys.js":257,"core-js/modules/es.object.to-string.js":258,"core-js/modules/es.regexp.to-string.js":262,"core-js/modules/web.dom-collections.for-each.js":296}],25:[function(e,t,r){"use strict";e("core-js/modules/es.array.concat.js"),e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.replace.js"),e("core-js/modules/web.dom-collections.for-each.js");var n=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.getReqUrl=void 0;var i=n(e("copy-to")),s=n(e("url")),o=n(e("merge-descriptors")),a=n(e("is-type-of")),c=e("../utils/isIP"),u=e("../utils/checkConfigValid");function l(e){var t={},r=this.options.cname;u.checkConfigValid(this.options.endpoint,"endpoint"),i.default(this.options.endpoint,!1).to(t),!e.bucket||r||c.isIP(t.hostname)||this.options.sldEnable||(t.host="".concat(e.bucket,".").concat(t.host));var n="/";e.bucket&&this.options.sldEnable&&(n+="".concat(e.bucket,"/")),e.object&&(n+=this._escape(e.object).replace(/\+/g,"%2B")),t.pathname=n;var l={};if(e.query&&o.default(l,e.query),e.subres){var p={};a.default.string(e.subres)?p[e.subres]="":a.default.array(e.subres)?e.subres.forEach((function(e){p[e]=""})):p=e.subres,o.default(l,p)}return t.query=l,s.default.format(t)}r.getReqUrl=l},{"../utils/checkConfigValid":51,"../utils/isIP":66,"copy-to":88,"core-js/modules/es.array.concat.js":241,"core-js/modules/es.regexp.exec.js":261,"core-js/modules/es.string.replace.js":266,"core-js/modules/web.dom-collections.for-each.js":296,"is-type-of":398,"merge-descriptors":315,url:404}],26:[function(e,t,r){"use strict";e("core-js/modules/es.array.concat.js"),e("core-js/modules/es.object.assign.js"),e("core-js/modules/es.string.trim.js");var n=e("humanize-ms"),i=e("url"),s=e("../utils/checkBucketName"),o=s.checkBucketName,a=e("../utils/setRegion"),c=a.setRegion,u=e("../utils/checkConfigValid"),l=u.checkConfigValid;function p(e,t){l(e,"endpoint");var r=i.parse(e);if(r.protocol||(r=i.parse("http".concat(t?"s":"","://").concat(e))),"http:"!==r.protocol&&"https:"!==r.protocol)throw new Error("Endpoint protocol must be http or https.");return r}t.exports=function(e){if(!e||!e.accessKeyId||!e.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");!e.stsToken||e.refreshSTSToken||e.refreshSTSTokenInterval||console.warn("It's recommended to set 'refreshSTSToken' and 'refreshSTSTokenInterval' to refresh stsToken、accessKeyId、accessKeySecret automatically when sts token has expired"),e.bucket&&o(e.bucket);var t=Object.assign({region:"oss-cn-hangzhou",internal:!1,secure:!1,timeout:6e4,bucket:null,endpoint:null,cname:!1,isRequestPay:!1,sldEnable:!1,headerEncoding:"utf-8",refreshSTSToken:null,refreshSTSTokenInterval:3e5,retryMax:0},e);if(t.accessKeyId=t.accessKeyId.trim(),t.accessKeySecret=t.accessKeySecret.trim(),t.timeout&&(t.timeout=n(t.timeout)),t.endpoint)t.endpoint=p(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":50,"../utils/checkConfigValid":51,"../utils/setRegion":71,"core-js/modules/es.array.concat.js":241,"core-js/modules/es.object.assign.js":255,"core-js/modules/es.string.trim.js":269,"humanize-ms":303,url:404}],27:[function(e,t,r){"use strict";var n=e("merge-descriptors"),i=r;n(i,e("./processObjectSave"))},{"./processObjectSave":28,"merge-descriptors":315}],28:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.array.concat.js");var s=n(e("@babel/runtime/helpers/asyncToGenerator")),o=e("../utils/checkBucketName"),a=o.checkBucketName,c=e("querystring"),u=e("js-base64"),l=u.Base64.encode,p=r;function f(e,t){if(!e)throw new Error("".concat(t," is required"));if("string"!==typeof e)throw new Error("".concat(t," must be String"))}p.processObjectSave=function(){var e=(0,s.default)(i.default.mark((function e(t,r,n,s){var o,u,p,h;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return f(t,"sourceObject"),f(r,"targetObject"),f(n,"process"),r=this._objectName(r),s&&a(s),o=this._objectRequestParams("POST",t,{subres:"x-oss-process"}),u=s?",b_".concat(l(s)):"",r=l(r),p={"x-oss-process":"".concat(n,"|sys/saveas,o_").concat(r).concat(u)},o.content=c.stringify(p),e.next=12,this.request(o);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)})));function t(t,r,n,i){return e.apply(this,arguments)}return t}()},{"../utils/checkBucketName":50,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,"core-js/modules/es.array.concat.js":241,"js-base64":314,querystring:328}],29:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.array.concat.js"),e("core-js/modules/es.function.name.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.promise.js"),e("core-js/modules/es.array.from.js"),e("core-js/modules/es.string.iterator.js"),e("core-js/modules/es.array.map.js"),e("core-js/modules/es.array.filter.js"),e("core-js/modules/es.array.find.js"),e("core-js/modules/es.regexp.to-string.js");var s=n(e("@babel/runtime/helpers/asyncToGenerator")),o=e("debug")("ali-oss:multipart-copy"),a=e("copy-to"),c=r;c.uploadPartCopy=function(){var e=(0,s.default)(i.default.mark((function e(t,r,n,s,o){var a,c,u,l,p,f=arguments;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=f.length>5&&void 0!==f[5]?f[5]:{},a.headers=a.headers||{},c=a.versionId||a.subres&&a.subres.versionId||null,u=c?"/".concat(o.sourceBucketName,"/").concat(encodeURIComponent(o.sourceKey),"?versionId=").concat(c):"/".concat(o.sourceBucketName,"/").concat(encodeURIComponent(o.sourceKey)),a.headers["x-oss-copy-source"]=u,s&&(a.headers["x-oss-copy-source-range"]="bytes=".concat(s)),a.subres={partNumber:n,uploadId:r},l=this._objectRequestParams("PUT",t,a),l.mime=a.mime,l.successStatuses=[200],e.next=12,this.request(l);case 12:return p=e.sent,e.abrupt("return",{name:t,etag:p.res.headers.etag,res:p.res});case 14:case"end":return e.stop()}}),e,this)})));function t(t,r,n,i,s){return e.apply(this,arguments)}return t}(),c.multipartUploadCopy=function(){var e=(0,s.default)(i.default.mark((function e(t,r){var n,s,o,a,c,u,l,p,f,h,d,m,y=arguments;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=y.length>2&&void 0!==y[2]?y[2]:{},this.resetCancelFlag(),s=n.versionId,o=void 0===s?null:s,a={versionId:o},e.next=6,this._getObjectMeta(r.sourceBucketName,r.sourceKey,a);case 6:if(c=e.sent,u=c.res.headers["content-length"],r.startOffset=r.startOffset||0,r.endOffset=r.endOffset||u,!n.checkpoint||!n.checkpoint.uploadId){e.next=14;break}return e.next=13,this._resumeMultipartCopy(n.checkpoint,r,n);case 13:return e.abrupt("return",e.sent);case 14:if(l=102400,p=r.endOffset-r.startOffset,!(p0)){e.next=40;break}throw O=_[0],O.message="Failed to copy some parts with error: ".concat(O.toString()," part_num: ").concat(O.partNum),O;case 40:return e.next=42,this.completeMultipartUpload(m,h,d,n);case 42:return e.abrupt("return",e.sent);case 43:case"end":return e.stop()}}),e,this)})));function t(t,r,n){return e.apply(this,arguments)}return t}(),c._divideMultipartCopyParts=function(e,t,r){for(var n=Math.ceil(e/t),i=[],s=0;s\n\n',l=0;l\n",c+="".concat(f.number,"\n"),c+="".concat(f.etag,"\n"),c+="\n";return c+="",s=s||{},h={},h=u(s,(function(e){if(p(e))return null})),h.headers&&delete h.headers["x-oss-server-side-encryption"],h.subres={uploadId:r},d=this._objectRequestParams("POST",t,h),a.encodeCallback(d,h),d.mime="xml",d.content=c,d.headers&&d.headers["x-oss-callback"]||(d.xmlResponse=!0),d.successStatuses=[200],e.next=17,this.request(d);case 17:return m=e.sent,y={res:m.res,bucket:d.bucket,name:t,etag:m.res.headers.etag},d.headers&&d.headers["x-oss-callback"]&&(y.data=JSON.parse(m.data.toString())),e.abrupt("return",y);case 21:case"end":return e.stop()}}),e,this)})));function t(t,r,n,i){return e.apply(this,arguments)}return t}(),f._uploadPart=function(){var e=(0,s.default)(i.default.mark((function e(r,n,s,a,c){var u,l,p,f;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return c=c||{},u={},o(c).to(u),u.headers={"Content-Length":a.size},u.subres={partNumber:s,uploadId:n},l=this._objectRequestParams("PUT",r,u),l.mime=u.mime,p=t&&t.browser,p?l.content=a.content:l.stream=a.stream,l.successStatuses=[200],l.disabledMD5=c.disabledMD5,e.next=13,this.request(l);case 13:if(f=e.sent,f.res.headers.etag){e.next=16;break}throw new Error("Please set the etag of expose-headers in OSS \n https://help.aliyun.com/document_detail/32069.html");case 16:return a.stream&&(a.stream=null,l.stream=null),e.abrupt("return",{name:r,etag:f.res.headers.etag,res:f.res});case 18:case"end":return e.stop()}}),e,this)})));function r(t,r,n,i,s){return e.apply(this,arguments)}return r}()}).call(this)}).call(this,e("_process"))},{"./callback":24,"./utils/deepCopy":56,"./utils/isBuffer":63,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,_process:399,"copy-to":88,"core-js/modules/es.array.concat.js":241,"core-js/modules/es.array.filter.js":243,"core-js/modules/es.array.map.js":249,"core-js/modules/es.array.sort.js":251,"core-js/modules/es.object.to-string.js":258,"core-js/modules/es.regexp.to-string.js":262}],31:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.object.keys.js"),e("core-js/modules/es.array.find.js"),e("core-js/modules/es.array.includes.js"),e("core-js/modules/es.array.concat.js"),e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.replace.js");var s=n(e("@babel/runtime/helpers/typeof")),o=n(e("@babel/runtime/helpers/asyncToGenerator")),a=e("../utils/checkBucketName"),c=a.checkBucketName,u=r,l=["content-type","content-encoding","content-language","content-disposition","cache-control","expires"];u.copy=function(){var e=(0,o.default)(i.default.mark((function e(t,r,n,o){var a,c,u;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return"object"===(0,s.default)(n)&&(o=n),o=o||{},o.headers=o.headers||{},Object.keys(o.headers).forEach((function(e){o.headers["x-oss-copy-source-".concat(e.toLowerCase())]=o.headers[e]})),(o.meta||Object.keys(o.headers).find((function(e){return l.includes(e.toLowerCase())})))&&(o.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(o.meta,o.headers),r=this._getSourceName(r,n),o.versionId&&(r="".concat(r,"?versionId=").concat(o.versionId)),o.headers["x-oss-copy-source"]=r,a=this._objectRequestParams("PUT",t,o),a.xmlResponse=!0,a.successStatuses=[200,304],e.next=14,this.request(a);case 14:return c=e.sent,u=c.data,u&&(u={etag:u.ETag,lastModified:u.LastModified}),e.abrupt("return",{data:u,res:c.res});case 18:case"end":return e.stop()}}),e,this)})));function t(t,r,n,i){return e.apply(this,arguments)}return t}(),u._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")),c(t),e=encodeURIComponent(e),e="/".concat(t,"/").concat(e),e}},{"../utils/checkBucketName":50,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/helpers/typeof":75,"@babel/runtime/regenerator":76,"core-js/modules/es.array.concat.js":241,"core-js/modules/es.array.find.js":244,"core-js/modules/es.array.includes.js":246,"core-js/modules/es.object.keys.js":257,"core-js/modules/es.regexp.exec.js":261,"core-js/modules/es.string.replace.js":266,"core-js/modules/web.dom-collections.for-each.js":296}],32:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js");var s=n(e("@babel/runtime/helpers/asyncToGenerator")),o=r;o.delete=function(){var e=(0,s.default)(i.default.mark((function e(t){var r,n,s,o=arguments;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=o.length>1&&void 0!==o[1]?o[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 s=e.sent,e.abrupt("return",{res:s.res});case 9:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,"core-js/modules/es.object.assign.js":255}],33:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js");var s=n(e("@babel/runtime/helpers/asyncToGenerator")),o=e("utility"),a=e("../utils/obj2xml"),c=a.obj2xml,u=r;u.deleteMulti=function(){var e=(0,s.default)(i.default.mark((function e(t){var r,n,s,a,u,l,p,f,h,d,m,y,b,g=arguments;return i.default.wrap((function(e){while(1)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(s=0;s1&&void 0!==o[1]?o[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 s=e.sent,e.abrupt("return",{status:s.status,res:s.res});case 10:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,"core-js/modules/es.object.assign.js":255}],35:[function(e,t,r){"use strict";e("core-js/modules/es.array.concat.js");var n=e("url"),i=e("../utils/isIP"),s=i.isIP,o=r;o.generateObjectUrl=function(e,t){if(s(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":66,"core-js/modules/es.array.concat.js":241,url:404}],36:[function(e,t,r){(function(t){(function(){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js");var s=n(e("@babel/runtime/helpers/asyncToGenerator")),o=e("fs"),a=e("is-type-of"),c=r;c.get=function(){var e=(0,s.default)(i.default.mark((function e(r,n){var s,c,u,l,p,f,h,d,m=arguments;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return s=m.length>2&&void 0!==m[2]?m[2]:{},c=null,u=!1,a.writableStream(n)?c=n:a.string(n)?(c=o.createWriteStream(n),u=!0):s=n,s=s||{},l=t&&t.browser,p=null===s.responseCacheControl?"":"no-cache",f=l&&p?{"response-cache-control":p}:{},s.subres=Object.assign(f,s.subres),s.versionId&&(s.subres.versionId=s.versionId),s.process&&(s.subres["x-oss-process"]=s.process),e.prev=11,d=this._objectRequestParams("GET",r,s),d.writeStream=c,d.successStatuses=[200,206,304],e.next=17,this.request(d);case 17:h=e.sent,u&&c.destroy(),e.next=28;break;case 21:if(e.prev=21,e.t0=e["catch"](11),!u){e.next=27;break}return c.destroy(),e.next=27,this._deleteFileSafe(n);case 27:throw e.t0;case 28:return e.abrupt("return",{res:h.res,content:h.data});case 29:case"end":return e.stop()}}),e,this,[[11,21]])})));function r(t,r){return e.apply(this,arguments)}return r}()}).call(this)}).call(this,e("_process"))},{"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,_process:399,"core-js/modules/es.object.assign.js":255,fs:84,"is-type-of":398}],37:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js");var s=n(e("@babel/runtime/helpers/asyncToGenerator")),o=r;o.getACL=function(){var e=(0,s.default)(i.default.mark((function e(t){var r,n,s,o=arguments;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=o.length>1&&void 0!==o[1]?o[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 s=e.sent,e.abrupt("return",{acl:s.data.AccessControlList.Grant,owner:{id:s.data.Owner.ID,displayName:s.data.Owner.DisplayName},res:s.res});case 11:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,"core-js/modules/es.object.assign.js":255}],38:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.replace.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.object.keys.js"),e("core-js/modules/es.object.assign.js"),e("core-js/modules/es.array.map.js"),e("core-js/modules/es.number.constructor.js");var s=n(e("@babel/runtime/helpers/asyncToGenerator")),o=r,a=e("../utils/isObject"),c=a.isObject,u=e("../utils/isArray"),l=u.isArray;function p(){return f.apply(this,arguments)}function f(){return f=(0,s.default)(i.default.mark((function e(){var t,r,n,s,o,a,c,u,p=arguments;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=p.length>0&&void 0!==p[0]?p[0]:{},r=p.length>1&&void 0!==p[1]?p[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=d(t),e.next=12,this.request(n);case 12:return s=e.sent,o=s.data.Version||[],a=s.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&&(l(a)||(a=[a]),a=a.map((function(e){return{name:e.Key,lastModified:e.LastModified,versionId:e.VersionId,owner:{id:e.Owner.ID,displayName:e.Owner.DisplayName}}}))),u=s.data.CommonPrefixes||null,u&&(l(u)||(u=[u]),u=u.map((function(e){return e.Prefix}))),e.abrupt("return",{res:s.res,objects:o,deleteMarker:a,prefixes:u,nextMarker:s.data.NextKeyMarker||null,NextVersionIdMarker:s.data.NextVersionIdMarker||null,nextKeyMarker:s.data.NextKeyMarker||null,nextVersionIdMarker:s.data.NextVersionIdMarker||null,isTruncated:"true"===s.data.IsTruncated});case 21:case"end":return e.stop()}}),e,this)}))),f.apply(this,arguments)}function h(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={};return c(e)&&Object.keys(e).forEach((function(r){t[h(r)]=e[r]})),t}o.getBucketVersions=p,o.listObjectVersions=p},{"../utils/isArray":61,"../utils/isObject":67,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,"core-js/modules/es.array.map.js":249,"core-js/modules/es.number.constructor.js":254,"core-js/modules/es.object.assign.js":255,"core-js/modules/es.object.keys.js":257,"core-js/modules/es.regexp.exec.js":261,"core-js/modules/es.string.replace.js":266,"core-js/modules/web.dom-collections.for-each.js":296}],39:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js");var s=n(e("@babel/runtime/helpers/asyncToGenerator")),o=r;o.getObjectMeta=function(){var e=(0,s.default)(i.default.mark((function e(t,r){var n,s;return i.default.wrap((function(e){while(1)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 s=e.sent,e.abrupt("return",{status:s.status,res:s.res});case 10:case"end":return e.stop()}}),e,this)})));function t(t,r){return e.apply(this,arguments)}return t}()},{"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,"core-js/modules/es.object.assign.js":255}],40:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js"),e("core-js/modules/web.dom-collections.for-each.js");var s=n(e("@babel/runtime/helpers/asyncToGenerator")),o=r,a=e("../utils/isObject"),c=a.isObject;o.getObjectTagging=function(){var e=(0,s.default)(i.default.mark((function e(t){var r,n,s,o,a,u,l=arguments;return i.default.wrap((function(e){while(1)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 s=e.sent,e.next=11,this.parseXML(s.data);case 11:return o=e.sent,a=o.TagSet.Tag,a=a&&c(a)?[a]:a||[],u={},a.forEach((function(e){u[e.Key]=e.Value})),e.abrupt("return",{status:s.status,res:s.res,tag:u});case 17:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{"../utils/isObject":67,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,"core-js/modules/es.object.assign.js":255,"core-js/modules/web.dom-collections.for-each.js":296}],41:[function(e,t,r){"use strict";var n=e("../utils/isIP"),i=n.isIP,s=r;s.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":66}],42:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js");var s=n(e("@babel/runtime/helpers/asyncToGenerator")),o=r;o.getSymlink=function(){var e=(0,s.default)(i.default.mark((function e(t){var r,n,s,o,a=arguments;return i.default.wrap((function(e){while(1)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 s=e.sent,o=s.res.headers["x-oss-symlink-target"],e.abrupt("return",{targetName:decodeURIComponent(o),res:s.res});case 11:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,"core-js/modules/es.object.assign.js":255}],43:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.object.keys.js");var s=n(e("@babel/runtime/helpers/asyncToGenerator")),o=r;o.head=function(){var e=(0,s.default)(i.default.mark((function e(t){var r,n,s,o,a=arguments;return i.default.wrap((function(e){while(1)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 s=e.sent,o={meta:null,res:s.res,status:s.status},200===s.status&&Object.keys(s.headers).forEach((function(e){0===e.indexOf("x-oss-meta-")&&(o.meta||(o.meta={}),o.meta[e.substring(11)]=s.headers[e])})),e.abrupt("return",o);case 11:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,"core-js/modules/es.object.assign.js":255,"core-js/modules/es.object.keys.js":257,"core-js/modules/web.dom-collections.for-each.js":296}],44:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js");var s=n(e("@babel/runtime/helpers/asyncToGenerator")),o=r;o.putACL=function(){var e=(0,s.default)(i.default.mark((function e(t,r,n){var s,o;return i.default.wrap((function(e){while(1)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),s=this._objectRequestParams("PUT",t,n),s.successStatuses=[200],e.next=10,this.request(s);case 10:return o=e.sent,e.abrupt("return",{res:o.res});case 12:case"end":return e.stop()}}),e,this)})));function t(t,r,n){return e.apply(this,arguments)}return t}()},{"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,"core-js/modules/es.object.assign.js":255}],45:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js"),e("core-js/modules/es.array.map.js"),e("core-js/modules/es.object.keys.js");var s=n(e("@babel/runtime/helpers/asyncToGenerator")),o=e("../utils/obj2xml"),a=o.obj2xml,c=e("../utils/checkObjectTag"),u=c.checkObjectTag,l=r;l.putObjectTagging=function(){var e=(0,s.default)(i.default.mark((function e(t,r){var n,s,o,c,l=arguments;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=l.length>2&&void 0!==l[2]?l[2]:{},u(r),n.subres=Object.assign({tagging:""},n.subres),n.versionId&&(n.subres.versionId=n.versionId),t=this._objectName(t),s=this._objectRequestParams("PUT",t,n),s.successStatuses=[200],r=Object.keys(r).map((function(e){return{Key:e,Value:r[e]}})),o={Tagging:{TagSet:{Tag:r}}},s.mime="xml",s.content=a(o),e.next=13,this.request(s);case 13:return c=e.sent,e.abrupt("return",{res:c.res,status:c.status});case 15:case"end":return e.stop()}}),e,this)})));function t(t,r){return e.apply(this,arguments)}return t}()},{"../utils/checkObjectTag":52,"../utils/obj2xml":69,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,"core-js/modules/es.array.map.js":249,"core-js/modules/es.object.assign.js":255,"core-js/modules/es.object.keys.js":257}],46:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.assign.js");var s=n(e("@babel/runtime/helpers/asyncToGenerator")),o=r;o.putSymlink=function(){var e=(0,s.default)(i.default.mark((function e(t,r,n){var s,o;return i.default.wrap((function(e){while(1)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),s=this._objectRequestParams("PUT",t,n),s.successStatuses=[200],e.next=13,this.request(s);case 13:return o=e.sent,e.abrupt("return",{res:o.res});case 15:case"end":return e.stop()}}),e,this)})));function t(t,r,n){return e.apply(this,arguments)}return t}()},{"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,"core-js/modules/es.object.assign.js":255}],47:[function(e,t,r){"use strict";e("core-js/modules/es.object.assign.js");var n=e("url"),i=e("utility"),s=e("copy-to"),o=e("../../common/signUtils"),a=e("../utils/isIP"),c=a.isIP,u=e("../../common/utils/isFunction"),l=u.isFunction,p=e("../utils/setSTSToken"),f=p.checkCredentials,h=e("../utils/formatObjKey"),d=h.formatObjKey,m=r;m.signatureUrl=function(e,t){var r=this;if(c(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 a=i.timestamp()+(t.expires||1800),u={bucket:this.options.bucket,object:e},p=this._getResource(u);if(this.options.stsToken&&l(this.options.refreshSTSToken)){var h=new Date;this.stsTokenFreshTime>=this.options.refreshSTSTokenInterval?(this.stsTokenFreshTime=h,this.options.refreshSTSToken().then((function(e){var t=d(e,"firstLowerCase");t.securityToken&&(t.stsToken=t.securityToken),f(t),Object.assign(r.options,t)}))):this.stsTokenFreshTime=h}this.options.stsToken&&(t["security-token"]=this.options.stsToken);var m=o._signatureForURL(this.options.accessKeySecret,t,p,a),y=n.parse(this._getReqUrl(u));return y.query={OSSAccessKeyId:this.options.accessKeyId,Expires:a,Signature:m.Signature},s(m.subResource).to(y.query),y.format()}},{"../../common/signUtils":49,"../../common/utils/isFunction":65,"../utils/formatObjKey":59,"../utils/isIP":66,"../utils/setSTSToken":72,"copy-to":88,"core-js/modules/es.object.assign.js":255,url:404,utility:406}],48:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.array.iterator.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.promise.js"),e("core-js/modules/es.string.iterator.js"),e("core-js/modules/web.dom-collections.iterator.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.function.name.js");var s=n(e("@babel/runtime/helpers/asyncToGenerator")),o=e("./utils/isArray"),a=o.isArray,c=r;c._parallelNode=function(){var e=(0,s.default)(i.default.mark((function e(t,r,n,s){var o,a,c,u,l,p,f,h;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:o=this,a=[],c=[],u=t.length/r,l=t.length%r,p=0===l?u:(t.length-l)/r+1,f=1,h=0;case 8:if(!(h0)return a=!0,void(c<=0&&i(s));c+=1,h(e.value,l(f))}u=!1}}))},c.cancel=function(e){this.options.cancelFlag=!0,a(this.multipartUploadStreams)&&this.multipartUploadStreams.forEach((function(e){if(!1===e.destroyed){var t={name:"cancel",message:"cancel"};e.destroy(t)}})),this.multipartUploadStreams=[],e&&this.abortMultipartUpload(e.name,e.uploadId,e.options)},c.isCancel=function(){return this.options.cancelFlag},c.resetCancelFlag=function(){this.options.cancelFlag=!1},c._stop=function(){this.options.cancelFlag=!0},c._makeCancelEvent=function(){var e={status:0,name:"cancel"};return e},c._makeAbortEvent=function(){var e={status:0,name:"abort",message:"upload task has been abort"};return e}},{"./utils/isArray":61,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,"core-js/modules/es.array.iterator.js":247,"core-js/modules/es.function.name.js":253,"core-js/modules/es.object.to-string.js":258,"core-js/modules/es.promise.js":259,"core-js/modules/es.string.iterator.js":264,"core-js/modules/web.dom-collections.for-each.js":296,"core-js/modules/web.dom-collections.iterator.js":297}],49:[function(e,t,r){(function(t){(function(){"use strict";e("core-js/modules/es.string.trim.js"),e("core-js/modules/es.array.sort.js"),e("core-js/modules/es.array.join.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.object.keys.js"),e("core-js/modules/es.array.concat.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.regexp.to-string.js");var n=e("./../../shims/crypto/crypto.js"),i=e("is-type-of"),s=e("./utils/lowercaseKeyHeader"),o=s.lowercaseKeyHeader;r.buildCanonicalizedResource=function(e,t){var r="".concat(e),n="?";if(i.string(t)&&""!==t.trim())r+=n+t;else if(i.array(t))t.sort(),r+=n+t.join("&");else if(t){var s=function(e,t){return e[0]>t[0]?1:e[0]2&&void 0!==arguments[2]?arguments[2]:"utf-8",s=n.createHmac("sha1",e);return s.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,s=arguments.length>4?arguments[4]:void 0,o={},a=r.subResource,c=void 0===a?{}:a;if(r.process){var u="x-oss-process";c[u]=r.process}if(r.trafficLimit){var l="x-oss-traffic-limit";c[l]=r.trafficLimit}if(r.response&&Object.keys(r.response).forEach((function(e){var t="response-".concat(e.toLowerCase());c[t]=r.response[e]})),Object.keys(r).forEach((function(e){var t=e.toLowerCase(),n=r[e];0===t.indexOf("x-oss-")?o[t]=n:(0===t.indexOf("content-md5")||0===t.indexOf("content-type"))&&(o[e]=n)})),Object.prototype.hasOwnProperty.call(r,"security-token")&&(c["security-token"]=r["security-token"]),Object.prototype.hasOwnProperty.call(r,"callback")){var p={callbackUrl:encodeURI(r.callback.url),callbackBody:r.callback.body};if(r.callback.host&&(p.callbackHost=r.callback.host),r.callback.contentType&&(p.callbackBodyType=r.callback.contentType),c.callback=t.from(JSON.stringify(p)).toString("base64"),r.callback.customValue){var f={};Object.keys(r.callback.customValue).forEach((function(e){f["x:".concat(e)]=r.callback.customValue[e]})),c["callback-var"]=t.from(JSON.stringify(f)).toString("base64")}}var h=this.buildCanonicalString(r.method,n,{headers:o,parameters:c},i.toString());return{Signature:this.computeSignature(e,h,s),subResource:c}}}).call(this)}).call(this,e("buffer").Buffer)},{"./../../shims/crypto/crypto.js":393,"./utils/lowercaseKeyHeader":68,buffer:85,"core-js/modules/es.array.concat.js":241,"core-js/modules/es.array.join.js":248,"core-js/modules/es.array.sort.js":251,"core-js/modules/es.object.keys.js":257,"core-js/modules/es.object.to-string.js":258,"core-js/modules/es.regexp.to-string.js":262,"core-js/modules/es.string.trim.js":269,"core-js/modules/web.dom-collections.for-each.js":296,"is-type-of":398}],50:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.checkBucketName=void 0,r.checkBucketName=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=t?/^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/:/^[a-z0-9_][a-z0-9-_]{1,61}[a-z0-9_]$/;if(!r.test(e))throw new Error("The bucket must be conform to the specifications")}},{}],51:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.checkConfigValid=void 0;var n={endpoint:i,region:/^[a-zA-Z0-9\-_]+$/};function i(e){return"string"===typeof e?/^[a-zA-Z0-9._:/-]+$/.test(e):!!e.host&&/^[a-zA-Z0-9._:/-]+$/.test(e.host)}r.checkConfigValid=function(e,t){if(n[t]){var r=!0;if(r=n[t]instanceof Function?n[t](e):n[t].test(e),!r)throw new Error("The ".concat(t," must be conform to the specifications"))}}},{}],52:[function(e,t,r){"use strict";e("core-js/modules/es.array.concat.js"),e("core-js/modules/es.object.entries.js"),e("core-js/modules/web.dom-collections.for-each.js"),Object.defineProperty(r,"__esModule",{value:!0}),r.checkObjectTag=void 0;var n=e("./checkValid"),i=n.checkValid,s=e("./isObject"),o=s.isObject,a=[{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(a,[{pattern:/^.{1,128}$/,msg:"tag key can be a maximum of 128 bytes in length"}]),value:[].concat(a,[{pattern:/^.{0,256}$/,msg:"tag value can be a maximum of 256 bytes in length"}])};function u(e){if(!o(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){i(e,c[r[t]])}))}))}r.checkObjectTag=u},{"./checkValid":53,"./isObject":67,"core-js/modules/es.array.concat.js":241,"core-js/modules/es.object.entries.js":256,"core-js/modules/web.dom-collections.for-each.js":296}],53:[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/web.dom-collections.for-each.js"),Object.defineProperty(r,"__esModule",{value:!0}),r.checkValid=void 0,r.checkValid=n},{"core-js/modules/web.dom-collections.for-each.js":296}],54:[function(e,t,r){(function(t){(function(){"use strict";e("core-js/modules/es.array.includes.js"),e("core-js/modules/es.string.includes.js"),e("core-js/modules/es.object.assign.js"),e("core-js/modules/es.array.concat.js"),Object.defineProperty(r,"__esModule",{value:!0}),r.createRequest=void 0;var n=e("./../../../shims/crypto/crypto.js"),i=e("debug")("ali-oss"),s=e("mime"),o=e("dateformat"),a=e("copy-to"),c=e("path"),u=e("./encoder"),l=u.encoder,p=e("./isIP"),f=p.isIP,h=e("./setRegion"),d=h.setRegion,m=e("../client/getReqUrl"),y=m.getReqUrl;function b(e,t){return e[t]||e[t.toLowerCase()]}function g(e,t){delete e[t],delete e[t.toLowerCase()]}function v(e){var r=new Date;this.options.amendTimeSkewed&&(r=+new Date+this.options.amendTimeSkewed);var u={"x-oss-date":o(r,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'")};"undefined"!==typeof window&&(u["x-oss-user-agent"]=this.userAgent),this.userAgent.includes("nodejs")&&(u["User-Agent"]=this.userAgent),this.options.isRequestPay&&Object.assign(u,{"x-oss-request-payer":"requester"}),this.options.stsToken&&(u["x-oss-security-token"]=this.options.stsToken),a(e.headers).to(u),b(u,"Content-Type")||(e.mime&&e.mime.indexOf("/")>0?u["Content-Type"]=e.mime:u["Content-Type"]=s.getType(e.mime||c.extname(e.object||""))),b(u,"Content-Type")||g(u,"Content-Type"),e.content&&(e.disabledMD5||(u["Content-MD5"]=n.createHash("md5").update(t.from(e.content,"utf8")).digest("base64")),u["Content-Length"]||(u["Content-Length"]=e.content.length));var p=Object.prototype.hasOwnProperty;for(var h in u)u[h]&&p.call(u,h)&&(u[h]=l(String(u[h]),this.options.headerEncoding));var m=this._getResource(e);if(u.authorization=this.authorization(e.method,m,e.subres,u,this.options.headerEncoding),f(this.options.endpoint.hostname)){var v=this.options,w=v.region,j=v.internal,x=v.secure,T=d(w,j,x);u.host="".concat(e.bucket,".").concat(T.host)}var k=y.bind(this)(e);i("request %s %s, with headers %j, !!stream: %s",e.method,k,u,!!e.stream);var E=e.timeout||this.options.timeout,_={method:e.method,content:e.content,stream:e.stream,headers:u,timeout:E,writeStream:e.writeStream,customResponse:e.customResponse,ctx:e.ctx||this.ctx};return this.agent&&(_.agent=this.agent),this.httpsAgent&&(_.httpsAgent=this.httpsAgent),_.enableProxy=!!this.options.enableProxy,_.proxy=this.options.proxy?this.options.proxy:null,{url:k,params:_}}r.createRequest=v}).call(this)}).call(this,e("buffer").Buffer)},{"../client/getReqUrl":25,"./../../../shims/crypto/crypto.js":393,"./encoder":57,"./isIP":66,"./setRegion":71,buffer:85,"copy-to":88,"core-js/modules/es.array.concat.js":241,"core-js/modules/es.array.includes.js":246,"core-js/modules/es.object.assign.js":255,"core-js/modules/es.string.includes.js":263,dateformat:299,debug:397,mime:317,path:321}],55:[function(e,t,r){"use strict";e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.object.entries.js"),e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.replace.js"),e("core-js/modules/es.array.includes.js"),e("core-js/modules/es.object.keys.js"),Object.defineProperty(r,"__esModule",{value:!0}),r.dataFix=void 0;var n=e("./isObject"),i=["true","TRUE","1",1],s=["false","FALSE","0",0];function o(e,t,r){if(n.isObject(e)){var i=t.remove,s=void 0===i?[]:i,u=t.rename,l=void 0===u?{}:u,p=t.camel,f=void 0===p?[]:p,h=t.bool,d=void 0===h?[]:h,m=t.lowerFirst,y=void 0!==m&&m;return s.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]]))})),f.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]=a(e[t])})),"function"===typeof r&&r(e),c(e,y),o}}function a(e){return!!e&&(!!i.includes(e)||!s.includes(e)&&e)}function c(e,t){t&&Object.keys(e).forEach((function(t){var r=t.replace(/^\w/,(function(e){return e.toLowerCase()}));"undefined"===typeof e[r]&&(e[r]=e[t],delete e[t])}))}r.dataFix=o},{"./isObject":67,"core-js/modules/es.array.includes.js":246,"core-js/modules/es.object.entries.js":256,"core-js/modules/es.object.keys.js":257,"core-js/modules/es.regexp.exec.js":261,"core-js/modules/es.string.replace.js":266,"core-js/modules/web.dom-collections.for-each.js":296}],56:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.array.slice.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.object.keys.js");var i=n(e("@babel/runtime/helpers/typeof"));Object.defineProperty(r,"__esModule",{value:!0}),r.deepCopyWith=r.deepCopy=void 0;var s=e("./isBuffer");r.deepCopy=function(e){if(null===e||"object"!==(0,i.default)(e))return e;if(s.isBuffer(e))return e.slice();var t=Array.isArray(e)?[]:{};return Object.keys(e).forEach((function(n){t[n]=r.deepCopy(e[n])})),t},r.deepCopyWith=function(e,t){function n(e,r,o){var a=t(e,r,o);if(void 0!==a)return a;if(null===e||"object"!==(0,i.default)(e))return e;if(s.isBuffer(e))return e.slice();var c=Array.isArray(e)?[]:{};return Object.keys(e).forEach((function(t){c[t]=n(e[t],t,e)})),c}return t?n(e,"",null):r.deepCopy(e)}},{"./isBuffer":63,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/helpers/typeof":75,"core-js/modules/es.array.slice.js":250,"core-js/modules/es.object.keys.js":257,"core-js/modules/web.dom-collections.for-each.js":296}],57:[function(e,t,r){(function(t){(function(){"use strict";function n(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"utf-8";return"utf-8"===r?e:t.from(e).toString("latin1")}e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.regexp.to-string.js"),Object.defineProperty(r,"__esModule",{value:!0}),r.encoder=void 0,r.encoder=n}).call(this)}).call(this,e("buffer").Buffer)},{buffer:85,"core-js/modules/es.object.to-string.js":258,"core-js/modules/es.regexp.to-string.js":262}],58:[function(e,t,r){"use strict";e("core-js/modules/es.array.map.js"),e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.replace.js"),Object.defineProperty(r,"__esModule",{value:!0}),r.formatInventoryConfig=void 0;var n=e("../utils/dataFix"),i=e("../utils/isObject"),s=e("../utils/isArray"),o=e("../utils/formatObjKey");function a(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t&&i.isObject(e)&&(e=[e]),e=s.isArray(e)?e.map(c):c(e),e}function c(e){return n.dataFix(e,{bool:["IsEnabled"]},(function(e){var t,r;e.prefix=e.Filter.Prefix,delete e.Filter,e.OSSBucketDestination=e.Destination.OSSBucketDestination,e.OSSBucketDestination.rolename=e.OSSBucketDestination.RoleArn.replace(/.*\//,""),delete e.OSSBucketDestination.RoleArn,e.OSSBucketDestination.bucket=e.OSSBucketDestination.Bucket.replace(/.*:::/,""),delete e.OSSBucketDestination.Bucket,delete e.Destination,e.frequency=e.Schedule.Frequency,delete e.Schedule.Frequency,(null===(t=null===e||void 0===e?void 0:e.OptionalFields)||void 0===t?void 0:t.Field)&&!s.isArray(null===(r=e.OptionalFields)||void 0===r?void 0:r.Field)&&(e.OptionalFields.Field=[e.OptionalFields.Field])})),e=o.formatObjKey(e,"firstLowerCase",{exclude:["OSSBucketDestination","SSE-OSS","SSE-KMS"]}),e}r.formatInventoryConfig=a},{"../utils/dataFix":55,"../utils/formatObjKey":59,"../utils/isArray":61,"../utils/isObject":67,"core-js/modules/es.array.map.js":249,"core-js/modules/es.regexp.exec.js":261,"core-js/modules/es.string.replace.js":266}],59:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.object.keys.js"),e("core-js/modules/es.array.includes.js"),e("core-js/modules/es.string.includes.js"),e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.replace.js");var i=n(e("@babel/runtime/helpers/typeof"));function s(e,t,r){if(null===e||"object"!==(0,i.default)(e))return e;var n;if(Array.isArray(e)){n=[];for(var a=0;a").concat(e[t],""):"object"===i(e[t])?r+="<".concat(t,">").concat(s(e[t]),""):"array"===i(e[t])?r+=e[t].map((function(e){return"<".concat(t,">").concat(s(e),"")})).join(""):r+="<".concat(t,">").concat(e[t].toString(),""))})):r+=e.toString(),r}r.obj2xml=s},{"./formatObjKey":59,"core-js/modules/es.array.concat.js":241,"core-js/modules/es.array.join.js":248,"core-js/modules/es.array.map.js":249,"core-js/modules/es.object.keys.js":257,"core-js/modules/es.object.to-string.js":258,"core-js/modules/es.regexp.exec.js":261,"core-js/modules/es.regexp.to-string.js":262,"core-js/modules/es.string.replace.js":266,"core-js/modules/web.dom-collections.for-each.js":296}],70:[function(e,t,r){"use strict";function n(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=0,i=r.retryDelay,s=void 0===i?500:i,o=r.errorHandler,a=void 0===o?function(){return!0}:o,c=function r(){for(var i=arguments.length,o=new Array(i),c=0;c1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];s.checkConfigValid(e,"region");var n=r?"https://":"http://",o=t?"-internal.aliyuncs.com":".aliyuncs.com",a="vpc100-oss-cn-";return e.substr(0,a.length)===a&&(o=".aliyuncs.com"),i.default.parse(n+e+o)}r.setRegion=o},{"./checkConfigValid":51,url:404}],72:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator"));e("core-js/modules/es.object.keys.js"),e("core-js/modules/es.array.find.js"),e("core-js/modules/es.object.assign.js");var s=n(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(r,"__esModule",{value:!0}),r.checkCredentials=r.setSTSToken=void 0;var o=e("./formatObjKey");function a(){return c.apply(this,arguments)}function c(){return c=(0,s.default)(i.default.mark((function e(){var t,r;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.options||(this.options={}),t=new Date,!this.stsTokenFreshTime){e.next=14;break}if(!(+t-this.stsTokenFreshTime>=this.options.refreshSTSTokenInterval)){e.next=12;break}return this.stsTokenFreshTime=t,e.next=7,this.options.refreshSTSToken();case 7:r=e.sent,r=o.formatObjKey(r,"firstLowerCase"),r.securityToken&&(r.stsToken=r.securityToken),u(r),Object.assign(this.options,r);case 12:e.next=15;break;case 14:this.stsTokenFreshTime=t;case 15:return e.abrupt("return",null);case 16:case"end":return e.stop()}}),e,this)}))),c.apply(this,arguments)}function u(e){var t=["accessKeySecret","accessKeyId","stsToken"],r=Object.keys(e);t.forEach((function(e){if(!r.find((function(t){return t===e})))throw Error("refreshSTSToken must return contains ".concat(e))}))}r.setSTSToken=a,r.checkCredentials=u},{"./formatObjKey":59,"@babel/runtime/helpers/asyncToGenerator":73,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/regenerator":76,"core-js/modules/es.array.find.js":244,"core-js/modules/es.object.assign.js":255,"core-js/modules/es.object.keys.js":257}],73:[function(e,t,r){function n(e,t,r,n,i,s,o){try{var a=e[s](o),c=a.value}catch(u){return void r(u)}a.done?t(c):Promise.resolve(c).then(n,i)}function i(e){return function(){var t=this,r=arguments;return new Promise((function(i,s){var o=e.apply(t,r);function a(e){n(o,i,s,a,c,"next",e)}function c(e){n(o,i,s,a,c,"throw",e)}a(void 0)}))}}t.exports=i,t.exports["default"]=t.exports,t.exports.__esModule=!0},{}],74:[function(e,t,r){function n(e){return e&&e.__esModule?e:{default:e}}t.exports=n,t.exports["default"]=t.exports,t.exports.__esModule=!0},{}],75:[function(e,t,r){function n(e){return"function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?(t.exports=n=function(e){return typeof e},t.exports["default"]=t.exports,t.exports.__esModule=!0):(t.exports=n=function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t.exports["default"]=t.exports,t.exports.__esModule=!0),n(e)}t.exports=n,t.exports["default"]=t.exports,t.exports.__esModule=!0},{}],76:[function(e,t,r){t.exports=e("regenerator-runtime")},{"regenerator-runtime":342}],77:[function(e,t,r){function n(){}t.exports=n,t.exports.HttpsAgent=n},{}],78:[function(e,r,n){(function(t){(function(){"use strict";var n=e("object-assign"); /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */function i(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,i=0,s=Math.min(r,n);i=0;u--)if(l[u]!==p[u])return!1;for(u=l.length-1;u>=0;u--)if(a=l[u],!w(e[a],t[a],r,n))return!1;return!0}function T(e,t,r){w(e,t,!0)&&g(e,t,r,"notDeepStrictEqual",T)}function k(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(r){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function E(e){var t;try{e()}catch(r){t=r}return t}function _(e,t,r,n){var i;if("function"!==typeof t)throw new TypeError('"block" argument must be a function');"string"===typeof r&&(n=r,r=null),i=E(t),n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),e&&!i&&g(i,r,"Missing expected exception"+n);var s="string"===typeof n,a=!e&&o.isError(i),c=!e&&i&&!r;if((a&&s&&k(i,r)||c)&&g(i,r,"Got unwanted exception"+n),e&&i&&r&&!k(i,r)||!e&&i)throw i}function S(e,t){e||g(e,!0,t,"==",S)}f.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=b(this),this.generatedMessage=!0);var t=e.stackStartFunction||g;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var r=new Error;if(r.stack){var n=r.stack,i=d(t),s=n.indexOf("\n"+i);if(s>=0){var o=n.indexOf("\n",s+1);n=n.substring(o+1)}this.stack=n}}},o.inherits(f.AssertionError,Error),f.fail=g,f.ok=v,f.equal=function(e,t,r){e!=t&&g(e,t,r,"==",f.equal)},f.notEqual=function(e,t,r){e==t&&g(e,t,r,"!=",f.notEqual)},f.deepEqual=function(e,t,r){w(e,t,!1)||g(e,t,r,"deepEqual",f.deepEqual)},f.deepStrictEqual=function(e,t,r){w(e,t,!0)||g(e,t,r,"deepStrictEqual",f.deepStrictEqual)},f.notDeepEqual=function(e,t,r){w(e,t,!1)&&g(e,t,r,"notDeepEqual",f.notDeepEqual)},f.notDeepStrictEqual=T,f.strictEqual=function(e,t,r){e!==t&&g(e,t,r,"===",f.strictEqual)},f.notStrictEqual=function(e,t,r){e===t&&g(e,t,r,"!==",f.notStrictEqual)},f.throws=function(e,t,r){_(!0,e,t,r)},f.doesNotThrow=function(e,t,r){_(!1,e,t,r)},f.ifError=function(e){if(e)throw e},f.strict=n(S,f,{equal:f.strictEqual,deepEqual:f.deepStrictEqual,notEqual:f.notStrictEqual,notDeepEqual:f.notDeepStrictEqual}),f.strict.strict=f.strict;var O=Object.keys||function(e){var t=[];for(var r in e)a.call(e,r)&&t.push(r);return t}}).call(this)}).call(this,"undefined"!==typeof t?t:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{"object-assign":320,"util/":81}],79:[function(e,t,r){"function"===typeof Object.create?t.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},{}],80:[function(e,t,r){t.exports=function(e){return e&&"object"===typeof e&&"function"===typeof e.copy&&"function"===typeof e.fill&&"function"===typeof e.readUInt8}},{}],81:[function(e,r,n){(function(t,r){(function(){var i=/%[sdj%]/g;n.format=function(e){if(!x(e)){for(var t=[],r=0;r=s)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}default:return e}})),c=n[r];r=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),g(t)?r.showHidden=t:t&&n._extend(r,t),k(r.showHidden)&&(r.showHidden=!1),k(r.depth)&&(r.depth=2),k(r.colors)&&(r.colors=!1),k(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=c),p(r,e,r.depth)}function c(e,t){var r=a.styles[t];return r?"["+a.colors[r][0]+"m"+e+"["+a.colors[r][1]+"m":e}function u(e,t){return e}function l(e){var t={};return e.forEach((function(e,r){t[e]=!0})),t}function p(e,t,r){if(e.customInspect&&t&&A(t.inspect)&&t.inspect!==n.inspect&&(!t.constructor||t.constructor.prototype!==t)){var i=t.inspect(r,e);return x(i)||(i=p(e,i,r)),i}var s=f(e,t);if(s)return s;var o=Object.keys(t),a=l(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(t)),O(t)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return h(t);if(0===o.length){if(A(t)){var c=t.name?": "+t.name:"";return e.stylize("[Function"+c+"]","special")}if(E(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(S(t))return e.stylize(Date.prototype.toString.call(t),"date");if(O(t))return h(t)}var u,g="",v=!1,w=["{","}"];if(b(t)&&(v=!0,w=["[","]"]),A(t)){var j=t.name?": "+t.name:"";g=" [Function"+j+"]"}return E(t)&&(g=" "+RegExp.prototype.toString.call(t)),S(t)&&(g=" "+Date.prototype.toUTCString.call(t)),O(t)&&(g=" "+h(t)),0!==o.length||v&&0!=t.length?r<0?E(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),u=v?d(e,t,r,a,o):o.map((function(n){return m(e,t,r,a,n,v)})),e.seen.pop(),y(u,g,w)):w[0]+g+w[1]}function f(e,t){if(k(t))return e.stylize("undefined","undefined");if(x(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return j(t)?e.stylize(""+t,"number"):g(t)?e.stylize(""+t,"boolean"):v(t)?e.stylize("null","null"):void 0}function h(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,r,n,i){for(var s=[],o=0,a=t.length;o-1&&(a=s?a.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+a.split("\n").map((function(e){return" "+e})).join("\n"))):a=e.stylize("[Circular]","special")),k(o)){if(s&&i.match(/^\d+$/))return a;o=JSON.stringify(""+i),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+a}function y(e,t,r){var n=e.reduce((function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0);return n>60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}function b(e){return Array.isArray(e)}function g(e){return"boolean"===typeof e}function v(e){return null===e}function w(e){return null==e}function j(e){return"number"===typeof e}function x(e){return"string"===typeof e}function T(e){return"symbol"===typeof e}function k(e){return void 0===e}function E(e){return _(e)&&"[object RegExp]"===I(e)}function _(e){return"object"===typeof e&&null!==e}function S(e){return _(e)&&"[object Date]"===I(e)}function O(e){return _(e)&&("[object Error]"===I(e)||e instanceof Error)}function A(e){return"function"===typeof e}function D(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e}function I(e){return Object.prototype.toString.call(e)}function C(e){return e<10?"0"+e.toString(10):e.toString(10)}n.debuglog=function(e){if(k(s)&&(s=t.env.NODE_DEBUG||""),e=e.toUpperCase(),!o[e])if(new RegExp("\\b"+e+"\\b","i").test(s)){var r=t.pid;o[e]=function(){var t=n.format.apply(n,arguments);console.error("%s %d: %s",e,r,t)}}else o[e]=function(){};return o[e]},n.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},n.isArray=b,n.isBoolean=g,n.isNull=v,n.isNullOrUndefined=w,n.isNumber=j,n.isString=x,n.isSymbol=T,n.isUndefined=k,n.isRegExp=E,n.isObject=_,n.isDate=S,n.isError=O,n.isFunction=A,n.isPrimitive=D,n.isBuffer=e("./support/isBuffer");var N=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function R(){var e=new Date,t=[C(e.getHours()),C(e.getMinutes()),C(e.getSeconds())].join(":");return[e.getDate(),N[e.getMonth()],t].join(" ")}function M(e,t){return Object.prototype.hasOwnProperty.call(e,t)}n.log=function(){console.log("%s - %s",R(),n.format.apply(n,arguments))},n.inherits=e("inherits"),n._extend=function(e,t){if(!t||!_(t))return e;var r=Object.keys(t),n=r.length;while(n--)e[r[n]]=t[r[n]];return e}}).call(this)}).call(this,e("_process"),"undefined"!==typeof t?t:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{"./support/isBuffer":80,_process:399,inherits:79}],82:[function(e,t,r){"use strict";r.byteLength=l,r.toByteArray=f,r.fromByteArray=m;for(var n=[],i=[],s="undefined"!==typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,c=o.length;a0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function l(e){var t=u(e),r=t[0],n=t[1];return 3*(r+n)/4-n}function p(e,t,r){return 3*(t+r)/4-r}function f(e){var t,r,n=u(e),o=n[0],a=n[1],c=new s(p(e,o,a)),l=0,f=a>0?o-4:o;for(r=0;r>16&255,c[l++]=t>>8&255,c[l++]=255&t;return 2===a&&(t=i[e.charCodeAt(r)]<<2|i[e.charCodeAt(r+1)]>>4,c[l++]=255&t),1===a&&(t=i[e.charCodeAt(r)]<<10|i[e.charCodeAt(r+1)]<<4|i[e.charCodeAt(r+2)]>>2,c[l++]=t>>8&255,c[l++]=255&t),c}function h(e){return n[e>>18&63]+n[e>>12&63]+n[e>>6&63]+n[63&e]}function d(e,t,r){for(var n,i=[],s=t;sc?c:a+o));return 1===i?(t=e[r-1],s.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],s.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),s.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},{}],83:[function(t,r,n){ /*! * Bowser - a browser detector * https://github.com/ded/bowser * MIT License | (c) Dustin Diaz 2015 */ !function(t,n,i){"undefined"!=typeof r&&r.exports?r.exports=i():"function"==typeof e&&e.amd?e(n,i):t[n]=i()}(this,"bowser",(function(){var e=!0;function t(t){function r(e){var r=t.match(e);return r&&r.length>1&&r[1]||""}function n(e){var r=t.match(e);return r&&r.length>1&&r[2]||""}var i,o=r(/(ipod|iphone|ipad)/i).toLowerCase(),a=/like android/i.test(t),c=!a&&/android/i.test(t),u=/nexus\s*[0-6]\s*/i.test(t),l=!u&&/nexus\s*[0-9]+/i.test(t),p=/CrOS/.test(t),f=/silk/i.test(t),h=/sailfish/i.test(t),d=/tizen/i.test(t),m=/(web|hpw)(o|0)s/i.test(t),y=/windows phone/i.test(t),b=(/SamsungBrowser/i.test(t),!y&&/windows/i.test(t)),g=!o&&!f&&/macintosh/i.test(t),v=!c&&!h&&!d&&!m&&/linux/i.test(t),w=n(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),j=r(/version\/(\d+(\.\d+)?)/i),x=/tablet/i.test(t)&&!/tablet pc/i.test(t),T=!x&&/[^-]mobi/i.test(t),k=/xbox/i.test(t);function E(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}}/opera/i.test(t)?i={name:"Opera",opera:e,version:j||r(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(t)?i={name:"Opera",opera:e,version:r(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||j}:/SamsungBrowser/i.test(t)?i={name:"Samsung Internet for Android",samsungBrowser:e,version:j||r(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(t)?i={name:"NAVER Whale browser",whale:e,version:r(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(t)?i={name:"MZ Browser",mzbrowser:e,version:r(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(t)?i={name:"Opera Coast",coast:e,version:j||r(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(t)?i={name:"Focus",focus:e,version:r(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(t)?i={name:"Yandex Browser",yandexbrowser:e,version:j||r(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(t)?i={name:"UC Browser",ucbrowser:e,version:r(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(t)?i={name:"Maxthon",maxthon:e,version:r(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(t)?i={name:"Epiphany",epiphany:e,version:r(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(t)?i={name:"Puffin",puffin:e,version:r(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(t)?i={name:"Sleipnir",sleipnir:e,version:r(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(t)?i={name:"K-Meleon",kMeleon:e,version:r(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:y?(i={name:"Windows Phone",osname:"Windows Phone",windowsphone:e},w?(i.msedge=e,i.version=w):(i.msie=e,i.version=r(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(t)?i={name:"Internet Explorer",msie:e,version:r(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:p?i={name:"Chrome",osname:"Chrome OS",chromeos:e,chromeBook:e,chrome:e,version:r(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(t)?i={name:"Microsoft Edge",msedge:e,version:w}:/vivaldi/i.test(t)?i={name:"Vivaldi",vivaldi:e,version:r(/vivaldi\/(\d+(\.\d+)?)/i)||j}:h?i={name:"Sailfish",osname:"Sailfish OS",sailfish:e,version:r(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(t)?i={name:"SeaMonkey",seamonkey:e,version:r(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(t)?(i={name:"Firefox",firefox:e,version:r(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(t)&&(i.firefoxos=e,i.osname="Firefox OS")):f?i={name:"Amazon Silk",silk:e,version:r(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(t)?i={name:"PhantomJS",phantom:e,version:r(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(t)?i={name:"SlimerJS",slimer:e,version:r(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(t)||/rim\stablet/i.test(t)?i={name:"BlackBerry",osname:"BlackBerry OS",blackberry:e,version:j||r(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:m?(i={name:"WebOS",osname:"WebOS",webos:e,version:j||r(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(t)&&(i.touchpad=e)):/bada/i.test(t)?i={name:"Bada",osname:"Bada",bada:e,version:r(/dolfin\/(\d+(\.\d+)?)/i)}:d?i={name:"Tizen",osname:"Tizen",tizen:e,version:r(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||j}:/qupzilla/i.test(t)?i={name:"QupZilla",qupzilla:e,version:r(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||j}:/chromium/i.test(t)?i={name:"Chromium",chromium:e,version:r(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||j}:/chrome|crios|crmo/i.test(t)?i={name:"Chrome",chrome:e,version:r(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:c?i={name:"Android",version:j}:/safari|applewebkit/i.test(t)?(i={name:"Safari",safari:e},j&&(i.version=j)):o?(i={name:"iphone"==o?"iPhone":"ipad"==o?"iPad":"iPod"},j&&(i.version=j)):i=/googlebot/i.test(t)?{name:"Googlebot",googlebot:e,version:r(/googlebot\/(\d+(\.\d+))/i)||j}:{name:r(/^(.*)\/(.*) /),version:n(/^(.*)\/(.*) /)},!i.msedge&&/(apple)?webkit/i.test(t)?(/(apple)?webkit\/537\.36/i.test(t)?(i.name=i.name||"Blink",i.blink=e):(i.name=i.name||"Webkit",i.webkit=e),!i.version&&j&&(i.version=j)):!i.opera&&/gecko\//i.test(t)&&(i.name=i.name||"Gecko",i.gecko=e,i.version=i.version||r(/gecko\/(\d+(\.\d+)?)/i)),i.windowsphone||!c&&!i.silk?!i.windowsphone&&o?(i[o]=e,i.ios=e,i.osname="iOS"):g?(i.mac=e,i.osname="macOS"):k?(i.xbox=e,i.osname="Xbox"):b?(i.windows=e,i.osname="Windows"):v&&(i.linux=e,i.osname="Linux"):(i.android=e,i.osname="Android");var _="";i.windows?_=E(r(/Windows ((NT|XP)( \d\d?.\d)?)/i)):i.windowsphone?_=r(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):i.mac?(_=r(/Mac OS X (\d+([_\.\s]\d+)*)/i),_=_.replace(/[_\s]/g,".")):o?(_=r(/os (\d+([_\s]\d+)*) like mac os x/i),_=_.replace(/[_\s]/g,".")):c?_=r(/android[ \/-](\d+(\.\d+)*)/i):i.webos?_=r(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):i.blackberry?_=r(/rim\stablet\sos\s(\d+(\.\d+)*)/i):i.bada?_=r(/bada\/(\d+(\.\d+)*)/i):i.tizen&&(_=r(/tizen[\/\s](\d+(\.\d+)*)/i)),_&&(i.osversion=_);var S=!i.windows&&_.split(".")[0];return x||l||"ipad"==o||c&&(3==S||S>=4&&!T)||i.silk?i.tablet=e:(T||"iphone"==o||"ipod"==o||c||u||i.blackberry||i.webos||i.bada)&&(i.mobile=e),i.msedge||i.msie&&i.version>=10||i.yandexbrowser&&i.version>=15||i.vivaldi&&i.version>=1||i.chrome&&i.version>=20||i.samsungBrowser&&i.version>=4||i.whale&&1===s([i.version,"1.0"])||i.mzbrowser&&1===s([i.version,"6.0"])||i.focus&&1===s([i.version,"1.0"])||i.firefox&&i.version>=20||i.safari&&i.version>=6||i.opera&&i.version>=10||i.ios&&i.osversion&&i.osversion.split(".")[0]>=6||i.blackberry&&i.version>=10.1||i.chromium&&i.version>=20?i.a=e:i.msie&&i.version<10||i.chrome&&i.version<20||i.firefox&&i.version<20||i.safari&&i.version<6||i.opera&&i.version<10||i.ios&&i.osversion&&i.osversion.split(".")[0]<6||i.chromium&&i.version<20?i.c=e:i.x=e,i}var r=t("undefined"!==typeof navigator&&navigator.userAgent||"");function n(e){return e.split(".").length}function i(e,t){var r,n=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(r=0;r=0){if(r[0][t]>r[1][t])return 1;if(r[0][t]!==r[1][t])return-1;if(0===t)return 0}}function o(e,n,i){var o=r;"string"===typeof n&&(i=n,n=void 0),void 0===n&&(n=!1),i&&(o=t(i));var a=""+o.version;for(var c in e)if(e.hasOwnProperty(c)&&o[c]){if("string"!==typeof e[c])throw new Error("Browser version in the minVersion map should be a string: "+c+": "+String(e));return s([a,e[c]])<0}return n}function a(e,t,r){return!o(e,t,r)}return r.test=function(e){for(var t=0;t * @license MIT */ "use strict";var r=e("base64-js"),i=e("ieee754"),s=e("isarray");function o(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"===typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function c(e,t){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function v(e){return+e!=e&&(e=0),u.alloc(+e)}function w(e,t){if(u.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return $(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Q(e).length;default:if(n)return $(e).length;t=(""+t).toLowerCase(),n=!0}}function j(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"";e||(e="utf8");while(1)switch(e){case"hex":return L(this,t,r);case"utf8":case"utf-8":return C(this,t,r);case"ascii":return M(this,t,r);case"latin1":case"binary":return P(this,t,r);case"base64":return I(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function x(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function T(e,t,r,n,i){if(0===e.length)return-1;if("string"===typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"===typeof t&&(t=u.from(t,n)),u.isBuffer(t))return 0===t.length?-1:k(e,t,r,n,i);if("number"===typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):k(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function k(e,t,r,n,i){var s,o=1,a=e.length,c=t.length;if(void 0!==n&&(n=String(n).toLowerCase(),"ucs2"===n||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;o=2,a/=2,c/=2,r/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var l=-1;for(s=r;sa&&(r=a-c),s=r;s>=0;s--){for(var p=!0,f=0;fi&&(n=i)):n=i;var s=t.length;if(s%2!==0)throw new TypeError("Invalid hex string");n>s/2&&(n=s/2);for(var o=0;o239?4:u>223?3:u>191?2:1;if(i+p<=r)switch(p){case 1:u<128&&(l=u);break;case 2:s=e[i+1],128===(192&s)&&(c=(31&u)<<6|63&s,c>127&&(l=c));break;case 3:s=e[i+1],o=e[i+2],128===(192&s)&&128===(192&o)&&(c=(15&u)<<12|(63&s)<<6|63&o,c>2047&&(c<55296||c>57343)&&(l=c));break;case 4:s=e[i+1],o=e[i+2],a=e[i+3],128===(192&s)&&128===(192&o)&&128===(192&a)&&(c=(15&u)<<18|(63&s)<<12|(63&o)<<6|63&a,c>65535&&c<1114112&&(l=c))}null===l?(l=65533,p=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),i+=p}return R(n)}n.Buffer=u,n.SlowBuffer=v,n.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:o(),n.kMaxLength=a(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,r){return l(null,e,t,r)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,r){return f(null,e,t,r)},u.allocUnsafe=function(e){return h(null,e)},u.allocUnsafeSlow=function(e){return h(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,i=0,s=Math.min(r,n);i0&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),""},u.prototype.compare=function(e,t,r,n,i){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var s=i-n,o=r-t,a=Math.min(s,o),c=this.slice(n,i),l=e.slice(t,r),p=0;pi)&&(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 s=!1;;)switch(n){case"hex":return E(this,e,t,r);case"utf8":case"utf-8":return _(this,e,t,r);case"ascii":return S(this,e,t,r);case"latin1":case"binary":return O(this,e,t,r);case"base64":return A(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,e,t,r);default:if(s)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),s=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var N=4096;function R(e){var t=e.length;if(t<=N)return String.fromCharCode.apply(String,e);var r="",n=0;while(nn)&&(r=n);for(var i="",s=t;sr)throw new RangeError("Trying to access beyond buffer length")}function F(e,t,r,n,i,s){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function U(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,s=Math.min(e.length-r,2);i>>8*(n?i:1-i)}function G(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,s=Math.min(e.length-r,4);i>>8*(n?i:3-i)&255}function X(e,t,r,n,i,s){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function V(e,t,r,n,s){return s||X(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function W(e,t,r,n,s){return s||X(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}u.prototype.slice=function(e,t){var r,n=this.length;if(e=~~e,t=void 0===t?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t0&&(i*=256))n+=this[e+--t]*i;return n},u.prototype.readUInt8=function(e,t){return t||q(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||q(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||q(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||q(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||q(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||q(e,t,this.length);var n=this[e],i=1,s=0;while(++s=i&&(n-=Math.pow(2,8*t)),n},u.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||q(e,t,this.length);var n=t,i=1,s=this[e+--n];while(n>0&&(i*=256))s+=this[e+--n]*i;return i*=128,s>=i&&(s-=Math.pow(2,8*t)),s},u.prototype.readInt8=function(e,t){return t||q(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||q(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(e,t){t||q(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(e,t){return t||q(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||q(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||q(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||q(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||q(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||q(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t|=0,r|=0,!n){var i=Math.pow(2,8*r)-1;F(this,e,t,r,i,0)}var s=1,o=0;this[t]=255&e;while(++o=0&&(o*=256))this[t+s]=e/o&255;return t+r},u.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||F(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||F(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):U(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||F(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):U(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||F(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):G(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||F(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):G(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);F(this,e,t,r,i-1,-i)}var s=0,o=1,a=0;this[t]=255&e;while(++s>0)-a&255;return t+r},u.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);F(this,e,t,r,i-1,-i)}var s=r-1,o=1,a=0;this[t+s]=255&e;while(--s>=0&&(o*=256))e<0&&0===a&&0!==this[t+s+1]&&(a=1),this[t+s]=(e/o>>0)-a&255;return t+r},u.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||F(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||F(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):U(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||F(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):U(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||F(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):G(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||F(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):G(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,r){return V(this,e,t,!0,r)},u.prototype.writeFloatBE=function(e,t,r){return V(this,e,t,!1,r)},u.prototype.writeDoubleLE=function(e,t,r){return W(this,e,t,!0,r)},u.prototype.writeDoubleBE=function(e,t,r){return W(this,e,t,!1,r)},u.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t=0;--i)e[i+t]=this[i+r];else if(s<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"===typeof e)for(s=t;s55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&s.push(239,191,189);continue}if(o+1===n){(t-=3)>-1&&s.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&s.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&s.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;s.push(r)}else if(r<2048){if((t-=2)<0)break;s.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;s.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;s.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return s}function J(e){for(var t=[],r=0;r>8,i=r%256,s.push(i),s.push(n)}return s}function Q(e){return r.toByteArray(H(e))}function ee(e,t,r,n){for(var i=0;i=t.length||i>=e.length)break;t[i+r]=e[i]}return i}function te(e){return e!==e}}).call(this)}).call(this,"undefined"!==typeof t?t:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{},e("buffer").Buffer)},{"base64-js":82,buffer:85,ieee754:304,isarray:313}],86:[function(e,t,r){var n=e("buffer").Buffer,i=n.isEncoding||function(e){switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function s(e){if(e&&!i(e))throw new Error("Unknown encoding: "+e)}var o=r.StringDecoder=function(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),s(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=c;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=u;break;default:return void(this.write=a)}this.charBuffer=new n(6),this.charReceived=0,this.charLength=0};function a(e){return e.toString(this.encoding)}function c(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function u(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}o.prototype.write=function(e){var t="";while(this.charLength){var r=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,r),this.charReceived+=r,this.charReceived=55296&&n<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var i=e.length;this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,i),i-=this.charReceived),t+=e.toString(this.encoding,0,i);i=t.length-1,n=t.charCodeAt(i);if(n>=55296&&n<=56319){var s=this.surrogateSize;return this.charLength+=s,this.charReceived+=s,this.charBuffer.copy(this.charBuffer,s,0,s),e.copy(this.charBuffer,0,0,s),t.substring(0,i)}return t},o.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var r=e[e.length-t];if(1==t&&r>>5==6){this.charLength=2;break}if(t<=2&&r>>4==14){this.charLength=3;break}if(t<=3&&r>>3==30){this.charLength=4;break}}this.charReceived=t},o.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var r=this.charReceived,n=this.charBuffer,i=this.encoding;t+=n.slice(0,r).toString(i)}return t}},{buffer:85}],87:[function(e,t,r){t.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},{}],88:[function(e,t,r){ /*! * copy-to - index.js * Copyright(c) 2014 dead_horse * MIT Licensed */ "use strict";var n=Array.prototype.slice;function i(e,t){if(!(this instanceof i))return new i(e,t);this.src=e,this._withAccess=t}function s(e,t){return void 0===e[t]&&void 0===e.__lookupGetter__(t)&&void 0===e.__lookupSetter__(t)}t.exports=i,i.prototype.withAccess=function(e){return this._withAccess=!1!==e,this},i.prototype.pick=function(e){return Array.isArray(e)||(e=n.call(arguments)),e.length&&(this.keys=e),this},i.prototype.to=function(e){if(e=e||{},!this.src)return e;var t=this.keys||Object.keys(this.src);if(!this._withAccess){for(var r=0;r>8&255]},B=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},q=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},F=function(e){return R(e,23,4)},U=function(e){return R(e,52,8)},G=function(e,t){b(e[E],t,{get:function(){return j(this)[t]}})},X=function(e,t,r,n){var i=f(r),s=j(e);if(i+t>s.byteLength)throw N(S);var o=j(s.buffer).bytes,a=i+s.byteOffset,c=o.slice(a,a+t);return n?c:c.reverse()},V=function(e,t,r,n,i,s){var o=f(r),a=j(e);if(o+t>a.byteLength)throw N(S);for(var c=j(a.buffer).bytes,u=o+a.byteOffset,l=n(+i),p=0;pK;)(W=H[K++])in A||o(A,W,O[W]);z.constructor=A}m&&d(I)!==C&&m(I,C);var Y=new D(new A(2)),$=I.setInt8;Y.setInt8(0,2147483648),Y.setInt8(1,2147483649),!Y.getInt8(0)&&Y.getInt8(1)||a(I,{setInt8:function(e,t){$.call(this,e,t<<24>>24)},setUint8:function(e,t){$.call(this,e,t<<24>>24)}},{unsafe:!0})}else A=function(e){u(this,A,T);var t=f(e);x(this,{bytes:g.call(new Array(t),0),byteLength:t}),i||(this.byteLength=t)},D=function(e,t,r){u(this,D,k),u(e,A,k);var n=j(e).byteLength,s=l(t);if(s<0||s>n)throw N("Wrong offset");if(r=void 0===r?n-s:p(r),s+r>n)throw N(_);x(this,{buffer:e,byteLength:r,byteOffset:s}),i||(this.buffer=e,this.byteLength=r,this.byteOffset=s)},i&&(G(A,"byteLength"),G(D,"buffer"),G(D,"byteLength"),G(D,"byteOffset")),a(D[E],{getInt8:function(e){return X(this,1,e)[0]<<24>>24},getUint8:function(e){return X(this,1,e)[0]},getInt16:function(e){var t=X(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=X(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return q(X(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return q(X(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return M(X(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return M(X(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){V(this,1,e,P,t)},setUint8:function(e,t){V(this,1,e,P,t)},setInt16:function(e,t){V(this,2,e,L,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){V(this,2,e,L,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){V(this,4,e,B,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){V(this,4,e,B,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){V(this,4,e,F,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){V(this,8,e,U,t,arguments.length>2?arguments[2]:void 0)}});v(A,T),v(D,k),t.exports={ArrayBuffer:A,DataView:D}},{"../internals/an-instance":93,"../internals/array-buffer-native":95,"../internals/array-fill":99,"../internals/create-non-enumerable-property":120,"../internals/descriptors":125,"../internals/fails":140,"../internals/global":147,"../internals/ieee754":153,"../internals/internal-state":157,"../internals/object-define-property":179,"../internals/object-get-own-property-names":182,"../internals/object-get-prototype-of":184,"../internals/object-set-prototype-of":188,"../internals/redefine-all":196,"../internals/set-to-string-tag":208,"../internals/to-index":218,"../internals/to-integer":220,"../internals/to-length":221}],98:[function(e,t,r){"use strict";var n=e("../internals/to-object"),i=e("../internals/to-absolute-index"),s=e("../internals/to-length"),o=Math.min;t.exports=[].copyWithin||function(e,t){var r=n(this),a=s(r.length),c=i(e,a),u=i(t,a),l=arguments.length>2?arguments[2]:void 0,p=o((void 0===l?a:i(l,a))-u,a-c),f=1;u0)u in r?r[c]=r[u]:delete r[c],c+=f,u+=f;return r}},{"../internals/to-absolute-index":217,"../internals/to-length":221,"../internals/to-object":222}],99:[function(e,t,r){"use strict";var n=e("../internals/to-object"),i=e("../internals/to-absolute-index"),s=e("../internals/to-length");t.exports=function(e){var t=n(this),r=s(t.length),o=arguments.length,a=i(o>1?arguments[1]:void 0,r),c=o>2?arguments[2]:void 0,u=void 0===c?r:i(c,r);while(u>a)t[a++]=e;return t}},{"../internals/to-absolute-index":217,"../internals/to-length":221,"../internals/to-object":222}],100:[function(e,t,r){"use strict";var n=e("../internals/array-iteration").forEach,i=e("../internals/array-method-is-strict"),s=i("forEach");t.exports=s?[].forEach:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}},{"../internals/array-iteration":104,"../internals/array-method-is-strict":107}],101:[function(e,t,r){t.exports=function(e,t){var r=0,n=t.length,i=new e(n);while(n>r)i[r]=t[r++];return i}},{}],102:[function(e,t,r){"use strict";var n=e("../internals/function-bind-context"),i=e("../internals/to-object"),s=e("../internals/call-with-safe-iteration-closing"),o=e("../internals/is-array-iterator-method"),a=e("../internals/to-length"),c=e("../internals/create-property"),u=e("../internals/get-iterator"),l=e("../internals/get-iterator-method");t.exports=function(e){var t,r,p,f,h,d,m=i(e),y="function"==typeof this?this:Array,b=arguments.length,g=b>1?arguments[1]:void 0,v=void 0!==g,w=l(m),j=0;if(v&&(g=n(g,b>2?arguments[2]:void 0,2)),void 0==w||y==Array&&o(w))for(t=a(m.length),r=new y(t);t>j;j++)d=v?g(m[j],j):m[j],c(r,j,d);else for(f=u(m,w),h=f.next,r=new y;!(p=h.call(f)).done;j++)d=v?s(f,g,[p.value,j],!0):p.value,c(r,j,d);return r.length=j,r}},{"../internals/call-with-safe-iteration-closing":112,"../internals/create-property":122,"../internals/function-bind-context":142,"../internals/get-iterator":145,"../internals/get-iterator-method":144,"../internals/is-array-iterator-method":158,"../internals/to-length":221,"../internals/to-object":222}],103:[function(e,t,r){var n=e("../internals/to-indexed-object"),i=e("../internals/to-length"),s=e("../internals/to-absolute-index"),o=function(e){return function(t,r,o){var a,c=n(t),u=i(c.length),l=s(o,u);if(e&&r!=r){while(u>l)if(a=c[l++],a!=a)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===r)return e||l||0;return!e&&-1}};t.exports={includes:o(!0),indexOf:o(!1)}},{"../internals/to-absolute-index":217,"../internals/to-indexed-object":219,"../internals/to-length":221}],104:[function(e,t,r){var n=e("../internals/function-bind-context"),i=e("../internals/indexed-object"),s=e("../internals/to-object"),o=e("../internals/to-length"),a=e("../internals/array-species-create"),c=[].push,u=function(e){var t=1==e,r=2==e,u=3==e,l=4==e,p=6==e,f=7==e,h=5==e||p;return function(d,m,y,b){for(var g,v,w=s(d),j=i(w),x=n(m,y,3),T=o(j.length),k=0,E=b||a,_=t?E(d,T):r||f?E(d,0):void 0;T>k;k++)if((h||k in j)&&(g=j[k],v=x(g,k,w),e))if(t)_[k]=v;else if(v)switch(e){case 3:return!0;case 5:return g;case 6:return k;case 2:c.call(_,g)}else switch(e){case 4:return!1;case 7:c.call(_,g)}return p?-1:u||l?l:_}};t.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},{"../internals/array-species-create":111,"../internals/function-bind-context":142,"../internals/indexed-object":154,"../internals/to-length":221,"../internals/to-object":222}],105:[function(e,t,r){"use strict";var n=e("../internals/to-indexed-object"),i=e("../internals/to-integer"),s=e("../internals/to-length"),o=e("../internals/array-method-is-strict"),a=Math.min,c=[].lastIndexOf,u=!!c&&1/[1].lastIndexOf(1,-0)<0,l=o("lastIndexOf"),p=u||!l;t.exports=p?function(e){if(u)return c.apply(this,arguments)||0;var t=n(this),r=s(t.length),o=r-1;for(arguments.length>1&&(o=a(o,i(arguments[1]))),o<0&&(o=r+o);o>=0;o--)if(o in t&&t[o]===e)return o||0;return-1}:c},{"../internals/array-method-is-strict":107,"../internals/to-indexed-object":219,"../internals/to-integer":220,"../internals/to-length":221}],106:[function(e,t,r){var n=e("../internals/fails"),i=e("../internals/well-known-symbol"),s=e("../internals/engine-v8-version"),o=i("species");t.exports=function(e){return s>=51||!n((function(){var t=[],r=t.constructor={};return r[o]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},{"../internals/engine-v8-version":136,"../internals/fails":140,"../internals/well-known-symbol":237}],107:[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":140}],108:[function(e,t,r){var n=e("../internals/a-function"),i=e("../internals/to-object"),s=e("../internals/indexed-object"),o=e("../internals/to-length"),a=function(e){return function(t,r,a,c){n(r);var u=i(t),l=s(u),p=o(u.length),f=e?p-1:0,h=e?-1:1;if(a<2)while(1){if(f in l){c=l[f],f+=h;break}if(f+=h,e?f<0:p<=f)throw TypeError("Reduce of empty array with no initial value")}for(;e?f>=0:p>f;f+=h)f in l&&(c=r(c,l[f],f,u));return c}};t.exports={left:a(!1),right:a(!0)}},{"../internals/a-function":89,"../internals/indexed-object":154,"../internals/to-length":221,"../internals/to-object":222}],109:[function(e,t,r){var n=Math.floor,i=function(e,t){var r=e.length,a=n(r/2);return r<8?s(e,t):o(i(e.slice(0,a),t),i(e.slice(a),t),t)},s=function(e,t){var r,n,i=e.length,s=1;while(s0)e[n]=e[--n];n!==s++&&(e[n]=r)}return e},o=function(e,t,r){var n=e.length,i=t.length,s=0,o=0,a=[];while(s=74)&&(n=o.match(/Chrome\/(\d+)/),n&&(i=n[1]))),t.exports=i&&+i},{"../internals/engine-user-agent":135,"../internals/global":147}],137:[function(e,t,r){var n=e("../internals/engine-user-agent"),i=n.match(/AppleWebKit\/(\d+)\./);t.exports=!!i&&+i[1]},{"../internals/engine-user-agent":135}],138:[function(e,t,r){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],139:[function(e,t,r){var n=e("../internals/global"),i=e("../internals/object-get-own-property-descriptor").f,s=e("../internals/create-non-enumerable-property"),o=e("../internals/redefine"),a=e("../internals/set-global"),c=e("../internals/copy-constructor-properties"),u=e("../internals/is-forced");t.exports=function(e,t){var r,l,p,f,h,d,m=e.target,y=e.global,b=e.stat;if(l=y?n:b?n[m]||a(m,{}):(n[m]||{}).prototype,l)for(p in t){if(h=t[p],e.noTargetGet?(d=i(l,p),f=d&&d.value):f=l[p],r=u(y?p:m+(b?".":"#")+p,e.forced),!r&&void 0!==f){if(typeof h===typeof f)continue;c(h,f)}(e.sham||f&&f.sham)&&s(h,"sham",!0),o(l,p,h,e)}}},{"../internals/copy-constructor-properties":116,"../internals/create-non-enumerable-property":120,"../internals/global":147,"../internals/is-forced":160,"../internals/object-get-own-property-descriptor":180,"../internals/redefine":197,"../internals/set-global":206}],140:[function(e,t,r){t.exports=function(e){try{return!!e()}catch(t){return!0}}},{}],141:[function(e,t,r){"use strict";e("../modules/es.regexp.exec");var n=e("../internals/redefine"),i=e("../internals/regexp-exec"),s=e("../internals/fails"),o=e("../internals/well-known-symbol"),a=e("../internals/create-non-enumerable-property"),c=o("species"),u=RegExp.prototype;t.exports=function(e,t,r,l){var p=o(e),f=!s((function(){var t={};return t[p]=function(){return 7},7!=""[e](t)})),h=f&&!s((function(){var t=!1,r=/a/;return"split"===e&&(r={},r.constructor={},r.constructor[c]=function(){return r},r.flags="",r[p]=/./[p]),r.exec=function(){return t=!0,null},r[p](""),!t}));if(!f||!h||r){var d=/./[p],m=t(p,""[e],(function(e,t,r,n,s){var o=t.exec;return o===i||o===u.exec?f&&!s?{done:!0,value:d.call(t,r,n)}:{done:!0,value:e.call(r,t,n)}:{done:!1}}));n(String.prototype,e,m[0]),n(u,p,m[1])}l&&a(u[p],"sham",!0)}},{"../internals/create-non-enumerable-property":120,"../internals/fails":140,"../internals/redefine":197,"../internals/regexp-exec":199,"../internals/well-known-symbol":237,"../modules/es.regexp.exec":261}],142:[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":89}],143:[function(e,t,r){var n=e("../internals/global"),i=function(e){return"function"==typeof e?e:void 0};t.exports=function(e,t){return arguments.length<2?i(n[e]):n[e]&&n[e][t]}},{"../internals/global":147}],144:[function(e,t,r){var n=e("../internals/classof"),i=e("../internals/iterators"),s=e("../internals/well-known-symbol"),o=s("iterator");t.exports=function(e){if(void 0!=e)return e[o]||e["@@iterator"]||i[n(e)]}},{"../internals/classof":115,"../internals/iterators":169,"../internals/well-known-symbol":237}],145:[function(e,t,r){var n=e("../internals/an-object"),i=e("../internals/get-iterator-method");t.exports=function(e,t){var r=arguments.length<2?i(e):t;if("function"!=typeof r)throw TypeError(String(e)+" is not iterable");return n(r.call(e))}},{"../internals/an-object":94,"../internals/get-iterator-method":144}],146:[function(e,t,r){var n=e("../internals/to-object"),i=Math.floor,s="".replace,o=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,a=/\$([$&'`]|\d{1,2})/g;t.exports=function(e,t,r,c,u,l){var p=r+e.length,f=c.length,h=a;return void 0!==u&&(u=n(u),h=o),s.call(l,h,(function(n,s){var o;switch(s.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,r);case"'":return t.slice(p);case"<":o=u[s.slice(1,-1)];break;default:var a=+s;if(0===a)return n;if(a>f){var l=i(a/10);return 0===l?n:l<=f?void 0===c[l-1]?s.charAt(1):c[l-1]+s.charAt(1):n}o=c[a-1]}return void 0===o?"":o}))}},{"../internals/to-object":222}],147:[function(e,r,n){(function(e){(function(){var t=function(e){return e&&e.Math==Math&&e};r.exports=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof e&&e)||function(){return this}()||Function("return this")()}).call(this)}).call(this,"undefined"!==typeof t?t:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{}],148:[function(e,t,r){var n=e("../internals/to-object"),i={}.hasOwnProperty;t.exports=Object.hasOwn||function(e,t){return i.call(n(e),t)}},{"../internals/to-object":222}],149:[function(e,t,r){t.exports={}},{}],150:[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":147}],151:[function(e,t,r){var n=e("../internals/get-built-in");t.exports=n("document","documentElement")},{"../internals/get-built-in":143}],152:[function(e,t,r){var n=e("../internals/descriptors"),i=e("../internals/fails"),s=e("../internals/document-create-element");t.exports=!n&&!i((function(){return 7!=Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a}))},{"../internals/descriptors":125,"../internals/document-create-element":126,"../internals/fails":140}],153:[function(e,t,r){var n=Math.abs,i=Math.pow,s=Math.floor,o=Math.log,a=Math.LN2,c=function(e,t,r){var c,u,l,p=new Array(r),f=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?(u=e!=e?1:0,c=h):(c=s(o(e)/a),e*(l=i(2,-c))<1&&(c--,l*=2),e+=c+d>=1?m/l:m*i(2,1-d),e*l>=2&&(c++,l/=2),c+d>=h?(u=0,c=h):c+d>=1?(u=(e*l-1)*i(2,t),c+=d):(u=e*i(2,d-1)*i(2,t),c=0));t>=8;p[b++]=255&u,u/=256,t-=8);for(c=c<0;p[b++]=255&c,c/=256,f-=8);return p[--b]|=128*y,p},u=function(e,t){var r,n=e.length,s=8*n-t-1,o=(1<>1,c=s-7,u=n-1,l=e[u--],p=127&l;for(l>>=7;c>0;p=256*p+e[u],u--,c-=8);for(r=p&(1<<-c)-1,p>>=-c,c+=t;c>0;r=256*r+e[u],u--,c-=8);if(0===p)p=1-a;else{if(p===o)return r?NaN:l?-1/0:1/0;r+=i(2,t),p-=a}return(l?-1:1)*r*i(2,p-t)};t.exports={pack:c,unpack:u}},{}],154:[function(e,t,r){var n=e("../internals/fails"),i=e("../internals/classof-raw"),s="".split;t.exports=n((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?s.call(e,""):Object(e)}:Object},{"../internals/classof-raw":114,"../internals/fails":140}],155:[function(e,t,r){var n=e("../internals/is-object"),i=e("../internals/object-set-prototype-of");t.exports=function(e,t,r){var s,o;return i&&"function"==typeof(s=t.constructor)&&s!==r&&n(o=s.prototype)&&o!==r.prototype&&i(e,o),e}},{"../internals/is-object":162,"../internals/object-set-prototype-of":188}],156:[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":210}],157:[function(e,t,r){var n,i,s,o=e("../internals/native-weak-map"),a=e("../internals/global"),c=e("../internals/is-object"),u=e("../internals/create-non-enumerable-property"),l=e("../internals/has"),p=e("../internals/shared-store"),f=e("../internals/shared-key"),h=e("../internals/hidden-keys"),d="Object already initialized",m=a.WeakMap,y=function(e){return s(e)?i(e):n(e,{})},b=function(e){return function(t){var r;if(!c(t)||(r=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}};if(o||p.state){var g=p.state||(p.state=new m),v=g.get,w=g.has,j=g.set;n=function(e,t){if(w.call(g,e))throw new TypeError(d);return t.facade=e,j.call(g,e,t),t},i=function(e){return v.call(g,e)||{}},s=function(e){return w.call(g,e)}}else{var x=f("state");h[x]=!0,n=function(e,t){if(l(e,x))throw new TypeError(d);return t.facade=e,u(e,x,t),t},i=function(e){return l(e,x)?e[x]:{}},s=function(e){return l(e,x)}}t.exports={set:n,get:i,has:s,enforce:y,getterFor:b}},{"../internals/create-non-enumerable-property":120,"../internals/global":147,"../internals/has":148,"../internals/hidden-keys":149,"../internals/is-object":162,"../internals/native-weak-map":173,"../internals/shared-key":209,"../internals/shared-store":210}],158:[function(e,t,r){var n=e("../internals/well-known-symbol"),i=e("../internals/iterators"),s=n("iterator"),o=Array.prototype;t.exports=function(e){return void 0!==e&&(i.Array===e||o[s]===e)}},{"../internals/iterators":169,"../internals/well-known-symbol":237}],159:[function(e,t,r){var n=e("../internals/classof-raw");t.exports=Array.isArray||function(e){return"Array"==n(e)}},{"../internals/classof-raw":114}],160:[function(e,t,r){var n=e("../internals/fails"),i=/#|\.prototype\./,s=function(e,t){var r=a[o(e)];return r==u||r!=c&&("function"==typeof t?n(t):!!t)},o=s.normalize=function(e){return String(e).replace(i,".").toLowerCase()},a=s.data={},c=s.NATIVE="N",u=s.POLYFILL="P";t.exports=s},{"../internals/fails":140}],161:[function(e,t,r){var n=e("../internals/is-object"),i=Math.floor;t.exports=function(e){return!n(e)&&isFinite(e)&&i(e)===e}},{"../internals/is-object":162}],162:[function(e,t,r){t.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},{}],163:[function(e,t,r){t.exports=!1},{}],164:[function(e,t,r){var n=e("../internals/is-object"),i=e("../internals/classof-raw"),s=e("../internals/well-known-symbol"),o=s("match");t.exports=function(e){var t;return n(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},{"../internals/classof-raw":114,"../internals/is-object":162,"../internals/well-known-symbol":237}],165:[function(e,t,r){var n=e("../internals/get-built-in"),i=e("../internals/use-symbol-as-uid");t.exports=i?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return"function"==typeof t&&Object(e)instanceof t}},{"../internals/get-built-in":143,"../internals/use-symbol-as-uid":235}],166:[function(e,t,r){var n=e("../internals/an-object"),i=e("../internals/is-array-iterator-method"),s=e("../internals/to-length"),o=e("../internals/function-bind-context"),a=e("../internals/get-iterator"),c=e("../internals/get-iterator-method"),u=e("../internals/iterator-close"),l=function(e,t){this.stopped=e,this.result=t};t.exports=function(e,t,r){var p,f,h,d,m,y,b,g=r&&r.that,v=!(!r||!r.AS_ENTRIES),w=!(!r||!r.IS_ITERATOR),j=!(!r||!r.INTERRUPTED),x=o(t,g,1+v+j),T=function(e){return p&&u(p,"normal",e),new l(!0,e)},k=function(e){return v?(n(e),j?x(e[0],e[1],T):x(e[0],e[1])):j?x(e,T):x(e)};if(w)p=e;else{if(f=c(e),"function"!=typeof f)throw TypeError("Target is not iterable");if(i(f)){for(h=0,d=s(e.length);d>h;h++)if(m=k(e[h]),m&&m instanceof l)return m;return new l(!1)}p=a(e,f)}y=p.next;while(!(b=y.call(p)).done){try{m=k(b.value)}catch(E){u(p,"throw",E)}if("object"==typeof m&&m&&m instanceof l)return m}return new l(!1)}},{"../internals/an-object":94,"../internals/function-bind-context":142,"../internals/get-iterator":145,"../internals/get-iterator-method":144,"../internals/is-array-iterator-method":158,"../internals/iterator-close":167,"../internals/to-length":221}],167:[function(e,t,r){var n=e("../internals/an-object");t.exports=function(e,t,r){var i,s;n(e);try{if(i=e["return"],void 0===i){if("throw"===t)throw r;return r}i=i.call(e)}catch(o){s=!0,i=o}if("throw"===t)throw r;if(s)throw i;return n(i),r}},{"../internals/an-object":94}],168:[function(e,t,r){"use strict";var n,i,s,o=e("../internals/fails"),a=e("../internals/object-get-prototype-of"),c=e("../internals/create-non-enumerable-property"),u=e("../internals/has"),l=e("../internals/well-known-symbol"),p=e("../internals/is-pure"),f=l("iterator"),h=!1,d=function(){return this};[].keys&&(s=[].keys(),"next"in s?(i=a(a(s)),i!==Object.prototype&&(n=i)):h=!0);var m=void 0==n||o((function(){var e={};return n[f].call(e)!==e}));m&&(n={}),p&&!m||u(n,f)||c(n,f,d),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:h}},{"../internals/create-non-enumerable-property":120,"../internals/fails":140,"../internals/has":148,"../internals/is-pure":163,"../internals/object-get-prototype-of":184,"../internals/well-known-symbol":237}],169:[function(e,t,r){arguments[4][149][0].apply(r,arguments)},{dup:149}],170:[function(e,t,r){var n,i,s,o,a,c,u,l,p=e("../internals/global"),f=e("../internals/object-get-own-property-descriptor").f,h=e("../internals/task").set,d=e("../internals/engine-is-ios"),m=e("../internals/engine-is-ios-pebble"),y=e("../internals/engine-is-webos-webkit"),b=e("../internals/engine-is-node"),g=p.MutationObserver||p.WebKitMutationObserver,v=p.document,w=p.process,j=p.Promise,x=f(p,"queueMicrotask"),T=x&&x.value;T||(n=function(){var e,t;b&&(e=w.domain)&&e.exit();while(i){t=i.fn,i=i.next;try{t()}catch(r){throw i?o():s=void 0,r}}s=void 0,e&&e.enter()},d||b||y||!g||!v?!m&&j&&j.resolve?(u=j.resolve(void 0),u.constructor=j,l=u.then,o=function(){l.call(u,n)}):o=b?function(){w.nextTick(n)}:function(){h.call(p,n)}:(a=!0,c=v.createTextNode(""),new g(n).observe(c,{characterData:!0}),o=function(){c.data=a=!a})),t.exports=T||function(e){var t={fn:e,next:void 0};s&&(s.next=t),i||(i=t,o()),s=t}},{"../internals/engine-is-ios":132,"../internals/engine-is-ios-pebble":131,"../internals/engine-is-node":133,"../internals/engine-is-webos-webkit":134,"../internals/global":147,"../internals/object-get-own-property-descriptor":180,"../internals/task":216}],171:[function(e,t,r){var n=e("../internals/global");t.exports=n.Promise},{"../internals/global":147}],172:[function(e,t,r){var n=e("../internals/engine-v8-version"),i=e("../internals/fails");t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},{"../internals/engine-v8-version":136,"../internals/fails":140}],173:[function(e,t,r){var n=e("../internals/global"),i=e("../internals/inspect-source"),s=n.WeakMap;t.exports="function"===typeof s&&/native code/.test(i(s))},{"../internals/global":147,"../internals/inspect-source":156}],174:[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":89}],175:[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":164}],176:[function(e,t,r){"use strict";var n=e("../internals/descriptors"),i=e("../internals/fails"),s=e("../internals/object-keys"),o=e("../internals/object-get-own-property-symbols"),a=e("../internals/object-property-is-enumerable"),c=e("../internals/to-object"),u=e("../internals/indexed-object"),l=Object.assign,p=Object.defineProperty;t.exports=!l||i((function(){if(n&&1!==l({b:1},l(p({},"a",{enumerable:!0,get:function(){p(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]||s(l({},t)).join("")!=i}))?function(e,t){var r=c(e),i=arguments.length,l=1,p=o.f,f=a.f;while(i>l){var h,d=u(arguments[l++]),m=p?s(d).concat(p(d)):s(d),y=m.length,b=0;while(y>b)h=m[b++],n&&!f.call(d,h)||(r[h]=d[h])}return r}:l},{"../internals/descriptors":125,"../internals/fails":140,"../internals/indexed-object":154,"../internals/object-get-own-property-symbols":183,"../internals/object-keys":186,"../internals/object-property-is-enumerable":187,"../internals/to-object":222}],177:[function(e,t,r){var n,i=e("../internals/an-object"),s=e("../internals/object-define-properties"),o=e("../internals/enum-bug-keys"),a=e("../internals/hidden-keys"),c=e("../internals/html"),u=e("../internals/document-create-element"),l=e("../internals/shared-key"),p=">",f="<",h="prototype",d="script",m=l("IE_PROTO"),y=function(){},b=function(e){return f+d+p+e+f+"/"+d+p},g=function(e){e.write(b("")),e.close();var t=e.parentWindow.Object;return e=null,t},v=function(){var e,t=u("iframe"),r="java"+d+":";return t.style.display="none",c.appendChild(t),t.src=String(r),e=t.contentWindow.document,e.open(),e.write(b("document.F=Object")),e.close(),e.F},w=function(){try{n=new ActiveXObject("htmlfile")}catch(t){}w="undefined"!=typeof document?document.domain&&n?g(n):v():g(n);var e=o.length;while(e--)delete w[h][o[e]];return w()};a[m]=!0,t.exports=Object.create||function(e,t){var r;return null!==e?(y[h]=i(e),r=new y,y[h]=null,r[m]=e):r=w(),void 0===t?r:s(r,t)}},{"../internals/an-object":94,"../internals/document-create-element":126,"../internals/enum-bug-keys":138,"../internals/hidden-keys":149,"../internals/html":151,"../internals/object-define-properties":178,"../internals/shared-key":209}],178:[function(e,t,r){var n=e("../internals/descriptors"),i=e("../internals/object-define-property"),s=e("../internals/an-object"),o=e("../internals/object-keys");t.exports=n?Object.defineProperties:function(e,t){s(e);var r,n=o(t),a=n.length,c=0;while(a>c)i.f(e,r=n[c++],t[r]);return e}},{"../internals/an-object":94,"../internals/descriptors":125,"../internals/object-define-property":179,"../internals/object-keys":186}],179:[function(e,t,r){var n=e("../internals/descriptors"),i=e("../internals/ie8-dom-define"),s=e("../internals/an-object"),o=e("../internals/to-property-key"),a=Object.defineProperty;r.f=n?a:function(e,t,r){if(s(e),t=o(t),s(r),i)try{return a(e,t,r)}catch(n){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},{"../internals/an-object":94,"../internals/descriptors":125,"../internals/ie8-dom-define":152,"../internals/to-property-key":226}],180:[function(e,t,r){var n=e("../internals/descriptors"),i=e("../internals/object-property-is-enumerable"),s=e("../internals/create-property-descriptor"),o=e("../internals/to-indexed-object"),a=e("../internals/to-property-key"),c=e("../internals/has"),u=e("../internals/ie8-dom-define"),l=Object.getOwnPropertyDescriptor;r.f=n?l:function(e,t){if(e=o(e),t=a(t),u)try{return l(e,t)}catch(r){}if(c(e,t))return s(!i.f.call(e,t),e[t])}},{"../internals/create-property-descriptor":121,"../internals/descriptors":125,"../internals/has":148,"../internals/ie8-dom-define":152,"../internals/object-property-is-enumerable":187,"../internals/to-indexed-object":219,"../internals/to-property-key":226}],181:[function(e,t,r){var n=e("../internals/to-indexed-object"),i=e("../internals/object-get-own-property-names").f,s={}.toString,o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=function(e){try{return i(e)}catch(t){return o.slice()}};t.exports.f=function(e){return o&&"[object Window]"==s.call(e)?a(e):i(n(e))}},{"../internals/object-get-own-property-names":182,"../internals/to-indexed-object":219}],182:[function(e,t,r){var n=e("../internals/object-keys-internal"),i=e("../internals/enum-bug-keys"),s=i.concat("length","prototype");r.f=Object.getOwnPropertyNames||function(e){return n(e,s)}},{"../internals/enum-bug-keys":138,"../internals/object-keys-internal":185}],183:[function(e,t,r){r.f=Object.getOwnPropertySymbols},{}],184:[function(e,t,r){var n=e("../internals/has"),i=e("../internals/to-object"),s=e("../internals/shared-key"),o=e("../internals/correct-prototype-getter"),a=s("IE_PROTO"),c=Object.prototype;t.exports=o?Object.getPrototypeOf:function(e){return e=i(e),n(e,a)?e[a]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?c:null}},{"../internals/correct-prototype-getter":118,"../internals/has":148,"../internals/shared-key":209,"../internals/to-object":222}],185:[function(e,t,r){var n=e("../internals/has"),i=e("../internals/to-indexed-object"),s=e("../internals/array-includes").indexOf,o=e("../internals/hidden-keys");t.exports=function(e,t){var r,a=i(e),c=0,u=[];for(r in a)!n(o,r)&&n(a,r)&&u.push(r);while(t.length>c)n(a,r=t[c++])&&(~s(u,r)||u.push(r));return u}},{"../internals/array-includes":103,"../internals/has":148,"../internals/hidden-keys":149,"../internals/to-indexed-object":219}],186:[function(e,t,r){var n=e("../internals/object-keys-internal"),i=e("../internals/enum-bug-keys");t.exports=Object.keys||function(e){return n(e,i)}},{"../internals/enum-bug-keys":138,"../internals/object-keys-internal":185}],187:[function(e,t,r){"use strict";var n={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,s=i&&!n.call({1:2},1);r.f=s?function(e){var t=i(this,e);return!!t&&t.enumerable}:n},{}],188:[function(e,t,r){var n=e("../internals/an-object"),i=e("../internals/a-possible-prototype");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,e.call(r,[]),t=r instanceof Array}catch(s){}return function(r,s){return n(r),i(s),t?e.call(r,s):r.__proto__=s,r}}():void 0)},{"../internals/a-possible-prototype":90,"../internals/an-object":94}],189:[function(e,t,r){var n=e("../internals/descriptors"),i=e("../internals/object-keys"),s=e("../internals/to-indexed-object"),o=e("../internals/object-property-is-enumerable").f,a=function(e){return function(t){var r,a=s(t),c=i(a),u=c.length,l=0,p=[];while(u>l)r=c[l++],n&&!o.call(a,r)||p.push(e?[r,a[r]]:a[r]);return p}};t.exports={entries:a(!0),values:a(!1)}},{"../internals/descriptors":125,"../internals/object-keys":186,"../internals/object-property-is-enumerable":187,"../internals/to-indexed-object":219}],190:[function(e,t,r){"use strict";var n=e("../internals/to-string-tag-support"),i=e("../internals/classof");t.exports=n?{}.toString:function(){return"[object "+i(this)+"]"}},{"../internals/classof":115,"../internals/to-string-tag-support":227}],191:[function(e,t,r){var n=e("../internals/is-object");t.exports=function(e,t){var r,i;if("string"===t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;if("function"==typeof(r=e.valueOf)&&!n(i=r.call(e)))return i;if("string"!==t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},{"../internals/is-object":162}],192:[function(e,t,r){var n=e("../internals/get-built-in"),i=e("../internals/object-get-own-property-names"),s=e("../internals/object-get-own-property-symbols"),o=e("../internals/an-object");t.exports=n("Reflect","ownKeys")||function(e){var t=i.f(o(e)),r=s.f;return r?t.concat(r(e)):t}},{"../internals/an-object":94,"../internals/get-built-in":143,"../internals/object-get-own-property-names":182,"../internals/object-get-own-property-symbols":183}],193:[function(e,t,r){var n=e("../internals/global");t.exports=n},{"../internals/global":147}],194:[function(e,t,r){t.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},{}],195:[function(e,t,r){var n=e("../internals/an-object"),i=e("../internals/is-object"),s=e("../internals/new-promise-capability");t.exports=function(e,t){if(n(e),i(t)&&t.constructor===e)return t;var r=s.f(e),o=r.resolve;return o(t),r.promise}},{"../internals/an-object":94,"../internals/is-object":162,"../internals/new-promise-capability":174}],196:[function(e,t,r){var n=e("../internals/redefine");t.exports=function(e,t,r){for(var i in t)n(e,i,t[i],r);return e}},{"../internals/redefine":197}],197:[function(e,t,r){var n=e("../internals/global"),i=e("../internals/create-non-enumerable-property"),s=e("../internals/has"),o=e("../internals/set-global"),a=e("../internals/inspect-source"),c=e("../internals/internal-state"),u=c.get,l=c.enforce,p=String(String).split("String");(t.exports=function(e,t,r,a){var c,u=!!a&&!!a.unsafe,f=!!a&&!!a.enumerable,h=!!a&&!!a.noTargetGet;"function"==typeof r&&("string"!=typeof t||s(r,"name")||i(r,"name",t),c=l(r),c.source||(c.source=p.join("string"==typeof t?t:""))),e!==n?(u?!h&&e[t]&&(f=!0):delete e[t],f?e[t]=r:i(e,t,r)):f?e[t]=r:o(t,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&u(this).source||a(this)}))},{"../internals/create-non-enumerable-property":120,"../internals/global":147,"../internals/has":148,"../internals/inspect-source":156,"../internals/internal-state":157,"../internals/set-global":206}],198:[function(e,t,r){var n=e("./classof-raw"),i=e("./regexp-exec");t.exports=function(e,t){var r=e.exec;if("function"===typeof r){var s=r.call(e,t);if("object"!==typeof s)throw TypeError("RegExp exec method returned something other than an Object or null");return s}if("RegExp"!==n(e))throw TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},{"./classof-raw":114,"./regexp-exec":199}],199:[function(e,t,r){"use strict";var n=e("../internals/to-string"),i=e("../internals/regexp-flags"),s=e("../internals/regexp-sticky-helpers"),o=e("../internals/shared"),a=e("../internals/object-create"),c=e("../internals/internal-state").get,u=e("../internals/regexp-unsupported-dot-all"),l=e("../internals/regexp-unsupported-ncg"),p=RegExp.prototype.exec,f=o("native-string-replace",String.prototype.replace),h=p,d=function(){var e=/a/,t=/b*/g;return p.call(e,"a"),p.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),m=s.UNSUPPORTED_Y||s.BROKEN_CARET,y=void 0!==/()??/.exec("")[1],b=d||y||m||u||l;b&&(h=function(e){var t,r,s,o,u,l,b,g=this,v=c(g),w=n(e),j=v.raw;if(j)return j.lastIndex=g.lastIndex,t=h.call(j,w),g.lastIndex=j.lastIndex,t;var x=v.groups,T=m&&g.sticky,k=i.call(g),E=g.source,_=0,S=w;if(T&&(k=k.replace("y",""),-1===k.indexOf("g")&&(k+="g"),S=w.slice(g.lastIndex),g.lastIndex>0&&(!g.multiline||g.multiline&&"\n"!==w.charAt(g.lastIndex-1))&&(E="(?: "+E+")",S=" "+S,_++),r=new RegExp("^(?:"+E+")",k)),y&&(r=new RegExp("^"+E+"$(?!\\s)",k)),d&&(s=g.lastIndex),o=p.call(T?r:g,S),T?o?(o.input=o.input.slice(_),o[0]=o[0].slice(_),o.index=g.lastIndex,g.lastIndex+=o[0].length):g.lastIndex=0:d&&o&&(g.lastIndex=g.global?o.index+o[0].length:s),y&&o&&o.length>1&&f.call(o[0],r,(function(){for(u=1;ub)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$c")}))},{"../internals/global":147,"./fails":140}],204:[function(e,t,r){t.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},{}],205:[function(e,t,r){t.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},{}],206:[function(e,t,r){var n=e("../internals/global");t.exports=function(e,t){try{Object.defineProperty(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},{"../internals/global":147}],207:[function(e,t,r){"use strict";var n=e("../internals/get-built-in"),i=e("../internals/object-define-property"),s=e("../internals/well-known-symbol"),o=e("../internals/descriptors"),a=s("species");t.exports=function(e){var t=n(e),r=i.f;o&&t&&!t[a]&&r(t,a,{configurable:!0,get:function(){return this}})}},{"../internals/descriptors":125,"../internals/get-built-in":143,"../internals/object-define-property":179,"../internals/well-known-symbol":237}],208:[function(e,t,r){var n=e("../internals/object-define-property").f,i=e("../internals/has"),s=e("../internals/well-known-symbol"),o=s("toStringTag");t.exports=function(e,t,r){e&&!i(e=r?e:e.prototype,o)&&n(e,o,{configurable:!0,value:t})}},{"../internals/has":148,"../internals/object-define-property":179,"../internals/well-known-symbol":237}],209:[function(e,t,r){var n=e("../internals/shared"),i=e("../internals/uid"),s=n("keys");t.exports=function(e){return s[e]||(s[e]=i(e))}},{"../internals/shared":211,"../internals/uid":234}],210:[function(e,t,r){var n=e("../internals/global"),i=e("../internals/set-global"),s="__core-js_shared__",o=n[s]||i(s,{});t.exports=o},{"../internals/global":147,"../internals/set-global":206}],211:[function(e,t,r){var n=e("../internals/is-pure"),i=e("../internals/shared-store");(t.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.17.2",mode:n?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},{"../internals/is-pure":163,"../internals/shared-store":210}],212:[function(e,t,r){var n=e("../internals/an-object"),i=e("../internals/a-function"),s=e("../internals/well-known-symbol"),o=s("species");t.exports=function(e,t){var r,s=n(e).constructor;return void 0===s||void 0==(r=n(s)[o])?t:i(r)}},{"../internals/a-function":89,"../internals/an-object":94,"../internals/well-known-symbol":237}],213:[function(e,t,r){var n=e("../internals/to-integer"),i=e("../internals/to-string"),s=e("../internals/require-object-coercible"),o=function(e){return function(t,r){var o,a,c=i(s(t)),u=n(r),l=c.length;return u<0||u>=l?e?"":void 0:(o=c.charCodeAt(u),o<55296||o>56319||u+1===l||(a=c.charCodeAt(u+1))<56320||a>57343?e?c.charAt(u):o:e?c.slice(u,u+2):a-56320+(o-55296<<10)+65536)}};t.exports={codeAt:o(!1),charAt:o(!0)}},{"../internals/require-object-coercible":204,"../internals/to-integer":220,"../internals/to-string":228}],214:[function(e,t,r){var n=e("../internals/fails"),i=e("../internals/whitespaces"),s="​…᠎";t.exports=function(e){return n((function(){return!!i[e]()||s[e]()!=s||i[e].name!==e}))}},{"../internals/fails":140,"../internals/whitespaces":238}],215:[function(e,t,r){var n=e("../internals/require-object-coercible"),i=e("../internals/to-string"),s=e("../internals/whitespaces"),o="["+s+"]",a=RegExp("^"+o+o+"*"),c=RegExp(o+o+"*$"),u=function(e){return function(t){var r=i(n(t));return 1&e&&(r=r.replace(a,"")),2&e&&(r=r.replace(c,"")),r}};t.exports={start:u(1),end:u(2),trim:u(3)}},{"../internals/require-object-coercible":204,"../internals/to-string":228,"../internals/whitespaces":238}],216:[function(e,t,r){var n,i,s,o,a=e("../internals/global"),c=e("../internals/fails"),u=e("../internals/function-bind-context"),l=e("../internals/html"),p=e("../internals/document-create-element"),f=e("../internals/engine-is-ios"),h=e("../internals/engine-is-node"),d=a.setImmediate,m=a.clearImmediate,y=a.process,b=a.MessageChannel,g=a.Dispatch,v=0,w={},j="onreadystatechange";try{n=a.location}catch(_){}var x=function(e){if(w.hasOwnProperty(e)){var t=w[e];delete w[e],t()}},T=function(e){return function(){x(e)}},k=function(e){x(e.data)},E=function(e){a.postMessage(String(e),n.protocol+"//"+n.host)};d&&m||(d=function(e){var t=[],r=arguments.length,n=1;while(r>n)t.push(arguments[n++]);return w[++v]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},i(v),v},m=function(e){delete w[e]},h?i=function(e){y.nextTick(T(e))}:g&&g.now?i=function(e){g.now(T(e))}:b&&!f?(s=new b,o=s.port2,s.port1.onmessage=k,i=u(o.postMessage,o,1)):a.addEventListener&&"function"==typeof postMessage&&!a.importScripts&&n&&"file:"!==n.protocol&&!c(E)?(i=E,a.addEventListener("message",k,!1)):i=j in p("script")?function(e){l.appendChild(p("script"))[j]=function(){l.removeChild(this),x(e)}}:function(e){setTimeout(T(e),0)}),t.exports={set:d,clear:m}},{"../internals/document-create-element":126,"../internals/engine-is-ios":132,"../internals/engine-is-node":133,"../internals/fails":140,"../internals/function-bind-context":142,"../internals/global":147,"../internals/html":151}],217:[function(e,t,r){var n=e("../internals/to-integer"),i=Math.max,s=Math.min;t.exports=function(e,t){var r=n(e);return r<0?i(r+t,0):s(r,t)}},{"../internals/to-integer":220}],218:[function(e,t,r){var n=e("../internals/to-integer"),i=e("../internals/to-length");t.exports=function(e){if(void 0===e)return 0;var t=n(e),r=i(t);if(t!==r)throw RangeError("Wrong length or index");return r}},{"../internals/to-integer":220,"../internals/to-length":221}],219:[function(e,t,r){var n=e("../internals/indexed-object"),i=e("../internals/require-object-coercible");t.exports=function(e){return n(i(e))}},{"../internals/indexed-object":154,"../internals/require-object-coercible":204}],220:[function(e,t,r){var n=Math.ceil,i=Math.floor;t.exports=function(e){return isNaN(e=+e)?0:(e>0?i:n)(e)}},{}],221:[function(e,t,r){var n=e("../internals/to-integer"),i=Math.min;t.exports=function(e){return e>0?i(n(e),9007199254740991):0}},{"../internals/to-integer":220}],222:[function(e,t,r){var n=e("../internals/require-object-coercible");t.exports=function(e){return Object(n(e))}},{"../internals/require-object-coercible":204}],223:[function(e,t,r){var n=e("../internals/to-positive-integer");t.exports=function(e,t){var r=n(e);if(r%t)throw RangeError("Wrong offset");return r}},{"../internals/to-positive-integer":224}],224:[function(e,t,r){var n=e("../internals/to-integer");t.exports=function(e){var t=n(e);if(t<0)throw RangeError("The argument can't be less than 0");return t}},{"../internals/to-integer":220}],225:[function(e,t,r){var n=e("../internals/is-object"),i=e("../internals/is-symbol"),s=e("../internals/ordinary-to-primitive"),o=e("../internals/well-known-symbol"),a=o("toPrimitive");t.exports=function(e,t){if(!n(e)||i(e))return e;var r,o=e[a];if(void 0!==o){if(void 0===t&&(t="default"),r=o.call(e,t),!n(r)||i(r))return r;throw TypeError("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},{"../internals/is-object":162,"../internals/is-symbol":165,"../internals/ordinary-to-primitive":191,"../internals/well-known-symbol":237}],226:[function(e,t,r){var n=e("../internals/to-primitive"),i=e("../internals/is-symbol");t.exports=function(e){var t=n(e,"string");return i(t)?t:String(t)}},{"../internals/is-symbol":165,"../internals/to-primitive":225}],227:[function(e,t,r){var n=e("../internals/well-known-symbol"),i=n("toStringTag"),s={};s[i]="z",t.exports="[object z]"===String(s)},{"../internals/well-known-symbol":237}],228:[function(e,t,r){var n=e("../internals/is-symbol");t.exports=function(e){if(n(e))throw TypeError("Cannot convert a Symbol value to a string");return String(e)}},{"../internals/is-symbol":165}],229:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/global"),s=e("../internals/descriptors"),o=e("../internals/typed-array-constructors-require-wrappers"),a=e("../internals/array-buffer-view-core"),c=e("../internals/array-buffer"),u=e("../internals/an-instance"),l=e("../internals/create-property-descriptor"),p=e("../internals/create-non-enumerable-property"),f=e("../internals/is-integer"),h=e("../internals/to-length"),d=e("../internals/to-index"),m=e("../internals/to-offset"),y=e("../internals/to-property-key"),b=e("../internals/has"),g=e("../internals/classof"),v=e("../internals/is-object"),w=e("../internals/is-symbol"),j=e("../internals/object-create"),x=e("../internals/object-set-prototype-of"),T=e("../internals/object-get-own-property-names").f,k=e("../internals/typed-array-from"),E=e("../internals/array-iteration").forEach,_=e("../internals/set-species"),S=e("../internals/object-define-property"),O=e("../internals/object-get-own-property-descriptor"),A=e("../internals/internal-state"),D=e("../internals/inherit-if-required"),I=A.get,C=A.set,N=S.f,R=O.f,M=Math.round,P=i.RangeError,L=c.ArrayBuffer,B=c.DataView,q=a.NATIVE_ARRAY_BUFFER_VIEWS,F=a.TYPED_ARRAY_CONSTRUCTOR,U=a.TYPED_ARRAY_TAG,G=a.TypedArray,X=a.TypedArrayPrototype,V=a.aTypedArrayConstructor,W=a.isTypedArray,z="BYTES_PER_ELEMENT",H="Wrong length",K=function(e,t){var r=0,n=t.length,i=new(V(e))(n);while(n>r)i[r]=t[r++];return i},Y=function(e,t){N(e,t,{get:function(){return I(this)[t]}})},$=function(e){var t;return e instanceof L||"ArrayBuffer"==(t=g(e))||"SharedArrayBuffer"==t},J=function(e,t){return W(e)&&!w(t)&&t in e&&f(+t)&&t>=0},Z=function(e,t){return t=y(t),J(e,t)?l(2,e[t]):R(e,t)},Q=function(e,t,r){return t=y(t),!(J(e,t)&&v(r)&&b(r,"value"))||b(r,"get")||b(r,"set")||r.configurable||b(r,"writable")&&!r.writable||b(r,"enumerable")&&!r.enumerable?N(e,t,r):(e[t]=r.value,e)};s?(q||(O.f=Z,S.f=Q,Y(X,"buffer"),Y(X,"byteOffset"),Y(X,"byteLength"),Y(X,"length")),n({target:"Object",stat:!0,forced:!q},{getOwnPropertyDescriptor:Z,defineProperty:Q}),t.exports=function(e,t,r){var s=e.match(/\d+$/)[0]/8,a=e+(r?"Clamped":"")+"Array",c="get"+e,l="set"+e,f=i[a],y=f,b=y&&y.prototype,g={},w=function(e,t){var r=I(e);return r.view[c](t*s+r.byteOffset,!0)},S=function(e,t,n){var i=I(e);r&&(n=(n=M(n))<0?0:n>255?255:255&n),i.view[l](t*s+i.byteOffset,n,!0)},O=function(e,t){N(e,t,{get:function(){return w(this,t)},set:function(e){return S(this,t,e)},enumerable:!0})};q?o&&(y=t((function(e,t,r,n){return u(e,y,a),D(function(){return v(t)?$(t)?void 0!==n?new f(t,m(r,s),n):void 0!==r?new f(t,m(r,s)):new f(t):W(t)?K(y,t):k.call(y,t):new f(d(t))}(),e,y)})),x&&x(y,G),E(T(f),(function(e){e in y||p(y,e,f[e])})),y.prototype=b):(y=t((function(e,t,r,n){u(e,y,a);var i,o,c,l=0,p=0;if(v(t)){if(!$(t))return W(t)?K(y,t):k.call(y,t);i=t,p=m(r,s);var f=t.byteLength;if(void 0===n){if(f%s)throw P(H);if(o=f-p,o<0)throw P(H)}else if(o=h(n)*s,o+p>f)throw P(H);c=o/s}else c=d(t),o=c*s,i=new L(o);C(e,{buffer:i,byteOffset:p,byteLength:o,length:c,view:new B(i)});while(l1?arguments[1]:void 0,b=void 0!==y,g=o(d);if(void 0!=g&&!a(g)){f=s(d,g),h=f.next,d=[];while(!(p=h.call(f)).done)d.push(p.value)}for(b&&m>2&&(y=c(y,arguments[2],2)),r=i(d.length),l=new(u(this))(r),t=0;r>t;t++)l[t]=b?y(d[t],t):d[t];return l}},{"../internals/array-buffer-view-core":96,"../internals/function-bind-context":142,"../internals/get-iterator":145,"../internals/get-iterator-method":144,"../internals/is-array-iterator-method":158,"../internals/to-length":221,"../internals/to-object":222}],233:[function(e,t,r){var n=e("../internals/array-buffer-view-core"),i=e("../internals/species-constructor"),s=n.TYPED_ARRAY_CONSTRUCTOR,o=n.aTypedArrayConstructor;t.exports=function(e){return o(i(e,e[s]))}},{"../internals/array-buffer-view-core":96,"../internals/species-constructor":212}],234:[function(e,t,r){var n=0,i=Math.random();t.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+i).toString(36)}},{}],235:[function(e,t,r){var n=e("../internals/native-symbol");t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},{"../internals/native-symbol":172}],236:[function(e,t,r){var n=e("../internals/well-known-symbol");r.f=n},{"../internals/well-known-symbol":237}],237:[function(e,t,r){var n=e("../internals/global"),i=e("../internals/shared"),s=e("../internals/has"),o=e("../internals/uid"),a=e("../internals/native-symbol"),c=e("../internals/use-symbol-as-uid"),u=i("wks"),l=n.Symbol,p=c?l:l&&l.withoutSetter||o;t.exports=function(e){return s(u,e)&&(a||"string"==typeof u[e])||(a&&s(l,e)?u[e]=l[e]:u[e]=p("Symbol."+e)),u[e]}},{"../internals/global":147,"../internals/has":148,"../internals/native-symbol":172,"../internals/shared":211,"../internals/uid":234,"../internals/use-symbol-as-uid":235}],238:[function(e,t,r){t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},{}],239:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/global"),s=e("../internals/array-buffer"),o=e("../internals/set-species"),a="ArrayBuffer",c=s[a],u=i[a];n({global:!0,forced:u!==c},{ArrayBuffer:c}),o(a)},{"../internals/array-buffer":97,"../internals/export":139,"../internals/global":147,"../internals/set-species":207}],240:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/fails"),s=e("../internals/array-buffer"),o=e("../internals/an-object"),a=e("../internals/to-absolute-index"),c=e("../internals/to-length"),u=e("../internals/species-constructor"),l=s.ArrayBuffer,p=s.DataView,f=l.prototype.slice,h=i((function(){return!new l(2).slice(1,void 0).byteLength}));n({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:h},{slice:function(e,t){if(void 0!==f&&void 0===t)return f.call(o(this),e);var r=o(this).byteLength,n=a(e,r),i=a(void 0===t?r:t,r),s=new(u(this,l))(c(i-n)),h=new p(this),d=new p(s),m=0;while(n=51||!i((function(){var e=[];return e[d]=!1,e.concat()[0]!==e})),g=p("concat"),v=function(e){if(!o(e))return!1;var t=e[d];return void 0!==t?!!t:s(e)},w=!b||!g;n({target:"Array",proto:!0,forced:w},{concat:function(e){var t,r,n,i,s,o=a(this),p=l(o,0),f=0;for(t=-1,n=arguments.length;tm)throw TypeError(y);for(r=0;r=m)throw TypeError(y);u(p,f++,s)}return p.length=f,p}})},{"../internals/array-method-has-species-support":106,"../internals/array-species-create":111,"../internals/create-property":122,"../internals/engine-v8-version":136,"../internals/export":139,"../internals/fails":140,"../internals/is-array":159,"../internals/is-object":162,"../internals/to-length":221,"../internals/to-object":222,"../internals/well-known-symbol":237}],242:[function(e,t,r){var n=e("../internals/export"),i=e("../internals/array-fill"),s=e("../internals/add-to-unscopables");n({target:"Array",proto:!0},{fill:i}),s("fill")},{"../internals/add-to-unscopables":91,"../internals/array-fill":99,"../internals/export":139}],243:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/array-iteration").filter,s=e("../internals/array-method-has-species-support"),o=s("filter");n({target:"Array",proto:!0,forced:!o},{filter:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":104,"../internals/array-method-has-species-support":106,"../internals/export":139}],244:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/array-iteration").find,s=e("../internals/add-to-unscopables"),o="find",a=!0;o in[]&&Array(1)[o]((function(){a=!1})),n({target:"Array",proto:!0,forced:a},{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),s(o)},{"../internals/add-to-unscopables":91,"../internals/array-iteration":104,"../internals/export":139}],245:[function(e,t,r){var n=e("../internals/export"),i=e("../internals/array-from"),s=e("../internals/check-correctness-of-iteration"),o=!s((function(e){Array.from(e)}));n({target:"Array",stat:!0,forced:o},{from:i})},{"../internals/array-from":102,"../internals/check-correctness-of-iteration":113,"../internals/export":139}],246:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/array-includes").includes,s=e("../internals/add-to-unscopables");n({target:"Array",proto:!0},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),s("includes")},{"../internals/add-to-unscopables":91,"../internals/array-includes":103,"../internals/export":139}],247:[function(e,t,r){"use strict";var n=e("../internals/to-indexed-object"),i=e("../internals/add-to-unscopables"),s=e("../internals/iterators"),o=e("../internals/internal-state"),a=e("../internals/define-iterator"),c="Array Iterator",u=o.set,l=o.getterFor(c);t.exports=a(Array,"Array",(function(e,t){u(this,{type:c,target:n(e),index:0,kind:t})}),(function(){var e=l(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}}),"values"),s.Arguments=s.Array,i("keys"),i("values"),i("entries")},{"../internals/add-to-unscopables":91,"../internals/define-iterator":123,"../internals/internal-state":157,"../internals/iterators":169,"../internals/to-indexed-object":219}],248:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/indexed-object"),s=e("../internals/to-indexed-object"),o=e("../internals/array-method-is-strict"),a=[].join,c=i!=Object,u=o("join",",");n({target:"Array",proto:!0,forced:c||!u},{join:function(e){return a.call(s(this),void 0===e?",":e)}})},{"../internals/array-method-is-strict":107,"../internals/export":139,"../internals/indexed-object":154,"../internals/to-indexed-object":219}],249:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/array-iteration").map,s=e("../internals/array-method-has-species-support"),o=s("map");n({target:"Array",proto:!0,forced:!o},{map:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":104,"../internals/array-method-has-species-support":106,"../internals/export":139}],250:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/is-object"),s=e("../internals/is-array"),o=e("../internals/to-absolute-index"),a=e("../internals/to-length"),c=e("../internals/to-indexed-object"),u=e("../internals/create-property"),l=e("../internals/well-known-symbol"),p=e("../internals/array-method-has-species-support"),f=p("slice"),h=l("species"),d=[].slice,m=Math.max;n({target:"Array",proto:!0,forced:!f},{slice:function(e,t){var r,n,l,p=c(this),f=a(p.length),y=o(e,f),b=o(void 0===t?f:t,f);if(s(p)&&(r=p.constructor,"function"!=typeof r||r!==Array&&!s(r.prototype)?i(r)&&(r=r[h],null===r&&(r=void 0)):r=void 0,r===Array||void 0===r))return d.call(p,y,b);for(n=new(void 0===r?Array:r)(m(b-y,0)),l=0;y3)){if(f)return!0;if(d)return d<603;var e,t,r,n,i="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)m.push({k:t+n,v:r})}for(m.sort((function(e,t){return t.v-e.v})),n=0;na(r)?1:-1}};n({target:"Array",proto:!0,forced:j},{sort:function(e){void 0!==e&&i(e);var t=s(this);if(w)return void 0===e?y.call(t):y.call(t,e);var r,n,a=[],c=o(t.length);for(n=0;nd)throw TypeError(m);for(l=c(g,n),p=0;pv-n+r;p--)delete g[p-1]}else if(r>n)for(p=v-n;p>w;p--)y=p+n-1,b=p+r-1,y in g?g[b]=g[y]:delete g[b];for(p=0;p2)if(u=b(u),t=u.charCodeAt(0),43===t||45===t){if(r=u.charCodeAt(2),88===r||120===r)return NaN}else if(48===t){switch(u.charCodeAt(1)){case 66:case 98:n=2,i=49;break;case 79:case 111:n=8,i=55;break;default:return+u}for(s=u.slice(2),o=s.length,a=0;ai)return NaN;return parseInt(s,n)}return+u};if(s(g,!v(" 0o1")||!v("0b1")||v("+0x1"))){for(var T,k=function(e){var t=arguments.length<1?0:e,r=this;return r instanceof k&&(j?f((function(){w.valueOf.call(r)})):c(r)!=g)?u(new v(x(t)),r,k):x(t)},E=n?d(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),_=0;E.length>_;_++)a(v,T=E[_])&&!a(k,T)&&y(k,T,m(v,T));k.prototype=w,w.constructor=k,o(i,g,k)}},{"../internals/classof-raw":114,"../internals/descriptors":125,"../internals/fails":140,"../internals/global":147,"../internals/has":148,"../internals/inherit-if-required":155,"../internals/is-forced":160,"../internals/is-symbol":165,"../internals/object-create":177,"../internals/object-define-property":179,"../internals/object-get-own-property-descriptor":180,"../internals/object-get-own-property-names":182,"../internals/redefine":197,"../internals/string-trim":215,"../internals/to-primitive":225}],255:[function(e,t,r){var n=e("../internals/export"),i=e("../internals/object-assign");n({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},{"../internals/export":139,"../internals/object-assign":176}],256:[function(e,t,r){var n=e("../internals/export"),i=e("../internals/object-to-array").entries;n({target:"Object",stat:!0},{entries:function(e){return i(e)}})},{"../internals/export":139,"../internals/object-to-array":189}],257:[function(e,t,r){var n=e("../internals/export"),i=e("../internals/to-object"),s=e("../internals/object-keys"),o=e("../internals/fails"),a=o((function(){s(1)}));n({target:"Object",stat:!0,forced:a},{keys:function(e){return s(i(e))}})},{"../internals/export":139,"../internals/fails":140,"../internals/object-keys":186,"../internals/to-object":222}],258:[function(e,t,r){var n=e("../internals/to-string-tag-support"),i=e("../internals/redefine"),s=e("../internals/object-to-string");n||i(Object.prototype,"toString",s,{unsafe:!0})},{"../internals/object-to-string":190,"../internals/redefine":197,"../internals/to-string-tag-support":227}],259:[function(e,t,r){"use strict";var n,i,s,o,a=e("../internals/export"),c=e("../internals/is-pure"),u=e("../internals/global"),l=e("../internals/get-built-in"),p=e("../internals/native-promise-constructor"),f=e("../internals/redefine"),h=e("../internals/redefine-all"),d=e("../internals/object-set-prototype-of"),m=e("../internals/set-to-string-tag"),y=e("../internals/set-species"),b=e("../internals/is-object"),g=e("../internals/a-function"),v=e("../internals/an-instance"),w=e("../internals/inspect-source"),j=e("../internals/iterate"),x=e("../internals/check-correctness-of-iteration"),T=e("../internals/species-constructor"),k=e("../internals/task").set,E=e("../internals/microtask"),_=e("../internals/promise-resolve"),S=e("../internals/host-report-errors"),O=e("../internals/new-promise-capability"),A=e("../internals/perform"),D=e("../internals/internal-state"),I=e("../internals/is-forced"),C=e("../internals/well-known-symbol"),N=e("../internals/engine-is-browser"),R=e("../internals/engine-is-node"),M=e("../internals/engine-v8-version"),P=C("species"),L="Promise",B=D.get,q=D.set,F=D.getterFor(L),U=p&&p.prototype,G=p,X=U,V=u.TypeError,W=u.document,z=u.process,H=O.f,K=H,Y=!!(W&&W.createEvent&&u.dispatchEvent),$="function"==typeof PromiseRejectionEvent,J="unhandledrejection",Z="rejectionhandled",Q=0,ee=1,te=2,re=1,ne=2,ie=!1,se=I(L,(function(){var e=w(G),t=e!==String(G);if(!t&&66===M)return!0;if(c&&!X["finally"])return!0;if(M>=51&&/native code/.test(e))return!1;var r=new G((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))},i=r.constructor={};return i[P]=n,ie=r.then((function(){}))instanceof n,!ie||!t&&N&&!$})),oe=se||!x((function(e){G.all(e)["catch"]((function(){}))})),ae=function(e){var t;return!(!b(e)||"function"!=typeof(t=e.then))&&t},ce=function(e,t){if(!e.notified){e.notified=!0;var r=e.reactions;E((function(){var n=e.value,i=e.state==ee,s=0;while(r.length>s){var o,a,c,u=r[s++],l=i?u.ok:u.fail,p=u.resolve,f=u.reject,h=u.domain;try{l?(i||(e.rejection===ne&&fe(e),e.rejection=re),!0===l?o=n:(h&&h.enter(),o=l(n),h&&(h.exit(),c=!0)),o===u.promise?f(V("Promise-chain cycle")):(a=ae(o))?a.call(o,p,f):p(o)):f(n)}catch(d){h&&!c&&h.exit(),f(d)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&le(e)}))}},ue=function(e,t,r){var n,i;Y?(n=W.createEvent("Event"),n.promise=t,n.reason=r,n.initEvent(e,!1,!0),u.dispatchEvent(n)):n={promise:t,reason:r},!$&&(i=u["on"+e])?i(n):e===J&&S("Unhandled promise rejection",r)},le=function(e){k.call(u,(function(){var t,r=e.facade,n=e.value,i=pe(e);if(i&&(t=A((function(){R?z.emit("unhandledRejection",n,r):ue(J,r,n)})),e.rejection=R||pe(e)?ne:re,t.error))throw t.value}))},pe=function(e){return e.rejection!==re&&!e.parent},fe=function(e){k.call(u,(function(){var t=e.facade;R?z.emit("rejectionHandled",t):ue(Z,t,e.value)}))},he=function(e,t,r){return function(n){e(t,n,r)}},de=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=te,ce(e,!0))},me=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw V("Promise can't be resolved itself");var n=ae(t);n?E((function(){var r={done:!1};try{n.call(t,he(me,r,e),he(de,r,e))}catch(i){de(r,i,e)}})):(e.value=t,e.state=ee,ce(e,!1))}catch(i){de({done:!1},i,e)}}};if(se&&(G=function(e){v(this,G,L),g(e),n.call(this);var t=B(this);try{e(he(me,t),he(de,t))}catch(r){de(t,r)}},X=G.prototype,n=function(e){q(this,{type:L,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:Q,value:void 0})},n.prototype=h(X,{then:function(e,t){var r=F(this),n=H(T(this,G));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=R?z.domain:void 0,r.parent=!0,r.reactions.push(n),r.state!=Q&&ce(r,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),i=function(){var e=new n,t=B(e);this.promise=e,this.resolve=he(me,t),this.reject=he(de,t)},O.f=H=function(e){return e===G||e===s?new i(e):K(e)},!c&&"function"==typeof p&&U!==Object.prototype)){o=U.then,ie||(f(U,"then",(function(e,t){var r=this;return new G((function(e,t){o.call(r,e,t)})).then(e,t)}),{unsafe:!0}),f(U,"catch",X["catch"],{unsafe:!0}));try{delete U.constructor}catch(ye){}d&&d(U,X)}a({global:!0,wrap:!0,forced:se},{Promise:G}),m(G,L,!1,!0),y(L),s=l(L),a({target:L,stat:!0,forced:se},{reject:function(e){var t=H(this);return t.reject.call(void 0,e),t.promise}}),a({target:L,stat:!0,forced:c||se},{resolve:function(e){return _(c&&this===s?G:this,e)}}),a({target:L,stat:!0,forced:oe},{all:function(e){var t=this,r=H(t),n=r.resolve,i=r.reject,s=A((function(){var r=g(t.resolve),s=[],o=0,a=1;j(e,(function(e){var c=o++,u=!1;s.push(void 0),a++,r.call(t,e).then((function(e){u||(u=!0,s[c]=e,--a||n(s))}),i)})),--a||n(s)}));return s.error&&i(s.value),r.promise},race:function(e){var t=this,r=H(t),n=r.reject,i=A((function(){var i=g(t.resolve);j(e,(function(e){i.call(t,e).then(r.resolve,n)}))}));return i.error&&n(i.value),r.promise}})},{"../internals/a-function":89,"../internals/an-instance":93,"../internals/check-correctness-of-iteration":113,"../internals/engine-is-browser":129,"../internals/engine-is-node":133,"../internals/engine-v8-version":136,"../internals/export":139,"../internals/get-built-in":143,"../internals/global":147,"../internals/host-report-errors":150,"../internals/inspect-source":156,"../internals/internal-state":157,"../internals/is-forced":160,"../internals/is-object":162,"../internals/is-pure":163,"../internals/iterate":166,"../internals/microtask":170,"../internals/native-promise-constructor":171,"../internals/new-promise-capability":174,"../internals/object-set-prototype-of":188,"../internals/perform":194,"../internals/promise-resolve":195,"../internals/redefine":197,"../internals/redefine-all":196,"../internals/set-species":207,"../internals/set-to-string-tag":208,"../internals/species-constructor":212,"../internals/task":216,"../internals/well-known-symbol":237}],260:[function(e,t,r){var n=e("../internals/descriptors"),i=e("../internals/global"),s=e("../internals/is-forced"),o=e("../internals/inherit-if-required"),a=e("../internals/create-non-enumerable-property"),c=e("../internals/object-define-property").f,u=e("../internals/object-get-own-property-names").f,l=e("../internals/is-regexp"),p=e("../internals/to-string"),f=e("../internals/regexp-flags"),h=e("../internals/regexp-sticky-helpers"),d=e("../internals/redefine"),m=e("../internals/fails"),y=e("../internals/has"),b=e("../internals/internal-state").enforce,g=e("../internals/set-species"),v=e("../internals/well-known-symbol"),w=e("../internals/regexp-unsupported-dot-all"),j=e("../internals/regexp-unsupported-ncg"),x=v("match"),T=i.RegExp,k=T.prototype,E=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,_=/a/g,S=/a/g,O=new T(_)!==_,A=h.UNSUPPORTED_Y,D=n&&(!O||A||w||j||m((function(){return S[x]=!1,T(_)!=_||T(S)==S||"/a/i"!=T(_,"i")}))),I=function(e){for(var t,r=e.length,n=0,i="",s=!1;n<=r;n++)t=e.charAt(n),"\\"!==t?s||"."!==t?("["===t?s=!0:"]"===t&&(s=!1),i+=t):i+="[\\s\\S]":i+=t+e.charAt(++n);return i},C=function(e){for(var t,r=e.length,n=0,i="",s=[],o={},a=!1,c=!1,u=0,l="";n<=r;n++){if(t=e.charAt(n),"\\"===t)t+=e.charAt(++n);else if("]"===t)a=!1;else if(!a)switch(!0){case"["===t:a=!0;break;case"("===t:E.test(e.slice(n+1))&&(n+=2,c=!0),i+=t,u++;continue;case">"===t&&c:if(""===l||y(o,l))throw new SyntaxError("Invalid capture group name");o[l]=!0,s.push([l,u]),c=!1,l="";continue}c?l+=t:i+=t}return[i,s]};if(s("RegExp",D)){for(var N=function(e,t){var r,n,i,s,c,u,h=this instanceof N,d=l(e),m=void 0===t,y=[],g=e;if(!h&&d&&m&&e.constructor===N)return e;if((d||e instanceof N)&&(e=e.source,m&&(t="flags"in g?g.flags:f.call(g))),e=void 0===e?"":p(e),t=void 0===t?"":p(t),g=e,w&&"dotAll"in _&&(n=!!t&&t.indexOf("s")>-1,n&&(t=t.replace(/s/g,""))),r=t,A&&"sticky"in _&&(i=!!t&&t.indexOf("y")>-1,i&&(t=t.replace(/y/g,""))),j&&(s=C(e),e=s[0],y=s[1]),c=o(T(e,t),h?this:k,N),(n||i||y.length)&&(u=b(c),n&&(u.dotAll=!0,u.raw=N(I(e),r)),i&&(u.sticky=!0),y.length&&(u.groups=y)),e!==g)try{a(c,"source",""===g?"(?:)":g)}catch(v){}return c},R=function(e){e in N||c(N,e,{configurable:!0,get:function(){return T[e]},set:function(t){T[e]=t}})},M=u(T),P=0;M.length>P;)R(M[P++]);k.constructor=N,N.prototype=k,d(i,"RegExp",N)}g("RegExp")},{"../internals/create-non-enumerable-property":120,"../internals/descriptors":125,"../internals/fails":140,"../internals/global":147,"../internals/has":148,"../internals/inherit-if-required":155,"../internals/internal-state":157,"../internals/is-forced":160,"../internals/is-regexp":164,"../internals/object-define-property":179,"../internals/object-get-own-property-names":182,"../internals/redefine":197,"../internals/regexp-flags":200,"../internals/regexp-sticky-helpers":201,"../internals/regexp-unsupported-dot-all":202,"../internals/regexp-unsupported-ncg":203,"../internals/set-species":207,"../internals/to-string":228,"../internals/well-known-symbol":237}],261:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/regexp-exec");n({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},{"../internals/export":139,"../internals/regexp-exec":199}],262:[function(e,t,r){"use strict";var n=e("../internals/redefine"),i=e("../internals/an-object"),s=e("../internals/to-string"),o=e("../internals/fails"),a=e("../internals/regexp-flags"),c="toString",u=RegExp.prototype,l=u[c],p=o((function(){return"/a/b"!=l.call({source:"a",flags:"b"})})),f=l.name!=c;(p||f)&&n(RegExp.prototype,c,(function(){var e=i(this),t=s(e.source),r=e.flags,n=s(void 0===r&&e instanceof RegExp&&!("flags"in u)?a.call(e):r);return"/"+t+"/"+n}),{unsafe:!0})},{"../internals/an-object":94,"../internals/fails":140,"../internals/redefine":197,"../internals/regexp-flags":200,"../internals/to-string":228}],263:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/not-a-regexp"),s=e("../internals/require-object-coercible"),o=e("../internals/to-string"),a=e("../internals/correct-is-regexp-logic");n({target:"String",proto:!0,forced:!a("includes")},{includes:function(e){return!!~o(s(this)).indexOf(o(i(e)),arguments.length>1?arguments[1]:void 0)}})},{"../internals/correct-is-regexp-logic":117,"../internals/export":139,"../internals/not-a-regexp":175,"../internals/require-object-coercible":204,"../internals/to-string":228}],264:[function(e,t,r){"use strict";var n=e("../internals/string-multibyte").charAt,i=e("../internals/to-string"),s=e("../internals/internal-state"),o=e("../internals/define-iterator"),a="String Iterator",c=s.set,u=s.getterFor(a);o(String,"String",(function(e){c(this,{type:a,string:i(e),index:0})}),(function(){var e,t=u(this),r=t.string,i=t.index;return i>=r.length?{value:void 0,done:!0}:(e=n(r,i),t.index+=e.length,{value:e,done:!1})}))},{"../internals/define-iterator":123,"../internals/internal-state":157,"../internals/string-multibyte":213,"../internals/to-string":228}],265:[function(e,t,r){"use strict";var n=e("../internals/fix-regexp-well-known-symbol-logic"),i=e("../internals/an-object"),s=e("../internals/to-length"),o=e("../internals/to-string"),a=e("../internals/require-object-coercible"),c=e("../internals/advance-string-index"),u=e("../internals/regexp-exec-abstract");n("match",(function(e,t,r){return[function(t){var r=a(this),n=void 0==t?void 0:t[e];return void 0!==n?n.call(t,r):new RegExp(t)[e](o(r))},function(e){var n=i(this),a=o(e),l=r(t,n,a);if(l.done)return l.value;if(!n.global)return u(n,a);var p=n.unicode;n.lastIndex=0;var f,h=[],d=0;while(null!==(f=u(n,a))){var m=o(f[0]);h[d]=m,""===m&&(n.lastIndex=c(a,s(n.lastIndex),p)),d++}return 0===d?null:h}]}))},{"../internals/advance-string-index":92,"../internals/an-object":94,"../internals/fix-regexp-well-known-symbol-logic":141,"../internals/regexp-exec-abstract":198,"../internals/require-object-coercible":204,"../internals/to-length":221,"../internals/to-string":228}],266:[function(e,t,r){"use strict";var n=e("../internals/fix-regexp-well-known-symbol-logic"),i=e("../internals/fails"),s=e("../internals/an-object"),o=e("../internals/to-integer"),a=e("../internals/to-length"),c=e("../internals/to-string"),u=e("../internals/require-object-coercible"),l=e("../internals/advance-string-index"),p=e("../internals/get-substitution"),f=e("../internals/regexp-exec-abstract"),h=e("../internals/well-known-symbol"),d=h("replace"),m=Math.max,y=Math.min,b=function(e){return void 0===e?e:String(e)},g=function(){return"$0"==="a".replace(/./,"$0")}(),v=function(){return!!/./[d]&&""===/./[d]("a","$0")}(),w=!i((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$")}));n("replace",(function(e,t,r){var n=v?"$":"$0";return[function(e,r){var n=u(this),i=void 0==e?void 0:e[d];return void 0!==i?i.call(e,n,r):t.call(c(n),e,r)},function(e,i){var u=s(this),h=c(e);if("string"===typeof i&&-1===i.indexOf(n)&&-1===i.indexOf("$<")){var d=r(t,u,h,i);if(d.done)return d.value}var g="function"===typeof i;g||(i=c(i));var v=u.global;if(v){var w=u.unicode;u.lastIndex=0}var j=[];while(1){var x=f(u,h);if(null===x)break;if(j.push(x),!v)break;var T=c(x[0]);""===T&&(u.lastIndex=l(h,a(u.lastIndex),w))}for(var k="",E=0,_=0;_=E&&(k+=h.slice(E,O)+N,E=O+S.length)}return k+h.slice(E)}]}),!w||!g||v)},{"../internals/advance-string-index":92,"../internals/an-object":94,"../internals/fails":140,"../internals/fix-regexp-well-known-symbol-logic":141,"../internals/get-substitution":146,"../internals/regexp-exec-abstract":198,"../internals/require-object-coercible":204,"../internals/to-integer":220,"../internals/to-length":221,"../internals/to-string":228,"../internals/well-known-symbol":237}],267:[function(e,t,r){"use strict";var n=e("../internals/fix-regexp-well-known-symbol-logic"),i=e("../internals/an-object"),s=e("../internals/require-object-coercible"),o=e("../internals/same-value"),a=e("../internals/to-string"),c=e("../internals/regexp-exec-abstract");n("search",(function(e,t,r){return[function(t){var r=s(this),n=void 0==t?void 0:t[e];return void 0!==n?n.call(t,r):new RegExp(t)[e](a(r))},function(e){var n=i(this),s=a(e),u=r(t,n,s);if(u.done)return u.value;var l=n.lastIndex;o(l,0)||(n.lastIndex=0);var p=c(n,s);return o(n.lastIndex,l)||(n.lastIndex=l),null===p?-1:p.index}]}))},{"../internals/an-object":94,"../internals/fix-regexp-well-known-symbol-logic":141,"../internals/regexp-exec-abstract":198,"../internals/require-object-coercible":204,"../internals/same-value":205,"../internals/to-string":228}],268:[function(e,t,r){"use strict";var n=e("../internals/fix-regexp-well-known-symbol-logic"),i=e("../internals/is-regexp"),s=e("../internals/an-object"),o=e("../internals/require-object-coercible"),a=e("../internals/species-constructor"),c=e("../internals/advance-string-index"),u=e("../internals/to-length"),l=e("../internals/to-string"),p=e("../internals/regexp-exec-abstract"),f=e("../internals/regexp-exec"),h=e("../internals/regexp-sticky-helpers"),d=e("../internals/fails"),m=h.UNSUPPORTED_Y,y=[].push,b=Math.min,g=4294967295,v=!d((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]}));n("split",(function(e,t,r){var n;return n="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,r){var n=l(o(this)),s=void 0===r?g:r>>>0;if(0===s)return[];if(void 0===e)return[n];if(!i(e))return t.call(n,e,s);var a,c,u,p=[],h=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,m=new RegExp(e.source,h+"g");while(a=f.call(m,n)){if(c=m.lastIndex,c>d&&(p.push(n.slice(d,a.index)),a.length>1&&a.index=s))break;m.lastIndex===a.index&&m.lastIndex++}return d===n.length?!u&&m.test("")||p.push(""):p.push(n.slice(d)),p.length>s?p.slice(0,s):p}:"0".split(void 0,0).length?function(e,r){return void 0===e&&0===r?[]:t.call(this,e,r)}:t,[function(t,r){var i=o(this),s=void 0==t?void 0:t[e];return void 0!==s?s.call(t,i,r):n.call(l(i),t,r)},function(e,i){var o=s(this),f=l(e),h=r(n,o,f,i,n!==t);if(h.done)return h.value;var d=a(o,RegExp),y=o.unicode,v=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(m?"g":"y"),w=new d(m?"^(?:"+o.source+")":o,v),j=void 0===i?g:i>>>0;if(0===j)return[];if(0===f.length)return null===p(w,f)?[f]:[];var x=0,T=0,k=[];while(Ts)i.push(arguments[s++]);if(n=t,(f(t)||void 0!==e)&&!h(e))return p(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!h(t))return t}),i[1]=t,K.apply(null,i)}})}H[G][X]||O(H[G],X,H[G].valueOf),L(H,U),C[F]=!0},{"../internals/an-object":94,"../internals/array-iteration":104,"../internals/create-non-enumerable-property":120,"../internals/create-property-descriptor":121,"../internals/define-well-known-symbol":124,"../internals/descriptors":125,"../internals/export":139,"../internals/fails":140,"../internals/get-built-in":143,"../internals/global":147,"../internals/has":148,"../internals/hidden-keys":149,"../internals/internal-state":157,"../internals/is-array":159,"../internals/is-object":162,"../internals/is-pure":163,"../internals/is-symbol":165,"../internals/native-symbol":172,"../internals/object-create":177,"../internals/object-define-property":179,"../internals/object-get-own-property-descriptor":180,"../internals/object-get-own-property-names":182,"../internals/object-get-own-property-names-external":181,"../internals/object-get-own-property-symbols":183,"../internals/object-keys":186,"../internals/object-property-is-enumerable":187,"../internals/redefine":197,"../internals/set-to-string-tag":208,"../internals/shared":211,"../internals/shared-key":209,"../internals/to-indexed-object":219,"../internals/to-object":222,"../internals/to-property-key":226,"../internals/to-string":228,"../internals/uid":234,"../internals/well-known-symbol":237,"../internals/well-known-symbol-wrapped":236}],272:[function(e,t,r){"use strict";var n=e("../internals/array-buffer-view-core"),i=e("../internals/array-copy-within"),s=n.aTypedArray,o=n.exportTypedArrayMethod;o("copyWithin",(function(e,t){return i.call(s(this),e,t,arguments.length>2?arguments[2]:void 0)}))},{"../internals/array-buffer-view-core":96,"../internals/array-copy-within":98}],273:[function(e,t,r){"use strict";var n=e("../internals/array-buffer-view-core"),i=e("../internals/array-iteration").every,s=n.aTypedArray,o=n.exportTypedArrayMethod;o("every",(function(e){return i(s(this),e,arguments.length>1?arguments[1]:void 0)}))},{"../internals/array-buffer-view-core":96,"../internals/array-iteration":104}],274:[function(e,t,r){"use strict";var n=e("../internals/array-buffer-view-core"),i=e("../internals/array-fill"),s=n.aTypedArray,o=n.exportTypedArrayMethod;o("fill",(function(e){return i.apply(s(this),arguments)}))},{"../internals/array-buffer-view-core":96,"../internals/array-fill":99}],275:[function(e,t,r){"use strict";var n=e("../internals/array-buffer-view-core"),i=e("../internals/array-iteration").filter,s=e("../internals/typed-array-from-species-and-list"),o=n.aTypedArray,a=n.exportTypedArrayMethod;a("filter",(function(e){var t=i(o(this),e,arguments.length>1?arguments[1]:void 0);return s(this,t)}))},{"../internals/array-buffer-view-core":96,"../internals/array-iteration":104,"../internals/typed-array-from-species-and-list":231}],276:[function(e,t,r){"use strict";var n=e("../internals/array-buffer-view-core"),i=e("../internals/array-iteration").findIndex,s=n.aTypedArray,o=n.exportTypedArrayMethod;o("findIndex",(function(e){return i(s(this),e,arguments.length>1?arguments[1]:void 0)}))},{"../internals/array-buffer-view-core":96,"../internals/array-iteration":104}],277:[function(e,t,r){"use strict";var n=e("../internals/array-buffer-view-core"),i=e("../internals/array-iteration").find,s=n.aTypedArray,o=n.exportTypedArrayMethod;o("find",(function(e){return i(s(this),e,arguments.length>1?arguments[1]:void 0)}))},{"../internals/array-buffer-view-core":96,"../internals/array-iteration":104}],278:[function(e,t,r){"use strict";var n=e("../internals/array-buffer-view-core"),i=e("../internals/array-iteration").forEach,s=n.aTypedArray,o=n.exportTypedArrayMethod;o("forEach",(function(e){i(s(this),e,arguments.length>1?arguments[1]:void 0)}))},{"../internals/array-buffer-view-core":96,"../internals/array-iteration":104}],279:[function(e,t,r){"use strict";var n=e("../internals/array-buffer-view-core"),i=e("../internals/array-includes").includes,s=n.aTypedArray,o=n.exportTypedArrayMethod;o("includes",(function(e){return i(s(this),e,arguments.length>1?arguments[1]:void 0)}))},{"../internals/array-buffer-view-core":96,"../internals/array-includes":103}],280:[function(e,t,r){"use strict";var n=e("../internals/array-buffer-view-core"),i=e("../internals/array-includes").indexOf,s=n.aTypedArray,o=n.exportTypedArrayMethod;o("indexOf",(function(e){return i(s(this),e,arguments.length>1?arguments[1]:void 0)}))},{"../internals/array-buffer-view-core":96,"../internals/array-includes":103}],281:[function(e,t,r){"use strict";var n=e("../internals/global"),i=e("../internals/array-buffer-view-core"),s=e("../modules/es.array.iterator"),o=e("../internals/well-known-symbol"),a=o("iterator"),c=n.Uint8Array,u=s.values,l=s.keys,p=s.entries,f=i.aTypedArray,h=i.exportTypedArrayMethod,d=c&&c.prototype[a],m=!!d&&("values"==d.name||void 0==d.name),y=function(){return u.call(f(this))};h("entries",(function(){return p.call(f(this))})),h("keys",(function(){return l.call(f(this))})),h("values",y,!m),h(a,y,!m)},{"../internals/array-buffer-view-core":96,"../internals/global":147,"../internals/well-known-symbol":237,"../modules/es.array.iterator":247}],282:[function(e,t,r){"use strict";var n=e("../internals/array-buffer-view-core"),i=n.aTypedArray,s=n.exportTypedArrayMethod,o=[].join;s("join",(function(e){return o.apply(i(this),arguments)}))},{"../internals/array-buffer-view-core":96}],283:[function(e,t,r){"use strict";var n=e("../internals/array-buffer-view-core"),i=e("../internals/array-last-index-of"),s=n.aTypedArray,o=n.exportTypedArrayMethod;o("lastIndexOf",(function(e){return i.apply(s(this),arguments)}))},{"../internals/array-buffer-view-core":96,"../internals/array-last-index-of":105}],284:[function(e,t,r){"use strict";var n=e("../internals/array-buffer-view-core"),i=e("../internals/array-iteration").map,s=e("../internals/typed-array-species-constructor"),o=n.aTypedArray,a=n.exportTypedArrayMethod;a("map",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(s(e))(t)}))}))},{"../internals/array-buffer-view-core":96,"../internals/array-iteration":104,"../internals/typed-array-species-constructor":233}],285:[function(e,t,r){"use strict";var n=e("../internals/array-buffer-view-core"),i=e("../internals/array-reduce").right,s=n.aTypedArray,o=n.exportTypedArrayMethod;o("reduceRight",(function(e){return i(s(this),e,arguments.length,arguments.length>1?arguments[1]:void 0)}))},{"../internals/array-buffer-view-core":96,"../internals/array-reduce":108}],286:[function(e,t,r){"use strict";var n=e("../internals/array-buffer-view-core"),i=e("../internals/array-reduce").left,s=n.aTypedArray,o=n.exportTypedArrayMethod;o("reduce",(function(e){return i(s(this),e,arguments.length,arguments.length>1?arguments[1]:void 0)}))},{"../internals/array-buffer-view-core":96,"../internals/array-reduce":108}],287:[function(e,t,r){"use strict";var n=e("../internals/array-buffer-view-core"),i=n.aTypedArray,s=n.exportTypedArrayMethod,o=Math.floor;s("reverse",(function(){var e,t=this,r=i(t).length,n=o(r/2),s=0;while(s1?arguments[1]:void 0,1),r=this.length,n=o(e),a=i(n.length),u=0;if(a+t>r)throw RangeError("Wrong length");while(us)u[s]=r[s++];return u}),u)},{"../internals/array-buffer-view-core":96,"../internals/fails":140,"../internals/typed-array-species-constructor":233}],290:[function(e,t,r){"use strict";var n=e("../internals/array-buffer-view-core"),i=e("../internals/array-iteration").some,s=n.aTypedArray,o=n.exportTypedArrayMethod;o("some",(function(e){return i(s(this),e,arguments.length>1?arguments[1]:void 0)}))},{"../internals/array-buffer-view-core":96,"../internals/array-iteration":104}],291:[function(e,t,r){"use strict";var n=e("../internals/array-buffer-view-core"),i=e("../internals/global"),s=e("../internals/fails"),o=e("../internals/a-function"),a=e("../internals/to-length"),c=e("../internals/array-sort"),u=e("../internals/engine-ff-version"),l=e("../internals/engine-is-ie-or-edge"),p=e("../internals/engine-v8-version"),f=e("../internals/engine-webkit-version"),h=n.aTypedArray,d=n.exportTypedArrayMethod,m=i.Uint16Array,y=m&&m.prototype.sort,b=!!y&&!s((function(){var e=new m(2);e.sort(null),e.sort({})})),g=!!y&&!s((function(){if(p)return p<74;if(u)return u<67;if(l)return!0;if(f)return f<602;var e,t,r=new m(516),n=Array(516);for(e=0;e<516;e++)t=e%4,r[e]=515-e,n[e]=e-2*t+3;for(r.sort((function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(r[e]!==n[e])return!0})),v=function(e){return function(t,r){return void 0!==e?+e(t,r)||0:r!==r?-1:t!==t?1:0===t&&0===r?1/t>0&&1/r<0?1:-1:t>r}};d("sort",(function(e){var t=this;if(void 0!==e&&o(e),g)return y.call(t,e);h(t);var r,n=a(t.length),i=Array(n);for(r=0;r0?"-":"+")+s(100*Math.floor(Math.abs(x)/60)+Math.abs(x)%60,4),S:["th","st","nd","rd"][d%10>3?0:(d%100-d%10!=10)*d%10],W:T,N:k};return u.replace(e,(function(e){return e in E?E[e]:e.slice(1,e.length-1)}))}}();function s(e,t){e=String(e),t=t||2;while(e.length]/;function i(e){var t,r=""+e,i=n.exec(r);if(!i)return r;var s="",o=0,a=0;for(o=i.index;o0&&this._events[e].length>r&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"===typeof console.trace&&console.trace())),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){if(!i(t))throw TypeError("listener must be a function");var r=!1;function n(){this.removeListener(e,n),r||(r=!0,t.apply(this,arguments))}return n.listener=t,this.on(e,n),this},n.prototype.removeListener=function(e,t){var r,n,s,a;if(!i(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(r=this._events[e],s=r.length,n=-1,r===t||i(r.listener)&&r.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(o(r)){for(a=s;a-- >0;)if(r[a]===t||r[a].listener&&r[a].listener===t){n=a;break}if(n<0)return this;1===r.length?(r.length=0,delete this._events[e]):r.splice(n,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r=this._events[e],i(r))this.removeListener(e,r);else if(r)while(r.length)this.removeListener(e,r[r.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){var t;return t=this._events&&this._events[e]?i(this._events[e])?[this._events[e]]:this._events[e].slice():[],t},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(i(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},{}],302:[function(e,t,r){var n=e("http"),i=t.exports;for(var s in n)n.hasOwnProperty(s)&&(i[s]=n[s]);i.request=function(e,t){return e||(e={}),e.scheme="https",e.protocol="https:",n.request.call(this,e,t)}},{http:400}],303:[function(e,t,r){ /*! * humanize-ms - index.js * Copyright(c) 2014 dead_horse * MIT Licensed */ "use strict";var n=e("util"),i=e("ms");t.exports=function(e){if("number"===typeof e)return e;var t=i(e);if(void 0===t){var r=new Error(n.format("humanize-ms(%j) result undefined",e));console.warn(r.stack)}return t}},{ms:319,util:352}],304:[function(e,t,r){ /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */ r.read=function(e,t,r,n,i){var s,o,a=8*i-n-1,c=(1<>1,l=-7,p=r?i-1:0,f=r?-1:1,h=e[t+p];for(p+=f,s=h&(1<<-l)-1,h>>=-l,l+=a;l>0;s=256*s+e[t+p],p+=f,l-=8);for(o=s&(1<<-l)-1,s>>=-l,l+=n;l>0;o=256*o+e[t+p],p+=f,l-=8);if(0===s)s=1-u;else{if(s===c)return o?NaN:1/0*(h?-1:1);o+=Math.pow(2,n),s-=u}return(h?-1:1)*o*Math.pow(2,s-n)},r.write=function(e,t,r,n,i,s){var o,a,c,u=8*s-i-1,l=(1<>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:s-1,d=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,o=l):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-o))<1&&(o--,c*=2),t+=o+p>=1?f/c:f*Math.pow(2,1-p),t*c>=2&&(o++,c/=2),o+p>=l?(a=0,o=l):o+p>=1?(a=(t*c-1)*Math.pow(2,i),o+=p):(a=t*Math.pow(2,p-1)*Math.pow(2,i),o=0));i>=8;e[r+h]=255&a,h+=d,a/=256,i-=8);for(o=o<0;e[r+h]=255&o,h+=d,o/=256,u-=8);e[r+h-d]|=128*m}},{}],305:[function(e,t,r){"use strict";var n,i,s,o=[e("./nextTick"),e("./queueMicrotask"),e("./mutation.js"),e("./messageChannel"),e("./stateChange"),e("./timeout")],a=-1,c=[],u=!1;function l(){n&&i&&(n=!1,i.length?c=i.concat(c):a=-1,c.length&&p())}function p(){if(!n){u=!1,n=!0;var e=c.length,t=setTimeout(l);while(e){i=c,c=[];while(i&&++a1)for(var r=1;r * @license MIT */ t.exports=function(e){return null!=e&&(n(e)||i(e)||!!e._isBuffer)}},{}],313:[function(e,t,r){var n={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},{}],314:[function(r,n,i){(function(t){(function(){(function(t,r){"object"===typeof i&&"undefined"!==typeof n?n.exports=r(t):"function"===typeof e&&e.amd?e(r):r(t)})("undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof t?t:this,(function(t){"use strict";t=t||{};var r,i=t.Base64,s="2.6.4",o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=function(e){for(var t={},r=0,n=e.length;r>>6)+c(128|63&t):c(224|t>>>12&15)+c(128|t>>>6&63)+c(128|63&t)}t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return c(240|t>>>18&7)+c(128|t>>>12&63)+c(128|t>>>6&63)+c(128|63&t)},l=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,p=function(e){return e.replace(l,u)},f=function(e){var t=[0,2,1][e.length%3],r=e.charCodeAt(0)<<16|(e.length>1?e.charCodeAt(1):0)<<8|(e.length>2?e.charCodeAt(2):0),n=[o.charAt(r>>>18),o.charAt(r>>>12&63),t>=2?"=":o.charAt(r>>>6&63),t>=1?"=":o.charAt(63&r)];return n.join("")},h=t.btoa&&"function"==typeof t.btoa?function(e){return t.btoa(e)}:function(e){if(e.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return e.replace(/[\s\S]{1,3}/g,f)},d=function(e){return h(p(String(e)))},m=function(e){return e.replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"})).replace(/=/g,"")},y=function(e,t){return t?m(d(e)):d(e)},b=function(e){return y(e,!0)};t.Uint8Array&&(r=function(e,t){for(var r="",n=0,i=e.length;n>>18)+o.charAt(u>>>12&63)+("undefined"!=typeof a?o.charAt(u>>>6&63):"=")+("undefined"!=typeof c?o.charAt(63&u):"=")}return t?m(r):r});var g,v=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,w=function(e){switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),r=t-65536;return c(55296+(r>>>10))+c(56320+(1023&r));case 3:return c((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return c((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},j=function(e){return e.replace(v,w)},x=function(e){var t=e.length,r=t%4,n=(t>0?a[e.charAt(0)]<<18:0)|(t>1?a[e.charAt(1)]<<12:0)|(t>2?a[e.charAt(2)]<<6:0)|(t>3?a[e.charAt(3)]:0),i=[c(n>>>16),c(n>>>8&255),c(255&n)];return i.length-=[0,0,2,1][r],i.join("")},T=t.atob&&"function"==typeof t.atob?function(e){return t.atob(e)}:function(e){return e.replace(/\S{1,4}/g,x)},k=function(e){return T(String(e).replace(/[^A-Za-z0-9\+\/]/g,""))},E=function(e){return j(T(e))},_=function(e){return String(e).replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})).replace(/[^A-Za-z0-9\+\/]/g,"")},S=function(e){return E(_(e))};t.Uint8Array&&(g=function(e){return Uint8Array.from(k(_(e)),(function(e){return e.charCodeAt(0)}))});var O=function(){var e=t.Base64;return t.Base64=i,e};if(t.Base64={VERSION:s,atob:k,btoa:h,fromBase64:S,toBase64:y,utob:p,encode:y,encodeURI:b,btou:j,decode:S,noConflict:O,fromUint8Array:r,toUint8Array:g},"function"===typeof Object.defineProperty){var A=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}};t.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",A((function(){return S(this)}))),Object.defineProperty(String.prototype,"toBase64",A((function(e){return y(this,e)}))),Object.defineProperty(String.prototype,"toBase64URI",A((function(){return y(this,!0)})))}}return t["Meteor"]&&(Base64=t.Base64),"undefined"!==typeof n&&n.exports?n.exports.Base64=t.Base64:"function"===typeof e&&e.amd&&e([],(function(){return t.Base64})),{Base64:t.Base64}}))}).call(this)}).call(this,"undefined"!==typeof t?t:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{}],315:[function(e,t,r){ /*! * merge-descriptors * Copyright(c) 2014 Jonathan Ong * Copyright(c) 2015 Douglas Christopher Wilson * MIT Licensed */ "use strict";t.exports=i;var n=Object.prototype.hasOwnProperty;function i(e,t,r){if(!e)throw new TypeError("argument dest is required");if(!t)throw new TypeError("argument src is required");return void 0===r&&(r=!0),Object.getOwnPropertyNames(t).forEach((function(i){if(r||!n.call(e,i)){var s=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(e,i,s)}})),e}},{}],316:[function(e,t,r){"use strict";function n(){this._types=Object.create(null),this._extensions=Object.create(null);for(var e=0;e100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),u=(t[2]||"ms").toLowerCase();switch(u){case"years":case"year":case"yrs":case"yr":case"y":return r*c;case"weeks":case"week":case"w":return r*a;case"days":case"day":case"d":return r*o;case"hours":case"hour":case"hrs":case"hr":case"h":return r*s;case"minutes":case"minute":case"mins":case"min":case"m":return r*i;case"seconds":case"second":case"secs":case"sec":case"s":return r*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function l(e){var t=Math.abs(e);return t>=o?Math.round(e/o)+"d":t>=s?Math.round(e/s)+"h":t>=i?Math.round(e/i)+"m":t>=n?Math.round(e/n)+"s":e+"ms"}function p(e){var t=Math.abs(e);return t>=o?f(e,t,o,"day"):t>=s?f(e,t,s,"hour"):t>=i?f(e,t,i,"minute"):t>=n?f(e,t,n,"second"):e+" ms"}function f(e,t,r,n){var i=t>=1.5*r;return Math.round(e/r)+" "+n+(i?"s":"")}t.exports=function(e,t){t=t||{};var r=typeof e;if("string"===r&&e.length>0)return u(e);if("number"===r&&isFinite(e))return t.long?p(e):l(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},{}],320:[function(e,t,r){ /* object-assign (c) Sindre Sorhus @license MIT */ "use strict";var n=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable;function o(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function a(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(t).map((function(e){return t[e]}));if("0123456789"!==n.join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach((function(e){i[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(s){return!1}}t.exports=a()?Object.assign:function(e,t){for(var r,a,c=o(e),u=1;u=0;n--){var i=e[n];"."===i?e.splice(n,1):".."===i?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r--;r)e.unshift("..");return e}function n(e){"string"!==typeof e&&(e+="");var t,r=0,n=-1,i=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!i){r=t+1;break}}else-1===n&&(i=!1,n=t+1);return-1===n?"":e.slice(r,n)}function i(e,t){if(e.filter)return e.filter(t);for(var r=[],n=0;n=-1&&!n;s--){var o=s>=0?arguments[s]:e.cwd();if("string"!==typeof o)throw new TypeError("Arguments to path.resolve must be strings");o&&(r=o+"/"+r,n="/"===o.charAt(0))}return r=t(i(r.split("/"),(function(e){return!!e})),!n).join("/"),(n?"/":"")+r||"."},r.normalize=function(e){var n=r.isAbsolute(e),o="/"===s(e,-1);return e=t(i(e.split("/"),(function(e){return!!e})),!n).join("/"),e||n||(e="."),e&&o&&(e+="/"),(n?"/":"")+e},r.isAbsolute=function(e){return"/"===e.charAt(0)},r.join=function(){var e=Array.prototype.slice.call(arguments,0);return r.normalize(i(e,(function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},r.relative=function(e,t){function n(e){for(var t=0;t=0;r--)if(""!==e[r])break;return t>r?[]:e.slice(t,r-t+1)}e=r.resolve(e).substr(1),t=r.resolve(t).substr(1);for(var i=n(e.split("/")),s=n(t.split("/")),o=Math.min(i.length,s.length),a=o,c=0;c=1;--s)if(t=e.charCodeAt(s),47===t){if(!i){n=s;break}}else i=!1;return-1===n?r?"/":".":r&&1===n?"/":e.slice(0,n)},r.basename=function(e,t){var r=n(e);return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r},r.extname=function(e){"string"!==typeof e&&(e+="");for(var t=-1,r=0,n=-1,i=!0,s=0,o=e.length-1;o>=0;--o){var a=e.charCodeAt(o);if(47!==a)-1===n&&(i=!1,n=o+1),46===a?-1===t?t=o:1!==s&&(s=1):-1!==t&&(s=-1);else if(!i){r=o+1;break}}return-1===t||-1===n||0===s||1===s&&t===n-1&&t===r+1?"":e.slice(t,n)};var s="b"==="ab".substr(-1)?function(e,t,r){return e.substr(t,r)}:function(e,t,r){return t<0&&(t=e.length+t),e.substr(t,r)}}).call(this)}).call(this,e("_process"))},{_process:399}],322:[function(r,n,i){(function(t){(function(){(function(){"use strict";var r={function:!0,object:!0},s=r[typeof window]&&window||this,o=r[typeof i]&&i,a=r[typeof n]&&n&&!n.nodeType&&n,c=o&&a&&"object"==typeof t&&t;!c||c.global!==c&&c.window!==c&&c.self!==c||(s=c);var u=Math.pow(2,53)-1,l=/\bOpera/,p=Object.prototype,f=p.hasOwnProperty,h=p.toString;function d(e){return e=String(e),e.charAt(0).toUpperCase()+e.slice(1)}function m(e,t,r){var n={"10.0":"10",6.4:"10 Technical Preview",6.3:"8.1",6.2:"8",6.1:"Server 2008 R2 / 7","6.0":"Server 2008 / Vista",5.2:"Server 2003 / XP 64-bit",5.1:"XP",5.01:"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return t&&r&&/^Win/i.test(e)&&!/^Windows Phone /i.test(e)&&(n=n[/[\d.]+$/.exec(e)])&&(e="Windows "+n),e=String(e),t&&r&&(e=e.replace(RegExp(t,"i"),r)),e=b(e.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0]),e}function y(e,t){var r=-1,n=e?e.length:0;if("number"==typeof n&&n>-1&&n<=u)while(++r3?"WebKit":/\bOpera\b/.test(B)&&(/\bOPR\b/.test(e)?"Blink":"Presto"))||/\b(?:Midori|Nook|Safari)\b/i.test(e)&&!/^(?:Trident|EdgeHTML)$/.test(L)&&"WebKit"||!L&&/\bMSIE\b/i.test(e)&&("Mac OS"==U?"Tasman":"Trident")||"WebKit"==L&&/\bPlayStation\b(?! Vita\b)/i.test(B)&&"NetFront")&&(L=[o]),"IE"==B&&(o=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(e)||0)[1])?(B+=" Mobile",U="Windows Phone "+(/\+$/.test(o)?o:o+".x"),N.unshift("desktop mode")):/\bWPDesktop\b/i.test(e)?(B="IE Mobile",U="Windows Phone 8.x",N.unshift("desktop mode"),P||(P=(/\brv:([\d.]+)/.exec(e)||0)[1])):"IE"!=B&&"Trident"==L&&(o=/\brv:([\d.]+)/.exec(e))&&(B&&N.push("identifying as "+B+(P?" "+P:"")),B="IE",P=o[1]),M){if(w(t,"global"))if(E&&(o=E.lang.System,C=o.getProperty("os.arch"),U=U||o.getProperty("os.name")+" "+o.getProperty("os.version")),_){try{P=t.require("ringo/engine").version.join("."),B="RingoJS"}catch($){(o=t.system)&&o.global.system==t.system&&(B="Narwhal",U||(U=o[0].os||null))}B||(B="Rhino")}else"object"==typeof t.process&&!t.process.browser&&(o=t.process)&&("object"==typeof o.versions&&("string"==typeof o.versions.electron?(N.push("Node "+o.versions.node),B="Electron",P=o.versions.electron):"string"==typeof o.versions.nw&&(N.push("Chromium "+P,"Node "+o.versions.node),B="NW.js",P=o.versions.nw)),B||(B="Node.js",C=o.arch,U=o.platform,P=/[\d.]+/.exec(o.version),P=P?P[0]:null));else v(o=t.runtime)==p?(B="Adobe AIR",U=o.flash.system.Capabilities.os):v(o=t.phantom)==y?(B="PhantomJS",P=(o=o.version||null)&&o.major+"."+o.minor+"."+o.patch):"number"==typeof A.documentMode&&(o=/\bTrident\/(\d+)/i.exec(e))?(P=[P,A.documentMode],(o=+o[1]+4)!=P[1]&&(N.push("IE "+P[1]+" mode"),L&&(L[1]=""),P[1]=o),P="IE"==B?String(P[1].toFixed(1)):P[0]):"number"==typeof A.documentMode&&/^(?:Chrome|Firefox)\b/.test(B)&&(N.push("masking as "+B+" "+P),B="IE",P="11.0",L=["Trident"],U="Windows");U=U&&b(U)}if(P&&(o=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(P)||/(?:alpha|beta)(?: ?\d)?/i.exec(e+";"+(M&&n.appMinorVersion))||/\bMinefield\b/i.test(e)&&"a")&&(R=/b/i.test(o)?"beta":"alpha",P=P.replace(RegExp(o+"\\+?$"),"")+("beta"==R?O:S)+(/\d+\+?/.exec(o)||"")),"Fennec"==B||"Firefox"==B&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(U))B="Firefox Mobile";else if("Maxthon"==B&&P)P=P.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(q))"Xbox 360"==q&&(U=null),"Xbox 360"==q&&/\bIEMobile\b/.test(e)&&N.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(B)&&(!B||q||/Browser|Mobi/.test(B))||"Windows CE"!=U&&!/Mobi/i.test(e))if("IE"==B&&M)try{null===t.external&&N.unshift("platform preview")}catch($){N.unshift("embedded")}else(/\bBlackBerry\b/.test(q)||/\bBB10\b/.test(e))&&(o=(RegExp(q.replace(/ +/g," *")+"/([.\\d]+)","i").exec(e)||0)[1]||P)?(o=[o,/BB10/.test(e)],U=(o[1]?(q=null,F="BlackBerry"):"Device Software")+" "+o[0],P=null):this!=g&&"Wii"!=q&&(M&&D||/Opera/.test(B)&&/\b(?:MSIE|Firefox)\b/i.test(e)||"Firefox"==B&&/\bOS X (?:\d+\.){2,}/.test(U)||"IE"==B&&(U&&!/^Win/.test(U)&&P>5.5||/\bWindows XP\b/.test(U)&&P>8||8==P&&!/\bTrident\b/.test(e)))&&!l.test(o=k.call(g,e.replace(l,"")+";"))&&o.name&&(o="ing as "+o.name+((o=o.version)?" "+o:""),l.test(B)?(/\bIE\b/.test(o)&&"Mac OS"==U&&(U=null),o="identify"+o):(o="mask"+o,B=I?b(I.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(o)&&(U=null),M||(P=null)),L=["Presto"],N.push(o));else B+=" Mobile";(o=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(e)||0)[1])&&(o=[parseFloat(o.replace(/\.(\d)$/,".0$1")),o],"Safari"==B&&"+"==o[1].slice(-1)?(B="WebKit Nightly",R="alpha",P=o[1].slice(0,-1)):P!=o[1]&&P!=(o[2]=(/\bSafari\/([\d.]+\+?)/i.exec(e)||0)[1])||(P=null),o[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(e)||0)[1],537.36==o[0]&&537.36==o[2]&&parseFloat(o[1])>=28&&"WebKit"==L&&(L=["Blink"]),M&&(c||o[1])?(L&&(L[1]="like Chrome"),o=o[1]||(o=o[0],o<530?1:o<532?2:o<532.05?3:o<533?4:o<534.03?5:o<534.07?6:o<534.1?7:o<534.13?8:o<534.16?9:o<534.24?10:o<534.3?11:o<535.01?12:o<535.02?"13+":o<535.07?15:o<535.11?16:o<535.19?17:o<536.05?18:o<536.1?19:o<537.01?20:o<537.11?"21+":o<537.13?23:o<537.18?24:o<537.24?25:o<537.36?26:"Blink"!=L?"27":"28")):(L&&(L[1]="like Safari"),o=o[0],o=o<400?1:o<500?2:o<526?3:o<533?4:o<534?"4+":o<535?5:o<537?6:o<538?7:o<601?8:o<602?9:o<604?10:o<606?11:o<608?12:"12"),L&&(L[1]+=" "+(o+="number"==typeof o?".x":/[.+]/.test(o)?"":"+")),"Safari"==B&&(!P||parseInt(P)>45)?P=o:"Chrome"==B&&/\bHeadlessChrome/i.test(e)&&N.unshift("headless")),"Opera"==B&&(o=/\bzbov|zvav$/.exec(U))?(B+=" ",N.unshift("desktop mode"),"zvav"==o?(B+="Mini",P=null):B+="Mobile",U=U.replace(RegExp(" *"+o+"$"),"")):"Safari"==B&&/\bChrome\b/.exec(L&&L[1])?(N.unshift("desktop mode"),B="Chrome Mobile",P=null,/\bOS X\b/.test(U)?(F="Apple",U="iOS 4.3+"):U=null):/\bSRWare Iron\b/.test(B)&&!P&&(P=H("Chrome")),P&&0==P.indexOf(o=/[\d.]+$/.exec(U))&&e.indexOf("/"+o+"-")>-1&&(U=T(U.replace(o,""))),U&&-1!=U.indexOf(B)&&!RegExp(B+" OS").test(U)&&(U=U.replace(RegExp(" *"+j(B)+" *"),"")),L&&!/\b(?:Avant|Nook)\b/.test(B)&&(/Browser|Lunascape|Maxthon/.test(B)||"Safari"!=B&&/^iOS/.test(U)&&/\bSafari\b/.test(L[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(B)&&L[1])&&(o=L[L.length-1])&&N.push(o),N.length&&(N=["("+N.join("; ")+")"]),F&&q&&q.indexOf(F)<0&&N.push("on "+F),q&&N.push((/^on /.test(N[N.length-1])?"":"on ")+q),U&&(o=/ ([\d.+]+)$/.exec(U),a=o&&"/"==U.charAt(U.length-o[0].length-1),U={architecture:32,family:o&&!a?U.replace(o[0],""):U,version:o?o[1]:null,toString:function(){var e=this.version;return this.family+(e&&!a?" "+e:"")+(64==this.architecture?" 64-bit":"")}}),(o=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(C))&&!/\bi686\b/i.test(C)?(U&&(U.architecture=64,U.family=U.family.replace(RegExp(" *"+o),"")),B&&(/\bWOW64\b/i.test(e)||M&&/\w(?:86|32)$/.test(n.cpuClass||n.platform)&&!/\bWin64; x64\b/i.test(e))&&N.unshift("32-bit")):U&&/^OS X/.test(U.family)&&"Chrome"==B&&parseFloat(P)>=39&&(U.architecture=64),e||(e=null);var Y={};return Y.description=e,Y.layout=L&&L[0],Y.manufacturer=F,Y.name=B,Y.prerelease=R,Y.product=q,Y.ua=e,Y.version=B&&P,Y.os=U||{architecture:null,family:null,version:null,toString:function(){return"null"}},Y.parse=k,Y.toString=K,Y.version&&N.unshift(P),Y.name&&N.unshift(B),U&&B&&(U!=String(U).split(" ")[0]||U!=B.split(" ")[0]&&!q)&&N.push(q?"("+U+")":"on "+U),N.length&&(Y.description=N.join(" ")),Y}var E=k();"function"==typeof e&&"object"==typeof e.amd&&e.amd?(s.platform=E,e((function(){return E}))):o&&a?g(E,(function(e,t){o[t]=e})):s.platform=E}).call(this)}).call(this)}).call(this,"undefined"!==typeof t?t:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{}],323:[function(e,t,r){(function(e){(function(){"use strict";function r(t,r,n,i){if("function"!==typeof t)throw new TypeError('"callback" argument must be a function');var s,o,a=arguments.length;switch(a){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick((function(){t.call(null,r)}));case 3:return e.nextTick((function(){t.call(null,r,n)}));case 4:return e.nextTick((function(){t.call(null,r,n,i)}));default:s=new Array(a-1),o=0;while(o1)for(var r=1;r= 0x80 (not a basic code point)","invalid-input":"Invalid input"},T=p-f,k=Math.floor,E=String.fromCharCode;function _(e){throw new RangeError(x[e])}function S(e,t){var r=e.length,n=[];while(r--)n[r]=t(e[r]);return n}function O(e,t){var r=e.split("@"),n="";r.length>1&&(n=r[0]+"@",e=r[1]),e=e.replace(j,".");var i=e.split("."),s=S(i,t).join(".");return n+s}function A(e){var t,r,n=[],i=0,s=e.length;while(i=55296&&t<=56319&&i65535&&(e-=65536,t+=E(e>>>10&1023|55296),e=56320|1023&e),t+=E(e),t})).join("")}function I(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:p}function C(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function N(e,t,r){var n=0;for(e=r?k(e/m):e>>1,e+=k(e/t);e>T*h>>1;n+=p)e=k(e/T);return k(n+(T+1)*e/(e+d))}function R(e){var t,r,n,i,s,o,a,c,u,d,m=[],v=e.length,w=0,j=b,x=y;for(r=e.lastIndexOf(g),r<0&&(r=0),n=0;n=128&&_("not-basic"),m.push(e.charCodeAt(n));for(i=r>0?r+1:0;i=v&&_("invalid-input"),c=I(e.charCodeAt(i++)),(c>=p||c>k((l-w)/o))&&_("overflow"),w+=c*o,u=a<=x?f:a>=x+h?h:a-x,ck(l/d)&&_("overflow"),o*=d}t=m.length+1,x=N(w-s,t,0==s),k(w/t)>l-j&&_("overflow"),j+=k(w/t),w%=t,m.splice(w++,0,j)}return D(m)}function M(e){var t,r,n,i,s,o,a,c,u,d,m,v,w,j,x,T=[];for(e=A(e),v=e.length,t=b,r=0,s=y,o=0;o=t&&mk((l-r)/w)&&_("overflow"),r+=(a-t)*w,t=a,o=0;ol&&_("overflow"),m==t){for(c=r,u=p;;u+=p){if(d=u<=s?f:u>=s+h?h:u-s,c0&&u>c&&(u=c);for(var l=0;l=0?(p=m.substr(0,y),f=m.substr(y+1)):(p=m,f=""),h=decodeURIComponent(p),d=decodeURIComponent(f),n(o,h)?i(o[h])?o[h].push(d):o[h]=[o[h],d]:o[h]=d}return o};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},{}],327:[function(e,t,r){"use strict";var n=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};t.exports=function(e,t,r,a){return t=t||"&",r=r||"=",null===e&&(e=void 0),"object"===typeof e?s(o(e),(function(o){var a=encodeURIComponent(n(o))+r;return i(e[o])?s(e[o],(function(e){return a+encodeURIComponent(n(e))})).join(t):a+encodeURIComponent(n(e[o]))})).join(t):a?encodeURIComponent(n(a))+r+encodeURIComponent(n(e)):""};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function s(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n0?("string"===typeof t||o.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=p(t)),n?o.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):k(e,o,t,!0):o.ended?e.emit("error",new Error("stream.push() after EOF")):(o.reading=!1,o.decoder&&!r?(t=o.decoder.write(t),o.objectMode||0!==t.length?k(e,o,t,!1):N(e,o)):k(e,o,t,!1))):n||(o.reading=!1));return _(o)}function k(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&I(e)),N(e,t)}function E(e,t){var r;return f(t)||"string"===typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk")),r}function _(e){return!e.ended&&(e.needReadable||e.length=S?e=S:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function A(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=O(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function D(e,t){if(!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,I(e)}}function I(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(m("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(C,e):C(e))}function C(e){m("emit readable"),e.emit("readable"),q(e)}function N(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(R,e,t))}function R(e,t){var r=t.length;while(!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=U(e,t.buffer,t.decoder),r);var r}function U(e,t,r){var n;return es.length?s.length:e;if(o===s.length?i+=s:i+=s.slice(0,e),e-=o,0===e){o===s.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=s.slice(o));break}++n}return t.length-=n,i}function X(e,t){var r=u.allocUnsafe(e),n=t.head,i=1;n.data.copy(r),e-=n.data.length;while(n=n.next){var s=n.data,o=e>s.length?s.length:e;if(s.copy(r,r.length-e,0,o),e-=o,0===e){o===s.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=s.slice(o));break}++i}return t.length-=i,r}function V(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i.nextTick(W,t,e))}function W(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function z(e,t){for(var r=0,n=e.length;r=t.highWaterMark||t.ended))return m("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?V(this):I(this),null;if(e=A(e,t),0===e&&t.ended)return 0===t.length&&V(this),null;var n,i=t.needReadable;return m("need readable",i),(0===t.length||t.length-e0?F(e,t):null,null===n?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&V(this)),null!==n&&this.emit("data",n),n},x.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},x.prototype.pipe=function(e,r){var n=this,s=this._readableState;switch(s.pipesCount){case 0:s.pipes=e;break;case 1:s.pipes=[s.pipes,e];break;default:s.pipes.push(e);break}s.pipesCount+=1,m("pipe count=%d opts=%j",s.pipesCount,r);var o=(!r||!1!==r.end)&&e!==t.stdout&&e!==t.stderr,c=o?l:j;function u(e,t){m("onunpipe"),e===n&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,h())}function l(){m("onend"),e.end()}s.endEmitted?i.nextTick(c):n.once("end",c),e.on("unpipe",u);var p=M(n);e.on("drain",p);var f=!1;function h(){m("cleanup"),e.removeListener("close",g),e.removeListener("finish",v),e.removeListener("drain",p),e.removeListener("error",b),e.removeListener("unpipe",u),n.removeListener("end",l),n.removeListener("end",j),n.removeListener("data",y),f=!0,!s.awaitDrain||e._writableState&&!e._writableState.needDrain||p()}var d=!1;function y(t){m("ondata"),d=!1;var r=e.write(t);!1!==r||d||((1===s.pipesCount&&s.pipes===e||s.pipesCount>1&&-1!==z(s.pipes,e))&&!f&&(m("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,d=!0),n.pause())}function b(t){m("onerror",t),j(),e.removeListener("error",b),0===a(e,"error")&&e.emit("error",t)}function g(){e.removeListener("finish",v),j()}function v(){m("onfinish"),e.removeListener("close",g),j()}function j(){m("unpipe"),n.unpipe(e)}return n.on("data",y),w(e,"error",b),e.once("close",g),e.once("finish",v),e.emit("pipe",n),s.flowing||(m("pipe resume"),n.resume()),e},x.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var s=0;s-1?i:s.nextTick;w.WritableState=v;var u=Object.create(e("core-util-is"));u.inherits=e("inherits");var l={deprecate:e("util-deprecate")},p=e("./internal/streams/stream"),f=e("safe-buffer").Buffer,h=n.Uint8Array||function(){};function d(e){return f.from(e)}function m(e){return f.isBuffer(e)||e instanceof h}var y,b=e("./internal/streams/destroy");function g(){}function v(t,r){a=a||e("./_stream_duplex"),t=t||{};var n=r instanceof a;this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var i=t.highWaterMark,s=t.writableHighWaterMark,c=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(s||0===s)?s:c,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var u=!1===t.decodeStrings;this.decodeStrings=!u,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){O(r,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function w(t){if(a=a||e("./_stream_duplex"),!y.call(w,this)&&!(this instanceof a))return new w(t);this._writableState=new v(t,this),this.writable=!0,t&&("function"===typeof t.write&&(this._write=t.write),"function"===typeof t.writev&&(this._writev=t.writev),"function"===typeof t.destroy&&(this._destroy=t.destroy),"function"===typeof t.final&&(this._final=t.final)),p.call(this)}function j(e,t){var r=new Error("write after end");e.emit("error",r),s.nextTick(t,r)}function x(e,t,r,n){var i=!0,o=!1;return null===r?o=new TypeError("May not write null values to stream"):"string"===typeof r||void 0===r||t.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),s.nextTick(n,o),i=!1),i}function T(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!==typeof t||(t=f.from(t,r)),t}function k(e,t,r,n,i,s){if(!r){var o=T(t,n,i);n!==o&&(r=!0,i="buffer",n=o)}var a=t.objectMode?1:n.length;t.length+=a;var c=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(w.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),w.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},w.prototype._writev=null,w.prototype.end=function(e,t,r){var n=this._writableState;"function"===typeof e?(r=e,e=null,t=null):"function"===typeof t&&(r=t,t=null),null!==e&&void 0!==e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||P(this,n,r)},Object.defineProperty(w.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),w.prototype.destroy=b.destroy,w.prototype._undestroy=b.undestroy,w.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this)}).call(this,e("_process"),"undefined"!==typeof t?t:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{},e("timers").setImmediate)},{"./_stream_duplex":330,"./internal/streams/destroy":336,"./internal/streams/stream":337,_process:399,"core-util-is":298,inherits:311,"process-nextick-args":323,"safe-buffer":343,timers:347,"util-deprecate":349}],335:[function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=e("safe-buffer").Buffer,s=e("util");function o(e,t,r){e.copy(t,r)}t.exports=function(){function e(){n(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";var t=this.head,r=""+t.data;while(t=t.next)r+=e+t.data;return r},e.prototype.concat=function(e){if(0===this.length)return i.alloc(0);if(1===this.length)return this.head.data;var t=i.allocUnsafe(e>>>0),r=this.head,n=0;while(r)o(r.data,t,n),n+=r.data.length,r=r.next;return t},e}(),s&&s.inspect&&s.inspect.custom&&(t.exports.prototype[s.inspect.custom]=function(){var e=s.inspect({length:this.length});return this.constructor.name+" "+e})},{"safe-buffer":343,util:84}],336:[function(e,t,r){"use strict";var n=e("process-nextick-args");function i(e,t){var r=this,i=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return i||s?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||n.nextTick(o,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?(n.nextTick(o,r,e),r._writableState&&(r._writableState.errorEmitted=!0)):t&&t(e)})),this)}function s(){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.finished=!1,this._writableState.errorEmitted=!1)}function o(e,t){e.emit("error",t)}t.exports={destroy:i,undestroy:s}},{"process-nextick-args":323}],337:[function(e,t,r){t.exports=e("events").EventEmitter},{events:301}],338:[function(e,t,r){t.exports=e("./readable").PassThrough},{"./readable":339}],339:[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")},{"./lib/_stream_duplex.js":330,"./lib/_stream_passthrough.js":331,"./lib/_stream_readable.js":332,"./lib/_stream_transform.js":333,"./lib/_stream_writable.js":334}],340:[function(e,t,r){t.exports=e("./readable").Transform},{"./readable":339}],341:[function(e,t,r){t.exports=e("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":334}],342:[function(e,t,r){var n=function(e){"use strict";var t,r=Object.prototype,n=r.hasOwnProperty,i="function"===typeof Symbol?Symbol:{},s=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",a=i.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(C){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var i=t&&t.prototype instanceof y?t:y,s=Object.create(i.prototype),o=new A(n||[]);return s._invoke=E(e,r,o),s}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var p="suspendedStart",f="suspendedYield",h="executing",d="completed",m={};function y(){}function b(){}function g(){}var v={};c(v,s,(function(){return this}));var w=Object.getPrototypeOf,j=w&&w(w(D([])));j&&j!==r&&n.call(j,s)&&(v=j);var x=g.prototype=y.prototype=Object.create(v);function T(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(i,s,o,a){var c=l(e[i],e,s);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"===typeof p&&n.call(p,"__await")?t.resolve(p.__await).then((function(e){r("next",e,o,a)}),(function(e){r("throw",e,o,a)})):t.resolve(p).then((function(e){u.value=e,o(u)}),(function(e){return r("throw",e,o,a)}))}a(c.arg)}var i;function s(e,n){function s(){return new t((function(t,i){r(e,n,t,i)}))}return i=i?i.then(s,s):s()}this._invoke=s}function E(e,t,r){var n=p;return function(i,s){if(n===h)throw new Error("Generator is already running");if(n===d){if("throw"===i)throw s;return I()}r.method=i,r.arg=s;while(1){var o=r.delegate;if(o){var a=_(o,r);if(a){if(a===m)continue;return a}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===p)throw n=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var c=l(e,t,r);if("normal"===c.type){if(n=r.done?d:f,c.arg===m)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=d,r.method="throw",r.arg=c.arg)}}}function _(e,r){var n=e.iterator[r.method];if(n===t){if(r.delegate=null,"throw"===r.method){if(e.iterator["return"]&&(r.method="return",r.arg=t,_(e,r),"throw"===r.method))return m;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var i=l(n,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,m;var s=i.arg;return s?s.done?(r[e.resultName]=s.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):s:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function S(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 O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function D(e){if(e){var r=e[s];if(r)return r.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){while(++i=0;--s){var o=this.tryEntries[s],a=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(c&&u){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),O(r),m}},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;O(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:D(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}("object"===typeof t?t.exports:{});try{regeneratorRuntime=n}catch(i){"object"===typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},{}],343:[function(e,t,r){var n=e("buffer"),i=n.Buffer;function s(e,t){for(var r in e)t[r]=e[r]}function o(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(s(n,r),r.Buffer=o),s(i,o),o.from=function(e,t,r){if("number"===typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},o.alloc=function(e,t,r){if("number"!==typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"===typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},o.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return i(e)},o.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},{buffer:85}],344:[function(e,t,r){(function(t){(function(){(function(r){r.parser=function(e,t){return new s(e,t)},r.SAXParser=s,r.SAXStream=p,r.createStream=l,r.MAX_BUFFER_LENGTH=65536;var n,i=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function s(e,t){if(!(this instanceof s))return new s(e,t);var n=this;a(n),n.q=n.c="",n.bufferCheckPosition=r.MAX_BUFFER_LENGTH,n.opt=t||{},n.opt.lowercase=n.opt.lowercase||n.opt.lowercasetags,n.looseCase=n.opt.lowercase?"toLowerCase":"toUpperCase",n.tags=[],n.closed=n.closedRoot=n.sawRoot=!1,n.tag=n.error=null,n.strict=!!e,n.noscript=!(!e&&!n.opt.noscript),n.state=_.BEGIN,n.strictEntities=n.opt.strictEntities,n.ENTITIES=n.strictEntities?Object.create(r.XML_ENTITIES):Object.create(r.ENTITIES),n.attribList=[],n.opt.xmlns&&(n.ns=Object.create(y)),n.trackPosition=!1!==n.opt.position,n.trackPosition&&(n.position=n.line=n.column=0),O(n,"onready")}function o(e){for(var t=Math.max(r.MAX_BUFFER_LENGTH,10),n=0,s=0,o=i.length;st)switch(i[s]){case"textNode":D(e);break;case"cdata":A(e,"oncdata",e.cdata),e.cdata="";break;case"script":A(e,"onscript",e.script),e.script="";break;default:C(e,"Max buffer length exceeded: "+i[s])}n=Math.max(n,a)}var c=r.MAX_BUFFER_LENGTH-n;e.bufferCheckPosition=c+e.position}function a(e){for(var t=0,r=i.length;t"===e||j(e)}function k(e,t){return e.test(t)}function E(e,t){return!k(e,t)}var _=0;for(var S in r.STATE={BEGIN:_++,BEGIN_WHITESPACE:_++,TEXT:_++,TEXT_ENTITY:_++,OPEN_WAKA:_++,SGML_DECL:_++,SGML_DECL_QUOTED:_++,DOCTYPE:_++,DOCTYPE_QUOTED:_++,DOCTYPE_DTD:_++,DOCTYPE_DTD_QUOTED:_++,COMMENT_STARTING:_++,COMMENT:_++,COMMENT_ENDING:_++,COMMENT_ENDED:_++,CDATA:_++,CDATA_ENDING:_++,CDATA_ENDING_2:_++,PROC_INST:_++,PROC_INST_BODY:_++,PROC_INST_ENDING:_++,OPEN_TAG:_++,OPEN_TAG_SLASH:_++,ATTRIB:_++,ATTRIB_NAME:_++,ATTRIB_NAME_SAW_WHITE:_++,ATTRIB_VALUE:_++,ATTRIB_VALUE_QUOTED:_++,ATTRIB_VALUE_CLOSED:_++,ATTRIB_VALUE_UNQUOTED:_++,ATTRIB_VALUE_ENTITY_Q:_++,ATTRIB_VALUE_ENTITY_U:_++,CLOSE_TAG:_++,CLOSE_TAG_SAW_WHITE:_++,SCRIPT:_++,SCRIPT_ENDING:_++},r.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},r.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(r.ENTITIES).forEach((function(e){var t=r.ENTITIES[e],n="number"===typeof t?String.fromCharCode(t):t;r.ENTITIES[e]=n})),r.STATE)r.STATE[r.STATE[S]]=S;function O(e,t,r){e[t]&&e[t](r)}function A(e,t,r){e.textNode&&D(e),O(e,t,r)}function D(e){e.textNode=I(e.opt,e.textNode),e.textNode&&O(e,"ontext",e.textNode),e.textNode=""}function I(e,t){return e.trim&&(t=t.trim()),e.normalize&&(t=t.replace(/\s+/g," ")),t}function C(e,t){return D(e),e.trackPosition&&(t+="\nLine: "+e.line+"\nColumn: "+e.column+"\nChar: "+e.c),t=new Error(t),e.error=t,O(e,"onerror",t),e}function N(e){return e.sawRoot&&!e.closedRoot&&R(e,"Unclosed root tag"),e.state!==_.BEGIN&&e.state!==_.BEGIN_WHITESPACE&&e.state!==_.TEXT&&C(e,"Unexpected end"),D(e),e.c="",e.closed=!0,O(e,"onend"),s.call(e,e.strict,e.opt),e}function R(e,t){if("object"!==typeof e||!(e instanceof s))throw new Error("bad call to strictFail");e.strict&&C(e,t)}function M(e){e.strict||(e.tagName=e.tagName[e.looseCase]());var t=e.tags[e.tags.length-1]||e,r=e.tag={name:e.tagName,attributes:{}};e.opt.xmlns&&(r.ns=t.ns),e.attribList.length=0,A(e,"onopentagstart",r)}function P(e,t){var r=e.indexOf(":"),n=r<0?["",e]:e.split(":"),i=n[0],s=n[1];return t&&"xmlns"===e&&(i="xmlns",s=""),{prefix:i,local:s}}function L(e){if(e.strict||(e.attribName=e.attribName[e.looseCase]()),-1!==e.attribList.indexOf(e.attribName)||e.tag.attributes.hasOwnProperty(e.attribName))e.attribName=e.attribValue="";else{if(e.opt.xmlns){var t=P(e.attribName,!0),r=t.prefix,n=t.local;if("xmlns"===r)if("xml"===n&&e.attribValue!==d)R(e,"xml: prefix must be bound to "+d+"\nActual: "+e.attribValue);else if("xmlns"===n&&e.attribValue!==m)R(e,"xmlns: prefix must be bound to "+m+"\nActual: "+e.attribValue);else{var i=e.tag,s=e.tags[e.tags.length-1]||e;i.ns===s.ns&&(i.ns=Object.create(s.ns)),i.ns[n]=e.attribValue}e.attribList.push([e.attribName,e.attribValue])}else e.tag.attributes[e.attribName]=e.attribValue,A(e,"onattribute",{name:e.attribName,value:e.attribValue});e.attribName=e.attribValue=""}}function B(e,t){if(e.opt.xmlns){var r=e.tag,n=P(e.tagName);r.prefix=n.prefix,r.local=n.local,r.uri=r.ns[n.prefix]||"",r.prefix&&!r.uri&&(R(e,"Unbound namespace prefix: "+JSON.stringify(e.tagName)),r.uri=n.prefix);var i=e.tags[e.tags.length-1]||e;r.ns&&i.ns!==r.ns&&Object.keys(r.ns).forEach((function(t){A(e,"onopennamespace",{prefix:t,uri:r.ns[t]})}));for(var s=0,o=e.attribList.length;s",e.tagName="",void(e.state=_.SCRIPT);A(e,"onscript",e.script),e.script=""}var t=e.tags.length,r=e.tagName;e.strict||(r=r[e.looseCase]());var n=r;while(t--){var i=e.tags[t];if(i.name===n)break;R(e,"Unexpected close tag")}if(t<0)return R(e,"Unmatched closing tag: "+e.tagName),e.textNode+="",void(e.state=_.TEXT);e.tagName=r;var s=e.tags.length;while(s-- >t){var o=e.tag=e.tags.pop();e.tagName=e.tag.name,A(e,"onclosetag",e.tagName);var a={};for(var c in o.ns)a[c]=o.ns[c];var u=e.tags[e.tags.length-1]||e;e.opt.xmlns&&o.ns!==u.ns&&Object.keys(o.ns).forEach((function(t){var r=o.ns[t];A(e,"onclosenamespace",{prefix:t,uri:r})}))}0===t&&(e.closedRoot=!0),e.tagName=e.attribValue=e.attribName="",e.attribList.length=0,e.state=_.TEXT}function F(e){var t,r=e.entity,n=r.toLowerCase(),i="";return e.ENTITIES[r]?e.ENTITIES[r]:e.ENTITIES[n]?e.ENTITIES[n]:(r=n,"#"===r.charAt(0)&&("x"===r.charAt(1)?(r=r.slice(2),t=parseInt(r,16),i=t.toString(16)):(r=r.slice(1),t=parseInt(r,10),i=t.toString(10))),r=r.replace(/^0+/,""),isNaN(t)||i.toLowerCase()!==r?(R(e,"Invalid character entity"),"&"+e.entity+";"):String.fromCodePoint(t))}function U(e,t){"<"===t?(e.state=_.OPEN_WAKA,e.startTagPosition=e.position):j(t)||(R(e,"Non-whitespace before first tag."),e.textNode=t,e.state=_.TEXT)}function G(e,t){var r="";return t"===n?(A(t,"onsgmldeclaration",t.sgmlDecl),t.sgmlDecl="",t.state=_.TEXT):x(n)?(t.state=_.SGML_DECL_QUOTED,t.sgmlDecl+=n):t.sgmlDecl+=n;continue;case _.SGML_DECL_QUOTED:n===t.q&&(t.state=_.SGML_DECL,t.q=""),t.sgmlDecl+=n;continue;case _.DOCTYPE:">"===n?(t.state=_.TEXT,A(t,"ondoctype",t.doctype),t.doctype=!0):(t.doctype+=n,"["===n?t.state=_.DOCTYPE_DTD:x(n)&&(t.state=_.DOCTYPE_QUOTED,t.q=n));continue;case _.DOCTYPE_QUOTED:t.doctype+=n,n===t.q&&(t.q="",t.state=_.DOCTYPE);continue;case _.DOCTYPE_DTD:t.doctype+=n,"]"===n?t.state=_.DOCTYPE:x(n)&&(t.state=_.DOCTYPE_DTD_QUOTED,t.q=n);continue;case _.DOCTYPE_DTD_QUOTED:t.doctype+=n,n===t.q&&(t.state=_.DOCTYPE_DTD,t.q="");continue;case _.COMMENT:"-"===n?t.state=_.COMMENT_ENDING:t.comment+=n;continue;case _.COMMENT_ENDING:"-"===n?(t.state=_.COMMENT_ENDED,t.comment=I(t.opt,t.comment),t.comment&&A(t,"oncomment",t.comment),t.comment=""):(t.comment+="-"+n,t.state=_.COMMENT);continue;case _.COMMENT_ENDED:">"!==n?(R(t,"Malformed comment"),t.comment+="--"+n,t.state=_.COMMENT):t.state=_.TEXT;continue;case _.CDATA:"]"===n?t.state=_.CDATA_ENDING:t.cdata+=n;continue;case _.CDATA_ENDING:"]"===n?t.state=_.CDATA_ENDING_2:(t.cdata+="]"+n,t.state=_.CDATA);continue;case _.CDATA_ENDING_2:">"===n?(t.cdata&&A(t,"oncdata",t.cdata),A(t,"onclosecdata"),t.cdata="",t.state=_.TEXT):"]"===n?t.cdata+="]":(t.cdata+="]]"+n,t.state=_.CDATA);continue;case _.PROC_INST:"?"===n?t.state=_.PROC_INST_ENDING:j(n)?t.state=_.PROC_INST_BODY:t.procInstName+=n;continue;case _.PROC_INST_BODY:if(!t.procInstBody&&j(n))continue;"?"===n?t.state=_.PROC_INST_ENDING:t.procInstBody+=n;continue;case _.PROC_INST_ENDING:">"===n?(A(t,"onprocessinginstruction",{name:t.procInstName,body:t.procInstBody}),t.procInstName=t.procInstBody="",t.state=_.TEXT):(t.procInstBody+="?"+n,t.state=_.PROC_INST_BODY);continue;case _.OPEN_TAG:k(g,n)?t.tagName+=n:(M(t),">"===n?B(t):"/"===n?t.state=_.OPEN_TAG_SLASH:(j(n)||R(t,"Invalid character in tag name"),t.state=_.ATTRIB));continue;case _.OPEN_TAG_SLASH:">"===n?(B(t,!0),q(t)):(R(t,"Forward-slash in opening tag not followed by >"),t.state=_.ATTRIB);continue;case _.ATTRIB:if(j(n))continue;">"===n?B(t):"/"===n?t.state=_.OPEN_TAG_SLASH:k(b,n)?(t.attribName=n,t.attribValue="",t.state=_.ATTRIB_NAME):R(t,"Invalid attribute name");continue;case _.ATTRIB_NAME:"="===n?t.state=_.ATTRIB_VALUE:">"===n?(R(t,"Attribute without value"),t.attribValue=t.attribName,L(t),B(t)):j(n)?t.state=_.ATTRIB_NAME_SAW_WHITE:k(g,n)?t.attribName+=n:R(t,"Invalid attribute name");continue;case _.ATTRIB_NAME_SAW_WHITE:if("="===n)t.state=_.ATTRIB_VALUE;else{if(j(n))continue;R(t,"Attribute without value"),t.tag.attributes[t.attribName]="",t.attribValue="",A(t,"onattribute",{name:t.attribName,value:""}),t.attribName="",">"===n?B(t):k(b,n)?(t.attribName=n,t.state=_.ATTRIB_NAME):(R(t,"Invalid attribute name"),t.state=_.ATTRIB)}continue;case _.ATTRIB_VALUE:if(j(n))continue;x(n)?(t.q=n,t.state=_.ATTRIB_VALUE_QUOTED):(R(t,"Unquoted attribute value"),t.state=_.ATTRIB_VALUE_UNQUOTED,t.attribValue=n);continue;case _.ATTRIB_VALUE_QUOTED:if(n!==t.q){"&"===n?t.state=_.ATTRIB_VALUE_ENTITY_Q:t.attribValue+=n;continue}L(t),t.q="",t.state=_.ATTRIB_VALUE_CLOSED;continue;case _.ATTRIB_VALUE_CLOSED:j(n)?t.state=_.ATTRIB:">"===n?B(t):"/"===n?t.state=_.OPEN_TAG_SLASH:k(b,n)?(R(t,"No whitespace between attributes"),t.attribName=n,t.attribValue="",t.state=_.ATTRIB_NAME):R(t,"Invalid attribute name");continue;case _.ATTRIB_VALUE_UNQUOTED:if(!T(n)){"&"===n?t.state=_.ATTRIB_VALUE_ENTITY_U:t.attribValue+=n;continue}L(t),">"===n?B(t):t.state=_.ATTRIB;continue;case _.CLOSE_TAG:if(t.tagName)">"===n?q(t):k(g,n)?t.tagName+=n:t.script?(t.script+=""===n?q(t):R(t,"Invalid characters in closing tag");continue;case _.TEXT_ENTITY:case _.ATTRIB_VALUE_ENTITY_Q:case _.ATTRIB_VALUE_ENTITY_U:var a,c;switch(t.state){case _.TEXT_ENTITY:a=_.TEXT,c="textNode";break;case _.ATTRIB_VALUE_ENTITY_Q:a=_.ATTRIB_VALUE_QUOTED,c="attribValue";break;case _.ATTRIB_VALUE_ENTITY_U:a=_.ATTRIB_VALUE_UNQUOTED,c="attribValue";break}";"===n?(t[c]+=F(t),t.entity="",t.state=a):k(t.entity.length?w:v,n)?t.entity+=n:(R(t,"Invalid character in entity name"),t[c]+="&"+t.entity+n,t.entity="",t.state=a);continue;default:throw new Error(t,"Unknown state: "+t.state)}}return t.position>=t.bufferCheckPosition&&o(t),t} /*! http://mths.be/fromcodepoint v0.1.0 by @mathias */_=r.STATE,String.fromCodePoint||function(){var e=String.fromCharCode,t=Math.floor,r=function(){var r,n,i=16384,s=[],o=-1,a=arguments.length;if(!a)return"";var c="";while(++o1114111||t(u)!==u)throw RangeError("Invalid code point: "+u);u<=65535?s.push(u):(u-=65536,r=55296+(u>>10),n=u%1024+56320,s.push(r,n)),(o+1===a||s.length>i)&&(c+=e.apply(null,s),s.length=0)}return c};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:r,configurable:!0,writable:!0}):String.fromCodePoint=r}()})("undefined"===typeof r?this.sax={}:r)}).call(this)}).call(this,e("buffer").Buffer)},{buffer:85,stream:345,string_decoder:86}],345:[function(e,t,r){t.exports=s;var n=e("events").EventEmitter,i=e("inherits");function s(){n.call(this)}i(s,n),s.Readable=e("readable-stream/readable.js"),s.Writable=e("readable-stream/writable.js"),s.Duplex=e("readable-stream/duplex.js"),s.Transform=e("readable-stream/transform.js"),s.PassThrough=e("readable-stream/passthrough.js"),s.Stream=s,s.prototype.pipe=function(e,t){var r=this;function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function s(){r.readable&&r.resume&&r.resume()}r.on("data",i),e.on("drain",s),e._isStdio||t&&!1===t.end||(r.on("end",a),r.on("close",c));var o=!1;function a(){o||(o=!0,e.end())}function c(){o||(o=!0,"function"===typeof e.destroy&&e.destroy())}function u(e){if(l(),0===n.listenerCount(this,"error"))throw e}function l(){r.removeListener("data",i),e.removeListener("drain",s),r.removeListener("end",a),r.removeListener("close",c),r.removeListener("error",u),e.removeListener("error",u),r.removeListener("end",l),r.removeListener("close",l),e.removeListener("close",l)}return r.on("error",u),e.on("error",u),r.on("end",l),r.on("close",l),e.on("close",l),e.emit("pipe",r),e}},{events:301,inherits:311,"readable-stream/duplex.js":329,"readable-stream/passthrough.js":338,"readable-stream/readable.js":339,"readable-stream/transform.js":340,"readable-stream/writable.js":341}],346:[function(e,t,r){"use strict";var n=e("safe-buffer").Buffer,i=n.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function s(e){if(!e)return"utf8";var t;while(1)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function o(e){var t=s(e);if("string"!==typeof t&&(n.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}function a(e){var t;switch(this.encoding=o(e),this.encoding){case"utf16le":this.text=d,this.end=m,t=4;break;case"utf8":this.fillLast=p,t=4;break;case"base64":this.text=y,this.end=b,t=3;break;default:return this.write=g,void(this.end=v)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function c(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function u(e,t,r){var n=t.length-1;if(n=0?(i>0&&(e.lastNeed=i-1),i):--n=0?(i>0&&(e.lastNeed=i-2),i):--n=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0))}function l(e,t,r){if(128!==(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!==(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!==(192&t[2]))return e.lastNeed=2,"�"}}function p(e){var t=this.lastTotal-this.lastNeed,r=l(this,e,t);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function f(e,t){var r=u(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function h(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function d(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function m(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function y(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function b(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function g(e){return e.toString(this.encoding)}function v(e){return e&&e.length?this.write(e):""}r.StringDecoder=a,a.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(t=this.fillLast(e),void 0===t)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},r.setImmediate="function"===typeof t?t:function(e){var t=c++,n=!(arguments.length<2)&&o.call(arguments,1);return a[t]=!0,i((function(){a[t]&&(n?e.apply(null,n):e.call(null),r.clearImmediate(t))})),t},r.clearImmediate="function"===typeof n?n:function(e){delete a[e]}}).call(this)}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":324,timers:347}],348:[function(e,t,r){var n=e("buffer").Buffer;t.exports=function(e){if(e instanceof Uint8Array){if(0===e.byteOffset&&e.byteLength===e.buffer.byteLength)return e.buffer;if("function"===typeof e.buffer.slice)return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}if(n.isBuffer(e)){for(var t=new Uint8Array(e.length),r=e.length,i=0;i=0||e.indexOf(">")>=0||e.indexOf("<")>=0)},o=function(e){return""},i=function(e){return e.replace("]]>","]]]]>")},r.Builder=function(){function e(e){var t,r,i;for(t in this.options={},r=n["0.2"],r)a.call(r,t)&&(i=r[t],this.options[t]=i);for(t in e)a.call(e,t)&&(i=e[t],this.options[t]=i)}return e.prototype.buildObject=function(e){var r,i,c,u,l;return r=this.options.attrkey,i=this.options.charkey,1===Object.keys(e).length&&this.options.rootName===n["0.2"].rootName?(l=Object.keys(e)[0],e=e[l]):l=this.options.rootName,c=function(e){return function(t,n){var u,l,p,f,h,d;if("object"!==typeof n)e.options.cdata&&s(n)?t.raw(o(n)):t.txt(n);else if(Array.isArray(n)){for(f in n)if(a.call(n,f))for(h in l=n[f],l)p=l[h],t=c(t.ele(h),p).up()}else for(h in n)if(a.call(n,h))if(l=n[h],h===r){if("object"===typeof l)for(u in l)d=l[u],t=t.att(u,d)}else if(h===i)t=e.options.cdata&&s(l)?t.raw(o(l)):t.txt(l);else if(Array.isArray(l))for(f in l)a.call(l,f)&&(p=l[f],t="string"===typeof p?e.options.cdata&&s(p)?t.ele(h).raw(o(p)).up():t.ele(h,p).up():c(t.ele(h),p).up());else"object"===typeof l?t=c(t.ele(h),l).up():"string"===typeof l&&e.options.cdata&&s(l)?t=t.ele(h).raw(o(l)).up():(null==l&&(l=""),t=t.ele(h,l.toString()).up());return t}}(this),u=t.create(l,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),c(u,e).end(this.options.renderOpts)},e}()}).call(this)},{"./defaults":355,xmlbuilder:391}],355:[function(e,t,r){(function(){r.defaults={.1:{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},.2:{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:"\n"},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(this)},{}],356:[function(e,t,r){(function(){"use strict";var t,n,i,s,o,a,c,u,l=function(e,t){return function(){return e.apply(t,arguments)}},p=function(e,t){for(var r in t)f.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},f={}.hasOwnProperty;c=e("sax"),i=e("events"),t=e("./bom"),a=e("./processors"),u=e("timers").setImmediate,n=e("./defaults").defaults,s=function(e){return"object"===typeof e&&null!=e&&0===Object.keys(e).length},o=function(e,t,r){var n,i,s;for(n=0,i=e.length;n0&&(c[e.options.childkey]=l),l=c;return n.length>0?e.assignOrPush(d,u,l):(e.options.explicitRoot&&(h=l,l={},l[u]=h),e.resultObject=l,e.saxParser.ended=!0,e.emit("end",e.resultObject))}}(this),r=function(e){return function(r){var i,s;if(s=n[n.length-1],s)return s[t]+=r,e.options.explicitChildren&&e.options.preserveChildrenOrder&&e.options.charsAsChildren&&(e.options.includeWhiteChars||""!==r.replace(/\\n/g,"").trim())&&(s[e.options.childkey]=s[e.options.childkey]||[],i={"#name":"__text__"},i[t]=r,e.options.normalize&&(i[t]=i[t].replace(/\s{2,}/g," ").trim()),s[e.options.childkey].push(i)),s}}(this),this.saxParser.ontext=r,this.saxParser.oncdata=function(e){return function(e){var t;if(t=r(e),t)return t.cdata=!0}}()},i.prototype.parseString=function(e,r){var n;null!=r&&"function"===typeof r&&(this.on("end",(function(e){return this.reset(),r(null,e)})),this.on("error",(function(e){return this.reset(),r(e)})));try{return e=e.toString(),""===e.trim()?(this.emit("end",null),!0):(e=t.stripBOM(e),this.options.async?(this.remaining=e,u(this.processAsync),this.saxParser):this.saxParser.write(e).close())}catch(i){if(n=i,!this.saxParser.errThrown&&!this.saxParser.ended)return this.emit("error",n),this.saxParser.errThrown=!0;if(this.saxParser.ended)throw n}},i.prototype.parseStringPromise=function(e){return new Promise(function(t){return function(r,n){return t.parseString(e,(function(e,t){return e?n(e):r(t)}))}}(this))},i}(i),r.parseString=function(e,t,n){var i,s,o;return null!=n?("function"===typeof n&&(i=n),"object"===typeof t&&(s=t)):("function"===typeof t&&(i=t),s={}),o=new r.Parser(s),o.parseString(e,i)},r.parseStringPromise=function(e,t){var n,i;return"object"===typeof t&&(n=t),i=new r.Parser(n),i.parseStringPromise(e)}}).call(this)},{"./bom":353,"./defaults":355,"./processors":357,events:301,sax:344,timers:347}],357:[function(e,t,r){(function(){"use strict";var e;e=new RegExp(/(?!xmlns)^.*:/),r.normalize=function(e){return e.toLowerCase()},r.firstCharLowerCase=function(e){return e.charAt(0).toLowerCase()+e.slice(1)},r.stripPrefix=function(t){return t.replace(e,"")},r.parseNumbers=function(e){return isNaN(e)||(e=e%1===0?parseInt(e,10):parseFloat(e)),e},r.parseBooleans=function(e){return/^(?:true|false)$/i.test(e)&&(e="true"===e.toLowerCase()),e}}).call(this)},{}],358:[function(e,t,r){(function(){"use strict";var t,n,i,s,o=function(e,t){for(var r in t)a.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},a={}.hasOwnProperty;n=e("./defaults"),t=e("./builder"),i=e("./parser"),s=e("./processors"),r.defaults=n.defaults,r.processors=s,r.ValidationError=function(e){function t(e){this.message=e}return o(t,e),t}(Error),r.Builder=t.Builder,r.Parser=i.Parser,r.parseString=i.parseString,r.parseStringPromise=i.parseStringPromise}).call(this)},{"./builder":354,"./defaults":355,"./parser":356,"./processors":357}],359:[function(e,t,r){(function(){t.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},{}],360:[function(e,t,r){(function(){t.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(this)},{}],361:[function(e,t,r){(function(){var e,r,n,i,s,o,a,c=[].slice,u={}.hasOwnProperty;e=function(){var e,t,r,n,i,o;if(o=arguments[0],i=2<=arguments.length?c.call(arguments,1):[],s(Object.assign))Object.assign.apply(null,arguments);else for(e=0,r=i.length;e":"attribute: {"+e+"}, parent: <"+this.parent.name+">"},e.prototype.isEqualNode=function(e){return e.namespaceURI===this.namespaceURI&&(e.prefix===this.prefix&&(e.localName===this.localName&&e.value===this.value))},e}()}).call(this)},{"./NodeType":360,"./XMLNode":382}],364:[function(e,t,r){(function(){var r,n,i=function(e,t){for(var r in t)s.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},s={}.hasOwnProperty;r=e("./NodeType"),n=e("./XMLCharacterData"),t.exports=function(e){function t(e,n){if(t.__super__.constructor.call(this,e),null==n)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=r.CData,this.value=this.stringify.cdata(n)}return i(t,e),t.prototype.clone=function(){return Object.create(this)},t.prototype.toString=function(e){return this.options.writer.cdata(this,this.options.writer.filterOptions(e))},t}(n)}).call(this)},{"./NodeType":360,"./XMLCharacterData":365}],365:[function(e,t,r){(function(){var r,n=function(e,t){for(var r in t)i.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},i={}.hasOwnProperty;r=e("./XMLNode"),t.exports=function(e){function t(e){t.__super__.constructor.call(this,e),this.value=""}return n(t,e),Object.defineProperty(t.prototype,"data",{get:function(){return this.value},set:function(e){return this.value=e||""}}),Object.defineProperty(t.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(t.prototype,"textContent",{get:function(){return this.value},set:function(e){return this.value=e||""}}),t.prototype.clone=function(){return Object.create(this)},t.prototype.substringData=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.appendData=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.insertData=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.deleteData=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.replaceData=function(e,t,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.isEqualNode=function(e){return!!t.__super__.isEqualNode.apply(this,arguments).isEqualNode(e)&&e.data===this.data},t}(r)}).call(this)},{"./XMLNode":382}],366:[function(e,t,r){(function(){var r,n,i=function(e,t){for(var r in t)s.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},s={}.hasOwnProperty;r=e("./NodeType"),n=e("./XMLCharacterData"),t.exports=function(e){function t(e,n){if(t.__super__.constructor.call(this,e),null==n)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=r.Comment,this.value=this.stringify.comment(n)}return i(t,e),t.prototype.clone=function(){return Object.create(this)},t.prototype.toString=function(e){return this.options.writer.comment(this,this.options.writer.filterOptions(e))},t}(n)}).call(this)},{"./NodeType":360,"./XMLCharacterData":365}],367:[function(e,t,r){(function(){var r,n;r=e("./XMLDOMErrorHandler"),n=e("./XMLDOMStringList"),t.exports=function(){function e(){this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new r,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=Object.create(this.defaultParams)}return Object.defineProperty(e.prototype,"parameterNames",{get:function(){return new n(Object.keys(this.defaultParams))}}),e.prototype.getParameter=function(e){return this.params.hasOwnProperty(e)?this.params[e]:null},e.prototype.canSetParameter=function(e,t){return!0},e.prototype.setParameter=function(e,t){return null!=t?this.params[e]=t:delete this.params[e]},e}()}).call(this)},{"./XMLDOMErrorHandler":368,"./XMLDOMStringList":370}],368:[function(e,t,r){(function(){t.exports=function(){function e(){}return e.prototype.handleError=function(e){throw new Error(e)},e}()}).call(this)},{}],369:[function(e,t,r){(function(){t.exports=function(){function e(){}return e.prototype.hasFeature=function(e,t){return!0},e.prototype.createDocumentType=function(e,t,r){throw new Error("This DOM method is not implemented.")},e.prototype.createDocument=function(e,t,r){throw new Error("This DOM method is not implemented.")},e.prototype.createHTMLDocument=function(e){throw new Error("This DOM method is not implemented.")},e.prototype.getFeature=function(e,t){throw new Error("This DOM method is not implemented.")},e}()}).call(this)},{}],370:[function(e,t,r){(function(){t.exports=function(){function e(e){this.arr=e||[]}return Object.defineProperty(e.prototype,"length",{get:function(){return this.arr.length}}),e.prototype.item=function(e){return this.arr[e]||null},e.prototype.contains=function(e){return-1!==this.arr.indexOf(e)},e}()}).call(this)},{}],371:[function(e,t,r){(function(){var r,n,i=function(e,t){for(var r in t)s.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},s={}.hasOwnProperty;n=e("./XMLNode"),r=e("./NodeType"),t.exports=function(e){function t(e,n,i,s,o,a){if(t.__super__.constructor.call(this,e),null==n)throw new Error("Missing DTD element name. "+this.debugInfo());if(null==i)throw new Error("Missing DTD attribute name. "+this.debugInfo(n));if(!s)throw new Error("Missing DTD attribute type. "+this.debugInfo(n));if(!o)throw new Error("Missing DTD attribute default. "+this.debugInfo(n));if(0!==o.indexOf("#")&&(o="#"+o),!o.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(n));if(a&&!o.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(n));this.elementName=this.stringify.name(n),this.type=r.AttributeDeclaration,this.attributeName=this.stringify.name(i),this.attributeType=this.stringify.dtdAttType(s),a&&(this.defaultValue=this.stringify.dtdAttDefault(a)),this.defaultValueType=o}return i(t,e),t.prototype.toString=function(e){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(e))},t}(n)}).call(this)},{"./NodeType":360,"./XMLNode":382}],372:[function(e,t,r){(function(){var r,n,i=function(e,t){for(var r in t)s.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},s={}.hasOwnProperty;n=e("./XMLNode"),r=e("./NodeType"),t.exports=function(e){function t(e,n,i){if(t.__super__.constructor.call(this,e),null==n)throw new Error("Missing DTD element name. "+this.debugInfo());i||(i="(#PCDATA)"),Array.isArray(i)&&(i="("+i.join(",")+")"),this.name=this.stringify.name(n),this.type=r.ElementDeclaration,this.value=this.stringify.dtdElementValue(i)}return i(t,e),t.prototype.toString=function(e){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(e))},t}(n)}).call(this)},{"./NodeType":360,"./XMLNode":382}],373:[function(e,t,r){(function(){var r,n,i,s=function(e,t){for(var r in t)o.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},o={}.hasOwnProperty;i=e("./Utility").isObject,n=e("./XMLNode"),r=e("./NodeType"),t.exports=function(e){function t(e,n,s,o){if(t.__super__.constructor.call(this,e),null==s)throw new Error("Missing DTD entity name. "+this.debugInfo(s));if(null==o)throw new Error("Missing DTD entity value. "+this.debugInfo(s));if(this.pe=!!n,this.name=this.stringify.name(s),this.type=r.EntityDeclaration,i(o)){if(!o.pubID&&!o.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(s));if(o.pubID&&!o.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(s));if(this.internal=!1,null!=o.pubID&&(this.pubID=this.stringify.dtdPubID(o.pubID)),null!=o.sysID&&(this.sysID=this.stringify.dtdSysID(o.sysID)),null!=o.nData&&(this.nData=this.stringify.dtdNData(o.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(s))}else this.value=this.stringify.dtdEntityValue(o),this.internal=!0}return s(t,e),Object.defineProperty(t.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(t.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(t.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(t.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(t.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(t.prototype,"xmlVersion",{get:function(){return null}}),t.prototype.toString=function(e){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(e))},t}(n)}).call(this)},{"./NodeType":360,"./Utility":361,"./XMLNode":382}],374:[function(e,t,r){(function(){var r,n,i=function(e,t){for(var r in t)s.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},s={}.hasOwnProperty;n=e("./XMLNode"),r=e("./NodeType"),t.exports=function(e){function t(e,n,i){if(t.__super__.constructor.call(this,e),null==n)throw new Error("Missing DTD notation name. "+this.debugInfo(n));if(!i.pubID&&!i.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(n));this.name=this.stringify.name(n),this.type=r.NotationDeclaration,null!=i.pubID&&(this.pubID=this.stringify.dtdPubID(i.pubID)),null!=i.sysID&&(this.sysID=this.stringify.dtdSysID(i.sysID))}return i(t,e),Object.defineProperty(t.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(t.prototype,"systemId",{get:function(){return this.sysID}}),t.prototype.toString=function(e){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(e))},t}(n)}).call(this)},{"./NodeType":360,"./XMLNode":382}],375:[function(e,t,r){(function(){var r,n,i,s=function(e,t){for(var r in t)o.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},o={}.hasOwnProperty;i=e("./Utility").isObject,n=e("./XMLNode"),r=e("./NodeType"),t.exports=function(e){function t(e,n,s,o){var a;t.__super__.constructor.call(this,e),i(n)&&(a=n,n=a.version,s=a.encoding,o=a.standalone),n||(n="1.0"),this.type=r.Declaration,this.version=this.stringify.xmlVersion(n),null!=s&&(this.encoding=this.stringify.xmlEncoding(s)),null!=o&&(this.standalone=this.stringify.xmlStandalone(o))}return s(t,e),t.prototype.toString=function(e){return this.options.writer.declaration(this,this.options.writer.filterOptions(e))},t}(n)}).call(this)},{"./NodeType":360,"./Utility":361,"./XMLNode":382}],376:[function(e,t,r){(function(){var r,n,i,s,o,a,c,u,l=function(e,t){for(var r in t)p.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},p={}.hasOwnProperty;u=e("./Utility").isObject,c=e("./XMLNode"),r=e("./NodeType"),n=e("./XMLDTDAttList"),s=e("./XMLDTDEntity"),i=e("./XMLDTDElement"),o=e("./XMLDTDNotation"),a=e("./XMLNamedNodeMap"),t.exports=function(e){function t(e,n,i){var s,o,a,c,l,p;if(t.__super__.constructor.call(this,e),this.type=r.DocType,e.children)for(c=e.children,o=0,a=c.length;o=0)this.up();return this.onEnd()},e.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},e.prototype.openNode=function(e){var t,i,s,o;if(!e.isOpen){if(this.root||0!==this.currentLevel||e.type!==r.Element||(this.root=e),i="",e.type===r.Element){for(s in this.writerOptions.state=n.OpenTag,i=this.writer.indent(e,this.writerOptions,this.currentLevel)+"<"+e.name,o=e.attribs,o)E.call(o,s)&&(t=o[s],i+=this.writer.attribute(t,this.writerOptions,this.currentLevel));i+=(e.children?">":"/>")+this.writer.endline(e,this.writerOptions,this.currentLevel),this.writerOptions.state=n.InsideTag}else this.writerOptions.state=n.OpenTag,i=this.writer.indent(e,this.writerOptions,this.currentLevel)+""),i+=this.writer.endline(e,this.writerOptions,this.currentLevel);return this.onData(i,this.currentLevel),e.isOpen=!0}},e.prototype.closeNode=function(e){var t;if(!e.isClosed)return t="",this.writerOptions.state=n.CloseTag,t=e.type===r.Element?this.writer.indent(e,this.writerOptions,this.currentLevel)+""+this.writer.endline(e,this.writerOptions,this.currentLevel):this.writer.indent(e,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(e,this.writerOptions,this.currentLevel),this.writerOptions.state=n.None,this.onData(t,this.currentLevel),e.isClosed=!0},e.prototype.onData=function(e,t){return this.documentStarted=!0,this.onDataCallback(e,t+1)},e.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},e.prototype.debugInfo=function(e){return null==e?"":"node: <"+e+">"},e.prototype.ele=function(){return this.element.apply(this,arguments)},e.prototype.nod=function(e,t,r){return this.node(e,t,r)},e.prototype.txt=function(e){return this.text(e)},e.prototype.dat=function(e){return this.cdata(e)},e.prototype.com=function(e){return this.comment(e)},e.prototype.ins=function(e,t){return this.instruction(e,t)},e.prototype.dec=function(e,t,r){return this.declaration(e,t,r)},e.prototype.dtd=function(e,t,r){return this.doctype(e,t,r)},e.prototype.e=function(e,t,r){return this.element(e,t,r)},e.prototype.n=function(e,t,r){return this.node(e,t,r)},e.prototype.t=function(e){return this.text(e)},e.prototype.d=function(e){return this.cdata(e)},e.prototype.c=function(e){return this.comment(e)},e.prototype.r=function(e){return this.raw(e)},e.prototype.i=function(e,t){return this.instruction(e,t)},e.prototype.att=function(){return this.currentNode&&this.currentNode.type===r.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},e.prototype.a=function(){return this.currentNode&&this.currentNode.type===r.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},e.prototype.ent=function(e,t){return this.entity(e,t)},e.prototype.pent=function(e,t){return this.pEntity(e,t)},e.prototype.not=function(e,t){return this.notation(e,t)},e}()}).call(this)},{"./NodeType":360,"./Utility":361,"./WriterState":362,"./XMLAttribute":363,"./XMLCData":364,"./XMLComment":366,"./XMLDTDAttList":371,"./XMLDTDElement":372,"./XMLDTDEntity":373,"./XMLDTDNotation":374,"./XMLDeclaration":375,"./XMLDocType":376,"./XMLDocument":377,"./XMLElement":380,"./XMLProcessingInstruction":384,"./XMLRaw":385,"./XMLStringWriter":387,"./XMLStringifier":388,"./XMLText":389}],379:[function(e,t,r){(function(){var r,n,i=function(e,t){for(var r in t)s.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},s={}.hasOwnProperty;n=e("./XMLNode"),r=e("./NodeType"),t.exports=function(e){function t(e){t.__super__.constructor.call(this,e),this.type=r.Dummy}return i(t,e),t.prototype.clone=function(){return Object.create(this)},t.prototype.toString=function(e){return""},t}(n)}).call(this)},{"./NodeType":360,"./XMLNode":382}],380:[function(e,t,r){(function(){var r,n,i,s,o,a,c,u,l=function(e,t){for(var r in t)p.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},p={}.hasOwnProperty;u=e("./Utility"),c=u.isObject,a=u.isFunction,o=u.getValue,s=e("./XMLNode"),r=e("./NodeType"),n=e("./XMLAttribute"),i=e("./XMLNamedNodeMap"),t.exports=function(e){function t(e,n,i){var s,o,a,c;if(t.__super__.constructor.call(this,e),null==n)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(n),this.type=r.Element,this.attribs={},this.schemaTypeInfo=null,null!=i&&this.attribute(i),e.type===r.Document&&(this.isRoot=!0,this.documentObject=e,e.rootObject=this,e.children))for(c=e.children,o=0,a=c.length;o=i;r=0<=i?++n:--n)if(!this.attribs[r].isEqualNode(e.attribs[r]))return!1;return!0},t}(s)}).call(this)},{"./NodeType":360,"./Utility":361,"./XMLAttribute":363,"./XMLNamedNodeMap":381,"./XMLNode":382}],381:[function(e,t,r){(function(){t.exports=function(){function e(e){this.nodes=e}return Object.defineProperty(e.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),e.prototype.clone=function(){return this.nodes=null},e.prototype.getNamedItem=function(e){return this.nodes[e]},e.prototype.setNamedItem=function(e){var t;return t=this.nodes[e.nodeName],this.nodes[e.nodeName]=e,t||null},e.prototype.removeNamedItem=function(e){var t;return t=this.nodes[e],delete this.nodes[e],t||null},e.prototype.item=function(e){return this.nodes[Object.keys(this.nodes)[e]]||null},e.prototype.getNamedItemNS=function(e,t){throw new Error("This DOM method is not implemented.")},e.prototype.setNamedItemNS=function(e){throw new Error("This DOM method is not implemented.")},e.prototype.removeNamedItemNS=function(e,t){throw new Error("This DOM method is not implemented.")},e}()}).call(this)},{}],382:[function(e,t,r){(function(){var r,n,i,s,o,a,c,u,l,p,f,h,d,m,y,b,g,v={}.hasOwnProperty;g=e("./Utility"),b=g.isObject,y=g.isFunction,m=g.isEmpty,d=g.getValue,u=null,i=null,s=null,o=null,a=null,f=null,h=null,p=null,c=null,n=null,l=null,r=null,t.exports=function(){function t(t){this.parent=t,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,u||(u=e("./XMLElement"),i=e("./XMLCData"),s=e("./XMLComment"),o=e("./XMLDeclaration"),a=e("./XMLDocType"),f=e("./XMLRaw"),h=e("./XMLText"),p=e("./XMLProcessingInstruction"),c=e("./XMLDummy"),n=e("./NodeType"),l=e("./XMLNodeList"),e("./XMLNamedNodeMap"),r=e("./DocumentPosition"))}return Object.defineProperty(t.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(t.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.childNodeList&&this.childNodeList.nodes||(this.childNodeList=new l(this.children)),this.childNodeList}}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(t.prototype,"previousSibling",{get:function(){var e;return e=this.parent.children.indexOf(this),this.parent.children[e-1]||null}}),Object.defineProperty(t.prototype,"nextSibling",{get:function(){var e;return e=this.parent.children.indexOf(this),this.parent.children[e+1]||null}}),Object.defineProperty(t.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(t.prototype,"textContent",{get:function(){var e,t,r,i,s;if(this.nodeType===n.Element||this.nodeType===n.DocumentFragment){for(s="",i=this.children,t=0,r=i.length;t":(null!=(r=this.parent)?r.name:void 0)?"node: <"+e+">, parent: <"+this.parent.name+">":"node: <"+e+">":""},t.prototype.ele=function(e,t,r){return this.element(e,t,r)},t.prototype.nod=function(e,t,r){return this.node(e,t,r)},t.prototype.txt=function(e){return this.text(e)},t.prototype.dat=function(e){return this.cdata(e)},t.prototype.com=function(e){return this.comment(e)},t.prototype.ins=function(e,t){return this.instruction(e,t)},t.prototype.doc=function(){return this.document()},t.prototype.dec=function(e,t,r){return this.declaration(e,t,r)},t.prototype.e=function(e,t,r){return this.element(e,t,r)},t.prototype.n=function(e,t,r){return this.node(e,t,r)},t.prototype.t=function(e){return this.text(e)},t.prototype.d=function(e){return this.cdata(e)},t.prototype.c=function(e){return this.comment(e)},t.prototype.r=function(e){return this.raw(e)},t.prototype.i=function(e,t){return this.instruction(e,t)},t.prototype.u=function(){return this.up()},t.prototype.importXMLBuilder=function(e){return this.importDocument(e)},t.prototype.replaceChild=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.removeChild=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.appendChild=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.hasChildNodes=function(){return 0!==this.children.length},t.prototype.cloneNode=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.isSupported=function(e,t){return!0},t.prototype.hasAttributes=function(){return 0!==this.attribs.length},t.prototype.compareDocumentPosition=function(e){var t,n;return t=this,t===e?0:this.document()!==e.document()?(n=r.Disconnected|r.ImplementationSpecific,Math.random()<.5?n|=r.Preceding:n|=r.Following,n):t.isAncestor(e)?r.Contains|r.Preceding:t.isDescendant(e)?r.Contains|r.Following:t.isPreceding(e)?r.Preceding:r.Following},t.prototype.isSameNode=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.lookupPrefix=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.isDefaultNamespace=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.lookupNamespaceURI=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.isEqualNode=function(e){var t,r,n;if(e.nodeType!==this.nodeType)return!1;if(e.children.length!==this.children.length)return!1;for(t=r=0,n=this.children.length-1;0<=n?r<=n:r>=n;t=0<=n?++r:--r)if(!this.children[t].isEqualNode(e.children[t]))return!1;return!0},t.prototype.getFeature=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.setUserData=function(e,t,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.getUserData=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},t.prototype.contains=function(e){return!!e&&(e===this||this.isDescendant(e))},t.prototype.isDescendant=function(e){var t,r,n,i,s;for(s=this.children,n=0,i=s.length;nr},t.prototype.treePosition=function(e){var t,r;return r=0,t=!1,this.foreachTreeNode(this.document(),(function(n){if(r++,!t&&n===e)return t=!0})),t?r:-1},t.prototype.foreachTreeNode=function(e,t){var r,n,i,s,o;for(e||(e=this.document()),s=e.children,n=0,i=s.length;n0){for(this.stream.write(" ["),this.stream.write(this.endline(e,t,r)),t.state=n.InsideTag,a=e.children,s=0,o=a.length;s"),this.stream.write(this.endline(e,t,r)),t.state=n.None,this.closeNode(e,t,r)},t.prototype.element=function(e,t,i){var s,a,c,u,l,p,f,h,d;for(f in i||(i=0),this.openNode(e,t,i),t.state=n.OpenTag,this.stream.write(this.indent(e,t,i)+"<"+e.name),h=e.attribs,h)o.call(h,f)&&(s=h[f],this.attribute(s,t,i));if(c=e.children.length,u=0===c?null:e.children[0],0===c||e.children.every((function(e){return(e.type===r.Text||e.type===r.Raw)&&""===e.value})))t.allowEmpty?(this.stream.write(">"),t.state=n.CloseTag,this.stream.write("")):(t.state=n.CloseTag,this.stream.write(t.spaceBeforeSlash+"/>"));else if(!t.pretty||1!==c||u.type!==r.Text&&u.type!==r.Raw||null==u.value){for(this.stream.write(">"+this.endline(e,t,i)),t.state=n.InsideTag,d=e.children,l=0,p=d.length;l")}else this.stream.write(">"),t.state=n.InsideTag,t.suppressPrettyCount++,!0,this.writeChildNode(u,t,i+1),t.suppressPrettyCount--,!1,t.state=n.CloseTag,this.stream.write("");return this.stream.write(this.endline(e,t,i)),t.state=n.None,this.closeNode(e,t,i)},t.prototype.processingInstruction=function(e,r,n){return this.stream.write(t.__super__.processingInstruction.call(this,e,r,n))},t.prototype.raw=function(e,r,n){return this.stream.write(t.__super__.raw.call(this,e,r,n))},t.prototype.text=function(e,r,n){return this.stream.write(t.__super__.text.call(this,e,r,n))},t.prototype.dtdAttList=function(e,r,n){return this.stream.write(t.__super__.dtdAttList.call(this,e,r,n))},t.prototype.dtdElement=function(e,r,n){return this.stream.write(t.__super__.dtdElement.call(this,e,r,n))},t.prototype.dtdEntity=function(e,r,n){return this.stream.write(t.__super__.dtdEntity.call(this,e,r,n))},t.prototype.dtdNotation=function(e,r,n){return this.stream.write(t.__super__.dtdNotation.call(this,e,r,n))},t}(i)}).call(this)},{"./NodeType":360,"./WriterState":362,"./XMLWriterBase":390}],387:[function(e,t,r){(function(){var r,n=function(e,t){for(var r in t)i.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},i={}.hasOwnProperty;r=e("./XMLWriterBase"),t.exports=function(e){function t(e){t.__super__.constructor.call(this,e)}return n(t,e),t.prototype.document=function(e,t){var r,n,i,s,o;for(t=this.filterOptions(t),s="",o=e.children,n=0,i=o.length;n","]]]]>"),this.assertLegalChar(e))},t.prototype.comment=function(e){if(this.options.noValidation)return e;if(e=""+e||"",e.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+e);return this.assertLegalChar(e)},t.prototype.raw=function(e){return this.options.noValidation?e:""+e||""},t.prototype.attValue=function(e){return this.options.noValidation?e:this.assertLegalChar(this.attEscape(e=""+e||""))},t.prototype.insTarget=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},t.prototype.insValue=function(e){if(this.options.noValidation)return e;if(e=""+e||"",e.match(/\?>/))throw new Error("Invalid processing instruction value: "+e);return this.assertLegalChar(e)},t.prototype.xmlVersion=function(e){if(this.options.noValidation)return e;if(e=""+e||"",!e.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+e);return e},t.prototype.xmlEncoding=function(e){if(this.options.noValidation)return e;if(e=""+e||"",!e.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+e);return this.assertLegalChar(e)},t.prototype.xmlStandalone=function(e){return this.options.noValidation?e:e?"yes":"no"},t.prototype.dtdPubID=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},t.prototype.dtdSysID=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},t.prototype.dtdElementValue=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},t.prototype.dtdAttType=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},t.prototype.dtdAttDefault=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},t.prototype.dtdEntityValue=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},t.prototype.dtdNData=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},t.prototype.convertAttKey="@",t.prototype.convertPIKey="?",t.prototype.convertTextKey="#text",t.prototype.convertCDataKey="#cdata",t.prototype.convertCommentKey="#comment",t.prototype.convertRawKey="#raw",t.prototype.assertLegalChar=function(e){var t,r;if(this.options.noValidation)return e;if(t="","1.0"===this.options.version){if(t=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,r=e.match(t))throw new Error("Invalid character in string: "+e+" at index "+r.index)}else if("1.1"===this.options.version&&(t=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,r=e.match(t)))throw new Error("Invalid character in string: "+e+" at index "+r.index);return e},t.prototype.assertLegalName=function(e){var t;if(this.options.noValidation)return e;if(this.assertLegalChar(e),t=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!e.match(t))throw new Error("Invalid character in name");return e},t.prototype.textEscape=function(e){var t;return this.options.noValidation?e:(t=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,e.replace(t,"&").replace(//g,">").replace(/\r/g," "))},t.prototype.attEscape=function(e){var t;return this.options.noValidation?e:(t=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,e.replace(t,"&").replace(/0)?new Array(n).join(t.indent):""},e.prototype.endline=function(e,t,r){return!t.pretty||t.suppressPrettyCount?"":t.newline},e.prototype.attribute=function(e,t,r){var n;return this.openAttribute(e,t,r),n=" "+e.name+'="'+e.value+'"',this.closeAttribute(e,t,r),n},e.prototype.cdata=function(e,t,r){var i;return this.openNode(e,t,r),t.state=n.OpenTag,i=this.indent(e,t,r)+""+this.endline(e,t,r),t.state=n.None,this.closeNode(e,t,r),i},e.prototype.comment=function(e,t,r){var i;return this.openNode(e,t,r),t.state=n.OpenTag,i=this.indent(e,t,r)+"\x3c!-- ",t.state=n.InsideTag,i+=e.value,t.state=n.CloseTag,i+=" --\x3e"+this.endline(e,t,r),t.state=n.None,this.closeNode(e,t,r),i},e.prototype.declaration=function(e,t,r){var i;return this.openNode(e,t,r),t.state=n.OpenTag,i=this.indent(e,t,r)+"",i+=this.endline(e,t,r),t.state=n.None,this.closeNode(e,t,r),i},e.prototype.docType=function(e,t,r){var i,s,o,a,c;if(r||(r=0),this.openNode(e,t,r),t.state=n.OpenTag,a=this.indent(e,t,r),a+="0){for(a+=" [",a+=this.endline(e,t,r),t.state=n.InsideTag,c=e.children,s=0,o=c.length;s",a+=this.endline(e,t,r),t.state=n.None,this.closeNode(e,t,r),a},e.prototype.element=function(e,t,i){var o,a,c,u,l,p,f,h,d,m,y,b,g,v;for(d in i||(i=0),m=!1,y="",this.openNode(e,t,i),t.state=n.OpenTag,y+=this.indent(e,t,i)+"<"+e.name,b=e.attribs,b)s.call(b,d)&&(o=b[d],y+=this.attribute(o,t,i));if(c=e.children.length,u=0===c?null:e.children[0],0===c||e.children.every((function(e){return(e.type===r.Text||e.type===r.Raw)&&""===e.value})))t.allowEmpty?(y+=">",t.state=n.CloseTag,y+=""+this.endline(e,t,i)):(t.state=n.CloseTag,y+=t.spaceBeforeSlash+"/>"+this.endline(e,t,i));else if(!t.pretty||1!==c||u.type!==r.Text&&u.type!==r.Raw||null==u.value){if(t.dontPrettyTextNodes)for(g=e.children,l=0,f=g.length;l"+this.endline(e,t,i),t.state=n.InsideTag,v=e.children,p=0,h=v.length;p",m&&t.suppressPrettyCount--,y+=this.endline(e,t,i),t.state=n.None}else y+=">",t.state=n.InsideTag,t.suppressPrettyCount++,m=!0,y+=this.writeChildNode(u,t,i+1),t.suppressPrettyCount--,m=!1,t.state=n.CloseTag,y+=""+this.endline(e,t,i);return this.closeNode(e,t,i),y},e.prototype.writeChildNode=function(e,t,n){switch(e.type){case r.CData:return this.cdata(e,t,n);case r.Comment:return this.comment(e,t,n);case r.Element:return this.element(e,t,n);case r.Raw:return this.raw(e,t,n);case r.Text:return this.text(e,t,n);case r.ProcessingInstruction:return this.processingInstruction(e,t,n);case r.Dummy:return"";case r.Declaration:return this.declaration(e,t,n);case r.DocType:return this.docType(e,t,n);case r.AttributeDeclaration:return this.dtdAttList(e,t,n);case r.ElementDeclaration:return this.dtdElement(e,t,n);case r.EntityDeclaration:return this.dtdEntity(e,t,n);case r.NotationDeclaration:return this.dtdNotation(e,t,n);default:throw new Error("Unknown XML node type: "+e.constructor.name)}},e.prototype.processingInstruction=function(e,t,r){var i;return this.openNode(e,t,r),t.state=n.OpenTag,i=this.indent(e,t,r)+"",i+=this.endline(e,t,r),t.state=n.None,this.closeNode(e,t,r),i},e.prototype.raw=function(e,t,r){var i;return this.openNode(e,t,r),t.state=n.OpenTag,i=this.indent(e,t,r),t.state=n.InsideTag,i+=e.value,t.state=n.CloseTag,i+=this.endline(e,t,r),t.state=n.None,this.closeNode(e,t,r),i},e.prototype.text=function(e,t,r){var i;return this.openNode(e,t,r),t.state=n.OpenTag,i=this.indent(e,t,r),t.state=n.InsideTag,i+=e.value,t.state=n.CloseTag,i+=this.endline(e,t,r),t.state=n.None,this.closeNode(e,t,r),i},e.prototype.dtdAttList=function(e,t,r){var i;return this.openNode(e,t,r),t.state=n.OpenTag,i=this.indent(e,t,r)+""+this.endline(e,t,r),t.state=n.None,this.closeNode(e,t,r),i},e.prototype.dtdElement=function(e,t,r){var i;return this.openNode(e,t,r),t.state=n.OpenTag,i=this.indent(e,t,r)+""+this.endline(e,t,r),t.state=n.None,this.closeNode(e,t,r),i},e.prototype.dtdEntity=function(e,t,r){var i;return this.openNode(e,t,r),t.state=n.OpenTag,i=this.indent(e,t,r)+""+this.endline(e,t,r),t.state=n.None,this.closeNode(e,t,r),i},e.prototype.dtdNotation=function(e,t,r){var i;return this.openNode(e,t,r),t.state=n.OpenTag,i=this.indent(e,t,r)+""+this.endline(e,t,r),t.state=n.None,this.closeNode(e,t,r),i},e.prototype.openNode=function(e,t,r){},e.prototype.closeNode=function(e,t,r){},e.prototype.openAttribute=function(e,t,r){},e.prototype.closeAttribute=function(e,t,r){},e}()}).call(this)},{"./NodeType":360,"./Utility":361,"./WriterState":362,"./XMLCData":364,"./XMLComment":366,"./XMLDTDAttList":371,"./XMLDTDElement":372,"./XMLDTDEntity":373,"./XMLDTDNotation":374,"./XMLDeclaration":375,"./XMLDocType":376,"./XMLDummy":379,"./XMLElement":380,"./XMLProcessingInstruction":384,"./XMLRaw":385,"./XMLText":389}],391:[function(e,t,r){(function(){var r,n,i,s,o,a,c,u,l,p;p=e("./Utility"),u=p.assign,l=p.isFunction,i=e("./XMLDOMImplementation"),s=e("./XMLDocument"),o=e("./XMLDocumentCB"),c=e("./XMLStringWriter"),a=e("./XMLStreamWriter"),r=e("./NodeType"),n=e("./WriterState"),t.exports.create=function(e,t,r,n){var i,o;if(null==e)throw new Error("Root element needs a name.");return n=u({},t,r,n),i=new s(n),o=i.element(e),n.headless||(i.declaration(n),null==n.pubID&&null==n.sysID||i.dtd(n)),o},t.exports.begin=function(e,t,r){var n;return l(e)&&(n=[e,t],t=n[0],r=n[1],e={}),t?new o(e,t,r):new s(e)},t.exports.stringWriter=function(e){return new c(e)},t.exports.streamWriter=function(e,t){return new a(e,t)},t.exports.implementation=new i,t.exports.nodeType=r,t.exports.writerState=n}).call(this)},{"./NodeType":360,"./Utility":361,"./WriterState":362,"./XMLDOMImplementation":369,"./XMLDocument":377,"./XMLDocumentCB":378,"./XMLStreamWriter":386,"./XMLStringWriter":387}],392:[function(e,t,r){t.exports=i;var n=Object.prototype.hasOwnProperty;function i(){for(var e={},t=0;ta?t=e(t):t.length>5]|=128<>>9<<4)]=t;for(var r=1732584193,n=-271733879,i=-1732584194,s=271733878,p=0;p>16)+(t>>16)+(r>>16);return n<<16|65535&r}function p(e,t){return e<>>32-t}t.exports=function(e){return n.hash(e,i,16)}},{"./helpers":394}],396:[function(e,t,r){"use strict";var n=e("./helpers");function i(e,t){e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var r=Array(80),n=1732584193,i=-271733879,u=-1732584194,l=271733878,p=-1009589776,f=0;f>16)+(t>>16)+(r>>16);return n<<16|65535&r}function c(e,t){return e<>>32-t}t.exports=function(e){return n.hash(e,i,20,!0)}},{"./helpers":394}],397:[function(e,t,r){"use strict";t.exports=function(){return function(){}}},{}],398:[function(e,t,r){(function(r){(function(){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/helpers/typeof")),s=e("stream"),o=s.Stream,a=e("../lib/common/utils/isArray"),c=a.isArray;function u(e){return e instanceof o}t.exports.string=function(e){return"string"===typeof e},t.exports.array=c,t.exports.buffer=r.isBuffer,t.exports.writableStream=function(e){return u(e)&&"function"===typeof e._write&&"object"===(0,i.default)(e._writableState)}}).call(this)}).call(this,{isBuffer:e("../node_modules/is-buffer/index.js")})},{"../lib/common/utils/isArray":61,"../node_modules/is-buffer/index.js":312,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/helpers/typeof":75,stream:345}],399:[function(e,t,r){"use strict";var n=e("immediate"),i=t.exports={};function s(){}i.nextTick=n,i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=s,i.addListener=s,i.once=s,i.off=s,i.removeListener=s,i.removeAllListeners=s,i.emit=s,i.prependListener=s,i.prependOnceListener=s,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},{immediate:305}],400:[function(e,r,n){(function(t){(function(){"use strict";e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.search.js");var r=e("./lib/request"),i=e("./lib/response"),s=e("xtend"),o=e("builtin-status-codes"),a=e("url"),c=n;c.request=function(e,n){e="string"===typeof e?a.parse(e):s(e);var i=-1===t.location.protocol.search(/^https?:$/)?"http:":"",o=e.protocol||i,c=e.hostname||e.host,u=e.port,l=e.path||"/";c&&-1!==c.indexOf(":")&&(c="["+c+"]"),e.url=(c?o+"//"+c:"")+(u?":"+u:"")+l,e.method=(e.method||"GET").toUpperCase(),e.headers=e.headers||{};var p=new r(e);return n&&p.on("response",n),p},c.get=function(e,t){var r=c.request(e,t);return r.end(),r},c.ClientRequest=r,c.IncomingMessage=i.IncomingMessage,c.Agent=function(){},c.Agent.defaultMaxSockets=4,c.globalAgent=new c.Agent,c.STATUS_CODES=o,c.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this)}).call(this,"undefined"!==typeof t?t:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{"./lib/request":402,"./lib/response":403,"builtin-status-codes":87,"core-js/modules/es.regexp.exec.js":261,"core-js/modules/es.string.search.js":267,url:404,xtend:392}],401:[function(e,r,n){(function(t){(function(){"use strict";e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.promise.js"),e("core-js/modules/es.array-buffer.constructor.js"),e("core-js/modules/es.array-buffer.slice.js"),e("core-js/modules/es.array.slice.js"),n.fetch=c(t.fetch)&&c(t.ReadableStream),n.writableStream=c(t.WritableStream),n.abortController=c(t.AbortController),n.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),n.blobConstructor=!0}catch(u){}var r;function i(){if(void 0!==r)return r;if(t.XMLHttpRequest){r=new t.XMLHttpRequest;try{r.open("GET",t.XDomainRequest?"/":"https://example.com")}catch(u){r=null}}else r=null;return r}function s(e){var t=i();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(u){}return!1}var o="undefined"!==typeof t.ArrayBuffer,a=o&&c(t.ArrayBuffer.prototype.slice);function c(e){return"function"===typeof e}n.arraybuffer=n.fetch||o&&s("arraybuffer"),n.msstream=!n.fetch&&a&&s("ms-stream"),n.mozchunkedarraybuffer=!n.fetch&&o&&s("moz-chunked-arraybuffer"),n.overrideMimeType=n.fetch||!!i()&&c(i().overrideMimeType),n.vbArray=c(t.VBArray),r=null}).call(this)}).call(this,"undefined"!==typeof t?t:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{"core-js/modules/es.array-buffer.constructor.js":239,"core-js/modules/es.array-buffer.slice.js":240,"core-js/modules/es.array.slice.js":250,"core-js/modules/es.object.to-string.js":258,"core-js/modules/es.promise.js":259}],402:[function(e,r,n){(function(t,n,i){(function(){"use strict";e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.regexp.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.object.keys.js"),e("core-js/modules/es.array.concat.js"),e("core-js/modules/es.array.map.js"),e("core-js/modules/es.function.name.js"),e("core-js/modules/es.promise.js"),e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.split.js");var s=e("./capability"),o=e("inherits"),a=e("./response"),c=e("readable-stream"),u=e("to-arraybuffer"),l=a.IncomingMessage,p=a.readyStates;function f(e,t){return s.fetch&&t?"fetch":s.mozchunkedarraybuffer?"moz-chunked-arraybuffer":s.msstream?"ms-stream":s.arraybuffer&&e?"arraybuffer":s.vbArray&&e?"text:vbarray":"text"}var h=r.exports=function(e){var t,r=this;c.Writable.call(r),r._opts=e,r._body=[],r._headers={},e.auth&&r.setHeader("Authorization","Basic "+new i(e.auth).toString("base64")),Object.keys(e.headers).forEach((function(t){r.setHeader(t,e.headers[t])}));var n=!0;if("disable-fetch"===e.mode||"requestTimeout"in e&&!s.abortController)n=!1,t=!0;else if("prefer-streaming"===e.mode)t=!1;else if("allow-wrong-content-type"===e.mode)t=!s.overrideMimeType;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");t=!0}r._mode=f(t,n),r._fetchTimer=null,r.on("finish",(function(){r._onFinish()}))};function d(e){try{var t=e.status;return null!==t&&0!==t}catch(r){return!1}}o(h,c.Writable),h.prototype.setHeader=function(e,t){var r=this,n=e.toLowerCase();-1===m.indexOf(n)&&(r._headers[n]={name:e,value:t})},h.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},h.prototype.removeHeader=function(e){var t=this;delete t._headers[e.toLowerCase()]},h.prototype._onFinish=function(){var e=this;if(!e._destroyed){var r=e._opts,o=e._headers,a=null;"GET"!==r.method&&"HEAD"!==r.method&&(a=s.arraybuffer?u(i.concat(e._body)):s.blobConstructor?new n.Blob(e._body.map((function(e){return u(e)})),{type:(o["content-type"]||{}).value||""}):i.concat(e._body).toString());var c=[];if(Object.keys(o).forEach((function(e){var t=o[e].name,r=o[e].value;Array.isArray(r)?r.forEach((function(e){c.push([t,e])})):c.push([t,r])})),"fetch"===e._mode){var l=null;if(s.abortController){var f=new AbortController;l=f.signal,e._fetchAbortController=f,"requestTimeout"in r&&0!==r.requestTimeout&&(e._fetchTimer=n.setTimeout((function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()}),r.requestTimeout))}n.fetch(e._opts.url,{method:e._opts.method,headers:c,body:a||void 0,mode:"cors",credentials:r.withCredentials?"include":"same-origin",signal:l}).then((function(t){e._fetchResponse=t,e._connect()}),(function(t){n.clearTimeout(e._fetchTimer),e._destroyed||e.emit("error",t)}))}else{var h=e._xhr=new n.XMLHttpRequest;try{h.open(e._opts.method,e._opts.url,!0)}catch(d){return void t.nextTick((function(){e.emit("error",d)}))}"responseType"in h&&(h.responseType=e._mode.split(":")[0]),"withCredentials"in h&&(h.withCredentials=!!r.withCredentials),"text"===e._mode&&"overrideMimeType"in h&&h.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in r&&(h.timeout=r.requestTimeout,h.ontimeout=function(){e.emit("requestTimeout")}),c.forEach((function(e){h.setRequestHeader(e[0],e[1])})),e._response=null,h.onreadystatechange=function(){switch(h.readyState){case p.LOADING:case p.DONE:e._onXHRProgress();break}},"moz-chunked-arraybuffer"===e._mode&&(h.onprogress=function(){e._onXHRProgress()}),h.onerror=function(){e._destroyed||e.emit("error",new Error("XHR error"))};try{h.send(a)}catch(d){return void t.nextTick((function(){e.emit("error",d)}))}}}},h.prototype._onXHRProgress=function(){var e=this;d(e._xhr)&&!e._destroyed&&(e._response||e._connect(),e._response._onXHRProgress())},h.prototype._connect=function(){var e=this;e._destroyed||(e._response=new l(e._xhr,e._fetchResponse,e._mode,e._fetchTimer),e._response.on("error",(function(t){e.emit("error",t)})),e.emit("response",e._response))},h.prototype._write=function(e,t,r){var n=this;n._body.push(e),r()},h.prototype.abort=h.prototype.destroy=function(){var e=this;e._destroyed=!0,n.clearTimeout(e._fetchTimer),e._response&&(e._response._destroyed=!0),e._xhr?e._xhr.abort():e._fetchAbortController&&e._fetchAbortController.abort()},h.prototype.end=function(e,t,r){var n=this;"function"===typeof e&&(r=e,e=void 0),c.Writable.prototype.end.call(n,e,t,r)},h.prototype.flushHeaders=function(){},h.prototype.setTimeout=function(){},h.prototype.setNoDelay=function(){},h.prototype.setSocketKeepAlive=function(){};var m=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}).call(this)}).call(this,e("_process"),"undefined"!==typeof t?t:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{},e("buffer").Buffer)},{"./capability":401,"./response":403,_process:399,buffer:85,"core-js/modules/es.array.concat.js":241,"core-js/modules/es.array.map.js":249,"core-js/modules/es.function.name.js":253,"core-js/modules/es.object.keys.js":257,"core-js/modules/es.object.to-string.js":258,"core-js/modules/es.promise.js":259,"core-js/modules/es.regexp.exec.js":261,"core-js/modules/es.regexp.to-string.js":262,"core-js/modules/es.string.split.js":268,"core-js/modules/web.dom-collections.for-each.js":296,inherits:311,"readable-stream":339,"to-arraybuffer":348}],403:[function(e,r,n){(function(t,r,i){(function(){"use strict";e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.promise.js"),e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.split.js"),e("core-js/modules/es.string.match.js"),e("core-js/modules/es.array.iterator.js"),e("core-js/modules/es.array-buffer.slice.js"),e("core-js/modules/es.typed-array.uint8-array.js"),e("core-js/modules/es.typed-array.copy-within.js"),e("core-js/modules/es.typed-array.every.js"),e("core-js/modules/es.typed-array.fill.js"),e("core-js/modules/es.typed-array.filter.js"),e("core-js/modules/es.typed-array.find.js"),e("core-js/modules/es.typed-array.find-index.js"),e("core-js/modules/es.typed-array.for-each.js"),e("core-js/modules/es.typed-array.includes.js"),e("core-js/modules/es.typed-array.index-of.js"),e("core-js/modules/es.typed-array.iterator.js"),e("core-js/modules/es.typed-array.join.js"),e("core-js/modules/es.typed-array.last-index-of.js"),e("core-js/modules/es.typed-array.map.js"),e("core-js/modules/es.typed-array.reduce.js"),e("core-js/modules/es.typed-array.reduce-right.js"),e("core-js/modules/es.typed-array.reverse.js"),e("core-js/modules/es.typed-array.set.js"),e("core-js/modules/es.typed-array.slice.js"),e("core-js/modules/es.typed-array.some.js"),e("core-js/modules/es.typed-array.sort.js"),e("core-js/modules/es.typed-array.subarray.js"),e("core-js/modules/es.typed-array.to-locale-string.js"),e("core-js/modules/es.typed-array.to-string.js"),e("core-js/modules/es.array.slice.js");var s=e("./capability"),o=e("inherits"),a=e("readable-stream"),c=n.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},u=n.IncomingMessage=function(e,n,o,c){var u=this;if(a.Readable.call(u),u._mode=o,u.headers={},u.rawHeaders=[],u.trailers={},u.rawTrailers=[],u.on("end",(function(){t.nextTick((function(){u.emit("close")}))})),"fetch"===o){var l=function e(){f.read().then((function(t){if(!u._destroyed){if(t.done)return r.clearTimeout(c),void u.push(null);u.push(new i(t.value)),e()}})).catch((function(e){r.clearTimeout(c),u._destroyed||u.emit("error",e)}))};if(u._fetchResponse=n,u.url=n.url,u.statusCode=n.status,u.statusMessage=n.statusText,n.headers.forEach((function(e,t){u.headers[t.toLowerCase()]=e,u.rawHeaders.push(t,e)})),s.writableStream){var p=new WritableStream({write:function(e){return new Promise((function(t,r){u._destroyed?r():u.push(new i(e))?t():u._resumeFetch=t}))},close:function(){r.clearTimeout(c),u._destroyed||u.push(null)},abort:function(e){u._destroyed||u.emit("error",e)}});try{return void n.body.pipeTo(p).catch((function(e){r.clearTimeout(c),u._destroyed||u.emit("error",e)}))}catch(y){}}var f=n.body.getReader();l()}else{u._xhr=e,u._pos=0,u.url=e.responseURL,u.statusCode=e.status,u.statusMessage=e.statusText;var h=e.getAllResponseHeaders().split(/\r?\n/);if(h.forEach((function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var r=t[1].toLowerCase();"set-cookie"===r?(void 0===u.headers[r]&&(u.headers[r]=[]),u.headers[r].push(t[2])):void 0!==u.headers[r]?u.headers[r]+=", "+t[2]:u.headers[r]=t[2],u.rawHeaders.push(t[1],t[2])}})),u._charset="x-user-defined",!s.overrideMimeType){var d=u.rawHeaders["mime-type"];if(d){var m=d.match(/;\s*charset=([^;])(;|$)/);m&&(u._charset=m[1].toLowerCase())}u._charset||(u._charset="utf-8")}}};o(u,a.Readable),u.prototype._read=function(){var e=this,t=e._resumeFetch;t&&(e._resumeFetch=null,t())},u.prototype._onXHRProgress=function(){var e=this,t=e._xhr,n=null;switch(e._mode){case"text:vbarray":if(t.readyState!==c.DONE)break;try{n=new r.VBArray(t.responseBody).toArray()}catch(l){}if(null!==n){e.push(new i(n));break}case"text":try{n=t.responseText}catch(l){e._mode="text:vbarray";break}if(n.length>e._pos){var s=n.substr(e._pos);if("x-user-defined"===e._charset){for(var o=new i(s.length),a=0;ae._pos&&(e.push(new i(new Uint8Array(u.result.slice(e._pos)))),e._pos=u.result.byteLength)},u.onload=function(){e.push(null)},u.readAsArrayBuffer(n);break}e._xhr.readyState===c.DONE&&"ms-stream"!==e._mode&&e.push(null)}}).call(this)}).call(this,e("_process"),"undefined"!==typeof t?t:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{},e("buffer").Buffer)},{"./capability":401,_process:399,buffer:85,"core-js/modules/es.array-buffer.slice.js":240,"core-js/modules/es.array.iterator.js":247,"core-js/modules/es.array.slice.js":250,"core-js/modules/es.object.to-string.js":258,"core-js/modules/es.promise.js":259,"core-js/modules/es.regexp.exec.js":261,"core-js/modules/es.string.match.js":265,"core-js/modules/es.string.split.js":268,"core-js/modules/es.typed-array.copy-within.js":272,"core-js/modules/es.typed-array.every.js":273,"core-js/modules/es.typed-array.fill.js":274,"core-js/modules/es.typed-array.filter.js":275,"core-js/modules/es.typed-array.find-index.js":276,"core-js/modules/es.typed-array.find.js":277,"core-js/modules/es.typed-array.for-each.js":278,"core-js/modules/es.typed-array.includes.js":279,"core-js/modules/es.typed-array.index-of.js":280,"core-js/modules/es.typed-array.iterator.js":281,"core-js/modules/es.typed-array.join.js":282,"core-js/modules/es.typed-array.last-index-of.js":283,"core-js/modules/es.typed-array.map.js":284,"core-js/modules/es.typed-array.reduce-right.js":285,"core-js/modules/es.typed-array.reduce.js":286,"core-js/modules/es.typed-array.reverse.js":287,"core-js/modules/es.typed-array.set.js":288,"core-js/modules/es.typed-array.slice.js":289,"core-js/modules/es.typed-array.some.js":290,"core-js/modules/es.typed-array.sort.js":291,"core-js/modules/es.typed-array.subarray.js":292,"core-js/modules/es.typed-array.to-locale-string.js":293,"core-js/modules/es.typed-array.to-string.js":294,"core-js/modules/es.typed-array.uint8-array.js":295,"core-js/modules/web.dom-collections.for-each.js":296,inherits:311,"readable-stream":339}],404:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/helpers/typeof"));e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.search.js"),e("core-js/modules/es.array.concat.js"),e("core-js/modules/es.string.split.js"),e("core-js/modules/es.string.replace.js"),e("core-js/modules/es.array.join.js"),e("core-js/modules/es.string.trim.js"),e("core-js/modules/es.string.match.js"),e("core-js/modules/es.array.slice.js"),e("core-js/modules/es.object.keys.js"),e("core-js/modules/es.array.splice.js");var s=e("punycode"),o=e("./util");function a(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}r.parse=T,r.resolve=E,r.resolveObject=_,r.format=k,r.Url=a;var c=/^([a-z0-9.+-]+:)/i,u=/:[0-9]*$/,l=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,p=["<",">",'"',"`"," ","\r","\n","\t"],f=["{","}","|","\\","^","`"].concat(p),h=["'"].concat(f),d=["%","/","?",";","#"].concat(h),m=["/","?","#"],y=255,b=/^[+a-z0-9A-Z_-]{0,63}$/,g=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,v={javascript:!0,"javascript:":!0},w={javascript:!0,"javascript:":!0},j={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},x=e("querystring");function T(e,t,r){if(e&&o.isObject(e)&&e instanceof a)return e;var n=new a;return n.parse(e,t,r),n}function k(e){return o.isString(e)&&(e=T(e)),e instanceof a?e.format():a.prototype.format.call(e)}function E(e,t){return T(e,!1,!0).resolve(t)}function _(e,t){return e?T(e,!1,!0).resolveObject(t):t}a.prototype.parse=function(e,t,r){if(!o.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+(0,i.default)(e));var n=e.indexOf("?"),a=-1!==n&&n127?P+="x":P+=M[L];if(!P.match(b)){var q=N.slice(0,D),F=N.slice(D+1),U=M.match(g);U&&(q.push(U[1]),F.unshift(U[2])),F.length&&(f="/"+F.join(".")+f),this.hostname=q.join(".");break}}}this.hostname.length>y?this.hostname="":this.hostname=this.hostname.toLowerCase(),C||(this.hostname=s.toASCII(this.hostname));var G=this.port?":"+this.port:"",X=this.hostname||"";this.host=X+G,this.href+=this.host,C&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==f[0]&&(f="/"+f))}if(!v[E])for(D=0,R=h.length;D0)&&r.host.split("@");E&&(r.auth=E.shift(),r.host=r.hostname=E.shift())}return r.search=e.search,r.query=e.query,o.isNull(r.pathname)&&o.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!T.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var _=T.slice(-1)[0],S=(r.host||e.host||T.length>1)&&("."===_||".."===_)||""===_,O=0,A=T.length;A>=0;A--)_=T[A],"."===_?T.splice(A,1):".."===_?(T.splice(A,1),O++):O&&(T.splice(A,1),O--);if(!v&&!x)for(;O--;O)T.unshift("..");!v||""===T[0]||T[0]&&"/"===T[0].charAt(0)||T.unshift(""),S&&"/"!==T.join("/").substr(-1)&&T.push("");var D=""===T[0]||T[0]&&"/"===T[0].charAt(0);if(k){r.hostname=r.host=D?"":T.length?T.shift():"";E=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@");E&&(r.auth=E.shift(),r.host=r.hostname=E.shift())}return v=v||r.host&&T.length,v&&!D&&T.unshift(""),T.length?r.pathname=T.join("/"):(r.pathname=null,r.path=null),o.isNull(r.pathname)&&o.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},a.prototype.parseHost=function(){var e=this.host,t=u.exec(e);t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},{"./util":405,"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/helpers/typeof":75,"core-js/modules/es.array.concat.js":241,"core-js/modules/es.array.join.js":248,"core-js/modules/es.array.slice.js":250,"core-js/modules/es.array.splice.js":252,"core-js/modules/es.object.keys.js":257,"core-js/modules/es.regexp.exec.js":261,"core-js/modules/es.string.match.js":265,"core-js/modules/es.string.replace.js":266,"core-js/modules/es.string.search.js":267,"core-js/modules/es.string.split.js":268,"core-js/modules/es.string.trim.js":269,punycode:325,querystring:328}],405:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/helpers/typeof"));t.exports={isString:function(e){return"string"===typeof e},isObject:function(e){return"object"===(0,i.default)(e)&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},{"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/helpers/typeof":75}],406:[function(e,t,r){"use strict";e("core-js/modules/es.number.constructor.js"),r.encodeURIComponent=function(e){try{return encodeURIComponent(e)}catch(t){return e}},r.escape=e("escape-html"),r.timestamp=function(e){if(e){var t=e;return"string"===typeof t&&(t=Number(t)),10===String(e).length&&(t*=1e3),new Date(t)}return Math.round(Date.now()/1e3)}},{"core-js/modules/es.number.constructor.js":254,"escape-html":300}],407:[function(e,t,r){(function(t,n){(function(){"use strict";var i=e("@babel/runtime/helpers/interopRequireDefault"),s=i(e("@babel/runtime/helpers/typeof"));e("core-js/modules/es.string.trim.js"),e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.split.js"),e("core-js/modules/es.object.to-string.js"),e("core-js/modules/es.promise.js"),e("core-js/modules/es.function.name.js"),e("core-js/modules/es.array.concat.js");var o=e("util"),a=e("url"),c=e("http"),u=e("https"),l=e("debug")("urllib"),p=e("humanize-ms"),f=0,h=Math.pow(2,31)-10,d=/^https?:\/\//i;function m(e,t){return void 0===e?t:e}function y(e){return e?e.split(";")[0].trim().toLowerCase():""}function b(e,t){return function(r,n,i){if(r)return t(r);e({data:n,status:i.statusCode,headers:i.headers,res:i})}}r.TIMEOUTS=[p("300s"),p("300s")];var g=["json","text"];r.request=function(e,t,n){return 2===arguments.length&&"function"===typeof t&&(n=t,t=null),"function"===typeof n?r.requestWithCallback(e,t,n):new Promise((function(n,i){r.requestWithCallback(e,t,b(n,i))}))},r.requestWithCallback=function(e,i,b){if(!e||"string"!==typeof e&&"object"!==(0,s.default)(e)){var v=o.format("expect request url to be a string or a http request options, but got %j",e);throw new Error(v)}2===arguments.length&&"function"===typeof i&&(b=i,i=null),i=i||{},f>=h&&(f=0);var w=++f;i.requestUrls=i.requestUrls||[];var j={requestId:w,url:e,args:i,ctx:i.ctx};i.emitter&&i.emitter.emit("request",j),i.timeout=i.timeout||r.TIMEOUTS,i.maxRedirects=i.maxRedirects||10,i.streaming=i.streaming||i.customResponse;var x,T=Date.now();"string"===typeof e?(d.test(e)||(e="https://"+e),x=a.parse(e)):x=e;var k=(i.type||i.method||x.method||"GET").toUpperCase(),E=x.port||80,_=c,S=m(i.agent,r.agent),O=i.fixJSONCtlChars;"https:"===x.protocol&&(_=u,S=m(i.httpsAgent,r.httpsAgent),x.port||(E=443));var A={host:x.hostname||x.host||"localhost",path:x.path||"/",method:k,port:E,agent:S,headers:i.headers||{},lookup:i.lookup};Array.isArray(i.timeout)?A.requestTimeout=i.timeout[i.timeout.length-1]:"undefined"!==typeof i.timeout&&(A.requestTimeout=i.timeout);var D=i.auth||x.auth;D&&(A.auth=D);var I=i.content||i.data,C="GET"===k||"HEAD"===k||i.dataAsQueryString;if(!i.content&&I&&"string"!==typeof I&&!n.isBuffer(I))if(C)I=i.nestedQuerystring?qs.stringify(I):querystring.stringify(I);else{var N=A.headers["Content-Type"]||A.headers["content-type"];N||(N="json"===i.contentType?"application/json":"application/x-www-form-urlencoded",A.headers["Content-Type"]=N),I="application/json"===y(N)?JSON.stringify(I):i.nestedQuerystring?qs.stringify(I):querystring.stringify(I)}C&&I&&(A.path+=(x.query?"&":"?")+I,I=null);var R=0;if(I){var M=I.length;n.isBuffer(I)||(M=n.byteLength(I)),R=A.headers["Content-Length"]=M}"json"===i.dataType&&(A.headers.Accept="application/json"),"function"===typeof i.beforeRequest&&i.beforeRequest(A);var P=null,L=null,B=null,q=!1,F=!1,U=0,G=-1,X=!1,V="",W="",z=null;function H(){P&&(clearTimeout(P),P=null)}function K(){L&&(clearTimeout(L),L=null)}function Y(r,n,s){if(K(),!b)return console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),w,t.pid,A.method,e),void(r&&console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s: %s\nstack: %s",Date(),w,t.pid,r.name,r.message,r.stack));var o=b;b=null;var a={};s&&(G=s.statusCode,a=s.headers);var c=Date.now()-T;z&&(z.contentDownload=c),l("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",c,U,G,A.method,A.host,A.path,F,z);var u={status:G,statusCode:G,headers:a,size:U,aborted:X,rt:c,keepAliveSocket:F,data:n,requestUrls:i.requestUrls,timing:z,remoteAddress:V,remotePort:W};if(r){var p="";S&&"function"===typeof S.getCurrentStatus&&(p=", agent status: "+JSON.stringify(S.getCurrentStatus())),r.message+=", "+A.method+" "+e+" "+G+" (connected: "+q+", keepalive socket: "+F+p+")\nheaders: "+JSON.stringify(a),r.data=n,r.path=A.path,r.status=G,r.headers=a,r.res=u}o(r,n,i.streaming?s:u),i.emitter&&(j.url=e,j.socket=ee&&ee.connection,j.options=A,j.size=R,i.emitter.emit("response",{requestId:w,error:r,ctx:i.ctx,req:j,res:u}))}function $(t){var n=null;if(i.followRedirect&&statuses.redirect[t.statusCode]){i._followRedirectCount=(i._followRedirectCount||0)+1;var s=t.headers.location;if(s){if(!(i._followRedirectCount>i.maxRedirects)){var o=i.formatRedirectUrl?i.formatRedirectUrl(e,s):a.resolve(e,s);l("Request#%d %s: `redirected` from %s to %s",w,A.path,e,o),K(),i.headers&&i.headers.Host&&d.test(s)&&(i.headers.Host=null);var c=b;return b=null,r.requestWithCallback(o,i,c),{redirect:!0,error:null}}n=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+e),n.name="MaxRedirectError"}else n=new Error("Got statusCode "+t.statusCode+" but cannot resolve next location from headers"),n.name="FollowRedirectError"}return{redirect:!1,error:n}}function J(e,t,r){var n=e.headers["content-encoding"];return r(null,t,n)}i.timing&&(z={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0}),i.gzip&&(A.headers["Accept-Encoding"]||A.headers["accept-encoding"]||(A.headers["Accept-Encoding"]="gzip"));var Z,Q,ee,te=i.writeStream;function re(t){if(z&&(z.waiting=Date.now()-T),l("Request#%d %s `req response` event emit: status %d, headers: %j",w,e,t.statusCode,t.headers),i.streaming){var r=$(t);return r.redirect?void t.resume():r.error?(t.resume(),Y(r.error,null,t)):Y(null,null,t)}if(t.on("close",(function(){l("Request#%d %s: `res close` event emit, total size %d",w,e,U)})),t.on("error",(function(){l("Request#%d %s: `res error` event emit, total size %d",w,e,U)})),t.on("aborted",(function(){X=!0,l("Request#%d %s: `res aborted` event emit, total size %d",w,e,U)})),te){var s=$(t);return s.redirect?void t.resume():s.error?(t.resume(),te.end(),Y(s.error,null,t)):(!1===i.consumeWriteStream?t.on("end",Y.bind(null,null,null,t)):te.on("close",(function(){l("Request#%d %s: writeStream close event emitted",w,e),Y(B||null,null,t)})),t.pipe(te))}var o=[];t.on("data",(function(t){l("Request#%d %s: `res data` event emit, size %d",w,e,t.length),U+=t.length,o.push(t)})),t.on("end",(function(){var r=n.concat(o,U);if(l("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",w,e,U,t._dumped),B)return Y(B,r,t);var s=$(t);if(s.error)return Y(s.error,r,t);s.redirect||J(t,r,(function(n,s,o){if(n)return Y(n,r,t);if(!o&&g.indexOf(i.dataType)>=0){try{s=decodeBodyByCharset(s,t)}catch(c){return l("decodeBodyByCharset error: %s",c),Y(null,s,t)}if("json"===i.dataType)if(0===U)s=null;else{var a=parseJSON(s,O);a.error?n=a.error:s=a.data}}X&&l("Request#%d %s: Remote socket was terminated before `response.end()` was called",w,e),Y(n,s,t)}))}))}function ne(){l("Connect timer ticking, timeout: %d",Z),P=setTimeout((function(){P=null,-1===G&&(G=-2);var t="Connect timeout for "+Z+"ms",r="ConnectionTimeoutError";ee.socket||(r="SocketAssignTimeoutError",t+=", working sockets is full"),B=new Error(t),B.name=r,B.requestId=w,l("ConnectTimeout: Request#%d %s %s: %s, connected: %s",w,e,B.name,t,q),se()}),Z)}function ie(){l("Response timer ticking, timeout: %d",Q),L=setTimeout((function(){L=null;var t="Response timeout for "+Q+"ms",r="ResponseTimeoutError";B=new Error(t),B.name=r,B.requestId=w,l("ResponseTimeout: Request#%d %s %s: %s, connected: %s",w,e,B.name,t,q),se()}),Q)}l("Request#%d %s %s with headers %j, options.path: %s",w,k,e,A.headers,A.path),i.requestUrls.push(e),Array.isArray(i.timeout)?(Z=p(i.timeout[0]),Q=p(i.timeout[1])):Z=Q=p(i.timeout),l("ConnectTimeout: %d, ResponseTimeout: %d",Z,Q),A.mode=i.mode?i.mode:"";try{ee=_.request(A,re)}catch(oe){return Y(oe)}function se(){l("Request#%d %s abort, connected: %s",w,e,q),ee.socket||(B.noSocket=!0,Y(B)),ee.abort()}return"undefined"===typeof window?ne():ee.on("requestTimeout",(function(){-1===G&&(G=-2);var e="Connect timeout for "+Z+"ms",t="ConnectionTimeoutError";B=new Error(e),B.name=t,B.requestId=w,se()})),z&&ee.on("finish",(function(){z.requestSent=Date.now()-T})),ee.once("socket",(function(t){z&&(z.queuing=Date.now()-T);var r=t.readyState;if("opening"===r)return t.once("lookup",(function(t,r,n){l("Request#%d %s lookup: %s, %s, %s",w,e,t,r,n),z&&(z.dnslookup=Date.now()-T),r&&(V=r)})),void t.once("connect",(function(){z&&(z.connected=Date.now()-T),H(),ie(),l("Request#%d %s new socket connected",w,e),q=!0,V||(V=t.remoteAddress),W=t.remotePort}));l("Request#%d %s reuse socket connected, readyState: %s",w,e,r),q=!0,F=!0,V||(V=t.remoteAddress),W=t.remotePort,H(),ie()})),ee.on("error",(function(t){"Error"!==t.name&&"TypeError"!==t.name||(t.name=q?"ResponseError":"RequestError"),t.message+=' (req "error")',l("Request#%d %s `req error` event emit, %s: %s",w,e,t.name,t.message),Y(B||t)})),te&&te.once("error",(function(t){t.message+=' (writeStream "error")',B=t,l("Request#%d %s `writeStream error` event emit, %s: %s",w,e,t.name,t.message),se()})),i.stream?(i.stream.pipe(ee),i.stream.once("error",(function(t){t.message+=' (stream "error")',B=t,l("Request#%d %s `readStream error` event emit, %s: %s",w,e,t.name,t.message),se()}))):ee.end(I),ee.requestId=w,ee}}).call(this)}).call(this,e("_process"),e("buffer").Buffer)},{"@babel/runtime/helpers/interopRequireDefault":74,"@babel/runtime/helpers/typeof":75,_process:399,buffer:85,"core-js/modules/es.array.concat.js":241,"core-js/modules/es.function.name.js":253,"core-js/modules/es.object.to-string.js":258,"core-js/modules/es.promise.js":259,"core-js/modules/es.regexp.exec.js":261,"core-js/modules/es.string.split.js":268,"core-js/modules/es.string.trim.js":269,debug:397,http:400,https:302,"humanize-ms":303,url:404,util:352}]},{},[1])(1)}))}).call(this,r("c8ba"))},ad7e:function(e,t,r){"use strict";const n={GENERAL:{text:"一般",value:1},COLOR:{text:"颜色",value:2},SIZE:{text:"尺寸",value:3},IMAGE:{text:"图片",value:4}};t["a"]=n}}]);