|
|
|
|
// Aliyun OSS SDK for JavaScript v5.3.1
|
|
|
|
|
// Copyright Aliyun.com, Inc. or its affiliates. All Rights Reserved.
|
|
|
|
|
// License at https://github.com/ali-sdk/ali-oss/blob/master/LICENSE
|
|
|
|
|
!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.OSS=t()}}(function(){var t;return function(){function t(e,r,n){function i(a,s){if(!r[a]){if(!e[a]){var c="function"==typeof require&&require;if(!s&&c)return c(a,!0);if(o)return o(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var l=r[a]={exports:{}};e[a][0].call(l.exports,function(t){return i(e[a][1][t]||t)},l,l.exports,t,e,r,n)}return r[a].exports}for(var o="function"==typeof require&&require,a=0;a<n.length;a++)i(n[a]);return i}return t}()({1:[function(t,e,r){"use strict";var n=t("./browser/client");n.Buffer=t("buffer").Buffer,n.co=t("co"),n.urllib=t("../shims/xhr"),n.version=t("./browser/version").version,e.exports=n},{"../shims/xhr":244,"./browser/client":2,"./browser/version":5,buffer:38,co:41}],2:[function(t,e,r){(function(r,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function o(t,e){return t[e]||t[e.toLowerCase()]}function a(t,e){var r=E.parse(t);if(!r.protocol){var n=e?"https://":"http://";r=E.parse(n+t)}if("http:"!==r.protocol&&"https:"!==r.protocol)throw new Error("Endpoint protocol must be http or https.");return r}function s(t,e,r){var n=r?"https://":"http://",i=e?"-internal.aliyuncs.com":".aliyuncs.com";return"vpc100-oss-cn-"===t.substr(0,"vpc100-oss-cn-".length)&&(i=".aliyuncs.com"),E.parse(n+t+i)}function c(){return document&&document.location&&"https:"===document.location.protocol}function u(t,e){if(!(this instanceof u))return new u(t,e);t&&t.inited?this.options=t:this.options=u.initOptions(t),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=j,this.agent=this.options.agent||I),this.ctx=e,this.userAgent=this._getUserAgent(),this.options.amendTimeSkewed=0}var l=t("babel-runtime/regenerator"),p=i(l),f=t("babel-runtime/core-js/object/keys"),d=i(f),h=t("debug")("ali-oss"),m=t("./../../shims/crypto/crypto.js"),v=t("path"),b=t("copy-to"),y=t("mime"),g=t("xml2js"),_=t("humanize-ms"),w=t("agentkeepalive"),x=t("merge-descriptors"),E=t("url"),S=t("is-type-of"),T=t("platform"),k=t("utility"),j=t("urllib"),O=t("./version"),A=t("dateformat"),N=t("bowser"),C=t("../common/signUtils"),P=t("../common/utils"),I=new w;e.exports=u,u.initOptions=function(t){if(!t||!t.accessKeyId||!t.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");var e=c(),r={region:"oss-cn-hangzhou",internal:!1,secure:e,bucket:null,endpoint:null,cname:!1};if((0,d.default)(t).forEach(function(e){void 0!==t[e]&&(r[e]=t[e])}),r.accessKeyId=r.accessKeyId.trim(),r.accessKeySecret=r.accessKeySecret.trim(),r.timeout&&(r.timeout=_(r.timeout)),r.endpoint)r.endpoint=a(r.endpoint,r.secure);else{if(!r.region)throw new Error("require options.endpoint or options.region");r.endpoint=s(r.region,r.internal,r.secure)}return r.inited=!0,r};var L=u.prototype;x(L,t("./object")),x(L,t("./managed_upload")),x(L,t("../common/multipart")),x(L,t("../common/thunkpool.js")),u.Wrapper=t("./wrapper"),L.signature=function(t){return h("authorization stringToSign: %s",t),C.computeSignature(this.options.accessKeySecret,t)},L.authorization=function(t,e,r,n){var i=C.buildCanonicalString(t.toUpperCase(),e,{headers:n,parameters:r});return C.authorization(this.options.accessKeyId,this.options.accessKeySecret,i)},L.createRequest=function(t){var e={"x-oss-date":A(+new Date+this.options.amendTimeSkewed,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'"),"x-oss-user-agent":this.userAgent};this.options.stsToken&&(e["x-oss-security-token"]=this.options.stsToken),b(t.headers).to(e),o(e,"Content-Type")||(t.mime===y.default_type&&(t.mime=""),t.mime&&t.mime.indexOf("/")>0?e["Content-Type"]=t.mime:e["Content-Type"]=y.getType(t.mime||v.extname(t.object||""))||"application/octet-stream"),t.content&&(e["Content-Md5"]=m.createHash("md5").update(new n(t.content,"utf8")).digest("base64"),e["Content-Length"]||(e["Content-Length"]=t.content.le
|
|
|
|
|
return c.createHmac("sha1",t).update(new e(r,"utf8")).digest("base64")},r.authorization=function(t,e,r){return"OSS "+t+":"+this.computeSignature(e,r)},r._signatureForURL=function(t,r,n,i){var a={},c={};if(r.process){c["x-oss-process"]=r.process}if(r.response&&(0,s.default)(r.response).forEach(function(t){var e="response-"+t.toLowerCase();c[e]=r.response[t]}),(0,s.default)(r).forEach(function(t){var e=t.toLowerCase(),n=r[t];0===e.indexOf("x-oss-")?a[e]=n:0===e.indexOf("content-md5")?a[t]=n:0===e.indexOf("content-type")?a[t]=n:"expires"!==e&&"response"!==e&&"process"!==e&&"method"!==e&&(c[e]=n)}),Object.prototype.hasOwnProperty.call(r,"security-token")&&(c["security-token"]=r["security-token"]),Object.prototype.hasOwnProperty.call(r,"callback")){var u={callbackUrl:encodeURI(r.callback.url),callbackBody:r.callback.body};if(r.callback.host&&(u.callbackHost=r.callback.host),r.callback.contentType&&(u.callbackBodyType=r.callback.contentType),c.callback=new e((0,o.default)(u)).toString("base64"),r.callback.customValue){var l={};(0,s.default)(r.callback.customValue).forEach(function(t){l["x:"+t]=r.callback.customValue[t]}),c["callback-var"]=new e((0,o.default)(l)).toString("base64")}}var p=this.buildCanonicalString(r.method,n,{headers:a,parameters:c},i.toString());return{Signature:this.computeSignature(t,p),subResource:c}}}).call(this,t("buffer").Buffer)},{"./../../shims/crypto/crypto.js":237,"babel-runtime/core-js/json/stringify":17,"babel-runtime/core-js/object/keys":23,buffer:38,"is-type-of":165}],10:[function(t,e,r){"use strict";var n=t("babel-runtime/regenerator"),i=function(t){return t&&t.__esModule?t:{default:t}}(n),o=t("co"),a=t("co-priority-queue"),s=t("any-promise"),c=r;c._thunkPool=function(t,e){function r(t,e){++u===t.length&&e(l)}function n(t,e){function r(){var r;return i.default.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:r=void 0;case 1:if(c.isCancel()){n.next=9;break}return n.next=4,u.next();case 4:return r=n.sent,n.next=7,r();case 7:n.next=1;break;case 9:p+=1,p===t&&(u.fns=[],u.buffer=[],e(l));case 11:case"end":return n.stop()}},s,this)}function n(t){console.error(t.stack)}for(var s=i.default.mark(r),u=new a,p=0,f=0;f<t;f++)o(r).catch(n);return function(t,e){return function(r){u.push(i.default.mark(function e(){return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.t0=r,e.next=4,t;case 4:e.t1=e.sent,(0,e.t0)(null,e.t1),e.next=11;break;case 8:e.prev=8,e.t2=e.catch(0),r(e.t2);case 11:case"end":return e.stop()}},e,this,[[0,8]])}),e)}}}var c=this,u=0,l=[];return new s(function(a){function s(e){return i.default.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,p(t[e]);case 2:r(t,a);case 3:case"end":return n.stop()}},u,this)}function c(e){l.push(e),r(t,a)}for(var u=i.default.mark(s),p=new n(e,a),f=0;f<t.length;f++)o(s(f)).catch(c)})},c.cancel=function(){this.options.cancelFlag=!0},c.isCancel=function(){return this.options.cancelFlag},c.resetCancelFlag=function(){this.options.cancelFlag=!1}},{"any-promise":13,"babel-runtime/regenerator":33,co:41,"co-priority-queue":40}],11:[function(t,e,r){"use strict";r._isIP=function(t){var e=/^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$/,r=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\
|
|
|
|
|
return-1!==this.indexOf(t,e,r)},o.prototype.indexOf=function(t,e,r){return g(this,t,e,r,!0)},o.prototype.lastIndexOf=function(t,e,r){return g(this,t,e,r,!1)},o.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return w(this,t,e,r);case"utf8":case"utf-8":return x(this,t,e,r);case"ascii":return E(this,t,e,r);case"latin1":case"binary":return S(this,t,e,r);case"base64":return T(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,t,e,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Z=4096;o.prototype.slice=function(t,e){var r=this.length;t=~~t,e=void 0===e?r:~~e,t<0?(t+=r)<0&&(t=0):t>r&&(t=r),e<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t);var n;if(o.TYPED_ARRAY_SUPPORT)n=this.subarray(t,e),n.__proto__=o.prototype;else{var i=e-t;n=new o(i,void 0);for(var a=0;a<i;++a)n[a]=this[a+t]}return n},o.prototype.readUIntLE=function(t,e,r){t|=0,e|=0,r||L(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n},o.prototype.readUIntBE=function(t,e,r){t|=0,e|=0,r||L(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},o.prototype.readUInt8=function(t,e){return e||L(t,1,this.length),this[t]},o.prototype.readUInt16LE=function(t,e){return e||L(t,2,this.length),this[t]|this[t+1]<<8},o.prototype.readUInt16BE=function(t,e){return e||L(t,2,this.length),this[t]<<8|this[t+1]},o.prototype.readUInt32LE=function(t,e){return e||L(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},o.prototype.readUInt32BE=function(t,e){return e||L(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},o.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||L(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return i*=128,n>=i&&(n-=Math.pow(2,8*e)),n},o.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||L(t,e,this.length);for(var n=e,i=1,o=this[t+--n];n>0&&(i*=256);)o+=this[t+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},o.prototype.readInt8=function(t,e){return e||L(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},o.prototype.readInt16LE=function(t,e){e||L(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},o.prototype.readInt16BE=function(t,e){e||L(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},o.prototype.readInt32LE=function(t,e){return e||L(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},o.prototype.readInt32BE=function(t,e){return e||L(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},o.prototype.readFloatLE=function(t,e){return e||L(t,4,this.length),Q.read(this,t,!0,23,4)},o.prototype.readFloatBE=function(t,e){return e||L(t,4,this.length),Q.read(this,t,!1,23,4)},o.prototype.readDoubleLE=function(t,e){return e||L(t,8,this.length),Q.read(this,t,!0,52,8)},o.prototype.readDoubleBE=function(t,e){return e||L(t,8,this.length),Q.read(this,t,!1,52,8)},o.prototype.writeUIntLE=function(t,e,r,n){if(t=+t,e|=0,r|=0,!n){M(this,t,e,r,Math.pow(2,8*r)-1,0)}var i=1,o=0;for(this[e]=255&t;++o<r&&(i*=256);)this[e+o]=t/i&255;return e+r},o.prototype.writeUIntBE=function(t,e,r,n){if(t=+t,e|=0,r|=0,!n){M(this,t,e,r,Math.pow(2,8*r)-1,0)}var i=r-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+r},o.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||M(this,t,e,1,255,0),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},o.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||M(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(
|
|
|
|
|
"./_to-primitive":126}],101:[function(t,e,r){var n=t("./_to-iobject"),i=t("./_object-gopn").f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return i(t)}catch(t){return a.slice()}};e.exports.f=function(t){return a&&"[object Window]"==o.call(t)?s(t):i(n(t))}},{"./_object-gopn":102,"./_to-iobject":123}],102:[function(t,e,r){var n=t("./_object-keys-internal"),i=t("./_enum-bug-keys").concat("length","prototype");r.f=Object.getOwnPropertyNames||function(t){return n(t,i)}},{"./_enum-bug-keys":71,"./_object-keys-internal":105}],103:[function(t,e,r){r.f=Object.getOwnPropertySymbols},{}],104:[function(t,e,r){var n=t("./_has"),i=t("./_to-object"),o=t("./_shared-key")("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(t){return t=i(t),n(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},{"./_has":77,"./_shared-key":116,"./_to-object":125}],105:[function(t,e,r){var n=t("./_has"),i=t("./_to-iobject"),o=t("./_array-includes")(!1),a=t("./_shared-key")("IE_PROTO");e.exports=function(t,e){var r,s=i(t),c=0,u=[];for(r in s)r!=a&&n(s,r)&&u.push(r);for(;e.length>c;)n(s,r=e[c++])&&(~o(u,r)||u.push(r));return u}},{"./_array-includes":62,"./_has":77,"./_shared-key":116,"./_to-iobject":123}],106:[function(t,e,r){var n=t("./_object-keys-internal"),i=t("./_enum-bug-keys");e.exports=Object.keys||function(t){return n(t,i)}},{"./_enum-bug-keys":71,"./_object-keys-internal":105}],107:[function(t,e,r){r.f={}.propertyIsEnumerable},{}],108:[function(t,e,r){var n=t("./_export"),i=t("./_core"),o=t("./_fails");e.exports=function(t,e){var r=(i.Object||{})[t]||Object[t],a={};a[t]=e(r),n(n.S+n.F*o(function(){r(1)}),"Object",a)}},{"./_core":65,"./_export":73,"./_fails":74}],109:[function(t,e,r){e.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},{}],110:[function(t,e,r){var n=t("./_an-object"),i=t("./_is-object"),o=t("./_new-promise-capability");e.exports=function(t,e){if(n(t),i(e)&&e.constructor===t)return e;var r=o.f(t);return(0,r.resolve)(e),r.promise}},{"./_an-object":61,"./_is-object":85,"./_new-promise-capability":95}],111:[function(t,e,r){e.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},{}],112:[function(t,e,r){var n=t("./_hide");e.exports=function(t,e,r){for(var i in e)r&&t[i]?t[i]=e[i]:n(t,i,e[i]);return t}},{"./_hide":78}],113:[function(t,e,r){e.exports=t("./_hide")},{"./_hide":78}],114:[function(t,e,r){"use strict";var n=t("./_global"),i=t("./_core"),o=t("./_object-dp"),a=t("./_descriptors"),s=t("./_wks")("species");e.exports=function(t){var e="function"==typeof i[t]?i[t]:n[t];a&&e&&!e[s]&&o.f(e,s,{configurable:!0,get:function(){return this}})}},{"./_core":65,"./_descriptors":69,"./_global":76,"./_object-dp":98,"./_wks":131}],115:[function(t,e,r){var n=t("./_object-dp").f,i=t("./_has"),o=t("./_wks")("toStringTag");e.exports=function(t,e,r){t&&!i(t=r?t:t.prototype,o)&&n(t,o,{configurable:!0,value:e})}},{"./_has":77,"./_object-dp":98,"./_wks":131}],116:[function(t,e,r){var n=t("./_shared")("keys"),i=t("./_uid");e.exports=function(t){return n[t]||(n[t]=i(t))}},{"./_shared":117,"./_uid":127}],117:[function(t,e,r){var n=t("./_core"),i=t("./_global"),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(e.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:n.version,mode:t("./_library")?"pure":"global",copyright:"漏 2018 Denis Pushkarev (zloirock.ru)"})},{"./_core":65,"./_global":76,"./_library":92}],118:[function(t,e,r){var n=t("./_an-object"),i=t("./_a-function"),o=t("./_wks")("species");e.exports=function(t,e){var r,a=n(t).constructor;return void 0===a||void 0==(r=n(a)[o])?e:i(r)}},{"./_a-function":58,"./_an-object":61,"./_wks":131}],119:[function(t,e,r){var n=t("./_to-integer"),i=t("./_defined");e.exports=function(t){return function(e,r){var o,a,s=String(i(e)),c=n(r),u=s.length;return c<0||c>=u?t?"":void 0:(o=s.charCodeAt(c),o<55296||o>56319||c+1===u||(a=s.charCodeAt
|
|
|
|
|
i(r))this.removeListener(t,r);else if(r)for(;r.length;)this.removeListener(t,r[r.length-1]);return delete this._events[t],this},n.prototype.listeners=function(t){return this._events&&this._events[t]?i(this._events[t])?[this._events[t]]:this._events[t].slice():[]},n.prototype.listenerCount=function(t){if(this._events){var e=this._events[t];if(i(e))return 1;if(e)return e.length}return 0},n.listenerCount=function(t,e){return t.listenerCount(e)}},{}],159:[function(t,e,r){var n=t("http"),i=e.exports;for(var o in n)n.hasOwnProperty(o)&&(i[o]=n[o]);i.request=function(t,e){return t||(t={}),t.scheme="https",t.protocol="https:",n.request.call(this,t,e)}},{http:196}],160:[function(t,e,r){"use strict";var n=t("util"),i=t("ms");e.exports=function(t){if("number"==typeof t)return t;var e=i(t);if(void 0===e){var r=new Error(n.format("humanize-ms(%j) result undefined",t));console.warn(r.stack)}return e}},{ms:169,util:207}],161:[function(t,e,r){r.read=function(t,e,r,n,i){var o,a,s=8*i-n-1,c=(1<<s)-1,u=c>>1,l=-7,p=r?i-1:0,f=r?-1:1,d=t[e+p];for(p+=f,o=d&(1<<-l)-1,d>>=-l,l+=s;l>0;o=256*o+t[e+p],p+=f,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=n;l>0;a=256*a+t[e+p],p+=f,l-=8);if(0===o)o=1-u;else{if(o===c)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,n),o-=u}return(d?-1:1)*a*Math.pow(2,o-n)},r.write=function(t,e,r,n,i,o){var a,s,c,u=8*o-i-1,l=(1<<u)-1,p=l>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:o-1,h=n?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-a))<1&&(a--,c*=2),e+=a+p>=1?f/c:f*Math.pow(2,1-p),e*c>=2&&(a++,c/=2),a+p>=l?(s=0,a=l):a+p>=1?(s=(e*c-1)*Math.pow(2,i),a+=p):(s=e*Math.pow(2,p-1)*Math.pow(2,i),a=0));i>=8;t[r+d]=255&s,d+=h,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;t[r+d]=255&a,d+=h,a/=256,u-=8);t[r+d-h]|=128*m}},{}],162:[function(t,e,r){"function"==typeof Object.create?e.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}},{}],163:[function(t,e,r){function n(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function i(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&n(t.slice(0,0))}e.exports=function(t){return null!=t&&(n(t)||i(t)||!!t._isBuffer)}},{}],164:[function(e,r,n){!function(e){function i(t){return a.call(t).replace(/^[^{]*{\s*/,"").replace(/\s*}[^}]*$/,"")}function o(t){return"function"==typeof t&&(/^class(\s|\{\}$)/.test(a.call(t))||/^.*classCallCheck\(/.test(i(t)))}var a=Function.prototype.toString;void 0!==n?(void 0!==r&&r.exports&&(n=r.exports=o),n.isClass=o):"function"==typeof t&&t.amd?t([],function(){return o}):e.isClass=o}(this)},{}],165:[function(t,e,r){"use strict";function n(t){var e=t.slice(2);return e=e[0].toLowerCase()+e.slice(1)}var i=t("core-util-is"),o=t("isstream"),a=t("is-class");Object.keys(i).map(function(t){r[n(t)]=i[t]}),r.stream=o,r.readableStream=o.isReadable,r.writableStream=o.isWritable,r.duplexStream=o.isDuplex,r.class=a,r.finite=function(t){return Number.isFinite(t)},r.NaN=function(t){return Number.isNaN(t)},r.generator=function(t){return t&&"function"==typeof t.next&&"function"==typeof t.throw},r.generatorFunction=function(t){return t&&t.constructor&&"GeneratorFunction"===t.constructor.name},r.asyncFunction=function(t){return t&&t.constructor&&"AsyncFunction"===t.constructor.name},r.promise=function(t){return t&&"function"==typeof t.then};var s=Math.pow(2,31);r.int=function(t){return i.isNumber(t)&&t%1==0},r.int32=function(t){return r.int(t)&&t<s&&t>=-s},r.long=function(t){return r.int(t)&&(t>=s||t<-s)},r.Long=function(t){return r.object(t)&&r.number(t.high)&&r.number(t.low)},r.double=function(t){return i.isNumber(t)&&!isNaN(t)&&t%1!=0},r.date=function(t){return t instanceof Date},r.regExp=function(t){return t instanceof RegExp},r.regexp=r.regExp,r.error=function(t){return t instanceof Error},r.array=function(t){return Array.isArray(t)}},{"core-
|
|
|
|
|
this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new H,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(z||(z=t("string_decoder/").StringDecoder),this.decoder=new z(e.encoding),this.encoding=e.encoding)}function c(e){if(M=M||t("./_stream_duplex"),!(this instanceof c))return new c(e);this._readableState=new s(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),U.call(this)}function u(t,e,r,n,o){var a=t._readableState;if(null===e)a.reading=!1,m(t,a);else{var s;o||(s=p(a,e)),s?t.emit("error",s):a.objectMode||e&&e.length>0?("string"==typeof e||a.objectMode||(0,I.default)(e)===B.prototype||(e=i(e)),n?a.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):l(t,a,e,!0):a.ended?t.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!r?(e=a.decoder.write(e),a.objectMode||0!==e.length?l(t,a,e,!1):y(t,a)):l(t,a,e,!1))):n||(a.reading=!1)}return f(a)}function l(t,e,r,n){e.flowing&&0===e.length&&!e.sync?(t.emit("data",r),t.read(0)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&v(t)),y(t,e)}function p(t,e){var r;return o(e)||"string"==typeof e||void 0===e||t.objectMode||(r=new TypeError("Invalid non-string/buffer chunk")),r}function f(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}function d(t){return t>=V?t=V:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function h(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=d(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function m(t,e){if(!e.ended){if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,v(t)}}function v(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(G("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?L.nextTick(b,t):b(t))}function b(t){G("emit readable"),t.emit("readable"),S(t)}function y(t,e){e.readingMore||(e.readingMore=!0,L.nextTick(g,t,e))}function g(t,e){for(var r=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(G("maybeReadMore read 0"),t.read(0),r!==e.length);)r=e.length;e.readingMore=!1}function _(t){return function(){var e=t._readableState;G("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&R(t,"data")&&(e.flowing=!0,S(t))}}function w(t){G("readable nexttick read 0"),t.read(0)}function x(t,e){e.resumeScheduled||(e.resumeScheduled=!0,L.nextTick(E,t,e))}function E(t,e){e.reading||(G("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),S(t),e.flowing&&!e.reading&&t.read(0)}function S(t){var e=t._readableState;for(G("flow",e.flowing);e.flowing&&null!==t.read(););}function T(t,e){if(0===e.length)return null;var r;return e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):r=k(t,e.buffer,e.decoder),r}function k(t,e,r){var n;return t<e.head.data.length?(n=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):n=t===e.head.data.length?e.shift():r?j(t,e):O(t,e),n}function j(t,e){var r=e.head,n=1,i=r.data;for(t-=i.length;r=r.next;){var o=r.data,a=t>o.length?o.length:t;if(a===o.length?i+=o:i+=o.slice(0,t),0===(t-=a)){a===o.length?(++n,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=o.slice(a));break}++n}return e.length-=n,i}function O(t,e){var r=B.allocUnsafe(t),n=e.head,i=1;for(n.data.copy(r),t-=n.data.length;n=n.next;){var o=n.data,a=t>o.length?o.length:t;if(o.copy(r,r.length-t,0,a),0===(t-=a)){a===o.length?(++i,n.next?e.head=n.next:e.head=e.tail=null):(e
|
|
|
|
|
m.default)(r.XML_ENTITIES):(0,m.default)(r.ENTITIES),i.attribList=[],i.opt.xmlns&&(i.ns=(0,m.default)(G)),i.trackPosition=!1!==i.opt.position,i.trackPosition&&(i.position=i.line=i.column=0),_(i,"onready")}function i(t){for(var e=Math.max(r.MAX_BUFFER_LENGTH,10),n=0,i=0,o=D.length;i<o;i++){var a=t[D[i]].length;if(a>e)switch(D[i]){case"textNode":x(t);break;case"cdata":w(t,"oncdata",t.cdata),t.cdata="";break;case"script":w(t,"onscript",t.script),t.script="";break;default:S(t,"Max buffer length exceeded: "+D[i])}n=Math.max(n,a)}var s=r.MAX_BUFFER_LENGTH-n;t.bufferCheckPosition=s+t.position}function a(t){for(var e=0,r=D.length;e<r;e++)t[D[e]]=""}function c(t){x(t),""!==t.cdata&&(w(t,"oncdata",t.cdata),t.cdata=""),""!==t.script&&(w(t,"onscript",t.script),t.script="")}function l(t,e){return new f(t,e)}function f(t,e){if(!(this instanceof f))return new f(t,e);R.apply(this),this._parser=new n(t,e),this.writable=!0,this.readable=!0;var r=this;this._parser.onend=function(){r.emit("end")},this._parser.onerror=function(t){r.emit("error",t),r._parser.error=null},this._decoder=null,U.forEach(function(t){(0,p.default)(r,"on"+t,{get:function(){return r._parser["on"+t]},set:function(e){if(!e)return r.removeAllListeners(t),r._parser["on"+t]=e,e;r.on(t,e)},enumerable:!0,configurable:!1})})}function h(t){return" "===t||"\n"===t||"\r"===t||"\t"===t}function v(t){return'"'===t||"'"===t}function b(t){return">"===t||h(t)}function y(t,e){return t.test(e)}function g(t,e){return!y(t,e)}function _(t,e,r){t[e]&&t[e](r)}function w(t,e,r){t.textNode&&x(t),_(t,e,r)}function x(t){t.textNode=E(t.opt,t.textNode),t.textNode&&_(t,"ontext",t.textNode),t.textNode=""}function E(t,e){return t.trim&&(e=e.trim()),t.normalize&&(e=e.replace(/\s+/g," ")),e}function S(t,e){return x(t),t.trackPosition&&(e+="\nLine: "+t.line+"\nColumn: "+t.column+"\nChar: "+t.c),e=new Error(e),t.error=e,_(t,"onerror",e),t}function T(t){return t.sawRoot&&!t.closedRoot&&k(t,"Unclosed root tag"),t.state!==V.BEGIN&&t.state!==V.BEGIN_WHITESPACE&&t.state!==V.TEXT&&S(t,"Unexpected end"),x(t),t.c="",t.closed=!0,_(t,"onend"),n.call(t,t.strict,t.opt),t}function k(t,e){if("object"!==(void 0===t?"undefined":(0,u.default)(t))||!(t instanceof n))throw new Error("bad call to strictFail");t.strict&&S(t,e)}function j(t){t.strict||(t.tagName=t.tagName[t.looseCase]());var e=t.tags[t.tags.length-1]||t,r=t.tag={name:t.tagName,attributes:{}};t.opt.xmlns&&(r.ns=e.ns),t.attribList.length=0,w(t,"onopentagstart",r)}function O(t,e){var r=t.indexOf(":"),n=r<0?["",t]:t.split(":"),i=n[0],o=n[1];return e&&"xmlns"===t&&(i="xmlns",o=""),{prefix:i,local:o}}function A(t){if(t.strict||(t.attribName=t.attribName[t.looseCase]()),-1!==t.attribList.indexOf(t.attribName)||t.tag.attributes.hasOwnProperty(t.attribName))return void(t.attribName=t.attribValue="");if(t.opt.xmlns){var e=O(t.attribName,!0),r=e.prefix,n=e.local;if("xmlns"===r)if("xml"===n&&t.attribValue!==q)k(t,"xml: prefix must be bound to "+q+"\nActual: "+t.attribValue);else if("xmlns"===n&&t.attribValue!==X)k(t,"xmlns: prefix must be bound to "+X+"\nActual: "+t.attribValue);else{var i=t.tag,o=t.tags[t.tags.length-1]||t;i.ns===o.ns&&(i.ns=(0,m.default)(o.ns)),i.ns[n]=t.attribValue}t.attribList.push([t.attribName,t.attribValue])}else t.tag.attributes[t.attribName]=t.attribValue,w(t,"onattribute",{name:t.attribName,value:t.attribValue});t.attribName=t.attribValue=""}function N(t,e){if(t.opt.xmlns){var r=t.tag,n=O(t.tagName);r.prefix=n.prefix,r.local=n.local,r.uri=r.ns[n.prefix]||"",r.prefix&&!r.uri&&(k(t,"Unbound namespace prefix: "+(0,s.default)(t.tagName)),r.uri=n.prefix);var i=t.tags[t.tags.length-1]||t;r.ns&&i.ns!==r.ns&&(0,d.default)(r.ns).forEach(function(e){w(t,"onopennamespace",{prefix:e,uri:r.ns[e]})});for(var o=0,a=t.attribList.length;o<a;o++){var c=t.attribList[o],u=c[0],l=c[1],p=O(u,!0),f=p.prefix,h=p.local,m=""===f?"":r.ns[f]||"",v={name:u,value:l,prefix:f,local:h,uri:m};f&&"xmlns"!==f&&!m&&(k(t,"Unbound namespace prefix: "+(0,s.default)(f)),v.uri=f),t.tag.attributes[u]=v,w(t,"onattribute",v)}t.attribList.length=0}t.tag.isSelfClosing=!!e,t.sawRoot=!0,t.t
|
|
|
|
|
;return void 0!==r?r:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function l(t,e){var r=s(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)}function p(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"锟<>":e}function f(t,e){if((t.length-e)%2==0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function d(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function h(t,e){var r=(t.length-e)%3;return 0===r?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function m(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function v(t){return t.toString(this.encoding)}function b(t){return t&&t.length?this.write(t):""}var y=t("safe-buffer").Buffer,g=y.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};r.StringDecoder=o,o.prototype.write=function(t){if(0===t.length)return"";var e,r;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""},o.prototype.end=p,o.prototype.text=l,o.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},{"safe-buffer":193}],201:[function(t,e,r){(function(e,n){function i(t,e){this._id=t,this._clearFn=e}var o=t("process/browser.js").nextTick,a=Function.prototype.apply,s=Array.prototype.slice,c={},u=0;r.setTimeout=function(){return new i(a.call(setTimeout,window,arguments),clearTimeout)},r.setInterval=function(){return new i(a.call(setInterval,window,arguments),clearInterval)},r.clearTimeout=r.clearInterval=function(t){t.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(window,this._id)},r.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},r.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},r._unrefActive=r.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},r.setImmediate="function"==typeof e?e:function(t){var e=u++,n=!(arguments.length<2)&&s.call(arguments,1);return c[e]=!0,o(function(){c[e]&&(n?t.apply(null,n):t.call(null),r.clearImmediate(e))}),e},r.clearImmediate="function"==typeof n?n:function(t){delete c[t]}}).call(this,t("timers").setImmediate,t("timers").clearImmediate)},{"process/browser.js":173,timers:201}],202:[function(t,e,r){var n=t("buffer").Buffer;e.exports=function(t){if(t instanceof Uint8Array){if(0===t.byteOffset&&t.byteLength===t.buffer.byteLength)return t.buffer;if("function"==typeof t.buffer.slice)return t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)}if(n.isBuffer(t)){for(var e=new Uint8Array(t.length),r=t.length,i=0;i<r;i++)e[i]=t[i];return e.buffer}throw new Error("Argument must be a Buffer")}},{buffer:38}],203:[function(t,e,r){"use strict";function n(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.sea
|
|
|
|
|
i.default)(this)},e.prototype.toString=function(t){return this.options.writer.set(t).cdata(this)},e}(r)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],217:[function(t,e,r){"use strict";var n=t("babel-runtime/core-js/object/create"),i=function(t){return t&&t.__esModule?t:{default:t}}(n);(function(){var r,n=function(t,e){function r(){this.constructor=t}for(var n in e)o.call(e,n)&&(t[n]=e[n]);return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t},o={}.hasOwnProperty;r=t("./XMLNode"),e.exports=function(t){function e(t,r){if(e.__super__.constructor.call(this,t),null==r)throw new Error("Missing comment text");this.text=this.stringify.comment(r)}return n(e,t),e.prototype.clone=function(){return(0,i.default)(this)},e.prototype.toString=function(t){return this.options.writer.set(t).comment(this)},e}(r)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],218:[function(t,e,r){"use strict";(function(){var r,n=function(t,e){function r(){this.constructor=t}for(var n in e)i.call(e,n)&&(t[n]=e[n]);return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t},i={}.hasOwnProperty;r=t("./XMLNode"),e.exports=function(t){function e(t,r,n,i,o,a){if(e.__super__.constructor.call(this,t),null==r)throw new Error("Missing DTD element name");if(null==n)throw new Error("Missing DTD attribute name");if(!i)throw new Error("Missing DTD attribute type");if(!o)throw new Error("Missing DTD attribute default");if(0!==o.indexOf("#")&&(o="#"+o),!o.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT");if(a&&!o.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT");this.elementName=this.stringify.eleName(r),this.attributeName=this.stringify.attName(n),this.attributeType=this.stringify.dtdAttType(i),this.defaultValue=this.stringify.dtdAttDefault(a),this.defaultValueType=o}return n(e,t),e.prototype.toString=function(t){return this.options.writer.set(t).dtdAttList(this)},e}(r)}).call(void 0)},{"./XMLNode":227}],219:[function(t,e,r){"use strict";(function(){var r,n=function(t,e){function r(){this.constructor=t}for(var n in e)i.call(e,n)&&(t[n]=e[n]);return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t},i={}.hasOwnProperty;r=t("./XMLNode"),e.exports=function(t){function e(t,r,n){if(e.__super__.constructor.call(this,t),null==r)throw new Error("Missing DTD element name");n||(n="(#PCDATA)"),Array.isArray(n)&&(n="("+n.join(",")+")"),this.name=this.stringify.eleName(r),this.value=this.stringify.dtdElementValue(n)}return n(e,t),e.prototype.toString=function(t){return this.options.writer.set(t).dtdElement(this)},e}(r)}).call(void 0)},{"./XMLNode":227}],220:[function(t,e,r){"use strict";(function(){var r,n,i=function(t,e){function r(){this.constructor=t}for(var n in e)o.call(e,n)&&(t[n]=e[n]);return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t},o={}.hasOwnProperty;n=t("./Utility").isObject,r=t("./XMLNode"),e.exports=function(t){function e(t,r,i,o){if(e.__super__.constructor.call(this,t),null==i)throw new Error("Missing entity name");if(null==o)throw new Error("Missing entity value");if(this.pe=!!r,this.name=this.stringify.eleName(i),n(o)){if(!o.pubID&&!o.sysID)throw new Error("Public and/or system identifiers are required for an external entity");if(o.pubID&&!o.sysID)throw new Error("System identifier is required for a public external entity");if(null!=o.pubID&&(this.pubID=this.stringify.dtdPubID(o.pubID)),null!=o.sysID&&(this.sysID=this.stringify.dtdSysID(o.sysID)),null!=o.nData&&(this.nData=this.stringify.dtdNData(o.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity")}else this.value=this.stringify.dtdEntityValue(o)}return i(e,t),e.prototype.toString=function(t){return this.options.writer.set(t).dtdEntity(this)},e}(r)}).call(void 0)},{"./Utility":214,"./XMLNode":227}],221:[function(t,e,r){"use strict";(function(){var r,n=function(t,e){function r(){this.const
|
|
|
|
|
a=t.children,r=0,i=a.length;r<i;r++)e=a[r],o+=function(){switch(!1){case!(e instanceof c):return this.declaration(e);case!(e instanceof u):return this.docType(e);case!(e instanceof n):return this.comment(e);case!(e instanceof p):return this.processingInstruction(e);default:return this.element(e,0)}}.call(this);return this.pretty&&o.slice(-this.newline.length)===this.newline&&(o=o.slice(0,-this.newline.length)),o},e.prototype.attribute=function(t){return" "+t.name+'="'+t.value+'"'},e.prototype.cdata=function(t,e){return this.space(e)+"<![CDATA["+t.text+"]]>"+this.newline},e.prototype.comment=function(t,e){return this.space(e)+"\x3c!-- "+t.text+" --\x3e"+this.newline},e.prototype.declaration=function(t,e){var r;return r=this.space(e),r+='<?xml version="'+t.version+'"',null!=t.encoding&&(r+=' encoding="'+t.encoding+'"'),null!=t.standalone&&(r+=' standalone="'+t.standalone+'"'),r+=this.spacebeforeslash+"?>",r+=this.newline},e.prototype.docType=function(t,e){var c,u,l,f,d;if(e||(e=0),f=this.space(e),f+="<!DOCTYPE "+t.root().name,t.pubID&&t.sysID?f+=' PUBLIC "'+t.pubID+'" "'+t.sysID+'"':t.sysID&&(f+=' SYSTEM "'+t.sysID+'"'),t.children.length>0){for(f+=" [",f+=this.newline,d=t.children,u=0,l=d.length;u<l;u++)c=d[u],f+=function(){switch(!1){case!(c instanceof i):return this.dtdAttList(c,e+1);case!(c instanceof o):return this.dtdElement(c,e+1);case!(c instanceof a):return this.dtdEntity(c,e+1);case!(c instanceof s):return this.dtdNotation(c,e+1);case!(c instanceof r):return this.cdata(c,e+1);case!(c instanceof n):return this.comment(c,e+1);case!(c instanceof p):return this.processingInstruction(c,e+1);default:throw new Error("Unknown DTD node type: "+c.constructor.name)}}.call(this);f+="]"}return f+=this.spacebeforeslash+">",f+=this.newline},e.prototype.element=function(t,e){var i,o,a,s,c,u,h,m,b,y,g,_,w;e||(e=0),w=!1,this.textispresent?(this.newline="",this.pretty=!1):(this.newline=this.newlinedefault,this.pretty=this.prettydefault),_=this.space(e),m="",m+=_+"<"+t.name,b=t.attributes;for(h in b)v.call(b,h)&&(i=b[h],m+=this.attribute(i));if(0===t.children.length||t.children.every(function(t){return""===t.value}))this.allowEmpty?m+="></"+t.name+">"+this.newline:m+=this.spacebeforeslash+"/>"+this.newline;else if(this.pretty&&1===t.children.length&&null!=t.children[0].value)m+=">",m+=t.children[0].value,m+="</"+t.name+">"+this.newline;else{if(this.dontprettytextnodes)for(y=t.children,a=0,c=y.length;a<c;a++)if(o=y[a],null!=o.value){this.textispresent++,w=!0;break}for(this.textispresent&&(this.newline="",this.pretty=!1,_=this.space(e)),m+=">"+this.newline,g=t.children,s=0,u=g.length;s<u;s++)o=g[s],m+=function(){switch(!1){case!(o instanceof r):return this.cdata(o,e+1);case!(o instanceof n):return this.comment(o,e+1);case!(o instanceof l):return this.element(o,e+1);case!(o instanceof f):return this.raw(o,e+1);case!(o instanceof d):return this.text(o,e+1);case!(o instanceof p):return this.processingInstruction(o,e+1);default:throw new Error("Unknown XML node type: "+o.constructor.name)}}.call(this);w&&this.textispresent--,this.textispresent||(this.newline=this.newlinedefault,this.pretty=this.prettydefault),m+=_+"</"+t.name+">"+this.newline}return m},e.prototype.processingInstruction=function(t,e){var r;return r=this.space(e)+"<?"+t.target,t.value&&(r+=" "+t.value),r+=this.spacebeforeslash+"?>"+this.newline},e.prototype.raw=function(t,e){return this.space(e)+t.value+this.newline},e.prototype.text=function(t,e){return this.space(e)+t.value+this.newline},e.prototype.dtdAttList=function(t,e){var r;return r=this.space(e)+"<!ATTLIST "+t.elementName+" "+t.attributeName+" "+t.attributeType,"#DEFAULT"!==t.defaultValueType&&(r+=" "+t.defaultValueType),t.defaultValue&&(r+=' "'+t.defaultValue+'"'),r+=this.spacebeforeslash+">"+this.newline},e.prototype.dtdElement=function(t,e){return this.space(e)+"<!ELEMENT "+t.name+" "+t.value+this.spacebeforeslash+">"+this.newline},e.prototype.dtdEntity=function(t,e){var r;return r=this.space(e)+"<!ENTITY",t.pe&&(r+=" %"),r+=" "+t.name,t.value?r+=' "'+t.value+'"':(t.pubID&&t.sysID?r+=' PUBLIC "'+t.pubID+'" "'+t.
|
|
|
|
|
"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smzip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.wadl+xml":["wadl"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":
|