examples.waku.org/relay-angular-chat/main.a4ab7015647e3037.js

1 line
1015 KiB
JavaScript
Raw Normal View History

2023-01-04 20:55:56 +00:00
var fj=Object.defineProperty,dj=(Y,K,R)=>K in Y?fj(Y,K,{enumerable:!0,configurable:!0,writable:!0,value:R}):Y[K]=R,yf=(Y,K,R)=>(dj(Y,"symbol"!=typeof K?K+"":K,R),R),AA=(Y,K,R)=>{if(!K.has(Y))throw TypeError("Cannot "+R)},ra=(Y,K,R)=>(AA(Y,K,"read from private field"),R?R.call(Y):K.get(Y)),Dp=(Y,K,R)=>{if(K.has(Y))throw TypeError("Cannot add the same private member more than once");K instanceof WeakSet?K.add(Y):K.set(Y,R)},bo=(Y,K,R,y)=>(AA(Y,K,"write to private field"),y?y.call(Y,R):K.set(Y,R),R),P_=(Y,K,R,y)=>({set _(l){bo(Y,K,l,R)},get _(){return ra(Y,K,y)}});(self.webpackChunkrelay_angular_chat=self.webpackChunkrelay_angular_chat||[]).push([[179],{1873:(Y,K,R)=>{"use strict";Y.exports=R(4729)},4729:(Y,K,R)=>{"use strict";var y=K;function l(){y.util._configure(),y.Writer._configure(y.BufferWriter),y.Reader._configure(y.BufferReader)}y.build="minimal",y.Writer=R(3542),y.BufferWriter=R(989),y.Reader=R(6913),y.BufferReader=R(1872),y.util=R(6138),y.rpc=R(9852),y.roots=R(935),y.configure=l,l()},6913:(Y,K,R)=>{"use strict";Y.exports=d;var l,y=R(6138),g=y.LongBits,b=y.utf8;function m(E,v){return RangeError("index out of range: "+E.pos+" + "+(v||1)+" > "+E.len)}function d(E){this.buf=E,this.pos=0,this.len=E.length}var v,c=typeof Uint8Array<"u"?function(v){if(v instanceof Uint8Array||Array.isArray(v))return new d(v);throw Error("illegal buffer")}:function(v){if(Array.isArray(v))return new d(v);throw Error("illegal buffer")},f=function(){return y.Buffer?function(h){return(d.create=function(A){return y.Buffer.isBuffer(A)?new l(A):c(A)})(h)}:c};function p(){var E=new g(0,0),v=0;if(!(this.len-this.pos>4)){for(;v<3;++v){if(this.pos>=this.len)throw m(this);if(E.lo=(E.lo|(127&this.buf[this.pos])<<7*v)>>>0,this.buf[this.pos++]<128)return E}return E.lo=(E.lo|(127&this.buf[this.pos++])<<7*v)>>>0,E}for(;v<4;++v)if(E.lo=(E.lo|(127&this.buf[this.pos])<<7*v)>>>0,this.buf[this.pos++]<128)return E;if(E.lo=(E.lo|(127&this.buf[this.pos])<<28)>>>0,E.hi=(E.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return E;if(v=0,this.len-this.pos>4){for(;v<5;++v)if(E.hi=(E.hi|(127&this.buf[this.pos])<<7*v+3)>>>0,this.buf[this.pos++]<128)return E}else for(;v<5;++v){if(this.pos>=this.len)throw m(this);if(E.hi=(E.hi|(127&this.buf[this.pos])<<7*v+3)>>>0,this.buf[this.pos++]<128)return E}throw Error("invalid varint encoding")}function w(E,v){return(E[v-4]|E[v-3]<<8|E[v-2]<<16|E[v-1]<<24)>>>0}function I(){if(this.pos+8>this.len)throw m(this,8);return new g(w(this.buf,this.pos+=4),w(this.buf,this.pos+=4))}d.create=f(),d.prototype._slice=y.Array.prototype.subarray||y.Array.prototype.slice,d.prototype.uint32=(v=4294967295,function(){if(v=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128||(v=(v|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)||(v=(v|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)||(v=(v|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)||(v=(v|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128))return v;if((this.pos+=5)>this.len)throw this.pos=this.len,m(this,10);return v}),d.prototype.int32=function(){return 0|this.uint32()},d.prototype.sint32=function(){var v=this.uint32();return v>>>1^-(1&v)|0},d.prototype.bool=function(){return 0!==this.uint32()},d.prototype.fixed32=function(){if(this.pos+4>this.len)throw m(this,4);return w(this.buf,this.pos+=4)},d.prototype.sfixed32=function(){if(this.pos+4>this.len)throw m(this,4);return 0|w(this.buf,this.pos+=4)},d.prototype.float=function(){if(this.pos+4>this.len)throw m(this,4);var v=y.float.readFloatLE(this.buf,this.pos);return this.pos+=4,v},d.prototype.double=function(){if(this.pos+8>this.len)throw m(this,4);var v=y.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,v},d.prototype.bytes=function(){var v=this.uint32(),h=this.pos,C=this.pos+v;if(C>this.len)throw m(this,v);return this.pos+=v,Array.isArray(this.buf)?this.buf.slice(h,C):h===C?new this.buf.constructor(0):this._slice.call(this.buf,h,C)},d.prototype.string=function(){var v=this.bytes();return b.read(v,0,v.length)},d.prototype.skip=function(v){if("number"==typeof v){if(this.pos+v>this.l