// Aliyun OSS SDK for JavaScript v6.18.1 // Copyright Aliyun.com, Inc. or its affiliates. All Rights Reserved. // License at https://github.com/ali-sdk/ali-oss/blob/master/LICENSE (function(global){!function(e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).OSS=e()}(function(){return function n(i,o,s){function a(t,e){if(!o[t]){if(!i[t]){var r="function"==typeof require&&require;if(!e&&r)return r(t,!0);if(u)return u(t,!0);throw(e=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",e}r=o[t]={exports:{}},i[t][0].call(r.exports,function(e){return a(i[t][1][e]||e)},r,r.exports,n,i,o,s)}return o[t].exports}for(var u="function"==typeof require&&require,e=0;e\n\n\n'.concat(t,"\n"),r&&(o+="".concat(r,"\n")),o+="\n",i.content=o,i.mime="xml",i.successStatuses=[200],e.next=9,this.request(i);case 9:return o=e.sent,e.abrupt("return",{res:o.res});case 11:case"end":return e.stop()}},e,this)}));return function(e,t,r){return n.apply(this,arguments)}}(),n.getBucketLogging=function(){var r=(0,o.default)(d.default.mark(function e(t,r){var n,i;return d.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(n=this._bucketRequestParams("GET",t,"logging",r)).successStatuses=[200],n.xmlResponse=!0,e.next=5,this.request(n);case 5:return n=e.sent,i=n.data.LoggingEnabled,e.abrupt("return",{enable:!!i,prefix:i&&i.TargetPrefix||null,res:n.res});case 8:case"end":return e.stop()}},e,this)}));return function(e,t){return r.apply(this,arguments)}}(),n.deleteBucketLogging=function(){var r=(0,o.default)(d.default.mark(function e(t,r){var n;return d.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(n=this._bucketRequestParams("DELETE",t,"logging",r)).successStatuses=[204,200],e.next=4,this.request(n);case 4:return n=e.sent,e.abrupt("return",{res:n.res});case 6:case"end":return e.stop()}},e,this)}));return function(e,t){return r.apply(this,arguments)}}(),n.putBucketCORS=function(){var n=(0,o.default)(d.default.mark(function e(t,r,n){var i,o,s,a,u,l,c,f,p;return d.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(h((r=r||[]).length,"rules is required"),r.forEach(function(e){h(e.allowedOrigin,"allowedOrigin is required"),h(e.allowedMethod,"allowedMethod is required")}),p=this._bucketRequestParams("PUT",t,"cors",n),i='\n',o=function(e){i+="".concat(e,"")},s=function(e){i+="".concat(e,"")},a=function(e){i+="".concat(e,"")},u=function(e){i+="".concat(e,"")},l=0,c=r.length;l",m(f.allowedOrigin).forEach(o),m(f.allowedMethod).forEach(s),m(f.allowedHeader).forEach(a),m(f.exposeHeader).forEach(u),f.maxAgeSeconds&&(i+="".concat(f.maxAgeSeconds,"")),i+="";return i+="",p.content=i,p.mime="xml",p.successStatuses=[200],e.next=16,this.request(p);case 16:return p=e.sent,e.abrupt("return",{res:p.res});case 18:case"end":return e.stop()}},e,this)}));return function(e,t,r){return n.apply(this,arguments)}}(),n.getBucketCORS=function(){var r=(0,o.default)(d.default.mark(function e(t,r){var n,i,o;return d.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(n=this._bucketRequestParams("GET",t,"cors",r)).successStatuses=[200],n.xmlResponse=!0,e.next=5,this.request(n);case 5:return n=e.sent,i=[],n.data&&n.data.CORSRule&&(o=s(o=n.data.CORSRule)?o:[o]).forEach(function(t){var r={};Object.keys(t).forEach(function(e){r[e.slice(0,1).toLowerCase()+e.slice(1,e.length)]=t[e]}),i.push(r)}),e.abrupt("return",{rules:i,res:n.res});case 9:case"end":return e.stop()}},e,this)}));return function(e,t){return r.apply(this,arguments)}}(),n.deleteBucketCORS=function(){var r=(0,o.default)(d.default.mark(function e(t,r){var n;return d.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(n=this._bucketRequestParams("DELETE",t,"cors",r)).successStatuses=[204],e.next=4,this.request(n);case 4:return n=e.sent,e.abrupt("return",{res:n.res});case 6:case"end":return e.stop()}},e,this)}));return function(e,t){return r.apply(this,arguments)}}(),n.putBucketReferer=function(){var i=(0,o.default)(d.default.mark(function e(t,r,n,i){var o,s,a;return d.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(a=this._bucketRequestParams("PUT",t,"referer",i),o='\n\n',o+=" ".concat(r?"true":"false","\n"),n&&0\n",s=0;s".concat(n[s],"\n");o+=" \n"}else o+=" \n";return o+="",a.content=o,a.mime="xml",a.successStatuses=[200],e.next=10,this.request(a);case 10:return a=e.sent,e.abrupt("return",{res:a.res});case 12:case"end":return e.stop()}},e,this)}));return function(e,t,r,n){return i.apply(this,arguments)}}(),n.getBucketReferer=function(){var r=(0,o.default)(d.default.mark(function e(t,r){var n,i;return d.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(n=this._bucketRequestParams("GET",t,"referer",r)).successStatuses=[200],n.xmlResponse=!0,e.next=5,this.request(n);case 5:return n=e.sent,(i=n.data.RefererList.Referer||null)&&!s(i)&&(i=[i]),e.abrupt("return",{allowEmpty:"true"===n.data.AllowEmptyReferer,referers:i,res:n.res});case 9:case"end":return e.stop()}},e,this)}));return function(e,t){return r.apply(this,arguments)}}(),n.deleteBucketReferer=function(){var r=(0,o.default)(d.default.mark(function e(t,r){return d.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.putBucketReferer(t,!0,null,r);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,this)}));return function(e,t){return r.apply(this,arguments)}}(),n._bucketRequestParams=function(e,t,r,n){return{method:e,bucket:t,subres:r,timeout:n&&n.timeout,ctx:n&&n.ctx}}},{"../common/utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,assert:82,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],3:[function(T,E,e){!function(k,_){!function(){"use strict";var e=T("@babel/runtime/helpers/interopRequireDefault"),u=e(T("@babel/runtime/regenerator")),r=e(T("@babel/runtime/helpers/asyncToGenerator")),e=(T("core-js/modules/es.function.name.js"),T("core-js/modules/es.regexp.exec.js"),T("core-js/modules/es.string.split.js"),T("core-js/modules/es.object.assign.js"),T("core-js/modules/es.array.includes.js"),T("core-js/modules/es.string.replace.js"),T("core-js/modules/es.array.concat.js"),T("core-js/modules/es.symbol.js"),T("core-js/modules/es.symbol.description.js"),T("core-js/modules/es.array.slice.js"),T("core-js/modules/es.object.to-string.js"),T("core-js/modules/es.promise.js"),T("core-js/modules/es.regexp.to-string.js"),T("debug")("ali-oss")),t=T("xml2js"),n=T("agentkeepalive"),i=T("merge-descriptors"),o=T("platform"),s=T("utility"),a=T("urllib"),l=T("./version"),c=T("bowser"),f=T("../common/signUtils"),p=T("../common/client/initOptions"),d=T("../common/utils/createRequest").createRequest,h=T("../common/utils/encoder").encoder,m=T("../common/client/getReqUrl").getReqUrl,y=T("../common/utils/setSTSToken").setSTSToken,b=T("../common/utils/retry").retry,g=T("../common/utils/isFunction").isFunction,v=new n;function w(e,t){var r,n;if(r=o.name,n=o.version,r&&r.toLowerCase&&"ie"===r.toLowerCase()&&n.split(".")[0]<10&&console.warn("ali-oss does not support the current browser"),!(this instanceof w))return new w(e,t);e&&e.inited?this.options=e:this.options=w.initOptions(e),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=a,this.agent=this.options.agent||v),this.ctx=t,this.userAgent=this._getUserAgent(),this.stsTokenFreshTime=new Date,this.options.amendTimeSkewed=0}(E.exports=w).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");e=Object.assign({secure:location&&"https:"===location.protocol,useFetch:!1},e);return p(e)};n=w.prototype;function j(e){return x.apply(this,arguments)}function x(){return(x=(0,r.default)(u.default.mark(function e(t){var r,n,i,o,s,a;return u.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.options.stsToken&&g(this.options.refreshSTSToken))return e.next=3,y.call(this);e.next=3;break;case 3:return r=d.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))return e.next=19,this.requestError(n);e.next=28;break;case 19:if("RequestTimeTooSkewed"!==(s=e.sent).code||o){e.next=25;break}return this.options.amendTimeSkewed=+new Date(s.serverTime)-new Date,e.next=24,this.request(t);case 24:return e.abrupt("return",e.sent);case 25:s.params=t,e.next=32;break;case 28:if(i)return e.next=31,this.requestError(i);e.next=32;break;case 31:s=e.sent;case 32:if(s)throw s;e.next=34;break;case 34:if(t.xmlResponse)return e.next=37,this.parseXML(n.data);e.next=39;break;case 37:a=e.sent,n.data=a;case 39:return e.abrupt("return",n);case 40:case"end":return e.stop()}},e,this,[[6,13]])}))).apply(this,arguments)}n.debug=e,i(n,T("./object")),i(n,T("./bucket")),i(n,T("../common/bucket/getBucketWebsite")),i(n,T("../common/bucket/putBucketWebsite")),i(n,T("../common/bucket/deleteBucketWebsite")),i(n,T("../common/bucket/getBucketLifecycle")),i(n,T("../common/bucket/putBucketLifecycle")),i(n,T("../common/bucket/deleteBucketLifecycle")),i(n,T("../common/bucket/putBucketVersioning")),i(n,T("../common/bucket/getBucketVersioning")),i(n,T("../common/bucket/getBucketInventory")),i(n,T("../common/bucket/deleteBucketInventory")),i(n,T("../common/bucket/listBucketInventory")),i(n,T("../common/bucket/putBucketInventory")),i(n,T("../common/bucket/abortBucketWorm")),i(n,T("../common/bucket/completeBucketWorm")),i(n,T("../common/bucket/extendBucketWorm")),i(n,T("../common/bucket/getBucketWorm")),i(n,T("../common/bucket/initiateBucketWorm")),i(n,T("./managed-upload")),i(n,T("../common/multipart-copy")),i(n,T("../common/multipart")),i(n,T("../common/parallel")),n.signature=function(e){return this.debug("authorization stringToSign: %s",e,"info"),f.computeSignature(this.options.accessKeySecret,e,this.options.headerEncoding)},n._getReqUrl=m,n.authorization=function(e,t,r,n){e=f.buildCanonicalString(e.toUpperCase(),t,{headers:n,parameters:r});return f.authorization(this.options.accessKeyId,this.options.accessKeySecret,e,this.options.headerEncoding)},n.request=function(){var t=(0,r.default)(u.default.mark(function e(n){var i=this;return u.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.options.retryMax)return e.next=3,b(j.bind(this),this.options.retryMax,{errorHandler:function(e){return!!function(e){if(n.stream)return!1;var t=[-1,-2].includes(e.status),r=i.options.requestErrorRetryHandle||function(){return!0};return t&&r(e)}(e)}})(n);e.next=6;break;case 3:return e.abrupt("return",e.sent);case 6:return e.abrupt("return",j.call(this,n));case 7:case"end":return e.stop()}},e,this)}));return function(e){return t.apply(this,arguments)}}(),n._getResource=function(e){var t="/";return e.bucket&&(t+="".concat(e.bucket,"/")),e.object&&(t+=h(e.object,this.options.headerEncoding)),t},n._escape=function(e){return s.encodeURIComponent(e).replace(/%2F/g,"/")},n._getUserAgent=function(){var e=_&&_.browser?"js":"nodejs",e="aliyun-sdk-".concat(e,"/").concat(l.version),t=o.description;return!t&&_&&(t="Node.js ".concat(_.version.slice(1)," on ").concat(_.platform," ").concat(_.arch)),this._checkUserAgent("".concat(e," ").concat(t))},n._checkUserAgent=function(e){return e.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta")},n.checkBrowserAndVersion=function(e,t){return c.name===e&&c.version.split(".")[0]===t},n.parseXML=function(e){return new Promise(function(r,n){k.isBuffer(e)&&(e=e.toString()),t.parseString(e,{explicitRoot:!1,explicitArray:!1},function(e,t){e?n(e):r(t)})})},n.requestError=function(){var t=(0,r.default)(u.default.mark(function e(t){var r,n,i,o;return u.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=null,t.data&&t.data.length){e.next=5;break}-1===t.status||-2===t.status?((r=new Error(t.message)).name=t.name,r.status=t.status,r.code=t.name):(404===t.status?((r=new Error("Object not exists")).name="NoSuchKeyError",r.status=404,r.code="NoSuchKey"):412===t.status?((r=new Error("Pre condition failed")).name="PreconditionFailedError",r.status=412,r.code="PreconditionFailed"):((r=new Error("Unknow error, status: ".concat(t.status))).name="UnknownError",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)).name=i.Code?"".concat(i.Code,"Error"):"UnknownError",r.status=t.status,r.code=i.Code,r.requestId=i.RequestId,r.hostId=i.HostId,r.serverTime=i.ServerTime;case 32:return this.debug("generate error %j",r,"error"),e.abrupt("return",r);case 34:case"end":return e.stop()}},e,this,[[7,16]])}));return function(e){return t.apply(this,arguments)}}()}.call(this)}.call(this,{isBuffer:T("../../node_modules/is-buffer/index.js")},T("_process"))},{"../../node_modules/is-buffer/index.js":366,"../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":49,"../common/signUtils":50,"../common/utils/createRequest":56,"../common/utils/encoder":59,"../common/utils/isFunction":68,"../common/utils/retry":74,"../common/utils/setSTSToken":76,"./bucket":2,"./managed-upload":4,"./object":5,"./version":6,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,_process:467,agentkeepalive:81,bowser:88,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305,"core-js/modules/es.string.split.js":307,"core-js/modules/es.symbol.description.js":310,"core-js/modules/es.symbol.js":313,debug:465,"merge-descriptors":372,platform:379,urllib:475,utility:474,xml2js:426}],4:[function(i,e,o){!function(s){!function(){"use strict";var e=i("@babel/runtime/helpers/interopRequireDefault"),b=e(i("@babel/runtime/regenerator")),g=(i("core-js/modules/es.function.name.js"),i("core-js/modules/es.object.to-string.js"),i("core-js/modules/es.promise.js"),i("core-js/modules/es.array.from.js"),i("core-js/modules/es.string.iterator.js"),i("core-js/modules/es.array.map.js"),i("core-js/modules/es.array.filter.js"),i("core-js/modules/es.array.find.js"),i("core-js/modules/es.array.concat.js"),i("core-js/modules/es.regexp.to-string.js"),i("core-js/modules/es.array.slice.js"),i("core-js/modules/es.array.iterator.js"),i("core-js/modules/es.array-buffer.slice.js"),i("core-js/modules/es.typed-array.uint8-array.js"),i("core-js/modules/es.typed-array.copy-within.js"),i("core-js/modules/es.typed-array.every.js"),i("core-js/modules/es.typed-array.fill.js"),i("core-js/modules/es.typed-array.filter.js"),i("core-js/modules/es.typed-array.find.js"),i("core-js/modules/es.typed-array.find-index.js"),i("core-js/modules/es.typed-array.for-each.js"),i("core-js/modules/es.typed-array.includes.js"),i("core-js/modules/es.typed-array.index-of.js"),i("core-js/modules/es.typed-array.iterator.js"),i("core-js/modules/es.typed-array.join.js"),i("core-js/modules/es.typed-array.last-index-of.js"),i("core-js/modules/es.typed-array.map.js"),i("core-js/modules/es.typed-array.reduce.js"),i("core-js/modules/es.typed-array.reduce-right.js"),i("core-js/modules/es.typed-array.reverse.js"),i("core-js/modules/es.typed-array.set.js"),i("core-js/modules/es.typed-array.slice.js"),i("core-js/modules/es.typed-array.some.js"),i("core-js/modules/es.typed-array.sort.js"),i("core-js/modules/es.typed-array.subarray.js"),i("core-js/modules/es.typed-array.to-locale-string.js"),i("core-js/modules/es.typed-array.to-string.js"),e(i("@babel/runtime/helpers/asyncToGenerator"))),e=i("util"),f=i("path"),p=i("mime"),v=i("copy-to"),d=i("../common/utils/isBlob").isBlob,h=i("../common/utils/isFile").isFile,m=i("../common/utils/isBuffer").isBuffer,t=o;t.multipartUpload=function(){var r=(0,g.default)(b.default.mark(function e(t,r){var n,i,o,s,a,u,l,c=arguments;return b.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=2this.fileBuffer.length?this.fileBuffer.length:n;this.start=n,t=this.push(this.fileBuffer.slice(r,n))}},n.prototype._read=function(t){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);t=t||16384;var r=this;this.reader.onload=function(e){r.fileBuffer=s.from(new Uint8Array(e.target.result)),r.file=null,r.readFileAndPush(t)},0===this.start?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(t)},t._createBuffer=function(){var n=(0,g.default)(b.default.mark(function e(t,r,i){var o;return b.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!d(t)&&!h(t)){e.next=8;break}o=t.slice(r,i),e.next=4;var n=o;return n.arrayBuffer?n.arrayBuffer():new Promise(function(t,r){var e=new FileReader;e.onload=function(e){t(e.target.result)},e.onerror=function(e){r(e)},e.readAsArrayBuffer(n)});case 4:return o=e.sent,e.abrupt("return",s.from(o));case 8:if(m(t))return e.abrupt("return",t.subarray(r,i));e.next=12;break;case 12:throw new Error("_createBuffer requires File/Blob/Buffer.");case 13:case"end":return e.stop()}},e)}));return function(e,t,r){return n.apply(this,arguments)}}(),t._getPartSize=function(e,t){t=t||1048576;e=Math.ceil(e/1e4);return t\n\n',a=0;a\n")+"".concat(u.number,"\n"))+"".concat(u.etag,"\n")+"\n";return s+="",f={},(f=h(i=i||{},function(e){if(m(e))return null})).subres={uploadId:r},f.headers=y(f.headers,["x-oss-server-side-encryption","x-oss-storage-class"]),l=this._objectRequestParams("POST",t,f),d.encodeCallback(l,f),l.mime="xml",l.content=s,l.headers&&l.headers["x-oss-callback"]||(l.xmlResponse=!0),l.successStatuses=[200],e.next=17,this.request(l);case 17:if(c=e.sent,i.progress)return e.next=21,i.progress(1,null,c.res);e.next=21;break;case 21:return f={res:c.res,bucket:l.bucket,name:t,etag:c.res.headers.etag},l.headers&&l.headers["x-oss-callback"]&&(f.data=JSON.parse(c.data.toString())),e.abrupt("return",f);case 24:case"end":return e.stop()}},e,this)}));return function(e,t,r,n){return i.apply(this,arguments)}}(),e._uploadPart=function(){var o=(0,t.default)(p.default.mark(function e(t,r,n,i,o){var s,a,u;return p.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return s={},l(o=o||{}).to(s),s.headers=s.headers||{},s.headers["Content-Length"]=i.size,s.headers=y(s.headers,["x-oss-server-side-encryption"]),s.subres={partNumber:n,uploadId:r},(a=this._objectRequestParams("PUT",t,s)).mime=s.mime,c&&c.browser?a.content=i.content:a.stream=i.stream,a.successStatuses=[200],a.disabledMD5=o.disabledMD5,e.next=15,this.request(a);case 15:if((u=e.sent).res.headers.etag){e.next=18;break}throw new Error("Please set the etag of expose-headers in OSS \n https://help.aliyun.com/document_detail/32069.html");case 18:return i.stream&&(i.stream=null,a.stream=null),e.abrupt("return",{name:t,etag:u.res.headers.etag,res:u.res});case 20:case"end":return e.stop()}},e,this)}));return function(e,t,r,n,i){return o.apply(this,arguments)}}()}.call(this)}.call(this,r("_process"))},{"./callback":24,"./utils/deepCopy":58,"./utils/isBuffer":65,"./utils/omit":73,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,_process:467,"copy-to":94,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.filter.js":274,"core-js/modules/es.array.map.js":280,"core-js/modules/es.array.sort.js":282,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301}],31:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),u=n(e("@babel/runtime/regenerator")),i=n(e("@babel/runtime/helpers/asyncToGenerator")),l=e("url"),c=e("utility"),f=e("copy-to"),p=e("../../common/signUtils"),d=e("../utils/isIP").isIP,h=e("../utils/setSTSToken").setSTSToken,m=e("../utils/isFunction").isFunction;r.asyncSignatureUrl=function(){var r=(0,i.default)(u.default.mark(function e(t,r){var n,i,o,s,a;return u.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(d(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");e.next=2;break;case 2:if(r=r||{},t=this._objectName(t),r.method=r.method||"GET",n=c.timestamp()+(r.expires||1800),i={bucket:this.options.bucket,object:t},o=this._getResource(i),this.options.stsToken&&m(this.options.refreshSTSToken))return e.next=11,h.call(this);e.next=11;break;case 11:return this.options.stsToken&&(r["security-token"]=this.options.stsToken),s=p._signatureForURL(this.options.accessKeySecret,r,o,n),(a=l.parse(this._getReqUrl(i))).query={OSSAccessKeyId:this.options.accessKeyId,Expires:n,Signature:s.Signature},f(s.subResource).to(a.query),e.abrupt("return",a.format());case 17:case"end":return e.stop()}},e,this)}));return function(e,t){return r.apply(this,arguments)}}()},{"../../common/signUtils":50,"../utils/isFunction":68,"../utils/isIP":69,"../utils/setSTSToken":76,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"copy-to":94,url:472,utility:474}],32:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),a=n(e("@babel/runtime/regenerator")),u=(e("core-js/modules/es.object.to-string.js"),e("core-js/modules/web.dom-collections.for-each.js"),e("core-js/modules/es.object.keys.js"),e("core-js/modules/es.array.find.js"),e("core-js/modules/es.array.includes.js"),e("core-js/modules/es.array.concat.js"),e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.replace.js"),n(e("@babel/runtime/helpers/typeof"))),o=n(e("@babel/runtime/helpers/asyncToGenerator")),i=e("../utils/checkBucketName").checkBucketName,n=r,l=["content-type","content-encoding","content-language","content-disposition","cache-control","expires"];n.copy=function(){var i=(0,o.default)(a.default.mark(function e(t,r,n,i){var o,s;return a.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(i=(i="object"===(0,u.default)(n)?n:i)||{}).headers=i.headers||{},Object.keys(i.headers).forEach(function(e){i.headers["x-oss-copy-source-".concat(e.toLowerCase())]=i.headers[e]}),(i.meta||Object.keys(i.headers).find(function(e){return l.includes(e.toLowerCase())}))&&(i.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(i.meta,i.headers),r=this._getSourceName(r,n),i.versionId&&(r="".concat(r,"?versionId=").concat(i.versionId)),i.headers["x-oss-copy-source"]=r,(o=this._objectRequestParams("PUT",t,i)).xmlResponse=!0,o.successStatuses=[200,304],e.next=14,this.request(o);case 14:return o=e.sent,s=(s=o.data)&&{etag:s.ETag,lastModified:s.LastModified},e.abrupt("return",{data:s,res:o.res});case 18:case"end":return e.stop()}},e,this)}));return function(e,t,r,n){return i.apply(this,arguments)}}(),n._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")),i(t),e=encodeURIComponent(e),e="/".concat(t,"/").concat(e)}},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,"@babel/runtime/regenerator":80,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.find.js":275,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],33:[function(e,t,r){"use strict";var n=e("@babel/runtime/helpers/interopRequireDefault"),i=n(e("@babel/runtime/regenerator")),o=(e("core-js/modules/es.object.assign.js"),n(e("@babel/runtime/helpers/asyncToGenerator")));r.delete=function(){var t=(0,o.default)(i.default.mark(function e(t){var r,n=arguments;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(r=1t[0]?1:e[0]").concat(e[t],""):"object"===o(e[t])?n+="<".concat(t,">").concat(r(e[t]),""):"array"===o(e[t])?n+=e[t].map(function(e){return"<".concat(t,">").concat(r(e),"")}).join(""):n+="<".concat(t,">").concat(e[t].toString(),""))}):n+=e.toString(),n}},{"./formatObjKey":61,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.map.js":280,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],73:[function(e,t,r){"use strict";function o(e,t){var r,n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(r="Object"===r&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length)return n&&(e=n),r=0,{s:t=function(){},n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw i}}}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=this.options.refreshSTSTokenInterval)return this.stsTokenFreshTime=t,e.next=7,this.options.refreshSTSToken();e.next=12;break;case 7:r=e.sent,(r=s.formatObjKey(r,"firstLowerCase")).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)}))).apply(this,arguments)}function u(e){var r=Object.keys(e);["accessKeySecret","accessKeyId","stsToken"].forEach(function(t){if(!r.find(function(e){return e===t}))throw Error("refreshSTSToken must return contains ".concat(t))})}r.setSTSToken=function(){return a.apply(this,arguments)},r.checkCredentials=u},{"./formatObjKey":61,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.find.js":275,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291}],77:[function(e,t,r){function u(e,t,r,n,i,o,s){try{var a=e[o](s),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,i)}t.exports=function(a){return function(){var e=this,s=arguments;return new Promise(function(t,r){var n=a.apply(e,s);function i(e){u(n,t,r,i,o,"next",e)}function o(e){u(n,t,r,i,o,"throw",e)}i(void 0)})}},t.exports.__esModule=!0,t.exports.default=t.exports},{}],78:[function(e,t,r){t.exports=function(e){return e&&e.__esModule?e:{default:e}},t.exports.__esModule=!0,t.exports.default=t.exports},{}],79:[function(e,t,r){function n(e){return t.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t.exports.__esModule=!0,t.exports.default=t.exports,n(e)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports},{}],80:[function(e,t,r){t.exports=e("regenerator-runtime")},{"regenerator-runtime":395}],81:[function(e,t,r){function n(){}t.exports=n,t.exports.HttpsAgent=n},{}],82:[function(x,k,e){!function(p){!function(){"use strict";var e=x("object-assign");function d(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i>16&255,o[s++]=t>>8&255,o[s++]=255&t;2===n&&(t=u[e.charCodeAt(r)]<<2|u[e.charCodeAt(r+1)]>>4,o[s++]=255&t);1===n&&(t=u[e.charCodeAt(r)]<<10|u[e.charCodeAt(r+1)]<<4|u[e.charCodeAt(r+2)]>>2,o[s++]=t>>8&255,o[s++]=255&t);return o},r.fromByteArray=function(e){for(var t,r=e.length,n=r%3,i=[],o=0,s=r-n;o>18&63]+a[e>>12&63]+a[e>>6&63]+a[63&e]}(n));return i.join("")}(e,o,s>2]+a[t<<4&63]+"==")):2==n&&(t=(e[r-2]<<8)+e[r-1],i.push(a[t>>10]+a[t>>4&63]+a[t<<2&63]+"="));return i.join("")};for(var a=[],u=[],l="undefined"!=typeof Uint8Array?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,o=n.length;it[1][r])return 1;if(t[0][r]!==t[1][r])return-1;if(0===r)return 0}}function o(e,t,r){var n,i=a,o=("string"==typeof t&&(r=t,t=void 0),void 0===t&&(t=!1),""+(i=r?s(r):i).version);for(n in e)if(e.hasOwnProperty(n)&&i[n]){if("string"!=typeof e[n])throw new Error("Browser version in the minVersion map should be a string: "+n+": "+String(e));return x([o,e[n]])<0}return t}return a.test=function(e){for(var t=0;t>>1;case"base64":return S(e).length;default:if(i)return n?-1:E(e).length;t=(""+t).toLowerCase(),i=!0}}function r(e,t,r){var n,i=!1;if((t=void 0===t||t<0?0:t)>this.length)return"";if((r=void 0===r||r>this.length?this.length:r)<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e=e||"utf8";;)switch(e){case"hex":var o=this,s=t,a=r,u=o.length;(!a||a<0||u=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=f.from(t,n)),f.isBuffer(t))return 0===t.length?-1:h(e,t,r,n,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?(i?Uint8Array.prototype.indexOf:Uint8Array.prototype.lastIndexOf).call(e,t,r):h(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function h(e,t,r,n,i){var o=1,s=e.length,a=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;s/=o=2,a/=2,r/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i)for(var l=-1,c=r;c>8,n=n%256,i.push(n),i.push(r);return i}(t,e.length-r),e,r,n)}function T(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i>>10&1023|55296),c=56320|1023&c),n.push(c),i+=f}var p=n,d=p.length;if(d<=g)return String.fromCharCode.apply(String,p);for(var h="",m=0;mt&&(e+=" ... "),""},f.prototype.compare=function(e,t,r,n,i){if(A(e,Uint8Array)&&(e=f.from(e,e.offset,e.byteLength)),!f.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),(t=void 0===t?0:t)<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(i<=n&&r<=t)return 0;if(i<=n)return-1;if(r<=t)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(n>>>=0),s=(r>>>=0)-(t>>>=0),a=Math.min(o,s),u=this.slice(n,i),l=e.slice(t,r),c=0;c>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-t;if((void 0===r||ithis.length)throw new RangeError("Attempt to write outside buffer bounds");n=n||"utf8";for(var o,s,a,u=!1;;)switch(n){case"hex":var l=this,c=e,f=t,p=r,d=(f=Number(f)||0,l.length-f);(!p||d<(p=Number(p)))&&(p=d),(d=c.length)/2e.length)throw new RangeError("Index out of range")}function w(e,t,r,n){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function j(e,t,r,n,i){return t=+t,r>>>=0,i||w(e,0,r,4),o.write(e,t,r,n,23,4),r+4}function x(e,t,r,n,i){return t=+t,r>>>=0,i||w(e,0,r,8),o.write(e,t,r,n,52,8),r+8}f.prototype.slice=function(e,t){var r=this.length,r=((e=~~e)<0?(e+=r)<0&&(e=0):r>>=0,t>>>=0,r||m(e,t,this.length);for(var n=this[e],i=1,o=0;++o>>=0,t>>>=0,r||m(e,t,this.length);for(var n=this[e+--t],i=1;0>>=0,t||m(e,1,this.length),this[e]},f.prototype.readUInt16LE=function(e,t){return e>>>=0,t||m(e,2,this.length),this[e]|this[e+1]<<8},f.prototype.readUInt16BE=function(e,t){return e>>>=0,t||m(e,2,this.length),this[e]<<8|this[e+1]},f.prototype.readUInt32LE=function(e,t){return e>>>=0,t||m(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},f.prototype.readUInt32BE=function(e,t){return e>>>=0,t||m(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},f.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||m(e,t,this.length);for(var n=this[e],i=1,o=0;++o>>=0,t>>>=0,r||m(e,t,this.length);for(var n=t,i=1,o=this[e+--n];0>>=0,t||m(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},f.prototype.readInt16LE=function(e,t){e>>>=0,t||m(e,2,this.length);t=this[e]|this[e+1]<<8;return 32768&t?4294901760|t:t},f.prototype.readInt16BE=function(e,t){e>>>=0,t||m(e,2,this.length);t=this[e+1]|this[e]<<8;return 32768&t?4294901760|t:t},f.prototype.readInt32LE=function(e,t){return e>>>=0,t||m(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},f.prototype.readInt32BE=function(e,t){return e>>>=0,t||m(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},f.prototype.readFloatLE=function(e,t){return e>>>=0,t||m(e,4,this.length),o.read(this,e,!0,23,4)},f.prototype.readFloatBE=function(e,t){return e>>>=0,t||m(e,4,this.length),o.read(this,e,!1,23,4)},f.prototype.readDoubleLE=function(e,t){return e>>>=0,t||m(e,8,this.length),o.read(this,e,!0,52,8)},f.prototype.readDoubleBE=function(e,t){return e>>>=0,t||m(e,8,this.length),o.read(this,e,!1,52,8)},f.prototype.writeUIntLE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||v(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[t]=255&e;++o>>=0,r>>>=0,n||v(this,e,t,r,Math.pow(2,8*r)-1,0);var i=r-1,o=1;for(this[t+i]=255&e;0<=--i&&(o*=256);)this[t+i]=e/o&255;return t+r},f.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||v(this,e,t,1,255,0),this[t]=255&e,t+1},f.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||v(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},f.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||v(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},f.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||v(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},f.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||v(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},f.prototype.writeIntLE=function(e,t,r,n){e=+e,t>>>=0,n||v(this,e,t,r,(n=Math.pow(2,8*r-1))-1,-n);var i=0,o=1,s=0;for(this[t]=255&e;++i>0)-s&255;return t+r},f.prototype.writeIntBE=function(e,t,r,n){e=+e,t>>>=0,n||v(this,e,t,r,(n=Math.pow(2,8*r-1))-1,-n);var i=r-1,o=1,s=0;for(this[t+i]=255&e;0<=--i&&(o*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/o>>0)-s&255;return t+r},f.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||v(this,e,t,1,127,-128),this[t]=255&(e=e<0?255+e+1:e),t+1},f.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||v(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},f.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||v(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},f.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||v(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},f.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||v(this,e,t,4,2147483647,-2147483648),this[t]=(e=e<0?4294967295+e+1:e)>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},f.prototype.writeFloatLE=function(e,t,r){return j(this,e,t,!0,r)},f.prototype.writeFloatBE=function(e,t,r){return j(this,e,t,!1,r)},f.prototype.writeDoubleLE=function(e,t,r){return x(this,e,t,!0,r)},f.prototype.writeDoubleBE=function(e,t,r){return x(this,e,t,!1,r)},f.prototype.copy=function(e,t,r,n){if(!f.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r=r||0,n||0===n||(n=this.length),t>=e.length&&(t=e.length),(n=0=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length);var i=(n=e.length-t>>=0,r=void 0===r?this.length:r>>>0,"number"==typeof(e=e||0))for(o=t;o>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function S(e){return _.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(k,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function O(e,t,r,n){for(var i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function A(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function I(e){return e!=e}}.call(this)}.call(this,D("buffer").Buffer)},{"base64-js":87,buffer:90,ieee754:357}],91:[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"}},{}],92:[function(e,t,r){"use strict";var n=e("get-intrinsic"),i=e("./"),o=i(n("String.prototype.indexOf"));t.exports=function(e,t){t=n(e,!!t);return"function"==typeof t&&-1>8&255]}function i(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function t(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function B(e){return R(e,23,4)}function F(e){return R(e,52,8)}function o(e,t){V(e[k],t,{get:function(){return j(this)[t]}})}function s(e,t,r,n){if(r=y(r),e=j(e),r+t>e.byteLength)throw D(_);var i=j(e.buffer).bytes,r=r+e.byteOffset,e=H(i,r,r+t);return n?e:J(e)}function a(e,t,r,n,i,o){if(r=y(r),e=j(e),r+t>e.byteLength)throw D(_);for(var s=j(e.buffer).bytes,a=r+e.byteOffset,u=n(+i),l=0;lQ;)(P=Z[Q++])in E||p(E,P,T[P]);S.constructor=E}g&&W(A)!==I&&g(A,I);var u=new O(new E(2)),ee=l(A.setInt8);u.setInt8(0,2147483648),u.setInt8(1,2147483649),!u.getInt8(0)&&u.getInt8(1)||d(A,{setInt8:function(e,t){ee(this,e,t<<24>>24)},setUint8:function(e,t){ee(this,e,t<<24>>24)}},{unsafe:!0})}else S=(E=function(e){m(this,S);e=y(e);x(this,{bytes:Y($(e),0),byteLength:e}),c||(this.byteLength=e)})[k],A=(O=function(e,t,r){m(this,A),m(e,S);var n=j(e).byteLength,t=U(t);if(t<0||n>24},getUint8:function(e){return s(this,1,e)[0]},getInt16:function(e){e=s(this,2,e,1>16},getUint16:function(e){e=s(this,2,e,1>>0},getFloat32:function(e){return C(s(this,4,e,1]*>)/g,b=/\$([$&'`]|\d{1,2})/g;t.exports=function(o,s,a,u,l,e){var c=a+o.length,f=u.length,t=b;return void 0!==l&&(l=i(l),t=y),h(e,t,function(e,t){var r;switch(d(t,0)){case"$":return"$";case"&":return o;case"`":return m(s,0,a);case"'":return m(s,c);case"<":r=l[m(t,1,-1)];break;default:var n,i=+t;if(0==i)return e;if(f>1,l=23===t?h(2,-24)-h(2,-77):0,c=e<0||0===e&&1/e<0?1:0,f=0;for((e=d(e))!=e||e===1/0?(i=e!=e?1:0,n=r):(n=m(y(e)/b),e*(o=h(2,-n))<1&&(n--,o*=2),2<=(e+=1<=n+u?l/o:l*h(2,1-u))*o&&(n++,o/=2),r<=n+u?(i=0,n=r):1<=n+u?(i=(e*o-1)*h(2,t),n+=u):(i=e*h(2,u-1)*h(2,t),n=0));8<=t;)s[f++]=255&i,i/=256,t-=8;for(n=n<>1,a=i-7,u=n-1,i=e[u--],l=127&i;for(i>>=7;0>=-a,a+=t;0"+e+""},y=function(){try{o=new ActiveXObject("htmlfile")}catch(e){}y="undefined"==typeof document||document.domain&&o?i(o):(e=f("iframe"),t="java"+d+":",e.style.display="none",c.appendChild(e),e.src=String(t),(t=e.contentWindow.document).open(),t.write(m("document.F=Object")),t.close(),t.F);for(var e,t,r=u.length;r--;)delete y[p][u[r]];return y()};l[h]=!0,t.exports=Object.create||function(e,t){var r;return null!==e?(n[p]=s(e),r=new n,n[p]=null,r[h]=e):r=y(),void 0===t?r:a.f(r,t)}},{"../internals/an-object":101,"../internals/document-create-element":135,"../internals/enum-bug-keys":148,"../internals/hidden-keys":165,"../internals/html":167,"../internals/object-define-properties":197,"../internals/shared-key":235}],197:[function(e,t,r){var n=e("../internals/descriptors"),i=e("../internals/v8-prototype-define-bug"),a=e("../internals/object-define-property"),u=e("../internals/an-object"),l=e("../internals/to-indexed-object"),c=e("../internals/object-keys");r.f=n&&!i?Object.defineProperties:function(e,t){u(e);for(var r,n=l(t),i=c(t),o=i.length,s=0;si;)!s(n,r=t[i++])||~u(o,r)||c(o,r);return o}},{"../internals/array-includes":110,"../internals/function-uncurry-this":157,"../internals/has-own-property":164,"../internals/hidden-keys":165,"../internals/to-indexed-object":247}],206:[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":148,"../internals/object-keys-internal":205}],207:[function(e,t,r){"use strict";var n={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!n.call({1:2},1);r.f=o?function(e){e=i(this,e);return!!e&&e.enumerable}:n},{}],208:[function(e,t,r){var i=e("../internals/function-uncurry-this"),o=e("../internals/an-object"),s=e("../internals/a-possible-prototype");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var r,n=!1,e={};try{(r=i(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),n=e instanceof Array}catch(e){}return function(e,t){return o(e),s(t),n?r(e,t):e.__proto__=t,e}}():void 0)},{"../internals/a-possible-prototype":97,"../internals/an-object":101,"../internals/function-uncurry-this":157}],209:[function(e,t,r){function n(a){return function(e){for(var t,r=c(e),n=l(r),i=n.length,o=0,s=[];ob)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$c")})},{"../internals/fails":150,"../internals/global":163}],230:[function(e,t,r){var n=e("../internals/global").TypeError;t.exports=function(e){if(null==e)throw n("Can't call method on "+e);return e}},{"../internals/global":163}],231:[function(e,t,r){t.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},{}],232:[function(e,t,r){var n=e("../internals/global"),i=Object.defineProperty;t.exports=function(t,r){try{i(n,t,{value:r,configurable:!0,writable:!0})}catch(e){n[t]=r}return r}},{"../internals/global":163}],233:[function(e,t,r){"use strict";var n=e("../internals/get-built-in"),i=e("../internals/object-define-property"),o=e("../internals/well-known-symbol"),s=e("../internals/descriptors"),a=o("species");t.exports=function(e){var e=n(e),t=i.f;s&&e&&!e[a]&&t(e,a,{configurable:!0,get:function(){return this}})}},{"../internals/descriptors":134,"../internals/get-built-in":158,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],234:[function(e,t,r){var n=e("../internals/object-define-property").f,i=e("../internals/has-own-property"),o=e("../internals/well-known-symbol")("toStringTag");t.exports=function(e,t,r){(e=e&&!r?e.prototype:e)&&!i(e,o)&&n(e,o,{configurable:!0,value:t})}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],235:[function(e,t,r){var n=e("../internals/shared"),i=e("../internals/uid"),o=n("keys");t.exports=function(e){return o[e]||(o[e]=i(e))}},{"../internals/shared":237,"../internals/uid":263}],236:[function(e,t,r){var n=e("../internals/global"),e=e("../internals/set-global"),i="__core-js_shared__",n=n[i]||e(i,{});t.exports=n},{"../internals/global":163,"../internals/set-global":232}],237:[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.22.1",mode:n?"pure":"global",copyright:"\xa9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.1/LICENSE",source:"https://github.com/zloirock/core-js"})},{"../internals/is-pure":181,"../internals/shared-store":236}],238:[function(e,t,r){var n=e("../internals/an-object"),i=e("../internals/a-constructor"),o=e("../internals/well-known-symbol")("species");t.exports=function(e,t){var e=n(e).constructor;return void 0===e||null==(e=n(e)[o])?t:i(e)}},{"../internals/a-constructor":96,"../internals/an-object":101,"../internals/well-known-symbol":268}],239:[function(e,t,r){function n(i){return function(e,t){var r,e=s(a(e)),t=o(t),n=e.length;return t<0||n<=t?i?"":void 0:(r=l(e,t))<55296||56319=t.length?{value:e.target=void 0,done:!0}:"keys"==r?{value:n,done:!1}:"values"==r?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}},"values"),o.Arguments=o.Array);if(i("keys"),i("values"),i("entries"),!l&&e&&"values"!==s.name)try{a(s,"name",{value:"values"})}catch(e){}},{"../internals/add-to-unscopables":98,"../internals/define-iterator":132,"../internals/descriptors":134,"../internals/internal-state":173,"../internals/is-pure":181,"../internals/iterators":187,"../internals/object-define-property":198,"../internals/to-indexed-object":247}],279:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/function-uncurry-this"),o=e("../internals/indexed-object"),s=e("../internals/to-indexed-object"),e=e("../internals/array-method-is-strict"),a=i([].join),i=o!=Object,o=e("join",",");n({target:"Array",proto:!0,forced:i||!o},{join:function(e){return a(s(this),void 0===e?",":e)}})},{"../internals/array-method-is-strict":114,"../internals/export":149,"../internals/function-uncurry-this":157,"../internals/indexed-object":170,"../internals/to-indexed-object":247}],280:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/array-iteration").map;n({target:"Array",proto:!0,forced:!e("../internals/array-method-has-species-support")("map")},{map:function(e){return i(this,e,1c(t)?1:-1})),r=i.length,s=0;sO;O++)u(v,T=S[O])&&!u(E,T)&&y(E,T,m(v,T));a(i,e,(E.prototype=w).constructor=E)}},{"../internals/descriptors":134,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/inherit-if-required":171,"../internals/is-forced":178,"../internals/is-symbol":183,"../internals/object-define-property":198,"../internals/object-get-own-property-descriptor":199,"../internals/object-get-own-property-names":201,"../internals/object-is-prototype-of":204,"../internals/redefine":222,"../internals/string-trim":241,"../internals/this-number-value":244,"../internals/to-primitive":253}],287:[function(e,t,r){var n=e("../internals/export"),e=e("../internals/object-assign");n({target:"Object",stat:!0,forced:Object.assign!==e},{assign:e})},{"../internals/export":149,"../internals/object-assign":195}],288:[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":149,"../internals/object-to-array":209}],289:[function(e,t,r){var n=e("../internals/export"),i=e("../internals/native-symbol"),o=e("../internals/fails"),s=e("../internals/object-get-own-property-symbols"),a=e("../internals/to-object");n({target:"Object",stat:!0,forced:!i||o(function(){s.f(1)})},{getOwnPropertySymbols:function(e){var t=s.f;return t?t(a(e)):[]}})},{"../internals/export":149,"../internals/fails":150,"../internals/native-symbol":191,"../internals/object-get-own-property-symbols":202,"../internals/to-object":250}],290:[function(e,t,r){var n=e("../internals/export"),i=e("../internals/to-object"),o=e("../internals/object-keys");n({target:"Object",stat:!0,forced:e("../internals/fails")(function(){o(1)})},{keys:function(e){return o(i(e))}})},{"../internals/export":149,"../internals/fails":150,"../internals/object-keys":206,"../internals/to-object":250}],291:[function(e,t,r){var n=e("../internals/to-string-tag-support"),i=e("../internals/redefine"),e=e("../internals/object-to-string");n||i(Object.prototype,"toString",e,{unsafe:!0})},{"../internals/object-to-string":210,"../internals/redefine":222,"../internals/to-string-tag-support":255}],292:[function(e,t,r){"use strict";var n=e("../internals/export"),c=e("../internals/function-call"),f=e("../internals/a-callable"),i=e("../internals/new-promise-capability"),o=e("../internals/perform"),p=e("../internals/iterate");n({target:"Promise",stat:!0,forced:e("../internals/promise-statics-incorrect-iteration")},{all:function(e){var a=this,t=i.f(a),u=t.resolve,l=t.reject,r=o(function(){var n=f(a.resolve),i=[],o=0,s=1;p(e,function(e){var t=o++,r=!1;s++,c(n,a,e).then(function(e){r||(r=!0,i[t]=e,--s||u(i))},l)}),--s||u(i)});return r.error&&l(r.value),t.promise}})},{"../internals/a-callable":95,"../internals/export":149,"../internals/function-call":155,"../internals/iterate":184,"../internals/new-promise-capability":193,"../internals/perform":214,"../internals/promise-statics-incorrect-iteration":218}],293:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/is-pure"),o=e("../internals/promise-constructor-detection").CONSTRUCTOR,s=e("../internals/promise-native-constructor"),a=e("../internals/get-built-in"),u=e("../internals/is-callable"),e=e("../internals/redefine"),l=s&&s.prototype;n({target:"Promise",proto:!0,forced:o,real:!0},{catch:function(e){return this.then(void 0,e)}}),!i&&u(s)&&(n=a("Promise").prototype.catch,l.catch!==n&&e(l,"catch",n,{unsafe:!0}))},{"../internals/export":149,"../internals/get-built-in":158,"../internals/is-callable":176,"../internals/is-pure":181,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216,"../internals/redefine":222}],294:[function(e,N,L){"use strict";function o(e,t){var r,n,i,o,s=t.value,a=t.state==E,u=a?e.ok:e.fail,l=e.resolve,c=e.reject,f=e.domain;try{u?(a||(t.rejection===O&&(o=t,h(m,d,function(){var e=o.facade;p?k.emit("rejectionHandled",e):D(ee,e,o.value)})),t.rejection=S),!0===u?r=s:(f&&f.enter(),r=u(s),f&&(f.exit(),i=!0)),r===e.promise?c(j("Promise-chain cycle")):(n=A(r))?h(n,r,l,c):l(r)):c(s)}catch(e){f&&!i&&f.exit(),c(e)}}var r,t,n,i=e("../internals/export"),B=e("../internals/is-pure"),p=e("../internals/engine-is-node"),d=e("../internals/global"),h=e("../internals/function-call"),F=e("../internals/redefine"),q=e("../internals/redefine-all"),s=e("../internals/object-set-prototype-of"),U=e("../internals/set-to-string-tag"),G=e("../internals/set-species"),W=e("../internals/a-callable"),a=e("../internals/is-callable"),X=e("../internals/is-object"),V=e("../internals/an-instance"),z=e("../internals/species-constructor"),m=e("../internals/task").set,u=e("../internals/microtask"),H=e("../internals/host-report-errors"),K=e("../internals/perform"),$=e("../internals/queue"),l=e("../internals/internal-state"),c=e("../internals/promise-native-constructor"),f=e("../internals/promise-constructor-detection"),e=e("../internals/new-promise-capability"),y="Promise",b=f.CONSTRUCTOR,Y=f.REJECTION_EVENT,f=f.SUBCLASSING,g=l.getterFor(y),J=l.set,l=c&&c.prototype,v=c,w=l,j=d.TypeError,x=d.document,k=d.process,_=e.f,Z=_,Q=!!(x&&x.createEvent&&d.dispatchEvent),T="unhandledrejection",ee="rejectionhandled",E=1,te=2,S=1,O=2,A=function(e){var t;return!(!X(e)||!a(t=e.then))&&t},I=function(r,i){r.notified||(r.notified=!0,u(function(){for(var e,n,t=r.reactions;e=t.get();)o(e,r);r.notified=!1,i&&!r.rejection&&(n=r,h(m,d,function(){var e=n.facade,t=n.value,r=R(n);if(r&&(r=K(function(){p?k.emit("unhandledRejection",t,e):D(T,e,t)}),n.rejection=p||R(n)?O:S,r.error))throw r.value}))}))},D=function(e,t,r){var n;Q?((n=x.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),d.dispatchEvent(n)):n={promise:t,reason:r},!Y&&(t=d["on"+e])?t(n):e===T&&H("Unhandled promise rejection",r)},R=function(e){return e.rejection!==S&&!e.parent},C=function(t,r,n){return function(e){t(r,e,n)}},M=function(e,t,r){e.done||(e.done=!0,(e=r?r:e).value=t,e.state=te,I(e,!0))},P=function(r,e,t){if(!r.done){r.done=!0,t&&(r=t);try{if(r.facade===e)throw j("Promise can't be resolved itself");var n=A(e);n?u(function(){var t={done:!1};try{h(n,e,C(P,t,r),C(M,t,r))}catch(e){M(t,e,r)}}):(r.value=e,r.state=E,I(r,!1))}catch(e){M({done:!1},e,r)}}};if(b&&(w=(v=function(e){V(this,w),W(e),h(r,this);var t=g(this);try{e(C(P,t),C(M,t))}catch(e){M(t,e)}}).prototype,(r=function(e){J(this,{type:y,done:!1,notified:!1,parent:!1,reactions:new $,rejection:!1,state:0,value:void 0})}).prototype=q(w,{then:function(e,t){var r=g(this),n=_(z(this,v));return r.parent=!0,n.ok=!a(e)||e,n.fail=a(t)&&t,n.domain=p?k.domain:void 0,0==r.state?r.reactions.add(n):u(function(){o(n,r)}),n.promise}}),t=function(){var e=new r,t=g(e);this.promise=e,this.resolve=C(P,t),this.reject=C(M,t)},e.f=_=function(e){return e===v||void 0===e?new t:Z(e)},!B&&a(c)&&l!==Object.prototype)){n=l.then,f||F(l,"then",function(e,t){var r=this;return new v(function(e,t){h(n,r,e,t)}).then(e,t)},{unsafe:!0});try{delete l.constructor}catch(e){}s&&s(l,w)}i({global:!0,wrap:!0,forced:b},{Promise:v}),U(v,y,!1,!0),G(y)},{"../internals/a-callable":95,"../internals/an-instance":100,"../internals/engine-is-node":143,"../internals/export":149,"../internals/function-call":155,"../internals/global":163,"../internals/host-report-errors":166,"../internals/internal-state":173,"../internals/is-callable":176,"../internals/is-object":180,"../internals/is-pure":181,"../internals/microtask":189,"../internals/new-promise-capability":193,"../internals/object-set-prototype-of":208,"../internals/perform":214,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216,"../internals/queue":220,"../internals/redefine":222,"../internals/redefine-all":221,"../internals/set-species":233,"../internals/set-to-string-tag":234,"../internals/species-constructor":238,"../internals/task":243}],295:[function(e,t,r){e("../modules/es.promise.constructor"),e("../modules/es.promise.all"),e("../modules/es.promise.catch"),e("../modules/es.promise.race"),e("../modules/es.promise.reject"),e("../modules/es.promise.resolve")},{"../modules/es.promise.all":292,"../modules/es.promise.catch":293,"../modules/es.promise.constructor":294,"../modules/es.promise.race":296,"../modules/es.promise.reject":297,"../modules/es.promise.resolve":298}],296:[function(e,t,r){"use strict";var n=e("../internals/export"),o=e("../internals/function-call"),s=e("../internals/a-callable"),a=e("../internals/new-promise-capability"),u=e("../internals/perform"),l=e("../internals/iterate");n({target:"Promise",stat:!0,forced:e("../internals/promise-statics-incorrect-iteration")},{race:function(e){var r=this,n=a.f(r),i=n.reject,t=u(function(){var t=s(r.resolve);l(e,function(e){o(t,r,e).then(n.resolve,i)})});return t.error&&i(t.value),n.promise}})},{"../internals/a-callable":95,"../internals/export":149,"../internals/function-call":155,"../internals/iterate":184,"../internals/new-promise-capability":193,"../internals/perform":214,"../internals/promise-statics-incorrect-iteration":218}],297:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/function-call"),o=e("../internals/new-promise-capability");n({target:"Promise",stat:!0,forced:e("../internals/promise-constructor-detection").CONSTRUCTOR},{reject:function(e){var t=o.f(this);return i(t.reject,void 0,e),t.promise}})},{"../internals/export":149,"../internals/function-call":155,"../internals/new-promise-capability":193,"../internals/promise-constructor-detection":215}],298:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/get-built-in"),o=e("../internals/is-pure"),s=e("../internals/promise-native-constructor"),a=e("../internals/promise-constructor-detection").CONSTRUCTOR,u=e("../internals/promise-resolve"),l=i("Promise"),c=o&&!a;n({target:"Promise",stat:!0,forced:o||a},{resolve:function(e){return u(c&&this===l?s:this,e)}})},{"../internals/export":149,"../internals/get-built-in":158,"../internals/is-pure":181,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216,"../internals/promise-resolve":217}],299:[function(e,N,L){var t=e("../internals/descriptors"),r=e("../internals/global"),n=e("../internals/function-uncurry-this"),i=e("../internals/is-forced"),l=e("../internals/inherit-if-required"),c=e("../internals/create-non-enumerable-property"),o=e("../internals/object-get-own-property-names").f,f=e("../internals/object-is-prototype-of"),p=e("../internals/is-regexp"),d=e("../internals/to-string"),h=e("../internals/regexp-get-flags"),s=e("../internals/regexp-sticky-helpers"),a=e("../internals/proxy-accessor"),u=e("../internals/redefine"),m=e("../internals/fails"),y=e("../internals/has-own-property"),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"),k=r.RegExp,_=k.prototype,T=r.SyntaxError,E=n(_.exec),S=n("".charAt),O=n("".replace),A=n("".indexOf),B=n("".slice),F=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,I=/a/g,D=/a/g,e=new k(I)!==I,R=s.MISSED_STICKY,q=s.UNSUPPORTED_Y,v=t&&(!e||R||w||j||m(function(){return D[x]=!1,k(I)!=I||k(D)==D||"/a/i"!=k(I,"i")}));if(i("RegExp",v)){function C(e,t){var r,n,i=f(_,this),o=p(e),s=void 0===t,a=[],u=e;if(!i&&o&&s&&e.constructor===C)return e;if((o||f(_,e))&&(e=e.source,s&&(t=h(u))),e=void 0===e?"":d(e),t=void 0===t?"":d(t),u=e,o=t=w&&"dotAll"in I&&(r=!!t&&-1"===t&&u:if(""===c||y(s,c))throw new T("Invalid capture group name");s[c]=!0,u=!(o[o.length]=[c,l]),c="";continue}u?c+=t:i+=t}return[i,o]}(e))[0],a=s[1]),s=l(k(e,t),i?this:_,C),(r||n||a.length)&&(t=b(s),r&&(t.dotAll=!0,t.raw=C(function(e){for(var t,r=e.length,n=0,i="",o=!1;n<=r;n++)"\\"===(t=S(e,n))?i+=t+S(e,++n):o||"."!==t?("["===t?o=!0:"]"===t&&(o=!1),i+=t):i+="[\\s\\S]";return i}(e),o)),n&&(t.sticky=!0),a.length&&(t.groups=a)),e!==u)try{c(s,"source",""===u?"(?:)":u)}catch(e){}return s}for(var M=o(k),P=0;M.length>P;)a(C,k,M[P++]);(_.constructor=C).prototype=_,u(r,"RegExp",C)}g("RegExp")},{"../internals/create-non-enumerable-property":129,"../internals/descriptors":134,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/inherit-if-required":171,"../internals/internal-state":173,"../internals/is-forced":178,"../internals/is-regexp":182,"../internals/object-get-own-property-names":201,"../internals/object-is-prototype-of":204,"../internals/proxy-accessor":219,"../internals/redefine":222,"../internals/regexp-get-flags":226,"../internals/regexp-sticky-helpers":227,"../internals/regexp-unsupported-dot-all":228,"../internals/regexp-unsupported-ncg":229,"../internals/set-species":233,"../internals/to-string":256,"../internals/well-known-symbol":268}],300:[function(e,t,r){"use strict";var n=e("../internals/export"),e=e("../internals/regexp-exec");n({target:"RegExp",proto:!0,forced:/./.exec!==e},{exec:e})},{"../internals/export":149,"../internals/regexp-exec":224}],301:[function(e,t,r){"use strict";var n=e("../internals/function-name").PROPER,i=e("../internals/redefine"),o=e("../internals/an-object"),s=e("../internals/to-string"),a=e("../internals/fails"),u=e("../internals/regexp-get-flags"),e="toString",l=RegExp.prototype[e],a=a(function(){return"/a/b"!=l.call({source:"a",flags:"b"})}),n=n&&l.name!=e;(a||n)&&i(RegExp.prototype,e,function(){var e=o(this);return"/"+s(e.source)+"/"+s(u(e))},{unsafe:!0})},{"../internals/an-object":101,"../internals/fails":150,"../internals/function-name":156,"../internals/redefine":222,"../internals/regexp-get-flags":226,"../internals/to-string":256}],302:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/function-uncurry-this"),o=e("../internals/not-a-regexp"),s=e("../internals/require-object-coercible"),a=e("../internals/to-string"),e=e("../internals/correct-is-regexp-logic"),u=i("".indexOf);n({target:"String",proto:!0,forced:!e("includes")},{includes:function(e){return!!~u(a(s(this)),a(o(e)),1=t.length?{value:void 0,done:!0}:(t=n(t,r),e.index+=t.length,{value:t,done:!1})})},{"../internals/define-iterator":132,"../internals/internal-state":173,"../internals/string-multibyte":239,"../internals/to-string":256}],304:[function(e,t,r){"use strict";var i=e("../internals/function-call"),n=e("../internals/fix-regexp-well-known-symbol-logic"),l=e("../internals/an-object"),c=e("../internals/to-length"),f=e("../internals/to-string"),o=e("../internals/require-object-coercible"),s=e("../internals/get-method"),p=e("../internals/advance-string-index"),d=e("../internals/regexp-exec-abstract");n("match",function(n,a,u){return[function(e){var t=o(this),r=null==e?void 0:s(e,n);return r?i(r,e,t):new RegExp(e)[n](f(t))},function(e){var t=l(this),r=f(e),e=u(a,t,r);if(e.done)return e.value;if(!t.global)return d(t,r);for(var n=t.unicode,i=[],o=t.lastIndex=0;null!==(s=d(t,r));){var s=f(s[0]);""===(i[o]=s)&&(t.lastIndex=p(r,c(t.lastIndex),n)),o++}return 0===o?null:i}]})},{"../internals/advance-string-index":99,"../internals/an-object":101,"../internals/fix-regexp-well-known-symbol-logic":151,"../internals/function-call":155,"../internals/get-method":161,"../internals/regexp-exec-abstract":223,"../internals/require-object-coercible":230,"../internals/to-length":249,"../internals/to-string":256}],305:[function(e,t,r){"use strict";var x=e("../internals/function-apply"),i=e("../internals/function-call"),n=e("../internals/function-uncurry-this"),o=e("../internals/fix-regexp-well-known-symbol-logic"),s=e("../internals/fails"),k=e("../internals/an-object"),_=e("../internals/is-callable"),T=e("../internals/to-integer-or-infinity"),E=e("../internals/to-length"),S=e("../internals/to-string"),a=e("../internals/require-object-coercible"),O=e("../internals/advance-string-index"),u=e("../internals/get-method"),A=e("../internals/get-substitution"),I=e("../internals/regexp-exec-abstract"),l=e("../internals/well-known-symbol")("replace"),D=Math.max,R=Math.min,C=n([].concat),M=n([].push),P=n("".indexOf),N=n("".slice),e="$0"==="a".replace(/./,"$0"),c=!!/./[l]&&""===/./[l]("a","$0");o("replace",function(e,v,w){var j=c?"$":"$0";return[function(e,t){var r=a(this),n=null==e?void 0:u(e,l);return n?i(n,e,r,t):i(v,S(r),e,t)},function(e,t){var r=k(this),n=S(e);if("string"==typeof t&&-1===P(t,j)&&-1===P(t,"$<")){e=w(v,r,n,t);if(e.done)return e.value}for(var i,o=_(t),s=(o||(t=S(t)),r.global),a=(s&&(i=r.unicode,r.lastIndex=0),[]);null!==(p=I(r,n))&&(M(a,p),s);)""===S(p[0])&&(r.lastIndex=O(n,E(r.lastIndex),i));for(var u,l="",c=0,f=0;f")})||!e||c)},{"../internals/advance-string-index":99,"../internals/an-object":101,"../internals/fails":150,"../internals/fix-regexp-well-known-symbol-logic":151,"../internals/function-apply":152,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/get-method":161,"../internals/get-substitution":162,"../internals/is-callable":176,"../internals/regexp-exec-abstract":223,"../internals/require-object-coercible":230,"../internals/to-integer-or-infinity":248,"../internals/to-length":249,"../internals/to-string":256,"../internals/well-known-symbol":268}],306:[function(e,t,r){"use strict";var s=e("../internals/function-call"),n=e("../internals/fix-regexp-well-known-symbol-logic"),a=e("../internals/an-object"),u=e("../internals/require-object-coercible"),l=e("../internals/same-value"),c=e("../internals/to-string"),f=e("../internals/get-method"),p=e("../internals/regexp-exec-abstract");n("search",function(n,i,o){return[function(e){var t=u(this),r=null==e?void 0:f(e,n);return r?s(r,e,t):new RegExp(e)[n](c(t))},function(e){var t=a(this),e=c(e),r=o(i,t,e);if(r.done)return r.value;r=t.lastIndex,l(r,0)||(t.lastIndex=0),e=p(t,e);return l(t.lastIndex,r)||(t.lastIndex=r),null===e?-1:e.index}]})},{"../internals/an-object":101,"../internals/fix-regexp-well-known-symbol-logic":151,"../internals/function-call":155,"../internals/get-method":161,"../internals/regexp-exec-abstract":223,"../internals/require-object-coercible":230,"../internals/same-value":231,"../internals/to-string":256}],307:[function(e,t,r){"use strict";var c=e("../internals/function-apply"),f=e("../internals/function-call"),n=e("../internals/function-uncurry-this"),i=e("../internals/fix-regexp-well-known-symbol-logic"),p=e("../internals/is-regexp"),b=e("../internals/an-object"),d=e("../internals/require-object-coercible"),g=e("../internals/species-constructor"),v=e("../internals/advance-string-index"),w=e("../internals/to-length"),j=e("../internals/to-string"),o=e("../internals/get-method"),x=e("../internals/array-slice-simple"),k=e("../internals/regexp-exec-abstract"),_=e("../internals/regexp-exec"),s=e("../internals/regexp-sticky-helpers"),e=e("../internals/fails"),T=s.UNSUPPORTED_Y,E=Math.min,S=[].push,O=n(/./.exec),A=n(S),I=n("".slice);i("split",function(i,h,m){var y="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||1<".".split(/()()/).length||"".split(/.?/).length?function(e,t){var r=j(d(this)),n=void 0===t?4294967295:t>>>0;if(0==n)return[];if(void 0===e)return[r];if(!p(e))return f(h,r,e,n);for(var i,o,s,a=[],t=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),u=0,l=new RegExp(e.source,t+"g");(i=f(_,l,r))&&!(u<(o=l.lastIndex)&&(A(a,I(r,u,i.index)),1>>0;if(0==a)return[];if(0===n.length)return null===k(s,n)?[n]:[];for(var u=0,l=0,c=[];l]/;t.exports=function(e){var t,r=""+e,e=s.exec(r);if(!e)return r;var n="",i=0,o=0;for(i=e.index;ii&&!o.warned&&(o.warned=!0,(n=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit")).name="MaxListenersExceededWarning",n.emitter=e,n.type=t,n.count=o.length,r=n,console&&console.warn&&console.warn(r))),e}function p(e,t,r){e={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},t=function(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}.bind(e);return t.listener=r,e.wrapFn=t}function d(e,t,r){e=e._events;if(void 0===e)return[];e=e[t];{if(void 0===e)return[];if("function"==typeof e)return r?[e.listener||e]:[e];if(r){for(var n=e,i=new Array(n.length),o=0;o=r.length?(u=!!(f=h(o,l)))&&"get"in f&&!("originalValue"in f.get)?f.get:o[l]:(u=v(o,l),o[l]),u&&!s&&(y[c]=o)}}return o}},{"function-bind":347,has:354,"has-proto":350,"has-symbols":351}],349:[function(t,e,r){"use strict";t=t("get-intrinsic")("%Object.getOwnPropertyDescriptor%",!0);if(t)try{t([],"length")}catch(e){t=null}e.exports=t},{"get-intrinsic":348}],350:[function(e,t,r){"use strict";var n={foo:{}},i=Object;t.exports=function(){return{__proto__:n}.foo===n.foo&&!({__proto__:null}instanceof i)}},{}],351:[function(e,t,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=e("./shams");t.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&i())))}},{"./shams":352}],352:[function(e,t,r){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){r=Object.getOwnPropertyDescriptor(e,t);if(42!==r.value||!0!==r.enumerable)return!1}return!0}},{}],353:[function(e,t,r){"use strict";var n=e("has-symbols/shams");t.exports=function(){return n()&&!!Symbol.toStringTag}},{"has-symbols/shams":352}],354:[function(e,t,r){"use strict";e=e("function-bind");t.exports=e.call(Function.call,Object.prototype.hasOwnProperty)},{"function-bind":347}],355:[function(e,t,r){var n,i=e("http"),o=e("url"),s=t.exports;for(n in i)i.hasOwnProperty(n)&&(s[n]=i[n]);function a(e){if((e="string"==typeof e?o.parse(e):e).protocol||(e.protocol="https:"),"https:"!==e.protocol)throw new Error('Protocol "'+e.protocol+'" not supported. Expected "https:"');return e}s.request=function(e,t){return e=a(e),i.request.call(this,e,t)},s.get=function(e,t){return e=a(e),i.get.call(this,e,t)}},{http:468,url:472}],356:[function(e,t,r){"use strict";var n=e("util"),i=e("ms");t.exports=function(e){if("number"==typeof e)return e;var t=i(e);return void 0===t&&(e=new Error(n.format("humanize-ms(%j) result undefined",e)),console.warn(e.stack)),t}},{ms:376,util:419}],357:[function(e,t,r){r.read=function(e,t,r,n,i){var o,s,a=8*i-n-1,u=(1<>1,c=-7,f=r?i-1:0,p=r?-1:1,i=e[t+f];for(f+=p,o=i&(1<<-c)-1,i>>=-c,c+=a;0>=-c,c+=n;0>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:o-1,d=n?1:-1,o=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(n=Math.pow(2,-s))<1&&(s--,n*=2),2<=(t+=1<=s+c?f/n:f*Math.pow(2,1-c))*n&&(s++,n/=2),l<=s+c?(a=0,s=l):1<=s+c?(a=(t*n-1)*Math.pow(2,i),s+=c):(a=t*Math.pow(2,c-1)*Math.pow(2,i),s=0));8<=i;e[r+p]=255&a,p+=d,a/=256,i-=8);for(s=s<>>6)+b(128|63&t):b(224|t>>>12&15)+b(128|t>>>6&63)+b(128|63&t):(t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320),b(240|t>>>18&7)+b(128|t>>>12&63)+b(128|t>>>6&63)+b(128|63&t))}function n(e){var t=[0,2,1][e.length%3],e=e.charCodeAt(0)<<16|(1>>18),m.charAt(e>>>12&63),2<=t?"=":m.charAt(e>>>6&63),1<=t?"=":m.charAt(63&e)].join("")}function i(e){return w(v(String(e)))}function u(e){return e.replace(/[+\/]/g,function(e){return"+"==e?"-":"_"}).replace(/=/g,"")}function o(e,t){return t?u(i(e)):i(e)}function s(e){switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return b(55296+(t>>>10))+b(56320+(1023&t));case 3:return b((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return b((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}}function a(e){var t=(r=e.length)%4,r=(0>>16),b(r>>>8&255),b(255&r)]).length-=[0,0,2,1][t],e.join("")}function l(e){return k(String(e).replace(/[^A-Za-z0-9\+\/]/g,""))}function c(e){return String(e).replace(/[-_]/g,function(e){return"-"==e?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")}function e(e){return e=c(e),x(k(e))}var f,p,d,h=(t=t||{}).Base64,m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",y=function(e){for(var t={},r=0,n=e.length;r>>18)+m.charAt(o>>>12&63)+(void 0!==s?m.charAt(o>>>6&63):"=")+(void 0!==a?m.charAt(63&o):"=")}return t?u(r):r}),/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g),x=function(e){return e.replace(j,s)},k=t.atob&&"function"==typeof t.atob?function(e){return t.atob(e)}:function(e){return e.replace(/\S{1,4}/g,a)};t.Uint8Array&&(p=function(e){return Uint8Array.from(l(c(e)),function(e){return e.charCodeAt(0)})});return t.Base64={VERSION:"2.6.4",atob:l,btoa:w,fromBase64:e,toBase64:o,utob:v,encode:o,encodeURI:function(e){return o(e,!0)},btou:x,decode:e,noConflict:function(){var e=t.Base64;return t.Base64=h,e},fromUint8Array:f,toUint8Array:p},"function"==typeof Object.defineProperty&&(d=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}},t.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",d(function(){return e(this)})),Object.defineProperty(String.prototype,"toBase64",d(function(e){return o(this,e)})),Object.defineProperty(String.prototype,"toBase64URI",d(function(){return o(this,!0)}))}),t.Meteor&&(Base64=t.Base64),void 0!==_&&_.exports&&(_.exports.Base64=t.Base64),{Base64:t.Base64}},"object"==typeof n&&void 0!==_?_.exports=t(e):t(e)}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],372:[function(e,t,r){"use strict";t.exports=function(r,n,i){if(!r)throw new TypeError("argument dest is required");if(!n)throw new TypeError("argument src is required");void 0===i&&(i=!0);return Object.getOwnPropertyNames(n).forEach(function(e){var t;!i&&o.call(r,e)||(t=Object.getOwnPropertyDescriptor(n,e),Object.defineProperty(r,e,t))}),r};var o=Object.prototype.hasOwnProperty},{}],373:[function(e,t,r){"use strict";function n(){this._types=Object.create(null),this._extensions=Object.create(null);for(var e=0;e= 0x80 (not a basic code point)","invalid-input":"Invalid input"},p=b-1,v=Math.floor,w=String.fromCharCode;function j(e){throw new RangeError(f[e])}function d(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function h(e,t){var r=e.split("@"),n="",r=(1>>10&1023|55296),e=56320|1023&e),t+=w(e)}).join("")}function k(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function _(e,t,r){var n=0;for(e=r?v(e/a):e>>1,e+=v(e/t);p*g>>1v((y-c)/o))&&j("overflow"),c+=a*o,!(a<(a=s<=p?1:p+g<=s?g:s-p));s+=b)o>v(y/(a=b-a))&&j("overflow"),o*=a;p=_(c-i,t=u.length+1,0==i),v(c/t)>y-f&&j("overflow"),f+=v(c/t),c%=t,u.splice(c++,0,f)}return m(u)}function E(e){for(var t,r,n,i,o,s,a,u,l,c,f=[],p=(e=x(e)).length,d=128,h=72,m=t=0;mv((y-t)/(u=r+1))&&j("overflow"),t+=(i-d)*u,d=i,m=0;my&&j("overflow"),a==d){for(o=t,s=b;!(o<(l=s<=h?1:h+g<=s?g:s-h));s+=b)f.push(w(k(l+(c=o-l)%(l=b-l),0))),o=v(c/l);f.push(w(k(o,0))),h=_(t,u,r==n),t=0,++r}++t,++d}return f.join("")}if(i={version:"1.4.1",ucs2:{decode:x,encode:m},decode:T,encode:E,toASCII:function(e){return h(e,function(e){return l.test(e)?"xn--"+E(e):e})},toUnicode:function(e){return h(e,function(e){return u.test(e)?T(e.slice(4).toLowerCase()):e})}},t&&r)if(O.exports==t)r.exports=i;else for(o in i)i.hasOwnProperty(o)&&(t[o]=i[o]);else e.punycode=i}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],383:[function(e,t,r){"use strict";t.exports=function(e,t,r,n){r=r||"=";var i={};if("string"!=typeof e||0===e.length)return i;var o=/\+/g,t=(e=e.split(t=t||"&"),1e3),s=(n&&"number"==typeof n.maxKeys&&(t=n.maxKeys),e.length);0t.highWaterMark&&(t.highWaterMark=(d<=(r=e)?r=d:(r--,r=(r=(r=(r=(r|=r>>>1)|r>>>2)|r>>>4)|r>>>8)|r>>>16,r++),r)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0));var r}function v(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(g("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?y.nextTick(w,e):w(e))}function w(e){g("emit readable"),e.emit("readable"),T(e)}function j(e,t){t.readingMore||(t.readingMore=!0,y.nextTick(x,e,t))}function x(e,t){for(var r=t.length;!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=function(e,t,r){var n;eo.length?o.length:e;if(s===o.length?i+=o:i+=o.slice(0,e),0===(e-=s)){s===o.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r).data=o.slice(s);break}++n}return t.length-=n,i}:function(e,t){var r=c.allocUnsafe(e),n=t.head,i=1;n.data.copy(r),e-=n.data.length;for(;n=n.next;){var o=n.data,s=e>o.length?o.length:e;if(o.copy(r,r.length-e,0,s),0===(e-=s)){s===o.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n).data=o.slice(s);break}++i}return t.length-=i,r})(e,t);return n}(e,t.buffer,t.decoder),r);var r}function S(e){var t=e._readableState;if(0=t.highWaterMark||t.ended))return g("read: emitReadable",t.length,t.ended),(0===t.length&&t.ended?S:v)(this),null;if(0===(e=h(e,t))&&t.ended)return 0===t.length&&S(this),null;var n=t.needReadable;return g("need readable",n),(0===t.length||t.length-e>>0),i=this.head,o=0;i;)t=i.data,r=o,t.copy(n,r),o+=i.data.length,i=i.next;return n},i),n&&n.inspect&&n.inspect.custom&&(t.exports.prototype[n.inspect.custom]=function(){var e=n.inspect({length:this.length});return this.constructor.name+" "+e})},{"safe-buffer":396,util:89}],392:[function(e,t,r){"use strict";var o=e("process-nextick-args");function s(e,t){e.emit("error",t)}t.exports={destroy:function(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?t?t(e):!e||this._writableState&&this._writableState.errorEmitted||o.nextTick(s,this,e):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?(o.nextTick(s,r,e),r._writableState&&(r._writableState.errorEmitted=!0)):t&&t(e)})),this},undestroy:function(){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)}}},{"process-nextick-args":380}],393:[function(e,t,r){t.exports=e("events").EventEmitter},{events:344}],394:[function(e,t,r){(((r=t.exports=e("./lib/_stream_readable.js")).Stream=r).Readable=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":386,"./lib/_stream_passthrough.js":387,"./lib/_stream_readable.js":388,"./lib/_stream_transform.js":389,"./lib/_stream_writable.js":390}],395:[function(e,t,r){t=function(s){"use strict";var u,e=Object.prototype,l=e.hasOwnProperty,t="function"==typeof Symbol?Symbol:{},n=t.iterator||"@@iterator",r=t.asyncIterator||"@@asyncIterator",i=t.toStringTag||"@@toStringTag";function o(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{o({},"")}catch(e){o=function(e,t,r){return e[t]=r}}function a(e,t,r,n){var i,o,s,a,t=t&&t.prototype instanceof y?t:y,t=Object.create(t.prototype),n=new T(n||[]);return t._invoke=(i=e,o=r,s=n,a=f,function(e,t){if(a===d)throw new Error("Generator is already running");if(a===h){if("throw"===e)throw t;return S()}for(s.method=e,s.arg=t;;){var r=s.delegate;if(r){r=function e(t,r){var n=t.iterator[r.method];if(n===u){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=u,e(t,r),"throw"===r.method))return m;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}n=c(n,t.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,m;n=n.arg;if(!n)return r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m;{if(!n.done)return n;r[t.resultName]=n.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=u)}r.delegate=null;return m}(r,s);if(r){if(r===m)continue;return r}}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if(a===f)throw a=h,s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);a=d;r=c(i,o,s);if("normal"===r.type){if(a=s.done?h:p,r.arg!==m)return{value:r.arg,done:s.done}}else"throw"===r.type&&(a=h,s.method="throw",s.arg=r.arg)}}),t}function c(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}s.wrap=a;var f="suspendedStart",p="suspendedYield",d="executing",h="completed",m={};function y(){}function b(){}function g(){}var t={},v=(o(t,n,function(){return this}),Object.getPrototypeOf),v=v&&v(v(E([]))),w=(v&&v!==e&&l.call(v,n)&&(t=v),g.prototype=y.prototype=Object.create(t));function j(e){["next","throw","return"].forEach(function(t){o(e,t,function(e){return this._invoke(t,e)})})}function x(s,a){var t;this._invoke=function(r,n){function e(){return new a(function(e,t){!function t(e,r,n,i){var o,e=c(s[e],s,r);if("throw"!==e.type)return(r=(o=e.arg).value)&&"object"==typeof r&&l.call(r,"__await")?a.resolve(r.__await).then(function(e){t("next",e,n,i)},function(e){t("throw",e,n,i)}):a.resolve(r).then(function(e){o.value=e,n(o)},function(e){return t("throw",e,n,i)});i(e.arg)}(r,n,e,t)})}return t=t?t.then(e,e):e()}}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function E(t){if(t){var r,e=t[n];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return r=-1,(e=function e(){for(;++r"===o?(T(t,"onsgmldeclaration",t.sgmlDecl),t.sgmlDecl="",t.state=k.TEXT):(v(o)&&(t.state=k.SGML_DECL_QUOTED),t.sgmlDecl+=o);continue;case k.SGML_DECL_QUOTED:o===t.q&&(t.state=k.SGML_DECL,t.q=""),t.sgmlDecl+=o;continue;case k.DOCTYPE:">"===o?(t.state=k.TEXT,T(t,"ondoctype",t.doctype),t.doctype=!0):(t.doctype+=o,"["===o?t.state=k.DOCTYPE_DTD:v(o)&&(t.state=k.DOCTYPE_QUOTED,t.q=o));continue;case k.DOCTYPE_QUOTED:t.doctype+=o,o===t.q&&(t.q="",t.state=k.DOCTYPE);continue;case k.DOCTYPE_DTD:t.doctype+=o,"]"===o?t.state=k.DOCTYPE:v(o)&&(t.state=k.DOCTYPE_DTD_QUOTED,t.q=o);continue;case k.DOCTYPE_DTD_QUOTED:t.doctype+=o,o===t.q&&(t.state=k.DOCTYPE_DTD,t.q="");continue;case k.COMMENT:"-"===o?t.state=k.COMMENT_ENDING:t.comment+=o;continue;case k.COMMENT_ENDING:"-"===o?(t.state=k.COMMENT_ENDED,t.comment=S(t.opt,t.comment),t.comment&&T(t,"oncomment",t.comment),t.comment=""):(t.comment+="-"+o,t.state=k.COMMENT);continue;case k.COMMENT_ENDED:">"!==o?(I(t,"Malformed comment"),t.comment+="--"+o,t.state=k.COMMENT):t.state=k.TEXT;continue;case k.CDATA:"]"===o?t.state=k.CDATA_ENDING:t.cdata+=o;continue;case k.CDATA_ENDING:"]"===o?t.state=k.CDATA_ENDING_2:(t.cdata+="]"+o,t.state=k.CDATA);continue;case k.CDATA_ENDING_2:">"===o?(t.cdata&&T(t,"oncdata",t.cdata),T(t,"onclosecdata"),t.cdata="",t.state=k.TEXT):"]"===o?t.cdata+="]":(t.cdata+="]]"+o,t.state=k.CDATA);continue;case k.PROC_INST:"?"===o?t.state=k.PROC_INST_ENDING:g(o)?t.state=k.PROC_INST_BODY:t.procInstName+=o;continue;case k.PROC_INST_BODY:if(!t.procInstBody&&g(o))continue;"?"===o?t.state=k.PROC_INST_ENDING:t.procInstBody+=o;continue;case k.PROC_INST_ENDING:">"===o?(T(t,"onprocessinginstruction",{name:t.procInstName,body:t.procInstBody}),t.procInstName=t.procInstBody="",t.state=k.TEXT):(t.procInstBody+="?"+o,t.state=k.PROC_INST_BODY);continue;case k.OPEN_TAG:w(m,o)?t.tagName+=o:(function(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,T(e,"onopentagstart",r)}(t),">"===o?C(t):"/"===o?t.state=k.OPEN_TAG_SLASH:(g(o)||I(t,"Invalid character in tag name"),t.state=k.ATTRIB));continue;case k.OPEN_TAG_SLASH:">"===o?(C(t,!0),M(t)):(I(t,"Forward-slash in opening tag not followed by >"),t.state=k.ATTRIB);continue;case k.ATTRIB:if(g(o))continue;">"===o?C(t):"/"===o?t.state=k.OPEN_TAG_SLASH:w(h,o)?(t.attribName=o,t.attribValue="",t.state=k.ATTRIB_NAME):I(t,"Invalid attribute name");continue;case k.ATTRIB_NAME:"="===o?t.state=k.ATTRIB_VALUE:">"===o?(I(t,"Attribute without value"),t.attribValue=t.attribName,R(t),C(t)):g(o)?t.state=k.ATTRIB_NAME_SAW_WHITE:w(m,o)?t.attribName+=o:I(t,"Invalid attribute name");continue;case k.ATTRIB_NAME_SAW_WHITE:if("="===o)t.state=k.ATTRIB_VALUE;else{if(g(o))continue;I(t,"Attribute without value"),t.tag.attributes[t.attribName]="",t.attribValue="",T(t,"onattribute",{name:t.attribName,value:""}),t.attribName="",">"===o?C(t):w(h,o)?(t.attribName=o,t.state=k.ATTRIB_NAME):(I(t,"Invalid attribute name"),t.state=k.ATTRIB)}continue;case k.ATTRIB_VALUE:if(g(o))continue;v(o)?(t.q=o,t.state=k.ATTRIB_VALUE_QUOTED):(I(t,"Unquoted attribute value"),t.state=k.ATTRIB_VALUE_UNQUOTED,t.attribValue=o);continue;case k.ATTRIB_VALUE_QUOTED:if(o!==t.q){"&"===o?t.state=k.ATTRIB_VALUE_ENTITY_Q:t.attribValue+=o;continue}R(t),t.q="",t.state=k.ATTRIB_VALUE_CLOSED;continue;case k.ATTRIB_VALUE_CLOSED:g(o)?t.state=k.ATTRIB:">"===o?C(t):"/"===o?t.state=k.OPEN_TAG_SLASH:w(h,o)?(I(t,"No whitespace between attributes"),t.attribName=o,t.attribValue="",t.state=k.ATTRIB_NAME):I(t,"Invalid attribute name");continue;case k.ATTRIB_VALUE_UNQUOTED:if(!function(e){return">"===e||g(e)}(o)){"&"===o?t.state=k.ATTRIB_VALUE_ENTITY_U:t.attribValue+=o;continue}R(t),">"===o?C(t):t.state=k.ATTRIB;continue;case k.CLOSE_TAG:if(t.tagName)">"===o?M(t):w(m,o)?t.tagName+=o:t.script?(t.script+=""===o?M(t):I(t,"Invalid characters in closing tag");continue;case k.TEXT_ENTITY:case k.ATTRIB_VALUE_ENTITY_Q:case k.ATTRIB_VALUE_ENTITY_U:switch(t.state){case k.TEXT_ENTITY:r=k.TEXT,n="textNode";break;case k.ATTRIB_VALUE_ENTITY_Q:r=k.ATTRIB_VALUE_QUOTED,n="attribValue";break;case k.ATTRIB_VALUE_ENTITY_U:r=k.ATTRIB_VALUE_UNQUOTED,n="attribValue"}";"===o?(t[n]+=function(e){var t,r=e.entity,n=r.toLowerCase(),i="";if(e.ENTITIES[r])return e.ENTITIES[r];if(e.ENTITIES[n])return e.ENTITIES[n];"#"===(r=n).charAt(0)&&(i="x"===r.charAt(1)?(r=r.slice(2),(t=parseInt(r,16)).toString(16)):(r=r.slice(1),(t=parseInt(r,10)).toString(10)));if(r=r.replace(/^0+/,""),isNaN(t)||i.toLowerCase()!==r)return I(e,"Invalid character entity"),"&"+e.entity+";";return String.fromCodePoint(t)}(t),t.entity="",t.state=r):w(t.entity.length?b:y,o)?t.entity+=o:(I(t,"Invalid character in entity name"),t[n]+="&"+t.entity+o,t.entity="",t.state=r);continue;default:throw new Error(t,"Unknown state: "+t.state)}}t.position>=t.bufferCheckPosition&&!function(e){for(var t=Math.max(a.MAX_BUFFER_LENGTH,10),r=0,n=0,i=u.length;n",lt:"<",quot:'"',apos:"'"},a.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(a.ENTITIES).forEach(function(e){var t=a.ENTITIES[e],t="number"==typeof t?String.fromCharCode(t):t;a.ENTITIES[e]=t}),a.STATE)a.STATE[a.STATE[e]]=e;function _(e,t,r){e[t]&&e[t](r)}function T(e,t,r){e.textNode&&E(e),_(e,t,r)}function E(e){e.textNode=S(e.opt,e.textNode),e.textNode&&_(e,"ontext",e.textNode),e.textNode=""}function S(e,t){return e.trim&&(t=t.trim()),t=e.normalize?t.replace(/\s+/g," "):t}function O(e,t){return E(e),e.trackPosition&&(t+="\nLine: "+e.line+"\nColumn: "+e.column+"\nChar: "+e.c),t=new Error(t),e.error=t,_(e,"onerror",t),e}function A(e){return e.sawRoot&&!e.closedRoot&&I(e,"Unclosed root tag"),e.state!==k.BEGIN&&e.state!==k.BEGIN_WHITESPACE&&e.state!==k.TEXT&&O(e,"Unexpected end"),E(e),e.c="",e.closed=!0,_(e,"onend"),s.call(e,e.strict,e.opt),e}function I(e,t){if("object"!=typeof e||!(e instanceof s))throw new Error("bad call to strictFail");e.strict&&O(e,t)}function D(e,t){var r=e.indexOf(":")<0?["",e]:e.split(":"),n=r[0],r=r[1];return t&&"xmlns"===e&&(n="xmlns",r=""),{prefix:n,local:r}}function R(e){var t,r,n;e.strict||(e.attribName=e.attribName[e.looseCase]()),-1!==e.attribList.indexOf(e.attribName)||e.tag.attributes.hasOwnProperty(e.attribName)||(e.opt.xmlns?(r=(t=D(e.attribName,!0)).prefix,t=t.local,"xmlns"===r&&("xml"===t&&e.attribValue!==f?I(e,"xml: prefix must be bound to "+f+"\nActual: "+e.attribValue):"xmlns"===t&&e.attribValue!==p?I(e,"xmlns: prefix must be bound to "+p+"\nActual: "+e.attribValue):(r=e.tag,n=e.tags[e.tags.length-1]||e,r.ns===n.ns&&(r.ns=Object.create(n.ns)),r.ns[t]=e.attribValue)),e.attribList.push([e.attribName,e.attribValue])):(e.tag.attributes[e.attribName]=e.attribValue,T(e,"onattribute",{name:e.attribName,value:e.attribValue}))),e.attribName=e.attribValue=""}function C(t,e){if(t.opt.xmlns){var r=t.tag,n=D(t.tagName),n=(r.prefix=n.prefix,r.local=n.local,r.uri=r.ns[n.prefix]||"",r.prefix&&!r.uri&&(I(t,"Unbound namespace prefix: "+JSON.stringify(t.tagName)),r.uri=n.prefix),t.tags[t.tags.length-1]||t);r.ns&&n.ns!==r.ns&&Object.keys(r.ns).forEach(function(e){T(t,"onopennamespace",{prefix:e,uri:r.ns[e]})});for(var i=0,o=t.attribList.length;i",r.tagName="",void(r.state=k.SCRIPT);T(r,"onscript",r.script),r.script=""}for(var e=r.tags.length,t=r.tagName,n=t=r.strict?t:t[r.looseCase]();e--&&r.tags[e].name!==n;)I(r,"Unexpected close tag");if(e<0)return I(r,"Unmatched closing tag: "+r.tagName),r.textNode+="",void(r.state=k.TEXT);r.tagName=t;for(var i=r.tags.length;i-- >e;){var o,s=r.tag=r.tags.pop(),a=(r.tagName=r.tag.name,T(r,"onclosetag",r.tagName),{});for(o in s.ns)a[o]=s.ns[o];var u=r.tags[r.tags.length-1]||r;r.opt.xmlns&&s.ns!==u.ns&&Object.keys(s.ns).forEach(function(e){var t=s.ns[e];T(r,"onclosenamespace",{prefix:e,uri:t})})}0===e&&(r.closedRoot=!0),r.tagName=r.attribValue=r.attribName="",r.attribList.length=0,r.state=k.TEXT}function P(e,t){"<"===t?(e.state=k.OPEN_WAKA,e.startTagPosition=e.position):g(t)||(I(e,"Non-whitespace before first tag."),e.textNode=t,e.state=k.TEXT)}function N(e,t){var r="";return r=t>10),i%1024+56320)),(t+1===r||16384o.length)&&(a=o.length),o=o.substring(a-s.length,a)===s?"The ".concat(e," ").concat(n," ").concat(u(t,"type")):(a=(i="number"!=typeof i?0:i)+(o=".").length>(a=e).length||-1===a.indexOf(o,i)?"argument":"property",'The "'.concat(e,'" ').concat(a," ").concat(n," ").concat(u(t,"type"))),o+=". Received type ".concat(typeof r)},TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=n},{}],400:[function(c,f,e){!function(l){!function(){"use strict";var e=Object.keys||function(e){var t,r=[];for(t in e)r.push(t);return r},t=(f.exports=s,c("./_stream_readable")),r=c("./_stream_writable");c("inherits")(s,t);for(var n=e(r.prototype),i=0;it.highWaterMark&&(t.highWaterMark=(k<=(r=e)?r=k:(r--,r=(r=(r=(r=(r|=r>>>1)|r>>>2)|r>>>4)|r>>>8)|r>>>16,r++),r)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0));var r}function T(e){var t=e._readableState;m("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(m("emitReadable",t.flowing),t.emittedReadable=!0,L.nextTick(E,e))}function E(e){var t=e._readableState;m("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,R(e)}function S(e,t){t.readingMore||(t.readingMore=!0,L.nextTick(O,e,t))}function O(e,t){for(;!t.reading&&!t.ended&&(t.length=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r);var r}function M(e){var t=e._readableState;m("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,L.nextTick(N,t,e))}function N(e,t){m("endReadableNT",e.endEmitted,e.length),e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy&&(!(e=t._writableState)||e.autoDestroy&&e.finished)&&t.destroy())}function P(e,t){for(var r=0,n=e.length;r=t.highWaterMark:0>>0),i=this.head,o=0;i;)t=i.data,r=o,u.prototype.copy.call(t,n,r),o+=i.data.length,i=i.next;return n}},{key:"consume",value:function(e,t){var r;return ei.length?i.length:e;if(o===i.length?n+=i:n+=i.slice(0,e),0===(e-=o)){o===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t).data=i.slice(o);break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=u.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0===(e-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r).data=i.slice(o);break}++n}return this.length-=n,t}},{key:c,value:function(e,t){return l(this,i(i({},t),{},{depth:0,customInspect:!1}))}}])&&s(t.prototype,r),n&&s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}()},{buffer:90,util:89}],407:[function(e,t,r){!function(u){!function(){"use strict";function o(e,t){a(e,t),s(e)}function s(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function a(e,t){e.emit("error",t)}t.exports={destroy:function(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,u.nextTick(a,this,e)):u.nextTick(a,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?r._writableState?r._writableState.errorEmitted?u.nextTick(s,r):(r._writableState.errorEmitted=!0,u.nextTick(o,r,e)):u.nextTick(o,r,e):t?(u.nextTick(s,r),t(e)):u.nextTick(s,r)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}}.call(this)}.call(this,e("_process"))},{_process:467}],408:[function(e,t,r){"use strict";var b=e("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function g(){}t.exports=function e(t,r,n){if("function"==typeof r)return e(t,null,r);function i(){t.writable||o()}function o(){m=!(h=!1),d||n.call(t)}function s(){y=!(d=!1),h||n.call(t)}function a(e){n.call(t,e)}function u(){var e;return d&&!y?(t._readableState&&t._readableState.ended||(e=new b),n.call(t,e)):h&&!m?(t._writableState&&t._writableState.ended||(e=new b),n.call(t,e)):void 0}function l(){t.req.on("finish",o)}c=n||g,f=!1,n=function(){if(!f){f=!0;for(var e=arguments.length,t=new Array(e),r=0;r>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function u(e){var t,r=this.lastTotal-this.lastNeed,n=(t=this,128!=(192&(n=e)[0])?(t.lastNeed=0,"\ufffd"):1")||0<=e.indexOf("<"))},d=function(e){return""},t=function(e){return e.replace("]]>","]]]]>")},o.Builder=(e.prototype.buildObject=function(e){var u,t,l,c=this.options.attrkey,f=this.options.charkey;return 1===Object.keys(e).length&&this.options.rootName===i[.2].rootName?e=e[t=Object.keys(e)[0]]:t=this.options.rootName,l=this,u=function(e,t){var r,n,i,o,s,a;if("object"!=typeof t)l.options.cdata&&p(t)?e.raw(d(t)):e.txt(t);else if(Array.isArray(t)){for(o in t)if(h.call(t,o))for(s in n=t[o])i=n[s],e=u(e.ele(s),i).up()}else for(s in t)if(h.call(t,s))if(n=t[s],s===c){if("object"==typeof n)for(r in n)a=n[r],e=e.att(r,a)}else if(s===f)e=l.options.cdata&&p(n)?e.raw(d(n)):e.txt(n);else if(Array.isArray(n))for(o in n)h.call(n,o)&&(e=("string"==typeof(i=n[o])?l.options.cdata&&p(i)?e.ele(s).raw(d(i)):e.ele(s,i):u(e.ele(s),i)).up());else e="object"==typeof n?u(e.ele(s),n).up():"string"==typeof n&&l.options.cdata&&p(n)?e.ele(s).raw(d(n)).up():(null==n&&(n=""),e.ele(s,n.toString()).up());return e},t=r.create(t,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),u(t,e).end(this.options.renderOpts)},e)}.call(this)},{"./defaults":423,xmlbuilder:459}],423:[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)},{}],424:[function(e,t,y){!function(){"use strict";function o(e,t){return function(){return e.apply(t,arguments)}}var p={}.hasOwnProperty,u=e("sax"),s=e("events"),a=e("./bom"),l=e("./processors"),c=e("timers").setImmediate,f=e("./defaults").defaults,d=function(e){return"object"==typeof e&&null!=e&&0===Object.keys(e).length},h=function(e,t,r){for(var n=0,i=e.length;n":"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":428,"./XMLNode":450}],432:[function(e,t,r){!function(){var o={}.hasOwnProperty,s=e("./NodeType"),a=e("./XMLCharacterData");t.exports=function(){var e,t=i,r=a;for(e in r)o.call(r,e)&&(t[e]=r[e]);function n(){this.constructor=t}function i(e,t){if(i.__super__.constructor.call(this,e),null==t)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=s.CData,this.value=this.stringify.cdata(t)}return n.prototype=r.prototype,t.prototype=new n,t.__super__=r.prototype,i.prototype.clone=function(){return Object.create(this)},i.prototype.toString=function(e){return this.options.writer.cdata(this,this.options.writer.filterOptions(e))},i}()}.call(this)},{"./NodeType":428,"./XMLCharacterData":433}],433:[function(e,t,r){!function(){var o={}.hasOwnProperty,s=e("./XMLNode");t.exports=function(){var e,t=i,r=s;for(e in r)o.call(r,e)&&(t[e]=r[e]);function n(){this.constructor=t}function i(e){i.__super__.constructor.call(this,e),this.value=""}return n.prototype=r.prototype,t.prototype=new n,t.__super__=r.prototype,Object.defineProperty(i.prototype,"data",{get:function(){return this.value},set:function(e){return this.value=e||""}}),Object.defineProperty(i.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(i.prototype,"textContent",{get:function(){return this.value},set:function(e){return this.value=e||""}}),i.prototype.clone=function(){return Object.create(this)},i.prototype.substringData=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.appendData=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.insertData=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.deleteData=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.replaceData=function(e,t,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.isEqualNode=function(e){return!!i.__super__.isEqualNode.apply(this,arguments).isEqualNode(e)&&e.data===this.data},i}()}.call(this)},{"./XMLNode":450}],434:[function(e,t,r){!function(){var o={}.hasOwnProperty,s=e("./NodeType"),a=e("./XMLCharacterData");t.exports=function(){var e,t=i,r=a;for(e in r)o.call(r,e)&&(t[e]=r[e]);function n(){this.constructor=t}function i(e,t){if(i.__super__.constructor.call(this,e),null==t)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=s.Comment,this.value=this.stringify.comment(t)}return n.prototype=r.prototype,t.prototype=new n,t.__super__=r.prototype,i.prototype.clone=function(){return Object.create(this)},i.prototype.toString=function(e){return this.options.writer.comment(this,this.options.writer.filterOptions(e))},i}()}.call(this)},{"./NodeType":428,"./XMLCharacterData":433}],435:[function(n,i,e){!function(){var e,t;function r(){this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new e,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)}e=n("./XMLDOMErrorHandler"),t=n("./XMLDOMStringList"),i.exports=(Object.defineProperty(r.prototype,"parameterNames",{get:function(){return new t(Object.keys(this.defaultParams))}}),r.prototype.getParameter=function(e){return this.params.hasOwnProperty(e)?this.params[e]:null},r.prototype.canSetParameter=function(e,t){return!0},r.prototype.setParameter=function(e,t){return null!=t?this.params[e]=t:delete this.params[e]},r)}.call(this)},{"./XMLDOMErrorHandler":436,"./XMLDOMStringList":438}],436:[function(e,t,r){!function(){function e(){}t.exports=(e.prototype.handleError=function(e){throw new Error(e)},e)}.call(this)},{}],437:[function(e,t,r){!function(){function e(){}t.exports=(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)},{}],438:[function(e,t,r){!function(){function e(e){this.arr=e||[]}t.exports=(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)},{}],439:[function(e,t,r){!function(){var i={}.hasOwnProperty,o=e("./XMLNode"),a=e("./NodeType");t.exports=function(){var e,t=s,r=o;for(e in r)i.call(r,e)&&(t[e]=r[e]);function n(){this.constructor=t}function s(e,t,r,n,i,o){if(s.__super__.constructor.call(this,e),null==t)throw new Error("Missing DTD element name. "+this.debugInfo());if(null==r)throw new Error("Missing DTD attribute name. "+this.debugInfo(t));if(!n)throw new Error("Missing DTD attribute type. "+this.debugInfo(t));if(!i)throw new Error("Missing DTD attribute default. "+this.debugInfo(t));if(!(i=0!==i.indexOf("#")?"#"+i:i).match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(t));if(o&&!i.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(t));this.elementName=this.stringify.name(t),this.type=a.AttributeDeclaration,this.attributeName=this.stringify.name(r),this.attributeType=this.stringify.dtdAttType(n),o&&(this.defaultValue=this.stringify.dtdAttDefault(o)),this.defaultValueType=i}return n.prototype=r.prototype,t.prototype=new n,t.__super__=r.prototype,s.prototype.toString=function(e){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(e))},s}()}.call(this)},{"./NodeType":428,"./XMLNode":450}],440:[function(e,t,r){!function(){var o={}.hasOwnProperty,s=e("./XMLNode"),a=e("./NodeType");t.exports=function(){var e,t=i,r=s;for(e in r)o.call(r,e)&&(t[e]=r[e]);function n(){this.constructor=t}function i(e,t,r){if(i.__super__.constructor.call(this,e),null==t)throw new Error("Missing DTD element name. "+this.debugInfo());r=r||"(#PCDATA)",Array.isArray(r)&&(r="("+r.join(",")+")"),this.name=this.stringify.name(t),this.type=a.ElementDeclaration,this.value=this.stringify.dtdElementValue(r)}return n.prototype=r.prototype,t.prototype=new n,t.__super__=r.prototype,i.prototype.toString=function(e){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(e))},i}()}.call(this)},{"./NodeType":428,"./XMLNode":450}],441:[function(e,t,r){!function(){var o={}.hasOwnProperty,s=e("./Utility").isObject,a=e("./XMLNode"),u=e("./NodeType");t.exports=function(){var e,t=i,r=a;for(e in r)o.call(r,e)&&(t[e]=r[e]);function n(){this.constructor=t}function i(e,t,r,n){if(i.__super__.constructor.call(this,e),null==r)throw new Error("Missing DTD entity name. "+this.debugInfo(r));if(null==n)throw new Error("Missing DTD entity value. "+this.debugInfo(r));if(this.pe=!!t,this.name=this.stringify.name(r),this.type=u.EntityDeclaration,s(n)){if(!n.pubID&&!n.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(r));if(n.pubID&&!n.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(r));if(this.internal=!1,null!=n.pubID&&(this.pubID=this.stringify.dtdPubID(n.pubID)),null!=n.sysID&&(this.sysID=this.stringify.dtdSysID(n.sysID)),null!=n.nData&&(this.nData=this.stringify.dtdNData(n.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(r))}else this.value=this.stringify.dtdEntityValue(n),this.internal=!0}return n.prototype=r.prototype,t.prototype=new n,t.__super__=r.prototype,Object.defineProperty(i.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(i.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(i.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(i.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(i.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(i.prototype,"xmlVersion",{get:function(){return null}}),i.prototype.toString=function(e){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(e))},i}()}.call(this)},{"./NodeType":428,"./Utility":429,"./XMLNode":450}],442:[function(e,t,r){!function(){var o={}.hasOwnProperty,s=e("./XMLNode"),a=e("./NodeType");t.exports=function(){var e,t=i,r=s;for(e in r)o.call(r,e)&&(t[e]=r[e]);function n(){this.constructor=t}function i(e,t,r){if(i.__super__.constructor.call(this,e),null==t)throw new Error("Missing DTD notation name. "+this.debugInfo(t));if(!r.pubID&&!r.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(t));this.name=this.stringify.name(t),this.type=a.NotationDeclaration,null!=r.pubID&&(this.pubID=this.stringify.dtdPubID(r.pubID)),null!=r.sysID&&(this.sysID=this.stringify.dtdSysID(r.sysID))}return n.prototype=r.prototype,t.prototype=new n,t.__super__=r.prototype,Object.defineProperty(i.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(i.prototype,"systemId",{get:function(){return this.sysID}}),i.prototype.toString=function(e){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(e))},i}()}.call(this)},{"./NodeType":428,"./XMLNode":450}],443:[function(e,t,r){!function(){var o={}.hasOwnProperty,s=e("./Utility").isObject,a=e("./XMLNode"),u=e("./NodeType");t.exports=function(){var e,t=i,r=a;for(e in r)o.call(r,e)&&(t[e]=r[e]);function n(){this.constructor=t}function i(e,t,r,n){i.__super__.constructor.call(this,e),s(t)&&(t=(e=t).version,r=e.encoding,n=e.standalone),t=t||"1.0",this.type=u.Declaration,this.version=this.stringify.xmlVersion(t),null!=r&&(this.encoding=this.stringify.xmlEncoding(r)),null!=n&&(this.standalone=this.stringify.xmlStandalone(n))}return n.prototype=r.prototype,t.prototype=new n,t.__super__=r.prototype,i.prototype.toString=function(e){return this.options.writer.declaration(this,this.options.writer.filterOptions(e))},i}()}.call(this)},{"./NodeType":428,"./Utility":429,"./XMLNode":450}],444:[function(e,t,r){!function(){var i={}.hasOwnProperty,u=e("./Utility").isObject,o=e("./XMLNode"),l=e("./NodeType"),s=e("./XMLDTDAttList"),c=e("./XMLDTDEntity"),f=e("./XMLDTDElement"),p=e("./XMLDTDNotation"),d=e("./XMLNamedNodeMap");t.exports=function(){var e,t=a,r=o;for(e in r)i.call(r,e)&&(t[e]=r[e]);function n(){this.constructor=t}function a(e,t,r){var n,i,o,s;if(a.__super__.constructor.call(this,e),this.type=l.DocType,e.children)for(i=0,o=(s=e.children).length;i":"/>")+this.writer.endline(e,this.writerOptions,this.currentLevel),this.writerOptions.state=o.InsideTag}else this.writerOptions.state=o.OpenTag,r=this.writer.indent(e,this.writerOptions,this.currentLevel)+""),r+=this.writer.endline(e,this.writerOptions,this.currentLevel);return this.onData(r,this.currentLevel),e.isOpen=!0}},_.prototype.closeNode=function(e){var t;if(!e.isClosed)return t="",this.writerOptions.state=o.CloseTag,t=e.type===l.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=o.None,this.onData(t,this.currentLevel),e.isClosed=!0},_.prototype.onData=function(e,t){return this.documentStarted=!0,this.onDataCallback(e,t+1)},_.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},_.prototype.debugInfo=function(e){return null==e?"":"node: <"+e+">"},_.prototype.ele=function(){return this.element.apply(this,arguments)},_.prototype.nod=function(e,t,r){return this.node(e,t,r)},_.prototype.txt=function(e){return this.text(e)},_.prototype.dat=function(e){return this.cdata(e)},_.prototype.com=function(e){return this.comment(e)},_.prototype.ins=function(e,t){return this.instruction(e,t)},_.prototype.dec=function(e,t,r){return this.declaration(e,t,r)},_.prototype.dtd=function(e,t,r){return this.doctype(e,t,r)},_.prototype.e=function(e,t,r){return this.element(e,t,r)},_.prototype.n=function(e,t,r){return this.node(e,t,r)},_.prototype.t=function(e){return this.text(e)},_.prototype.d=function(e){return this.cdata(e)},_.prototype.c=function(e){return this.comment(e)},_.prototype.r=function(e){return this.raw(e)},_.prototype.i=function(e,t){return this.instruction(e,t)},_.prototype.att=function(){return(this.currentNode&&this.currentNode.type===l.DocType?this.attList:this.attribute).apply(this,arguments)},_.prototype.a=function(){return(this.currentNode&&this.currentNode.type===l.DocType?this.attList:this.attribute).apply(this,arguments)},_.prototype.ent=function(e,t){return this.entity(e,t)},_.prototype.pent=function(e,t){return this.pEntity(e,t)},_.prototype.not=function(e,t){return this.notation(e,t)},_)}.call(this)},{"./NodeType":428,"./Utility":429,"./WriterState":430,"./XMLAttribute":431,"./XMLCData":432,"./XMLComment":434,"./XMLDTDAttList":439,"./XMLDTDElement":440,"./XMLDTDEntity":441,"./XMLDTDNotation":442,"./XMLDeclaration":443,"./XMLDocType":444,"./XMLDocument":445,"./XMLElement":448,"./XMLProcessingInstruction":452,"./XMLRaw":453,"./XMLStringWriter":455,"./XMLStringifier":456,"./XMLText":457}],447:[function(e,t,r){!function(){var o={}.hasOwnProperty,s=e("./XMLNode"),a=e("./NodeType");t.exports=function(){var e,t=i,r=s;for(e in r)o.call(r,e)&&(t[e]=r[e]);function n(){this.constructor=t}function i(e){i.__super__.constructor.call(this,e),this.type=a.Dummy}return n.prototype=r.prototype,t.prototype=new n,t.__super__=r.prototype,i.prototype.clone=function(){return Object.create(this)},i.prototype.toString=function(e){return""},i}()}.call(this)},{"./NodeType":428,"./XMLNode":450}],448:[function(t,r,e){!function(){var i={}.hasOwnProperty,e=t("./Utility"),o=e.isObject,s=e.isFunction,u=e.getValue,l=t("./XMLNode"),c=t("./NodeType"),f=t("./XMLAttribute"),p=t("./XMLNamedNodeMap");r.exports=function(){var e,t=a,r=l;for(e in r)i.call(r,e)&&(t[e]=r[e]);function n(){this.constructor=t}function a(e,t,r){var n,i,o,s;if(a.__super__.constructor.call(this,e),null==t)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(t),this.type=c.Element,this.attribs={},(this.schemaTypeInfo=null)!=r&&this.attribute(r),e.type===c.Document&&(this.isRoot=!0,(this.documentObject=e).rootObject=this,e.children))for(i=0,o=(s=e.children).length;i":null!=(t=this.parent)&&t.name?"node: <"+e+">, parent: <"+this.parent.name+">":"node: <"+e+">":""},g.prototype.ele=function(e,t,r){return this.element(e,t,r)},g.prototype.nod=function(e,t,r){return this.node(e,t,r)},g.prototype.txt=function(e){return this.text(e)},g.prototype.dat=function(e){return this.cdata(e)},g.prototype.com=function(e){return this.comment(e)},g.prototype.ins=function(e,t){return this.instruction(e,t)},g.prototype.doc=function(){return this.document()},g.prototype.dec=function(e,t,r){return this.declaration(e,t,r)},g.prototype.e=function(e,t,r){return this.element(e,t,r)},g.prototype.n=function(e,t,r){return this.node(e,t,r)},g.prototype.t=function(e){return this.text(e)},g.prototype.d=function(e){return this.cdata(e)},g.prototype.c=function(e){return this.comment(e)},g.prototype.r=function(e){return this.raw(e)},g.prototype.i=function(e,t){return this.instruction(e,t)},g.prototype.u=function(){return this.up()},g.prototype.importXMLBuilder=function(e){return this.importDocument(e)},g.prototype.replaceChild=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.removeChild=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.appendChild=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.hasChildNodes=function(){return 0!==this.children.length},g.prototype.cloneNode=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.isSupported=function(e,t){return!0},g.prototype.hasAttributes=function(){return 0!==this.attribs.length},g.prototype.compareDocumentPosition=function(e){var t;return this===e?0:this.document()!==e.document()?(t=r.Disconnected|r.ImplementationSpecific,Math.random()<.5?t|=r.Preceding:t|=r.Following,t):this.isAncestor(e)?r.Contains|r.Preceding:this.isDescendant(e)?r.Contains|r.Following:this.isPreceding(e)?r.Preceding:r.Following},g.prototype.isSameNode=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.lookupPrefix=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.isDefaultNamespace=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.lookupNamespaceURI=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.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:n<=r;t=0<=n?++r:--r)if(!this.children[t].isEqualNode(e.children[t]))return!1;return!0},g.prototype.getFeature=function(e,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.setUserData=function(e,t,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.getUserData=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.contains=function(e){return!!e&&(e===this||this.isDescendant(e))},g.prototype.isDescendant=function(e){for(var t,r=this.children,n=0,i=r.length;n"),this.stream.write(this.endline(e,t,r)),t.state=h.None,this.closeNode(e,t,r)},i.prototype.element=function(e,t,r){var n,i,o,s,a,u,l,c,f;for(l in this.openNode(e,t,r=r||0),t.state=h.OpenTag,this.stream.write(this.indent(e,t,r)+"<"+e.name),c=e.attribs)p.call(c,l)&&(n=c[l],this.attribute(n,t,r));if(s=0===(o=e.children.length)?null:e.children[0],0===o||e.children.every(function(e){return(e.type===d.Text||e.type===d.Raw)&&""===e.value}))t.allowEmpty?(this.stream.write(">"),t.state=h.CloseTag,this.stream.write("")):(t.state=h.CloseTag,this.stream.write(t.spaceBeforeSlash+"/>"));else if(!t.pretty||1!==o||s.type!==d.Text&&s.type!==d.Raw||null==s.value){for(this.stream.write(">"+this.endline(e,t,r)),t.state=h.InsideTag,a=0,u=(f=e.children).length;a")}else this.stream.write(">"),t.state=h.InsideTag,t.suppressPrettyCount++,this.writeChildNode(s,t,r+1),t.suppressPrettyCount--,t.state=h.CloseTag,this.stream.write("");return this.stream.write(this.endline(e,t,r)),t.state=h.None,this.closeNode(e,t,r)},i.prototype.processingInstruction=function(e,t,r){return this.stream.write(i.__super__.processingInstruction.call(this,e,t,r))},i.prototype.raw=function(e,t,r){return this.stream.write(i.__super__.raw.call(this,e,t,r))},i.prototype.text=function(e,t,r){return this.stream.write(i.__super__.text.call(this,e,t,r))},i.prototype.dtdAttList=function(e,t,r){return this.stream.write(i.__super__.dtdAttList.call(this,e,t,r))},i.prototype.dtdElement=function(e,t,r){return this.stream.write(i.__super__.dtdElement.call(this,e,t,r))},i.prototype.dtdEntity=function(e,t,r){return this.stream.write(i.__super__.dtdEntity.call(this,e,t,r))},i.prototype.dtdNotation=function(e,t,r){return this.stream.write(i.__super__.dtdNotation.call(this,e,t,r))},i}()}.call(this)},{"./NodeType":428,"./WriterState":430,"./XMLWriterBase":458}],455:[function(e,t,r){!function(){var o={}.hasOwnProperty,s=e("./XMLWriterBase");t.exports=function(){var e,t=i,r=s;for(e in r)o.call(r,e)&&(t[e]=r[e]);function n(){this.constructor=t}function i(e){i.__super__.constructor.call(this,e)}return n.prototype=r.prototype,t.prototype=new n,t.__super__=r.prototype,i.prototype.document=function(e,t){var r,n,i,o,s;for(t=this.filterOptions(t),o="",n=0,i=(s=e.children).length;n","]]]]>"),this.assertLegalChar(e))},e.prototype.comment=function(e){if(this.options.noValidation)return e;if((e=""+e||"").match(/--/))throw new Error("Comment text cannot contain double-hypen: "+e);return this.assertLegalChar(e)},e.prototype.raw=function(e){return this.options.noValidation?e:""+e||""},e.prototype.attValue=function(e){return this.options.noValidation?e:this.assertLegalChar(this.attEscape(e=""+e||""))},e.prototype.insTarget=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},e.prototype.insValue=function(e){if(this.options.noValidation)return e;if((e=""+e||"").match(/\?>/))throw new Error("Invalid processing instruction value: "+e);return this.assertLegalChar(e)},e.prototype.xmlVersion=function(e){if(this.options.noValidation)return e;if((e=""+e||"").match(/1\.[0-9]+/))return e;throw new Error("Invalid version number: "+e)},e.prototype.xmlEncoding=function(e){if(this.options.noValidation)return e;if((e=""+e||"").match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))return this.assertLegalChar(e);throw new Error("Invalid encoding: "+e)},e.prototype.xmlStandalone=function(e){return this.options.noValidation?e:e?"yes":"no"},e.prototype.dtdPubID=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},e.prototype.dtdSysID=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},e.prototype.dtdElementValue=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},e.prototype.dtdAttType=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},e.prototype.dtdAttDefault=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},e.prototype.dtdEntityValue=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},e.prototype.dtdNData=function(e){return this.options.noValidation?e:this.assertLegalChar(""+e||"")},e.prototype.convertAttKey="@",e.prototype.convertPIKey="?",e.prototype.convertTextKey="#text",e.prototype.convertCDataKey="#cdata",e.prototype.convertCommentKey="#comment",e.prototype.convertRawKey="#raw",e.prototype.assertLegalChar=function(e){var t;if(this.options.noValidation)return e;if("1.0"===this.options.version){if(t=e.match(/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/))throw new Error("Invalid character in string: "+e+" at index "+t.index)}else if("1.1"===this.options.version&&(t=e.match(/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/)))throw new Error("Invalid character in string: "+e+" at index "+t.index);return e},e.prototype.assertLegalName=function(e){if(this.options.noValidation)return e;if(this.assertLegalChar(e),e.match(/^([: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])*$/))return e;throw new Error("Invalid character in name")},e.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," "))},e.prototype.attEscape=function(e){var t;return this.options.noValidation?e:(t=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,e.replace(t,"&").replace(/"+this.endline(e,t,r),t.state=g.None,this.closeNode(e,t,r),n},e.prototype.comment=function(e,t,r){var n;return this.openNode(e,t,r),t.state=g.OpenTag,n=this.indent(e,t,r)+"\x3c!-- ",t.state=g.InsideTag,n+=e.value,t.state=g.CloseTag,n+=" --\x3e"+this.endline(e,t,r),t.state=g.None,this.closeNode(e,t,r),n},e.prototype.declaration=function(e,t,r){var n;return this.openNode(e,t,r),t.state=g.OpenTag,n=this.indent(e,t,r)+"")+this.endline(e,t,r),t.state=g.None,this.closeNode(e,t,r),n},e.prototype.docType=function(e,t,r){var n,i,o,s,a;if(this.openNode(e,t,r=r||0),t.state=g.OpenTag,s=this.indent(e,t,r),s+="")+this.endline(e,t,r),t.state=g.None,this.closeNode(e,t,r),s},e.prototype.element=function(e,t,r){var n,i,o,s,a,u,l,c,f,p,d,h,m=!1,y="";for(f in this.openNode(e,t,r=r||0),t.state=g.OpenTag,y+=this.indent(e,t,r)+"<"+e.name,p=e.attribs)v.call(p,f)&&(n=p[f],y+=this.attribute(n,t,r));if(s=0===(o=e.children.length)?null:e.children[0],0===o||e.children.every(function(e){return(e.type===b.Text||e.type===b.Raw)&&""===e.value}))t.allowEmpty?(y+=">",t.state=g.CloseTag,y+=""+this.endline(e,t,r)):(t.state=g.CloseTag,y+=t.spaceBeforeSlash+"/>"+this.endline(e,t,r));else if(!t.pretty||1!==o||s.type!==b.Text&&s.type!==b.Raw||null==s.value){if(t.dontPrettyTextNodes)for(a=0,l=(d=e.children).length;a"+this.endline(e,t,r),t.state=g.InsideTag,u=0,c=(h=e.children).length;u",m&&t.suppressPrettyCount--,y+=this.endline(e,t,r),t.state=g.None}else y+=">",t.state=g.InsideTag,t.suppressPrettyCount++,m=!0,y+=this.writeChildNode(s,t,r+1),t.suppressPrettyCount--,m=!1,t.state=g.CloseTag,y+=""+this.endline(e,t,r);return this.closeNode(e,t,r),y},e.prototype.writeChildNode=function(e,t,r){switch(e.type){case b.CData:return this.cdata(e,t,r);case b.Comment:return this.comment(e,t,r);case b.Element:return this.element(e,t,r);case b.Raw:return this.raw(e,t,r);case b.Text:return this.text(e,t,r);case b.ProcessingInstruction:return this.processingInstruction(e,t,r);case b.Dummy:return"";case b.Declaration:return this.declaration(e,t,r);case b.DocType:return this.docType(e,t,r);case b.AttributeDeclaration:return this.dtdAttList(e,t,r);case b.ElementDeclaration:return this.dtdElement(e,t,r);case b.EntityDeclaration:return this.dtdEntity(e,t,r);case b.NotationDeclaration:return this.dtdNotation(e,t,r);default:throw new Error("Unknown XML node type: "+e.constructor.name)}},e.prototype.processingInstruction=function(e,t,r){var n;return this.openNode(e,t,r),t.state=g.OpenTag,n=this.indent(e,t,r)+"")+this.endline(e,t,r),t.state=g.None,this.closeNode(e,t,r),n},e.prototype.raw=function(e,t,r){var n;return this.openNode(e,t,r),t.state=g.OpenTag,n=this.indent(e,t,r),t.state=g.InsideTag,n+=e.value,t.state=g.CloseTag,n+=this.endline(e,t,r),t.state=g.None,this.closeNode(e,t,r),n},e.prototype.text=function(e,t,r){var n;return this.openNode(e,t,r),t.state=g.OpenTag,n=this.indent(e,t,r),t.state=g.InsideTag,n+=e.value,t.state=g.CloseTag,n+=this.endline(e,t,r),t.state=g.None,this.closeNode(e,t,r),n},e.prototype.dtdAttList=function(e,t,r){var n;return this.openNode(e,t,r),t.state=g.OpenTag,n=this.indent(e,t,r)+""+this.endline(e,t,r),t.state=g.None,this.closeNode(e,t,r),n},e.prototype.dtdElement=function(e,t,r){var n;return this.openNode(e,t,r),t.state=g.OpenTag,n=this.indent(e,t,r)+""+this.endline(e,t,r),t.state=g.None,this.closeNode(e,t,r),n},e.prototype.dtdEntity=function(e,t,r){var n;return this.openNode(e,t,r),t.state=g.OpenTag,n=this.indent(e,t,r)+""+this.endline(e,t,r),t.state=g.None,this.closeNode(e,t,r),n},e.prototype.dtdNotation=function(e,t,r){var n;return this.openNode(e,t,r),t.state=g.OpenTag,n=this.indent(e,t,r)+""+this.endline(e,t,r),t.state=g.None,this.closeNode(e,t,r),n},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":428,"./Utility":429,"./WriterState":430,"./XMLCData":432,"./XMLComment":434,"./XMLDTDAttList":439,"./XMLDTDElement":440,"./XMLDTDEntity":441,"./XMLDTDNotation":442,"./XMLDeclaration":443,"./XMLDocType":444,"./XMLDummy":447,"./XMLElement":448,"./XMLProcessingInstruction":452,"./XMLRaw":453,"./XMLText":457}],459:[function(l,c,e){!function(){var e=l("./Utility"),i=e.assign,o=e.isFunction,e=l("./XMLDOMImplementation"),s=l("./XMLDocument"),a=l("./XMLDocumentCB"),t=l("./XMLStringWriter"),r=l("./XMLStreamWriter"),n=l("./NodeType"),u=l("./WriterState");c.exports.create=function(e,t,r,n){if(null==e)throw new Error("Root element needs a name.");return n=i({},t,r,n),r=(t=new s(n)).element(e),n.headless||(t.declaration(n),null==n.pubID&&null==n.sysID||t.dtd(n)),r},c.exports.begin=function(e,t,r){var n;return o(e)&&(t=(n=[e,t])[0],r=n[1],e={}),t?new a(e,t,r):new s(e)},c.exports.stringWriter=function(e){return new t(e)},c.exports.streamWriter=function(e,t){return new r(e,t)},c.exports.implementation=new e,c.exports.nodeType=n,c.exports.writerState=u}.call(this)},{"./NodeType":428,"./Utility":429,"./WriterState":430,"./XMLDOMImplementation":437,"./XMLDocument":445,"./XMLDocumentCB":446,"./XMLStreamWriter":454,"./XMLStringWriter":455}],460:[function(e,t,r){t.exports=function(){for(var e={},t=0;ta?t=e(t):t.length>5]|=128<>>9<<4)]=t;for(var r=1732584193,n=-271733879,i=-1732584194,o=271733878,s=0;s>>32-i,r)}function f(e,t,r,n,i,o,s){return a(t&r|~t&n,e,t,i,o,s)}function p(e,t,r,n,i,o,s){return a(t&n|r&~n,e,t,i,o,s)}function d(e,t,r,n,i,o,s){return a(t^r^n,e,t,i,o,s)}function h(e,t,r,n,i,o,s){return a(r^(t|~n),e,t,i,o,s)}function m(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}t.exports=function(e){return n.hash(e,i,16)}},{"./helpers":462}],464:[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,n,i,o=Array(80),s=1732584193,a=-271733879,u=-1732584194,l=271733878,c=-1009589776,f=0;f>16)+(t>>16)+(r>>16)<<16|65535&r}function w(e,t){return e<>>32-t}t.exports=function(e){return n.hash(e,i,20,!0)}},{"./helpers":462}],465:[function(e,t,r){"use strict";t.exports=function(){return function(){}}},{}],466:[function(i,o,e){!function(n){!function(){"use strict";var t=i("@babel/runtime/helpers/interopRequireDefault")(i("@babel/runtime/helpers/typeof")),r=i("stream").Stream,e=i("../lib/common/utils/isArray").isArray;o.exports.string=function(e){return"string"==typeof e},o.exports.array=e,o.exports.buffer=n.isBuffer,o.exports.writableStream=function(e){return e instanceof r&&"function"==typeof e._write&&"object"===(0,t.default)(e._writableState)}}.call(this)}.call(this,{isBuffer:i("../node_modules/is-buffer/index.js")})},{"../lib/common/utils/isArray":63,"../node_modules/is-buffer/index.js":366,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,stream:398}],467:[function(e,t,r){"use strict";e=e("immediate"),t=t.exports={};function n(){}t.nextTick=e,t.title="browser",t.browser=!0,t.env={},t.argv=[],t.version="",t.versions={},t.on=n,t.addListener=n,t.once=n,t.off=n,t.removeListener=n,t.removeAllListeners=n,t.emit=n,t.prependListener=n,t.prependOnceListener=n,t.listeners=function(e){return[]},t.binding=function(e){throw new Error("process.binding is not supported")},t.cwd=function(){return"/"},t.chdir=function(e){throw new Error("process.chdir is not supported")},t.umask=function(){return 0}},{immediate:358}],468:[function(n,e,i){!function(l){!function(){"use strict";n("core-js/modules/es.regexp.exec.js"),n("core-js/modules/es.string.search.js");var s=n("./lib/request"),e=n("./lib/response"),a=n("xtend"),t=n("builtin-status-codes"),u=n("url"),r=i;r.request=function(e,t){e="string"==typeof e?u.parse(e):a(e);var r=-1===l.location.protocol.search(/^https?:$/)?"http:":"",r=e.protocol||r,n=e.hostname||e.host,i=e.port,o=e.path||"/",r=(n&&-1!==n.indexOf(":")&&(n="["+n+"]"),e.url=(n?r+"//"+n:"")+(i?":"+i:"")+o,e.method=(e.method||"GET").toUpperCase(),e.headers=e.headers||{},new s(e));return t&&r.on("response",t),r},r.get=function(e,t){e=r.request(e,t);return e.end(),e},r.ClientRequest=s,r.IncomingMessage=e.IncomingMessage,r.Agent=function(){},r.Agent.defaultMaxSockets=4,r.globalAgent=new r.Agent,r.STATUS_CODES=t,r.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 global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./lib/request":470,"./lib/response":471,"builtin-status-codes":91,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.search.js":306,url:472,xtend:460}],469:[function(a,e,u){!function(s){!function(){"use strict";a("core-js/modules/es.object.to-string.js"),a("core-js/modules/es.promise.js"),a("core-js/modules/es.array-buffer.constructor.js"),a("core-js/modules/es.array-buffer.slice.js"),a("core-js/modules/es.array.slice.js"),u.fetch=o(s.fetch)&&o(s.ReadableStream),u.writableStream=o(s.WritableStream),u.abortController=o(s.AbortController),u.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),u.blobConstructor=!0}catch(e){}var t;function r(){if(void 0!==t)return t;if(s.XMLHttpRequest){t=new s.XMLHttpRequest;try{t.open("GET",s.XDomainRequest?"/":"https://example.com")}catch(e){t=null}}else t=null;return t}function e(e){var t=r();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(e){}return!1}var n=void 0!==s.ArrayBuffer,i=n&&o(s.ArrayBuffer.prototype.slice);function o(e){return"function"==typeof e}u.arraybuffer=u.fetch||n&&e("arraybuffer"),u.msstream=!u.fetch&&i&&e("ms-stream"),u.mozchunkedarraybuffer=!u.fetch&&n&&e("moz-chunked-arraybuffer"),u.overrideMimeType=u.fetch||!!r()&&o(r().overrideMimeType),u.vbArray=o(s.VBArray),t=null}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"core-js/modules/es.array-buffer.constructor.js":270,"core-js/modules/es.array-buffer.slice.js":271,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295}],470:[function(o,s,e){!function(f,p,d){!function(){"use strict";o("core-js/modules/es.object.to-string.js"),o("core-js/modules/es.regexp.to-string.js"),o("core-js/modules/web.dom-collections.for-each.js"),o("core-js/modules/es.object.keys.js"),o("core-js/modules/es.array.concat.js"),o("core-js/modules/es.array.map.js"),o("core-js/modules/es.function.name.js"),o("core-js/modules/es.promise.js"),o("core-js/modules/es.regexp.exec.js"),o("core-js/modules/es.string.split.js");var u=o("./capability"),e=o("inherits"),t=o("./response"),i=o("readable-stream"),l=o("to-arraybuffer"),r=t.IncomingMessage,c=t.readyStates;t=s.exports=function(t){var e,r=this,n=(i.Writable.call(r),r._opts=t,r._body=[],r._headers={},t.auth&&r.setHeader("Authorization","Basic "+new d(t.auth).toString("base64")),Object.keys(t.headers).forEach(function(e){r.setHeader(e,t.headers[e])}),!0);if("disable-fetch"===t.mode||"requestTimeout"in t&&!u.abortController)e=!(n=!1);else if("prefer-streaming"===t.mode)e=!1;else if("allow-wrong-content-type"===t.mode)e=!u.overrideMimeType;else{if(t.mode&&"default"!==t.mode&&"prefer-fast"!==t.mode)throw new Error("Invalid value for opts.mode");e=!0}r._mode=(e=e,n=n,u.fetch&&n?"fetch":u.mozchunkedarraybuffer?"moz-chunked-arraybuffer":u.msstream?"ms-stream":u.arraybuffer&&e?"arraybuffer":u.vbArray&&e?"text:vbarray":"text"),r._fetchTimer=null,r.on("finish",function(){r._onFinish()})};e(t,i.Writable),t.prototype.setHeader=function(e,t){var r=e.toLowerCase();-1===n.indexOf(r)&&(this._headers[r]={name:e,value:t})},t.prototype.getHeader=function(e){e=this._headers[e.toLowerCase()];return e?e.value:null},t.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},t.prototype._onFinish=function(){var t=this;if(!t._destroyed){var e=t._opts,r=t._headers,n=null,i=("GET"!==e.method&&"HEAD"!==e.method&&(n=u.arraybuffer?l(d.concat(t._body)):u.blobConstructor?new p.Blob(t._body.map(function(e){return l(e)}),{type:(r["content-type"]||{}).value||""}):d.concat(t._body).toString()),[]);if(Object.keys(r).forEach(function(e){var t=r[e].name,e=r[e].value;Array.isArray(e)?e.forEach(function(e){i.push([t,e])}):i.push([t,e])}),"fetch"===t._mode){var o,s=null;u.abortController&&(s=(o=new AbortController).signal,t._fetchAbortController=o,"requestTimeout"in e&&0!==e.requestTimeout&&(t._fetchTimer=p.setTimeout(function(){t.emit("requestTimeout"),t._fetchAbortController&&t._fetchAbortController.abort()},e.requestTimeout))),p.fetch(t._opts.url,{method:t._opts.method,headers:i,body:n||void 0,mode:"cors",credentials:e.withCredentials?"include":"same-origin",signal:s}).then(function(e){t._fetchResponse=e,t._connect()},function(e){p.clearTimeout(t._fetchTimer),t._destroyed||t.emit("error",e)})}else{var a=t._xhr=new p.XMLHttpRequest;try{a.open(t._opts.method,t._opts.url,!0)}catch(e){return void f.nextTick(function(){t.emit("error",e)})}"responseType"in a&&(a.responseType=t._mode.split(":")[0]),"withCredentials"in a&&(a.withCredentials=!!e.withCredentials),"text"===t._mode&&"overrideMimeType"in a&&a.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in e&&(a.timeout=e.requestTimeout,a.ontimeout=function(){t.emit("requestTimeout")}),i.forEach(function(e){a.setRequestHeader(e[0],e[1])}),t._response=null,a.onreadystatechange=function(){switch(a.readyState){case c.LOADING:case c.DONE:t._onXHRProgress()}},"moz-chunked-arraybuffer"===t._mode&&(a.onprogress=function(){t._onXHRProgress()}),a.onerror=function(){t._destroyed||t.emit("error",new Error("XHR error"))};try{a.send(n)}catch(e){return void f.nextTick(function(){t.emit("error",e)})}}}},t.prototype._onXHRProgress=function(){!function(e){try{var t=e.status;return null!==t&&0!==t}catch(e){return}}(this._xhr)||this._destroyed||(this._response||this._connect(),this._response._onXHRProgress())},t.prototype._connect=function(){var t=this;t._destroyed||(t._response=new r(t._xhr,t._fetchResponse,t._mode,t._fetchTimer),t._response.on("error",function(e){t.emit("error",e)}),t.emit("response",t._response))},t.prototype._write=function(e,t,r){this._body.push(e),r()},t.prototype.abort=t.prototype.destroy=function(){this._destroyed=!0,p.clearTimeout(this._fetchTimer),this._response&&(this._response._destroyed=!0),this._xhr?this._xhr.abort():this._fetchAbortController&&this._fetchAbortController.abort()},t.prototype.end=function(e,t,r){"function"==typeof e&&(r=e,e=void 0),i.Writable.prototype.end.call(this,e,t,r)},t.prototype.flushHeaders=function(){},t.prototype.setTimeout=function(){},t.prototype.setNoDelay=function(){},t.prototype.setSocketKeepAlive=function(){};var n=["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,o("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},o("buffer").Buffer)},{"./capability":469,"./response":471,_process:467,buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.map.js":280,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.split.js":307,"core-js/modules/web.dom-collections.for-each.js":339,inherits:364,"readable-stream":394,"to-arraybuffer":415}],471:[function(r,e,n){!function(c,f,p){!function(){"use strict";r("core-js/modules/es.object.to-string.js"),r("core-js/modules/web.dom-collections.for-each.js"),r("core-js/modules/es.promise.js"),r("core-js/modules/es.regexp.exec.js"),r("core-js/modules/es.string.split.js"),r("core-js/modules/es.string.match.js"),r("core-js/modules/es.array.iterator.js"),r("core-js/modules/es.array-buffer.slice.js"),r("core-js/modules/es.typed-array.uint8-array.js"),r("core-js/modules/es.typed-array.copy-within.js"),r("core-js/modules/es.typed-array.every.js"),r("core-js/modules/es.typed-array.fill.js"),r("core-js/modules/es.typed-array.filter.js"),r("core-js/modules/es.typed-array.find.js"),r("core-js/modules/es.typed-array.find-index.js"),r("core-js/modules/es.typed-array.for-each.js"),r("core-js/modules/es.typed-array.includes.js"),r("core-js/modules/es.typed-array.index-of.js"),r("core-js/modules/es.typed-array.iterator.js"),r("core-js/modules/es.typed-array.join.js"),r("core-js/modules/es.typed-array.last-index-of.js"),r("core-js/modules/es.typed-array.map.js"),r("core-js/modules/es.typed-array.reduce.js"),r("core-js/modules/es.typed-array.reduce-right.js"),r("core-js/modules/es.typed-array.reverse.js"),r("core-js/modules/es.typed-array.set.js"),r("core-js/modules/es.typed-array.slice.js"),r("core-js/modules/es.typed-array.some.js"),r("core-js/modules/es.typed-array.sort.js"),r("core-js/modules/es.typed-array.subarray.js"),r("core-js/modules/es.typed-array.to-locale-string.js"),r("core-js/modules/es.typed-array.to-string.js"),r("core-js/modules/es.array.slice.js");var a=r("./capability"),e=r("inherits"),u=r("readable-stream"),l=n.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},t=n.IncomingMessage=function(e,t,r,n){var i=this;if(u.Readable.call(i),i._mode=r,i.headers={},i.rawHeaders=[],i.trailers={},i.rawTrailers=[],i.on("end",function(){c.nextTick(function(){i.emit("close")})}),"fetch"===r){r=function t(){s.read().then(function(e){if(!i._destroyed){if(e.done)return f.clearTimeout(n),void i.push(null);i.push(new p(e.value)),t()}}).catch(function(e){f.clearTimeout(n),i._destroyed||i.emit("error",e)})};if(i._fetchResponse=t,i.url=t.url,i.statusCode=t.status,i.statusMessage=t.statusText,t.headers.forEach(function(e,t){i.headers[t.toLowerCase()]=e,i.rawHeaders.push(t,e)}),a.writableStream){var o=new WritableStream({write:function(r){return new Promise(function(e,t){i._destroyed?t():i.push(new p(r))?e():i._resumeFetch=e})},close:function(){f.clearTimeout(n),i._destroyed||i.push(null)},abort:function(e){i._destroyed||i.emit("error",e)}});try{return void t.body.pipeTo(o).catch(function(e){f.clearTimeout(n),i._destroyed||i.emit("error",e)})}catch(e){}}var s=t.body.getReader();r()}else i._xhr=e,i._pos=0,i.url=e.responseURL,i.statusCode=e.status,i.statusMessage=e.statusText,e.getAllResponseHeaders().split(/\r?\n/).forEach(function(e){var t,e=e.match(/^([^:]+):\s*(.*)/);e&&("set-cookie"===(t=e[1].toLowerCase())?(void 0===i.headers[t]&&(i.headers[t]=[]),i.headers[t].push(e[2])):void 0!==i.headers[t]?i.headers[t]+=", "+e[2]:i.headers[t]=e[2],i.rawHeaders.push(e[1],e[2]))}),i._charset="x-user-defined",a.overrideMimeType||((o=i.rawHeaders["mime-type"])&&(t=o.match(/;\s*charset=([^;])(;|$)/))&&(i._charset=t[1].toLowerCase()),i._charset||(i._charset="utf-8"))};e(t,u.Readable),t.prototype._read=function(){var e=this._resumeFetch;e&&(this._resumeFetch=null,e())},t.prototype._onXHRProgress=function(){var t=this,e=t._xhr,r=null;switch(t._mode){case"text:vbarray":if(e.readyState!==l.DONE)break;try{r=new f.VBArray(e.responseBody).toArray()}catch(e){}if(null!==r){t.push(new p(r));break}case"text":try{r=e.responseText}catch(e){t._mode="text:vbarray";break}if(r.length>t._pos){var n=r.substr(t._pos);if("x-user-defined"===t._charset){for(var i=new p(n.length),o=0;ot._pos&&(t.push(new p(new Uint8Array(s.result.slice(t._pos)))),t._pos=s.result.byteLength)},s.onload=function(){t.push(null)},s.readAsArrayBuffer(r)}t._xhr.readyState===l.DONE&&"ms-stream"!==t._mode&&t.push(null)}}.call(this)}.call(this,r("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},r("buffer").Buffer)},{"./capability":469,_process:467,buffer:90,"core-js/modules/es.array-buffer.slice.js":271,"core-js/modules/es.array.iterator.js":278,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.match.js":304,"core-js/modules/es.string.split.js":307,"core-js/modules/es.typed-array.copy-within.js":315,"core-js/modules/es.typed-array.every.js":316,"core-js/modules/es.typed-array.fill.js":317,"core-js/modules/es.typed-array.filter.js":318,"core-js/modules/es.typed-array.find-index.js":319,"core-js/modules/es.typed-array.find.js":320,"core-js/modules/es.typed-array.for-each.js":321,"core-js/modules/es.typed-array.includes.js":322,"core-js/modules/es.typed-array.index-of.js":323,"core-js/modules/es.typed-array.iterator.js":324,"core-js/modules/es.typed-array.join.js":325,"core-js/modules/es.typed-array.last-index-of.js":326,"core-js/modules/es.typed-array.map.js":327,"core-js/modules/es.typed-array.reduce-right.js":328,"core-js/modules/es.typed-array.reduce.js":329,"core-js/modules/es.typed-array.reverse.js":330,"core-js/modules/es.typed-array.set.js":331,"core-js/modules/es.typed-array.slice.js":332,"core-js/modules/es.typed-array.some.js":333,"core-js/modules/es.typed-array.sort.js":334,"core-js/modules/es.typed-array.subarray.js":335,"core-js/modules/es.typed-array.to-locale-string.js":336,"core-js/modules/es.typed-array.to-string.js":337,"core-js/modules/es.typed-array.uint8-array.js":338,"core-js/modules/web.dom-collections.for-each.js":339,inherits:364,"readable-stream":394}],472:[function(e,t,r){"use strict";var k=e("@babel/runtime/helpers/interopRequireDefault")(e("@babel/runtime/helpers/typeof")),_=(e("core-js/modules/es.regexp.exec.js"),e("core-js/modules/es.string.search.js"),e("core-js/modules/es.array.concat.js"),e("core-js/modules/es.string.split.js"),e("core-js/modules/es.string.replace.js"),e("core-js/modules/es.array.join.js"),e("core-js/modules/es.string.trim.js"),e("core-js/modules/es.string.match.js"),e("core-js/modules/es.array.slice.js"),e("core-js/modules/es.object.keys.js"),e("core-js/modules/es.array.splice.js"),e("punycode")),T=e("./util");function j(){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=i,r.resolve=function(e,t){return i(e,!1,!0).resolve(t)},r.resolveObject=function(e,t){return e?i(e,!1,!0).resolveObject(t):t},r.format=function(e){T.isString(e)&&(e=i(e));return e instanceof j?e.format():j.prototype.format.call(e)},r.Url=j;var E=/^([a-z0-9.+-]+:)/i,n=/:[0-9]*$/,S=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,r=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),O=["'"].concat(r),A=["%","/","?",";","#"].concat(O),I=["/","?","#"],D=/^[+a-z0-9A-Z_-]{0,63}$/,R=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,C={javascript:!0,"javascript:":!0},M={javascript:!0,"javascript:":!0},P={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},N=e("querystring");function i(e,t,r){if(e&&T.isObject(e)&&e instanceof j)return e;var n=new j;return n.parse(e,t,r),n}j.prototype.parse=function(e,t,r){if(!T.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+(0,k.default)(e));var n=e.indexOf("?"),n=-1!==n&&nu.maxRedirects))return r=u.formatRedirectUrl?u.formatRedirectUrl(a,n):F.resolve(a,n),G("Request#%d %s: `redirected` from %s to %s",c,h.path,a,r),S(),u.headers&&u.headers.Host&&z.test(n)&&(u.headers.Host=null),n=l,l=null,J.requestWithCallback(r,u,n),{redirect:!0,error:null};(t=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+a)).name="MaxRedirectError"}else(t=new Error("Got statusCode "+e.statusCode+" but cannot resolve next location from headers")).name="FollowRedirectError"}return{redirect:!1,error:t}}u.timing&&(T={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0}),!u.gzip||h.headers["Accept-Encoding"]||h.headers["accept-encoding"]||(h.headers["Accept-Encoding"]="gzip");var I,D,R,C=u.writeStream;function M(){G("Response timer ticking, timeout: %d",D),y=setTimeout(function(){y=null;var e="Response timeout for "+D+"ms";(b=new Error(e)).name="ResponseTimeoutError",b.requestId=c,G("ResponseTimeout: Request#%d %s %s: %s, connected: %s",c,a,b.name,e,g),P()},D)}G("Request#%d %s %s with headers %j, options.path: %s",c,r,a,h.headers,h.path),u.requestUrls.push(a),Array.isArray(u.timeout)?(I=W(u.timeout[0]),D=W(u.timeout[1])):I=D=W(u.timeout),G("ConnectTimeout: %d, ResponseTimeout: %d",I,D),h.mode=u.mode||"";try{R=i.request(h,function(i){var e;if(T&&(T.waiting=Date.now()-p),G("Request#%d %s `req response` event emit: status %d, headers: %j",c,a,i.statusCode,i.headers),u.streaming)return(e=A(i)).redirect?void i.resume():e.error?(i.resume(),O(e.error,null,i)):O(null,null,i);if(i.on("close",function(){G("Request#%d %s: `res close` event emit, total size %d",c,a,w)}),i.on("error",function(){G("Request#%d %s: `res error` event emit, total size %d",c,a,w)}),i.on("aborted",function(){x=!0,G("Request#%d %s: `res aborted` event emit, total size %d",c,a,w)}),C)return(e=A(i)).redirect?void i.resume():e.error?(i.resume(),C.end(),O(e.error,null,i)):(!1===u.consumeWriteStream?i.on("end",O.bind(null,null,null,i)):C.on("close",function(){G("Request#%d %s: writeStream close event emitted",c,a),O(b||null,null,i)}),i.pipe(C));var t=[];i.on("data",function(e){G("Request#%d %s: `res data` event emit, size %d",c,a,e.length),w+=e.length,t.push(e)}),i.on("end",function(){var e,n=Y.concat(t,w);return G("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",c,a,w,i._dumped),b?O(b,n,i):(e=A(i)).error?O(e.error,n,i):void(e.redirect||function(e,t,r){if(e)return O(e,n,i);if(!r&&0<=K.indexOf(u.dataType)){try{t=decodeBodyByCharset(t,i)}catch(e){return G("decodeBodyByCharset error: %s",e),O(null,t,i)}"json"===u.dataType&&(0===w?t=null:(r=parseJSON(t,N)).error?e=r.error:t=r.data)}x&&G("Request#%d %s: Remote socket was terminated before `response.end()` was called",c,a),O(e,t,i)}(null,n,i.headers["content-encoding"]))})})}catch(e){return O(e)}function P(){G("Request#%d %s abort, connected: %s",c,a,g),R.socket||(b.noSocket=!0,O(b)),R.abort()}return"undefined"==typeof window?(G("Connect timer ticking, timeout: %d",I),s=setTimeout(function(){s=null,-1===j&&(j=-2);var e="Connect timeout for "+I+"ms",t="ConnectionTimeoutError";R.socket||(t="SocketAssignTimeoutError",e+=", working sockets is full"),(b=new Error(e)).name=t,b.requestId=c,G("ConnectTimeout: Request#%d %s %s: %s, connected: %s",c,a,b.name,e,g),P()},I)):R.on("requestTimeout",function(){-1===j&&(j=-2);(b=new Error("Connect timeout for "+I+"ms")).name="ConnectionTimeoutError",b.requestId=c,P()}),T&&R.on("finish",function(){T.requestSent=Date.now()-p}),R.once("socket",function(e){T&&(T.queuing=Date.now()-p);var t=e.readyState;if("opening"===t)return e.once("lookup",function(e,t,r){G("Request#%d %s lookup: %s, %s, %s",c,a,e,t,r),T&&(T.dnslookup=Date.now()-p),t&&(k=t)}),void e.once("connect",function(){T&&(T.connected=Date.now()-p),E(),M(),G("Request#%d %s new socket connected",c,a),g=!0,k=k||e.remoteAddress,_=e.remotePort});G("Request#%d %s reuse socket connected, readyState: %s",c,a,t),v=g=!0,k=k||e.remoteAddress,_=e.remotePort,E(),M()}),R.on("error",function(e){"Error"!==e.name&&"TypeError"!==e.name||(e.name=g?"ResponseError":"RequestError"),e.message+=' (req "error")',G("Request#%d %s `req error` event emit, %s: %s",c,a,e.name,e.message),O(b||e)}),C&&C.once("error",function(e){e.message+=' (writeStream "error")',G("Request#%d %s `writeStream error` event emit, %s: %s",c,a,(b=e).name,e.message),P()}),u.stream?(u.stream.pipe(R),u.stream.once("error",function(e){e.message+=' (stream "error")',G("Request#%d %s `readStream error` event emit, %s: %s",c,a,(b=e).name,e.message),P()})):R.end(n),R.requestId=c,R}}.call(this)}.call(this,e("_process"),e("buffer").Buffer)},{"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,_process:467,buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.split.js":307,"core-js/modules/es.string.trim.js":308,debug:465,http:468,https:355,"humanize-ms":356,url:472,util:419}]},{},[1])(1)});})(window)