diff --git a/dist/cos-js-sdk-v5.js b/dist/cos-js-sdk-v5.js index 7519f92..0874016 100644 --- a/dist/cos-js-sdk-v5.js +++ b/dist/cos-js-sdk-v5.js @@ -17039,8 +17039,8 @@ function submitRequest(params, callback) { var auth = util.getAuth({ method: opt.method, pathname: object || '/', - SecretId: params.SecretId || this.SecretId, - SecretKey: params.SecretKey || this.SecretKey, + SecretId: params.SecretId || this.options.SecretId, + SecretKey: params.SecretKey || this.options.SecretKey, }); getAuthorizationCallback(auth); } diff --git a/dist/cos-js-sdk-v5.min.js b/dist/cos-js-sdk-v5.min.js index 7b184d8..d0bcbaa 100644 --- a/dist/cos-js-sdk-v5.min.js +++ b/dist/cos-js-sdk-v5.min.js @@ -5,7 +5,7 @@ * @license MIT */ var $=n(73),Q=n(74),J=n(44);e.Buffer=o,e.SlowBuffer=y,e.INSPECT_MAX_BYTES=50,o.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=r(),o.poolSize=8192,o._augment=function(t){return t.__proto__=o.prototype,t},o.from=function(t,e,n){return a(null,t,e,n)},o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0})),o.alloc=function(t,e,n){return u(null,t,e,n)},o.allocUnsafe=function(t){return c(null,t)},o.allocUnsafeSlow=function(t){return c(null,t)},o.isBuffer=function(t){return!(null==t||!t._isBuffer)},o.compare=function(t,e){if(!o.isBuffer(t)||!o.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,i=0,a=Math.min(n,r);i0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),""},o.prototype.compare=function(t,e,n,r,i){if(!o.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,r>>>=0,i>>>=0,this===t)return 0;for(var a=i-r,s=n-e,u=Math.min(a,s),c=this.slice(r,i),l=t.slice(e,n),f=0;fi)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return _(this,t,e,n);case"utf8":case"utf-8":return x(this,t,e,n);case"ascii":return T(this,t,e,n);case"latin1":case"binary":return E(this,t,e,n);case"base64":return A(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).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 n=this.length;t=~~t,e=void 0===e?n:~~e,t<0?(t+=n)<0&&(t=0):t>n&&(t=n),e<0?(e+=n)<0&&(e=0):e>n&&(e=n),e0&&(i*=256);)r+=this[t+--e]*i;return r},o.prototype.readUInt8=function(t,e){return e||D(t,1,this.length),this[t]},o.prototype.readUInt16LE=function(t,e){return e||D(t,2,this.length),this[t]|this[t+1]<<8},o.prototype.readUInt16BE=function(t,e){return e||D(t,2,this.length),this[t]<<8|this[t+1]},o.prototype.readUInt32LE=function(t,e){return e||D(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||D(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},o.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||D(t,e,this.length);for(var r=this[t],i=1,o=0;++o=i&&(r-=Math.pow(2,8*e)),r},o.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||D(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},o.prototype.readInt8=function(t,e){return e||D(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},o.prototype.readInt16LE=function(t,e){e||D(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt16BE=function(t,e){e||D(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt32LE=function(t,e){return e||D(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||D(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||D(t,4,this.length),Q.read(this,t,!0,23,4)},o.prototype.readFloatBE=function(t,e){return e||D(t,4,this.length),Q.read(this,t,!1,23,4)},o.prototype.readDoubleLE=function(t,e){return e||D(t,8,this.length),Q.read(this,t,!0,52,8)},o.prototype.readDoubleBE=function(t,e){return e||D(t,8,this.length),Q.read(this,t,!1,52,8)},o.prototype.writeUIntLE=function(t,e,n,r){if(t=+t,e|=0,n|=0,!r){L(this,t,e,n,Math.pow(2,8*n)-1,0)}var i=1,o=0;for(this[e]=255&t;++o=0&&(o*=256);)this[e+i]=t/o&255;return e+n},o.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||L(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,n){return t=+t,e|=0,n||L(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):B(this,t,e,!0),e+2},o.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):B(this,t,e,!1),e+2},o.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):N(this,t,e,!0),e+4},o.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):N(this,t,e,!1),e+4},o.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);L(this,t,e,n,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o>0)-s&255;return e+n},o.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);L(this,t,e,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},o.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,1,127,-128),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},o.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):B(this,t,e,!0),e+2},o.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):B(this,t,e,!1),e+2},o.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):N(this,t,e,!0),e+4},o.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||L(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):N(this,t,e,!1),e+4},o.prototype.writeFloatLE=function(t,e,n){return U(this,t,e,!0,n)},o.prototype.writeFloatBE=function(t,e,n){return U(this,t,e,!1,n)},o.prototype.writeDoubleLE=function(t,e,n){return F(this,t,e,!0,n)},o.prototype.writeDoubleBE=function(t,e,n){return F(this,t,e,!1,n)},o.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e=0;--i)t[i+e]=this[i+n];else if(a<1e3||!o.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,t||(t=0);var a;if("number"==typeof t)for(a=e;a1)for(var n=1;n-1||"deleteMultipleObject"===t||"multipartList"===t?n&&r:!(t.indexOf("Object")>-1||t.indexOf("multipart")>-1||"sliceUploadFile"===t||"abortUploadTask"===t)||n&&r&&i},E=function(t,e){var n={gz:"cn-south",tj:"cn-north",sh:"cn-east",cd:"cn-southwest"};return function(r,i){if(i=i||function(){},"getService"!==t&&"abortUploadTask"!==t){if(!T(t,r))return void i({error:"lack of required params"});if(r.Key&&0===r.Key.indexOf("/"))return void i({error:'params Key can not start width "/"'});if(r.Region&&n[r.Region])return void i({error:"Region error, it should be "+n[r.Region]});var o,a=r.Bucket;if(a&&a.indexOf("-")>-1){var s=a.split("-");o=s[1],a=s[0],r.AppId=o,r.Bucket=a}}var u=e.call(this,r,i);if("getAuth"===t)return u}},A=File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice,C={fileSlice:A,apiWrapper:E,getAuth:y,xml2json:g,json2xml:v,md5:l,clearKey:m,getFileMd5:w,binaryBase64:_,extend:o,isArray:a,each:s,map:u,filter:c,clone:i,uuid:x,isBrowser:!!r.window};t.exports=C}).call(e,n(7).Buffer,n(3))},function(t,e){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(t){return"function"==typeof t}function i(t){return"number"==typeof t}function o(t){return"object"==typeof t&&null!==t}function a(t){return void 0===t}t.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(t){if(!i(t)||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},n.prototype.emit=function(t){var e,n,i,s,u,c;if(this._events||(this._events={}),"error"===t&&(!this._events.error||o(this._events.error)&&!this._events.error.length)){if((e=arguments[1])instanceof Error)throw e;var l=new Error('Uncaught, unspecified "error" event. ('+e+")");throw l.context=e,l}if(n=this._events[t],a(n))return!1;if(r(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),n.apply(this,s)}else if(o(n))for(s=Array.prototype.slice.call(arguments,1),c=n.slice(),i=c.length,u=0;u0&&this._events[t].length>i&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),"function"==typeof console.trace&&console.trace()),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(t,e){function n(){this.removeListener(t,n),i||(i=!0,e.apply(this,arguments))}if(!r(e))throw TypeError("listener must be a function");var i=!1;return n.listener=e,this.on(t,n),this},n.prototype.removeListener=function(t,e){var n,i,a,s;if(!r(e))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(n=this._events[t],a=n.length,i=-1,n===e||r(n.listener)&&n.listener===e)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,e);else if(o(n)){for(s=a;s-- >0;)if(n[s]===e||n[s].listener&&n[s].listener===e){i=s;break}if(i<0)return this;1===n.length?(n.length=0,delete this._events[t]):n.splice(i,1),this._events.removeListener&&this.emit("removeListener",t,e)}return this},n.prototype.removeAllListeners=function(t){var e,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(e in this._events)"removeListener"!==e&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[t],r(n))this.removeListener(t,n);else if(n)for(;n.length;)this.removeListener(t,n[n.length-1]);return delete this._events[t],this},n.prototype.listeners=function(t){return this._events&&this._events[t]?r(this._events[t])?[this._events[t]]:this._events[t].slice():[]},n.prototype.listenerCount=function(t){if(this._events){var e=this._events[t];if(r(e))return 1;if(e)return e.length}return 0},n.listenerCount=function(t,e){return t.listenerCount(e)}},function(t,e,n){"use strict";(function(e){function n(t,n,r,i){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick(function(){t.call(null,n)});case 3:return e.nextTick(function(){t.call(null,n,r)});case 4:return e.nextTick(function(){t.call(null,n,r,i)});default:for(o=new Array(s-1),a=0;a=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},n(82),e.setImmediate=setImmediate,e.clearImmediate=clearImmediate},function(t,e,n){function r(t){if(!o(t))return!1;var e=i(t);return e==s||e==u||e==a||e==c}var i=n(12),o=n(1),a="[object AsyncFunction]",s="[object Function]",u="[object GeneratorFunction]",c="[object Proxy]";t.exports=r},function(t,e,n){var r=n(4),i=r.Symbol;t.exports=i},function(t,e){function n(t,e){return t===e||t!==t&&e!==e}t.exports=n},function(t,e,n){function r(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e-1?r:k;l.WritableState=c;var j=n(11);j.inherits=n(8);var O={deprecate:n(83)},P=n(46),D=n(29).Buffer,L=i.Uint8Array||function(){},B=n(47);j.inherits(l,P),c.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(c.prototype,"buffer",{get:O.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}();var N;"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(N=Function.prototype[Symbol.hasInstance],Object.defineProperty(l,Symbol.hasInstance,{value:function(t){return!!N.call(this,t)||t&&t._writableState instanceof c}})):N=function(t){return t instanceof this},l.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},l.prototype.write=function(t,e,n){var r=this._writableState,i=!1,o=s(t)&&!r.objectMode;return o&&!D.isBuffer(t)&&(t=a(t)),"function"==typeof e&&(n=e,e=null),o?e="buffer":e||(e=r.defaultEncoding),"function"!=typeof n&&(n=u),r.ended?f(this,n):(o||p(this,r,t,n))&&(r.pendingcb++,i=d(this,r,o,t,e,n)),i},l.prototype.cork=function(){this._writableState.corked++},l.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.bufferedRequest||_(this,t))},l.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},l.prototype._write=function(t,e,n){n(new Error("_write() is not implemented"))},l.prototype._writev=null,l.prototype.end=function(t,e,n){var r=this._writableState;"function"==typeof t?(n=t,t=null,e=null):"function"==typeof e&&(n=e,e=null),null!==t&&void 0!==t&&this.write(t,e),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||C(this,r,n)},Object.defineProperty(l.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),l.prototype.destroy=B.destroy,l.prototype._undestroy=B.undestroy,l.prototype._destroy=function(t,e){this.end(),e(t)}}).call(e,n(9),n(19).setImmediate,n(3))},function(t,e,n){function r(t){if(t&&!u(t))throw new Error("Unknown encoding: "+t)}function i(t){return t.toString(this.encoding)}function o(t){this.charReceived=t.length%2,this.charLength=this.charReceived?2:0}function a(t){this.charReceived=t.length%3,this.charLength=this.charReceived?3:0}var s=n(7).Buffer,u=s.isEncoding||function(t){switch(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}},c=e.StringDecoder=function(t){switch(this.encoding=(t||"utf8").toLowerCase().replace(/[-_]/,""),r(t),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=o;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=a;break;default:return void(this.write=i)}this.charBuffer=new s(6),this.charReceived=0,this.charLength=0};c.prototype.write=function(t){for(var e="";this.charLength;){var n=t.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:t.length;if(t.copy(this.charBuffer,this.charReceived,0,n),this.charReceived+=n,this.charReceived=55296&&r<=56319)){if(this.charReceived=this.charLength=0,0===t.length)return e;break}this.charLength+=this.surrogateSize,e=""}this.detectIncompleteChar(t);var i=t.length;this.charLength&&(t.copy(this.charBuffer,0,t.length-this.charReceived,i),i-=this.charReceived),e+=t.toString(this.encoding,0,i);var i=e.length-1,r=e.charCodeAt(i);if(r>=55296&&r<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),t.copy(this.charBuffer,0,0,o),e.substring(0,i)}return e},c.prototype.detectIncompleteChar=function(t){for(var e=t.length>=3?3:t.length;e>0;e--){var n=t[t.length-e];if(1==e&&n>>5==6){this.charLength=2;break}if(e<=2&&n>>4==14){this.charLength=3;break}if(e<=3&&n>>3==30){this.charLength=4;break}}this.charReceived=e},c.prototype.end=function(t){var e="";if(t&&t.length&&(e=this.write(t)),this.charReceived){var n=this.charReceived,r=this.charBuffer,i=this.encoding;e+=r.slice(0,n).toString(i)}return e}},function(t,e){function n(t){return t}t.exports=n},function(t,e){function n(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=r}var r=9007199254740991;t.exports=n},function(t,e){function n(t,e){return!!(e=null==e?r:e)&&("number"==typeof t||i.test(t))&&t>-1&&t%1==0&&t0?("string"==typeof e||a.objectMode||Object.getPrototypeOf(e)===N.prototype||(e=i(e)),r?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&&!n?(e=a.decoder.write(e),a.objectMode||0!==e.length?l(t,a,e,!1):m(t,a)):l(t,a,e,!1))):r||(a.reading=!1)}return p(a)}function l(t,e,n,r){e.flowing&&0===e.length&&!e.sync?(t.emit("data",n),t.read(0)):(e.length+=e.objectMode?1:n.length,r?e.buffer.unshift(n):e.buffer.push(n),e.needReadable&&g(t)),m(t,e)}function f(t,e){var n;return o(e)||"string"==typeof e||void 0===e||t.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}function p(t){return!t.ended&&(t.needReadable||t.length=W?t=W:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function d(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=h(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function y(t,e){if(!e.ended){if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,g(t)}}function g(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(z("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?O(v,t):v(t))}function v(t){z("emit readable"),t.emit("readable"),E(t)}function m(t,e){e.readingMore||(e.readingMore=!0,O(b,t,e))}function b(t,e){for(var n=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):n=C(t,e.buffer,e.decoder),n}function C(t,e,n){var r;return to.length?o.length:t;if(a===o.length?i+=o:i+=o.slice(0,t),0===(t-=a)){a===o.length?(++r,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=o.slice(a));break}++r}return e.length-=r,i}function k(t,e){var n=N.allocUnsafe(t),r=e.head,i=1;for(r.data.copy(n),t-=r.data.length;r=r.next;){var o=r.data,a=t>o.length?o.length:t;if(o.copy(n,n.length-t,0,a),0===(t-=a)){a===o.length?(++i,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=o.slice(a));break}++i}return e.length-=i,n}function I(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,O(R,e,t))}function R(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function j(t,e){for(var n=0,r=t.length;n=e.highWaterMark||e.ended))return z("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?I(this):g(this),null;if(0===(t=d(t,e))&&e.ended)return 0===e.length&&I(this),null;var r=e.needReadable;z("need readable",r),(0===e.length||e.length-t0?A(t,e):null,null===i?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&I(this)),null!==i&&this.emit("data",i),i},u.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},u.prototype.pipe=function(t,e){function n(t,e){z("onunpipe"),t===p&&e&&!1===e.hasUnpiped&&(e.hasUnpiped=!0,o())}function i(){z("onend"),t.end()}function o(){z("cleanup"),t.removeListener("close",c),t.removeListener("finish",l),t.removeListener("drain",g),t.removeListener("error",u),t.removeListener("unpipe",n),p.removeListener("end",i),p.removeListener("end",f),p.removeListener("data",s),v=!0,!h.awaitDrain||t._writableState&&!t._writableState.needDrain||g()}function s(e){z("ondata"),m=!1,!1!==t.write(e)||m||((1===h.pipesCount&&h.pipes===t||h.pipesCount>1&&-1!==j(h.pipes,t))&&!v&&(z("false write response, pause",p._readableState.awaitDrain),p._readableState.awaitDrain++,m=!0),p.pause())}function u(e){z("onerror",e),f(),t.removeListener("error",u),0===L(t,"error")&&t.emit("error",e)}function c(){t.removeListener("finish",l),f()}function l(){z("onfinish"),t.removeListener("close",c),f()}function f(){z("unpipe"),p.unpipe(t)}var p=this,h=this._readableState;switch(h.pipesCount){case 0:h.pipes=t;break;case 1:h.pipes=[h.pipes,t];break;default:h.pipes.push(t)}h.pipesCount+=1,z("pipe count=%d opts=%j",h.pipesCount,e);var d=(!e||!1!==e.end)&&t!==r.stdout&&t!==r.stderr,y=d?i:f;h.endEmitted?O(y):p.once("end",y),t.on("unpipe",n);var g=w(p);t.on("drain",g);var v=!1,m=!1;return p.on("data",s),a(t,"error",u),t.once("close",c),t.once("finish",l),t.emit("pipe",p),h.flowing||(z("pipe resume"),p.resume()),t},u.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n),this);if(!t){var r=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o",y&&(g+=h);else if(y&&1===this.children.length&&null!=this.children[0].value)g+=">",g+=this.children[0].value,g+="",g+=h;else{for(g+=">",y&&(g+=h),x=this.children,u=0,f=x.length;u",y&&(g+=h)}return g},n.prototype.att=function(t,e){return this.attribute(t,e)},n.prototype.ins=function(t,e){return this.instruction(t,e)},n.prototype.a=function(t,e){return this.attribute(t,e)},n.prototype.i=function(t,e){return this.instruction(t,e)},n}(r)}).call(this)},function(t,e,n){function r(t){var e=this.__data__=new i(t);this.size=e.size}var i=n(23),o=n(139),a=n(140),s=n(141),u=n(142),c=n(143);r.prototype.clear=o,r.prototype.delete=a,r.prototype.get=s,r.prototype.has=u,r.prototype.set=c,t.exports=r},function(t,e,n){function r(t,e,n,a,s){return t===e||(null==t||null==e||!o(t)&&!o(e)?t!==t&&e!==e:i(t,e,n,a,r,s))}var i=n(156),o=n(15);t.exports=r},function(t,e,n){function r(t,e,n,r,c,l){var f=n&s,p=t.length,h=e.length;if(p!=h&&!(f&&h>p))return!1;var d=l.get(t);if(d&&l.get(e))return d==e;var y=-1,g=!0,v=n&u?new i:void 0;for(l.set(t,e),l.set(e,t);++y",o&&(a+=r),a},e}(e)}).call(this)},function(t,e,n){(function(){var e,r,i=function(t,e){function n(){this.constructor=t}for(var r in e)o.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},o={}.hasOwnProperty;r=n(0),e=n(10),t.exports=function(t){function e(t,n){if(e.__super__.constructor.call(this,t),null==n)throw new Error("Missing comment text");this.text=this.stringify.comment(n)}return i(e,t),e.prototype.clone=function(){return r(e.prototype,this)},e.prototype.toString=function(t,e){var n,r,i,o,a,s,u,c,l;return o=(null!=t?t.pretty:void 0)||!1,n=null!=(s=null!=t?t.indent:void 0)?s:" ",i=null!=(u=null!=t?t.offset:void 0)?u:0,r=null!=(c=null!=t?t.newline:void 0)?c:"\n",e||(e=0),l=new Array(e+i+1).join(n),a="",o&&(a+=l),a+="\x3c!-- "+this.text+" --\x3e",o&&(a+=r),a},e}(e)}).call(this)},function(t,e,n){(function(){var e,r,i,o,a,s,u,c;n(0),c=n(1),e=n(68),r=n(69),i=n(189),a=n(190),o=n(191),s=n(192),u=n(67),t.exports=function(){function t(t,e,n){var r,i;this.documentObject=t,this.stringify=this.documentObject.stringify,this.children=[],c(e)&&(r=e,e=r.pubID,n=r.sysID),null==n&&(i=[e,n],n=i[0],e=i[1]),null!=e&&(this.pubID=this.stringify.dtdPubID(e)),null!=n&&(this.sysID=this.stringify.dtdSysID(n))}return t.prototype.element=function(t,e){var n;return n=new o(this,t,e),this.children.push(n),this},t.prototype.attList=function(t,e,n,r,o){var a;return a=new i(this,t,e,n,r,o),this.children.push(a),this},t.prototype.entity=function(t,e){var n;return n=new a(this,!1,t,e),this.children.push(n),this},t.prototype.pEntity=function(t,e){var n;return n=new a(this,!0,t,e),this.children.push(n),this},t.prototype.notation=function(t,e){var n;return n=new s(this,t,e),this.children.push(n),this},t.prototype.cdata=function(t){var n;return n=new e(this,t),this.children.push(n),this},t.prototype.comment=function(t){var e;return e=new r(this,t),this.children.push(e),this},t.prototype.instruction=function(t,e){var n;return n=new u(this,t,e),this.children.push(n),this},t.prototype.root=function(){return this.documentObject.root()},t.prototype.document=function(){return this.documentObject},t.prototype.toString=function(t,e){var n,r,i,o,a,s,u,c,l,f,p,h,d;if(u=(null!=t?t.pretty:void 0)||!1,i=null!=(l=null!=t?t.indent:void 0)?l:" ",s=null!=(f=null!=t?t.offset:void 0)?f:0,a=null!=(p=null!=t?t.newline:void 0)?p:"\n",e||(e=0),d=new Array(e+s+1).join(i),c="",u&&(c+=d),c+="0){for(c+=" [",u&&(c+=a),h=this.children,r=0,o=h.length;r0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===t[e-2]?2:"="===t[e-1]?1:0}function i(t){return 3*t.length/4-r(t)}function o(t){var e,n,i,o,a,s=t.length;o=r(t),a=new f(3*s/4-o),n=o>0?s-4:s;var u=0;for(e=0;e>16&255,a[u++]=i>>8&255,a[u++]=255&i;return 2===o?(i=l[t.charCodeAt(e)]<<2|l[t.charCodeAt(e+1)]>>4,a[u++]=255&i):1===o&&(i=l[t.charCodeAt(e)]<<10|l[t.charCodeAt(e+1)]<<4|l[t.charCodeAt(e+2)]>>2,a[u++]=i>>8&255,a[u++]=255&i),a}function a(t){return c[t>>18&63]+c[t>>12&63]+c[t>>6&63]+c[63&t]}function s(t,e,n){for(var r,i=[],o=e;ou?u:a+16383));return 1===r?(e=t[n-1],i+=c[e>>2],i+=c[e<<4&63],i+="=="):2===r&&(e=(t[n-2]<<8)+t[n-1],i+=c[e>>10],i+=c[e>>4&63],i+=c[e<<2&63],i+="="),o.push(i),o.join("")}e.byteLength=i,e.toByteArray=o,e.fromByteArray=u;for(var c=[],l=[],f="undefined"!=typeof Uint8Array?Uint8Array:Array,p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h=0,d=p.length;h>1,l=-7,f=n?i-1:0,p=n?-1:1,h=t[e+f];for(f+=p,o=h&(1<<-l)-1,h>>=-l,l+=s;l>0;o=256*o+t[e+f],f+=p,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=256*a+t[e+f],f+=p,l-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),o-=c}return(h?-1:1)*a*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var a,s,u,c=8*o-i-1,l=(1<>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,d=r?1:-1,y=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*(u=Math.pow(2,-a))<1&&(a--,u*=2),e+=a+f>=1?p/u:p*Math.pow(2,1-f),e*u>=2&&(a++,u/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(e*u-1)*Math.pow(2,i),a+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;t[n+h]=255&s,h+=d,s/=256,i-=8);for(a=a<0;t[n+h]=255&a,h+=d,a/=256,c-=8);t[n+h-d]|=128*y}},function(t,e){var n=function(t){function e(t,e){return t<>>32-e}function n(t,e){var n,r,i,o,a;return i=2147483648&t,o=2147483648&e,n=1073741824&t,r=1073741824&e,a=(1073741823&t)+(1073741823&e),n&r?2147483648^a^i^o:n|r?1073741824&a?3221225472^a^i^o:1073741824^a^i^o:a^i^o}function r(t,e,n){return t&e|~t&n}function i(t,e,n){return t&n|e&~n}function o(t,e,n){return t^e^n}function a(t,e,n){return e^(t|~n)}function s(t,i,o,a,s,u,c){return t=n(t,n(n(r(i,o,a),s),c)),n(e(t,u),i)}function u(t,r,o,a,s,u,c){return t=n(t,n(n(i(r,o,a),s),c)),n(e(t,u),r)}function c(t,r,i,a,s,u,c){return t=n(t,n(n(o(r,i,a),s),c)),n(e(t,u),r)}function l(t,r,i,o,s,u,c){return t=n(t,n(n(a(r,i,o),s),c)),n(e(t,u),r)}function f(t){var e,n,r="",i="";for(n=0;n<=3;n++)e=t>>>8*n&255,i="0"+e.toString(16),r+=i.substr(i.length-2,2);return r}var p,h,d,y,g,v,m,b,w,_=Array();for(t=function(t){t=t.replace(/\r\n/g,"\n");for(var e="",n=0;n127&&r<2048?(e+=String.fromCharCode(r>>6|192),e+=String.fromCharCode(63&r|128)):(e+=String.fromCharCode(r>>12|224),e+=String.fromCharCode(r>>6&63|128),e+=String.fromCharCode(63&r|128))}return e}(t),_=function(t){for(var e,n=t.length,r=n+8,i=(r-r%64)/64,o=16*(i+1),a=Array(o-1),s=0,u=0;u>>29,a}(t),v=1732584193,m=4023233417,b=2562383102,w=271733878,p=0;p<_.length;p+=16)h=v,d=m,y=b,g=w,v=s(v,m,b,w,_[p+0],7,3614090360),w=s(w,v,m,b,_[p+1],12,3905402710),b=s(b,w,v,m,_[p+2],17,606105819),m=s(m,b,w,v,_[p+3],22,3250441966),v=s(v,m,b,w,_[p+4],7,4118548399),w=s(w,v,m,b,_[p+5],12,1200080426),b=s(b,w,v,m,_[p+6],17,2821735955),m=s(m,b,w,v,_[p+7],22,4249261313),v=s(v,m,b,w,_[p+8],7,1770035416),w=s(w,v,m,b,_[p+9],12,2336552879),b=s(b,w,v,m,_[p+10],17,4294925233),m=s(m,b,w,v,_[p+11],22,2304563134),v=s(v,m,b,w,_[p+12],7,1804603682),w=s(w,v,m,b,_[p+13],12,4254626195),b=s(b,w,v,m,_[p+14],17,2792965006),m=s(m,b,w,v,_[p+15],22,1236535329),v=u(v,m,b,w,_[p+1],5,4129170786),w=u(w,v,m,b,_[p+6],9,3225465664),b=u(b,w,v,m,_[p+11],14,643717713),m=u(m,b,w,v,_[p+0],20,3921069994),v=u(v,m,b,w,_[p+5],5,3593408605),w=u(w,v,m,b,_[p+10],9,38016083),b=u(b,w,v,m,_[p+15],14,3634488961),m=u(m,b,w,v,_[p+4],20,3889429448),v=u(v,m,b,w,_[p+9],5,568446438),w=u(w,v,m,b,_[p+14],9,3275163606),b=u(b,w,v,m,_[p+3],14,4107603335),m=u(m,b,w,v,_[p+8],20,1163531501),v=u(v,m,b,w,_[p+13],5,2850285829),w=u(w,v,m,b,_[p+2],9,4243563512),b=u(b,w,v,m,_[p+7],14,1735328473),m=u(m,b,w,v,_[p+12],20,2368359562),v=c(v,m,b,w,_[p+5],4,4294588738),w=c(w,v,m,b,_[p+8],11,2272392833),b=c(b,w,v,m,_[p+11],16,1839030562),m=c(m,b,w,v,_[p+14],23,4259657740),v=c(v,m,b,w,_[p+1],4,2763975236),w=c(w,v,m,b,_[p+4],11,1272893353),b=c(b,w,v,m,_[p+7],16,4139469664),m=c(m,b,w,v,_[p+10],23,3200236656),v=c(v,m,b,w,_[p+13],4,681279174),w=c(w,v,m,b,_[p+0],11,3936430074),b=c(b,w,v,m,_[p+3],16,3572445317),m=c(m,b,w,v,_[p+6],23,76029189),v=c(v,m,b,w,_[p+9],4,3654602809),w=c(w,v,m,b,_[p+12],11,3873151461),b=c(b,w,v,m,_[p+15],16,530742520),m=c(m,b,w,v,_[p+2],23,3299628645),v=l(v,m,b,w,_[p+0],6,4096336452),w=l(w,v,m,b,_[p+7],10,1126891415),b=l(b,w,v,m,_[p+14],15,2878612391),m=l(m,b,w,v,_[p+5],21,4237533241),v=l(v,m,b,w,_[p+12],6,1700485571),w=l(w,v,m,b,_[p+3],10,2399980690),b=l(b,w,v,m,_[p+10],15,4293915773),m=l(m,b,w,v,_[p+1],21,2240044497),v=l(v,m,b,w,_[p+8],6,1873313359),w=l(w,v,m,b,_[p+15],10,4264355552),b=l(b,w,v,m,_[p+6],15,2734768916),m=l(m,b,w,v,_[p+13],21,1309151649),v=l(v,m,b,w,_[p+4],6,4149444226),w=l(w,v,m,b,_[p+11],10,3174756917),b=l(b,w,v,m,_[p+2],15,718787259),m=l(m,b,w,v,_[p+9],21,3951481745),v=n(v,h),m=n(m,d),b=n(b,y),w=n(w,g);return(f(v)+f(m)+f(b)+f(w)).toLowerCase()};t.exports=n},function(t,e,n){var r=r||function(t,e){var n={},r=n.lib={},i=function(){},o=r.Base={extend:function(t){i.prototype=this;var e=new i;return t&&e.mixIn(t),e.hasOwnProperty("init")||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},a=r.WordArray=o.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=void 0!=e?e:4*t.length},toString:function(t){return(t||u).stringify(this)},concat:function(t){var e=this.words,n=t.words,r=this.sigBytes;if(t=t.sigBytes,this.clamp(),r%4)for(var i=0;i>>2]|=(n[i>>>2]>>>24-i%4*8&255)<<24-(r+i)%4*8;else if(65535>>2]=n[i>>>2];else e.push.apply(e,n);return this.sigBytes+=t,this},clamp:function(){var e=this.words,n=this.sigBytes;e[n>>>2]&=4294967295<<32-n%4*8,e.length=t.ceil(n/4)},clone:function(){var t=o.clone.call(this);return t.words=this.words.slice(0),t},random:function(e){for(var n=[],r=0;r>>2]>>>24-r%4*8&255;n.push((i>>>4).toString(16)),n.push((15&i).toString(16))}return n.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r>>3]|=parseInt(t.substr(r,2),16)<<24-r%8*4;return new a.init(n,e/2)}},c=s.Latin1={stringify:function(t){var e=t.words;t=t.sigBytes;for(var n=[],r=0;r>>2]>>>24-r%4*8&255));return n.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r>>2]|=(255&t.charCodeAt(r))<<24-r%4*8;return new a.init(n,e)}},l=s.Utf8={stringify:function(t){try{return decodeURIComponent(escape(c.stringify(t)))}catch(t){throw Error("Malformed UTF-8 data")}},parse:function(t){return c.parse(unescape(encodeURIComponent(t)))}},f=r.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=l.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var n=this._data,r=n.words,i=n.sigBytes,o=this.blockSize,s=i/(4*o),s=e?t.ceil(s):t.max((0|s)-this._minBufferSize,0);if(e=s*o,i=t.min(4*e,i),e){for(var u=0;uc;c++){if(16>c)o[c]=0|t[e+c];else{var l=o[c-3]^o[c-8]^o[c-14]^o[c-16];o[c]=l<<1|l>>>31}l=(r<<5|r>>>27)+u+o[c],l=20>c?l+(1518500249+(i&a|~i&s)):40>c?l+(1859775393+(i^a^s)):60>c?l+((i&a|i&s|a&s)-1894007588):l+((i^a^s)-899497514),u=s,s=a,a=i<<30|i>>>2,i=r,r=l}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+a|0,n[3]=n[3]+s|0,n[4]=n[4]+u|0},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;return e[r>>>5]|=128<<24-r%32,e[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),e[15+(r+64>>>9<<4)]=n,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=i.clone.call(this);return t._hash=this._hash.clone(),t}});t.SHA1=i._createHelper(e),t.HmacSHA1=i._createHmacHelper(e)}(),function(){var t=r,e=t.enc.Utf8;t.algo.HMAC=t.lib.Base.extend({init:function(t,n){t=this._hasher=new t.init,"string"==typeof n&&(n=e.parse(n));var r=t.blockSize,i=4*r;n.sigBytes>i&&(n=t.finalize(n)),n.clamp();for(var o=this._oKey=n.clone(),a=this._iKey=n.clone(),s=o.words,u=a.words,c=0;c>>2]>>>24-o%4*8&255,s=e[o+1>>>2]>>>24-(o+1)%4*8&255,u=e[o+2>>>2]>>>24-(o+2)%4*8&255,c=a<<16|s<<8|u,l=0;l<4&&o+.75*l>>6*(3-l)&63));var f=r.charAt(64);if(f)for(;i.length%4;)i.push(f);return i.join("")},parse:function(t){var e=t.length,r=this._map,i=r.charAt(64);if(i){var o=t.indexOf(i);-1!=o&&(e=o)}for(var a=[],s=0,u=0;u>>6-u%4*2;a[s>>>2]|=(c|l)<<24-s%4*8,s++}return n.create(a,s)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),t.exports=r},function(t,e,n){(function(){"use strict";var t,r,i,o,a,s,u,c,l,f,p,h=function(t,e){function n(){this.constructor=t}for(var r in e)d.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},d={}.hasOwnProperty,y=function(t,e){return function(){return t.apply(e,arguments)}};l=n(78),o=n(17),r=n(89),t=n(195),u=n(196),f=n(19).setImmediate,a=function(t){return"object"==typeof t&&null!=t&&0===Object.keys(t).length},s=function(t,e){var n,r,i;for(n=0,r=t.length;n=0||t.indexOf(">")>=0||t.indexOf("<")>=0},p=function(t){return""},i=function(t){return t.replace("]]>","]]]]>")},e.processors=u,e.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}},e.ValidationError=function(t){function e(t){this.message=t}return h(e,t),e}(Error),e.Builder=function(){function t(t){var n,r,i;this.options={},r=e.defaults[.2];for(n in r)d.call(r,n)&&(i=r[n],this.options[n]=i);for(n in t)d.call(t,n)&&(i=t[n],this.options[n]=i)}return t.prototype.buildObject=function(t){var n,i,o,a,s;return n=this.options.attrkey,i=this.options.charkey,1===Object.keys(t).length&&this.options.rootName===e.defaults[.2].rootName?(s=Object.keys(t)[0],t=t[s]):s=this.options.rootName,o=function(t){return function(e,r){var a,s,u,l,f,h;if("object"!=typeof r)t.options.cdata&&c(r)?e.raw(p(r)):e.txt(r);else for(f in r)if(d.call(r,f))if(s=r[f],f===n){if("object"==typeof s)for(a in s)h=s[a],e=e.att(a,h)}else if(f===i)e=t.options.cdata&&c(s)?e.raw(p(s)):e.txt(s);else if(Array.isArray(s))for(l in s)d.call(s,l)&&(u=s[l],e="string"==typeof u?t.options.cdata&&c(u)?e.ele(f).raw(p(u)).up():e.ele(f,u).up():o(e.ele(f),u).up());else"object"==typeof s?e=o(e.ele(f),s).up():"string"==typeof s&&t.options.cdata&&c(s)?e=e.ele(f).raw(p(s)).up():(null==s&&(s=""),e=e.ele(f,s.toString()).up());return e}}(this),a=r.create(s,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),o(a,t).end(this.options.renderOpts)},t}(),e.Parser=function(n){function r(t){this.parseString=y(this.parseString,this),this.reset=y(this.reset,this),this.assignOrPush=y(this.assignOrPush,this),this.processAsync=y(this.processAsync,this);var n,r,i;if(!(this instanceof e.Parser))return new e.Parser(t);this.options={},r=e.defaults[.2];for(n in r)d.call(r,n)&&(i=r[n],this.options[n]=i);for(n in t)d.call(t,n)&&(i=t[n],this.options[n]=i);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(u.normalize)),this.reset()}return h(r,n),r.prototype.processAsync=function(){var t,e;try{return this.remaining.length<=this.options.chunkSize?(t=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(t),this.saxParser.close()):(t=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(t),f(this.processAsync))}catch(t){if(e=t,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(e)}},r.prototype.assignOrPush=function(t,e,n){return e in t?(t[e]instanceof Array||(t[e]=[t[e]]),t[e].push(n)):this.options.explicitArray?t[e]=[n]:t[e]=n},r.prototype.reset=function(){var t,e,n,r;return this.removeAllListeners(),this.saxParser=l.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(t){return function(e){if(t.saxParser.resume(),!t.saxParser.errThrown)return t.saxParser.errThrown=!0,t.emit("error",e)}}(this),this.saxParser.onend=function(t){return function(){if(!t.saxParser.ended)return t.saxParser.ended=!0,t.emit("end",t.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,r=[],t=this.options.attrkey,e=this.options.charkey,this.saxParser.onopentag=function(n){return function(i){var o,a,u,c,l;if(u={},u[e]="",!n.options.ignoreAttrs){l=i.attributes;for(o in l)d.call(l,o)&&(t in u||n.options.mergeAttrs||(u[t]={}),a=n.options.attrValueProcessors?s(n.options.attrValueProcessors,i.attributes[o]):i.attributes[o],c=n.options.attrNameProcessors?s(n.options.attrNameProcessors,o):o,n.options.mergeAttrs?n.assignOrPush(u,c,a):u[t][c]=a)}return u["#name"]=n.options.tagNameProcessors?s(n.options.tagNameProcessors,i.name):i.name,n.options.xmlns&&(u[n.options.xmlnskey]={uri:i.uri,local:i.local}),r.push(u)}}(this),this.saxParser.onclosetag=function(t){return function(){var n,i,o,u,c,l,f,p,h,y,g;if(f=r.pop(),l=f["#name"],t.options.explicitChildren&&t.options.preserveChildrenOrder||delete f["#name"],!0===f.cdata&&(n=f.cdata,delete f.cdata),y=r[r.length-1],f[e].match(/^\s*$/)&&!n?(i=f[e],delete f[e]):(t.options.trim&&(f[e]=f[e].trim()),t.options.normalize&&(f[e]=f[e].replace(/\s{2,}/g," ").trim()),f[e]=t.options.valueProcessors?s(t.options.valueProcessors,f[e]):f[e],1===Object.keys(f).length&&e in f&&!t.EXPLICIT_CHARKEY&&(f=f[e])),a(f)&&(f=""!==t.options.emptyTag?t.options.emptyTag:i),null!=t.options.validator){g="/"+function(){var t,e,n;for(n=[],t=0,e=r.length;t0&&(c[t.options.childkey]=f),f=c;return r.length>0?t.assignOrPush(y,l,f):(t.options.explicitRoot&&(h=f,f={},f[l]=h),t.resultObject=f,t.saxParser.ended=!0,t.emit("end",t.resultObject))}}(this),n=function(t){return function(n){var i,o;if(o=r[r.length-1])return o[e]+=n,t.options.explicitChildren&&t.options.preserveChildrenOrder&&t.options.charsAsChildren&&(t.options.includeWhiteChars||""!==n.replace(/\\n/g,"").trim())&&(o[t.options.childkey]=o[t.options.childkey]||[],i={"#name":"__text__"},i[e]=n,t.options.normalize&&(i[e]=i[e].replace(/\s{2,}/g," ").trim()),o[t.options.childkey].push(i)),o}}(this),this.saxParser.ontext=n,this.saxParser.oncdata=function(t){return function(t){var e;if(e=n(t))return e.cdata=!0}}()},r.prototype.parseString=function(e,n){var r;null!=n&&"function"==typeof n&&(this.on("end",function(t){return this.reset(),n(null,t)}),this.on("error",function(t){return this.reset(),n(t)}));try{return e=e.toString(),""===e.trim()?(this.emit("end",null),!0):(e=t.stripBOM(e),this.options.async?(this.remaining=e,f(this.processAsync),this.saxParser):this.saxParser.write(e).close())}catch(t){if(r=t,!this.saxParser.errThrown&&!this.saxParser.ended)return this.emit("error",r),this.saxParser.errThrown=!0;if(this.saxParser.ended)throw r}},r}(o.EventEmitter),e.parseString=function(t,n,r){var i,o,a;return null!=r?("function"==typeof r&&(i=r),"object"==typeof n&&(o=n)):("function"==typeof n&&(i=n),o={}),a=new e.Parser(o),a.parseString(t,i)}}).call(this)},function(t,e,n){(function(t){!function(e){function r(t,n){if(!(this instanceof r))return new r(t,n);var i=this;o(i),i.q=i.c="",i.bufferCheckPosition=e.MAX_BUFFER_LENGTH,i.opt=n||{},i.opt.lowercase=i.opt.lowercase||i.opt.lowercasetags,i.looseCase=i.opt.lowercase?"toLowerCase":"toUpperCase",i.tags=[],i.closed=i.closedRoot=i.sawRoot=!1,i.tag=i.error=null,i.strict=!!t,i.noscript=!(!t&&!i.opt.noscript),i.state=q.BEGIN,i.strictEntities=i.opt.strictEntities,i.ENTITIES=i.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),i.attribList=[],i.opt.xmlns&&(i.ns=Object.create(N)),i.trackPosition=!1!==i.opt.position,i.trackPosition&&(i.position=i.line=i.column=0),d(i,"onready")}function i(t){for(var n=Math.max(e.MAX_BUFFER_LENGTH,10),r=0,i=0,o=R.length;in)switch(R[i]){case"textNode":g(t);break;case"cdata":y(t,"oncdata",t.cdata),t.cdata="";break;case"script":y(t,"onscript",t.script),t.script="";break;default:m(t,"Max buffer length exceeded: "+R[i])}r=Math.max(r,a)}var s=e.MAX_BUFFER_LENGTH-r;t.bufferCheckPosition=s+t.position}function o(t){for(var e=0,n=R.length;e"===t||c(t)}function p(t,e){return t.test(e)}function h(t,e){return!p(t,e)}function d(t,e,n){t[e]&&t[e](n)}function y(t,e,n){t.textNode&&g(t),d(t,e,n)}function g(t){t.textNode=v(t.opt,t.textNode),t.textNode&&d(t,"ontext",t.textNode),t.textNode=""}function v(t,e){return t.trim&&(e=e.trim()),t.normalize&&(e=e.replace(/\s+/g," ")),e}function m(t,e){return g(t),t.trackPosition&&(e+="\nLine: "+t.line+"\nColumn: "+t.column+"\nChar: "+t.c),e=new Error(e),t.error=e,d(t,"onerror",e),t}function b(t){return t.sawRoot&&!t.closedRoot&&w(t,"Unclosed root tag"),t.state!==q.BEGIN&&t.state!==q.BEGIN_WHITESPACE&&t.state!==q.TEXT&&m(t,"Unexpected end"),g(t),t.c="",t.closed=!0,d(t,"onend"),r.call(t,t.strict,t.opt),t}function w(t,e){if("object"!=typeof t||!(t instanceof r))throw new Error("bad call to strictFail");t.strict&&m(t,e)}function _(t){t.strict||(t.tagName=t.tagName[t.looseCase]());var e=t.tags[t.tags.length-1]||t,n=t.tag={name:t.tagName,attributes:{}};t.opt.xmlns&&(n.ns=e.ns),t.attribList.length=0,y(t,"onopentagstart",n)}function x(t,e){var n=t.indexOf(":"),r=n<0?["",t]:t.split(":"),i=r[0],o=r[1];return e&&"xmlns"===t&&(i="xmlns",o=""),{prefix:i,local:o}}function T(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=x(t.attribName,!0),n=e.prefix,r=e.local;if("xmlns"===n)if("xml"===r&&t.attribValue!==L)w(t,"xml: prefix must be bound to "+L+"\nActual: "+t.attribValue);else if("xmlns"===r&&t.attribValue!==B)w(t,"xmlns: prefix must be bound to "+B+"\nActual: "+t.attribValue);else{var i=t.tag,o=t.tags[t.tags.length-1]||t;i.ns===o.ns&&(i.ns=Object.create(o.ns)),i.ns[r]=t.attribValue}t.attribList.push([t.attribName,t.attribValue])}else t.tag.attributes[t.attribName]=t.attribValue,y(t,"onattribute",{name:t.attribName,value:t.attribValue});t.attribName=t.attribValue=""}function E(t,e){if(t.opt.xmlns){var n=t.tag,r=x(t.tagName);n.prefix=r.prefix,n.local=r.local,n.uri=n.ns[r.prefix]||"",n.prefix&&!n.uri&&(w(t,"Unbound namespace prefix: "+JSON.stringify(t.tagName)),n.uri=r.prefix);var i=t.tags[t.tags.length-1]||t;n.ns&&i.ns!==n.ns&&Object.keys(n.ns).forEach(function(e){y(t,"onopennamespace",{prefix:e,uri:n.ns[e]})});for(var o=0,a=t.attribList.length;o",t.tagName="",void(t.state=q.SCRIPT);y(t,"onscript",t.script),t.script=""}var e=t.tags.length,n=t.tagName;t.strict||(n=n[t.looseCase]());for(var r=n;e--;){if(t.tags[e].name===r)break;w(t,"Unexpected close tag")}if(e<0)return w(t,"Unmatched closing tag: "+t.tagName),t.textNode+="",void(t.state=q.TEXT);t.tagName=n;for(var i=t.tags.length;i-- >e;){var o=t.tag=t.tags.pop();t.tagName=t.tag.name,y(t,"onclosetag",t.tagName);var a={};for(var s in o.ns)a[s]=o.ns[s];var u=t.tags[t.tags.length-1]||t;t.opt.xmlns&&o.ns!==u.ns&&Object.keys(o.ns).forEach(function(e){var n=o.ns[e];y(t,"onclosenamespace",{prefix:e,uri:n})})}0===e&&(t.closedRoot=!0),t.tagName=t.attribValue=t.attribName="",t.attribList.length=0,t.state=q.TEXT}function C(t){var e,n=t.entity,r=n.toLowerCase(),i="";return t.ENTITIES[n]?t.ENTITIES[n]:t.ENTITIES[r]?t.ENTITIES[r]:(n=r,"#"===n.charAt(0)&&("x"===n.charAt(1)?(n=n.slice(2),e=parseInt(n,16),i=e.toString(16)):(n=n.slice(1),e=parseInt(n,10),i=e.toString(10))),n=n.replace(/^0+/,""),isNaN(e)||i.toLowerCase()!==n?(w(t,"Invalid character entity"),"&"+t.entity+";"):String.fromCodePoint(e))}function S(t,e){"<"===e?(t.state=q.OPEN_WAKA,t.startTagPosition=t.position):c(e)||(w(t,"Non-whitespace before first tag."),t.textNode=e,t.state=q.TEXT)}function k(t,e){var n="";return e"===r?(y(e,"onsgmldeclaration",e.sgmlDecl),e.sgmlDecl="",e.state=q.TEXT):l(r)?(e.state=q.SGML_DECL_QUOTED,e.sgmlDecl+=r):e.sgmlDecl+=r;continue;case q.SGML_DECL_QUOTED:r===e.q&&(e.state=q.SGML_DECL,e.q=""),e.sgmlDecl+=r;continue;case q.DOCTYPE:">"===r?(e.state=q.TEXT,y(e,"ondoctype",e.doctype),e.doctype=!0):(e.doctype+=r,"["===r?e.state=q.DOCTYPE_DTD:l(r)&&(e.state=q.DOCTYPE_QUOTED,e.q=r));continue;case q.DOCTYPE_QUOTED:e.doctype+=r,r===e.q&&(e.q="",e.state=q.DOCTYPE);continue;case q.DOCTYPE_DTD:e.doctype+=r,"]"===r?e.state=q.DOCTYPE:l(r)&&(e.state=q.DOCTYPE_DTD_QUOTED,e.q=r);continue;case q.DOCTYPE_DTD_QUOTED:e.doctype+=r,r===e.q&&(e.state=q.DOCTYPE_DTD,e.q="");continue;case q.COMMENT:"-"===r?e.state=q.COMMENT_ENDING:e.comment+=r;continue;case q.COMMENT_ENDING:"-"===r?(e.state=q.COMMENT_ENDED,e.comment=v(e.opt,e.comment),e.comment&&y(e,"oncomment",e.comment),e.comment=""):(e.comment+="-"+r,e.state=q.COMMENT);continue;case q.COMMENT_ENDED:">"!==r?(w(e,"Malformed comment"),e.comment+="--"+r,e.state=q.COMMENT):e.state=q.TEXT;continue;case q.CDATA:"]"===r?e.state=q.CDATA_ENDING:e.cdata+=r;continue;case q.CDATA_ENDING:"]"===r?e.state=q.CDATA_ENDING_2:(e.cdata+="]"+r,e.state=q.CDATA);continue;case q.CDATA_ENDING_2:">"===r?(e.cdata&&y(e,"oncdata",e.cdata),y(e,"onclosecdata"),e.cdata="",e.state=q.TEXT):"]"===r?e.cdata+="]":(e.cdata+="]]"+r,e.state=q.CDATA);continue;case q.PROC_INST:"?"===r?e.state=q.PROC_INST_ENDING:c(r)?e.state=q.PROC_INST_BODY:e.procInstName+=r;continue;case q.PROC_INST_BODY:if(!e.procInstBody&&c(r))continue;"?"===r?e.state=q.PROC_INST_ENDING:e.procInstBody+=r;continue;case q.PROC_INST_ENDING:">"===r?(y(e,"onprocessinginstruction",{name:e.procInstName,body:e.procInstBody}),e.procInstName=e.procInstBody="",e.state=q.TEXT):(e.procInstBody+="?"+r,e.state=q.PROC_INST_BODY);continue;case q.OPEN_TAG:p(U,r)?e.tagName+=r:(_(e),">"===r?E(e):"/"===r?e.state=q.OPEN_TAG_SLASH:(c(r)||w(e,"Invalid character in tag name"),e.state=q.ATTRIB));continue;case q.OPEN_TAG_SLASH:">"===r?(E(e,!0),A(e)):(w(e,"Forward-slash in opening tag not followed by >"),e.state=q.ATTRIB);continue;case q.ATTRIB:if(c(r))continue;">"===r?E(e):"/"===r?e.state=q.OPEN_TAG_SLASH:p(M,r)?(e.attribName=r,e.attribValue="",e.state=q.ATTRIB_NAME):w(e,"Invalid attribute name");continue;case q.ATTRIB_NAME:"="===r?e.state=q.ATTRIB_VALUE:">"===r?(w(e,"Attribute without value"),e.attribValue=e.attribName,T(e),E(e)):c(r)?e.state=q.ATTRIB_NAME_SAW_WHITE:p(U,r)?e.attribName+=r:w(e,"Invalid attribute name");continue;case q.ATTRIB_NAME_SAW_WHITE:if("="===r)e.state=q.ATTRIB_VALUE;else{if(c(r))continue;w(e,"Attribute without value"),e.tag.attributes[e.attribName]="",e.attribValue="",y(e,"onattribute",{name:e.attribName,value:""}),e.attribName="",">"===r?E(e):p(M,r)?(e.attribName=r,e.state=q.ATTRIB_NAME):(w(e,"Invalid attribute name"),e.state=q.ATTRIB)}continue;case q.ATTRIB_VALUE:if(c(r))continue;l(r)?(e.q=r,e.state=q.ATTRIB_VALUE_QUOTED):(w(e,"Unquoted attribute value"),e.state=q.ATTRIB_VALUE_UNQUOTED,e.attribValue=r);continue;case q.ATTRIB_VALUE_QUOTED:if(r!==e.q){"&"===r?e.state=q.ATTRIB_VALUE_ENTITY_Q:e.attribValue+=r;continue}T(e),e.q="",e.state=q.ATTRIB_VALUE_CLOSED;continue;case q.ATTRIB_VALUE_CLOSED:c(r)?e.state=q.ATTRIB:">"===r?E(e):"/"===r?e.state=q.OPEN_TAG_SLASH:p(M,r)?(w(e,"No whitespace between attributes"),e.attribName=r,e.attribValue="",e.state=q.ATTRIB_NAME):w(e,"Invalid attribute name");continue;case q.ATTRIB_VALUE_UNQUOTED:if(!f(r)){"&"===r?e.state=q.ATTRIB_VALUE_ENTITY_U:e.attribValue+=r;continue}T(e),">"===r?E(e):e.state=q.ATTRIB;continue;case q.CLOSE_TAG:if(e.tagName)">"===r?A(e):p(U,r)?e.tagName+=r:e.script?(e.script+=""===r?A(e):w(e,"Invalid characters in closing tag");continue;case q.TEXT_ENTITY:case q.ATTRIB_VALUE_ENTITY_Q:case q.ATTRIB_VALUE_ENTITY_U:var s,u;switch(e.state){case q.TEXT_ENTITY:s=q.TEXT,u="textNode";break;case q.ATTRIB_VALUE_ENTITY_Q:s=q.ATTRIB_VALUE_QUOTED,u="attribValue";break;case q.ATTRIB_VALUE_ENTITY_U:s=q.ATTRIB_VALUE_UNQUOTED,u="attribValue"}";"===r?(e[u]+=C(e),e.entity="",e.state=s):p(e.entity.length?z:F,r)?e.entity+=r:(w(e,"Invalid character in entity name"),e[u]+="&"+e.entity+r,e.entity="",e.state=s);continue;default:throw new Error(e,"Unknown state: "+e.state)}}return e.position>=e.bufferCheckPosition&&i(e),e}e.parser=function(t,e){return new r(t,e)},e.SAXParser=r,e.SAXStream=u,e.createStream=s,e.MAX_BUFFER_LENGTH=65536;var R=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];e.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],Object.create||(Object.create=function(t){function e(){}return e.prototype=t,new e}),Object.keys||(Object.keys=function(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}),r.prototype={end:function(){b(this)},write:I,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){a(this)}};var j;try{j=n(79).Stream}catch(t){j=function(){}}var O=e.EVENTS.filter(function(t){return"error"!==t&&"end"!==t});u.prototype=Object.create(j.prototype,{constructor:{value:u}}),u.prototype.write=function(e){if("function"==typeof t&&"function"==typeof t.isBuffer&&t.isBuffer(e)){if(!this._decoder){var r=n(31).StringDecoder;this._decoder=new r("utf8")}e=this._decoder.write(e)}return this._parser.write(e.toString()),this.emit("data",e),!0},u.prototype.end=function(t){return t&&t.length&&this.write(t),this._parser.end(),!0},u.prototype.on=function(t,e){var n=this;return n._parser["on"+t]||-1===O.indexOf(t)||(n._parser["on"+t]=function(){var e=1===arguments.length?[arguments[0]]:Array.apply(null,arguments);e.splice(0,0,t),n.emit.apply(n,e)}),j.prototype.on.call(n,t,e)};var P="[CDATA[",D="DOCTYPE",L="http://www.w3.org/XML/1998/namespace",B="http://www.w3.org/2000/xmlns/",N={xml:L,xmlns:B},M=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,U=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,F=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,z=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,q=0;e.STATE={BEGIN:q++,BEGIN_WHITESPACE:q++,TEXT:q++,TEXT_ENTITY:q++,OPEN_WAKA:q++,SGML_DECL:q++,SGML_DECL_QUOTED:q++,DOCTYPE:q++,DOCTYPE_QUOTED:q++,DOCTYPE_DTD:q++,DOCTYPE_DTD_QUOTED:q++,COMMENT_STARTING:q++,COMMENT:q++,COMMENT_ENDING:q++,COMMENT_ENDED:q++,CDATA:q++,CDATA_ENDING:q++,CDATA_ENDING_2:q++,PROC_INST:q++,PROC_INST_BODY:q++,PROC_INST_ENDING:q++,OPEN_TAG:q++,OPEN_TAG_SLASH:q++,ATTRIB:q++,ATTRIB_NAME:q++,ATTRIB_NAME_SAW_WHITE:q++,ATTRIB_VALUE:q++,ATTRIB_VALUE_QUOTED:q++,ATTRIB_VALUE_CLOSED:q++,ATTRIB_VALUE_UNQUOTED:q++,ATTRIB_VALUE_ENTITY_Q:q++,ATTRIB_VALUE_ENTITY_U:q++,CLOSE_TAG:q++,CLOSE_TAG_SAW_WHITE:q++,SCRIPT:q++,SCRIPT_ENDING:q++},e.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},e.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(e.ENTITIES).forEach(function(t){var n=e.ENTITIES[t],r="number"==typeof n?String.fromCharCode(n):n;e.ENTITIES[t]=r});for(var K in e.STATE)e.STATE[e.STATE[K]]=K;q=e.STATE,/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */ -String.fromCodePoint||function(){var t=String.fromCharCode,e=Math.floor,n=function(){var n,r,i=[],o=-1,a=arguments.length;if(!a)return"";for(var s="";++o1114111||e(u)!==u)throw RangeError("Invalid code point: "+u);u<=65535?i.push(u):(u-=65536,n=55296+(u>>10),r=u%1024+56320,i.push(n,r)),(o+1===a||i.length>16384)&&(s+=t.apply(null,i),i.length=0)}return s};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:n,configurable:!0,writable:!0}):String.fromCodePoint=n}()}(e)}).call(e,n(7).Buffer)},function(t,e,n){function r(){i.call(this)}t.exports=r;var i=n(17).EventEmitter;n(8)(r,i),r.Readable=n(28),r.Writable=n(85),r.Duplex=n(86),r.Transform=n(87),r.PassThrough=n(88),r.Stream=r,r.prototype.pipe=function(t,e){function n(e){t.writable&&!1===t.write(e)&&c.pause&&c.pause()}function r(){c.readable&&c.resume&&c.resume()}function o(){l||(l=!0,t.end())}function a(){l||(l=!0,"function"==typeof t.destroy&&t.destroy())}function s(t){if(u(),0===i.listenerCount(this,"error"))throw t}function u(){c.removeListener("data",n),t.removeListener("drain",r),c.removeListener("end",o),c.removeListener("close",a),c.removeListener("error",s),t.removeListener("error",s),c.removeListener("end",u),c.removeListener("close",u),t.removeListener("close",u)}var c=this;c.on("data",n),t.on("drain",r),t._isStdio||e&&!1===e.end||(c.on("end",o),c.on("close",a));var l=!1;return c.on("error",s),t.on("error",s),c.on("end",u),c.on("close",u),t.on("close",u),t.emit("pipe",c),t}},function(t,e){},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e,n){t.copy(e,n)}var o=n(29).Buffer;t.exports=function(){function t(){r(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},t.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},t.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,n=""+e.data;e=e.next;)n+=t+e.data;return n},t.prototype.concat=function(t){if(0===this.length)return o.alloc(0);if(1===this.length)return this.head.data;for(var e=o.allocUnsafe(t>>>0),n=this.head,r=0;n;)i(n.data,e,r),r+=n.data.length,n=n.next;return e},t}()},function(t,e,n){(function(t,e){!function(t,n){"use strict";function r(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(a=t.length>3&&"function"==typeof a?(i--,a):void 0,s&&o(n[0],n[1],s)&&(a=i<3?void 0:a,i=1),e=Object(e);++r0){if(++e>=r)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var r=800,i=16,o=Date.now;t.exports=n},function(t,e,n){function r(t,e){var n=a(t),r=!n&&o(t),l=!n&&!r&&s(t),p=!n&&!r&&!l&&c(t),h=n||r||l||p,d=h?i(t.length,String):[],y=d.length;for(var g in t)!e&&!f.call(t,g)||h&&("length"==g||l&&("offset"==g||"parent"==g)||p&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||u(g,y))||d.push(g);return d}var i=n(106),o=n(36),a=n(2),s=n(37),u=n(34),c=n(39),l=Object.prototype,f=l.hasOwnProperty;t.exports=r},function(t,e){function n(t,e){for(var n=-1,r=Array(t);++n/))throw new Error("Invalid CDATA text: "+t);return this.assertLegalChar(t)},t.prototype.comment=function(t){if(t=""+t||"",t.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+t);return this.assertLegalChar(t)},t.prototype.raw=function(t){return""+t||""},t.prototype.attName=function(t){return""+t||""},t.prototype.attValue=function(t){return t=""+t||"",this.attEscape(t)},t.prototype.insTarget=function(t){return""+t||""},t.prototype.insValue=function(t){if(t=""+t||"",t.match(/\?>/))throw new Error("Invalid processing instruction value: "+t);return t},t.prototype.xmlVersion=function(t){if(t=""+t||"",!t.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+t);return t},t.prototype.xmlEncoding=function(t){if(t=""+t||"",!t.match(/^[A-Za-z](?:[A-Za-z0-9._-]|-)*$/))throw new Error("Invalid encoding: "+t);return t},t.prototype.xmlStandalone=function(t){return t?"yes":"no"},t.prototype.dtdPubID=function(t){return""+t||""},t.prototype.dtdSysID=function(t){return""+t||""},t.prototype.dtdElementValue=function(t){return""+t||""},t.prototype.dtdAttType=function(t){return""+t||""},t.prototype.dtdAttDefault=function(t){return null!=t?""+t||"":t},t.prototype.dtdEntityValue=function(t){return""+t||""},t.prototype.dtdNData=function(t){return""+t||""},t.prototype.convertAttKey="@",t.prototype.convertPIKey="?",t.prototype.convertTextKey="#text",t.prototype.convertCDataKey="#cdata",t.prototype.convertCommentKey="#comment",t.prototype.convertRawKey="#raw",t.prototype.assertLegalChar=function(t){var e,n;if(e=this.allowSurrogateChars?/[\u0000-\u0008\u000B-\u000C\u000E-\u001F\uFFFE-\uFFFF]/:/[\u0000-\u0008\u000B-\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE-\uFFFF]/,n=t.match(e))throw new Error("Invalid character ("+n+") in string: "+t+" at index "+n.index);return t},t.prototype.elEscape=function(t){var e;return e=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,t.replace(e,"&").replace(//g,">").replace(/\r/g," ")},t.prototype.attEscape=function(t){var e;return e=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,t.replace(e,"&").replace(/-1}var i=n(24);t.exports=r},function(t,e,n){function r(t,e){var n=this.__data__,r=i(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}var i=n(24);t.exports=r},function(t,e,n){function r(){this.__data__=new i,this.size=0}var i=n(23);t.exports=r},function(t,e){function n(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}t.exports=n},function(t,e){function n(t){return this.__data__.get(t)}t.exports=n},function(t,e){function n(t){return this.__data__.has(t)}t.exports=n},function(t,e,n){function r(t,e){var n=this.__data__;if(n instanceof i){var r=n.__data__;if(!o||r.length",o&&(a+=r),a},t}()}).call(this)},function(t,e,n){(function(){n(0),t.exports=function(){function t(t,e,n){if(this.stringify=t.stringify,null==e)throw new Error("Missing notation name");if(!n.pubID&&!n.sysID)throw new Error("Public or system identifiers are required for an external entity");this.name=this.stringify.eleName(e),null!=n.pubID&&(this.pubID=this.stringify.dtdPubID(n.pubID)),null!=n.sysID&&(this.sysID=this.stringify.dtdSysID(n.sysID))}return t.prototype.toString=function(t,e){var n,r,i,o,a,s,u,c,l;return o=(null!=t?t.pretty:void 0)||!1,n=null!=(s=null!=t?t.indent:void 0)?s:" ",i=null!=(u=null!=t?t.offset:void 0)?u:0,r=null!=(c=null!=t?t.newline:void 0)?c:"\n",e||(e=0),l=new Array(e+i+1).join(n),a="",o&&(a+=l),a+="",o&&(a+=r),a},t}()}).call(this)},function(t,e,n){(function(){var e,r,i=function(t,e){function n(){this.constructor=t}for(var r in e)o.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},o={}.hasOwnProperty;r=n(0),e=n(10),t.exports=function(t){function e(t,n){if(e.__super__.constructor.call(this,t),null==n)throw new Error("Missing raw text");this.value=this.stringify.raw(n)}return i(e,t),e.prototype.clone=function(){return r(e.prototype,this)},e.prototype.toString=function(t,e){var n,r,i,o,a,s,u,c,l;return o=(null!=t?t.pretty:void 0)||!1,n=null!=(s=null!=t?t.indent:void 0)?s:" ",i=null!=(u=null!=t?t.offset:void 0)?u:0,r=null!=(c=null!=t?t.newline:void 0)?c:"\n",e||(e=0),l=new Array(e+i+1).join(n),a="",o&&(a+=l),a+=this.value,o&&(a+=r),a},e}(e)}).call(this)},function(t,e,n){(function(){var e,r,i=function(t,e){function n(){this.constructor=t}for(var r in e)o.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},o={}.hasOwnProperty;r=n(0),e=n(10),t.exports=function(t){function e(t,n){if(e.__super__.constructor.call(this,t),null==n)throw new Error("Missing element text");this.value=this.stringify.eleText(n)}return i(e,t),e.prototype.clone=function(){return r(e.prototype,this)},e.prototype.toString=function(t,e){var n,r,i,o,a,s,u,c,l;return o=(null!=t?t.pretty:void 0)||!1,n=null!=(s=null!=t?t.indent:void 0)?s:" ",i=null!=(u=null!=t?t.offset:void 0)?u:0,r=null!=(c=null!=t?t.newline:void 0)?c:"\n",e||(e=0),l=new Array(e+i+1).join(n),a="",o&&(a+=l),a+=this.value,o&&(a+=r),a},e}(e)}).call(this)},function(t,e){(function(){"use strict";e.stripBOM=function(t){return"\ufeff"===t[0]?t.substring(1):t}}).call(this)},function(t,e){(function(){"use strict";var t;t=new RegExp(/(?!xmlns)^.*:/),e.normalize=function(t){return t.toLowerCase()},e.firstCharLowerCase=function(t){return t.charAt(0).toLowerCase()+t.slice(1)},e.stripPrefix=function(e){return e.replace(t,"")},e.parseNumbers=function(t){return isNaN(t)||(t=t%1==0?parseInt(t,10):parseFloat(t)),t},e.parseBooleans=function(t){return/^(?:true|false)$/i.test(t)&&(t="true"===t.toLowerCase()),t}}).call(this)},function(t,e){var n=function(t){var e={},n=function(t){return!e[t]&&(e[t]=[]),e[t]};t.on=function(t,e){n(t).push(e)},t.off=function(t,e){for(var r=n(t),i=r.length-1;i>=0;i--)e===r[i]&&r.splice(i,1)},t.emit=function(t,e){for(var r=n(t),i=0;i-1&&(a[s]=e[s]);var u=e.Body;if(G.isBrowser&&(u instanceof t.Blob||u instanceof t.File))a["Content-Length"]=u.length;else if(u&&u instanceof r)a["Content-Length"]=u.length;else if(u&&"function"==typeof u.pipe){if(u,u=null,void 0===a["Content-Length"])return void n({error:"lack of param ContentLength"})}else{if(!u||"string"!=typeof u.pipe||!G.isBrowser)return void n({error:"params body format error, Only allow Buffer, Stream, Blob."});a["Content-Length"]=u.length}var c=e.onProgress,l=function(){var t,e=Date.now(),n=0,r=0,o=a["Content-Length"],s=function(){if(t=0,c&&"function"==typeof c){var i=Date.now(),a=parseInt((r-n)/((i-e)/1e3)*100)/100||0,s=parseInt(r/o*100)/100||0;e=i,n=r;try{c({loaded:r,total:o,speed:a,percent:s})}catch(t){}}};return function(e,n){if(e&&e.loaded&&(r=e.loaded,o=e.total),n)clearTimeout(t),s();else{if(t)return;t=setTimeout(s,i.options.ProgressInterval||100)}}}(),f=z.call(this,{method:"PUT",Bucket:e.Bucket,Region:e.Region,AppId:e.AppId,Key:e.Key,headers:a,body:u,onProgress:l},function(t,r){return e.TaskId===o&&i.off("inner-kill-task",p),l(null,!0),t?n(t):r&&r.headers&&r.headers.etag?n(null,{ETag:r.headers.etag,statusCode:r.statusCode,headers:r.headers}):void n(null,r)}),p=function(t){f&&f.abort&&f.abort(),e.TaskId===t.TaskId&&i.off("inner-kill-task",p)};e.TaskId&&this.on("inner-kill-task",p)}function S(t,e){z.call(this,{method:"DELETE",Bucket:t.Bucket,Region:t.Region,AppId:t.AppId,Key:t.Key},function(t,n){if(t){var r=t.statusCode;return r&&204==r?e(null,{statusCode:n.statusCode,headers:n.headers}):r&&404==r?e(null,{BucketNotFound:!0,statusCode:n.statusCode,headers:n.headers}):e(t)}e(null,{statusCode:n.statusCode,headers:n.headers})})}function k(t,e){z.call(this,{method:"GET",Bucket:t.Bucket,Region:t.Region,AppId:t.AppId,Key:t.Key,action:"?acl"},function(t,n){if(t)return e(t);var r=n.AccessControlPolicy.Owner||{},i=n.AccessControlPolicy.AccessControlList.Grant||[];i=G.isArray(i)?i:[i],e(null,{Owner:r,Grants:i,statusCode:n.statusCode,headers:n.headers})})}function I(t,e){var n={};n["x-cos-acl"]=t.ACL,n["x-cos-grant-read"]=t.GrantRead,n["x-cos-grant-write"]=t.GrantWrite,n["x-cos-grant-full-control"]=t.GrantFullControl;var r="";if(t.AccessControlPolicy){var i=G.clone(t.AccessControlPolicy||{}),o=i.Grants||i.Grant;o=G.isArray(o)?o:[o],delete i.Grant,delete i.Grants,i.AccessControlList={Grant:o},r=G.json2xml({AccessControlPolicy:i}),n["Content-MD5"]=G.binaryBase64(G.md5(r)),n["Content-Type"]="application/xml"}z.call(this,{method:"PUT",Bucket:t.Bucket,Region:t.Region,AppId:t.AppId,Key:t.Key,action:"?acl",headers:n,body:r},function(t,n){if(t)return e(t);e(null,{statusCode:n.statusCode,headers:n.headers})})}function R(t,e){var n={};n.Origin=t.Origin,n["Access-Control-Request-Method"]=t.AccessControlRequestMethod,n["Access-Control-Request-Headers"]=t.AccessControlRequestHeaders,z.call(this,{method:"OPTIONS",Bucket:t.Bucket,Region:t.Region,AppId:t.AppId,Key:t.Key,headers:n},function(t,n){if(t)return t.statusCode&&403==t.statusCode?e(null,{OptionsForbidden:!0,statusCode:n.statusCode,headers:n.headers}):e(t);var r=n.headers||{};e(null,{AccessControlAllowOrigin:r["access-control-allow-origin"],AccessControlAllowMethods:r["access-control-allow-methods"],AccessControlAllowHeaders:r["access-control-allow-headers"],AccessControlExposeHeaders:r["access-control-expose-headers"],AccessControlMaxAge:r["access-control-max-age"],statusCode:n.statusCode,headers:n.headers})})}function j(t,e){var n={};n["x-cos-copy-source"]=t.CopySource,n["x-cos-metadata-directive"]=t.MetadataDirective,n["x-cos-copy-source-If-Modified-Since"]=t.CopySourceIfModifiedSince,n["x-cos-copy-source-If-Unmodified-Since"]=t.CopySourceIfUnmodifiedSince,n["x-cos-copy-source-If-Match"]=t.CopySourceIfMatch,n["x-cos-copy-source-If-None-Match"]=t.CopySourceIfNoneMatch,n["x-cos-storage-class"]=t.StorageClass,n["x-cos-acl"]=t.ACL,n["x-cos-grant-read"]=t.GrantRead,n["x-cos-grant-write"]=t.GrantWrite,n["x-cos-grant-full-control"]=t.GrantFullControl,n["Cache-Control"]=t.CacheControl,n["Content-Disposition"]=t.ContentDisposition,n["Content-Encoding"]=t.ContentEncoding,n["Content-Length"]=t.ContentLength,n["Content-Type"]=t.ContentType,n.Expect=t.Expect,n.Expires=t.Expires;for(var r in t)r.indexOf("x-cos-meta-")>-1&&(n[r]=t[r]);z.call(this,{method:"PUT",Bucket:t.Bucket,Region:t.Region,AppId:t.AppId,Key:t.Key,headers:n},function(t,n){if(t)return e(t);var r=G.clone(n.CopyObjectResult);G.extend(r,{statusCode:n.statusCode,headers:n.headers}),e(null,r)})}function O(t,e){var n={};n["Content-Type"]="application/xml";var i=t.Objects||{},o=t.Quiet,a={Delete:{Object:i,Quiet:o||!1}},s=G.json2xml(a);n["Content-MD5"]=G.binaryBase64(G.md5(s)),n["Content-Length"]=r.byteLength(s,"utf8"),z.call(this,{method:"POST",Bucket:t.Bucket,Region:t.Region,AppId:t.AppId,body:s,action:"/?delete",headers:n},function(t,n){if(t)return e(t);var r=n.DeleteResult.Deleted||[],i=n.DeleteResult.Error||[];r=G.isArray(r)?r:[r],i=G.isArray(i)?i:[i];var o=G.clone(n.DeleteResult);G.extend(o,{Error:i,Deleted:r,statusCode:n.statusCode,headers:n.headers}),e(null,o)})}function P(t,e){var n={};n["Cache-Control"]=t.CacheControl,n["Content-Disposition"]=t.ContentDisposition,n["Content-Encoding"]=t.ContentEncoding,n["Content-Type"]=t.ContentType,n.Expires=t.Expires,n["x-cos-acl"]=t.ACL,n["x-cos-grant-read"]=t.GrantRead,n["x-cos-grant-write"]=t.GrantWrite,n["x-cos-grant-full-control"]=t.GrantFullControl,n["x-cos-storage-class"]=t.StorageClass;for(var r in t)r.indexOf("x-cos-meta-")>-1&&(n[r]=t[r]);z.call(this,{method:"POST",Bucket:t.Bucket,Region:t.Region,AppId:t.AppId,Key:t.Key,action:"?uploads",headers:n},function(t,n){return t?e(t):(n=G.clone(n||{}))&&n.InitiateMultipartUploadResult?e(null,G.extend(n.InitiateMultipartUploadResult,{statusCode:n.statusCode,headers:n.headers})):void e(null,n)})}function D(t,e){var n=this,r={};r["Content-Length"]=t.ContentLength,r.Expect=t.Expect;var i=t.PartNumber,o=t.UploadId,a="?partNumber="+i+"&uploadId="+o,s=z.call(this,{method:"PUT",Bucket:t.Bucket,Region:t.Region,AppId:t.AppId,Key:t.Key,action:a,headers:r,body:t.Body||null,onProgress:t.onProgress},function(r,i){if(t.TaskId&&n.off("inner-kill-task",u),r)return e(r);i.headers=i.headers||{},e(null,{ETag:i.headers.etag||"",statusCode:i.statusCode,headers:i.headers})}),u=function(e){s&&s.abort&&s.abort(),t.TaskId===e&&n.off("inner-kill-task",u)};t.TaskId&&this.on("inner-kill-task",u)}function L(t,e){var n={};n["Content-Type"]="application/xml";for(var i=t.UploadId,o="?uploadId="+i,a=t.Parts,s=0,u=a.length;s0&&c>u&&(c=u);for(var l=0;l=0?(f=y.substr(0,g),p=y.substr(g+1)):(f=y,p=""),h=decodeURIComponent(f),d=decodeURIComponent(p),r(a,h)?i(a[h])?a[h].push(d):a[h]=[a[h],d]:a[h]=d}return a};var i=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},function(t,e,n){"use strict";function r(t,e){if(t.map)return t.map(e);for(var n=[],r=0;r0&&e-1 in t))}function e(t){var e=N[t]={};return k.each(t.match(B)||[],function(t,n){e[n]=!0}),e}function n(){D.addEventListener?(D.removeEventListener("DOMContentLoaded",r,!1),window.removeEventListener("load",r,!1)):(D.detachEvent("onreadystatechange",r),window.detachEvent("onload",r))}function r(){(D.addEventListener||"load"===event.type||"complete"===D.readyState)&&(n(),k.ready())}function i(t,e,n){if(void 0===n&&1===t.nodeType){var r="data-"+e.replace(z,"-$1").toLowerCase();if("string"==typeof(n=t.getAttribute(r))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:F.test(n)?k.parseJSON(n):n)}catch(t){}k.data(t,e,n)}else n=void 0}return n}function o(t){var e;for(e in t)if(("data"!==e||!k.isEmptyObject(t[e]))&&"toJSON"!==e)return!1;return!0}function a(t,e,n,r){if(k.acceptData(t)){var i,o,a=k.expando,s=t.nodeType,u=s?k.cache:t,c=s?t[a]:t[a]&&a;if(c&&u[c]&&(r||u[c].data)||void 0!==n||"string"!=typeof e)return c||(c=s?t[a]=m.pop()||k.guid++:a),u[c]||(u[c]=s?{}:{toJSON:k.noop}),"object"!=typeof e&&"function"!=typeof e||(r?u[c]=k.extend(u[c],e):u[c].data=k.extend(u[c].data,e)),o=u[c],r||(o.data||(o.data={}),o=o.data),void 0!==n&&(o[k.camelCase(e)]=n),"string"==typeof e?null==(i=o[e])&&(i=o[k.camelCase(e)]):i=o,i}}function s(t,e,n){if(k.acceptData(t)){var r,i,a=t.nodeType,s=a?k.cache:t,u=a?t[k.expando]:k.expando;if(s[u]){if(e&&(r=n?s[u]:s[u].data)){k.isArray(e)?e=e.concat(k.map(e,k.camelCase)):e in r?e=[e]:(e=k.camelCase(e),e=e in r?[e]:e.split(" ")),i=e.length;for(;i--;)delete r[e[i]];if(n?!o(r):!k.isEmptyObject(r))return}(n||(delete s[u].data,o(s[u])))&&(a?k.cleanData([t],!0):C.deleteExpando||s!=s.window?delete s[u]:s[u]=null)}}}function u(){return!0}function c(){return!1}function l(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var r,i=0,o=e.toLowerCase().match(B)||[];if(k.isFunction(n))for(;r=o[i++];)"+"===r.charAt(0)?(r=r.slice(1)||"*",(t[r]=t[r]||[]).unshift(n)):(t[r]=t[r]||[]).push(n)}}function f(t,e,n,r){function i(s){var u;return o[s]=!0,k.each(t[s]||[],function(t,s){var c=s(e,n,r);return"string"!=typeof c||a||o[c]?a?!(u=c):void 0:(e.dataTypes.unshift(c),i(c),!1)}),u}var o={},a=t===at;return i(e.dataTypes[0])||!o["*"]&&i("*")}function p(t,e){var n,r,i=k.ajaxSettings.flatOptions||{};for(r in e)void 0!==e[r]&&((i[r]?t:n||(n={}))[r]=e[r]);return n&&k.extend(!0,t,n),t}function h(t,e,n){for(var r,i,o,a,s=t.contents,u=t.dataTypes;"*"===u[0];)u.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(a in s)if(s[a]&&s[a].test(i)){u.unshift(a);break}if(u[0]in n)o=u[0];else{for(a in n){if(!u[0]||t.converters[a+" "+u[0]]){o=a;break}r||(r=a)}o=o||r}if(o)return o!==u[0]&&u.unshift(o),n[o]}function d(t,e,n,r){var i,o,a,s,u,c={},l=t.dataTypes.slice();if(l[1])for(a in t.converters)c[a.toLowerCase()]=t.converters[a];for(o=l.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!u&&r&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),u=o,o=l.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=c[u+" "+o]||c["* "+o]))for(i in c)if(s=i.split(" "),s[1]===o&&(a=c[u+" "+s[0]]||c["* "+s[0]])){!0===a?a=c[i]:!0!==c[i]&&(o=s[0],l.unshift(s[1]));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(t){return{state:"parsererror",error:a?t:"No conversion from "+u+" to "+o}}}return{state:"success",data:e}}function y(t,e,n,r){var i;if(k.isArray(e))k.each(e,function(e,i){n||ct.test(t)?r(t,i):y(t+"["+("object"==typeof i?e:"")+"]",i,n,r)});else if(n||"object"!==k.type(e))r(t,e);else for(i in e)y(t+"["+i+"]",e[i],n,r)}function g(){try{return new window.XMLHttpRequest}catch(t){}}function v(){try{return new window.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}var m=[],b=m.slice,w=m.concat,_=m.push,x=m.indexOf,T={},E=T.toString,A=T.hasOwnProperty,C={},S="1.11.1 -css,-css/addGetHookIf,-css/curCSS,-css/defaultDisplay,-css/hiddenVisibleSelectors,-css/support,-css/swap,-css/var/cssExpand,-css/var/isHidden,-css/var/rmargin,-css/var/rnumnonpx,-effects,-effects/Tween,-effects/animatedSelector,-effects/support,-dimensions,-offset,-deprecated,-event-alias,-wrap",k=function(t,e){return new k.fn.init(t,e)},I=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,R=/^-ms-/,j=/-([\da-z])/gi,O=function(t,e){return e.toUpperCase()};k.fn=k.prototype={jquery:S,constructor:k,selector:"",length:0,toArray:function(){return b.call(this)},get:function(t){return null!=t?t<0?this[t+this.length]:this[t]:b.call(this)},pushStack:function(t){var e=k.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t,e){return k.each(this,t,e)},map:function(t){return this.pushStack(k.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return this.pushStack(b.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n=0},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},isPlainObject:function(t){var e;if(!t||"object"!==k.type(t)||t.nodeType||k.isWindow(t))return!1;try{if(t.constructor&&!A.call(t,"constructor")&&!A.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}if(C.ownLast)for(e in t)return A.call(t,e);for(e in t);return void 0===e||A.call(t,e)},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?T[E.call(t)]||"object":typeof t},globalEval:function(t){t&&k.trim(t)&&(window.execScript||function(t){window.eval.call(window,t)})(t)},camelCase:function(t){return t.replace(R,"ms-").replace(j,O)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(e,n,r){var i=0,o=e.length,a=t(e);if(r){if(a)for(;i)[^>]*|#([\w-]*))$/;(k.fn.init=function(t,e){var n,r;if(!t)return this;if("string"==typeof t){if(!(n="<"===t.charAt(0)&&">"===t.charAt(t.length-1)&&t.length>=3?[null,t,null]:L.exec(t))||!n[1]&&e)return!e||e.jquery?(e||P).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof k?e[0]:e,k.merge(this,k.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:D,!0)),rsingleTag.test(n[1])&&k.isPlainObject(e))for(n in e)k.isFunction(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}if((r=D.getElementById(n[2]))&&r.parentNode){if(r.id!==n[2])return P.find(t);this.length=1,this[0]=r}return this.context=D,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):k.isFunction(t)?void 0!==P.ready?P.ready(t):t(k):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),k.makeArray(t,this))}).prototype=k.fn,P=k(D);var B=/\S+/g,N={};k.Callbacks=function(t){t="string"==typeof t?N[t]||e(t):k.extend({},t);var n,r,i,o,a,s,u=[],c=!t.once&&[],l=function(e){for(r=t.memory&&e,i=!0,a=s||0,s=0,o=u.length,n=!0;u&&a-1;)u.splice(r,1),n&&(r<=o&&o--,r<=a&&a--)}),this},has:function(t){return t?k.inArray(t,u)>-1:!(!u||!u.length)},empty:function(){return u=[],o=0,this},disable:function(){return u=c=r=void 0,this},disabled:function(){return!u},lock:function(){return c=void 0,r||f.disable(),this},locked:function(){return!c},fireWith:function(t,e){return!u||i&&!c||(e=e||[],e=[t,e.slice?e.slice():e],n?c.push(e):l(e)),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!i}};return f},k.extend({Deferred:function(t){var e=[["resolve","done",k.Callbacks("once memory"),"resolved"],["reject","fail",k.Callbacks("once memory"),"rejected"],["notify","progress",k.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var t=arguments;return k.Deferred(function(n){k.each(e,function(e,o){var a=k.isFunction(t[e])&&t[e];i[o[1]](function(){var t=a&&a.apply(this,arguments);t&&k.isFunction(t.promise)?t.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[o[0]+"With"](this===r?n.promise():this,a?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?k.extend(t,r):r}},i={};return r.pipe=r.then,k.each(e,function(t,o){var a=o[2],s=o[3];r[o[1]]=a.add,s&&a.add(function(){n=s},e[1^t][2].disable,e[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=a.fireWith}),r.promise(i),t&&t.call(i,i),i},when:function(t){var e,n,r,i=0,o=b.call(arguments),a=o.length,s=1!==a||t&&k.isFunction(t.promise)?a:0,u=1===s?t:k.Deferred(),c=function(t,n,r){return function(i){n[t]=this,r[t]=arguments.length>1?b.call(arguments):i,r===e?u.notifyWith(n,r):--s||u.resolveWith(n,r)}};if(a>1)for(e=new Array(a),n=new Array(a),r=new Array(a);i0||(M.resolveWith(D,[k]),k.fn.triggerHandler&&(k(D).triggerHandler("ready"),k(D).off("ready")))}}}),k.ready.promise=function(t){if(!M)if(M=k.Deferred(),"complete"===D.readyState)setTimeout(k.ready);else if(D.addEventListener)D.addEventListener("DOMContentLoaded",r,!1),window.addEventListener("load",r,!1);else{D.attachEvent("onreadystatechange",r),window.attachEvent("onload",r);var e=!1;try{e=null==window.frameElement&&D.documentElement}catch(t){}e&&e.doScroll&&function t(){if(!k.isReady){try{e.doScroll("left")}catch(e){return setTimeout(t,50)}n(),k.ready()}}()}return M.promise(t)};var U;for(U in k(C))break;C.ownLast="0"!==U,C.inlineBlockNeedsLayout=!1,k(function(){var t,e,n,r;(n=D.getElementsByTagName("body")[0])&&n.style&&(e=D.createElement("div"),r=D.createElement("div"),r.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(r).appendChild(e),void 0!==e.style.zoom&&(e.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",C.inlineBlockNeedsLayout=t=3===e.offsetWidth,t&&(n.style.zoom=1)),n.removeChild(r))}),function(){var t=D.createElement("div");if(null==C.deleteExpando){C.deleteExpando=!0;try{delete t.test}catch(t){C.deleteExpando=!1}}t=null}(),k.acceptData=function(t){var e=k.noData[(t.nodeName+" ").toLowerCase()],n=+t.nodeType||1;return(1===n||9===n)&&(!e||!0!==e&&t.getAttribute("classid")===e)};var F=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,z=/([A-Z])/g;k.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(t){return!!(t=t.nodeType?k.cache[t[k.expando]]:t[k.expando])&&!o(t)},data:function(t,e,n){return a(t,e,n)},removeData:function(t,e){return s(t,e)},_data:function(t,e,n){return a(t,e,n,!0)},_removeData:function(t,e){return s(t,e,!0)}}),k.fn.extend({data:function(t,e){var n,r,o,a=this[0],s=a&&a.attributes;if(void 0===t){if(this.length&&(o=k.data(a),1===a.nodeType&&!k._data(a,"parsedAttrs"))){for(n=s.length;n--;)s[n]&&(r=s[n].name,0===r.indexOf("data-")&&(r=k.camelCase(r.slice(5)),i(a,r,o[r])));k._data(a,"parsedAttrs",!0)}return o}return"object"==typeof t?this.each(function(){k.data(this,t)}):arguments.length>1?this.each(function(){k.data(this,t,e)}):a?i(a,t,k.data(a,t)):void 0},removeData:function(t){return this.each(function(){k.removeData(this,t)})}}),k.extend({queue:function(t,e,n){var r;if(t)return e=(e||"fx")+"queue",r=k._data(t,e),n&&(!r||k.isArray(n)?r=k._data(t,e,k.makeArray(n)):r.push(n)),r||[]},dequeue:function(t,e){e=e||"fx";var n=k.queue(t,e),r=n.length,i=n.shift(),o=k._queueHooks(t,e),a=function(){k.dequeue(t,e)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===e&&n.unshift("inprogress"),delete o.stop,i.call(t,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return k._data(t,n)||k._data(t,n,{empty:k.Callbacks("once memory").add(function(){k._removeData(t,e+"queue"),k._removeData(t,n)})})}}),k.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length=0&&(h=p.split("."),p=h.shift(),h.sort()),o=p.indexOf(":")<0&&"on"+p,t=t[k.expando]?t:new k.Event(p,"object"==typeof t&&t),t.isTrigger=r?2:3,t.namespace=h.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:k.makeArray(e,[t]),u=k.event.special[p]||{},r||!u.trigger||!1!==u.trigger.apply(n,e))){if(!r&&!u.noBubble&&!k.isWindow(n)){for(s=u.delegateType||p,H.test(s+p)||(a=a.parentNode);a;a=a.parentNode)f.push(a),c=a;c===(n.ownerDocument||D)&&f.push(c.defaultView||c.parentWindow||window)}for(l=0;(a=f[l++])&&!t.isPropagationStopped();)t.type=l>1?s:u.bindType||p,i=(k._data(a,"events")||{})[t.type]&&k._data(a,"handle"),i&&i.apply(a,e),(i=o&&a[o])&&i.apply&&k.acceptData(a)&&(t.result=i.apply(a,e),!1===t.result&&t.preventDefault());if(t.type=p,!r&&!t.isDefaultPrevented()&&(!u._default||!1===u._default.apply(f.pop(),e))&&k.acceptData(n)&&o&&n[p]&&!k.isWindow(n)){c=n[o],c&&(n[o]=null),k.event.triggered=p;try{n[p]()}catch(t){}k.event.triggered=void 0,c&&(n[o]=c)}return t.result}},dispatch:function(t){t=k.event.fix(t);var e,n,r,i,o,a=[],s=b.call(arguments),u=(k._data(this,"events")||{})[t.type]||[],c=k.event.special[t.type]||{};if(s[0]=t,t.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,t)){for(a=k.event.handlers.call(this,t,u),e=0;(i=a[e++])&&!t.isPropagationStopped();)for(t.currentTarget=i.elem,o=0;(r=i.handlers[o++])&&!t.isImmediatePropagationStopped();)t.namespace_re&&!t.namespace_re.test(r.namespace)||(t.handleObj=r,t.data=r.data,void 0!==(n=((k.event.special[r.origType]||{}).handle||r.handler).apply(i.elem,s))&&!1===(t.result=n)&&(t.preventDefault(),t.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,t),t.result}},handlers:function(t,e){var n,r,i,o,a=[],s=e.delegateCount,u=t.target;if(s&&u.nodeType&&(!t.button||"click"!==t.type))for(;u!=this;u=u.parentNode||this)if(1===u.nodeType&&(!0!==u.disabled||"click"!==t.type)){for(i=[],o=0;o=0:k.find(n,this,null,[u]).length),i[n]&&i.push(r);i.length&&a.push({elem:u,handlers:i})}return s0?4:0,i=t>=200&&t<300||304===t,n&&(w=h(p,E,n)),w=d(p,w,E,i),i?(p.ifModified&&(_=E.getResponseHeader("Last-Modified"),_&&(k.lastModified[o]=_),(_=E.getResponseHeader("etag"))&&(k.etag[o]=_)),204===t||"HEAD"===p.type?T="nocontent":304===t?T="notmodified":(T=w.state,l=w.data,f=w.error,i=!f)):(f=T,!t&&T||(T="error",t<0&&(t=0))),E.status=t,E.statusText=(e||T)+"",i?v.resolveWith(y,[l,T,E]):v.rejectWith(y,[E,T,f]),E.statusCode(b),b=void 0,u&&g.trigger(i?"ajaxSuccess":"ajaxError",[E,p,i?l:f]),m.fireWith(y,[E,T]),u&&(g.trigger("ajaxComplete",[E,p]),--k.active||k.event.trigger("ajaxStop")))}"object"==typeof t&&(e=t,t=void 0),e=e||{};var r,i,o,a,s,u,c,l,p=k.ajaxSetup({},e),y=p.context||p,g=p.context&&(y.nodeType||y.jquery)?k(y):k.event,v=k.Deferred(),m=k.Callbacks("once memory"),b=p.statusCode||{},w={},_={},x=0,T="canceled",E={readyState:0,getResponseHeader:function(t){var e;if(2===x){if(!l)for(l={};e=tt.exec(a);)l[e[1].toLowerCase()]=e[2];e=l[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===x?a:null},setRequestHeader:function(t,e){var n=t.toLowerCase();return x||(t=_[n]=_[n]||t,w[t]=e),this},overrideMimeType:function(t){return x||(p.mimeType=t),this},statusCode:function(t){var e;if(t)if(x<2)for(e in t)b[e]=[b[e],t[e]];else E.always(t[E.status]);return this},abort:function(t){var e=t||T;return c&&c.abort(e),n(0,e),this}};if(v.promise(E).complete=m.add,E.success=E.done,E.error=E.fail,p.url=((t||p.url||Q)+"").replace(J,"").replace(rt,$[1]+"//"),p.type=e.method||e.type||p.method||p.type,p.dataTypes=k.trim(p.dataType||"*").toLowerCase().match(B)||[""],null==p.crossDomain&&(r=it.exec(p.url.toLowerCase()),p.crossDomain=!(!r||r[1]===$[1]&&r[2]===$[2]&&(r[3]||("http:"===r[1]?"80":"443"))===($[3]||("http:"===$[1]?"80":"443")))),p.data&&p.processData&&"string"!=typeof p.data&&(p.data=k.param(p.data,p.traditional)),f(ot,p,e,E),2===x)return E;u=p.global,u&&0==k.active++&&k.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!nt.test(p.type),o=p.url,p.hasContent||(p.data&&(o=p.url+=(V.test(o)?"&":"?")+p.data,delete p.data),!1===p.cache&&(p.url=Z.test(o)?o.replace(Z,"$1_="+Y++):o+(V.test(o)?"&":"?")+"_="+Y++)),p.ifModified&&(k.lastModified[o]&&E.setRequestHeader("If-Modified-Since",k.lastModified[o]),k.etag[o]&&E.setRequestHeader("If-None-Match",k.etag[o])),(p.data&&p.hasContent&&!1!==p.contentType||e.contentType)&&E.setRequestHeader("Content-Type",p.contentType);for(i in p.headers)E.setRequestHeader(i,p.headers[i]);if(p.beforeSend&&(!1===p.beforeSend.call(y,E,p)||2===x))return E.abort();T="abort";for(i in{success:1,error:1,complete:1})E[i](p[i]);if(c=f(at,p,e,E)){E.readyState=1,u&&g.trigger("ajaxSend",[E,p]),p.async&&p.timeout>0&&(s=setTimeout(function(){E.abort("timeout")},p.timeout));try{x=1,c.send(w,n)}catch(t){if(!(x<2))throw t;n(-1,t)}}else n(-1,"No Transport");return E},getJSON:function(t,e,n){return k.get(t,e,n,"json")},getScript:function(t,e){return k.get(t,void 0,e,"script")}}),k.each(["get","post"],function(t,e){k[e]=function(t,n,r,i){return k.isFunction(n)&&(i=i||r,r=n,n=void 0),k.ajax({url:t,type:e,dataType:i,data:n,success:r})}}),k.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){k.fn[e]=function(t){return this.on(e,t)}}),k._evalUrl=function(t){return k.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})};var ut=/%20/g,ct=/\[\]$/,lt=/\r?\n/g,ft=/^(?:submit|button|image|reset|file)$/i,pt=/^(?:input|select|textarea|keygen)/i;k.param=function(t,e){var n,r=[],i=function(t,e){e=k.isFunction(e)?e():null==e?"":e,r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(void 0===e&&(e=k.ajaxSettings&&k.ajaxSettings.traditional),k.isArray(t)||t.jquery&&!k.isPlainObject(t))k.each(t,function(){i(this.name,this.value)});else for(n in t)y(n,t[n],e,i);return r.join("&").replace(ut,"+")},k.fn.extend({serialize:function(){return k.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=k.prop(this,"elements");return t?k.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!k(this).is(":disabled")&&pt.test(this.nodeName)&&!ft.test(t)&&(this.checked||!rcheckableType.test(t))}).map(function(t,e){var n=k(this).val();return null==n?null:k.isArray(n)?k.map(n,function(t){return{name:e.name,value:t.replace(lt,"\r\n")}}):{name:e.name,value:n.replace(lt,"\r\n")}}).get()}}),k.ajaxSettings.xhr=void 0!==window.ActiveXObject?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&g()||v()}:g;var ht=0,dt={},yt=k.ajaxSettings.xhr();window.ActiveXObject&&k(window).on("unload",function(){for(var t in dt)dt[t](void 0,!0)}),C.cors=!!yt&&"withCredentials"in yt,yt=C.ajax=!!yt,yt&&k.ajaxTransport(function(t){if(!t.crossDomain||C.cors){var e;return{send:function(n,r){var i,o=t.xhr(),a=++ht;if(o.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(i in t.xhrFields)o[i]=t.xhrFields[i];t.mimeType&&o.overrideMimeType&&o.overrideMimeType(t.mimeType),t.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest");for(i in n)void 0!==n[i]&&o.setRequestHeader(i,n[i]+"");o.upload&&t.progress&&(o.upload.onprogress=t.progress),o.send(t.hasContent&&(t.body||t.data)||null),e=function(n,i){var s,u,c;if(e&&(i||4===o.readyState))if(delete dt[a],e=void 0,o.onreadystatechange=k.noop,i)4!==o.readyState&&o.abort();else{c={},s=o.status,"string"==typeof o.responseText&&(c.text=o.responseText);try{u=o.statusText}catch(t){u=""}s||!t.isLocal||t.crossDomain?1223===s&&(s=204):s=c.text?200:404}c&&r(s,u,c,o.getAllResponseHeaders())},t.async?4===o.readyState?setTimeout(e):o.onreadystatechange=dt[a]=e:e()},abort:function(){e&&e(void 0,!0)}}}}),k.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(t){return k.globalEval(t),t}}}),k.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET",t.global=!1)}),k.ajaxTransport("script",function(t){if(t.crossDomain){var e,n=D.head||k("head")[0]||D.documentElement;return{send:function(r,i){e=D.createElement("script"),e.async=!0,t.scriptCharset&&(e.charset=t.scriptCharset),e.src=t.url,e.onload=e.onreadystatechange=function(t,n){(n||!e.readyState||/loaded|complete/.test(e.readyState))&&(e.onload=e.onreadystatechange=null,e.parentNode&&e.parentNode.removeChild(e),e=null,n||i(200,"success"))},n.insertBefore(e,n.firstChild)},abort:function(){e&&e.onload(void 0,!0)}}}});var gt=[],vt=/(=)\?(?=&|$)|\?\?/;return k.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=gt.pop()||k.expando+"_"+Y++;return this[t]=!0,t}}),k.ajaxPrefilter("json jsonp",function(t,e,n){var r,i,o,a=!1!==t.jsonp&&(vt.test(t.url)?"url":"string"==typeof t.data&&!(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&vt.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return r=t.jsonpCallback=k.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(vt,"$1"+r):!1!==t.jsonp&&(t.url+=(V.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return o||k.error(r+" was not called"),o[0]},t.dataTypes[0]="json",i=window[r],window[r]=function(){o=arguments},n.always(function(){window[r]=i,t[r]&&(t.jsonpCallback=e.jsonpCallback,gt.push(r)),o&&k.isFunction(i)&&i(o[0]),o=i=void 0}),"script"}),k.parseHTML=function(t,e,n){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(n=e,e=!1),e=e||D;var r=rsingleTag.exec(t),i=!n&&[];return r?[e.createElement(r[1])]:(r=k.buildFragment([t],e,i),i&&i.length&&k(i).remove(),k.merge([],r.childNodes))},k}(),o=function(t,e){if(t=i.extend(!0,{headers:{},qs:{}},t),t.type=t.method,delete t.method,t.headers){var n=t.headers;delete t.headers,t.beforeSend=function(t){for(var e in n)n.hasOwnProperty(e)&&"content-length"!==e.toLowerCase()&&"user-agent"!==e.toLowerCase()&&"origin"!==e.toLowerCase()&&"host"!==e.toLowerCase()&&t.setRequestHeader(e,n[e])}}if(t.onProgress&&(t.progress=t.onProgress,delete t.onProgress),t.qs){var o=r.stringify(t.qs);o&&(t.url+=(-1===t.url.indexOf("?")?"?":"&")+o),delete t.qs}t.json&&(t.data=JSON.stringify(t.json),delete t.json,t.headers["Content-Type"]="application/json"),t.body&&t.body.constructor!==window.File&&t.body.constructor!==window.Blob&&(t.data=t.body,delete t.body);var a=function(t){var e={};return t.getAllResponseHeaders().trim().split("\n").forEach(function(t){if(t){var n=t.indexOf(":"),r=t.substr(0,n).trim().toLowerCase(),i=t.substr(n+1).trim();e[r]=i}}),{statusCode:t.status,statusMessage:t.statusText,headers:e}};return t.success=function(t,n,r){e(null,a(r),t)},t.error=function(t){e(t.statusText,a(t),t.responseText)},t.dataType="text",i.ajax(t)};t.exports=o},function(t,e,n){"use strict";e.decode=e.parse=n(205),e.encode=e.stringify=n(206)},function(t,e,n){"use strict";function r(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,e,n,i){e=e||"&",n=n||"=";var o={};if("string"!=typeof t||0===t.length)return o;var a=/\+/g;t=t.split(e);var s=1e3;i&&"number"==typeof i.maxKeys&&(s=i.maxKeys);var u=t.length;s>0&&u>s&&(u=s);for(var c=0;c=0?(l=d.substr(0,y),f=d.substr(y+1)):(l=d,f=""),p=decodeURIComponent(l),h=decodeURIComponent(f),r(o,p)?Array.isArray(o[p])?o[p].push(h):o[p]=[o[p],h]:o[p]=h}return o}},function(t,e,n){"use strict";var r=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,e,n,i){return e=e||"&",n=n||"=",null===t&&(t=void 0),"object"==typeof t?Object.keys(t).map(function(i){var o=encodeURIComponent(r(i))+n;return Array.isArray(t[i])?t[i].map(function(t){return o+encodeURIComponent(r(t))}).join(e):o+encodeURIComponent(r(t[i]))}).join(e):i?encodeURIComponent(r(i))+n+encodeURIComponent(r(t)):""}},function(t,e,n){function r(t,e){var n=y.uuid();t.TaskReady&&t.TaskReady(n),this._addTask(n,"_sliceUploadFile",t,e)}function i(t,e){var n,r=new d,i=t.TaskId,a=t.Bucket,s=t.Region,c=t.Key,f=t.Body,p=t.SliceSize||this.options.ChunkSize,h=t.AsyncLimit,y=t.StorageClass||"Standard",g=this,v=t.onProgress,m=t.onHashProgress;y=null,r.all("error",function(t){if(g._isRunningTask(i))return e(t)}),r.all("upload_complete",function(t){e(null,t)}),r.all("upload_slice_complete",function(t){l.call(g,{Bucket:a,Region:s,Key:c,UploadId:t.UploadId,SliceList:t.SliceList},function(t,e){if(g._isRunningTask(i))return t?r.emit("error",t):void r.emit("upload_complete",e)})}),r.all("get_upload_data_finish",function(t){u.call(g,{TaskId:i,Bucket:a,Region:s,Key:c,Body:f,FileSize:n,SliceSize:p,AsyncLimit:h,UploadData:t,onProgress:v},function(t,e){if(g._isRunningTask(i))return t?r.emit("error",t):void r.emit("upload_slice_complete",e)})}),r.all("get_file_size_finish",function(){t.UploadData.UploadId?r.emit("get_upload_data_finish",t.UploadData):o.call(g,{TaskId:i,Bucket:a,Region:s,Key:c,StorageClass:y,Body:f,FileSize:n,SliceSize:p,onHashProgress:m,CacheControl:t.CacheControl,ContentDisposition:t.ContentDisposition,ContentEncoding:t.ContentEncoding,ContentType:t.ContentType,ACL:t.ACL,GrantRead:t.GrantRead,GrantWrite:t.GrantWrite,GrantFullControl:t.GrantFullControl},function(e,n){if(g._isRunningTask(i)){if(e)return r.emit("error",e);t.UploadData.UploadId=n.UploadId,t.UploadData.PartList=n.PartList,r.emit("get_upload_data_finish",t.UploadData)}})}),n=f.size||t.ContentLength,Math.ceil(n/p),r.emit("get_file_size_finish")}function o(t,e){var n=t.TaskId,r=t.Bucket,i=t.Region,o=t.Key,a=t.StorageClass,u=this,c={},l=t.FileSize,f=t.SliceSize,p=Math.ceil(l/f),g=0,v=0,m=0,b=0,w=0,_=function(e){var r=function(){if(u._isRunningTask(n)){m=0;var e=Date.now(),r=parseInt((v-w)/((e-b)/1e3)*100)/100||0,i=parseInt(g/p*100)/100||0;if(b=e,w=v,t.onHashProgress&&"function"==typeof t.onHashProgress)try{t.onHashProgress({loaded:v,total:l,speed:r,percent:i})}catch(t){}}};if(e)m&&(clearTimeout(m),m=0,r());else{if(m)return;m=setTimeout(r,u.options.ProgressInterval||100)}},x=function(e,n){if(c[e])return c[e];var r=f*(e-1),i=Math.min(r+f,l),o=i-r,a=fs.createReadStream(t.FilePath,{start:r,end:i-1});y.getFileMd5(a,function(t,r){if(t)return n(t);var i='"'+r+'"';c[e]=i,g+=1,v+=o,n(t,{PartNumber:e,ETag:i,Size:o}),_()})},T=function(t,e){var n=t.length;if(0===n)return e(null,!0);if(n>p)return e(null,!1);if(n>1){if(Math.max(t[0].Size,t[1].Size)!==f)return e(null,!1)}var r=function(i){if(i=g?u%l||l:l),!t.Uploaded}),b=function(){var t,e=Date.now(),i=v,o=function(){if(n._isRunningTask(r)&&(t=0,d&&"function"==typeof d)){var o=Date.now(),a=parseInt((v-i)/((o-e)/1e3)*100)/100||0,s=parseInt(v/u*100)/100||0;e=o,i=v;try{d({loaded:v,total:u,speed:a,percent:s})}catch(t){}}};return function(e){if(e)clearTimeout(t),o();else{if(t)return;t=setTimeout(o,n.options.ProgressInterval||100)}}}();h.mapLimit(m,f,function(t,e){if(n._isRunningTask(r)){var f=t.PartNumber,h=(t.ETag,Math.min(u,t.PartNumber*l)-(t.PartNumber-1)*l),d=0;c.call(n,{TaskId:r,Bucket:i,Region:o,Key:a,SliceSize:l,FileSize:u,PartNumber:f,Body:p,UploadData:s,onProgress:function(t){v+=t.loaded-d,d=t.loaded,b()}},function(i,o){n._isRunningTask(r)&&(i?v-=d:(v+=h-d,t.ETag=o.ETag),b(!0),e(i||null,o))})}},function(t,i){if(n._isRunningTask(r))return t?e(t):void e(null,{datas:i,UploadId:s.UploadId,SliceList:s.PartList})})}function c(t,e){var n=t.TaskId,r=t.Bucket,i=t.Region,o=t.Key,a=t.FileSize,s=t.Body,u=1*t.PartNumber,c=t.SliceSize,l=t.UploadData,f=this,p=c*(u-1),d=c,g=p+c;g>a&&(g=a,d=g-p);var v=y.fileSlice.call(s,p,g),m=l.PartList[u-1],b=m.ETag;h.retry(3,function(e){f._isRunningTask(n)&&f.multipartUpload({TaskId:n,Bucket:r,Region:i,Key:o,ContentLength:d,ContentSha1:b,PartNumber:u,UploadId:l.UploadId,Body:v,onProgress:t.onProgress},function(t,r){if(f._isRunningTask(n))return t?e(t):(m.Uploaded=!0,e(null,r))})},function(t,r){if(f._isRunningTask(n))return e(t,r)})}function l(t,e){var n=t.Bucket,r=t.Region,i=t.Key,o=t.UploadId,a=t.SliceList,s=this,u=a.map(function(t){return{PartNumber:t.PartNumber,ETag:t.ETag}});s.multipartComplete({Bucket:n,Region:r,Key:i,UploadId:o,Parts:u},function(t,n){if(t)return e(t);e(null,n)})}function f(t,e){var n=t.Bucket,r=t.Region,i=t.Key,o=t.UploadId,s=t.Level||"task",u=t.AsyncLimit,c=this,l=new d;if(l.all("error",function(t){return e(t)}),l.all("get_abort_array",function(t){p.call(c,{Bucket:n,Region:r,Key:i,AsyncLimit:u,AbortArray:t},function(t,n){if(t)return e(t);e(null,n)})}),"bucket"===s)a.call(c,{Bucket:n,Region:r},function(t,n){if(t)return e(t);l.emit("get_abort_array",n.UploadList||[])});else if("file"===s){if(!i)return e({error:"abort_upload_task_no_key"});a.call(c,{Bucket:n,Region:r,Key:i},function(t,n){if(t)return e(t);l.emit("get_abort_array",n.UploadList||[])})}else{if("task"!==s)return e({error:"abort_unknown_level"});if(!o)return e({error:"abort_upload_task_no_id"});if(!i)return e({error:"abort_upload_task_no_key"});l.emit("get_abort_array",[{Key:i,UploadId:o}])}}function p(t,e){var n=t.Bucket,r=t.Region,i=t.Key,o=t.AbortArray,a=t.AsyncLimit||1,s=this;h.mapLimit(o,a,function(t,e){if(i&&i!=t.Key)return e(null,{KeyNotMatch:!0});var o=t.UploadId||t.UploadID;s.multipartAbort({Bucket:n,Region:r,Key:t.Key,UploadId:o},function(i,a){var s={Bucket:n,Region:r,Key:t.Key,UploadId:o};return i?e(null,{error:i,task:s}):e(null,{error:!1,task:s})})},function(t,n){if(t)return e(t);for(var r=[],i=[],o=0,a=n.length;o-1&&t%1==0&&t<=ke}function w(t){return null!=t&&b(t.length)&&!m(t)}function _(){}function x(t){return function(){if(null!==t){var e=t;t=null,e.apply(this,arguments)}}}function T(t,e){for(var n=-1,r=Array(t);++n-1&&t%1==0&&ti?0:i+e),n=n>i?i:n,n<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r=r?t:tt(t,e,n)}function nt(t,e){for(var n=t.length;n--&&$(e,t[n],0)>-1;);return n}function rt(t,e){for(var n=-1,r=t.length;++n-1;);return n}function it(t){return t.split("")}function ot(t){return _n.test(t)}function at(t){return t.match(Rn)||[]}function st(t){return ot(t)?at(t):it(t)}function ut(t){return null==t?"":Z(t)}function ct(t,e,n){if((t=ut(t))&&(n||void 0===e))return t.replace(jn,"");if(!t||!(e=Z(e)))return t;var r=st(t),i=st(e);return et(r,rt(r,i),nt(r,i)+1).join("")}function lt(t){return t=t.toString().replace(Ln,""),t=t.match(On)[2].replace(" ",""),t=t?t.split(Pn):[],t=t.map(function(t){return ct(t.replace(Dn,""))})}function ft(t,e){var n={};W(t,function(t,e){function r(e,n){var r=Q(i,function(t){return e[t]});r.push(n),h(t).apply(null,r)}var i,o=p(t),a=!o&&1===t.length||o&&0===t.length;if(Ne(t))i=t.slice(0,-1),t=t[t.length-1],n[e]=i.concat(i.length>0?r:t);else if(a)n[e]=t;else{if(i=lt(t),0===t.length&&!o&&0===i.length)throw new Error("autoInject task functions require explicit parameters.");o||i.pop(),n[e]=i.concat(r)}}),gn(n,e)}function pt(){this.head=this.tail=null,this.length=0}function ht(t,e){t.length=1,t.head=t.tail=e}function dt(t,e,n){function r(t,e,n){if(null!=n&&"function"!=typeof n)throw new Error("task callback must be a function");if(c.started=!0,Ne(t)||(t=[t]),0===t.length&&c.idle())return ce(function(){c.drain()});for(var r=0,i=t.length;r=0&&s.splice(o,1),i.callback.apply(i,arguments),null!=e&&c.error(e,i.data)}a<=c.concurrency-c.buffer&&c.unsaturated(),c.idle()&&c.drain(),c.process()}}if(null==e)e=1;else if(0===e)throw new Error("Concurrency must not be zero");var o=h(t),a=0,s=[],u=!1,c={_tasks:new pt,concurrency:e,payload:n,saturated:_,unsaturated:_,buffer:e/4,empty:_,drain:_,error:_,started:!1,paused:!1,push:function(t,e){r(t,!1,e)},kill:function(){c.drain=_,c._tasks.empty()},unshift:function(t,e){r(t,!0,e)},remove:function(t){c._tasks.remove(t)},process:function(){if(!u){for(u=!0;!c.paused&&a2&&(i=o(arguments,1)),r[e]=i,n(t)})},function(t){n(t,r)})}function Ft(t,e){Ut(un,t,e)}function zt(t,e,n){Ut(M(e),t,n)}function qt(t,e){if(e=x(e||_),!Ne(t))return e(new TypeError("First argument to race must be an array of functions"));if(!t.length)return e();for(var n=0,r=t.length;nr?1:0}var i=h(e);cn(t,function(t,e){i(t,function(n,r){if(n)return e(n);e(null,{value:t,criteria:r})})},function(t,e){if(t)return n(t);n(null,Q(e.sort(r),jt("value")))})}function Qt(t,e,n){var r=h(t);return ae(function(i,o){function a(){var e=t.name||"anonymous",r=new Error('Callback function "'+e+'" timed out.');r.code="ETIMEDOUT",n&&(r.info=n),u=!0,o(r)}var s,u=!1;i.push(function(){u||(o.apply(null,arguments),clearTimeout(s))}),s=setTimeout(a,e),r.apply(null,i)})}function Jt(t,e,n,r){for(var i=-1,o=mr(vr((e-t)/(n||1)),0),a=Array(o);o--;)a[r?o:++i]=t,t+=n;return a}function Zt(t,e,n,r){var i=h(n);fn(Jt(0,t,1),e,i,r)}function te(t,e,n,r){arguments.length<=3&&(r=n,n=e,e=Ne(t)?[]:{}),r=x(r||_);var i=h(n);un(t,function(t,n,r){i(e,t,n,r)},function(t){r(t,e)})}function ee(t,e){var n,r=null;e=e||_,Vn(t,function(t,e){h(t)(function(t,i){n=arguments.length>2?o(arguments,1):i,r=t,e(!t)})},function(){e(r,n)})}function ne(t){return function(){return(t.unmemoized||t).apply(null,arguments)}}function re(t,e,n){n=N(n||_);var r=h(e);if(!t())return n(null);var i=function(e){if(e)return n(e);if(t())return r(i);var a=o(arguments,1);n.apply(null,[null].concat(a))};r(i)}function ie(t,e,n){re(function(){return!t.apply(this,arguments)},e,n)}var oe,ae=function(t){return function(){var e=o(arguments),n=e.pop();t.call(this,e,n)}},se="function"==typeof t&&t,ue="object"==typeof n&&"function"==typeof n.nextTick;oe=se?t:ue?n.nextTick:s;var ce=u(oe),le="function"==typeof Symbol,fe="object"==typeof r&&r&&r.Object===Object&&r,pe="object"==typeof self&&self&&self.Object===Object&&self,he=fe||pe||Function("return this")(),de=he.Symbol,ye=Object.prototype,ge=ye.hasOwnProperty,ve=ye.toString,me=de?de.toStringTag:void 0,be=Object.prototype,we=be.toString,_e="[object Null]",xe="[object Undefined]",Te=de?de.toStringTag:void 0,Ee="[object AsyncFunction]",Ae="[object Function]",Ce="[object GeneratorFunction]",Se="[object Proxy]",ke=9007199254740991,Ie={},Re="function"==typeof Symbol&&Symbol.iterator,je=function(t){return Re&&t[Re]&&t[Re]()},Oe="[object Arguments]",Pe=Object.prototype,De=Pe.hasOwnProperty,Le=Pe.propertyIsEnumerable,Be=A(function(){return arguments}())?A:function(t){return E(t)&&De.call(t,"callee")&&!Le.call(t,"callee")},Ne=Array.isArray,Me="object"==typeof e&&e&&!e.nodeType&&e,Ue=Me&&"object"==typeof i&&i&&!i.nodeType&&i,Fe=Ue&&Ue.exports===Me,ze=Fe?he.Buffer:void 0,qe=ze?ze.isBuffer:void 0,Ke=qe||C,Ge=9007199254740991,He=/^(?:0|[1-9]\d*)$/,We={};We["[object Float32Array]"]=We["[object Float64Array]"]=We["[object Int8Array]"]=We["[object Int16Array]"]=We["[object Int32Array]"]=We["[object Uint8Array]"]=We["[object Uint8ClampedArray]"]=We["[object Uint16Array]"]=We["[object Uint32Array]"]=!0,We["[object Arguments]"]=We["[object Array]"]=We["[object ArrayBuffer]"]=We["[object Boolean]"]=We["[object DataView]"]=We["[object Date]"]=We["[object Error]"]=We["[object Function]"]=We["[object Map]"]=We["[object Number]"]=We["[object Object]"]=We["[object RegExp]"]=We["[object Set]"]=We["[object String]"]=We["[object WeakMap]"]=!1;var Ye="object"==typeof e&&e&&!e.nodeType&&e,Ve=Ye&&"object"==typeof i&&i&&!i.nodeType&&i,Xe=Ve&&Ve.exports===Ye,$e=Xe&&fe.process,Qe=function(){try{return $e&&$e.binding("util")}catch(t){}}(),Je=Qe&&Qe.isTypedArray,Ze=Je?function(t){return function(e){return t(e)}}(Je):k,tn=Object.prototype,en=tn.hasOwnProperty,nn=Object.prototype,rn=function(t,e){return function(n){return t(e(n))}}(Object.keys,Object),on=Object.prototype,an=on.hasOwnProperty,sn=F(U,1/0),un=function(t,e,n){(w(t)?z:sn)(t,h(e),n)},cn=q(K),ln=d(cn),fn=G(K),pn=F(fn,1),hn=d(pn),dn=function(t){var e=o(arguments,1);return function(){var n=o(arguments);return t.apply(null,e.concat(n))}},yn=function(t){return function(e,n,r){for(var i=-1,o=Object(e),a=r(e),s=a.length;s--;){var u=a[t?s:++i];if(!1===n(o[u],u,o))break}return e}}(),gn=function(t,e,n){function r(t,e){v.push(function(){u(t,e)})}function i(){if(0===v.length&&0===d)return n(null,p);for(;v.length&&d2&&(r=o(arguments,1)),e){var i={};W(p,function(t,e){i[e]=t}),i[t]=r,y=!0,g=Object.create(null),n(e,i)}else p[t]=r,s(t)});d++;var i=h(e[e.length-1]);e.length>1?i(p,r):i(r)}}function c(e){var n=[];return W(t,function(t,r){Ne(t)&&$(t,e,0)>=0&&n.push(r)}),n}"function"==typeof e&&(n=e,e=null),n=x(n||_);var l=O(t),f=l.length;if(!f)return n(null);e||(e=f);var p={},d=0,y=!1,g=Object.create(null),v=[],m=[],b={};W(t,function(e,n){if(!Ne(e))return r(n,[e]),void m.push(n);var i=e.slice(0,e.length-1),o=i.length;if(0===o)return r(n,e),void m.push(n);b[n]=o,H(i,function(s){if(!t[s])throw new Error("async.auto task `"+n+"` has a non-existent dependency `"+s+"` in "+i.join(", "));a(s,function(){0===--o&&r(n,e)})})}),function(){for(var t,e=0;m.length;)t=m.pop(),e++,H(c(t),function(t){0==--b[t]&&m.push(t)});if(e!==f)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}(),i()},vn="[object Symbol]",mn=1/0,bn=de?de.prototype:void 0,wn=bn?bn.toString:void 0,_n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),xn="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",Tn="\\ud83c[\\udffb-\\udfff]",En="(?:\\ud83c[\\udde6-\\uddff]){2}",An="[\\ud800-\\udbff][\\udc00-\\udfff]",Cn="(?:[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]|\\ud83c[\\udffb-\\udfff])?",Sn="(?:\\u200d(?:"+["[^\\ud800-\\udfff]",En,An].join("|")+")[\\ufe0e\\ufe0f]?"+Cn+")*",kn="[\\ufe0e\\ufe0f]?"+Cn+Sn,In="(?:"+["[^\\ud800-\\udfff]"+xn+"?",xn,En,An,"[\\ud800-\\udfff]"].join("|")+")",Rn=RegExp(Tn+"(?="+Tn+")|"+In+kn,"g"),jn=/^\s+|\s+$/g,On=/^(?:async\s+)?(function)?\s*[^\(]*\(\s*([^\)]*)\)/m,Pn=/,/,Dn=/(=.+)?(\s*)$/,Ln=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm;pt.prototype.removeLink=function(t){return t.prev?t.prev.next=t.next:this.head=t.next,t.next?t.next.prev=t.prev:this.tail=t.prev,t.prev=t.next=null,this.length-=1,t},pt.prototype.empty=function(){for(;this.head;)this.shift();return this},pt.prototype.insertAfter=function(t,e){e.prev=t,e.next=t.next,t.next?t.next.prev=e:this.tail=e,t.next=e,this.length+=1},pt.prototype.insertBefore=function(t,e){e.prev=t.prev,e.next=t,t.prev?t.prev.next=e:this.head=e,t.prev=e,this.length+=1},pt.prototype.unshift=function(t){this.head?this.insertBefore(this.head,t):ht(this,t)},pt.prototype.push=function(t){this.tail?this.insertAfter(this.tail,t):ht(this,t)},pt.prototype.shift=function(){return this.head&&this.removeLink(this.head)},pt.prototype.pop=function(){return this.tail&&this.removeLink(this.tail)},pt.prototype.toArray=function(){for(var t=Array(this.length),e=this.head,n=0;n=i.priority;)i=i.next;for(var o=0,a=t.length;o1114111||e(u)!==u)throw RangeError("Invalid code point: "+u);u<=65535?i.push(u):(u-=65536,n=55296+(u>>10),r=u%1024+56320,i.push(n,r)),(o+1===a||i.length>16384)&&(s+=t.apply(null,i),i.length=0)}return s};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:n,configurable:!0,writable:!0}):String.fromCodePoint=n}()}(e)}).call(e,n(7).Buffer)},function(t,e,n){function r(){i.call(this)}t.exports=r;var i=n(17).EventEmitter;n(8)(r,i),r.Readable=n(28),r.Writable=n(85),r.Duplex=n(86),r.Transform=n(87),r.PassThrough=n(88),r.Stream=r,r.prototype.pipe=function(t,e){function n(e){t.writable&&!1===t.write(e)&&c.pause&&c.pause()}function r(){c.readable&&c.resume&&c.resume()}function o(){l||(l=!0,t.end())}function a(){l||(l=!0,"function"==typeof t.destroy&&t.destroy())}function s(t){if(u(),0===i.listenerCount(this,"error"))throw t}function u(){c.removeListener("data",n),t.removeListener("drain",r),c.removeListener("end",o),c.removeListener("close",a),c.removeListener("error",s),t.removeListener("error",s),c.removeListener("end",u),c.removeListener("close",u),t.removeListener("close",u)}var c=this;c.on("data",n),t.on("drain",r),t._isStdio||e&&!1===e.end||(c.on("end",o),c.on("close",a));var l=!1;return c.on("error",s),t.on("error",s),c.on("end",u),c.on("close",u),t.on("close",u),t.emit("pipe",c),t}},function(t,e){},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e,n){t.copy(e,n)}var o=n(29).Buffer;t.exports=function(){function t(){r(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},t.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},t.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,n=""+e.data;e=e.next;)n+=t+e.data;return n},t.prototype.concat=function(t){if(0===this.length)return o.alloc(0);if(1===this.length)return this.head.data;for(var e=o.allocUnsafe(t>>>0),n=this.head,r=0;n;)i(n.data,e,r),r+=n.data.length,n=n.next;return e},t}()},function(t,e,n){(function(t,e){!function(t,n){"use strict";function r(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(a=t.length>3&&"function"==typeof a?(i--,a):void 0,s&&o(n[0],n[1],s)&&(a=i<3?void 0:a,i=1),e=Object(e);++r0){if(++e>=r)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var r=800,i=16,o=Date.now;t.exports=n},function(t,e,n){function r(t,e){var n=a(t),r=!n&&o(t),l=!n&&!r&&s(t),p=!n&&!r&&!l&&c(t),h=n||r||l||p,d=h?i(t.length,String):[],y=d.length;for(var g in t)!e&&!f.call(t,g)||h&&("length"==g||l&&("offset"==g||"parent"==g)||p&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||u(g,y))||d.push(g);return d}var i=n(106),o=n(36),a=n(2),s=n(37),u=n(34),c=n(39),l=Object.prototype,f=l.hasOwnProperty;t.exports=r},function(t,e){function n(t,e){for(var n=-1,r=Array(t);++n/))throw new Error("Invalid CDATA text: "+t);return this.assertLegalChar(t)},t.prototype.comment=function(t){if(t=""+t||"",t.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+t);return this.assertLegalChar(t)},t.prototype.raw=function(t){return""+t||""},t.prototype.attName=function(t){return""+t||""},t.prototype.attValue=function(t){return t=""+t||"",this.attEscape(t)},t.prototype.insTarget=function(t){return""+t||""},t.prototype.insValue=function(t){if(t=""+t||"",t.match(/\?>/))throw new Error("Invalid processing instruction value: "+t);return t},t.prototype.xmlVersion=function(t){if(t=""+t||"",!t.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+t);return t},t.prototype.xmlEncoding=function(t){if(t=""+t||"",!t.match(/^[A-Za-z](?:[A-Za-z0-9._-]|-)*$/))throw new Error("Invalid encoding: "+t);return t},t.prototype.xmlStandalone=function(t){return t?"yes":"no"},t.prototype.dtdPubID=function(t){return""+t||""},t.prototype.dtdSysID=function(t){return""+t||""},t.prototype.dtdElementValue=function(t){return""+t||""},t.prototype.dtdAttType=function(t){return""+t||""},t.prototype.dtdAttDefault=function(t){return null!=t?""+t||"":t},t.prototype.dtdEntityValue=function(t){return""+t||""},t.prototype.dtdNData=function(t){return""+t||""},t.prototype.convertAttKey="@",t.prototype.convertPIKey="?",t.prototype.convertTextKey="#text",t.prototype.convertCDataKey="#cdata",t.prototype.convertCommentKey="#comment",t.prototype.convertRawKey="#raw",t.prototype.assertLegalChar=function(t){var e,n;if(e=this.allowSurrogateChars?/[\u0000-\u0008\u000B-\u000C\u000E-\u001F\uFFFE-\uFFFF]/:/[\u0000-\u0008\u000B-\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE-\uFFFF]/,n=t.match(e))throw new Error("Invalid character ("+n+") in string: "+t+" at index "+n.index);return t},t.prototype.elEscape=function(t){var e;return e=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,t.replace(e,"&").replace(//g,">").replace(/\r/g," ")},t.prototype.attEscape=function(t){var e;return e=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,t.replace(e,"&").replace(/-1}var i=n(24);t.exports=r},function(t,e,n){function r(t,e){var n=this.__data__,r=i(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}var i=n(24);t.exports=r},function(t,e,n){function r(){this.__data__=new i,this.size=0}var i=n(23);t.exports=r},function(t,e){function n(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}t.exports=n},function(t,e){function n(t){return this.__data__.get(t)}t.exports=n},function(t,e){function n(t){return this.__data__.has(t)}t.exports=n},function(t,e,n){function r(t,e){var n=this.__data__;if(n instanceof i){var r=n.__data__;if(!o||r.length",o&&(a+=r),a},t}()}).call(this)},function(t,e,n){(function(){n(0),t.exports=function(){function t(t,e,n){if(this.stringify=t.stringify,null==e)throw new Error("Missing notation name");if(!n.pubID&&!n.sysID)throw new Error("Public or system identifiers are required for an external entity");this.name=this.stringify.eleName(e),null!=n.pubID&&(this.pubID=this.stringify.dtdPubID(n.pubID)),null!=n.sysID&&(this.sysID=this.stringify.dtdSysID(n.sysID))}return t.prototype.toString=function(t,e){var n,r,i,o,a,s,u,c,l;return o=(null!=t?t.pretty:void 0)||!1,n=null!=(s=null!=t?t.indent:void 0)?s:" ",i=null!=(u=null!=t?t.offset:void 0)?u:0,r=null!=(c=null!=t?t.newline:void 0)?c:"\n",e||(e=0),l=new Array(e+i+1).join(n),a="",o&&(a+=l),a+="",o&&(a+=r),a},t}()}).call(this)},function(t,e,n){(function(){var e,r,i=function(t,e){function n(){this.constructor=t}for(var r in e)o.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},o={}.hasOwnProperty;r=n(0),e=n(10),t.exports=function(t){function e(t,n){if(e.__super__.constructor.call(this,t),null==n)throw new Error("Missing raw text");this.value=this.stringify.raw(n)}return i(e,t),e.prototype.clone=function(){return r(e.prototype,this)},e.prototype.toString=function(t,e){var n,r,i,o,a,s,u,c,l;return o=(null!=t?t.pretty:void 0)||!1,n=null!=(s=null!=t?t.indent:void 0)?s:" ",i=null!=(u=null!=t?t.offset:void 0)?u:0,r=null!=(c=null!=t?t.newline:void 0)?c:"\n",e||(e=0),l=new Array(e+i+1).join(n),a="",o&&(a+=l),a+=this.value,o&&(a+=r),a},e}(e)}).call(this)},function(t,e,n){(function(){var e,r,i=function(t,e){function n(){this.constructor=t}for(var r in e)o.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},o={}.hasOwnProperty;r=n(0),e=n(10),t.exports=function(t){function e(t,n){if(e.__super__.constructor.call(this,t),null==n)throw new Error("Missing element text");this.value=this.stringify.eleText(n)}return i(e,t),e.prototype.clone=function(){return r(e.prototype,this)},e.prototype.toString=function(t,e){var n,r,i,o,a,s,u,c,l;return o=(null!=t?t.pretty:void 0)||!1,n=null!=(s=null!=t?t.indent:void 0)?s:" ",i=null!=(u=null!=t?t.offset:void 0)?u:0,r=null!=(c=null!=t?t.newline:void 0)?c:"\n",e||(e=0),l=new Array(e+i+1).join(n),a="",o&&(a+=l),a+=this.value,o&&(a+=r),a},e}(e)}).call(this)},function(t,e){(function(){"use strict";e.stripBOM=function(t){return"\ufeff"===t[0]?t.substring(1):t}}).call(this)},function(t,e){(function(){"use strict";var t;t=new RegExp(/(?!xmlns)^.*:/),e.normalize=function(t){return t.toLowerCase()},e.firstCharLowerCase=function(t){return t.charAt(0).toLowerCase()+t.slice(1)},e.stripPrefix=function(e){return e.replace(t,"")},e.parseNumbers=function(t){return isNaN(t)||(t=t%1==0?parseInt(t,10):parseFloat(t)),t},e.parseBooleans=function(t){return/^(?:true|false)$/i.test(t)&&(t="true"===t.toLowerCase()),t}}).call(this)},function(t,e){var n=function(t){var e={},n=function(t){return!e[t]&&(e[t]=[]),e[t]};t.on=function(t,e){n(t).push(e)},t.off=function(t,e){for(var r=n(t),i=r.length-1;i>=0;i--)e===r[i]&&r.splice(i,1)},t.emit=function(t,e){for(var r=n(t),i=0;i-1&&(a[s]=e[s]);var u=e.Body;if(G.isBrowser&&(u instanceof t.Blob||u instanceof t.File))a["Content-Length"]=u.length;else if(u&&u instanceof r)a["Content-Length"]=u.length;else if(u&&"function"==typeof u.pipe){if(u,u=null,void 0===a["Content-Length"])return void n({error:"lack of param ContentLength"})}else{if(!u||"string"!=typeof u.pipe||!G.isBrowser)return void n({error:"params body format error, Only allow Buffer, Stream, Blob."});a["Content-Length"]=u.length}var c=e.onProgress,l=function(){var t,e=Date.now(),n=0,r=0,o=a["Content-Length"],s=function(){if(t=0,c&&"function"==typeof c){var i=Date.now(),a=parseInt((r-n)/((i-e)/1e3)*100)/100||0,s=parseInt(r/o*100)/100||0;e=i,n=r;try{c({loaded:r,total:o,speed:a,percent:s})}catch(t){}}};return function(e,n){if(e&&e.loaded&&(r=e.loaded,o=e.total),n)clearTimeout(t),s();else{if(t)return;t=setTimeout(s,i.options.ProgressInterval||100)}}}(),f=z.call(this,{method:"PUT",Bucket:e.Bucket,Region:e.Region,AppId:e.AppId,Key:e.Key,headers:a,body:u,onProgress:l},function(t,r){return e.TaskId===o&&i.off("inner-kill-task",p),l(null,!0),t?n(t):r&&r.headers&&r.headers.etag?n(null,{ETag:r.headers.etag,statusCode:r.statusCode,headers:r.headers}):void n(null,r)}),p=function(t){f&&f.abort&&f.abort(),e.TaskId===t.TaskId&&i.off("inner-kill-task",p)};e.TaskId&&this.on("inner-kill-task",p)}function S(t,e){z.call(this,{method:"DELETE",Bucket:t.Bucket,Region:t.Region,AppId:t.AppId,Key:t.Key},function(t,n){if(t){var r=t.statusCode;return r&&204==r?e(null,{statusCode:n.statusCode,headers:n.headers}):r&&404==r?e(null,{BucketNotFound:!0,statusCode:n.statusCode,headers:n.headers}):e(t)}e(null,{statusCode:n.statusCode,headers:n.headers})})}function k(t,e){z.call(this,{method:"GET",Bucket:t.Bucket,Region:t.Region,AppId:t.AppId,Key:t.Key,action:"?acl"},function(t,n){if(t)return e(t);var r=n.AccessControlPolicy.Owner||{},i=n.AccessControlPolicy.AccessControlList.Grant||[];i=G.isArray(i)?i:[i],e(null,{Owner:r,Grants:i,statusCode:n.statusCode,headers:n.headers})})}function I(t,e){var n={};n["x-cos-acl"]=t.ACL,n["x-cos-grant-read"]=t.GrantRead,n["x-cos-grant-write"]=t.GrantWrite,n["x-cos-grant-full-control"]=t.GrantFullControl;var r="";if(t.AccessControlPolicy){var i=G.clone(t.AccessControlPolicy||{}),o=i.Grants||i.Grant;o=G.isArray(o)?o:[o],delete i.Grant,delete i.Grants,i.AccessControlList={Grant:o},r=G.json2xml({AccessControlPolicy:i}),n["Content-MD5"]=G.binaryBase64(G.md5(r)),n["Content-Type"]="application/xml"}z.call(this,{method:"PUT",Bucket:t.Bucket,Region:t.Region,AppId:t.AppId,Key:t.Key,action:"?acl",headers:n,body:r},function(t,n){if(t)return e(t);e(null,{statusCode:n.statusCode,headers:n.headers})})}function R(t,e){var n={};n.Origin=t.Origin,n["Access-Control-Request-Method"]=t.AccessControlRequestMethod,n["Access-Control-Request-Headers"]=t.AccessControlRequestHeaders,z.call(this,{method:"OPTIONS",Bucket:t.Bucket,Region:t.Region,AppId:t.AppId,Key:t.Key,headers:n},function(t,n){if(t)return t.statusCode&&403==t.statusCode?e(null,{OptionsForbidden:!0,statusCode:n.statusCode,headers:n.headers}):e(t);var r=n.headers||{};e(null,{AccessControlAllowOrigin:r["access-control-allow-origin"],AccessControlAllowMethods:r["access-control-allow-methods"],AccessControlAllowHeaders:r["access-control-allow-headers"],AccessControlExposeHeaders:r["access-control-expose-headers"],AccessControlMaxAge:r["access-control-max-age"],statusCode:n.statusCode,headers:n.headers})})}function j(t,e){var n={};n["x-cos-copy-source"]=t.CopySource,n["x-cos-metadata-directive"]=t.MetadataDirective,n["x-cos-copy-source-If-Modified-Since"]=t.CopySourceIfModifiedSince,n["x-cos-copy-source-If-Unmodified-Since"]=t.CopySourceIfUnmodifiedSince,n["x-cos-copy-source-If-Match"]=t.CopySourceIfMatch,n["x-cos-copy-source-If-None-Match"]=t.CopySourceIfNoneMatch,n["x-cos-storage-class"]=t.StorageClass,n["x-cos-acl"]=t.ACL,n["x-cos-grant-read"]=t.GrantRead,n["x-cos-grant-write"]=t.GrantWrite,n["x-cos-grant-full-control"]=t.GrantFullControl,n["Cache-Control"]=t.CacheControl,n["Content-Disposition"]=t.ContentDisposition,n["Content-Encoding"]=t.ContentEncoding,n["Content-Length"]=t.ContentLength,n["Content-Type"]=t.ContentType,n.Expect=t.Expect,n.Expires=t.Expires;for(var r in t)r.indexOf("x-cos-meta-")>-1&&(n[r]=t[r]);z.call(this,{method:"PUT",Bucket:t.Bucket,Region:t.Region,AppId:t.AppId,Key:t.Key,headers:n},function(t,n){if(t)return e(t);var r=G.clone(n.CopyObjectResult);G.extend(r,{statusCode:n.statusCode,headers:n.headers}),e(null,r)})}function O(t,e){var n={};n["Content-Type"]="application/xml";var i=t.Objects||{},o=t.Quiet,a={Delete:{Object:i,Quiet:o||!1}},s=G.json2xml(a);n["Content-MD5"]=G.binaryBase64(G.md5(s)),n["Content-Length"]=r.byteLength(s,"utf8"),z.call(this,{method:"POST",Bucket:t.Bucket,Region:t.Region,AppId:t.AppId,body:s,action:"/?delete",headers:n},function(t,n){if(t)return e(t);var r=n.DeleteResult.Deleted||[],i=n.DeleteResult.Error||[];r=G.isArray(r)?r:[r],i=G.isArray(i)?i:[i];var o=G.clone(n.DeleteResult);G.extend(o,{Error:i,Deleted:r,statusCode:n.statusCode,headers:n.headers}),e(null,o)})}function P(t,e){var n={};n["Cache-Control"]=t.CacheControl,n["Content-Disposition"]=t.ContentDisposition,n["Content-Encoding"]=t.ContentEncoding,n["Content-Type"]=t.ContentType,n.Expires=t.Expires,n["x-cos-acl"]=t.ACL,n["x-cos-grant-read"]=t.GrantRead,n["x-cos-grant-write"]=t.GrantWrite,n["x-cos-grant-full-control"]=t.GrantFullControl,n["x-cos-storage-class"]=t.StorageClass;for(var r in t)r.indexOf("x-cos-meta-")>-1&&(n[r]=t[r]);z.call(this,{method:"POST",Bucket:t.Bucket,Region:t.Region,AppId:t.AppId,Key:t.Key,action:"?uploads",headers:n},function(t,n){return t?e(t):(n=G.clone(n||{}))&&n.InitiateMultipartUploadResult?e(null,G.extend(n.InitiateMultipartUploadResult,{statusCode:n.statusCode,headers:n.headers})):void e(null,n)})}function D(t,e){var n=this,r={};r["Content-Length"]=t.ContentLength,r.Expect=t.Expect;var i=t.PartNumber,o=t.UploadId,a="?partNumber="+i+"&uploadId="+o,s=z.call(this,{method:"PUT",Bucket:t.Bucket,Region:t.Region,AppId:t.AppId,Key:t.Key,action:a,headers:r,body:t.Body||null,onProgress:t.onProgress},function(r,i){if(t.TaskId&&n.off("inner-kill-task",u),r)return e(r);i.headers=i.headers||{},e(null,{ETag:i.headers.etag||"",statusCode:i.statusCode,headers:i.headers})}),u=function(e){s&&s.abort&&s.abort(),t.TaskId===e&&n.off("inner-kill-task",u)};t.TaskId&&this.on("inner-kill-task",u)}function L(t,e){var n={};n["Content-Type"]="application/xml";for(var i=t.UploadId,o="?uploadId="+i,a=t.Parts,s=0,u=a.length;s0&&c>u&&(c=u);for(var l=0;l=0?(f=y.substr(0,g),p=y.substr(g+1)):(f=y,p=""),h=decodeURIComponent(f),d=decodeURIComponent(p),r(a,h)?i(a[h])?a[h].push(d):a[h]=[a[h],d]:a[h]=d}return a};var i=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},function(t,e,n){"use strict";function r(t,e){if(t.map)return t.map(e);for(var n=[],r=0;r0&&e-1 in t))}function e(t){var e=N[t]={};return k.each(t.match(B)||[],function(t,n){e[n]=!0}),e}function n(){D.addEventListener?(D.removeEventListener("DOMContentLoaded",r,!1),window.removeEventListener("load",r,!1)):(D.detachEvent("onreadystatechange",r),window.detachEvent("onload",r))}function r(){(D.addEventListener||"load"===event.type||"complete"===D.readyState)&&(n(),k.ready())}function i(t,e,n){if(void 0===n&&1===t.nodeType){var r="data-"+e.replace(z,"-$1").toLowerCase();if("string"==typeof(n=t.getAttribute(r))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:F.test(n)?k.parseJSON(n):n)}catch(t){}k.data(t,e,n)}else n=void 0}return n}function o(t){var e;for(e in t)if(("data"!==e||!k.isEmptyObject(t[e]))&&"toJSON"!==e)return!1;return!0}function a(t,e,n,r){if(k.acceptData(t)){var i,o,a=k.expando,s=t.nodeType,u=s?k.cache:t,c=s?t[a]:t[a]&&a;if(c&&u[c]&&(r||u[c].data)||void 0!==n||"string"!=typeof e)return c||(c=s?t[a]=m.pop()||k.guid++:a),u[c]||(u[c]=s?{}:{toJSON:k.noop}),"object"!=typeof e&&"function"!=typeof e||(r?u[c]=k.extend(u[c],e):u[c].data=k.extend(u[c].data,e)),o=u[c],r||(o.data||(o.data={}),o=o.data),void 0!==n&&(o[k.camelCase(e)]=n),"string"==typeof e?null==(i=o[e])&&(i=o[k.camelCase(e)]):i=o,i}}function s(t,e,n){if(k.acceptData(t)){var r,i,a=t.nodeType,s=a?k.cache:t,u=a?t[k.expando]:k.expando;if(s[u]){if(e&&(r=n?s[u]:s[u].data)){k.isArray(e)?e=e.concat(k.map(e,k.camelCase)):e in r?e=[e]:(e=k.camelCase(e),e=e in r?[e]:e.split(" ")),i=e.length;for(;i--;)delete r[e[i]];if(n?!o(r):!k.isEmptyObject(r))return}(n||(delete s[u].data,o(s[u])))&&(a?k.cleanData([t],!0):C.deleteExpando||s!=s.window?delete s[u]:s[u]=null)}}}function u(){return!0}function c(){return!1}function l(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var r,i=0,o=e.toLowerCase().match(B)||[];if(k.isFunction(n))for(;r=o[i++];)"+"===r.charAt(0)?(r=r.slice(1)||"*",(t[r]=t[r]||[]).unshift(n)):(t[r]=t[r]||[]).push(n)}}function f(t,e,n,r){function i(s){var u;return o[s]=!0,k.each(t[s]||[],function(t,s){var c=s(e,n,r);return"string"!=typeof c||a||o[c]?a?!(u=c):void 0:(e.dataTypes.unshift(c),i(c),!1)}),u}var o={},a=t===at;return i(e.dataTypes[0])||!o["*"]&&i("*")}function p(t,e){var n,r,i=k.ajaxSettings.flatOptions||{};for(r in e)void 0!==e[r]&&((i[r]?t:n||(n={}))[r]=e[r]);return n&&k.extend(!0,t,n),t}function h(t,e,n){for(var r,i,o,a,s=t.contents,u=t.dataTypes;"*"===u[0];)u.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(a in s)if(s[a]&&s[a].test(i)){u.unshift(a);break}if(u[0]in n)o=u[0];else{for(a in n){if(!u[0]||t.converters[a+" "+u[0]]){o=a;break}r||(r=a)}o=o||r}if(o)return o!==u[0]&&u.unshift(o),n[o]}function d(t,e,n,r){var i,o,a,s,u,c={},l=t.dataTypes.slice();if(l[1])for(a in t.converters)c[a.toLowerCase()]=t.converters[a];for(o=l.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!u&&r&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),u=o,o=l.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=c[u+" "+o]||c["* "+o]))for(i in c)if(s=i.split(" "),s[1]===o&&(a=c[u+" "+s[0]]||c["* "+s[0]])){!0===a?a=c[i]:!0!==c[i]&&(o=s[0],l.unshift(s[1]));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(t){return{state:"parsererror",error:a?t:"No conversion from "+u+" to "+o}}}return{state:"success",data:e}}function y(t,e,n,r){var i;if(k.isArray(e))k.each(e,function(e,i){n||ct.test(t)?r(t,i):y(t+"["+("object"==typeof i?e:"")+"]",i,n,r)});else if(n||"object"!==k.type(e))r(t,e);else for(i in e)y(t+"["+i+"]",e[i],n,r)}function g(){try{return new window.XMLHttpRequest}catch(t){}}function v(){try{return new window.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}var m=[],b=m.slice,w=m.concat,_=m.push,x=m.indexOf,T={},E=T.toString,A=T.hasOwnProperty,C={},S="1.11.1 -css,-css/addGetHookIf,-css/curCSS,-css/defaultDisplay,-css/hiddenVisibleSelectors,-css/support,-css/swap,-css/var/cssExpand,-css/var/isHidden,-css/var/rmargin,-css/var/rnumnonpx,-effects,-effects/Tween,-effects/animatedSelector,-effects/support,-dimensions,-offset,-deprecated,-event-alias,-wrap",k=function(t,e){return new k.fn.init(t,e)},I=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,R=/^-ms-/,j=/-([\da-z])/gi,O=function(t,e){return e.toUpperCase()};k.fn=k.prototype={jquery:S,constructor:k,selector:"",length:0,toArray:function(){return b.call(this)},get:function(t){return null!=t?t<0?this[t+this.length]:this[t]:b.call(this)},pushStack:function(t){var e=k.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t,e){return k.each(this,t,e)},map:function(t){return this.pushStack(k.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return this.pushStack(b.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n=0},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},isPlainObject:function(t){var e;if(!t||"object"!==k.type(t)||t.nodeType||k.isWindow(t))return!1;try{if(t.constructor&&!A.call(t,"constructor")&&!A.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}if(C.ownLast)for(e in t)return A.call(t,e);for(e in t);return void 0===e||A.call(t,e)},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?T[E.call(t)]||"object":typeof t},globalEval:function(t){t&&k.trim(t)&&(window.execScript||function(t){window.eval.call(window,t)})(t)},camelCase:function(t){return t.replace(R,"ms-").replace(j,O)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(e,n,r){var i=0,o=e.length,a=t(e);if(r){if(a)for(;i)[^>]*|#([\w-]*))$/;(k.fn.init=function(t,e){var n,r;if(!t)return this;if("string"==typeof t){if(!(n="<"===t.charAt(0)&&">"===t.charAt(t.length-1)&&t.length>=3?[null,t,null]:L.exec(t))||!n[1]&&e)return!e||e.jquery?(e||P).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof k?e[0]:e,k.merge(this,k.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:D,!0)),rsingleTag.test(n[1])&&k.isPlainObject(e))for(n in e)k.isFunction(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}if((r=D.getElementById(n[2]))&&r.parentNode){if(r.id!==n[2])return P.find(t);this.length=1,this[0]=r}return this.context=D,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):k.isFunction(t)?void 0!==P.ready?P.ready(t):t(k):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),k.makeArray(t,this))}).prototype=k.fn,P=k(D);var B=/\S+/g,N={};k.Callbacks=function(t){t="string"==typeof t?N[t]||e(t):k.extend({},t);var n,r,i,o,a,s,u=[],c=!t.once&&[],l=function(e){for(r=t.memory&&e,i=!0,a=s||0,s=0,o=u.length,n=!0;u&&a-1;)u.splice(r,1),n&&(r<=o&&o--,r<=a&&a--)}),this},has:function(t){return t?k.inArray(t,u)>-1:!(!u||!u.length)},empty:function(){return u=[],o=0,this},disable:function(){return u=c=r=void 0,this},disabled:function(){return!u},lock:function(){return c=void 0,r||f.disable(),this},locked:function(){return!c},fireWith:function(t,e){return!u||i&&!c||(e=e||[],e=[t,e.slice?e.slice():e],n?c.push(e):l(e)),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!i}};return f},k.extend({Deferred:function(t){var e=[["resolve","done",k.Callbacks("once memory"),"resolved"],["reject","fail",k.Callbacks("once memory"),"rejected"],["notify","progress",k.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var t=arguments;return k.Deferred(function(n){k.each(e,function(e,o){var a=k.isFunction(t[e])&&t[e];i[o[1]](function(){var t=a&&a.apply(this,arguments);t&&k.isFunction(t.promise)?t.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[o[0]+"With"](this===r?n.promise():this,a?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?k.extend(t,r):r}},i={};return r.pipe=r.then,k.each(e,function(t,o){var a=o[2],s=o[3];r[o[1]]=a.add,s&&a.add(function(){n=s},e[1^t][2].disable,e[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=a.fireWith}),r.promise(i),t&&t.call(i,i),i},when:function(t){var e,n,r,i=0,o=b.call(arguments),a=o.length,s=1!==a||t&&k.isFunction(t.promise)?a:0,u=1===s?t:k.Deferred(),c=function(t,n,r){return function(i){n[t]=this,r[t]=arguments.length>1?b.call(arguments):i,r===e?u.notifyWith(n,r):--s||u.resolveWith(n,r)}};if(a>1)for(e=new Array(a),n=new Array(a),r=new Array(a);i0||(M.resolveWith(D,[k]),k.fn.triggerHandler&&(k(D).triggerHandler("ready"),k(D).off("ready")))}}}),k.ready.promise=function(t){if(!M)if(M=k.Deferred(),"complete"===D.readyState)setTimeout(k.ready);else if(D.addEventListener)D.addEventListener("DOMContentLoaded",r,!1),window.addEventListener("load",r,!1);else{D.attachEvent("onreadystatechange",r),window.attachEvent("onload",r);var e=!1;try{e=null==window.frameElement&&D.documentElement}catch(t){}e&&e.doScroll&&function t(){if(!k.isReady){try{e.doScroll("left")}catch(e){return setTimeout(t,50)}n(),k.ready()}}()}return M.promise(t)};var U;for(U in k(C))break;C.ownLast="0"!==U,C.inlineBlockNeedsLayout=!1,k(function(){var t,e,n,r;(n=D.getElementsByTagName("body")[0])&&n.style&&(e=D.createElement("div"),r=D.createElement("div"),r.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(r).appendChild(e),void 0!==e.style.zoom&&(e.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",C.inlineBlockNeedsLayout=t=3===e.offsetWidth,t&&(n.style.zoom=1)),n.removeChild(r))}),function(){var t=D.createElement("div");if(null==C.deleteExpando){C.deleteExpando=!0;try{delete t.test}catch(t){C.deleteExpando=!1}}t=null}(),k.acceptData=function(t){var e=k.noData[(t.nodeName+" ").toLowerCase()],n=+t.nodeType||1;return(1===n||9===n)&&(!e||!0!==e&&t.getAttribute("classid")===e)};var F=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,z=/([A-Z])/g;k.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(t){return!!(t=t.nodeType?k.cache[t[k.expando]]:t[k.expando])&&!o(t)},data:function(t,e,n){return a(t,e,n)},removeData:function(t,e){return s(t,e)},_data:function(t,e,n){return a(t,e,n,!0)},_removeData:function(t,e){return s(t,e,!0)}}),k.fn.extend({data:function(t,e){var n,r,o,a=this[0],s=a&&a.attributes;if(void 0===t){if(this.length&&(o=k.data(a),1===a.nodeType&&!k._data(a,"parsedAttrs"))){for(n=s.length;n--;)s[n]&&(r=s[n].name,0===r.indexOf("data-")&&(r=k.camelCase(r.slice(5)),i(a,r,o[r])));k._data(a,"parsedAttrs",!0)}return o}return"object"==typeof t?this.each(function(){k.data(this,t)}):arguments.length>1?this.each(function(){k.data(this,t,e)}):a?i(a,t,k.data(a,t)):void 0},removeData:function(t){return this.each(function(){k.removeData(this,t)})}}),k.extend({queue:function(t,e,n){var r;if(t)return e=(e||"fx")+"queue",r=k._data(t,e),n&&(!r||k.isArray(n)?r=k._data(t,e,k.makeArray(n)):r.push(n)),r||[]},dequeue:function(t,e){e=e||"fx";var n=k.queue(t,e),r=n.length,i=n.shift(),o=k._queueHooks(t,e),a=function(){k.dequeue(t,e)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===e&&n.unshift("inprogress"),delete o.stop,i.call(t,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return k._data(t,n)||k._data(t,n,{empty:k.Callbacks("once memory").add(function(){k._removeData(t,e+"queue"),k._removeData(t,n)})})}}),k.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length=0&&(h=p.split("."),p=h.shift(),h.sort()),o=p.indexOf(":")<0&&"on"+p,t=t[k.expando]?t:new k.Event(p,"object"==typeof t&&t),t.isTrigger=r?2:3,t.namespace=h.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:k.makeArray(e,[t]),u=k.event.special[p]||{},r||!u.trigger||!1!==u.trigger.apply(n,e))){if(!r&&!u.noBubble&&!k.isWindow(n)){for(s=u.delegateType||p,H.test(s+p)||(a=a.parentNode);a;a=a.parentNode)f.push(a),c=a;c===(n.ownerDocument||D)&&f.push(c.defaultView||c.parentWindow||window)}for(l=0;(a=f[l++])&&!t.isPropagationStopped();)t.type=l>1?s:u.bindType||p,i=(k._data(a,"events")||{})[t.type]&&k._data(a,"handle"),i&&i.apply(a,e),(i=o&&a[o])&&i.apply&&k.acceptData(a)&&(t.result=i.apply(a,e),!1===t.result&&t.preventDefault());if(t.type=p,!r&&!t.isDefaultPrevented()&&(!u._default||!1===u._default.apply(f.pop(),e))&&k.acceptData(n)&&o&&n[p]&&!k.isWindow(n)){c=n[o],c&&(n[o]=null),k.event.triggered=p;try{n[p]()}catch(t){}k.event.triggered=void 0,c&&(n[o]=c)}return t.result}},dispatch:function(t){t=k.event.fix(t);var e,n,r,i,o,a=[],s=b.call(arguments),u=(k._data(this,"events")||{})[t.type]||[],c=k.event.special[t.type]||{};if(s[0]=t,t.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,t)){for(a=k.event.handlers.call(this,t,u),e=0;(i=a[e++])&&!t.isPropagationStopped();)for(t.currentTarget=i.elem,o=0;(r=i.handlers[o++])&&!t.isImmediatePropagationStopped();)t.namespace_re&&!t.namespace_re.test(r.namespace)||(t.handleObj=r,t.data=r.data,void 0!==(n=((k.event.special[r.origType]||{}).handle||r.handler).apply(i.elem,s))&&!1===(t.result=n)&&(t.preventDefault(),t.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,t),t.result}},handlers:function(t,e){var n,r,i,o,a=[],s=e.delegateCount,u=t.target;if(s&&u.nodeType&&(!t.button||"click"!==t.type))for(;u!=this;u=u.parentNode||this)if(1===u.nodeType&&(!0!==u.disabled||"click"!==t.type)){for(i=[],o=0;o=0:k.find(n,this,null,[u]).length),i[n]&&i.push(r);i.length&&a.push({elem:u,handlers:i})}return s0?4:0,i=t>=200&&t<300||304===t,n&&(w=h(p,E,n)),w=d(p,w,E,i),i?(p.ifModified&&(_=E.getResponseHeader("Last-Modified"),_&&(k.lastModified[o]=_),(_=E.getResponseHeader("etag"))&&(k.etag[o]=_)),204===t||"HEAD"===p.type?T="nocontent":304===t?T="notmodified":(T=w.state,l=w.data,f=w.error,i=!f)):(f=T,!t&&T||(T="error",t<0&&(t=0))),E.status=t,E.statusText=(e||T)+"",i?v.resolveWith(y,[l,T,E]):v.rejectWith(y,[E,T,f]),E.statusCode(b),b=void 0,u&&g.trigger(i?"ajaxSuccess":"ajaxError",[E,p,i?l:f]),m.fireWith(y,[E,T]),u&&(g.trigger("ajaxComplete",[E,p]),--k.active||k.event.trigger("ajaxStop")))}"object"==typeof t&&(e=t,t=void 0),e=e||{};var r,i,o,a,s,u,c,l,p=k.ajaxSetup({},e),y=p.context||p,g=p.context&&(y.nodeType||y.jquery)?k(y):k.event,v=k.Deferred(),m=k.Callbacks("once memory"),b=p.statusCode||{},w={},_={},x=0,T="canceled",E={readyState:0,getResponseHeader:function(t){var e;if(2===x){if(!l)for(l={};e=tt.exec(a);)l[e[1].toLowerCase()]=e[2];e=l[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===x?a:null},setRequestHeader:function(t,e){var n=t.toLowerCase();return x||(t=_[n]=_[n]||t,w[t]=e),this},overrideMimeType:function(t){return x||(p.mimeType=t),this},statusCode:function(t){var e;if(t)if(x<2)for(e in t)b[e]=[b[e],t[e]];else E.always(t[E.status]);return this},abort:function(t){var e=t||T;return c&&c.abort(e),n(0,e),this}};if(v.promise(E).complete=m.add,E.success=E.done,E.error=E.fail,p.url=((t||p.url||Q)+"").replace(J,"").replace(rt,$[1]+"//"),p.type=e.method||e.type||p.method||p.type,p.dataTypes=k.trim(p.dataType||"*").toLowerCase().match(B)||[""],null==p.crossDomain&&(r=it.exec(p.url.toLowerCase()),p.crossDomain=!(!r||r[1]===$[1]&&r[2]===$[2]&&(r[3]||("http:"===r[1]?"80":"443"))===($[3]||("http:"===$[1]?"80":"443")))),p.data&&p.processData&&"string"!=typeof p.data&&(p.data=k.param(p.data,p.traditional)),f(ot,p,e,E),2===x)return E;u=p.global,u&&0==k.active++&&k.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!nt.test(p.type),o=p.url,p.hasContent||(p.data&&(o=p.url+=(V.test(o)?"&":"?")+p.data,delete p.data),!1===p.cache&&(p.url=Z.test(o)?o.replace(Z,"$1_="+Y++):o+(V.test(o)?"&":"?")+"_="+Y++)),p.ifModified&&(k.lastModified[o]&&E.setRequestHeader("If-Modified-Since",k.lastModified[o]),k.etag[o]&&E.setRequestHeader("If-None-Match",k.etag[o])),(p.data&&p.hasContent&&!1!==p.contentType||e.contentType)&&E.setRequestHeader("Content-Type",p.contentType);for(i in p.headers)E.setRequestHeader(i,p.headers[i]);if(p.beforeSend&&(!1===p.beforeSend.call(y,E,p)||2===x))return E.abort();T="abort";for(i in{success:1,error:1,complete:1})E[i](p[i]);if(c=f(at,p,e,E)){E.readyState=1,u&&g.trigger("ajaxSend",[E,p]),p.async&&p.timeout>0&&(s=setTimeout(function(){E.abort("timeout")},p.timeout));try{x=1,c.send(w,n)}catch(t){if(!(x<2))throw t;n(-1,t)}}else n(-1,"No Transport");return E},getJSON:function(t,e,n){return k.get(t,e,n,"json")},getScript:function(t,e){return k.get(t,void 0,e,"script")}}),k.each(["get","post"],function(t,e){k[e]=function(t,n,r,i){return k.isFunction(n)&&(i=i||r,r=n,n=void 0),k.ajax({url:t,type:e,dataType:i,data:n,success:r})}}),k.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){k.fn[e]=function(t){return this.on(e,t)}}),k._evalUrl=function(t){return k.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})};var ut=/%20/g,ct=/\[\]$/,lt=/\r?\n/g,ft=/^(?:submit|button|image|reset|file)$/i,pt=/^(?:input|select|textarea|keygen)/i;k.param=function(t,e){var n,r=[],i=function(t,e){e=k.isFunction(e)?e():null==e?"":e,r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(void 0===e&&(e=k.ajaxSettings&&k.ajaxSettings.traditional),k.isArray(t)||t.jquery&&!k.isPlainObject(t))k.each(t,function(){i(this.name,this.value)});else for(n in t)y(n,t[n],e,i);return r.join("&").replace(ut,"+")},k.fn.extend({serialize:function(){return k.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=k.prop(this,"elements");return t?k.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!k(this).is(":disabled")&&pt.test(this.nodeName)&&!ft.test(t)&&(this.checked||!rcheckableType.test(t))}).map(function(t,e){var n=k(this).val();return null==n?null:k.isArray(n)?k.map(n,function(t){return{name:e.name,value:t.replace(lt,"\r\n")}}):{name:e.name,value:n.replace(lt,"\r\n")}}).get()}}),k.ajaxSettings.xhr=void 0!==window.ActiveXObject?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&g()||v()}:g;var ht=0,dt={},yt=k.ajaxSettings.xhr();window.ActiveXObject&&k(window).on("unload",function(){for(var t in dt)dt[t](void 0,!0)}),C.cors=!!yt&&"withCredentials"in yt,yt=C.ajax=!!yt,yt&&k.ajaxTransport(function(t){if(!t.crossDomain||C.cors){var e;return{send:function(n,r){var i,o=t.xhr(),a=++ht;if(o.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(i in t.xhrFields)o[i]=t.xhrFields[i];t.mimeType&&o.overrideMimeType&&o.overrideMimeType(t.mimeType),t.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest");for(i in n)void 0!==n[i]&&o.setRequestHeader(i,n[i]+"");o.upload&&t.progress&&(o.upload.onprogress=t.progress),o.send(t.hasContent&&(t.body||t.data)||null),e=function(n,i){var s,u,c;if(e&&(i||4===o.readyState))if(delete dt[a],e=void 0,o.onreadystatechange=k.noop,i)4!==o.readyState&&o.abort();else{c={},s=o.status,"string"==typeof o.responseText&&(c.text=o.responseText);try{u=o.statusText}catch(t){u=""}s||!t.isLocal||t.crossDomain?1223===s&&(s=204):s=c.text?200:404}c&&r(s,u,c,o.getAllResponseHeaders())},t.async?4===o.readyState?setTimeout(e):o.onreadystatechange=dt[a]=e:e()},abort:function(){e&&e(void 0,!0)}}}}),k.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(t){return k.globalEval(t),t}}}),k.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET",t.global=!1)}),k.ajaxTransport("script",function(t){if(t.crossDomain){var e,n=D.head||k("head")[0]||D.documentElement;return{send:function(r,i){e=D.createElement("script"),e.async=!0,t.scriptCharset&&(e.charset=t.scriptCharset),e.src=t.url,e.onload=e.onreadystatechange=function(t,n){(n||!e.readyState||/loaded|complete/.test(e.readyState))&&(e.onload=e.onreadystatechange=null,e.parentNode&&e.parentNode.removeChild(e),e=null,n||i(200,"success"))},n.insertBefore(e,n.firstChild)},abort:function(){e&&e.onload(void 0,!0)}}}});var gt=[],vt=/(=)\?(?=&|$)|\?\?/;return k.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=gt.pop()||k.expando+"_"+Y++;return this[t]=!0,t}}),k.ajaxPrefilter("json jsonp",function(t,e,n){var r,i,o,a=!1!==t.jsonp&&(vt.test(t.url)?"url":"string"==typeof t.data&&!(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&vt.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return r=t.jsonpCallback=k.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(vt,"$1"+r):!1!==t.jsonp&&(t.url+=(V.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return o||k.error(r+" was not called"),o[0]},t.dataTypes[0]="json",i=window[r],window[r]=function(){o=arguments},n.always(function(){window[r]=i,t[r]&&(t.jsonpCallback=e.jsonpCallback,gt.push(r)),o&&k.isFunction(i)&&i(o[0]),o=i=void 0}),"script"}),k.parseHTML=function(t,e,n){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(n=e,e=!1),e=e||D;var r=rsingleTag.exec(t),i=!n&&[];return r?[e.createElement(r[1])]:(r=k.buildFragment([t],e,i),i&&i.length&&k(i).remove(),k.merge([],r.childNodes))},k}(),o=function(t,e){if(t=i.extend(!0,{headers:{},qs:{}},t),t.type=t.method,delete t.method,t.headers){var n=t.headers;delete t.headers,t.beforeSend=function(t){for(var e in n)n.hasOwnProperty(e)&&"content-length"!==e.toLowerCase()&&"user-agent"!==e.toLowerCase()&&"origin"!==e.toLowerCase()&&"host"!==e.toLowerCase()&&t.setRequestHeader(e,n[e])}}if(t.onProgress&&(t.progress=t.onProgress,delete t.onProgress),t.qs){var o=r.stringify(t.qs);o&&(t.url+=(-1===t.url.indexOf("?")?"?":"&")+o),delete t.qs}t.json&&(t.data=JSON.stringify(t.json),delete t.json,t.headers["Content-Type"]="application/json"),t.body&&t.body.constructor!==window.File&&t.body.constructor!==window.Blob&&(t.data=t.body,delete t.body);var a=function(t){var e={};return t.getAllResponseHeaders().trim().split("\n").forEach(function(t){if(t){var n=t.indexOf(":"),r=t.substr(0,n).trim().toLowerCase(),i=t.substr(n+1).trim();e[r]=i}}),{statusCode:t.status,statusMessage:t.statusText,headers:e}};return t.success=function(t,n,r){e(null,a(r),t)},t.error=function(t){e(t.statusText,a(t),t.responseText)},t.dataType="text",i.ajax(t)};t.exports=o},function(t,e,n){"use strict";e.decode=e.parse=n(205),e.encode=e.stringify=n(206)},function(t,e,n){"use strict";function r(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,e,n,i){e=e||"&",n=n||"=";var o={};if("string"!=typeof t||0===t.length)return o;var a=/\+/g;t=t.split(e);var s=1e3;i&&"number"==typeof i.maxKeys&&(s=i.maxKeys);var u=t.length;s>0&&u>s&&(u=s);for(var c=0;c=0?(l=d.substr(0,y),f=d.substr(y+1)):(l=d,f=""),p=decodeURIComponent(l),h=decodeURIComponent(f),r(o,p)?Array.isArray(o[p])?o[p].push(h):o[p]=[o[p],h]:o[p]=h}return o}},function(t,e,n){"use strict";var r=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,e,n,i){return e=e||"&",n=n||"=",null===t&&(t=void 0),"object"==typeof t?Object.keys(t).map(function(i){var o=encodeURIComponent(r(i))+n;return Array.isArray(t[i])?t[i].map(function(t){return o+encodeURIComponent(r(t))}).join(e):o+encodeURIComponent(r(t[i]))}).join(e):i?encodeURIComponent(r(i))+n+encodeURIComponent(r(t)):""}},function(t,e,n){function r(t,e){var n=y.uuid();t.TaskReady&&t.TaskReady(n),this._addTask(n,"_sliceUploadFile",t,e)}function i(t,e){var n,r=new d,i=t.TaskId,a=t.Bucket,s=t.Region,c=t.Key,f=t.Body,p=t.SliceSize||this.options.ChunkSize,h=t.AsyncLimit,y=t.StorageClass||"Standard",g=this,v=t.onProgress,m=t.onHashProgress;y=null,r.all("error",function(t){if(g._isRunningTask(i))return e(t)}),r.all("upload_complete",function(t){e(null,t)}),r.all("upload_slice_complete",function(t){l.call(g,{Bucket:a,Region:s,Key:c,UploadId:t.UploadId,SliceList:t.SliceList},function(t,e){if(g._isRunningTask(i))return t?r.emit("error",t):void r.emit("upload_complete",e)})}),r.all("get_upload_data_finish",function(t){u.call(g,{TaskId:i,Bucket:a,Region:s,Key:c,Body:f,FileSize:n,SliceSize:p,AsyncLimit:h,UploadData:t,onProgress:v},function(t,e){if(g._isRunningTask(i))return t?r.emit("error",t):void r.emit("upload_slice_complete",e)})}),r.all("get_file_size_finish",function(){t.UploadData.UploadId?r.emit("get_upload_data_finish",t.UploadData):o.call(g,{TaskId:i,Bucket:a,Region:s,Key:c,StorageClass:y,Body:f,FileSize:n,SliceSize:p,onHashProgress:m,CacheControl:t.CacheControl,ContentDisposition:t.ContentDisposition,ContentEncoding:t.ContentEncoding,ContentType:t.ContentType,ACL:t.ACL,GrantRead:t.GrantRead,GrantWrite:t.GrantWrite,GrantFullControl:t.GrantFullControl},function(e,n){if(g._isRunningTask(i)){if(e)return r.emit("error",e);t.UploadData.UploadId=n.UploadId,t.UploadData.PartList=n.PartList,r.emit("get_upload_data_finish",t.UploadData)}})}),n=f.size||t.ContentLength,Math.ceil(n/p),r.emit("get_file_size_finish")}function o(t,e){var n=t.TaskId,r=t.Bucket,i=t.Region,o=t.Key,a=t.StorageClass,u=this,c={},l=t.FileSize,f=t.SliceSize,p=Math.ceil(l/f),g=0,v=0,m=0,b=0,w=0,_=function(e){var r=function(){if(u._isRunningTask(n)){m=0;var e=Date.now(),r=parseInt((v-w)/((e-b)/1e3)*100)/100||0,i=parseInt(g/p*100)/100||0;if(b=e,w=v,t.onHashProgress&&"function"==typeof t.onHashProgress)try{t.onHashProgress({loaded:v,total:l,speed:r,percent:i})}catch(t){}}};if(e)m&&(clearTimeout(m),m=0,r());else{if(m)return;m=setTimeout(r,u.options.ProgressInterval||100)}},x=function(e,n){if(c[e])return c[e];var r=f*(e-1),i=Math.min(r+f,l),o=i-r,a=fs.createReadStream(t.FilePath,{start:r,end:i-1});y.getFileMd5(a,function(t,r){if(t)return n(t);var i='"'+r+'"';c[e]=i,g+=1,v+=o,n(t,{PartNumber:e,ETag:i,Size:o}),_()})},T=function(t,e){var n=t.length;if(0===n)return e(null,!0);if(n>p)return e(null,!1);if(n>1){if(Math.max(t[0].Size,t[1].Size)!==f)return e(null,!1)}var r=function(i){if(i=g?u%l||l:l),!t.Uploaded}),b=function(){var t,e=Date.now(),i=v,o=function(){if(n._isRunningTask(r)&&(t=0,d&&"function"==typeof d)){var o=Date.now(),a=parseInt((v-i)/((o-e)/1e3)*100)/100||0,s=parseInt(v/u*100)/100||0;e=o,i=v;try{d({loaded:v,total:u,speed:a,percent:s})}catch(t){}}};return function(e){if(e)clearTimeout(t),o();else{if(t)return;t=setTimeout(o,n.options.ProgressInterval||100)}}}();h.mapLimit(m,f,function(t,e){if(n._isRunningTask(r)){var f=t.PartNumber,h=(t.ETag,Math.min(u,t.PartNumber*l)-(t.PartNumber-1)*l),d=0;c.call(n,{TaskId:r,Bucket:i,Region:o,Key:a,SliceSize:l,FileSize:u,PartNumber:f,Body:p,UploadData:s,onProgress:function(t){v+=t.loaded-d,d=t.loaded,b()}},function(i,o){n._isRunningTask(r)&&(i?v-=d:(v+=h-d,t.ETag=o.ETag),b(!0),e(i||null,o))})}},function(t,i){if(n._isRunningTask(r))return t?e(t):void e(null,{datas:i,UploadId:s.UploadId,SliceList:s.PartList})})}function c(t,e){var n=t.TaskId,r=t.Bucket,i=t.Region,o=t.Key,a=t.FileSize,s=t.Body,u=1*t.PartNumber,c=t.SliceSize,l=t.UploadData,f=this,p=c*(u-1),d=c,g=p+c;g>a&&(g=a,d=g-p);var v=y.fileSlice.call(s,p,g),m=l.PartList[u-1],b=m.ETag;h.retry(3,function(e){f._isRunningTask(n)&&f.multipartUpload({TaskId:n,Bucket:r,Region:i,Key:o,ContentLength:d,ContentSha1:b,PartNumber:u,UploadId:l.UploadId,Body:v,onProgress:t.onProgress},function(t,r){if(f._isRunningTask(n))return t?e(t):(m.Uploaded=!0,e(null,r))})},function(t,r){if(f._isRunningTask(n))return e(t,r)})}function l(t,e){var n=t.Bucket,r=t.Region,i=t.Key,o=t.UploadId,a=t.SliceList,s=this,u=a.map(function(t){return{PartNumber:t.PartNumber,ETag:t.ETag}});s.multipartComplete({Bucket:n,Region:r,Key:i,UploadId:o,Parts:u},function(t,n){if(t)return e(t);e(null,n)})}function f(t,e){var n=t.Bucket,r=t.Region,i=t.Key,o=t.UploadId,s=t.Level||"task",u=t.AsyncLimit,c=this,l=new d;if(l.all("error",function(t){return e(t)}),l.all("get_abort_array",function(t){p.call(c,{Bucket:n,Region:r,Key:i,AsyncLimit:u,AbortArray:t},function(t,n){if(t)return e(t);e(null,n)})}),"bucket"===s)a.call(c,{Bucket:n,Region:r},function(t,n){if(t)return e(t);l.emit("get_abort_array",n.UploadList||[])});else if("file"===s){if(!i)return e({error:"abort_upload_task_no_key"});a.call(c,{Bucket:n,Region:r,Key:i},function(t,n){if(t)return e(t);l.emit("get_abort_array",n.UploadList||[])})}else{if("task"!==s)return e({error:"abort_unknown_level"});if(!o)return e({error:"abort_upload_task_no_id"});if(!i)return e({error:"abort_upload_task_no_key"});l.emit("get_abort_array",[{Key:i,UploadId:o}])}}function p(t,e){var n=t.Bucket,r=t.Region,i=t.Key,o=t.AbortArray,a=t.AsyncLimit||1,s=this;h.mapLimit(o,a,function(t,e){if(i&&i!=t.Key)return e(null,{KeyNotMatch:!0});var o=t.UploadId||t.UploadID;s.multipartAbort({Bucket:n,Region:r,Key:t.Key,UploadId:o},function(i,a){var s={Bucket:n,Region:r,Key:t.Key,UploadId:o};return i?e(null,{error:i,task:s}):e(null,{error:!1,task:s})})},function(t,n){if(t)return e(t);for(var r=[],i=[],o=0,a=n.length;o-1&&t%1==0&&t<=ke}function w(t){return null!=t&&b(t.length)&&!m(t)}function _(){}function x(t){return function(){if(null!==t){var e=t;t=null,e.apply(this,arguments)}}}function T(t,e){for(var n=-1,r=Array(t);++n-1&&t%1==0&&ti?0:i+e),n=n>i?i:n,n<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r=r?t:tt(t,e,n)}function nt(t,e){for(var n=t.length;n--&&$(e,t[n],0)>-1;);return n}function rt(t,e){for(var n=-1,r=t.length;++n-1;);return n}function it(t){return t.split("")}function ot(t){return _n.test(t)}function at(t){return t.match(Rn)||[]}function st(t){return ot(t)?at(t):it(t)}function ut(t){return null==t?"":Z(t)}function ct(t,e,n){if((t=ut(t))&&(n||void 0===e))return t.replace(jn,"");if(!t||!(e=Z(e)))return t;var r=st(t),i=st(e);return et(r,rt(r,i),nt(r,i)+1).join("")}function lt(t){return t=t.toString().replace(Ln,""),t=t.match(On)[2].replace(" ",""),t=t?t.split(Pn):[],t=t.map(function(t){return ct(t.replace(Dn,""))})}function ft(t,e){var n={};W(t,function(t,e){function r(e,n){var r=Q(i,function(t){return e[t]});r.push(n),h(t).apply(null,r)}var i,o=p(t),a=!o&&1===t.length||o&&0===t.length;if(Ne(t))i=t.slice(0,-1),t=t[t.length-1],n[e]=i.concat(i.length>0?r:t);else if(a)n[e]=t;else{if(i=lt(t),0===t.length&&!o&&0===i.length)throw new Error("autoInject task functions require explicit parameters.");o||i.pop(),n[e]=i.concat(r)}}),gn(n,e)}function pt(){this.head=this.tail=null,this.length=0}function ht(t,e){t.length=1,t.head=t.tail=e}function dt(t,e,n){function r(t,e,n){if(null!=n&&"function"!=typeof n)throw new Error("task callback must be a function");if(c.started=!0,Ne(t)||(t=[t]),0===t.length&&c.idle())return ce(function(){c.drain()});for(var r=0,i=t.length;r=0&&s.splice(o,1),i.callback.apply(i,arguments),null!=e&&c.error(e,i.data)}a<=c.concurrency-c.buffer&&c.unsaturated(),c.idle()&&c.drain(),c.process()}}if(null==e)e=1;else if(0===e)throw new Error("Concurrency must not be zero");var o=h(t),a=0,s=[],u=!1,c={_tasks:new pt,concurrency:e,payload:n,saturated:_,unsaturated:_,buffer:e/4,empty:_,drain:_,error:_,started:!1,paused:!1,push:function(t,e){r(t,!1,e)},kill:function(){c.drain=_,c._tasks.empty()},unshift:function(t,e){r(t,!0,e)},remove:function(t){c._tasks.remove(t)},process:function(){if(!u){for(u=!0;!c.paused&&a2&&(i=o(arguments,1)),r[e]=i,n(t)})},function(t){n(t,r)})}function Ft(t,e){Ut(un,t,e)}function zt(t,e,n){Ut(M(e),t,n)}function qt(t,e){if(e=x(e||_),!Ne(t))return e(new TypeError("First argument to race must be an array of functions"));if(!t.length)return e();for(var n=0,r=t.length;nr?1:0}var i=h(e);cn(t,function(t,e){i(t,function(n,r){if(n)return e(n);e(null,{value:t,criteria:r})})},function(t,e){if(t)return n(t);n(null,Q(e.sort(r),jt("value")))})}function Qt(t,e,n){var r=h(t);return ae(function(i,o){function a(){var e=t.name||"anonymous",r=new Error('Callback function "'+e+'" timed out.');r.code="ETIMEDOUT",n&&(r.info=n),u=!0,o(r)}var s,u=!1;i.push(function(){u||(o.apply(null,arguments),clearTimeout(s))}),s=setTimeout(a,e),r.apply(null,i)})}function Jt(t,e,n,r){for(var i=-1,o=mr(vr((e-t)/(n||1)),0),a=Array(o);o--;)a[r?o:++i]=t,t+=n;return a}function Zt(t,e,n,r){var i=h(n);fn(Jt(0,t,1),e,i,r)}function te(t,e,n,r){arguments.length<=3&&(r=n,n=e,e=Ne(t)?[]:{}),r=x(r||_);var i=h(n);un(t,function(t,n,r){i(e,t,n,r)},function(t){r(t,e)})}function ee(t,e){var n,r=null;e=e||_,Vn(t,function(t,e){h(t)(function(t,i){n=arguments.length>2?o(arguments,1):i,r=t,e(!t)})},function(){e(r,n)})}function ne(t){return function(){return(t.unmemoized||t).apply(null,arguments)}}function re(t,e,n){n=N(n||_);var r=h(e);if(!t())return n(null);var i=function(e){if(e)return n(e);if(t())return r(i);var a=o(arguments,1);n.apply(null,[null].concat(a))};r(i)}function ie(t,e,n){re(function(){return!t.apply(this,arguments)},e,n)}var oe,ae=function(t){return function(){var e=o(arguments),n=e.pop();t.call(this,e,n)}},se="function"==typeof t&&t,ue="object"==typeof n&&"function"==typeof n.nextTick;oe=se?t:ue?n.nextTick:s;var ce=u(oe),le="function"==typeof Symbol,fe="object"==typeof r&&r&&r.Object===Object&&r,pe="object"==typeof self&&self&&self.Object===Object&&self,he=fe||pe||Function("return this")(),de=he.Symbol,ye=Object.prototype,ge=ye.hasOwnProperty,ve=ye.toString,me=de?de.toStringTag:void 0,be=Object.prototype,we=be.toString,_e="[object Null]",xe="[object Undefined]",Te=de?de.toStringTag:void 0,Ee="[object AsyncFunction]",Ae="[object Function]",Ce="[object GeneratorFunction]",Se="[object Proxy]",ke=9007199254740991,Ie={},Re="function"==typeof Symbol&&Symbol.iterator,je=function(t){return Re&&t[Re]&&t[Re]()},Oe="[object Arguments]",Pe=Object.prototype,De=Pe.hasOwnProperty,Le=Pe.propertyIsEnumerable,Be=A(function(){return arguments}())?A:function(t){return E(t)&&De.call(t,"callee")&&!Le.call(t,"callee")},Ne=Array.isArray,Me="object"==typeof e&&e&&!e.nodeType&&e,Ue=Me&&"object"==typeof i&&i&&!i.nodeType&&i,Fe=Ue&&Ue.exports===Me,ze=Fe?he.Buffer:void 0,qe=ze?ze.isBuffer:void 0,Ke=qe||C,Ge=9007199254740991,He=/^(?:0|[1-9]\d*)$/,We={};We["[object Float32Array]"]=We["[object Float64Array]"]=We["[object Int8Array]"]=We["[object Int16Array]"]=We["[object Int32Array]"]=We["[object Uint8Array]"]=We["[object Uint8ClampedArray]"]=We["[object Uint16Array]"]=We["[object Uint32Array]"]=!0,We["[object Arguments]"]=We["[object Array]"]=We["[object ArrayBuffer]"]=We["[object Boolean]"]=We["[object DataView]"]=We["[object Date]"]=We["[object Error]"]=We["[object Function]"]=We["[object Map]"]=We["[object Number]"]=We["[object Object]"]=We["[object RegExp]"]=We["[object Set]"]=We["[object String]"]=We["[object WeakMap]"]=!1;var Ye="object"==typeof e&&e&&!e.nodeType&&e,Ve=Ye&&"object"==typeof i&&i&&!i.nodeType&&i,Xe=Ve&&Ve.exports===Ye,$e=Xe&&fe.process,Qe=function(){try{return $e&&$e.binding("util")}catch(t){}}(),Je=Qe&&Qe.isTypedArray,Ze=Je?function(t){return function(e){return t(e)}}(Je):k,tn=Object.prototype,en=tn.hasOwnProperty,nn=Object.prototype,rn=function(t,e){return function(n){return t(e(n))}}(Object.keys,Object),on=Object.prototype,an=on.hasOwnProperty,sn=F(U,1/0),un=function(t,e,n){(w(t)?z:sn)(t,h(e),n)},cn=q(K),ln=d(cn),fn=G(K),pn=F(fn,1),hn=d(pn),dn=function(t){var e=o(arguments,1);return function(){var n=o(arguments);return t.apply(null,e.concat(n))}},yn=function(t){return function(e,n,r){for(var i=-1,o=Object(e),a=r(e),s=a.length;s--;){var u=a[t?s:++i];if(!1===n(o[u],u,o))break}return e}}(),gn=function(t,e,n){function r(t,e){v.push(function(){u(t,e)})}function i(){if(0===v.length&&0===d)return n(null,p);for(;v.length&&d2&&(r=o(arguments,1)),e){var i={};W(p,function(t,e){i[e]=t}),i[t]=r,y=!0,g=Object.create(null),n(e,i)}else p[t]=r,s(t)});d++;var i=h(e[e.length-1]);e.length>1?i(p,r):i(r)}}function c(e){var n=[];return W(t,function(t,r){Ne(t)&&$(t,e,0)>=0&&n.push(r)}),n}"function"==typeof e&&(n=e,e=null),n=x(n||_);var l=O(t),f=l.length;if(!f)return n(null);e||(e=f);var p={},d=0,y=!1,g=Object.create(null),v=[],m=[],b={};W(t,function(e,n){if(!Ne(e))return r(n,[e]),void m.push(n);var i=e.slice(0,e.length-1),o=i.length;if(0===o)return r(n,e),void m.push(n);b[n]=o,H(i,function(s){if(!t[s])throw new Error("async.auto task `"+n+"` has a non-existent dependency `"+s+"` in "+i.join(", "));a(s,function(){0===--o&&r(n,e)})})}),function(){for(var t,e=0;m.length;)t=m.pop(),e++,H(c(t),function(t){0==--b[t]&&m.push(t)});if(e!==f)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}(),i()},vn="[object Symbol]",mn=1/0,bn=de?de.prototype:void 0,wn=bn?bn.toString:void 0,_n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),xn="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",Tn="\\ud83c[\\udffb-\\udfff]",En="(?:\\ud83c[\\udde6-\\uddff]){2}",An="[\\ud800-\\udbff][\\udc00-\\udfff]",Cn="(?:[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]|\\ud83c[\\udffb-\\udfff])?",Sn="(?:\\u200d(?:"+["[^\\ud800-\\udfff]",En,An].join("|")+")[\\ufe0e\\ufe0f]?"+Cn+")*",kn="[\\ufe0e\\ufe0f]?"+Cn+Sn,In="(?:"+["[^\\ud800-\\udfff]"+xn+"?",xn,En,An,"[\\ud800-\\udfff]"].join("|")+")",Rn=RegExp(Tn+"(?="+Tn+")|"+In+kn,"g"),jn=/^\s+|\s+$/g,On=/^(?:async\s+)?(function)?\s*[^\(]*\(\s*([^\)]*)\)/m,Pn=/,/,Dn=/(=.+)?(\s*)$/,Ln=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm;pt.prototype.removeLink=function(t){return t.prev?t.prev.next=t.next:this.head=t.next,t.next?t.next.prev=t.prev:this.tail=t.prev,t.prev=t.next=null,this.length-=1,t},pt.prototype.empty=function(){for(;this.head;)this.shift();return this},pt.prototype.insertAfter=function(t,e){e.prev=t,e.next=t.next,t.next?t.next.prev=e:this.tail=e,t.next=e,this.length+=1},pt.prototype.insertBefore=function(t,e){e.prev=t.prev,e.next=t,t.prev?t.prev.next=e:this.head=e,t.prev=e,this.length+=1},pt.prototype.unshift=function(t){this.head?this.insertBefore(this.head,t):ht(this,t)},pt.prototype.push=function(t){this.tail?this.insertAfter(this.tail,t):ht(this,t)},pt.prototype.shift=function(){return this.head&&this.removeLink(this.head)},pt.prototype.pop=function(){return this.tail&&this.removeLink(this.tail)},pt.prototype.toArray=function(){for(var t=Array(this.length),e=this.head,n=0;n=i.priority;)i=i.next;for(var o=0,a=t.length;o=31}function i(){var t=arguments,n=this.useColors;if(t[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+t[0]+(n?"%c ":" ")+"+"+e.humanize(this.diff),!n)return t;var r="color: "+this.color;t=[t[0],r,"color: inherit"].concat(Array.prototype.slice.call(t,1));var i=0,o=0;return t[0].replace(/%[a-z%]/g,function(t){"%%"!==t&&(i++,"%c"===t&&(o=i))}),t.splice(o,0,r),t}function o(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function a(t){try{null==t?e.storage.removeItem("debug"):e.storage.debug=t}catch(t){}}function s(){var t;try{t=e.storage.debug}catch(t){}return t}e=t.exports=n(212),e.log=o,e.formatArgs=i,e.save=a,e.load=s,e.useColors=r,e.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(t){}}(),e.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],e.formatters.j=function(t){return JSON.stringify(t)},e.enable(s())},function(t,e,n){function r(){return e.colors[l++%e.colors.length]}function i(t){function n(){}function i(){var t=i,n=+new Date,o=n-(c||n);t.diff=o,t.prev=c,t.curr=n,c=n,null==t.useColors&&(t.useColors=e.useColors()),null==t.color&&t.useColors&&(t.color=r());var a=Array.prototype.slice.call(arguments);a[0]=e.coerce(a[0]),"string"!=typeof a[0]&&(a=["%o"].concat(a));var s=0;a[0]=a[0].replace(/%([a-z%])/g,function(n,r){if("%%"===n)return n;s++;var i=e.formatters[r];if("function"==typeof i){var o=a[s];n=i.call(t,o),a.splice(s,1),s--}return n}),"function"==typeof e.formatArgs&&(a=e.formatArgs.apply(t,a)),(i.log||e.log||console.log.bind(console)).apply(t,a)}n.enabled=!1,i.enabled=!0;var o=e.enabled(t)?i:n;return o.namespace=t,o}function o(t){e.save(t);for(var n=(t||"").split(/[\s,]+/),r=n.length,i=0;i1e4)){var e=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(e){var n=parseFloat(e[1]);switch((e[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return n*l;case"days":case"day":case"d":return n*c;case"hours":case"hour":case"hrs":case"hr":case"h":return n*u;case"minutes":case"minute":case"mins":case"min":case"m":return n*s;case"seconds":case"second":case"secs":case"sec":case"s":return n*a;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n}}}}function r(t){return t>=c?Math.round(t/c)+"d":t>=u?Math.round(t/u)+"h":t>=s?Math.round(t/s)+"m":t>=a?Math.round(t/a)+"s":t+"ms"}function i(t){return o(t,c,"day")||o(t,u,"hour")||o(t,s,"minute")||o(t,a,"second")||t+" ms"}function o(t,e,n){if(!(t