tweb/public/6b540956a47ff257d3ee.worker.js

7 lines
77 KiB
JavaScript

!function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=3)}([function(t,e,r){"use strict";var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function s(t){try{f(n.next(t))}catch(t){o(t)}}function a(t){try{f(n.throw(t))}catch(t){o(t)}}function f(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}f((n=n.apply(t,e||[])).next())}))},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=i(r(4)),s=r(5),a=r(2),f=i(r(6)),h=r(1);function u(t){var e=s.bigInt2str(t,16);return h.bytesFromHex(e)}function c(t){t instanceof ArrayBuffer&&(t=new Uint8Array(t));var e,r=t.length,n=[];for(e=0;e<r;e++)n[e>>>2]|=t[e]<<24-e%4*8;return new f.default.lib.WordArray.init(n,r)}function l(t){var e,r,n,i,o,a,f=Math.ceil(64/s.bpe)+1,c=0,l=new Array(f),d=new Array(f),p=new Array(f),g=new Array(f),v=new Array(f),y=new Array(f),m=new Array(f);for(e=0;e<3;e++){for(r=17+(15&h.nextRandomInt(128)),s.copyInt_(y,h.nextRandomInt(1e9)+1),s.copy_(m,y),i=1<<e+18,n=1;n<i;n++){for(++c,s.copy_(l,y),s.copy_(d,y),s.copyInt_(p,r);!s.isZero(d);)1&d[0]&&(s.add_(p,l),s.greater(p,t)&&s.sub_(p,t)),s.add_(l,l),s.greater(l,t)&&s.sub_(l,t),s.rightShift_(d,1);if(s.copy_(y,p),s.greater(y,m)?(s.copy_(v,y),s.sub_(v,m)):(s.copy_(v,m),s.sub_(v,y)),s.eGCD_(v,t,g,l,d),!s.equalsInt(g,1))break;0==(n&n-1)&&s.copy_(m,y)}if(s.greater(g,s.one))break}return s.divide_(t,g,y,m),s.greater(g,y)?(o=y,a=g):(o=g,a=y),[u(o),u(a),c]}e.bytesFromLeemonBigInt=u,e.bytesToWords=c,e.sha1HashSync=function(t){const e=[];let r=o.default(String.fromCharCode.apply(null,t instanceof Uint8Array?[...t]:[...new Uint8Array(t)]));for(let t=0;t<r.length;++t)e.push(r.charCodeAt(t));return new Uint8Array(e)},e.sha256HashSync=function(t){var e=f.default.SHA256(c(t));return h.bytesFromWords(e)},e.aesEncryptSync=function(t,e,r,n="IGE"){t=h.addPadding(t);let i=f.default.mode[n],o=f.default.AES.encrypt(c(t),c(e),{iv:c(r),padding:f.default.pad.NoPadding,mode:i}).ciphertext;return h.bytesFromWords(o)},e.aesDecryptSync=function(t,e,r,n="IGE"){let i=f.default.mode[n];var o=f.default.AES.decrypt({ciphertext:c(t)},c(e),{iv:c(r),padding:f.default.pad.NoPadding,mode:i});return h.bytesFromWords(o)},e.rsaEncrypt=function(t,e){console.log(h.dT(),"RSA encrypt start",t,e),e=h.addPadding(e,255);var r=s.str2bigInt(t.modulus,16),n=s.str2bigInt(t.exponent,16),i=s.str2bigInt(h.bytesToHex(e),16),o=s.powMod(i,n,r),a=h.bytesFromHex(s.bigInt2str(o,16));return console.log(h.dT(),"RSA encrypt finish"),a},e.hash_pbkdf2=function(t,e,r){return n(this,void 0,void 0,(function*(){let n="undefined"!=typeof window&&"crypto"in window?window.crypto.subtle:self.crypto.subtle,i=yield n.importKey("raw",t,{name:"PBKDF2"},!1,["deriveKey","deriveBits"]);return yield n.deriveKey({name:"PBKDF2",salt:e,iterations:r,hash:{name:"SHA-512"}},i,{name:"AES-CTR",length:256},!1,["encrypt","decrypt"]),n.deriveBits({name:"PBKDF2",salt:e,iterations:r,hash:{name:"SHA-512"}},i,512)}))},e.pqPrimeFactorization=function(t){var e=new a.BigInteger(t),r=!1;console.log(h.dT(),"PQ start",t,e.toString(16),e.bitLength());try{console.time("PQ leemon"),r=l(s.str2bigInt(e.toString(16),16,Math.ceil(64/s.bpe)+1)),console.timeEnd("PQ leemon")}catch(t){console.error("Pq leemon Exception",t)}return console.log(h.dT(),"PQ finish"),r},e.pqPrimeLeemon=l,e.bytesModPow=function(t,e,r){try{var n=s.str2bigInt(h.bytesToHex(t),16),i=s.str2bigInt(h.bytesToHex(e),16),o=s.str2bigInt(h.bytesToHex(r),16),f=s.powMod(n,i,o);return h.bytesFromHex(s.bigInt2str(f,16))}catch(t){console.error("mod pow error",t)}return h.bytesFromBigInt(new a.BigInteger(t).modPow(new a.BigInteger(e),new a.BigInteger(r)),256)}},function(t,e,r){"use strict";
/*!
* Webogram v0.7.0 - messaging web application for MTProto
* https://github.com/zhukov/webogram
* Copyright (C) 2014 Igor Zhukov <igor.beatle@gmail.com>
* https://github.com/zhukov/webogram/blob/master/LICENSE
*/var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const i=r(2),o=n(r(7));var s=(new Date).getTime();function a(t){return new i.BigInteger(t.toString(16),16)}function f(t){return new i.BigInteger(t,10)}function h(t){return t<26?t+65:t<52?t+71:t<62?t-4:62===t?43:63===t?47:65}function u(t,e){for(var r=atob(t),n=r.length,i=Math.ceil(n/1024),o=new Array(i),s=0;s<i;++s){for(var a=1024*s,f=Math.min(a+1024,n),h=new Array(f-a),u=a,l=0;u<f;++l,++u)h[l]=r[u].charCodeAt(0);o[s]=new Uint8Array(h)}return c(o,e)}function c(t,e=""){var r,n=l(e);try{r=new Blob(t,{type:n})}catch(e){var i=new BlobBuilder;t.forEach((function(t){i.append(t)})),r=i.getBlob(n)}return r}function l(t){return-1===["image/jpeg","image/png","image/gif","image/webp","image/bmp","video/mp4","video/webm","video/quicktime","audio/ogg","audio/mpeg","audio/mp4"].indexOf(t)?"application/octet-stream":t}function d(t){return new Uint8Array(t).buffer}function p(t){return void 0!==t.buffer?t:new Uint8Array(t)}function g(t,e){var r=t.byteLength||t.length,n=e.byteLength||e.length,i=new Uint8Array(r+n);return i.set(t instanceof ArrayBuffer?new Uint8Array(t):t,0),i.set(e instanceof ArrayBuffer?new Uint8Array(e):e,r),i.buffer}function v(t){var e=f(t).divideAndRemainder(a(4294967296));return[e[0].intValue(),e[1].intValue()]}function y(t){for(var e=t.words,r=t.sigBytes,n=[],i=0;i<r;i++)n.push(e[i>>>2]>>>24-i%4*8&255);return n}e.dT=function(){return"["+(((new Date).getTime()-s)/1e3).toFixed(3)+"]"},e.bigint=a,e.bigStringInt=f,e.bytesToHex=function(t){t=t||[];for(var e=[],r=0;r<t.length;r++)e.push((t[r]<16?"0":"")+(t[r]||0).toString(16));return e.join("")},e.bytesFromHex=function(t){var e,r=t.length,n=0,i=[];for(t.length%2&&(i.push(parseInt(t.charAt(0),16)),n++),e=n;e<r;e+=2)i.push(parseInt(t.substr(e,2),16));return i},e.bytesToBase64=function(t){for(var e,r="",n=t.length,i=0,o=0;o<n;o++)e=o%3,i|=t[o]<<(16>>>e&24),2!==e&&n-o!=1||(r+=String.fromCharCode(h(i>>>18&63),h(i>>>12&63),h(i>>>6&63),h(63&i)),i=0);return r.replace(/A(?=A$|$)/g,"=")},e.uint6ToBase64=h,e.base64ToBlob=u,e.dataUrlToBlob=function(t){var e=t.split(",");return u(e[1],e[0].split(":")[1].split(";")[0])},e.blobConstruct=c,e.blobSafeMimeType=l,e.bytesCmp=function(t,e){var r=t.length;if(r!=e.length)return!1;for(var n=0;n<r;n++)if(t[n]!=e[n])return!1;return!0},e.bytesXor=function(t,e){for(var r=t.length,n=[],i=0;i<r;++i)n[i]=t[i]^e[i];return n},e.bytesFromBigInt=function(t,e){var r=t.toByteArray();if(e&&r.length<e){for(var n=[],i=0,o=e-r.length;i<o;i++)n[i]=0;r=r instanceof ArrayBuffer?g(n,r):n.concat(r)}else for(;!r[0]&&(!e||r.length>e);)r=r.slice(1);return r},e.bytesToArrayBuffer=d,e.convertToArrayBuffer=function(t){return t instanceof ArrayBuffer?t:void 0!==t.buffer&&t.buffer.byteLength==t.length*t.BYTES_PER_ELEMENT?t.buffer:d(t)},e.convertToUint8Array=p,e.convertToByteArray=function(t){if(Array.isArray(t))return t;for(var e=[],r=0,n=(t=p(t)).length;r<n;r++)e.push(t[r]);return e},e.bytesFromArrayBuffer=function(t){for(var e=t.byteLength,r=new Uint8Array(t),n=[],i=0;i<e;++i)n[i]=r[i];return n},e.bufferConcat=g,e.bufferConcats=function(...t){let e=0;t.forEach(t=>e+=t.byteLength||t.length);var r=new Uint8Array(e);let n=0;return t.forEach(t=>{r.set(t instanceof ArrayBuffer?new Uint8Array(t):t,n),n+=t.byteLength||t.length}),r},e.longToInts=v,e.bytesFromWords=y,e.longToBytes=function(t){return y({words:v(t),sigBytes:8}).reverse()},e.longFromInts=function(t,e){return a(t).shiftLeft(32).add(a(e)).toString(10)},e.intToUint=function(t){return"string"==typeof t&&(t=parseInt(t)),t<0&&(t+=4294967296),t},e.uintToInt=function(t){return t>2147483647&&(t-=4294967296),t},e.addPadding=function(t,e=16,r,n=!1,o=!1){let s=t.byteLength||t.length,a=e-s%e;if(a>0&&(a<e||n)){console.log("addPadding()",s,e,a);let n=new Array(a);if(r)for(let t=0;t<a;t++)n[t]=0;else(new i.SecureRandom).nextBytes(n);if(t instanceof ArrayBuffer)t=o?g(n,t):g(t,n);else if(t instanceof Uint8Array){let e=new Uint8Array(t.length+n.length);o?(e.set(n),e.set(t,n.length)):(e.set(t),e.set(n,t.length)),t=e}else t=o?n.concat(t):t.concat(n)}return t},e.gzipUncompress=function(t,e){return o.default.inflate(t,e?{to:"string"}:void 0)},e.nextRandomInt=function(t){return Math.floor(Math.random()*t)}},function(t,e,r){(function(){var e;function r(t,e,r){null!=t&&("number"==typeof t?this.fromNumber(t,e,r):null==e&&"string"!=typeof t?this.fromString(t,256):this.fromString(t,e))}function n(){return new r(null)}var i="undefined"!=typeof navigator;i&&"Microsoft Internet Explorer"==navigator.appName?(r.prototype.am=function(t,e,r,n,i,o){for(var s=32767&e,a=e>>15;--o>=0;){var f=32767&this[t],h=this[t++]>>15,u=a*f+h*s;i=((f=s*f+((32767&u)<<15)+r[n]+(1073741823&i))>>>30)+(u>>>15)+a*h+(i>>>30),r[n++]=1073741823&f}return i},e=30):i&&"Netscape"!=navigator.appName?(r.prototype.am=function(t,e,r,n,i,o){for(;--o>=0;){var s=e*this[t++]+r[n]+i;i=Math.floor(s/67108864),r[n++]=67108863&s}return i},e=26):(r.prototype.am=function(t,e,r,n,i,o){for(var s=16383&e,a=e>>14;--o>=0;){var f=16383&this[t],h=this[t++]>>14,u=a*f+h*s;i=((f=s*f+((16383&u)<<14)+r[n]+i)>>28)+(u>>14)+a*h,r[n++]=268435455&f}return i},e=28),r.prototype.DB=e,r.prototype.DM=(1<<e)-1,r.prototype.DV=1<<e;r.prototype.FV=Math.pow(2,52),r.prototype.F1=52-e,r.prototype.F2=2*e-52;var o,s,a="0123456789abcdefghijklmnopqrstuvwxyz",f=new Array;for(o="0".charCodeAt(0),s=0;s<=9;++s)f[o++]=s;for(o="a".charCodeAt(0),s=10;s<36;++s)f[o++]=s;for(o="A".charCodeAt(0),s=10;s<36;++s)f[o++]=s;function h(t){return a.charAt(t)}function u(t,e){var r=f[t.charCodeAt(e)];return null==r?-1:r}function c(t){var e=n();return e.fromInt(t),e}function l(t){var e,r=1;return 0!=(e=t>>>16)&&(t=e,r+=16),0!=(e=t>>8)&&(t=e,r+=8),0!=(e=t>>4)&&(t=e,r+=4),0!=(e=t>>2)&&(t=e,r+=2),0!=(e=t>>1)&&(t=e,r+=1),r}function d(t){this.m=t}function p(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}function g(t,e){return t&e}function v(t,e){return t|e}function y(t,e){return t^e}function m(t,e){return t&~e}function b(t){if(0==t)return-1;var e=0;return 0==(65535&t)&&(t>>=16,e+=16),0==(255&t)&&(t>>=8,e+=8),0==(15&t)&&(t>>=4,e+=4),0==(3&t)&&(t>>=2,e+=2),0==(1&t)&&++e,e}function w(t){for(var e=0;0!=t;)t&=t-1,++e;return e}function _(){}function k(t){return t}function S(t){this.r2=n(),this.q3=n(),r.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t),this.m=t}d.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},d.prototype.revert=function(t){return t},d.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},d.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},d.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},p.prototype.convert=function(t){var e=n();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(r.ZERO)>0&&this.m.subTo(e,e),e},p.prototype.revert=function(t){var e=n();return t.copyTo(e),this.reduce(e),e},p.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e<this.m.t;++e){var r=32767&t[e],n=r*this.mpl+((r*this.mph+(t[e]>>15)*this.mpl&this.um)<<15)&t.DM;for(t[r=e+this.m.t]+=this.m.am(0,n,t,e,0,this.m.t);t[r]>=t.DV;)t[r]-=t.DV,t[++r]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},p.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},p.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},r.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s},r.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},r.prototype.fromString=function(t,e){var n;if(16==e)n=4;else if(8==e)n=3;else if(256==e)n=8;else if(2==e)n=1;else if(32==e)n=5;else{if(4!=e)return void this.fromRadix(t,e);n=2}this.t=0,this.s=0;for(var i=t.length,o=!1,s=0;--i>=0;){var a=8==n?255&t[i]:u(t,i);a<0?"-"==t.charAt(i)&&(o=!0):(o=!1,0==s?this[this.t++]=a:s+n>this.DB?(this[this.t-1]|=(a&(1<<this.DB-s)-1)<<s,this[this.t++]=a>>this.DB-s):this[this.t-1]|=a<<s,(s+=n)>=this.DB&&(s-=this.DB))}8==n&&0!=(128&t[0])&&(this.s=-1,s>0&&(this[this.t-1]|=(1<<this.DB-s)-1<<s)),this.clamp(),o&&r.ZERO.subTo(this,this)},r.prototype.clamp=function(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t},r.prototype.dlShiftTo=function(t,e){var r;for(r=this.t-1;r>=0;--r)e[r+t]=this[r];for(r=t-1;r>=0;--r)e[r]=0;e.t=this.t+t,e.s=this.s},r.prototype.drShiftTo=function(t,e){for(var r=t;r<this.t;++r)e[r-t]=this[r];e.t=Math.max(this.t-t,0),e.s=this.s},r.prototype.lShiftTo=function(t,e){var r,n=t%this.DB,i=this.DB-n,o=(1<<i)-1,s=Math.floor(t/this.DB),a=this.s<<n&this.DM;for(r=this.t-1;r>=0;--r)e[r+s+1]=this[r]>>i|a,a=(this[r]&o)<<n;for(r=s-1;r>=0;--r)e[r]=0;e[s]=a,e.t=this.t+s+1,e.s=this.s,e.clamp()},r.prototype.rShiftTo=function(t,e){e.s=this.s;var r=Math.floor(t/this.DB);if(r>=this.t)e.t=0;else{var n=t%this.DB,i=this.DB-n,o=(1<<n)-1;e[0]=this[r]>>n;for(var s=r+1;s<this.t;++s)e[s-r-1]|=(this[s]&o)<<i,e[s-r]=this[s]>>n;n>0&&(e[this.t-r-1]|=(this.s&o)<<i),e.t=this.t-r,e.clamp()}},r.prototype.subTo=function(t,e){for(var r=0,n=0,i=Math.min(t.t,this.t);r<i;)n+=this[r]-t[r],e[r++]=n&this.DM,n>>=this.DB;if(t.t<this.t){for(n-=t.s;r<this.t;)n+=this[r],e[r++]=n&this.DM,n>>=this.DB;n+=this.s}else{for(n+=this.s;r<t.t;)n-=t[r],e[r++]=n&this.DM,n>>=this.DB;n-=t.s}e.s=n<0?-1:0,n<-1?e[r++]=this.DV+n:n>0&&(e[r++]=n),e.t=r,e.clamp()},r.prototype.multiplyTo=function(t,e){var n=this.abs(),i=t.abs(),o=n.t;for(e.t=o+i.t;--o>=0;)e[o]=0;for(o=0;o<i.t;++o)e[o+n.t]=n.am(0,i[o],e,o,0,n.t);e.s=0,e.clamp(),this.s!=t.s&&r.ZERO.subTo(e,e)},r.prototype.squareTo=function(t){for(var e=this.abs(),r=t.t=2*e.t;--r>=0;)t[r]=0;for(r=0;r<e.t-1;++r){var n=e.am(r,e[r],t,2*r,0,1);(t[r+e.t]+=e.am(r+1,2*e[r],t,2*r+1,n,e.t-r-1))>=e.DV&&(t[r+e.t]-=e.DV,t[r+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(r,e[r],t,2*r,0,1)),t.s=0,t.clamp()},r.prototype.divRemTo=function(t,e,i){var o=t.abs();if(!(o.t<=0)){var s=this.abs();if(s.t<o.t)return null!=e&&e.fromInt(0),void(null!=i&&this.copyTo(i));null==i&&(i=n());var a=n(),f=this.s,h=t.s,u=this.DB-l(o[o.t-1]);u>0?(o.lShiftTo(u,a),s.lShiftTo(u,i)):(o.copyTo(a),s.copyTo(i));var c=a.t,d=a[c-1];if(0!=d){var p=d*(1<<this.F1)+(c>1?a[c-2]>>this.F2:0),g=this.FV/p,v=(1<<this.F1)/p,y=1<<this.F2,m=i.t,b=m-c,w=null==e?n():e;for(a.dlShiftTo(b,w),i.compareTo(w)>=0&&(i[i.t++]=1,i.subTo(w,i)),r.ONE.dlShiftTo(c,w),w.subTo(a,a);a.t<c;)a[a.t++]=0;for(;--b>=0;){var _=i[--m]==d?this.DM:Math.floor(i[m]*g+(i[m-1]+y)*v);if((i[m]+=a.am(0,_,i,b,0,c))<_)for(a.dlShiftTo(b,w),i.subTo(w,i);i[m]<--_;)i.subTo(w,i)}null!=e&&(i.drShiftTo(c,e),f!=h&&r.ZERO.subTo(e,e)),i.t=c,i.clamp(),u>0&&i.rShiftTo(u,i),f<0&&r.ZERO.subTo(i,i)}}},r.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(0==(1&t))return 0;var e=3&t;return(e=(e=(e=(e=e*(2-(15&t)*e)&15)*(2-(255&t)*e)&255)*(2-((65535&t)*e&65535))&65535)*(2-t*e%this.DV)%this.DV)>0?this.DV-e:-e},r.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},r.prototype.exp=function(t,e){if(t>4294967295||t<1)return r.ONE;var i=n(),o=n(),s=e.convert(this),a=l(t)-1;for(s.copyTo(i);--a>=0;)if(e.sqrTo(i,o),(t&1<<a)>0)e.mulTo(o,s,i);else{var f=i;i=o,o=f}return e.revert(i)},r.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var e;if(16==t)e=4;else if(8==t)e=3;else if(2==t)e=1;else if(32==t)e=5;else{if(4!=t)return this.toRadix(t);e=2}var r,n=(1<<e)-1,i=!1,o="",s=this.t,a=this.DB-s*this.DB%e;if(s-- >0)for(a<this.DB&&(r=this[s]>>a)>0&&(i=!0,o=h(r));s>=0;)a<e?(r=(this[s]&(1<<a)-1)<<e-a,r|=this[--s]>>(a+=this.DB-e)):(r=this[s]>>(a-=e)&n,a<=0&&(a+=this.DB,--s)),r>0&&(i=!0),i&&(o+=h(r));return i?o:"0"},r.prototype.negate=function(){var t=n();return r.ZERO.subTo(this,t),t},r.prototype.abs=function(){return this.s<0?this.negate():this},r.prototype.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var r=this.t;if(0!=(e=r-t.t))return this.s<0?-e:e;for(;--r>=0;)if(0!=(e=this[r]-t[r]))return e;return 0},r.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+l(this[this.t-1]^this.s&this.DM)},r.prototype.mod=function(t){var e=n();return this.abs().divRemTo(t,null,e),this.s<0&&e.compareTo(r.ZERO)>0&&t.subTo(e,e),e},r.prototype.modPowInt=function(t,e){var r;return r=t<256||e.isEven()?new d(e):new p(e),this.exp(t,r)},r.ZERO=c(0),r.ONE=c(1),_.prototype.convert=k,_.prototype.revert=k,_.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r)},_.prototype.sqrTo=function(t,e){t.squareTo(e)},S.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var e=n();return t.copyTo(e),this.reduce(e),e},S.prototype.revert=function(t){return t},S.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)},S.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},S.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)};var B,T,x,A=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],D=(1<<26)/A[A.length-1];function E(){var t;t=(new Date).getTime(),T[x++]^=255&t,T[x++]^=t>>8&255,T[x++]^=t>>16&255,T[x++]^=t>>24&255,x>=F&&(x-=F)}if(r.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},r.prototype.toRadix=function(t){if(null==t&&(t=10),0==this.signum()||t<2||t>36)return"0";var e=this.chunkSize(t),r=Math.pow(t,e),i=c(r),o=n(),s=n(),a="";for(this.divRemTo(i,o,s);o.signum()>0;)a=(r+s.intValue()).toString(t).substr(1)+a,o.divRemTo(i,o,s);return s.intValue().toString(t)+a},r.prototype.fromRadix=function(t,e){this.fromInt(0),null==e&&(e=10);for(var n=this.chunkSize(e),i=Math.pow(e,n),o=!1,s=0,a=0,f=0;f<t.length;++f){var h=u(t,f);h<0?"-"==t.charAt(f)&&0==this.signum()&&(o=!0):(a=e*a+h,++s>=n&&(this.dMultiply(i),this.dAddOffset(a,0),s=0,a=0))}s>0&&(this.dMultiply(Math.pow(e,s)),this.dAddOffset(a,0)),o&&r.ZERO.subTo(this,this)},r.prototype.fromNumber=function(t,e,n){if("number"==typeof e)if(t<2)this.fromInt(1);else for(this.fromNumber(t,n),this.testBit(t-1)||this.bitwiseTo(r.ONE.shiftLeft(t-1),v,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(e);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(r.ONE.shiftLeft(t-1),this);else{var i=new Array,o=7&t;i.length=1+(t>>3),e.nextBytes(i),o>0?i[0]&=(1<<o)-1:i[0]=0,this.fromString(i,256)}},r.prototype.bitwiseTo=function(t,e,r){var n,i,o=Math.min(t.t,this.t);for(n=0;n<o;++n)r[n]=e(this[n],t[n]);if(t.t<this.t){for(i=t.s&this.DM,n=o;n<this.t;++n)r[n]=e(this[n],i);r.t=this.t}else{for(i=this.s&this.DM,n=o;n<t.t;++n)r[n]=e(i,t[n]);r.t=t.t}r.s=e(this.s,t.s),r.clamp()},r.prototype.changeBit=function(t,e){var n=r.ONE.shiftLeft(t);return this.bitwiseTo(n,e,n),n},r.prototype.addTo=function(t,e){for(var r=0,n=0,i=Math.min(t.t,this.t);r<i;)n+=this[r]+t[r],e[r++]=n&this.DM,n>>=this.DB;if(t.t<this.t){for(n+=t.s;r<this.t;)n+=this[r],e[r++]=n&this.DM,n>>=this.DB;n+=this.s}else{for(n+=this.s;r<t.t;)n+=t[r],e[r++]=n&this.DM,n>>=this.DB;n+=t.s}e.s=n<0?-1:0,n>0?e[r++]=n:n<-1&&(e[r++]=this.DV+n),e.t=r,e.clamp()},r.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},r.prototype.dAddOffset=function(t,e){if(0!=t){for(;this.t<=e;)this[this.t++]=0;for(this[e]+=t;this[e]>=this.DV;)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}},r.prototype.multiplyLowerTo=function(t,e,r){var n,i=Math.min(this.t+t.t,e);for(r.s=0,r.t=i;i>0;)r[--i]=0;for(n=r.t-this.t;i<n;++i)r[i+this.t]=this.am(0,t[i],r,i,0,this.t);for(n=Math.min(t.t,e);i<n;++i)this.am(0,t[i],r,i,0,e-i);r.clamp()},r.prototype.multiplyUpperTo=function(t,e,r){--e;var n=r.t=this.t+t.t-e;for(r.s=0;--n>=0;)r[n]=0;for(n=Math.max(e-this.t,0);n<t.t;++n)r[this.t+n-e]=this.am(e-n,t[n],r,0,0,this.t+n-e);r.clamp(),r.drShiftTo(1,r)},r.prototype.modInt=function(t){if(t<=0)return 0;var e=this.DV%t,r=this.s<0?t-1:0;if(this.t>0)if(0==e)r=this[0]%t;else for(var n=this.t-1;n>=0;--n)r=(e*r+this[n])%t;return r},r.prototype.millerRabin=function(t){var e=this.subtract(r.ONE),i=e.getLowestSetBit();if(i<=0)return!1;var o=e.shiftRight(i);(t=t+1>>1)>A.length&&(t=A.length);for(var s=n(),a=0;a<t;++a){s.fromInt(A[Math.floor(Math.random()*A.length)]);var f=s.modPow(o,this);if(0!=f.compareTo(r.ONE)&&0!=f.compareTo(e)){for(var h=1;h++<i&&0!=f.compareTo(e);)if(0==(f=f.modPowInt(2,this)).compareTo(r.ONE))return!1;if(0!=f.compareTo(e))return!1}}return!0},r.prototype.clone=function(){var t=n();return this.copyTo(t),t},r.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},r.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},r.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},r.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},r.prototype.toByteArray=function(){var t=this.t,e=new Array;e[0]=this.s;var r,n=this.DB-t*this.DB%8,i=0;if(t-- >0)for(n<this.DB&&(r=this[t]>>n)!=(this.s&this.DM)>>n&&(e[i++]=r|this.s<<this.DB-n);t>=0;)n<8?(r=(this[t]&(1<<n)-1)<<8-n,r|=this[--t]>>(n+=this.DB-8)):(r=this[t]>>(n-=8)&255,n<=0&&(n+=this.DB,--t)),0!=(128&r)&&(r|=-256),0==i&&(128&this.s)!=(128&r)&&++i,(i>0||r!=this.s)&&(e[i++]=r);return e},r.prototype.equals=function(t){return 0==this.compareTo(t)},r.prototype.min=function(t){return this.compareTo(t)<0?this:t},r.prototype.max=function(t){return this.compareTo(t)>0?this:t},r.prototype.and=function(t){var e=n();return this.bitwiseTo(t,g,e),e},r.prototype.or=function(t){var e=n();return this.bitwiseTo(t,v,e),e},r.prototype.xor=function(t){var e=n();return this.bitwiseTo(t,y,e),e},r.prototype.andNot=function(t){var e=n();return this.bitwiseTo(t,m,e),e},r.prototype.not=function(){for(var t=n(),e=0;e<this.t;++e)t[e]=this.DM&~this[e];return t.t=this.t,t.s=~this.s,t},r.prototype.shiftLeft=function(t){var e=n();return t<0?this.rShiftTo(-t,e):this.lShiftTo(t,e),e},r.prototype.shiftRight=function(t){var e=n();return t<0?this.lShiftTo(-t,e):this.rShiftTo(t,e),e},r.prototype.getLowestSetBit=function(){for(var t=0;t<this.t;++t)if(0!=this[t])return t*this.DB+b(this[t]);return this.s<0?this.t*this.DB:-1},r.prototype.bitCount=function(){for(var t=0,e=this.s&this.DM,r=0;r<this.t;++r)t+=w(this[r]^e);return t},r.prototype.testBit=function(t){var e=Math.floor(t/this.DB);return e>=this.t?0!=this.s:0!=(this[e]&1<<t%this.DB)},r.prototype.setBit=function(t){return this.changeBit(t,v)},r.prototype.clearBit=function(t){return this.changeBit(t,m)},r.prototype.flipBit=function(t){return this.changeBit(t,y)},r.prototype.add=function(t){var e=n();return this.addTo(t,e),e},r.prototype.subtract=function(t){var e=n();return this.subTo(t,e),e},r.prototype.multiply=function(t){var e=n();return this.multiplyTo(t,e),e},r.prototype.divide=function(t){var e=n();return this.divRemTo(t,e,null),e},r.prototype.remainder=function(t){var e=n();return this.divRemTo(t,null,e),e},r.prototype.divideAndRemainder=function(t){var e=n(),r=n();return this.divRemTo(t,e,r),new Array(e,r)},r.prototype.modPow=function(t,e){var r,i,o=t.bitLength(),s=c(1);if(o<=0)return s;r=o<18?1:o<48?3:o<144?4:o<768?5:6,i=o<8?new d(e):e.isEven()?new S(e):new p(e);var a=new Array,f=3,h=r-1,u=(1<<r)-1;if(a[1]=i.convert(this),r>1){var g=n();for(i.sqrTo(a[1],g);f<=u;)a[f]=n(),i.mulTo(g,a[f-2],a[f]),f+=2}var v,y,m=t.t-1,b=!0,w=n();for(o=l(t[m])-1;m>=0;){for(o>=h?v=t[m]>>o-h&u:(v=(t[m]&(1<<o+1)-1)<<h-o,m>0&&(v|=t[m-1]>>this.DB+o-h)),f=r;0==(1&v);)v>>=1,--f;if((o-=f)<0&&(o+=this.DB,--m),b)a[v].copyTo(s),b=!1;else{for(;f>1;)i.sqrTo(s,w),i.sqrTo(w,s),f-=2;f>0?i.sqrTo(s,w):(y=s,s=w,w=y),i.mulTo(w,a[v],s)}for(;m>=0&&0==(t[m]&1<<o);)i.sqrTo(s,w),y=s,s=w,w=y,--o<0&&(o=this.DB-1,--m)}return i.revert(s)},r.prototype.modInverse=function(t){var e=t.isEven();if(this.isEven()&&e||0==t.signum())return r.ZERO;for(var n=t.clone(),i=this.clone(),o=c(1),s=c(0),a=c(0),f=c(1);0!=n.signum();){for(;n.isEven();)n.rShiftTo(1,n),e?(o.isEven()&&s.isEven()||(o.addTo(this,o),s.subTo(t,s)),o.rShiftTo(1,o)):s.isEven()||s.subTo(t,s),s.rShiftTo(1,s);for(;i.isEven();)i.rShiftTo(1,i),e?(a.isEven()&&f.isEven()||(a.addTo(this,a),f.subTo(t,f)),a.rShiftTo(1,a)):f.isEven()||f.subTo(t,f),f.rShiftTo(1,f);n.compareTo(i)>=0?(n.subTo(i,n),e&&o.subTo(a,o),s.subTo(f,s)):(i.subTo(n,i),e&&a.subTo(o,a),f.subTo(s,f))}return 0!=i.compareTo(r.ONE)?r.ZERO:f.compareTo(t)>=0?f.subtract(t):f.signum()<0?(f.addTo(t,f),f.signum()<0?f.add(t):f):f},r.prototype.pow=function(t){return this.exp(t,new _)},r.prototype.gcd=function(t){var e=this.s<0?this.negate():this.clone(),r=t.s<0?t.negate():t.clone();if(e.compareTo(r)<0){var n=e;e=r,r=n}var i=e.getLowestSetBit(),o=r.getLowestSetBit();if(o<0)return e;for(i<o&&(o=i),o>0&&(e.rShiftTo(o,e),r.rShiftTo(o,r));e.signum()>0;)(i=e.getLowestSetBit())>0&&e.rShiftTo(i,e),(i=r.getLowestSetBit())>0&&r.rShiftTo(i,r),e.compareTo(r)>=0?(e.subTo(r,e),e.rShiftTo(1,e)):(r.subTo(e,r),r.rShiftTo(1,r));return o>0&&r.lShiftTo(o,r),r},r.prototype.isProbablePrime=function(t){var e,r=this.abs();if(1==r.t&&r[0]<=A[A.length-1]){for(e=0;e<A.length;++e)if(r[0]==A[e])return!0;return!1}if(r.isEven())return!1;for(e=1;e<A.length;){for(var n=A[e],i=e+1;i<A.length&&n<D;)n*=A[i++];for(n=r.modInt(n);e<i;)if(n%A[e++]==0)return!1}return r.millerRabin(t)},r.prototype.square=function(){var t=n();return this.squareTo(t),t},r.prototype.Barrett=S,null==T){var M;if(T=new Array,x=0,"undefined"!=typeof window&&window.crypto)if(window.crypto.getRandomValues){var I=new Uint8Array(32);for(window.crypto.getRandomValues(I),M=0;M<32;++M)T[x++]=I[M]}else if("Netscape"==navigator.appName&&navigator.appVersion<"5"){var C=window.crypto.random(32);for(M=0;M<C.length;++M)T[x++]=255&C.charCodeAt(M)}for(;x<F;)M=Math.floor(65536*Math.random()),T[x++]=M>>>8,T[x++]=255&M;x=0,E()}function R(){if(null==B){for(E(),(B=new z).init(T),x=0;x<T.length;++x)T[x]=0;x=0}return B.next()}function O(){}function z(){this.i=0,this.j=0,this.S=new Array}O.prototype.nextBytes=function(t){var e;for(e=0;e<t.length;++e)t[e]=R()},z.prototype.init=function(t){var e,r,n;for(e=0;e<256;++e)this.S[e]=e;for(r=0,e=0;e<256;++e)r=r+this.S[e]+t[e%t.length]&255,n=this.S[e],this.S[e]=this.S[r],this.S[r]=n;this.i=0,this.j=0},z.prototype.next=function(){var t;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,t=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=t,this.S[t+this.S[this.i]&255]};var F=256;t.exports={default:r,BigInteger:r,SecureRandom:O}}).call(this)},function(t,e,r){"use strict";r.r(e);var n=r(0),i=r(1);const o=self;o.onmessage=function(t){var e=t.data.taskID,r=null;switch(t.data.task){case"unzip":r=i.gzipUncompress.apply(null,t.data.args);break;case"factorize":r=n.pqPrimeFactorization.apply(null,t.data.args);break;case"mod-pow":r=n.bytesModPow.apply(null,t.data.args);break;case"sha1-hash":r=n.sha1HashSync.apply(null,t.data.args);break;case"sha256-hash":r=n.sha256HashSync.apply(null,t.data.args);break;case"rsa-encrypt":r=n.rsaEncrypt.apply(null,t.data.args);break;case"aes-encrypt":r=n.aesEncryptSync.apply(null,t.data.args);break;case"aes-decrypt":r=n.aesDecryptSync.apply(null,t.data.args);break;case"pbkdf2":return n.hash_pbkdf2.apply(null,t.data.args).then(t=>{o.postMessage({taskID:e,result:t})});default:throw new Error("Unknown task: "+t.data.task)}o.postMessage({taskID:e,result:r})},o.postMessage("ready")},function(t,e,r){"use strict";function n(t){return String.fromCharCode(t>>24&255)+String.fromCharCode(t>>16&255)+String.fromCharCode(t>>8&255)+String.fromCharCode(255&t)}Object.defineProperty(e,"__esModule",{value:!0});for(var i=String.fromCharCode(128),o=64;o--;)i+=String.fromCharCode(0);e.default=function(t){for(var e=t.length,r=e/4294967296>>>0,o=e>>>0,s=[0,0],a=s.length-1;a>=0;a-=1)s[a]+=o,o=r+(s[a]/4294967296>>>0),s[a]>>>=0,r=o/4294967296>>>0;var f,h=t,u=63&s[s.length-1]+8;h+=i.substr(0,64-u);var c=8*s[0];for(a=0;a<s.length-1;a+=1)h+=n((c+=(f=8*s[a+1])/4294967296>>>0)>>>0),c=f>>>0;var l=function(t){for(var e,r,n,i,o,s,a,f=0,h=0,u=new Uint32Array(80),c=1732584193,l=4023233417,d=2562383102,p=271733878,g=3285377520,v=t.length,y=0;v>=64;){for(e=c,r=l,n=d,i=p,o=g,f=0;f<16;f+=1)u[f]=(a=y,(s=t).charCodeAt(a)<<24^s.charCodeAt(a+1)<<16^s.charCodeAt(a+2)<<8^s.charCodeAt(a+3)),y+=4,h=(e<<5|e>>>27)+(i^r&(n^i))+o+1518500249+u[f],o=i,i=n,n=(r<<30|r>>>2)>>>0,r=e,e=h;for(;f<20;f+=1)h=(h=u[f-3]^u[f-8]^u[f-14]^u[f-16])<<1|h>>>31,u[f]=h,h=(e<<5|e>>>27)+(i^r&(n^i))+o+1518500249+h,o=i,i=n,n=(r<<30|r>>>2)>>>0,r=e,e=h;for(;f<32;f+=1)h=(h=u[f-3]^u[f-8]^u[f-14]^u[f-16])<<1|h>>>31,u[f]=h,h=(e<<5|e>>>27)+(r^n^i)+o+1859775393+h,o=i,i=n,n=(r<<30|r>>>2)>>>0,r=e,e=h;for(;f<40;f+=1)h=(h=u[f-6]^u[f-16]^u[f-28]^u[f-32])<<2|h>>>30,u[f]=h,h=(e<<5|e>>>27)+(r^n^i)+o+1859775393+h,o=i,i=n,n=(r<<30|r>>>2)>>>0,r=e,e=h;for(;f<60;f+=1)h=(h=u[f-6]^u[f-16]^u[f-28]^u[f-32])<<2|h>>>30,u[f]=h,h=(e<<5|e>>>27)+(r&n|i&(r^n))+o+2400959708+h,o=i,i=n,n=(r<<30|r>>>2)>>>0,r=e,e=h;for(;f<80;f+=1)h=(h=u[f-6]^u[f-16]^u[f-28]^u[f-32])<<2|h>>>30,u[f]=h,h=(e<<5|e>>>27)+(r^n^i)+o+3395469782+h,o=i,i=n,n=(r<<30|r>>>2)>>>0,r=e,e=h;c=c+e|0,l=l+r|0,d=d+n|0,p=p+i|0,g=g+o|0,v-=64}return{h1:c,h2:l,h3:d,h4:p,h5:g}}(h+=n(c));return n(l.h1)+n(l.h2)+n(l.h3)+n(l.h4)+n(l.h5)}},function(t,e,r){"use strict";r.r(e),r.d(e,"bpe",(function(){return n})),r.d(e,"one",(function(){return h})),r.d(e,"zero",(function(){return u})),r.d(e,"findPrimes",(function(){return V})),r.d(e,"millerRabinInt",(function(){return K})),r.d(e,"millerRabin",(function(){return W})),r.d(e,"bitSize",(function(){return G})),r.d(e,"expand",(function(){return X})),r.d(e,"randTruePrime",(function(){return Y})),r.d(e,"randProbPrime",(function(){return Q})),r.d(e,"randProbPrimeRounds",(function(){return $})),r.d(e,"mod",(function(){return J})),r.d(e,"addInt",(function(){return tt})),r.d(e,"mult",(function(){return et})),r.d(e,"powMod",(function(){return rt})),r.d(e,"sub",(function(){return nt})),r.d(e,"add",(function(){return it})),r.d(e,"inverseMod",(function(){return ot})),r.d(e,"multMod",(function(){return st})),r.d(e,"randTruePrime_",(function(){return at})),r.d(e,"randBigInt",(function(){return ft})),r.d(e,"randBigInt_",(function(){return ht})),r.d(e,"GCD",(function(){return ut})),r.d(e,"GCD_",(function(){return ct})),r.d(e,"inverseMod_",(function(){return lt})),r.d(e,"inverseModInt",(function(){return dt})),r.d(e,"eGCD_",(function(){return pt})),r.d(e,"negative",(function(){return gt})),r.d(e,"greaterShift",(function(){return vt})),r.d(e,"greater",(function(){return yt})),r.d(e,"divide_",(function(){return mt})),r.d(e,"carry_",(function(){return bt})),r.d(e,"modInt",(function(){return wt})),r.d(e,"int2bigInt",(function(){return _t})),r.d(e,"str2bigInt",(function(){return kt})),r.d(e,"equalsInt",(function(){return St})),r.d(e,"equals",(function(){return Bt})),r.d(e,"isZero",(function(){return Tt})),r.d(e,"bigInt2str",(function(){return xt})),r.d(e,"dup",(function(){return At})),r.d(e,"copy_",(function(){return Dt})),r.d(e,"copyInt_",(function(){return Et})),r.d(e,"addInt_",(function(){return Mt})),r.d(e,"rightShift_",(function(){return It})),r.d(e,"halve_",(function(){return Ct})),r.d(e,"leftShift_",(function(){return Rt})),r.d(e,"multInt_",(function(){return Ot})),r.d(e,"divInt_",(function(){return zt})),r.d(e,"linComb_",(function(){return Ft})),r.d(e,"linCombShift_",(function(){return Nt})),r.d(e,"addShift_",(function(){return Pt})),r.d(e,"subShift_",(function(){return Zt})),r.d(e,"sub_",(function(){return Ut})),r.d(e,"add_",(function(){return Lt})),r.d(e,"mult_",(function(){return Ht})),r.d(e,"mod_",(function(){return qt})),r.d(e,"multMod_",(function(){return jt})),r.d(e,"squareMod_",(function(){return Vt})),r.d(e,"trim",(function(){return Kt})),r.d(e,"powMod_",(function(){return Wt})),r.d(e,"mont_",(function(){return Gt}));var n=0,i=0,o=i+1,s="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_=!@#$%^&*()[]{}|;:,.<>/?`~ \\'\"+-";for(n=0;1<<n+1>1<<n;n++);o=(i=(1<<(n>>=1))-1)+1;var a,f,h=_t(1,1,1),u=_t(0,1,1),c=new Array(0),l=c,d=c,p=c,g=c,v=c,y=c,m=c,b=c,w=c,_=c,k=c,S=c,B=c,T=c,x=c,A=c,D=c,E=c,M=c,I=c,C=c,R=c,O=c,z=c,F=c,N=c,P=c,Z=c,U=c,L=c,H=c,q=c,j=c;function V(t){var e,r,n,i;for(r=new Array(t),e=0;e<t;e++)r[e]=0;for(r[0]=2,n=0;r[n]<t;){for(e=r[n]*r[n];e<t;e+=r[n])r[e]=1;for(r[++n]=r[n-1]+1;r[n]<t&&r[r[n]];r[n]++);}for(i=new Array(n),e=0;e<n;e++)i[e]=r[e];return i}function K(t,e){return _.length!==t.length&&(_=At(t),k=At(t),S=At(t)),Et(S,e),W(t,S)}function W(t,e){var r,o,s,a;for(_.length!==t.length&&(_=At(t),k=At(t),S=At(t)),Dt(S,e),Dt(k,t),Dt(_,t),Mt(k,-1),Mt(_,-1),s=0,r=0;r<k.length;r++)for(o=1;o<i;o<<=1)t[r]&o?(a=s<k.length+n?s:0,r=k.length,o=i):s++;if(a&&It(k,a),Wt(S,k,t),!St(S,1)&&!Bt(S,_)){for(o=1;o<=a-1&&!Bt(S,_);){if(Vt(S,t),St(S,1))return 0;o++}if(!Bt(S,_))return 0}return 1}function G(t){var e,r,i;for(e=t.length-1;0==t[e]&&e>0;e--);for(r=0,i=t[e];i;i>>=1,r++);return r+=n*e}function X(t,e){var r=_t(0,(t.length>e?t.length:e)*n,0);return Dt(r,t),r}function Y(t){var e=_t(0,t,0);return at(e,t),Kt(e,1)}function Q(t){return $(t,t>=600?2:t>=550?4:t>=500?5:t>=400?6:t>=350?7:t>=300?9:t>=250?12:t>=200?15:t>=150?18:t>=100?27:40)}function $(t,e){var r,n,i;for(3e4,r=_t(0,t,0),0===M.length&&(M=V(3e4)),j.length!==r.length&&(j=At(r));;){for(ht(r,t,0),r[0]|=1,i=0,n=0;n<M.length&&M[n]<=3e4;n++)if(0===wt(r,M[n])&&!St(r,M[n])){i=1;break}for(n=0;n<e&&!i;n++){for(ht(j,t,0);!yt(r,j);)ht(j,t,0);W(r,j)||(i=1)}if(!i)return r}}function J(t,e){var r=At(t);return qt(r,e),Kt(r,1)}function tt(t,e){var r=X(t,t.length+1);return Mt(r,e),Kt(r,1)}function et(t,e){var r=X(t,t.length+e.length);return Ht(r,e),Kt(r,1)}function rt(t,e,r){var n=X(t,r.length);return Wt(n,Kt(e,2),Kt(r,2)),Kt(n,1)}function nt(t,e){var r=X(t,t.length>e.length?t.length+1:e.length+1);return Ut(r,e),Kt(r,1)}function it(t,e){var r=X(t,t.length>e.length?t.length+1:e.length+1);return Lt(r,e),Kt(r,1)}function ot(t,e){var r=X(t,e.length);return lt(r,e)?Kt(r,1):null}function st(t,e,r){var n=X(t,r.length);return jt(n,e,r),Kt(n,1)}function at(t,e){var r,i,o,s,a,f,h,u,c,l;if(0==M.length&&(M=V(3e4)),0==I.length)for(I=new Array(512),o=0;o<512;o++)I[o]=Math.pow(2,o/511-1);if(R.length!=t.length&&(R=At(t),O=At(t),N=At(t),Z=At(t),H=At(t),At(t),At(t),L=At(t),U=At(t),C=At(t),z=At(t),F=At(t),P=At(t),q=At(t)),e<=20){for(r=(1<<(e+2>>1))-1,Et(t,0),i=1;i;)for(i=0,t[0]=1|1<<e-1|Math.floor(Math.random()*(1<<e)),o=1;o<M.length&&(M[o]&r)==M[o];o++)if(0==t[0]%M[o]){i=1;break}bt(t)}else{if(a=.1*e*e,e>40)for(s=1;e-e*s<=20;)s=I[Math.floor(512*Math.random())];else s=.5;for(c=Math.floor(s*e)+1,at(F,c),Et(R,0),R[Math.floor((e-2)/n)]|=1<<(e-2)%n,mt(R,F,C,z),h=G(C);;){for(;ht(O,h,0),!yt(C,O););for(Mt(O,1),Lt(O,C),Dt(U,F),Ht(U,O),Ot(U,2),Mt(U,1),Dt(Z,O),Ot(Z,2),f=0,o=0;o<M.length&&M[o]<a;o++)if(0==wt(U,M[o])&&!St(U,M[o])){f=1;break}if(f||K(U,2)||(f=1),!f){for(Mt(U,-3),o=U.length-1;0==U[o]&&o>0;o--);for(u=0,l=U[o];l;l>>=1,u++);for(u+=n*o;ht(P,u,0),!yt(U,P););if(Mt(U,3),Mt(P,2),Dt(L,P),Dt(N,U),Mt(N,-1),Wt(L,N,U),Mt(L,-1),Tt(L)&&(Dt(L,P),Wt(L,Z,U),Mt(L,-1),Dt(q,U),Dt(H,L),ct(H,U),St(H,1)))return void Dt(t,q)}}}}function ft(t,e){var r;return ht(r=_t(0,0,Math.floor((t-1)/n)+2),t,e),r}function ht(t,e,r){var i,o;for(i=0;i<t.length;i++)t[i]=0;for(o=Math.floor((e-1)/n)+1,i=0;i<o;i++)t[i]=Math.floor(Math.random()*(1<<n-1));t[o-1]&=(2<<(e-1)%n)-1,1==r&&(t[o-1]|=1<<(e-1)%n)}function ut(t,e){var r;return ct(r=At(t),At(e)),r}function ct(t,e){var r,n,i,o,s,a,f,h,u;for(b.length!==t.length&&(b=At(t)),u=1;u;){for(u=0,r=1;r<e.length;r++)if(e[r]){u=1;break}if(!u)break;for(r=t.length;!t[r]&&r>=0;r--);for(n=t[r],i=e[r],o=1,s=0,a=0,f=1;i+a&&i+f&&(h=Math.floor((n+o)/(i+a)))==Math.floor((n+s)/(i+f));)c=o-h*a,o=a,a=c,c=s-h*f,s=f,f=c,c=n-h*i,n=i,i=c;s?(Dt(b,t),Ft(t,e,o,s),Ft(e,b,f,a)):(qt(t,e),Dt(b,t),Dt(t,e),Dt(e,b))}if(0!==e[0])for(c=wt(t,e[0]),Et(t,e[0]),e[0]=c;e[0];)t[0]%=e[0],c=t[0],t[0]=e[0],e[0]=c}function lt(t,e){var r=1+2*Math.max(t.length,e.length);if(!(1&t[0]||1&e[0]))return Et(t,0),0;for(T.length!=r&&(T=new Array(r),B=new Array(r),x=new Array(r),A=new Array(r),D=new Array(r),E=new Array(r)),Dt(T,t),Dt(B,e),Et(x,1),Et(A,0),Et(D,0),Et(E,1);;){for(;!(1&T[0]);)Ct(T),1&x[0]||1&A[0]?(Lt(x,e),Ct(x),Ut(A,t),Ct(A)):(Ct(x),Ct(A));for(;!(1&B[0]);)Ct(B),1&D[0]||1&E[0]?(Lt(D,e),Ct(D),Ut(E,t),Ct(E)):(Ct(D),Ct(E));if(yt(B,T)?(Ut(B,T),Ut(D,x),Ut(E,A)):(Ut(T,B),Ut(x,D),Ut(A,E)),St(T,0)){for(;gt(D);)Lt(D,e);return Dt(t,D),St(B,1)?1:(Et(t,0),0)}}}function dt(t,e){for(var r=1,n=0;;){if(1===t)return r;if(0===t)return 0;if(n-=r*Math.floor(e/t),1===(e%=t))return n;if(0===e)return 0;r-=n*Math.floor(t/e),t%=e}}function pt(t,e,r,n,i){var o=0,s=Math.max(t.length,e.length);for(T.length!=s&&(T=new Array(s),x=new Array(s),A=new Array(s),D=new Array(s),E=new Array(s));!(1&t[0]||1&e[0]);)Ct(t),Ct(e),o++;for(Dt(T,t),Dt(r,e),Et(x,1),Et(A,0),Et(D,0),Et(E,1);;){for(;!(1&T[0]);)Ct(T),1&x[0]||1&A[0]?(Lt(x,e),Ct(x),Ut(A,t),Ct(A)):(Ct(x),Ct(A));for(;!(1&r[0]);)Ct(r),1&D[0]||1&E[0]?(Lt(D,e),Ct(D),Ut(E,t),Ct(E)):(Ct(D),Ct(E));if(yt(r,T)?(Ut(r,T),Ut(D,x),Ut(E,A)):(Ut(T,r),Ut(x,D),Ut(A,E)),St(T,0)){for(;gt(D);)Lt(D,e),Ut(E,t);return Ot(E,-1),Dt(n,D),Dt(i,E),void Rt(r,o)}}}function gt(t){return t[t.length-1]>>n-1&1}function vt(t,e,r){var n,i=t.length,o=e.length;for(a=i+r<o?i+r:o,n=o-1-r;n<i&&n>=0;n++)if(t[n]>0)return 1;for(n=i-1+r;n<o;n++)if(e[n]>0)return 0;for(n=a-1;n>=r;n--){if(t[n-r]>e[n])return 1;if(t[n-r]<e[n])return 0}return 0}function yt(t,e){var r,n=t.length<e.length?t.length:e.length;for(r=t.length;r<e.length;r++)if(e[r])return 0;for(r=e.length;r<t.length;r++)if(t[r])return 1;for(r=n-1;r>=0;r--){if(t[r]>e[r])return 1;if(t[r]<e[r])return 0}return 0}function mt(t,e,r,s){var a,f,h,u,c,l,d,p;for(Dt(s,t),f=e.length;0===e[f-1];f--);for(p=e[f-1],d=0;p;d++)p>>=1;for(Rt(e,d=n-d),Rt(s,d),a=s.length;0===s[a-1]&&a>f;a--);for(Et(r,0);!vt(e,s,a-f);)Zt(s,e,a-f),r[a-f]++;for(h=a-1;h>=f;h--){for(s[h]==e[f-1]?r[h-f]=i:r[h-f]=Math.floor((s[h]*o+s[h-1])/e[f-1]);l=(c=(f>1?e[f-2]:0)*r[h-f])>>n,c&=i,l=(u=l+r[h-f]*e[f-1])>>n,u&=i,l==s[h]?u==s[h-1]?c>(h>1?s[h-2]:0):u>s[h-1]:l>s[h];)r[h-f]--;Nt(s,e,-r[h-f],h-f),gt(s)&&(Pt(s,e,h-f),r[h-f]--)}It(e,d),It(s,d)}function bt(t){var e,r,s,a;for(r=t.length,s=0,e=0;e<r;e++)a=0,(s+=t[e])<0&&(s+=(a=-(s>>n))*o),t[e]=s&i,s=(s>>n)-a}function wt(t,e){var r,n=0;for(r=t.length-1;r>=0;r--)n=(n*o+t[r])%e;return n}function _t(t,e,r){var i;i=r>(i=Math.ceil(e/n)+1)?r:i;var o=new Array(i);return Et(o,t),o}function kt(t,e,r){var n,i,o,a,f,h=t.length;if(-1===e){for(o=new Array(0);;){for(a=new Array(o.length+1),i=0;i<o.length;i++)a[i+1]=o[i];if(a[0]=parseInt(t,10),o=a,(n=t.indexOf(",",0))<1)break;if(0==(t=t.substring(n+1)).length)break}return o.length<r?(Dt(a=new Array(r),o),a):o}for(o=_t(0,e*h,0),i=0;i<h&&(n=s.indexOf(t.substring(i,i+1),0),e<=36&&n>=36&&(n-=26),!(n>=e||n<0));i++)Ot(o,e),Mt(o,n);for(h=o.length;h>0&&!o[h-1];h--);for(h=r>h+1?r:h+1,a=new Array(h),f=h<o.length?h:o.length,i=0;i<f;i++)a[i]=o[i];for(;i<h;i++)a[i]=0;return a}function St(t,e){var r;if(t[0]!=e)return 0;for(r=1;r<t.length;r++)if(t[r])return 0;return 1}function Bt(t,e){var r,n=t.length<e.length?t.length:e.length;for(r=0;r<n;r++)if(t[r]!==e[r])return 0;if(t.length>e.length){for(;r<t.length;r++)if(t[r])return 0}else for(;r<e.length;r++)if(e[r])return 0;return 1}function Tt(t){var e;for(e=0;e<t.length;e++)if(t[e])return 0;return 1}function xt(t,e){var r,n,i="";if(y.length!==t.length?y=At(t):Dt(y,t),-1===e){for(r=t.length-1;r>0;r--)i+=t[r]+",";i+=t[0]}else for(;!Tt(y);)n=zt(y,e),i=s.substring(n,n+1)+i;return 0===i.length&&(i="0"),i}function At(t){return Dt(f=Array(t.length),t),f}function Dt(t,e){var r,n=t.length<e.length?t.length:e.length;for(r=0;r<n;r++)t[r]=e[r];for(r=n;r<t.length;r++)t[r]=0}function Et(t,e){var r,o,s=t.length;for(o=e,r=0;r<s;r++)t[r]=o&i,o>>=n}function Mt(t,e){var r,s,a,f;for(t[0]+=e,s=t.length,a=0,r=0;r<s;r++)if(f=0,(a+=t[r])<0&&(a+=(f=-(a>>n))*o),t[r]=a&i,!(a=(a>>n)-f))return}function It(t,e){var r,o=Math.floor(e/n);if(o){for(r=0;r<t.length-o;r++)t[r]=t[r+o];for(;r<t.length;r++)t[r]=0;e%=n}for(r=0;r<t.length-1;r++)t[r]=i&(t[r+1]<<n-e|t[r]>>e);t[r]>>=e}function Ct(t){var e;for(e=0;e<t.length-1;e++)t[e]=i&(t[e+1]<<n-1|t[e]>>1);t[e]=t[e]>>1|t[e]&o>>1}function Rt(t,e){var r,o=Math.floor(e/n);if(o){for(r=t.length;r>=o;r--)t[r]=t[r-o];for(;r>=0;r--)t[r]=0;e%=n}if(e){for(r=t.length-1;r>0;r--)t[r]=i&(t[r]<<e|t[r-1]>>n-e);t[r]=i&t[r]<<e}}function Ot(t,e){var r,s,a,f;if(e)for(s=t.length,a=0,r=0;r<s;r++)f=0,(a+=t[r]*e)<0&&(a+=(f=-(a>>n))*o),t[r]=a&i,a=(a>>n)-f}function zt(t,e){var r,n,i=0;for(r=t.length-1;r>=0;r--)n=i*o+t[r],t[r]=Math.floor(n/e),i=n%e;return i}function Ft(t,e,r,o){var s,a,f,h;for(f=t.length<e.length?t.length:e.length,h=t.length,a=0,s=0;s<f;s++)a+=r*t[s]+o*e[s],t[s]=a&i,a>>=n;for(s=f;s<h;s++)a+=r*t[s],t[s]=a&i,a>>=n}function Nt(t,e,r,o){var s,a,f,h;for(f=t.length<o+e.length?t.length:o+e.length,h=t.length,a=0,s=o;s<f;s++)a+=t[s]+r*e[s-o],t[s]=a&i,a>>=n;for(s=f;a&&s<h;s++)a+=t[s],t[s]=a&i,a>>=n}function Pt(t,e,r){var o,s,a,f;for(a=t.length<r+e.length?t.length:r+e.length,f=t.length,s=0,o=r;o<a;o++)s+=t[o]+e[o-r],t[o]=s&i,s>>=n;for(o=a;s&&o<f;o++)s+=t[o],t[o]=s&i,s>>=n}function Zt(t,e,r){var o,s,a,f;for(a=t.length<r+e.length?t.length:r+e.length,f=t.length,s=0,o=r;o<a;o++)s+=t[o]-e[o-r],t[o]=s&i,s>>=n;for(o=a;s&&o<f;o++)s+=t[o],t[o]=s&i,s>>=n}function Ut(t,e){var r,o,s;for(s=t.length<e.length?t.length:e.length,o=0,r=0;r<s;r++)o+=t[r]-e[r],t[r]=o&i,o>>=n;for(r=s;o&&r<t.length;r++)o+=t[r],t[r]=o&i,o>>=n}function Lt(t,e){var r,o,s;for(s=t.length<e.length?t.length:e.length,o=0,r=0;r<s;r++)o+=t[r]+e[r],t[r]=o&i,o>>=n;for(r=s;o&&r<t.length;r++)o+=t[r],t[r]=o&i,o>>=n}function Ht(t,e){var r;for(l.length!=2*t.length&&(l=new Array(2*t.length)),Et(l,0),r=0;r<e.length;r++)e[r]&&Nt(l,t,e[r],r);Dt(t,l)}function qt(t,e){g.length!==t.length?g=At(t):Dt(g,t),v.length!==t.length&&(v=At(t)),mt(g,e,v,t)}function jt(t,e,r){var n;for(d.length!=2*t.length&&(d=new Array(2*t.length)),Et(d,0),n=0;n<e.length;n++)e[n]&&Nt(d,t,e[n],n);qt(d,r),Dt(t,d)}function Vt(t,e){var r,o,s,a,f;for(a=t.length;a>0&&!t[a-1];a--);for(f=a>e.length?2*a:2*e.length,d.length!=f&&(d=new Array(f)),Et(d,0),r=0;r<a;r++){for(s=d[2*r]+t[r]*t[r],d[2*r]=s&i,s>>=n,o=r+1;o<a;o++)s=d[r+o]+2*t[r]*t[o]+s,d[r+o]=s&i,s>>=n;d[r+a]=s}qt(d,e),Dt(t,d)}function Kt(t,e){var r,n;for(r=t.length;r>0&&!t[r-1];r--);return Dt(n=new Array(r+e),t),n}function Wt(t,e,r){var i,s,a,f;if(m.length!=r.length&&(m=At(r)),0!=(1&r[0])){for(Et(m,0),a=r.length;a>0&&!r[a-1];a--);for(f=o-dt(wt(r,o),o),m[a]=1,jt(t,m,r),p.length!=t.length?p=At(t):Dt(p,t),i=e.length-1;i>0&!e[i];i--);if(0!=e[i]){for(s=1<<n-1;s&&!(e[i]&s);s>>=1);for(;;){if(!(s>>=1)){if(--i<0)return void Gt(t,h,r,f);s=1<<n-1}Gt(t,t,r,f),s&e[i]&&Gt(t,p,r,f)}}else Et(t,1)}else for(Dt(m,t),Et(t,1);!St(e,0);)1&e[0]&&jt(t,m,r),zt(e,2),Vt(m,r)}function Gt(t,e,r,o){var s,a,f,h,u,c,l=r.length,d=e.length;for(w.length!=l&&(w=new Array(l)),Et(w,0);l>0&&0==r[l-1];l--);for(;d>0&&0==e[d-1];d--);for(c=w.length-1,s=0;s<l;s++){for(f=(u=w[0]+t[s]*e[0])+(h=(u&i)*o&i)*r[0]>>n,u=t[s],a=1;a<d-4;)f+=w[a]+h*r[a]+u*e[a],w[a-1]=f&i,f>>=n,f+=w[++a]+h*r[a]+u*e[a],w[a-1]=f&i,f>>=n,f+=w[++a]+h*r[a]+u*e[a],w[a-1]=f&i,f>>=n,f+=w[++a]+h*r[a]+u*e[a],w[a-1]=f&i,f>>=n,f+=w[++a]+h*r[a]+u*e[a],w[a-1]=f&i,f>>=n,a++;for(;a<d;)f+=w[a]+h*r[a]+u*e[a],w[a-1]=f&i,f>>=n,a++;for(;a<l-4;)f+=w[a]+h*r[a],w[a-1]=f&i,f>>=n,f+=w[++a]+h*r[a],w[a-1]=f&i,f>>=n,f+=w[++a]+h*r[a],w[a-1]=f&i,f>>=n,f+=w[++a]+h*r[a],w[a-1]=f&i,f>>=n,f+=w[++a]+h*r[a],w[a-1]=f&i,f>>=n,a++;for(;a<l;)f+=w[a]+h*r[a],w[a-1]=f&i,f>>=n,a++;for(;a<c;)f+=w[a],w[a-1]=f&i,f>>=n,a++;w[a-1]=f&i}yt(r,w)||Ut(w,r),Dt(t,w)}},function(t,e){console.log("CryptoJS included!");var r,n,i,o,s,a=a||function(t,e){var r={},n=r.lib={},i=n.Base=function(){function t(){}return{extend:function(e){t.prototype=this;var r=new t;return e&&r.mixIn(e),r.hasOwnProperty("init")||(r.init=function(){r.$super.init.apply(this,arguments)}),r.init.prototype=r,r.$super=this,r},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),o=n.WordArray=i.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=null!=e?e:4*t.length},toString:function(t){return(t||a).stringify(this)},concat:function(t){var e=this.words,r=t.words,n=this.sigBytes,i=t.sigBytes;if(this.clamp(),n%4)for(var o=0;o<i;o++){var s=r[o>>>2]>>>24-o%4*8&255;e[n+o>>>2]|=s<<24-(n+o)%4*8}else if(r.length>65535)for(o=0;o<i;o+=4)e[n+o>>>2]=r[o>>>2];else for(o=0;o<r.length;o++)e.push(r[o]);return this.sigBytes+=i,this},clamp:function(){var e=this.words,r=this.sigBytes;e[r>>>2]&=4294967295<<32-r%4*8,e.length=t.ceil(r/4)},clone:function(){var t=i.clone.call(this);return t.words=this.words.slice(0),t},random:function(e){for(var r=[],n=0;n<e;n+=4)r.push(4294967296*t.random()|0);return new o.init(r,e)}}),s=r.enc={},a=s.Hex={stringify:function(t){for(var e=t.words,r=t.sigBytes,n=[],i=0;i<r;i++){var o=e[i>>>2]>>>24-i%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")},parse:function(t){for(var e=t.length,r=[],n=0;n<e;n+=2)r[n>>>3]|=parseInt(t.substr(n,2),16)<<24-n%8*4;return new o.init(r,e/2)}},f=s.Latin1={stringify:function(t){for(var e=t.words,r=t.sigBytes,n=[],i=0;i<r;i++){var o=e[i>>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(o))}return n.join("")},parse:function(t){for(var e=t.length,r=[],n=0;n<e;n++)r[n>>>2]|=(255&t.charCodeAt(n))<<24-n%4*8;return new o.init(r,e)}},h=s.Utf8={stringify:function(t){try{return decodeURIComponent(escape(f.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return f.parse(unescape(encodeURIComponent(t)))}},u=n.BufferedBlockAlgorithm=i.extend({reset:function(){this._data=new o.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=h.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var r=this._data,n=r.words,i=r.sigBytes,s=this.blockSize,a=i/(4*s),f=(a=e?t.ceil(a):t.max((0|a)-this._minBufferSize,0))*s,h=t.min(4*f,i);if(f){for(var u=0;u<f;u+=s)this._doProcessBlock(n,u);var c=n.splice(0,f);r.sigBytes-=h}return new o.init(c,h)},clone:function(){var t=i.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0}),c=(n.Hasher=u.extend({cfg:i.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){u.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(e,r){return new t.init(r).finalize(e)}},_createHmacHelper:function(t){return function(e,r){return new c.HMAC.init(t,r).finalize(e)}}}),r.algo={});return r}(Math);t.exports=a,n=(r=a).lib,i=n.Base,o=n.WordArray,(s=r.x64={}).Word=i.extend({init:function(t,e){this.high=t,this.low=e}}),s.WordArray=i.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=null!=e?e:8*t.length},toX32:function(){for(var t=this.words,e=t.length,r=[],n=0;n<e;n++){var i=t[n];r.push(i.high),r.push(i.low)}return o.create(r,this.sigBytes)},clone:function(){for(var t=i.clone.call(this),e=t.words=this.words.slice(0),r=e.length,n=0;n<r;n++)e[n]=e[n].clone();return t}}),a.lib.Cipher||function(t){var e=a,r=e.lib,n=r.Base,i=r.WordArray,o=r.BufferedBlockAlgorithm,s=e.enc,f=(s.Utf8,s.Base64),h=e.algo.EvpKDF,u=r.Cipher=o.extend({cfg:n.extend(),createEncryptor:function(t,e){return this.create(this._ENC_XFORM_MODE,t,e)},createDecryptor:function(t,e){return this.create(this._DEC_XFORM_MODE,t,e)},init:function(t,e,r){this.cfg=this.cfg.extend(r),this._xformMode=t,this._key=e,this.reset()},reset:function(){o.reset.call(this),this._doReset()},process:function(t){return this._append(t),this._process()},finalize:function(t){return t&&this._append(t),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function t(t){return"string"==typeof t?w:m}return function(e){return{encrypt:function(r,n,i){return t(n).encrypt(e,r,n,i)},decrypt:function(r,n,i){return t(n).decrypt(e,r,n,i)}}}}()}),c=(r.StreamCipher=u.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),e.mode={}),l=r.BlockCipherMode=n.extend({createEncryptor:function(t,e){return this.Encryptor.create(t,e)},createDecryptor:function(t,e){return this.Decryptor.create(t,e)},init:function(t,e){this._cipher=t,this._iv=e}}),d=c.CBC=function(){var e=l.extend();function r(e,r,n){var i=this._iv;if(i){var o=i;this._iv=t}else o=this._prevBlock;for(var s=0;s<n;s++)e[r+s]^=o[s]}return e.Encryptor=e.extend({processBlock:function(t,e){var n=this._cipher,i=n.blockSize;r.call(this,t,e,i),n.encryptBlock(t,e),this._prevBlock=t.slice(e,e+i)}}),e.Decryptor=e.extend({processBlock:function(t,e){var n=this._cipher,i=n.blockSize,o=t.slice(e,e+i);n.decryptBlock(t,e),r.call(this,t,e,i),this._prevBlock=o}}),e}(),p=(c.IGE=function(){var e=l.extend();function r(t,e,r,n){for(var i=0;i<n;i++)t[r+i]^=e[i]}return e.Encryptor=e.extend({processBlock:function(e,n){var i=this._cipher,o=i.blockSize;this._ivp===t&&(this._ivp=this._iv.slice(0,o),this._iv2p=this._iv.slice(o,o+o));var s=e.slice(n,n+o);r(e,this._ivp,n,o),i.encryptBlock(e,n),r(e,this._iv2p,n,o),this._ivp=e.slice(n,n+o),this._iv2p=s}}),e.Decryptor=e.extend({processBlock:function(e,n){var i=this._cipher,o=i.blockSize;this._ivp===t&&(this._ivp=this._iv.slice(0,o),this._iv2p=this._iv.slice(o,2*o));var s=e.slice(n,n+o);r(e,this._iv2p,n,o),i.decryptBlock(e,n),r(e,this._ivp,n,o),this._ivp=s,this._iv2p=e.slice(n,n+o)}}),e}(),e.pad={}),g=p.Pkcs7={pad:function(t,e){for(var r=4*e,n=r-t.sigBytes%r,o=n<<24|n<<16|n<<8|n,s=[],a=0;a<n;a+=4)s.push(o);var f=i.create(s,n);t.concat(f)},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},v=(p.NoPadding={pad:function(){},unpad:function(){}},r.BlockCipher=u.extend({cfg:u.cfg.extend({mode:d,padding:g}),reset:function(){u.reset.call(this);var t=this.cfg,e=t.iv,r=t.mode;if(this._xformMode==this._ENC_XFORM_MODE)var n=r.createEncryptor;else{n=r.createDecryptor;this._minBufferSize=1}this._mode=n.call(r,this,e&&e.words)},_doProcessBlock:function(t,e){this._mode.processBlock(t,e)},_doFinalize:function(){var t=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){t.pad(this._data,this.blockSize);var e=this._process(!0)}else{e=this._process(!0);t.unpad(e)}return e},blockSize:4}),r.CipherParams=n.extend({init:function(t){this.mixIn(t)},toString:function(t){return(t||this.formatter).stringify(this)}})),y=(e.format={}).OpenSSL={stringify:function(t){var e=t.ciphertext,r=t.salt;if(r)var n=i.create([1398893684,1701076831]).concat(r).concat(e);else n=e;return n.toString(f)},parse:function(t){var e=f.parse(t),r=e.words;if(1398893684==r[0]&&1701076831==r[1]){var n=i.create(r.slice(2,4));r.splice(0,4),e.sigBytes-=16}return v.create({ciphertext:e,salt:n})}},m=r.SerializableCipher=n.extend({cfg:n.extend({format:y}),encrypt:function(t,e,r,n){n=this.cfg.extend(n);var i=t.createEncryptor(r,n),o=i.finalize(e),s=i.cfg;return v.create({ciphertext:o,key:r,iv:s.iv,algorithm:t,mode:s.mode,padding:s.padding,blockSize:t.blockSize,formatter:n.format})},decrypt:function(t,e,r,n){return n=this.cfg.extend(n),e=this._parse(e,n.format),t.createDecryptor(r,n).finalize(e.ciphertext)},_parse:function(t,e){return"string"==typeof t?e.parse(t,this):t}}),b=(e.kdf={}).OpenSSL={execute:function(t,e,r,n){n||(n=i.random(8));var o=h.create({keySize:e+r}).compute(t,n),s=i.create(o.words.slice(e),4*r);return o.sigBytes=4*e,v.create({key:o,iv:s,salt:n})}},w=r.PasswordBasedCipher=m.extend({cfg:m.cfg.extend({kdf:b}),encrypt:function(t,e,r,n){var i=(n=this.cfg.extend(n)).kdf.execute(r,t.keySize,t.ivSize);n.iv=i.iv;var o=m.encrypt.call(this,t,e,i.key,n);return o.mixIn(i),o},decrypt:function(t,e,r,n){n=this.cfg.extend(n),e=this._parse(e,n.format);var i=n.kdf.execute(r,t.keySize,t.ivSize,e.salt);return n.iv=i.iv,m.decrypt.call(this,t,e,i.key,n)}})}(),function(){var t=a,e=t.lib.BlockCipher,r=t.algo,n=[],i=[],o=[],s=[],f=[],h=[],u=[],c=[],l=[],d=[];!function(){for(var t=[],e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;var r=0,a=0;for(e=0;e<256;e++){var p=a^a<<1^a<<2^a<<3^a<<4;p=p>>>8^255&p^99,n[r]=p,i[p]=r;var g=t[r],v=t[g],y=t[v],m=257*t[p]^16843008*p;o[r]=m<<24|m>>>8,s[r]=m<<16|m>>>16,f[r]=m<<8|m>>>24,h[r]=m;m=16843009*y^65537*v^257*g^16843008*r;u[p]=m<<24|m>>>8,c[p]=m<<16|m>>>16,l[p]=m<<8|m>>>24,d[p]=m,r?(r=g^t[t[t[y^g]]],a^=t[t[a]]):r=a=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],g=r.AES=e.extend({_doReset:function(){for(var t=this._key,e=t.words,r=t.sigBytes/4,i=4*((this._nRounds=r+6)+1),o=this._keySchedule=[],s=0;s<i;s++)if(s<r)o[s]=e[s];else{var a=o[s-1];s%r?r>6&&s%r==4&&(a=n[a>>>24]<<24|n[a>>>16&255]<<16|n[a>>>8&255]<<8|n[255&a]):(a=n[(a=a<<8|a>>>24)>>>24]<<24|n[a>>>16&255]<<16|n[a>>>8&255]<<8|n[255&a],a^=p[s/r|0]<<24),o[s]=o[s-r]^a}for(var f=this._invKeySchedule=[],h=0;h<i;h++){s=i-h;if(h%4)a=o[s];else a=o[s-4];f[h]=h<4||s<=4?a:u[n[a>>>24]]^c[n[a>>>16&255]]^l[n[a>>>8&255]]^d[n[255&a]]}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,o,s,f,h,n)},decryptBlock:function(t,e){var r=t[e+1];t[e+1]=t[e+3],t[e+3]=r,this._doCryptBlock(t,e,this._invKeySchedule,u,c,l,d,i);r=t[e+1];t[e+1]=t[e+3],t[e+3]=r},_doCryptBlock:function(t,e,r,n,i,o,s,a){for(var f=this._nRounds,h=t[e]^r[0],u=t[e+1]^r[1],c=t[e+2]^r[2],l=t[e+3]^r[3],d=4,p=1;p<f;p++){var g=n[h>>>24]^i[u>>>16&255]^o[c>>>8&255]^s[255&l]^r[d++],v=n[u>>>24]^i[c>>>16&255]^o[l>>>8&255]^s[255&h]^r[d++],y=n[c>>>24]^i[l>>>16&255]^o[h>>>8&255]^s[255&u]^r[d++],m=n[l>>>24]^i[h>>>16&255]^o[u>>>8&255]^s[255&c]^r[d++];h=g,u=v,c=y,l=m}g=(a[h>>>24]<<24|a[u>>>16&255]<<16|a[c>>>8&255]<<8|a[255&l])^r[d++],v=(a[u>>>24]<<24|a[c>>>16&255]<<16|a[l>>>8&255]<<8|a[255&h])^r[d++],y=(a[c>>>24]<<24|a[l>>>16&255]<<16|a[h>>>8&255]<<8|a[255&u])^r[d++],m=(a[l>>>24]<<24|a[h>>>16&255]<<16|a[u>>>8&255]<<8|a[255&c])^r[d++];t[e]=g,t[e+1]=v,t[e+2]=y,t[e+3]=m},keySize:8});t.AES=e._createHelper(g)}(),function(t){var e=a,r=e.lib,n=r.WordArray,i=r.Hasher,o=e.algo,s=[],f=[];!function(){function e(e){for(var r=t.sqrt(e),n=2;n<=r;n++)if(!(e%n))return!1;return!0}function r(t){return 4294967296*(t-(0|t))|0}for(var n=2,i=0;i<64;)e(n)&&(i<8&&(s[i]=r(t.pow(n,.5))),f[i]=r(t.pow(n,1/3)),i++),n++}();var h=[],u=o.SHA256=i.extend({_doReset:function(){this._hash=new n.init(s.slice(0))},_doProcessBlock:function(t,e){for(var r=this._hash.words,n=r[0],i=r[1],o=r[2],s=r[3],a=r[4],u=r[5],c=r[6],l=r[7],d=0;d<64;d++){if(d<16)h[d]=0|t[e+d];else{var p=h[d-15],g=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,v=h[d-2],y=(v<<15|v>>>17)^(v<<13|v>>>19)^v>>>10;h[d]=g+h[d-7]+y+h[d-16]}var m=n&i^n&o^i&o,b=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),w=l+((a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25))+(a&u^~a&c)+f[d]+h[d];l=c,c=u,u=a,a=s+w|0,s=o,o=i,i=n,n=w+(b+m)|0}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]+a|0,r[5]=r[5]+u|0,r[6]=r[6]+c|0,r[7]=r[7]+l|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 t=i.clone.call(this);return t._hash=this._hash.clone(),t}});e.SHA256=i._createHelper(u),e.HmacSHA256=i._createHmacHelper(u)}(Math)},function(t,e,r){var n;t.exports=function t(e,r,i){function o(a,f){if(!r[a]){if(!e[a]){if(!f&&"function"==typeof n&&n)return n(a,!0);if(s)return s(a,!0);var h=new Error("Cannot find module '"+a+"'");throw h.code="MODULE_NOT_FOUND",h}var u=r[a]={exports:{}};e[a][0].call(u.exports,(function(t){return o(e[a][1][t]||t)}),u,u.exports,t,e,r,i)}return r[a].exports}for(var s="function"==typeof n&&n,a=0;a<i.length;a++)o(i[a]);return o}({1:[function(t,e,r){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;r.assign=function(t){for(var e,r,n=Array.prototype.slice.call(arguments,1);n.length;){var i=n.shift();if(i){if("object"!=typeof i)throw new TypeError(i+"must be non-object");for(var o in i)e=i,r=o,Object.prototype.hasOwnProperty.call(e,r)&&(t[o]=i[o])}}return t},r.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var i={arraySet:function(t,e,r,n,i){if(e.subarray&&t.subarray)t.set(e.subarray(r,r+n),i);else for(var o=0;o<n;o++)t[i+o]=e[r+o]},flattenChunks:function(t){var e,r,n,i,o,s;for(e=n=0,r=t.length;e<r;e++)n+=t[e].length;for(s=new Uint8Array(n),e=i=0,r=t.length;e<r;e++)o=t[e],s.set(o,i),i+=o.length;return s}},o={arraySet:function(t,e,r,n,i){for(var o=0;o<n;o++)t[i+o]=e[r+o]},flattenChunks:function(t){return[].concat.apply([],t)}};r.setTyped=function(t){t?(r.Buf8=Uint8Array,r.Buf16=Uint16Array,r.Buf32=Int32Array,r.assign(r,i)):(r.Buf8=Array,r.Buf16=Array,r.Buf32=Array,r.assign(r,o))},r.setTyped(n)},{}],2:[function(t,e,r){"use strict";var n=t("./common"),i=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(t){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){o=!1}for(var s=new n.Buf8(256),a=0;a<256;a++)s[a]=252<=a?6:248<=a?5:240<=a?4:224<=a?3:192<=a?2:1;function f(t,e){if(e<65534&&(t.subarray&&o||!t.subarray&&i))return String.fromCharCode.apply(null,n.shrinkBuf(t,e));for(var r="",s=0;s<e;s++)r+=String.fromCharCode(t[s]);return r}s[254]=s[254]=1,r.string2buf=function(t){var e,r,i,o,s,a=t.length,f=0;for(o=0;o<a;o++)55296==(64512&(r=t.charCodeAt(o)))&&o+1<a&&56320==(64512&(i=t.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(i-56320),o++),f+=r<128?1:r<2048?2:r<65536?3:4;for(e=new n.Buf8(f),o=s=0;s<f;o++)55296==(64512&(r=t.charCodeAt(o)))&&o+1<a&&56320==(64512&(i=t.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(i-56320),o++),r<128?e[s++]=r:(r<2048?e[s++]=192|r>>>6:(r<65536?e[s++]=224|r>>>12:(e[s++]=240|r>>>18,e[s++]=128|r>>>12&63),e[s++]=128|r>>>6&63),e[s++]=128|63&r);return e},r.buf2binstring=function(t){return f(t,t.length)},r.binstring2buf=function(t){for(var e=new n.Buf8(t.length),r=0,i=e.length;r<i;r++)e[r]=t.charCodeAt(r);return e},r.buf2string=function(t,e){var r,n,i,o,a=e||t.length,h=new Array(2*a);for(r=n=0;r<a;)if((i=t[r++])<128)h[n++]=i;else if(4<(o=s[i]))h[n++]=65533,r+=o-1;else{for(i&=2===o?31:3===o?15:7;1<o&&r<a;)i=i<<6|63&t[r++],o--;1<o?h[n++]=65533:i<65536?h[n++]=i:(i-=65536,h[n++]=55296|i>>10&1023,h[n++]=56320|1023&i)}return f(h,n)},r.utf8border=function(t,e){var r;for((e=e||t.length)>t.length&&(e=t.length),r=e-1;0<=r&&128==(192&t[r]);)r--;return r<0?e:0===r?e:r+s[t[r]]>e?r:e}},{"./common":1}],3:[function(t,e,r){"use strict";e.exports=function(t,e,r,n){for(var i=65535&t|0,o=t>>>16&65535|0,s=0;0!==r;){for(r-=s=2e3<r?2e3:r;o=o+(i=i+e[n++]|0)|0,--s;);i%=65521,o%=65521}return i|o<<16|0}},{}],4:[function(t,e,r){"use strict";e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],5:[function(t,e,r){"use strict";var n=function(){for(var t,e=[],r=0;r<256;r++){t=r;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[r]=t}return e}();e.exports=function(t,e,r,i){var o=n,s=i+r;t^=-1;for(var a=i;a<s;a++)t=t>>>8^o[255&(t^e[a])];return-1^t}},{}],6:[function(t,e,r){"use strict";e.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],7:[function(t,e,r){"use strict";e.exports=function(t,e){var r,n,i,o,s,a,f,h,u,c,l,d,p,g,v,y,m,b,w,_,k,S,B,T,x;r=t.state,n=t.next_in,T=t.input,i=n+(t.avail_in-5),o=t.next_out,x=t.output,s=o-(e-t.avail_out),a=o+(t.avail_out-257),f=r.dmax,h=r.wsize,u=r.whave,c=r.wnext,l=r.window,d=r.hold,p=r.bits,g=r.lencode,v=r.distcode,y=(1<<r.lenbits)-1,m=(1<<r.distbits)-1;t:do{p<15&&(d+=T[n++]<<p,p+=8,d+=T[n++]<<p,p+=8),b=g[d&y];e:for(;;){if(d>>>=w=b>>>24,p-=w,0==(w=b>>>16&255))x[o++]=65535&b;else{if(!(16&w)){if(0==(64&w)){b=g[(65535&b)+(d&(1<<w)-1)];continue e}if(32&w){r.mode=12;break t}t.msg="invalid literal/length code",r.mode=30;break t}_=65535&b,(w&=15)&&(p<w&&(d+=T[n++]<<p,p+=8),_+=d&(1<<w)-1,d>>>=w,p-=w),p<15&&(d+=T[n++]<<p,p+=8,d+=T[n++]<<p,p+=8),b=v[d&m];r:for(;;){if(d>>>=w=b>>>24,p-=w,!(16&(w=b>>>16&255))){if(0==(64&w)){b=v[(65535&b)+(d&(1<<w)-1)];continue r}t.msg="invalid distance code",r.mode=30;break t}if(k=65535&b,p<(w&=15)&&(d+=T[n++]<<p,(p+=8)<w&&(d+=T[n++]<<p,p+=8)),f<(k+=d&(1<<w)-1)){t.msg="invalid distance too far back",r.mode=30;break t}if(d>>>=w,p-=w,(w=o-s)<k){if(u<(w=k-w)&&r.sane){t.msg="invalid distance too far back",r.mode=30;break t}if(B=l,(S=0)===c){if(S+=h-w,w<_){for(_-=w;x[o++]=l[S++],--w;);S=o-k,B=x}}else if(c<w){if(S+=h+c-w,(w-=c)<_){for(_-=w;x[o++]=l[S++],--w;);if(S=0,c<_){for(_-=w=c;x[o++]=l[S++],--w;);S=o-k,B=x}}}else if(S+=c-w,w<_){for(_-=w;x[o++]=l[S++],--w;);S=o-k,B=x}for(;2<_;)x[o++]=B[S++],x[o++]=B[S++],x[o++]=B[S++],_-=3;_&&(x[o++]=B[S++],1<_&&(x[o++]=B[S++]))}else{for(S=o-k;x[o++]=x[S++],x[o++]=x[S++],x[o++]=x[S++],2<(_-=3););_&&(x[o++]=x[S++],1<_&&(x[o++]=x[S++]))}break}}break}}while(n<i&&o<a);n-=_=p>>3,d&=(1<<(p-=_<<3))-1,t.next_in=n,t.next_out=o,t.avail_in=n<i?i-n+5:5-(n-i),t.avail_out=o<a?a-o+257:257-(o-a),r.hold=d,r.bits=p}},{}],8:[function(t,e,r){"use strict";var n=t("../utils/common"),i=t("./adler32"),o=t("./crc32"),s=t("./inffast"),a=t("./inftrees"),f=1,h=2,u=0,c=-2,l=1,d=852,p=592;function g(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function v(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function y(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=l,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new n.Buf32(d),e.distcode=e.distdyn=new n.Buf32(p),e.sane=1,e.back=-1,u):c}function m(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,y(t)):c}function b(t,e){var r,n;return t&&t.state?(n=t.state,e<0?(r=0,e=-e):(r=1+(e>>4),e<48&&(e&=15)),e&&(e<8||15<e)?c:(null!==n.window&&n.wbits!==e&&(n.window=null),n.wrap=r,n.wbits=e,m(t))):c}function w(t,e){var r,n;return t?(n=new v,(t.state=n).window=null,(r=b(t,e))!==u&&(t.state=null),r):c}var _,k,S=!0;function B(t){if(S){var e;for(_=new n.Buf32(512),k=new n.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(a(f,t.lens,0,288,_,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;a(h,t.lens,0,32,k,0,t.work,{bits:5}),S=!1}t.lencode=_,t.lenbits=9,t.distcode=k,t.distbits=5}function T(t,e,r,i){var o,s=t.state;return null===s.window&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new n.Buf8(s.wsize)),i>=s.wsize?(n.arraySet(s.window,e,r-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):(i<(o=s.wsize-s.wnext)&&(o=i),n.arraySet(s.window,e,r-i,o,s.wnext),(i-=o)?(n.arraySet(s.window,e,r-i,i,0),s.wnext=i,s.whave=s.wsize):(s.wnext+=o,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=o))),0}r.inflateReset=m,r.inflateReset2=b,r.inflateResetKeep=y,r.inflateInit=function(t){return w(t,15)},r.inflateInit2=w,r.inflate=function(t,e){var r,d,p,v,y,m,b,w,_,k,S,x,A,D,E,M,I,C,R,O,z,F,N,P,Z=0,U=new n.Buf8(4),L=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return c;12===(r=t.state).mode&&(r.mode=13),y=t.next_out,p=t.output,b=t.avail_out,v=t.next_in,d=t.input,m=t.avail_in,w=r.hold,_=r.bits,k=m,S=b,F=u;t:for(;;)switch(r.mode){case l:if(0===r.wrap){r.mode=13;break}for(;_<16;){if(0===m)break t;m--,w+=d[v++]<<_,_+=8}if(2&r.wrap&&35615===w){U[r.check=0]=255&w,U[1]=w>>>8&255,r.check=o(r.check,U,2,0),_=w=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&w)<<8)+(w>>8))%31){t.msg="incorrect header check",r.mode=30;break}if(8!=(15&w)){t.msg="unknown compression method",r.mode=30;break}if(_-=4,z=8+(15&(w>>>=4)),0===r.wbits)r.wbits=z;else if(z>r.wbits){t.msg="invalid window size",r.mode=30;break}r.dmax=1<<z,t.adler=r.check=1,r.mode=512&w?10:12,_=w=0;break;case 2:for(;_<16;){if(0===m)break t;m--,w+=d[v++]<<_,_+=8}if(r.flags=w,8!=(255&r.flags)){t.msg="unknown compression method",r.mode=30;break}if(57344&r.flags){t.msg="unknown header flags set",r.mode=30;break}r.head&&(r.head.text=w>>8&1),512&r.flags&&(U[0]=255&w,U[1]=w>>>8&255,r.check=o(r.check,U,2,0)),_=w=0,r.mode=3;case 3:for(;_<32;){if(0===m)break t;m--,w+=d[v++]<<_,_+=8}r.head&&(r.head.time=w),512&r.flags&&(U[0]=255&w,U[1]=w>>>8&255,U[2]=w>>>16&255,U[3]=w>>>24&255,r.check=o(r.check,U,4,0)),_=w=0,r.mode=4;case 4:for(;_<16;){if(0===m)break t;m--,w+=d[v++]<<_,_+=8}r.head&&(r.head.xflags=255&w,r.head.os=w>>8),512&r.flags&&(U[0]=255&w,U[1]=w>>>8&255,r.check=o(r.check,U,2,0)),_=w=0,r.mode=5;case 5:if(1024&r.flags){for(;_<16;){if(0===m)break t;m--,w+=d[v++]<<_,_+=8}r.length=w,r.head&&(r.head.extra_len=w),512&r.flags&&(U[0]=255&w,U[1]=w>>>8&255,r.check=o(r.check,U,2,0)),_=w=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&(m<(x=r.length)&&(x=m),x&&(r.head&&(z=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),n.arraySet(r.head.extra,d,v,x,z)),512&r.flags&&(r.check=o(r.check,d,x,v)),m-=x,v+=x,r.length-=x),r.length))break t;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===m)break t;for(x=0;z=d[v+x++],r.head&&z&&r.length<65536&&(r.head.name+=String.fromCharCode(z)),z&&x<m;);if(512&r.flags&&(r.check=o(r.check,d,x,v)),m-=x,v+=x,z)break t}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===m)break t;for(x=0;z=d[v+x++],r.head&&z&&r.length<65536&&(r.head.comment+=String.fromCharCode(z)),z&&x<m;);if(512&r.flags&&(r.check=o(r.check,d,x,v)),m-=x,v+=x,z)break t}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;_<16;){if(0===m)break t;m--,w+=d[v++]<<_,_+=8}if(w!==(65535&r.check)){t.msg="header crc mismatch",r.mode=30;break}_=w=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=12;break;case 10:for(;_<32;){if(0===m)break t;m--,w+=d[v++]<<_,_+=8}t.adler=r.check=g(w),_=w=0,r.mode=11;case 11:if(0===r.havedict)return t.next_out=y,t.avail_out=b,t.next_in=v,t.avail_in=m,r.hold=w,r.bits=_,2;t.adler=r.check=1,r.mode=12;case 12:if(5===e||6===e)break t;case 13:if(r.last){w>>>=7&_,_-=7&_,r.mode=27;break}for(;_<3;){if(0===m)break t;m--,w+=d[v++]<<_,_+=8}switch(r.last=1&w,_-=1,3&(w>>>=1)){case 0:r.mode=14;break;case 1:if(B(r),r.mode=20,6!==e)break;w>>>=2,_-=2;break t;case 2:r.mode=17;break;case 3:t.msg="invalid block type",r.mode=30}w>>>=2,_-=2;break;case 14:for(w>>>=7&_,_-=7&_;_<32;){if(0===m)break t;m--,w+=d[v++]<<_,_+=8}if((65535&w)!=(w>>>16^65535)){t.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&w,_=w=0,r.mode=15,6===e)break t;case 15:r.mode=16;case 16:if(x=r.length){if(m<x&&(x=m),b<x&&(x=b),0===x)break t;n.arraySet(p,d,v,x,y),m-=x,v+=x,b-=x,y+=x,r.length-=x;break}r.mode=12;break;case 17:for(;_<14;){if(0===m)break t;m--,w+=d[v++]<<_,_+=8}if(r.nlen=257+(31&w),w>>>=5,_-=5,r.ndist=1+(31&w),w>>>=5,_-=5,r.ncode=4+(15&w),w>>>=4,_-=4,286<r.nlen||30<r.ndist){t.msg="too many length or distance symbols",r.mode=30;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;_<3;){if(0===m)break t;m--,w+=d[v++]<<_,_+=8}r.lens[L[r.have++]]=7&w,w>>>=3,_-=3}for(;r.have<19;)r.lens[L[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,N={bits:r.lenbits},F=a(0,r.lens,0,19,r.lencode,0,r.work,N),r.lenbits=N.bits,F){t.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;M=(Z=r.lencode[w&(1<<r.lenbits)-1])>>>16&255,I=65535&Z,!((E=Z>>>24)<=_);){if(0===m)break t;m--,w+=d[v++]<<_,_+=8}if(I<16)w>>>=E,_-=E,r.lens[r.have++]=I;else{if(16===I){for(P=E+2;_<P;){if(0===m)break t;m--,w+=d[v++]<<_,_+=8}if(w>>>=E,_-=E,0===r.have){t.msg="invalid bit length repeat",r.mode=30;break}z=r.lens[r.have-1],x=3+(3&w),w>>>=2,_-=2}else if(17===I){for(P=E+3;_<P;){if(0===m)break t;m--,w+=d[v++]<<_,_+=8}_-=E,z=0,x=3+(7&(w>>>=E)),w>>>=3,_-=3}else{for(P=E+7;_<P;){if(0===m)break t;m--,w+=d[v++]<<_,_+=8}_-=E,z=0,x=11+(127&(w>>>=E)),w>>>=7,_-=7}if(r.have+x>r.nlen+r.ndist){t.msg="invalid bit length repeat",r.mode=30;break}for(;x--;)r.lens[r.have++]=z}}if(30===r.mode)break;if(0===r.lens[256]){t.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,N={bits:r.lenbits},F=a(f,r.lens,0,r.nlen,r.lencode,0,r.work,N),r.lenbits=N.bits,F){t.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,N={bits:r.distbits},F=a(h,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,N),r.distbits=N.bits,F){t.msg="invalid distances set",r.mode=30;break}if(r.mode=20,6===e)break t;case 20:r.mode=21;case 21:if(6<=m&&258<=b){t.next_out=y,t.avail_out=b,t.next_in=v,t.avail_in=m,r.hold=w,r.bits=_,s(t,S),y=t.next_out,p=t.output,b=t.avail_out,v=t.next_in,d=t.input,m=t.avail_in,w=r.hold,_=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;M=(Z=r.lencode[w&(1<<r.lenbits)-1])>>>16&255,I=65535&Z,!((E=Z>>>24)<=_);){if(0===m)break t;m--,w+=d[v++]<<_,_+=8}if(M&&0==(240&M)){for(C=E,R=M,O=I;M=(Z=r.lencode[O+((w&(1<<C+R)-1)>>C)])>>>16&255,I=65535&Z,!(C+(E=Z>>>24)<=_);){if(0===m)break t;m--,w+=d[v++]<<_,_+=8}w>>>=C,_-=C,r.back+=C}if(w>>>=E,_-=E,r.back+=E,r.length=I,0===M){r.mode=26;break}if(32&M){r.back=-1,r.mode=12;break}if(64&M){t.msg="invalid literal/length code",r.mode=30;break}r.extra=15&M,r.mode=22;case 22:if(r.extra){for(P=r.extra;_<P;){if(0===m)break t;m--,w+=d[v++]<<_,_+=8}r.length+=w&(1<<r.extra)-1,w>>>=r.extra,_-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;M=(Z=r.distcode[w&(1<<r.distbits)-1])>>>16&255,I=65535&Z,!((E=Z>>>24)<=_);){if(0===m)break t;m--,w+=d[v++]<<_,_+=8}if(0==(240&M)){for(C=E,R=M,O=I;M=(Z=r.distcode[O+((w&(1<<C+R)-1)>>C)])>>>16&255,I=65535&Z,!(C+(E=Z>>>24)<=_);){if(0===m)break t;m--,w+=d[v++]<<_,_+=8}w>>>=C,_-=C,r.back+=C}if(w>>>=E,_-=E,r.back+=E,64&M){t.msg="invalid distance code",r.mode=30;break}r.offset=I,r.extra=15&M,r.mode=24;case 24:if(r.extra){for(P=r.extra;_<P;){if(0===m)break t;m--,w+=d[v++]<<_,_+=8}r.offset+=w&(1<<r.extra)-1,w>>>=r.extra,_-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg="invalid distance too far back",r.mode=30;break}r.mode=25;case 25:if(0===b)break t;if(x=S-b,r.offset>x){if((x=r.offset-x)>r.whave&&r.sane){t.msg="invalid distance too far back",r.mode=30;break}x>r.wnext?(x-=r.wnext,A=r.wsize-x):A=r.wnext-x,x>r.length&&(x=r.length),D=r.window}else D=p,A=y-r.offset,x=r.length;for(b<x&&(x=b),b-=x,r.length-=x;p[y++]=D[A++],--x;);0===r.length&&(r.mode=21);break;case 26:if(0===b)break t;p[y++]=r.length,b--,r.mode=21;break;case 27:if(r.wrap){for(;_<32;){if(0===m)break t;m--,w|=d[v++]<<_,_+=8}if(S-=b,t.total_out+=S,r.total+=S,S&&(t.adler=r.check=r.flags?o(r.check,p,S,y-S):i(r.check,p,S,y-S)),S=b,(r.flags?w:g(w))!==r.check){t.msg="incorrect data check",r.mode=30;break}_=w=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;_<32;){if(0===m)break t;m--,w+=d[v++]<<_,_+=8}if(w!==(4294967295&r.total)){t.msg="incorrect length check",r.mode=30;break}_=w=0}r.mode=29;case 29:F=1;break t;case 30:F=-3;break t;case 31:return-4;case 32:default:return c}return t.next_out=y,t.avail_out=b,t.next_in=v,t.avail_in=m,r.hold=w,r.bits=_,(r.wsize||S!==t.avail_out&&r.mode<30&&(r.mode<27||4!==e))&&T(t,t.output,t.next_out,S-t.avail_out)?(r.mode=31,-4):(k-=t.avail_in,S-=t.avail_out,t.total_in+=k,t.total_out+=S,r.total+=S,r.wrap&&S&&(t.adler=r.check=r.flags?o(r.check,p,S,t.next_out-S):i(r.check,p,S,t.next_out-S)),t.data_type=r.bits+(r.last?64:0)+(12===r.mode?128:0)+(20===r.mode||15===r.mode?256:0),(0===k&&0===S||4===e)&&F===u&&(F=-5),F)},r.inflateEnd=function(t){if(!t||!t.state)return c;var e=t.state;return e.window&&(e.window=null),t.state=null,u},r.inflateGetHeader=function(t,e){var r;return t&&t.state?0==(2&(r=t.state).wrap)?c:((r.head=e).done=!1,u):c},r.inflateSetDictionary=function(t,e){var r,n=e.length;return t&&t.state?0!==(r=t.state).wrap&&11!==r.mode?c:11===r.mode&&i(1,e,n,0)!==r.check?-3:T(t,e,n,n)?(r.mode=31,-4):(r.havedict=1,u):c},r.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":1,"./adler32":3,"./crc32":5,"./inffast":7,"./inftrees":9}],9:[function(t,e,r){"use strict";var n=t("../utils/common"),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],o=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],s=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],a=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.exports=function(t,e,r,f,h,u,c,l){var d,p,g,v,y,m,b,w,_,k=l.bits,S=0,B=0,T=0,x=0,A=0,D=0,E=0,M=0,I=0,C=0,R=null,O=0,z=new n.Buf16(16),F=new n.Buf16(16),N=null,P=0;for(S=0;S<=15;S++)z[S]=0;for(B=0;B<f;B++)z[e[r+B]]++;for(A=k,x=15;1<=x&&0===z[x];x--);if(x<A&&(A=x),0===x)return h[u++]=20971520,h[u++]=20971520,l.bits=1,0;for(T=1;T<x&&0===z[T];T++);for(A<T&&(A=T),S=M=1;S<=15;S++)if(M<<=1,(M-=z[S])<0)return-1;if(0<M&&(0===t||1!==x))return-1;for(F[1]=0,S=1;S<15;S++)F[S+1]=F[S]+z[S];for(B=0;B<f;B++)0!==e[r+B]&&(c[F[e[r+B]]++]=B);if(0===t?(R=N=c,m=19):1===t?(R=i,O-=257,N=o,P-=257,m=256):(R=s,N=a,m=-1),S=T,y=u,E=B=C=0,g=-1,v=(I=1<<(D=A))-1,1===t&&852<I||2===t&&592<I)return 1;for(;;){for(b=S-E,c[B]<m?(w=0,_=c[B]):c[B]>m?(w=N[P+c[B]],_=R[O+c[B]]):(w=96,_=0),d=1<<S-E,T=p=1<<D;h[y+(C>>E)+(p-=d)]=b<<24|w<<16|_|0,0!==p;);for(d=1<<S-1;C&d;)d>>=1;if(0!==d?(C&=d-1,C+=d):C=0,B++,0==--z[S]){if(S===x)break;S=e[r+c[B]]}if(A<S&&(C&v)!==g){for(0===E&&(E=A),y+=T,M=1<<(D=S-E);D+E<x&&!((M-=z[D+E])<=0);)D++,M<<=1;if(I+=1<<D,1===t&&852<I||2===t&&592<I)return 1;h[g=C&v]=A<<24|D<<16|y-u|0}}return 0!==C&&(h[y+C]=S-E<<24|64<<16|0),l.bits=A,0}},{"../utils/common":1}],10:[function(t,e,r){"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],11:[function(t,e,r){"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],"/lib/inflate.js":[function(t,e,r){"use strict";var n=t("./zlib/inflate"),i=t("./utils/common"),o=t("./utils/strings"),s=t("./zlib/constants"),a=t("./zlib/messages"),f=t("./zlib/zstream"),h=t("./zlib/gzheader"),u=Object.prototype.toString;function c(t){if(!(this instanceof c))return new c(t);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options;e.raw&&0<=e.windowBits&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(0<=e.windowBits&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),15<e.windowBits&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new f,this.strm.avail_out=0;var r=n.inflateInit2(this.strm,e.windowBits);if(r!==s.Z_OK)throw new Error(a[r]);if(this.header=new h,n.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=o.string2buf(e.dictionary):"[object ArrayBuffer]"===u.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(r=n.inflateSetDictionary(this.strm,e.dictionary))!==s.Z_OK))throw new Error(a[r])}function l(t,e){var r=new c(e);if(r.push(t,!0),r.err)throw r.msg||a[r.err];return r.result}c.prototype.push=function(t,e){var r,a,f,h,c,l=this.strm,d=this.options.chunkSize,p=this.options.dictionary,g=!1;if(this.ended)return!1;a=e===~~e?e:!0===e?s.Z_FINISH:s.Z_NO_FLUSH,"string"==typeof t?l.input=o.binstring2buf(t):"[object ArrayBuffer]"===u.call(t)?l.input=new Uint8Array(t):l.input=t,l.next_in=0,l.avail_in=l.input.length;do{if(0===l.avail_out&&(l.output=new i.Buf8(d),l.next_out=0,l.avail_out=d),(r=n.inflate(l,s.Z_NO_FLUSH))===s.Z_NEED_DICT&&p&&(r=n.inflateSetDictionary(this.strm,p)),r===s.Z_BUF_ERROR&&!0===g&&(r=s.Z_OK,g=!1),r!==s.Z_STREAM_END&&r!==s.Z_OK)return this.onEnd(r),!(this.ended=!0);l.next_out&&(0!==l.avail_out&&r!==s.Z_STREAM_END&&(0!==l.avail_in||a!==s.Z_FINISH&&a!==s.Z_SYNC_FLUSH)||("string"===this.options.to?(f=o.utf8border(l.output,l.next_out),h=l.next_out-f,c=o.buf2string(l.output,f),l.next_out=h,l.avail_out=d-h,h&&i.arraySet(l.output,l.output,f,h,0),this.onData(c)):this.onData(i.shrinkBuf(l.output,l.next_out)))),0===l.avail_in&&0===l.avail_out&&(g=!0)}while((0<l.avail_in||0===l.avail_out)&&r!==s.Z_STREAM_END);return r===s.Z_STREAM_END&&(a=s.Z_FINISH),a===s.Z_FINISH?(r=n.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===s.Z_OK):a!==s.Z_SYNC_FLUSH||(this.onEnd(s.Z_OK),!(l.avail_out=0))},c.prototype.onData=function(t){this.chunks.push(t)},c.prototype.onEnd=function(t){t===s.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},r.Inflate=c,r.inflate=l,r.inflateRaw=function(t,e){return(e=e||{}).raw=!0,l(t,e)},r.ungzip=l},{"./utils/common":1,"./utils/strings":2,"./zlib/constants":4,"./zlib/gzheader":6,"./zlib/inflate":8,"./zlib/messages":10,"./zlib/zstream":11}]},{},[])("/lib/inflate.js")}]);