@linenext/dapp-portal-sdk
Version:
Dapp Portal SDK
1 lines โข 2.61 MB
JavaScript
var DappPortalSDK=function(){"use strict";class e extends Error{constructor(t){super(t.message),this.name="RpcException",this.code=t.code,this.data=t.data,Object.setPrototypeOf(this,e.prototype)}}var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function r(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var i,o={},s={},a={},c={};function l(){return i||(i=1,e=c,Object.defineProperty(e,"__esModule",{value:!0}),e.ConnectorState=e.CONNECT_PROTOCOL_VER=e.CONNECT_JSONRPC_VER=e.OKXCONNECTOR_SESSION_LIVE_TTL=e.OKXCONNECTOR_MESSAGE_DISCONNECT_TTL=e.OKXCONNECTOR_MESSAGE_TTL=e.OKXCONNECTOR_WS_URL_PENDING_CLOSE_CODE=e.OKXCONNECTOR_WS_URL_LIST=e.OKXCONNECTOR_WS_URL_IDX_KEY=e.OKXCONNECTOR_WS_URL_3=e.OKXCONNECTOR_WS_URL_2=e.OKXCONNECTOR_WS_URL_1=e.EVENT_EMITTER_MAX_LISTENERS=e.OKXCONNECTOR_PROTOCOL_VERSION=void 0,e.OKXCONNECTOR_PROTOCOL_VERSION=2,e.EVENT_EMITTER_MAX_LISTENERS=10,e.OKXCONNECTOR_WS_URL_1="wss://wsdexpri.okx.com/ws/v1/wallet-connect-relay",e.OKXCONNECTOR_WS_URL_2="wss://wsdexpri.okx.ac/ws/v1/wallet-connect-relay",e.OKXCONNECTOR_WS_URL_3="wss://wsdexpri.coinall.ltd/ws/v1/wallet-connect-relay",e.OKXCONNECTOR_WS_URL_IDX_KEY="wuik",e.OKXCONNECTOR_WS_URL_LIST=[e.OKXCONNECTOR_WS_URL_1,e.OKXCONNECTOR_WS_URL_2,e.OKXCONNECTOR_WS_URL_3],e.OKXCONNECTOR_WS_URL_PENDING_CLOSE_CODE={TIME_OUT:3990,CANCELED:3991,FINISHED:3992},e.OKXCONNECTOR_MESSAGE_TTL=3e5,e.OKXCONNECTOR_MESSAGE_DISCONNECT_TTL=864e5,e.OKXCONNECTOR_SESSION_LIVE_TTL=864e5,e.CONNECT_JSONRPC_VER="2.0",e.CONNECT_PROTOCOL_VER=2,e.ConnectorState={InitState:0,Connecting:1,Connected:2,Disconnected:3,OnError:4}),c;var e}var u,d={};function h(){return u||(u=1,Object.defineProperty(d,"__esModule",{value:!0}),d.OKXCONNECTOR_STORAGE_TOPIC_WALLET_EXPIRE_CACHE=d.OKXCONNECTOR_STORAGE_TOPIC_EXPIRE_CACHE=d.OKXCONNECTOR_STORAGE_PROTOCOL_CACHE=d.OKXCONNECTOR_STORAGE_CIPHER_METHOD=d.OKXCONNECTOR_STORAGE_CRYPTO_CIPHERIV=d.OKXCONNECTOR_STORAGER_CRYPTO_SALT=d.OKXCONNECTOR_STORAGE_CRYPTO_PASSWORD=d.OKXCONNECTOR_TON_KEY=d.OKXCONNECTOR_CRYPTO_SENDER_PK_CACHE=d.OKXCONNECTOR_TOKEN_CACHE=d.OKXCONNECTOR_JWT_KEY=d.OKXCONNECTOR_SESSION_PREFIX_KEY=d.OKXCONNECTOR_CRYPTO_KEY=d.OKXCONNECTOR_CACHE_KEY_DAPP=d.OKXCONNECTOR_CACHE_KEY=void 0,d.OKXCONNECTOR_CACHE_KEY="ck",d.OKXCONNECTOR_CACHE_KEY_DAPP="ck_dapp",d.OKXCONNECTOR_CRYPTO_KEY="cck_k",d.OKXCONNECTOR_SESSION_PREFIX_KEY="cspk_",d.OKXCONNECTOR_JWT_KEY="cjk_k",d.OKXCONNECTOR_TOKEN_CACHE="ct",d.OKXCONNECTOR_CRYPTO_SENDER_PK_CACHE="csp",d.OKXCONNECTOR_TON_KEY="OKXStorage_ctc",d.OKXCONNECTOR_STORAGE_CRYPTO_PASSWORD="scp",d.OKXCONNECTOR_STORAGER_CRYPTO_SALT="scs",d.OKXCONNECTOR_STORAGE_CRYPTO_CIPHERIV="scpc",d.OKXCONNECTOR_STORAGE_CIPHER_METHOD="aes-256-cbc",d.OKXCONNECTOR_STORAGE_PROTOCOL_CACHE="okx_connect_split_cache_key",d.OKXCONNECTOR_STORAGE_TOPIC_EXPIRE_CACHE="okx_connect_te_cache_key",d.OKXCONNECTOR_STORAGE_TOPIC_WALLET_EXPIRE_CACHE="okx_connect_twe_cache_key"),d}var p={};function f(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var g,m={exports:{}},w=r(Object.freeze({__proto__:null,default:{}}));function v(){return g||(g=1,function(e){var t=function(e){var t,n=new Float64Array(16);if(e)for(t=0;t<e.length;t++)n[t]=e[t];return n},n=function(){throw new Error("no PRNG")},r=new Uint8Array(16),i=new Uint8Array(32);i[0]=9;var o=t(),s=t([1]),a=t([56129,1]),c=t([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),l=t([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),u=t([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),d=t([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),h=t([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function p(e,t,n,r){e[t]=n>>24&255,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=255&n,e[t+4]=r>>24&255,e[t+5]=r>>16&255,e[t+6]=r>>8&255,e[t+7]=255&r}function g(e,t,n,r,i){var o,s=0;for(o=0;o<i;o++)s|=e[t+o]^n[r+o];return(1&s-1>>>8)-1}function m(e,t,n,r){return g(e,t,n,r,16)}function v(e,t,n,r){return g(e,t,n,r,32)}function y(e,t,n,r){!function(e,t,n,r){for(var i,o=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,s=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,a=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,c=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,l=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,u=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,d=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,h=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,p=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,f=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,g=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,m=255&n[16]|(255&n[17])<<8|(255&n[18])<<16|(255&n[19])<<24,w=255&n[20]|(255&n[21])<<8|(255&n[22])<<16|(255&n[23])<<24,v=255&n[24]|(255&n[25])<<8|(255&n[26])<<16|(255&n[27])<<24,y=255&n[28]|(255&n[29])<<8|(255&n[30])<<16|(255&n[31])<<24,b=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,C=o,E=s,x=a,_=c,O=l,S=u,T=d,A=h,k=p,N=f,R=g,I=m,P=w,D=v,M=y,L=b,U=0;U<20;U+=2)C^=(i=(P^=(i=(k^=(i=(O^=(i=C+P|0)<<7|i>>>25)+C|0)<<9|i>>>23)+O|0)<<13|i>>>19)+k|0)<<18|i>>>14,S^=(i=(E^=(i=(D^=(i=(N^=(i=S+E|0)<<7|i>>>25)+S|0)<<9|i>>>23)+N|0)<<13|i>>>19)+D|0)<<18|i>>>14,R^=(i=(T^=(i=(x^=(i=(M^=(i=R+T|0)<<7|i>>>25)+R|0)<<9|i>>>23)+M|0)<<13|i>>>19)+x|0)<<18|i>>>14,L^=(i=(I^=(i=(A^=(i=(_^=(i=L+I|0)<<7|i>>>25)+L|0)<<9|i>>>23)+_|0)<<13|i>>>19)+A|0)<<18|i>>>14,C^=(i=(_^=(i=(x^=(i=(E^=(i=C+_|0)<<7|i>>>25)+C|0)<<9|i>>>23)+E|0)<<13|i>>>19)+x|0)<<18|i>>>14,S^=(i=(O^=(i=(A^=(i=(T^=(i=S+O|0)<<7|i>>>25)+S|0)<<9|i>>>23)+T|0)<<13|i>>>19)+A|0)<<18|i>>>14,R^=(i=(N^=(i=(k^=(i=(I^=(i=R+N|0)<<7|i>>>25)+R|0)<<9|i>>>23)+I|0)<<13|i>>>19)+k|0)<<18|i>>>14,L^=(i=(M^=(i=(D^=(i=(P^=(i=L+M|0)<<7|i>>>25)+L|0)<<9|i>>>23)+P|0)<<13|i>>>19)+D|0)<<18|i>>>14;C=C+o|0,E=E+s|0,x=x+a|0,_=_+c|0,O=O+l|0,S=S+u|0,T=T+d|0,A=A+h|0,k=k+p|0,N=N+f|0,R=R+g|0,I=I+m|0,P=P+w|0,D=D+v|0,M=M+y|0,L=L+b|0,e[0]=C>>>0&255,e[1]=C>>>8&255,e[2]=C>>>16&255,e[3]=C>>>24&255,e[4]=E>>>0&255,e[5]=E>>>8&255,e[6]=E>>>16&255,e[7]=E>>>24&255,e[8]=x>>>0&255,e[9]=x>>>8&255,e[10]=x>>>16&255,e[11]=x>>>24&255,e[12]=_>>>0&255,e[13]=_>>>8&255,e[14]=_>>>16&255,e[15]=_>>>24&255,e[16]=O>>>0&255,e[17]=O>>>8&255,e[18]=O>>>16&255,e[19]=O>>>24&255,e[20]=S>>>0&255,e[21]=S>>>8&255,e[22]=S>>>16&255,e[23]=S>>>24&255,e[24]=T>>>0&255,e[25]=T>>>8&255,e[26]=T>>>16&255,e[27]=T>>>24&255,e[28]=A>>>0&255,e[29]=A>>>8&255,e[30]=A>>>16&255,e[31]=A>>>24&255,e[32]=k>>>0&255,e[33]=k>>>8&255,e[34]=k>>>16&255,e[35]=k>>>24&255,e[36]=N>>>0&255,e[37]=N>>>8&255,e[38]=N>>>16&255,e[39]=N>>>24&255,e[40]=R>>>0&255,e[41]=R>>>8&255,e[42]=R>>>16&255,e[43]=R>>>24&255,e[44]=I>>>0&255,e[45]=I>>>8&255,e[46]=I>>>16&255,e[47]=I>>>24&255,e[48]=P>>>0&255,e[49]=P>>>8&255,e[50]=P>>>16&255,e[51]=P>>>24&255,e[52]=D>>>0&255,e[53]=D>>>8&255,e[54]=D>>>16&255,e[55]=D>>>24&255,e[56]=M>>>0&255,e[57]=M>>>8&255,e[58]=M>>>16&255,e[59]=M>>>24&255,e[60]=L>>>0&255,e[61]=L>>>8&255,e[62]=L>>>16&255,e[63]=L>>>24&255}(e,t,n,r)}function b(e,t,n,r){!function(e,t,n,r){for(var i,o=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,s=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,a=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,c=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,l=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,u=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,d=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,h=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,p=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,f=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,g=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,m=255&n[16]|(255&n[17])<<8|(255&n[18])<<16|(255&n[19])<<24,w=255&n[20]|(255&n[21])<<8|(255&n[22])<<16|(255&n[23])<<24,v=255&n[24]|(255&n[25])<<8|(255&n[26])<<16|(255&n[27])<<24,y=255&n[28]|(255&n[29])<<8|(255&n[30])<<16|(255&n[31])<<24,b=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,C=0;C<20;C+=2)o^=(i=(w^=(i=(p^=(i=(l^=(i=o+w|0)<<7|i>>>25)+o|0)<<9|i>>>23)+l|0)<<13|i>>>19)+p|0)<<18|i>>>14,u^=(i=(s^=(i=(v^=(i=(f^=(i=u+s|0)<<7|i>>>25)+u|0)<<9|i>>>23)+f|0)<<13|i>>>19)+v|0)<<18|i>>>14,g^=(i=(d^=(i=(a^=(i=(y^=(i=g+d|0)<<7|i>>>25)+g|0)<<9|i>>>23)+y|0)<<13|i>>>19)+a|0)<<18|i>>>14,b^=(i=(m^=(i=(h^=(i=(c^=(i=b+m|0)<<7|i>>>25)+b|0)<<9|i>>>23)+c|0)<<13|i>>>19)+h|0)<<18|i>>>14,o^=(i=(c^=(i=(a^=(i=(s^=(i=o+c|0)<<7|i>>>25)+o|0)<<9|i>>>23)+s|0)<<13|i>>>19)+a|0)<<18|i>>>14,u^=(i=(l^=(i=(h^=(i=(d^=(i=u+l|0)<<7|i>>>25)+u|0)<<9|i>>>23)+d|0)<<13|i>>>19)+h|0)<<18|i>>>14,g^=(i=(f^=(i=(p^=(i=(m^=(i=g+f|0)<<7|i>>>25)+g|0)<<9|i>>>23)+m|0)<<13|i>>>19)+p|0)<<18|i>>>14,b^=(i=(y^=(i=(v^=(i=(w^=(i=b+y|0)<<7|i>>>25)+b|0)<<9|i>>>23)+w|0)<<13|i>>>19)+v|0)<<18|i>>>14;e[0]=o>>>0&255,e[1]=o>>>8&255,e[2]=o>>>16&255,e[3]=o>>>24&255,e[4]=u>>>0&255,e[5]=u>>>8&255,e[6]=u>>>16&255,e[7]=u>>>24&255,e[8]=g>>>0&255,e[9]=g>>>8&255,e[10]=g>>>16&255,e[11]=g>>>24&255,e[12]=b>>>0&255,e[13]=b>>>8&255,e[14]=b>>>16&255,e[15]=b>>>24&255,e[16]=d>>>0&255,e[17]=d>>>8&255,e[18]=d>>>16&255,e[19]=d>>>24&255,e[20]=h>>>0&255,e[21]=h>>>8&255,e[22]=h>>>16&255,e[23]=h>>>24&255,e[24]=p>>>0&255,e[25]=p>>>8&255,e[26]=p>>>16&255,e[27]=p>>>24&255,e[28]=f>>>0&255,e[29]=f>>>8&255,e[30]=f>>>16&255,e[31]=f>>>24&255}(e,t,n,r)}var C=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function E(e,t,n,r,i,o,s){var a,c,l=new Uint8Array(16),u=new Uint8Array(64);for(c=0;c<16;c++)l[c]=0;for(c=0;c<8;c++)l[c]=o[c];for(;i>=64;){for(y(u,l,s,C),c=0;c<64;c++)e[t+c]=n[r+c]^u[c];for(a=1,c=8;c<16;c++)a=a+(255&l[c])|0,l[c]=255&a,a>>>=8;i-=64,t+=64,r+=64}if(i>0)for(y(u,l,s,C),c=0;c<i;c++)e[t+c]=n[r+c]^u[c];return 0}function x(e,t,n,r,i){var o,s,a=new Uint8Array(16),c=new Uint8Array(64);for(s=0;s<16;s++)a[s]=0;for(s=0;s<8;s++)a[s]=r[s];for(;n>=64;){for(y(c,a,i,C),s=0;s<64;s++)e[t+s]=c[s];for(o=1,s=8;s<16;s++)o=o+(255&a[s])|0,a[s]=255&o,o>>>=8;n-=64,t+=64}if(n>0)for(y(c,a,i,C),s=0;s<n;s++)e[t+s]=c[s];return 0}function _(e,t,n,r,i){var o=new Uint8Array(32);b(o,r,i,C);for(var s=new Uint8Array(8),a=0;a<8;a++)s[a]=r[a+16];return x(e,t,n,s,o)}function O(e,t,n,r,i,o,s){var a=new Uint8Array(32);b(a,o,s,C);for(var c=new Uint8Array(8),l=0;l<8;l++)c[l]=o[l+16];return E(e,t,n,r,i,c,a)}var S=function(e){var t,n,r,i,o,s,a,c;this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0,t=255&e[0]|(255&e[1])<<8,this.r[0]=8191&t,n=255&e[2]|(255&e[3])<<8,this.r[1]=8191&(t>>>13|n<<3),r=255&e[4]|(255&e[5])<<8,this.r[2]=7939&(n>>>10|r<<6),i=255&e[6]|(255&e[7])<<8,this.r[3]=8191&(r>>>7|i<<9),o=255&e[8]|(255&e[9])<<8,this.r[4]=255&(i>>>4|o<<12),this.r[5]=o>>>1&8190,s=255&e[10]|(255&e[11])<<8,this.r[6]=8191&(o>>>14|s<<2),a=255&e[12]|(255&e[13])<<8,this.r[7]=8065&(s>>>11|a<<5),c=255&e[14]|(255&e[15])<<8,this.r[8]=8191&(a>>>8|c<<8),this.r[9]=c>>>5&127,this.pad[0]=255&e[16]|(255&e[17])<<8,this.pad[1]=255&e[18]|(255&e[19])<<8,this.pad[2]=255&e[20]|(255&e[21])<<8,this.pad[3]=255&e[22]|(255&e[23])<<8,this.pad[4]=255&e[24]|(255&e[25])<<8,this.pad[5]=255&e[26]|(255&e[27])<<8,this.pad[6]=255&e[28]|(255&e[29])<<8,this.pad[7]=255&e[30]|(255&e[31])<<8};function T(e,t,n,r,i,o){var s=new S(o);return s.update(n,r,i),s.finish(e,t),0}function A(e,t,n,r,i,o){var s=new Uint8Array(16);return T(s,0,n,r,i,o),m(e,t,s,0)}function k(e,t,n,r,i){var o;if(n<32)return-1;for(O(e,0,t,0,n,r,i),T(e,16,e,32,n-32,e),o=0;o<16;o++)e[o]=0;return 0}function N(e,t,n,r,i){var o,s=new Uint8Array(32);if(n<32)return-1;if(_(s,0,32,r,i),0!==A(t,16,t,32,n-32,s))return-1;for(O(e,0,t,0,n,r,i),o=0;o<32;o++)e[o]=0;return 0}function R(e,t){var n;for(n=0;n<16;n++)e[n]=0|t[n]}function I(e){var t,n,r=1;for(t=0;t<16;t++)n=e[t]+r+65535,r=Math.floor(n/65536),e[t]=n-65536*r;e[0]+=r-1+37*(r-1)}function P(e,t,n){for(var r,i=~(n-1),o=0;o<16;o++)r=i&(e[o]^t[o]),e[o]^=r,t[o]^=r}function D(e,n){var r,i,o,s=t(),a=t();for(r=0;r<16;r++)a[r]=n[r];for(I(a),I(a),I(a),i=0;i<2;i++){for(s[0]=a[0]-65517,r=1;r<15;r++)s[r]=a[r]-65535-(s[r-1]>>16&1),s[r-1]&=65535;s[15]=a[15]-32767-(s[14]>>16&1),o=s[15]>>16&1,s[14]&=65535,P(a,s,1-o)}for(r=0;r<16;r++)e[2*r]=255&a[r],e[2*r+1]=a[r]>>8}function M(e,t){var n=new Uint8Array(32),r=new Uint8Array(32);return D(n,e),D(r,t),v(n,0,r,0)}function L(e){var t=new Uint8Array(32);return D(t,e),1&t[0]}function U(e,t){var n;for(n=0;n<16;n++)e[n]=t[2*n]+(t[2*n+1]<<8);e[15]&=32767}function j(e,t,n){for(var r=0;r<16;r++)e[r]=t[r]+n[r]}function B(e,t,n){for(var r=0;r<16;r++)e[r]=t[r]-n[r]}function K(e,t,n){var r,i,o=0,s=0,a=0,c=0,l=0,u=0,d=0,h=0,p=0,f=0,g=0,m=0,w=0,v=0,y=0,b=0,C=0,E=0,x=0,_=0,O=0,S=0,T=0,A=0,k=0,N=0,R=0,I=0,P=0,D=0,M=0,L=n[0],U=n[1],j=n[2],B=n[3],K=n[4],W=n[5],z=n[6],F=n[7],H=n[8],$=n[9],V=n[10],X=n[11],q=n[12],G=n[13],Z=n[14],Y=n[15];o+=(r=t[0])*L,s+=r*U,a+=r*j,c+=r*B,l+=r*K,u+=r*W,d+=r*z,h+=r*F,p+=r*H,f+=r*$,g+=r*V,m+=r*X,w+=r*q,v+=r*G,y+=r*Z,b+=r*Y,s+=(r=t[1])*L,a+=r*U,c+=r*j,l+=r*B,u+=r*K,d+=r*W,h+=r*z,p+=r*F,f+=r*H,g+=r*$,m+=r*V,w+=r*X,v+=r*q,y+=r*G,b+=r*Z,C+=r*Y,a+=(r=t[2])*L,c+=r*U,l+=r*j,u+=r*B,d+=r*K,h+=r*W,p+=r*z,f+=r*F,g+=r*H,m+=r*$,w+=r*V,v+=r*X,y+=r*q,b+=r*G,C+=r*Z,E+=r*Y,c+=(r=t[3])*L,l+=r*U,u+=r*j,d+=r*B,h+=r*K,p+=r*W,f+=r*z,g+=r*F,m+=r*H,w+=r*$,v+=r*V,y+=r*X,b+=r*q,C+=r*G,E+=r*Z,x+=r*Y,l+=(r=t[4])*L,u+=r*U,d+=r*j,h+=r*B,p+=r*K,f+=r*W,g+=r*z,m+=r*F,w+=r*H,v+=r*$,y+=r*V,b+=r*X,C+=r*q,E+=r*G,x+=r*Z,_+=r*Y,u+=(r=t[5])*L,d+=r*U,h+=r*j,p+=r*B,f+=r*K,g+=r*W,m+=r*z,w+=r*F,v+=r*H,y+=r*$,b+=r*V,C+=r*X,E+=r*q,x+=r*G,_+=r*Z,O+=r*Y,d+=(r=t[6])*L,h+=r*U,p+=r*j,f+=r*B,g+=r*K,m+=r*W,w+=r*z,v+=r*F,y+=r*H,b+=r*$,C+=r*V,E+=r*X,x+=r*q,_+=r*G,O+=r*Z,S+=r*Y,h+=(r=t[7])*L,p+=r*U,f+=r*j,g+=r*B,m+=r*K,w+=r*W,v+=r*z,y+=r*F,b+=r*H,C+=r*$,E+=r*V,x+=r*X,_+=r*q,O+=r*G,S+=r*Z,T+=r*Y,p+=(r=t[8])*L,f+=r*U,g+=r*j,m+=r*B,w+=r*K,v+=r*W,y+=r*z,b+=r*F,C+=r*H,E+=r*$,x+=r*V,_+=r*X,O+=r*q,S+=r*G,T+=r*Z,A+=r*Y,f+=(r=t[9])*L,g+=r*U,m+=r*j,w+=r*B,v+=r*K,y+=r*W,b+=r*z,C+=r*F,E+=r*H,x+=r*$,_+=r*V,O+=r*X,S+=r*q,T+=r*G,A+=r*Z,k+=r*Y,g+=(r=t[10])*L,m+=r*U,w+=r*j,v+=r*B,y+=r*K,b+=r*W,C+=r*z,E+=r*F,x+=r*H,_+=r*$,O+=r*V,S+=r*X,T+=r*q,A+=r*G,k+=r*Z,N+=r*Y,m+=(r=t[11])*L,w+=r*U,v+=r*j,y+=r*B,b+=r*K,C+=r*W,E+=r*z,x+=r*F,_+=r*H,O+=r*$,S+=r*V,T+=r*X,A+=r*q,k+=r*G,N+=r*Z,R+=r*Y,w+=(r=t[12])*L,v+=r*U,y+=r*j,b+=r*B,C+=r*K,E+=r*W,x+=r*z,_+=r*F,O+=r*H,S+=r*$,T+=r*V,A+=r*X,k+=r*q,N+=r*G,R+=r*Z,I+=r*Y,v+=(r=t[13])*L,y+=r*U,b+=r*j,C+=r*B,E+=r*K,x+=r*W,_+=r*z,O+=r*F,S+=r*H,T+=r*$,A+=r*V,k+=r*X,N+=r*q,R+=r*G,I+=r*Z,P+=r*Y,y+=(r=t[14])*L,b+=r*U,C+=r*j,E+=r*B,x+=r*K,_+=r*W,O+=r*z,S+=r*F,T+=r*H,A+=r*$,k+=r*V,N+=r*X,R+=r*q,I+=r*G,P+=r*Z,D+=r*Y,b+=(r=t[15])*L,s+=38*(E+=r*j),a+=38*(x+=r*B),c+=38*(_+=r*K),l+=38*(O+=r*W),u+=38*(S+=r*z),d+=38*(T+=r*F),h+=38*(A+=r*H),p+=38*(k+=r*$),f+=38*(N+=r*V),g+=38*(R+=r*X),m+=38*(I+=r*q),w+=38*(P+=r*G),v+=38*(D+=r*Z),y+=38*(M+=r*Y),o=(r=(o+=38*(C+=r*U))+(i=1)+65535)-65536*(i=Math.floor(r/65536)),s=(r=s+i+65535)-65536*(i=Math.floor(r/65536)),a=(r=a+i+65535)-65536*(i=Math.floor(r/65536)),c=(r=c+i+65535)-65536*(i=Math.floor(r/65536)),l=(r=l+i+65535)-65536*(i=Math.floor(r/65536)),u=(r=u+i+65535)-65536*(i=Math.floor(r/65536)),d=(r=d+i+65535)-65536*(i=Math.floor(r/65536)),h=(r=h+i+65535)-65536*(i=Math.floor(r/65536)),p=(r=p+i+65535)-65536*(i=Math.floor(r/65536)),f=(r=f+i+65535)-65536*(i=Math.floor(r/65536)),g=(r=g+i+65535)-65536*(i=Math.floor(r/65536)),m=(r=m+i+65535)-65536*(i=Math.floor(r/65536)),w=(r=w+i+65535)-65536*(i=Math.floor(r/65536)),v=(r=v+i+65535)-65536*(i=Math.floor(r/65536)),y=(r=y+i+65535)-65536*(i=Math.floor(r/65536)),b=(r=b+i+65535)-65536*(i=Math.floor(r/65536)),o=(r=(o+=i-1+37*(i-1))+(i=1)+65535)-65536*(i=Math.floor(r/65536)),s=(r=s+i+65535)-65536*(i=Math.floor(r/65536)),a=(r=a+i+65535)-65536*(i=Math.floor(r/65536)),c=(r=c+i+65535)-65536*(i=Math.floor(r/65536)),l=(r=l+i+65535)-65536*(i=Math.floor(r/65536)),u=(r=u+i+65535)-65536*(i=Math.floor(r/65536)),d=(r=d+i+65535)-65536*(i=Math.floor(r/65536)),h=(r=h+i+65535)-65536*(i=Math.floor(r/65536)),p=(r=p+i+65535)-65536*(i=Math.floor(r/65536)),f=(r=f+i+65535)-65536*(i=Math.floor(r/65536)),g=(r=g+i+65535)-65536*(i=Math.floor(r/65536)),m=(r=m+i+65535)-65536*(i=Math.floor(r/65536)),w=(r=w+i+65535)-65536*(i=Math.floor(r/65536)),v=(r=v+i+65535)-65536*(i=Math.floor(r/65536)),y=(r=y+i+65535)-65536*(i=Math.floor(r/65536)),b=(r=b+i+65535)-65536*(i=Math.floor(r/65536)),o+=i-1+37*(i-1),e[0]=o,e[1]=s,e[2]=a,e[3]=c,e[4]=l,e[5]=u,e[6]=d,e[7]=h,e[8]=p,e[9]=f,e[10]=g,e[11]=m,e[12]=w,e[13]=v,e[14]=y,e[15]=b}function W(e,t){K(e,t,t)}function z(e,n){var r,i=t();for(r=0;r<16;r++)i[r]=n[r];for(r=253;r>=0;r--)W(i,i),2!==r&&4!==r&&K(i,i,n);for(r=0;r<16;r++)e[r]=i[r]}function F(e,n){var r,i=t();for(r=0;r<16;r++)i[r]=n[r];for(r=250;r>=0;r--)W(i,i),1!==r&&K(i,i,n);for(r=0;r<16;r++)e[r]=i[r]}function H(e,n,r){var i,o,s=new Uint8Array(32),c=new Float64Array(80),l=t(),u=t(),d=t(),h=t(),p=t(),f=t();for(o=0;o<31;o++)s[o]=n[o];for(s[31]=127&n[31]|64,s[0]&=248,U(c,r),o=0;o<16;o++)u[o]=c[o],h[o]=l[o]=d[o]=0;for(l[0]=h[0]=1,o=254;o>=0;--o)P(l,u,i=s[o>>>3]>>>(7&o)&1),P(d,h,i),j(p,l,d),B(l,l,d),j(d,u,h),B(u,u,h),W(h,p),W(f,l),K(l,d,l),K(d,u,p),j(p,l,d),B(l,l,d),W(u,l),B(d,h,f),K(l,d,a),j(l,l,h),K(d,d,l),K(l,h,f),K(h,u,c),W(u,p),P(l,u,i),P(d,h,i);for(o=0;o<16;o++)c[o+16]=l[o],c[o+32]=d[o],c[o+48]=u[o],c[o+64]=h[o];var g=c.subarray(32),m=c.subarray(16);return z(g,g),K(m,m,g),D(e,m),0}function $(e,t){return H(e,t,i)}function V(e,t){return n(t,32),$(e,t)}function X(e,t,n){var i=new Uint8Array(32);return H(i,n,t),b(e,r,i,C)}S.prototype.blocks=function(e,t,n){for(var r,i,o,s,a,c,l,u,d,h,p,f,g,m,w,v,y,b,C,E=this.fin?0:2048,x=this.h[0],_=this.h[1],O=this.h[2],S=this.h[3],T=this.h[4],A=this.h[5],k=this.h[6],N=this.h[7],R=this.h[8],I=this.h[9],P=this.r[0],D=this.r[1],M=this.r[2],L=this.r[3],U=this.r[4],j=this.r[5],B=this.r[6],K=this.r[7],W=this.r[8],z=this.r[9];n>=16;)h=d=0,h+=(x+=8191&(r=255&e[t+0]|(255&e[t+1])<<8))*P,h+=(_+=8191&(r>>>13|(i=255&e[t+2]|(255&e[t+3])<<8)<<3))*(5*z),h+=(O+=8191&(i>>>10|(o=255&e[t+4]|(255&e[t+5])<<8)<<6))*(5*W),h+=(S+=8191&(o>>>7|(s=255&e[t+6]|(255&e[t+7])<<8)<<9))*(5*K),d=(h+=(T+=8191&(s>>>4|(a=255&e[t+8]|(255&e[t+9])<<8)<<12))*(5*B))>>>13,h&=8191,h+=(A+=a>>>1&8191)*(5*j),h+=(k+=8191&(a>>>14|(c=255&e[t+10]|(255&e[t+11])<<8)<<2))*(5*U),h+=(N+=8191&(c>>>11|(l=255&e[t+12]|(255&e[t+13])<<8)<<5))*(5*L),h+=(R+=8191&(l>>>8|(u=255&e[t+14]|(255&e[t+15])<<8)<<8))*(5*M),p=d+=(h+=(I+=u>>>5|E)*(5*D))>>>13,p+=x*D,p+=_*P,p+=O*(5*z),p+=S*(5*W),d=(p+=T*(5*K))>>>13,p&=8191,p+=A*(5*B),p+=k*(5*j),p+=N*(5*U),p+=R*(5*L),d+=(p+=I*(5*M))>>>13,p&=8191,f=d,f+=x*M,f+=_*D,f+=O*P,f+=S*(5*z),d=(f+=T*(5*W))>>>13,f&=8191,f+=A*(5*K),f+=k*(5*B),f+=N*(5*j),f+=R*(5*U),g=d+=(f+=I*(5*L))>>>13,g+=x*L,g+=_*M,g+=O*D,g+=S*P,d=(g+=T*(5*z))>>>13,g&=8191,g+=A*(5*W),g+=k*(5*K),g+=N*(5*B),g+=R*(5*j),m=d+=(g+=I*(5*U))>>>13,m+=x*U,m+=_*L,m+=O*M,m+=S*D,d=(m+=T*P)>>>13,m&=8191,m+=A*(5*z),m+=k*(5*W),m+=N*(5*K),m+=R*(5*B),w=d+=(m+=I*(5*j))>>>13,w+=x*j,w+=_*U,w+=O*L,w+=S*M,d=(w+=T*D)>>>13,w&=8191,w+=A*P,w+=k*(5*z),w+=N*(5*W),w+=R*(5*K),v=d+=(w+=I*(5*B))>>>13,v+=x*B,v+=_*j,v+=O*U,v+=S*L,d=(v+=T*M)>>>13,v&=8191,v+=A*D,v+=k*P,v+=N*(5*z),v+=R*(5*W),y=d+=(v+=I*(5*K))>>>13,y+=x*K,y+=_*B,y+=O*j,y+=S*U,d=(y+=T*L)>>>13,y&=8191,y+=A*M,y+=k*D,y+=N*P,y+=R*(5*z),b=d+=(y+=I*(5*W))>>>13,b+=x*W,b+=_*K,b+=O*B,b+=S*j,d=(b+=T*U)>>>13,b&=8191,b+=A*L,b+=k*M,b+=N*D,b+=R*P,C=d+=(b+=I*(5*z))>>>13,C+=x*z,C+=_*W,C+=O*K,C+=S*B,d=(C+=T*j)>>>13,C&=8191,C+=A*U,C+=k*L,C+=N*M,C+=R*D,x=h=8191&(d=(d=((d+=(C+=I*P)>>>13)<<2)+d|0)+(h&=8191)|0),_=p+=d>>>=13,O=f&=8191,S=g&=8191,T=m&=8191,A=w&=8191,k=v&=8191,N=y&=8191,R=b&=8191,I=C&=8191,t+=16,n-=16;this.h[0]=x,this.h[1]=_,this.h[2]=O,this.h[3]=S,this.h[4]=T,this.h[5]=A,this.h[6]=k,this.h[7]=N,this.h[8]=R,this.h[9]=I},S.prototype.finish=function(e,t){var n,r,i,o,s=new Uint16Array(10);if(this.leftover){for(o=this.leftover,this.buffer[o++]=1;o<16;o++)this.buffer[o]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(n=this.h[1]>>>13,this.h[1]&=8191,o=2;o<10;o++)this.h[o]+=n,n=this.h[o]>>>13,this.h[o]&=8191;for(this.h[0]+=5*n,n=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=n,n=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=n,s[0]=this.h[0]+5,n=s[0]>>>13,s[0]&=8191,o=1;o<10;o++)s[o]=this.h[o]+n,n=s[o]>>>13,s[o]&=8191;for(s[9]-=8192,r=(1^n)-1,o=0;o<10;o++)s[o]&=r;for(r=~r,o=0;o<10;o++)this.h[o]=this.h[o]&r|s[o];for(this.h[0]=65535&(this.h[0]|this.h[1]<<13),this.h[1]=65535&(this.h[1]>>>3|this.h[2]<<10),this.h[2]=65535&(this.h[2]>>>6|this.h[3]<<7),this.h[3]=65535&(this.h[3]>>>9|this.h[4]<<4),this.h[4]=65535&(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14),this.h[5]=65535&(this.h[6]>>>2|this.h[7]<<11),this.h[6]=65535&(this.h[7]>>>5|this.h[8]<<8),this.h[7]=65535&(this.h[8]>>>8|this.h[9]<<5),i=this.h[0]+this.pad[0],this.h[0]=65535&i,o=1;o<8;o++)i=(this.h[o]+this.pad[o]|0)+(i>>>16)|0,this.h[o]=65535&i;e[t+0]=this.h[0]>>>0&255,e[t+1]=this.h[0]>>>8&255,e[t+2]=this.h[1]>>>0&255,e[t+3]=this.h[1]>>>8&255,e[t+4]=this.h[2]>>>0&255,e[t+5]=this.h[2]>>>8&255,e[t+6]=this.h[3]>>>0&255,e[t+7]=this.h[3]>>>8&255,e[t+8]=this.h[4]>>>0&255,e[t+9]=this.h[4]>>>8&255,e[t+10]=this.h[5]>>>0&255,e[t+11]=this.h[5]>>>8&255,e[t+12]=this.h[6]>>>0&255,e[t+13]=this.h[6]>>>8&255,e[t+14]=this.h[7]>>>0&255,e[t+15]=this.h[7]>>>8&255},S.prototype.update=function(e,t,n){var r,i;if(this.leftover){for((i=16-this.leftover)>n&&(i=n),r=0;r<i;r++)this.buffer[this.leftover+r]=e[t+r];if(n-=i,t+=i,this.leftover+=i,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(n>=16&&(i=n-n%16,this.blocks(e,t,i),t+=i,n-=i),n){for(r=0;r<n;r++)this.buffer[this.leftover+r]=e[t+r];this.leftover+=n}};var q=k,G=N,Z=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function Y(e,t,n,r){for(var i,o,s,a,c,l,u,d,h,p,f,g,m,w,v,y,b,C,E,x,_,O,S,T,A,k,N=new Int32Array(16),R=new Int32Array(16),I=e[0],P=e[1],D=e[2],M=e[3],L=e[4],U=e[5],j=e[6],B=e[7],K=t[0],W=t[1],z=t[2],F=t[3],H=t[4],$=t[5],V=t[6],X=t[7],q=0;r>=128;){for(E=0;E<16;E++)x=8*E+q,N[E]=n[x+0]<<24|n[x+1]<<16|n[x+2]<<8|n[x+3],R[E]=n[x+4]<<24|n[x+5]<<16|n[x+6]<<8|n[x+7];for(E=0;E<80;E++)if(i=I,o=P,s=D,a=M,c=L,l=U,u=j,h=K,p=W,f=z,g=F,m=H,w=$,v=V,S=65535&(O=X),T=O>>>16,A=65535&(_=B),k=_>>>16,S+=65535&(O=(H>>>14|L<<18)^(H>>>18|L<<14)^(L>>>9|H<<23)),T+=O>>>16,A+=65535&(_=(L>>>14|H<<18)^(L>>>18|H<<14)^(H>>>9|L<<23)),k+=_>>>16,S+=65535&(O=H&$^~H&V),T+=O>>>16,A+=65535&(_=L&U^~L&j),k+=_>>>16,S+=65535&(O=Z[2*E+1]),T+=O>>>16,A+=65535&(_=Z[2*E]),k+=_>>>16,_=N[E%16],T+=(O=R[E%16])>>>16,A+=65535&_,k+=_>>>16,A+=(T+=(S+=65535&O)>>>16)>>>16,S=65535&(O=C=65535&S|T<<16),T=O>>>16,A=65535&(_=b=65535&A|(k+=A>>>16)<<16),k=_>>>16,S+=65535&(O=(K>>>28|I<<4)^(I>>>2|K<<30)^(I>>>7|K<<25)),T+=O>>>16,A+=65535&(_=(I>>>28|K<<4)^(K>>>2|I<<30)^(K>>>7|I<<25)),k+=_>>>16,T+=(O=K&W^K&z^W&z)>>>16,A+=65535&(_=I&P^I&D^P&D),k+=_>>>16,d=65535&(A+=(T+=(S+=65535&O)>>>16)>>>16)|(k+=A>>>16)<<16,y=65535&S|T<<16,S=65535&(O=g),T=O>>>16,A=65535&(_=a),k=_>>>16,T+=(O=C)>>>16,A+=65535&(_=b),k+=_>>>16,P=i,D=o,M=s,L=a=65535&(A+=(T+=(S+=65535&O)>>>16)>>>16)|(k+=A>>>16)<<16,U=c,j=l,B=u,I=d,W=h,z=p,F=f,H=g=65535&S|T<<16,$=m,V=w,X=v,K=y,E%16==15)for(x=0;x<16;x++)_=N[x],S=65535&(O=R[x]),T=O>>>16,A=65535&_,k=_>>>16,_=N[(x+9)%16],S+=65535&(O=R[(x+9)%16]),T+=O>>>16,A+=65535&_,k+=_>>>16,b=N[(x+1)%16],S+=65535&(O=((C=R[(x+1)%16])>>>1|b<<31)^(C>>>8|b<<24)^(C>>>7|b<<25)),T+=O>>>16,A+=65535&(_=(b>>>1|C<<31)^(b>>>8|C<<24)^b>>>7),k+=_>>>16,b=N[(x+14)%16],T+=(O=((C=R[(x+14)%16])>>>19|b<<13)^(b>>>29|C<<3)^(C>>>6|b<<26))>>>16,A+=65535&(_=(b>>>19|C<<13)^(C>>>29|b<<3)^b>>>6),k+=_>>>16,k+=(A+=(T+=(S+=65535&O)>>>16)>>>16)>>>16,N[x]=65535&A|k<<16,R[x]=65535&S|T<<16;S=65535&(O=K),T=O>>>16,A=65535&(_=I),k=_>>>16,_=e[0],T+=(O=t[0])>>>16,A+=65535&_,k+=_>>>16,k+=(A+=(T+=(S+=65535&O)>>>16)>>>16)>>>16,e[0]=I=65535&A|k<<16,t[0]=K=65535&S|T<<16,S=65535&(O=W),T=O>>>16,A=65535&(_=P),k=_>>>16,_=e[1],T+=(O=t[1])>>>16,A+=65535&_,k+=_>>>16,k+=(A+=(T+=(S+=65535&O)>>>16)>>>16)>>>16,e[1]=P=65535&A|k<<16,t[1]=W=65535&S|T<<16,S=65535&(O=z),T=O>>>16,A=65535&(_=D),k=_>>>16,_=e[2],T+=(O=t[2])>>>16,A+=65535&_,k+=_>>>16,k+=(A+=(T+=(S+=65535&O)>>>16)>>>16)>>>16,e[2]=D=65535&A|k<<16,t[2]=z=65535&S|T<<16,S=65535&(O=F),T=O>>>16,A=65535&(_=M),k=_>>>16,_=e[3],T+=(O=t[3])>>>16,A+=65535&_,k+=_>>>16,k+=(A+=(T+=(S+=65535&O)>>>16)>>>16)>>>16,e[3]=M=65535&A|k<<16,t[3]=F=65535&S|T<<16,S=65535&(O=H),T=O>>>16,A=65535&(_=L),k=_>>>16,_=e[4],T+=(O=t[4])>>>16,A+=65535&_,k+=_>>>16,k+=(A+=(T+=(S+=65535&O)>>>16)>>>16)>>>16,e[4]=L=65535&A|k<<16,t[4]=H=65535&S|T<<16,S=65535&(O=$),T=O>>>16,A=65535&(_=U),k=_>>>16,_=e[5],T+=(O=t[5])>>>16,A+=65535&_,k+=_>>>16,k+=(A+=(T+=(S+=65535&O)>>>16)>>>16)>>>16,e[5]=U=65535&A|k<<16,t[5]=$=65535&S|T<<16,S=65535&(O=V),T=O>>>16,A=65535&(_=j),k=_>>>16,_=e[6],T+=(O=t[6])>>>16,A+=65535&_,k+=_>>>16,k+=(A+=(T+=(S+=65535&O)>>>16)>>>16)>>>16,e[6]=j=65535&A|k<<16,t[6]=V=65535&S|T<<16,S=65535&(O=X),T=O>>>16,A=65535&(_=B),k=_>>>16,_=e[7],T+=(O=t[7])>>>16,A+=65535&_,k+=_>>>16,k+=(A+=(T+=(S+=65535&O)>>>16)>>>16)>>>16,e[7]=B=65535&A|k<<16,t[7]=X=65535&S|T<<16,q+=128,r-=128}return r}function J(e,t,n){var r,i=new Int32Array(8),o=new Int32Array(8),s=new Uint8Array(256),a=n;for(i[0]=1779033703,i[1]=3144134277,i[2]=1013904242,i[3]=2773480762,i[4]=1359893119,i[5]=2600822924,i[6]=528734635,i[7]=1541459225,o[0]=4089235720,o[1]=2227873595,o[2]=4271175723,o[3]=1595750129,o[4]=2917565137,o[5]=725511199,o[6]=4215389547,o[7]=327033209,Y(i,o,t,n),n%=128,r=0;r<n;r++)s[r]=t[a-n+r];for(s[n]=128,s[(n=256-128*(n<112?1:0))-9]=0,p(s,n-8,a/536870912|0,a<<3),Y(i,o,s,n),r=0;r<8;r++)p(e,8*r,i[r],o[r]);return 0}function Q(e,n){var r=t(),i=t(),o=t(),s=t(),a=t(),c=t(),u=t(),d=t(),h=t();B(r,e[1],e[0]),B(h,n[1],n[0]),K(r,r,h),j(i,e[0],e[1]),j(h,n[0],n[1]),K(i,i,h),K(o,e[3],n[3]),K(o,o,l),K(s,e[2],n[2]),j(s,s,s),B(a,i,r),B(c,s,o),j(u,s,o),j(d,i,r),K(e[0],a,c),K(e[1],d,u),K(e[2],u,c),K(e[3],a,d)}function ee(e,t,n){var r;for(r=0;r<4;r++)P(e[r],t[r],n)}function te(e,n){var r=t(),i=t(),o=t();z(o,n[2]),K(r,n[0],o),K(i,n[1],o),D(e,i),e[31]^=L(r)<<7}function ne(e,t,n){var r,i;for(R(e[0],o),R(e[1],s),R(e[2],s),R(e[3],o),i=255;i>=0;--i)ee(e,t,r=n[i/8|0]>>(7&i)&1),Q(t,e),Q(e,e),ee(e,t,r)}function re(e,n){var r=[t(),t(),t(),t()];R(r[0],u),R(r[1],d),R(r[2],s),K(r[3],u,d),ne(e,r,n)}function ie(e,r,i){var o,s=new Uint8Array(64),a=[t(),t(),t(),t()];for(i||n(r,32),J(s,r,32),s[0]&=248,s[31]&=127,s[31]|=64,re(a,s),te(e,a),o=0;o<32;o++)r[o+32]=e[o];return 0}var oe=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function se(e,t){var n,r,i,o;for(r=63;r>=32;--r){for(n=0,i=r-32,o=r-12;i<o;++i)t[i]+=n-16*t[r]*oe[i-(r-32)],n=Math.floor((t[i]+128)/256),t[i]-=256*n;t[i]+=n,t[r]=0}for(n=0,i=0;i<32;i++)t[i]+=n-(t[31]>>4)*oe[i],n=t[i]>>8,t[i]&=255;for(i=0;i<32;i++)t[i]-=n*oe[i];for(r=0;r<32;r++)t[r+1]+=t[r]>>8,e[r]=255&t[r]}function ae(e){var t,n=new Float64Array(64);for(t=0;t<64;t++)n[t]=e[t];for(t=0;t<64;t++)e[t]=0;se(e,n)}function ce(e,n,r,i){var o,s,a=new Uint8Array(64),c=new Uint8Array(64),l=new Uint8Array(64),u=new Float64Array(64),d=[t(),t(),t(),t()];J(a,i,32),a[0]&=248,a[31]&=127,a[31]|=64;var h=r+64;for(o=0;o<r;o++)e[64+o]=n[o];for(o=0;o<32;o++)e[32+o]=a[32+o];for(J(l,e.subarray(32),r+32),ae(l),re(d,l),te(e,d),o=32;o<64;o++)e[o]=i[o];for(J(c,e,r+64),ae(c),o=0;o<64;o++)u[o]=0;for(o=0;o<32;o++)u[o]=l[o];for(o=0;o<32;o++)for(s=0;s<32;s++)u[o+s]+=c[o]*a[s];return se(e.subarray(32),u),h}function le(e,n,r,i){var a,l=new Uint8Array(32),u=new Uint8Array(64),d=[t(),t(),t(),t()],p=[t(),t(),t(),t()];if(r<64)return-1;if(function(e,n){var r=t(),i=t(),a=t(),l=t(),u=t(),d=t(),p=t();return R(e[2],s),U(e[1],n),W(a,e[1]),K(l,a,c),B(a,a,e[2]),j(l,e[2],l),W(u,l),W(d,u),K(p,d,u),K(r,p,a),K(r,r,l),F(r,r),K(r,r,a),K(r,r,l),K(r,r,l),K(e[0],r,l),W(i,e[0]),K(i,i,l),M(i,a)&&K(e[0],e[0],h),W(i,e[0]),K(i,i,l),M(i,a)?-1:(L(e[0])===n[31]>>7&&B(e[0],o,e[0]),K(e[3],e[0],e[1]),0)}(p,i))return-1;for(a=0;a<r;a++)e[a]=n[a];for(a=0;a<32;a++)e[a+32]=i[a];if(J(u,e,r),ae(u),ne(d,p,u),re(p,n.subarray(32)),Q(d,p),te(l,d),r-=64,v(n,0,l,0)){for(a=0;a<r;a++)e[a]=0;return-1}for(a=0;a<r;a++)e[a]=n[a+64];return r}var ue=16,de=64,he=32,pe=64;function fe(e,t){if(32!==e.length)throw new Error("bad key size");if(24!==t.length)throw new Error("bad nonce size")}function ge(){for(var e=0;e<arguments.length;e++)if(!(arguments[e]instanceof Uint8Array))throw new TypeError("unexpected type, use Uint8Array")}function me(e){for(var t=0;t<e.length;t++)e[t]=0}e.lowlevel={crypto_core_hsalsa20:b,crypto_stream_xor:O,crypto_stream:_,crypto_stream_salsa20_xor:E,crypto_stream_salsa20:x,crypto_onetimeauth:T,crypto_onetimeauth_verify:A,crypto_verify_16:m,crypto_verify_32:v,crypto_secretbox:k,crypto_secretbox_open:N,crypto_scalarmult:H,crypto_scalarmult_base:$,crypto_box_beforenm:X,crypto_box_afternm:q,crypto_box:function(e,t,n,r,i,o){var s=new Uint8Array(32);return X(s,i,o),q(e,t,n,r,s)},crypto_box_open:function(e,t,n,r,i,o){var s=new Uint8Array(32);return X(s,i,o),G(e,t,n,r,s)},crypto_box_keypair:V,crypto_hash:J,crypto_sign:ce,crypto_sign_keypair:ie,crypto_sign_open:le,crypto_secretbox_KEYBYTES:32,crypto_secretbox_NONCEBYTES:24,crypto_secretbox_ZEROBYTES:32,crypto_secretbox_BOXZEROBYTES:ue,crypto_scalarmult_BYTES:32,crypto_scalarmult_SCALARBYTES:32,crypto_box_PUBLICKEYBYTES:32,crypto_box_SECRETKEYBYTES:32,crypto_box_BEFORENMBYTES:32,crypto_box_NONCEBYTES:24,crypto_box_ZEROBYTES:32,crypto_box_BOXZEROBYTES:16,crypto_sign_BYTES:de,crypto_sign_PUBLICKEYBYTES:he,crypto_sign_SECRETKEYBYTES:pe,crypto_sign_SEEDBYTES:32,crypto_hash_BYTES:64,gf:t,D:c,L:oe,pack25519:D,unpack25519:U,M:K,A:j,S:W,Z:B,pow2523:F,add:Q,set25519:R,modL:se,scalarmult:ne,scalarbase:re},e.randomBytes=function(e){var t=new Uint8Array(e);return n(t,e),t},e.secretbox=function(e,t,n){ge(e,t,n),fe(n,t);for(var r=new Uint8Array(32+e.length),i=new Uint8Array(r.length),o=0;o<e.length;o++)r[o+32]=e[o];return k(i,r,r.length,t,n),i.subarray(ue)},e.secretbox.open=function(e,t,n){ge(e,t,n),fe(n,t);for(var r=new Uint8Array(ue+e.length),i=new Uint8Array(r.length),o=0;o<e.length;o++)r[o+ue]=e[o];return r.length<32||0!==N(i,r,r.length,t,n)?null:i.subarray(32)},e.secretbox.keyLength=32,e.secretbox.nonceLength=24,e.secretbox.overheadLength=ue,e.scalarMult=function(e,t){if(ge(e,t),32!==e.length)throw new Error("bad n size");if(32!==t.length)throw new Error("bad p size");var n=new Uint8Array(32);return H(n,e,t),n},e.scalarMult.base=function(e){if(ge(e),32!==e.length)throw new Error("bad n size");var t=new Uint8Array(32);return $(t,e),t},e.scalarMult.scalarLength=32,e.scalarMult.groupElementLength=32,e.box=function(t,n,r,i){var o=e.box.before(r,i);return e.secretbox(t,n,o)},e.box.before=function(e,t){ge(e,t),function(e,t){if(32!==e.length)throw new Error("bad public key size");if(32!==t.length)throw new Error("bad secret key size")}(e,t);var n=new Uint8Array(32);return X(n,e,t),n},e.box.after=e.secretbox,e.box.open=function(t,n,r,i){var o=e.box.before(r,i);return e.secretbox.open(t,n,o)},e.box.open.after=e.secretbox.open,e.box.keyPair=function(){var e=new Uint8Array(32),t=new Uint8Array(32);return V(e,t),{publicKey:e,secretKey:t}},e.box.keyPair.fromSecretKey=function(e){if(ge(e),32!==e.length)throw new Error("bad secret key size");var t=new Uint8Array(32);return $(t,e),{publicKey:t,secretKey:new Uint8Array(e)}},e.box.publicKeyLength=32,e.box.secretKeyLength=32,e.box.sharedKeyLength=32,e.box.nonceLength=24,e.box.overheadLength=e.secretbox.overheadLength,e.sign=function(e,t){if(ge(e,t),t.length!==pe)throw new Error("bad secret key size");var n=new Uint8Array(de+e.length);return ce(n,e,e.length,t),n},e.sign.open=function(e,t){if(ge(e,t),t.length!==he)throw new Error("bad public key size");var n=new Uint8Array(e.length),r=le(n,e,e.length,t);if(r<0)return null;for(var i=new Uint8Array(r),o=0;o<i.length;o++)i[o]=n[o];return i},e.sign.detached=function(t,n){for(var r=e.sign(t,n),i=new Uint8Array(de),o=0;o<i.length;o++)i[o]=r[o];return i},e.sign.detached.verify=function(e,t,n){if(ge(e,t,n),t.length!==de)throw new Error("bad signature size");if(n.length!==he)throw new Error("bad public key size");var r,i=new Uint8Array(de+e.length),o=new Uint8Array(de+e.length);for(r=0;r<de;r++)i[r]=t[r];for(r=0;r<e.length;r++)i[r+de]=e[r];return le(o,i,i.length,n)>=0},e.sign.keyPair=function(){var e=new Uint8Array(he),t=new Uint8Array(pe);return ie(e,t),{publicKey:e,secretKey:t}},e.sign.keyPair.fromSecretKey=function(e){if(ge(e),e.length!==pe)throw new Error("bad secret key size");for(var t=new Uint8Array(he),n=0;n<t.length;n++)t[n]=e[32+n];return{publicKey:t,secretKey:new Uint8Array(e)}},e.sign.keyPair.fromSeed=function(e){if(ge(e),32!==e.length)throw new Error("bad seed size");for(var t=new Uint8Array(he),n=new Uint8Array(pe),r=0;r<32;r++)n[r]=e[r];return ie(t,n,!0),{publicKey:t,secretKey:n}},e.sign.publicKeyLength=he,e.sign.secretKeyLength=pe,e.sign.seedLength=32,e.sign.signatureLength=de,e.hash=function(e){ge(e);var t=new Uint8Array(64);return J(t,e,e.length),t},e.hash.hashLength=64,e.verify=function(e,t){return ge(e,t),0!==e.length&&0!==t.length&&e.length===t.length&&0===g(e,0,t,0,e.length)},e.setPRNG=function(e){n=e},function(){var t="undefined"!=typeof self?self.crypto||self.msCrypto:null;t&&t.getRandomValues?e.setPRNG((function(e,n){var r,i=new Uint8Array(n);for(r=0;r<n;r+=65536)t.getRandomValues(i.subarray(r,r+Math.min(n-r,65536)));for(r=0;r<n;r++)e[r]=i[r];me(i)})):void 0!==f&&(t=w)&&t.randomBytes&&e.setPRNG((function(e,n){var r,i=t.randomBytes(n);for(r=0;r<n;r++)e[r]=i[r];me(i)}))}()}((e=m).exports?e.exports:self.nacl=self.nacl||{})),m.exports;var e}var y,b={},C={exports:{}},E=C.exports;var x=function(e,t){if(e.length>=255)throw new TypeError("Alphabet too long");for(var n=new Uint8Array(256),r=0;r<n.length;r++)n[r]=255;for(var i=0;i<e.length;i++){var o=e.charAt(i),s=o.charCodeAt(0);if(255!==n[s])throw new TypeError(o+" is ambiguous");n[s]=i}var a=e.length,c=e.charAt(0),l=Math.log(a)/Math.log(256),u=Math.log(256)/Math.log(a);function d(e){if("string"!=typeof e)throw new TypeError("Expected String");if(0===e.length)return new Uint8Array;var t=0;if(" "!==e[t]){for(var r=0,i=0;e[t]===c;)r++,t++;for(var o=(e.length-t)*l+1>>>0,s=new Uint8Array(o);e[t];){var u=n[e.charCodeAt(t)];if(255===u)return;for(var d=0,h=o-1;(0!==u||d<i)&&-1!==h;h--,d++)u+=a*s[h]>>>0,s[h]=u%256>>>0,u=u/256>>>0;if(0!==u)throw new Error("Non-zero carry");i=d,t++}if(" "!==e[t]){for(var p=o-i;p!==o&&0===s[p];)p++;for(var f=new Uint8Array(r+(o-p)),g=r;p!==o;)f[g++]=s[p++];return f}}}return{encode:function(t){if(t instanceof Uint8Array||(ArrayBuffer.isView(t)?t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):Array.isArray(t)&&(t=Uint8Array.from(t))),!(t instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(0===t.length)return"";for(var n=0,r=0,i=0,o=t.length;i!==o&&0===t[i];)i++,n++;for(var s=(o-i)*u+1>>>0,l=new Uint8Array(s);i!==o;){for(var d=t[i],h=0,p=s-1;(0!==d||h<r)&&-1!==p;p--,h++)d+=256*l[p]>>>0,l[p]=d%a>>>0,d=d/a>>>0;if(0!==d)throw new Error("Non-zero carry");r=h,i++}for(var f=s-r;f!==s&&0===l[f];)f++;for(var g=c.repeat(n);f<s;++f)g+=e.charAt(l[f]);return g},decodeUnsafe:d,decode:function(e){var n=d(e);if(n)return n;throw new Error(`Non-${t} character`)}}},_=x;let O=class{constructor(e,t,n){this.name=e,this.prefix=t,this.baseEncode=n}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}},S=class{constructor(e,t,n){if(this.name=e,this.prefix=t,void 0===t.codePointAt(0))throw new Error("Invalid prefix character");this.prefixCodePoint=t.codePointAt(0),this.baseDecode=n}decode(e){if("string"==typeof e){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(e)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(e.slice(this.prefix.length))}throw Error("Can only multibase decode strings")}or(e){return A(this,e)}},T=class{constructor(e){this.decoders=e}or(e){return A(this,e)}decode(e){const t=e[0],n=this.decoders[t];if(n)return n.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}};const A=(e,t)=>new T({...e.decoders||{[e.prefix]:e},...t.decoders||{[t.prefix]:t}});let k=class{constructor(e,t,n,r){this.name=e,this.prefix=t,this.baseEncode=n,this.baseDecode=r,this.encoder=new O(e,t,n),this.decoder=new S(e,t,r)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}};const N=({name:e,prefix:t,encode:n,decode:r})=>new k(e,t,n,r),R=({prefix:e,name:t,alphabet:n})=>{const{encode:r,decode:i}=_(n,t);return N({prefix:e,name:t,encode:r,decode:e=>(e=>{if(e instanceof Uint8Array&&"Uint8Array"===e.constructor.name)return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new Error("Unknown type, must be binary type")})(i(e))})},I=({name:e,prefix:t,bitsPerChar:n,alphabet:r})=>N({prefix:t,name:e,encode:e=>((e,t,n)=>{const r="="===t[t.length-1],i=(1<<n)-1;let o="",s=0,a=0;for(let c=0;c<e.length;++c)for(a=a<<8|e[c],s+=8;s>n;)s-=n,o+=t[i&a>>s];if(s&&(o+=t[i&a<<n-s]),r)for(;o.length*n&7;)o+="=";return o})(e,r,n),decode:t=>((e,t,n,r)=>{const i={};for(let u=0;u<t.length;++u)i[t[u]]=u;let o=e.length;for(;"="===e[o-1];)--o;const s=new Uint8Array(o*n/8|0);let a=0,c=0,l=0;for(let u=0;u<o;++u){const t=i[e[u]];if(void 0===t)throw new SyntaxError(`Non-${r} character`);c=c<<n|t,a+=n,a>=8&&(a-=8,s[l++]=255&c>>a)}if(a>=n||255&c<<8-a)throw new SyntaxError("Unexpected end of data");return s})(t,r,n,e)}),P=N({prefix:"\0",name:"identity",encode:e=>(e=>(new TextDecoder).decode(e))(e),decode:e=>(e=>(new TextEncoder).encode(e))(e)});var D=Object.freeze({__proto__:null,identity:P});const M=I({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1});var L=Object.freeze({__proto__:null,base2:M});const U=I({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3});var j=Object.freeze({__proto__:null,base8:U});const B=R({prefix:"9",name:"base10",alphabet:"0123456789"});var K=Object.freeze({__proto__:null,base10:B});const W=I({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),z=I({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4});var F=Object.freeze({__proto__:null,base16:W,base16upper:z});const H=I({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),$=I({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),V=I({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),X=I({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),q=I({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),G=I({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),Z=I({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),Y=I({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),J=I({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5});var Q=Object.freeze({__proto__:null,base32:H,base32hex:q,base32hexpad:Z,base32hexpadupper:Y,base32hexupper:G,base32pad:V,base32padupper:X,base32upper:$,base32z:J});const ee=R({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),te=R({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"});var ne=Object.freeze({__proto__:null,base36:ee,base36upper:te});const re=R({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),ie=R({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"});var oe=Object.freeze({__proto__:null,base58btc:re,base58flickr:ie});const se=I({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),ae=I({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),ce=I({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),le=I({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6});var ue=Object.freeze({__proto__:null,base64:se,base64pad:ae,base64url:ce,base64urlpad:le});const de=Array.from("๐๐ชโ๐ฐ๐๐๐๐๐๐๐๐๐๐๐๐๐โ๐ป๐ฅ๐พ๐ฟ๐โค๐๐คฃ๐๐๐๐ญ๐๐๐
๐๐๐ฅ๐ฅฐ๐๐๐๐ข๐ค๐๐๐ช๐โบ๐๐ค๐๐๐๐๐น๐คฆ๐๐โโจ๐คท๐ฑ๐๐ธ๐๐๐๐๐๐๐๐๐คฉ๐๐๐ค๐๐ฏ๐๐๐ถ๐๐คญโฃ๐๐๐๐ช๐๐ฅ๐๐๐ฉ๐ก๐คช๐๐ฅณ๐ฅ๐คค๐๐๐ณโ๐๐๐ด๐๐ฌ๐๐๐ท๐ป๐โญโ
๐ฅบ๐๐๐ค๐ฆโ๐ฃ๐๐โน๐๐๐ โ๐๐บ๐๐ป๐๐๐๐๐น๐ฃ๐ซ๐๐๐ต๐ค๐๐ด๐ค๐ผ๐ซโฝ๐คโ๐๐คซ๐๐ฎ๐๐ป๐๐ถ๐๐ฒ๐ฟ๐งก๐โก๐๐โโ๐๐ฐ๐คจ๐ถ๐ค๐ถ๐ฐ๐๐ข๐ค๐๐จ๐จ๐คฌโ๐๐บ๐ค๐๐๐ฑ๐๐ถ๐ฅดโถโกโ๐๐ธโฌ๐จ๐๐ฆ๐ท๐บโ ๐
๐๐ต๐๐คฒ๐ค ๐คง๐๐ต๐
๐ง๐พ๐๐๐ค๐๐คฏ๐ทโ๐ง๐ฏ๐๐๐ค๐๐โ๐ด๐ฃ๐ธ๐๐๐ฅ๐คข๐
๐ก๐ฉ๐๐ธ๐ป๐ค๐คฎ๐ผ๐ฅต๐ฉ๐๐๐ผ๐๐ฃ๐ฅ"),he=de.reduce(((e,t,n)=>(e[n]=t,e)),[]),pe=de.reduce(((e,t,n)=>(e[t.codePointAt(0)]=n,e)),[]);const fe=N({prefix:"๐",name:"base256emoji",encode:function(e){return e.reduce(((e,t)=>e+=he[t]),"")},decode:function(e){const t=[];for(const n of e){const e=pe[n.codePointAt(0)];if(void 0===e)throw new Error(`Non-base256emoji character: ${n}`);t.push(e)}return new Uint8Array(t)}});var ge=Object.freeze({__proto__:null,base256emoji:fe});new TextEncoder,new TextDecoder;const me={...D,...L,...j,...K,...F,...Q,...ne,...oe,...ue,...ge};function we(e=0){return null!=globalThis.Buffer&&null!=globalThis.Buffer.allocUnsafe?globalThis.Buffer.allocUnsafe(e):new Uint8Array(e)}function ve(e,t,n,r){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:n},decoder:{decode:r}}}const ye=ve("utf8","u",(e=>"u"+new TextDecoder("utf8").decode(e)),(e=>(new TextEncoder).encode(e.substring(1)))),be=ve("ascii","a",(e=>{let t="a";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t}),(e=>{const t=we((e=e.substring(1)).length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t})),Ce={utf8:ye,"utf-8":ye,hex:me.base16,latin1:be,ascii:be,binary:be,...me};function Ee(e,t="utf8"){const n=Ce[t];if(!n)throw new Error(`Unsupported encoding "${t}"`);return"utf8"!==t&&"utf-8"!==t||null==globalThis.Buffer||null==globalThis.Buffer.from?n.encoder.encode(e).substring(1):globalThis.Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString("utf8")}var xe,_e,Oe=r(Object.freeze({__proto__:null,toString:Ee})),Se={},Te={},Ae={};function ke(){if(_e)return Te;_e=1,Object.defineProperty(Te,"__esModule",{value:!0});var e,t=(xe||(xe=1,e=Ae,Object.defineProperty(e,"__esModule",{value:!0}),e.mul=Math.imul||function(e,t){var n=65535&e,r=65535&t;return n*r+((e>>>16&65535)*r+n*(t>>>16&65535)<<16>>>0)|0},e.add=function(e,t){return e+t|0},e.sub=function(e,t){return e-t|0},e.rotl=function(e,t){return e<<t|e>>>32-t},e.rotr=function(e,t){return e<<32-t|e>>>t},e.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},e.MAX_SAFE_INTEGER=9007199254740991,e.isSafeInteger=function(t){return e.isInteger(t)&&t>=-e.MAX_SAFE_INTEGER&&t<=e.MAX_SAFE_INTEGER}),Ae);function n(e,t,n){return void 0===t&&(t=new Uint8Array(2)),void 0===n&&(n=0),t[n+0]=e>>>8,t[n+1]=e>>>0,t}function r(e,t,n){return void 0===t&&(t=new Uint8Array(2)),void 0===n&&(n=0),t[n+0]=e>>>0,t[n+1]=e>>>8,t}function i(e,t){return void 0===t&&(t=0),e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}function o(e,t){return void 0===t&&(t=0),(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}function s(e,t){return void 0===t&&(t=0),e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]}function a(e,t){return void 0===t&&(t=0),(e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t])>>>0}function c(e,t,n){return void 0===t&&(t=new Uint8Array(4)),void 0===n&&(n=0),t[n+0]=e>>>24,t[n+1]=e>>>16,t[n+2]=e>>>8,t[n+3]=e>>>0,t}function l(e,t,n){return void 0===t&&(t=new Uint8Array(4)),void 0===n&&(n=0),t[n+0]=e>>>0,t[n+1]=e>>>8,t[n+2]=e>>>16,t[n+3]=e>>>24,t}function u(e,t,n){return void 0===t&&(t=new Uint8Array(8)),void 0===n&&(n=0),c(e/4294967296>>>0,t,n),c(e>>>0,t,n+4),t}function d(e,t,n){return void 0===t&&(t=new Uint8Array(8)),void 0===n&&(n=0),l(e>>>0,t,n),l(e/4294967296>>>0,t,n+4),t}return Te.readInt16BE=function(e,t){return void 0===t&&(t=0),(e[t+0]<<8|e[t+1])<<16>>16},Te.readUint16BE=function(e,t){return void 0===t&&(t=0),(e[t+0]<<8|e[t+1])>>>0},Te.readInt16LE=function(e,t){return void 0===t&&(t=0),(e[t+1]<<8|e[t])<<16>>16},Te.readUint16LE=function(e,t){return void 0===t&&(t=0),(e[t+1]<<8|e[t])>>>0},Te.writeUint16BE=n,Te.writeInt16BE=n,Te.writeUint16LE=r,Te.writeInt16LE=r,Te.readInt32BE=i,Te.readUint32BE=o,Te.readInt32LE=s,Te.readUint32LE=a,Te.writeUint32BE=c,Te.writeInt32BE=c,Te.writeUint32LE=l,Te.writeInt32LE=l,Te.readInt64BE=function(e,t){void 0===t&&(t=0);var n=i(e,t),r=i(e,t+4);return 4294967296*n+r-4294967296*(r>>31)},Te.readUint64BE=function(e,t){return void 0===t&&(t=0),4294967296*o(e,t)+o(e,t+4)},Te.readInt64LE=function(e,t){void 0===t&&(t=0);var n=s(e,t);return 4294967296*s(e,t+4)+n-4294967296*(n>>31)},Te.readUint64LE=function(e,t){void 0===t&&(t=0);var n=a(e,t);return 4294967296*a(e,t+4)+n},Te.writeUint64BE=u,Te.writeInt64BE=u,Te.writeUint64LE=d,Te.writeInt64LE=d,Te.readUintBE=function(e,t,n){if(void 0===n&&(n=0),e%8!=0)throw new Error("readUintBE supports only bitLengths divisible by 8");if(e/8>t.length-n)throw new Error("readUintBE: array is too short for the given bitLength");for(var r=0,i=1,o=e/8+n-1;o>=n;o--)r+=t[o]*i,i*=256;return r},Te.readUintLE=function(e,t,n){if(void 0===n&&(n=0),e%8!=0)throw new Error("readUintLE supports only bitLengths divisible by 8");if(e/8>t.length-n)throw new Error("readUintLE: array is too short for the given bitLength");for(var r=0,i=1,o=n;o<n+e/8;o++)r+=t[o]*i,i*=256;return r},Te.writeUintBE=function(e,n,r,i){if(void 0===r&&(r=new Uint8Array(e/8)),void 0===i&&(i=0),e%8!=0)throw new Error("writeUintBE supports only bitLengths divisible by 8");if(!t.isSafeInteger(n))throw new Error("writeUintBE value must be an integer");for(var o=1,s=e/8+i-1;s>=i;s--)r[s]=n/o&255,o*=256;return r},Te.writeUintLE=function(e,n,r,i){if(void 0===r&&(r=new Uint8Array(e/8)),void 0===i&&(i=0),e%8!=0)throw new Error("writeUintLE supports only bitLengths divisible by 8");if(!t.isSafeInteger(n))throw new Error("writeUintLE value must be an integer");for(var o=1,s=i;s<i+e/8;s++)r[s]=n/o&255,o*=256;return r},Te.readFloat32BE=function(e,t){return void 0===t&&(t=0),new DataView(e.buffer,e.byteOffset,e.byteLength).getFloat32(t)},Te.readFloat32LE=function(e,t){return void 0===t&&(t=0),new DataView(e.buffer,e.byteOffset,e.byteLength).getFloat32(t,!0)},Te.readFloat64BE=function(e,t){return void 0===t&&(t=0),new DataView(e.buffer,e.byteOffset,e.byteLength).getFloat64(t)},Te.readFloat64LE=function(e,t){return void 0===t&&(t=0),new DataView(e.buffer,e.byteOffset,e.byteLength).getFloat64(t,!0)},Te.writeFloat32BE=function(e,t,n){return void 0===t&&(t=new Uint8Array(4)),void 0===n&&(n=0),new DataView(t.buffer,t.byteOffset,t.byteLength).setFloat32(n,e),t},Te.writeFloat32LE=function(e,t,n){return void 0===t&&(t=new Uint8Array(4)),void 0===n&&(n=0),new DataView(t.buffer,t.byteOffset,t.byteLength).setFloat32(n,e,!0),t},Te.writeFloat64BE=function(e,t,n){return void 0===t&&(t=new Uint8Array(8)),void 0===n&&(n=0),new DataView(t.buffer,t.byteOffset,t.byteLength).setFloat64(n,e),t},Te.writeFloat64LE=function(e,t,n){return void 0===t&&(t=new Uint8Array(8)),void 0===n&&(n=0),new DataView(t.buffer,t.byteOffset,t.byteLength).setFloat64(n,e,!0),t},Te}var Ne,Re,Ie={};function Pe(){if(Ne)return Ie;return Ne=1,Object.de