LocalCDN-Firefox-Chrome-Brave/resources/libsodium-wrappers/0.5.4/sodium.min.jsm

33 lines
413 KiB
JavaScript
Raw Normal View History

2020-11-01 17:37:32 +01:00
var Module;if(!Module)Module=(typeof Module!=="undefined"?Module:null)||{};
(function (root, factory) {
if (typeof define === "function" && define.amd) {
define(["exports"], factory);
} else if (typeof exports === 'object' &&
typeof exports.nodeName !== 'string') {
factory(exports);
} else {
factory(root.libsodium = {});
}
})(this, (function (exports) {
var Module = exports;
var Module;if(!Module)Module=(typeof Module!=="undefined"?Module:null)||{};var moduleOverrides={};for(var key in Module){if(Module.hasOwnProperty(key)){moduleOverrides[key]=Module[key]}}var ENVIRONMENT_IS_WEB=false;var ENVIRONMENT_IS_WORKER=false;var ENVIRONMENT_IS_NODE=false;var ENVIRONMENT_IS_SHELL=false;if(Module["ENVIRONMENT"]){if(Module["ENVIRONMENT"]==="WEB"){ENVIRONMENT_IS_WEB=true}else if(Module["ENVIRONMENT"]==="WORKER"){ENVIRONMENT_IS_WORKER=true}else if(Module["ENVIRONMENT"]==="NODE"){ENVIRONMENT_IS_NODE=true}else if(Module["ENVIRONMENT"]==="SHELL"){ENVIRONMENT_IS_SHELL=true}else{throw new Error("The provided Module['ENVIRONMENT'] value is not valid. It must be one of: WEB|WORKER|NODE|SHELL.")}}else{ENVIRONMENT_IS_WEB=typeof window==="object";ENVIRONMENT_IS_WORKER=typeof importScripts==="function";ENVIRONMENT_IS_NODE=typeof process==="object"&&typeof require==="function"&&!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_WORKER;ENVIRONMENT_IS_SHELL=!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_NODE&&!ENVIRONMENT_IS_WORKER}if(ENVIRONMENT_IS_NODE){if(!Module["print"])Module["print"]=console.log;if(!Module["printErr"])Module["printErr"]=console.warn;var nodeFS;var nodePath;Module["read"]=function shell_read(filename,binary){if(!nodeFS)nodeFS=require("fs");if(!nodePath)nodePath=require("path");filename=nodePath["normalize"](filename);var ret=nodeFS["readFileSync"](filename);return binary?ret:ret.toString()};Module["readBinary"]=function readBinary(filename){var ret=Module["read"](filename,true);if(!ret.buffer){ret=new Uint8Array(ret)}assert(ret.buffer);return ret};Module["load"]=function load(f){globalEval(read(f))};if(!Module["thisProgram"]){if(process["argv"].length>1){Module["thisProgram"]=process["argv"][1].replace(/\\/g,"/")}else{Module["thisProgram"]="unknown-program"}}Module["arguments"]=process["argv"].slice(2);if(typeof module!=="undefined"){module["exports"]=Module}process["on"]("uncaughtException",(function(ex){if(!(ex instanceof ExitStatus)){throw ex}}));Module["inspect"]=(function(){return"[Emscripten Module object]"})}else if(ENVIRONMENT_IS_SHELL){if(!Module["print"])Module["print"]=print;if(typeof printErr!="undefined")Module["printErr"]=printErr;if(typeof read!="undefined"){Module["read"]=read}else{Module["read"]=function shell_read(){throw"no read() available"}}Module["readBinary"]=function readBinary(f){if(typeof readbuffer==="function"){return new Uint8Array(readbuffer(f))}var data=read(f,"binary");assert(typeof data==="object");return data};if(typeof scriptArgs!="undefined"){Module["arguments"]=scriptArgs}else if(typeof arguments!="undefined"){Module["arguments"]=arguments}if(typeof quit==="function"){Module["quit"]=(function(status,toThrow){quit(status)})}}else if(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER){Module["read"]=function shell_read(url){var xhr=new XMLHttpRequest;xhr.open("GET",url,false);xhr.send(null);return xhr.responseText};if(ENVIRONMENT_IS_WORKER){Module["readBinary"]=function readBinary(url){var xhr=new XMLHttpRequest;xhr.open("GET",url,false);xhr.responseType="arraybuffer";xhr.send(null);return new Uint8Array(xhr.response)}}Module["readAsync"]=function readAsync(url,onload,onerror){var xhr=new XMLHttpRequest;xhr.open("GET",url,true);xhr.responseType="arraybuffer";xhr.onload=function xhr_onload(){if(xhr.status==200||xhr.status==0&&xhr.response){onload(xhr.response)}else{onerror()}};xhr.onerror=onerror;xhr.send(null)};if(typeof arguments!="undefined"){Module["arguments"]=arguments}if(typeof console!=="undefined"){if(!Module["print"])Module["print"]=function shell_print(x){console.log(x)};if(!Module["printErr"])Module["printErr"]=function shell_printErr(x){console.warn(x)}}else{var TRY_USE_DUMP=false;if(!Module["print"])Module["print"]=TRY_USE_DUMP&&typeof dump!=="undefined"?(function(x){dump(x)}):(function(x){})}if(ENVIRONMENT_IS_WORKER){Module["load"]=importScripts}if(typeof Module["setWindowTitle"]==="undefined"){Module["setWindowTitle"]=(function(title){document.title=title})}}else{throw"Unknown runtime environment. Where are we?"}function globalEval(x){abort("NO_DYNAMIC_EXECUTION=1 was set, cann
var asm=(function(global,env,buffer) {
"use asm";var a=new global.Int8Array(buffer);var b=new global.Int16Array(buffer);var c=new global.Int32Array(buffer);var d=new global.Uint8Array(buffer);var e=new global.Uint16Array(buffer);var f=new global.Uint32Array(buffer);var g=new global.Float32Array(buffer);var h=new global.Float64Array(buffer);var i=env.DYNAMICTOP_PTR|0;var j=env.tempDoublePtr|0;var k=env.ABORT|0;var l=env.STACKTOP|0;var m=env.STACK_MAX|0;var n=0;var o=0;var p=0;var q=0;var r=global.NaN,s=global.Infinity;var t=0,u=0,v=0,w=0,x=0.0;var y=0;var z=global.Math.floor;var A=global.Math.abs;var B=global.Math.sqrt;var C=global.Math.pow;var D=global.Math.cos;var E=global.Math.sin;var F=global.Math.tan;var G=global.Math.acos;var H=global.Math.asin;var I=global.Math.atan;var J=global.Math.atan2;var K=global.Math.exp;var L=global.Math.log;var M=global.Math.ceil;var N=global.Math.imul;var O=global.Math.min;var P=global.Math.max;var Q=global.Math.clz32;var R=env.abort;var S=env.assert;var T=env.enlargeMemory;var U=env.getTotalMemory;var V=env.abortOnCannotGrowMemory;var W=env._emscripten_asm_const_i;var X=env.___assert_fail;var Y=env._abort;var Z=env.___setErrNo;var _=env._emscripten_memcpy_big;var $=env._emscripten_asm_const_v;var aa=env._sysconf;var ba=0.0;
// EMSCRIPTEN_START_FUNCS
function ca(a,b){a=a|0;b=b|0;var d=0,e=0,f=0,g=0,h=0,i=0,j=0,k=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0,w=0,x=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=0,M=0,N=0,O=0,P=0,Q=0,R=0,S=0,T=0,U=0,V=0,W=0,X=0,Y=0,Z=0,_=0,$=0,aa=0,ba=0,ca=0,da=0,ea=0,fa=0,ga=0,ha=0,ia=0;f=l;g=l=l+63&-64;l=l+256|0;d=0;do{h=Mc(b+(d<<3)|0)|0;e=g+128+(d<<3)|0;c[e>>2]=h;c[e+4>>2]=y;d=d+1|0}while((d|0)!=16);d=g;b=a;e=d+64|0;do{c[d>>2]=c[b>>2];d=d+4|0;b=b+4|0}while((d|0)<(e|0));c[g+88>>2]=1595750129;c[g+88+4>>2]=-1521486534;ca=c[a+64>>2]^-1377402159;r=c[a+64+4>>2]^1359893119;h=c[a+72>>2]^725511199;w=c[a+72+4>>2]^-1694144372;n=c[a+80>>2]^-79577749;s=c[a+80+4>>2]^528734635;K=c[a+88>>2]^327033209;ba=c[a+88+4>>2]^1541459225;c[g+120>>2]=K;c[g+120+4>>2]=ba;u=c[g+32>>2]|0;e=c[g+32+4>>2]|0;N=zd(u|0,e|0,c[g>>2]|0,c[g+4>>2]|0)|0;N=zd(N|0,y|0,c[g+128>>2]|0,c[g+128+4>>2]|0)|0;d=y;r=Sc(ca^N,r^d,32)|0;ca=y;V=zd(r|0,ca|0,-205731576,1779033703)|0;O=y;e=Sc(u^V,e^O,24)|0;u=y;d=zd(N|0,d|0,e|0,u|0)|0;N=g+128+8|0;d=zd(d|0,y|0,c[N>>2]|0,c[N+4>>2]|0)|0;R=y;c[g>>2]=d;c[g+4>>2]=R;ca=Sc(r^d,ca^R,16)|0;r=y;c[g+96>>2]=ca;c[g+96+4>>2]=r;r=zd(V|0,O|0,ca|0,r|0)|0;ca=y;c[g+64>>2]=r;c[g+64+4>>2]=ca;ca=Sc(e^r,u^ca,63)|0;c[g+32>>2]=ca;c[g+32+4>>2]=y;ca=c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+64>>2]|0,c[g+64+4>>2]|0,w|0,h|0)|0;p=y;o=Sc(m^u,o^p,24)|0;m=y;F=zd(P|0,F|0,o|0,m|0)|0;P=g+128+104|0;da=c[P>>2]|0;_=c[P+4>>2]|0;F=zd(F|0,y|0,da|0,_|0)|0;E=y;h=Sc(w^F,h^E,16)|0;w=y;p=zd(u|0,p|0,h|0,w|0)|0;u=y;m=Sc(o^p,m^u,63)|0;o=y;c[g+56>>2]=m;c[g+56+4>>2]=o;k=c[g+32>>2]|0;ga=c[g+32+4>>2]|0;z=zd(k|0,ga|0,aa|0,z|0)|0;aa=g+128+112|0;T=c[aa>>2]|0;j=c[aa+4>>2]|0;z=zd(z|0,y|0,T|0,j|0)|0;ia=y;s=Sc(n^z,s^ia,32)|0;n=y;I=zd(c[g+72>>2]|0,c[g+72+4>>2]|0,s|0,n|0)|0;U=y;ga=Sc(k^I,ga^U,24)|0;k=y;ia=zd(z|0,ia|0,ga|0,k|0)|0;z=g+128+120|0;H=c[z>>2]|0;fa=c[z+4>>2]|0;ia=zd(ia|0,y|0,H|0,fa|0)|0;Q=y;n=Sc(s^ia,n^Q,16)|0;s=y;U=zd(I|0,U|0,n|0,s|0)|0;I=y;k=Sc(ga^U,k^I,63)|0;ga=y;$=zd(S|0,$|0,k|0,ga|0)|0;j=zd($|0,y|0,T|0,j|0)|0;T=y;C=Sc(A^j,C^T,32)|0;A=
// EMSCRIPTEN_END_FUNCS
return{_sodium_library_version_minor:Oe,_bitshift64Lshr:gd,_crypto_kx_publickeybytes:af,_crypto_pwhash_bytes_max:Te,_crypto_box_noncebytes:We,_crypto_aead_chacha20poly1305_ietf_keybytes:af,_crypto_aead_chacha20poly1305_ietf_encrypt_detached:Qa,_crypto_scalarmult_base:ne,_crypto_aead_chacha20poly1305_abytes:Ze,_crypto_core_hchacha20_outputbytes:af,_crypto_auth_bytes:af,_crypto_sign_statebytes:Se,_crypto_sign_open:wd,_crypto_aead_chacha20poly1305_decrypt_detached:Sa,_sbrk:Ub,_memcpy:Ia,_crypto_kdf_bytes_max:$e,_crypto_kdf_bytes_min:Ze,_crypto_box_seed_keypair:Sd,stackAlloc:ae,_crypto_box_open_easy_afternm:kc,_crypto_sign_ed25519_sk_to_curve25519:Qb,_emscripten_get_global_libc:Me,_free:ka,_crypto_aead_chacha20poly1305_keybytes:af,stackSave:_e,_crypto_box_seal:tb,_crypto_aead_xchacha20poly1305_ietf_keygen:Ee,_crypto_kx_keypair:ie,runPostSets:Pc,_crypto_kx_client_session_keys:$a,_crypto_generichash_bytes_min:Ze,_crypto_shorthash:Id,_crypto_auth_keybytes:af,_crypto_aead_chacha20poly1305_npubbytes:Ve,_crypto_aead_xchacha20poly1305_ietf_abytes:Ze,_crypto_sign_seedbytes:af,_crypto_box_detached_afternm:cd,_crypto_auth:Od,_randombytes_random:Fe,_crypto_sign_keypair:te,_crypto_generichash_keybytes_min:Ze,_crypto_generichash_statebytes:Le,_randombytes_buf_deterministic:Wd,_crypto_aead_chacha20poly1305_encrypt_detached:ab,_sodium_library_version_major:Pe,_crypto_sign_final_verify:Zd,_crypto_secretbox_keygen:Ee,_sodium_version_string:Re,_crypto_generichash_keybytes_max:$e,_crypto_sign_ed25519_pk_to_curve25519:ob,_crypto_aead_chacha20poly1305_nsecbytes:bf,_crypto_box_beforenmbytes:af,_crypto_generichash:hd,getTempRet0:Xe,_crypto_aead_chacha20poly1305_ietf_nsecbytes:bf,_randombytes_stir:He,_crypto_aead_chacha20poly1305_ietf_encrypt:Hb,_crypto_core_hchacha20:sa,_crypto_box_beforenm:Ud,_crypto_aead_chacha20poly1305_ietf_decrypt:xb,_randombytes_close:bf,_crypto_kx_server_session_keys:_a,_crypto_core_hchacha20_constbytes:Ze,_crypto_pwhash_bytes_min:Ze,_crypto_shorthash_bytes:Ve,_crypto_kdf_keybytes:af,setThrew:pe,establishStackSpace:ye,_crypto_sign_final_create:Ld,_crypto_aead_chacha20poly1305_encrypt:Jb,_crypto_box_keypair:je,_crypto_aead_xchacha20poly1305_ietf_encrypt:Gb,_crypto_kx_secretkeybytes:af,_crypto_box_detached:Yb,_randombytes_buf:Zc,_bitshift64Ashr:Qc,_crypto_generichash_init:Pd,_crypto_box_open_detached:Wb,_crypto_scalarmult_bytes:af,_crypto_pwhash_opslimit_max:Te,_crypto_kx_seedbytes:af,_crypto_auth_verify:Bd,_crypto_box_seal_open:Pb,_crypto_pwhash_memlimit_max:Ie,_crypto_secretbox_detached:Ba,_crypto_secretbox_easy:Bc,_crypto_aead_xchacha20poly1305_ietf_decrypt_detached:ib,_crypto_pwhash_passwd_max:Te,_memset:bb,_crypto_generichash_keygen:Ee,_crypto_box_open_detached_afternm:ad,_sodium_bin2hex:zb,_crypto_aead_xchacha20poly1305_ietf_decrypt:wb,_crypto_aead_chacha20poly1305_ietf_keygen:Ee,_crypto_box_seedbytes:af,_crypto_core_hchacha20_inputbytes:Ze,_crypto_auth_keygen:Ee,_crypto_hash:de,_sodium_library_minimal:Ue,_crypto_box_easy_afternm:Ac,_crypto_aead_xchacha20poly1305_ietf_encrypt_detached:hb,_crypto_box_macbytes:Ze,_randombytes_seedbytes:af,_crypto_box_publickeybytes:af,_crypto_box_sealbytes:Ye,_crypto_sign_secretkeybytes:$e,_crypto_box_secretkeybytes:af,___muldsi3:cc,_crypto_aead_xchacha20poly1305_ietf_keybytes:af,_crypto_scalarmult_scalarbytes:af,_crypto_shorthash_keybytes:Ze,_crypto_aead_chacha20poly1305_keygen:Ee,_crypto_kx_sessionkeybytes:af,_malloc:fa,_crypto_aead_chacha20poly1305_decrypt:yb,_crypto_secretbox_open_easy:mc,_crypto_aead_chacha20poly1305_ietf_decrypt_detached:La,_crypto_sign:yd,_crypto_secretbox_noncebytes:We,_crypto_pwhash_passwd_min:bf,_i64Subtract:xd,_crypto_generichash_keybytes:af,_sodium_hex2bin:Ja,_sodium_init:fd,_crypto_secretbox_macbytes:Ze,_crypto_secretbox_keybytes:af,_crypto_aead_xchacha20poly1305_ietf_npubbytes:We,_randombytes:id,_crypto_sign_publickeybytes:af,_crypto_sign_update:Td,setTempRet0:Ke,_crypto_generichash_bytes:af,_crypto_generichash_bytes_max:$e,_crypto_secretbox_open_detached:Ga,_crypto_sign_init:Ce,_crypto_core_hchacha20_keybytes:af,___muldi3:Uc,_bitshift64Shl:ed,_crypto_sign_
// EMSCRIPTEN_END_ASM
(Module.asmGlobalArg,Module.asmLibraryArg,buffer);var _sodium_library_version_minor=Module["_sodium_library_version_minor"]=asm["_sodium_library_version_minor"];var _bitshift64Lshr=Module["_bitshift64Lshr"]=asm["_bitshift64Lshr"];var _crypto_kx_publickeybytes=Module["_crypto_kx_publickeybytes"]=asm["_crypto_kx_publickeybytes"];var _crypto_pwhash_bytes_max=Module["_crypto_pwhash_bytes_max"]=asm["_crypto_pwhash_bytes_max"];var _crypto_box_noncebytes=Module["_crypto_box_noncebytes"]=asm["_crypto_box_noncebytes"];var _crypto_aead_chacha20poly1305_ietf_keybytes=Module["_crypto_aead_chacha20poly1305_ietf_keybytes"]=asm["_crypto_aead_chacha20poly1305_ietf_keybytes"];var _crypto_aead_chacha20poly1305_ietf_encrypt_detached=Module["_crypto_aead_chacha20poly1305_ietf_encrypt_detached"]=asm["_crypto_aead_chacha20poly1305_ietf_encrypt_detached"];var _crypto_scalarmult_base=Module["_crypto_scalarmult_base"]=asm["_crypto_scalarmult_base"];var _crypto_aead_chacha20poly1305_abytes=Module["_crypto_aead_chacha20poly1305_abytes"]=asm["_crypto_aead_chacha20poly1305_abytes"];var _crypto_core_hchacha20_outputbytes=Module["_crypto_core_hchacha20_outputbytes"]=asm["_crypto_core_hchacha20_outputbytes"];var _crypto_auth_bytes=Module["_crypto_auth_bytes"]=asm["_crypto_auth_bytes"];var _crypto_sign_statebytes=Module["_crypto_sign_statebytes"]=asm["_crypto_sign_statebytes"];var _crypto_sign_open=Module["_crypto_sign_open"]=asm["_crypto_sign_open"];var _crypto_aead_chacha20poly1305_decrypt_detached=Module["_crypto_aead_chacha20poly1305_decrypt_detached"]=asm["_crypto_aead_chacha20poly1305_decrypt_detached"];var _sbrk=Module["_sbrk"]=asm["_sbrk"];var _memcpy=Module["_memcpy"]=asm["_memcpy"];var _crypto_kdf_bytes_max=Module["_crypto_kdf_bytes_max"]=asm["_crypto_kdf_bytes_max"];var _crypto_kdf_bytes_min=Module["_crypto_kdf_bytes_min"]=asm["_crypto_kdf_bytes_min"];var _crypto_box_seed_keypair=Module["_crypto_box_seed_keypair"]=asm["_crypto_box_seed_keypair"];var stackAlloc=Module["stackAlloc"]=asm["stackAlloc"];var _crypto_box_open_easy_afternm=Module["_crypto_box_open_easy_afternm"]=asm["_crypto_box_open_easy_afternm"];var _crypto_sign_ed25519_sk_to_curve25519=Module["_crypto_sign_ed25519_sk_to_curve25519"]=asm["_crypto_sign_ed25519_sk_to_curve25519"];var _emscripten_get_global_libc=Module["_emscripten_get_global_libc"]=asm["_emscripten_get_global_libc"];var _free=Module["_free"]=asm["_free"];var _crypto_aead_chacha20poly1305_keybytes=Module["_crypto_aead_chacha20poly1305_keybytes"]=asm["_crypto_aead_chacha20poly1305_keybytes"];var stackSave=Module["stackSave"]=asm["stackSave"];var _crypto_box_seal=Module["_crypto_box_seal"]=asm["_crypto_box_seal"];var _crypto_aead_xchacha20poly1305_ietf_keygen=Module["_crypto_aead_xchacha20poly1305_ietf_keygen"]=asm["_crypto_aead_xchacha20poly1305_ietf_keygen"];var _crypto_kx_keypair=Module["_crypto_kx_keypair"]=asm["_crypto_kx_keypair"];var runPostSets=Module["runPostSets"]=asm["runPostSets"];var _crypto_kx_client_session_keys=Module["_crypto_kx_client_session_keys"]=asm["_crypto_kx_client_session_keys"];var _crypto_generichash_bytes_min=Module["_crypto_generichash_bytes_min"]=asm["_crypto_generichash_bytes_min"];var _crypto_shorthash=Module["_crypto_shorthash"]=asm["_crypto_shorthash"];var _crypto_auth_keybytes=Module["_crypto_auth_keybytes"]=asm["_crypto_auth_keybytes"];var _crypto_aead_chacha20poly1305_npubbytes=Module["_crypto_aead_chacha20poly1305_npubbytes"]=asm["_crypto_aead_chacha20poly1305_npubbytes"];var _crypto_aead_xchacha20poly1305_ietf_abytes=Module["_crypto_aead_xchacha20poly1305_ietf_abytes"]=asm["_crypto_aead_xchacha20poly1305_ietf_abytes"];var _crypto_sign_seedbytes=Module["_crypto_sign_seedbytes"]=asm["_crypto_sign_seedbytes"];var _crypto_box_detached_afternm=Module["_crypto_box_detached_afternm"]=asm["_crypto_box_detached_afternm"];var _crypto_auth=Module["_crypto_auth"]=asm["_crypto_auth"];var _randombytes_random=Module["_randombytes_random"]=asm["_randombytes_random"];var _crypto_sign_keypair=Module["_crypto_sign_keypair"]=asm["_crypto_sign_keypair"];var _crypto_generichash_keybytes_min=Module["_
ENVIRONMENT_IS_NODE && !process.removeAllListeners("uncaughtException");
return Module;
}));
!function(e,t){if("object"==typeof process&&void 0===process.stdout&&(process.stderr=process.stdout={write:function(){}}),"function"==typeof define&&define.amd)define(["exports","libsodium"],t);else if("undefined"!=typeof exports)t(exports,require("libsodium"));else{var r=e.sodium&&e.sodium.onload;t(e.sodium={},e.libsodium),"function"==typeof r&&r(e.sodium)}}(this,function(e,t){"use strict";function r(){return Object.keys(e).sort()}function a(e){if(!e instanceof Uint8Array)throw new TypeError("Only Uint8Array instances can be incremented");for(var t=256,r=0,a=e.length;r<a;r++)t>>=8,t+=e[r],e[r]=255&t}function n(e,t){if(!e instanceof Uint8Array||!t instanceof Uint8Array)throw new TypeError("Only Uint8Array instances can added");var r=e.length,a=0,n=0;if(t.length!=e.length)throw new TypeError("Arguments must have the same length");for(n=0;n<r;n++)a>>=8,a+=e[n]+t[r],e[n]=255&a}function _(e){if(!e instanceof Uint8Array)throw new TypeError("Only Uint8Array instances can be checked");for(var t=0,r=0,a=e.length;r<a;r++)t|=e[r];return 0===t}function s(e){if(!e instanceof Uint8Array)throw new TypeError("Only Uint8Array instances can be wiped");for(var t=0,r=e.length;t<r;t++)e[t]=0}function c(e,t){if(!(e instanceof Uint8Array&&t instanceof Uint8Array))throw new TypeError("Only Uint8Array instances can be compared");if(e.length!==t.length)throw new TypeError("Only instances of identical length can be compared");for(var r=0,a=0,n=e.length;a<n;a++)r|=e[a]^t[a];return 0===r}function h(e,t){if(!(e instanceof Uint8Array&&t instanceof Uint8Array))throw new TypeError("Only Uint8Array instances can be compared");if(e.length!==t.length)throw new TypeError("Only instances of identical length can be compared");for(var r=0,a=1,n=e.length;n-- >0;)r|=t[n]-e[n]>>8&a,a&=(t[n]^e[n])-1>>8;return r+r+a-1}function o(e){if("function"==typeof TextEncoder)return new TextEncoder("utf-8").encode(e);e=unescape(encodeURIComponent(e));for(var t=new Uint8Array(e.length),r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}function p(e){if("function"==typeof TextDecoder)return new TextDecoder("utf-8",{fatal:!0}).decode(e);var t=Math.ceil(e.length/8192);if(t<=1)try{return decodeURIComponent(escape(String.fromCharCode.apply(null,e)))}catch(e){throw new TypeError("The encoded data was not valid.")}for(var r="",a=0,n=0;n<t;n++){var _=Array.prototype.slice.call(e,8192*n+a,8192*(n+1)+a);if(0!=_.length){var s,c=_.length,h=0;do{var o=_[--c];o>=240?(h=4,s=!0):o>=224?(h=3,s=!0):o>=192?(h=2,s=!0):o<128&&(h=1,s=!0)}while(!s);for(var y=h-(_.length-c),i=0;i<y;i++)a--,_.pop();r+=p(_)}}return r}function y(e){if(!u(e))throw new TypeError("The provided string doesn't look like hex data");for(var t=new Uint8Array(e.length/2),r=0;r<e.length;r+=2)t[r>>>1]=parseInt(e.substr(r,2),16);return t}function i(e){for(var t,r,a,n="",_=0;_<e.length;_++)a=87+(r=15&e[_])+(r-10>>8&-39)<<8|87+(t=e[_]>>>4)+(t-10>>8&-39),n+=String.fromCharCode(255&a)+String.fromCharCode(a>>>8);return n}function u(e){return"string"==typeof e&&/^[0-9a-f]+$/i.test(e)&&e.length%2==0}function l(e,t){for(var r,a,n=e.replace(/[^A-Za-z0-9\+\/]/g,""),_=n.length,s=t?Math.ceil((3*_+1>>2)/t)*t:3*_+1>>2,c=new Uint8Array(s),h=0,o=0,p=0;p<_;p++)if(a=3&p,h|=function(e){return e>64&&e<91?e-65:e>96&&e<123?e-71:e>47&&e<58?e+4:43===e?62:47===e?63:0}(n.charCodeAt(p))<<18-6*a,3===a||_-p==1){for(r=0;r<3&&o<s;r++,o++)c[o]=h>>>(16>>>r&24)&255;h=0}return c}function v(e,t){function r(e){return e<26?e+65:e<52?e+71:e<62?e-4:62===e?43:63===e?47:65}if(void 0===t&&(t=!0),"string"==typeof e)throw new Error("input has to be an array");for(var a=2,n="",_=e.length,s=0,c=0;c<_;c++)a=c%3,c>0&&4*c/3%76==0&&!t&&(n+="\r\n"),s|=e[c]<<(16>>>a&24),2!==a&&e.length-c!=1||(n+=String.fromCharCode(r(s>>>18&63),r(s>>>12&63),r(s>>>6&63),r(63&s)),s=0);return n.substr(0,n.length-2+a)+(2===a?"":1===a?"=":"==")}function d(){return["uint8array","text","hex","base64"]}function g(e,t){var r=t||Et;if(!b(r))throw new Error(r+" output format is not available");if(e instanceof m){if("uint8array"===r)return e.to_Uint8Array();if("text"===r)return p(e.to_Uint8Array());if("hex"===r)