!function(t,e){"object"==typeofexports&&"object"==typeofmodule?module.exports=e():"function"==typeofdefine&&define.amd?define([],e):"object"==typeofexports?exports.forge=e():t.forge=e()}("undefined"!=typeofself?self:this,function(){returnfunction(t){functione(n){if(r[n])returnr[n].exports;vara=r[n]={i:n,l:!1,exports:{}};returnt[n].call(a.exports,a,a.exports,e),a.l=!0,a.exports}varr={};returne.m=t,e.c=r,e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){varr=t&&t.__esModule?function(){returnt.default}:function(){returnt};returne.d(r,"a",r),r},e.o=function(t,e){returnObject.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=1)}([function(t,e){t.exports={options:{usePureJavaScript:!1}}},function(t,e,r){r(2),t.exports=r(0)},function(t,e,r){functionn(){s=String.fromCharCode(128),s+=i.util.fillString(String.fromCharCode(0),64),u=[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],f=!0}functiona(t,e,r){for(varn,a,i,o,s,f,h,d,c,p,l,g,y,v,m,B=r.length();B>=64;){for(h=0;h<16;++h)e[h]=r.getInt32();for(;h<64;++h)n=e[h-2],n=(n>>>17|n<<15)^(n>>>19|n<<13)^n>>>10,a=e[h-15],a=(a>>>7|a<<25)^(a>>>18|a<<14)^a>>>3,e[h]=n+e[h-7]+a+e[h-16]|0;for(d=t.h0,c=t.h1,p=t.h2,l=t.h3,g=t.h4,y=t.h5,v=t.h6,m=t.h7,h=0;h<64;++h)o=(g>>>6|g<<26)^(g>>>11|g<<21)^(g>>>25|g<<7),s=v^g&(y^v),i=(d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10),f=d&c|p&(d^c),n=m+o+s+u[h]+e[h],a=i+f,m=v,v=y,y=g,g=l+n>>>0,l=p,p=c,c=d,d=n+a>>>0;t.h0=t.h0+d|0,t.h1=t.h1+c|0,t.h2=t.h2+p|0,t.h3=t.h3+l|0,t.h4=t.h4+g|0,t.h5=t.h5+y|0,t.h6=t.h6+v|0,t.h7=t.h7+m|0,B-=64}}vari=r(0);r(3),r(4);varo=t.exports=i.sha256=i.sha256||{};i.md.sha256=i.md.algorithms.sha256=o,o.create=function(){f||n();vart=null,e=i.util.createBuffer(),r=newArray(64),o={algorithm:"sha256",blockLength:64,digestLength:32,messageLength:0,fullMessageLength:null,messageLengthSize:8};returno.start=function(){o.messageLength=0,o.fullMessageLength=o.messageLength64=[];for(varr=o.messageLengthSize/4,n=0;n<r;++n)o.fullMessageLength.push(0);returne=i.util.createBuffer(),t={h0:1779033703,h1:3144134277,h2:1013904242,h3:2773480762,h4:1359893119,h5:2600822924,h6:528734635,h7:1541459225},o},o.start(),o.update=function(n,s){"utf8"===s&&(n=i.util.encodeUtf8(n));varf=n.length;o.messageLength+=f,f=[f/4294967296>>>0,f>>>0];for(varu=o.fullMessageLength.length-1;u>=0;--u)o.fullMessageLength[u]+=f[1],f[1]=f[0]+(o.fullMessageLength[u]/4294967296>>>0),o.fullMessageLength[u]=o.fullMessageLength[u]>>>0,f[0]=f[1]/4294967296>>>0;returne.putBytes(n),a(t,r,e),(e.read>2048||0===e.length())&&e.compact(),o},o.digest=function(){varn=i.util.createBuffer();n.putBytes(e.bytes());varf=o.fullMessageLength[o.fullMessageLength.length-1]+o.messageLengthSize,u=f&o.blockLength-1;n.putBytes(s.substr(0,o.blockLength-u));for(varh,d,c=8*o.fullMessageLength[0],p=0;p<o.fullMessageLength.length-1;++p)h=8*o.fullMessageLength[p+1],d=h/4294967296>>>0,c+=d,n.putInt32(c>>>0),c=h>>>0;n.putInt32(c);varl={h0:t.h0,h1:t.h1,h2:t.h2,h3:t.h3,h4:t.h4,h5:t.h5,h6:t.h6,h7:t.h7};a(l,r,n);varg=i.util.createBuffer();returng.putInt32(l.h0),g.putInt32(l.h1),g.putInt32(l.h2),g.putInt32(l.h3),g.putInt32(l.h4),g.putInt32(l.h5),g.putInt32(l.h6),g.putInt32(l.h7),g},o};vars=null,f=!1,u=null},function(t,e,r){varn=r(0);t.exports=n.md=n.md||{},n.md.algorithms=n.md.algorithms||{}},function(t,e,r){(function(e){functionn(t){if(8!==t&&16!==t&&24!==t&&32!==t)thrownewError("Only 8, 16, 24, or 32 bits supported: "+t)}functiona(t){if(this.data="",this.read=0,"string"==typeoft)this.data=t;elseif(f.isArrayBuffer(t)||f.isArrayBufferView(t))if("undefined"!=typeofBuffer&&tinstanceofBuffer)this.data=t.toString("binary");else{vare=newUint8Array(t);try{this.data=String.fromCharCode.apply(null,e)}catch(t){for(varr=0;r<e.length;++r)this.putByte(e[r])}}else(tinstanceofa||"object"==typeoft&&"string"==typeoft.data&&"number"==typeoft.read)&&(this.data=t.data,this.read=t.read);this._constructedStringLength=0}functioni(t,e){e=e||{},this.read=e.readOffset||0,this.growSize=e.growSize||1024;varr=f.isArrayBuffer(t),n=f.isArrayBufferView(t);if(r||n)returnthis.data=r?newDataView(t):newDataView(t.buffer,t.byteOffset,t.byteLength),void(this.write="writeOffset"ine?e.writeOffset:this.data.byteLength);this.data=newDataView(newArrayBuffer(0)),this.write=0,null!==t&&void0!==t&&this.putBytes(t),"writeOffset"ine&&(this.write=e.writeOffset)}varo=r(0),s=r(6),f=t.exports=o.util=o.util||{};!function(){functiont(t){if(t.source===window&&t.data===e){t.stopPropagation();varn=r.slice();r.length=0,n.forEach(function(t){t()})}}if("undefined"!=typeofprocess&&process.nextTick&&!process.browser)returnf.nextTick=process.nextTick,void("function"==typeofsetImmediate?f.setImmediate=setImmediate:f.setImmediate=f.nextTick);if("function"==typeofsetImmediate)returnf.setImmediate=function(){returnsetImmediate.apply(void0,arguments)},void(f.nextTick=function(t){returnsetImmediate(t)});if(f.setImmediate=function(t){setTimeout(t,0)},"undefined"!=typeofwindow&&"function"==typeofwindow.postMessage){vare="forge.setImmediate",r=[];f.setImmediate=function(t){r.push(t),1===r.length&&window.postMessage(e,"*")},window.addEventListener("message",t,!0)}if("undefined"!=typeofMutationObserver){varn=Date.now(),a=!0,i=document.createElement("div"),r=[];newMutationObserver(function(){vart=r.slice();r.length=0,t.forEach(function(t){t()})}).observe(i,{attributes:!0});varo=f.setImmediate;f.setImmediate=function(t){Date.now()-n>15?(n=Date.now(),o(t)):(r.push(t),1===r.length&&i.setAttribute("a",a=!a))}}f.nextTick=f.setImmediate}(),f.isNodejs="undefined"!=typeofprocess&&process.versions&&process.versions.node,f.globalScope=function(){returnf.isNodejs?e:"undefined"==typeofself?window:self}(),f.isArray=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},f.isArrayBuffer=function(t){return"undefined"!=typeofArrayBuffer&&tinstanceofArrayBuffer},f.isArrayBufferView=function(t){returnt&&f.isArrayBuffer(t.buffer)&&void0!==t.byteLength},f.ByteBuffer=a,f.ByteStringBuffer=a;f.ByteStringBuffer.prototype._optimizeConstructedString=function(t){this._constructedStringLength+=t,this._constructedStringLength>4096&&(this.data.substr(0,1),this._constructedStringLength=0)},f.ByteStringBuffer.prototype.length=function(){returnthis.data.length-this.read},f.ByteStringBuffer.prototype.isEmpty=function(){returnthis.length()<=0},f.ByteStringBuffer.prototype.putByte=function(t){returnthis.putBytes(String.fromCharCode(t))},f.ByteStringBuffer.prototype.fillWithByte=function(t,e){t=String.fromCharCode(t);for(varr=this.data;e>0;)1&e&&(r+=t),(e>>>=1)>0&&(t+=t);returnthis.data=r,this._optimizeConstructedString(e),this},f.ByteStringBuffer.prototype.putBytes=function(t){returnthis.data+=t,this._optimizeConstructedString(t.length),this},f.ByteStringBuffer.prototype.putString=function(t){returnthis.putBytes(f.encodeUtf8(t))},f.ByteStringBuffer.prototype.putInt16=function(t){returnthis.putBytes(String.fromCharCode(t>>8&255)+String.fromCharCode(255&t))},f.ByteStringBuffer.prototype.putInt24=function(t){returnthis.putBytes(String.fromCharCode(t>>16&255)+String.fromCharCode(t>>8&255)+String.fromCharCode(255&t))},f.ByteStringBuffer.prototype.putInt32=function(t){returnthis.putBytes(String.fromCharCode(t>>24&255)+String.fromCharCode(t>>16&255)+String.fromCharCode(t>>8&255)+String.fromCharCode(255&t))},f.ByteStringBuffer.prototype.putInt16Le=function(t){returnthis.putBytes(String.fromCharCode(255&t)+String.fromCharCode(t>>8&255))},f.ByteStringBuffer.prototype.putInt24Le=function(t){returnthis.putBytes(String.fromCharCode(255&t)+String.fromCharCode(t>>8&255)+String.fromCharCode(t>>16&255))},f.ByteStringBuffer.prototype.putInt32Le=function(t){returnthis.putBytes(String.fromCharCode(255&t)+String.fromCharCode(t>>8&255)+String.fromCharCode(t>>16&255)+String.fromCharCode(t>>24&255))},f.ByteStringBuffer.prototype.putInt=function(t,e){n(e);varr="";do{e-=8,r+=String.fromCharCode(t>>e&255)}while(e>0);returnthis.putBytes(r)},f.ByteStringBuffer.prototype.putSignedInt=function(t,e){returnt<0&&(t+=2<<e-1),this.putInt(t,e)},f.ByteStringBuffer.prototype.putBuffer=function(t){returnthis.putBytes(t.getBytes())},f.ByteStringBuffer.prototype.getByte=function(){returnthis.data.charCodeAt(this.read++)},f.ByteStringBuffer.prototype.getInt16=function(){vart=this.data.charCodeAt(this.read)<<8^this.data.charCodeAt(this.read+1);returnthis.read+=2,t},f.ByteStringBuffer.prototype.getInt24=function(){vart=this.data.charCodeAt(this.read)<<16^this.data.charCodeAt(this.read+1)<<8^this.data.charCodeAt(this.read+2);returnthis.read+=3,t},f.ByteStringBuffer.prototype.getInt32=function(){vart=this.data.charCodeAt(this.read)<<24^this.data.charCodeAt(this.read+1)<<16^this.data.charCodeAt(this.read+2)<<8^this.data.charCodeAt(this.read+3);returnthis.read+=4,t},f.ByteStringBuffer.prototype.getInt16Le=function(){vart=this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+1)<<8;returnthis.read+=2,t},f.ByteStringBuffer.prototype.getInt24Le=function(){vart=this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+1)<<8^this.data.charCodeAt(this.read+2)<<16;returnthis.read+=3,t},f.ByteStringBuffer.prototype.getInt32Le=function(){vart=this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+1)<<8^this.data.charCodeAt(this.read+2)<<16^this.data.charCodeAt(this.read+3)<<24;returnthis.read+=4,t},f.ByteStringBuffer.prototype.getInt=function(t){n(t);vare=0;do{e=(e<<8)+this.data.charCodeAt(this.read++),t-=8}while(t>0);returne},f.ByteStringBuffer.prototype.getSignedInt=function(t){vare=this.getInt(t),r=2<<t-2;returne>=r&&(e-=r<<1),e},f.ByteStringBuffer.prototype.getBytes=function(t){vare;returnt?(t=Math.min(this.length(),t),e=this.data.slice(this.read,this.read+t),this.read+=t):0===t?e="":(e=0===this.read?this.data:this.data.slice(this.read),this.clear()),e},f.ByteStringBuffer.prototype.bytes=function(t){returnvoid0===t?this.data.slice(this.read):this.data.slice(this.read,this.read+t)},f.ByteStringBuffer.prototype.at=function(t){returnthis.data.charCodeAt(this.read+t)},f.ByteStringBuffer.prototype.setAt=function(t,e){returnthis.data=this.data.substr(0,this.read+t)+String.fromCharCode(e)+this.data.substr(this.read+t+1),this},f.ByteStringBuffer.prototype.last=function(){returnthis.data.charCodeAt(this.data.length-1)},f.ByteStringBuffer.prototype.copy=function(){vart=f.createBuffer(this.data);returnt.read=this.read,t},f.ByteStringBuffer.prototype.compact=function(){returnthis.read>0&&(this.data=this.data.slice(this.read),this.read=0),this},f.ByteStringBuffer.prototype.clear=function(){returnthis.data="",this.read=0,this},f.ByteStringBuffer.prototype.truncate=function(t){vare=Math.max(0,this.length()-t);returnthis.data=this.data.substr(this.read,e),this.read=0,this},f.ByteStringBuffer.prototype.toHex=function(){for(vart="",e=this.read;e<this.data.length;++e){varr=this.data.charCodeAt(e);r<16&&(t+="0"),t+=r.toString(16)}returnt},f.ByteStringBuffer.prototype.toString=function(){returnf.decodeUtf8(this.bytes())},f.DataBuffer=i,f.DataBuffer.prototype.length=function(){returnthis.write-this.read},f.DataBuffer.prototype.isEmpty=function(){returnthis.length()<=0},f.DataBuffer.prototype.accommodate=function(t,e){if(this.length()>=t)returnthis;e=Math.max(e||this.growSize,t);varr=newUint8Array(this.data.buffer,this.data.byteOffset,this.data.byteLength),n=newUint8Array(this.length()+e);returnn.set(r),this.data=newDataView(n.buffer),this},f.DataBuffer.prototype.putByte=function(t){returnthis.accommodate(1),this.data.setUint8(this.write++,t),this},f.DataBuffer.prototype.fillWithByte=function(t,e){this.accommodate(e);for(varr=0;r<e;++r)this.data.setUint8(t);returnthis},f.DataBuffer.prototype.putBytes=function(t,e){if(f.isArrayBufferView(t)){varr=newUint8Array(t.buffer,t.byteOffset,t.byteLength),n=r.byteLength-r.byteOffset;this.accommodate(n);vara=newUint8Array(this.data.buffer,this.write);returna.set(r),this.write+=n,this}if(f.isArrayBuffer(t)){varr=newUint8Array(t);this.accommodate(r.byteLength);vara=newUint8Array(this.data.buffer);returna.set(r,this.write),this.write+=r.byteLength,this}if(tinstanceoff.DataBuffer||"object"==typeoft&&"number"==typeoft.read&&"number"==typeoft.write&&f.isArrayBufferView(t.data)){varr=newUint8Array(t.data.byteLength,t.read,t.length());this.accommodate(r.byteLength);vara=newUint8Array(t.data.byteLength,this.write);returna.set(r),this.write+=r.byteLength,this}if(tinstanceoff.ByteStringBuffer&&(t=t.data,e="binary"),e=e||"binary","string"==typeoft){vari;if("hex"===e)returnthis.accommodate(Math.ceil(t.length/2)),i=newUint8Array(this.data.buffer,this.write),this.write+=f.binary.hex.decode(t,i,this.write),this;if("base64"===e)returnthis.accommodate(3*Math.ceil(t.length/4)),i=newUint8Array(this.data.buffer,this.write),this.write+=f.binary.base64.decode(t,i,this.write),this;if("utf8"===e&&(t=f.encodeUtf8(t),e="binary"),"binary"===e||"raw"===e)returnthis.accommodate(t.length),i=newUint8Array(this.data.buffer,this.write),this.write+=f.binary.raw.decode(i),this;if("utf16"===e)returnthis.accommodate(2*t.length),i=newUint16Array(this.data.buffer,this.write),this.write+=f.text.utf16.encode(i),this;thrownewError("Invalid encoding: "+e)}throwError("Invalid parameter: "+t)},f.DataBuffer.prototype.putBuffer=function(t){returnthis.putBytes(t),t.clear(),this},f.DataBuffer.prototype.putString=function(t){returnthis.putBytes(t,"utf16")},f.DataBuffer.prototype.putInt16=function(t){returnthis.accommodate(2),this.data.setInt16(this.write,t),this.write+=2,this},f.DataBuffer.prototype.putInt24=function(t){returnthis.accommodate(3),this.data.setInt16(this.write,t>>8&65535),this.data.setInt8(this.write,t>>16&255),this.write+=3,this},f.DataBuffer.prototype.putInt32=function(t){returnthis.accommodate(4),this.data.setInt32(this.write,t),this.write+=4,this},f.DataBuffer.prototype.putInt16Le=function(t){returnthis.accommodate(2),this.data.setInt16(this.write,t,!0),this.write+=2,this},f.DataBuffer.prototype.putInt24Le=function(t){returnthis.accommodate(3),this.data.setInt8(this.write,t>>16&255),this.data.setInt16(this.write,t>>8&65535,!0),this.write+=3,this},f.DataBuffer.prototype.putInt32Le=function(t){returnthis.accommodate(4),this.data.setInt32(this.write,t,!0),this.write+=4,this},f.DataBuffer.prototype.putInt=function(t,e){n(e),this.accommodate(e/8);do{e-=8,this.data.setInt8(this.write++,t>>e&255)}while(e>0);returnthis},f.DataBuffer.prototype.putSignedInt=function(t,e){returnn(e),this.accommodate(e/8),t<0&&(t+=2<<e-1),this.putInt(t,e)},f.DataBuffer.prototype.getByte=function(){returnthis.data.getInt8(this.read++)},f.DataBuffer.prototype.getInt16=function(){vart=this.data.getInt16(this.read);returnthis.read+=2,t},f.DataBuffer.prototype.getInt24=function(){vart=this.data.getInt16(this.read)<<8^this.data.getInt8(this.read+2);returnthis.read+=3,t},f.DataBuffer.prototype.getInt32=function(){vart=this.data.getInt32(this.read);returnthis.read+=4,t},f.DataBuffer.prototype.getInt16Le=function(){vart=this.data.getInt16(this.read,!0);returnthis.read+=2,t},f.DataBuffer.prototype.getInt24Le=function(){vart=this.data.getInt8(this.read)^this.data.getInt16(this.read+1,!0)<<8;returnthis.read+=3,t},f.DataBuffer.prototype.getInt32Le=function(){vart=this.data.getInt32(this.read,!0);returnthis.read+=4,t},f.DataBuffer.prototype.getInt=function(t){n(t);vare=0;do{e=(e<<8)+this.data.getInt8(this.read++),t-=8}while(t>0);returne},f.DataBuffer.prototype.getSignedInt=function(t){vare=this.getInt(t),r=2<<t-2;returne>=r&&(e-=r<<1),e},f.DataBuffer.prototype.getBytes=function(t){vare;returnt?(t=Math.min(this.length(),t),e=this.data.slice(this.read,this.read+t),this.read+=t):0===t?e="":(e=0===this.read?this.data:this.data.slice(this.read),this.clear()),e},f.DataBuffer.prototype.bytes=function(t){returnvoid0===t?this.data.slice(this.read):this.data.slice(this.read,this.read+t)},f.DataBuffer.prototype.at=function(t){returnthis.data.getUint8(this.read+t)},f.DataBuffer.prototype.setAt=function(t,e){returnthis.data.setUint8(t,e),this},f.DataBuffer.prototype.last=function(){returnthis.data.getUint8(this.write-1)},f.DataBuffer.prototype.copy=function(){returnnewf.DataBuffer(this)},f.DataBuffer.prototype.compact=function(){if(this.read>0){vart=newUint8Array(this.data.buffer,this.read),e=newUint8Array(t.byteLength);e.set(t),this.data=newDataView(e),this.write-=this.read,this.read=0}returnthis},f.DataBuffer.prototype.clear=function(){returnthis.data=newDataView(newArrayBuffer(0)),this.read=this.write=0,this},f.DataBuffer.prototype.truncate=function(t){returnthis.write=Math.max(0,this.length()-t),this.read=Math.min(this.read,this.write),this},f.DataBuffer.prototype.toHex=function(){for(vart="",e=this.read;e<this.data.byteLength;++e){varr=this.data.getUint8(e);r<16&&(t+="0"),t+=r.toString(16)}returnt},f.DataBuffer.prototype.toString=function(t){vare=newUint8Array(this.data,this.read,this.length());if("binary"===(t=t||"utf8")||"raw"===t)returnf.binary.raw.encode(e);if("hex"===t)returnf.binary.hex.encode(e);if("base64"===t)returnf.binary.base64.encode(e);if("utf8"===t)returnf.text.utf8.decode(e);if("utf16"===t)returnf.text.utf16.decode(e);thrownewError("Invalid encoding: "+t)},f.createBuffer=function(t,e){returne=e||"raw",void0!==t&&"utf8"===e&&(t=f.encodeUtf8(t)),newf.ByteBuffer(t)},f.fillString=function(t,e){for(varr="";e>0;)1&e&&(r+=t),(e>>>=1)>0&&(t+=t);returnr},f.xorBytes=function(t,e,r){for(varn="",a="",i="",o=0,s=0;r>0;--r,++o)a=t.charCodeAt(o)^e.charCodeAt(o),s>=10&&(n+=i,i="",s=0),i+=String.fromCharCode(a),++s;returnn+=i},f.hexToBytes=function(t){vare="",r=0;for(!0&t.length&&(r=1,e+=String.fromCharCode(parseInt(t[0],16)));r<t.length;r+=2)e+=String.fromCharCode(parseInt(t.substr(r,2),16));returne},f.bytesToHex=function(t){returnf.createBuffer(t).toHex()},f.int32ToBytes=function(t){returnString.fromCharCode(t>>24&255)+String.fromCharCode(t>>16&255)+String.fromCharCode(t>>8&255)+String.fromCharCode(255&t)};varu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",h=[62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,64,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],d="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";f.encode64=function(t,e){for(varr,n,a,i="",o="",s=0;s<t.length;)r=t.charCodeAt(s++),n=t.charCodeAt(s++),a=t.charCodeAt(s++),i+=u.charAt(r>>2),i+=u.charAt((3&r)<<4|n>>4),isNaN(n)?i+="==":(i+=u.charAt((15&n)<<2|a>>6),i+=isNaN(a)?"=":u.charAt(63&a)),e&&i.length>e&&(o+=i.substr(0,e)+"\r\n",i=i.substr(e));returno+=i},f.decode64=function(t){t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"");for(vare,r,n,a,i="",o=0;o<t.length;)e=h[t.charCodeAt(o++)-43],r=h[t.charCodeAt(o++)-43],n=h[t.charCodeAt(o++)-43],a=h[t.charCodeAt(o++)-43],i+=String.fromCharCode(e<<2|r>>4),64!==n&&(i+=String.fromCharCode((15&r)<<4|n>>2),64!==a&&(i+=String.fromCharCode((3&n)<<6|a)));returni},f.encodeUtf8=function(t){returnunescape(encodeURIComponent(t))},f.decodeUtf8=function(t){returndecodeURIComponent(escape(t))},f.binary={raw:{},hex:{},base64:{},base58:{},baseN:{encode:s.encode,decode:s.decode}},f.binary.raw.encode=function(t){returnString.fromCharCode.apply(null,t)},f.binary.raw.decode=function(t,e,r){varn=e;n||(n=newUint8Array(t.length)),r=r||0;for(vara=r,i=0;i<t.length;++i)n[a++]=t.charCodeAt(i);returne?a-r:n},f.binary.hex.encode=f.bytesToHex,f.binary.hex.decode=function(t,e,r){varn=e;n||(n=newUint8Array(Math.ceil(t.length/2))),r=r||0;vara=0,i=r;for(1&t.length&&(a=1,n[i++]=parseInt(t[0],16));a<t.length;a+=2)n[i++]=parseInt(t.substr(a,2),16);returne?i-r:n},f.binary.base64.encode=function(t,e){for(varr,n,a,i="",o="",s=0;s<t.byteLength;)r=t[s++],n=t[s++],a=t[s++],i+=u.charAt(r>>2),i+=u.charAt((3&r)<<4|n>>4),isNaN(n)?i+="==":(i+=u.charAt((15&n)<<2|a>>6),i+=isNaN(a)?"=":u.charAt(63&a)),e&&i.length>e&&(o+=i.substr(0,e)+"\r\n",i=i.substr(e));returno+=i},f.binary.base64.decode=function(t,e,r){varn=e;n||(n=newUint8Array(3*Math.ceil(t.length/4))),t=t.replace(/[^A-Za-z0-9\+\/\=]/g,""),r=r||0;for(vara,i,o,s,f=0,u=r;f<t.length;)a=h[t.charCodeAt(f++)-43],i=h[t.charCodeAt(f++)-43],o=h[t.charCodeAt(f++)-43],s=h[t.charCodeAt(f++)-43],n[u++]=a<<2|i>>4,64!==o&&(n[u++]=(15&i)<<4|o>>2,64!==s&&(n[u++]=(3&o)<<6|s));returne?u-r:n.subarray(0,u)},f.binary.base58.encode=function(t,e){returnf.binary.baseN.encode(t,d,e)},f.binary.base58.decode=function(t,e){returnf.binary.baseN.decode(t,d,e)},f.text={utf8:{},utf16:{}},f.text.utf8.encode=function(t,e,r){t=f.encodeUtf8(t);varn=e;n||(n=newUint8Array(t.length)),r=r||0;for(vara=r,i=0;i<t.length;++i)n[a++]=t.charCodeAt(i);returne?a-r:n},f.text.utf8.decode=function(t){returnf.decodeUtf8(String.fromCharCode.apply(null,t))},f.text.utf16.encode=function(t,e,r){varn=e;n||(n=newUint8Array(2*t.length));vara=newUint16Array(n.buffer);r=r||0;for(vari=r,o=r,s=0;s<t.length;++s)a[o++]=t.charCodeAt(s),i+=2;returne?i-r:n},f.text.utf16.decode=function(t){returnString.fromCharCode.apply(null,newUint16Array(t.buffer))},f.deflate=function(t,e,r){if(e=f.decode64(t.deflate(f.encode64(e)).rval),r){varn=2;32&e.charCodeAt(1)&&(n=6),e=e.substring(n,e.length-4)}returne},f.inflate=function(t,e,r){varn=t.inflate(f.encode64(e)).rval;returnnull===n?null:f.decode64(n)};varc=function(t,e,r){if(!t)thrownewError("WebStorage not available.");varn;if(null===r?n=t.removeItem(e):(r=f.encode64(JSON.stringify(r)),n=t.setItem(e,r)),void0!==n&&!0!==n.rval){vara=newError(n.error.message);throwa.id=n.error.id,a.name=n.error.name,a}},p=function(t,e){if(!t)thrownewError("WebStorage not available.");varr=t.getItem(e);if(t.init)if(null===r.rval){if(r.error){varn=newError(r.error.message);thrown.id=r.error.id,n.name=r.error.name,n}r=null}elser=r.rval;returnnull!==r&&(r=JSON.parse(f.decode64(r))),r},l=function(t,e,r,n){vara=p(t,e);null===a&&(a={}),a[r]=n,c(t,e,a)},g=function(t,e,r){varn=p(t,e);returnnull!==n&&(n=rinn?n[r]:null),n},y=function(t,e,r){varn=p(t,e);if(null!==n&&rinn){deleten[r];vara=!0;for(variinn){a=!1;break}a&&(n=null),c(t,e,n)}},v=function(t,e){c(t,e,null)},m=function(t,e,r){varn=null;void0===r&&(r=["web","flash"]);vara,i=!1,o=null;for(varsinr){a=r[s];try{if("flash"===a||"both"===a){if(null===e[0])thrownewError("Flash local storage not available.");n=t.apply(this,e),i="flash"===a}"web"!==a&&"both"!==a||(e[0]=localStorage,n=t.apply(this,e),i=!0)}catch(t){o=t}if(i)break}if(!i)throwo;returnn};f.setItem=function(t,e,r,n,a){m(l,arguments,a)},f.getItem=function(t,e,r,n){returnm(g,arguments,n)},f.removeItem=function(t,e,r,n){m(y,arguments,n)},f.clearItems=function(t,e,r){m(v,arguments,r)},f.parseUrl=function(t){vare=/^(https?):\/\/([^:&^\/]*):?(\d*)(.*)$/g;e.lastIndex=0;varr=e.exec(t),n=null===r?null:{full:t,scheme:r[1],host:r[2],port:r[3],path:r[4]};returnn&&(n.fullHost=n.host,n.port?80!==n.port&&"http"===n.scheme?n.fullHost+=":"+n.port:443!==n.port&&"https"===n.scheme&&(n.fullHost+=":"+n.port):"http"===n.scheme?n.port=80:"https"===n.scheme&&(n.port=443),n.full=n.scheme+"://"+n.fullHost),n};varB=null;f.getQueryVariables=function(t){vare,r=function(t){for(vare={},r=t.split("&"),n=0;n<r.length;n++){vara,i,o=r[n].indexOf("=");o>0?(a=r[n].substring(0,o),i=r[n].substring(o+1)):(a=r[n],i=null),aine||(e[a]=[]),ainObject.prototype||null===i||e[a].push(unescape(i))}returne};returnvoid0===t?(null===B&&(B="undefined"!=typeofwindow&&window.location&&window.location.search?r(window.location.search.substring(1)):{}),e=B):e=r(t),e},f.parseFragment=function(t){vare=t,r="",n=t.indexOf("?");n>0&&(e=t.substring(0,n),r=t.substring(n+1));vara=e.split("/");returna.length>0&&""===a[0]&&a.shift(),{pathString:e,queryString:r,path:a,query:""===r?{}:f.getQueryVariables(r)}},f.makeRequest=function(t){vare=f.parseFragment(t),r={path:e.pathString,query:e.queryString,getPath:function(t){returnvoid0===t?e.path:e.path[t]},getQuery:function(t,r){varn;returnvoid0===t?n=e.query:(n=e.query[t])&&void0!==r&&(n=n[r]),n},getQueryLast:function(t,e){varn=r.getQuery(t);returnn?n[n.length-1]:e}};returnr},f.makeLink=function(t,e,r){t=jQuery.isArray(t)?t.join("/"):t;varn=jQuery.param(e||{});returnr=r||"",t+(n.length>0?"?"+n:"")+(r.length>0?"#"+r:"")},f.setPath=function(t,e,r){if("object"==typeoft&&null!==t)for(varn=0,a=e.length;n<a;){vari=e[n++];if(n==a)t[i]=r;else{varo=iint;(!o||o&&"object"!=typeoft[i]||o&&null===t[i])&&(t[i]={}),t=t[i]}}},f.getPath=function(t,e,r){for(varn=0,a=e.length,i=!0;i&&n<a&&"object"==typeoft&&null!==t;){varo=e[n++];i=oint,i&&(t=t[o])}returni?t:r},f.deletePath=function(t,e){if("object"==typeoft&&null!==t)for(varr=0,n=e.length;r<n;){vara=e[r++];if(r==n)deletet[a];else{if(!(aint)||"object"!=typeoft[a]||null===t[a])break;t=t[a]}}},f.isEmpty=function(t){for(vareint)if(t.hasOwnProperty(e))return!1;return!0},f.format=function(t){for(vare,r,n=/%./g,a=0,i=[],o=0;e=n.exec(t);){r=t.substring(o,n.lastIndex-2),r.length>0&&i.push(r),o=n.lastIndex;vars=e[0][1];switch(s){case"s":case"o":a<arguments.length?i.push(arguments[1+a++]):i.push("<?>");break;case"%":i.push("%");break;default:i.push("<%"+s+"?>")}}returni.push(t.substring(o)),i.join("")},f.formatNumber=function(t,e,r,n){vara=t,i=isNaN(e=Math.abs(e))?2:e,o=void0===r?",":r,s=void0===n?".":n,f=a<0?"-":"",u=parseInt(a=Math.abs(+a||0).toFixed(i),10)+"",h=u.length>3?u.length%3:0;returnf+(h?u.substr(0,h)+s:"")+u.substr(h).replace(/(\d{3})(?=\d)/g,"$1"+s)+(i?o+Math.abs(a-u).toFixed(i).slice(2):"")},f.formatSize=function(t){returnt=t>=1073741824?f.formatNumber(t/1073741824,2,".","")+" GiB":t>=1048576?f.formatNumber(t/1048576,2,".","")+" MiB":t>=1024?f.formatNumber(t/1024,0)+" KiB":f.formatNumber(t,0)+" bytes"},f.bytesFromIP=function(t){return-1!==t.indexOf(".")?f.bytesFromIPv4(t):-1!==t.indexOf(":")?f.bytesFromIPv6(t):null},f.bytesFromIPv4=function(t){if(t=t.split("."),4!==t.length)returnnull;for(vare=f.createBuffer(),r=0;r<t.length;++r){varn=parseInt(t[r],10);if(isNaN(n))returnnull;e.putByte(n)}returne.getBytes()},f.bytesFromIPv6=function(t){vare=0;t=t.split(":").filter(function(t){return0===t.length&&++e,!0});for(varr=2*(8-t.length+e),n=f.createBuffer(),a=0;a<8;++a)if(t[a]&&0!==t[a].length){vari=f.hexToBytes(t[a]);i.length<2&&n.putByte(0),n.putBytes(i)}elsen.fillWithByte(0,r),r=0;returnn.getBytes()},f.bytesToIP=function(t){return4===t.length?f.bytesToIPv4(t):16===t.length?f.bytesToIPv6(t):null},f.bytesToIPv4=function(t){if(4!==t.length)returnnull;for(vare=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r));returne.join(".")},f.bytesToIPv6=function(t){if(16!==t.length)returnnull;for(vare=[],r=[],n=0,a=0;a<t.length;a+=2){for(vari=f.bytesToHex(t[a]+t[a+1]);"0"===i[0]&&"0"!==i;)i=i.substr(1);if("0"===i){varo=r[r.length-1],s=e.length;o&&s===o.end+1?(o.end=s,o.end-o.start>r[n].end-r[n].start&&(n=r.length-1)):r.push({start:s,end:s})}e.push(i)}if(r.length>0){varu=r[n];u.end-u.start>0&&(e.splice(u.start,u.end-u.start+1,""),0===u.start&&e.unshift(""),7===u.end&&e.push(""))}returne.join(":")},f.estimateCores=function(t,e){functionr(t,o,s){if(0===o){varu=Math.floor(t.reduce(function(t,e){returnt+e},0)/t.length);returnf.cores=Math.max(1,u),URL.revokeObjectURL(i),e(null,f.cores)}n(s,function(e,n){t.push(a(s,n)),r(t,o-1,s)})}functionn(t,e){for(varr=[],n=[],a=0;a<t;++a){varo=newWorker(i);o.addEventListener("message",function(a){if(n.push(a.data),n.length===t){for(vari=0;i<t;++i)r[i].terminate();e(null,n)}}),r.push(o)}for(vara=0;a<t;++a)r[a].postMessage(a)}functiona(t,e){for(varr=[],n=0;n<t;++n)for(vara=e[n],i=r[n]=[],o=0;o<t;++o)if(n!==o){vars=e[o];(a.st>s.st&&a.st<s.et||s.st>a.st&&s.st<a.et)&&i.push(o)}returnr.reduce(function(t,e){returnMath.max(t,e.length)},0)}if("function"==typeoft&&(e=t,t={}),t=t||{},"cores"inf&&!t.update)returne(null,f.cores);if("undefined"!=typeofnavigator&&"hardwareConcurrency"innavigator&&navigator.hardwareConcurrency>0)returnf.cores=navigator.hardwareConcurrency,e(null,f.cores);if("undefined"==typeofWorker)returnf.cores=1,e(null,f.cores);if("undefined"==typeofBlob)returnf.cores=2,e(null,f.cores);vari=URL.createObjectURL(newBlob(["(",function(){self.addEventListener("message",function(t){for(vare=Date.now(),r=e+4;Date.now()<r;);self.postMessage({st:e,et:r})})}.toString(),")()"],{type:"application/javascript"}));r([],5,16)}}).call(e,r(5))},function(t,e){varr;r=function(){returnthis}();try{r=r||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeofwindow&&(r=window)}t.exports=r},function(t,e){functionr(t,e){varr=0,n=e.length,a=e.charAt(0),i=[0];for(r=0;r<t.length();++r){for(varo=0,s=t.at(r);o<i.length;++o)s+=i[o]<<8,i[o]=s%n,s=s/n|0;for(;s>0;)i.push(s%n),s=s/n|0}varf="";for(r=0;0===t.at(r)&&r<t.length()-1;++r)f+=a;for(r=i.length-1;r>=0;--r)f+=e[i[r]];returnf}varn={};t.exports=n;vara={};n.encode=function(t,e,n){if("string"!=typeofe)thrownewTypeError('"alphabet" must be a string.');if(void0!==n&&"number"!=typeofn)thrownewTypeError('"maxline" must be a number.');vara="";if(tinstanceofUint8Array){vari=0,o=e.length,s=e.charAt(0),f=[0];for(i=0;i<t.length;++i){for(varu=0,h=t[i];u<f.length;++u)h+=f[u]<<8,f[u]=h%o,h=h/o|0;for(;h>0;)f.push(h%o),h=h/o|0}for(i=0;0===t[i]&&i<t.length-1;++i)a+=s;for(i=f.length-1;i>=0;--i)a+=e[f[i]]}elsea=r(t,e);if(n){vard=newRegExp(".{1,"+n+"}","g");a=a.match(d).join("\r\n")}returna},n.decode=function(t,e){if("string"!=typeoft)thrownewTypeError('"input" must be a string.');if("string"!=typeofe)thrownewTypeError('"alphabet" must be a string.');varr=a[e];if(!r){r=a[e]=[];for(varn=0;n<e.length;++n)r[e.charCodeAt(n)]=n}t=t.replace(/\s/g,"");for(vari=e.length,o=e.charAt(0),s=[0],n=0;n<t.length;n++){varf=r[t.charCodeAt(n)];if(void0===f)return;for(varu=0,h=f;u<s.length;++u)h+=s[u]*i,s[u]=255&h,h>>=8;for(;h>0;)s.push(255&h),h>>=8}for(vard=0;t[d]===o&&d<t.length-1;++d)s.push(0);return"undefined"!=typeofBuffer?Buffer.from(s.reverse()):newUint8Array(s.reverse())}}])});