| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["common/vendor"],{0:function(e,t){},"00ae":function(e,t,r){(function(n){var i,o,a,s=r("3b2d");(function(r,n){"object"===s(t)?e.exports=t=n():(o=[],i=n,a="function"===typeof i?i.apply(t,o):i,void 0===a||(e.exports=a))})(0,(function(){var e=e||function(e,t){var i;if("undefined"!==typeof window&&window.crypto&&(i=window.crypto),"undefined"!==typeof self&&self.crypto&&(i=self.crypto),"undefined"!==typeof globalThis&&globalThis.crypto&&(i=globalThis.crypto),!i&&"undefined"!==typeof window&&window.msCrypto&&(i=window.msCrypto),!i&&"undefined"!==typeof n&&n.crypto&&(i=n.crypto),!i)try{i=r("548f")}catch(v){}var o=function(){if(i){if("function"===typeof i.getRandomValues)try{return i.getRandomValues(new Uint32Array(1))[0]}catch(v){}if("function"===typeof i.randomBytes)try{return i.randomBytes(4).readInt32LE()}catch(v){}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),s={},u=s.lib={},c=u.Base=function(){return{extend:function(e){var t=a(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),f=u.WordArray=c.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=void 0!=t?t:4*e.length},toString:function(e){return(e||d).stringify(this)},concat:function(e){var t=this.words,r=e.words,n=this.sigBytes,i=e.sigBytes;if(this.clamp(),n%4)for(var o=0;o<i;o++){var a=r[o>>>2]>>>24-o%4*8&255;t[n+o>>>2]|=a<<24-(n+o)%4*8}else for(var s=0;s<i;s+=4)t[n+s>>>2]=r[s>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=c.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],r=0;r<e;r+=4)t.push(o());return new f.init(t,e)}}),l=s.enc={},d=l.Hex={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i++){var o=t[i>>>2]>>>24-i%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n+=2)r[n>>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new f.init(r,t/2)}},h=l.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i++){var o=t[i>>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(o))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n++)r[n>>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new f.init(r,t)}},p=l.Utf8={stringify:function(e){try{return decodeURIComponent(escape(h.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return h.parse(unescape(encodeURIComponent(e)))}},g=u.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new f.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=p.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r,n=this._data,i=n.words,o=n.sigBytes,a=this.blockSize,s=4*a,u=o/s;u=t?e.ceil(u):e.max((0|u)-this._minBufferSize,0);var c=u*a,l=e.min(4*c,o);if(c){for(var d=0;d<c;d+=a)this._doProcessBlock(i,d);r=i.splice(0,c),n.sigBytes-=l}return new f.init(r,l)},clone:function(){var e=c.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),y=(u.Hasher=g.extend({cfg:c.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){g.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){e&&this._append(e);var t=this._doFinalize();return t},blockSize:16,_createHelper:function(e){return function(t,r){return new e.init(r).finalize(t)}},_createHmacHelper:function(e){return function(t,r){return new y.HMAC.init(e,r).finalize(t)}}}),s.algo={});return s}(Math);return function(t){var r=e,n=r.lib,i=n.Base,o=n.WordArray,a=r.x64={};a.Word=i.extend({init:function(e,t){this.high=e,this.low=t}}),a.WordArray=i.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=void 0!=t?t:8*e.length},toX32:function(){for(var e=this.words,t=e.length,r=[],n=0;n<t;n++){var i=e[n];r.push(i.high),r.push(i.low)}return o.create(r,this.sigBytes)},clone:function(){for(var e=i.clone.call(this),t=e.words=this.words.slice(0),r=t.length,n=0;n<r;n++)t[n]=t[n].clone();return e}})}(),function(){if("function"==typeof ArrayBuffer){var t=e,r=t.lib,n=r.WordArray,i=n.init,o=n.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!==typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var t=e.byteLength,r=[],n=0;n<t;n++)r[n>>>2]|=e[n]<<24-n%4*8;i.call(this,r,t)}else i.apply(this,arguments)};o.prototype=n}}(),function(){var t=e,r=t.lib,n=r.WordArray,i=t.enc;i.Utf16=i.Utf16BE={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i+=2){var o=t[i>>>2]>>>16-i%4*8&65535;n.push(String.fromCharCode(o))}return n.join("")},parse:function(e){for(var t=e.length,r=[],i=0;i<t;i++)r[i>>>1]|=e.charCodeAt(i)<<16-i%2*16;return n.create(r,2*t)}};function o(e){return e<<8&4278255360|e>>>8&16711935}i.Utf16LE={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i+=2){var a=o(t[i>>>2]>>>16-i%4*8&65535);n.push(String.fromCharCode(a))}return n.join("")},parse:function(e){for(var t=e.length,r=[],i=0;i<t;i++)r[i>>>1]|=o(e.charCodeAt(i)<<16-i%2*16);return n.create(r,2*t)}}}(),function(){var t=e,r=t.lib,n=r.WordArray,i=t.enc;i.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,n=this._map;e.clamp();for(var i=[],o=0;o<r;o+=3)for(var a=t[o>>>2]>>>24-o%4*8&255,s=t[o+1>>>2]>>>24-(o+1)%4*8&255,u=t[o+2>>>2]>>>24-(o+2)%4*8&255,c=a<<16|s<<8|u,f=0;f<4&&o+.75*f<r;f++)i.push(n.charAt(c>>>6*(3-f)&63));var l=n.charAt(64);if(l)while(i.length%4)i.push(l);return i.join("")},parse:function(e){var t=e.length,r=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var o=0;o<r.length;o++)i[r.charCodeAt(o)]=o}var a=r.charAt(64);if(a){var s=e.indexOf(a);-1!==s&&(t=s)}return function(e,t,r){for(var i=[],o=0,a=0;a<t;a++)if(a%4){var s=r[e.charCodeAt(a-1)]<<a%4*2,u=r[e.charCodeAt(a)]>>>6-a%4*2,c=s|u;i[o>>>2]|=c<<24-o%4*8,o++}return n.create(i,o)}(e,t,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),function(){var t=e,r=t.lib,n=r.WordArray,i=t.enc;i.Base64url={stringify:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=e.words,n=e.sigBytes,i=t?this._safe_map:this._map;e.clamp();for(var o=[],a=0;a<n;a+=3)for(var s=r[a>>>2]>>>24-a%4*8&255,u=r[a+1>>>2]>>>24-(a+1)%4*8&255,c=r[a+2>>>2]>>>24-(a+2)%4*8&255,f=s<<16|u<<8|c,l=0;l<4&&a+.75*l<n;l++)o.push(i.charAt(f>>>6*(3-l)&63));var d=i.charAt(64);if(d)while(o.length%4)o.push(d);return o.join("")},parse:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=e.length,n=t?this._safe_map:this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var a=0;a<n.length;a++)i[n.charCodeAt(a)]=a}var s=n.charAt(64);if(s){var u=e.indexOf(s);-1!==u&&(r=u)}return o(e,r,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function o(e,t,r){for(var i=[],o=0,a=0;a<t;a++)if(a%4){var s=r[e.charCodeAt(a-1)]<<a%4*2,u=r[e.charCodeAt(a)]>>>6-a%4*2,c=s|u;i[o>>>2]|=c<<24-o%4*8,o++}return n.create(i,o)}}(),function(t){var r=e,n=r.lib,i=n.WordArray,o=n.Hasher,a=r.algo,s=[];(function(){for(var e=0;e<64;e++)s[e]=4294967296*t.abs(t.sin(e+1))|0})();var u=a.MD5=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,a=e[t+0],u=e[t+1],h=e[t+2],p=e[t+3],g=e[t+4],y=e[t+5],v=e[t+6],b=e[t+7],m=e[t+8],_=e[t+9],w=e[t+10],A=e[t+11],S=e[t+12],x=e[t+13],E=e[t+14],C=e[t+15],O=o[0],I=o[1],T=o[2],P=o[3];O=c(O,I,T,P,a,7,s[0]),P=c(P,O,I,T,u,12,s[1]),T=c(T,P,O,I,h,17,s[2]),I=c(I,T,P,O,p,22,s[3]),O=c(O,I,T,P,g,7,s[4]),P=c(P,O,I,T,y,12,s[5]),T=c(T,P,O,I,v,17,s[6]),I=c(I,T,P,O,b,22,s[7]),O=c(O,I,T,P,m,7,s[8]),P=c(P,O,I,T,_,12,s[9]),T=c(T,P,O,I,w,17,s[10]),I=c(I,T,P,O,A,22,s[11]),O=c(O,I,T,P,S,7,s[12]),P=c(P,O,I,T,x,12,s[13]),T=c(T,P,O,I,E,17,s[14]),I=c(I,T,P,O,C,22,s[15]),O=f(O,I,T,P,u,5,s[16]),P=f(P,O,I,T,v,9,s[17]),T=f(T,P,O,I,A,14,s[18]),I=f(I,T,P,O,a,20,s[19]),O=f(O,I,T,P,y,5,s[20]),P=f(P,O,I,T,w,9,s[21]),T=f(T,P,O,I,C,14,s[22]),I=f(I,T,P,O,g,20,s[23]),O=f(O,I,T,P,_,5,s[24]),P=f(P,O,I,T,E,9,s[25]),T=f(T,P,O,I,p,14,s[26]),I=f(I,T,P,O,m,20,s[27]),O=f(O,I,T,P,x,5,s[28]),P=f(P,O,I,T,h,9,s[29]),T=f(T,P,O,I,b,14,s[30]),I=f(I,T,P,O,S,20,s[31]),O=l(O,I,T,P,y,4,s[32]),P=l(P,O,I,T,m,11,s[33]),T=l(T,P,O,I,A,16,s[34]),I=l(I,T,P,O,E,23,s[35]),O=l(O,I,T,P,u,4,s[36]),P=l(P,O,I,T,g,11,s[37]),T=l(T,P,O,I,b,16,s[38]),I=l(I,T,P,O,w,23,s[39]),O=l(O,I,T,P,x,4,s[40]),P=l(P,O,I,T,a,11,s[41]),T=l(T,P,O,I,p,16,s[42]),I=l(I,T,P,O,v,23,s[43]),O=l(O,I,T,P,_,4,s[44]),P=l(P,O,I,T,S,11,s[45]),T=l(T,P,O,I,C,16,s[46]),I=l(I,T,P,O,h,23,s[47]),O=d(O,I,T,P,a,6,s[48]),P=d(P,O,I,T,b,10,s[49]),T=d(T,P,O,I,E,15,s[50]),I=d(I,T,P,O,y,21,s[51]),O=d(O,I,T,P,S,6,s[52]),P=d(P,O,I,T,p,10,s[53]),T=d(T,P,O,I,w,15,s[54]),I=d(I,T,P,O,u,21,s[55]),O=d(O,I,T,P,m,6,s[56]),P=d(P,O,I,T,C,10,s[57]),T=d(T,P,O,I,v,15,s[58]),I=d(I,T,P,O,x,21,s[59]),O=d(O,I,T,P,g,6,s[60]),P=d(P,O,I,T,A,10,s[61]),T=d(T,P,O,I,h,15,s[62]),I=d(I,T,P,O,_,21,s[63]),o[0]=o[0]+O|0,o[1]=o[1]+I|0,o[2]=o[2]+T|0,o[3]=o[3]+P|0},_doFinalize:function(){var e=this._data,r=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;r[i>>>5]|=128<<24-i%32;var o=t.floor(n/4294967296),a=n;r[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),r[14+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),e.sigBytes=4*(r.length+1),this._process();for(var s=this._hash,u=s.words,c=0;c<4;c++){var f=u[c];u[c]=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8)}return s},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,r,n,i,o,a){var s=e+(t&r|~t&n)+i+a;return(s<<o|s>>>32-o)+t}function f(e,t,r,n,i,o,a){var s=e+(t&n|r&~n)+i+a;return(s<<o|s>>>32-o)+t}function l(e,t,r,n,i,o,a){var s=e+(t^r^n)+i+a;return(s<<o|s>>>32-o)+t}function d(e,t,r,n,i,o,a){var s=e+(r^(t|~n))+i+a;return(s<<o|s>>>32-o)+t}r.MD5=o._createHelper(u),r.HmacMD5=o._createHmacHelper(u)}(Math),function(){var t=e,r=t.lib,n=r.WordArray,i=r.Hasher,o=t.algo,a=[],s=o.SHA1=i.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],s=r[3],u=r[4],c=0;c<80;c++){if(c<16)a[c]=0|e[t+c];else{var f=a[c-3]^a[c-8]^a[c-14]^a[c-16];a[c]=f<<1|f>>>31}var l=(n<<5|n>>>27)+u+a[c];l+=c<20?1518500249+(i&o|~i&s):c<40?1859775393+(i^o^s):c<60?(i&o|i&s|o&s)-1894007588:(i^o^s)-899497514,u=s,s=o,o=i<<30|i>>>2,i=n,n=l}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+s|0,r[4]=r[4]+u|0},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=Math.floor(r/4294967296),t[15+(n+64>>>9<<4)]=r,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA1=i._createHelper(s),t.HmacSHA1=i._createHmacHelper(s)}(),function(t){var r=e,n=r.lib,i=n.WordArray,o=n.Hasher,a=r.algo,s=[],u=[];(function(){function e(e){for(var r=t.sqrt(e),n=2;n<=r;n++)if(!(e%n))return!1;return!0}function r(e){return 4294967296*(e-(0|e))|0}var n=2,i=0;while(i<64)e(n)&&(i<8&&(s[i]=r(t.pow(n,.5))),u[i]=r(t.pow(n,1/3)),i++),n++})();var c=[],f=a.SHA256=o.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],f=r[5],l=r[6],d=r[7],h=0;h<64;h++){if(h<16)c[h]=0|e[t+h];else{var p=c[h-15],g=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,y=c[h-2],v=(y<<15|y>>>17)^(y<<13|y>>>19)^y>>>10;c[h]=g+c[h-7]+v+c[h-16]}var b=s&f^~s&l,m=n&i^n&o^i&o,_=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),w=(s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25),A=d+w+b+u[h]+c[h],S=_+m;d=l,l=f,f=s,s=a+A|0,a=o,o=i,i=n,n=A+S|0}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0,r[5]=r[5]+f|0,r[6]=r[6]+l|0,r[7]=r[7]+d|0},_doFinalize:function(){var e=this._data,r=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;return r[i>>>5]|=128<<24-i%32,r[14+(i+64>>>9<<4)]=t.floor(n/4294967296),r[15+(i+64>>>9<<4)]=n,e.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});r.SHA256=o._createHelper(f),r.HmacSHA256=o._createHmacHelper(f)}(Math),function(){var t=e,r=t.lib,n=r.WordArray,i=t.algo,o=i.SHA256,a=i.SHA224=o.extend({_doReset:function(){this._hash=new n.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=o._doFinalize.call(this);return e.sigBytes-=4,e}});t.SHA224=o._createHelper(a),t.HmacSHA224=o._createHmacHelper(a)}(),function(){var t=e,r=t.lib,n=r.Hasher,i=t.x64,o=i.Word,a=i.WordArray,s=t.algo;function u(){return o.create.apply(o,arguments)}var c=[u(1116352408,3609767458),u(1899447441,602891725),u(3049323471,3964484399),u(3921009573,2173295548),u(961987163,4081628472),u(1508970993,3053834265),u(2453635748,2937671579),u(2870763221,3664609560),u(3624381080,2734883394),u(310598401,1164996542),u(607225278,1323610764),u(1426881987,3590304994),u(1925078388,4068182383),u(2162078206,991336113),u(2614888103,633803317),u(3248222580,3479774868),u(3835390401,2666613458),u(4022224774,944711139),u(264347078,2341262773),u(604807628,2007800933),u(770255983,1495990901),u(1249150122,1856431235),u(1555081692,3175218132),u(1996064986,2198950837),u(2554220882,3999719339),u(2821834349,766784016),u(2952996808,2566594879),u(3210313671,3203337956),u(3336571891,1034457026),u(3584528711,2466948901),u(113926993,3758326383),u(338241895,168717936),u(666307205,1188179964),u(773529912,1546045734),u(1294757372,1522805485),u(1396182291,2643833823),u(1695183700,2343527390),u(1986661051,1014477480),u(2177026350,1206759142),u(2456956037,344077627),u(2730485921,1290863460),u(2820302411,3158454273),u(3259730800,3505952657),u(3345764771,106217008),u(3516065817,3606008344),u(3600352804,1432725776),u(4094571909,1467031594),u(275423344,851169720),u(430227734,3100823752),u(506948616,1363258195),u(659060556,3750685593),u(883997877,3785050280),u(958139571,3318307427),u(1322822218,3812723403),u(1537002063,2003034995),u(1747873779,3602036899),u(1955562222,1575990012),u(2024104815,1125592928),u(2227730452,2716904306),u(2361852424,442776044),u(2428436474,593698344),u(2756734187,3733110249),u(3204031479,2999351573),u(3329325298,3815920427),u(3391569614,3928383900),u(3515267271,566280711),u(3940187606,3454069534),u(4118630271,4000239992),u(116418474,1914138554),u(174292421,2731055270),u(289380356,3203993006),u(460393269,320620315),u(685471733,587496836),u(852142971,1086792851),u(1017036298,365543100),u(1126000580,2618297676),u(1288033470,3409855158),u(1501505948,4234509866),u(1607167915,987167468),u(1816402316,1246189591)],f=[];(function(){for(var e=0;e<80;e++)f[e]=u()})();var l=s.SHA512=n.extend({_doReset:function(){this._hash=new a.init([new o.init(1779033703,4089235720),new o.init(3144134277,2227873595),new o.init(1013904242,4271175723),new o.init(2773480762,1595750129),new o.init(1359893119,2917565137),new o.init(2600822924,725511199),new o.init(528734635,4215389547),new o.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],u=r[5],l=r[6],d=r[7],h=n.high,p=n.low,g=i.high,y=i.low,v=o.high,b=o.low,m=a.high,_=a.low,w=s.high,A=s.low,S=u.high,x=u.low,E=l.high,C=l.low,O=d.high,I=d.low,T=h,P=p,M=g,k=y,R=v,D=b,N=m,B=_,L=w,j=A,F=S,U=x,z=E,H=C,q=O,V=I,W=0;W<80;W++){var G,X,K=f[W];if(W<16)X=K.high=0|e[t+2*W],G=K.low=0|e[t+2*W+1];else{var $=f[W-15],Y=$.high,Z=$.low,J=(Y>>>1|Z<<31)^(Y>>>8|Z<<24)^Y>>>7,Q=(Z>>>1|Y<<31)^(Z>>>8|Y<<24)^(Z>>>7|Y<<25),ee=f[W-2],te=ee.high,re=ee.low,ne=(te>>>19|re<<13)^(te<<3|re>>>29)^te>>>6,ie=(re>>>19|te<<13)^(re<<3|te>>>29)^(re>>>6|te<<26),oe=f[W-7],ae=oe.high,se=oe.low,ue=f[W-16],ce=ue.high,fe=ue.low;G=Q+se,X=J+ae+(G>>>0<Q>>>0?1:0),G+=ie,X=X+ne+(G>>>0<ie>>>0?1:0),G+=fe,X=X+ce+(G>>>0<fe>>>0?1:0),K.high=X,K.low=G}var le=L&F^~L&z,de=j&U^~j&H,he=T&M^T&R^M&R,pe=P&k^P&D^k&D,ge=(T>>>28|P<<4)^(T<<30|P>>>2)^(T<<25|P>>>7),ye=(P>>>28|T<<4)^(P<<30|T>>>2)^(P<<25|T>>>7),ve=(L>>>14|j<<18)^(L>>>18|j<<14)^(L<<23|j>>>9),be=(j>>>14|L<<18)^(j>>>18|L<<14)^(j<<23|L>>>9),me=c[W],_e=me.high,we=me.low,Ae=V+be,Se=q+ve+(Ae>>>0<V>>>0?1:0),xe=(Ae=Ae+de,Se=Se+le+(Ae>>>0<de>>>0?1:0),Ae=Ae+we,Se=Se+_e+(Ae>>>0<we>>>0?1:0),Ae=Ae+G,Se=Se+X+(Ae>>>0<G>>>0?1:0),ye+pe),Ee=ge+he+(xe>>>0<ye>>>0?1:0);q=z,V=H,z=F,H=U,F=L,U=j,j=B+Ae|0,L=N+Se+(j>>>0<B>>>0?1:0)|0,N=R,B=D,R=M,D=k,M=T,k=P,P=Ae+xe|0,T=Se+Ee+(P>>>0<Ae>>>0?1:0)|0}p=n.low=p+P,n.high=h+T+(p>>>0<P>>>0?1:0),y=i.low=y+k,i.high=g+M+(y>>>0<k>>>0?1:0),b=o.low=b+D,o.high=v+R+(b>>>0<D>>>0?1:0),_=a.low=_+B,a.high=m+N+(_>>>0<B>>>0?1:0),A=s.low=A+j,s.high=w+L+(A>>>0<j>>>0?1:0),x=u.low=x+U,u.high=S+F+(x>>>0<U>>>0?1:0),C=l.low=C+H,l.high=E+z+(C>>>0<H>>>0?1:0),I=d.low=I+V,d.high=O+q+(I>>>0<V>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;t[n>>>5]|=128<<24-n%32,t[30+(n+128>>>10<<5)]=Math.floor(r/4294967296),t[31+(n+128>>>10<<5)]=r,e.sigBytes=4*t.length,this._process();var i=this._hash.toX32();return i},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});t.SHA512=n._createHelper(l),t.HmacSHA512=n._createHmacHelper(l)}(),function(){var t=e,r=t.x64,n=r.Word,i=r.WordArray,o=t.algo,a=o.SHA512,s=o.SHA384=a.extend({_doReset:function(){this._hash=new i.init([new n.init(3418070365,3238371032),new n.init(1654270250,914150663),new n.init(2438529370,812702999),new n.init(355462360,4144912697),new n.init(1731405415,4290775857),new n.init(2394180231,1750603025),new n.init(3675008525,1694076839),new n.init(1203062813,3204075428)])},_doFinalize:function(){var e=a._doFinalize.call(this);return e.sigBytes-=16,e}});t.SHA384=a._createHelper(s),t.HmacSHA384=a._createHmacHelper(s)}(),function(t){var r=e,n=r.lib,i=n.WordArray,o=n.Hasher,a=r.x64,s=a.Word,u=r.algo,c=[],f=[],l=[];(function(){for(var e=1,t=0,r=0;r<24;r++){c[e+5*t]=(r+1)*(r+2)/2%64;var n=t%5,i=(2*e+3*t)%5;e=n,t=i}for(e=0;e<5;e++)for(t=0;t<5;t++)f[e+5*t]=t+(2*e+3*t)%5*5;for(var o=1,a=0;a<24;a++){for(var u=0,d=0,h=0;h<7;h++){if(1&o){var p=(1<<h)-1;p<32?d^=1<<p:u^=1<<p-32}128&o?o=o<<1^113:o<<=1}l[a]=s.create(u,d)}})();var d=[];(function(){for(var e=0;e<25;e++)d[e]=s.create()})();var h=u.SHA3=o.extend({cfg:o.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],t=0;t<25;t++)e[t]=new s.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var r=this._state,n=this.blockSize/2,i=0;i<n;i++){var o=e[t+2*i],a=e[t+2*i+1];o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8);var s=r[i];s.high^=a,s.low^=o}for(var u=0;u<24;u++){for(var h=0;h<5;h++){for(var p=0,g=0,y=0;y<5;y++){s=r[h+5*y];p^=s.high,g^=s.low}var v=d[h];v.high=p,v.low=g}for(h=0;h<5;h++){var b=d[(h+4)%5],m=d[(h+1)%5],_=m.high,w=m.low;for(p=b.high^(_<<1|w>>>31),g=b.low^(w<<1|_>>>31),y=0;y<5;y++){s=r[h+5*y];s.high^=p,s.low^=g}}for(var A=1;A<25;A++){s=r[A];var S=s.high,x=s.low,E=c[A];E<32?(p=S<<E|x>>>32-E,g=x<<E|S>>>32-E):(p=x<<E-32|S>>>64-E,g=S<<E-32|x>>>64-E);var C=d[f[A]];C.high=p,C.low=g}var O=d[0],I=r[0];O.high=I.high,O.low=I.low;for(h=0;h<5;h++)for(y=0;y<5;y++){A=h+5*y,s=r[A];var T=d[A],P=d[(h+1)%5+5*y],M=d[(h+2)%5+5*y];s.high=T.high^~P.high&M.high,s.low=T.low^~P.low&M.low}s=r[0];var k=l[u];s.high^=k.high,s.low^=k.low}},_doFinalize:function(){var e=this._data,r=e.words,n=(this._nDataBytes,8*e.sigBytes),o=32*this.blockSize;r[n>>>5]|=1<<24-n%32,r[(t.ceil((n+1)/o)*o>>>5)-1]|=128,e.sigBytes=4*r.length,this._process();for(var a=this._state,s=this.cfg.outputLength/8,u=s/8,c=[],f=0;f<u;f++){var l=a[f],d=l.high,h=l.low;d=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),h=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),c.push(h),c.push(d)}return new i.init(c,s)},clone:function(){for(var e=o.clone.call(this),t=e._state=this._state.slice(0),r=0;r<25;r++)t[r]=t[r].clone();return e}});r.SHA3=o._createHelper(h),r.HmacSHA3=o._createHmacHelper(h)}(Math),
- /** @preserve
- (c) 2012 by Cédric Mesnil. All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
-
- - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
- function(t){var r=e,n=r.lib,i=n.WordArray,o=n.Hasher,a=r.algo,s=i.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),u=i.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),c=i.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),f=i.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),l=i.create([0,1518500249,1859775393,2400959708,2840853838]),d=i.create([1352829926,1548603684,1836072691,2053994217,0]),h=a.RIPEMD160=o.extend({_doReset:function(){this._hash=i.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o,a,h,_,w,A,S,x,E,C,O,I=this._hash.words,T=l.words,P=d.words,M=s.words,k=u.words,R=c.words,D=f.words;A=o=I[0],S=a=I[1],x=h=I[2],E=_=I[3],C=w=I[4];for(r=0;r<80;r+=1)O=o+e[t+M[r]]|0,O+=r<16?p(a,h,_)+T[0]:r<32?g(a,h,_)+T[1]:r<48?y(a,h,_)+T[2]:r<64?v(a,h,_)+T[3]:b(a,h,_)+T[4],O|=0,O=m(O,R[r]),O=O+w|0,o=w,w=_,_=m(h,10),h=a,a=O,O=A+e[t+k[r]]|0,O+=r<16?b(S,x,E)+P[0]:r<32?v(S,x,E)+P[1]:r<48?y(S,x,E)+P[2]:r<64?g(S,x,E)+P[3]:p(S,x,E)+P[4],O|=0,O=m(O,D[r]),O=O+C|0,A=C,C=E,E=m(x,10),x=S,S=O;O=I[1]+h+E|0,I[1]=I[2]+_+C|0,I[2]=I[3]+w+A|0,I[3]=I[4]+o+S|0,I[4]=I[0]+a+x|0,I[0]=O},_doFinalize:function(){var e=this._data,t=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),e.sigBytes=4*(t.length+1),this._process();for(var i=this._hash,o=i.words,a=0;a<5;a++){var s=o[a];o[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return i},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function p(e,t,r){return e^t^r}function g(e,t,r){return e&t|~e&r}function y(e,t,r){return(e|~t)^r}function v(e,t,r){return e&r|t&~r}function b(e,t,r){return e^(t|~r)}function m(e,t){return e<<t|e>>>32-t}r.RIPEMD160=o._createHelper(h),r.HmacRIPEMD160=o._createHmacHelper(h)}(Math),function(){var t=e,r=t.lib,n=r.Base,i=t.enc,o=i.Utf8,a=t.algo;a.HMAC=n.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=o.parse(t));var r=e.blockSize,n=4*r;t.sigBytes>n&&(t=e.finalize(t)),t.clamp();for(var i=this._oKey=t.clone(),a=this._iKey=t.clone(),s=i.words,u=a.words,c=0;c<r;c++)s[c]^=1549556828,u[c]^=909522486;i.sigBytes=a.sigBytes=n,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,r=t.finalize(e);t.reset();var n=t.finalize(this._oKey.clone().concat(r));return n}})}(),function(){var t=e,r=t.lib,n=r.Base,i=r.WordArray,o=t.algo,a=o.SHA1,s=o.HMAC,u=o.PBKDF2=n.extend({cfg:n.extend({keySize:4,hasher:a,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){var r=this.cfg,n=s.create(r.hasher,e),o=i.create(),a=i.create([1]),u=o.words,c=a.words,f=r.keySize,l=r.iterations;while(u.length<f){var d=n.update(t).finalize(a);n.reset();for(var h=d.words,p=h.length,g=d,y=1;y<l;y++){g=n.finalize(g),n.reset();for(var v=g.words,b=0;b<p;b++)h[b]^=v[b]}o.concat(d),c[0]++}return o.sigBytes=4*f,o}});t.PBKDF2=function(e,t,r){return u.create(r).compute(e,t)}}(),function(){var t=e,r=t.lib,n=r.Base,i=r.WordArray,o=t.algo,a=o.MD5,s=o.EvpKDF=n.extend({cfg:n.extend({keySize:4,hasher:a,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){var r,n=this.cfg,o=n.hasher.create(),a=i.create(),s=a.words,u=n.keySize,c=n.iterations;while(s.length<u){r&&o.update(r),r=o.update(e).finalize(t),o.reset();for(var f=1;f<c;f++)r=o.finalize(r),o.reset();a.concat(r)}return a.sigBytes=4*u,a}});t.EvpKDF=function(e,t,r){return s.create(r).compute(e,t)}}(),e.lib.Cipher||function(t){var r=e,n=r.lib,i=n.Base,o=n.WordArray,a=n.BufferedBlockAlgorithm,s=r.enc,u=(s.Utf8,s.Base64),c=r.algo,f=c.EvpKDF,l=n.Cipher=a.extend({cfg:i.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,r){this.cfg=this.cfg.extend(r),this._xformMode=e,this._key=t,this.reset()},reset:function(){a.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){e&&this._append(e);var t=this._doFinalize();return t},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?S:_}return function(t){return{encrypt:function(r,n,i){return e(n).encrypt(t,r,n,i)},decrypt:function(r,n,i){return e(n).decrypt(t,r,n,i)}}}}()}),d=(n.StreamCipher=l.extend({_doFinalize:function(){var e=this._process(!0);return e},blockSize:1}),r.mode={}),h=n.BlockCipherMode=i.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),p=d.CBC=function(){var e=h.extend();function t(e,t,r){var n,i=this._iv;i?(n=i,this._iv=void 0):n=this._prevBlock;for(var o=0;o<r;o++)e[t+o]^=n[o]}return e.Encryptor=e.extend({processBlock:function(e,r){var n=this._cipher,i=n.blockSize;t.call(this,e,r,i),n.encryptBlock(e,r),this._prevBlock=e.slice(r,r+i)}}),e.Decryptor=e.extend({processBlock:function(e,r){var n=this._cipher,i=n.blockSize,o=e.slice(r,r+i);n.decryptBlock(e,r),t.call(this,e,r,i),this._prevBlock=o}}),e}(),g=r.pad={},y=g.Pkcs7={pad:function(e,t){for(var r=4*t,n=r-e.sigBytes%r,i=n<<24|n<<16|n<<8|n,a=[],s=0;s<n;s+=4)a.push(i);var u=o.create(a,n);e.concat(u)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},v=(n.BlockCipher=l.extend({cfg:l.cfg.extend({mode:p,padding:y}),reset:function(){var e;l.reset.call(this);var t=this.cfg,r=t.iv,n=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=n.createEncryptor:(e=n.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,r&&r.words):(this._mode=e.call(n,this,r&&r.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4}),n.CipherParams=i.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}})),b=r.format={},m=b.OpenSSL={stringify:function(e){var t,r=e.ciphertext,n=e.salt;return t=n?o.create([1398893684,1701076831]).concat(n).concat(r):r,t.toString(u)},parse:function(e){var t,r=u.parse(e),n=r.words;return 1398893684==n[0]&&1701076831==n[1]&&(t=o.create(n.slice(2,4)),n.splice(0,4),r.sigBytes-=16),v.create({ciphertext:r,salt:t})}},_=n.SerializableCipher=i.extend({cfg:i.extend({format:m}),encrypt:function(e,t,r,n){n=this.cfg.extend(n);var i=e.createEncryptor(r,n),o=i.finalize(t),a=i.cfg;return v.create({ciphertext:o,key:r,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:n.format})},decrypt:function(e,t,r,n){n=this.cfg.extend(n),t=this._parse(t,n.format);var i=e.createDecryptor(r,n).finalize(t.ciphertext);return i},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),w=r.kdf={},A=w.OpenSSL={execute:function(e,t,r,n){n||(n=o.random(8));var i=f.create({keySize:t+r}).compute(e,n),a=o.create(i.words.slice(t),4*r);return i.sigBytes=4*t,v.create({key:i,iv:a,salt:n})}},S=n.PasswordBasedCipher=_.extend({cfg:_.cfg.extend({kdf:A}),encrypt:function(e,t,r,n){n=this.cfg.extend(n);var i=n.kdf.execute(r,e.keySize,e.ivSize);n.iv=i.iv;var o=_.encrypt.call(this,e,t,i.key,n);return o.mixIn(i),o},decrypt:function(e,t,r,n){n=this.cfg.extend(n),t=this._parse(t,n.format);var i=n.kdf.execute(r,e.keySize,e.ivSize,t.salt);n.iv=i.iv;var o=_.decrypt.call(this,e,t,i.key,n);return o}})}(),e.mode.CFB=function(){var t=e.lib.BlockCipherMode.extend();function r(e,t,r,n){var i,o=this._iv;o?(i=o.slice(0),this._iv=void 0):i=this._prevBlock,n.encryptBlock(i,0);for(var a=0;a<r;a++)e[t+a]^=i[a]}return t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize;r.call(this,e,t,i,n),this._prevBlock=e.slice(t,t+i)}}),t.Decryptor=t.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize,o=e.slice(t,t+i);r.call(this,e,t,i,n),this._prevBlock=o}}),t}(),e.mode.CTR=function(){var t=e.lib.BlockCipherMode.extend(),r=t.Encryptor=t.extend({processBlock:function(e,t){var r=this._cipher,n=r.blockSize,i=this._iv,o=this._counter;i&&(o=this._counter=i.slice(0),this._iv=void 0);var a=o.slice(0);r.encryptBlock(a,0),o[n-1]=o[n-1]+1|0;for(var s=0;s<n;s++)e[t+s]^=a[s]}});return t.Decryptor=r,t}(),
- /** @preserve
- * Counter block mode compatible with Dr Brian Gladman fileenc.c
- * derived from CryptoJS.mode.CTR
- * Jan Hruby jhruby.web@gmail.com
- */
- e.mode.CTRGladman=function(){var t=e.lib.BlockCipherMode.extend();function r(e){if(255===(e>>24&255)){var t=e>>16&255,r=e>>8&255,n=255&e;255===t?(t=0,255===r?(r=0,255===n?n=0:++n):++r):++t,e=0,e+=t<<16,e+=r<<8,e+=n}else e+=1<<24;return e}var n=t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize,o=this._iv,a=this._counter;o&&(a=this._counter=o.slice(0),this._iv=void 0),function(e){0===(e[0]=r(e[0]))&&(e[1]=r(e[1]))}(a);var s=a.slice(0);n.encryptBlock(s,0);for(var u=0;u<i;u++)e[t+u]^=s[u]}});return t.Decryptor=n,t}(),e.mode.OFB=function(){var t=e.lib.BlockCipherMode.extend(),r=t.Encryptor=t.extend({processBlock:function(e,t){var r=this._cipher,n=r.blockSize,i=this._iv,o=this._keystream;i&&(o=this._keystream=i.slice(0),this._iv=void 0),r.encryptBlock(o,0);for(var a=0;a<n;a++)e[t+a]^=o[a]}});return t.Decryptor=r,t}(),e.mode.ECB=function(){var t=e.lib.BlockCipherMode.extend();return t.Encryptor=t.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),t.Decryptor=t.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),t}(),e.pad.AnsiX923={pad:function(e,t){var r=e.sigBytes,n=4*t,i=n-r%n,o=r+i-1;e.clamp(),e.words[o>>>2]|=i<<24-o%4*8,e.sigBytes+=i},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Iso10126={pad:function(t,r){var n=4*r,i=n-t.sigBytes%n;t.concat(e.lib.WordArray.random(i-1)).concat(e.lib.WordArray.create([i<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Iso97971={pad:function(t,r){t.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(t,r)},unpad:function(t){e.pad.ZeroPadding.unpad(t),t.sigBytes--}},e.pad.ZeroPadding={pad:function(e,t){var r=4*t;e.clamp(),e.sigBytes+=r-(e.sigBytes%r||r)},unpad:function(e){var t=e.words,r=e.sigBytes-1;for(r=e.sigBytes-1;r>=0;r--)if(t[r>>>2]>>>24-r%4*8&255){e.sigBytes=r+1;break}}},e.pad.NoPadding={pad:function(){},unpad:function(){}},function(t){var r=e,n=r.lib,i=n.CipherParams,o=r.enc,a=o.Hex,s=r.format;s.Hex={stringify:function(e){return e.ciphertext.toString(a)},parse:function(e){var t=a.parse(e);return i.create({ciphertext:t})}}}(),function(){var t=e,r=t.lib,n=r.BlockCipher,i=t.algo,o=[],a=[],s=[],u=[],c=[],f=[],l=[],d=[],h=[],p=[];(function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var r=0,n=0;for(t=0;t<256;t++){var i=n^n<<1^n<<2^n<<3^n<<4;i=i>>>8^255&i^99,o[r]=i,a[i]=r;var g=e[r],y=e[g],v=e[y],b=257*e[i]^16843008*i;s[r]=b<<24|b>>>8,u[r]=b<<16|b>>>16,c[r]=b<<8|b>>>24,f[r]=b;b=16843009*v^65537*y^257*g^16843008*r;l[i]=b<<24|b>>>8,d[i]=b<<16|b>>>16,h[i]=b<<8|b>>>24,p[i]=b,r?(r=g^e[e[e[v^g]]],n^=e[e[n]]):r=n=1}})();var g=[0,1,2,4,8,16,32,64,128,27,54],y=i.AES=n.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,r=e.sigBytes/4,n=this._nRounds=r+6,i=4*(n+1),a=this._keySchedule=[],s=0;s<i;s++)s<r?a[s]=t[s]:(f=a[s-1],s%r?r>6&&s%r==4&&(f=o[f>>>24]<<24|o[f>>>16&255]<<16|o[f>>>8&255]<<8|o[255&f]):(f=f<<8|f>>>24,f=o[f>>>24]<<24|o[f>>>16&255]<<16|o[f>>>8&255]<<8|o[255&f],f^=g[s/r|0]<<24),a[s]=a[s-r]^f);for(var u=this._invKeySchedule=[],c=0;c<i;c++){s=i-c;if(c%4)var f=a[s];else f=a[s-4];u[c]=c<4||s<=4?f:l[o[f>>>24]]^d[o[f>>>16&255]]^h[o[f>>>8&255]]^p[o[255&f]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,s,u,c,f,o)},decryptBlock:function(e,t){var r=e[t+1];e[t+1]=e[t+3],e[t+3]=r,this._doCryptBlock(e,t,this._invKeySchedule,l,d,h,p,a);r=e[t+1];e[t+1]=e[t+3],e[t+3]=r},_doCryptBlock:function(e,t,r,n,i,o,a,s){for(var u=this._nRounds,c=e[t]^r[0],f=e[t+1]^r[1],l=e[t+2]^r[2],d=e[t+3]^r[3],h=4,p=1;p<u;p++){var g=n[c>>>24]^i[f>>>16&255]^o[l>>>8&255]^a[255&d]^r[h++],y=n[f>>>24]^i[l>>>16&255]^o[d>>>8&255]^a[255&c]^r[h++],v=n[l>>>24]^i[d>>>16&255]^o[c>>>8&255]^a[255&f]^r[h++],b=n[d>>>24]^i[c>>>16&255]^o[f>>>8&255]^a[255&l]^r[h++];c=g,f=y,l=v,d=b}g=(s[c>>>24]<<24|s[f>>>16&255]<<16|s[l>>>8&255]<<8|s[255&d])^r[h++],y=(s[f>>>24]<<24|s[l>>>16&255]<<16|s[d>>>8&255]<<8|s[255&c])^r[h++],v=(s[l>>>24]<<24|s[d>>>16&255]<<16|s[c>>>8&255]<<8|s[255&f])^r[h++],b=(s[d>>>24]<<24|s[c>>>16&255]<<16|s[f>>>8&255]<<8|s[255&l])^r[h++];e[t]=g,e[t+1]=y,e[t+2]=v,e[t+3]=b},keySize:8});t.AES=n._createHelper(y)}(),function(){var t=e,r=t.lib,n=r.WordArray,i=r.BlockCipher,o=t.algo,a=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],u=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],c=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],f=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],l=o.DES=i.extend({_doReset:function(){for(var e=this._key,t=e.words,r=[],n=0;n<56;n++){var i=a[n]-1;r[n]=t[i>>>5]>>>31-i%32&1}for(var o=this._subKeys=[],c=0;c<16;c++){var f=o[c]=[],l=u[c];for(n=0;n<24;n++)f[n/6|0]|=r[(s[n]-1+l)%28]<<31-n%6,f[4+(n/6|0)]|=r[28+(s[n+24]-1+l)%28]<<31-n%6;f[0]=f[0]<<1|f[0]>>>31;for(n=1;n<7;n++)f[n]=f[n]>>>4*(n-1)+3;f[7]=f[7]<<5|f[7]>>>27}var d=this._invSubKeys=[];for(n=0;n<16;n++)d[n]=o[15-n]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,r){this._lBlock=e[t],this._rBlock=e[t+1],d.call(this,4,252645135),d.call(this,16,65535),h.call(this,2,858993459),h.call(this,8,16711935),d.call(this,1,1431655765);for(var n=0;n<16;n++){for(var i=r[n],o=this._lBlock,a=this._rBlock,s=0,u=0;u<8;u++)s|=c[u][((a^i[u])&f[u])>>>0];this._lBlock=a,this._rBlock=o^s}var l=this._lBlock;this._lBlock=this._rBlock,this._rBlock=l,d.call(this,1,1431655765),h.call(this,8,16711935),h.call(this,2,858993459),d.call(this,16,65535),d.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function d(e,t){var r=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=r,this._lBlock^=r<<e}function h(e,t){var r=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=r,this._rBlock^=r<<e}t.DES=i._createHelper(l);var p=o.TripleDES=i.extend({_doReset:function(){var e=this._key,t=e.words;if(2!==t.length&&4!==t.length&&t.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var r=t.slice(0,2),i=t.length<4?t.slice(0,2):t.slice(2,4),o=t.length<6?t.slice(0,2):t.slice(4,6);this._des1=l.createEncryptor(n.create(r)),this._des2=l.createEncryptor(n.create(i)),this._des3=l.createEncryptor(n.create(o))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});t.TripleDES=i._createHelper(p)}(),function(){var t=e,r=t.lib,n=r.StreamCipher,i=t.algo,o=i.RC4=n.extend({_doReset:function(){for(var e=this._key,t=e.words,r=e.sigBytes,n=this._S=[],i=0;i<256;i++)n[i]=i;i=0;for(var o=0;i<256;i++){var a=i%r,s=t[a>>>2]>>>24-a%4*8&255;o=(o+n[i]+s)%256;var u=n[i];n[i]=n[o],n[o]=u}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=a.call(this)},keySize:8,ivSize:0});function a(){for(var e=this._S,t=this._i,r=this._j,n=0,i=0;i<4;i++){t=(t+1)%256,r=(r+e[t])%256;var o=e[t];e[t]=e[r],e[r]=o,n|=e[(e[t]+e[r])%256]<<24-8*i}return this._i=t,this._j=r,n}t.RC4=n._createHelper(o);var s=i.RC4Drop=o.extend({cfg:o.cfg.extend({drop:192}),_doReset:function(){o._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)a.call(this)}});t.RC4Drop=n._createHelper(s)}(),function(){var t=e,r=t.lib,n=r.StreamCipher,i=t.algo,o=[],a=[],s=[],u=i.Rabbit=n.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,r=0;r<4;r++)e[r]=16711935&(e[r]<<8|e[r]>>>24)|4278255360&(e[r]<<24|e[r]>>>8);var n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],i=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(r=0;r<4;r++)c.call(this);for(r=0;r<8;r++)i[r]^=n[r+4&7];if(t){var o=t.words,a=o[0],s=o[1],u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),f=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),l=u>>>16|4294901760&f,d=f<<16|65535&u;i[0]^=u,i[1]^=l,i[2]^=f,i[3]^=d,i[4]^=u,i[5]^=l,i[6]^=f,i[7]^=d;for(r=0;r<4;r++)c.call(this)}},_doProcessBlock:function(e,t){var r=this._X;c.call(this),o[0]=r[0]^r[5]>>>16^r[3]<<16,o[1]=r[2]^r[7]>>>16^r[5]<<16,o[2]=r[4]^r[1]>>>16^r[7]<<16,o[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)o[n]=16711935&(o[n]<<8|o[n]>>>24)|4278255360&(o[n]<<24|o[n]>>>8),e[t+n]^=o[n]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,r=0;r<8;r++)a[r]=t[r];t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<a[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<a[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<a[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<a[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<a[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<a[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<a[6]>>>0?1:0)|0,this._b=t[7]>>>0<a[7]>>>0?1:0;for(r=0;r<8;r++){var n=e[r]+t[r],i=65535&n,o=n>>>16,u=((i*i>>>17)+i*o>>>15)+o*o,c=((4294901760&n)*n|0)+((65535&n)*n|0);s[r]=u^c}e[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,e[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,e[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,e[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,e[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,e[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,e[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,e[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}t.Rabbit=n._createHelper(u)}(),function(){var t=e,r=t.lib,n=r.StreamCipher,i=t.algo,o=[],a=[],s=[],u=i.RabbitLegacy=n.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],n=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var i=0;i<4;i++)c.call(this);for(i=0;i<8;i++)n[i]^=r[i+4&7];if(t){var o=t.words,a=o[0],s=o[1],u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),f=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),l=u>>>16|4294901760&f,d=f<<16|65535&u;n[0]^=u,n[1]^=l,n[2]^=f,n[3]^=d,n[4]^=u,n[5]^=l,n[6]^=f,n[7]^=d;for(i=0;i<4;i++)c.call(this)}},_doProcessBlock:function(e,t){var r=this._X;c.call(this),o[0]=r[0]^r[5]>>>16^r[3]<<16,o[1]=r[2]^r[7]>>>16^r[5]<<16,o[2]=r[4]^r[1]>>>16^r[7]<<16,o[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)o[n]=16711935&(o[n]<<8|o[n]>>>24)|4278255360&(o[n]<<24|o[n]>>>8),e[t+n]^=o[n]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,r=0;r<8;r++)a[r]=t[r];t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<a[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<a[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<a[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<a[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<a[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<a[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<a[6]>>>0?1:0)|0,this._b=t[7]>>>0<a[7]>>>0?1:0;for(r=0;r<8;r++){var n=e[r]+t[r],i=65535&n,o=n>>>16,u=((i*i>>>17)+i*o>>>15)+o*o,c=((4294901760&n)*n|0)+((65535&n)*n|0);s[r]=u^c}e[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,e[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,e[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,e[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,e[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,e[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,e[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,e[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}t.RabbitLegacy=n._createHelper(u)}(),e}))}).call(this,r("0ee4"))},"0109":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o=n(r("107a")),a=n(r("c41c")),s=n(r("d4f8")),u=n(r("a5e6")),c=n(r("d618")),f=n(r("343e")),l=n(r("9e56"));(function(e){e[e["PAD_ENCODE"]=0]="PAD_ENCODE",e[e["ASCII_ENCODE"]=1]="ASCII_ENCODE",e[e["C40_ENCODE"]=2]="C40_ENCODE",e[e["TEXT_ENCODE"]=3]="TEXT_ENCODE",e[e["ANSIX12_ENCODE"]=4]="ANSIX12_ENCODE",e[e["EDIFACT_ENCODE"]=5]="EDIFACT_ENCODE",e[e["BASE256_ENCODE"]=6]="BASE256_ENCODE"})(i||(i={}));var d=function(){function e(){}return e.decode=function(e){var t=new a.default(e),r=new s.default,n=new s.default,u=new Array,c=i.ASCII_ENCODE;do{if(c===i.ASCII_ENCODE)c=this.decodeAsciiSegment(t,r,n);else{switch(c){case i.C40_ENCODE:this.decodeC40Segment(t,r);break;case i.TEXT_ENCODE:this.decodeTextSegment(t,r);break;case i.ANSIX12_ENCODE:this.decodeAnsiX12Segment(t,r);break;case i.EDIFACT_ENCODE:this.decodeEdifactSegment(t,r);break;case i.BASE256_ENCODE:this.decodeBase256Segment(t,r,u);break;default:throw new f.default}c=i.ASCII_ENCODE}}while(c!==i.PAD_ENCODE&&t.available()>0);return n.length()>0&&r.append(n.toString()),new o.default(e,r.toString(),0===u.length?null:u,null)},e.decodeAsciiSegment=function(e,t,r){var n=!1;do{var o=e.readBits(8);if(0===o)throw new f.default;if(o<=128)return n&&(o+=128),t.append(String.fromCharCode(o-1)),i.ASCII_ENCODE;if(129===o)return i.PAD_ENCODE;if(o<=229){var a=o-130;a<10&&t.append("0"),t.append(""+a)}else switch(o){case 230:return i.C40_ENCODE;case 231:return i.BASE256_ENCODE;case 232:t.append(String.fromCharCode(29));break;case 233:case 234:break;case 235:n=!0;break;case 236:t.append("[)>05"),r.insert(0,"");break;case 237:t.append("[)>06"),r.insert(0,"");break;case 238:return i.ANSIX12_ENCODE;case 239:return i.TEXT_ENCODE;case 240:return i.EDIFACT_ENCODE;case 241:break;default:if(254!==o||0!==e.available())throw new f.default;break}}while(e.available()>0);return i.ASCII_ENCODE},e.decodeC40Segment=function(e,t){var r=!1,n=[],i=0;do{if(8===e.available())return;var o=e.readBits(8);if(254===o)return;this.parseTwoBytes(o,e.readBits(8),n);for(var a=0;a<3;a++){var s=n[a];switch(i){case 0:if(s<3)i=s+1;else{if(!(s<this.C40_BASIC_SET_CHARS.length))throw new f.default;var u=this.C40_BASIC_SET_CHARS[s];r?(t.append(String.fromCharCode(u.charCodeAt(0)+128)),r=!1):t.append(u)}break;case 1:r?(t.append(String.fromCharCode(s+128)),r=!1):t.append(String.fromCharCode(s)),i=0;break;case 2:if(s<this.C40_SHIFT2_SET_CHARS.length){u=this.C40_SHIFT2_SET_CHARS[s];r?(t.append(String.fromCharCode(u.charCodeAt(0)+128)),r=!1):t.append(u)}else switch(s){case 27:t.append(String.fromCharCode(29));break;case 30:r=!0;break;default:throw new f.default}i=0;break;case 3:r?(t.append(String.fromCharCode(s+224)),r=!1):t.append(String.fromCharCode(s+96)),i=0;break;default:throw new f.default}}}while(e.available()>0)},e.decodeTextSegment=function(e,t){var r=!1,n=[],i=0;do{if(8===e.available())return;var o=e.readBits(8);if(254===o)return;this.parseTwoBytes(o,e.readBits(8),n);for(var a=0;a<3;a++){var s=n[a];switch(i){case 0:if(s<3)i=s+1;else{if(!(s<this.TEXT_BASIC_SET_CHARS.length))throw new f.default;var u=this.TEXT_BASIC_SET_CHARS[s];r?(t.append(String.fromCharCode(u.charCodeAt(0)+128)),r=!1):t.append(u)}break;case 1:r?(t.append(String.fromCharCode(s+128)),r=!1):t.append(String.fromCharCode(s)),i=0;break;case 2:if(s<this.TEXT_SHIFT2_SET_CHARS.length){u=this.TEXT_SHIFT2_SET_CHARS[s];r?(t.append(String.fromCharCode(u.charCodeAt(0)+128)),r=!1):t.append(u)}else switch(s){case 27:t.append(String.fromCharCode(29));break;case 30:r=!0;break;default:throw new f.default}i=0;break;case 3:if(!(s<this.TEXT_SHIFT3_SET_CHARS.length))throw new f.default;u=this.TEXT_SHIFT3_SET_CHARS[s];r?(t.append(String.fromCharCode(u.charCodeAt(0)+128)),r=!1):t.append(u),i=0;break;default:throw new f.default}}}while(e.available()>0)},e.decodeAnsiX12Segment=function(e,t){var r=[];do{if(8===e.available())return;var n=e.readBits(8);if(254===n)return;this.parseTwoBytes(n,e.readBits(8),r);for(var i=0;i<3;i++){var o=r[i];switch(o){case 0:t.append("\r");break;case 1:t.append("*");break;case 2:t.append(">");break;case 3:t.append(" ");break;default:if(o<14)t.append(String.fromCharCode(o+44));else{if(!(o<40))throw new f.default;t.append(String.fromCharCode(o+51))}break}}}while(e.available()>0)},e.parseTwoBytes=function(e,t,r){var n=(e<<8)+t-1,i=Math.floor(n/1600);r[0]=i,n-=1600*i,i=Math.floor(n/40),r[1]=i,r[2]=n-40*i},e.decodeEdifactSegment=function(e,t){do{if(e.available()<=16)return;for(var r=0;r<4;r++){var n=e.readBits(6);if(31===n){var i=8-e.getBitOffset();return void(8!==i&&e.readBits(i))}0===(32&n)&&(n|=64),t.append(String.fromCharCode(n))}}while(e.available()>0)},e.decodeBase256Segment=function(e,t,r){var n,i=1+e.getByteOffset(),o=this.unrandomize255State(e.readBits(8),i++);if(n=0===o?e.available()/8|0:o<250?o:250*(o-249)+this.unrandomize255State(e.readBits(8),i++),n<0)throw new f.default;for(var a=new Uint8Array(n),s=0;s<n;s++){if(e.available()<8)throw new f.default;a[s]=this.unrandomize255State(e.readBits(8),i++)}r.push(a);try{t.append(u.default.decode(a,c.default.ISO88591))}catch(d){throw new l.default("Platform does not support required encoding: "+d.message)}},e.unrandomize255State=function(e,t){var r=149*t%255+1,n=e-r;return n>=0?n:n+256},e.C40_BASIC_SET_CHARS=["*","*","*"," ","0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],e.C40_SHIFT2_SET_CHARS=["!",'"',"#","$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","?","@","[","\\","]","^","_"],e.TEXT_BASIC_SET_CHARS=["*","*","*"," ","0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"],e.TEXT_SHIFT2_SET_CHARS=e.C40_SHIFT2_SET_CHARS,e.TEXT_SHIFT3_SET_CHARS=["`","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","{","|","}","~",String.fromCharCode(127)],e}(),h=d;t.default=h},"0116":function(e,t,r){"use strict";var n=r("2c2e"),i=r("610c"),o=r("cfef"),a=r("5f79").Buffer,s=r("1177"),u=r("2d81"),c=r("25a4"),f=a.alloc(128);function l(e,t){o.call(this,"digest"),"string"===typeof t&&(t=a.from(t));var r="sha512"===e||"sha384"===e?128:64;if(this._alg=e,this._key=t,t.length>r){var n="rmd160"===e?new u:c(e);t=n.update(t).digest()}else t.length<r&&(t=a.concat([t,f],r));for(var i=this._ipad=a.allocUnsafe(r),s=this._opad=a.allocUnsafe(r),l=0;l<r;l++)i[l]=54^t[l],s[l]=92^t[l];this._hash="rmd160"===e?new u:c(e),this._hash.update(i)}n(l,o),l.prototype._update=function(e){this._hash.update(e)},l.prototype._final=function(){var e=this._hash.digest(),t="rmd160"===this._alg?new u:c(this._alg);return t.update(this._opad).update(e).digest()},e.exports=function(e,t){return e=e.toLowerCase(),"rmd160"===e||"ripemd160"===e?new l("rmd160",t):"md5"===e?new i(s,t):new l(e,t)}},"011a":function(e,t){function r(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(e.exports=r=function(){return!!t},e.exports.__esModule=!0,e.exports["default"]=e.exports)()}e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},"0168":function(e,t,r){"use strict";var n=r("d3c2");function i(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}e.exports=i,i.prototype._init=function(){},i.prototype.update=function(e){return 0===e.length?[]:"decrypt"===this.type?this._updateDecrypt(e):this._updateEncrypt(e)},i.prototype._buffer=function(e,t){for(var r=Math.min(this.buffer.length-this.bufferOff,e.length-t),n=0;n<r;n++)this.buffer[this.bufferOff+n]=e[t+n];return this.bufferOff+=r,r},i.prototype._flushBuffer=function(e,t){return this._update(this.buffer,0,e,t),this.bufferOff=0,this.blockSize},i.prototype._updateEncrypt=function(e){var t=0,r=0,n=(this.bufferOff+e.length)/this.blockSize|0,i=new Array(n*this.blockSize);0!==this.bufferOff&&(t+=this._buffer(e,t),this.bufferOff===this.buffer.length&&(r+=this._flushBuffer(i,r)));for(var o=e.length-(e.length-t)%this.blockSize;t<o;t+=this.blockSize)this._update(e,t,i,r),r+=this.blockSize;for(;t<e.length;t++,this.bufferOff++)this.buffer[this.bufferOff]=e[t];return i},i.prototype._updateDecrypt=function(e){for(var t=0,r=0,n=Math.ceil((this.bufferOff+e.length)/this.blockSize)-1,i=new Array(n*this.blockSize);n>0;n--)t+=this._buffer(e,t),r+=this._flushBuffer(i,r);return t+=this._buffer(e,t),i},i.prototype.final=function(e){var t,r;return e&&(t=this.update(e)),r="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(r):r},i.prototype._pad=function(e,t){if(0===t)return!1;while(t<e.length)e[t++]=0;return!0},i.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var e=new Array(this.blockSize);return this._update(this.buffer,0,e,0),e},i.prototype._unpad=function(e){return e},i.prototype._finalDecrypt=function(){n.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var e=new Array(this.blockSize);return this._flushBuffer(e,0),this._unpad(e)}},"01a7":function(e,t,r){"use strict";(function(e){var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("271d")),o=n(r("a22d")),a=n(r("93d8")),s={logList:[],busCount:[],options:null,install:function(){try{var t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"on",n=r.busCount.findIndex((function(t){return t.e==e}));if(-1==n){var i={e:e,on:0,off:0,emit:0,once:0};i[t]=i[t]+1,r.busCount.push(i)}else r.busCount[n][t]=r.busCount[n][t]+1},r=this;if(this.options=o.default.getOptions(),!this.options.uniBus.status)return;this.logList=i.default.get("uniBus"),this.logList||(this.logList=[]),this.busCount=i.default.get("busCount"),this.busCount||(this.busCount=[]),this.syncReqData();var n=function(){return(new Date).getTime()},s=e.$on;e.$on=function(){try{var e=arguments[0];e&&"string"==typeof e&&e.length<200&&-1==e.indexOf("devTools_")&&(r.logList.unshift({t:n(),e:a.default.compressObject("on>".concat(e),r.options.uniBus.cache.rowMax)}),t(e,"on"))}catch(i){console.error("uni.$on出错",i)}s.apply(void 0,arguments)};var u=e.$once;e.$once=function(){try{var e=arguments[0];e&&"string"==typeof e&&e.length<200&&-1==e.indexOf("devTools_")&&(r.logList.unshift({t:n(),e:a.default.compressObject("once>".concat(e),r.options.uniBus.cache.rowMax)}),t(e,"once"))}catch(i){console.error("uni.$once出错",i)}u.apply(void 0,arguments)};var c=e.$emit;e.$emit=function(){try{var e=arguments[0],i=arguments[1];e&&"string"==typeof e&&e.length<200&&-1==e.indexOf("devTools_")&&(r.logList.unshift({t:n(),e:a.default.compressObject("emit>".concat(e)+(i?">"+JSON.stringify(i):""),r.options.uniBus.cache.rowMax)}),t(e,"emit"))}catch(o){console.error("uni.$emit出错",o)}c.apply(void 0,arguments)};var f=e.$off;e.$off=function(){try{var e=arguments[0];e&&"string"==typeof e&&e.length<200&&-1==e.indexOf("devTools_")&&(r.logList.unshift({t:n(),e:a.default.compressObject("off>".concat(e)+arguments[0],r.options.uniBus.cache.rowMax)}),t(e,"off"))}catch(i){console.error("uni.$off出错",i)}f.apply(void 0,arguments)},e.$on("devTools_delUniBusAll",(function(){r.logList=[],r.busCount=[]}))}catch(l){console.log("devTools uniBus.install error",l)}},syncReqData:function(){var e=this;setTimeout((function(){try{e.logList=a.default.compressArray(e.logList,"end",e.options.uniBus.cache.rowMax),i.default.set("uniBus",e.logList),e.busCount=a.default.compressArray(e.busCount,"end",e.options.uniBus.cache.countMaxSize),i.default.set("busCount",e.busCount)}catch(t){console.log("devTools uniBus.syncReqData error",t)}e.syncReqData()}),5e3)}};t.default=s}).call(this,r("df3c")["default"])},"02e6":function(e,t,r){"use strict";(function(e){var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o,a=n(r("343e")),s=n(r("253e")),u=n(r("107a")),c=n(r("d36d")),f=n(r("36d3")),l=n(r("d4f8")),d=n(r("e5d0")),h=n(r("e8e6")),p=n(r("59e88")),g=n(r("a5e6"));function y(){if("undefined"!==typeof window)return window["BigInt"]||null;if("undefined"!==typeof e)return e["BigInt"]||null;if("undefined"!==typeof self)return self["BigInt"]||null;throw new Error("Can't search globals for BigInt!")}function v(e){if("undefined"===typeof o&&(o=y()),null===o)throw new Error("BigInt is not supported!");return o(e)}(function(e){e[e["ALPHA"]=0]="ALPHA",e[e["LOWER"]=1]="LOWER",e[e["MIXED"]=2]="MIXED",e[e["PUNCT"]=3]="PUNCT",e[e["ALPHA_SHIFT"]=4]="ALPHA_SHIFT",e[e["PUNCT_SHIFT"]=5]="PUNCT_SHIFT"})(i||(i={}));var b=function(){function e(){}return e.decode=function(t,r){var n=new l.default(""),i=s.default.ISO8859_1;n.enableDecoding(i);var o=1,f=t[o++],d=new c.default;while(o<t[0]){switch(f){case e.TEXT_COMPACTION_MODE_LATCH:o=e.textCompaction(t,o,n);break;case e.BYTE_COMPACTION_MODE_LATCH:case e.BYTE_COMPACTION_MODE_LATCH_6:o=e.byteCompaction(f,t,i,o,n);break;case e.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:n.append(t[o++]);break;case e.NUMERIC_COMPACTION_MODE_LATCH:o=e.numericCompaction(t,o,n);break;case e.ECI_CHARSET:s.default.getCharacterSetECIByValue(t[o++]);break;case e.ECI_GENERAL_PURPOSE:o+=2;break;case e.ECI_USER_DEFINED:o++;break;case e.BEGIN_MACRO_PDF417_CONTROL_BLOCK:o=e.decodeMacroBlock(t,o,d);break;case e.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:case e.MACRO_PDF417_TERMINATOR:throw new a.default;default:o--,o=e.textCompaction(t,o,n);break}if(!(o<t.length))throw a.default.getFormatInstance();f=t[o++]}if(0===n.length())throw a.default.getFormatInstance();var h=new u.default(null,n.toString(),null,r);return h.setOther(d),h},e.decodeMacroBlock=function(t,r,n){if(r+e.NUMBER_OF_SEQUENCE_CODEWORDS>t[0])throw a.default.getFormatInstance();for(var i=new Int32Array(e.NUMBER_OF_SEQUENCE_CODEWORDS),o=0;o<e.NUMBER_OF_SEQUENCE_CODEWORDS;o++,r++)i[o]=t[r];n.setSegmentIndex(d.default.parseInt(e.decodeBase900toBase10(i,e.NUMBER_OF_SEQUENCE_CODEWORDS)));var s=new l.default;r=e.textCompaction(t,r,s),n.setFileId(s.toString());var u=-1;t[r]===e.BEGIN_MACRO_PDF417_OPTIONAL_FIELD&&(u=r+1);while(r<t[0])switch(t[r]){case e.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:switch(r++,t[r]){case e.MACRO_PDF417_OPTIONAL_FIELD_FILE_NAME:var c=new l.default;r=e.textCompaction(t,r+1,c),n.setFileName(c.toString());break;case e.MACRO_PDF417_OPTIONAL_FIELD_SENDER:var p=new l.default;r=e.textCompaction(t,r+1,p),n.setSender(p.toString());break;case e.MACRO_PDF417_OPTIONAL_FIELD_ADDRESSEE:var g=new l.default;r=e.textCompaction(t,r+1,g),n.setAddressee(g.toString());break;case e.MACRO_PDF417_OPTIONAL_FIELD_SEGMENT_COUNT:var y=new l.default;r=e.numericCompaction(t,r+1,y),n.setSegmentCount(d.default.parseInt(y.toString()));break;case e.MACRO_PDF417_OPTIONAL_FIELD_TIME_STAMP:var v=new l.default;r=e.numericCompaction(t,r+1,v),n.setTimestamp(h.default.parseLong(v.toString()));break;case e.MACRO_PDF417_OPTIONAL_FIELD_CHECKSUM:var b=new l.default;r=e.numericCompaction(t,r+1,b),n.setChecksum(d.default.parseInt(b.toString()));break;case e.MACRO_PDF417_OPTIONAL_FIELD_FILE_SIZE:var m=new l.default;r=e.numericCompaction(t,r+1,m),n.setFileSize(h.default.parseLong(m.toString()));break;default:throw a.default.getFormatInstance()}break;case e.MACRO_PDF417_TERMINATOR:r++,n.setLastSegment(!0);break;default:throw a.default.getFormatInstance()}if(-1!==u){var _=r-u;n.isLastSegment()&&_--,n.setOptionalData(f.default.copyOfRange(t,u,u+_))}return r},e.textCompaction=function(t,r,n){var i=new Int32Array(2*(t[0]-r)),o=new Int32Array(2*(t[0]-r)),a=0,s=!1;while(r<t[0]&&!s){var u=t[r++];if(u<e.TEXT_COMPACTION_MODE_LATCH)i[a]=u/30,i[a+1]=u%30,a+=2;else switch(u){case e.TEXT_COMPACTION_MODE_LATCH:i[a++]=e.TEXT_COMPACTION_MODE_LATCH;break;case e.BYTE_COMPACTION_MODE_LATCH:case e.BYTE_COMPACTION_MODE_LATCH_6:case e.NUMERIC_COMPACTION_MODE_LATCH:case e.BEGIN_MACRO_PDF417_CONTROL_BLOCK:case e.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:case e.MACRO_PDF417_TERMINATOR:r--,s=!0;break;case e.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:i[a]=e.MODE_SHIFT_TO_BYTE_COMPACTION_MODE,u=t[r++],o[a]=u,a++;break}}return e.decodeTextCompaction(i,o,a,n),r},e.decodeTextCompaction=function(t,r,n,o){var a=i.ALPHA,s=i.ALPHA,u=0;while(u<n){var c=t[u],f="";switch(a){case i.ALPHA:if(c<26)f=String.fromCharCode(65+c);else switch(c){case 26:f=" ";break;case e.LL:a=i.LOWER;break;case e.ML:a=i.MIXED;break;case e.PS:s=a,a=i.PUNCT_SHIFT;break;case e.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:o.append(r[u]);break;case e.TEXT_COMPACTION_MODE_LATCH:a=i.ALPHA;break}break;case i.LOWER:if(c<26)f=String.fromCharCode(97+c);else switch(c){case 26:f=" ";break;case e.AS:s=a,a=i.ALPHA_SHIFT;break;case e.ML:a=i.MIXED;break;case e.PS:s=a,a=i.PUNCT_SHIFT;break;case e.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:o.append(r[u]);break;case e.TEXT_COMPACTION_MODE_LATCH:a=i.ALPHA;break}break;case i.MIXED:if(c<e.PL)f=e.MIXED_CHARS[c];else switch(c){case e.PL:a=i.PUNCT;break;case 26:f=" ";break;case e.LL:a=i.LOWER;break;case e.AL:a=i.ALPHA;break;case e.PS:s=a,a=i.PUNCT_SHIFT;break;case e.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:o.append(r[u]);break;case e.TEXT_COMPACTION_MODE_LATCH:a=i.ALPHA;break}break;case i.PUNCT:if(c<e.PAL)f=e.PUNCT_CHARS[c];else switch(c){case e.PAL:a=i.ALPHA;break;case e.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:o.append(r[u]);break;case e.TEXT_COMPACTION_MODE_LATCH:a=i.ALPHA;break}break;case i.ALPHA_SHIFT:if(a=s,c<26)f=String.fromCharCode(65+c);else switch(c){case 26:f=" ";break;case e.TEXT_COMPACTION_MODE_LATCH:a=i.ALPHA;break}break;case i.PUNCT_SHIFT:if(a=s,c<e.PAL)f=e.PUNCT_CHARS[c];else switch(c){case e.PAL:a=i.ALPHA;break;case e.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:o.append(r[u]);break;case e.TEXT_COMPACTION_MODE_LATCH:a=i.ALPHA;break}break}""!==f&&o.append(f),u++}},e.byteCompaction=function(t,r,n,i,o){var a=new p.default,s=0,u=0,c=!1;switch(t){case e.BYTE_COMPACTION_MODE_LATCH:var f=new Int32Array(6),l=r[i++];while(i<r[0]&&!c)switch(f[s++]=l,u=900*u+l,l=r[i++],l){case e.TEXT_COMPACTION_MODE_LATCH:case e.BYTE_COMPACTION_MODE_LATCH:case e.NUMERIC_COMPACTION_MODE_LATCH:case e.BYTE_COMPACTION_MODE_LATCH_6:case e.BEGIN_MACRO_PDF417_CONTROL_BLOCK:case e.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:case e.MACRO_PDF417_TERMINATOR:i--,c=!0;break;default:if(s%5===0&&s>0){for(var d=0;d<6;++d)a.write(Number(v(u)>>v(8*(5-d))));u=0,s=0}break}i===r[0]&&l<e.TEXT_COMPACTION_MODE_LATCH&&(f[s++]=l);for(var h=0;h<s;h++)a.write(f[h]);break;case e.BYTE_COMPACTION_MODE_LATCH_6:while(i<r[0]&&!c){var y=r[i++];if(y<e.TEXT_COMPACTION_MODE_LATCH)s++,u=900*u+y;else switch(y){case e.TEXT_COMPACTION_MODE_LATCH:case e.BYTE_COMPACTION_MODE_LATCH:case e.NUMERIC_COMPACTION_MODE_LATCH:case e.BYTE_COMPACTION_MODE_LATCH_6:case e.BEGIN_MACRO_PDF417_CONTROL_BLOCK:case e.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:case e.MACRO_PDF417_TERMINATOR:i--,c=!0;break}if(s%5===0&&s>0){for(d=0;d<6;++d)a.write(Number(v(u)>>v(8*(5-d))));u=0,s=0}}break}return o.append(g.default.decode(a.toByteArray(),n)),i},e.numericCompaction=function(t,r,n){var i=0,o=!1,a=new Int32Array(e.MAX_NUMERIC_CODEWORDS);while(r<t[0]&&!o){var s=t[r++];if(r===t[0]&&(o=!0),s<e.TEXT_COMPACTION_MODE_LATCH)a[i]=s,i++;else switch(s){case e.TEXT_COMPACTION_MODE_LATCH:case e.BYTE_COMPACTION_MODE_LATCH:case e.BYTE_COMPACTION_MODE_LATCH_6:case e.BEGIN_MACRO_PDF417_CONTROL_BLOCK:case e.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:case e.MACRO_PDF417_TERMINATOR:r--,o=!0;break}(i%e.MAX_NUMERIC_CODEWORDS===0||s===e.NUMERIC_COMPACTION_MODE_LATCH||o)&&i>0&&(n.append(e.decodeBase900toBase10(a,i)),i=0)}return r},e.decodeBase900toBase10=function(t,r){for(var n=v(0),i=0;i<r;i++)n+=e.EXP900[r-i-1]*v(t[i]);var o=n.toString();if("1"!==o.charAt(0))throw new a.default;return o.substring(1)},e.TEXT_COMPACTION_MODE_LATCH=900,e.BYTE_COMPACTION_MODE_LATCH=901,e.NUMERIC_COMPACTION_MODE_LATCH=902,e.BYTE_COMPACTION_MODE_LATCH_6=924,e.ECI_USER_DEFINED=925,e.ECI_GENERAL_PURPOSE=926,e.ECI_CHARSET=927,e.BEGIN_MACRO_PDF417_CONTROL_BLOCK=928,e.BEGIN_MACRO_PDF417_OPTIONAL_FIELD=923,e.MACRO_PDF417_TERMINATOR=922,e.MODE_SHIFT_TO_BYTE_COMPACTION_MODE=913,e.MAX_NUMERIC_CODEWORDS=15,e.MACRO_PDF417_OPTIONAL_FIELD_FILE_NAME=0,e.MACRO_PDF417_OPTIONAL_FIELD_SEGMENT_COUNT=1,e.MACRO_PDF417_OPTIONAL_FIELD_TIME_STAMP=2,e.MACRO_PDF417_OPTIONAL_FIELD_SENDER=3,e.MACRO_PDF417_OPTIONAL_FIELD_ADDRESSEE=4,e.MACRO_PDF417_OPTIONAL_FIELD_FILE_SIZE=5,e.MACRO_PDF417_OPTIONAL_FIELD_CHECKSUM=6,e.PL=25,e.LL=27,e.AS=27,e.ML=28,e.AL=28,e.PS=29,e.PAL=29,e.PUNCT_CHARS=";<>@[\\]_`~!\r\t,:\n-.$/\"|*()?{}'",e.MIXED_CHARS="0123456789&\r\t,:#-.$/+%*=^",e.EXP900=y()?function(){var e=[];e[0]=v(1);var t=v(900);e[1]=t;for(var r=2;r<16;r++)e[r]=e[r-1]*t;return e}():[],e.NUMBER_OF_SEQUENCE_CODEWORDS=2,e}(),m=b;t.default=m}).call(this,r("0ee4"))},"0382":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.BrowserMultiFormatReader=void 0;var i=r("a5d4"),o=n(r("b6de")),a=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),s=function(e){function t(t,r){void 0===t&&(t=null),void 0===r&&(r=500);var n,i=new o.default;return i.setHints(t),n=e.call(this,i,r)||this,n}return a(t,e),t.prototype.decodeBitmap=function(e){return this.reader.decodeWithState(e)},t}(i.BrowserCodeReader);t.BrowserMultiFormatReader=s},"0428":function(e,t,r){var n={ECB:r("53ac"),CBC:r("9544"),CFB:r("f2aa"),CFB8:r("67bc"),CFB1:r("9364"),OFB:r("1f5a"),CTR:r("4ac8"),GCM:r("4ac8")},i=r("e994");for(var o in i)i[o].module=n[i[o].mode];e.exports=i},"0446":function(e,t,r){var n=r("5f79").Buffer;function i(e){n.isBuffer(e)||(e=n.from(e));for(var t=e.length/4|0,r=new Array(t),i=0;i<t;i++)r[i]=e.readUInt32BE(4*i);return r}function o(e){for(;0<e.length;e++)e[0]=0}function a(e,t,r,n,i){for(var o,a,s,u,c=r[0],f=r[1],l=r[2],d=r[3],h=e[0]^t[0],p=e[1]^t[1],g=e[2]^t[2],y=e[3]^t[3],v=4,b=1;b<i;b++)o=c[h>>>24]^f[p>>>16&255]^l[g>>>8&255]^d[255&y]^t[v++],a=c[p>>>24]^f[g>>>16&255]^l[y>>>8&255]^d[255&h]^t[v++],s=c[g>>>24]^f[y>>>16&255]^l[h>>>8&255]^d[255&p]^t[v++],u=c[y>>>24]^f[h>>>16&255]^l[p>>>8&255]^d[255&g]^t[v++],h=o,p=a,g=s,y=u;return o=(n[h>>>24]<<24|n[p>>>16&255]<<16|n[g>>>8&255]<<8|n[255&y])^t[v++],a=(n[p>>>24]<<24|n[g>>>16&255]<<16|n[y>>>8&255]<<8|n[255&h])^t[v++],s=(n[g>>>24]<<24|n[y>>>16&255]<<16|n[h>>>8&255]<<8|n[255&p])^t[v++],u=(n[y>>>24]<<24|n[h>>>16&255]<<16|n[p>>>8&255]<<8|n[255&g])^t[v++],o>>>=0,a>>>=0,s>>>=0,u>>>=0,[o,a,s,u]}var s=[0,1,2,4,8,16,32,64,128,27,54],u=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var r=[],n=[],i=[[],[],[],[]],o=[[],[],[],[]],a=0,s=0,u=0;u<256;++u){var c=s^s<<1^s<<2^s<<3^s<<4;c=c>>>8^255&c^99,r[a]=c,n[c]=a;var f=e[a],l=e[f],d=e[l],h=257*e[c]^16843008*c;i[0][a]=h<<24|h>>>8,i[1][a]=h<<16|h>>>16,i[2][a]=h<<8|h>>>24,i[3][a]=h,h=16843009*d^65537*l^257*f^16843008*a,o[0][c]=h<<24|h>>>8,o[1][c]=h<<16|h>>>16,o[2][c]=h<<8|h>>>24,o[3][c]=h,0===a?a=s=1:(a=f^e[e[e[d^f]]],s^=e[e[s]])}return{SBOX:r,INV_SBOX:n,SUB_MIX:i,INV_SUB_MIX:o}}();function c(e){this._key=i(e),this._reset()}c.blockSize=16,c.keySize=32,c.prototype.blockSize=c.blockSize,c.prototype.keySize=c.keySize,c.prototype._reset=function(){for(var e=this._key,t=e.length,r=t+6,n=4*(r+1),i=[],o=0;o<t;o++)i[o]=e[o];for(o=t;o<n;o++){var a=i[o-1];o%t===0?(a=a<<8|a>>>24,a=u.SBOX[a>>>24]<<24|u.SBOX[a>>>16&255]<<16|u.SBOX[a>>>8&255]<<8|u.SBOX[255&a],a^=s[o/t|0]<<24):t>6&&o%t===4&&(a=u.SBOX[a>>>24]<<24|u.SBOX[a>>>16&255]<<16|u.SBOX[a>>>8&255]<<8|u.SBOX[255&a]),i[o]=i[o-t]^a}for(var c=[],f=0;f<n;f++){var l=n-f,d=i[l-(f%4?0:4)];c[f]=f<4||l<=4?d:u.INV_SUB_MIX[0][u.SBOX[d>>>24]]^u.INV_SUB_MIX[1][u.SBOX[d>>>16&255]]^u.INV_SUB_MIX[2][u.SBOX[d>>>8&255]]^u.INV_SUB_MIX[3][u.SBOX[255&d]]}this._nRounds=r,this._keySchedule=i,this._invKeySchedule=c},c.prototype.encryptBlockRaw=function(e){return e=i(e),a(e,this._keySchedule,u.SUB_MIX,u.SBOX,this._nRounds)},c.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),r=n.allocUnsafe(16);return r.writeUInt32BE(t[0],0),r.writeUInt32BE(t[1],4),r.writeUInt32BE(t[2],8),r.writeUInt32BE(t[3],12),r},c.prototype.decryptBlock=function(e){e=i(e);var t=e[1];e[1]=e[3],e[3]=t;var r=a(e,this._invKeySchedule,u.INV_SUB_MIX,u.INV_SBOX,this._nRounds),o=n.allocUnsafe(16);return o.writeUInt32BE(r[0],0),o.writeUInt32BE(r[3],4),o.writeUInt32BE(r[2],8),o.writeUInt32BE(r[1],12),o},c.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},e.exports.AES=c},"0497":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("e415")),o=n(r("1ff8")),a=n(r("f7fd")),s=function(){function e(e,t){if(0===t.length)throw new a.default;this.field=e;var r=t.length;if(r>1&&0===t[0]){var n=1;while(n<r&&0===t[n])n++;n===r?this.coefficients=Int32Array.from([0]):(this.coefficients=new Int32Array(r-n),o.default.arraycopy(t,n,this.coefficients,0,this.coefficients.length))}else this.coefficients=t}return e.prototype.getCoefficients=function(){return this.coefficients},e.prototype.getDegree=function(){return this.coefficients.length-1},e.prototype.isZero=function(){return 0===this.coefficients[0]},e.prototype.getCoefficient=function(e){return this.coefficients[this.coefficients.length-1-e]},e.prototype.evaluateAt=function(e){if(0===e)return this.getCoefficient(0);var t,r=this.coefficients;if(1===e){t=0;for(var n=0,o=r.length;n!==o;n++){var a=r[n];t=i.default.addOrSubtract(t,a)}return t}t=r[0];var s=r.length,u=this.field;for(n=1;n<s;n++)t=i.default.addOrSubtract(u.multiply(e,t),r[n]);return t},e.prototype.addOrSubtract=function(t){if(!this.field.equals(t.field))throw new a.default("GenericGFPolys do not have same GenericGF field");if(this.isZero())return t;if(t.isZero())return this;var r=this.coefficients,n=t.coefficients;if(r.length>n.length){var s=r;r=n,n=s}var u=new Int32Array(n.length),c=n.length-r.length;o.default.arraycopy(n,0,u,0,c);for(var f=c;f<n.length;f++)u[f]=i.default.addOrSubtract(r[f-c],n[f]);return new e(this.field,u)},e.prototype.multiply=function(t){if(!this.field.equals(t.field))throw new a.default("GenericGFPolys do not have same GenericGF field");if(this.isZero()||t.isZero())return this.field.getZero();for(var r=this.coefficients,n=r.length,o=t.coefficients,s=o.length,u=new Int32Array(n+s-1),c=this.field,f=0;f<n;f++)for(var l=r[f],d=0;d<s;d++)u[f+d]=i.default.addOrSubtract(u[f+d],c.multiply(l,o[d]));return new e(c,u)},e.prototype.multiplyScalar=function(t){if(0===t)return this.field.getZero();if(1===t)return this;for(var r=this.coefficients.length,n=this.field,i=new Int32Array(r),o=this.coefficients,a=0;a<r;a++)i[a]=n.multiply(o[a],t);return new e(n,i)},e.prototype.multiplyByMonomial=function(t,r){if(t<0)throw new a.default;if(0===r)return this.field.getZero();for(var n=this.coefficients,i=n.length,o=new Int32Array(i+t),s=this.field,u=0;u<i;u++)o[u]=s.multiply(n[u],r);return new e(s,o)},e.prototype.divide=function(e){if(!this.field.equals(e.field))throw new a.default("GenericGFPolys do not have same GenericGF field");if(e.isZero())throw new a.default("Divide by 0");var t=this.field,r=t.getZero(),n=this,i=e.getCoefficient(e.getDegree()),o=t.inverse(i);while(n.getDegree()>=e.getDegree()&&!n.isZero()){var s=n.getDegree()-e.getDegree(),u=t.multiply(n.getCoefficient(n.getDegree()),o),c=e.multiplyByMonomial(s,u),f=t.buildMonomial(s,u);r=r.addOrSubtract(f),n=n.addOrSubtract(c)}return[r,n]},e.prototype.toString=function(){for(var e="",t=this.getDegree();t>=0;t--){var r=this.getCoefficient(t);if(0!==r){if(r<0?(e+=" - ",r=-r):e.length>0&&(e+=" + "),0===t||1!==r){var n=this.field.log(r);0===n?e+="1":1===n?e+="a":(e+="a^",e+=n)}0!==t&&(1===t?e+="x":(e+="x^",e+=t))}}return e},e}(),u=s;t.default=u},"04ef":function(e,t,r){"use strict";t.utils=r("88d4"),t.Cipher=r("0168"),t.DES=r("21cb"),t.CBC=r("9f25"),t.EDE=r("61e3")},"04f0":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("457d")),o=n(r("15aa")),a=n(r("78df")),s={en:i.default,"zh-Hans":o.default,"zh-Hant":a.default};t.default=s},"055b":function(e,t,r){"use strict";var n=r("2c2e"),i=r("782c"),o=r("2d81"),a=r("25a4"),s=r("cfef");function u(e){s.call(this,"digest"),this._hash=e}n(u,s),u.prototype._update=function(e){this._hash.update(e)},u.prototype._final=function(){return this._hash.digest()},e.exports=function(e){return e=e.toLowerCase(),"md5"===e?new i:"rmd160"===e||"ripemd160"===e?new o:new u(a(e))}},"061d":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("36d3")),o=function(){function e(e,t,r){this.codewords=e,this.numcols=t,this.numrows=r,this.bits=new Uint8Array(t*r),i.default.fill(this.bits,2)}return e.prototype.getNumrows=function(){return this.numrows},e.prototype.getNumcols=function(){return this.numcols},e.prototype.getBits=function(){return this.bits},e.prototype.getBit=function(e,t){return 1===this.bits[t*this.numcols+e]},e.prototype.setBit=function(e,t,r){this.bits[t*this.numcols+e]=r?1:0},e.prototype.noBit=function(e,t){return 2===this.bits[t*this.numcols+e]},e.prototype.place=function(){var e=0,t=4,r=0;do{t===this.numrows&&0===r&&this.corner1(e++),t===this.numrows-2&&0===r&&this.numcols%4!==0&&this.corner2(e++),t===this.numrows-2&&0===r&&this.numcols%8===4&&this.corner3(e++),t===this.numrows+4&&2===r&&this.numcols%8===0&&this.corner4(e++);do{t<this.numrows&&r>=0&&this.noBit(r,t)&&this.utah(t,r,e++),t-=2,r+=2}while(t>=0&&r<this.numcols);t++,r+=3;do{t>=0&&r<this.numcols&&this.noBit(r,t)&&this.utah(t,r,e++),t+=2,r-=2}while(t<this.numrows&&r>=0);t+=3,r++}while(t<this.numrows||r<this.numcols);this.noBit(this.numcols-1,this.numrows-1)&&(this.setBit(this.numcols-1,this.numrows-1,!0),this.setBit(this.numcols-2,this.numrows-2,!0))},e.prototype.module=function(e,t,r,n){e<0&&(e+=this.numrows,t+=4-(this.numrows+4)%8),t<0&&(t+=this.numcols,e+=4-(this.numcols+4)%8);var i=this.codewords.charCodeAt(r);i&=1<<8-n,this.setBit(t,e,0!==i)},e.prototype.utah=function(e,t,r){this.module(e-2,t-2,r,1),this.module(e-2,t-1,r,2),this.module(e-1,t-2,r,3),this.module(e-1,t-1,r,4),this.module(e-1,t,r,5),this.module(e,t-2,r,6),this.module(e,t-1,r,7),this.module(e,t,r,8)},e.prototype.corner1=function(e){this.module(this.numrows-1,0,e,1),this.module(this.numrows-1,1,e,2),this.module(this.numrows-1,2,e,3),this.module(0,this.numcols-2,e,4),this.module(0,this.numcols-1,e,5),this.module(1,this.numcols-1,e,6),this.module(2,this.numcols-1,e,7),this.module(3,this.numcols-1,e,8)},e.prototype.corner2=function(e){this.module(this.numrows-3,0,e,1),this.module(this.numrows-2,0,e,2),this.module(this.numrows-1,0,e,3),this.module(0,this.numcols-4,e,4),this.module(0,this.numcols-3,e,5),this.module(0,this.numcols-2,e,6),this.module(0,this.numcols-1,e,7),this.module(1,this.numcols-1,e,8)},e.prototype.corner3=function(e){this.module(this.numrows-3,0,e,1),this.module(this.numrows-2,0,e,2),this.module(this.numrows-1,0,e,3),this.module(0,this.numcols-2,e,4),this.module(0,this.numcols-1,e,5),this.module(1,this.numcols-1,e,6),this.module(2,this.numcols-1,e,7),this.module(3,this.numcols-1,e,8)},e.prototype.corner4=function(e){this.module(this.numrows-1,0,e,1),this.module(this.numrows-1,this.numcols-1,e,2),this.module(0,this.numcols-3,e,3),this.module(0,this.numcols-2,e,4),this.module(0,this.numcols-1,e,5),this.module(1,this.numcols-3,e,6),this.module(1,this.numcols-2,e,7),this.module(1,this.numcols-1,e,8)},e}(),a=o;t.default=a},"0680":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("b717")),o=n(r("0c24")),a=n(r("f228")),s=n(r("3655")),u=n(r("bab0")),c=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ean13Reader=new s.default,t}return c(t,e),t.prototype.getBarcodeFormat=function(){return i.default.UPC_A},t.prototype.decode=function(e,t){return this.maybeReturnResult(this.ean13Reader.decode(e))},t.prototype.decodeRow=function(e,t,r){return this.maybeReturnResult(this.ean13Reader.decodeRow(e,t,r))},t.prototype.decodeMiddle=function(e,t,r){return this.ean13Reader.decodeMiddle(e,t,r)},t.prototype.maybeReturnResult=function(e){var t=e.getText();if("0"===t.charAt(0)){var r=new o.default(t.substring(1),null,null,e.getResultPoints(),i.default.UPC_A);return null!=e.getResultMetadata()&&r.putAllMetadata(e.getResultMetadata()),r}throw new a.default},t.prototype.reset=function(){this.ean13Reader.reset()},t}(u.default),l=f;t.default=l},"07a0":function(e,t,r){"use strict";var n=r("81eb"),i=r("4e45"),o=i.getNAF,a=i.getJSF,s=i.assert;function u(e,t){this.type=e,this.p=new n(t.p,16),this.red=t.prime?n.red(t.prime):n.mont(this.p),this.zero=new n(0).toRed(this.red),this.one=new n(1).toRed(this.red),this.two=new n(2).toRed(this.red),this.n=t.n&&new n(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function c(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=u,u.prototype.point=function(){throw new Error("Not implemented")},u.prototype.validate=function(){throw new Error("Not implemented")},u.prototype._fixedNafMul=function(e,t){s(e.precomputed);var r=e._getDoubles(),n=o(t,1,this._bitLength),i=(1<<r.step+1)-(r.step%2===0?2:1);i/=3;var a,u,c=[];for(a=0;a<n.length;a+=r.step){u=0;for(var f=a+r.step-1;f>=a;f--)u=(u<<1)+n[f];c.push(u)}for(var l=this.jpoint(null,null,null),d=this.jpoint(null,null,null),h=i;h>0;h--){for(a=0;a<c.length;a++)u=c[a],u===h?d=d.mixedAdd(r.points[a]):u===-h&&(d=d.mixedAdd(r.points[a].neg()));l=l.add(d)}return l.toP()},u.prototype._wnafMul=function(e,t){var r=4,n=e._getNAFPoints(r);r=n.wnd;for(var i=n.points,a=o(t,r,this._bitLength),u=this.jpoint(null,null,null),c=a.length-1;c>=0;c--){for(var f=0;c>=0&&0===a[c];c--)f++;if(c>=0&&f++,u=u.dblp(f),c<0)break;var l=a[c];s(0!==l),u="affine"===e.type?l>0?u.mixedAdd(i[l-1>>1]):u.mixedAdd(i[-l-1>>1].neg()):l>0?u.add(i[l-1>>1]):u.add(i[-l-1>>1].neg())}return"affine"===e.type?u.toP():u},u.prototype._wnafMulAdd=function(e,t,r,n,i){var s,u,c,f=this._wnafT1,l=this._wnafT2,d=this._wnafT3,h=0;for(s=0;s<n;s++){c=t[s];var p=c._getNAFPoints(e);f[s]=p.wnd,l[s]=p.points}for(s=n-1;s>=1;s-=2){var g=s-1,y=s;if(1===f[g]&&1===f[y]){var v=[t[g],null,null,t[y]];0===t[g].y.cmp(t[y].y)?(v[1]=t[g].add(t[y]),v[2]=t[g].toJ().mixedAdd(t[y].neg())):0===t[g].y.cmp(t[y].y.redNeg())?(v[1]=t[g].toJ().mixedAdd(t[y]),v[2]=t[g].add(t[y].neg())):(v[1]=t[g].toJ().mixedAdd(t[y]),v[2]=t[g].toJ().mixedAdd(t[y].neg()));var b=[-3,-1,-5,-7,0,7,5,1,3],m=a(r[g],r[y]);for(h=Math.max(m[0].length,h),d[g]=new Array(h),d[y]=new Array(h),u=0;u<h;u++){var _=0|m[0][u],w=0|m[1][u];d[g][u]=b[3*(_+1)+(w+1)],d[y][u]=0,l[g]=v}}else d[g]=o(r[g],f[g],this._bitLength),d[y]=o(r[y],f[y],this._bitLength),h=Math.max(d[g].length,h),h=Math.max(d[y].length,h)}var A=this.jpoint(null,null,null),S=this._wnafT4;for(s=h;s>=0;s--){var x=0;while(s>=0){var E=!0;for(u=0;u<n;u++)S[u]=0|d[u][s],0!==S[u]&&(E=!1);if(!E)break;x++,s--}if(s>=0&&x++,A=A.dblp(x),s<0)break;for(u=0;u<n;u++){var C=S[u];0!==C&&(C>0?c=l[u][C-1>>1]:C<0&&(c=l[u][-C-1>>1].neg()),A="affine"===c.type?A.mixedAdd(c):A.add(c))}}for(s=0;s<n;s++)l[s]=null;return i?A:A.toP()},u.BasePoint=c,c.prototype.eq=function(){throw new Error("Not implemented")},c.prototype.validate=function(){return this.curve.validate(this)},u.prototype.decodePoint=function(e,t){e=i.toArray(e,t);var r=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1===2*r){6===e[0]?s(e[e.length-1]%2===0):7===e[0]&&s(e[e.length-1]%2===1);var n=this.point(e.slice(1,1+r),e.slice(1+r,1+2*r));return n}if((2===e[0]||3===e[0])&&e.length-1===r)return this.pointFromX(e.slice(1,1+r),3===e[0]);throw new Error("Unknown point format")},c.prototype.encodeCompressed=function(e){return this.encode(e,!0)},c.prototype._encode=function(e){var t=this.curve.p.byteLength(),r=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",t))},c.prototype.encode=function(e,t){return i.encode(this._encode(t),e)},c.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},c.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},c.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i<t;i+=e){for(var o=0;o<e;o++)n=n.dbl();r.push(n)}return{step:e,points:r}},c.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],r=(1<<e)-1,n=1===r?null:this.dbl(),i=1;i<r;i++)t[i]=t[i-1].add(n);return{wnd:e,points:t}},c.prototype._getBeta=function(){return null},c.prototype.dblp=function(e){for(var t=this,r=0;r<e;r++)t=t.dbl();return t}},"08a0":function(e,t,r){"use strict";var n=r("d652"),i=r("6120"),o=n.rotl32,a=n.sum32,s=n.sum32_3,u=n.sum32_4,c=i.BlockHash;function f(){if(!(this instanceof f))return new f;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function l(e,t,r,n){return e<=15?t^r^n:e<=31?t&r|~t&n:e<=47?(t|~r)^n:e<=63?t&n|r&~n:t^(r|~n)}function d(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function h(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}n.inherits(f,c),t.ripemd160=f,f.blockSize=512,f.outSize=160,f.hmacStrength=192,f.padLength=64,f.prototype._update=function(e,t){for(var r=this.h[0],n=this.h[1],i=this.h[2],c=this.h[3],f=this.h[4],b=r,m=n,_=i,w=c,A=f,S=0;S<80;S++){var x=a(o(u(r,l(S,n,i,c),e[p[S]+t],d(S)),y[S]),f);r=f,f=c,c=o(i,10),i=n,n=x,x=a(o(u(b,l(79-S,m,_,w),e[g[S]+t],h(S)),v[S]),A),b=A,A=w,w=o(_,10),_=m,m=x}x=s(this.h[1],i,w),this.h[1]=s(this.h[2],c,A),this.h[2]=s(this.h[3],f,b),this.h[3]=s(this.h[4],r,m),this.h[4]=s(this.h[0],n,_),this.h[0]=x},f.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"little"):n.split32(this.h,"little")};var p=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],g=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],y=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],v=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},"08b1":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("dfe7")),o=n(r("7e9b")),a=n(r("d9cd")),s=n(r("f228")),u=n(r("a8be")),c=function(){function e(e){this.image=e,this.rectangleDetector=new i.default(this.image)}return e.prototype.detect=function(){var t=this.rectangleDetector.detect(),r=this.detectSolid1(t);if(r=this.detectSolid2(r),r[3]=this.correctTopRight(r),!r[3])throw new s.default;r=this.shiftToModuleCenter(r);var n=r[0],i=r[1],a=r[2],u=r[3],c=this.transitionsBetween(n,u)+1,f=this.transitionsBetween(a,u)+1;1===(1&c)&&(c+=1),1===(1&f)&&(f+=1),4*c<7*f&&4*f<7*c&&(c=f=Math.max(c,f));var l=e.sampleGrid(this.image,n,i,a,u,c,f);return new o.default(l,[n,i,a,u])},e.shiftPoint=function(e,t,r){var n=(t.getX()-e.getX())/(r+1),i=(t.getY()-e.getY())/(r+1);return new u.default(e.getX()+n,e.getY()+i)},e.moveAway=function(e,t,r){var n=e.getX(),i=e.getY();return n<t?n-=1:n+=1,i<r?i-=1:i+=1,new u.default(n,i)},e.prototype.detectSolid1=function(e){var t=e[0],r=e[1],n=e[3],i=e[2],o=this.transitionsBetween(t,r),a=this.transitionsBetween(r,n),s=this.transitionsBetween(n,i),u=this.transitionsBetween(i,t),c=o,f=[i,t,r,n];return c>a&&(c=a,f[0]=t,f[1]=r,f[2]=n,f[3]=i),c>s&&(c=s,f[0]=r,f[1]=n,f[2]=i,f[3]=t),c>u&&(f[0]=n,f[1]=i,f[2]=t,f[3]=r),f},e.prototype.detectSolid2=function(t){var r=t[0],n=t[1],i=t[2],o=t[3],a=this.transitionsBetween(r,o),s=e.shiftPoint(n,i,4*(a+1)),u=e.shiftPoint(i,n,4*(a+1)),c=this.transitionsBetween(s,r),f=this.transitionsBetween(u,o);return c<f?(t[0]=r,t[1]=n,t[2]=i,t[3]=o):(t[0]=n,t[1]=i,t[2]=o,t[3]=r),t},e.prototype.correctTopRight=function(t){var r=t[0],n=t[1],i=t[2],o=t[3],a=this.transitionsBetween(r,o),s=this.transitionsBetween(n,o),c=e.shiftPoint(r,n,4*(s+1)),f=e.shiftPoint(i,n,4*(a+1));a=this.transitionsBetween(c,o),s=this.transitionsBetween(f,o);var l=new u.default(o.getX()+(i.getX()-n.getX())/(a+1),o.getY()+(i.getY()-n.getY())/(a+1)),d=new u.default(o.getX()+(r.getX()-n.getX())/(s+1),o.getY()+(r.getY()-n.getY())/(s+1));if(!this.isValid(l))return this.isValid(d)?d:null;if(!this.isValid(d))return l;var h=this.transitionsBetween(c,l)+this.transitionsBetween(f,l),p=this.transitionsBetween(c,d)+this.transitionsBetween(f,d);return h>p?l:d},e.prototype.shiftToModuleCenter=function(t){var r=t[0],n=t[1],i=t[2],o=t[3],a=this.transitionsBetween(r,o)+1,s=this.transitionsBetween(i,o)+1,u=e.shiftPoint(r,n,4*s),c=e.shiftPoint(i,n,4*a);a=this.transitionsBetween(u,o)+1,s=this.transitionsBetween(c,o)+1,1===(1&a)&&(a+=1),1===(1&s)&&(s+=1);var f,l,d=(r.getX()+n.getX()+i.getX()+o.getX())/4,h=(r.getY()+n.getY()+i.getY()+o.getY())/4;return r=e.moveAway(r,d,h),n=e.moveAway(n,d,h),i=e.moveAway(i,d,h),o=e.moveAway(o,d,h),u=e.shiftPoint(r,n,4*s),u=e.shiftPoint(u,o,4*a),f=e.shiftPoint(n,r,4*s),f=e.shiftPoint(f,i,4*a),c=e.shiftPoint(i,o,4*s),c=e.shiftPoint(c,n,4*a),l=e.shiftPoint(o,i,4*s),l=e.shiftPoint(l,r,4*a),[u,f,c,l]},e.prototype.isValid=function(e){return e.getX()>=0&&e.getX()<this.image.getWidth()&&e.getY()>0&&e.getY()<this.image.getHeight()},e.sampleGrid=function(e,t,r,n,i,o,s){var u=a.default.getInstance();return u.sampleGrid(e,o,s,.5,.5,o-.5,.5,o-.5,s-.5,.5,s-.5,t.getX(),t.getY(),i.getX(),i.getY(),n.getX(),n.getY(),r.getX(),r.getY())},e.prototype.transitionsBetween=function(e,t){var r=Math.trunc(e.getX()),n=Math.trunc(e.getY()),i=Math.trunc(t.getX()),o=Math.trunc(t.getY()),a=Math.abs(o-n)>Math.abs(i-r);if(a){var s=r;r=n,n=s,s=i,i=o,o=s}for(var u=Math.abs(i-r),c=Math.abs(o-n),f=-u/2,l=n<o?1:-1,d=r<i?1:-1,h=0,p=this.image.get(a?n:r,a?r:n),g=r,y=n;g!==i;g+=d){var v=this.image.get(a?y:g,a?g:y);if(v!==p&&(h++,p=v),f+=c,f>0){if(y===o)break;y+=l,f-=u}}return h},e}(),f=c;t.default=f},"08c4":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("b717")),o=n(r("7e0b")),a=n(r("76a0")),s=n(r("f228")),u=n(r("0c24")),c=n(r("37ed")),f=n(r("cd4e")),l=n(r("3f6d")),d=n(r("35e9")),h=function(){function e(){this.decoder=new f.default}return e.prototype.getDecoder=function(){return this.decoder},e.prototype.decode=function(t,r){var n,o;if(void 0!==r&&null!==r&&void 0!==r.get(a.default.PURE_BARCODE)){var s=e.extractPureBits(t.getBlackMatrix());n=this.decoder.decodeBitMatrix(s,r),o=e.NO_POINTS}else{var f=new d.default(t.getBlackMatrix()).detect(r);n=this.decoder.decodeBitMatrix(f.getBits(),r),o=f.getPoints()}n.getOther()instanceof l.default&&n.getOther().applyMirroredCorrection(o);var h=new u.default(n.getText(),n.getRawBytes(),void 0,o,i.default.QR_CODE,void 0),p=n.getByteSegments();null!==p&&h.putMetadata(c.default.BYTE_SEGMENTS,p);var g=n.getECLevel();return null!==g&&h.putMetadata(c.default.ERROR_CORRECTION_LEVEL,g),n.hasStructuredAppend()&&(h.putMetadata(c.default.STRUCTURED_APPEND_SEQUENCE,n.getStructuredAppendSequenceNumber()),h.putMetadata(c.default.STRUCTURED_APPEND_PARITY,n.getStructuredAppendParity())),h},e.prototype.reset=function(){},e.extractPureBits=function(e){var t=e.getTopLeftOnBit(),r=e.getBottomRightOnBit();if(null===t||null===r)throw new s.default;var n=this.moduleSize(t,e),i=t[1],a=r[1],u=t[0],c=r[0];if(u>=c||i>=a)throw new s.default;if(a-i!==c-u&&(c=u+(a-i),c>=e.getWidth()))throw new s.default;var f=Math.round((c-u+1)/n),l=Math.round((a-i+1)/n);if(f<=0||l<=0)throw new s.default;if(l!==f)throw new s.default;var d=Math.floor(n/2);i+=d,u+=d;var h=u+Math.floor((f-1)*n)-c;if(h>0){if(h>d)throw new s.default;u-=h}var p=i+Math.floor((l-1)*n)-a;if(p>0){if(p>d)throw new s.default;i-=p}for(var g=new o.default(f,l),y=0;y<l;y++)for(var v=i+Math.floor(y*n),b=0;b<f;b++)e.get(u+Math.floor(b*n),v)&&g.set(b,y);return g},e.moduleSize=function(e,t){var r=t.getHeight(),n=t.getWidth(),i=e[0],o=e[1],a=!0,u=0;while(i<n&&o<r){if(a!==t.get(i,o)){if(5===++u)break;a=!a}i++,o++}if(i===n||o===r)throw new s.default;return(i-e[0])/7},e.NO_POINTS=new Array,e}(),p=h;t.default=p},"08c5":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ErrorCorrectionLevelValues=void 0;var i,o=n(r("3fa8")),a=n(r("f7fd"));t.ErrorCorrectionLevelValues=i,function(e){e[e["L"]=0]="L",e[e["M"]=1]="M",e[e["Q"]=2]="Q",e[e["H"]=3]="H"}(i||(t.ErrorCorrectionLevelValues=i={}));var s=function(){function e(t,r,n){this.value=t,this.stringValue=r,this.bits=n,e.FOR_BITS.set(n,this),e.FOR_VALUE.set(t,this)}return e.prototype.getValue=function(){return this.value},e.prototype.getBits=function(){return this.bits},e.fromString=function(t){switch(t){case"L":return e.L;case"M":return e.M;case"Q":return e.Q;case"H":return e.H;default:throw new o.default(t+"not available")}},e.prototype.toString=function(){return this.stringValue},e.prototype.equals=function(t){if(!(t instanceof e))return!1;var r=t;return this.value===r.value},e.forBits=function(t){if(t<0||t>=e.FOR_BITS.size)throw new a.default;return e.FOR_BITS.get(t)},e.FOR_BITS=new Map,e.FOR_VALUE=new Map,e.L=new e(i.L,"L",1),e.M=new e(i.M,"M",0),e.Q=new e(i.Q,"Q",3),e.H=new e(i.H,"H",2),e}(),u=s;t.default=u},"0a0c":function(e,t,r){var n=r("5f79").Buffer,i=r("782c");e.exports=function(e,t,r,o){if(n.isBuffer(e)||(e=n.from(e,"binary")),t&&(n.isBuffer(t)||(t=n.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");var a=r/8,s=n.alloc(a),u=n.alloc(o||0),c=n.alloc(0);while(a>0||o>0){var f=new i;f.update(c),f.update(e),t&&f.update(t),c=f.digest();var l=0;if(a>0){var d=s.length-a;l=Math.min(a,c.length),c.copy(s,d,0,l),a-=l}if(l<c.length&&o>0){var h=u.length-o,p=Math.min(o,c.length-l);c.copy(u,h,l,l+p),o-=p}}return c.fill(0),{key:s,iv:u}}},"0ac6":function(e,t,r){(function(n,i){var o,a,s,u=r("3b2d");(function(r){"object"===u(t)&&"undefined"!==typeof e?e.exports=r():(a=[],o=r,s="function"===typeof o?o.apply(t,a):o,void 0===s||(e.exports=s))})((function(){return function(){return function e(t,r,n){function i(a,s){if(!r[a]){if(!t[a]){if(o)return o(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var c=r[a]={exports:{}};t[a][0].call(c.exports,(function(e){var r=t[a][1][e];return i(r||e)}),c,c.exports,e,t,r,n)}return r[a].exports}for(var o=!1,a=0;a<n.length;a++)i(n[a]);return i}}()({1:[function(e,t,r){(function(r,n){"use strict";var i=e("events"),o=e("./store"),a=e("mqtt-packet"),s=e("readable-stream").Writable,c=e("inherits"),f=e("reinterval"),l=e("./validations"),d=e("xtend"),h=n.setImmediate||function(e){r.nextTick(e)},p={keepalive:60,reschedulePings:!0,protocolId:"MQTT",protocolVersion:4,reconnectPeriod:1e3,connectTimeout:3e4,clean:!0,resubscribe:!0},g={0:"",1:"Unacceptable protocol version",2:"Identifier rejected",3:"Server unavailable",4:"Bad username or password",5:"Not authorized",16:"No matching subscribers",17:"No subscription existed",128:"Unspecified error",129:"Malformed Packet",130:"Protocol Error",131:"Implementation specific error",132:"Unsupported Protocol Version",133:"Client Identifier not valid",134:"Bad User Name or Password",135:"Not authorized",136:"Server unavailable",137:"Server busy",138:"Banned",139:"Server shutting down",140:"Bad authentication method",141:"Keep Alive timeout",142:"Session taken over",143:"Topic Filter invalid",144:"Topic Name invalid",145:"Packet identifier in use",146:"Packet Identifier not found",147:"Receive Maximum exceeded",148:"Topic Alias invalid",149:"Packet too large",150:"Message rate too high",151:"Quota exceeded",152:"Administrative action",153:"Payload format invalid",154:"Retain not supported",155:"QoS not supported",156:"Use another server",157:"Server moved",158:"Shared Subscriptions not supported",159:"Connection rate exceeded",160:"Maximum connect time",161:"Subscription Identifiers not supported",162:"Wildcard Subscriptions not supported"};function y(e,t,r){e.emit("packetsend",t);var n=a.writeToStream(t,e.stream,e.options);!n&&r?e.stream.once("drain",r):r&&r()}function v(e){e&&Object.keys(e).forEach((function(t){"function"===typeof e[t].cb&&(e[t].cb(new Error("Connection closed")),delete e[t])}))}function b(e,t,r,n){e.outgoingStore.put(t,(function(i){if(i)return r&&r(i);n(),y(e,t,r)}))}function m(){}function _(e,t){var r,n=this;if(!(this instanceof _))return new _(e,t);for(r in this.options=t||{},p)"undefined"===typeof this.options[r]?this.options[r]=p[r]:this.options[r]=t[r];this.options.clientId="string"===typeof t.clientId?t.clientId:function(){return"mqttjs_"+Math.random().toString(16).substr(2,8)}(),this.options.customHandleAcks=5===t.protocolVersion&&t.customHandleAcks?t.customHandleAcks:function(){arguments[3](0)},this.streamBuilder=e,this.outgoingStore=t.outgoingStore||new o,this.incomingStore=t.incomingStore||new o,this.queueQoSZero=void 0===t.queueQoSZero||t.queueQoSZero,this._resubscribeTopics={},this.messageIdToTopic={},this.pingTimer=null,this.connected=!1,this.disconnecting=!1,this.queue=[],this.connackTimer=null,this.reconnectTimer=null,this._storeProcessing=!1,this._packetIdsDuringStoreProcessing={},this.nextId=Math.max(1,Math.floor(65535*Math.random())),this.outgoing={},this._firstConnection=!0,this.on("close",(function(){this.connected=!1,clearTimeout(this.connackTimer)})),this.on("connect",(function(){var e=this.queue;(function t(){var r,i=e.shift();i&&(r=i.packet,n._sendPacket(r,(function(e){i.cb&&i.cb(e),t()})))})()})),this.on("close",(function(){null!==n.pingTimer&&(n.pingTimer.clear(),n.pingTimer=null)})),this.on("close",this._setupReconnect),i.EventEmitter.call(this),this._setupStream()}c(_,i.EventEmitter),_.prototype._setupStream=function(){var e,t=this,n=new s,i=a.parser(this.options),o=null,c=[];function f(){if(c.length)r.nextTick(l);else{var e=o;o=null,e()}}function l(){var e=c.shift();if(e)t._handlePacket(e,f);else{var r=o;o=null,r&&r()}}if(this._clearReconnect(),this.stream=this.streamBuilder(this),i.on("packet",(function(e){c.push(e)})),n._write=function(e,t,r){o=r,i.parse(e),l()},this.stream.pipe(n),this.stream.on("error",m),this.stream.on("close",(function(){(function(e){e&&Object.keys(e).forEach((function(t){e[t].volatile&&"function"===typeof e[t].cb&&(e[t].cb(new Error("Connection closed")),delete e[t])}))})(t.outgoing),t.emit("close")})),e=Object.create(this.options),e.cmd="connect",y(this,e),i.on("error",this.emit.bind(this,"error")),this.options.properties){if(!this.options.properties.authenticationMethod&&this.options.properties.authenticationData)return this.emit("error",new Error("Packet has no Authentication Method")),this;if(this.options.properties.authenticationMethod&&this.options.authPacket&&"object"===u(this.options.authPacket)){var h=d({cmd:"auth",reasonCode:0},this.options.authPacket);y(this,h)}}this.stream.setMaxListeners(1e3),clearTimeout(this.connackTimer),this.connackTimer=setTimeout((function(){t._cleanUp(!0)}),this.options.connectTimeout)},_.prototype._handlePacket=function(e,t){var r=this.options;if(5===r.protocolVersion&&r.properties&&r.properties.maximumPacketSize&&r.properties.maximumPacketSize<e.length)return this.emit("error",new Error("exceeding packets size "+e.cmd)),this.end({reasonCode:149,properties:{reasonString:"Maximum packet size was exceeded"}}),this;switch(this.emit("packetreceive",e),e.cmd){case"publish":this._handlePublish(e,t);break;case"puback":case"pubrec":case"pubcomp":case"suback":case"unsuback":this._handleAck(e),t();break;case"pubrel":this._handlePubrel(e,t);break;case"connack":this._handleConnack(e),t();break;case"pingresp":this._handlePingresp(e),t();break;case"disconnect":this._handleDisconnect(e),t();break;default:break}},_.prototype._checkDisconnecting=function(e){return this.disconnecting&&(e?e(new Error("client disconnecting")):this.emit("error",new Error("client disconnecting"))),this.disconnecting},_.prototype.publish=function(e,t,r,n){var i,o=this.options;"function"===typeof r&&(n=r,r=null);if(r=d({qos:0,retain:!1,dup:!1},r),this._checkDisconnecting(n))return this;switch(i={cmd:"publish",topic:e,payload:t,qos:r.qos,retain:r.retain,messageId:this._nextId(),dup:r.dup},5===o.protocolVersion&&(i.properties=r.properties,(!o.properties&&i.properties&&i.properties.topicAlias||r.properties&&o.properties&&(r.properties.topicAlias&&o.properties.topicAliasMaximum&&r.properties.topicAlias>o.properties.topicAliasMaximum||!o.properties.topicAliasMaximum&&r.properties.topicAlias))&&delete i.properties.topicAlias),r.qos){case 1:case 2:this.outgoing[i.messageId]={volatile:!1,cb:n||m},this._storeProcessing?(this._packetIdsDuringStoreProcessing[i.messageId]=!1,this._storePacket(i,void 0,r.cbStorePut)):this._sendPacket(i,void 0,r.cbStorePut);break;default:this._storeProcessing?this._storePacket(i,n,r.cbStorePut):this._sendPacket(i,n,r.cbStorePut);break}return this},_.prototype.subscribe=function(){for(var e,t=new Array(arguments.length),r=0;r<arguments.length;r++)t[r]=arguments[r];var n,i=[],o=t.shift(),a=o.resubscribe,s=t.pop()||m,u=t.pop(),c=this,f=this.options.protocolVersion;if(delete o.resubscribe,"string"===typeof o&&(o=[o]),"function"!==typeof s&&(u=s,s=m),n=l.validateTopics(o),null!==n)return h(s,new Error("Invalid topic "+n)),this;if(this._checkDisconnecting(s))return this;var p={qos:0};if(5===f&&(p.nl=!1,p.rap=!1,p.rh=0),u=d(p,u),Array.isArray(o)?o.forEach((function(e){if(!c._resubscribeTopics.hasOwnProperty(e)||c._resubscribeTopics[e].qos<u.qos||a){var t={topic:e,qos:u.qos};5===f&&(t.nl=u.nl,t.rap=u.rap,t.rh=u.rh,t.properties=u.properties),i.push(t)}})):Object.keys(o).forEach((function(e){if(!c._resubscribeTopics.hasOwnProperty(e)||c._resubscribeTopics[e].qos<o[e].qos||a){var t={topic:e,qos:o[e].qos};5===f&&(t.nl=o[e].nl,t.rap=o[e].rap,t.rh=o[e].rh,t.properties=u.properties),i.push(t)}})),e={cmd:"subscribe",subscriptions:i,qos:1,retain:!1,dup:!1,messageId:this._nextId()},u.properties&&(e.properties=u.properties),i.length){if(this.options.resubscribe){var g=[];i.forEach((function(e){if(c.options.reconnectPeriod>0){var t={qos:e.qos};5===f&&(t.nl=e.nl||!1,t.rap=e.rap||!1,t.rh=e.rh||0,t.properties=e.properties),c._resubscribeTopics[e.topic]=t,g.push(e.topic)}})),c.messageIdToTopic[e.messageId]=g}return this.outgoing[e.messageId]={volatile:!0,cb:function(e,t){if(!e)for(var r=t.granted,n=0;n<r.length;n+=1)i[n].qos=r[n];s(e,i)}},this._sendPacket(e),this}s(null,[])},_.prototype.unsubscribe=function(){for(var e={cmd:"unsubscribe",qos:1,messageId:this._nextId()},t=this,r=new Array(arguments.length),n=0;n<arguments.length;n++)r[n]=arguments[n];var i=r.shift(),o=r.pop()||m,a=r.pop();return"string"===typeof i&&(i=[i]),"function"!==typeof o&&(a=o,o=m),this._checkDisconnecting(o)||("string"===typeof i?e.unsubscriptions=[i]:"object"===u(i)&&i.length&&(e.unsubscriptions=i),this.options.resubscribe&&e.unsubscriptions.forEach((function(e){delete t._resubscribeTopics[e]})),"object"===u(a)&&a.properties&&(e.properties=a.properties),this.outgoing[e.messageId]={volatile:!0,cb:o},this._sendPacket(e)),this},_.prototype.end=function(){var e=this,t=arguments[0],r=arguments[1],n=arguments[2];function i(){e.disconnected=!0,e.incomingStore.close((function(){e.outgoingStore.close((function(){n&&n.apply(null,arguments),e.emit("end")}))})),e._deferredReconnect&&e._deferredReconnect()}function o(){e._cleanUp(t,h.bind(null,i),r)}return null!=t&&"boolean"===typeof t||(n=r||m,r=t,t=!1,"object"!==u(r)&&(n=r,r=null,"function"!==typeof n&&(n=m))),"object"!==u(r)&&(n=r,r=null),n=n||m,this.disconnecting||(this._clearReconnect(),this.disconnecting=!0,!t&&Object.keys(this.outgoing).length>0?this.once("outgoingEmpty",setTimeout.bind(null,o,10)):o()),this},_.prototype.removeOutgoingMessage=function(e){var t=this.outgoing[e]?this.outgoing[e].cb:null;return delete this.outgoing[e],this.outgoingStore.del({messageId:e},(function(){t(new Error("Message removed"))})),this},_.prototype.reconnect=function(e){var t=this,r=function(){e?(t.options.incomingStore=e.incomingStore,t.options.outgoingStore=e.outgoingStore):(t.options.incomingStore=null,t.options.outgoingStore=null),t.incomingStore=t.options.incomingStore||new o,t.outgoingStore=t.options.outgoingStore||new o,t.disconnecting=!1,t.disconnected=!1,t._deferredReconnect=null,t._reconnect()};return this.disconnecting&&!this.disconnected?this._deferredReconnect=r:r(),this},_.prototype._reconnect=function(){this.emit("reconnect"),this._setupStream()},_.prototype._setupReconnect=function(){var e=this;!e.disconnecting&&!e.reconnectTimer&&e.options.reconnectPeriod>0&&(this.reconnecting||(this.emit("offline"),this.reconnecting=!0),e.reconnectTimer=setInterval((function(){e._reconnect()}),e.options.reconnectPeriod))},_.prototype._clearReconnect=function(){this.reconnectTimer&&(clearInterval(this.reconnectTimer),this.reconnectTimer=null)},_.prototype._cleanUp=function(e,t){var r=arguments[2];if(t&&this.stream.on("close",t),e)0===this.options.reconnectPeriod&&this.options.clean&&v(this.outgoing),this.stream.destroy();else{var n=d({cmd:"disconnect"},r);this._sendPacket(n,h.bind(null,this.stream.end.bind(this.stream)))}this.disconnecting||(this._clearReconnect(),this._setupReconnect()),null!==this.pingTimer&&(this.pingTimer.clear(),this.pingTimer=null),t&&!this.connected&&(this.stream.removeListener("close",t),t())},_.prototype._sendPacket=function(e,t,r){if(r=r||m,this.connected){switch(this._shiftPingInterval(),e.cmd){case"publish":break;case"pubrel":return void b(this,e,t,r);default:return void y(this,e,t)}switch(e.qos){case 2:case 1:b(this,e,t,r);break;case 0:default:y(this,e,t);break}}else this._storePacket(e,t,r)},_.prototype._storePacket=function(e,t,r){r=r||m,0===(e.qos||0)&&this.queueQoSZero||"publish"!==e.cmd?this.queue.push({packet:e,cb:t}):e.qos>0?(t=this.outgoing[e.messageId]?this.outgoing[e.messageId].cb:null,this.outgoingStore.put(e,(function(e){if(e)return t&&t(e);r()}))):t&&t(new Error("No connection to broker"))},_.prototype._setupPingTimer=function(){var e=this;!this.pingTimer&&this.options.keepalive&&(this.pingResp=!0,this.pingTimer=f((function(){e._checkPing()}),1e3*this.options.keepalive))},_.prototype._shiftPingInterval=function(){this.pingTimer&&this.options.keepalive&&this.options.reschedulePings&&this.pingTimer.reschedule(1e3*this.options.keepalive)},_.prototype._checkPing=function(){this.pingResp?(this.pingResp=!1,this._sendPacket({cmd:"pingreq"})):this._cleanUp(!0)},_.prototype._handlePingresp=function(){this.pingResp=!0},_.prototype._handleConnack=function(e){var t=this.options,r=t.protocolVersion,n=5===r?e.reasonCode:e.returnCode;if(clearTimeout(this.connackTimer),e.properties&&(e.properties.topicAliasMaximum&&(t.properties||(t.properties={}),t.properties.topicAliasMaximum=e.properties.topicAliasMaximum),e.properties.serverKeepAlive&&t.keepalive&&(t.keepalive=e.properties.serverKeepAlive,this._shiftPingInterval()),e.properties.maximumPacketSize&&(t.properties||(t.properties={}),t.properties.maximumPacketSize=e.properties.maximumPacketSize)),0===n)this.reconnecting=!1,this._onConnect(e);else if(n>0){var i=new Error("Connection refused: "+g[n]);i.code=n,this.emit("error",i)}},_.prototype._handlePublish=function(e,t){t="undefined"!==typeof t?t:m;var r=e.topic.toString(),n=e.payload,i=e.qos,o=e.messageId,a=this,s=this.options,u=[0,16,128,131,135,144,145,151,153];switch(i){case 2:s.customHandleAcks(r,n,e,(function(r,n){return r instanceof Error||(n=r,r=null),r?a.emit("error",r):-1===u.indexOf(n)?a.emit("error",new Error("Wrong reason code for pubrec")):void(n?a._sendPacket({cmd:"pubrec",messageId:o,reasonCode:n},t):a.incomingStore.put(e,(function(){a._sendPacket({cmd:"pubrec",messageId:o},t)})))}));break;case 1:s.customHandleAcks(r,n,e,(function(i,s){return i instanceof Error||(s=i,i=null),i?a.emit("error",i):-1===u.indexOf(s)?a.emit("error",new Error("Wrong reason code for puback")):(s||a.emit("message",r,n,e),void a.handleMessage(e,(function(e){if(e)return t&&t(e);a._sendPacket({cmd:"puback",messageId:o,reasonCode:s},t)})))}));break;case 0:this.emit("message",r,n,e),this.handleMessage(e,t);break;default:break}},_.prototype.handleMessage=function(e,t){t()},_.prototype._handleAck=function(e){var t,r=e.messageId,n=e.cmd,i=null,o=this.outgoing[r]?this.outgoing[r].cb:null,a=this;if(o){switch(n){case"pubcomp":case"puback":var s=e.reasonCode;s&&s>0&&16!==s&&(t=new Error("Publish error: "+g[s]),t.code=s,o(t,e)),delete this.outgoing[r],this.outgoingStore.del(e,o);break;case"pubrec":i={cmd:"pubrel",qos:2,messageId:r};var u=e.reasonCode;u&&u>0&&16!==u?(t=new Error("Publish error: "+g[u]),t.code=u,o(t,e)):this._sendPacket(i);break;case"suback":delete this.outgoing[r];for(var c=0;c<e.granted.length;c++)if(0!==(128&e.granted[c])){var f=this.messageIdToTopic[r];f&&f.forEach((function(e){delete a._resubscribeTopics[e]}))}o(null,e);break;case"unsuback":delete this.outgoing[r],o(null);break;default:a.emit("error",new Error("unrecognized packet type"))}this.disconnecting&&0===Object.keys(this.outgoing).length&&this.emit("outgoingEmpty")}},_.prototype._handlePubrel=function(e,t){t="undefined"!==typeof t?t:m;var r=e.messageId,n=this,i={cmd:"pubcomp",messageId:r};n.incomingStore.get(e,(function(e,r){e?n._sendPacket(i,t):(n.emit("message",r.topic,r.payload,r),n.handleMessage(r,(function(e){if(e)return t(e);n.incomingStore.del(r,m),n._sendPacket(i,t)})))}))},_.prototype._handleDisconnect=function(e){this.emit("disconnect",e)},_.prototype._nextId=function(){var e=this.nextId++;return 65536===this.nextId&&(this.nextId=1),e},_.prototype.getLastMessageId=function(){return 1===this.nextId?65535:this.nextId-1},_.prototype._resubscribe=function(e){var t=Object.keys(this._resubscribeTopics);if(!this._firstConnection&&(this.options.clean||5===this.options.protocolVersion&&!e.sessionPresent)&&t.length>0)if(this.options.resubscribe)if(5===this.options.protocolVersion)for(var r=0;r<t.length;r++){var n={};n[t[r]]=this._resubscribeTopics[t[r]],n.resubscribe=!0,this.subscribe(n,{properties:n[t[r]].properties})}else this._resubscribeTopics.resubscribe=!0,this.subscribe(this._resubscribeTopics);else this._resubscribeTopics={};this._firstConnection=!1},_.prototype._onConnect=function(e){if(this.disconnected)this.emit("connect",e);else{var t=this;this._setupPingTimer(),this._resubscribe(e),this.connected=!0,function r(){var n=t.outgoingStore.createStream();function i(){t._storeProcessing=!1,t._packetIdsDuringStoreProcessing={}}function o(){n.destroy(),n=null,i()}t.once("close",o),n.on("error",(function(e){i(),t.removeListener("close",o),t.emit("error",e)})),n.on("end",(function(){var n=!0;for(var a in t._packetIdsDuringStoreProcessing)if(!t._packetIdsDuringStoreProcessing[a]){n=!1;break}n?(i(),t.removeListener("close",o),t.emit("connect",e)):r()})),function e(){if(n){t._storeProcessing=!0;var r,i=n.read(1);i?t._packetIdsDuringStoreProcessing[i.messageId]?e():t.disconnecting||t.reconnectTimer?n.destroy&&n.destroy():(r=t.outgoing[i.messageId]?t.outgoing[i.messageId].cb:null,t.outgoing[i.messageId]={volatile:!1,cb:function(t,n){r&&r(t,n),e()}},t._packetIdsDuringStoreProcessing[i.messageId]=!0,t._sendPacket(i)):n.once("readable",e)}}()}()}},t.exports=_}).call(this,e("_process"),"undefined"!==typeof n?n:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{"./store":7,"./validations":8,_process:92,events:13,inherits:80,"mqtt-packet":84,"readable-stream":108,reinterval:109,xtend:121}],2:[function(e,t,r){(function(r){"use strict";var n,i,o,a=e("readable-stream").Transform,s=e("duplexify"),u=e("base64-js"),c=!1;t.exports=function(e,t){if(t.hostname=t.hostname||t.host,!t.hostname)throw new Error("Could not determine host. Specify host manually.");var f="MQIsdp"===t.protocolId&&3===t.protocolVersion?"mqttv3.1":"mqtt";(function(e){e.hostname||(e.hostname="localhost"),e.path||(e.path="/"),e.wsOptions||(e.wsOptions={})})(t);var l=function(e,t){var r="alis"===e.protocol?"wss":"ws",n=r+"://"+e.hostname+e.path;return e.port&&80!==e.port&&443!==e.port&&(n=r+"://"+e.hostname+":"+e.port+e.path),"function"===typeof e.transformWsUrl&&(n=e.transformWsUrl(n,e,t)),n}(t,e);return n=t.my,n.connectSocket({url:l,protocols:f}),i=function(){var e=new a;return e._write=function(e,t,r){n.sendSocketMessage({data:e.buffer,success:function(){r()},fail:function(){r(new Error)}})},e._flush=function(e){n.closeSocket({success:function(){e()}})},e}(),o=s.obj(),function(){c||(c=!0,n.onSocketOpen((function(){o.setReadable(i),o.setWritable(i),o.emit("connect")})),n.onSocketMessage((function(e){if("string"===typeof e.data){var t=u.toByteArray(e.data),n=r.from(t);i.push(n)}else{var o=new FileReader;o.addEventListener("load",(function(){var e=o.result;e=e instanceof ArrayBuffer?r.from(e):r.from(e,"utf8"),i.push(e)})),o.readAsArrayBuffer(e.data)}})),n.onSocketClose((function(){o.end(),o.destroy()})),n.onSocketError((function(e){o.destroy(e)})))}(),o}}).call(this,e("buffer").Buffer)},{"base64-js":10,buffer:12,duplexify:17,"readable-stream":108}],3:[function(e,t,r){"use strict";var n=e("net");t.exports=function(e,t){var r,i;return t.port=t.port||1883,t.hostname=t.hostname||t.host||"localhost",r=t.port,i=t.hostname,n.createConnection(r,i)}},{net:11}],4:[function(e,t,r){"use strict";var n=e("tls");t.exports=function(e,t){var r;function i(n){t.rejectUnauthorized&&e.emit("error",n),r.end()}return t.port=t.port||8883,t.host=t.hostname||t.host||"localhost",t.rejectUnauthorized=!1!==t.rejectUnauthorized,delete t.path,r=n.connect(t),r.on("secureConnect",(function(){t.rejectUnauthorized&&!r.authorized?r.emit("error",new Error("TLS not authorized")):r.removeListener("error",i)})),r.on("error",i),r}},{tls:11}],5:[function(e,t,r){(function(r){"use strict";var n=e("websocket-stream"),i=e("url"),o=["rejectUnauthorized","ca","cert","key","pfx","passphrase"],a="browser"===r.title;function s(e,t){var r="MQIsdp"===t.protocolId&&3===t.protocolVersion?"mqttv3.1":"mqtt";(function(e){e.hostname||(e.hostname="localhost"),e.port||("wss"===e.protocol?e.port=443:e.port=80),e.path||(e.path="/"),e.wsOptions||(e.wsOptions={}),a||"wss"!==e.protocol||o.forEach((function(t){e.hasOwnProperty(t)&&!e.wsOptions.hasOwnProperty(t)&&(e.wsOptions[t]=e[t])}))})(t);var i=function(e,t){var r=e.protocol+"://"+e.hostname+":"+e.port+e.path;return"function"===typeof e.transformWsUrl&&(r=e.transformWsUrl(r,e,t)),r}(t,e);return n(i,[r],t.wsOptions)}t.exports=a?function(e,t){if(t.hostname||(t.hostname=t.host),!t.hostname){if("undefined"===typeof document)throw new Error("Could not determine host. Specify host manually.");var r=i.parse(document.URL);t.hostname=r.hostname,t.port||(t.port=r.port)}return s(e,t)}:function(e,t){return s(e,t)}}).call(this,e("_process"))},{_process:92,url:113,"websocket-stream":118}],6:[function(e,t,r){(function(r,n){"use strict";var o,a,s,u=e("readable-stream").Transform,c=e("duplexify");t.exports=function(e,t){if(t.hostname=t.hostname||t.host,!t.hostname)throw new Error("Could not determine host. Specify host manually.");var f="MQIsdp"===t.protocolId&&3===t.protocolVersion?"mqttv3.1":"mqtt";(function(e){e.hostname||(e.hostname="localhost"),e.path||(e.path="/"),e.wsOptions||(e.wsOptions={})})(t);var l=function(e,t){var r="wxs"===e.protocol?"wss":"ws",n=r+"://"+e.hostname+e.path;return e.port&&80!==e.port&&443!==e.port&&(n=r+"://"+e.hostname+":"+e.port+e.path),"function"===typeof e.transformWsUrl&&(n=e.transformWsUrl(n,e,t)),n}(t,e);o=i.connectSocket({url:l,protocols:f}),a=function(){var e=new u;return e._write=function(e,t,r){o.send({data:e.buffer,success:function(){r()},fail:function(e){r(new Error(e))}})},e._flush=function(e){o.close({success:function(){e()}})},e}(),s=c.obj(),s._destroy=function(e,t){o.close({success:function(){t&&t(e)}})};var d=s.destroy;return s.destroy=function(){s.destroy=d;var e=this;r.nextTick((function(){o.close({fail:function(){e._destroy(new Error)}})}))}.bind(s),function(){o.onOpen((function(){s.setReadable(a),s.setWritable(a),s.emit("connect")})),o.onMessage((function(e){var t=e.data;t=t instanceof ArrayBuffer?n.from(t):n.from(t,"utf8"),a.push(t)})),o.onClose((function(){s.end(),s.destroy()})),o.onError((function(e){s.destroy(new Error(e.errMsg))}))}(),s}}).call(this,e("_process"),e("buffer").Buffer)},{_process:92,buffer:12,duplexify:17,"readable-stream":108}],7:[function(e,t,r){(function(r){"use strict";var n=e("xtend"),i=e("readable-stream").Readable,o={objectMode:!0},a={clean:!0},s=e("es6-map");function u(e){if(!(this instanceof u))return new u(e);this.options=e||{},this.options=n(a,e),this._inflights=new s}u.prototype.put=function(e,t){return this._inflights.set(e.messageId,e),t&&t(),this},u.prototype.createStream=function(){var e=new i(o),t=!1,n=[],a=0;return this._inflights.forEach((function(e,t){n.push(e)})),e._read=function(){!t&&a<n.length?this.push(n[a++]):this.push(null)},e.destroy=function(){if(!t){var e=this;t=!0,r.nextTick((function(){e.emit("close")}))}},e},u.prototype.del=function(e,t){return e=this._inflights.get(e.messageId),e?(this._inflights.delete(e.messageId),t(null,e)):t&&t(new Error("missing packet")),this},u.prototype.get=function(e,t){return e=this._inflights.get(e.messageId),e?t(null,e):t&&t(new Error("missing packet")),this},u.prototype.close=function(e){this.options.clean&&(this._inflights=null),e&&e()},t.exports=u}).call(this,e("_process"))},{_process:92,"es6-map":67,"readable-stream":108,xtend:121}],8:[function(e,t,r){"use strict";function n(e){for(var t=e.split("/"),r=0;r<t.length;r++)if("+"!==t[r]){if("#"===t[r])return r===t.length-1;if(-1!==t[r].indexOf("+")||-1!==t[r].indexOf("#"))return!1}return!0}t.exports={validateTopics:function(e){if(0===e.length)return"empty_topic_list";for(var t=0;t<e.length;t++)if(!n(e[t]))return e[t];return null}}},{}],9:[function(e,t,r){(function(r){"use strict";var n=e("../client"),i=e("../store"),o=e("url"),a=e("xtend"),s={};function c(e,t){if("object"!==u(e)||t||(t=e,e=null),t=t||{},e){var r=o.parse(e,!0);if(null!=r.port&&(r.port=Number(r.port)),t=a(r,t),null===t.protocol)throw new Error("Missing protocol");t.protocol=t.protocol.replace(/:$/,"")}if(function(e){var t;e.auth&&(t=e.auth.match(/^(.+):(.+)$/),t?(e.username=t[1],e.password=t[2]):e.username=e.auth)}(t),t.query&&"string"===typeof t.query.clientId&&(t.clientId=t.query.clientId),t.cert&&t.key){if(!t.protocol)throw new Error("Missing secure protocol key");if(-1===["mqtts","wss","wxs","alis"].indexOf(t.protocol))switch(t.protocol){case"mqtt":t.protocol="mqtts";break;case"ws":t.protocol="wss";break;case"wx":t.protocol="wxs";break;case"ali":t.protocol="alis";break;default:throw new Error('Unknown protocol for secure connection: "'+t.protocol+'"!')}}if(!s[t.protocol]){var i=-1!==["mqtts","wss"].indexOf(t.protocol);t.protocol=["mqtt","mqtts","ws","wss","wx","wxs","ali","alis"].filter((function(e,t){return(!i||t%2!==0)&&"function"===typeof s[e]}))[0]}if(!1===t.clean&&!t.clientId)throw new Error("Missing clientId for unclean clients");return t.protocol&&(t.defaultProtocol=t.protocol),new n((function(e){return t.servers&&(e._reconnectCount&&e._reconnectCount!==t.servers.length||(e._reconnectCount=0),t.host=t.servers[e._reconnectCount].host,t.port=t.servers[e._reconnectCount].port,t.protocol=t.servers[e._reconnectCount].protocol?t.servers[e._reconnectCount].protocol:t.defaultProtocol,t.hostname=t.host,e._reconnectCount++),s[t.protocol](e,t)}),t)}"browser"!==r.title?(s.mqtt=e("./tcp"),s.tcp=e("./tcp"),s.ssl=e("./tls"),s.tls=e("./tls"),s.mqtts=e("./tls")):(s.wx=e("./wx"),s.wxs=e("./wx"),s.ali=e("./ali"),s.alis=e("./ali")),s.ws=e("./ws"),s.wss=e("./ws"),t.exports=c,t.exports.connect=c,t.exports.MqttClient=n,t.exports.Store=i}).call(this,e("_process"))},{"../client":1,"../store":7,"./ali":2,"./tcp":3,"./tls":4,"./ws":5,"./wx":6,_process:92,url:113,xtend:121}],10:[function(e,t,r){"use strict";r.byteLength=function(e){var t=c(e),r=t[0],n=t[1];return 3*(r+n)/4-n},r.toByteArray=function(e){for(var t,r=c(e),n=r[0],a=r[1],s=new o(function(e,t,r){return 3*(t+r)/4-r}(0,n,a)),u=0,f=a>0?n-4:n,l=0;l<f;l+=4)t=i[e.charCodeAt(l)]<<18|i[e.charCodeAt(l+1)]<<12|i[e.charCodeAt(l+2)]<<6|i[e.charCodeAt(l+3)],s[u++]=t>>16&255,s[u++]=t>>8&255,s[u++]=255&t;2===a&&(t=i[e.charCodeAt(l)]<<2|i[e.charCodeAt(l+1)]>>4,s[u++]=255&t);1===a&&(t=i[e.charCodeAt(l)]<<10|i[e.charCodeAt(l+1)]<<4|i[e.charCodeAt(l+2)]>>2,s[u++]=t>>8&255,s[u++]=255&t);return s},r.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],a=0,s=r-i;a<s;a+=16383)o.push(l(e,a,a+16383>s?s:a+16383));1===i?(t=e[r-1],o.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return o.join("")};for(var n=[],i=[],o="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=a.length;s<u;++s)n[s]=a[s],i[a.charCodeAt(s)]=s;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function f(e){return n[e>>18&63]+n[e>>12&63]+n[e>>6&63]+n[63&e]}function l(e,t,r){for(var n,i=[],o=t;o<r;o+=3)n=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),i.push(f(n));return i.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},{}],11:[function(e,t,r){},{}],12:[function(e,t,r){"use strict";var n=e("base64-js"),i=e("ieee754");r.Buffer=a,r.SlowBuffer=function(e){+e!=e&&(e=0);return a.alloc(+e)},r.INSPECT_MAX_BYTES=50;function o(e){if(e>2147483647)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return t.__proto__=a.prototype,t}function a(e,t,r){if("number"===typeof e){if("string"===typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return f(e)}return s(e,t,r)}function s(e,t,r){if("string"===typeof e)return function(e,t){"string"===typeof t&&""!==t||(t="utf8");if(!a.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=0|h(e,t),n=o(r),i=n.write(e,t);i!==r&&(n=n.slice(0,i));return n}(e,t);if(ArrayBuffer.isView(e))return l(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+u(e));if(U(e,ArrayBuffer)||e&&U(e.buffer,ArrayBuffer))return function(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r);return n.__proto__=a.prototype,n}(e,t,r);if("number"===typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return a.from(n,t,r);var i=function(e){if(a.isBuffer(e)){var t=0|d(e.length),r=o(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return"number"!==typeof e.length||z(e.length)?o(0):l(e);if("Buffer"===e.type&&Array.isArray(e.data))return l(e.data)}(e);if(i)return i;if("undefined"!==typeof Symbol&&null!=Symbol.toPrimitive&&"function"===typeof e[Symbol.toPrimitive])return a.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+u(e))}function c(e){if("number"!==typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function f(e){return c(e),o(e<0?0:0|d(e))}function l(e){for(var t=e.length<0?0:0|d(e.length),r=o(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}function d(e){if(e>=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+2147483647..toString(16)+" bytes");return 0|e}function h(e,t){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||U(e,ArrayBuffer))return e.byteLength;if("string"!==typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+u(e));var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return L(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return j(e).length;default:if(i)return n?-1:L(e).length;t=(""+t).toLowerCase(),i=!0}}function p(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,t>>>=0,r<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return I(this,t,r);case"utf8":case"utf-8":return E(this,t,r);case"ascii":return C(this,t,r);case"latin1":case"binary":return O(this,t,r);case"base64":return x(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function g(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function y(e,t,r,n,i){if(0===e.length)return-1;if("string"===typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,z(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"===typeof t&&(t=a.from(t,n)),a.isBuffer(t))return 0===t.length?-1:v(e,t,r,n,i);if("number"===typeof t)return t&=255,"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):v(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function v(e,t,r,n,i){var o,a=1,s=e.length,u=t.length;if(void 0!==n&&(n=String(n).toLowerCase(),"ucs2"===n||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,r/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var f=-1;for(o=r;o<s;o++)if(c(e,o)===c(t,-1===f?0:o-f)){if(-1===f&&(f=o),o-f+1===u)return f*a}else-1!==f&&(o-=o-f),f=-1}else for(r+u>s&&(r=s-u),o=r;o>=0;o--){for(var l=!0,d=0;d<u;d++)if(c(e,o+d)!==c(t,d)){l=!1;break}if(l)return o}return-1}function b(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var o=t.length;n>o/2&&(n=o/2);for(var a=0;a<n;++a){var s=parseInt(t.substr(2*a,2),16);if(z(s))return a;e[r+a]=s}return a}function m(e,t,r,n){return F(L(t,e.length-r),e,r,n)}function _(e,t,r,n){return F(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function w(e,t,r,n){return _(e,t,r,n)}function A(e,t,r,n){return F(j(t),e,r,n)}function S(e,t,r,n){return F(function(e,t){for(var r,n,i,o=[],a=0;a<e.length;++a){if((t-=2)<0)break;r=e.charCodeAt(a),n=r>>8,i=r%256,o.push(i),o.push(n)}return o}(t,e.length-r),e,r,n)}function x(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function E(e,t,r){r=Math.min(e.length,r);var n=[],i=t;while(i<r){var o,a,s,u,c=e[i],f=null,l=c>239?4:c>223?3:c>191?2:1;if(i+l<=r)switch(l){case 1:c<128&&(f=c);break;case 2:o=e[i+1],128===(192&o)&&(u=(31&c)<<6|63&o,u>127&&(f=u));break;case 3:o=e[i+1],a=e[i+2],128===(192&o)&&128===(192&a)&&(u=(15&c)<<12|(63&o)<<6|63&a,u>2047&&(u<55296||u>57343)&&(f=u));break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128===(192&o)&&128===(192&a)&&128===(192&s)&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s,u>65535&&u<1114112&&(f=u))}null===f?(f=65533,l=1):f>65535&&(f-=65536,n.push(f>>>10&1023|55296),f=56320|1023&f),n.push(f),i+=l}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var r="",n=0;while(n<t)r+=String.fromCharCode.apply(String,e.slice(n,n+=4096));return r}(n)}r.kMaxLength=2147483647,a.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(t){return!1}}(),a.TYPED_ARRAY_SUPPORT||"undefined"===typeof console||"function"!==typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),"undefined"!==typeof Symbol&&null!=Symbol.species&&a[Symbol.species]===a&&Object.defineProperty(a,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),a.poolSize=8192,a.from=function(e,t,r){return s(e,t,r)},a.prototype.__proto__=Uint8Array.prototype,a.__proto__=Uint8Array,a.alloc=function(e,t,r){return function(e,t,r){return c(e),e<=0?o(e):void 0!==t?"string"===typeof r?o(e).fill(t,r):o(e).fill(t):o(e)}(e,t,r)},a.allocUnsafe=function(e){return f(e)},a.allocUnsafeSlow=function(e){return f(e)},a.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==a.prototype},a.compare=function(e,t){if(U(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),U(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(e)||!a.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},a.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return a.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=a.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var o=e[r];if(U(o,Uint8Array)&&(o=a.from(o)),!a.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(n,i),i+=o.length}return n},a.byteLength=h,a.prototype._isBuffer=!0,a.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},a.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},a.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},a.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?E(this,0,e):p.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(e){if(!a.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===a.compare(this,e)},a.prototype.inspect=function(){var e="",t=r.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},a.prototype.compare=function(e,t,r,n,i){if(U(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+u(e));if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var o=i-n,s=r-t,c=Math.min(o,s),f=this.slice(n,i),l=e.slice(t,r),d=0;d<c;++d)if(f[d]!==l[d]){o=f[d],s=l[d];break}return o<s?-1:s<o?1:0},a.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},a.prototype.indexOf=function(e,t,r){return y(this,e,t,r,!0)},a.prototype.lastIndexOf=function(e,t,r){return y(this,e,t,r,!1)},a.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"===typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return b(this,e,t,r);case"utf8":case"utf-8":return m(this,e,t,r);case"ascii":return _(this,e,t,r);case"latin1":case"binary":return w(this,e,t,r);case"base64":return A(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function C(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function O(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function I(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=t;o<r;++o)i+=B(e[o]);return i}function T(e,t,r){for(var n=e.slice(t,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function P(e,t,r){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function M(e,t,r,n,i,o){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function k(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function R(e,t,r,n,o){return t=+t,r>>>=0,o||k(e,0,r,4),i.write(e,t,r,n,23,4),r+4}function D(e,t,r,n,o){return t=+t,r>>>=0,o||k(e,0,r,8),i.write(e,t,r,n,52,8),r+8}a.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),t<e&&(t=e);var n=this.subarray(e,t);return n.__proto__=a.prototype,n},a.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||P(e,t,this.length);var n=this[e],i=1,o=0;while(++o<t&&(i*=256))n+=this[e+o]*i;return n},a.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||P(e,t,this.length);var n=this[e+--t],i=1;while(t>0&&(i*=256))n+=this[e+--t]*i;return n},a.prototype.readUInt8=function(e,t){return e>>>=0,t||P(e,1,this.length),this[e]},a.prototype.readUInt16LE=function(e,t){return e>>>=0,t||P(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUInt16BE=function(e,t){return e>>>=0,t||P(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUInt32LE=function(e,t){return e>>>=0,t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},a.prototype.readUInt32BE=function(e,t){return e>>>=0,t||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||P(e,t,this.length);var n=this[e],i=1,o=0;while(++o<t&&(i*=256))n+=this[e+o]*i;return i*=128,n>=i&&(n-=Math.pow(2,8*t)),n},a.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||P(e,t,this.length);var n=t,i=1,o=this[e+--n];while(n>0&&(i*=256))o+=this[e+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},a.prototype.readInt8=function(e,t){return e>>>=0,t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},a.prototype.readInt16LE=function(e,t){e>>>=0,t||P(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},a.prototype.readInt16BE=function(e,t){e>>>=0,t||P(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},a.prototype.readInt32LE=function(e,t){return e>>>=0,t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return e>>>=0,t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readFloatLE=function(e,t){return e>>>=0,t||P(e,4,this.length),i.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return e>>>=0,t||P(e,4,this.length),i.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return e>>>=0,t||P(e,8,this.length),i.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return e>>>=0,t||P(e,8,this.length),i.read(this,e,!1,52,8)},a.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;M(this,e,t,r,i,0)}var o=1,a=0;this[t]=255&e;while(++a<r&&(o*=256))this[t+a]=e/o&255;return t+r},a.prototype.writeUIntBE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;M(this,e,t,r,i,0)}var o=r-1,a=1;this[t+o]=255&e;while(--o>=0&&(a*=256))this[t+o]=e/a&255;return t+r},a.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,1,255,0),this[t]=255&e,t+1},a.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},a.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);M(this,e,t,r,i-1,-i)}var o=0,a=1,s=0;this[t]=255&e;while(++o<r&&(a*=256))e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},a.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);M(this,e,t,r,i-1,-i)}var o=r-1,a=1,s=0;this[t+o]=255&e;while(--o>=0&&(a*=256))e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},a.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},a.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeFloatLE=function(e,t,r){return R(this,e,t,!0,r)},a.prototype.writeFloatBE=function(e,t,r){return R(this,e,t,!1,r)},a.prototype.writeDoubleLE=function(e,t,r){return D(this,e,t,!0,r)},a.prototype.writeDoubleBE=function(e,t,r){return D(this,e,t,!1,r)},a.prototype.copy=function(e,t,r,n){if(!a.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i=n-r;if(this===e&&"function"===typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,n);else if(this===e&&r<t&&t<n)for(var o=i-1;o>=0;--o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,n),t);return i},a.prototype.fill=function(e,t,r,n){if("string"===typeof e){if("string"===typeof t?(n=t,t=0,r=this.length):"string"===typeof r&&(n=r,r=this.length),void 0!==n&&"string"!==typeof n)throw new TypeError("encoding must be a string");if("string"===typeof n&&!a.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===e.length){var i=e.charCodeAt(0);("utf8"===n&&i<128||"latin1"===n)&&(e=i)}}else"number"===typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var o;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"===typeof e)for(o=t;o<r;++o)this[o]=e;else{var s=a.isBuffer(e)?e:a.from(e,n),u=s.length;if(0===u)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<r-t;++o)this[o+t]=s[o%u]}return this};var N=/[^+/0-9A-Za-z-_]/g;function B(e){return e<16?"0"+e.toString(16):e.toString(16)}function L(e,t){var r;t=t||1/0;for(var n=e.length,i=null,o=[],a=0;a<n;++a){if(r=e.charCodeAt(a),r>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function j(e){return n.toByteArray(function(e){if(e=e.split("=")[0],e=e.trim().replace(N,""),e.length<2)return"";while(e.length%4!==0)e+="=";return e}(e))}function F(e,t,r,n){for(var i=0;i<n;++i){if(i+r>=t.length||i>=e.length)break;t[i+r]=e[i]}return i}function U(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function z(e){return e!==e}},{"base64-js":10,ieee754:79}],13:[function(e,t,r){var n=Object.create||function(e){var t=function(){};return t.prototype=e,new t},i=Object.keys||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return r},o=Function.prototype.bind||function(e){var t=this;return function(){return t.apply(e,arguments)}};function a(){this._events&&Object.prototype.hasOwnProperty.call(this,"_events")||(this._events=n(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0}t.exports=a,a.EventEmitter=a,a.prototype._events=void 0,a.prototype._maxListeners=void 0;var s,c=10;try{var f={};Object.defineProperty&&Object.defineProperty(f,"x",{value:0}),s=0===f.x}catch(S){s=!1}function l(e){return void 0===e._maxListeners?a.defaultMaxListeners:e._maxListeners}function d(e,t,r){if(t)e.call(r);else for(var n=e.length,i=A(e,n),o=0;o<n;++o)i[o].call(r)}function h(e,t,r,n){if(t)e.call(r,n);else for(var i=e.length,o=A(e,i),a=0;a<i;++a)o[a].call(r,n)}function p(e,t,r,n,i){if(t)e.call(r,n,i);else for(var o=e.length,a=A(e,o),s=0;s<o;++s)a[s].call(r,n,i)}function g(e,t,r,n,i,o){if(t)e.call(r,n,i,o);else for(var a=e.length,s=A(e,a),u=0;u<a;++u)s[u].call(r,n,i,o)}function y(e,t,r,n){if(t)e.apply(r,n);else for(var i=e.length,o=A(e,i),a=0;a<i;++a)o[a].apply(r,n)}function v(e,t,r,i){var o,a,s;if("function"!==typeof r)throw new TypeError('"listener" argument must be a function');if(a=e._events,a?(a.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),a=e._events),s=a[t]):(a=e._events=n(null),e._eventsCount=0),s){if("function"===typeof s?s=a[t]=i?[r,s]:[s,r]:i?s.unshift(r):s.push(r),!s.warned&&(o=l(e),o&&o>0&&s.length>o)){s.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+s.length+' "'+String(t)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=s.length,"object"===("undefined"===typeof console?"undefined":u(console))&&console.warn&&console.warn("%s: %s",c.name,c.message)}}else s=a[t]=r,++e._eventsCount;return e}function b(){if(!this.fired)switch(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:for(var e=new Array(arguments.length),t=0;t<e.length;++t)e[t]=arguments[t];this.listener.apply(this.target,e)}}function m(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=o.call(b,n);return i.listener=r,n.wrapFn=i,i}function _(e,t,r){var n=e._events;if(!n)return[];var i=n[t];return i?"function"===typeof i?r?[i.listener||i]:[i]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(i):A(i,i.length):[]}function w(e){var t=this._events;if(t){var r=t[e];if("function"===typeof r)return 1;if(r)return r.length}return 0}function A(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}s?Object.defineProperty(a,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(e){if("number"!==typeof e||e<0||e!==e)throw new TypeError('"defaultMaxListeners" must be a positive number');c=e}}):a.defaultMaxListeners=c,a.prototype.setMaxListeners=function(e){if("number"!==typeof e||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},a.prototype.getMaxListeners=function(){return l(this)},a.prototype.emit=function(e){var t,r,n,i,o,a,s="error"===e;if(a=this._events,a)s=s&&null==a.error;else if(!s)return!1;if(s){if(arguments.length>1&&(t=arguments[1]),t instanceof Error)throw t;var u=new Error('Unhandled "error" event. ('+t+")");throw u.context=t,u}if(r=a[e],!r)return!1;var c="function"===typeof r;switch(n=arguments.length,n){case 1:d(r,c,this);break;case 2:h(r,c,this,arguments[1]);break;case 3:p(r,c,this,arguments[1],arguments[2]);break;case 4:g(r,c,this,arguments[1],arguments[2],arguments[3]);break;default:for(i=new Array(n-1),o=1;o<n;o++)i[o-1]=arguments[o];y(r,c,this,i)}return!0},a.prototype.addListener=function(e,t){return v(this,e,t,!1)},a.prototype.on=a.prototype.addListener,a.prototype.prependListener=function(e,t){return v(this,e,t,!0)},a.prototype.once=function(e,t){if("function"!==typeof t)throw new TypeError('"listener" argument must be a function');return this.on(e,m(this,e,t)),this},a.prototype.prependOnceListener=function(e,t){if("function"!==typeof t)throw new TypeError('"listener" argument must be a function');return this.prependListener(e,m(this,e,t)),this},a.prototype.removeListener=function(e,t){var r,i,o,a,s;if("function"!==typeof t)throw new TypeError('"listener" argument must be a function');if(i=this._events,!i)return this;if(r=i[e],!r)return this;if(r===t||r.listener===t)0===--this._eventsCount?this._events=n(null):(delete i[e],i.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!==typeof r){for(o=-1,a=r.length-1;a>=0;a--)if(r[a]===t||r[a].listener===t){s=r[a].listener,o=a;break}if(o<0)return this;0===o?r.shift():function(e,t){for(var r=t,n=r+1,i=e.length;n<i;r+=1,n+=1)e[r]=e[n];e.pop()}(r,o),1===r.length&&(i[e]=r[0]),i.removeListener&&this.emit("removeListener",e,s||t)}return this},a.prototype.removeAllListeners=function(e){var t,r,o;if(r=this._events,!r)return this;if(!r.removeListener)return 0===arguments.length?(this._events=n(null),this._eventsCount=0):r[e]&&(0===--this._eventsCount?this._events=n(null):delete r[e]),this;if(0===arguments.length){var a,s=i(r);for(o=0;o<s.length;++o)a=s[o],"removeListener"!==a&&this.removeAllListeners(a);return this.removeAllListeners("removeListener"),this._events=n(null),this._eventsCount=0,this}if(t=r[e],"function"===typeof t)this.removeListener(e,t);else if(t)for(o=t.length-1;o>=0;o--)this.removeListener(e,t[o]);return this},a.prototype.listeners=function(e){return _(this,e,!0)},a.prototype.rawListeners=function(e){return _(this,e,!1)},a.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):w.call(e,t)},a.prototype.listenerCount=w,a.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]}},{}],14:[function(e,t,r){(function(e){function t(e){return Object.prototype.toString.call(e)}r.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===t(e)},r.isBoolean=function(e){return"boolean"===typeof e},r.isNull=function(e){return null===e},r.isNullOrUndefined=function(e){return null==e},r.isNumber=function(e){return"number"===typeof e},r.isString=function(e){return"string"===typeof e},r.isSymbol=function(e){return"symbol"===u(e)},r.isUndefined=function(e){return void 0===e},r.isRegExp=function(e){return"[object RegExp]"===t(e)},r.isObject=function(e){return"object"===u(e)&&null!==e},r.isDate=function(e){return"[object Date]"===t(e)},r.isError=function(e){return"[object Error]"===t(e)||e instanceof Error},r.isFunction=function(e){return"function"===typeof e},r.isPrimitive=function(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===u(e)||"undefined"===typeof e},r.isBuffer=e.isBuffer}).call(this,{isBuffer:e("../../is-buffer/index.js")})},{"../../is-buffer/index.js":81}],15:[function(e,t,r){"use strict";var n,i=e("es5-ext/object/copy"),o=e("es5-ext/object/normalize-options"),a=e("es5-ext/object/valid-callable"),s=e("es5-ext/object/map"),u=e("es5-ext/object/valid-callable"),c=e("es5-ext/object/valid-value"),f=Function.prototype.bind,l=Object.defineProperty,d=Object.prototype.hasOwnProperty;n=function(e,t,r){var n,o=c(t)&&u(t.value);return n=i(t),delete n.writable,delete n.value,n.get=function(){return!r.overwriteDefinition&&d.call(this,e)?o:(t.value=f.call(o,r.resolveContext?r.resolveContext(this):this),l(this,e,t),this[e])},n},t.exports=function(e){var t=o(arguments[1]);return null!=t.resolveContext&&a(t.resolveContext),s(e,(function(e,r){return n(r,e,t)}))}},{"es5-ext/object/copy":39,"es5-ext/object/map":48,"es5-ext/object/normalize-options":49,"es5-ext/object/valid-callable":54,"es5-ext/object/valid-value":55}],16:[function(e,t,r){"use strict";var n,i=e("es5-ext/object/assign"),o=e("es5-ext/object/normalize-options"),a=e("es5-ext/object/is-callable"),s=e("es5-ext/string/#/contains");n=t.exports=function(e,t){var r,n,a,u,c;return arguments.length<2||"string"!==typeof e?(u=t,t=e,e=null):u=arguments[2],null==e?(r=a=!0,n=!1):(r=s.call(e,"c"),n=s.call(e,"e"),a=s.call(e,"w")),c={value:t,configurable:r,enumerable:n,writable:a},u?i(o(u),c):c},n.gs=function(e,t,r){var n,u,c,f;return"string"!==typeof e?(c=r,r=t,t=e,e=null):c=arguments[3],null==t?t=void 0:a(t)?null==r?r=void 0:a(r)||(c=r,r=void 0):(c=t,t=r=void 0),null==e?(n=!0,u=!1):(n=s.call(e,"c"),u=s.call(e,"e")),f={get:t,set:r,configurable:n,enumerable:u},c?i(o(c),f):f}},{"es5-ext/object/assign":36,"es5-ext/object/is-callable":42,"es5-ext/object/normalize-options":49,"es5-ext/string/#/contains":56}],17:[function(e,t,r){(function(r,n){var i=e("readable-stream"),o=e("end-of-stream"),a=e("inherits"),s=e("stream-shift"),u=n.from&&n.from!==Uint8Array.from?n.from([0]):new n([0]),c=function(e,t){e._corked?e.once("uncork",t):t()},f=function(e,t){return function(r){r?function(e,t){e._autoDestroy&&e.destroy(t)}(e,"premature close"===r.message?null:r):t&&!e._ended&&e.end()}},l=function e(t,r,n){if(!(this instanceof e))return new e(t,r,n);i.Duplex.call(this,n),this._writable=null,this._readable=null,this._readable2=null,this._autoDestroy=!n||!1!==n.autoDestroy,this._forwardDestroy=!n||!1!==n.destroy,this._forwardEnd=!n||!1!==n.end,this._corked=1,this._ondrain=null,this._drained=!1,this._forwarding=!1,this._unwrite=null,this._unread=null,this._ended=!1,this.destroyed=!1,t&&this.setWritable(t),r&&this.setReadable(r)};a(l,i.Duplex),l.obj=function(e,t,r){return r||(r={}),r.objectMode=!0,r.highWaterMark=16,new l(e,t,r)},l.prototype.cork=function(){1===++this._corked&&this.emit("cork")},l.prototype.uncork=function(){this._corked&&0===--this._corked&&this.emit("uncork")},l.prototype.setWritable=function(e){if(this._unwrite&&this._unwrite(),this.destroyed)e&&e.destroy&&e.destroy();else if(null!==e&&!1!==e){var t=this,n=o(e,{writable:!0,readable:!1},f(this,this._forwardEnd)),i=function(){var e=t._ondrain;t._ondrain=null,e&&e()};this._unwrite&&r.nextTick(i),this._writable=e,this._writable.on("drain",i),this._unwrite=function(){t._writable.removeListener("drain",i),n()},this.uncork()}else this.end()},l.prototype.setReadable=function(e){if(this._unread&&this._unread(),this.destroyed)e&&e.destroy&&e.destroy();else{if(null===e||!1===e)return this.push(null),void this.resume();var t=this,r=o(e,{writable:!1,readable:!0},f(this)),n=function(){t._forward()},a=function(){t.push(null)};this._drained=!0,this._readable=e,this._readable2=e._readableState?e:function(e){return new i.Readable({objectMode:!0,highWaterMark:16}).wrap(e)}(e),this._readable2.on("readable",n),this._readable2.on("end",a),this._unread=function(){t._readable2.removeListener("readable",n),t._readable2.removeListener("end",a),r()},this._forward()}},l.prototype._read=function(){this._drained=!0,this._forward()},l.prototype._forward=function(){if(!this._forwarding&&this._readable2&&this._drained){var e;this._forwarding=!0;while(this._drained&&null!==(e=s(this._readable2)))this.destroyed||(this._drained=this.push(e));this._forwarding=!1}},l.prototype.destroy=function(e){if(!this.destroyed){this.destroyed=!0;var t=this;r.nextTick((function(){t._destroy(e)}))}},l.prototype._destroy=function(e){if(e){var t=this._ondrain;this._ondrain=null,t?t(e):this.emit("error",e)}this._forwardDestroy&&(this._readable&&this._readable.destroy&&this._readable.destroy(),this._writable&&this._writable.destroy&&this._writable.destroy()),this.emit("close")},l.prototype._write=function(e,t,r){return this.destroyed?r():this._corked?c(this,this._write.bind(this,e,t,r)):e===u?this._finish(r):this._writable?void(!1===this._writable.write(e)?this._ondrain=r:r()):r()},l.prototype._finish=function(e){var t=this;this.emit("preend"),c(this,(function(){(function(e,t){e?e._writableState&&e._writableState.finished?t():e._writableState?e.end(t):(e.end(),t()):t()})(t._forwardEnd&&t._writable,(function(){!1===t._writableState.prefinished&&(t._writableState.prefinished=!0),t.emit("prefinish"),c(t,e)}))}))},l.prototype.end=function(e,t,r){return"function"===typeof e?this.end(null,null,e):"function"===typeof t?this.end(e,null,t):(this._ended=!0,e&&this.write(e),this._writableState.ending||this.write(u),i.Writable.prototype.end.call(this,r))},t.exports=l}).call(this,e("_process"),e("buffer").Buffer)},{_process:92,buffer:12,"end-of-stream":18,inherits:80,"readable-stream":108,"stream-shift":111}],18:[function(e,t,r){var n=e("once"),i=function(){};t.exports=function e(t,r,o){if("function"===typeof r)return e(t,null,r);r||(r={}),o=n(o||i);var a=t._writableState,s=t._readableState,u=r.readable||!1!==r.readable&&t.readable,c=r.writable||!1!==r.writable&&t.writable,f=function(){t.writable||l()},l=function(){c=!1,u||o.call(t)},d=function(){u=!1,c||o.call(t)},h=function(e){o.call(t,e?new Error("exited with error code: "+e):null)},p=function(e){o.call(t,e)},g=function(){return(!u||s&&s.ended)&&(!c||a&&a.ended)?void 0:o.call(t,new Error("premature close"))},y=function(){t.req.on("finish",l)};return!function(e){return e.setHeader&&"function"===typeof e.abort}(t)?c&&!a&&(t.on("end",f),t.on("close",f)):(t.on("complete",l),t.on("abort",g),t.req?y():t.on("request",y)),function(e){return e.stdio&&Array.isArray(e.stdio)&&3===e.stdio.length}(t)&&t.on("exit",h),t.on("end",d),t.on("finish",l),!1!==r.error&&t.on("error",p),t.on("close",g),function(){t.removeListener("complete",l),t.removeListener("abort",g),t.removeListener("request",y),t.req&&t.req.removeListener("finish",l),t.removeListener("end",f),t.removeListener("close",f),t.removeListener("finish",l),t.removeListener("exit",h),t.removeListener("end",d),t.removeListener("error",p),t.removeListener("close",g)}}},{once:90}],19:[function(e,t,r){"use strict";var n=e("../../object/valid-value");t.exports=function(){return n(this).length=0,this}},{"../../object/valid-value":55}],20:[function(e,t,r){"use strict";var n=e("../../number/is-nan"),i=e("../../number/to-pos-integer"),o=e("../../object/valid-value"),a=Array.prototype.indexOf,s=Object.prototype.hasOwnProperty,u=Math.abs,c=Math.floor;t.exports=function(e){var t,r,f,l;if(!n(e))return a.apply(this,arguments);for(r=i(o(this).length),f=arguments[1],f=isNaN(f)?0:f>=0?c(f):i(this.length)-c(u(f)),t=f;t<r;++t)if(s.call(this,t)&&(l=this[t],n(l)))return t;return-1}},{"../../number/is-nan":30,"../../number/to-pos-integer":34,"../../object/valid-value":55}],21:[function(e,t,r){"use strict";t.exports=e("./is-implemented")()?Array.from:e("./shim")},{"./is-implemented":22,"./shim":23}],22:[function(e,t,r){"use strict";t.exports=function(){var e,t,r=Array.from;return"function"===typeof r&&(e=["raz","dwa"],t=r(e),Boolean(t&&t!==e&&"dwa"===t[1]))}},{}],23:[function(e,t,r){"use strict";var n=e("es6-symbol").iterator,i=e("../../function/is-arguments"),o=e("../../function/is-function"),a=e("../../number/to-pos-integer"),s=e("../../object/valid-callable"),u=e("../../object/valid-value"),c=e("../../object/is-value"),f=e("../../string/is-string"),l=Array.isArray,d=Function.prototype.call,h={configurable:!0,enumerable:!0,writable:!0,value:null},p=Object.defineProperty;t.exports=function(e){var t,r,g,y,v,b,m,_,w,A,S=arguments[1],x=arguments[2];if(e=Object(u(e)),c(S)&&s(S),this&&this!==Array&&o(this))t=this;else{if(!S){if(i(e))return v=e.length,1!==v?Array.apply(null,e):(y=new Array(1),y[0]=e[0],y);if(l(e)){for(y=new Array(v=e.length),r=0;r<v;++r)y[r]=e[r];return y}}y=[]}if(!l(e))if(void 0!==(w=e[n])){m=s(w).call(e),t&&(y=new t),_=m.next(),r=0;while(!_.done)A=S?d.call(S,x,_.value,r):_.value,t?(h.value=A,p(y,r,h)):y[r]=A,_=m.next(),++r;v=r}else if(f(e)){for(v=e.length,t&&(y=new t),r=0,g=0;r<v;++r)A=e[r],r+1<v&&(b=A.charCodeAt(0),b>=55296&&b<=56319&&(A+=e[++r])),A=S?d.call(S,x,A,g):A,t?(h.value=A,p(y,g,h)):y[g]=A,++g;v=g}if(void 0===v)for(v=a(e.length),t&&(y=new t(v)),r=0;r<v;++r)A=S?d.call(S,x,e[r],r):e[r],t?(h.value=A,p(y,r,h)):y[r]=A;return t&&(h.value=null,y.length=v),y}},{"../../function/is-arguments":24,"../../function/is-function":25,"../../number/to-pos-integer":34,"../../object/is-value":44,"../../object/valid-callable":54,"../../object/valid-value":55,"../../string/is-string":59,"es6-symbol":73}],24:[function(e,t,r){"use strict";var n=Object.prototype.toString,i=n.call(function(){return arguments}());t.exports=function(e){return n.call(e)===i}},{}],25:[function(e,t,r){"use strict";var n=Object.prototype.toString,i=n.call(e("./noop"));t.exports=function(e){return"function"===typeof e&&n.call(e)===i}},{"./noop":26}],26:[function(e,t,r){"use strict";t.exports=function(){}},{}],27:[function(e,t,r){"use strict";t.exports=e("./is-implemented")()?Math.sign:e("./shim")},{"./is-implemented":28,"./shim":29}],28:[function(e,t,r){"use strict";t.exports=function(){var e=Math.sign;return"function"===typeof e&&(1===e(10)&&-1===e(-20))}},{}],29:[function(e,t,r){"use strict";t.exports=function(e){return e=Number(e),isNaN(e)||0===e?e:e>0?1:-1}},{}],30:[function(e,t,r){"use strict";t.exports=e("./is-implemented")()?Number.isNaN:e("./shim")},{"./is-implemented":31,"./shim":32}],31:[function(e,t,r){"use strict";t.exports=function(){var e=Number.isNaN;return"function"===typeof e&&(!e({})&&e(NaN)&&!e(34))}},{}],32:[function(e,t,r){"use strict";t.exports=function(e){return e!==e}},{}],33:[function(e,t,r){"use strict";var n=e("../math/sign"),i=Math.abs,o=Math.floor;t.exports=function(e){return isNaN(e)?0:(e=Number(e),0!==e&&isFinite(e)?n(e)*o(i(e)):e)}},{"../math/sign":27}],34:[function(e,t,r){"use strict";var n=e("./to-integer"),i=Math.max;t.exports=function(e){return i(0,n(e))}},{"./to-integer":33}],35:[function(e,t,r){"use strict";var n=e("./valid-callable"),i=e("./valid-value"),o=Function.prototype.bind,a=Function.prototype.call,s=Object.keys,u=Object.prototype.propertyIsEnumerable;t.exports=function(e,t){return function(r,c){var f,l=arguments[2],d=arguments[3];return r=Object(i(r)),n(c),f=s(r),d&&f.sort("function"===typeof d?o.call(d,r):void 0),"function"!==typeof e&&(e=f[e]),a.call(e,f,(function(e,n){return u.call(r,e)?a.call(c,l,r[e],e,r,n):t}))}}},{"./valid-callable":54,"./valid-value":55}],36:[function(e,t,r){"use strict";t.exports=e("./is-implemented")()?Object.assign:e("./shim")},{"./is-implemented":37,"./shim":38}],37:[function(e,t,r){"use strict";t.exports=function(){var e,t=Object.assign;return"function"===typeof t&&(e={foo:"raz"},t(e,{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}},{}],38:[function(e,t,r){"use strict";var n=e("../keys"),i=e("../valid-value"),o=Math.max;t.exports=function(e,t){var r,a,s,u=o(arguments.length,2);for(e=Object(i(e)),s=function(n){try{e[n]=t[n]}catch(i){r||(r=i)}},a=1;a<u;++a)t=arguments[a],n(t).forEach(s);if(void 0!==r)throw r;return e}},{"../keys":45,"../valid-value":55}],39:[function(e,t,r){"use strict";var n=e("../array/from"),i=e("./assign"),o=e("./valid-value");t.exports=function(e){var t=Object(o(e)),r=arguments[1],a=Object(arguments[2]);if(t!==e&&!r)return t;var s={};return r?n(r,(function(t){(a.ensure||t in e)&&(s[t]=e[t])})):i(s,e),s}},{"../array/from":21,"./assign":36,"./valid-value":55}],40:[function(e,t,r){"use strict";var n,i=Object.create;e("./set-prototype-of/is-implemented")()||(n=e("./set-prototype-of/shim")),t.exports=function(){var e,t,r;return n?1!==n.level?i:(e={},t={},r={configurable:!1,enumerable:!1,writable:!0,value:void 0},Object.getOwnPropertyNames(Object.prototype).forEach((function(e){t[e]="__proto__"!==e?r:{configurable:!0,enumerable:!1,writable:!0,value:void 0}})),Object.defineProperties(e,t),Object.defineProperty(n,"nullPolyfill",{configurable:!1,enumerable:!1,writable:!1,value:e}),function(t,r){return i(null===t?e:t,r)}):i}()},{"./set-prototype-of/is-implemented":52,"./set-prototype-of/shim":53}],41:[function(e,t,r){"use strict";t.exports=e("./_iterate")("forEach")},{"./_iterate":35}],42:[function(e,t,r){"use strict";t.exports=function(e){return"function"===typeof e}},{}],43:[function(e,t,r){"use strict";var n=e("./is-value"),i={function:!0,object:!0};t.exports=function(e){return n(e)&&i[u(e)]||!1}},{"./is-value":44}],44:[function(e,t,r){"use strict";var n=e("../function/noop")();t.exports=function(e){return e!==n&&null!==e}},{"../function/noop":26}],45:[function(e,t,r){"use strict";t.exports=e("./is-implemented")()?Object.keys:e("./shim")},{"./is-implemented":46,"./shim":47}],46:[function(e,t,r){"use strict";t.exports=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}},{}],47:[function(e,t,r){"use strict";var n=e("../is-value"),i=Object.keys;t.exports=function(e){return i(n(e)?Object(e):e)}},{"../is-value":44}],48:[function(e,t,r){"use strict";var n=e("./valid-callable"),i=e("./for-each"),o=Function.prototype.call;t.exports=function(e,t){var r={},a=arguments[2];return n(t),i(e,(function(e,n,i,s){r[n]=o.call(t,a,e,n,i,s)})),r}},{"./for-each":41,"./valid-callable":54}],49:[function(e,t,r){"use strict";var n=e("./is-value"),i=Array.prototype.forEach,o=Object.create,a=function(e,t){var r;for(r in e)t[r]=e[r]};t.exports=function(e){var t=o(null);return i.call(arguments,(function(e){n(e)&&a(Object(e),t)})),t}},{"./is-value":44}],50:[function(e,t,r){"use strict";var n=Array.prototype.forEach,i=Object.create;t.exports=function(e){var t=i(null);return n.call(arguments,(function(e){t[e]=!0})),t}},{}],51:[function(e,t,r){"use strict";t.exports=e("./is-implemented")()?Object.setPrototypeOf:e("./shim")},{"./is-implemented":52,"./shim":53}],52:[function(e,t,r){"use strict";var n=Object.create,i=Object.getPrototypeOf,o={};t.exports=function(){var e=Object.setPrototypeOf,t=arguments[0]||n;return"function"===typeof e&&i(e(t(null),o))===o}},{}],53:[function(e,t,r){"use strict";var n,i=e("../is-object"),o=e("../valid-value"),a=Object.prototype.isPrototypeOf,s=Object.defineProperty,u={configurable:!0,enumerable:!1,writable:!0,value:void 0};n=function(e,t){if(o(e),null===t||i(t))return e;throw new TypeError("Prototype must be null or an object")},t.exports=function(e){var t,r;return e?(2===e.level?e.set?(r=e.set,t=function(e,t){return r.call(n(e,t),t),e}):t=function(e,t){return n(e,t).__proto__=t,e}:t=function e(t,r){var i;return n(t,r),i=a.call(e.nullPolyfill,t),i&&delete e.nullPolyfill.__proto__,null===r&&(r=e.nullPolyfill),t.__proto__=r,i&&s(e.nullPolyfill,"__proto__",u),t},Object.defineProperty(t,"level",{configurable:!1,enumerable:!1,writable:!1,value:e.level})):null}(function(){var e,t=Object.create(null),r={},n=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__");if(n){try{e=n.set,e.call(t,r)}catch(i){}if(Object.getPrototypeOf(t)===r)return{set:e,level:2}}return t.__proto__=r,Object.getPrototypeOf(t)===r?{level:2}:(t={},t.__proto__=r,Object.getPrototypeOf(t)===r&&{level:1})}()),e("../create")},{"../create":40,"../is-object":43,"../valid-value":55}],54:[function(e,t,r){"use strict";t.exports=function(e){if("function"!==typeof e)throw new TypeError(e+" is not a function");return e}},{}],55:[function(e,t,r){"use strict";var n=e("./is-value");t.exports=function(e){if(!n(e))throw new TypeError("Cannot use null or undefined");return e}},{"./is-value":44}],56:[function(e,t,r){"use strict";t.exports=e("./is-implemented")()?String.prototype.contains:e("./shim")},{"./is-implemented":57,"./shim":58}],57:[function(e,t,r){"use strict";var n="razdwatrzy";t.exports=function(){return"function"===typeof n.contains&&(!0===n.contains("dwa")&&!1===n.contains("foo"))}},{}],58:[function(e,t,r){"use strict";var n=String.prototype.indexOf;t.exports=function(e){return n.call(this,e,arguments[1])>-1}},{}],59:[function(e,t,r){"use strict";var n=Object.prototype.toString,i=n.call("");t.exports=function(e){return"string"===typeof e||e&&"object"===u(e)&&(e instanceof String||n.call(e)===i)||!1}},{}],60:[function(e,t,r){"use strict";var n,i=e("es5-ext/object/set-prototype-of"),o=e("es5-ext/string/#/contains"),a=e("d"),s=e("es6-symbol"),u=e("./"),c=Object.defineProperty;n=t.exports=function(e,t){if(!(this instanceof n))throw new TypeError("Constructor requires 'new'");u.call(this,e),t=t?o.call(t,"key+value")?"key+value":o.call(t,"key")?"key":"value":"value",c(this,"__kind__",a("",t))},i&&i(n,u),delete n.prototype.constructor,n.prototype=Object.create(u.prototype,{_resolve:a((function(e){return"value"===this.__kind__?this.__list__[e]:"key+value"===this.__kind__?[e,this.__list__[e]]:e}))}),c(n.prototype,s.toStringTag,a("c","Array Iterator"))},{"./":63,d:16,"es5-ext/object/set-prototype-of":51,"es5-ext/string/#/contains":56,"es6-symbol":73}],61:[function(e,t,r){"use strict";var n=e("es5-ext/function/is-arguments"),i=e("es5-ext/object/valid-callable"),o=e("es5-ext/string/is-string"),a=e("./get"),s=Array.isArray,u=Function.prototype.call,c=Array.prototype.some;t.exports=function(e,t){var r,f,l,d,h,p,g,y,v=arguments[2];if(s(e)||n(e)?r="array":o(e)?r="string":e=a(e),i(t),l=function(){d=!0},"array"!==r){if("string"!==r){f=e.next();while(!f.done){if(u.call(t,v,f.value,l),d)return;f=e.next()}}else for(p=e.length,h=0;h<p;++h)if(g=e[h],h+1<p&&(y=g.charCodeAt(0),y>=55296&&y<=56319&&(g+=e[++h])),u.call(t,v,g,l),d)break}else c.call(e,(function(e){return u.call(t,v,e,l),d}))}},{"./get":62,"es5-ext/function/is-arguments":24,"es5-ext/object/valid-callable":54,"es5-ext/string/is-string":59}],62:[function(e,t,r){"use strict";var n=e("es5-ext/function/is-arguments"),i=e("es5-ext/string/is-string"),o=e("./array"),a=e("./string"),s=e("./valid-iterable"),u=e("es6-symbol").iterator;t.exports=function(e){return"function"===typeof s(e)[u]?e[u]():n(e)?new o(e):i(e)?new a(e):new o(e)}},{"./array":60,"./string":65,"./valid-iterable":66,"es5-ext/function/is-arguments":24,"es5-ext/string/is-string":59,"es6-symbol":73}],63:[function(e,t,r){"use strict";var n,i=e("es5-ext/array/#/clear"),o=e("es5-ext/object/assign"),a=e("es5-ext/object/valid-callable"),s=e("es5-ext/object/valid-value"),u=e("d"),c=e("d/auto-bind"),f=e("es6-symbol"),l=Object.defineProperty,d=Object.defineProperties;t.exports=n=function(e,t){if(!(this instanceof n))throw new TypeError("Constructor requires 'new'");d(this,{__list__:u("w",s(e)),__context__:u("w",t),__nextIndex__:u("w",0)}),t&&(a(t.on),t.on("_add",this._onAdd),t.on("_delete",this._onDelete),t.on("_clear",this._onClear))},delete n.prototype.constructor,d(n.prototype,o({_next:u((function(){var e;if(this.__list__)return this.__redo__&&(e=this.__redo__.shift(),void 0!==e)?e:this.__nextIndex__<this.__list__.length?this.__nextIndex__++:void this._unBind()})),next:u((function(){return this._createResult(this._next())})),_createResult:u((function(e){return void 0===e?{done:!0,value:void 0}:{done:!1,value:this._resolve(e)}})),_resolve:u((function(e){return this.__list__[e]})),_unBind:u((function(){this.__list__=null,delete this.__redo__,this.__context__&&(this.__context__.off("_add",this._onAdd),this.__context__.off("_delete",this._onDelete),this.__context__.off("_clear",this._onClear),this.__context__=null)})),toString:u((function(){return"[object "+(this[f.toStringTag]||"Object")+"]"}))},c({_onAdd:u((function(e){e>=this.__nextIndex__||(++this.__nextIndex__,this.__redo__?(this.__redo__.forEach((function(t,r){t>=e&&(this.__redo__[r]=++t)}),this),this.__redo__.push(e)):l(this,"__redo__",u("c",[e])))})),_onDelete:u((function(e){var t;e>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&(t=this.__redo__.indexOf(e),-1!==t&&this.__redo__.splice(t,1),this.__redo__.forEach((function(t,r){t>e&&(this.__redo__[r]=--t)}),this)))})),_onClear:u((function(){this.__redo__&&i.call(this.__redo__),this.__nextIndex__=0}))}))),l(n.prototype,f.iterator,u((function(){return this})))},{d:16,"d/auto-bind":15,"es5-ext/array/#/clear":19,"es5-ext/object/assign":36,"es5-ext/object/valid-callable":54,"es5-ext/object/valid-value":55,"es6-symbol":73}],64:[function(e,t,r){"use strict";var n=e("es5-ext/function/is-arguments"),i=e("es5-ext/object/is-value"),o=e("es5-ext/string/is-string"),a=e("es6-symbol").iterator,s=Array.isArray;t.exports=function(e){return!!i(e)&&(!!s(e)||(!!o(e)||(!!n(e)||"function"===typeof e[a])))}},{"es5-ext/function/is-arguments":24,"es5-ext/object/is-value":44,"es5-ext/string/is-string":59,"es6-symbol":73}],65:[function(e,t,r){"use strict";var n,i=e("es5-ext/object/set-prototype-of"),o=e("d"),a=e("es6-symbol"),s=e("./"),u=Object.defineProperty;n=t.exports=function(e){if(!(this instanceof n))throw new TypeError("Constructor requires 'new'");e=String(e),s.call(this,e),u(this,"__length__",o("",e.length))},i&&i(n,s),delete n.prototype.constructor,n.prototype=Object.create(s.prototype,{_next:o((function(){if(this.__list__)return this.__nextIndex__<this.__length__?this.__nextIndex__++:void this._unBind()})),_resolve:o((function(e){var t,r=this.__list__[e];return this.__nextIndex__===this.__length__?r:(t=r.charCodeAt(0),t>=55296&&t<=56319?r+this.__list__[this.__nextIndex__++]:r)}))}),u(n.prototype,a.toStringTag,o("c","String Iterator"))},{"./":63,d:16,"es5-ext/object/set-prototype-of":51,"es6-symbol":73}],66:[function(e,t,r){"use strict";var n=e("./is-iterable");t.exports=function(e){if(!n(e))throw new TypeError(e+" is not iterable");return e}},{"./is-iterable":64}],67:[function(e,t,r){"use strict";t.exports=e("./is-implemented")()?Map:e("./polyfill")},{"./is-implemented":68,"./polyfill":72}],68:[function(e,t,r){"use strict";t.exports=function(){var e,t,r;if("function"!==typeof Map)return!1;try{e=new Map([["raz","one"],["dwa","two"],["trzy","three"]])}catch(n){return!1}return"[object Map]"===String(e)&&(3===e.size&&("function"===typeof e.clear&&("function"===typeof e.delete&&("function"===typeof e.entries&&("function"===typeof e.forEach&&("function"===typeof e.get&&("function"===typeof e.has&&("function"===typeof e.keys&&("function"===typeof e.set&&("function"===typeof e.values&&(t=e.entries(),r=t.next(),!1===r.done&&(!!r.value&&("raz"===r.value[0]&&"one"===r.value[1])))))))))))))}},{}],69:[function(e,t,r){"use strict";t.exports=function(){return"undefined"!==typeof Map&&"[object Map]"===Object.prototype.toString.call(new Map)}()},{}],70:[function(e,t,r){"use strict";t.exports=e("es5-ext/object/primitive-set")("key","value","key+value")},{"es5-ext/object/primitive-set":50}],71:[function(e,t,r){"use strict";var n,i=e("es5-ext/object/set-prototype-of"),o=e("d"),a=e("es6-iterator"),s=e("es6-symbol").toStringTag,u=e("./iterator-kinds"),c=Object.defineProperties,f=a.prototype._unBind;n=t.exports=function(e,t){if(!(this instanceof n))return new n(e,t);a.call(this,e.__mapKeysData__,e),t&&u[t]||(t="key+value"),c(this,{__kind__:o("",t),__values__:o("w",e.__mapValuesData__)})},i&&i(n,a),n.prototype=Object.create(a.prototype,{constructor:o(n),_resolve:o((function(e){return"value"===this.__kind__?this.__values__[e]:"key"===this.__kind__?this.__list__[e]:[this.__list__[e],this.__values__[e]]})),_unBind:o((function(){this.__values__=null,f.call(this)})),toString:o((function(){return"[object Map Iterator]"}))}),Object.defineProperty(n.prototype,s,o("c","Map Iterator"))},{"./iterator-kinds":70,d:16,"es5-ext/object/set-prototype-of":51,"es6-iterator":63,"es6-symbol":73}],72:[function(e,t,r){"use strict";var n,i=e("es5-ext/array/#/clear"),o=e("es5-ext/array/#/e-index-of"),a=e("es5-ext/object/set-prototype-of"),s=e("es5-ext/object/valid-callable"),u=e("es5-ext/object/valid-value"),c=e("d"),f=e("event-emitter"),l=e("es6-symbol"),d=e("es6-iterator/valid-iterable"),h=e("es6-iterator/for-of"),p=e("./lib/iterator"),g=e("./is-native-implemented"),y=Function.prototype.call,v=Object.defineProperties,b=Object.getPrototypeOf;t.exports=n=function(){var e,t,r,i=arguments[0];if(!(this instanceof n))throw new TypeError("Constructor requires 'new'");return r=g&&a&&Map!==n?a(new Map,b(this)):this,null!=i&&d(i),v(r,{__mapKeysData__:c("c",e=[]),__mapValuesData__:c("c",t=[])}),i?(h(i,(function(r){var n=u(r)[0];r=r[1],-1===o.call(e,n)&&(e.push(n),t.push(r))}),r),r):r},g&&(a&&a(n,Map),n.prototype=Object.create(Map.prototype,{constructor:c(n)})),f(v(n.prototype,{clear:c((function(){this.__mapKeysData__.length&&(i.call(this.__mapKeysData__),i.call(this.__mapValuesData__),this.emit("_clear"))})),delete:c((function(e){var t=o.call(this.__mapKeysData__,e);return-1!==t&&(this.__mapKeysData__.splice(t,1),this.__mapValuesData__.splice(t,1),this.emit("_delete",t,e),!0)})),entries:c((function(){return new p(this,"key+value")})),forEach:c((function(e){var t,r,n=arguments[1];s(e),t=this.entries(),r=t._next();while(void 0!==r)y.call(e,n,this.__mapValuesData__[r],this.__mapKeysData__[r],this),r=t._next()})),get:c((function(e){var t=o.call(this.__mapKeysData__,e);if(-1!==t)return this.__mapValuesData__[t]})),has:c((function(e){return-1!==o.call(this.__mapKeysData__,e)})),keys:c((function(){return new p(this,"key")})),set:c((function(e,t){var r,n=o.call(this.__mapKeysData__,e);return-1===n&&(n=this.__mapKeysData__.push(e)-1,r=!0),this.__mapValuesData__[n]=t,r&&this.emit("_add",n,e),this})),size:c.gs((function(){return this.__mapKeysData__.length})),values:c((function(){return new p(this,"value")})),toString:c((function(){return"[object Map]"}))})),Object.defineProperty(n.prototype,l.iterator,c((function(){return this.entries()}))),Object.defineProperty(n.prototype,l.toStringTag,c("c","Map"))},{"./is-native-implemented":69,"./lib/iterator":71,d:16,"es5-ext/array/#/clear":19,"es5-ext/array/#/e-index-of":20,"es5-ext/object/set-prototype-of":51,"es5-ext/object/valid-callable":54,"es5-ext/object/valid-value":55,"es6-iterator/for-of":61,"es6-iterator/valid-iterable":66,"es6-symbol":73,"event-emitter":78}],73:[function(e,t,r){"use strict";t.exports=e("./is-implemented")()?Symbol:e("./polyfill")},{"./is-implemented":74,"./polyfill":76}],74:[function(e,t,r){"use strict";var n={object:!0,symbol:!0};t.exports=function(){var e;if("function"!==typeof Symbol)return!1;e=Symbol("test symbol");try{String(e)}catch(t){return!1}return!!n[u(Symbol.iterator)]&&(!!n[u(Symbol.toPrimitive)]&&!!n[u(Symbol.toStringTag)])}},{}],75:[function(e,t,r){"use strict";t.exports=function(e){return!!e&&("symbol"===u(e)||!!e.constructor&&("Symbol"===e.constructor.name&&"Symbol"===e[e.constructor.toStringTag]))}},{}],76:[function(e,t,r){"use strict";var n,i,o,a,s=e("d"),c=e("./validate-symbol"),f=Object.create,l=Object.defineProperties,d=Object.defineProperty,h=Object.prototype,p=f(null);if("function"===typeof Symbol){n=Symbol;try{String(n()),a=!0}catch(y){}}var g=function(){var e=f(null);return function(t){var r,n,i=0;while(e[t+(i||"")])++i;return t+=i||"",e[t]=!0,r="@@"+t,d(h,r,s.gs(null,(function(e){n||(n=!0,d(this,r,s(e)),n=!1)}))),r}}();o=function(e){if(this instanceof o)throw new TypeError("Symbol is not a constructor");return i(e)},t.exports=i=function e(t){var r;if(this instanceof e)throw new TypeError("Symbol is not a constructor");return a?n(t):(r=f(o.prototype),t=void 0===t?"":String(t),l(r,{__description__:s("",t),__name__:s("",g(t))}))},l(i,{for:s((function(e){return p[e]?p[e]:p[e]=i(String(e))})),keyFor:s((function(e){var t;for(t in c(e),p)if(p[t]===e)return t})),hasInstance:s("",n&&n.hasInstance||i("hasInstance")),isConcatSpreadable:s("",n&&n.isConcatSpreadable||i("isConcatSpreadable")),iterator:s("",n&&n.iterator||i("iterator")),match:s("",n&&n.match||i("match")),replace:s("",n&&n.replace||i("replace")),search:s("",n&&n.search||i("search")),species:s("",n&&n.species||i("species")),split:s("",n&&n.split||i("split")),toPrimitive:s("",n&&n.toPrimitive||i("toPrimitive")),toStringTag:s("",n&&n.toStringTag||i("toStringTag")),unscopables:s("",n&&n.unscopables||i("unscopables"))}),l(o.prototype,{constructor:s(i),toString:s("",(function(){return this.__name__}))}),l(i.prototype,{toString:s((function(){return"Symbol ("+c(this).__description__+")"})),valueOf:s((function(){return c(this)}))}),d(i.prototype,i.toPrimitive,s("",(function(){var e=c(this);return"symbol"===u(e)?e:e.toString()}))),d(i.prototype,i.toStringTag,s("c","Symbol")),d(o.prototype,i.toStringTag,s("c",i.prototype[i.toStringTag])),d(o.prototype,i.toPrimitive,s("c",i.prototype[i.toPrimitive]))},{"./validate-symbol":77,d:16}],77:[function(e,t,r){"use strict";var n=e("./is-symbol");t.exports=function(e){if(!n(e))throw new TypeError(e+" is not a symbol");return e}},{"./is-symbol":75}],78:[function(e,t,r){"use strict";var n,i,o,a,s,c,f,l=e("d"),d=e("es5-ext/object/valid-callable"),h=Function.prototype.apply,p=Function.prototype.call,g=Object.create,y=Object.defineProperty,v=Object.defineProperties,b=Object.prototype.hasOwnProperty,m={configurable:!0,enumerable:!1,writable:!0};n=function(e,t){var r;return d(t),b.call(this,"__ee__")?r=this.__ee__:(r=m.value=g(null),y(this,"__ee__",m),m.value=null),r[e]?"object"===u(r[e])?r[e].push(t):r[e]=[r[e],t]:r[e]=t,this},i=function(e,t){var r,i;return d(t),i=this,n.call(this,e,r=function(){o.call(i,e,r),h.call(t,this,arguments)}),r.__eeOnceListener__=t,this},o=function(e,t){var r,n,i,o;if(d(t),!b.call(this,"__ee__"))return this;if(r=this.__ee__,!r[e])return this;if(n=r[e],"object"===u(n))for(o=0;i=n[o];++o)i!==t&&i.__eeOnceListener__!==t||(2===n.length?r[e]=n[o?0:1]:n.splice(o,1));else n!==t&&n.__eeOnceListener__!==t||delete r[e];return this},a=function(e){var t,r,n,i,o;if(b.call(this,"__ee__")&&(i=this.__ee__[e],i))if("object"===u(i)){for(r=arguments.length,o=new Array(r-1),t=1;t<r;++t)o[t-1]=arguments[t];for(i=i.slice(),t=0;n=i[t];++t)h.call(n,this,o)}else switch(arguments.length){case 1:p.call(i,this);break;case 2:p.call(i,this,arguments[1]);break;case 3:p.call(i,this,arguments[1],arguments[2]);break;default:for(r=arguments.length,o=new Array(r-1),t=1;t<r;++t)o[t-1]=arguments[t];h.call(i,this,o)}},s={on:n,once:i,off:o,emit:a},c={on:l(n),once:l(i),off:l(o),emit:l(a)},f=v({},c),t.exports=r=function(e){return null==e?g(f):v(Object(e),c)},r.methods=s},{d:16,"es5-ext/object/valid-callable":54}],79:[function(e,t,r){r.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,u=(1<<s)-1,c=u>>1,f=-7,l=r?i-1:0,d=r?-1:1,h=e[t+l];for(l+=d,o=h&(1<<-f)-1,h>>=-f,f+=s;f>0;o=256*o+e[t+l],l+=d,f-=8);for(a=o&(1<<-f)-1,o>>=-f,f+=n;f>0;a=256*a+e[t+l],l+=d,f-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,n),o-=c}return(h?-1:1)*a*Math.pow(2,o-n)},r.write=function(e,t,r,n,i,o){var a,s,u,c=8*o-i-1,f=(1<<c)-1,l=f>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:o-1,p=n?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=f):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),t+=a+l>=1?d/u:d*Math.pow(2,1-l),t*u>=2&&(a++,u/=2),a+l>=f?(s=0,a=f):a+l>=1?(s=(t*u-1)*Math.pow(2,i),a+=l):(s=t*Math.pow(2,l-1)*Math.pow(2,i),a=0));i>=8;e[r+h]=255&s,h+=p,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;e[r+h]=255&a,h+=p,a/=256,c-=8);e[r+h-p]|=128*g}},{}],80:[function(e,t,r){"function"===typeof Object.create?t.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},{}],81:[function(e,t,r){function n(e){return!!e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}t.exports=function(e){return null!=e&&(n(e)||function(e){return"function"===typeof e.readFloatLE&&"function"===typeof e.slice&&n(e.slice(0,0))}(e)||!!e._isBuffer)}},{}],82:[function(e,t,r){"use strict";var n=e("safe-buffer").Buffer,i=t.exports;for(var o in i.types={0:"reserved",1:"connect",2:"connack",3:"publish",4:"puback",5:"pubrec",6:"pubrel",7:"pubcomp",8:"subscribe",9:"suback",10:"unsubscribe",11:"unsuback",12:"pingreq",13:"pingresp",14:"disconnect",15:"auth"},i.codes={},i.types){var a=i.types[o];i.codes[a]=o}for(var s in i.CMD_SHIFT=4,i.CMD_MASK=240,i.DUP_MASK=8,i.QOS_MASK=3,i.QOS_SHIFT=1,i.RETAIN_MASK=1,i.LENGTH_MASK=127,i.LENGTH_FIN_MASK=128,i.SESSIONPRESENT_MASK=1,i.SESSIONPRESENT_HEADER=n.from([i.SESSIONPRESENT_MASK]),i.CONNACK_HEADER=n.from([i.codes["connack"]<<i.CMD_SHIFT]),i.USERNAME_MASK=128,i.PASSWORD_MASK=64,i.WILL_RETAIN_MASK=32,i.WILL_QOS_MASK=24,i.WILL_QOS_SHIFT=3,i.WILL_FLAG_MASK=4,i.CLEAN_SESSION_MASK=2,i.CONNECT_HEADER=n.from([i.codes["connect"]<<i.CMD_SHIFT]),i.properties={sessionExpiryInterval:17,willDelayInterval:24,receiveMaximum:33,maximumPacketSize:39,topicAliasMaximum:34,requestResponseInformation:25,requestProblemInformation:23,userProperties:38,authenticationMethod:21,authenticationData:22,payloadFormatIndicator:1,messageExpiryInterval:2,contentType:3,responseTopic:8,correlationData:9,maximumQoS:36,retainAvailable:37,assignedClientIdentifier:18,reasonString:31,wildcardSubscriptionAvailable:40,subscriptionIdentifiersAvailable:41,sharedSubscriptionAvailable:42,serverKeepAlive:19,responseInformation:26,serverReference:28,topicAlias:35,subscriptionIdentifier:11},i.propertiesCodes={},i.properties){var u=i.properties[s];i.propertiesCodes[u]=s}function c(e){return[0,1,2].map((function(t){return[0,1].map((function(r){return[0,1].map((function(o){var a=new n(1);return a.writeUInt8(i.codes[e]<<i.CMD_SHIFT|(r?i.DUP_MASK:0)|t<<i.QOS_SHIFT|o,0,!0),a}))}))}))}i.propertiesTypes={sessionExpiryInterval:"int32",willDelayInterval:"int32",receiveMaximum:"int16",maximumPacketSize:"int32",topicAliasMaximum:"int16",requestResponseInformation:"byte",requestProblemInformation:"byte",userProperties:"pair",authenticationMethod:"string",authenticationData:"binary",payloadFormatIndicator:"byte",messageExpiryInterval:"int32",contentType:"string",responseTopic:"string",correlationData:"binary",maximumQoS:"int8",retainAvailable:"byte",assignedClientIdentifier:"string",reasonString:"string",wildcardSubscriptionAvailable:"byte",subscriptionIdentifiersAvailable:"byte",sharedSubscriptionAvailable:"byte",serverKeepAlive:"int32",responseInformation:"string",serverReference:"string",topicAlias:"int16",subscriptionIdentifier:"var"},i.PUBLISH_HEADER=c("publish"),i.SUBSCRIBE_HEADER=c("subscribe"),i.SUBSCRIBE_OPTIONS_QOS_MASK=3,i.SUBSCRIBE_OPTIONS_NL_MASK=1,i.SUBSCRIBE_OPTIONS_NL_SHIFT=2,i.SUBSCRIBE_OPTIONS_RAP_MASK=1,i.SUBSCRIBE_OPTIONS_RAP_SHIFT=3,i.SUBSCRIBE_OPTIONS_RH_MASK=3,i.SUBSCRIBE_OPTIONS_RH_SHIFT=4,i.SUBSCRIBE_OPTIONS_RH=[0,16,32],i.SUBSCRIBE_OPTIONS_NL=4,i.SUBSCRIBE_OPTIONS_RAP=8,i.SUBSCRIBE_OPTIONS_QOS=[0,1,2],i.UNSUBSCRIBE_HEADER=c("unsubscribe"),i.ACKS={unsuback:c("unsuback"),puback:c("puback"),pubcomp:c("pubcomp"),pubrel:c("pubrel"),pubrec:c("pubrec")},i.SUBACK_HEADER=n.from([i.codes["suback"]<<i.CMD_SHIFT]),i.VERSION3=n.from([3]),i.VERSION4=n.from([4]),i.VERSION5=n.from([5]),i.QOS=[0,1,2].map((function(e){return n.from([e])})),i.EMPTY={pingreq:n.from([i.codes["pingreq"]<<4,0]),pingresp:n.from([i.codes["pingresp"]<<4,0]),disconnect:n.from([i.codes["disconnect"]<<4,0])}},{"safe-buffer":110}],83:[function(e,t,r){"use strict";var n=e("safe-buffer").Buffer,i=e("./writeToStream"),o=e("events").EventEmitter,a=e("inherits");function s(){this._array=new Array(20),this._i=0}a(s,o),s.prototype.write=function(e){return this._array[this._i++]=e,!0},s.prototype.concat=function(){var e,t,r=0,i=new Array(this._array.length),o=this._array,a=0;for(e=0;e<o.length&&void 0!==o[e];e++)"string"!==typeof o[e]?i[e]=o[e].length:i[e]=n.byteLength(o[e]),r+=i[e];for(t=n.allocUnsafe(r),e=0;e<o.length&&void 0!==o[e];e++)"string"!==typeof o[e]?(o[e].copy(t,a),a+=i[e]):(t.write(o[e],a),a+=i[e]);return t},t.exports=function(e,t){var r=new s;return i(e,r,t),r.concat()}},{"./writeToStream":89,events:13,inherits:80,"safe-buffer":110}],84:[function(e,t,r){"use strict";r.parser=e("./parser"),r.generate=e("./generate"),r.writeToStream=e("./writeToStream")},{"./generate":83,"./parser":88,"./writeToStream":89}],85:[function(e,t,r){var n=e("readable-stream/duplex"),i=e("util"),o=e("safe-buffer").Buffer;function a(e){if(!(this instanceof a))return new a(e);if(this._bufs=[],this.length=0,"function"==typeof e){this._callback=e;var t=function(e){this._callback&&(this._callback(e),this._callback=null)}.bind(this);this.on("pipe",(function(e){e.on("error",t)})),this.on("unpipe",(function(e){e.removeListener("error",t)}))}else this.append(e);n.call(this)}i.inherits(a,n),a.prototype._offset=function(e){var t,r=0,n=0;if(0===e)return[0,0];for(;n<this._bufs.length;n++){if(t=r+this._bufs[n].length,e<t||n==this._bufs.length-1)return[n,e-r];r=t}},a.prototype.append=function(e){var t=0;if(o.isBuffer(e))this._appendBuffer(e);else if(Array.isArray(e))for(;t<e.length;t++)this.append(e[t]);else if(e instanceof a)for(;t<e._bufs.length;t++)this.append(e._bufs[t]);else null!=e&&("number"==typeof e&&(e=e.toString()),this._appendBuffer(o.from(e)));return this},a.prototype._appendBuffer=function(e){this._bufs.push(e),this.length+=e.length},a.prototype._write=function(e,t,r){this._appendBuffer(e),"function"==typeof r&&r()},a.prototype._read=function(e){if(!this.length)return this.push(null);e=Math.min(e,this.length),this.push(this.slice(0,e)),this.consume(e)},a.prototype.end=function(e){n.prototype.end.call(this,e),this._callback&&(this._callback(null,this.slice()),this._callback=null)},a.prototype.get=function(e){return this.slice(e,e+1)[0]},a.prototype.slice=function(e,t){return"number"==typeof e&&e<0&&(e+=this.length),"number"==typeof t&&t<0&&(t+=this.length),this.copy(null,0,e,t)},a.prototype.copy=function(e,t,r,n){if(("number"!=typeof r||r<0)&&(r=0),("number"!=typeof n||n>this.length)&&(n=this.length),r>=this.length)return e||o.alloc(0);if(n<=0)return e||o.alloc(0);var i,a,s=!!e,u=this._offset(r),c=n-r,f=c,l=s&&t||0,d=u[1];if(0===r&&n==this.length){if(!s)return 1===this._bufs.length?this._bufs[0]:o.concat(this._bufs,this.length);for(a=0;a<this._bufs.length;a++)this._bufs[a].copy(e,l),l+=this._bufs[a].length;return e}if(f<=this._bufs[u[0]].length-d)return s?this._bufs[u[0]].copy(e,t,d,d+f):this._bufs[u[0]].slice(d,d+f);for(s||(e=o.allocUnsafe(c)),a=u[0];a<this._bufs.length;a++){if(i=this._bufs[a].length-d,!(f>i)){this._bufs[a].copy(e,l,d,d+f);break}this._bufs[a].copy(e,l,d),l+=i,f-=i,d&&(d=0)}return e},a.prototype.shallowSlice=function(e,t){e=e||0,t=t||this.length,e<0&&(e+=this.length),t<0&&(t+=this.length);var r=this._offset(e),n=this._offset(t),i=this._bufs.slice(r[0],n[0]+1);return 0==n[1]?i.pop():i[i.length-1]=i[i.length-1].slice(0,n[1]),0!=r[1]&&(i[0]=i[0].slice(r[1])),new a(i)},a.prototype.toString=function(e,t,r){return this.slice(t,r).toString(e)},a.prototype.consume=function(e){while(this._bufs.length){if(!(e>=this._bufs[0].length)){this._bufs[0]=this._bufs[0].slice(e),this.length-=e;break}e-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift()}return this},a.prototype.duplicate=function(){for(var e=0,t=new a;e<this._bufs.length;e++)t.append(this._bufs[e]);return t},a.prototype.destroy=function(){this._bufs.length=0,this.length=0,this.push(null)},function(){var e={readDoubleBE:8,readDoubleLE:8,readFloatBE:4,readFloatLE:4,readInt32BE:4,readInt32LE:4,readUInt32BE:4,readUInt32LE:4,readInt16BE:2,readInt16LE:2,readUInt16BE:2,readUInt16LE:2,readInt8:1,readUInt8:1};for(var t in e)(function(t){a.prototype[t]=function(r){return this.slice(r,r+e[t])[t](0)}})(t)}(),t.exports=a},{"readable-stream/duplex":97,"safe-buffer":110,util:117}],86:[function(e,t,r){"use strict";var n=e("safe-buffer").Buffer,i={};function o(e){var t=n.allocUnsafe(2);return t.writeUInt8(e>>8,0),t.writeUInt8(255&e,1),t}t.exports={cache:i,generateCache:function(){for(var e=0;e<65536;e++)i[e]=o(e)},generateNumber:o,genBufVariableByteInt:function(e){var t=0,r=0,i=function(e){return e>=0&&e<128?1:e>=128&&e<16384?2:e>=16384&&e<2097152?3:e>=2097152&&e<268435456?4:0}(e),o=n.allocUnsafe(i);do{t=e%128|0,e=e/128|0,e>0&&(t|=128),o.writeUInt8(t,r++)}while(e>0);return{data:o,length:i}},generate4ByteBuffer:function(e){var t=n.allocUnsafe(4);return t.writeUInt32BE(e,0),t}}},{"safe-buffer":110}],87:[function(e,t,r){t.exports=function(){this.cmd=null,this.retain=!1,this.qos=0,this.dup=!1,this.length=-1,this.topic=null,this.payload=null}},{}],88:[function(e,t,r){"use strict";var n=e("bl"),i=e("inherits"),o=e("events").EventEmitter,a=e("./packet"),s=e("./constants");function u(e){if(!(this instanceof u))return new u(e);this.settings=e||{},this._states=["_parseHeader","_parseLength","_parsePayload","_newPacket"],this._resetState()}i(u,o),u.prototype._resetState=function(){this.packet=new a,this.error=null,this._list=n(),this._stateCounter=0},u.prototype.parse=function(e){this.error&&this._resetState(),this._list.append(e);while((-1!==this.packet.length||this._list.length>0)&&this[this._states[this._stateCounter]]()&&!this.error)this._stateCounter++,this._stateCounter>=this._states.length&&(this._stateCounter=0);return this._list.length},u.prototype._parseHeader=function(){var e=this._list.readUInt8(0);return this.packet.cmd=s.types[e>>s.CMD_SHIFT],this.packet.retain=0!==(e&s.RETAIN_MASK),this.packet.qos=e>>s.QOS_SHIFT&s.QOS_MASK,this.packet.dup=0!==(e&s.DUP_MASK),this._list.consume(1),!0},u.prototype._parseLength=function(){var e=this._parseVarByteNum(!0);return e&&(this.packet.length=e.value,this._list.consume(e.bytes)),!!e},u.prototype._parsePayload=function(){var e=!1;if(0===this.packet.length||this._list.length>=this.packet.length){switch(this._pos=0,this.packet.cmd){case"connect":this._parseConnect();break;case"connack":this._parseConnack();break;case"publish":this._parsePublish();break;case"puback":case"pubrec":case"pubrel":case"pubcomp":this._parseConfirmation();break;case"subscribe":this._parseSubscribe();break;case"suback":this._parseSuback();break;case"unsubscribe":this._parseUnsubscribe();break;case"unsuback":this._parseUnsuback();break;case"pingreq":case"pingresp":break;case"disconnect":this._parseDisconnect();break;case"auth":this._parseAuth();break;default:this._emitError(new Error("Not supported"))}e=!0}return e},u.prototype._parseConnect=function(){var e,t,r,n,i,o,a={},u=this.packet;if(e=this._parseString(),null===e)return this._emitError(new Error("Cannot parse protocolId"));if("MQTT"!==e&&"MQIsdp"!==e)return this._emitError(new Error("Invalid protocolId"));if(u.protocolId=e,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(u.protocolVersion=this._list.readUInt8(this._pos),3!==u.protocolVersion&&4!==u.protocolVersion&&5!==u.protocolVersion)return this._emitError(new Error("Invalid protocol version"));if(this._pos++,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(a.username=this._list.readUInt8(this._pos)&s.USERNAME_MASK,a.password=this._list.readUInt8(this._pos)&s.PASSWORD_MASK,a.will=this._list.readUInt8(this._pos)&s.WILL_FLAG_MASK,a.will&&(u.will={},u.will.retain=0!==(this._list.readUInt8(this._pos)&s.WILL_RETAIN_MASK),u.will.qos=(this._list.readUInt8(this._pos)&s.WILL_QOS_MASK)>>s.WILL_QOS_SHIFT),u.clean=0!==(this._list.readUInt8(this._pos)&s.CLEAN_SESSION_MASK),this._pos++,u.keepalive=this._parseNum(),-1===u.keepalive)return this._emitError(new Error("Packet too short"));if(5===u.protocolVersion){var c=this._parseProperties();Object.getOwnPropertyNames(c).length&&(u.properties=c)}if(t=this._parseString(),null===t)return this._emitError(new Error("Packet too short"));if(u.clientId=t,a.will){if(5===u.protocolVersion){var f=this._parseProperties();Object.getOwnPropertyNames(f).length&&(u.will.properties=f)}if(r=this._parseString(),null===r)return this._emitError(new Error("Cannot parse will topic"));if(u.will.topic=r,n=this._parseBuffer(),null===n)return this._emitError(new Error("Cannot parse will payload"));u.will.payload=n}if(a.username){if(o=this._parseString(),null===o)return this._emitError(new Error("Cannot parse username"));u.username=o}if(a.password){if(i=this._parseBuffer(),null===i)return this._emitError(new Error("Cannot parse password"));u.password=i}return this.settings=u,u},u.prototype._parseConnack=function(){var e=this.packet;if(this._list.length<2)return null;if(e.sessionPresent=!!(this._list.readUInt8(this._pos++)&s.SESSIONPRESENT_MASK),5===this.settings.protocolVersion?e.reasonCode=this._list.readUInt8(this._pos++):e.returnCode=this._list.readUInt8(this._pos++),-1===e.returnCode||-1===e.reasonCode)return this._emitError(new Error("Cannot parse return code"));if(5===this.settings.protocolVersion){var t=this._parseProperties();Object.getOwnPropertyNames(t).length&&(e.properties=t)}},u.prototype._parsePublish=function(){var e=this.packet;if(e.topic=this._parseString(),null===e.topic)return this._emitError(new Error("Cannot parse topic"));if(!(e.qos>0)||this._parseMessageId()){if(5===this.settings.protocolVersion){var t=this._parseProperties();Object.getOwnPropertyNames(t).length&&(e.properties=t)}e.payload=this._list.slice(this._pos,e.length)}},u.prototype._parseSubscribe=function(){var e,t,r,n,i,o,a,u=this.packet;if(1!==u.qos)return this._emitError(new Error("Wrong subscribe header"));if(u.subscriptions=[],this._parseMessageId()){if(5===this.settings.protocolVersion){var c=this._parseProperties();Object.getOwnPropertyNames(c).length&&(u.properties=c)}while(this._pos<u.length){if(e=this._parseString(),null===e)return this._emitError(new Error("Cannot parse topic"));t=this._parseByte(),r=t&s.SUBSCRIBE_OPTIONS_QOS_MASK,o=0!==(t>>s.SUBSCRIBE_OPTIONS_NL_SHIFT&s.SUBSCRIBE_OPTIONS_NL_MASK),i=0!==(t>>s.SUBSCRIBE_OPTIONS_RAP_SHIFT&s.SUBSCRIBE_OPTIONS_RAP_MASK),n=t>>s.SUBSCRIBE_OPTIONS_RH_SHIFT&s.SUBSCRIBE_OPTIONS_RH_MASK,a={topic:e,qos:r},5===this.settings.protocolVersion&&(a.nl=o,a.rap=i,a.rh=n),u.subscriptions.push(a)}}},u.prototype._parseSuback=function(){var e=this.packet;if(this.packet.granted=[],this._parseMessageId()){if(5===this.settings.protocolVersion){var t=this._parseProperties();Object.getOwnPropertyNames(t).length&&(e.properties=t)}while(this._pos<this.packet.length)this.packet.granted.push(this._list.readUInt8(this._pos++))}},u.prototype._parseUnsubscribe=function(){var e=this.packet;if(e.unsubscriptions=[],this._parseMessageId()){if(5===this.settings.protocolVersion){var t=this._parseProperties();Object.getOwnPropertyNames(t).length&&(e.properties=t)}while(this._pos<e.length){var r;if(r=this._parseString(),null===r)return this._emitError(new Error("Cannot parse topic"));e.unsubscriptions.push(r)}}},u.prototype._parseUnsuback=function(){var e=this.packet;if(!this._parseMessageId())return this._emitError(new Error("Cannot parse messageId"));if(5===this.settings.protocolVersion){var t=this._parseProperties();Object.getOwnPropertyNames(t).length&&(e.properties=t),e.granted=[];while(this._pos<this.packet.length)this.packet.granted.push(this._list.readUInt8(this._pos++))}},u.prototype._parseConfirmation=function(){var e=this.packet;if(this._parseMessageId(),5===this.settings.protocolVersion&&e.length>2){e.reasonCode=this._parseByte();var t=this._parseProperties();Object.getOwnPropertyNames(t).length&&(e.properties=t)}return!0},u.prototype._parseDisconnect=function(){var e=this.packet;if(5===this.settings.protocolVersion){e.reasonCode=this._parseByte();var t=this._parseProperties();Object.getOwnPropertyNames(t).length&&(e.properties=t)}return!0},u.prototype._parseAuth=function(){var e=this.packet;if(5!==this.settings.protocolVersion)return this._emitError(new Error("Not supported auth packet for this version MQTT"));e.reasonCode=this._parseByte();var t=this._parseProperties();return Object.getOwnPropertyNames(t).length&&(e.properties=t),!0},u.prototype._parseMessageId=function(){var e=this.packet;return e.messageId=this._parseNum(),null!==e.messageId||(this._emitError(new Error("Cannot parse messageId")),!1)},u.prototype._parseString=function(e){var t,r=this._parseNum(),n=r+this._pos;return-1===r||n>this._list.length||n>this.packet.length?null:(t=this._list.toString("utf8",this._pos,n),this._pos+=r,t)},u.prototype._parseStringPair=function(){return{name:this._parseString(),value:this._parseString()}},u.prototype._parseBuffer=function(){var e,t=this._parseNum(),r=t+this._pos;return-1===t||r>this._list.length||r>this.packet.length?null:(e=this._list.slice(this._pos,r),this._pos+=t,e)},u.prototype._parseNum=function(){if(this._list.length-this._pos<2)return-1;var e=this._list.readUInt16BE(this._pos);return this._pos+=2,e},u.prototype._parse4ByteNum=function(){if(this._list.length-this._pos<4)return-1;var e=this._list.readUInt32BE(this._pos);return this._pos+=4,e},u.prototype._parseVarByteNum=function(e){var t,r=0,n=1,i=0,o=!0,a=this._pos?this._pos:0;while(r<5){if(t=this._list.readUInt8(a+r++),i+=n*(t&s.LENGTH_MASK),n*=128,0===(t&s.LENGTH_FIN_MASK))break;if(this._list.length<=r){o=!1;break}}return a&&(this._pos+=r),o=!!o&&(e?{bytes:r,value:i}:i),o},u.prototype._parseByte=function(){var e=this._list.readUInt8(this._pos);return this._pos++,e},u.prototype._parseByType=function(e){switch(e){case"byte":return 0!==this._parseByte();case"int8":return this._parseByte();case"int16":return this._parseNum();case"int32":return this._parse4ByteNum();case"var":return this._parseVarByteNum();case"string":return this._parseString();case"pair":return this._parseStringPair();case"binary":return this._parseBuffer()}},u.prototype._parseProperties=function(){var e=this._parseVarByteNum(),t=this._pos,r=t+e,n={};while(this._pos<r){var i=this._parseByte(),o=s.propertiesCodes[i];if(!o)return this._emitError(new Error("Unknown property")),!1;if("userProperties"!==o)n[o]=this._parseByType(s.propertiesTypes[o]);else{n[o]||(n[o]={});var a=this._parseByType(s.propertiesTypes[o]);n[o][a.name]=a.value}}return n},u.prototype._newPacket=function(){return this.packet&&(this._list.consume(this.packet.length),this.emit("packet",this.packet)),this.packet=new a,this._pos=0,!0},u.prototype._emitError=function(e){this.error=e,this.emit("error",e)},t.exports=u},{"./constants":82,"./packet":87,bl:85,events:13,inherits:80}],89:[function(e,t,r){"use strict";var n=e("./constants"),i=e("safe-buffer").Buffer,o=i.allocUnsafe(0),a=i.from([0]),s=e("./numbers"),c=e("process-nextick-args").nextTick,f=s.cache,l=s.generateNumber,d=s.generateCache,h=s.genBufVariableByteInt,p=s.generate4ByteBuffer,g=S,y=!0;function v(e,t,r){switch(t.cork&&(t.cork(),c(b,t)),y&&(y=!1,d()),e.cmd){case"connect":return function(e,t,r){var o=e||{},a=o.protocolId||"MQTT",s=o.protocolVersion||4,c=o.will,f=o.clean,l=o.keepalive||0,d=o.clientId||"",h=o.username,p=o.password,y=o.properties;void 0===f&&(f=!0);var v=0;if(!a||"string"!==typeof a&&!i.isBuffer(a))return t.emit("error",new Error("Invalid protocolId")),!1;v+=a.length+2;if(3!==s&&4!==s&&5!==s)return t.emit("error",new Error("Invalid protocol version")),!1;v+=1;if("string"!==typeof d&&!i.isBuffer(d)||!d&&4!==s||!d&&!f){if(s<4)return t.emit("error",new Error("clientId must be supplied before 3.1.1")),!1;if(1*f===0)return t.emit("error",new Error("clientId must be given if cleanSession set to 0")),!1}else v+=d.length+2;if("number"!==typeof l||l<0||l>65535||l%1!==0)return t.emit("error",new Error("Invalid keepalive")),!1;v+=2;if(v+=1,5===s){var b=O(t,y);v+=b.length}if(c){if("object"!==u(c))return t.emit("error",new Error("Invalid will")),!1;if(!c.topic||"string"!==typeof c.topic)return t.emit("error",new Error("Invalid will topic")),!1;if(v+=i.byteLength(c.topic)+2,c.payload){if(!(c.payload.length>=0))return t.emit("error",new Error("Invalid will payload")),!1;"string"===typeof c.payload?v+=i.byteLength(c.payload)+2:v+=c.payload.length+2;var m={};5===s&&(m=O(t,c.properties),v+=m.length)}}var A=!1;if(null!=h){if(!M(h))return t.emit("error",new Error("Invalid username")),!1;A=!0,v+=i.byteLength(h)+2}if(null!=p){if(!A)return t.emit("error",new Error("Username is required to use password")),!1;if(!M(p))return t.emit("error",new Error("Invalid password")),!1;v+=P(p)+2}t.write(n.CONNECT_HEADER),_(t,v),C(t,a),t.write(4===s?n.VERSION4:5===s?n.VERSION5:n.VERSION3);var S=0;S|=null!=h?n.USERNAME_MASK:0,S|=null!=p?n.PASSWORD_MASK:0,S|=c&&c.retain?n.WILL_RETAIN_MASK:0,S|=c&&c.qos?c.qos<<n.WILL_QOS_SHIFT:0,S|=c?n.WILL_FLAG_MASK:0,S|=f?n.CLEAN_SESSION_MASK:0,t.write(i.from([S])),g(t,l),5===s&&b.write();C(t,d),c&&(5===s&&m.write(),w(t,c.topic),C(t,c.payload));null!=h&&C(t,h);null!=p&&C(t,p);return!0}(e,t);case"connack":return function(e,t,r){var o=r?r.protocolVersion:4,s=e||{},u=5===o?s.reasonCode:s.returnCode,c=s.properties,f=2;if("number"!==typeof u)return t.emit("error",new Error("Invalid return code")),!1;var l=null;5===o&&(l=O(t,c),f+=l.length);t.write(n.CONNACK_HEADER),_(t,f),t.write(s.sessionPresent?n.SESSIONPRESENT_HEADER:a),t.write(i.from([u])),null!=l&&l.write();return!0}(e,t,r);case"publish":return function(e,t,r){var a=r?r.protocolVersion:4,s=e||{},u=s.qos||0,c=s.retain?n.RETAIN_MASK:0,f=s.topic,l=s.payload||o,d=s.messageId,h=s.properties,p=0;if("string"===typeof f)p+=i.byteLength(f)+2;else{if(!i.isBuffer(f))return t.emit("error",new Error("Invalid topic")),!1;p+=f.length+2}i.isBuffer(l)?p+=l.length:p+=i.byteLength(l);if(u&&"number"!==typeof d)return t.emit("error",new Error("Invalid messageId")),!1;u&&(p+=2);var y=null;5===a&&(y=O(t,h),p+=y.length);t.write(n.PUBLISH_HEADER[u][s.dup?1:0][c?1:0]),_(t,p),g(t,P(f)),t.write(f),u>0&&g(t,d);null!=y&&y.write();return t.write(l)}(e,t,r);case"puback":case"pubrec":case"pubrel":case"pubcomp":return function(e,t,r){var o=r?r.protocolVersion:4,a=e||{},s=a.cmd||"puback",u=a.messageId,c=a.dup&&"pubrel"===s?n.DUP_MASK:0,f=0,l=a.reasonCode,d=a.properties,h=5===o?3:2;"pubrel"===s&&(f=1);if("number"!==typeof u)return t.emit("error",new Error("Invalid messageId")),!1;var p=null;if(5===o){if(p=I(t,d,r,h),!p)return!1;h+=p.length}t.write(n.ACKS[s][f][c][0]),_(t,h),g(t,u),5===o&&t.write(i.from([l]));null!==p&&p.write();return!0}(e,t,r);case"subscribe":return function(e,t,r){var o=r?r.protocolVersion:4,a=e||{},s=a.dup?n.DUP_MASK:0,c=a.messageId,f=a.subscriptions,l=a.properties,d=0;if("number"!==typeof c)return t.emit("error",new Error("Invalid messageId")),!1;d+=2;var h=null;5===o&&(h=O(t,l),d+=h.length);if("object"!==u(f)||!f.length)return t.emit("error",new Error("Invalid subscriptions")),!1;for(var p=0;p<f.length;p+=1){var y=f[p].topic,v=f[p].qos;if("string"!==typeof y)return t.emit("error",new Error("Invalid subscriptions - invalid topic")),!1;if("number"!==typeof v)return t.emit("error",new Error("Invalid subscriptions - invalid qos")),!1;if(5===o){var b=f[p].nl||!1;if("boolean"!==typeof b)return t.emit("error",new Error("Invalid subscriptions - invalid No Local")),!1;var m=f[p].rap||!1;if("boolean"!==typeof m)return t.emit("error",new Error("Invalid subscriptions - invalid Retain as Published")),!1;var A=f[p].rh||0;if("number"!==typeof A||A>2)return t.emit("error",new Error("Invalid subscriptions - invalid Retain Handling")),!1}d+=i.byteLength(y)+2+1}t.write(n.SUBSCRIBE_HEADER[1][s?1:0][0]),_(t,d),g(t,c),null!==h&&h.write();for(var S=!0,x=0;x<f.length;x++){var E,C=f[x],I=C.topic,T=C.qos,P=+C.nl,M=+C.rap,k=C.rh;w(t,I),E=n.SUBSCRIBE_OPTIONS_QOS[T],5===o&&(E|=P?n.SUBSCRIBE_OPTIONS_NL:0,E|=M?n.SUBSCRIBE_OPTIONS_RAP:0,E|=k?n.SUBSCRIBE_OPTIONS_RH[k]:0),S=t.write(i.from([E]))}return S}(e,t,r);case"suback":return function(e,t,r){var o=r?r.protocolVersion:4,a=e||{},s=a.messageId,c=a.granted,f=a.properties,l=0;if("number"!==typeof s)return t.emit("error",new Error("Invalid messageId")),!1;l+=2;if("object"!==u(c)||!c.length)return t.emit("error",new Error("Invalid qos vector")),!1;for(var d=0;d<c.length;d+=1){if("number"!==typeof c[d])return t.emit("error",new Error("Invalid qos vector")),!1;l+=1}var h=null;if(5===o){if(h=I(t,f,r,l),!h)return!1;l+=h.length}t.write(n.SUBACK_HEADER),_(t,l),g(t,s),null!==h&&h.write();return t.write(i.from(c))}(e,t,r);case"unsubscribe":return function(e,t,r){var o=r?r.protocolVersion:4,a=e||{},s=a.messageId,c=a.dup?n.DUP_MASK:0,f=a.unsubscriptions,l=a.properties,d=0;if("number"!==typeof s)return t.emit("error",new Error("Invalid messageId")),!1;d+=2;if("object"!==u(f)||!f.length)return t.emit("error",new Error("Invalid unsubscriptions")),!1;for(var h=0;h<f.length;h+=1){if("string"!==typeof f[h])return t.emit("error",new Error("Invalid unsubscriptions")),!1;d+=i.byteLength(f[h])+2}var p=null;5===o&&(p=O(t,l),d+=p.length);t.write(n.UNSUBSCRIBE_HEADER[1][c?1:0][0]),_(t,d),g(t,s),null!==p&&p.write();for(var y=!0,v=0;v<f.length;v++)y=w(t,f[v]);return y}(e,t,r);case"unsuback":return function(e,t,r){var o=r?r.protocolVersion:4,a=e||{},s=a.messageId,c=a.dup?n.DUP_MASK:0,f=a.granted,l=a.properties,d=a.cmd,h=2;if("number"!==typeof s)return t.emit("error",new Error("Invalid messageId")),!1;if(5===o){if("object"!==u(f)||!f.length)return t.emit("error",new Error("Invalid qos vector")),!1;for(var p=0;p<f.length;p+=1){if("number"!==typeof f[p])return t.emit("error",new Error("Invalid qos vector")),!1;h+=1}}var y=null;if(5===o){if(y=I(t,l,r,h),!y)return!1;h+=y.length}t.write(n.ACKS[d][0][c][0]),_(t,h),g(t,s),null!==y&&y.write();5===o&&t.write(i.from(f));return!0}(e,t,r);case"pingreq":case"pingresp":return function(e,t,r){return t.write(n.EMPTY[e.cmd])}(e,t);case"disconnect":return function(e,t,r){var o=r?r.protocolVersion:4,a=e||{},s=a.reasonCode,u=a.properties,c=5===o?1:0,f=null;if(5===o){if(f=I(t,u,r,c),!f)return!1;c+=f.length}t.write(i.from([n.codes["disconnect"]<<4])),_(t,c),5===o&&t.write(i.from([s]));null!==f&&f.write();return!0}(e,t,r);case"auth":return function(e,t,r){var o=r?r.protocolVersion:4,a=e||{},s=a.reasonCode,u=a.properties,c=5===o?1:0;5!==o&&t.emit("error",new Error("Invalid mqtt version for auth packet"));var f=I(t,u,r,c);if(!f)return!1;c+=f.length,t.write(i.from([n.codes["auth"]<<4])),_(t,c),t.write(i.from([s])),null!==f&&f.write();return!0}(e,t,r);default:return t.emit("error",new Error("Unknown command")),!1}}function b(e){e.uncork()}Object.defineProperty(v,"cacheNumbers",{get:function(){return g===S},set:function(e){e?(f&&0!==Object.keys(f).length||(y=!0),g=S):(y=!1,g=x)}});var m={};function _(e,t){var r=m[t];r||(r=h(t).data,t<16384&&(m[t]=r)),e.write(r)}function w(e,t){var r=i.byteLength(t);g(e,r),e.write(t,"utf8")}function A(e,t,r){w(e,t),w(e,r)}function S(e,t){return e.write(f[t])}function x(e,t){return e.write(l(t))}function E(e,t){return e.write(p(t))}function C(e,t){"string"===typeof t?w(e,t):t?(g(e,t.length),e.write(t)):g(e,0)}function O(e,t){if("object"!==u(t)||null!=t.length)return{length:1,write:function(){T(e,{},0)}};var r=0;function o(r){var o=n.propertiesTypes[r],a=t[r],s=0;switch(o){case"byte":if("boolean"!==typeof a)return e.emit("error",new Error("Invalid "+r)),!1;s+=2;break;case"int8":if("number"!==typeof a)return e.emit("error",new Error("Invalid "+r)),!1;s+=2;break;case"binary":if(a&&null===a)return e.emit("error",new Error("Invalid "+r)),!1;s+=1+i.byteLength(a)+2;break;case"int16":if("number"!==typeof a)return e.emit("error",new Error("Invalid "+r)),!1;s+=3;break;case"int32":if("number"!==typeof a)return e.emit("error",new Error("Invalid "+r)),!1;s+=5;break;case"var":if("number"!==typeof a)return e.emit("error",new Error("Invalid "+r)),!1;s+=1+h(a).length;break;case"string":if("string"!==typeof a)return e.emit("error",new Error("Invalid "+r)),!1;s+=3+i.byteLength(a.toString());break;case"pair":if("object"!==u(a))return e.emit("error",new Error("Invalid "+r)),!1;s+=Object.getOwnPropertyNames(a).reduce((function(e,t){return e+=3+i.byteLength(t.toString())+2+i.byteLength(a[t].toString()),e}),0);break;default:return e.emit("error",new Error("Invalid property "+r)),!1}return s}if(t)for(var a in t){var s=o(a);if(!s)return!1;r+=s}var c=h(r).length;return{length:c+r,write:function(){T(e,t,r)}}}function I(e,t,r,n){var i=["reasonString","userProperties"],o=r&&r.properties&&r.properties.maximumPacketSize?r.properties.maximumPacketSize:0,a=O(e,t);if(o)while(n+a.length>o){var s=i.shift();if(!s||!t[s])return!1;delete t[s],a=O(e,t)}return a}function T(e,t,r){for(var o in _(e,r),t)if(t.hasOwnProperty(o)&&null!==t[o]){var a=t[o],s=n.propertiesTypes[o];switch(s){case"byte":e.write(i.from([n.properties[o]])),e.write(i.from([+a]));break;case"int8":e.write(i.from([n.properties[o]])),e.write(i.from([a]));break;case"binary":e.write(i.from([n.properties[o]])),C(e,a);break;case"int16":e.write(i.from([n.properties[o]])),g(e,a);break;case"int32":e.write(i.from([n.properties[o]])),E(e,a);break;case"var":e.write(i.from([n.properties[o]])),_(e,a);break;case"string":e.write(i.from([n.properties[o]])),w(e,a);break;case"pair":Object.getOwnPropertyNames(a).forEach((function(t){e.write(i.from([n.properties[o]])),A(e,t.toString(),a[t].toString())}));break;default:return e.emit("error",new Error("Invalid property "+o)),!1}}}function P(e){return e?e instanceof i?e.length:i.byteLength(e):0}function M(e){return"string"===typeof e||e instanceof i}t.exports=v},{"./constants":82,"./numbers":86,"process-nextick-args":91,"safe-buffer":110}],90:[function(e,t,r){var n=e("wrappy");function i(e){var t=function t(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function o(e){var t=function t(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},r=e.name||"Function wrapped with `once`";return t.onceError=r+" shouldn't be called more than once",t.called=!1,t}t.exports=n(i),t.exports.strict=n(o),i.proto=i((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return i(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return o(this)},configurable:!0})}))},{wrappy:120}],91:[function(e,t,r){(function(e){"use strict";!e.version||0===e.version.indexOf("v0.")||0===e.version.indexOf("v1.")&&0!==e.version.indexOf("v1.8.")?t.exports={nextTick:function(t,r,n,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,r)}));case 3:return e.nextTick((function(){t.call(null,r,n)}));case 4:return e.nextTick((function(){t.call(null,r,n,i)}));default:o=new Array(s-1),a=0;while(a<o.length)o[a++]=arguments[a];return e.nextTick((function(){t.apply(null,o)}))}}}:t.exports=e}).call(this,e("_process"))},{_process:92}],92:[function(e,t,r){var n,i,o=t.exports={};function a(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function u(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}(function(){try{n="function"===typeof setTimeout?setTimeout:a}catch(e){n=a}try{i="function"===typeof clearTimeout?clearTimeout:s}catch(e){i=s}})();var c,f=[],l=!1,d=-1;function h(){l&&c&&(l=!1,c.length?f=c.concat(f):d=-1,f.length&&p())}function p(){if(!l){var e=u(h);l=!0;var t=f.length;while(t){c=f,f=[];while(++d<t)c&&c[d].run();d=-1,t=f.length}c=null,l=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===s||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(e)}}function g(e,t){this.fun=e,this.array=t}function y(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];f.push(new g(e,t)),1!==f.length||l||u(p)},g.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=y,o.addListener=y,o.once=y,o.off=y,o.removeListener=y,o.removeAllListeners=y,o.emit=y,o.prependListener=y,o.prependOnceListener=y,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},{}],93:[function(e,t,r){(function(e){(function(n){var i="object"==u(r)&&r&&!r.nodeType&&r,o="object"==u(t)&&t&&!t.nodeType&&t,a="object"==u(e)&&e;a.global!==a&&a.window!==a&&a.self!==a||(n=a);var s,c,f=2147483647,l=/^xn--/,d=/[^\x20-\x7E]/,h=/[\x2E\u3002\uFF0E\uFF61]/g,p={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},g=Math.floor,y=String.fromCharCode;function v(e){throw new RangeError(p[e])}function b(e,t){var r=e.length,n=[];while(r--)n[r]=t(e[r]);return n}function m(e,t){var r=e.split("@"),n="";r.length>1&&(n=r[0]+"@",e=r[1]),e=e.replace(h,".");var i=e.split("."),o=b(i,t).join(".");return n+o}function _(e){var t,r,n=[],i=0,o=e.length;while(i<o)t=e.charCodeAt(i++),t>=55296&&t<=56319&&i<o?(r=e.charCodeAt(i++),56320==(64512&r)?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),i--)):n.push(t);return n}function w(e){return b(e,(function(e){var t="";return e>65535&&(e-=65536,t+=y(e>>>10&1023|55296),e=56320|1023&e),t+=y(e),t})).join("")}function A(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:36}function S(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function x(e,t,r){var n=0;for(e=r?g(e/700):e>>1,e+=g(e/t);e>455;n+=36)e=g(e/35);return g(n+36*e/(e+38))}function E(e){var t,r,n,i,o,a,s,u,c,l,d=[],h=e.length,p=0,y=128,b=72;for(r=e.lastIndexOf("-"),r<0&&(r=0),n=0;n<r;++n)e.charCodeAt(n)>=128&&v("not-basic"),d.push(e.charCodeAt(n));for(i=r>0?r+1:0;i<h;){for(o=p,a=1,s=36;;s+=36){if(i>=h&&v("invalid-input"),u=A(e.charCodeAt(i++)),(u>=36||u>g((f-p)/a))&&v("overflow"),p+=u*a,c=s<=b?1:s>=b+26?26:s-b,u<c)break;l=36-c,a>g(f/l)&&v("overflow"),a*=l}t=d.length+1,b=x(p-o,t,0==o),g(p/t)>f-y&&v("overflow"),y+=g(p/t),p%=t,d.splice(p++,0,y)}return w(d)}function C(e){var t,r,n,i,o,a,s,u,c,l,d,h,p,b,m,w=[];for(e=_(e),h=e.length,t=128,r=0,o=72,a=0;a<h;++a)d=e[a],d<128&&w.push(y(d));n=i=w.length,i&&w.push("-");while(n<h){for(s=f,a=0;a<h;++a)d=e[a],d>=t&&d<s&&(s=d);for(p=n+1,s-t>g((f-r)/p)&&v("overflow"),r+=(s-t)*p,t=s,a=0;a<h;++a)if(d=e[a],d<t&&++r>f&&v("overflow"),d==t){for(u=r,c=36;;c+=36){if(l=c<=o?1:c>=o+26?26:c-o,u<l)break;m=u-l,b=36-l,w.push(y(S(l+m%b,0))),u=g(m/b)}w.push(y(S(u,0))),o=x(r,p,n==i),r=0,++n}++r,++t}return w.join("")}if(s={version:"1.4.1",ucs2:{decode:_,encode:w},decode:E,encode:C,toASCII:function(e){return m(e,(function(e){return d.test(e)?"xn--"+C(e):e}))},toUnicode:function(e){return m(e,(function(e){return l.test(e)?E(e.slice(4).toLowerCase()):e}))}},i&&o)if(t.exports==i)o.exports=s;else for(c in s)s.hasOwnProperty(c)&&(i[c]=s[c]);else n.punycode=s})(this)}).call(this,"undefined"!==typeof n?n:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{}],94:[function(e,t,r){"use strict";function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.exports=function(e,t,r,o){t=t||"&",r=r||"=";var a={};if("string"!==typeof e||0===e.length)return a;var s=/\+/g;e=e.split(t);var u=1e3;o&&"number"===typeof o.maxKeys&&(u=o.maxKeys);var c=e.length;u>0&&c>u&&(c=u);for(var f=0;f<c;++f){var l,d,h,p,g=e[f].replace(s,"%20"),y=g.indexOf(r);y>=0?(l=g.substr(0,y),d=g.substr(y+1)):(l=g,d=""),h=decodeURIComponent(l),p=decodeURIComponent(d),n(a,h)?i(a[h])?a[h].push(p):a[h]=[a[h],p]:a[h]=p}return a};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},{}],95:[function(e,t,r){"use strict";var n=function(e){switch(u(e)){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};t.exports=function(e,t,r,s){return t=t||"&",r=r||"=",null===e&&(e=void 0),"object"===u(e)?o(a(e),(function(a){var s=encodeURIComponent(n(a))+r;return i(e[a])?o(e[a],(function(e){return s+encodeURIComponent(n(e))})).join(t):s+encodeURIComponent(n(e[a]))})).join(t):s?encodeURIComponent(n(s))+r+encodeURIComponent(n(e)):""};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function o(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n<e.length;n++)r.push(t(e[n],n));return r}var a=Object.keys||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t}},{}],96:[function(e,t,r){"use strict";r.decode=r.parse=e("./decode"),r.encode=r.stringify=e("./encode")},{"./decode":94,"./encode":95}],97:[function(e,t,r){t.exports=e("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":98}],98:[function(e,t,r){"use strict";var n=e("process-nextick-args"),i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};t.exports=l;var o=e("core-util-is");o.inherits=e("inherits");var a=e("./_stream_readable"),s=e("./_stream_writable");o.inherits(l,a);for(var u=i(s.prototype),c=0;c<u.length;c++){var f=u[c];l.prototype[f]||(l.prototype[f]=s.prototype[f])}function l(e){if(!(this instanceof l))return new l(e);a.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",d)}function d(){this.allowHalfOpen||this._writableState.ended||n.nextTick(h,this)}function h(e){e.end()}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),l.prototype._destroy=function(e,t){this.push(null),this.end(),n.nextTick(t,e)}},{"./_stream_readable":100,"./_stream_writable":102,"core-util-is":14,inherits:80,"process-nextick-args":91}],99:[function(e,t,r){"use strict";t.exports=o;var n=e("./_stream_transform"),i=e("core-util-is");function o(e){if(!(this instanceof o))return new o(e);n.call(this,e)}i.inherits=e("inherits"),i.inherits(o,n),o.prototype._transform=function(e,t,r){r(null,e)}},{"./_stream_transform":101,"core-util-is":14,inherits:80}],100:[function(e,t,r){(function(r,n){"use strict";var i=e("process-nextick-args");t.exports=m;var o,a=e("isarray");m.ReadableState=b;e("events").EventEmitter;var s=function(e,t){return e.listeners(t).length},u=e("./internal/streams/stream"),c=e("safe-buffer").Buffer,f=n.Uint8Array||function(){};var l=e("core-util-is");l.inherits=e("inherits");var d=e("util"),h=void 0;h=d&&d.debuglog?d.debuglog("stream"):function(){};var p,g=e("./internal/streams/BufferList"),y=e("./internal/streams/destroy");l.inherits(m,u);var v=["error","close","destroy","pause","resume"];function b(t,r){o=o||e("./_stream_duplex"),t=t||{};var n=r instanceof o;this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var i=t.highWaterMark,a=t.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new g,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(p||(p=e("string_decoder/").StringDecoder),this.decoder=new p(t.encoding),this.encoding=t.encoding)}function m(t){if(o=o||e("./_stream_duplex"),!(this instanceof m))return new m(t);this._readableState=new b(t,this),this.readable=!0,t&&("function"===typeof t.read&&(this._read=t.read),"function"===typeof t.destroy&&(this._destroy=t.destroy)),u.call(this)}function _(e,t,r,n,i){var o,a=e._readableState;null===t?(a.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,S(e)}(e,a)):(i||(o=function(e,t){var r;(function(e){return c.isBuffer(e)||e instanceof f})(t)||"string"===typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));return r}(a,t)),o?e.emit("error",o):a.objectMode||t&&t.length>0?("string"===typeof t||a.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=function(e){return c.from(e)}(t)),n?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):w(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||0!==t.length?w(e,a,t,!1):E(e,a)):w(e,a,t,!1))):n||(a.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(a)}function w(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&S(e)),E(e,t)}Object.defineProperty(m.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),m.prototype.destroy=y.destroy,m.prototype._undestroy=y.undestroy,m.prototype._destroy=function(e,t){this.push(null),t(e)},m.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"===typeof e&&(t=t||n.defaultEncoding,t!==n.encoding&&(e=c.from(e,t),t=""),r=!0),_(this,e,t,!1,r)},m.prototype.unshift=function(e){return _(this,e,null,!0,!1)},m.prototype.isPaused=function(){return!1===this._readableState.flowing},m.prototype.setEncoding=function(t){return p||(p=e("string_decoder/").StringDecoder),this._readableState.decoder=new p(t),this._readableState.encoding=t,this};function A(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=8388608?e=8388608:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function S(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(h("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(x,e):x(e))}function x(e){h("emit readable"),e.emit("readable"),T(e)}function E(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(C,e,t))}function C(e,t){var r=t.length;while(!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark){if(h("maybeReadMore read 0"),e.read(0),r===t.length)break;r=t.length}t.readingMore=!1}function O(e){h("readable nexttick read 0"),e.read(0)}function I(e,t){t.reading||(h("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),T(e),t.flowing&&!t.reading&&e.read(0)}function T(e){var t=e._readableState;h("flow",t.flowing);while(t.flowing&&null!==e.read());}function P(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var n;e<t.head.data.length?(n=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):n=e===t.head.data.length?t.shift():r?function(e,t){var r=t.head,n=1,i=r.data;e-=i.length;while(r=r.next){var o=r.data,a=e>o.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),e-=a,0===e){a===o.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++n}return t.length-=n,i}(e,t):function(e,t){var r=c.allocUnsafe(e),n=t.head,i=1;n.data.copy(r),e-=n.data.length;while(n=n.next){var o=n.data,a=e>o.length?o.length:e;if(o.copy(r,r.length-e,0,a),e-=a,0===e){a===o.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++i}return t.length-=i,r}(e,t);return n}(e,t.buffer,t.decoder),r);var r}function M(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i.nextTick(k,t,e))}function k(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function R(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}m.prototype.read=function(e){h("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return h("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?M(this):S(this),null;if(e=A(e,t),0===e&&t.ended)return 0===t.length&&M(this),null;var n,i=t.needReadable;return h("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&(i=!0,h("length less than watermark",i)),t.ended||t.reading?(i=!1,h("reading or ended",i)):i&&(h("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=A(r,t))),n=e>0?P(e,t):null,null===n?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&M(this)),null!==n&&this.emit("data",n),n},m.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},m.prototype.pipe=function(e,t){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e);break}o.pipesCount+=1,h("pipe count=%d opts=%j",o.pipesCount,t);var u=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr,c=u?l:_;function f(t,r){h("onunpipe"),t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,function(){h("cleanup"),e.removeListener("close",b),e.removeListener("finish",m),e.removeListener("drain",d),e.removeListener("error",v),e.removeListener("unpipe",f),n.removeListener("end",l),n.removeListener("end",_),n.removeListener("data",y),p=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||d()}())}function l(){h("onend"),e.end()}o.endEmitted?i.nextTick(c):n.once("end",c),e.on("unpipe",f);var d=function(e){return function(){var t=e._readableState;h("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,T(e))}}(n);e.on("drain",d);var p=!1;var g=!1;function y(t){h("ondata"),g=!1;var r=e.write(t);!1!==r||g||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==R(o.pipes,e))&&!p&&(h("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,g=!0),n.pause())}function v(t){h("onerror",t),_(),e.removeListener("error",v),0===s(e,"error")&&e.emit("error",t)}function b(){e.removeListener("finish",m),_()}function m(){h("onfinish"),e.removeListener("close",b),_()}function _(){h("unpipe"),n.unpipe(e)}return n.on("data",y),function(e,t,r){if("function"===typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",v),e.once("close",b),e.once("finish",m),e.emit("pipe",n),o.flowing||(h("pipe resume"),n.resume()),e},m.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,r);return this}var a=R(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},m.prototype.on=function(e,t){var r=u.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var n=this._readableState;n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&S(this):i.nextTick(O,this))}return r},m.prototype.addListener=m.prototype.on,m.prototype.resume=function(){var e=this._readableState;return e.flowing||(h("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(I,e,t))}(this,e)),this},m.prototype.pause=function(){return h("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(h("pause"),this._readableState.flowing=!1,this.emit("pause")),this},m.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",(function(){if(h("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){if(h("wrapped data"),r.decoder&&(i=r.decoder.write(i)),(!r.objectMode||null!==i&&void 0!==i)&&(r.objectMode||i&&i.length)){var o=t.push(i);o||(n=!0,e.pause())}})),e)void 0===this[i]&&"function"===typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<v.length;o++)e.on(v[o],this.emit.bind(this,v[o]));return this._read=function(t){h("wrapped _read",t),n&&(n=!1,e.resume())},this},Object.defineProperty(m.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),m._fromList=P}).call(this,e("_process"),"undefined"!==typeof n?n:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{"./_stream_duplex":98,"./internal/streams/BufferList":103,"./internal/streams/destroy":104,"./internal/streams/stream":105,_process:92,"core-util-is":14,events:13,inherits:80,isarray:106,"process-nextick-args":91,"safe-buffer":110,"string_decoder/":107,util:11}],101:[function(e,t,r){"use strict";t.exports=a;var n=e("./_stream_duplex"),i=e("core-util-is");function o(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function a(e){if(!(this instanceof a))return new a(e);n.call(this,e),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"===typeof e.transform&&(this._transform=e.transform),"function"===typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",s)}function s(){var e=this;"function"===typeof this._flush?this._flush((function(t,r){u(e,t,r)})):u(this,null,null)}function u(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}i.inherits=e("inherits"),i.inherits(a,n),a.prototype.push=function(e,t){return this._transformState.needTransform=!1,n.prototype.push.call(this,e,t)},a.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")},a.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},a.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},a.prototype._destroy=function(e,t){var r=this;n.prototype._destroy.call(this,e,(function(e){t(e),r.emit("close")}))}},{"./_stream_duplex":98,"core-util-is":14,inherits:80}],102:[function(e,t,r){(function(r,n,i){"use strict";var o=e("process-nextick-args");function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){(function(e,t,r){var n=e.entry;e.entry=null;while(n){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e})(t,e)}}t.exports=b;var s,u=!r.browser&&["v0.10","v0.9."].indexOf(r.version.slice(0,5))>-1?i:o.nextTick;b.WritableState=v;var c=e("core-util-is");c.inherits=e("inherits");var f={deprecate:e("util-deprecate")},l=e("./internal/streams/stream"),d=e("safe-buffer").Buffer,h=n.Uint8Array||function(){};var p,g=e("./internal/streams/destroy");function y(){}function v(t,r){s=s||e("./_stream_duplex"),t=t||{};var n=r instanceof s;this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var i=t.highWaterMark,c=t.writableHighWaterMark,f=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(c||0===c)?c:f,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var l=!1===t.decodeStrings;this.decodeStrings=!l,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){(function(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)(function(e,t,r,n,i){--t.pendingcb,r?(o.nextTick(i,n),o.nextTick(x,e,t),e._writableState.errorEmitted=!0,e.emit("error",n)):(i(n),e._writableState.errorEmitted=!0,e.emit("error",n),x(e,t))})(e,r,n,t,i);else{var a=A(r);a||r.corked||r.bufferProcessing||!r.bufferedRequest||w(e,r),n?u(_,e,r,a,i):_(e,r,a,i)}})(r,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function b(t){if(s=s||e("./_stream_duplex"),!p.call(b,this)&&!(this instanceof s))return new b(t);this._writableState=new v(t,this),this.writable=!0,t&&("function"===typeof t.write&&(this._write=t.write),"function"===typeof t.writev&&(this._writev=t.writev),"function"===typeof t.destroy&&(this._destroy=t.destroy),"function"===typeof t.final&&(this._final=t.final)),l.call(this)}function m(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function _(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),x(e,t)}function w(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),o=t.corkedRequestsFree;o.entry=r;var s=0,u=!0;while(r)i[s]=r,r.isBuf||(u=!1),r=r.next,s+=1;i.allBuffers=u,m(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{while(r){var c=r.chunk,f=r.encoding,l=r.callback,d=t.objectMode?1:c.length;if(m(e,t,!1,d,c,f,l),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function A(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function S(e,t){e._final((function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),x(e,t)}))}function x(e,t){var r=A(t);return r&&(function(e,t){t.prefinished||t.finalCalled||("function"===typeof e._final?(t.pendingcb++,t.finalCalled=!0,o.nextTick(S,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}c.inherits(b,l),v.prototype.getBuffer=function(){var e=this.bufferedRequest,t=[];while(e)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(v.prototype,"buffer",{get:f.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"===typeof Symbol&&Symbol.hasInstance&&"function"===typeof Function.prototype[Symbol.hasInstance]?(p=Function.prototype[Symbol.hasInstance],Object.defineProperty(b,Symbol.hasInstance,{value:function(e){return!!p.call(this,e)||this===b&&(e&&e._writableState instanceof v)}})):p=function(e){return e instanceof this},b.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},b.prototype.write=function(e,t,r){var n=this._writableState,i=!1,a=!n.objectMode&&function(e){return d.isBuffer(e)||e instanceof h}(e);return a&&!d.isBuffer(e)&&(e=function(e){return d.from(e)}(e)),"function"===typeof t&&(r=t,t=null),a?t="buffer":t||(t=n.defaultEncoding),"function"!==typeof r&&(r=y),n.ended?function(e,t){var r=new Error("write after end");e.emit("error",r),o.nextTick(t,r)}(this,r):(a||function(e,t,r,n){var i=!0,a=!1;return null===r?a=new TypeError("May not write null values to stream"):"string"===typeof r||void 0===r||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),o.nextTick(n,a),i=!1),i}(this,n,e,r))&&(n.pendingcb++,i=function(e,t,r,n,i,o){if(!r){var a=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!==typeof t||(t=d.from(t,r));return t}(t,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var u=t.length<t.highWaterMark;u||(t.needDrain=!0);if(t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else m(e,t,!1,s,n,i,o);return u}(this,n,a,e,t,r)),i},b.prototype.cork=function(){var e=this._writableState;e.corked++},b.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||w(this,e))},b.prototype.setDefaultEncoding=function(e){if("string"===typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(b.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),b.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},b.prototype._writev=null,b.prototype.end=function(e,t,r){var n=this._writableState;"function"===typeof e?(r=e,e=null,t=null):"function"===typeof t&&(r=t,t=null),null!==e&&void 0!==e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||function(e,t,r){t.ending=!0,x(e,t),r&&(t.finished?o.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,n,r)},Object.defineProperty(b.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),b.prototype.destroy=g.destroy,b.prototype._undestroy=g.undestroy,b.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,e("_process"),"undefined"!==typeof n?n:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{},e("timers").setImmediate)},{"./_stream_duplex":98,"./internal/streams/destroy":104,"./internal/streams/stream":105,_process:92,"core-util-is":14,inherits:80,"process-nextick-args":91,"safe-buffer":110,timers:112,"util-deprecate":115}],103:[function(e,t,r){"use strict";var n=e("safe-buffer").Buffer,i=e("util");function o(e,t,r){e.copy(t,r)}t.exports=function(){function e(){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";var t=this.head,r=""+t.data;while(t=t.next)r+=e+t.data;return r},e.prototype.concat=function(e){if(0===this.length)return n.alloc(0);if(1===this.length)return this.head.data;var t=n.allocUnsafe(e>>>0),r=this.head,i=0;while(r)o(r.data,t,i),i+=r.data.length,r=r.next;return t},e}(),i&&i.inspect&&i.inspect.custom&&(t.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})},{"safe-buffer":110,util:11}],104:[function(e,t,r){"use strict";var n=e("process-nextick-args");function i(e,t){e.emit("error",t)}t.exports={destroy:function(e,t){var r=this,o=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return o||a?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||n.nextTick(i,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?(n.nextTick(i,r,e),r._writableState&&(r._writableState.errorEmitted=!0)):t&&t(e)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},{"process-nextick-args":91}],105:[function(e,t,r){t.exports=e("events").EventEmitter},{events:13}],106:[function(e,t,r){var n={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},{}],107:[function(e,t,r){"use strict";var n=e("safe-buffer").Buffer,i=n.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";var t;while(1)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!==typeof t&&(n.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=u,this.end=c,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=f,this.end=l,t=3;break;default:return this.write=d,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function a(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if(128!==(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!==(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!==(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function u(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function f(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function l(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}r.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(t=this.fillLast(e),void 0===t)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},o.prototype.text=function(e,t){var r=function(e,t,r){var n=t.length-1;if(n<r)return 0;var i=a(t[n]);if(i>=0)return i>0&&(e.lastNeed=i-1),i;if(--n<r||-2===i)return 0;if(i=a(t[n]),i>=0)return i>0&&(e.lastNeed=i-2),i;if(--n<r||-2===i)return 0;if(i=a(t[n]),i>=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},{"safe-buffer":110}],108:[function(e,t,r){r=t.exports=e("./lib/_stream_readable.js"),r.Stream=r,r.Readable=r,r.Writable=e("./lib/_stream_writable.js"),r.Duplex=e("./lib/_stream_duplex.js"),r.Transform=e("./lib/_stream_transform.js"),r.PassThrough=e("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":98,"./lib/_stream_passthrough.js":99,"./lib/_stream_readable.js":100,"./lib/_stream_transform.js":101,"./lib/_stream_writable.js":102}],109:[function(e,t,r){"use strict";function n(e,t,r){var n=this;this._callback=e,this._args=r,this._interval=setInterval(e,t,this._args),this.reschedule=function(e){e||(e=n._interval),n._interval&&clearInterval(n._interval),n._interval=setInterval(n._callback,e,n._args)},this.clear=function(){n._interval&&(clearInterval(n._interval),n._interval=void 0)},this.destroy=function(){n._interval&&clearInterval(n._interval),n._callback=void 0,n._interval=void 0,n._args=void 0}}t.exports=function(){if("function"!==typeof arguments[0])throw new Error("callback needed");if("number"!==typeof arguments[1])throw new Error("interval needed");var e;if(arguments.length>0){e=new Array(arguments.length-2);for(var t=0;t<e.length;t++)e[t]=arguments[t+2]}return new n(arguments[0],arguments[1],e)}},{}],110:[function(e,t,r){var n=e("buffer"),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(o(n,r),r.Buffer=a),o(i,a),a.from=function(e,t,r){if("number"===typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!==typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"===typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},{buffer:12}],111:[function(e,t,r){t.exports=function(e){var t=e._readableState;return t?t.objectMode?e.read():e.read(function(e){if(e.buffer.length)return e.buffer.head?e.buffer.head.data.length:e.buffer[0].length;return e.length}(t)):null}},{}],112:[function(e,t,r){(function(t,n){var i=e("process/browser.js").nextTick,o=Function.prototype.apply,a=Array.prototype.slice,s={},u=0;function c(e,t){this._id=e,this._clearFn=t}r.setTimeout=function(){return new c(o.call(setTimeout,window,arguments),clearTimeout)},r.setInterval=function(){return new c(o.call(setInterval,window,arguments),clearInterval)},r.clearTimeout=r.clearInterval=function(e){e.close()},c.prototype.unref=c.prototype.ref=function(){},c.prototype.close=function(){this._clearFn.call(window,this._id)},r.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},r.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},r._unrefActive=r.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},r.setImmediate="function"===typeof t?t:function(e){var t=u++,n=!(arguments.length<2)&&a.call(arguments,1);return s[t]=!0,i((function(){s[t]&&(n?e.apply(null,n):e.call(null),r.clearImmediate(t))})),t},r.clearImmediate="function"===typeof n?n:function(e){delete s[e]}}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":92,timers:112}],113:[function(e,t,r){"use strict";var n=e("punycode"),i=e("./util");function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}r.parse=_,r.resolve=function(e,t){return _(e,!1,!0).resolve(t)},r.resolveObject=function(e,t){return e?_(e,!1,!0).resolveObject(t):t},r.format=function(e){i.isString(e)&&(e=_(e));return e instanceof o?e.format():o.prototype.format.call(e)},r.Url=o;var a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,c=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,f=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),l=["'"].concat(f),d=["%","/","?",";","#"].concat(l),h=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,g=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,y={javascript:!0,"javascript:":!0},v={javascript:!0,"javascript:":!0},b={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},m=e("querystring");function _(e,t,r){if(e&&i.isObject(e)&&e instanceof o)return e;var n=new o;return n.parse(e,t,r),n}o.prototype.parse=function(e,t,r){if(!i.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+u(e));var o=e.indexOf("?"),s=-1!==o&&o<e.indexOf("#")?"?":"#",f=e.split(s);f[0]=f[0].replace(/\\/g,"/"),e=f.join(s);var _=e;if(_=_.trim(),!r&&1===e.split("#").length){var w=c.exec(_);if(w)return this.path=_,this.href=_,this.pathname=w[1],w[2]?(this.search=w[2],this.query=t?m.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var A=a.exec(_);if(A){A=A[0];var S=A.toLowerCase();this.protocol=S,_=_.substr(A.length)}if(r||A||_.match(/^\/\/[^@\/]+@[^@\/]+/)){var x="//"===_.substr(0,2);!x||A&&v[A]||(_=_.substr(2),this.slashes=!0)}if(!v[A]&&(x||A&&!b[A])){for(var E,C,O=-1,I=0;I<h.length;I++){var T=_.indexOf(h[I]);-1!==T&&(-1===O||T<O)&&(O=T)}C=-1===O?_.lastIndexOf("@"):_.lastIndexOf("@",O),-1!==C&&(E=_.slice(0,C),_=_.slice(C+1),this.auth=decodeURIComponent(E)),O=-1;for(I=0;I<d.length;I++){T=_.indexOf(d[I]);-1!==T&&(-1===O||T<O)&&(O=T)}-1===O&&(O=_.length),this.host=_.slice(0,O),_=_.slice(O),this.parseHost(),this.hostname=this.hostname||"";var P="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!P)for(var M=this.hostname.split(/\./),k=(I=0,M.length);I<k;I++){var R=M[I];if(R&&!R.match(p)){for(var D="",N=0,B=R.length;N<B;N++)R.charCodeAt(N)>127?D+="x":D+=R[N];if(!D.match(p)){var L=M.slice(0,I),j=M.slice(I+1),F=R.match(g);F&&(L.push(F[1]),j.unshift(F[2])),j.length&&(_="/"+j.join(".")+_),this.hostname=L.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),P||(this.hostname=n.toASCII(this.hostname));var U=this.port?":"+this.port:"",z=this.hostname||"";this.host=z+U,this.href+=this.host,P&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==_[0]&&(_="/"+_))}if(!y[S])for(I=0,k=l.length;I<k;I++){var H=l[I];if(-1!==_.indexOf(H)){var q=encodeURIComponent(H);q===H&&(q=escape(H)),_=_.split(H).join(q)}}var V=_.indexOf("#");-1!==V&&(this.hash=_.substr(V),_=_.slice(0,V));var W=_.indexOf("?");if(-1!==W?(this.search=_.substr(W),this.query=_.substr(W+1),t&&(this.query=m.parse(this.query)),_=_.slice(0,W)):t&&(this.search="",this.query={}),_&&(this.pathname=_),b[S]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){U=this.pathname||"";var G=this.search||"";this.path=U+G}return this.href=this.format(),this},o.prototype.format=function(){var e=this.auth||"";e&&(e=encodeURIComponent(e),e=e.replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",n=this.hash||"",o=!1,a="";this.host?o=e+this.host:this.hostname&&(o=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&i.isObject(this.query)&&Object.keys(this.query).length&&(a=m.stringify(this.query));var s=this.search||a&&"?"+a||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||b[t])&&!1!==o?(o="//"+(o||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):o||(o=""),n&&"#"!==n.charAt(0)&&(n="#"+n),s&&"?"!==s.charAt(0)&&(s="?"+s),r=r.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})),s=s.replace("#","%23"),t+o+r+s+n},o.prototype.resolve=function(e){return this.resolveObject(_(e,!1,!0)).format()},o.prototype.resolveObject=function(e){if(i.isString(e)){var t=new o;t.parse(e,!1,!0),e=t}for(var r=new o,n=Object.keys(this),a=0;a<n.length;a++){var s=n[a];r[s]=this[s]}if(r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var u=Object.keys(e),c=0;c<u.length;c++){var f=u[c];"protocol"!==f&&(r[f]=e[f])}return b[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!b[e.protocol]){for(var l=Object.keys(e),d=0;d<l.length;d++){var h=l[d];r[h]=e[h]}return r.href=r.format(),r}if(r.protocol=e.protocol,e.host||v[e.protocol])r.pathname=e.pathname;else{var p=(e.pathname||"").split("/");while(p.length&&!(e.host=p.shift()));e.host||(e.host=""),e.hostname||(e.hostname=""),""!==p[0]&&p.unshift(""),p.length<2&&p.unshift(""),r.pathname=p.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var g=r.pathname||"",y=r.search||"";r.path=g+y}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var m=r.pathname&&"/"===r.pathname.charAt(0),_=e.host||e.pathname&&"/"===e.pathname.charAt(0),w=_||m||r.host&&e.pathname,A=w,S=r.pathname&&r.pathname.split("/")||[],x=(p=e.pathname&&e.pathname.split("/")||[],r.protocol&&!b[r.protocol]);if(x&&(r.hostname="",r.port=null,r.host&&(""===S[0]?S[0]=r.host:S.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===p[0]?p[0]=e.host:p.unshift(e.host)),e.host=null),w=w&&(""===p[0]||""===S[0])),_)r.host=e.host||""===e.host?e.host:r.host,r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,S=p;else if(p.length)S||(S=[]),S.pop(),S=S.concat(p),r.search=e.search,r.query=e.query;else if(!i.isNullOrUndefined(e.search)){if(x){r.hostname=r.host=S.shift();var E=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@");E&&(r.auth=E.shift(),r.host=r.hostname=E.shift())}return r.search=e.search,r.query=e.query,i.isNull(r.pathname)&&i.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!S.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var C=S.slice(-1)[0],O=(r.host||e.host||S.length>1)&&("."===C||".."===C)||""===C,I=0,T=S.length;T>=0;T--)C=S[T],"."===C?S.splice(T,1):".."===C?(S.splice(T,1),I++):I&&(S.splice(T,1),I--);if(!w&&!A)for(;I--;I)S.unshift("..");!w||""===S[0]||S[0]&&"/"===S[0].charAt(0)||S.unshift(""),O&&"/"!==S.join("/").substr(-1)&&S.push("");var P=""===S[0]||S[0]&&"/"===S[0].charAt(0);if(x){r.hostname=r.host=P?"":S.length?S.shift():"";E=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@");E&&(r.auth=E.shift(),r.host=r.hostname=E.shift())}return w=w||r.host&&S.length,w&&!P&&S.unshift(""),S.length?r.pathname=S.join("/"):(r.pathname=null,r.path=null),i.isNull(r.pathname)&&i.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},o.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},{"./util":114,punycode:93,querystring:96}],114:[function(e,t,r){"use strict";t.exports={isString:function(e){return"string"===typeof e},isObject:function(e){return"object"===u(e)&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},{}],115:[function(e,t,r){(function(e){function r(t){try{if(!e.localStorage)return!1}catch(n){return!1}var r=e.localStorage[t];return null!=r&&"true"===String(r).toLowerCase()}t.exports=function(e,t){if(r("noDeprecation"))return e;var n=!1;return function(){if(!n){if(r("throwDeprecation"))throw new Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}}}).call(this,"undefined"!==typeof n?n:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{}],116:[function(e,t,r){t.exports=function(e){return e&&"object"===u(e)&&"function"===typeof e.copy&&"function"===typeof e.fill&&"function"===typeof e.readUInt8}},{}],117:[function(e,t,r){(function(t,n){var i=/%[sdj%]/g;r.format=function(e){if(!b(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(s(arguments[r]));return t.join(" ")}r=1;for(var n=arguments,o=n.length,a=String(e).replace(i,(function(e){if("%%"===e)return"%";if(r>=o)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}default:return e}})),u=n[r];r<o;u=n[++r])y(u)||!w(u)?a+=" "+u:a+=" "+s(u);return a},r.deprecate=function(e,i){if(m(n.process))return function(){return r.deprecate(e,i).apply(this,arguments)};if(!0===t.noDeprecation)return e;var o=!1;return function(){if(!o){if(t.throwDeprecation)throw new Error(i);t.traceDeprecation?console.trace(i):console.error(i),o=!0}return e.apply(this,arguments)}};var o,a={};function s(e,t){var n={seen:[],stylize:f};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),g(t)?n.showHidden=t:t&&r._extend(n,t),m(n.showHidden)&&(n.showHidden=!1),m(n.depth)&&(n.depth=2),m(n.colors)&&(n.colors=!1),m(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=c),l(n,e,n.depth)}function c(e,t){var r=s.styles[t];return r?"["+s.colors[r][0]+"m"+e+"["+s.colors[r][1]+"m":e}function f(e,t){return e}function l(e,t,n){if(e.customInspect&&t&&x(t.inspect)&&t.inspect!==r.inspect&&(!t.constructor||t.constructor.prototype!==t)){var i=t.inspect(n,e);return b(i)||(i=l(e,i,n)),i}var o=function(e,t){if(m(t))return e.stylize("undefined","undefined");if(b(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(v(t))return e.stylize(""+t,"number");if(g(t))return e.stylize(""+t,"boolean");if(y(t))return e.stylize("null","null")}(e,t);if(o)return o;var a=Object.keys(t),s=function(e){var t={};return e.forEach((function(e,r){t[e]=!0})),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),S(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return d(t);if(0===a.length){if(x(t)){var u=t.name?": "+t.name:"";return e.stylize("[Function"+u+"]","special")}if(_(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(A(t))return e.stylize(Date.prototype.toString.call(t),"date");if(S(t))return d(t)}var c,f="",w=!1,E=["{","}"];if(p(t)&&(w=!0,E=["[","]"]),x(t)){var C=t.name?": "+t.name:"";f=" [Function"+C+"]"}return _(t)&&(f=" "+RegExp.prototype.toString.call(t)),A(t)&&(f=" "+Date.prototype.toUTCString.call(t)),S(t)&&(f=" "+d(t)),0!==a.length||w&&0!=t.length?n<0?_(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),c=w?function(e,t,r,n,i){for(var o=[],a=0,s=t.length;a<s;++a)T(t,String(a))?o.push(h(e,t,r,n,String(a),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(h(e,t,r,n,i,!0))})),o}(e,t,n,s,a):a.map((function(r){return h(e,t,n,s,r,w)})),e.seen.pop(),function(e,t,r){var n=e.reduce((function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0);if(n>60)return r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1];return r[0]+t+" "+e.join(", ")+" "+r[1]}(c,f,E)):E[0]+f+E[1]}function d(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e,t,r,n,i,o){var a,s,u;if(u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]},u.get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),T(n,i)||(a="["+i+"]"),s||(e.seen.indexOf(u.value)<0?(s=y(r)?l(e,u.value,null):l(e,u.value,r-1),s.indexOf("\n")>-1&&(s=o?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n"))):s=e.stylize("[Circular]","special")),m(a)){if(o&&i.match(/^\d+$/))return s;a=JSON.stringify(""+i),a.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function p(e){return Array.isArray(e)}function g(e){return"boolean"===typeof e}function y(e){return null===e}function v(e){return"number"===typeof e}function b(e){return"string"===typeof e}function m(e){return void 0===e}function _(e){return w(e)&&"[object RegExp]"===E(e)}function w(e){return"object"===u(e)&&null!==e}function A(e){return w(e)&&"[object Date]"===E(e)}function S(e){return w(e)&&("[object Error]"===E(e)||e instanceof Error)}function x(e){return"function"===typeof e}function E(e){return Object.prototype.toString.call(e)}function C(e){return e<10?"0"+e.toString(10):e.toString(10)}r.debuglog=function(e){if(m(o)&&(o=t.env.NODE_DEBUG||""),e=e.toUpperCase(),!a[e])if(new RegExp("\\b"+e+"\\b","i").test(o)){var n=t.pid;a[e]=function(){var t=r.format.apply(r,arguments);console.error("%s %d: %s",e,n,t)}}else a[e]=function(){};return a[e]},r.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},r.isArray=p,r.isBoolean=g,r.isNull=y,r.isNullOrUndefined=function(e){return null==e},r.isNumber=v,r.isString=b,r.isSymbol=function(e){return"symbol"===u(e)},r.isUndefined=m,r.isRegExp=_,r.isObject=w,r.isDate=A,r.isError=S,r.isFunction=x,r.isPrimitive=function(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===u(e)||"undefined"===typeof e},r.isBuffer=e("./support/isBuffer");var O=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function I(){var e=new Date,t=[C(e.getHours()),C(e.getMinutes()),C(e.getSeconds())].join(":");return[e.getDate(),O[e.getMonth()],t].join(" ")}function T(e,t){return Object.prototype.hasOwnProperty.call(e,t)}r.log=function(){console.log("%s - %s",I(),r.format.apply(r,arguments))},r.inherits=e("inherits"),r._extend=function(e,t){if(!t||!w(t))return e;var r=Object.keys(t),n=r.length;while(n--)e[r[n]]=t[r[n]];return e}}).call(this,e("_process"),"undefined"!==typeof n?n:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{"./support/isBuffer":116,_process:92,inherits:80}],118:[function(e,t,r){(function(r,n){"use strict";var i=e("readable-stream").Transform,o=e("duplexify"),a=e("ws"),s=e("safe-buffer").Buffer;t.exports=function(e,t,c){var f,l,d="browser"===r.title,h=!!n.WebSocket,p=d?function e(t,r,n){if(l.bufferedAmount>y)return void setTimeout(e,v,t,r,n);b&&"string"===typeof t&&(t=s.from(t,"utf8"));try{l.send(t)}catch(i){return n(i)}n()}:function(e,t,r){if(l.readyState!==l.OPEN)return void r();b&&"string"===typeof e&&(e=s.from(e,"utf8"));l.send(e,r)};t&&!Array.isArray(t)&&"object"===u(t)&&(c=t,t=null,("string"===typeof c.protocol||Array.isArray(c.protocol))&&(t=c.protocol));c||(c={});void 0===c.objectMode&&(c.objectMode=!(!0===c.binary||void 0===c.binary));var g=function(e,t,r){var n=new i({objectMode:e.objectMode});return n._write=t,n._flush=r,n}(c,p,(function(e){l.close(),e()}));c.objectMode||(g._writev=function(e,t){for(var r=new Array(e.length),n=0;n<e.length;n++)"string"===typeof e[n].chunk?r[n]=s.from(e[n],"utf8"):r[n]=e[n].chunk;this._write(s.concat(r),"binary",t)});var y=c.browserBufferSize||524288,v=c.browserBufferTimeout||1e3;"object"===u(e)?l=e:(l=h&&d?new a(e,t):new a(e,t,c),l.binaryType="arraybuffer");l.readyState===l.OPEN?f=g:(f=o.obj(),l.onopen=function(){f.setReadable(g),f.setWritable(g),f.emit("connect")});f.socket=l,l.onclose=function(){f.end(),f.destroy()},l.onerror=function(e){f.destroy(e)},l.onmessage=function(e){var t=e.data;t=t instanceof ArrayBuffer?s.from(t):s.from(t,"utf8");g.push(t)},g.on("close",(function(){l.close()}));var b=!c.objectMode;return f}}).call(this,e("_process"),"undefined"!==typeof n?n:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{_process:92,duplexify:17,"readable-stream":108,"safe-buffer":110,ws:119}],119:[function(e,t,r){var n=null;"undefined"!==typeof WebSocket?n=WebSocket:"undefined"!==typeof MozWebSocket?n=MozWebSocket:"undefined"!==typeof window&&(n=window.WebSocket||window.MozWebSocket),t.exports=n},{}],120:[function(e,t,r){t.exports=function e(t,r){if(t&&r)return e(t)(r);if("function"!==typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach((function(e){n[e]=t[e]})),n;function n(){for(var e=new Array(arguments.length),r=0;r<e.length;r++)e[r]=arguments[r];var n=t.apply(this,e),i=e[e.length-1];return"function"===typeof n&&n!==i&&Object.keys(i).forEach((function(e){n[e]=i[e]})),n}}},{}],121:[function(e,t,r){t.exports=function(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var i in r)n.call(r,i)&&(e[i]=r[i])}return e};var n=Object.prototype.hasOwnProperty},{}]},{},[9])(9)}))}).call(this,r("0ee4"),r("3223")["default"])},"0ae6":function(e,t,r){var n=r("055b"),i=r("5f79").Buffer;function o(e){var t=i.allocUnsafe(4);return t.writeUInt32BE(e,0),t}e.exports=function(e,t){var r,a=i.alloc(0),s=0;while(a.length<t)r=o(s++),a=i.concat([a,n("sha1").update(e).update(r).digest()]);return a.slice(0,t)}},"0b34":function(e,t,r){var n=r("5f79").Buffer;function i(e,t){this._block=n.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}i.prototype.update=function(e,t){"string"===typeof e&&(t=t||"utf8",e=n.from(e,t));for(var r=this._block,i=this._blockSize,o=e.length,a=this._len,s=0;s<o;){for(var u=a%i,c=Math.min(o-s,i-u),f=0;f<c;f++)r[u+f]=e[s+f];a+=c,s+=c,a%i===0&&this._update(r)}return this._len+=o,this},i.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(4294967295&r)>>>0,i=(r-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var o=this._hash();return e?o.toString(e):o},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=i},"0b4d":function(e,t,r){var n=r("2c2e"),i=r("0b34"),o=r("5f79").Buffer,a=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],s=new Array(160);function u(){this.init(),this._w=s,i.call(this,128,112)}function c(e,t,r){return r^e&(t^r)}function f(e,t,r){return e&t|r&(e|t)}function l(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function d(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function h(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function g(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function y(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function v(e,t){return e>>>0<t>>>0?1:0}n(u,i),u.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},u.prototype._update=function(e){for(var t=this._w,r=0|this._ah,n=0|this._bh,i=0|this._ch,o=0|this._dh,s=0|this._eh,u=0|this._fh,b=0|this._gh,m=0|this._hh,_=0|this._al,w=0|this._bl,A=0|this._cl,S=0|this._dl,x=0|this._el,E=0|this._fl,C=0|this._gl,O=0|this._hl,I=0;I<32;I+=2)t[I]=e.readInt32BE(4*I),t[I+1]=e.readInt32BE(4*I+4);for(;I<160;I+=2){var T=t[I-30],P=t[I-30+1],M=h(T,P),k=p(P,T);T=t[I-4],P=t[I-4+1];var R=g(T,P),D=y(P,T),N=t[I-14],B=t[I-14+1],L=t[I-32],j=t[I-32+1],F=k+B|0,U=M+N+v(F,k)|0;F=F+D|0,U=U+R+v(F,D)|0,F=F+j|0,U=U+L+v(F,j)|0,t[I]=U,t[I+1]=F}for(var z=0;z<160;z+=2){U=t[z],F=t[z+1];var H=f(r,n,i),q=f(_,w,A),V=l(r,_),W=l(_,r),G=d(s,x),X=d(x,s),K=a[z],$=a[z+1],Y=c(s,u,b),Z=c(x,E,C),J=O+X|0,Q=m+G+v(J,O)|0;J=J+Z|0,Q=Q+Y+v(J,Z)|0,J=J+$|0,Q=Q+K+v(J,$)|0,J=J+F|0,Q=Q+U+v(J,F)|0;var ee=W+q|0,te=V+H+v(ee,W)|0;m=b,O=C,b=u,C=E,u=s,E=x,x=S+J|0,s=o+Q+v(x,S)|0,o=i,S=A,i=n,A=w,n=r,w=_,_=J+ee|0,r=Q+te+v(_,J)|0}this._al=this._al+_|0,this._bl=this._bl+w|0,this._cl=this._cl+A|0,this._dl=this._dl+S|0,this._el=this._el+x|0,this._fl=this._fl+E|0,this._gl=this._gl+C|0,this._hl=this._hl+O|0,this._ah=this._ah+r+v(this._al,_)|0,this._bh=this._bh+n+v(this._bl,w)|0,this._ch=this._ch+i+v(this._cl,A)|0,this._dh=this._dh+o+v(this._dl,S)|0,this._eh=this._eh+s+v(this._el,x)|0,this._fh=this._fh+u+v(this._fl,E)|0,this._gh=this._gh+b+v(this._gl,C)|0,this._hh=this._hh+m+v(this._hl,O)|0},u.prototype._hash=function(){var e=o.allocUnsafe(64);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=u},"0b50":function(e,t,r){"use strict";function n(e){const t={};return Object.keys(e).forEach((function(r){(0|r)==r&&(r|=0);const n=e[r];t[n]=r})),t}t.tagClass={0:"universal",1:"application",2:"context",3:"private"},t.tagClassByName=n(t.tagClass),t.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},t.tagByName=n(t.tag)},"0bca":function(e){e.exports=JSON.parse('{"uni-load-more.contentdown":"上拉顯示更多","uni-load-more.contentrefresh":"正在加載...","uni-load-more.contentnomore":"沒有更多數據了"}')},"0bdb":function(e,t,r){var n=r("d551");function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,n(i.key),i)}}e.exports=function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports["default"]=e.exports},"0c24":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("1ff8")),o=function(){function e(e,t,r,n,o,a){void 0===r&&(r=null==t?0:8*t.length),void 0===a&&(a=i.default.currentTimeMillis()),this.text=e,this.rawBytes=t,this.numBits=r,this.resultPoints=n,this.format=o,this.timestamp=a,this.text=e,this.rawBytes=t,this.numBits=void 0===r||null===r?null===t||void 0===t?0:8*t.length:r,this.resultPoints=n,this.format=o,this.resultMetadata=null,this.timestamp=void 0===a||null===a?i.default.currentTimeMillis():a}return e.prototype.getText=function(){return this.text},e.prototype.getRawBytes=function(){return this.rawBytes},e.prototype.getNumBits=function(){return this.numBits},e.prototype.getResultPoints=function(){return this.resultPoints},e.prototype.getBarcodeFormat=function(){return this.format},e.prototype.getResultMetadata=function(){return this.resultMetadata},e.prototype.putMetadata=function(e,t){null===this.resultMetadata&&(this.resultMetadata=new Map),this.resultMetadata.set(e,t)},e.prototype.putAllMetadata=function(e){null!==e&&(null===this.resultMetadata?this.resultMetadata=e:this.resultMetadata=new Map(e))},e.prototype.addResultPoints=function(e){var t=this.resultPoints;if(null===t)this.resultPoints=e;else if(null!==e&&e.length>0){var r=new Array(t.length+e.length);i.default.arraycopy(t,0,r,0,t.length),i.default.arraycopy(e,0,r,t.length,e.length),this.resultPoints=r}},e.prototype.getTimestamp=function(){return this.timestamp},e.prototype.toString=function(){return this.text},e}(),a=o;t.default=a},"0d60":function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.controlsRestrictVerify=function(t){if(t){var r=e.getStorageSync("controlsRestrict");return-1!=r.indexOf(t)}return!1},t.itoOrVideoLimits=function(t){var r=e.getStorageSync("user"),i=n.config.schoolId,o=n.config.collegeId;return null==r.position||(r.position==i||r.position==o||r.userId==t)},t.pageRestrictVerify=function(t){if(t){var r=e.getStorageSync("permissions")+"";return-1!=r.indexOf(t)}return!1};var n=r("f414")}).call(this,r("df3c")["default"])},"0dec":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.BrowserBarcodeReader=void 0;var i=r("a5d4"),o=n(r("51ff")),a=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),s=function(e){function t(t,r){return void 0===t&&(t=500),e.call(this,new o.default(r),t,r)||this}return a(t,e),t}(i.BrowserCodeReader);t.BrowserBarcodeReader=s},"0e18":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(){function e(e,t,r,n){this.leftchar=e,this.rightchar=t,this.finderpattern=r,this.maybeLast=n}return e.prototype.mayBeLast=function(){return this.maybeLast},e.prototype.getLeftChar=function(){return this.leftchar},e.prototype.getRightChar=function(){return this.rightchar},e.prototype.getFinderPattern=function(){return this.finderpattern},e.prototype.mustBeLast=function(){return null==this.rightchar},e.prototype.toString=function(){return"[ "+this.leftchar+", "+this.rightchar+" : "+(null==this.finderpattern?"null":this.finderpattern.getValue())+" ]"},e.equals=function(t,r){return t instanceof e&&(e.equalsOrNull(t.leftchar,r.leftchar)&&e.equalsOrNull(t.rightchar,r.rightchar)&&e.equalsOrNull(t.finderpattern,r.finderpattern))},e.equalsOrNull=function(t,r){return null===t?null===r:e.equals(t,r)},e.prototype.hashCode=function(){var e=this.leftchar.getValue()^this.rightchar.getValue()^this.finderpattern.getValue();return e},e}(),i=n;t.default=i},"0ec1":function(e,t,r){"use strict";var n=r("ca99"),i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=l;var o=Object.create(r("8ce8"));o.inherits=r("2c2e");var a=r("46dd"),s=r("edd4");o.inherits(l,a);for(var u=i(s.prototype),c=0;c<u.length;c++){var f=u[c];l.prototype[f]||(l.prototype[f]=s.prototype[f])}function l(e){if(!(this instanceof l))return new l(e);a.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",d)}function d(){this.allowHalfOpen||this._writableState.ended||n.nextTick(h,this)}function h(e){e.end()}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),l.prototype._destroy=function(e,t){this.push(null),this.end(),n.nextTick(t,e)}},"0ee4":function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(n){"object"===typeof window&&(r=window)}e.exports=r},"0f55":function(e,t,r){"use strict";e.exports=a;var n=r("0ec1"),i=Object.create(r("8ce8"));function o(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function a(e){if(!(this instanceof a))return new a(e);n.call(this,e),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"===typeof e.transform&&(this._transform=e.transform),"function"===typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",s)}function s(){var e=this;"function"===typeof this._flush?this._flush((function(t,r){u(e,t,r)})):u(this,null,null)}function u(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}i.inherits=r("2c2e"),i.inherits(a,n),a.prototype.push=function(e,t){return this._transformState.needTransform=!1,n.prototype.push.call(this,e,t)},a.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")},a.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},a.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},a.prototype._destroy=function(e,t){var r=this;n.prototype._destroy.call(this,e,(function(e){t(e),r.emit("close")}))}},1:function(e,t){},"107a":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(){function e(e,t,r,n,i,o){void 0===i&&(i=-1),void 0===o&&(o=-1),this.rawBytes=e,this.text=t,this.byteSegments=r,this.ecLevel=n,this.structuredAppendSequenceNumber=i,this.structuredAppendParity=o,this.numBits=void 0===e||null===e?0:8*e.length}return e.prototype.getRawBytes=function(){return this.rawBytes},e.prototype.getNumBits=function(){return this.numBits},e.prototype.setNumBits=function(e){this.numBits=e},e.prototype.getText=function(){return this.text},e.prototype.getByteSegments=function(){return this.byteSegments},e.prototype.getECLevel=function(){return this.ecLevel},e.prototype.getErrorsCorrected=function(){return this.errorsCorrected},e.prototype.setErrorsCorrected=function(e){this.errorsCorrected=e},e.prototype.getErasures=function(){return this.erasures},e.prototype.setErasures=function(e){this.erasures=e},e.prototype.getOther=function(){return this.other},e.prototype.setOther=function(e){this.other=e},e.prototype.hasStructuredAppend=function(){return this.structuredAppendParity>=0&&this.structuredAppendSequenceNumber>=0},e.prototype.getStructuredAppendParity=function(){return this.structuredAppendParity},e.prototype.getStructuredAppendSequenceNumber=function(){return this.structuredAppendSequenceNumber},e}(),i=n;t.default=i},"107e":function(e,t,r){"use strict";var n=r("d652"),i=r("f3fd");function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}n.inherits(o,i),e.exports=o,o.blockSize=1024,o.outSize=384,o.hmacStrength=192,o.padLength=128,o.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,12),"big"):n.split32(this.h.slice(0,12),"big")}},"10ab":function(e,t,r){"use strict";t.byteLength=function(e){var t=c(e),r=t[0],n=t[1];return 3*(r+n)/4-n},t.toByteArray=function(e){var t,r,n=c(e),a=n[0],s=n[1],u=new o(function(e,t,r){return 3*(t+r)/4-r}(0,a,s)),f=0,l=s>0?a-4:a;for(r=0;r<l;r+=4)t=i[e.charCodeAt(r)]<<18|i[e.charCodeAt(r+1)]<<12|i[e.charCodeAt(r+2)]<<6|i[e.charCodeAt(r+3)],u[f++]=t>>16&255,u[f++]=t>>8&255,u[f++]=255&t;2===s&&(t=i[e.charCodeAt(r)]<<2|i[e.charCodeAt(r+1)]>>4,u[f++]=255&t);1===s&&(t=i[e.charCodeAt(r)]<<10|i[e.charCodeAt(r+1)]<<4|i[e.charCodeAt(r+2)]>>2,u[f++]=t>>8&255,u[f++]=255&t);return u},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],a=0,s=r-i;a<s;a+=16383)o.push(l(e,a,a+16383>s?s:a+16383));1===i?(t=e[r-1],o.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return o.join("")};for(var n=[],i=[],o="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=a.length;s<u;++s)n[s]=a[s],i[a.charCodeAt(s)]=s;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function f(e){return n[e>>18&63]+n[e>>12&63]+n[e>>6&63]+n[63&e]}function l(e,t,r){for(var n,i=[],o=t;o<r;o+=3)n=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),i.push(f(n));return i.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},1177:function(e,t,r){var n=r("782c");e.exports=function(e){return(new n).update(e).digest()}},"12e3":function(e,t,r){"use strict";(function(e){
- /*!
- * The buffer module from node.js, for the browser.
- *
- * @author Feross Aboukhadijeh <http://feross.org>
- * @license MIT
- */
- var n=r("10ab"),i=r("ba37"),o=r("b0e4");function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=u.prototype):(null===e&&(e=new u(t)),e.length=t),e}function u(e,t,r){if(!u.TYPED_ARRAY_SUPPORT&&!(this instanceof u))return new u(e,t,r);if("number"===typeof e){if("string"===typeof t)throw new Error("If encoding is specified then the first argument must be a string");return l(this,e)}return c(this,e,t,r)}function c(e,t,r,n){if("number"===typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");t=void 0===r&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,r):new Uint8Array(t,r,n);u.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=u.prototype):e=d(e,t);return e}(e,t,r,n):"string"===typeof t?function(e,t,r){"string"===typeof r&&""!==r||(r="utf8");if(!u.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|p(t,r);e=s(e,n);var i=e.write(t,r);i!==n&&(e=e.slice(0,i));return e}(e,t,r):function(e,t){if(u.isBuffer(t)){var r=0|h(t.length);return e=s(e,r),0===e.length?e:(t.copy(e,0,0,r),e)}if(t){if("undefined"!==typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!==typeof t.length||function(e){return e!==e}(t.length)?s(e,0):d(e,t);if("Buffer"===t.type&&o(t.data))return d(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function f(e){if("number"!==typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function l(e,t){if(f(t),e=s(e,t<0?0:0|h(t)),!u.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function d(e,t){var r=t.length<0?0:0|h(t.length);e=s(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function h(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function p(e,t){if(u.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return U(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return z(e).length;default:if(n)return U(e).length;t=(""+t).toLowerCase(),n=!0}}function g(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,t>>>=0,r<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return T(this,t,r);case"utf8":case"utf-8":return C(this,t,r);case"ascii":return O(this,t,r);case"latin1":case"binary":return I(this,t,r);case"base64":return E(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function y(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function v(e,t,r,n,i){if(0===e.length)return-1;if("string"===typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"===typeof t&&(t=u.from(t,n)),u.isBuffer(t))return 0===t.length?-1:b(e,t,r,n,i);if("number"===typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):b(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function b(e,t,r,n,i){var o,a=1,s=e.length,u=t.length;if(void 0!==n&&(n=String(n).toLowerCase(),"ucs2"===n||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,r/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var f=-1;for(o=r;o<s;o++)if(c(e,o)===c(t,-1===f?0:o-f)){if(-1===f&&(f=o),o-f+1===u)return f*a}else-1!==f&&(o-=o-f),f=-1}else for(r+u>s&&(r=s-u),o=r;o>=0;o--){for(var l=!0,d=0;d<u;d++)if(c(e,o+d)!==c(t,d)){l=!1;break}if(l)return o}return-1}function m(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var o=t.length;if(o%2!==0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var a=0;a<n;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[r+a]=s}return a}function _(e,t,r,n){return H(U(t,e.length-r),e,r,n)}function w(e,t,r,n){return H(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function A(e,t,r,n){return w(e,t,r,n)}function S(e,t,r,n){return H(z(t),e,r,n)}function x(e,t,r,n){return H(function(e,t){for(var r,n,i,o=[],a=0;a<e.length;++a){if((t-=2)<0)break;r=e.charCodeAt(a),n=r>>8,i=r%256,o.push(i),o.push(n)}return o}(t,e.length-r),e,r,n)}function E(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function C(e,t,r){r=Math.min(e.length,r);var n=[],i=t;while(i<r){var o,a,s,u,c=e[i],f=null,l=c>239?4:c>223?3:c>191?2:1;if(i+l<=r)switch(l){case 1:c<128&&(f=c);break;case 2:o=e[i+1],128===(192&o)&&(u=(31&c)<<6|63&o,u>127&&(f=u));break;case 3:o=e[i+1],a=e[i+2],128===(192&o)&&128===(192&a)&&(u=(15&c)<<12|(63&o)<<6|63&a,u>2047&&(u<55296||u>57343)&&(f=u));break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128===(192&o)&&128===(192&a)&&128===(192&s)&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s,u>65535&&u<1114112&&(f=u))}null===f?(f=65533,l=1):f>65535&&(f-=65536,n.push(f>>>10&1023|55296),f=56320|1023&f),n.push(f),i+=l}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var r="",n=0;while(n<t)r+=String.fromCharCode.apply(String,e.slice(n,n+=4096));return r}(n)}t.Buffer=u,t.SlowBuffer=function(e){+e!=e&&(e=0);return u.alloc(+e)},t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"===typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}(),t.kMaxLength=a(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,r){return c(null,e,t,r)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,r){return function(e,t,r,n){return f(t),t<=0?s(e,t):void 0!==r?"string"===typeof n?s(e,t).fill(r,n):s(e,t).fill(r):s(e,t)}(null,e,t,r)},u.allocUnsafe=function(e){return l(null,e)},u.allocUnsafeSlow=function(e){return l(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=u.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var a=e[r];if(!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,i),i+=a.length}return n},u.byteLength=p,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)y(this,t,t+1);return this},u.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)y(this,t,t+3),y(this,t+1,t+2);return this},u.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)y(this,t,t+7),y(this,t+1,t+6),y(this,t+2,t+5),y(this,t+3,t+4);return this},u.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?C(this,0,e):g.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),"<Buffer "+e+">"},u.prototype.compare=function(e,t,r,n,i){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var o=i-n,a=r-t,s=Math.min(o,a),c=this.slice(n,i),f=e.slice(t,r),l=0;l<s;++l)if(c[l]!==f[l]){o=c[l],a=f[l];break}return o<a?-1:a<o?1:0},u.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},u.prototype.indexOf=function(e,t,r){return v(this,e,t,r,!0)},u.prototype.lastIndexOf=function(e,t,r){return v(this,e,t,r,!1)},u.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"===typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return m(this,e,t,r);case"utf8":case"utf-8":return _(this,e,t,r);case"ascii":return w(this,e,t,r);case"latin1":case"binary":return A(this,e,t,r);case"base64":return S(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function O(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function I(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function T(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=t;o<r;++o)i+=F(e[o]);return i}function P(e,t,r){for(var n=e.slice(t,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function M(e,t,r){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function k(e,t,r,n,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function R(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-r,2);i<o;++i)e[r+i]=(t&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function D(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-r,4);i<o;++i)e[r+i]=t>>>8*(n?i:3-i)&255}function N(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function B(e,t,r,n,o){return o||N(e,0,r,4),i.write(e,t,r,n,23,4),r+4}function L(e,t,r,n,o){return o||N(e,0,r,8),i.write(e,t,r,n,52,8),r+8}u.prototype.slice=function(e,t){var r,n=this.length;if(e=~~e,t=void 0===t?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<e&&(t=e),u.TYPED_ARRAY_SUPPORT)r=this.subarray(e,t),r.__proto__=u.prototype;else{var i=t-e;r=new u(i,void 0);for(var o=0;o<i;++o)r[o]=this[o+e]}return r},u.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||M(e,t,this.length);var n=this[e],i=1,o=0;while(++o<t&&(i*=256))n+=this[e+o]*i;return n},u.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||M(e,t,this.length);var n=this[e+--t],i=1;while(t>0&&(i*=256))n+=this[e+--t]*i;return n},u.prototype.readUInt8=function(e,t){return t||M(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||M(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||M(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||M(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||M(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||M(e,t,this.length);var n=this[e],i=1,o=0;while(++o<t&&(i*=256))n+=this[e+o]*i;return i*=128,n>=i&&(n-=Math.pow(2,8*t)),n},u.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||M(e,t,this.length);var n=t,i=1,o=this[e+--n];while(n>0&&(i*=256))o+=this[e+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return t||M(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||M(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(e,t){t||M(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(e,t){return t||M(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||M(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||M(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||M(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||M(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||M(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t|=0,r|=0,!n){var i=Math.pow(2,8*r)-1;k(this,e,t,r,i,0)}var o=1,a=0;this[t]=255&e;while(++a<r&&(o*=256))this[t+a]=e/o&255;return t+r},u.prototype.writeUIntBE=function(e,t,r,n){if(e=+e,t|=0,r|=0,!n){var i=Math.pow(2,8*r)-1;k(this,e,t,r,i,0)}var o=r-1,a=1;this[t+o]=255&e;while(--o>=0&&(a*=256))this[t+o]=e/a&255;return t+r},u.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):D(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);k(this,e,t,r,i-1,-i)}var o=0,a=1,s=0;this[t]=255&e;while(++o<r&&(a*=256))e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},u.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);k(this,e,t,r,i-1,-i)}var o=r-1,a=1,s=0;this[t+o]=255&e;while(--o>=0&&(a*=256))e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},u.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):D(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,r){return B(this,e,t,!0,r)},u.prototype.writeFloatBE=function(e,t,r){return B(this,e,t,!1,r)},u.prototype.writeDoubleLE=function(e,t,r){return L(this,e,t,!0,r)},u.prototype.writeDoubleBE=function(e,t,r){return L(this,e,t,!1,r)},u.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i,o=n-r;if(this===e&&r<t&&t<n)for(i=o-1;i>=0;--i)e[i+t]=this[i+r];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+o),t);return o},u.prototype.fill=function(e,t,r,n){if("string"===typeof e){if("string"===typeof t?(n=t,t=0,r=this.length):"string"===typeof r&&(n=r,r=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==n&&"string"!==typeof n)throw new TypeError("encoding must be a string");if("string"===typeof n&&!u.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"===typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var o;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"===typeof e)for(o=t;o<r;++o)this[o]=e;else{var a=u.isBuffer(e)?e:U(new u(e,n).toString()),s=a.length;for(o=0;o<r-t;++o)this[o+t]=a[o%s]}return this};var j=/[^+\/0-9A-Za-z-_]/g;function F(e){return e<16?"0"+e.toString(16):e.toString(16)}function U(e,t){var r;t=t||1/0;for(var n=e.length,i=null,o=[],a=0;a<n;++a){if(r=e.charCodeAt(a),r>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function z(e){return n.toByteArray(function(e){if(e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(j,""),e.length<2)return"";while(e.length%4!==0)e+="=";return e}(e))}function H(e,t,r,n){for(var i=0;i<n;++i){if(i+r>=t.length||i>=e.length)break;t[i+r]=e[i]}return i}}).call(this,r("0ee4"))},"13be":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("a6ba")),o=n(r("3727")),a=n(r("1ff8")),s=n(r("f7fd")),u=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),c=function(e){function t(t,r,n,i,o,a,u){var c=e.call(this,r,n)||this;if(c.dataWidth=i,c.dataHeight=o,c.left=a,c.top=u,4===t.BYTES_PER_ELEMENT){for(var f=r*n,l=new Uint8ClampedArray(f),d=0;d<f;d++){var h=t[d],p=h>>16&255,g=h>>7&510,y=255&h;l[d]=(p+g+y)/4&255}c.luminances=l}else c.luminances=t;if(void 0===i&&(c.dataWidth=r),void 0===o&&(c.dataHeight=n),void 0===a&&(c.left=0),void 0===u&&(c.top=0),c.left+r>c.dataWidth||c.top+n>c.dataHeight)throw new s.default("Crop rectangle does not fit within image data.");return c}return u(t,e),t.prototype.getRow=function(e,t){if(e<0||e>=this.getHeight())throw new s.default("Requested row is outside the image: "+e);var r=this.getWidth();(null===t||void 0===t||t.length<r)&&(t=new Uint8ClampedArray(r));var n=(e+this.top)*this.dataWidth+this.left;return a.default.arraycopy(this.luminances,n,t,0,r),t},t.prototype.getMatrix=function(){var e=this.getWidth(),t=this.getHeight();if(e===this.dataWidth&&t===this.dataHeight)return this.luminances;var r=e*t,n=new Uint8ClampedArray(r),i=this.top*this.dataWidth+this.left;if(e===this.dataWidth)return a.default.arraycopy(this.luminances,i,n,0,r),n;for(var o=0;o<t;o++){var s=o*e;a.default.arraycopy(this.luminances,i,n,s,e),i+=this.dataWidth}return n},t.prototype.isCropSupported=function(){return!0},t.prototype.crop=function(e,r,n,i){return new t(this.luminances,n,i,this.dataWidth,this.dataHeight,this.left+e,this.top+r)},t.prototype.invert=function(){return new i.default(this)},t}(o.default),f=c;t.default=f},1581:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("7322")),o=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.kind="IndexOutOfBoundsException",t}(i.default),s=a;t.default=s},"15aa":function(e){e.exports=JSON.parse('{"uni-datetime-picker.selectDate":"选择日期","uni-datetime-picker.selectTime":"选择时间","uni-datetime-picker.selectDateTime":"选择日期时间","uni-datetime-picker.startDate":"开始日期","uni-datetime-picker.endDate":"结束日期","uni-datetime-picker.startTime":"开始时间","uni-datetime-picker.endTime":"结束时间","uni-datetime-picker.ok":"确定","uni-datetime-picker.clear":"清除","uni-datetime-picker.cancel":"取消","uni-datetime-picker.year":"年","uni-datetime-picker.month":"月","uni-calender.SUN":"日","uni-calender.MON":"一","uni-calender.TUE":"二","uni-calender.WED":"三","uni-calender.THU":"四","uni-calender.FRI":"五","uni-calender.SAT":"六","uni-calender.confirm":"确认"}')},"15eb":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.BrowserDatamatrixCodeReader=void 0;var i=r("a5d4"),o=n(r("5847")),a=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),s=function(e){function t(t){return void 0===t&&(t=500),e.call(this,new o.default,t)||this}return a(t,e),t}(i.BrowserCodeReader);t.BrowserDatamatrixCodeReader=s},"175d":function(e,t,r){"use strict";var n=r("81eb"),i=r("1f37"),o=r("4e45"),a=r("850f"),s=r("b718"),u=o.assert,c=r("c8c9"),f=r("34c1");function l(e){if(!(this instanceof l))return new l(e);"string"===typeof e&&(u(Object.prototype.hasOwnProperty.call(a,e),"Unknown curve "+e),e=a[e]),e instanceof a.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}e.exports=l,l.prototype.keyPair=function(e){return new c(this,e)},l.prototype.keyFromPrivate=function(e,t){return c.fromPrivate(this,e,t)},l.prototype.keyFromPublic=function(e,t){return c.fromPublic(this,e,t)},l.prototype.genKeyPair=function(e){e||(e={});for(var t=new i({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||s(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),o=this.n.sub(new n(2));;){var a=new n(t.generate(r));if(!(a.cmp(o)>0))return a.iaddn(1),this.keyFromPrivate(a)}},l.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},l.prototype.sign=function(e,t,r,o){"object"===typeof r&&(o=r,r=null),o||(o={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new n(e,16));for(var a=this.n.byteLength(),s=t.getPrivate().toArray("be",a),u=e.toArray("be",a),c=new i({hash:this.hash,entropy:s,nonce:u,pers:o.pers,persEnc:o.persEnc||"utf8"}),l=this.n.sub(new n(1)),d=0;;d++){var h=o.k?o.k(d):new n(c.generate(this.n.byteLength()));if(h=this._truncateToN(h,!0),!(h.cmpn(1)<=0||h.cmp(l)>=0)){var p=this.g.mul(h);if(!p.isInfinity()){var g=p.getX(),y=g.umod(this.n);if(0!==y.cmpn(0)){var v=h.invm(this.n).mul(y.mul(t.getPrivate()).iadd(e));if(v=v.umod(this.n),0!==v.cmpn(0)){var b=(p.getY().isOdd()?1:0)|(0!==g.cmp(y)?2:0);return o.canonical&&v.cmp(this.nh)>0&&(v=this.n.sub(v),b^=1),new f({r:y,s:v,recoveryParam:b})}}}}}},l.prototype.verify=function(e,t,r,i){e=this._truncateToN(new n(e,16)),r=this.keyFromPublic(r,i),t=new f(t,"hex");var o=t.r,a=t.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s,u=a.invm(this.n),c=u.mul(e).umod(this.n),l=u.mul(o).umod(this.n);return this.curve._maxwellTrick?(s=this.g.jmulAdd(c,r.getPublic(),l),!s.isInfinity()&&s.eqXToP(o)):(s=this.g.mulAdd(c,r.getPublic(),l),!s.isInfinity()&&0===s.getX().umod(this.n).cmp(o))},l.prototype.recoverPubKey=function(e,t,r,i){u((3&r)===r,"The recovery param is more than two bits"),t=new f(t,i);var o=this.n,a=new n(e),s=t.r,c=t.s,l=1&r,d=r>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&d)throw new Error("Unable to find sencond key candinate");s=d?this.curve.pointFromX(s.add(this.curve.n),l):this.curve.pointFromX(s,l);var h=t.r.invm(o),p=o.sub(a).mul(h).umod(o),g=c.mul(h).umod(o);return this.g.mulAdd(p,s,g)},l.prototype.getKeyRecoveryParam=function(e,t,r,n){if(t=new f(t,n),null!==t.recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(e,t,i)}catch(e){continue}if(o.eq(r))return i}throw new Error("Unable to find valid recovery factor")}},"18a6":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("3b2d")),o=n(r("271d")),a=n(r("a22d")),s=n(r("93d8"));var u=function(e){try{if(!e)return!1;var t=a.default.getOptions();if(!t.status)return void console.error("日志上报失败!dev工具未启用 msg:"+e);if(!t.logs.status)return void console.error("日志上报失败!dev logs未启用 msg:"+e);try{var r=getCurrentPages();if(r[r.length-1].route==t.devRoute)return!1}catch(f){}if("object"==(0,i.default)(e))try{e=JSON.stringify(e)}catch(f){e="logReport:error"}var n={t:(new Date).getTime(),m:""},u=s.default.calculateStringByteSize(n);e=String(e),e=s.default.compressObject(e,t.logs.cache.rowSize-u),n.m=e;var c=o.default.get("logReport");c||(c=[]),c.unshift(n),c=s.default.compressArray(c,"end",t.logs.cache.size),o.default.set("logReport",c)}catch(f){console.log("logReport error",f)}};t.default=u},1941:function(e,t,r){(function(t){var n,i,o=r("5f79").Buffer,a=r("d896"),s=r("df96"),u=r("66ad"),c=r("325f"),f=t.crypto&&t.crypto.subtle,l={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},d=[];function h(){return i||(i=t.process&&t.process.nextTick?t.process.nextTick:t.queueMicrotask?t.queueMicrotask:t.setImmediate?t.setImmediate:t.setTimeout,i)}function p(e,t,r,n,i){return f.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then((function(e){return f.deriveBits({name:"PBKDF2",salt:t,iterations:r,hash:{name:i}},e,n<<3)})).then((function(e){return o.from(e)}))}e.exports=function(e,r,i,g,y,v){"function"===typeof y&&(v=y,y=void 0),y=y||"sha1";var b=l[y.toLowerCase()];if(b&&"function"===typeof t.Promise){if(a(i,g),e=c(e,s,"Password"),r=c(r,s,"Salt"),"function"!==typeof v)throw new Error("No callback provided to pbkdf2");(function(e,t){e.then((function(e){h()((function(){t(null,e)}))}),(function(e){h()((function(){t(e)}))}))})(function(e){if(t.process&&!t.process.browser)return Promise.resolve(!1);if(!f||!f.importKey||!f.deriveBits)return Promise.resolve(!1);if(void 0!==d[e])return d[e];n=n||o.alloc(8);var r=p(n,n,10,128,e).then((function(){return!0})).catch((function(){return!1}));return d[e]=r,r}(b).then((function(t){return t?p(e,r,i,g,b):u(e,r,i,g,y)})),v)}else h()((function(){var t;try{t=u(e,r,i,g,y)}catch(n){return v(n)}v(null,t)}))}}).call(this,r("0ee4"))},"1bad":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("f7fd")),o=function(e){var t="function"===typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=function(){function e(e,t){this.numDataCodewords=e,this.codewords=t}return e.getDataBlocks=function(t,r){var n,a,s,u,c=r.getECBlocks(),f=0,l=c.getECBlocks();try{for(var d=o(l),h=d.next();!h.done;h=d.next()){var p=h.value;f+=p.getCount()}}catch(k){n={error:k}}finally{try{h&&!h.done&&(a=d.return)&&a.call(d)}finally{if(n)throw n.error}}var g=new Array(f),y=0;try{for(var v=o(l),b=v.next();!b.done;b=v.next()){p=b.value;for(var m=0;m<p.getCount();m++){var _=p.getDataCodewords(),w=c.getECCodewords()+_;g[y++]=new e(_,new Uint8Array(w))}}}catch(R){s={error:R}}finally{try{b&&!b.done&&(u=v.return)&&u.call(v)}finally{if(s)throw s.error}}var A=g[0].codewords.length,S=A-c.getECCodewords(),x=S-1,E=0;for(m=0;m<x;m++)for(var C=0;C<y;C++)g[C].codewords[m]=t[E++];var O=24===r.getVersionNumber(),I=O?8:y;for(C=0;C<I;C++)g[C].codewords[S-1]=t[E++];var T=g[0].codewords.length;for(m=S;m<T;m++)for(C=0;C<y;C++){var P=O?(C+8)%y:C,M=O&&P>7?m-1:m;g[P].codewords[M]=t[E++]}if(E!==t.length)throw new i.default;return g},e.prototype.getNumDataCodewords=function(){return this.numDataCodewords},e.prototype.getCodewords=function(){return this.codewords},e}(),s=a;t.default=s},"1d84":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(){function e(){}return e.floatToIntBits=function(e){return e},e.MAX_VALUE=Number.MAX_SAFE_INTEGER,e}(),i=n;t.default=i},"1daa":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("7322")),o=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.kind="NullPointerException",t}(i.default),s=a;t.default=s},"1eca":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ECBlocks=t.ECB=void 0;var i=n(r("343e")),o=function(e){var t="function"===typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=function(){function e(e,t,r){this.ecCodewords=e,this.ecBlocks=[t],r&&this.ecBlocks.push(r)}return e.prototype.getECCodewords=function(){return this.ecCodewords},e.prototype.getECBlocks=function(){return this.ecBlocks},e}();t.ECBlocks=a;var s=function(){function e(e,t){this.count=e,this.dataCodewords=t}return e.prototype.getCount=function(){return this.count},e.prototype.getDataCodewords=function(){return this.dataCodewords},e}();t.ECB=s;var u=function(){function e(e,t,r,n,i,a){var s,u;this.versionNumber=e,this.symbolSizeRows=t,this.symbolSizeColumns=r,this.dataRegionSizeRows=n,this.dataRegionSizeColumns=i,this.ecBlocks=a;var c=0,f=a.getECCodewords(),l=a.getECBlocks();try{for(var d=o(l),h=d.next();!h.done;h=d.next()){var p=h.value;c+=p.getCount()*(p.getDataCodewords()+f)}}catch(g){s={error:g}}finally{try{h&&!h.done&&(u=d.return)&&u.call(d)}finally{if(s)throw s.error}}this.totalCodewords=c}return e.prototype.getVersionNumber=function(){return this.versionNumber},e.prototype.getSymbolSizeRows=function(){return this.symbolSizeRows},e.prototype.getSymbolSizeColumns=function(){return this.symbolSizeColumns},e.prototype.getDataRegionSizeRows=function(){return this.dataRegionSizeRows},e.prototype.getDataRegionSizeColumns=function(){return this.dataRegionSizeColumns},e.prototype.getTotalCodewords=function(){return this.totalCodewords},e.prototype.getECBlocks=function(){return this.ecBlocks},e.getVersionForDimensions=function(t,r){var n,a;if(0!==(1&t)||0!==(1&r))throw new i.default;try{for(var s=o(e.VERSIONS),u=s.next();!u.done;u=s.next()){var c=u.value;if(c.symbolSizeRows===t&&c.symbolSizeColumns===r)return c}}catch(f){n={error:f}}finally{try{u&&!u.done&&(a=s.return)&&a.call(s)}finally{if(n)throw n.error}}throw new i.default},e.prototype.toString=function(){return""+this.versionNumber},e.buildVersions=function(){return[new e(1,10,10,8,8,new a(5,new s(1,3))),new e(2,12,12,10,10,new a(7,new s(1,5))),new e(3,14,14,12,12,new a(10,new s(1,8))),new e(4,16,16,14,14,new a(12,new s(1,12))),new e(5,18,18,16,16,new a(14,new s(1,18))),new e(6,20,20,18,18,new a(18,new s(1,22))),new e(7,22,22,20,20,new a(20,new s(1,30))),new e(8,24,24,22,22,new a(24,new s(1,36))),new e(9,26,26,24,24,new a(28,new s(1,44))),new e(10,32,32,14,14,new a(36,new s(1,62))),new e(11,36,36,16,16,new a(42,new s(1,86))),new e(12,40,40,18,18,new a(48,new s(1,114))),new e(13,44,44,20,20,new a(56,new s(1,144))),new e(14,48,48,22,22,new a(68,new s(1,174))),new e(15,52,52,24,24,new a(42,new s(2,102))),new e(16,64,64,14,14,new a(56,new s(2,140))),new e(17,72,72,16,16,new a(36,new s(4,92))),new e(18,80,80,18,18,new a(48,new s(4,114))),new e(19,88,88,20,20,new a(56,new s(4,144))),new e(20,96,96,22,22,new a(68,new s(4,174))),new e(21,104,104,24,24,new a(56,new s(6,136))),new e(22,120,120,18,18,new a(68,new s(6,175))),new e(23,132,132,20,20,new a(62,new s(8,163))),new e(24,144,144,22,22,new a(62,new s(8,156),new s(2,155))),new e(25,8,18,6,16,new a(7,new s(1,5))),new e(26,8,32,6,14,new a(11,new s(1,10))),new e(27,12,26,10,24,new a(14,new s(1,16))),new e(28,12,36,10,16,new a(18,new s(1,22))),new e(29,16,36,14,16,new a(24,new s(1,32))),new e(30,16,48,14,22,new a(28,new s(1,49)))]},e.VERSIONS=e.buildVersions(),e}(),c=u;t.default=c},"1ee0":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("f7fd")),o=n(r("1ff8")),a=n(r("d4f8")),s=function(e){var t="function"===typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},u=function(){function e(e,t){if(0===t.length)throw new i.default;this.field=e;var r=t.length;if(r>1&&0===t[0]){var n=1;while(n<r&&0===t[n])n++;n===r?this.coefficients=new Int32Array([0]):(this.coefficients=new Int32Array(r-n),o.default.arraycopy(t,n,this.coefficients,0,this.coefficients.length))}else this.coefficients=t}return e.prototype.getCoefficients=function(){return this.coefficients},e.prototype.getDegree=function(){return this.coefficients.length-1},e.prototype.isZero=function(){return 0===this.coefficients[0]},e.prototype.getCoefficient=function(e){return this.coefficients[this.coefficients.length-1-e]},e.prototype.evaluateAt=function(e){var t,r;if(0===e)return this.getCoefficient(0);if(1===e){var n=0;try{for(var i=s(this.coefficients),o=i.next();!o.done;o=i.next()){var a=o.value;n=this.field.add(n,a)}}catch(l){t={error:l}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n}for(var u=this.coefficients[0],c=this.coefficients.length,f=1;f<c;f++)u=this.field.add(this.field.multiply(e,u),this.coefficients[f]);return u},e.prototype.add=function(t){if(!this.field.equals(t.field))throw new i.default("ModulusPolys do not have same ModulusGF field");if(this.isZero())return t;if(t.isZero())return this;var r=this.coefficients,n=t.coefficients;if(r.length>n.length){var a=r;r=n,n=a}var s=new Int32Array(n.length),u=n.length-r.length;o.default.arraycopy(n,0,s,0,u);for(var c=u;c<n.length;c++)s[c]=this.field.add(r[c-u],n[c]);return new e(this.field,s)},e.prototype.subtract=function(e){if(!this.field.equals(e.field))throw new i.default("ModulusPolys do not have same ModulusGF field");return e.isZero()?this:this.add(e.negative())},e.prototype.multiply=function(t){return t instanceof e?this.multiplyOther(t):this.multiplyScalar(t)},e.prototype.multiplyOther=function(t){if(!this.field.equals(t.field))throw new i.default("ModulusPolys do not have same ModulusGF field");if(this.isZero()||t.isZero())return new e(this.field,new Int32Array([0]));for(var r=this.coefficients,n=r.length,o=t.coefficients,a=o.length,s=new Int32Array(n+a-1),u=0;u<n;u++)for(var c=r[u],f=0;f<a;f++)s[u+f]=this.field.add(s[u+f],this.field.multiply(c,o[f]));return new e(this.field,s)},e.prototype.negative=function(){for(var t=this.coefficients.length,r=new Int32Array(t),n=0;n<t;n++)r[n]=this.field.subtract(0,this.coefficients[n]);return new e(this.field,r)},e.prototype.multiplyScalar=function(t){if(0===t)return new e(this.field,new Int32Array([0]));if(1===t)return this;for(var r=this.coefficients.length,n=new Int32Array(r),i=0;i<r;i++)n[i]=this.field.multiply(this.coefficients[i],t);return new e(this.field,n)},e.prototype.multiplyByMonomial=function(t,r){if(t<0)throw new i.default;if(0===r)return new e(this.field,new Int32Array([0]));for(var n=this.coefficients.length,o=new Int32Array(n+t),a=0;a<n;a++)o[a]=this.field.multiply(this.coefficients[a],r);return new e(this.field,o)},e.prototype.toString=function(){for(var e=new a.default,t=this.getDegree();t>=0;t--){var r=this.getCoefficient(t);0!==r&&(r<0?(e.append(" - "),r=-r):e.length()>0&&e.append(" + "),0!==t&&1===r||e.append(r),0!==t&&(1===t?e.append("x"):(e.append("x^"),e.append(t))))}return e.toString()},e}(),c=u;t.default=c},"1f07":function(e,t,r){"use strict";(function(t){var n,i=r("12e3"),o=i.Buffer,a={};for(n in i)i.hasOwnProperty(n)&&"SlowBuffer"!==n&&"Buffer"!==n&&(a[n]=i[n]);var s=a.Buffer={};for(n in o)o.hasOwnProperty(n)&&"allocUnsafe"!==n&&"allocUnsafeSlow"!==n&&(s[n]=o[n]);if(a.Buffer.prototype=o.prototype,s.from&&s.from!==Uint8Array.from||(s.from=function(e,t,r){if("number"===typeof e)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof e);if(e&&"undefined"===typeof e.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);return o(e,t,r)}),s.alloc||(s.alloc=function(e,t,r){if("number"!==typeof e)throw new TypeError('The "size" argument must be of type number. Received type '+typeof e);if(e<0||e>=2*(1<<30))throw new RangeError('The value "'+e+'" is invalid for option "size"');var n=o(e);return t&&0!==t.length?"string"===typeof r?n.fill(t,r):n.fill(t):n.fill(0),n}),!a.kStringMaxLength)try{a.kStringMaxLength=t.binding("buffer").kStringMaxLength}catch(u){}a.constants||(a.constants={MAX_LENGTH:a.kMaxLength},a.kStringMaxLength&&(a.constants.MAX_STRING_LENGTH=a.kStringMaxLength)),e.exports=a}).call(this,r("28d0"))},"1f37":function(e,t,r){"use strict";var n=r("dcf6"),i=r("b69b"),o=r("d3c2");function a(e){if(!(this instanceof a))return new a(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=i.toArray(e.entropy,e.entropyEnc||"hex"),r=i.toArray(e.nonce,e.nonceEnc||"hex"),n=i.toArray(e.pers,e.persEnc||"hex");o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}e.exports=a,a.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(n),this._reseed=1,this.reseedInterval=281474976710656},a.prototype._hmac=function(){return new n.hmac(this.hash,this.K)},a.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},a.prototype.reseed=function(e,t,r,n){"string"!==typeof t&&(n=r,r=t,t=null),e=i.toArray(e,t),r=i.toArray(r,n),o(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},a.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!==typeof t&&(n=r,r=t,t=null),r&&(r=i.toArray(r,n||"hex"),this._update(r));var o=[];while(o.length<e)this.V=this._hmac().update(this.V).digest(),o=o.concat(this.V);var a=o.slice(0,e);return this._update(r),this._reseed++,i.encode(a,t)}},"1f5a":function(e,t,r){(function(e){var n=r("1f63");function i(e){return e._prev=e._cipher.encryptBlock(e._prev),e._prev}t.encrypt=function(t,r){while(t._cache.length<r.length)t._cache=e.concat([t._cache,i(t)]);var o=t._cache.slice(0,r.length);return t._cache=t._cache.slice(r.length),n(r,o)}}).call(this,r("12e3").Buffer)},"1f63":function(e,t,r){(function(t){e.exports=function(e,r){for(var n=Math.min(e.length,r.length),i=new t(n),o=0;o<n;++o)i[o]=e[o]^r[o];return i}}).call(this,r("12e3").Buffer)},"1ff8":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(){function e(){}return e.arraycopy=function(e,t,r,n,i){while(i--)r[n++]=e[t++]},e.currentTimeMillis=function(){return Date.now()},e}(),i=n;t.default=i},2:function(e,t){},2004:function(e,t,r){"use strict";function n(e,t){void 0===t&&(t=e.constructor);var r=Error.captureStackTrace;r&&r(e,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.CustomError=void 0,t.customErrorFactory=function(e,t){void 0===t&&(t=Error);function r(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];if(!(this instanceof r))return new(r.bind.apply(r,a([void 0],i,!1)));t.apply(this,i),Object.defineProperty(this,"name",{value:e.name||t.name,enumerable:!1,configurable:!0}),e.apply(this,i),n(this,r)}return Object.defineProperties(r,{prototype:{value:Object.create(t.prototype,{constructor:{value:r,writable:!0,configurable:!0}})}})};var i=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};return function(t,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),o=function(e){function t(t,r){var i=this.constructor,o=e.call(this,t,r)||this;return Object.defineProperty(o,"name",{value:i.name,enumerable:!1,configurable:!0}),function(e,t){var r=Object.setPrototypeOf;r?r(e,t):e.__proto__=t}(o,i.prototype),n(o),o}return i(t,e),t}(Error);t.CustomError=o;var a=function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}},2117:function(e,t,r){var n=r("cfef"),i=r("04ef"),o=r("2c2e"),a=r("5f79").Buffer,s={"des-ede3-cbc":i.CBC.instantiate(i.EDE),"des-ede3":i.EDE,"des-ede-cbc":i.CBC.instantiate(i.EDE),"des-ede":i.EDE,"des-cbc":i.CBC.instantiate(i.DES),"des-ecb":i.DES};function u(e){n.call(this);var t,r=e.mode.toLowerCase(),i=s[r];t=e.decrypt?"decrypt":"encrypt";var o=e.key;a.isBuffer(o)||(o=a.from(o)),"des-ede"!==r&&"des-ede-cbc"!==r||(o=a.concat([o,o.slice(0,8)]));var u=e.iv;a.isBuffer(u)||(u=a.from(u)),this._des=i.create({key:o,iv:u,type:t})}s.des=s["des-cbc"],s.des3=s["des-ede3-cbc"],e.exports=u,o(u,n),u.prototype._update=function(e){return a.from(this._des.update(e))},u.prototype._final=function(){return a.from(this._des.final())}},"21cb":function(e,t,r){"use strict";var n=r("d3c2"),i=r("2c2e"),o=r("88d4"),a=r("0168");function s(){this.tmp=new Array(2),this.keys=null}function u(e){a.call(this,e);var t=new s;this._desState=t,this.deriveKeys(t,e.key)}i(u,a),e.exports=u,u.create=function(e){return new u(e)};var c=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];u.prototype.deriveKeys=function(e,t){e.keys=new Array(32),n.equal(t.length,this.blockSize,"Invalid key length");var r=o.readUInt32BE(t,0),i=o.readUInt32BE(t,4);o.pc1(r,i,e.tmp,0),r=e.tmp[0],i=e.tmp[1];for(var a=0;a<e.keys.length;a+=2){var s=c[a>>>1];r=o.r28shl(r,s),i=o.r28shl(i,s),o.pc2(r,i,e.keys,a)}},u.prototype._update=function(e,t,r,n){var i=this._desState,a=o.readUInt32BE(e,t),s=o.readUInt32BE(e,t+4);o.ip(a,s,i.tmp,0),a=i.tmp[0],s=i.tmp[1],"encrypt"===this.type?this._encrypt(i,a,s,i.tmp,0):this._decrypt(i,a,s,i.tmp,0),a=i.tmp[0],s=i.tmp[1],o.writeUInt32BE(r,a,n),o.writeUInt32BE(r,s,n+4)},u.prototype._pad=function(e,t){for(var r=e.length-t,n=t;n<e.length;n++)e[n]=r;return!0},u.prototype._unpad=function(e){for(var t=e[e.length-1],r=e.length-t;r<e.length;r++)n.equal(e[r],t);return e.slice(0,e.length-t)},u.prototype._encrypt=function(e,t,r,n,i){for(var a=t,s=r,u=0;u<e.keys.length;u+=2){var c=e.keys[u],f=e.keys[u+1];o.expand(s,e.tmp,0),c^=e.tmp[0],f^=e.tmp[1];var l=o.substitute(c,f),d=o.permute(l),h=s;s=(a^d)>>>0,a=h}o.rip(s,a,n,i)},u.prototype._decrypt=function(e,t,r,n,i){for(var a=r,s=t,u=e.keys.length-2;u>=0;u-=2){var c=e.keys[u],f=e.keys[u+1];o.expand(a,e.tmp,0),c^=e.tmp[0],f^=e.tmp[1];var l=o.substitute(c,f),d=o.permute(l),h=a;a=(s^d)>>>0,s=h}o.rip(a,s,n,i)}},"22f7":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("a8be")),o=n(r("1ff8")),a=n(r("36d3")),s=n(r("c1dd")),u=function(e){var t="function"===typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},c=function(){function e(){}return e.detectMultiple=function(t,r,n){var i=t.getBlackMatrix(),o=e.detect(n,i);return o.length||(i=i.clone(),i.rotate180(),o=e.detect(n,i)),new s.default(i,o)},e.detect=function(t,r){var n,i,o=new Array,a=0,s=0,c=!1;while(a<r.getHeight()){var f=e.findVertices(r,a,s);if(null!=f[0]||null!=f[3]){if(c=!0,o.push(f),!t)break;null!=f[2]?(s=Math.trunc(f[2].getX()),a=Math.trunc(f[2].getY())):(s=Math.trunc(f[4].getX()),a=Math.trunc(f[4].getY()))}else{if(!c)break;c=!1,s=0;try{for(var l=(n=void 0,u(o)),d=l.next();!d.done;d=l.next()){var h=d.value;null!=h[1]&&(a=Math.trunc(Math.max(a,h[1].getY()))),null!=h[3]&&(a=Math.max(a,Math.trunc(h[3].getY())))}}catch(p){n={error:p}}finally{try{d&&!d.done&&(i=l.return)&&i.call(l)}finally{if(n)throw n.error}}a+=e.ROW_STEP}}return o},e.findVertices=function(t,r,n){var i=t.getHeight(),o=t.getWidth(),a=new Array(8);return e.copyToResult(a,e.findRowsWithPattern(t,i,o,r,n,e.START_PATTERN),e.INDEXES_START_PATTERN),null!=a[4]&&(n=Math.trunc(a[4].getX()),r=Math.trunc(a[4].getY())),e.copyToResult(a,e.findRowsWithPattern(t,i,o,r,n,e.STOP_PATTERN),e.INDEXES_STOP_PATTERN),a},e.copyToResult=function(e,t,r){for(var n=0;n<r.length;n++)e[r[n]]=t[n]},e.findRowsWithPattern=function(t,r,n,o,s,u){for(var c=new Array(4),f=!1,l=new Int32Array(u.length);o<r;o+=e.ROW_STEP){var d=e.findGuardPattern(t,s,o,n,!1,u,l);if(null!=d){while(o>0){var h=e.findGuardPattern(t,s,--o,n,!1,u,l);if(null==h){o++;break}d=h}c[0]=new i.default(d[0],o),c[1]=new i.default(d[1],o),f=!0;break}}var p=o+1;if(f){var g=0;for(h=Int32Array.from([Math.trunc(c[0].getX()),Math.trunc(c[1].getX())]);p<r;p++){d=e.findGuardPattern(t,h[0],p,n,!1,u,l);if(null!=d&&Math.abs(h[0]-d[0])<e.MAX_PATTERN_DRIFT&&Math.abs(h[1]-d[1])<e.MAX_PATTERN_DRIFT)h=d,g=0;else{if(g>e.SKIPPED_ROW_COUNT_MAX)break;g++}}p-=g+1,c[2]=new i.default(h[0],p),c[3]=new i.default(h[1],p)}return p-o<e.BARCODE_MIN_HEIGHT&&a.default.fill(c,null),c},e.findGuardPattern=function(t,r,n,i,s,u,c){a.default.fillWithin(c,0,c.length,0);var f=r,l=0;while(t.get(f,n)&&f>0&&l++<e.MAX_PIXEL_DRIFT)f--;for(var d=f,h=0,p=u.length,g=s;d<i;d++){var y=t.get(d,n);if(y!==g)c[h]++;else{if(h===p-1){if(e.patternMatchVariance(c,u,e.MAX_INDIVIDUAL_VARIANCE)<e.MAX_AVG_VARIANCE)return new Int32Array([f,d]);f+=c[0]+c[1],o.default.arraycopy(c,2,c,0,h-1),c[h-1]=0,c[h]=0,h--}else h++;c[h]=1,g=!g}}return h===p-1&&e.patternMatchVariance(c,u,e.MAX_INDIVIDUAL_VARIANCE)<e.MAX_AVG_VARIANCE?new Int32Array([f,d-1]):null},e.patternMatchVariance=function(e,t,r){for(var n=e.length,i=0,o=0,a=0;a<n;a++)i+=e[a],o+=t[a];if(i<o)return 1/0;var s=i/o;r*=s;for(var u=0,c=0;c<n;c++){var f=e[c],l=t[c]*s,d=f>l?f-l:l-f;if(d>r)return 1/0;u+=d}return u/i},e.INDEXES_START_PATTERN=Int32Array.from([0,4,1,5]),e.INDEXES_STOP_PATTERN=Int32Array.from([6,2,7,3]),e.MAX_AVG_VARIANCE=.42,e.MAX_INDIVIDUAL_VARIANCE=.8,e.START_PATTERN=Int32Array.from([8,1,1,1,1,1,1,3]),e.STOP_PATTERN=Int32Array.from([7,1,1,3,1,1,1,2,1]),e.MAX_PIXEL_DRIFT=3,e.MAX_PATTERN_DRIFT=5,e.SKIPPED_ROW_COUNT_MAX=25,e.ROW_STEP=5,e.BARCODE_MIN_HEIGHT=10,e}(),f=c;t.default=f},2508:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("5935")),o=n(r("f228")),a=n(r("d4f8")),s=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),u=function(e){function t(t){return e.call(this,t)||this}return s(t,e),t.prototype.parseInformation=function(){if(this.getInformation().getSize()<t.HEADER_SIZE+i.default.GTIN_SIZE)throw new o.default;var e=new a.default;this.encodeCompressedGtin(e,t.HEADER_SIZE);var r=this.getGeneralDecoder().extractNumericValueFromBitArray(t.HEADER_SIZE+i.default.GTIN_SIZE,t.LAST_DIGIT_SIZE);e.append("(393"),e.append(r),e.append(")");var n=this.getGeneralDecoder().extractNumericValueFromBitArray(t.HEADER_SIZE+i.default.GTIN_SIZE+t.LAST_DIGIT_SIZE,t.FIRST_THREE_DIGITS_SIZE);n/100===0&&e.append("0"),n/10===0&&e.append("0"),e.append(n);var s=this.getGeneralDecoder().decodeGeneralPurposeField(t.HEADER_SIZE+i.default.GTIN_SIZE+t.LAST_DIGIT_SIZE+t.FIRST_THREE_DIGITS_SIZE,null);return e.append(s.getNewString()),e.toString()},t.HEADER_SIZE=8,t.LAST_DIGIT_SIZE=2,t.FIRST_THREE_DIGITS_SIZE=10,t}(i.default),c=u;t.default=c},"253e":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.CharacterSetValueIdentifiers=void 0;var i,o=n(r("343e")),a=function(e){var t="function"===typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};t.CharacterSetValueIdentifiers=i,function(e){e[e["Cp437"]=0]="Cp437",e[e["ISO8859_1"]=1]="ISO8859_1",e[e["ISO8859_2"]=2]="ISO8859_2",e[e["ISO8859_3"]=3]="ISO8859_3",e[e["ISO8859_4"]=4]="ISO8859_4",e[e["ISO8859_5"]=5]="ISO8859_5",e[e["ISO8859_6"]=6]="ISO8859_6",e[e["ISO8859_7"]=7]="ISO8859_7",e[e["ISO8859_8"]=8]="ISO8859_8",e[e["ISO8859_9"]=9]="ISO8859_9",e[e["ISO8859_10"]=10]="ISO8859_10",e[e["ISO8859_11"]=11]="ISO8859_11",e[e["ISO8859_13"]=12]="ISO8859_13",e[e["ISO8859_14"]=13]="ISO8859_14",e[e["ISO8859_15"]=14]="ISO8859_15",e[e["ISO8859_16"]=15]="ISO8859_16",e[e["SJIS"]=16]="SJIS",e[e["Cp1250"]=17]="Cp1250",e[e["Cp1251"]=18]="Cp1251",e[e["Cp1252"]=19]="Cp1252",e[e["Cp1256"]=20]="Cp1256",e[e["UnicodeBigUnmarked"]=21]="UnicodeBigUnmarked",e[e["UTF8"]=22]="UTF8",e[e["ASCII"]=23]="ASCII",e[e["Big5"]=24]="Big5",e[e["GB18030"]=25]="GB18030",e[e["EUC_KR"]=26]="EUC_KR"}(i||(t.CharacterSetValueIdentifiers=i={}));var s=function(){function e(t,r,n){for(var i,o,s=[],u=3;u<arguments.length;u++)s[u-3]=arguments[u];this.valueIdentifier=t,this.name=n,this.values="number"===typeof r?Int32Array.from([r]):r,this.otherEncodingNames=s,e.VALUE_IDENTIFIER_TO_ECI.set(t,this),e.NAME_TO_ECI.set(n,this);for(var c=this.values,f=0,l=c.length;f!==l;f++){var d=c[f];e.VALUES_TO_ECI.set(d,this)}try{for(var h=a(s),p=h.next();!p.done;p=h.next()){var g=p.value;e.NAME_TO_ECI.set(g,this)}}catch(y){i={error:y}}finally{try{p&&!p.done&&(o=h.return)&&o.call(h)}finally{if(i)throw i.error}}}return e.prototype.getValueIdentifier=function(){return this.valueIdentifier},e.prototype.getName=function(){return this.name},e.prototype.getValue=function(){return this.values[0]},e.getCharacterSetECIByValue=function(t){if(t<0||t>=900)throw new o.default("incorect value");var r=e.VALUES_TO_ECI.get(t);if(void 0===r)throw new o.default("incorect value");return r},e.getCharacterSetECIByName=function(t){var r=e.NAME_TO_ECI.get(t);if(void 0===r)throw new o.default("incorect value");return r},e.prototype.equals=function(t){if(!(t instanceof e))return!1;var r=t;return this.getName()===r.getName()},e.VALUE_IDENTIFIER_TO_ECI=new Map,e.VALUES_TO_ECI=new Map,e.NAME_TO_ECI=new Map,e.Cp437=new e(i.Cp437,Int32Array.from([0,2]),"Cp437"),e.ISO8859_1=new e(i.ISO8859_1,Int32Array.from([1,3]),"ISO-8859-1","ISO88591","ISO8859_1"),e.ISO8859_2=new e(i.ISO8859_2,4,"ISO-8859-2","ISO88592","ISO8859_2"),e.ISO8859_3=new e(i.ISO8859_3,5,"ISO-8859-3","ISO88593","ISO8859_3"),e.ISO8859_4=new e(i.ISO8859_4,6,"ISO-8859-4","ISO88594","ISO8859_4"),e.ISO8859_5=new e(i.ISO8859_5,7,"ISO-8859-5","ISO88595","ISO8859_5"),e.ISO8859_6=new e(i.ISO8859_6,8,"ISO-8859-6","ISO88596","ISO8859_6"),e.ISO8859_7=new e(i.ISO8859_7,9,"ISO-8859-7","ISO88597","ISO8859_7"),e.ISO8859_8=new e(i.ISO8859_8,10,"ISO-8859-8","ISO88598","ISO8859_8"),e.ISO8859_9=new e(i.ISO8859_9,11,"ISO-8859-9","ISO88599","ISO8859_9"),e.ISO8859_10=new e(i.ISO8859_10,12,"ISO-8859-10","ISO885910","ISO8859_10"),e.ISO8859_11=new e(i.ISO8859_11,13,"ISO-8859-11","ISO885911","ISO8859_11"),e.ISO8859_13=new e(i.ISO8859_13,15,"ISO-8859-13","ISO885913","ISO8859_13"),e.ISO8859_14=new e(i.ISO8859_14,16,"ISO-8859-14","ISO885914","ISO8859_14"),e.ISO8859_15=new e(i.ISO8859_15,17,"ISO-8859-15","ISO885915","ISO8859_15"),e.ISO8859_16=new e(i.ISO8859_16,18,"ISO-8859-16","ISO885916","ISO8859_16"),e.SJIS=new e(i.SJIS,20,"SJIS","Shift_JIS"),e.Cp1250=new e(i.Cp1250,21,"Cp1250","windows-1250"),e.Cp1251=new e(i.Cp1251,22,"Cp1251","windows-1251"),e.Cp1252=new e(i.Cp1252,23,"Cp1252","windows-1252"),e.Cp1256=new e(i.Cp1256,24,"Cp1256","windows-1256"),e.UnicodeBigUnmarked=new e(i.UnicodeBigUnmarked,25,"UnicodeBigUnmarked","UTF-16BE","UnicodeBig"),e.UTF8=new e(i.UTF8,26,"UTF8","UTF-8"),e.ASCII=new e(i.ASCII,Int32Array.from([27,170]),"ASCII","US-ASCII"),e.Big5=new e(i.Big5,28,"Big5"),e.GB18030=new e(i.GB18030,29,"GB18030","GB2312","EUC_CN","GBK"),e.EUC_KR=new e(i.EUC_KR,30,"EUC_KR","EUC-KR"),e}(),u=s;t.default=u},2570:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.ASCIIEncoder=void 0;var i=r("eab1"),o=n(r("3fac")),a=function(){function e(){}return e.prototype.getEncodingMode=function(){return i.ASCII_ENCODATION},e.prototype.encode=function(e){var t=o.default.determineConsecutiveDigitCount(e.getMessage(),e.pos);if(t>=2)e.writeCodeword(this.encodeASCIIDigits(e.getMessage().charCodeAt(e.pos),e.getMessage().charCodeAt(e.pos+1))),e.pos+=2;else{var r=e.getCurrentChar(),n=o.default.lookAheadTest(e.getMessage(),e.pos,this.getEncodingMode());if(n!==this.getEncodingMode())switch(n){case i.BASE256_ENCODATION:return e.writeCodeword(i.LATCH_TO_BASE256),void e.signalEncoderChange(i.BASE256_ENCODATION);case i.C40_ENCODATION:return e.writeCodeword(i.LATCH_TO_C40),void e.signalEncoderChange(i.C40_ENCODATION);case i.X12_ENCODATION:e.writeCodeword(i.LATCH_TO_ANSIX12),e.signalEncoderChange(i.X12_ENCODATION);break;case i.TEXT_ENCODATION:e.writeCodeword(i.LATCH_TO_TEXT),e.signalEncoderChange(i.TEXT_ENCODATION);break;case i.EDIFACT_ENCODATION:e.writeCodeword(i.LATCH_TO_EDIFACT),e.signalEncoderChange(i.EDIFACT_ENCODATION);break;default:throw new Error("Illegal mode: "+n)}else o.default.isExtendedASCII(r)?(e.writeCodeword(i.UPPER_SHIFT),e.writeCodeword(r-128+1),e.pos++):(e.writeCodeword(r+1),e.pos++)}},e.prototype.encodeASCIIDigits=function(e,t){if(o.default.isDigit(e)&&o.default.isDigit(t)){var r=10*(e-48)+(t-48);return r+130}throw new Error("not digits: "+e+t)},e}();t.ASCIIEncoder=a},"25a4":function(e,t,r){t=e.exports=function(e){e=e.toLowerCase();var r=t[e];if(!r)throw new Error(e+" is not supported (we accept pull requests)");return new r};t.sha=r("3757"),t.sha1=r("290e"),t.sha224=r("9579"),t.sha256=r("cef8"),t.sha384=r("698d"),t.sha512=r("0b4d")},"26c4":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(){function e(e){this.previous=e}return e.prototype.getPrevious=function(){return this.previous},e}(),i=n;t.default=i},"271d":function(e,t,r){"use strict";(function(e){var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("a22d")),o={cacheKey:"devTools_v3_",options:null,tempCache:{errorReport:[],logReport:[],console:[],request:[],uniBus:[]},tempData:{},set:function(e,t){try{if(-1!=["errorReport","logReport","console","request","uniBus"].indexOf(e)){var r=this.getLongListSetting(e);if(!r.status)return;if(!r.cache.status)return void(this.tempCache[e]=t)}e="".concat(this.cacheKey).concat(e),this.tempData[e]=t}catch(n){console.log("devCache.set error",n)}},get:function(t){try{if(-1!=["errorReport","logReport","console","request","uniBus"].indexOf(t)){var r=this.getLongListSetting(t);if(!r.status)return[];if(!r.cache.status)return this.tempCache[t]}if(t="".concat(this.cacheKey).concat(t),this.tempData.hasOwnProperty(t))return this.tempData[t];var n=e.getStorageSync(t);return this.tempData[t]=n,n}catch(i){return console.log("devCache.get error",i),""}},getLongListSetting:function(e){var t={errorReport:"error",logReport:"logs",console:"console",request:"network",uniBus:"uniBus"};return this.options||(this.options=i.default.getOptions()),this.options[t[e]]},syncLocalCache:function(){var t=this;setTimeout((function(){try{for(var r=Object.keys(t.tempData),n=function(n){var i=r[n];e.setStorage({key:i,data:t.tempData[i],success:function(){delete t.tempData[i]}})},i=0;i<r.length;i++)n(i)}catch(o){console.log("devCache error: ",o)}setTimeout((function(){t.syncLocalCache()}),500)}),Math.round(3*Math.random()*1e3)+2e3)}};t.default=o}).call(this,r("df3c")["default"])},"27bb":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("34cf")),o=n(r("3b2d")),a={version:"v2.5.0-20230101",yAxisWidth:15,xAxisHeight:22,padding:[10,10,10,10],rotate:!1,fontSize:13,fontColor:"#666666",dataPointShape:["circle","circle","circle","circle"],color:["#1890FF","#91CB74","#FAC858","#EE6666","#73C0DE","#3CA272","#FC8452","#9A60B4","#ea7ccc"],linearColor:["#0EE2F8","#2BDCA8","#FA7D8D","#EB88E2","#2AE3A0","#0EE2F8","#EB88E2","#6773E3","#F78A85"],pieChartLinePadding:15,pieChartTextPadding:5,titleFontSize:20,subtitleFontSize:15,radarLabelTextMargin:13},s=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(null==e)throw new TypeError("[uCharts] Cannot convert undefined or null to object");if(!r||r.length<=0)return e;function i(e,t){for(var r in t)e[r]=e[r]&&"[object Object]"===e[r].toString()?i(e[r],t[r]):e[r]=t[r];return e}return r.forEach((function(t){e=i(e,t)})),e},u={toFixed:function(e,t){return t=t||2,this.isFloat(e)&&(e=e.toFixed(t)),e},isFloat:function(e){return e%1!==0},approximatelyEqual:function(e,t){return Math.abs(e-t)<1e-10},isSameSign:function(e,t){return Math.abs(e)===e&&Math.abs(t)===t||Math.abs(e)!==e&&Math.abs(t)!==t},isSameXCoordinateArea:function(e,t){return this.isSameSign(e.x,t.x)},isCollision:function(e,t){e.end={},e.end.x=e.start.x+e.width,e.end.y=e.start.y-e.height,t.end={},t.end.x=t.start.x+t.width,t.end.y=t.start.y-t.height;var r=t.start.x>e.end.x||t.end.x<e.start.x||t.end.y>e.start.y||t.start.y<e.end.y;return!r}};function c(e,t){var r=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,r,n){return t+t+r+r+n+n})),n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(r),i=parseInt(n[1],16),o=parseInt(n[2],16),a=parseInt(n[3],16);return"rgba("+i+","+o+","+a+","+t+")"}function f(e,t,r){if(isNaN(e))throw new Error("[uCharts] series数据需为Number格式");r=r||10,t=t||"upper";var n=1;while(r<1)r*=10,n*=10;e="upper"===t?Math.ceil(e*n):Math.floor(e*n);while(e%r!==0)if("upper"===t){if(e==e+1)break;e++}else e--;return e/n}function l(e,t,r,n,i){var o=i.width-i.area[1]-i.area[3],a=r.eachSpacing*(i.chartData.xAxisData.xAxisPoints.length-1);"mount"==i.type&&i.extra&&i.extra.mount&&i.extra.mount.widthRatio&&i.extra.mount.widthRatio>1&&(i.extra.mount.widthRatio>2&&(i.extra.mount.widthRatio=2),a+=(i.extra.mount.widthRatio-1)*r.eachSpacing);var s=t;return t>=0?(s=0,e.uevent.trigger("scrollLeft"),e.scrollOption.position="left",i.xAxis.scrollPosition="left"):Math.abs(t)>=a-o?(s=o-a,e.uevent.trigger("scrollRight"),e.scrollOption.position="right",i.xAxis.scrollPosition="right"):(e.scrollOption.position=t,i.xAxis.scrollPosition=t),s}function d(e,t,r){function n(e){while(e<0)e+=2*Math.PI;while(e>2*Math.PI)e-=2*Math.PI;return e}return e=n(e),t=n(t),r=n(r),t>r&&(r+=2*Math.PI,e<t&&(e+=2*Math.PI)),e>=t&&e<=r}function h(e,t){function r(e,t){return!(!e[t-1]||!e[t+1])&&(e[t].y>=Math.max(e[t-1].y,e[t+1].y)||e[t].y<=Math.min(e[t-1].y,e[t+1].y))}function n(e,t){return!(!e[t-1]||!e[t+1])&&(e[t].x>=Math.max(e[t-1].x,e[t+1].x)||e[t].x<=Math.min(e[t-1].x,e[t+1].x))}var i=.2,o=.2,a=null,s=null,u=null,c=null;if(t<1?(a=e[0].x+(e[1].x-e[0].x)*i,s=e[0].y+(e[1].y-e[0].y)*i):(a=e[t].x+(e[t+1].x-e[t-1].x)*i,s=e[t].y+(e[t+1].y-e[t-1].y)*i),t>e.length-3){var f=e.length-1;u=e[f].x-(e[f].x-e[f-1].x)*o,c=e[f].y-(e[f].y-e[f-1].y)*o}else u=e[t+1].x-(e[t+2].x-e[t].x)*o,c=e[t+1].y-(e[t+2].y-e[t].y)*o;return r(e,t+1)&&(c=e[t+1].y),r(e,t)&&(s=e[t].y),n(e,t+1)&&(u=e[t+1].x),n(e,t)&&(a=e[t].x),(s>=Math.max(e[t].y,e[t+1].y)||s<=Math.min(e[t].y,e[t+1].y))&&(s=e[t].y),(c>=Math.max(e[t].y,e[t+1].y)||c<=Math.min(e[t].y,e[t+1].y))&&(c=e[t+1].y),(a>=Math.max(e[t].x,e[t+1].x)||a<=Math.min(e[t].x,e[t+1].x))&&(a=e[t].x),(u>=Math.max(e[t].x,e[t+1].x)||u<=Math.min(e[t].x,e[t+1].x))&&(u=e[t+1].x),{ctrA:{x:a,y:s},ctrB:{x:u,y:c}}}function p(e,t,r){return{x:r.x+e,y:r.y-t}}function g(e,t){if(t)while(u.isCollision(e,t))e.start.x>0?e.start.y--:e.start.x<0||e.start.y>0?e.start.y++:e.start.y--;return e}function y(e,t,r){for(var n=0,i=0;i<e.length;i++){var o=e[i];if(o.color||(o.color=r.color[n],n=(n+1)%r.color.length),o.linearIndex||(o.linearIndex=i),o.index||(o.index=0),o.type||(o.type=t.type),"undefined"==typeof o.show&&(o.show=!0),o.type||(o.type=t.type),o.pointShape||(o.pointShape="circle"),!o.legendShape)switch(o.type){case"line":o.legendShape="line";break;case"column":case"bar":o.legendShape="rect";break;case"area":case"mount":o.legendShape="triangle";break;default:o.legendShape="circle"}}return e}function v(e,t,r,n){var i=t||[];if("custom"==e&&0==i.length&&(i=n.linearColor),"custom"==e&&i.length<r.length)for(var o=r.length-i.length,a=0;a<o;a++)i.push(n.linearColor[(a+1)%n.linearColor.length]);return i}function b(e,t){var r=0,n=t-e;return r=n>=1e4?1e3:n>=1e3?100:n>=100?10:n>=10?5:n>=1?1:n>=.1?.1:n>=.01?.01:n>=.001?.001:n>=1e-4?1e-4:n>=1e-5?1e-5:1e-6,{minRange:f(e,"lower",r),maxRange:f(t,"upper",r)}}function m(e,t,r){var n=0;if(e=String(e),!1!==r&&void 0!==r&&r.setFontSize&&r.measureText)return r.setFontSize(t),r.measureText(e).width;e=e.split("");for(var i=0;i<e.length;i++){var o=e[i];/[a-zA-Z]/.test(o)?n+=7:/[0-9]/.test(o)?n+=5.5:/\./.test(o)?n+=2.7:/-/.test(o)?n+=3.25:/:/.test(o)?n+=2.5:/[\u4e00-\u9fa5]/.test(o)?n+=10:/\(|\)/.test(o)?n+=3.73:/\s/.test(o)?n+=2.5:/%/.test(o)?n+=8:n+=10}return n*t/10}function _(e){return e.reduce((function(e,t){return(e.data?e.data:e).concat(t.data)}),[])}function w(e,t){for(var r=new Array(t),n=0;n<r.length;n++)r[n]=0;for(var i=0;i<e.length;i++)for(n=0;n<r.length;n++)r[n]+=e[i].data[n];return e.reduce((function(e,t){return(e.data?e.data:e).concat(t.data).concat(r)}),[])}function A(e,t,r){var n,i;return e.clientX?t.rotate?(i=t.height-e.clientX*t.pix,n=(e.pageY-r.currentTarget.offsetTop-t.height/t.pix/2*(t.pix-1))*t.pix):(n=e.clientX*t.pix,i=(e.pageY-r.currentTarget.offsetTop-t.height/t.pix/2*(t.pix-1))*t.pix):t.rotate?(i=t.height-e.x*t.pix,n=e.y*t.pix):(n=e.x*t.pix,i=e.y*t.pix),{x:n,y:i}}function S(e,t,r){var n=[],i=[],o=t.constructor.toString().indexOf("Array")>-1;if(o)for(var a=T(e),s=0;s<r.length;s++)i.push(a[r[s]]);else i=e;for(var u=0;u<i.length;u++){var c=i[u],f=-1;if(f=o?t[u]:t,null!==c.data[f]&&"undefined"!==typeof c.data[f]&&c.show){var l={};l.color=c.color,l.type=c.type,l.style=c.style,l.pointShape=c.pointShape,l.disableLegend=c.disableLegend,l.legendShape=c.legendShape,l.name=c.name,l.show=c.show,l.data=c.formatter?c.formatter(c.data[f]):c.data[f],n.push(l)}}return n}function x(e,t,r){var n=e.map((function(e){return m(e,t,r)}));return Math.max.apply(null,n)}function E(e){for(var t=2*Math.PI/e,r=[],n=0;n<e;n++)r.push(t*n);return r.map((function(e){return-1*e+Math.PI/2}))}function C(e,t,r,n,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=t.chartData.calPoints?t.chartData.calPoints:[],s={};if(n.length>0){for(var u=[],c=0;c<n.length;c++)u.push(a[n[c]]);s=u[0][r[0]]}else for(var f=0;f<a.length;f++)if(a[f][r]){s=a[f][r];break}var l=e.map((function(e){var n=null;return t.categories&&t.categories.length>0&&(n=i[r]),{text:o.formatter?o.formatter(e,n,r,t):e.name+": "+e.data,color:e.color,legendShape:"auto"==t.extra.tooltip.legendShape?e.legendShape:t.extra.tooltip.legendShape}})),d={x:Math.round(s.x),y:Math.round(s.y)};return{textList:l,offset:d}}function O(e,t,r,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=t.chartData.xAxisPoints[r]+t.chartData.eachSpacing/2,a=e.map((function(e){return{text:i.formatter?i.formatter(e,n[r],r,t):e.name+": "+e.data,color:e.color,disableLegend:!!e.disableLegend,legendShape:"auto"==t.extra.tooltip.legendShape?e.legendShape:t.extra.tooltip.legendShape}}));a=a.filter((function(e){if(!0!==e.disableLegend)return e}));var s={x:Math.round(o),y:0};return{textList:a,offset:s}}function I(e,t,r,n,i,o){var a=r.chartData.calPoints,s=o.color.upFill,u=o.color.downFill,c=[s,s,u,s],f=[];t.map((function(t){0==n?t.data[1]-t.data[0]<0?c[1]=u:c[1]=s:(t.data[0]<e[n-1][1]&&(c[0]=u),t.data[1]<t.data[0]&&(c[1]=u),t.data[2]>e[n-1][1]&&(c[2]=s),t.data[3]<e[n-1][1]&&(c[3]=u));var i={text:"开盘:"+t.data[0],color:c[0],legendShape:"auto"==r.extra.tooltip.legendShape?t.legendShape:r.extra.tooltip.legendShape},o={text:"收盘:"+t.data[1],color:c[1],legendShape:"auto"==r.extra.tooltip.legendShape?t.legendShape:r.extra.tooltip.legendShape},a={text:"最低:"+t.data[2],color:c[2],legendShape:"auto"==r.extra.tooltip.legendShape?t.legendShape:r.extra.tooltip.legendShape},l={text:"最高:"+t.data[3],color:c[3],legendShape:"auto"==r.extra.tooltip.legendShape?t.legendShape:r.extra.tooltip.legendShape};f.push(i,o,a,l)}));for(var l=[],d={x:0,y:0},h=0;h<a.length;h++){var p=a[h];"undefined"!==typeof p[n]&&null!==p[n]&&l.push(p[n])}return d.x=Math.round(l[0][0].x),{textList:f,offset:d}}function T(e){for(var t=[],r=0;r<e.length;r++)1==e[r].show&&t.push(e[r]);return t}function P(e,t,r){return e.x<=t.width-t.area[1]+10&&e.x>=t.area[3]-10&&e.y>=t.area[0]&&e.y<=t.height-t.area[2]}function M(e,t,r){return Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)<=Math.pow(r,2)}function k(e,t){var r=[],n=[];return e.forEach((function(e,i){t.connectNulls?null!==e&&n.push(e):null!==e?n.push(e):(n.length&&r.push(n),n=[])})),n.length&&r.push(n),r}function R(e,t,r,n,i){var o={angle:0,xAxisHeight:t.xAxis.lineHeight*t.pix+t.xAxis.marginTop*t.pix},a=t.xAxis.fontSize*t.pix,s=e.map((function(e,r){var n=t.xAxis.formatter?t.xAxis.formatter(e,r,t):e;return m(String(n),a,i)})),u=Math.max.apply(this,s);if(1==t.xAxis.rotateLabel){o.angle=t.xAxis.rotateAngle*Math.PI/180;var c=t.xAxis.marginTop*t.pix*2+Math.abs(u*Math.sin(o.angle));c=c<a+t.xAxis.marginTop*t.pix*2?c+t.xAxis.marginTop*t.pix*2:c,o.xAxisHeight=c}return t.enableScroll&&t.xAxis.scrollShow&&(o.xAxisHeight+=6*t.pix),t.xAxis.disabled&&(o.xAxisHeight=0),o}function D(e,t,r,n){var i=s({},{type:""},t.extra.bar),a={angle:0,xAxisHeight:t.xAxis.lineHeight*t.pix+t.xAxis.marginTop*t.pix};a.ranges=function(e,t,r,n){var i,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1;i="stack"==n?w(e,t.categories.length):_(e);var s=[];i=i.filter((function(e){return"object"===(0,o.default)(e)&&null!==e?e.constructor.toString().indexOf("Array")>-1?null!==e:null!==e.value:null!==e})),i.map((function(e){"object"===(0,o.default)(e)?e.constructor.toString().indexOf("Array")>-1?"candle"==t.type?e.map((function(e){s.push(e)})):s.push(e[0]):s.push(e.value):s.push(e)}));var u=0,c=0;if(s.length>0&&(u=Math.min.apply(this,s),c=Math.max.apply(this,s)),a>-1?("number"===typeof t.xAxis.data[a].min&&(u=Math.min(t.xAxis.data[a].min,u)),"number"===typeof t.xAxis.data[a].max&&(c=Math.max(t.xAxis.data[a].max,c))):("number"===typeof t.xAxis.min&&(u=Math.min(t.xAxis.min,u)),"number"===typeof t.xAxis.max&&(c=Math.max(t.xAxis.max,c))),u===c){var f=c||10;c+=f}for(var l=u,d=c,h=[],p=(d-l)/t.xAxis.splitNumber,g=0;g<=t.xAxis.splitNumber;g++)h.push(l+p*g);return h}(e,t,r,i.type),a.rangesFormat=a.ranges.map((function(e){return e=u.toFixed(e,2),e}));var c=a.ranges.map((function(e){return e=u.toFixed(e,2),e}));a=Object.assign(a,K(c,t,r));a.eachSpacing,c.map((function(e){return m(e,t.xAxis.fontSize*t.pix,n)}));return!0===t.xAxis.disabled&&(a.xAxisHeight=0),a}function N(e,t,r,n,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,a=i.extra.radar||{};a.max=a.max||0;for(var s=Math.max(a.max,Math.max.apply(null,_(n))),u=[],c=function(i){var a=n[i],c={};c.color=a.color,c.legendShape=a.legendShape,c.pointShape=a.pointShape,c.data=[],a.data.forEach((function(n,i){var a={};a.angle=e[i],a.proportion=n/s,a.value=n,a.position=p(r*a.proportion*o*Math.cos(a.angle),r*a.proportion*o*Math.sin(a.angle),t),c.data.push(a)})),u.push(c)},f=0;f<n.length;f++)c(f);return u}function B(e,t){for(var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=0,i=0,o=0;o<e.length;o++){var a=e[o];a.data=null===a.data?0:a.data,n+=a.data}for(var s=0;s<e.length;s++){var u=e[s];u.data=null===u.data?0:u.data,u._proportion_=0===n?1/e.length*r:u.data/n*r,u._radius_=t}for(var c=0;c<e.length;c++){var f=e[c];f._start_=i,i+=2*f._proportion_*Math.PI}return e}function L(e,t,r,n){for(var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=0;o<e.length;o++)"funnel"==r.type?e[o].radius=e[o].data/e[0].data*t*i:e[o].radius=n*(e.length-o)/(n*e.length)*t*i,e[o]._proportion_=e[o].data/e[0].data;return e}function j(e,t,r,n){for(var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=0,a=0,s=[],u=0;u<e.length;u++){var c=e[u];c.data=null===c.data?0:c.data,o+=c.data,s.push(c.data)}for(var f=Math.min.apply(null,s),l=Math.max.apply(null,s),d=n-r,h=0;h<e.length;h++){var p=e[h];p.data=null===p.data?0:p.data,0===o?(p._proportion_=1/e.length*i,p._rose_proportion_=1/e.length*i):(p._proportion_=p.data/o*i,p._rose_proportion_="area"==t?1/e.length*i:p.data/o*i),p._radius_=r+d*((p.data-f)/(l-f))||n}for(var g=0;g<e.length;g++){var y=e[g];y._start_=a,a+=2*y._rose_proportion_*Math.PI}return e}function F(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;1==r&&(r=.999999);for(var n=0;n<e.length;n++){var i=e[n];i.data=null===i.data?0:i.data;var o=void 0;o="circle"==t.type?2:"ccw"==t.direction?t.startAngle<t.endAngle?2+t.startAngle-t.endAngle:t.startAngle-t.endAngle:t.endAngle<t.startAngle?2+t.endAngle-t.startAngle:t.startAngle-t.endAngle,i._proportion_=o*i.data*r+t.startAngle,"ccw"==t.direction&&(i._proportion_=t.startAngle-o*i.data*r),i._proportion_>=2&&(i._proportion_=i._proportion_%2)}return e}function U(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;1==r&&(r=.999999);for(var n=0;n<e.length;n++){var i=e[n];i.data=null===i.data?0:i.data;var o=void 0;o="circle"==t.type?2:t.endAngle<t.startAngle?2+t.endAngle-t.startAngle:t.startAngle-t.endAngle,i._proportion_=o*i.data*r+t.startAngle,i._proportion_>=2&&(i._proportion_=i._proportion_%2)}return e}function z(e,t,r){var n;n=r<t?2+r-t:t-r;for(var i=t,o=0;o<e.length;o++)e[o].value=null===e[o].value?0:e[o].value,e[o]._startAngle_=i,e[o]._endAngle_=n*e[o].value+t,e[o]._endAngle_>=2&&(e[o]._endAngle_=e[o]._endAngle_%2),i=e[o]._endAngle_;return e}function H(e,t,r){for(var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,i=0;i<e.length;i++){var o=e[i];if(o.data=null===o.data?0:o.data,"auto"==r.pointer.color){for(var a=0;a<t.length;a++)if(o.data<=t[a].value){o.color=t[a].color;break}}else o.color=r.pointer.color;var s=void 0;s=r.endAngle<r.startAngle?2+r.endAngle-r.startAngle:r.startAngle-r.endAngle,o._endAngle_=s*o.data+r.startAngle,o._oldAngle_=r.oldAngle,r.oldAngle<r.endAngle&&(o._oldAngle_+=2),o.data>=r.oldData?o._proportion_=(o._endAngle_-o._oldAngle_)*n+r.oldAngle:o._proportion_=o._oldAngle_-(o._oldAngle_-o._endAngle_)*n,o._proportion_>=2&&(o._proportion_=o._proportion_%2)}return e}function q(e,t,r,n,i,o){return e.map((function(e){if(null===e)return null;var i=0,a=0;return"mix"==o.type?(i=o.extra.mix.column.seriesGap*o.pix||0,a=o.extra.mix.column.categoryGap*o.pix||0):(i=o.extra.column.seriesGap*o.pix||0,a=o.extra.column.categoryGap*o.pix||0),i=Math.min(i,t/r),a=Math.min(a,t/r),e.width=Math.ceil((t-2*a-i*(r-1))/r),o.extra.mix&&o.extra.mix.column.width&&+o.extra.mix.column.width>0&&(e.width=Math.min(e.width,+o.extra.mix.column.width*o.pix)),o.extra.column&&o.extra.column.width&&+o.extra.column.width>0&&(e.width=Math.min(e.width,+o.extra.column.width*o.pix)),e.width<=0&&(e.width=1),e.x+=(n+.5-r/2)*(e.width+i),e}))}function V(e,t,r,n,i,o){return e.map((function(e){if(null===e)return null;var i=0,a=0;return i=o.extra.bar.seriesGap*o.pix||0,a=o.extra.bar.categoryGap*o.pix||0,i=Math.min(i,t/r),a=Math.min(a,t/r),e.width=Math.ceil((t-2*a-i*(r-1))/r),o.extra.bar&&o.extra.bar.width&&+o.extra.bar.width>0&&(e.width=Math.min(e.width,+o.extra.bar.width*o.pix)),e.width<=0&&(e.width=1),e.y+=(n+.5-r/2)*(e.width+i),e}))}function W(e,t,r,n,i,o,a){var s=o.extra.column.categoryGap*o.pix||0;return e.map((function(e){return null===e?null:(e.width=t-2*s,o.extra.column&&o.extra.column.width&&+o.extra.column.width>0&&(e.width=Math.min(e.width,+o.extra.column.width*o.pix)),n>0&&(e.width-=a),e)}))}function G(e,t,r,n,i,o,a){var s=o.extra.column.categoryGap*o.pix||0;return e.map((function(e,r){return null===e?null:(e.width=Math.ceil(t-2*s),o.extra.column&&o.extra.column.width&&+o.extra.column.width>0&&(e.width=Math.min(e.width,+o.extra.column.width*o.pix)),e.width<=0&&(e.width=1),e)}))}function X(e,t,r,n,i,o,a){var s=o.extra.bar.categoryGap*o.pix||0;return e.map((function(e,r){return null===e?null:(e.width=Math.ceil(t-2*s),o.extra.bar&&o.extra.bar.width&&+o.extra.bar.width>0&&(e.width=Math.min(e.width,+o.extra.bar.width*o.pix)),e.width<=0&&(e.width=1),e)}))}function K(e,t,r){var n=t.width-t.area[1]-t.area[3],i=t.enableScroll?Math.min(t.xAxis.itemCount,e.length):e.length;("line"==t.type||"area"==t.type||"scatter"==t.type||"bubble"==t.type||"bar"==t.type)&&i>1&&"justify"==t.xAxis.boundaryGap&&(i-=1);var o=0;"mount"==t.type&&t.extra&&t.extra.mount&&t.extra.mount.widthRatio&&t.extra.mount.widthRatio>1&&(t.extra.mount.widthRatio>2&&(t.extra.mount.widthRatio=2),o=t.extra.mount.widthRatio-1,i+=o);var a=n/i,s=[],u=t.area[3],c=t.width-t.area[1];return e.forEach((function(e,t){s.push(u+o/2*a+t*a)})),"justify"!==t.xAxis.boundaryGap&&(!0===t.enableScroll?s.push(u+o*a+e.length*a):s.push(c)),{xAxisPoints:s,startX:u,endX:c,eachSpacing:a}}function $(e,t,r,n,i,o,a){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,u=[],c=o.height-o.area[0]-o.area[2];return e.forEach((function(e,a){if(null===e)u.push(null);else{var f=[];e.forEach((function(e,u){var l={};l.x=n[a]+Math.round(i/2);var d=e.value||e,h=c*(d-t)/(r-t);h*=s,l.y=o.height-Math.round(h)-o.area[2],f.push(l)})),u.push(f)}})),u}function Y(e,t,r,n,i,a,s){var u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,c="center";"line"!=a.type&&"area"!=a.type&&"scatter"!=a.type&&"bubble"!=a.type||(c=a.xAxis.boundaryGap);var f=[],l=a.height-a.area[0]-a.area[2],d=a.width-a.area[1]-a.area[3];return e.forEach((function(e,s){if(null===e)f.push(null);else{var h={};h.color=e.color,h.x=n[s];var p,g,y,v=e;if("object"===(0,o.default)(e)&&null!==e)if(e.constructor.toString().indexOf("Array")>-1)p=[].concat(a.chartData.xAxisData.ranges),g=p.shift(),y=p.pop(),v=e[1],h.x=a.area[3]+d*(e[0]-g)/(y-g),"bubble"==a.type&&(h.r=e[2],h.t=e[3]);else v=e.value;"center"==c&&(h.x+=i/2);var b=l*(v-t)/(r-t);b*=u,h.y=a.height-b-a.area[2],f.push(h)}})),f}function Z(e,t,r,n,i,a,s,u,c){c=arguments.length>8&&void 0!==arguments[8]?arguments[8]:1;var f=a.xAxis.boundaryGap,l=[],d=a.height-a.area[0]-a.area[2],h=a.width-a.area[1]-a.area[3];return e.forEach((function(e,s){if(null===e)l.push(null);else{var p={};if(p.color=e.color,"vertical"==u.animation){p.x=n[s];var g,y,v,b=e;if("object"===(0,o.default)(e)&&null!==e)if(e.constructor.toString().indexOf("Array")>-1)g=[].concat(a.chartData.xAxisData.ranges),y=g.shift(),v=g.pop(),b=e[1],p.x=a.area[3]+h*(e[0]-y)/(v-y);else b=e.value;"center"==f&&(p.x+=i/2);var m=d*(b-t)/(r-t);m*=c,p.y=a.height-m-a.area[2],l.push(p)}else{p.x=n[0]+i*s*c;b=e;"center"==f&&(p.x+=i/2);m=d*(b-t)/(r-t);p.y=a.height-m-a.area[2],l.push(p)}}})),l}function J(e,t,r,n,i,a,s,u,c){c=arguments.length>8&&void 0!==arguments[8]?arguments[8]:1;var f=[],l=a.height-a.area[0]-a.area[2],d=a.width-a.area[1]-a.area[3];return e.forEach((function(e,s){if(null===e)f.push(null);else{var u={};u.color=e.color,u.x=n[s];var h,p,g,y=e;if("object"===(0,o.default)(e)&&null!==e)if(e.constructor.toString().indexOf("Array")>-1)h=[].concat(a.chartData.xAxisData.ranges),p=h.shift(),g=h.pop(),y=e[1],u.x=a.area[3]+d*(e[0]-p)/(g-p);else y=e.value;u.x+=i/2;var v=l*(y*c-t)/(r-t);u.y=a.height-v-a.area[2],f.push(u)}})),f}function Q(e,t,r,n,i,o,a,s){var u=arguments.length>8&&void 0!==arguments[8]?arguments[8]:1,c=[],f=o.height-o.area[0]-o.area[2],l=(o.width,o.area[1],o.area[3],i*a.widthRatio);return e.forEach((function(e,a){if(null===e)c.push(null);else{var s={};s.color=e.color,s.x=n[a],s.x+=i/2;var d=e.data,h=f*(d*u-t)/(r-t);s.y=o.height-h-o.area[2],s.value=d,s.width=l,c.push(s)}})),c}function ee(e,t,r,n,i,a,s){var u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,c=[],f=(a.height,a.area[0],a.area[2],a.width-a.area[1]-a.area[3]);return e.forEach((function(e,i){if(null===e)c.push(null);else{var s={};s.color=e.color,s.y=n[i];var l=e;"object"===(0,o.default)(e)&&null!==e&&(l=e.value);var d=f*(l-t)/(r-t);d*=u,s.height=d,s.value=l,s.x=d+a.area[3],c.push(s)}})),c}function te(e,t,r,n,i,a,s,u,c){var f=arguments.length>9&&void 0!==arguments[9]?arguments[9]:1,l=[],d=a.height-a.area[0]-a.area[2];return e.forEach((function(e,s){if(null===e)l.push(null);else{var h={};if(h.color=e.color,h.x=n[s]+Math.round(i/2),u>0){for(var p=0,g=0;g<=u;g++)p+=c[g].data[s];var y=p-e,v=d*(p-t)/(r-t),b=d*(y-t)/(r-t)}else{p=e;"object"===(0,o.default)(e)&&null!==e&&(p=e.value);v=d*(p-t)/(r-t),b=0}var m=b;v*=f,m*=f,h.y=a.height-Math.round(v)-a.area[2],h.y0=a.height-Math.round(m)-a.area[2],l.push(h)}})),l}function re(e,t,r,n,i,a,s,u,c){var f=arguments.length>9&&void 0!==arguments[9]?arguments[9]:1,l=[],d=a.width-a.area[1]-a.area[3];return e.forEach((function(e,i){if(null===e)l.push(null);else{var s={};if(s.color=e.color,s.y=n[i],u>0){for(var h=0,p=0;p<=u;p++)h+=c[p].data[i];var g=h-e,y=d*(h-t)/(r-t),v=d*(g-t)/(r-t)}else{h=e;"object"===(0,o.default)(e)&&null!==e&&(h=e.value);y=d*(h-t)/(r-t),v=0}var b=v;y*=f,b*=f,s.height=y-b,s.x=a.area[3]+y,s.x0=a.area[3]+b,l.push(s)}})),l}function ne(e,t,r,n,i){var a;a="stack"==n?w(e,t.categories.length):_(e);var s=[];a=a.filter((function(e){return"object"===(0,o.default)(e)&&null!==e?e.constructor.toString().indexOf("Array")>-1?null!==e:null!==e.value:null!==e})),a.map((function(e){"object"===(0,o.default)(e)?e.constructor.toString().indexOf("Array")>-1?"candle"==t.type?e.map((function(e){s.push(e)})):s.push(e[1]):s.push(e.value):s.push(e)}));var u=i.min||0,c=i.max||0;s.length>0&&(u=Math.min.apply(this,s),c=Math.max.apply(this,s)),u===c&&(0==c?c=10:u=0);for(var f=b(u,c),l=void 0===i.min||null===i.min?f.minRange:i.min,d=void 0===i.max||null===i.max?f.maxRange:i.max,h=(d-l)/t.yAxis.splitNumber,p=[],g=0;g<=t.yAxis.splitNumber;g++)p.push(l+h*g);return p.reverse()}function ie(e,t,r,n){var i=s({},{type:""},t.extra.column),o=t.yAxis.data.length,a=new Array(o);if(o>0){for(var c=0;c<o;c++){a[c]=[];for(var f=0;f<e.length;f++)e[f].index==c&&a[c].push(e[f])}for(var l=new Array(o),d=new Array(o),h=new Array(o),p=function(e){var o=t.yAxis.data[e];1==t.yAxis.disabled&&(o.disabled=!0),"categories"===o.type?(o.formatter||(o.formatter=function(e,t,r){return e+(o.unit||"")}),o.categories=o.categories||t.categories,l[e]=o.categories):(o.formatter||(o.formatter=function(e,t,r){return u.toFixed(e,o.tofix||0)+(o.unit||"")}),l[e]=ne(a[e],t,r,i.type,o,e));var s=o.fontSize*t.pix||r.fontSize;h[e]={position:o.position?o.position:"left",width:0},d[e]=l[e].map((function(r,i){return r=o.formatter(r,i,t),h[e].width=Math.max(h[e].width,m(r,s,n)+5),r}));var c=o.calibration?4*t.pix:0;h[e].width+=c+3*t.pix,!0===o.disabled&&(h[e].width=0)},g=0;g<o;g++)p(g)}else{l=new Array(1),d=new Array(1),h=new Array(1);"bar"===t.type?(l[0]=t.categories,t.yAxis.formatter||(t.yAxis.formatter=function(e,t,r){return e+(r.yAxis.unit||"")})):(t.yAxis.formatter||(t.yAxis.formatter=function(e,t,r){return e.toFixed(r.yAxis.tofix)+(r.yAxis.unit||"")}),l[0]=ne(e,t,r,i.type,{})),h[0]={position:"left",width:0};var y=t.yAxis.fontSize*t.pix||r.fontSize;d[0]=l[0].map((function(e,r){return e=t.yAxis.formatter(e,r,t),h[0].width=Math.max(h[0].width,m(e,y,n)+5),e})),h[0].width+=3*t.pix,!0===t.yAxis.disabled?(h[0]={position:"left",width:0},t.yAxis.data[0]={disabled:!0}):(t.yAxis.data[0]={disabled:!1,position:"left",max:t.yAxis.max,min:t.yAxis.min,formatter:t.yAxis.formatter},"bar"===t.type&&(t.yAxis.data[0].categories=t.categories,t.yAxis.data[0].type="categories"))}return{rangesFormat:d,ranges:l,yAxisWidth:h}}function oe(e,t){!0!==t.rotateLock?(e.translate(t.height,0),e.rotate(90*Math.PI/180)):!0!==t._rotate_&&(e.translate(t.height,0),e.rotate(90*Math.PI/180),t._rotate_=!0)}function ae(e,t,r,n,i){if(n.beginPath(),"hollow"==i.dataPointShapeType?(n.setStrokeStyle(t),n.setFillStyle(i.background),n.setLineWidth(2*i.pix)):(n.setStrokeStyle("#ffffff"),n.setFillStyle(t),n.setLineWidth(1*i.pix)),"diamond"===r)e.forEach((function(e,t){null!==e&&(n.moveTo(e.x,e.y-4.5),n.lineTo(e.x-4.5,e.y),n.lineTo(e.x,e.y+4.5),n.lineTo(e.x+4.5,e.y),n.lineTo(e.x,e.y-4.5))}));else if("circle"===r)e.forEach((function(e,t){null!==e&&(n.moveTo(e.x+2.5*i.pix,e.y),n.arc(e.x,e.y,3*i.pix,0,2*Math.PI,!1))}));else if("square"===r)e.forEach((function(e,t){null!==e&&(n.moveTo(e.x-3.5,e.y-3.5),n.rect(e.x-3.5,e.y-3.5,7,7))}));else if("triangle"===r)e.forEach((function(e,t){null!==e&&(n.moveTo(e.x,e.y-4.5),n.lineTo(e.x-4.5,e.y+4.5),n.lineTo(e.x+4.5,e.y+4.5),n.lineTo(e.x,e.y-4.5))}));else if("none"===r)return;n.closePath(),n.fill(),n.stroke()}function se(e,t,r,n,i,o,a){if(i.tooltip&&!(i.tooltip.group.length>0&&0==i.tooltip.group.includes(a))){var s="number"===typeof i.tooltip.index?i.tooltip.index:i.tooltip.index[i.tooltip.group.indexOf(a)];if(n.beginPath(),"hollow"==o.activeType?(n.setStrokeStyle(t),n.setFillStyle(i.background),n.setLineWidth(2*i.pix)):(n.setStrokeStyle("#ffffff"),n.setFillStyle(t),n.setLineWidth(1*i.pix)),"diamond"===r)e.forEach((function(e,t){null!==e&&s==t&&(n.moveTo(e.x,e.y-4.5),n.lineTo(e.x-4.5,e.y),n.lineTo(e.x,e.y+4.5),n.lineTo(e.x+4.5,e.y),n.lineTo(e.x,e.y-4.5))}));else if("circle"===r)e.forEach((function(e,t){null!==e&&s==t&&(n.moveTo(e.x+2.5*i.pix,e.y),n.arc(e.x,e.y,3*i.pix,0,2*Math.PI,!1))}));else if("square"===r)e.forEach((function(e,t){null!==e&&s==t&&(n.moveTo(e.x-3.5,e.y-3.5),n.rect(e.x-3.5,e.y-3.5,7,7))}));else if("triangle"===r)e.forEach((function(e,t){null!==e&&s==t&&(n.moveTo(e.x,e.y-4.5),n.lineTo(e.x-4.5,e.y+4.5),n.lineTo(e.x+4.5,e.y+4.5),n.lineTo(e.x,e.y-4.5))}));else if("none"===r)return;n.closePath(),n.fill(),n.stroke()}}function ue(e,t,r,n){var i=e.title.fontSize||t.titleFontSize,o=e.subtitle.fontSize||t.subtitleFontSize,a=e.title.name||"",s=e.subtitle.name||"",u=e.title.color||e.fontColor,c=e.subtitle.color||e.fontColor,f=a?i:0,l=s?o:0;if(s){var d=m(s,o*e.pix,r),h=n.x-d/2+(e.subtitle.offsetX||0)*e.pix,p=n.y+o*e.pix/2+(e.subtitle.offsetY||0)*e.pix;a&&(p+=(f*e.pix+5)/2),r.beginPath(),r.setFontSize(o*e.pix),r.setFillStyle(c),r.fillText(s,h,p),r.closePath(),r.stroke()}if(a){var g=m(a,i*e.pix,r),y=n.x-g/2+(e.title.offsetX||0),v=n.y+i*e.pix/2+(e.title.offsetY||0)*e.pix;s&&(v-=(l*e.pix+5)/2),r.beginPath(),r.setFontSize(i*e.pix),r.setFillStyle(u),r.fillText(a,y,v),r.closePath(),r.stroke()}}function ce(e,t,r,n,i){var a=t.data,s=t.textOffset?t.textOffset:0;e.forEach((function(e,u){if(null!==e){n.beginPath();var c=t.textSize?t.textSize*i.pix:r.fontSize;n.setFontSize(c),n.setFillStyle(t.textColor||i.fontColor);var f=a[u];"object"===(0,o.default)(a[u])&&null!==a[u]&&(f=a[u].constructor.toString().indexOf("Array")>-1?a[u][1]:a[u].value);var l=t.formatter?t.formatter(f,u,t,i):f;n.setTextAlign("center"),n.fillText(String(l),e.x,e.y-4+s*i.pix),n.closePath(),n.stroke(),n.setTextAlign("left")}}))}function fe(e,t,r,n,i){var a=t.data,s=t.textOffset?t.textOffset:0,u=i.extra.column.labelPosition;e.forEach((function(e,c){if(null!==e){n.beginPath();var f=t.textSize?t.textSize*i.pix:r.fontSize;n.setFontSize(f),n.setFillStyle(t.textColor||i.fontColor);var l=a[c];"object"===(0,o.default)(a[c])&&null!==a[c]&&(l=a[c].constructor.toString().indexOf("Array")>-1?a[c][1]:a[c].value);var d=t.formatter?t.formatter(l,c,t,i):l;n.setTextAlign("center");var h=e.y-4*i.pix+s*i.pix;e.y>t.zeroPoints&&(h=e.y+s*i.pix+f),"insideTop"==u&&(h=e.y+f+s*i.pix,e.y>t.zeroPoints&&(h=e.y-s*i.pix-4*i.pix)),"center"==u&&(h=e.y+s*i.pix+(i.height-i.area[2]-e.y+f)/2,t.zeroPoints<i.height-i.area[2]&&(h=e.y+s*i.pix+(t.zeroPoints-e.y+f)/2),e.y>t.zeroPoints&&(h=e.y-s*i.pix-(e.y-t.zeroPoints-f)/2),"stack"==i.extra.column.type&&(h=e.y+s*i.pix+(e.y0-e.y+f)/2)),"bottom"==u&&(h=i.height-i.area[2]+s*i.pix-4*i.pix,t.zeroPoints<i.height-i.area[2]&&(h=t.zeroPoints+s*i.pix-4*i.pix),e.y>t.zeroPoints&&(h=t.zeroPoints-s*i.pix+f+2*i.pix),"stack"==i.extra.column.type&&(h=e.y0+s*i.pix-4*i.pix)),n.fillText(String(d),e.x,h),n.closePath(),n.stroke(),n.setTextAlign("left")}}))}function le(e,t,r,n,i,o){t.data;var a=t.textOffset?t.textOffset:0;i.extra.mount.labelPosition;e.forEach((function(e,s){if(null!==e){n.beginPath();var u=t[s].textSize?t[s].textSize*i.pix:r.fontSize;n.setFontSize(u),n.setFillStyle(t[s].textColor||i.fontColor);var c=e.value,f=t[s].formatter?t[s].formatter(c,s,t,i):c;n.setTextAlign("center");var l=e.y-4*i.pix+a*i.pix;e.y>o&&(l=e.y+a*i.pix+u),n.fillText(String(f),e.x,l),n.closePath(),n.stroke(),n.setTextAlign("left")}}))}function de(e,t,r,n,i){var a=t.data;t.textOffset&&t.textOffset;e.forEach((function(e,s){if(null!==e){n.beginPath();var u=t.textSize?t.textSize*i.pix:r.fontSize;n.setFontSize(u),n.setFillStyle(t.textColor||i.fontColor);var c=a[s];"object"===(0,o.default)(a[s])&&null!==a[s]&&(c=a[s].value);var f=t.formatter?t.formatter(c,s,t,i):c;n.setTextAlign("left"),n.fillText(String(f),e.x+4*i.pix,e.y+u/2-3),n.closePath(),n.stroke()}}))}function he(e,t,r,n,i,o){var a;t-=e.width/2+e.labelOffset*n.pix,t=t<10?10:t,a=e.endAngle<e.startAngle?2+e.endAngle-e.startAngle:e.startAngle-e.endAngle;for(var s=a/e.splitLine.splitNumber,u=e.endNumber-e.startNumber,c=u/e.splitLine.splitNumber,f=e.startAngle,l=e.startNumber,d=0;d<e.splitLine.splitNumber+1;d++){var h={x:t*Math.cos(f*Math.PI),y:t*Math.sin(f*Math.PI)},p=e.formatter?e.formatter(l,d,n):l;h.x+=r.x-m(p,i.fontSize,o)/2,h.y+=r.y;var g=h.x,y=h.y;o.beginPath(),o.setFontSize(i.fontSize),o.setFillStyle(e.labelColor||n.fontColor),o.fillText(p,g,y+i.fontSize/2),o.closePath(),o.stroke(),f+=s,f>=2&&(f%=2),l+=c}}function pe(e,t,r,n,i,o){var a=n.extra.radar||{};e.forEach((function(e,s){if(!0===a.labelPointShow&&""!==n.categories[s]){var c={x:t*Math.cos(e),y:t*Math.sin(e)},f=p(c.x,c.y,r);o.setFillStyle(a.labelPointColor),o.beginPath(),o.arc(f.x,f.y,a.labelPointRadius*n.pix,0,2*Math.PI,!1),o.closePath(),o.fill()}if(!0===a.labelShow){var l={x:(t+i.radarLabelTextMargin*n.pix)*Math.cos(e),y:(t+i.radarLabelTextMargin*n.pix)*Math.sin(e)},d=p(l.x,l.y,r),h=d.x,g=d.y;u.approximatelyEqual(l.x,0)?h-=m(n.categories[s]||"",i.fontSize,o)/2:l.x<0&&(h-=m(n.categories[s]||"",i.fontSize,o)),o.beginPath(),o.setFontSize(i.fontSize),o.setFillStyle(a.labelColor||n.fontColor),o.fillText(n.categories[s]||"",h,g+i.fontSize/2),o.closePath(),o.stroke()}}))}function ge(e,t,r,n,i,o){for(var a=r.pieChartLinePadding,s=[],c=null,f=e.map((function(r,n){var i=r.formatter?r.formatter(r,n,e,t):u.toFixed(100*r._proportion_.toFixed(4))+"%";i=r.labelText?r.labelText:i;var o=2*Math.PI-(r._start_+2*Math.PI*r._proportion_/2);r._rose_proportion_&&(o=2*Math.PI-(r._start_+2*Math.PI*r._rose_proportion_/2));var a=r.color,s=r._radius_;return{arc:o,text:i,color:a,radius:s,textColor:r.textColor,textSize:r.textSize,labelShow:r.labelShow}})),l=0;l<f.length;l++){var d=f[l],h=Math.cos(d.arc)*(d.radius+a),y=Math.sin(d.arc)*(d.radius+a),v=Math.cos(d.arc)*d.radius,b=Math.sin(d.arc)*d.radius,_=h>=0?h+r.pieChartTextPadding:h-r.pieChartTextPadding,w=y,A=m(d.text,d.textSize*t.pix||r.fontSize,n),S=w;c&&u.isSameXCoordinateArea(c.start,{x:_})&&(S=_>0?Math.min(w,c.start.y):h<0||w>0?Math.max(w,c.start.y):Math.min(w,c.start.y)),_<0&&(_-=A);var x={lineStart:{x:v,y:b},lineEnd:{x:h,y:y},start:{x:_,y:S},width:A,height:r.fontSize,text:d.text,color:d.color,textColor:d.textColor,textSize:d.textSize};c=g(x,c),s.push(c)}for(var E=0;E<s.length;E++)if(!1!==f[E].labelShow){var C=s[E],O=p(C.lineStart.x,C.lineStart.y,o),I=p(C.lineEnd.x,C.lineEnd.y,o),T=p(C.start.x,C.start.y,o);n.setLineWidth(1*t.pix),n.setFontSize(C.textSize*t.pix||r.fontSize),n.beginPath(),n.setStrokeStyle(C.color),n.setFillStyle(C.color),n.moveTo(O.x,O.y);var P=C.start.x<0?T.x+C.width:T.x,M=C.start.x<0?T.x-5:T.x+5;n.quadraticCurveTo(I.x,I.y,P,T.y),n.moveTo(O.x,O.y),n.stroke(),n.closePath(),n.beginPath(),n.moveTo(T.x+C.width,T.y),n.arc(P,T.y,2*t.pix,0,2*Math.PI),n.closePath(),n.fill(),n.beginPath(),n.setFontSize(C.textSize*t.pix||r.fontSize),n.setFillStyle(C.textColor||t.fontColor),n.fillText(C.text,M,T.y+3),n.closePath(),n.stroke(),n.closePath()}}function ye(e,t,r){for(var n=s({},{type:"solid",dashLength:4,data:[]},e.extra.markLine),i=e.area[3],o=e.width-e.area[1],a=function(e,t){for(var r,n,i=t.height-t.area[0]-t.area[2],o=0;o<e.length;o++){e[o].yAxisIndex=e[o].yAxisIndex?e[o].yAxisIndex:0;var a=[].concat(t.chartData.yAxisData.ranges[e[o].yAxisIndex]);r=a.pop(),n=a.shift();var s=i*(e[o].value-r)/(n-r);e[o].y=t.height-Math.round(s)-t.area[2]}return e}(n.data,e),u=0;u<a.length;u++){var f=s({},{lineColor:"#DE4A42",showLabel:!1,labelFontSize:13,labelPadding:6,labelFontColor:"#666666",labelBgColor:"#DFE8FF",labelBgOpacity:.8,labelAlign:"left",labelOffsetX:0,labelOffsetY:0},a[u]);if("dash"==n.type&&r.setLineDash([n.dashLength,n.dashLength]),r.setStrokeStyle(f.lineColor),r.setLineWidth(1*e.pix),r.beginPath(),r.moveTo(i,f.y),r.lineTo(o,f.y),r.stroke(),r.setLineDash([]),f.showLabel){var l=f.labelFontSize*e.pix,d=f.labelText?f.labelText:f.value;r.setFontSize(l);var h=m(d,l,r),p=h+f.labelPadding*e.pix*2,g="left"==f.labelAlign?e.area[3]-p:e.width-e.area[1];g+=f.labelOffsetX;var y=f.y-.5*l-f.labelPadding*e.pix;y+=f.labelOffsetY;var v=g+f.labelPadding*e.pix;f.y;r.setFillStyle(c(f.labelBgColor,f.labelBgOpacity)),r.setStrokeStyle(f.labelBgColor),r.setLineWidth(1*e.pix),r.beginPath(),r.rect(g,y,p,l+2*f.labelPadding*e.pix),r.closePath(),r.stroke(),r.fill(),r.setFontSize(l),r.setTextAlign("left"),r.setFillStyle(f.labelFontColor),r.fillText(String(d),v,y+l+f.labelPadding*e.pix/2),r.stroke(),r.setTextAlign("left")}}}function ve(e,t,r,n,i){var o=s({},{gridType:"solid",dashLength:4},e.extra.tooltip),a=e.area[3],u=e.width-e.area[1];if("dash"==o.gridType&&r.setLineDash([o.dashLength,o.dashLength]),r.setStrokeStyle(o.gridColor||"#cccccc"),r.setLineWidth(1*e.pix),r.beginPath(),r.moveTo(a,e.tooltip.offset.y),r.lineTo(u,e.tooltip.offset.y),r.stroke(),r.setLineDash([]),o.yAxisLabel)for(var f=o.boxPadding*e.pix,l=function(e,t,r,n,i){for(var o=[].concat(r.chartData.yAxisData.ranges),a=r.height-r.area[0]-r.area[2],s=r.area[0],u=[],c=0;c<o.length;c++){var f=Math.max.apply(this,o[c]),l=Math.min.apply(this,o[c]),d=f-(f-l)*(e-s)/a;d=r.yAxis.data&&r.yAxis.data[c].formatter?r.yAxis.data[c].formatter(d,c,r):d.toFixed(0),u.push(String(d))}return u}(e.tooltip.offset.y,e.series,e),d=e.chartData.yAxisData.yAxisWidth,h=e.area[3],p=e.width-e.area[1],g=0;g<l.length;g++){r.setFontSize(o.fontSize*e.pix);var y,v=m(l[g],o.fontSize*e.pix,r),b=void 0,_=void 0;"left"==d[g].position?(b=h-(v+2*f)-2*e.pix,_=Math.max(b,b+v+2*f)):(b=p+2*e.pix,_=Math.max(b+d[g].width,b+v+2*f)),y=_-b;var w=b+(y-v)/2,A=e.tooltip.offset.y;r.beginPath(),r.setFillStyle(c(o.labelBgColor||t.toolTipBackground,o.labelBgOpacity||t.toolTipOpacity)),r.setStrokeStyle(o.labelBgColor||t.toolTipBackground),r.setLineWidth(1*e.pix),r.rect(b,A-.5*t.fontSize-f,y,t.fontSize+2*f),r.closePath(),r.stroke(),r.fill(),r.beginPath(),r.setFontSize(t.fontSize),r.setFillStyle(o.labelFontColor||e.fontColor),r.fillText(l[g],w,A+.5*t.fontSize),r.closePath(),r.stroke(),"left"==d[g].position?h-=d[g].width+e.yAxis.padding*e.pix:p+=d[g].width+e.yAxis.padding*e.pix}}function be(e,t,r,n,i){var o=s({},{activeBgColor:"#000000",activeBgOpacity:.08,activeWidth:i},t.extra.column);o.activeWidth=o.activeWidth>i?i:o.activeWidth;var a=t.area[0],u=t.height-t.area[2];n.beginPath(),n.setFillStyle(c(o.activeBgColor,o.activeBgOpacity)),n.rect(e-o.activeWidth/2,a,o.activeWidth,u-a),n.closePath(),n.fill(),n.setFillStyle("#FFFFFF")}function me(e,t,r,n,i){var o=s({},{activeBgColor:"#000000",activeBgOpacity:.08},t.extra.bar),a=t.area[3],u=t.width-t.area[1];n.beginPath(),n.setFillStyle(c(o.activeBgColor,o.activeBgOpacity)),n.rect(a,e-i/2,u-a,i),n.closePath(),n.fill(),n.setFillStyle("#FFFFFF")}function _e(e,t,r,n,i,o,a){var u=s({},{showBox:!0,showArrow:!0,showCategory:!1,bgColor:"#000000",bgOpacity:.7,borderColor:"#000000",borderWidth:0,borderRadius:0,borderOpacity:.7,boxPadding:3,fontColor:"#FFFFFF",fontSize:13,lineHeight:20,legendShow:!0,legendShape:"auto",splitLine:!0},r.extra.tooltip);1==u.showCategory&&r.categories&&e.unshift({text:r.categories[r.tooltip.index],color:null});var f=u.fontSize*r.pix,l=u.lineHeight*r.pix,d=u.boxPadding*r.pix,h=f,p=5*r.pix;0==u.legendShow&&(h=0,p=0);var g=u.showArrow?8*r.pix:0,y=!1;"line"!=r.type&&"mount"!=r.type&&"area"!=r.type&&"candle"!=r.type&&"mix"!=r.type||1==u.splitLine&&function(e,t,r,n){var i=t.extra.tooltip||{};i.gridType=void 0==i.gridType?"solid":i.gridType,i.dashLength=void 0==i.dashLength?4:i.dashLength;var o=t.area[0],a=t.height-t.area[2];if("dash"==i.gridType&&n.setLineDash([i.dashLength,i.dashLength]),n.setStrokeStyle(i.gridColor||"#cccccc"),n.setLineWidth(1*t.pix),n.beginPath(),n.moveTo(e,o),n.lineTo(e,a),n.stroke(),n.setLineDash([]),i.xAxisLabel){var s=t.categories[t.tooltip.index];n.setFontSize(r.fontSize);var u=m(s,r.fontSize,n),f=e-.5*u,l=a+2*t.pix;n.beginPath(),n.setFillStyle(c(i.labelBgColor||r.toolTipBackground,i.labelBgOpacity||r.toolTipOpacity)),n.setStrokeStyle(i.labelBgColor||r.toolTipBackground),n.setLineWidth(1*t.pix),n.rect(f-i.boxPadding*t.pix,l,u+2*i.boxPadding*t.pix,r.fontSize+2*i.boxPadding*t.pix),n.closePath(),n.stroke(),n.fill(),n.beginPath(),n.setFontSize(r.fontSize),n.setFillStyle(i.labelFontColor||t.fontColor),n.fillText(String(s),f,l+i.boxPadding*t.pix+r.fontSize),n.closePath(),n.stroke()}}(r.tooltip.offset.x,r,n,i),t=s({x:0,y:0},t),t.y-=8*r.pix;var v=e.map((function(e){return m(e.text,f,i)})),b=h+p+4*d+Math.max.apply(null,v),_=2*d+e.length*l;if(0!=u.showBox){t.x-Math.abs(r._scrollDistance_||0)+g+b>r.width&&(y=!0),_+t.y>r.height&&(t.y=r.height-_),i.beginPath(),i.setFillStyle(c(u.bgColor,u.bgOpacity)),i.setLineWidth(u.borderWidth*r.pix),i.setStrokeStyle(c(u.borderColor,u.borderOpacity));var w=u.borderRadius;y?(b+g>r.width&&(t.x=r.width+Math.abs(r._scrollDistance_||0)+g+(b-r.width)),b>t.x&&(t.x=r.width+Math.abs(r._scrollDistance_||0)+g+(b-r.width)),u.showArrow&&(i.moveTo(t.x,t.y+10*r.pix),i.lineTo(t.x-g,t.y+10*r.pix+5*r.pix)),i.arc(t.x-g-w,t.y+_-w,w,0,Math.PI/2,!1),i.arc(t.x-g-Math.round(b)+w,t.y+_-w,w,Math.PI/2,Math.PI,!1),i.arc(t.x-g-Math.round(b)+w,t.y+w,w,-Math.PI,-Math.PI/2,!1),i.arc(t.x-g-w,t.y+w,w,-Math.PI/2,0,!1),u.showArrow&&(i.lineTo(t.x-g,t.y+10*r.pix-5*r.pix),i.lineTo(t.x,t.y+10*r.pix))):(u.showArrow&&(i.moveTo(t.x,t.y+10*r.pix),i.lineTo(t.x+g,t.y+10*r.pix-5*r.pix)),i.arc(t.x+g+w,t.y+w,w,-Math.PI,-Math.PI/2,!1),i.arc(t.x+g+Math.round(b)-w,t.y+w,w,-Math.PI/2,0,!1),i.arc(t.x+g+Math.round(b)-w,t.y+_-w,w,0,Math.PI/2,!1),i.arc(t.x+g+w,t.y+_-w,w,Math.PI/2,Math.PI,!1),u.showArrow&&(i.lineTo(t.x+g,t.y+10*r.pix+5*r.pix),i.lineTo(t.x,t.y+10*r.pix))),i.closePath(),i.fill(),u.borderWidth>0&&i.stroke(),u.legendShow&&e.forEach((function(e,n){if(null!==e.color){i.beginPath(),i.setFillStyle(e.color);var o=t.x+g+2*d,a=t.y+(l-f)/2+l*n+d+1;switch(y&&(o=t.x-b-g+2*d),e.legendShape){case"line":i.moveTo(o,a+.5*h-2*r.pix),i.fillRect(o,a+.5*h-2*r.pix,h,4*r.pix);break;case"triangle":i.moveTo(o+7.5*r.pix,a+.5*h-5*r.pix),i.lineTo(o+2.5*r.pix,a+.5*h+5*r.pix),i.lineTo(o+12.5*r.pix,a+.5*h+5*r.pix),i.lineTo(o+7.5*r.pix,a+.5*h-5*r.pix);break;case"diamond":i.moveTo(o+7.5*r.pix,a+.5*h-5*r.pix),i.lineTo(o+2.5*r.pix,a+.5*h),i.lineTo(o+7.5*r.pix,a+.5*h+5*r.pix),i.lineTo(o+12.5*r.pix,a+.5*h),i.lineTo(o+7.5*r.pix,a+.5*h-5*r.pix);break;case"circle":i.moveTo(o+7.5*r.pix,a+.5*h),i.arc(o+7.5*r.pix,a+.5*h,5*r.pix,0,2*Math.PI);break;case"rect":i.moveTo(o,a+.5*h-5*r.pix),i.fillRect(o,a+.5*h-5*r.pix,15*r.pix,10*r.pix);break;case"square":i.moveTo(o+2*r.pix,a+.5*h-5*r.pix),i.fillRect(o+2*r.pix,a+.5*h-5*r.pix,10*r.pix,10*r.pix);break;default:i.moveTo(o,a+.5*h-5*r.pix),i.fillRect(o,a+.5*h-5*r.pix,15*r.pix,10*r.pix)}i.closePath(),i.fill()}})),e.forEach((function(e,r){var n=t.x+g+2*d+h+p;y&&(n=t.x-b-g+2*d+h+p);var o=t.y+l*r+(l-f)/2-1+d+f;i.beginPath(),i.setFontSize(f),i.setTextBaseline("normal"),i.setFillStyle(u.fontColor),i.fillText(e.text,n,o),i.closePath(),i.stroke()}))}}function we(e,t,r,n,i,o){var a=e.extra.tooltip||{};a.horizentalLine&&e.tooltip&&1===n&&("line"==e.type||"area"==e.type||"column"==e.type||"mount"==e.type||"candle"==e.type||"mix"==e.type)&&ve(e,t,r),r.save(),e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&r.translate(e._scrollDistance_,0),e.tooltip&&e.tooltip.textList&&e.tooltip.textList.length&&1===n&&_e(e.tooltip.textList,e.tooltip.offset,e,t,r),r.restore()}function Ae(e,t,r,n){var i=t.chartData.xAxisData,o=i.xAxisPoints,a=i.startX,s=i.endX,u=i.eachSpacing,c="center";"bar"!=t.type&&"line"!=t.type&&"area"!=t.type&&"scatter"!=t.type&&"bubble"!=t.type||(c=t.xAxis.boundaryGap);var f=t.height-t.area[2],l=t.area[0];if(t.enableScroll&&t.xAxis.scrollShow){var d=t.height-t.area[2]+r.xAxisHeight,h=s-a,p=u*(o.length-1);"mount"==t.type&&t.extra&&t.extra.mount&&t.extra.mount.widthRatio&&t.extra.mount.widthRatio>1&&(t.extra.mount.widthRatio>2&&(t.extra.mount.widthRatio=2),p+=(t.extra.mount.widthRatio-1)*u);var g=h*h/p,y=0;t._scrollDistance_&&(y=-t._scrollDistance_*h/p),n.beginPath(),n.setLineCap("round"),n.setLineWidth(6*t.pix),n.setStrokeStyle(t.xAxis.scrollBackgroundColor||"#EFEBEF"),n.moveTo(a,d),n.lineTo(s,d),n.stroke(),n.closePath(),n.beginPath(),n.setLineCap("round"),n.setLineWidth(6*t.pix),n.setStrokeStyle(t.xAxis.scrollColor||"#A6A6A6"),n.moveTo(a+y,d),n.lineTo(a+y+g,d),n.stroke(),n.closePath(),n.setLineCap("butt")}if(n.save(),t._scrollDistance_&&0!==t._scrollDistance_&&n.translate(t._scrollDistance_,0),!0===t.xAxis.calibration&&(n.setStrokeStyle(t.xAxis.gridColor||"#cccccc"),n.setLineCap("butt"),n.setLineWidth(1*t.pix),o.forEach((function(e,r){r>0&&(n.beginPath(),n.moveTo(e-u/2,f),n.lineTo(e-u/2,f+3*t.pix),n.closePath(),n.stroke())}))),!0!==t.xAxis.disableGrid&&(n.setStrokeStyle(t.xAxis.gridColor||"#cccccc"),n.setLineCap("butt"),n.setLineWidth(1*t.pix),"dash"==t.xAxis.gridType&&n.setLineDash([t.xAxis.dashLength*t.pix,t.xAxis.dashLength*t.pix]),t.xAxis.gridEval=t.xAxis.gridEval||1,o.forEach((function(e,r){r%t.xAxis.gridEval==0&&(n.beginPath(),n.moveTo(e,f),n.lineTo(e,l),n.stroke())})),n.setLineDash([])),!0!==t.xAxis.disabled){var v=e.length;t.xAxis.labelCount&&(v=t.xAxis.itemCount?Math.ceil(e.length/t.xAxis.itemCount*t.xAxis.labelCount):t.xAxis.labelCount,v-=1);for(var b=Math.ceil(e.length/v),_=[],w=e.length,A=0;A<w;A++)A%b!==0?_.push(""):_.push(e[A]);_[w-1]=e[w-1];var S=t.xAxis.fontSize*t.pix||r.fontSize;0===r._xAxisTextAngle_?_.forEach((function(e,r){var i=t.xAxis.formatter?t.xAxis.formatter(e,r,t):e,a=-m(String(i),S,n)/2;"center"==c&&(a+=u/2);t.xAxis.scrollShow&&t.pix;var s=t._scrollDistance_||0,l="center"==c?o[r]+u/2:o[r];l-Math.abs(s)>=t.area[3]-1&&l-Math.abs(s)<=t.width-t.area[1]+1&&(n.beginPath(),n.setFontSize(S),n.setFillStyle(t.xAxis.fontColor||t.fontColor),n.fillText(String(i),o[r]+a,f+t.xAxis.marginTop*t.pix+(t.xAxis.lineHeight-t.xAxis.fontSize)*t.pix/2+t.xAxis.fontSize*t.pix),n.closePath(),n.stroke())})):_.forEach((function(e,i){var a=t.xAxis.formatter?t.xAxis.formatter(e):e,s=t._scrollDistance_||0,l="center"==c?o[i]+u/2:o[i];if(l-Math.abs(s)>=t.area[3]-1&&l-Math.abs(s)<=t.width-t.area[1]+1){n.save(),n.beginPath(),n.setFontSize(S),n.setFillStyle(t.xAxis.fontColor||t.fontColor);var d=m(String(a),S,n),h=o[i];"center"==c&&(h=o[i]+u/2);t.xAxis.scrollShow&&6*t.pix;var p=f+t.xAxis.marginTop*t.pix+S-S*Math.abs(Math.sin(r._xAxisTextAngle_));t.xAxis.rotateAngle<0?(h-=S/2,d=0):(h+=S/2,d=-d),n.translate(h,p),n.rotate(-1*r._xAxisTextAngle_),n.fillText(String(a),d,0),n.closePath(),n.stroke(),n.restore()}}))}n.restore(),t.xAxis.title&&(n.beginPath(),n.setFontSize(t.xAxis.titleFontSize*t.pix),n.setFillStyle(t.xAxis.titleFontColor),n.fillText(String(t.xAxis.title),t.width-t.area[1]+t.xAxis.titleOffsetX*t.pix,t.height-t.area[2]+t.xAxis.marginTop*t.pix+(t.xAxis.lineHeight-t.xAxis.titleFontSize)*t.pix/2+(t.xAxis.titleFontSize+t.xAxis.titleOffsetY)*t.pix),n.closePath(),n.stroke()),t.xAxis.axisLine&&(n.beginPath(),n.setStrokeStyle(t.xAxis.axisLineColor),n.setLineWidth(1*t.pix),n.moveTo(a,t.height-t.area[2]),n.lineTo(s,t.height-t.area[2]),n.stroke())}function Se(e,t,r,n){if(!0!==t.yAxis.disableGrid){var i=t.height-t.area[0]-t.area[2],o=i/t.yAxis.splitNumber,a=t.area[3],s=t.chartData.xAxisData.xAxisPoints,u=t.chartData.xAxisData.eachSpacing,c=u*(s.length-1);"mount"==t.type&&t.extra&&t.extra.mount&&t.extra.mount.widthRatio&&t.extra.mount.widthRatio>1&&(t.extra.mount.widthRatio>2&&(t.extra.mount.widthRatio=2),c+=(t.extra.mount.widthRatio-1)*u);var f=a+c,l=[],d=1;!1===t.xAxis.axisLine&&(d=0);for(var h=d;h<t.yAxis.splitNumber+1;h++)l.push(t.height-t.area[2]-o*h);n.save(),t._scrollDistance_&&0!==t._scrollDistance_&&n.translate(t._scrollDistance_,0),"dash"==t.yAxis.gridType&&n.setLineDash([t.yAxis.dashLength*t.pix,t.yAxis.dashLength*t.pix]),n.setStrokeStyle(t.yAxis.gridColor),n.setLineWidth(1*t.pix),l.forEach((function(e,t){n.beginPath(),n.moveTo(a,e),n.lineTo(f,e),n.stroke()})),n.setLineDash([]),n.restore()}}function xe(e,t,r,n){if(!0!==t.yAxis.disabled){var i=t.height-t.area[0]-t.area[2],o=i/t.yAxis.splitNumber,a=t.area[3],s=t.width-t.area[1],u=t.height-t.area[2];n.beginPath(),n.setFillStyle(t.background),1==t.enableScroll&&t.xAxis.scrollPosition&&"left"!==t.xAxis.scrollPosition&&n.fillRect(0,0,a,u+2*t.pix),1==t.enableScroll&&t.xAxis.scrollPosition&&"right"!==t.xAxis.scrollPosition&&n.fillRect(s,0,t.width,u+2*t.pix),n.closePath(),n.stroke();var c=t.area[3],f=t.width-t.area[1],l=t.area[3]+(t.width-t.area[1]-t.area[3])/2;if(t.yAxis.data)for(var d=function(e){var a=t.yAxis.data[e];if(p=[],"categories"===a.type)for(var s=0;s<=a.categories.length;s++)p.push(t.area[0]+i/a.categories.length/2+i/a.categories.length*s);else for(var u=0;u<=t.yAxis.splitNumber;u++)p.push(t.area[0]+o*u);if(!0!==a.disabled){var d=t.chartData.yAxisData.rangesFormat[e],h=a.fontSize?a.fontSize*t.pix:r.fontSize,g=t.chartData.yAxisData.yAxisWidth[e],y=a.textAlign||"right";if(d.forEach((function(e,r){var i=p[r];n.beginPath(),n.setFontSize(h),n.setLineWidth(1*t.pix),n.setStrokeStyle(a.axisLineColor||"#cccccc"),n.setFillStyle(a.fontColor||t.fontColor);var o=0,s=4*t.pix;if("left"==g.position){switch(1==a.calibration&&(n.moveTo(c,i),n.lineTo(c-3*t.pix,i),s+=3*t.pix),y){case"left":n.setTextAlign("left"),o=c-g.width;break;case"right":n.setTextAlign("right"),o=c-s;break;default:n.setTextAlign("center"),o=c-g.width/2}n.fillText(String(e),o,i+h/2-3*t.pix)}else if("right"==g.position){switch(1==a.calibration&&(n.moveTo(f,i),n.lineTo(f+3*t.pix,i),s+=3*t.pix),y){case"left":n.setTextAlign("left"),o=f+s;break;case"right":n.setTextAlign("right"),o=f+g.width;break;default:n.setTextAlign("center"),o=f+g.width/2}n.fillText(String(e),o,i+h/2-3*t.pix)}else if("center"==g.position){switch(1==a.calibration&&(n.moveTo(l,i),n.lineTo(l-3*t.pix,i),s+=3*t.pix),y){case"left":n.setTextAlign("left"),o=l-g.width;break;case"right":n.setTextAlign("right"),o=l-s;break;default:n.setTextAlign("center"),o=l-g.width/2}n.fillText(String(e),o,i+h/2-3*t.pix)}n.closePath(),n.stroke(),n.setTextAlign("left")})),!1!==a.axisLine&&(n.beginPath(),n.setStrokeStyle(a.axisLineColor||"#cccccc"),n.setLineWidth(1*t.pix),"left"==g.position?(n.moveTo(c,t.height-t.area[2]),n.lineTo(c,t.area[0])):"right"==g.position?(n.moveTo(f,t.height-t.area[2]),n.lineTo(f,t.area[0])):"center"==g.position&&(n.moveTo(l,t.height-t.area[2]),n.lineTo(l,t.area[0])),n.stroke()),t.yAxis.showTitle){var v=a.titleFontSize*t.pix||r.fontSize,b=a.title;n.beginPath(),n.setFontSize(v),n.setFillStyle(a.titleFontColor||t.fontColor),"left"==g.position?n.fillText(b,c-m(b,v,n)/2+(a.titleOffsetX||0),t.area[0]-(10-(a.titleOffsetY||0))*t.pix):"right"==g.position?n.fillText(b,f-m(b,v,n)/2+(a.titleOffsetX||0),t.area[0]-(10-(a.titleOffsetY||0))*t.pix):"center"==g.position&&n.fillText(b,l-m(b,v,n)/2+(a.titleOffsetX||0),t.area[0]-(10-(a.titleOffsetY||0))*t.pix),n.closePath(),n.stroke()}"left"==g.position?c-=g.width+t.yAxis.padding*t.pix:f+=g.width+t.yAxis.padding*t.pix}},h=0;h<t.yAxis.data.length;h++){var p;d(h)}}}function Ee(e,t,r,n,i){if(!1!==t.legend.show){var o=i.legendData,a=o.points,s=o.area,u=t.legend.padding*t.pix,c=t.legend.fontSize*t.pix,f=15*t.pix,l=5*t.pix,d=t.legend.itemGap*t.pix,h=Math.max(t.legend.lineHeight*t.pix,c);n.beginPath(),n.setLineWidth(t.legend.borderWidth*t.pix),n.setStrokeStyle(t.legend.borderColor),n.setFillStyle(t.legend.backgroundColor),n.moveTo(s.start.x,s.start.y),n.rect(s.start.x,s.start.y,s.width,s.height),n.closePath(),n.fill(),n.stroke(),a.forEach((function(e,i){var a,p=0;p=o.widthArr[i],a=o.heightArr[i];var g=0,y=0;if("top"==t.legend.position||"bottom"==t.legend.position){switch(t.legend.float){case"left":g=s.start.x+u;break;case"right":g=s.start.x+s.width-p;break;default:g=s.start.x+(s.width-p)/2}y=s.start.y+u+i*h}else p=0==i?0:o.widthArr[i-1],g=s.start.x+u+p,y=s.start.y+u+(s.height-a)/2;n.setFontSize(r.fontSize);for(var v=0;v<e.length;v++){var b=e[v];switch(b.area=[0,0,0,0],b.area[0]=g,b.area[1]=y,b.area[3]=y+h,n.beginPath(),n.setLineWidth(1*t.pix),n.setStrokeStyle(b.show?b.color:t.legend.hiddenColor),n.setFillStyle(b.show?b.color:t.legend.hiddenColor),b.legendShape){case"line":n.moveTo(g,y+.5*h-2*t.pix),n.fillRect(g,y+.5*h-2*t.pix,15*t.pix,4*t.pix);break;case"triangle":n.moveTo(g+7.5*t.pix,y+.5*h-5*t.pix),n.lineTo(g+2.5*t.pix,y+.5*h+5*t.pix),n.lineTo(g+12.5*t.pix,y+.5*h+5*t.pix),n.lineTo(g+7.5*t.pix,y+.5*h-5*t.pix);break;case"diamond":n.moveTo(g+7.5*t.pix,y+.5*h-5*t.pix),n.lineTo(g+2.5*t.pix,y+.5*h),n.lineTo(g+7.5*t.pix,y+.5*h+5*t.pix),n.lineTo(g+12.5*t.pix,y+.5*h),n.lineTo(g+7.5*t.pix,y+.5*h-5*t.pix);break;case"circle":n.moveTo(g+7.5*t.pix,y+.5*h),n.arc(g+7.5*t.pix,y+.5*h,5*t.pix,0,2*Math.PI);break;case"rect":n.moveTo(g,y+.5*h-5*t.pix),n.fillRect(g,y+.5*h-5*t.pix,15*t.pix,10*t.pix);break;case"square":n.moveTo(g+5*t.pix,y+.5*h-5*t.pix),n.fillRect(g+5*t.pix,y+.5*h-5*t.pix,10*t.pix,10*t.pix);break;case"none":break;default:n.moveTo(g,y+.5*h-5*t.pix),n.fillRect(g,y+.5*h-5*t.pix,15*t.pix,10*t.pix)}n.closePath(),n.fill(),n.stroke(),g+=f+l;var _=.5*h+.5*c-2,w=b.legendText?b.legendText:b.name;n.beginPath(),n.setFontSize(c),n.setFillStyle(b.show?t.legend.fontColor:t.legend.hiddenColor),n.fillText(w,g,y+_),n.closePath(),n.stroke(),"top"==t.legend.position||"bottom"==t.legend.position?(g+=m(w,c,n)+d,b.area[2]=g):(b.area[2]=g+m(w,c,n)+d,g-=f+l,y+=h)}}))}}function Ce(e,t,r,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=s({},{activeOpacity:.5,activeRadius:10,offsetAngle:0,labelWidth:15,ringWidth:30,customRadius:0,border:!1,borderWidth:2,borderColor:"#FFFFFF",centerColor:"#FFFFFF",linearType:"none",customColor:[]},"pie"==t.type?t.extra.pie:t.extra.ring),a={x:t.area[3]+(t.width-t.area[1]-t.area[3])/2,y:t.area[0]+(t.height-t.area[0]-t.area[2])/2};0==r.pieChartLinePadding&&(r.pieChartLinePadding=o.activeRadius*t.pix);var u=Math.min((t.width-t.area[1]-t.area[3])/2-r.pieChartLinePadding-r.pieChartTextPadding-r._pieTextMaxLength_,(t.height-t.area[0]-t.area[2])/2-r.pieChartLinePadding-r.pieChartTextPadding);u=u<10?10:u,o.customRadius>0&&(u=o.customRadius*t.pix),e=B(e,u,i);var f=o.activeRadius*t.pix;if(o.customColor=v(o.linearType,o.customColor,e,r),e=e.map((function(e){return e._start_+=o.offsetAngle*Math.PI/180,e})),e.forEach((function(e,r){t.tooltip&&t.tooltip.index==r&&(n.beginPath(),n.setFillStyle(c(e.color,o.activeOpacity||.5)),n.moveTo(a.x,a.y),n.arc(a.x,a.y,e._radius_+f,e._start_,e._start_+2*e._proportion_*Math.PI),n.closePath(),n.fill()),n.beginPath(),n.setLineWidth(o.borderWidth*t.pix),n.lineJoin="round",n.setStrokeStyle(o.borderColor);var i,s=e.color;"custom"==o.linearType&&(i=n.createCircularGradient?n.createCircularGradient(a.x,a.y,e._radius_):n.createRadialGradient(a.x,a.y,0,a.x,a.y,e._radius_),i.addColorStop(0,c(o.customColor[e.linearIndex],1)),i.addColorStop(1,c(e.color,1)),s=i);n.setFillStyle(s),n.moveTo(a.x,a.y),n.arc(a.x,a.y,e._radius_,e._start_,e._start_+2*e._proportion_*Math.PI),n.closePath(),n.fill(),1==o.border&&n.stroke()})),"ring"===t.type){var l=.6*u;"number"===typeof o.ringWidth&&o.ringWidth>0&&(l=Math.max(0,u-o.ringWidth*t.pix)),n.beginPath(),n.setFillStyle(o.centerColor),n.moveTo(a.x,a.y),n.arc(a.x,a.y,l,0,2*Math.PI),n.closePath(),n.fill()}return!1!==t.dataLabel&&1===i&&ge(e,t,r,n,0,a),1===i&&"ring"===t.type&&ue(t,r,n,a),{center:a,radius:u,series:e}}function Oe(e,t){var r=Array(2),n=20037508.34*e/180,i=Math.log(Math.tan((90+t)*Math.PI/360))/(Math.PI/180);return i=20037508.34*i/180,r[0]=n,r[1]=i,r}function Ie(e,t,r,n,i,o){return{x:(t-r.xMin)*n+i,y:(r.yMax-e)*n+o}}function Te(e,t,r){if(t[1]==r[1])return!1;if(t[1]>e[1]&&r[1]>e[1])return!1;if(t[1]<e[1]&&r[1]<e[1])return!1;if(t[1]==e[1]&&r[1]>e[1])return!1;if(r[1]==e[1]&&t[1]>e[1])return!1;if(t[0]<e[0]&&r[1]<e[1])return!1;var n=r[0]-(r[0]-t[0])*(r[1]-e[1])/(r[1]-t[1]);return!(n<e[0])}function Pe(e,t,r){for(var n=0,i=0;i<t.length;i++){var o=t[i][0];1==t.length&&(o=t[i][0]);for(var a=0;a<o.length-1;a++){var s=o[a],u=o[a+1];r&&(s=Oe(o[a][0],o[a][1]),u=Oe(o[a+1][0],o[a+1][1])),Te(e,s,u)&&(n+=1)}}return n%2==1}function Me(e,t,r){r=0==r?1:r;for(var n=[],i=0;i<r;i++)n[i]=Math.random();return Math.floor(n.reduce((function(e,t){return e+t}))/r*(t-e))+e}function ke(e,t,r,n){for(var i=!1,o=0;o<t.length;o++)if(t[o].area){if(!(e[3]<t[o].area[1]||e[0]>t[o].area[2]||e[1]>t[o].area[3]||e[2]<t[o].area[0])){i=!0;break}if(e[0]<0||e[1]<0||e[2]>r||e[3]>n){i=!0;break}i=!1}return i}function Re(e,t,r){var n=e.series;switch(t){case"normal":for(var i=0;i<n.length;i++){var o=n[i].name,a=n[i].textSize*e.pix,s=m(o,a,r),u=void 0,c=void 0,f=void 0,l=0;while(1){l++,u=Me(-e.width/2,e.width/2,5)-s/2,c=Me(-e.height/2,e.height/2,5)+a/2,f=[u-5+e.width/2,c-5-a+e.height/2,u+s+5+e.width/2,c+5+e.height/2];var d=ke(f,n,e.width,e.height);if(!d)break;if(1e3==l){f=[-100,-100,-100,-100];break}}n[i].area=f}break;case"vertical":for(var h=function(){return Math.random()>.7},p=0;p<n.length;p++){var g=n[p].name,y=n[p].textSize*e.pix,v=m(g,y,r),b=h(),_=void 0,w=void 0,A=void 0,S=void 0,x=0;while(1){x++;var E=void 0;if(b?(_=Me(-e.width/2,e.width/2,5)-v/2,w=Me(-e.height/2,e.height/2,5)+y/2,A=[w-5-v+e.width/2,-_-5+e.height/2,w+5+e.width/2,-_+y+5+e.height/2],S=[e.width-(e.width/2-e.height/2)-(-_+y+5+e.height/2)-5,e.height/2-e.width/2+(w-5-v+e.width/2)-5,e.width-(e.width/2-e.height/2)-(-_+y+5+e.height/2)+y,e.height/2-e.width/2+(w-5-v+e.width/2)+v+5],E=ke(S,n,e.height,e.width)):(_=Me(-e.width/2,e.width/2,5)-v/2,w=Me(-e.height/2,e.height/2,5)+y/2,A=[_-5+e.width/2,w-5-y+e.height/2,_+v+5+e.width/2,w+5+e.height/2],E=ke(A,n,e.width,e.height)),!E)break;if(1e3==x){A=[-1e3,-1e3,-1e3,-1e3];break}}b?(n[p].area=S,n[p].areav=A):n[p].area=A,n[p].rotate=b}break}return n}function De(e,t,r,n,i,o,a){for(var s=0;s<e.length;s++){var c=e[s];if(!1!==c.labelShow){var f=void 0,l=void 0,d=void 0,h=void 0,p=c.formatter?c.formatter(c,s,e,t):u.toFixed(100*c._proportion_)+"%";p=c.labelText?c.labelText:p,"right"==i&&(f=s==e.length-1?(c.funnelArea[2]+a.x)/2:(c.funnelArea[2]+e[s+1].funnelArea[2])/2,l=f+2*o,d=c.funnelArea[1]+n/2,h=c.textSize*t.pix||t.fontSize*t.pix,r.setLineWidth(1*t.pix),r.setStrokeStyle(c.color),r.setFillStyle(c.color),r.beginPath(),r.moveTo(f,d),r.lineTo(l,d),r.stroke(),r.closePath(),r.beginPath(),r.moveTo(l,d),r.arc(l,d,2*t.pix,0,2*Math.PI),r.closePath(),r.fill(),r.beginPath(),r.setFontSize(h),r.setFillStyle(c.textColor||t.fontColor),r.fillText(p,l+5,d+h/2-2),r.closePath(),r.stroke(),r.closePath()),"left"==i&&(f=s==e.length-1?(c.funnelArea[0]+a.x)/2:(c.funnelArea[0]+e[s+1].funnelArea[0])/2,l=f-2*o,d=c.funnelArea[1]+n/2,h=c.textSize*t.pix||t.fontSize*t.pix,r.setLineWidth(1*t.pix),r.setStrokeStyle(c.color),r.setFillStyle(c.color),r.beginPath(),r.moveTo(f,d),r.lineTo(l,d),r.stroke(),r.closePath(),r.beginPath(),r.moveTo(l,d),r.arc(l,d,2,0,2*Math.PI),r.closePath(),r.fill(),r.beginPath(),r.setFontSize(h),r.setFillStyle(c.textColor||t.fontColor),r.fillText(p,l-5-m(p,h,r),d+h/2-2),r.closePath(),r.stroke(),r.closePath())}}}function Ne(e,t,r,n,i,o,a){for(var s=0;s<e.length;s++){var u=e[s],c=void 0,f=void 0;u.centerText&&(c=u.funnelArea[1]+n/2,f=u.centerTextSize*t.pix||t.fontSize*t.pix,r.beginPath(),r.setFontSize(f),r.setFillStyle(u.centerTextColor||"#FFFFFF"),r.fillText(u.centerText,a.x-m(u.centerText,f,r)/2,c+f/2-2),r.closePath(),r.stroke(),r.closePath())}}function Be(e,t){t.save(),t.translate(0,.5),t.restore(),t.draw()}var Le={easeIn:function(e){return Math.pow(e,3)},easeOut:function(e){return Math.pow(e-1,3)+1},easeInOut:function(e){return(e/=.5)<1?.5*Math.pow(e,3):.5*(Math.pow(e-2,3)+2)},linear:function(e){return e}};function je(e){this.isStop=!1,e.duration="undefined"===typeof e.duration?1e3:e.duration,e.timing=e.timing||"easeInOut";var t=function(){return"undefined"!==typeof setTimeout?function(e,t){setTimeout((function(){var t=+new Date;e(t)}),t)}:"undefined"!==typeof requestAnimationFrame?requestAnimationFrame:function(e){e(null)}}(),r=null,n=function(i){if(null===i||!0===this.isStop)return e.onProcess&&e.onProcess(1),void(e.onAnimationFinish&&e.onAnimationFinish());if(null===r&&(r=i),i-r<e.duration){var o=(i-r)/e.duration,a=Le[e.timing];o=a(o),e.onProcess&&e.onProcess(o),t(n,17)}else e.onProcess&&e.onProcess(1),e.onAnimationFinish&&e.onAnimationFinish()};n=n.bind(this),t(n,17)}function Fe(e,t,r,n){var o=this,a=this,f=t.series;"pie"!==e&&"ring"!==e&&"mount"!==e&&"rose"!==e&&"funnel"!==e||(f=function(e,t,r){var n=[];if(e.length>0&&e[0].data.constructor.toString().indexOf("Array")>-1){t._pieSeries_=e;for(var i=e[0].data,o=0;o<i.length;o++)i[o].formatter=e[0].formatter,i[o].data=i[o].value,n.push(i[o]);t.series=n}else n=e;return n}(f,t));var l=t.categories;if("mount"===e){l=[];for(var d=0;d<f.length;d++)!1!==f[d].show&&l.push(f[d].name);t.categories=l}f=y(f,t,r);var g=t.animation?t.duration:0;a.animationInstance&&a.animationInstance.stop();var b=null;if("candle"==e){var w=s({},t.extra.candle.average);w.show?(b=function(e,t,r,n){for(var i=[],o=0;o<e.length;o++){for(var a={data:[],name:t[o],color:r[o]},s=0,u=n.length;s<u;s++)if(s<e[o])a.data.push(null);else{for(var c=0,f=0;f<e[o];f++)c+=n[s-f][1];a.data.push(+(c/e[o]).toFixed(3))}i.push(a)}return i}(w.day,w.name,w.color,f[0].data),b=y(b,t,r),t.seriesMA=b):b=t.seriesMA?t.seriesMA=y(t.seriesMA,t,r):f}else b=f;t._series_=f=T(f),t.area=new Array(4);for(var A=0;A<4;A++)t.area[A]=t.padding[A]*t.pix;var S=function(e,t,r,n,i){var o={area:{start:{x:0,y:0},end:{x:0,y:0},width:0,height:0,wholeWidth:0,wholeHeight:0},points:[],widthArr:[],heightArr:[]};if(!1===t.legend.show)return n.legendData=o,o;var a=t.legend.padding*t.pix,s=t.legend.margin*t.pix,u=t.legend.fontSize?t.legend.fontSize*t.pix:r.fontSize,c=15*t.pix,f=5*t.pix,l=Math.max(t.legend.lineHeight*t.pix,u);if("top"==t.legend.position||"bottom"==t.legend.position){for(var d=[],h=0,p=[],g=[],y=0;y<e.length;y++){var v=e[y],b=v.legendText?v.legendText:v.name,_=c+f+m(b||"undefined",u,i)+t.legend.itemGap*t.pix;h+_>t.width-t.area[1]-t.area[3]?(d.push(g),p.push(h-t.legend.itemGap*t.pix),h=_,g=[v]):(h+=_,g.push(v))}if(g.length){d.push(g),p.push(h-t.legend.itemGap*t.pix),o.widthArr=p;var w=Math.max.apply(null,p);switch(t.legend.float){case"left":o.area.start.x=t.area[3],o.area.end.x=t.area[3]+w+2*a;break;case"right":o.area.start.x=t.width-t.area[1]-w-2*a,o.area.end.x=t.width-t.area[1];break;default:o.area.start.x=(t.width-w)/2-a,o.area.end.x=(t.width+w)/2+a}o.area.width=w+2*a,o.area.wholeWidth=w+2*a,o.area.height=d.length*l+2*a,o.area.wholeHeight=d.length*l+2*a+2*s,o.points=d}}else{var A=e.length,S=t.height-t.area[0]-t.area[2]-2*s-2*a,x=Math.min(Math.floor(S/l),A);switch(o.area.height=x*l+2*a,o.area.wholeHeight=x*l+2*a,t.legend.float){case"top":o.area.start.y=t.area[0]+s,o.area.end.y=t.area[0]+s+o.area.height;break;case"bottom":o.area.start.y=t.height-t.area[2]-s-o.area.height,o.area.end.y=t.height-t.area[2]-s;break;default:o.area.start.y=(t.height-o.area.height)/2,o.area.end.y=(t.height+o.area.height)/2}for(var E=A%x===0?A/x:Math.floor(A/x+1),C=[],O=0;O<E;O++){var I=e.slice(O*x,O*x+x);C.push(I)}if(o.points=C,C.length){for(var T=0;T<C.length;T++){for(var P=C[T],M=0,k=0;k<P.length;k++){var R=c+f+m(P[k].name||"undefined",u,i)+t.legend.itemGap*t.pix;R>M&&(M=R)}o.widthArr.push(M),o.heightArr.push(P.length*l+2*a)}for(var D=0,N=0;N<o.widthArr.length;N++)D+=o.widthArr[N];o.area.width=D-t.legend.itemGap*t.pix+2*a,o.area.wholeWidth=o.area.width+a}}switch(t.legend.position){case"top":o.area.start.y=t.area[0]+s,o.area.end.y=t.area[0]+s+o.area.height;break;case"bottom":o.area.start.y=t.height-t.area[2]-o.area.height-s,o.area.end.y=t.height-t.area[2]-s;break;case"left":o.area.start.x=t.area[3],o.area.end.x=t.area[3]+o.area.width;break;case"right":o.area.start.x=t.width-t.area[1]-o.area.width,o.area.end.x=t.width-t.area[1];break}return n.legendData=o,o}(b,t,r,t.chartData,n),C=S.area.wholeHeight,O=S.area.wholeWidth;switch(t.legend.position){case"top":t.area[0]+=C;break;case"bottom":t.area[2]+=C;break;case"left":t.area[3]+=O;break;case"right":t.area[1]+=O;break}var I={},P=0;if("line"===t.type||"column"===t.type||"mount"===t.type||"area"===t.type||"mix"===t.type||"candle"===t.type||"scatter"===t.type||"bubble"===t.type||"bar"===t.type){if(I=ie(f,t,r,n),P=I.yAxisWidth,t.yAxis.showTitle){for(var M=0,ne=0;ne<t.yAxis.data.length;ne++)M=Math.max(M,t.yAxis.data[ne].titleFontSize?t.yAxis.data[ne].titleFontSize*t.pix:r.fontSize);t.area[0]+=M}for(var ve=0,_e=0,Te=0;Te<P.length;Te++)"left"==P[Te].position?(t.area[3]+=_e>0?P[Te].width+t.yAxis.padding*t.pix:P[Te].width,_e+=1):"right"==P[Te].position&&(t.area[1]+=ve>0?P[Te].width+t.yAxis.padding*t.pix:P[Te].width,ve+=1)}else r.yAxisWidth=P;if(t.chartData.yAxisData=I,t.categories&&t.categories.length&&"radar"!==t.type&&"gauge"!==t.type&&"bar"!==t.type){t.chartData.xAxisData=K(t.categories,t);var Pe=R(t.categories,t,0,t.chartData.xAxisData.eachSpacing,n),Me=Pe.xAxisHeight,ke=Pe.angle;r.xAxisHeight=Me,r._xAxisTextAngle_=ke,t.area[2]+=Me,t.chartData.categoriesData=Pe}else if("line"===t.type||"area"===t.type||"scatter"===t.type||"bubble"===t.type||"bar"===t.type){t.chartData.xAxisData=D(f,t,r,n),l=t.chartData.xAxisData.rangesFormat;var Le=R(l,t,0,t.chartData.xAxisData.eachSpacing,n),Fe=Le.xAxisHeight,Ue=Le.angle;r.xAxisHeight=Fe,r._xAxisTextAngle_=Ue,t.area[2]+=Fe,t.chartData.categoriesData=Le}else t.chartData.xAxisData={xAxisPoints:[]};if(t.enableScroll&&"right"==t.xAxis.scrollAlign&&void 0===t._scrollDistance_){var ze,He=t.chartData.xAxisData.xAxisPoints,qe=t.chartData.xAxisData.startX,Ve=t.chartData.xAxisData.endX,We=t.chartData.xAxisData.eachSpacing,Ge=We*(He.length-1),Xe=Ve-qe;ze=Xe-Ge,a.scrollOption.currentOffset=ze,a.scrollOption.startTouchX=ze,a.scrollOption.distance=0,a.scrollOption.lastMoveTime=0,t._scrollDistance_=ze}switch("pie"!==e&&"ring"!==e&&"rose"!==e||(r._pieTextMaxLength_=!1===t.dataLabel?0:function(e,t,r,n){e=B(e);for(var i=0,o=0;o<e.length;o++){var a=e[o],s=a.formatter?a.formatter(+a._proportion_.toFixed(2)):u.toFixed(100*a._proportion_)+"%";i=Math.max(i,m(s,a.textSize*n.pix||t.fontSize,r))}return i}(b,r,n,t)),e){case"word":this.animationInstance=new je({timing:t.timing,duration:g,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&oe(n,t),function(e,t,r,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=s({},{type:"normal",autoColors:!0},t.extra.word);t.chartData.wordCloudData||(t.chartData.wordCloudData=Re(t,o.type,n)),n.beginPath(),n.setFillStyle(t.background),n.rect(0,0,t.width,t.height),n.fill(),n.save();var a=t.chartData.wordCloudData;n.translate(t.width/2,t.height/2);for(var u=0;u<a.length;u++){n.save(),a[u].rotate&&n.rotate(90*Math.PI/180);var c=a[u].name,f=a[u].textSize*t.pix,l=m(c,f,n);n.beginPath(),n.setStrokeStyle(a[u].color),n.setFillStyle(a[u].color),n.setFontSize(f),a[u].rotate?a[u].areav[0]>0&&(t.tooltip&&t.tooltip.index==u?n.strokeText(c,(a[u].areav[0]+5-t.width/2)*i-l*(1-i)/2,(a[u].areav[1]+5+f-t.height/2)*i):n.fillText(c,(a[u].areav[0]+5-t.width/2)*i-l*(1-i)/2,(a[u].areav[1]+5+f-t.height/2)*i)):a[u].area[0]>0&&(t.tooltip&&t.tooltip.index==u?n.strokeText(c,(a[u].area[0]+5-t.width/2)*i-l*(1-i)/2,(a[u].area[1]+5+f-t.height/2)*i):n.fillText(c,(a[u].area[0]+5-t.width/2)*i-l*(1-i)/2,(a[u].area[1]+5+f-t.height/2)*i)),n.stroke(),n.restore()}n.restore()}(f,t,r,n,e),Be(0,n)},onAnimationFinish:function(){a.uevent.trigger("renderComplete")}});break;case"map":n.clearRect(0,0,t.width,t.height),function(e,t,r,n){var i,o,a=s({},{border:!0,mercator:!1,borderWidth:1,active:!0,borderColor:"#666666",fillOpacity:.6,activeBorderColor:"#f04864",activeFillColor:"#facc14",activeFillOpacity:1},t.extra.map),u=e,f=function(e){for(var t,r={xMin:180,xMax:0,yMin:90,yMax:0},n=0;n<e.length;n++)for(var i=e[n].geometry.coordinates,o=0;o<i.length;o++){t=i[o],1==t.length&&(t=t[0]);for(var a=0;a<t.length;a++){var s=t[a][0],u=t[a][1],c={x:s,y:u};r.xMin=r.xMin<c.x?r.xMin:c.x,r.xMax=r.xMax>c.x?r.xMax:c.x,r.yMin=r.yMin<c.y?r.yMin:c.y,r.yMax=r.yMax>c.y?r.yMax:c.y}}return r}(u);if(a.mercator){var l=Oe(f.xMax,f.yMax),d=Oe(f.xMin,f.yMin);f.xMax=l[0],f.yMax=l[1],f.xMin=d[0],f.yMin=d[1]}for(var h=t.width/Math.abs(f.xMax-f.xMin),p=t.height/Math.abs(f.yMax-f.yMin),g=h<p?h:p,y=t.width/2-Math.abs(f.xMax-f.xMin)/2*g,v=t.height/2-Math.abs(f.yMax-f.yMin)/2*g,b=0;b<u.length;b++){n.beginPath(),n.setLineWidth(a.borderWidth*t.pix),n.setStrokeStyle(a.borderColor),n.setFillStyle(c(e[b].color,e[b].fillOpacity||a.fillOpacity)),1==a.active&&t.tooltip&&t.tooltip.index==b&&(n.setStrokeStyle(a.activeBorderColor),n.setFillStyle(c(a.activeFillColor,a.activeFillOpacity)));for(var _=u[b].geometry.coordinates,w=0;w<_.length;w++){i=_[w],1==i.length&&(i=i[0]);for(var A=0;A<i.length;A++){var S=Array(2);S=a.mercator?Oe(i[A][0],i[A][1]):i[A],o=Ie(S[1],S[0],f,g,y,v),0===A?(n.beginPath(),n.moveTo(o.x,o.y)):n.lineTo(o.x,o.y)}n.fill(),1==a.border&&n.stroke()}}if(1==t.dataLabel)for(b=0;b<u.length;b++){var x=u[b].properties.centroid;if(x){a.mercator&&(x=Oe(u[b].properties.centroid[0],u[b].properties.centroid[1])),o=Ie(x[1],x[0],f,g,y,v);var E=u[b].textSize*t.pix||r.fontSize,C=u[b].textColor||t.fontColor;a.active&&a.activeTextColor&&t.tooltip&&t.tooltip.index==b&&(C=a.activeTextColor);var O=u[b].properties.name;n.beginPath(),n.setFontSize(E),n.setFillStyle(C),n.fillText(O,o.x-m(O,E,n)/2,o.y+E/2),n.closePath(),n.stroke()}}t.chartData.mapData={bounds:f,scale:g,xoffset:y,yoffset:v,mercator:a.mercator},we(t,r,n,1),n.draw()}(f,t,r,n),setTimeout((function(){o.uevent.trigger("renderComplete")}),50);break;case"funnel":this.animationInstance=new je({timing:t.timing,duration:g,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&oe(n,t),t.chartData.funnelData=function(e,t,r,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=s({},{type:"funnel",activeWidth:10,activeOpacity:.3,border:!1,borderWidth:2,borderColor:"#FFFFFF",fillOpacity:1,minSize:0,labelAlign:"right",linearType:"none",customColor:[]},t.extra.funnel),a=(t.height-t.area[0]-t.area[2])/e.length,u={x:t.area[3]+(t.width-t.area[1]-t.area[3])/2,y:t.height-t.area[2]},f=o.activeWidth*t.pix,l=Math.min((t.width-t.area[1]-t.area[3])/2-f,(t.height-t.area[0]-t.area[2])/2-f),d=L(e,l,o,a,i);if(n.save(),n.translate(u.x,u.y),o.customColor=v(o.linearType,o.customColor,e,r),"pyramid"==o.type)for(var h=0;h<d.length;h++){if(h==d.length-1){t.tooltip&&t.tooltip.index==h&&(n.beginPath(),n.setFillStyle(c(d[h].color,o.activeOpacity)),n.moveTo(-f,-a),n.lineTo(-d[h].radius-f,0),n.lineTo(d[h].radius+f,0),n.lineTo(f,-a),n.lineTo(-f,-a),n.closePath(),n.fill()),d[h].funnelArea=[u.x-d[h].radius,u.y-a*(h+1),u.x+d[h].radius,u.y-a*h],n.beginPath(),n.setLineWidth(o.borderWidth*t.pix),n.setStrokeStyle(o.borderColor);var p=c(d[h].color,o.fillOpacity);if("custom"==o.linearType){var g=n.createLinearGradient(d[h].radius,-a,-d[h].radius,-a);g.addColorStop(0,c(d[h].color,o.fillOpacity)),g.addColorStop(.5,c(o.customColor[d[h].linearIndex],o.fillOpacity)),g.addColorStop(1,c(d[h].color,o.fillOpacity)),p=g}n.setFillStyle(p),n.moveTo(0,-a),n.lineTo(-d[h].radius,0),n.lineTo(d[h].radius,0),n.lineTo(0,-a),n.closePath(),n.fill(),1==o.border&&n.stroke()}else{t.tooltip&&t.tooltip.index==h&&(n.beginPath(),n.setFillStyle(c(d[h].color,o.activeOpacity)),n.moveTo(0,0),n.lineTo(-d[h].radius-f,0),n.lineTo(-d[h+1].radius-f,-a),n.lineTo(d[h+1].radius+f,-a),n.lineTo(d[h].radius+f,0),n.lineTo(0,0),n.closePath(),n.fill()),d[h].funnelArea=[u.x-d[h].radius,u.y-a*(h+1),u.x+d[h].radius,u.y-a*h],n.beginPath(),n.setLineWidth(o.borderWidth*t.pix),n.setStrokeStyle(o.borderColor);p=c(d[h].color,o.fillOpacity);if("custom"==o.linearType){g=n.createLinearGradient(d[h].radius,-a,-d[h].radius,-a);g.addColorStop(0,c(d[h].color,o.fillOpacity)),g.addColorStop(.5,c(o.customColor[d[h].linearIndex],o.fillOpacity)),g.addColorStop(1,c(d[h].color,o.fillOpacity)),p=g}n.setFillStyle(p),n.moveTo(0,0),n.lineTo(-d[h].radius,0),n.lineTo(-d[h+1].radius,-a),n.lineTo(d[h+1].radius,-a),n.lineTo(d[h].radius,0),n.lineTo(0,0),n.closePath(),n.fill(),1==o.border&&n.stroke()}n.translate(0,-a)}else{n.translate(0,-(d.length-1)*a);for(var y=0;y<d.length;y++){if(y==d.length-1){t.tooltip&&t.tooltip.index==y&&(n.beginPath(),n.setFillStyle(c(d[y].color,o.activeOpacity)),n.moveTo(-f-o.minSize/2,0),n.lineTo(-d[y].radius-f,-a),n.lineTo(d[y].radius+f,-a),n.lineTo(f+o.minSize/2,0),n.lineTo(-f-o.minSize/2,0),n.closePath(),n.fill()),d[y].funnelArea=[u.x-d[y].radius,u.y-a,u.x+d[y].radius,u.y],n.beginPath(),n.setLineWidth(o.borderWidth*t.pix),n.setStrokeStyle(o.borderColor);p=c(d[y].color,o.fillOpacity);if("custom"==o.linearType){g=n.createLinearGradient(d[y].radius,-a,-d[y].radius,-a);g.addColorStop(0,c(d[y].color,o.fillOpacity)),g.addColorStop(.5,c(o.customColor[d[y].linearIndex],o.fillOpacity)),g.addColorStop(1,c(d[y].color,o.fillOpacity)),p=g}n.setFillStyle(p),n.moveTo(0,0),n.lineTo(-o.minSize/2,0),n.lineTo(-d[y].radius,-a),n.lineTo(d[y].radius,-a),n.lineTo(o.minSize/2,0),n.lineTo(0,0),n.closePath(),n.fill(),1==o.border&&n.stroke()}else{t.tooltip&&t.tooltip.index==y&&(n.beginPath(),n.setFillStyle(c(d[y].color,o.activeOpacity)),n.moveTo(0,0),n.lineTo(-d[y+1].radius-f,0),n.lineTo(-d[y].radius-f,-a),n.lineTo(d[y].radius+f,-a),n.lineTo(d[y+1].radius+f,0),n.lineTo(0,0),n.closePath(),n.fill()),d[y].funnelArea=[u.x-d[y].radius,u.y-a*(d.length-y),u.x+d[y].radius,u.y-a*(d.length-y-1)],n.beginPath(),n.setLineWidth(o.borderWidth*t.pix),n.setStrokeStyle(o.borderColor);p=c(d[y].color,o.fillOpacity);if("custom"==o.linearType){g=n.createLinearGradient(d[y].radius,-a,-d[y].radius,-a);g.addColorStop(0,c(d[y].color,o.fillOpacity)),g.addColorStop(.5,c(o.customColor[d[y].linearIndex],o.fillOpacity)),g.addColorStop(1,c(d[y].color,o.fillOpacity)),p=g}n.setFillStyle(p),n.moveTo(0,0),n.lineTo(-d[y+1].radius,0),n.lineTo(-d[y].radius,-a),n.lineTo(d[y].radius,-a),n.lineTo(d[y+1].radius,0),n.lineTo(0,0),n.closePath(),n.fill(),1==o.border&&n.stroke()}n.translate(0,a)}}return n.restore(),!1!==t.dataLabel&&1===i&&De(d,t,n,a,o.labelAlign,f,u),1===i&&Ne(d,t,n,a,o.labelAlign,f,u),{center:u,radius:l,series:d}}(f,t,r,n,e),Ee(t.series,t,r,n,t.chartData),we(t,r,n,e),Be(0,n)},onAnimationFinish:function(){a.uevent.trigger("renderComplete")}});break;case"line":this.animationInstance=new je({timing:t.timing,duration:g,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&oe(n,t),Se(0,t,0,n),Ae(l,t,r,n);var i=function(e,t,r,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=s({},{type:"straight",width:2,activeType:"none",linearType:"none",onShadow:!1,animation:"vertical"},t.extra.line);o.width*=t.pix;var a=t.chartData.xAxisData,u=a.xAxisPoints,f=a.eachSpacing,l=[];n.save();var d=0,p=t.width+f;return t._scrollDistance_&&0!==t._scrollDistance_&&!0===t.enableScroll&&(n.translate(t._scrollDistance_,0),d=-t._scrollDistance_-2*f+t.area[3],p=d+(t.xAxis.itemCount+4)*f),e.forEach((function(e,a){var s,g,y;n.beginPath(),n.setStrokeStyle(e.color),n.moveTo(-1e4,-1e4),n.lineTo(-10001,-10001),n.stroke(),s=[].concat(t.chartData.yAxisData.ranges[e.index]),g=s.pop(),y=s.shift();var v=e.data,b=Z(v,g,y,u,f,t,r,o,i);l.push(b);var m=k(b,e);if("dash"==e.lineType){var _=e.dashLength?e.dashLength:8;_*=t.pix,n.setLineDash([_,_])}n.beginPath();var w=e.color;if("none"!==o.linearType&&e.linearColor&&e.linearColor.length>0){for(var A=n.createLinearGradient(t.chartData.xAxisData.startX,t.height/2,t.chartData.xAxisData.endX,t.height/2),S=0;S<e.linearColor.length;S++)A.addColorStop(e.linearColor[S][0],c(e.linearColor[S][1],1));w=A}n.setStrokeStyle(w),1==o.onShadow&&e.setShadow&&e.setShadow.length>0?n.setShadow(e.setShadow[0],e.setShadow[1],e.setShadow[2],e.setShadow[3]):n.setShadow(0,0,0,"rgba(0,0,0,0)"),n.setLineWidth(o.width),m.forEach((function(e,t){if(1===e.length)n.moveTo(e[0].x,e[0].y);else{n.moveTo(e[0].x,e[0].y);var r=0;if("curve"===o.type)for(var i=0;i<e.length;i++){var a=e[i];if(0==r&&a.x>d&&(n.moveTo(a.x,a.y),r=1),i>0&&a.x>d&&a.x<p){var s=h(e,i-1);n.bezierCurveTo(s.ctrA.x,s.ctrA.y,s.ctrB.x,s.ctrB.y,a.x,a.y)}}if("straight"===o.type)for(var u=0;u<e.length;u++){var c=e[u];0==r&&c.x>d&&(n.moveTo(c.x,c.y),r=1),u>0&&c.x>d&&c.x<p&&n.lineTo(c.x,c.y)}if("step"===o.type)for(var f=0;f<e.length;f++){var l=e[f];0==r&&l.x>d&&(n.moveTo(l.x,l.y),r=1),f>0&&l.x>d&&l.x<p&&(n.lineTo(l.x,e[f-1].y),n.lineTo(l.x,l.y))}n.moveTo(e[0].x,e[0].y)}})),n.stroke(),n.setLineDash([]),!1!==t.dataPointShape&&ae(b,e.color,e.pointShape,n,t),se(b,e.color,e.pointShape,n,t,o)})),!1!==t.dataLabel&&1===i&&e.forEach((function(e,o){var a,s,c;a=[].concat(t.chartData.yAxisData.ranges[e.index]),s=a.pop(),c=a.shift();var l=e.data,d=Y(l,s,c,u,f,t,r,i);ce(d,e,r,n,t)})),n.restore(),{xAxisPoints:u,calPoints:l,eachSpacing:f}}(f,t,r,n,e),o=i.xAxisPoints,a=i.calPoints,u=i.eachSpacing;t.chartData.xAxisPoints=o,t.chartData.calPoints=a,t.chartData.eachSpacing=u,xe(0,t,r,n),!1!==t.enableMarkLine&&1===e&&ye(t,0,n),Ee(t.series,t,r,n,t.chartData),we(t,r,n,e),Be(0,n)},onAnimationFinish:function(){a.uevent.trigger("renderComplete")}});break;case"scatter":this.animationInstance=new je({timing:t.timing,duration:g,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&oe(n,t),Se(0,t,0,n),Ae(l,t,r,n);var i=function(e,t,r,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=(s({},{type:"circle"},t.extra.scatter),t.chartData.xAxisData),a=o.xAxisPoints,u=o.eachSpacing,c=[];n.save();return t.width,t._scrollDistance_&&0!==t._scrollDistance_&&!0===t.enableScroll&&(n.translate(t._scrollDistance_,0),-t._scrollDistance_-2*u+t.area[3],t.xAxis.itemCount),e.forEach((function(e,o){var s,c,f;s=[].concat(t.chartData.yAxisData.ranges[e.index]),c=s.pop(),f=s.shift();var l=e.data,d=Y(l,c,f,a,u,t,r,i);n.beginPath(),n.setStrokeStyle(e.color),n.setFillStyle(e.color),n.setLineWidth(1*t.pix);var h=e.pointShape;if("diamond"===h)d.forEach((function(e,t){null!==e&&(n.moveTo(e.x,e.y-4.5),n.lineTo(e.x-4.5,e.y),n.lineTo(e.x,e.y+4.5),n.lineTo(e.x+4.5,e.y),n.lineTo(e.x,e.y-4.5))}));else if("circle"===h)d.forEach((function(e,r){null!==e&&(n.moveTo(e.x+2.5*t.pix,e.y),n.arc(e.x,e.y,3*t.pix,0,2*Math.PI,!1))}));else if("square"===h)d.forEach((function(e,t){null!==e&&(n.moveTo(e.x-3.5,e.y-3.5),n.rect(e.x-3.5,e.y-3.5,7,7))}));else if("triangle"===h)d.forEach((function(e,t){null!==e&&(n.moveTo(e.x,e.y-4.5),n.lineTo(e.x-4.5,e.y+4.5),n.lineTo(e.x+4.5,e.y+4.5),n.lineTo(e.x,e.y-4.5))}));else if("triangle"===h)return;n.closePath(),n.fill(),n.stroke()})),!1!==t.dataLabel&&1===i&&e.forEach((function(e,o){var s,c,f;s=[].concat(t.chartData.yAxisData.ranges[e.index]),c=s.pop(),f=s.shift();var l=e.data,d=Y(l,c,f,a,u,t,r,i);ce(d,e,r,n,t)})),n.restore(),{xAxisPoints:a,calPoints:c,eachSpacing:u}}(f,t,r,n,e),o=i.xAxisPoints,a=i.calPoints,u=i.eachSpacing;t.chartData.xAxisPoints=o,t.chartData.calPoints=a,t.chartData.eachSpacing=u,xe(0,t,r,n),!1!==t.enableMarkLine&&1===e&&ye(t,0,n),Ee(t.series,t,r,n,t.chartData),we(t,r,n,e),Be(0,n)},onAnimationFinish:function(){a.uevent.trigger("renderComplete")}});break;case"bubble":this.animationInstance=new je({timing:t.timing,duration:g,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&oe(n,t),Se(0,t,0,n),Ae(l,t,r,n);var i=function(e,t,r,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=s({},{opacity:1,border:2},t.extra.bubble),a=t.chartData.xAxisData,u=a.xAxisPoints,f=a.eachSpacing,l=[];n.save();return t.width,t._scrollDistance_&&0!==t._scrollDistance_&&!0===t.enableScroll&&(n.translate(t._scrollDistance_,0),-t._scrollDistance_-2*f+t.area[3],t.xAxis.itemCount),e.forEach((function(e,a){var s,l,d;s=[].concat(t.chartData.yAxisData.ranges[e.index]),l=s.pop(),d=s.shift();var h=e.data,p=Y(h,l,d,u,f,t,r,i);n.beginPath(),n.setStrokeStyle(e.color),n.setLineWidth(o.border*t.pix),n.setFillStyle(c(e.color,o.opacity)),p.forEach((function(e,r){n.moveTo(e.x+e.r,e.y),n.arc(e.x,e.y,e.r*t.pix,0,2*Math.PI,!1)})),n.closePath(),n.fill(),n.stroke(),!1!==t.dataLabel&&1===i&&p.forEach((function(i,o){n.beginPath();var a=e.textSize*t.pix||r.fontSize;n.setFontSize(a),n.setFillStyle(e.textColor||"#FFFFFF"),n.setTextAlign("center"),n.fillText(String(i.t),i.x,i.y+a/2),n.closePath(),n.stroke(),n.setTextAlign("left")}))})),n.restore(),{xAxisPoints:u,calPoints:l,eachSpacing:f}}(f,t,r,n,e),o=i.xAxisPoints,a=i.calPoints,u=i.eachSpacing;t.chartData.xAxisPoints=o,t.chartData.calPoints=a,t.chartData.eachSpacing=u,xe(0,t,r,n),!1!==t.enableMarkLine&&1===e&&ye(t,0,n),Ee(t.series,t,r,n,t.chartData),we(t,r,n,e),Be(0,n)},onAnimationFinish:function(){a.uevent.trigger("renderComplete")}});break;case"mix":this.animationInstance=new je({timing:t.timing,duration:g,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&oe(n,t),Se(0,t,0,n),Ae(l,t,r,n);var o=function(e,t,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=t.chartData.xAxisData,u=a.xAxisPoints,f=a.eachSpacing,l=s({},{width:f/2,barBorderCircle:!1,barBorderRadius:[],seriesGap:2,linearType:"none",linearOpacity:1,customColor:[],colorStop:0},t.extra.mix.column),d=s({},{opacity:.2,gradient:!1},t.extra.mix.area),p=s({},{width:2},t.extra.mix.line),g=t.height-t.area[2],y=[],b=0,m=0;e.forEach((function(e,t){"column"==e.type&&(m+=1)})),n.save();var _=-2,w=u.length+2,A=0,S=t.width+f;if(t._scrollDistance_&&0!==t._scrollDistance_&&!0===t.enableScroll&&(n.translate(t._scrollDistance_,0),_=Math.floor(-t._scrollDistance_/f)-2,w=_+t.xAxis.itemCount+4,A=-t._scrollDistance_-2*f+t.area[3],S=A+(t.xAxis.itemCount+4)*f),l.customColor=v(l.linearType,l.customColor,e,r),e.forEach((function(e,a){var s,v,x;s=[].concat(t.chartData.yAxisData.ranges[e.index]),v=s.pop(),x=s.shift();var E=e.data,C=Y(E,v,x,u,f,t,r,o);if(y.push(C),"column"==e.type){C=q(C,f,m,b,0,t);for(var O=0;O<C.length;O++){var I=C[O];if(null!==I&&O>_&&O<w){var T=I.x-I.width/2;t.height,I.y,t.area[2];n.beginPath();var P=I.color||e.color,M=I.color||e.color;if("none"!==l.linearType){var R=n.createLinearGradient(T,I.y,T,t.height-t.area[2]);"opacity"==l.linearType?(R.addColorStop(0,c(P,l.linearOpacity)),R.addColorStop(1,c(P,1))):(R.addColorStop(0,c(l.customColor[e.linearIndex],l.linearOpacity)),R.addColorStop(l.colorStop,c(l.customColor[e.linearIndex],l.linearOpacity)),R.addColorStop(1,c(P,1))),P=R}if(l.barBorderRadius&&4===l.barBorderRadius.length||l.barBorderCircle){var D=T,N=I.y,B=I.width,L=t.height-t.area[2]-I.y;l.barBorderCircle&&(l.barBorderRadius=[B/2,B/2,0,0]);var j=(0,i.default)(l.barBorderRadius,4),F=j[0],U=j[1],z=j[2],H=j[3],V=Math.min(B/2,L/2);F=F>V?V:F,U=U>V?V:U,z=z>V?V:z,H=H>V?V:H,F=F<0?0:F,U=U<0?0:U,z=z<0?0:z,H=H<0?0:H,n.arc(D+F,N+F,F,-Math.PI,-Math.PI/2),n.arc(D+B-U,N+U,U,-Math.PI/2,0),n.arc(D+B-z,N+L-z,z,0,Math.PI/2),n.arc(D+H,N+L-H,H,Math.PI/2,Math.PI)}else n.moveTo(T,I.y),n.lineTo(T+I.width,I.y),n.lineTo(T+I.width,t.height-t.area[2]),n.lineTo(T,t.height-t.area[2]),n.lineTo(T,I.y),n.setLineWidth(1),n.setStrokeStyle(M);n.setFillStyle(P),n.closePath(),n.fill()}}b+=1}if("area"==e.type)for(var W=k(C,e),G=0;G<W.length;G++){var X=W[G];if(n.beginPath(),n.setStrokeStyle(e.color),n.setStrokeStyle(c(e.color,d.opacity)),d.gradient){var K=n.createLinearGradient(0,t.area[0],0,t.height-t.area[2]);K.addColorStop("0",c(e.color,d.opacity)),K.addColorStop("1.0",c("#FFFFFF",.1)),n.setFillStyle(K)}else n.setFillStyle(c(e.color,d.opacity));if(n.setLineWidth(2*t.pix),X.length>1){var $=X[0],Z=X[X.length-1];n.moveTo($.x,$.y);var J=0;if("curve"===e.style)for(var Q=0;Q<X.length;Q++){var ee=X[Q];if(0==J&&ee.x>A&&(n.moveTo(ee.x,ee.y),J=1),Q>0&&ee.x>A&&ee.x<S){var te=h(X,Q-1);n.bezierCurveTo(te.ctrA.x,te.ctrA.y,te.ctrB.x,te.ctrB.y,ee.x,ee.y)}}else for(var re=0;re<X.length;re++){var ne=X[re];0==J&&ne.x>A&&(n.moveTo(ne.x,ne.y),J=1),re>0&&ne.x>A&&ne.x<S&&n.lineTo(ne.x,ne.y)}n.lineTo(Z.x,g),n.lineTo($.x,g),n.lineTo($.x,$.y)}else{var ie=X[0];n.moveTo(ie.x-f/2,ie.y)}n.closePath(),n.fill()}if("line"==e.type){var oe=k(C,e);oe.forEach((function(r,i){if("dash"==e.lineType){var o=e.dashLength?e.dashLength:8;o*=t.pix,n.setLineDash([o,o])}if(n.beginPath(),n.setStrokeStyle(e.color),n.setLineWidth(p.width*t.pix),1===r.length)n.moveTo(r[0].x,r[0].y);else{n.moveTo(r[0].x,r[0].y);var a=0;if("curve"==e.style)for(var s=0;s<r.length;s++){var u=r[s];if(0==a&&u.x>A&&(n.moveTo(u.x,u.y),a=1),s>0&&u.x>A&&u.x<S){var c=h(r,s-1);n.bezierCurveTo(c.ctrA.x,c.ctrA.y,c.ctrB.x,c.ctrB.y,u.x,u.y)}}else for(var f=0;f<r.length;f++){var l=r[f];0==a&&l.x>A&&(n.moveTo(l.x,l.y),a=1),f>0&&l.x>A&&l.x<S&&n.lineTo(l.x,l.y)}n.moveTo(r[0].x,r[0].y)}n.stroke(),n.setLineDash([])}))}"point"==e.type&&(e.addPoint=!0),1==e.addPoint&&"column"!==e.type&&ae(C,e.color,e.pointShape,n,t)})),!1!==t.dataLabel&&1===o){b=0;e.forEach((function(e,i){var a,s,c;a=[].concat(t.chartData.yAxisData.ranges[e.index]),s=a.pop(),c=a.shift();var l=e.data,d=Y(l,s,c,u,f,t,r,o);"column"!==e.type?ce(d,e,r,n,t):(d=q(d,f,m,b,0,t),ce(d,e,r,n,t),b+=1)}))}return n.restore(),{xAxisPoints:u,calPoints:y,eachSpacing:f}}(f,t,r,n,e),a=o.xAxisPoints,u=o.calPoints,d=o.eachSpacing;t.chartData.xAxisPoints=a,t.chartData.calPoints=u,t.chartData.eachSpacing=d,xe(0,t,r,n),!1!==t.enableMarkLine&&1===e&&ye(t,0,n),Ee(t.series,t,r,n,t.chartData),we(t,r,n,e),Be(0,n)},onAnimationFinish:function(){a.uevent.trigger("renderComplete")}});break;case"column":this.animationInstance=new je({timing:t.timing,duration:g,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&oe(n,t),Se(0,t,0,n),Ae(l,t,r,n);var o=function(e,t,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=t.chartData.xAxisData,u=a.xAxisPoints,f=a.eachSpacing,l=s({},{type:"group",width:f/2,meterBorder:4,meterFillColor:"#FFFFFF",barBorderCircle:!1,barBorderRadius:[],seriesGap:2,linearType:"none",linearOpacity:1,customColor:[],colorStop:0,labelPosition:"outside"},t.extra.column),d=[];n.save();var h=-2,p=u.length+2;return t._scrollDistance_&&0!==t._scrollDistance_&&!0===t.enableScroll&&(n.translate(t._scrollDistance_,0),h=Math.floor(-t._scrollDistance_/f)-2,p=h+t.xAxis.itemCount+4),t.tooltip&&t.tooltip.textList&&t.tooltip.textList.length&&1===o&&be(t.tooltip.offset.x,t,0,n,f),l.customColor=v(l.linearType,l.customColor,e,r),e.forEach((function(a,s){var g,y,v;g=[].concat(t.chartData.yAxisData.ranges[a.index]),y=g.pop(),v=g.shift();var b=t.height-t.area[0]-t.area[2],m=b*(0-y)/(v-y),_=t.height-Math.round(m)-t.area[2];a.zeroPoints=_;var w=a.data;switch(l.type){case"group":var A=J(w,y,v,u,f,t,r,_,o),S=te(w,y,v,u,f,t,r,s,e,o);d.push(S),A=q(A,f,e.length,s,0,t);for(var x=0;x<A.length;x++){var E=A[x];if(null!==E&&x>h&&x<p){var C=E.x-E.width/2,O=t.height-E.y-t.area[2];n.beginPath();var I=E.color||a.color,T=E.color||a.color;if("none"!==l.linearType){var P=n.createLinearGradient(C,E.y,C,_);"opacity"==l.linearType?(P.addColorStop(0,c(I,l.linearOpacity)),P.addColorStop(1,c(I,1))):(P.addColorStop(0,c(l.customColor[a.linearIndex],l.linearOpacity)),P.addColorStop(l.colorStop,c(l.customColor[a.linearIndex],l.linearOpacity)),P.addColorStop(1,c(I,1))),I=P}if(l.barBorderRadius&&4===l.barBorderRadius.length||!0===l.barBorderCircle){var M=C,k=E.y>_?_:E.y,R=E.width,D=Math.abs(_-E.y);l.barBorderCircle&&(l.barBorderRadius=[R/2,R/2,0,0]),E.y>_&&(l.barBorderRadius=[0,0,R/2,R/2]);var N=(0,i.default)(l.barBorderRadius,4),B=N[0],L=N[1],j=N[2],F=N[3],U=Math.min(R/2,D/2);B=B>U?U:B,L=L>U?U:L,j=j>U?U:j,F=F>U?U:F,B=B<0?0:B,L=L<0?0:L,j=j<0?0:j,F=F<0?0:F,n.arc(M+B,k+B,B,-Math.PI,-Math.PI/2),n.arc(M+R-L,k+L,L,-Math.PI/2,0),n.arc(M+R-j,k+D-j,j,0,Math.PI/2),n.arc(M+F,k+D-F,F,Math.PI/2,Math.PI)}else n.moveTo(C,E.y),n.lineTo(C+E.width,E.y),n.lineTo(C+E.width,_),n.lineTo(C,_),n.lineTo(C,E.y),n.setLineWidth(1),n.setStrokeStyle(T);n.setFillStyle(I),n.closePath(),n.fill()}}break;case"stack":A=te(w,y,v,u,f,t,r,s,e,o);d.push(A),A=G(A,f,e.length,0,0,t);for(var z=0;z<A.length;z++){var H=A[z];if(null!==H&&z>h&&z<p){n.beginPath();I=H.color||a.color,C=H.x-H.width/2+1,O=t.height-H.y-t.area[2];var V=t.height-H.y0-t.area[2];s>0&&(O-=V),n.setFillStyle(I),n.moveTo(C,H.y),n.fillRect(C,H.y,H.width,O),n.closePath(),n.fill()}}break;case"meter":A=Y(w,y,v,u,f,t,r,o);d.push(A),A=W(A,f,e.length,s,0,t,l.meterBorder);for(var X=0;X<A.length;X++){var K=A[X];if(null!==K&&X>h&&X<p){n.beginPath(),0==s&&l.meterBorder>0&&(n.setStrokeStyle(a.color),n.setLineWidth(l.meterBorder*t.pix)),0==s?n.setFillStyle(l.meterFillColor):n.setFillStyle(K.color||a.color);C=K.x-K.width/2,O=t.height-K.y-t.area[2];if(l.barBorderRadius&&4===l.barBorderRadius.length||!0===l.barBorderCircle){var $=C,Z=K.y,Q=K.width,ee=_-K.y;l.barBorderCircle&&(l.barBorderRadius=[Q/2,Q/2,0,0]);var re=(0,i.default)(l.barBorderRadius,4),ne=re[0],ie=re[1],oe=re[2],ae=re[3],se=Math.min(Q/2,ee/2);ne=ne>se?se:ne,ie=ie>se?se:ie,oe=oe>se?se:oe,ae=ae>se?se:ae,ne=ne<0?0:ne,ie=ie<0?0:ie,oe=oe<0?0:oe,ae=ae<0?0:ae,n.arc($+ne,Z+ne,ne,-Math.PI,-Math.PI/2),n.arc($+Q-ie,Z+ie,ie,-Math.PI/2,0),n.arc($+Q-oe,Z+ee-oe,oe,0,Math.PI/2),n.arc($+ae,Z+ee-ae,ae,Math.PI/2,Math.PI),n.fill()}else n.moveTo(C,K.y),n.lineTo(C+K.width,K.y),n.lineTo(C+K.width,_),n.lineTo(C,_),n.lineTo(C,K.y),n.fill();0==s&&l.meterBorder>0&&(n.closePath(),n.stroke())}}break}})),!1!==t.dataLabel&&1===o&&e.forEach((function(i,a){var s,c,d;s=[].concat(t.chartData.yAxisData.ranges[i.index]),c=s.pop(),d=s.shift();var h=i.data;switch(l.type){case"group":var p=J(h,c,d,u,f,t,r,o);p=q(p,f,e.length,a,0,t),fe(p,i,r,n,t);break;case"stack":p=te(h,c,d,u,f,t,r,a,e,o);fe(p,i,r,n,t);break;case"meter":p=Y(h,c,d,u,f,t,r,o);fe(p,i,r,n,t);break}})),n.restore(),{xAxisPoints:u,calPoints:d,eachSpacing:f}}(f,t,r,n,e),a=o.xAxisPoints,u=o.calPoints,d=o.eachSpacing;t.chartData.xAxisPoints=a,t.chartData.calPoints=u,t.chartData.eachSpacing=d,xe(0,t,r,n),!1!==t.enableMarkLine&&1===e&&ye(t,0,n),Ee(t.series,t,r,n,t.chartData),we(t,r,n,e),Be(0,n)},onAnimationFinish:function(){a.uevent.trigger("renderComplete")}});break;case"mount":this.animationInstance=new je({timing:t.timing,duration:g,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&oe(n,t),Se(0,t,0,n),Ae(l,t,r,n);var o=function(e,t,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=t.chartData.xAxisData,u=a.xAxisPoints,f=a.eachSpacing,l=s({},{type:"mount",widthRatio:1,borderWidth:1,barBorderCircle:!1,barBorderRadius:[],linearType:"none",linearOpacity:1,customColor:[],colorStop:0},t.extra.mount);l.widthRatio=l.widthRatio<=0?0:l.widthRatio,l.widthRatio=l.widthRatio>=2?2:l.widthRatio,n.save();var d,h,p,g=-2,y=u.length+2;t._scrollDistance_&&0!==t._scrollDistance_&&!0===t.enableScroll&&(n.translate(t._scrollDistance_,0),g=Math.floor(-t._scrollDistance_/f)-2,y=g+t.xAxis.itemCount+4),l.customColor=v(l.linearType,l.customColor,e,r),d=[].concat(t.chartData.yAxisData.ranges[0]),h=d.pop(),p=d.shift();var b=t.height-t.area[0]-t.area[2],m=b*(0-h)/(p-h),_=t.height-Math.round(m)-t.area[2],w=Q(e,h,p,u,f,t,l,_,o);switch(l.type){case"bar":for(var A=0;A<w.length;A++){var S=w[A];if(null!==S&&A>g&&A<y){var x=S.x-f*l.widthRatio/2,E=t.height-S.y-t.area[2];n.beginPath();var C=S.color||e[A].color,O=S.color||e[A].color;if("none"!==l.linearType){var I=n.createLinearGradient(x,S.y,x,_);"opacity"==l.linearType?(I.addColorStop(0,c(C,l.linearOpacity)),I.addColorStop(1,c(C,1))):(I.addColorStop(0,c(l.customColor[e[A].linearIndex],l.linearOpacity)),I.addColorStop(l.colorStop,c(l.customColor[e[A].linearIndex],l.linearOpacity)),I.addColorStop(1,c(C,1))),C=I}if(l.barBorderRadius&&4===l.barBorderRadius.length||!0===l.barBorderCircle){var T=x,P=S.y>_?_:S.y,M=S.width,k=Math.abs(_-S.y);l.barBorderCircle&&(l.barBorderRadius=[M/2,M/2,0,0]),S.y>_&&(l.barBorderRadius=[0,0,M/2,M/2]);var R=(0,i.default)(l.barBorderRadius,4),D=R[0],N=R[1],B=R[2],L=R[3],j=Math.min(M/2,k/2);D=D>j?j:D,N=N>j?j:N,B=B>j?j:B,L=L>j?j:L,D=D<0?0:D,N=N<0?0:N,B=B<0?0:B,L=L<0?0:L,n.arc(T+D,P+D,D,-Math.PI,-Math.PI/2),n.arc(T+M-N,P+N,N,-Math.PI/2,0),n.arc(T+M-B,P+k-B,B,0,Math.PI/2),n.arc(T+L,P+k-L,L,Math.PI/2,Math.PI)}else n.moveTo(x,S.y),n.lineTo(x+S.width,S.y),n.lineTo(x+S.width,_),n.lineTo(x,_),n.lineTo(x,S.y);n.setStrokeStyle(O),n.setFillStyle(C),l.borderWidth>0&&(n.setLineWidth(l.borderWidth*t.pix),n.closePath(),n.stroke()),n.fill()}}break;case"triangle":for(var F=0;F<w.length;F++){var U=w[F];if(null!==U&&F>g&&F<y){x=U.x-f*l.widthRatio/2,E=t.height-U.y-t.area[2];n.beginPath();C=U.color||e[F].color,O=U.color||e[F].color;if("none"!==l.linearType){I=n.createLinearGradient(x,U.y,x,_);"opacity"==l.linearType?(I.addColorStop(0,c(C,l.linearOpacity)),I.addColorStop(1,c(C,1))):(I.addColorStop(0,c(l.customColor[e[F].linearIndex],l.linearOpacity)),I.addColorStop(l.colorStop,c(l.customColor[e[F].linearIndex],l.linearOpacity)),I.addColorStop(1,c(C,1))),C=I}n.moveTo(x,_),n.lineTo(U.x,U.y),n.lineTo(x+U.width,_),n.setStrokeStyle(O),n.setFillStyle(C),l.borderWidth>0&&(n.setLineWidth(l.borderWidth*t.pix),n.stroke()),n.fill()}}break;case"mount":for(var z=0;z<w.length;z++){var H=w[z];if(null!==H&&z>g&&z<y){x=H.x-f*l.widthRatio/2,E=t.height-H.y-t.area[2];n.beginPath();C=H.color||e[z].color,O=H.color||e[z].color;if("none"!==l.linearType){I=n.createLinearGradient(x,H.y,x,_);"opacity"==l.linearType?(I.addColorStop(0,c(C,l.linearOpacity)),I.addColorStop(1,c(C,1))):(I.addColorStop(0,c(l.customColor[e[z].linearIndex],l.linearOpacity)),I.addColorStop(l.colorStop,c(l.customColor[e[z].linearIndex],l.linearOpacity)),I.addColorStop(1,c(C,1))),C=I}n.moveTo(x,_),n.bezierCurveTo(H.x-H.width/4,_,H.x-H.width/4,H.y,H.x,H.y),n.bezierCurveTo(H.x+H.width/4,H.y,H.x+H.width/4,_,x+H.width,_),n.setStrokeStyle(O),n.setFillStyle(C),l.borderWidth>0&&(n.setLineWidth(l.borderWidth*t.pix),n.stroke()),n.fill()}}break;case"sharp":for(var q=0;q<w.length;q++){var V=w[q];if(null!==V&&q>g&&q<y){x=V.x-f*l.widthRatio/2,E=t.height-V.y-t.area[2];n.beginPath();C=V.color||e[q].color,O=V.color||e[q].color;if("none"!==l.linearType){I=n.createLinearGradient(x,V.y,x,_);"opacity"==l.linearType?(I.addColorStop(0,c(C,l.linearOpacity)),I.addColorStop(1,c(C,1))):(I.addColorStop(0,c(l.customColor[e[q].linearIndex],l.linearOpacity)),I.addColorStop(l.colorStop,c(l.customColor[e[q].linearIndex],l.linearOpacity)),I.addColorStop(1,c(C,1))),C=I}n.moveTo(x,_),n.quadraticCurveTo(V.x-0,_-E/4,V.x,V.y),n.quadraticCurveTo(V.x+0,_-E/4,x+V.width,_),n.setStrokeStyle(O),n.setFillStyle(C),l.borderWidth>0&&(n.setLineWidth(l.borderWidth*t.pix),n.stroke()),n.fill()}}break}if(!1!==t.dataLabel&&1===o){var W,G,X;W=[].concat(t.chartData.yAxisData.ranges[0]),G=W.pop(),X=W.shift();w=Q(e,G,X,u,f,t,l,_,o);le(w,e,r,n,t,_)}return n.restore(),{xAxisPoints:u,calPoints:w,eachSpacing:f}}(f,t,r,n,e),a=o.xAxisPoints,u=o.calPoints,d=o.eachSpacing;t.chartData.xAxisPoints=a,t.chartData.calPoints=u,t.chartData.eachSpacing=d,xe(0,t,r,n),!1!==t.enableMarkLine&&1===e&&ye(t,0,n),Ee(t.series,t,r,n,t.chartData),we(t,r,n,e),Be(0,n)},onAnimationFinish:function(){a.uevent.trigger("renderComplete")}});break;case"bar":this.animationInstance=new je({timing:t.timing,duration:g,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&oe(n,t),Ae(l,t,r,n);var o=function(e,t,r,n){for(var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=[],u=(t.height-t.area[0]-t.area[2])/t.categories.length,f=0;f<t.categories.length;f++)a.push(t.area[0]+u/2+u*f);var l=s({},{type:"group",width:u/2,meterBorder:4,meterFillColor:"#FFFFFF",barBorderCircle:!1,barBorderRadius:[],seriesGap:2,linearType:"none",linearOpacity:1,customColor:[],colorStop:0},t.extra.bar),d=[];n.save();var h=-2,p=a.length+2;return t.tooltip&&t.tooltip.textList&&t.tooltip.textList.length&&1===o&&me(t.tooltip.offset.y,t,0,n,u),l.customColor=v(l.linearType,l.customColor,e,r),e.forEach((function(s,f){var g,y,v;g=[].concat(t.chartData.xAxisData.ranges),v=g.pop(),y=g.shift();var b=s.data;switch(l.type){case"group":var m=ee(b,y,v,a,u,t,r,o),_=re(b,y,v,a,u,t,r,f,e,o);d.push(_),m=V(m,u,e.length,f,0,t);for(var w=0;w<m.length;w++){var A=m[w];if(null!==A&&w>h&&w<p){var S=t.area[3],x=A.y-A.width/2;A.height;n.beginPath();var E=A.color||s.color,C=A.color||s.color;if("none"!==l.linearType){var O=n.createLinearGradient(S,A.y,A.x,A.y);"opacity"==l.linearType?(O.addColorStop(0,c(E,l.linearOpacity)),O.addColorStop(1,c(E,1))):(O.addColorStop(0,c(l.customColor[s.linearIndex],l.linearOpacity)),O.addColorStop(l.colorStop,c(l.customColor[s.linearIndex],l.linearOpacity)),O.addColorStop(1,c(E,1))),E=O}if(l.barBorderRadius&&4===l.barBorderRadius.length||!0===l.barBorderCircle){var I=S,T=A.width,P=A.y-A.width/2,M=A.height;l.barBorderCircle&&(l.barBorderRadius=[T/2,T/2,0,0]);var k=(0,i.default)(l.barBorderRadius,4),R=k[0],D=k[1],N=k[2],B=k[3],L=Math.min(T/2,M/2);R=R>L?L:R,D=D>L?L:D,N=N>L?L:N,B=B>L?L:B,R=R<0?0:R,D=D<0?0:D,N=N<0?0:N,B=B<0?0:B,n.arc(I+B,P+B,B,-Math.PI,-Math.PI/2),n.arc(A.x-R,P+R,R,-Math.PI/2,0),n.arc(A.x-D,P+T-D,D,0,Math.PI/2),n.arc(I+N,P+T-N,N,Math.PI/2,Math.PI)}else n.moveTo(S,x),n.lineTo(A.x,x),n.lineTo(A.x,x+A.width),n.lineTo(S,x+A.width),n.lineTo(S,x),n.setLineWidth(1),n.setStrokeStyle(C);n.setFillStyle(E),n.closePath(),n.fill()}}break;case"stack":m=re(b,y,v,a,u,t,r,f,e,o);d.push(m),m=X(m,u,e.length,0,0,t);for(var j=0;j<m.length;j++){var F=m[j];if(null!==F&&j>h&&j<p){n.beginPath();E=F.color||s.color,S=F.x0;n.setFillStyle(E),n.moveTo(S,F.y-F.width/2),n.fillRect(S,F.y-F.width/2,F.height,F.width),n.closePath(),n.fill()}}break}})),!1!==t.dataLabel&&1===o&&e.forEach((function(i,s){var c,f,d;c=[].concat(t.chartData.xAxisData.ranges),d=c.pop(),f=c.shift();var h=i.data;switch(l.type){case"group":var p=ee(h,f,d,a,u,t,r,o);p=V(p,u,e.length,s,0,t),de(p,i,r,n,t);break;case"stack":p=re(h,f,d,a,u,t,r,s,e,o);de(p,i,r,n,t);break}})),{yAxisPoints:a,calPoints:d,eachSpacing:u}}(f,t,r,n,e),a=o.yAxisPoints,u=o.calPoints,d=o.eachSpacing;t.chartData.yAxisPoints=a,t.chartData.xAxisPoints=t.chartData.xAxisData.xAxisPoints,t.chartData.calPoints=u,t.chartData.eachSpacing=d,xe(0,t,r,n),!1!==t.enableMarkLine&&1===e&&ye(t,0,n),Ee(t.series,t,r,n,t.chartData),we(t,r,n,e),Be(0,n)},onAnimationFinish:function(){a.uevent.trigger("renderComplete")}});break;case"area":this.animationInstance=new je({timing:t.timing,duration:g,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&oe(n,t),Se(0,t,0,n),Ae(l,t,r,n);var i=function(e,t,r,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=s({},{type:"straight",opacity:.2,addLine:!1,width:2,gradient:!1,activeType:"none"},t.extra.area),a=t.chartData.xAxisData,u=a.xAxisPoints,f=a.eachSpacing,l=t.height-t.area[2],d=[];n.save();var p=0,g=t.width+f;return t._scrollDistance_&&0!==t._scrollDistance_&&!0===t.enableScroll&&(n.translate(t._scrollDistance_,0),p=-t._scrollDistance_-2*f+t.area[3],g=p+(t.xAxis.itemCount+4)*f),e.forEach((function(e,a){var s,y,v;s=[].concat(t.chartData.yAxisData.ranges[e.index]),y=s.pop(),v=s.shift();var b=e.data,m=Y(b,y,v,u,f,t,r,i);d.push(m);for(var _=k(m,e),w=0;w<_.length;w++){var A=_[w];if(n.beginPath(),n.setStrokeStyle(c(e.color,o.opacity)),o.gradient){var S=n.createLinearGradient(0,t.area[0],0,t.height-t.area[2]);S.addColorStop("0",c(e.color,o.opacity)),S.addColorStop("1.0",c("#FFFFFF",.1)),n.setFillStyle(S)}else n.setFillStyle(c(e.color,o.opacity));if(n.setLineWidth(o.width*t.pix),A.length>1){var x=A[0],E=A[A.length-1];n.moveTo(x.x,x.y);var C=0;if("curve"===o.type)for(var O=0;O<A.length;O++){var I=A[O];if(0==C&&I.x>p&&(n.moveTo(I.x,I.y),C=1),O>0&&I.x>p&&I.x<g){var T=h(A,O-1);n.bezierCurveTo(T.ctrA.x,T.ctrA.y,T.ctrB.x,T.ctrB.y,I.x,I.y)}}if("straight"===o.type)for(var P=0;P<A.length;P++){var M=A[P];0==C&&M.x>p&&(n.moveTo(M.x,M.y),C=1),P>0&&M.x>p&&M.x<g&&n.lineTo(M.x,M.y)}if("step"===o.type)for(var R=0;R<A.length;R++){var D=A[R];0==C&&D.x>p&&(n.moveTo(D.x,D.y),C=1),R>0&&D.x>p&&D.x<g&&(n.lineTo(D.x,A[R-1].y),n.lineTo(D.x,D.y))}n.lineTo(E.x,l),n.lineTo(x.x,l),n.lineTo(x.x,x.y)}else{var N=A[0];n.moveTo(N.x-f/2,N.y)}if(n.closePath(),n.fill(),o.addLine){if("dash"==e.lineType){var B=e.dashLength?e.dashLength:8;B*=t.pix,n.setLineDash([B,B])}if(n.beginPath(),n.setStrokeStyle(e.color),n.setLineWidth(o.width*t.pix),1===A.length)n.moveTo(A[0].x,A[0].y);else{n.moveTo(A[0].x,A[0].y);var L=0;if("curve"===o.type)for(var j=0;j<A.length;j++){var F=A[j];if(0==L&&F.x>p&&(n.moveTo(F.x,F.y),L=1),j>0&&F.x>p&&F.x<g){var U=h(A,j-1);n.bezierCurveTo(U.ctrA.x,U.ctrA.y,U.ctrB.x,U.ctrB.y,F.x,F.y)}}if("straight"===o.type)for(var z=0;z<A.length;z++){var H=A[z];0==L&&H.x>p&&(n.moveTo(H.x,H.y),L=1),z>0&&H.x>p&&H.x<g&&n.lineTo(H.x,H.y)}if("step"===o.type)for(var q=0;q<A.length;q++){var V=A[q];0==L&&V.x>p&&(n.moveTo(V.x,V.y),L=1),q>0&&V.x>p&&V.x<g&&(n.lineTo(V.x,A[q-1].y),n.lineTo(V.x,V.y))}n.moveTo(A[0].x,A[0].y)}n.stroke(),n.setLineDash([])}}!1!==t.dataPointShape&&ae(m,e.color,e.pointShape,n,t),se(m,e.color,e.pointShape,n,t,o,a)})),!1!==t.dataLabel&&1===i&&e.forEach((function(e,o){var a,s,c;a=[].concat(t.chartData.yAxisData.ranges[e.index]),s=a.pop(),c=a.shift();var l=e.data,d=Y(l,s,c,u,f,t,r,i);ce(d,e,r,n,t)})),n.restore(),{xAxisPoints:u,calPoints:d,eachSpacing:f}}(f,t,r,n,e),o=i.xAxisPoints,a=i.calPoints,u=i.eachSpacing;t.chartData.xAxisPoints=o,t.chartData.calPoints=a,t.chartData.eachSpacing=u,xe(0,t,r,n),!1!==t.enableMarkLine&&1===e&&ye(t,0,n),Ee(t.series,t,r,n,t.chartData),we(t,r,n,e),Be(0,n)},onAnimationFinish:function(){a.uevent.trigger("renderComplete")}});break;case"ring":this.animationInstance=new je({timing:t.timing,duration:g,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&oe(n,t),t.chartData.pieData=Ce(f,t,r,n,e),Ee(t.series,t,r,n,t.chartData),we(t,r,n,e),Be(0,n)},onAnimationFinish:function(){a.uevent.trigger("renderComplete")}});break;case"pie":this.animationInstance=new je({timing:t.timing,duration:g,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&oe(n,t),t.chartData.pieData=Ce(f,t,r,n,e),Ee(t.series,t,r,n,t.chartData),we(t,r,n,e),Be(0,n)},onAnimationFinish:function(){a.uevent.trigger("renderComplete")}});break;case"rose":this.animationInstance=new je({timing:t.timing,duration:g,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&oe(n,t),t.chartData.pieData=function(e,t,r,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=s({},{type:"area",activeOpacity:.5,activeRadius:10,offsetAngle:0,labelWidth:15,border:!1,borderWidth:2,borderColor:"#FFFFFF",linearType:"none",customColor:[]},t.extra.rose);0==r.pieChartLinePadding&&(r.pieChartLinePadding=o.activeRadius*t.pix);var a={x:t.area[3]+(t.width-t.area[1]-t.area[3])/2,y:t.area[0]+(t.height-t.area[0]-t.area[2])/2},u=Math.min((t.width-t.area[1]-t.area[3])/2-r.pieChartLinePadding-r.pieChartTextPadding-r._pieTextMaxLength_,(t.height-t.area[0]-t.area[2])/2-r.pieChartLinePadding-r.pieChartTextPadding);u=u<10?10:u;var f=o.minRadius||.5*u;u<f&&(u=f+10),e=j(e,o.type,f,u,i);var l=o.activeRadius*t.pix;return o.customColor=v(o.linearType,o.customColor,e,r),e=e.map((function(e){return e._start_+=(o.offsetAngle||0)*Math.PI/180,e})),e.forEach((function(e,r){t.tooltip&&t.tooltip.index==r&&(n.beginPath(),n.setFillStyle(c(e.color,o.activeOpacity||.5)),n.moveTo(a.x,a.y),n.arc(a.x,a.y,l+e._radius_,e._start_,e._start_+2*e._rose_proportion_*Math.PI),n.closePath(),n.fill()),n.beginPath(),n.setLineWidth(o.borderWidth*t.pix),n.lineJoin="round",n.setStrokeStyle(o.borderColor);var i,s=e.color;"custom"==o.linearType&&(i=n.createCircularGradient?n.createCircularGradient(a.x,a.y,e._radius_):n.createRadialGradient(a.x,a.y,0,a.x,a.y,e._radius_),i.addColorStop(0,c(o.customColor[e.linearIndex],1)),i.addColorStop(1,c(e.color,1)),s=i);n.setFillStyle(s),n.moveTo(a.x,a.y),n.arc(a.x,a.y,e._radius_,e._start_,e._start_+2*e._rose_proportion_*Math.PI),n.closePath(),n.fill(),1==o.border&&n.stroke()})),!1!==t.dataLabel&&1===i&&ge(e,t,r,n,0,a),{center:a,radius:u,series:e}}(f,t,r,n,e),Ee(t.series,t,r,n,t.chartData),we(t,r,n,e),Be(0,n)},onAnimationFinish:function(){a.uevent.trigger("renderComplete")}});break;case"radar":this.animationInstance=new je({timing:t.timing,duration:g,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&oe(n,t),t.chartData.radarData=function(e,t,r,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=s({},{gridColor:"#cccccc",gridType:"radar",gridEval:1,axisLabel:!1,axisLabelTofix:0,labelShow:!0,labelColor:"#666666",labelPointShow:!1,labelPointRadius:3,labelPointColor:"#cccccc",opacity:.2,gridCount:3,border:!1,borderWidth:2,linearType:"none",customColor:[]},t.extra.radar),a=E(t.categories.length),u={x:t.area[3]+(t.width-t.area[1]-t.area[3])/2,y:t.area[0]+(t.height-t.area[0]-t.area[2])/2},f=(t.width-t.area[1]-t.area[3])/2,l=(t.height-t.area[0]-t.area[2])/2,d=Math.min(f-(x(t.categories,r.fontSize,n)+r.radarLabelTextMargin),l-r.radarLabelTextMargin);d-=r.radarLabelTextMargin*t.pix,d=d<10?10:d,d=o.radius?o.radius:d,n.beginPath(),n.setLineWidth(1*t.pix),n.setStrokeStyle(o.gridColor),a.forEach((function(e,t){var r=p(d*Math.cos(e),d*Math.sin(e),u);n.moveTo(u.x,u.y),t%o.gridEval==0&&n.lineTo(r.x,r.y)})),n.stroke(),n.closePath();for(var h=function(e){var r={};if(n.beginPath(),n.setLineWidth(1*t.pix),n.setStrokeStyle(o.gridColor),"radar"==o.gridType)a.forEach((function(t,i){var a=p(d/o.gridCount*e*Math.cos(t),d/o.gridCount*e*Math.sin(t),u);0===i?(r=a,n.moveTo(a.x,a.y)):n.lineTo(a.x,a.y)})),n.lineTo(r.x,r.y);else{var i=p(d/o.gridCount*e*Math.cos(1.5),d/o.gridCount*e*Math.sin(1.5),u);n.arc(u.x,u.y,u.y-i.y,0,2*Math.PI,!1)}n.stroke(),n.closePath()},g=1;g<=o.gridCount;g++)h(g);o.customColor=v(o.linearType,o.customColor,e,r);var y=N(a,u,d,e,t,i);if(y.forEach((function(r,i){n.beginPath(),n.setLineWidth(o.borderWidth*t.pix),n.setStrokeStyle(r.color);var a,s=c(r.color,o.opacity);"custom"==o.linearType&&(a=n.createCircularGradient?n.createCircularGradient(u.x,u.y,d):n.createRadialGradient(u.x,u.y,0,u.x,u.y,d),a.addColorStop(0,c(o.customColor[e[i].linearIndex],o.opacity)),a.addColorStop(1,c(r.color,o.opacity)),s=a);if(n.setFillStyle(s),r.data.forEach((function(e,t){0===t?n.moveTo(e.position.x,e.position.y):n.lineTo(e.position.x,e.position.y)})),n.closePath(),n.fill(),!0===o.border&&n.stroke(),n.closePath(),!1!==t.dataPointShape){var f=r.data.map((function(e){return e.position}));ae(f,r.color,r.pointShape,n,t)}})),!0===o.axisLabel){var b=Math.max(o.max,Math.max.apply(null,_(e))),m=d/o.gridCount,w=t.fontSize*t.pix;n.setFontSize(w),n.setFillStyle(t.fontColor),n.setTextAlign("left");for(g=0;g<o.gridCount+1;g++){var A=g*b/o.gridCount;A=A.toFixed(o.axisLabelTofix),n.fillText(String(A),u.x+3*t.pix,u.y-g*m+w/2)}}return pe(a,d,u,t,r,n),!1!==t.dataLabel&&1===i&&(y.forEach((function(e,i){n.beginPath();var o=e.textSize*t.pix||r.fontSize;n.setFontSize(o),n.setFillStyle(e.textColor||t.fontColor),e.data.forEach((function(e,t){Math.abs(e.position.x-u.x)<2?e.position.y<u.y?(n.setTextAlign("center"),n.fillText(e.value,e.position.x,e.position.y-4)):(n.setTextAlign("center"),n.fillText(e.value,e.position.x,e.position.y+o+2)):e.position.x<u.x?(n.setTextAlign("right"),n.fillText(e.value,e.position.x-4,e.position.y+o/2-2)):(n.setTextAlign("left"),n.fillText(e.value,e.position.x+4,e.position.y+o/2-2))})),n.closePath(),n.stroke()})),n.setTextAlign("left")),{center:u,radius:d,angleList:a}}(f,t,r,n,e),Ee(t.series,t,r,n,t.chartData),we(t,r,n,e),Be(0,n)},onAnimationFinish:function(){a.uevent.trigger("renderComplete")}});break;case"arcbar":this.animationInstance=new je({timing:t.timing,duration:g,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&oe(n,t),t.chartData.arcbarData=function(e,t,r,n){var i,o,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,u=s({},{startAngle:.75,endAngle:.25,type:"default",direction:"cw",lineCap:"round",width:12,gap:2,linearType:"none",customColor:[]},t.extra.arcbar);e=F(e,u,a),i=u.centerX||u.centerY?{x:u.centerX?u.centerX:t.width/2,y:u.centerY?u.centerY:t.height/2}:{x:t.width/2,y:t.height/2},u.radius?o=u.radius:(o=Math.min(i.x,i.y),o-=5*t.pix,o-=u.width/2),o=o<10?10:o,u.customColor=v(u.linearType,u.customColor,e,r);for(var f=0;f<e.length;f++){var l=e[f];n.setLineWidth(u.width*t.pix),n.setStrokeStyle(u.backgroundColor||"#E9E9E9"),n.setLineCap(u.lineCap),n.beginPath(),"default"==u.type?n.arc(i.x,i.y,o-(u.width*t.pix+u.gap*t.pix)*f,u.startAngle*Math.PI,u.endAngle*Math.PI,"ccw"==u.direction):n.arc(i.x,i.y,o-(u.width*t.pix+u.gap*t.pix)*f,0,2*Math.PI,"ccw"==u.direction),n.stroke();var d=l.color;if("custom"==u.linearType){var h=n.createLinearGradient(i.x-o,i.y,i.x+o,i.y);h.addColorStop(1,c(u.customColor[l.linearIndex],1)),h.addColorStop(0,c(l.color,1)),d=h}n.setLineWidth(u.width*t.pix),n.setStrokeStyle(d),n.setLineCap(u.lineCap),n.beginPath(),n.arc(i.x,i.y,o-(u.width*t.pix+u.gap*t.pix)*f,u.startAngle*Math.PI,l._proportion_*Math.PI,"ccw"==u.direction),n.stroke()}return ue(t,r,n,i),{center:i,radius:o,series:e}}(f,t,r,n,e),Be(0,n)},onAnimationFinish:function(){a.uevent.trigger("renderComplete")}});break;case"gauge":this.animationInstance=new je({timing:t.timing,duration:g,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&oe(n,t),t.chartData.gaugeData=function(e,t,r,n,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,a=s({},{type:"default",startAngle:.75,endAngle:.25,width:15,labelOffset:13,splitLine:{fixRadius:0,splitNumber:10,width:15,color:"#FFFFFF",childNumber:5,childWidth:5},pointer:{width:15,color:"auto"}},r.extra.gauge);void 0==a.oldAngle&&(a.oldAngle=a.startAngle),void 0==a.oldData&&(a.oldData=0),e=z(e,a.startAngle,a.endAngle);var u={x:r.width/2,y:r.height/2},f=Math.min(u.x,u.y);f-=5*r.pix,f-=a.width/2,f=f<10?10:f;var l=f-a.width,d=0;if("progress"==a.type){var h=f-3*a.width;i.beginPath();var p=i.createLinearGradient(u.x,u.y-h,u.x,u.y+h);p.addColorStop("0",c(t[0].color,.3)),p.addColorStop("1.0",c("#FFFFFF",.1)),i.setFillStyle(p),i.arc(u.x,u.y,h,0,2*Math.PI,!1),i.fill(),i.setLineWidth(a.width),i.setStrokeStyle(c(t[0].color,.3)),i.setLineCap("round"),i.beginPath(),i.arc(u.x,u.y,l,a.startAngle*Math.PI,a.endAngle*Math.PI,!1),i.stroke(),d=a.endAngle<a.startAngle?2+a.endAngle-a.startAngle:a.startAngle-a.endAngle;a.splitLine.splitNumber;var g=d/a.splitLine.splitNumber/a.splitLine.childNumber,y=-f-.5*a.width-a.splitLine.fixRadius,v=-f-a.width-a.splitLine.fixRadius+a.splitLine.width;i.save(),i.translate(u.x,u.y),i.rotate((a.startAngle-1)*Math.PI);for(var b=a.splitLine.splitNumber*a.splitLine.childNumber+1,m=t[0].data*o,_=0;_<b;_++)i.beginPath(),m>_/b?i.setStrokeStyle(c(t[0].color,1)):i.setStrokeStyle(c(t[0].color,.3)),i.setLineWidth(3*r.pix),i.moveTo(y,0),i.lineTo(v,0),i.stroke(),i.rotate(g*Math.PI);i.restore(),t=U(t,a,o),i.setLineWidth(a.width),i.setStrokeStyle(t[0].color),i.setLineCap("round"),i.beginPath(),i.arc(u.x,u.y,l,a.startAngle*Math.PI,t[0]._proportion_*Math.PI,!1),i.stroke();var w=f-2.5*a.width;i.save(),i.translate(u.x,u.y),i.rotate((t[0]._proportion_-1)*Math.PI),i.beginPath(),i.setLineWidth(a.width/3);var A=i.createLinearGradient(0,.6*-w,0,.6*w);A.addColorStop("0",c("#FFFFFF",0)),A.addColorStop("0.5",c(t[0].color,1)),A.addColorStop("1.0",c("#FFFFFF",0)),i.setStrokeStyle(A),i.arc(0,0,w,.85*Math.PI,1.15*Math.PI,!1),i.stroke(),i.beginPath(),i.setLineWidth(1),i.setStrokeStyle(t[0].color),i.setFillStyle(t[0].color),i.moveTo(-w-a.width/3/2,-4),i.lineTo(-w-a.width/3/2-4,0),i.lineTo(-w-a.width/3/2,4),i.lineTo(-w-a.width/3/2,-4),i.stroke(),i.fill(),i.restore()}else{i.setLineWidth(a.width),i.setLineCap("butt");for(var S=0;S<e.length;S++){var x=e[S];i.beginPath(),i.setStrokeStyle(x.color),i.arc(u.x,u.y,f,x._startAngle_*Math.PI,x._endAngle_*Math.PI,!1),i.stroke()}i.save(),d=a.endAngle<a.startAngle?2+a.endAngle-a.startAngle:a.startAngle-a.endAngle;var E=d/a.splitLine.splitNumber,C=d/a.splitLine.splitNumber/a.splitLine.childNumber,O=-f-.5*a.width-a.splitLine.fixRadius,I=-f-.5*a.width-a.splitLine.fixRadius+a.splitLine.width,T=-f-.5*a.width-a.splitLine.fixRadius+a.splitLine.childWidth;i.translate(u.x,u.y),i.rotate((a.startAngle-1)*Math.PI);for(var P=0;P<a.splitLine.splitNumber+1;P++)i.beginPath(),i.setStrokeStyle(a.splitLine.color),i.setLineWidth(2*r.pix),i.moveTo(O,0),i.lineTo(I,0),i.stroke(),i.rotate(E*Math.PI);i.restore(),i.save(),i.translate(u.x,u.y),i.rotate((a.startAngle-1)*Math.PI);for(var M=0;M<a.splitLine.splitNumber*a.splitLine.childNumber+1;M++)i.beginPath(),i.setStrokeStyle(a.splitLine.color),i.setLineWidth(1*r.pix),i.moveTo(O,0),i.lineTo(T,0),i.stroke(),i.rotate(C*Math.PI);i.restore(),t=H(t,e,a,o);for(var k=0;k<t.length;k++){var R=t[k];i.save(),i.translate(u.x,u.y),i.rotate((R._proportion_-1)*Math.PI),i.beginPath(),i.setFillStyle(R.color),i.moveTo(a.pointer.width,0),i.lineTo(0,-a.pointer.width/2),i.lineTo(-l,0),i.lineTo(0,a.pointer.width/2),i.lineTo(a.pointer.width,0),i.closePath(),i.fill(),i.beginPath(),i.setFillStyle("#FFFFFF"),i.arc(0,0,a.pointer.width/6,0,2*Math.PI,!1),i.fill(),i.restore()}!1!==r.dataLabel&&he(a,f,u,r,n,i)}return ue(r,n,i,u),1===o&&"gauge"===r.type&&(r.extra.gauge.oldAngle=t[0]._proportion_,r.extra.gauge.oldData=t[0].data),{center:u,radius:f,innerRadius:l,categories:e,totalAngle:d}}(l,f,t,r,n,e),Be(0,n)},onAnimationFinish:function(){a.uevent.trigger("renderComplete")}});break;case"candle":this.animationInstance=new je({timing:t.timing,duration:g,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&oe(n,t),Se(0,t,0,n),Ae(l,t,r,n);var i=function(e,t,r,n,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,a=s({},{color:{},average:{}},r.extra.candle);a.color=s({},{upLine:"#f04864",upFill:"#f04864",downLine:"#2fc25b",downFill:"#2fc25b"},a.color),a.average=s({},{show:!1,name:[],day:[],color:n.color},a.average),r.extra.candle=a;var u=r.chartData.xAxisData,c=u.xAxisPoints,f=u.eachSpacing,l=[];i.save();var d=-2,p=c.length+2,g=0,y=r.width+f;return r._scrollDistance_&&0!==r._scrollDistance_&&!0===r.enableScroll&&(i.translate(r._scrollDistance_,0),d=Math.floor(-r._scrollDistance_/f)-2,p=d+r.xAxis.itemCount+4,g=-r._scrollDistance_-2*f+r.area[3],y=g+(r.xAxis.itemCount+4)*f),(a.average.show||t)&&t.forEach((function(e,t){var a,s,u;a=[].concat(r.chartData.yAxisData.ranges[e.index]),s=a.pop(),u=a.shift();for(var l=e.data,d=Y(l,s,u,c,f,r,n,o),p=k(d,e),v=0;v<p.length;v++){var b=p[v];if(i.beginPath(),i.setStrokeStyle(e.color),i.setLineWidth(1),1===b.length)i.moveTo(b[0].x,b[0].y),i.arc(b[0].x,b[0].y,1,0,2*Math.PI);else{i.moveTo(b[0].x,b[0].y);for(var m=0,_=0;_<b.length;_++){var w=b[_];if(0==m&&w.x>g&&(i.moveTo(w.x,w.y),m=1),_>0&&w.x>g&&w.x<y){var A=h(b,_-1);i.bezierCurveTo(A.ctrA.x,A.ctrA.y,A.ctrB.x,A.ctrB.y,w.x,w.y)}}i.moveTo(b[0].x,b[0].y)}i.closePath(),i.stroke()}})),e.forEach((function(e,t){var s,u,h;s=[].concat(r.chartData.yAxisData.ranges[e.index]),u=s.pop(),h=s.shift();var g=e.data,y=$(g,u,h,c,f,r,n,o);l.push(y);for(var v=k(y,e),b=0;b<v[0].length;b++)if(b>d&&b<p){var m=v[0][b];i.beginPath(),g[b][1]-g[b][0]>0?(i.setStrokeStyle(a.color.upLine),i.setFillStyle(a.color.upFill),i.setLineWidth(1*r.pix),i.moveTo(m[3].x,m[3].y),i.lineTo(m[1].x,m[1].y),i.lineTo(m[1].x-f/4,m[1].y),i.lineTo(m[0].x-f/4,m[0].y),i.lineTo(m[0].x,m[0].y),i.lineTo(m[2].x,m[2].y),i.lineTo(m[0].x,m[0].y),i.lineTo(m[0].x+f/4,m[0].y),i.lineTo(m[1].x+f/4,m[1].y),i.lineTo(m[1].x,m[1].y),i.moveTo(m[3].x,m[3].y)):(i.setStrokeStyle(a.color.downLine),i.setFillStyle(a.color.downFill),i.setLineWidth(1*r.pix),i.moveTo(m[3].x,m[3].y),i.lineTo(m[0].x,m[0].y),i.lineTo(m[0].x-f/4,m[0].y),i.lineTo(m[1].x-f/4,m[1].y),i.lineTo(m[1].x,m[1].y),i.lineTo(m[2].x,m[2].y),i.lineTo(m[1].x,m[1].y),i.lineTo(m[1].x+f/4,m[1].y),i.lineTo(m[0].x+f/4,m[0].y),i.lineTo(m[0].x,m[0].y),i.moveTo(m[3].x,m[3].y)),i.closePath(),i.fill(),i.stroke()}})),i.restore(),{xAxisPoints:c,calPoints:l,eachSpacing:f}}(f,b,t,r,n,e),o=i.xAxisPoints,a=i.calPoints,u=i.eachSpacing;t.chartData.xAxisPoints=o,t.chartData.calPoints=a,t.chartData.eachSpacing=u,xe(0,t,r,n),!1!==t.enableMarkLine&&1===e&&ye(t,0,n),Ee(b?0:t.series,t,r,n,t.chartData),we(t,r,n,e),Be(0,n)},onAnimationFinish:function(){a.uevent.trigger("renderComplete")}});break}}function Ue(){this.events={}}je.prototype.stop=function(){this.isStop=!0},Ue.prototype.addEventListener=function(e,t){this.events[e]=this.events[e]||[],this.events[e].push(t)},Ue.prototype.delEventListener=function(e){this.events[e]=[]},Ue.prototype.trigger=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0],i=t.slice(1);this.events[n]&&this.events[n].forEach((function(e){try{e.apply(null,i)}catch(t){}}))};var ze=function(e){e.pix=e.pixelRatio?e.pixelRatio:1,e.fontSize=e.fontSize?e.fontSize:13,e.fontColor=e.fontColor?e.fontColor:a.fontColor,""!=e.background&&"none"!=e.background||(e.background="#FFFFFF"),e.title=s({},e.title),e.subtitle=s({},e.subtitle),e.duration=e.duration?e.duration:1e3,e.yAxis=s({},{data:[],showTitle:!1,disabled:!1,disableGrid:!1,gridSet:"number",splitNumber:5,gridType:"solid",dashLength:4*e.pix,gridColor:"#cccccc",padding:10,fontColor:"#666666"},e.yAxis),e.xAxis=s({},{rotateLabel:!1,rotateAngle:45,disabled:!1,disableGrid:!1,splitNumber:5,calibration:!1,fontColor:"#666666",fontSize:13,lineHeight:20,marginTop:0,gridType:"solid",dashLength:4,scrollAlign:"left",boundaryGap:"center",axisLine:!0,axisLineColor:"#cccccc",titleFontSize:13,titleOffsetY:0,titleOffsetX:0,titleFontColor:"#666666"},e.xAxis),e.xAxis.scrollPosition=e.xAxis.scrollAlign,e.legend=s({},{show:!0,position:"bottom",float:"center",backgroundColor:"rgba(0,0,0,0)",borderColor:"rgba(0,0,0,0)",borderWidth:0,padding:5,margin:5,itemGap:10,fontSize:e.fontSize,lineHeight:e.fontSize,fontColor:e.fontColor,formatter:{},hiddenColor:"#CECECE"},e.legend),e.extra=s({tooltip:{legendShape:"auto"}},e.extra),e.rotate=!!e.rotate,e.animation=!!e.animation,e.rotate=!!e.rotate,e.canvas2d=!!e.canvas2d;var t=s({},a);if(t.color=e.color?e.color:t.color,"pie"==e.type&&(t.pieChartLinePadding=!1===e.dataLabel?0:e.extra.pie.labelWidth*e.pix||t.pieChartLinePadding*e.pix),"ring"==e.type&&(t.pieChartLinePadding=!1===e.dataLabel?0:e.extra.ring.labelWidth*e.pix||t.pieChartLinePadding*e.pix),"rose"==e.type&&(t.pieChartLinePadding=!1===e.dataLabel?0:e.extra.rose.labelWidth*e.pix||t.pieChartLinePadding*e.pix),t.pieChartTextPadding=!1===e.dataLabel?0:t.pieChartTextPadding*e.pix,t.rotate=e.rotate,e.rotate){var r=e.width,n=e.height;e.width=n,e.height=r}if(e.padding=e.padding?e.padding:t.padding,t.yAxisWidth=a.yAxisWidth*e.pix,t.fontSize=e.fontSize*e.pix,t.titleFontSize=a.titleFontSize*e.pix,t.subtitleFontSize=a.subtitleFontSize*e.pix,!e.context)throw new Error("[uCharts] 未获取到context!注意:v2.0版本后,需要自行获取canvas的绘图上下文并传入opts.context!");this.context=e.context,this.context.setTextAlign||(this.context.setStrokeStyle=function(e){return this.strokeStyle=e},this.context.setLineWidth=function(e){return this.lineWidth=e},this.context.setLineCap=function(e){return this.lineCap=e},this.context.setFontSize=function(e){return this.font=e+"px sans-serif"},this.context.setFillStyle=function(e){return this.fillStyle=e},this.context.setTextAlign=function(e){return this.textAlign=e},this.context.setTextBaseline=function(e){return this.textBaseline=e},this.context.setShadow=function(e,t,r,n){this.shadowColor=n,this.shadowOffsetX=e,this.shadowOffsetY=t,this.shadowBlur=r},this.context.draw=function(){}),this.context.setLineDash||(this.context.setLineDash=function(e){}),e.chartData={},this.uevent=new Ue,this.scrollOption={currentOffset:0,startTouchX:0,distance:0,lastMoveTime:0},this.opts=e,this.config=t,Fe.call(this,e.type,e,t,this.context)};ze.prototype.updateData=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.opts=s({},this.opts,e),this.opts.updateData=!0;var t=e.scrollPosition||"current";switch(t){case"current":this.opts._scrollDistance_=this.scrollOption.currentOffset;break;case"left":this.opts._scrollDistance_=0,this.scrollOption={currentOffset:0,startTouchX:0,distance:0,lastMoveTime:0};break;case"right":var r=ie(this.opts.series,this.opts,this.config,this.context),n=r.yAxisWidth;this.config.yAxisWidth=n;var i=0,o=K(this.opts.categories,this.opts,this.config),a=o.xAxisPoints,u=o.startX,c=o.endX,f=o.eachSpacing,l=f*(a.length-1),d=c-u;i=d-l,this.scrollOption={currentOffset:i,startTouchX:i,distance:0,lastMoveTime:0},this.opts._scrollDistance_=i;break}Fe.call(this,this.opts.type,this.opts,this.config,this.context)},ze.prototype.zoom=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.opts.xAxis.itemCount;if(!0===this.opts.enableScroll){var t=Math.round(Math.abs(this.scrollOption.currentOffset)/this.opts.chartData.eachSpacing)+Math.round(this.opts.xAxis.itemCount/2);this.opts.animation=!1,this.opts.xAxis.itemCount=e.itemCount;var r=ie(this.opts.series,this.opts,this.config,this.context),n=r.yAxisWidth;this.config.yAxisWidth=n;var i=0,o=K(this.opts.categories,this.opts,this.config),a=o.xAxisPoints,s=o.startX,u=o.endX,c=o.eachSpacing,f=c*t,d=u-s,h=d-c*(a.length-1);i=d/2-f,i>0&&(i=0),i<h&&(i=h),this.scrollOption={currentOffset:i,startTouchX:0,distance:0,lastMoveTime:0},l(this,i,this.opts.chartData,this.config,this.opts),this.opts._scrollDistance_=i,Fe.call(this,this.opts.type,this.opts,this.config,this.context)}else console.log("[uCharts] 请启用滚动条后使用")},ze.prototype.dobuleZoom=function(e){if(!0===this.opts.enableScroll){var t=e.changedTouches;if(!(t.length<2)){for(var r=0;r<t.length;r++)t[r].x=t[r].x?t[r].x:t[r].clientX,t[r].y=t[r].y?t[r].y:t[r].clientY;var n=[A(t[0],this.opts,e),A(t[1],this.opts,e)],i=Math.abs(n[0].x-n[1].x);if(!this.scrollOption.moveCount){var o={changedTouches:[{x:t[0].x,y:this.opts.area[0]/this.opts.pix+2}]},a={changedTouches:[{x:t[1].x,y:this.opts.area[0]/this.opts.pix+2}]};this.opts.rotate&&(o={changedTouches:[{x:this.opts.height/this.opts.pix-this.opts.area[0]/this.opts.pix-2,y:t[0].y}]},a={changedTouches:[{x:this.opts.height/this.opts.pix-this.opts.area[0]/this.opts.pix-2,y:t[1].y}]});var s=this.getCurrentDataIndex(o).index,u=this.getCurrentDataIndex(a).index,c=Math.abs(s-u);return this.scrollOption.moveCount=c,this.scrollOption.moveCurrent1=Math.min(s,u),void(this.scrollOption.moveCurrent2=Math.max(s,u))}var f=i/this.scrollOption.moveCount,d=(this.opts.width-this.opts.area[1]-this.opts.area[3])/f;d=d<=2?2:d,d=d>=this.opts.categories.length?this.opts.categories.length:d,this.opts.animation=!1,this.opts.xAxis.itemCount=d;var h=0,p=K(this.opts.categories,this.opts,this.config),g=p.xAxisPoints,y=p.startX,v=p.endX,b=p.eachSpacing,m=b*this.scrollOption.moveCurrent1,_=v-y,w=_-b*(g.length-1);h=-m+Math.min(n[0].x,n[1].x)-this.opts.area[3]-b,h>0&&(h=0),h<w&&(h=w),this.scrollOption.currentOffset=h,this.scrollOption.startTouchX=0,this.scrollOption.distance=0,l(this,h,this.opts.chartData,this.config,this.opts),this.opts._scrollDistance_=h,Fe.call(this,this.opts.type,this.opts,this.config,this.context)}}else console.log("[uCharts] 请启用滚动条后使用")},ze.prototype.stopAnimation=function(){this.animationInstance&&this.animationInstance.stop()},ze.prototype.addEventListener=function(e,t){this.uevent.addEventListener(e,t)},ze.prototype.delEventListener=function(e){this.uevent.delEventListener(e)},ze.prototype.getCurrentDataIndex=function(e){var t=null;if(t=e.changedTouches?e.changedTouches[0]:e.mp.changedTouches[0],t){var r=A(t,this.opts,e);return"pie"===this.opts.type||"ring"===this.opts.type?function(e,t,r){var n=-1,i=B(t.series);if(t&&t.center&&M(e,t.center,t.radius)){var o=Math.atan2(t.center.y-e.y,e.x-t.center.x);o=-o,r.extra.pie&&r.extra.pie.offsetAngle&&(o-=r.extra.pie.offsetAngle*Math.PI/180),r.extra.ring&&r.extra.ring.offsetAngle&&(o-=r.extra.ring.offsetAngle*Math.PI/180);for(var a=0,s=i.length;a<s;a++)if(d(o,i[a]._start_,i[a]._start_+2*i[a]._proportion_*Math.PI)){n=a;break}}return n}({x:r.x,y:r.y},this.opts.chartData.pieData,this.opts):"rose"===this.opts.type?function(e,t,r){var n=-1,i=j(r._series_,r.extra.rose.type,t.radius,t.radius);if(t&&t.center&&M(e,t.center,t.radius)){var o=Math.atan2(t.center.y-e.y,e.x-t.center.x);o=-o,r.extra.rose&&r.extra.rose.offsetAngle&&(o-=r.extra.rose.offsetAngle*Math.PI/180);for(var a=0,s=i.length;a<s;a++)if(d(o,i[a]._start_,i[a]._start_+2*i[a]._rose_proportion_*Math.PI)){n=a;break}}return n}({x:r.x,y:r.y},this.opts.chartData.pieData,this.opts):"radar"===this.opts.type?function(e,t,r){var n=2*Math.PI/r,i=-1;if(M(e,t.center,t.radius)){var o=function(e){return e<0&&(e+=2*Math.PI),e>2*Math.PI&&(e-=2*Math.PI),e},a=Math.atan2(t.center.y-e.y,e.x-t.center.x);a*=-1,a<0&&(a+=2*Math.PI);var s=t.angleList.map((function(e){return e=o(-1*e),e}));s.forEach((function(e,t){var r=o(e-n/2),s=o(e+n/2);s<r&&(s+=2*Math.PI),(a>=r&&a<=s||a+2*Math.PI>=r&&a+2*Math.PI<=s)&&(i=t)}))}return i}({x:r.x,y:r.y},this.opts.chartData.radarData,this.opts.categories.length):"funnel"===this.opts.type?function(e,t){for(var r=-1,n=0,i=t.series.length;n<i;n++){var o=t.series[n];if(e.x>o.funnelArea[0]&&e.x<o.funnelArea[2]&&e.y>o.funnelArea[1]&&e.y<o.funnelArea[3]){r=n;break}}return r}({x:r.x,y:r.y},this.opts.chartData.funnelData):"map"===this.opts.type?function(e,t){for(var r=-1,n=t.chartData.mapData,i=t.series,o=function(e,t,r,n,i,o){return{x:(t-i)/n+r.xMin,y:r.yMax-(e-o)/n}}(e.y,e.x,n.bounds,n.scale,n.xoffset,n.yoffset),a=[o.x,o.y],s=0,u=i.length;s<u;s++){var c=i[s].geometry.coordinates;if(Pe(a,c,t.chartData.mapData.mercator)){r=s;break}}return r}({x:r.x,y:r.y},this.opts):"word"===this.opts.type?function(e,t){for(var r=-1,n=0,i=t.length;n<i;n++){var o=t[n];if(e.x>o.area[0]&&e.x<o.area[2]&&e.y>o.area[1]&&e.y<o.area[3]){r=n;break}}return r}({x:r.x,y:r.y},this.opts.chartData.wordCloudData):"bar"===this.opts.type?function(e,t,r,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o={index:-1,group:[]},a=r.chartData.eachSpacing/2,s=r.chartData.yAxisPoints;return t&&t.length>0&&P(e,r,n)&&s.forEach((function(t,r){e.y+i+a>t&&(o.index=r)})),o}({x:r.x,y:r.y},this.opts.chartData.calPoints,this.opts,this.config,Math.abs(this.scrollOption.currentOffset)):function(e,t,r,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o={index:-1,group:[]},a=r.chartData.eachSpacing/2,s=[];if(t&&t.length>0){if(r.categories){for(var u=1;u<r.chartData.xAxisPoints.length;u++)s.push(r.chartData.xAxisPoints[u]-a);"line"!=r.type&&"area"!=r.type||"justify"!=r.xAxis.boundaryGap||(s=r.chartData.xAxisPoints)}else a=0;if(P(e,r,n))if(r.categories)s.forEach((function(t,r){e.x+i+a>t&&(o.index=r)}));else{for(var c=Array(t.length),f=0;f<t.length;f++){c[f]=Array(t[f].length);for(var l=0;l<t[f].length;l++)c[f][l]=Math.abs(t[f][l].x-e.x)}for(var d=Array(c.length),h=Array(c.length),p=0;p<c.length;p++)d[p]=Math.min.apply(null,c[p]),h[p]=c[p].indexOf(d[p]);var g=Math.min.apply(null,d);o.index=[];for(var y=0;y<d.length;y++)d[y]==g&&(o.group.push(y),o.index.push(h[y]))}}return o}({x:r.x,y:r.y},this.opts.chartData.calPoints,this.opts,this.config,Math.abs(this.scrollOption.currentOffset))}return-1},ze.prototype.getLegendDataIndex=function(e){var t=null;if(t=e.changedTouches?e.changedTouches[0]:e.mp.changedTouches[0],t){var r=A(t,this.opts,e);return function(e,t,r){var n=-1;if(function(e,t){return e.x>t.start.x&&e.x<t.end.x&&e.y>t.start.y&&e.y<t.end.y}(e,t.area)){for(var i=t.points,o=-1,a=0,s=i.length;a<s;a++)for(var u=i[a],c=0;c<u.length;c++){o+=1;var f=u[c]["area"];if(f&&e.x>f[0]-0&&e.x<f[2]+0&&e.y>f[1]-0&&e.y<f[3]+0){n=o;break}}return n}return n}({x:r.x,y:r.y},this.opts.chartData.legendData)}return-1},ze.prototype.touchLegend=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null;if(r=e.changedTouches?e.changedTouches[0]:e.mp.changedTouches[0],r){A(r,this.opts,e);var n=this.getLegendDataIndex(e);n>=0&&("candle"==this.opts.type?this.opts.seriesMA[n].show=!this.opts.seriesMA[n].show:this.opts.series[n].show=!this.opts.series[n].show,this.opts.animation=!!t.animation,this.opts._scrollDistance_=this.scrollOption.currentOffset,Fe.call(this,this.opts.type,this.opts,this.config,this.context))}},ze.prototype.showToolTip=function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null;n=e.changedTouches?e.changedTouches[0]:e.mp.changedTouches[0],n||console.log("[uCharts] 未获取到event坐标信息");var i=A(n,this.opts,e),o=this.scrollOption.currentOffset,a=s({},this.opts,{_scrollDistance_:o,animation:!1});if("line"===this.opts.type||"area"===this.opts.type||"column"===this.opts.type||"scatter"===this.opts.type||"bubble"===this.opts.type){var u=this.getCurrentDataIndex(e),c=void 0==r.index?u.index:r.index;if(c>-1||c.length>0){var f=S(this.opts.series,c,u.group);if(0!==f.length){var l=C(f,this.opts,c,u.group,this.opts.categories,r),d=l.textList,h=l.offset;h.y=i.y,a.tooltip={textList:void 0!==r.textList?r.textList:d,offset:void 0!==r.offset?r.offset:h,option:r,index:c,group:u.group}}}Fe.call(this,a.type,a,this.config,this.context)}if("mount"===this.opts.type){c=void 0==r.index?this.getCurrentDataIndex(e).index:r.index;if(c>-1){a=s({},this.opts,{animation:!1}),f=s({},a._series_[c]),d=[{text:r.formatter?r.formatter(f,void 0,c,a):f.name+": "+f.data,color:f.color,legendShape:"auto"==this.opts.extra.tooltip.legendShape?f.legendShape:this.opts.extra.tooltip.legendShape}],h={x:a.chartData.calPoints[c].x,y:i.y};a.tooltip={textList:r.textList?r.textList:d,offset:void 0!==r.offset?r.offset:h,option:r,index:c}}Fe.call(this,a.type,a,this.config,this.context)}if("bar"===this.opts.type){u=this.getCurrentDataIndex(e),c=void 0==r.index?u.index:r.index;if(c>-1||c.length>0){f=S(this.opts.series,c,u.group);if(0!==f.length){l=C(f,this.opts,c,u.group,this.opts.categories,r),d=l.textList,h=l.offset;h.x=i.x,a.tooltip={textList:void 0!==r.textList?r.textList:d,offset:void 0!==r.offset?r.offset:h,option:r,index:c}}}Fe.call(this,a.type,a,this.config,this.context)}if("mix"===this.opts.type){u=this.getCurrentDataIndex(e),c=void 0==r.index?u.index:r.index;if(c>-1){o=this.scrollOption.currentOffset,a=s({},this.opts,{_scrollDistance_:o,animation:!1}),f=S(this.opts.series,c);if(0!==f.length){var p=O(f,this.opts,c,this.opts.categories,r);d=p.textList,h=p.offset;h.y=i.y,a.tooltip={textList:r.textList?r.textList:d,offset:void 0!==r.offset?r.offset:h,option:r,index:c}}}Fe.call(this,a.type,a,this.config,this.context)}if("candle"===this.opts.type){u=this.getCurrentDataIndex(e),c=void 0==r.index?u.index:r.index;if(c>-1){o=this.scrollOption.currentOffset,a=s({},this.opts,{_scrollDistance_:o,animation:!1}),f=S(this.opts.series,c);if(0!==f.length){l=I(this.opts.series[0].data,f,this.opts,c,this.opts.categories,this.opts.extra.candle,r),d=l.textList,h=l.offset;h.y=i.y,a.tooltip={textList:r.textList?r.textList:d,offset:void 0!==r.offset?r.offset:h,option:r,index:c}}}Fe.call(this,a.type,a,this.config,this.context)}if("pie"===this.opts.type||"ring"===this.opts.type||"rose"===this.opts.type||"funnel"===this.opts.type){c=void 0==r.index?this.getCurrentDataIndex(e):r.index;if(c>-1){a=s({},this.opts,{animation:!1}),f=s({},a._series_[c]),d=[{text:r.formatter?r.formatter(f,void 0,c,a):f.name+": "+f.data,color:f.color,legendShape:"auto"==this.opts.extra.tooltip.legendShape?f.legendShape:this.opts.extra.tooltip.legendShape}],h={x:i.x,y:i.y};a.tooltip={textList:r.textList?r.textList:d,offset:void 0!==r.offset?r.offset:h,option:r,index:c}}Fe.call(this,a.type,a,this.config,this.context)}if("map"===this.opts.type){c=void 0==r.index?this.getCurrentDataIndex(e):r.index;if(c>-1){a=s({},this.opts,{animation:!1}),f=s({},this.opts.series[c]);f.name=f.properties.name;d=[{text:r.formatter?r.formatter(f,void 0,c,this.opts):f.name,color:f.color,legendShape:"auto"==this.opts.extra.tooltip.legendShape?f.legendShape:this.opts.extra.tooltip.legendShape}],h={x:i.x,y:i.y};a.tooltip={textList:r.textList?r.textList:d,offset:void 0!==r.offset?r.offset:h,option:r,index:c}}a.updateData=!1,Fe.call(this,a.type,a,this.config,this.context)}if("word"===this.opts.type){c=void 0==r.index?this.getCurrentDataIndex(e):r.index;if(c>-1){a=s({},this.opts,{animation:!1}),f=s({},this.opts.series[c]),d=[{text:r.formatter?r.formatter(f,void 0,c,this.opts):f.name,color:f.color,legendShape:"auto"==this.opts.extra.tooltip.legendShape?f.legendShape:this.opts.extra.tooltip.legendShape}],h={x:i.x,y:i.y};a.tooltip={textList:r.textList?r.textList:d,offset:void 0!==r.offset?r.offset:h,option:r,index:c}}a.updateData=!1,Fe.call(this,a.type,a,this.config,this.context)}if("radar"===this.opts.type){c=void 0==r.index?this.getCurrentDataIndex(e):r.index;if(c>-1){a=s({},this.opts,{animation:!1}),f=S(this.opts.series,c);if(0!==f.length){d=f.map((function(e){return{text:r.formatter?r.formatter(e,t.opts.categories[c],c,t.opts):e.name+": "+e.data,color:e.color,legendShape:"auto"==t.opts.extra.tooltip.legendShape?e.legendShape:t.opts.extra.tooltip.legendShape}})),h={x:i.x,y:i.y};a.tooltip={textList:r.textList?r.textList:d,offset:void 0!==r.offset?r.offset:h,option:r,index:c}}}Fe.call(this,a.type,a,this.config,this.context)}},ze.prototype.translate=function(e){this.scrollOption={currentOffset:e,startTouchX:e,distance:0,lastMoveTime:0};var t=s({},this.opts,{_scrollDistance_:e,animation:!1});Fe.call(this,this.opts.type,t,this.config,this.context)},ze.prototype.scrollStart=function(e){var t=null;t=e.changedTouches?e.changedTouches[0]:e.mp.changedTouches[0];var r=A(t,this.opts,e);t&&!0===this.opts.enableScroll&&(this.scrollOption.startTouchX=r.x)},ze.prototype.scroll=function(e){0===this.scrollOption.lastMoveTime&&(this.scrollOption.lastMoveTime=Date.now());var t=this.opts.touchMoveLimit||60,r=Date.now(),n=r-this.scrollOption.lastMoveTime;if(!(n<Math.floor(1e3/t))&&0!=this.scrollOption.startTouchX){this.scrollOption.lastMoveTime=r;var i=null;if(i=e.changedTouches?e.changedTouches[0]:e.mp.changedTouches[0],i&&!0===this.opts.enableScroll){var o,a=A(i,this.opts,e);o=a.x-this.scrollOption.startTouchX;var u=this.scrollOption.currentOffset,c=l(this,u+o,this.opts.chartData,this.config,this.opts);this.scrollOption.distance=o=c-u;var f=s({},this.opts,{_scrollDistance_:u+o,animation:!1});return this.opts=f,Fe.call(this,f.type,f,this.config,this.context),u+o}}},ze.prototype.scrollEnd=function(e){if(!0===this.opts.enableScroll){var t=this.scrollOption,r=t.currentOffset,n=t.distance;this.scrollOption.currentOffset=r+n,this.scrollOption.distance=0,this.scrollOption.moveCount=0}};var He=ze;t.default=He},"27db":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("d4f8")),o=n(r("8d76")),a=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),s=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.parseInformation=function(){var e=new i.default;return this.getGeneralDecoder().decodeAllCodes(e,t.HEADER_SIZE)},t.HEADER_SIZE=5,t}(o.default),u=s;t.default=u},2825:function(e,t,r){var n=r("5f79").Buffer,i=r("81eb"),o=r("959e").ec,a=r("8e48"),s=r("4037");function u(e,t){if(e.cmpn(0)<=0)throw new Error("invalid sig");if(e.cmp(t)>=t)throw new Error("invalid sig")}e.exports=function(e,t,r,c,f){var l=a(r);if("ec"===l.type){if("ecdsa"!==c&&"ecdsa/rsa"!==c)throw new Error("wrong public key type");return function(e,t,r){var n=s[r.data.algorithm.curve.join(".")];if(!n)throw new Error("unknown curve "+r.data.algorithm.curve.join("."));var i=new o(n),a=r.data.subjectPrivateKey.data;return i.verify(t,e,a)}(e,t,l)}if("dsa"===l.type){if("dsa"!==c)throw new Error("wrong public key type");return function(e,t,r){var n=r.data.p,o=r.data.q,s=r.data.g,c=r.data.pub_key,f=a.signature.decode(e,"der"),l=f.s,d=f.r;u(l,o),u(d,o);var h=i.mont(n),p=l.invm(o),g=s.toRed(h).redPow(new i(t).mul(p).mod(o)).fromRed().mul(c.toRed(h).redPow(d.mul(p).mod(o)).fromRed()).mod(n).mod(o);return 0===g.cmp(d)}(e,t,l)}if("rsa"!==c&&"ecdsa/rsa"!==c)throw new Error("wrong public key type");t=n.concat([f,t]);var d=l.modulus.byteLength(),h=[1],p=0;while(t.length+h.length+2<d)h.push(255),p++;h.push(0);var g=-1;while(++g<t.length)h.push(t[g]);h=n.from(h);var y=i.mont(l.modulus);e=new i(e).toRed(y),e=e.redPow(new i(l.publicExponent)),e=n.from(e.fromRed().toArray());var v=p<8?1:0;d=Math.min(e.length,h.length),e.length!==h.length&&(v=1),g=-1;while(++g<d)v|=e[g]^h[g];return 0===v}},2831:function(e,t,r){"use strict";const n=t;n.bignum=r("81eb"),n.define=r("9090").define,n.base=r("dd4b"),n.constants=r("4e70"),n.decoders=r("88b2"),n.encoders=r("4807")},"28d0":function(e,t,r){t.nextTick=function(e){var t=Array.prototype.slice.call(arguments);t.shift(),setTimeout((function(){e.apply(null,t)}),0)},t.platform=t.arch=t.execPath=t.title="browser",t.pid=1,t.browser=!0,t.env={},t.argv=[],t.binding=function(e){throw new Error("No such module. (Possibly not yet loaded)")},function(){var e,n="/";t.cwd=function(){return n},t.chdir=function(t){e||(e=r("a3fc")),n=e.resolve(t,n)}}(),t.exit=t.kill=t.umask=t.dlopen=t.uptime=t.memoryUsage=t.uvCounters=function(){},t.features={}},"290e":function(e,t,r){var n=r("2c2e"),i=r("0b34"),o=r("5f79").Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function u(){this.init(),this._w=s,i.call(this,64,56)}function c(e){return e<<1|e>>>31}function f(e){return e<<5|e>>>27}function l(e){return e<<30|e>>>2}function d(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(e){for(var t=this._w,r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,s=0|this._e,u=0;u<16;++u)t[u]=e.readInt32BE(4*u);for(;u<80;++u)t[u]=c(t[u-3]^t[u-8]^t[u-14]^t[u-16]);for(var h=0;h<80;++h){var p=~~(h/20),g=f(r)+d(p,n,i,o)+s+t[h]+a[p]|0;s=o,o=i,i=l(n),n=r,r=g}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=s+this._e|0},u.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=u},"298a":function(e){e.exports=JSON.parse('{"name":"elliptic","version":"6.5.4","description":"EC cryptography","main":"lib/elliptic.js","files":["lib"],"scripts":{"lint":"eslint lib test","lint:fix":"npm run lint -- --fix","unit":"istanbul test _mocha --reporter=spec test/index.js","test":"npm run lint && npm run unit","version":"grunt dist && git add dist/"},"repository":{"type":"git","url":"git@github.com:indutny/elliptic"},"keywords":["EC","Elliptic","curve","Cryptography"],"author":"Fedor Indutny <fedor@indutny.com>","license":"MIT","bugs":{"url":"https://github.com/indutny/elliptic/issues"},"homepage":"https://github.com/indutny/elliptic","devDependencies":{"brfs":"^2.0.2","coveralls":"^3.1.0","eslint":"^7.6.0","grunt":"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1","istanbul":"^0.4.5","mocha":"^8.0.1"},"dependencies":{"bn.js":"^4.11.9","brorand":"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1","inherits":"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}')},"29e3":function(e,t,r){var n=r("5f79").Buffer,i=r("055b"),o=r("7125"),a=r("2c2e"),s=r("a67f"),u=r("2825"),c=r("7a32");function f(e){o.Writable.call(this);var t=c[e];if(!t)throw new Error("Unknown message digest");this._hashType=t.hash,this._hash=i(t.hash),this._tag=t.id,this._signType=t.sign}function l(e){o.Writable.call(this);var t=c[e];if(!t)throw new Error("Unknown message digest");this._hash=i(t.hash),this._tag=t.id,this._signType=t.sign}function d(e){return new f(e)}function h(e){return new l(e)}Object.keys(c).forEach((function(e){c[e].id=n.from(c[e].id,"hex"),c[e.toLowerCase()]=c[e]})),a(f,o.Writable),f.prototype._write=function(e,t,r){this._hash.update(e),r()},f.prototype.update=function(e,t){return"string"===typeof e&&(e=n.from(e,t)),this._hash.update(e),this},f.prototype.sign=function(e,t){this.end();var r=this._hash.digest(),n=s(r,e,this._hashType,this._signType,this._tag);return t?n.toString(t):n},a(l,o.Writable),l.prototype._write=function(e,t,r){this._hash.update(e),r()},l.prototype.update=function(e,t){return"string"===typeof e&&(e=n.from(e,t)),this._hash.update(e),this},l.prototype.verify=function(e,t,r){"string"===typeof t&&(t=n.from(t,r)),this.end();var i=this._hash.digest();return u(t,i,e,this._signType,this._tag)},e.exports={Sign:d,Verify:h,createSign:d,createVerify:h}},"2a00":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.BrowserQRCodeReader=void 0;var i=r("a5d4"),o=n(r("08c4")),a=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),s=function(e){function t(t){return void 0===t&&(t=500),e.call(this,new o.default,t)||this}return a(t,e),t}(i.BrowserCodeReader);t.BrowserQRCodeReader=s},"2bfd":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("8618")),o=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),a=function(e){function t(t,r){var n=e.call(this,t)||this;return n.value=r,n}return o(t,e),t.prototype.getValue=function(){return this.value},t.prototype.isFNC1=function(){return this.value===t.FNC1},t.FNC1="$",t}(i.default),s=a;t.default=s},"2c2e":function(e,t){"function"===typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},"2d81":function(e,t,r){"use strict";var n=r("12e3").Buffer,i=r("2c2e"),o=r("c83b"),a=new Array(16),s=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],u=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],c=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],f=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],l=[0,1518500249,1859775393,2400959708,2840853838],d=[1352829926,1548603684,1836072691,2053994217,0];function h(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function p(e,t){return e<<t|e>>>32-t}function g(e,t,r,n,i,o,a,s){return p(e+(t^r^n)+o+a|0,s)+i|0}function y(e,t,r,n,i,o,a,s){return p(e+(t&r|~t&n)+o+a|0,s)+i|0}function v(e,t,r,n,i,o,a,s){return p(e+((t|~r)^n)+o+a|0,s)+i|0}function b(e,t,r,n,i,o,a,s){return p(e+(t&n|r&~n)+o+a|0,s)+i|0}function m(e,t,r,n,i,o,a,s){return p(e+(t^(r|~n))+o+a|0,s)+i|0}i(h,o),h.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,h=0|this._e,_=0|this._a,w=0|this._b,A=0|this._c,S=0|this._d,x=0|this._e,E=0;E<80;E+=1){var C,O;E<16?(C=g(r,n,i,o,h,e[s[E]],l[0],c[E]),O=m(_,w,A,S,x,e[u[E]],d[0],f[E])):E<32?(C=y(r,n,i,o,h,e[s[E]],l[1],c[E]),O=b(_,w,A,S,x,e[u[E]],d[1],f[E])):E<48?(C=v(r,n,i,o,h,e[s[E]],l[2],c[E]),O=v(_,w,A,S,x,e[u[E]],d[2],f[E])):E<64?(C=b(r,n,i,o,h,e[s[E]],l[3],c[E]),O=y(_,w,A,S,x,e[u[E]],d[3],f[E])):(C=m(r,n,i,o,h,e[s[E]],l[4],c[E]),O=g(_,w,A,S,x,e[u[E]],d[4],f[E])),r=h,h=o,o=p(i,10),i=n,n=C,_=x,x=S,S=p(A,10),A=w,w=O}var I=this._b+i+S|0;this._b=this._c+o+x|0,this._c=this._d+h+_|0,this._d=this._e+r+w|0,this._e=this._a+n+A|0,this._a=I},h.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=n.alloc?n.alloc(20):new n(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},e.exports=h},"2eda":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("5a0c")),o=n(r("f87b")),a=n(r("f930")),s=n(r("cc5c")),u=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),c=function(e){var t="function"===typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},f=function(e){function t(t,r){var n=e.call(this,t)||this;return n._isLeft=r,n}return u(t,e),t.prototype.setRowNumbers=function(){var e,t;try{for(var r=c(this.getCodewords()),n=r.next();!n.done;n=r.next()){var i=n.value;null!=i&&i.setRowNumberAsRowIndicatorColumn()}}catch(o){e={error:o}}finally{try{n&&!n.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}},t.prototype.adjustCompleteIndicatorColumnRowNumbers=function(e){var t=this.getCodewords();this.setRowNumbers(),this.removeIncorrectCodewords(t,e);for(var r=this.getBoundingBox(),n=this._isLeft?r.getTopLeft():r.getTopRight(),i=this._isLeft?r.getBottomLeft():r.getBottomRight(),o=this.imageRowToCodewordIndex(Math.trunc(n.getY())),a=this.imageRowToCodewordIndex(Math.trunc(i.getY())),s=-1,u=1,c=0,f=o;f<a;f++)if(null!=t[f]){var l=t[f],d=l.getRowNumber()-s;if(0===d)c++;else if(1===d)u=Math.max(u,c),c=1,s=l.getRowNumber();else if(d<0||l.getRowNumber()>=e.getRowCount()||d>f)t[f]=null;else{var h=void 0;h=u>2?(u-2)*d:d;for(var p=h>=f,g=1;g<=h&&!p;g++)p=null!=t[f-g];p?t[f]=null:(s=l.getRowNumber(),c=1)}}},t.prototype.getRowHeights=function(){var e,t,r=this.getBarcodeMetadata();if(null==r)return null;this.adjustIncompleteIndicatorColumnRowNumbers(r);var n=new Int32Array(r.getRowCount());try{for(var i=c(this.getCodewords()),o=i.next();!o.done;o=i.next()){var a=o.value;if(null!=a){var s=a.getRowNumber();if(s>=n.length)continue;n[s]++}}}catch(u){e={error:u}}finally{try{o&&!o.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}return n},t.prototype.adjustIncompleteIndicatorColumnRowNumbers=function(e){for(var t=this.getBoundingBox(),r=this._isLeft?t.getTopLeft():t.getTopRight(),n=this._isLeft?t.getBottomLeft():t.getBottomRight(),i=this.imageRowToCodewordIndex(Math.trunc(r.getY())),o=this.imageRowToCodewordIndex(Math.trunc(n.getY())),a=this.getCodewords(),s=-1,u=1,c=0,f=i;f<o;f++)if(null!=a[f]){var l=a[f];l.setRowNumberAsRowIndicatorColumn();var d=l.getRowNumber()-s;0===d?c++:1===d?(u=Math.max(u,c),c=1,s=l.getRowNumber()):l.getRowNumber()>=e.getRowCount()?a[f]=null:(s=l.getRowNumber(),c=1)}},t.prototype.getBarcodeMetadata=function(){var e,t,r=this.getCodewords(),n=new s.default,a=new s.default,u=new s.default,f=new s.default;try{for(var l=c(r),d=l.next();!d.done;d=l.next()){var h=d.value;if(null!=h){h.setRowNumberAsRowIndicatorColumn();var p=h.getValue()%30,g=h.getRowNumber();switch(this._isLeft||(g+=2),g%3){case 0:a.setValue(3*p+1);break;case 1:f.setValue(p/3),u.setValue(p%3);break;case 2:n.setValue(p+1);break}}}}catch(v){e={error:v}}finally{try{d&&!d.done&&(t=l.return)&&t.call(l)}finally{if(e)throw e.error}}if(0===n.getValue().length||0===a.getValue().length||0===u.getValue().length||0===f.getValue().length||n.getValue()[0]<1||a.getValue()[0]+u.getValue()[0]<i.default.MIN_ROWS_IN_BARCODE||a.getValue()[0]+u.getValue()[0]>i.default.MAX_ROWS_IN_BARCODE)return null;var y=new o.default(n.getValue()[0],a.getValue()[0],u.getValue()[0],f.getValue()[0]);return this.removeIncorrectCodewords(r,y),y},t.prototype.removeIncorrectCodewords=function(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(null!=e[r]){var i=n.getValue()%30,o=n.getRowNumber();if(o>t.getRowCount())e[r]=null;else switch(this._isLeft||(o+=2),o%3){case 0:3*i+1!==t.getRowCountUpperPart()&&(e[r]=null);break;case 1:Math.trunc(i/3)===t.getErrorCorrectionLevel()&&i%3===t.getRowCountLowerPart()||(e[r]=null);break;case 2:i+1!==t.getColumnCount()&&(e[r]=null);break}}}},t.prototype.isLeft=function(){return this._isLeft},t.prototype.toString=function(){return"IsLeft: "+this._isLeft+"\n"+e.prototype.toString.call(this)},t}(a.default),l=f;t.default=l},"2efa":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(){function e(e,t,r,n,i,o,a,s,u){this.a11=e,this.a21=t,this.a31=r,this.a12=n,this.a22=i,this.a32=o,this.a13=a,this.a23=s,this.a33=u}return e.quadrilateralToQuadrilateral=function(t,r,n,i,o,a,s,u,c,f,l,d,h,p,g,y){var v=e.quadrilateralToSquare(t,r,n,i,o,a,s,u),b=e.squareToQuadrilateral(c,f,l,d,h,p,g,y);return b.times(v)},e.prototype.transformPoints=function(e){for(var t=e.length,r=this.a11,n=this.a12,i=this.a13,o=this.a21,a=this.a22,s=this.a23,u=this.a31,c=this.a32,f=this.a33,l=0;l<t;l+=2){var d=e[l],h=e[l+1],p=i*d+s*h+f;e[l]=(r*d+o*h+u)/p,e[l+1]=(n*d+a*h+c)/p}},e.prototype.transformPointsWithValues=function(e,t){for(var r=this.a11,n=this.a12,i=this.a13,o=this.a21,a=this.a22,s=this.a23,u=this.a31,c=this.a32,f=this.a33,l=e.length,d=0;d<l;d++){var h=e[d],p=t[d],g=i*h+s*p+f;e[d]=(r*h+o*p+u)/g,t[d]=(n*h+a*p+c)/g}},e.squareToQuadrilateral=function(t,r,n,i,o,a,s,u){var c=t-n+o-s,f=r-i+a-u;if(0===c&&0===f)return new e(n-t,o-n,t,i-r,a-i,r,0,0,1);var l=n-o,d=s-o,h=i-a,p=u-a,g=l*p-d*h,y=(c*p-d*f)/g,v=(l*f-c*h)/g;return new e(n-t+y*n,s-t+v*s,t,i-r+y*i,u-r+v*u,r,y,v,1)},e.quadrilateralToSquare=function(t,r,n,i,o,a,s,u){return e.squareToQuadrilateral(t,r,n,i,o,a,s,u).buildAdjoint()},e.prototype.buildAdjoint=function(){return new e(this.a22*this.a33-this.a23*this.a32,this.a23*this.a31-this.a21*this.a33,this.a21*this.a32-this.a22*this.a31,this.a13*this.a32-this.a12*this.a33,this.a11*this.a33-this.a13*this.a31,this.a12*this.a31-this.a11*this.a32,this.a12*this.a23-this.a13*this.a22,this.a13*this.a21-this.a11*this.a23,this.a11*this.a22-this.a12*this.a21)},e.prototype.times=function(t){return new e(this.a11*t.a11+this.a21*t.a12+this.a31*t.a13,this.a11*t.a21+this.a21*t.a22+this.a31*t.a23,this.a11*t.a31+this.a21*t.a32+this.a31*t.a33,this.a12*t.a11+this.a22*t.a12+this.a32*t.a13,this.a12*t.a21+this.a22*t.a22+this.a32*t.a23,this.a12*t.a31+this.a22*t.a32+this.a32*t.a33,this.a13*t.a11+this.a23*t.a12+this.a33*t.a13,this.a13*t.a21+this.a23*t.a22+this.a33*t.a23,this.a13*t.a31+this.a23*t.a32+this.a33*t.a33)},e}(),i=n;t.default=i},"2f48":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("fe5a")),o=n(r("f228")),a=n(r("d4f8")),s=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),u=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.dateCode=n,i.firstAIdigits=r,i}return s(t,e),t.prototype.parseInformation=function(){if(this.getInformation().getSize()!==t.HEADER_SIZE+t.GTIN_SIZE+t.WEIGHT_SIZE+t.DATE_SIZE)throw new o.default;var e=new a.default;return this.encodeCompressedGtin(e,t.HEADER_SIZE),this.encodeCompressedWeight(e,t.HEADER_SIZE+t.GTIN_SIZE,t.WEIGHT_SIZE),this.encodeCompressedDate(e,t.HEADER_SIZE+t.GTIN_SIZE+t.WEIGHT_SIZE),e.toString()},t.prototype.encodeCompressedDate=function(e,r){var n=this.getGeneralDecoder().extractNumericValueFromBitArray(r,t.DATE_SIZE);if(38400!==n){e.append("("),e.append(this.dateCode),e.append(")");var i=n%32;n/=32;var o=n%12+1;n/=12;var a=n;a/10===0&&e.append("0"),e.append(a),o/10===0&&e.append("0"),e.append(o),i/10===0&&e.append("0"),e.append(i)}},t.prototype.addWeightCode=function(e,t){e.append("("),e.append(this.firstAIdigits),e.append(t/1e5),e.append(")")},t.prototype.checkWeight=function(e){return e%1e5},t.HEADER_SIZE=8,t.WEIGHT_SIZE=20,t.DATE_SIZE=16,t}(i.default),c=u;t.default=c},3:function(e,t){},"309d":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("a8be")),o=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),a=function(e){function t(t,r,n){var i=e.call(this,t,r)||this;return i.estimatedModuleSize=n,i}return o(t,e),t.prototype.aboutEquals=function(e,t,r){if(Math.abs(t-this.getY())<=e&&Math.abs(r-this.getX())<=e){var n=Math.abs(e-this.estimatedModuleSize);return n<=1||n<=this.estimatedModuleSize}return!1},t.prototype.combineEstimate=function(e,r,n){var i=(this.getX()+r)/2,o=(this.getY()+e)/2,a=(this.estimatedModuleSize+n)/2;return new t(i,o,a)},t}(i.default),s=a;t.default=s},"30c3":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={pages:[{path:"pages/views/home/home",style:{navigationBarTitleText:"实验室安全智慧化管控系统",navigationBarTextStyle:"white",navigationBarBackgroundColor:"#0183FA"}},{path:"pages/views/teacherPage/laboratoryList",style:{navigationBarTitleText:"实验室安全智慧化管控系统",navigationBarTextStyle:"white",navigationBarBackgroundColor:"#0183FA"}},{path:"pages/views/information/information",style:{navigationBarTitleText:"消息"}},{path:"pages/views/information/informationInfo",style:{navigationBarTitleText:"消息详情"}},{path:"pages/views/mine/mine",style:{navigationBarTitleText:"我的",navigationBarTextStyle:"white",navigationBarBackgroundColor:"#0183FA"}},{path:"pages/views/login/login",style:{navigationBarTitleText:"",navigationBarTextStyle:"white",navigationStyle:"custom"}},{path:"pages/views/login/accountLogin",style:{navigationBarTitleText:"账号密码登录",navigationBarTextStyle:"white",navigationBarBackgroundColor:"#0183FA"}},{path:"pages/views/login/ssoLogin",style:{navigationBarTitleText:"统一身份认证",navigationBarTextStyle:"white",navigationBarBackgroundColor:"#0183FA"}},{path:"pages/views/login/ssoLoginH5",style:{navigationBarTitleText:"统一身份认证",navigationBarTextStyle:"white",navigationBarBackgroundColor:"#0183FA"}},{path:"pages/views/login/ssoCertification",style:{navigationBarTitleText:"身份认证",navigationBarTextStyle:"white",navigationBarBackgroundColor:"#0183FA"}},{path:"pages/views/scanCodePage",style:{navigationBarTitleText:"",navigationBarTextStyle:"white",navigationStyle:"custom"}},{path:"pages/views/saoCode/saoCode",style:{navigationBarTitleText:"",navigationBarTextStyle:"white",navigationBarBackgroundColor:"#0183FA"}},{path:"pages/views/saoCode/chemicalsInstructionsVideo",style:{navigationBarTitleText:"操作教程",navigationBarTextStyle:"white",navigationBarBackgroundColor:"#0183FA"}},{path:"pages/views/pages_patrolInspector/courseQRcode",style:{navigationBarTitleText:"课程详情",navigationBarTextStyle:"white",navigationBarBackgroundColor:"#0183FA"}},{path:"pages/views/pages_patrolInspector/chemicalCabinetQRcode",style:{navigationBarTitleText:"化学品柜详情",navigationBarTextStyle:"white",navigationBarBackgroundColor:"#0183FA"}},{path:"pages/views/pages_patrolInspector/chemicalDetail",style:{navigationBarTitleText:"化学品详情",navigationBarTextStyle:"white",navigationBarBackgroundColor:"#0183FA"}},{path:"pages/views/demo/index",style:{navigationBarTitleText:"测试页面",navigationBarTextStyle:"white",navigationBarBackgroundColor:"#0183FA"}},{path:"pages/views/demo/mqttDemo",style:{navigationBarTitleText:"mqtt测试",navigationBarTextStyle:"white",navigationBarBackgroundColor:"#0183FA"}},{path:"pages/views/videoPlayer",style:{navigationBarTitleText:"",navigationBarTextStyle:"white",navigationStyle:"custom"}}],subPackages:[{root:"devTools/page",name:"devToolsPage",pages:[{path:"index",style:{navigationStyle:"custom"}}]},{root:"pages_basics",name:"basics",pages:[{path:"views/forgotPassword/forgotPassword",style:{navigationBarTitleText:"忘记密码",navigationBarTextStyle:"white",navigationBarBackgroundColor:"#0183FA"}},{path:"views/editPassword/editPassword",style:{navigationBarTitleText:"修改密码",navigationBarTextStyle:"white",navigationBarBackgroundColor:"#0183FA"}},{path:"views/completeInformation/completeInformation",style:{navigationBarTitleText:"完善个人信息",navigationBarTextStyle:"white",navigationBarBackgroundColor:"#0183FA"}},{path:"views/avatar",style:{navigationBarTitleText:"身份验证"}},{path:"views/faceImage",style:{navigationBarTitleText:"身份验证"}},{path:"views/signature/signature",style:{navigationBarTitleText:"电子签名"}},{path:"views/signature/signatureImg",style:{navigationBarTitleText:"电子签名"}},{path:"views/photoInspection",style:{navigationBarTitleText:"离开检查"}},{path:"views/earlyWarningManage/earlyWarningDetail",style:{navigationBarTitleText:"预案预警信息"}},{path:"views/earlyWarningManage/earlyWarningList",style:{navigationBarTitleText:"预警记录"}},{path:"views/earlyWarningManage/videoMonitoring",style:{navigationBarTitleText:"监控信息"}},{path:"views/earlyWarningManage/warningVideo",style:{navigationBarTitleText:"报警抓拍"}},{path:"views/record/index",style:{navigationBarTitleText:"进出记录"}},{path:"views/record/infoPage",style:{navigationBarTitleText:"进出详情"}},{path:"views/gradingControl/gradingControl",style:{navigationBarTitleText:"管控工作"}},{path:"views/gradingControl/gradingControlFinish",style:{navigationBarTitleText:"分级管控"}},{path:"views/gradingControl/gradingControlAdd",style:{navigationBarTitleText:"分级管控"}},{path:"views/gradingControl/gradingControlDetail",style:{navigationBarTitleText:"分级管控"}}]},{root:"pages_student",name:"student",pages:[{path:"views/demo/index",style:{navigationBarTitleText:"学生端分包",navigationBarTextStyle:"white",navigationBarBackgroundColor:"#0183FA"}}]},{root:"pages_manage",name:"manage",pages:[{path:"views/accessControl/empowerOpen",style:{navigationBarTitleText:"授权开门"}},{path:"views/accessControl/remoteOpen",style:{navigationBarTitleText:"远程开门"}},{path:"views/accessControl/authorizationRecord",style:{navigationBarTitleText:"授权记录"}},{path:"views/accessControl/searchSub",style:{navigationBarTitleText:"实验室"}},{path:"views/accessQualification/accessQualification",style:{navigationBarTitleText:"准入审核"}},{path:"views/accessQualification/accessQualificationInfo",style:{navigationBarTitleText:""}},{path:"views/accessQualification/approve",style:{navigationBarTitleText:"审核未通过"}},{path:"views/emergencyEvacuationSubList",style:{navigationBarTitleText:"应急处置"}},{path:"views/emergencyEvacuationBig",style:{navigationBarTitleText:"应急处置"}},{path:"views/emergencyEvacuationBigFullScreen",style:{navigationBarTitleText:"应急处置",pageOrientation:"landscape"}},{path:"views/laboratory/safetyCardScan",style:{navigationBarTitleText:"实验室"}},{path:"views/laboratory/videoPlayer",style:{navigationBarTitleText:"视频监控",enablePullDownRefresh:!0}}]},{root:"pages_safetyCheck",name:"safetyCheck",pages:[{path:"views/demo/index",style:{navigationBarTitleText:"安全检查分包",navigationBarTextStyle:"white",navigationBarBackgroundColor:"#0183FA"}}]}],globalStyle:{navigationBarTextStyle:"white",navigationBarBackgroundColor:"#0183FA"}}},3223:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=["qy","env","error","version","lanDebug","cloud","serviceMarket","router","worklet","__webpack_require_UNI_MP_PLUGIN__"],i=["lanDebug","router","worklet"],o="undefined"!==typeof globalThis?globalThis:function(){return this}(),a=["w","x"].join(""),s=o[a],u=s.getLaunchOptionsSync?s.getLaunchOptionsSync():null;function c(e){return(!u||1154!==u.scene||!i.includes(e))&&(n.indexOf(e)>-1||"function"===typeof s[e])}o[a]=function(){var e={};for(var t in s)c(t)&&(e[t]=s[t]);return e}();var f=o[a];t.default=f},3240:function(e,t,r){"use strict";r.r(t),function(e){
- /*!
- * Vue.js v2.6.11
- * (c) 2014-2024 Evan You
- * Released under the MIT License.
- */
- var r=Object.freeze({});function n(e){return void 0===e||null===e}function i(e){return void 0!==e&&null!==e}function o(e){return!0===e}function a(e){return"string"===typeof e||"number"===typeof e||"symbol"===typeof e||"boolean"===typeof e}function s(e){return null!==e&&"object"===typeof e}var u=Object.prototype.toString;function c(e){return"[object Object]"===u.call(e)}function f(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function l(e){return i(e)&&"function"===typeof e.then&&"function"===typeof e.catch}function d(e){return null==e?"":Array.isArray(e)||c(e)&&e.toString===u?JSON.stringify(e,null,2):String(e)}function h(e){var t=parseFloat(e);return isNaN(t)?e:t}function p(e,t){for(var r=Object.create(null),n=e.split(","),i=0;i<n.length;i++)r[n[i]]=!0;return t?function(e){return r[e.toLowerCase()]}:function(e){return r[e]}}p("slot,component",!0);var g=p("key,ref,slot,slot-scope,is");function y(e,t){if(e.length){var r=e.indexOf(t);if(r>-1)return e.splice(r,1)}}var v=Object.prototype.hasOwnProperty;function b(e,t){return v.call(e,t)}function m(e){var t=Object.create(null);return function(r){var n=t[r];return n||(t[r]=e(r))}}var _=/-(\w)/g,w=m((function(e){return e.replace(_,(function(e,t){return t?t.toUpperCase():""}))})),A=m((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),S=/\B([A-Z])/g,x=m((function(e){return e.replace(S,"-$1").toLowerCase()}));var E=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function r(r){var n=arguments.length;return n?n>1?e.apply(t,arguments):e.call(t,r):e.call(t)}return r._length=e.length,r};function C(e,t){t=t||0;var r=e.length-t,n=new Array(r);while(r--)n[r]=e[r+t];return n}function O(e,t){for(var r in t)e[r]=t[r];return e}function I(e){for(var t={},r=0;r<e.length;r++)e[r]&&O(t,e[r]);return t}function T(e,t,r){}var P=function(e,t,r){return!1},M=function(e){return e};function k(e,t){if(e===t)return!0;var r=s(e),n=s(t);if(!r||!n)return!r&&!n&&String(e)===String(t);try{var i=Array.isArray(e),o=Array.isArray(t);if(i&&o)return e.length===t.length&&e.every((function(e,r){return k(e,t[r])}));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(i||o)return!1;var a=Object.keys(e),u=Object.keys(t);return a.length===u.length&&a.every((function(r){return k(e[r],t[r])}))}catch(c){return!1}}function R(e,t){for(var r=0;r<e.length;r++)if(k(e[r],t))return r;return-1}function D(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}var N=["component","directive","filter"],B=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],L={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:P,isReservedAttr:P,isUnknownElement:P,getTagNamespace:T,parsePlatformTagName:M,mustUseProp:P,async:!0,_lifecycleHooks:B},j=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function F(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}function U(e,t,r,n){Object.defineProperty(e,t,{value:r,enumerable:!!n,writable:!0,configurable:!0})}var z=new RegExp("[^"+j.source+".$_\\d]");var H,q="__proto__"in{},V="undefined"!==typeof window,W="undefined"!==typeof WXEnvironment&&!!WXEnvironment.platform,G=W&&WXEnvironment.platform.toLowerCase(),X=V&&window.navigator&&window.navigator.userAgent.toLowerCase(),K=X&&/msie|trident/.test(X),$=(X&&X.indexOf("msie 9.0"),X&&X.indexOf("edge/")>0),Y=(X&&X.indexOf("android"),X&&/iphone|ipad|ipod|ios/.test(X)||"ios"===G),Z=(X&&/chrome\/\d+/.test(X),X&&/phantomjs/.test(X),X&&X.match(/firefox\/(\d+)/),{}.watch);if(V)try{var J={};Object.defineProperty(J,"passive",{get:function(){}}),window.addEventListener("test-passive",null,J)}catch(Br){}var Q=function(){return void 0===H&&(H=!V&&!W&&"undefined"!==typeof e&&(e["process"]&&"server"===e["process"].env.VUE_ENV)),H},ee=V&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function te(e){return"function"===typeof e&&/native code/.test(e.toString())}var re,ne="undefined"!==typeof Symbol&&te(Symbol)&&"undefined"!==typeof Reflect&&te(Reflect.ownKeys);re="undefined"!==typeof Set&&te(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var ie=T,oe=0,ae=function(){this.id=oe++,this.subs=[]};function se(e){ae.SharedObject.targetStack.push(e),ae.SharedObject.target=e,ae.target=e}function ue(){ae.SharedObject.targetStack.pop(),ae.SharedObject.target=ae.SharedObject.targetStack[ae.SharedObject.targetStack.length-1],ae.target=ae.SharedObject.target}ae.prototype.addSub=function(e){this.subs.push(e)},ae.prototype.removeSub=function(e){y(this.subs,e)},ae.prototype.depend=function(){ae.SharedObject.target&&ae.SharedObject.target.addDep(this)},ae.prototype.notify=function(){var e=this.subs.slice();for(var t=0,r=e.length;t<r;t++)e[t].update()},ae.SharedObject={},ae.SharedObject.target=null,ae.SharedObject.targetStack=[];var ce=function(e,t,r,n,i,o,a,s){this.tag=e,this.data=t,this.children=r,this.text=n,this.elm=i,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},fe={child:{configurable:!0}};fe.child.get=function(){return this.componentInstance},Object.defineProperties(ce.prototype,fe);var le=function(e){void 0===e&&(e="");var t=new ce;return t.text=e,t.isComment=!0,t};function de(e){return new ce(void 0,void 0,void 0,String(e))}var he=Array.prototype,pe=Object.create(he);["push","pop","shift","unshift","splice","sort","reverse"].forEach((function(e){var t=he[e];U(pe,e,(function(){var r=[],n=arguments.length;while(n--)r[n]=arguments[n];var i,o=t.apply(this,r),a=this.__ob__;switch(e){case"push":case"unshift":i=r;break;case"splice":i=r.slice(2);break}return i&&a.observeArray(i),a.dep.notify(),o}))}));var ge=Object.getOwnPropertyNames(pe),ye=!0;function ve(e){ye=e}var be=function(e){this.value=e,this.dep=new ae,this.vmCount=0,U(e,"__ob__",this),Array.isArray(e)?(q?e.push!==e.__proto__.push?me(e,pe,ge):function(e,t){e.__proto__=t}(e,pe):me(e,pe,ge),this.observeArray(e)):this.walk(e)};function me(e,t,r){for(var n=0,i=r.length;n<i;n++){var o=r[n];U(e,o,t[o])}}function _e(e,t){var r;if(s(e)&&!(e instanceof ce))return b(e,"__ob__")&&e.__ob__ instanceof be?r=e.__ob__:!ye||Q()||!Array.isArray(e)&&!c(e)||!Object.isExtensible(e)||e._isVue||e.__v_isMPComponent||(r=new be(e)),t&&r&&r.vmCount++,r}function we(e,t,r,n,i){var o=new ae,a=Object.getOwnPropertyDescriptor(e,t);if(!a||!1!==a.configurable){var s=a&&a.get,u=a&&a.set;s&&!u||2!==arguments.length||(r=e[t]);var c=!i&&_e(r);Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var t=s?s.call(e):r;return ae.SharedObject.target&&(o.depend(),c&&(c.dep.depend(),Array.isArray(t)&&xe(t))),t},set:function(t){var n=s?s.call(e):r;t===n||t!==t&&n!==n||s&&!u||(u?u.call(e,t):r=t,c=!i&&_e(t),o.notify())}})}}function Ae(e,t,r){if(Array.isArray(e)&&f(t))return e.length=Math.max(e.length,t),e.splice(t,1,r),r;if(t in e&&!(t in Object.prototype))return e[t]=r,r;var n=e.__ob__;return e._isVue||n&&n.vmCount?r:n?(we(n.value,t,r),n.dep.notify(),r):(e[t]=r,r)}function Se(e,t){if(Array.isArray(e)&&f(t))e.splice(t,1);else{var r=e.__ob__;e._isVue||r&&r.vmCount||b(e,t)&&(delete e[t],r&&r.dep.notify())}}function xe(e){for(var t=void 0,r=0,n=e.length;r<n;r++)t=e[r],t&&t.__ob__&&t.__ob__.dep.depend(),Array.isArray(t)&&xe(t)}be.prototype.walk=function(e){for(var t=Object.keys(e),r=0;r<t.length;r++)we(e,t[r])},be.prototype.observeArray=function(e){for(var t=0,r=e.length;t<r;t++)_e(e[t])};var Ee=L.optionMergeStrategies;function Ce(e,t){if(!t)return e;for(var r,n,i,o=ne?Reflect.ownKeys(t):Object.keys(t),a=0;a<o.length;a++)r=o[a],"__ob__"!==r&&(n=e[r],i=t[r],b(e,r)?n!==i&&c(n)&&c(i)&&Ce(n,i):Ae(e,r,i));return e}function Oe(e,t,r){return r?function(){var n="function"===typeof t?t.call(r,r):t,i="function"===typeof e?e.call(r,r):e;return n?Ce(n,i):i}:t?e?function(){return Ce("function"===typeof t?t.call(this,this):t,"function"===typeof e?e.call(this,this):e)}:t:e}function Ie(e,t){var r=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return r?function(e){for(var t=[],r=0;r<e.length;r++)-1===t.indexOf(e[r])&&t.push(e[r]);return t}(r):r}function Te(e,t,r,n){var i=Object.create(e||null);return t?O(i,t):i}Ee.data=function(e,t,r){return r?Oe(e,t,r):t&&"function"!==typeof t?e:Oe(e,t)},B.forEach((function(e){Ee[e]=Ie})),N.forEach((function(e){Ee[e+"s"]=Te})),Ee.watch=function(e,t,r,n){if(e===Z&&(e=void 0),t===Z&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;var i={};for(var o in O(i,e),t){var a=i[o],s=t[o];a&&!Array.isArray(a)&&(a=[a]),i[o]=a?a.concat(s):Array.isArray(s)?s:[s]}return i},Ee.props=Ee.methods=Ee.inject=Ee.computed=function(e,t,r,n){if(!e)return t;var i=Object.create(null);return O(i,e),t&&O(i,t),i},Ee.provide=Oe;var Pe=function(e,t){return void 0===t?e:t};function Me(e,t,r){if("function"===typeof t&&(t=t.options),function(e,t){var r=e.props;if(r){var n,i,o,a={};if(Array.isArray(r)){n=r.length;while(n--)i=r[n],"string"===typeof i&&(o=w(i),a[o]={type:null})}else if(c(r))for(var s in r)i=r[s],o=w(s),a[o]=c(i)?i:{type:i};else 0;e.props=a}}(t),function(e,t){var r=e.inject;if(r){var n=e.inject={};if(Array.isArray(r))for(var i=0;i<r.length;i++)n[r[i]]={from:r[i]};else if(c(r))for(var o in r){var a=r[o];n[o]=c(a)?O({from:o},a):{from:a}}else 0}}(t),function(e){var t=e.directives;if(t)for(var r in t){var n=t[r];"function"===typeof n&&(t[r]={bind:n,update:n})}}(t),!t._base&&(t.extends&&(e=Me(e,t.extends,r)),t.mixins))for(var n=0,i=t.mixins.length;n<i;n++)e=Me(e,t.mixins[n],r);var o,a={};for(o in e)s(o);for(o in t)b(e,o)||s(o);function s(n){var i=Ee[n]||Pe;a[n]=i(e[n],t[n],r,n)}return a}function ke(e,t,r,n){if("string"===typeof r){var i=e[t];if(b(i,r))return i[r];var o=w(r);if(b(i,o))return i[o];var a=A(o);if(b(i,a))return i[a];var s=i[r]||i[o]||i[a];return s}}function Re(e,t,r,n){var i=t[e],o=!b(r,e),a=r[e],s=Be(Boolean,i.type);if(s>-1)if(o&&!b(i,"default"))a=!1;else if(""===a||a===x(e)){var u=Be(String,i.type);(u<0||s<u)&&(a=!0)}if(void 0===a){a=function(e,t,r){if(!b(t,"default"))return;var n=t.default;0;if(e&&e.$options.propsData&&void 0===e.$options.propsData[r]&&void 0!==e._props[r])return e._props[r];return"function"===typeof n&&"Function"!==De(t.type)?n.call(e):n}(n,i,e);var c=ye;ve(!0),_e(a),ve(c)}return a}function De(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:""}function Ne(e,t){return De(e)===De(t)}function Be(e,t){if(!Array.isArray(t))return Ne(t,e)?0:-1;for(var r=0,n=t.length;r<n;r++)if(Ne(t[r],e))return r;return-1}function Le(e,t,r){se();try{if(t){var n=t;while(n=n.$parent){var i=n.$options.errorCaptured;if(i)for(var o=0;o<i.length;o++)try{var a=!1===i[o].call(n,e,t,r);if(a)return}catch(Br){Fe(Br,n,"errorCaptured hook")}}}Fe(e,t,r)}finally{ue()}}function je(e,t,r,n,i){var o;try{o=r?e.apply(t,r):e.call(t),o&&!o._isVue&&l(o)&&!o._handled&&(o.catch((function(e){return Le(e,n,i+" (Promise/async)")})),o._handled=!0)}catch(Br){Le(Br,n,i)}return o}function Fe(e,t,r){if(L.errorHandler)try{return L.errorHandler.call(null,e,t,r)}catch(Br){Br!==e&&Ue(Br,null,"config.errorHandler")}Ue(e,t,r)}function Ue(e,t,r){if(!V&&!W||"undefined"===typeof console)throw e;console.error(e)}var ze,He=[],qe=!1;function Ve(){qe=!1;var e=He.slice(0);He.length=0;for(var t=0;t<e.length;t++)e[t]()}if("undefined"!==typeof Promise&&te(Promise)){var We=Promise.resolve();ze=function(){We.then(Ve),Y&&setTimeout(T)}}else if(K||"undefined"===typeof MutationObserver||!te(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())ze="undefined"!==typeof setImmediate&&te(setImmediate)?function(){setImmediate(Ve)}:function(){setTimeout(Ve,0)};else{var Ge=1,Xe=new MutationObserver(Ve),Ke=document.createTextNode(String(Ge));Xe.observe(Ke,{characterData:!0}),ze=function(){Ge=(Ge+1)%2,Ke.data=String(Ge)}}function $e(e,t){var r;if(He.push((function(){if(e)try{e.call(t)}catch(Br){Le(Br,t,"nextTick")}else r&&r(t)})),qe||(qe=!0,ze()),!e&&"undefined"!==typeof Promise)return new Promise((function(e){r=e}))}var Ye=new re;function Ze(e){(function e(t,r){var n,i,o=Array.isArray(t);if(!o&&!s(t)||Object.isFrozen(t)||t instanceof ce)return;if(t.__ob__){var a=t.__ob__.dep.id;if(r.has(a))return;r.add(a)}if(o){n=t.length;while(n--)e(t[n],r)}else{i=Object.keys(t),n=i.length;while(n--)e(t[i[n]],r)}})(e,Ye),Ye.clear()}var Je=m((function(e){var t="&"===e.charAt(0);e=t?e.slice(1):e;var r="~"===e.charAt(0);e=r?e.slice(1):e;var n="!"===e.charAt(0);return e=n?e.slice(1):e,{name:e,once:r,capture:n,passive:t}}));function Qe(e,t){function r(){var e=arguments,n=r.fns;if(!Array.isArray(n))return je(n,null,arguments,t,"v-on handler");for(var i=n.slice(),o=0;o<i.length;o++)je(i[o],null,e,t,"v-on handler")}return r.fns=e,r}function et(e,t,r,o){var a=t.options.mpOptions&&t.options.mpOptions.properties;if(n(a))return r;var s=t.options.mpOptions.externalClasses||[],u=e.attrs,c=e.props;if(i(u)||i(c))for(var f in a){var l=x(f),d=tt(r,c,f,l,!0)||tt(r,u,f,l,!1);d&&r[f]&&-1!==s.indexOf(l)&&o[w(r[f])]&&(r[f]=o[w(r[f])])}return r}function tt(e,t,r,n,o){if(i(t)){if(b(t,r))return e[r]=t[r],o||delete t[r],!0;if(b(t,n))return e[r]=t[n],o||delete t[n],!0}return!1}function rt(e){return a(e)?[de(e)]:Array.isArray(e)?function e(t,r){var s,u,c,f,l=[];for(s=0;s<t.length;s++)u=t[s],n(u)||"boolean"===typeof u||(c=l.length-1,f=l[c],Array.isArray(u)?u.length>0&&(u=e(u,(r||"")+"_"+s),nt(u[0])&&nt(f)&&(l[c]=de(f.text+u[0].text),u.shift()),l.push.apply(l,u)):a(u)?nt(f)?l[c]=de(f.text+u):""!==u&&l.push(de(u)):nt(u)&&nt(f)?l[c]=de(f.text+u.text):(o(t._isVList)&&i(u.tag)&&n(u.key)&&i(r)&&(u.key="__vlist"+r+"_"+s+"__"),l.push(u)));return l}(e):void 0}function nt(e){return i(e)&&i(e.text)&&function(e){return!1===e}(e.isComment)}function it(e){var t=e.$options.provide;t&&(e._provided="function"===typeof t?t.call(e):t)}function ot(e){var t=at(e.$options.inject,e);t&&(ve(!1),Object.keys(t).forEach((function(r){we(e,r,t[r])})),ve(!0))}function at(e,t){if(e){for(var r=Object.create(null),n=ne?Reflect.ownKeys(e):Object.keys(e),i=0;i<n.length;i++){var o=n[i];if("__ob__"!==o){var a=e[o].from,s=t;while(s){if(s._provided&&b(s._provided,a)){r[o]=s._provided[a];break}s=s.$parent}if(!s)if("default"in e[o]){var u=e[o].default;r[o]="function"===typeof u?u.call(t):u}else 0}}return r}}function st(e,t){if(!e||!e.length)return{};for(var r={},n=0,i=e.length;n<i;n++){var o=e[n],a=o.data;if(a&&a.attrs&&a.attrs.slot&&delete a.attrs.slot,o.context!==t&&o.fnContext!==t||!a||null==a.slot)o.asyncMeta&&o.asyncMeta.data&&"page"===o.asyncMeta.data.slot?(r["page"]||(r["page"]=[])).push(o):(r.default||(r.default=[])).push(o);else{var s=a.slot,u=r[s]||(r[s]=[]);"template"===o.tag?u.push.apply(u,o.children||[]):u.push(o)}}for(var c in r)r[c].every(ut)&&delete r[c];return r}function ut(e){return e.isComment&&!e.asyncFactory||" "===e.text}function ct(e,t,n){var i,o=Object.keys(t).length>0,a=e?!!e.$stable:!o,s=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(a&&n&&n!==r&&s===n.$key&&!o&&!n.$hasNormal)return n;for(var u in i={},e)e[u]&&"$"!==u[0]&&(i[u]=ft(t,u,e[u]))}else i={};for(var c in t)c in i||(i[c]=lt(t,c));return e&&Object.isExtensible(e)&&(e._normalized=i),U(i,"$stable",a),U(i,"$key",s),U(i,"$hasNormal",o),i}function ft(e,t,r){var n=function(){var e=arguments.length?r.apply(null,arguments):r({});return e=e&&"object"===typeof e&&!Array.isArray(e)?[e]:rt(e),e&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return r.proxy&&Object.defineProperty(e,t,{get:n,enumerable:!0,configurable:!0}),n}function lt(e,t){return function(){return e[t]}}function dt(e,t){var r,n,o,a,u;if(Array.isArray(e)||"string"===typeof e)for(r=new Array(e.length),n=0,o=e.length;n<o;n++)r[n]=t(e[n],n,n,n);else if("number"===typeof e)for(r=new Array(e),n=0;n<e;n++)r[n]=t(n+1,n,n,n);else if(s(e))if(ne&&e[Symbol.iterator]){r=[];var c=e[Symbol.iterator](),f=c.next();while(!f.done)r.push(t(f.value,r.length,n,n++)),f=c.next()}else for(a=Object.keys(e),r=new Array(a.length),n=0,o=a.length;n<o;n++)u=a[n],r[n]=t(e[u],u,n,n);return i(r)||(r=[]),r._isVList=!0,r}function ht(e,t,r,n){var i,o=this.$scopedSlots[e];o?(r=r||{},n&&(r=O(O({},n),r)),i=o(r,this,r._i)||t):i=this.$slots[e]||t;var a=r&&r.slot;return a?this.$createElement("template",{slot:a},i):i}function pt(e){return ke(this.$options,"filters",e)||M}function gt(e,t){return Array.isArray(e)?-1===e.indexOf(t):e!==t}function yt(e,t,r,n,i){var o=L.keyCodes[t]||r;return i&&n&&!L.keyCodes[t]?gt(i,n):o?gt(o,e):n?x(n)!==t:void 0}function vt(e,t,r,n,i){if(r)if(s(r)){var o;Array.isArray(r)&&(r=I(r));var a=function(a){if("class"===a||"style"===a||g(a))o=e;else{var s=e.attrs&&e.attrs.type;o=n||L.mustUseProp(t,s,a)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}var u=w(a),c=x(a);if(!(u in o)&&!(c in o)&&(o[a]=r[a],i)){var f=e.on||(e.on={});f["update:"+a]=function(e){r[a]=e}}};for(var u in r)a(u)}else;return e}function bt(e,t){var r=this._staticTrees||(this._staticTrees=[]),n=r[e];return n&&!t||(n=r[e]=this.$options.staticRenderFns[e].call(this._renderProxy,null,this),_t(n,"__static__"+e,!1)),n}function mt(e,t,r){return _t(e,"__once__"+t+(r?"_"+r:""),!0),e}function _t(e,t,r){if(Array.isArray(e))for(var n=0;n<e.length;n++)e[n]&&"string"!==typeof e[n]&&wt(e[n],t+"_"+n,r);else wt(e,t,r)}function wt(e,t,r){e.isStatic=!0,e.key=t,e.isOnce=r}function At(e,t){if(t)if(c(t)){var r=e.on=e.on?O({},e.on):{};for(var n in t){var i=r[n],o=t[n];r[n]=i?[].concat(i,o):o}}else;return e}function St(e,t,r,n){t=t||{$stable:!r};for(var i=0;i<e.length;i++){var o=e[i];Array.isArray(o)?St(o,t,r):o&&(o.proxy&&(o.fn.proxy=!0),t[o.key]=o.fn)}return n&&(t.$key=n),t}function xt(e,t){for(var r=0;r<t.length;r+=2){var n=t[r];"string"===typeof n&&n&&(e[t[r]]=t[r+1])}return e}function Et(e,t){return"string"===typeof e?t+e:e}function Ct(e){e._o=mt,e._n=h,e._s=d,e._l=dt,e._t=ht,e._q=k,e._i=R,e._m=bt,e._f=pt,e._k=yt,e._b=vt,e._v=de,e._e=le,e._u=St,e._g=At,e._d=xt,e._p=Et}function Ot(e,t,n,i,a){var s,u=this,c=a.options;b(i,"_uid")?(s=Object.create(i),s._original=i):(s=i,i=i._original);var f=o(c._compiled),l=!f;this.data=e,this.props=t,this.children=n,this.parent=i,this.listeners=e.on||r,this.injections=at(c.inject,i),this.slots=function(){return u.$slots||ct(e.scopedSlots,u.$slots=st(n,i)),u.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return ct(e.scopedSlots,this.slots())}}),f&&(this.$options=c,this.$slots=this.slots(),this.$scopedSlots=ct(e.scopedSlots,this.$slots)),c._scopeId?this._c=function(e,t,r,n){var o=Dt(s,e,t,r,n,l);return o&&!Array.isArray(o)&&(o.fnScopeId=c._scopeId,o.fnContext=i),o}:this._c=function(e,t,r,n){return Dt(s,e,t,r,n,l)}}function It(e,t,r,n,i){var o=function(e){var t=new ce(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}(e);return o.fnContext=r,o.fnOptions=n,t.slot&&((o.data||(o.data={})).slot=t.slot),o}function Tt(e,t){for(var r in t)e[w(r)]=t[r]}Ct(Ot.prototype);var Pt={init:function(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){var r=e;Pt.prepatch(r,r)}else{var n=e.componentInstance=function(e,t){var r={_isComponent:!0,_parentVnode:e,parent:t},n=e.data.inlineTemplate;i(n)&&(r.render=n.render,r.staticRenderFns=n.staticRenderFns);return new e.componentOptions.Ctor(r)}(e,qt);n.$mount(t?e.elm:void 0,t)}},prepatch:function(e,t){var n=t.componentOptions,i=t.componentInstance=e.componentInstance;(function(e,t,n,i,o){0;var a=i.data.scopedSlots,s=e.$scopedSlots,u=!!(a&&!a.$stable||s!==r&&!s.$stable||a&&e.$scopedSlots.$key!==a.$key),c=!!(o||e.$options._renderChildren||u);e.$options._parentVnode=i,e.$vnode=i,e._vnode&&(e._vnode.parent=i);if(e.$options._renderChildren=o,e.$attrs=i.data.attrs||r,e.$listeners=n||r,t&&e.$options.props){ve(!1);for(var f=e._props,l=e.$options._propKeys||[],d=0;d<l.length;d++){var h=l[d],p=e.$options.props;f[h]=Re(h,p,t,e)}ve(!0),e.$options.propsData=t}e._$updateProperties&&e._$updateProperties(e),n=n||r;var g=e.$options._parentListeners;e.$options._parentListeners=n,Ht(e,n,g),c&&(e.$slots=st(o,i.context),e.$forceUpdate());0})(i,n.propsData,n.listeners,t,n.children)},insert:function(e){var t=e.context,r=e.componentInstance;r._isMounted||(Gt(r,"onServiceCreated"),Gt(r,"onServiceAttached"),r._isMounted=!0,Gt(r,"mounted")),e.data.keepAlive&&(t._isMounted?function(e){e._inactive=!1,Kt.push(e)}(r):Wt(r,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?function e(t,r){if(r&&(t._directInactive=!0,Vt(t)))return;if(!t._inactive){t._inactive=!0;for(var n=0;n<t.$children.length;n++)e(t.$children[n]);Gt(t,"deactivated")}}(t,!0):t.$destroy())}},Mt=Object.keys(Pt);function kt(e,t,a,u,c){if(!n(e)){var f=a.$options._base;if(s(e)&&(e=f.extend(e)),"function"===typeof e){var d;if(n(e.cid)&&(d=e,e=function(e,t){if(o(e.error)&&i(e.errorComp))return e.errorComp;if(i(e.resolved))return e.resolved;var r=Bt;r&&i(e.owners)&&-1===e.owners.indexOf(r)&&e.owners.push(r);if(o(e.loading)&&i(e.loadingComp))return e.loadingComp;if(r&&!i(e.owners)){var a=e.owners=[r],u=!0,c=null,f=null;r.$on("hook:destroyed",(function(){return y(a,r)}));var d=function(e){for(var t=0,r=a.length;t<r;t++)a[t].$forceUpdate();e&&(a.length=0,null!==c&&(clearTimeout(c),c=null),null!==f&&(clearTimeout(f),f=null))},h=D((function(r){e.resolved=Lt(r,t),u?a.length=0:d(!0)})),p=D((function(t){i(e.errorComp)&&(e.error=!0,d(!0))})),g=e(h,p);return s(g)&&(l(g)?n(e.resolved)&&g.then(h,p):l(g.component)&&(g.component.then(h,p),i(g.error)&&(e.errorComp=Lt(g.error,t)),i(g.loading)&&(e.loadingComp=Lt(g.loading,t),0===g.delay?e.loading=!0:c=setTimeout((function(){c=null,n(e.resolved)&&n(e.error)&&(e.loading=!0,d(!1))}),g.delay||200)),i(g.timeout)&&(f=setTimeout((function(){f=null,n(e.resolved)&&p(null)}),g.timeout)))),u=!1,e.loading?e.loadingComp:e.resolved}}(d,f),void 0===e))return function(e,t,r,n,i){var o=le();return o.asyncFactory=e,o.asyncMeta={data:t,context:r,children:n,tag:i},o}(d,t,a,u,c);t=t||{},hr(e),i(t.model)&&function(e,t){var r=e.model&&e.model.prop||"value",n=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[r]=t.model.value;var o=t.on||(t.on={}),a=o[n],s=t.model.callback;i(a)?(Array.isArray(a)?-1===a.indexOf(s):a!==s)&&(o[n]=[s].concat(a)):o[n]=s}(e.options,t);var h=function(e,t,r,o){var a=t.options.props;if(n(a))return et(e,t,{},o);var s={},u=e.attrs,c=e.props;if(i(u)||i(c))for(var f in a){var l=x(f);tt(s,c,f,l,!0)||tt(s,u,f,l,!1)}return et(e,t,s,o)}(t,e,0,a);if(o(e.options.functional))return function(e,t,n,o,a){var s=e.options,u={},c=s.props;if(i(c))for(var f in c)u[f]=Re(f,c,t||r);else i(n.attrs)&&Tt(u,n.attrs),i(n.props)&&Tt(u,n.props);var l=new Ot(n,u,a,o,e),d=s.render.call(null,l._c,l);if(d instanceof ce)return It(d,n,l.parent,s,l);if(Array.isArray(d)){for(var h=rt(d)||[],p=new Array(h.length),g=0;g<h.length;g++)p[g]=It(h[g],n,l.parent,s,l);return p}}(e,h,t,a,u);var p=t.on;if(t.on=t.nativeOn,o(e.options.abstract)){var g=t.slot;t={},g&&(t.slot=g)}(function(e){for(var t=e.hook||(e.hook={}),r=0;r<Mt.length;r++){var n=Mt[r],i=t[n],o=Pt[n];i===o||i&&i._merged||(t[n]=i?Rt(o,i):o)}})(t);var v=e.options.name||c,b=new ce("vue-component-"+e.cid+(v?"-"+v:""),t,void 0,void 0,void 0,a,{Ctor:e,propsData:h,listeners:p,tag:c,children:u},d);return b}}}function Rt(e,t){var r=function(r,n){e(r,n),t(r,n)};return r._merged=!0,r}function Dt(e,t,r,u,c,f){return(Array.isArray(r)||a(r))&&(c=u,u=r,r=void 0),o(f)&&(c=2),function(e,t,r,a,u){if(i(r)&&i(r.__ob__))return le();i(r)&&i(r.is)&&(t=r.is);if(!t)return le();0;Array.isArray(a)&&"function"===typeof a[0]&&(r=r||{},r.scopedSlots={default:a[0]},a.length=0);2===u?a=rt(a):1===u&&(a=function(e){for(var t=0;t<e.length;t++)if(Array.isArray(e[t]))return Array.prototype.concat.apply([],e);return e}(a));var c,f;if("string"===typeof t){var l;f=e.$vnode&&e.$vnode.ns||L.getTagNamespace(t),c=L.isReservedTag(t)?new ce(L.parsePlatformTagName(t),r,a,void 0,void 0,e):r&&r.pre||!i(l=ke(e.$options,"components",t))?new ce(t,r,a,void 0,void 0,e):kt(l,r,e,a,t)}else c=kt(t,r,e,a);return Array.isArray(c)?c:i(c)?(i(f)&&function e(t,r,a){t.ns=r,"foreignObject"===t.tag&&(r=void 0,a=!0);if(i(t.children))for(var s=0,u=t.children.length;s<u;s++){var c=t.children[s];i(c.tag)&&(n(c.ns)||o(a)&&"svg"!==c.tag)&&e(c,r,a)}}(c,f),i(r)&&function(e){s(e.style)&&Ze(e.style);s(e.class)&&Ze(e.class)}(r),c):le()}(e,t,r,u,c)}var Nt,Bt=null;function Lt(e,t){return(e.__esModule||ne&&"Module"===e[Symbol.toStringTag])&&(e=e.default),s(e)?t.extend(e):e}function jt(e){return e.isComment&&e.asyncFactory}function Ft(e,t){Nt.$on(e,t)}function Ut(e,t){Nt.$off(e,t)}function zt(e,t){var r=Nt;return function n(){var i=t.apply(null,arguments);null!==i&&r.$off(e,n)}}function Ht(e,t,r){Nt=e,function(e,t,r,i,a,s){var u,c,f,l;for(u in e)c=e[u],f=t[u],l=Je(u),n(c)||(n(f)?(n(c.fns)&&(c=e[u]=Qe(c,s)),o(l.once)&&(c=e[u]=a(l.name,c,l.capture)),r(l.name,c,l.capture,l.passive,l.params)):c!==f&&(f.fns=c,e[u]=f));for(u in t)n(e[u])&&(l=Je(u),i(l.name,t[u],l.capture))}(t,r||{},Ft,Ut,zt,e),Nt=void 0}var qt=null;function Vt(e){while(e&&(e=e.$parent))if(e._inactive)return!0;return!1}function Wt(e,t){if(t){if(e._directInactive=!1,Vt(e))return}else if(e._directInactive)return;if(e._inactive||null===e._inactive){e._inactive=!1;for(var r=0;r<e.$children.length;r++)Wt(e.$children[r]);Gt(e,"activated")}}function Gt(e,t){se();var r=e.$options[t],n=t+" hook";if(r)for(var i=0,o=r.length;i<o;i++)je(r[i],e,null,e,n);e._hasHookEvent&&e.$emit("hook:"+t),ue()}var Xt=[],Kt=[],$t={},Yt=!1,Zt=!1,Jt=0;var Qt=Date.now;if(V&&!K){var er=window.performance;er&&"function"===typeof er.now&&Qt()>document.createEvent("Event").timeStamp&&(Qt=function(){return er.now()})}function tr(){var e,t;for(Qt(),Zt=!0,Xt.sort((function(e,t){return e.id-t.id})),Jt=0;Jt<Xt.length;Jt++)e=Xt[Jt],e.before&&e.before(),t=e.id,$t[t]=null,e.run();var r=Kt.slice(),n=Xt.slice();(function(){Jt=Xt.length=Kt.length=0,$t={},Yt=Zt=!1})(),function(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,Wt(e[t],!0)}(r),function(e){var t=e.length;while(t--){var r=e[t],n=r.vm;n._watcher===r&&n._isMounted&&!n._isDestroyed&&Gt(n,"updated")}}(n),ee&&L.devtools&&ee.emit("flush")}var rr=0,nr=function(e,t,r,n,i){this.vm=e,i&&(e._watcher=this),e._watchers.push(this),n?(this.deep=!!n.deep,this.user=!!n.user,this.lazy=!!n.lazy,this.sync=!!n.sync,this.before=n.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=r,this.id=++rr,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new re,this.newDepIds=new re,this.expression="","function"===typeof t?this.getter=t:(this.getter=function(e){if(!z.test(e)){var t=e.split(".");return function(e){for(var r=0;r<t.length;r++){if(!e)return;e=e[t[r]]}return e}}}(t),this.getter||(this.getter=T)),this.value=this.lazy?void 0:this.get()};nr.prototype.get=function(){var e;se(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(Br){if(!this.user)throw Br;Le(Br,t,'getter for watcher "'+this.expression+'"')}finally{this.deep&&Ze(e),ue(),this.cleanupDeps()}return e},nr.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},nr.prototype.cleanupDeps=function(){var e=this.deps.length;while(e--){var t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}var r=this.depIds;this.depIds=this.newDepIds,this.newDepIds=r,this.newDepIds.clear(),r=this.deps,this.deps=this.newDeps,this.newDeps=r,this.newDeps.length=0},nr.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():function(e){var t=e.id;if(null==$t[t]){if($t[t]=!0,Zt){var r=Xt.length-1;while(r>Jt&&Xt[r].id>e.id)r--;Xt.splice(r+1,0,e)}else Xt.push(e);Yt||(Yt=!0,$e(tr))}}(this)},nr.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||s(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(Br){Le(Br,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},nr.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},nr.prototype.depend=function(){var e=this.deps.length;while(e--)this.deps[e].depend()},nr.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||y(this.vm._watchers,this);var e=this.deps.length;while(e--)this.deps[e].removeSub(this);this.active=!1}};var ir={enumerable:!0,configurable:!0,get:T,set:T};function or(e,t,r){ir.get=function(){return this[t][r]},ir.set=function(e){this[t][r]=e},Object.defineProperty(e,r,ir)}function ar(e){e._watchers=[];var t=e.$options;t.props&&function(e,t){var r=e.$options.propsData||{},n=e._props={},i=e.$options._propKeys=[],o=!e.$parent;o||ve(!1);var a=function(o){i.push(o);var a=Re(o,t,r,e);we(n,o,a),o in e||or(e,"_props",o)};for(var s in t)a(s);ve(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(var r in t)e[r]="function"!==typeof t[r]?T:E(t[r],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;t=e._data="function"===typeof t?function(e,t){se();try{return e.call(t,t)}catch(Br){return Le(Br,t,"data()"),{}}finally{ue()}}(t,e):t||{},c(t)||(t={});var r=Object.keys(t),n=e.$options.props,i=(e.$options.methods,r.length);while(i--){var o=r[i];0,n&&b(n,o)||F(o)||or(e,"_data",o)}_e(t,!0)}(e):_e(e._data={},!0),t.computed&&function(e,t){var r=e._computedWatchers=Object.create(null),n=Q();for(var i in t){var o=t[i],a="function"===typeof o?o:o.get;0,n||(r[i]=new nr(e,a||T,T,sr)),i in e||ur(e,i,o)}}(e,t.computed),t.watch&&t.watch!==Z&&function(e,t){for(var r in t){var n=t[r];if(Array.isArray(n))for(var i=0;i<n.length;i++)lr(e,r,n[i]);else lr(e,r,n)}}(e,t.watch)}var sr={lazy:!0};function ur(e,t,r){var n=!Q();"function"===typeof r?(ir.get=n?cr(t):fr(r),ir.set=T):(ir.get=r.get?n&&!1!==r.cache?cr(t):fr(r.get):T,ir.set=r.set||T),Object.defineProperty(e,t,ir)}function cr(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),ae.SharedObject.target&&t.depend(),t.value}}function fr(e){return function(){return e.call(this,this)}}function lr(e,t,r,n){return c(r)&&(n=r,r=r.handler),"string"===typeof r&&(r=e[r]),e.$watch(t,r,n)}var dr=0;function hr(e){var t=e.options;if(e.super){var r=hr(e.super),n=e.superOptions;if(r!==n){e.superOptions=r;var i=function(e){var t,r=e.options,n=e.sealedOptions;for(var i in r)r[i]!==n[i]&&(t||(t={}),t[i]=r[i]);return t}(e);i&&O(e.extendOptions,i),t=e.options=Me(r,e.extendOptions),t.name&&(t.components[t.name]=e)}}return t}function pr(e){this._init(e)}function gr(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var r=this,n=r.cid,i=e._Ctor||(e._Ctor={});if(i[n])return i[n];var o=e.name||r.options.name;var a=function(e){this._init(e)};return a.prototype=Object.create(r.prototype),a.prototype.constructor=a,a.cid=t++,a.options=Me(r.options,e),a["super"]=r,a.options.props&&function(e){var t=e.options.props;for(var r in t)or(e.prototype,"_props",r)}(a),a.options.computed&&function(e){var t=e.options.computed;for(var r in t)ur(e.prototype,r,t[r])}(a),a.extend=r.extend,a.mixin=r.mixin,a.use=r.use,N.forEach((function(e){a[e]=r[e]})),o&&(a.options.components[o]=a),a.superOptions=r.options,a.extendOptions=e,a.sealedOptions=O({},a.options),i[n]=a,a}}function yr(e){return e&&(e.Ctor.options.name||e.tag)}function vr(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"===typeof e?e.split(",").indexOf(t)>-1:!!function(e){return"[object RegExp]"===u.call(e)}(e)&&e.test(t)}function br(e,t){var r=e.cache,n=e.keys,i=e._vnode;for(var o in r){var a=r[o];if(a){var s=yr(a.componentOptions);s&&!t(s)&&mr(r,o,n,i)}}}function mr(e,t,r,n){var i=e[t];!i||n&&i.tag===n.tag||i.componentInstance.$destroy(),e[t]=null,y(r,t)}(function(e){e.prototype._init=function(e){var t=this;t._uid=dr++,t._isVue=!0,e&&e._isComponent?function(e,t){var r=e.$options=Object.create(e.constructor.options),n=t._parentVnode;r.parent=t.parent,r._parentVnode=n;var i=n.componentOptions;r.propsData=i.propsData,r._parentListeners=i.listeners,r._renderChildren=i.children,r._componentTag=i.tag,t.render&&(r.render=t.render,r.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=Me(hr(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){var t=e.$options,r=t.parent;if(r&&!t.abstract){while(r.$options.abstract&&r.$parent)r=r.$parent;r.$children.push(e)}e.$parent=r,e.$root=r?r.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&Ht(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;var t=e.$options,n=e.$vnode=t._parentVnode,i=n&&n.context;e.$slots=st(t._renderChildren,i),e.$scopedSlots=r,e._c=function(t,r,n,i){return Dt(e,t,r,n,i,!1)},e.$createElement=function(t,r,n,i){return Dt(e,t,r,n,i,!0)};var o=n&&n.data;we(e,"$attrs",o&&o.attrs||r,null,!0),we(e,"$listeners",t._parentListeners||r,null,!0)}(t),Gt(t,"beforeCreate"),!t._$fallback&&ot(t),ar(t),!t._$fallback&&it(t),!t._$fallback&&Gt(t,"created"),t.$options.el&&t.$mount(t.$options.el)}})(pr),function(e){var t={get:function(){return this._data}},r={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",r),e.prototype.$set=Ae,e.prototype.$delete=Se,e.prototype.$watch=function(e,t,r){if(c(t))return lr(this,e,t,r);r=r||{},r.user=!0;var n=new nr(this,e,t,r);if(r.immediate)try{t.call(this,n.value)}catch(i){Le(i,this,'callback for immediate watcher "'+n.expression+'"')}return function(){n.teardown()}}}(pr),function(e){var t=/^hook:/;e.prototype.$on=function(e,r){var n=this;if(Array.isArray(e))for(var i=0,o=e.length;i<o;i++)n.$on(e[i],r);else(n._events[e]||(n._events[e]=[])).push(r),t.test(e)&&(n._hasHookEvent=!0);return n},e.prototype.$once=function(e,t){var r=this;function n(){r.$off(e,n),t.apply(r,arguments)}return n.fn=t,r.$on(e,n),r},e.prototype.$off=function(e,t){var r=this;if(!arguments.length)return r._events=Object.create(null),r;if(Array.isArray(e)){for(var n=0,i=e.length;n<i;n++)r.$off(e[n],t);return r}var o,a=r._events[e];if(!a)return r;if(!t)return r._events[e]=null,r;var s=a.length;while(s--)if(o=a[s],o===t||o.fn===t){a.splice(s,1);break}return r},e.prototype.$emit=function(e){var t=this,r=t._events[e];if(r){r=r.length>1?C(r):r;for(var n=C(arguments,1),i='event handler for "'+e+'"',o=0,a=r.length;o<a;o++)je(r[o],t,n,t,i)}return t}}(pr),function(e){e.prototype._update=function(e,t){var r=this,n=r.$el,i=r._vnode,o=function(e){var t=qt;return qt=e,function(){qt=t}}(r);r._vnode=e,r.$el=i?r.__patch__(i,e):r.__patch__(r.$el,e,t,!1),o(),n&&(n.__vue__=null),r.$el&&(r.$el.__vue__=r),r.$vnode&&r.$parent&&r.$vnode===r.$parent._vnode&&(r.$parent.$el=r.$el)},e.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},e.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){Gt(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||y(t.$children,e),e._watcher&&e._watcher.teardown();var r=e._watchers.length;while(r--)e._watchers[r].teardown();e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),Gt(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}}(pr),function(e){Ct(e.prototype),e.prototype.$nextTick=function(e){return $e(e,this)},e.prototype._render=function(){var e,t=this,r=t.$options,n=r.render,i=r._parentVnode;i&&(t.$scopedSlots=ct(i.data.scopedSlots,t.$slots,t.$scopedSlots)),t.$vnode=i;try{Bt=t,e=n.call(t._renderProxy,t.$createElement)}catch(Br){Le(Br,t,"render"),e=t._vnode}finally{Bt=null}return Array.isArray(e)&&1===e.length&&(e=e[0]),e instanceof ce||(e=le()),e.parent=i,e}}(pr);var _r=[String,RegExp,Array],wr={name:"keep-alive",abstract:!0,props:{include:_r,exclude:_r,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)mr(this.cache,e,this.keys)},mounted:function(){var e=this;this.$watch("include",(function(t){br(e,(function(e){return vr(t,e)}))})),this.$watch("exclude",(function(t){br(e,(function(e){return!vr(t,e)}))}))},render:function(){var e=this.$slots.default,t=function(e){if(Array.isArray(e))for(var t=0;t<e.length;t++){var r=e[t];if(i(r)&&(i(r.componentOptions)||jt(r)))return r}}(e),r=t&&t.componentOptions;if(r){var n=yr(r),o=this.include,a=this.exclude;if(o&&(!n||!vr(o,n))||a&&n&&vr(a,n))return t;var s=this.cache,u=this.keys,c=null==t.key?r.Ctor.cid+(r.tag?"::"+r.tag:""):t.key;s[c]?(t.componentInstance=s[c].componentInstance,y(u,c),u.push(c)):(s[c]=t,u.push(c),this.max&&u.length>parseInt(this.max)&&mr(s,u[0],u,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}},Ar={KeepAlive:wr};(function(e){var t={get:function(){return L}};Object.defineProperty(e,"config",t),e.util={warn:ie,extend:O,mergeOptions:Me,defineReactive:we},e.set=Ae,e.delete=Se,e.nextTick=$e,e.observable=function(e){return _e(e),e},e.options=Object.create(null),N.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,O(e.options.components,Ar),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var r=C(arguments,1);return r.unshift(this),"function"===typeof e.install?e.install.apply(e,r):"function"===typeof e&&e.apply(null,r),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=Me(this.options,e),this}}(e),gr(e),function(e){N.forEach((function(t){e[t]=function(e,r){return r?("component"===t&&c(r)&&(r.name=r.name||e,r=this.options._base.extend(r)),"directive"===t&&"function"===typeof r&&(r={bind:r,update:r}),this.options[t+"s"][e]=r,r):this.options[t+"s"][e]}}))}(e)})(pr),Object.defineProperty(pr.prototype,"$isServer",{get:Q}),Object.defineProperty(pr.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(pr,"FunctionalRenderContext",{value:Ot}),pr.version="2.6.11";var Sr="[object Array]",xr="[object Object]";function Er(e,t){var r={};return function e(t,r){if(t===r)return;var n=Or(t),i=Or(r);if(n==xr&&i==xr){if(Object.keys(t).length>=Object.keys(r).length)for(var o in r){var a=t[o];void 0===a?t[o]=null:e(a,r[o])}}else n==Sr&&i==Sr&&t.length>=r.length&&r.forEach((function(r,n){e(t[n],r)}))}(e,t),function e(t,r,n,i){if(t===r)return;var o=Or(t),a=Or(r);if(o==xr)if(a!=xr||Object.keys(t).length<Object.keys(r).length)Cr(i,n,t);else{var s=function(o){var a=t[o],s=r[o],u=Or(a),c=Or(s);if(u!=Sr&&u!=xr)a!==r[o]&&function(e,t){if(("[object Null]"===e||"[object Undefined]"===e)&&("[object Null]"===t||"[object Undefined]"===t))return!1;return!0}(u,c)&&Cr(i,(""==n?"":n+".")+o,a);else if(u==Sr)c!=Sr||a.length<s.length?Cr(i,(""==n?"":n+".")+o,a):a.forEach((function(t,r){e(t,s[r],(""==n?"":n+".")+o+"["+r+"]",i)}));else if(u==xr)if(c!=xr||Object.keys(a).length<Object.keys(s).length)Cr(i,(""==n?"":n+".")+o,a);else for(var f in a)e(a[f],s[f],(""==n?"":n+".")+o+"."+f,i)};for(var u in t)s(u)}else o==Sr?a!=Sr||t.length<r.length?Cr(i,n,t):t.forEach((function(t,o){e(t,r[o],n+"["+o+"]",i)})):Cr(i,n,t)}(e,t,"",r),r}function Cr(e,t,r){e[t]=r}function Or(e){return Object.prototype.toString.call(e)}function Ir(e){if(e.__next_tick_callbacks&&e.__next_tick_callbacks.length){if(Object({NODE_ENV:"production",VUE_APP_DARK_MODE:"false",VUE_APP_NAME:"v3-H5",VUE_APP_PLATFORM:"mp-weixin",BASE_URL:"/"}).VUE_APP_DEBUG){var t=e.$scope;console.log("["+ +new Date+"]["+(t.is||t.route)+"]["+e._uid+"]:flushCallbacks["+e.__next_tick_callbacks.length+"]")}var r=e.__next_tick_callbacks.slice(0);e.__next_tick_callbacks.length=0;for(var n=0;n<r.length;n++)r[n]()}}function Tr(e,t){if(!e.__next_tick_pending&&!function(e){return Xt.find((function(t){return e._watcher===t}))}(e)){if(Object({NODE_ENV:"production",VUE_APP_DARK_MODE:"false",VUE_APP_NAME:"v3-H5",VUE_APP_PLATFORM:"mp-weixin",BASE_URL:"/"}).VUE_APP_DEBUG){var r=e.$scope;console.log("["+ +new Date+"]["+(r.is||r.route)+"]["+e._uid+"]:nextVueTick")}return $e(t,e)}if(Object({NODE_ENV:"production",VUE_APP_DARK_MODE:"false",VUE_APP_NAME:"v3-H5",VUE_APP_PLATFORM:"mp-weixin",BASE_URL:"/"}).VUE_APP_DEBUG){var n=e.$scope;console.log("["+ +new Date+"]["+(n.is||n.route)+"]["+e._uid+"]:nextMPTick")}var i;if(e.__next_tick_callbacks||(e.__next_tick_callbacks=[]),e.__next_tick_callbacks.push((function(){if(t)try{t.call(e)}catch(Br){Le(Br,e,"nextTick")}else i&&i(e)})),!t&&"undefined"!==typeof Promise)return new Promise((function(e){i=e}))}function Pr(e,t){return t&&(t._isVue||t.__v_isMPComponent)?{}:t}function Mr(){}function kr(e){return Array.isArray(e)?function(e){for(var t,r="",n=0,o=e.length;n<o;n++)i(t=kr(e[n]))&&""!==t&&(r&&(r+=" "),r+=t);return r}(e):s(e)?function(e){var t="";for(var r in e)e[r]&&(t&&(t+=" "),t+=r);return t}(e):"string"===typeof e?e:""}var Rr=m((function(e){var t={},r=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach((function(e){if(e){var n=e.split(r);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}));var Dr=["createSelectorQuery","createIntersectionObserver","selectAllComponents","selectComponent"];var Nr=["onLaunch","onShow","onHide","onUniNViewMessage","onPageNotFound","onThemeChange","onError","onUnhandledRejection","onInit","onLoad","onReady","onUnload","onPullDownRefresh","onReachBottom","onTabItemTap","onAddToFavorites","onShareTimeline","onShareAppMessage","onResize","onPageScroll","onNavigationBarButtonTap","onBackPress","onNavigationBarSearchInputChanged","onNavigationBarSearchInputConfirmed","onNavigationBarSearchInputClicked","onUploadDouyinVideo","onNFCReadMessage","onPageShow","onPageHide","onPageResize"];pr.prototype.__patch__=function(e,t){var r=this;if(null!==t&&("page"===this.mpType||"component"===this.mpType)){var n=this.$scope,i=Object.create(null);try{i=function(e){var t=Object.create(null),r=[].concat(Object.keys(e._data||{}),Object.keys(e._computedWatchers||{}));r.reduce((function(t,r){return t[r]=e[r],t}),t);var n=e.__composition_api_state__||e.__secret_vfa_state__,i=n&&n.rawBindings;return i&&Object.keys(i).forEach((function(r){t[r]=e[r]})),Object.assign(t,e.$mp.data||{}),Array.isArray(e.$options.behaviors)&&-1!==e.$options.behaviors.indexOf("uni://form-field")&&(t["name"]=e.name,t["value"]=e.value),JSON.parse(JSON.stringify(t,Pr))}(this)}catch(s){console.error(s)}i.__webviewId__=n.data.__webviewId__;var o=Object.create(null);Object.keys(i).forEach((function(e){o[e]=n.data[e]}));var a=!1===this.$shouldDiffData?i:Er(i,o);Object.keys(a).length?(Object({NODE_ENV:"production",VUE_APP_DARK_MODE:"false",VUE_APP_NAME:"v3-H5",VUE_APP_PLATFORM:"mp-weixin",BASE_URL:"/"}).VUE_APP_DEBUG&&console.log("["+ +new Date+"]["+(n.is||n.route)+"]["+this._uid+"]差量更新",JSON.stringify(a)),this.__next_tick_pending=!0,n.setData(a,(function(){r.__next_tick_pending=!1,Ir(r)}))):Ir(this)}},pr.prototype.$mount=function(e,t){return function(e,t,r){return e.mpType?("app"===e.mpType&&(e.$options.render=Mr),e.$options.render||(e.$options.render=Mr),!e._$fallback&&Gt(e,"beforeMount"),new nr(e,(function(){e._update(e._render(),r)}),T,{before:function(){e._isMounted&&!e._isDestroyed&&Gt(e,"beforeUpdate")}},!0),r=!1,e):e}(this,0,t)},function(e){var t=e.extend;e.extend=function(e){e=e||{};var r=e.methods;return r&&Object.keys(r).forEach((function(t){-1!==Nr.indexOf(t)&&(e[t]=r[t],delete r[t])})),t.call(this,e)};var r=e.config.optionMergeStrategies,n=r.created;Nr.forEach((function(e){r[e]=n})),e.prototype.__lifecycle_hooks__=Nr}(pr),function(e){e.config.errorHandler=function(t,r,n){e.util.warn("Error in "+n+': "'+t.toString()+'"',r),console.error(t);var i="function"===typeof getApp&&getApp();i&&i.onError&&i.onError(t)};var t=e.prototype.$emit;e.prototype.$emit=function(e){if(this.$scope&&e){var r=this.$scope["_triggerEvent"]||this.$scope["triggerEvent"];if(r)try{r.call(this.$scope,e,{__args__:C(arguments,1)})}catch(n){}}return t.apply(this,arguments)},e.prototype.$nextTick=function(e){return Tr(this,e)},Dr.forEach((function(t){e.prototype[t]=function(e){return this.$scope&&this.$scope[t]?this.$scope[t](e):"undefined"!==typeof my?"createSelectorQuery"===t?my.createSelectorQuery(e):"createIntersectionObserver"===t?my.createIntersectionObserver(e):void 0:void 0}})),e.prototype.__init_provide=it,e.prototype.__init_injections=ot,e.prototype.__call_hook=function(e,t){var r=this;se();var n,i=r.$options[e],o=e+" hook";if(i)for(var a=0,s=i.length;a<s;a++)n=je(i[a],r,t?[t]:null,r,o);return r._hasHookEvent&&r.$emit("hook:"+e,t),ue(),n},e.prototype.__set_model=function(t,r,n,i){Array.isArray(i)&&(-1!==i.indexOf("trim")&&(n=n.trim()),-1!==i.indexOf("number")&&(n=this._n(n))),t||(t=this),e.set(t,r,n)},e.prototype.__set_sync=function(t,r,n){t||(t=this),e.set(t,r,n)},e.prototype.__get_orig=function(e){return c(e)&&e["$orig"]||e},e.prototype.__get_value=function(e,t){return function e(t,r){var n=r.split("."),i=n[0];return 0===i.indexOf("__$n")&&(i=parseInt(i.replace("__$n",""))),1===n.length?t[i]:e(t[i],n.slice(1).join("."))}(t||this,e)},e.prototype.__get_class=function(e,t){return function(e,t){return i(e)||i(t)?function(e,t){return e?t?e+" "+t:e:t||""}(e,kr(t)):""}(t,e)},e.prototype.__get_style=function(e,t){if(!e&&!t)return"";var r=function(e){return Array.isArray(e)?I(e):"string"===typeof e?Rr(e):e}(e),n=t?O(t,r):r;return Object.keys(n).map((function(e){return x(e)+":"+n[e]})).join(";")},e.prototype.__map=function(e,t){var r,n,i,o,a;if(Array.isArray(e)){for(r=new Array(e.length),n=0,i=e.length;n<i;n++)r[n]=t(e[n],n);return r}if(s(e)){for(o=Object.keys(e),r=Object.create(null),n=0,i=o.length;n<i;n++)a=o[n],r[a]=t(e[a],a,n);return r}if("number"===typeof e){for(r=new Array(e),n=0,i=e;n<i;n++)r[n]=t(n,n);return r}return[]}}(pr),t["default"]=pr}.call(this,r("0ee4"))},"325f":function(e,t,r){var n=r("5f79").Buffer;e.exports=function(e,t,r){if(n.isBuffer(e))return e;if("string"===typeof e)return n.from(e,t);if(ArrayBuffer.isView(e))return n.from(e.buffer);throw new TypeError(r+" must be a string, a Buffer, a typed array or a DataView")}},"333e":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(){function e(e){this.source=e}return e.prototype.getLuminanceSource=function(){return this.source},e.prototype.getWidth=function(){return this.source.getWidth()},e.prototype.getHeight=function(){return this.source.getHeight()},e}(),i=n;t.default=i},3352:function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports["default"]=e.exports},3424:function(e,t,r){"use strict";t.sha1=r("6cc4"),t.sha224=r("7d60"),t.sha256=r("438f"),t.sha384=r("107e"),t.sha512=r("f3fd")},"343e":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("7322")),o=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.getFormatInstance=function(){return new t},t.kind="FormatException",t}(i.default),s=a;t.default=s},"346c":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("309d")),o=n(r("f228")),a=function(e){var t="function"===typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},s=function(){function e(e,t,r,n,i,o,a){this.image=e,this.startX=t,this.startY=r,this.width=n,this.height=i,this.moduleSize=o,this.resultPointCallback=a,this.possibleCenters=[],this.crossCheckStateCount=new Int32Array(3)}return e.prototype.find=function(){for(var e=this.startX,t=this.height,r=this.width,n=e+r,i=this.startY+t/2,a=new Int32Array(3),s=this.image,u=0;u<t;u++){var c=i+(0===(1&u)?Math.floor((u+1)/2):-Math.floor((u+1)/2));a[0]=0,a[1]=0,a[2]=0;var f=e;while(f<n&&!s.get(f,c))f++;var l=0;while(f<n){if(s.get(f,c))if(1===l)a[1]++;else if(2===l){if(this.foundPatternCross(a)){var d=this.handlePossibleCenter(a,c,f);if(null!==d)return d}a[0]=a[2],a[1]=1,a[2]=0,l=1}else a[++l]++;else 1===l&&l++,a[l]++;f++}if(this.foundPatternCross(a)){d=this.handlePossibleCenter(a,c,n);if(null!==d)return d}}if(0!==this.possibleCenters.length)return this.possibleCenters[0];throw new o.default},e.centerFromEnd=function(e,t){return t-e[2]-e[1]/2},e.prototype.foundPatternCross=function(e){for(var t=this.moduleSize,r=t/2,n=0;n<3;n++)if(Math.abs(t-e[n])>=r)return!1;return!0},e.prototype.crossCheckVertical=function(t,r,n,i){var o=this.image,a=o.getHeight(),s=this.crossCheckStateCount;s[0]=0,s[1]=0,s[2]=0;var u=t;while(u>=0&&o.get(r,u)&&s[1]<=n)s[1]++,u--;if(u<0||s[1]>n)return NaN;while(u>=0&&!o.get(r,u)&&s[0]<=n)s[0]++,u--;if(s[0]>n)return NaN;u=t+1;while(u<a&&o.get(r,u)&&s[1]<=n)s[1]++,u++;if(u===a||s[1]>n)return NaN;while(u<a&&!o.get(r,u)&&s[2]<=n)s[2]++,u++;if(s[2]>n)return NaN;var c=s[0]+s[1]+s[2];return 5*Math.abs(c-i)>=2*i?NaN:this.foundPatternCross(s)?e.centerFromEnd(s,u):NaN},e.prototype.handlePossibleCenter=function(t,r,n){var o,s,u=t[0]+t[1]+t[2],c=e.centerFromEnd(t,n),f=this.crossCheckVertical(r,c,2*t[1],u);if(!isNaN(f)){var l=(t[0]+t[1]+t[2])/3;try{for(var d=a(this.possibleCenters),h=d.next();!h.done;h=d.next()){var p=h.value;if(p.aboutEquals(l,f,c))return p.combineEstimate(f,c,l)}}catch(y){o={error:y}}finally{try{h&&!h.done&&(s=d.return)&&s.call(d)}finally{if(o)throw o.error}}var g=new i.default(c,f,l);this.possibleCenters.push(g),null!==this.resultPointCallback&&void 0!==this.resultPointCallback&&this.resultPointCallback.foundPossibleResultPoint(g)}return null},e}(),u=s;t.default=u},"34c1":function(e,t,r){"use strict";var n=r("81eb"),i=r("4e45"),o=i.assert;function a(e,t){if(e instanceof a)return e;this._importDER(e,t)||(o(e.r&&e.s,"Signature without r or s"),this.r=new n(e.r,16),this.s=new n(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function u(e,t){var r=e[t.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4)return!1;for(var i=0,o=0,a=t.place;o<n;o++,a++)i<<=8,i|=e[a],i>>>=0;return!(i<=127)&&(t.place=a,i)}function c(e){var t=0,r=e.length-1;while(!e[t]&&!(128&e[t+1])&&t<r)t++;return 0===t?e:e.slice(t)}function f(e,t){if(t<128)e.push(t);else{var r=1+(Math.log(t)/Math.LN2>>>3);e.push(128|r);while(--r)e.push(t>>>(r<<3)&255);e.push(t)}}e.exports=a,a.prototype._importDER=function(e,t){e=i.toArray(e,t);var r=new s;if(48!==e[r.place++])return!1;var o=u(e,r);if(!1===o)return!1;if(o+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var a=u(e,r);if(!1===a)return!1;var c=e.slice(r.place,a+r.place);if(r.place+=a,2!==e[r.place++])return!1;var f=u(e,r);if(!1===f)return!1;if(e.length!==f+r.place)return!1;var l=e.slice(r.place,f+r.place);if(0===c[0]){if(!(128&c[1]))return!1;c=c.slice(1)}if(0===l[0]){if(!(128&l[1]))return!1;l=l.slice(1)}return this.r=new n(c),this.s=new n(l),this.recoveryParam=null,!0},a.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=c(t),r=c(r);while(!r[0]&&!(128&r[1]))r=r.slice(1);var n=[2];f(n,t.length),n=n.concat(t),n.push(2),f(n,r.length);var o=n.concat(r),a=[48];return f(a,o.length),a=a.concat(o),i.encode(a,e)}},"34cf":function(e,t,r){var n=r("ed45"),i=r("7172"),o=r("6382"),a=r("dd3e");e.exports=function(e,t){return n(e)||i(e,t)||o(e,t)||a()},e.exports.__esModule=!0,e.exports["default"]=e.exports},"35e9":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("c769")),o=n(r("7e9b")),a=n(r("d9cd")),s=n(r("2efa")),u=n(r("76a0")),c=n(r("f228")),f=n(r("a8be")),l=n(r("e01c")),d=n(r("346c")),h=n(r("91fd")),p=function(){function e(e){this.image=e}return e.prototype.getImage=function(){return this.image},e.prototype.getResultPointCallback=function(){return this.resultPointCallback},e.prototype.detect=function(e){this.resultPointCallback=null===e||void 0===e?null:e.get(u.default.NEED_RESULT_POINT_CALLBACK);var t=new h.default(this.image,this.resultPointCallback),r=t.find(e);return this.processFinderPatternInfo(r)},e.prototype.processFinderPatternInfo=function(t){var r=t.getTopLeft(),n=t.getTopRight(),i=t.getBottomLeft(),a=this.calculateModuleSize(r,n,i);if(a<1)throw new c.default("No pattern found in proccess finder.");var s=e.computeDimension(r,n,i,a),u=l.default.getProvisionalVersionForDimension(s),f=u.getDimensionForVersion()-7,d=null;if(u.getAlignmentPatternCenters().length>0)for(var h=n.getX()-r.getX()+i.getX(),p=n.getY()-r.getY()+i.getY(),g=1-3/f,y=Math.floor(r.getX()+g*(h-r.getX())),v=Math.floor(r.getY()+g*(p-r.getY())),b=4;b<=16;b<<=1)try{d=this.findAlignmentInRegion(a,y,v,b);break}catch(A){if(!(A instanceof c.default))throw A}var m,_=e.createTransform(r,n,i,d,s),w=e.sampleGrid(this.image,_,s);return m=null===d?[i,r,n]:[i,r,n,d],new o.default(w,m)},e.createTransform=function(e,t,r,n,i){var o,a,u,c,f=i-3.5;return null!==n?(o=n.getX(),a=n.getY(),u=f-3,c=u):(o=t.getX()-e.getX()+r.getX(),a=t.getY()-e.getY()+r.getY(),u=f,c=f),s.default.quadrilateralToQuadrilateral(3.5,3.5,f,3.5,u,c,3.5,f,e.getX(),e.getY(),t.getX(),t.getY(),o,a,r.getX(),r.getY())},e.sampleGrid=function(e,t,r){var n=a.default.getInstance();return n.sampleGridWithTransform(e,r,r,t)},e.computeDimension=function(e,t,r,n){var o=i.default.round(f.default.distance(e,t)/n),a=i.default.round(f.default.distance(e,r)/n),s=Math.floor((o+a)/2)+7;switch(3&s){case 0:s++;break;case 2:s--;break;case 3:throw new c.default("Dimensions could be not found.")}return s},e.prototype.calculateModuleSize=function(e,t,r){return(this.calculateModuleSizeOneWay(e,t)+this.calculateModuleSizeOneWay(e,r))/2},e.prototype.calculateModuleSizeOneWay=function(e,t){var r=this.sizeOfBlackWhiteBlackRunBothWays(Math.floor(e.getX()),Math.floor(e.getY()),Math.floor(t.getX()),Math.floor(t.getY())),n=this.sizeOfBlackWhiteBlackRunBothWays(Math.floor(t.getX()),Math.floor(t.getY()),Math.floor(e.getX()),Math.floor(e.getY()));return isNaN(r)?n/7:isNaN(n)?r/7:(r+n)/14},e.prototype.sizeOfBlackWhiteBlackRunBothWays=function(e,t,r,n){var i=this.sizeOfBlackWhiteBlackRun(e,t,r,n),o=1,a=e-(r-e);a<0?(o=e/(e-a),a=0):a>=this.image.getWidth()&&(o=(this.image.getWidth()-1-e)/(a-e),a=this.image.getWidth()-1);var s=Math.floor(t-(n-t)*o);return o=1,s<0?(o=t/(t-s),s=0):s>=this.image.getHeight()&&(o=(this.image.getHeight()-1-t)/(s-t),s=this.image.getHeight()-1),a=Math.floor(e+(a-e)*o),i+=this.sizeOfBlackWhiteBlackRun(e,t,a,s),i-1},e.prototype.sizeOfBlackWhiteBlackRun=function(e,t,r,n){var o=Math.abs(n-t)>Math.abs(r-e);if(o){var a=e;e=t,t=a,a=r,r=n,n=a}for(var s=Math.abs(r-e),u=Math.abs(n-t),c=-s/2,f=e<r?1:-1,l=t<n?1:-1,d=0,h=r+f,p=e,g=t;p!==h;p+=f){var y=o?g:p,v=o?p:g;if(1===d===this.image.get(y,v)){if(2===d)return i.default.distance(p,g,e,t);d++}if(c+=u,c>0){if(g===n)break;g+=l,c-=s}}return 2===d?i.default.distance(r+f,n,e,t):NaN},e.prototype.findAlignmentInRegion=function(e,t,r,n){var i=Math.floor(n*e),o=Math.max(0,t-i),a=Math.min(this.image.getWidth()-1,t+i);if(a-o<3*e)throw new c.default("Alignment top exceeds estimated module size.");var s=Math.max(0,r-i),u=Math.min(this.image.getHeight()-1,r+i);if(u-s<3*e)throw new c.default("Alignment bottom exceeds estimated module size.");var f=new d.default(this.image,o,s,a-o,u-s,e,this.resultPointCallback);return f.find()},e}(),g=p;t.default=g},3655:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("b717")),o=n(r("bab0")),a=n(r("f228")),s=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),u=function(e){var t="function"===typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},c=function(e){function t(){var t=e.call(this)||this;return t.decodeMiddleCounters=Int32Array.from([0,0,0,0]),t}return s(t,e),t.prototype.decodeMiddle=function(e,r,n){var i,a,s,c,f=this.decodeMiddleCounters;f[0]=0,f[1]=0,f[2]=0,f[3]=0;for(var l=e.getSize(),d=r[1],h=0,p=0;p<6&&d<l;p++){var g=o.default.decodeDigit(e,f,d,o.default.L_AND_G_PATTERNS);n+=String.fromCharCode("0".charCodeAt(0)+g%10);try{for(var y=(i=void 0,u(f)),v=y.next();!v.done;v=y.next()){var b=v.value;d+=b}}catch(A){i={error:A}}finally{try{v&&!v.done&&(a=y.return)&&a.call(y)}finally{if(i)throw i.error}}g>=10&&(h|=1<<5-p)}n=t.determineFirstDigit(n,h);var m=o.default.findGuardPattern(e,d,!0,o.default.MIDDLE_PATTERN,new Int32Array(o.default.MIDDLE_PATTERN.length).fill(0));d=m[1];for(p=0;p<6&&d<l;p++){g=o.default.decodeDigit(e,f,d,o.default.L_PATTERNS);n+=String.fromCharCode("0".charCodeAt(0)+g);try{for(var _=(s=void 0,u(f)),w=_.next();!w.done;w=_.next()){b=w.value;d+=b}}catch(S){s={error:S}}finally{try{w&&!w.done&&(c=_.return)&&c.call(_)}finally{if(s)throw s.error}}}return{rowOffset:d,resultString:n}},t.prototype.getBarcodeFormat=function(){return i.default.EAN_13},t.determineFirstDigit=function(e,t){for(var r=0;r<10;r++)if(t===this.FIRST_DIGIT_ENCODINGS[r])return e=String.fromCharCode("0".charCodeAt(0)+r)+e,e;throw new a.default},t.FIRST_DIGIT_ENCODINGS=[0,11,13,14,19,25,28,21,22,26],t}(o.default),f=c;t.default=f},"36aa":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("b717")),o=n(r("f74e")),a=n(r("76a0")),s=n(r("343e")),u=n(r("f228")),c=n(r("0c24")),f=n(r("a8be")),l=n(r("4d7d")),d=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return d(t,e),t.findStartPattern=function(e){for(var r=e.getSize(),n=e.getNextSet(0),i=0,o=Int32Array.from([0,0,0,0,0,0]),a=n,s=!1,c=n;c<r;c++)if(e.get(c)!==s)o[i]++;else{if(5===i){for(var f=t.MAX_AVG_VARIANCE,d=-1,h=t.CODE_START_A;h<=t.CODE_START_C;h++){var p=l.default.patternMatchVariance(o,t.CODE_PATTERNS[h],t.MAX_INDIVIDUAL_VARIANCE);p<f&&(f=p,d=h)}if(d>=0&&e.isRange(Math.max(0,a-(c-a)/2),a,!1))return Int32Array.from([a,c,d]);a+=o[0]+o[1],o=o.slice(2,o.length),o[i-1]=0,o[i]=0,i--}else i++;o[i]=1,s=!s}throw new u.default},t.decodeCode=function(e,r,n){l.default.recordPattern(e,n,r);for(var i=t.MAX_AVG_VARIANCE,o=-1,a=0;a<t.CODE_PATTERNS.length;a++){var s=t.CODE_PATTERNS[a],c=this.patternMatchVariance(r,s,t.MAX_INDIVIDUAL_VARIANCE);c<i&&(i=c,o=a)}if(o>=0)return o;throw new u.default},t.prototype.decodeRow=function(e,r,n){var l,d=n&&!0===n.get(a.default.ASSUME_GS1),h=t.findStartPattern(r),p=h[2],g=0,y=new Uint8Array(20);switch(y[g++]=p,p){case t.CODE_START_A:l=t.CODE_CODE_A;break;case t.CODE_START_B:l=t.CODE_CODE_B;break;case t.CODE_START_C:l=t.CODE_CODE_C;break;default:throw new s.default}var v=!1,b=!1,m="",_=h[0],w=h[1],A=Int32Array.from([0,0,0,0,0,0]),S=0,x=0,E=p,C=0,O=!0,I=!1,T=!1;while(!v){var P=b;switch(b=!1,S=x,x=t.decodeCode(r,A,w),y[g++]=x,x!==t.CODE_STOP&&(O=!0),x!==t.CODE_STOP&&(C++,E+=C*x),_=w,w+=A.reduce((function(e,t){return e+t}),0),x){case t.CODE_START_A:case t.CODE_START_B:case t.CODE_START_C:throw new s.default}switch(l){case t.CODE_CODE_A:if(x<64)m+=T===I?String.fromCharCode(" ".charCodeAt(0)+x):String.fromCharCode(" ".charCodeAt(0)+x+128),T=!1;else if(x<96)m+=T===I?String.fromCharCode(x-64):String.fromCharCode(x+64),T=!1;else switch(x!==t.CODE_STOP&&(O=!1),x){case t.CODE_FNC_1:d&&(0===m.length?m+="]C1":m+=String.fromCharCode(29));break;case t.CODE_FNC_2:case t.CODE_FNC_3:break;case t.CODE_FNC_4_A:!I&&T?(I=!0,T=!1):I&&T?(I=!1,T=!1):T=!0;break;case t.CODE_SHIFT:b=!0,l=t.CODE_CODE_B;break;case t.CODE_CODE_B:l=t.CODE_CODE_B;break;case t.CODE_CODE_C:l=t.CODE_CODE_C;break;case t.CODE_STOP:v=!0;break}break;case t.CODE_CODE_B:if(x<96)m+=T===I?String.fromCharCode(" ".charCodeAt(0)+x):String.fromCharCode(" ".charCodeAt(0)+x+128),T=!1;else switch(x!==t.CODE_STOP&&(O=!1),x){case t.CODE_FNC_1:d&&(0===m.length?m+="]C1":m+=String.fromCharCode(29));break;case t.CODE_FNC_2:case t.CODE_FNC_3:break;case t.CODE_FNC_4_B:!I&&T?(I=!0,T=!1):I&&T?(I=!1,T=!1):T=!0;break;case t.CODE_SHIFT:b=!0,l=t.CODE_CODE_A;break;case t.CODE_CODE_A:l=t.CODE_CODE_A;break;case t.CODE_CODE_C:l=t.CODE_CODE_C;break;case t.CODE_STOP:v=!0;break}break;case t.CODE_CODE_C:if(x<100)x<10&&(m+="0"),m+=x;else switch(x!==t.CODE_STOP&&(O=!1),x){case t.CODE_FNC_1:d&&(0===m.length?m+="]C1":m+=String.fromCharCode(29));break;case t.CODE_CODE_A:l=t.CODE_CODE_A;break;case t.CODE_CODE_B:l=t.CODE_CODE_B;break;case t.CODE_STOP:v=!0;break}break}P&&(l=l===t.CODE_CODE_A?t.CODE_CODE_B:t.CODE_CODE_A)}var M=w-_;if(w=r.getNextUnset(w),!r.isRange(w,Math.min(r.getSize(),w+(w-_)/2),!1))throw new u.default;if(E-=C*S,E%103!==S)throw new o.default;var k=m.length;if(0===k)throw new u.default;k>0&&O&&(m=l===t.CODE_CODE_C?m.substring(0,k-2):m.substring(0,k-1));for(var R=(h[1]+h[0])/2,D=_+M/2,N=y.length,B=new Uint8Array(N),L=0;L<N;L++)B[L]=y[L];var j=[new f.default(R,e),new f.default(D,e)];return new c.default(m,B,0,j,i.default.CODE_128,(new Date).getTime())},t.CODE_PATTERNS=[Int32Array.from([2,1,2,2,2,2]),Int32Array.from([2,2,2,1,2,2]),Int32Array.from([2,2,2,2,2,1]),Int32Array.from([1,2,1,2,2,3]),Int32Array.from([1,2,1,3,2,2]),Int32Array.from([1,3,1,2,2,2]),Int32Array.from([1,2,2,2,1,3]),Int32Array.from([1,2,2,3,1,2]),Int32Array.from([1,3,2,2,1,2]),Int32Array.from([2,2,1,2,1,3]),Int32Array.from([2,2,1,3,1,2]),Int32Array.from([2,3,1,2,1,2]),Int32Array.from([1,1,2,2,3,2]),Int32Array.from([1,2,2,1,3,2]),Int32Array.from([1,2,2,2,3,1]),Int32Array.from([1,1,3,2,2,2]),Int32Array.from([1,2,3,1,2,2]),Int32Array.from([1,2,3,2,2,1]),Int32Array.from([2,2,3,2,1,1]),Int32Array.from([2,2,1,1,3,2]),Int32Array.from([2,2,1,2,3,1]),Int32Array.from([2,1,3,2,1,2]),Int32Array.from([2,2,3,1,1,2]),Int32Array.from([3,1,2,1,3,1]),Int32Array.from([3,1,1,2,2,2]),Int32Array.from([3,2,1,1,2,2]),Int32Array.from([3,2,1,2,2,1]),Int32Array.from([3,1,2,2,1,2]),Int32Array.from([3,2,2,1,1,2]),Int32Array.from([3,2,2,2,1,1]),Int32Array.from([2,1,2,1,2,3]),Int32Array.from([2,1,2,3,2,1]),Int32Array.from([2,3,2,1,2,1]),Int32Array.from([1,1,1,3,2,3]),Int32Array.from([1,3,1,1,2,3]),Int32Array.from([1,3,1,3,2,1]),Int32Array.from([1,1,2,3,1,3]),Int32Array.from([1,3,2,1,1,3]),Int32Array.from([1,3,2,3,1,1]),Int32Array.from([2,1,1,3,1,3]),Int32Array.from([2,3,1,1,1,3]),Int32Array.from([2,3,1,3,1,1]),Int32Array.from([1,1,2,1,3,3]),Int32Array.from([1,1,2,3,3,1]),Int32Array.from([1,3,2,1,3,1]),Int32Array.from([1,1,3,1,2,3]),Int32Array.from([1,1,3,3,2,1]),Int32Array.from([1,3,3,1,2,1]),Int32Array.from([3,1,3,1,2,1]),Int32Array.from([2,1,1,3,3,1]),Int32Array.from([2,3,1,1,3,1]),Int32Array.from([2,1,3,1,1,3]),Int32Array.from([2,1,3,3,1,1]),Int32Array.from([2,1,3,1,3,1]),Int32Array.from([3,1,1,1,2,3]),Int32Array.from([3,1,1,3,2,1]),Int32Array.from([3,3,1,1,2,1]),Int32Array.from([3,1,2,1,1,3]),Int32Array.from([3,1,2,3,1,1]),Int32Array.from([3,3,2,1,1,1]),Int32Array.from([3,1,4,1,1,1]),Int32Array.from([2,2,1,4,1,1]),Int32Array.from([4,3,1,1,1,1]),Int32Array.from([1,1,1,2,2,4]),Int32Array.from([1,1,1,4,2,2]),Int32Array.from([1,2,1,1,2,4]),Int32Array.from([1,2,1,4,2,1]),Int32Array.from([1,4,1,1,2,2]),Int32Array.from([1,4,1,2,2,1]),Int32Array.from([1,1,2,2,1,4]),Int32Array.from([1,1,2,4,1,2]),Int32Array.from([1,2,2,1,1,4]),Int32Array.from([1,2,2,4,1,1]),Int32Array.from([1,4,2,1,1,2]),Int32Array.from([1,4,2,2,1,1]),Int32Array.from([2,4,1,2,1,1]),Int32Array.from([2,2,1,1,1,4]),Int32Array.from([4,1,3,1,1,1]),Int32Array.from([2,4,1,1,1,2]),Int32Array.from([1,3,4,1,1,1]),Int32Array.from([1,1,1,2,4,2]),Int32Array.from([1,2,1,1,4,2]),Int32Array.from([1,2,1,2,4,1]),Int32Array.from([1,1,4,2,1,2]),Int32Array.from([1,2,4,1,1,2]),Int32Array.from([1,2,4,2,1,1]),Int32Array.from([4,1,1,2,1,2]),Int32Array.from([4,2,1,1,1,2]),Int32Array.from([4,2,1,2,1,1]),Int32Array.from([2,1,2,1,4,1]),Int32Array.from([2,1,4,1,2,1]),Int32Array.from([4,1,2,1,2,1]),Int32Array.from([1,1,1,1,4,3]),Int32Array.from([1,1,1,3,4,1]),Int32Array.from([1,3,1,1,4,1]),Int32Array.from([1,1,4,1,1,3]),Int32Array.from([1,1,4,3,1,1]),Int32Array.from([4,1,1,1,1,3]),Int32Array.from([4,1,1,3,1,1]),Int32Array.from([1,1,3,1,4,1]),Int32Array.from([1,1,4,1,3,1]),Int32Array.from([3,1,1,1,4,1]),Int32Array.from([4,1,1,1,3,1]),Int32Array.from([2,1,1,4,1,2]),Int32Array.from([2,1,1,2,1,4]),Int32Array.from([2,1,1,2,3,2]),Int32Array.from([2,3,3,1,1,1,2])],t.MAX_AVG_VARIANCE=.25,t.MAX_INDIVIDUAL_VARIANCE=.7,t.CODE_SHIFT=98,t.CODE_CODE_C=99,t.CODE_CODE_B=100,t.CODE_CODE_A=101,t.CODE_FNC_1=102,t.CODE_FNC_2=97,t.CODE_FNC_3=96,t.CODE_FNC_4_A=101,t.CODE_FNC_4_B=100,t.CODE_START_A=103,t.CODE_START_B=104,t.CODE_START_C=105,t.CODE_STOP=106,t}(l.default),p=h;t.default=p},"36d3":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("1ff8")),o=n(r("f7fd")),a=n(r("ba3c")),s=function(e){var t="function"===typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},u=function(){function e(){}return e.fill=function(e,t){for(var r=0,n=e.length;r<n;r++)e[r]=t},e.fillWithin=function(t,r,n,i){e.rangeCheck(t.length,r,n);for(var o=r;o<n;o++)t[o]=i},e.rangeCheck=function(e,t,r){if(t>r)throw new o.default("fromIndex("+t+") > toIndex("+r+")");if(t<0)throw new a.default(t);if(r>e)throw new a.default(r)},e.asList=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e},e.create=function(e,t,r){var n=Array.from({length:e});return n.map((function(e){return Array.from({length:t}).fill(r)}))},e.createInt32Array=function(e,t,r){var n=Array.from({length:e});return n.map((function(e){return Int32Array.from({length:t}).fill(r)}))},e.equals=function(e,t){if(!e)return!1;if(!t)return!1;if(!e.length)return!1;if(!t.length)return!1;if(e.length!==t.length)return!1;for(var r=0,n=e.length;r<n;r++)if(e[r]!==t[r])return!1;return!0},e.hashCode=function(e){var t,r;if(null===e)return 0;var n=1;try{for(var i=s(e),o=i.next();!o.done;o=i.next()){var a=o.value;n=31*n+a}}catch(u){t={error:u}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n},e.fillUint8Array=function(e,t){for(var r=0;r!==e.length;r++)e[r]=t},e.copyOf=function(e,t){return e.slice(0,t)},e.copyOfUint8Array=function(e,t){if(e.length<=t){var r=new Uint8Array(t);return r.set(e),r}return e.slice(0,t)},e.copyOfRange=function(e,t,r){var n=r-t,o=new Int32Array(n);return i.default.arraycopy(e,t,o,0,n),o},e.binarySearch=function(t,r,n){void 0===n&&(n=e.numberComparator);var i=0,o=t.length-1;while(i<=o){var a=o+i>>1,s=n(r,t[a]);if(s>0)i=a+1;else{if(!(s<0))return a;o=a-1}}return-i-1},e.numberComparator=function(e,t){return e-t},e}(),c=u;t.default=c},3710:function(e,t,r){"use strict";var n=r("47a9"),i=r("3b2d");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r("9c16")),a=d(r("a080")),s=d(r("d147")),u=d(r("f4fd")),c=d(r("8183")),f=n(r("d618"));function l(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(l=function(e){return e?r:t})(e)}function d(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!==typeof e)return{default:e};var r=l(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=o?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(n,a,s):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}var h=function(e){var t="function"===typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},p=function(){function e(e,t,r,n){this.token=e,this.mode=t,this.binaryShiftByteCount=r,this.bitCount=n}return e.prototype.getMode=function(){return this.mode},e.prototype.getToken=function(){return this.token},e.prototype.getBinaryShiftByteCount=function(){return this.binaryShiftByteCount},e.prototype.getBitCount=function(){return this.bitCount},e.prototype.latchAndAppend=function(t,r){var n=this.bitCount,i=this.token;if(t!==this.mode){var o=u.LATCH_TABLE[this.mode][t];i=a.add(i,65535&o,o>>16),n+=o>>16}var c=t===s.MODE_DIGIT?4:5;return i=a.add(i,r,c),new e(i,t,0,n+c)},e.prototype.shiftAndAppend=function(t,r){var n=this.token,i=this.mode===s.MODE_DIGIT?4:5;return n=a.add(n,c.SHIFT_TABLE[this.mode][t],i),n=a.add(n,r,5),new e(n,this.mode,0,this.bitCount+i+5)},e.prototype.addBinaryShiftChar=function(t){var r=this.token,n=this.mode,i=this.bitCount;if(this.mode===s.MODE_PUNCT||this.mode===s.MODE_DIGIT){var o=u.LATCH_TABLE[n][s.MODE_UPPER];r=a.add(r,65535&o,o>>16),i+=o>>16,n=s.MODE_UPPER}var c=0===this.binaryShiftByteCount||31===this.binaryShiftByteCount?18:62===this.binaryShiftByteCount?9:8,f=new e(r,n,this.binaryShiftByteCount+1,i+c);return 2078===f.binaryShiftByteCount&&(f=f.endBinaryShift(t+1)),f},e.prototype.endBinaryShift=function(t){if(0===this.binaryShiftByteCount)return this;var r=this.token;return r=a.addBinaryShift(r,t-this.binaryShiftByteCount,this.binaryShiftByteCount),new e(r,this.mode,0,this.bitCount)},e.prototype.isBetterThanOrEqualTo=function(t){var r=this.bitCount+(u.LATCH_TABLE[this.mode][t.mode]>>16);return this.binaryShiftByteCount<t.binaryShiftByteCount?r+=e.calculateBinaryShiftCost(t)-e.calculateBinaryShiftCost(this):this.binaryShiftByteCount>t.binaryShiftByteCount&&t.binaryShiftByteCount>0&&(r+=10),r<=t.bitCount},e.prototype.toBitArray=function(e){for(var t,r,n=[],i=this.endBinaryShift(e.length).token;null!==i;i=i.getPrevious())n.unshift(i);var a=new o.default;try{for(var s=h(n),u=s.next();!u.done;u=s.next()){var c=u.value;c.appendTo(a,e)}}catch(f){t={error:f}}finally{try{u&&!u.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}return a},e.prototype.toString=function(){return f.default.format("%s bits=%d bytes=%d",s.MODE_NAMES[this.mode],this.bitCount,this.binaryShiftByteCount)},e.calculateBinaryShiftCost=function(e){return e.binaryShiftByteCount>62?21:e.binaryShiftByteCount>31?20:e.binaryShiftByteCount>0?10:0},e.INITIAL_STATE=new e(s.EMPTY_TOKEN,s.MODE_UPPER,0,0),e}(),g=p;t.default=g},3717:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("8618")),o=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),a=function(e){function t(t,r,n){var i=e.call(this,t)||this;return n?(i.remaining=!0,i.remainingValue=i.remainingValue):(i.remaining=!1,i.remainingValue=0),i.newString=r,i}return o(t,e),t.prototype.getNewString=function(){return this.newString},t.prototype.isRemaining=function(){return this.remaining},t.prototype.getRemainingValue=function(){return this.remainingValue},t}(i.default),s=a;t.default=s},3727:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("d4f8")),o=n(r("4e64")),a=function(){function e(e,t){this.width=e,this.height=t}return e.prototype.getWidth=function(){return this.width},e.prototype.getHeight=function(){return this.height},e.prototype.isCropSupported=function(){return!1},e.prototype.crop=function(e,t,r,n){throw new o.default("This luminance source does not support cropping.")},e.prototype.isRotateSupported=function(){return!1},e.prototype.rotateCounterClockwise=function(){throw new o.default("This luminance source does not support rotation by 90 degrees.")},e.prototype.rotateCounterClockwise45=function(){throw new o.default("This luminance source does not support rotation by 45 degrees.")},e.prototype.toString=function(){for(var e=new Uint8ClampedArray(this.width),t=new i.default,r=0;r<this.height;r++){for(var n=this.getRow(r,e),o=0;o<this.width;o++){var a=255&n[o],s=void 0;s=a<64?"#":a<128?"+":a<192?".":" ",t.append(s)}t.append("\n")}return t.toString()},e}(),s=a;t.default=s},3757:function(e,t,r){var n=r("2c2e"),i=r("0b34"),o=r("5f79").Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function u(){this.init(),this._w=s,i.call(this,64,56)}function c(e){return e<<5|e>>>27}function f(e){return e<<30|e>>>2}function l(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(e){for(var t=this._w,r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,s=0|this._e,u=0;u<16;++u)t[u]=e.readInt32BE(4*u);for(;u<80;++u)t[u]=t[u-3]^t[u-8]^t[u-14]^t[u-16];for(var d=0;d<80;++d){var h=~~(d/20),p=c(r)+l(h,n,i,o)+s+t[d]+a[h]|0;s=o,o=i,i=f(n),n=r,r=p}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=s+this._e|0},u.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=u},"37ed":function(e,t,r){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,function(e){e[e["OTHER"]=0]="OTHER",e[e["ORIENTATION"]=1]="ORIENTATION",e[e["BYTE_SEGMENTS"]=2]="BYTE_SEGMENTS",e[e["ERROR_CORRECTION_LEVEL"]=3]="ERROR_CORRECTION_LEVEL",e[e["ISSUE_NUMBER"]=4]="ISSUE_NUMBER",e[e["SUGGESTED_PRICE"]=5]="SUGGESTED_PRICE",e[e["POSSIBLE_COUNTRY"]=6]="POSSIBLE_COUNTRY",e[e["UPC_EAN_EXTENSION"]=7]="UPC_EAN_EXTENSION",e[e["PDF417_EXTRA_METADATA"]=8]="PDF417_EXTRA_METADATA",e[e["STRUCTURED_APPEND_SEQUENCE"]=9]="STRUCTURED_APPEND_SEQUENCE",e[e["STRUCTURED_APPEND_PARITY"]=10]="STRUCTURED_APPEND_PARITY"}(n||(n={}));var i=n;t.default=i},"39a5":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("786c")),o=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),a=function(e){function t(t){return e.call(this,t)||this}return o(t,e),t.prototype.addWeightCode=function(e,t){e.append("(3103)")},t.prototype.checkWeight=function(e){return e},t}(i.default),s=a;t.default=s},"3a9e":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("1ff8")),o=n(r("3727")),a=n(r("a6ba")),s=n(r("f7fd")),u=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),c=function(e){function t(t,r,n,i,o,a,u,c){var f=e.call(this,a,u)||this;if(f.yuvData=t,f.dataWidth=r,f.dataHeight=n,f.left=i,f.top=o,i+a>r||o+u>n)throw new s.default("Crop rectangle does not fit within image data.");return c&&f.reverseHorizontal(a,u),f}return u(t,e),t.prototype.getRow=function(e,t){if(e<0||e>=this.getHeight())throw new s.default("Requested row is outside the image: "+e);var r=this.getWidth();(null===t||void 0===t||t.length<r)&&(t=new Uint8ClampedArray(r));var n=(e+this.top)*this.dataWidth+this.left;return i.default.arraycopy(this.yuvData,n,t,0,r),t},t.prototype.getMatrix=function(){var e=this.getWidth(),t=this.getHeight();if(e===this.dataWidth&&t===this.dataHeight)return this.yuvData;var r=e*t,n=new Uint8ClampedArray(r),o=this.top*this.dataWidth+this.left;if(e===this.dataWidth)return i.default.arraycopy(this.yuvData,o,n,0,r),n;for(var a=0;a<t;a++){var s=a*e;i.default.arraycopy(this.yuvData,o,n,s,e),o+=this.dataWidth}return n},t.prototype.isCropSupported=function(){return!0},t.prototype.crop=function(e,r,n,i){return new t(this.yuvData,this.dataWidth,this.dataHeight,this.left+e,this.top+r,n,i,!1)},t.prototype.renderThumbnail=function(){for(var e=this.getWidth()/t.THUMBNAIL_SCALE_FACTOR,r=this.getHeight()/t.THUMBNAIL_SCALE_FACTOR,n=new Int32Array(e*r),i=this.yuvData,o=this.top*this.dataWidth+this.left,a=0;a<r;a++){for(var s=a*e,u=0;u<e;u++){var c=255&i[o+u*t.THUMBNAIL_SCALE_FACTOR];n[s+u]=4278190080|65793*c}o+=this.dataWidth*t.THUMBNAIL_SCALE_FACTOR}return n},t.prototype.getThumbnailWidth=function(){return this.getWidth()/t.THUMBNAIL_SCALE_FACTOR},t.prototype.getThumbnailHeight=function(){return this.getHeight()/t.THUMBNAIL_SCALE_FACTOR},t.prototype.reverseHorizontal=function(e,t){for(var r=this.yuvData,n=0,i=this.top*this.dataWidth+this.left;n<t;n++,i+=this.dataWidth)for(var o=i+e/2,a=i,s=i+e-1;a<o;a++,s--){var u=r[a];r[a]=r[s],r[s]=u}},t.prototype.invert=function(){return new a.default(this)},t.THUMBNAIL_SCALE_FACTOR=2,t}(o.default),f=c;t.default=f},"3b1b":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("b717")),o=n(r("bab0")),a=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),s=function(e){var t="function"===typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},u=function(e){function t(){var t=e.call(this)||this;return t.decodeMiddleCounters=Int32Array.from([0,0,0,0]),t}return a(t,e),t.prototype.decodeMiddle=function(e,t,r){var n,i,a,u,c=this.decodeMiddleCounters;c[0]=0,c[1]=0,c[2]=0,c[3]=0;for(var f=e.getSize(),l=t[1],d=0;d<4&&l<f;d++){var h=o.default.decodeDigit(e,c,l,o.default.L_PATTERNS);r+=String.fromCharCode("0".charCodeAt(0)+h);try{for(var p=(n=void 0,s(c)),g=p.next();!g.done;g=p.next()){var y=g.value;l+=y}}catch(_){n={error:_}}finally{try{g&&!g.done&&(i=p.return)&&i.call(p)}finally{if(n)throw n.error}}}var v=o.default.findGuardPattern(e,l,!0,o.default.MIDDLE_PATTERN,new Int32Array(o.default.MIDDLE_PATTERN.length).fill(0));l=v[1];for(d=0;d<4&&l<f;d++){h=o.default.decodeDigit(e,c,l,o.default.L_PATTERNS);r+=String.fromCharCode("0".charCodeAt(0)+h);try{for(var b=(a=void 0,s(c)),m=b.next();!m.done;m=b.next()){y=m.value;l+=y}}catch(w){a={error:w}}finally{try{m&&!m.done&&(u=b.return)&&u.call(b)}finally{if(a)throw a.error}}}return{rowOffset:l,resultString:r}},t.prototype.getBarcodeFormat=function(){return i.default.EAN_8},t}(o.default),c=u;t.default=c},"3b2d":function(e,t){function r(t){return e.exports=r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports["default"]=e.exports,r(t)}e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},"3b65":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("08c5")),o=n(r("e5d0")),a=function(e){var t="function"===typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},s=function(){function e(e){this.errorCorrectionLevel=i.default.forBits(e>>3&3),this.dataMask=7&e}return e.numBitsDiffering=function(e,t){return o.default.bitCount(e^t)},e.decodeFormatInformation=function(t,r){var n=e.doDecodeFormatInformation(t,r);return null!==n?n:e.doDecodeFormatInformation(t^e.FORMAT_INFO_MASK_QR,r^e.FORMAT_INFO_MASK_QR)},e.doDecodeFormatInformation=function(t,r){var n,i,o=Number.MAX_SAFE_INTEGER,s=0;try{for(var u=a(e.FORMAT_INFO_DECODE_LOOKUP),c=u.next();!c.done;c=u.next()){var f=c.value,l=f[0];if(l===t||l===r)return new e(f[1]);var d=e.numBitsDiffering(t,l);d<o&&(s=f[1],o=d),t!==r&&(d=e.numBitsDiffering(r,l),d<o&&(s=f[1],o=d))}}catch(h){n={error:h}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}return o<=3?new e(s):null},e.prototype.getErrorCorrectionLevel=function(){return this.errorCorrectionLevel},e.prototype.getDataMask=function(){return this.dataMask},e.prototype.hashCode=function(){return this.errorCorrectionLevel.getBits()<<3|this.dataMask},e.prototype.equals=function(t){if(!(t instanceof e))return!1;var r=t;return this.errorCorrectionLevel===r.errorCorrectionLevel&&this.dataMask===r.dataMask},e.FORMAT_INFO_MASK_QR=21522,e.FORMAT_INFO_DECODE_LOOKUP=[Int32Array.from([21522,0]),Int32Array.from([20773,1]),Int32Array.from([24188,2]),Int32Array.from([23371,3]),Int32Array.from([17913,4]),Int32Array.from([16590,5]),Int32Array.from([20375,6]),Int32Array.from([19104,7]),Int32Array.from([30660,8]),Int32Array.from([29427,9]),Int32Array.from([32170,10]),Int32Array.from([30877,11]),Int32Array.from([26159,12]),Int32Array.from([25368,13]),Int32Array.from([27713,14]),Int32Array.from([26998,15]),Int32Array.from([5769,16]),Int32Array.from([5054,17]),Int32Array.from([7399,18]),Int32Array.from([6608,19]),Int32Array.from([1890,20]),Int32Array.from([597,21]),Int32Array.from([3340,22]),Int32Array.from([2107,23]),Int32Array.from([13663,24]),Int32Array.from([12392,25]),Int32Array.from([16177,26]),Int32Array.from([14854,27]),Int32Array.from([9396,28]),Int32Array.from([8579,29]),Int32Array.from([11994,30]),Int32Array.from([11245,31])],e}(),u=s;t.default=u},"3b7d":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Point=void 0;var i=n(r("a8be")),o=n(r("836d")),a=n(r("c769")),s=n(r("dfe7")),u=n(r("f5e6")),c=n(r("ade5")),f=n(r("f228")),l=n(r("d9cd")),d=n(r("e5d0")),h=function(){function e(e,t){this.x=e,this.y=t}return e.prototype.toResultPoint=function(){return new i.default(this.getX(),this.getY())},e.prototype.getX=function(){return this.x},e.prototype.getY=function(){return this.y},e}();t.Point=h;var p=function(){function e(e){this.EXPECTED_CORNER_BITS=new Int32Array([3808,476,2107,1799]),this.image=e}return e.prototype.detect=function(){return this.detectMirror(!1)},e.prototype.detectMirror=function(e){var t=this.getMatrixCenter(),r=this.getBullsEyeCorners(t);if(e){var n=r[0];r[0]=r[2],r[2]=n}this.extractParameters(r);var i=this.sampleGrid(this.image,r[this.shift%4],r[(this.shift+1)%4],r[(this.shift+2)%4],r[(this.shift+3)%4]),a=this.getMatrixCornerPoints(r);return new o.default(i,a,this.compact,this.nbDataBlocks,this.nbLayers)},e.prototype.extractParameters=function(e){if(!this.isValidPoint(e[0])||!this.isValidPoint(e[1])||!this.isValidPoint(e[2])||!this.isValidPoint(e[3]))throw new f.default;var t=2*this.nbCenterLayers,r=new Int32Array([this.sampleLine(e[0],e[1],t),this.sampleLine(e[1],e[2],t),this.sampleLine(e[2],e[3],t),this.sampleLine(e[3],e[0],t)]);this.shift=this.getRotation(r,t);for(var n=0,i=0;i<4;i++){var o=r[(this.shift+i)%4];this.compact?(n<<=7,n+=o>>1&127):(n<<=10,n+=(o>>2&992)+(o>>1&31))}var a=this.getCorrectedParameterData(n,this.compact);this.compact?(this.nbLayers=1+(a>>6),this.nbDataBlocks=1+(63&a)):(this.nbLayers=1+(a>>11),this.nbDataBlocks=1+(2047&a))},e.prototype.getRotation=function(e,t){var r=0;e.forEach((function(e,n,i){var o=(e>>t-2<<1)+(1&e);r=(r<<3)+o})),r=((1&r)<<11)+(r>>1);for(var n=0;n<4;n++)if(d.default.bitCount(r^this.EXPECTED_CORNER_BITS[n])<=2)return n;throw new f.default},e.prototype.getCorrectedParameterData=function(e,t){var r,n;t?(r=7,n=2):(r=10,n=4);for(var i=r-n,o=new Int32Array(r),a=r-1;a>=0;--a)o[a]=15&e,e>>=4;try{var s=new c.default(u.default.AZTEC_PARAM);s.decode(o,i)}catch(d){throw new f.default}var l=0;for(a=0;a<n;a++)l=(l<<4)+o[a];return l},e.prototype.getBullsEyeCorners=function(e){var t=e,r=e,n=e,o=e,a=!0;for(this.nbCenterLayers=1;this.nbCenterLayers<9;this.nbCenterLayers++){var s=this.getFirstDifferent(t,a,1,-1),u=this.getFirstDifferent(r,a,1,1),c=this.getFirstDifferent(n,a,-1,1),l=this.getFirstDifferent(o,a,-1,-1);if(this.nbCenterLayers>2){var d=this.distancePoint(l,s)*this.nbCenterLayers/(this.distancePoint(o,t)*(this.nbCenterLayers+2));if(d<.75||d>1.25||!this.isWhiteOrBlackRectangle(s,u,c,l))break}t=s,r=u,n=c,o=l,a=!a}if(5!==this.nbCenterLayers&&7!==this.nbCenterLayers)throw new f.default;this.compact=5===this.nbCenterLayers;var h=new i.default(t.getX()+.5,t.getY()-.5),p=new i.default(r.getX()+.5,r.getY()+.5),g=new i.default(n.getX()-.5,n.getY()+.5),y=new i.default(o.getX()-.5,o.getY()-.5);return this.expandSquare([h,p,g,y],2*this.nbCenterLayers-3,2*this.nbCenterLayers)},e.prototype.getMatrixCenter=function(){var e,t,r,n;try{var i=new s.default(this.image).detect();e=i[0],t=i[1],r=i[2],n=i[3]}catch(l){var o=this.image.getWidth()/2,u=this.image.getHeight()/2;e=this.getFirstDifferent(new h(o+7,u-7),!1,1,-1).toResultPoint(),t=this.getFirstDifferent(new h(o+7,u+7),!1,1,1).toResultPoint(),r=this.getFirstDifferent(new h(o-7,u+7),!1,-1,1).toResultPoint(),n=this.getFirstDifferent(new h(o-7,u-7),!1,-1,-1).toResultPoint()}var c=a.default.round((e.getX()+n.getX()+t.getX()+r.getX())/4),f=a.default.round((e.getY()+n.getY()+t.getY()+r.getY())/4);try{i=new s.default(this.image,15,c,f).detect();e=i[0],t=i[1],r=i[2],n=i[3]}catch(l){e=this.getFirstDifferent(new h(c+7,f-7),!1,1,-1).toResultPoint(),t=this.getFirstDifferent(new h(c+7,f+7),!1,1,1).toResultPoint(),r=this.getFirstDifferent(new h(c-7,f+7),!1,-1,1).toResultPoint(),n=this.getFirstDifferent(new h(c-7,f-7),!1,-1,-1).toResultPoint()}return c=a.default.round((e.getX()+n.getX()+t.getX()+r.getX())/4),f=a.default.round((e.getY()+n.getY()+t.getY()+r.getY())/4),new h(c,f)},e.prototype.getMatrixCornerPoints=function(e){return this.expandSquare(e,2*this.nbCenterLayers,this.getDimension())},e.prototype.sampleGrid=function(e,t,r,n,i){var o=l.default.getInstance(),a=this.getDimension(),s=a/2-this.nbCenterLayers,u=a/2+this.nbCenterLayers;return o.sampleGrid(e,a,a,s,s,u,s,u,u,s,u,t.getX(),t.getY(),r.getX(),r.getY(),n.getX(),n.getY(),i.getX(),i.getY())},e.prototype.sampleLine=function(e,t,r){for(var n=0,i=this.distanceResultPoint(e,t),o=i/r,s=e.getX(),u=e.getY(),c=o*(t.getX()-e.getX())/i,f=o*(t.getY()-e.getY())/i,l=0;l<r;l++)this.image.get(a.default.round(s+l*c),a.default.round(u+l*f))&&(n|=1<<r-l-1);return n},e.prototype.isWhiteOrBlackRectangle=function(e,t,r,n){e=new h(e.getX()-3,e.getY()+3),t=new h(t.getX()-3,t.getY()-3),r=new h(r.getX()+3,r.getY()-3),n=new h(n.getX()+3,n.getY()+3);var i=this.getColor(n,e);if(0===i)return!1;var o=this.getColor(e,t);return o===i&&(o=this.getColor(t,r),o===i&&(o=this.getColor(r,n),o===i))},e.prototype.getColor=function(e,t){for(var r=this.distancePoint(e,t),n=(t.getX()-e.getX())/r,i=(t.getY()-e.getY())/r,o=0,s=e.getX(),u=e.getY(),c=this.image.get(e.getX(),e.getY()),f=Math.ceil(r),l=0;l<f;l++)s+=n,u+=i,this.image.get(a.default.round(s),a.default.round(u))!==c&&o++;var d=o/r;return d>.1&&d<.9?0:d<=.1===c?1:-1},e.prototype.getFirstDifferent=function(e,t,r,n){var i=e.getX()+r,o=e.getY()+n;while(this.isValid(i,o)&&this.image.get(i,o)===t)i+=r,o+=n;i-=r,o-=n;while(this.isValid(i,o)&&this.image.get(i,o)===t)i+=r;i-=r;while(this.isValid(i,o)&&this.image.get(i,o)===t)o+=n;return o-=n,new h(i,o)},e.prototype.expandSquare=function(e,t,r){var n=r/(2*t),o=e[0].getX()-e[2].getX(),a=e[0].getY()-e[2].getY(),s=(e[0].getX()+e[2].getX())/2,u=(e[0].getY()+e[2].getY())/2,c=new i.default(s+n*o,u+n*a),f=new i.default(s-n*o,u-n*a);o=e[1].getX()-e[3].getX(),a=e[1].getY()-e[3].getY(),s=(e[1].getX()+e[3].getX())/2,u=(e[1].getY()+e[3].getY())/2;var l=new i.default(s+n*o,u+n*a),d=new i.default(s-n*o,u-n*a),h=[c,l,f,d];return h},e.prototype.isValid=function(e,t){return e>=0&&e<this.image.getWidth()&&t>0&&t<this.image.getHeight()},e.prototype.isValidPoint=function(e){var t=a.default.round(e.getX()),r=a.default.round(e.getY());return this.isValid(t,r)},e.prototype.distancePoint=function(e,t){return a.default.distance(e.getX(),e.getY(),t.getX(),t.getY())},e.prototype.distanceResultPoint=function(e,t){return a.default.distance(e.getX(),e.getY(),t.getX(),t.getY())},e.prototype.getDimension=function(){return this.compact?4*this.nbLayers+11:this.nbLayers<=4?4*this.nbLayers+15:4*this.nbLayers+2*(d.default.truncDivision(this.nbLayers-4,8)+1)+15},e}(),g=p;t.default=g},"3be8":function(e,t,r){e.exports=r("7a32")},"3c1b":function(e,t,r){(function(e){var n=r("ddfc"),i=r("e158"),o=r("66dc");var a={binary:!0,hex:!0,base64:!0};t.DiffieHellmanGroup=t.createDiffieHellmanGroup=t.getDiffieHellman=function(t){var r=new e(i[t].prime,"hex"),n=new e(i[t].gen,"hex");return new o(r,n)},t.createDiffieHellman=t.DiffieHellman=function t(r,i,s,u){return e.isBuffer(i)||void 0===a[i]?t(r,"binary",i,s):(i=i||"binary",u=u||"binary",s=s||new e([2]),e.isBuffer(s)||(s=new e(s,u)),"number"===typeof r?new o(n(r,s),s,!0):(e.isBuffer(r)||(r=new e(r,i)),new o(r,s,!0)))}}).call(this,r("12e3").Buffer)},"3cf1":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VideoInputDevice=void 0;var n=function(){function e(e,t,r){this.deviceId=e,this.label=t,this.kind="videoinput",this.groupId=r||void 0}return e.prototype.toJSON=function(){return{kind:this.kind,groupId:this.groupId,deviceId:this.deviceId,label:this.label}},e}();t.VideoInputDevice=n},"3dae":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("c769")),o=n(r("f228")),a=n(r("4d7d")),s=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),u=function(e){var t="function"===typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},c=function(e){function t(){var t=e.call(this)||this;return t.decodeFinderCounters=new Int32Array(4),t.dataCharacterCounters=new Int32Array(8),t.oddRoundingErrors=new Array(4),t.evenRoundingErrors=new Array(4),t.oddCounts=new Array(t.dataCharacterCounters.length/2),t.evenCounts=new Array(t.dataCharacterCounters.length/2),t}return s(t,e),t.prototype.getDecodeFinderCounters=function(){return this.decodeFinderCounters},t.prototype.getDataCharacterCounters=function(){return this.dataCharacterCounters},t.prototype.getOddRoundingErrors=function(){return this.oddRoundingErrors},t.prototype.getEvenRoundingErrors=function(){return this.evenRoundingErrors},t.prototype.getOddCounts=function(){return this.oddCounts},t.prototype.getEvenCounts=function(){return this.evenCounts},t.prototype.parseFinderValue=function(e,r){for(var n=0;n<r.length;n++)if(a.default.patternMatchVariance(e,r[n],t.MAX_INDIVIDUAL_VARIANCE)<t.MAX_AVG_VARIANCE)return n;throw new o.default},t.count=function(e){return i.default.sum(new Int32Array(e))},t.increment=function(e,t){for(var r=0,n=t[0],i=1;i<e.length;i++)t[i]>n&&(n=t[i],r=i);e[r]++},t.decrement=function(e,t){for(var r=0,n=t[0],i=1;i<e.length;i++)t[i]<n&&(n=t[i],r=i);e[r]--},t.isFinderPattern=function(e){var r,n,i=e[0]+e[1],o=i+e[2]+e[3],a=i/o;if(a>=t.MIN_FINDER_PATTERN_RATIO&&a<=t.MAX_FINDER_PATTERN_RATIO){var s=Number.MAX_SAFE_INTEGER,c=Number.MIN_SAFE_INTEGER;try{for(var f=u(e),l=f.next();!l.done;l=f.next()){var d=l.value;d>c&&(c=d),d<s&&(s=d)}}catch(h){r={error:h}}finally{try{l&&!l.done&&(n=f.return)&&n.call(f)}finally{if(r)throw r.error}}return c<10*s}return!1},t.MAX_AVG_VARIANCE=.2,t.MAX_INDIVIDUAL_VARIANCE=.45,t.MIN_FINDER_PATTERN_RATIO=9.5/12,t.MAX_FINDER_PATTERN_RATIO=12.5/14,t}(a.default),f=c;t.default=f},"3e26":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.MinimalEncoder=void 0;var i,o=r("eab1"),a=n(r("3fac")),s=r("9c2f"),u=n(r("e5d0")),c=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),f=function(e){var t="function"===typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},l=function(e,t){var r="function"===typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{while((void 0===t||t-- >0)&&!(n=o.next()).done)a.push(n.value)}catch(s){i={error:s}}finally{try{n&&!n.done&&(r=o["return"])&&r.call(o)}finally{if(i)throw i.error}}return a},d=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(l(arguments[t]));return e};(function(e){e[e["ASCII"]=0]="ASCII",e[e["C40"]=1]="C40",e[e["TEXT"]=2]="TEXT",e[e["X12"]=3]="X12",e[e["EDF"]=4]="EDF",e[e["B256"]=5]="B256"})(i||(i={}));var h=["!",'"',"#","$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","?","@","[","\\","]","^","_"],p=function(){function e(){}return e.isExtendedASCII=function(e,t){return e!==t&&e>=128&&e<=255},e.isInC40Shift1Set=function(e){return e<=31},e.isInC40Shift2Set=function(e,t){var r,n;try{for(var i=f(h),o=i.next();!o.done;o=i.next()){var a=o.value;if(a.charCodeAt(0)===e)return!0}}catch(s){r={error:s}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return e===t},e.isInTextShift1Set=function(e){return this.isInC40Shift1Set(e)},e.isInTextShift2Set=function(e,t){return this.isInC40Shift2Set(e,t)},e.encodeHighLevel=function(e,t,r,n){void 0===t&&(t=null),void 0===r&&(r=-1),void 0===n&&(n=0);var i=0;return e.startsWith(o.MACRO_05_HEADER)&&e.endsWith(o.MACRO_TRAILER)?(i=5,e=e.substring(o.MACRO_05_HEADER.length,e.length-2)):e.startsWith(o.MACRO_06_HEADER)&&e.endsWith(o.MACRO_TRAILER)&&(i=6,e=e.substring(o.MACRO_06_HEADER.length,e.length-2)),decodeURIComponent(escape(String.fromCharCode.apply(String,d(this.encode(e,t,r,n,i)))))},e.encode=function(e,t,r,n,i){return this.encodeMinimally(new v(e,t,r,n,i)).getBytes()},e.addEdge=function(e,t){var r=t.fromPosition+t.characterLength;(null===e[r][t.getEndMode()]||e[r][t.getEndMode()].cachedTotalSize>t.cachedTotalSize)&&(e[r][t.getEndMode()]=t)},e.getNumberOfC40Words=function(t,r,n,i){for(var o=0,s=r;s<t.length();s++){if(t.isECI(s))return i[0]=0,0;var u=t.charAt(s);if(n&&a.default.isNativeC40(u)||!n&&a.default.isNativeText(u))o++;else if(e.isExtendedASCII(u,t.getFNC1Character())){var c=255&u;c>=128&&(n&&a.default.isNativeC40(c-128)||!n&&a.default.isNativeText(c-128))?o+=3:o+=4}else o+=2;if(o%3===0||(o-2)%3===0&&s+1===t.length())return i[0]=s-r+1,Math.ceil(o/3)}return i[0]=0,0},e.addEdges=function(t,r,n,o){var s,u;if(t.isECI(n))this.addEdge(r,new y(t,i.ASCII,n,1,o));else{var c,l=t.charAt(n);if(null===o||o.getEndMode()!==i.EDF){a.default.isDigit(l)&&t.haveNCharacters(n,2)&&a.default.isDigit(t.charAt(n+1))?this.addEdge(r,new y(t,i.ASCII,n,2,o)):this.addEdge(r,new y(t,i.ASCII,n,1,o));var d=[i.C40,i.TEXT];try{for(var h=f(d),p=h.next();!p.done;p=h.next()){var g=p.value,v=[];e.getNumberOfC40Words(t,n,g===i.C40,v)>0&&this.addEdge(r,new y(t,g,n,v[0],o))}}catch(m){s={error:m}}finally{try{p&&!p.done&&(u=h.return)&&u.call(h)}finally{if(s)throw s.error}}t.haveNCharacters(n,3)&&a.default.isNativeX12(t.charAt(n))&&a.default.isNativeX12(t.charAt(n+1))&&a.default.isNativeX12(t.charAt(n+2))&&this.addEdge(r,new y(t,i.X12,n,3,o)),this.addEdge(r,new y(t,i.B256,n,1,o))}for(c=0;c<3;c++){var b=n+c;if(!t.haveNCharacters(b,1)||!a.default.isNativeEDIFACT(t.charAt(b)))break;this.addEdge(r,new y(t,i.EDF,n,c+1,o))}3===c&&t.haveNCharacters(n,4)&&a.default.isNativeEDIFACT(t.charAt(n+3))&&this.addEdge(r,new y(t,i.EDF,n,4,o))}},e.encodeMinimally=function(e){var t=e.length(),r=Array(t+1).fill(null).map((function(){return Array(6).fill(0)}));this.addEdges(e,r,0,null);for(var n=1;n<=t;n++){for(var i=0;i<6;i++)null!==r[n][i]&&n<t&&this.addEdges(e,r,n,r[n][i]);for(i=0;i<6;i++)r[n-1][i]=null}var o=-1,a=u.default.MAX_VALUE;for(i=0;i<6;i++)if(null!==r[t][i]){var s=r[t][i],c=i>=1&&i<=3?s.cachedTotalSize+1:s.cachedTotalSize;c<a&&(a=c,o=i)}if(o<0)throw new Error('Failed to encode "'+e+'"');return new g(r[t][o])},e}();t.MinimalEncoder=p;var g=function(){function e(e){var t=e.input,r=0,n=[],o=[],a=[];e.mode!==i.C40&&e.mode!==i.TEXT&&e.mode!==i.X12||e.getEndMode()===i.ASCII||(r+=this.prepend(y.getBytes(254),n));var s=e;while(null!==s)r+=this.prepend(s.getDataBytes(),n),null!==s.previous&&s.getPreviousStartMode()===s.getMode()||(s.getMode()===i.B256&&(r<=249?(n.unshift(r),r++):(n.unshift(r%250),n.unshift(r/250+249),r+=2),o.push(n.length),a.push(r)),this.prepend(s.getLatchBytes(),n),r=0),s=s.previous;5===t.getMacroId()?r+=this.prepend(y.getBytes(236),n):6===t.getMacroId()&&(r+=this.prepend(y.getBytes(237),n)),t.getFNC1Character()>0&&(r+=this.prepend(y.getBytes(232),n));for(var u=0;u<o.length;u++)this.applyRandomPattern(n,n.length-o[u],a[u]);var c=e.getMinSymbolSize(n.length);n.length<c&&n.push(129);while(n.length<c)n.push(this.randomize253State(n.length+1));this.bytes=new Uint8Array(n.length);for(u=0;u<this.bytes.length;u++)this.bytes[u]=n[u]}return e.prototype.prepend=function(e,t){for(var r=e.length-1;r>=0;r--)t.unshift(e[r]);return e.length},e.prototype.randomize253State=function(e){var t=149*e%253+1,r=129+t;return r<=254?r:r-254},e.prototype.applyRandomPattern=function(e,t,r){for(var n=0;n<r;n++){var i=t+n,o=255&e[i],a=149*(i+1)%255+1,s=o+a;e[i]=s<=255?s:s-256}},e.prototype.getBytes=function(){return this.bytes},e}(),y=function(){function e(e,t,r,n,o){if(this.input=e,this.mode=t,this.fromPosition=r,this.characterLength=n,this.previous=o,this.allCodewordCapacities=[3,5,8,10,12,16,18,22,30,32,36,44,49,62,86,114,144,174,204,280,368,456,576,696,816,1050,1304,1558],this.squareCodewordCapacities=[3,5,8,12,18,22,30,36,44,62,86,114,144,174,204,280,368,456,576,696,816,1050,1304,1558],this.rectangularCodewordCapacities=[5,10,16,33,32,49],!(r+n<=e.length()))throw new Error("Invalid edge");var a=null!==o?o.cachedTotalSize:0,s=this.getPreviousMode();switch(t){case i.ASCII:a++,(e.isECI(r)||p.isExtendedASCII(e.charAt(r),e.getFNC1Character()))&&a++,s!==i.C40&&s!==i.TEXT&&s!==i.X12||a++;break;case i.B256:a++,(s!==i.B256||250===this.getB256Size())&&a++,s===i.ASCII?a++:s!==i.C40&&s!==i.TEXT&&s!==i.X12||(a+=2);break;case i.C40:case i.TEXT:case i.X12:if(t===i.X12)a+=2;else{a+=2*p.getNumberOfC40Words(e,r,t===i.C40,[])}s===i.ASCII||s===i.B256?a++:s===t||s!==i.C40&&s!==i.TEXT&&s!==i.X12||(a+=2);break;case i.EDF:a+=3,s===i.ASCII||s===i.B256?a++:s!==i.C40&&s!==i.TEXT&&s!==i.X12||(a+=2);break}this.cachedTotalSize=a}return e.prototype.getB256Size=function(){var e=0,t=this;while(null!==t&&t.mode===i.B256&&e<=250)e++,t=t.previous;return e},e.prototype.getPreviousStartMode=function(){return null===this.previous?i.ASCII:this.previous.mode},e.prototype.getPreviousMode=function(){return null===this.previous?i.ASCII:this.previous.getEndMode()},e.prototype.getEndMode=function(){if(this.mode===i.EDF){if(this.characterLength<4)return i.ASCII;var e=this.getLastASCII();if(e>0&&this.getCodewordsRemaining(this.cachedTotalSize+e)<=2-e)return i.ASCII}if(this.mode===i.C40||this.mode===i.TEXT||this.mode===i.X12){if(this.fromPosition+this.characterLength>=this.input.length()&&0===this.getCodewordsRemaining(this.cachedTotalSize))return i.ASCII;e=this.getLastASCII();if(1===e&&0===this.getCodewordsRemaining(this.cachedTotalSize+1))return i.ASCII}return this.mode},e.prototype.getMode=function(){return this.mode},e.prototype.getLastASCII=function(){var e=this.input.length(),t=this.fromPosition+this.characterLength;return e-t>4||t>=e?0:e-t===1?p.isExtendedASCII(this.input.charAt(t),this.input.getFNC1Character())?0:1:e-t===2?p.isExtendedASCII(this.input.charAt(t),this.input.getFNC1Character())||p.isExtendedASCII(this.input.charAt(t+1),this.input.getFNC1Character())?0:a.default.isDigit(this.input.charAt(t))&&a.default.isDigit(this.input.charAt(t+1))?1:2:e-t===3?a.default.isDigit(this.input.charAt(t))&&a.default.isDigit(this.input.charAt(t+1))&&!p.isExtendedASCII(this.input.charAt(t+2),this.input.getFNC1Character())||a.default.isDigit(this.input.charAt(t+1))&&a.default.isDigit(this.input.charAt(t+2))&&!p.isExtendedASCII(this.input.charAt(t),this.input.getFNC1Character())?2:0:a.default.isDigit(this.input.charAt(t))&&a.default.isDigit(this.input.charAt(t+1))&&a.default.isDigit(this.input.charAt(t+2))&&a.default.isDigit(this.input.charAt(t+3))?2:0},e.prototype.getMinSymbolSize=function(e){var t,r,n,i,o,a;switch(this.input.getShapeHint()){case 1:try{for(var s=f(this.squareCodewordCapacities),u=s.next();!u.done;u=s.next()){var c=u.value;if(c>=e)return c}}catch(g){t={error:g}}finally{try{u&&!u.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}break;case 2:try{for(var l=f(this.rectangularCodewordCapacities),d=l.next();!d.done;d=l.next()){c=d.value;if(c>=e)return c}}catch(y){n={error:y}}finally{try{d&&!d.done&&(i=l.return)&&i.call(l)}finally{if(n)throw n.error}}break}try{for(var h=f(this.allCodewordCapacities),p=h.next();!p.done;p=h.next()){c=p.value;if(c>=e)return c}}catch(v){o={error:v}}finally{try{p&&!p.done&&(a=h.return)&&a.call(h)}finally{if(o)throw o.error}}return this.allCodewordCapacities[this.allCodewordCapacities.length-1]},e.prototype.getCodewordsRemaining=function(e){return this.getMinSymbolSize(e)-e},e.getBytes=function(e,t){var r=new Uint8Array(t?2:1);return r[0]=e,t&&(r[1]=t),r},e.prototype.setC40Word=function(e,t,r,n,i){var o=1600*(255&r)+40*(255&n)+(255&i)+1;e[t]=o/256,e[t+1]=o%256},e.prototype.getX12Value=function(e){return 13===e?0:42===e?1:62===e?2:32===e?3:e>=48&&e<=57?e-44:e>=65&&e<=90?e-51:e},e.prototype.getX12Words=function(){if(this.characterLength%3!==0)throw new Error("X12 words must be a multiple of 3");for(var e=new Uint8Array(this.characterLength/3*2),t=0;t<e.length;t+=2)this.setC40Word(e,t,this.getX12Value(this.input.charAt(this.fromPosition+t/2*3)),this.getX12Value(this.input.charAt(this.fromPosition+t/2*3+1)),this.getX12Value(this.input.charAt(this.fromPosition+t/2*3+2)));return e},e.prototype.getShiftValue=function(e,t,r){return t&&p.isInC40Shift1Set(e)||!t&&p.isInTextShift1Set(e)?0:t&&p.isInC40Shift2Set(e,r)||!t&&p.isInTextShift2Set(e,r)?1:2},e.prototype.getC40Value=function(e,t,r,n){if(r===n){if(2!==t)throw new Error("FNC1 cannot be used in C40 shift 2");return 27}return e?r<=31?r:32===r?3:r<=47?r-33:r<=57?r-44:r<=64?r-43:r<=90?r-51:r<=95?r-69:r<=127?r-96:r:0===r?0:0===t&&r<=3?r-1:1===t&&r<=31?r:32===r?3:r>=33&&r<=47?r-33:r>=48&&r<=57?r-44:r>=58&&r<=64?r-43:r>=65&&r<=90?r-64:r>=91&&r<=95?r-69:96===r?0:r>=97&&r<=122?r-83:r>=123&&r<=127?r-96:r},e.prototype.getC40Words=function(e,t){for(var r=[],n=0;n<this.characterLength;n++){var i=this.input.charAt(this.fromPosition+n);if(e&&a.default.isNativeC40(i)||!e&&a.default.isNativeText(i))r.push(this.getC40Value(e,0,i,t));else if(p.isExtendedASCII(i,t)){var o=(255&i)-128;if(e&&a.default.isNativeC40(o)||!e&&a.default.isNativeText(o))r.push(1),r.push(30),r.push(this.getC40Value(e,0,o,t));else{r.push(1),r.push(30);s=this.getShiftValue(o,e,t);r.push(s),r.push(this.getC40Value(e,s,o,t))}}else{var s=this.getShiftValue(i,e,t);r.push(s),r.push(this.getC40Value(e,s,i,t))}}if(r.length%3!==0){if((r.length-2)%3!==0||this.fromPosition+this.characterLength!==this.input.length())throw new Error("C40 words must be a multiple of 3");r.push(0)}var u=new Uint8Array(r.length/3*2),c=0;for(n=0;n<r.length;n+=3)this.setC40Word(u,c,255&r[n],255&r[n+1],255&r[n+2]),c+=2;return u},e.prototype.getEDFBytes=function(){for(var e=Math.ceil(this.characterLength/4),t=new Uint8Array(3*e),r=this.fromPosition,n=Math.min(this.fromPosition+this.characterLength-1,this.input.length()-1),i=0;i<e;i+=3){for(var o=[],a=0;a<4;a++)o[a]=r<=n?63&this.input.charAt(r++):r===n+1?31:0;var s=o[0]<<18;s|=o[1]<<12,s|=o[2]<<6,s|=o[3],t[i]=s>>16&255,t[i+1]=s>>8&255,t[i+2]=255&s}return t},e.prototype.getLatchBytes=function(){switch(this.getPreviousMode()){case i.ASCII:case i.B256:switch(this.mode){case i.B256:return e.getBytes(231);case i.C40:return e.getBytes(230);case i.TEXT:return e.getBytes(239);case i.X12:return e.getBytes(238);case i.EDF:return e.getBytes(240)}break;case i.C40:case i.TEXT:case i.X12:if(this.mode!==this.getPreviousMode())switch(this.mode){case i.ASCII:return e.getBytes(254);case i.B256:return e.getBytes(254,231);case i.C40:return e.getBytes(254,230);case i.TEXT:return e.getBytes(254,239);case i.X12:return e.getBytes(254,238);case i.EDF:return e.getBytes(254,240)}break;case i.EDF:if(this.mode!==i.EDF)throw new Error("Cannot switch from EDF to "+this.mode);break}return new Uint8Array(0)},e.prototype.getDataBytes=function(){switch(this.mode){case i.ASCII:return this.input.isECI(this.fromPosition)?e.getBytes(241,this.input.getECIValue(this.fromPosition)+1):p.isExtendedASCII(this.input.charAt(this.fromPosition),this.input.getFNC1Character())?e.getBytes(235,this.input.charAt(this.fromPosition)-127):2===this.characterLength?e.getBytes(10*this.input.charAt(this.fromPosition)+this.input.charAt(this.fromPosition+1)+130):this.input.isFNC1(this.fromPosition)?e.getBytes(232):e.getBytes(this.input.charAt(this.fromPosition)+1);case i.B256:return e.getBytes(this.input.charAt(this.fromPosition));case i.C40:return this.getC40Words(!0,this.input.getFNC1Character());case i.TEXT:return this.getC40Words(!1,this.input.getFNC1Character());case i.X12:return this.getX12Words();case i.EDF:return this.getEDFBytes()}},e}(),v=function(e){function t(t,r,n,i,o){var a=e.call(this,t,r,n)||this;return a.shape=i,a.macroId=o,a}return c(t,e),t.prototype.getMacroId=function(){return this.macroId},t.prototype.getShapeHint=function(){return this.shape},t}(s.MinimalECIInput)},"3f6d":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(){function e(e){this.mirrored=e}return e.prototype.isMirrored=function(){return this.mirrored},e.prototype.applyMirroredCorrection=function(e){if(this.mirrored&&null!==e&&!(e.length<3)){var t=e[0];e[0]=e[2],e[2]=t}},e}(),i=n;t.default=i},"3fa8":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("7322")),o=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.kind="ArgumentException",t}(i.default),s=a;t.default=s},"3fac":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r("2570"),o=r("bcd6"),a=r("f2b5"),s=r("eab1"),u=r("e120"),c=r("a370"),f=r("a455"),l=r("976e"),d=n(r("36d3")),h=n(r("e5d0")),p=function(){function e(){}return e.randomize253State=function(e){var t=149*e%253+1,r=s.PAD+t;return r<=254?r:r-254},e.encodeHighLevel=function(e,t,r,n,d){void 0===t&&(t=0),void 0===r&&(r=null),void 0===n&&(n=null),void 0===d&&(d=!1);var h=new a.C40Encoder,p=[new i.ASCIIEncoder,h,new l.TextEncoder,new f.X12Encoder,new u.EdifactEncoder,new o.Base256Encoder],g=new c.EncoderContext(e);g.setSymbolShape(t),g.setSizeConstraints(r,n),e.startsWith(s.MACRO_05_HEADER)&&e.endsWith(s.MACRO_TRAILER)?(g.writeCodeword(s.MACRO_05),g.setSkipAtEnd(2),g.pos+=s.MACRO_05_HEADER.length):e.startsWith(s.MACRO_06_HEADER)&&e.endsWith(s.MACRO_TRAILER)&&(g.writeCodeword(s.MACRO_06),g.setSkipAtEnd(2),g.pos+=s.MACRO_06_HEADER.length);var y=s.ASCII_ENCODATION;d&&(h.encodeMaximal(g),y=g.getNewEncoding(),g.resetEncoderSignal());while(g.hasMoreCharacters())p[y].encode(g),g.getNewEncoding()>=0&&(y=g.getNewEncoding(),g.resetEncoderSignal());var v=g.getCodewordCount();g.updateSymbolInfo();var b=g.getSymbolInfo().getDataCapacity();v<b&&y!==s.ASCII_ENCODATION&&y!==s.BASE256_ENCODATION&&y!==s.EDIFACT_ENCODATION&&g.writeCodeword("þ");var m=g.getCodewords();m.length()<b&&m.append(s.PAD);while(m.length()<b)m.append(this.randomize253State(m.length()+1));return g.getCodewords().toString()},e.lookAheadTest=function(e,t,r){var n=this.lookAheadTestIntern(e,t,r);if(r===s.X12_ENCODATION&&n===s.X12_ENCODATION){for(var i=Math.min(t+3,e.length),o=t;o<i;o++)if(!this.isNativeX12(e.charCodeAt(o)))return s.ASCII_ENCODATION}else if(r===s.EDIFACT_ENCODATION&&n===s.EDIFACT_ENCODATION)for(i=Math.min(t+4,e.length),o=t;o<i;o++)if(!this.isNativeEDIFACT(e.charCodeAt(o)))return s.ASCII_ENCODATION;return n},e.lookAheadTestIntern=function(e,t,r){if(t>=e.length)return r;var n;r===s.ASCII_ENCODATION?n=[0,1,1,1,1,1.25]:(n=[1,2,2,2,2,2.25],n[r]=0);var i=0,o=new Uint8Array(6),a=[];while(1){if(t+i===e.length){d.default.fill(o,0),d.default.fill(a,0);var u=this.findMinimums(n,a,h.default.MAX_VALUE,o),c=this.getMinimumCount(o);if(a[s.ASCII_ENCODATION]===u)return s.ASCII_ENCODATION;if(1===c){if(o[s.BASE256_ENCODATION]>0)return s.BASE256_ENCODATION;if(o[s.EDIFACT_ENCODATION]>0)return s.EDIFACT_ENCODATION;if(o[s.TEXT_ENCODATION]>0)return s.TEXT_ENCODATION;if(o[s.X12_ENCODATION]>0)return s.X12_ENCODATION}return s.C40_ENCODATION}var f=e.charCodeAt(t+i);if(i++,this.isDigit(f)?n[s.ASCII_ENCODATION]+=.5:this.isExtendedASCII(f)?(n[s.ASCII_ENCODATION]=Math.ceil(n[s.ASCII_ENCODATION]),n[s.ASCII_ENCODATION]+=2):(n[s.ASCII_ENCODATION]=Math.ceil(n[s.ASCII_ENCODATION]),n[s.ASCII_ENCODATION]++),this.isNativeC40(f)?n[s.C40_ENCODATION]+=2/3:this.isExtendedASCII(f)?n[s.C40_ENCODATION]+=8/3:n[s.C40_ENCODATION]+=4/3,this.isNativeText(f)?n[s.TEXT_ENCODATION]+=2/3:this.isExtendedASCII(f)?n[s.TEXT_ENCODATION]+=8/3:n[s.TEXT_ENCODATION]+=4/3,this.isNativeX12(f)?n[s.X12_ENCODATION]+=2/3:this.isExtendedASCII(f)?n[s.X12_ENCODATION]+=13/3:n[s.X12_ENCODATION]+=10/3,this.isNativeEDIFACT(f)?n[s.EDIFACT_ENCODATION]+=3/4:this.isExtendedASCII(f)?n[s.EDIFACT_ENCODATION]+=4.25:n[s.EDIFACT_ENCODATION]+=3.25,this.isSpecialB256(f)?n[s.BASE256_ENCODATION]+=4:n[s.BASE256_ENCODATION]++,i>=4){if(d.default.fill(o,0),d.default.fill(a,0),this.findMinimums(n,a,h.default.MAX_VALUE,o),a[s.ASCII_ENCODATION]<this.min(a[s.BASE256_ENCODATION],a[s.C40_ENCODATION],a[s.TEXT_ENCODATION],a[s.X12_ENCODATION],a[s.EDIFACT_ENCODATION]))return s.ASCII_ENCODATION;if(a[s.BASE256_ENCODATION]<a[s.ASCII_ENCODATION]||a[s.BASE256_ENCODATION]+1<this.min(a[s.C40_ENCODATION],a[s.TEXT_ENCODATION],a[s.X12_ENCODATION],a[s.EDIFACT_ENCODATION]))return s.BASE256_ENCODATION;if(a[s.EDIFACT_ENCODATION]+1<this.min(a[s.BASE256_ENCODATION],a[s.C40_ENCODATION],a[s.TEXT_ENCODATION],a[s.X12_ENCODATION],a[s.ASCII_ENCODATION]))return s.EDIFACT_ENCODATION;if(a[s.TEXT_ENCODATION]+1<this.min(a[s.BASE256_ENCODATION],a[s.C40_ENCODATION],a[s.EDIFACT_ENCODATION],a[s.X12_ENCODATION],a[s.ASCII_ENCODATION]))return s.TEXT_ENCODATION;if(a[s.X12_ENCODATION]+1<this.min(a[s.BASE256_ENCODATION],a[s.C40_ENCODATION],a[s.EDIFACT_ENCODATION],a[s.TEXT_ENCODATION],a[s.ASCII_ENCODATION]))return s.X12_ENCODATION;if(a[s.C40_ENCODATION]+1<this.min(a[s.ASCII_ENCODATION],a[s.BASE256_ENCODATION],a[s.EDIFACT_ENCODATION],a[s.TEXT_ENCODATION])){if(a[s.C40_ENCODATION]<a[s.X12_ENCODATION])return s.C40_ENCODATION;if(a[s.C40_ENCODATION]===a[s.X12_ENCODATION]){var l=t+i+1;while(l<e.length){var p=e.charCodeAt(l);if(this.isX12TermSep(p))return s.X12_ENCODATION;if(!this.isNativeX12(p))break;l++}return s.C40_ENCODATION}}}}},e.min=function(e,t,r,n,i){var o=Math.min(e,Math.min(t,Math.min(r,n)));return void 0===i?o:Math.min(o,i)},e.findMinimums=function(e,t,r,n){for(var i=0;i<6;i++){var o=t[i]=Math.ceil(e[i]);r>o&&(r=o,d.default.fill(n,0)),r===o&&(n[i]=n[i]+1)}return r},e.getMinimumCount=function(e){for(var t=0,r=0;r<6;r++)t+=e[r];return t||0},e.isDigit=function(e){return e>="0".charCodeAt(0)&&e<="9".charCodeAt(0)},e.isExtendedASCII=function(e){return e>=128&&e<=255},e.isNativeC40=function(e){return e===" ".charCodeAt(0)||e>="0".charCodeAt(0)&&e<="9".charCodeAt(0)||e>="A".charCodeAt(0)&&e<="Z".charCodeAt(0)},e.isNativeText=function(e){return e===" ".charCodeAt(0)||e>="0".charCodeAt(0)&&e<="9".charCodeAt(0)||e>="a".charCodeAt(0)&&e<="z".charCodeAt(0)},e.isNativeX12=function(e){return this.isX12TermSep(e)||e===" ".charCodeAt(0)||e>="0".charCodeAt(0)&&e<="9".charCodeAt(0)||e>="A".charCodeAt(0)&&e<="Z".charCodeAt(0)},e.isX12TermSep=function(e){return 13===e||e==="*".charCodeAt(0)||e===">".charCodeAt(0)},e.isNativeEDIFACT=function(e){return e>=" ".charCodeAt(0)&&e<="^".charCodeAt(0)},e.isSpecialB256=function(e){return!1},e.determineConsecutiveDigitCount=function(e,t){void 0===t&&(t=0);var r=e.length,n=t;while(n<r&&this.isDigit(e.charCodeAt(n)))n++;return n-t},e.illegalCharacter=function(e){var t=h.default.toHexString(e.charCodeAt(0));throw t="0000".substring(0,4-t.length)+t,new Error("Illegal character: "+e+" (0x"+t+")")},e}(),g=p;t.default=g},4037:function(e){e.exports=JSON.parse('{"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}')},"40fe":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("5a0c")),o=n(r("a608")),a=function(e){var t="function"===typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},s=function(){function e(e,t){this.ADJUST_ROW_NUMBER_SKIP=2,this.barcodeMetadata=e,this.barcodeColumnCount=e.getColumnCount(),this.boundingBox=t,this.detectionResultColumns=new Array(this.barcodeColumnCount+2)}return e.prototype.getDetectionResultColumns=function(){this.adjustIndicatorColumnRowNumbers(this.detectionResultColumns[0]),this.adjustIndicatorColumnRowNumbers(this.detectionResultColumns[this.barcodeColumnCount+1]);var e,t=i.default.MAX_CODEWORDS_IN_BARCODE;do{e=t,t=this.adjustRowNumbersAndGetCount()}while(t>0&&t<e);return this.detectionResultColumns},e.prototype.adjustIndicatorColumnRowNumbers=function(e){null!=e&&e.adjustCompleteIndicatorColumnRowNumbers(this.barcodeMetadata)},e.prototype.adjustRowNumbersAndGetCount=function(){var e=this.adjustRowNumbersByRow();if(0===e)return 0;for(var t=1;t<this.barcodeColumnCount+1;t++)for(var r=this.detectionResultColumns[t].getCodewords(),n=0;n<r.length;n++)null!=r[n]&&(r[n].hasValidRowNumber()||this.adjustRowNumbers(t,n,r));return e},e.prototype.adjustRowNumbersByRow=function(){this.adjustRowNumbersFromBothRI();var e=this.adjustRowNumbersFromLRI();return e+this.adjustRowNumbersFromRRI()},e.prototype.adjustRowNumbersFromBothRI=function(){if(null!=this.detectionResultColumns[0]&&null!=this.detectionResultColumns[this.barcodeColumnCount+1])for(var e=this.detectionResultColumns[0].getCodewords(),t=this.detectionResultColumns[this.barcodeColumnCount+1].getCodewords(),r=0;r<e.length;r++)if(null!=e[r]&&null!=t[r]&&e[r].getRowNumber()===t[r].getRowNumber())for(var n=1;n<=this.barcodeColumnCount;n++){var i=this.detectionResultColumns[n].getCodewords()[r];null!=i&&(i.setRowNumber(e[r].getRowNumber()),i.hasValidRowNumber()||(this.detectionResultColumns[n].getCodewords()[r]=null))}},e.prototype.adjustRowNumbersFromRRI=function(){if(null==this.detectionResultColumns[this.barcodeColumnCount+1])return 0;for(var t=0,r=this.detectionResultColumns[this.barcodeColumnCount+1].getCodewords(),n=0;n<r.length;n++)if(null!=r[n])for(var i=r[n].getRowNumber(),o=0,a=this.barcodeColumnCount+1;a>0&&o<this.ADJUST_ROW_NUMBER_SKIP;a--){var s=this.detectionResultColumns[a].getCodewords()[n];null!=s&&(o=e.adjustRowNumberIfValid(i,o,s),s.hasValidRowNumber()||t++)}return t},e.prototype.adjustRowNumbersFromLRI=function(){if(null==this.detectionResultColumns[0])return 0;for(var t=0,r=this.detectionResultColumns[0].getCodewords(),n=0;n<r.length;n++)if(null!=r[n])for(var i=r[n].getRowNumber(),o=0,a=1;a<this.barcodeColumnCount+1&&o<this.ADJUST_ROW_NUMBER_SKIP;a++){var s=this.detectionResultColumns[a].getCodewords()[n];null!=s&&(o=e.adjustRowNumberIfValid(i,o,s),s.hasValidRowNumber()||t++)}return t},e.adjustRowNumberIfValid=function(e,t,r){return null==r||r.hasValidRowNumber()||(r.isValidRowNumber(e)?(r.setRowNumber(e),t=0):++t),t},e.prototype.adjustRowNumbers=function(t,r,n){var i,o;if(null!=this.detectionResultColumns[t-1]){var s=n[r],u=this.detectionResultColumns[t-1].getCodewords(),c=u;null!=this.detectionResultColumns[t+1]&&(c=this.detectionResultColumns[t+1].getCodewords());var f=new Array(14);f[2]=u[r],f[3]=c[r],r>0&&(f[0]=n[r-1],f[4]=u[r-1],f[5]=c[r-1]),r>1&&(f[8]=n[r-2],f[10]=u[r-2],f[11]=c[r-2]),r<n.length-1&&(f[1]=n[r+1],f[6]=u[r+1],f[7]=c[r+1]),r<n.length-2&&(f[9]=n[r+2],f[12]=u[r+2],f[13]=c[r+2]);try{for(var l=a(f),d=l.next();!d.done;d=l.next()){var h=d.value;if(e.adjustRowNumber(s,h))return}}catch(p){i={error:p}}finally{try{d&&!d.done&&(o=l.return)&&o.call(l)}finally{if(i)throw i.error}}}},e.adjustRowNumber=function(e,t){return null!=t&&(!(!t.hasValidRowNumber()||t.getBucket()!==e.getBucket())&&(e.setRowNumber(t.getRowNumber()),!0))},e.prototype.getBarcodeColumnCount=function(){return this.barcodeColumnCount},e.prototype.getBarcodeRowCount=function(){return this.barcodeMetadata.getRowCount()},e.prototype.getBarcodeECLevel=function(){return this.barcodeMetadata.getErrorCorrectionLevel()},e.prototype.setBoundingBox=function(e){this.boundingBox=e},e.prototype.getBoundingBox=function(){return this.boundingBox},e.prototype.setDetectionResultColumn=function(e,t){this.detectionResultColumns[e]=t},e.prototype.getDetectionResultColumn=function(e){return this.detectionResultColumns[e]},e.prototype.toString=function(){var e=this.detectionResultColumns[0];null==e&&(e=this.detectionResultColumns[this.barcodeColumnCount+1]);for(var t=new o.default,r=0;r<e.getCodewords().length;r++){t.format("CW %3d:",r);for(var n=0;n<this.barcodeColumnCount+2;n++)if(null!=this.detectionResultColumns[n]){var i=this.detectionResultColumns[n].getCodewords()[r];null!=i?t.format(" %3d|%3d",i.getRowNumber(),i.getValue()):t.format(" | ")}else t.format(" | ");t.format("%n")}return t.toString()},e}(),u=s;t.default=u},"42fb":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.tansParams=function(e){for(var t="",r=0,n=Object.keys(e);r<n.length;r++){var o=n[r],a=e[o],s=encodeURIComponent(o)+"=";if(null!==a&&"undefined"!==typeof a)if("object"===(0,i.default)(a))for(var u=0,c=Object.keys(a);u<c.length;u++){var f=c[u];if(null!==a[f]&&"undefined"!==typeof a[f]){var l=o+"["+f+"]",d=encodeURIComponent(l)+"=";t+=d+encodeURIComponent(a[f])+"&"}}else t+=s+encodeURIComponent(a)+"&"}return t};var i=n(r("3b2d"))},4371:function(e,t,r){"use strict";(function(e){var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.scanCode=function(t){e.scanCode({onlyFromCamera:!0,success:function(e){s(t,e.result)},fail:function(t){return e.showToast({mask:!0,icon:"none",position:"center",title:t,duration:2e3}),!1}})},t.scanTheCodeDataTreating=s;var i=n(r("7eb4")),o=n(r("ee10")),a=r("e34d");function s(t,r){if(-1!=r.indexOf("type")){var n=r.split("?")[1].split("&"),i={};n.forEach((function(e){i[e.split("=")[0]]=e.split("=")[1]})),1==i.type||2==i.type||3==i.type||7==i.type||8==i.type||10==i.type||11==i.type||12==i.type||13==i.type||14==i.type?function(t,r){"home"==t?e.reLaunch({url:"/pages/views/saoCode/saoCode?q="+encodeURIComponent(r)}):(e.showToast({mask:!0,icon:"none",position:"center",title:"当前页面无法使用该二维码",duration:2e3}),setTimeout((function(){e.navigateBack()}),2e3))}(t,r):5==i.type?function(e,t,r){u.apply(this,arguments)}(t,i.subId,r):9==i.type&&c(t,i.code)}else c(t,r)}function u(){return u=(0,o.default)(i.default.mark((function t(r,n,o){var s,u,c;return i.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("home"!=r){t.next=8;break}return t.next=3,(0,a.laboratorySubPassOutIsotopeSubSign)({subId:n});case 3:s=t.sent,u=s.data,200==u.code&&(u.data.isotope?(c={subId:n,subName:u.data.subName,passOutId:u.data.passOutId},e.navigateTo({url:"/pages_basics/views/photoInspection?item="+encodeURIComponent(JSON.stringify(c))})):e.reLaunch({url:"/pages/views/saoCode/saoCode?q="+encodeURIComponent(o)})),t.next=10;break;case 8:e.showToast({mask:!0,icon:"none",position:"center",title:"当前页面无法使用该二维码",duration:2e3}),setTimeout((function(){e.navigateBack()}),2e3);case 10:case"end":return t.stop()}}),t)}))),u.apply(this,arguments)}function c(e,t){return f.apply(this,arguments)}function f(){return f=(0,o.default)(i.default.mark((function t(r,n){var o,s;return i.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("home"!=r){t.next=8;break}return t.next=3,(0,a.chemicalAppletSelectStockInfo)({tagCode:n});case 3:o=t.sent,s=o.data,200==s.code&&(s.data?(s.data.code=n,e.navigateTo({url:"/pages_basics/views/chemicalsInfo/chemicalsInfo?item="+encodeURIComponent(JSON.stringify(s.data))})):e.showToast({mask:!0,icon:"none",position:"center",title:"未找到相关信息,请扫描正确的二维码",duration:2e3})),t.next=10;break;case 8:e.showToast({mask:!0,icon:"none",position:"center",title:"当前页面无法使用该二维码",duration:2e3}),setTimeout((function(){e.navigateBack()}),2e3);case 10:case"end":return t.stop()}}),t)}))),f.apply(this,arguments)}}).call(this,r("df3c")["default"])},"438f":function(e,t,r){"use strict";var n=r("d652"),i=r("6120"),o=r("de76"),a=r("d3c2"),s=n.sum32,u=n.sum32_4,c=n.sum32_5,f=o.ch32,l=o.maj32,d=o.s0_256,h=o.s1_256,p=o.g0_256,g=o.g1_256,y=i.BlockHash,v=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function b(){if(!(this instanceof b))return new b;y.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=v,this.W=new Array(64)}n.inherits(b,y),e.exports=b,b.blockSize=512,b.outSize=256,b.hmacStrength=192,b.padLength=64,b.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=u(g(r[n-2]),r[n-7],p(r[n-15]),r[n-16]);var i=this.h[0],o=this.h[1],y=this.h[2],v=this.h[3],b=this.h[4],m=this.h[5],_=this.h[6],w=this.h[7];for(a(this.k.length===r.length),n=0;n<r.length;n++){var A=c(w,h(b),f(b,m,_),this.k[n],r[n]),S=s(d(i),l(i,o,y));w=_,_=m,m=b,b=s(v,A),v=y,y=o,o=i,i=s(A,S)}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],o),this.h[2]=s(this.h[2],y),this.h[3]=s(this.h[3],v),this.h[4]=s(this.h[4],b),this.h[5]=s(this.h[5],m),this.h[6]=s(this.h[6],_),this.h[7]=s(this.h[7],w)},b.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},4411:function(e){e.exports=JSON.parse('{"uni-load-more.contentdown":"上拉显示更多","uni-load-more.contentrefresh":"正在加载...","uni-load-more.contentnomore":"没有更多数据了"}')},"44ce":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("786c")),o=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),a=function(e){function t(t){return e.call(this,t)||this}return o(t,e),t.prototype.addWeightCode=function(e,t){t<1e4?e.append("(3202)"):e.append("(3203)")},t.prototype.checkWeight=function(e){return e<1e4?e:e-1e4},t}(i.default),s=a;t.default=s},"44d8":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.PROD_SYMBOLS=void 0;var n=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),i=function(e){var t="function"===typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},o=function(){function e(e,t,r,n,i,o,a,s){void 0===a&&(a=0),void 0===s&&(s=0),this.rectangular=e,this.dataCapacity=t,this.errorCodewords=r,this.matrixWidth=n,this.matrixHeight=i,this.dataRegions=o,this.rsBlockData=a,this.rsBlockError=s}return e.lookup=function(e,t,r,n,o){var a,s;void 0===t&&(t=0),void 0===r&&(r=null),void 0===n&&(n=null),void 0===o&&(o=!0);try{for(var c=i(u),f=c.next();!f.done;f=c.next()){var l=f.value;if((1!==t||!l.rectangular)&&((2!==t||l.rectangular)&&(null==r||!(l.getSymbolWidth()<r.getWidth()||l.getSymbolHeight()<r.getHeight()))&&(null==n||!(l.getSymbolWidth()>n.getWidth()||l.getSymbolHeight()>n.getHeight()))&&e<=l.dataCapacity))return l}}catch(d){a={error:d}}finally{try{f&&!f.done&&(s=c.return)&&s.call(c)}finally{if(a)throw a.error}}if(o)throw new Error("Can't find a symbol arrangement that matches the message. Data codewords: "+e);return null},e.prototype.getHorizontalDataRegions=function(){switch(this.dataRegions){case 1:return 1;case 2:case 4:return 2;case 16:return 4;case 36:return 6;default:throw new Error("Cannot handle this number of data regions")}},e.prototype.getVerticalDataRegions=function(){switch(this.dataRegions){case 1:case 2:return 1;case 4:return 2;case 16:return 4;case 36:return 6;default:throw new Error("Cannot handle this number of data regions")}},e.prototype.getSymbolDataWidth=function(){return this.getHorizontalDataRegions()*this.matrixWidth},e.prototype.getSymbolDataHeight=function(){return this.getVerticalDataRegions()*this.matrixHeight},e.prototype.getSymbolWidth=function(){return this.getSymbolDataWidth()+2*this.getHorizontalDataRegions()},e.prototype.getSymbolHeight=function(){return this.getSymbolDataHeight()+2*this.getVerticalDataRegions()},e.prototype.getCodewordCount=function(){return this.dataCapacity+this.errorCodewords},e.prototype.getInterleavedBlockCount=function(){return this.rsBlockData?this.dataCapacity/this.rsBlockData:1},e.prototype.getDataCapacity=function(){return this.dataCapacity},e.prototype.getErrorCodewords=function(){return this.errorCodewords},e.prototype.getDataLengthForInterleavedBlock=function(e){return this.rsBlockData},e.prototype.getErrorLengthForInterleavedBlock=function(e){return this.rsBlockError},e}(),a=o;t.default=a;var s=function(e){function t(){return e.call(this,!1,1558,620,22,22,36,-1,62)||this}return n(t,e),t.prototype.getInterleavedBlockCount=function(){return 10},t.prototype.getDataLengthForInterleavedBlock=function(e){return e<=8?156:155},t}(o),u=[new o(!1,3,5,8,8,1),new o(!1,5,7,10,10,1),new o(!0,5,7,16,6,1),new o(!1,8,10,12,12,1),new o(!0,10,11,14,6,2),new o(!1,12,12,14,14,1),new o(!0,16,14,24,10,1),new o(!1,18,14,16,16,1),new o(!1,22,18,18,18,1),new o(!0,22,18,16,10,2),new o(!1,30,20,20,20,1),new o(!0,32,24,16,14,2),new o(!1,36,24,22,22,1),new o(!1,44,28,24,24,1),new o(!0,49,28,22,14,2),new o(!1,62,36,14,14,4),new o(!1,86,42,16,16,4),new o(!1,114,48,18,18,4),new o(!1,144,56,20,20,4),new o(!1,174,68,22,22,4),new o(!1,204,84,24,24,4,102,42),new o(!1,280,112,14,14,16,140,56),new o(!1,368,144,16,16,16,92,36),new o(!1,456,192,18,18,16,114,48),new o(!1,576,224,20,20,16,144,56),new o(!1,696,272,22,22,16,174,68),new o(!1,816,336,24,24,16,136,56),new o(!1,1050,408,18,18,36,175,68),new o(!1,1304,496,20,20,36,163,62),new s];t.PROD_SYMBOLS=u},"457d":function(e){e.exports=JSON.parse('{"uni-datetime-picker.selectDate":"select date","uni-datetime-picker.selectTime":"select time","uni-datetime-picker.selectDateTime":"select date and time","uni-datetime-picker.startDate":"start date","uni-datetime-picker.endDate":"end date","uni-datetime-picker.startTime":"start time","uni-datetime-picker.endTime":"end time","uni-datetime-picker.ok":"ok","uni-datetime-picker.clear":"clear","uni-datetime-picker.cancel":"cancel","uni-datetime-picker.year":"-","uni-datetime-picker.month":"","uni-calender.MON":"MON","uni-calender.TUE":"TUE","uni-calender.WED":"WED","uni-calender.THU":"THU","uni-calender.FRI":"FRI","uni-calender.SAT":"SAT","uni-calender.SUN":"SUN","uni-calender.confirm":"confirm"}')},"46dd":function(e,t,r){"use strict";(function(t,n){var i=r("ca99");e.exports=m;var o,a=r("b0e4");m.ReadableState=b;r("bf30").EventEmitter;var s=function(e,t){return e.listeners(t).length},u=r("51c3"),c=r("5f79").Buffer,f=t.Uint8Array||function(){};var l=Object.create(r("8ce8"));l.inherits=r("2c2e");var d=r(0),h=void 0;h=d&&d.debuglog?d.debuglog("stream"):function(){};var p,g=r("f874"),y=r("c741");l.inherits(m,u);var v=["error","close","destroy","pause","resume"];function b(e,t){o=o||r("0ec1"),e=e||{};var n=t instanceof o;this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,a=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new g,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(p||(p=r("5f85").StringDecoder),this.decoder=new p(e.encoding),this.encoding=e.encoding)}function m(e){if(o=o||r("0ec1"),!(this instanceof m))return new m(e);this._readableState=new b(e,this),this.readable=!0,e&&("function"===typeof e.read&&(this._read=e.read),"function"===typeof e.destroy&&(this._destroy=e.destroy)),u.call(this)}function _(e,t,r,n,i){var o,a=e._readableState;null===t?(a.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,S(e)}(e,a)):(i||(o=function(e,t){var r;(function(e){return c.isBuffer(e)||e instanceof f})(t)||"string"===typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));return r}(a,t)),o?e.emit("error",o):a.objectMode||t&&t.length>0?("string"===typeof t||a.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=function(e){return c.from(e)}(t)),n?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):w(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||0!==t.length?w(e,a,t,!1):E(e,a)):w(e,a,t,!1))):n||(a.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(a)}function w(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&S(e)),E(e,t)}Object.defineProperty(m.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),m.prototype.destroy=y.destroy,m.prototype._undestroy=y.undestroy,m.prototype._destroy=function(e,t){this.push(null),t(e)},m.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"===typeof e&&(t=t||n.defaultEncoding,t!==n.encoding&&(e=c.from(e,t),t=""),r=!0),_(this,e,t,!1,r)},m.prototype.unshift=function(e){return _(this,e,null,!0,!1)},m.prototype.isPaused=function(){return!1===this._readableState.flowing},m.prototype.setEncoding=function(e){return p||(p=r("5f85").StringDecoder),this._readableState.decoder=new p(e),this._readableState.encoding=e,this};function A(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=8388608?e=8388608:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function S(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(h("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(x,e):x(e))}function x(e){h("emit readable"),e.emit("readable"),T(e)}function E(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(C,e,t))}function C(e,t){var r=t.length;while(!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark){if(h("maybeReadMore read 0"),e.read(0),r===t.length)break;r=t.length}t.readingMore=!1}function O(e){h("readable nexttick read 0"),e.read(0)}function I(e,t){t.reading||(h("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),T(e),t.flowing&&!t.reading&&e.read(0)}function T(e){var t=e._readableState;h("flow",t.flowing);while(t.flowing&&null!==e.read());}function P(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var n;e<t.head.data.length?(n=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):n=e===t.head.data.length?t.shift():r?function(e,t){var r=t.head,n=1,i=r.data;e-=i.length;while(r=r.next){var o=r.data,a=e>o.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),e-=a,0===e){a===o.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++n}return t.length-=n,i}(e,t):function(e,t){var r=c.allocUnsafe(e),n=t.head,i=1;n.data.copy(r),e-=n.data.length;while(n=n.next){var o=n.data,a=e>o.length?o.length:e;if(o.copy(r,r.length-e,0,a),e-=a,0===e){a===o.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++i}return t.length-=i,r}(e,t);return n}(e,t.buffer,t.decoder),r);var r}function M(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i.nextTick(k,t,e))}function k(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function R(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}m.prototype.read=function(e){h("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return h("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?M(this):S(this),null;if(e=A(e,t),0===e&&t.ended)return 0===t.length&&M(this),null;var n,i=t.needReadable;return h("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&(i=!0,h("length less than watermark",i)),t.ended||t.reading?(i=!1,h("reading or ended",i)):i&&(h("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=A(r,t))),n=e>0?P(e,t):null,null===n?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&M(this)),null!==n&&this.emit("data",n),n},m.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},m.prototype.pipe=function(e,t){var r=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e);break}o.pipesCount+=1,h("pipe count=%d opts=%j",o.pipesCount,t);var u=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr,c=u?l:_;function f(t,n){h("onunpipe"),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,function(){h("cleanup"),e.removeListener("close",b),e.removeListener("finish",m),e.removeListener("drain",d),e.removeListener("error",v),e.removeListener("unpipe",f),r.removeListener("end",l),r.removeListener("end",_),r.removeListener("data",y),p=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||d()}())}function l(){h("onend"),e.end()}o.endEmitted?i.nextTick(c):r.once("end",c),e.on("unpipe",f);var d=function(e){return function(){var t=e._readableState;h("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,T(e))}}(r);e.on("drain",d);var p=!1;var g=!1;function y(t){h("ondata"),g=!1;var n=e.write(t);!1!==n||g||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==R(o.pipes,e))&&!p&&(h("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,g=!0),r.pause())}function v(t){h("onerror",t),_(),e.removeListener("error",v),0===s(e,"error")&&e.emit("error",t)}function b(){e.removeListener("finish",m),_()}function m(){h("onfinish"),e.removeListener("close",b),_()}function _(){h("unpipe"),r.unpipe(e)}return r.on("data",y),function(e,t,r){if("function"===typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",v),e.once("close",b),e.once("finish",m),e.emit("pipe",r),o.flowing||(h("pipe resume"),r.resume()),e},m.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,r);return this}var a=R(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},m.prototype.on=function(e,t){var r=u.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var n=this._readableState;n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&S(this):i.nextTick(O,this))}return r},m.prototype.addListener=m.prototype.on,m.prototype.resume=function(){var e=this._readableState;return e.flowing||(h("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(I,e,t))}(this,e)),this},m.prototype.pause=function(){return h("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(h("pause"),this._readableState.flowing=!1,this.emit("pause")),this},m.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",(function(){if(h("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){if(h("wrapped data"),r.decoder&&(i=r.decoder.write(i)),(!r.objectMode||null!==i&&void 0!==i)&&(r.objectMode||i&&i.length)){var o=t.push(i);o||(n=!0,e.pause())}})),e)void 0===this[i]&&"function"===typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<v.length;o++)e.on(v[o],this.emit.bind(this,v[o]));return this._read=function(t){h("wrapped _read",t),n&&(n=!1,e.resume())},this},Object.defineProperty(m.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),m._fromList=P}).call(this,r("0ee4"),r("28d0"))},"46f2":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("343e")),o=n(r("9e56")),a=n(r("d4f8")),s=n(r("5c29")),u=n(r("2bfd")),c=n(r("3717")),f=n(r("afcc")),l=n(r("8532")),d=function(){function e(e){this.buffer=new a.default,this.information=e}return e.prototype.decodeAllCodes=function(e,t){var r=t,n=null;do{var i=this.decodeGeneralPurposeField(r,n),o=l.default.parseFieldsInGeneralPurpose(i.getNewString());if(null!=o&&e.append(o),n=i.isRemaining()?""+i.getRemainingValue():null,r===i.getNewPosition())break;r=i.getNewPosition()}while(1);return e.toString()},e.prototype.isStillNumeric=function(e){if(e+7>this.information.getSize())return e+4<=this.information.getSize();for(var t=e;t<e+3;++t)if(this.information.get(t))return!0;return this.information.get(e+3)},e.prototype.decodeNumeric=function(e){if(e+7>this.information.getSize()){var t=this.extractNumericValueFromBitArray(e,4);return 0===t?new f.default(this.information.getSize(),f.default.FNC1,f.default.FNC1):new f.default(this.information.getSize(),t-1,f.default.FNC1)}var r=this.extractNumericValueFromBitArray(e,7),n=(r-8)/11,i=(r-8)%11;return new f.default(e+7,n,i)},e.prototype.extractNumericValueFromBitArray=function(t,r){return e.extractNumericValueFromBitArray(this.information,t,r)},e.extractNumericValueFromBitArray=function(e,t,r){for(var n=0,i=0;i<r;++i)e.get(t+i)&&(n|=1<<r-i-1);return n},e.prototype.decodeGeneralPurposeField=function(e,t){this.buffer.setLengthToZero(),null!=t&&this.buffer.append(t),this.current.setPosition(e);var r=this.parseBlocks();return null!=r&&r.isRemaining()?new c.default(this.current.getPosition(),this.buffer.toString(),r.getRemainingValue()):new c.default(this.current.getPosition(),this.buffer.toString())},e.prototype.parseBlocks=function(){var e,t;do{var r=this.current.getPosition();this.current.isAlpha()?(t=this.parseAlphaBlock(),e=t.isFinished()):this.current.isIsoIec646()?(t=this.parseIsoIec646Block(),e=t.isFinished()):(t=this.parseNumericBlock(),e=t.isFinished());var n=r!==this.current.getPosition();if(!n&&!e)break}while(!e);return t.getDecodedInformation()},e.prototype.parseNumericBlock=function(){while(this.isStillNumeric(this.current.getPosition())){var e=this.decodeNumeric(this.current.getPosition());if(this.current.setPosition(e.getNewPosition()),e.isFirstDigitFNC1()){var t=void 0;return t=e.isSecondDigitFNC1()?new c.default(this.current.getPosition(),this.buffer.toString()):new c.default(this.current.getPosition(),this.buffer.toString(),e.getSecondDigit()),new s.default(!0,t)}if(this.buffer.append(e.getFirstDigit()),e.isSecondDigitFNC1()){t=new c.default(this.current.getPosition(),this.buffer.toString());return new s.default(!0,t)}this.buffer.append(e.getSecondDigit())}return this.isNumericToAlphaNumericLatch(this.current.getPosition())&&(this.current.setAlpha(),this.current.incrementPosition(4)),new s.default(!1)},e.prototype.parseIsoIec646Block=function(){while(this.isStillIsoIec646(this.current.getPosition())){var e=this.decodeIsoIec646(this.current.getPosition());if(this.current.setPosition(e.getNewPosition()),e.isFNC1()){var t=new c.default(this.current.getPosition(),this.buffer.toString());return new s.default(!0,t)}this.buffer.append(e.getValue())}return this.isAlphaOr646ToNumericLatch(this.current.getPosition())?(this.current.incrementPosition(3),this.current.setNumeric()):this.isAlphaTo646ToAlphaLatch(this.current.getPosition())&&(this.current.getPosition()+5<this.information.getSize()?this.current.incrementPosition(5):this.current.setPosition(this.information.getSize()),this.current.setAlpha()),new s.default(!1)},e.prototype.parseAlphaBlock=function(){while(this.isStillAlpha(this.current.getPosition())){var e=this.decodeAlphanumeric(this.current.getPosition());if(this.current.setPosition(e.getNewPosition()),e.isFNC1()){var t=new c.default(this.current.getPosition(),this.buffer.toString());return new s.default(!0,t)}this.buffer.append(e.getValue())}return this.isAlphaOr646ToNumericLatch(this.current.getPosition())?(this.current.incrementPosition(3),this.current.setNumeric()):this.isAlphaTo646ToAlphaLatch(this.current.getPosition())&&(this.current.getPosition()+5<this.information.getSize()?this.current.incrementPosition(5):this.current.setPosition(this.information.getSize()),this.current.setIsoIec646()),new s.default(!1)},e.prototype.isStillIsoIec646=function(e){if(e+5>this.information.getSize())return!1;var t=this.extractNumericValueFromBitArray(e,5);if(t>=5&&t<16)return!0;if(e+7>this.information.getSize())return!1;var r=this.extractNumericValueFromBitArray(e,7);if(r>=64&&r<116)return!0;if(e+8>this.information.getSize())return!1;var n=this.extractNumericValueFromBitArray(e,8);return n>=232&&n<253},e.prototype.decodeIsoIec646=function(e){var t=this.extractNumericValueFromBitArray(e,5);if(15===t)return new u.default(e+5,u.default.FNC1);if(t>=5&&t<15)return new u.default(e+5,"0"+(t-5));var r=this.extractNumericValueFromBitArray(e,7);if(r>=64&&r<90)return new u.default(e+7,""+(r+1));if(r>=90&&r<116)return new u.default(e+7,""+(r+7));var n,o=this.extractNumericValueFromBitArray(e,8);switch(o){case 232:n="!";break;case 233:n='"';break;case 234:n="%";break;case 235:n="&";break;case 236:n="'";break;case 237:n="(";break;case 238:n=")";break;case 239:n="*";break;case 240:n="+";break;case 241:n=",";break;case 242:n="-";break;case 243:n=".";break;case 244:n="/";break;case 245:n=":";break;case 246:n=";";break;case 247:n="<";break;case 248:n="=";break;case 249:n=">";break;case 250:n="?";break;case 251:n="_";break;case 252:n=" ";break;default:throw new i.default}return new u.default(e+8,n)},e.prototype.isStillAlpha=function(e){if(e+5>this.information.getSize())return!1;var t=this.extractNumericValueFromBitArray(e,5);if(t>=5&&t<16)return!0;if(e+6>this.information.getSize())return!1;var r=this.extractNumericValueFromBitArray(e,6);return r>=16&&r<63},e.prototype.decodeAlphanumeric=function(e){var t=this.extractNumericValueFromBitArray(e,5);if(15===t)return new u.default(e+5,u.default.FNC1);if(t>=5&&t<15)return new u.default(e+5,"0"+(t-5));var r,n=this.extractNumericValueFromBitArray(e,6);if(n>=32&&n<58)return new u.default(e+6,""+(n+33));switch(n){case 58:r="*";break;case 59:r=",";break;case 60:r="-";break;case 61:r=".";break;case 62:r="/";break;default:throw new o.default("Decoding invalid alphanumeric value: "+n)}return new u.default(e+6,r)},e.prototype.isAlphaTo646ToAlphaLatch=function(e){if(e+1>this.information.getSize())return!1;for(var t=0;t<5&&t+e<this.information.getSize();++t)if(2===t){if(!this.information.get(e+2))return!1}else if(this.information.get(e+t))return!1;return!0},e.prototype.isAlphaOr646ToNumericLatch=function(e){if(e+3>this.information.getSize())return!1;for(var t=e;t<e+3;++t)if(this.information.get(t))return!1;return!0},e.prototype.isNumericToAlphaNumericLatch=function(e){if(e+1>this.information.getSize())return!1;for(var t=0;t<4&&t+e<this.information.getSize();++t)if(this.information.get(e+t))return!1;return!0},e}(),h=d;t.default=h},4733:function(e,t,r){"use strict";var n=r("4e45"),i=n.assert,o=n.parseBytes,a=n.cachedProperty;function s(e,t){this.eddsa=e,this._secret=o(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=o(t.pub)}s.fromPublic=function(e,t){return t instanceof s?t:new s(e,{pub:t})},s.fromSecret=function(e,t){return t instanceof s?t:new s(e,{secret:t})},s.prototype.secret=function(){return this._secret},a(s,"pubBytes",(function(){return this.eddsa.encodePoint(this.pub())})),a(s,"pub",(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),a(s,"privBytes",(function(){var e=this.eddsa,t=this.hash(),r=e.encodingLength-1,n=t.slice(0,e.encodingLength);return n[0]&=248,n[r]&=127,n[r]|=64,n})),a(s,"priv",(function(){return this.eddsa.decodeInt(this.privBytes())})),a(s,"hash",(function(){return this.eddsa.hash().update(this.secret()).digest()})),a(s,"messagePrefix",(function(){return this.hash().slice(this.eddsa.encodingLength)})),s.prototype.sign=function(e){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},s.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},s.prototype.getSecret=function(e){return i(this._secret,"KeyPair is public only"),n.encode(this.secret(),e)},s.prototype.getPublic=function(e){return n.encode(this.pubBytes(),e)},e.exports=s},"47a9":function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports["default"]=e.exports},4807:function(e,t,r){"use strict";const n=t;n.der=r("a6ce"),n.pem=r("56ab")},4833:function(e,t,r){e.exports=r("0ec1")},"483b":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("7322")),o=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(i.default),s=a;t.default=s},4965:function(e,t){e.exports=function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"===typeof e}},e.exports.__esModule=!0,e.exports["default"]=e.exports},"49a0":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(){function e(e,t){this.dataBytes=e,this.errorCorrectionBytes=t}return e.prototype.getDataBytes=function(){return this.dataBytes},e.prototype.getErrorCorrectionBytes=function(){return this.errorCorrectionBytes},e}(),i=n;t.default=i},"4ac8":function(e,t,r){var n=r("1f63"),i=r("5f79").Buffer,o=r("e2c3");function a(e){var t=e._cipher.encryptBlockRaw(e._prev);return o(e._prev),t}t.encrypt=function(e,t){var r=Math.ceil(t.length/16),o=e._cache.length;e._cache=i.concat([e._cache,i.allocUnsafe(16*r)]);for(var s=0;s<r;s++){var u=a(e),c=o+16*s;e._cache.writeUInt32BE(u[0],c+0),e._cache.writeUInt32BE(u[1],c+4),e._cache.writeUInt32BE(u[2],c+8),e._cache.writeUInt32BE(u[3],c+12)}var f=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),n(t,f)}},"4d7d":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("3b2d")),o=n(r("9c16")),a=n(r("76a0")),s=n(r("37ed")),u=n(r("a8be")),c=n(r("f228")),f=function(){function e(){}return e.prototype.decode=function(e,t){try{return this.doDecode(e,t)}catch(p){var r=t&&!0===t.get(a.default.TRY_HARDER);if(r&&e.isRotateSupported()){var n=e.rotateCounterClockwise(),i=this.doDecode(n,t),o=i.getResultMetadata(),f=270;null!==o&&!0===o.get(s.default.ORIENTATION)&&(f+=o.get(s.default.ORIENTATION)%360),i.putMetadata(s.default.ORIENTATION,f);var l=i.getResultPoints();if(null!==l)for(var d=n.getHeight(),h=0;h<l.length;h++)l[h]=new u.default(d-l[h].getY()-1,l[h].getX());return i}throw new c.default}},e.prototype.reset=function(){},e.prototype.doDecode=function(e,t){var r,n=e.getWidth(),f=e.getHeight(),l=new o.default(n),d=t&&!0===t.get(a.default.TRY_HARDER),h=Math.max(1,f>>(d?8:5));r=d?f:15;for(var p=Math.trunc(f/2),g=0;g<r;g++){var y=Math.trunc((g+1)/2),v=0===(1&g),b=p+h*(v?y:-y);if(b<0||b>=f)break;try{l=e.getBlackRow(b,l)}catch(S){continue}for(var m=function(e){if(1===e&&(l.reverse(),t&&!0===t.get(a.default.NEED_RESULT_POINT_CALLBACK))){var r=new Map;t.forEach((function(e,t){return r.set(t,e)})),r.delete(a.default.NEED_RESULT_POINT_CALLBACK),t=r}try{var i=_.decodeRow(b,l,t);if(1===e){i.putMetadata(s.default.ORIENTATION,180);var o=i.getResultPoints();null!==o&&(o[0]=new u.default(n-o[0].getX()-1,o[0].getY()),o[1]=new u.default(n-o[1].getX()-1,o[1].getY()))}return{value:i}}catch(c){}},_=this,w=0;w<2;w++){var A=m(w);if("object"===(0,i.default)(A))return A.value}}throw new c.default},e.recordPattern=function(e,t,r){for(var n=r.length,i=0;i<n;i++)r[i]=0;var o=e.getSize();if(t>=o)throw new c.default;var a=!e.get(t),s=0,u=t;while(u<o){if(e.get(u)!==a)r[s]++;else{if(++s===n)break;r[s]=1,a=!a}u++}if(s!==n&&(s!==n-1||u!==o))throw new c.default},e.recordPatternInReverse=function(t,r,n){var i=n.length,o=t.get(r);while(r>0&&i>=0)t.get(--r)!==o&&(i--,o=!o);if(i>=0)throw new c.default;e.recordPattern(t,r+1,n)},e.patternMatchVariance=function(e,t,r){for(var n=e.length,i=0,o=0,a=0;a<n;a++)i+=e[a],o+=t[a];if(i<o)return Number.POSITIVE_INFINITY;var s=i/o;r*=s;for(var u=0,c=0;c<n;c++){var f=e[c],l=t[c]*s,d=f>l?f-l:l-f;if(d>r)return Number.POSITIVE_INFINITY;u+=d}return u/i},e}(),l=f;t.default=l},"4d87":function(e,t,r){"use strict";(function(e){var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("a22d")),o=n(r("18a6")),a=n(r("4f6e")),s=n(r("9cd5")),u={data:function(){return{devTools_pageData:{route:"",isOnShow:!1,activeTime:0}}},onLoad:function(t){var r=this,n="yes"==e.getStorageSync("devTools_isInjectEruda");if(n);var s="yes"==e.getStorageSync("devTools_isInjectVConsole");if(s);try{var u=getCurrentPages(),c=u&&u.length>0?u[u.length-1]:null;if(c){var f=i.default.getOptions();c.route==f.devRoute?r.devTools_pageData=!1:(r.devTools_pageData.route=c.route,(0,o.default)("onLoad>".concat(c.route,">")+(t?JSON.stringify(t):"")),setInterval((function(){r.devTools_pageData&&r.devTools_pageData.isOnShow&&(r.devTools_pageData.activeTime=r.devTools_pageData.activeTime+1)}),1e3))}a.default.pushPageRouteMap(u)}catch(l){console.log("devTools mixin onLoad error ",l)}},onShow:function(){try{this.devTools_pageData&&(this.devTools_pageData.isOnShow=!0,this.devTools_pageData.activeTime=0)}catch(e){console.log("devTools mixin onShow error ",e)}},onHide:function(){try{this.devTools_pageData&&(this.devTools_pageData.isOnShow=!1,(0,s.default)(this.devTools_pageData.route,this.devTools_pageData.activeTime),this.devTools_pageData.activeTime=0)}catch(e){console.log("devTools mixin onHide error ",e)}},onUnload:function(){try{(0,o.default)("onUnload>".concat(this.devTools_pageData.route)),this.devTools_pageData=null}catch(e){console.log("devTools mixin onUnload error ",e)}}};t.default=u}).call(this,r("df3c")["default"])},"4e45":function(e,t,r){"use strict";var n=t,i=r("81eb"),o=r("d3c2"),a=r("b69b");n.assert=o,n.toArray=a.toArray,n.zero2=a.zero2,n.toHex=a.toHex,n.encode=a.encode,n.getNAF=function(e,t,r){var n=new Array(Math.max(e.bitLength(),r)+1);n.fill(0);for(var i=1<<t+1,o=e.clone(),a=0;a<n.length;a++){var s,u=o.andln(i-1);o.isOdd()?(s=u>(i>>1)-1?(i>>1)-u:u,o.isubn(s)):s=0,n[a]=s,o.iushrn(1)}return n},n.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();var n,i=0,o=0;while(e.cmpn(-i)>0||t.cmpn(-o)>0){var a,s,u=e.andln(3)+i&3,c=t.andln(3)+o&3;3===u&&(u=-1),3===c&&(c=-1),0===(1&u)?a=0:(n=e.andln(7)+i&7,a=3!==n&&5!==n||2!==c?u:-u),r[0].push(a),0===(1&c)?s=0:(n=t.andln(7)+o&7,s=3!==n&&5!==n||2!==u?c:-c),r[1].push(s),2*i===a+1&&(i=1-i),2*o===s+1&&(o=1-o),e.iushrn(1),t.iushrn(1)}return r},n.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},n.parseBytes=function(e){return"string"===typeof e?n.toArray(e,"hex"):e},n.intFromLE=function(e){return new i(e,"hex","le")}},"4e64":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("7322")),o=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.kind="UnsupportedOperationException",t}(i.default),s=a;t.default=s},"4e70":function(e,t,r){"use strict";const n=t;n._reverse=function(e){const t={};return Object.keys(e).forEach((function(r){(0|r)==r&&(r|=0);const n=e[r];t[n]=r})),t},n.der=r("0b50")},"4f6e":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("3b2d")),o=n(r("271d")),a={pageRouteMap:[],pageRouteKeyMap:{},install:function(){var e=this.getAllRoutes(),t=o.default.get("pageRouteKeyMap");t&&"object"==(0,i.default)(t)||(t={});var r=0;Object.keys(t).forEach((function(e){var n=Number(t[e]);n>r&&(r=n)})),e.forEach((function(e){t[e.path]||(t[e.path]=r+1,r+=1)})),o.default.set("pageRouteKeyMap",t),this.pageRouteKeyMap=t;var n=o.default.get("pageRouteMap");n&&"object"==(0,i.default)(n)||(n={}),Object.keys(n).forEach((function(e){try{var t=Number(n[e]);(!Number.isInteger(t)||t<0)&&(n[e]=1)}catch(r){}})),this.pageRouteMap=n,this.saveData()},getAllRoutes:function(){var e=[];try{var t=__wxConfig.pages;t.map((function(t){e.push({path:"/"+t})}))}catch(r){e=[]}return e},pushPageRouteMap:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t&&0!=t.length||(t=getCurrentPages());var r="";t.forEach((function(t){var n=0==t.route.indexOf("/")?t.route:"/"+t.route,i=e.pageRouteKeyMap[n];i||(i=n),r=""==r?i+"":r+","+i})),this.pageRouteMap[r]?this.pageRouteMap[r]=this.pageRouteMap[r]+1:this.pageRouteMap[r]=1},saveData:function(){var e=this;setTimeout((function(){o.default.set("pageRouteMap",e.pageRouteMap),setTimeout((function(){e.saveData()}),500)}),Math.round(3*Math.random()*1e3)+2e3)}};t.default=a},"4f82":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("c20f")),o=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),a=function(e){function t(t,r,n){var i=e.call(this,t,0,0)||this;return i.binaryShiftStart=r,i.binaryShiftByteCount=n,i}return o(t,e),t.prototype.appendTo=function(e,t){for(var r=0;r<this.binaryShiftByteCount;r++)(0===r||31===r&&this.binaryShiftByteCount<=62)&&(e.appendBits(31,5),this.binaryShiftByteCount>62?e.appendBits(this.binaryShiftByteCount-31,16):0===r?e.appendBits(Math.min(this.binaryShiftByteCount,31),5):e.appendBits(this.binaryShiftByteCount-31,5)),e.appendBits(t[this.binaryShiftStart+r],8)},t.prototype.addBinaryShift=function(e,r){return new t(this,e,r)},t.prototype.toString=function(){return"<"+this.binaryShiftStart+"::"+(this.binaryShiftStart+this.binaryShiftByteCount-1)+">"},t}(i.default),s=a;t.default=s},"4fd4":function(e,t,r){"use strict";(function(e){var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.apiResquestTimer=t.apiResquestOutside=t.apiResquestJsonList=t.apiResquestFormVideo=t.apiResquestForm=t.apiResquest=void 0,t.loginTimeout=c;var i=n(r("7ca3")),o=r("f414"),a=r("42fb");function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){(0,i.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}t.apiResquest=function(t){return new Promise((function(r,n){var i=o.config.base_url+t.url;return e.showLoading({title:"加载中",mask:!0}),"GET"===t.method&&t.data&&(i=i+"?"+(0,a.tansParams)(t.data),i=i.slice(0,-1),t.data={}),e.request({timeout:1e4,url:i,data:u({},t.data),method:t.method,header:{"content-type":"application/json;charset=utf-8",Authorization:e.getStorageSync("token")},success:function(t){e.hideLoading(),200==t.statusCode?200==t.data.code?r(t):401==t.data.code?c():(e.showToast({mask:!0,icon:"none",position:"center",title:t.data.message,duration:2e3}),r(t)):401==t.statusCode?c():(e.showToast({mask:!0,icon:"none",position:"center",title:"连接异常,请联系管理员.",duration:2e3}),r(t))},fail:function(t){e.hideLoading(),e.showToast({mask:!0,icon:"none",position:"center",title:"出错啦~请联系管理员!",duration:2e3})},complete:function(){}})}))};t.apiResquestOutside=function(t){return new Promise((function(r,n){var i=t.url;return e.showLoading({title:"加载中",mask:!0}),"GET"===t.method&&t.data&&(i=i+"?"+(0,a.tansParams)(t.data),i=i.slice(0,-1),t.data={}),e.request({timeout:1e4,url:i,data:u({},t.data),method:t.method,header:{"content-type":"application/json;charset=utf-8",Authorization:e.getStorageSync("token")},success:function(t){e.hideLoading(),200==t.statusCode?200==t.data.code?r(t):401==t.data.code?c():(e.showToast({mask:!0,icon:"none",position:"center",title:t.data.message,duration:2e3}),r(t)):401==t.statusCode?c():(e.showToast({mask:!0,icon:"none",position:"center",title:"连接异常,请联系管理员.",duration:2e3}),r(t))},fail:function(t){e.hideLoading(),e.showToast({mask:!0,icon:"none",position:"center",title:"出错啦~请联系管理员!",duration:2e3})},complete:function(){}})}))};t.apiResquestForm=function(t){return new Promise((function(r,n){var i=o.config.base_url+t.url;return e.showLoading({title:"加载中",mask:!0}),"GET"===t.method&&t.data&&(i=i+"?"+(0,a.tansParams)(t.data),i=i.slice(0,-1),t.data={}),e.request({timeout:1e4,url:i,data:u({},t.data),method:t.method,header:{"content-type":"application/x-www-form-urlencoded",Authorization:e.getStorageSync("token")},success:function(t){e.hideLoading(),200==t.statusCode?200==t.data.code?r(t):401==t.data.code?c():(e.showToast({mask:!0,icon:"none",position:"center",title:t.data.message,duration:2e3}),r(t)):401==t.statusCode?c():(e.showToast({mask:!0,icon:"none",position:"center",title:"连接异常,请联系管理员.",duration:2e3}),r(t))},fail:function(t){e.hideLoading(),e.showToast({mask:!0,icon:"none",position:"center",title:"出错啦~请联系管理员!",duration:2e3})},complete:function(){}})}))};t.apiResquestJsonList=function(t){return new Promise((function(r,n){var i=o.config.base_url+t.url;return e.showLoading({title:"加载中",mask:!0}),"GET"===t.method&&t.data&&(i=i+"?"+(0,a.tansParams)(t.data),i=i.slice(0,-1),t.data={}),e.request({timeout:1e4,url:i,data:t.data,method:t.method,header:{"content-type":"application/json",Authorization:e.getStorageSync("token")},success:function(t){e.hideLoading(),200==t.statusCode?200==t.data.code?r(t):401==t.data.code?c():(e.showToast({mask:!0,icon:"none",position:"center",title:t.data.message,duration:2e3}),r(t)):401==t.statusCode?c():(e.showToast({mask:!0,icon:"none",position:"center",title:"连接异常,请联系管理员.",duration:2e3}),r(t))},fail:function(t){e.hideLoading(),e.showToast({mask:!0,icon:"none",position:"center",title:"出错啦~请联系管理员!",duration:2e3})},complete:function(){}})}))};t.apiResquestFormVideo=function(t){return new Promise((function(r,n){var i=e.getStorageSync("cameraExtranetAgent")+t.url;return e.showLoading({title:"加载中",mask:!0}),"GET"===t.method&&t.data&&(i=i+"?"+(0,a.tansParams)(t.data),i=i.slice(0,-1),t.data={}),e.request({timeout:1e4,url:i,data:u({},t.data),method:t.method,header:{"content-type":"application/x-www-form-urlencoded",Authorization:e.getStorageSync("token")},success:function(t){e.hideLoading(),200==t.statusCode?200==t.data.code?r(t):401==t.data.code?c():(e.showToast({mask:!0,icon:"none",position:"center",title:t.data.message,duration:2e3}),r(t)):401==t.statusCode?c():(e.showToast({mask:!0,icon:"none",position:"center",title:"连接异常,请联系管理员.",duration:2e3}),r(t))},fail:function(t){e.hideLoading(),e.showToast({mask:!0,icon:"none",position:"center",title:"出错啦~请联系管理员!",duration:2e3})},complete:function(){}})}))};function c(t){e.showToast({mask:!0,icon:"none",position:"center",title:"登录超时,请重新登录~",duration:2e3}),e.removeStorageSync("token"),e.removeStorageSync("userId"),e.removeStorageSync("userType"),setTimeout((function(){e.redirectTo({url:"/pages/views/login/login"})}),2e3)}t.apiResquestTimer=function(t){return new Promise((function(r,n){var i=o.config.base_url+t.url;return"GET"===t.method&&t.data&&(i=i+"?"+(0,a.tansParams)(t.data),i=i.slice(0,-1),t.data={}),e.request({timeout:1e4,url:i,data:u({},t.data),method:t.method,header:{"content-type":"application/json;charset=utf-8",Authorization:e.getStorageSync("token")},success:function(t){e.hideLoading(),200==t.statusCode?200==t.data.code?r(t):401==t.data.code?c():(e.showToast({mask:!0,icon:"none",position:"center",title:t.data.message,duration:2e3}),r(t)):401==t.statusCode?c():(e.showToast({mask:!0,icon:"none",position:"center",title:"连接异常,请联系管理员.",duration:2e3}),r(t))},fail:function(t){e.hideLoading(),e.showToast({mask:!0,icon:"none",position:"center",title:"出错啦~请联系管理员!",duration:2e3})},complete:function(){}})}))}}).call(this,r("df3c")["default"])},"4ffb":function(e,t,r){var n=r("3b2d")["default"],i=r("3352");e.exports=function(e,t){if(t&&("object"===n(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)},e.exports.__esModule=!0,e.exports["default"]=e.exports},5016:function(e,t){t["des-ecb"]={key:8,iv:0},t["des-cbc"]=t.des={key:8,iv:8},t["des-ede3-cbc"]=t.des3={key:24,iv:8},t["des-ede3"]={key:24,iv:0},t["des-ede-cbc"]={key:16,iv:8},t["des-ede"]={key:16,iv:0}},"50f1":function(e,t,r){var n=r("5f79").Buffer,i=n.alloc(16,0);function o(e){var t=n.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function a(e){this.h=e,this.state=n.alloc(16,0),this.cache=n.allocUnsafe(0)}a.prototype.ghash=function(e){var t=-1;while(++t<e.length)this.state[t]^=e[t];this._multiply()},a.prototype._multiply=function(){var e,t,r,n=function(e){return[e.readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)]}(this.h),i=[0,0,0,0],a=-1;while(++a<128){for(t=0!==(this.state[~~(a/8)]&1<<7-a%8),t&&(i[0]^=n[0],i[1]^=n[1],i[2]^=n[2],i[3]^=n[3]),r=0!==(1&n[3]),e=3;e>0;e--)n[e]=n[e]>>>1|(1&n[e-1])<<31;n[0]=n[0]>>>1,r&&(n[0]=n[0]^225<<24)}this.state=o(i)},a.prototype.update=function(e){var t;this.cache=n.concat([this.cache,e]);while(this.cache.length>=16)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},a.prototype.final=function(e,t){return this.cache.length&&this.ghash(n.concat([this.cache,i],16)),this.ghash(o([0,e,0,t])),this.state},e.exports=a},"50f3":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("0c24")),o=n(r("b717")),a=n(r("76a0")),s=n(r("37ed")),u=n(r("1ff8")),c=n(r("c9e4")),f=n(r("3b7d")),l=function(){function e(){}return e.prototype.decode=function(e,t){void 0===t&&(t=null);var r=null,n=new f.default(e.getBlackMatrix()),a=null,l=null;try{var d=n.detectMirror(!1);a=d.getPoints(),this.reportFoundResultPoints(t,a),l=(new c.default).decode(d)}catch(y){r=y}if(null==l)try{d=n.detectMirror(!0);a=d.getPoints(),this.reportFoundResultPoints(t,a),l=(new c.default).decode(d)}catch(y){if(null!=r)throw r;throw y}var h=new i.default(l.getText(),l.getRawBytes(),l.getNumBits(),a,o.default.AZTEC,u.default.currentTimeMillis()),p=l.getByteSegments();null!=p&&h.putMetadata(s.default.BYTE_SEGMENTS,p);var g=l.getECLevel();return null!=g&&h.putMetadata(s.default.ERROR_CORRECTION_LEVEL,g),h},e.prototype.reportFoundResultPoints=function(e,t){if(null!=e){var r=e.get(a.default.NEED_RESULT_POINT_CALLBACK);null!=r&&t.forEach((function(e,t,n){r.foundPossibleResultPoint(e)}))}},e.prototype.reset=function(){},e}(),d=l;t.default=d},"51c3":function(e,t,r){e.exports=r("bf30").EventEmitter},"51ff":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("b717")),o=n(r("76a0")),a=n(r("f228")),s=n(r("36aa")),u=n(r("b1cb")),c=n(r("e0a5")),f=n(r("6806")),l=n(r("a1f5")),d=n(r("4d7d")),h=n(r("6d31")),p=n(r("a9a0")),g=n(r("8456")),y=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),v=function(e){function t(t){var r=e.call(this)||this;r.readers=[];var n=t?t.get(o.default.POSSIBLE_FORMATS):null,a=t&&void 0!==t.get(o.default.ASSUME_CODE_39_CHECK_DIGIT),d=t&&void 0!==t.get(o.default.ENABLE_CODE_39_EXTENDED_MODE);return n&&((n.includes(i.default.EAN_13)||n.includes(i.default.UPC_A)||n.includes(i.default.EAN_8)||n.includes(i.default.UPC_E))&&r.readers.push(new l.default(t)),n.includes(i.default.CODE_39)&&r.readers.push(new u.default(a,d)),n.includes(i.default.CODE_93)&&r.readers.push(new c.default),n.includes(i.default.CODE_128)&&r.readers.push(new s.default),n.includes(i.default.ITF)&&r.readers.push(new f.default),n.includes(i.default.CODABAR)&&r.readers.push(new h.default),n.includes(i.default.RSS_14)&&r.readers.push(new g.default),n.includes(i.default.RSS_EXPANDED)&&(console.warn("RSS Expanded reader IS NOT ready for production yet! use at your own risk."),r.readers.push(new p.default))),0===r.readers.length&&(r.readers.push(new l.default(t)),r.readers.push(new u.default),r.readers.push(new c.default),r.readers.push(new l.default(t)),r.readers.push(new s.default),r.readers.push(new f.default),r.readers.push(new g.default)),r}return y(t,e),t.prototype.decodeRow=function(e,t,r){for(var n=0;n<this.readers.length;n++)try{return this.readers[n].decodeRow(e,t,r)}catch(i){}throw new a.default},t.prototype.reset=function(){this.readers.forEach((function(e){return e.reset()}))},t}(d.default),b=v;t.default=b},5247:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("c769")),o=n(r("5a0c")),a=n(r("1d84")),s=function(){function e(){}return e.initialize=function(){for(var t=0;t<o.default.SYMBOL_TABLE.length;t++)for(var r=o.default.SYMBOL_TABLE[t],n=1&r,i=0;i<o.default.BARS_IN_MODULE;i++){var a=0;while((1&r)===n)a+=1,r>>=1;n=1&r,e.RATIOS_TABLE[t]||(e.RATIOS_TABLE[t]=new Array(o.default.BARS_IN_MODULE)),e.RATIOS_TABLE[t][o.default.BARS_IN_MODULE-i-1]=Math.fround(a/o.default.MODULES_IN_CODEWORD)}this.bSymbolTableReady=!0},e.getDecodedValue=function(t){var r=e.getDecodedCodewordValue(e.sampleBitCounts(t));return-1!==r?r:e.getClosestDecodedValue(t)},e.sampleBitCounts=function(e){for(var t=i.default.sum(e),r=new Int32Array(o.default.BARS_IN_MODULE),n=0,a=0,s=0;s<o.default.MODULES_IN_CODEWORD;s++){var u=t/(2*o.default.MODULES_IN_CODEWORD)+s*t/o.default.MODULES_IN_CODEWORD;a+e[n]<=u&&(a+=e[n],n++),r[n]++}return r},e.getDecodedCodewordValue=function(t){var r=e.getBitValue(t);return-1===o.default.getCodeword(r)?-1:r},e.getBitValue=function(e){for(var t=0,r=0;r<e.length;r++)for(var n=0;n<e[r];n++)t=t<<1|(r%2===0?1:0);return Math.trunc(t)},e.getClosestDecodedValue=function(t){var r=i.default.sum(t),n=new Array(o.default.BARS_IN_MODULE);if(r>1)for(var s=0;s<n.length;s++)n[s]=Math.fround(t[s]/r);var u=a.default.MAX_VALUE,c=-1;this.bSymbolTableReady||e.initialize();for(var f=0;f<e.RATIOS_TABLE.length;f++){for(var l=0,d=e.RATIOS_TABLE[f],h=0;h<o.default.BARS_IN_MODULE;h++){var p=Math.fround(d[h]-n[h]);if(l+=Math.fround(p*p),l>=u)break}l<u&&(u=l,c=o.default.SYMBOL_TABLE[f])}return c},e.bSymbolTableReady=!1,e.RATIOS_TABLE=new Array(o.default.SYMBOL_TABLE.length).map((function(e){return new Array(o.default.BARS_IN_MODULE)})),e}(),u=s;t.default=u},"53ac":function(e,t){t.encrypt=function(e,t){return e._cipher.encryptBlock(t)},t.decrypt=function(e,t){return e._cipher.decryptBlock(t)}},"548f":function(e,t,r){"use strict";t.randomBytes=t.rng=t.pseudoRandomBytes=t.prng=r("ace9"),t.createHash=t.Hash=r("055b"),t.createHmac=t.Hmac=r("0116");var n=r("3be8"),i=Object.keys(n),o=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(i);t.getHashes=function(){return o};var a=r("fef7");t.pbkdf2=a.pbkdf2,t.pbkdf2Sync=a.pbkdf2Sync;var s=r("54a0");t.Cipher=s.Cipher,t.createCipher=s.createCipher,t.Cipheriv=s.Cipheriv,t.createCipheriv=s.createCipheriv,t.Decipher=s.Decipher,t.createDecipher=s.createDecipher,t.Decipheriv=s.Decipheriv,t.createDecipheriv=s.createDecipheriv,t.getCiphers=s.getCiphers,t.listCiphers=s.listCiphers;var u=r("3c1b");t.DiffieHellmanGroup=u.DiffieHellmanGroup,t.createDiffieHellmanGroup=u.createDiffieHellmanGroup,t.getDiffieHellman=u.getDiffieHellman,t.createDiffieHellman=u.createDiffieHellman,t.DiffieHellman=u.DiffieHellman;var c=r("29e3");t.createSign=c.createSign,t.Sign=c.Sign,t.createVerify=c.createVerify,t.Verify=c.Verify,t.createECDH=r("830f");var f=r("f4ff");t.publicEncrypt=f.publicEncrypt,t.privateEncrypt=f.privateEncrypt,t.publicDecrypt=f.publicDecrypt,t.privateDecrypt=f.privateDecrypt;var l=r("e11f");t.randomFill=l.randomFill,t.randomFillSync=l.randomFillSync,t.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},t.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},"54a0":function(e,t,r){var n=r("2117"),i=r("b577"),o=r("0428"),a=r("5016"),s=r("0a0c");function u(e,t,r){if(e=e.toLowerCase(),o[e])return i.createCipheriv(e,t,r);if(a[e])return new n({key:t,iv:r,mode:e});throw new TypeError("invalid suite type")}function c(e,t,r){if(e=e.toLowerCase(),o[e])return i.createDecipheriv(e,t,r);if(a[e])return new n({key:t,iv:r,mode:e,decrypt:!0});throw new TypeError("invalid suite type")}t.createCipher=t.Cipher=function(e,t){var r,n;if(e=e.toLowerCase(),o[e])r=o[e].key,n=o[e].iv;else{if(!a[e])throw new TypeError("invalid suite type");r=8*a[e].key,n=a[e].iv}var i=s(t,!1,r,n);return u(e,i.key,i.iv)},t.createCipheriv=t.Cipheriv=u,t.createDecipher=t.Decipher=function(e,t){var r,n;if(e=e.toLowerCase(),o[e])r=o[e].key,n=o[e].iv;else{if(!a[e])throw new TypeError("invalid suite type");r=8*a[e].key,n=a[e].iv}var i=s(t,!1,r,n);return c(e,i.key,i.iv)},t.createDecipheriv=t.Decipheriv=c,t.listCiphers=t.getCiphers=function(){return Object.keys(a).concat(i.getCiphers())}},"56ab":function(e,t,r){"use strict";const n=r("2c2e"),i=r("a6ce");function o(e){i.call(this,e),this.enc="pem"}n(o,i),e.exports=o,o.prototype.encode=function(e,t){const r=i.prototype.encode.call(this,e),n=r.toString("base64"),o=["-----BEGIN "+t.label+"-----"];for(let i=0;i<n.length;i+=64)o.push(n.slice(i,i+64));return o.push("-----END "+t.label+"-----"),o.join("\n")}},"56c5":function(e,t,r){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.DataMaskValues=void 0,t.DataMaskValues=n,function(e){e[e["DATA_MASK_000"]=0]="DATA_MASK_000",e[e["DATA_MASK_001"]=1]="DATA_MASK_001",e[e["DATA_MASK_010"]=2]="DATA_MASK_010",e[e["DATA_MASK_011"]=3]="DATA_MASK_011",e[e["DATA_MASK_100"]=4]="DATA_MASK_100",e[e["DATA_MASK_101"]=5]="DATA_MASK_101",e[e["DATA_MASK_110"]=6]="DATA_MASK_110",e[e["DATA_MASK_111"]=7]="DATA_MASK_111"}(n||(t.DataMaskValues=n={}));var i=function(){function e(e,t){this.value=e,this.isMasked=t}return e.prototype.unmaskBitMatrix=function(e,t){for(var r=0;r<t;r++)for(var n=0;n<t;n++)this.isMasked(r,n)&&e.flip(n,r)},e.values=new Map([[n.DATA_MASK_000,new e(n.DATA_MASK_000,(function(e,t){return 0===(e+t&1)}))],[n.DATA_MASK_001,new e(n.DATA_MASK_001,(function(e,t){return 0===(1&e)}))],[n.DATA_MASK_010,new e(n.DATA_MASK_010,(function(e,t){return t%3===0}))],[n.DATA_MASK_011,new e(n.DATA_MASK_011,(function(e,t){return(e+t)%3===0}))],[n.DATA_MASK_100,new e(n.DATA_MASK_100,(function(e,t){return 0===(Math.floor(e/2)+Math.floor(t/3)&1)}))],[n.DATA_MASK_101,new e(n.DATA_MASK_101,(function(e,t){return e*t%6===0}))],[n.DATA_MASK_110,new e(n.DATA_MASK_110,(function(e,t){return e*t%6<3}))],[n.DATA_MASK_111,new e(n.DATA_MASK_111,(function(e,t){return 0===(e+t+e*t%3&1)}))]]),e}(),o=i;t.default=o},"56c53":function(e,t,r){"use strict";(function(e){var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("18a6")),o={install:function(){try{this.addDefUniApiListen(),this.onNetworkStatusChange(),this.scanCodeListen(),this.onLocaleChange()}catch(e){console.log("uniListen error",e)}},addDefUniApiListen:function(){var t={downloadFile:function(e){(0,i.default)("downloadFile>"+(e&&e.url?e.url:""))},connectSocket:function(e){(0,i.default)("connectSocket>"+e.url)},makePhoneCall:function(e){(0,i.default)("makePhoneCall>"+e.phoneNumber)},addPhoneContact:function(e){(0,i.default)("addPhoneContact>"+e.name)},showToast:function(e){(0,i.default)("showToast>"+e.title)},showModal:function(e){(0,i.default)("showModal>"+e.title+">"+e.content)},setLocale:function(e){(0,i.default)("setLocale>"+e)},saveFile:function(e){(0,i.default)("saveFile>"+e.tempFilePath)},login:function(e){(0,i.default)("login>"+JSON.stringify(e))},share:function(e){(0,i.default)("share>"+JSON.stringify(e))},shareWithSystem:function(e){(0,i.default)("shareWithSystem>"+JSON.stringify(e))},requestPayment:function(e){(0,i.default)("requestPayment>"+JSON.stringify(e))},authorize:function(e){(0,i.default)("requestPayment>"+e.scope)},navigateToMiniProgram:function(e){(0,i.default)("navigateToMiniProgram>"+e.appId+">"+e.path)},openDocument:function(e){(0,i.default)("openDocument>"+e.filePath)}},r=function(r){e.addInterceptor(r,{invoke:function(e){try{t[r](e)}catch(n){console.error("addInterceptor=>"+r,n)}}})};for(var n in t)r(n);["uploadFile","closeSocket","getLocation","chooseLocation","openLocation","chooseImage","previewImage","saveImageToPhotosAlbum","chooseFile","chooseVideo","chooseMedia","saveVideoToPhotosAlbum","openVideoEditor","openAppAuthorizeSetting","startAccelerometer","startCompass","startGyroscope","setScreenBrightness","vibrate","vibrateLong","vibrateShort","openBluetoothAdapter","startBeaconDiscovery","startSoterAuthentication","hideKeyboard","showActionSheet","startPullDownRefresh","showShareMenu","startFacialRecognitionVerify","openSetting","chooseAddress","chooseInvoiceTitle","openEmbeddedMiniProgram"].map((function(t){e.addInterceptor(t,{invoke:function(e){try{(0,i.default)(t)}catch(r){console.error("addInterceptor>"+t,r)}}})}))},onNetworkStatusChange:function(){e.onNetworkStatusChange((function(e){try{(0,i.default)("onNetworkStatusChange>isConnected:"+(e.isConnected?"true":"false")+">networkType:"+e.networkType)}catch(t){console.log("onNetworkStatusChange",t)}}))},onThemeChange:function(){e.onThemeChange((function(e){try{(0,i.default)("onThemeChange>"+e.theme)}catch(t){console.log("onThemeChange",t)}}))},scanCodeListen:function(){e.addInterceptor("scanCode",{success:function(e){try{(0,i.default)("scanCodeSuccess>"+JSON.stringify({scanType:e.scanType,result:e.result}))}catch(t){console.log("scanCode",t)}}})},onLocaleChange:function(){e.onLocaleChange((function(e){try{(0,i.default)("onLocaleChange>"+e)}catch(t){console.log("onLocaleChange",t)}}))}};t.default=o}).call(this,r("df3c")["default"])},5847:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("b717")),o=n(r("7e0b")),a=n(r("76a0")),s=n(r("f228")),u=n(r("0c24")),c=n(r("37ed")),f=n(r("1ff8")),l=n(r("cffa")),d=n(r("08b1")),h=function(){function e(){this.decoder=new l.default}return e.prototype.decode=function(t,r){var n,o;if(void 0===r&&(r=null),null!=r&&r.has(a.default.PURE_BARCODE)){var s=e.extractPureBits(t.getBlackMatrix());n=this.decoder.decode(s),o=e.NO_POINTS}else{var l=new d.default(t.getBlackMatrix()).detect();n=this.decoder.decode(l.getBits()),o=l.getPoints()}var h=n.getRawBytes(),p=new u.default(n.getText(),h,8*h.length,o,i.default.DATA_MATRIX,f.default.currentTimeMillis()),g=n.getByteSegments();null!=g&&p.putMetadata(c.default.BYTE_SEGMENTS,g);var y=n.getECLevel();return null!=y&&p.putMetadata(c.default.ERROR_CORRECTION_LEVEL,y),p},e.prototype.reset=function(){},e.extractPureBits=function(e){var t=e.getTopLeftOnBit(),r=e.getBottomRightOnBit();if(null==t||null==r)throw new s.default;var n=this.moduleSize(t,e),i=t[1],a=r[1],u=t[0],c=r[0],f=(c-u+1)/n,l=(a-i+1)/n;if(f<=0||l<=0)throw new s.default;var d=n/2;i+=d,u+=d;for(var h=new o.default(f,l),p=0;p<l;p++)for(var g=i+p*n,y=0;y<f;y++)e.get(u+y*n,g)&&h.set(y,p);return h},e.moduleSize=function(e,t){var r=t.getWidth(),n=e[0],i=e[1];while(n<r&&t.get(n,i))n++;if(n===r)throw new s.default;var o=n-e[0];if(0===o)throw new s.default;return o},e.NO_POINTS=[],e}(),p=h;t.default=p},"58a3":function(e,t,r){"use strict";(function(e){var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("3b2d")),o={props:{localdata:{type:[Array,Object],default:function(){return[]}},spaceInfo:{type:Object,default:function(){return{}}},collection:{type:String,default:""},action:{type:String,default:""},field:{type:String,default:""},orderby:{type:String,default:""},where:{type:[String,Object],default:""},pageData:{type:String,default:"add"},pageCurrent:{type:Number,default:1},pageSize:{type:Number,default:20},getcount:{type:[Boolean,String],default:!1},getone:{type:[Boolean,String],default:!1},gettree:{type:[Boolean,String],default:!1},manual:{type:Boolean,default:!1},value:{type:[Array,String,Number],default:function(){return[]}},modelValue:{type:[Array,String,Number],default:function(){return[]}},preload:{type:Boolean,default:!1},stepSearh:{type:Boolean,default:!0},selfField:{type:String,default:""},parentField:{type:String,default:""},multiple:{type:Boolean,default:!1},map:{type:Object,default:function(){return{text:"text",value:"value"}}}},data:function(){return{loading:!1,errorMessage:"",loadMore:{contentdown:"",contentrefresh:"",contentnomore:""},dataList:[],selected:[],selectedIndex:0,page:{current:this.pageCurrent,size:this.pageSize,count:0}}},computed:{isLocaldata:function(){return!this.collection.length},postField:function(){var e=[this.field];return this.parentField&&e.push("".concat(this.parentField," as parent_value")),e.join(",")},dataValue:function(){var e=Array.isArray(this.modelValue)?this.modelValue.length>0:null!==this.modelValue||void 0!==this.modelValue;return e?this.modelValue:this.value},hasValue:function(){return"number"===typeof this.dataValue||null!=this.dataValue&&this.dataValue.length>0}},created:function(){var e=this;this.$watch((function(){var t=[];return["pageCurrent","pageSize","spaceInfo","value","modelValue","localdata","collection","action","field","orderby","where","getont","getcount","gettree"].forEach((function(r){t.push(e[r])})),t}),(function(t,r){for(var n=2;n<t.length;n++)if(t[n]!=r[n]){!0;break}t[0]!=r[0]&&(e.page.current=e.pageCurrent),e.page.size=e.pageSize,e.onPropsChange()})),this._treeData=[]},methods:{onPropsChange:function(){this._treeData=[]},getCommand:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.database(this.spaceInfo),n=t.action||this.action;n&&(r=r.action(n));var i=t.collection||this.collection;r=r.collection(i);var o=t.where||this.where;o&&Object.keys(o).length&&(r=r.where(o));var a=t.field||this.field;a&&(r=r.field(a));var s=t.orderby||this.orderby;s&&(r=r.orderBy(s));var u=void 0!==t.pageCurrent?t.pageCurrent:this.page.current,c=void 0!==t.pageSize?t.pageSize:this.page.size,f=void 0!==t.getcount?t.getcount:this.getcount,l=void 0!==t.gettree?t.gettree:this.gettree,d={getCount:f,getTree:l};return t.getTreePath&&(d.getTreePath=t.getTreePath),r=r.skip(c*(u-1)).limit(c).get(d),r},getNodeData:function(e){var t=this;this.loading||(this.loading=!0,this.getCommand({field:this.postField,where:this._pathWhere()}).then((function(r){t.loading=!1,t.selected=r.result.data,e&&e()})).catch((function(e){t.loading=!1,t.errorMessage=e})))},getTreePath:function(e){var t=this;this.loading||(this.loading=!0,this.getCommand({field:this.postField,getTreePath:{startWith:"".concat(this.selfField,"=='").concat(this.dataValue,"'")}}).then((function(r){t.loading=!1;var n=[];t._extractTreePath(r.result.data,n),t.selected=n,e&&e()})).catch((function(e){t.loading=!1,t.errorMessage=e})))},loadData:function(){var e=this;this.isLocaldata?this._processLocalData():null==this.dataValue?this.stepSearh?this._loadNodeData((function(t){e._treeData=t,e._updateBindData()})):this._loadAllData((function(t){e._treeData=[],e._extractTree(t,e._treeData,null),e._updateBindData()})):this._loadNodeData((function(t){e._treeData=t,e._updateBindData(),e._updateSelected()}))},_loadAllData:function(e){var t=this;this.loading||(this.loading=!0,this.getCommand({field:this.postField,gettree:!0,startwith:"".concat(this.selfField,"=='").concat(this.dataValue,"'")}).then((function(r){t.loading=!1,e(r.result.data),t.onDataChange()})).catch((function(e){t.loading=!1,t.errorMessage=e})))},_loadNodeData:function(e,t){var r=this;this.loading||(this.loading=!0,this.getCommand({field:this.postField,where:t||this._postWhere(),pageSize:500}).then((function(t){r.loading=!1,e(t.result.data),r.onDataChange()})).catch((function(e){r.loading=!1,r.errorMessage=e})))},_pathWhere:function(){var e=[],t=this._getParentNameByField();return t&&e.push("".concat(t," == '").concat(this.dataValue,"'")),this.where?"(".concat(this.where,") && (").concat(e.join(" || "),")"):e.join(" || ")},_postWhere:function(){var e=[],t=this.selected,r=this.parentField;if(r&&e.push("".concat(r," == null || ").concat(r,' == ""')),t.length)for(var n=0;n<t.length-1;n++)e.push("".concat(r," == '").concat(t[n].value,"'"));var i=[];return this.where&&i.push("(".concat(this.where,")")),e.length&&i.push("(".concat(e.join(" || "),")")),i.join(" && ")},_nodeWhere:function(){var e=[],t=this.selected;return t.length&&e.push("".concat(this.parentField," == '").concat(t[t.length-1].value,"'")),this.where?"(".concat(this.where,") && (").concat(e.join(" || "),")"):e.join(" || ")},_getParentNameByField:function(){for(var e=this.field.split(","),t=null,r=0;r<e.length;r++){var n=e[r].split("as");if(!(n.length<2)&&"value"===n[1].trim()){t=n[0].trim();break}}return t},_isTreeView:function(){return this.parentField&&this.selfField},_updateSelected:function(){for(var e=this.dataList,t=this.selected,r=this.map.text,n=this.map.value,i=0;i<t.length;i++)for(var o=t[i].value,a=e[i],s=0;s<a.length;s++){var u=a[s];if(u[n]===o){t[i].text=u[r];break}}},_updateBindData:function(e){var t=this._filterData(this._treeData,this.selected),r=t.dataList,n=t.hasNodes,i=!1===this._stepSearh&&!n;return e&&(e.isleaf=i),this.dataList=r,this.selectedIndex=r.length-1,!i&&this.selected.length<r.length&&this.selected.push({value:null,text:"请选择"}),{isleaf:i,hasNodes:n}},_filterData:function(e,t){var r=[],n=!0;r.push(e.filter((function(e){return null===e.parent_value||void 0===e.parent_value||""===e.parent_value})));for(var i=0;i<t.length;i++){var o=t[i].value,a=e.filter((function(e){return e.parent_value===o}));a.length?r.push(a):n=!1}return{dataList:r,hasNodes:n}},_extractTree:function(e,t,r){for(var n=this.map.value,i=0;i<e.length;i++){var o=e[i],a={};for(var s in o)"children"!==s&&(a[s]=o[s]);null!==r&&void 0!==r&&""!==r&&(a.parent_value=r),t.push(a);var u=o.children;u&&this._extractTree(u,t,o[n])}},_extractTreePath:function(e,t){for(var r=0;r<e.length;r++){var n=e[r],i={};for(var o in n)"children"!==o&&(i[o]=n[o]);t.push(i);var a=n.children;a&&this._extractTreePath(a,t)}},_findNodePath:function(e,t){for(var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=this.map.text,i=this.map.value,o=0;o<t.length;o++){var a=t[o],s=a.children,u=a[n],c=a[i];if(r.push({value:c,text:u}),c===e)return r;if(s){var f=this._findNodePath(e,s,r);if(f.length)return f}r.pop()}return[]},_processLocalData:function(){this._treeData=[],this._extractTree(this.localdata,this._treeData);var e=this.dataValue;void 0!==e&&(Array.isArray(e)&&(e=e[e.length-1],"object"===(0,i.default)(e)&&e[this.map.value]&&(e=e[this.map.value])),this.selected=this._findNodePath(e,this.localdata))}}};t.default=o}).call(this,r("861b")["uniCloud"])},5935:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("8d76")),o=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),a=function(e){function t(t){return e.call(this,t)||this}return o(t,e),t.prototype.encodeCompressedGtin=function(e,t){e.append("(01)");var r=e.length();e.append("9"),this.encodeCompressedGtinWithoutAI(e,t,r)},t.prototype.encodeCompressedGtinWithoutAI=function(e,r,n){for(var i=0;i<4;++i){var o=this.getGeneralDecoder().extractNumericValueFromBitArray(r+10*i,10);o/100===0&&e.append("0"),o/10===0&&e.append("0"),e.append(o)}t.appendCheckDigit(e,n)},t.appendCheckDigit=function(e,t){for(var r=0,n=0;n<13;n++){var i=e.charAt(n+t).charCodeAt(0)-"0".charCodeAt(0);r+=0===(1&n)?3*i:i}r=10-r%10,10===r&&(r=0),e.append(r)},t.GTIN_SIZE=40,t}(i.default),s=a;t.default=s},"59e88":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("36d3")),o=n(r("8e8c")),a=n(r("e5d0")),s=n(r("f7fd")),u=n(r("483b")),c=n(r("1ff8")),f=n(r("1581")),l=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),d=function(e){function t(t){void 0===t&&(t=32);var r=e.call(this)||this;if(r.count=0,t<0)throw new s.default("Negative initial size: "+t);return r.buf=new Uint8Array(t),r}return l(t,e),t.prototype.ensureCapacity=function(e){e-this.buf.length>0&&this.grow(e)},t.prototype.grow=function(e){var t=this.buf.length,r=t<<1;if(r-e<0&&(r=e),r<0){if(e<0)throw new u.default;r=a.default.MAX_VALUE}this.buf=i.default.copyOfUint8Array(this.buf,r)},t.prototype.write=function(e){this.ensureCapacity(this.count+1),this.buf[this.count]=e,this.count+=1},t.prototype.writeBytesOffset=function(e,t,r){if(t<0||t>e.length||r<0||t+r-e.length>0)throw new f.default;this.ensureCapacity(this.count+r),c.default.arraycopy(e,t,this.buf,this.count,r),this.count+=r},t.prototype.writeTo=function(e){e.writeBytesOffset(this.buf,0,this.count)},t.prototype.reset=function(){this.count=0},t.prototype.toByteArray=function(){return i.default.copyOfUint8Array(this.buf,this.count)},t.prototype.size=function(){return this.count},t.prototype.toString=function(e){return e?"string"===typeof e?this.toString_string(e):this.toString_number(e):this.toString_void()},t.prototype.toString_void=function(){return new String(this.buf).toString()},t.prototype.toString_string=function(e){return new String(this.buf).toString()},t.prototype.toString_number=function(e){return new String(this.buf).toString()},t.prototype.close=function(){},t}(o.default),h=d;t.default=h},"5a0c":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("36d3")),o=n(r("c769")),a=function(e){var t="function"===typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},s=function(){function e(){}return e.prototype.PDF417Common=function(){},e.getBitCountSum=function(e){return o.default.sum(e)},e.toIntArray=function(t){var r,n;if(null==t||!t.length)return e.EMPTY_INT_ARRAY;var i=new Int32Array(t.length),o=0;try{for(var s=a(t),u=s.next();!u.done;u=s.next()){var c=u.value;i[o++]=c}}catch(f){r={error:f}}finally{try{u&&!u.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}return i},e.getCodeword=function(t){var r=i.default.binarySearch(e.SYMBOL_TABLE,262143&t);return r<0?-1:(e.CODEWORD_TABLE[r]-1)%e.NUMBER_OF_CODEWORDS},e.NUMBER_OF_CODEWORDS=929,e.MAX_CODEWORDS_IN_BARCODE=e.NUMBER_OF_CODEWORDS-1,e.MIN_ROWS_IN_BARCODE=3,e.MAX_ROWS_IN_BARCODE=90,e.MODULES_IN_CODEWORD=17,e.MODULES_IN_STOP_PATTERN=18,e.BARS_IN_MODULE=8,e.EMPTY_INT_ARRAY=new Int32Array([]),e.SYMBOL_TABLE=Int32Array.from([66142,66170,66206,66236,66290,66292,66350,66382,66396,66454,66470,66476,66594,66600,66614,66626,66628,66632,66640,66654,66662,66668,66682,66690,66718,66720,66748,66758,66776,66798,66802,66804,66820,66824,66832,66846,66848,66876,66880,66936,66950,66956,66968,66992,67006,67022,67036,67042,67044,67048,67062,67118,67150,67164,67214,67228,67256,67294,67322,67350,67366,67372,67398,67404,67416,67438,67474,67476,67490,67492,67496,67510,67618,67624,67650,67656,67664,67678,67686,67692,67706,67714,67716,67728,67742,67744,67772,67782,67788,67800,67822,67826,67828,67842,67848,67870,67872,67900,67904,67960,67974,67992,68016,68030,68046,68060,68066,68068,68072,68086,68104,68112,68126,68128,68156,68160,68216,68336,68358,68364,68376,68400,68414,68448,68476,68494,68508,68536,68546,68548,68552,68560,68574,68582,68588,68654,68686,68700,68706,68708,68712,68726,68750,68764,68792,68802,68804,68808,68816,68830,68838,68844,68858,68878,68892,68920,68976,68990,68994,68996,69e3,69008,69022,69024,69052,69062,69068,69080,69102,69106,69108,69142,69158,69164,69190,69208,69230,69254,69260,69272,69296,69310,69326,69340,69386,69394,69396,69410,69416,69430,69442,69444,69448,69456,69470,69478,69484,69554,69556,69666,69672,69698,69704,69712,69726,69754,69762,69764,69776,69790,69792,69820,69830,69836,69848,69870,69874,69876,69890,69918,69920,69948,69952,70008,70022,70040,70064,70078,70094,70108,70114,70116,70120,70134,70152,70174,70176,70264,70384,70412,70448,70462,70496,70524,70542,70556,70584,70594,70600,70608,70622,70630,70636,70664,70672,70686,70688,70716,70720,70776,70896,71136,71180,71192,71216,71230,71264,71292,71360,71416,71452,71480,71536,71550,71554,71556,71560,71568,71582,71584,71612,71622,71628,71640,71662,71726,71732,71758,71772,71778,71780,71784,71798,71822,71836,71864,71874,71880,71888,71902,71910,71916,71930,71950,71964,71992,72048,72062,72066,72068,72080,72094,72096,72124,72134,72140,72152,72174,72178,72180,72206,72220,72248,72304,72318,72416,72444,72456,72464,72478,72480,72508,72512,72568,72588,72600,72624,72638,72654,72668,72674,72676,72680,72694,72726,72742,72748,72774,72780,72792,72814,72838,72856,72880,72894,72910,72924,72930,72932,72936,72950,72966,72972,72984,73008,73022,73056,73084,73102,73116,73144,73156,73160,73168,73182,73190,73196,73210,73226,73234,73236,73250,73252,73256,73270,73282,73284,73296,73310,73318,73324,73346,73348,73352,73360,73374,73376,73404,73414,73420,73432,73454,73498,73518,73522,73524,73550,73564,73570,73572,73576,73590,73800,73822,73858,73860,73872,73886,73888,73916,73944,73970,73972,73992,74014,74016,74044,74048,74104,74118,74136,74160,74174,74210,74212,74216,74230,74244,74256,74270,74272,74360,74480,74502,74508,74544,74558,74592,74620,74638,74652,74680,74690,74696,74704,74726,74732,74782,74784,74812,74992,75232,75288,75326,75360,75388,75456,75512,75576,75632,75646,75650,75652,75664,75678,75680,75708,75718,75724,75736,75758,75808,75836,75840,75896,76016,76256,76736,76824,76848,76862,76896,76924,76992,77048,77296,77340,77368,77424,77438,77536,77564,77572,77576,77584,77600,77628,77632,77688,77702,77708,77720,77744,77758,77774,77788,77870,77902,77916,77922,77928,77966,77980,78008,78018,78024,78032,78046,78060,78074,78094,78136,78192,78206,78210,78212,78224,78238,78240,78268,78278,78284,78296,78322,78324,78350,78364,78448,78462,78560,78588,78600,78622,78624,78652,78656,78712,78726,78744,78768,78782,78798,78812,78818,78820,78824,78838,78862,78876,78904,78960,78974,79072,79100,79296,79352,79368,79376,79390,79392,79420,79424,79480,79600,79628,79640,79664,79678,79712,79740,79772,79800,79810,79812,79816,79824,79838,79846,79852,79894,79910,79916,79942,79948,79960,79982,79988,80006,80024,80048,80062,80078,80092,80098,80100,80104,80134,80140,80176,80190,80224,80252,80270,80284,80312,80328,80336,80350,80358,80364,80378,80390,80396,80408,80432,80446,80480,80508,80576,80632,80654,80668,80696,80752,80766,80776,80784,80798,80800,80828,80844,80856,80878,80882,80884,80914,80916,80930,80932,80936,80950,80962,80968,80976,80990,80998,81004,81026,81028,81040,81054,81056,81084,81094,81100,81112,81134,81154,81156,81160,81168,81182,81184,81212,81216,81272,81286,81292,81304,81328,81342,81358,81372,81380,81384,81398,81434,81454,81458,81460,81486,81500,81506,81508,81512,81526,81550,81564,81592,81602,81604,81608,81616,81630,81638,81644,81702,81708,81722,81734,81740,81752,81774,81778,81780,82050,82078,82080,82108,82180,82184,82192,82206,82208,82236,82240,82296,82316,82328,82352,82366,82402,82404,82408,82440,82448,82462,82464,82492,82496,82552,82672,82694,82700,82712,82736,82750,82784,82812,82830,82882,82884,82888,82896,82918,82924,82952,82960,82974,82976,83004,83008,83064,83184,83424,83468,83480,83504,83518,83552,83580,83648,83704,83740,83768,83824,83838,83842,83844,83848,83856,83872,83900,83910,83916,83928,83950,83984,84e3,84028,84032,84088,84208,84448,84928,85040,85054,85088,85116,85184,85240,85488,85560,85616,85630,85728,85756,85764,85768,85776,85790,85792,85820,85824,85880,85894,85900,85912,85936,85966,85980,86048,86080,86136,86256,86496,86976,88160,88188,88256,88312,88560,89056,89200,89214,89312,89340,89536,89592,89608,89616,89632,89664,89720,89840,89868,89880,89904,89952,89980,89998,90012,90040,90190,90204,90254,90268,90296,90306,90308,90312,90334,90382,90396,90424,90480,90494,90500,90504,90512,90526,90528,90556,90566,90572,90584,90610,90612,90638,90652,90680,90736,90750,90848,90876,90884,90888,90896,90910,90912,90940,90944,91e3,91014,91020,91032,91056,91070,91086,91100,91106,91108,91112,91126,91150,91164,91192,91248,91262,91360,91388,91584,91640,91664,91678,91680,91708,91712,91768,91888,91928,91952,91966,92e3,92028,92046,92060,92088,92098,92100,92104,92112,92126,92134,92140,92188,92216,92272,92384,92412,92608,92664,93168,93200,93214,93216,93244,93248,93304,93424,93664,93720,93744,93758,93792,93820,93888,93944,93980,94008,94064,94078,94084,94088,94096,94110,94112,94140,94150,94156,94168,94246,94252,94278,94284,94296,94318,94342,94348,94360,94384,94398,94414,94428,94440,94470,94476,94488,94512,94526,94560,94588,94606,94620,94648,94658,94660,94664,94672,94686,94694,94700,94714,94726,94732,94744,94768,94782,94816,94844,94912,94968,94990,95004,95032,95088,95102,95112,95120,95134,95136,95164,95180,95192,95214,95218,95220,95244,95256,95280,95294,95328,95356,95424,95480,95728,95758,95772,95800,95856,95870,95968,95996,96008,96016,96030,96032,96060,96064,96120,96152,96176,96190,96220,96226,96228,96232,96290,96292,96296,96310,96322,96324,96328,96336,96350,96358,96364,96386,96388,96392,96400,96414,96416,96444,96454,96460,96472,96494,96498,96500,96514,96516,96520,96528,96542,96544,96572,96576,96632,96646,96652,96664,96688,96702,96718,96732,96738,96740,96744,96758,96772,96776,96784,96798,96800,96828,96832,96888,97008,97030,97036,97048,97072,97086,97120,97148,97166,97180,97208,97220,97224,97232,97246,97254,97260,97326,97330,97332,97358,97372,97378,97380,97384,97398,97422,97436,97464,97474,97476,97480,97488,97502,97510,97516,97550,97564,97592,97648,97666,97668,97672,97680,97694,97696,97724,97734,97740,97752,97774,97830,97836,97850,97862,97868,97880,97902,97906,97908,97926,97932,97944,97968,97998,98012,98018,98020,98024,98038,98618,98674,98676,98838,98854,98874,98892,98904,98926,98930,98932,98968,99006,99042,99044,99048,99062,99166,99194,99246,99286,99350,99366,99372,99386,99398,99416,99438,99442,99444,99462,99504,99518,99534,99548,99554,99556,99560,99574,99590,99596,99608,99632,99646,99680,99708,99726,99740,99768,99778,99780,99784,99792,99806,99814,99820,99834,99858,99860,99874,99880,99894,99906,99920,99934,99962,99970,99972,99976,99984,99998,1e5,100028,100038,100044,100056,100078,100082,100084,100142,100174,100188,100246,100262,100268,100306,100308,100390,100396,100410,100422,100428,100440,100462,100466,100468,100486,100504,100528,100542,100558,100572,100578,100580,100584,100598,100620,100656,100670,100704,100732,100750,100792,100802,100808,100816,100830,100838,100844,100858,100888,100912,100926,100960,100988,101056,101112,101148,101176,101232,101246,101250,101252,101256,101264,101278,101280,101308,101318,101324,101336,101358,101362,101364,101410,101412,101416,101430,101442,101448,101456,101470,101478,101498,101506,101508,101520,101534,101536,101564,101580,101618,101620,101636,101640,101648,101662,101664,101692,101696,101752,101766,101784,101838,101858,101860,101864,101934,101938,101940,101966,101980,101986,101988,101992,102030,102044,102072,102082,102084,102088,102096,102138,102166,102182,102188,102214,102220,102232,102254,102282,102290,102292,102306,102308,102312,102326,102444,102458,102470,102476,102488,102514,102516,102534,102552,102576,102590,102606,102620,102626,102632,102646,102662,102668,102704,102718,102752,102780,102798,102812,102840,102850,102856,102864,102878,102886,102892,102906,102936,102974,103008,103036,103104,103160,103224,103280,103294,103298,103300,103312,103326,103328,103356,103366,103372,103384,103406,103410,103412,103472,103486,103520,103548,103616,103672,103920,103992,104048,104062,104160,104188,104194,104196,104200,104208,104224,104252,104256,104312,104326,104332,104344,104368,104382,104398,104412,104418,104420,104424,104482,104484,104514,104520,104528,104542,104550,104570,104578,104580,104592,104606,104608,104636,104652,104690,104692,104706,104712,104734,104736,104764,104768,104824,104838,104856,104910,104930,104932,104936,104968,104976,104990,104992,105020,105024,105080,105200,105240,105278,105312,105372,105410,105412,105416,105424,105446,105518,105524,105550,105564,105570,105572,105576,105614,105628,105656,105666,105672,105680,105702,105722,105742,105756,105784,105840,105854,105858,105860,105864,105872,105888,105932,105970,105972,106006,106022,106028,106054,106060,106072,106100,106118,106124,106136,106160,106174,106190,106210,106212,106216,106250,106258,106260,106274,106276,106280,106306,106308,106312,106320,106334,106348,106394,106414,106418,106420,106566,106572,106610,106612,106630,106636,106648,106672,106686,106722,106724,106728,106742,106758,106764,106776,106800,106814,106848,106876,106894,106908,106936,106946,106948,106952,106960,106974,106982,106988,107032,107056,107070,107104,107132,107200,107256,107292,107320,107376,107390,107394,107396,107400,107408,107422,107424,107452,107462,107468,107480,107502,107506,107508,107544,107568,107582,107616,107644,107712,107768,108016,108060,108088,108144,108158,108256,108284,108290,108292,108296,108304,108318,108320,108348,108352,108408,108422,108428,108440,108464,108478,108494,108508,108514,108516,108520,108592,108640,108668,108736,108792,109040,109536,109680,109694,109792,109820,110016,110072,110084,110088,110096,110112,110140,110144,110200,110320,110342,110348,110360,110384,110398,110432,110460,110478,110492,110520,110532,110536,110544,110558,110658,110686,110714,110722,110724,110728,110736,110750,110752,110780,110796,110834,110836,110850,110852,110856,110864,110878,110880,110908,110912,110968,110982,111e3,111054,111074,111076,111080,111108,111112,111120,111134,111136,111164,111168,111224,111344,111372,111422,111456,111516,111554,111556,111560,111568,111590,111632,111646,111648,111676,111680,111736,111856,112096,112152,112224,112252,112320,112440,112514,112516,112520,112528,112542,112544,112588,112686,112718,112732,112782,112796,112824,112834,112836,112840,112848,112870,112890,112910,112924,112952,113008,113022,113026,113028,113032,113040,113054,113056,113100,113138,113140,113166,113180,113208,113264,113278,113376,113404,113416,113424,113440,113468,113472,113560,113614,113634,113636,113640,113686,113702,113708,113734,113740,113752,113778,113780,113798,113804,113816,113840,113854,113870,113890,113892,113896,113926,113932,113944,113968,113982,114016,114044,114076,114114,114116,114120,114128,114150,114170,114194,114196,114210,114212,114216,114242,114244,114248,114256,114270,114278,114306,114308,114312,114320,114334,114336,114364,114380,114420,114458,114478,114482,114484,114510,114524,114530,114532,114536,114842,114866,114868,114970,114994,114996,115042,115044,115048,115062,115130,115226,115250,115252,115278,115292,115298,115300,115304,115318,115342,115394,115396,115400,115408,115422,115430,115436,115450,115478,115494,115514,115526,115532,115570,115572,115738,115758,115762,115764,115790,115804,115810,115812,115816,115830,115854,115868,115896,115906,115912,115920,115934,115942,115948,115962,115996,116024,116080,116094,116098,116100,116104,116112,116126,116128,116156,116166,116172,116184,116206,116210,116212,116246,116262,116268,116282,116294,116300,116312,116334,116338,116340,116358,116364,116376,116400,116414,116430,116444,116450,116452,116456,116498,116500,116514,116520,116534,116546,116548,116552,116560,116574,116582,116588,116602,116654,116694,116714,116762,116782,116786,116788,116814,116828,116834,116836,116840,116854,116878,116892,116920,116930,116936,116944,116958,116966,116972,116986,117006,117048,117104,117118,117122,117124,117136,117150,117152,117180,117190,117196,117208,117230,117234,117236,117304,117360,117374,117472,117500,117506,117508,117512,117520,117536,117564,117568,117624,117638,117644,117656,117680,117694,117710,117724,117730,117732,117736,117750,117782,117798,117804,117818,117830,117848,117874,117876,117894,117936,117950,117966,117986,117988,117992,118022,118028,118040,118064,118078,118112,118140,118172,118210,118212,118216,118224,118238,118246,118266,118306,118312,118338,118352,118366,118374,118394,118402,118404,118408,118416,118430,118432,118460,118476,118514,118516,118574,118578,118580,118606,118620,118626,118628,118632,118678,118694,118700,118730,118738,118740,118830,118834,118836,118862,118876,118882,118884,118888,118902,118926,118940,118968,118978,118980,118984,118992,119006,119014,119020,119034,119068,119096,119152,119166,119170,119172,119176,119184,119198,119200,119228,119238,119244,119256,119278,119282,119284,119324,119352,119408,119422,119520,119548,119554,119556,119560,119568,119582,119584,119612,119616,119672,119686,119692,119704,119728,119742,119758,119772,119778,119780,119784,119798,119920,119934,120032,120060,120256,120312,120324,120328,120336,120352,120384,120440,120560,120582,120588,120600,120624,120638,120672,120700,120718,120732,120760,120770,120772,120776,120784,120798,120806,120812,120870,120876,120890,120902,120908,120920,120946,120948,120966,120972,120984,121008,121022,121038,121058,121060,121064,121078,121100,121112,121136,121150,121184,121212,121244,121282,121284,121288,121296,121318,121338,121356,121368,121392,121406,121440,121468,121536,121592,121656,121730,121732,121736,121744,121758,121760,121804,121842,121844,121890,121922,121924,121928,121936,121950,121958,121978,121986,121988,121992,122e3,122014,122016,122044,122060,122098,122100,122116,122120,122128,122142,122144,122172,122176,122232,122246,122264,122318,122338,122340,122344,122414,122418,122420,122446,122460,122466,122468,122472,122510,122524,122552,122562,122564,122568,122576,122598,122618,122646,122662,122668,122694,122700,122712,122738,122740,122762,122770,122772,122786,122788,122792,123018,123026,123028,123042,123044,123048,123062,123098,123146,123154,123156,123170,123172,123176,123190,123202,123204,123208,123216,123238,123244,123258,123290,123314,123316,123402,123410,123412,123426,123428,123432,123446,123458,123464,123472,123486,123494,123500,123514,123522,123524,123528,123536,123552,123580,123590,123596,123608,123630,123634,123636,123674,123698,123700,123740,123746,123748,123752,123834,123914,123922,123924,123938,123944,123958,123970,123976,123984,123998,124006,124012,124026,124034,124036,124048,124062,124064,124092,124102,124108,124120,124142,124146,124148,124162,124164,124168,124176,124190,124192,124220,124224,124280,124294,124300,124312,124336,124350,124366,124380,124386,124388,124392,124406,124442,124462,124466,124468,124494,124508,124514,124520,124558,124572,124600,124610,124612,124616,124624,124646,124666,124694,124710,124716,124730,124742,124748,124760,124786,124788,124818,124820,124834,124836,124840,124854,124946,124948,124962,124964,124968,124982,124994,124996,125e3,125008,125022,125030,125036,125050,125058,125060,125064,125072,125086,125088,125116,125126,125132,125144,125166,125170,125172,125186,125188,125192,125200,125216,125244,125248,125304,125318,125324,125336,125360,125374,125390,125404,125410,125412,125416,125430,125444,125448,125456,125472,125504,125560,125680,125702,125708,125720,125744,125758,125792,125820,125838,125852,125880,125890,125892,125896,125904,125918,125926,125932,125978,125998,126002,126004,126030,126044,126050,126052,126056,126094,126108,126136,126146,126148,126152,126160,126182,126202,126222,126236,126264,126320,126334,126338,126340,126344,126352,126366,126368,126412,126450,126452,126486,126502,126508,126522,126534,126540,126552,126574,126578,126580,126598,126604,126616,126640,126654,126670,126684,126690,126692,126696,126738,126754,126756,126760,126774,126786,126788,126792,126800,126814,126822,126828,126842,126894,126898,126900,126934,127126,127142,127148,127162,127178,127186,127188,127254,127270,127276,127290,127302,127308,127320,127342,127346,127348,127370,127378,127380,127394,127396,127400,127450,127510,127526,127532,127546,127558,127576,127598,127602,127604,127622,127628,127640,127664,127678,127694,127708,127714,127716,127720,127734,127754,127762,127764,127778,127784,127810,127812,127816,127824,127838,127846,127866,127898,127918,127922,127924,128022,128038,128044,128058,128070,128076,128088,128110,128114,128116,128134,128140,128152,128176,128190,128206,128220,128226,128228,128232,128246,128262,128268,128280,128304,128318,128352,128380,128398,128412,128440,128450,128452,128456,128464,128478,128486,128492,128506,128522,128530,128532,128546,128548,128552,128566,128578,128580,128584,128592,128606,128614,128634,128642,128644,128648,128656,128670,128672,128700,128716,128754,128756,128794,128814,128818,128820,128846,128860,128866,128868,128872,128886,128918,128934,128940,128954,128978,128980,129178,129198,129202,129204,129238,129258,129306,129326,129330,129332,129358,129372,129378,129380,129384,129398,129430,129446,129452,129466,129482,129490,129492,129562,129582,129586,129588,129614,129628,129634,129636,129640,129654,129678,129692,129720,129730,129732,129736,129744,129758,129766,129772,129814,129830,129836,129850,129862,129868,129880,129902,129906,129908,129930,129938,129940,129954,129956,129960,129974,130010]),e.CODEWORD_TABLE=Int32Array.from([2627,1819,2622,2621,1813,1812,2729,2724,2723,2779,2774,2773,902,896,908,868,865,861,859,2511,873,871,1780,835,2493,825,2491,842,837,844,1764,1762,811,810,809,2483,807,2482,806,2480,815,814,813,812,2484,817,816,1745,1744,1742,1746,2655,2637,2635,2626,2625,2623,2628,1820,2752,2739,2737,2728,2727,2725,2730,2785,2783,2778,2777,2775,2780,787,781,747,739,736,2413,754,752,1719,692,689,681,2371,678,2369,700,697,694,703,1688,1686,642,638,2343,631,2341,627,2338,651,646,643,2345,654,652,1652,1650,1647,1654,601,599,2322,596,2321,594,2319,2317,611,610,608,606,2324,603,2323,615,614,612,1617,1616,1614,1612,616,1619,1618,2575,2538,2536,905,901,898,909,2509,2507,2504,870,867,864,860,2512,875,872,1781,2490,2489,2487,2485,1748,836,834,832,830,2494,827,2492,843,841,839,845,1765,1763,2701,2676,2674,2653,2648,2656,2634,2633,2631,2629,1821,2638,2636,2770,2763,2761,2750,2745,2753,2736,2735,2733,2731,1848,2740,2738,2786,2784,591,588,576,569,566,2296,1590,537,534,526,2276,522,2274,545,542,539,548,1572,1570,481,2245,466,2242,462,2239,492,485,482,2249,496,494,1534,1531,1528,1538,413,2196,406,2191,2188,425,419,2202,415,2199,432,430,427,1472,1467,1464,433,1476,1474,368,367,2160,365,2159,362,2157,2155,2152,378,377,375,2166,372,2165,369,2162,383,381,379,2168,1419,1418,1416,1414,385,1411,384,1423,1422,1420,1424,2461,802,2441,2439,790,786,783,794,2409,2406,2403,750,742,738,2414,756,753,1720,2367,2365,2362,2359,1663,693,691,684,2373,680,2370,702,699,696,704,1690,1687,2337,2336,2334,2332,1624,2329,1622,640,637,2344,634,2342,630,2340,650,648,645,2346,655,653,1653,1651,1649,1655,2612,2597,2595,2571,2568,2565,2576,2534,2529,2526,1787,2540,2537,907,904,900,910,2503,2502,2500,2498,1768,2495,1767,2510,2508,2506,869,866,863,2513,876,874,1782,2720,2713,2711,2697,2694,2691,2702,2672,2670,2664,1828,2678,2675,2647,2646,2644,2642,1823,2639,1822,2654,2652,2650,2657,2771,1855,2765,2762,1850,1849,2751,2749,2747,2754,353,2148,344,342,336,2142,332,2140,345,1375,1373,306,2130,299,2128,295,2125,319,314,311,2132,1354,1352,1349,1356,262,257,2101,253,2096,2093,274,273,267,2107,263,2104,280,278,275,1316,1311,1308,1320,1318,2052,202,2050,2044,2040,219,2063,212,2060,208,2055,224,221,2066,1260,1258,1252,231,1248,229,1266,1264,1261,1268,155,1998,153,1996,1994,1991,1988,165,164,2007,162,2006,159,2003,2e3,172,171,169,2012,166,2010,1186,1184,1182,1179,175,1176,173,1192,1191,1189,1187,176,1194,1193,2313,2307,2305,592,589,2294,2292,2289,578,572,568,2297,580,1591,2272,2267,2264,1547,538,536,529,2278,525,2275,547,544,541,1574,1571,2237,2235,2229,1493,2225,1489,478,2247,470,2244,465,2241,493,488,484,2250,498,495,1536,1533,1530,1539,2187,2186,2184,2182,1432,2179,1430,2176,1427,414,412,2197,409,2195,405,2193,2190,426,424,421,2203,418,2201,431,429,1473,1471,1469,1466,434,1477,1475,2478,2472,2470,2459,2457,2454,2462,803,2437,2432,2429,1726,2443,2440,792,789,785,2401,2399,2393,1702,2389,1699,2411,2408,2405,745,741,2415,758,755,1721,2358,2357,2355,2353,1661,2350,1660,2347,1657,2368,2366,2364,2361,1666,690,687,2374,683,2372,701,698,705,1691,1689,2619,2617,2610,2608,2605,2613,2593,2588,2585,1803,2599,2596,2563,2561,2555,1797,2551,1795,2573,2570,2567,2577,2525,2524,2522,2520,1786,2517,1785,2514,1783,2535,2533,2531,2528,1788,2541,2539,906,903,911,2721,1844,2715,2712,1838,1836,2699,2696,2693,2703,1827,1826,1824,2673,2671,2669,2666,1829,2679,2677,1858,1857,2772,1854,1853,1851,1856,2766,2764,143,1987,139,1986,135,133,131,1984,128,1983,125,1981,138,137,136,1985,1133,1132,1130,112,110,1974,107,1973,104,1971,1969,122,121,119,117,1977,114,1976,124,1115,1114,1112,1110,1117,1116,84,83,1953,81,1952,78,1950,1948,1945,94,93,91,1959,88,1958,85,1955,99,97,95,1961,1086,1085,1083,1081,1078,100,1090,1089,1087,1091,49,47,1917,44,1915,1913,1910,1907,59,1926,56,1925,53,1922,1919,66,64,1931,61,1929,1042,1040,1038,71,1035,70,1032,68,1048,1047,1045,1043,1050,1049,12,10,1869,1867,1864,1861,21,1880,19,1877,1874,1871,28,1888,25,1886,22,1883,982,980,977,974,32,30,991,989,987,984,34,995,994,992,2151,2150,2147,2146,2144,356,355,354,2149,2139,2138,2136,2134,1359,343,341,338,2143,335,2141,348,347,346,1376,1374,2124,2123,2121,2119,1326,2116,1324,310,308,305,2131,302,2129,298,2127,320,318,316,313,2133,322,321,1355,1353,1351,1357,2092,2091,2089,2087,1276,2084,1274,2081,1271,259,2102,256,2100,252,2098,2095,272,269,2108,266,2106,281,279,277,1317,1315,1313,1310,282,1321,1319,2039,2037,2035,2032,1203,2029,1200,1197,207,2053,205,2051,201,2049,2046,2043,220,218,2064,215,2062,211,2059,228,226,223,2069,1259,1257,1254,232,1251,230,1267,1265,1263,2316,2315,2312,2311,2309,2314,2304,2303,2301,2299,1593,2308,2306,590,2288,2287,2285,2283,1578,2280,1577,2295,2293,2291,579,577,574,571,2298,582,581,1592,2263,2262,2260,2258,1545,2255,1544,2252,1541,2273,2271,2269,2266,1550,535,532,2279,528,2277,546,543,549,1575,1573,2224,2222,2220,1486,2217,1485,2214,1482,1479,2238,2236,2234,2231,1496,2228,1492,480,477,2248,473,2246,469,2243,490,487,2251,497,1537,1535,1532,2477,2476,2474,2479,2469,2468,2466,2464,1730,2473,2471,2453,2452,2450,2448,1729,2445,1728,2460,2458,2456,2463,805,804,2428,2427,2425,2423,1725,2420,1724,2417,1722,2438,2436,2434,2431,1727,2444,2442,793,791,788,795,2388,2386,2384,1697,2381,1696,2378,1694,1692,2402,2400,2398,2395,1703,2392,1701,2412,2410,2407,751,748,744,2416,759,757,1807,2620,2618,1806,1805,2611,2609,2607,2614,1802,1801,1799,2594,2592,2590,2587,1804,2600,2598,1794,1793,1791,1789,2564,2562,2560,2557,1798,2554,1796,2574,2572,2569,2578,1847,1846,2722,1843,1842,1840,1845,2716,2714,1835,1834,1832,1830,1839,1837,2700,2698,2695,2704,1817,1811,1810,897,862,1777,829,826,838,1760,1758,808,2481,1741,1740,1738,1743,2624,1818,2726,2776,782,740,737,1715,686,679,695,1682,1680,639,628,2339,647,644,1645,1643,1640,1648,602,600,597,595,2320,593,2318,609,607,604,1611,1610,1608,1606,613,1615,1613,2328,926,924,892,886,899,857,850,2505,1778,824,823,821,819,2488,818,2486,833,831,828,840,1761,1759,2649,2632,2630,2746,2734,2732,2782,2781,570,567,1587,531,527,523,540,1566,1564,476,467,463,2240,486,483,1524,1521,1518,1529,411,403,2192,399,2189,423,416,1462,1457,1454,428,1468,1465,2210,366,363,2158,360,2156,357,2153,376,373,370,2163,1410,1409,1407,1405,382,1402,380,1417,1415,1412,1421,2175,2174,777,774,771,784,732,725,722,2404,743,1716,676,674,668,2363,665,2360,685,1684,1681,626,624,622,2335,620,2333,617,2330,641,635,649,1646,1644,1642,2566,928,925,2530,2527,894,891,888,2501,2499,2496,858,856,854,851,1779,2692,2668,2665,2645,2643,2640,2651,2768,2759,2757,2744,2743,2741,2748,352,1382,340,337,333,1371,1369,307,300,296,2126,315,312,1347,1342,1350,261,258,250,2097,246,2094,271,268,264,1306,1301,1298,276,1312,1309,2115,203,2048,195,2045,191,2041,213,209,2056,1246,1244,1238,225,1234,222,1256,1253,1249,1262,2080,2079,154,1997,150,1995,147,1992,1989,163,160,2004,156,2001,1175,1174,1172,1170,1167,170,1164,167,1185,1183,1180,1177,174,1190,1188,2025,2024,2022,587,586,564,559,556,2290,573,1588,520,518,512,2268,508,2265,530,1568,1565,461,457,2233,450,2230,446,2226,479,471,489,1526,1523,1520,397,395,2185,392,2183,389,2180,2177,410,2194,402,422,1463,1461,1459,1456,1470,2455,799,2433,2430,779,776,773,2397,2394,2390,734,728,724,746,1717,2356,2354,2351,2348,1658,677,675,673,670,667,688,1685,1683,2606,2589,2586,2559,2556,2552,927,2523,2521,2518,2515,1784,2532,895,893,890,2718,2709,2707,2689,2687,2684,2663,2662,2660,2658,1825,2667,2769,1852,2760,2758,142,141,1139,1138,134,132,129,126,1982,1129,1128,1126,1131,113,111,108,105,1972,101,1970,120,118,115,1109,1108,1106,1104,123,1113,1111,82,79,1951,75,1949,72,1946,92,89,86,1956,1077,1076,1074,1072,98,1069,96,1084,1082,1079,1088,1968,1967,48,45,1916,42,1914,39,1911,1908,60,57,54,1923,50,1920,1031,1030,1028,1026,67,1023,65,1020,62,1041,1039,1036,1033,69,1046,1044,1944,1943,1941,11,9,1868,7,1865,1862,1859,20,1878,16,1875,13,1872,970,968,966,963,29,960,26,23,983,981,978,975,33,971,31,990,988,985,1906,1904,1902,993,351,2145,1383,331,330,328,326,2137,323,2135,339,1372,1370,294,293,291,289,2122,286,2120,283,2117,309,303,317,1348,1346,1344,245,244,242,2090,239,2088,236,2085,2082,260,2099,249,270,1307,1305,1303,1300,1314,189,2038,186,2036,183,2033,2030,2026,206,198,2047,194,216,1247,1245,1243,1240,227,1237,1255,2310,2302,2300,2286,2284,2281,565,563,561,558,575,1589,2261,2259,2256,2253,1542,521,519,517,514,2270,511,533,1569,1567,2223,2221,2218,2215,1483,2211,1480,459,456,453,2232,449,474,491,1527,1525,1522,2475,2467,2465,2451,2449,2446,801,800,2426,2424,2421,2418,1723,2435,780,778,775,2387,2385,2382,2379,1695,2375,1693,2396,735,733,730,727,749,1718,2616,2615,2604,2603,2601,2584,2583,2581,2579,1800,2591,2550,2549,2547,2545,1792,2542,1790,2558,929,2719,1841,2710,2708,1833,1831,2690,2688,2686,1815,1809,1808,1774,1756,1754,1737,1736,1734,1739,1816,1711,1676,1674,633,629,1638,1636,1633,1641,598,1605,1604,1602,1600,605,1609,1607,2327,887,853,1775,822,820,1757,1755,1584,524,1560,1558,468,464,1514,1511,1508,1519,408,404,400,1452,1447,1444,417,1458,1455,2208,364,361,358,2154,1401,1400,1398,1396,374,1393,371,1408,1406,1403,1413,2173,2172,772,726,723,1712,672,669,666,682,1678,1675,625,623,621,618,2331,636,632,1639,1637,1635,920,918,884,880,889,849,848,847,846,2497,855,852,1776,2641,2742,2787,1380,334,1367,1365,301,297,1340,1338,1335,1343,255,251,247,1296,1291,1288,265,1302,1299,2113,204,196,192,2042,1232,1230,1224,214,1220,210,1242,1239,1235,1250,2077,2075,151,148,1993,144,1990,1163,1162,1160,1158,1155,161,1152,157,1173,1171,1168,1165,168,1181,1178,2021,2020,2018,2023,585,560,557,1585,516,509,1562,1559,458,447,2227,472,1516,1513,1510,398,396,393,390,2181,386,2178,407,1453,1451,1449,1446,420,1460,2209,769,764,720,712,2391,729,1713,664,663,661,659,2352,656,2349,671,1679,1677,2553,922,919,2519,2516,885,883,881,2685,2661,2659,2767,2756,2755,140,1137,1136,130,127,1125,1124,1122,1127,109,106,102,1103,1102,1100,1098,116,1107,1105,1980,80,76,73,1947,1068,1067,1065,1063,90,1060,87,1075,1073,1070,1080,1966,1965,46,43,40,1912,36,1909,1019,1018,1016,1014,58,1011,55,1008,51,1029,1027,1024,1021,63,1037,1034,1940,1939,1937,1942,8,1866,4,1863,1,1860,956,954,952,949,946,17,14,969,967,964,961,27,957,24,979,976,972,1901,1900,1898,1896,986,1905,1903,350,349,1381,329,327,324,1368,1366,292,290,287,284,2118,304,1341,1339,1337,1345,243,240,237,2086,233,2083,254,1297,1295,1293,1290,1304,2114,190,187,184,2034,180,2031,177,2027,199,1233,1231,1229,1226,217,1223,1241,2078,2076,584,555,554,552,550,2282,562,1586,507,506,504,502,2257,499,2254,515,1563,1561,445,443,441,2219,438,2216,435,2212,460,454,475,1517,1515,1512,2447,798,797,2422,2419,770,768,766,2383,2380,2376,721,719,717,714,731,1714,2602,2582,2580,2548,2546,2543,923,921,2717,2706,2705,2683,2682,2680,1771,1752,1750,1733,1732,1731,1735,1814,1707,1670,1668,1631,1629,1626,1634,1599,1598,1596,1594,1603,1601,2326,1772,1753,1751,1581,1554,1552,1504,1501,1498,1509,1442,1437,1434,401,1448,1445,2206,1392,1391,1389,1387,1384,359,1399,1397,1394,1404,2171,2170,1708,1672,1669,619,1632,1630,1628,1773,1378,1363,1361,1333,1328,1336,1286,1281,1278,248,1292,1289,2111,1218,1216,1210,197,1206,193,1228,1225,1221,1236,2073,2071,1151,1150,1148,1146,152,1143,149,1140,145,1161,1159,1156,1153,158,1169,1166,2017,2016,2014,2019,1582,510,1556,1553,452,448,1506,1500,394,391,387,1443,1441,1439,1436,1450,2207,765,716,713,1709,662,660,657,1673,1671,916,914,879,878,877,882,1135,1134,1121,1120,1118,1123,1097,1096,1094,1092,103,1101,1099,1979,1059,1058,1056,1054,77,1051,74,1066,1064,1061,1071,1964,1963,1007,1006,1004,1002,999,41,996,37,1017,1015,1012,1009,52,1025,1022,1936,1935,1933,1938,942,940,938,935,932,5,2,955,953,950,947,18,943,15,965,962,958,1895,1894,1892,1890,973,1899,1897,1379,325,1364,1362,288,285,1334,1332,1330,241,238,234,1287,1285,1283,1280,1294,2112,188,185,181,178,2028,1219,1217,1215,1212,200,1209,1227,2074,2072,583,553,551,1583,505,503,500,513,1557,1555,444,442,439,436,2213,455,451,1507,1505,1502,796,763,762,760,767,711,710,708,706,2377,718,715,1710,2544,917,915,2681,1627,1597,1595,2325,1769,1749,1747,1499,1438,1435,2204,1390,1388,1385,1395,2169,2167,1704,1665,1662,1625,1623,1620,1770,1329,1282,1279,2109,1214,1207,1222,2068,2065,1149,1147,1144,1141,146,1157,1154,2013,2011,2008,2015,1579,1549,1546,1495,1487,1433,1431,1428,1425,388,1440,2205,1705,658,1667,1664,1119,1095,1093,1978,1057,1055,1052,1062,1962,1960,1005,1003,1e3,997,38,1013,1010,1932,1930,1927,1934,941,939,936,933,6,930,3,951,948,944,1889,1887,1884,1881,959,1893,1891,35,1377,1360,1358,1327,1325,1322,1331,1277,1275,1272,1269,235,1284,2110,1205,1204,1201,1198,182,1195,179,1213,2070,2067,1580,501,1551,1548,440,437,1497,1494,1490,1503,761,709,707,1706,913,912,2198,1386,2164,2161,1621,1766,2103,1208,2058,2054,1145,1142,2005,2002,1999,2009,1488,1429,1426,2200,1698,1659,1656,1975,1053,1957,1954,1001,998,1924,1921,1918,1928,937,934,931,1879,1876,1873,1870,945,1885,1882,1323,1273,1270,2105,1202,1199,1196,1211,2061,2057,1576,1543,1540,1484,1481,1478,1491,1700]),e}(),u=s;t.default=u},"5b0a":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("f7fd")),o=n(r("dc67")),a=function(){function e(){}return e.prototype.add=function(e,t){return(e+t)%this.modulus},e.prototype.subtract=function(e,t){return(this.modulus+e-t)%this.modulus},e.prototype.exp=function(e){return this.expTable[e]},e.prototype.log=function(e){if(0===e)throw new i.default;return this.logTable[e]},e.prototype.inverse=function(e){if(0===e)throw new o.default;return this.expTable[this.modulus-this.logTable[e]-1]},e.prototype.multiply=function(e,t){return 0===e||0===t?0:this.expTable[(this.logTable[e]+this.logTable[t])%(this.modulus-1)]},e.prototype.getSize=function(){return this.modulus},e.prototype.equals=function(e){return e===this},e}(),s=a;t.default=s},"5c29":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(){function e(e,t){t?this.decodedInformation=null:(this.finished=e,this.decodedInformation=t)}return e.prototype.getDecodedInformation=function(){return this.decodedInformation},e.prototype.isFinished=function(){return this.finished},e}(),i=n;t.default=i},"5c2a":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("9c16")),o=n(r("f7fd")),a=n(r("d618")),s=n(r("7e0b")),u=n(r("dda8")),c=n(r("84e1")),f=n(r("f5e6")),l=n(r("a27b")),d=n(r("e5d0")),h=function(e){var t="function"===typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},p=function(){function e(){}return e.encodeBytes=function(t){return e.encode(t,e.DEFAULT_EC_PERCENT,e.DEFAULT_AZTEC_LAYERS)},e.encode=function(t,r,n){var i,c,f,h,p,g=new l.default(t).encode(),y=d.default.truncDivision(g.getSize()*r,100)+11,v=g.getSize()+y;if(n!==e.DEFAULT_AZTEC_LAYERS){if(i=n<0,c=Math.abs(n),c>(i?e.MAX_NB_BITS_COMPACT:e.MAX_NB_BITS))throw new o.default(a.default.format("Illegal value %s for layers",n));f=e.totalBitsInLayer(c,i),h=e.WORD_SIZE[c];var b=f-f%h;if(p=e.stuffBits(g,h),p.getSize()+y>b)throw new o.default("Data to large for user specified layer");if(i&&p.getSize()>64*h)throw new o.default("Data to large for user specified layer")}else{h=0,p=null;for(var m=0;;m++){if(m>e.MAX_NB_BITS)throw new o.default("Data too large for an Aztec code");if(i=m<=3,c=i?m+1:m,f=e.totalBitsInLayer(c,i),!(v>f)){null!=p&&h===e.WORD_SIZE[c]||(h=e.WORD_SIZE[c],p=e.stuffBits(g,h));b=f-f%h;if(!(i&&p.getSize()>64*h)&&p.getSize()+y<=b)break}}}var _,w=e.generateCheckWords(p,f,h),A=p.getSize()/h,S=e.generateModeMessage(i,c,A),x=(i?11:14)+4*c,E=new Int32Array(x);if(i){_=x;for(m=0;m<E.length;m++)E[m]=m}else{_=x+1+2*d.default.truncDivision(d.default.truncDivision(x,2)-1,15);var C=d.default.truncDivision(x,2),O=d.default.truncDivision(_,2);for(m=0;m<C;m++){var I=m+d.default.truncDivision(m,15);E[C-m-1]=O-I-1,E[C+m]=O+I+1}}for(var T=new s.default(_),P=(m=0,0);m<c;m++){for(var M=4*(c-m)+(i?9:12),k=0;k<M;k++)for(var R=2*k,D=0;D<2;D++)w.get(P+R+D)&&T.set(E[2*m+D],E[2*m+k]),w.get(P+2*M+R+D)&&T.set(E[2*m+k],E[x-1-2*m-D]),w.get(P+4*M+R+D)&&T.set(E[x-1-2*m-D],E[x-1-2*m-k]),w.get(P+6*M+R+D)&&T.set(E[x-1-2*m-k],E[2*m+D]);P+=8*M}if(e.drawModeMessage(T,i,_,S),i)e.drawBullsEye(T,d.default.truncDivision(_,2),5);else{e.drawBullsEye(T,d.default.truncDivision(_,2),7);for(m=0,k=0;m<d.default.truncDivision(x,2)-1;m+=15,k+=16)for(D=1&d.default.truncDivision(_,2);D<_;D+=2)T.set(d.default.truncDivision(_,2)-k,D),T.set(d.default.truncDivision(_,2)+k,D),T.set(D,d.default.truncDivision(_,2)-k),T.set(D,d.default.truncDivision(_,2)+k)}var N=new u.default;return N.setCompact(i),N.setSize(_),N.setLayers(c),N.setCodeWords(A),N.setMatrix(T),N},e.drawBullsEye=function(e,t,r){for(var n=0;n<r;n+=2)for(var i=t-n;i<=t+n;i++)e.set(i,t-n),e.set(i,t+n),e.set(t-n,i),e.set(t+n,i);e.set(t-r,t-r),e.set(t-r+1,t-r),e.set(t-r,t-r+1),e.set(t+r,t-r),e.set(t+r,t-r+1),e.set(t+r,t+r-1)},e.generateModeMessage=function(t,r,n){var o=new i.default;return t?(o.appendBits(r-1,2),o.appendBits(n-1,6),o=e.generateCheckWords(o,28,4)):(o.appendBits(r-1,5),o.appendBits(n-1,11),o=e.generateCheckWords(o,40,4)),o},e.drawModeMessage=function(e,t,r,n){var i=d.default.truncDivision(r,2);if(t)for(var o=0;o<7;o++){var a=i-3+o;n.get(o)&&e.set(a,i-5),n.get(o+7)&&e.set(i+5,a),n.get(20-o)&&e.set(a,i+5),n.get(27-o)&&e.set(i-5,a)}else for(o=0;o<10;o++){a=i-5+o+d.default.truncDivision(o,5);n.get(o)&&e.set(a,i-7),n.get(o+10)&&e.set(i+7,a),n.get(29-o)&&e.set(a,i+7),n.get(39-o)&&e.set(i-7,a)}},e.generateCheckWords=function(t,r,n){var o,a,s=t.getSize()/n,u=new c.default(e.getGF(n)),f=d.default.truncDivision(r,n),l=e.bitsToWords(t,n,f);u.encode(l,f-s);var p=r%n,g=new i.default;g.appendBits(0,p);try{for(var y=h(Array.from(l)),v=y.next();!v.done;v=y.next()){var b=v.value;g.appendBits(b,n)}}catch(m){o={error:m}}finally{try{v&&!v.done&&(a=y.return)&&a.call(y)}finally{if(o)throw o.error}}return g},e.bitsToWords=function(e,t,r){var n,i,o=new Int32Array(r);for(n=0,i=e.getSize()/t;n<i;n++){for(var a=0,s=0;s<t;s++)a|=e.get(n*t+s)?1<<t-s-1:0;o[n]=a}return o},e.getGF=function(e){switch(e){case 4:return f.default.AZTEC_PARAM;case 6:return f.default.AZTEC_DATA_6;case 8:return f.default.AZTEC_DATA_8;case 10:return f.default.AZTEC_DATA_10;case 12:return f.default.AZTEC_DATA_12;default:throw new o.default("Unsupported word size "+e)}},e.stuffBits=function(e,t){for(var r=new i.default,n=e.getSize(),o=(1<<t)-2,a=0;a<n;a+=t){for(var s=0,u=0;u<t;u++)(a+u>=n||e.get(a+u))&&(s|=1<<t-1-u);(s&o)===o?(r.appendBits(s&o,t),a--):0===(s&o)?(r.appendBits(1|s,t),a--):r.appendBits(s,t)}return r},e.totalBitsInLayer=function(e,t){return((t?88:112)+16*e)*e},e.DEFAULT_EC_PERCENT=33,e.DEFAULT_AZTEC_LAYERS=0,e.MAX_NB_BITS=32,e.MAX_NB_BITS_COMPACT=4,e.WORD_SIZE=Int32Array.from([4,6,6,8,8,8,8,8,8,10,10,10,10,10,10,10,10,10,10,10,10,10,10,12,12,12,12,12,12,12,12,12,12]),e}(),g=p;t.default=g},"5c3d":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){try{e.network&&e.network.status&&a.default.install(),e.console&&e.console.status&&o.default.install(),e.logs&&e.logs.status&&c.default.install(),s.default.install(),e.uniBus&&e.uniBus.status&&u.default.install(),i.default.syncLocalCache()}catch(t){o.default.log("devToolsProxyInstall error",t)}};var i=n(r("271d")),o=n(r("98ab")),a=n(r("e3cf")),s=n(r("f44a")),u=n(r("01a7")),c=n(r("56c53"))},"5e0a":function(e,t){},"5f79":function(e,t,r){
- /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
- var n=r("12e3"),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,r){if("number"===typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!==typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"===typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},"5f85":function(e,t,r){"use strict";var n=r("5f79").Buffer,i=n.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";var t;while(1)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!==typeof t&&(n.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=u,this.end=c,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=f,this.end=l,t=3;break;default:return this.write=d,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function a(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if(128!==(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!==(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!==(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function u(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function f(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function l(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}t.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(t=this.fillLast(e),void 0===t)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},o.prototype.text=function(e,t){var r=function(e,t,r){var n=t.length-1;if(n<r)return 0;var i=a(t[n]);if(i>=0)return i>0&&(e.lastNeed=i-1),i;if(--n<r||-2===i)return 0;if(i=a(t[n]),i>=0)return i>0&&(e.lastNeed=i-2),i;if(--n<r||-2===i)return 0;if(i=a(t[n]),i>=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},"60c5":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("c41c")),o=n(r("253e")),a=n(r("107a")),s=n(r("d618")),u=n(r("343e")),c=n(r("d4f8")),f=n(r("a5e6")),l=n(r("842e")),d=function(){function e(){}return e.decode=function(t,r,n,s){var f=new i.default(t),d=new c.default,h=new Array,p=-1,g=-1;try{var y=null,v=!1,b=void 0;do{if(f.available()<4)b=l.default.TERMINATOR;else{var m=f.readBits(4);b=l.default.forBits(m)}switch(b){case l.default.TERMINATOR:break;case l.default.FNC1_FIRST_POSITION:case l.default.FNC1_SECOND_POSITION:v=!0;break;case l.default.STRUCTURED_APPEND:if(f.available()<16)throw new u.default;p=f.readBits(8),g=f.readBits(8);break;case l.default.ECI:var _=e.parseECIValue(f);if(y=o.default.getCharacterSetECIByValue(_),null===y)throw new u.default;break;case l.default.HANZI:var w=f.readBits(4),A=f.readBits(b.getCharacterCountBits(r));w===e.GB2312_SUBSET&&e.decodeHanziSegment(f,d,A);break;default:var S=f.readBits(b.getCharacterCountBits(r));switch(b){case l.default.NUMERIC:e.decodeNumericSegment(f,d,S);break;case l.default.ALPHANUMERIC:e.decodeAlphanumericSegment(f,d,S,v);break;case l.default.BYTE:e.decodeByteSegment(f,d,S,y,h,s);break;case l.default.KANJI:e.decodeKanjiSegment(f,d,S);break;default:throw new u.default}break}}while(b!==l.default.TERMINATOR)}catch(x){throw new u.default}return new a.default(t,d.toString(),0===h.length?null:h,null===n?null:n.toString(),p,g)},e.decodeHanziSegment=function(e,t,r){if(13*r>e.available())throw new u.default;var n=new Uint8Array(2*r),i=0;while(r>0){var o=e.readBits(13),a=o/96<<8&4294967295|o%96;a+=a<959?41377:42657,n[i]=a>>8&255,n[i+1]=255&a,i+=2,r--}try{t.append(f.default.decode(n,s.default.GB2312))}catch(c){throw new u.default(c)}},e.decodeKanjiSegment=function(e,t,r){if(13*r>e.available())throw new u.default;var n=new Uint8Array(2*r),i=0;while(r>0){var o=e.readBits(13),a=o/192<<8&4294967295|o%192;a+=a<7936?33088:49472,n[i]=a>>8,n[i+1]=a,i+=2,r--}try{t.append(f.default.decode(n,s.default.SHIFT_JIS))}catch(c){throw new u.default(c)}},e.decodeByteSegment=function(e,t,r,n,i,o){if(8*r>e.available())throw new u.default;for(var a,c=new Uint8Array(r),l=0;l<r;l++)c[l]=e.readBits(8);a=null===n?s.default.guessEncoding(c,o):n.getName();try{t.append(f.default.decode(c,a))}catch(d){throw new u.default(d)}i.push(c)},e.toAlphaNumericChar=function(t){if(t>=e.ALPHANUMERIC_CHARS.length)throw new u.default;return e.ALPHANUMERIC_CHARS[t]},e.decodeAlphanumericSegment=function(t,r,n,i){var o=r.length();while(n>1){if(t.available()<11)throw new u.default;var a=t.readBits(11);r.append(e.toAlphaNumericChar(Math.floor(a/45))),r.append(e.toAlphaNumericChar(a%45)),n-=2}if(1===n){if(t.available()<6)throw new u.default;r.append(e.toAlphaNumericChar(t.readBits(6)))}if(i)for(var s=o;s<r.length();s++)"%"===r.charAt(s)&&(s<r.length()-1&&"%"===r.charAt(s+1)?r.deleteCharAt(s+1):r.setCharAt(s,String.fromCharCode(29)))},e.decodeNumericSegment=function(t,r,n){while(n>=3){if(t.available()<10)throw new u.default;var i=t.readBits(10);if(i>=1e3)throw new u.default;r.append(e.toAlphaNumericChar(Math.floor(i/100))),r.append(e.toAlphaNumericChar(Math.floor(i/10)%10)),r.append(e.toAlphaNumericChar(i%10)),n-=3}if(2===n){if(t.available()<7)throw new u.default;var o=t.readBits(7);if(o>=100)throw new u.default;r.append(e.toAlphaNumericChar(Math.floor(o/10))),r.append(e.toAlphaNumericChar(o%10))}else if(1===n){if(t.available()<4)throw new u.default;var a=t.readBits(4);if(a>=10)throw new u.default;r.append(e.toAlphaNumericChar(a))}},e.parseECIValue=function(e){var t=e.readBits(8);if(0===(128&t))return 127&t;if(128===(192&t)){var r=e.readBits(8);return(63&t)<<8&4294967295|r}if(192===(224&t)){var n=e.readBits(16);return(31&t)<<16&4294967295|n}throw new u.default},e.ALPHANUMERIC_CHARS="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",e.GB2312_SUBSET=1,e}(),h=d;t.default=h},"610c":function(e,t,r){"use strict";var n=r("2c2e"),i=r("5f79").Buffer,o=r("cfef"),a=i.alloc(128);function s(e,t){o.call(this,"digest"),"string"===typeof t&&(t=i.from(t)),this._alg=e,this._key=t,t.length>64?t=e(t):t.length<64&&(t=i.concat([t,a],64));for(var r=this._ipad=i.allocUnsafe(64),n=this._opad=i.allocUnsafe(64),s=0;s<64;s++)r[s]=54^t[s],n[s]=92^t[s];this._hash=[r]}n(s,o),s.prototype._update=function(e){this._hash.push(e)},s.prototype._final=function(){var e=this._alg(i.concat(this._hash));return this._alg(i.concat([this._opad,e]))},e.exports=s},6120:function(e,t,r){"use strict";var n=r("d652"),i=r("d3c2");function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=o,o.prototype.update=function(e,t){if(e=n.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){e=this.pending;var r=e.length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},o.prototype.digest=function(e){return this.update(this._pad()),i(null===this.pending),this._digest(e)},o.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,r=t-(e+this.padLength)%t,n=new Array(r+this.padLength);n[0]=128;for(var i=1;i<r;i++)n[i]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)n[i++]=0;n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=e>>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,o=8;o<this.padLength;o++)n[i++]=0;return n}},"61e3":function(e,t,r){"use strict";var n=r("d3c2"),i=r("2c2e"),o=r("0168"),a=r("21cb");function s(e,t){n.equal(t.length,24,"Invalid key length");var r=t.slice(0,8),i=t.slice(8,16),o=t.slice(16,24);this.ciphers="encrypt"===e?[a.create({type:"encrypt",key:r}),a.create({type:"decrypt",key:i}),a.create({type:"encrypt",key:o})]:[a.create({type:"decrypt",key:o}),a.create({type:"encrypt",key:i}),a.create({type:"decrypt",key:r})]}function u(e){o.call(this,e);var t=new s(this.type,this.options.key);this._edeState=t}i(u,o),e.exports=u,u.create=function(e){return new u(e)},u.prototype._update=function(e,t,r,n){var i=this._edeState;i.ciphers[0]._update(e,t,r,n),i.ciphers[1]._update(r,n,r,n),i.ciphers[2]._update(r,n,r,n)},u.prototype._pad=a.prototype._pad,u.prototype._unpad=a.prototype._unpad},"62e9":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("b717")),o=n(r("7e0b")),a=n(r("d757")),s=n(r("76f5")),u=n(r("a8ae")),c=r("841b"),f=function(){function e(){}return e.prototype.encode=function(e,t,r,n,o){if(void 0===o&&(o=null),""===e.trim())throw new Error("Found empty contents");if(t!==i.default.DATA_MATRIX)throw new Error("Can only encode DATA_MATRIX, but got "+t);if(r<0||n<0)throw new Error("Requested dimensions can't be negative: "+r+"x"+n);var s,f=0,l=null,d=null;if(null!=o){var h=o.get(a.default.DATA_MATRIX_SHAPE);null!=h&&(f=h);var p=o.get(a.default.MIN_SIZE);null!=p&&(l=p);var g=o.get(a.default.MAX_SIZE);null!=g&&(d=g)}var y=null!=o&&o.has(a.default.DATA_MATRIX_COMPACT)&&Boolean(o.get(a.default.DATA_MATRIX_COMPACT).toString());if(y){var v=o.has(a.default.GS1_FORMAT)&&Boolean(o.get(a.default.GS1_FORMAT).toString()),b=null,m=o.has(a.default.CHARACTER_SET);m&&(b=u.default.forName(o.get(a.default.CHARACTER_SET).toString())),s=c.MinimalEncoder.encodeHighLevel(e,b,v?29:-1,f)}else{var _=null!=o&&o.has(a.default.FORCE_C40)&&Boolean(o.get(a.default.FORCE_C40).toString());s=c.HighLevelEncoder.encodeHighLevel(e,f,l,d,_)}var w=c.SymbolInfo.lookup(s.length,f,l,d,!0),A=c.ErrorCorrection.encodeECC200(s,w),S=new c.DefaultPlacement(A,w.getSymbolDataWidth(),w.getSymbolDataHeight());return S.place(),this.encodeLowLevel(S,w,r,n)},e.prototype.encodeLowLevel=function(e,t,r,n){for(var i=t.getSymbolDataWidth(),o=t.getSymbolDataHeight(),a=new s.default(t.getSymbolWidth(),t.getSymbolHeight()),u=0,c=0;c<o;c++){var f=void 0;if(c%t.matrixHeight===0){f=0;for(var l=0;l<t.getSymbolWidth();l++)a.setBoolean(f,u,l%2===0),f++;u++}f=0;for(l=0;l<i;l++)l%t.matrixWidth===0&&(a.setBoolean(f,u,!0),f++),a.setBoolean(f,u,e.getBit(l,c)),f++,l%t.matrixWidth===t.matrixWidth-1&&(a.setBoolean(f,u,c%2===0),f++);if(u++,c%t.matrixHeight===t.matrixHeight-1){f=0;for(l=0;l<t.getSymbolWidth();l++)a.setBoolean(f,u,!0),f++;u++}}return this.convertByteMatrixToBitMatrix(a,r,n)},e.prototype.convertByteMatrixToBitMatrix=function(e,t,r){var n,i=e.getWidth(),a=e.getHeight(),s=Math.max(t,i),u=Math.max(r,a),c=Math.min(s/i,u/a),f=(s-i*c)/2,l=(u-a*c)/2;r<a||t<i?(f=0,l=0,n=new o.default(i,a)):n=new o.default(t,r),n.clear();for(var d=0,h=l;d<a;d++,h+=c)for(var p=0,g=f;p<i;p++,g+=c)1===e.get(p,d)&&n.setRegion(g,h,c,c);return n},e}(),l=f;t.default=l},6382:function(e,t,r){var n=r("6454");e.exports=function(e,t){if(e){if("string"===typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}},e.exports.__esModule=!0,e.exports["default"]=e.exports},6387:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("d757")),o=n(r("9c16")),a=n(r("253e")),s=n(r("f5e6")),u=n(r("84e1")),c=n(r("842e")),f=n(r("e01c")),l=n(r("647e")),d=n(r("76f5")),h=n(r("a2dd")),p=n(r("ad71")),g=n(r("a5e6")),y=n(r("49a0")),v=n(r("6468")),b=function(e){var t="function"===typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},m=function(){function e(){}return e.calculateMaskPenalty=function(e){return l.default.applyMaskPenaltyRule1(e)+l.default.applyMaskPenaltyRule2(e)+l.default.applyMaskPenaltyRule3(e)+l.default.applyMaskPenaltyRule4(e)},e.encode=function(t,r,n){void 0===n&&(n=null);var s=e.DEFAULT_BYTE_MODE_ENCODING,u=null!==n&&void 0!==n.get(i.default.CHARACTER_SET);u&&(s=n.get(i.default.CHARACTER_SET).toString());var l=this.chooseMode(t,s),g=new o.default;if(l===c.default.BYTE&&(u||e.DEFAULT_BYTE_MODE_ENCODING!==s)){var y=a.default.getCharacterSetECIByName(s);void 0!==y&&this.appendECI(y,g)}this.appendModeInfo(l,g);var b,m=new o.default;if(this.appendBytes(t,l,m,s),null!==n&&void 0!==n.get(i.default.QR_VERSION)){var _=Number.parseInt(n.get(i.default.QR_VERSION).toString(),10);b=f.default.getVersionForNumber(_);var w=this.calculateBitsNeeded(l,g,m,b);if(!this.willFit(w,b,r))throw new v.default("Data too big for requested version")}else b=this.recommendVersion(r,l,g,m);var A=new o.default;A.appendBitArray(g);var S=l===c.default.BYTE?m.getSizeInBytes():t.length;this.appendLengthInfo(S,b,l,A),A.appendBitArray(m);var x=b.getECBlocksForLevel(r),E=b.getTotalCodewords()-x.getTotalECCodewords();this.terminateBits(E,A);var C=this.interleaveWithECBytes(A,b.getTotalCodewords(),E,x.getNumBlocks()),O=new h.default;O.setECLevel(r),O.setMode(l),O.setVersion(b);var I=b.getDimensionForVersion(),T=new d.default(I,I),P=this.chooseMaskPattern(C,r,b,T);return O.setMaskPattern(P),p.default.buildMatrix(C,r,b,P,T),O.setMatrix(T),O},e.recommendVersion=function(e,t,r,n){var i=this.calculateBitsNeeded(t,r,n,f.default.getVersionForNumber(1)),o=this.chooseVersion(i,e),a=this.calculateBitsNeeded(t,r,n,o);return this.chooseVersion(a,e)},e.calculateBitsNeeded=function(e,t,r,n){return t.getSize()+e.getCharacterCountBits(n)+r.getSize()},e.getAlphanumericCode=function(t){return t<e.ALPHANUMERIC_TABLE.length?e.ALPHANUMERIC_TABLE[t]:-1},e.chooseMode=function(t,r){if(void 0===r&&(r=null),a.default.SJIS.getName()===r&&this.isOnlyDoubleByteKanji(t))return c.default.KANJI;for(var n=!1,i=!1,o=0,s=t.length;o<s;++o){var u=t.charAt(o);if(e.isDigit(u))n=!0;else{if(-1===this.getAlphanumericCode(u.charCodeAt(0)))return c.default.BYTE;i=!0}}return i?c.default.ALPHANUMERIC:n?c.default.NUMERIC:c.default.BYTE},e.isOnlyDoubleByteKanji=function(e){var t;try{t=g.default.encode(e,a.default.SJIS)}catch(o){return!1}var r=t.length;if(r%2!==0)return!1;for(var n=0;n<r;n+=2){var i=255&t[n];if((i<129||i>159)&&(i<224||i>235))return!1}return!0},e.chooseMaskPattern=function(e,t,r,n){for(var i=Number.MAX_SAFE_INTEGER,o=-1,a=0;a<h.default.NUM_MASK_PATTERNS;a++){p.default.buildMatrix(e,t,r,a,n);var s=this.calculateMaskPenalty(n);s<i&&(i=s,o=a)}return o},e.chooseVersion=function(t,r){for(var n=1;n<=40;n++){var i=f.default.getVersionForNumber(n);if(e.willFit(t,i,r))return i}throw new v.default("Data too big")},e.willFit=function(e,t,r){var n=t.getTotalCodewords(),i=t.getECBlocksForLevel(r),o=i.getTotalECCodewords(),a=n-o,s=(e+7)/8;return a>=s},e.terminateBits=function(e,t){var r=8*e;if(t.getSize()>r)throw new v.default("data bits cannot fit in the QR Code"+t.getSize()+" > "+r);for(var n=0;n<4&&t.getSize()<r;++n)t.appendBit(!1);var i=7&t.getSize();if(i>0)for(n=i;n<8;n++)t.appendBit(!1);var o=e-t.getSizeInBytes();for(n=0;n<o;++n)t.appendBits(0===(1&n)?236:17,8);if(t.getSize()!==r)throw new v.default("Bits size does not equal capacity")},e.getNumDataBytesAndNumECBytesForBlockID=function(e,t,r,n,i,o){if(n>=r)throw new v.default("Block ID too large");var a=e%r,s=r-a,u=Math.floor(e/r),c=u+1,f=Math.floor(t/r),l=f+1,d=u-f,h=c-l;if(d!==h)throw new v.default("EC bytes mismatch");if(r!==s+a)throw new v.default("RS blocks mismatch");if(e!==(f+d)*s+(l+h)*a)throw new v.default("Total bytes mismatch");n<s?(i[0]=f,o[0]=d):(i[0]=l,o[0]=h)},e.interleaveWithECBytes=function(t,r,n,i){var a,s,u,c;if(t.getSizeInBytes()!==n)throw new v.default("Number of bits and data bytes does not match");for(var f=0,l=0,d=0,h=new Array,p=0;p<i;++p){var g=new Int32Array(1),m=new Int32Array(1);e.getNumDataBytesAndNumECBytesForBlockID(r,n,i,p,g,m);var _=g[0],w=new Uint8Array(_);t.toBytes(8*f,w,0,_);var A=e.generateECBytes(w,m[0]);h.push(new y.default(w,A)),l=Math.max(l,_),d=Math.max(d,A.length),f+=g[0]}if(n!==f)throw new v.default("Data bytes does not match offset");var S=new o.default;for(p=0;p<l;++p)try{for(var x=(a=void 0,b(h)),E=x.next();!E.done;E=x.next()){var C=E.value;w=C.getDataBytes();p<w.length&&S.appendBits(w[p],8)}}catch(T){a={error:T}}finally{try{E&&!E.done&&(s=x.return)&&s.call(x)}finally{if(a)throw a.error}}for(p=0;p<d;++p)try{for(var O=(u=void 0,b(h)),I=O.next();!I.done;I=O.next()){C=I.value,A=C.getErrorCorrectionBytes();p<A.length&&S.appendBits(A[p],8)}}catch(P){u={error:P}}finally{try{I&&!I.done&&(c=O.return)&&c.call(O)}finally{if(u)throw u.error}}if(r!==S.getSizeInBytes())throw new v.default("Interleaving error: "+r+" and "+S.getSizeInBytes()+" differ.");return S},e.generateECBytes=function(e,t){for(var r=e.length,n=new Int32Array(r+t),i=0;i<r;i++)n[i]=255&e[i];new u.default(s.default.QR_CODE_FIELD_256).encode(n,t);var o=new Uint8Array(t);for(i=0;i<t;i++)o[i]=n[r+i];return o},e.appendModeInfo=function(e,t){t.appendBits(e.getBits(),4)},e.appendLengthInfo=function(e,t,r,n){var i=r.getCharacterCountBits(t);if(e>=1<<i)throw new v.default(e+" is bigger than "+((1<<i)-1));n.appendBits(e,i)},e.appendBytes=function(t,r,n,i){switch(r){case c.default.NUMERIC:e.appendNumericBytes(t,n);break;case c.default.ALPHANUMERIC:e.appendAlphanumericBytes(t,n);break;case c.default.BYTE:e.append8BitBytes(t,n,i);break;case c.default.KANJI:e.appendKanjiBytes(t,n);break;default:throw new v.default("Invalid mode: "+r)}},e.getDigit=function(e){return e.charCodeAt(0)-48},e.isDigit=function(t){var r=e.getDigit(t);return r>=0&&r<=9},e.appendNumericBytes=function(t,r){var n=t.length,i=0;while(i<n){var o=e.getDigit(t.charAt(i));if(i+2<n){var a=e.getDigit(t.charAt(i+1)),s=e.getDigit(t.charAt(i+2));r.appendBits(100*o+10*a+s,10),i+=3}else if(i+1<n){a=e.getDigit(t.charAt(i+1));r.appendBits(10*o+a,7),i+=2}else r.appendBits(o,4),i++}},e.appendAlphanumericBytes=function(t,r){var n=t.length,i=0;while(i<n){var o=e.getAlphanumericCode(t.charCodeAt(i));if(-1===o)throw new v.default;if(i+1<n){var a=e.getAlphanumericCode(t.charCodeAt(i+1));if(-1===a)throw new v.default;r.appendBits(45*o+a,11),i+=2}else r.appendBits(o,6),i++}},e.append8BitBytes=function(e,t,r){var n;try{n=g.default.encode(e,r)}catch(s){throw new v.default(s)}for(var i=0,o=n.length;i!==o;i++){var a=n[i];t.appendBits(a,8)}},e.appendKanjiBytes=function(e,t){var r;try{r=g.default.encode(e,a.default.SJIS)}catch(l){throw new v.default(l)}for(var n=r.length,i=0;i<n;i+=2){var o=255&r[i],s=255&r[i+1],u=o<<8&4294967295|s,c=-1;if(u>=33088&&u<=40956?c=u-33088:u>=57408&&u<=60351&&(c=u-49472),-1===c)throw new v.default("Invalid byte sequence");var f=192*(c>>8)+(255&c);t.appendBits(f,13)}},e.appendECI=function(e,t){t.appendBits(c.default.ECI.getBits(),4),t.appendBits(e.getValue(),8)},e.ALPHANUMERIC_TABLE=Int32Array.from([-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,36,-1,-1,-1,37,38,-1,-1,-1,-1,39,40,-1,41,42,43,0,1,2,3,4,5,6,7,8,9,44,-1,-1,-1,-1,-1,-1,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,-1,-1,-1,-1,-1]),e.DEFAULT_BYTE_MODE_ENCODING=a.default.UTF8.getName(),e}(),_=m;t.default=_},"63d8":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("f7fd")),o=function(e){var t="function"===typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=function(){function e(e,t){this.numDataCodewords=e,this.codewords=t}return e.getDataBlocks=function(t,r,n){var a,s,u,c;if(t.length!==r.getTotalCodewords())throw new i.default;var f=r.getECBlocksForLevel(n),l=0,d=f.getECBlocks();try{for(var h=o(d),p=h.next();!p.done;p=h.next()){var g=p.value;l+=g.getCount()}}catch(M){a={error:M}}finally{try{p&&!p.done&&(s=h.return)&&s.call(h)}finally{if(a)throw a.error}}var y=new Array(l),v=0;try{for(var b=o(d),m=b.next();!m.done;m=b.next()){g=m.value;for(var _=0;_<g.getCount();_++){var w=g.getDataCodewords(),A=f.getECCodewordsPerBlock()+w;y[v++]=new e(w,new Uint8Array(A))}}}catch(k){u={error:k}}finally{try{m&&!m.done&&(c=b.return)&&c.call(b)}finally{if(u)throw u.error}}var S=y[0].codewords.length,x=y.length-1;while(x>=0){var E=y[x].codewords.length;if(E===S)break;x--}x++;var C=S-f.getECCodewordsPerBlock(),O=0;for(_=0;_<C;_++)for(var I=0;I<v;I++)y[I].codewords[_]=t[O++];for(I=x;I<v;I++)y[I].codewords[C]=t[O++];var T=y[0].codewords.length;for(_=C;_<T;_++)for(I=0;I<v;I++){var P=I<x?_:_+1;y[I].codewords[P]=t[O++]}return y},e.prototype.getNumDataCodewords=function(){return this.numDataCodewords},e.prototype.getCodewords=function(){return this.codewords},e}(),s=a;t.default=s},6454:function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n},e.exports.__esModule=!0,e.exports["default"]=e.exports},6468:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("7322")),o=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.kind="WriterException",t}(i.default),s=a;t.default=s},"647e":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("f7fd")),o=function(){function e(){}return e.applyMaskPenaltyRule1=function(t){return e.applyMaskPenaltyRule1Internal(t,!0)+e.applyMaskPenaltyRule1Internal(t,!1)},e.applyMaskPenaltyRule2=function(t){for(var r=0,n=t.getArray(),i=t.getWidth(),o=t.getHeight(),a=0;a<o-1;a++)for(var s=n[a],u=0;u<i-1;u++){var c=s[u];c===s[u+1]&&c===n[a+1][u]&&c===n[a+1][u+1]&&r++}return e.N2*r},e.applyMaskPenaltyRule3=function(t){for(var r=0,n=t.getArray(),i=t.getWidth(),o=t.getHeight(),a=0;a<o;a++)for(var s=0;s<i;s++){var u=n[a];s+6<i&&1===u[s]&&0===u[s+1]&&1===u[s+2]&&1===u[s+3]&&1===u[s+4]&&0===u[s+5]&&1===u[s+6]&&(e.isWhiteHorizontal(u,s-4,s)||e.isWhiteHorizontal(u,s+7,s+11))&&r++,a+6<o&&1===n[a][s]&&0===n[a+1][s]&&1===n[a+2][s]&&1===n[a+3][s]&&1===n[a+4][s]&&0===n[a+5][s]&&1===n[a+6][s]&&(e.isWhiteVertical(n,s,a-4,a)||e.isWhiteVertical(n,s,a+7,a+11))&&r++}return r*e.N3},e.isWhiteHorizontal=function(e,t,r){t=Math.max(t,0),r=Math.min(r,e.length);for(var n=t;n<r;n++)if(1===e[n])return!1;return!0},e.isWhiteVertical=function(e,t,r,n){r=Math.max(r,0),n=Math.min(n,e.length);for(var i=r;i<n;i++)if(1===e[i][t])return!1;return!0},e.applyMaskPenaltyRule4=function(t){for(var r=0,n=t.getArray(),i=t.getWidth(),o=t.getHeight(),a=0;a<o;a++)for(var s=n[a],u=0;u<i;u++)1===s[u]&&r++;var c=t.getHeight()*t.getWidth(),f=Math.floor(10*Math.abs(2*r-c)/c);return f*e.N4},e.getDataMaskBit=function(e,t,r){var n,o;switch(e){case 0:n=r+t&1;break;case 1:n=1&r;break;case 2:n=t%3;break;case 3:n=(r+t)%3;break;case 4:n=Math.floor(r/2)+Math.floor(t/3)&1;break;case 5:o=r*t,n=(1&o)+o%3;break;case 6:o=r*t,n=(1&o)+o%3&1;break;case 7:o=r*t,n=o%3+(r+t&1)&1;break;default:throw new i.default("Invalid mask pattern: "+e)}return 0===n},e.applyMaskPenaltyRule1Internal=function(t,r){for(var n=0,i=r?t.getHeight():t.getWidth(),o=r?t.getWidth():t.getHeight(),a=t.getArray(),s=0;s<i;s++){for(var u=0,c=-1,f=0;f<o;f++){var l=r?a[s][f]:a[f][s];l===c?u++:(u>=5&&(n+=e.N1+(u-5)),u=1,c=l)}u>=5&&(n+=e.N1+(u-5))}return n},e.N1=3,e.N2=3,e.N3=40,e.N4=10,e}(),a=o;t.default=a},"66ad":function(e,t,r){var n=r("1177"),i=r("2d81"),o=r("25a4"),a=r("5f79").Buffer,s=r("d896"),u=r("df96"),c=r("325f"),f=a.alloc(128),l={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function d(e,t,r){var s=function(e){function t(t){return o(e).update(t).digest()}return"rmd160"===e||"ripemd160"===e?function(e){return(new i).update(e).digest()}:"md5"===e?n:t}(e),u="sha512"===e||"sha384"===e?128:64;t.length>u?t=s(t):t.length<u&&(t=a.concat([t,f],u));for(var c=a.allocUnsafe(u+l[e]),d=a.allocUnsafe(u+l[e]),h=0;h<u;h++)c[h]=54^t[h],d[h]=92^t[h];var p=a.allocUnsafe(u+r+4);c.copy(p,0,0,u),this.ipad1=p,this.ipad2=c,this.opad=d,this.alg=e,this.blocksize=u,this.hash=s,this.size=l[e]}d.prototype.run=function(e,t){e.copy(t,this.blocksize);var r=this.hash(t);return r.copy(this.opad,this.blocksize),this.hash(this.opad)},e.exports=function(e,t,r,n,i){s(r,n),e=c(e,u,"Password"),t=c(t,u,"Salt"),i=i||"sha1";var o=new d(i,e,t.length),f=a.allocUnsafe(n),h=a.allocUnsafe(t.length+4);t.copy(h,0,0,t.length);for(var p=0,g=l[i],y=Math.ceil(n/g),v=1;v<=y;v++){h.writeUInt32BE(v,t.length);for(var b=o.run(h,o.ipad1),m=b,_=1;_<r;_++){m=o.run(m,o.ipad2);for(var w=0;w<g;w++)b[w]^=m[w]}b.copy(f,p),p+=g}return f}},"66dc":function(e,t,r){(function(t){var n=r("81eb"),i=r("68ad"),o=new i,a=new n(24),s=new n(11),u=new n(10),c=new n(3),f=new n(7),l=r("ddfc"),d=r("ace9");function h(e,r){return r=r||"utf8",t.isBuffer(e)||(e=new t(e,r)),this._pub=new n(e),this}function p(e,r){return r=r||"utf8",t.isBuffer(e)||(e=new t(e,r)),this._priv=new n(e),this}e.exports=y;var g={};function y(e,t,r){this.setGenerator(t),this.__prime=new n(e),this._prime=n.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=h,this.setPrivateKey=p):this._primeCode=8}function v(e,r){var n=new t(e.toArray());return r?n.toString(r):n}Object.defineProperty(y.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!==typeof this._primeCode&&(this._primeCode=function(e,t){var r=t.toString("hex"),n=[r,e.toString(16)].join("_");if(n in g)return g[n];var i,d=0;if(e.isEven()||!l.simpleSieve||!l.fermatTest(e)||!o.test(e))return d+=1,d+="02"===r||"05"===r?8:4,g[n]=d,d;switch(o.test(e.shrn(1))||(d+=2),r){case"02":e.mod(a).cmp(s)&&(d+=8);break;case"05":i=e.mod(u),i.cmp(c)&&i.cmp(f)&&(d+=8);break;default:d+=4}return g[n]=d,d}(this.__prime,this.__gen)),this._primeCode}}),y.prototype.generateKeys=function(){return this._priv||(this._priv=new n(d(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},y.prototype.computeSecret=function(e){e=new n(e),e=e.toRed(this._prime);var r=e.redPow(this._priv).fromRed(),i=new t(r.toArray()),o=this.getPrime();if(i.length<o.length){var a=new t(o.length-i.length);a.fill(0),i=t.concat([a,i])}return i},y.prototype.getPublicKey=function(e){return v(this._pub,e)},y.prototype.getPrivateKey=function(e){return v(this._priv,e)},y.prototype.getPrime=function(e){return v(this.__prime,e)},y.prototype.getGenerator=function(e){return v(this._gen,e)},y.prototype.setGenerator=function(e,r){return r=r||"utf8",t.isBuffer(e)||(e=new t(e,r)),this.__gen=e,this._gen=new n(e),this}}).call(this,r("12e3").Buffer)},"67ad":function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports["default"]=e.exports},"67bc":function(e,t,r){var n=r("5f79").Buffer;function i(e,t,r){var i=e._cipher.encryptBlock(e._prev),o=i[0]^t;return e._prev=n.concat([e._prev.slice(1),n.from([r?t:o])]),o}t.encrypt=function(e,t,r){var o=t.length,a=n.allocUnsafe(o),s=-1;while(++s<o)a[s]=i(e,t[s],r);return a}},6806:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("b717")),o=n(r("76a0")),a=n(r("343e")),s=n(r("f228")),u=n(r("0c24")),c=n(r("a8be")),f=n(r("d4f8")),l=n(r("1ff8")),d=n(r("4d7d")),h=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),p=function(e){var t="function"===typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},g=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.narrowLineWidth=-1,t}return h(t,e),t.prototype.decodeRow=function(e,r,n){var s,l,d=this.decodeStart(r),h=this.decodeEnd(r),g=new f.default;t.decodeMiddle(r,d[1],h[0],g);var y=g.toString(),v=null;null!=n&&(v=n.get(o.default.ALLOWED_LENGTHS)),null==v&&(v=t.DEFAULT_ALLOWED_LENGTHS);var b=y.length,m=!1,_=0;try{for(var w=p(v),A=w.next();!A.done;A=w.next()){var S=A.value;if(b===S){m=!0;break}S>_&&(_=S)}}catch(C){s={error:C}}finally{try{A&&!A.done&&(l=w.return)&&l.call(w)}finally{if(s)throw s.error}}if(!m&&b>_&&(m=!0),!m)throw new a.default;var x=[new c.default(d[1],e),new c.default(h[0],e)],E=new u.default(y,null,0,x,i.default.ITF,(new Date).getTime());return E},t.decodeMiddle=function(e,r,n,i){var o=new Int32Array(10),a=new Int32Array(5),s=new Int32Array(5);o.fill(0),a.fill(0),s.fill(0);while(r<n){d.default.recordPattern(e,r,o);for(var u=0;u<5;u++){var c=2*u;a[u]=o[c],s[u]=o[c+1]}var f=t.decodeDigit(a);i.append(f.toString()),f=this.decodeDigit(s),i.append(f.toString()),o.forEach((function(e){r+=e}))}},t.prototype.decodeStart=function(e){var r=t.skipWhiteSpace(e),n=t.findGuardPattern(e,r,t.START_PATTERN);return this.narrowLineWidth=(n[1]-n[0])/4,this.validateQuietZone(e,n[0]),n},t.prototype.validateQuietZone=function(e,t){var r=10*this.narrowLineWidth;r=r<t?r:t;for(var n=t-1;r>0&&n>=0;n--){if(e.get(n))break;r--}if(0!==r)throw new s.default},t.skipWhiteSpace=function(e){var t=e.getSize(),r=e.getNextSet(0);if(r===t)throw new s.default;return r},t.prototype.decodeEnd=function(e){e.reverse();try{var r=t.skipWhiteSpace(e),n=void 0;try{n=t.findGuardPattern(e,r,t.END_PATTERN_REVERSED[0])}catch(o){o instanceof s.default&&(n=t.findGuardPattern(e,r,t.END_PATTERN_REVERSED[1]))}this.validateQuietZone(e,n[0]);var i=n[0];return n[0]=e.getSize()-n[1],n[1]=e.getSize()-i,n}finally{e.reverse()}},t.findGuardPattern=function(e,r,n){var i=n.length,o=new Int32Array(i),a=e.getSize(),u=!1,c=0,f=r;o.fill(0);for(var h=r;h<a;h++)if(e.get(h)!==u)o[c]++;else{if(c===i-1){if(d.default.patternMatchVariance(o,n,t.MAX_INDIVIDUAL_VARIANCE)<t.MAX_AVG_VARIANCE)return[f,h];f+=o[0]+o[1],l.default.arraycopy(o,2,o,0,c-1),o[c-1]=0,o[c]=0,c--}else c++;o[c]=1,u=!u}throw new s.default},t.decodeDigit=function(e){for(var r=t.MAX_AVG_VARIANCE,n=-1,i=t.PATTERNS.length,o=0;o<i;o++){var a=t.PATTERNS[o],u=d.default.patternMatchVariance(e,a,t.MAX_INDIVIDUAL_VARIANCE);u<r?(r=u,n=o):u===r&&(n=-1)}if(n>=0)return n%10;throw new s.default},t.PATTERNS=[Int32Array.from([1,1,2,2,1]),Int32Array.from([2,1,1,1,2]),Int32Array.from([1,2,1,1,2]),Int32Array.from([2,2,1,1,1]),Int32Array.from([1,1,2,1,2]),Int32Array.from([2,1,2,1,1]),Int32Array.from([1,2,2,1,1]),Int32Array.from([1,1,1,2,2]),Int32Array.from([2,1,1,2,1]),Int32Array.from([1,2,1,2,1]),Int32Array.from([1,1,3,3,1]),Int32Array.from([3,1,1,1,3]),Int32Array.from([1,3,1,1,3]),Int32Array.from([3,3,1,1,1]),Int32Array.from([1,1,3,1,3]),Int32Array.from([3,1,3,1,1]),Int32Array.from([1,3,3,1,1]),Int32Array.from([1,1,1,3,3]),Int32Array.from([3,1,1,3,1]),Int32Array.from([1,3,1,3,1])],t.MAX_AVG_VARIANCE=.38,t.MAX_INDIVIDUAL_VARIANCE=.5,t.DEFAULT_ALLOWED_LENGTHS=[6,8,10,12,14],t.START_PATTERN=Int32Array.from([1,1,1,1]),t.END_PATTERN_REVERSED=[Int32Array.from([1,1,2]),Int32Array.from([1,1,3])],t}(d.default),y=g;t.default=y},"68ad":function(e,t,r){var n=r("81eb"),i=r("b718");function o(e){this.rand=e||new i.Rand}e.exports=o,o.create=function(e){return new o(e)},o.prototype._randbelow=function(e){var t=e.bitLength(),r=Math.ceil(t/8);do{var i=new n(this.rand.generate(r))}while(i.cmp(e)>=0);return i},o.prototype._randrange=function(e,t){var r=t.sub(e);return e.add(this._randbelow(r))},o.prototype.test=function(e,t,r){var i=e.bitLength(),o=n.mont(e),a=new n(1).toRed(o);t||(t=Math.max(1,i/48|0));for(var s=e.subn(1),u=0;!s.testn(u);u++);for(var c=e.shrn(u),f=s.toRed(o);t>0;t--){var l=this._randrange(new n(2),s);r&&r(l);var d=l.toRed(o).redPow(c);if(0!==d.cmp(a)&&0!==d.cmp(f)){for(var h=1;h<u;h++){if(d=d.redSqr(),0===d.cmp(a))return!1;if(0===d.cmp(f))break}if(h===u)return!1}}return!0},o.prototype.getDivisor=function(e,t){var r=e.bitLength(),i=n.mont(e),o=new n(1).toRed(i);t||(t=Math.max(1,r/48|0));for(var a=e.subn(1),s=0;!a.testn(s);s++);for(var u=e.shrn(s),c=a.toRed(i);t>0;t--){var f=this._randrange(new n(2),a),l=e.gcd(f);if(0!==l.cmpn(1))return l;var d=f.toRed(i).redPow(u);if(0!==d.cmp(o)&&0!==d.cmp(c)){for(var h=1;h<s;h++){if(d=d.redSqr(),0===d.cmp(o))return d.fromRed().subn(1).gcd(e);if(0===d.cmp(c))break}if(h===s)return d=d.redSqr(),d.fromRed().subn(1).gcd(e)}}return!1}},"692c":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("a9e1")),o=n(r("7e0b")),a=n(r("2efa")),s=n(r("f228")),u=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.sampleGrid=function(e,t,r,n,i,o,s,u,c,f,l,d,h,p,g,y,v,b,m){var _=a.default.quadrilateralToQuadrilateral(n,i,o,s,u,c,f,l,d,h,p,g,y,v,b,m);return this.sampleGridWithTransform(e,t,r,_)},t.prototype.sampleGridWithTransform=function(e,t,r,n){if(t<=0||r<=0)throw new s.default;for(var a=new o.default(t,r),u=new Float32Array(2*t),c=0;c<r;c++){for(var f=u.length,l=c+.5,d=0;d<f;d+=2)u[d]=d/2+.5,u[d+1]=l;n.transformPoints(u),i.default.checkAndNudgePoints(e,u);try{for(d=0;d<f;d+=2)e.get(Math.floor(u[d]),Math.floor(u[d+1]))&&a.set(d/2,c)}catch(h){throw new s.default}}return a},t}(i.default),f=c;t.default=f},"695a":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("a438")),o=n(r("b717")),a=n(r("f7fd")),s=function(){function e(){}return e.prototype.encode=function(e,t,r,n,s){var u;switch(t){case o.default.QR_CODE:u=new i.default;break;default:throw new a.default("No encoder available for format "+t)}return u.encode(e,t,r,n,s)},e}(),u=s;t.default=u},"698d":function(e,t,r){var n=r("2c2e"),i=r("0b4d"),o=r("0b34"),a=r("5f79").Buffer,s=new Array(160);function u(){this.init(),this._w=s,o.call(this,128,112)}n(u,i),u.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},u.prototype._hash=function(){var e=a.allocUnsafe(48);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},e.exports=u},"6ad5":function(e,t,r){"use strict";(function(e,r){Object.defineProperty(t,"__esModule",{value:!0}),t.systemInfo=void 0;t.systemInfo=function(){var t,n=e.getSystemInfoSync(),i=750/n.windowWidth,o=n.windowHeight*i,a=n.windowWidth*i,s=n.statusBarHeight*i,u=r.getMenuButtonBoundingClientRect(),c=u.height*i,f=u.width*i,l=u.top*i,d=u.right*i,h=u.bottom*i,p=u.left*i;return t=c+2*(l-s),{scaleFactor:i,windowHeight:o,windowWidth:a,statusBarHeight:s,menuButtonHeight:c,menuButtonWidth:f,menuButtonTop:l,menuButtonRight:d,menuButtonBottom:h,menuButtonLeft:p,navHeight:t}}}).call(this,r("df3c")["default"],r("3223")["default"])},"6b90":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("5a0c")),o=n(r("1ee0")),a=n(r("f7fd")),s=n(r("5b0a")),u=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),c=function(e){function t(t,r){var n=e.call(this)||this;n.modulus=t,n.expTable=new Int32Array(t),n.logTable=new Int32Array(t);for(var i=1,a=0;a<t;a++)n.expTable[a]=i,i=i*r%t;for(a=0;a<t-1;a++)n.logTable[n.expTable[a]]=a;return n.zero=new o.default(n,new Int32Array([0])),n.one=new o.default(n,new Int32Array([1])),n}return u(t,e),t.prototype.getZero=function(){return this.zero},t.prototype.getOne=function(){return this.one},t.prototype.buildMonomial=function(e,t){if(e<0)throw new a.default;if(0===t)return this.zero;var r=new Int32Array(e+1);return r[0]=t,new o.default(this,r)},t.PDF417_GF=new t(i.default.NUMBER_OF_CODEWORDS,3),t}(s.default),f=c;t.default=f},"6cc4":function(e,t,r){"use strict";var n=r("d652"),i=r("6120"),o=r("de76"),a=n.rotl32,s=n.sum32,u=n.sum32_5,c=o.ft_1,f=i.BlockHash,l=[1518500249,1859775393,2400959708,3395469782];function d(){if(!(this instanceof d))return new d;f.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}n.inherits(d,f),e.exports=d,d.blockSize=512,d.outSize=160,d.hmacStrength=80,d.padLength=64,d.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=a(r[n-3]^r[n-8]^r[n-14]^r[n-16],1);var i=this.h[0],o=this.h[1],f=this.h[2],d=this.h[3],h=this.h[4];for(n=0;n<r.length;n++){var p=~~(n/20),g=u(a(i,5),c(p,o,f,d),h,r[n],l[p]);h=d,d=f,f=a(o,30),o=i,i=g}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],o),this.h[2]=s(this.h[2],f),this.h[3]=s(this.h[3],d),this.h[4]=s(this.h[4],h)},d.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},"6d24":function(e,t,r){var n=r("0428"),i=r("ff2d"),o=r("5f79").Buffer,a=r("ea15"),s=r("cfef"),u=r("0446"),c=r("0a0c"),f=r("2c2e");function l(e,t,r){s.call(this),this._cache=new h,this._cipher=new u.AES(t),this._prev=o.from(r),this._mode=e,this._autopadding=!0}f(l,s),l.prototype._update=function(e){var t,r;this._cache.add(e);var n=[];while(t=this._cache.get())r=this._mode.encrypt(this,t),n.push(r);return o.concat(n)};var d=o.alloc(16,16);function h(){this.cache=o.allocUnsafe(0)}function p(e,t,r){var s=n[e.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"===typeof t&&(t=o.from(t)),t.length!==s.key/8)throw new TypeError("invalid key length "+t.length);if("string"===typeof r&&(r=o.from(r)),"GCM"!==s.mode&&r.length!==s.iv)throw new TypeError("invalid iv length "+r.length);return"stream"===s.type?new a(s.module,t,r):"auth"===s.type?new i(s.module,t,r):new l(s.module,t,r)}l.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(d))throw this._cipher.scrub(),new Error("data not multiple of block length")},l.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},h.prototype.add=function(e){this.cache=o.concat([this.cache,e])},h.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},h.prototype.flush=function(){var e=16-this.cache.length,t=o.allocUnsafe(e),r=-1;while(++r<e)t.writeUInt8(e,r);return o.concat([this.cache,t])},t.createCipheriv=p,t.createCipher=function(e,t){var r=n[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var i=c(t,!1,r.key,r.iv);return p(e,i.key,i.iv)}},"6d31":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("b717")),o=n(r("f228")),a=n(r("4d7d")),s=n(r("0c24")),u=n(r("a8be")),c=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.CODA_BAR_CHAR_SET={nnnnnww:"0",nnnnwwn:"1",nnnwnnw:"2",wwnnnnn:"3",nnwnnwn:"4",wnnnnwn:"5",nwnnnnw:"6",nwnnwnn:"7",nwwnnnn:"8",wnnwnnn:"9",nnnwwnn:"-",nnwwnnn:"$",wnnnwnw:":",wnwnnnw:"/",wnwnwnn:".",nnwwwww:"+",nnwwnwn:"A",nwnwnnw:"B",nnnwnww:"C",nnnwwwn:"D"},t}return c(t,e),t.prototype.decodeRow=function(e,t,r){var n=this.getValidRowData(t);if(!n)throw new o.default;var a=this.codaBarDecodeRow(n.row);if(!a)throw new o.default;return new s.default(a,null,0,[new u.default(n.left,e),new u.default(n.right,e)],i.default.CODABAR,(new Date).getTime())},t.prototype.getValidRowData=function(e){var t=e.toArray(),r=t.indexOf(!0);if(-1===r)return null;var n=t.lastIndexOf(!0);if(n<=r)return null;t=t.slice(r,n+1);for(var i=[],o=t[0],a=1,s=1;s<t.length;s++)t[s]===o?a++:(o=t[s],i.push(a),a=1);return i.push(a),i.length<23&&(i.length+1)%8!==0?null:{row:i,left:r,right:n}},t.prototype.codaBarDecodeRow=function(e){var t=[],r=Math.ceil(e.reduce((function(e,t){return(e+t)/2}),0));while(e.length>0){var n=e.splice(0,8).splice(0,7),i=n.map((function(e){return e<r?"n":"w"})).join("");if(void 0===this.CODA_BAR_CHAR_SET[i])return null;t.push(this.CODA_BAR_CHAR_SET[i])}var o=t.join("");return this.validCodaBarString(o)?o:null},t.prototype.validCodaBarString=function(e){return/^[A-D].{1,}[A-D]$/.test(e)},t}(a.default),l=f;t.default=l},"6ef9":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("91fc")),o=n(r("8172")),a=n(r("7514")),s=function(){function e(){}return e.decodeRow=function(e,t,r){var n=i.default.findGuardPattern(t,r,!1,this.EXTENSION_START_PATTERN,new Int32Array(this.EXTENSION_START_PATTERN.length).fill(0));try{var s=new o.default;return s.decodeRow(e,t,n)}catch(c){var u=new a.default;return u.decodeRow(e,t,n)}},e.EXTENSION_START_PATTERN=Int32Array.from([1,1,2]),e}(),u=s;t.default=u},7004:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.createDecoder=function(e){try{if(e.get(1))return new a.default(e);if(!e.get(2))return new s.default(e);var t=o.default.extractNumericValueFromBitArray(e,1,4);switch(t){case 4:return new u.default(e);case 5:return new c.default(e)}var r=o.default.extractNumericValueFromBitArray(e,1,5);switch(r){case 12:return new f.default(e);case 13:return new l.default(e)}var n=o.default.extractNumericValueFromBitArray(e,1,7);switch(n){case 56:return new d.default(e,"310","11");case 57:return new d.default(e,"320","11");case 58:return new d.default(e,"310","13");case 59:return new d.default(e,"320","13");case 60:return new d.default(e,"310","15");case 61:return new d.default(e,"320","15");case 62:return new d.default(e,"310","17");case 63:return new d.default(e,"320","17")}}catch(h){throw console.log(h),new i.default("unknown decoder: "+e)}};var i=n(r("9e56")),o=n(r("46f2")),a=n(r("e3a5")),s=n(r("27db")),u=n(r("39a5")),c=n(r("44ce")),f=n(r("a6da")),l=n(r("2508")),d=n(r("2f48"))},7125:function(e,t,r){t=e.exports=r("46dd"),t.Stream=t,t.Readable=t,t.Writable=r("edd4"),t.Duplex=r("0ec1"),t.Transform=r("0f55"),t.PassThrough=r("7f8f")},"715c":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(){function e(e){this.bottomLeft=e[0],this.topLeft=e[1],this.topRight=e[2]}return e.prototype.getBottomLeft=function(){return this.bottomLeft},e.prototype.getTopLeft=function(){return this.topLeft},e.prototype.getTopRight=function(){return this.topRight},e}(),i=n;t.default=i},7172:function(e,t){e.exports=function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,s=[],u=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=r["return"]&&(a=r["return"](),Object(a)!==a))return}finally{if(c)throw i}}return s}},e.exports.__esModule=!0,e.exports["default"]=e.exports},7322:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r("2004"),i=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),o=function(e){function t(t){void 0===t&&(t=void 0);var r=e.call(this,t)||this;return r.message=t,r}return i(t,e),t.prototype.getKind=function(){var e=this.constructor;return e.kind},t.kind="Exception",t}(n.CustomError),a=o;t.default=a},7514:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("b717")),o=n(r("91fc")),a=n(r("0c24")),s=n(r("a8be")),u=n(r("37ed")),c=n(r("f228")),f=function(e){var t="function"===typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},l=function(){function e(){this.decodeMiddleCounters=Int32Array.from([0,0,0,0]),this.decodeRowStringBuffer=""}return e.prototype.decodeRow=function(t,r,n){var o=this.decodeRowStringBuffer,u=this.decodeMiddle(r,n,o),c=o.toString(),f=e.parseExtensionString(c),l=[new s.default((n[0]+n[1])/2,t),new s.default(u,t)],d=new a.default(c,null,0,l,i.default.UPC_EAN_EXTENSION,(new Date).getTime());return null!=f&&d.putAllMetadata(f),d},e.prototype.decodeMiddle=function(e,t,r){var n,i,a=this.decodeMiddleCounters;a[0]=0,a[1]=0,a[2]=0,a[3]=0;for(var s=e.getSize(),u=t[1],l=0,d=0;d<2&&u<s;d++){var h=o.default.decodeDigit(e,a,u,o.default.L_AND_G_PATTERNS);r+=String.fromCharCode("0".charCodeAt(0)+h%10);try{for(var p=(n=void 0,f(a)),g=p.next();!g.done;g=p.next()){var y=g.value;u+=y}}catch(v){n={error:v}}finally{try{g&&!g.done&&(i=p.return)&&i.call(p)}finally{if(n)throw n.error}}h>=10&&(l|=1<<1-d),1!==d&&(u=e.getNextSet(u),u=e.getNextUnset(u))}if(2!==r.length)throw new c.default;if(parseInt(r.toString())%4!==l)throw new c.default;return u},e.parseExtensionString=function(e){return 2!==e.length?null:new Map([[u.default.ISSUE_NUMBER,parseInt(e)]])},e}(),d=l;t.default=d},7599:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r("a3ea");Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}));var i=r("0dec");Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var o=r("a5d4");Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}));var a=r("15eb");Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))}));var s=r("0382");Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===s[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))}));var u=r("fbd0");Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===u[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}}))}));var c=r("2a00");Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===c[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}}))}));var f=r("7da0");Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===f[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return f[e]}}))}));var l=r("5e0a");Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))}));var d=r("ecbf");Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===d[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}}))}));var h=r("87eb");Object.keys(h).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===h[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return h[e]}}))}));var p=r("3cf1");Object.keys(p).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===p[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return p[e]}}))}))},7647:function(e,t){function r(t,n){return e.exports=r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports["default"]=e.exports,r(t,n)}e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},"768a":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("f74e")),o=n(r("343e")),a=n(r("f228")),s=n(r("c769")),u=n(r("5a0c")),c=n(r("dc3a")),f=n(r("db51")),l=n(r("2eda")),d=n(r("40fe")),h=n(r("f930")),p=n(r("d61e")),g=n(r("cc5c")),y=n(r("5247")),v=n(r("02e6")),b=n(r("a608")),m=function(e){var t="function"===typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},_=function(){function e(){}return e.decode=function(t,r,n,i,o,s,u){for(var c,d=new f.default(t,r,n,i,o),p=null,g=null,y=!0;;y=!1){if(null!=r&&(p=e.getRowIndicatorColumn(t,d,r,!0,s,u)),null!=i&&(g=e.getRowIndicatorColumn(t,d,i,!1,s,u)),c=e.merge(p,g),null==c)throw a.default.getNotFoundInstance();var v=c.getBoundingBox();if(!y||null==v||!(v.getMinY()<d.getMinY()||v.getMaxY()>d.getMaxY()))break;d=v}c.setBoundingBox(d);var b=c.getBarcodeColumnCount()+1;c.setDetectionResultColumn(0,p),c.setDetectionResultColumn(b,g);for(var m=null!=p,_=1;_<=b;_++){var w=m?_:b-_;if(void 0===c.getDetectionResultColumn(w)){var A=void 0;A=0===w||w===b?new l.default(d,0===w):new h.default(d),c.setDetectionResultColumn(w,A);for(var S=-1,x=S,E=d.getMinY();E<=d.getMaxY();E++){if(S=e.getStartColumn(c,w,E,m),S<0||S>d.getMaxX()){if(-1===x)continue;S=x}var C=e.detectCodeword(t,d.getMinX(),d.getMaxX(),m,S,E,s,u);null!=C&&(A.setCodeword(E,C),x=S,s=Math.min(s,C.getWidth()),u=Math.max(u,C.getWidth()))}}}return e.createDecoderResult(c)},e.merge=function(t,r){if(null==t&&null==r)return null;var n=e.getBarcodeMetadata(t,r);if(null==n)return null;var i=f.default.merge(e.adjustBoundingBox(t),e.adjustBoundingBox(r));return new d.default(n,i)},e.adjustBoundingBox=function(t){var r,n;if(null==t)return null;var i=t.getRowHeights();if(null==i)return null;var o=e.getMax(i),a=0;try{for(var s=m(i),u=s.next();!u.done;u=s.next()){var c=u.value;if(a+=o-c,c>0)break}}catch(h){r={error:h}}finally{try{u&&!u.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}for(var f=t.getCodewords(),l=0;a>0&&null==f[l];l++)a--;var d=0;for(l=i.length-1;l>=0;l--)if(d+=o-i[l],i[l]>0)break;for(l=f.length-1;d>0&&null==f[l];l--)d--;return t.getBoundingBox().addMissingRows(a,d,t.isLeft())},e.getMax=function(e){var t,r,n=-1;try{for(var i=m(e),o=i.next();!o.done;o=i.next()){var a=o.value;n=Math.max(n,a)}}catch(s){t={error:s}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n},e.getBarcodeMetadata=function(e,t){var r,n;return null==e||null==(r=e.getBarcodeMetadata())?null==t?null:t.getBarcodeMetadata():null==t||null==(n=t.getBarcodeMetadata())?r:r.getColumnCount()!==n.getColumnCount()&&r.getErrorCorrectionLevel()!==n.getErrorCorrectionLevel()&&r.getRowCount()!==n.getRowCount()?null:r},e.getRowIndicatorColumn=function(t,r,n,i,o,a){for(var s=new l.default(r,i),u=0;u<2;u++)for(var c=0===u?1:-1,f=Math.trunc(Math.trunc(n.getX())),d=Math.trunc(Math.trunc(n.getY()));d<=r.getMaxY()&&d>=r.getMinY();d+=c){var h=e.detectCodeword(t,0,t.getWidth(),i,f,d,o,a);null!=h&&(s.setCodeword(d,h),f=i?h.getStartX():h.getEndX())}return s},e.adjustCodewordCount=function(t,r){var n=r[0][1],i=n.getValue(),o=t.getBarcodeColumnCount()*t.getBarcodeRowCount()-e.getNumberOfECCodeWords(t.getBarcodeECLevel());if(0===i.length){if(o<1||o>u.default.MAX_CODEWORDS_IN_BARCODE)throw a.default.getNotFoundInstance();n.setValue(o)}else i[0]!==o&&n.setValue(o)},e.createDecoderResult=function(t){var r=e.createBarcodeMatrix(t);e.adjustCodewordCount(t,r);for(var n=new Array,i=new Int32Array(t.getBarcodeRowCount()*t.getBarcodeColumnCount()),o=[],a=new Array,s=0;s<t.getBarcodeRowCount();s++)for(var c=0;c<t.getBarcodeColumnCount();c++){var f=r[s][c+1].getValue(),l=s*t.getBarcodeColumnCount()+c;0===f.length?n.push(l):1===f.length?i[l]=f[0]:(a.push(l),o.push(f))}for(var d=new Array(o.length),h=0;h<d.length;h++)d[h]=o[h];return e.createDecoderResultFromAmbiguousValues(t.getBarcodeECLevel(),i,u.default.toIntArray(n),u.default.toIntArray(a),d)},e.createDecoderResultFromAmbiguousValues=function(t,r,n,o,a){var s=new Int32Array(o.length),u=100;while(u-- >0){for(var c=0;c<s.length;c++)r[o[c]]=a[c][s[c]];try{return e.decodeCodewords(r,t,n)}catch(l){var f=l instanceof i.default;if(!f)throw l}if(0===s.length)throw i.default.getChecksumInstance();for(c=0;c<s.length;c++){if(s[c]<a[c].length-1){s[c]++;break}if(s[c]=0,c===s.length-1)throw i.default.getChecksumInstance()}}throw i.default.getChecksumInstance()},e.createBarcodeMatrix=function(e){for(var t,r,n,i,o=Array.from({length:e.getBarcodeRowCount()},(function(){return new Array(e.getBarcodeColumnCount()+2)})),a=0;a<o.length;a++)for(var s=0;s<o[a].length;s++)o[a][s]=new g.default;var u=0;try{for(var c=m(e.getDetectionResultColumns()),f=c.next();!f.done;f=c.next()){var l=f.value;if(null!=l)try{for(var d=(n=void 0,m(l.getCodewords())),h=d.next();!h.done;h=d.next()){var p=h.value;if(null!=p){var y=p.getRowNumber();if(y>=0){if(y>=o.length)continue;o[y][u].setValue(p.getValue())}}}}catch(v){n={error:v}}finally{try{h&&!h.done&&(i=d.return)&&i.call(d)}finally{if(n)throw n.error}}u++}}catch(b){t={error:b}}finally{try{f&&!f.done&&(r=c.return)&&r.call(c)}finally{if(t)throw t.error}}return o},e.isValidBarcodeColumn=function(e,t){return t>=0&&t<=e.getBarcodeColumnCount()+1},e.getStartColumn=function(t,r,n,i){var o,a,s=i?1:-1,u=null;if(e.isValidBarcodeColumn(t,r-s)&&(u=t.getDetectionResultColumn(r-s).getCodeword(n)),null!=u)return i?u.getEndX():u.getStartX();if(u=t.getDetectionResultColumn(r).getCodewordNearby(n),null!=u)return i?u.getStartX():u.getEndX();if(e.isValidBarcodeColumn(t,r-s)&&(u=t.getDetectionResultColumn(r-s).getCodewordNearby(n)),null!=u)return i?u.getEndX():u.getStartX();var c=0;while(e.isValidBarcodeColumn(t,r-s)){r-=s;try{for(var f=(o=void 0,m(t.getDetectionResultColumn(r).getCodewords())),l=f.next();!l.done;l=f.next()){var d=l.value;if(null!=d)return(i?d.getEndX():d.getStartX())+s*c*(d.getEndX()-d.getStartX())}}catch(h){o={error:h}}finally{try{l&&!l.done&&(a=f.return)&&a.call(f)}finally{if(o)throw o.error}}c++}return i?t.getBoundingBox().getMinX():t.getBoundingBox().getMaxX()},e.detectCodeword=function(t,r,n,i,o,a,c,f){o=e.adjustCodewordStartColumn(t,r,n,i,o,a);var l,d=e.getModuleBitCount(t,r,n,i,o,a);if(null==d)return null;var h=s.default.sum(d);if(i)l=o+h;else{for(var g=0;g<d.length/2;g++){var v=d[g];d[g]=d[d.length-1-g],d[d.length-1-g]=v}l=o,o=l-h}if(!e.checkCodewordSkew(h,c,f))return null;var b=y.default.getDecodedValue(d),m=u.default.getCodeword(b);return-1===m?null:new p.default(o,l,e.getCodewordBucketNumber(b),m)},e.getModuleBitCount=function(e,t,r,n,i,o){var a=i,s=new Int32Array(8),u=0,c=n?1:-1,f=n;while((n?a<r:a>=t)&&u<s.length)e.get(a,o)===f?(s[u]++,a+=c):(u++,f=!f);return u===s.length||a===(n?r:t)&&u===s.length-1?s:null},e.getNumberOfECCodeWords=function(e){return 2<<e},e.adjustCodewordStartColumn=function(t,r,n,i,o,a){for(var s=o,u=i?-1:1,c=0;c<2;c++){while((i?s>=r:s<n)&&i===t.get(s,a)){if(Math.abs(o-s)>e.CODEWORD_SKEW_SIZE)return o;s+=u}u=-u,i=!i}return s},e.checkCodewordSkew=function(t,r,n){return r-e.CODEWORD_SKEW_SIZE<=t&&t<=n+e.CODEWORD_SKEW_SIZE},e.decodeCodewords=function(t,r,n){if(0===t.length)throw o.default.getFormatInstance();var i=1<<r+1,a=e.correctErrors(t,n,i);e.verifyCodewordCount(t,i);var s=v.default.decode(t,""+r);return s.setErrorsCorrected(a),s.setErasures(n.length),s},e.correctErrors=function(t,r,n){if(null!=r&&r.length>n/2+e.MAX_ERRORS||n<0||n>e.MAX_EC_CODEWORDS)throw i.default.getChecksumInstance();return e.errorCorrection.decode(t,n,r)},e.verifyCodewordCount=function(e,t){if(e.length<4)throw o.default.getFormatInstance();var r=e[0];if(r>e.length)throw o.default.getFormatInstance();if(0===r){if(!(t<e.length))throw o.default.getFormatInstance();e[0]=e.length-t}},e.getBitCountForCodeword=function(e){var t=new Int32Array(8),r=0,n=t.length-1;while(1){if((1&e)!==r&&(r=1&e,n--,n<0))break;t[n]++,e>>=1}return t},e.getCodewordBucketNumber=function(e){return e instanceof Int32Array?this.getCodewordBucketNumber_Int32Array(e):this.getCodewordBucketNumber_number(e)},e.getCodewordBucketNumber_number=function(t){return e.getCodewordBucketNumber(e.getBitCountForCodeword(t))},e.getCodewordBucketNumber_Int32Array=function(e){return(e[0]-e[2]+e[4]-e[6]+9)%9},e.toString=function(e){for(var t=new b.default,r=0;r<e.length;r++){t.format("Row %2d: ",r);for(var n=0;n<e[r].length;n++){var i=e[r][n];0===i.getValue().length?t.format(" ",null):t.format("%4d(%2d)",i.getValue()[0],i.getConfidence(i.getValue()[0]))}t.format("%n")}return t.toString()},e.CODEWORD_SKEW_SIZE=2,e.MAX_ERRORS=3,e.MAX_EC_CODEWORDS=512,e.errorCorrection=new c.default,e}(),w=_;t.default=w},"76a0":function(e,t,r){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,function(e){e[e["OTHER"]=0]="OTHER",e[e["PURE_BARCODE"]=1]="PURE_BARCODE",e[e["POSSIBLE_FORMATS"]=2]="POSSIBLE_FORMATS",e[e["TRY_HARDER"]=3]="TRY_HARDER",e[e["CHARACTER_SET"]=4]="CHARACTER_SET",e[e["ALLOWED_LENGTHS"]=5]="ALLOWED_LENGTHS",e[e["ASSUME_CODE_39_CHECK_DIGIT"]=6]="ASSUME_CODE_39_CHECK_DIGIT",e[e["ENABLE_CODE_39_EXTENDED_MODE"]=7]="ENABLE_CODE_39_EXTENDED_MODE",e[e["ASSUME_GS1"]=8]="ASSUME_GS1",e[e["RETURN_CODABAR_START_END"]=9]="RETURN_CODABAR_START_END",e[e["NEED_RESULT_POINT_CALLBACK"]=10]="NEED_RESULT_POINT_CALLBACK",e[e["ALLOWED_EAN_EXTENSIONS"]=11]="ALLOWED_EAN_EXTENSIONS"}(n||(n={}));var i=n;t.default=i},"76f5":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("36d3")),o=n(r("d4f8")),a=function(e){var t="function"===typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},s=function(){function e(e,t){this.width=e,this.height=t;for(var r=new Array(t),n=0;n!==t;n++)r[n]=new Uint8Array(e);this.bytes=r}return e.prototype.getHeight=function(){return this.height},e.prototype.getWidth=function(){return this.width},e.prototype.get=function(e,t){return this.bytes[t][e]},e.prototype.getArray=function(){return this.bytes},e.prototype.setNumber=function(e,t,r){this.bytes[t][e]=r},e.prototype.setBoolean=function(e,t,r){this.bytes[t][e]=r?1:0},e.prototype.clear=function(e){var t,r;try{for(var n=a(this.bytes),o=n.next();!o.done;o=n.next()){var s=o.value;i.default.fill(s,e)}}catch(u){t={error:u}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}},e.prototype.equals=function(t){if(!(t instanceof e))return!1;var r=t;if(this.width!==r.width)return!1;if(this.height!==r.height)return!1;for(var n=0,i=this.height;n<i;++n)for(var o=this.bytes[n],a=r.bytes[n],s=0,u=this.width;s<u;++s)if(o[s]!==a[s])return!1;return!0},e.prototype.toString=function(){for(var e=new o.default,t=0,r=this.height;t<r;++t){for(var n=this.bytes[t],i=0,a=this.width;i<a;++i)switch(n[i]){case 0:e.append(" 0");break;case 1:e.append(" 1");break;default:e.append(" ");break}e.append("\n")}return e.toString()},e}(),u=s;t.default=u},"782c":function(e,t,r){"use strict";var n=r("2c2e"),i=r("c83b"),o=r("5f79").Buffer,a=new Array(16);function s(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function u(e,t){return e<<t|e>>>32-t}function c(e,t,r,n,i,o,a){return u(e+(t&r|~t&n)+i+o|0,a)+t|0}function f(e,t,r,n,i,o,a){return u(e+(t&n|r&~n)+i+o|0,a)+t|0}function l(e,t,r,n,i,o,a){return u(e+(t^r^n)+i+o|0,a)+t|0}function d(e,t,r,n,i,o,a){return u(e+(r^(t|~n))+i+o|0,a)+t|0}n(s,i),s.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var r=this._a,n=this._b,i=this._c,o=this._d;r=c(r,n,i,o,e[0],3614090360,7),o=c(o,r,n,i,e[1],3905402710,12),i=c(i,o,r,n,e[2],606105819,17),n=c(n,i,o,r,e[3],3250441966,22),r=c(r,n,i,o,e[4],4118548399,7),o=c(o,r,n,i,e[5],1200080426,12),i=c(i,o,r,n,e[6],2821735955,17),n=c(n,i,o,r,e[7],4249261313,22),r=c(r,n,i,o,e[8],1770035416,7),o=c(o,r,n,i,e[9],2336552879,12),i=c(i,o,r,n,e[10],4294925233,17),n=c(n,i,o,r,e[11],2304563134,22),r=c(r,n,i,o,e[12],1804603682,7),o=c(o,r,n,i,e[13],4254626195,12),i=c(i,o,r,n,e[14],2792965006,17),n=c(n,i,o,r,e[15],1236535329,22),r=f(r,n,i,o,e[1],4129170786,5),o=f(o,r,n,i,e[6],3225465664,9),i=f(i,o,r,n,e[11],643717713,14),n=f(n,i,o,r,e[0],3921069994,20),r=f(r,n,i,o,e[5],3593408605,5),o=f(o,r,n,i,e[10],38016083,9),i=f(i,o,r,n,e[15],3634488961,14),n=f(n,i,o,r,e[4],3889429448,20),r=f(r,n,i,o,e[9],568446438,5),o=f(o,r,n,i,e[14],3275163606,9),i=f(i,o,r,n,e[3],4107603335,14),n=f(n,i,o,r,e[8],1163531501,20),r=f(r,n,i,o,e[13],2850285829,5),o=f(o,r,n,i,e[2],4243563512,9),i=f(i,o,r,n,e[7],1735328473,14),n=f(n,i,o,r,e[12],2368359562,20),r=l(r,n,i,o,e[5],4294588738,4),o=l(o,r,n,i,e[8],2272392833,11),i=l(i,o,r,n,e[11],1839030562,16),n=l(n,i,o,r,e[14],4259657740,23),r=l(r,n,i,o,e[1],2763975236,4),o=l(o,r,n,i,e[4],1272893353,11),i=l(i,o,r,n,e[7],4139469664,16),n=l(n,i,o,r,e[10],3200236656,23),r=l(r,n,i,o,e[13],681279174,4),o=l(o,r,n,i,e[0],3936430074,11),i=l(i,o,r,n,e[3],3572445317,16),n=l(n,i,o,r,e[6],76029189,23),r=l(r,n,i,o,e[9],3654602809,4),o=l(o,r,n,i,e[12],3873151461,11),i=l(i,o,r,n,e[15],530742520,16),n=l(n,i,o,r,e[2],3299628645,23),r=d(r,n,i,o,e[0],4096336452,6),o=d(o,r,n,i,e[7],1126891415,10),i=d(i,o,r,n,e[14],2878612391,15),n=d(n,i,o,r,e[5],4237533241,21),r=d(r,n,i,o,e[12],1700485571,6),o=d(o,r,n,i,e[3],2399980690,10),i=d(i,o,r,n,e[10],4293915773,15),n=d(n,i,o,r,e[1],2240044497,21),r=d(r,n,i,o,e[8],1873313359,6),o=d(o,r,n,i,e[15],4264355552,10),i=d(i,o,r,n,e[6],2734768916,15),n=d(n,i,o,r,e[13],1309151649,21),r=d(r,n,i,o,e[4],4149444226,6),o=d(o,r,n,i,e[11],3174756917,10),i=d(i,o,r,n,e[2],718787259,15),n=d(n,i,o,r,e[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+n|0,this._c=this._c+i|0,this._d=this._d+o|0},s.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=o.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=s},"786c":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("fe5a")),o=n(r("d4f8")),a=n(r("f228")),s=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),u=function(e){function t(t){return e.call(this,t)||this}return s(t,e),t.prototype.parseInformation=function(){if(this.getInformation().getSize()!==t.HEADER_SIZE+i.default.GTIN_SIZE+t.WEIGHT_SIZE)throw new a.default;var e=new o.default;return this.encodeCompressedGtin(e,t.HEADER_SIZE),this.encodeCompressedWeight(e,t.HEADER_SIZE+i.default.GTIN_SIZE,t.WEIGHT_SIZE),e.toString()},t.HEADER_SIZE=5,t.WEIGHT_SIZE=15,t}(i.default),c=u;t.default=c},"78df":function(e){e.exports=JSON.parse('{"uni-datetime-picker.selectDate":"選擇日期","uni-datetime-picker.selectTime":"選擇時間","uni-datetime-picker.selectDateTime":"選擇日期時間","uni-datetime-picker.startDate":"開始日期","uni-datetime-picker.endDate":"結束日期","uni-datetime-picker.startTime":"開始时间","uni-datetime-picker.endTime":"結束时间","uni-datetime-picker.ok":"確定","uni-datetime-picker.clear":"清除","uni-datetime-picker.cancel":"取消","uni-datetime-picker.year":"年","uni-datetime-picker.month":"月","uni-calender.SUN":"日","uni-calender.MON":"一","uni-calender.TUE":"二","uni-calender.WED":"三","uni-calender.THU":"四","uni-calender.FRI":"五","uni-calender.SAT":"六","uni-calender.confirm":"確認"}')},"7a09":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("f7fd")),o=function(){function e(e){if(this.binarizer=e,null===e)throw new i.default("Binarizer must be non-null.")}return e.prototype.getWidth=function(){return this.binarizer.getWidth()},e.prototype.getHeight=function(){return this.binarizer.getHeight()},e.prototype.getBlackRow=function(e,t){return this.binarizer.getBlackRow(e,t)},e.prototype.getBlackMatrix=function(){return null!==this.matrix&&void 0!==this.matrix||(this.matrix=this.binarizer.getBlackMatrix()),this.matrix},e.prototype.isCropSupported=function(){return this.binarizer.getLuminanceSource().isCropSupported()},e.prototype.crop=function(t,r,n,i){var o=this.binarizer.getLuminanceSource().crop(t,r,n,i);return new e(this.binarizer.createBinarizer(o))},e.prototype.isRotateSupported=function(){return this.binarizer.getLuminanceSource().isRotateSupported()},e.prototype.rotateCounterClockwise=function(){var t=this.binarizer.getLuminanceSource().rotateCounterClockwise();return new e(this.binarizer.createBinarizer(t))},e.prototype.rotateCounterClockwise45=function(){var t=this.binarizer.getLuminanceSource().rotateCounterClockwise45();return new e(this.binarizer.createBinarizer(t))},e.prototype.toString=function(){try{return this.getBlackMatrix().toString()}catch(e){return""}},e}(),a=o;t.default=a},"7a32":function(e){e.exports=JSON.parse('{"sha224WithRSAEncryption":{"sign":"rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"RSA-SHA224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha256WithRSAEncryption":{"sign":"rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"RSA-SHA256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha384WithRSAEncryption":{"sign":"rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"RSA-SHA384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512WithRSAEncryption":{"sign":"rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA1":{"sign":"rsa","hash":"sha1","id":"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{"sign":"ecdsa","hash":"sha1","id":""},"sha256":{"sign":"ecdsa","hash":"sha256","id":""},"sha224":{"sign":"ecdsa","hash":"sha224","id":""},"sha384":{"sign":"ecdsa","hash":"sha384","id":""},"sha512":{"sign":"ecdsa","hash":"sha512","id":""},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}')},"7c8f":function(e,t,r){(function(e){var t=r("3b2d");e.addInterceptor({returnValue:function(e){return!e||"object"!==t(e)&&"function"!==typeof e||"function"!==typeof e.then?e:new Promise((function(t,r){e.then((function(e){return e?e[0]?r(e[0]):t(e[1]):t(e)}))}))}})}).call(this,r("df3c")["default"])},"7ca3":function(e,t,r){var n=r("d551");e.exports=function(e,t,r){return t=n(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.__esModule=!0,e.exports["default"]=e.exports},"7ce1":function(e,t,r){var n=r("b4d2"),i=r("7647"),o=r("4965"),a=r("931d");function s(t){var r="function"===typeof Map?new Map:void 0;return e.exports=s=function(e){if(null===e||!o(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof r){if(r.has(e))return r.get(e);r.set(e,t)}function t(){return a(e,arguments,n(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),i(t,e)},e.exports.__esModule=!0,e.exports["default"]=e.exports,s(t)}e.exports=s,e.exports.__esModule=!0,e.exports["default"]=e.exports},"7d60":function(e,t,r){"use strict";var n=r("d652"),i=r("438f");function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}n.inherits(o,i),e.exports=o,o.blockSize=512,o.outSize=224,o.hmacStrength=192,o.padLength=64,o.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},"7da0":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.BrowserQRCodeSvgWriter=void 0;var i=n(r("d757")),o=n(r("6387")),a=n(r("08c5")),s=n(r("f7fd")),u=n(r("9e56")),c=function(){function e(){}return e.prototype.write=function(t,r,n,u){if(void 0===u&&(u=null),0===t.length)throw new s.default("Found empty contents");if(r<0||n<0)throw new s.default("Requested dimensions are too small: "+r+"x"+n);var c=a.default.L,f=e.QUIET_ZONE_SIZE;null!==u&&(void 0!==u.get(i.default.ERROR_CORRECTION)&&(c=a.default.fromString(u.get(i.default.ERROR_CORRECTION).toString())),void 0!==u.get(i.default.MARGIN)&&(f=Number.parseInt(u.get(i.default.MARGIN).toString(),10)));var l=o.default.encode(t,c,u);return this.renderResult(l,r,n,f)},e.prototype.writeToDom=function(e,t,r,n,i){void 0===i&&(i=null),"string"===typeof e&&(e=document.querySelector(e));var o=this.write(t,r,n,i);e&&e.appendChild(o)},e.prototype.renderResult=function(e,t,r,n){var i=e.getMatrix();if(null===i)throw new u.default;for(var o=i.getWidth(),a=i.getHeight(),s=o+2*n,c=a+2*n,f=Math.max(t,s),l=Math.max(r,c),d=Math.min(Math.floor(f/s),Math.floor(l/c)),h=Math.floor((f-o*d)/2),p=Math.floor((l-a*d)/2),g=this.createSVGElement(f,l),y=0,v=p;y<a;y++,v+=d)for(var b=0,m=h;b<o;b++,m+=d)if(1===i.get(b,y)){var _=this.createSvgRectElement(m,v,d,d);g.appendChild(_)}return g},e.prototype.createSVGElement=function(t,r){var n=document.createElementNS(e.SVG_NS,"svg");return n.setAttributeNS(null,"height",t.toString()),n.setAttributeNS(null,"width",r.toString()),n},e.prototype.createSvgRectElement=function(t,r,n,i){var o=document.createElementNS(e.SVG_NS,"rect");return o.setAttributeNS(null,"x",t.toString()),o.setAttributeNS(null,"y",r.toString()),o.setAttributeNS(null,"height",n.toString()),o.setAttributeNS(null,"width",i.toString()),o.setAttributeNS(null,"fill","#000000"),o},e.QUIET_ZONE_SIZE=4,e.SVG_NS="http://www.w3.org/2000/svg",e}();t.BrowserQRCodeSvgWriter=c},"7e0b":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("9c16")),o=n(r("1ff8")),a=n(r("36d3")),s=n(r("d4f8")),u=n(r("f7fd")),c=function(){function e(e,t,r,n){if(this.width=e,this.height=t,this.rowSize=r,this.bits=n,void 0!==t&&null!==t||(t=e),this.height=t,e<1||t<1)throw new u.default("Both dimensions must be greater than 0");void 0!==r&&null!==r||(r=Math.floor((e+31)/32)),this.rowSize=r,void 0!==n&&null!==n||(this.bits=new Int32Array(this.rowSize*this.height))}return e.parseFromBooleanArray=function(t){for(var r=t.length,n=t[0].length,i=new e(n,r),o=0;o<r;o++)for(var a=t[o],s=0;s<n;s++)a[s]&&i.set(s,o);return i},e.parseFromString=function(t,r,n){if(null===t)throw new u.default("stringRepresentation cannot be null");var i=new Array(t.length),o=0,a=0,s=-1,c=0,f=0;while(f<t.length)if("\n"===t.charAt(f)||"\r"===t.charAt(f)){if(o>a){if(-1===s)s=o-a;else if(o-a!==s)throw new u.default("row lengths do not match");a=o,c++}f++}else if(t.substring(f,f+r.length)===r)f+=r.length,i[o]=!0,o++;else{if(t.substring(f,f+n.length)!==n)throw new u.default("illegal character encountered: "+t.substring(f));f+=n.length,i[o]=!1,o++}if(o>a){if(-1===s)s=o-a;else if(o-a!==s)throw new u.default("row lengths do not match");c++}for(var l=new e(s,c),d=0;d<o;d++)i[d]&&l.set(Math.floor(d%s),Math.floor(d/s));return l},e.prototype.get=function(e,t){var r=t*this.rowSize+Math.floor(e/32);return 0!==(this.bits[r]>>>(31&e)&1)},e.prototype.set=function(e,t){var r=t*this.rowSize+Math.floor(e/32);this.bits[r]|=1<<(31&e)&4294967295},e.prototype.unset=function(e,t){var r=t*this.rowSize+Math.floor(e/32);this.bits[r]&=~(1<<(31&e)&4294967295)},e.prototype.flip=function(e,t){var r=t*this.rowSize+Math.floor(e/32);this.bits[r]^=1<<(31&e)&4294967295},e.prototype.xor=function(e){if(this.width!==e.getWidth()||this.height!==e.getHeight()||this.rowSize!==e.getRowSize())throw new u.default("input matrix dimensions do not match");for(var t=new i.default(Math.floor(this.width/32)+1),r=this.rowSize,n=this.bits,o=0,a=this.height;o<a;o++)for(var s=o*r,c=e.getRow(o,t).getBitArray(),f=0;f<r;f++)n[s+f]^=c[f]},e.prototype.clear=function(){for(var e=this.bits,t=e.length,r=0;r<t;r++)e[r]=0},e.prototype.setRegion=function(e,t,r,n){if(t<0||e<0)throw new u.default("Left and top must be nonnegative");if(n<1||r<1)throw new u.default("Height and width must be at least 1");var i=e+r,o=t+n;if(o>this.height||i>this.width)throw new u.default("The region must fit inside the matrix");for(var a=this.rowSize,s=this.bits,c=t;c<o;c++)for(var f=c*a,l=e;l<i;l++)s[f+Math.floor(l/32)]|=1<<(31&l)&4294967295},e.prototype.getRow=function(e,t){null===t||void 0===t||t.getSize()<this.width?t=new i.default(this.width):t.clear();for(var r=this.rowSize,n=this.bits,o=e*r,a=0;a<r;a++)t.setBulk(32*a,n[o+a]);return t},e.prototype.setRow=function(e,t){o.default.arraycopy(t.getBitArray(),0,this.bits,e*this.rowSize,this.rowSize)},e.prototype.rotate180=function(){for(var e=this.getWidth(),t=this.getHeight(),r=new i.default(e),n=new i.default(e),o=0,a=Math.floor((t+1)/2);o<a;o++)r=this.getRow(o,r),n=this.getRow(t-1-o,n),r.reverse(),n.reverse(),this.setRow(o,n),this.setRow(t-1-o,r)},e.prototype.getEnclosingRectangle=function(){for(var e=this.width,t=this.height,r=this.rowSize,n=this.bits,i=e,o=t,a=-1,s=-1,u=0;u<t;u++)for(var c=0;c<r;c++){var f=n[u*r+c];if(0!==f){if(u<o&&(o=u),u>s&&(s=u),32*c<i){var l=0;while(0===(f<<31-l&4294967295))l++;32*c+l<i&&(i=32*c+l)}if(32*c+31>a){l=31;while(f>>>l===0)l--;32*c+l>a&&(a=32*c+l)}}}return a<i||s<o?null:Int32Array.from([i,o,a-i+1,s-o+1])},e.prototype.getTopLeftOnBit=function(){var e=this.rowSize,t=this.bits,r=0;while(r<t.length&&0===t[r])r++;if(r===t.length)return null;var n=r/e,i=r%e*32,o=t[r],a=0;while(0===(o<<31-a&4294967295))a++;return i+=a,Int32Array.from([i,n])},e.prototype.getBottomRightOnBit=function(){var e=this.rowSize,t=this.bits,r=t.length-1;while(r>=0&&0===t[r])r--;if(r<0)return null;var n=Math.floor(r/e),i=32*Math.floor(r%e),o=t[r],a=31;while(o>>>a===0)a--;return i+=a,Int32Array.from([i,n])},e.prototype.getWidth=function(){return this.width},e.prototype.getHeight=function(){return this.height},e.prototype.getRowSize=function(){return this.rowSize},e.prototype.equals=function(t){if(!(t instanceof e))return!1;var r=t;return this.width===r.width&&this.height===r.height&&this.rowSize===r.rowSize&&a.default.equals(this.bits,r.bits)},e.prototype.hashCode=function(){var e=this.width;return e=31*e+this.width,e=31*e+this.height,e=31*e+this.rowSize,e=31*e+a.default.hashCode(this.bits),e},e.prototype.toString=function(e,t,r){return void 0===e&&(e="X "),void 0===t&&(t=" "),void 0===r&&(r="\n"),this.buildToString(e,t,r)},e.prototype.buildToString=function(e,t,r){for(var n=new s.default,i=0,o=this.height;i<o;i++){for(var a=0,u=this.width;a<u;a++)n.append(this.get(a,i)?e:t);n.append(r)}return n.toString()},e.prototype.clone=function(){return new e(this.width,this.height,this.rowSize,this.bits.slice())},e}(),f=c;t.default=f},"7e9b":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(){function e(e,t){this.bits=e,this.points=t}return e.prototype.getBits=function(){return this.bits},e.prototype.getPoints=function(){return this.points},e}(),i=n;t.default=i},"7eb4":function(e,t,r){var n=r("9fc1")();e.exports=n},"7f1b":function(e,t,r){var n=r("8e48"),i=r("0ae6"),o=r("cce3"),a=r("81eb"),s=r("8d24"),u=r("055b"),c=r("e500"),f=r("5f79").Buffer;e.exports=function(e,t,r){var l;l=e.padding?e.padding:r?1:4;var d,h=n(e),p=h.modulus.byteLength();if(t.length>p||new a(t).cmp(h.modulus)>=0)throw new Error("decryption error");d=r?c(new a(t),h):s(t,h);var g=f.alloc(p-d.length);if(d=f.concat([g,d],p),4===l)return function(e,t){var r=e.modulus.byteLength(),n=u("sha1").update(f.alloc(0)).digest(),a=n.length;if(0!==t[0])throw new Error("decryption error");var s=t.slice(1,a+1),c=t.slice(a+1),l=o(s,i(c,a)),d=o(c,i(l,r-a-1));if(function(e,t){e=f.from(e),t=f.from(t);var r=0,n=e.length;e.length!==t.length&&(r++,n=Math.min(e.length,t.length));var i=-1;while(++i<n)r+=e[i]^t[i];return r}(n,d.slice(0,a)))throw new Error("decryption error");var h=a;while(0===d[h])h++;if(1!==d[h++])throw new Error("decryption error");return d.slice(h)}(h,d);if(1===l)return function(e,t,r){var n=t.slice(0,2),i=2,o=0;while(0!==t[i++])if(i>=t.length){o++;break}var a=t.slice(2,i-1);("0002"!==n.toString("hex")&&!r||"0001"!==n.toString("hex")&&r)&&o++;a.length<8&&o++;if(o)throw new Error("decryption error");return t.slice(i)}(0,d,r);if(3===l)return d;throw new Error("unknown padding")}},"7f8f":function(e,t,r){"use strict";e.exports=o;var n=r("0f55"),i=Object.create(r("8ce8"));function o(e){if(!(this instanceof o))return new o(e);n.call(this,e)}i.inherits=r("2c2e"),i.inherits(o,n),o.prototype._transform=function(e,t,r){r(null,e)}},8172:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("b717")),o=n(r("91fc")),a=n(r("0c24")),s=n(r("a8be")),u=n(r("37ed")),c=n(r("f228")),f=function(e){var t="function"===typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},l=function(){function e(){this.CHECK_DIGIT_ENCODINGS=[24,20,18,17,12,6,3,10,9,5],this.decodeMiddleCounters=Int32Array.from([0,0,0,0]),this.decodeRowStringBuffer=""}return e.prototype.decodeRow=function(t,r,n){var o=this.decodeRowStringBuffer,u=this.decodeMiddle(r,n,o),c=o.toString(),f=e.parseExtensionString(c),l=[new s.default((n[0]+n[1])/2,t),new s.default(u,t)],d=new a.default(c,null,0,l,i.default.UPC_EAN_EXTENSION,(new Date).getTime());return null!=f&&d.putAllMetadata(f),d},e.prototype.decodeMiddle=function(t,r,n){var i,a,s=this.decodeMiddleCounters;s[0]=0,s[1]=0,s[2]=0,s[3]=0;for(var u=t.getSize(),l=r[1],d=0,h=0;h<5&&l<u;h++){var p=o.default.decodeDigit(t,s,l,o.default.L_AND_G_PATTERNS);n+=String.fromCharCode("0".charCodeAt(0)+p%10);try{for(var g=(i=void 0,f(s)),y=g.next();!y.done;y=g.next()){var v=y.value;l+=v}}catch(m){i={error:m}}finally{try{y&&!y.done&&(a=g.return)&&a.call(g)}finally{if(i)throw i.error}}p>=10&&(d|=1<<4-h),4!==h&&(l=t.getNextSet(l),l=t.getNextUnset(l))}if(5!==n.length)throw new c.default;var b=this.determineCheckDigit(d);if(e.extensionChecksum(n.toString())!==b)throw new c.default;return l},e.extensionChecksum=function(e){for(var t=e.length,r=0,n=t-2;n>=0;n-=2)r+=e.charAt(n).charCodeAt(0)-"0".charCodeAt(0);r*=3;for(n=t-1;n>=0;n-=2)r+=e.charAt(n).charCodeAt(0)-"0".charCodeAt(0);return r*=3,r%10},e.prototype.determineCheckDigit=function(e){for(var t=0;t<10;t++)if(e===this.CHECK_DIGIT_ENCODINGS[t])return t;throw new c.default},e.parseExtensionString=function(t){if(5!==t.length)return null;var r=e.parseExtension5String(t);return null==r?null:new Map([[u.default.SUGGESTED_PRICE,r]])},e.parseExtension5String=function(e){var t;switch(e.charAt(0)){case"0":t="£";break;case"5":t="$";break;case"9":switch(e){case"90000":return null;case"99991":return"0.00";case"99990":return"Used"}t="";break;default:t="";break}var r=parseInt(e.substring(1)),n=(r/100).toString(),i=r%100,o=i<10?"0"+i:i.toString();return t+n+"."+o},e}(),d=l;t.default=d},8183:function(e,t,r){"use strict";var n=r("47a9"),i=r("3b2d");Object.defineProperty(t,"__esModule",{value:!0}),t.SHIFT_TABLE=void 0,t.static_SHIFT_TABLE=c;var o=n(r("36d3")),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!==typeof e)return{default:e};var r=s(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var u=o?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(n,a,u):n[a]=e[a]}n.default=e,r&&r.set(e,n);return n}(r("d147"));function s(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(s=function(e){return e?r:t})(e)}var u=function(e){var t="function"===typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function c(e){var t,r;try{for(var n=u(e),i=n.next();!i.done;i=n.next()){var s=i.value;o.default.fill(s,-1)}}catch(c){t={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}return e[a.MODE_UPPER][a.MODE_PUNCT]=0,e[a.MODE_LOWER][a.MODE_PUNCT]=0,e[a.MODE_LOWER][a.MODE_UPPER]=28,e[a.MODE_MIXED][a.MODE_PUNCT]=0,e[a.MODE_DIGIT][a.MODE_PUNCT]=0,e[a.MODE_DIGIT][a.MODE_UPPER]=15,e}var f=c(o.default.createInt32Array(6,6));t.SHIFT_TABLE=f},"81eb":function(e,t,r){(function(e){(function(e,t){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var a;"object"===typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{a="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:r(2).Buffer}catch(E){}function s(e,t){var r=e.charCodeAt(t);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function u(e,t,r){var n=s(e,r);return r-1>=t&&(n|=s(e,r-1)<<4),n}function c(e,t,r,n){for(var i=0,o=Math.min(e.length,r),a=t;a<o;a++){var s=e.charCodeAt(a)-48;i*=n,i+=s>=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(e){return e instanceof o||null!==e&&"object"===typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,r){if("number"===typeof e)return this._initNumber(e,t,r);if("object"===typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36),e=e.toString().replace(/\s+/g,"");var i=0;"-"===e[0]&&(i++,this.negative=1),i<e.length&&(16===t?this._parseHex(e,i,r):(this._parseBase(e,t,i),"le"===r&&this._initArray(this.toArray(),t,r)))},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(n("number"===typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,a,s=0;if("be"===r)for(i=e.length-1,o=0;i>=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,s+=24,s>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i<e.length;i+=3)a=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,s+=24,s>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,o=0,a=0;if("be"===r)for(n=e.length-1;n>=t;n-=2)i=u(e,t,n)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else{var s=e.length-t;for(n=s%2===0?t+1:t;n<e.length;n+=2)i=u(e,t,n)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8}this.strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,s=Math.min(o,o-a)+r,u=0,f=r;f<s;f+=n)u=c(e,f,f+n,t),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==a){var l=1;for(u=c(e,f,e.length,t),f=0;f<a;f++)l*=t;this.imuln(l),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this.strip()},o.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},o.prototype.clone=function(){var e=new o(null);return this.copy(e),e},o.prototype._expand=function(e){while(this.length<e)this.words[this.length++]=0;return this},o.prototype.strip=function(){while(this.length>1&&0===this.words[this.length-1])this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],l=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,u=a/67108864|0;r.words[0]=s;for(var c=1;c<n;c++){for(var f=u>>>26,l=67108863&u,d=Math.min(c,t.length-1),h=Math.max(0,c-e.length+1);h<=d;h++){var p=c-h|0;i=0|e.words[p],o=0|t.words[h],a=i*o+l,f+=a/67108864|0,l=67108863&a}r.words[c]=0|l,u=0|f}return 0!==u?r.words[c]=0|u:r.length--,r.strip()}o.prototype.toString=function(e,t){var r;if(e=e||10,t=0|t||1,16===e||"hex"===e){r="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],u=(16777215&(s<<i|o)).toString(16);o=s>>>24-i&16777215,r=0!==o||a!==this.length-1?f[6-u.length]+u+r:u+r,i+=2,i>=26&&(i-=26,a--)}0!==o&&(r=o.toString(16)+r);while(r.length%t!==0)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var c=l[e],h=d[e];r="";var p=this.clone();p.negative=0;while(!p.isZero()){var g=p.modn(h).toString(e);p=p.idivn(h),r=p.isZero()?g+r:f[c-g.length]+g+r}this.isZero()&&(r="0"+r);while(r.length%t!==0)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return n("undefined"!==typeof a),this.toArrayLike(a,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===t,c=new e(o),f=this.clone();if(u){for(s=0;!f.isZero();s++)a=f.andln(255),f.iushrn(8),c[s]=a;for(;s<o;s++)c[s]=0}else{for(s=0;s<o-i;s++)c[s]=0;for(s=0;!f.isZero();s++)a=f.andln(255),f.iushrn(8),c[o-s-1]=a}return c},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0===(8191&t)&&(r+=13,t>>>=13),0===(127&t)&&(r+=7,t>>>=7),0===(15&t)&&(r+=4,t>>>=4),0===(3&t)&&(r+=2,t>>>=2),0===(1&t)&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},o.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(e){while(this.length<e.length)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},o.prototype.ior=function(e){return n(0===(this.negative|e.negative)),this.iuor(e)},o.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this.strip()},o.prototype.iand=function(e){return n(0===(this.negative|e.negative)),this.iuand(e)},o.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;n<r.length;n++)this.words[n]=t.words[n]^r.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this.strip()},o.prototype.ixor=function(e){return n(0===(this.negative|e.negative)),this.iuxor(e)},o.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"===typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"===typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},o.prototype.iadd=function(e){var t,r,n;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o<n.length;o++)t=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&t,i=t>>>26;for(;0!==i&&o<r.length;o++)t=(0|r.words[o])+i,this.words[o]=67108863&t,i=t>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=e):(r=e,n=this);for(var o=0,a=0;a<n.length;a++)t=(0|r.words[a])-(0|n.words[a])+o,o=t>>26,this.words[a]=67108863&t;for(;0!==o&&a<r.length;a++)t=(0|r.words[a])+o,o=t>>26,this.words[a]=67108863&t;if(0===o&&a<r.length&&r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=Math.max(this.length,a),r!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(e){return this.clone().isub(e)};var p=function(e,t,r){var n,i,o,a=e.words,s=t.words,u=r.words,c=0,f=0|a[0],l=8191&f,d=f>>>13,h=0|a[1],p=8191&h,g=h>>>13,y=0|a[2],v=8191&y,b=y>>>13,m=0|a[3],_=8191&m,w=m>>>13,A=0|a[4],S=8191&A,x=A>>>13,E=0|a[5],C=8191&E,O=E>>>13,I=0|a[6],T=8191&I,P=I>>>13,M=0|a[7],k=8191&M,R=M>>>13,D=0|a[8],N=8191&D,B=D>>>13,L=0|a[9],j=8191&L,F=L>>>13,U=0|s[0],z=8191&U,H=U>>>13,q=0|s[1],V=8191&q,W=q>>>13,G=0|s[2],X=8191&G,K=G>>>13,$=0|s[3],Y=8191&$,Z=$>>>13,J=0|s[4],Q=8191&J,ee=J>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ue=8191&se,ce=se>>>13,fe=0|s[8],le=8191&fe,de=fe>>>13,he=0|s[9],pe=8191&he,ge=he>>>13;r.negative=e.negative^t.negative,r.length=19,n=Math.imul(l,z),i=Math.imul(l,H),i=i+Math.imul(d,z)|0,o=Math.imul(d,H);var ye=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(p,z),i=Math.imul(p,H),i=i+Math.imul(g,z)|0,o=Math.imul(g,H),n=n+Math.imul(l,V)|0,i=i+Math.imul(l,W)|0,i=i+Math.imul(d,V)|0,o=o+Math.imul(d,W)|0;var ve=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(v,z),i=Math.imul(v,H),i=i+Math.imul(b,z)|0,o=Math.imul(b,H),n=n+Math.imul(p,V)|0,i=i+Math.imul(p,W)|0,i=i+Math.imul(g,V)|0,o=o+Math.imul(g,W)|0,n=n+Math.imul(l,X)|0,i=i+Math.imul(l,K)|0,i=i+Math.imul(d,X)|0,o=o+Math.imul(d,K)|0;var be=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(_,z),i=Math.imul(_,H),i=i+Math.imul(w,z)|0,o=Math.imul(w,H),n=n+Math.imul(v,V)|0,i=i+Math.imul(v,W)|0,i=i+Math.imul(b,V)|0,o=o+Math.imul(b,W)|0,n=n+Math.imul(p,X)|0,i=i+Math.imul(p,K)|0,i=i+Math.imul(g,X)|0,o=o+Math.imul(g,K)|0,n=n+Math.imul(l,Y)|0,i=i+Math.imul(l,Z)|0,i=i+Math.imul(d,Y)|0,o=o+Math.imul(d,Z)|0;var me=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(me>>>26)|0,me&=67108863,n=Math.imul(S,z),i=Math.imul(S,H),i=i+Math.imul(x,z)|0,o=Math.imul(x,H),n=n+Math.imul(_,V)|0,i=i+Math.imul(_,W)|0,i=i+Math.imul(w,V)|0,o=o+Math.imul(w,W)|0,n=n+Math.imul(v,X)|0,i=i+Math.imul(v,K)|0,i=i+Math.imul(b,X)|0,o=o+Math.imul(b,K)|0,n=n+Math.imul(p,Y)|0,i=i+Math.imul(p,Z)|0,i=i+Math.imul(g,Y)|0,o=o+Math.imul(g,Z)|0,n=n+Math.imul(l,Q)|0,i=i+Math.imul(l,ee)|0,i=i+Math.imul(d,Q)|0,o=o+Math.imul(d,ee)|0;var _e=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(C,z),i=Math.imul(C,H),i=i+Math.imul(O,z)|0,o=Math.imul(O,H),n=n+Math.imul(S,V)|0,i=i+Math.imul(S,W)|0,i=i+Math.imul(x,V)|0,o=o+Math.imul(x,W)|0,n=n+Math.imul(_,X)|0,i=i+Math.imul(_,K)|0,i=i+Math.imul(w,X)|0,o=o+Math.imul(w,K)|0,n=n+Math.imul(v,Y)|0,i=i+Math.imul(v,Z)|0,i=i+Math.imul(b,Y)|0,o=o+Math.imul(b,Z)|0,n=n+Math.imul(p,Q)|0,i=i+Math.imul(p,ee)|0,i=i+Math.imul(g,Q)|0,o=o+Math.imul(g,ee)|0,n=n+Math.imul(l,re)|0,i=i+Math.imul(l,ne)|0,i=i+Math.imul(d,re)|0,o=o+Math.imul(d,ne)|0;var we=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(T,z),i=Math.imul(T,H),i=i+Math.imul(P,z)|0,o=Math.imul(P,H),n=n+Math.imul(C,V)|0,i=i+Math.imul(C,W)|0,i=i+Math.imul(O,V)|0,o=o+Math.imul(O,W)|0,n=n+Math.imul(S,X)|0,i=i+Math.imul(S,K)|0,i=i+Math.imul(x,X)|0,o=o+Math.imul(x,K)|0,n=n+Math.imul(_,Y)|0,i=i+Math.imul(_,Z)|0,i=i+Math.imul(w,Y)|0,o=o+Math.imul(w,Z)|0,n=n+Math.imul(v,Q)|0,i=i+Math.imul(v,ee)|0,i=i+Math.imul(b,Q)|0,o=o+Math.imul(b,ee)|0,n=n+Math.imul(p,re)|0,i=i+Math.imul(p,ne)|0,i=i+Math.imul(g,re)|0,o=o+Math.imul(g,ne)|0,n=n+Math.imul(l,oe)|0,i=i+Math.imul(l,ae)|0,i=i+Math.imul(d,oe)|0,o=o+Math.imul(d,ae)|0;var Ae=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(k,z),i=Math.imul(k,H),i=i+Math.imul(R,z)|0,o=Math.imul(R,H),n=n+Math.imul(T,V)|0,i=i+Math.imul(T,W)|0,i=i+Math.imul(P,V)|0,o=o+Math.imul(P,W)|0,n=n+Math.imul(C,X)|0,i=i+Math.imul(C,K)|0,i=i+Math.imul(O,X)|0,o=o+Math.imul(O,K)|0,n=n+Math.imul(S,Y)|0,i=i+Math.imul(S,Z)|0,i=i+Math.imul(x,Y)|0,o=o+Math.imul(x,Z)|0,n=n+Math.imul(_,Q)|0,i=i+Math.imul(_,ee)|0,i=i+Math.imul(w,Q)|0,o=o+Math.imul(w,ee)|0,n=n+Math.imul(v,re)|0,i=i+Math.imul(v,ne)|0,i=i+Math.imul(b,re)|0,o=o+Math.imul(b,ne)|0,n=n+Math.imul(p,oe)|0,i=i+Math.imul(p,ae)|0,i=i+Math.imul(g,oe)|0,o=o+Math.imul(g,ae)|0,n=n+Math.imul(l,ue)|0,i=i+Math.imul(l,ce)|0,i=i+Math.imul(d,ue)|0,o=o+Math.imul(d,ce)|0;var Se=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(N,z),i=Math.imul(N,H),i=i+Math.imul(B,z)|0,o=Math.imul(B,H),n=n+Math.imul(k,V)|0,i=i+Math.imul(k,W)|0,i=i+Math.imul(R,V)|0,o=o+Math.imul(R,W)|0,n=n+Math.imul(T,X)|0,i=i+Math.imul(T,K)|0,i=i+Math.imul(P,X)|0,o=o+Math.imul(P,K)|0,n=n+Math.imul(C,Y)|0,i=i+Math.imul(C,Z)|0,i=i+Math.imul(O,Y)|0,o=o+Math.imul(O,Z)|0,n=n+Math.imul(S,Q)|0,i=i+Math.imul(S,ee)|0,i=i+Math.imul(x,Q)|0,o=o+Math.imul(x,ee)|0,n=n+Math.imul(_,re)|0,i=i+Math.imul(_,ne)|0,i=i+Math.imul(w,re)|0,o=o+Math.imul(w,ne)|0,n=n+Math.imul(v,oe)|0,i=i+Math.imul(v,ae)|0,i=i+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0,n=n+Math.imul(p,ue)|0,i=i+Math.imul(p,ce)|0,i=i+Math.imul(g,ue)|0,o=o+Math.imul(g,ce)|0,n=n+Math.imul(l,le)|0,i=i+Math.imul(l,de)|0,i=i+Math.imul(d,le)|0,o=o+Math.imul(d,de)|0;var xe=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(j,z),i=Math.imul(j,H),i=i+Math.imul(F,z)|0,o=Math.imul(F,H),n=n+Math.imul(N,V)|0,i=i+Math.imul(N,W)|0,i=i+Math.imul(B,V)|0,o=o+Math.imul(B,W)|0,n=n+Math.imul(k,X)|0,i=i+Math.imul(k,K)|0,i=i+Math.imul(R,X)|0,o=o+Math.imul(R,K)|0,n=n+Math.imul(T,Y)|0,i=i+Math.imul(T,Z)|0,i=i+Math.imul(P,Y)|0,o=o+Math.imul(P,Z)|0,n=n+Math.imul(C,Q)|0,i=i+Math.imul(C,ee)|0,i=i+Math.imul(O,Q)|0,o=o+Math.imul(O,ee)|0,n=n+Math.imul(S,re)|0,i=i+Math.imul(S,ne)|0,i=i+Math.imul(x,re)|0,o=o+Math.imul(x,ne)|0,n=n+Math.imul(_,oe)|0,i=i+Math.imul(_,ae)|0,i=i+Math.imul(w,oe)|0,o=o+Math.imul(w,ae)|0,n=n+Math.imul(v,ue)|0,i=i+Math.imul(v,ce)|0,i=i+Math.imul(b,ue)|0,o=o+Math.imul(b,ce)|0,n=n+Math.imul(p,le)|0,i=i+Math.imul(p,de)|0,i=i+Math.imul(g,le)|0,o=o+Math.imul(g,de)|0,n=n+Math.imul(l,pe)|0,i=i+Math.imul(l,ge)|0,i=i+Math.imul(d,pe)|0,o=o+Math.imul(d,ge)|0;var Ee=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(j,V),i=Math.imul(j,W),i=i+Math.imul(F,V)|0,o=Math.imul(F,W),n=n+Math.imul(N,X)|0,i=i+Math.imul(N,K)|0,i=i+Math.imul(B,X)|0,o=o+Math.imul(B,K)|0,n=n+Math.imul(k,Y)|0,i=i+Math.imul(k,Z)|0,i=i+Math.imul(R,Y)|0,o=o+Math.imul(R,Z)|0,n=n+Math.imul(T,Q)|0,i=i+Math.imul(T,ee)|0,i=i+Math.imul(P,Q)|0,o=o+Math.imul(P,ee)|0,n=n+Math.imul(C,re)|0,i=i+Math.imul(C,ne)|0,i=i+Math.imul(O,re)|0,o=o+Math.imul(O,ne)|0,n=n+Math.imul(S,oe)|0,i=i+Math.imul(S,ae)|0,i=i+Math.imul(x,oe)|0,o=o+Math.imul(x,ae)|0,n=n+Math.imul(_,ue)|0,i=i+Math.imul(_,ce)|0,i=i+Math.imul(w,ue)|0,o=o+Math.imul(w,ce)|0,n=n+Math.imul(v,le)|0,i=i+Math.imul(v,de)|0,i=i+Math.imul(b,le)|0,o=o+Math.imul(b,de)|0,n=n+Math.imul(p,pe)|0,i=i+Math.imul(p,ge)|0,i=i+Math.imul(g,pe)|0,o=o+Math.imul(g,ge)|0;var Ce=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(j,X),i=Math.imul(j,K),i=i+Math.imul(F,X)|0,o=Math.imul(F,K),n=n+Math.imul(N,Y)|0,i=i+Math.imul(N,Z)|0,i=i+Math.imul(B,Y)|0,o=o+Math.imul(B,Z)|0,n=n+Math.imul(k,Q)|0,i=i+Math.imul(k,ee)|0,i=i+Math.imul(R,Q)|0,o=o+Math.imul(R,ee)|0,n=n+Math.imul(T,re)|0,i=i+Math.imul(T,ne)|0,i=i+Math.imul(P,re)|0,o=o+Math.imul(P,ne)|0,n=n+Math.imul(C,oe)|0,i=i+Math.imul(C,ae)|0,i=i+Math.imul(O,oe)|0,o=o+Math.imul(O,ae)|0,n=n+Math.imul(S,ue)|0,i=i+Math.imul(S,ce)|0,i=i+Math.imul(x,ue)|0,o=o+Math.imul(x,ce)|0,n=n+Math.imul(_,le)|0,i=i+Math.imul(_,de)|0,i=i+Math.imul(w,le)|0,o=o+Math.imul(w,de)|0,n=n+Math.imul(v,pe)|0,i=i+Math.imul(v,ge)|0,i=i+Math.imul(b,pe)|0,o=o+Math.imul(b,ge)|0;var Oe=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(j,Y),i=Math.imul(j,Z),i=i+Math.imul(F,Y)|0,o=Math.imul(F,Z),n=n+Math.imul(N,Q)|0,i=i+Math.imul(N,ee)|0,i=i+Math.imul(B,Q)|0,o=o+Math.imul(B,ee)|0,n=n+Math.imul(k,re)|0,i=i+Math.imul(k,ne)|0,i=i+Math.imul(R,re)|0,o=o+Math.imul(R,ne)|0,n=n+Math.imul(T,oe)|0,i=i+Math.imul(T,ae)|0,i=i+Math.imul(P,oe)|0,o=o+Math.imul(P,ae)|0,n=n+Math.imul(C,ue)|0,i=i+Math.imul(C,ce)|0,i=i+Math.imul(O,ue)|0,o=o+Math.imul(O,ce)|0,n=n+Math.imul(S,le)|0,i=i+Math.imul(S,de)|0,i=i+Math.imul(x,le)|0,o=o+Math.imul(x,de)|0,n=n+Math.imul(_,pe)|0,i=i+Math.imul(_,ge)|0,i=i+Math.imul(w,pe)|0,o=o+Math.imul(w,ge)|0;var Ie=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(j,Q),i=Math.imul(j,ee),i=i+Math.imul(F,Q)|0,o=Math.imul(F,ee),n=n+Math.imul(N,re)|0,i=i+Math.imul(N,ne)|0,i=i+Math.imul(B,re)|0,o=o+Math.imul(B,ne)|0,n=n+Math.imul(k,oe)|0,i=i+Math.imul(k,ae)|0,i=i+Math.imul(R,oe)|0,o=o+Math.imul(R,ae)|0,n=n+Math.imul(T,ue)|0,i=i+Math.imul(T,ce)|0,i=i+Math.imul(P,ue)|0,o=o+Math.imul(P,ce)|0,n=n+Math.imul(C,le)|0,i=i+Math.imul(C,de)|0,i=i+Math.imul(O,le)|0,o=o+Math.imul(O,de)|0,n=n+Math.imul(S,pe)|0,i=i+Math.imul(S,ge)|0,i=i+Math.imul(x,pe)|0,o=o+Math.imul(x,ge)|0;var Te=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(j,re),i=Math.imul(j,ne),i=i+Math.imul(F,re)|0,o=Math.imul(F,ne),n=n+Math.imul(N,oe)|0,i=i+Math.imul(N,ae)|0,i=i+Math.imul(B,oe)|0,o=o+Math.imul(B,ae)|0,n=n+Math.imul(k,ue)|0,i=i+Math.imul(k,ce)|0,i=i+Math.imul(R,ue)|0,o=o+Math.imul(R,ce)|0,n=n+Math.imul(T,le)|0,i=i+Math.imul(T,de)|0,i=i+Math.imul(P,le)|0,o=o+Math.imul(P,de)|0,n=n+Math.imul(C,pe)|0,i=i+Math.imul(C,ge)|0,i=i+Math.imul(O,pe)|0,o=o+Math.imul(O,ge)|0;var Pe=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(j,oe),i=Math.imul(j,ae),i=i+Math.imul(F,oe)|0,o=Math.imul(F,ae),n=n+Math.imul(N,ue)|0,i=i+Math.imul(N,ce)|0,i=i+Math.imul(B,ue)|0,o=o+Math.imul(B,ce)|0,n=n+Math.imul(k,le)|0,i=i+Math.imul(k,de)|0,i=i+Math.imul(R,le)|0,o=o+Math.imul(R,de)|0,n=n+Math.imul(T,pe)|0,i=i+Math.imul(T,ge)|0,i=i+Math.imul(P,pe)|0,o=o+Math.imul(P,ge)|0;var Me=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(j,ue),i=Math.imul(j,ce),i=i+Math.imul(F,ue)|0,o=Math.imul(F,ce),n=n+Math.imul(N,le)|0,i=i+Math.imul(N,de)|0,i=i+Math.imul(B,le)|0,o=o+Math.imul(B,de)|0,n=n+Math.imul(k,pe)|0,i=i+Math.imul(k,ge)|0,i=i+Math.imul(R,pe)|0,o=o+Math.imul(R,ge)|0;var ke=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(j,le),i=Math.imul(j,de),i=i+Math.imul(F,le)|0,o=Math.imul(F,de),n=n+Math.imul(N,pe)|0,i=i+Math.imul(N,ge)|0,i=i+Math.imul(B,pe)|0,o=o+Math.imul(B,ge)|0;var Re=(c+n|0)+((8191&i)<<13)|0;c=(o+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,n=Math.imul(j,pe),i=Math.imul(j,ge),i=i+Math.imul(F,pe)|0,o=Math.imul(F,ge);var De=(c+n|0)+((8191&i)<<13)|0;return c=(o+(i>>>13)|0)+(De>>>26)|0,De&=67108863,u[0]=ye,u[1]=ve,u[2]=be,u[3]=me,u[4]=_e,u[5]=we,u[6]=Ae,u[7]=Se,u[8]=xe,u[9]=Ee,u[10]=Ce,u[11]=Oe,u[12]=Ie,u[13]=Te,u[14]=Pe,u[15]=Me,u[16]=ke,u[17]=Re,u[18]=De,0!==c&&(u[19]=c,r.length++),r};function g(e,t,r){var n=new y;return n.mulp(e,t,r)}function y(e,t){this.x=e,this.y=t}Math.imul||(p=h),o.prototype.mulTo=function(e,t){var r,n=this.length+e.length;return r=10===this.length&&10===e.length?p(this,e,t):n<63?h(this,e,t):n<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var a=i;i=0;for(var s=67108863&n,u=Math.min(o,t.length-1),c=Math.max(0,o-e.length+1);c<=u;c++){var f=o-c,l=0|e.words[f],d=0|t.words[c],h=l*d,p=67108863&h;a=a+(h/67108864|0)|0,p=p+s|0,s=67108863&p,a=a+(p>>>26)|0,i+=a>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,e,t):g(this,e,t),r},y.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,r,e);return t},y.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var n=0,i=0;i<t;i++)n|=(1&e)<<t-i-1,e>>=1;return n},y.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a<o;a++)n[a]=t[e[a]],i[a]=r[e[a]]},y.prototype.transform=function(e,t,r,n,i,o){this.permute(o,e,t,r,n,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),f=0;f<i;f+=s)for(var l=u,d=c,h=0;h<a;h++){var p=r[f+h],g=n[f+h],y=r[f+h+a],v=n[f+h+a],b=l*y-d*v;v=l*v+d*y,y=b,r[f+h]=p+y,n[f+h]=g+v,r[f+h+a]=p-y,n[f+h+a]=g-v,h!==s&&(b=u*l-c*d,d=u*d+c*l,l=b)}},y.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},y.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=e[n];e[n]=e[r-n-1],e[r-n-1]=i,i=t[n],t[n]=-t[r-n-1],t[r-n-1]=-i}},y.prototype.normalize13b=function(e,t){for(var r=0,n=0;n<t/2;n++){var i=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+r;e[n]=67108863&i,r=i<67108864?0:i/67108864|0}return e},y.prototype.convert13b=function(e,t,r,i){for(var o=0,a=0;a<t;a++)o+=0|e[a],r[2*a]=8191&o,o>>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a<i;++a)r[a]=0;n(0===o),n(0===(-8192&o))},y.prototype.stub=function(e){for(var t=new Array(e),r=0;r<e;r++)t[r]=0;return t},y.prototype.mulp=function(e,t,r){var n=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(n),o=this.stub(n),a=new Array(n),s=new Array(n),u=new Array(n),c=new Array(n),f=new Array(n),l=new Array(n),d=r.words;d.length=n,this.convert13b(e.words,e.length,a,n),this.convert13b(t.words,t.length,c,n),this.transform(a,o,s,u,n,i),this.transform(c,o,f,l,n,i);for(var h=0;h<n;h++){var p=s[h]*f[h]-u[h]*l[h];u[h]=s[h]*l[h]+u[h]*f[h],s[h]=p}return this.conjugate(s,u,n),this.transform(s,u,d,o,n,i),this.conjugate(d,o,n),this.normalize13b(d,n),r.negative=e.negative^t.negative,r.length=e.length+t.length,r.strip()},o.prototype.mul=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},o.prototype.mulf=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),g(this,e,t)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){n("number"===typeof e),n(e<67108864);for(var t=0,r=0;r<this.length;r++){var i=(0|this.words[r])*e,o=(67108863&i)+(67108863&t);t>>=26,t+=i/67108864|0,t+=o>>>26,this.words[r]=67108863&o}return 0!==t&&(this.words[r]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r<t.length;r++){var n=r/26|0,i=r%26;t[r]=(e.words[n]&1<<i)>>>i}return t}(e);if(0===t.length)return new o(1);for(var r=this,n=0;n<t.length;n++,r=r.sqr())if(0!==t[n])break;if(++n<t.length)for(var i=r.sqr();n<t.length;n++,i=i.sqr())0!==t[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(e){n("number"===typeof e&&e>=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t<this.length;t++){var s=this.words[t]&o,u=(0|this.words[t])-s<<r;this.words[t]=u|a,a=s>>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},o.prototype.iushrn=function(e,t,r){var i;n("number"===typeof e&&e>=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<<o,u=r;if(i-=a,i=Math.max(0,i),u){for(var c=0;c<a;c++)u.words[c]=this.words[c];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var f=0;for(c=this.length-1;c>=0&&(0!==f||c>=i);c--){var l=0|this.words[c];this.words[c]=f<<26-o|l>>>o,f=l&s}return u&&0!==f&&(u.words[u.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"===typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<<t;if(this.length<=r)return!1;var o=this.words[r];return!!(o&i)},o.prototype.imaskn=function(e){n("number"===typeof e&&e>=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(e){return this.clone().imaskn(e)},o.prototype.iaddn=function(e){return n("number"===typeof e),n(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},o.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(n("number"===typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},o.prototype.addn=function(e){return this.clone().iaddn(e)},o.prototype.subn=function(e){return this.clone().isubn(e)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(e,t,r){var i,o,a=e.length+r;this._expand(a);var s=0;for(i=0;i<e.length;i++){o=(0|this.words[i+r])+s;var u=(0|e.words[i])*t;o-=67108863&u,s=(o>>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)o=(0|this.words[i+r])+s,s=o>>26,this.words[i+r]=67108863&o;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i<this.length;i++)o=-(0|this.words[i])+s,s=o>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),i=e,a=0|i.words[i.length-1],s=this._countBits(a);r=26-s,0!==r&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var u,c=n.length-i.length;if("mod"!==t){u=new o(null),u.length=c+1,u.words=new Array(u.length);for(var f=0;f<u.length;f++)u.words[f]=0}var l=n.clone()._ishlnsubmul(i,1,c);0===l.negative&&(n=l,u&&(u.words[c]=1));for(var d=c-1;d>=0;d--){var h=67108864*(0|n.words[i.length+d])+(0|n.words[i.length+d-1]);h=Math.min(h/a|0,67108863),n._ishlnsubmul(i,h,d);while(0!==n.negative)h--,n.negative=0,n._ishlnsubmul(i,1,d),n.isZero()||(n.negative^=1);u&&(u.words[d]=h)}return u&&u.strip(),n.strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:u||null,mod:n}},o.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){n(e<=67108863);for(var t=(1<<26)%e,r=0,i=this.length-1;i>=0;i--)r=(t*r+(0|this.words[i]))%e;return r},o.prototype.idivn=function(e){n(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*t;this.words[r]=i/e|0,t=i%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();var i=new o(1),a=new o(0),s=new o(0),u=new o(1),c=0;while(t.isEven()&&r.isEven())t.iushrn(1),r.iushrn(1),++c;var f=r.clone(),l=t.clone();while(!t.isZero()){for(var d=0,h=1;0===(t.words[0]&h)&&d<26;++d,h<<=1);if(d>0){t.iushrn(d);while(d-- >0)(i.isOdd()||a.isOdd())&&(i.iadd(f),a.isub(l)),i.iushrn(1),a.iushrn(1)}for(var p=0,g=1;0===(r.words[0]&g)&&p<26;++p,g<<=1);if(p>0){r.iushrn(p);while(p-- >0)(s.isOdd()||u.isOdd())&&(s.iadd(f),u.isub(l)),s.iushrn(1),u.iushrn(1)}t.cmp(r)>=0?(t.isub(r),i.isub(s),a.isub(u)):(r.isub(t),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:r.iushln(c)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();var i,a=new o(1),s=new o(0),u=r.clone();while(t.cmpn(1)>0&&r.cmpn(1)>0){for(var c=0,f=1;0===(t.words[0]&f)&&c<26;++c,f<<=1);if(c>0){t.iushrn(c);while(c-- >0)a.isOdd()&&a.iadd(u),a.iushrn(1)}for(var l=0,d=1;0===(r.words[0]&d)&&l<26;++l,d<<=1);if(l>0){r.iushrn(l);while(l-- >0)s.isOdd()&&s.iadd(u),s.iushrn(1)}t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return i=0===t.cmpn(1)?a:s,i.cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);do{while(t.isEven())t.iushrn(1);while(r.isEven())r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}while(1);return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"===typeof e);var t=e%26,r=(e-t)/26,i=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,a=r;0!==o&&a<this.length;a++){var s=0|this.words[a];s+=o,o=s>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},o.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},o.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){n<i?t=-1:n>i&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new S(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var v={k256:null,p224:null,p192:null,p25519:null};function b(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function m(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function A(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(e){if("string"===typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function x(e){S.call(this,e),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}b.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},b.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),r=this.imulK(r),r=r.iadd(this.tmp),t=r.bitLength()}while(t>this.n);var n=t<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},b.prototype.split=function(e,t){e.iushrn(this.n,0,t)},b.prototype.imulK=function(e){return e.imul(this.k)},i(m,b),m.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n<r;n++)t.words[n]=e.words[n];if(t.length=r,e.length<=9)return e.words[0]=0,void(e.length=1);var i=e.words[9];for(t.words[t.length++]=4194303&i,n=10;n<e.length;n++){var o=0|e.words[n];e.words[n-10]=(4194303&o)<<4|i>>>22,i=o}i>>>=22,e.words[n-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},m.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var n=0|e.words[r];t+=977*n,e.words[r]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(_,b),i(w,b),i(A,b),A.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;r++){var n=19*(0|e.words[r])+t,i=67108863&n;n>>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(v[e])return v[e];var t;if("k256"===e)t=new m;else if("p224"===e)t=new _;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new A}return v[e]=t,t},S.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},S.prototype._verify2=function(e,t){n(0===(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},S.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},S.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},S.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},S.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},S.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},S.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},S.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},S.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},S.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},S.prototype.isqr=function(e){return this.imul(e,e.clone())},S.prototype.sqr=function(e){return this.mul(e,e)},S.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2===1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}var i=this.m.subn(1),a=0;while(!i.isZero()&&0===i.andln(1))a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),f=this.m.bitLength();f=new o(2*f*f).toRed(this);while(0!==this.pow(f,c).cmp(u))f.redIAdd(u);var l=this.pow(f,i),d=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=a;while(0!==h.cmp(s)){for(var g=h,y=0;0!==g.cmp(s);y++)g=g.redSqr();n(y<p);var v=this.pow(l,new o(1).iushln(p-y-1));d=d.redMul(v),l=v.redSqr(),h=h.redMul(l),p=y}return d},S.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},S.prototype.pow=function(e,t){if(t.isZero())return new o(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=new Array(16);r[0]=new o(1).toRed(this),r[1]=e;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],e);var i=r[0],a=0,s=0,u=t.bitLength()%26;for(0===u&&(u=26),n=t.length-1;n>=0;n--){for(var c=t.words[n],f=u-1;f>=0;f--){var l=c>>f&1;i!==r[0]&&(i=this.sqr(i)),0!==l||0!==a?(a<<=1,a|=l,s++,(4===s||0===n&&0===f)&&(i=this.mul(i,r[a]),s=0,a=0)):s=0}u=26}return i},S.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},S.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new x(e)},i(x,S),x.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},x.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},x.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},x.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},x.prototype.invm=function(e){var t=this.imod(e._invmp(this.m).mul(this.r2));return t._forceRed(this)}})(e,this)}).call(this,r("dc84")(e))},"828b":function(e,t,r){"use strict";function n(e,t,r,n,i,o,a,s,u,c){var f,l="function"===typeof e?e.options:e;if(u){l.components||(l.components={});var d=Object.prototype.hasOwnProperty;for(var h in u)d.call(u,h)&&!d.call(l.components,h)&&(l.components[h]=u[h])}if(c&&("function"===typeof c.beforeCreate&&(c.beforeCreate=[c.beforeCreate]),(c.beforeCreate||(c.beforeCreate=[])).unshift((function(){this[c.__module]=this})),(l.mixins||(l.mixins=[])).push(c)),t&&(l.render=t,l.staticRenderFns=r,l._compiled=!0),n&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),a?(f=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},l._ssrRegister=f):i&&(f=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),f)if(l.functional){l._injectStyles=f;var p=l.render;l.render=function(e,t){return f.call(t),p(e,t)}}else{var g=l.beforeCreate;l.beforeCreate=g?[].concat(g,f):[f]}return{exports:e,options:l}}r.d(t,"a",(function(){return n}))},"830f":function(e,t,r){(function(t){var n=r("959e"),i=r("81eb");e.exports=function(e){return new a(e)};var o={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function a(e){this.curveType=o[e],this.curveType||(this.curveType={name:e}),this.curve=new n.ec(this.curveType.name),this.keys=void 0}function s(e,r,n){Array.isArray(e)||(e=e.toArray());var i=new t(e);if(n&&i.length<n){var o=new t(n-i.length);o.fill(0),i=t.concat([o,i])}return r?i.toString(r):i}o.p224=o.secp224r1,o.p256=o.secp256r1=o.prime256v1,o.p192=o.secp192r1=o.prime192v1,o.p384=o.secp384r1,o.p521=o.secp521r1,a.prototype.generateKeys=function(e,t){return this.keys=this.curve.genKeyPair(),this.getPublicKey(e,t)},a.prototype.computeSecret=function(e,r,n){r=r||"utf8",t.isBuffer(e)||(e=new t(e,r));var i=this.curve.keyFromPublic(e).getPublic(),o=i.mul(this.keys.getPrivate()).getX();return s(o,n,this.curveType.byteLength)},a.prototype.getPublicKey=function(e,t){var r=this.keys.getPublic("compressed"===t,!0);return"hybrid"===t&&(r[r.length-1]%2?r[0]=7:r[0]=6),s(r,e)},a.prototype.getPrivateKey=function(e){return s(this.keys.getPrivate(),e)},a.prototype.setPublicKey=function(e,r){return r=r||"utf8",t.isBuffer(e)||(e=new t(e,r)),this.keys._importPublic(e),this},a.prototype.setPrivateKey=function(e,r){r=r||"utf8",t.isBuffer(e)||(e=new t(e,r));var n=new i(e);return n=n.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(n),this}}).call(this,r("12e3").Buffer)},"836d":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("7e9b")),o=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),a=function(e){function t(t,r,n,i,o){var a=e.call(this,t,r)||this;return a.compact=n,a.nbDatablocks=i,a.nbLayers=o,a}return o(t,e),t.prototype.getNbLayers=function(){return this.nbLayers},t.prototype.getNbDatablocks=function(){return this.nbDatablocks},t.prototype.isCompact=function(){return this.compact},t}(i.default),s=a;t.default=s},"841b":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ASCIIEncoder",{enumerable:!0,get:function(){return i.ASCIIEncoder}}),Object.defineProperty(t,"Base256Encoder",{enumerable:!0,get:function(){return o.Base256Encoder}}),Object.defineProperty(t,"C40Encoder",{enumerable:!0,get:function(){return a.C40Encoder}}),Object.defineProperty(t,"DefaultPlacement",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"EdifactEncoder",{enumerable:!0,get:function(){return u.EdifactEncoder}}),Object.defineProperty(t,"EncoderContext",{enumerable:!0,get:function(){return c.EncoderContext}}),Object.defineProperty(t,"ErrorCorrection",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"HighLevelEncoder",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"MinimalEncoder",{enumerable:!0,get:function(){return d.MinimalEncoder}}),Object.defineProperty(t,"SymbolInfo",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(t,"TextEncoder",{enumerable:!0,get:function(){return p.TextEncoder}}),Object.defineProperty(t,"X12Encoder",{enumerable:!0,get:function(){return g.X12Encoder}});var i=r("2570"),o=r("bcd6"),a=r("f2b5"),s=n(r("061d")),u=r("e120"),c=r("a370"),f=n(r("88aa")),l=n(r("3fac")),d=r("3e26"),h=n(r("44d8")),p=r("976e"),g=r("a455")},"842e":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ModeValues=void 0;var i,o=n(r("f7fd"));t.ModeValues=i,function(e){e[e["TERMINATOR"]=0]="TERMINATOR",e[e["NUMERIC"]=1]="NUMERIC",e[e["ALPHANUMERIC"]=2]="ALPHANUMERIC",e[e["STRUCTURED_APPEND"]=3]="STRUCTURED_APPEND",e[e["BYTE"]=4]="BYTE",e[e["ECI"]=5]="ECI",e[e["KANJI"]=6]="KANJI",e[e["FNC1_FIRST_POSITION"]=7]="FNC1_FIRST_POSITION",e[e["FNC1_SECOND_POSITION"]=8]="FNC1_SECOND_POSITION",e[e["HANZI"]=9]="HANZI"}(i||(t.ModeValues=i={}));var a=function(){function e(t,r,n,i){this.value=t,this.stringValue=r,this.characterCountBitsForVersions=n,this.bits=i,e.FOR_BITS.set(i,this),e.FOR_VALUE.set(t,this)}return e.forBits=function(t){var r=e.FOR_BITS.get(t);if(void 0===r)throw new o.default;return r},e.prototype.getCharacterCountBits=function(e){var t,r=e.getVersionNumber();return t=r<=9?0:r<=26?1:2,this.characterCountBitsForVersions[t]},e.prototype.getValue=function(){return this.value},e.prototype.getBits=function(){return this.bits},e.prototype.equals=function(t){if(!(t instanceof e))return!1;var r=t;return this.value===r.value},e.prototype.toString=function(){return this.stringValue},e.FOR_BITS=new Map,e.FOR_VALUE=new Map,e.TERMINATOR=new e(i.TERMINATOR,"TERMINATOR",Int32Array.from([0,0,0]),0),e.NUMERIC=new e(i.NUMERIC,"NUMERIC",Int32Array.from([10,12,14]),1),e.ALPHANUMERIC=new e(i.ALPHANUMERIC,"ALPHANUMERIC",Int32Array.from([9,11,13]),2),e.STRUCTURED_APPEND=new e(i.STRUCTURED_APPEND,"STRUCTURED_APPEND",Int32Array.from([0,0,0]),3),e.BYTE=new e(i.BYTE,"BYTE",Int32Array.from([8,16,16]),4),e.ECI=new e(i.ECI,"ECI",Int32Array.from([0,0,0]),7),e.KANJI=new e(i.KANJI,"KANJI",Int32Array.from([8,10,12]),8),e.FNC1_FIRST_POSITION=new e(i.FNC1_FIRST_POSITION,"FNC1_FIRST_POSITION",Int32Array.from([0,0,0]),5),e.FNC1_SECOND_POSITION=new e(i.FNC1_SECOND_POSITION,"FNC1_SECOND_POSITION",Int32Array.from([0,0,0]),9),e.HANZI=new e(i.HANZI,"HANZI",Int32Array.from([8,10,12]),13),e}(),s=a;t.default=s},"843b":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("7322")),o=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.kind="ReaderException",t}(i.default),s=a;t.default=s},8456:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("3dae")),o=n(r("8d70")),a=n(r("0c24")),s=n(r("76a0")),u=n(r("f228")),c=n(r("d4f8")),f=n(r("b717")),l=n(r("a8be")),d=n(r("853a")),h=n(r("b911")),p=n(r("c769")),g=n(r("c003")),y=n(r("1ff8")),v=n(r("4d7d")),b=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),m=function(e){var t="function"===typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},_=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.possibleLeftPairs=[],t.possibleRightPairs=[],t}return b(t,e),t.prototype.decodeRow=function(e,r,n){var i,o,a,s,c=this.decodePair(r,!1,e,n);t.addOrTally(this.possibleLeftPairs,c),r.reverse();var f=this.decodePair(r,!0,e,n);t.addOrTally(this.possibleRightPairs,f),r.reverse();try{for(var l=m(this.possibleLeftPairs),d=l.next();!d.done;d=l.next()){var h=d.value;if(h.getCount()>1)try{for(var p=(a=void 0,m(this.possibleRightPairs)),g=p.next();!g.done;g=p.next()){var y=g.value;if(y.getCount()>1&&t.checkChecksum(h,y))return t.constructResult(h,y)}}catch(v){a={error:v}}finally{try{g&&!g.done&&(s=p.return)&&s.call(p)}finally{if(a)throw a.error}}}}catch(b){i={error:b}}finally{try{d&&!d.done&&(o=l.return)&&o.call(l)}finally{if(i)throw i.error}}throw new u.default},t.addOrTally=function(e,t){var r,n;if(null!=t){var i=!1;try{for(var o=m(e),a=o.next();!a.done;a=o.next()){var s=a.value;if(s.getValue()===t.getValue()){s.incrementCount(),i=!0;break}}}catch(u){r={error:u}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}i||e.push(t)}},t.prototype.reset=function(){this.possibleLeftPairs.length=0,this.possibleRightPairs.length=0},t.constructResult=function(e,t){for(var r=4537077*e.getValue()+t.getValue(),n=new String(r).toString(),i=new c.default,o=13-n.length;o>0;o--)i.append("0");i.append(n);var s=0;for(o=0;o<13;o++){var u=i.charAt(o).charCodeAt(0)-"0".charCodeAt(0);s+=0===(1&o)?3*u:u}s=10-s%10,10===s&&(s=0),i.append(s.toString());var l=e.getFinderPattern().getResultPoints(),d=t.getFinderPattern().getResultPoints();return new a.default(i.toString(),null,0,[l[0],l[1],d[0],d[1]],f.default.RSS_14,(new Date).getTime())},t.checkChecksum=function(e,t){var r=(e.getChecksumPortion()+16*t.getChecksumPortion())%79,n=9*e.getFinderPattern().getValue()+t.getFinderPattern().getValue();return n>72&&n--,n>8&&n--,r===n},t.prototype.decodePair=function(e,t,r,n){try{var i=this.findFinderPattern(e,t),a=this.parseFoundFinderPattern(e,r,t,i),u=null==n?null:n.get(s.default.NEED_RESULT_POINT_CALLBACK);if(null!=u){var c=(i[0]+i[1])/2;t&&(c=e.getSize()-1-c),u.foundPossibleResultPoint(new l.default(c,r))}var f=this.decodeDataCharacter(e,a,!0),d=this.decodeDataCharacter(e,a,!1);return new o.default(1597*f.getValue()+d.getValue(),f.getChecksumPortion()+4*d.getChecksumPortion(),a)}catch(h){return null}},t.prototype.decodeDataCharacter=function(e,r,n){for(var i=this.getDataCharacterCounters(),o=0;o<i.length;o++)i[o]=0;if(n)v.default.recordPatternInReverse(e,r.getStartEnd()[0],i);else{v.default.recordPattern(e,r.getStartEnd()[1]+1,i);for(var a=0,s=i.length-1;a<s;a++,s--){var c=i[a];i[a]=i[s],i[s]=c}}var f=n?16:15,l=p.default.sum(new Int32Array(i))/f,d=this.getOddCounts(),y=this.getEvenCounts(),b=this.getOddRoundingErrors(),m=this.getEvenRoundingErrors();for(a=0;a<i.length;a++){var _=i[a]/l,w=Math.floor(_+.5);w<1?w=1:w>8&&(w=8);var A=Math.floor(a/2);0===(1&a)?(d[A]=w,b[A]=_-w):(y[A]=w,m[A]=_-w)}this.adjustOddEvenCounts(n,f);var S=0,x=0;for(a=d.length-1;a>=0;a--)x*=9,x+=d[a],S+=d[a];var E=0,C=0;for(a=y.length-1;a>=0;a--)E*=9,E+=y[a],C+=y[a];var O=x+3*E;if(n){if(0!==(1&S)||S>12||S<4)throw new u.default;var I=(12-S)/2,T=t.OUTSIDE_ODD_WIDEST[I],P=9-T,M=g.default.getRSSvalue(d,T,!1),k=g.default.getRSSvalue(y,P,!0),R=t.OUTSIDE_EVEN_TOTAL_SUBSET[I],D=t.OUTSIDE_GSUM[I];return new h.default(M*R+k+D,O)}if(0!==(1&C)||C>10||C<4)throw new u.default;I=(10-C)/2,T=t.INSIDE_ODD_WIDEST[I],P=9-T,M=g.default.getRSSvalue(d,T,!0),k=g.default.getRSSvalue(y,P,!1);var N=t.INSIDE_ODD_TOTAL_SUBSET[I];D=t.INSIDE_GSUM[I];return new h.default(k*N+M+D,O)},t.prototype.findFinderPattern=function(e,t){var r=this.getDecodeFinderCounters();r[0]=0,r[1]=0,r[2]=0,r[3]=0;var n=e.getSize(),o=!1,a=0;while(a<n){if(o=!e.get(a),t===o)break;a++}for(var s=0,c=a,f=a;f<n;f++)if(e.get(f)!==o)r[s]++;else{if(3===s){if(i.default.isFinderPattern(r))return[c,f];c+=r[0]+r[1],r[0]=r[2],r[1]=r[3],r[2]=0,r[3]=0,s--}else s++;r[s]=1,o=!o}throw new u.default},t.prototype.parseFoundFinderPattern=function(e,r,n,i){var o=e.get(i[0]),a=i[0]-1;while(a>=0&&o!==e.get(a))a--;a++;var s=i[0]-a,u=this.getDecodeFinderCounters(),c=new Int32Array(u.length);y.default.arraycopy(u,0,c,1,u.length-1),c[0]=s;var f=this.parseFinderValue(c,t.FINDER_PATTERNS),l=a,h=i[1];return n&&(l=e.getSize()-1-l,h=e.getSize()-1-h),new d.default(f,[a,i[1]],l,h,r)},t.prototype.adjustOddEvenCounts=function(e,t){var r=p.default.sum(new Int32Array(this.getOddCounts())),n=p.default.sum(new Int32Array(this.getEvenCounts())),o=!1,a=!1,s=!1,c=!1;e?(r>12?a=!0:r<4&&(o=!0),n>12?c=!0:n<4&&(s=!0)):(r>11?a=!0:r<5&&(o=!0),n>10?c=!0:n<4&&(s=!0));var f=r+n-t,l=(1&r)===(e?1:0),d=1===(1&n);if(1===f)if(l){if(d)throw new u.default;a=!0}else{if(!d)throw new u.default;c=!0}else if(-1===f)if(l){if(d)throw new u.default;o=!0}else{if(!d)throw new u.default;s=!0}else{if(0!==f)throw new u.default;if(l){if(!d)throw new u.default;r<n?(o=!0,c=!0):(a=!0,s=!0)}else if(d)throw new u.default}if(o){if(a)throw new u.default;i.default.increment(this.getOddCounts(),this.getOddRoundingErrors())}if(a&&i.default.decrement(this.getOddCounts(),this.getOddRoundingErrors()),s){if(c)throw new u.default;i.default.increment(this.getEvenCounts(),this.getOddRoundingErrors())}c&&i.default.decrement(this.getEvenCounts(),this.getEvenRoundingErrors())},t.OUTSIDE_EVEN_TOTAL_SUBSET=[1,10,34,70,126],t.INSIDE_ODD_TOTAL_SUBSET=[4,20,48,81],t.OUTSIDE_GSUM=[0,161,961,2015,2715],t.INSIDE_GSUM=[0,336,1036,1516],t.OUTSIDE_ODD_WIDEST=[8,6,4,3,1],t.INSIDE_ODD_WIDEST=[2,4,6,8],t.FINDER_PATTERNS=[Int32Array.from([3,8,2,1]),Int32Array.from([3,5,5,1]),Int32Array.from([3,3,7,1]),Int32Array.from([3,1,9,1]),Int32Array.from([2,7,4,1]),Int32Array.from([2,5,6,1]),Int32Array.from([2,3,8,1]),Int32Array.from([1,5,7,1]),Int32Array.from([1,3,9,1])],t}(i.default),w=_;t.default=w},"84e1":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("0497")),o=n(r("1ff8")),a=n(r("f7fd")),s=function(){function e(e){this.field=e,this.cachedGenerators=[],this.cachedGenerators.push(new i.default(e,Int32Array.from([1])))}return e.prototype.buildGenerator=function(e){var t=this.cachedGenerators;if(e>=t.length)for(var r=t[t.length-1],n=this.field,o=t.length;o<=e;o++){var a=r.multiply(new i.default(n,Int32Array.from([1,n.exp(o-1+n.getGeneratorBase())])));t.push(a),r=a}return t[e]},e.prototype.encode=function(e,t){if(0===t)throw new a.default("No error correction bytes");var r=e.length-t;if(r<=0)throw new a.default("No data bytes provided");var n=this.buildGenerator(t),s=new Int32Array(r);o.default.arraycopy(e,0,s,0,r);var u=new i.default(this.field,s);u=u.multiplyByMonomial(t,1);for(var c=u.divide(n)[1],f=c.getCoefficients(),l=t-f.length,d=0;d<l;d++)e[r+d]=0;o.default.arraycopy(f,0,e,r+l,f.length)},e}(),u=s;t.default=u},"850f":function(e,t,r){"use strict";var n,i=t,o=r("dcf6"),a=r("b51b"),s=r("4e45"),u=s.assert;function c(e){"short"===e.type?this.curve=new a.short(e):"edwards"===e.type?this.curve=new a.edwards(e):this.curve=new a.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,u(this.g.validate(),"Invalid curve"),u(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function f(e,t){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var r=new c(t);return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:r}),r}})}i.PresetCurve=c,f("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),f("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),f("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),f("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:o.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),f("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:o.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),f("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),f("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=r("f5b2")}catch(l){n=void 0}f("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},8532:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("f228")),o=function(e){var t="function"===typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=function(){function e(){}return e.parseFieldsInGeneralPurpose=function(t){var r,n,a,s,u,c,f,l;if(!t)return null;if(t.length<2)throw new i.default;var d=t.substring(0,2);try{for(var h=o(e.TWO_DIGIT_DATA_LENGTH),p=h.next();!p.done;p=h.next()){var g=p.value;if(g[0]===d)return g[1]===e.VARIABLE_LENGTH?e.processVariableAI(2,g[2],t):e.processFixedAI(2,g[1],t)}}catch(x){r={error:x}}finally{try{p&&!p.done&&(n=h.return)&&n.call(h)}finally{if(r)throw r.error}}if(t.length<3)throw new i.default;var y=t.substring(0,3);try{for(var v=o(e.THREE_DIGIT_DATA_LENGTH),b=v.next();!b.done;b=v.next()){g=b.value;if(g[0]===y)return g[1]===e.VARIABLE_LENGTH?e.processVariableAI(3,g[2],t):e.processFixedAI(3,g[1],t)}}catch(E){a={error:E}}finally{try{b&&!b.done&&(s=v.return)&&s.call(v)}finally{if(a)throw a.error}}try{for(var m=o(e.THREE_DIGIT_PLUS_DIGIT_DATA_LENGTH),_=m.next();!_.done;_=m.next()){g=_.value;if(g[0]===y)return g[1]===e.VARIABLE_LENGTH?e.processVariableAI(4,g[2],t):e.processFixedAI(4,g[1],t)}}catch(C){u={error:C}}finally{try{_&&!_.done&&(c=m.return)&&c.call(m)}finally{if(u)throw u.error}}if(t.length<4)throw new i.default;var w=t.substring(0,4);try{for(var A=o(e.FOUR_DIGIT_DATA_LENGTH),S=A.next();!S.done;S=A.next()){g=S.value;if(g[0]===w)return g[1]===e.VARIABLE_LENGTH?e.processVariableAI(4,g[2],t):e.processFixedAI(4,g[1],t)}}catch(O){f={error:O}}finally{try{S&&!S.done&&(l=A.return)&&l.call(A)}finally{if(f)throw f.error}}throw new i.default},e.processFixedAI=function(t,r,n){if(n.length<t)throw new i.default;var o=n.substring(0,t);if(n.length<t+r)throw new i.default;var a=n.substring(t,t+r),s=n.substring(t+r),u="("+o+")"+a,c=e.parseFieldsInGeneralPurpose(s);return null==c?u:u+c},e.processVariableAI=function(t,r,n){var i,o=n.substring(0,t);i=n.length<t+r?n.length:t+r;var a=n.substring(t,i),s=n.substring(i),u="("+o+")"+a,c=e.parseFieldsInGeneralPurpose(s);return null==c?u:u+c},e.VARIABLE_LENGTH=[],e.TWO_DIGIT_DATA_LENGTH=[["00",18],["01",14],["02",14],["10",e.VARIABLE_LENGTH,20],["11",6],["12",6],["13",6],["15",6],["17",6],["20",2],["21",e.VARIABLE_LENGTH,20],["22",e.VARIABLE_LENGTH,29],["30",e.VARIABLE_LENGTH,8],["37",e.VARIABLE_LENGTH,8],["90",e.VARIABLE_LENGTH,30],["91",e.VARIABLE_LENGTH,30],["92",e.VARIABLE_LENGTH,30],["93",e.VARIABLE_LENGTH,30],["94",e.VARIABLE_LENGTH,30],["95",e.VARIABLE_LENGTH,30],["96",e.VARIABLE_LENGTH,30],["97",e.VARIABLE_LENGTH,3],["98",e.VARIABLE_LENGTH,30],["99",e.VARIABLE_LENGTH,30]],e.THREE_DIGIT_DATA_LENGTH=[["240",e.VARIABLE_LENGTH,30],["241",e.VARIABLE_LENGTH,30],["242",e.VARIABLE_LENGTH,6],["250",e.VARIABLE_LENGTH,30],["251",e.VARIABLE_LENGTH,30],["253",e.VARIABLE_LENGTH,17],["254",e.VARIABLE_LENGTH,20],["400",e.VARIABLE_LENGTH,30],["401",e.VARIABLE_LENGTH,30],["402",17],["403",e.VARIABLE_LENGTH,30],["410",13],["411",13],["412",13],["413",13],["414",13],["420",e.VARIABLE_LENGTH,20],["421",e.VARIABLE_LENGTH,15],["422",3],["423",e.VARIABLE_LENGTH,15],["424",3],["425",3],["426",3]],e.THREE_DIGIT_PLUS_DIGIT_DATA_LENGTH=[["310",6],["311",6],["312",6],["313",6],["314",6],["315",6],["316",6],["320",6],["321",6],["322",6],["323",6],["324",6],["325",6],["326",6],["327",6],["328",6],["329",6],["330",6],["331",6],["332",6],["333",6],["334",6],["335",6],["336",6],["340",6],["341",6],["342",6],["343",6],["344",6],["345",6],["346",6],["347",6],["348",6],["349",6],["350",6],["351",6],["352",6],["353",6],["354",6],["355",6],["356",6],["357",6],["360",6],["361",6],["362",6],["363",6],["364",6],["365",6],["366",6],["367",6],["368",6],["369",6],["390",e.VARIABLE_LENGTH,15],["391",e.VARIABLE_LENGTH,18],["392",e.VARIABLE_LENGTH,15],["393",e.VARIABLE_LENGTH,18],["703",e.VARIABLE_LENGTH,30]],e.FOUR_DIGIT_DATA_LENGTH=[["7001",13],["7002",e.VARIABLE_LENGTH,30],["7003",10],["8001",14],["8002",e.VARIABLE_LENGTH,20],["8003",e.VARIABLE_LENGTH,30],["8004",e.VARIABLE_LENGTH,30],["8005",6],["8006",18],["8007",e.VARIABLE_LENGTH,30],["8008",e.VARIABLE_LENGTH,12],["8018",18],["8020",e.VARIABLE_LENGTH,25],["8100",6],["8101",10],["8102",2],["8110",e.VARIABLE_LENGTH,70],["8200",e.VARIABLE_LENGTH,70]],e}(),s=a;t.default=s},"853a":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("a8be")),o=function(){function e(e,t,r,n,o){this.value=e,this.startEnd=t,this.value=e,this.startEnd=t,this.resultPoints=new Array,this.resultPoints.push(new i.default(r,o)),this.resultPoints.push(new i.default(n,o))}return e.prototype.getValue=function(){return this.value},e.prototype.getStartEnd=function(){return this.startEnd},e.prototype.getResultPoints=function(){return this.resultPoints},e.prototype.equals=function(t){if(!(t instanceof e))return!1;var r=t;return this.value===r.value},e.prototype.hashCode=function(){return this.value},e}(),a=o;t.default=a},8618:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(){function e(e){this.newPosition=e}return e.prototype.getNewPosition=function(){return this.newPosition},e}(),i=n;t.default=i},"861b":function(e,t,r){"use strict";(function(e,n,i){var o=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.uniCloud=t.default=t.UniCloudError=void 0;var a=o(r("7eb4")),s=o(r("3352")),u=o(r("34cf")),c=o(r("3b2d")),f=o(r("af34")),l=o(r("ee10")),d=o(r("7ca3")),h=o(r("8ffa")),p=o(r("4ffb")),g=o(r("b4d2")),y=o(r("7ce1")),v=o(r("67ad")),b=o(r("0bdb")),m=o(r("30c3"));function _(e,t){var r="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"===typeof e)return w(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return w(e,t)}(e))||t&&e&&"number"===typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function A(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function S(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?A(Object(r),!0).forEach((function(t){(0,d.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):A(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function x(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,g.default)(e);if(t){var i=(0,g.default)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,p.default)(this,r)}}function E(e,t,r){return e(r={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&r.path)}},r.exports),r.exports}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof e||"undefined"!=typeof self&&self;var C=E((function(e,t){var r;e.exports=(r=r||function(e,t){var r=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),n={},i=n.lib={},o=i.Base={extend:function(e){var t=r(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},a=i.WordArray=o.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=void 0!=t?t:4*e.length},toString:function(e){return(e||u).stringify(this)},concat:function(e){var t=this.words,r=e.words,n=this.sigBytes,i=e.sigBytes;if(this.clamp(),n%4)for(var o=0;o<i;o++){var a=r[o>>>2]>>>24-o%4*8&255;t[n+o>>>2]|=a<<24-(n+o)%4*8}else for(o=0;o<i;o+=4)t[n+o>>>2]=r[o>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var r,n=[],i=function(t){var r=987654321,n=4294967295;return function(){var i=((r=36969*(65535&r)+(r>>16)&n)<<16)+(t=18e3*(65535&t)+(t>>16)&n)&n;return i/=4294967296,(i+=.5)*(e.random()>.5?1:-1)}},o=0;o<t;o+=4){var s=i(4294967296*(r||e.random()));r=987654071*s(),n.push(4294967296*s()|0)}return new a.init(n,t)}}),s=n.enc={},u=s.Hex={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i++){var o=t[i>>>2]>>>24-i%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n+=2)r[n>>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new a.init(r,t/2)}},c=s.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i++){var o=t[i>>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(o))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n++)r[n>>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new a.init(r,t)}},f=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(c.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return c.parse(unescape(encodeURIComponent(e)))}},l=i.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=f.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r=this._data,n=r.words,i=r.sigBytes,o=this.blockSize,s=i/(4*o),u=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*o,c=e.min(4*u,i);if(u){for(var f=0;f<u;f+=o)this._doProcessBlock(n,f);var l=n.splice(0,u);r.sigBytes-=c}return new a.init(l,c)},clone:function(){var e=o.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});i.Hasher=l.extend({cfg:o.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){l.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,r){return new e.init(r).finalize(t)}},_createHmacHelper:function(e){return function(t,r){return new d.HMAC.init(e,r).finalize(t)}}});var d=n.algo={};return n}(Math),r)})),O=C,I=(E((function(e,t){var r;e.exports=(r=O,function(e){var t=r,n=t.lib,i=n.WordArray,o=n.Hasher,a=t.algo,s=[];!function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0}();var u=a.MD5=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,a=e[t+0],u=e[t+1],h=e[t+2],p=e[t+3],g=e[t+4],y=e[t+5],v=e[t+6],b=e[t+7],m=e[t+8],_=e[t+9],w=e[t+10],A=e[t+11],S=e[t+12],x=e[t+13],E=e[t+14],C=e[t+15],O=o[0],I=o[1],T=o[2],P=o[3];O=c(O,I,T,P,a,7,s[0]),P=c(P,O,I,T,u,12,s[1]),T=c(T,P,O,I,h,17,s[2]),I=c(I,T,P,O,p,22,s[3]),O=c(O,I,T,P,g,7,s[4]),P=c(P,O,I,T,y,12,s[5]),T=c(T,P,O,I,v,17,s[6]),I=c(I,T,P,O,b,22,s[7]),O=c(O,I,T,P,m,7,s[8]),P=c(P,O,I,T,_,12,s[9]),T=c(T,P,O,I,w,17,s[10]),I=c(I,T,P,O,A,22,s[11]),O=c(O,I,T,P,S,7,s[12]),P=c(P,O,I,T,x,12,s[13]),T=c(T,P,O,I,E,17,s[14]),O=f(O,I=c(I,T,P,O,C,22,s[15]),T,P,u,5,s[16]),P=f(P,O,I,T,v,9,s[17]),T=f(T,P,O,I,A,14,s[18]),I=f(I,T,P,O,a,20,s[19]),O=f(O,I,T,P,y,5,s[20]),P=f(P,O,I,T,w,9,s[21]),T=f(T,P,O,I,C,14,s[22]),I=f(I,T,P,O,g,20,s[23]),O=f(O,I,T,P,_,5,s[24]),P=f(P,O,I,T,E,9,s[25]),T=f(T,P,O,I,p,14,s[26]),I=f(I,T,P,O,m,20,s[27]),O=f(O,I,T,P,x,5,s[28]),P=f(P,O,I,T,h,9,s[29]),T=f(T,P,O,I,b,14,s[30]),O=l(O,I=f(I,T,P,O,S,20,s[31]),T,P,y,4,s[32]),P=l(P,O,I,T,m,11,s[33]),T=l(T,P,O,I,A,16,s[34]),I=l(I,T,P,O,E,23,s[35]),O=l(O,I,T,P,u,4,s[36]),P=l(P,O,I,T,g,11,s[37]),T=l(T,P,O,I,b,16,s[38]),I=l(I,T,P,O,w,23,s[39]),O=l(O,I,T,P,x,4,s[40]),P=l(P,O,I,T,a,11,s[41]),T=l(T,P,O,I,p,16,s[42]),I=l(I,T,P,O,v,23,s[43]),O=l(O,I,T,P,_,4,s[44]),P=l(P,O,I,T,S,11,s[45]),T=l(T,P,O,I,C,16,s[46]),O=d(O,I=l(I,T,P,O,h,23,s[47]),T,P,a,6,s[48]),P=d(P,O,I,T,b,10,s[49]),T=d(T,P,O,I,E,15,s[50]),I=d(I,T,P,O,y,21,s[51]),O=d(O,I,T,P,S,6,s[52]),P=d(P,O,I,T,p,10,s[53]),T=d(T,P,O,I,w,15,s[54]),I=d(I,T,P,O,u,21,s[55]),O=d(O,I,T,P,m,6,s[56]),P=d(P,O,I,T,C,10,s[57]),T=d(T,P,O,I,v,15,s[58]),I=d(I,T,P,O,x,21,s[59]),O=d(O,I,T,P,g,6,s[60]),P=d(P,O,I,T,A,10,s[61]),T=d(T,P,O,I,h,15,s[62]),I=d(I,T,P,O,_,21,s[63]),o[0]=o[0]+O|0,o[1]=o[1]+I|0,o[2]=o[2]+T|0,o[3]=o[3]+P|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;r[i>>>5]|=128<<24-i%32;var o=e.floor(n/4294967296),a=n;r[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),r[14+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(r.length+1),this._process();for(var s=this._hash,u=s.words,c=0;c<4;c++){var f=u[c];u[c]=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8)}return s},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,r,n,i,o,a){var s=e+(t&r|~t&n)+i+a;return(s<<o|s>>>32-o)+t}function f(e,t,r,n,i,o,a){var s=e+(t&n|r&~n)+i+a;return(s<<o|s>>>32-o)+t}function l(e,t,r,n,i,o,a){var s=e+(t^r^n)+i+a;return(s<<o|s>>>32-o)+t}function d(e,t,r,n,i,o,a){var s=e+(r^(t|~n))+i+a;return(s<<o|s>>>32-o)+t}t.MD5=o._createHelper(u),t.HmacMD5=o._createHmacHelper(u)}(Math),r.MD5)})),E((function(e,t){var r;e.exports=(r=O,void function(){var e=r,t=e.lib.Base,n=e.enc.Utf8;e.algo.HMAC=t.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=n.parse(t));var r=e.blockSize,i=4*r;t.sigBytes>i&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),a=this._iKey=t.clone(),s=o.words,u=a.words,c=0;c<r;c++)s[c]^=1549556828,u[c]^=909522486;o.sigBytes=a.sigBytes=i,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,r=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(r))}})}())})),E((function(e,t){e.exports=O.HmacMD5}))),T=E((function(e,t){e.exports=O.enc.Utf8})),P=E((function(e,t){var r;e.exports=(r=O,function(){var e=r,t=e.lib.WordArray;function n(e,r,n){for(var i=[],o=0,a=0;a<r;a++)if(a%4){var s=n[e.charCodeAt(a-1)]<<a%4*2,u=n[e.charCodeAt(a)]>>>6-a%4*2;i[o>>>2]|=(s|u)<<24-o%4*8,o++}return t.create(i,o)}e.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,n=this._map;e.clamp();for(var i=[],o=0;o<r;o+=3)for(var a=(t[o>>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s<r;s++)i.push(n.charAt(a>>>6*(3-s)&63));var u=n.charAt(64);if(u)for(;i.length%4;)i.push(u);return i.join("")},parse:function(e){var t=e.length,r=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var o=0;o<r.length;o++)i[r.charCodeAt(o)]=o}var a=r.charAt(64);if(a){var s=e.indexOf(a);-1!==s&&(t=s)}return n(e,t,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),r.enc.Base64)})),M="uni_id_token",k="uni_id_token_expired",R={DEFAULT:"FUNCTION",FUNCTION:"FUNCTION",OBJECT:"OBJECT",CLIENT_DB:"CLIENT_DB"},D="pending",N="fulfilled",B="rejected";function L(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function j(e){return"object"===L(e)}function F(e){return"function"==typeof e}function U(e){return function(){try{return e.apply(e,arguments)}catch(e){console.error(e)}}}var z="REJECTED",H="NOT_PENDING",q=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.createPromise,n=t.retryRule,i=void 0===n?z:n;(0,v.default)(this,e),this.createPromise=r,this.status=null,this.promise=null,this.retryRule=i}return(0,b.default)(e,[{key:"needRetry",get:function(){if(!this.status)return!0;switch(this.retryRule){case z:return this.status===B;case H:return this.status!==D}}},{key:"exec",value:function(){var e=this;return this.needRetry?(this.status=D,this.promise=this.createPromise().then((function(t){return e.status=N,Promise.resolve(t)}),(function(t){return e.status=B,Promise.reject(t)})),this.promise):this.promise}}]),e}(),V=function(){function e(){(0,v.default)(this,e),this._callback={}}return(0,b.default)(e,[{key:"addListener",value:function(e,t){this._callback[e]||(this._callback[e]=[]),this._callback[e].push(t)}},{key:"on",value:function(e,t){return this.addListener(e,t)}},{key:"removeListener",value:function(e,t){if(!t)throw new Error('The "listener" argument must be of type function. Received undefined');var r=this._callback[e];if(r){var n=function(e,t){for(var r=e.length-1;r>=0;r--)if(e[r]===t)return r;return-1}(r,t);r.splice(n,1)}}},{key:"off",value:function(e,t){return this.removeListener(e,t)}},{key:"removeAllListener",value:function(e){delete this._callback[e]}},{key:"emit",value:function(e){for(var t=this._callback[e],r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];if(t)for(var o=0;o<t.length;o++)t[o].apply(t,n)}}]),e}();function W(e){return e&&"string"==typeof e?JSON.parse(e):e}var G="mp-weixin",X=W([]),K=G,$=(W(void 0),W([])||[]);try{(r("d5bc").default||r("d5bc")).appid}catch(Cn){}var Y,Z={};function J(e){var t,r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=Z,r=e,Object.prototype.hasOwnProperty.call(t,r)||(Z[e]=n),Z[e]}"app"===K&&(Z=n._globalUniCloudObj?n._globalUniCloudObj:n._globalUniCloudObj={});var Q=["invoke","success","fail","complete"],ee=J("_globalUniCloudInterceptor");function te(e,t){ee[e]||(ee[e]={}),j(t)&&Object.keys(t).forEach((function(r){Q.indexOf(r)>-1&&function(e,t,r){var n=ee[e][t];n||(n=ee[e][t]=[]),-1===n.indexOf(r)&&F(r)&&n.push(r)}(e,r,t[r])}))}function re(e,t){ee[e]||(ee[e]={}),j(t)?Object.keys(t).forEach((function(r){Q.indexOf(r)>-1&&function(e,t,r){var n=ee[e][t];if(n){var i=n.indexOf(r);i>-1&&n.splice(i,1)}}(e,r,t[r])})):delete ee[e]}function ne(e,t){return e&&0!==e.length?e.reduce((function(e,r){return e.then((function(){return r(t)}))}),Promise.resolve()):Promise.resolve()}function ie(e,t){return ee[e]&&ee[e][t]||[]}function oe(e){te("callObject",e)}var ae=J("_globalUniCloudListener"),se={RESPONSE:"response",NEED_LOGIN:"needLogin",REFRESH_TOKEN:"refreshToken"},ue={CLIENT_DB:"clientdb",CLOUD_FUNCTION:"cloudfunction",CLOUD_OBJECT:"cloudobject"};function ce(e){return ae[e]||(ae[e]=[]),ae[e]}function fe(e,t){var r=ce(e);r.includes(t)||r.push(t)}function le(e,t){var r=ce(e),n=r.indexOf(t);-1!==n&&r.splice(n,1)}function de(e,t){for(var r=ce(e),n=0;n<r.length;n++)(0,r[n])(t)}var he,pe=!1;function ge(){return he||(he=new Promise((function(e){pe&&e(),function t(){if("function"==typeof getCurrentPages){var r=getCurrentPages();r&&r[0]&&(pe=!0,e())}pe||setTimeout((function(){t()}),30)}()})),he)}function ye(e){var t={};for(var r in e){var n=e[r];F(n)&&(t[r]=U(n))}return t}var ve=function(e){(0,h.default)(r,e);var t=x(r);function r(e){var n;return(0,v.default)(this,r),n=t.call(this,e.message),n.errMsg=e.message||e.errMsg||"unknown system error",n.code=n.errCode=e.code||e.errCode||"SYSTEM_ERROR",n.errSubject=n.subject=e.subject||e.errSubject,n.cause=e.cause,n.requestId=e.requestId,n}return(0,b.default)(r,[{key:"toJson",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(!(e>=10))return e++,{errCode:this.errCode,errMsg:this.errMsg,errSubject:this.errSubject,cause:this.cause&&this.cause.toJson?this.cause.toJson(e):this.cause}}}]),r}((0,y.default)(Error));t.UniCloudError=ve;var be,me,_e={request:function(e){return n.request(e)},uploadFile:function(e){return n.uploadFile(e)},setStorageSync:function(e,t){return n.setStorageSync(e,t)},getStorageSync:function(e){return n.getStorageSync(e)},removeStorageSync:function(e){return n.removeStorageSync(e)},clearStorageSync:function(){return n.clearStorageSync()},connectSocket:function(e){return n.connectSocket(e)}};function we(){return{token:_e.getStorageSync(M)||_e.getStorageSync("uniIdToken"),tokenExpired:_e.getStorageSync(k)}}function Ae(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.token,r=e.tokenExpired;t&&_e.setStorageSync(M,t),r&&_e.setStorageSync(k,r)}function Se(){return be||(be=n.getSystemInfoSync()),be}var xe={};function Ee(){var e=n.getLocale&&n.getLocale()||"en";if(me)return S(S(S({},xe),me),{},{locale:e,LOCALE:e});var t=Se(),r=t.deviceId,i=t.osName,o=t.uniPlatform,a=t.appId,s=["appId","appLanguage","appName","appVersion","appVersionCode","appWgtVersion","browserName","browserVersion","deviceBrand","deviceId","deviceModel","deviceType","osName","osVersion","romName","romVersion","ua","hostName","hostVersion","uniPlatform","uniRuntimeVersion","uniRuntimeVersionCode","uniCompilerVersion","uniCompilerVersionCode"];for(var u in t)Object.hasOwnProperty.call(t,u)&&-1===s.indexOf(u)&&delete t[u];return me=S(S({PLATFORM:o,OS:i,APPID:a,DEVICEID:r},function(){var e,t;try{if(n.getLaunchOptionsSync){if(n.getLaunchOptionsSync.toString().indexOf("not yet implemented")>-1)return;var r=n.getLaunchOptionsSync(),i=r.scene,o=r.channel;e=o,t=i}}catch(e){}return{channel:e,scene:t}}()),t),S(S(S({},xe),me),{},{locale:e,LOCALE:e})}var Ce,Oe={sign:function(e,t){var r="";return Object.keys(e).sort().forEach((function(t){e[t]&&(r=r+"&"+t+"="+e[t])})),r=r.slice(1),I(r,t).toString()},wrappedRequest:function(e,t){return new Promise((function(r,n){t(Object.assign(e,{complete:function(e){e||(e={});var t=e.data&&e.data.header&&e.data.header["x-serverless-request-id"]||e.header&&e.header["request-id"];if(!e.statusCode||e.statusCode>=400){var i=e.data&&e.data.error&&e.data.error.code||"SYS_ERR",o=e.data&&e.data.error&&e.data.error.message||e.errMsg||"request:fail";return n(new ve({code:i,message:o,requestId:t}))}var a=e.data;if(a.error)return n(new ve({code:a.error.code,message:a.error.message,requestId:t}));a.result=a.data,a.requestId=t,delete a.data,r(a)}}))}))},toBase64:function(e){return P.stringify(T.parse(e))}},Ie=function(){function e(t){var r=this;(0,v.default)(this,e),["spaceId","clientSecret"].forEach((function(e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new Error("".concat(e," required"))})),this.config=Object.assign({},{endpoint:0===t.spaceId.indexOf("mp-")?"https://api.next.bspapp.com":"https://api.bspapp.com"},t),this.config.provider="aliyun",this.config.requestUrl=this.config.endpoint+"/client",this.config.envType=this.config.envType||"public",this.config.accessTokenKey="access_token_"+this.config.spaceId,this.adapter=_e,this._getAccessTokenPromiseHub=new q({createPromise:function(){return r.requestAuth(r.setupRequest({method:"serverless.auth.user.anonymousAuthorize",params:"{}"},"auth")).then((function(e){if(!e.result||!e.result.accessToken)throw new ve({code:"AUTH_FAILED",message:"获取accessToken失败"});r.setAccessToken(e.result.accessToken)}))},retryRule:H})}return(0,b.default)(e,[{key:"hasAccessToken",get:function(){return!!this.accessToken}},{key:"setAccessToken",value:function(e){this.accessToken=e}},{key:"requestWrapped",value:function(e){return Oe.wrappedRequest(e,this.adapter.request)}},{key:"requestAuth",value:function(e){return this.requestWrapped(e)}},{key:"request",value:function(e,t){var r=this;return Promise.resolve().then((function(){return r.hasAccessToken?t?r.requestWrapped(e):r.requestWrapped(e).catch((function(t){return new Promise((function(e,r){!t||"GATEWAY_INVALID_TOKEN"!==t.code&&"InvalidParameter.InvalidToken"!==t.code?r(t):e()})).then((function(){return r.getAccessToken()})).then((function(){var t=r.rebuildRequest(e);return r.request(t,!0)}))})):r.getAccessToken().then((function(){var t=r.rebuildRequest(e);return r.request(t,!0)}))}))}},{key:"rebuildRequest",value:function(e){var t=Object.assign({},e);return t.data.token=this.accessToken,t.header["x-basement-token"]=this.accessToken,t.header["x-serverless-sign"]=Oe.sign(t.data,this.config.clientSecret),t}},{key:"setupRequest",value:function(e,t){var r=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),n={"Content-Type":"application/json"};return"auth"!==t&&(r.token=this.accessToken,n["x-basement-token"]=this.accessToken),n["x-serverless-sign"]=Oe.sign(r,this.config.clientSecret),{url:this.config.requestUrl,method:"POST",data:r,dataType:"json",header:n}}},{key:"getAccessToken",value:function(){return this._getAccessTokenPromiseHub.exec()}},{key:"authorize",value:function(){var e=(0,l.default)(a.default.mark((function e(){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getAccessToken();case 2:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"callFunction",value:function(e){var t={method:"serverless.function.runtime.invoke",params:JSON.stringify({functionTarget:e.name,functionArgs:e.data||{}})};return this.request(S(S({},this.setupRequest(t)),{},{timeout:e.timeout}))}},{key:"getOSSUploadOptionsFromPath",value:function(e){var t={method:"serverless.file.resource.generateProximalSign",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}},{key:"uploadFileToOSS",value:function(e){var t=this,r=e.url,n=e.formData,i=e.name,o=e.filePath,a=e.fileType,s=e.onUploadProgress;return new Promise((function(e,u){var c=t.adapter.uploadFile({url:r,formData:n,name:i,filePath:o,fileType:a,header:{"X-OSS-server-side-encrpytion":"AES256"},success:function(t){t&&t.statusCode<400?e(t):u(new ve({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail:function(e){u(new ve({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof s&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate((function(e){s({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}},{key:"reportOSSUpload",value:function(e){var t={method:"serverless.file.resource.report",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}},{key:"uploadFile",value:function(){var e=(0,l.default)(a.default.mark((function e(t){var r,n,i,o,s,u,c,f,l,d,h,p,g,y,v,b,m,_,w,A,S,x;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=t.filePath,n=t.cloudPath,i=t.fileType,o=void 0===i?"image":i,s=t.cloudPathAsRealPath,u=void 0!==s&&s,c=t.onUploadProgress,f=t.config,"string"===L(n)){e.next=3;break}throw new ve({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});case 3:if(n=n.trim()){e.next=5;break}throw new ve({code:"INVALID_PARAM",message:"cloudPath不可为空"});case 5:if(!/:\/\//.test(n)){e.next=7;break}throw new ve({code:"INVALID_PARAM",message:"cloudPath不合法"});case 7:if(l=f&&f.envType||this.config.envType,!(u&&("/"!==n[0]&&(n="/"+n),n.indexOf("\\")>-1))){e.next=10;break}throw new ve({code:"INVALID_PARAM",message:"使用cloudPath作为路径时,cloudPath不可包含“\\”"});case 10:return e.next=12,this.getOSSUploadOptionsFromPath({env:l,filename:u?n.split("/").pop():n,fileId:u?n:void 0});case 12:return d=e.sent.result,h="https://"+d.cdnDomain+"/"+d.ossPath,p=d.securityToken,g=d.accessKeyId,y=d.signature,v=d.host,b=d.ossPath,m=d.id,_=d.policy,w=d.ossCallbackUrl,A={"Cache-Control":"max-age=2592000","Content-Disposition":"attachment",OSSAccessKeyId:g,Signature:y,host:v,id:m,key:b,policy:_,success_action_status:200},p&&(A["x-oss-security-token"]=p),w&&(S=JSON.stringify({callbackUrl:w,callbackBody:JSON.stringify({fileId:m,spaceId:this.config.spaceId}),callbackBodyType:"application/json"}),A.callback=Oe.toBase64(S)),x={url:"https://"+d.host,formData:A,fileName:"file",name:"file",filePath:r,fileType:o},e.next=27,this.uploadFileToOSS(Object.assign({},x,{onUploadProgress:c}));case 27:if(!w){e.next=29;break}return e.abrupt("return",{success:!0,filePath:r,fileID:h});case 29:return e.next=31,this.reportOSSUpload({id:m});case 31:if(!e.sent.success){e.next=33;break}return e.abrupt("return",{success:!0,filePath:r,fileID:h});case 33:throw new ve({code:"UPLOAD_FAILED",message:"文件上传失败"});case 34:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getTempFileURL",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.fileList;return new Promise((function(e,r){Array.isArray(t)&&0!==t.length||r(new ve({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"})),e({fileList:t.map((function(e){return{fileID:e,tempFileURL:e}}))})}))}},{key:"getFileInfo",value:function(){var e=(0,l.default)(a.default.mark((function e(){var t,r,n,i=arguments;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=i.length>0&&void 0!==i[0]?i[0]:{},r=t.fileList,Array.isArray(r)&&0!==r.length){e.next=3;break}throw new ve({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});case 3:return n={method:"serverless.file.resource.info",params:JSON.stringify({id:r.map((function(e){return e.split("?")[0]})).join(",")})},e.next=6,this.request(this.setupRequest(n));case 6:return e.t0=e.sent.result,e.abrupt("return",{fileList:e.t0});case 8:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}]),e}(),Te={init:function(e){var t=new Ie(e),r={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return r},t.customAuth=t.auth,t}},Pe="undefined"!=typeof location&&"http:"===location.protocol?"http:":"https:";!function(e){e.local="local",e.none="none",e.session="session"}(Ce||(Ce={}));var Me,ke=function(){},Re=E((function(e,t){var r;e.exports=(r=O,function(e){var t=r,n=t.lib,i=n.WordArray,o=n.Hasher,a=t.algo,s=[],u=[];!function(){function t(t){for(var r=e.sqrt(t),n=2;n<=r;n++)if(!(t%n))return!1;return!0}function r(e){return 4294967296*(e-(0|e))|0}for(var n=2,i=0;i<64;)t(n)&&(i<8&&(s[i]=r(e.pow(n,.5))),u[i]=r(e.pow(n,1/3)),i++),n++}();var c=[],f=a.SHA256=o.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(e,t){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],a=r[3],s=r[4],f=r[5],l=r[6],d=r[7],h=0;h<64;h++){if(h<16)c[h]=0|e[t+h];else{var p=c[h-15],g=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,y=c[h-2],v=(y<<15|y>>>17)^(y<<13|y>>>19)^y>>>10;c[h]=g+c[h-7]+v+c[h-16]}var b=n&i^n&o^i&o,m=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),_=d+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&f^~s&l)+u[h]+c[h];d=l,l=f,f=s,s=a+_|0,a=o,o=i,i=n,n=_+(m+b)|0}r[0]=r[0]+n|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+a|0,r[4]=r[4]+s|0,r[5]=r[5]+f|0,r[6]=r[6]+l|0,r[7]=r[7]+d|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;return r[i>>>5]|=128<<24-i%32,r[14+(i+64>>>9<<4)]=e.floor(n/4294967296),r[15+(i+64>>>9<<4)]=n,t.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=o._createHelper(f),t.HmacSHA256=o._createHmacHelper(f)}(Math),r.SHA256)})),De=Re,Ne=E((function(e,t){e.exports=O.HmacSHA256})),Be=function(){var e;if(!Promise){e=function(){},e.promise={};var t=function(){throw new ve({message:'Your Node runtime does support ES6 Promises. Set "global.Promise" to your preferred implementation of promises.'})};return Object.defineProperty(e.promise,"then",{get:t}),Object.defineProperty(e.promise,"catch",{get:t}),e}var r=new Promise((function(t,r){e=function(e,n){return e?r(e):t(n)}}));return e.promise=r,e};function Le(e){return void 0===e}function je(e){return"[object Null]"===Object.prototype.toString.call(e)}function Fe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.replace(/([\s\S]+)\s+(请前往云开发AI小助手查看问题:.*)/,"$1")}function Ue(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32,t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r="",n=0;n<e;n++)r+=t.charAt(Math.floor(62*Math.random()));return r}!function(e){e.WEB="web",e.WX_MP="wx_mp"}(Me||(Me={}));var ze={adapter:null,runtime:void 0},He=["anonymousUuidKey"],qe=function(e){(0,h.default)(r,e);var t=x(r);function r(){var e;return(0,v.default)(this,r),e=t.call(this),ze.adapter.root.tcbObject||(ze.adapter.root.tcbObject={}),e}return(0,b.default)(r,[{key:"setItem",value:function(e,t){ze.adapter.root.tcbObject[e]=t}},{key:"getItem",value:function(e){return ze.adapter.root.tcbObject[e]}},{key:"removeItem",value:function(e){delete ze.adapter.root.tcbObject[e]}},{key:"clear",value:function(){delete ze.adapter.root.tcbObject}}]),r}(ke);function Ve(e,t){switch(e){case"local":return t.localStorage||new qe;case"none":return new qe;default:return t.sessionStorage||new qe}}var We=function(){function e(t){if((0,v.default)(this,e),!this._storage){this._persistence=ze.adapter.primaryStorage||t.persistence,this._storage=Ve(this._persistence,ze.adapter);var r="access_token_".concat(t.env),n="access_token_expire_".concat(t.env),i="refresh_token_".concat(t.env),o="anonymous_uuid_".concat(t.env),a="login_type_".concat(t.env),s="token_type_".concat(t.env),u="user_info_".concat(t.env);this.keys={accessTokenKey:r,accessTokenExpireKey:n,refreshTokenKey:i,anonymousUuidKey:o,loginTypeKey:a,userInfoKey:u,deviceIdKey:"device_id",tokenTypeKey:s}}}return(0,b.default)(e,[{key:"updatePersistence",value:function(e){if(e!==this._persistence){var t="local"===this._persistence;this._persistence=e;var r=Ve(e,ze.adapter);for(var n in this.keys){var i=this.keys[n];if(!t||!He.includes(n)){var o=this._storage.getItem(i);Le(o)||je(o)||(r.setItem(i,o),this._storage.removeItem(i))}}this._storage=r}}},{key:"setStore",value:function(e,t,r){if(this._storage){var n={version:r||"localCachev1",content:t},i=JSON.stringify(n);try{this._storage.setItem(e,i)}catch(e){throw e}}}},{key:"getStore",value:function(e,t){try{if(!this._storage)return}catch(e){return""}t=t||"localCachev1";var r=this._storage.getItem(e);return r&&r.indexOf(t)>=0?JSON.parse(r).content:""}},{key:"removeStore",value:function(e){this._storage.removeItem(e)}}]),e}(),Ge={},Xe={};function Ke(e){return Ge[e]}var $e=(0,b.default)((function e(t,r){(0,v.default)(this,e),this.data=r||null,this.name=t})),Ye=function(e){(0,h.default)(r,e);var t=x(r);function r(e,n){var i;return(0,v.default)(this,r),i=t.call(this,"error",{error:e,data:n}),i.error=e,i}return(0,b.default)(r)}($e),Ze=new(function(){function e(){(0,v.default)(this,e),this._listeners={}}return(0,b.default)(e,[{key:"on",value:function(e,t){return function(e,t,r){r[e]=r[e]||[],r[e].push(t)}(e,t,this._listeners),this}},{key:"off",value:function(e,t){return function(e,t,r){if(r&&r[e]){var n=r[e].indexOf(t);-1!==n&&r[e].splice(n,1)}}(e,t,this._listeners),this}},{key:"fire",value:function(e,t){if(e instanceof Ye)return console.error(e.error),this;var r="string"==typeof e?new $e(e,t||{}):e,n=r.name;if(this._listens(n)){r.target=this;var i,o=this._listeners[n]?(0,f.default)(this._listeners[n]):[],a=_(o);try{for(a.s();!(i=a.n()).done;){var s=i.value;s.call(this,r)}}catch(u){a.e(u)}finally{a.f()}}return this}},{key:"_listens",value:function(e){return this._listeners[e]&&this._listeners[e].length>0}}]),e}());function Je(e,t){Ze.on(e,t)}function Qe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ze.fire(e,t)}function et(e,t){Ze.off(e,t)}var tt,rt="loginStateChanged",nt="loginStateExpire",it="loginTypeChanged",ot="anonymousConverted",at="refreshAccessToken";!function(e){e.ANONYMOUS="ANONYMOUS",e.WECHAT="WECHAT",e.WECHAT_PUBLIC="WECHAT-PUBLIC",e.WECHAT_OPEN="WECHAT-OPEN",e.CUSTOM="CUSTOM",e.EMAIL="EMAIL",e.USERNAME="USERNAME",e.NULL="NULL"}(tt||(tt={}));var st=function(){function e(){(0,v.default)(this,e),this._fnPromiseMap=new Map}return(0,b.default)(e,[{key:"run",value:function(){var e=(0,l.default)(a.default.mark((function e(t,r){var n,i=this;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=this._fnPromiseMap.get(t),e.abrupt("return",(n||(n=new Promise(function(){var e=(0,l.default)(a.default.mark((function e(n,o){var s;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,i._runIdlePromise();case 3:return s=r(),e.t0=n,e.next=7,s;case 7:e.t1=e.sent,(0,e.t0)(e.t1),e.next=14;break;case 11:e.prev=11,e.t2=e["catch"](0),o(e.t2);case 14:return e.prev=14,i._fnPromiseMap.delete(t),e.finish(14);case 17:case"end":return e.stop()}}),e,null,[[0,11,14,17]])})));return function(t,r){return e.apply(this,arguments)}}()),this._fnPromiseMap.set(t,n)),n));case 2:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"_runIdlePromise",value:function(){return Promise.resolve()}}]),e}(),ut=function(){function e(t){(0,v.default)(this,e),this._singlePromise=new st,this._cache=Ke(t.env),this._baseURL="https://".concat(t.env,".ap-shanghai.tcb-api.tencentcloudapi.com"),this._reqClass=new ze.adapter.reqClass({timeout:t.timeout,timeoutMsg:"请求在".concat(t.timeout/1e3,"s内未完成,已中断"),restrictedMethods:["post"]})}return(0,b.default)(e,[{key:"_getDeviceId",value:function(){if(this._deviceID)return this._deviceID;var e=this._cache.keys.deviceIdKey,t=this._cache.getStore(e);return"string"==typeof t&&t.length>=16&&t.length<=48||(t=Ue(),this._cache.setStore(e,t)),this._deviceID=t,t}},{key:"_request",value:function(){var e=(0,l.default)(a.default.mark((function e(t,r){var n,i,o,s,u,c=arguments;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=c.length>2&&void 0!==c[2]?c[2]:{},i={"x-request-id":Ue(),"x-device-id":this._getDeviceId()},!n.withAccessToken){e.next=9;break}return o=this._cache.keys.tokenTypeKey,e.next=6,this.getAccessToken();case 6:s=e.sent,u=this._cache.getStore(o),i.authorization="".concat(u," ").concat(s);case 9:return e.abrupt("return",this._reqClass["get"===n.method?"get":"post"]({url:"".concat(this._baseURL).concat(t),data:r,headers:i}));case 10:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"_fetchAccessToken",value:function(){var e=(0,l.default)(a.default.mark((function e(){var t,r,n,i,o,s,u,c,f,d,h=this;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this._cache.keys,r=t.loginTypeKey,n=t.accessTokenKey,i=t.accessTokenExpireKey,o=t.tokenTypeKey,s=this._cache.getStore(r),!s||s===tt.ANONYMOUS){e.next=3;break}throw new ve({code:"INVALID_OPERATION",message:"非匿名登录不支持刷新 access token"});case 3:return e.next=5,this._singlePromise.run("fetchAccessToken",(0,l.default)(a.default.mark((function e(){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,h._request("/auth/v1/signin/anonymously",{},{method:"post"});case 2:return e.abrupt("return",e.sent.data);case 3:case"end":return e.stop()}}),e)}))));case 5:return u=e.sent,c=u.access_token,f=u.expires_in,d=u.token_type,e.abrupt("return",(this._cache.setStore(o,d),this._cache.setStore(n,c),this._cache.setStore(i,Date.now()+1e3*f),c));case 10:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"isAccessTokenExpired",value:function(e,t){var r=!0;return e&&t&&(r=t<Date.now()),r}},{key:"getAccessToken",value:function(){var e=(0,l.default)(a.default.mark((function e(){var t,r,n,i,o;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=this._cache.keys,r=t.accessTokenKey,n=t.accessTokenExpireKey,i=this._cache.getStore(r),o=this._cache.getStore(n),e.abrupt("return",this.isAccessTokenExpired(i,o)?this._fetchAccessToken():i);case 2:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"refreshAccessToken",value:function(){var e=(0,l.default)(a.default.mark((function e(){var t,r,n,i;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=this._cache.keys,r=t.accessTokenKey,n=t.accessTokenExpireKey,i=t.loginTypeKey,e.abrupt("return",(this._cache.removeStore(r),this._cache.removeStore(n),this._cache.setStore(i,tt.ANONYMOUS),this.getAccessToken()));case 2:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getUserInfo",value:function(){var e=(0,l.default)(a.default.mark((function e(){var t=this;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this._singlePromise.run("getUserInfo",(0,l.default)(a.default.mark((function e(){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t._request("/auth/v1/user/me",{},{withAccessToken:!0,method:"get"});case 2:return e.abrupt("return",e.sent.data);case 3:case"end":return e.stop()}}),e)})))));case 1:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}]),e}(),ct=["auth.getJwt","auth.logout","auth.signInWithTicket","auth.signInAnonymously","auth.signIn","auth.fetchAccessTokenWithRefreshToken","auth.signUpWithEmailAndPassword","auth.activateEndUserMail","auth.sendPasswordResetEmail","auth.resetPasswordWithToken","auth.isUsernameRegistered"],ft={"X-SDK-Version":"1.3.5"};function lt(e,t,r){var n=e[t];e[t]=function(t){var i={},o={};r.forEach((function(r){var n=r.call(e,t),a=n.data,s=n.headers;Object.assign(i,a),Object.assign(o,s)}));var a=t.data;return a&&function(){var e;if(e=a,"[object FormData]"!==Object.prototype.toString.call(e))t.data=S(S({},a),i);else for(var r in i)a.append(r,i[r])}(),t.headers=S(S({},t.headers||{}),o),n.call(e,t)}}function dt(){var e=Math.random().toString(16).slice(2);return{data:{seqId:e},headers:S(S({},ft),{},{"x-seqid":e})}}var ht=function(){function e(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,v.default)(this,e),this.config=r,this._reqClass=new ze.adapter.reqClass({timeout:this.config.timeout,timeoutMsg:"请求在".concat(this.config.timeout/1e3,"s内未完成,已中断"),restrictedMethods:["post"]}),this._cache=Ke(this.config.env),this._localCache=(t=this.config.env,Xe[t]),this.oauth=new ut(this.config),lt(this._reqClass,"post",[dt]),lt(this._reqClass,"upload",[dt]),lt(this._reqClass,"download",[dt])}return(0,b.default)(e,[{key:"post",value:function(){var e=(0,l.default)(a.default.mark((function e(t){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._reqClass.post(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"upload",value:function(){var e=(0,l.default)(a.default.mark((function e(t){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._reqClass.upload(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"download",value:function(){var e=(0,l.default)(a.default.mark((function e(t){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._reqClass.download(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"refreshAccessToken",value:function(){var e=(0,l.default)(a.default.mark((function e(){var t,r;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this._refreshAccessTokenPromise||(this._refreshAccessTokenPromise=this._refreshAccessToken()),e.prev=1,e.next=4,this._refreshAccessTokenPromise;case 4:t=e.sent,e.next=10;break;case 7:e.prev=7,e.t0=e["catch"](1),r=e.t0;case 10:if(this._refreshAccessTokenPromise=null,this._shouldRefreshAccessTokenHook=null,!r){e.next=12;break}throw r;case 12:return e.abrupt("return",t);case 13:case"end":return e.stop()}}),e,this,[[1,7]])})));return function(){return e.apply(this,arguments)}}()},{key:"_refreshAccessToken",value:function(){var e=(0,l.default)(a.default.mark((function e(){var t,r,n,i,o,s,u,c,f,l,d,h,p;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this._cache.keys,r=t.accessTokenKey,n=t.accessTokenExpireKey,i=t.refreshTokenKey,o=t.loginTypeKey,s=t.anonymousUuidKey,this._cache.removeStore(r),this._cache.removeStore(n),u=this._cache.getStore(i),u){e.next=5;break}throw new ve({message:"未登录CloudBase"});case 5:return c={refresh_token:u},e.next=8,this.request("auth.fetchAccessTokenWithRefreshToken",c);case 8:if(f=e.sent,!f.data.code){e.next=21;break}if(l=f.data.code,"SIGN_PARAM_INVALID"!==l&&"REFRESH_TOKEN_EXPIRED"!==l&&"INVALID_REFRESH_TOKEN"!==l){e.next=20;break}if(this._cache.getStore(o)!==tt.ANONYMOUS||"INVALID_REFRESH_TOKEN"!==l){e.next=19;break}return d=this._cache.getStore(s),h=this._cache.getStore(i),e.next=17,this.send("auth.signInAnonymously",{anonymous_uuid:d,refresh_token:h});case 17:return p=e.sent,e.abrupt("return",(this.setRefreshToken(p.refresh_token),this._refreshAccessToken()));case 19:Qe(nt),this._cache.removeStore(i);case 20:throw new ve({code:f.data.code,message:"刷新access token失败:".concat(f.data.code)});case 21:if(!f.data.access_token){e.next=23;break}return e.abrupt("return",(Qe(at),this._cache.setStore(r,f.data.access_token),this._cache.setStore(n,f.data.access_token_expire+Date.now()),{accessToken:f.data.access_token,accessTokenExpire:f.data.access_token_expire}));case 23:f.data.refresh_token&&(this._cache.removeStore(i),this._cache.setStore(i,f.data.refresh_token),this._refreshAccessToken());case 24:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getAccessToken",value:function(){var e=(0,l.default)(a.default.mark((function e(){var t,r,n,i,o,s,u;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this._cache.keys,r=t.accessTokenKey,n=t.accessTokenExpireKey,i=t.refreshTokenKey,this._cache.getStore(i)){e.next=3;break}throw new ve({message:"refresh token不存在,登录状态异常"});case 3:if(o=this._cache.getStore(r),s=this._cache.getStore(n),u=!0,e.t0=this._shouldRefreshAccessTokenHook,!e.t0){e.next=9;break}return e.next=8,this._shouldRefreshAccessTokenHook(o,s);case 8:e.t0=!e.sent;case 9:if(e.t1=e.t0,!e.t1){e.next=12;break}u=!1;case 12:return e.abrupt("return",(!o||!s||s<Date.now())&&u?this.refreshAccessToken():{accessToken:o,accessTokenExpire:s});case 13:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"request",value:function(){var e=(0,l.default)(a.default.mark((function e(t,r,n){var i,o,s,u,c,f,l,d,h,p,g,y,v,b,m;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i="x-tcb-trace_".concat(this.config.env),o="application/x-www-form-urlencoded",s=S({action:t,env:this.config.env,dataVersion:"2019-08-16"},r),e.t0=-1===ct.indexOf(t),!e.t0){e.next=9;break}return this._cache.keys,e.next=8,this.oauth.getAccessToken();case 8:s.access_token=e.sent;case 9:if("storage.uploadFile"!==t){e.next=15;break}for(c in u=new FormData,u)u.hasOwnProperty(c)&&void 0!==u[c]&&u.append(c,s[c]);o="multipart/form-data",e.next=17;break;case 15:for(f in o="application/json",u={},s)void 0!==s[f]&&(u[f]=s[f]);case 17:return l={headers:{"content-type":o}},n&&n.timeout&&(l.timeout=n.timeout),n&&n.onUploadProgress&&(l.onUploadProgress=n.onUploadProgress),d=this._localCache.getStore(i),d&&(l.headers["X-TCB-Trace"]=d),h=r.parse,p=r.inQuery,g=r.search,y={env:this.config.env},h&&(y.parse=!0),p&&(y=S(S({},p),y)),v=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=/\?/.test(t),i="";for(var o in r)""===i?!n&&(t+="?"):i+="&",i+="".concat(o,"=").concat(encodeURIComponent(r[o]));return/^http(s)?\:\/\//.test(t+=i)?t:"".concat(e).concat(t)}(Pe,"//tcb-api.tencentcloudapi.com/web",y),g&&(v+=g),e.next=28,this.post(S({url:v,data:u},l));case 28:if(b=e.sent,m=b.header&&b.header["x-tcb-trace"],m&&this._localCache.setStore(i,m),(200===Number(b.status)||200===Number(b.statusCode))&&b.data){e.next=32;break}throw new ve({code:"NETWORK_ERROR",message:"network request error"});case 32:return e.abrupt("return",b);case 33:case"end":return e.stop()}}),e,this)})));return function(t,r,n){return e.apply(this,arguments)}}()},{key:"send",value:function(){var e=(0,l.default)(a.default.mark((function e(t){var r,n,i,o,s=arguments;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=s.length>1&&void 0!==s[1]?s[1]:{},n=s.length>2&&void 0!==s[2]?s[2]:{},e.next=4,this.request(t,r,S(S({},n),{},{onUploadProgress:r.onUploadProgress}));case 4:if(i=e.sent,"ACCESS_TOKEN_DISABLED"!==i.data.code&&"ACCESS_TOKEN_EXPIRED"!==i.data.code||-1!==ct.indexOf(t)){e.next=14;break}return e.next=8,this.oauth.refreshAccessToken();case 8:return e.next=10,this.request(t,r,S(S({},n),{},{onUploadProgress:r.onUploadProgress}));case 10:if(o=e.sent,!o.data.code){e.next=13;break}throw new ve({code:o.data.code,message:Fe(o.data.message)});case 13:return e.abrupt("return",o.data);case 14:if(!i.data.code){e.next=16;break}throw new ve({code:i.data.code,message:Fe(i.data.message)});case 16:return e.abrupt("return",i.data);case 17:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"setRefreshToken",value:function(e){var t=this._cache.keys,r=t.accessTokenKey,n=t.accessTokenExpireKey,i=t.refreshTokenKey;this._cache.removeStore(r),this._cache.removeStore(n),this._cache.setStore(i,e)}}]),e}(),pt={};function gt(e){return pt[e]}var yt=function(){function e(t){(0,v.default)(this,e),this.config=t,this._cache=Ke(t.env),this._request=gt(t.env)}return(0,b.default)(e,[{key:"setRefreshToken",value:function(e){var t=this._cache.keys,r=t.accessTokenKey,n=t.accessTokenExpireKey,i=t.refreshTokenKey;this._cache.removeStore(r),this._cache.removeStore(n),this._cache.setStore(i,e)}},{key:"setAccessToken",value:function(e,t){var r=this._cache.keys,n=r.accessTokenKey,i=r.accessTokenExpireKey;this._cache.setStore(n,e),this._cache.setStore(i,t)}},{key:"refreshUserInfo",value:function(){var e=(0,l.default)(a.default.mark((function e(){var t,r;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._request.send("auth.getUserInfo",{});case 2:return t=e.sent,r=t.data,e.abrupt("return",(this.setLocalUserInfo(r),r));case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"setLocalUserInfo",value:function(e){var t=this._cache.keys.userInfoKey;this._cache.setStore(t,e)}}]),e}(),vt=function(){function e(t){if((0,v.default)(this,e),!t)throw new ve({code:"PARAM_ERROR",message:"envId is not defined"});this._envId=t,this._cache=Ke(this._envId),this._request=gt(this._envId),this.setUserInfo()}return(0,b.default)(e,[{key:"linkWithTicket",value:function(e){if("string"!=typeof e)throw new ve({code:"PARAM_ERROR",message:"ticket must be string"});return this._request.send("auth.linkWithTicket",{ticket:e})}},{key:"linkWithRedirect",value:function(e){e.signInWithRedirect()}},{key:"updatePassword",value:function(e,t){return this._request.send("auth.updatePassword",{oldPassword:t,newPassword:e})}},{key:"updateEmail",value:function(e){return this._request.send("auth.updateEmail",{newEmail:e})}},{key:"updateUsername",value:function(e){if("string"!=typeof e)throw new ve({code:"PARAM_ERROR",message:"username must be a string"});return this._request.send("auth.updateUsername",{username:e})}},{key:"getLinkedUidList",value:function(){var e=(0,l.default)(a.default.mark((function e(){var t,r,n,i;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._request.send("auth.getLinkedUidList",{});case 2:return t=e.sent,r=t.data,n=!1,i=r.users,e.abrupt("return",(i.forEach((function(e){e.wxOpenId&&e.wxPublicId&&(n=!0)})),{users:i,hasPrimaryUid:n}));case 7:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"setPrimaryUid",value:function(e){return this._request.send("auth.setPrimaryUid",{uid:e})}},{key:"unlink",value:function(e){return this._request.send("auth.unlink",{platform:e})}},{key:"update",value:function(){var e=(0,l.default)(a.default.mark((function e(t){var r,n,i,o,s,u,c,f;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=t.nickName,n=t.gender,i=t.avatarUrl,o=t.province,s=t.country,u=t.city,e.next=8,this._request.send("auth.updateUserInfo",{nickName:r,gender:n,avatarUrl:i,province:o,country:s,city:u});case 8:c=e.sent,f=c.data,this.setLocalUserInfo(f);case 11:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"refresh",value:function(){var e=(0,l.default)(a.default.mark((function e(){var t;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._request.oauth.getUserInfo();case 2:return t=e.sent,e.abrupt("return",(this.setLocalUserInfo(t),t));case 4:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"setUserInfo",value:function(){var e=this,t=this._cache.keys.userInfoKey,r=this._cache.getStore(t);["uid","loginType","openid","wxOpenId","wxPublicId","unionId","qqMiniOpenId","email","hasPassword","customUserId","nickName","gender","avatarUrl"].forEach((function(t){e[t]=r[t]})),this.location={country:r.country,province:r.province,city:r.city}}},{key:"setLocalUserInfo",value:function(e){var t=this._cache.keys.userInfoKey;this._cache.setStore(t,e),this.setUserInfo()}}]),e}(),bt=function(){function e(t){if((0,v.default)(this,e),!t)throw new ve({code:"PARAM_ERROR",message:"envId is not defined"});this._cache=Ke(t);var r=this._cache.keys,n=r.refreshTokenKey,i=r.accessTokenKey,o=r.accessTokenExpireKey,a=this._cache.getStore(n),s=this._cache.getStore(i),u=this._cache.getStore(o);this.credential={refreshToken:a,accessToken:s,accessTokenExpire:u},this.user=new vt(t)}return(0,b.default)(e,[{key:"isAnonymousAuth",get:function(){return this.loginType===tt.ANONYMOUS}},{key:"isCustomAuth",get:function(){return this.loginType===tt.CUSTOM}},{key:"isWeixinAuth",get:function(){return this.loginType===tt.WECHAT||this.loginType===tt.WECHAT_OPEN||this.loginType===tt.WECHAT_PUBLIC}},{key:"loginType",get:function(){return this._cache.getStore(this._cache.keys.loginTypeKey)}}]),e}(),mt=function(e){(0,h.default)(r,e);var t=x(r);function r(){return(0,v.default)(this,r),t.apply(this,arguments)}return(0,b.default)(r,[{key:"signIn",value:function(){var e=(0,l.default)(a.default.mark((function e(){var t;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this._cache.updatePersistence("local"),e.next=3,this._request.oauth.getAccessToken();case 3:return Qe(rt),Qe(it,{env:this.config.env,loginType:tt.ANONYMOUS,persistence:"local"}),t=new bt(this.config.env),e.next=8,t.user.refresh();case 8:return e.abrupt("return",t);case 9:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"linkAndRetrieveDataWithTicket",value:function(){var e=(0,l.default)(a.default.mark((function e(t){var r,n,i,o,s,u;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=this._cache.keys,n=r.anonymousUuidKey,i=r.refreshTokenKey,o=this._cache.getStore(n),s=this._cache.getStore(i),e.next=7,this._request.send("auth.linkAndRetrieveDataWithTicket",{anonymous_uuid:o,refresh_token:s,ticket:t});case 7:if(u=e.sent,!u.refresh_token){e.next=16;break}return this._clearAnonymousUUID(),this.setRefreshToken(u.refresh_token),e.next=13,this._request.refreshAccessToken();case 13:return Qe(ot,{env:this.config.env}),Qe(it,{loginType:tt.CUSTOM,persistence:"local"}),e.abrupt("return",{credential:{refreshToken:u.refresh_token}});case 16:throw new ve({message:"匿名转化失败"});case 17:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_setAnonymousUUID",value:function(e){var t=this._cache.keys,r=t.anonymousUuidKey,n=t.loginTypeKey;this._cache.removeStore(r),this._cache.setStore(r,e),this._cache.setStore(n,tt.ANONYMOUS)}},{key:"_clearAnonymousUUID",value:function(){this._cache.removeStore(this._cache.keys.anonymousUuidKey)}}]),r}(yt),_t=function(e){(0,h.default)(r,e);var t=x(r);function r(){return(0,v.default)(this,r),t.apply(this,arguments)}return(0,b.default)(r,[{key:"signIn",value:function(){var e=(0,l.default)(a.default.mark((function e(t){var r,n;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new ve({code:"PARAM_ERROR",message:"ticket must be a string"});case 2:return r=this._cache.keys.refreshTokenKey,e.next=5,this._request.send("auth.signInWithTicket",{ticket:t,refresh_token:this._cache.getStore(r)||""});case 5:if(n=e.sent,!n.refresh_token){e.next=15;break}return this.setRefreshToken(n.refresh_token),e.next=10,this._request.refreshAccessToken();case 10:return Qe(rt),Qe(it,{env:this.config.env,loginType:tt.CUSTOM,persistence:this.config.persistence}),e.next=14,this.refreshUserInfo();case 14:return e.abrupt("return",new bt(this.config.env));case 15:throw new ve({message:"自定义登录失败"});case 16:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()}]),r}(yt),wt=function(e){(0,h.default)(r,e);var t=x(r);function r(){return(0,v.default)(this,r),t.apply(this,arguments)}return(0,b.default)(r,[{key:"signIn",value:function(){var e=(0,l.default)(a.default.mark((function e(t,r){var n,i,o,s,u;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new ve({code:"PARAM_ERROR",message:"email must be a string"});case 2:return n=this._cache.keys.refreshTokenKey,e.next=5,this._request.send("auth.signIn",{loginType:"EMAIL",email:t,password:r,refresh_token:this._cache.getStore(n)||""});case 5:if(i=e.sent,o=i.refresh_token,s=i.access_token,u=i.access_token_expire,!o){e.next=22;break}if(this.setRefreshToken(o),!s||!u){e.next=15;break}this.setAccessToken(s,u),e.next=17;break;case 15:return e.next=17,this._request.refreshAccessToken();case 17:return e.next=19,this.refreshUserInfo();case 19:return Qe(rt),Qe(it,{env:this.config.env,loginType:tt.EMAIL,persistence:this.config.persistence}),e.abrupt("return",new bt(this.config.env));case 22:throw i.code?new ve({code:i.code,message:"邮箱登录失败: ".concat(i.message)}):new ve({message:"邮箱登录失败"});case 23:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"activate",value:function(){var e=(0,l.default)(a.default.mark((function e(t){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this._request.send("auth.activateEndUserMail",{token:t}));case 1:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"resetPasswordWithToken",value:function(){var e=(0,l.default)(a.default.mark((function e(t,r){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this._request.send("auth.resetPasswordWithToken",{token:t,newPassword:r}));case 1:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()}]),r}(yt),At=function(e){(0,h.default)(r,e);var t=x(r);function r(){return(0,v.default)(this,r),t.apply(this,arguments)}return(0,b.default)(r,[{key:"signIn",value:function(){var e=(0,l.default)(a.default.mark((function e(t,r){var n,i,o,s,u;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new ve({code:"PARAM_ERROR",message:"username must be a string"});case 2:return"string"!=typeof r&&(r="",console.warn("password is empty")),n=this._cache.keys.refreshTokenKey,e.next=6,this._request.send("auth.signIn",{loginType:tt.USERNAME,username:t,password:r,refresh_token:this._cache.getStore(n)||""});case 6:if(i=e.sent,o=i.refresh_token,s=i.access_token_expire,u=i.access_token,!o){e.next=23;break}if(this.setRefreshToken(o),!u||!s){e.next=16;break}this.setAccessToken(u,s),e.next=18;break;case 16:return e.next=18,this._request.refreshAccessToken();case 18:return e.next=20,this.refreshUserInfo();case 20:return Qe(rt),Qe(it,{env:this.config.env,loginType:tt.USERNAME,persistence:this.config.persistence}),e.abrupt("return",new bt(this.config.env));case 23:throw i.code?new ve({code:i.code,message:"用户名密码登录失败: ".concat(i.message)}):new ve({message:"用户名密码登录失败"});case 24:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()}]),r}(yt),St=function(){function e(t){(0,v.default)(this,e),this.config=t,this._cache=Ke(t.env),this._request=gt(t.env),this._onAnonymousConverted=this._onAnonymousConverted.bind(this),this._onLoginTypeChanged=this._onLoginTypeChanged.bind(this),Je(it,this._onLoginTypeChanged)}return(0,b.default)(e,[{key:"currentUser",get:function(){var e=this.hasLoginState();return e&&e.user||null}},{key:"loginType",get:function(){return this._cache.getStore(this._cache.keys.loginTypeKey)}},{key:"anonymousAuthProvider",value:function(){return new mt(this.config)}},{key:"customAuthProvider",value:function(){return new _t(this.config)}},{key:"emailAuthProvider",value:function(){return new wt(this.config)}},{key:"usernameAuthProvider",value:function(){return new At(this.config)}},{key:"signInAnonymously",value:function(){var e=(0,l.default)(a.default.mark((function e(){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new mt(this.config).signIn());case 1:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"signInWithEmailAndPassword",value:function(){var e=(0,l.default)(a.default.mark((function e(t,r){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new wt(this.config).signIn(t,r));case 1:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"signInWithUsernameAndPassword",value:function(e,t){return new At(this.config).signIn(e,t)}},{key:"linkAndRetrieveDataWithTicket",value:function(){var e=(0,l.default)(a.default.mark((function e(t){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this._anonymousAuthProvider||(this._anonymousAuthProvider=new mt(this.config)),Je(ot,this._onAnonymousConverted),e.next=3,this._anonymousAuthProvider.linkAndRetrieveDataWithTicket(t);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"signOut",value:function(){var e=(0,l.default)(a.default.mark((function e(){var t,r,n,i,o,s;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.loginType!==tt.ANONYMOUS){e.next=2;break}throw new ve({message:"匿名用户不支持登出操作"});case 2:if(t=this._cache.keys,r=t.refreshTokenKey,n=t.accessTokenKey,i=t.accessTokenExpireKey,o=this._cache.getStore(r),o){e.next=5;break}return e.abrupt("return");case 5:return e.next=7,this._request.send("auth.logout",{refresh_token:o});case 7:return s=e.sent,e.abrupt("return",(this._cache.removeStore(r),this._cache.removeStore(n),this._cache.removeStore(i),Qe(rt),Qe(it,{env:this.config.env,loginType:tt.NULL,persistence:this.config.persistence}),s));case 9:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"signUpWithEmailAndPassword",value:function(){var e=(0,l.default)(a.default.mark((function e(t,r){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this._request.send("auth.signUpWithEmailAndPassword",{email:t,password:r}));case 1:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"sendPasswordResetEmail",value:function(){var e=(0,l.default)(a.default.mark((function e(t){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this._request.send("auth.sendPasswordResetEmail",{email:t}));case 1:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"onLoginStateChanged",value:function(e){var t=this;Je(rt,(function(){var r=t.hasLoginState();e.call(t,r)}));var r=this.hasLoginState();e.call(this,r)}},{key:"onLoginStateExpired",value:function(e){Je(nt,e.bind(this))}},{key:"onAccessTokenRefreshed",value:function(e){Je(at,e.bind(this))}},{key:"onAnonymousConverted",value:function(e){Je(ot,e.bind(this))}},{key:"onLoginTypeChanged",value:function(e){var t=this;Je(it,(function(){var r=t.hasLoginState();e.call(t,r)}))}},{key:"getAccessToken",value:function(){var e=(0,l.default)(a.default.mark((function e(){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._request.getAccessToken();case 2:return e.t0=e.sent.accessToken,e.t1=this.config.env,e.abrupt("return",{accessToken:e.t0,env:e.t1});case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"hasLoginState",value:function(){var e=this._cache.keys,t=e.accessTokenKey,r=e.accessTokenExpireKey,n=this._cache.getStore(t),i=this._cache.getStore(r);return this._request.oauth.isAccessTokenExpired(n,i)?null:new bt(this.config.env)}},{key:"isUsernameRegistered",value:function(){var e=(0,l.default)(a.default.mark((function e(t){var r,n;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new ve({code:"PARAM_ERROR",message:"username must be a string"});case 2:return e.next=4,this._request.send("auth.isUsernameRegistered",{username:t});case 4:return r=e.sent,n=r.data,e.abrupt("return",n&&n.isRegistered);case 7:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getLoginState",value:function(){return Promise.resolve(this.hasLoginState())}},{key:"signInWithTicket",value:function(){var e=(0,l.default)(a.default.mark((function e(t){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new _t(this.config).signIn(t));case 1:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"shouldRefreshAccessToken",value:function(e){this._request._shouldRefreshAccessTokenHook=e.bind(this)}},{key:"getUserInfo",value:function(){return this._request.send("auth.getUserInfo",{}).then((function(e){return e.code?e:S(S({},e.data),{},{requestId:e.seqId})}))}},{key:"getAuthHeader",value:function(){var e=this._cache.keys,t=e.refreshTokenKey,r=e.accessTokenKey,n=this._cache.getStore(t);return{"x-cloudbase-credentials":this._cache.getStore(r)+"/@@/"+n}}},{key:"_onAnonymousConverted",value:function(e){var t=e.data.env;t===this.config.env&&this._cache.updatePersistence(this.config.persistence)}},{key:"_onLoginTypeChanged",value:function(e){var t=e.data,r=t.loginType,n=t.persistence,i=t.env;i===this.config.env&&(this._cache.updatePersistence(n),this._cache.setStore(this._cache.keys.loginTypeKey,r))}}]),e}(),xt=function(e,t){t=t||Be();var r=gt(this.config.env),n=e.cloudPath,i=e.filePath,o=e.onUploadProgress,a=e.fileType,s=void 0===a?"image":a;return r.send("storage.getUploadMetadata",{path:n}).then((function(e){var a=e.data,u=a.url,c=a.authorization,f=a.token,l=a.fileId,d=a.cosFileId,h=e.requestId,p={key:n,signature:c,"x-cos-meta-fileid":d,success_action_status:"201","x-cos-security-token":f};r.upload({url:u,data:p,file:i,name:n,fileType:s,onUploadProgress:o}).then((function(e){201===e.statusCode?t(null,{fileID:l,requestId:h}):t(new ve({code:"STORAGE_REQUEST_FAIL",message:"STORAGE_REQUEST_FAIL: ".concat(e.data)}))})).catch((function(e){t(e)}))})).catch((function(e){t(e)})),t.promise},Et=function(e,t){t=t||Be();var r=gt(this.config.env),n=e.cloudPath;return r.send("storage.getUploadMetadata",{path:n}).then((function(e){t(null,e)})).catch((function(e){t(e)})),t.promise},Ct=function(e,t){var r=e.fileList;if(t=t||Be(),!r||!Array.isArray(r))return{code:"INVALID_PARAM",message:"fileList必须是非空的数组"};var n,i=_(r);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(!o||"string"!=typeof o)return{code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"}}}catch(s){i.e(s)}finally{i.f()}var a={fileid_list:r};return gt(this.config.env).send("storage.batchDeleteFile",a).then((function(e){e.code?t(null,e):t(null,{fileList:e.data.delete_list,requestId:e.requestId})})).catch((function(e){t(e)})),t.promise},Ot=function(e,t){var r=e.fileList;t=t||Be(),r&&Array.isArray(r)||t(null,{code:"INVALID_PARAM",message:"fileList必须是非空的数组"});var n,i=[],o=_(r);try{for(o.s();!(n=o.n()).done;){var a=n.value;"object"==(0,c.default)(a)?(a.hasOwnProperty("fileID")&&a.hasOwnProperty("maxAge")||t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是包含fileID和maxAge的对象"}),i.push({fileid:a.fileID,max_age:a.maxAge})):"string"==typeof a?i.push({fileid:a}):t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是字符串"})}}catch(u){o.e(u)}finally{o.f()}var s={file_list:i};return gt(this.config.env).send("storage.batchGetDownloadUrl",s).then((function(e){e.code?t(null,e):t(null,{fileList:e.data.download_list,requestId:e.requestId})})).catch((function(e){t(e)})),t.promise},It=function(){var e=(0,l.default)(a.default.mark((function e(t,r){var n,i,o,s;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.fileID,e.next=3,Ot.call(this,{fileList:[{fileID:n,maxAge:600}]});case 3:if(i=e.sent.fileList[0],"SUCCESS"===i.code){e.next=6;break}return e.abrupt("return",r?r(i):new Promise((function(e){e(i)})));case 6:if(o=gt(this.config.env),s=i.download_url,s=encodeURI(s),r){e.next=10;break}return e.abrupt("return",o.download({url:s}));case 10:return e.t0=r,e.next=13,o.download({url:s});case 13:e.t1=e.sent,(0,e.t0)(e.t1);case 15:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}(),Tt=function(e,t){var r,n=e.name,i=e.data,o=e.query,a=e.parse,s=e.search,u=e.timeout,c=t||Be();try{r=i?JSON.stringify(i):""}catch(n){return Promise.reject(n)}if(!n)return Promise.reject(new ve({code:"PARAM_ERROR",message:"函数名不能为空"}));var f={inQuery:o,parse:a,search:s,function_name:n,request_data:r};return gt(this.config.env).send("functions.invokeFunction",f,{timeout:u}).then((function(e){if(e.code)c(null,e);else{var t=e.data.response_data;if(a)c(null,{result:t,requestId:e.requestId});else try{t=JSON.parse(e.data.response_data),c(null,{result:t,requestId:e.requestId})}catch(e){c(new ve({message:"response data must be json"}))}}return c.promise})).catch((function(e){c(e)})),c.promise},Pt={timeout:15e3,persistence:"session"},Mt={},kt=function(){function e(t){(0,v.default)(this,e),this.config=t||this.config,this.authObj=void 0}return(0,b.default)(e,[{key:"init",value:function(t){switch(ze.adapter||(this.requestClient=new ze.adapter.reqClass({timeout:t.timeout||5e3,timeoutMsg:"请求在".concat((t.timeout||5e3)/1e3,"s内未完成,已中断")})),this.config=S(S({},Pt),t),!0){case this.config.timeout>6e5:console.warn("timeout大于可配置上限[10分钟],已重置为上限数值"),this.config.timeout=6e5;break;case this.config.timeout<100:console.warn("timeout小于可配置下限[100ms],已重置为下限数值"),this.config.timeout=100}return new e(this.config)}},{key:"auth",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.persistence;if(this.authObj)return this.authObj;var r,n=t||ze.adapter.primaryStorage||Pt.persistence;return n!==this.config.persistence&&(this.config.persistence=n),function(e){var t=e.env;Ge[t]=new We(e),Xe[t]=new We(S(S({},e),{},{persistence:"local"}))}(this.config),r=this.config,pt[r.env]=new ht(r),this.authObj=new St(this.config),this.authObj}},{key:"on",value:function(e,t){return Je.apply(this,[e,t])}},{key:"off",value:function(e,t){return et.apply(this,[e,t])}},{key:"callFunction",value:function(e,t){return Tt.apply(this,[e,t])}},{key:"deleteFile",value:function(e,t){return Ct.apply(this,[e,t])}},{key:"getTempFileURL",value:function(e,t){return Ot.apply(this,[e,t])}},{key:"downloadFile",value:function(e,t){return It.apply(this,[e,t])}},{key:"uploadFile",value:function(e,t){return xt.apply(this,[e,t])}},{key:"getUploadMetadata",value:function(e,t){return Et.apply(this,[e,t])}},{key:"registerExtension",value:function(e){Mt[e.name]=e}},{key:"invokeExtension",value:function(){var e=(0,l.default)(a.default.mark((function e(t,r){var n;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=Mt[t],n){e.next=3;break}throw new ve({message:"扩展".concat(t," 必须先注册")});case 3:return e.next=5,n.invoke(r,this);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"useAdapters",value:function(e){var t=function(e){var t,r,n=(t=e,"[object Array]"===Object.prototype.toString.call(t)?e:[e]),i=_(n);try{for(i.s();!(r=i.n()).done;){var o=r.value,a=o.isMatch,s=o.genAdapter,u=o.runtime;if(a())return{adapter:s(),runtime:u}}}catch(c){i.e(c)}finally{i.f()}}(e)||{},r=t.adapter,n=t.runtime;r&&(ze.adapter=r),n&&(ze.runtime=n)}}]),e}(),Rt=new kt;function Dt(e,t,r){void 0===r&&(r={});var n=/\?/.test(t),i="";for(var o in r)""===i?!n&&(t+="?"):i+="&",i+=o+"="+encodeURIComponent(r[o]);return/^http(s)?:\/\//.test(t+=i)?t:""+e+t}var Nt=function(){function e(){(0,v.default)(this,e)}return(0,b.default)(e,[{key:"get",value:function(e){var t=e.url,r=e.data,n=e.headers,i=e.timeout;return new Promise((function(e,o){_e.request({url:Dt("https:",t),data:r,method:"GET",header:n,timeout:i,success:function(t){e(t)},fail:function(e){o(e)}})}))}},{key:"post",value:function(e){var t=e.url,r=e.data,n=e.headers,i=e.timeout;return new Promise((function(e,o){_e.request({url:Dt("https:",t),data:r,method:"POST",header:n,timeout:i,success:function(t){e(t)},fail:function(e){o(e)}})}))}},{key:"upload",value:function(e){return new Promise((function(t,r){var n=e.url,i=e.file,o=e.data,a=e.headers,s=e.fileType,u=_e.uploadFile({url:Dt("https:",n),name:"file",formData:Object.assign({},o),filePath:i,fileType:s,header:a,success:function(e){var r={statusCode:e.statusCode,data:e.data||{}};200===e.statusCode&&o.success_action_status&&(r.statusCode=parseInt(o.success_action_status,10)),t(r)},fail:function(e){r(new Error(e.errMsg||"uploadFile:fail"))}});"function"==typeof e.onUploadProgress&&u&&"function"==typeof u.onProgressUpdate&&u.onProgressUpdate((function(t){e.onUploadProgress({loaded:t.totalBytesSent,total:t.totalBytesExpectedToSend})}))}))}}]),e}(),Bt={setItem:function(e,t){_e.setStorageSync(e,t)},getItem:function(e){return _e.getStorageSync(e)},removeItem:function(e){_e.removeStorageSync(e)},clear:function(){_e.clearStorageSync()}},Lt={genAdapter:function(){return{root:{},reqClass:Nt,localStorage:Bt,primaryStorage:"local"}},isMatch:function(){return!0},runtime:"uni_app"};Rt.useAdapters(Lt);var jt=Rt,Ft=jt.init;jt.init=function(e){e.env=e.spaceId;var t=Ft.call(this,e);t.config.provider="tencent",t.config.spaceId=e.spaceId;var r=t.auth;return t.auth=function(e){var t=r.call(this,e);return["linkAndRetrieveDataWithTicket","signInAnonymously","signOut","getAccessToken","getLoginState","signInWithTicket","getUserInfo"].forEach((function(e){var r;t[e]=(r=t[e],function(e){e=e||{};var t=ye(e),n=t.success,i=t.fail,o=t.complete;if(!(n||i||o))return r.call(this,e);r.call(this,e).then((function(e){n&&n(e),o&&o(e)}),(function(e){i&&i(e),o&&o(e)}))}).bind(t)})),t},t.customAuth=t.auth,t};var Ut=jt;function zt(e,t){return Ht.apply(this,arguments)}function Ht(){return Ht=(0,l.default)(a.default.mark((function e(t,r){var n,i,o;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n="http://".concat(t,":").concat(r,"/system/ping"),e.prev=1,e.next=4,o={url:n,timeout:500},new Promise((function(e,t){_e.request(S(S({},o),{},{success:function(t){e(t)},fail:function(e){t(e)}}))}));case 4:return i=e.sent,e.abrupt("return",!(!i.data||0!==i.data.code));case 8:return e.prev=8,e.t0=e["catch"](1),e.abrupt("return",!1);case 11:case"end":return e.stop()}}),e,null,[[1,8]])}))),Ht.apply(this,arguments)}function qt(e,t){return Vt.apply(this,arguments)}function Vt(){return Vt=(0,l.default)(a.default.mark((function e(t,r){var n,i,o;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:i=0;case 1:if(!(i<t.length)){e.next=11;break}return o=t[i],e.next=5,zt(o,r);case 5:if(!e.sent){e.next=8;break}return n=o,e.abrupt("break",11);case 8:i++,e.next=1;break;case 11:return e.abrupt("return",{address:n,port:r});case 12:case"end":return e.stop()}}),e)}))),Vt.apply(this,arguments)}var Wt={"serverless.file.resource.generateProximalSign":"storage/generate-proximal-sign","serverless.file.resource.report":"storage/report","serverless.file.resource.delete":"storage/delete","serverless.file.resource.getTempFileURL":"storage/get-temp-file-url"},Gt=function(){function e(t){if((0,v.default)(this,e),["spaceId","clientSecret"].forEach((function(e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new Error("".concat(e," required"))})),!t.endpoint)throw new Error("集群空间未配置ApiEndpoint,配置后需要重新关联服务空间后生效");this.config=Object.assign({},t),this.config.provider="dcloud",this.config.requestUrl=this.config.endpoint+"/client",this.config.envType=this.config.envType||"public",this.adapter=_e}return(0,b.default)(e,[{key:"request",value:function(){var e=(0,l.default)(a.default.mark((function e(t){var r,n=this,i=arguments;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!(i.length>1&&void 0!==i[1])||i[1],r=!1,!r){e.next=8;break}return e.next=5,this.setupLocalRequest(t);case 5:e.t0=e.sent,e.next=9;break;case 8:e.t0=this.setupRequest(t);case 9:return t=e.t0,e.abrupt("return",Promise.resolve().then((function(){return r?n.requestLocal(t):Oe.wrappedRequest(t,n.adapter.request)})));case 11:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"requestLocal",value:function(e){var t=this;return new Promise((function(r,n){t.adapter.request(Object.assign(e,{complete:function(e){if(e||(e={}),!e.statusCode||e.statusCode>=400){var t=e.data&&e.data.code||"SYS_ERR",i=e.data&&e.data.message||"request:fail";return n(new ve({code:t,message:i}))}r({success:!0,result:e.data})}}))}))}},{key:"setupRequest",value:function(e){var t=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),r={"Content-Type":"application/json"};r["x-serverless-sign"]=Oe.sign(t,this.config.clientSecret);var n=Ee();r["x-client-info"]=encodeURIComponent(JSON.stringify(n));var i=we(),o=i.token;return r["x-client-token"]=o,{url:this.config.requestUrl,method:"POST",data:t,dataType:"json",header:JSON.parse(JSON.stringify(r))}}},{key:"setupLocalRequest",value:function(){var e=(0,l.default)(a.default.mark((function e(t){var r,n,i,o,s,u,c,f,l;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=Ee(),n=we(),i=n.token,o=Object.assign({},t,{spaceId:this.config.spaceId,timestamp:Date.now(),clientInfo:r,token:i}),s=this.__dev__&&this.__dev__.debugInfo||{},u=s.address,c=s.servePort,e.next=9,qt(u,c);case 9:return f=e.sent,l=f.address,e.abrupt("return",{url:"http://".concat(l,":").concat(c,"/").concat(Wt[t.method]),method:"POST",data:o,dataType:"json",header:JSON.parse(JSON.stringify({"Content-Type":"application/json"}))});case 12:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"callFunction",value:function(e){var t={method:"serverless.function.runtime.invoke",params:JSON.stringify({functionTarget:e.name,functionArgs:e.data||{}})};return this.request(t,!1)}},{key:"getUploadFileOptions",value:function(e){var t={method:"serverless.file.resource.generateProximalSign",params:JSON.stringify(e)};return this.request(t)}},{key:"reportUploadFile",value:function(e){var t={method:"serverless.file.resource.report",params:JSON.stringify(e)};return this.request(t)}},{key:"uploadFile",value:function(e){var t,r=this,n=e.filePath,i=e.cloudPath,o=e.fileType,a=void 0===o?"image":o,s=e.onUploadProgress;if(!i)throw new ve({code:"CLOUDPATH_REQUIRED",message:"cloudPath不可为空"});return this.getUploadFileOptions({cloudPath:i}).then((function(e){var i=e.result,o=i.url,u=i.formData,c=i.name;return t=e.result.fileUrl,new Promise((function(e,t){var i=r.adapter.uploadFile({url:o,formData:u,name:c,filePath:n,fileType:a,success:function(r){r&&r.statusCode<400?e(r):t(new ve({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail:function(e){t(new ve({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof s&&i&&"function"==typeof i.onProgressUpdate&&i.onProgressUpdate((function(e){s({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))})).then((function(){return r.reportUploadFile({cloudPath:i})})).then((function(e){return new Promise((function(r,i){e.success?r({success:!0,filePath:n,fileID:t}):i(new ve({code:"UPLOAD_FAILED",message:"文件上传失败"}))}))}))}},{key:"deleteFile",value:function(e){var t=e.fileList,r={method:"serverless.file.resource.delete",params:JSON.stringify({fileList:t})};return this.request(r).then((function(e){if(e.success)return e.result;throw new ve({code:"DELETE_FILE_FAILED",message:"删除文件失败"})}))}},{key:"getTempFileURL",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.fileList,r=e.maxAge;if(!Array.isArray(t)||0===t.length)throw new ve({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});var n={method:"serverless.file.resource.getTempFileURL",params:JSON.stringify({fileList:t,maxAge:r})};return this.request(n).then((function(e){if(e.success)return{fileList:e.result.fileList.map((function(e){return{fileID:e.fileID,tempFileURL:e.tempFileURL}}))};throw new ve({code:"GET_TEMP_FILE_URL_FAILED",message:"获取临时文件链接失败"})}))}}]),e}(),Xt={init:function(e){var t=new Gt(e),r={signInAnonymously:function(){return Promise.resolve()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return r},t.customAuth=t.auth,t}},Kt=E((function(e,t){e.exports=O.enc.Hex}));function $t(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function Yt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.data,n=t.functionName,i=t.method,o=t.headers,a=t.signHeaderKeys,s=void 0===a?[]:a,c=t.config,f=String(Date.now()),l=$t(),d=Object.assign({},o,{"x-from-app-id":c.spaceAppId,"x-from-env-id":c.spaceId,"x-to-env-id":c.spaceId,"x-from-instance-id":f,"x-from-function-name":n,"x-client-timestamp":f,"x-alipay-source":"client","x-request-id":l,"x-alipay-callid":l,"x-trace-id":l}),h=["x-from-app-id","x-from-env-id","x-to-env-id","x-from-instance-id","x-from-function-name","x-client-timestamp"].concat(s),p=e.split("?")||[],g=(0,u.default)(p,2),y=g[0],v=void 0===y?"":y,b=g[1],m=void 0===b?"":b,_=function(e){var t="HMAC-SHA256",r=e.signedHeaders.join(";"),n=e.signedHeaders.map((function(t){return"".concat(t.toLowerCase(),":").concat(e.headers[t],"\n")})).join(""),i=De(e.body).toString(Kt),o="".concat(e.method.toUpperCase(),"\n").concat(e.path,"\n").concat(e.query,"\n").concat(n,"\n").concat(r,"\n").concat(i,"\n"),a=De(o).toString(Kt),s="".concat(t,"\n").concat(e.timestamp,"\n").concat(a,"\n"),u=Ne(s,e.secretKey).toString(Kt);return"".concat(t," Credential=").concat(e.secretId,", SignedHeaders=").concat(r,", Signature=").concat(u)}({path:v,query:m,method:i,headers:d,timestamp:f,body:JSON.stringify(r),secretId:c.accessKey,secretKey:c.secretKey,signedHeaders:h.sort()});return{url:"".concat(c.endpoint).concat(e),headers:Object.assign({},d,{Authorization:_})}}function Zt(e){var t=e.url,r=e.data,n=e.method,i=void 0===n?"POST":n,o=e.headers,a=void 0===o?{}:o,s=e.timeout;return new Promise((function(e,n){_e.request({url:t,method:i,data:"object"==(0,c.default)(r)?JSON.stringify(r):r,header:a,dataType:"json",timeout:s,complete:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=a["x-trace-id"]||"";if(!t.statusCode||t.statusCode>=400){var i=t.data||{},o=i.message,s=i.errMsg,u=i.trace_id;return n(new ve({code:"SYS_ERR",message:o||s||"request:fail",requestId:u||r}))}e({status:t.statusCode,data:t.data,headers:t.header,requestId:r})}})}))}function Jt(e,t){var r=e.path,n=e.data,i=e.method,o=void 0===i?"GET":i,a=Yt(r,{functionName:"",data:n,method:o,headers:{"x-alipay-cloud-mode":"oss","x-data-api-type":"oss","x-expire-timestamp":Date.now()+6e4},signHeaderKeys:["x-data-api-type","x-expire-timestamp"],config:t}),s=a.url,u=a.headers;return Zt({url:s,data:n,method:o,headers:u}).then((function(e){var t=e.data||{};if(!t.success)throw new ve({code:e.errCode,message:e.errMsg,requestId:e.requestId});return t.data||{}})).catch((function(e){throw new ve({code:e.errCode,message:e.errMsg,requestId:e.requestId})}))}function Qt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.trim().replace(/^cloud:\/\//,""),r=t.indexOf("/");if(r<=0)throw new ve({code:"INVALID_PARAM",message:"fileID不合法"});var n=t.substring(0,r),i=t.substring(r+1);return n!==this.config.spaceId&&console.warn("file ".concat(e," does not belong to env ").concat(this.config.spaceId)),i}function er(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"cloud://".concat(this.config.spaceId,"/").concat(e.replace(/^\/+/,""))}var tr=function(){function e(t){(0,v.default)(this,e),this.config=t}return(0,b.default)(e,[{key:"signedURL",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r="/ws/function/".concat(e),n=this.config.wsEndpoint.replace(/^ws(s)?:\/\//,""),i=Object.assign({},t,{accessKeyId:this.config.accessKey,signatureNonce:$t(),timestamp:""+Date.now()}),o=[r,["accessKeyId","authorization","signatureNonce","timestamp"].sort().map((function(e){return i[e]?"".concat(e,"=").concat(i[e]):null})).filter(Boolean).join("&"),"host:".concat(n)].join("\n"),a=["HMAC-SHA256",De(o).toString(Kt)].join("\n"),s=Ne(a,this.config.secretKey).toString(Kt),u=Object.keys(i).map((function(e){return"".concat(e,"=").concat(encodeURIComponent(i[e]))})).join("&");return"".concat(this.config.wsEndpoint).concat(r,"?").concat(u,"&signature=").concat(s)}}]),e}(),rr=function(){function e(t){if((0,v.default)(this,e),["spaceId","spaceAppId","accessKey","secretKey"].forEach((function(e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new Error("".concat(e," required"))})),t.endpoint){if("string"!=typeof t.endpoint)throw new Error("endpoint must be string");if(!/^https:\/\//.test(t.endpoint))throw new Error("endpoint must start with https://");t.endpoint=t.endpoint.replace(/\/$/,"")}this.config=Object.assign({},t,{endpoint:t.endpoint||"https://".concat(t.spaceId,".api-hz.cloudbasefunction.cn"),wsEndpoint:t.wsEndpoint||"wss://".concat(t.spaceId,".api-hz.cloudbasefunction.cn")}),this._websocket=new tr(this.config)}return(0,b.default)(e,[{key:"callFunction",value:function(e){return function(e,t){var r=e.name,n=e.data,i=e.async,o=void 0!==i&&i,a=e.timeout,s="POST",u={"x-to-function-name":r};o&&(u["x-function-invoke-type"]="async");var c=Yt("/functions/invokeFunction",{functionName:r,data:n,method:s,headers:u,signHeaderKeys:["x-to-function-name"],config:t}),f=c.url,l=c.headers;return Zt({url:f,data:n,method:s,headers:l,timeout:a}).then((function(e){var t=0;if(o){var r=e.data||{};t="200"===r.errCode?0:r.errCode,e.data=r.data||{},e.errMsg=r.errMsg}if(0!==t)throw new ve({code:t,message:e.errMsg,requestId:e.requestId});return{errCode:t,success:0===t,requestId:e.requestId,result:e.data}})).catch((function(e){throw new ve({code:e.errCode,message:e.errMsg,requestId:e.requestId})}))}(e,this.config)}},{key:"uploadFileToOSS",value:function(e){var t=e.url,r=e.filePath,n=e.fileType,i=e.formData,o=e.onUploadProgress;return new Promise((function(e,a){var s=_e.uploadFile({url:t,filePath:r,fileType:n,formData:i,name:"file",success:function(t){t&&t.statusCode<400?e(t):a(new ve({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail:function(e){a(new ve({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof o&&s&&"function"==typeof s.onProgressUpdate&&s.onProgressUpdate((function(e){o({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}},{key:"uploadFile",value:function(){var e=(0,l.default)(a.default.mark((function e(t){var r,n,i,o,s,u,c,f,l,d,h;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=t.filePath,n=t.cloudPath,i=void 0===n?"":n,o=t.fileType,s=void 0===o?"image":o,u=t.onUploadProgress,"string"===L(i)){e.next=3;break}throw new ve({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});case 3:if(i=i.trim()){e.next=5;break}throw new ve({code:"INVALID_PARAM",message:"cloudPath不可为空"});case 5:if(!/:\/\//.test(i)){e.next=7;break}throw new ve({code:"INVALID_PARAM",message:"cloudPath不合法"});case 7:return e.next=9,Jt({path:"/".concat(i.replace(/^\//,""),"?post_url")},this.config);case 9:return c=e.sent,f=c.file_id,l=c.upload_url,d=c.form_data,h=d&&d.reduce((function(e,t){return e[t.key]=t.value,e}),{}),e.abrupt("return",this.uploadFileToOSS({url:l,filePath:r,fileType:s,formData:h,onUploadProgress:u}).then((function(){return{fileID:f}})));case 15:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getTempFileURL",value:function(){var e=(0,l.default)(a.default.mark((function e(t){var r,n=this;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=t.fileList,e.abrupt("return",new Promise((function(e,t){(!r||r.length<0)&&e({code:"INVALID_PARAM",message:"fileList不能为空数组"}),r.length>50&&e({code:"INVALID_PARAM",message:"fileList数组长度不能超过50"});var i,o=[],a=_(r);try{for(a.s();!(i=a.n()).done;){var s=i.value,u=void 0;"string"!==L(s)&&e({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});try{u=Qt.call(n,s)}catch(e){console.warn(e.errCode,e.errMsg),u=s}o.push({file_id:u,expire:600})}}catch(c){a.e(c)}finally{a.f()}Jt({path:"/?download_url",data:{file_list:o},method:"POST"},n.config).then((function(t){var r=t.file_list,i=void 0===r?[]:r;e({fileList:i.map((function(e){return{fileID:er.call(n,e.file_id),tempFileURL:e.download_url}}))})})).catch((function(e){return t(e)}))})));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},{key:"connectWebSocket",value:function(){var e=(0,l.default)(a.default.mark((function e(t){var r,n;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=t.name,n=t.query,e.abrupt("return",_e.connectSocket({url:this._websocket.signedURL(r,n),complete:function(){}}));case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()}]),e}(),nr={init:function(e){e.provider="alipay";var t=new rr(e);return t.auth=function(){return{signInAnonymously:function(){return Promise.resolve()},getLoginState:function(){return Promise.resolve(!0)}}},t}};function ir(e){var t,r=e.data;t=Ee();var n=JSON.parse(JSON.stringify(r||{}));if(Object.assign(n,{clientInfo:t}),!n.uniIdToken){var i=we(),o=i.token;o&&(n.uniIdToken=o)}return n}var or=[{rule:/fc_function_not_found|FUNCTION_NOT_FOUND/,content:",云函数[{functionName}]在云端不存在,请检查此云函数名称是否正确以及该云函数是否已上传到服务空间",mode:"append"}],ar=/[\\^$.*+?()[\]{}|]/g,sr=RegExp(ar.source);function ur(e,t,r){return e.replace(new RegExp((n=t)&&sr.test(n)?n.replace(ar,"\\$&"):n,"g"),r);var n}var cr={NONE:"none",REQUEST:"request",RESPONSE:"response",BOTH:"both"},fr="_globalUniCloudStatus",lr="_globalUniCloudSecureNetworkCache__{spaceId}";var dr;dr="0123456789abcdef";var hr="uni-secure-network",pr={SYSTEM_ERROR:{code:2e4,message:"System error"},APP_INFO_INVALID:{code:20101,message:"Invalid client"},GET_ENCRYPT_KEY_FAILED:{code:20102,message:"Get encrypt key failed"}};function gr(e){var t=e||{},r=t.errSubject,n=t.subject,i=t.errCode,o=t.errMsg,a=t.code,s=t.message,u=t.cause;return new ve({subject:r||n||hr,code:i||a||pr.SYSTEM_ERROR.code,message:o||s,cause:u})}var yr;function vr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.secretType;return t===cr.REQUEST||t===cr.RESPONSE||t===cr.BOTH}function br(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,r=e.data,n=void 0===r?{}:r;return"app"===K&&"DCloud-clientDB"===t&&"encryption"===n.redirectTo&&"getAppClientKey"===n.action}function mr(e){e.functionName,e.result,e.logPvd}function _r(e){var t=e.callFunction,r=function(r){var n=this,i=r.name;r.data=ir.call(e,{data:r.data});var o={aliyun:"aliyun",tencent:"tcb",tcb:"tcb",alipay:"alipay",dcloud:"dcloud"}[this.config.provider],a=vr(r),s=br(r),u=a||s;return t.call(this,r).then((function(e){return e.errCode=0,!u&&mr.call(n,{functionName:i,result:e,logPvd:o}),Promise.resolve(e)}),(function(e){return!u&&mr.call(n,{functionName:i,result:e,logPvd:o}),e&&e.message&&(e.message=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.message,r=void 0===t?"":t,n=e.extraInfo,i=void 0===n?{}:n,o=e.formatter,a=void 0===o?[]:o,s=0;s<a.length;s++){var u=a[s],c=u.rule,f=u.content,l=u.mode,d=r.match(c);if(d){for(var h=f,p=1;p<d.length;p++)h=ur(h,"{$".concat(p,"}"),d[p]);for(var g in i)h=ur(h,"{".concat(g,"}"),i[g]);return"replace"===l?h:r+h}}return r}({message:"[".concat(r.name,"]: ").concat(e.message),formatter:or,extraInfo:{functionName:i}})),Promise.reject(e)}))};e.callFunction=function(t){var n,i,o=e.config,a=o.provider,s=o.spaceId,u=t.name;return t.data=t.data||{},n=r,n=n.bind(e),i=br(t)?r.call(e,t):function(e){var t=e.name,r=e.data,n=void 0===r?{}:r;return"mp-weixin"===K&&"uni-id-co"===t&&"secureNetworkHandshakeByWeixin"===n.method}(t)?n.call(e,t):vr(t)?new yr({secretType:t.secretType,uniCloudIns:e}).wrapEncryptDataCallFunction(r.bind(e))(t):function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.provider,r=e.spaceId,n=e.functionName,i=Se(),o=i.appId,a=i.uniPlatform,s=i.osName,u=a;"app"===a&&(u=s);var c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.provider,r=e.spaceId,n=X;if(!n)return{};t=function(e){return"tencent"===e?"tcb":e}(t);var i=n.find((function(e){return e.provider===t&&e.spaceId===r}));return i&&i.config}({provider:t,spaceId:r});if(!c||!c.accessControl||!c.accessControl.enable)return!1;var f=c.accessControl.function||{},l=Object.keys(f);if(0===l.length)return!0;var d=function(e,t){for(var r,n,i,o=0;o<e.length;o++){var a=e[o];a!==t?"*"!==a?a.split(",").map((function(e){return e.trim()})).indexOf(t)>-1&&(n=a):i=a:r=a}return r||n||i}(l,n);if(!d)return!1;if((f[d]||[]).find((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.appId===o&&(e.platform||"").toLowerCase()===u.toLowerCase()})))return!0;throw console.error("此应用[appId: ".concat(o,", platform: ").concat(u,"]不在云端配置的允许访问的应用列表内,参考:https://uniapp.dcloud.net.cn/uniCloud/secure-network.html#verify-client")),gr(pr.APP_INFO_INVALID)}({provider:a,spaceId:s,functionName:u})?new yr({secretType:t.secretType,uniCloudIns:e}).wrapVerifyClientCallFunction(r.bind(e))(t):n(t),Object.defineProperty(i,"result",{get:function(){return console.warn("当前返回结果为Promise类型,不可直接访问其result属性,详情请参考:https://uniapp.dcloud.net.cn/uniCloud/faq?id=promise"),{}}}),i.then((function(e){return"undefined"!=typeof UTSJSONObject&&(e.result=new UTSJSONObject(e.result)),e}))}}yr="mp-weixin"!==K&&"app"!==K?function(){return(0,b.default)((function e(){throw(0,v.default)(this,e),gr({message:"Platform ".concat(K," is not supported by secure network")})}))}():function(){return(0,b.default)((function e(){throw(0,v.default)(this,e),gr({message:"Platform ".concat(K," is not enabled, please check whether secure network module is enabled in your manifest.json")})}))}();var wr=Symbol("CLIENT_DB_INTERNAL");function Ar(e,t){return e.then="DoNotReturnProxyWithAFunctionNamedThen",e._internalType=wr,e.inspect=null,e.__ob__=void 0,new Proxy(e,{get:function(e,r,n){if("_uniClient"===r)return null;if("symbol"==(0,c.default)(r))return e[r];if(r in e||"string"!=typeof r){var i=e[r];return"function"==typeof i?i.bind(e):i}return t.get(e,r,n)}})}function Sr(e){return{on:function(t,r){e[t]=e[t]||[],e[t].indexOf(r)>-1||e[t].push(r)},off:function(t,r){e[t]=e[t]||[];var n=e[t].indexOf(r);-1!==n&&e[t].splice(n,1)}}}var xr=["db.Geo","db.command","command.aggregate"];function Er(e,t){return xr.indexOf("".concat(e,".").concat(t))>-1}function Cr(e){switch(L(e)){case"array":return e.map((function(e){return Cr(e)}));case"object":return e._internalType===wr||Object.keys(e).forEach((function(t){e[t]=Cr(e[t])})),e;case"regexp":return{$regexp:{source:e.source,flags:e.flags}};case"date":return{$date:e.toISOString()};default:return e}}function Or(e){return e&&e.content&&e.content.$method}var Ir=function(){function e(t,r,n){(0,v.default)(this,e),this.content=t,this.prevStage=r||null,this.udb=null,this._database=n}return(0,b.default)(e,[{key:"toJSON",value:function(){for(var e=this,t=[e.content];e.prevStage;)e=e.prevStage,t.push(e.content);return{$db:t.reverse().map((function(e){return{$method:e.$method,$param:Cr(e.$param)}}))}}},{key:"toString",value:function(){return JSON.stringify(this.toJSON())}},{key:"getAction",value:function(){var e=this.toJSON().$db.find((function(e){return"action"===e.$method}));return e&&e.$param&&e.$param[0]}},{key:"getCommand",value:function(){return{$db:this.toJSON().$db.filter((function(e){return"action"!==e.$method}))}}},{key:"isAggregate",get:function(){for(var e=this;e;){var t=Or(e),r=Or(e.prevStage);if("aggregate"===t&&"collection"===r||"pipeline"===t)return!0;e=e.prevStage}return!1}},{key:"isCommand",get:function(){for(var e=this;e;){if("command"===Or(e))return!0;e=e.prevStage}return!1}},{key:"isAggregateCommand",get:function(){for(var e=this;e;){var t=Or(e),r=Or(e.prevStage);if("aggregate"===t&&"command"===r)return!0;e=e.prevStage}return!1}},{key:"getNextStageFn",value:function(e){var t=this;return function(){return Tr({$method:e,$param:Cr(Array.from(arguments))},t,t._database)}}},{key:"count",get:function(){return this.isAggregate?this.getNextStageFn("count"):function(){return this._send("count",Array.from(arguments))}}},{key:"remove",get:function(){return this.isCommand?this.getNextStageFn("remove"):function(){return this._send("remove",Array.from(arguments))}}},{key:"get",value:function(){return this._send("get",Array.from(arguments))}},{key:"add",get:function(){return this.isCommand?this.getNextStageFn("add"):function(){return this._send("add",Array.from(arguments))}}},{key:"update",value:function(){return this._send("update",Array.from(arguments))}},{key:"end",value:function(){return this._send("end",Array.from(arguments))}},{key:"set",get:function(){return this.isCommand?this.getNextStageFn("set"):function(){throw new Error("JQL禁止使用set方法")}}},{key:"_send",value:function(e,t){var r=this.getAction(),n=this.getCommand();return n.$db.push({$method:e,$param:Cr(t)}),this._database._callCloudFunction({action:r,command:n})}}]),e}();function Tr(e,t,r){return Ar(new Ir(e,t,r),{get:function(e,t){var n="db";return e&&e.content&&(n=e.content.$method),Er(n,t)?Tr({$method:t},e,r):function(){return Tr({$method:t,$param:Cr(Array.from(arguments))},e,r)}}})}function Pr(e){var t=e.path,r=e.method;return function(){function e(){(0,v.default)(this,e),this.param=Array.from(arguments)}return(0,b.default)(e,[{key:"toJSON",value:function(){return{$newDb:[].concat((0,f.default)(t.map((function(e){return{$method:e}}))),[{$method:r,$param:this.param}])}}},{key:"toString",value:function(){return JSON.stringify(this.toJSON())}}]),e}()}var Mr=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.uniClient,n=void 0===r?{}:r,i=t.isJQL,o=void 0!==i&&i;(0,v.default)(this,e),this._uniClient=n,this._authCallBacks={},this._dbCallBacks={},n._isDefault&&(this._dbCallBacks=J("_globalUniCloudDatabaseCallback")),o||(this.auth=Sr(this._authCallBacks)),this._isJQL=o,Object.assign(this,Sr(this._dbCallBacks)),this.env=Ar({},{get:function(e,t){return{$env:t}}}),this.Geo=Ar({},{get:function(e,t){return Pr({path:["Geo"],method:t})}}),this.serverDate=Pr({path:[],method:"serverDate"}),this.RegExp=Pr({path:[],method:"RegExp"})}return(0,b.default)(e,[{key:"getCloudEnv",value:function(e){if("string"!=typeof e||!e.trim())throw new Error("getCloudEnv参数错误");return{$env:e.replace("$cloudEnv_","")}}},{key:"_callback",value:function(e,t){var r=this._dbCallBacks;r[e]&&r[e].forEach((function(e){e.apply(void 0,(0,f.default)(t))}))}},{key:"_callbackAuth",value:function(e,t){var r=this._authCallBacks;r[e]&&r[e].forEach((function(e){e.apply(void 0,(0,f.default)(t))}))}},{key:"multiSend",value:function(){var e=Array.from(arguments),t=e.map((function(e){var t=e.getAction(),r=e.getCommand();if("getTemp"!==r.$db[r.$db.length-1].$method)throw new Error("multiSend只支持子命令内使用getTemp");return{action:t,command:r}}));return this._callCloudFunction({multiCommand:t,queryList:e})}}]),e}();function kr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Ar(new e(t),{get:function(e,t){return Er("db",t)?Tr({$method:t},null,e):function(){return Tr({$method:t,$param:Cr(Array.from(arguments))},null,e)}}})}var Rr=function(e){(0,h.default)(r,e);var t=x(r);function r(){return(0,v.default)(this,r),t.apply(this,arguments)}return(0,b.default)(r,[{key:"_parseResult",value:function(e){return this._isJQL?e.result:e}},{key:"_callCloudFunction",value:function(e){var t=this,r=e.action,n=e.command,i=e.multiCommand,o=e.queryList;function a(e,t){if(i&&o)for(var r=0;r<o.length;r++){var n=o[r];n.udb&&"function"==typeof n.udb.setResult&&(t?n.udb.setResult(t):n.udb.setResult(e.result.dataList[r]))}}var s=this,u=this._isJQL?"databaseForJQL":"database";function c(e){return s._callback("error",[e]),ne(ie(u,"fail"),e).then((function(){return ne(ie(u,"complete"),e)})).then((function(){return a(null,e),de(se.RESPONSE,{type:ue.CLIENT_DB,content:e}),Promise.reject(e)}))}var f=ne(ie(u,"invoke")),l=this._uniClient;return f.then((function(){return l.callFunction({name:"DCloud-clientDB",type:R.CLIENT_DB,data:{action:r,command:n,multiCommand:i}})})).then((function(e){var r=e.result,n=r.code,i=r.message,o=r.token,f=r.tokenExpired,l=r.systemInfo,d=void 0===l?[]:l;if(d)for(var h=0;h<d.length;h++){var p=d[h],g=p.level,y=p.message,v=p.detail,b="[System Info]"+y;v&&(b="".concat(b,"\n详细信息:").concat(v)),(console["app"===K&&"warn"===g?"error":g]||console.log)(b)}if(n)return c(new ve({code:n,message:i,requestId:e.requestId}));e.result.errCode=e.result.errCode||e.result.code,e.result.errMsg=e.result.errMsg||e.result.message,o&&f&&(Ae({token:o,tokenExpired:f}),t._callbackAuth("refreshToken",[{token:o,tokenExpired:f}]),t._callback("refreshToken",[{token:o,tokenExpired:f}]),de(se.REFRESH_TOKEN,{token:o,tokenExpired:f}));for(var m=[{prop:"affectedDocs",tips:"affectedDocs不再推荐使用,请使用inserted/deleted/updated/data.length替代"},{prop:"code",tips:"code不再推荐使用,请使用errCode替代"},{prop:"message",tips:"message不再推荐使用,请使用errMsg替代"}],_=function(t){var r=m[t],n=r.prop,i=r.tips;if(n in e.result){var o=e.result[n];Object.defineProperty(e.result,n,{get:function(){return console.warn(i),o}})}},w=0;w<m.length;w++)_(w);return function(e){return ne(ie(u,"success"),e).then((function(){return ne(ie(u,"complete"),e)})).then((function(){a(e,null);var t=s._parseResult(e);return de(se.RESPONSE,{type:ue.CLIENT_DB,content:t}),Promise.resolve(t)}))}(e)}),(function(e){return/fc_function_not_found|FUNCTION_NOT_FOUND/g.test(e.message)&&console.warn("clientDB未初始化,请在web控制台保存一次schema以开启clientDB"),c(new ve({code:e.code||"SYSTEM_ERROR",message:e.message,requestId:e.requestId}))}))}}]),r}(Mr),Dr="token无效,跳转登录页面",Nr="token过期,跳转登录页面",Br={TOKEN_INVALID_TOKEN_EXPIRED:Nr,TOKEN_INVALID_INVALID_CLIENTID:Dr,TOKEN_INVALID:Dr,TOKEN_INVALID_WRONG_TOKEN:Dr,TOKEN_INVALID_ANONYMOUS_USER:Dr},Lr={"uni-id-token-expired":Nr,"uni-id-check-token-failed":Dr,"uni-id-token-not-exist":Dr,"uni-id-check-device-feature-failed":Dr};function jr(e,t){var r="";return r=e?"".concat(e,"/").concat(t):t,r.replace(/^\//,"")}function Fr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=[],n=[];return e.forEach((function(e){!0===e.needLogin?r.push(jr(t,e.path)):!1===e.needLogin&&n.push(jr(t,e.path))})),{needLoginPage:r,notNeedLoginPage:n}}function Ur(e){return e.split("?")[0].replace(/^\//,"")}function zr(){return function(e){var t=e&&e.$page&&e.$page.fullPath||"";return t?("/"!==t.charAt(0)&&(t="/"+t),t):t}(function(){var e=getCurrentPages();return e[e.length-1]}())}function Hr(){return Ur(zr())}function qr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return!1;if(!(t&&t.list&&t.list.length))return!1;var r=t.list,n=Ur(e);return r.some((function(e){return e.pagePath===n}))}var Vr,Wr=!!m.default.uniIdRouter,Gr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m.default,t=e.pages,r=void 0===t?[]:t,n=e.subPackages,i=void 0===n?[]:n,o=e.uniIdRouter,a=void 0===o?{}:o,s=e.tabBar,u=void 0===s?{}:s,c=a.loginPage,l=a.needLogin,d=void 0===l?[]:l,h=a.resToLogin,p=void 0===h||h,g=Fr(r),y=g.needLoginPage,v=g.notNeedLoginPage,b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[],r=[];return e.forEach((function(e){var n=e.root,i=e.pages,o=void 0===i?[]:i,a=Fr(o,n),s=a.needLoginPage,u=a.notNeedLoginPage;t.push.apply(t,(0,f.default)(s)),r.push.apply(r,(0,f.default)(u))})),{needLoginPage:t,notNeedLoginPage:r}}(i),_=b.needLoginPage,w=b.notNeedLoginPage;return{loginPage:c,routerNeedLogin:d,resToLogin:p,needLoginPage:[].concat((0,f.default)(y),(0,f.default)(_)),notNeedLoginPage:[].concat((0,f.default)(v),(0,f.default)(w)),loginPageInTabBar:qr(c,u)}}(),Xr=Gr.loginPage,Kr=Gr.routerNeedLogin,$r=Gr.resToLogin,Yr=Gr.needLoginPage,Zr=Gr.notNeedLoginPage,Jr=Gr.loginPageInTabBar;if(Yr.indexOf(Xr)>-1)throw new Error("Login page [".concat(Xr,'] should not be "needLogin", please check your pages.json'));function Qr(e){var t=Hr();if("/"===e.charAt(0))return e;var r=e.split("?"),n=(0,u.default)(r,2),i=n[0],o=n[1],a=i.replace(/^\//,"").split("/"),s=t.split("/");s.pop();for(var c=0;c<a.length;c++){var f=a[c];".."===f?s.pop():"."!==f&&s.push(f)}return""===s[0]&&s.shift(),"/"+s.join("/")+(o?"?"+o:"")}function en(e){var t=Ur(Qr(e));return!(Zr.indexOf(t)>-1)&&(Yr.indexOf(t)>-1||Kr.some((function(t){return function(e,t){return new RegExp(t).test(e)}(e,t)})))}function tn(e){var t=e.redirect,r=Ur(t),n=Ur(Xr);return Hr()!==n&&r!==n}function rn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.api,r=e.redirect;if(r&&tn({redirect:r})){var i=function(e,t){return"/"!==e.charAt(0)&&(e="/"+e),t?e.indexOf("?")>-1?e+"&uniIdRedirectUrl=".concat(encodeURIComponent(t)):e+"?uniIdRedirectUrl=".concat(encodeURIComponent(t)):e}(Xr,r);Jr?"navigateTo"!==t&&"redirectTo"!==t||(t="switchTab"):"switchTab"===t&&(t="navigateTo");var o={navigateTo:n.navigateTo,redirectTo:n.redirectTo,switchTab:n.switchTab,reLaunch:n.reLaunch};setTimeout((function(){o[t]({url:i})}),0)}}function nn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.url,r={abortLoginPageJump:!1,autoToLoginPage:!1},n=function(){var e,t=we(),r=t.token,n=t.tokenExpired;if(r){if(n<Date.now()){var i="uni-id-token-expired";e={errCode:i,errMsg:Lr[i]}}}else{var o="uni-id-check-token-failed";e={errCode:o,errMsg:Lr[o]}}return e}();if(en(t)&&n){if(n.uniIdRedirectUrl=t,ce(se.NEED_LOGIN).length>0)return setTimeout((function(){de(se.NEED_LOGIN,n)}),0),r.abortLoginPageJump=!0,r;r.autoToLoginPage=!0}return r}function on(){!function(){var e=zr(),t=nn({url:e}),r=t.abortLoginPageJump,n=t.autoToLoginPage;r||n&&rn({api:"redirectTo",redirect:e})}();for(var e=["navigateTo","redirectTo","reLaunch","switchTab"],t=function(t){var r=e[t];n.addInterceptor(r,{invoke:function(e){var t=nn({url:e.url}),n=t.abortLoginPageJump,i=t.autoToLoginPage;return n?e:i?(rn({api:r,redirect:Qr(e.url)}),!1):e}})},r=0;r<e.length;r++)t(r)}function an(){this.onResponse((function(e){var t=e.type,r=e.content,n=!1;switch(t){case"cloudobject":n=function(e){if("object"!=(0,c.default)(e))return!1;var t=e||{},r=t.errCode;return r in Lr}(r);break;case"clientdb":n=function(e){if("object"!=(0,c.default)(e))return!1;var t=e||{},r=t.errCode;return r in Br}(r)}n&&function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=ce(se.NEED_LOGIN);ge().then((function(){var r=zr();if(r&&tn({redirect:r}))return t.length>0?de(se.NEED_LOGIN,Object.assign({uniIdRedirectUrl:r},e)):void(Xr&&rn({api:"navigateTo",redirect:r}))}))}(r)}))}function sn(e){!function(e){e.onResponse=function(e){fe(se.RESPONSE,e)},e.offResponse=function(e){le(se.RESPONSE,e)}}(e),function(e){e.onNeedLogin=function(e){fe(se.NEED_LOGIN,e)},e.offNeedLogin=function(e){le(se.NEED_LOGIN,e)},Wr&&(J(fr).needLoginInit||(J(fr).needLoginInit=!0,ge().then((function(){on.call(e)})),$r&&an.call(e)))}(e),function(e){e.onRefreshToken=function(e){fe(se.REFRESH_TOKEN,e)},e.offRefreshToken=function(e){le(se.REFRESH_TOKEN,e)}}(e)}var un="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",cn=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function fn(){var e,t,r=we().token||"",n=r.split(".");if(!r||3!==n.length)return{uid:null,role:[],permission:[],tokenExpired:0};try{e=JSON.parse((t=n[1],decodeURIComponent(Vr(t).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))))}catch(r){throw new Error("获取当前用户信息出错,详细错误信息为:"+r.message)}return e.tokenExpired=1e3*e.exp,delete e.exp,delete e.iat,e}Vr="function"!=typeof atob?function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!cn.test(e))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var t;e+="==".slice(2-(3&e.length));for(var r,n,i="",o=0;o<e.length;)t=un.indexOf(e.charAt(o++))<<18|un.indexOf(e.charAt(o++))<<12|(r=un.indexOf(e.charAt(o++)))<<6|(n=un.indexOf(e.charAt(o++))),i+=64===r?String.fromCharCode(t>>16&255):64===n?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return i}:atob;var ln=E((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r="chooseAndUploadFile:ok",o="chooseAndUploadFile:fail";function a(e,t){return e.tempFiles.forEach((function(e,r){e.name||(e.name=e.path.substring(e.path.lastIndexOf("/")+1)),t&&(e.fileType=t),e.cloudPath=Date.now()+"_"+r+e.name.substring(e.name.lastIndexOf("."))})),e.tempFilePaths||(e.tempFilePaths=e.tempFiles.map((function(e){return e.path}))),e}function s(e,t,n){var i=n.onChooseFile,o=n.onUploadProgress;return t.then((function(e){if(i){var t=i(e);if(void 0!==t)return Promise.resolve(t).then((function(t){return void 0===t?e:t}))}return e})).then((function(t){return!1===t?{errMsg:r,tempFilePaths:[],tempFiles:[]}:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,i=arguments.length>3?arguments[3]:void 0;(t=Object.assign({},t)).errMsg=r;var o=t.tempFiles,a=o.length,s=0;return new Promise((function(r){for(;s<n;)u();function u(){var n=s++;if(n>=a)!o.find((function(e){return!e.url&&!e.errMsg}))&&r(t);else{var c=o[n];e.uploadFile({provider:c.provider,filePath:c.path,cloudPath:c.cloudPath,fileType:c.fileType,cloudPathAsRealPath:c.cloudPathAsRealPath,onUploadProgress:function(e){e.index=n,e.tempFile=c,e.tempFilePath=c.path,i&&i(e)}}).then((function(e){c.url=e.fileID,n<a&&u()})).catch((function(e){c.errMsg=e.errMsg||e.message,n<a&&u()}))}}}))}(e,t,5,o)}))}t.initChooseAndUploadFile=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{type:"all"};return"image"===t.type?s(e,function(e){var t=e.count,r=e.sizeType,i=e.sourceType,s=void 0===i?["album","camera"]:i,u=e.extension;return new Promise((function(e,i){n.chooseImage({count:t,sizeType:r,sourceType:s,extension:u,success:function(t){e(a(t,"image"))},fail:function(e){i({errMsg:e.errMsg.replace("chooseImage:fail",o)})}})}))}(t),t):"video"===t.type?s(e,function(e){var t=e.camera,r=e.compressed,i=e.maxDuration,s=e.sourceType,u=void 0===s?["album","camera"]:s,c=e.extension;return new Promise((function(e,s){n.chooseVideo({camera:t,compressed:r,maxDuration:i,sourceType:u,extension:c,success:function(t){var r=t.tempFilePath,n=t.duration,i=t.size,o=t.height,s=t.width;e(a({errMsg:"chooseVideo:ok",tempFilePaths:[r],tempFiles:[{name:t.tempFile&&t.tempFile.name||"",path:r,size:i,type:t.tempFile&&t.tempFile.type||"",width:s,height:o,duration:n,fileType:"video",cloudPath:""}]},"video"))},fail:function(e){s({errMsg:e.errMsg.replace("chooseVideo:fail",o)})}})}))}(t),t):s(e,function(e){var t=e.count,r=e.extension;return new Promise((function(e,s){var u=n.chooseFile;if("undefined"!=typeof i&&"function"==typeof i.chooseMessageFile&&(u=i.chooseMessageFile),"function"!=typeof u)return s({errMsg:o+" 请指定 type 类型,该平台仅支持选择 image 或 video。"});u({type:"all",count:t,extension:r,success:function(t){e(a(t))},fail:function(e){s({errMsg:e.errMsg.replace("chooseFile:fail",o)})}})}))}(t),t)}}})),dn=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(ln),hn={auto:"auto",onready:"onready",manual:"manual"};function pn(e){return{props:{localdata:{type:Array,default:function(){return[]}},options:{type:[Object,Array],default:function(){return{}}},spaceInfo:{type:Object,default:function(){return{}}},collection:{type:[String,Array],default:""},action:{type:String,default:""},field:{type:String,default:""},orderby:{type:String,default:""},where:{type:[String,Object],default:""},pageData:{type:String,default:"add"},pageCurrent:{type:Number,default:1},pageSize:{type:Number,default:20},getcount:{type:[Boolean,String],default:!1},gettree:{type:[Boolean,String],default:!1},gettreepath:{type:[Boolean,String],default:!1},startwith:{type:String,default:""},limitlevel:{type:Number,default:10},groupby:{type:String,default:""},groupField:{type:String,default:""},distinct:{type:[Boolean,String],default:!1},foreignKey:{type:String,default:""},loadtime:{type:String,default:"auto"},manual:{type:Boolean,default:!1}},data:function(){return{mixinDatacomLoading:!1,mixinDatacomHasMore:!1,mixinDatacomResData:[],mixinDatacomErrorMessage:"",mixinDatacomPage:{},mixinDatacomError:null}},created:function(){var e=this;this.mixinDatacomPage={current:this.pageCurrent,size:this.pageSize,count:0},this.$watch((function(){var t=[];return["pageCurrent","pageSize","localdata","collection","action","field","orderby","where","getont","getcount","gettree","groupby","groupField","distinct"].forEach((function(r){t.push(e[r])})),t}),(function(t,r){if(e.loadtime!==hn.manual){for(var n=!1,i=[],o=2;o<t.length;o++)t[o]!==r[o]&&(i.push(t[o]),n=!0);t[0]!==r[0]&&(e.mixinDatacomPage.current=e.pageCurrent),e.mixinDatacomPage.size=e.pageSize,e.onMixinDatacomPropsChange(n,i)}}))},methods:{onMixinDatacomPropsChange:function(e,t){},mixinDatacomEasyGet:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.getone,n=void 0!==r&&r,i=t.success,o=t.fail;this.mixinDatacomLoading||(this.mixinDatacomLoading=!0,this.mixinDatacomErrorMessage="",this.mixinDatacomError=null,this.mixinDatacomGet().then((function(t){e.mixinDatacomLoading=!1;var r=t.result,o=r.data,a=r.count;e.getcount&&(e.mixinDatacomPage.count=a),e.mixinDatacomHasMore=o.length<e.pageSize;var s=n?o.length?o[0]:void 0:o;e.mixinDatacomResData=s,i&&i(s)})).catch((function(t){e.mixinDatacomLoading=!1,e.mixinDatacomErrorMessage=t,e.mixinDatacomError=t,o&&o(t)})))},mixinDatacomGet:function(){var t,r,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n=n||{},r="undefined"!=typeof __uniX&&__uniX?e.databaseForJQL(this.spaceInfo):e.database(this.spaceInfo);var i=n.action||this.action;i&&(r=r.action(i));var o=n.collection||this.collection;r=Array.isArray(o)?(t=r).collection.apply(t,(0,f.default)(o)):r.collection(o);var a=n.where||this.where;a&&Object.keys(a).length&&(r=r.where(a));var s=n.field||this.field;s&&(r=r.field(s));var u=n.foreignKey||this.foreignKey;u&&(r=r.foreignKey(u));var c=n.groupby||this.groupby;c&&(r=r.groupBy(c));var l=n.groupField||this.groupField;l&&(r=r.groupField(l)),!0===(void 0!==n.distinct?n.distinct:this.distinct)&&(r=r.distinct());var d=n.orderby||this.orderby;d&&(r=r.orderBy(d));var h=void 0!==n.pageCurrent?n.pageCurrent:this.mixinDatacomPage.current,p=void 0!==n.pageSize?n.pageSize:this.mixinDatacomPage.size,g=void 0!==n.getcount?n.getcount:this.getcount,y=void 0!==n.gettree?n.gettree:this.gettree,v=void 0!==n.gettreepath?n.gettreepath:this.gettreepath,b={getCount:g},m={limitLevel:void 0!==n.limitlevel?n.limitlevel:this.limitlevel,startWith:void 0!==n.startwith?n.startwith:this.startwith};return y&&(b.getTree=m),v&&(b.getTreePath=m),r=r.skip(p*(h-1)).limit(p).get(b),r}}}}function gn(e){return J(lr.replace("{spaceId}",e.config.spaceId))}function yn(){return vn.apply(this,arguments)}function vn(){return vn=(0,l.default)(a.default.mark((function e(){var t,r,i,o,s,u,c,f=arguments;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=f.length>0&&void 0!==f[0]?f[0]:{},r=t.openid,i=t.callLoginByWeixin,o=void 0!==i&&i,s=gn(this),"mp-weixin"===K){e.next=4;break}throw new Error("[SecureNetwork] API `initSecureNetworkByWeixin` is not supported on platform `".concat(K,"`"));case 4:if(!r||!o){e.next=6;break}throw new Error("[SecureNetwork] openid and callLoginByWeixin cannot be passed at the same time");case 6:if(!r){e.next=8;break}return e.abrupt("return",(s.mpWeixinOpenid=r,{}));case 8:return e.next=10,new Promise((function(e,t){n.login({success:function(t){e(t.code)},fail:function(e){t(new Error(e.errMsg))}})}));case 10:return u=e.sent,c=this.importObject("uni-id-co",{customUI:!0}),e.next=14,c.secureNetworkHandshakeByWeixin({code:u,callLoginByWeixin:o});case 14:return s.mpWeixinCode=u,e.abrupt("return",{code:u});case 16:case"end":return e.stop()}}),e,this)}))),vn.apply(this,arguments)}function bn(e){return mn.apply(this,arguments)}function mn(){return mn=(0,l.default)(a.default.mark((function e(t){var r;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=gn(this),e.abrupt("return",(r.initPromise||(r.initPromise=yn.call(this,t).then((function(e){return e})).catch((function(e){throw delete r.initPromise,e}))),r.initPromise));case 2:case"end":return e.stop()}}),e,this)}))),mn.apply(this,arguments)}function _n(e){!function(e){xe=e}(e)}function wn(e){var t={getSystemInfo:n.getSystemInfo,getPushClientId:n.getPushClientId};return function(r){return new Promise((function(n,i){t[e](S(S({},r),{},{success:function(e){n(e)},fail:function(e){i(e)}}))}))}}var An=function(e){(0,h.default)(r,e);var t=x(r);function r(){var e;return(0,v.default)(this,r),e=t.call(this),e._uniPushMessageCallback=e._receivePushMessage.bind((0,s.default)(e)),e._currentMessageId=-1,e._payloadQueue=[],e}return(0,b.default)(r,[{key:"init",value:function(){var e=this;return Promise.all([wn("getSystemInfo")(),wn("getPushClientId")()]).then((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=(0,u.default)(t,2),n=r[0];n=void 0===n?{}:n;var i=n.appId,o=r[1];o=void 0===o?{}:o;var a=o.cid;if(!i)throw new Error("Invalid appId, please check the manifest.json file");if(!a)throw new Error("Invalid push client id");e._appId=i,e._pushClientId=a,e._seqId=Date.now()+"-"+Math.floor(9e5*Math.random()+1e5),e.emit("open"),e._initMessageListener()}),(function(t){throw e.emit("error",t),e.close(),t}))}},{key:"open",value:function(){var e=(0,l.default)(a.default.mark((function e(){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.init());case 1:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"_isUniCloudSSE",value:function(e){if("receive"!==e.type)return!1;var t=e&&e.data&&e.data.payload;return!(!t||"UNI_CLOUD_SSE"!==t.channel||t.seqId!==this._seqId)}},{key:"_receivePushMessage",value:function(e){if(this._isUniCloudSSE(e)){var t=e&&e.data&&e.data.payload,r=t.action,n=t.messageId,i=t.message;this._payloadQueue.push({action:r,messageId:n,message:i}),this._consumMessage()}}},{key:"_consumMessage",value:function(){for(var e=this;;){var t=this._payloadQueue.find((function(t){return t.messageId===e._currentMessageId+1}));if(!t)break;this._currentMessageId++,this._parseMessagePayload(t)}}},{key:"_parseMessagePayload",value:function(e){var t=e.action,r=e.messageId,n=e.message;"end"===t?this._end({messageId:r,message:n}):"message"===t&&this._appendMessage({messageId:r,message:n})}},{key:"_appendMessage",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(e.messageId,e.message);this.emit("message",t)}},{key:"_end",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(e.messageId,e.message);this.emit("end",t),this.close()}},{key:"_initMessageListener",value:function(){n.onPushMessage(this._uniPushMessageCallback)}},{key:"_destroy",value:function(){n.offPushMessage(this._uniPushMessageCallback)}},{key:"toJSON",value:function(){return{appId:this._appId,pushClientId:this._pushClientId,seqId:this._seqId}}},{key:"close",value:function(){this._destroy(),this.emit("close")}}]),r}(V);var Sn={tcb:Ut,tencent:Ut,aliyun:Te,private:Xt,dcloud:Xt,alipay:nr},xn=new(function(){function e(){(0,v.default)(this,e)}return(0,b.default)(e,[{key:"init",value:function(e){var t={},r=Sn[e.provider];if(!r)throw new Error("未提供正确的provider参数");return t=r.init(e),function(e){e._initPromiseHub||(e._initPromiseHub=new q({createPromise:function(){var t=Promise.resolve();t=new Promise((function(e){setTimeout((function(){e()}),1)}));var r=e.auth();return t.then((function(){return r.getLoginState()})).then((function(e){return e?Promise.resolve():r.signInAnonymously()}))}}))}(t),_r(t),function(e){var t=e.uploadFile;e.uploadFile=function(e){return t.call(this,e)}}(t),function(e){e.database=function(t){if(t&&Object.keys(t).length>0)return e.init(t).database();if(this._database)return this._database;var r=kr(Rr,{uniClient:e});return this._database=r,r},e.databaseForJQL=function(t){if(t&&Object.keys(t).length>0)return e.init(t).databaseForJQL();if(this._databaseForJQL)return this._databaseForJQL;var r=kr(Rr,{uniClient:e,isJQL:!0});return this._databaseForJQL=r,r}}(t),function(e){e.getCurrentUserInfo=fn,e.chooseAndUploadFile=dn.initChooseAndUploadFile(e),Object.assign(e,{get mixinDatacom(){return pn(e)}}),e.SSEChannel=An,e.initSecureNetworkByWeixin=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.openid,n=t.callLoginByWeixin,i=void 0!==n&&n;return bn.call(e,{openid:r,callLoginByWeixin:i})}}(e),e.setCustomClientInfo=_n,e.importObject=function(e){return function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.customUI=t.customUI||e.customUI,e.parseSystemError=t.parseSystemError||e.parseSystemError,Object.assign(e.loadingOptions,t.loadingOptions),Object.assign(e.errorOptions,t.errorOptions),"object"==(0,c.default)(t.secretMethods)&&(e.secretMethods=t.secretMethods),e}({customUI:!1,loadingOptions:{title:"加载中...",mask:!0},errorOptions:{type:"modal",retry:!1}},r);var i=r,o=i.customUI,s=i.loadingOptions,u=i.errorOptions,f=i.parseSystemError,d=!o;return new Proxy({},{get:function(i,o){switch(o){case"toString":return"[object UniCloudObject]";case"toJSON":return{}}return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.fn,r=e.interceptorName,n=e.getCallbackArgs;return(0,l.default)(a.default.mark((function e(){var i,o,s,u,c,f,l=arguments;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:for(i=l.length,o=new Array(i),s=0;s<i;s++)o[s]=l[s];return u=n?n({params:o}):{},e.prev=2,e.next=5,ne(ie(r,"invoke"),S({},u));case 5:return e.next=7,t.apply(void 0,o);case 7:return c=e.sent,e.next=10,ne(ie(r,"success"),S(S({},u),{},{result:c}));case 10:return e.abrupt("return",c);case 13:return e.prev=13,e.t0=e["catch"](2),f=e.t0,e.next=18,ne(ie(r,"fail"),S(S({},u),{},{error:f}));case 18:throw f;case 19:return e.prev=19,e.next=22,ne(ie(r,"complete"),S(S({},u),{},f?{error:f}:{result:c}));case 22:return e.finish(19);case 23:case"end":return e.stop()}}),e,null,[[2,13,19,23]])})))}({fn:function(){var i=(0,l.default)(a.default.mark((function i(){var p,g,y,v,b,m,_,w,A,x,E,C,O,I,T,P=arguments;return a.default.wrap((function(i){while(1)switch(i.prev=i.next){case 0:for(d&&n.showLoading({title:s.title,mask:s.mask}),g=P.length,y=new Array(g),v=0;v<g;v++)y[v]=P[v];return b={name:t,type:R.OBJECT,data:{method:o,params:y}},"object"==(0,c.default)(r.secretMethods)&&function(e,t){var r=t.data.method,n=e.secretMethods||{},i=n[r]||n["*"];i&&(t.secretType=i)}(r,b),m=!1,i.prev=5,i.next=8,e.callFunction(b);case 8:p=i.sent,i.next=14;break;case 11:i.prev=11,i.t0=i["catch"](5),m=!0,p={result:new ve(i.t0)};case 14:if(_=p.result||{},w=_.errSubject,A=_.errCode,x=_.errMsg,E=_.newToken,d&&n.hideLoading(),E&&E.token&&E.tokenExpired&&(Ae(E),de(se.REFRESH_TOKEN,S({},E))),!A){i.next=39;break}if(C=x,!m||!f){i.next=24;break}return i.next=20,f({objectName:t,methodName:o,params:y,errSubject:w,errCode:A,errMsg:x});case 20:if(i.t1=i.sent.errMsg,i.t1){i.next=23;break}i.t1=x;case 23:C=i.t1;case 24:if(!d){i.next=37;break}if("toast"!==u.type){i.next=29;break}n.showToast({title:C,icon:"none"}),i.next=37;break;case 29:if("modal"===u.type){i.next=31;break}throw new Error("Invalid errorOptions.type: ".concat(u.type));case 31:return i.next=33,(0,l.default)(a.default.mark((function e(){var t,r,i,o,s,u,c=arguments;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=c.length>0&&void 0!==c[0]?c[0]:{},r=t.title,i=t.content,o=t.showCancel,s=t.cancelText,u=t.confirmText,e.abrupt("return",new Promise((function(e,t){n.showModal({title:r,content:i,showCancel:o,cancelText:s,confirmText:u,success:function(t){e(t)},fail:function(){e({confirm:!1,cancel:!0})}})})));case 2:case"end":return e.stop()}}),e)})))({title:"提示",content:C,showCancel:u.retry,cancelText:"取消",confirmText:u.retry?"重试":"确定"});case 33:if(O=i.sent,I=O.confirm,!u.retry||!I){i.next=37;break}return i.abrupt("return",h.apply(void 0,y));case 37:throw T=new ve({subject:w,code:A,message:x,requestId:p.requestId}),T.detail=p.result,de(se.RESPONSE,{type:ue.CLOUD_OBJECT,content:T}),T;case 39:return i.abrupt("return",(de(se.RESPONSE,{type:ue.CLOUD_OBJECT,content:p.result}),p.result));case 40:case"end":return i.stop()}}),i,null,[[5,11]])})));function h(){return i.apply(this,arguments)}return h}(),interceptorName:"callObject",getCallbackArgs:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.params;return{objectName:t,methodName:o,params:r}}})}})}}(e)}(t),["callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","chooseAndUploadFile"].forEach((function(e){if(t[e]){var r=t[e];t[e]=function(){return r.apply(t,Array.from(arguments))},t[e]=function(e,t){return function(r){var n=this,i=!1;if("callFunction"===t){var o=r&&r.type||R.DEFAULT;i=o!==R.DEFAULT}var a="callFunction"===t&&!i,s=this._initPromiseHub.exec();r=r||{};var u=ye(r),c=u.success,f=u.fail,l=u.complete,d=s.then((function(){return i?Promise.resolve():ne(ie(t,"invoke"),r)})).then((function(){return e.call(n,r)})).then((function(e){return i?Promise.resolve(e):ne(ie(t,"success"),e).then((function(){return ne(ie(t,"complete"),e)})).then((function(){return a&&de(se.RESPONSE,{type:ue.CLOUD_FUNCTION,content:e}),Promise.resolve(e)}))}),(function(e){return i?Promise.reject(e):ne(ie(t,"fail"),e).then((function(){return ne(ie(t,"complete"),e)})).then((function(){return de(se.RESPONSE,{type:ue.CLOUD_FUNCTION,content:e}),Promise.reject(e)}))}));if(!(c||f||l))return d;d.then((function(e){c&&c(e),l&&l(e),a&&de(se.RESPONSE,{type:ue.CLOUD_FUNCTION,content:e})}),(function(e){f&&f(e),l&&l(e),a&&de(se.RESPONSE,{type:ue.CLOUD_FUNCTION,content:e})}))}}(t[e],e).bind(t)}})),t.init=this.init,t}}]),e}());t.uniCloud=xn,function(){var e=$,r={};if(e&&1===e.length)r=e[0],t.uniCloud=xn=xn.init(r),xn._isDefault=!0;else{var i;i=e&&e.length>0?"应用有多个服务空间,请通过uniCloud.init方法指定要使用的服务空间":"应用未关联服务空间,请在uniCloud目录右键关联服务空间",["auth","callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","database","getCurrentUSerInfo","importObject"].forEach((function(e){xn[e]=function(){return console.error(i),Promise.reject(new ve({code:"SYS_ERR",message:i}))}}))}if(Object.assign(xn,{get mixinDatacom(){return pn(xn)}}),sn(xn),xn.addInterceptor=te,xn.removeInterceptor=re,xn.interceptObject=oe,"app"===K&&(n.__uniCloud=xn),"app"===K||"web"===K){var o=function(){return Y||(Y=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;function e(){return this}return void 0!==e()?e():new Function("return this")()}(),Y)}();o.uniCloud=xn,o.UniCloudError=ve}}();var En=xn;t.default=En}).call(this,r("0ee4"),r("df3c")["default"],r("3223")["default"])},8647:function(e,t,r){"use strict";var n=r("81eb"),i=r("4e45"),o=i.assert,a=i.cachedProperty,s=i.parseBytes;function u(e,t){this.eddsa=e,"object"!==typeof t&&(t=s(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),o(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof n&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}a(u,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),a(u,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())})),a(u,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),a(u,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),u.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},u.prototype.toHex=function(){return i.encode(this.toBytes(),"hex").toUpperCase()},e.exports=u},"87e7":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("253e")),o=function(){function e(){}return e.ISO_8859_1=i.default.ISO8859_1,e}(),a=o;t.default=a},"87eb":function(e,t){},"88aa":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("d4f8")),o=r("eab1"),a=function(){function e(){}return e.encodeECC200=function(e,t){if(e.length!==t.getDataCapacity())throw new Error("The number of codewords does not match the selected symbol");var r=new i.default;r.append(e);var n=t.getInterleavedBlockCount();if(1===n){var o=this.createECCBlock(e,t.getErrorCodewords());r.append(o)}else{for(var a=[],s=[],u=0;u<n;u++)a[u]=t.getDataLengthForInterleavedBlock(u+1),s[u]=t.getErrorLengthForInterleavedBlock(u+1);for(var c=0;c<n;c++){for(var f=new i.default,l=c;l<t.getDataCapacity();l+=n)f.append(e.charAt(l));o=this.createECCBlock(f.toString(),s[c]);for(var d=0,h=c;h<s[c]*n;h+=n)r.setCharAt(t.getDataCapacity()+h,o.charAt(d++))}}return r.toString()},e.createECCBlock=function(e,t){for(var r=-1,n=0;n<o.FACTOR_SETS.length;n++)if(o.FACTOR_SETS[n]===t){r=n;break}if(r<0)throw new Error("Illegal number of error correction codewords specified: "+t);var i=o.FACTORS[r],a=[];for(n=0;n<t;n++)a[n]=0;for(n=0;n<e.length;n++){for(var s=a[t-1]^e.charAt(n).charCodeAt(0),u=t-1;u>0;u--)0!==s&&0!==i[u]?a[u]=a[u-1]^o.ALOG[(o.LOG[s]+o.LOG[i[u]])%255]:a[u]=a[u-1];0!==s&&0!==i[0]?a[0]=o.ALOG[(o.LOG[s]+o.LOG[i[0]])%255]:a[0]=0}var c=[];for(n=0;n<t;n++)c[n]=a[t-n-1];return c.map((function(e){return String.fromCharCode(e)})).join("")},e}(),s=a;t.default=s},"88b2":function(e,t,r){"use strict";const n=t;n.der=r("ade1"),n.pem=r("bd6c")},"88d4":function(e,t,r){"use strict";t.readUInt32BE=function(e,t){var r=e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t];return r>>>0},t.writeUInt32BE=function(e,t,r){e[0+r]=t>>>24,e[1+r]=t>>>16&255,e[2+r]=t>>>8&255,e[3+r]=255&t},t.ip=function(e,t,r,n){for(var i=0,o=0,a=6;a>=0;a-=2){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>>s+a&1}for(a=6;a>=0;a-=2){for(s=1;s<=25;s+=8)o<<=1,o|=t>>>s+a&1;for(s=1;s<=25;s+=8)o<<=1,o|=e>>>s+a&1}r[n+0]=i>>>0,r[n+1]=o>>>0},t.rip=function(e,t,r,n){for(var i=0,o=0,a=0;a<4;a++)for(var s=24;s>=0;s-=8)i<<=1,i|=t>>>s+a&1,i<<=1,i|=e>>>s+a&1;for(a=4;a<8;a++)for(s=24;s>=0;s-=8)o<<=1,o|=t>>>s+a&1,o<<=1,o|=e>>>s+a&1;r[n+0]=i>>>0,r[n+1]=o>>>0},t.pc1=function(e,t,r,n){for(var i=0,o=0,a=7;a>=5;a--){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>s+a&1}for(s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(a=1;a<=3;a++){for(s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1;for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1}for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1;r[n+0]=i>>>0,r[n+1]=o>>>0},t.r28shl=function(e,t){return e<<t&268435455|e>>>28-t};var n=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];t.pc2=function(e,t,r,i){for(var o=0,a=0,s=n.length>>>1,u=0;u<s;u++)o<<=1,o|=e>>>n[u]&1;for(u=s;u<n.length;u++)a<<=1,a|=t>>>n[u]&1;r[i+0]=o>>>0,r[i+1]=a>>>0},t.expand=function(e,t,r){var n=0,i=0;n=(1&e)<<5|e>>>27;for(var o=23;o>=15;o-=4)n<<=6,n|=e>>>o&63;for(o=11;o>=3;o-=4)i|=e>>>o&63,i<<=6;i|=(31&e)<<1|e>>>31,t[r+0]=n>>>0,t[r+1]=i>>>0};var i=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];t.substitute=function(e,t){for(var r=0,n=0;n<4;n++){var o=e>>>18-6*n&63,a=i[64*n+o];r<<=4,r|=a}for(n=0;n<4;n++){o=t>>>18-6*n&63,a=i[256+64*n+o];r<<=4,r|=a}return r>>>0};var o=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];t.permute=function(e){for(var t=0,r=0;r<o.length;r++)t<<=1,t|=e>>>o[r]&1;return t>>>0},t.padSplit=function(e,t,r){var n=e.toString(2);while(n.length<t)n="0"+n;for(var i=[],o=0;o<t;o+=r)i.push(n.slice(o,o+r));return i.join(" ")}},"88fd":function(e,t,r){(function(t){function r(e){try{if(!t.localStorage)return!1}catch(n){return!1}var r=t.localStorage[e];return null!=r&&"true"===String(r).toLowerCase()}e.exports=function(e,t){if(r("noDeprecation"))return e;var n=!1;return function(){if(!n){if(r("throwDeprecation"))throw new Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}}}).call(this,r("0ee4"))},8936:function(e,t,r){"use strict";const n=r("2c2e"),i=r("d7a3").Reporter,o=r("1f07").Buffer;function a(e,t){i.call(this,t),o.isBuffer(e)?(this.base=e,this.offset=0,this.length=e.length):this.error("Input not Buffer")}function s(e,t){if(Array.isArray(e))this.length=0,this.value=e.map((function(e){return s.isEncoderBuffer(e)||(e=new s(e,t)),this.length+=e.length,e}),this);else if("number"===typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"===typeof e)this.value=e,this.length=o.byteLength(e);else{if(!o.isBuffer(e))return t.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}n(a,i),t.DecoderBuffer=a,a.isDecoderBuffer=function(e){if(e instanceof a)return!0;const t="object"===typeof e&&o.isBuffer(e.base)&&"DecoderBuffer"===e.constructor.name&&"number"===typeof e.offset&&"number"===typeof e.length&&"function"===typeof e.save&&"function"===typeof e.restore&&"function"===typeof e.isEmpty&&"function"===typeof e.readUInt8&&"function"===typeof e.skip&&"function"===typeof e.raw;return t},a.prototype.save=function(){return{offset:this.offset,reporter:i.prototype.save.call(this)}},a.prototype.restore=function(e){const t=new a(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,i.prototype.restore.call(this,e.reporter),t},a.prototype.isEmpty=function(){return this.offset===this.length},a.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},a.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");const r=new a(this.base);return r._reporterState=this._reporterState,r.offset=this.offset,r.length=this.offset+e,this.offset+=e,r},a.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},t.EncoderBuffer=s,s.isEncoderBuffer=function(e){if(e instanceof s)return!0;const t="object"===typeof e&&"EncoderBuffer"===e.constructor.name&&"number"===typeof e.length&&"function"===typeof e.join;return t},s.prototype.join=function(e,t){return e||(e=o.alloc(this.length)),t||(t=0),0===this.length||(Array.isArray(this.value)?this.value.forEach((function(r){r.join(e,t),t+=r.length})):("number"===typeof this.value?e[t]=this.value:"string"===typeof this.value?e.write(this.value,t):o.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e}},"89c0":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fontData=void 0;t.fontData=[{font_class:"arrow-down",unicode:""},{font_class:"arrow-left",unicode:""},{font_class:"arrow-right",unicode:""},{font_class:"arrow-up",unicode:""},{font_class:"auth",unicode:""},{font_class:"auth-filled",unicode:""},{font_class:"back",unicode:""},{font_class:"bars",unicode:""},{font_class:"calendar",unicode:""},{font_class:"calendar-filled",unicode:""},{font_class:"camera",unicode:""},{font_class:"camera-filled",unicode:""},{font_class:"cart",unicode:""},{font_class:"cart-filled",unicode:""},{font_class:"chat",unicode:""},{font_class:"chat-filled",unicode:""},{font_class:"chatboxes",unicode:""},{font_class:"chatboxes-filled",unicode:""},{font_class:"chatbubble",unicode:""},{font_class:"chatbubble-filled",unicode:""},{font_class:"checkbox",unicode:""},{font_class:"checkbox-filled",unicode:""},{font_class:"checkmarkempty",unicode:""},{font_class:"circle",unicode:""},{font_class:"circle-filled",unicode:""},{font_class:"clear",unicode:""},{font_class:"close",unicode:""},{font_class:"closeempty",unicode:""},{font_class:"cloud-download",unicode:""},{font_class:"cloud-download-filled",unicode:""},{font_class:"cloud-upload",unicode:""},{font_class:"cloud-upload-filled",unicode:""},{font_class:"color",unicode:""},{font_class:"color-filled",unicode:""},{font_class:"compose",unicode:""},{font_class:"contact",unicode:""},{font_class:"contact-filled",unicode:""},{font_class:"down",unicode:""},{font_class:"bottom",unicode:""},{font_class:"download",unicode:""},{font_class:"download-filled",unicode:""},{font_class:"email",unicode:""},{font_class:"email-filled",unicode:""},{font_class:"eye",unicode:""},{font_class:"eye-filled",unicode:""},{font_class:"eye-slash",unicode:""},{font_class:"eye-slash-filled",unicode:""},{font_class:"fire",unicode:""},{font_class:"fire-filled",unicode:""},{font_class:"flag",unicode:""},{font_class:"flag-filled",unicode:""},{font_class:"folder-add",unicode:""},{font_class:"folder-add-filled",unicode:""},{font_class:"font",unicode:""},{font_class:"forward",unicode:""},{font_class:"gear",unicode:""},{font_class:"gear-filled",unicode:""},{font_class:"gift",unicode:""},{font_class:"gift-filled",unicode:""},{font_class:"hand-down",unicode:""},{font_class:"hand-down-filled",unicode:""},{font_class:"hand-up",unicode:""},{font_class:"hand-up-filled",unicode:""},{font_class:"headphones",unicode:""},{font_class:"heart",unicode:""},{font_class:"heart-filled",unicode:""},{font_class:"help",unicode:""},{font_class:"help-filled",unicode:""},{font_class:"home",unicode:""},{font_class:"home-filled",unicode:""},{font_class:"image",unicode:""},{font_class:"image-filled",unicode:""},{font_class:"images",unicode:""},{font_class:"images-filled",unicode:""},{font_class:"info",unicode:""},{font_class:"info-filled",unicode:""},{font_class:"left",unicode:""},{font_class:"link",unicode:""},{font_class:"list",unicode:""},{font_class:"location",unicode:""},{font_class:"location-filled",unicode:""},{font_class:"locked",unicode:""},{font_class:"locked-filled",unicode:""},{font_class:"loop",unicode:""},{font_class:"mail-open",unicode:""},{font_class:"mail-open-filled",unicode:""},{font_class:"map",unicode:""},{font_class:"map-filled",unicode:""},{font_class:"map-pin",unicode:""},{font_class:"map-pin-ellipse",unicode:""},{font_class:"medal",unicode:""},{font_class:"medal-filled",unicode:""},{font_class:"mic",unicode:""},{font_class:"mic-filled",unicode:""},{font_class:"micoff",unicode:""},{font_class:"micoff-filled",unicode:""},{font_class:"minus",unicode:""},{font_class:"minus-filled",unicode:""},{font_class:"more",unicode:""},{font_class:"more-filled",unicode:""},{font_class:"navigate",unicode:""},{font_class:"navigate-filled",unicode:""},{font_class:"notification",unicode:""},{font_class:"notification-filled",unicode:""},{font_class:"paperclip",unicode:""},{font_class:"paperplane",unicode:""},{font_class:"paperplane-filled",unicode:""},{font_class:"person",unicode:""},{font_class:"person-filled",unicode:""},{font_class:"personadd",unicode:""},{font_class:"personadd-filled",unicode:""},{font_class:"personadd-filled-copy",unicode:""},{font_class:"phone",unicode:""},{font_class:"phone-filled",unicode:""},{font_class:"plus",unicode:""},{font_class:"plus-filled",unicode:""},{font_class:"plusempty",unicode:""},{font_class:"pulldown",unicode:""},{font_class:"pyq",unicode:""},{font_class:"qq",unicode:""},{font_class:"redo",unicode:""},{font_class:"redo-filled",unicode:""},{font_class:"refresh",unicode:""},{font_class:"refresh-filled",unicode:""},{font_class:"refreshempty",unicode:""},{font_class:"reload",unicode:""},{font_class:"right",unicode:""},{font_class:"scan",unicode:""},{font_class:"search",unicode:""},{font_class:"settings",unicode:""},{font_class:"settings-filled",unicode:""},{font_class:"shop",unicode:""},{font_class:"shop-filled",unicode:""},{font_class:"smallcircle",unicode:""},{font_class:"smallcircle-filled",unicode:""},{font_class:"sound",unicode:""},{font_class:"sound-filled",unicode:""},{font_class:"spinner-cycle",unicode:""},{font_class:"staff",unicode:""},{font_class:"staff-filled",unicode:""},{font_class:"star",unicode:""},{font_class:"star-filled",unicode:""},{font_class:"starhalf",unicode:""},{font_class:"trash",unicode:""},{font_class:"trash-filled",unicode:""},{font_class:"tune",unicode:""},{font_class:"tune-filled",unicode:""},{font_class:"undo",unicode:""},{font_class:"undo-filled",unicode:""},{font_class:"up",unicode:""},{font_class:"top",unicode:""},{font_class:"upload",unicode:""},{font_class:"upload-filled",unicode:""},{font_class:"videocam",unicode:""},{font_class:"videocam-filled",unicode:""},{font_class:"vip",unicode:""},{font_class:"vip-filled",unicode:""},{font_class:"wallet",unicode:""},{font_class:"wallet-filled",unicode:""},{font_class:"weibo",unicode:""},{font_class:"weixin",unicode:""}]},"8ce8":function(e,t,r){function n(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===n(e)},t.isBoolean=function(e){return"boolean"===typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"===typeof e},t.isString=function(e){return"string"===typeof e},t.isSymbol=function(e){return"symbol"===typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===n(e)},t.isObject=function(e){return"object"===typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===n(e)},t.isError=function(e){return"[object Error]"===n(e)||e instanceof Error},t.isFunction=function(e){return"function"===typeof e},t.isPrimitive=function(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e},t.isBuffer=r("12e3").Buffer.isBuffer},"8d24":function(e,t,r){(function(t){var n=r("81eb"),i=r("ace9");function o(e){var t,r=e.modulus.byteLength();do{t=new n(i(r))}while(t.cmp(e.modulus)>=0||!t.umod(e.prime1)||!t.umod(e.prime2));return t}function a(e,r){var i=function(e){var t=o(e),r=t.toRed(n.mont(e.modulus)).redPow(new n(e.publicExponent)).fromRed();return{blinder:r,unblinder:t.invm(e.modulus)}}(r),a=r.modulus.byteLength(),s=new n(e).mul(i.blinder).umod(r.modulus),u=s.toRed(n.mont(r.prime1)),c=s.toRed(n.mont(r.prime2)),f=r.coefficient,l=r.prime1,d=r.prime2,h=u.redPow(r.exponent1).fromRed(),p=c.redPow(r.exponent2).fromRed(),g=h.isub(p).imul(f).umod(l).imul(d);return p.iadd(g).imul(i.unblinder).umod(r.modulus).toArrayLike(t,"be",a)}a.getr=o,e.exports=a}).call(this,r("12e3").Buffer)},"8d70":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("b911")),o=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),a=function(e){function t(t,r,n){var i=e.call(this,t,r)||this;return i.count=0,i.finderPattern=n,i}return o(t,e),t.prototype.getFinderPattern=function(){return this.finderPattern},t.prototype.getCount=function(){return this.count},t.prototype.incrementCount=function(){this.count++},t}(i.default),s=a;t.default=s},"8d76":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("46f2")),o=function(){function e(e){this.information=e,this.generalDecoder=new i.default(e)}return e.prototype.getInformation=function(){return this.information},e.prototype.getGeneralDecoder=function(){return this.generalDecoder},e}(),a=o;t.default=a},"8e48":function(e,t,r){var n=r("d7d6"),i=r("f180"),o=r("ed54"),a=r("b577"),s=r("fef7"),u=r("5f79").Buffer;function c(e){var t;"object"!==typeof e||u.isBuffer(e)||(t=e.passphrase,e=e.key),"string"===typeof e&&(e=u.from(e));var r,c,f=o(e,t),l=f.tag,d=f.data;switch(l){case"CERTIFICATE":c=n.certificate.decode(d,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(c||(c=n.PublicKey.decode(d,"der")),r=c.algorithm.algorithm.join("."),r){case"1.2.840.113549.1.1.1":return n.RSAPublicKey.decode(c.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return c.subjectPrivateKey=c.subjectPublicKey,{type:"ec",data:c};case"1.2.840.10040.4.1":return c.algorithm.params.pub_key=n.DSAparam.decode(c.subjectPublicKey.data,"der"),{type:"dsa",data:c.algorithm.params};default:throw new Error("unknown key id "+r)}case"ENCRYPTED PRIVATE KEY":d=n.EncryptedPrivateKey.decode(d,"der"),d=function(e,t){var r=e.algorithm.decrypt.kde.kdeparams.salt,n=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),o=i[e.algorithm.decrypt.cipher.algo.join(".")],c=e.algorithm.decrypt.cipher.iv,f=e.subjectPrivateKey,l=parseInt(o.split("-")[1],10)/8,d=s.pbkdf2Sync(t,r,n,l,"sha1"),h=a.createDecipheriv(o,d,c),p=[];return p.push(h.update(f)),p.push(h.final()),u.concat(p)}(d,t);case"PRIVATE KEY":switch(c=n.PrivateKey.decode(d,"der"),r=c.algorithm.algorithm.join("."),r){case"1.2.840.113549.1.1.1":return n.RSAPrivateKey.decode(c.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:c.algorithm.curve,privateKey:n.ECPrivateKey.decode(c.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return c.algorithm.params.priv_key=n.DSAparam.decode(c.subjectPrivateKey,"der"),{type:"dsa",params:c.algorithm.params};default:throw new Error("unknown key id "+r)}case"RSA PUBLIC KEY":return n.RSAPublicKey.decode(d,"der");case"RSA PRIVATE KEY":return n.RSAPrivateKey.decode(d,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:n.DSAPrivateKey.decode(d,"der")};case"EC PRIVATE KEY":return d=n.ECPrivateKey.decode(d,"der"),{curve:d.parameters.value,privateKey:d.privateKey};default:throw new Error("unknown key type "+l)}}e.exports=c,c.signature=n.signature},"8e8c":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("1581")),o=n(r("1daa")),a=function(){function e(){}return e.prototype.writeBytes=function(e){this.writeBytesOffset(e,0,e.length)},e.prototype.writeBytesOffset=function(e,t,r){if(null==e)throw new o.default;if(t<0||t>e.length||r<0||t+r>e.length||t+r<0)throw new i.default;if(0!==r)for(var n=0;n<r;n++)this.write(e[t+n])},e.prototype.flush=function(){},e.prototype.close=function(){},e}(),s=a;t.default=s},"8ffa":function(e,t,r){var n=r("7647");e.exports=function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&n(e,t)},e.exports.__esModule=!0,e.exports["default"]=e.exports},9008:function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports["default"]=e.exports},9090:function(e,t,r){"use strict";const n=r("4807"),i=r("88b2"),o=r("2c2e"),a=t;function s(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}a.define=function(e,t){return new s(e,t)},s.prototype._createNamed=function(e){const t=this.name;function r(e){this._initNamed(e,t)}return o(r,e),r.prototype._initNamed=function(t,r){e.call(this,t,r)},new r(this)},s.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(i[e])),this.decoders[e]},s.prototype.decode=function(e,t,r){return this._getDecoder(t).decode(e,r)},s.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(n[e])),this.encoders[e]},s.prototype.encode=function(e,t,r){return this._getEncoder(t).encode(e,r)}},"91f1":function(e,t,r){"use strict";var n=r("47a9"),i=r("3b2d");Object.defineProperty(t,"__esModule",{value:!0}),t.CHAR_MAP=void 0,t.static_CHAR_MAP=c;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!==typeof e)return{default:e};var r=u(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=o?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(n,a,s):n[a]=e[a]}n.default=e,r&&r.set(e,n);return n}(r("d147")),a=n(r("36d3")),s=n(r("d618"));function u(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(u=function(e){return e?r:t})(e)}function c(e){var t=s.default.getCharCode(" "),r=s.default.getCharCode("."),n=s.default.getCharCode(",");e[o.MODE_UPPER][t]=1;for(var i=s.default.getCharCode("Z"),a=s.default.getCharCode("A"),u=a;u<=i;u++)e[o.MODE_UPPER][u]=u-a+2;e[o.MODE_LOWER][t]=1;var c=s.default.getCharCode("z"),f=s.default.getCharCode("a");for(u=f;u<=c;u++)e[o.MODE_LOWER][u]=u-f+2;e[o.MODE_DIGIT][t]=1;var l=s.default.getCharCode("9"),d=s.default.getCharCode("0");for(u=d;u<=l;u++)e[o.MODE_DIGIT][u]=u-d+2;e[o.MODE_DIGIT][n]=12,e[o.MODE_DIGIT][r]=13;for(var h=["\0"," ","","","","","","","","\b","\t","\n","\v","\f","\r","","","","","","@","\\","^","_","`","|","~",""],p=0;p<h.length;p++)e[o.MODE_MIXED][s.default.getCharCode(h[p])]=p;var g=["\0","\r","\0","\0","\0","\0","!","'","#","$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","?","[","]","{","}"];for(p=0;p<g.length;p++)s.default.getCharCode(g[p])>0&&(e[o.MODE_PUNCT][s.default.getCharCode(g[p])]=p);return e}var f=c(a.default.createInt32Array(5,256));t.CHAR_MAP=f},"91fc":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("4d7d")),o=n(r("f228")),a=n(r("343e")),s=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.decodeRowStringBuffer="",t}return s(t,e),t.findStartGuardPattern=function(e){var r,n=!1,i=0,o=Int32Array.from([0,0,0]);while(!n){o=Int32Array.from([0,0,0]),r=t.findGuardPattern(e,i,!1,this.START_END_PATTERN,o);var a=r[0];i=r[1];var s=a-(i-a);s>=0&&(n=e.isRange(s,a,!1))}return r},t.checkChecksum=function(e){return t.checkStandardUPCEANChecksum(e)},t.checkStandardUPCEANChecksum=function(e){var r=e.length;if(0===r)return!1;var n=parseInt(e.charAt(r-1),10);return t.getStandardUPCEANChecksum(e.substring(0,r-1))===n},t.getStandardUPCEANChecksum=function(e){for(var t=e.length,r=0,n=t-1;n>=0;n-=2){var i=e.charAt(n).charCodeAt(0)-"0".charCodeAt(0);if(i<0||i>9)throw new a.default;r+=i}r*=3;for(n=t-2;n>=0;n-=2){i=e.charAt(n).charCodeAt(0)-"0".charCodeAt(0);if(i<0||i>9)throw new a.default;r+=i}return(1e3-r)%10},t.decodeEnd=function(e,r){return t.findGuardPattern(e,r,!1,t.START_END_PATTERN,new Int32Array(t.START_END_PATTERN.length).fill(0))},t.findGuardPatternWithoutCounters=function(e,t,r,n){return this.findGuardPattern(e,t,r,n,new Int32Array(n.length))},t.findGuardPattern=function(e,r,n,a,s){var u=e.getSize();r=n?e.getNextUnset(r):e.getNextSet(r);for(var c=0,f=r,l=a.length,d=n,h=r;h<u;h++)if(e.get(h)!==d)s[c]++;else{if(c===l-1){if(i.default.patternMatchVariance(s,a,t.MAX_INDIVIDUAL_VARIANCE)<t.MAX_AVG_VARIANCE)return Int32Array.from([f,h]);f+=s[0]+s[1];for(var p=s.slice(2,s.length),g=0;g<c-1;g++)s[g]=p[g];s[c-1]=0,s[c]=0,c--}else c++;s[c]=1,d=!d}throw new o.default},t.decodeDigit=function(e,r,n,a){this.recordPattern(e,n,r);for(var s=this.MAX_AVG_VARIANCE,u=-1,c=a.length,f=0;f<c;f++){var l=a[f],d=i.default.patternMatchVariance(r,l,t.MAX_INDIVIDUAL_VARIANCE);d<s&&(s=d,u=f)}if(u>=0)return u;throw new o.default},t.MAX_AVG_VARIANCE=.48,t.MAX_INDIVIDUAL_VARIANCE=.7,t.START_END_PATTERN=Int32Array.from([1,1,1]),t.MIDDLE_PATTERN=Int32Array.from([1,1,1,1,1]),t.END_PATTERN=Int32Array.from([1,1,1,1,1,1]),t.L_PATTERNS=[Int32Array.from([3,2,1,1]),Int32Array.from([2,2,2,1]),Int32Array.from([2,1,2,2]),Int32Array.from([1,4,1,1]),Int32Array.from([1,1,3,2]),Int32Array.from([1,2,3,1]),Int32Array.from([1,1,1,4]),Int32Array.from([1,3,1,2]),Int32Array.from([1,2,1,3]),Int32Array.from([3,1,1,2])],t}(i.default),c=u;t.default=c},"91fd":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("76a0")),o=n(r("a8be")),a=n(r("9208")),s=n(r("715c")),u=n(r("f228")),c=function(e){var t="function"===typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},f=function(){function e(e,t){this.image=e,this.resultPointCallback=t,this.possibleCenters=[],this.crossCheckStateCount=new Int32Array(5),this.resultPointCallback=t}return e.prototype.getImage=function(){return this.image},e.prototype.getPossibleCenters=function(){return this.possibleCenters},e.prototype.find=function(t){var r=null!==t&&void 0!==t&&void 0!==t.get(i.default.TRY_HARDER),n=null!==t&&void 0!==t&&void 0!==t.get(i.default.PURE_BARCODE),a=this.image,u=a.getHeight(),c=a.getWidth(),f=Math.floor(3*u/(4*e.MAX_MODULES));(f<e.MIN_SKIP||r)&&(f=e.MIN_SKIP);for(var l=!1,d=new Int32Array(5),h=f-1;h<u&&!l;h+=f){d[0]=0,d[1]=0,d[2]=0,d[3]=0,d[4]=0;for(var p=0,g=0;g<c;g++)if(a.get(g,h))1===(1&p)&&p++,d[p]++;else if(0===(1&p))if(4===p)if(e.foundPatternCross(d)){var y=this.handlePossibleCenter(d,h,g,n);if(!0!==y){d[0]=d[2],d[1]=d[3],d[2]=d[4],d[3]=1,d[4]=0,p=3;continue}if(f=2,!0===this.hasSkipped)l=this.haveMultiplyConfirmedCenters();else{var v=this.findRowSkip();v>d[2]&&(h+=v-d[2]-f,g=c-1)}p=0,d[0]=0,d[1]=0,d[2]=0,d[3]=0,d[4]=0}else d[0]=d[2],d[1]=d[3],d[2]=d[4],d[3]=1,d[4]=0,p=3;else d[++p]++;else d[p]++;if(e.foundPatternCross(d)){y=this.handlePossibleCenter(d,h,c,n);!0===y&&(f=d[0],this.hasSkipped&&(l=this.haveMultiplyConfirmedCenters()))}}var b=this.selectBestPatterns();return o.default.orderBestPatterns(b),new s.default(b)},e.centerFromEnd=function(e,t){return t-e[4]-e[3]-e[2]/2},e.foundPatternCross=function(e){for(var t=0,r=0;r<5;r++){var n=e[r];if(0===n)return!1;t+=n}if(t<7)return!1;var i=t/7,o=i/2;return Math.abs(i-e[0])<o&&Math.abs(i-e[1])<o&&Math.abs(3*i-e[2])<3*o&&Math.abs(i-e[3])<o&&Math.abs(i-e[4])<o},e.prototype.getCrossCheckStateCount=function(){var e=this.crossCheckStateCount;return e[0]=0,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e},e.prototype.crossCheckDiagonal=function(t,r,n,i){var o=this.getCrossCheckStateCount(),a=0,s=this.image;while(t>=a&&r>=a&&s.get(r-a,t-a))o[2]++,a++;if(t<a||r<a)return!1;while(t>=a&&r>=a&&!s.get(r-a,t-a)&&o[1]<=n)o[1]++,a++;if(t<a||r<a||o[1]>n)return!1;while(t>=a&&r>=a&&s.get(r-a,t-a)&&o[0]<=n)o[0]++,a++;if(o[0]>n)return!1;var u=s.getHeight(),c=s.getWidth();a=1;while(t+a<u&&r+a<c&&s.get(r+a,t+a))o[2]++,a++;if(t+a>=u||r+a>=c)return!1;while(t+a<u&&r+a<c&&!s.get(r+a,t+a)&&o[3]<n)o[3]++,a++;if(t+a>=u||r+a>=c||o[3]>=n)return!1;while(t+a<u&&r+a<c&&s.get(r+a,t+a)&&o[4]<n)o[4]++,a++;if(o[4]>=n)return!1;var f=o[0]+o[1]+o[2]+o[3]+o[4];return Math.abs(f-i)<2*i&&e.foundPatternCross(o)},e.prototype.crossCheckVertical=function(t,r,n,i){var o=this.image,a=o.getHeight(),s=this.getCrossCheckStateCount(),u=t;while(u>=0&&o.get(r,u))s[2]++,u--;if(u<0)return NaN;while(u>=0&&!o.get(r,u)&&s[1]<=n)s[1]++,u--;if(u<0||s[1]>n)return NaN;while(u>=0&&o.get(r,u)&&s[0]<=n)s[0]++,u--;if(s[0]>n)return NaN;u=t+1;while(u<a&&o.get(r,u))s[2]++,u++;if(u===a)return NaN;while(u<a&&!o.get(r,u)&&s[3]<n)s[3]++,u++;if(u===a||s[3]>=n)return NaN;while(u<a&&o.get(r,u)&&s[4]<n)s[4]++,u++;if(s[4]>=n)return NaN;var c=s[0]+s[1]+s[2]+s[3]+s[4];return 5*Math.abs(c-i)>=2*i?NaN:e.foundPatternCross(s)?e.centerFromEnd(s,u):NaN},e.prototype.crossCheckHorizontal=function(t,r,n,i){var o=this.image,a=o.getWidth(),s=this.getCrossCheckStateCount(),u=t;while(u>=0&&o.get(u,r))s[2]++,u--;if(u<0)return NaN;while(u>=0&&!o.get(u,r)&&s[1]<=n)s[1]++,u--;if(u<0||s[1]>n)return NaN;while(u>=0&&o.get(u,r)&&s[0]<=n)s[0]++,u--;if(s[0]>n)return NaN;u=t+1;while(u<a&&o.get(u,r))s[2]++,u++;if(u===a)return NaN;while(u<a&&!o.get(u,r)&&s[3]<n)s[3]++,u++;if(u===a||s[3]>=n)return NaN;while(u<a&&o.get(u,r)&&s[4]<n)s[4]++,u++;if(s[4]>=n)return NaN;var c=s[0]+s[1]+s[2]+s[3]+s[4];return 5*Math.abs(c-i)>=i?NaN:e.foundPatternCross(s)?e.centerFromEnd(s,u):NaN},e.prototype.handlePossibleCenter=function(t,r,n,i){var o=t[0]+t[1]+t[2]+t[3]+t[4],s=e.centerFromEnd(t,n),u=this.crossCheckVertical(r,Math.floor(s),t[2],o);if(!isNaN(u)&&(s=this.crossCheckHorizontal(Math.floor(s),Math.floor(u),t[2],o),!isNaN(s)&&(!i||this.crossCheckDiagonal(Math.floor(u),Math.floor(s),t[2],o)))){for(var c=o/7,f=!1,l=this.possibleCenters,d=0,h=l.length;d<h;d++){var p=l[d];if(p.aboutEquals(c,u,s)){l[d]=p.combineEstimate(u,s,c),f=!0;break}}if(!f){var g=new a.default(s,u,c);l.push(g),null!==this.resultPointCallback&&void 0!==this.resultPointCallback&&this.resultPointCallback.foundPossibleResultPoint(g)}return!0}return!1},e.prototype.findRowSkip=function(){var t,r,n=this.possibleCenters.length;if(n<=1)return 0;var i=null;try{for(var o=c(this.possibleCenters),a=o.next();!a.done;a=o.next()){var s=a.value;if(s.getCount()>=e.CENTER_QUORUM){if(null!=i)return this.hasSkipped=!0,Math.floor((Math.abs(i.getX()-s.getX())-Math.abs(i.getY()-s.getY()))/2);i=s}}}catch(u){t={error:u}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return 0},e.prototype.haveMultiplyConfirmedCenters=function(){var t,r,n,i,o=0,a=0,s=this.possibleCenters.length;try{for(var u=c(this.possibleCenters),f=u.next();!f.done;f=u.next()){var l=f.value;l.getCount()>=e.CENTER_QUORUM&&(o++,a+=l.getEstimatedModuleSize())}}catch(y){t={error:y}}finally{try{f&&!f.done&&(r=u.return)&&r.call(u)}finally{if(t)throw t.error}}if(o<3)return!1;var d=a/s,h=0;try{for(var p=c(this.possibleCenters),g=p.next();!g.done;g=p.next()){l=g.value;h+=Math.abs(l.getEstimatedModuleSize()-d)}}catch(v){n={error:v}}finally{try{g&&!g.done&&(i=p.return)&&i.call(p)}finally{if(n)throw n.error}}return h<=.05*a},e.prototype.selectBestPatterns=function(){var e,t,r,n,i=this.possibleCenters.length;if(i<3)throw new u.default;var o,a=this.possibleCenters;if(i>3){var s=0,f=0;try{for(var l=c(this.possibleCenters),d=l.next();!d.done;d=l.next()){var h=d.value,p=h.getEstimatedModuleSize();s+=p,f+=p*p}}catch(A){e={error:A}}finally{try{d&&!d.done&&(t=l.return)&&t.call(l)}finally{if(e)throw e.error}}o=s/i;var g=Math.sqrt(f/i-o*o);a.sort((function(e,t){var r=Math.abs(t.getEstimatedModuleSize()-o),n=Math.abs(e.getEstimatedModuleSize()-o);return r<n?-1:r>n?1:0}));for(var y=Math.max(.2*o,g),v=0;v<a.length&&a.length>3;v++){var b=a[v];Math.abs(b.getEstimatedModuleSize()-o)>y&&(a.splice(v,1),v--)}}if(a.length>3){s=0;try{for(var m=c(a),_=m.next();!_.done;_=m.next()){var w=_.value;s+=w.getEstimatedModuleSize()}}catch(S){r={error:S}}finally{try{_&&!_.done&&(n=m.return)&&n.call(m)}finally{if(r)throw r.error}}o=s/a.length,a.sort((function(e,t){if(t.getCount()===e.getCount()){var r=Math.abs(t.getEstimatedModuleSize()-o),n=Math.abs(e.getEstimatedModuleSize()-o);return r<n?1:r>n?-1:0}return t.getCount()-e.getCount()})),a.splice(3)}return[a[0],a[1],a[2]]},e.CENTER_QUORUM=2,e.MIN_SKIP=3,e.MAX_MODULES=57,e}(),l=f;t.default=l},9208:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("a8be")),o=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),a=function(e){function t(t,r,n,i){var o=e.call(this,t,r)||this;return o.estimatedModuleSize=n,o.count=i,void 0===i&&(o.count=1),o}return o(t,e),t.prototype.getEstimatedModuleSize=function(){return this.estimatedModuleSize},t.prototype.getCount=function(){return this.count},t.prototype.aboutEquals=function(e,t,r){if(Math.abs(t-this.getY())<=e&&Math.abs(r-this.getX())<=e){var n=Math.abs(e-this.estimatedModuleSize);return n<=1||n<=this.estimatedModuleSize}return!1},t.prototype.combineEstimate=function(e,r,n){var i=this.count+1,o=(this.count*this.getX()+r)/i,a=(this.count*this.getY()+e)/i,s=(this.count*this.estimatedModuleSize+n)/i;return new t(o,a,s,i)},t}(i.default),s=a;t.default=s},"931d":function(e,t,r){var n=r("7647"),i=r("011a");e.exports=function(e,t,r){if(i())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,t);var a=new(e.bind.apply(e,o));return r&&n(a,r.prototype),a},e.exports.__esModule=!0,e.exports["default"]=e.exports},9364:function(e,t,r){var n=r("5f79").Buffer;function i(e,t,r){var n,i,a,s=-1,u=0;while(++s<8)n=e._cipher.encryptBlock(e._prev),i=t&1<<7-s?128:0,a=n[0]^i,u+=(128&a)>>s%8,e._prev=o(e._prev,r?i:a);return u}function o(e,t){var r=e.length,i=-1,o=n.allocUnsafe(e.length);e=n.concat([e,n.from([t])]);while(++i<r)o[i]=e[i]<<1|e[i+1]>>7;return o}t.encrypt=function(e,t,r){var o=t.length,a=n.allocUnsafe(o),s=-1;while(++s<o)a[s]=i(e,t[s],r);return a}},"93d8":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("34cf")),o=n(r("3b2d")),a={compressObject:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10485.76;try{if(void 0===t||null===t)return t;if("string"==typeof t)return this.truncateStrBySize(t,r);if("number"==typeof t)return t;(new Date).getTime();var n=(0,o.default)(t);if("symbol"===n)t="Symbol->"+t.toString();else if("bigint"===n)t="bigint->"+t.toString();else if("undefined"!=typeof Error&&t instanceof Error)t="Error->".concat(t.name,"\n").concat(t.message,"\n").concat(t.stack);else if("undefined"!=typeof Date&&t instanceof Date)t="Date->"+t.toISOString();else if("function"==typeof t)t="Function->"+t.toString();else if("undefined"!=typeof RegExp&&t instanceof RegExp)t="RegExp->"+t.toString();else if("undefined"!=typeof Map&&t instanceof Map)t="Map->(".concat(t.size,") { ").concat(Array.from(t.entries()).map((function(e){var t=(0,i.default)(e,2),r=t[0],n=t[1];return"".concat(convertToString(r)," => ").concat(convertToString(n))})).join(", ")," }");else if("undefined"!=typeof Set&&t instanceof Set)t="Set->(".concat(t.size,") { ").concat(Array.from(t.values()).map((function(e){return convertToString(e)})).join(", ")," }");else if("undefined"!=typeof Blob&&t instanceof Blob)t="Blob->{ size: ".concat(t.size,", type: ").concat(t.type," }");else if("undefined"!=typeof File&&t instanceof File)t='File->{ name: "'.concat(t.name,'", size: ').concat(t.size,", type: ").concat(t.type,", lastModified: ").concat(new Date(t.lastModified).toISOString()," }");else if("undefined"!=typeof URL&&t instanceof URL)t='URL->{ href: "'.concat(t.href,'", protocol: "').concat(t.protocol,'", host: "').concat(t.host,'", pathname: "').concat(t.pathname,'", search: "').concat(t.search,'", hash: "').concat(t.hash,'" }');else if("undefined"!=typeof FormData&&t instanceof FormData){var a=[];t.forEach((function(e,t){a.push(e)})),t="FormData->{ ".concat(a.join(", ")," }")}else"undefined"!=typeof Location&&t instanceof Location?t='Location->{ href: "'.concat(t.href,'", protocol: "').concat(t.protocol,'", host: "').concat(t.host,'", pathname: "').concat(t.pathname,'", search: "').concat(t.search,'", hash: "').concat(t.hash,'" }'):"undefined"!=typeof Document&&t instanceof Document?t='Document->{ title: "'.concat(t.title,'", URL: "').concat(t.URL,'" }'):"undefined"!==typeof Window&&t instanceof Window?t="Window->{ location: ".concat(this.compressObject(t.location),", document: ").concat(this.compressObject(t.document)," }"):"undefined"!=typeof Element&&t instanceof Element?t='Element->{ tagName: "'.concat(t.tagName,'", id: "').concat(t.id,'", class: "').concat(t.className,'" }'):"undefined"!=typeof HTMLCanvasElement&&t instanceof HTMLCanvasElement?t="Canvas->{ width: ".concat(t.width,", height: ").concat(t.height," }"):"undefined"!=typeof HTMLAudioElement&&t instanceof HTMLAudioElement?t='Audio->{ src: "'.concat(t.src,'", duration: ').concat(t.duration," }"):"undefined"!=typeof HTMLVideoElement&&t instanceof HTMLVideoElement?t='Video->{ src: "'.concat(t.src,'", width: ').concat(t.videoWidth,", height: ").concat(t.videoHeight,", duration: ").concat(t.duration," }"):"undefined"!=typeof Storage&&t instanceof Storage?t="Storage->{ length: ".concat(t.length," }"):"undefined"!=typeof Worker&&"undefined"!=typeof ServiceWorker&&"undefined"!=typeof SharedWorker&&(t instanceof Worker||t instanceof ServiceWorker||t instanceof SharedWorker)?t="Worker->".concat(t.constructor.name,' { scriptURL: "').concat(t.scriptURL,'" }'):"undefined"!=typeof WebSocket&&t instanceof WebSocket?t='WebSocket->{ url: "'.concat(t.url,'", readyState: ').concat(t.readyState," }"):"undefined"!=typeof XMLHttpRequest&&t instanceof XMLHttpRequest?t="XMLHttpRequest->{ readyState: ".concat(t.readyState,", status: ").concat(t.status," }"):"undefined"!=typeof EventSource&&t instanceof EventSource?t='EventSource->{ url: "'.concat(t.url,'", readyState: ').concat(t.readyState," }"):"undefined"!=typeof MediaStream&&t instanceof MediaStream?t='MediaStream->{ id: "'.concat(t.id,'", active: ').concat(t.active," }"):"undefined"!=typeof RTCPeerConnection&&t instanceof RTCPeerConnection?t='RTCPeerConnection->{ connectionState: "'.concat(t.connectionState,'" }'):"undefined"!=typeof AudioContext&&t instanceof AudioContext?t='AudioContext->{ state: "'.concat(t.state,'" }'):"undefined"!=typeof Element&&t instanceof Element?t='Element->{ tagName: "'.concat(t.tagName,'", id: "').concat(t.id,'", class: "').concat(t.className,'" }'):"undefined"!=typeof HTMLCanvasElement&&t instanceof HTMLCanvasElement?t="Canvas->{ width: ".concat(t.width,", height: ").concat(t.height," }"):"undefined"!=typeof HTMLAudioElement&&t instanceof HTMLAudioElement?t='Audio->{ src: "'.concat(t.src,'", duration: ').concat(t.duration," }"):"undefined"!=typeof HTMLVideoElement&&t instanceof HTMLVideoElement?t='Video->{ src: "'.concat(t.src,'", width: ').concat(t.videoWidth,", height: ").concat(t.videoHeight,", duration: ").concat(t.duration," }"):"undefined"!=typeof Geolocation&&t instanceof Geolocation?t="Geolocation->{ }":"undefined"!=typeof Performance&&t instanceof Performance?t="Performance->{ now: ".concat(t.now()," }"):"undefined"!=typeof Event&&t instanceof Event&&(t='Event->{ type: "'.concat(t.type,'", target: "').concat(t.target,'" }'));if("string"==typeof t)return this.truncateStrBySize(t,r);if("object"!=(0,o.default)(t))return t;if(r<2)return{};var s=!1;if(r>50){var u=this.calculateStringByteSize(t);u>r&&(r-=50,s=!0)}var c=2,f=this.safeJsonStringify(t,(function(t,n){var i=e.calculateStringByteSize(t);if("object"==(0,o.default)(n)){if(c+i+6>r)return;return c=c+i+6,n}var a=e.calculateStringByteSize(n),s=i+a+6;if(!(s+c>r))return c+=s,n})),l=JSON.parse(f);return s&&(Array.isArray(l)?l.push("(已截断其余部分)"):"object"==(0,o.default)(l)&&(l["*注意"]="(已截断其余部分)")),l}catch(d){return console.log("compressObject error",d),""}},compressArray:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"start",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:995328;(new Date).getTime();try{if(!e||0==e.length||!e[0])return[];var n=0;while(1){if(n+=1,n>999999)return e;if(!e||0==e.length)return[];if(this.calculateStringByteSize(e)<=r)return e;"start"==t?e.splice(0,1):e.splice(e.length-1,1)}}catch(i){return console.log("compressArray error",i),[]}},calculateStringByteSize:function(e){try{var t=(0,o.default)(e);if("bigint"==t||"number"==t||"boolean"==t)return e.toString().length;if("function"==t)e=e.toString().length;else{if(null===e||void 0===e)return 0;try{return e=this.safeJsonStringify(e),e&&e.hasOwnProperty?e.length:20480}catch(a){return console.log("calculateStringByteSize error",a),20480}}for(var r=0,n=0;n<e.length;n++){var i=e.charCodeAt(n);i<128?r+=1:i<2048?r+=2:i>=55296&&i<=57343?(r+=4,n++):r+=3}return r}catch(a){return console.log("calculateStringByteSize error",a),1048576}},safeJsonStringify:function(e,t){if(!e)return"{}";try{return t?JSON.stringify(e,(function(e,r){return t(e,r)})):JSON.stringify(e,(function(e,t){return t}))}catch(i){}try{var r=new WeakSet,n=JSON.stringify(e,(function(e,n){if("object"==(0,o.default)(n))try{if(n instanceof File&&(n="js:File"),n&&n.constructor&&n.constructor.name&&"string"==typeof n.constructor.name){var a=n.constructor.name;if("VueComponent"==a)return"js:Object:VueComponent"}}catch(i){}if("function"==typeof n)try{n=n.toString()}catch(i){n="js:function"}if("object"===(0,o.default)(n)&&null!==n){if(r.has(n))return;r.add(n)}if(!t||"function"!=typeof t)return n;try{return t(e,n)}catch(i){console.log("handleValue error",i)}}));return r=null,n}catch(i){return"{}"}},truncateStrBySize:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:20480;try{if(t<1)return"";if(this.calculateStringByteSize(e)<=t)return e;var r="";t>30&&(r="(已截断多余部分)",t-=30);var n,i=0,o=e.length;while(i<o){n=Math.floor((i+o)/2);var a=this.calculateStringByteSize(e.substring(0,n));a>t?o=n:i=n+1}return e.substring(0,i-1)+r}catch(s){return console.log("truncateStrBySize error",s),""}}};t.default=a},9500:function(e,t,r){"use strict";var n=r("2831"),i=n.define("Time",(function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})})),o=n.define("AttributeTypeValue",(function(){this.seq().obj(this.key("type").objid(),this.key("value").any())})),a=n.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())})),s=n.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())})),u=n.define("RelativeDistinguishedName",(function(){this.setof(o)})),c=n.define("RDNSequence",(function(){this.seqof(u)})),f=n.define("Name",(function(){this.choice({rdnSequence:this.use(c)})})),l=n.define("Validity",(function(){this.seq().obj(this.key("notBefore").use(i),this.key("notAfter").use(i))})),d=n.define("Extension",(function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())})),h=n.define("TBSCertificate",(function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(a),this.key("issuer").use(f),this.key("validity").use(l),this.key("subject").use(f),this.key("subjectPublicKeyInfo").use(s),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(d).optional())})),p=n.define("X509Certificate",(function(){this.seq().obj(this.key("tbsCertificate").use(h),this.key("signatureAlgorithm").use(a),this.key("signatureValue").bitstr())}));e.exports=p},9544:function(e,t,r){var n=r("1f63");t.encrypt=function(e,t){var r=n(t,e._prev);return e._prev=e._cipher.encryptBlock(r),e._prev},t.decrypt=function(e,t){var r=e._prev;e._prev=t;var i=e._cipher.decryptBlock(t);return n(i,r)}},9579:function(e,t,r){var n=r("2c2e"),i=r("cef8"),o=r("0b34"),a=r("5f79").Buffer,s=new Array(64);function u(){this.init(),this._w=s,o.call(this,64,56)}n(u,i),u.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},u.prototype._hash=function(){var e=a.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},e.exports=u},"959e":function(e,t,r){"use strict";var n=t;n.version=r("298a").version,n.utils=r("4e45"),n.rand=r("b718"),n.curve=r("b51b"),n.curves=r("850f"),n.ec=r("175d"),n.eddsa=r("f9ed")},"976e":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TextEncoder=void 0;var n=r("f2b5"),i=r("eab1"),o=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.getEncodingMode=function(){return i.TEXT_ENCODATION},t.prototype.encodeChar=function(e,t){if(e===" ".charCodeAt(0))return t.append(3),1;if(e>="0".charCodeAt(0)&&e<="9".charCodeAt(0))return t.append(e-48+4),1;if(e>="a".charCodeAt(0)&&e<="z".charCodeAt(0))return t.append(e-97+14),1;if(e<" ".charCodeAt(0))return t.append(0),t.append(e),2;if(e<="/".charCodeAt(0))return t.append(1),t.append(e-33),2;if(e<="@".charCodeAt(0))return t.append(1),t.append(e-58+15),2;if(e>="[".charCodeAt(0)&&e<="_".charCodeAt(0))return t.append(1),t.append(e-91+22),2;if(e==="`".charCodeAt(0))return t.append(2),t.append(0),2;if(e<="Z".charCodeAt(0))return t.append(2),t.append(e-65+1),2;if(e<=127)return t.append(2),t.append(e-123+27),2;t.append("1");var r=2;return r+=this.encodeChar(e-128,t),r},t}(n.C40Encoder);t.TextEncoder=a},"98ab":function(e,t,r){"use strict";(function(e){var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("af34")),o=n(r("271d")),a=n(r("a22d")),s=n(r("93d8")),u={logList:[],options:null,install:function(){var t=this;this.options=a.default.getOptions(),this.options.console.status&&(this.logList=o.default.get("console"),this.logList||(this.logList=[]),this.syncReqData(),e.__log__?t.mountUniConsole():t.mountJsConsole(),
- //! 删除指定记录
- e.$on("devTools_delConsoleItem",(function(e){var r=t.logList.findIndex((function(t){var r=JSON.stringify(t.list);return r==JSON.stringify(e.list)&&t.time==e.time&&t.page==e.page&&t.type==e.type}));-1!=r&&t.logList.splice(r,1),t.saveData()})),
- //! 清空console日志
- e.$on("devTools_delConsoleAll",(function(){t.logList=[],t.saveData()})))},syncReqData:function(){var e=this;setTimeout((function(){try{e.saveData()}catch(t){console.log("console.syncReqData error",t)}e.syncReqData()}),3e3)},saveData:function(){this.logList=s.default.compressArray(this.logList,"end",this.options.console.cache.size),o.default.set("console",this.logList)},mountJsConsole:function(){var e=this;try{var t=function(t,u){try{var c=[];if(u&&u.length>0)for(var f=u,l=e.options.console.cache.rowSize/f.length,d=0;d<f.length;d++){var h=s.default.compressObject(f[d],l);c.push(h)}else c=[];var p="未知";try{var g=getCurrentPages(),y=g[g.length-1];y&&y.route&&(p=y.route)}catch(v){}e.logList.unshift({list:c,time:(new Date).getTime(),page:p,type:t}),e.options.console.isOutput&&("error"==t?n.apply(void 0,(0,i.default)(u)):"warn"==t?o.apply(void 0,(0,i.default)(u)):"info"==t?a.apply(void 0,(0,i.default)(u)):r.apply(void 0,(0,i.default)(u)))}catch(v){e.options.console.isOutput&&n("监听console出错",v)}},r=console.log;try{globalThis.consoleLog=function(){var e;(e=console).log.apply(e,arguments)}}catch(u){}try{window.consoleLog=function(){var e;(e=console).log.apply(e,arguments)}}catch(u){}console.log=function(){t("log",arguments)};var n=console.error;console.error=function(){try{var r=Array.prototype.slice.call(arguments);if(r[0]&&"string"==typeof r[0]&&("__ignoreReport__"==r[0]||0==r[0].indexOf("__ignoreReport__"))){var i=[];if(r.length>1)for(var o=0;o<r.length;o++)0!=o&&i.push(r[o]);else i[0]=r[0],i[0]=i[0].replace("__ignoreReport__","");return void(e.options.console.isOutput&&n.apply(void 0,i))}t("error",r)}catch(u){n("监听console.error出错",u)}};var o=console.warn;console.warn=function(){t("warn",arguments)};var a=console.info;console.info=function(){t("info",arguments)}}catch(u){console.log("console.install error",u)}},mountUniConsole:function(){var t=this;try{var r=e.__log__;try{globalThis.consoleLog=function(){var t;(t=e).__log__.apply(t,["log","未知来源"].concat(Array.prototype.slice.call(arguments)))}}catch(n){}try{window.consoleLog=function(){var t;(t=e).__log__.apply(t,["log","未知来源"].concat(Array.prototype.slice.call(arguments)))}}catch(n){}e.__log__=function(e,o){try{for(var a=arguments.length,u=new Array(a>2?a-2:0),c=2;c<a;c++)u[c-2]=arguments[c];if("error"==e&&u[0]&&"string"==typeof u[0]&&("__ignoreReport__"==u[0]||0==u[0].indexOf("__ignoreReport__"))){var f=[];if(u.length>1)for(var l=0;l<u.length;l++)0!=l&&f.push(u[l]);else f[0]=u[0],f[0]=f[0].replace("__ignoreReport__","");return void(t.options.console.isOutput&&r.apply(void 0,[e,o].concat(f)))}var d=[];if(u&&u.length>0)for(var h=u,p=t.options.console.cache.rowSize/h.length,g=0;g<h.length;g++){var y=s.default.compressObject(h[g],p);d.push(y)}else d=[];var v="未知";try{var b=getCurrentPages(),m=b[b.length-1];m&&m.route&&(v=m.route)}catch(n){}d.push(o),t.logList.unshift({list:d,time:(new Date).getTime(),page:v,type:e}),t.options.console.isOutput&&r.apply(void 0,[e,o].concat((0,i.default)(d)))}catch(n){t.options.console.isOutput&&r("error","监听console出错",n)}}}catch(n){console.log("console.install error",n)}}};t.default=u}).call(this,r("df3c")["default"])},"9b3a":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={status:!0,route:"/devTools/page/index",bubble:{status:!0,text:"DevTools",color:"#ffffff",bgColor:"rgba(250, 53, 52,0.7)"},pageStatistics:{status:!0,size:102400,dayOnlineRowMax:30},console:{status:!0,isOutput:!0,cache:{status:!0,size:524288,rowSize:4096}},uniBus:{status:!0,cache:{status:!0,size:524288,rowSize:10240,countMaxSize:10240}},error:{status:!0,cache:{status:!0,size:524288,rowSize:4096}},network:{status:!0,cache:{status:!0,size:524288,rowSize:4096}},logs:{status:!0,cache:{status:!0,size:524288,rowSize:4096}}};t.default=n},"9c16":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("f7fd")),o=n(r("36d3")),a=n(r("e5d0")),s=n(r("1ff8")),u=function(){function e(t,r){void 0===t?(this.size=0,this.bits=new Int32Array(1)):(this.size=t,this.bits=void 0===r||null===r?e.makeArray(t):r)}return e.prototype.getSize=function(){return this.size},e.prototype.getSizeInBytes=function(){return Math.floor((this.size+7)/8)},e.prototype.ensureCapacity=function(t){if(t>32*this.bits.length){var r=e.makeArray(t);s.default.arraycopy(this.bits,0,r,0,this.bits.length),this.bits=r}},e.prototype.get=function(e){return 0!==(this.bits[Math.floor(e/32)]&1<<(31&e))},e.prototype.set=function(e){this.bits[Math.floor(e/32)]|=1<<(31&e)},e.prototype.flip=function(e){this.bits[Math.floor(e/32)]^=1<<(31&e)},e.prototype.getNextSet=function(e){var t=this.size;if(e>=t)return t;var r=this.bits,n=Math.floor(e/32),i=r[n];i&=~((1<<(31&e))-1);var o=r.length;while(0===i){if(++n===o)return t;i=r[n]}var s=32*n+a.default.numberOfTrailingZeros(i);return s>t?t:s},e.prototype.getNextUnset=function(e){var t=this.size;if(e>=t)return t;var r=this.bits,n=Math.floor(e/32),i=~r[n];i&=~((1<<(31&e))-1);var o=r.length;while(0===i){if(++n===o)return t;i=~r[n]}var s=32*n+a.default.numberOfTrailingZeros(i);return s>t?t:s},e.prototype.setBulk=function(e,t){this.bits[Math.floor(e/32)]=t},e.prototype.setRange=function(e,t){if(t<e||e<0||t>this.size)throw new i.default;if(t!==e){t--;for(var r=Math.floor(e/32),n=Math.floor(t/32),o=this.bits,a=r;a<=n;a++){var s=a>r?0:31&e,u=a<n?31:31&t,c=(2<<u)-(1<<s);o[a]|=c}}},e.prototype.clear=function(){for(var e=this.bits.length,t=this.bits,r=0;r<e;r++)t[r]=0},e.prototype.isRange=function(e,t,r){if(t<e||e<0||t>this.size)throw new i.default;if(t===e)return!0;t--;for(var n=Math.floor(e/32),o=Math.floor(t/32),a=this.bits,s=n;s<=o;s++){var u=s>n?0:31&e,c=s<o?31:31&t,f=(2<<c)-(1<<u)&4294967295;if((a[s]&f)!==(r?f:0))return!1}return!0},e.prototype.appendBit=function(e){this.ensureCapacity(this.size+1),e&&(this.bits[Math.floor(this.size/32)]|=1<<(31&this.size)),this.size++},e.prototype.appendBits=function(e,t){if(t<0||t>32)throw new i.default("Num bits must be between 0 and 32");this.ensureCapacity(this.size+t);for(var r=t;r>0;r--)this.appendBit(1===(e>>r-1&1))},e.prototype.appendBitArray=function(e){var t=e.size;this.ensureCapacity(this.size+t);for(var r=0;r<t;r++)this.appendBit(e.get(r))},e.prototype.xor=function(e){if(this.size!==e.size)throw new i.default("Sizes don't match");for(var t=this.bits,r=0,n=t.length;r<n;r++)t[r]^=e.bits[r]},e.prototype.toBytes=function(e,t,r,n){for(var i=0;i<n;i++){for(var o=0,a=0;a<8;a++)this.get(e)&&(o|=1<<7-a),e++;t[r+i]=o}},e.prototype.getBitArray=function(){return this.bits},e.prototype.reverse=function(){for(var e=new Int32Array(this.bits.length),t=Math.floor((this.size-1)/32),r=t+1,n=this.bits,i=0;i<r;i++){var o=n[i];o=o>>1&1431655765|(1431655765&o)<<1,o=o>>2&858993459|(858993459&o)<<2,o=o>>4&252645135|(252645135&o)<<4,o=o>>8&16711935|(16711935&o)<<8,o=o>>16&65535|(65535&o)<<16,e[t-i]=o}if(this.size!==32*r){var a=32*r-this.size,s=e[0]>>>a;for(i=1;i<r;i++){var u=e[i];s|=u<<32-a,e[i-1]=s,s=u>>>a}e[r-1]=s}this.bits=e},e.makeArray=function(e){return new Int32Array(Math.floor((e+31)/32))},e.prototype.equals=function(t){if(!(t instanceof e))return!1;var r=t;return this.size===r.size&&o.default.equals(this.bits,r.bits)},e.prototype.hashCode=function(){return 31*this.size+o.default.hashCode(this.bits)},e.prototype.toString=function(){for(var e="",t=0,r=this.size;t<r;t++)0===(7&t)&&(e+=" "),e+=this.get(t)?"X":".";return e},e.prototype.clone=function(){return new e(this.size,this.bits.slice())},e.prototype.toArray=function(){for(var e=[],t=0,r=this.size;t<r;t++)e.push(this.get(t));return e},e}(),c=u;t.default=c},"9c2f":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.MinimalECIInput=void 0;var i=r("9cd0"),o=n(r("e5d0")),a=n(r("d4f8")),s=function(){function e(e,t,r){this.fnc1=r;var n=new i.ECIEncoderSet(e,t,r);if(1===n.length())for(var o=0;o<this.bytes.length;o++){var a=e.charAt(o).charCodeAt(0);this.bytes[o]=a===r?1e3:a}else this.bytes=this.encodeMinimally(e,n,r)}return e.prototype.getFNC1Character=function(){return this.fnc1},e.prototype.length=function(){return this.bytes.length},e.prototype.haveNCharacters=function(e,t){if(e+t-1>=this.bytes.length)return!1;for(var r=0;r<t;r++)if(this.isECI(e+r))return!1;return!0},e.prototype.charAt=function(e){if(e<0||e>=this.length())throw new Error(""+e);if(this.isECI(e))throw new Error("value at "+e+" is not a character but an ECI");return this.isFNC1(e)?this.fnc1:this.bytes[e]},e.prototype.subSequence=function(e,t){if(e<0||e>t||t>this.length())throw new Error(""+e);for(var r=new a.default,n=e;n<t;n++){if(this.isECI(n))throw new Error("value at "+n+" is not a character but an ECI");r.append(this.charAt(n))}return r.toString()},e.prototype.isECI=function(e){if(e<0||e>=this.length())throw new Error(""+e);return this.bytes[e]>255&&this.bytes[e]<=999},e.prototype.isFNC1=function(e){if(e<0||e>=this.length())throw new Error(""+e);return 1e3===this.bytes[e]},e.prototype.getECIValue=function(e){if(e<0||e>=this.length())throw new Error(""+e);if(!this.isECI(e))throw new Error("value at "+e+" is not an ECI but a character");return this.bytes[e]-256},e.prototype.addEdge=function(e,t,r){(null==e[t][r.encoderIndex]||e[t][r.encoderIndex].cachedTotalSize>r.cachedTotalSize)&&(e[t][r.encoderIndex]=r)},e.prototype.addEdges=function(e,t,r,n,i,o){var a=e.charAt(n).charCodeAt(0),s=0,c=t.length();t.getPriorityEncoderIndex()>=0&&(a===o||t.canEncode(a,t.getPriorityEncoderIndex()))&&(s=t.getPriorityEncoderIndex(),c=s+1);for(var f=s;f<c;f++)(a===o||t.canEncode(a,f))&&this.addEdge(r,n+1,new u(a,t,f,i,o))},e.prototype.encodeMinimally=function(e,t,r){var n=e.length,i=new(u[n+1][t.length()]);this.addEdges(e,t,i,0,null,r);for(var a=1;a<=n;a++){for(var s=0;s<t.length();s++)null!=i[a][s]&&a<n&&this.addEdges(e,t,i,a,i[a][s],r);for(s=0;s<t.length();s++)i[a-1][s]=null}var c=-1,f=o.default.MAX_VALUE;for(s=0;s<t.length();s++)if(null!=i[n][s]){var l=i[n][s];l.cachedTotalSize<f&&(f=l.cachedTotalSize,c=s)}if(c<0)throw new Error('Failed to encode "'+e+'"');var d=[],h=i[n][c];while(null!=h){if(h.isFNC1())d.unshift(1e3);else{var p=t.encode(h.c,h.encoderIndex);for(a=p.length-1;a>=0;a--)d.unshift(255&p[a])}var g=null===h.previous?0:h.previous.encoderIndex;g!==h.encoderIndex&&d.unshift(256+t.getECIValue(h.encoderIndex)),h=h.previous}var y=[];for(a=0;a<y.length;a++)y[a]=d[a];return y},e}();t.MinimalECIInput=s;var u=function(){function e(e,t,r,n,i){this.c=e,this.encoderSet=t,this.encoderIndex=r,this.previous=n,this.fnc1=i,this.c=e===i?1e3:e;var o=this.isFNC1()?1:t.encode(e,r).length,a=null===n?0:n.encoderIndex;a!==r&&(o+=3),null!=n&&(o+=n.cachedTotalSize),this.cachedTotalSize=o}return e.prototype.isFNC1=function(){return 1e3===this.c},e}()},"9cd0":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.ECIEncoderSet=void 0;var i=n(r("a8ae")),o=n(r("87e7")),a=n(r("a5e6")),s=n(r("d618")),u=function(e){var t="function"===typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},c=function(){function e(e){this.charset=e,this.name=e.name}return e.prototype.canEncode=function(e){try{return null!=a.default.encode(e,this.charset)}catch(t){return!1}},e}(),f=function(){function e(e,t,r){var n,a,s,f,l,d;this.ENCODERS=["IBM437","ISO-8859-2","ISO-8859-3","ISO-8859-4","ISO-8859-5","ISO-8859-6","ISO-8859-7","ISO-8859-8","ISO-8859-9","ISO-8859-10","ISO-8859-11","ISO-8859-13","ISO-8859-14","ISO-8859-15","ISO-8859-16","windows-1250","windows-1251","windows-1252","windows-1256","Shift_JIS"].map((function(e){return new c(i.default.forName(e))})),this.encoders=[];var h=[];h.push(new c(o.default.ISO_8859_1));for(var p=null!=t&&t.name.startsWith("UTF"),g=0;g<e.length;g++){var y=!1;try{for(var v=(n=void 0,u(h)),b=v.next();!b.done;b=v.next()){var m=b.value,_=e.charAt(g),w=_.charCodeAt(0);if(w===r||m.canEncode(_)){y=!0;break}}}catch(I){n={error:I}}finally{try{b&&!b.done&&(a=v.return)&&a.call(v)}finally{if(n)throw n.error}}if(!y)try{for(var A=(s=void 0,u(this.ENCODERS)),S=A.next();!S.done;S=A.next()){m=S.value;if(m.canEncode(e.charAt(g))){h.push(m),y=!0;break}}}catch(T){s={error:T}}finally{try{S&&!S.done&&(f=A.return)&&f.call(A)}finally{if(s)throw s.error}}y||(p=!0)}if(1!==h.length||p){this.encoders=[];var x=0;try{for(var E=u(h),C=E.next();!C.done;C=E.next()){m=C.value;this.encoders[x++]=m}}catch(P){l={error:P}}finally{try{C&&!C.done&&(d=E.return)&&d.call(E)}finally{if(l)throw l.error}}}else this.encoders=[h[0]];var O=-1;if(null!=t)for(g=0;g<this.encoders.length;g++)if(null!=this.encoders[g]&&t.name===this.encoders[g].name){O=g;break}this.priorityEncoderIndex=O}return e.prototype.length=function(){return this.encoders.length},e.prototype.getCharsetName=function(e){if(!(e<this.length()))throw new Error("index must be less than length");return this.encoders[e].name},e.prototype.getCharset=function(e){if(!(e<this.length()))throw new Error("index must be less than length");return this.encoders[e].charset},e.prototype.getECIValue=function(e){return this.encoders[e].charset.getValueIdentifier()},e.prototype.getPriorityEncoderIndex=function(){return this.priorityEncoderIndex},e.prototype.canEncode=function(e,t){if(!(t<this.length()))throw new Error("index must be less than length");return!0},e.prototype.encode=function(e,t){if(!(t<this.length()))throw new Error("index must be less than length");return a.default.encode(s.default.getCharAt(e),this.encoders[t].name)},e}();t.ECIEncoderSet=f},"9cd5":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("271d")),o=n(r("a22d")),a=n(r("93d8")),s=r("de5a");var u=function(e,t){try{if(!e)return!1;var r=o.default.getOptions();if(!r.pageStatistics.status)return;//! 配置文件关闭页面统计
- var n=i.default.get("pageCount");n||(n=[]);var u=n.findIndex((function(t){return t.route==e}));-1==u?n.push({route:e,activeTimeCount:t}):n[u].activeTimeCount=t+n[u].activeTimeCount,n=a.default.compressArray(n,"end",r.pageStatistics.size),i.default.set("pageCount",n);var c=(new Date).getTime(),f=(0,s.timeFormat)(c,"yyyy-mm-dd"),l=i.default.get("dayOnline");l||(l=[]);var d=l.findIndex((function(e){return e.date==f}));if(-1==d)l.unshift({date:f,activeTimeCount:t,page:[{r:e,t:t}]});else{l[d].activeTimeCount=l[d].activeTimeCount+t;var h=l[d].page.findIndex((function(t){return t.r==e}));-1==h?l[d].page.push({r:e,t:t}):l[d].page[h].t=l[d].page[h].t+t}l.length>r.pageStatistics.dayOnlineRowMax&&(l=l.splice(0,r.pageStatistics.dayOnlineRowMax)),l=a.default.compressArray(l,"end",r.pageStatistics.size),i.default.set("dayOnline",l)}catch(p){console.log("pageStatistics error",p)}};t.default=u},"9e56":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("7322")),o=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.kind="IllegalStateException",t}(i.default),s=a;t.default=s},"9f25":function(e,t,r){"use strict";var n=r("d3c2"),i=r("2c2e"),o={};function a(e){n.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t<this.iv.length;t++)this.iv[t]=e[t]}t.instantiate=function(e){function t(t){e.call(this,t),this._cbcInit()}i(t,e);for(var r=Object.keys(o),n=0;n<r.length;n++){var a=r[n];t.prototype[a]=o[a]}return t.create=function(e){return new t(e)},t},o._cbcInit=function(){var e=new a(this.options.iv);this._cbcState=e},o._update=function(e,t,r,n){var i=this._cbcState,o=this.constructor.super_.prototype,a=i.iv;if("encrypt"===this.type){for(var s=0;s<this.blockSize;s++)a[s]^=e[t+s];o._update.call(this,a,0,r,n);for(s=0;s<this.blockSize;s++)a[s]=r[n+s]}else{o._update.call(this,e,t,r,n);for(s=0;s<this.blockSize;s++)r[n+s]^=a[s];for(s=0;s<this.blockSize;s++)a[s]=e[t+s]}}},"9fc1":function(e,t,r){var n=r("3b2d")["default"];function i(){"use strict";
- /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e.exports=i=function(){return r},e.exports.__esModule=!0,e.exports["default"]=e.exports;var t,r={},o=Object.prototype,a=o.hasOwnProperty,s=Object.defineProperty||function(e,t,r){e[t]=r.value},u="function"==typeof Symbol?Symbol:{},c=u.iterator||"@@iterator",f=u.asyncIterator||"@@asyncIterator",l=u.toStringTag||"@@toStringTag";function d(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(t){d=function(e,t,r){return e[t]=r}}function h(e,t,r,n){var i=t&&t.prototype instanceof m?t:m,o=Object.create(i.prototype),a=new k(n||[]);return s(o,"_invoke",{value:I(e,r,a)}),o}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}r.wrap=h;var g="suspendedStart",y="executing",v="completed",b={};function m(){}function _(){}function w(){}var A={};d(A,c,(function(){return this}));var S=Object.getPrototypeOf,x=S&&S(S(R([])));x&&x!==o&&a.call(x,c)&&(A=x);var E=w.prototype=m.prototype=Object.create(A);function C(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function r(i,o,s,u){var c=p(e[i],e,o);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==n(l)&&a.call(l,"__await")?t.resolve(l.__await).then((function(e){r("next",e,s,u)}),(function(e){r("throw",e,s,u)})):t.resolve(l).then((function(e){f.value=e,s(f)}),(function(e){return r("throw",e,s,u)}))}u(c.arg)}var i;s(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,i){r(e,n,t,i)}))}return i=i?i.then(o,o):o()}})}function I(e,r,n){var i=g;return function(o,a){if(i===y)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var u=T(s,n);if(u){if(u===b)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===g)throw i=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=y;var c=p(e,r,n);if("normal"===c.type){if(i=n.done?v:"suspendedYield",c.arg===b)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=v,n.method="throw",n.arg=c.arg)}}}function T(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator["return"]&&(r.method="return",r.arg=t,T(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var o=p(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,b;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,b):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function M(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function R(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(a.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(n(e)+" is not iterable")}return _.prototype=w,s(E,"constructor",{value:w,configurable:!0}),s(w,"constructor",{value:_,configurable:!0}),_.displayName=d(w,l,"GeneratorFunction"),r.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===_||"GeneratorFunction"===(t.displayName||t.name))},r.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,d(e,l,"GeneratorFunction")),e.prototype=Object.create(E),e},r.awrap=function(e){return{__await:e}},C(O.prototype),d(O.prototype,f,(function(){return this})),r.AsyncIterator=O,r.async=function(e,t,n,i,o){void 0===o&&(o=Promise);var a=new O(h(e,t,n,i),o);return r.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},C(E),d(E,l,"Generator"),d(E,c,(function(){return this})),d(E,"toString",(function(){return"[object Generator]"})),r.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},r.values=R,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(M),!e)for(var r in this)"t"===r.charAt(0)&&a.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,i){return s.type="throw",s.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var u=a.call(o,"catchLoc"),c=a.call(o,"finallyLoc");if(u&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,b):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),M(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;M(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),b}},r}e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},"9fc4":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("c789")),o=n(r("7e0b")),a=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),s=function(e){function t(t){var r=e.call(this,t)||this;return r.matrix=null,r}return a(t,e),t.prototype.getBlackMatrix=function(){if(null!==this.matrix)return this.matrix;var r=this.getLuminanceSource(),n=r.getWidth(),i=r.getHeight();if(n>=t.MINIMUM_DIMENSION&&i>=t.MINIMUM_DIMENSION){var a=r.getMatrix(),s=n>>t.BLOCK_SIZE_POWER;0!==(n&t.BLOCK_SIZE_MASK)&&s++;var u=i>>t.BLOCK_SIZE_POWER;0!==(i&t.BLOCK_SIZE_MASK)&&u++;var c=t.calculateBlackPoints(a,s,u,n,i),f=new o.default(n,i);t.calculateThresholdForBlock(a,s,u,n,i,c,f),this.matrix=f}else this.matrix=e.prototype.getBlackMatrix.call(this);return this.matrix},t.prototype.createBinarizer=function(e){return new t(e)},t.calculateThresholdForBlock=function(e,r,n,i,o,a,s){for(var u=o-t.BLOCK_SIZE,c=i-t.BLOCK_SIZE,f=0;f<n;f++){var l=f<<t.BLOCK_SIZE_POWER;l>u&&(l=u);for(var d=t.cap(f,2,n-3),h=0;h<r;h++){var p=h<<t.BLOCK_SIZE_POWER;p>c&&(p=c);for(var g=t.cap(h,2,r-3),y=0,v=-2;v<=2;v++){var b=a[d+v];y+=b[g-2]+b[g-1]+b[g]+b[g+1]+b[g+2]}var m=y/25;t.thresholdBlock(e,p,l,m,i,s)}}},t.cap=function(e,t,r){return e<t?t:e>r?r:e},t.thresholdBlock=function(e,r,n,i,o,a){for(var s=0,u=n*o+r;s<t.BLOCK_SIZE;s++,u+=o)for(var c=0;c<t.BLOCK_SIZE;c++)(255&e[u+c])<=i&&a.set(r+c,n+s)},t.calculateBlackPoints=function(e,r,n,i,o){for(var a=o-t.BLOCK_SIZE,s=i-t.BLOCK_SIZE,u=new Array(n),c=0;c<n;c++){u[c]=new Int32Array(r);var f=c<<t.BLOCK_SIZE_POWER;f>a&&(f=a);for(var l=0;l<r;l++){var d=l<<t.BLOCK_SIZE_POWER;d>s&&(d=s);for(var h=0,p=255,g=0,y=0,v=f*i+d;y<t.BLOCK_SIZE;y++,v+=i){for(var b=0;b<t.BLOCK_SIZE;b++){var m=255&e[v+b];h+=m,m<p&&(p=m),m>g&&(g=m)}if(g-p>t.MIN_DYNAMIC_RANGE)for(y++,v+=i;y<t.BLOCK_SIZE;y++,v+=i)for(b=0;b<t.BLOCK_SIZE;b++)h+=255&e[v+b]}var _=h>>2*t.BLOCK_SIZE_POWER;if(g-p<=t.MIN_DYNAMIC_RANGE&&(_=p/2,c>0&&l>0)){var w=(u[c-1][l]+2*u[c][l-1]+u[c-1][l-1])/4;p<w&&(_=w)}u[c][l]=_}}return u},t.BLOCK_SIZE_POWER=3,t.BLOCK_SIZE=1<<t.BLOCK_SIZE_POWER,t.BLOCK_SIZE_MASK=t.BLOCK_SIZE-1,t.MINIMUM_DIMENSION=5*t.BLOCK_SIZE,t.MIN_DYNAMIC_RANGE=24,t}(i.default),u=s;t.default=u},"9fe1":function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("9c16")),o=function(){function e(){}return e.buildBitArray=function(e){var t=2*e.length-1;null==e[e.length-1].getRightChar()&&(t-=1);for(var r=12*t,n=new i.default(r),o=0,a=e[0],s=a.getRightChar().getValue(),u=11;u>=0;--u)0!==(s&1<<u)&&n.set(o),o++;for(u=1;u<e.length;++u){for(var c=e[u],f=c.getLeftChar().getValue(),l=11;l>=0;--l)0!==(f&1<<l)&&n.set(o),o++;if(null!==c.getRightChar()){var d=c.getRightChar().getValue();for(l=11;l>=0;--l)0!==(d&1<<l)&&n.set(o),o++}}return n},e}(),a=o;t.default=a},a080:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.add=function(e,t,r){return new i.default(e,t,r)},t.addBinaryShift=function(e,t,r){return new o.default(e,t,r)};var i=n(r("c20f")),o=n(r("4f82"))},a1f5:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("b717")),o=n(r("76a0")),a=n(r("0c24")),s=n(r("4d7d")),u=n(r("3655")),c=n(r("3b1b")),f=n(r("0680")),l=n(r("f228")),d=n(r("d889")),h=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),p=function(e){var t="function"===typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},g=function(e){function t(t){var r=e.call(this)||this,n=null==t?null:t.get(o.default.POSSIBLE_FORMATS),a=[];return null!=n&&(n.indexOf(i.default.EAN_13)>-1&&a.push(new u.default),n.indexOf(i.default.UPC_A)>-1&&a.push(new f.default),n.indexOf(i.default.EAN_8)>-1&&a.push(new c.default),n.indexOf(i.default.UPC_E)>-1&&a.push(new d.default)),0===a.length&&(a.push(new u.default),a.push(new f.default),a.push(new c.default),a.push(new d.default)),r.readers=a,r}return h(t,e),t.prototype.decodeRow=function(e,t,r){var n,s;try{for(var u=p(this.readers),c=u.next();!c.done;c=u.next()){var f=c.value;try{var d=f.decodeRow(e,t,r),h=d.getBarcodeFormat()===i.default.EAN_13&&"0"===d.getText().charAt(0),g=null==r?null:r.get(o.default.POSSIBLE_FORMATS),y=null==g||g.includes(i.default.UPC_A);if(h&&y){var v=d.getRawBytes(),b=new a.default(d.getText().substring(1),v,v?v.length:null,d.getResultPoints(),i.default.UPC_A);return b.putAllMetadata(d.getResultMetadata()),b}return d}catch(m){}}}catch(_){n={error:_}}finally{try{c&&!c.done&&(s=u.return)&&s.call(u)}finally{if(n)throw n.error}}throw new l.default},t.prototype.reset=function(){var e,t;try{for(var r=p(this.readers),n=r.next();!n.done;n=r.next()){var i=n.value;i.reset()}}catch(o){e={error:o}}finally{try{n&&!n.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}},t}(s.default),y=g;t.default=y},a22d:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("af34")),o=n(r("3b2d")),a=n(r("271d")),s=function(e,t,r){var n;return n=r,Math.ceil(1024*n)},u={cacheKey:"options_v8",defaultOptions:{version:3.81,status:!1,route:"/devTools/page/index",bubble:{status:!1,text:"调试工具",color:"#ffffff",bgColor:"rgba(250, 53, 52,0.7)"},console:{status:!0,isOutput:!0,cache:{status:!0,size:s(0,0,512),rowSize:s(0,0,10)}},error:{status:!0,cache:{status:!0,size:s(0,0,512),rowSize:s(0,0,10)}},network:{status:!0,cache:{status:!0,size:s(0,0,512),rowSize:s(0,0,10)}},logs:{status:!0,cache:{status:!0,size:s(0,0,512),rowSize:s(0,0,.4)}},pageStatistics:{status:!0,size:s(0,0,512),dayOnlineRowMax:60},uniBus:{status:!0,cache:{status:!0,size:s(0,0,512),rowSize:s(0,0,10),countMaxSize:s(0,0,512)}}},getOptions:function(){try{var e=a.default.get(this.cacheKey);if(!e)return{status:!1};var t=String(e.route);return e.devRoute=t.substring(1,t.length),e}catch(r){return console.log("devOptions.getOptions error: ",r),{status:!1}}},setOptions:function(e){try{if(e||(e=this.defaultOptions),e.status&&(!e.route||"string"!=typeof e.route||0!=e.route.indexOf("/")))return this.outputError("devTools 调试工具配置出错: [route] 参数配置错误!");var t=function e(t){try{for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];if(!n.length)return t;var s=n[0];for(var u in s)s.hasOwnProperty(u)&&("object"===(0,o.default)(s[u])&&void 0!==(0,o.default)(t[u])?t[u]=e({},t[u],s[u]):t[u]=s[u]);return e.apply(void 0,[t].concat((0,i.default)(n.slice(1))))}catch(c){return console.log("deepMerge error",c),{}}}(this.defaultOptions,e);a.default.set(this.cacheKey,t)}catch(r){console.log("devOptions.setOptions error: ",r)}},outputError:function(e){console.log("%c"+e,"\n padding: 4px;\n background-color: red;\n color: #fff;\n font-size: 15px;\n ")}};t.default=u},a27b:function(e,t,r){"use strict";var n=r("47a9"),i=r("3b2d");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r("cc6b")),a=n(r("3710")),s=d(r("d147")),u=d(r("91f1")),c=d(r("8183")),f=n(r("d618"));function l(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(l=function(e){return e?r:t})(e)}function d(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!==typeof e)return{default:e};var r=l(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=o?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(n,a,s):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}var h=function(e){var t="function"===typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},p=function(){function e(e){this.text=e}return e.prototype.encode=function(){for(var t=f.default.getCharCode(" "),r=f.default.getCharCode("\n"),n=o.default.singletonList(a.default.INITIAL_STATE),i=0;i<this.text.length;i++){var s=void 0,u=i+1<this.text.length?this.text[i+1]:0;switch(this.text[i]){case f.default.getCharCode("\r"):s=u===r?2:0;break;case f.default.getCharCode("."):s=u===t?3:0;break;case f.default.getCharCode(","):s=u===t?4:0;break;case f.default.getCharCode(":"):s=u===t?5:0;break;default:s=0}s>0?(n=e.updateStateListForPair(n,i,s),i++):n=this.updateStateListForChar(n,i)}var c=o.default.min(n,(function(e,t){return e.getBitCount()-t.getBitCount()}));return c.toBitArray(this.text)},e.prototype.updateStateListForChar=function(t,r){var n,i,o=[];try{for(var a=h(t),s=a.next();!s.done;s=a.next()){var u=s.value;this.updateStateForChar(u,r,o)}}catch(c){n={error:c}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return e.simplifyStates(o)},e.prototype.updateStateForChar=function(e,t,r){for(var n=255&this.text[t],i=u.CHAR_MAP[e.getMode()][n]>0,o=null,a=0;a<=s.MODE_PUNCT;a++){var f=u.CHAR_MAP[a][n];if(f>0){if(null==o&&(o=e.endBinaryShift(t)),!i||a===e.getMode()||a===s.MODE_DIGIT){var l=o.latchAndAppend(a,f);r.push(l)}if(!i&&c.SHIFT_TABLE[e.getMode()][a]>=0){var d=o.shiftAndAppend(a,f);r.push(d)}}}if(e.getBinaryShiftByteCount()>0||0===u.CHAR_MAP[e.getMode()][n]){var h=e.addBinaryShiftChar(t);r.push(h)}},e.updateStateListForPair=function(e,t,r){var n,i,o=[];try{for(var a=h(e),s=a.next();!s.done;s=a.next()){var u=s.value;this.updateStateForPair(u,t,r,o)}}catch(c){n={error:c}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return this.simplifyStates(o)},e.updateStateForPair=function(e,t,r,n){var i=e.endBinaryShift(t);if(n.push(i.latchAndAppend(s.MODE_PUNCT,r)),e.getMode()!==s.MODE_PUNCT&&n.push(i.shiftAndAppend(s.MODE_PUNCT,r)),3===r||4===r){var o=i.latchAndAppend(s.MODE_DIGIT,16-r).latchAndAppend(s.MODE_DIGIT,1);n.push(o)}if(e.getBinaryShiftByteCount()>0){var a=e.addBinaryShiftChar(t).addBinaryShiftChar(t+1);n.push(a)}},e.simplifyStates=function(e){var t,r,n,i,o=[];try{for(var a=h(e),s=a.next();!s.done;s=a.next()){var u=s.value,c=!0,f=function(e){if(e.isBetterThanOrEqualTo(u))return c=!1,"break";u.isBetterThanOrEqualTo(e)&&(o=o.filter((function(t){return t!==e})))};try{for(var l=(n=void 0,h(o)),d=l.next();!d.done;d=l.next()){var p=d.value,g=f(p);if("break"===g)break}}catch(y){n={error:y}}finally{try{d&&!d.done&&(i=l.return)&&i.call(l)}finally{if(n)throw n.error}}c&&o.push(u)}}catch(v){t={error:v}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}return o},e}(),g=p;t.default=g},a2dd:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("d4f8")),o=function(){function e(){this.maskPattern=-1}return e.prototype.getMode=function(){return this.mode},e.prototype.getECLevel=function(){return this.ecLevel},e.prototype.getVersion=function(){return this.version},e.prototype.getMaskPattern=function(){return this.maskPattern},e.prototype.getMatrix=function(){return this.matrix},e.prototype.toString=function(){var e=new i.default;return e.append("<<\n"),e.append(" mode: "),e.append(this.mode?this.mode.toString():"null"),e.append("\n ecLevel: "),e.append(this.ecLevel?this.ecLevel.toString():"null"),e.append("\n version: "),e.append(this.version?this.version.toString():"null"),e.append("\n maskPattern: "),e.append(this.maskPattern.toString()),this.matrix?(e.append("\n matrix:\n"),e.append(this.matrix.toString())):e.append("\n matrix: null\n"),e.append(">>\n"),e.toString()},e.prototype.setMode=function(e){this.mode=e},e.prototype.setECLevel=function(e){this.ecLevel=e},e.prototype.setVersion=function(e){this.version=e},e.prototype.setMaskPattern=function(e){this.maskPattern=e},e.prototype.setMatrix=function(e){this.matrix=e},e.isValidMaskPattern=function(t){return t>=0&&t<e.NUM_MASK_PATTERNS},e.NUM_MASK_PATTERNS=8,e}(),a=o;t.default=a},a370:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.EncoderContext=void 0;var i=n(r("d4f8")),o=n(r("44d8")),a=function(){function e(e){this.msg=e,this.pos=0,this.skipAtEnd=0;for(var t=e.split("").map((function(e){return e.charCodeAt(0)})),r=new i.default,n=0,o=t.length;n<o;n++){var a=String.fromCharCode(255&t[n]);if("?"===a&&"?"!==e.charAt(n))throw new Error("Message contains characters outside ISO-8859-1 encoding.");r.append(a)}this.msg=r.toString(),this.shape=0,this.codewords=new i.default,this.newEncoding=-1}return e.prototype.setSymbolShape=function(e){this.shape=e},e.prototype.setSizeConstraints=function(e,t){this.minSize=e,this.maxSize=t},e.prototype.getMessage=function(){return this.msg},e.prototype.setSkipAtEnd=function(e){this.skipAtEnd=e},e.prototype.getCurrentChar=function(){return this.msg.charCodeAt(this.pos)},e.prototype.getCurrent=function(){return this.msg.charCodeAt(this.pos)},e.prototype.getCodewords=function(){return this.codewords},e.prototype.writeCodewords=function(e){this.codewords.append(e)},e.prototype.writeCodeword=function(e){this.codewords.append(e)},e.prototype.getCodewordCount=function(){return this.codewords.length()},e.prototype.getNewEncoding=function(){return this.newEncoding},e.prototype.signalEncoderChange=function(e){this.newEncoding=e},e.prototype.resetEncoderSignal=function(){this.newEncoding=-1},e.prototype.hasMoreCharacters=function(){return this.pos<this.getTotalMessageCharCount()},e.prototype.getTotalMessageCharCount=function(){return this.msg.length-this.skipAtEnd},e.prototype.getRemainingCharacters=function(){return this.getTotalMessageCharCount()-this.pos},e.prototype.getSymbolInfo=function(){return this.symbolInfo},e.prototype.updateSymbolInfo=function(e){void 0===e&&(e=this.getCodewordCount()),(null==this.symbolInfo||e>this.symbolInfo.getDataCapacity())&&(this.symbolInfo=o.default.lookup(e,this.shape,this.minSize,this.maxSize,!0))},e.prototype.resetSymbolInfo=function(){this.symbolInfo=null},e}();t.EncoderContext=a},a3ea:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.BrowserAztecCodeReader=void 0;var i=r("a5d4"),o=n(r("50f3")),a=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),s=function(e){function t(t){return void 0===t&&(t=500),e.call(this,new o.default,t)||this}return a(t,e),t}(i.BrowserCodeReader);t.BrowserAztecCodeReader=s},a3fc:function(e,t,r){(function(e){function r(e,t){for(var r=0,n=e.length-1;n>=0;n--){var i=e[n];"."===i?e.splice(n,1):".."===i?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r--;r)e.unshift("..");return e}function n(e,t){if(e.filter)return e.filter(t);for(var r=[],n=0;n<e.length;n++)t(e[n],n,e)&&r.push(e[n]);return r}t.resolve=function(){for(var t="",i=!1,o=arguments.length-1;o>=-1&&!i;o--){var a=o>=0?arguments[o]:e.cwd();if("string"!==typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(t=a+"/"+t,i="/"===a.charAt(0))}return t=r(n(t.split("/"),(function(e){return!!e})),!i).join("/"),(i?"/":"")+t||"."},t.normalize=function(e){var o=t.isAbsolute(e),a="/"===i(e,-1);return e=r(n(e.split("/"),(function(e){return!!e})),!o).join("/"),e||o||(e="."),e&&a&&(e+="/"),(o?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(n(e,(function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,r){function n(e){for(var t=0;t<e.length;t++)if(""!==e[t])break;for(var r=e.length-1;r>=0;r--)if(""!==e[r])break;return t>r?[]:e.slice(t,r-t+1)}e=t.resolve(e).substr(1),r=t.resolve(r).substr(1);for(var i=n(e.split("/")),o=n(r.split("/")),a=Math.min(i.length,o.length),s=a,u=0;u<a;u++)if(i[u]!==o[u]){s=u;break}var c=[];for(u=s;u<i.length;u++)c.push("..");return c=c.concat(o.slice(s)),c.join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){if("string"!==typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),r=47===t,n=-1,i=!0,o=e.length-1;o>=1;--o)if(t=e.charCodeAt(o),47===t){if(!i){n=o;break}}else i=!1;return-1===n?r?"/":".":r&&1===n?"/":e.slice(0,n)},t.basename=function(e,t){var r=function(e){"string"!==typeof e&&(e+="");var t,r=0,n=-1,i=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!i){r=t+1;break}}else-1===n&&(i=!1,n=t+1);return-1===n?"":e.slice(r,n)}(e);return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r},t.extname=function(e){"string"!==typeof e&&(e+="");for(var t=-1,r=0,n=-1,i=!0,o=0,a=e.length-1;a>=0;--a){var s=e.charCodeAt(a);if(47!==s)-1===n&&(i=!1,n=a+1),46===s?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1);else if(!i){r=a+1;break}}return-1===t||-1===n||0===o||1===o&&t===n-1&&t===r+1?"":e.slice(t,n)};var i="b"==="ab".substr(-1)?function(e,t,r){return e.substr(t,r)}:function(e,t,r){return t<0&&(t=e.length+t),e.substr(t,r)}}).call(this,r("28d0"))},a438:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("b717")),o=n(r("d757")),a=n(r("7e0b")),s=n(r("08c5")),u=n(r("6387")),c=n(r("f7fd")),f=n(r("9e56")),l=function(){function e(){}return e.prototype.encode=function(t,r,n,a,f){if(0===t.length)throw new c.default("Found empty contents");if(r!==i.default.QR_CODE)throw new c.default("Can only encode QR_CODE, but got "+r);if(n<0||a<0)throw new c.default("Requested dimensions are too small: "+n+"x"+a);var l=s.default.L,d=e.QUIET_ZONE_SIZE;null!==f&&(void 0!==f.get(o.default.ERROR_CORRECTION)&&(l=s.default.fromString(f.get(o.default.ERROR_CORRECTION).toString())),void 0!==f.get(o.default.MARGIN)&&(d=Number.parseInt(f.get(o.default.MARGIN).toString(),10)));var h=u.default.encode(t,l,f);return e.renderResult(h,n,a,d)},e.renderResult=function(e,t,r,n){var i=e.getMatrix();if(null===i)throw new f.default;for(var o=i.getWidth(),s=i.getHeight(),u=o+2*n,c=s+2*n,l=Math.max(t,u),d=Math.max(r,c),h=Math.min(Math.floor(l/u),Math.floor(d/c)),p=Math.floor((l-o*h)/2),g=Math.floor((d-s*h)/2),y=new a.default(l,d),v=0,b=g;v<s;v++,b+=h)for(var m=0,_=p;m<o;m++,_+=h)1===i.get(m,v)&&y.setRegion(_,b,h,h);return y},e.QUIET_ZONE_SIZE=4,e}(),d=l;t.default=d},a455:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.X12Encoder=void 0;var i=n(r("d618")),o=n(r("d4f8")),a=r("f2b5"),s=n(r("3fac")),u=r("eab1"),c=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.getEncodingMode=function(){return u.X12_ENCODATION},t.prototype.encode=function(e){var t=new o.default;while(e.hasMoreCharacters()){var r=e.getCurrentChar();e.pos++,this.encodeChar(r,t);var n=t.length();if(n%3===0){this.writeNextTriplet(e,t);var i=s.default.lookAheadTest(e.getMessage(),e.pos,this.getEncodingMode());if(i!==this.getEncodingMode()){e.signalEncoderChange(u.ASCII_ENCODATION);break}}}this.handleEOD(e,t)},t.prototype.encodeChar=function(e,t){switch(e){case 13:t.append(0);break;case"*".charCodeAt(0):t.append(1);break;case">".charCodeAt(0):t.append(2);break;case" ".charCodeAt(0):t.append(3);break;default:e>="0".charCodeAt(0)&&e<="9".charCodeAt(0)?t.append(e-48+4):e>="A".charCodeAt(0)&&e<="Z".charCodeAt(0)?t.append(e-65+14):s.default.illegalCharacter(i.default.getCharAt(e));break}return 1},t.prototype.handleEOD=function(e,t){e.updateSymbolInfo();var r=e.getSymbolInfo().getDataCapacity()-e.getCodewordCount(),n=t.length();e.pos-=n,(e.getRemainingCharacters()>1||r>1||e.getRemainingCharacters()!==r)&&e.writeCodeword(u.X12_UNLATCH),e.getNewEncoding()<0&&e.signalEncoderChange(u.ASCII_ENCODATION)},t}(a.C40Encoder);t.X12Encoder=f},a52f:function(e,t,r){"use strict";var n=r("81eb"),i=r("2c2e"),o=r("07a0"),a=r("4e45");function s(e){o.call(this,"mont",e),this.a=new n(e.a,16).toRed(this.red),this.b=new n(e.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function u(e,t,r){o.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(t,16),this.z=new n(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}i(s,o),e.exports=s,s.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),n=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t),i=n.redSqrt();return 0===i.redSqr().cmp(n)},i(u,o.BasePoint),s.prototype.decodePoint=function(e,t){return this.point(a.toArray(e,t),1)},s.prototype.point=function(e,t){return new u(this,e,t)},s.prototype.pointFromJSON=function(e){return u.fromJSON(this,e)},u.prototype.precompute=function(){},u.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},u.fromJSON=function(e,t){return new u(e,t[0],t[1]||e.one)},u.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},u.prototype.dbl=function(){var e=this.x.redAdd(this.z),t=e.redSqr(),r=this.x.redSub(this.z),n=r.redSqr(),i=t.redSub(n),o=t.redMul(n),a=i.redMul(n.redAdd(this.curve.a24.redMul(i)));return this.curve.point(o,a)},u.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=e.x.redAdd(e.z),o=e.x.redSub(e.z),a=o.redMul(r),s=i.redMul(n),u=t.z.redMul(a.redAdd(s).redSqr()),c=t.x.redMul(a.redISub(s).redSqr());return this.curve.point(u,c)},u.prototype.mul=function(e){for(var t=e.clone(),r=this,n=this.curve.point(null,null),i=[];0!==t.cmpn(0);t.iushrn(1))i.push(t.andln(1));for(var o=i.length-1;o>=0;o--)0===i[o]?(r=r.diffAdd(n,this),n=n.dbl()):(n=r.diffAdd(n,this),r=r.dbl());return n},u.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},u.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},a541:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(e){var t="function"===typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},i=function(){function e(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];this.ecCodewordsPerBlock=e,this.ecBlocks=t}return e.prototype.getECCodewordsPerBlock=function(){return this.ecCodewordsPerBlock},e.prototype.getNumBlocks=function(){var e,t,r=0,i=this.ecBlocks;try{for(var o=n(i),a=o.next();!a.done;a=o.next()){var s=a.value;r+=s.getCount()}}catch(u){e={error:u}}finally{try{a&&!a.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}return r},e.prototype.getTotalECCodewords=function(){return this.ecCodewordsPerBlock*this.getNumBlocks()},e.prototype.getECBlocks=function(){return this.ecBlocks},e}(),o=i;t.default=o},a5d4:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.BrowserCodeReader=void 0;var i=n(r("3fa8")),o=n(r("7a09")),a=n(r("f74e")),s=n(r("9fc4")),u=n(r("343e")),c=n(r("f228")),f=r("ecbf"),l=r("3cf1"),d=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{u(n.next(e))}catch(t){o(t)}}function s(e){try{u(n["throw"](e))}catch(t){o(t)}}function u(e){e.done?i(e.value):function(e){return e instanceof r?e:new r((function(t){t(e)}))}(e.value).then(a,s)}u((n=n.apply(e,t||[])).next())}))},h=function(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw new TypeError("Generator is already executing.");while(a)try{if(r=1,n&&(i=2&o[0]?n["return"]:o[0]?n["throw"]||((i=n["return"])&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!(i=i.length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},p=function(e){var t="function"===typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},g=function(){function e(e,t,r){void 0===t&&(t=500),this.reader=e,this.timeBetweenScansMillis=t,this._hints=r,this._stopContinuousDecode=!1,this._stopAsyncDecode=!1,this._timeBetweenDecodingAttempts=0}return Object.defineProperty(e.prototype,"hasNavigator",{get:function(){return"undefined"!==typeof navigator},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isMediaDevicesSuported",{get:function(){return this.hasNavigator&&!!navigator.mediaDevices},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"canEnumerateDevices",{get:function(){return!(!this.isMediaDevicesSuported||!navigator.mediaDevices.enumerateDevices)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"timeBetweenDecodingAttempts",{get:function(){return this._timeBetweenDecodingAttempts},set:function(e){this._timeBetweenDecodingAttempts=e<0?0:e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hints",{get:function(){return this._hints},set:function(e){this._hints=e||null},enumerable:!1,configurable:!0}),e.prototype.listVideoInputDevices=function(){return d(this,void 0,void 0,(function(){var e,t,r,n,i,o,a,s,u,c,f,l;return h(this,(function(d){switch(d.label){case 0:if(!this.hasNavigator)throw new Error("Can't enumerate devices, navigator is not present.");if(!this.canEnumerateDevices)throw new Error("Can't enumerate devices, method not supported.");return[4,navigator.mediaDevices.enumerateDevices()];case 1:e=d.sent(),t=[];try{for(r=p(e),n=r.next();!n.done;n=r.next())i=n.value,o="video"===i.kind?"videoinput":i.kind,"videoinput"===o&&(a=i.deviceId||i.id,s=i.label||"Video device "+(t.length+1),u=i.groupId,c={deviceId:a,label:s,kind:o,groupId:u},t.push(c))}catch(h){f={error:h}}finally{try{n&&!n.done&&(l=r.return)&&l.call(r)}finally{if(f)throw f.error}}return[2,t]}}))}))},e.prototype.getVideoInputDevices=function(){return d(this,void 0,void 0,(function(){var e;return h(this,(function(t){switch(t.label){case 0:return[4,this.listVideoInputDevices()];case 1:return e=t.sent(),[2,e.map((function(e){return new l.VideoInputDevice(e.deviceId,e.label)}))]}}))}))},e.prototype.findDeviceById=function(e){return d(this,void 0,void 0,(function(){var t;return h(this,(function(r){switch(r.label){case 0:return[4,this.listVideoInputDevices()];case 1:return t=r.sent(),t?[2,t.find((function(t){return t.deviceId===e}))]:[2,null]}}))}))},e.prototype.decodeFromInputVideoDevice=function(e,t){return d(this,void 0,void 0,(function(){return h(this,(function(r){switch(r.label){case 0:return[4,this.decodeOnceFromVideoDevice(e,t)];case 1:return[2,r.sent()]}}))}))},e.prototype.decodeOnceFromVideoDevice=function(e,t){return d(this,void 0,void 0,(function(){var r,n;return h(this,(function(i){switch(i.label){case 0:return this.reset(),r=e?{deviceId:{exact:e}}:{facingMode:"environment"},n={video:r},[4,this.decodeOnceFromConstraints(n,t)];case 1:return[2,i.sent()]}}))}))},e.prototype.decodeOnceFromConstraints=function(e,t){return d(this,void 0,void 0,(function(){var r;return h(this,(function(n){switch(n.label){case 0:return[4,navigator.mediaDevices.getUserMedia(e)];case 1:return r=n.sent(),[4,this.decodeOnceFromStream(r,t)];case 2:return[2,n.sent()]}}))}))},e.prototype.decodeOnceFromStream=function(e,t){return d(this,void 0,void 0,(function(){var r,n;return h(this,(function(i){switch(i.label){case 0:return this.reset(),[4,this.attachStreamToVideo(e,t)];case 1:return r=i.sent(),[4,this.decodeOnce(r)];case 2:return n=i.sent(),[2,n]}}))}))},e.prototype.decodeFromInputVideoDeviceContinuously=function(e,t,r){return d(this,void 0,void 0,(function(){return h(this,(function(n){switch(n.label){case 0:return[4,this.decodeFromVideoDevice(e,t,r)];case 1:return[2,n.sent()]}}))}))},e.prototype.decodeFromVideoDevice=function(e,t,r){return d(this,void 0,void 0,(function(){var n,i;return h(this,(function(o){switch(o.label){case 0:return n=e?{deviceId:{exact:e}}:{facingMode:"environment"},i={video:n},[4,this.decodeFromConstraints(i,t,r)];case 1:return[2,o.sent()]}}))}))},e.prototype.decodeFromConstraints=function(e,t,r){return d(this,void 0,void 0,(function(){var n;return h(this,(function(i){switch(i.label){case 0:return[4,navigator.mediaDevices.getUserMedia(e)];case 1:return n=i.sent(),[4,this.decodeFromStream(n,t,r)];case 2:return[2,i.sent()]}}))}))},e.prototype.decodeFromStream=function(e,t,r){return d(this,void 0,void 0,(function(){var n;return h(this,(function(i){switch(i.label){case 0:return this.reset(),[4,this.attachStreamToVideo(e,t)];case 1:return n=i.sent(),[4,this.decodeContinuously(n,r)];case 2:return[2,i.sent()]}}))}))},e.prototype.stopAsyncDecode=function(){this._stopAsyncDecode=!0},e.prototype.stopContinuousDecode=function(){this._stopContinuousDecode=!0},e.prototype.attachStreamToVideo=function(e,t){return d(this,void 0,void 0,(function(){var r;return h(this,(function(n){switch(n.label){case 0:return r=this.prepareVideoElement(t),this.addVideoSource(r,e),this.videoElement=r,this.stream=e,[4,this.playVideoOnLoadAsync(r)];case 1:return n.sent(),[2,r]}}))}))},e.prototype.playVideoOnLoadAsync=function(e){var t=this;return new Promise((function(r,n){return t.playVideoOnLoad(e,(function(){return r()}))}))},e.prototype.playVideoOnLoad=function(e,t){var r=this;this.videoEndedListener=function(){return r.stopStreams()},this.videoCanPlayListener=function(){return r.tryPlayVideo(e)},e.addEventListener("ended",this.videoEndedListener),e.addEventListener("canplay",this.videoCanPlayListener),e.addEventListener("playing",t),this.tryPlayVideo(e)},e.prototype.isVideoPlaying=function(e){return e.currentTime>0&&!e.paused&&!e.ended&&e.readyState>2},e.prototype.tryPlayVideo=function(e){return d(this,void 0,void 0,(function(){return h(this,(function(t){switch(t.label){case 0:if(this.isVideoPlaying(e))return console.warn("Trying to play video that is already playing."),[2];t.label=1;case 1:return t.trys.push([1,3,,4]),[4,e.play()];case 2:return t.sent(),[3,4];case 3:return t.sent(),console.warn("It was not possible to play the video."),[3,4];case 4:return[2]}}))}))},e.prototype.getMediaElement=function(e,t){var r=document.getElementById(e);if(!r)throw new i.default("element with id '"+e+"' not found");if(r.nodeName.toLowerCase()!==t.toLowerCase())throw new i.default("element with id '"+e+"' must be an "+t+" element");return r},e.prototype.decodeFromImage=function(e,t){if(!e&&!t)throw new i.default("either imageElement with a src set or an url must be provided");return t&&!e?this.decodeFromImageUrl(t):this.decodeFromImageElement(e)},e.prototype.decodeFromVideo=function(e,t){if(!e&&!t)throw new i.default("Either an element with a src set or an URL must be provided");return t&&!e?this.decodeFromVideoUrl(t):this.decodeFromVideoElement(e)},e.prototype.decodeFromVideoContinuously=function(e,t,r){if(void 0===e&&void 0===t)throw new i.default("Either an element with a src set or an URL must be provided");return t&&!e?this.decodeFromVideoUrlContinuously(t,r):this.decodeFromVideoElementContinuously(e,r)},e.prototype.decodeFromImageElement=function(e){if(!e)throw new i.default("An image element must be provided.");this.reset();var t,r=this.prepareImageElement(e);return this.imageElement=r,t=this.isImageLoaded(r)?this.decodeOnce(r,!1,!0):this._decodeOnLoadImage(r),t},e.prototype.decodeFromVideoElement=function(e){var t=this._decodeFromVideoElementSetup(e);return this._decodeOnLoadVideo(t)},e.prototype.decodeFromVideoElementContinuously=function(e,t){var r=this._decodeFromVideoElementSetup(e);return this._decodeOnLoadVideoContinuously(r,t)},e.prototype._decodeFromVideoElementSetup=function(e){if(!e)throw new i.default("A video element must be provided.");this.reset();var t=this.prepareVideoElement(e);return this.videoElement=t,t},e.prototype.decodeFromImageUrl=function(e){if(!e)throw new i.default("An URL must be provided.");this.reset();var t=this.prepareImageElement();this.imageElement=t;var r=this._decodeOnLoadImage(t);return t.src=e,r},e.prototype.decodeFromVideoUrl=function(e){if(!e)throw new i.default("An URL must be provided.");this.reset();var t=this.prepareVideoElement(),r=this.decodeFromVideoElement(t);return t.src=e,r},e.prototype.decodeFromVideoUrlContinuously=function(e,t){if(!e)throw new i.default("An URL must be provided.");this.reset();var r=this.prepareVideoElement(),n=this.decodeFromVideoElementContinuously(r,t);return r.src=e,n},e.prototype._decodeOnLoadImage=function(e){var t=this;return new Promise((function(r,n){t.imageLoadedListener=function(){return t.decodeOnce(e,!1,!0).then(r,n)},e.addEventListener("load",t.imageLoadedListener)}))},e.prototype._decodeOnLoadVideo=function(e){return d(this,void 0,void 0,(function(){return h(this,(function(t){switch(t.label){case 0:return[4,this.playVideoOnLoadAsync(e)];case 1:return t.sent(),[4,this.decodeOnce(e)];case 2:return[2,t.sent()]}}))}))},e.prototype._decodeOnLoadVideoContinuously=function(e,t){return d(this,void 0,void 0,(function(){return h(this,(function(r){switch(r.label){case 0:return[4,this.playVideoOnLoadAsync(e)];case 1:return r.sent(),this.decodeContinuously(e,t),[2]}}))}))},e.prototype.isImageLoaded=function(e){return!!e.complete&&0!==e.naturalWidth},e.prototype.prepareImageElement=function(e){var t;return"undefined"===typeof e&&(t=document.createElement("img"),t.width=200,t.height=200),"string"===typeof e&&(t=this.getMediaElement(e,"img")),e instanceof HTMLImageElement&&(t=e),t},e.prototype.prepareVideoElement=function(e){var t;return e||"undefined"===typeof document||(t=document.createElement("video"),t.width=200,t.height=200),"string"===typeof e&&(t=this.getMediaElement(e,"video")),e instanceof HTMLVideoElement&&(t=e),t.setAttribute("autoplay","true"),t.setAttribute("muted","true"),t.setAttribute("playsinline","true"),t},e.prototype.decodeOnce=function(e,t,r){var n=this;void 0===t&&(t=!0),void 0===r&&(r=!0),this._stopAsyncDecode=!1;return new Promise((function(i,o){return function i(o,s){if(n._stopAsyncDecode)return s(new c.default("Video stream has ended before any code could be detected.")),void(n._stopAsyncDecode=void 0);try{var f=n.decode(e);o(f)}catch(p){var l=t&&p instanceof c.default,d=p instanceof a.default||p instanceof u.default,h=d&&r;if(l||h)return setTimeout(i,n._timeBetweenDecodingAttempts,o,s);s(p)}}(i,o)}))},e.prototype.decodeContinuously=function(e,t){var r=this;this._stopContinuousDecode=!1;(function n(){if(r._stopContinuousDecode)r._stopContinuousDecode=void 0;else try{var i=r.decode(e);t(i,null),setTimeout(n,r.timeBetweenScansMillis)}catch(f){t(null,f);var o=f instanceof a.default||f instanceof u.default,s=f instanceof c.default;(o||s)&&setTimeout(n,r._timeBetweenDecodingAttempts)}})()},e.prototype.decode=function(e){var t=this.createBinaryBitmap(e);return this.decodeBitmap(t)},e.prototype.createBinaryBitmap=function(e){this.getCaptureCanvasContext(e);var t=!1;e instanceof HTMLVideoElement?(this.drawFrameOnCanvas(e),t=!0):this.drawImageOnCanvas(e);var r=this.getCaptureCanvas(e),n=new f.HTMLCanvasElementLuminanceSource(r,t),i=new s.default(n);return new o.default(i)},e.prototype.getCaptureCanvasContext=function(e){if(!this.captureCanvasContext){var t=this.getCaptureCanvas(e),r=void 0;try{r=t.getContext("2d",{willReadFrequently:!0})}catch(n){r=t.getContext("2d")}this.captureCanvasContext=r}return this.captureCanvasContext},e.prototype.getCaptureCanvas=function(e){if(!this.captureCanvas){var t=this.createCaptureCanvas(e);this.captureCanvas=t}return this.captureCanvas},e.prototype.drawFrameOnCanvas=function(e,t,r){void 0===t&&(t={sx:0,sy:0,sWidth:e.videoWidth,sHeight:e.videoHeight,dx:0,dy:0,dWidth:e.videoWidth,dHeight:e.videoHeight}),void 0===r&&(r=this.captureCanvasContext),r.drawImage(e,t.sx,t.sy,t.sWidth,t.sHeight,t.dx,t.dy,t.dWidth,t.dHeight)},e.prototype.drawImageOnCanvas=function(e,t,r){void 0===t&&(t={sx:0,sy:0,sWidth:e.naturalWidth,sHeight:e.naturalHeight,dx:0,dy:0,dWidth:e.naturalWidth,dHeight:e.naturalHeight}),void 0===r&&(r=this.captureCanvasContext),r.drawImage(e,t.sx,t.sy,t.sWidth,t.sHeight,t.dx,t.dy,t.dWidth,t.dHeight)},e.prototype.decodeBitmap=function(e){return this.reader.decode(e,this._hints)},e.prototype.createCaptureCanvas=function(e){if("undefined"===typeof document)return this._destroyCaptureCanvas(),null;var t,r,n=document.createElement("canvas");return"undefined"!==typeof e&&(e instanceof HTMLVideoElement?(t=e.videoWidth,r=e.videoHeight):e instanceof HTMLImageElement&&(t=e.naturalWidth||e.width,r=e.naturalHeight||e.height)),n.style.width=t+"px",n.style.height=r+"px",n.width=t,n.height=r,n},e.prototype.stopStreams=function(){this.stream&&(this.stream.getVideoTracks().forEach((function(e){return e.stop()})),this.stream=void 0),!1===this._stopAsyncDecode&&this.stopAsyncDecode(),!1===this._stopContinuousDecode&&this.stopContinuousDecode()},e.prototype.reset=function(){this.stopStreams(),this._destroyVideoElement(),this._destroyImageElement(),this._destroyCaptureCanvas()},e.prototype._destroyVideoElement=function(){this.videoElement&&("undefined"!==typeof this.videoEndedListener&&this.videoElement.removeEventListener("ended",this.videoEndedListener),"undefined"!==typeof this.videoPlayingEventListener&&this.videoElement.removeEventListener("playing",this.videoPlayingEventListener),"undefined"!==typeof this.videoCanPlayListener&&this.videoElement.removeEventListener("loadedmetadata",this.videoCanPlayListener),this.cleanVideoSource(this.videoElement),this.videoElement=void 0)},e.prototype._destroyImageElement=function(){this.imageElement&&(void 0!==this.imageLoadedListener&&this.imageElement.removeEventListener("load",this.imageLoadedListener),this.imageElement.src=void 0,this.imageElement.removeAttribute("src"),this.imageElement=void 0)},e.prototype._destroyCaptureCanvas=function(){this.captureCanvasContext=void 0,this.captureCanvas=void 0},e.prototype.addVideoSource=function(e,t){try{e.srcObject=t}catch(r){e.src=URL.createObjectURL(t)}},e.prototype.cleanVideoSource=function(e){try{e.srcObject=null}catch(t){e.src=""}this.videoElement.removeAttribute("src")},e}();t.BrowserCodeReader=g},a5e6:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("4e64")),o=n(r("253e")),a=function(){function e(){}return e.decode=function(e,t){var r=this.encodingName(t);return this.customDecoder?this.customDecoder(e,r):"undefined"===typeof TextDecoder||this.shouldDecodeOnFallback(r)?this.decodeFallback(e,r):new TextDecoder(r).decode(e)},e.shouldDecodeOnFallback=function(t){return!e.isBrowser()&&"ISO-8859-1"===t},e.encode=function(e,t){var r=this.encodingName(t);return this.customEncoder?this.customEncoder(e,r):"undefined"===typeof TextEncoder?this.encodeFallback(e):(new TextEncoder).encode(e)},e.isBrowser=function(){return"undefined"!==typeof window&&"[object Window]"==={}.toString.call(window)},e.encodingName=function(e){return"string"===typeof e?e:e.getName()},e.encodingCharacterSet=function(e){return e instanceof o.default?e:o.default.getCharacterSetECIByName(e)},e.decodeFallback=function(t,r){var n=this.encodingCharacterSet(r);if(e.isDecodeFallbackSupported(n)){for(var a="",s=0,u=t.length;s<u;s++){var c=t[s].toString(16);c.length<2&&(c="0"+c),a+="%"+c}return decodeURIComponent(a)}if(n.equals(o.default.UnicodeBigUnmarked))return String.fromCharCode.apply(null,new Uint16Array(t.buffer));throw new i.default("Encoding "+this.encodingName(r)+" not supported by fallback.")},e.isDecodeFallbackSupported=function(e){return e.equals(o.default.UTF8)||e.equals(o.default.ISO8859_1)||e.equals(o.default.ASCII)},e.encodeFallback=function(e){for(var t=btoa(unescape(encodeURIComponent(e))),r=t.split(""),n=[],i=0;i<r.length;i++)n.push(r[i].charCodeAt(0));return new Uint8Array(n)},e}(),s=a;t.default=s},a608:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("3b2d")),o=function(){function e(){this.buffer=""}return e.form=function(e,t){var r=-1;return e.replace(/%(-)?(0?[0-9]+)?([.][0-9]+)?([#][0-9]+)?([scfpexd%])/g,(function(e,n,o,a,s,u){if("%%"===e)return"%";if(void 0!==t[++r]){e=a?parseInt(a.substr(1)):void 0;var c,f=s?parseInt(s.substr(1)):void 0;switch(u){case"s":c=t[r];break;case"c":c=t[r][0];break;case"f":c=parseFloat(t[r]).toFixed(e);break;case"p":c=parseFloat(t[r]).toPrecision(e);break;case"e":c=parseFloat(t[r]).toExponential(e);break;case"x":c=parseInt(t[r]).toString(f||16);break;case"d":c=parseFloat(parseInt(t[r],f||10).toPrecision(e)).toFixed(0);break}c="object"===(0,i.default)(c)?JSON.stringify(c):(+c).toString(f);var l=parseInt(o),d=o&&o[0]+""==="0"?"0":" ";while(c.length<l)c=void 0!==n?c+d:d+c;return c}}))},e.prototype.format=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];this.buffer+=e.form(t,r)},e.prototype.toString=function(){return this.buffer},e}(),a=o;t.default=a},a67f:function(e,t,r){var n=r("5f79").Buffer,i=r("0116"),o=r("8d24"),a=r("959e").ec,s=r("81eb"),u=r("8e48"),c=r("4037");function f(e,t,r,o){if(e=n.from(e.toArray()),e.length<t.byteLength()){var a=n.alloc(t.byteLength()-e.length);e=n.concat([a,e])}var s=r.length,u=function(e,t){e=l(e,t),e=e.mod(t);var r=n.from(e.toArray());if(r.length<t.byteLength()){var i=n.alloc(t.byteLength()-r.length);r=n.concat([i,r])}return r}(r,t),c=n.alloc(s);c.fill(1);var f=n.alloc(s);return f=i(o,f).update(c).update(n.from([0])).update(e).update(u).digest(),c=i(o,f).update(c).digest(),f=i(o,f).update(c).update(n.from([1])).update(e).update(u).digest(),c=i(o,f).update(c).digest(),{k:f,v:c}}function l(e,t){var r=new s(e),n=(e.length<<3)-t.bitLength();return n>0&&r.ishrn(n),r}function d(e,t,r){var o,a;do{o=n.alloc(0);while(8*o.length<e.bitLength())t.v=i(r,t.k).update(t.v).digest(),o=n.concat([o,t.v]);a=l(o,e),t.k=i(r,t.k).update(t.v).update(n.from([0])).digest(),t.v=i(r,t.k).update(t.v).digest()}while(-1!==a.cmp(e));return a}function h(e,t,r,n){return e.toRed(s.mont(r)).redPow(t).fromRed().mod(n)}e.exports=function(e,t,r,i,p){var g=u(t);if(g.curve){if("ecdsa"!==i&&"ecdsa/rsa"!==i)throw new Error("wrong private key type");return function(e,t){var r=c[t.curve.join(".")];if(!r)throw new Error("unknown curve "+t.curve.join("."));var i=new a(r),o=i.keyFromPrivate(t.privateKey),s=o.sign(e);return n.from(s.toDER())}(e,g)}if("dsa"===g.type){if("dsa"!==i)throw new Error("wrong private key type");return function(e,t,r){var i,o=t.params.priv_key,a=t.params.p,u=t.params.q,c=t.params.g,p=new s(0),g=l(e,u).mod(u),y=!1,v=f(o,u,e,r);while(!1===y)i=d(u,v,r),p=h(c,i,a,u),y=i.invm(u).imul(g.add(o.mul(p))).mod(u),0===y.cmpn(0)&&(y=!1,p=new s(0));return function(e,t){e=e.toArray(),t=t.toArray(),128&e[0]&&(e=[0].concat(e));128&t[0]&&(t=[0].concat(t));var r=e.length+t.length+4,i=[48,r,2,e.length];return i=i.concat(e,[2,t.length],t),n.from(i)}(p,y)}(e,g,r)}if("rsa"!==i&&"ecdsa/rsa"!==i)throw new Error("wrong private key type");e=n.concat([p,e]);var y=g.modulus.byteLength(),v=[0,1];while(e.length+v.length+1<y)v.push(255);v.push(0);var b=-1;while(++b<e.length)v.push(e[b]);var m=o(v,g);return m},e.exports.getKey=f,e.exports.makeKey=d},a6ba:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("3727")),o=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),a=function(e){function t(t){var r=e.call(this,t.getWidth(),t.getHeight())||this;return r.delegate=t,r}return o(t,e),t.prototype.getRow=function(e,t){for(var r=this.delegate.getRow(e,t),n=this.getWidth(),i=0;i<n;i++)r[i]=255-(255&r[i]);return r},t.prototype.getMatrix=function(){for(var e=this.delegate.getMatrix(),t=this.getWidth()*this.getHeight(),r=new Uint8ClampedArray(t),n=0;n<t;n++)r[n]=255-(255&e[n]);return r},t.prototype.isCropSupported=function(){return this.delegate.isCropSupported()},t.prototype.crop=function(e,r,n,i){return new t(this.delegate.crop(e,r,n,i))},t.prototype.isRotateSupported=function(){return this.delegate.isRotateSupported()},t.prototype.invert=function(){return this.delegate},t.prototype.rotateCounterClockwise=function(){return new t(this.delegate.rotateCounterClockwise())},t.prototype.rotateCounterClockwise45=function(){return new t(this.delegate.rotateCounterClockwise45())},t}(i.default),s=a;t.default=s},a6ce:function(e,t,r){"use strict";const n=r("2c2e"),i=r("1f07").Buffer,o=r("bee8"),a=r("0b50");function s(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new u,this.tree._init(e.body)}function u(e){o.call(this,"der",e)}function c(e){return e<10?"0"+e:e}e.exports=s,s.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},n(u,o),u.prototype._encodeComposite=function(e,t,r,n){const o=function(e,t,r,n){let i;"seqof"===e?e="seq":"setof"===e&&(e="set");if(a.tagByName.hasOwnProperty(e))i=a.tagByName[e];else{if("number"!==typeof e||(0|e)!==e)return n.error("Unknown tag: "+e);i=e}if(i>=31)return n.error("Multi-octet tag encoding unsupported");t||(i|=32);return i|=a.tagClassByName[r||"universal"]<<6,i}(e,t,r,this.reporter);if(n.length<128){const e=i.alloc(2);return e[0]=o,e[1]=n.length,this._createEncoderBuffer([e,n])}let s=1;for(let i=n.length;i>=256;i>>=8)s++;const u=i.alloc(2+s);u[0]=o,u[1]=128|s;for(let i=1+s,a=n.length;a>0;i--,a>>=8)u[i]=255&a;return this._createEncoderBuffer([u,n])},u.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){const t=i.alloc(2*e.length);for(let r=0;r<e.length;r++)t.writeUInt16BE(e.charCodeAt(r),2*r);return this._createEncoderBuffer(t)}return"numstr"===t?this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===t?this._isPrintstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(t)||"objDesc"===t?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: "+t+" unsupported")},u.prototype._encodeObjid=function(e,t,r){if("string"===typeof e){if(!t)return this.reporter.error("string objid given, but no values map found");if(!t.hasOwnProperty(e))return this.reporter.error("objid not found in values map");e=t[e].split(/[\s.]+/g);for(let t=0;t<e.length;t++)e[t]|=0}else if(Array.isArray(e)){e=e.slice();for(let t=0;t<e.length;t++)e[t]|=0}if(!Array.isArray(e))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(e));if(!r){if(e[1]>=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}let n=0;for(let i=0;i<e.length;i++){let t=e[i];for(n++;t>=128;t>>=7)n++}const o=i.alloc(n);let a=o.length-1;for(let i=e.length-1;i>=0;i--){let t=e[i];o[a--]=127&t;while((t>>=7)>0)o[a--]=128|127&t}return this._createEncoderBuffer(o)},u.prototype._encodeTime=function(e,t){let r;const n=new Date(e);return"gentime"===t?r=[c(n.getUTCFullYear()),c(n.getUTCMonth()+1),c(n.getUTCDate()),c(n.getUTCHours()),c(n.getUTCMinutes()),c(n.getUTCSeconds()),"Z"].join(""):"utctime"===t?r=[c(n.getUTCFullYear()%100),c(n.getUTCMonth()+1),c(n.getUTCDate()),c(n.getUTCHours()),c(n.getUTCMinutes()),c(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(r,"octstr")},u.prototype._encodeNull=function(){return this._createEncoderBuffer("")},u.prototype._encodeInt=function(e,t){if("string"===typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!==typeof e&&!i.isBuffer(e)){const t=e.toArray();!e.sign&&128&t[0]&&t.unshift(0),e=i.from(t)}if(i.isBuffer(e)){let t=e.length;0===e.length&&t++;const r=i.alloc(t);return e.copy(r),0===e.length&&(r[0]=0),this._createEncoderBuffer(r)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);let r=1;for(let i=e;i>=256;i>>=8)r++;const n=new Array(r);for(let i=n.length-1;i>=0;i--)n[i]=255&e,e>>=8;return 128&n[0]&&n.unshift(0),this._createEncoderBuffer(i.from(n))},u.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},u.prototype._use=function(e,t){return"function"===typeof e&&(e=e(t)),e._getEncoder("der").tree},u.prototype._skipDefault=function(e,t,r){const n=this._baseState;let i;if(null===n["default"])return!1;const o=e.join();if(void 0===n.defaultBuffer&&(n.defaultBuffer=this._encodeValue(n["default"],t,r).join()),o.length!==n.defaultBuffer.length)return!1;for(i=0;i<o.length;i++)if(o[i]!==n.defaultBuffer[i])return!1;return!0}},a6da:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("5935")),o=n(r("f228")),a=n(r("d4f8")),s=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),u=function(e){function t(t){return e.call(this,t)||this}return s(t,e),t.prototype.parseInformation=function(){if(this.getInformation().getSize()<t.HEADER_SIZE+i.default.GTIN_SIZE)throw new o.default;var e=new a.default;this.encodeCompressedGtin(e,t.HEADER_SIZE);var r=this.getGeneralDecoder().extractNumericValueFromBitArray(t.HEADER_SIZE+i.default.GTIN_SIZE,t.LAST_DIGIT_SIZE);e.append("(392"),e.append(r),e.append(")");var n=this.getGeneralDecoder().decodeGeneralPurposeField(t.HEADER_SIZE+i.default.GTIN_SIZE+t.LAST_DIGIT_SIZE,null);return e.append(n.getNewString()),e.toString()},t.HEADER_SIZE=8,t.LAST_DIGIT_SIZE=2,t}(i.default),c=u;t.default=c},a708:function(e,t,r){var n=r("6454");e.exports=function(e){if(Array.isArray(e))return n(e)},e.exports.__esModule=!0,e.exports["default"]=e.exports},a831:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.applyRemoteOpenLockConfirm=function(e){return(0,o.apiResquest)({url:"/laboratory/apply/remoteOpenLock/confirm",method:"GET",data:e})},t.laboratoryAppletGetSubDetailInfo=t.laboratoryAppletGetApplyDetails=t.laboratoryAppletEditApp=t.laboratoryAppletAuditListByApply=t.iotAppSpeakerPlayVoice=t.iotAppSpeakerFindHorn=t.iotAppSensorFindBySubId=t.iotAppHardwareOperatingHardware=t.iotAppHardwareFindByType=t.iotAppDeviceFindByType=void 0,t.laboratoryAppletLabLockApplyDelete=function(e){return(0,o.apiResquest)({url:"/laboratory/applet/labLockApply/delete",method:"post",data:s({},e)})},t.laboratoryAppletLabLockApplyList=function(e){return(0,o.apiResquest)({url:"/laboratory/applet/labLockApply/list",method:"post",data:s({},e)})},t.laboratoryAppletSubList=void 0,t.laboratoryApplyAddAddApply=function(e){return(0,o.apiResquest)({url:"/laboratory/apply/addAddApply",method:"post",data:s({},e)})},t.laboratoryApplyGetUserInfo=function(e){return(0,o.apiResquest)({url:"/laboratory/apply/getUserInfo",method:"post",data:s({},e)})},t.laboratoryApplyRemoteOpenLock=function(e){return(0,o.apiResquest)({url:"/laboratory/apply/remoteOpenLock",method:"post",data:s({},e)})},t.laboratoryGradeManageList=t.laboratoryGradeManageExecute=t.laboratoryExitRelayOpenLight=t.laboratoryExitRelayCloseLight=t.laboratoryExitLineGetRedisEvacuation=t.laboratoryExitLineExecuteEvacuation=t.laboratoryClassTypeGetList=t.laboratoryClassLevelGetList=t.laboratoryBigViewSelectTriggerInfo=t.laboratoryBigViewGetFloorByBigView=t.laboratoryBigViewGetBuildByBigView=void 0,t.laboratoryLabOpenLockLogUpdateLockData=function(e){return(0,o.apiResquest)({url:"/laboratory/labOpenLockLog/updateLockData",method:"post",data:s({},e)})},t.systemDeptDropList=t.laboratoryexitLineEndEvacuation=t.laboratorySubRelInfoSelectAdminBySubPage=t.laboratoryPlanCloseRiskPlan=void 0,t.systemSubjectGetAppSubject=function(e){return(0,o.apiResquest)({url:"/system/subject/getAppSubject",method:"post",data:s({},e)})},t.systemSubjectGetAppSubjectByLogin=function(e){return(0,o.apiResquest)({url:"/system/subject/getAppSubjectByLogin",method:"post",data:s({},e)})};var i=n(r("7ca3")),o=r("4fd4");function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){(0,i.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}t.systemDeptDropList=function(e){return(0,o.apiResquest)({url:"/system/dept/dropList",method:"POST",data:s({},e)})};t.laboratoryClassTypeGetList=function(e){return(0,o.apiResquest)({url:"/laboratory/classType/getList",method:"POST",data:s({},e)})};t.laboratoryClassLevelGetList=function(e){return(0,o.apiResquest)({url:"/laboratory/classLevel/getList",method:"POST",data:s({},e)})};t.laboratoryAppletSubList=function(e){return(0,o.apiResquest)({url:"/laboratory/applet/subList",method:"POST",data:s({},e)})};t.laboratoryAppletGetSubDetailInfo=function(e){return(0,o.apiResquest)({url:"/laboratory/applet/getSubDetailInfo",method:"GET",data:e})};t.iotAppSensorFindBySubId=function(e){return(0,o.apiResquest)({url:"/iot/app/sensor/findBySubId",method:"GET",data:e})};t.iotAppHardwareFindByType=function(e){return(0,o.apiResquest)({url:"/iot/app/hardware/findByType",method:"POST",data:s({},e)})};t.iotAppHardwareOperatingHardware=function(e){return(0,o.apiResquest)({url:"/iot/app/hardware/operatingHardware",method:"GET",data:e})};t.iotAppDeviceFindByType=function(e){return(0,o.apiResquest)({url:"/iot/app/device/findByType",method:"POST",data:s({},e)})};t.iotAppSpeakerFindHorn=function(e){return(0,o.apiResquest)({url:"/iot/app/speaker/findHorn",method:"GET",data:e})};t.iotAppSpeakerPlayVoice=function(e){return(0,o.apiResquest)({url:"/iot/app/speaker/playVoice",method:"GET",data:e})};t.laboratoryBigViewGetBuildByBigView=function(e){return(0,o.apiResquest)({url:"/laboratory/bigView/getBuildByBigView",method:"GET",data:e})};t.laboratorySubRelInfoSelectAdminBySubPage=function(e){return(0,o.apiResquest)({url:"/laboratory/subRelInfo/selectAdminBySubPage",method:"post",data:e})};t.laboratoryBigViewSelectTriggerInfo=function(e){return(0,o.apiResquest)({url:"/laboratory/bigView/selectTriggerInfo",method:"GET",data:e})};t.laboratoryBigViewGetFloorByBigView=function(e){return(0,o.apiResquest)({url:"/laboratory/bigView/getFloorByBigView",method:"GET",data:e})};t.laboratoryExitLineGetRedisEvacuation=function(e){return(0,o.apiResquest)({url:"/laboratory/exitLine/getRedisEvacuation",method:"post",data:e})};t.laboratoryExitLineExecuteEvacuation=function(e){return(0,o.apiResquest)({url:"/laboratory/exitLine/executeEvacuation",method:"post",data:e})};t.laboratoryexitLineEndEvacuation=function(e){return(0,o.apiResquest)({url:"/laboratory/exitLine/endEvacuation",method:"post",data:e})};t.laboratoryExitRelayOpenLight=function(e){return(0,o.apiResquest)({url:"/laboratory/exitRelay/openLight",method:"post",data:e})};t.laboratoryExitRelayCloseLight=function(e){return(0,o.apiResquest)({url:"/laboratory/exitRelay/closeLight",method:"post",data:e})};t.laboratoryPlanCloseRiskPlan=function(e){return(0,o.apiResquest)({url:"/laboratory/plan/closeRiskPlan",method:"GET",data:e})};t.laboratoryAppletAuditListByApply=function(e){return(0,o.apiResquest)({url:"/laboratory/applet/auditListByApply",method:"POST",data:s({},e)})};t.laboratoryAppletGetApplyDetails=function(e){return(0,o.apiResquest)({url:"/laboratory/applet/getApplyDetails",method:"GET",data:e})};t.laboratoryAppletEditApp=function(e){return(0,o.apiResquest)({url:"/laboratory/applet/editApp",method:"POST",data:e})};t.laboratoryGradeManageList=function(e){return(0,o.apiResquest)({url:"/laboratory/gradeManage/list",method:"POST",data:e})};t.laboratoryGradeManageExecute=function(e){return(0,o.apiResquest)({url:"/laboratory/gradeManage/execute",method:"POST",data:e})}},a8ae:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("253e")),o=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.forName=function(e){return this.getCharacterSetECIByName(e)},t}(i.default),s=a;t.default=s},a8be:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("c769")),o=n(r("1d84")),a=function(){function e(e,t){this.x=e,this.y=t}return e.prototype.getX=function(){return this.x},e.prototype.getY=function(){return this.y},e.prototype.equals=function(t){if(t instanceof e){var r=t;return this.x===r.x&&this.y===r.y}return!1},e.prototype.hashCode=function(){return 31*o.default.floatToIntBits(this.x)+o.default.floatToIntBits(this.y)},e.prototype.toString=function(){return"("+this.x+","+this.y+")"},e.orderBestPatterns=function(e){var t,r,n,i=this.distance(e[0],e[1]),o=this.distance(e[1],e[2]),a=this.distance(e[0],e[2]);if(o>=i&&o>=a?(r=e[0],t=e[1],n=e[2]):a>=o&&a>=i?(r=e[1],t=e[0],n=e[2]):(r=e[2],t=e[0],n=e[1]),this.crossProductZ(t,r,n)<0){var s=t;t=n,n=s}e[0]=t,e[1]=r,e[2]=n},e.distance=function(e,t){return i.default.distance(e.x,e.y,t.x,t.y)},e.crossProductZ=function(e,t,r){var n=t.x,i=t.y;return(r.x-n)*(e.y-i)-(r.y-i)*(e.x-n)},e}(),s=a;t.default=s},a9a0:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("b717")),o=n(r("c769")),a=n(r("f228")),s=n(r("0c24")),u=n(r("1ff8")),c=n(r("3dae")),f=n(r("b911")),l=n(r("853a")),d=n(r("c003")),h=n(r("9fe1")),p=r("7004"),g=n(r("0e18")),y=n(r("f239")),v=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),b=function(e){var t="function"===typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},m=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.pairs=new Array(t.MAX_PAIRS),r.rows=new Array,r.startEnd=[2],r}return v(t,e),t.prototype.decodeRow=function(e,r,n){this.pairs.length=0,this.startFromEven=!1;try{return t.constructResult(this.decodeRow2pairs(e,r))}catch(i){}return this.pairs.length=0,this.startFromEven=!0,t.constructResult(this.decodeRow2pairs(e,r))},t.prototype.reset=function(){this.pairs.length=0,this.rows.length=0},t.prototype.decodeRow2pairs=function(e,t){var r,n=!1;while(!n)try{this.pairs.push(this.retrieveNextPair(t,this.pairs,e))}catch(o){if(o instanceof a.default){if(!this.pairs.length)throw new a.default;n=!0}}if(this.checkChecksum())return this.pairs;if(r=!!this.rows.length,this.storeRow(e,!1),r){var i=this.checkRowsBoolean(!1);if(null!=i)return i;if(i=this.checkRowsBoolean(!0),null!=i)return i}throw new a.default},t.prototype.checkRowsBoolean=function(e){if(this.rows.length>25)return this.rows.length=0,null;this.pairs.length=0,e&&(this.rows=this.rows.reverse());var t=null;try{t=this.checkRows(new Array,0)}catch(r){console.log(r)}return e&&(this.rows=this.rows.reverse()),t},t.prototype.checkRows=function(e,r){for(var n,i,o=r;o<this.rows.length;o++){var s=this.rows[o];this.pairs.length=0;try{for(var u=(n=void 0,b(e)),c=u.next();!c.done;c=u.next()){var f=c.value;this.pairs.push(f.getPairs())}}catch(d){n={error:d}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}if(this.pairs.push(s.getPairs()),t.isValidSequence(this.pairs)){if(this.checkChecksum())return this.pairs;var l=new Array(e);l.push(s);try{return this.checkRows(l,o+1)}catch(h){console.log(h)}}}throw new a.default},t.isValidSequence=function(e){var r,n;try{for(var i=b(t.FINDER_PATTERN_SEQUENCES),o=i.next();!o.done;o=i.next()){var a=o.value;if(!(e.length>a.length)){for(var s=!0,u=0;u<e.length;u++)if(e[u].getFinderPattern().getValue()!==a[u]){s=!1;break}if(s)return!0}}}catch(c){r={error:c}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return!1},t.prototype.storeRow=function(e,r){var n=0,i=!1,o=!1;while(n<this.rows.length){var a=this.rows[n];if(a.getRowNumber()>e){o=a.isEquivalent(this.pairs);break}i=a.isEquivalent(this.pairs),n++}o||i||t.isPartialRow(this.pairs,this.rows)||(this.rows.push(n,new y.default(this.pairs,e,r)),this.removePartialRows(this.pairs,this.rows))},t.prototype.removePartialRows=function(e,t){var r,n,i,o,a,s;try{for(var u=b(t),c=u.next();!c.done;c=u.next()){var f=c.value;if(f.getPairs().length!==e.length){try{for(var l=(i=void 0,b(f.getPairs())),d=l.next();!d.done;d=l.next()){var h=d.value,p=!1;try{for(var y=(a=void 0,b(e)),v=y.next();!v.done;v=y.next()){var m=v.value;if(g.default.equals(h,m)){p=!0;break}}}catch(_){a={error:_}}finally{try{v&&!v.done&&(s=y.return)&&s.call(y)}finally{if(a)throw a.error}}p||!1}}catch(w){i={error:w}}finally{try{d&&!d.done&&(o=l.return)&&o.call(l)}finally{if(i)throw i.error}}}}}catch(A){r={error:A}}finally{try{c&&!c.done&&(n=u.return)&&n.call(u)}finally{if(r)throw r.error}}},t.isPartialRow=function(e,t){var r,n,i,o,a,s;try{for(var u=b(t),c=u.next();!c.done;c=u.next()){var f=c.value,l=!0;try{for(var d=(i=void 0,b(e)),h=d.next();!h.done;h=d.next()){var p=h.value,g=!1;try{for(var y=(a=void 0,b(f.getPairs())),v=y.next();!v.done;v=y.next()){var m=v.value;if(p.equals(m)){g=!0;break}}}catch(_){a={error:_}}finally{try{v&&!v.done&&(s=y.return)&&s.call(y)}finally{if(a)throw a.error}}if(!g){l=!1;break}}}catch(w){i={error:w}}finally{try{h&&!h.done&&(o=d.return)&&o.call(d)}finally{if(i)throw i.error}}if(l)return!0}}catch(A){r={error:A}}finally{try{c&&!c.done&&(n=u.return)&&n.call(u)}finally{if(r)throw r.error}}return!1},t.prototype.getRows=function(){return this.rows},t.constructResult=function(e){var t=h.default.buildBitArray(e),r=(0,p.createDecoder)(t),n=r.parseInformation(),o=e[0].getFinderPattern().getResultPoints(),a=e[e.length-1].getFinderPattern().getResultPoints(),u=[o[0],o[1],a[0],a[1]];return new s.default(n,null,null,u,i.default.RSS_EXPANDED,null)},t.prototype.checkChecksum=function(){var e=this.pairs.get(0),t=e.getLeftChar(),r=e.getRightChar();if(null===r)return!1;for(var n=r.getChecksumPortion(),i=2,o=1;o<this.pairs.size();++o){var a=this.pairs.get(o);n+=a.getLeftChar().getChecksumPortion(),i++;var s=a.getRightChar();null!=s&&(n+=s.getChecksumPortion(),i++)}n%=211;var u=211*(i-4)+n;return u===t.getValue()},t.getNextSecondBar=function(e,t){var r;return e.get(t)?(r=e.getNextUnset(t),r=e.getNextSet(r)):(r=e.getNextSet(t),r=e.getNextUnset(r)),r},t.prototype.retrieveNextPair=function(e,r,n){var i,o=r.length%2===0;this.startFromEven&&(o=!o);var s=!0,u=-1;do{this.findNextPair(e,r,u),i=this.parseFoundFinderPattern(e,n,o),null===i?u=t.getNextSecondBar(e,this.startEnd[0]):s=!1}while(s);var c,f=this.decodeDataCharacter(e,i,o,!0);if(!this.isEmptyPair(r)&&r[r.length-1].mustBeLast())throw new a.default;try{c=this.decodeDataCharacter(e,i,o,!1)}catch(l){c=null,console.log(l)}return new g.default(f,c,i,!0)},t.prototype.isEmptyPair=function(e){return 0===e.length},t.prototype.findNextPair=function(e,r,n){var i=this.getDecodeFinderCounters();i[0]=0,i[1]=0,i[2]=0,i[3]=0;var o,s=e.getSize();if(n>=0)o=n;else if(this.isEmptyPair(r))o=0;else{var u=r[r.length-1];o=u.getFinderPattern().getStartEnd()[1]}var c=r.length%2!==0;this.startFromEven&&(c=!c);var f=!1;while(o<s){if(f=!e.get(o),!f)break;o++}for(var l=0,d=o,h=o;h<s;h++)if(e.get(h)!==f)i[l]++;else{if(3===l){if(c&&t.reverseCounters(i),t.isFinderPattern(i))return this.startEnd[0]=d,void(this.startEnd[1]=h);c&&t.reverseCounters(i),d+=i[0]+i[1],i[0]=i[2],i[1]=i[3],i[2]=0,i[3]=0,l--}else l++;i[l]=1,f=!f}throw new a.default},t.reverseCounters=function(e){for(var t=e.length,r=0;r<t/2;++r){var n=e[r];e[r]=e[t-r-1],e[t-r-1]=n}},t.prototype.parseFoundFinderPattern=function(e,r,n){var i,o,a;if(n){var s=this.startEnd[0]-1;while(s>=0&&!e.get(s))s--;s++,i=this.startEnd[0]-s,o=s,a=this.startEnd[1]}else o=this.startEnd[0],a=e.getNextUnset(this.startEnd[1]+1),i=a-this.startEnd[1];var c,f=this.getDecodeFinderCounters();u.default.arraycopy(f,0,f,1,f.length-1),f[0]=i;try{c=this.parseFinderValue(f,t.FINDER_PATTERNS)}catch(d){return null}return new l.default(c,[o,a],o,a,r)},t.prototype.decodeDataCharacter=function(e,r,n,i){for(var s=this.getDataCharacterCounters(),u=0;u<s.length;u++)s[u]=0;if(i)t.recordPatternInReverse(e,r.getStartEnd()[0],s);else{t.recordPattern(e,r.getStartEnd()[1],s);for(var c=0,l=s.length-1;c<l;c++,l--){var h=s[c];s[c]=s[l],s[l]=h}}var p=o.default.sum(new Int32Array(s))/17,g=(r.getStartEnd()[1]-r.getStartEnd()[0])/15;if(Math.abs(p-g)/g>.3)throw new a.default;var y=this.getOddCounts(),v=this.getEvenCounts(),b=this.getOddRoundingErrors(),m=this.getEvenRoundingErrors();for(c=0;c<s.length;c++){var _=1*s[c]/p,w=_+.5;if(w<1){if(_<.3)throw new a.default;w=1}else if(w>8){if(_>8.7)throw new a.default;w=8}var A=c/2;0===(1&c)?(y[A]=w,b[A]=_-w):(v[A]=w,m[A]=_-w)}this.adjustOddEvenCounts(17);var S=4*r.getValue()+(n?0:2)+(i?0:1)-1,x=0,E=0;for(c=y.length-1;c>=0;c--){if(t.isNotA1left(r,n,i)){var C=t.WEIGHTS[S][2*c];E+=y[c]*C}x+=y[c]}var O=0;for(c=v.length-1;c>=0;c--)if(t.isNotA1left(r,n,i)){C=t.WEIGHTS[S][2*c+1];O+=v[c]*C}var I=E+O;if(0!==(1&x)||x>13||x<4)throw new a.default;var T=(13-x)/2,P=t.SYMBOL_WIDEST[T],M=9-P,k=d.default.getRSSvalue(y,P,!0),R=d.default.getRSSvalue(v,M,!1),D=t.EVEN_TOTAL_SUBSET[T],N=t.GSUM[T],B=k*D+R+N;return new f.default(B,I)},t.isNotA1left=function(e,t,r){return!(0===e.getValue()&&t&&r)},t.prototype.adjustOddEvenCounts=function(e){var r=o.default.sum(new Int32Array(this.getOddCounts())),n=o.default.sum(new Int32Array(this.getEvenCounts())),i=!1,s=!1;r>13?s=!0:r<4&&(i=!0);var u=!1,c=!1;n>13?c=!0:n<4&&(u=!0);var f=r+n-e,l=1===(1&r),d=0===(1&n);if(1===f)if(l){if(d)throw new a.default;s=!0}else{if(!d)throw new a.default;c=!0}else if(-1===f)if(l){if(d)throw new a.default;i=!0}else{if(!d)throw new a.default;u=!0}else{if(0!==f)throw new a.default;if(l){if(!d)throw new a.default;r<n?(i=!0,c=!0):(s=!0,u=!0)}else if(d)throw new a.default}if(i){if(s)throw new a.default;t.increment(this.getOddCounts(),this.getOddRoundingErrors())}if(s&&t.decrement(this.getOddCounts(),this.getOddRoundingErrors()),u){if(c)throw new a.default;t.increment(this.getEvenCounts(),this.getOddRoundingErrors())}c&&t.decrement(this.getEvenCounts(),this.getEvenRoundingErrors())},t.SYMBOL_WIDEST=[7,5,4,3,1],t.EVEN_TOTAL_SUBSET=[4,20,52,104,204],t.GSUM=[0,348,1388,2948,3988],t.FINDER_PATTERNS=[Int32Array.from([1,8,4,1]),Int32Array.from([3,6,4,1]),Int32Array.from([3,4,6,1]),Int32Array.from([3,2,8,1]),Int32Array.from([2,6,5,1]),Int32Array.from([2,2,9,1])],t.WEIGHTS=[[1,3,9,27,81,32,96,77],[20,60,180,118,143,7,21,63],[189,145,13,39,117,140,209,205],[193,157,49,147,19,57,171,91],[62,186,136,197,169,85,44,132],[185,133,188,142,4,12,36,108],[113,128,173,97,80,29,87,50],[150,28,84,41,123,158,52,156],[46,138,203,187,139,206,196,166],[76,17,51,153,37,111,122,155],[43,129,176,106,107,110,119,146],[16,48,144,10,30,90,59,177],[109,116,137,200,178,112,125,164],[70,210,208,202,184,130,179,115],[134,191,151,31,93,68,204,190],[148,22,66,198,172,94,71,2],[6,18,54,162,64,192,154,40],[120,149,25,75,14,42,126,167],[79,26,78,23,69,207,199,175],[103,98,83,38,114,131,182,124],[161,61,183,127,170,88,53,159],[55,165,73,8,24,72,5,15],[45,135,194,160,58,174,100,89]],t.FINDER_PAT_A=0,t.FINDER_PAT_B=1,t.FINDER_PAT_C=2,t.FINDER_PAT_D=3,t.FINDER_PAT_E=4,t.FINDER_PAT_F=5,t.FINDER_PATTERN_SEQUENCES=[[t.FINDER_PAT_A,t.FINDER_PAT_A],[t.FINDER_PAT_A,t.FINDER_PAT_B,t.FINDER_PAT_B],[t.FINDER_PAT_A,t.FINDER_PAT_C,t.FINDER_PAT_B,t.FINDER_PAT_D],[t.FINDER_PAT_A,t.FINDER_PAT_E,t.FINDER_PAT_B,t.FINDER_PAT_D,t.FINDER_PAT_C],[t.FINDER_PAT_A,t.FINDER_PAT_E,t.FINDER_PAT_B,t.FINDER_PAT_D,t.FINDER_PAT_D,t.FINDER_PAT_F],[t.FINDER_PAT_A,t.FINDER_PAT_E,t.FINDER_PAT_B,t.FINDER_PAT_D,t.FINDER_PAT_E,t.FINDER_PAT_F,t.FINDER_PAT_F],[t.FINDER_PAT_A,t.FINDER_PAT_A,t.FINDER_PAT_B,t.FINDER_PAT_B,t.FINDER_PAT_C,t.FINDER_PAT_C,t.FINDER_PAT_D,t.FINDER_PAT_D],[t.FINDER_PAT_A,t.FINDER_PAT_A,t.FINDER_PAT_B,t.FINDER_PAT_B,t.FINDER_PAT_C,t.FINDER_PAT_C,t.FINDER_PAT_D,t.FINDER_PAT_E,t.FINDER_PAT_E],[t.FINDER_PAT_A,t.FINDER_PAT_A,t.FINDER_PAT_B,t.FINDER_PAT_B,t.FINDER_PAT_C,t.FINDER_PAT_C,t.FINDER_PAT_D,t.FINDER_PAT_E,t.FINDER_PAT_F,t.FINDER_PAT_F],[t.FINDER_PAT_A,t.FINDER_PAT_A,t.FINDER_PAT_B,t.FINDER_PAT_B,t.FINDER_PAT_C,t.FINDER_PAT_D,t.FINDER_PAT_D,t.FINDER_PAT_E,t.FINDER_PAT_E,t.FINDER_PAT_F,t.FINDER_PAT_F]],t.MAX_PAIRS=11,t}(c.default),_=m;t.default=_},a9e1:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("f228")),o=function(){function e(){}return e.checkAndNudgePoints=function(e,t){for(var r=e.getWidth(),n=e.getHeight(),o=!0,a=0;a<t.length&&o;a+=2){var s=Math.floor(t[a]),u=Math.floor(t[a+1]);if(s<-1||s>r||u<-1||u>n)throw new i.default;o=!1,-1===s?(t[a]=0,o=!0):s===r&&(t[a]=r-1,o=!0),-1===u?(t[a+1]=0,o=!0):u===n&&(t[a+1]=n-1,o=!0)}o=!0;for(a=t.length-2;a>=0&&o;a-=2){s=Math.floor(t[a]),u=Math.floor(t[a+1]);if(s<-1||s>r||u<-1||u>n)throw new i.default;o=!1,-1===s?(t[a]=0,o=!0):s===r&&(t[a]=r-1,o=!0),-1===u?(t[a+1]=0,o=!0):u===n&&(t[a+1]=n-1,o=!0)}},e}(),a=o;t.default=a},ace9:function(e,t,r){"use strict";(function(t,n){var i=r("5f79").Buffer,o=t.crypto||t.msCrypto;o&&o.getRandomValues?e.exports=function(e,t){if(e>4294967295)throw new RangeError("requested too many random bytes");var r=i.allocUnsafe(e);if(e>0)if(e>65536)for(var a=0;a<e;a+=65536)o.getRandomValues(r.slice(a,a+65536));else o.getRandomValues(r);if("function"===typeof t)return n.nextTick((function(){t(null,r)}));return r}:e.exports=function(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}}).call(this,r("0ee4"),r("28d0"))},ad71:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("9c16")),o=n(r("e5d0")),a=n(r("a2dd")),s=n(r("647e")),u=n(r("6468")),c=n(r("f7fd")),f=function(){function e(){}return e.clearMatrix=function(e){e.clear(255)},e.buildMatrix=function(t,r,n,i,o){e.clearMatrix(o),e.embedBasicPatterns(n,o),e.embedTypeInfo(r,i,o),e.maybeEmbedVersionInfo(n,o),e.embedDataBits(t,i,o)},e.embedBasicPatterns=function(t,r){e.embedPositionDetectionPatternsAndSeparators(r),e.embedDarkDotAtLeftBottomCorner(r),e.maybeEmbedPositionAdjustmentPatterns(t,r),e.embedTimingPatterns(r)},e.embedTypeInfo=function(t,r,n){var o=new i.default;e.makeTypeInfoBits(t,r,o);for(var a=0,s=o.getSize();a<s;++a){var u=o.get(o.getSize()-1-a),c=e.TYPE_INFO_COORDINATES[a],f=c[0],l=c[1];if(n.setBoolean(f,l,u),a<8){var d=n.getWidth()-a-1,h=8;n.setBoolean(d,h,u)}else{d=8,h=n.getHeight()-7+(a-8);n.setBoolean(d,h,u)}}},e.maybeEmbedVersionInfo=function(t,r){if(!(t.getVersionNumber()<7)){var n=new i.default;e.makeVersionInfoBits(t,n);for(var o=17,a=0;a<6;++a)for(var s=0;s<3;++s){var u=n.get(o);o--,r.setBoolean(a,r.getHeight()-11+s,u),r.setBoolean(r.getHeight()-11+s,a,u)}}},e.embedDataBits=function(t,r,n){var i=0,o=-1,a=n.getWidth()-1,c=n.getHeight()-1;while(a>0){6===a&&(a-=1);while(c>=0&&c<n.getHeight()){for(var f=0;f<2;++f){var l=a-f;if(e.isEmpty(n.get(l,c))){var d=void 0;i<t.getSize()?(d=t.get(i),++i):d=!1,255!==r&&s.default.getDataMaskBit(r,l,c)&&(d=!d),n.setBoolean(l,c,d)}}c+=o}o=-o,c+=o,a-=2}if(i!==t.getSize())throw new u.default("Not all bits consumed: "+i+"/"+t.getSize())},e.findMSBSet=function(e){return 32-o.default.numberOfLeadingZeros(e)},e.calculateBCHCode=function(t,r){if(0===r)throw new c.default("0 polynomial");var n=e.findMSBSet(r);t<<=n-1;while(e.findMSBSet(t)>=n)t^=r<<e.findMSBSet(t)-n;return t},e.makeTypeInfoBits=function(t,r,n){if(!a.default.isValidMaskPattern(r))throw new u.default("Invalid mask pattern");var o=t.getBits()<<3|r;n.appendBits(o,5);var s=e.calculateBCHCode(o,e.TYPE_INFO_POLY);n.appendBits(s,10);var c=new i.default;if(c.appendBits(e.TYPE_INFO_MASK_PATTERN,15),n.xor(c),15!==n.getSize())throw new u.default("should not happen but we got: "+n.getSize())},e.makeVersionInfoBits=function(t,r){r.appendBits(t.getVersionNumber(),6);var n=e.calculateBCHCode(t.getVersionNumber(),e.VERSION_INFO_POLY);if(r.appendBits(n,12),18!==r.getSize())throw new u.default("should not happen but we got: "+r.getSize())},e.isEmpty=function(e){return 255===e},e.embedTimingPatterns=function(t){for(var r=8;r<t.getWidth()-8;++r){var n=(r+1)%2;e.isEmpty(t.get(r,6))&&t.setNumber(r,6,n),e.isEmpty(t.get(6,r))&&t.setNumber(6,r,n)}},e.embedDarkDotAtLeftBottomCorner=function(e){if(0===e.get(8,e.getHeight()-8))throw new u.default;e.setNumber(8,e.getHeight()-8,1)},e.embedHorizontalSeparationPattern=function(t,r,n){for(var i=0;i<8;++i){if(!e.isEmpty(n.get(t+i,r)))throw new u.default;n.setNumber(t+i,r,0)}},e.embedVerticalSeparationPattern=function(t,r,n){for(var i=0;i<7;++i){if(!e.isEmpty(n.get(t,r+i)))throw new u.default;n.setNumber(t,r+i,0)}},e.embedPositionAdjustmentPattern=function(t,r,n){for(var i=0;i<5;++i)for(var o=e.POSITION_ADJUSTMENT_PATTERN[i],a=0;a<5;++a)n.setNumber(t+a,r+i,o[a])},e.embedPositionDetectionPattern=function(t,r,n){for(var i=0;i<7;++i)for(var o=e.POSITION_DETECTION_PATTERN[i],a=0;a<7;++a)n.setNumber(t+a,r+i,o[a])},e.embedPositionDetectionPatternsAndSeparators=function(t){var r=e.POSITION_DETECTION_PATTERN[0].length;e.embedPositionDetectionPattern(0,0,t),e.embedPositionDetectionPattern(t.getWidth()-r,0,t),e.embedPositionDetectionPattern(0,t.getWidth()-r,t);e.embedHorizontalSeparationPattern(0,7,t),e.embedHorizontalSeparationPattern(t.getWidth()-8,7,t),e.embedHorizontalSeparationPattern(0,t.getWidth()-8,t);e.embedVerticalSeparationPattern(7,0,t),e.embedVerticalSeparationPattern(t.getHeight()-7-1,0,t),e.embedVerticalSeparationPattern(7,t.getHeight()-7,t)},e.maybeEmbedPositionAdjustmentPatterns=function(t,r){if(!(t.getVersionNumber()<2))for(var n=t.getVersionNumber()-1,i=e.POSITION_ADJUSTMENT_PATTERN_COORDINATE_TABLE[n],o=0,a=i.length;o!==a;o++){var s=i[o];if(s>=0)for(var u=0;u!==a;u++){var c=i[u];c>=0&&e.isEmpty(r.get(c,s))&&e.embedPositionAdjustmentPattern(c-2,s-2,r)}}},e.POSITION_DETECTION_PATTERN=Array.from([Int32Array.from([1,1,1,1,1,1,1]),Int32Array.from([1,0,0,0,0,0,1]),Int32Array.from([1,0,1,1,1,0,1]),Int32Array.from([1,0,1,1,1,0,1]),Int32Array.from([1,0,1,1,1,0,1]),Int32Array.from([1,0,0,0,0,0,1]),Int32Array.from([1,1,1,1,1,1,1])]),e.POSITION_ADJUSTMENT_PATTERN=Array.from([Int32Array.from([1,1,1,1,1]),Int32Array.from([1,0,0,0,1]),Int32Array.from([1,0,1,0,1]),Int32Array.from([1,0,0,0,1]),Int32Array.from([1,1,1,1,1])]),e.POSITION_ADJUSTMENT_PATTERN_COORDINATE_TABLE=Array.from([Int32Array.from([-1,-1,-1,-1,-1,-1,-1]),Int32Array.from([6,18,-1,-1,-1,-1,-1]),Int32Array.from([6,22,-1,-1,-1,-1,-1]),Int32Array.from([6,26,-1,-1,-1,-1,-1]),Int32Array.from([6,30,-1,-1,-1,-1,-1]),Int32Array.from([6,34,-1,-1,-1,-1,-1]),Int32Array.from([6,22,38,-1,-1,-1,-1]),Int32Array.from([6,24,42,-1,-1,-1,-1]),Int32Array.from([6,26,46,-1,-1,-1,-1]),Int32Array.from([6,28,50,-1,-1,-1,-1]),Int32Array.from([6,30,54,-1,-1,-1,-1]),Int32Array.from([6,32,58,-1,-1,-1,-1]),Int32Array.from([6,34,62,-1,-1,-1,-1]),Int32Array.from([6,26,46,66,-1,-1,-1]),Int32Array.from([6,26,48,70,-1,-1,-1]),Int32Array.from([6,26,50,74,-1,-1,-1]),Int32Array.from([6,30,54,78,-1,-1,-1]),Int32Array.from([6,30,56,82,-1,-1,-1]),Int32Array.from([6,30,58,86,-1,-1,-1]),Int32Array.from([6,34,62,90,-1,-1,-1]),Int32Array.from([6,28,50,72,94,-1,-1]),Int32Array.from([6,26,50,74,98,-1,-1]),Int32Array.from([6,30,54,78,102,-1,-1]),Int32Array.from([6,28,54,80,106,-1,-1]),Int32Array.from([6,32,58,84,110,-1,-1]),Int32Array.from([6,30,58,86,114,-1,-1]),Int32Array.from([6,34,62,90,118,-1,-1]),Int32Array.from([6,26,50,74,98,122,-1]),Int32Array.from([6,30,54,78,102,126,-1]),Int32Array.from([6,26,52,78,104,130,-1]),Int32Array.from([6,30,56,82,108,134,-1]),Int32Array.from([6,34,60,86,112,138,-1]),Int32Array.from([6,30,58,86,114,142,-1]),Int32Array.from([6,34,62,90,118,146,-1]),Int32Array.from([6,30,54,78,102,126,150]),Int32Array.from([6,24,50,76,102,128,154]),Int32Array.from([6,28,54,80,106,132,158]),Int32Array.from([6,32,58,84,110,136,162]),Int32Array.from([6,26,54,82,110,138,166]),Int32Array.from([6,30,58,86,114,142,170])]),e.TYPE_INFO_COORDINATES=Array.from([Int32Array.from([8,0]),Int32Array.from([8,1]),Int32Array.from([8,2]),Int32Array.from([8,3]),Int32Array.from([8,4]),Int32Array.from([8,5]),Int32Array.from([8,7]),Int32Array.from([8,8]),Int32Array.from([7,8]),Int32Array.from([5,8]),Int32Array.from([4,8]),Int32Array.from([3,8]),Int32Array.from([2,8]),Int32Array.from([1,8]),Int32Array.from([0,8])]),e.VERSION_INFO_POLY=7973,e.TYPE_INFO_POLY=1335,e.TYPE_INFO_MASK_PATTERN=21522,e}(),l=f;t.default=l},ade1:function(e,t,r){"use strict";const n=r("2c2e"),i=r("81eb"),o=r("8936").DecoderBuffer,a=r("bee8"),s=r("0b50");function u(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new c,this.tree._init(e.body)}function c(e){a.call(this,"der",e)}function f(e,t){let r=e.readUInt8(t);if(e.isError(r))return r;const n=s.tagClass[r>>6],i=0===(32&r);if(31===(31&r)){let n=r;r=0;while(128===(128&n)){if(n=e.readUInt8(t),e.isError(n))return n;r<<=7,r|=127&n}}else r&=31;const o=s.tag[r];return{cls:n,primitive:i,tag:r,tagStr:o}}function l(e,t,r){let n=e.readUInt8(r);if(e.isError(n))return n;if(!t&&128===n)return null;if(0===(128&n))return n;const i=127&n;if(i>4)return e.error("length octect is too long");n=0;for(let o=0;o<i;o++){n<<=8;const t=e.readUInt8(r);if(e.isError(t))return t;n|=t}return n}e.exports=u,u.prototype.decode=function(e,t){return o.isDecoderBuffer(e)||(e=new o(e,t)),this.tree._decode(e,t)},n(c,a),c.prototype._peekTag=function(e,t,r){if(e.isEmpty())return!1;const n=e.save(),i=f(e,'Failed to peek tag: "'+t+'"');return e.isError(i)?i:(e.restore(n),i.tag===t||i.tagStr===t||i.tagStr+"of"===t||r)},c.prototype._decodeTag=function(e,t,r){const n=f(e,'Failed to decode tag of "'+t+'"');if(e.isError(n))return n;let i=l(e,n.primitive,'Failed to get length of "'+t+'"');if(e.isError(i))return i;if(!r&&n.tag!==t&&n.tagStr!==t&&n.tagStr+"of"!==t)return e.error('Failed to match tag: "'+t+'"');if(n.primitive||null!==i)return e.skip(i,'Failed to match body of: "'+t+'"');const o=e.save(),a=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(a)?a:(i=e.offset-o.offset,e.restore(o),e.skip(i,'Failed to match body of: "'+t+'"'))},c.prototype._skipUntilEnd=function(e,t){for(;;){const r=f(e,t);if(e.isError(r))return r;const n=l(e,r.primitive,t);if(e.isError(n))return n;let i;if(i=r.primitive||null!==n?e.skip(n):this._skipUntilEnd(e,t),e.isError(i))return i;if("end"===r.tagStr)break}},c.prototype._decodeList=function(e,t,r,n){const i=[];while(!e.isEmpty()){const t=this._peekTag(e,"end");if(e.isError(t))return t;const o=r.decode(e,"der",n);if(e.isError(o)&&t)break;i.push(o)}return i},c.prototype._decodeStr=function(e,t){if("bitstr"===t){const t=e.readUInt8();return e.isError(t)?t:{unused:t,data:e.raw()}}if("bmpstr"===t){const t=e.raw();if(t.length%2===1)return e.error("Decoding of string type: bmpstr length mismatch");let r="";for(let e=0;e<t.length/2;e++)r+=String.fromCharCode(t.readUInt16BE(2*e));return r}if("numstr"===t){const t=e.raw().toString("ascii");return this._isNumstr(t)?t:e.error("Decoding of string type: numstr unsupported characters")}if("octstr"===t)return e.raw();if("objDesc"===t)return e.raw();if("printstr"===t){const t=e.raw().toString("ascii");return this._isPrintstr(t)?t:e.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(t)?e.raw().toString():e.error("Decoding of string type: "+t+" unsupported")},c.prototype._decodeObjid=function(e,t,r){let n;const i=[];let o=0,a=0;while(!e.isEmpty())a=e.readUInt8(),o<<=7,o|=127&a,0===(128&a)&&(i.push(o),o=0);128&a&&i.push(o);const s=i[0]/40|0,u=i[0]%40;if(n=r?i:[s,u].concat(i.slice(1)),t){let e=t[n.join(" ")];void 0===e&&(e=t[n.join(".")]),void 0!==e&&(n=e)}return n},c.prototype._decodeTime=function(e,t){const r=e.raw().toString();let n,i,o,a,s,u;if("gentime"===t)n=0|r.slice(0,4),i=0|r.slice(4,6),o=0|r.slice(6,8),a=0|r.slice(8,10),s=0|r.slice(10,12),u=0|r.slice(12,14);else{if("utctime"!==t)return e.error("Decoding "+t+" time is not supported yet");n=0|r.slice(0,2),i=0|r.slice(2,4),o=0|r.slice(4,6),a=0|r.slice(6,8),s=0|r.slice(8,10),u=0|r.slice(10,12),n=n<70?2e3+n:1900+n}return Date.UTC(n,i-1,o,a,s,u,0)},c.prototype._decodeNull=function(){return null},c.prototype._decodeBool=function(e){const t=e.readUInt8();return e.isError(t)?t:0!==t},c.prototype._decodeInt=function(e,t){const r=e.raw();let n=new i(r);return t&&(n=t[n.toString(10)]||n),n},c.prototype._use=function(e,t){return"function"===typeof e&&(e=e(t)),e._getDecoder("der").tree}},ade5:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("f5e6")),o=n(r("0497")),a=n(r("db8e")),s=n(r("9e56")),u=function(){function e(e){this.field=e}return e.prototype.decode=function(e,t){for(var r=this.field,n=new o.default(r,e),s=new Int32Array(t),u=!0,c=0;c<t;c++){var f=n.evaluateAt(r.exp(c+r.getGeneratorBase()));s[s.length-1-c]=f,0!==f&&(u=!1)}if(!u){var l=new o.default(r,s),d=this.runEuclideanAlgorithm(r.buildMonomial(t,1),l,t),h=d[0],p=d[1],g=this.findErrorLocations(h),y=this.findErrorMagnitudes(p,g);for(c=0;c<g.length;c++){var v=e.length-1-r.log(g[c]);if(v<0)throw new a.default("Bad error location");e[v]=i.default.addOrSubtract(e[v],y[c])}}},e.prototype.runEuclideanAlgorithm=function(e,t,r){if(e.getDegree()<t.getDegree()){var n=e;e=t,t=n}var i=this.field,o=e,u=t,c=i.getZero(),f=i.getOne();while(u.getDegree()>=(r/2|0)){var l=o,d=c;if(o=u,c=f,o.isZero())throw new a.default("r_{i-1} was zero");u=l;var h=i.getZero(),p=o.getCoefficient(o.getDegree()),g=i.inverse(p);while(u.getDegree()>=o.getDegree()&&!u.isZero()){var y=u.getDegree()-o.getDegree(),v=i.multiply(u.getCoefficient(u.getDegree()),g);h=h.addOrSubtract(i.buildMonomial(y,v)),u=u.addOrSubtract(o.multiplyByMonomial(y,v))}if(f=h.multiply(c).addOrSubtract(d),u.getDegree()>=o.getDegree())throw new s.default("Division algorithm failed to reduce polynomial?")}var b=f.getCoefficient(0);if(0===b)throw new a.default("sigmaTilde(0) was zero");var m=i.inverse(b),_=f.multiplyScalar(m),w=u.multiplyScalar(m);return[_,w]},e.prototype.findErrorLocations=function(e){var t=e.getDegree();if(1===t)return Int32Array.from([e.getCoefficient(1)]);for(var r=new Int32Array(t),n=0,i=this.field,o=1;o<i.getSize()&&n<t;o++)0===e.evaluateAt(o)&&(r[n]=i.inverse(o),n++);if(n!==t)throw new a.default("Error locator degree does not match number of roots");return r},e.prototype.findErrorMagnitudes=function(e,t){for(var r=t.length,n=new Int32Array(r),i=this.field,o=0;o<r;o++){for(var a=i.inverse(t[o]),s=1,u=0;u<r;u++)if(o!==u){var c=i.multiply(t[u],a),f=0===(1&c)?1|c:-2&c;s=i.multiply(s,f)}n[o]=i.multiply(e.evaluateAt(a),i.inverse(s)),0!==i.getGeneratorBase()&&(n[o]=i.multiply(n[o],a))}return n},e}(),c=u;t.default=c},ae1e:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("e01c")),o=n(r("3b65")),a=n(r("56c5")),s=n(r("343e")),u=function(){function e(e){var t=e.getHeight();if(t<21||1!==(3&t))throw new s.default;this.bitMatrix=e}return e.prototype.readFormatInformation=function(){if(null!==this.parsedFormatInfo&&void 0!==this.parsedFormatInfo)return this.parsedFormatInfo;for(var e=0,t=0;t<6;t++)e=this.copyBit(t,8,e);e=this.copyBit(7,8,e),e=this.copyBit(8,8,e),e=this.copyBit(8,7,e);for(var r=5;r>=0;r--)e=this.copyBit(8,r,e);var n=this.bitMatrix.getHeight(),i=0,a=n-7;for(r=n-1;r>=a;r--)i=this.copyBit(8,r,i);for(t=n-8;t<n;t++)i=this.copyBit(t,8,i);if(this.parsedFormatInfo=o.default.decodeFormatInformation(e,i),null!==this.parsedFormatInfo)return this.parsedFormatInfo;throw new s.default},e.prototype.readVersion=function(){if(null!==this.parsedVersion&&void 0!==this.parsedVersion)return this.parsedVersion;var e=this.bitMatrix.getHeight(),t=Math.floor((e-17)/4);if(t<=6)return i.default.getVersionForNumber(t);for(var r=0,n=e-11,o=5;o>=0;o--)for(var a=e-9;a>=n;a--)r=this.copyBit(a,o,r);var u=i.default.decodeVersionInformation(r);if(null!==u&&u.getDimensionForVersion()===e)return this.parsedVersion=u,u;r=0;for(a=5;a>=0;a--)for(o=e-9;o>=n;o--)r=this.copyBit(a,o,r);if(u=i.default.decodeVersionInformation(r),null!==u&&u.getDimensionForVersion()===e)return this.parsedVersion=u,u;throw new s.default},e.prototype.copyBit=function(e,t,r){var n=this.isMirror?this.bitMatrix.get(t,e):this.bitMatrix.get(e,t);return n?r<<1|1:r<<1},e.prototype.readCodewords=function(){var e=this.readFormatInformation(),t=this.readVersion(),r=a.default.values.get(e.getDataMask()),n=this.bitMatrix.getHeight();r.unmaskBitMatrix(this.bitMatrix,n);for(var i=t.buildFunctionPattern(),o=!0,u=new Uint8Array(t.getTotalCodewords()),c=0,f=0,l=0,d=n-1;d>0;d-=2){6===d&&d--;for(var h=0;h<n;h++)for(var p=o?n-1-h:h,g=0;g<2;g++)i.get(d-g,p)||(l++,f<<=1,this.bitMatrix.get(d-g,p)&&(f|=1),8===l&&(u[c++]=f,l=0,f=0));o=!o}if(c!==t.getTotalCodewords())throw new s.default;return u},e.prototype.remask=function(){if(null!==this.parsedFormatInfo){var e=a.default.values.get(this.parsedFormatInfo.getDataMask()),t=this.bitMatrix.getHeight();e.unmaskBitMatrix(this.bitMatrix,t)}},e.prototype.setMirror=function(e){this.parsedVersion=null,this.parsedFormatInfo=null,this.isMirror=e},e.prototype.mirror=function(){for(var e=this.bitMatrix,t=0,r=e.getWidth();t<r;t++)for(var n=t+1,i=e.getHeight();n<i;n++)e.get(t,n)!==e.get(n,t)&&(e.flip(n,t),e.flip(t,n))},e}(),c=u;t.default=c},af34:function(e,t,r){var n=r("a708"),i=r("b893"),o=r("6382"),a=r("9008");e.exports=function(e){return n(e)||i(e)||o(e)||a()},e.exports.__esModule=!0,e.exports["default"]=e.exports},afcc:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("343e")),o=n(r("8618")),a=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),s=function(e){function t(t,r,n){var o=e.call(this,t)||this;if(r<0||r>10||n<0||n>10)throw new i.default;return o.firstDigit=r,o.secondDigit=n,o}return a(t,e),t.prototype.getFirstDigit=function(){return this.firstDigit},t.prototype.getSecondDigit=function(){return this.secondDigit},t.prototype.getValue=function(){return 10*this.firstDigit+this.secondDigit},t.prototype.isFirstDigitFNC1=function(){return this.firstDigit===t.FNC1},t.prototype.isSecondDigitFNC1=function(){return this.secondDigit===t.FNC1},t.prototype.isAnyFNC1=function(){return this.firstDigit===t.FNC1||this.secondDigit===t.FNC1},t.FNC1=10,t}(o.default),u=s;t.default=u},b0e4:function(e,t){var r={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},b13c:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("271d")),o=n(r("a22d")),a=n(r("93d8"));var s=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"n";try{if(!e)return!1;e instanceof Error&&(e=e.message);var n=o.default.getOptions();if(!n.error.status)return;var s="未知";try{var u=getCurrentPages(),c=u[u.length-1];c&&c.route&&(s=c.route)}catch(l){}var f=i.default.get("errorReport");f||(f=[]),f.length>=n.error.cache.rowMax&&(f=f.splice(0,n.error.cache.rowMax)),e=String(e),e=a.default.compressObject(e,n.error.cache.rowSize/2),t=String(t),t=a.default.compressObject(t,n.error.cache.rowSize/2),f.unshift({t:(new Date).getTime(),m:e,tr:t,p:s,type:r}),console.error("__ignoreReport__",e,t),f=a.default.compressArray(f,"end",n.error.cache.size),i.default.set("errorReport",f)}catch(l){console.log("errorReport error: ",l)}};t.default=s},b1cb:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("b717")),o=n(r("f74e")),a=n(r("343e")),s=n(r("f228")),u=n(r("4d7d")),c=n(r("0c24")),f=n(r("a8be")),l=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),d=function(e){var t="function"===typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},h=function(e){function t(t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var n=e.call(this)||this;return n.usingCheckDigit=t,n.extendedMode=r,n.decodeRowResult="",n.counters=new Int32Array(9),n}return l(t,e),t.prototype.decodeRow=function(e,r,n){var a,u,l,h,p=this.counters;p.fill(0),this.decodeRowResult="";var g,y,v=t.findAsteriskPattern(r,p),b=r.getNextSet(v[1]),m=r.getSize();do{t.recordPattern(r,b,p);var _=t.toNarrowWidePattern(p);if(_<0)throw new s.default;g=t.patternToChar(_),this.decodeRowResult+=g,y=b;try{for(var w=(a=void 0,d(p)),A=w.next();!A.done;A=w.next()){var S=A.value;b+=S}}catch(D){a={error:D}}finally{try{A&&!A.done&&(u=w.return)&&u.call(w)}finally{if(a)throw a.error}}b=r.getNextSet(b)}while("*"!==g);this.decodeRowResult=this.decodeRowResult.substring(0,this.decodeRowResult.length-1);var x=0;try{for(var E=d(p),C=E.next();!C.done;C=E.next()){S=C.value;x+=S}}catch(N){l={error:N}}finally{try{C&&!C.done&&(h=E.return)&&h.call(E)}finally{if(l)throw l.error}}var O,I=b-y-x;if(b!==m&&2*I<x)throw new s.default;if(this.usingCheckDigit){for(var T=this.decodeRowResult.length-1,P=0,M=0;M<T;M++)P+=t.ALPHABET_STRING.indexOf(this.decodeRowResult.charAt(M));if(this.decodeRowResult.charAt(T)!==t.ALPHABET_STRING.charAt(P%43))throw new o.default;this.decodeRowResult=this.decodeRowResult.substring(0,T)}if(0===this.decodeRowResult.length)throw new s.default;O=this.extendedMode?t.decodeExtended(this.decodeRowResult):this.decodeRowResult;var k=(v[1]+v[0])/2,R=y+x/2;return new c.default(O,null,0,[new f.default(k,e),new f.default(R,e)],i.default.CODE_39,(new Date).getTime())},t.findAsteriskPattern=function(e,r){for(var n=e.getSize(),i=e.getNextSet(0),o=0,a=i,u=!1,c=r.length,f=i;f<n;f++)if(e.get(f)!==u)r[o]++;else{if(o===c-1){if(this.toNarrowWidePattern(r)===t.ASTERISK_ENCODING&&e.isRange(Math.max(0,a-Math.floor((f-a)/2)),a,!1))return[a,f];a+=r[0]+r[1],r.copyWithin(0,2,2+o-1),r[o-1]=0,r[o]=0,o--}else o++;r[o]=1,u=!u}throw new s.default},t.toNarrowWidePattern=function(e){var t,r,n,i=e.length,o=0;do{var a=2147483647;try{for(var s=(t=void 0,d(e)),u=s.next();!u.done;u=s.next()){var c=u.value;c<a&&c>o&&(a=c)}}catch(p){t={error:p}}finally{try{u&&!u.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}o=a,n=0;for(var f=0,l=0,h=0;h<i;h++){c=e[h];c>o&&(l|=1<<i-1-h,n++,f+=c)}if(3===n){for(h=0;h<i&&n>0;h++){c=e[h];if(c>o&&(n--,2*c>=f))return-1}return l}}while(n>3);return-1},t.patternToChar=function(e){for(var r=0;r<t.CHARACTER_ENCODINGS.length;r++)if(t.CHARACTER_ENCODINGS[r]===e)return t.ALPHABET_STRING.charAt(r);if(e===t.ASTERISK_ENCODING)return"*";throw new s.default},t.decodeExtended=function(e){for(var t=e.length,r="",n=0;n<t;n++){var i=e.charAt(n);if("+"===i||"$"===i||"%"===i||"/"===i){var o=e.charAt(n+1),s="\0";switch(i){case"+":if(!(o>="A"&&o<="Z"))throw new a.default;s=String.fromCharCode(o.charCodeAt(0)+32);break;case"$":if(!(o>="A"&&o<="Z"))throw new a.default;s=String.fromCharCode(o.charCodeAt(0)-64);break;case"%":if(o>="A"&&o<="E")s=String.fromCharCode(o.charCodeAt(0)-38);else if(o>="F"&&o<="J")s=String.fromCharCode(o.charCodeAt(0)-11);else if(o>="K"&&o<="O")s=String.fromCharCode(o.charCodeAt(0)+16);else if(o>="P"&&o<="T")s=String.fromCharCode(o.charCodeAt(0)+43);else if("U"===o)s="\0";else if("V"===o)s="@";else if("W"===o)s="`";else{if("X"!==o&&"Y"!==o&&"Z"!==o)throw new a.default;s=""}break;case"/":if(o>="A"&&o<="O")s=String.fromCharCode(o.charCodeAt(0)-32);else{if("Z"!==o)throw new a.default;s=":"}break}r+=s,n++}else r+=i}return r},t.ALPHABET_STRING="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%",t.CHARACTER_ENCODINGS=[52,289,97,352,49,304,112,37,292,100,265,73,328,25,280,88,13,268,76,28,259,67,322,19,274,82,7,262,70,22,385,193,448,145,400,208,133,388,196,168,162,138,42],t.ASTERISK_ENCODING=148,t}(u.default),p=h;t.default=p},b4d2:function(e,t){function r(t){return e.exports=r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports["default"]=e.exports,r(t)}e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},b51b:function(e,t,r){"use strict";var n=t;n.base=r("07a0"),n.short=r("c2b3"),n.mont=r("a52f"),n.edwards=r("db86")},b577:function(e,t,r){var n=r("6d24"),i=r("fa30"),o=r("e994");t.createCipher=t.Cipher=n.createCipher,t.createCipheriv=t.Cipheriv=n.createCipheriv,t.createDecipher=t.Decipher=i.createDecipher,t.createDecipheriv=t.Decipheriv=i.createDecipheriv,t.listCiphers=t.getCiphers=function(){return Object.keys(o)}},b624:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.updateSignature=t.systemUserSelectByPage=t.systemUserPersonalData=t.systemUserEditUser=t.systemUserDetail=t.systemMineWarningNoticeList=t.systemMineWarningNoticeDetail=t.systemMineUserEdit=t.systemMineLinkGetEquipmentDetail=t.systemMineLinkGetEducationExamDetail=t.systemMineLinkGetCagePositionDetail=t.querygenSign=t.querySignature=t.menuLinkPost=t.laboratoryEventFindByEventId=t.laboratoryAppletSignSubList=t.laboratoryAppletSignOutSubmit=t.laboratoryAppletPhotoInspectList=t.laboratoryAppletPassOutList=t.laboratoryAppletPassOutCount=t.laboratoryAppletOutCheckList=t.laboratoryAppletAddPhotoInspect=t.gradingControlFinish=t.gradingControlDetail=t.gradingControlAdd=t.gradingControl=t.chemicalAppletSelectStockRecord=t.authNumCaptchaNotRegistered=t.authNumCaptcha=t.authForgetPassword=void 0;var i=n(r("7ca3")),o=r("4fd4");function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){(0,i.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}t.systemMineUserEdit=function(e){return(0,o.apiResquest)({url:"/system/mine/user/edit",method:"POST",data:s({},e)})};t.systemMineWarningNoticeList=function(e){return(0,o.apiResquest)({url:"/system/mine/warningNoticeList",method:"POST",data:s({},e)})};t.systemMineWarningNoticeDetail=function(e){return(0,o.apiResquest)({url:"/system/mine/warningNoticeDetail",method:"get",data:s({},e)})};t.laboratoryEventFindByEventId=function(e){return(0,o.apiResquest)({url:"/laboratory/event/findByEventId",method:"get",data:s({},e)})};t.laboratoryAppletSignSubList=function(e){return(0,o.apiResquest)({url:"/laboratory/applet/signSubList",method:"POST",data:s({},e)})};t.laboratoryAppletPassOutCount=function(e){return(0,o.apiResquest)({url:"/laboratory/applet/passOutCount",method:"POST",data:s({},e)})};t.laboratoryAppletPassOutList=function(e){return(0,o.apiResquest)({url:"/laboratory/applet/passOutList",method:"POST",data:s({},e)})};t.laboratoryAppletPhotoInspectList=function(e){return(0,o.apiResquest)({url:"/laboratory/applet/photoInspectList",method:"POST",data:s({},e)})};t.laboratoryAppletOutCheckList=function(e){return(0,o.apiResquest)({url:"/laboratory/applet/outCheckList",method:"POST",data:s({},e)})};t.laboratoryAppletAddPhotoInspect=function(e){return(0,o.apiResquest)({url:"/laboratory/applet/addPhotoInspect",method:"POST",data:s({},e)})};t.laboratoryAppletSignOutSubmit=function(e){return(0,o.apiResquest)({url:"/laboratory/applet/signOutSubmit",method:"POST",data:s({},e)})};t.querySignature=function(e){return(0,o.apiResquest)({url:"/system/user/querySignature",method:"get",data:s({},e)})};t.querygenSign=function(e){return(0,o.apiResquest)({url:"/system/user/genSign",method:"POST",data:s({},e)})};t.updateSignature=function(e){return(0,o.apiResquest)({url:"/system/user/appSignature",method:"POST",data:s({},e)})};t.systemMineLinkGetEquipmentDetail=function(e){return(0,o.apiResquest)({url:"/system/mine/link/getEquipmentDetail",method:"get",data:s({},e)})};t.systemMineLinkGetCagePositionDetail=function(e){return(0,o.apiResquest)({url:"/system/mine/link/getCagePositionDetail",method:"get",data:s({},e)})};t.systemMineLinkGetEducationExamDetail=function(e){return(0,o.apiResquest)({url:"/system/mine/link/getEducationExamDetail",method:"get",data:s({},e)})};t.menuLinkPost=function(e,t){return(0,o.apiResquestOutside)({url:e,method:"POST",data:s({},t)})};t.gradingControl=function(e){return(0,o.apiResquest)({url:"/laboratory/app/lab/manage/havingList",method:"POST",data:s({},e)})};t.gradingControlAdd=function(e){return(0,o.apiResquest)({url:"/laboratory/app/lab/manage/finish",method:"POST",data:s({},e)})};t.gradingControlFinish=function(e){return(0,o.apiResquest)({url:"/laboratory/app/lab/manage/finishList",method:"POST",data:s({},e)})};t.gradingControlDetail=function(e){return(0,o.apiResquest)({url:"/laboratory/app/lab/manage/getInfo/"+e,method:"GET"})};t.authNumCaptcha=function(e){return(0,o.apiResquest)({url:"/auth/numCaptcha",method:"get",data:s({},e)})};t.authNumCaptchaNotRegistered=function(e){return(0,o.apiResquest)({url:"/auth/numCaptchaNotRegistered",method:"get",data:s({},e)})};t.authForgetPassword=function(e){return(0,o.apiResquest)({url:"/auth/forgetPassword",method:"POST",data:s({},e)})};t.systemUserPersonalData=function(e){return(0,o.apiResquest)({url:"/system/user/personalData",method:"get"})};t.systemUserDetail=function(e){return(0,o.apiResquest)({url:"/system/user/detail",method:"get",data:s({},e)})};t.systemUserSelectByPage=function(e){return(0,o.apiResquest)({url:"/system/user/selectByPage",method:"POST",data:s({},e)})};t.systemUserEditUser=function(e){return(0,o.apiResquest)({url:"/system/user/editUser",method:"POST",data:s({},e)})};t.chemicalAppletSelectStockRecord=function(e){return(0,o.apiResquest)({url:"/chemical/applet/selectStockRecord",method:"POST",data:s({},e)})}},b666:function(e,t){var r=r||{};r.Security=r.Security||{},function(){var e=r.Security;e.maxExactInt=Math.pow(2,53),e.toUtf8ByteArr=function(e){for(var t,r=[],n=0;n<e.length;n++){if(t=e.charCodeAt(n),55296<=t&&t<=56319){var i=t,o=e.charCodeAt(n+1);t=1024*(i-55296)+(o-56320)+65536,n++}if(t<=127)r[r.length]=t;else if(t<=2047)r[r.length]=192+(t>>>6),r[r.length]=63&t|128;else if(t<=65535)r[r.length]=224+(t>>>12),r[r.length]=t>>>6&63|128,r[r.length]=63&t|128;else{if(!(t<=1114111))throw"Unicode standart supports code points up-to U+10FFFF";r[r.length]=240+(t>>>18),r[r.length]=t>>>12&63|128,r[r.length]=t>>>6&63|128,r[r.length]=63&t|128}}return r},e.toHex32=function(e){2147483648&e&&(e&=2147483647,e+=Math.pow(2,31));var t=e.toString(16);while(t.length<8)t="0"+t;return t},e.reverseBytes=function(e){var t=0;return t+=e>>>24&255,t+=(e>>>16&255)<<8,t+=(e>>>8&255)<<16,t+=(255&e)<<24,t},e.leftRotate=function(e,t){return e<<t|e>>>32-t},e.md5=function(t){for(var r=[7,12,17,22,7,12,17,22,7,12,17,22,7,12,17,22,5,9,14,20,5,9,14,20,5,9,14,20,5,9,14,20,4,11,16,23,4,11,16,23,4,11,16,23,4,11,16,23,6,10,15,21,6,10,15,21,6,10,15,21,6,10,15,21],n=[],i=0;i<=63;i++)n[i]=Math.abs(Math.sin(i+1))*Math.pow(2,32)<<0;var o,a,s=1732584193,u=4023233417,c=2562383102,f=271733878;o=e.toUtf8ByteArr(t),t=null,a=o.length,o.push(128);var l=Math.abs(448-8*o.length%512)/8;while(l--)o.push(0);o.push(8*a&255,8*a>>8&255,8*a>>16&255,8*a>>24&255);i=4;while(i--)o.push(0);var d=e.leftRotate,h=(i=0,[]);while(i<o.length){for(var p=0;p<=15;p++)h[p]=(o[i+4*p]<<0)+(o[i+4*p+1]<<8)+(o[i+4*p+2]<<16)+(o[i+4*p+3]<<24);var g,y,v=s,b=u,m=c,_=f;for(p=0;p<=63;p++){p<=15?(g=b&m|~b&_,y=p):p<=31?(g=_&b|~_&m,y=(5*p+1)%16):p<=47?(g=b^m^_,y=(3*p+5)%16):(g=m^(b|~_),y=7*p%16);var w=_;_=m,m=b,b+=d(v+g+n[p]+h[y],r[p]),v=w}s=s+v<<0,u=u+b<<0,c=c+m<<0,f=f+_<<0,i+=64}var A=S(s)+S(u)+S(c)+S(f);function S(t){return e.toHex32(e.reverseBytes(t))}return A}}();var n=0;function i(e){return a(o(s(e)))}function o(e){return c(f(u(e),8*e.length))}function a(e){for(var t,r=n?"0123456789ABCDEF":"0123456789abcdef",i="",o=0;o<e.length;o++)t=e.charCodeAt(o),i+=r.charAt(t>>>4&15)+r.charAt(15&t);return i}function s(e){return unescape(encodeURI(e))}function u(e){for(var t=Array(e.length>>2),r=0;r<t.length;r++)t[r]=0;for(r=0;r<8*e.length;r+=8)t[r>>5]|=(255&e.charCodeAt(r/8))<<r%32;return t}function c(e){for(var t="",r=0;r<32*e.length;r+=8)t+=String.fromCharCode(e[r>>5]>>>r%32&255);return t}function f(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;for(var r=1732584193,n=-271733879,i=-1732584194,o=271733878,a=0;a<e.length;a+=16){var s=r,u=n,c=i,f=o;r=d(r,n,i,o,e[a+0],7,-680876936),o=d(o,r,n,i,e[a+1],12,-389564586),i=d(i,o,r,n,e[a+2],17,606105819),n=d(n,i,o,r,e[a+3],22,-1044525330),r=d(r,n,i,o,e[a+4],7,-176418897),o=d(o,r,n,i,e[a+5],12,1200080426),i=d(i,o,r,n,e[a+6],17,-1473231341),n=d(n,i,o,r,e[a+7],22,-45705983),r=d(r,n,i,o,e[a+8],7,1770035416),o=d(o,r,n,i,e[a+9],12,-1958414417),i=d(i,o,r,n,e[a+10],17,-42063),n=d(n,i,o,r,e[a+11],22,-1990404162),r=d(r,n,i,o,e[a+12],7,1804603682),o=d(o,r,n,i,e[a+13],12,-40341101),i=d(i,o,r,n,e[a+14],17,-1502002290),n=d(n,i,o,r,e[a+15],22,1236535329),r=h(r,n,i,o,e[a+1],5,-165796510),o=h(o,r,n,i,e[a+6],9,-1069501632),i=h(i,o,r,n,e[a+11],14,643717713),n=h(n,i,o,r,e[a+0],20,-373897302),r=h(r,n,i,o,e[a+5],5,-701558691),o=h(o,r,n,i,e[a+10],9,38016083),i=h(i,o,r,n,e[a+15],14,-660478335),n=h(n,i,o,r,e[a+4],20,-405537848),r=h(r,n,i,o,e[a+9],5,568446438),o=h(o,r,n,i,e[a+14],9,-1019803690),i=h(i,o,r,n,e[a+3],14,-187363961),n=h(n,i,o,r,e[a+8],20,1163531501),r=h(r,n,i,o,e[a+13],5,-1444681467),o=h(o,r,n,i,e[a+2],9,-51403784),i=h(i,o,r,n,e[a+7],14,1735328473),n=h(n,i,o,r,e[a+12],20,-1926607734),r=p(r,n,i,o,e[a+5],4,-378558),o=p(o,r,n,i,e[a+8],11,-2022574463),i=p(i,o,r,n,e[a+11],16,1839030562),n=p(n,i,o,r,e[a+14],23,-35309556),r=p(r,n,i,o,e[a+1],4,-1530992060),o=p(o,r,n,i,e[a+4],11,1272893353),i=p(i,o,r,n,e[a+7],16,-155497632),n=p(n,i,o,r,e[a+10],23,-1094730640),r=p(r,n,i,o,e[a+13],4,681279174),o=p(o,r,n,i,e[a+0],11,-358537222),i=p(i,o,r,n,e[a+3],16,-722521979),n=p(n,i,o,r,e[a+6],23,76029189),r=p(r,n,i,o,e[a+9],4,-640364487),o=p(o,r,n,i,e[a+12],11,-421815835),i=p(i,o,r,n,e[a+15],16,530742520),n=p(n,i,o,r,e[a+2],23,-995338651),r=g(r,n,i,o,e[a+0],6,-198630844),o=g(o,r,n,i,e[a+7],10,1126891415),i=g(i,o,r,n,e[a+14],15,-1416354905),n=g(n,i,o,r,e[a+5],21,-57434055),r=g(r,n,i,o,e[a+12],6,1700485571),o=g(o,r,n,i,e[a+3],10,-1894986606),i=g(i,o,r,n,e[a+10],15,-1051523),n=g(n,i,o,r,e[a+1],21,-2054922799),r=g(r,n,i,o,e[a+8],6,1873313359),o=g(o,r,n,i,e[a+15],10,-30611744),i=g(i,o,r,n,e[a+6],15,-1560198380),n=g(n,i,o,r,e[a+13],21,1309151649),r=g(r,n,i,o,e[a+4],6,-145523070),o=g(o,r,n,i,e[a+11],10,-1120210379),i=g(i,o,r,n,e[a+2],15,718787259),n=g(n,i,o,r,e[a+9],21,-343485551),r=y(r,s),n=y(n,u),i=y(i,c),o=y(o,f)}return Array(r,n,i,o)}function l(e,t,r,n,i,o){return y(function(e,t){return e<<t|e>>>32-t}(y(y(t,e),y(n,o)),i),r)}function d(e,t,r,n,i,o,a){return l(t&r|~t&n,e,t,i,o,a)}function h(e,t,r,n,i,o,a){return l(t&n|r&~n,e,t,i,o,a)}function p(e,t,r,n,i,o,a){return l(t^r^n,e,t,i,o,a)}function g(e,t,r,n,i,o,a){return l(r^(t|~n),e,t,i,o,a)}function y(e,t){var r=(65535&e)+(65535&t),n=(e>>16)+(t>>16)+(r>>16);return n<<16|65535&r}function v(e,t){var r=e[0],n=e[1],i=e[2],o=e[3];r=m(r,n,i,o,t[0],7,-680876936),o=m(o,r,n,i,t[1],12,-389564586),i=m(i,o,r,n,t[2],17,606105819),n=m(n,i,o,r,t[3],22,-1044525330),r=m(r,n,i,o,t[4],7,-176418897),o=m(o,r,n,i,t[5],12,1200080426),i=m(i,o,r,n,t[6],17,-1473231341),n=m(n,i,o,r,t[7],22,-45705983),r=m(r,n,i,o,t[8],7,1770035416),o=m(o,r,n,i,t[9],12,-1958414417),i=m(i,o,r,n,t[10],17,-42063),n=m(n,i,o,r,t[11],22,-1990404162),r=m(r,n,i,o,t[12],7,1804603682),o=m(o,r,n,i,t[13],12,-40341101),i=m(i,o,r,n,t[14],17,-1502002290),n=m(n,i,o,r,t[15],22,1236535329),r=_(r,n,i,o,t[1],5,-165796510),o=_(o,r,n,i,t[6],9,-1069501632),i=_(i,o,r,n,t[11],14,643717713),n=_(n,i,o,r,t[0],20,-373897302),r=_(r,n,i,o,t[5],5,-701558691),o=_(o,r,n,i,t[10],9,38016083),i=_(i,o,r,n,t[15],14,-660478335),n=_(n,i,o,r,t[4],20,-405537848),r=_(r,n,i,o,t[9],5,568446438),o=_(o,r,n,i,t[14],9,-1019803690),i=_(i,o,r,n,t[3],14,-187363961),n=_(n,i,o,r,t[8],20,1163531501),r=_(r,n,i,o,t[13],5,-1444681467),o=_(o,r,n,i,t[2],9,-51403784),i=_(i,o,r,n,t[7],14,1735328473),n=_(n,i,o,r,t[12],20,-1926607734),r=w(r,n,i,o,t[5],4,-378558),o=w(o,r,n,i,t[8],11,-2022574463),i=w(i,o,r,n,t[11],16,1839030562),n=w(n,i,o,r,t[14],23,-35309556),r=w(r,n,i,o,t[1],4,-1530992060),o=w(o,r,n,i,t[4],11,1272893353),i=w(i,o,r,n,t[7],16,-155497632),n=w(n,i,o,r,t[10],23,-1094730640),r=w(r,n,i,o,t[13],4,681279174),o=w(o,r,n,i,t[0],11,-358537222),i=w(i,o,r,n,t[3],16,-722521979),n=w(n,i,o,r,t[6],23,76029189),r=w(r,n,i,o,t[9],4,-640364487),o=w(o,r,n,i,t[12],11,-421815835),i=w(i,o,r,n,t[15],16,530742520),n=w(n,i,o,r,t[2],23,-995338651),r=A(r,n,i,o,t[0],6,-198630844),o=A(o,r,n,i,t[7],10,1126891415),i=A(i,o,r,n,t[14],15,-1416354905),n=A(n,i,o,r,t[5],21,-57434055),r=A(r,n,i,o,t[12],6,1700485571),o=A(o,r,n,i,t[3],10,-1894986606),i=A(i,o,r,n,t[10],15,-1051523),n=A(n,i,o,r,t[1],21,-2054922799),r=A(r,n,i,o,t[8],6,1873313359),o=A(o,r,n,i,t[15],10,-30611744),i=A(i,o,r,n,t[6],15,-1560198380),n=A(n,i,o,r,t[13],21,1309151649),r=A(r,n,i,o,t[4],6,-145523070),o=A(o,r,n,i,t[11],10,-1120210379),i=A(i,o,r,n,t[2],15,718787259),n=A(n,i,o,r,t[9],21,-343485551),e[0]=O(r,e[0]),e[1]=O(n,e[1]),e[2]=O(i,e[2]),e[3]=O(o,e[3])}function b(e,t,r,n,i,o){return t=O(O(t,e),O(n,o)),O(t<<i|t>>>32-i,r)}function m(e,t,r,n,i,o,a){return b(t&r|~t&n,e,t,i,o,a)}function _(e,t,r,n,i,o,a){return b(t&n|r&~n,e,t,i,o,a)}function w(e,t,r,n,i,o,a){return b(t^r^n,e,t,i,o,a)}function A(e,t,r,n,i,o,a){return b(r^(t|~n),e,t,i,o,a)}function S(e){var t,r=[];for(t=0;t<64;t+=4)r[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return r}var x="0123456789abcdef".split("");function E(e){for(var t="",r=0;r<4;r++)t+=x[e>>8*r+4&15]+x[e>>8*r&15];return t}function C(e){return function(e){for(var t=0;t<e.length;t++)e[t]=E(e[t]);return e.join("")}(function(e){var t,r=e.length,n=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=e.length;t+=64)v(n,S(e.substring(t-64,t)));e=e.substring(t-64);var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<e.length;t++)i[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(i[t>>2]|=128<<(t%4<<3),t>55)for(v(n,i),t=0;t<16;t++)i[t]=0;return i[14]=8*r,v(n,i),n}(e))}function O(e,t){return e+t&4294967295}if("5d41402abc4b2a76b9719d911017c592"!=C("hello"));(function(){"0123456789abcdef".split("");if("5d41402abc4b2a76b9719d911017c592"!=C("hello"));})();new Array(0,3614090360,3905402710,606105819,3250441966,4118548399,1200080426,2821735955,4249261313,1770035416,2336552879,4294925233,2304563134,1804603682,4254626195,2792965006,1236535329,4129170786,3225465664,643717713,3921069994,3593408605,38016083,3634488961,3889429448,568446438,3275163606,4107603335,1163531501,2850285829,4243563512,1735328473,2368359562,4294588738,2272392833,1839030562,4259657740,2763975236,1272893353,4139469664,3200236656,681279174,3936430074,3572445317,76029189,3654602809,3873151461,530742520,3299628645,4096336452,1126891415,2878612391,4237533241,1700485571,2399980690,4293915773,2240044497,1873313359,4264355552,2734768916,1309151649,4149444226,3174756917,718787259,3951481745);var I=new Array(new Array(0,7,1),new Array(1,12,2),new Array(2,17,3),new Array(3,22,4),new Array(4,7,5),new Array(5,12,6),new Array(6,17,7),new Array(7,22,8),new Array(8,7,9),new Array(9,12,10),new Array(10,17,11),new Array(11,22,12),new Array(12,7,13),new Array(13,12,14),new Array(14,17,15),new Array(15,22,16)),T=new Array(new Array(1,5,17),new Array(6,9,18),new Array(11,14,19),new Array(0,20,20),new Array(5,5,21),new Array(10,9,22),new Array(15,14,23),new Array(4,20,24),new Array(9,5,25),new Array(14,9,26),new Array(3,14,27),new Array(8,20,28),new Array(13,5,29),new Array(2,9,30),new Array(7,14,31),new Array(12,20,32)),P=new Array(new Array(5,4,33),new Array(8,11,34),new Array(11,16,35),new Array(14,23,36),new Array(1,4,37),new Array(4,11,38),new Array(7,16,39),new Array(10,23,40),new Array(13,4,41),new Array(0,11,42),new Array(3,16,43),new Array(6,23,44),new Array(9,4,45),new Array(12,11,46),new Array(15,16,47),new Array(2,23,48)),M=new Array(new Array(0,6,49),new Array(7,10,50),new Array(14,15,51),new Array(5,21,52),new Array(12,6,53),new Array(3,10,54),new Array(10,15,55),new Array(1,21,56),new Array(8,6,57),new Array(15,10,58),new Array(6,15,59),new Array(13,21,60),new Array(4,6,61),new Array(11,10,62),new Array(2,15,63),new Array(9,21,64));new Array(new Array((function(e,t,r){return e&t|~e&r}),I),new Array((function(e,t,r){return e&r|t&~r}),T),new Array((function(e,t,r){return e^t^r}),P),new Array((function(e,t,r){return t^(e|~r)}),M));e.exports={hex_md5:i}},b69b:function(e,t,r){"use strict";var n=t;function i(e){return 1===e.length?"0"+e:e}function o(e){for(var t="",r=0;r<e.length;r++)t+=i(e[r].toString(16));return t}n.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"!==typeof e){for(var n=0;n<e.length;n++)r[n]=0|e[n];return r}if("hex"===t){e=e.replace(/[^a-z0-9]+/gi,""),e.length%2!==0&&(e="0"+e);for(n=0;n<e.length;n+=2)r.push(parseInt(e[n]+e[n+1],16))}else for(n=0;n<e.length;n++){var i=e.charCodeAt(n),o=i>>8,a=255&i;o?r.push(o,a):r.push(a)}return r},n.zero2=i,n.toHex=o,n.encode=function(e,t){return"hex"===t?o(e):e}},b6de:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("76a0")),o=n(r("b717")),a=n(r("08c4")),s=n(r("50f3")),u=n(r("51ff")),c=n(r("5847")),f=n(r("f228")),l=n(r("c3c6")),d=n(r("843b")),h=function(e){var t="function"===typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},p=function(){function e(){}return e.prototype.decode=function(e,t){return this.setHints(t),this.decodeInternal(e)},e.prototype.decodeWithState=function(e){return null!==this.readers&&void 0!==this.readers||this.setHints(null),this.decodeInternal(e)},e.prototype.setHints=function(e){this.hints=e;var t=null!==e&&void 0!==e&&void 0!==e.get(i.default.TRY_HARDER),r=null===e||void 0===e?null:e.get(i.default.POSSIBLE_FORMATS),n=new Array;if(null!==r&&void 0!==r){var f=r.some((function(e){return e===o.default.UPC_A||e===o.default.UPC_E||e===o.default.EAN_13||e===o.default.EAN_8||e===o.default.CODABAR||e===o.default.CODE_39||e===o.default.CODE_93||e===o.default.CODE_128||e===o.default.ITF||e===o.default.RSS_14||e===o.default.RSS_EXPANDED}));f&&!t&&n.push(new u.default(e)),r.includes(o.default.QR_CODE)&&n.push(new a.default),r.includes(o.default.DATA_MATRIX)&&n.push(new c.default),r.includes(o.default.AZTEC)&&n.push(new s.default),r.includes(o.default.PDF_417)&&n.push(new l.default),f&&t&&n.push(new u.default(e))}0===n.length&&(t||n.push(new u.default(e)),n.push(new a.default),n.push(new c.default),n.push(new s.default),n.push(new l.default),t&&n.push(new u.default(e))),this.readers=n},e.prototype.reset=function(){var e,t;if(null!==this.readers)try{for(var r=h(this.readers),n=r.next();!n.done;n=r.next()){var i=n.value;i.reset()}}catch(o){e={error:o}}finally{try{n&&!n.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}},e.prototype.decodeInternal=function(e){var t,r;if(null===this.readers)throw new d.default("No readers where selected, nothing can be read.");try{for(var n=h(this.readers),i=n.next();!i.done;i=n.next()){var o=i.value;try{return o.decode(e,this.hints)}catch(a){if(a instanceof d.default)continue}}}catch(s){t={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}throw new f.default("No MultiFormat Readers were able to detect the code.")},e}(),g=p;t.default=g},b717:function(e,t,r){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,function(e){e[e["AZTEC"]=0]="AZTEC",e[e["CODABAR"]=1]="CODABAR",e[e["CODE_39"]=2]="CODE_39",e[e["CODE_93"]=3]="CODE_93",e[e["CODE_128"]=4]="CODE_128",e[e["DATA_MATRIX"]=5]="DATA_MATRIX",e[e["EAN_8"]=6]="EAN_8",e[e["EAN_13"]=7]="EAN_13",e[e["ITF"]=8]="ITF",e[e["MAXICODE"]=9]="MAXICODE",e[e["PDF_417"]=10]="PDF_417",e[e["QR_CODE"]=11]="QR_CODE",e[e["RSS_14"]=12]="RSS_14",e[e["RSS_EXPANDED"]=13]="RSS_EXPANDED",e[e["UPC_A"]=14]="UPC_A",e[e["UPC_E"]=15]="UPC_E",e[e["UPC_EAN_EXTENSION"]=16]="UPC_EAN_EXTENSION"}(n||(n={}));var i=n;t.default=i},b718:function(e,t,r){var n;function i(e){this.rand=e}if(e.exports=function(e){return n||(n=new i(null)),n.generate(e)},e.exports.Rand=i,i.prototype.generate=function(e){return this._rand(e)},i.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),r=0;r<t.length;r++)t[r]=this.rand.getByte();return t},"object"===typeof self)self.crypto&&self.crypto.getRandomValues?i.prototype._rand=function(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?i.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:"object"===typeof window&&(i.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var o=r(3);if("function"!==typeof o.randomBytes)throw new Error("Not supported");i.prototype._rand=function(e){return o.randomBytes(e)}}catch(a){}},b893:function(e,t){e.exports=function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports["default"]=e.exports},b911:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(){function e(e,t){this.value=e,this.checksumPortion=t}return e.prototype.getValue=function(){return this.value},e.prototype.getChecksumPortion=function(){return this.checksumPortion},e.prototype.toString=function(){return this.value+"("+this.checksumPortion+")"},e.prototype.equals=function(t){if(!(t instanceof e))return!1;var r=t;return this.value===r.value&&this.checksumPortion===r.checksumPortion},e.prototype.hashCode=function(){return this.value^this.checksumPortion},e}(),i=n;t.default=i},ba37:function(e,t){
- /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
- t.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,u=(1<<s)-1,c=u>>1,f=-7,l=r?i-1:0,d=r?-1:1,h=e[t+l];for(l+=d,o=h&(1<<-f)-1,h>>=-f,f+=s;f>0;o=256*o+e[t+l],l+=d,f-=8);for(a=o&(1<<-f)-1,o>>=-f,f+=n;f>0;a=256*a+e[t+l],l+=d,f-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,n),o-=c}return(h?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,u,c=8*o-i-1,f=(1<<c)-1,l=f>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:o-1,p=n?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=f):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),t+=a+l>=1?d/u:d*Math.pow(2,1-l),t*u>=2&&(a++,u/=2),a+l>=f?(s=0,a=f):a+l>=1?(s=(t*u-1)*Math.pow(2,i),a+=l):(s=t*Math.pow(2,l-1)*Math.pow(2,i),a=0));i>=8;e[r+h]=255&s,h+=p,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;e[r+h]=255&a,h+=p,a/=256,c-=8);e[r+h-p]|=128*g}},ba3c:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("1581")),o=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),a=function(e){function t(t,r){void 0===t&&(t=void 0),void 0===r&&(r=void 0);var n=e.call(this,r)||this;return n.index=t,n.message=r,n}return o(t,e),t.kind="ArrayIndexOutOfBoundsException",t}(i.default),s=a;t.default=s},bab0:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("b717")),o=n(r("76a0")),a=n(r("0c24")),s=n(r("37ed")),u=n(r("a8be")),c=n(r("6ef9")),f=n(r("91fc")),l=n(r("f228")),d=n(r("343e")),h=n(r("f74e")),p=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),g=function(e){function t(){var r=e.call(this)||this;r.decodeRowStringBuffer="",t.L_AND_G_PATTERNS=t.L_PATTERNS.map((function(e){return Int32Array.from(e)}));for(var n=10;n<20;n++){for(var i=t.L_PATTERNS[n-10],o=new Int32Array(i.length),a=0;a<i.length;a++)o[a]=i[i.length-a-1];t.L_AND_G_PATTERNS[n]=o}return r}return p(t,e),t.prototype.decodeRow=function(e,r,n){var f=t.findStartGuardPattern(r),p=null==n?null:n.get(o.default.NEED_RESULT_POINT_CALLBACK);if(null!=p){var g=new u.default((f[0]+f[1])/2,e);p.foundPossibleResultPoint(g)}var y=this.decodeMiddle(r,f,this.decodeRowStringBuffer),v=y.rowOffset,b=y.resultString;if(null!=p){var m=new u.default(v,e);p.foundPossibleResultPoint(m)}var _=t.decodeEnd(r,v);if(null!=p){var w=new u.default((_[0]+_[1])/2,e);p.foundPossibleResultPoint(w)}var A=_[1],S=A+(A-_[0]);if(S>=r.getSize()||!r.isRange(A,S,!1))throw new l.default;var x=b.toString();if(x.length<8)throw new d.default;if(!t.checkChecksum(x))throw new h.default;var E=(f[1]+f[0])/2,C=(_[1]+_[0])/2,O=this.getBarcodeFormat(),I=[new u.default(E,e),new u.default(C,e)],T=new a.default(x,null,0,I,O,(new Date).getTime()),P=0;try{var M=c.default.decodeRow(e,r,_[1]);T.putMetadata(s.default.UPC_EAN_EXTENSION,M.getText()),T.putAllMetadata(M.getResultMetadata()),T.addResultPoints(M.getResultPoints()),P=M.getText().length}catch(N){}var k=null==n?null:n.get(o.default.ALLOWED_EAN_EXTENSIONS);if(null!=k){var R=!1;for(var D in k)if(P.toString()===D){R=!0;break}if(!R)throw new l.default}return O===i.default.EAN_13||i.default.UPC_A,T},t.checkChecksum=function(e){return t.checkStandardUPCEANChecksum(e)},t.checkStandardUPCEANChecksum=function(e){var r=e.length;if(0===r)return!1;var n=parseInt(e.charAt(r-1),10);return t.getStandardUPCEANChecksum(e.substring(0,r-1))===n},t.getStandardUPCEANChecksum=function(e){for(var t=e.length,r=0,n=t-1;n>=0;n-=2){var i=e.charAt(n).charCodeAt(0)-"0".charCodeAt(0);if(i<0||i>9)throw new d.default;r+=i}r*=3;for(n=t-2;n>=0;n-=2){i=e.charAt(n).charCodeAt(0)-"0".charCodeAt(0);if(i<0||i>9)throw new d.default;r+=i}return(1e3-r)%10},t.decodeEnd=function(e,r){return t.findGuardPattern(e,r,!1,t.START_END_PATTERN,new Int32Array(t.START_END_PATTERN.length).fill(0))},t}(f.default),y=g;t.default=y},bcd6:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.Base256Encoder=void 0;var i=n(r("d618")),o=n(r("d4f8")),a=n(r("3fac")),s=r("eab1"),u=function(){function e(){}return e.prototype.getEncodingMode=function(){return s.BASE256_ENCODATION},e.prototype.encode=function(e){var t=new o.default;t.append(0);while(e.hasMoreCharacters()){var r=e.getCurrentChar();t.append(r),e.pos++;var n=a.default.lookAheadTest(e.getMessage(),e.pos,this.getEncodingMode());if(n!==this.getEncodingMode()){e.signalEncoderChange(s.ASCII_ENCODATION);break}}var u=t.length()-1,c=e.getCodewordCount()+u+1;e.updateSymbolInfo(c);var f=e.getSymbolInfo().getDataCapacity()-c>0;if(e.hasMoreCharacters()||f)if(u<=249)t.setCharAt(0,i.default.getCharAt(u));else{if(!(u<=1555))throw new Error("Message length not in valid ranges: "+u);t.setCharAt(0,i.default.getCharAt(Math.floor(u/250)+249)),t.insert(1,i.default.getCharAt(u%250))}var l=0;for(r=t.length();l<r;l++)e.writeCodeword(this.randomize255State(t.charAt(l).charCodeAt(0),e.getCodewordCount()+1))},e.prototype.randomize255State=function(e,t){var r=149*t%255+1,n=e+r;return n<=255?n:n-256},e}();t.Base256Encoder=u},bd6c:function(e,t,r){"use strict";const n=r("2c2e"),i=r("1f07").Buffer,o=r("ade1");function a(e){o.call(this,e),this.enc="pem"}n(a,o),e.exports=a,a.prototype.decode=function(e,t){const r=e.toString().split(/[\r\n]+/g),n=t.label.toUpperCase(),a=/^-----(BEGIN|END) ([^-]+)-----$/;let s=-1,u=-1;for(let i=0;i<r.length;i++){const e=r[i].match(a);if(null!==e&&e[2]===n){if(-1!==s){if("END"!==e[1])break;u=i;break}if("BEGIN"!==e[1])break;s=i}}if(-1===s||-1===u)throw new Error("PEM section not found for: "+n);const c=r.slice(s+1,u).join("");c.replace(/[^a-z0-9+/=]+/gi,"");const f=i.from(c,"base64");return o.prototype.decode.call(this,f,t)}},bee8:function(e,t,r){"use strict";const n=r("d7a3").Reporter,i=r("8936").EncoderBuffer,o=r("8936").DecoderBuffer,a=r("d3c2"),s=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],u=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(s);function c(e,t,r){const n={};this._baseState=n,n.name=r,n.enc=e,n.parent=t||null,n.children=null,n.tag=null,n.args=null,n.reverseArgs=null,n.choice=null,n.optional=!1,n.any=!1,n.obj=!1,n.use=null,n.useDecoder=null,n.key=null,n["default"]=null,n.explicit=null,n.implicit=null,n.contains=null,n.parent||(n.children=[],this._wrap())}e.exports=c;const f=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];c.prototype.clone=function(){const e=this._baseState,t={};f.forEach((function(r){t[r]=e[r]}));const r=new this.constructor(t.parent);return r._baseState=t,r},c.prototype._wrap=function(){const e=this._baseState;u.forEach((function(t){this[t]=function(){const r=new this.constructor(this);return e.children.push(r),r[t].apply(r,arguments)}}),this)},c.prototype._init=function(e){const t=this._baseState;a(null===t.parent),e.call(this),t.children=t.children.filter((function(e){return e._baseState.parent===this}),this),a.equal(t.children.length,1,"Root node can have only one child")},c.prototype._useArgs=function(e){const t=this._baseState,r=e.filter((function(e){return e instanceof this.constructor}),this);e=e.filter((function(e){return!(e instanceof this.constructor)}),this),0!==r.length&&(a(null===t.children),t.children=r,r.forEach((function(e){e._baseState.parent=this}),this)),0!==e.length&&(a(null===t.args),t.args=e,t.reverseArgs=e.map((function(e){if("object"!==typeof e||e.constructor!==Object)return e;const t={};return Object.keys(e).forEach((function(r){r==(0|r)&&(r|=0);const n=e[r];t[n]=r})),t})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(e){c.prototype[e]=function(){const t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}})),s.forEach((function(e){c.prototype[e]=function(){const t=this._baseState,r=Array.prototype.slice.call(arguments);return a(null===t.tag),t.tag=e,this._useArgs(r),this}})),c.prototype.use=function(e){a(e);const t=this._baseState;return a(null===t.use),t.use=e,this},c.prototype.optional=function(){const e=this._baseState;return e.optional=!0,this},c.prototype.def=function(e){const t=this._baseState;return a(null===t["default"]),t["default"]=e,t.optional=!0,this},c.prototype.explicit=function(e){const t=this._baseState;return a(null===t.explicit&&null===t.implicit),t.explicit=e,this},c.prototype.implicit=function(e){const t=this._baseState;return a(null===t.explicit&&null===t.implicit),t.implicit=e,this},c.prototype.obj=function(){const e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},c.prototype.key=function(e){const t=this._baseState;return a(null===t.key),t.key=e,this},c.prototype.any=function(){const e=this._baseState;return e.any=!0,this},c.prototype.choice=function(e){const t=this._baseState;return a(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map((function(t){return e[t]}))),this},c.prototype.contains=function(e){const t=this._baseState;return a(null===t.use),t.contains=e,this},c.prototype._decode=function(e,t){const r=this._baseState;if(null===r.parent)return e.wrapResult(r.children[0]._decode(e,t));let n,i=r["default"],a=!0,s=null;if(null!==r.key&&(s=e.enterKey(r.key)),r.optional){let n=null;if(null!==r.explicit?n=r.explicit:null!==r.implicit?n=r.implicit:null!==r.tag&&(n=r.tag),null!==n||r.any){if(a=this._peekTag(e,n,r.any),e.isError(a))return a}else{const n=e.save();try{null===r.choice?this._decodeGeneric(r.tag,e,t):this._decodeChoice(e,t),a=!0}catch(u){a=!1}e.restore(n)}}if(r.obj&&a&&(n=e.enterObject()),a){if(null!==r.explicit){const t=this._decodeTag(e,r.explicit);if(e.isError(t))return t;e=t}const n=e.offset;if(null===r.use&&null===r.choice){let t;r.any&&(t=e.save());const n=this._decodeTag(e,null!==r.implicit?r.implicit:r.tag,r.any);if(e.isError(n))return n;r.any?i=e.raw(t):e=n}if(t&&t.track&&null!==r.tag&&t.track(e.path(),n,e.length,"tagged"),t&&t.track&&null!==r.tag&&t.track(e.path(),e.offset,e.length,"content"),r.any||(i=null===r.choice?this._decodeGeneric(r.tag,e,t):this._decodeChoice(e,t)),e.isError(i))return i;if(r.any||null!==r.choice||null===r.children||r.children.forEach((function(r){r._decode(e,t)})),r.contains&&("octstr"===r.tag||"bitstr"===r.tag)){const n=new o(i);i=this._getUse(r.contains,e._reporterState.obj)._decode(n,t)}}return r.obj&&a&&(i=e.leaveObject(n)),null===r.key||null===i&&!0!==a?null!==s&&e.exitKey(s):e.leaveKey(s,r.key,i),i},c.prototype._decodeGeneric=function(e,t,r){const n=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,n.args[0],r):/str$/.test(e)?this._decodeStr(t,e,r):"objid"===e&&n.args?this._decodeObjid(t,n.args[0],n.args[1],r):"objid"===e?this._decodeObjid(t,null,null,r):"gentime"===e||"utctime"===e?this._decodeTime(t,e,r):"null_"===e?this._decodeNull(t,r):"bool"===e?this._decodeBool(t,r):"objDesc"===e?this._decodeStr(t,e,r):"int"===e||"enum"===e?this._decodeInt(t,n.args&&n.args[0],r):null!==n.use?this._getUse(n.use,t._reporterState.obj)._decode(t,r):t.error("unknown tag: "+e)},c.prototype._getUse=function(e,t){const r=this._baseState;return r.useDecoder=this._use(e,t),a(null===r.useDecoder._baseState.parent),r.useDecoder=r.useDecoder._baseState.children[0],r.implicit!==r.useDecoder._baseState.implicit&&(r.useDecoder=r.useDecoder.clone(),r.useDecoder._baseState.implicit=r.implicit),r.useDecoder},c.prototype._decodeChoice=function(e,t){const r=this._baseState;let n=null,i=!1;return Object.keys(r.choice).some((function(o){const a=e.save(),s=r.choice[o];try{const r=s._decode(e,t);if(e.isError(r))return!1;n={type:o,value:r},i=!0}catch(u){return e.restore(a),!1}return!0}),this),i?n:e.error("Choice not matched")},c.prototype._createEncoderBuffer=function(e){return new i(e,this.reporter)},c.prototype._encode=function(e,t,r){const n=this._baseState;if(null!==n["default"]&&n["default"]===e)return;const i=this._encodeValue(e,t,r);return void 0===i||this._skipDefault(i,t,r)?void 0:i},c.prototype._encodeValue=function(e,t,r){const i=this._baseState;if(null===i.parent)return i.children[0]._encode(e,t||new n);let o=null;if(this.reporter=t,i.optional&&void 0===e){if(null===i["default"])return;e=i["default"]}let a=null,s=!1;if(i.any)o=this._createEncoderBuffer(e);else if(i.choice)o=this._encodeChoice(e,t);else if(i.contains)a=this._getUse(i.contains,r)._encode(e,t),s=!0;else if(i.children)a=i.children.map((function(r){if("null_"===r._baseState.tag)return r._encode(null,t,e);if(null===r._baseState.key)return t.error("Child should have a key");const n=t.enterKey(r._baseState.key);if("object"!==typeof e)return t.error("Child expected, but input is not object");const i=r._encode(e[r._baseState.key],t,e);return t.leaveKey(n),i}),this).filter((function(e){return e})),a=this._createEncoderBuffer(a);else if("seqof"===i.tag||"setof"===i.tag){if(!i.args||1!==i.args.length)return t.error("Too many args for : "+i.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");const r=this.clone();r._baseState.implicit=null,a=this._createEncoderBuffer(e.map((function(r){const n=this._baseState;return this._getUse(n.args[0],e)._encode(r,t)}),r))}else null!==i.use?o=this._getUse(i.use,r)._encode(e,t):(a=this._encodePrimitive(i.tag,e),s=!0);if(!i.any&&null===i.choice){const e=null!==i.implicit?i.implicit:i.tag,r=null===i.implicit?"universal":"context";null===e?null===i.use&&t.error("Tag could be omitted only for .use()"):null===i.use&&(o=this._encodeComposite(e,s,r,a))}return null!==i.explicit&&(o=this._encodeComposite(i.explicit,!1,"context",o)),o},c.prototype._encodeChoice=function(e,t){const r=this._baseState,n=r.choice[e.type];return n||a(!1,e.type+" not found in "+JSON.stringify(Object.keys(r.choice))),n._encode(e.value,t)},c.prototype._encodePrimitive=function(e,t){const r=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&r.args)return this._encodeObjid(t,r.reverseArgs[0],r.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,r.args&&r.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);if("objDesc"===e)return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)},c.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},c.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(e)}},bf30:function(e,t,r){"use strict";var n,i="object"===typeof Reflect?Reflect:null,o=i&&"function"===typeof i.apply?i.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};n=i&&"function"===typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!==e};function s(){s.init.call(this)}e.exports=s,e.exports.once=function(e,t){return new Promise((function(r,n){function i(r){e.removeListener(t,o),n(r)}function o(){"function"===typeof e.removeListener&&e.removeListener("error",i),r([].slice.call(arguments))}v(e,t,o,{once:!0}),"error"!==t&&function(e,t,r){"function"===typeof e.on&&v(e,"error",t,r)}(e,i,{once:!0})}))},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var u=10;function c(e){if("function"!==typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function f(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function l(e,t,r,n){var i,o,a;if(c(r),o=e._events,void 0===o?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),a=o[t]),void 0===a)a=o[t]=r,++e._eventsCount;else if("function"===typeof a?a=o[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),i=f(e),i>0&&a.length>i&&!a.warned){a.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=a.length,function(e){console&&console.warn&&console.warn(e)}(s)}return e}function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function h(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=d.bind(n);return i.listener=r,n.wrapFn=i,i}function p(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"===typeof i?r?[i.listener||i]:[i]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(i):y(i,i.length)}function g(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"===typeof r)return 1;if(void 0!==r)return r.length}return 0}function y(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function v(e,t,r,n){if("function"===typeof e.on)n.once?e.once(t,r):e.on(t,r);else{if("function"!==typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function i(o){n.once&&e.removeEventListener(t,i),r(o)}))}}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return u},set:function(e){if("number"!==typeof e||e<0||a(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");u=e}}),s.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if("number"!==typeof e||e<0||a(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},s.prototype.getMaxListeners=function(){return f(this)},s.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var n="error"===e,i=this._events;if(void 0!==i)n=n&&void 0===i.error;else if(!n)return!1;if(n){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=i[e];if(void 0===u)return!1;if("function"===typeof u)o(u,this,t);else{var c=u.length,f=y(u,c);for(r=0;r<c;++r)o(f[r],this,t)}return!0},s.prototype.addListener=function(e,t){return l(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return l(this,e,t,!0)},s.prototype.once=function(e,t){return c(t),this.on(e,h(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return c(t),this.prependListener(e,h(this,e,t)),this},s.prototype.removeListener=function(e,t){var r,n,i,o,a;if(c(t),n=this._events,void 0===n)return this;if(r=n[e],void 0===r)return this;if(r===t||r.listener===t)0===--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!==typeof r){for(i=-1,o=r.length-1;o>=0;o--)if(r[o]===t||r[o].listener===t){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,i),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,a||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,r,n;if(r=this._events,void 0===r)return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var i,o=Object.keys(r);for(n=0;n<o.length;++n)i=o[n],"removeListener"!==i&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(t=r[e],"function"===typeof t)this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},s.prototype.listeners=function(e){return p(this,e,!0)},s.prototype.rawListeners=function(e){return p(this,e,!1)},s.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):g.call(e,t)},s.prototype.listenerCount=g,s.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},c003:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(e){var t="function"===typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},i=function(){function e(){}return e.getRSSvalue=function(t,r,i){var o,a,s=0;try{for(var u=n(t),c=u.next();!c.done;c=u.next()){var f=c.value;s+=f}}catch(m){o={error:m}}finally{try{c&&!c.done&&(a=u.return)&&a.call(u)}finally{if(o)throw o.error}}for(var l=0,d=0,h=t.length,p=0;p<h-1;p++){var g=void 0;for(g=1,d|=1<<p;g<t[p];g++,d&=~(1<<p)){var y=e.combins(s-g-1,h-p-2);if(i&&0===d&&s-g-(h-p-1)>=h-p-1&&(y-=e.combins(s-g-(h-p),h-p-2)),h-p-1>1){for(var v=0,b=s-g-(h-p-2);b>r;b--)v+=e.combins(s-g-b-1,h-p-3);y-=v*(h-1-p)}else s-g>r&&y--;l+=y}s-=g}return l},e.combins=function(e,t){var r,n;e-t>t?(n=t,r=e-t):(n=e-t,r=t);for(var i=1,o=1,a=e;a>r;a--)i*=a,o<=n&&(i/=o,o++);while(o<=n)i/=o,o++;return i},e}(),o=i;t.default=o},c1dd:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(){function e(e,t){this.bits=e,this.points=t}return e.prototype.getBits=function(){return this.bits},e.prototype.getPoints=function(){return this.points},e}(),i=n;t.default=i},c20f:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("26c4")),o=n(r("e5d0")),a=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),s=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.value=r,i.bitCount=n,i}return a(t,e),t.prototype.appendTo=function(e,t){e.appendBits(this.value,this.bitCount)},t.prototype.add=function(e,r){return new t(this,e,r)},t.prototype.addBinaryShift=function(e,r){return console.warn("addBinaryShift on SimpleToken, this simply returns a copy of this token"),new t(this,e,r)},t.prototype.toString=function(){var e=this.value&(1<<this.bitCount)-1;return e|=1<<this.bitCount,"<"+o.default.toBinaryString(e|1<<this.bitCount).substring(1)+">"},t}(i.default),u=s;t.default=u},c2ad:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=["#1890FF","#91CB74","#FAC858","#EE6666","#73C0DE","#3CA272","#FC8452","#9A60B4","#ea7ccc"],i={type:["pie","ring","rose","word","funnel","map","arcbar","line","column","mount","bar","area","radar","gauge","candle","mix","tline","tarea","scatter","bubble","demotype"],range:["饼状图","圆环图","玫瑰图","词云图","漏斗图","地图","圆弧进度条","折线图","柱状图","山峰图","条状图","区域图","雷达图","仪表盘","K线图","混合图","时间轴折线","时间轴区域","散点图","气泡图","自定义类型"],categories:["line","column","mount","bar","area","radar","gauge","candle","mix","demotype"],instance:{},option:{},formatter:{yAxisDemo1:function(e,t,r){return e+"元"},yAxisDemo2:function(e,t,r){return e.toFixed(2)},xAxisDemo1:function(e,t,r){return e+"年"},xAxisDemo2:function(e,t,r){return function(e,t){var r=new Date;r.setTime(1e3*e);var n=r.getFullYear(),i=r.getMonth()+1;i=i<10?"0"+i:i;var o=r.getDate();o=o<10?"0"+o:o;var a=r.getHours();a=a<10?"0"+a:a;var s=r.getMinutes(),u=r.getSeconds();return s=s<10?"0"+s:s,u=u<10?"0"+u:u,"full"==t?n+"-"+i+"-"+o+" "+a+":"+s+":"+u:"y-m-d"==t?n+"-"+i+"-"+o:"h:m"==t?a+":"+s:"h:m:s"==t?a+":"+s+":"+u:[n,i,o,a,s,u]}(e,"h:m")},seriesDemo1:function(e,t,r,n){return e+"元"},tooltipDemo1:function(e,t,r,n){return 0==r?"随便用"+e.data+"年":"其他我没改"+e.data+"天"},pieDemo:function(e,t,r,n){if(void 0!==t)return r[t].name+":"+r[t].data+"元"}},demotype:{type:"line",color:n,padding:[15,10,0,15],xAxis:{disableGrid:!0},yAxis:{gridType:"dash",dashLength:2},legend:{},extra:{line:{type:"curve",width:2}}},pie:{type:"pie",color:n,padding:[5,5,5,5],extra:{pie:{activeOpacity:.5,activeRadius:10,offsetAngle:0,labelWidth:15,border:!0,borderWidth:3,borderColor:"#FFFFFF"}}},ring:{type:"ring",color:n,padding:[5,5,5,5],rotate:!1,dataLabel:!0,legend:{show:!0,position:"right",lineHeight:25},title:{name:"收益率",fontSize:15,color:"#666666"},subtitle:{name:"70%",fontSize:25,color:"#7cb5ec"},extra:{ring:{ringWidth:30,activeOpacity:.5,activeRadius:10,offsetAngle:0,labelWidth:15,border:!0,borderWidth:3,borderColor:"#FFFFFF"}}},rose:{type:"rose",color:n,padding:[5,5,5,5],legend:{show:!0,position:"left",lineHeight:25},extra:{rose:{type:"area",minRadius:50,activeOpacity:.5,activeRadius:10,offsetAngle:0,labelWidth:15,border:!1,borderWidth:2,borderColor:"#FFFFFF"}}},word:{type:"word",color:n,extra:{word:{type:"normal",autoColors:!1}}},funnel:{type:"funnel",color:n,padding:[15,15,0,15],extra:{funnel:{activeOpacity:.3,activeWidth:10,border:!0,borderWidth:2,borderColor:"#FFFFFF",fillOpacity:1,labelAlign:"right"}}},map:{type:"map",color:n,padding:[0,0,0,0],dataLabel:!0,extra:{map:{border:!0,borderWidth:1,borderColor:"#666666",fillOpacity:.6,activeBorderColor:"#F04864",activeFillColor:"#FACC14",activeFillOpacity:1}}},arcbar:{type:"arcbar",color:n,title:{name:"百分比",fontSize:25,color:"#00FF00"},subtitle:{name:"默认标题",fontSize:15,color:"#666666"},extra:{arcbar:{type:"default",width:12,backgroundColor:"#E9E9E9",startAngle:.75,endAngle:.25,gap:2}}},line:{type:"line",color:n,padding:[15,10,0,15],xAxis:{disableGrid:!0},yAxis:{gridType:"dash",dashLength:2},legend:{},extra:{line:{type:"straight",width:2,activeType:"hollow"}}},tline:{type:"line",color:n,padding:[15,10,0,15],xAxis:{disableGrid:!1,boundaryGap:"justify"},yAxis:{gridType:"dash",dashLength:2,data:[{min:0,max:80}]},legend:{},extra:{line:{type:"curve",width:2,activeType:"hollow"}}},tarea:{type:"area",color:n,padding:[15,10,0,15],xAxis:{disableGrid:!0,boundaryGap:"justify"},yAxis:{gridType:"dash",dashLength:2,data:[{min:0,max:80}]},legend:{},extra:{area:{type:"curve",opacity:.2,addLine:!0,width:2,gradient:!0,activeType:"hollow"}}},column:{type:"column",color:n,padding:[15,15,0,5],xAxis:{disableGrid:!0},yAxis:{data:[{min:0}]},legend:{},extra:{column:{type:"group",width:30,activeBgColor:"#000000",activeBgOpacity:.08}}},mount:{type:"mount",color:n,padding:[15,15,0,5],xAxis:{disableGrid:!0},yAxis:{data:[{min:0}]},legend:{},extra:{mount:{type:"mount",widthRatio:1.5}}},bar:{type:"bar",color:n,padding:[15,30,0,5],xAxis:{boundaryGap:"justify",disableGrid:!1,min:0,axisLine:!1},yAxis:{},legend:{},extra:{bar:{type:"group",width:30,meterBorde:1,meterFillColor:"#FFFFFF",activeBgColor:"#000000",activeBgOpacity:.08}}},area:{type:"area",color:n,padding:[15,15,0,15],xAxis:{disableGrid:!0},yAxis:{gridType:"dash",dashLength:2},legend:{},extra:{area:{type:"straight",opacity:.2,addLine:!0,width:2,gradient:!1,activeType:"hollow"}}},radar:{type:"radar",color:n,padding:[5,5,5,5],dataLabel:!1,legend:{show:!0,position:"right",lineHeight:25},extra:{radar:{gridType:"radar",gridColor:"#CCCCCC",gridCount:3,opacity:.2,max:200,labelShow:!0}}},gauge:{type:"gauge",color:n,title:{name:"66Km/H",fontSize:25,color:"#2fc25b",offsetY:50},subtitle:{name:"实时速度",fontSize:15,color:"#1890ff",offsetY:-50},extra:{gauge:{type:"default",width:30,labelColor:"#666666",startAngle:.75,endAngle:.25,startNumber:0,endNumber:100,labelFormat:"",splitLine:{fixRadius:0,splitNumber:10,width:30,color:"#FFFFFF",childNumber:5,childWidth:12},pointer:{width:24,color:"auto"}}}},candle:{type:"candle",color:n,padding:[15,15,0,15],enableScroll:!0,enableMarkLine:!0,dataLabel:!1,xAxis:{labelCount:4,itemCount:40,disableGrid:!0,gridColor:"#CCCCCC",gridType:"solid",dashLength:4,scrollShow:!0,scrollAlign:"left",scrollColor:"#A6A6A6",scrollBackgroundColor:"#EFEBEF"},yAxis:{},legend:{},extra:{candle:{color:{upLine:"#f04864",upFill:"#f04864",downLine:"#2fc25b",downFill:"#2fc25b"},average:{show:!0,name:["MA5","MA10","MA30"],day:[5,10,20],color:["#1890ff","#2fc25b","#facc14"]}},markLine:{type:"dash",dashLength:5,data:[{value:2150,lineColor:"#f04864",showLabel:!0},{value:2350,lineColor:"#f04864",showLabel:!0}]}}},mix:{type:"mix",color:n,padding:[15,15,0,15],xAxis:{disableGrid:!0},yAxis:{disabled:!1,disableGrid:!1,splitNumber:5,gridType:"dash",dashLength:4,gridColor:"#CCCCCC",padding:10,showTitle:!0,data:[]},legend:{},extra:{mix:{column:{width:20}}}},scatter:{type:"scatter",color:n,padding:[15,15,0,15],dataLabel:!1,xAxis:{disableGrid:!1,gridType:"dash",splitNumber:5,boundaryGap:"justify",min:0},yAxis:{disableGrid:!1,gridType:"dash"},legend:{},extra:{scatter:{}}},bubble:{type:"bubble",color:n,padding:[15,15,0,15],xAxis:{disableGrid:!1,gridType:"dash",splitNumber:5,boundaryGap:"justify",min:0,max:250},yAxis:{disableGrid:!1,gridType:"dash",data:[{min:0,max:150}]},legend:{},extra:{bubble:{border:2,opacity:.5}}}},o=i;t.default=o},c2b3:function(e,t,r){"use strict";var n=r("4e45"),i=r("81eb"),o=r("2c2e"),a=r("07a0"),s=n.assert;function u(e){a.call(this,"short",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function c(e,t,r,n){a.BasePoint.call(this,e,"affine"),null===t&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new i(t,16),this.y=new i(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function f(e,t,r,n){a.BasePoint.call(this,e,"jacobian"),null===t&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new i(0)):(this.x=new i(t,16),this.y=new i(r,16),this.z=new i(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}o(u,a),e.exports=u,u.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,r,n;if(e.beta)t=new i(e.beta,16).toRed(this.red);else{var o=this._getEndoRoots(this.p);t=o[0].cmp(o[1])<0?o[0]:o[1],t=t.toRed(this.red)}if(e.lambda)r=new i(e.lambda,16);else{var a=this._getEndoRoots(this.n);0===this.g.mul(a[0]).x.cmp(this.g.x.redMul(t))?r=a[0]:(r=a[1],s(0===this.g.mul(r).x.cmp(this.g.x.redMul(t))))}return n=e.basis?e.basis.map((function(e){return{a:new i(e.a,16),b:new i(e.b,16)}})):this._getEndoBasis(r),{beta:t,lambda:r,basis:n}}},u.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:i.mont(e),r=new i(2).toRed(t).redInvm(),n=r.redNeg(),o=new i(3).toRed(t).redNeg().redSqrt().redMul(r),a=n.redAdd(o).fromRed(),s=n.redSub(o).fromRed();return[a,s]},u.prototype._getEndoBasis=function(e){var t,r,n,o,a,s,u,c,f,l=this.n.ushrn(Math.floor(this.n.bitLength()/2)),d=e,h=this.n.clone(),p=new i(1),g=new i(0),y=new i(0),v=new i(1),b=0;while(0!==d.cmpn(0)){var m=h.div(d);c=h.sub(m.mul(d)),f=y.sub(m.mul(p));var _=v.sub(m.mul(g));if(!n&&c.cmp(l)<0)t=u.neg(),r=p,n=c.neg(),o=f;else if(n&&2===++b)break;u=c,h=d,d=c,y=p,p=f,v=g,g=_}a=c.neg(),s=f;var w=n.sqr().add(o.sqr()),A=a.sqr().add(s.sqr());return A.cmp(w)>=0&&(a=t,s=r),n.negative&&(n=n.neg(),o=o.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:n,b:o},{a:a,b:s}]},u.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),a=i.mul(r.a),s=o.mul(n.a),u=i.mul(r.b),c=o.mul(n.b),f=e.sub(a).sub(s),l=u.add(c).neg();return{k1:f,k2:l}},u.prototype.pointFromX=function(e,t){e=new i(e,16),e.red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var o=n.fromRed().isOdd();return(t&&!o||!t&&o)&&(n=n.redNeg()),this.point(e,n)},u.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},u.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o<e.length;o++){var a=this._endoSplit(t[o]),s=e[o],u=s._getBeta();a.k1.negative&&(a.k1.ineg(),s=s.neg(!0)),a.k2.negative&&(a.k2.ineg(),u=u.neg(!0)),n[2*o]=s,n[2*o+1]=u,i[2*o]=a.k1,i[2*o+1]=a.k2}for(var c=this._wnafMulAdd(1,n,i,2*o,r),f=0;f<2*o;f++)n[f]=null,i[f]=null;return c},o(c,a.BasePoint),u.prototype.point=function(e,t,r){return new c(this,e,t,r)},u.prototype.pointFromJSON=function(e,t){return c.fromJSON(this,e,t)},c.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var r=this.curve,n=function(e){return r.point(e.x.redMul(r.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(n)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(n)}}}return t}},c.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},c.fromJSON=function(e,t,r){"string"===typeof t&&(t=JSON.parse(t));var n=e.point(t[0],t[1],r);if(!t[2])return n;function i(t){return e.point(t[0],t[1],r)}var o=t[2];return n.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[n].concat(o.doubles.points.map(i))},naf:o.naf&&{wnd:o.naf.wnd,points:[n].concat(o.naf.points.map(i))}},n},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return this.inf},c.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},c.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(e){return e=new i(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},c.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},c.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},c.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},c.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var e=this.curve.jpoint(this.x,this.y,this.curve.one);return e},o(f,a.BasePoint),u.prototype.jpoint=function(e,t,r){return new f(this,e,t,r)},f.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},f.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},f.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),i=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(r.redMul(this.z)),s=n.redSub(i),u=o.redSub(a);if(0===s.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=s.redSqr(),f=c.redMul(s),l=n.redMul(c),d=u.redSqr().redIAdd(f).redISub(l).redISub(l),h=u.redMul(l.redISub(d)).redISub(o.redMul(f)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(d,h,p)},f.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),a=r.redSub(n),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=a.redSqr(),c=u.redMul(a),f=r.redMul(u),l=s.redSqr().redIAdd(c).redISub(f).redISub(f),d=s.redMul(f.redISub(l)).redISub(i.redMul(c)),h=this.z.redMul(a);return this.curve.jpoint(l,d,h)},f.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var r=this;for(t=0;t<e;t++)r=r.dbl();return r}var n=this.curve.a,i=this.curve.tinv,o=this.x,a=this.y,s=this.z,u=s.redSqr().redSqr(),c=a.redAdd(a);for(t=0;t<e;t++){var f=o.redSqr(),l=c.redSqr(),d=l.redSqr(),h=f.redAdd(f).redIAdd(f).redIAdd(n.redMul(u)),p=o.redMul(l),g=h.redSqr().redISub(p.redAdd(p)),y=p.redISub(g),v=h.redMul(y);v=v.redIAdd(v).redISub(d);var b=c.redMul(s);t+1<e&&(u=u.redMul(d)),o=g,s=b,c=v}return this.curve.jpoint(o,c.redMul(i),s)},f.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},f.prototype._zeroDbl=function(){var e,t,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n),u=s.redSqr().redISub(a).redISub(a),c=o.redIAdd(o);c=c.redIAdd(c),c=c.redIAdd(c),e=u,t=s.redMul(a.redISub(u)).redISub(c),r=this.y.redAdd(this.y)}else{var f=this.x.redSqr(),l=this.y.redSqr(),d=l.redSqr(),h=this.x.redAdd(l).redSqr().redISub(f).redISub(d);h=h.redIAdd(h);var p=f.redAdd(f).redIAdd(f),g=p.redSqr(),y=d.redIAdd(d);y=y.redIAdd(y),y=y.redIAdd(y),e=g.redISub(h).redISub(h),t=p.redMul(h.redISub(e)).redISub(y),r=this.y.redMul(this.z),r=r.redIAdd(r)}return this.curve.jpoint(e,t,r)},f.prototype._threeDbl=function(){var e,t,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),u=s.redSqr().redISub(a).redISub(a);e=u;var c=o.redIAdd(o);c=c.redIAdd(c),c=c.redIAdd(c),t=s.redMul(a.redISub(u)).redISub(c),r=this.y.redAdd(this.y)}else{var f=this.z.redSqr(),l=this.y.redSqr(),d=this.x.redMul(l),h=this.x.redSub(f).redMul(this.x.redAdd(f));h=h.redAdd(h).redIAdd(h);var p=d.redIAdd(d);p=p.redIAdd(p);var g=p.redAdd(p);e=h.redSqr().redISub(g),r=this.y.redAdd(this.z).redSqr().redISub(l).redISub(f);var y=l.redSqr();y=y.redIAdd(y),y=y.redIAdd(y),y=y.redIAdd(y),t=h.redMul(p.redISub(e)).redISub(y)}return this.curve.jpoint(e,t,r)},f.prototype._dbl=function(){var e=this.curve.a,t=this.x,r=this.y,n=this.z,i=n.redSqr().redSqr(),o=t.redSqr(),a=r.redSqr(),s=o.redAdd(o).redIAdd(o).redIAdd(e.redMul(i)),u=t.redAdd(t);u=u.redIAdd(u);var c=u.redMul(a),f=s.redSqr().redISub(c.redAdd(c)),l=c.redISub(f),d=a.redSqr();d=d.redIAdd(d),d=d.redIAdd(d),d=d.redIAdd(d);var h=s.redMul(l).redISub(d),p=r.redAdd(r).redMul(n);return this.curve.jpoint(f,h,p)},f.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr(),n=t.redSqr(),i=e.redAdd(e).redIAdd(e),o=i.redSqr(),a=this.x.redAdd(t).redSqr().redISub(e).redISub(n);a=a.redIAdd(a),a=a.redAdd(a).redIAdd(a),a=a.redISub(o);var s=a.redSqr(),u=n.redIAdd(n);u=u.redIAdd(u),u=u.redIAdd(u),u=u.redIAdd(u);var c=i.redIAdd(a).redSqr().redISub(o).redISub(s).redISub(u),f=t.redMul(c);f=f.redIAdd(f),f=f.redIAdd(f);var l=this.x.redMul(s).redISub(f);l=l.redIAdd(l),l=l.redIAdd(l);var d=this.y.redMul(c.redMul(u.redISub(c)).redISub(a.redMul(s)));d=d.redIAdd(d),d=d.redIAdd(d),d=d.redIAdd(d);var h=this.z.redAdd(a).redSqr().redISub(r).redISub(s);return this.curve.jpoint(l,d,h)},f.prototype.mul=function(e,t){return e=new i(e,t),this.curve._wnafMul(this,e)},f.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),r=e.z.redSqr();if(0!==this.x.redMul(r).redISub(e.x.redMul(t)).cmpn(0))return!1;var n=t.redMul(this.z),i=r.redMul(e.z);return 0===this.y.redMul(i).redISub(e.y.redMul(n)).cmpn(0)},f.prototype.eqXToP=function(e){var t=this.z.redSqr(),r=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(r))return!0;for(var n=e.clone(),i=this.curve.redN.redMul(t);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},f.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},f.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},c3c6:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("b717")),o=n(r("f74e")),a=n(r("343e")),s=n(r("f228")),u=n(r("0c24")),c=n(r("5a0c")),f=n(r("e5d0")),l=n(r("37ed")),d=n(r("22f7")),h=n(r("768a")),p=function(e){var t="function"===typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},g=function(){function e(){}return e.prototype.decode=function(t,r){void 0===r&&(r=null);var n=e.decode(t,r,!1);if(null==n||0===n.length||null==n[0])throw s.default.getNotFoundInstance();return n[0]},e.prototype.decodeMultiple=function(t,r){void 0===r&&(r=null);try{return e.decode(t,r,!0)}catch(n){if(n instanceof a.default||n instanceof o.default)throw s.default.getNotFoundInstance();throw n}},e.decode=function(t,r,n){var o,a,s=new Array,c=d.default.detectMultiple(t,r,n);try{for(var f=p(c.getPoints()),g=f.next();!g.done;g=f.next()){var y=g.value,v=h.default.decode(c.getBits(),y[4],y[5],y[6],y[7],e.getMinCodewordWidth(y),e.getMaxCodewordWidth(y)),b=new u.default(v.getText(),v.getRawBytes(),void 0,y,i.default.PDF_417);b.putMetadata(l.default.ERROR_CORRECTION_LEVEL,v.getECLevel());var m=v.getOther();null!=m&&b.putMetadata(l.default.PDF417_EXTRA_METADATA,m),s.push(b)}}catch(_){o={error:_}}finally{try{g&&!g.done&&(a=f.return)&&a.call(f)}finally{if(o)throw o.error}}return s.map((function(e){return e}))},e.getMaxWidth=function(e,t){return null==e||null==t?0:Math.trunc(Math.abs(e.getX()-t.getX()))},e.getMinWidth=function(e,t){return null==e||null==t?f.default.MAX_VALUE:Math.trunc(Math.abs(e.getX()-t.getX()))},e.getMaxCodewordWidth=function(t){return Math.floor(Math.max(Math.max(e.getMaxWidth(t[0],t[4]),e.getMaxWidth(t[6],t[2])*c.default.MODULES_IN_CODEWORD/c.default.MODULES_IN_STOP_PATTERN),Math.max(e.getMaxWidth(t[1],t[5]),e.getMaxWidth(t[7],t[3])*c.default.MODULES_IN_CODEWORD/c.default.MODULES_IN_STOP_PATTERN)))},e.getMinCodewordWidth=function(t){return Math.floor(Math.min(Math.min(e.getMinWidth(t[0],t[4]),e.getMinWidth(t[6],t[2])*c.default.MODULES_IN_CODEWORD/c.default.MODULES_IN_STOP_PATTERN),Math.min(e.getMinWidth(t[1],t[5]),e.getMinWidth(t[7],t[3])*c.default.MODULES_IN_CODEWORD/c.default.MODULES_IN_STOP_PATTERN)))},e.prototype.reset=function(){},e}(),y=g;t.default=y},c41c:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("f7fd")),o=function(){function e(e){this.bytes=e,this.byteOffset=0,this.bitOffset=0}return e.prototype.getBitOffset=function(){return this.bitOffset},e.prototype.getByteOffset=function(){return this.byteOffset},e.prototype.readBits=function(e){if(e<1||e>32||e>this.available())throw new i.default(""+e);var t=0,r=this.bitOffset,n=this.byteOffset,o=this.bytes;if(r>0){var a=8-r,s=e<a?e:a,u=a-s,c=255>>8-s<<u;t=(o[n]&c)>>u,e-=s,r+=s,8===r&&(r=0,n++)}if(e>0){while(e>=8)t=t<<8|255&o[n],n++,e-=8;if(e>0){u=8-e,c=255>>u<<u;t=t<<e|(o[n]&c)>>u,r+=e}}return this.bitOffset=r,this.byteOffset=n,t},e.prototype.available=function(){return 8*(this.bytes.length-this.byteOffset)-this.bitOffset},e}(),a=o;t.default=a},c741:function(e,t,r){"use strict";var n=r("ca99");function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var r=this,o=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return o||a?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||n.nextTick(i,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?(n.nextTick(i,r,e),r._writableState&&(r._writableState.errorEmitted=!0)):t&&t(e)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},c769:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(){function e(){}return e.round=function(e){return isNaN(e)?0:e<=Number.MIN_SAFE_INTEGER?Number.MIN_SAFE_INTEGER:e>=Number.MAX_SAFE_INTEGER?Number.MAX_SAFE_INTEGER:e+(e<0?-.5:.5)|0},e.distance=function(e,t,r,n){var i=e-r,o=t-n;return Math.sqrt(i*i+o*o)},e.sum=function(e){for(var t=0,r=0,n=e.length;r!==n;r++){var i=e[r];t+=i}return t},e}(),i=n;t.default=i},c789:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("333e")),o=n(r("9c16")),a=n(r("7e0b")),s=n(r("f228")),u=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),c=function(e){function t(r){var n=e.call(this,r)||this;return n.luminances=t.EMPTY,n.buckets=new Int32Array(t.LUMINANCE_BUCKETS),n}return u(t,e),t.prototype.getBlackRow=function(e,r){var n=this.getLuminanceSource(),i=n.getWidth();void 0===r||null===r||r.getSize()<i?r=new o.default(i):r.clear(),this.initArrays(i);for(var a=n.getRow(e,this.luminances),s=this.buckets,u=0;u<i;u++)s[(255&a[u])>>t.LUMINANCE_SHIFT]++;var c=t.estimateBlackPoint(s);if(i<3)for(u=0;u<i;u++)(255&a[u])<c&&r.set(u);else{var f=255&a[0],l=255&a[1];for(u=1;u<i-1;u++){var d=255&a[u+1];(4*l-f-d)/2<c&&r.set(u),f=l,l=d}}return r},t.prototype.getBlackMatrix=function(){var e=this.getLuminanceSource(),r=e.getWidth(),n=e.getHeight(),i=new a.default(r,n);this.initArrays(r);for(var o=this.buckets,s=1;s<5;s++)for(var u=Math.floor(n*s/5),c=e.getRow(u,this.luminances),f=Math.floor(4*r/5),l=Math.floor(r/5);l<f;l++){var d=255&c[l];o[d>>t.LUMINANCE_SHIFT]++}var h=t.estimateBlackPoint(o),p=e.getMatrix();for(s=0;s<n;s++){var g=s*r;for(l=0;l<r;l++){d=255&p[g+l];d<h&&i.set(l,s)}}return i},t.prototype.createBinarizer=function(e){return new t(e)},t.prototype.initArrays=function(e){this.luminances.length<e&&(this.luminances=new Uint8ClampedArray(e));for(var r=this.buckets,n=0;n<t.LUMINANCE_BUCKETS;n++)r[n]=0},t.estimateBlackPoint=function(e){for(var r=e.length,n=0,i=0,o=0,a=0;a<r;a++)e[a]>o&&(i=a,o=e[a]),e[a]>n&&(n=e[a]);var u=0,c=0;for(a=0;a<r;a++){var f=a-i,l=e[a]*f*f;l>c&&(u=a,c=l)}if(i>u){var d=i;i=u,u=d}if(u-i<=r/16)throw new s.default;var h=u-1,p=-1;for(a=u-1;a>i;a--){var g=a-i;l=g*g*(u-a)*(n-e[a]);l>p&&(h=a,p=l)}return h<<t.LUMINANCE_SHIFT},t.LUMINANCE_BITS=5,t.LUMINANCE_SHIFT=8-t.LUMINANCE_BITS,t.LUMINANCE_BUCKETS=1<<t.LUMINANCE_BITS,t.EMPTY=Uint8ClampedArray.from([0]),t}(i.default),f=c;t.default=f},c83b:function(e,t,r){"use strict";var n=r("5f79").Buffer,i=r("7125").Transform,o=r("2c2e");function a(e){i.call(this),this._block=n.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}o(a,i),a.prototype._transform=function(e,t,r){var n=null;try{this.update(e,t)}catch(i){n=i}r(n)},a.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(r){t=r}e(t)},a.prototype.update=function(e,t){if(function(e,t){if(!n.isBuffer(e)&&"string"!==typeof e)throw new TypeError(t+" must be a string or a buffer")}(e,"Data"),this._finalized)throw new Error("Digest already called");n.isBuffer(e)||(e=n.from(e,t));var r=this._block,i=0;while(this._blockOffset+e.length-i>=this._blockSize){for(var o=this._blockOffset;o<this._blockSize;)r[o++]=e[i++];this._update(),this._blockOffset=0}while(i<e.length)r[this._blockOffset++]=e[i++];for(var a=0,s=8*e.length;s>0;++a)this._length[a]+=s,s=this._length[a]/4294967296|0,s>0&&(this._length[a]-=4294967296*s);return this},a.prototype._update=function(){throw new Error("_update is not implemented")},a.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return t},a.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=a},c8c9:function(e,t,r){"use strict";var n=r("81eb"),i=r("4e45"),o=i.assert;function a(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}e.exports=a,a.fromPublic=function(e,t,r){return t instanceof a?t:new a(e,{pub:t,pubEnc:r})},a.fromPrivate=function(e,t,r){return t instanceof a?t:new a(e,{priv:t,privEnc:r})},a.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},a.prototype.getPublic=function(e,t){return"string"===typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},a.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},a.prototype._importPrivate=function(e,t){this.priv=new n(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},a.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?o(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||o(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},a.prototype.derive=function(e){return e.validate()||o(e.validate(),"public point not validated"),e.mul(this.priv).getX()},a.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)},a.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},a.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},c9e4:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o=n(r("107a")),a=n(r("f5e6")),s=n(r("ade5")),u=n(r("9e56")),c=n(r("343e")),f=n(r("d618")),l=n(r("e5d0"));(function(e){e[e["UPPER"]=0]="UPPER",e[e["LOWER"]=1]="LOWER",e[e["MIXED"]=2]="MIXED",e[e["DIGIT"]=3]="DIGIT",e[e["PUNCT"]=4]="PUNCT",e[e["BINARY"]=5]="BINARY"})(i||(i={}));var d=function(){function e(){}return e.prototype.decode=function(t){this.ddata=t;var r=t.getBits(),n=this.extractBits(r),i=this.correctBits(n),a=e.convertBoolArrayToByteArray(i),s=e.getEncodedData(i),u=new o.default(a,s,null,null);return u.setNumBits(i.length),u},e.highLevelDecode=function(e){return this.getEncodedData(e)},e.getEncodedData=function(t){var r=t.length,n=i.UPPER,o=i.UPPER,a="",s=0;while(s<r)if(o===i.BINARY){if(r-s<5)break;var u=e.readCode(t,s,5);if(s+=5,0===u){if(r-s<11)break;u=e.readCode(t,s,11)+31,s+=11}for(var c=0;c<u;c++){if(r-s<8){s=r;break}var l=e.readCode(t,s,8);a+=f.default.castAsNonUtf8Char(l),s+=8}o=n}else{var d=o===i.DIGIT?4:5;if(r-s<d)break;l=e.readCode(t,s,d);s+=d;var h=e.getCharacter(o,l);h.startsWith("CTRL_")?(n=o,o=e.getTable(h.charAt(5)),"L"===h.charAt(6)&&(n=o)):(a+=h,o=n)}return a},e.getTable=function(e){switch(e){case"L":return i.LOWER;case"P":return i.PUNCT;case"M":return i.MIXED;case"D":return i.DIGIT;case"B":return i.BINARY;case"U":default:return i.UPPER}},e.getCharacter=function(t,r){switch(t){case i.UPPER:return e.UPPER_TABLE[r];case i.LOWER:return e.LOWER_TABLE[r];case i.MIXED:return e.MIXED_TABLE[r];case i.PUNCT:return e.PUNCT_TABLE[r];case i.DIGIT:return e.DIGIT_TABLE[r];default:throw new u.default("Bad table")}},e.prototype.correctBits=function(t){var r,n;this.ddata.getNbLayers()<=2?(n=6,r=a.default.AZTEC_DATA_6):this.ddata.getNbLayers()<=8?(n=8,r=a.default.AZTEC_DATA_8):this.ddata.getNbLayers()<=22?(n=10,r=a.default.AZTEC_DATA_10):(n=12,r=a.default.AZTEC_DATA_12);var i=this.ddata.getNbDatablocks(),o=t.length/n;if(o<i)throw new c.default;for(var u=t.length%n,f=new Int32Array(o),l=0;l<o;l++,u+=n)f[l]=e.readCode(t,u,n);try{var d=new s.default(r);d.decode(f,o-i)}catch(m){throw new c.default(m)}var h=(1<<n)-1,p=0;for(l=0;l<i;l++){var g=f[l];if(0===g||g===h)throw new c.default;1!==g&&g!==h-1||p++}var y=new Array(i*n-p),v=0;for(l=0;l<i;l++){g=f[l];if(1===g||g===h-1)y.fill(g>1,v,v+n-1),v+=n-1;else for(var b=n-1;b>=0;--b)y[v++]=0!==(g&1<<b)}return y},e.prototype.extractBits=function(e){var t=this.ddata.isCompact(),r=this.ddata.getNbLayers(),n=(t?11:14)+4*r,i=new Int32Array(n),o=new Array(this.totalBitsInLayer(r,t));if(t)for(var a=0;a<i.length;a++)i[a]=a;else{var s=n+1+2*l.default.truncDivision(l.default.truncDivision(n,2)-1,15),u=n/2,c=l.default.truncDivision(s,2);for(a=0;a<u;a++){var f=a+l.default.truncDivision(a,15);i[u-a-1]=c-f-1,i[u+a]=c+f+1}}a=0;for(var d=0;a<r;a++){for(var h=4*(r-a)+(t?9:12),p=2*a,g=n-1-p,y=0;y<h;y++)for(var v=2*y,b=0;b<2;b++)o[d+v+b]=e.get(i[p+b],i[p+y]),o[d+2*h+v+b]=e.get(i[p+y],i[g-b]),o[d+4*h+v+b]=e.get(i[g-b],i[g-y]),o[d+6*h+v+b]=e.get(i[g-y],i[p+b]);d+=8*h}return o},e.readCode=function(e,t,r){for(var n=0,i=t;i<t+r;i++)n<<=1,e[i]&&(n|=1);return n},e.readByte=function(t,r){var n=t.length-r;return n>=8?e.readCode(t,r,8):e.readCode(t,r,n)<<8-n},e.convertBoolArrayToByteArray=function(t){for(var r=new Uint8Array((t.length+7)/8),n=0;n<r.length;n++)r[n]=e.readByte(t,8*n);return r},e.prototype.totalBitsInLayer=function(e,t){return((t?88:112)+16*e)*e},e.UPPER_TABLE=["CTRL_PS"," ","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","CTRL_LL","CTRL_ML","CTRL_DL","CTRL_BS"],e.LOWER_TABLE=["CTRL_PS"," ","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","CTRL_US","CTRL_ML","CTRL_DL","CTRL_BS"],e.MIXED_TABLE=["CTRL_PS"," ","","","","","","","","\b","\t","\n","\v","\f","\r","","","","","","@","\\","^","_","`","|","~","","CTRL_LL","CTRL_UL","CTRL_PL","CTRL_BS"],e.PUNCT_TABLE=["","\r","\r\n",". ",", ",": ","!",'"',"#","$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","?","[","]","{","}","CTRL_UL"],e.DIGIT_TABLE=["CTRL_PS"," ","0","1","2","3","4","5","6","7","8","9",",",".","CTRL_UL","CTRL_US"],e}(),h=d;t.default=h},ca99:function(e,t,r){"use strict";(function(t){"undefined"===typeof t||!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:function(e,r,n,i){if("function"!==typeof e)throw new TypeError('"callback" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick((function(){e.call(null,r)}));case 3:return t.nextTick((function(){e.call(null,r,n)}));case 4:return t.nextTick((function(){e.call(null,r,n,i)}));default:o=new Array(s-1),a=0;while(a<o.length)o[a++]=arguments[a];return t.nextTick((function(){e.apply(null,o)}))}}}:e.exports=t}).call(this,r("28d0"))},cc5c:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("5a0c")),o=function(e){var t="function"===typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=function(e,t){var r="function"===typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{while((void 0===t||t-- >0)&&!(n=o.next()).done)a.push(n.value)}catch(s){i={error:s}}finally{try{n&&!n.done&&(r=o["return"])&&r.call(o)}finally{if(i)throw i.error}}return a},s=function(){function e(){this.values=new Map}return e.prototype.setValue=function(e){e=Math.trunc(e);var t=this.values.get(e);null==t&&(t=0),t++,this.values.set(e,t)},e.prototype.getValue=function(){var e,t,r=-1,n=new Array,s=function(e,t){var i={getKey:function(){return e},getValue:function(){return t}};i.getValue()>r?(r=i.getValue(),n=[],n.push(i.getKey())):i.getValue()===r&&n.push(i.getKey())};try{for(var u=o(this.values.entries()),c=u.next();!c.done;c=u.next()){var f=a(c.value,2),l=f[0],d=f[1];s(l,d)}}catch(h){e={error:h}}finally{try{c&&!c.done&&(t=u.return)&&t.call(u)}finally{if(e)throw e.error}}return i.default.toIntArray(n)},e.prototype.getConfidence=function(e){return this.values.get(e)},e}(),u=s;t.default=u},cc6b:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(){function e(){}return e.singletonList=function(e){return[e]},e.min=function(e,t){return e.sort(t)[0]},e}(),i=n;t.default=i},cce3:function(e,t){e.exports=function(e,t){var r=e.length,n=-1;while(++n<r)e[n]^=t[n];return e}},cd4e:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("f74e")),o=n(r("7e0b")),a=n(r("f5e6")),s=n(r("ade5")),u=n(r("ae1e")),c=n(r("63d8")),f=n(r("60c5")),l=n(r("3f6d")),d=function(e){var t="function"===typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},h=function(){function e(){this.rsDecoder=new s.default(a.default.QR_CODE_FIELD_256)}return e.prototype.decodeBooleanArray=function(e,t){return this.decodeBitMatrix(o.default.parseFromBooleanArray(e),t)},e.prototype.decodeBitMatrix=function(e,t){var r=new u.default(e),n=null;try{return this.decodeBitMatrixParser(r,t)}catch(o){n=o}try{r.remask(),r.setMirror(!0),r.readVersion(),r.readFormatInformation(),r.mirror();var i=this.decodeBitMatrixParser(r,t);return i.setOther(new l.default(!0)),i}catch(o){if(null!==n)throw n;throw o}},e.prototype.decodeBitMatrixParser=function(e,t){var r,n,i,o,a=e.readVersion(),s=e.readFormatInformation().getErrorCorrectionLevel(),u=e.readCodewords(),l=c.default.getDataBlocks(u,a,s),h=0;try{for(var p=d(l),g=p.next();!g.done;g=p.next()){var y=g.value;h+=y.getNumDataCodewords()}}catch(x){r={error:x}}finally{try{g&&!g.done&&(n=p.return)&&n.call(p)}finally{if(r)throw r.error}}var v=new Uint8Array(h),b=0;try{for(var m=d(l),_=m.next();!_.done;_=m.next()){y=_.value;var w=y.getCodewords(),A=y.getNumDataCodewords();this.correctErrors(w,A);for(var S=0;S<A;S++)v[b++]=w[S]}}catch(E){i={error:E}}finally{try{_&&!_.done&&(o=m.return)&&o.call(m)}finally{if(i)throw i.error}}return f.default.decode(v,a,s,t)},e.prototype.correctErrors=function(e,t){var r=new Int32Array(e);try{this.rsDecoder.decode(r,e.length-t)}catch(o){throw new i.default}for(var n=0;n<t;n++)e[n]=r[n]},e}(),p=h;t.default=p},cef8:function(e,t,r){var n=r("2c2e"),i=r("0b34"),o=r("5f79").Buffer,a=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],s=new Array(64);function u(){this.init(),this._w=s,i.call(this,64,56)}function c(e,t,r){return r^e&(t^r)}function f(e,t,r){return e&t|r&(e|t)}function l(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function d(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function h(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}function p(e){return(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10}n(u,i),u.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},u.prototype._update=function(e){for(var t=this._w,r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,s=0|this._e,u=0|this._f,g=0|this._g,y=0|this._h,v=0;v<16;++v)t[v]=e.readInt32BE(4*v);for(;v<64;++v)t[v]=p(t[v-2])+t[v-7]+h(t[v-15])+t[v-16]|0;for(var b=0;b<64;++b){var m=y+d(s)+c(s,u,g)+a[b]+t[b]|0,_=l(r)+f(r,n,i)|0;y=g,g=u,u=s,s=o+m|0,o=i,i=n,n=r,r=m+_|0}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=s+this._e|0,this._f=u+this._f|0,this._g=g+this._g|0,this._h=y+this._h|0},u.prototype._hash=function(){var e=o.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=u},cfef:function(e,t,r){var n=r("5f79").Buffer,i=r("f431").Transform,o=r("5f85").StringDecoder,a=r("2c2e");function s(e){i.call(this),this.hashMode="string"===typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}a(s,i),s.prototype.update=function(e,t,r){"string"===typeof e&&(e=n.from(e,t));var i=this._update(e);return this.hashMode?this:(r&&(i=this._toString(i,r)),i)},s.prototype.setAutoPadding=function(){},s.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},s.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},s.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},s.prototype._transform=function(e,t,r){var n;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(i){n=i}finally{r(n)}},s.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(r){t=r}e(t)},s.prototype._finalOrDigest=function(e){var t=this.__final()||n.alloc(0);return e&&(t=this._toString(t,e,!0)),t},s.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new o(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var n=this._decoder.write(e);return r&&(n+=this._decoder.end()),n},e.exports=s},cffa:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("f74e")),o=n(r("f5e6")),a=n(r("ade5")),s=n(r("fd6f")),u=n(r("1bad")),c=n(r("0109")),f=function(e){var t="function"===typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},l=function(){function e(){this.rsDecoder=new a.default(o.default.DATA_MATRIX_FIELD_256)}return e.prototype.decode=function(e){var t,r,n=new s.default(e),i=n.getVersion(),o=n.readCodewords(),a=u.default.getDataBlocks(o,i),l=0;try{for(var d=f(a),h=d.next();!h.done;h=d.next()){var p=h.value;l+=p.getNumDataCodewords()}}catch(A){t={error:A}}finally{try{h&&!h.done&&(r=d.return)&&r.call(d)}finally{if(t)throw t.error}}for(var g=new Uint8Array(l),y=a.length,v=0;v<y;v++){var b=a[v],m=b.getCodewords(),_=b.getNumDataCodewords();this.correctErrors(m,_);for(var w=0;w<_;w++)g[w*y+v]=m[w]}return c.default.decode(g)},e.prototype.correctErrors=function(e,t){var r=new Int32Array(e);try{this.rsDecoder.decode(r,e.length-t)}catch(o){throw new i.default}for(var n=0;n<t;n++)e[n]=r[n]},e}(),d=l;t.default=d},d147:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.MODE_UPPER=t.MODE_PUNCT=t.MODE_NAMES=t.MODE_MIXED=t.MODE_LOWER=t.MODE_DIGIT=t.EMPTY_TOKEN=void 0;var i=n(r("c20f"));t.MODE_NAMES=["UPPER","LOWER","DIGIT","MIXED","PUNCT"];t.MODE_UPPER=0;t.MODE_LOWER=1;t.MODE_DIGIT=2;t.MODE_MIXED=3;t.MODE_PUNCT=4;var o=new i.default(null,0,0);t.EMPTY_TOKEN=o},d36d:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(){function e(){this.segmentCount=-1,this.fileSize=-1,this.timestamp=-1,this.checksum=-1}return e.prototype.getSegmentIndex=function(){return this.segmentIndex},e.prototype.setSegmentIndex=function(e){this.segmentIndex=e},e.prototype.getFileId=function(){return this.fileId},e.prototype.setFileId=function(e){this.fileId=e},e.prototype.getOptionalData=function(){return this.optionalData},e.prototype.setOptionalData=function(e){this.optionalData=e},e.prototype.isLastSegment=function(){return this.lastSegment},e.prototype.setLastSegment=function(e){this.lastSegment=e},e.prototype.getSegmentCount=function(){return this.segmentCount},e.prototype.setSegmentCount=function(e){this.segmentCount=e},e.prototype.getSender=function(){return this.sender||null},e.prototype.setSender=function(e){this.sender=e},e.prototype.getAddressee=function(){return this.addressee||null},e.prototype.setAddressee=function(e){this.addressee=e},e.prototype.getFileName=function(){return this.fileName},e.prototype.setFileName=function(e){this.fileName=e},e.prototype.getFileSize=function(){return this.fileSize},e.prototype.setFileSize=function(e){this.fileSize=e},e.prototype.getChecksum=function(){return this.checksum},e.prototype.setChecksum=function(e){this.checksum=e},e.prototype.getTimestamp=function(){return this.timestamp},e.prototype.setTimestamp=function(e){this.timestamp=e},e}(),i=n;t.default=i},d3b4:function(e,t,r){"use strict";(function(e,n){var i=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.LOCALE_ZH_HANT=t.LOCALE_ZH_HANS=t.LOCALE_FR=t.LOCALE_ES=t.LOCALE_EN=t.I18n=t.Formatter=void 0,t.compileI18nJsonStr=function(e,t){var r=t.locale,n=t.locales,i=t.delimiters;if(!E(e,i))return e;S||(S=new l);var o=[];Object.keys(n).forEach((function(e){e!==r&&o.push({locale:e,values:n[e]})})),o.unshift({locale:r,values:n[r]});try{return JSON.stringify(O(JSON.parse(e),o,i),null,2)}catch(a){}return e},t.hasI18nJson=function e(t,r){S||(S=new l);return I(t,(function(t,n){var i=t[n];return x(i)?!!E(i,r)||void 0:e(i,r)}))},t.initVueI18n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0;if("string"!==typeof e){var i=[t,e];e=i[0],t=i[1]}"string"!==typeof e&&(e=A());"string"!==typeof r&&(r="undefined"!==typeof __uniConfig&&__uniConfig.fallbackLocale||"en");var o=new _({locale:e,fallbackLocale:r,messages:t,watcher:n}),a=function(e,t){if("function"!==typeof getApp)a=function(e,t){return o.t(e,t)};else{var r=!1;a=function(e,t){var n=getApp().$vm;return n&&(n.$locale,r||(r=!0,w(n,o))),o.t(e,t)}}return a(e,t)};return{i18n:o,f:function(e,t,r){return o.f(e,t,r)},t:function(e,t){return a(e,t)},add:function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return o.add(e,t,r)},watch:function(e){return o.watchLocale(e)},getLocale:function(){return o.getLocale()},setLocale:function(e){return o.setLocale(e)}}},t.isI18nStr=E,t.isString=void 0,t.normalizeLocale=m,t.parseI18nJson=function e(t,r,n){S||(S=new l);return I(t,(function(t,i){var o=t[i];x(o)?E(o,n)&&(t[i]=C(o,r,n)):e(o,r,n)})),t},t.resolveLocale=function(e){return function(t){return t?(t=m(t)||t,function(e){var t=[],r=e.split("-");while(r.length)t.push(r.join("-")),r.pop();return t}(t).find((function(t){return e.indexOf(t)>-1}))):t}};var o=i(r("34cf")),a=i(r("67ad")),s=i(r("0bdb")),u=i(r("3b2d")),c=function(e){return null!==e&&"object"===(0,u.default)(e)},f=["{","}"],l=function(){function e(){(0,a.default)(this,e),this._caches=Object.create(null)}return(0,s.default)(e,[{key:"interpolate",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f;if(!t)return[e];var n=this._caches[e];return n||(n=p(e,r),this._caches[e]=n),g(n,t)}}]),e}();t.Formatter=l;var d=/^(?:\d)+/,h=/^(?:\w)+/;function p(e,t){var r=(0,o.default)(t,2),n=r[0],i=r[1],a=[],s=0,u="";while(s<e.length){var c=e[s++];if(c===n){u&&a.push({type:"text",value:u}),u="";var f="";c=e[s++];while(void 0!==c&&c!==i)f+=c,c=e[s++];var l=c===i,p=d.test(f)?"list":l&&h.test(f)?"named":"unknown";a.push({value:f,type:p})}else u+=c}return u&&a.push({type:"text",value:u}),a}function g(e,t){var r=[],n=0,i=Array.isArray(t)?"list":c(t)?"named":"unknown";if("unknown"===i)return r;while(n<e.length){var o=e[n];switch(o.type){case"text":r.push(o.value);break;case"list":r.push(t[parseInt(o.value,10)]);break;case"named":"named"===i&&r.push(t[o.value]);break;case"unknown":0;break}n++}return r}t.LOCALE_ZH_HANS="zh-Hans";t.LOCALE_ZH_HANT="zh-Hant";t.LOCALE_EN="en";t.LOCALE_FR="fr";t.LOCALE_ES="es";var y=Object.prototype.hasOwnProperty,v=function(e,t){return y.call(e,t)},b=new l;function m(e,t){if(e){if(e=e.trim().replace(/_/g,"-"),t&&t[e])return e;if(e=e.toLowerCase(),"chinese"===e)return"zh-Hans";if(0===e.indexOf("zh"))return e.indexOf("-hans")>-1?"zh-Hans":e.indexOf("-hant")>-1||function(e,t){return!!t.find((function(t){return-1!==e.indexOf(t)}))}(e,["-tw","-hk","-mo","-cht"])?"zh-Hant":"zh-Hans";var r=["en","fr","es"];t&&Object.keys(t).length>0&&(r=Object.keys(t));var n=function(e,t){return t.find((function(t){return 0===e.indexOf(t)}))}(e,r);return n||void 0}}var _=function(){function e(t){var r=t.locale,n=t.fallbackLocale,i=t.messages,o=t.watcher,s=t.formater;(0,a.default)(this,e),this.locale="en",this.fallbackLocale="en",this.message={},this.messages={},this.watchers=[],n&&(this.fallbackLocale=n),this.formater=s||b,this.messages=i||{},this.setLocale(r||"en"),o&&this.watchLocale(o)}return(0,s.default)(e,[{key:"setLocale",value:function(e){var t=this,r=this.locale;this.locale=m(e,this.messages)||this.fallbackLocale,this.messages[this.locale]||(this.messages[this.locale]={}),this.message=this.messages[this.locale],r!==this.locale&&this.watchers.forEach((function(e){e(t.locale,r)}))}},{key:"getLocale",value:function(){return this.locale}},{key:"watchLocale",value:function(e){var t=this,r=this.watchers.push(e)-1;return function(){t.watchers.splice(r,1)}}},{key:"add",value:function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=this.messages[e];n?r?Object.assign(n,t):Object.keys(t).forEach((function(e){v(n,e)||(n[e]=t[e])})):this.messages[e]=t}},{key:"f",value:function(e,t,r){return this.formater.interpolate(e,t,r).join("")}},{key:"t",value:function(e,t,r){var n=this.message;return"string"===typeof t?(t=m(t,this.messages),t&&(n=this.messages[t])):r=t,v(n,e)?this.formater.interpolate(n[e],r).join(""):(console.warn("Cannot translate the value of keypath ".concat(e,". Use the value of keypath as default.")),e)}}]),e}();function w(e,t){e.$watchLocale?e.$watchLocale((function(e){t.setLocale(e)})):e.$watch((function(){return e.$locale}),(function(e){t.setLocale(e)}))}function A(){return"undefined"!==typeof e&&e.getLocale?e.getLocale():"undefined"!==typeof n&&n.getLocale?n.getLocale():"en"}t.I18n=_;var S,x=function(e){return"string"===typeof e};function E(e,t){return e.indexOf(t[0])>-1}function C(e,t,r){return S.interpolate(e,t,r).join("")}function O(e,t,r){return I(e,(function(e,n){(function(e,t,r,n){var i=e[t];if(x(i)){if(E(i,n)&&(e[t]=C(i,r[0].values,n),r.length>1)){var o=e[t+"Locales"]={};r.forEach((function(e){o[e.locale]=C(i,e.values,n)}))}}else O(i,r,n)})(e,n,t,r)})),e}function I(e,t){if(Array.isArray(e)){for(var r=0;r<e.length;r++)if(t(e,r))return!0}else if(c(e))for(var n in e)if(t(e,n))return!0;return!1}t.isString=x}).call(this,r("df3c")["default"],r("0ee4"))},d3c2:function(e,t){function r(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=r,r.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)}},d4f8:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("d618")),o=function(){function e(e){void 0===e&&(e=""),this.value=e}return e.prototype.enableDecoding=function(e){return this.encoding=e,this},e.prototype.append=function(e){return"string"===typeof e?this.value+=e.toString():this.encoding?this.value+=i.default.castAsNonUtf8Char(e,this.encoding):this.value+=String.fromCharCode(e),this},e.prototype.appendChars=function(e,t,r){for(var n=t;t<t+r;n++)this.append(e[n]);return this},e.prototype.length=function(){return this.value.length},e.prototype.charAt=function(e){return this.value.charAt(e)},e.prototype.deleteCharAt=function(e){this.value=this.value.substr(0,e)+this.value.substring(e+1)},e.prototype.setCharAt=function(e,t){this.value=this.value.substr(0,e)+t+this.value.substr(e+1)},e.prototype.substring=function(e,t){return this.value.substring(e,t)},e.prototype.setLengthToZero=function(){this.value=""},e.prototype.toString=function(){return this.value},e.prototype.insert=function(e,t){this.value=this.value.substring(0,e)+t+this.value.substring(e)},e}(),a=o;t.default=a},d551:function(e,t,r){var n=r("3b2d")["default"],i=r("e6db");e.exports=function(e){var t=i(e,"string");return"symbol"==n(t)?t:t+""},e.exports.__esModule=!0,e.exports["default"]=e.exports},d5bc:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={appid:"__UNI__4A158B4"}},d618:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("3b2d")),o=n(r("76a0")),a=n(r("253e")),s=n(r("a5e6")),u=function(){function e(){}return e.castAsNonUtf8Char=function(e,t){void 0===t&&(t=null);var r=t?t.getName():this.ISO88591;return s.default.decode(new Uint8Array([e]),r)},e.guessEncoding=function(t,r){if(null!==r&&void 0!==r&&void 0!==r.get(o.default.CHARACTER_SET))return r.get(o.default.CHARACTER_SET).toString();for(var n=t.length,i=!0,a=!0,s=!0,u=0,c=0,f=0,l=0,d=0,h=0,p=0,g=0,y=0,v=0,b=0,m=t.length>3&&239===t[0]&&187===t[1]&&191===t[2],_=0;_<n&&(i||a||s);_++){var w=255&t[_];s&&(u>0?0===(128&w)?s=!1:u--:0!==(128&w)&&(0===(64&w)?s=!1:(u++,0===(32&w)?c++:(u++,0===(16&w)?f++:(u++,0===(8&w)?l++:s=!1))))),i&&(w>127&&w<160?i=!1:w>159&&(w<192||215===w||247===w)&&b++),a&&(d>0?w<64||127===w||w>252?a=!1:d--:128===w||160===w||w>239?a=!1:w>160&&w<224?(h++,g=0,p++,p>y&&(y=p)):w>127?(d++,p=0,g++,g>v&&(v=g)):(p=0,g=0))}return s&&u>0&&(s=!1),a&&d>0&&(a=!1),s&&(m||c+f+l>0)?e.UTF8:a&&(e.ASSUME_SHIFT_JIS||y>=3||v>=3)?e.SHIFT_JIS:i&&a?2===y&&2===h||10*b>=n?e.SHIFT_JIS:e.ISO88591:i?e.ISO88591:a?e.SHIFT_JIS:s?e.UTF8:e.PLATFORM_DEFAULT_ENCODING},e.format=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=-1;function o(e,r,o,a,s,u){if("%%"===e)return"%";if(void 0!==t[++n]){e=a?parseInt(a.substr(1)):void 0;var c,f=s?parseInt(s.substr(1)):void 0;switch(u){case"s":c=t[n];break;case"c":c=t[n][0];break;case"f":c=parseFloat(t[n]).toFixed(e);break;case"p":c=parseFloat(t[n]).toPrecision(e);break;case"e":c=parseFloat(t[n]).toExponential(e);break;case"x":c=parseInt(t[n]).toString(f||16);break;case"d":c=parseFloat(parseInt(t[n],f||10).toPrecision(e)).toFixed(0);break}c="object"===(0,i.default)(c)?JSON.stringify(c):(+c).toString(f);var l=parseInt(o),d=o&&o[0]+""==="0"?"0":" ";while(c.length<l)c=void 0!==r?c+d:d+c;return c}}var a=/%(-)?(0?[0-9]+)?([.][0-9]+)?([#][0-9]+)?([scfpexd%])/g;return e.replace(a,o)},e.getBytes=function(e,t){return s.default.encode(e,t)},e.getCharCode=function(e,t){return void 0===t&&(t=0),e.charCodeAt(t)},e.getCharAt=function(e){return String.fromCharCode(e)},e.SHIFT_JIS=a.default.SJIS.getName(),e.GB2312="GB2312",e.ISO88591=a.default.ISO8859_1.getName(),e.EUC_JP="EUC_JP",e.UTF8=a.default.UTF8.getName(),e.PLATFORM_DEFAULT_ENCODING=e.UTF8,e.ASSUME_SHIFT_JIS=!1,e}(),c=u;t.default=c},d61e:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(){function e(t,r,n,i){this.rowNumber=e.BARCODE_ROW_UNKNOWN,this.startX=Math.trunc(t),this.endX=Math.trunc(r),this.bucket=Math.trunc(n),this.value=Math.trunc(i)}return e.prototype.hasValidRowNumber=function(){return this.isValidRowNumber(this.rowNumber)},e.prototype.isValidRowNumber=function(t){return t!==e.BARCODE_ROW_UNKNOWN&&this.bucket===t%3*3},e.prototype.setRowNumberAsRowIndicatorColumn=function(){this.rowNumber=Math.trunc(3*Math.trunc(this.value/30)+Math.trunc(this.bucket/3))},e.prototype.getWidth=function(){return this.endX-this.startX},e.prototype.getStartX=function(){return this.startX},e.prototype.getEndX=function(){return this.endX},e.prototype.getBucket=function(){return this.bucket},e.prototype.getValue=function(){return this.value},e.prototype.getRowNumber=function(){return this.rowNumber},e.prototype.setRowNumber=function(e){this.rowNumber=e},e.prototype.toString=function(){return this.rowNumber+"|"+this.value},e.BARCODE_ROW_UNKNOWN=-1,e}(),i=n;t.default=i},d652:function(e,t,r){"use strict";var n=r("d3c2"),i=r("2c2e");function o(e,t){return 55296===(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320===(64512&e.charCodeAt(t+1)))}function a(e){var t=e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24;return t>>>0}function s(e){return 1===e.length?"0"+e:e}function u(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"===typeof e)if(t){if("hex"===t)for(e=e.replace(/[^a-z0-9]+/gi,""),e.length%2!==0&&(e="0"+e),i=0;i<e.length;i+=2)r.push(parseInt(e[i]+e[i+1],16))}else for(var n=0,i=0;i<e.length;i++){var a=e.charCodeAt(i);a<128?r[n++]=a:a<2048?(r[n++]=a>>6|192,r[n++]=63&a|128):o(e,i)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++i)),r[n++]=a>>18|240,r[n++]=a>>12&63|128,r[n++]=a>>6&63|128,r[n++]=63&a|128):(r[n++]=a>>12|224,r[n++]=a>>6&63|128,r[n++]=63&a|128)}else for(i=0;i<e.length;i++)r[i]=0|e[i];return r},t.toHex=function(e){for(var t="",r=0;r<e.length;r++)t+=s(e[r].toString(16));return t},t.htonl=a,t.toHex32=function(e,t){for(var r="",n=0;n<e.length;n++){var i=e[n];"little"===t&&(i=a(i)),r+=u(i.toString(16))}return r},t.zero2=s,t.zero8=u,t.join32=function(e,t,r,i){var o=r-t;n(o%4===0);for(var a=new Array(o/4),s=0,u=t;s<a.length;s++,u+=4){var c;c="big"===i?e[u]<<24|e[u+1]<<16|e[u+2]<<8|e[u+3]:e[u+3]<<24|e[u+2]<<16|e[u+1]<<8|e[u],a[s]=c>>>0}return a},t.split32=function(e,t){for(var r=new Array(4*e.length),n=0,i=0;n<e.length;n++,i+=4){var o=e[n];"big"===t?(r[i]=o>>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,r){return e+t+r>>>0},t.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},t.sum32_5=function(e,t,r,n,i){return e+t+r+n+i>>>0},t.sum64=function(e,t,r,n){var i=e[t],o=e[t+1],a=n+o>>>0,s=(a<n?1:0)+r+i;e[t]=s>>>0,e[t+1]=a},t.sum64_hi=function(e,t,r,n){var i=t+n>>>0,o=(i<t?1:0)+e+r;return o>>>0},t.sum64_lo=function(e,t,r,n){var i=t+n;return i>>>0},t.sum64_4_hi=function(e,t,r,n,i,o,a,s){var u=0,c=t;c=c+n>>>0,u+=c<t?1:0,c=c+o>>>0,u+=c<o?1:0,c=c+s>>>0,u+=c<s?1:0;var f=e+r+i+a+u;return f>>>0},t.sum64_4_lo=function(e,t,r,n,i,o,a,s){var u=t+n+o+s;return u>>>0},t.sum64_5_hi=function(e,t,r,n,i,o,a,s,u,c){var f=0,l=t;l=l+n>>>0,f+=l<t?1:0,l=l+o>>>0,f+=l<o?1:0,l=l+s>>>0,f+=l<s?1:0,l=l+c>>>0,f+=l<c?1:0;var d=e+r+i+a+u+f;return d>>>0},t.sum64_5_lo=function(e,t,r,n,i,o,a,s,u,c){var f=t+n+o+s+c;return f>>>0},t.rotr64_hi=function(e,t,r){var n=t<<32-r|e>>>r;return n>>>0},t.rotr64_lo=function(e,t,r){var n=e<<32-r|t>>>r;return n>>>0},t.shr64_hi=function(e,t,r){return e>>>r},t.shr64_lo=function(e,t,r){var n=e<<32-r|t>>>r;return n>>>0}},d757:function(e,t,r){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,function(e){e[e["ERROR_CORRECTION"]=0]="ERROR_CORRECTION",e[e["CHARACTER_SET"]=1]="CHARACTER_SET",e[e["DATA_MATRIX_SHAPE"]=2]="DATA_MATRIX_SHAPE",e[e["DATA_MATRIX_COMPACT"]=3]="DATA_MATRIX_COMPACT",e[e["MIN_SIZE"]=4]="MIN_SIZE",e[e["MAX_SIZE"]=5]="MAX_SIZE",e[e["MARGIN"]=6]="MARGIN",e[e["PDF417_COMPACT"]=7]="PDF417_COMPACT",e[e["PDF417_COMPACTION"]=8]="PDF417_COMPACTION",e[e["PDF417_DIMENSIONS"]=9]="PDF417_DIMENSIONS",e[e["AZTEC_LAYERS"]=10]="AZTEC_LAYERS",e[e["QR_VERSION"]=11]="QR_VERSION",e[e["GS1_FORMAT"]=12]="GS1_FORMAT",e[e["FORCE_C40"]=13]="FORCE_C40"}(n||(n={}));var i=n;t.default=i},d7a3:function(e,t,r){"use strict";const n=r("2c2e");function i(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function o(e,t){this.path=e,this.rethrow(t)}t.Reporter=i,i.prototype.isError=function(e){return e instanceof o},i.prototype.save=function(){const e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},i.prototype.restore=function(e){const t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},i.prototype.enterKey=function(e){return this._reporterState.path.push(e)},i.prototype.exitKey=function(e){const t=this._reporterState;t.path=t.path.slice(0,e-1)},i.prototype.leaveKey=function(e,t,r){const n=this._reporterState;this.exitKey(e),null!==n.obj&&(n.obj[t]=r)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){const e=this._reporterState,t=e.obj;return e.obj={},t},i.prototype.leaveObject=function(e){const t=this._reporterState,r=t.obj;return t.obj=e,r},i.prototype.error=function(e){let t;const r=this._reporterState,n=e instanceof o;if(t=n?e:new o(r.path.map((function(e){return"["+JSON.stringify(e)+"]"})).join(""),e.message||e,e.stack),!r.options.partial)throw t;return n||r.errors.push(t),t},i.prototype.wrapResult=function(e){const t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},n(o,Error),o.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,o),!this.stack)try{throw new Error(this.message)}catch(t){this.stack=t.stack}return this}},d7d6:function(e,t,r){"use strict";var n=r("2831");t.certificate=r("9500");var i=n.define("RSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())}));t.RSAPrivateKey=i;var o=n.define("RSAPublicKey",(function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}));t.RSAPublicKey=o;var a=n.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())}));t.PublicKey=a;var s=n.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())})),u=n.define("PrivateKeyInfo",(function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(s),this.key("subjectPrivateKey").octstr())}));t.PrivateKey=u;var c=n.define("EncryptedPrivateKeyInfo",(function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())}));t.EncryptedPrivateKey=c;var f=n.define("DSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())}));t.DSAPrivateKey=f,t.DSAparam=n.define("DSAparam",(function(){this.int()}));var l=n.define("ECPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(d),this.key("publicKey").optional().explicit(1).bitstr())}));t.ECPrivateKey=l;var d=n.define("ECParameters",(function(){this.choice({namedCurve:this.objid()})}));t.signature=n.define("signature",(function(){this.seq().obj(this.key("r").int(),this.key("s").int())}))},d889:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("bab0")),o=n(r("d4f8")),a=n(r("f228")),s=n(r("b717")),u=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),c=function(e){var t="function"===typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},f=function(e){function t(){var t=e.call(this)||this;return t.decodeMiddleCounters=new Int32Array(4),t}return u(t,e),t.prototype.decodeMiddle=function(e,r,n){var i,a,s=this.decodeMiddleCounters.map((function(e){return e}));s[0]=0,s[1]=0,s[2]=0,s[3]=0;for(var u=e.getSize(),f=r[1],l=0,d=0;d<6&&f<u;d++){var h=t.decodeDigit(e,s,f,t.L_AND_G_PATTERNS);n+=String.fromCharCode("0".charCodeAt(0)+h%10);try{for(var p=(i=void 0,c(s)),g=p.next();!g.done;g=p.next()){var y=g.value;f+=y}}catch(v){i={error:v}}finally{try{g&&!g.done&&(a=p.return)&&a.call(p)}finally{if(i)throw i.error}}h>=10&&(l|=1<<5-d)}return t.determineNumSysAndCheckDigit(new o.default(n),l),f},t.prototype.decodeEnd=function(e,r){return t.findGuardPatternWithoutCounters(e,r,!0,t.MIDDLE_END_PATTERN)},t.prototype.checkChecksum=function(e){return i.default.checkChecksum(t.convertUPCEtoUPCA(e))},t.determineNumSysAndCheckDigit=function(e,t){for(var r=0;r<=1;r++)for(var n=0;n<10;n++)if(t===this.NUMSYS_AND_CHECK_DIGIT_PATTERNS[r][n])return e.insert(0,"0"+r),void e.append("0"+n);throw a.default.getNotFoundInstance()},t.prototype.getBarcodeFormat=function(){return s.default.UPC_E},t.convertUPCEtoUPCA=function(e){var t=e.slice(1,7).split("").map((function(e){return e.charCodeAt(0)})),r=new o.default;r.append(e.charAt(0));var n=t[5];switch(n){case 0:case 1:case 2:r.appendChars(t,0,2),r.append(n),r.append("0000"),r.appendChars(t,2,3);break;case 3:r.appendChars(t,0,3),r.append("00000"),r.appendChars(t,3,2);break;case 4:r.appendChars(t,0,4),r.append("00000"),r.append(t[4]);break;default:r.appendChars(t,0,5),r.append("0000"),r.append(n);break}return e.length>=8&&r.append(e.charAt(7)),r.toString()},t.MIDDLE_END_PATTERN=Int32Array.from([1,1,1,1,1,1]),t.NUMSYS_AND_CHECK_DIGIT_PATTERNS=[Int32Array.from([56,52,50,49,44,38,35,42,41,37]),Int32Array.from([7,11,13,14,19,25,28,21,22,1])],t}(i.default),l=f;t.default=l},d896:function(e,t){var r=Math.pow(2,30)-1;e.exports=function(e,t){if("number"!==typeof e)throw new TypeError("Iterations not a number");if(e<0)throw new TypeError("Bad iterations");if("number"!==typeof t)throw new TypeError("Key length not a number");if(t<0||t>r||t!==t)throw new TypeError("Bad key length")}},d90e:function(e,t,r){"use strict";var n=r("47a9"),i=r("3b2d");Object.defineProperty(t,"__esModule",{value:!0});var o={ArgumentException:!0,ArithmeticException:!0,ChecksumException:!0,Exception:!0,FormatException:!0,IllegalArgumentException:!0,IllegalStateException:!0,NotFoundException:!0,ReaderException:!0,ReedSolomonException:!0,UnsupportedOperationException:!0,WriterException:!0,BarcodeFormat:!0,Binarizer:!0,BinaryBitmap:!0,DecodeHintType:!0,InvertedLuminanceSource:!0,LuminanceSource:!0,MultiFormatReader:!0,MultiFormatWriter:!0,PlanarYUVLuminanceSource:!0,Result:!0,ResultMetadataType:!0,RGBLuminanceSource:!0,ResultPoint:!0,ZXingSystem:!0,ZXingStringBuilder:!0,ZXingStringEncoding:!0,ZXingCharset:!0,ZXingArrays:!0,ZXingStandardCharsets:!0,ZXingInteger:!0,BitArray:!0,BitMatrix:!0,BitSource:!0,CharacterSetECI:!0,DecoderResult:!0,DefaultGridSampler:!0,DetectorResult:!0,EncodeHintType:!0,GlobalHistogramBinarizer:!0,GridSampler:!0,GridSamplerInstance:!0,HybridBinarizer:!0,PerspectiveTransform:!0,StringUtils:!0,MathUtils:!0,WhiteRectangleDetector:!0,GenericGF:!0,GenericGFPoly:!0,ReedSolomonDecoder:!0,ReedSolomonEncoder:!0,DataMatrixReader:!0,DataMatrixDecodedBitStreamParser:!0,DataMatrixDefaultPlacement:!0,DataMatrixErrorCorrection:!0,DataMatrixHighLevelEncoder:!0,DataMatrixSymbolInfo:!0,DataMatrixSymbolShapeHint:!0,DataMatrixWriter:!0,PDF417Reader:!0,PDF417ResultMetadata:!0,PDF417DecodedBitStreamParser:!0,PDF417DecoderErrorCorrection:!0,QRCodeReader:!0,QRCodeWriter:!0,QRCodeDecoderErrorCorrectionLevel:!0,QRCodeDecoderFormatInformation:!0,QRCodeVersion:!0,QRCodeMode:!0,QRCodeDecodedBitStreamParser:!0,QRCodeDataMask:!0,QRCodeEncoder:!0,QRCodeEncoderQRCode:!0,QRCodeMatrixUtil:!0,QRCodeByteMatrix:!0,QRCodeMaskUtil:!0,AztecCodeReader:!0,AztecCodeWriter:!0,AztecDetectorResult:!0,AztecEncoder:!0,AztecHighLevelEncoder:!0,AztecCode:!0,AztecDecoder:!0,AztecDetector:!0,AztecPoint:!0,OneDReader:!0,EAN13Reader:!0,Code128Reader:!0,ITFReader:!0,Code39Reader:!0,Code93Reader:!0,RSS14Reader:!0,RSSExpandedReader:!0,AbstractExpandedDecoder:!0,createAbstractExpandedDecoder:!0,MultiFormatOneDReader:!0,CodaBarReader:!0};Object.defineProperty(t,"AbstractExpandedDecoder",{enumerable:!0,get:function(){return Ge.default}}),Object.defineProperty(t,"ArgumentException",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"ArithmeticException",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"AztecCode",{enumerable:!0,get:function(){return Ne.default}}),Object.defineProperty(t,"AztecCodeReader",{enumerable:!0,get:function(){return Pe.default}}),Object.defineProperty(t,"AztecCodeWriter",{enumerable:!0,get:function(){return Me.default}}),Object.defineProperty(t,"AztecDecoder",{enumerable:!0,get:function(){return Be.default}}),Object.defineProperty(t,"AztecDetector",{enumerable:!0,get:function(){return Le.default}}),Object.defineProperty(t,"AztecDetectorResult",{enumerable:!0,get:function(){return ke.default}}),Object.defineProperty(t,"AztecEncoder",{enumerable:!0,get:function(){return Re.default}}),Object.defineProperty(t,"AztecHighLevelEncoder",{enumerable:!0,get:function(){return De.default}}),Object.defineProperty(t,"AztecPoint",{enumerable:!0,get:function(){return Le.Point}}),Object.defineProperty(t,"BarcodeFormat",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(t,"Binarizer",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(t,"BinaryBitmap",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(t,"BitArray",{enumerable:!0,get:function(){return F.default}}),Object.defineProperty(t,"BitMatrix",{enumerable:!0,get:function(){return U.default}}),Object.defineProperty(t,"BitSource",{enumerable:!0,get:function(){return z.default}}),Object.defineProperty(t,"CharacterSetECI",{enumerable:!0,get:function(){return H.default}}),Object.defineProperty(t,"ChecksumException",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"CodaBarReader",{enumerable:!0,get:function(){return $e.default}}),Object.defineProperty(t,"Code128Reader",{enumerable:!0,get:function(){return Ue.default}}),Object.defineProperty(t,"Code39Reader",{enumerable:!0,get:function(){return He.default}}),Object.defineProperty(t,"Code93Reader",{enumerable:!0,get:function(){return qe.default}}),Object.defineProperty(t,"DataMatrixDecodedBitStreamParser",{enumerable:!0,get:function(){return ae.default}}),Object.defineProperty(t,"DataMatrixDefaultPlacement",{enumerable:!0,get:function(){return se.default}}),Object.defineProperty(t,"DataMatrixErrorCorrection",{enumerable:!0,get:function(){return ue.default}}),Object.defineProperty(t,"DataMatrixHighLevelEncoder",{enumerable:!0,get:function(){return ce.default}}),Object.defineProperty(t,"DataMatrixReader",{enumerable:!0,get:function(){return oe.default}}),Object.defineProperty(t,"DataMatrixSymbolInfo",{enumerable:!0,get:function(){return fe.default}}),Object.defineProperty(t,"DataMatrixSymbolShapeHint",{enumerable:!0,get:function(){return le.SymbolShapeHint}}),Object.defineProperty(t,"DataMatrixWriter",{enumerable:!0,get:function(){return de.default}}),Object.defineProperty(t,"DecodeHintType",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(t,"DecoderResult",{enumerable:!0,get:function(){return q.default}}),Object.defineProperty(t,"DefaultGridSampler",{enumerable:!0,get:function(){return V.default}}),Object.defineProperty(t,"DetectorResult",{enumerable:!0,get:function(){return W.default}}),Object.defineProperty(t,"EAN13Reader",{enumerable:!0,get:function(){return Fe.default}}),Object.defineProperty(t,"EncodeHintType",{enumerable:!0,get:function(){return G.default}}),Object.defineProperty(t,"Exception",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"FormatException",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"GenericGF",{enumerable:!0,get:function(){return te.default}}),Object.defineProperty(t,"GenericGFPoly",{enumerable:!0,get:function(){return re.default}}),Object.defineProperty(t,"GlobalHistogramBinarizer",{enumerable:!0,get:function(){return X.default}}),Object.defineProperty(t,"GridSampler",{enumerable:!0,get:function(){return K.default}}),Object.defineProperty(t,"GridSamplerInstance",{enumerable:!0,get:function(){return $.default}}),Object.defineProperty(t,"HybridBinarizer",{enumerable:!0,get:function(){return Y.default}}),Object.defineProperty(t,"ITFReader",{enumerable:!0,get:function(){return ze.default}}),Object.defineProperty(t,"IllegalArgumentException",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"IllegalStateException",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(t,"InvertedLuminanceSource",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(t,"LuminanceSource",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(t,"MathUtils",{enumerable:!0,get:function(){return Q.default}}),Object.defineProperty(t,"MultiFormatOneDReader",{enumerable:!0,get:function(){return Ke.default}}),Object.defineProperty(t,"MultiFormatReader",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(t,"MultiFormatWriter",{enumerable:!0,get:function(){return C.default}}),Object.defineProperty(t,"NotFoundException",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"OneDReader",{enumerable:!0,get:function(){return je.default}}),Object.defineProperty(t,"PDF417DecodedBitStreamParser",{enumerable:!0,get:function(){return ge.default}}),Object.defineProperty(t,"PDF417DecoderErrorCorrection",{enumerable:!0,get:function(){return ye.default}}),Object.defineProperty(t,"PDF417Reader",{enumerable:!0,get:function(){return he.default}}),Object.defineProperty(t,"PDF417ResultMetadata",{enumerable:!0,get:function(){return pe.default}}),Object.defineProperty(t,"PerspectiveTransform",{enumerable:!0,get:function(){return Z.default}}),Object.defineProperty(t,"PlanarYUVLuminanceSource",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(t,"QRCodeByteMatrix",{enumerable:!0,get:function(){return Ie.default}}),Object.defineProperty(t,"QRCodeDataMask",{enumerable:!0,get:function(){return xe.default}}),Object.defineProperty(t,"QRCodeDecodedBitStreamParser",{enumerable:!0,get:function(){return Se.default}}),Object.defineProperty(t,"QRCodeDecoderErrorCorrectionLevel",{enumerable:!0,get:function(){return me.default}}),Object.defineProperty(t,"QRCodeDecoderFormatInformation",{enumerable:!0,get:function(){return _e.default}}),Object.defineProperty(t,"QRCodeEncoder",{enumerable:!0,get:function(){return Ee.default}}),Object.defineProperty(t,"QRCodeEncoderQRCode",{enumerable:!0,get:function(){return Ce.default}}),Object.defineProperty(t,"QRCodeMaskUtil",{enumerable:!0,get:function(){return Te.default}}),Object.defineProperty(t,"QRCodeMatrixUtil",{enumerable:!0,get:function(){return Oe.default}}),Object.defineProperty(t,"QRCodeMode",{enumerable:!0,get:function(){return Ae.default}}),Object.defineProperty(t,"QRCodeReader",{enumerable:!0,get:function(){return ve.default}}),Object.defineProperty(t,"QRCodeVersion",{enumerable:!0,get:function(){return we.default}}),Object.defineProperty(t,"QRCodeWriter",{enumerable:!0,get:function(){return be.default}}),Object.defineProperty(t,"RGBLuminanceSource",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(t,"RSS14Reader",{enumerable:!0,get:function(){return Ve.default}}),Object.defineProperty(t,"RSSExpandedReader",{enumerable:!0,get:function(){return We.default}}),Object.defineProperty(t,"ReaderException",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(t,"ReedSolomonDecoder",{enumerable:!0,get:function(){return ne.default}}),Object.defineProperty(t,"ReedSolomonEncoder",{enumerable:!0,get:function(){return ie.default}}),Object.defineProperty(t,"ReedSolomonException",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(t,"Result",{enumerable:!0,get:function(){return I.default}}),Object.defineProperty(t,"ResultMetadataType",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(t,"ResultPoint",{enumerable:!0,get:function(){return M.default}}),Object.defineProperty(t,"StringUtils",{enumerable:!0,get:function(){return J.default}}),Object.defineProperty(t,"UnsupportedOperationException",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(t,"WhiteRectangleDetector",{enumerable:!0,get:function(){return ee.default}}),Object.defineProperty(t,"WriterException",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(t,"ZXingArrays",{enumerable:!0,get:function(){return B.default}}),Object.defineProperty(t,"ZXingCharset",{enumerable:!0,get:function(){return N.default}}),Object.defineProperty(t,"ZXingInteger",{enumerable:!0,get:function(){return j.default}}),Object.defineProperty(t,"ZXingStandardCharsets",{enumerable:!0,get:function(){return L.default}}),Object.defineProperty(t,"ZXingStringBuilder",{enumerable:!0,get:function(){return R.default}}),Object.defineProperty(t,"ZXingStringEncoding",{enumerable:!0,get:function(){return D.default}}),Object.defineProperty(t,"ZXingSystem",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(t,"createAbstractExpandedDecoder",{enumerable:!0,get:function(){return Xe.createDecoder}});var a=r("7599");Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(o,e)||e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))}));var s=n(r("3fa8")),u=n(r("dc67")),c=n(r("f74e")),f=n(r("7322")),l=n(r("343e")),d=n(r("f7fd")),h=n(r("9e56")),p=n(r("f228")),g=n(r("843b")),y=n(r("db8e")),v=n(r("4e64")),b=n(r("6468")),m=n(r("b717")),_=n(r("333e")),w=n(r("7a09")),A=n(r("76a0")),S=n(r("a6ba")),x=n(r("3727")),E=n(r("b6de")),C=n(r("695a")),O=n(r("3a9e")),I=n(r("0c24")),T=n(r("37ed")),P=n(r("13be")),M=n(r("a8be")),k=n(r("1ff8")),R=n(r("d4f8")),D=n(r("a5e6")),N=n(r("a8ae")),B=n(r("36d3")),L=n(r("87e7")),j=n(r("e5d0")),F=n(r("9c16")),U=n(r("7e0b")),z=n(r("c41c")),H=n(r("253e")),q=n(r("107a")),V=n(r("692c")),W=n(r("7e9b")),G=n(r("d757")),X=n(r("c789")),K=n(r("a9e1")),$=n(r("d9cd")),Y=n(r("9fc4")),Z=n(r("2efa")),J=n(r("d618")),Q=n(r("c769")),ee=n(r("dfe7")),te=n(r("f5e6")),re=n(r("0497")),ne=n(r("ade5")),ie=n(r("84e1")),oe=n(r("5847")),ae=n(r("0109")),se=n(r("061d")),ue=n(r("88aa")),ce=n(r("3fac")),fe=n(r("44d8")),le=r("eab1"),de=n(r("62e9")),he=n(r("c3c6")),pe=n(r("d36d")),ge=n(r("02e6")),ye=n(r("dc3a")),ve=n(r("08c4")),be=n(r("a438")),me=n(r("08c5")),_e=n(r("3b65")),we=n(r("e01c")),Ae=n(r("842e")),Se=n(r("60c5")),xe=n(r("56c5")),Ee=n(r("6387")),Ce=n(r("a2dd")),Oe=n(r("ad71")),Ie=n(r("76f5")),Te=n(r("647e")),Pe=n(r("50f3")),Me=n(r("fa9c")),ke=n(r("836d")),Re=n(r("5c2a")),De=n(r("a27b")),Ne=n(r("dda8")),Be=n(r("c9e4")),Le=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!==typeof e)return{default:e};var r=Ye(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=o?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(n,a,s):n[a]=e[a]}n.default=e,r&&r.set(e,n);return n}(r("3b7d")),je=n(r("4d7d")),Fe=n(r("3655")),Ue=n(r("36aa")),ze=n(r("6806")),He=n(r("b1cb")),qe=n(r("e0a5")),Ve=n(r("8456")),We=n(r("a9a0")),Ge=n(r("8d76")),Xe=r("7004"),Ke=n(r("51ff")),$e=n(r("6d31"));function Ye(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(Ye=function(e){return e?r:t})(e)}},d9cd:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("692c")),o=function(){function e(){}return e.setGridSampler=function(t){e.gridSampler=t},e.getInstance=function(){return e.gridSampler},e.gridSampler=new i.default,e}(),a=o;t.default=a},db51:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("f228")),o=n(r("a8be")),a=function(){function e(t,r,n,i,o){t instanceof e?this.constructor_2(t):this.constructor_1(t,r,n,i,o)}return e.prototype.constructor_1=function(e,t,r,n,a){var s=null==t||null==r,u=null==n||null==a;if(s&&u)throw new i.default;s?(t=new o.default(0,n.getY()),r=new o.default(0,a.getY())):u&&(n=new o.default(e.getWidth()-1,t.getY()),a=new o.default(e.getWidth()-1,r.getY())),this.image=e,this.topLeft=t,this.bottomLeft=r,this.topRight=n,this.bottomRight=a,this.minX=Math.trunc(Math.min(t.getX(),r.getX())),this.maxX=Math.trunc(Math.max(n.getX(),a.getX())),this.minY=Math.trunc(Math.min(t.getY(),n.getY())),this.maxY=Math.trunc(Math.max(r.getY(),a.getY()))},e.prototype.constructor_2=function(e){this.image=e.image,this.topLeft=e.getTopLeft(),this.bottomLeft=e.getBottomLeft(),this.topRight=e.getTopRight(),this.bottomRight=e.getBottomRight(),this.minX=e.getMinX(),this.maxX=e.getMaxX(),this.minY=e.getMinY(),this.maxY=e.getMaxY()},e.merge=function(t,r){return null==t?r:null==r?t:new e(t.image,t.topLeft,t.bottomLeft,r.topRight,r.bottomRight)},e.prototype.addMissingRows=function(t,r,n){var i=this.topLeft,a=this.bottomLeft,s=this.topRight,u=this.bottomRight;if(t>0){var c=n?this.topLeft:this.topRight,f=Math.trunc(c.getY()-t);f<0&&(f=0);var l=new o.default(c.getX(),f);n?i=l:s=l}if(r>0){var d=n?this.bottomLeft:this.bottomRight,h=Math.trunc(d.getY()+r);h>=this.image.getHeight()&&(h=this.image.getHeight()-1);var p=new o.default(d.getX(),h);n?a=p:u=p}return new e(this.image,i,a,s,u)},e.prototype.getMinX=function(){return this.minX},e.prototype.getMaxX=function(){return this.maxX},e.prototype.getMinY=function(){return this.minY},e.prototype.getMaxY=function(){return this.maxY},e.prototype.getTopLeft=function(){return this.topLeft},e.prototype.getTopRight=function(){return this.topRight},e.prototype.getBottomLeft=function(){return this.bottomLeft},e.prototype.getBottomRight=function(){return this.bottomRight},e}(),s=a;t.default=s},db86:function(e,t,r){"use strict";var n=r("4e45"),i=r("81eb"),o=r("2c2e"),a=r("07a0"),s=n.assert;function u(e){this.twisted=1!==(0|e.a),this.mOneA=this.twisted&&-1===(0|e.a),this.extended=this.mOneA,a.call(this,"edwards",e),this.a=new i(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new i(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new i(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),s(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1===(0|e.c)}function c(e,t,r,n,o){a.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new i(t,16),this.y=new i(r,16),this.z=n?new i(n,16):this.curve.one,this.t=o&&new i(o,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}o(u,a),e.exports=u,u.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},u.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},u.prototype.jpoint=function(e,t,r,n){return this.point(e,t,r,n)},u.prototype.pointFromX=function(e,t){e=new i(e,16),e.red||(e=e.toRed(this.red));var r=e.redSqr(),n=this.c2.redSub(this.a.redMul(r)),o=this.one.redSub(this.c2.redMul(this.d).redMul(r)),a=n.redMul(o.redInvm()),s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var u=s.fromRed().isOdd();return(t&&!u||!t&&u)&&(s=s.redNeg()),this.point(e,s)},u.prototype.pointFromY=function(e,t){e=new i(e,16),e.red||(e=e.toRed(this.red));var r=e.redSqr(),n=r.redSub(this.c2),o=r.redMul(this.d).redMul(this.c2).redSub(this.a),a=n.redMul(o.redInvm());if(0===a.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");return s.fromRed().isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},u.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),n=t.redMul(this.a).redAdd(r),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===n.cmp(i)},o(c,a.BasePoint),u.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},u.prototype.point=function(e,t,r,n){return new c(this,e,t,r,n)},c.fromJSON=function(e,t){return new c(e,t[0],t[1],t[2])},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},c.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=n.redAdd(t),a=o.redSub(r),s=n.redSub(t),u=i.redMul(a),c=o.redMul(s),f=i.redMul(s),l=a.redMul(o);return this.curve.point(u,c,l,f)},c.prototype._projDbl=function(){var e,t,r,n,i,o,a=this.x.redAdd(this.y).redSqr(),s=this.x.redSqr(),u=this.y.redSqr();if(this.curve.twisted){n=this.curve._mulA(s);var c=n.redAdd(u);this.zOne?(e=a.redSub(s).redSub(u).redMul(c.redSub(this.curve.two)),t=c.redMul(n.redSub(u)),r=c.redSqr().redSub(c).redSub(c)):(i=this.z.redSqr(),o=c.redSub(i).redISub(i),e=a.redSub(s).redISub(u).redMul(o),t=c.redMul(n.redSub(u)),r=c.redMul(o))}else n=s.redAdd(u),i=this.curve._mulC(this.z).redSqr(),o=n.redSub(i).redSub(i),e=this.curve._mulC(a.redISub(n)).redMul(o),t=this.curve._mulC(n).redMul(s.redISub(u)),r=n.redMul(o);return this.curve.point(e,t,r)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),n=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),o=r.redSub(t),a=i.redSub(n),s=i.redAdd(n),u=r.redAdd(t),c=o.redMul(a),f=s.redMul(u),l=o.redMul(u),d=a.redMul(s);return this.curve.point(c,f,d,l)},c.prototype._projAdd=function(e){var t,r,n=this.z.redMul(e.z),i=n.redSqr(),o=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(o).redMul(a),u=i.redSub(s),c=i.redAdd(s),f=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(a),l=n.redMul(u).redMul(f);return this.curve.twisted?(t=n.redMul(c).redMul(a.redSub(this.curve._mulA(o))),r=u.redMul(c)):(t=n.redMul(c).redMul(a.redSub(o)),r=this.curve._mulC(u).redMul(c)),this.curve.point(l,t,r)},c.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},c.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},c.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},c.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},c.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(n),0===this.x.cmp(t))return!0}},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},db8e:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("7322")),o=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.kind="ReedSolomonException",t}(i.default),s=a;t.default=s},dc3a:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("f74e")),o=n(r("1ee0")),a=n(r("6b90")),s=function(e){var t="function"===typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},u=function(){function e(){this.field=a.default.PDF417_GF}return e.prototype.decode=function(e,t,r){for(var n,a,u=new o.default(this.field,e),c=new Int32Array(t),f=!1,l=t;l>0;l--){var d=u.evaluateAt(this.field.exp(l));c[t-l]=d,0!==d&&(f=!0)}if(!f)return 0;var h=this.field.getOne();if(null!=r)try{for(var p=s(r),g=p.next();!g.done;g=p.next()){var y=g.value,v=this.field.exp(e.length-1-y),b=new o.default(this.field,new Int32Array([this.field.subtract(0,v),1]));h=h.multiply(b)}}catch(C){n={error:C}}finally{try{g&&!g.done&&(a=p.return)&&a.call(p)}finally{if(n)throw n.error}}var m=new o.default(this.field,c),_=this.runEuclideanAlgorithm(this.field.buildMonomial(t,1),m,t),w=_[0],A=_[1],S=this.findErrorLocations(w),x=this.findErrorMagnitudes(A,w,S);for(l=0;l<S.length;l++){var E=e.length-1-this.field.log(S[l]);if(E<0)throw i.default.getChecksumInstance();e[E]=this.field.subtract(e[E],x[l])}return S.length},e.prototype.runEuclideanAlgorithm=function(e,t,r){if(e.getDegree()<t.getDegree()){var n=e;e=t,t=n}var o=e,a=t,s=this.field.getZero(),u=this.field.getOne();while(a.getDegree()>=Math.round(r/2)){var c=o,f=s;if(o=a,s=u,o.isZero())throw i.default.getChecksumInstance();a=c;var l=this.field.getZero(),d=o.getCoefficient(o.getDegree()),h=this.field.inverse(d);while(a.getDegree()>=o.getDegree()&&!a.isZero()){var p=a.getDegree()-o.getDegree(),g=this.field.multiply(a.getCoefficient(a.getDegree()),h);l=l.add(this.field.buildMonomial(p,g)),a=a.subtract(o.multiplyByMonomial(p,g))}u=l.multiply(s).subtract(f).negative()}var y=u.getCoefficient(0);if(0===y)throw i.default.getChecksumInstance();var v=this.field.inverse(y),b=u.multiply(v),m=a.multiply(v);return[b,m]},e.prototype.findErrorLocations=function(e){for(var t=e.getDegree(),r=new Int32Array(t),n=0,o=1;o<this.field.getSize()&&n<t;o++)0===e.evaluateAt(o)&&(r[n]=this.field.inverse(o),n++);if(n!==t)throw i.default.getChecksumInstance();return r},e.prototype.findErrorMagnitudes=function(e,t,r){for(var n=t.getDegree(),i=new Int32Array(n),a=1;a<=n;a++)i[n-a]=this.field.multiply(a,t.getCoefficient(a));var s=new o.default(this.field,i),u=r.length,c=new Int32Array(u);for(a=0;a<u;a++){var f=this.field.inverse(r[a]),l=this.field.subtract(0,e.evaluateAt(f)),d=this.field.inverse(s.evaluateAt(f));c[a]=this.field.multiply(l,d)}return c},e}(),c=u;t.default=c},dc67:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("7322")),o=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.kind="ArithmeticException",t}(i.default),s=a;t.default=s},dc84:function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},dcf6:function(e,t,r){var n=t;n.utils=r("d652"),n.common=r("6120"),n.sha=r("3424"),n.ripemd=r("08a0"),n.hmac=r("de44"),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},dd3e:function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports["default"]=e.exports},dd4b:function(e,t,r){"use strict";const n=t;n.Reporter=r("d7a3").Reporter,n.DecoderBuffer=r("8936").DecoderBuffer,n.EncoderBuffer=r("8936").EncoderBuffer,n.Node=r("bee8")},dda8:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(){function e(){}return e.prototype.isCompact=function(){return this.compact},e.prototype.setCompact=function(e){this.compact=e},e.prototype.getSize=function(){return this.size},e.prototype.setSize=function(e){this.size=e},e.prototype.getLayers=function(){return this.layers},e.prototype.setLayers=function(e){this.layers=e},e.prototype.getCodeWords=function(){return this.codeWords},e.prototype.setCodeWords=function(e){this.codeWords=e},e.prototype.getMatrix=function(){return this.matrix},e.prototype.setMatrix=function(e){this.matrix=e},e}(),i=n;t.default=i},ddfc:function(e,t,r){var n=r("ace9");e.exports=m,m.simpleSieve=v,m.fermatTest=b;var i=r("81eb"),o=new i(24),a=r("68ad"),s=new a,u=new i(1),c=new i(2),f=new i(5),l=(new i(16),new i(8),new i(10)),d=new i(3),h=(new i(7),new i(11)),p=new i(4),g=(new i(12),null);function y(){if(null!==g)return g;var e=[];e[0]=2;for(var t=1,r=3;r<1048576;r+=2){for(var n=Math.ceil(Math.sqrt(r)),i=0;i<t&&e[i]<=n;i++)if(r%e[i]===0)break;t!==i&&e[i]<=n||(e[t++]=r)}return g=e,e}function v(e){for(var t=y(),r=0;r<t.length;r++)if(0===e.modn(t[r]))return 0===e.cmpn(t[r]);return!0}function b(e){var t=i.mont(e);return 0===c.toRed(t).redPow(e.subn(1)).fromRed().cmpn(1)}function m(e,t){if(e<16)return new i(2===t||5===t?[140,123]:[140,39]);var r,a;t=new i(t);while(1){r=new i(n(Math.ceil(e/8)));while(r.bitLength()>e)r.ishrn(1);if(r.isEven()&&r.iadd(u),r.testn(1)||r.iadd(c),t.cmp(c)){if(!t.cmp(f))while(r.mod(l).cmp(d))r.iadd(p)}else while(r.mod(o).cmp(h))r.iadd(p);if(a=r.shrn(1),v(a)&&v(r)&&b(a)&&b(r)&&s.test(a)&&s.test(r))return r}}},de44:function(e,t,r){"use strict";var n=r("d652"),i=r("d3c2");function o(e,t,r){if(!(this instanceof o))return new o(e,t,r);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(n.toArray(t,r))}e.exports=o,o.prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(this.inner=(new this.Hash).update(e),t=0;t<e.length;t++)e[t]^=106;this.outer=(new this.Hash).update(e)},o.prototype.update=function(e,t){return this.inner.update(e,t),this},o.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},de54:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.parseTime=function(e,t){if(0===arguments.length||!e)return null;if(-1!==e.indexOf("T")){var r=e.split("T");e=r[0]+" "+r[1]}var n,o=t||"{y}-{m}-{d} {h}:{i}:{s}";"object"===(0,i.default)(e)?n=e:("string"===typeof e&&/^[0-9]+$/.test(e)?e=parseInt(e):"string"===typeof e&&(e=e.replace(new RegExp(/-/gm),"/")),"number"===typeof e&&10===e.toString().length&&(e*=1e3),n=new Date(e));var a={y:n.getFullYear(),m:n.getMonth()+1,d:n.getDate(),h:n.getHours(),i:n.getMinutes(),s:n.getSeconds(),a:n.getDay()},s=o.replace(/{(y|m|d|h|i|s|a)+}/g,(function(e,t){var r=a[t];return"a"===t?["日","一","二","三","四","五","六"][r]:(e.length>0&&r<10&&(r="0"+r),r||0)}));return s};var i=n(r("3b2d"))},de5a:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.timeFormat=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-mm-dd hh:MM:ss";try{e||(e=Number(new Date)),10==e.toString().length&&(e*=1e3);var r,n=new Date(e),i={"y+":n.getFullYear().toString(),"m+":(n.getMonth()+1).toString(),"d+":n.getDate().toString(),"h+":n.getHours().toString(),"M+":n.getMinutes().toString(),"s+":n.getSeconds().toString()};for(var o in i)r=new RegExp("("+o+")").exec(t),r&&(t=t.replace(r[1],1==r[1].length?i[o]:i[o].padStart(r[1].length,"0")));return t}catch(a){return console.log("timeFormat error",a),"unknown error"}},t.timeFromNow=function(e){try{var t=(new Date).getTime(),r=e-t,n=r>0?"后":"前";r=Math.abs(r);var i=Math.floor(r/1e3),o=Math.floor(i/60),a=Math.floor(o/60),s=Math.floor(a/24),u=Math.floor(s/30),c=Math.floor(s/365);return i<60?"".concat(i,"秒").concat(n):o<60?"".concat(o,"分钟").concat(n):a<24?"".concat(a,"小时").concat(n):s<30?"".concat(s,"天").concat(n):u<12?"".concat(u,"个月").concat(n):"".concat(c,"年").concat(n)}catch(f){console.log("timeFromNow error",f)}};try{String.prototype.padStart||(String.prototype.padStart=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ";if("[object String]"!==Object.prototype.toString.call(t))throw new TypeError("fillString must be String");var r=this;if(r.length>=e)return String(r);var n=e-r.length,i=Math.ceil(n/t.length);while(i>>=1)t+=t,1===i&&(t+=t);return t.slice(0,n)+r})}catch(n){console.log("timeFormat fillString error",n)}},de76:function(e,t,r){"use strict";var n=r("d652"),i=n.rotr32;function o(e,t,r){return e&t^~e&r}function a(e,t,r){return e&t^e&r^t&r}function s(e,t,r){return e^t^r}t.ft_1=function(e,t,r,n){return 0===e?o(t,r,n):1===e||3===e?s(t,r,n):2===e?a(t,r,n):void 0},t.ch32=o,t.maj32=a,t.p32=s,t.s0_256=function(e){return i(e,2)^i(e,13)^i(e,22)},t.s1_256=function(e){return i(e,6)^i(e,11)^i(e,25)},t.g0_256=function(e){return i(e,7)^i(e,18)^e>>>3},t.g1_256=function(e){return i(e,17)^i(e,19)^e>>>10}},def4:function(e,t,r){"use strict";(function(e){var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;n(r("f112"));var i=n(r("18a6")),o=n(r("b13c")),a=n(r("a22d")),s=(n(r("dff7")),n(r("4d87"))),u=n(r("5c3d")),c=n(r("4f6e")),f={options:null,install:function(t,r){try{t;var n=this;if(t&&t.config&&t.config.globalProperties?t.config.globalProperties.$logReport=i.default:t.prototype.$logReport=i.default,
- //! 初始化配置项
- a.default.setOptions(r),r=a.default.getOptions(),n.options=r,!r||!r.status)return console.log("%c devTools 调试工具未运行!","padding: 4px;background-color: red;color: #fff;font-size: 15px;");
- //! 挂载dev工具
- t&&t.config&&t.config.globalProperties?t.config.globalProperties.$devTools=f:t.prototype.$devTools=f,r.error.status&&(
- //! 挂载vue报错
- t.config.errorHandler=function(e,t,r){(0,o.default)(e,r,"ve")},
- //! 挂载vue警告
- t.config.warnHandler=function(e,t,r){(0,o.default)(e,r,"vw")}),
- //!混入生命周期监听器
- t.mixin(s.default),
- //!绘制环境变量小标签
- //!调试工具全局拦截器挂载
- (0,u.default)(r),
- //! 注册dev弹窗打开事件
- e.$on("devTools_showDialog",(function(){n.show()})),
- //! 注册dev弹窗关闭事件
- e.$on("devTools_closeDialog",(function(e){n.hide(e)})),
- //! 挂载uni对象
- e.$dev={show:function(){n.show()},hide:function(){n.hide()},errorReport:o.default,logReport:i.default},
- //! 注册jsRunner执行事件
- e.$on("devTools_jsRunner",(function(t){var r=void 0;try{var n="ev__混淆__al".replace("__混淆__","");r=globalThis[n](t)}catch(i){i&&i.message&&(r=i.message)}e.$emit("devTools_jsRunnerCallback",r)})),c.default.install()}catch(l){console.log("devTools install error",l)}},show:function(){var t=getCurrentPages();
- //! 已经打开了调试工具,不要重复显示
- if(t[t.length-1].route==this.options.devRoute)return!1;e.navigateTo({url:this.options.route,animationType:"none",animationDuration:0})},hide:function(t){if(e.navigateBack(),t&&t.navigateToUrl){200,setTimeout((function(){e.navigateTo({url:t.navigateToUrl})}),200)}},errorReport:o.default,logReport:i.default},l=f;t.default=l}).call(this,r("df3c")["default"])},df3c:function(e,t,r){"use strict";(function(e,n){var i=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.createApp=kt,t.createComponent=Ht,t.createPage=zt,t.createPlugin=Vt,t.createSubpackageApp=qt,t.default=void 0;var o,a=i(r("34cf")),s=i(r("7ca3")),u=i(r("931d")),c=i(r("af34")),f=i(r("3b2d")),l=r("d3b4"),d=i(r("3240"));function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach((function(t){(0,s.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",y=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function v(){var t,r=e.getStorageSync("uni_id_token")||"",n=r.split(".");if(!r||3!==n.length)return{uid:null,role:[],permission:[],tokenExpired:0};try{t=JSON.parse(function(e){return decodeURIComponent(o(e).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))}(n[1]))}catch(i){throw new Error("获取当前用户信息出错,详细错误信息为:"+i.message)}return t.tokenExpired=1e3*t.exp,delete t.exp,delete t.iat,t}o="function"!==typeof atob?function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!y.test(e))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var t;e+="==".slice(2-(3&e.length));for(var r,n,i="",o=0;o<e.length;)t=g.indexOf(e.charAt(o++))<<18|g.indexOf(e.charAt(o++))<<12|(r=g.indexOf(e.charAt(o++)))<<6|(n=g.indexOf(e.charAt(o++))),i+=64===r?String.fromCharCode(t>>16&255):64===n?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return i}:atob;var b=Object.prototype.toString,m=Object.prototype.hasOwnProperty;function _(e){return"function"===typeof e}function w(e){return"string"===typeof e}function A(e){return"[object Object]"===b.call(e)}function S(e,t){return m.call(e,t)}function x(){}function E(e){var t=Object.create(null);return function(r){var n=t[r];return n||(t[r]=e(r))}}var C=/-(\w)/g,O=E((function(e){return e.replace(C,(function(e,t){return t?t.toUpperCase():""}))}));function I(e){var t={};return A(e)&&Object.keys(e).sort().forEach((function(r){t[r]=e[r]})),Object.keys(t)?t:e}var T=["invoke","success","fail","complete","returnValue"],P={},M={};function k(e,t){Object.keys(t).forEach((function(r){-1!==T.indexOf(r)&&_(t[r])&&(e[r]=function(e,t){var r=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return r?function(e){for(var t=[],r=0;r<e.length;r++)-1===t.indexOf(e[r])&&t.push(e[r]);return t}(r):r}(e[r],t[r]))}))}function R(e,t){e&&t&&Object.keys(t).forEach((function(r){-1!==T.indexOf(r)&&_(t[r])&&function(e,t){var r=e.indexOf(t);-1!==r&&e.splice(r,1)}(e[r],t[r])}))}function D(e,t){return function(r){return e(r,t)||r}}function N(e){return!!e&&("object"===(0,f.default)(e)||"function"===typeof e)&&"function"===typeof e.then}function B(e,t,r){for(var n=!1,i=0;i<e.length;i++){var o=e[i];if(n)n=Promise.resolve(D(o,r));else{var a=o(t,r);if(N(a)&&(n=Promise.resolve(a)),!1===a)return{then:function(){}}}}return n||{then:function(e){return e(t)}}}function L(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return["success","fail","complete"].forEach((function(r){if(Array.isArray(e[r])){var n=t[r];t[r]=function(i){B(e[r],i,t).then((function(e){return _(n)&&n(e)||e}))}}})),t}function j(e,t){var r=[];Array.isArray(P.returnValue)&&r.push.apply(r,(0,c.default)(P.returnValue));var n=M[e];return n&&Array.isArray(n.returnValue)&&r.push.apply(r,(0,c.default)(n.returnValue)),r.forEach((function(e){t=e(t)||t})),t}function F(e){var t=Object.create(null);Object.keys(P).forEach((function(e){"returnValue"!==e&&(t[e]=P[e].slice())}));var r=M[e];return r&&Object.keys(r).forEach((function(e){"returnValue"!==e&&(t[e]=(t[e]||[]).concat(r[e]))})),t}function U(e,t,r){for(var n=arguments.length,i=new Array(n>3?n-3:0),o=3;o<n;o++)i[o-3]=arguments[o];var a=F(e);if(a&&Object.keys(a).length){if(Array.isArray(a.invoke)){var s=B(a.invoke,r);return s.then((function(r){return t.apply(void 0,[L(F(e),r)].concat(i))}))}return t.apply(void 0,[L(a,r)].concat(i))}return t.apply(void 0,[r].concat(i))}var z={returnValue:function(e){return N(e)?new Promise((function(t,r){e.then((function(e){e?e[0]?r(e[0]):t(e[1]):t(e)}))})):e}},H=/^\$|Window$|WindowStyle$|sendHostEvent|sendNativeEvent|restoreGlobal|requireGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|rpx2px|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getLocale|setLocale|invokePushCallback|getWindowInfo|getDeviceInfo|getAppBaseInfo|getSystemSetting|getAppAuthorizeSetting|initUTS|requireUTS|registerUTS/,q=/^create|Manager$/,V=["createBLEConnection"],W=["createBLEConnection","createPushMessage"],G=/^on|^off/;function X(e){return q.test(e)&&-1===V.indexOf(e)}function K(e){return H.test(e)&&-1===W.indexOf(e)}function $(e){return e.then((function(e){return[null,e]})).catch((function(e){return[e]}))}function Y(e){return!(X(e)||K(e)||function(e){return G.test(e)&&"onPush"!==e}(e))}function Z(e,t){return Y(e)&&_(t)?function(){for(var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];return _(r.success)||_(r.fail)||_(r.complete)?j(e,U.apply(void 0,[e,t,r].concat(i))):j(e,$(new Promise((function(n,o){U.apply(void 0,[e,t,Object.assign({},r,{success:n,fail:o})].concat(i))}))))}:t}Promise.prototype.finally||(Promise.prototype.finally=function(e){var t=this.constructor;return this.then((function(r){return t.resolve(e()).then((function(){return r}))}),(function(r){return t.resolve(e()).then((function(){throw r}))}))});var J=!1,Q=0,ee=0;function te(t,r){if(0===Q&&function(){var t=Object.assign({},e.getWindowInfo(),{platform:e.getDeviceInfo().platform}),r=t.windowWidth,n=t.pixelRatio,i=t.platform;Q=r,ee=n,J="ios"===i}(),t=Number(t),0===t)return 0;var n=t/750*(r||Q);return n<0&&(n=-n),n=Math.floor(n+1e-4),0===n&&(n=1!==ee&&J?.5:1),t<0?-n:n}var re,ne={};re=ae(e.getAppBaseInfo().language)||"en",function(){if(function(){return"undefined"!==typeof __uniConfig&&__uniConfig.locales&&!!Object.keys(__uniConfig.locales).length}()){var e=Object.keys(__uniConfig.locales);e.length&&e.forEach((function(e){var t=ne[e],r=__uniConfig.locales[e];t?Object.assign(t,r):ne[e]=r}))}}();var ie=(0,l.initVueI18n)(re,{}),oe=ie.t;ie.mixin={beforeCreate:function(){var e=this,t=ie.i18n.watchLocale((function(){e.$forceUpdate()}));this.$once("hook:beforeDestroy",(function(){t()}))},methods:{$$t:function(e,t){return oe(e,t)}}},ie.setLocale,ie.getLocale;function ae(e,t){if(e){if(e=e.trim().replace(/_/g,"-"),t&&t[e])return e;if(e=e.toLowerCase(),"chinese"===e)return"zh-Hans";if(0===e.indexOf("zh"))return e.indexOf("-hans")>-1?"zh-Hans":e.indexOf("-hant")>-1||function(e,t){return!!t.find((function(t){return-1!==e.indexOf(t)}))}(e,["-tw","-hk","-mo","-cht"])?"zh-Hant":"zh-Hans";var r=function(e,t){return t.find((function(t){return 0===e.indexOf(t)}))}(e,["en","fr","es"]);return r||void 0}}function se(){if(_(getApp)){var t=getApp({allowDefault:!0});if(t&&t.$vm)return t.$vm.$locale}return ae(e.getAppBaseInfo().language)||"en"}var ue=[];"undefined"!==typeof n&&(n.getLocale=se);var ce={promiseInterceptor:z},fe=Object.freeze({__proto__:null,upx2px:te,rpx2px:te,getLocale:se,setLocale:function(e){var t=!!_(getApp)&&getApp();if(!t)return!1;var r=t.$vm.$locale;return r!==e&&(t.$vm.$locale=e,ue.forEach((function(t){return t({locale:e})})),!0)},onLocaleChange:function(e){-1===ue.indexOf(e)&&ue.push(e)},addInterceptor:function(e,t){"string"===typeof e&&A(t)?k(M[e]||(M[e]={}),t):A(e)&&k(P,e)},removeInterceptor:function(e,t){"string"===typeof e?A(t)?R(M[e],t):delete M[e]:A(e)&&R(P,e)},interceptors:ce});var le,de={name:function(e){return"back"===e.exists&&e.delta?"navigateBack":"redirectTo"},args:function(e){if("back"===e.exists&&e.url){var t=function(e){var t=getCurrentPages(),r=t.length;while(r--){var n=t[r];if(n.$page&&n.$page.fullPath===e)return r}return-1}(e.url);if(-1!==t){var r=getCurrentPages().length-1-t;r>0&&(e.delta=r)}}}},he={args:function(e){var t=parseInt(e.current);if(!isNaN(t)){var r=e.urls;if(Array.isArray(r)){var n=r.length;if(n)return t<0?t=0:t>=n&&(t=n-1),t>0?(e.current=r[t],e.urls=r.filter((function(e,n){return!(n<t)||e!==r[t]}))):e.current=r[0],{indicator:!1,loop:!1}}}}};function pe(t){le=le||e.getStorageSync("__DC_STAT_UUID"),le||(le=Date.now()+""+Math.floor(1e7*Math.random()),e.setStorage({key:"__DC_STAT_UUID",data:le})),t.deviceId=le}function ge(e){if(e.safeArea){var t=e.safeArea;e.safeAreaInsets={top:t.top,left:t.left,right:e.windowWidth-t.right,bottom:e.screenHeight-t.bottom}}}function ye(e,t){for(var r=e.deviceType||"phone",n={ipad:"pad",windows:"pc",mac:"pc"},i=Object.keys(n),o=t.toLocaleLowerCase(),a=0;a<i.length;a++){var s=i[a];if(-1!==o.indexOf(s)){r=n[s];break}}return r}function ve(e){var t=e;return t&&(t=e.toLocaleLowerCase()),t}function be(e){return se?se():e}function me(e){var t=e.hostName||"WeChat";return e.environment?t=e.environment:e.host&&e.host.env&&(t=e.host.env),t}var _e={returnValue:function(e){pe(e),ge(e),function(e){var t,r=e.brand,n=void 0===r?"":r,i=e.model,o=void 0===i?"":i,a=e.system,s=void 0===a?"":a,u=e.language,c=void 0===u?"":u,f=e.theme,l=e.version,d=(e.platform,e.fontSizeSetting),h=e.SDKVersion,p=e.pixelRatio,g=e.deviceOrientation,y="";y=s.split(" ")[0]||"",t=s.split(" ")[1]||"";var v=l,b=ye(e,o),m=ve(n),_=me(e),w=g,A=p,S=h,x=(c||"").replace(/_/g,"-"),E={appId:"__UNI__4A158B4",appName:"v3-H5",appVersion:"1.0.0",appVersionCode:"100",appLanguage:be(x),uniCompileVersion:"4.45",uniCompilerVersion:"4.45",uniRuntimeVersion:"4.45",uniPlatform:"mp-weixin",deviceBrand:m,deviceModel:o,deviceType:b,devicePixelRatio:A,deviceOrientation:w,osName:y.toLocaleLowerCase(),osVersion:t,hostTheme:f,hostVersion:v,hostLanguage:x,hostName:_,hostSDKVersion:S,hostFontSizeSetting:d,windowTop:0,windowBottom:0,osLanguage:void 0,osTheme:void 0,ua:void 0,hostPackageName:void 0,browserName:void 0,browserVersion:void 0,isUniAppX:!1};Object.assign(e,E,{})}(e)}},we={args:function(e){"object"===(0,f.default)(e)&&(e.alertText=e.title)}},Ae={returnValue:function(e){var t=e,r=t.version,n=t.language,i=t.SDKVersion,o=t.theme,a=me(e),s=(n||"").replace("_","-");e=I(Object.assign(e,{appId:"__UNI__4A158B4",appName:"v3-H5",appVersion:"1.0.0",appVersionCode:"100",appLanguage:be(s),hostVersion:r,hostLanguage:s,hostName:a,hostSDKVersion:i,hostTheme:o,isUniAppX:!1,uniPlatform:"mp-weixin",uniCompileVersion:"4.45",uniCompilerVersion:"4.45",uniRuntimeVersion:"4.45"}))}},Se={returnValue:function(e){var t=e,r=t.brand,n=t.model,i=ye(e,n),o=ve(r);pe(e),e=I(Object.assign(e,{deviceType:i,deviceBrand:o,deviceModel:n}))}},xe={returnValue:function(e){ge(e),e=I(Object.assign(e,{windowTop:0,windowBottom:0}))}},Ee={redirectTo:de,previewImage:he,getSystemInfo:_e,getSystemInfoSync:_e,showActionSheet:we,getAppBaseInfo:Ae,getDeviceInfo:Se,getWindowInfo:xe,getAppAuthorizeSetting:{returnValue:function(e){var t=e.locationReducedAccuracy;e.locationAccuracy="unsupported",!0===t?e.locationAccuracy="reduced":!1===t&&(e.locationAccuracy="full")}},compressImage:{args:function(e){e.compressedHeight&&!e.compressHeight&&(e.compressHeight=e.compressedHeight),e.compressedWidth&&!e.compressWidth&&(e.compressWidth=e.compressedWidth)}}},Ce=["success","fail","cancel","complete"];function Oe(e,t,r){return function(n){return t(Te(e,n,r))}}function Ie(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(A(t)){var o=!0===i?t:{};for(var a in _(r)&&(r=r(t,o)||{}),t)if(S(r,a)){var s=r[a];_(s)&&(s=s(t[a],t,o)),s?w(s)?o[s]=t[a]:A(s)&&(o[s.name?s.name:a]=s.value):console.warn("The '".concat(e,"' method of platform '微信小程序' does not support option '").concat(a,"'"))}else-1!==Ce.indexOf(a)?_(t[a])&&(o[a]=Oe(e,t[a],n)):i||(o[a]=t[a]);return o}return _(t)&&(t=Oe(e,t,n)),t}function Te(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return _(Ee.returnValue)&&(t=Ee.returnValue(e,t)),Ie(e,t,r,{},n)}function Pe(t,r){if(S(Ee,t)){var n=Ee[t];return n?function(r,i){var o=n;_(n)&&(o=n(r)),r=Ie(t,r,o.args,o.returnValue);var a=[r];"undefined"!==typeof i&&a.push(i),_(o.name)?t=o.name(r):w(o.name)&&(t=o.name);var s=e[t].apply(e,a);return K(t)?Te(t,s,o.returnValue,X(t)):s}:function(){console.error("Platform '微信小程序' does not support '".concat(t,"'."))}}return r}var Me=Object.create(null);["onTabBarMidButtonTap","subscribePush","unsubscribePush","onPush","offPush","share"].forEach((function(e){Me[e]=function(e){return function(t){var r=t.fail,n=t.complete,i={errMsg:"".concat(e,":fail method '").concat(e,"' not supported")};_(r)&&r(i),_(n)&&n(i)}}(e)}));var ke={oauth:["weixin"],share:["weixin"],payment:["wxpay"],push:["weixin"]};var Re=Object.freeze({__proto__:null,getProvider:function(e){var t=e.service,r=e.success,n=e.fail,i=e.complete,o=!1;ke[t]?(o={errMsg:"getProvider:ok",service:t,provider:ke[t]},_(r)&&r(o)):(o={errMsg:"getProvider:fail service not found"},_(n)&&n(o)),_(i)&&i(o)}}),De=function(){var e;return function(){return e||(e=new d.default),e}}();function Ne(e,t,r){return e[t].apply(e,r)}var Be,Le,je,Fe=Object.freeze({__proto__:null,$on:function(){return Ne(De(),"$on",Array.prototype.slice.call(arguments))},$off:function(){return Ne(De(),"$off",Array.prototype.slice.call(arguments))},$once:function(){return Ne(De(),"$once",Array.prototype.slice.call(arguments))},$emit:function(){return Ne(De(),"$emit",Array.prototype.slice.call(arguments))}});function Ue(e){return function(){try{return e.apply(e,arguments)}catch(t){console.error(t)}}}function ze(e){try{return JSON.parse(e)}catch(t){}return e}var He=[];function qe(e,t){He.forEach((function(r){r(e,t)})),He.length=0}var Ve=[],We=e.getAppBaseInfo&&e.getAppBaseInfo();We||(We=e.getSystemInfoSync());var Ge=We?We.host:null,Xe=Ge&&"SAAASDK"===Ge.env?e.miniapp.shareVideoMessage:e.shareVideoMessage,Ke=Object.freeze({__proto__:null,shareVideoMessage:Xe,getPushClientId:function(e){A(e)||(e={});var t=function(e){var t={};for(var r in e){var n=e[r];_(n)&&(t[r]=Ue(n),delete e[r])}return t}(e),r=t.success,n=t.fail,i=t.complete,o=_(r),a=_(n),s=_(i);Promise.resolve().then((function(){"undefined"===typeof je&&(je=!1,Be="",Le="uniPush is not enabled"),He.push((function(e,t){var u;e?(u={errMsg:"getPushClientId:ok",cid:e},o&&r(u)):(u={errMsg:"getPushClientId:fail"+(t?" "+t:"")},a&&n(u)),s&&i(u)})),"undefined"!==typeof Be&&qe(Be,Le)}))},onPushMessage:function(e){-1===Ve.indexOf(e)&&Ve.push(e)},offPushMessage:function(e){if(e){var t=Ve.indexOf(e);t>-1&&Ve.splice(t,1)}else Ve.length=0},invokePushCallback:function(e){if("enabled"===e.type)je=!0;else if("clientId"===e.type)Be=e.cid,Le=e.errMsg,qe(Be,e.errMsg);else if("pushMsg"===e.type)for(var t={type:"receive",data:ze(e.message)},r=0;r<Ve.length;r++){var n=Ve[r];if(n(t),t.stopped)break}else"click"===e.type&&Ve.forEach((function(t){t({type:"click",data:ze(e.message)})}))}}),$e=["__route__","__wxExparserNodeId__","__wxWebviewId__"];function Ye(e){return Behavior(e)}function Ze(){return!!this.route}function Je(e){this.triggerEvent("__l",e)}function Qe(e){var t=e.$scope,r={};Object.defineProperty(e,"$refs",{get:function(){var e={};(function e(t,r,n){var i=t.selectAllComponents(r)||[];i.forEach((function(t){var i=t.dataset.ref;n[i]=t.$vm||rt(t),"scoped"===t.dataset.vueGeneric&&t.selectAllComponents(".scoped-ref").forEach((function(t){e(t,r,n)}))}))})(t,".vue-ref",e);var n=t.selectAllComponents(".vue-ref-in-for")||[];return n.forEach((function(t){var r=t.dataset.ref;e[r]||(e[r]=[]),e[r].push(t.$vm||rt(t))})),function(e,t){var r=(0,u.default)(Set,(0,c.default)(Object.keys(e))),n=Object.keys(t);return n.forEach((function(n){var i=e[n],o=t[n];Array.isArray(i)&&Array.isArray(o)&&i.length===o.length&&o.every((function(e){return i.includes(e)}))||(e[n]=o,r.delete(n))})),r.forEach((function(t){delete e[t]})),e}(r,e)}})}function et(e){var t,r=e.detail||e.value,n=r.vuePid,i=r.vueOptions;n&&(t=function e(t,r){for(var n,i=t.$children,o=i.length-1;o>=0;o--){var a=i[o];if(a.$scope._$vueId===r)return a}for(var s=i.length-1;s>=0;s--)if(n=e(i[s],r),n)return n}(this.$vm,n)),t||(t=this.$vm),i.parent=t}function tt(e){return Object.defineProperty(e,"__v_isMPComponent",{configurable:!0,enumerable:!1,value:!0}),e}function rt(e){return function(e){return null!==e&&"object"===(0,f.default)(e)}(e)&&Object.isExtensible(e)&&Object.defineProperty(e,"__ob__",{configurable:!0,enumerable:!1,value:(0,s.default)({},"__v_skip",!0)}),e}var nt=/_(.*)_worklet_factory_/;var it=Page,ot=Component,at=/:/g,st=E((function(e){return O(e.replace(at,"-"))}));function ut(e){var t=e.triggerEvent,r=function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];if(this.$vm||this.dataset&&this.dataset.comType)e=st(e);else{var o=st(e);o!==e&&t.apply(this,[o].concat(n))}return t.apply(this,[e].concat(n))};try{e.triggerEvent=r}catch(n){e._triggerEvent=r}}function ct(e,t,r){var n=t[e];t[e]=function(){if(tt(this),ut(this),n){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.apply(this,t)}}}it.__$wrappered||(it.__$wrappered=!0,Page=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return ct("onLoad",e),it(e)},Page.after=it.after,Component=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return ct("created",e),ot(e)});function ft(e,t,r){t.forEach((function(t){(function e(t,r){if(!r)return!0;if(d.default.options&&Array.isArray(d.default.options[t]))return!0;if(r=r.default||r,_(r))return!!_(r.extendOptions[t])||!!(r.super&&r.super.options&&Array.isArray(r.super.options[t]));if(_(r[t])||Array.isArray(r[t]))return!0;var n=r.mixins;return Array.isArray(n)?!!n.find((function(r){return e(t,r)})):void 0})(t,r)&&(e[t]=function(e){return this.$vm&&this.$vm.__call_hook(t,e)})}))}function lt(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];dt(t).forEach((function(t){return ht(e,t,r)}))}function dt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e&&Object.keys(e).forEach((function(r){0===r.indexOf("on")&&_(e[r])&&t.push(r)})),t}function ht(e,t,r){-1!==r.indexOf(t)||S(e,t)||(e[t]=function(e){return this.$vm&&this.$vm.__call_hook(t,e)})}function pt(e,t){var r;return t=t.default||t,r=_(t)?t:e.extend(t),t=r.options,[r,t]}function gt(e,t){if(Array.isArray(t)&&t.length){var r=Object.create(null);t.forEach((function(e){r[e]=!0})),e.$scopedSlots=e.$slots=r}}function yt(e,t){e=(e||"").split(",");var r=e.length;1===r?t._$vueId=e[0]:2===r&&(t._$vueId=e[0],t._$vuePid=e[1])}function vt(e,t){var r=e.data||{},n=e.methods||{};if("function"===typeof r)try{r=r.call(t)}catch(i){Object({NODE_ENV:"production",VUE_APP_DARK_MODE:"false",VUE_APP_NAME:"v3-H5",VUE_APP_PLATFORM:"mp-weixin",BASE_URL:"/"}).VUE_APP_DEBUG&&console.warn("根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。",r)}else try{r=JSON.parse(JSON.stringify(r))}catch(i){}return A(r)||(r={}),Object.keys(n).forEach((function(e){-1!==t.__lifecycle_hooks__.indexOf(e)||S(r,e)||(r[e]=n[e])})),r}var bt=[String,Number,Boolean,Object,Array,null];function mt(e){return function(t,r){this.$vm&&(this.$vm[e]=t)}}function _t(e,t){var r=e.behaviors,n=e.extends,i=e.mixins,o=e.props;o||(e.props=o=[]);var a=[];return Array.isArray(r)&&r.forEach((function(e){a.push(e.replace("uni://","wx".concat("://"))),"uni://form-field"===e&&(Array.isArray(o)?(o.push("name"),o.push("value")):(o.name={type:String,default:""},o.value={type:[String,Number,Boolean,Array,Object,Date],default:""}))})),A(n)&&n.props&&a.push(t({properties:At(n.props,!0)})),Array.isArray(i)&&i.forEach((function(e){A(e)&&e.props&&a.push(t({properties:At(e.props,!0)}))})),a}function wt(e,t,r,n){return Array.isArray(t)&&1===t.length?t[0]:t}function At(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>3?arguments[3]:void 0,n={};return t||(n.vueId={type:String,value:""},r.virtualHost&&(n.virtualHostStyle={type:null,value:""},n.virtualHostClass={type:null,value:""}),n.scopedSlotsCompiler={type:String,value:""},n.vueSlots={type:null,value:[],observer:function(e,t){var r=Object.create(null);e.forEach((function(e){r[e]=!0})),this.setData({$slots:r})}}),Array.isArray(e)?e.forEach((function(e){n[e]={type:null,observer:mt(e)}})):A(e)&&Object.keys(e).forEach((function(t){var r=e[t];if(A(r)){var i=r.default;_(i)&&(i=i()),r.type=wt(0,r.type),n[t]={type:-1!==bt.indexOf(r.type)?r.type:null,value:i,observer:mt(t)}}else{var o=wt(0,r);n[t]={type:-1!==bt.indexOf(o)?o:null,observer:mt(t)}}})),n}function St(e,t,r,n){var i={};return Array.isArray(t)&&t.length&&t.forEach((function(t,o){"string"===typeof t?t?"$event"===t?i["$"+o]=r:"arguments"===t?i["$"+o]=r.detail&&r.detail.__args__||n:0===t.indexOf("$event.")?i["$"+o]=e.__get_value(t.replace("$event.",""),r):i["$"+o]=e.__get_value(t):i["$"+o]=e:i["$"+o]=function(e,t){var r=e;return t.forEach((function(t){var n=t[0],i=t[2];if(n||"undefined"!==typeof i){var o,a=t[1],s=t[3];Number.isInteger(n)?o=n:n?"string"===typeof n&&n&&(o=0===n.indexOf("#s#")?n.substr(3):e.__get_value(n,r)):o=r,Number.isInteger(o)?r=i:a?Array.isArray(o)?r=o.find((function(t){return e.__get_value(a,t)===i})):A(o)?r=Object.keys(o).find((function(t){return e.__get_value(a,o[t])===i})):console.error("v-for 暂不支持循环数据:",o):r=o[i],s&&(r=e.__get_value(s,r))}})),r}(e,t)})),i}function xt(e){for(var t={},r=1;r<e.length;r++){var n=e[r];t[n[0]]=n[1]}return t}function Et(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,a=!1,s=A(t.detail)&&t.detail.__args__||[t.detail];if(i&&(a=t.currentTarget&&t.currentTarget.dataset&&"wx"===t.currentTarget.dataset.comType,!r.length))return a?[t]:s;var u=St(e,n,t,s),c=[];return r.forEach((function(e){"$event"===e?"__set_model"!==o||i?i&&!a?c.push(s[0]):c.push(t):c.push(t.target.value):Array.isArray(e)&&"o"===e[0]?c.push(xt(e)):"string"===typeof e&&S(u,e)?c.push(u[e]):c.push(e)})),c}function Ct(e){var t=this;e=function(e){try{e.mp=JSON.parse(JSON.stringify(e))}catch(t){}return e.stopPropagation=x,e.preventDefault=x,e.target=e.target||{},S(e,"detail")||(e.detail={}),S(e,"markerId")&&(e.detail="object"===(0,f.default)(e.detail)?e.detail:{},e.detail.markerId=e.markerId),A(e.detail)&&(e.target=Object.assign({},e.target,e.detail)),e}(e);var r=(e.currentTarget||e.target).dataset;if(!r)return console.warn("事件信息不存在");var n=r.eventOpts||r["event-opts"];if(!n)return console.warn("事件信息不存在");var i=e.type,o=[];return n.forEach((function(r){var n=r[0],a=r[1],s="^"===n.charAt(0);n=s?n.slice(1):n;var u="~"===n.charAt(0);n=u?n.slice(1):n,a&&function(e,t){return e===t||"regionchange"===t&&("begin"===e||"end"===e)}(i,n)&&a.forEach((function(r){var n=r[0];if(n){var i=t.$vm;if(i.$options.generic&&(i=function(e){var t=e.$parent;while(t&&t.$parent&&(t.$options.generic||t.$parent.$options.generic||t.$scope._$vuePid))t=t.$parent;return t&&t.$parent}(i)||i),"$emit"===n)return void i.$emit.apply(i,Et(t.$vm,e,r[1],r[2],s,n));var a=i[n];if(!_(a)){var c="page"===t.$vm.mpType?"Page":"Component",f=t.route||t.is;throw new Error("".concat(c,' "').concat(f,'" does not have a method "').concat(n,'"'))}if(u){if(a.once)return;a.once=!0}var l=Et(t.$vm,e,r[1],r[2],s,n);l=Array.isArray(l)?l:[],/=\s*\S+\.eventParams\s*\|\|\s*\S+\[['"]event-params['"]\]/.test(a.toString())&&(l=l.concat([,,,,,,,,,,e])),o.push(a.apply(i,l))}}))})),"input"===i&&1===o.length&&"undefined"!==typeof o[0]?o[0]:void 0}var Ot={};var It=["onShow","onHide","onError","onPageNotFound","onThemeChange","onUnhandledRejection"];function Tt(){d.default.prototype.getOpenerEventChannel=function(){return this.$scope.getOpenerEventChannel()};var e=d.default.prototype.__call_hook;d.default.prototype.__call_hook=function(t,r){return"onLoad"===t&&r&&r.__id__&&(this.__eventChannel__=function(e){var t=Ot[e];return delete Ot[e],t}(r.__id__),delete r.__id__),e.call(this,t,r)}}function Pt(t,r){var n=r.mocks,i=r.initRefs;Tt(),function(){var e={},t={};function r(e){var t=this.$options.propsData.vueId;if(t){var r=t.split(",")[0];e(r)}}d.default.prototype.$hasSSP=function(r){var n=e[r];return n||(t[r]=this,this.$on("hook:destroyed",(function(){delete t[r]}))),n},d.default.prototype.$getSSP=function(t,r,n){var i=e[t];if(i){var o=i[r]||[];return n?o:o[0]}},d.default.prototype.$setSSP=function(t,n){var i=0;return r.call(this,(function(r){var o=e[r],a=o[t]=o[t]||[];a.push(n),i=a.length-1})),i},d.default.prototype.$initSSP=function(){r.call(this,(function(t){e[t]={}}))},d.default.prototype.$callSSP=function(){r.call(this,(function(e){t[e]&&t[e].$forceUpdate()}))},d.default.mixin({destroyed:function(){var r=this.$options.propsData,n=r&&r.vueId;n&&(delete e[n],delete t[n])}})}(),t.$options.store&&(d.default.prototype.$store=t.$options.store),function(e){e.prototype.uniIDHasRole=function(e){var t=v(),r=t.role;return r.indexOf(e)>-1},e.prototype.uniIDHasPermission=function(e){var t=v(),r=t.permission;return this.uniIDHasRole("admin")||r.indexOf(e)>-1},e.prototype.uniIDTokenValid=function(){var e=v(),t=e.tokenExpired;return t>Date.now()}}(d.default),d.default.prototype.mpHost="mp-weixin",d.default.mixin({beforeCreate:function(){if(this.$options.mpType){if(this.mpType=this.$options.mpType,this.$mp=(0,s.default)({data:{}},this.mpType,this.$options.mpInstance),this.$scope=this.$options.mpInstance,delete this.$options.mpType,delete this.$options.mpInstance,"page"===this.mpType&&"function"===typeof getApp){var e=getApp();e.$vm&&e.$vm.$i18n&&(this._i18n=e.$vm.$i18n)}"app"!==this.mpType&&(i(this),function(e,t){var r=e.$mp[e.mpType];t.forEach((function(t){S(r,t)&&(e[t]=r[t])}))}(this,n))}}});var o={onLaunch:function(r){this.$vm||(e.canIUse&&!e.canIUse("nextTick")&&console.error("当前微信基础库版本过低,请将 微信开发者工具-详情-项目设置-调试基础库版本 更换为`2.3.0`以上"),this.$vm=t,this.$vm.$mp={app:this},this.$vm.$scope=this,this.$vm.globalData=this.globalData,this.$vm._isMounted=!0,this.$vm.__call_hook("mounted",r),this.$vm.__call_hook("onLaunch",r))}};o.globalData=t.$options.globalData||{};var a=t.$options.methods;return a&&Object.keys(a).forEach((function(e){o[e]=a[e]})),function(e,t,r){var n=e.observable({locale:r||ie.getLocale()}),i=[];t.$watchLocale=function(e){i.push(e)},Object.defineProperty(t,"$locale",{get:function(){return n.locale},set:function(e){n.locale=e,i.forEach((function(t){return t(e)}))}})}(d.default,t,ae(e.getAppBaseInfo().language)||"en"),ft(o,It),lt(o,t.$options),o}function Mt(e){return Pt(e,{mocks:$e,initRefs:Qe})}function kt(e){return App(Mt(e)),e}var Rt=/[!'()*]/g,Dt=function(e){return"%"+e.charCodeAt(0).toString(16)},Nt=/%2C/g,Bt=function(e){return encodeURIComponent(e).replace(Rt,Dt).replace(Nt,",")};function Lt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Bt,r=e?Object.keys(e).map((function(r){var n=e[r];if(void 0===n)return"";if(null===n)return t(r);if(Array.isArray(n)){var i=[];return n.forEach((function(e){void 0!==e&&(null===e?i.push(t(r)):i.push(t(r)+"="+t(e)))})),i.join("&")}return t(r)+"="+t(n)})).filter((function(e){return e.length>0})).join("&"):null;return r?"?".concat(r):""}function jt(e,t){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.isPage,n=t.initRelation,i=arguments.length>2?arguments[2]:void 0,o=pt(d.default,e),s=(0,a.default)(o,2),u=s[0],c=s[1],f=p({multipleSlots:!0,addGlobalClass:!0},c.options||{});c["mp-weixin"]&&c["mp-weixin"].options&&Object.assign(f,c["mp-weixin"].options);var l={options:f,data:vt(c,d.default.prototype),behaviors:_t(c,Ye),properties:At(c.props,!1,c.__file,f),lifetimes:{attached:function(){var e=this.properties,t={mpType:r.call(this)?"page":"component",mpInstance:this,propsData:e};yt(e.vueId,this),n.call(this,{vuePid:this._$vuePid,vueOptions:t}),this.$vm=new u(t),gt(this.$vm,e.vueSlots),this.$vm.$mount()},ready:function(){this.$vm&&(this.$vm._isMounted=!0,this.$vm.__call_hook("mounted"),this.$vm.__call_hook("onReady"))},detached:function(){this.$vm&&this.$vm.$destroy()}},pageLifetimes:{show:function(e){this.$vm&&this.$vm.__call_hook("onPageShow",e)},hide:function(){this.$vm&&this.$vm.__call_hook("onPageHide")},resize:function(e){this.$vm&&this.$vm.__call_hook("onPageResize",e)}},methods:{__l:et,__e:Ct}};return c.externalClasses&&(l.externalClasses=c.externalClasses),Array.isArray(c.wxsCallMethods)&&c.wxsCallMethods.forEach((function(e){l.methods[e]=function(t){return this.$vm[e](t)}})),i?[l,c,u]:r?l:[l,u]}(e,{isPage:Ze,initRelation:Je},t)}var Ft=["onShow","onHide","onUnload"];function Ut(e){var t=jt(e,!0),r=(0,a.default)(t,2),n=r[0],i=r[1];return ft(n.methods,Ft,i),n.methods.onLoad=function(e){this.options=e;var t=Object.assign({},e);delete t.__id__,this.$page={fullPath:"/"+(this.route||this.is)+Lt(t)},this.$vm.$mp.query=e,this.$vm.__call_hook("onLoad",e)},lt(n.methods,e,["onReady"]),function(e,t){t&&Object.keys(t).forEach((function(r){var n=r.match(nt);if(n){var i=n[1];e[r]=t[r],e[i]=t[i]}}))}(n.methods,i.methods),n}function zt(e){return Component(function(e){return Ut(e)}(e))}function Ht(e){return Component(jt(e))}function qt(t){var r=Mt(t),n=getApp({allowDefault:!0});t.$scope=n;var i=n.globalData;if(i&&Object.keys(r.globalData).forEach((function(e){S(i,e)||(i[e]=r.globalData[e])})),Object.keys(r).forEach((function(e){S(n,e)||(n[e]=r[e])})),_(r.onShow)&&e.onAppShow&&e.onAppShow((function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];t.__call_hook("onShow",r)})),_(r.onHide)&&e.onAppHide&&e.onAppHide((function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];t.__call_hook("onHide",r)})),_(r.onLaunch)){var o=e.getLaunchOptionsSync&&e.getLaunchOptionsSync();t.__call_hook("onLaunch",o)}return t}function Vt(t){var r=Mt(t);if(_(r.onShow)&&e.onAppShow&&e.onAppShow((function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];t.__call_hook("onShow",r)})),_(r.onHide)&&e.onAppHide&&e.onAppHide((function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];t.__call_hook("onHide",r)})),_(r.onLaunch)){var n=e.getLaunchOptionsSync&&e.getLaunchOptionsSync();t.__call_hook("onLaunch",n)}return t}Ft.push.apply(Ft,["onPullDownRefresh","onReachBottom","onAddToFavorites","onShareTimeline","onShareAppMessage","onPageScroll","onResize","onTabItemTap"]),["vibrate","preloadPage","unPreloadPage","loadSubPackage"].forEach((function(e){Ee[e]=!1})),[].forEach((function(t){var r=Ee[t]&&Ee[t].name?Ee[t].name:t;e.canIUse(r)||(Ee[t]=!1)}));var Wt={};"undefined"!==typeof Proxy?Wt=new Proxy({},{get:function(t,r){return S(t,r)?t[r]:fe[r]?fe[r]:Ke[r]?Z(r,Ke[r]):Re[r]?Z(r,Re[r]):Me[r]?Z(r,Me[r]):Fe[r]?Fe[r]:Z(r,Pe(r,e[r]))},set:function(e,t,r){return e[t]=r,!0}}):(Object.keys(fe).forEach((function(e){Wt[e]=fe[e]})),Object.keys(Me).forEach((function(e){Wt[e]=Z(e,Me[e])})),Object.keys(Re).forEach((function(e){Wt[e]=Z(e,Re[e])})),Object.keys(Fe).forEach((function(e){Wt[e]=Fe[e]})),Object.keys(Ke).forEach((function(e){Wt[e]=Z(e,Ke[e])})),Object.keys(e).forEach((function(t){(S(e,t)||S(Ee,t))&&(Wt[t]=Z(t,Pe(t,e[t])))}))),e.createApp=kt,e.createPage=zt,e.createComponent=Ht,e.createSubpackageApp=qt,e.createPlugin=Vt;var Gt=Wt,Xt=Gt;t.default=Xt}).call(this,r("3223")["default"],r("0ee4"))},df96:function(e,t,r){(function(t,r){var n;if(t.process&&t.process.browser)n="utf-8";else if(t.process&&t.process.version){var i=parseInt(r.version.split(".")[0].slice(1),10);n=i>=6?"utf-8":"binary"}else n="utf-8";e.exports=n}).call(this,r("0ee4"),r("28d0"))},dfe7:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("a8be")),o=n(r("c769")),a=n(r("f228")),s=function(){function e(t,r,n,i){this.image=t,this.height=t.getHeight(),this.width=t.getWidth(),void 0!==r&&null!==r||(r=e.INIT_SIZE),void 0!==n&&null!==n||(n=t.getWidth()/2|0),void 0!==i&&null!==i||(i=t.getHeight()/2|0);var o=r/2|0;if(this.leftInit=n-o,this.rightInit=n+o,this.upInit=i-o,this.downInit=i+o,this.upInit<0||this.leftInit<0||this.downInit>=this.height||this.rightInit>=this.width)throw new a.default}return e.prototype.detect=function(){var e=this.leftInit,t=this.rightInit,r=this.upInit,n=this.downInit,i=!1,o=!0,s=!1,u=!1,c=!1,f=!1,l=!1,d=this.width,h=this.height;while(o){o=!1;var p=!0;while((p||!u)&&t<d)p=this.containsBlackPoint(r,n,t,!1),p?(t++,o=!0,u=!0):u||t++;if(t>=d){i=!0;break}var g=!0;while((g||!c)&&n<h)g=this.containsBlackPoint(e,t,n,!0),g?(n++,o=!0,c=!0):c||n++;if(n>=h){i=!0;break}var y=!0;while((y||!f)&&e>=0)y=this.containsBlackPoint(r,n,e,!1),y?(e--,o=!0,f=!0):f||e--;if(e<0){i=!0;break}var v=!0;while((v||!l)&&r>=0)v=this.containsBlackPoint(e,t,r,!0),v?(r--,o=!0,l=!0):l||r--;if(r<0){i=!0;break}o&&(s=!0)}if(!i&&s){for(var b=t-e,m=null,_=1;null===m&&_<b;_++)m=this.getBlackPointOnSegment(e,n-_,e+_,n);if(null==m)throw new a.default;var w=null;for(_=1;null===w&&_<b;_++)w=this.getBlackPointOnSegment(e,r+_,e+_,r);if(null==w)throw new a.default;var A=null;for(_=1;null===A&&_<b;_++)A=this.getBlackPointOnSegment(t,r+_,t-_,r);if(null==A)throw new a.default;var S=null;for(_=1;null===S&&_<b;_++)S=this.getBlackPointOnSegment(t,n-_,t-_,n);if(null==S)throw new a.default;return this.centerEdges(S,m,A,w)}throw new a.default},e.prototype.getBlackPointOnSegment=function(e,t,r,n){for(var a=o.default.round(o.default.distance(e,t,r,n)),s=(r-e)/a,u=(n-t)/a,c=this.image,f=0;f<a;f++){var l=o.default.round(e+f*s),d=o.default.round(t+f*u);if(c.get(l,d))return new i.default(l,d)}return null},e.prototype.centerEdges=function(t,r,n,o){var a=t.getX(),s=t.getY(),u=r.getX(),c=r.getY(),f=n.getX(),l=n.getY(),d=o.getX(),h=o.getY(),p=e.CORR;return a<this.width/2?[new i.default(d-p,h+p),new i.default(u+p,c+p),new i.default(f-p,l-p),new i.default(a+p,s-p)]:[new i.default(d+p,h+p),new i.default(u+p,c-p),new i.default(f-p,l+p),new i.default(a-p,s-p)]},e.prototype.containsBlackPoint=function(e,t,r,n){var i=this.image;if(n){for(var o=e;o<=t;o++)if(i.get(o,r))return!0}else for(var a=e;a<=t;a++)if(i.get(r,a))return!0;return!1},e.INIT_SIZE=10,e.CORR=1,e}(),u=s;t.default=u},dff7:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(e,t){var r=localStorage.getItem("devTools_tagConfig");r=r?JSON.parse(r):{},r=Object.assign({show:e.bubble.status,x:window.innerWidth-90,y:window.innerHeight-90},r),r.show=e.bubble.status;var n={min:{x:0,y:0},max:{x:window.innerWidth-70,y:window.innerHeight-24}};r.x=Math.min(Math.max(r.x,n.min.x),n.max.x),r.y=Math.min(Math.max(r.y,n.min.y),n.max.y);var i=document.createElement("div");i.style="\n box-sizing: border-box;\n position: fixed;\n z-index: 9999999;\n left: ".concat(r.x,"px;\n top: ").concat(r.y,"px;\n width: 70px;\n height: 24px;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding: 4px;\n border-radius: 6px;\n background-color: ").concat(e.bubble.bgColor,";\n color: ").concat(e.bubble.color,";\n font-size: 10px;\n cursor: grab;\n box-shadow: 0px 0px 6px ").concat(e.bubble.bgColor,";\n backdrop-filter: blur(1px);\n "),i.innerHTML=e.bubble.text,i.setAttribute("id","debugTag"),r.show&&document.body.appendChild(i);var o=!1,a={clientX:0,clientY:0,tagX:r.x,tagY:r.y,hasMove:!1};function s(e){if(!o){e.preventDefault&&e.preventDefault();var t=e.clientX?e.clientX:e.targetTouches[0].clientX,n=e.clientX?e.clientY:e.targetTouches[0].clientY;a.clientX=t,a.clientY=n,a.tagX=r.x,a.tagY=r.y,a.hasMove=!1,o=!0}}function u(e){if(o){e.preventDefault&&e.preventDefault();var t=e.clientX?e.clientX:e.targetTouches[0].clientX,s=e.clientX?e.clientY:e.targetTouches[0].clientY;a.hasMove=!0;var u=a.clientX-t,c=a.clientY-s,f=a.tagX-u,l=a.tagY-c;f=Math.min(Math.max(f,n.min.x),n.max.x),l=Math.min(Math.max(l,n.min.y),n.max.y),i.style.left="".concat(f,"px"),i.style.top="".concat(l,"px"),r.x=f,r.y=l}}function c(n){o&&(n.preventDefault&&n.preventDefault(),o=!1,localStorage.setItem("devTools_tagConfig",JSON.stringify(r)),a.hasMove||function(){var r=getCurrentPages(),n=e.route.substring(1,e.route.length-2);r[r.length-1].route!=n&&t.show()}())}i.addEventListener("touchstart",s),i.addEventListener("touchmove",u),i.addEventListener("touchend",c),i.addEventListener("mousedown",s),document.addEventListener("mousemove",u),document.addEventListener("mouseup",c),localStorage.setItem("devTools_tagConfig",JSON.stringify(r))};t.default=n},e01c:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("7e0b")),o=n(r("3b65")),a=n(r("a541")),s=n(r("f0b7")),u=n(r("343e")),c=n(r("f7fd")),f=function(e){var t="function"===typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},l=function(){function e(e,t){for(var r,n,i=[],o=2;o<arguments.length;o++)i[o-2]=arguments[o];this.versionNumber=e,this.alignmentPatternCenters=t,this.ecBlocks=i;var a=0,s=i[0].getECCodewordsPerBlock(),u=i[0].getECBlocks();try{for(var c=f(u),l=c.next();!l.done;l=c.next()){var d=l.value;a+=d.getCount()*(d.getDataCodewords()+s)}}catch(h){r={error:h}}finally{try{l&&!l.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}this.totalCodewords=a}return e.prototype.getVersionNumber=function(){return this.versionNumber},e.prototype.getAlignmentPatternCenters=function(){return this.alignmentPatternCenters},e.prototype.getTotalCodewords=function(){return this.totalCodewords},e.prototype.getDimensionForVersion=function(){return 17+4*this.versionNumber},e.prototype.getECBlocksForLevel=function(e){return this.ecBlocks[e.getValue()]},e.getProvisionalVersionForDimension=function(e){if(e%4!==1)throw new u.default;try{return this.getVersionForNumber((e-17)/4)}catch(t){throw new u.default}},e.getVersionForNumber=function(t){if(t<1||t>40)throw new c.default;return e.VERSIONS[t-1]},e.decodeVersionInformation=function(t){for(var r=Number.MAX_SAFE_INTEGER,n=0,i=0;i<e.VERSION_DECODE_INFO.length;i++){var a=e.VERSION_DECODE_INFO[i];if(a===t)return e.getVersionForNumber(i+7);var s=o.default.numBitsDiffering(t,a);s<r&&(n=i+7,r=s)}return r<=3?e.getVersionForNumber(n):null},e.prototype.buildFunctionPattern=function(){var e=this.getDimensionForVersion(),t=new i.default(e);t.setRegion(0,0,9,9),t.setRegion(e-8,0,8,9),t.setRegion(0,e-8,9,8);for(var r=this.alignmentPatternCenters.length,n=0;n<r;n++)for(var o=this.alignmentPatternCenters[n]-2,a=0;a<r;a++)0===n&&(0===a||a===r-1)||n===r-1&&0===a||t.setRegion(this.alignmentPatternCenters[a]-2,o,5,5);return t.setRegion(6,9,1,e-17),t.setRegion(9,6,e-17,1),this.versionNumber>6&&(t.setRegion(e-11,0,3,6),t.setRegion(0,e-11,6,3)),t},e.prototype.toString=function(){return""+this.versionNumber},e.VERSION_DECODE_INFO=Int32Array.from([31892,34236,39577,42195,48118,51042,55367,58893,63784,68472,70749,76311,79154,84390,87683,92361,96236,102084,102881,110507,110734,117786,119615,126325,127568,133589,136944,141498,145311,150283,152622,158308,161089,167017]),e.VERSIONS=[new e(1,new Int32Array(0),new a.default(7,new s.default(1,19)),new a.default(10,new s.default(1,16)),new a.default(13,new s.default(1,13)),new a.default(17,new s.default(1,9))),new e(2,Int32Array.from([6,18]),new a.default(10,new s.default(1,34)),new a.default(16,new s.default(1,28)),new a.default(22,new s.default(1,22)),new a.default(28,new s.default(1,16))),new e(3,Int32Array.from([6,22]),new a.default(15,new s.default(1,55)),new a.default(26,new s.default(1,44)),new a.default(18,new s.default(2,17)),new a.default(22,new s.default(2,13))),new e(4,Int32Array.from([6,26]),new a.default(20,new s.default(1,80)),new a.default(18,new s.default(2,32)),new a.default(26,new s.default(2,24)),new a.default(16,new s.default(4,9))),new e(5,Int32Array.from([6,30]),new a.default(26,new s.default(1,108)),new a.default(24,new s.default(2,43)),new a.default(18,new s.default(2,15),new s.default(2,16)),new a.default(22,new s.default(2,11),new s.default(2,12))),new e(6,Int32Array.from([6,34]),new a.default(18,new s.default(2,68)),new a.default(16,new s.default(4,27)),new a.default(24,new s.default(4,19)),new a.default(28,new s.default(4,15))),new e(7,Int32Array.from([6,22,38]),new a.default(20,new s.default(2,78)),new a.default(18,new s.default(4,31)),new a.default(18,new s.default(2,14),new s.default(4,15)),new a.default(26,new s.default(4,13),new s.default(1,14))),new e(8,Int32Array.from([6,24,42]),new a.default(24,new s.default(2,97)),new a.default(22,new s.default(2,38),new s.default(2,39)),new a.default(22,new s.default(4,18),new s.default(2,19)),new a.default(26,new s.default(4,14),new s.default(2,15))),new e(9,Int32Array.from([6,26,46]),new a.default(30,new s.default(2,116)),new a.default(22,new s.default(3,36),new s.default(2,37)),new a.default(20,new s.default(4,16),new s.default(4,17)),new a.default(24,new s.default(4,12),new s.default(4,13))),new e(10,Int32Array.from([6,28,50]),new a.default(18,new s.default(2,68),new s.default(2,69)),new a.default(26,new s.default(4,43),new s.default(1,44)),new a.default(24,new s.default(6,19),new s.default(2,20)),new a.default(28,new s.default(6,15),new s.default(2,16))),new e(11,Int32Array.from([6,30,54]),new a.default(20,new s.default(4,81)),new a.default(30,new s.default(1,50),new s.default(4,51)),new a.default(28,new s.default(4,22),new s.default(4,23)),new a.default(24,new s.default(3,12),new s.default(8,13))),new e(12,Int32Array.from([6,32,58]),new a.default(24,new s.default(2,92),new s.default(2,93)),new a.default(22,new s.default(6,36),new s.default(2,37)),new a.default(26,new s.default(4,20),new s.default(6,21)),new a.default(28,new s.default(7,14),new s.default(4,15))),new e(13,Int32Array.from([6,34,62]),new a.default(26,new s.default(4,107)),new a.default(22,new s.default(8,37),new s.default(1,38)),new a.default(24,new s.default(8,20),new s.default(4,21)),new a.default(22,new s.default(12,11),new s.default(4,12))),new e(14,Int32Array.from([6,26,46,66]),new a.default(30,new s.default(3,115),new s.default(1,116)),new a.default(24,new s.default(4,40),new s.default(5,41)),new a.default(20,new s.default(11,16),new s.default(5,17)),new a.default(24,new s.default(11,12),new s.default(5,13))),new e(15,Int32Array.from([6,26,48,70]),new a.default(22,new s.default(5,87),new s.default(1,88)),new a.default(24,new s.default(5,41),new s.default(5,42)),new a.default(30,new s.default(5,24),new s.default(7,25)),new a.default(24,new s.default(11,12),new s.default(7,13))),new e(16,Int32Array.from([6,26,50,74]),new a.default(24,new s.default(5,98),new s.default(1,99)),new a.default(28,new s.default(7,45),new s.default(3,46)),new a.default(24,new s.default(15,19),new s.default(2,20)),new a.default(30,new s.default(3,15),new s.default(13,16))),new e(17,Int32Array.from([6,30,54,78]),new a.default(28,new s.default(1,107),new s.default(5,108)),new a.default(28,new s.default(10,46),new s.default(1,47)),new a.default(28,new s.default(1,22),new s.default(15,23)),new a.default(28,new s.default(2,14),new s.default(17,15))),new e(18,Int32Array.from([6,30,56,82]),new a.default(30,new s.default(5,120),new s.default(1,121)),new a.default(26,new s.default(9,43),new s.default(4,44)),new a.default(28,new s.default(17,22),new s.default(1,23)),new a.default(28,new s.default(2,14),new s.default(19,15))),new e(19,Int32Array.from([6,30,58,86]),new a.default(28,new s.default(3,113),new s.default(4,114)),new a.default(26,new s.default(3,44),new s.default(11,45)),new a.default(26,new s.default(17,21),new s.default(4,22)),new a.default(26,new s.default(9,13),new s.default(16,14))),new e(20,Int32Array.from([6,34,62,90]),new a.default(28,new s.default(3,107),new s.default(5,108)),new a.default(26,new s.default(3,41),new s.default(13,42)),new a.default(30,new s.default(15,24),new s.default(5,25)),new a.default(28,new s.default(15,15),new s.default(10,16))),new e(21,Int32Array.from([6,28,50,72,94]),new a.default(28,new s.default(4,116),new s.default(4,117)),new a.default(26,new s.default(17,42)),new a.default(28,new s.default(17,22),new s.default(6,23)),new a.default(30,new s.default(19,16),new s.default(6,17))),new e(22,Int32Array.from([6,26,50,74,98]),new a.default(28,new s.default(2,111),new s.default(7,112)),new a.default(28,new s.default(17,46)),new a.default(30,new s.default(7,24),new s.default(16,25)),new a.default(24,new s.default(34,13))),new e(23,Int32Array.from([6,30,54,78,102]),new a.default(30,new s.default(4,121),new s.default(5,122)),new a.default(28,new s.default(4,47),new s.default(14,48)),new a.default(30,new s.default(11,24),new s.default(14,25)),new a.default(30,new s.default(16,15),new s.default(14,16))),new e(24,Int32Array.from([6,28,54,80,106]),new a.default(30,new s.default(6,117),new s.default(4,118)),new a.default(28,new s.default(6,45),new s.default(14,46)),new a.default(30,new s.default(11,24),new s.default(16,25)),new a.default(30,new s.default(30,16),new s.default(2,17))),new e(25,Int32Array.from([6,32,58,84,110]),new a.default(26,new s.default(8,106),new s.default(4,107)),new a.default(28,new s.default(8,47),new s.default(13,48)),new a.default(30,new s.default(7,24),new s.default(22,25)),new a.default(30,new s.default(22,15),new s.default(13,16))),new e(26,Int32Array.from([6,30,58,86,114]),new a.default(28,new s.default(10,114),new s.default(2,115)),new a.default(28,new s.default(19,46),new s.default(4,47)),new a.default(28,new s.default(28,22),new s.default(6,23)),new a.default(30,new s.default(33,16),new s.default(4,17))),new e(27,Int32Array.from([6,34,62,90,118]),new a.default(30,new s.default(8,122),new s.default(4,123)),new a.default(28,new s.default(22,45),new s.default(3,46)),new a.default(30,new s.default(8,23),new s.default(26,24)),new a.default(30,new s.default(12,15),new s.default(28,16))),new e(28,Int32Array.from([6,26,50,74,98,122]),new a.default(30,new s.default(3,117),new s.default(10,118)),new a.default(28,new s.default(3,45),new s.default(23,46)),new a.default(30,new s.default(4,24),new s.default(31,25)),new a.default(30,new s.default(11,15),new s.default(31,16))),new e(29,Int32Array.from([6,30,54,78,102,126]),new a.default(30,new s.default(7,116),new s.default(7,117)),new a.default(28,new s.default(21,45),new s.default(7,46)),new a.default(30,new s.default(1,23),new s.default(37,24)),new a.default(30,new s.default(19,15),new s.default(26,16))),new e(30,Int32Array.from([6,26,52,78,104,130]),new a.default(30,new s.default(5,115),new s.default(10,116)),new a.default(28,new s.default(19,47),new s.default(10,48)),new a.default(30,new s.default(15,24),new s.default(25,25)),new a.default(30,new s.default(23,15),new s.default(25,16))),new e(31,Int32Array.from([6,30,56,82,108,134]),new a.default(30,new s.default(13,115),new s.default(3,116)),new a.default(28,new s.default(2,46),new s.default(29,47)),new a.default(30,new s.default(42,24),new s.default(1,25)),new a.default(30,new s.default(23,15),new s.default(28,16))),new e(32,Int32Array.from([6,34,60,86,112,138]),new a.default(30,new s.default(17,115)),new a.default(28,new s.default(10,46),new s.default(23,47)),new a.default(30,new s.default(10,24),new s.default(35,25)),new a.default(30,new s.default(19,15),new s.default(35,16))),new e(33,Int32Array.from([6,30,58,86,114,142]),new a.default(30,new s.default(17,115),new s.default(1,116)),new a.default(28,new s.default(14,46),new s.default(21,47)),new a.default(30,new s.default(29,24),new s.default(19,25)),new a.default(30,new s.default(11,15),new s.default(46,16))),new e(34,Int32Array.from([6,34,62,90,118,146]),new a.default(30,new s.default(13,115),new s.default(6,116)),new a.default(28,new s.default(14,46),new s.default(23,47)),new a.default(30,new s.default(44,24),new s.default(7,25)),new a.default(30,new s.default(59,16),new s.default(1,17))),new e(35,Int32Array.from([6,30,54,78,102,126,150]),new a.default(30,new s.default(12,121),new s.default(7,122)),new a.default(28,new s.default(12,47),new s.default(26,48)),new a.default(30,new s.default(39,24),new s.default(14,25)),new a.default(30,new s.default(22,15),new s.default(41,16))),new e(36,Int32Array.from([6,24,50,76,102,128,154]),new a.default(30,new s.default(6,121),new s.default(14,122)),new a.default(28,new s.default(6,47),new s.default(34,48)),new a.default(30,new s.default(46,24),new s.default(10,25)),new a.default(30,new s.default(2,15),new s.default(64,16))),new e(37,Int32Array.from([6,28,54,80,106,132,158]),new a.default(30,new s.default(17,122),new s.default(4,123)),new a.default(28,new s.default(29,46),new s.default(14,47)),new a.default(30,new s.default(49,24),new s.default(10,25)),new a.default(30,new s.default(24,15),new s.default(46,16))),new e(38,Int32Array.from([6,32,58,84,110,136,162]),new a.default(30,new s.default(4,122),new s.default(18,123)),new a.default(28,new s.default(13,46),new s.default(32,47)),new a.default(30,new s.default(48,24),new s.default(14,25)),new a.default(30,new s.default(42,15),new s.default(32,16))),new e(39,Int32Array.from([6,26,54,82,110,138,166]),new a.default(30,new s.default(20,117),new s.default(4,118)),new a.default(28,new s.default(40,47),new s.default(7,48)),new a.default(30,new s.default(43,24),new s.default(22,25)),new a.default(30,new s.default(10,15),new s.default(67,16))),new e(40,Int32Array.from([6,30,58,86,114,142,170]),new a.default(30,new s.default(19,118),new s.default(6,119)),new a.default(28,new s.default(18,47),new s.default(31,48)),new a.default(30,new s.default(34,24),new s.default(34,25)),new a.default(30,new s.default(20,15),new s.default(61,16)))],e}(),d=l;t.default=d},e0a5:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("b717")),o=n(r("f74e")),a=n(r("343e")),s=n(r("f228")),u=n(r("4d7d")),c=n(r("0c24")),f=n(r("a8be")),l=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),d=function(e){var t="function"===typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},h=function(e){function t(){var t=e.call(this)||this;return t.decodeRowResult="",t.counters=new Int32Array(6),t}return l(t,e),t.prototype.decodeRow=function(e,r,n){var o,a,u,l,h,p,g=this.findAsteriskPattern(r),y=r.getNextSet(g[1]),v=r.getSize(),b=this.counters;b.fill(0),this.decodeRowResult="";do{t.recordPattern(r,y,b);var m=this.toPattern(b);if(m<0)throw new s.default;h=this.patternToChar(m),this.decodeRowResult+=h,p=y;try{for(var _=(o=void 0,d(b)),w=_.next();!w.done;w=_.next()){var A=w.value;y+=A}}catch(T){o={error:T}}finally{try{w&&!w.done&&(a=_.return)&&a.call(_)}finally{if(o)throw o.error}}y=r.getNextSet(y)}while("*"!==h);this.decodeRowResult=this.decodeRowResult.substring(0,this.decodeRowResult.length-1);var S=0;try{for(var x=d(b),E=x.next();!E.done;E=x.next()){A=E.value;S+=A}}catch(P){u={error:P}}finally{try{E&&!E.done&&(l=x.return)&&l.call(x)}finally{if(u)throw u.error}}if(y===v||!r.get(y))throw new s.default;if(this.decodeRowResult.length<2)throw new s.default;this.checkChecksums(this.decodeRowResult),this.decodeRowResult=this.decodeRowResult.substring(0,this.decodeRowResult.length-2);var C=this.decodeExtended(this.decodeRowResult),O=(g[1]+g[0])/2,I=p+S/2;return new c.default(C,null,0,[new f.default(O,e),new f.default(I,e)],i.default.CODE_93,(new Date).getTime())},t.prototype.findAsteriskPattern=function(e){var r=e.getSize(),n=e.getNextSet(0);this.counters.fill(0);for(var i=this.counters,o=n,a=!1,u=i.length,c=0,f=n;f<r;f++)if(e.get(f)!==a)i[c]++;else{if(c===u-1){if(this.toPattern(i)===t.ASTERISK_ENCODING)return new Int32Array([o,f]);o+=i[0]+i[1],i.copyWithin(0,2,2+c-1),i[c-1]=0,i[c]=0,c--}else c++;i[c]=1,a=!a}throw new s.default},t.prototype.toPattern=function(e){var t,r,n=0;try{for(var i=d(e),o=i.next();!o.done;o=i.next()){var a=o.value;n+=a}}catch(h){t={error:h}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}for(var s=0,u=e.length,c=0;c<u;c++){var f=Math.round(9*e[c]/n);if(f<1||f>4)return-1;if(0===(1&c))for(var l=0;l<f;l++)s=s<<1|1;else s<<=f}return s},t.prototype.patternToChar=function(e){for(var r=0;r<t.CHARACTER_ENCODINGS.length;r++)if(t.CHARACTER_ENCODINGS[r]===e)return t.ALPHABET_STRING.charAt(r);throw new s.default},t.prototype.decodeExtended=function(e){for(var t=e.length,r="",n=0;n<t;n++){var i=e.charAt(n);if(i>="a"&&i<="d"){if(n>=t-1)throw new a.default;var o=e.charAt(n+1),s="\0";switch(i){case"d":if(!(o>="A"&&o<="Z"))throw new a.default;s=String.fromCharCode(o.charCodeAt(0)+32);break;case"a":if(!(o>="A"&&o<="Z"))throw new a.default;s=String.fromCharCode(o.charCodeAt(0)-64);break;case"b":if(o>="A"&&o<="E")s=String.fromCharCode(o.charCodeAt(0)-38);else if(o>="F"&&o<="J")s=String.fromCharCode(o.charCodeAt(0)-11);else if(o>="K"&&o<="O")s=String.fromCharCode(o.charCodeAt(0)+16);else if(o>="P"&&o<="T")s=String.fromCharCode(o.charCodeAt(0)+43);else if("U"===o)s="\0";else if("V"===o)s="@";else if("W"===o)s="`";else{if(!(o>="X"&&o<="Z"))throw new a.default;s=String.fromCharCode(127)}break;case"c":if(o>="A"&&o<="O")s=String.fromCharCode(o.charCodeAt(0)-32);else{if("Z"!==o)throw new a.default;s=":"}break}r+=s,n++}else r+=i}return r},t.prototype.checkChecksums=function(e){var t=e.length;this.checkOneChecksum(e,t-2,20),this.checkOneChecksum(e,t-1,15)},t.prototype.checkOneChecksum=function(e,r,n){for(var i=1,a=0,s=r-1;s>=0;s--)a+=i*t.ALPHABET_STRING.indexOf(e.charAt(s)),++i>n&&(i=1);if(e.charAt(r)!==t.ALPHABET_STRING[a%47])throw new o.default},t.ALPHABET_STRING="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%abcd*",t.CHARACTER_ENCODINGS=[276,328,324,322,296,292,290,336,274,266,424,420,418,404,402,394,360,356,354,308,282,344,332,326,300,278,436,434,428,422,406,410,364,358,310,314,302,468,466,458,366,374,430,294,474,470,306,350],t.ASTERISK_ENCODING=t.CHARACTER_ENCODINGS[47],t}(u.default),p=h;t.default=p},e11f:function(e,t,r){"use strict";(function(e,n){function i(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var o=r("5f79"),a=r("ace9"),s=o.Buffer,u=o.kMaxLength,c=e.crypto||e.msCrypto,f=Math.pow(2,32)-1;function l(e,t){if("number"!==typeof e||e!==e)throw new TypeError("offset must be a number");if(e>f||e<0)throw new TypeError("offset must be a uint32");if(e>u||e>t)throw new RangeError("offset out of range")}function d(e,t,r){if("number"!==typeof e||e!==e)throw new TypeError("size must be a number");if(e>f||e<0)throw new TypeError("size must be a uint32");if(e+t>r||e>u)throw new RangeError("buffer too small")}function h(e,t,r,i){if(n.browser){var o=e.buffer,s=new Uint8Array(o,t,r);return c.getRandomValues(s),i?void n.nextTick((function(){i(null,e)})):e}if(!i){var u=a(r);return u.copy(e,t),e}a(r,(function(r,n){if(r)return i(r);n.copy(e,t),i(null,e)}))}c&&c.getRandomValues||!n.browser?(t.randomFill=function(t,r,n,i){if(!s.isBuffer(t)&&!(t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"===typeof r)i=r,r=0,n=t.length;else if("function"===typeof n)i=n,n=t.length-r;else if("function"!==typeof i)throw new TypeError('"cb" argument must be a function');return l(r,t.length),d(n,r,t.length),h(t,r,n,i)},t.randomFillSync=function(t,r,n){"undefined"===typeof r&&(r=0);if(!s.isBuffer(t)&&!(t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');l(r,t.length),void 0===n&&(n=t.length-r);return d(n,r,t.length),h(t,r,n)}):(t.randomFill=i,t.randomFillSync=i)}).call(this,r("0ee4"),r("28d0"))},e120:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.EdifactEncoder=void 0;var i=n(r("d618")),o=n(r("d4f8")),a=r("eab1"),s=n(r("3fac")),u=function(){function e(){}return e.prototype.getEncodingMode=function(){return a.EDIFACT_ENCODATION},e.prototype.encode=function(e){var t=new o.default;while(e.hasMoreCharacters()){var r=e.getCurrentChar();this.encodeChar(r,t),e.pos++;var n=t.length();if(n>=4){e.writeCodewords(this.encodeToCodewords(t.toString()));var u=t.toString().substring(4);t.setLengthToZero(),t.append(u);var c=s.default.lookAheadTest(e.getMessage(),e.pos,this.getEncodingMode());if(c!==this.getEncodingMode()){e.signalEncoderChange(a.ASCII_ENCODATION);break}}}t.append(i.default.getCharAt(31)),this.handleEOD(e,t)},e.prototype.handleEOD=function(e,t){try{var r=t.length();if(0===r)return;if(1===r){e.updateSymbolInfo();var n=e.getSymbolInfo().getDataCapacity()-e.getCodewordCount(),i=e.getRemainingCharacters();if(i>n&&(e.updateSymbolInfo(e.getCodewordCount()+1),n=e.getSymbolInfo().getDataCapacity()-e.getCodewordCount()),i<=n&&n<=2)return}if(r>4)throw new Error("Count must not exceed 4");var o=r-1,s=this.encodeToCodewords(t.toString()),u=!e.hasMoreCharacters(),c=u&&o<=2;if(o<=2){e.updateSymbolInfo(e.getCodewordCount()+o);n=e.getSymbolInfo().getDataCapacity()-e.getCodewordCount();n>=3&&(c=!1,e.updateSymbolInfo(e.getCodewordCount()+s.length))}c?(e.resetSymbolInfo(),e.pos-=o):e.writeCodewords(s)}finally{e.signalEncoderChange(a.ASCII_ENCODATION)}},e.prototype.encodeChar=function(e,t){e>=" ".charCodeAt(0)&&e<="?".charCodeAt(0)?t.append(e):e>="@".charCodeAt(0)&&e<="^".charCodeAt(0)?t.append(i.default.getCharAt(e-64)):s.default.illegalCharacter(i.default.getCharAt(e))},e.prototype.encodeToCodewords=function(e){var t=e.length;if(0===t)throw new Error("StringBuilder must not be empty");var r=e.charAt(0).charCodeAt(0),n=t>=2?e.charAt(1).charCodeAt(0):0,i=t>=3?e.charAt(2).charCodeAt(0):0,a=t>=4?e.charAt(3).charCodeAt(0):0,s=(r<<18)+(n<<12)+(i<<6)+a,u=s>>16&255,c=s>>8&255,f=255&s,l=new o.default;return l.append(u),t>=2&&l.append(c),t>=3&&l.append(f),l.toString()},e}();t.EdifactEncoder=u},e158:function(e){e.exports=JSON.parse('{"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}')},e2c3:function(e,t){e.exports=function(e){var t,r=e.length;while(r--){if(t=e.readUInt8(r),255!==t){t++,e.writeUInt8(t,r);break}e.writeUInt8(0,r)}}},e34d:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.examPointsRecordGetMyPointsLogInfo=t.creditAppletGetMyPointsLogInfo=t.configInfo=t.chemicalAppletSelectStockInfo=t.chemicalAppletGetStockDetail=t.chemicalAppletGetCabinetByChemical=t.chemicalAppletCabinetDetail=t.chemicalAioVerifyScanLogin=t.chemicalAioVerifyAppletLogin=t.chemicalAioIdentityScanLogin=t.authGetAppletUser=void 0,t.getConfigByType=function(e){return(0,o.apiResquest)({url:"/system/config/info/getConfigByType",method:"post",data:s({},e)})},t.systemUserProfile=t.systemUserPersonalData=t.systemUserDropList=t.systemNoticeGetNoticeType=t.systemNoticeGetNoticeList=t.systemNoticeGetNoticeDetail=t.systemNoticeGetNoticeCount=t.systemMineUserEdit=t.systemDeptDropList=t.systemAppletRolePermission=t.systemAppletLayoutSelect=t.studentinfoFacemy=t.securityDataStatisticsGetUserIdentity=t.securityCheckPlanPlantList=t.securityCheckDangerNotHazardOneCollect=t.securityCheckDangerHazardOneCollect=t.reportAppletReportBsEquipStatusList=t.reportAppletReportBsEquipDangerList=t.reportAppletReportBsEquipDangerCheckList=t.reportAppletReportBsEquipAppointTopList=t.reportAppletReportApiResourceRateResourceList=t.reportAppletReportApiResourceRateAnalysisList=t.reportAppletReportApiEquipRankTopList=t.reportAppletReportApiEquipOverdueList=t.reportAppletReportApiEquipOverdueGetLifePageList=t.reportAppletReportApiEquipLifeList=t.reportAppletReportApiEquipLifeGetReportBsEquipLifeList=t.reportAppletReportApiDeviceStatGetDeviceStat=t.reportAppletReportApiCageRateList=t.reportAppletReportApiCageRateCageRateList=t.reportAppStatisticsWarningHandle=t.reportAppStatisticsPersonDeviceSafety=t.reportAppStatisticsLabStateStatistics=t.reportAppStatisticsLabNumberPeople=t.reportAppStatisticsHazardTotalSort=t.reportAppStatisticsDangerSort=t.reportAppStatisticsCountStatistics=t.reportAppStatisticsChemicalStockSort=t.outSubjectPhoto=t.logout=t.login=t.laboratorySubPassOutIsotopeSubSign=t.laboratoryPlanCloseRiskPlan=t.laboratoryClassTypeGetList=t.laboratoryClassLevelGetList=t.laboratoryBigViewSelectTriggerInfo=t.laboratoryBigViewGetFloorByBigView=t.laboratoryAppletSubList=t.laboratoryAppletGetSubDetailInfo=t.laboratoryAppBoardScanCodeVerification=t.iotAppSpeakerPlayVoice=t.iotAppSpeakerFindHorn=t.gradingControl=t.getLogoInfo=void 0;var i=n(r("7ca3")),o=r("4fd4");function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){(0,i.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}t.login=function(e){return(0,o.apiResquest)({url:"/auth/appletLogin",method:"POST",data:s({},e)})};t.logout=function(e){return(0,o.apiResquest)({url:"/auth/logout",method:"GET",data:e})};t.configInfo=function(e){return(0,o.apiResquest)({url:"/auth/configInfo",method:"GET",data:e})};t.getLogoInfo=function(e){return(0,o.apiResquest)({url:"/system/config/info/getConfigByType",method:"GET",data:e})};t.chemicalAioIdentityScanLogin=function(e){return(0,o.apiResquest)({url:"/chemical/aio/identity/scanLogin",method:"GET",data:e})};t.laboratoryAppletSubList=function(e){return(0,o.apiResquest)({url:"/laboratory/applet/subList",method:"POST",data:s({},e)})};t.laboratoryAppletGetSubDetailInfo=function(e){return(0,o.apiResquest)({url:"/laboratory/applet/getSubDetailInfo",method:"GET",data:e})};t.iotAppSpeakerFindHorn=function(e){return(0,o.apiResquest)({url:"/iot/app/speaker/findHorn",method:"GET",data:e})};t.iotAppSpeakerPlayVoice=function(e){return(0,o.apiResquest)({url:"/iot/app/speaker/playVoice",method:"GET",data:e})};t.chemicalAppletCabinetDetail=function(e){return(0,o.apiResquest)({url:"/chemical/applet/cabinetDetail",method:"GET",data:e})};t.chemicalAppletGetCabinetByChemical=function(e){return(0,o.apiResquest)({url:"/chemical/applet/getCabinetByChemical",method:"GET",data:e})};t.chemicalAppletGetStockDetail=function(e){return(0,o.apiResquest)({url:"/chemical/applet/getStockDetail",method:"GET",data:e})};t.systemUserProfile=function(e){return(0,o.apiResquest)({url:"/system/user/profile",method:"GET",data:e})};t.systemMineUserEdit=function(e){return(0,o.apiResquest)({url:"/system/mine/user/edit",method:"POST",data:s({},e)})};t.systemUserDropList=function(e){return(0,o.apiResquest)({url:"/system/user/dropList",method:"POST",data:s({},e)})};t.securityDataStatisticsGetUserIdentity=function(e){return(0,o.apiResquest)({url:"/security/dataStatistics/getUserIdentity",method:"GET",data:e})};t.systemAppletLayoutSelect=function(e){return(0,o.apiResquest)({url:"/system/applet/layout/select",method:"GET",data:e})};t.systemAppletRolePermission=function(e){return(0,o.apiResquest)({url:"/system/applet/role/permission",method:"GET",data:e})};t.reportAppStatisticsCountStatistics=function(e){return(0,o.apiResquest)({url:"/report/app/statistics/countStatistics",method:"GET",data:e})};t.reportAppStatisticsLabStateStatistics=function(e){return(0,o.apiResquest)({url:"/report/app/statistics/labStateStatistics",method:"GET",data:e})};t.reportAppStatisticsLabNumberPeople=function(e){return(0,o.apiResquest)({url:"/report/app/statistics/labNumberPeople",method:"GET",data:e})};t.reportAppStatisticsPersonDeviceSafety=function(e){return(0,o.apiResquest)({url:"/report/app/statistics/personDeviceSafety",method:"GET",data:e})};t.reportAppStatisticsHazardTotalSort=function(e){return(0,o.apiResquest)({url:"/report/app/statistics/hazardTotalSort",method:"GET",data:e})};t.reportAppStatisticsChemicalStockSort=function(e){return(0,o.apiResquest)({url:"/report/app/statistics/chemicalStockSort",method:"GET",data:e})};t.securityCheckPlanPlantList=function(e){return(0,o.apiResquest)({url:"/security/checkPlan/plantList",method:"POST",data:s({},e)})};t.reportAppStatisticsDangerSort=function(e){return(0,o.apiResquest)({url:"/report/app/statistics/dangerSort",method:"GET",data:e})};t.securityCheckDangerHazardOneCollect=function(e){return(0,o.apiResquest)({url:"/security/checkDanger/hazardOneCollect",method:"GET",data:e})};t.securityCheckDangerNotHazardOneCollect=function(e){return(0,o.apiResquest)({url:"/security/checkDanger/notHazardOneCollect",method:"POST",data:s({},e)})};t.reportAppStatisticsWarningHandle=function(e){return(0,o.apiResquest)({url:"/report/app/statistics/warningHandle",method:"GET",data:e})};t.reportAppletReportApiDeviceStatGetDeviceStat=function(e){return(0,o.apiResquest)({url:"/report/applet/reportApiDeviceStat/getDeviceStat",method:"GET",data:e})};t.reportAppletReportBsEquipDangerCheckList=function(e){return(0,o.apiResquest)({url:"/report/applet/reportBsEquipDanger/checkList",method:"GET",data:e})};t.reportAppletReportBsEquipDangerList=function(e){return(0,o.apiResquest)({url:"/report/applet/reportBsEquipDanger/list",method:"POST",data:s({},e)})};t.reportAppletReportApiEquipOverdueList=function(e){return(0,o.apiResquest)({url:"/report/applet/reportApiEquipOverdue/list",method:"GET",data:e})};t.reportAppletReportApiEquipLifeList=function(e){return(0,o.apiResquest)({url:"/report/applet/reportApiEquipLife/list",method:"GET",data:e})};t.reportAppletReportApiEquipOverdueGetLifePageList=function(e){return(0,o.apiResquest)({url:"/report/applet/reportApiEquipOverdue/getLifePageList",method:"GET",data:e})};t.reportAppletReportApiEquipLifeGetReportBsEquipLifeList=function(e){return(0,o.apiResquest)({url:"/report/applet/reportApiEquipLife/getReportBsEquipLifeList",method:"POST",data:s({},e)})};t.reportAppletReportApiEquipRankTopList=function(e){return(0,o.apiResquest)({url:"/report/applet/reportApiEquipRank/topList",method:"GET",data:e})};t.reportAppletReportBsEquipAppointTopList=function(e){return(0,o.apiResquest)({url:"/report/applet/reportBsEquipAppoint/topList",method:"GET",data:e})};t.reportAppletReportBsEquipStatusList=function(e){return(0,o.apiResquest)({url:"/report/applet/reportBsEquipStatus/list",method:"GET",data:e})};t.reportAppletReportApiCageRateList=function(e){return(0,o.apiResquest)({url:"/report/applet/reportApiCageRate/list",method:"GET",data:e})};t.reportAppletReportApiCageRateCageRateList=function(e){return(0,o.apiResquest)({url:"/report/applet/reportApiCageRate/cageRateList",method:"GET",data:e})};t.reportAppletReportApiResourceRateResourceList=function(e){return(0,o.apiResquest)({url:"/report/applet/reportApiResourceRate/resourceList",method:"GET",data:e})};t.reportAppletReportApiResourceRateAnalysisList=function(e){return(0,o.apiResquest)({url:"/report/applet/reportApiResourceRate/analysisList",method:"GET",data:e})};t.chemicalAioVerifyScanLogin=function(e){return(0,o.apiResquest)({url:"/chemical/aio/verify/scanLogin",method:"GET",data:e})};t.chemicalAioVerifyAppletLogin=function(e){return(0,o.apiResquest)({url:"/chemical/aio/verify/appletLogin",method:"GET",data:e})};t.laboratoryAppBoardScanCodeVerification=function(e){return(0,o.apiResquest)({url:"/laboratory/app/board/scanCodeVerification",method:"POST",data:s({},e)})};t.systemNoticeGetNoticeCount=function(e,t){return(0,o.apiResquest)({url:"/system/notice/getNoticeCount",method:"GET",data:t})};t.systemNoticeGetNoticeList=function(e){return(0,o.apiResquest)({url:"/system/notice/getNoticeList",method:"GET",data:e})};t.systemNoticeGetNoticeDetail=function(e){return(0,o.apiResquest)({url:"/system/notice/getNoticeDetail",method:"GET",data:e})};t.systemNoticeGetNoticeType=function(e){return(0,o.apiResquest)({url:"/system/notice/getNoticeType",method:"GET",data:e})};t.studentinfoFacemy=function(e){return(0,o.apiResquest)({url:"/base/app/lab/api/studentinfo/my",method:"GET"})};t.outSubjectPhoto=function(e,t){return(0,o.apiResquestForm)({url:"/base/app/lab/api/outSubjectPhoto",method:"GET",data:t})};t.gradingControl=function(e){return(0,o.apiResquest)({url:"/base/app/lab/manage/havingList",method:"POST",data:s({},e)})};t.examPointsRecordGetMyPointsLogInfo=function(e){return(0,o.apiResquest)({url:"/exam/points/record/getMyPointsLogInfo",method:"POST",data:s({},e)})};t.creditAppletGetMyPointsLogInfo=function(e){return(0,o.apiResquest)({url:"/credit/applet/getMyPointsLogInfo",method:"POST",data:s({},e)})};t.systemDeptDropList=function(e){return(0,o.apiResquest)({url:"/system/dept/dropList",method:"POST",data:s({},e)})};t.laboratoryClassTypeGetList=function(e){return(0,o.apiResquest)({url:"/laboratory/typeConfig/getList",method:"POST",data:s({},e)})};t.laboratoryClassLevelGetList=function(e){return(0,o.apiResquest)({url:"/laboratory/levelConfig/getLevelTitleList",method:"POST",data:s({},e)})};t.systemUserPersonalData=function(e){return(0,o.apiResquest)({url:"/system/user/personalData",method:"get"})};t.authGetAppletUser=function(e){return(0,o.apiResquest)({url:"/auth/getAppletUser",method:"POST",data:s({},e)})};t.laboratorySubPassOutIsotopeSubSign=function(e){return(0,o.apiResquest)({url:"/laboratory/subPassOut/isotopeSubSign",method:"GET",data:e})};t.chemicalAppletSelectStockInfo=function(e){return(0,o.apiResquest)({url:"/chemical/applet/selectStockInfo",method:"POST",data:s({},e)})};t.laboratoryBigViewSelectTriggerInfo=function(e){return(0,o.apiResquest)({url:"/laboratory/bigView/selectTriggerInfo",method:"GET",data:e})};t.laboratoryPlanCloseRiskPlan=function(e){return(0,o.apiResquest)({url:"/laboratory/plan/closeRiskPlan",method:"GET",data:e})};t.laboratoryBigViewGetFloorByBigView=function(e){return(0,o.apiResquest)({url:"/laboratory/bigView/getFloorByBigView",method:"GET",data:e})}},e3a5:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("5935")),o=n(r("d4f8")),a=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),s=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.parseInformation=function(){var e=new o.default;e.append("(01)");var r=e.length(),n=this.getGeneralDecoder().extractNumericValueFromBitArray(t.HEADER_SIZE,4);return e.append(n),this.encodeCompressedGtinWithoutAI(e,t.HEADER_SIZE+4,r),this.getGeneralDecoder().decodeAllCodes(e,t.HEADER_SIZE+44)},t.HEADER_SIZE=4,t}(i.default),u=s;t.default=u},e3cf:function(e,t,r){"use strict";(function(e){var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("7eb4")),o=n(r("3b2d")),a=n(r("ee10")),s=n(r("271d")),u=n(r("a22d")),c=n(r("93d8")),f={ajaxLogData:{id:0,type:0,sendTime:0,responseTime:0,useTime:0,url:"",header:"",method:"get",data:"",responseBody:"",responseHeader:"",responseStatus:"",responseMsg:""},options:null,ajaxData:[],install:function(){var t=this,r=this;try{if(this.options=u.default.getOptions(),!this.options.network.status)return;this.ajaxData=s.default.get("request"),this.ajaxData||(this.ajaxData=[]),this.syncReqData(),e.addInterceptor("request",{invoke:function(e){try{e._id_=(new Date).getTime()+"_"+Number(Math.random().toString().replace("0.",""));var t=JSON.parse(JSON.stringify(r.ajaxLogData));t.id=e._id_,t.sendTime=(new Date).getTime(),t.url=r.dataCopy(e.url),t.header=r.dataCopy(e.header),e.method?t.method=r.dataCopy(e.method):t.method="get";var n=c.default.calculateStringByteSize(t);if(n>r.options.network.cache.rowSize)t=c.default.compressObject(t,r.options.network.cache.rowSize);else{var i=c.default.compressObject(e.data,r.options.network.cache.rowSize-n);try{i=JSON.parse(i)}catch(o){}t.data=i}r.ajaxData.unshift(t)}catch(o){console.error("request拦截器invoke出错",o)}},success:function(t,n){return new Promise(function(){var o=(0,a.default)(i.default.mark((function o(a,s){var u,f,h,p,g,y,v,b,m,_,w,A;return i.default.wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(
- //! 延迟请求返回,模拟弱网环境
- u=e.getStorageSync("devtools_uniResLimitType"),!u){i.next=9;break}if(f={"2g":[30,60],"3g-":[10,30],"3g":[3,10],"4g":[.5,3]},h=f[u],!h){i.next=9;break}return p=l(h[0],h[1]),i.next=8,d(1e3*p);case 8:t.errMsg=t.errMsg+" | [devtools模拟弱网延迟:".concat(p,"s]");case 9:if(g=e.getStorageSync("devtools_uniResTimeout"),y=!1,g&&g>1&&(v=Number(g),b=l(0,100),b<v&&(t.statusCode=l(400,600),t.errMsg=t.errMsg+" | [devtools随机超时报错,当前命中的概率阶层为:".concat(v,"%,生成的随机数为:").concat(b,"]"),t.data="[devTools]模拟请求失败结果!",y=!0)),i.prev=12,m=r.ajaxData.find((function(e){return e.id==n._id_})),m){i.next=16;break}return i.abrupt("return");case 16:if(m.responseBodySize=c.default.calculateStringByteSize(t.data),m.responseMsg=t.errMsg,m.responseStatus=t.statusCode,m.responseHeader=t.header,m.type=1,m.responseTime=(new Date).getTime(),m.useTime=((m.responseTime-m.sendTime)/1e3).toFixed(3),_=c.default.calculateStringByteSize(m),_>r.options.network.cache.rowSize)m.responseBody="[内容太长已截断多余部分]",w=c.default.compressObject(m,r.options.network.cache.rowSize),r.ajaxData[r.ajaxData.findIndex((function(e){return e.id==n._id_}))]=w;else{A=t.data;try{A=JSON.parse(JSON.stringify(A))}catch(o){}m.responseBody=c.default.compressObject(A,r.options.network.cache.rowSize-_)}i.next=30;break;case 27:i.prev=27,i.t0=i["catch"](12),console.error("request拦截器success出错",i.t0);case 30:y?s(t.data):a(t);case 31:case"end":return i.stop()}}),o,null,[[12,27]])})));return function(e,t){return o.apply(this,arguments)}}())},fail:function(e,t){try{var n=r.ajaxData.find((function(e){return e.id==t._id_}));if(!n)return;n.type=2,n.responseTime=(new Date).getTime(),n.useTime=((n.responseTime-n.sendTime)/1e3).toFixed(3),n.responseMsg=e.errMsg}catch(i){console.error("request拦截器fail出错",i)}},complete:function(e){}}),e.$on("devTools_delNetworkItemById",(function(e){var r=t.ajaxData.findIndex((function(t){return t.id==e}));-1!=r&&t.ajaxData.splice(r,1),t.saveData()})),e.$on("devTools_delNetworkAll",(function(){t.ajaxData=[],t.saveData()}))}catch(n){console.log("request.install error",n)}},syncReqData:function(){var e=this;setTimeout((function(){try{e.saveData()}catch(t){console.log("request.syncReqData",t)}e.syncReqData()}),4e3)},saveData:function(){this.ajaxData=c.default.compressArray(this.ajaxData,this.options.network.cache.size),s.default.set("request",this.ajaxData)},dataCopy:function(e){try{return"object"==(0,o.default)(e)?JSON.parse(JSON.stringify([e]))[0]:e}catch(t){return console.log("request.dataCopy",t),""}}};function l(e,t){return Number((Math.random()*(t-e)+e).toFixed(2))}function d(e){return new Promise((function(t){setTimeout(t,e)}))}t.default=f}).call(this,r("df3c")["default"])},e3fe:function(e,t,r){e.exports=r("7125").Transform},e415:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("f7fd")),o=function(){function e(){}return e.prototype.exp=function(e){return this.expTable[e]},e.prototype.log=function(e){if(0===e)throw new i.default;return this.logTable[e]},e.addOrSubtract=function(e,t){return e^t},e}(),a=o;t.default=a},e500:function(e,t,r){var n=r("81eb"),i=r("5f79").Buffer;e.exports=function(e,t){return i.from(e.toRed(n.mont(t.modulus)).redPow(new n(t.publicExponent)).fromRed().toArray())}},e5d0:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(){function e(){}return e.numberOfTrailingZeros=function(e){var t;if(0===e)return 32;var r=31;return t=e<<16,0!==t&&(r-=16,e=t),t=e<<8,0!==t&&(r-=8,e=t),t=e<<4,0!==t&&(r-=4,e=t),t=e<<2,0!==t&&(r-=2,e=t),r-(e<<1>>>31)},e.numberOfLeadingZeros=function(e){if(0===e)return 32;var t=1;return e>>>16===0&&(t+=16,e<<=16),e>>>24===0&&(t+=8,e<<=8),e>>>28===0&&(t+=4,e<<=4),e>>>30===0&&(t+=2,e<<=2),t-=e>>>31,t},e.toHexString=function(e){return e.toString(16)},e.toBinaryString=function(e){return String(parseInt(String(e),2))},e.bitCount=function(e){return e-=e>>>1&1431655765,e=(858993459&e)+(e>>>2&858993459),e=e+(e>>>4)&252645135,e+=e>>>8,e+=e>>>16,63&e},e.truncDivision=function(e,t){return Math.trunc(e/t)},e.parseInt=function(e,t){return void 0===t&&(t=void 0),parseInt(e,t)},e.MIN_VALUE_32_BITS=-2147483648,e.MAX_VALUE=Number.MAX_SAFE_INTEGER,e}(),i=n;t.default=i},e620:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.Decrypt=function(e){var t=i.default.enc.Hex.parse(e),r=i.default.enc.Base64.stringify(t),n=i.default.AES.decrypt(r,o,{iv:a,mode:i.default.mode.CBC,padding:i.default.pad.Pkcs7}),s=n.toString(i.default.enc.Utf8);return s.toString()},t.Encrypt=function(e){var t=i.default.enc.Utf8.parse(e),r=i.default.AES.encrypt(t,o,{iv:a,mode:i.default.mode.CBC,padding:i.default.pad.Pkcs7});return r.ciphertext.toString().toUpperCase()};var i=n(r("00ae")),o=i.default.enc.Utf8.parse("J4ny0Ja678Y7P2so"),a=i.default.enc.Utf8.parse("pTNorfvZW2UZJbd0")},e6db:function(e,t,r){var n=r("3b2d")["default"];e.exports=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports["default"]=e.exports},e7a6:function(e,t){},e8e6:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(){function e(){}return e.parseLong=function(e,t){return void 0===t&&(t=void 0),parseInt(e,t)},e}(),i=n;t.default=i},e91c:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={props:{scrollbarSize:{type:Number,default:0},fixedLeftColumns:{type:Array,default:function(){return[]}},data:{type:Array,default:function(){return[]}},transColumns:{type:Array,default:function(){return[]}},border:{type:Boolean,default:!1},showSummary:{type:Boolean,default:!1},summaryMethod:{type:Function},sumText:{type:String,default:"合计"},headerFooterTableLeft:{type:Number,default:0},handleFooterTableScrollLeft:Function},data:function(){return{sums:[]}},watch:{data:{deep:!0,immediate:!0,handler:function(e,t){var r=this,n=[];this.summaryMethod?n=this.summaryMethod({columns:this.transColumns,data:this.data}):this.transColumns.forEach((function(e,t){if(0!==t){var i=r.data.map((function(t){return Number(t[e.name])})),o=[],a=!0;i.forEach((function(e){if(!isNaN(e)){a=!1;var t=(""+e).split(".")[1];o.push(t?t.length:0)}}));var s=Math.max.apply(null,o);n[t]=a?"":i.reduce((function(e,t){var r=Number(t);return isNaN(r)?e:parseFloat((e+t).toFixed(Math.min(s,20)))}),0)}else n[t]=r.sumText})),this.sums=n}}}};t.default=n},e994:function(e){e.exports=JSON.parse('{"aes-128-ecb":{"cipher":"AES","key":128,"iv":0,"mode":"ECB","type":"block"},"aes-192-ecb":{"cipher":"AES","key":192,"iv":0,"mode":"ECB","type":"block"},"aes-256-ecb":{"cipher":"AES","key":256,"iv":0,"mode":"ECB","type":"block"},"aes-128-cbc":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes-192-cbc":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes-256-cbc":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes128":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes192":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes256":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes-128-cfb":{"cipher":"AES","key":128,"iv":16,"mode":"CFB","type":"stream"},"aes-192-cfb":{"cipher":"AES","key":192,"iv":16,"mode":"CFB","type":"stream"},"aes-256-cfb":{"cipher":"AES","key":256,"iv":16,"mode":"CFB","type":"stream"},"aes-128-cfb8":{"cipher":"AES","key":128,"iv":16,"mode":"CFB8","type":"stream"},"aes-192-cfb8":{"cipher":"AES","key":192,"iv":16,"mode":"CFB8","type":"stream"},"aes-256-cfb8":{"cipher":"AES","key":256,"iv":16,"mode":"CFB8","type":"stream"},"aes-128-cfb1":{"cipher":"AES","key":128,"iv":16,"mode":"CFB1","type":"stream"},"aes-192-cfb1":{"cipher":"AES","key":192,"iv":16,"mode":"CFB1","type":"stream"},"aes-256-cfb1":{"cipher":"AES","key":256,"iv":16,"mode":"CFB1","type":"stream"},"aes-128-ofb":{"cipher":"AES","key":128,"iv":16,"mode":"OFB","type":"stream"},"aes-192-ofb":{"cipher":"AES","key":192,"iv":16,"mode":"OFB","type":"stream"},"aes-256-ofb":{"cipher":"AES","key":256,"iv":16,"mode":"OFB","type":"stream"},"aes-128-ctr":{"cipher":"AES","key":128,"iv":16,"mode":"CTR","type":"stream"},"aes-192-ctr":{"cipher":"AES","key":192,"iv":16,"mode":"CTR","type":"stream"},"aes-256-ctr":{"cipher":"AES","key":256,"iv":16,"mode":"CTR","type":"stream"},"aes-128-gcm":{"cipher":"AES","key":128,"iv":12,"mode":"GCM","type":"auth"},"aes-192-gcm":{"cipher":"AES","key":192,"iv":12,"mode":"GCM","type":"auth"},"aes-256-gcm":{"cipher":"AES","key":256,"iv":12,"mode":"GCM","type":"auth"}}')},e9fe:function(e){e.exports=JSON.parse('{"uni-load-more.contentdown":"Pull up to show more","uni-load-more.contentrefresh":"loading...","uni-load-more.contentnomore":"No more data"}')},ea15:function(e,t,r){var n=r("0446"),i=r("5f79").Buffer,o=r("cfef"),a=r("2c2e");function s(e,t,r,a){o.call(this),this._cipher=new n.AES(t),this._prev=i.from(r),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=a,this._mode=e}a(s,o),s.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},s.prototype._final=function(){this._cipher.scrub()},e.exports=s},eab1:function(e,t,r){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.X12_UNLATCH=t.X12_ENCODATION=t.UPPER_SHIFT=t.TEXT_ENCODATION=t.SymbolShapeHint=t.PAD=t.MODULO_VALUE=t.MACRO_TRAILER=t.MACRO_06_HEADER=t.MACRO_06=t.MACRO_05_HEADER=t.MACRO_05=t.LOG=t.LATCH_TO_TEXT=t.LATCH_TO_EDIFACT=t.LATCH_TO_C40=t.LATCH_TO_BASE256=t.LATCH_TO_ANSIX12=t.FACTOR_SETS=t.FACTORS=t.EDIFACT_ENCODATION=t.C40_UNLATCH=t.C40_ENCODATION=t.BASE256_ENCODATION=t.ASCII_ENCODATION=t.ALOG=void 0;t.FACTOR_SETS=[5,7,10,11,12,14,18,20,24,28,36,42,48,56,62,68];t.FACTORS=[[228,48,15,111,62],[23,68,144,134,240,92,254],[28,24,185,166,223,248,116,255,110,61],[175,138,205,12,194,168,39,245,60,97,120],[41,153,158,91,61,42,142,213,97,178,100,242],[156,97,192,252,95,9,157,119,138,45,18,186,83,185],[83,195,100,39,188,75,66,61,241,213,109,129,94,254,225,48,90,188],[15,195,244,9,233,71,168,2,188,160,153,145,253,79,108,82,27,174,186,172],[52,190,88,205,109,39,176,21,155,197,251,223,155,21,5,172,254,124,12,181,184,96,50,193],[211,231,43,97,71,96,103,174,37,151,170,53,75,34,249,121,17,138,110,213,141,136,120,151,233,168,93,255],[245,127,242,218,130,250,162,181,102,120,84,179,220,251,80,182,229,18,2,4,68,33,101,137,95,119,115,44,175,184,59,25,225,98,81,112],[77,193,137,31,19,38,22,153,247,105,122,2,245,133,242,8,175,95,100,9,167,105,214,111,57,121,21,1,253,57,54,101,248,202,69,50,150,177,226,5,9,5],[245,132,172,223,96,32,117,22,238,133,238,231,205,188,237,87,191,106,16,147,118,23,37,90,170,205,131,88,120,100,66,138,186,240,82,44,176,87,187,147,160,175,69,213,92,253,225,19],[175,9,223,238,12,17,220,208,100,29,175,170,230,192,215,235,150,159,36,223,38,200,132,54,228,146,218,234,117,203,29,232,144,238,22,150,201,117,62,207,164,13,137,245,127,67,247,28,155,43,203,107,233,53,143,46],[242,93,169,50,144,210,39,118,202,188,201,189,143,108,196,37,185,112,134,230,245,63,197,190,250,106,185,221,175,64,114,71,161,44,147,6,27,218,51,63,87,10,40,130,188,17,163,31,176,170,4,107,232,7,94,166,224,124,86,47,11,204],[220,228,173,89,251,149,159,56,89,33,147,244,154,36,73,127,213,136,248,180,234,197,158,177,68,122,93,213,15,160,227,236,66,139,153,185,202,167,179,25,220,232,96,210,231,136,223,239,181,241,59,52,172,25,49,232,211,189,64,54,108,153,132,63,96,103,82,186]];t.MODULO_VALUE=301;var i,o=(n=function(e,t){for(var r=1,n=0;n<255;n++)t[n]=r,e[r]=n,r*=2,r>=256&&(r^=301);return{LOG:e,ALOG:t}}([],[]),n.LOG),a=n.ALOG;t.ALOG=a,t.LOG=o,t.SymbolShapeHint=i,function(e){e[e["FORCE_NONE"]=0]="FORCE_NONE",e[e["FORCE_SQUARE"]=1]="FORCE_SQUARE",e[e["FORCE_RECTANGLE"]=2]="FORCE_RECTANGLE"}(i||(t.SymbolShapeHint=i={}));t.PAD=129;t.LATCH_TO_C40=230;t.LATCH_TO_BASE256=231;t.UPPER_SHIFT=235;t.MACRO_05=236;t.MACRO_06=237;t.LATCH_TO_ANSIX12=238;t.LATCH_TO_TEXT=239;t.LATCH_TO_EDIFACT=240;t.C40_UNLATCH=254;t.X12_UNLATCH=254;t.MACRO_05_HEADER="[)>05";t.MACRO_06_HEADER="[)>06";t.MACRO_TRAILER="";t.ASCII_ENCODATION=0;t.C40_ENCODATION=1;t.TEXT_ENCODATION=2;t.X12_ENCODATION=3;t.EDIFACT_ENCODATION=4;t.BASE256_ENCODATION=5},ecbf:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.HTMLCanvasElementLuminanceSource=void 0;var i=n(r("a6ba")),o=n(r("3727")),a=n(r("f7fd")),s=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),u=function(e){function t(r,n){void 0===n&&(n=!1);var i=e.call(this,r.width,r.height)||this;return i.canvas=r,i.tempCanvasElement=null,i.buffer=t.makeBufferFromCanvasImageData(r,n),i}return s(t,e),t.makeBufferFromCanvasImageData=function(e,r){void 0===r&&(r=!1);var n=e.getContext("2d").getImageData(0,0,e.width,e.height);return t.toGrayscaleBuffer(n.data,e.width,e.height,r)},t.toGrayscaleBuffer=function(e,r,n,i){void 0===i&&(i=!1);var o=new Uint8ClampedArray(r*n);if(t.FRAME_INDEX=!t.FRAME_INDEX,t.FRAME_INDEX||!i)for(var a=0,s=0,u=e.length;a<u;a+=4,s++){var c=void 0,f=e[a+3];if(0===f)c=255;else{var l=e[a],d=e[a+1],h=e[a+2];c=306*l+601*d+117*h+512>>10}o[s]=c}else{a=0,s=0;for(var p=e.length;a<p;a+=4,s++){c=void 0,f=e[a+3];if(0===f)c=255;else{l=e[a],d=e[a+1],h=e[a+2];c=306*l+601*d+117*h+512>>10}o[s]=255-c}}return o},t.prototype.getRow=function(e,t){if(e<0||e>=this.getHeight())throw new a.default("Requested row is outside the image: "+e);var r=this.getWidth(),n=e*r;return null===t?t=this.buffer.slice(n,n+r):(t.length<r&&(t=new Uint8ClampedArray(r)),t.set(this.buffer.slice(n,n+r))),t},t.prototype.getMatrix=function(){return this.buffer},t.prototype.isCropSupported=function(){return!0},t.prototype.crop=function(t,r,n,i){return e.prototype.crop.call(this,t,r,n,i),this},t.prototype.isRotateSupported=function(){return!0},t.prototype.rotateCounterClockwise=function(){return this.rotate(-90),this},t.prototype.rotateCounterClockwise45=function(){return this.rotate(-45),this},t.prototype.getTempCanvasElement=function(){if(null===this.tempCanvasElement){var e=this.canvas.ownerDocument.createElement("canvas");e.width=this.canvas.width,e.height=this.canvas.height,this.tempCanvasElement=e}return this.tempCanvasElement},t.prototype.rotate=function(e){var r=this.getTempCanvasElement(),n=r.getContext("2d"),i=e*t.DEGREE_TO_RADIANS,o=this.canvas.width,a=this.canvas.height,s=Math.ceil(Math.abs(Math.cos(i))*o+Math.abs(Math.sin(i))*a),u=Math.ceil(Math.abs(Math.sin(i))*o+Math.abs(Math.cos(i))*a);return r.width=s,r.height=u,n.translate(s/2,u/2),n.rotate(i),n.drawImage(this.canvas,o/-2,a/-2),this.buffer=t.makeBufferFromCanvasImageData(r),this},t.prototype.invert=function(){return new i.default(this)},t.DEGREE_TO_RADIANS=Math.PI/180,t.FRAME_INDEX=!0,t}(o.default);t.HTMLCanvasElementLuminanceSource=u},ed45:function(e,t){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports["default"]=e.exports},ed54:function(e,t,r){var n=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,i=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,o=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,a=r("0a0c"),s=r("b577"),u=r("5f79").Buffer;e.exports=function(e,t){var r,c=e.toString(),f=c.match(n);if(f){var l="aes"+f[1],d=u.from(f[2],"hex"),h=u.from(f[3].replace(/[\r\n]/g,""),"base64"),p=a(t,d.slice(0,8),parseInt(f[1],10)).key,g=[],y=s.createDecipheriv(l,p,d);g.push(y.update(h)),g.push(y.final()),r=u.concat(g)}else{var v=c.match(o);r=u.from(v[2].replace(/[\r\n]/g,""),"base64")}var b=c.match(i)[1];return{tag:b,data:r}}},edd4:function(e,t,r){"use strict";(function(t,n){var i=r("ca99");function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){(function(e,t,r){var n=e.entry;e.entry=null;while(n){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e})(t,e)}}e.exports=v;var a,s=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?setImmediate:i.nextTick;v.WritableState=y;var u=Object.create(r("8ce8"));u.inherits=r("2c2e");var c={deprecate:r("88fd")},f=r("51c3"),l=r("5f79").Buffer,d=n.Uint8Array||function(){};var h,p=r("c741");function g(){}function y(e,t){a=a||r("0ec1"),e=e||{};var n=t instanceof a;this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var u=e.highWaterMark,c=e.writableHighWaterMark,f=this.objectMode?16:16384;this.highWaterMark=u||0===u?u:n&&(c||0===c)?c:f,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var l=!1===e.decodeStrings;this.decodeStrings=!l,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){(function(e,t){var r=e._writableState,n=r.sync,o=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)(function(e,t,r,n,o){--t.pendingcb,r?(i.nextTick(o,n),i.nextTick(S,e,t),e._writableState.errorEmitted=!0,e.emit("error",n)):(o(n),e._writableState.errorEmitted=!0,e.emit("error",n),S(e,t))})(e,r,n,t,o);else{var a=w(r);a||r.corked||r.bufferProcessing||!r.bufferedRequest||_(e,r),n?s(m,e,r,a,o):m(e,r,a,o)}})(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function v(e){if(a=a||r("0ec1"),!h.call(v,this)&&!(this instanceof a))return new v(e);this._writableState=new y(e,this),this.writable=!0,e&&("function"===typeof e.write&&(this._write=e.write),"function"===typeof e.writev&&(this._writev=e.writev),"function"===typeof e.destroy&&(this._destroy=e.destroy),"function"===typeof e.final&&(this._final=e.final)),f.call(this)}function b(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function m(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),S(e,t)}function _(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),a=t.corkedRequestsFree;a.entry=r;var s=0,u=!0;while(r)i[s]=r,r.isBuf||(u=!1),r=r.next,s+=1;i.allBuffers=u,b(e,t,!0,t.length,i,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{while(r){var c=r.chunk,f=r.encoding,l=r.callback,d=t.objectMode?1:c.length;if(b(e,t,!1,d,c,f,l),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function w(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function A(e,t){e._final((function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),S(e,t)}))}function S(e,t){var r=w(t);return r&&(function(e,t){t.prefinished||t.finalCalled||("function"===typeof e._final?(t.pendingcb++,t.finalCalled=!0,i.nextTick(A,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}u.inherits(v,f),y.prototype.getBuffer=function(){var e=this.bufferedRequest,t=[];while(e)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(y.prototype,"buffer",{get:c.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"===typeof Symbol&&Symbol.hasInstance&&"function"===typeof Function.prototype[Symbol.hasInstance]?(h=Function.prototype[Symbol.hasInstance],Object.defineProperty(v,Symbol.hasInstance,{value:function(e){return!!h.call(this,e)||this===v&&(e&&e._writableState instanceof y)}})):h=function(e){return e instanceof this},v.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},v.prototype.write=function(e,t,r){var n=this._writableState,o=!1,a=!n.objectMode&&function(e){return l.isBuffer(e)||e instanceof d}(e);return a&&!l.isBuffer(e)&&(e=function(e){return l.from(e)}(e)),"function"===typeof t&&(r=t,t=null),a?t="buffer":t||(t=n.defaultEncoding),"function"!==typeof r&&(r=g),n.ended?function(e,t){var r=new Error("write after end");e.emit("error",r),i.nextTick(t,r)}(this,r):(a||function(e,t,r,n){var o=!0,a=!1;return null===r?a=new TypeError("May not write null values to stream"):"string"===typeof r||void 0===r||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),i.nextTick(n,a),o=!1),o}(this,n,e,r))&&(n.pendingcb++,o=function(e,t,r,n,i,o){if(!r){var a=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!==typeof t||(t=l.from(t,r));return t}(t,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var u=t.length<t.highWaterMark;u||(t.needDrain=!0);if(t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else b(e,t,!1,s,n,i,o);return u}(this,n,a,e,t,r)),o},v.prototype.cork=function(){var e=this._writableState;e.corked++},v.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||_(this,e))},v.prototype.setDefaultEncoding=function(e){if("string"===typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(v.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),v.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},v.prototype._writev=null,v.prototype.end=function(e,t,r){var n=this._writableState;"function"===typeof e?(r=e,e=null,t=null):"function"===typeof t&&(r=t,t=null),null!==e&&void 0!==e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||function(e,t,r){t.ending=!0,S(e,t),r&&(t.finished?i.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,n,r)},Object.defineProperty(v.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),v.prototype.destroy=p.destroy,v.prototype._undestroy=p.undestroy,v.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,r("28d0"),r("0ee4"))},ee10:function(e,t){function r(e,t,r,n,i,o,a){try{var s=e[o](a),u=s.value}catch(c){return void r(c)}s.done?t(u):Promise.resolve(u).then(n,i)}e.exports=function(e){return function(){var t=this,n=arguments;return new Promise((function(i,o){var a=e.apply(t,n);function s(e){r(a,i,o,s,u,"next",e)}function u(e){r(a,i,o,s,u,"throw",e)}s(void 0)}))}},e.exports.__esModule=!0,e.exports["default"]=e.exports},f0b7:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(){function e(e,t){this.count=e,this.dataCodewords=t}return e.prototype.getCount=function(){return this.count},e.prototype.getDataCodewords=function(){return this.dataCodewords},e}(),i=n;t.default=i},f112:function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(t,r){var n=e.getSystemInfoSync(),i=e.getStorageSync("devTools_tagConfig");i||(i={}),i=Object.assign({show:t.bubble.status,x:n.screenWidth-90,y:n.screenHeight-90},i),i.show=t.bubble.status;var o={min:{x:0,y:0},max:{x:n.screenWidth-70,y:n.screenHeight-24}},a=new plus.nativeObj.View("debugTag",{top:i.y+"px",left:i.x+"px",height:"24px",width:"70px",backgroundColor:t.bubble.bgColor});a.drawText(t.bubble.text,{},{size:"12px",color:t.bubble.color,weight:"bold"}),i.show&&a.show();var s=!1,u={l:0,t:0,x:0,y:0,time:0,hasMove:!1};a.addEventListener("touchstart",(function(e){s=!0,u.l=e.clientX,u.t=e.clientY,u.time=(new Date).getTime(),u.hasMove=!1})),a.addEventListener("touchmove",(function(e){if(s){u.hasMove||(u.hasMove=!0);var t=e.screenX-u.l,r=e.screenY-u.t;t=Math.min(Math.max(t,o.min.x),o.max.x),r=Math.min(Math.max(r,o.min.y),o.max.y),a.setStyle({top:r+"px",left:t+"px"}),u.x=t,u.y=r}})),a.addEventListener("touchend",(function(n){if(s=!1,!u.hasMove||u.time>(new Date).getTime()-300){var o=getCurrentPages(),a=t.route.substring(1,t.route.length-2);if(o[o.length-1].route==a)return;r.show()}else i.x=u.x,i.y=u.y,e.setStorageSync("devTools_tagConfig",i)})),e.setStorageSync("devTools_tagConfig",i)};t.default=r}).call(this,r("df3c")["default"])},f180:function(e){e.exports=JSON.parse('{"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}')},f228:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("7322")),o=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.getNotFoundInstance=function(){return new t},t.kind="NotFoundException",t}(i.default),s=a;t.default=s},f239:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(){function e(e,t,r){this.pairs=e,this.rowNumber=t,this.wasReversed=r}return e.prototype.getPairs=function(){return this.pairs},e.prototype.getRowNumber=function(){return this.rowNumber},e.prototype.isReversed=function(){return this.wasReversed},e.prototype.isEquivalent=function(e){return this.checkEqualitity(this,e)},e.prototype.toString=function(){return"{ "+this.pairs+" }"},e.prototype.equals=function(t,r){return t instanceof e&&(this.checkEqualitity(t,r)&&t.wasReversed===r.wasReversed)},e.prototype.checkEqualitity=function(e,t){var r;if(e&&t)return e.forEach((function(e,n){t.forEach((function(t){e.getLeftChar().getValue()===t.getLeftChar().getValue()&&e.getRightChar().getValue()===t.getRightChar().getValue()&&e.getFinderPatter().getValue()===t.getFinderPatter().getValue()&&(r=!0)}))})),r},e}(),i=n;t.default=i},f2aa:function(e,t,r){var n=r("5f79").Buffer,i=r("1f63");function o(e,t,r){var o=t.length,a=i(t,e._cache);return e._cache=e._cache.slice(o),e._prev=n.concat([e._prev,r?t:a]),a}t.encrypt=function(e,t,r){var i,a=n.allocUnsafe(0);while(t.length){if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=n.allocUnsafe(0)),!(e._cache.length<=t.length)){a=n.concat([a,o(e,t,r)]);break}i=e._cache.length,a=n.concat([a,o(e,t.slice(0,i),r)]),t=t.slice(i)}return a}},f2b5:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.C40Encoder=void 0;var i=n(r("d4f8")),o=n(r("3fac")),a=r("eab1"),s=function(){function e(){}return e.prototype.getEncodingMode=function(){return a.C40_ENCODATION},e.prototype.encodeMaximal=function(e){var t=new i.default,r=0,n=e.pos,o=0;while(e.hasMoreCharacters()){var s=e.getCurrentChar();e.pos++,r=this.encodeChar(s,t),t.length()%3===0&&(n=e.pos,o=t.length())}if(o!==t.length()){var u=Math.floor(t.length()/3*2),c=Math.floor(e.getCodewordCount()+u+1);e.updateSymbolInfo(c);var f=e.getSymbolInfo().getDataCapacity()-c,l=Math.floor(t.length()%3);(2===l&&2!==f||1===l&&(r>3||1!==f))&&(e.pos=n)}t.length()>0&&e.writeCodeword(a.LATCH_TO_C40),this.handleEOD(e,t)},e.prototype.encode=function(e){var t=new i.default;while(e.hasMoreCharacters()){var r=e.getCurrentChar();e.pos++;var n=this.encodeChar(r,t),s=2*Math.floor(t.length()/3),u=e.getCodewordCount()+s;e.updateSymbolInfo(u);var c=e.getSymbolInfo().getDataCapacity()-u;if(!e.hasMoreCharacters()){var f=new i.default;t.length()%3===2&&2!==c&&(n=this.backtrackOneCharacter(e,t,f,n));while(t.length()%3===1&&(n>3||1!==c))n=this.backtrackOneCharacter(e,t,f,n);break}var l=t.length();if(l%3===0){var d=o.default.lookAheadTest(e.getMessage(),e.pos,this.getEncodingMode());if(d!==this.getEncodingMode()){e.signalEncoderChange(a.ASCII_ENCODATION);break}}}this.handleEOD(e,t)},e.prototype.backtrackOneCharacter=function(e,t,r,n){var i=t.length(),o=t.toString().substring(0,i-n);t.setLengthToZero(),t.append(o),e.pos--;var a=e.getCurrentChar();return n=this.encodeChar(a,r),e.resetSymbolInfo(),n},e.prototype.writeNextTriplet=function(e,t){e.writeCodewords(this.encodeToCodewords(t.toString()));var r=t.toString().substring(3);t.setLengthToZero(),t.append(r)},e.prototype.handleEOD=function(e,t){var r=Math.floor(t.length()/3*2),n=t.length()%3,i=e.getCodewordCount()+r;e.updateSymbolInfo(i);var o=e.getSymbolInfo().getDataCapacity()-i;if(2===n){t.append("\0");while(t.length()>=3)this.writeNextTriplet(e,t);e.hasMoreCharacters()&&e.writeCodeword(a.C40_UNLATCH)}else if(1===o&&1===n){while(t.length()>=3)this.writeNextTriplet(e,t);e.hasMoreCharacters()&&e.writeCodeword(a.C40_UNLATCH),e.pos--}else{if(0!==n)throw new Error("Unexpected case. Please report!");while(t.length()>=3)this.writeNextTriplet(e,t);(o>0||e.hasMoreCharacters())&&e.writeCodeword(a.C40_UNLATCH)}e.signalEncoderChange(a.ASCII_ENCODATION)},e.prototype.encodeChar=function(e,t){if(e===" ".charCodeAt(0))return t.append(3),1;if(e>="0".charCodeAt(0)&&e<="9".charCodeAt(0))return t.append(e-48+4),1;if(e>="A".charCodeAt(0)&&e<="Z".charCodeAt(0))return t.append(e-65+14),1;if(e<" ".charCodeAt(0))return t.append(0),t.append(e),2;if(e<="/".charCodeAt(0))return t.append(1),t.append(e-33),2;if(e<="@".charCodeAt(0))return t.append(1),t.append(e-58+15),2;if(e<="_".charCodeAt(0))return t.append(1),t.append(e-91+22),2;if(e<=127)return t.append(2),t.append(e-96),2;t.append("1");var r=2;return r+=this.encodeChar(e-128,t),r},e.prototype.encodeToCodewords=function(e){var t=1600*e.charCodeAt(0)+40*e.charCodeAt(1)+e.charCodeAt(2)+1,r=t/256,n=t%256,o=new i.default;return o.append(r),o.append(n),o.toString()},e}();t.C40Encoder=s},f3bb:function(e,t,r){e.exports=r("edd4")},f3fd:function(e,t,r){"use strict";var n=r("d652"),i=r("6120"),o=r("d3c2"),a=n.rotr64_hi,s=n.rotr64_lo,u=n.shr64_hi,c=n.shr64_lo,f=n.sum64,l=n.sum64_hi,d=n.sum64_lo,h=n.sum64_4_hi,p=n.sum64_4_lo,g=n.sum64_5_hi,y=n.sum64_5_lo,v=i.BlockHash,b=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function m(){if(!(this instanceof m))return new m;v.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=b,this.W=new Array(160)}function _(e,t,r,n,i){var o=e&r^~e&i;return o<0&&(o+=4294967296),o}function w(e,t,r,n,i,o){var a=t&n^~t&o;return a<0&&(a+=4294967296),a}function A(e,t,r,n,i){var o=e&r^e&i^r&i;return o<0&&(o+=4294967296),o}function S(e,t,r,n,i,o){var a=t&n^t&o^n&o;return a<0&&(a+=4294967296),a}function x(e,t){var r=a(e,t,28),n=a(t,e,2),i=a(t,e,7),o=r^n^i;return o<0&&(o+=4294967296),o}function E(e,t){var r=s(e,t,28),n=s(t,e,2),i=s(t,e,7),o=r^n^i;return o<0&&(o+=4294967296),o}function C(e,t){var r=a(e,t,14),n=a(e,t,18),i=a(t,e,9),o=r^n^i;return o<0&&(o+=4294967296),o}function O(e,t){var r=s(e,t,14),n=s(e,t,18),i=s(t,e,9),o=r^n^i;return o<0&&(o+=4294967296),o}function I(e,t){var r=a(e,t,1),n=a(e,t,8),i=u(e,t,7),o=r^n^i;return o<0&&(o+=4294967296),o}function T(e,t){var r=s(e,t,1),n=s(e,t,8),i=c(e,t,7),o=r^n^i;return o<0&&(o+=4294967296),o}function P(e,t){var r=a(e,t,19),n=a(t,e,29),i=u(e,t,6),o=r^n^i;return o<0&&(o+=4294967296),o}function M(e,t){var r=s(e,t,19),n=s(t,e,29),i=c(e,t,6),o=r^n^i;return o<0&&(o+=4294967296),o}n.inherits(m,v),e.exports=m,m.blockSize=1024,m.outSize=512,m.hmacStrength=192,m.padLength=128,m.prototype._prepareBlock=function(e,t){for(var r=this.W,n=0;n<32;n++)r[n]=e[t+n];for(;n<r.length;n+=2){var i=P(r[n-4],r[n-3]),o=M(r[n-4],r[n-3]),a=r[n-14],s=r[n-13],u=I(r[n-30],r[n-29]),c=T(r[n-30],r[n-29]),f=r[n-32],l=r[n-31];r[n]=h(i,o,a,s,u,c,f,l),r[n+1]=p(i,o,a,s,u,c,f,l)}},m.prototype._update=function(e,t){this._prepareBlock(e,t);var r=this.W,n=this.h[0],i=this.h[1],a=this.h[2],s=this.h[3],u=this.h[4],c=this.h[5],h=this.h[6],p=this.h[7],v=this.h[8],b=this.h[9],m=this.h[10],I=this.h[11],T=this.h[12],P=this.h[13],M=this.h[14],k=this.h[15];o(this.k.length===r.length);for(var R=0;R<r.length;R+=2){var D=M,N=k,B=C(v,b),L=O(v,b),j=_(v,b,m,I,T),F=w(v,b,m,I,T,P),U=this.k[R],z=this.k[R+1],H=r[R],q=r[R+1],V=g(D,N,B,L,j,F,U,z,H,q),W=y(D,N,B,L,j,F,U,z,H,q);D=x(n,i),N=E(n,i),B=A(n,i,a,s,u),L=S(n,i,a,s,u,c);var G=l(D,N,B,L),X=d(D,N,B,L);M=T,k=P,T=m,P=I,m=v,I=b,v=l(h,p,V,W),b=d(p,p,V,W),h=u,p=c,u=a,c=s,a=n,s=i,n=l(V,W,G,X),i=d(V,W,G,X)}f(this.h,0,n,i),f(this.h,2,a,s),f(this.h,4,u,c),f(this.h,6,h,p),f(this.h,8,v,b),f(this.h,10,m,I),f(this.h,12,T,P),f(this.h,14,M,k)},m.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},f414:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.config=void 0;t.config={base_url:"https://lab.zjznai.com/labTest/",imagesUrl:"https://zj-wechat.oss-cn-beijing.aliyuncs.com/xcx_images/xcx_v3/",saoCodeTypeUrl:"http://192.168.1.88/labSystem/admin/#/codeHtml?",schoolId:"1815293314666532865",collegeId:"1815336278075838465",VERSION_DIFFERENCE_FIELD:"xiBeiNongLinDaXue",UNIFIED_CERTIFICATION_URL:"https://labcontrol.nwafu.edu.cn/api/auth/cas/logout/applet"}},f431:function(e,t,r){e.exports=o;var n=r("bf30").EventEmitter,i=r("2c2e");function o(){n.call(this)}i(o,n),o.Readable=r("7125"),o.Writable=r("f3bb"),o.Duplex=r("4833"),o.Transform=r("e3fe"),o.PassThrough=r("fcc2"),o.Stream=o,o.prototype.pipe=function(e,t){var r=this;function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(r.on("end",s),r.on("close",u));var a=!1;function s(){a||(a=!0,e.end())}function u(){a||(a=!0,"function"===typeof e.destroy&&e.destroy())}function c(e){if(f(),0===n.listenerCount(this,"error"))throw e}function f(){r.removeListener("data",i),e.removeListener("drain",o),r.removeListener("end",s),r.removeListener("close",u),r.removeListener("error",c),e.removeListener("error",c),r.removeListener("end",f),r.removeListener("close",f),e.removeListener("close",f)}return r.on("error",c),e.on("error",c),r.on("end",f),r.on("close",f),e.on("close",f),e.emit("pipe",r),e}},f44a:function(e,t,r){"use strict";(function(e){var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("271d")),o={install:function(){try{var t=this,r=e.setStorage;e.setStorage=function(){try{arguments[0]&&arguments[0].key&&0!=arguments[0].key.indexOf("devTools_")&&t.addCacheKey(arguments[0].key)}catch(e){}return r.apply(void 0,arguments)};var n=e.setStorageSync;e.setStorageSync=function(){try{arguments[0]&&0!=arguments[0].indexOf("devTools_")&&t.addCacheKey(arguments[0])}catch(e){}return n.apply(void 0,arguments)};var i=e.removeStorage;e.removeStorage=function(){try{arguments[0]&&arguments[0].key&&0!=arguments[0].key.indexOf("devTools_")&&t.delCacheKey(arguments[0].key)}catch(e){}return i.apply(void 0,arguments)};var o=e.removeStorageSync;e.removeStorageSync=function(){try{arguments[0]&&0!=arguments[0].indexOf("devTools_")&&t.delCacheKey(arguments[0])}catch(e){}return o.apply(void 0,arguments)}}catch(a){console.log("devTools storage.install error",a)}},addCacheKey:function(e){try{if(e&&"string"==typeof e){var t=i.default.get("storage");t||(t=[]),-1==t.indexOf(e)&&(t.push(e),i.default.set("storage",t))}}catch(r){console.log("devTools storage.addCacheKey error",r)}},delCacheKey:function(e){try{if(e&&"string"==typeof e){var t=i.default.get("storage");t||(t=[]);var r=t.indexOf(e);r>-1&&(t.splice(r,1),i.default.set("storage",t))}}catch(n){console.log("devTools storage.delCacheKey error",n)}}};t.default=o}).call(this,r("df3c")["default"])},f4fd:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LATCH_TABLE=void 0;var n=[Int32Array.from([0,327708,327710,327709,656318]),Int32Array.from([590318,0,327710,327709,656318]),Int32Array.from([262158,590300,0,590301,932798]),Int32Array.from([327709,327708,656318,0,327710]),Int32Array.from([327711,656380,656382,656381,0])];t.LATCH_TABLE=n},f4ff:function(e,t,r){t.publicEncrypt=r("f616"),t.privateDecrypt=r("7f1b"),t.privateEncrypt=function(e,r){return t.publicEncrypt(e,r,!0)},t.publicDecrypt=function(e,r){return t.privateDecrypt(e,r,!0)}},f5b2:function(e,t){e.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},f5e6:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("0497")),o=n(r("e415")),a=n(r("e5d0")),s=n(r("f7fd")),u=n(r("dc67")),c=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),f=function(e){function t(t,r,n){var o=e.call(this)||this;o.primitive=t,o.size=r,o.generatorBase=n;for(var a=new Int32Array(r),s=1,u=0;u<r;u++)a[u]=s,s*=2,s>=r&&(s^=t,s&=r-1);o.expTable=a;var c=new Int32Array(r);for(u=0;u<r-1;u++)c[a[u]]=u;return o.logTable=c,o.zero=new i.default(o,Int32Array.from([0])),o.one=new i.default(o,Int32Array.from([1])),o}return c(t,e),t.prototype.getZero=function(){return this.zero},t.prototype.getOne=function(){return this.one},t.prototype.buildMonomial=function(e,t){if(e<0)throw new s.default;if(0===t)return this.zero;var r=new Int32Array(e+1);return r[0]=t,new i.default(this,r)},t.prototype.inverse=function(e){if(0===e)throw new u.default;return this.expTable[this.size-this.logTable[e]-1]},t.prototype.multiply=function(e,t){return 0===e||0===t?0:this.expTable[(this.logTable[e]+this.logTable[t])%(this.size-1)]},t.prototype.getSize=function(){return this.size},t.prototype.getGeneratorBase=function(){return this.generatorBase},t.prototype.toString=function(){return"GF(0x"+a.default.toHexString(this.primitive)+","+this.size+")"},t.prototype.equals=function(e){return e===this},t.AZTEC_DATA_12=new t(4201,4096,1),t.AZTEC_DATA_10=new t(1033,1024,1),t.AZTEC_DATA_6=new t(67,64,1),t.AZTEC_PARAM=new t(19,16,1),t.QR_CODE_FIELD_256=new t(285,256,0),t.DATA_MATRIX_FIELD_256=new t(301,256,1),t.AZTEC_DATA_8=t.DATA_MATRIX_FIELD_256,t.MAXICODE_FIELD_64=t.AZTEC_DATA_6,t}(o.default),l=f;t.default=l},f616:function(e,t,r){var n=r("8e48"),i=r("ace9"),o=r("055b"),a=r("0ae6"),s=r("cce3"),u=r("81eb"),c=r("e500"),f=r("8d24"),l=r("5f79").Buffer;e.exports=function(e,t,r){var d;d=e.padding?e.padding:r?1:4;var h,p=n(e);if(4===d)h=function(e,t){var r=e.modulus.byteLength(),n=t.length,c=o("sha1").update(l.alloc(0)).digest(),f=c.length,d=2*f;if(n>r-d-2)throw new Error("message too long");var h=l.alloc(r-n-d-2),p=r-f-1,g=i(f),y=s(l.concat([c,h,l.alloc(1,1),t],p),a(g,p)),v=s(g,a(y,f));return new u(l.concat([l.alloc(1),v,y],r))}(p,t);else if(1===d)h=function(e,t,r){var n,o=t.length,a=e.modulus.byteLength();if(o>a-11)throw new Error("message too long");n=r?l.alloc(a-o-3,255):function(e){var t,r=l.allocUnsafe(e),n=0,o=i(2*e),a=0;while(n<e)a===o.length&&(o=i(2*e),a=0),t=o[a++],t&&(r[n++]=t);return r}(a-o-3);return new u(l.concat([l.from([0,r?1:2]),n,l.alloc(1),t],a))}(p,t,r);else{if(3!==d)throw new Error("unknown padding");if(h=new u(t),h.cmp(p.modulus)>=0)throw new Error("data too long for modulus")}return r?f(h,p):c(h,p)}},f74e:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("7322")),o=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.getChecksumInstance=function(){return new t},t.kind="ChecksumException",t}(i.default),s=a;t.default=s},f7fd:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("7322")),o=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.kind="IllegalArgumentException",t}(i.default),s=a;t.default=s},f874:function(e,t,r){"use strict";var n=r("5f79").Buffer,i=r(1);function o(e,t,r){e.copy(t,r)}e.exports=function(){function e(){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";var t=this.head,r=""+t.data;while(t=t.next)r+=e+t.data;return r},e.prototype.concat=function(e){if(0===this.length)return n.alloc(0);if(1===this.length)return this.head.data;var t=n.allocUnsafe(e>>>0),r=this.head,i=0;while(r)o(r.data,t,i),i+=r.data.length,r=r.next;return t},e}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})},f87b:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(){function e(e,t,r,n){this.columnCount=e,this.errorCorrectionLevel=n,this.rowCountUpperPart=t,this.rowCountLowerPart=r,this.rowCount=t+r}return e.prototype.getColumnCount=function(){return this.columnCount},e.prototype.getErrorCorrectionLevel=function(){return this.errorCorrectionLevel},e.prototype.getRowCount=function(){return this.rowCount},e.prototype.getRowCountUpperPart=function(){return this.rowCountUpperPart},e.prototype.getRowCountLowerPart=function(){return this.rowCountLowerPart},e}(),i=n;t.default=i},f905:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("e9fe")),o=n(r("4411")),a=n(r("0bca")),s={en:i.default,"zh-Hans":o.default,"zh-Hant":a.default};t.default=s},f930:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("a608")),o=n(r("db51")),a=function(e){var t="function"===typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},s=function(){function e(e){this.boundingBox=new o.default(e),this.codewords=new Array(e.getMaxY()-e.getMinY()+1)}return e.prototype.getCodewordNearby=function(t){var r=this.getCodeword(t);if(null!=r)return r;for(var n=1;n<e.MAX_NEARBY_DISTANCE;n++){var i=this.imageRowToCodewordIndex(t)-n;if(i>=0&&(r=this.codewords[i],null!=r))return r;if(i=this.imageRowToCodewordIndex(t)+n,i<this.codewords.length&&(r=this.codewords[i],null!=r))return r}return null},e.prototype.imageRowToCodewordIndex=function(e){return e-this.boundingBox.getMinY()},e.prototype.setCodeword=function(e,t){this.codewords[this.imageRowToCodewordIndex(e)]=t},e.prototype.getCodeword=function(e){return this.codewords[this.imageRowToCodewordIndex(e)]},e.prototype.getBoundingBox=function(){return this.boundingBox},e.prototype.getCodewords=function(){return this.codewords},e.prototype.toString=function(){var e,t,r=new i.default,n=0;try{for(var o=a(this.codewords),s=o.next();!s.done;s=o.next()){var u=s.value;null!=u?r.format("%3d: %3d|%3d%n",n++,u.getRowNumber(),u.getValue()):r.format("%3d: | %n",n++)}}catch(c){e={error:c}}finally{try{s&&!s.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}return r.toString()},e.MAX_NEARBY_DISTANCE=5,e}(),u=s;t.default=u},f9ed:function(e,t,r){"use strict";var n=r("dcf6"),i=r("850f"),o=r("4e45"),a=o.assert,s=o.parseBytes,u=r("4733"),c=r("8647");function f(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof f))return new f(e);e=i[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=n.sha512}e.exports=f,f.prototype.sign=function(e,t){e=s(e);var r=this.keyFromSecret(t),n=this.hashInt(r.messagePrefix(),e),i=this.g.mul(n),o=this.encodePoint(i),a=this.hashInt(o,r.pubBytes(),e).mul(r.priv()),u=n.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:u,Rencoded:o})},f.prototype.verify=function(e,t,r){e=s(e),t=this.makeSignature(t);var n=this.keyFromPublic(r),i=this.hashInt(t.Rencoded(),n.pubBytes(),e),o=this.g.mul(t.S()),a=t.R().add(n.pub().mul(i));return a.eq(o)},f.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return o.intFromLE(e.digest()).umod(this.curve.n)},f.prototype.keyFromPublic=function(e){return u.fromPublic(this,e)},f.prototype.keyFromSecret=function(e){return u.fromSecret(this,e)},f.prototype.makeSignature=function(e){return e instanceof c?e:new c(this,e)},f.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t},f.prototype.decodePoint=function(e){e=o.parseBytes(e);var t=e.length-1,r=e.slice(0,t).concat(-129&e[t]),n=0!==(128&e[t]),i=o.intFromLE(r);return this.curve.pointFromY(i,n)},f.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},f.prototype.decodeInt=function(e){return o.intFromLE(e)},f.prototype.isPoint=function(e){return e instanceof this.pointClass}},fa30:function(e,t,r){var n=r("ff2d"),i=r("5f79").Buffer,o=r("0428"),a=r("ea15"),s=r("cfef"),u=r("0446"),c=r("0a0c"),f=r("2c2e");function l(e,t,r){s.call(this),this._cache=new d,this._last=void 0,this._cipher=new u.AES(t),this._prev=i.from(r),this._mode=e,this._autopadding=!0}function d(){this.cache=i.allocUnsafe(0)}function h(e,t,r){var s=o[e.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"===typeof r&&(r=i.from(r)),"GCM"!==s.mode&&r.length!==s.iv)throw new TypeError("invalid iv length "+r.length);if("string"===typeof t&&(t=i.from(t)),t.length!==s.key/8)throw new TypeError("invalid key length "+t.length);return"stream"===s.type?new a(s.module,t,r,!0):"auth"===s.type?new n(s.module,t,r,!0):new l(s.module,t,r)}f(l,s),l.prototype._update=function(e){var t,r;this._cache.add(e);var n=[];while(t=this._cache.get(this._autopadding))r=this._mode.decrypt(this,t),n.push(r);return i.concat(n)},l.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return function(e){var t=e[15];if(t<1||t>16)throw new Error("unable to decrypt data");var r=-1;while(++r<t)if(e[r+(16-t)]!==t)throw new Error("unable to decrypt data");if(16===t)return;return e.slice(0,16-t)}(this._mode.decrypt(this,e));if(e)throw new Error("data not multiple of block length")},l.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},d.prototype.add=function(e){this.cache=i.concat([this.cache,e])},d.prototype.get=function(e){var t;if(e){if(this.cache.length>16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},d.prototype.flush=function(){if(this.cache.length)return this.cache},t.createDecipher=function(e,t){var r=o[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var n=c(t,!1,r.key,r.iv);return h(e,n.key,n.iv)},t.createDecipheriv=h},fa9c:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("b717")),o=n(r("d757")),a=n(r("5c2a")),s=n(r("7e0b")),u=n(r("a8ae")),c=n(r("87e7")),f=n(r("e5d0")),l=n(r("9e56")),d=n(r("f7fd")),h=n(r("d618")),p=function(){function e(){}return e.prototype.encode=function(e,t,r,n){return this.encodeWithHints(e,t,r,n,null)},e.prototype.encodeWithHints=function(t,r,n,i,s){var l=c.default.ISO_8859_1,d=a.default.DEFAULT_EC_PERCENT,h=a.default.DEFAULT_AZTEC_LAYERS;return null!=s&&(s.has(o.default.CHARACTER_SET)&&(l=u.default.forName(s.get(o.default.CHARACTER_SET).toString())),s.has(o.default.ERROR_CORRECTION)&&(d=f.default.parseInt(s.get(o.default.ERROR_CORRECTION).toString())),s.has(o.default.AZTEC_LAYERS)&&(h=f.default.parseInt(s.get(o.default.AZTEC_LAYERS).toString()))),e.encodeLayers(t,r,n,i,l,d,h)},e.encodeLayers=function(t,r,n,o,s,u,c){if(r!==i.default.AZTEC)throw new d.default("Can only encode AZTEC, but got "+r);var f=a.default.encode(h.default.getBytes(t,s),u,c);return e.renderResult(f,n,o)},e.renderResult=function(e,t,r){var n=e.getMatrix();if(null==n)throw new l.default;for(var i=n.getWidth(),o=n.getHeight(),a=Math.max(t,i),u=Math.max(r,o),c=Math.min(a/i,u/o),f=(a-i*c)/2,d=(u-o*c)/2,h=new s.default(a,u),p=0,g=d;p<o;p++,g+=c)for(var y=0,v=f;y<i;y++,v+=c)n.get(y,p)&&h.setRegion(v,g,c,c);return h},e}(),g=p;t.default=g},fbd0:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.BrowserPDF417Reader=void 0;var i=r("a5d4"),o=n(r("c3c6")),a=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),s=function(e){function t(t){return void 0===t&&(t=500),e.call(this,new o.default,t)||this}return a(t,e),t}(i.BrowserCodeReader);t.BrowserPDF417Reader=s},fcc2:function(e,t,r){e.exports=r("7125").PassThrough},fccf:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.Calendar=void 0,t.addZero=f,t.checkDate=function(e){return e.match(/((19|20)\d{2})(-|\/)\d{1,2}(-|\/)\d{1,2}/g)},t.dateCompare=l,t.fixIosDateFormat=h,t.getDate=u,t.getDateTime=function(e,t){return"".concat(u(e)," ").concat(c(e,t))},t.getDefaultSecond=function(e){return e?"00:00":"00:00:00"},t.getTime=c;var i=n(r("af34")),o=n(r("67ad")),a=n(r("0bdb")),s=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.selected,n=t.startDate,i=t.endDate,a=t.range;(0,o.default)(this,e),this.date=this.getDateObj(new Date),this.selected=r||[],this.startDate=n,this.endDate=i,this.range=a,this.cleanMultipleStatus(),this.weeks={},this.lastHover=!1}return(0,a.default)(e,[{key:"setDate",value:function(e){var t=this.getDateObj(e);this.getWeeks(t.fullDate)}},{key:"cleanMultipleStatus",value:function(){this.multipleStatus={before:"",after:"",data:[]}}},{key:"setStartDate",value:function(e){this.startDate=e}},{key:"setEndDate",value:function(e){this.endDate=e}},{key:"getPreMonthObj",value:function(e){e=h(e),e=new Date(e);var t=e.getMonth();e.setMonth(t-1);var r=e.getMonth();return 0!==t&&r-t===0&&e.setMonth(r-1),this.getDateObj(e)}},{key:"getNextMonthObj",value:function(e){e=h(e),e=new Date(e);var t=e.getMonth();e.setMonth(t+1);var r=e.getMonth();return r-t>1&&e.setMonth(r-1),this.getDateObj(e)}},{key:"getDateObj",value:function(e){return e=h(e),e=new Date(e),{fullDate:u(e),year:e.getFullYear(),month:f(e.getMonth()+1),date:f(e.getDate()),day:e.getDay()}}},{key:"getPreMonthDays",value:function(e,t){for(var r=[],n=e-1;n>=0;n--){var i=t.month-1;r.push({date:new Date(t.year,i,-n).getDate(),month:i,disable:!0})}return r}},{key:"getCurrentMonthDays",value:function(e,t){for(var r=this,n=[],i=this.date.fullDate,o=function(e){var o="".concat(t.year,"-").concat(t.month,"-").concat(f(e)),a=i===o,s=r.selected&&r.selected.find((function(e){if(r.dateEqual(o,e.date))return e}));r.startDate&&l(r.startDate,o),r.endDate&&l(o,r.endDate);var u=r.multipleStatus.data,c=-1;r.range&&u&&(c=u.findIndex((function(e){return r.dateEqual(e,o)})));var d=-1!==c;n.push({fullDate:o,year:t.year,date:e,multiple:!!r.range&&d,beforeMultiple:r.isLogicBefore(o,r.multipleStatus.before,r.multipleStatus.after),afterMultiple:r.isLogicAfter(o,r.multipleStatus.before,r.multipleStatus.after),month:t.month,disable:r.startDate&&!l(r.startDate,o)||r.endDate&&!l(o,r.endDate),isToday:a,userChecked:!1,extraInfo:s})},a=1;a<=e;a++)o(a);return n}},{key:"_getNextMonthDays",value:function(e,t){for(var r=[],n=t.month+1,i=1;i<=e;i++)r.push({date:i,month:n,disable:!0});return r}},{key:"getInfo",value:function(e){var t=this;e||(e=new Date);var r=this.calendar.find((function(r){return r.fullDate===t.getDateObj(e).fullDate}));return r||this.getDateObj(e)}},{key:"dateEqual",value:function(e,t){return e=new Date(h(e)),t=new Date(h(t)),e.valueOf()===t.valueOf()}},{key:"isLogicBefore",value:function(e,t,r){var n=t;return t&&r&&(n=l(t,r)?t:r),this.dateEqual(n,e)}},{key:"isLogicAfter",value:function(e,t,r){var n=r;return t&&r&&(n=l(t,r)?r:t),this.dateEqual(n,e)}},{key:"geDateAll",value:function(e,t){var r=[],n=e.split("-"),i=t.split("-"),o=new Date;o.setFullYear(n[0],n[1]-1,n[2]);var a=new Date;a.setFullYear(i[0],i[1]-1,i[2]);for(var s=o.getTime()-864e5,u=a.getTime()-864e5,c=s;c<=u;)c+=864e5,r.push(this.getDateObj(new Date(parseInt(c))).fullDate);return r}},{key:"setMultiple",value:function(e){if(this.range){var t=this.multipleStatus,r=t.before,n=t.after;if(r&&n){if(!this.lastHover)return void(this.lastHover=!0);this.multipleStatus.before=e,this.multipleStatus.after="",this.multipleStatus.data=[],this.multipleStatus.fulldate="",this.lastHover=!1}else r?(this.multipleStatus.after=e,l(this.multipleStatus.before,this.multipleStatus.after)?this.multipleStatus.data=this.geDateAll(this.multipleStatus.before,this.multipleStatus.after):this.multipleStatus.data=this.geDateAll(this.multipleStatus.after,this.multipleStatus.before),this.lastHover=!0):(this.multipleStatus.before=e,this.multipleStatus.after=void 0,this.lastHover=!1);this.getWeeks(e)}}},{key:"setHoverMultiple",value:function(e){if(this.range&&!this.lastHover){var t=this.multipleStatus.before;t?(this.multipleStatus.after=e,l(this.multipleStatus.before,this.multipleStatus.after)?this.multipleStatus.data=this.geDateAll(this.multipleStatus.before,this.multipleStatus.after):this.multipleStatus.data=this.geDateAll(this.multipleStatus.after,this.multipleStatus.before)):this.multipleStatus.before=e,this.getWeeks(e)}}},{key:"setDefaultMultiple",value:function(e,t){this.multipleStatus.before=e,this.multipleStatus.after=t,e&&t&&(l(e,t)?(this.multipleStatus.data=this.geDateAll(e,t),this.getWeeks(t)):(this.multipleStatus.data=this.geDateAll(t,e),this.getWeeks(e)))}},{key:"getWeeks",value:function(e){for(var t=this.getDateObj(e),r=t.year,n=t.month,o=new Date(r,n-1,1).getDay(),a=this.getPreMonthDays(o,this.getDateObj(e)),s=new Date(r,n,0).getDate(),u=this.getCurrentMonthDays(s,this.getDateObj(e)),c=42-o-s,f=this._getNextMonthDays(c,this.getDateObj(e)),l=[].concat((0,i.default)(a),(0,i.default)(u),(0,i.default)(f)),d=new Array(6),h=0;h<l.length;h++){var p=Math.floor(h/7);d[p]||(d[p]=new Array(7)),d[p][h%7]=l[h]}this.calendar=l,this.weeks=d}}]),e}();function u(e){e=h(e),e=new Date(e);var t=e.getFullYear(),r=e.getMonth()+1,n=e.getDate();return"".concat(t,"-").concat(f(r),"-").concat(f(n))}function c(e,t){e=h(e),e=new Date(e);var r=e.getHours(),n=e.getMinutes(),i=e.getSeconds();return t?"".concat(f(r),":").concat(f(n)):"".concat(f(r),":").concat(f(n),":").concat(f(i))}function f(e){return e<10&&(e="0".concat(e)),e}function l(e,t){return e=new Date(h(e)),t=new Date(h(t)),e<=t}t.Calendar=s;var d=/^\d{4}-(0?[1-9]|1[012])-(0?[1-9]|[12][0-9]|3[01])( [0-5]?[0-9]:[0-5]?[0-9](:[0-5]?[0-9])?)?$/;function h(e){return"string"===typeof e&&d.test(e)&&(e=e.replace(/-/g,"/")),e}},fd6f:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("7e0b")),o=n(r("1eca")),a=n(r("343e")),s=n(r("f7fd")),u=function(){function e(t){var r=t.getHeight();if(r<8||r>144||0!==(1&r))throw new a.default;this.version=e.readVersion(t),this.mappingBitMatrix=this.extractDataRegion(t),this.readMappingMatrix=new i.default(this.mappingBitMatrix.getWidth(),this.mappingBitMatrix.getHeight())}return e.prototype.getVersion=function(){return this.version},e.readVersion=function(e){var t=e.getHeight(),r=e.getWidth();return o.default.getVersionForDimensions(t,r)},e.prototype.readCodewords=function(){var e=new Int8Array(this.version.getTotalCodewords()),t=0,r=4,n=0,i=this.mappingBitMatrix.getHeight(),o=this.mappingBitMatrix.getWidth(),s=!1,u=!1,c=!1,f=!1;do{if(r!==i||0!==n||s)if(r!==i-2||0!==n||0===(3&o)||u)if(r!==i+4||2!==n||0!==(7&o)||c)if(r!==i-2||0!==n||4!==(7&o)||f){do{r<i&&n>=0&&!this.readMappingMatrix.get(n,r)&&(e[t++]=255&this.readUtah(r,n,i,o)),r-=2,n+=2}while(r>=0&&n<o);r+=1,n+=3;do{r>=0&&n<o&&!this.readMappingMatrix.get(n,r)&&(e[t++]=255&this.readUtah(r,n,i,o)),r+=2,n-=2}while(r<i&&n>=0);r+=3,n+=1}else e[t++]=255&this.readCorner4(i,o),r-=2,n+=2,f=!0;else e[t++]=255&this.readCorner3(i,o),r-=2,n+=2,c=!0;else e[t++]=255&this.readCorner2(i,o),r-=2,n+=2,u=!0;else e[t++]=255&this.readCorner1(i,o),r-=2,n+=2,s=!0}while(r<i||n<o);if(t!==this.version.getTotalCodewords())throw new a.default;return e},e.prototype.readModule=function(e,t,r,n){return e<0&&(e+=r,t+=4-(r+4&7)),t<0&&(t+=n,e+=4-(n+4&7)),this.readMappingMatrix.set(t,e),this.mappingBitMatrix.get(t,e)},e.prototype.readUtah=function(e,t,r,n){var i=0;return this.readModule(e-2,t-2,r,n)&&(i|=1),i<<=1,this.readModule(e-2,t-1,r,n)&&(i|=1),i<<=1,this.readModule(e-1,t-2,r,n)&&(i|=1),i<<=1,this.readModule(e-1,t-1,r,n)&&(i|=1),i<<=1,this.readModule(e-1,t,r,n)&&(i|=1),i<<=1,this.readModule(e,t-2,r,n)&&(i|=1),i<<=1,this.readModule(e,t-1,r,n)&&(i|=1),i<<=1,this.readModule(e,t,r,n)&&(i|=1),i},e.prototype.readCorner1=function(e,t){var r=0;return this.readModule(e-1,0,e,t)&&(r|=1),r<<=1,this.readModule(e-1,1,e,t)&&(r|=1),r<<=1,this.readModule(e-1,2,e,t)&&(r|=1),r<<=1,this.readModule(0,t-2,e,t)&&(r|=1),r<<=1,this.readModule(0,t-1,e,t)&&(r|=1),r<<=1,this.readModule(1,t-1,e,t)&&(r|=1),r<<=1,this.readModule(2,t-1,e,t)&&(r|=1),r<<=1,this.readModule(3,t-1,e,t)&&(r|=1),r},e.prototype.readCorner2=function(e,t){var r=0;return this.readModule(e-3,0,e,t)&&(r|=1),r<<=1,this.readModule(e-2,0,e,t)&&(r|=1),r<<=1,this.readModule(e-1,0,e,t)&&(r|=1),r<<=1,this.readModule(0,t-4,e,t)&&(r|=1),r<<=1,this.readModule(0,t-3,e,t)&&(r|=1),r<<=1,this.readModule(0,t-2,e,t)&&(r|=1),r<<=1,this.readModule(0,t-1,e,t)&&(r|=1),r<<=1,this.readModule(1,t-1,e,t)&&(r|=1),r},e.prototype.readCorner3=function(e,t){var r=0;return this.readModule(e-1,0,e,t)&&(r|=1),r<<=1,this.readModule(e-1,t-1,e,t)&&(r|=1),r<<=1,this.readModule(0,t-3,e,t)&&(r|=1),r<<=1,this.readModule(0,t-2,e,t)&&(r|=1),r<<=1,this.readModule(0,t-1,e,t)&&(r|=1),r<<=1,this.readModule(1,t-3,e,t)&&(r|=1),r<<=1,this.readModule(1,t-2,e,t)&&(r|=1),r<<=1,this.readModule(1,t-1,e,t)&&(r|=1),r},e.prototype.readCorner4=function(e,t){var r=0;return this.readModule(e-3,0,e,t)&&(r|=1),r<<=1,this.readModule(e-2,0,e,t)&&(r|=1),r<<=1,this.readModule(e-1,0,e,t)&&(r|=1),r<<=1,this.readModule(0,t-2,e,t)&&(r|=1),r<<=1,this.readModule(0,t-1,e,t)&&(r|=1),r<<=1,this.readModule(1,t-1,e,t)&&(r|=1),r<<=1,this.readModule(2,t-1,e,t)&&(r|=1),r<<=1,this.readModule(3,t-1,e,t)&&(r|=1),r},e.prototype.extractDataRegion=function(e){var t=this.version.getSymbolSizeRows(),r=this.version.getSymbolSizeColumns();if(e.getHeight()!==t)throw new s.default("Dimension of bitMatrix must match the version size");for(var n=this.version.getDataRegionSizeRows(),o=this.version.getDataRegionSizeColumns(),a=t/n|0,u=r/o|0,c=a*n,f=u*o,l=new i.default(f,c),d=0;d<a;++d)for(var h=d*n,p=0;p<u;++p)for(var g=p*o,y=0;y<n;++y)for(var v=d*(n+2)+1+y,b=h+y,m=0;m<o;++m){var _=p*(o+2)+1+m;if(e.get(_,v)){var w=g+m;l.set(w,b)}}return l},e}(),c=u;t.default=c},fe5a:function(e,t,r){"use strict";var n=r("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("5935")),o=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),a=function(e){function t(t){return e.call(this,t)||this}return o(t,e),t.prototype.encodeCompressedWeight=function(e,t,r){var n=this.getGeneralDecoder().extractNumericValueFromBitArray(t,r);this.addWeightCode(e,n);for(var i=this.checkWeight(n),o=1e5,a=0;a<5;++a)i/o===0&&e.append("0"),o/=10;e.append(i)},t}(i.default),s=a;t.default=s},fef7:function(e,t,r){t.pbkdf2=r("1941"),t.pbkdf2Sync=r("66ad")},ff2d:function(e,t,r){var n=r("0446"),i=r("5f79").Buffer,o=r("cfef"),a=r("2c2e"),s=r("50f1"),u=r("1f63"),c=r("e2c3");function f(e,t,r,a){o.call(this);var u=i.alloc(4,0);this._cipher=new n.AES(t);var f=this._cipher.encryptBlock(u);this._ghash=new s(f),r=function(e,t,r){if(12===t.length)return e._finID=i.concat([t,i.from([0,0,0,1])]),i.concat([t,i.from([0,0,0,2])]);var n=new s(r),o=t.length,a=o%16;n.update(t),a&&(a=16-a,n.update(i.alloc(a,0))),n.update(i.alloc(8,0));var u=8*o,f=i.alloc(8);f.writeUIntBE(u,0,8),n.update(f),e._finID=n.state;var l=i.from(e._finID);return c(l),l}(this,r,f),this._prev=i.from(r),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=a,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}a(f,o),f.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=i.alloc(t,0),this._ghash.update(t))}this._called=!0;var r=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(r),this._len+=e.length,r},f.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=u(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(e,t){var r=0;e.length!==t.length&&r++;for(var n=Math.min(e.length,t.length),i=0;i<n;++i)r+=e[i]^t[i];return r}(e,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=e,this._cipher.scrub()},f.prototype.getAuthTag=function(){if(this._decrypt||!i.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},f.prototype.setAuthTag=function(e){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=e},f.prototype.setAAD=function(e){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(e),this._alen+=e.length},e.exports=f}}]);
|