UNPKG

wampy

Version:

Amazingly fast, feature-rich, lightweight WAMP Javascript client (for browser and node.js)

1 lines 93.2 kB
"use strict";var __wampy_all_min__=(()=>{var V0=Object.create;var Zr=Object.defineProperty;var Y0=Object.getOwnPropertyDescriptor;var K0=Object.getOwnPropertyNames;var J0=Object.getPrototypeOf,Z0=Object.prototype.hasOwnProperty;var jf=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,i)=>(typeof require<"u"?require:e)[i]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var Cf=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),$0=(t,e)=>{for(var i in e)Zr(t,i,{get:e[i],enumerable:!0})},W0=(t,e,i,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let x of K0(e))!Z0.call(t,x)&&x!==i&&Zr(t,x,{get:()=>e[x],enumerable:!(n=Y0(e,x))||n.enumerable});return t};var q0=(t,e,i)=>(i=t!=null?V0(J0(t)):{},W0(e||!t||!t.__esModule?Zr(i,"default",{value:t,enumerable:!0}):i,t));var T0=Cf(()=>{"use strict"});var k0=Cf((Vi,Fr)=>{"use strict";(function(t){"use strict";var e=function(f){var o,s=new Float64Array(16);if(f)for(o=0;o<f.length;o++)s[o]=f[o];return s},i=function(){throw new Error("no PRNG")},n=new Uint8Array(16),x=new Uint8Array(32);x[0]=9;var c=e(),d=e([1]),v=e([56129,1]),V=e([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),j=e([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),de=e([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),Q=e([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),Oe=e([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function Be(f,o,s,r){f[o]=s>>24&255,f[o+1]=s>>16&255,f[o+2]=s>>8&255,f[o+3]=s&255,f[o+4]=r>>24&255,f[o+5]=r>>16&255,f[o+6]=r>>8&255,f[o+7]=r&255}function ke(f,o,s,r,l){var S,A=0;for(S=0;S<l;S++)A|=f[o+S]^s[r+S];return(1&A-1>>>8)-1}function Ce(f,o,s,r){return ke(f,o,s,r,16)}function ve(f,o,s,r){return ke(f,o,s,r,32)}function tt(f,o,s,r){for(var l=r[0]&255|(r[1]&255)<<8|(r[2]&255)<<16|(r[3]&255)<<24,S=s[0]&255|(s[1]&255)<<8|(s[2]&255)<<16|(s[3]&255)<<24,A=s[4]&255|(s[5]&255)<<8|(s[6]&255)<<16|(s[7]&255)<<24,M=s[8]&255|(s[9]&255)<<8|(s[10]&255)<<16|(s[11]&255)<<24,D=s[12]&255|(s[13]&255)<<8|(s[14]&255)<<16|(s[15]&255)<<24,G=r[4]&255|(r[5]&255)<<8|(r[6]&255)<<16|(r[7]&255)<<24,K=o[0]&255|(o[1]&255)<<8|(o[2]&255)<<16|(o[3]&255)<<24,me=o[4]&255|(o[5]&255)<<8|(o[6]&255)<<16|(o[7]&255)<<24,Z=o[8]&255|(o[9]&255)<<8|(o[10]&255)<<16|(o[11]&255)<<24,re=o[12]&255|(o[13]&255)<<8|(o[14]&255)<<16|(o[15]&255)<<24,fe=r[8]&255|(r[9]&255)<<8|(r[10]&255)<<16|(r[11]&255)<<24,le=s[16]&255|(s[17]&255)<<8|(s[18]&255)<<16|(s[19]&255)<<24,oe=s[20]&255|(s[21]&255)<<8|(s[22]&255)<<16|(s[23]&255)<<24,ne=s[24]&255|(s[25]&255)<<8|(s[26]&255)<<16|(s[27]&255)<<24,se=s[28]&255|(s[29]&255)<<8|(s[30]&255)<<16|(s[31]&255)<<24,ie=r[12]&255|(r[13]&255)<<8|(r[14]&255)<<16|(r[15]&255)<<24,$=l,H=S,J=A,W=M,X=D,Y=G,U=K,O=me,R=Z,I=re,T=fe,P=le,ee=oe,x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0&255,f[9]=J>>>8&255,f[10]=J>>>16&255,f[11]=J>>>24&255,f[12]=W>>>0&255,f[13]=W>>>8&255,f[14]=W>>>16&255,f[15]=W>>>24&255,f[16]=X>>>0&255,f[17]=X>>>8&255,f[18]=X>>>16&255,f[19]=X>>>24&255,f[20]=Y>>>0&255,f[21]=Y>>>8&255,f[22]=Y>>>16&255,f[23]=Y>>>24&255,f[24]=U>>>0&255,f[25]=U>>>8&255,f[26]=U>>>16&255,f[27]=U>>>24&255,f[28]=O>>>0&255,f[29]=O>>>8&255,f[30]=O>>>16&255,f[31]=O>>>24&255,f[32]=R>>>0&255,f[33]=R>>>8&255,f[34]=R>>>16&255,f[35]=R>>>24&255,f[36]=I>>>0&255,f[37]=I>>>8&255,f[38]=I>>>16&255,f[39]=I>>>24&255,f[40]=T>>>0&255,f[41]=T>>>8&255,f[42]=T>>>16&255,f[43]=T>>>24&255,f[44]=P>>>0&255,f[45]=P>>>8&255,f[46]=P>>>16&255,f[47]=P>>>24&255,f[48]=ee>>>0&255,f[49]=ee>>>8&255,f[50]=ee>>>16&255,f[51]=ee>>>24&255,f[52]=xe>>>0&255,f[53]=xe>>>8&255,f[54]=xe>>>16&255,f[55]=xe>>>24&255,f[56]=ue>>>0&255,f[57]=ue>>>8&255,f[58]=ue>>>16&255,f[59]=ue>>>24&255,f[60]=ce>>>0&255,f[61]=ce>>>8&255,f[62]=ce>>>16&255,f[63]=ce>>>24&255}function gt(f,o,s,r){for(var l=r[0]&255|(r[1]&255)<<8|(r[2]&255)<<16|(r[3]&255)<<24,S=s[0]&255|(s[1]&255)<<8|(s[2]&255)<<16|(s[3]&255)<<24,A=s[4]&255|(s[5]&255)<<8|(s[6]&255)<<16|(s[7]&255)<<24,M=s[8]&255|(s[9]&255)<<8|(s[10]&255)<<16|(s[11]&255)<<24,D=s[12]&255|(s[13]&255)<<8|(s[14]&255)<<16|(s[15]&255)<<24,G=r[4]&255|(r[5]&255)<<8|(r[6]&255)<<16|(r[7]&255)<<24,K=o[0]&255|(o[1]&255)<<8|(o[2]&255)<<16|(o[3]&255)<<24,me=o[4]&255|(o[5]&255)<<8|(o[6]&255)<<16|(o[7]&255)<<24,Z=o[8]&255|(o[9]&255)<<8|(o[10]&255)<<16|(o[11]&255)<<24,re=o[12]&255|(o[13]&255)<<8|(o[14]&255)<<16|(o[15]&255)<<24,fe=r[8]&255|(r[9]&255)<<8|(r[10]&255)<<16|(r[11]&255)<<24,le=s[16]&255|(s[17]&255)<<8|(s[18]&255)<<16|(s[19]&255)<<24,oe=s[20]&255|(s[21]&255)<<8|(s[22]&255)<<16|(s[23]&255)<<24,ne=s[24]&255|(s[25]&255)<<8|(s[26]&255)<<16|(s[27]&255)<<24,se=s[28]&255|(s[29]&255)<<8|(s[30]&255)<<16|(s[31]&255)<<24,ie=r[12]&255|(r[13]&255)<<8|(r[14]&255)<<16|(r[15]&255)<<24,$=l,H=S,J=A,W=M,X=D,Y=G,U=K,O=me,R=Z,I=re,T=fe,P=le,ee=oe,xe=ne,ue=se,ce=ie,u,ye=0;ye<20;ye+=2)u=$+ee|0,X^=u<<7|u>>>25,u=X+$|0,R^=u<<9|u>>>23,u=R+X|0,ee^=u<<13|u>>>19,u=ee+R|0,$^=u<<18|u>>>14,u=Y+H|0,I^=u<<7|u>>>25,u=I+Y|0,xe^=u<<9|u>>>23,u=xe+I|0,H^=u<<13|u>>>19,u=H+xe|0,Y^=u<<18|u>>>14,u=T+U|0,ue^=u<<7|u>>>25,u=ue+T|0,J^=u<<9|u>>>23,u=J+ue|0,U^=u<<13|u>>>19,u=U+J|0,T^=u<<18|u>>>14,u=ce+P|0,W^=u<<7|u>>>25,u=W+ce|0,O^=u<<9|u>>>23,u=O+W|0,P^=u<<13|u>>>19,u=P+O|0,ce^=u<<18|u>>>14,u=$+W|0,H^=u<<7|u>>>25,u=H+$|0,J^=u<<9|u>>>23,u=J+H|0,W^=u<<13|u>>>19,u=W+J|0,$^=u<<18|u>>>14,u=Y+X|0,U^=u<<7|u>>>25,u=U+Y|0,O^=u<<9|u>>>23,u=O+U|0,X^=u<<13|u>>>19,u=X+O|0,Y^=u<<18|u>>>14,u=T+I|0,P^=u<<7|u>>>25,u=P+T|0,R^=u<<9|u>>>23,u=R+P|0,I^=u<<13|u>>>19,u=I+R|0,T^=u<<18|u>>>14,u=ce+ue|0,ee^=u<<7|u>>>25,u=ee+ce|0,xe^=u<<9|u>>>23,u=xe+ee|0,ue^=u<<13|u>>>19,u=ue+xe|0,ce^=u<<18|u>>>14;f[0]=$>>>0&255,f[1]=$>>>8&255,f[2]=$>>>16&255,f[3]=$>>>24&255,f[4]=Y>>>0&255,f[5]=Y>>>8&255,f[6]=Y>>>16&255,f[7]=Y>>>24&255,f[8]=T>>>0&255,f[9]=T>>>8&255,f[10]=T>>>16&255,f[11]=T>>>24&255,f[12]=ce>>>0&255,f[13]=ce>>>8&255,f[14]=ce>>>16&255,f[15]=ce>>>24&255,f[16]=U>>>0&255,f[17]=U>>>8&255,f[18]=U>>>16&255,f[19]=U>>>24&255,f[20]=O>>>0&255,f[21]=O>>>8&255,f[22]=O>>>16&255,f[23]=O>>>24&255,f[24]=R>>>0&255,f[25]=R>>>8&255,f[26]=R>>>16&255,f[27]=R>>>24&255,f[28]=I>>>0&255,f[29]=I>>>8&255,f[30]=I>>>16&255,f[31]=I>>>24&255}function xt(f,o,s,r){tt(f,o,s,r)}function ae(f,o,s,r){gt(f,o,s,r)}var be=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function ct(f,o,s,r,l,S,A){var M=new Uint8Array(16),D=new Uint8Array(64),G,K;for(K=0;K<16;K++)M[K]=0;for(K=0;K<8;K++)M[K]=S[K];for(;l>=64;){for(xt(D,M,A,be),K=0;K<64;K++)f[o+K]=s[r+K]^D[K];for(G=1,K=8;K<16;K++)G=G+(M[K]&255)|0,M[K]=G&255,G>>>=8;l-=64,o+=64,r+=64}if(l>0)for(xt(D,M,A,be),K=0;K<l;K++)f[o+K]=s[r+K]^D[K];return 0}function st(f,o,s,r,l){var S=new Uint8Array(16),A=new Uint8Array(64),M,D;for(D=0;D<16;D++)S[D]=0;for(D=0;D<8;D++)S[D]=r[D];for(;s>=64;){for(xt(A,S,l,be),D=0;D<64;D++)f[o+D]=A[D];for(M=1,D=8;D<16;D++)M=M+(S[D]&255)|0,S[D]=M&255,M>>>=8;s-=64,o+=64}if(s>0)for(xt(A,S,l,be),D=0;D<s;D++)f[o+D]=A[D];return 0}function Ut(f,o,s,r,l){var S=new Uint8Array(32);ae(S,r,l,be);for(var A=new Uint8Array(8),M=0;M<8;M++)A[M]=r[M+16];return st(f,o,s,A,S)}function rt(f,o,s,r,l,S,A){var M=new Uint8Array(32);ae(M,S,A,be);for(var D=new Uint8Array(8),G=0;G<8;G++)D[G]=S[G+16];return ct(f,o,s,r,l,D,M)}var $e=function(f){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;var o,s,r,l,S,A,M,D;o=f[0]&255|(f[1]&255)<<8,this.r[0]=o&8191,s=f[2]&255|(f[3]&255)<<8,this.r[1]=(o>>>13|s<<3)&8191,r=f[4]&255|(f[5]&255)<<8,this.r[2]=(s>>>10|r<<6)&7939,l=f[6]&255|(f[7]&255)<<8,this.r[3]=(r>>>7|l<<9)&8191,S=f[8]&255|(f[9]&255)<<8,this.r[4]=(l>>>4|S<<12)&255,this.r[5]=S>>>1&8190,A=f[10]&255|(f[11]&255)<<8,this.r[6]=(S>>>14|A<<2)&8191,M=f[12]&255|(f[13]&255)<<8,this.r[7]=(A>>>11|M<<5)&8065,D=f[14]&255|(f[15]&255)<<8,this.r[8]=(M>>>8|D<<8)&8191,this.r[9]=D>>>5&127,this.pad[0]=f[16]&255|(f[17]&255)<<8,this.pad[1]=f[18]&255|(f[19]&255)<<8,this.pad[2]=f[20]&255|(f[21]&255)<<8,this.pad[3]=f[22]&255|(f[23]&255)<<8,this.pad[4]=f[24]&255|(f[25]&255)<<8,this.pad[5]=f[26]&255|(f[27]&255)<<8,this.pad[6]=f[28]&255|(f[29]&255)<<8,this.pad[7]=f[30]&255|(f[31]&255)<<8};$e.prototype.blocks=function(f,o,s){for(var r=this.fin?0:2048,l,S,A,M,D,G,K,me,Z,re,fe,le,oe,ne,se,ie,$,H,J,W=this.h[0],X=this.h[1],Y=this.h[2],U=this.h[3],O=this.h[4],R=this.h[5],I=this.h[6],T=this.h[7],P=this.h[8],ee=this.h[9],xe=this.r[0],ue=this.r[1],ce=this.r[2],u=this.r[3],ye=this.r[4],_e=this.r[5],Ue=this.r[6],he=this.r[7],Ee=this.r[8],Ae=this.r[9];s>=16;)l=f[o+0]&255|(f[o+1]&255)<<8,W+=l&8191,S=f[o+2]&255|(f[o+3]&255)<<8,X+=(l>>>13|S<<3)&8191,A=f[o+4]&255|(f[o+5]&255)<<8,Y+=(S>>>10|A<<6)&8191,M=f[o+6]&255|(f[o+7]&255)<<8,U+=(A>>>7|M<<9)&8191,D=f[o+8]&255|(f[o+9]&255)<<8,O+=(M>>>4|D<<12)&8191,R+=D>>>1&8191,G=f[o+10]&255|(f[o+11]&255)<<8,I+=(D>>>14|G<<2)&8191,K=f[o+12]&255|(f[o+13]&255)<<8,T+=(G>>>11|K<<5)&8191,me=f[o+14]&255|(f[o+15]&255)<<8,P+=(K>>>8|me<<8)&8191,ee+=me>>>5|r,Z=0,re=Z,re+=W*xe,re+=X*(5*Ae),re+=Y*(5*Ee),re+=U*(5*he),re+=O*(5*Ue),Z=re>>>13,re&=8191,re+=R*(5*_e),re+=I*(5*ye),re+=T*(5*u),re+=P*(5*ce),re+=ee*(5*ue),Z+=re>>>13,re&=8191,fe=Z,fe+=W*ue,fe+=X*xe,fe+=Y*(5*Ae),fe+=U*(5*Ee),fe+=O*(5*he),Z=fe>>>13,fe&=8191,fe+=R*(5*Ue),fe+=I*(5*_e),fe+=T*(5*ye),fe+=P*(5*u),fe+=ee*(5*ce),Z+=fe>>>13,fe&=8191,le=Z,le+=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,J+=I*u,J+=T*ce,J+=P*ue,J+=ee*xe,Z+=J>>>13,J&=8191,Z=(Z<<2)+Z|0,Z=Z+re|0,re=Z&8191,Z=Z>>>13,fe+=Z,W=re,X=fe,Y=le,U=oe,O=ne,R=se,I=ie,T=$,P=H,ee=J,o+=16,s-=16;this.h[0]=W,this.h[1]=X,this.h[2]=Y,this.h[3]=U,this.h[4]=O,this.h[5]=R,this.h[6]=I,this.h[7]=T,this.h[8]=P,this.h[9]=ee},$e.prototype.finish=function(f,o){var s=new Uint16Array(10),r,l,S,A;if(this.leftover){for(A=this.leftover,this.buffer[A++]=1;A<16;A++)this.buffer[A]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(r=this.h[1]>>>13,this.h[1]&=8191,A=2;A<10;A++)this.h[A]+=r,r=this.h[A]>>>13,this.h[A]&=8191;for(this.h[0]+=r*5,r=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=r,r=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=r,s[0]=this.h[0]+5,r=s[0]>>>13,s[0]&=8191,A=1;A<10;A++)s[A]=this.h[A]+r,r=s[A]>>>13,s[A]&=8191;for(s[9]-=8192,l=(r^1)-1,A=0;A<10;A++)s[A]&=l;for(l=~l,A=0;A<10;A++)this.h[A]=this.h[A]&l|s[A];for(this.h[0]=(this.h[0]|this.h[1]<<13)&65535,this.h[1]=(this.h[1]>>>3|this.h[2]<<10)&65535,this.h[2]=(this.h[2]>>>6|this.h[3]<<7)&65535,this.h[3]=(this.h[3]>>>9|this.h[4]<<4)&65535,this.h[4]=(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14)&65535,this.h[5]=(this.h[6]>>>2|this.h[7]<<11)&65535,this.h[6]=(this.h[7]>>>5|this.h[8]<<8)&65535,this.h[7]=(this.h[8]>>>8|this.h[9]<<5)&65535,S=this.h[0]+this.pad[0],this.h[0]=S&65535,A=1;A<8;A++)S=(this.h[A]+this.pad[A]|0)+(S>>>16)|0,this.h[A]=S&65535;f[o+0]=this.h[0]>>>0&255,f[o+1]=this.h[0]>>>8&255,f[o+2]=this.h[1]>>>0&255,f[o+3]=this.h[1]>>>8&255,f[o+4]=this.h[2]>>>0&255,f[o+5]=this.h[2]>>>8&255,f[o+6]=this.h[3]>>>0&255,f[o+7]=this.h[3]>>>8&255,f[o+8]=this.h[4]>>>0&255,f[o+9]=this.h[4]>>>8&255,f[o+10]=this.h[5]>>>0&255,f[o+11]=this.h[5]>>>8&255,f[o+12]=this.h[6]>>>0&255,f[o+13]=this.h[6]>>>8&255,f[o+14]=this.h[7]>>>0&255,f[o+15]=this.h[7]>>>8&255},$e.prototype.update=function(f,o,s){var r,l;if(this.leftover){for(l=16-this.leftover,l>s&&(l=s),r=0;r<l;r++)this.buffer[this.leftover+r]=f[o+r];if(s-=l,o+=l,this.leftover+=l,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(s>=16&&(l=s-s%16,this.blocks(f,o,l),o+=l,s-=l),s){for(r=0;r<s;r++)this.buffer[this.leftover+r]=f[o+r];this.leftover+=s}};function ot(f,o,s,r,l,S){var A=new $e(S);return A.update(s,r,l),A.finish(f,o),0}function Ot(f,o,s,r,l,S){var A=new Uint8Array(16);return ot(A,0,s,r,l,S),Ce(f,o,A,0)}function Et(f,o,s,r,l){var S;if(s<32)return-1;for(rt(f,0,o,0,s,r,l),ot(f,16,f,32,s-32,f),S=0;S<16;S++)f[S]=0;return 0}function a(f,o,s,r,l){var S,A=new Uint8Array(32);if(s<32||(Ut(A,0,32,r,l),Ot(o,16,o,32,s-32,A)!==0))return-1;for(rt(f,0,o,0,s,r,l),S=0;S<32;S++)f[S]=0;return 0}function _(f,o){var s;for(s=0;s<16;s++)f[s]=o[s]|0}function b(f){var o,s,r=1;for(o=0;o<16;o++)s=f[o]+r+65535,r=Math.floor(s/65536),f[o]=s-r*65536;f[0]+=r-1+37*(r-1)}function g(f,o,s){for(var r,l=~(s-1),S=0;S<16;S++)r=l&(f[S]^o[S]),f[S]^=r,o[S]^=r}function p(f,o){var s,r,l,S=e(),A=e();for(s=0;s<16;s++)A[s]=o[s];for(b(A),b(A),b(A),r=0;r<2;r++){for(S[0]=A[0]-65517,s=1;s<15;s++)S[s]=A[s]-65535-(S[s-1]>>16&1),S[s-1]&=65535;S[15]=A[15]-32767-(S[14]>>16&1),l=S[15]>>16&1,S[14]&=65535,g(A,S,1-l)}for(s=0;s<16;s++)f[2*s]=A[s]&255,f[2*s+1]=A[s]>>8}function k(f,o){var s=new Uint8Array(32),r=new Uint8Array(32);return p(s,f),p(r,o),ve(s,0,r,0)}function L(f){var o=new Uint8Array(32);return p(o,f),o[0]&1}function F(f,o){var s;for(s=0;s<16;s++)f[s]=o[2*s]+(o[2*s+1]<<8);f[15]&=32767}function C(f,o,s){for(var r=0;r<16;r++)f[r]=o[r]+s[r]}function z(f,o,s){for(var r=0;r<16;r++)f[r]=o[r]-s[r]}function te(f,o,s){var r,l,S=0,A=0,M=0,D=0,G=0,K=0,me=0,Z=0,re=0,fe=0,le=0,oe=0,ne=0,se=0,ie=0,$=0,H=0,J=0,W=0,X=0,Y=0,U=0,O=0,R=0,I=0,T=0,P=0,ee=0,xe=0,ue=0,ce=0,u=s[0],ye=s[1],_e=s[2],Ue=s[3],he=s[4],Ee=s[5],Ae=s[6],ze=s[7],Ie=s[8],Pe=s[9],Le=s[10],De=s[11],Ke=s[12],Ge=s[13],He=s[14],Qe=s[15];r=o[0],S+=r*u,A+=r*ye,M+=r*_e,D+=r*Ue,G+=r*he,K+=r*Ee,me+=r*Ae,Z+=r*ze,re+=r*Ie,fe+=r*Pe,le+=r*Le,oe+=r*De,ne+=r*Ke,se+=r*Ge,ie+=r*He,$+=r*Qe,r=o[1],A+=r*u,M+=r*ye,D+=r*_e,G+=r*Ue,K+=r*he,me+=r*Ee,Z+=r*Ae,re+=r*ze,fe+=r*Ie,le+=r*Pe,oe+=r*Le,ne+=r*De,se+=r*Ke,ie+=r*Ge,$+=r*He,H+=r*Qe,r=o[2],M+=r*u,D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38*I,fe+=38*T,le+=38*P,oe+=38*ee,ne+=38*xe,se+=38*ue,ie+=38*ce,l=1,r=S+l+65535,l=Math.floor(r/65536),S=r-l*65536,r=A+l+65535,l=Math.floor(r/65536),A=r-l*65536,r=M+l+65535,l=Math.floor(r/65536),M=r-l*65536,r=D+l+65535,l=Math.floor(r/65536),D=r-l*65536,r=G+l+65535,l=Math.floor(r/65536),G=r-l*65536,r=K+l+65535,l=Math.floor(r/65536),K=r-l*65536,r=me+l+65535,l=Math.floor(r/65536),me=r-l*65536,r=Z+l+65535,l=Math.floor(r/65536),Z=r-l*65536,r=re+l+65535,l=Math.floor(r/65536),re=r-l*65536,r=fe+l+65535,l=Math.floor(r/65536),fe=r-l*65536,r=le+l+65535,l=Math.floor(r/65536),le=r-l*65536,r=oe+l+65535,l=Math.floor(r/65536),oe=r-l*65536,r=ne+l+65535,l=Math.floor(r/65536),ne=r-l*65536,r=se+l+65535,l=Math.floor(r/65536),se=r-l*65536,r=ie+l+65535,l=Math.floor(r/65536),ie=r-l*65536,r=$+l+65535,l=Math.floor(r/65536),$=r-l*65536,S+=l-1+37*(l-1),l=1,r=S+l+65535,l=Math.floor(r/65536),S=r-l*65536,r=A+l+65535,l=Math.floor(r/65536),A=r-l*65536,r=M+l+65535,l=Math.floor(r/65536),M=r-l*65536,r=D+l+65535,l=Math.floor(r/65536),D=r-l*65536,r=G+l+65535,l=Math.floor(r/65536),G=r-l*65536,r=K+l+65535,l=Math.floor(r/65536),K=r-l*65536,r=me+l+65535,l=Math.floor(r/65536),me=r-l*65536,r=Z+l+65535,l=Math.floor(r/65536),Z=r-l*65536,r=re+l+65535,l=Math.floor(r/65536),re=r-l*65536,r=fe+l+65535,l=Math.floor(r/65536),fe=r-l*65536,r=le+l+65535,l=Math.floor(r/65536),le=r-l*65536,r=oe+l+65535,l=Math.floor(r/65536),oe=r-l*65536,r=ne+l+65535,l=Math.floor(r/65536),ne=r-l*65536,r=se+l+65535,l=Math.floor(r/65536),se=r-l*65536,r=ie+l+65535,l=Math.floor(r/65536),ie=r-l*65536,r=$+l+65535,l=Math.floor(r/65536),$=r-l*65536,S+=l-1+37*(l-1),f[0]=S,f[1]=A,f[2]=M,f[3]=D,f[4]=G,f[5]=K,f[6]=me,f[7]=Z,f[8]=re,f[9]=fe,f[10]=le,f[11]=oe,f[12]=ne,f[13]=se,f[14]=ie,f[15]=$}function Ne(f,o){te(f,o,o)}function Bt(f,o){var s=e(),r;for(r=0;r<16;r++)s[r]=o[r];for(r=253;r>=0;r--)Ne(s,s),r!==2&&r!==4&&te(s,s,o);for(r=0;r<16;r++)f[r]=s[r]}function If(f,o){var s=e(),r;for(r=0;r<16;r++)s[r]=o[r];for(r=250;r>=0;r--)Ne(s,s),r!==1&&te(s,s,o);for(r=0;r<16;r++)f[r]=s[r]}function ir(f,o,s){var r=new Uint8Array(32),l=new Float64Array(80),S,A,M=e(),D=e(),G=e(),K=e(),me=e(),Z=e();for(A=0;A<31;A++)r[A]=o[A];for(r[31]=o[31]&127|64,r[0]&=248,F(l,s),A=0;A<16;A++)D[A]=l[A],K[A]=M[A]=G[A]=0;for(M[0]=K[0]=1,A=254;A>=0;--A)S=r[A>>>3]>>>(A&7)&1,g(M,D,S),g(G,K,S),C(me,M,G),z(M,M,G),C(G,D,K),z(D,D,K),Ne(K,me),Ne(Z,M),te(M,G,M),te(G,D,me),C(me,M,G),z(M,M,G),Ne(D,M),z(G,K,Z),te(M,G,v),C(M,M,K),te(G,G,M),te(M,K,Z),te(K,D,l),Ne(D,me),g(M,D,S),g(G,K,S);for(A=0;A<16;A++)l[A+16]=M[A],l[A+32]=G[A],l[A+48]=D[A],l[A+64]=K[A];var re=l.subarray(32),fe=l.subarray(16);return Bt(re,re),te(fe,fe,re),p(f,fe),0}function sr(f,o){return ir(f,o,x)}function Mf(f,o){return i(o,32),sr(f,o)}function or(f,o,s){var r=new Uint8Array(32);return ir(r,s,o),ae(f,n,r,be)}var Tf=Et,P0=a;function L0(f,o,s,r,l,S){var A=new Uint8Array(32);return or(A,l,S),Tf(f,o,s,r,A)}function D0(f,o,s,r,l,S){var A=new Uint8Array(32);return or(A,l,S),P0(f,o,s,r,A)}var kf=[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 Rf(f,o,s,r){for(var l=new Int32Array(16),S=new Int32Array(16),A,M,D,G,K,me,Z,re,fe,le,oe,ne,se,ie,$,H,J,W,X,Y,U,O,R,I,T,P,ee=f[0],xe=f[1],ue=f[2],ce=f[3],u=f[4],ye=f[5],_e=f[6],Ue=f[7],he=o[0],Ee=o[1],Ae=o[2],ze=o[3],Ie=o[4],Pe=o[5],Le=o[6],De=o[7],Ke=0;r>=128;){for(X=0;X<16;X++)Y=8*X+Ke,l[X]=s[Y+0]<<24|s[Y+1]<<16|s[Y+2]<<8|s[Y+3],S[X]=s[Y+4]<<24|s[Y+5]<<16|s[Y+6]<<8|s[Y+7];for(X=0;X<80;X++)if(A=ee,M=xe,D=ue,G=ce,K=u,me=ye,Z=_e,re=Ue,fe=he,le=Ee,oe=Ae,ne=ze,se=Ie,ie=Pe,$=Le,H=De,U=Ue,O=De,R=O&65535,I=O>>>16,T=U&65535,P=U>>>16,U=(u>>>14|Ie<<18)^(u>>>18|Ie<<14)^(Ie>>>9|u<<23),O=(Ie>>>14|u<<18)^(Ie>>>18|u<<14)^(u>>>9|Ie<<23),R+=O&65535,I+=O>>>16,T+=U&65535,P+=U>>>16,U=u&ye^~u&_e,O=Ie&Pe^~Ie&Le,R+=O&65535,I+=O>>>16,T+=U&65535,P+=U>>>16,U=kf[X*2],O=kf[X*2+1],R+=O&65535,I+=O>>>16,T+=U&65535,P+=U>>>16,U=l[X%16],O=S[X%16],R+=O&65535,I+=O>>>16,T+=U&65535,P+=U>>>16,I+=R>>>16,T+=I>>>16,P+=T>>>16,J=T&65535|P<<16,W=R&65535|I<<16,U=J,O=W,R=O&65535,I=O>>>16,T=U&65535,P=U>>>16,U=(ee>>>28|he<<4)^(he>>>2|ee<<30)^(he>>>7|ee<<25),O=(he>>>28|ee<<4)^(ee>>>2|he<<30)^(ee>>>7|he<<25),R+=O&65535,I+=O>>>16,T+=U&65535,P+=U>>>16,U=ee&xe^ee&ue^xe&ue,O=he&Ee^he&Ae^Ee&Ae,R+=O&65535,I+=O>>>16,T+=U&65535,P+=U>>>16,I+=R>>>16,T+=I>>>16,P+=T>>>16,re=T&65535|P<<16,H=R&65535|I<<16,U=G,O=ne,R=O&65535,I=O>>>16,T=U&65535,P=U>>>16,U=J,O=W,R+=O&65535,I+=O>>>16,T+=U&65535,P+=U>>>16,I+=R>>>16,T+=I>>>16,P+=T>>>16,G=T&65535|P<<16,ne=R&65535|I<<16,xe=A,ue=M,ce=D,u=G,ye=K,_e=me,Ue=Z,ee=re,Ee=fe,Ae=le,ze=oe,Ie=ne,Pe=se,Le=ie,De=$,he=H,X%16===15)for(Y=0;Y<16;Y++)U=l[Y],O=S[Y],R=O&65535,I=O>>>16,T=U&65535,P=U>>>16,U=l[(Y+9)%16],O=S[(Y+9)%16],R+=O&65535,I+=O>>>16,T+=U&65535,P+=U>>>16,J=l[(Y+1)%16],W=S[(Y+1)%16],U=(J>>>1|W<<31)^(J>>>8|W<<24)^J>>>7,O=(W>>>1|J<<31)^(W>>>8|J<<24)^(W>>>7|J<<25),R+=O&65535,I+=O>>>16,T+=U&65535,P+=U>>>16,J=l[(Y+14)%16],W=S[(Y+14)%16],U=(J>>>19|W<<13)^(W>>>29|J<<3)^J>>>6,O=(W>>>19|J<<13)^(J>>>29|W<<3)^(W>>>6|J<<26),R+=O&65535,I+=O>>>16,T+=U&65535,P+=U>>>16,I+=R>>>16,T+=I>>>16,P+=T>>>16,l[Y]=T&65535|P<<16,S[Y]=R&65535|I<<16;U=ee,O=he,R=O&65535,I=O>>>16,T=U&65535,P=U>>>16,U=f[0],O=o[0],R+=O&65535,I+=O>>>16,T+=U&65535,P+=U>>>16,I+=R>>>16,T+=I>>>16,P+=T>>>16,f[0]=ee=T&65535|P<<16,o[0]=he=R&65535|I<<16,U=xe,O=Ee,R=O&65535,I=O>>>16,T=U&65535,P=U>>>16,U=f[1],O=o[1],R+=O&65535,I+=O>>>16,T+=U&65535,P+=U>>>16,I+=R>>>16,T+=I>>>16,P+=T>>>16,f[1]=xe=T&65535|P<<16,o[1]=Ee=R&65535|I<<16,U=ue,O=Ae,R=O&65535,I=O>>>16,T=U&65535,P=U>>>16,U=f[2],O=o[2],R+=O&65535,I+=O>>>16,T+=U&65535,P+=U>>>16,I+=R>>>16,T+=I>>>16,P+=T>>>16,f[2]=ue=T&65535|P<<16,o[2]=Ae=R&65535|I<<16,U=ce,O=ze,R=O&65535,I=O>>>16,T=U&65535,P=U>>>16,U=f[3],O=o[3],R+=O&65535,I+=O>>>16,T+=U&65535,P+=U>>>16,I+=R>>>16,T+=I>>>16,P+=T>>>16,f[3]=ce=T&65535|P<<16,o[3]=ze=R&65535|I<<16,U=u,O=Ie,R=O&65535,I=O>>>16,T=U&65535,P=U>>>16,U=f[4],O=o[4],R+=O&65535,I+=O>>>16,T+=U&65535,P+=U>>>16,I+=R>>>16,T+=I>>>16,P+=T>>>16,f[4]=u=T&65535|P<<16,o[4]=Ie=R&65535|I<<16,U=ye,O=Pe,R=O&65535,I=O>>>16,T=U&65535,P=U>>>16,U=f[5],O=o[5],R+=O&65535,I+=O>>>16,T+=U&65535,P+=U>>>16,I+=R>>>16,T+=I>>>16,P+=T>>>16,f[5]=ye=T&65535|P<<16,o[5]=Pe=R&65535|I<<16,U=_e,O=Le,R=O&65535,I=O>>>16,T=U&65535,P=U>>>16,U=f[6],O=o[6],R+=O&65535,I+=O>>>16,T+=U&65535,P+=U>>>16,I+=R>>>16,T+=I>>>16,P+=T>>>16,f[6]=_e=T&65535|P<<16,o[6]=Le=R&65535|I<<16,U=Ue,O=De,R=O&65535,I=O>>>16,T=U&65535,P=U>>>16,U=f[7],O=o[7],R+=O&65535,I+=O>>>16,T+=U&65535,P+=U>>>16,I+=R>>>16,T+=I>>>16,P+=T>>>16,f[7]=Ue=T&65535|P<<16,o[7]=De=R&65535|I<<16,Ke+=128,r-=128}return r}function kt(f,o,s){var r=new Int32Array(8),l=new Int32Array(8),S=new Uint8Array(256),A,M=s;for(r[0]=1779033703,r[1]=3144134277,r[2]=1013904242,r[3]=2773480762,r[4]=1359893119,r[5]=2600822924,r[6]=528734635,r[7]=1541459225,l[0]=4089235720,l[1]=2227873595,l[2]=4271175723,l[3]=1595750129,l[4]=2917565137,l[5]=725511199,l[6]=4215389547,l[7]=327033209,Rf(r,l,o,s),s%=128,A=0;A<s;A++)S[A]=o[M-s+A];for(S[s]=128,s=256-128*(s<112?1:0),S[s-9]=0,Be(S,s-8,M/536870912|0,M<<3),Rf(r,l,S,s),A=0;A<8;A++)Be(f,8*A,r[A],l[A]);return 0}function ar(f,o){var s=e(),r=e(),l=e(),S=e(),A=e(),M=e(),D=e(),G=e(),K=e();z(s,f[1],f[0]),z(K,o[1],o[0]),te(s,s,K),C(r,f[0],f[1]),C(K,o[0],o[1]),te(r,r,K),te(l,f[3],o[3]),te(l,l,j),te(S,f[2],o[2]),C(S,S,S),z(A,r,s),z(M,S,l),C(D,S,l),C(G,r,s),te(f[0],A,M),te(f[1],G,D),te(f[2],D,M),te(f[3],A,G)}function vf(f,o,s){var r;for(r=0;r<4;r++)g(f[r],o[r],s)}function Lr(f,o){var s=e(),r=e(),l=e();Bt(l,o[2]),te(s,o[0],l),te(r,o[1],l),p(f,r),f[31]^=L(s)<<7}function Dr(f,o,s){var r,l;for(_(f[0],c),_(f[1],d),_(f[2],d),_(f[3],c),l=255;l>=0;--l)r=s[l/8|0]>>(l&7)&1,vf(f,o,r),ar(o,f),ar(f,f),vf(f,o,r)}function lr(f,o){var s=[e(),e(),e(),e()];_(s[0],de),_(s[1],Q),_(s[2],d),te(s[3],de,Q),Dr(f,s,o)}function jr(f,o,s){var r=new Uint8Array(64),l=[e(),e(),e(),e()],S;for(s||i(o,32),kt(r,o,32),r[0]&=248,r[31]&=127,r[31]|=64,lr(l,r),Lr(f,l),S=0;S<32;S++)o[S+32]=f[S];return 0}var xr=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 Cr(f,o){var s,r,l,S;for(r=63;r>=32;--r){for(s=0,l=r-32,S=r-12;l<S;++l)o[l]+=s-16*o[r]*xr[l-(r-32)],s=Math.floor((o[l]+128)/256),o[l]-=s*256;o[l]+=s,o[r]=0}for(s=0,l=0;l<32;l++)o[l]+=s-(o[31]>>4)*xr[l],s=o[l]>>8,o[l]&=255;for(l=0;l<32;l++)o[l]-=s*xr[l];for(r=0;r<32;r++)o[r+1]+=o[r]>>8,f[r]=o[r]&255}function Nr(f){var o=new Float64Array(64),s;for(s=0;s<64;s++)o[s]=f[s];for(s=0;s<64;s++)f[s]=0;Cr(f,o)}function Ff(f,o,s,r){var l=new Uint8Array(64),S=new Uint8Array(64),A=new Uint8Array(64),M,D,G=new Float64Array(64),K=[e(),e(),e(),e()];kt(l,r,32),l[0]&=248,l[31]&=127,l[31]|=64;var me=s+64;for(M=0;M<s;M++)f[64+M]=o[M];for(M=0;M<32;M++)f[32+M]=l[32+M];for(kt(A,f.subarray(32),s+32),Nr(A),lr(K,A),Lr(f,K),M=32;M<64;M++)f[M]=r[M];for(kt(S,f,s+64),Nr(S),M=0;M<64;M++)G[M]=0;for(M=0;M<32;M++)G[M]=A[M];for(M=0;M<32;M++)for(D=0;D<32;D++)G[M+D]+=S[M]*l[D];return Cr(f.subarray(32),G),me}function j0(f,o){var s=e(),r=e(),l=e(),S=e(),A=e(),M=e(),D=e();return _(f[2],d),F(f[1],o),Ne(l,f[1]),te(S,l,V),z(l,l,f[2]),C(S,f[2],S),Ne(A,S),Ne(M,A),te(D,M,A),te(s,D,l),te(s,s,S),If(s,s),te(s,s,l),te(s,s,S),te(s,s,S),te(f[0],s,S),Ne(r,f[0]),te(r,r,S),k(r,l)&&te(f[0],f[0],Oe),Ne(r,f[0]),te(r,r,S),k(r,l)?-1:(L(f[0])===o[31]>>7&&z(f[0],c,f[0]),te(f[3],f[0],f[1]),0)}function zr(f,o,s,r){var l,S=new Uint8Array(32),A=new Uint8Array(64),M=[e(),e(),e(),e()],D=[e(),e(),e(),e()];if(s<64||j0(D,r))return-1;for(l=0;l<s;l++)f[l]=o[l];for(l=0;l<32;l++)f[l+32]=r[l];if(kt(A,f,s),Nr(A),Dr(M,D,A),lr(D,o.subarray(32)),ar(M,D),Lr(S,M),s-=64,ve(o,0,S,0)){for(l=0;l<s;l++)f[l]=0;return-1}for(l=0;l<s;l++)f[l]=o[l+64];return s}var Vr=32,cr=24,Zt=32,Ct=16,$t=32,ur=32,Wt=32,qt=32,Yr=32,Pf=cr,C0=Zt,N0=Ct,At=64,Rt=32,Nt=64,Kr=32,Jr=64;t.lowlevel={crypto_core_hsalsa20:ae,crypto_stream_xor:rt,crypto_stream:Ut,crypto_stream_salsa20_xor:ct,crypto_stream_salsa20:st,crypto_onetimeauth:ot,crypto_onetimeauth_verify:Ot,crypto_verify_16:Ce,crypto_verify_32:ve,crypto_secretbox:Et,crypto_secretbox_open:a,crypto_scalarmult:ir,crypto_scalarmult_base:sr,crypto_box_beforenm:or,crypto_box_afternm:Tf,crypto_box:L0,crypto_box_open:D0,crypto_box_keypair:Mf,crypto_hash:kt,crypto_sign:Ff,crypto_sign_keypair:jr,crypto_sign_open:zr,crypto_secretbox_KEYBYTES:Vr,crypto_secretbox_NONCEBYTES:cr,crypto_secretbox_ZEROBYTES:Zt,crypto_secretbox_BOXZEROBYTES:Ct,crypto_scalarmult_BYTES:$t,crypto_scalarmult_SCALARBYTES:ur,crypto_box_PUBLICKEYBYTES:Wt,crypto_box_SECRETKEYBYTES:qt,crypto_box_BEFORENMBYTES:Yr,crypto_box_NONCEBYTES:Pf,crypto_box_ZEROBYTES:C0,crypto_box_BOXZEROBYTES:N0,crypto_sign_BYTES:At,crypto_sign_PUBLICKEYBYTES:Rt,crypto_sign_SECRETKEYBYTES:Nt,crypto_sign_SEEDBYTES:Kr,crypto_hash_BYTES:Jr,gf:e,D:V,L:xr,pack25519:p,unpack25519:F,M:te,A:C,S:Ne,Z:z,pow2523:If,add:ar,set25519:_,modL:Cr,scalarmult:Dr,scalarbase:lr};function Lf(f,o){if(f.length!==Vr)throw new Error("bad key size");if(o.length!==cr)throw new Error("bad nonce size")}function z0(f,o){if(f.length!==Wt)throw new Error("bad public key size");if(o.length!==qt)throw new Error("bad secret key size")}function at(){for(var f=0;f<arguments.length;f++)if(!(arguments[f]instanceof Uint8Array))throw new TypeError("unexpected type, use Uint8Array")}function Df(f){for(var o=0;o<f.length;o++)f[o]=0}t.randomBytes=function(f){var o=new Uint8Array(f);return i(o,f),o},t.secretbox=function(f,o,s){at(f,o,s),Lf(s,o);for(var r=new Uint8Array(Zt+f.length),l=new Uint8Array(r.length),S=0;S<f.length;S++)r[S+Zt]=f[S];return Et(l,r,r.length,o,s),l.subarray(Ct)},t.secretbox.open=function(f,o,s){at(f,o,s),Lf(s,o);for(var r=new Uint8Array(Ct+f.length),l=new Uint8Array(r.length),S=0;S<f.length;S++)r[S+Ct]=f[S];return r.length<32||a(l,r,r.length,o,s)!==0?null:l.subarray(Zt)},t.secretbox.keyLength=Vr,t.secretbox.nonceLength=cr,t.secretbox.overheadLength=Ct,t.scalarMult=function(f,o){if(at(f,o),f.length!==ur)throw new Error("bad n size");if(o.length!==$t)throw new Error("bad p size");var s=new Uint8Array($t);return ir(s,f,o),s},t.scalarMult.base=function(f){if(at(f),f.length!==ur)throw new Error("bad n size");var o=new Uint8Array($t);return sr(o,f),o},t.scalarMult.scalarLength=ur,t.scalarMult.groupElementLength=$t,t.box=function(f,o,s,r){var l=t.box.before(s,r);return t.secretbox(f,o,l)},t.box.before=function(f,o){at(f,o),z0(f,o);var s=new Uint8Array(Yr);return or(s,f,o),s},t.box.after=t.secretbox,t.box.open=function(f,o,s,r){var l=t.box.before(s,r);return t.secretbox.open(f,o,l)},t.box.open.after=t.secretbox.open,t.box.keyPair=function(){var f=new Uint8Array(Wt),o=new Uint8Array(qt);return Mf(f,o),{publicKey:f,secretKey:o}},t.box.keyPair.fromSecretKey=function(f){if(at(f),f.length!==qt)throw new Error("bad secret key size");var o=new Uint8Array(Wt);return sr(o,f),{publicKey:o,secretKey:new Uint8Array(f)}},t.box.publicKeyLength=Wt,t.box.secretKeyLength=qt,t.box.sharedKeyLength=Yr,t.box.nonceLength=Pf,t.box.overheadLength=t.secretbox.overheadLength,t.sign=function(f,o){if(at(f,o),o.length!==Nt)throw new Error("bad secret key size");var s=new Uint8Array(At+f.length);return Ff(s,f,f.length,o),s},t.sign.open=function(f,o){if(at(f,o),o.length!==Rt)throw new Error("bad public key size");var s=new Uint8Array(f.length),r=zr(s,f,f.length,o);if(r<0)return null;for(var l=new Uint8Array(r),S=0;S<l.length;S++)l[S]=s[S];return l},t.sign.detached=function(f,o){for(var s=t.sign(f,o),r=new Uint8Array(At),l=0;l<r.length;l++)r[l]=s[l];return r},t.sign.detached.verify=function(f,o,s){if(at(f,o,s),o.length!==At)throw new Error("bad signature size");if(s.length!==Rt)throw new Error("bad public key size");var r=new Uint8Array(At+f.length),l=new Uint8Array(At+f.length),S;for(S=0;S<At;S++)r[S]=o[S];for(S=0;S<f.length;S++)r[S+At]=f[S];return zr(l,r,r.length,s)>=0},t.sign.keyPair=function(){var f=new Uint8Array(Rt),o=new Uint8Array(Nt);return jr(f,o),{publicKey:f,secretKey:o}},t.sign.keyPair.fromSecretKey=function(f){if(at(f),f.length!==Nt)throw new Error("bad secret key size");for(var o=new Uint8Array(Rt),s=0;s<o.length;s++)o[s]=f[32+s];return{publicKey:o,secretKey:new Uint8Array(f)}},t.sign.keyPair.fromSeed=function(f){if(at(f),f.length!==Kr)throw new Error("bad seed size");for(var o=new Uint8Array(Rt),s=new Uint8Array(Nt),r=0;r<32;r++)s[r]=f[r];return jr(o,s,!0),{publicKey:o,secretKey:s}},t.sign.publicKeyLength=Rt,t.sign.secretKeyLength=Nt,t.sign.seedLength=Kr,t.sign.signatureLength=At,t.hash=function(f){at(f);var o=new Uint8Array(Jr);return kt(o,f,f.length),o},t.hash.hashLength=Jr,t.verify=function(f,o){return at(f,o),f.length===0||o.length===0||f.length!==o.length?!1:ke(f,0,o,0,f.length)===0},t.setPRNG=function(f){i=f},(function(){var f=typeof self<"u"?self.crypto||self.msCrypto:null;if(f&&f.getRandomValues){var o=65536;t.setPRNG(function(s,r){var l,S=new Uint8Array(r);for(l=0;l<r;l+=o)f.getRandomValues(S.subarray(l,l+Math.min(r-l,o)));for(l=0;l<r;l++)s[l]=S[l];Df(S)})}else typeof jf<"u"&&(f=T0(),f&&f.randomBytes&&t.setPRNG(function(s,r){var l,S=f.randomBytes(r);for(l=0;l<r;l++)s[l]=S[l];Df(S)}))})()})(typeof Fr<"u"&&Fr.exports?Fr.exports:self.nacl=self.nacl||{})});var hr=class{protocol="json";isBinary=!1;encode(e){return JSON.stringify(e)}decode(e){return JSON.parse(e)}};var Wr;try{Wr=new TextDecoder}catch{}var N,ht,y=0;var Hf=[],qr=Hf,Xr=0,Me={},we,It,ut=0,bt=0,qe,mt,nt=[],pe,Nf={useRecords:!1,mapsAsObjects:!0},Xt=class{},Hr=new Xt;Hr.name="MessagePack 0xC1";var Mt=!1,Qf=2,zf,Vf,Yf;try{new Function("")}catch{Qf=1/0}var Ft=class t{constructor(e){e&&(e.useRecords===!1&&e.mapsAsObjects===void 0&&(e.mapsAsObjects=!0),e.sequential&&e.trusted!==!1&&(e.trusted=!0,!e.structures&&e.useRecords!=!1&&(e.structures=[],e.maxSharedStructures||(e.maxSharedStructures=0))),e.structures?e.structures.sharedLength=e.structures.length:e.getStructures&&((e.structures=[]).uninitialized=!0,e.structures.sharedLength=0),e.int64AsNumber&&(e.int64AsType="number")),Object.assign(this,e)}unpack(e,i){if(N)return n0(()=>(yr(),this?this.unpack(e,i):t.prototype.unpack.call(Nf,e,i)));!e.buffer&&e.constructor===ArrayBuffer&&(e=typeof Buffer<"u"?Buffer.from(e):new Uint8Array(e)),typeof i=="object"?(ht=i.end||e.length,y=i.start||0):(y=0,ht=i>-1?i:e.length),Xr=0,bt=0,It=null,qr=Hf,qe=null,N=e;try{pe=e.dataView||(e.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength))}catch(n){throw N=null,e instanceof Uint8Array?n:new Error("Source must be a Uint8Array or Buffer but was a "+(e&&typeof e=="object"?e.constructor.name:typeof e))}if(this instanceof t){if(Me=this,this.structures)return we=this.structures,dr(i);(!we||we.length>0)&&(we=[])}else Me=Nf,(!we||we.length>0)&&(we=[]);return dr(i)}unpackMultiple(e,i){let n,x=0;try{Mt=!0;let c=e.length,d=this?this.unpack(e,c):gr.unpack(e,c);if(i){if(i(d,x,y)===!1)return;for(;y<c;)if(x=y,i(dr(),x,y)===!1)return}else{for(n=[d];y<c;)x=y,n.push(dr());return n}}catch(c){throw c.lastPosition=x,c.values=n,c}finally{Mt=!1,yr()}}_mergeStructures(e,i){Vf&&(e=Vf.call(this,e)),e=e||[],Object.isFrozen(e)&&(e=e.map(n=>n.slice(0)));for(let n=0,x=e.length;n<x;n++){let c=e[n];c&&(c.isShared=!0,n>=32&&(c.highByte=n-32>>5))}e.sharedLength=e.length;for(let n in i||[])if(n>=0){let x=e[n],c=i[n];c&&(x&&((e.restoreStructures||(e.restoreStructures=[]))[n]=x),e[n]=c)}return this.structures=e}decode(e,i){return this.unpack(e,i)}};function dr(t){try{if(!Me.trusted&&!Mt){let i=we.sharedLength||0;i<we.length&&(we.length=i)}let e;if(Me.randomAccessStructure&&N[y]<64&&N[y]>=32&&zf?(e=zf(N,y,ht,Me),N=null,!(t&&t.lazy)&&e&&(e=e.toJSON()),y=ht):e=Ve(),qe&&(y=qe.postBundlePosition,qe=null),Mt&&(we.restoreStructures=null),y==ht)we&&we.restoreStructures&&Kf(),we=null,N=null,mt&&(mt=null);else{if(y>ht)throw new Error("Unexpected end of MessagePack data");if(!Mt){let i;try{i=JSON.stringify(e,(n,x)=>typeof x=="bigint"?`${x}n`:x).slice(0,100)}catch(n){i="(JSON view not available "+n+")"}throw new Error("Data read, but end of buffer not reached "+i)}}return e}catch(e){throw we&&we.restoreStructures&&Kf(),yr(),(e instanceof RangeError||e.message.startsWith("Unexpected end of buffer")||y>ht)&&(e.incomplete=!0),e}}function Kf(){for(let t in we.restoreStructures)we[t]=we.restoreStructures[t];we.restoreStructures=null}function Ve(){let t=N[y++];if(t<160)if(t<128){if(t<64)return t;{let e=we[t&63]||Me.getStructures&&e0()[t&63];return e?(e.read||(e.read=Qr(e,t&63)),e.read()):t}}else if(t<144)if(t-=128,Me.mapsAsObjects){let e={};for(let i=0;i<t;i++){let n=r0();n==="__proto__"&&(n="__proto_"),e[n]=Ve()}return e}else{let e=new Map;for(let i=0;i<t;i++)e.set(Ve(),Ve());return e}else{t-=144;let e=new Array(t);for(let i=0;i<t;i++)e[i]=Ve();return Me.freezeData?Object.freeze(e):e}else if(t<192){let e=t-160;if(bt>=y)return It.slice(y-ut,(y+=e)-ut);if(bt==0&&ht<140){let i=e<16?ef(e):t0(e);if(i!=null)return i}return Gr(e)}else{let e;switch(t){case 192:return null;case 193:return qe?(e=Ve(),e>0?qe[1].slice(qe.position1,qe.position1+=e):qe[0].slice(qe.position0,qe.position0-=e)):Hr;case 194:return!1;case 195:return!0;case 196:if(e=N[y++],e===void 0)throw new Error("Unexpected end of buffer");return $r(e);case 197:return e=pe.getUint16(y),y+=2,$r(e);case 198:return e=pe.getUint32(y),y+=4,$r(e);case 199:return vt(N[y++]);case 200:return e=pe.getUint16(y),y+=2,vt(e);case 201:return e=pe.getUint32(y),y+=4,vt(e);case 202:if(e=pe.getFloat32(y),Me.useFloat32>2){let i=pr[(N[y]&127)<<1|N[y+1]>>7];return y+=4,(i*e+(e>0?.5:-.5)>>0)/i}return y+=4,e;case 203:return e=pe.getFloat64(y),y+=8,e;case 204:return N[y++];case 205:return e=pe.getUint16(y),y+=2,e;case 206:return e=pe.getUint32(y),y+=4,e;case 207:return Me.int64AsType==="number"?(e=pe.getUint32(y)*4294967296,e+=pe.getUint32(y+4)):Me.int64AsType==="string"?e=pe.getBigUint64(y).toString():Me.int64AsType==="auto"?(e=pe.getBigUint64(y),e<=BigInt(2)<<BigInt(52)&&(e=Number(e))):e=pe.getBigUint64(y),y+=8,e;case 208:return pe.getInt8(y++);case 209:return e=pe.getInt16(y),y+=2,e;case 210:return e=pe.getInt32(y),y+=4,e;case 211:return Me.int64AsType==="number"?(e=pe.getInt32(y)*4294967296,e+=pe.getUint32(y+4)):Me.int64AsType==="string"?e=pe.getBigInt64(y).toString():Me.int64AsType==="auto"?(e=pe.getBigInt64(y),e>=BigInt(-2)<<BigInt(52)&&e<=BigInt(2)<<BigInt(52)&&(e=Number(e))):e=pe.getBigInt64(y),y+=8,e;case 212:if(e=N[y++],e==114)return Xf(N[y++]&63);{let i=nt[e];if(i)return i.read?(y++,i.read(Ve())):i.noBuffer?(y++,i()):i(N.subarray(y,++y));throw new Error("Unknown extension "+e)}case 213:return e=N[y],e==114?(y++,Xf(N[y++]&63,N[y++])):vt(2);case 214:return vt(4);case 215:return vt(8);case 216:return vt(16);case 217:return e=N[y++],bt>=y?It.slice(y-ut,(y+=e)-ut):G0(e);case 218:return e=pe.getUint16(y),y+=2,bt>=y?It.slice(y-ut,(y+=e)-ut):H0(e);case 219:return e=pe.getUint32(y),y+=4,bt>=y?It.slice(y-ut,(y+=e)-ut):Q0(e);case 220:return e=pe.getUint16(y),y+=2,Zf(e);case 221:return e=pe.getUint32(y),y+=4,Zf(e);case 222:return e=pe.getUint16(y),y+=2,$f(e);case 223:return e=pe.getUint32(y),y+=4,$f(e);default:if(t>=224)return t-256;if(t===void 0){let i=new Error("Unexpected end of MessagePack data");throw i.incomplete=!0,i}throw new Error("Unknown MessagePack token "+t)}}}var X0=/^[a-zA-Z_$][a-zA-Z\d_$]*$/;function Qr(t,e){function i(){if(i.count++>Qf){let x=t.read=new Function("r","return function(){return "+(Me.freezeData?"Object.freeze":"")+"({"+t.map(c=>c==="__proto__"?"__proto_:r()":X0.test(c)?c+":r()":"["+JSON.stringify(c)+"]:r()").join(",")+"})}")(Ve);return t.highByte===0&&(t.read=Jf(e,t.read)),x()}let n={};for(let x=0,c=t.length;x<c;x++){let d=t[x];d==="__proto__"&&(d="__proto_"),n[d]=Ve()}return Me.freezeData?Object.freeze(n):n}return i.count=0,t.highByte===0?Jf(e,i):i}var Jf=(t,e)=>function(){let i=N[y++];if(i===0)return e();let n=t<32?-(t+(i<<5)):t+(i<<5),x=we[n]||e0()[n];if(!x)throw new Error("Record id is not defined for "+n);return x.read||(x.read=Qr(x,t)),x.read()};function e0(){let t=n0(()=>(N=null,Me.getStructures()));return we=Me._mergeStructures(t,we)}var Gr=Gt,G0=Gt,H0=Gt,Q0=Gt;function Gt(t){let e;if(t<16&&(e=ef(t)))return e;if(t>64&&Wr)return Wr.decode(N.subarray(y,y+=t));let i=y+t,n=[];for(e="";y<i;){let x=N[y++];if((x&128)===0)n.push(x);else if((x&224)===192){let c=N[y++]&63,d=(x&31)<<6|c;d<128?n.push(65533):n.push(d)}else if((x&240)===224){let c=N[y++]&63,d=N[y++]&63,v=(x&31)<<12|c<<6|d;v<2048||v>=55296&&v<=57343?n.push(65533):n.push(v)}else if((x&248)===240){let c=N[y++]&63,d=N[y++]&63,v=N[y++]&63,V=(x&7)<<18|c<<12|d<<6|v;V<65536||V>1114111?n.push(65533):(V>65535&&(V-=65536,n.push(V>>>10&1023|55296),V=56320|V&1023),n.push(V))}else n.push(65533);n.length>=4096&&(e+=We.apply(String,n),n.length=0)}return n.length>0&&(e+=We.apply(String,n)),e}function Zf(t){let e=new Array(t);for(let i=0;i<t;i++)e[i]=Ve();return Me.freezeData?Object.freeze(e):e}function $f(t){if(Me.mapsAsObjects){let e={};for(let i=0;i<t;i++){let n=r0();n==="__proto__"&&(n="__proto_"),e[n]=Ve()}return e}else{let e=new Map;for(let i=0;i<t;i++)e.set(Ve(),Ve());return e}}var We=String.fromCharCode;function t0(t){let e=y,i=new Array(t);for(let n=0;n<t;n++){let x=N[y++];if((x&128)>0){y=e;return}i[n]=x}return We.apply(String,i)}function ef(t){if(t<4)if(t<2){if(t===0)return"";{let e=N[y++];if((e&128)>1){y-=1;return}return We(e)}}else{let e=N[y++],i=N[y++];if((e&128)>0||(i&128)>0){y-=2;return}if(t<3)return We(e,i);let n=N[y++];if((n&128)>0){y-=3;return}return We(e,i,n)}else{let e=N[y++],i=N[y++],n=N[y++],x=N[y++];if((e&128)>0||(i&128)>0||(n&128)>0||(x&128)>0){y-=4;return}if(t<6){if(t===4)return We(e,i,n,x);{let c=N[y++];if((c&128)>0){y-=5;return}return We(e,i,n,x,c)}}else if(t<8){let c=N[y++],d=N[y++];if((c&128)>0||(d&128)>0){y-=6;return}if(t<7)return We(e,i,n,x,c,d);let v=N[y++];if((v&128)>0){y-=7;return}return We(e,i,n,x,c,d,v)}else{let c=N[y++],d=N[y++],v=N[y++],V=N[y++];if((c&128)>0||(d&128)>0||(v&128)>0||(V&128)>0){y-=8;return}if(t<10){if(t===8)return We(e,i,n,x,c,d,v,V);{let j=N[y++];if((j&128)>0){y-=9;return}return We(e,i,n,x,c,d,v,V,j)}}else if(t<12){let j=N[y++],de=N[y++];if((j&128)>0||(de&128)>0){y-=10;return}if(t<11)return We(e,i,n,x,c,d,v,V,j,de);let Q=N[y++];if((Q&128)>0){y-=11;return}return We(e,i,n,x,c,d,v,V,j,de,Q)}else{let j=N[y++],de=N[y++],Q=N[y++],Oe=N[y++];if((j&128)>0||(de&128)>0||(Q&128)>0||(Oe&128)>0){y-=12;return}if(t<14){if(t===12)return We(e,i,n,x,c,d,v,V,j,de,Q,Oe);{let Be=N[y++];if((Be&128)>0){y-=13;return}return We(e,i,n,x,c,d,v,V,j,de,Q,Oe,Be)}}else{let Be=N[y++],ke=N[y++];if((Be&128)>0||(ke&128)>0){y-=14;return}if(t<15)return We(e,i,n,x,c,d,v,V,j,de,Q,Oe,Be,ke);let Ce=N[y++];if((Ce&128)>0){y-=15;return}return We(e,i,n,x,c,d,v,V,j,de,Q,Oe,Be,ke,Ce)}}}}}function Wf(){let t=N[y++],e;if(t<192)e=t-160;else switch(t){case 217:e=N[y++];break;case 218:e=pe.getUint16(y),y+=2;break;case 219:e=pe.getUint32(y),y+=4;break;default:throw new Error("Expected string")}return Gt(e)}function $r(t){return Me.copyBuffers?Uint8Array.prototype.slice.call(N,y,y+=t):N.subarray(y,y+=t)}function vt(t){let e=N[y++];if(nt[e]){let i;return nt[e](N.subarray(y,i=y+=t),n=>{y=n;try{return Ve()}finally{y=i}})}else throw new Error("Unknown extension type "+e)}var qf=new Array(4096);function r0(){let t=N[y++];if(t>=160&&t<192){if(t=t-160,bt>=y)return It.slice(y-ut,(y+=t)-ut);if(!(bt==0&&ht<180))return Gr(t)}else return y--,f0(Ve());let e=(t<<5^(t>1?pe.getUint16(y):t>0?N[y]:0))&4095,i=qf[e],n=y,x=y+t-3,c,d=0;if(i&&i.bytes==t){for(;n<x;){if(c=pe.getUint32(n),c!=i[d++]){n=1879048192;break}n+=4}for(x+=3;n<x;)if(c=N[n++],c!=i[d++]){n=1879048192;break}if(n===x)return y=n,i.string;x-=3,n=y}for(i=[],qf[e]=i,i.bytes=t;n<x;)c=pe.getUint32(n),i.push(c),n+=4;for(x+=3;n<x;)c=N[n++],i.push(c);let v=t<16?ef(t):t0(t);return v!=null?i.string=v:i.string=Gr(t)}function f0(t){if(typeof t=="string")return t;if(typeof t=="number"||typeof t=="boolean"||typeof t=="bigint")return t.toString();if(t==null)return t+"";if(Me.allowArraysInMapKeys&&Array.isArray(t)&&t.flat().every(e=>["string","number","boolean","bigint"].includes(typeof e)))return t.flat().toString();throw new Error(`Invalid property type for record: ${typeof t}`)}var Xf=(t,e)=>{let i=Ve().map(f0),n=t;e!==void 0&&(t=t<32?-((e<<5)+t):(e<<5)+t,i.highByte=e);let x=we[t];return x&&(x.isShared||Mt)&&((we.restoreStructures||(we.restoreStructures=[]))[t]=x),we[t]=i,i.read=Qr(i,n),i.read()};nt[0]=()=>{};nt[0].noBuffer=!0;nt[66]=t=>{let e=t.byteLength%8||8,i=BigInt(t[0]&128?t[0]-256:t[0]);for(let n=1;n<e;n++)i<<=BigInt(8),i+=BigInt(t[n]);if(t.byteLength!==e){let n=new DataView(t.buffer,t.byteOffset,t.byteLength),x=(c,d)=>{let v=d-c;if(v<=40){let Q=n.getBigUint64(c);for(let Oe=c+8;Oe<d;Oe+=8)Q<<=64n,Q|=n.getBigUint64(Oe);return Q}let V=c+(v>>4<<3),j=x(c,V),de=x(V,d);return j<<BigInt((d-V)*8)|de};i=i<<BigInt((n.byteLength-e)*8)|x(e,n.byteLength)}return i};var Gf={Error,EvalError,RangeError,ReferenceError,SyntaxError,TypeError,URIError,AggregateError:typeof AggregateError=="function"?AggregateError:null};nt[101]=()=>{let t=Ve();if(!Gf[t[0]]){let e=Error(t[1],{cause:t[2]});return e.name=t[0],e}return Gf[t[0]](t[1],{cause:t[2]})};nt[105]=t=>{if(Me.structuredClone===!1)throw new Error("Structured clone extension is disabled");let e=pe.getUint32(y-4);mt||(mt=new Map);let i=N[y],n;i>=144&&i<160||i==220||i==221?n=[]:i>=128&&i<144||i==222||i==223?n=new Map:(i>=199&&i<=201||i>=212&&i<=216)&&N[y+1]===115?n=new Set:n={};let x={target:n};mt.set(e,x);let c=Ve();if(x.used)Object.assign(n,c);else return x.target=c;if(n instanceof Map)for(let[d,v]of c.entries())n.set(d,v);if(n instanceof Set)for(let d of Array.from(c))n.add(d);return n};nt[112]=t=>{if(Me.structuredClone===!1)throw new Error("Structured clone extension is disabled");let e=pe.getUint32(y-4),i=mt.get(e);return i.used=!0,i.target};nt[115]=()=>new Set(Ve());var tf=["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64","BigInt64","BigUint64"].map(t=>t+"Array"),en=typeof globalThis=="object"?globalThis:window;nt[116]=t=>{let e=t[0],i=Uint8Array.prototype.slice.call(t,1).buffer,n=tf[e];if(!n){if(e===16)return i;if(e===17)return new DataView(i);throw new Error("Could not find typed array for code "+e)}return new en[n](i)};nt[120]=()=>{let t=Ve();return new RegExp(t[0],t[1])};var tn=[];nt[98]=t=>{let e=(t[0]<<24)+(t[1]<<16)+(t[2]<<8)+t[3],i=y;return y+=e-t.length,qe=tn,qe=[Wf(),Wf()],qe.position0=0,qe.position1=0,qe.postBundlePosition=y,y=i,Ve()};nt[255]=t=>t.length==4?new Date((t[0]*16777216+(t[1]<<16)+(t[2]<<8)+t[3])*1e3):t.length==8?new Date(((t[0]<<22)+(t[1]<<14)+(t[2]<<6)+(t[3]>>2))/1e6+((t[3]&3)*4294967296+t[4]*16777216+(t[5]<<16)+(t[6]<<8)+t[7])*1e3):t.length==12?new Date(((t[0]<<24)+(t[1]<<16)+(t[2]<<8)+t[3])/1e6+((t[4]&128?-281474976710656:0)+t[6]*1099511627776+t[7]*4294967296+t[8]*16777216+(t[9]<<16)+(t[10]<<8)+t[11])*1e3):new Date("invalid");function n0(t){Yf&&Yf();let e=ht,i=y,n=Xr,x=ut,c=bt,d=It,v=qr,V=mt,j=qe,de=new Uint8Array(N.slice(0,ht)),Q=we,Oe=we.slice(0,we.length),Be=Me,ke=Mt,Ce=t();return ht=e,y=i,Xr=n,ut=x,bt=c,It=d,qr=v,mt=V,qe=j,N=de,Mt=ke,we=Q,we.splice(0,we.length,...Oe),Me=Be,pe=new DataView(N.buffer,N.byteOffset,N.byteLength),Ce}function yr(){N=null,mt=null,we=null}var pr=new Array(147);for(let t=0;t<256;t++)pr[t]=+("1e"+Math.floor(45.15-t*.30103));var gr=new Ft({useRecords:!1}),rf=gr.unpack,rn=gr.unpackMultiple,fn=gr.unpack,br={NEVER:0,ALWAYS:1,DECIMAL_ROUND:3,DECIMAL_FIT:4},nn=new Float32Array(1),Wn=new Uint8Array(nn.buffer,0,4);var Sr;try{Sr=new TextEncoder}catch{}var sf,of,Vt=typeof Buffer<"u",wr=Vt?function(t){return Buffer.allocUnsafeSlow(t)}:Uint8Array,a0=Vt?Buffer:Uint8Array,i0=Vt?4294967296:2144337920,m,Ht,Te,w=0,et,Fe=null,sn,on=21760,an=/[\u0080-\uFFFF]/,zt=Symbol("record-id"),Qt=class extends Ft{constructor(e){super(e),this.offset=0;let i,n,x,c,d,v=a0.prototype.utf8Write?function(a,_){return m.utf8Write(a,_,m.byteLength-_)}:Sr&&Sr.encodeInto?function(a,_){return Sr.encodeInto(a,m.subarray(_)).written}:!1,V=this;e||(e={});let j=e&&e.sequential,de=e.structures||e.saveStructures,Q=e.maxSharedStructures;if(Q==null&&(Q=de?32:0),Q>8160)throw new Error("Maximum maxSharedStructure is 8160");e.structuredClone&&e.moreTypes==null&&(this.moreTypes=!0);let Oe=e.maxOwnStructures;Oe==null&&(Oe=de?32:64),!this.structures&&e.useRecords!=!1&&(this.structures=[]);let Be=Q>32||Oe+Q>64,ke=Q+64,Ce=Q+Oe+64;if(Ce>8256)throw new Error("Maximum maxSharedStructure + maxOwnStructure is 8192");let ve=[],tt=0,gt=0;this.pack=this.encode=function(a,_){if(m||(m=new wr(8192),Te=m.dataView||(m.dataView=new DataView(m.buffer,0,8192)),w=0),et=m.length-10,et-w<2048?(m=new wr(m.length),Te=m.dataView||(m.dataView=new DataView(m.buffer,0,m.length)),et=m.length-10,w=0):w=w+7&2147483640,n=w,_&u0&&(w+=_&255),d=V.structuredClone?new Map:null,V.bundleStrings&&typeof a!="string"?(Fe=[],Fe.size=1/0):Fe=null,c=V.structures,c){c.uninitialized&&