webpackJsonp([2],{"1nuA":function(t,e,n){"use strict";e.decode=e.parse=n("kMPS"),e.encode=e.stringify=n("xaZU")},"1yzm":function(t,e){},JSQk:function(t,e,n){var i;i=function(t){"use strict";var e=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function n(t,e){var n=t[0],i=t[1],r=t[2],o=t[3];i=((i+=((r=((r+=((o=((o+=((n=((n+=(i&r|~i&o)+e[0]-680876936|0)<<7|n>>>25)+i|0)&i|~n&r)+e[1]-389564586|0)<<12|o>>>20)+n|0)&n|~o&i)+e[2]+606105819|0)<<17|r>>>15)+o|0)&o|~r&n)+e[3]-1044525330|0)<<22|i>>>10)+r|0,i=((i+=((r=((r+=((o=((o+=((n=((n+=(i&r|~i&o)+e[4]-176418897|0)<<7|n>>>25)+i|0)&i|~n&r)+e[5]+1200080426|0)<<12|o>>>20)+n|0)&n|~o&i)+e[6]-1473231341|0)<<17|r>>>15)+o|0)&o|~r&n)+e[7]-45705983|0)<<22|i>>>10)+r|0,i=((i+=((r=((r+=((o=((o+=((n=((n+=(i&r|~i&o)+e[8]+1770035416|0)<<7|n>>>25)+i|0)&i|~n&r)+e[9]-1958414417|0)<<12|o>>>20)+n|0)&n|~o&i)+e[10]-42063|0)<<17|r>>>15)+o|0)&o|~r&n)+e[11]-1990404162|0)<<22|i>>>10)+r|0,i=((i+=((r=((r+=((o=((o+=((n=((n+=(i&r|~i&o)+e[12]+1804603682|0)<<7|n>>>25)+i|0)&i|~n&r)+e[13]-40341101|0)<<12|o>>>20)+n|0)&n|~o&i)+e[14]-1502002290|0)<<17|r>>>15)+o|0)&o|~r&n)+e[15]+1236535329|0)<<22|i>>>10)+r|0,i=((i+=((r=((r+=((o=((o+=((n=((n+=(i&o|r&~o)+e[1]-165796510|0)<<5|n>>>27)+i|0)&r|i&~r)+e[6]-1069501632|0)<<9|o>>>23)+n|0)&i|n&~i)+e[11]+643717713|0)<<14|r>>>18)+o|0)&n|o&~n)+e[0]-373897302|0)<<20|i>>>12)+r|0,i=((i+=((r=((r+=((o=((o+=((n=((n+=(i&o|r&~o)+e[5]-701558691|0)<<5|n>>>27)+i|0)&r|i&~r)+e[10]+38016083|0)<<9|o>>>23)+n|0)&i|n&~i)+e[15]-660478335|0)<<14|r>>>18)+o|0)&n|o&~n)+e[4]-405537848|0)<<20|i>>>12)+r|0,i=((i+=((r=((r+=((o=((o+=((n=((n+=(i&o|r&~o)+e[9]+568446438|0)<<5|n>>>27)+i|0)&r|i&~r)+e[14]-1019803690|0)<<9|o>>>23)+n|0)&i|n&~i)+e[3]-187363961|0)<<14|r>>>18)+o|0)&n|o&~n)+e[8]+1163531501|0)<<20|i>>>12)+r|0,i=((i+=((r=((r+=((o=((o+=((n=((n+=(i&o|r&~o)+e[13]-1444681467|0)<<5|n>>>27)+i|0)&r|i&~r)+e[2]-51403784|0)<<9|o>>>23)+n|0)&i|n&~i)+e[7]+1735328473|0)<<14|r>>>18)+o|0)&n|o&~n)+e[12]-1926607734|0)<<20|i>>>12)+r|0,i=((i+=((r=((r+=((o=((o+=((n=((n+=(i^r^o)+e[5]-378558|0)<<4|n>>>28)+i|0)^i^r)+e[8]-2022574463|0)<<11|o>>>21)+n|0)^n^i)+e[11]+1839030562|0)<<16|r>>>16)+o|0)^o^n)+e[14]-35309556|0)<<23|i>>>9)+r|0,i=((i+=((r=((r+=((o=((o+=((n=((n+=(i^r^o)+e[1]-1530992060|0)<<4|n>>>28)+i|0)^i^r)+e[4]+1272893353|0)<<11|o>>>21)+n|0)^n^i)+e[7]-155497632|0)<<16|r>>>16)+o|0)^o^n)+e[10]-1094730640|0)<<23|i>>>9)+r|0,i=((i+=((r=((r+=((o=((o+=((n=((n+=(i^r^o)+e[13]+681279174|0)<<4|n>>>28)+i|0)^i^r)+e[0]-358537222|0)<<11|o>>>21)+n|0)^n^i)+e[3]-722521979|0)<<16|r>>>16)+o|0)^o^n)+e[6]+76029189|0)<<23|i>>>9)+r|0,i=((i+=((r=((r+=((o=((o+=((n=((n+=(i^r^o)+e[9]-640364487|0)<<4|n>>>28)+i|0)^i^r)+e[12]-421815835|0)<<11|o>>>21)+n|0)^n^i)+e[15]+530742520|0)<<16|r>>>16)+o|0)^o^n)+e[2]-995338651|0)<<23|i>>>9)+r|0,i=((i+=((o=((o+=(i^((n=((n+=(r^(i|~o))+e[0]-198630844|0)<<6|n>>>26)+i|0)|~r))+e[7]+1126891415|0)<<10|o>>>22)+n|0)^((r=((r+=(n^(o|~i))+e[14]-1416354905|0)<<15|r>>>17)+o|0)|~n))+e[5]-57434055|0)<<21|i>>>11)+r|0,i=((i+=((o=((o+=(i^((n=((n+=(r^(i|~o))+e[12]+1700485571|0)<<6|n>>>26)+i|0)|~r))+e[3]-1894986606|0)<<10|o>>>22)+n|0)^((r=((r+=(n^(o|~i))+e[10]-1051523|0)<<15|r>>>17)+o|0)|~n))+e[1]-2054922799|0)<<21|i>>>11)+r|0,i=((i+=((o=((o+=(i^((n=((n+=(r^(i|~o))+e[8]+1873313359|0)<<6|n>>>26)+i|0)|~r))+e[15]-30611744|0)<<10|o>>>22)+n|0)^((r=((r+=(n^(o|~i))+e[6]-1560198380|0)<<15|r>>>17)+o|0)|~n))+e[13]+1309151649|0)<<21|i>>>11)+r|0,i=((i+=((o=((o+=(i^((n=((n+=(r^(i|~o))+e[4]-145523070|0)<<6|n>>>26)+i|0)|~r))+e[11]-1120210379|0)<<10|o>>>22)+n|0)^((r=((r+=(n^(o|~i))+e[2]+718787259|0)<<15|r>>>17)+o|0)|~n))+e[9]-343485551|0)<<21|i>>>11)+r|0,t[0]=n+t[0]|0,t[1]=i+t[1]|0,t[2]=r+t[2]|0,t[3]=o+t[3]|0}function i(t){var e,n=[];for(e=0;e<64;e+=4)n[e>>2]=t.charCodeAt(e)+(t.charCodeAt(e+1)<<8)+(t.charCodeAt(e+2)<<16)+(t.charCodeAt(e+3)<<24);return n}function r(t){var e,n=[];for(e=0;e<64;e+=4)n[e>>2]=t[e]+(t[e+1]<<8)+(t[e+2]<<16)+(t[e+3]<<24);return n}function o(t){var e,r,o,a,s,u,c=t.length,h=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=c;e+=64)n(h,i(t.substring(e-64,e)));for(r=(t=t.substring(e-64)).length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e=0;e>2]|=t.charCodeAt(e)<<(e%4<<3);if(o[e>>2]|=128<<(e%4<<3),e>55)for(n(h,o),e=0;e<16;e+=1)o[e]=0;return a=(a=8*c).toString(16).match(/(.*?)(.{0,8})$/),s=parseInt(a[2],16),u=parseInt(a[1],16)||0,o[14]=s,o[15]=u,n(h,o),h}function a(t){var n,i="";for(n=0;n<4;n+=1)i+=e[t>>8*n+4&15]+e[t>>8*n&15];return i}function s(t){var e;for(e=0;e>16)+(e>>16)+(n>>16)<<16|65535&n},"undefined"==typeof ArrayBuffer||ArrayBuffer.prototype.slice||function(){function e(t,e){return(t=0|t||0)<0?Math.max(t+e,0):Math.min(t,e)}ArrayBuffer.prototype.slice=function(n,i){var r,o,a,s,u=this.byteLength,c=e(n,u),h=u;return i!==t&&(h=e(i,u)),c>h?new ArrayBuffer(0):(r=h-c,o=new ArrayBuffer(r),a=new Uint8Array(o),s=new Uint8Array(this,c,r),a.set(s),o)}}(),h.prototype.append=function(t){return this.appendBinary(u(t)),this},h.prototype.appendBinary=function(t){this._buff+=t,this._length+=t.length;var e,r=this._buff.length;for(e=64;e<=r;e+=64)n(this._hash,i(this._buff.substring(e-64,e)));return this._buff=this._buff.substring(e-64),this},h.prototype.end=function(t){var e,n,i=this._buff,r=i.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e>2]|=i.charCodeAt(e)<<(e%4<<3);return this._finish(o,r),n=s(this._hash),t&&(n=c(n)),this.reset(),n},h.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},h.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},h.prototype.setState=function(t){return this._buff=t.buff,this._length=t.length,this._hash=t.hash,this},h.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},h.prototype._finish=function(t,e){var i,r,o,a=e;if(t[a>>2]|=128<<(a%4<<3),a>55)for(n(this._hash,t),a=0;a<16;a+=1)t[a]=0;i=(i=8*this._length).toString(16).match(/(.*?)(.{0,8})$/),r=parseInt(i[2],16),o=parseInt(i[1],16)||0,t[14]=r,t[15]=o,n(this._hash,t)},h.hash=function(t,e){return h.hashBinary(u(t),e)},h.hashBinary=function(t,e){var n=s(o(t));return e?c(n):n},h.ArrayBuffer=function(){this.reset()},h.ArrayBuffer.prototype.append=function(t){var e,i,o,a,s,u=(i=this._buff.buffer,o=t,a=!0,(s=new Uint8Array(i.byteLength+o.byteLength)).set(new Uint8Array(i)),s.set(new Uint8Array(o),i.byteLength),a?s:s.buffer),c=u.length;for(this._length+=t.byteLength,e=64;e<=c;e+=64)n(this._hash,r(u.subarray(e-64,e)));return this._buff=e-64>2]|=i[e]<<(e%4<<3);return this._finish(o,r),n=s(this._hash),t&&(n=c(n)),this.reset(),n},h.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},h.ArrayBuffer.prototype.getState=function(){var t,e=h.prototype.getState.call(this);return e.buff=(t=e.buff,String.fromCharCode.apply(null,new Uint8Array(t))),e},h.ArrayBuffer.prototype.setState=function(t){return t.buff=function(t,e){var n,i=t.length,r=new ArrayBuffer(i),o=new Uint8Array(r);for(n=0;n>2]|=t[e]<<(e%4<<3);if(o[e>>2]|=128<<(e%4<<3),e>55)for(n(h,o),e=0;e<16;e+=1)o[e]=0;return a=(a=8*c).toString(16).match(/(.*?)(.{0,8})$/),s=parseInt(a[2],16),u=parseInt(a[1],16)||0,o[14]=s,o[15]=u,n(h,o),h}(new Uint8Array(t)));return e?c(i):i},h},t.exports=i()},KdkX:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAATwAAADICAYAAAB1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TtI0RdImBC8SaqijOAKL1nrKKtuMWH+nuMwd6/Dw7J7uK2aa9kUSCgQvEmqoozgCz6zoGdHkNuEoKMVl7liH8yzdgRvnmndFEgoELxJqqKM4Ag8v8412+PWYoVVc5o512Krzcneeb9gRSSgQvEiooY7iCPxlSXCMl9MwinMcDh9DwMAG+T8t0GyPBA0ELxJqqKM4Ave+y4/hsKVMcXnrz2GW4fm/XchA8JIimwgiJgTufofick1oTIKBUXrwIhrw+tXjIcIID50HBEBANQQgeKpJNQIFARCA4KEPgAAIqIYABE81qUagIAACEDz0ARAAAdUQgOCpJtUIFARAAIKHPgACIKAaAhA81aQagYIACEDw0AdAAARUQwCCp5pUI1AQAAEIHvoACICAaghA8FSTagQKAiAAwUMfAAEQUA0BCJ5qUo1AQQAEIHjoAyAAAqohAMFTTaoRKAiAAAQPfQAEQEA1BCB4qkk1AgUBEIDgoQ+AAAiohgAETzWpRqAgAAIQPPQBEAAB1RCA4Kkm1QgUBEAAgoc+AAIgoBoCEDzVpBqBggAIQPDQB0AABFRDAIKnmlQjUBAAAQge+gAIgIBqCEDwVJNqBAoCIADBQx8AARBQDQEInmpSjUBBAAQgeOgDIAACqiEAwVNNqhEoCIAABA99AARAQDUEIHiqSTUCBQEQgOChD4AACKiGAARPNalGoCAAAhA89AEQAAHVEIDgqSbVCBQEQEAQvPVEZAEKEAABEEhyAm5B8J4goplJHijCAwEQAIE1guCVENFiIrKCBwiAAAgkKQEHEV3KCMEdFL2biWgKXm+TNN0ICwTUScBNRN8S0ZMMw9j+H2Hh5JX7JAxQAAAAAElFTkSuQmCC"},Vj3e:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,r,o=n("mvHQ"),a=n.n(o),s=n("+EAh"),u=n("hff3"),c=(n("X2Oc"),n("Fd2+")),h=n("KTi7"),l=(n("QLzJ"),n("Z4iZ"),this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}));!function(t){t.InvalidFile="InvalidFile",t.InvalidToken="InvalidToken",t.InvalidMetadata="InvalidMetadata",t.InvalidChunkSize="InvalidChunkSize",t.InvalidCustomVars="InvalidCustomVars",t.NotAvailableUploadHost="NotAvailableUploadHost",t.ReadCacheFailed="ReadCacheFailed",t.InvalidCacheData="InvalidCacheData",t.WriteCacheFailed="WriteCacheFailed",t.RemoveCacheFailed="RemoveCacheFailed",t.GetCanvasContextFailed="GetCanvasContextFailed",t.UnsupportedFileType="UnsupportedFileType",t.FileReaderReadFailed="FileReaderReadFailed",t.NotAvailableXMLHttpRequest="NotAvailableXMLHttpRequest",t.InvalidProgressEventTarget="InvalidProgressEventTarget",t.RequestError="RequestError"}(r||(r={}));var p=function(){return function(t,e){this.name=t,this.message=e,this.stack=(new Error).stack}}(),f=function(t){function e(e,n,i,o){var a=t.call(this,r.RequestError,i)||this;return a.code=e,a.reqId=n,a.isRequestError=!0,a.data=o,a}return l(e,t),e}(p),d=function(t){function e(e,n){return void 0===n&&(n=""),t.call(this,0,n,e)||this}return l(e,t),e}(f),v=function(){function t(t,e){this.runTask=t,this.limit=e,this.aborted=!1,this.queue=[],this.processing=[]}return t.prototype.enqueue=function(t){var e=this;return new Promise(function(n,i){e.queue.push({task:t,resolve:n,reject:i}),e.check()})},t.prototype.run=function(t){var e=this;this.queue=this.queue.filter(function(e){return e!==t}),this.processing.push(t),this.runTask(t.task).then(function(){e.processing=e.processing.filter(function(e){return e!==t}),t.resolve(),e.check()},function(e){return t.reject(e)})},t.prototype.check=function(){var t=this;if(!this.aborted){var e=this.processing.length,n=this.limit-e;this.queue.slice(0,n).forEach(function(e){t.run(e)})}},t.prototype.abort=function(){this.queue=[],this.aborted=!0},t}(),g=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),y=this&&this.__assign||function(){return(y=Object.assign||function(t){for(var e,n=1,i=arguments.length;n127&&s<2048)u=String.fromCharCode(s>>6|192,63&s|128);else if((63488&s^55296)>0)u=String.fromCharCode(s>>12|224,s>>6&63|128,63&s|128);else{if((64512&s^55296)>0)throw new RangeError("Unmatched trail surrogate at "+a);var c=r.charCodeAt(++a);if((64512&c^56320)>0)throw new RangeError("Unmatched lead surrogate at "+(a-1));s=((1023&s)<<10)+(1023&c)+65536,u=String.fromCharCode(s>>18|240,s>>12&63|128,s>>6&63|128,63&s|128)}null!==u&&(n>e&&(o+=r.slice(e,n)),o+=u,e=n=a+1)}return n>e&&(o+=r.slice(e,i)),o}(t+"");do{e=(o=t.charCodeAt(s++)<<16|t.charCodeAt(s++)<<8|t.charCodeAt(s++))>>18&63,n=o>>12&63,i=o>>6&63,r=63&o,h[u++]=a.charAt(e)+a.charAt(n)+a.charAt(i)+a.charAt(r)}while(s>16&255,n=a>>8&255,i=255&a,h[c++]=64===r?String.fromCharCode(e):64===o?String.fromCharCode(e,n):String.fromCharCode(e,n,i)}while(u>10&1023)),e.push(String.fromCharCode(56320|1023&i))):e.push(String.fromCharCode(i)),n+=r}return e.join("")}(h.join(""))}function C(t){return(t=w(t)).replace(/\//g,"_").replace(/\+/g,"-")}var _,k=n("JSQk"),I=n.n(k),P=this&&this.__assign||function(){return(P=Object.assign||function(t){for(var e,n=1,i=arguments.length;n0&&r[r.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]3?e[1]:e[0];if(!n)throw new p(r.InvalidToken,"missing assess key field.");var i=null;try{i=JSON.parse(A(e[e.length-1].replace(/_/g,"/").replace(/-/g,"+")))}catch(t){throw new p(r.InvalidToken,"token parse failed.")}if(null==i)throw new p(r.InvalidToken,"putPolicy is null.");if(null==i.scope)throw new p(r.InvalidToken,"scope field is null.");var o=i.scope.split(":")[0];if(!o)throw new p(r.InvalidToken,"resolve bucketName failed.");return{assessKey:n,bucketName:o,scope:i.scope}}var T="z1",R="z2",L="na0",Q="as0",D="cn-east-2",q=((_={})["z0"]={srcUphost:["up.qiniup.com"],cdnUphost:["upload.qiniup.com"]},_[T]={srcUphost:["up-z1.qiniup.com"],cdnUphost:["upload-z1.qiniup.com"]},_[R]={srcUphost:["up-z2.qiniup.com"],cdnUphost:["upload-z2.qiniup.com"]},_[L]={srcUphost:["up-na0.qiniup.com"],cdnUphost:["upload-na0.qiniup.com"]},_[Q]={srcUphost:["up-as0.qiniup.com"],cdnUphost:["upload-as0.qiniup.com"]},_[D]={srcUphost:["up-cn-east-2.qiniup.com"],cdnUphost:["upload-cn-east-2.qiniup.com"]},_),z=n("1nuA"),M=this&&this.__assign||function(){return(M=Object.assign||function(t){for(var e,n=1,i=arguments.length;n0&&r[r.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]0&&r[r.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]0)&&!(i=o.next()).done;)a.push(i.value)}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a},tt=4,et=[0,502,503,504,599],nt=(this&&this.__spread||function(){for(var t=[],e=0;e1e4*it)return this.handleError(new p(r.InvalidFile,"file size exceed maximum value 10000G")),[2];if(this.putExtra.customVars&&(o=this.putExtra.customVars,!Object.keys(o).every(function(t){return 0===t.indexOf("x:")})))return this.handleError(new p(r.InvalidCustomVars,"customVars key should start width x:")),[2];if(this.putExtra.metadata&&!function(t){return Object.keys(t).every(function(t){return 0===t.indexOf("x-qn-meta-")})}(this.putExtra.metadata))return this.handleError(new p(r.InvalidMetadata,"metadata key should start with x-qn-meta-")),[2];i.label=1;case 1:return i.trys.push([1,4,,5]),this.uploadAt=(new Date).getTime(),[4,this.checkAndUpdateUploadHost()];case 2:return i.sent(),[4,this.run()];case 3:return t=i.sent(),this.onComplete(t.data),this.checkAndUnfreezeHost(),this.sendLog(t.reqId,200),[2];case 4:return e=i.sent(),this.aborted?(this.logger.warn("upload is aborted."),this.sendLog("",-2),[2]):(this.clear(),this.logger.error(e),e instanceof f&&(this.sendLog(e.reqId,e.code),this.checkAndFreezeHost(e),n=++this.retryCount<=this.config.retryCount,nt.includes(e.code)&&n)?(this.logger.warn("error auto retry: "+this.retryCount+"/"+this.config.retryCount+"."),this.putFile(),[2]):(this.onError(e),[3,5]));case 5:return[2]}var o})})},t.prototype.clear=function(){this.xhrList.forEach(function(t){t.onreadystatechange=null,t.abort()}),this.xhrList=[],this.logger.info("cleanup uploading xhr.")},t.prototype.stop=function(){this.logger.info("aborted."),this.clear(),this.aborted=!0},t.prototype.addXhr=function(t){this.xhrList.push(t)},t.prototype.sendLog=function(t,e){var n,i;this.logger.report({code:e,reqId:t,remoteIp:"",upType:"jssdk-h5",size:this.file.size,time:Math.floor(this.uploadAt/1e3),port:function(t){if(t&&t.match){var e=t.match(/(^https?)/);if(!e)return"";var n=e[1];return(e=t.match(/^https?:\/\/([^:^/]*):(\d*)/))?e[2]:"http"===n?"80":"443"}return""}(null===(n=this.uploadHost)||void 0===n?void 0:n.getUrl()),host:function(t){if(t&&t.match){var e=t.match(/^https?:\/\/([^:^/]*)/);return e?e[1]:""}return""}(null===(i=this.uploadHost)||void 0===i?void 0:i.getUrl()),bytesSent:this.progress?this.progress.total.loaded:0,duration:Math.floor(((new Date).getTime()-this.uploadAt)/1e3)})},t.prototype.getProgressInfoItem=function(t,e,n){return Z({size:e,loaded:t,percent:t/e*100},null==n?{}:{fromCache:n})},t}(),ot=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),at=this&&this.__assign||function(){return(at=Object.assign||function(t){for(var e,n=1,i=arguments.length;n0&&r[r.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]1024)throw new p(r.InvalidChunkSize,"chunkSize maximum value is 1024");return[4,this.initBeforeUploadChunks()];case 1:s.sent(),t=new v(function(e){return st(a,void 0,void 0,function(){return ut(this,function(n){switch(n.label){case 0:if(this.aborted)throw t.abort(),new Error("pool is aborted");return[4,this.uploadChunk(e)];case 1:return n.sent(),[2]}})})},this.config.concurrentRequestLimit),e=null,n=this.getLocalKey(),i=this.chunks.map(function(e,n){return t.enqueue({chunk:e,index:n})}),s.label=2;case 2:return s.trys.push([2,5,,6]),[4,Promise.all(i)];case 3:return s.sent(),[4,this.mkFileReq()];case 4:return e=s.sent(),[3,6];case 5:throw(o=s.sent())instanceof f&&(612===o.code||400===o.code)&&U(n,this.logger),o;case 6:return U(n,this.logger),[2,e]}var u})})},e.prototype.uploadChunk=function(t){return st(this,void 0,void 0,function(){var e,n,i,r,o,a,s,u,c,h=this;return ut(this,function(l){switch(l.label){case 0:return e=t.index,n=t.chunk,i=this.cachedUploadedList[e],this.logger.info("upload part "+e+", cache:",i),r=this.config.checkByMD5,o=function(){h.usedCacheList[e]=!0,h.updateChunkProgress(n.size,e),h.uploadedList[e]=i,h.updateLocalCache()},i&&!r?(o(),[2]):[4,j(n)];case 1:return a=l.sent(),this.logger.info("computed part md5.",a),i&&a===i.md5?(o(),[2]):(this.usedCacheList[e]=!1,s=function(t){h.updateChunkProgress(t.loaded,e)},u={body:n,md5:this.config.checkByServer?a:void 0,onProgress:s,onCreate:function(t){return h.addXhr(t)}},this.logger.info("part "+e+" start uploading."),[4,G(this.token,this.key,t.index+1,this.getUploadInfo(),u)]);case 2:return c=l.sent(),this.logger.info("part "+e+" upload completed."),s({loaded:n.size,total:n.size}),this.uploadedList[e]={etag:c.data.etag,md5:c.data.md5,size:n.size},this.updateLocalCache(),[2]}})})},e.prototype.mkFileReq=function(){return st(this,void 0,void 0,function(){var t,e,n=this;return ut(this,function(i){switch(i.label){case 0:return t=at(at(at({parts:this.uploadedList.map(function(t,e){return{etag:t.etag,partNumber:e+1}}),fname:this.putExtra.fname},this.putExtra.mimeType&&{mimeType:this.putExtra.mimeType}),this.putExtra.customVars&&{customVars:this.putExtra.customVars}),this.putExtra.metadata&&{metadata:this.putExtra.metadata}),this.logger.info("parts upload completed, make file.",t),[4,K(this.token,this.key,this.getUploadInfo(),{onCreate:function(t){return n.addXhr(t)},body:JSON.stringify(t)})];case 1:return e=i.sent(),this.logger.info("finish Resume Progress."),this.updateMkFileProgress(1),[2,e]}})})},e.prototype.initBeforeUploadChunks=function(){return st(this,void 0,void 0,function(){var t,e,n;return ut(this,function(i){switch(i.label){case 0:return this.uploadedList=[],this.usedCacheList=[],(t=function(t,e){var n=null;try{n=localStorage.getItem(t)}catch(n){e.warn(new p(r.ReadCacheFailed,"getLocalFileInfo failed. key: "+t))}if(null==n)return null;var i=null;try{i=JSON.parse(n)}catch(n){U(t,e),e.warn(new p(r.InvalidCacheData,"getLocalFileInfo failed to parse. key: "+t))}return i}(this.getLocalKey(),this.logger))?[3,2]:(this.logger.info("init upload parts from api."),[4,(o=this.token,a=this.bucketName,s=this.key,u=this.uploadHost.getUrl(),F(u+"/buckets/"+a+"/objects/"+(null!=s?C(s):"~")+"/uploads",{method:"POST",headers:O(o)}))]);case 1:return e=i.sent(),this.logger.info("initd upload parts of id: "+e.data.uploadId+"."),this.uploadId=e.data.uploadId,this.cachedUploadedList=[],[3,3];case 2:n=["resume upload parts from local cache,","total "+t.data.length+" part,","id is "+t.id+"."],this.logger.info(n.join(" ")),this.cachedUploadedList=t.data,this.uploadId=t.id,i.label=3;case 3:return this.chunks=function(t,e){var n=e*S;if(n>t.size)n=t.size;else for(;t.size>1e4*n;)n*=2;for(var i=[],r=Math.ceil(t.size/n),o=0;o0&&r[r.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]>>1^3988292384:n>>>=1;t[e]=n}return t},t.prototype.append=function(t){for(var e=this.crc,n=0;n>>8^this.table[255&(e^t[n])];this.crc=e},t.prototype.compute=function(){return(-1^this.crc)>>>0},t.prototype.readAsUint8Array=function(t){return ht(this,void 0,void 0,function(){var e;return lt(this,function(n){switch(n.label){case 0:return"function"!=typeof t.arrayBuffer?[3,2]:(e=Uint8Array.bind,[4,t.arrayBuffer()]);case 1:return[2,new(e.apply(Uint8Array,[void 0,n.sent()]))];case 2:return[2,new Promise(function(e,n){var i=new FileReader;i.onload=function(){null!=i.result&&"string"!=typeof i.result?e(new Uint8Array(i.result)):n()},i.readAsArrayBuffer(t)})]}})})},t.prototype.file=function(t){return ht(this,void 0,void 0,function(){var e,n,i,r,o,a;return lt(this,function(s){switch(s.label){case 0:return t.size<=S?(e=this.append,[4,this.readAsUint8Array(t)]):[3,2];case 1:return e.apply(this,[s.sent()]),[2,this.compute()];case 2:n=Math.ceil(t.size/S),i=0,s.label=3;case 3:return i0&&r[r.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]0)&&!(i=o.next()).done;)a.push(i.value)}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a},mt=this&&this.__spread||function(){for(var t=[],e=0;e0&&t(e,n,i-1)};var o=[n.code||"",n.reqId||"",n.host||"",n.remoteIp||"",n.port||"",n.duration||"",n.time||"",n.bytesSent||"",n.upType||"",n.size||""].join(",");r.send(o)}(this.token,t,e)}catch(t){this.warn(t)}},t.prototype.info=function(){for(var t=[],e=0;e0&&r[r.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]0)&&!(i=o.next()).done;)a.push(i.value)}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a},_t=this&&this.__spread||function(){for(var t=[],e=0;e=t},t.prototype.freeze=function(t){void 0===t&&(t=20);var e=(new Date).getTime()+1e3*t;kt.set(this.host,e)},t.prototype.unfreeze=function(){kt.delete(this.host)},t.prototype.getUrl=function(){return this.protocol+"://"+this.host},t.prototype.getUnfreezeTime=function(){return kt.get(this.host)},t}(),Pt=function(){function t(t){void 0===t&&(t=[]),this.initHosts=t,this.cachedHostsMap=new Map}return t.prototype.register=function(t,e,n,i){this.cachedHostsMap.set(t+"@"+e,n.map(function(t){return new It(t,i)}))},t.prototype.refresh=function(t,e,n){var i,r,o,a;return wt(this,void 0,void 0,function(){var s,u;return At(this,function(c){switch(c.label){case 0:return(this.cachedHostsMap.get(t+"@"+e)||[]).length>0?[2]:this.initHosts.length>0?(this.register(t,e,this.initHosts,n),[2]):[4,V(t,e,n)];case 1:return null!=(null===(s=c.sent())||void 0===s?void 0:s.data)&&(u=_t((null===(r=null===(i=s.data.up)||void 0===i?void 0:i.acc)||void 0===r?void 0:r.main)||[],(null===(a=null===(o=s.data.up)||void 0===o?void 0:o.acc)||void 0===a?void 0:a.backup)||[]),this.register(t,e,u,n)),[2]}})})},t.prototype.getUp=function(t,e,n){return wt(this,void 0,void 0,function(){var i,r;return At(this,function(o){switch(o.label){case 0:return[4,this.refresh(t,e,n)];case 1:return o.sent(),0===(i=this.cachedHostsMap.get(t+"@"+e)||[]).length?[2,null]:(r=i.filter(function(t){return!t.isFrozen()})).length>0?[2,r[0]]:[2,i.slice().sort(function(t,e){return(t.getUnfreezeTime()||0)-(e.getUnfreezeTime()||0)})[0]]}})})},t}();function xt(t,e,n,i,r){var o=new bt(n,null===r||void 0===r?void 0:r.disableStatisticsReport,null===r||void 0===r?void 0:r.debugLogLevel,t.name),a={file:t,key:e,token:n,putExtra:i,config:Bt(r,o)},s=new Pt(a.config.uphost);return new b(function(t){var e=function(t,e,n,i){return t.config&&t.config.forceDirect?(i.info("ues forceDirect mode."),new gt(t,e,n,i)):t.file.size>4*S?(i.info("file size over 4M, use Resume."),new ct(t,e,n,i)):(i.info("file size less or equal than 4M, use Direct."),new gt(t,e,n,i))}(a,{onData:function(e){return t.next(e)},onError:function(e){return t.error(e)},onComplete:function(e){return t.complete(e)}},s,o);return e.putFile(),e.stop.bind(e)})}var Et=this&&this.__assign||function(){return(Et=Object.assign||function(t){for(var e,n=1,i=arguments.length;n0)&&!(i=o.next()).done;)a.push(i.value)}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a},Ot=this&&this.__spread||function(){for(var t=[],e=0;e0&&r[r.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]this.file.size&&this.config.noCompressIfLarger?[2,{dist:this.file,width:t.width,height:t.height}]:[2,{dist:a,width:o.width,height:o.height}]}var u})})},t.prototype.clear=function(t,e,n){this.outputType===Qt?(t.fillStyle="#fff",t.fillRect(0,0,e,n)):t.clearRect(0,0,e,n)},t.prototype.getOriginImage=function(){var t=this;return new Promise(function(e,n){var i,r=(i=t.file,(window.URL||window.webkitURL||window.mozURL).createObjectURL(i)),o=new Image;o.onload=function(){e(o)},o.onerror=function(){n("image load error")},o.src=r})},t.prototype.getCanvas=function(t){var e=this;return new Promise(function(n,i){var o=document.createElement("canvas"),a=o.getContext("2d");if(a){var s=t.width,u=t.height;o.height=u,o.width=s,e.clear(a,s,u),a.drawImage(t,0,0),n(o)}else i(new p(r.GetCanvasContextFailed,"context is null"))})},t.prototype.doScale=function(t,e){return Ft(this,void 0,void 0,function(){var n,i,o,a,s,u,c,h,l,f,d,v,g,y,m,b;return Nt(this,function(w){if(1===e)return[2,t];if(n=t.getContext("2d"),i=Math.min(4,Math.ceil(1/e/Rt)),o=Math.pow(e,1/i),a=document.createElement("canvas"),s=a.getContext("2d"),u=t.width,c=t.height,h=u,l=c,a.width=u,a.height=c,!s||!n)throw new p(r.GetCanvasContextFailed,"mctx or sctx can't be null");for(v=0;v0&&c>u&&(c=u);for(var h=0;h=0?(l=v.substr(0,g),p=v.substr(g+1)):(l=v,p=""),f=decodeURIComponent(l),d=decodeURIComponent(p),i(a,f)?r(a[f])?a[f].push(d):a[f]=[a[f],d]:a[f]=d}return a};var r=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},vruV:function(t,e,n){t.exports=n.p+"static/fonts/idcard-end-default.c62a85c.png"},xaZU:function(t,e,n){"use strict";var i=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,s){return e=e||"&",n=n||"=",null===t&&(t=void 0),"object"==typeof t?o(a(t),function(a){var s=encodeURIComponent(i(a))+n;return r(t[a])?o(t[a],function(t){return s+encodeURIComponent(i(t))}).join(e):s+encodeURIComponent(i(t[a]))}).join(e):s?encodeURIComponent(i(s))+n+encodeURIComponent(i(t)):""};var r=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function o(t,e){if(t.map)return t.map(e);for(var n=[],i=0;i