element-web-synapse01pim.gr.jp

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

3912.js (137543B)


      1 "use strict";(self.webpackChunkelement_web=self.webpackChunkelement_web||[]).push([[3912],{"../../node_modules/.pnpm/@matrix-org+matrix-sdk-crypto-wasm@18.3.1/node_modules/@matrix-org/matrix-sdk-crypto-wasm/index-wasm-esm.mjs"(e,t,r){r.d(t,{BVS:()=>_.BVS,BZT:()=>_.BZT,CvR:()=>_.CvR,ENy:()=>_.ENy,EZX:()=>_.EZX,Fff:()=>_.Fff,GYR:()=>_.GYR,HmP:()=>_.HmP,JJE:()=>_.JJE,JvM:()=>_.JvM,K_K:()=>_.K_K,Kj7:()=>_.Kj7,LRK:()=>_.LRK,Nhn:()=>_.Nhn,OMe:()=>_.OMe,Qr:()=>_.Qr,QvV:()=>_.QvV,Rjy:()=>_.Rjy,SG1:()=>_.SG1,TCc:()=>_.TCc,U3i:()=>_.U3i,UMe:()=>_.UMe,VFM:()=>_.VFM,VvS:()=>_.VvS,W9F:()=>_.W9F,XlD:()=>_.XlD,YFH:()=>_.YFH,Yg7:()=>_.Yg7,_rJ:()=>_._rJ,bCf:()=>_.bCf,c55:()=>_.c55,cGL:()=>_.cGL,cSE:()=>_.cSE,dFo:()=>_.dFo,dNT:()=>_.dNT,dUx:()=>_.dUx,fPF:()=>_.fPF,gAt:()=>_.gAt,gPr:()=>_.gPr,ggh:()=>_.ggh,initAsync:()=>i,kZZ:()=>_.kZZ,lRJ:()=>_.lRJ,liC:()=>_.liC,rzz:()=>_.rzz,u_L:()=>_.u_L,wJu:()=>_.wJu,xqv:()=>_.xqv,y1:()=>_.y1});var _=r("../../node_modules/.pnpm/@matrix-org+matrix-sdk-crypto-wasm@18.3.1/node_modules/@matrix-org/matrix-sdk-crypto-wasm/pkg/matrix_sdk_crypto_wasm_bg.js");_.lIU(new Proxy({},{get(){throw new Error("@matrix-org/matrix-sdk-crypto-wasm was used before it was initialized. Call `initAsync` first.")}}));let n=null;async function i(){n||(n=async function(){const e=await r.e(3961).then(r.bind(r,"../../node_modules/.pnpm/@matrix-org+matrix-sdk-crypto-wasm@18.3.1/node_modules/@matrix-org/matrix-sdk-crypto-wasm/pkg/matrix_sdk_crypto_wasm_bg.wasm"));_.lIU(e),e.__wbindgen_start()}()),await n}},"../../node_modules/.pnpm/@matrix-org+matrix-sdk-crypto-wasm@18.3.1/node_modules/@matrix-org/matrix-sdk-crypto-wasm/pkg/matrix_sdk_crypto_wasm_bg.js"(e,t,r){r.d(t,{$0D:()=>Er,$Qm:()=>gr,$Uo:()=>Ii,$vK:()=>Br,AC1:()=>l_,AR$:()=>Ct,AV3:()=>or,B8b:()=>i_,BVS:()=>Se,BZA:()=>Vn,BZT:()=>oe,Ben:()=>Tt,ByL:()=>ni,C5t:()=>mr,CUi:()=>Zn,CeR:()=>Ar,Cp7:()=>z_,CvR:()=>fe,DJD:()=>Ir,DL0:()=>dr,DNy:()=>li,DzP:()=>c_,EMz:()=>Fr,ENy:()=>_e,EZX:()=>p,Fff:()=>f,Fl2:()=>I_,FxK:()=>ut,G0e:()=>Ki,GYR:()=>g,Gcq:()=>At,Gg9:()=>nt,GhL:()=>hi,Gnp:()=>Pr,GyW:()=>M_,HmP:()=>se,I0w:()=>nr,IAB:()=>Dr,IQE:()=>Vt,IVi:()=>Kr,IXq:()=>Tn,IcO:()=>A_,JJE:()=>de,JhH:()=>$r,Jsh:()=>an,JvM:()=>A,JwY:()=>p_,K9U:()=>Gt,KK4:()=>vr,KS$:()=>C_,K_K:()=>I,Kj7:()=>Ce,KlT:()=>Ur,LHu:()=>ti,LMr:()=>Ot,LRK:()=>G,LnW:()=>An,M$G:()=>rn,M4o:()=>st,M7n:()=>ci,MA9:()=>Gn,MdI:()=>ar,NCs:()=>zi,NRA:()=>mi,NUd:()=>Ft,NUn:()=>Vr,NXl:()=>Ln,Nhn:()=>Y,Nvi:()=>_r,Nwh:()=>Zr,O7q:()=>Sn,OMe:()=>Q,ONF:()=>Cr,OVP:()=>xr,OV_:()=>Mr,OsJ:()=>ur,P2w:()=>pn,P7e:()=>un,P8Q:()=>S_,P8U:()=>cn,PNS:()=>Hn,PRo:()=>H_,PSp:()=>bt,PUW:()=>Ri,PX4:()=>br,PXH:()=>sr,Pmv:()=>ct,QK_:()=>fi,QT5:()=>n_,QU2:()=>sn,Qjz:()=>tr,Qr:()=>ue,QvV:()=>Ae,R1e:()=>_t,R6h:()=>ot,RFn:()=>Hr,RH9:()=>Pt,Rjy:()=>$,Rry:()=>ai,S1k:()=>di,SCd:()=>d_,SG1:()=>C,SSN:()=>dn,SdA:()=>m_,Sgj:()=>fr,Szd:()=>Nt,TCc:()=>De,TLm:()=>rt,TR9:()=>j_,Tmr:()=>Bt,Tu9:()=>kr,U3i:()=>we,U7z:()=>N_,U8S:()=>Un,UIC:()=>qr,UMe:()=>Ke,UNv:()=>yn,UPr:()=>Wt,UWo:()=>q_,UX:()=>g_,U_B:()=>vi,UeG:()=>Fi,V2T:()=>f_,V6o:()=>xt,VFK:()=>ft,VFM:()=>$e,VcP:()=>Rt,Vu9:()=>D_,VvS:()=>Xe,Vx8:()=>zr,W9F:()=>re,WAr:()=>o_,WDC:()=>e_,WN_:()=>Sr,WaR:()=>Zt,WwH:()=>gt,Ww_:()=>ki,XFw:()=>wr,XXV:()=>Xr,Xdl:()=>Yr,Xfo:()=>Jt,XlD:()=>E,Y56:()=>L_,YBS:()=>Wr,YDI:()=>kt,YFH:()=>S,YNk:()=>kn,YNz:()=>$_,Yg7:()=>Z,YqZ:()=>Yt,Z2Q:()=>w_,ZK5:()=>jn,Zl1:()=>xn,ZmE:()=>it,ZsT:()=>jr,ZyG:()=>Ht,_$y:()=>on,_BU:()=>W_,_Hu:()=>s_,_Ms:()=>zn,_f6:()=>ri,_pA:()=>J_,_rJ:()=>F,_zD:()=>t_,a5F:()=>Kn,aAe:()=>St,aVo:()=>Qr,a_M:()=>jt,adF:()=>zt,agF:()=>__,aro:()=>Ut,b$l:()=>Si,b90:()=>Pn,b9X:()=>r_,bCf:()=>Ne,bLn:()=>Ci,bMh:()=>Y_,bVE:()=>Qt,bWd:()=>qi,bpg:()=>at,c55:()=>J,c5U:()=>T_,c7l:()=>ir,cGL:()=>ie,cSE:()=>tt,cZ$:()=>wi,cZ8:()=>x_,c_8:()=>Nr,dFo:()=>le,dGt:()=>b_,dNT:()=>me,dSy:()=>_i,dUx:()=>ye,dnJ:()=>Rn,dxv:()=>ii,e$o:()=>er,eHC:()=>rr,ehV:()=>lr,esQ:()=>Xn,f53:()=>yi,fOM:()=>si,fPF:()=>m,fPp:()=>Rr,fQT:()=>fn,fSe:()=>Kt,fTm:()=>Wn,gAt:()=>Ue,gDt:()=>Et,gI1:()=>Lr,gPr:()=>Be,gTZ:()=>In,gZc:()=>Q_,gbI:()=>G_,ggh:()=>Ye,h1e:()=>ln,h5U:()=>$n,het:()=>P_,hlQ:()=>hn,hxw:()=>Z_,iFG:()=>R_,iwF:()=>U_,jM1:()=>oi,jaZ:()=>ht,jw8:()=>Dt,jwX:()=>a_,kVE:()=>cr,kZZ:()=>Ge,kbZ:()=>vn,kwv:()=>wt,l3T:()=>pr,l8K:()=>bn,lIU:()=>Xo,lRJ:()=>Ie,lS2:()=>Nn,lcG:()=>lt,lfw:()=>It,liC:()=>B,lz0:()=>nn,mTJ:()=>O_,mXs:()=>k_,mh9:()=>Mn,n30:()=>E_,nR4:()=>bi,okY:()=>_n,olR:()=>ei,pL3:()=>vt,pQh:()=>qn,phJ:()=>gn,pqM:()=>pi,ptE:()=>gi,q$A:()=>Qn,q6s:()=>Jn,qEM:()=>F_,qTh:()=>On,qf2:()=>wn,qiI:()=>B_,r67:()=>En,rXi:()=>Tr,rwk:()=>h_,rz_:()=>yt,rzz:()=>Ee,s6u:()=>dt,s7E:()=>Jr,sEv:()=>v_,sjH:()=>$t,sjv:()=>V_,tQd:()=>ui,tph:()=>tn,u3I:()=>mt,u4h:()=>Yn,u94:()=>Mt,uKm:()=>y_,uXy:()=>hr,u_L:()=>W,ubw:()=>Cn,v8T:()=>mn,w3n:()=>Lt,w6L:()=>Or,wDP:()=>Fn,wJu:()=>We,wV0:()=>Dn,wX3:()=>Xt,w_1:()=>K_,wv$:()=>X_,x5q:()=>en,xqv:()=>n,y1:()=>M,y5t:()=>yr,y7L:()=>Bn,z0n:()=>u_,z3Y:()=>qt,zxp:()=>Gr,zy6:()=>pt});class _{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,xi.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_attachment_free(e,0)}static decrypt(e){zo(e,j);const t=Go.attachment_decrypt(e.__wbg_ptr);if(t[3])throw No(t[2]);var r=Co(t[0],t[1]).slice();return Go.__wbindgen_free(t[0],1*t[1],1),r}static encrypt(e){const t=Ao(e,Go.__wbindgen_malloc),r=Zo,_=Go.attachment_encrypt(t,r);if(_[2])throw No(_[1]);return j.__wrap(_[0])}}Symbol.dispose&&(_.prototype[Symbol.dispose]=_.prototype.free);class n{static __wrap(e){const t=Object.create(n.prototype);return t.__wbg_ptr=e,Mi.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Mi.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_backupdecryptionkey_free(e,0)}static createRandomKey(){const e=Go.backupdecryptionkey_createRandomKey();return n.__wrap(e)}decryptV1(e,t,r){let _,n;try{const o=Po(e,Go.__wbindgen_malloc,Go.__wbindgen_realloc),g=Zo,a=Po(t,Go.__wbindgen_malloc,Go.__wbindgen_realloc),c=Zo,p=Po(r,Go.__wbindgen_malloc,Go.__wbindgen_realloc),w=Zo,d=Go.backupdecryptionkey_decryptV1(this.__wbg_ptr,o,g,a,c,p,w);var i=d[0],s=d[1];if(d[3])throw i=0,s=0,No(d[2]);return _=i,n=s,Do(i,s)}finally{Go.__wbindgen_free(_,n,1)}}static fromBase64(e){const t=Po(e,Go.__wbindgen_malloc,Go.__wbindgen_realloc),r=Zo,_=Go.backupdecryptionkey_fromBase64(t,r);if(_[2])throw No(_[1]);return n.__wrap(_[0])}get megolmV1PublicKey(){const e=Go.backupdecryptionkey_megolmV1PublicKey(this.__wbg_ptr);return H.__wrap(e)}toBase64(){return Go.backupdecryptionkey_toBase64(this.__wbg_ptr)}}Symbol.dispose&&(n.prototype[Symbol.dispose]=n.prototype.free);class i{static __wrap(e){const t=Object.create(i.prototype);return t.__wbg_ptr=e,Ai.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Ai.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_backupkeys_free(e,0)}get decryptionKeyBase64(){return Go.backupkeys_decryptionKeyBase64(this.__wbg_ptr)}get backupVersion(){const e=Go.__wbg_get_backupkeys_backupVersion(this.__wbg_ptr);let t;return 0!==e[0]&&(t=Do(e[0],e[1]).slice(),Go.__wbindgen_free(e[0],1*e[1],1)),t}get decryptionKey(){const e=Go.__wbg_get_backupkeys_decryptionKey(this.__wbg_ptr);return 0===e?void 0:n.__wrap(e)}set backupVersion(e){var t=xo(e)?0:Po(e,Go.__wbindgen_malloc,Go.__wbindgen_realloc),r=Zo;Go.__wbg_set_backupkeys_backupVersion(this.__wbg_ptr,t,r)}set decryptionKey(e){let t=0;xo(e)||(zo(e,n),t=e.__destroy_into_raw()),Go.__wbg_set_backupkeys_decryptionKey(this.__wbg_ptr,t)}}Symbol.dispose&&(i.prototype[Symbol.dispose]=i.prototype.free);class s{static __wrap(e){const t=Object.create(s.prototype);return t.__wbg_ptr=e,Ti.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Ti.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_backupsecretsbundle_free(e,0)}get backup_version(){let e,t;try{const r=Go.__wbg_get_backupsecretsbundle_backup_version(this.__wbg_ptr);return e=r[0],t=r[1],Do(r[0],r[1])}finally{Go.__wbindgen_free(e,t,1)}}get key(){let e,t;try{const r=Go.__wbg_get_backupsecretsbundle_key(this.__wbg_ptr);return e=r[0],t=r[1],Do(r[0],r[1])}finally{Go.__wbindgen_free(e,t,1)}}set backup_version(e){const t=Po(e,Go.__wbindgen_malloc,Go.__wbindgen_realloc),r=Zo;Go.__wbg_set_backupsecretsbundle_backup_version(this.__wbg_ptr,t,r)}set key(e){const t=Po(e,Go.__wbindgen_malloc,Go.__wbindgen_realloc),r=Zo;Go.__wbg_set_backupsecretsbundle_key(this.__wbg_ptr,t,r)}}Symbol.dispose&&(s.prototype[Symbol.dispose]=s.prototype.free);class o{static __wrap(e){const t=Object.create(o.prototype);return t.__wbg_ptr=e,Pi.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Pi.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_base64encodedpkmessage_free(e,0)}constructor(e,t,r){const _=Po(e,Go.__wbindgen_malloc,Go.__wbindgen_realloc),n=Zo,i=Po(t,Go.__wbindgen_malloc,Go.__wbindgen_realloc),s=Zo,o=Po(r,Go.__wbindgen_malloc,Go.__wbindgen_realloc),g=Zo,a=Go.base64encodedpkmessage_new(_,n,i,s,o,g);return this.__wbg_ptr=a,Pi.register(this,this.__wbg_ptr,this),this}get ciphertext(){let e,t;try{const r=Go.__wbg_get_base64encodedpkmessage_ciphertext(this.__wbg_ptr);return e=r[0],t=r[1],Do(r[0],r[1])}finally{Go.__wbindgen_free(e,t,1)}}get ephemeralKey(){let e,t;try{const r=Go.__wbg_get_base64encodedpkmessage_ephemeralKey(this.__wbg_ptr);return e=r[0],t=r[1],Do(r[0],r[1])}finally{Go.__wbindgen_free(e,t,1)}}get mac(){let e,t;try{const r=Go.__wbg_get_base64encodedpkmessage_mac(this.__wbg_ptr);return e=r[0],t=r[1],Do(r[0],r[1])}finally{Go.__wbindgen_free(e,t,1)}}set ciphertext(e){const t=Po(e,Go.__wbindgen_malloc,Go.__wbindgen_realloc),r=Zo;Go.__wbg_set_base64encodedpkmessage_ciphertext(this.__wbg_ptr,t,r)}set ephemeralKey(e){const t=Po(e,Go.__wbindgen_malloc,Go.__wbindgen_realloc),r=Zo;Go.__wbg_set_base64encodedpkmessage_ephemeralKey(this.__wbg_ptr,t,r)}set mac(e){const t=Po(e,Go.__wbindgen_malloc,Go.__wbindgen_realloc),r=Zo;Go.__wbg_set_base64encodedpkmessage_mac(this.__wbg_ptr,t,r)}}Symbol.dispose&&(o.prototype[Symbol.dispose]=o.prototype.free);class g{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Ni.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_basemigrationdata_free(e,0)}constructor(){const e=Go.basemigrationdata_new();return this.__wbg_ptr=e,Ni.register(this,this.__wbg_ptr,this),this}get backupRecoveryKey(){const e=Go.__wbg_get_basemigrationdata_backupRecoveryKey(this.__wbg_ptr);let t;return 0!==e[0]&&(t=Do(e[0],e[1]).slice(),Go.__wbindgen_free(e[0],1*e[1],1)),t}get backupVersion(){const e=Go.__wbg_get_basemigrationdata_backupVersion(this.__wbg_ptr);let t;return 0!==e[0]&&(t=Do(e[0],e[1]).slice(),Go.__wbindgen_free(e[0],1*e[1],1)),t}get deviceId(){const e=Go.__wbg_get_basemigrationdata_deviceId(this.__wbg_ptr);return 0===e?void 0:F.__wrap(e)}get pickledAccount(){let e,t;try{const r=Go.__wbg_get_basemigrationdata_pickledAccount(this.__wbg_ptr);return e=r[0],t=r[1],Do(r[0],r[1])}finally{Go.__wbindgen_free(e,t,1)}}get privateCrossSigningMasterKey(){const e=Go.__wbg_get_basemigrationdata_privateCrossSigningMasterKey(this.__wbg_ptr);let t;return 0!==e[0]&&(t=Do(e[0],e[1]).slice(),Go.__wbindgen_free(e[0],1*e[1],1)),t}get privateCrossSigningSelfSigningKey(){const e=Go.__wbg_get_basemigrationdata_privateCrossSigningSelfSigningKey(this.__wbg_ptr);let t;return 0!==e[0]&&(t=Do(e[0],e[1]).slice(),Go.__wbindgen_free(e[0],1*e[1],1)),t}get privateCrossSigningUserSigningKey(){const e=Go.__wbg_get_basemigrationdata_privateCrossSigningUserSigningKey(this.__wbg_ptr);let t;return 0!==e[0]&&(t=Do(e[0],e[1]).slice(),Go.__wbindgen_free(e[0],1*e[1],1)),t}get userId(){const e=Go.__wbg_get_basemigrationdata_userId(this.__wbg_ptr);return 0===e?void 0:Xe.__wrap(e)}set backupRecoveryKey(e){var t=xo(e)?0:Po(e,Go.__wbindgen_malloc,Go.__wbindgen_realloc),r=Zo;Go.__wbg_set_basemigrationdata_backupRecoveryKey(this.__wbg_ptr,t,r)}set backupVersion(e){var t=xo(e)?0:Po(e,Go.__wbindgen_malloc,Go.__wbindgen_realloc),r=Zo;Go.__wbg_set_basemigrationdata_backupVersion(this.__wbg_ptr,t,r)}set deviceId(e){let t=0;xo(e)||(zo(e,F),t=e.__destroy_into_raw()),Go.__wbg_set_basemigrationdata_deviceId(this.__wbg_ptr,t)}set pickledAccount(e){const t=Po(e,Go.__wbindgen_malloc,Go.__wbindgen_realloc),r=Zo;Go.__wbg_set_basemigrationdata_pickledAccount(this.__wbg_ptr,t,r)}set privateCrossSigningMasterKey(e){var t=xo(e)?0:Po(e,Go.__wbindgen_malloc,Go.__wbindgen_realloc),r=Zo;Go.__wbg_set_basemigrationdata_privateCrossSigningMasterKey(this.__wbg_ptr,t,r)}set privateCrossSigningSelfSigningKey(e){var t=xo(e)?0:Po(e,Go.__wbindgen_malloc,Go.__wbindgen_realloc),r=Zo;Go.__wbg_set_basemigrationdata_privateCrossSigningSelfSigningKey(this.__wbg_ptr,t,r)}set privateCrossSigningUserSigningKey(e){var t=xo(e)?0:Po(e,Go.__wbindgen_malloc,Go.__wbindgen_realloc),r=Zo;Go.__wbg_set_basemigrationdata_privateCrossSigningUserSigningKey(this.__wbg_ptr,t,r)}set userId(e){let t=0;xo(e)||(zo(e,Xe),t=e.__destroy_into_raw()),Go.__wbg_set_basemigrationdata_userId(this.__wbg_ptr,t)}}Symbol.dispose&&(g.prototype[Symbol.dispose]=g.prototype.free);class a{static __wrap(e){const t=Object.create(a.prototype);return t.__wbg_ptr=e,Li.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Li.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_cancelinfo_free(e,0)}cancelCode(){let e,t;try{const r=Go.cancelinfo_cancelCode(this.__wbg_ptr);return e=r[0],t=r[1],Do(r[0],r[1])}finally{Go.__wbindgen_free(e,t,1)}}cancelledbyUs(){return 0!==Go.cancelinfo_cancelledbyUs(this.__wbg_ptr)}reason(){return Go.cancelinfo_reason(this.__wbg_ptr)}}Symbol.dispose&&(a.prototype[Symbol.dispose]=a.prototype.free);class c{static __wrap(e){const t=Object.create(c.prototype);return t.__wbg_ptr=e,Ji.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Ji.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_checkcode_free(e,0)}as_bytes(){const e=Go.checkcode_as_bytes(this.__wbg_ptr);var t=Co(e[0],e[1]).slice();return Go.__wbindgen_free(e[0],1*e[1],1),t}to_digit(){return Go.checkcode_to_digit(this.__wbg_ptr)}}Symbol.dispose&&(c.prototype[Symbol.dispose]=c.prototype.free);class p{static __wrap(e){const t=Object.create(p.prototype);return t.__wbg_ptr=e,Wi.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Wi.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_collectstrategy_free(e,0)}static allDevices(){const e=Go.collectstrategy_allDevices();return p.__wrap(e)}static deviceBasedStrategy(e,t){const r=Go.collectstrategy_deviceBasedStrategy(e,t);return p.__wrap(r)}eq(e){zo(e,p);return 0!==Go.collectstrategy_eq(this.__wbg_ptr,e.__wbg_ptr)}static errorOnUnverifiedUserProblem(){const e=Go.collectstrategy_errorOnUnverifiedUserProblem();return p.__wrap(e)}static identityBasedStrategy(){const e=Go.collectstrategy_identityBasedStrategy();return p.__wrap(e)}static onlyTrustedDevices(){const e=Go.collectstrategy_onlyTrustedDevices();return p.__wrap(e)}}Symbol.dispose&&(p.prototype[Symbol.dispose]=p.prototype.free);class w{static __wrap(e){const t=Object.create(w.prototype);return t.__wbg_ptr=e,Qi.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Qi.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_crosssigningbootstraprequests_free(e,0)}get uploadKeysRequest(){return Go.__wbg_get_crosssigningbootstraprequests_uploadKeysRequest(this.__wbg_ptr)}get uploadSignaturesRequest(){const e=Go.__wbg_get_crosssigningbootstraprequests_uploadSignaturesRequest(this.__wbg_ptr);return Ee.__wrap(e)}get uploadSigningKeysRequest(){const e=Go.__wbg_get_crosssigningbootstraprequests_uploadSigningKeysRequest(this.__wbg_ptr);return Ge.__wrap(e)}}Symbol.dispose&&(w.prototype[Symbol.dispose]=w.prototype.free);class d{static __wrap(e){const t=Object.create(d.prototype);return t.__wbg_ptr=e,Gi.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Gi.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_crosssigningkeyexport_free(e,0)}get masterKey(){const e=Go.crosssigningkeyexport_masterKey(this.__wbg_ptr);let t;return 0!==e[0]&&(t=Do(e[0],e[1]).slice(),Go.__wbindgen_free(e[0],1*e[1],1)),t}get self_signing_key(){const e=Go.crosssigningkeyexport_self_signing_key(this.__wbg_ptr);let t;return 0!==e[0]&&(t=Do(e[0],e[1]).slice(),Go.__wbindgen_free(e[0],1*e[1],1)),t}get userSigningKey(){const e=Go.crosssigningkeyexport_userSigningKey(this.__wbg_ptr);let t;return 0!==e[0]&&(t=Do(e[0],e[1]).slice(),Go.__wbindgen_free(e[0],1*e[1],1)),t}}Symbol.dispose&&(d.prototype[Symbol.dispose]=d.prototype.free);class u{static __wrap(e){const t=Object.create(u.prototype);return t.__wbg_ptr=e,Zi.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Zi.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_crosssigningstatus_free(e,0)}get hasMaster(){return 0!==Go.crosssigningstatus_hasMaster(this.__wbg_ptr)}get hasSelfSigning(){return 0!==Go.crosssigningstatus_hasSelfSigning(this.__wbg_ptr)}get hasUserSigning(){return 0!==Go.crosssigningstatus_hasUserSigning(this.__wbg_ptr)}}Symbol.dispose&&(u.prototype[Symbol.dispose]=u.prototype.free);class b{static __wrap(e){const t=Object.create(b.prototype);return t.__wbg_ptr=e,Xi.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Xi.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_curve25519publickey_free(e,0)}get length(){return Go.curve25519publickey_length(this.__wbg_ptr)>>>0}constructor(e){const t=Po(e,Go.__wbindgen_malloc,Go.__wbindgen_realloc),r=Zo,_=Go.curve25519publickey_new(t,r);if(_[2])throw No(_[1]);return this.__wbg_ptr=_[0],Xi.register(this,this.__wbg_ptr,this),this}toBase64(){let e,t;try{const r=Go.curve25519publickey_toBase64(this.__wbg_ptr);return e=r[0],t=r[1],Do(r[0],r[1])}finally{Go.__wbindgen_free(e,t,1)}}}Symbol.dispose&&(b.prototype[Symbol.dispose]=b.prototype.free);class l{static __wrap(e){const t=Object.create(l.prototype);return t.__wbg_ptr=e,$i.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,$i.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_curve25519secretkey_free(e,0)}static fromBase64(e){const t=Po(e,Go.__wbindgen_malloc,Go.__wbindgen_realloc),r=Zo,_=Go.curve25519secretkey_fromBase64(t,r);if(_[2])throw No(_[1]);return l.__wrap(_[0])}static fromUint8Array(e){const t=Ao(e,Go.__wbindgen_malloc),r=Zo,_=Go.curve25519secretkey_fromUint8Array(t,r);if(_[2])throw No(_[1]);return l.__wrap(_[0])}static new(){const e=Go.curve25519secretkey_new();return l.__wrap(e)}toBase64(){let e,t;try{const r=Go.curve25519secretkey_toBase64(this.__wbg_ptr);return e=r[0],t=r[1],Do(r[0],r[1])}finally{Go.__wbindgen_free(e,t,1)}}toUint8Array(){const e=Go.curve25519secretkey_toUint8Array(this.__wbg_ptr);var t=Co(e[0],e[1]).slice();return Go.__wbindgen_free(e[0],1*e[1],1),t}}Symbol.dispose&&(l.prototype[Symbol.dispose]=l.prototype.free);class y{static __wrap(e){const t=Object.create(y.prototype);return t.__wbg_ptr=e,Hi.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Hi.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_decryptedroomevent_free(e,0)}get forwarder(){const e=Go.decryptedroomevent_forwarder(this.__wbg_ptr);return 0===e?void 0:Xe.__wrap(e)}get forwarderDevice(){const e=Go.decryptedroomevent_forwarderDevice(this.__wbg_ptr);return 0===e?void 0:F.__wrap(e)}get forwardingCurve25519KeyChain(){return Go.decryptedroomevent_forwardingCurve25519KeyChain(this.__wbg_ptr)}get sender(){const e=Go.decryptedroomevent_sender(this.__wbg_ptr);return Xe.__wrap(e)}get senderClaimedEd25519Key(){return Go.decryptedroomevent_senderClaimedEd25519Key(this.__wbg_ptr)}get senderCurve25519Key(){let e,t;try{const r=Go.decryptedroomevent_senderCurve25519Key(this.__wbg_ptr);return e=r[0],t=r[1],Do(r[0],r[1])}finally{Go.__wbindgen_free(e,t,1)}}get senderDevice(){const e=Go.decryptedroomevent_senderDevice(this.__wbg_ptr);return 0===e?void 0:F.__wrap(e)}shieldState(e){const t=Go.decryptedroomevent_shieldState(this.__wbg_ptr,e);return je.__wrap(t)}get event(){return Go.__wbg_get_decryptedroomevent_event(this.__wbg_ptr)}}Symbol.dispose&&(y.prototype[Symbol.dispose]=y.prototype.free);class h{static __wrap(e){const t=Object.create(h.prototype);return t.__wbg_ptr=e,Yi.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Yi.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_decryptedtodeviceevent_free(e,0)}get type(){return Go.decryptedtodeviceevent_type(this.__wbg_ptr)}get encryptionInfo(){const e=Go.__wbg_get_decryptedtodeviceevent_encryptionInfo(this.__wbg_ptr);return Pe.__wrap(e)}get rawEvent(){return Go.__wbg_get_decryptedtodeviceevent_rawEvent(this.__wbg_ptr)}}Symbol.dispose&&(h.prototype[Symbol.dispose]=h.prototype.free);const f=Object.freeze({MissingRoomKey:0,0:"MissingRoomKey",UnknownMessageIndex:1,1:"UnknownMessageIndex",MismatchedIdentityKeys:2,2:"MismatchedIdentityKeys",UnknownSenderDevice:3,3:"UnknownSenderDevice",UnsignedSenderDevice:4,4:"UnsignedSenderDevice",SenderIdentityVerificationViolation:5,5:"SenderIdentityVerificationViolation",UnableToDecrypt:6,6:"UnableToDecrypt",MismatchedSender:7,7:"MismatchedSender"});class m{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,es.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_decryptionsettings_free(e,0)}constructor(e){const t=Go.decryptionsettings_new(e);return this.__wbg_ptr=t,es.register(this,this.__wbg_ptr,this),this}get sender_device_trust_requirement(){return Go.__wbg_get_decryptionsettings_sender_device_trust_requirement(this.__wbg_ptr)}set sender_device_trust_requirement(e){Go.__wbg_set_decryptionsettings_sender_device_trust_requirement(this.__wbg_ptr,e)}}Symbol.dispose&&(m.prototype[Symbol.dispose]=m.prototype.free);class v{static __wrap(e){const t=Object.create(v.prototype);return t.__wbg_ptr=e,ts.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ts.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_dehydrateddevice_free(e,0)}keysForUpload(e,t){zo(t,S);return Go.dehydrateddevice_keysForUpload(this.__wbg_ptr,e,t.__wbg_ptr)}}Symbol.dispose&&(v.prototype[Symbol.dispose]=v.prototype.free);class S{static __wrap(e){const t=Object.create(S.prototype);return t.__wbg_ptr=e,rs.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,rs.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_dehydrateddevicekey_free(e,0)}static createKeyFromArray(e){const t=Go.dehydrateddevicekey_createKeyFromArray(e);if(t[2])throw No(t[1]);return S.__wrap(t[0])}static createRandomKey(){const e=Go.dehydrateddevicekey_createRandomKey();return S.__wrap(e)}toBase64(){return Go.dehydrateddevicekey_toBase64(this.__wbg_ptr)}}Symbol.dispose&&(S.prototype[Symbol.dispose]=S.prototype.free);class k{static __wrap(e){const t=Object.create(k.prototype);return t.__wbg_ptr=e,_s.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,_s.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_dehydrateddevices_free(e,0)}create(){return Go.dehydrateddevices_create(this.__wbg_ptr)}deleteDehydratedDeviceKey(){return Go.dehydrateddevices_deleteDehydratedDeviceKey(this.__wbg_ptr)}getDehydratedDeviceKey(){return Go.dehydrateddevices_getDehydratedDeviceKey(this.__wbg_ptr)}rehydrate(e,t,r){zo(e,S),zo(t,F);const _=Po(r,Go.__wbindgen_malloc,Go.__wbindgen_realloc),n=Zo;return Go.dehydrateddevices_rehydrate(this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr,_,n)}saveDehydratedDeviceKey(e){zo(e,S);return Go.dehydrateddevices_saveDehydratedDeviceKey(this.__wbg_ptr,e.__wbg_ptr)}}Symbol.dispose&&(k.prototype[Symbol.dispose]=k.prototype.free);class R{static __wrap(e){const t=Object.create(R.prototype);return t.__wbg_ptr=e,ns.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ns.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_device_free(e,0)}get algorithms(){return Go.device_algorithms(this.__wbg_ptr)}get curve25519Key(){const e=Go.device_curve25519Key(this.__wbg_ptr);return 0===e?void 0:b.__wrap(e)}get deviceId(){const e=Go.device_deviceId(this.__wbg_ptr);return F.__wrap(e)}get displayName(){const e=Go.device_displayName(this.__wbg_ptr);let t;return 0!==e[0]&&(t=Do(e[0],e[1]).slice(),Go.__wbindgen_free(e[0],1*e[1],1)),t}get ed25519Key(){const e=Go.device_ed25519Key(this.__wbg_ptr);return 0===e?void 0:U.__wrap(e)}encryptToDeviceEvent(e,t,r){const _=Po(e,Go.__wbindgen_malloc,Go.__wbindgen_realloc),n=Zo;let i=0;xo(r)||(zo(r,p),i=r.__destroy_into_raw());return Go.device_encryptToDeviceEvent(this.__wbg_ptr,_,n,t,i)}firstTimeSeen(){const e=Go.device_firstTimeSeen(this.__wbg_ptr);return BigInt.asUintN(64,e)}getKey(e){const t=Go.device_getKey(this.__wbg_ptr,e);if(t[2])throw No(t[1]);return 0===t[0]?void 0:z.__wrap(t[0])}isBlacklisted(){return 0!==Go.device_isBlacklisted(this.__wbg_ptr)}isCrossSignedByOwner(){return 0!==Go.device_isCrossSignedByOwner(this.__wbg_ptr)}isCrossSigningTrusted(){return 0!==Go.device_isCrossSigningTrusted(this.__wbg_ptr)}get isDehydrated(){return 0!==Go.device_isDehydrated(this.__wbg_ptr)}isDeleted(){return 0!==Go.device_isDeleted(this.__wbg_ptr)}isLocallyTrusted(){return 0!==Go.device_isLocallyTrusted(this.__wbg_ptr)}isVerified(){return 0!==Go.device_isVerified(this.__wbg_ptr)}get keys(){return Go.device_keys(this.__wbg_ptr)}get localTrustState(){return Go.device_localTrustState(this.__wbg_ptr)}requestVerification(e){var t=xo(e)?0:To(e,Go.__wbindgen_malloc),r=Zo;const _=Go.device_requestVerification(this.__wbg_ptr,t,r);if(_[2])throw No(_[1]);return No(_[0])}setLocalTrust(e){return Go.device_setLocalTrust(this.__wbg_ptr,e)}get signatures(){const e=Go.device_signatures(this.__wbg_ptr);return Me.__wrap(e)}get userId(){const e=Go.device_userId(this.__wbg_ptr);return Xe.__wrap(e)}verify(){return Go.device_verify(this.__wbg_ptr)}}Symbol.dispose&&(R.prototype[Symbol.dispose]=R.prototype.free);class F{static __wrap(e){const t=Object.create(F.prototype);return t.__wbg_ptr=e,is.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,is.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_deviceid_free(e,0)}constructor(e){const t=Po(e,Go.__wbindgen_malloc,Go.__wbindgen_realloc),r=Zo,_=Go.deviceid_new(t,r);return this.__wbg_ptr=_,is.register(this,this.__wbg_ptr,this),this}toString(){let e,t;try{const r=Go.deviceid_toString(this.__wbg_ptr);return e=r[0],t=r[1],Do(r[0],r[1])}finally{Go.__wbindgen_free(e,t,1)}}}Symbol.dispose&&(F.prototype[Symbol.dispose]=F.prototype.free);class z{static __wrap(e){const t=Object.create(z.prototype);return t.__wbg_ptr=e,ss.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ss.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_devicekey_free(e,0)}get curve25519(){const e=Go.devicekey_curve25519(this.__wbg_ptr);return 0===e?void 0:b.__wrap(e)}get ed25519(){const e=Go.devicekey_ed25519(this.__wbg_ptr);return 0===e?void 0:U.__wrap(e)}get name(){return Go.devicekey_name(this.__wbg_ptr)}toBase64(){let e,t;try{const r=Go.devicekey_toBase64(this.__wbg_ptr);return e=r[0],t=r[1],Do(r[0],r[1])}finally{Go.__wbindgen_free(e,t,1)}}get unknown(){const e=Go.devicekey_unknown(this.__wbg_ptr);let t;return 0!==e[0]&&(t=Do(e[0],e[1]).slice(),Go.__wbindgen_free(e[0],1*e[1],1)),t}}Symbol.dispose&&(z.prototype[Symbol.dispose]=z.prototype.free);class K{static __wrap(e){const t=Object.create(K.prototype);return t.__wbg_ptr=e,os.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,os.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_devicekeyalgorithm_free(e,0)}get name(){return Go.devicekeyalgorithm_name(this.__wbg_ptr)}toString(){let e,t;try{const r=Go.devicekeyalgorithm_toString(this.__wbg_ptr);return e=r[0],t=r[1],Do(r[0],r[1])}finally{Go.__wbindgen_free(e,t,1)}}}Symbol.dispose&&(K.prototype[Symbol.dispose]=K.prototype.free);Object.freeze({Ed25519:0,0:"Ed25519",Curve25519:1,1:"Curve25519",Unknown:3,3:"Unknown"});class q{static __wrap(e){const t=Object.create(q.prototype);return t.__wbg_ptr=e,gs.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,gs.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_devicekeyid_free(e,0)}get algorithm(){const e=Go.devicekeyid_algorithm(this.__wbg_ptr);return K.__wrap(e)}get deviceId(){const e=Go.devicekeyid_deviceId(this.__wbg_ptr);return F.__wrap(e)}constructor(e){const t=Po(e,Go.__wbindgen_malloc,Go.__wbindgen_realloc),r=Zo,_=Go.devicekeyid_new(t,r);if(_[2])throw No(_[1]);return this.__wbg_ptr=_[0],gs.register(this,this.__wbg_ptr,this),this}toString(){let e,t;try{const r=Go.devicekeyid_toString(this.__wbg_ptr);return e=r[0],t=r[1],Do(r[0],r[1])}finally{Go.__wbindgen_free(e,t,1)}}}Symbol.dispose&&(q.prototype[Symbol.dispose]=q.prototype.free);Object.freeze({Curve25519:0,0:"Curve25519",Ed25519:1,1:"Ed25519",Unknown:2,2:"Unknown"});class I{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,as.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_devicelists_free(e,0)}get changed(){const e=Go.devicelists_changed(this.__wbg_ptr);var t=Io(e[0],e[1]).slice();return Go.__wbindgen_free(e[0],4*e[1],4),t}isEmpty(){return 0!==Go.devicelists_isEmpty(this.__wbg_ptr)}get left(){const e=Go.devicelists_left(this.__wbg_ptr);var t=Io(e[0],e[1]).slice();return Go.__wbindgen_free(e[0],4*e[1],4),t}constructor(e,t){var r=xo(e)?0:To(e,Go.__wbindgen_malloc),_=Zo,n=xo(t)?0:To(t,Go.__wbindgen_malloc),i=Zo;const s=Go.devicelists_new(r,_,n,i);if(s[2])throw No(s[1]);return this.__wbg_ptr=s[0],as.register(this,this.__wbg_ptr,this),this}}Symbol.dispose&&(I.prototype[Symbol.dispose]=I.prototype.free);class C{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,cs.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_ecies_free(e,0)}establish_inbound_channel(e){const t=Po(e,Go.__wbindgen_malloc,Go.__wbindgen_realloc),r=Zo,_=Go.ecies_establish_inbound_channel(this.__wbg_ptr,t,r);if(_[2])throw No(_[1]);return P.__wrap(_[0])}establish_outbound_channel(e,t){zo(e,b);const r=Po(t,Go.__wbindgen_malloc,Go.__wbindgen_realloc),_=Zo,n=Go.ecies_establish_outbound_channel(this.__wbg_ptr,e.__wbg_ptr,r,_);if(n[2])throw No(n[1]);return ne.__wrap(n[0])}constructor(){const e=Go.ecies_new();return this.__wbg_ptr=e,cs.register(this,this.__wbg_ptr,this),this}public_key(){const e=Go.ecies_public_key(this.__wbg_ptr);return b.__wrap(e)}}Symbol.dispose&&(C.prototype[Symbol.dispose]=C.prototype.free);class U{static __wrap(e){const t=Object.create(U.prototype);return t.__wbg_ptr=e,ps.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ps.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_ed25519publickey_free(e,0)}get length(){return Go.ed25519publickey_length(this.__wbg_ptr)>>>0}toBase64(){let e,t;try{const r=Go.ed25519publickey_toBase64(this.__wbg_ptr);return e=r[0],t=r[1],Do(r[0],r[1])}finally{Go.__wbindgen_free(e,t,1)}}}Symbol.dispose&&(U.prototype[Symbol.dispose]=U.prototype.free);class O{static __wrap(e){const t=Object.create(O.prototype);return t.__wbg_ptr=e,ws.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ws.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_ed25519signature_free(e,0)}constructor(e){const t=Po(e,Go.__wbindgen_malloc,Go.__wbindgen_realloc),r=Zo,_=Go.ed25519signature_new(t,r);if(_[2])throw No(_[1]);return this.__wbg_ptr=_[0],ws.register(this,this.__wbg_ptr,this),this}toBase64(){let e,t;try{const r=Go.ed25519signature_toBase64(this.__wbg_ptr);return e=r[0],t=r[1],Do(r[0],r[1])}finally{Go.__wbindgen_free(e,t,1)}}}Symbol.dispose&&(O.prototype[Symbol.dispose]=O.prototype.free);class D{static __wrap(e){const t=Object.create(D.prototype);return t.__wbg_ptr=e,ds.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ds.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_emoji_free(e,0)}get description(){return Go.emoji_description(this.__wbg_ptr)}get symbol(){return Go.emoji_symbol(this.__wbg_ptr)}}Symbol.dispose&&(D.prototype[Symbol.dispose]=D.prototype.free);class j{static __wrap(e){const t=Object.create(j.prototype);return t.__wbg_ptr=e,us.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,us.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_encryptedattachment_free(e,0)}get encryptedData(){const e=Go.encryptedattachment_encryptedData(this.__wbg_ptr);var t=Co(e[0],e[1]).slice();return Go.__wbindgen_free(e[0],1*e[1],1),t}get hasMediaEncryptionInfoBeenConsumed(){return 0!==Go.encryptedattachment_hasMediaEncryptionInfoBeenConsumed(this.__wbg_ptr)}get mediaEncryptionInfo(){const e=Go.encryptedattachment_mediaEncryptionInfo(this.__wbg_ptr);let t;return 0!==e[0]&&(t=Do(e[0],e[1]).slice(),Go.__wbindgen_free(e[0],1*e[1],1)),t}constructor(e,t){const r=Ao(e,Go.__wbindgen_malloc),_=Zo,n=Po(t,Go.__wbindgen_malloc,Go.__wbindgen_realloc),i=Zo,s=Go.encryptedattachment_new(r,_,n,i);if(s[2])throw No(s[1]);return this.__wbg_ptr=s[0],us.register(this,this.__wbg_ptr,this),this}}Symbol.dispose&&(j.prototype[Symbol.dispose]=j.prototype.free);const B=Object.freeze({OlmV1Curve25519AesSha2:0,0:"OlmV1Curve25519AesSha2",MegolmV1AesSha2:1,1:"MegolmV1AesSha2",Unknown:2,2:"Unknown"});class V{static __wrap(e){const t=Object.create(V.prototype);return t.__wbg_ptr=e,bs.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,bs.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_encryptioninfo_free(e,0)}shieldState(e){const t=Go.encryptioninfo_shieldState(this.__wbg_ptr,e);return je.__wrap(t)}get forwarderDevice(){const e=Go.__wbg_get_encryptioninfo_forwarderDevice(this.__wbg_ptr);return 0===e?void 0:F.__wrap(e)}get forwarder(){const e=Go.__wbg_get_encryptioninfo_forwarder(this.__wbg_ptr);return 0===e?void 0:Xe.__wrap(e)}get senderClaimedEd25519Key(){const e=Go.__wbg_get_encryptioninfo_senderClaimedEd25519Key(this.__wbg_ptr);let t;return 0!==e[0]&&(t=Do(e[0],e[1]).slice(),Go.__wbindgen_free(e[0],1*e[1],1)),t}get senderCurve25519Key(){let e,t;try{const r=Go.__wbg_get_encryptioninfo_senderCurve25519Key(this.__wbg_ptr);return e=r[0],t=r[1],Do(r[0],r[1])}finally{Go.__wbindgen_free(e,t,1)}}get senderDevice(){const e=Go.__wbg_get_encryptioninfo_senderDevice(this.__wbg_ptr);return 0===e?void 0:F.__wrap(e)}get sender(){const e=Go.__wbg_get_encryptioninfo_sender(this.__wbg_ptr);return Xe.__wrap(e)}set forwarderDevice(e){let t=0;xo(e)||(zo(e,F),t=e.__destroy_into_raw()),Go.__wbg_set_encryptioninfo_forwarderDevice(this.__wbg_ptr,t)}set forwarder(e){let t=0;xo(e)||(zo(e,Xe),t=e.__destroy_into_raw()),Go.__wbg_set_encryptioninfo_forwarder(this.__wbg_ptr,t)}set senderClaimedEd25519Key(e){var t=xo(e)?0:Po(e,Go.__wbindgen_malloc,Go.__wbindgen_realloc),r=Zo;Go.__wbg_set_encryptioninfo_senderClaimedEd25519Key(this.__wbg_ptr,t,r)}set senderCurve25519Key(e){const t=Po(e,Go.__wbindgen_malloc,Go.__wbindgen_realloc),r=Zo;Go.__wbg_set_encryptioninfo_senderCurve25519Key(this.__wbg_ptr,t,r)}set senderDevice(e){let t=0;xo(e)||(zo(e,F),t=e.__destroy_into_raw()),Go.__wbg_set_encryptioninfo_senderDevice(this.__wbg_ptr,t)}set sender(e){zo(e,Xe);var t=e.__destroy_into_raw();Go.__wbg_set_encryptioninfo_sender(this.__wbg_ptr,t)}}Symbol.dispose&&(V.prototype[Symbol.dispose]=V.prototype.free);class E{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ls.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_encryptionsettings_free(e,0)}constructor(){const e=Go.encryptionsettings_new();return this.__wbg_ptr=e,ls.register(this,this.__wbg_ptr,this),this}get algorithm(){return Go.__wbg_get_encryptionsettings_algorithm(this.__wbg_ptr)}get encryptStateEvents(){return 0!==Go.__wbg_get_encryptionsettings_encryptStateEvents(this.__wbg_ptr)}get historyVisibility(){return Go.__wbg_get_encryptionsettings_historyVisibility(this.__wbg_ptr)}get rotationPeriodMessages(){const e=Go.__wbg_get_encryptionsettings_rotationPeriodMessages(this.__wbg_ptr);return BigInt.asUintN(64,e)}get rotationPeriod(){const e=Go.__wbg_get_encryptionsettings_rotationPeriod(this.__wbg_ptr);return BigInt.asUintN(64,e)}get sharingStrategy(){const e=Go.__wbg_get_encryptionsettings_sharingStrategy(this.__wbg_ptr);return p.__wrap(e)}set algorithm(e){Go.__wbg_set_encryptionsettings_algorithm(this.__wbg_ptr,e)}set encryptStateEvents(e){Go.__wbg_set_encryptionsettings_encryptStateEvents(this.__wbg_ptr,e)}set historyVisibility(e){Go.__wbg_set_encryptionsettings_historyVisibility(this.__wbg_ptr,e)}set rotationPeriodMessages(e){Go.__wbg_set_encryptionsettings_rotationPeriodMessages(this.__wbg_ptr,e)}set rotationPeriod(e){Go.__wbg_set_encryptionsettings_rotationPeriod(this.__wbg_ptr,e)}set sharingStrategy(e){zo(e,p);var t=e.__destroy_into_raw();Go.__wbg_set_encryptionsettings_sharingStrategy(this.__wbg_ptr,t)}}Symbol.dispose&&(E.prototype[Symbol.dispose]=E.prototype.free);class x{static __wrap(e){const t=Object.create(x.prototype);return t.__wbg_ptr=e,ys.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ys.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_establishedecies_free(e,0)}check_code(){const e=Go.establishedecies_check_code(this.__wbg_ptr);return c.__wrap(e)}decrypt(e){let t,r;try{const i=Po(e,Go.__wbindgen_malloc,Go.__wbindgen_realloc),s=Zo,o=Go.establishedecies_decrypt(this.__wbg_ptr,i,s);var _=o[0],n=o[1];if(o[3])throw _=0,n=0,No(o[2]);return t=_,r=n,Do(_,n)}finally{Go.__wbindgen_free(t,r,1)}}encrypt(e){let t,r;try{const _=Po(e,Go.__wbindgen_malloc,Go.__wbindgen_realloc),n=Zo,i=Go.establishedecies_encrypt(this.__wbg_ptr,_,n);return t=i[0],r=i[1],Do(i[0],i[1])}finally{Go.__wbindgen_free(t,r,1)}}public_key(){const e=Go.establishedecies_public_key(this.__wbg_ptr);return b.__wrap(e)}}Symbol.dispose&&(x.prototype[Symbol.dispose]=x.prototype.free);class M{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,hs.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_eventid_free(e,0)}get localpart(){let e,t;try{const r=Go.eventid_localpart(this.__wbg_ptr);return e=r[0],t=r[1],Do(r[0],r[1])}finally{Go.__wbindgen_free(e,t,1)}}constructor(e){const t=Po(e,Go.__wbindgen_malloc,Go.__wbindgen_realloc),r=Zo,_=Go.eventid_new(t,r);if(_[2])throw No(_[1]);return this.__wbg_ptr=_[0],hs.register(this,this.__wbg_ptr,this),this}get serverName(){const e=Go.eventid_serverName(this.__wbg_ptr);return 0===e?void 0:Oe.__wrap(e)}toString(){let e,t;try{const r=Go.eventid_toString(this.__wbg_ptr);return e=r[0],t=r[1],Do(r[0],r[1])}finally{Go.__wbindgen_free(e,t,1)}}}Symbol.dispose&&(M.prototype[Symbol.dispose]=M.prototype.free);const A=Object.freeze({Invited:0,0:"Invited",Joined:1,1:"Joined",Shared:2,2:"Shared",WorldReadable:3,3:"WorldReadable"});class T{static __wrap(e){const t=Object.create(T.prototype);return t.__wbg_ptr=e,fs.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,fs.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_identitykeys_free(e,0)}get curve25519(){const e=Go.__wbg_get_identitykeys_curve25519(this.__wbg_ptr);return b.__wrap(e)}get ed25519(){const e=Go.__wbg_get_identitykeys_ed25519(this.__wbg_ptr);return U.__wrap(e)}set curve25519(e){zo(e,b);var t=e.__destroy_into_raw();Go.__wbg_set_identitykeys_curve25519(this.__wbg_ptr,t)}set ed25519(e){zo(e,U);var t=e.__destroy_into_raw();Go.__wbg_set_identitykeys_ed25519(this.__wbg_ptr,t)}}Symbol.dispose&&(T.prototype[Symbol.dispose]=T.prototype.free);class P{static __wrap(e){const t=Object.create(P.prototype);return t.__wbg_ptr=e,ms.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ms.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_inboundcreationresult_free(e,0)}get channel(){const e=Go.__wbg_get_inboundcreationresult_channel(this.__wbg_ptr);return x.__wrap(e)}get message(){let e,t;try{const r=Go.__wbg_get_inboundcreationresult_message(this.__wbg_ptr);return e=r[0],t=r[1],Do(r[0],r[1])}finally{Go.__wbindgen_free(e,t,1)}}set channel(e){zo(e,x);var t=e.__destroy_into_raw();Go.__wbg_set_inboundcreationresult_channel(this.__wbg_ptr,t)}set message(e){const t=Po(e,Go.__wbindgen_malloc,Go.__wbindgen_realloc),r=Zo;Go.__wbg_set_inboundcreationresult_message(this.__wbg_ptr,t,r)}}Symbol.dispose&&(P.prototype[Symbol.dispose]=P.prototype.free);class N{static __wrap(e){const t=Object.create(N.prototype);return t.__wbg_ptr=e,vs.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,vs.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_inboundgroupsession_free(e,0)}hasBeenImported(){return 0!==Go.inboundgroupsession_hasBeenImported(this.__wbg_ptr)}get roomId(){const e=Go.inboundgroupsession_roomId(this.__wbg_ptr);return Se.__wrap(e)}get senderKey(){const e=Go.inboundgroupsession_senderKey(this.__wbg_ptr);return b.__wrap(e)}get sessionId(){let e,t;try{const r=Go.inboundgroupsession_sessionId(this.__wbg_ptr);return e=r[0],t=r[1],Do(r[0],r[1])}finally{Go.__wbindgen_free(e,t,1)}}}Symbol.dispose&&(N.prototype[Symbol.dispose]=N.prototype.free);class L{static __wrap(e){const t=Object.create(L.prototype);return t.__wbg_ptr=e,Ss.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Ss.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_invalidtodeviceevent_free(e,0)}get rawEvent(){return Go.__wbg_get_invalidtodeviceevent_rawEvent(this.__wbg_ptr)}get type(){return Go.invalidtodeviceevent_type(this.__wbg_ptr)}}Symbol.dispose&&(L.prototype[Symbol.dispose]=L.prototype.free);class J{static __wrap(e){const t=Object.create(J.prototype);return t.__wbg_ptr=e,ks.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ks.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_keysbackuprequest_free(e,0)}get body(){return Go.__wbg_get_keysbackuprequest_body(this.__wbg_ptr)}get id(){return Go.__wbg_get_keysbackuprequest_id(this.__wbg_ptr)}get version(){return Go.__wbg_get_keysbackuprequest_version(this.__wbg_ptr)}constructor(e,t,r){const _=Go.keysbackuprequest_new(e,t,r);return this.__wbg_ptr=_,ks.register(this,this.__wbg_ptr,this),this}get type(){return Go.keysbackuprequest_type(this.__wbg_ptr)}}Symbol.dispose&&(J.prototype[Symbol.dispose]=J.prototype.free);class W{static __wrap(e){const t=Object.create(W.prototype);return t.__wbg_ptr=e,Rs.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Rs.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_keysclaimrequest_free(e,0)}get body(){return Go.__wbg_get_keysclaimrequest_body(this.__wbg_ptr)}get id(){return Go.__wbg_get_keysclaimrequest_id(this.__wbg_ptr)}constructor(e,t){const r=Go.keysclaimrequest_new(e,t);return this.__wbg_ptr=r,Rs.register(this,this.__wbg_ptr,this),this}get type(){return Go.keysclaimrequest_type(this.__wbg_ptr)}}Symbol.dispose&&(W.prototype[Symbol.dispose]=W.prototype.free);class Q{static __wrap(e){const t=Object.create(Q.prototype);return t.__wbg_ptr=e,Fs.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Fs.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_keysqueryrequest_free(e,0)}get body(){return Go.__wbg_get_keysqueryrequest_body(this.__wbg_ptr)}get id(){return Go.__wbg_get_keysqueryrequest_id(this.__wbg_ptr)}constructor(e,t){const r=Go.keysqueryrequest_new(e,t);return this.__wbg_ptr=r,Fs.register(this,this.__wbg_ptr,this),this}get type(){return Go.keysqueryrequest_type(this.__wbg_ptr)}}Symbol.dispose&&(Q.prototype[Symbol.dispose]=Q.prototype.free);class G{static __wrap(e){const t=Object.create(G.prototype);return t.__wbg_ptr=e,zs.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,zs.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_keysuploadrequest_free(e,0)}get body(){return Go.__wbg_get_keysuploadrequest_body(this.__wbg_ptr)}get id(){return Go.__wbg_get_keysuploadrequest_id(this.__wbg_ptr)}constructor(e,t){const r=Go.keysuploadrequest_new(e,t);return this.__wbg_ptr=r,zs.register(this,this.__wbg_ptr,this),this}get type(){return Go.keysuploadrequest_type(this.__wbg_ptr)}}Symbol.dispose&&(G.prototype[Symbol.dispose]=G.prototype.free);const Z=Object.freeze({Verified:0,0:"Verified",BlackListed:1,1:"BlackListed",Ignored:2,2:"Ignored",Unset:3,3:"Unset"});Object.freeze({Trace:0,0:"Trace",Debug:1,1:"Debug",Info:2,2:"Info",Warn:3,3:"Warn",Error:4,4:"Error"});class X{static __wrap(e){const t=Object.create(X.prototype);return t.__wbg_ptr=e,Ks.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Ks.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_maybesignature_free(e,0)}get invalidSignatureSource(){const e=Go.maybesignature_invalidSignatureSource(this.__wbg_ptr);let t;return 0!==e[0]&&(t=Do(e[0],e[1]).slice(),Go.__wbindgen_free(e[0],1*e[1],1)),t}isInvalid(){return 0!==Go.maybesignature_isInvalid(this.__wbg_ptr)}isValid(){return 0!==Go.maybesignature_isValid(this.__wbg_ptr)}get signature(){const e=Go.maybesignature_signature(this.__wbg_ptr);return 0===e?void 0:Ve.__wrap(e)}}Symbol.dispose&&(X.prototype[Symbol.dispose]=X.prototype.free);class ${static __wrap(e){const t=Object.create($.prototype);return t.__wbg_ptr=e,qs.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,qs.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_megolmdecryptionerror_free(e,0)}get code(){return Go.__wbg_get_megolmdecryptionerror_code(this.__wbg_ptr)}get description(){return Go.__wbg_get_megolmdecryptionerror_description(this.__wbg_ptr)}get maybe_withheld(){const e=Go.megolmdecryptionerror_maybe_withheld(this.__wbg_ptr);let t;return 0!==e[0]&&(t=Do(e[0],e[1]).slice(),Go.__wbindgen_free(e[0],1*e[1],1)),t}static unable_to_decrypt(e){const t=Po(e,Go.__wbindgen_malloc,Go.__wbindgen_realloc),r=Zo,_=Go.megolmdecryptionerror_unable_to_decrypt(t,r);return $.__wrap(_)}get withheldCode(){const e=Go.megolmdecryptionerror_withheldCode(this.__wbg_ptr);let t;return 0!==e[0]&&(t=Do(e[0],e[1]).slice(),Go.__wbindgen_free(e[0],1*e[1],1)),t}}Symbol.dispose&&($.prototype[Symbol.dispose]=$.prototype.free);class H{static __wrap(e){const t=Object.create(H.prototype);return t.__wbg_ptr=e,Is.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Is.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_megolmv1backupkey_free(e,0)}get algorithm(){return Go.megolmv1backupkey_algorithm(this.__wbg_ptr)}get publicKeyBase64(){return Go.megolmv1backupkey_publicKeyBase64(this.__wbg_ptr)}}Symbol.dispose&&(H.prototype[Symbol.dispose]=H.prototype.free);class Y{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Cs.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_migration_free(e,0)}static migrateBaseData(e,t,r,_){zo(e,g),zo(r,Ae);return Go.migration_migrateBaseData(e.__wbg_ptr,t,r.__wbg_ptr,xo(_)?0:Fo(_))}static migrateMegolmSessions(e,t,r,_){const n=To(e,Go.__wbindgen_malloc),i=Zo;zo(r,Ae);const s=Go.migration_migrateMegolmSessions(n,i,t,r.__wbg_ptr,xo(_)?0:Fo(_));if(s[2])throw No(s[1]);return No(s[0])}static migrateOlmSessions(e,t,r,_){const n=To(e,Go.__wbindgen_malloc),i=Zo;zo(r,Ae);const s=Go.migration_migrateOlmSessions(n,i,t,r.__wbg_ptr,xo(_)?0:Fo(_));if(s[2])throw No(s[1]);return No(s[0])}}Symbol.dispose&&(Y.prototype[Symbol.dispose]=Y.prototype.free);class ee{static __wrap(e){const t=Object.create(ee.prototype);return t.__wbg_ptr=e,Us.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Us.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_msc4108intentdata_free(e,0)}get rendezvousUrl(){let e,t;try{const r=Go.__wbg_get_msc4108intentdata_rendezvousUrl(this.__wbg_ptr);return e=r[0],t=r[1],Do(r[0],r[1])}finally{Go.__wbindgen_free(e,t,1)}}get serverName(){const e=Go.__wbg_get_msc4108intentdata_serverName(this.__wbg_ptr);let t;return 0!==e[0]&&(t=Do(e[0],e[1]).slice(),Go.__wbindgen_free(e[0],1*e[1],1)),t}set rendezvousUrl(e){const t=Po(e,Go.__wbindgen_malloc,Go.__wbindgen_realloc),r=Zo;Go.__wbg_set_msc4108intentdata_rendezvousUrl(this.__wbg_ptr,t,r)}set serverName(e){var t=xo(e)?0:Po(e,Go.__wbindgen_malloc,Go.__wbindgen_realloc),r=Zo;Go.__wbg_set_msc4108intentdata_serverName(this.__wbg_ptr,t,r)}}Symbol.dispose&&(ee.prototype[Symbol.dispose]=ee.prototype.free);class te{static __wrap(e){const t=Object.create(te.prototype);return t.__wbg_ptr=e,Os.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Os.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_msc4388intentdata_free(e,0)}get baseUrl(){let e,t;try{const r=Go.__wbg_get_msc4388intentdata_baseUrl(this.__wbg_ptr);return e=r[0],t=r[1],Do(r[0],r[1])}finally{Go.__wbindgen_free(e,t,1)}}get rendezvousId(){let e,t;try{const r=Go.__wbg_get_msc4388intentdata_rendezvousId(this.__wbg_ptr);return e=r[0],t=r[1],Do(r[0],r[1])}finally{Go.__wbindgen_free(e,t,1)}}set baseUrl(e){const t=Po(e,Go.__wbindgen_malloc,Go.__wbindgen_realloc),r=Zo;Go.__wbg_set_msc4388intentdata_baseUrl(this.__wbg_ptr,t,r)}set rendezvousId(e){const t=Po(e,Go.__wbindgen_malloc,Go.__wbindgen_realloc),r=Zo;Go.__wbg_set_msc4388intentdata_rendezvousId(this.__wbg_ptr,t,r)}}Symbol.dispose&&(te.prototype[Symbol.dispose]=te.prototype.free);class re{static __wrap(e){const t=Object.create(re.prototype);return t.__wbg_ptr=e,Ds.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Ds.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_olmmachine_free(e,0)}backupRoomKeys(){return Go.olmmachine_backupRoomKeys(this.__wbg_ptr)}bootstrapCrossSigning(e){return Go.olmmachine_bootstrapCrossSigning(this.__wbg_ptr,e)}buildRoomKeyBundle(e){zo(e,Se);return Go.olmmachine_buildRoomKeyBundle(this.__wbg_ptr,e.__wbg_ptr)}clearRoomPendingKeyBundle(e){zo(e,Se);return Go.olmmachine_clearRoomPendingKeyBundle(this.__wbg_ptr,e.__wbg_ptr)}close(){const e=this.__destroy_into_raw();Go.olmmachine_close(e)}crossSigningStatus(){return Go.olmmachine_crossSigningStatus(this.__wbg_ptr)}static decryptExportedRoomKeys(e,t){let r,_;try{const s=Po(e,Go.__wbindgen_malloc,Go.__wbindgen_realloc),o=Zo,g=Po(t,Go.__wbindgen_malloc,Go.__wbindgen_realloc),a=Zo,c=Go.olmmachine_decryptExportedRoomKeys(s,o,g,a);var n=c[0],i=c[1];if(c[3])throw n=0,i=0,No(c[2]);return r=n,_=i,Do(n,i)}finally{Go.__wbindgen_free(r,_,1)}}decryptRoomEvent(e,t,r){const _=Po(e,Go.__wbindgen_malloc,Go.__wbindgen_realloc),n=Zo;zo(t,Se),zo(r,m);const i=Go.olmmachine_decryptRoomEvent(this.__wbg_ptr,_,n,t.__wbg_ptr,r.__wbg_ptr);if(i[2])throw No(i[1]);return No(i[0])}dehydratedDevices(){const e=Go.olmmachine_dehydratedDevices(this.__wbg_ptr);return k.__wrap(e)}deleteSecretsFromInbox(e){const t=Po(e,Go.__wbindgen_malloc,Go.__wbindgen_realloc),r=Zo;return Go.olmmachine_deleteSecretsFromInbox(this.__wbg_ptr,t,r)}get deviceCreationTimeMs(){return Go.olmmachine_deviceCreationTimeMs(this.__wbg_ptr)}get deviceId(){const e=Go.olmmachine_deviceId(this.__wbg_ptr);return F.__wrap(e)}disableBackup(){return Go.olmmachine_disableBackup(this.__wbg_ptr)}get displayName(){return Go.olmmachine_displayName(this.__wbg_ptr)}enableBackupV1(e,t){const r=Po(e,Go.__wbindgen_malloc,Go.__wbindgen_realloc),_=Zo,n=Po(t,Go.__wbindgen_malloc,Go.__wbindgen_realloc),i=Zo,s=Go.olmmachine_enableBackupV1(this.__wbg_ptr,r,_,n,i);if(s[2])throw No(s[1]);return No(s[0])}static encryptExportedRoomKeys(e,t,r){let _,n;try{const o=Po(e,Go.__wbindgen_malloc,Go.__wbindgen_realloc),g=Zo,a=Po(t,Go.__wbindgen_malloc,Go.__wbindgen_realloc),c=Zo,p=Go.olmmachine_encryptExportedRoomKeys(o,g,a,c,r);var i=p[0],s=p[1];if(p[3])throw i=0,s=0,No(p[2]);return _=i,n=s,Do(i,s)}finally{Go.__wbindgen_free(_,n,1)}}encryptRoomEvent(e,t,r){zo(e,Se);const _=Po(t,Go.__wbindgen_malloc,Go.__wbindgen_realloc),n=Zo,i=Po(r,Go.__wbindgen_malloc,Go.__wbindgen_realloc),s=Zo,o=Go.olmmachine_encryptRoomEvent(this.__wbg_ptr,e.__wbg_ptr,_,n,i,s);if(o[2])throw No(o[1]);return No(o[0])}encryptStateEvent(e,t,r,_){zo(e,Se);const n=Po(t,Go.__wbindgen_malloc,Go.__wbindgen_realloc),i=Zo,s=Po(r,Go.__wbindgen_malloc,Go.__wbindgen_realloc),o=Zo,g=Po(_,Go.__wbindgen_malloc,Go.__wbindgen_realloc),a=Zo,c=Go.olmmachine_encryptStateEvent(this.__wbg_ptr,e.__wbg_ptr,n,i,s,o,g,a);if(c[2])throw No(c[1]);return No(c[0])}exportCrossSigningKeys(){return Go.olmmachine_exportCrossSigningKeys(this.__wbg_ptr)}exportRoomKeys(e){return Go.olmmachine_exportRoomKeys(this.__wbg_ptr,e)}exportSecretsBundle(){return Go.olmmachine_exportSecretsBundle(this.__wbg_ptr)}getAllRoomsPendingKeyBundles(){return Go.olmmachine_getAllRoomsPendingKeyBundles(this.__wbg_ptr)}getBackupKeys(){return Go.olmmachine_getBackupKeys(this.__wbg_ptr)}getDevice(e,t,r){zo(e,Xe),zo(t,F);return Go.olmmachine_getDevice(this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr,!xo(r),xo(r)?0:r)}getIdentity(e){zo(e,Xe);return Go.olmmachine_getIdentity(this.__wbg_ptr,e.__wbg_ptr)}getMissingSessions(e){const t=To(e,Go.__wbindgen_malloc),r=Zo;return Go.olmmachine_getMissingSessions(this.__wbg_ptr,t,r)}getPendingKeyBundleDetailsForRoom(e){zo(e,Se);return Go.olmmachine_getPendingKeyBundleDetailsForRoom(this.__wbg_ptr,e.__wbg_ptr)}getReceivedRoomKeyBundleData(e,t){zo(e,Se),zo(t,Xe);return Go.olmmachine_getReceivedRoomKeyBundleData(this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr)}getRoomEventEncryptionInfo(e,t){const r=Po(e,Go.__wbindgen_malloc,Go.__wbindgen_realloc),_=Zo;zo(t,Se);const n=Go.olmmachine_getRoomEventEncryptionInfo(this.__wbg_ptr,r,_,t.__wbg_ptr);if(n[2])throw No(n[1]);return No(n[0])}getRoomSettings(e){zo(e,Se);return Go.olmmachine_getRoomSettings(this.__wbg_ptr,e.__wbg_ptr)}getSecretsFromInbox(e){const t=Po(e,Go.__wbindgen_malloc,Go.__wbindgen_realloc),r=Zo;return Go.olmmachine_getSecretsFromInbox(this.__wbg_ptr,t,r)}getUserDevices(e,t){zo(e,Xe);return Go.olmmachine_getUserDevices(this.__wbg_ptr,e.__wbg_ptr,!xo(t),xo(t)?0:t)}getVerification(e,t){zo(e,Xe);const r=Po(t,Go.__wbindgen_malloc,Go.__wbindgen_realloc),_=Zo,n=Go.olmmachine_getVerification(this.__wbg_ptr,e.__wbg_ptr,r,_);if(n[2])throw No(n[1]);return No(n[0])}getVerificationRequest(e,t){zo(e,Xe);const r=Po(t,Go.__wbindgen_malloc,Go.__wbindgen_realloc),_=Zo,n=Go.olmmachine_getVerificationRequest(this.__wbg_ptr,e.__wbg_ptr,r,_);return 0===n?void 0:He.__wrap(n)}getVerificationRequests(e){zo(e,Xe);return Go.olmmachine_getVerificationRequests(this.__wbg_ptr,e.__wbg_ptr)}hasDownloadedAllRoomKeys(e){zo(e,Se);return Go.olmmachine_hasDownloadedAllRoomKeys(this.__wbg_ptr,e.__wbg_ptr)}get identityKeys(){const e=Go.olmmachine_identityKeys(this.__wbg_ptr);return T.__wrap(e)}importBackedUpRoomKeys(e,t,r){const _=Po(r,Go.__wbindgen_malloc,Go.__wbindgen_realloc),n=Zo,i=Go.olmmachine_importBackedUpRoomKeys(this.__wbg_ptr,e,xo(t)?0:Fo(t),_,n);if(i[2])throw No(i[1]);return No(i[0])}importCrossSigningKeys(e,t,r){var _=xo(e)?0:Po(e,Go.__wbindgen_malloc,Go.__wbindgen_realloc),n=Zo,i=xo(t)?0:Po(t,Go.__wbindgen_malloc,Go.__wbindgen_realloc),s=Zo,o=xo(r)?0:Po(r,Go.__wbindgen_malloc,Go.__wbindgen_realloc),g=Zo;return Go.olmmachine_importCrossSigningKeys(this.__wbg_ptr,_,n,i,s,o,g)}importExportedRoomKeys(e,t){const r=Po(e,Go.__wbindgen_malloc,Go.__wbindgen_realloc),_=Zo,n=Go.olmmachine_importExportedRoomKeys(this.__wbg_ptr,r,_,t);if(n[2])throw No(n[1]);return No(n[0])}importRoomKeys(e,t){const r=Po(e,Go.__wbindgen_malloc,Go.__wbindgen_realloc),_=Zo,n=Go.olmmachine_importRoomKeys(this.__wbg_ptr,r,_,t);if(n[2])throw No(n[1]);return No(n[0])}importSecretsBundle(e){zo(e,Ue);var t=e.__destroy_into_raw();return Go.olmmachine_importSecretsBundle(this.__wbg_ptr,t)}static initFromStore(e,t,r,_){zo(e,Xe),zo(t,F),zo(r,Ae);return Go.olmmachine_initFromStore(e.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr,xo(_)?0:Fo(_))}static initialize(e,t,r,_,n){zo(e,Xe),zo(t,F);var i=xo(r)?0:Po(r,Go.__wbindgen_malloc,Go.__wbindgen_realloc),s=Zo,o=xo(_)?0:Po(_,Go.__wbindgen_malloc,Go.__wbindgen_realloc),g=Zo;return Go.olmmachine_initialize(e.__wbg_ptr,t.__wbg_ptr,i,s,o,g,xo(n)?0:Fo(n))}invalidateGroupSession(e){zo(e,Se);return Go.olmmachine_invalidateGroupSession(this.__wbg_ptr,e.__wbg_ptr)}isBackupEnabled(){return Go.olmmachine_isBackupEnabled(this.__wbg_ptr)}markAllTrackedUsersAsDirty(){return Go.olmmachine_markAllTrackedUsersAsDirty(this.__wbg_ptr)}markRequestAsSent(e,t,r){const _=Po(e,Go.__wbindgen_malloc,Go.__wbindgen_realloc),n=Zo,i=Po(r,Go.__wbindgen_malloc,Go.__wbindgen_realloc),s=Zo,o=Go.olmmachine_markRequestAsSent(this.__wbg_ptr,_,n,t,i,s);if(o[2])throw No(o[1]);return No(o[0])}constructor(){const e=Go.olmmachine_new();if(e[2])throw No(e[1]);return this.__wbg_ptr=e[0],Ds.register(this,this.__wbg_ptr,this),this}outgoingRequests(){return Go.olmmachine_outgoingRequests(this.__wbg_ptr)}pushSecretToVerifiedDevices(e){const t=Po(e,Go.__wbindgen_malloc,Go.__wbindgen_realloc),r=Zo;return Go.olmmachine_pushSecretToVerifiedDevices(this.__wbg_ptr,t,r)}queryKeysForUsers(e){const t=To(e,Go.__wbindgen_malloc),r=Zo,_=Go.olmmachine_queryKeysForUsers(this.__wbg_ptr,t,r);if(_[2])throw No(_[1]);return Q.__wrap(_[0])}receiveRoomKeyBundle(e,t){zo(e,Te);var r=e.__destroy_into_raw();const _=Ao(t,Go.__wbindgen_malloc),n=Zo,i=Go.olmmachine_receiveRoomKeyBundle(this.__wbg_ptr,r,_,n);if(i[2])throw No(i[1]);return No(i[0])}receiveSyncChanges(e,t,r,_,n){const i=Po(e,Go.__wbindgen_malloc,Go.__wbindgen_realloc),s=Zo;zo(t,I);let o=0;xo(n)||(zo(n,m),o=n.__destroy_into_raw());const g=Go.olmmachine_receiveSyncChanges(this.__wbg_ptr,i,s,t.__wbg_ptr,r,xo(_)?0:Fo(_),o);if(g[2])throw No(g[1]);return No(g[0])}receiveVerificationEvent(e,t){const r=Po(e,Go.__wbindgen_malloc,Go.__wbindgen_realloc),_=Zo;zo(t,Se);const n=Go.olmmachine_receiveVerificationEvent(this.__wbg_ptr,r,_,t.__wbg_ptr);if(n[2])throw No(n[1]);return No(n[0])}registerDevicesUpdatedCallback(e){Go.olmmachine_registerDevicesUpdatedCallback(this.__wbg_ptr,e)}registerReceiveSecretCallback(e){Go.olmmachine_registerReceiveSecretCallback(this.__wbg_ptr,e)}registerRoomKeyUpdatedCallback(e){Go.olmmachine_registerRoomKeyUpdatedCallback(this.__wbg_ptr,e)}registerRoomKeysWithheldCallback(e){Go.olmmachine_registerRoomKeysWithheldCallback(this.__wbg_ptr,e)}registerUserIdentityUpdatedCallback(e){Go.olmmachine_registerUserIdentityUpdatedCallback(this.__wbg_ptr,e)}requestMissingSecretsIfNeeded(){return Go.olmmachine_requestMissingSecretsIfNeeded(this.__wbg_ptr)}roomKeyCounts(){return Go.olmmachine_roomKeyCounts(this.__wbg_ptr)}get roomKeyForwardingEnabled(){return 0!==Go.olmmachine_roomKeyForwardingEnabled(this.__wbg_ptr)}get roomKeyRequestsEnabled(){return 0!==Go.olmmachine_roomKeyRequestsEnabled(this.__wbg_ptr)}saveBackupDecryptionKey(e,t){zo(e,n);const r=Po(t,Go.__wbindgen_malloc,Go.__wbindgen_realloc),_=Zo;return Go.olmmachine_saveBackupDecryptionKey(this.__wbg_ptr,e.__wbg_ptr,r,_)}setHasDownloadedAllRoomKeys(e){zo(e,Se);return Go.olmmachine_setHasDownloadedAllRoomKeys(this.__wbg_ptr,e.__wbg_ptr)}setRoomSettings(e,t){zo(e,Se),zo(t,Ie);return Go.olmmachine_setRoomSettings(this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr)}set roomKeyForwardingEnabled(e){Go.olmmachine_set_roomKeyForwardingEnabled(this.__wbg_ptr,e)}set roomKeyRequestsEnabled(e){Go.olmmachine_set_roomKeyRequestsEnabled(this.__wbg_ptr,e)}shareRoomKey(e,t,r){zo(e,Se);const _=To(t,Go.__wbindgen_malloc),n=Zo;zo(r,E);return Go.olmmachine_shareRoomKey(this.__wbg_ptr,e.__wbg_ptr,_,n,r.__wbg_ptr)}shareRoomKeyBundleData(e,t,r,_,n){zo(e,Xe),zo(t,Se);const i=Po(r,Go.__wbindgen_malloc,Go.__wbindgen_realloc),s=Zo;var o=xo(_)?0:Po(_,Go.__wbindgen_malloc,Go.__wbindgen_realloc),g=Zo;zo(n,p);var a=n.__destroy_into_raw();const c=Go.olmmachine_shareRoomKeyBundleData(this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr,i,s,o,g,a);if(c[2])throw No(c[1]);return No(c[0])}sign(e){const t=Po(e,Go.__wbindgen_malloc,Go.__wbindgen_realloc),r=Zo;return Go.olmmachine_sign(this.__wbg_ptr,t,r)}storeRoomPendingKeyBundle(e,t){zo(e,Se),zo(t,Xe);return Go.olmmachine_storeRoomPendingKeyBundle(this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr)}trackedUsers(){const e=Go.olmmachine_trackedUsers(this.__wbg_ptr);if(e[2])throw No(e[1]);return No(e[0])}updateTrackedUsers(e){const t=To(e,Go.__wbindgen_malloc),r=Zo;return Go.olmmachine_updateTrackedUsers(this.__wbg_ptr,t,r)}get userId(){const e=Go.olmmachine_userId(this.__wbg_ptr);return Xe.__wrap(e)}verifyBackup(e){const t=Go.olmmachine_verifyBackup(this.__wbg_ptr,e);if(t[2])throw No(t[1]);return No(t[0])}}Symbol.dispose&&(re.prototype[Symbol.dispose]=re.prototype.free);class _e{static __wrap(e){const t=Object.create(_e.prototype);return t.__wbg_ptr=e,js.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,js.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_otheruseridentity_free(e,0)}hasVerificationViolation(){return 0!==Go.otheruseridentity_hasVerificationViolation(this.__wbg_ptr)}identityNeedsUserApproval(){return 0!==Go.otheruseridentity_identityNeedsUserApproval(this.__wbg_ptr)}isVerified(){return 0!==Go.otheruseridentity_isVerified(this.__wbg_ptr)}get masterKey(){let e,t;try{const n=Go.otheruseridentity_masterKey(this.__wbg_ptr);var r=n[0],_=n[1];if(n[3])throw r=0,_=0,No(n[2]);return e=r,t=_,Do(r,_)}finally{Go.__wbindgen_free(e,t,1)}}pinCurrentMasterKey(){return Go.otheruseridentity_pinCurrentMasterKey(this.__wbg_ptr)}requestVerification(e,t,r){zo(e,Se),zo(t,M);var _=xo(r)?0:To(r,Go.__wbindgen_malloc),n=Zo;const i=Go.otheruseridentity_requestVerification(this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr,_,n);if(i[2])throw No(i[1]);return He.__wrap(i[0])}get selfSigningKey(){let e,t;try{const n=Go.otheruseridentity_selfSigningKey(this.__wbg_ptr);var r=n[0],_=n[1];if(n[3])throw r=0,_=0,No(n[2]);return e=r,t=_,Do(r,_)}finally{Go.__wbindgen_free(e,t,1)}}verificationRequestContent(e){let t,r;try{var _=xo(e)?0:To(e,Go.__wbindgen_malloc),n=Zo;const o=Go.otheruseridentity_verificationRequestContent(this.__wbg_ptr,_,n);var i=o[0],s=o[1];if(o[3])throw i=0,s=0,No(o[2]);return t=i,r=s,Do(i,s)}finally{Go.__wbindgen_free(t,r,1)}}verify(){return Go.otheruseridentity_verify(this.__wbg_ptr)}wasPreviouslyVerified(){return 0!==Go.otheruseridentity_wasPreviouslyVerified(this.__wbg_ptr)}withdrawVerification(){return Go.otheruseridentity_withdrawVerification(this.__wbg_ptr)}}Symbol.dispose&&(_e.prototype[Symbol.dispose]=_e.prototype.free);class ne{static __wrap(e){const t=Object.create(ne.prototype);return t.__wbg_ptr=e,Bs.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Bs.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_outboundcreationresult_free(e,0)}get channel(){const e=Go.__wbg_get_outboundcreationresult_channel(this.__wbg_ptr);return x.__wrap(e)}get initial_message(){let e,t;try{const r=Go.__wbg_get_outboundcreationresult_initial_message(this.__wbg_ptr);return e=r[0],t=r[1],Do(r[0],r[1])}finally{Go.__wbindgen_free(e,t,1)}}set channel(e){zo(e,x);var t=e.__destroy_into_raw();Go.__wbg_set_outboundcreationresult_channel(this.__wbg_ptr,t)}set initial_message(e){const t=Po(e,Go.__wbindgen_malloc,Go.__wbindgen_realloc),r=Zo;Go.__wbg_set_outboundcreationresult_initial_message(this.__wbg_ptr,t,r)}}Symbol.dispose&&(ne.prototype[Symbol.dispose]=ne.prototype.free);class ie{static __wrap(e){const t=Object.create(ie.prototype);return t.__wbg_ptr=e,Vs.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Vs.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_ownuseridentity_free(e,0)}hasVerificationViolation(){return 0!==Go.ownuseridentity_hasVerificationViolation(this.__wbg_ptr)}isVerified(){return 0!==Go.ownuseridentity_isVerified(this.__wbg_ptr)}get masterKey(){let e,t;try{const n=Go.ownuseridentity_masterKey(this.__wbg_ptr);var r=n[0],_=n[1];if(n[3])throw r=0,_=0,No(n[2]);return e=r,t=_,Do(r,_)}finally{Go.__wbindgen_free(e,t,1)}}requestVerification(e){var t=xo(e)?0:To(e,Go.__wbindgen_malloc),r=Zo;const _=Go.ownuseridentity_requestVerification(this.__wbg_ptr,t,r);if(_[2])throw No(_[1]);return No(_[0])}get selfSigningKey(){let e,t;try{const n=Go.ownuseridentity_selfSigningKey(this.__wbg_ptr);var r=n[0],_=n[1];if(n[3])throw r=0,_=0,No(n[2]);return e=r,t=_,Do(r,_)}finally{Go.__wbindgen_free(e,t,1)}}trustsOurOwnDevice(){return Go.ownuseridentity_trustsOurOwnDevice(this.__wbg_ptr)}get userSigningKey(){let e,t;try{const n=Go.ownuseridentity_userSigningKey(this.__wbg_ptr);var r=n[0],_=n[1];if(n[3])throw r=0,_=0,No(n[2]);return e=r,t=_,Do(r,_)}finally{Go.__wbindgen_free(e,t,1)}}verify(){return Go.ownuseridentity_verify(this.__wbg_ptr)}wasPreviouslyVerified(){return 0!==Go.ownuseridentity_wasPreviouslyVerified(this.__wbg_ptr)}withdrawVerification(){return Go.ownuseridentity_withdrawVerification(this.__wbg_ptr)}}Symbol.dispose&&(ie.prototype[Symbol.dispose]=ie.prototype.free);class se{static __unwrap(e){return e instanceof se?e.__destroy_into_raw():0}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Es.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_pickledinboundgroupsession_free(e,0)}get backedUp(){return 0!==Go.__wbg_get_pickledinboundgroupsession_backedUp(this.__wbg_ptr)}get imported(){return 0!==Go.__wbg_get_pickledinboundgroupsession_imported(this.__wbg_ptr)}get pickle(){let e,t;try{const r=Go.__wbg_get_pickledinboundgroupsession_pickle(this.__wbg_ptr);return e=r[0],t=r[1],Do(r[0],r[1])}finally{Go.__wbindgen_free(e,t,1)}}get roomId(){const e=Go.__wbg_get_pickledinboundgroupsession_roomId(this.__wbg_ptr);return 0===e?void 0:Se.__wrap(e)}get senderKey(){let e,t;try{const r=Go.__wbg_get_pickledinboundgroupsession_senderKey(this.__wbg_ptr);return e=r[0],t=r[1],Do(r[0],r[1])}finally{Go.__wbindgen_free(e,t,1)}}get senderSigningKey(){const e=Go.__wbg_get_pickledinboundgroupsession_senderSigningKey(this.__wbg_ptr);let t;return 0!==e[0]&&(t=Do(e[0],e[1]).slice(),Go.__wbindgen_free(e[0],1*e[1],1)),t}constructor(){const e=Go.pickledinboundgroupsession_new();return this.__wbg_ptr=e,Es.register(this,this.__wbg_ptr,this),this}set backedUp(e){Go.__wbg_set_pickledinboundgroupsession_backedUp(this.__wbg_ptr,e)}set imported(e){Go.__wbg_set_pickledinboundgroupsession_imported(this.__wbg_ptr,e)}set pickle(e){const t=Po(e,Go.__wbindgen_malloc,Go.__wbindgen_realloc),r=Zo;Go.__wbg_set_pickledinboundgroupsession_pickle(this.__wbg_ptr,t,r)}set roomId(e){let t=0;xo(e)||(zo(e,Se),t=e.__destroy_into_raw()),Go.__wbg_set_pickledinboundgroupsession_roomId(this.__wbg_ptr,t)}set senderKey(e){const t=Po(e,Go.__wbindgen_malloc,Go.__wbindgen_realloc),r=Zo;Go.__wbg_set_pickledinboundgroupsession_senderKey(this.__wbg_ptr,t,r)}set senderSigningKey(e){var t=xo(e)?0:Po(e,Go.__wbindgen_malloc,Go.__wbindgen_realloc),r=Zo;Go.__wbg_set_pickledinboundgroupsession_senderSigningKey(this.__wbg_ptr,t,r)}}Symbol.dispose&&(se.prototype[Symbol.dispose]=se.prototype.free);class oe{static __unwrap(e){return e instanceof oe?e.__destroy_into_raw():0}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,xs.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_pickledsession_free(e,0)}get createdUsingFallbackKey(){return 0!==Go.__wbg_get_pickledsession_createdUsingFallbackKey(this.__wbg_ptr)}get creationTime(){return Go.__wbg_get_pickledsession_creationTime(this.__wbg_ptr)}get lastUseTime(){return Go.__wbg_get_pickledsession_lastUseTime(this.__wbg_ptr)}get pickle(){let e,t;try{const r=Go.__wbg_get_pickledsession_pickle(this.__wbg_ptr);return e=r[0],t=r[1],Do(r[0],r[1])}finally{Go.__wbindgen_free(e,t,1)}}get senderKey(){let e,t;try{const r=Go.__wbg_get_pickledsession_senderKey(this.__wbg_ptr);return e=r[0],t=r[1],Do(r[0],r[1])}finally{Go.__wbindgen_free(e,t,1)}}constructor(){const e=Go.pickledsession_new();return this.__wbg_ptr=e,xs.register(this,this.__wbg_ptr,this),this}set createdUsingFallbackKey(e){Go.__wbg_set_pickledsession_createdUsingFallbackKey(this.__wbg_ptr,e)}set creationTime(e){Go.__wbg_set_pickledsession_creationTime(this.__wbg_ptr,e)}set lastUseTime(e){Go.__wbg_set_pickledsession_lastUseTime(this.__wbg_ptr,e)}set pickle(e){const t=Po(e,Go.__wbindgen_malloc,Go.__wbindgen_realloc),r=Zo;Go.__wbg_set_pickledsession_pickle(this.__wbg_ptr,t,r)}set senderKey(e){const t=Po(e,Go.__wbindgen_malloc,Go.__wbindgen_realloc),r=Zo;Go.__wbg_set_pickledsession_senderKey(this.__wbg_ptr,t,r)}}Symbol.dispose&&(oe.prototype[Symbol.dispose]=oe.prototype.free);class ge{static __wrap(e){const t=Object.create(ge.prototype);return t.__wbg_ptr=e,Ms.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Ms.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_pkdecryption_free(e,0)}decrypt(e){zo(e,ce);const t=Go.pkdecryption_decrypt(this.__wbg_ptr,e.__wbg_ptr);if(t[3])throw No(t[2]);var r=Co(t[0],t[1]).slice();return Go.__wbindgen_free(t[0],1*t[1],1),r}decryptString(e){let t,r;try{zo(e,ce);const i=Go.pkdecryption_decryptString(this.__wbg_ptr,e.__wbg_ptr);var _=i[0],n=i[1];if(i[3])throw _=0,n=0,No(i[2]);return t=_,r=n,Do(_,n)}finally{Go.__wbindgen_free(t,r,1)}}static fromKey(e){zo(e,l);const t=Go.pkdecryption_fromKey(e.__wbg_ptr);return ge.__wrap(t)}constructor(){const e=Go.pkdecryption_new();return this.__wbg_ptr=e,Ms.register(this,this.__wbg_ptr,this),this}publicKey(){const e=Go.pkdecryption_publicKey(this.__wbg_ptr);return b.__wrap(e)}secretKey(){const e=Go.pkdecryption_secretKey(this.__wbg_ptr);return l.__wrap(e)}}Symbol.dispose&&(ge.prototype[Symbol.dispose]=ge.prototype.free);class ae{static __wrap(e){const t=Object.create(ae.prototype);return t.__wbg_ptr=e,As.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,As.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_pkencryption_free(e,0)}encrypt(e){const t=Ao(e,Go.__wbindgen_malloc),r=Zo,_=Go.pkencryption_encrypt(this.__wbg_ptr,t,r);if(_[2])throw No(_[1]);return ce.__wrap(_[0])}encryptString(e){const t=Po(e,Go.__wbindgen_malloc,Go.__wbindgen_realloc),r=Zo,_=Go.pkencryption_encryptString(this.__wbg_ptr,t,r);if(_[2])throw No(_[1]);return ce.__wrap(_[0])}static fromKey(e){zo(e,b);const t=Go.pkencryption_fromKey(e.__wbg_ptr);return ae.__wrap(t)}}Symbol.dispose&&(ae.prototype[Symbol.dispose]=ae.prototype.free);class ce{static __wrap(e){const t=Object.create(ce.prototype);return t.__wbg_ptr=e,Ts.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Ts.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_pkmessage_free(e,0)}ciphertext(){const e=Go.pkmessage_ciphertext(this.__wbg_ptr);var t=Co(e[0],e[1]).slice();return Go.__wbindgen_free(e[0],1*e[1],1),t}ephemeralKey(){const e=Go.pkmessage_ephemeralKey(this.__wbg_ptr);return b.__wrap(e)}static fromBase64(e){zo(e,o);const t=Go.pkmessage_fromBase64(e.__wbg_ptr);if(t[2])throw No(t[1]);return ce.__wrap(t[0])}static fromParts(e,t,r){const _=Ao(e,Go.__wbindgen_malloc),n=Zo,i=Ao(t,Go.__wbindgen_malloc),s=Zo;zo(r,b);const o=Go.pkmessage_fromParts(_,n,i,s,r.__wbg_ptr);return ce.__wrap(o)}mac(){const e=Go.pkmessage_mac(this.__wbg_ptr);var t=Co(e[0],e[1]).slice();return Go.__wbindgen_free(e[0],1*e[1],1),t}toBase64(){const e=Go.pkmessage_toBase64(this.__wbg_ptr);return o.__wrap(e)}}Symbol.dispose&&(ce.prototype[Symbol.dispose]=ce.prototype.free);class pe{static __wrap(e){const t=Object.create(pe.prototype);return t.__wbg_ptr=e,Ps.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Ps.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_plaintexttodeviceevent_free(e,0)}get rawEvent(){return Go.__wbg_get_plaintexttodeviceevent_rawEvent(this.__wbg_ptr)}get type(){return Go.plaintexttodeviceevent_type(this.__wbg_ptr)}}Symbol.dispose&&(pe.prototype[Symbol.dispose]=pe.prototype.free);const we=Object.freeze({Decrypted:0,0:"Decrypted",UnableToDecrypt:1,1:"UnableToDecrypt",PlainText:2,2:"PlainText",Invalid:3,3:"Invalid"});class de{static __wrap(e){const t=Object.create(de.prototype);return t.__wbg_ptr=e,Ns.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Ns.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_putdehydrateddevicerequest_free(e,0)}get body(){return Go.__wbg_get_putdehydrateddevicerequest_body(this.__wbg_ptr)}constructor(e){const t=Go.putdehydrateddevicerequest_new(e);return this.__wbg_ptr=t,Ns.register(this,this.__wbg_ptr,this),this}}Symbol.dispose&&(de.prototype[Symbol.dispose]=de.prototype.free);class ue{static __wrap(e){const t=Object.create(ue.prototype);return t.__wbg_ptr=e,Ls.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Ls.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_qr_free(e,0)}cancel(){const e=Go.qr_cancel(this.__wbg_ptr);if(e[2])throw No(e[1]);return No(e[0])}cancelInfo(){const e=Go.qr_cancelInfo(this.__wbg_ptr);return 0===e?void 0:a.__wrap(e)}cancelWithCode(e){const t=Po(e,Go.__wbindgen_malloc,Go.__wbindgen_realloc),r=Zo,_=Go.qr_cancelWithCode(this.__wbg_ptr,t,r);if(_[2])throw No(_[1]);return No(_[0])}confirmScanning(){const e=Go.qr_confirmScanning(this.__wbg_ptr);if(e[2])throw No(e[1]);return No(e[0])}get flowId(){let e,t;try{const r=Go.qr_flowId(this.__wbg_ptr);return e=r[0],t=r[1],Do(r[0],r[1])}finally{Go.__wbindgen_free(e,t,1)}}hasBeenConfirmed(){return 0!==Go.qr_hasBeenConfirmed(this.__wbg_ptr)}hasBeenScanned(){return 0!==Go.qr_hasBeenScanned(this.__wbg_ptr)}isCancelled(){return 0!==Go.qr_isCancelled(this.__wbg_ptr)}isDone(){return 0!==Go.qr_isDone(this.__wbg_ptr)}isSelfVerification(){return 0!==Go.qr_isSelfVerification(this.__wbg_ptr)}get otherDeviceId(){const e=Go.qr_otherDeviceId(this.__wbg_ptr);return F.__wrap(e)}get otherUserId(){const e=Go.qr_otherUserId(this.__wbg_ptr);return Xe.__wrap(e)}reciprocate(){const e=Go.qr_reciprocate(this.__wbg_ptr);if(e[2])throw No(e[1]);return No(e[0])}reciprocated(){return 0!==Go.qr_reciprocated(this.__wbg_ptr)}registerChangesCallback(e){Go.qr_registerChangesCallback(this.__wbg_ptr,e)}get roomId(){const e=Go.qr_roomId(this.__wbg_ptr);return 0===e?void 0:Se.__wrap(e)}state(){return Go.qr_state(this.__wbg_ptr)}toBytes(){const e=Go.qr_toBytes(this.__wbg_ptr);if(e[2])throw No(e[1]);return No(e[0])}toQrCode(){const e=Go.qr_toQrCode(this.__wbg_ptr);if(e[2])throw No(e[1]);return be.__wrap(e[0])}get userId(){const e=Go.qr_userId(this.__wbg_ptr);return Xe.__wrap(e)}weStarted(){return 0!==Go.qr_weStarted(this.__wbg_ptr)}}Symbol.dispose&&(ue.prototype[Symbol.dispose]=ue.prototype.free);class be{static __wrap(e){const t=Object.create(be.prototype);return t.__wbg_ptr=e,Js.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Js.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_qrcode_free(e,0)}renderIntoBuffer(){const e=Go.qrcode_renderIntoBuffer(this.__wbg_ptr);if(e[2])throw No(e[1]);return No(e[0])}}Symbol.dispose&&(be.prototype[Symbol.dispose]=be.prototype.free);class le{static __wrap(e){const t=Object.create(le.prototype);return t.__wbg_ptr=e,Ws.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Ws.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_qrcodedata_free(e,0)}static fromBase64(e){const t=Po(e,Go.__wbindgen_malloc,Go.__wbindgen_realloc),r=Zo,_=Go.qrcodedata_fromBase64(t,r);if(_[2])throw No(_[1]);return le.__wrap(_[0])}static fromBytes(e){const t=Ao(e,Go.__wbindgen_malloc),r=Zo,_=Go.qrcodedata_fromBytes(t,r);if(_[2])throw No(_[1]);return le.__wrap(_[0])}get intentData(){const e=Go.qrcodedata_intentData(this.__wbg_ptr);return he.__wrap(e)}get mode(){return Go.qrcodedata_mode(this.__wbg_ptr)}constructor(e,t,r){zo(e,b);var _=e.__destroy_into_raw();const n=Po(t,Go.__wbindgen_malloc,Go.__wbindgen_realloc),i=Zo;var s=xo(r)?0:Po(r,Go.__wbindgen_malloc,Go.__wbindgen_realloc),o=Zo;const g=Go.qrcodedata_new(_,n,i,s,o);if(g[2])throw No(g[1]);return this.__wbg_ptr=g[0],Ws.register(this,this.__wbg_ptr,this),this}static newMsc4388(e,t,r,_){zo(e,b);var n=e.__destroy_into_raw();const i=Po(t,Go.__wbindgen_malloc,Go.__wbindgen_realloc),s=Zo,o=Po(r,Go.__wbindgen_malloc,Go.__wbindgen_realloc),g=Zo,a=Go.qrcodedata_newMsc4388(n,i,s,o,g,_);if(a[2])throw No(a[1]);return le.__wrap(a[0])}get publicKey(){const e=Go.qrcodedata_publicKey(this.__wbg_ptr);return b.__wrap(e)}get rendezvousUrl(){const e=Go.qrcodedata_rendezvousUrl(this.__wbg_ptr);let t;return 0!==e[0]&&(t=Do(e[0],e[1]).slice(),Go.__wbindgen_free(e[0],1*e[1],1)),t}get serverName(){const e=Go.qrcodedata_serverName(this.__wbg_ptr);let t;return 0!==e[0]&&(t=Do(e[0],e[1]).slice(),Go.__wbindgen_free(e[0],1*e[1],1)),t}toBase64(){let e,t;try{const r=Go.qrcodedata_toBase64(this.__wbg_ptr);return e=r[0],t=r[1],Do(r[0],r[1])}finally{Go.__wbindgen_free(e,t,1)}}toBytes(){const e=Go.qrcodedata_toBytes(this.__wbg_ptr);var t=Co(e[0],e[1]).slice();return Go.__wbindgen_free(e[0],1*e[1],1),t}}Symbol.dispose&&(le.prototype[Symbol.dispose]=le.prototype.free);const ye=Object.freeze({Login:0,0:"Login",Reciprocate:1,1:"Reciprocate"});class he{static __wrap(e){const t=Object.create(he.prototype);return t.__wbg_ptr=e,Qs.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Qs.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_qrcodeintentdata_free(e,0)}get msc4108(){const e=Go.__wbg_get_qrcodeintentdata_msc4108(this.__wbg_ptr);return 0===e?void 0:ee.__wrap(e)}get msc4388(){const e=Go.__wbg_get_qrcodeintentdata_msc4388(this.__wbg_ptr);return 0===e?void 0:te.__wrap(e)}set msc4108(e){let t=0;xo(e)||(zo(e,ee),t=e.__destroy_into_raw()),Go.__wbg_set_qrcodeintentdata_msc4108(this.__wbg_ptr,t)}set msc4388(e){let t=0;xo(e)||(zo(e,te),t=e.__destroy_into_raw()),Go.__wbg_set_qrcodeintentdata_msc4388(this.__wbg_ptr,t)}}Symbol.dispose&&(he.prototype[Symbol.dispose]=he.prototype.free);class fe{static __wrap(e){const t=Object.create(fe.prototype);return t.__wbg_ptr=e,Gs.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Gs.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_qrcodescan_free(e,0)}static fromBytes(e){const t=Go.qrcodescan_fromBytes(e);if(t[2])throw No(t[1]);return fe.__wrap(t[0])}}Symbol.dispose&&(fe.prototype[Symbol.dispose]=fe.prototype.free);const me=Object.freeze({Created:0,0:"Created",Scanned:1,1:"Scanned",Confirmed:2,2:"Confirmed",Reciprocated:3,3:"Reciprocated",Done:4,4:"Done",Cancelled:5,5:"Cancelled"});class ve{static __wrap(e){const t=Object.create(ve.prototype);return t.__wbg_ptr=e,Zs.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Zs.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_rehydrateddevice_free(e,0)}receiveEvents(e,t){const r=Po(e,Go.__wbindgen_malloc,Go.__wbindgen_realloc),_=Zo;let n=0;xo(t)||(zo(t,m),n=t.__destroy_into_raw());return Go.rehydrateddevice_receiveEvents(this.__wbg_ptr,r,_,n)}}Symbol.dispose&&(ve.prototype[Symbol.dispose]=ve.prototype.free);Object.freeze({KeysUpload:0,0:"KeysUpload",KeysQuery:1,1:"KeysQuery",KeysClaim:2,2:"KeysClaim",ToDevice:3,3:"ToDevice",SignatureUpload:4,4:"SignatureUpload",RoomMessage:5,5:"RoomMessage",KeysBackup:6,6:"KeysBackup"});class Se{static __wrap(e){const t=Object.create(Se.prototype);return t.__wbg_ptr=e,Xs.register(t,t.__wbg_ptr,t),t}static __unwrap(e){return e instanceof Se?e.__destroy_into_raw():0}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Xs.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_roomid_free(e,0)}constructor(e){const t=Po(e,Go.__wbindgen_malloc,Go.__wbindgen_realloc),r=Zo,_=Go.roomid_new(t,r);if(_[2])throw No(_[1]);return this.__wbg_ptr=_[0],Xs.register(this,this.__wbg_ptr,this),this}toString(){let e,t;try{const r=Go.roomid_toString(this.__wbg_ptr);return e=r[0],t=r[1],Do(r[0],r[1])}finally{Go.__wbindgen_free(e,t,1)}}}Symbol.dispose&&(Se.prototype[Symbol.dispose]=Se.prototype.free);class ke{static __wrap(e){const t=Object.create(ke.prototype);return t.__wbg_ptr=e,$s.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,$s.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_roomkeycounts_free(e,0)}get backedUp(){return Go.__wbg_get_roomkeycounts_backedUp(this.__wbg_ptr)}get total(){return Go.__wbg_get_roomkeycounts_total(this.__wbg_ptr)}set backedUp(e){Go.__wbg_set_roomkeycounts_backedUp(this.__wbg_ptr,e)}set total(e){Go.__wbg_set_roomkeycounts_total(this.__wbg_ptr,e)}}Symbol.dispose&&(ke.prototype[Symbol.dispose]=ke.prototype.free);class Re{static __wrap(e){const t=Object.create(Re.prototype);return t.__wbg_ptr=e,Hs.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Hs.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_roomkeyimportresult_free(e,0)}get importedCount(){return Go.__wbg_get_roomkeyimportresult_importedCount(this.__wbg_ptr)>>>0}get totalCount(){return Go.__wbg_get_roomkeyimportresult_totalCount(this.__wbg_ptr)>>>0}keys(){return Go.roomkeyimportresult_keys(this.__wbg_ptr)}}Symbol.dispose&&(Re.prototype[Symbol.dispose]=Re.prototype.free);class Fe{static __wrap(e){const t=Object.create(Fe.prototype);return t.__wbg_ptr=e,Ys.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Ys.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_roomkeyinfo_free(e,0)}get algorithm(){return Go.roomkeyinfo_algorithm(this.__wbg_ptr)}get roomId(){const e=Go.roomkeyinfo_roomId(this.__wbg_ptr);return Se.__wrap(e)}get senderKey(){const e=Go.roomkeyinfo_senderKey(this.__wbg_ptr);return b.__wrap(e)}get sessionId(){let e,t;try{const r=Go.roomkeyinfo_sessionId(this.__wbg_ptr);return e=r[0],t=r[1],Do(r[0],r[1])}finally{Go.__wbindgen_free(e,t,1)}}}Symbol.dispose&&(Fe.prototype[Symbol.dispose]=Fe.prototype.free);class ze{static __wrap(e){const t=Object.create(ze.prototype);return t.__wbg_ptr=e,eo.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,eo.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_roomkeywithheldinfo_free(e,0)}get algorithm(){return Go.roomkeywithheldinfo_algorithm(this.__wbg_ptr)}get roomId(){const e=Go.roomkeywithheldinfo_roomId(this.__wbg_ptr);return Se.__wrap(e)}get sender(){const e=Go.roomkeywithheldinfo_sender(this.__wbg_ptr);return Xe.__wrap(e)}get sessionId(){let e,t;try{const r=Go.roomkeywithheldinfo_sessionId(this.__wbg_ptr);return e=r[0],t=r[1],Do(r[0],r[1])}finally{Go.__wbindgen_free(e,t,1)}}get withheldCode(){let e,t;try{const r=Go.roomkeywithheldinfo_withheldCode(this.__wbg_ptr);return e=r[0],t=r[1],Do(r[0],r[1])}finally{Go.__wbindgen_free(e,t,1)}}}Symbol.dispose&&(ze.prototype[Symbol.dispose]=ze.prototype.free);class Ke{static __wrap(e){const t=Object.create(Ke.prototype);return t.__wbg_ptr=e,to.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,to.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_roommessagerequest_free(e,0)}get body(){return Go.__wbg_get_roommessagerequest_body(this.__wbg_ptr)}get event_type(){return Go.__wbg_get_roommessagerequest_event_type(this.__wbg_ptr)}get id(){return Go.__wbg_get_roommessagerequest_id(this.__wbg_ptr)}get room_id(){return Go.__wbg_get_roommessagerequest_room_id(this.__wbg_ptr)}get txn_id(){return Go.__wbg_get_roommessagerequest_txn_id(this.__wbg_ptr)}constructor(e,t,r,_,n){const i=Go.roommessagerequest_new(e,t,r,_,n);return this.__wbg_ptr=i,to.register(this,this.__wbg_ptr,this),this}get type(){return Go.roommessagerequest_type(this.__wbg_ptr)}}Symbol.dispose&&(Ke.prototype[Symbol.dispose]=Ke.prototype.free);class qe{static __wrap(e){const t=Object.create(qe.prototype);return t.__wbg_ptr=e,ro.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ro.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_roompendingkeybundledetails_free(e,0)}get inviteAcceptedAtMillis(){return Go.roompendingkeybundledetails_inviteAcceptedAtMillis(this.__wbg_ptr)}get inviterId(){const e=Go.roompendingkeybundledetails_inviterId(this.__wbg_ptr);return Xe.__wrap(e)}get roomId(){const e=Go.roompendingkeybundledetails_roomId(this.__wbg_ptr);return Se.__wrap(e)}}Symbol.dispose&&(qe.prototype[Symbol.dispose]=qe.prototype.free);class Ie{static __wrap(e){const t=Object.create(Ie.prototype);return t.__wbg_ptr=e,_o.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,_o.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_roomsettings_free(e,0)}get algorithm(){return Go.__wbg_get_roomsettings_algorithm(this.__wbg_ptr)}get encryptStateEvents(){return 0!==Go.__wbg_get_roomsettings_encryptStateEvents(this.__wbg_ptr)}get onlyAllowTrustedDevices(){return 0!==Go.__wbg_get_roomsettings_onlyAllowTrustedDevices(this.__wbg_ptr)}get sessionRotationPeriodMessages(){const e=Go.__wbg_get_roomsettings_sessionRotationPeriodMessages(this.__wbg_ptr);return 0===e[0]?void 0:e[1]}get sessionRotationPeriodMs(){const e=Go.__wbg_get_roomsettings_sessionRotationPeriodMs(this.__wbg_ptr);return 0===e[0]?void 0:e[1]}constructor(){const e=Go.roomsettings_new();return this.__wbg_ptr=e,_o.register(this,this.__wbg_ptr,this),this}set algorithm(e){Go.__wbg_set_roomsettings_algorithm(this.__wbg_ptr,e)}set encryptStateEvents(e){Go.__wbg_set_roomsettings_encryptStateEvents(this.__wbg_ptr,e)}set onlyAllowTrustedDevices(e){Go.__wbg_set_roomsettings_onlyAllowTrustedDevices(this.__wbg_ptr,e)}set sessionRotationPeriodMessages(e){Go.__wbg_set_roomsettings_sessionRotationPeriodMessages(this.__wbg_ptr,!xo(e),xo(e)?0:e)}set sessionRotationPeriodMs(e){Go.__wbg_set_roomsettings_sessionRotationPeriodMs(this.__wbg_ptr,!xo(e),xo(e)?0:e)}}Symbol.dispose&&(Ie.prototype[Symbol.dispose]=Ie.prototype.free);class Ce{static __wrap(e){const t=Object.create(Ce.prototype);return t.__wbg_ptr=e,no.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,no.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_sas_free(e,0)}accept(){const e=Go.sas_accept(this.__wbg_ptr);if(e[2])throw No(e[1]);return No(e[0])}canBePresented(){return 0!==Go.sas_canBePresented(this.__wbg_ptr)}cancel(){const e=Go.sas_cancel(this.__wbg_ptr);if(e[2])throw No(e[1]);return No(e[0])}cancelInfo(){const e=Go.sas_cancelInfo(this.__wbg_ptr);return 0===e?void 0:a.__wrap(e)}cancelWithCode(e){const t=Po(e,Go.__wbindgen_malloc,Go.__wbindgen_realloc),r=Zo,_=Go.sas_cancelWithCode(this.__wbg_ptr,t,r);if(_[2])throw No(_[1]);return No(_[0])}confirm(){return Go.sas_confirm(this.__wbg_ptr)}decimals(){const e=Go.sas_decimals(this.__wbg_ptr);let t;var r,_;return 0!==e[0]&&(t=(r=e[0],_=e[1],r>>>=0,(null!==jo&&0!==jo.byteLength||(jo=new Uint16Array(Go.memory.buffer)),jo).subarray(r/2,r/2+_)).slice(),Go.__wbindgen_free(e[0],2*e[1],2)),t}get deviceId(){const e=Go.sas_deviceId(this.__wbg_ptr);return F.__wrap(e)}emoji(){const e=Go.sas_emoji(this.__wbg_ptr);let t;return 0!==e[0]&&(t=Io(e[0],e[1]).slice(),Go.__wbindgen_free(e[0],4*e[1],4)),t}emojiIndex(){const e=Go.sas_emojiIndex(this.__wbg_ptr);let t;return 0!==e[0]&&(t=Co(e[0],e[1]).slice(),Go.__wbindgen_free(e[0],1*e[1],1)),t}get flowId(){let e,t;try{const r=Go.sas_flowId(this.__wbg_ptr);return e=r[0],t=r[1],Do(r[0],r[1])}finally{Go.__wbindgen_free(e,t,1)}}hasBeenAccepted(){return 0!==Go.sas_hasBeenAccepted(this.__wbg_ptr)}haveWeConfirmed(){return 0!==Go.sas_haveWeConfirmed(this.__wbg_ptr)}isCancelled(){return 0!==Go.sas_isCancelled(this.__wbg_ptr)}isDone(){return 0!==Go.sas_isDone(this.__wbg_ptr)}isSelfVerification(){return 0!==Go.sas_isSelfVerification(this.__wbg_ptr)}get otherDeviceId(){const e=Go.sas_otherDeviceId(this.__wbg_ptr);return F.__wrap(e)}get otherUserId(){const e=Go.sas_otherUserId(this.__wbg_ptr);return Xe.__wrap(e)}registerChangesCallback(e){Go.sas_registerChangesCallback(this.__wbg_ptr,e)}get roomId(){const e=Go.sas_roomId(this.__wbg_ptr);return 0===e?void 0:Se.__wrap(e)}startedFromRequest(){return 0!==Go.sas_startedFromRequest(this.__wbg_ptr)}supportsEmoji(){return 0!==Go.sas_supportsEmoji(this.__wbg_ptr)}timedOut(){return 0!==Go.sas_timedOut(this.__wbg_ptr)}get userId(){const e=Go.sas_userId(this.__wbg_ptr);return Xe.__wrap(e)}weStarted(){return 0!==Go.sas_weStarted(this.__wbg_ptr)}}Symbol.dispose&&(Ce.prototype[Symbol.dispose]=Ce.prototype.free);class Ue{static __wrap(e){const t=Object.create(Ue.prototype);return t.__wbg_ptr=e,io.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,io.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_secretsbundle_free(e,0)}get backupBundle(){const e=Go.secretsbundle_backupBundle(this.__wbg_ptr);return 0===e?void 0:s.__wrap(e)}static from_json(e){const t=Go.secretsbundle_from_json(e);if(t[2])throw No(t[1]);return Ue.__wrap(t[0])}get masterKey(){let e,t;try{const r=Go.secretsbundle_masterKey(this.__wbg_ptr);return e=r[0],t=r[1],Do(r[0],r[1])}finally{Go.__wbindgen_free(e,t,1)}}get selfSigningKey(){let e,t;try{const r=Go.secretsbundle_selfSigningKey(this.__wbg_ptr);return e=r[0],t=r[1],Do(r[0],r[1])}finally{Go.__wbindgen_free(e,t,1)}}to_json(){const e=Go.secretsbundle_to_json(this.__wbg_ptr);if(e[2])throw No(e[1]);return No(e[0])}get userSigningKey(){let e,t;try{const r=Go.secretsbundle_userSigningKey(this.__wbg_ptr);return e=r[0],t=r[1],Do(r[0],r[1])}finally{Go.__wbindgen_free(e,t,1)}}}Symbol.dispose&&(Ue.prototype[Symbol.dispose]=Ue.prototype.free);class Oe{static __wrap(e){const t=Object.create(Oe.prototype);return t.__wbg_ptr=e,so.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,so.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_servername_free(e,0)}get host(){let e,t;try{const r=Go.servername_host(this.__wbg_ptr);return e=r[0],t=r[1],Do(r[0],r[1])}finally{Go.__wbindgen_free(e,t,1)}}isIpLiteral(){return 0!==Go.servername_isIpLiteral(this.__wbg_ptr)}constructor(e){const t=Po(e,Go.__wbindgen_malloc,Go.__wbindgen_realloc),r=Zo,_=Go.servername_new(t,r);if(_[2])throw No(_[1]);return this.__wbg_ptr=_[0],so.register(this,this.__wbg_ptr,this),this}get port(){const e=Go.servername_port(this.__wbg_ptr);return 16777215===e?void 0:e}}Symbol.dispose&&(Oe.prototype[Symbol.dispose]=Oe.prototype.free);const De=Object.freeze({Red:0,0:"Red",Grey:1,1:"Grey",None:2,2:"None"});class je{static __wrap(e){const t=Object.create(je.prototype);return t.__wbg_ptr=e,oo.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,oo.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_shieldstate_free(e,0)}get code(){const e=Go.__wbg_get_shieldstate_code(this.__wbg_ptr);return 6===e?void 0:e}get color(){return Go.__wbg_get_shieldstate_color(this.__wbg_ptr)}set code(e){Go.__wbg_set_shieldstate_code(this.__wbg_ptr,xo(e)?6:e)}set color(e){Go.__wbg_set_shieldstate_color(this.__wbg_ptr,e)}get message(){const e=Go.shieldstate_message(this.__wbg_ptr);let t;return 0!==e[0]&&(t=Do(e[0],e[1]).slice(),Go.__wbindgen_free(e[0],1*e[1],1)),t}}Symbol.dispose&&(je.prototype[Symbol.dispose]=je.prototype.free);const Be=Object.freeze({AuthenticityNotGuaranteed:0,0:"AuthenticityNotGuaranteed",UnknownDevice:1,1:"UnknownDevice",UnsignedDevice:2,2:"UnsignedDevice",UnverifiedIdentity:3,3:"UnverifiedIdentity",VerificationViolation:4,4:"VerificationViolation",MismatchedSender:5,5:"MismatchedSender"});class Ve{static __wrap(e){const t=Object.create(Ve.prototype);return t.__wbg_ptr=e,go.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,go.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_signature_free(e,0)}get ed25519(){const e=Go.signature_ed25519(this.__wbg_ptr);return 0===e?void 0:O.__wrap(e)}toBase64(){let e,t;try{const r=Go.signature_toBase64(this.__wbg_ptr);return e=r[0],t=r[1],Do(r[0],r[1])}finally{Go.__wbindgen_free(e,t,1)}}}Symbol.dispose&&(Ve.prototype[Symbol.dispose]=Ve.prototype.free);Object.freeze({Missing:0,0:"Missing",Invalid:1,1:"Invalid",ValidButNotTrusted:2,2:"ValidButNotTrusted",ValidAndTrusted:3,3:"ValidAndTrusted"});class Ee{static __wrap(e){const t=Object.create(Ee.prototype);return t.__wbg_ptr=e,ao.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ao.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_signatureuploadrequest_free(e,0)}get body(){return Go.__wbg_get_signatureuploadrequest_body(this.__wbg_ptr)}get id(){return Go.__wbg_get_signatureuploadrequest_id(this.__wbg_ptr)}constructor(e,t){const r=Go.signatureuploadrequest_new(e,t);return this.__wbg_ptr=r,ao.register(this,this.__wbg_ptr,this),this}get type(){return Go.signatureuploadrequest_type(this.__wbg_ptr)}}Symbol.dispose&&(Ee.prototype[Symbol.dispose]=Ee.prototype.free);class xe{static __wrap(e){const t=Object.create(xe.prototype);return t.__wbg_ptr=e,co.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,co.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_signatureverification_free(e,0)}get deviceState(){return Go.signatureverification_deviceState(this.__wbg_ptr)}trusted(){return 0!==Go.signatureverification_trusted(this.__wbg_ptr)}get userState(){return Go.signatureverification_userState(this.__wbg_ptr)}}Symbol.dispose&&(xe.prototype[Symbol.dispose]=xe.prototype.free);class Me{static __wrap(e){const t=Object.create(Me.prototype);return t.__wbg_ptr=e,po.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,po.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_signatures_free(e,0)}addSignature(e,t,r){zo(e,Xe),zo(t,q),zo(r,O);const _=Go.signatures_addSignature(this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr);return 0===_?void 0:X.__wrap(_)}asJSON(){const e=Go.signatures_asJSON(this.__wbg_ptr);if(e[2])throw No(e[1]);return No(e[0])}clear(){Go.signatures_clear(this.__wbg_ptr)}get count(){return Go.signatures_count(this.__wbg_ptr)>>>0}get(e){zo(e,Xe);return Go.signatures_get(this.__wbg_ptr,e.__wbg_ptr)}getSignature(e,t){zo(e,Xe),zo(t,q);const r=Go.signatures_getSignature(this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr);return 0===r?void 0:O.__wrap(r)}isEmpty(){return 0!==Go.signatures_isEmpty(this.__wbg_ptr)}constructor(){const e=Go.signatures_new();return this.__wbg_ptr=e,po.register(this,this.__wbg_ptr,this),this}}Symbol.dispose&&(Me.prototype[Symbol.dispose]=Me.prototype.free);class Ae{static __wrap(e){const t=Object.create(Ae.prototype);return t.__wbg_ptr=e,wo.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,wo.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_storehandle_free(e,0)}static open(e,t,r){var _=xo(e)?0:Po(e,Go.__wbindgen_malloc,Go.__wbindgen_realloc),n=Zo,i=xo(t)?0:Po(t,Go.__wbindgen_malloc,Go.__wbindgen_realloc),s=Zo;return Go.storehandle_open(_,n,i,s,xo(r)?0:Fo(r))}static openWithKey(e,t,r){const _=Po(e,Go.__wbindgen_malloc,Go.__wbindgen_realloc),n=Zo,i=Ao(t,Go.__wbindgen_malloc),s=Zo;return Go.storehandle_openWithKey(_,n,i,s,xo(r)?0:Fo(r))}}Symbol.dispose&&(Ae.prototype[Symbol.dispose]=Ae.prototype.free);class Te{static __wrap(e){const t=Object.create(Te.prototype);return t.__wbg_ptr=e,uo.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,uo.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_storedroomkeybundledata_free(e,0)}get encryptionInfo(){let e,t;try{const r=Go.storedroomkeybundledata_encryptionInfo(this.__wbg_ptr);return e=r[0],t=r[1],Do(r[0],r[1])}finally{Go.__wbindgen_free(e,t,1)}}get roomId(){const e=Go.storedroomkeybundledata_roomId(this.__wbg_ptr);return Se.__wrap(e)}get senderUser(){const e=Go.storedroomkeybundledata_senderUser(this.__wbg_ptr);return Xe.__wrap(e)}get url(){let e,t;try{const r=Go.storedroomkeybundledata_url(this.__wbg_ptr);return e=r[0],t=r[1],Do(r[0],r[1])}finally{Go.__wbindgen_free(e,t,1)}}}Symbol.dispose&&(Te.prototype[Symbol.dispose]=Te.prototype.free);class Pe{static __wrap(e){const t=Object.create(Pe.prototype);return t.__wbg_ptr=e,bo.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,bo.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_todeviceencryptioninfo_free(e,0)}get senderCurve25519Key(){let e,t;try{const r=Go.__wbg_get_todeviceencryptioninfo_senderCurve25519Key(this.__wbg_ptr);return e=r[0],t=r[1],Do(r[0],r[1])}finally{Go.__wbindgen_free(e,t,1)}}get senderDevice(){const e=Go.__wbg_get_todeviceencryptioninfo_senderDevice(this.__wbg_ptr);return 0===e?void 0:F.__wrap(e)}get sender(){const e=Go.__wbg_get_todeviceencryptioninfo_sender(this.__wbg_ptr);return Xe.__wrap(e)}set senderCurve25519Key(e){const t=Po(e,Go.__wbindgen_malloc,Go.__wbindgen_realloc),r=Zo;Go.__wbg_set_todeviceencryptioninfo_senderCurve25519Key(this.__wbg_ptr,t,r)}set senderDevice(e){let t=0;xo(e)||(zo(e,F),t=e.__destroy_into_raw()),Go.__wbg_set_todeviceencryptioninfo_senderDevice(this.__wbg_ptr,t)}set sender(e){zo(e,Xe);var t=e.__destroy_into_raw();Go.__wbg_set_todeviceencryptioninfo_sender(this.__wbg_ptr,t)}isSenderVerified(){return 0!==Go.todeviceencryptioninfo_isSenderVerified(this.__wbg_ptr)}}Symbol.dispose&&(Pe.prototype[Symbol.dispose]=Pe.prototype.free);class Ne{static __wrap(e){const t=Object.create(Ne.prototype);return t.__wbg_ptr=e,lo.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,lo.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_todevicerequest_free(e,0)}get body(){return Go.__wbg_get_todevicerequest_body(this.__wbg_ptr)}get event_type(){return Go.__wbg_get_todevicerequest_event_type(this.__wbg_ptr)}get id(){return Go.__wbg_get_todevicerequest_id(this.__wbg_ptr)}get txn_id(){return Go.__wbg_get_todevicerequest_txn_id(this.__wbg_ptr)}constructor(e,t,r,_){const n=Go.todevicerequest_new(e,t,r,_);return this.__wbg_ptr=n,lo.register(this,this.__wbg_ptr,this),this}get type(){return Go.todevicerequest_type(this.__wbg_ptr)}}Symbol.dispose&&(Ne.prototype[Symbol.dispose]=Ne.prototype.free);class Le{static __wrap(e){const t=Object.create(Le.prototype);return t.__wbg_ptr=e,yo.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,yo.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_todeviceunabletodecryptinfo_free(e,0)}get reason(){return Go.__wbg_get_todeviceunabletodecryptinfo_reason(this.__wbg_ptr)}set reason(e){Go.__wbg_set_todeviceunabletodecryptinfo_reason(this.__wbg_ptr,e)}}Symbol.dispose&&(Le.prototype[Symbol.dispose]=Le.prototype.free);Object.freeze({DecryptionFailure:0,0:"DecryptionFailure",UnverifiedSenderDevice:1,1:"UnverifiedSenderDevice",NoOlmMachine:2,2:"NoOlmMachine",EncryptionIsDisabled:3,3:"EncryptionIsDisabled"});class Je{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ho.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_tracing_free(e,0)}static isAvailable(){return 0!==Go.tracing_isAvailable()}constructor(e){const t=Go.tracing_new(e);if(t[2])throw No(t[1]);return this.__wbg_ptr=t[0],ho.register(this,this.__wbg_ptr,this),this}set minLevel(e){const t=Go.tracing_set_minLevel(this.__wbg_ptr,e);if(t[1])throw No(t[0])}turnOff(){const e=Go.tracing_turnOff(this.__wbg_ptr);if(e[1])throw No(e[0])}turnOn(){const e=Go.tracing_turnOn(this.__wbg_ptr);if(e[1])throw No(e[0])}}Symbol.dispose&&(Je.prototype[Symbol.dispose]=Je.prototype.free);const We=Object.freeze({Untrusted:0,0:"Untrusted",CrossSignedOrLegacy:1,1:"CrossSignedOrLegacy",CrossSigned:2,2:"CrossSigned"});class Qe{static __wrap(e){const t=Object.create(Qe.prototype);return t.__wbg_ptr=e,fo.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,fo.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_utdtodeviceevent_free(e,0)}get rawEvent(){return Go.__wbg_get_utdtodeviceevent_rawEvent(this.__wbg_ptr)}get utdInfo(){const e=Go.__wbg_get_utdtodeviceevent_utdInfo(this.__wbg_ptr);return Le.__wrap(e)}get type(){return Go.utdtodeviceevent_type(this.__wbg_ptr)}}Symbol.dispose&&(Qe.prototype[Symbol.dispose]=Qe.prototype.free);class Ge{static __wrap(e){const t=Object.create(Ge.prototype);return t.__wbg_ptr=e,mo.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,mo.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_uploadsigningkeysrequest_free(e,0)}get body(){return Go.__wbg_get_uploadsigningkeysrequest_body(this.__wbg_ptr)}constructor(e){const t=Go.uploadsigningkeysrequest_new(e);return this.__wbg_ptr=t,mo.register(this,this.__wbg_ptr,this),this}}Symbol.dispose&&(Ge.prototype[Symbol.dispose]=Ge.prototype.free);class Ze{static __wrap(e){const t=Object.create(Ze.prototype);return t.__wbg_ptr=e,vo.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,vo.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_userdevices_free(e,0)}devices(){return Go.userdevices_devices(this.__wbg_ptr)}get(e){zo(e,F);const t=Go.userdevices_get(this.__wbg_ptr,e.__wbg_ptr);return 0===t?void 0:R.__wrap(t)}isAnyVerified(){return 0!==Go.userdevices_isAnyVerified(this.__wbg_ptr)}keys(){return Go.userdevices_keys(this.__wbg_ptr)}}Symbol.dispose&&(Ze.prototype[Symbol.dispose]=Ze.prototype.free);class Xe{static __wrap(e){const t=Object.create(Xe.prototype);return t.__wbg_ptr=e,So.register(t,t.__wbg_ptr,t),t}static __unwrap(e){return e instanceof Xe?e.__destroy_into_raw():0}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,So.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_userid_free(e,0)}clone(){const e=Go.userid_clone(this.__wbg_ptr);return Xe.__wrap(e)}isHistorical(){return 0!==Go.userid_isHistorical(this.__wbg_ptr)}get localpart(){let e,t;try{const r=Go.userid_localpart(this.__wbg_ptr);return e=r[0],t=r[1],Do(r[0],r[1])}finally{Go.__wbindgen_free(e,t,1)}}constructor(e){const t=Po(e,Go.__wbindgen_malloc,Go.__wbindgen_realloc),r=Zo,_=Go.userid_new(t,r);if(_[2])throw No(_[1]);return this.__wbg_ptr=_[0],So.register(this,this.__wbg_ptr,this),this}get serverName(){const e=Go.userid_serverName(this.__wbg_ptr);return Oe.__wrap(e)}toString(){let e,t;try{const r=Go.userid_toString(this.__wbg_ptr);return e=r[0],t=r[1],Do(r[0],r[1])}finally{Go.__wbindgen_free(e,t,1)}}}Symbol.dispose&&(Xe.prototype[Symbol.dispose]=Xe.prototype.free);const $e=Object.freeze({SasV1:0,0:"SasV1",QrCodeScanV1:1,1:"QrCodeScanV1",QrCodeShowV1:2,2:"QrCodeShowV1",ReciprocateV1:3,3:"ReciprocateV1"});class He{static __wrap(e){const t=Object.create(He.prototype);return t.__wbg_ptr=e,ko.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ko.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_verificationrequest_free(e,0)}accept(){const e=Go.verificationrequest_accept(this.__wbg_ptr);if(e[2])throw No(e[1]);return No(e[0])}acceptWithMethods(e){const t=To(e,Go.__wbindgen_malloc),r=Zo,_=Go.verificationrequest_acceptWithMethods(this.__wbg_ptr,t,r);if(_[2])throw No(_[1]);return No(_[0])}cancel(){const e=Go.verificationrequest_cancel(this.__wbg_ptr);if(e[2])throw No(e[1]);return No(e[0])}get cancelInfo(){const e=Go.verificationrequest_cancelInfo(this.__wbg_ptr);return 0===e?void 0:a.__wrap(e)}get flowId(){let e,t;try{const r=Go.verificationrequest_flowId(this.__wbg_ptr);return e=r[0],t=r[1],Do(r[0],r[1])}finally{Go.__wbindgen_free(e,t,1)}}generateQrCode(){return Go.verificationrequest_generateQrCode(this.__wbg_ptr)}getVerification(){return Go.verificationrequest_getVerification(this.__wbg_ptr)}isCancelled(){return 0!==Go.verificationrequest_isCancelled(this.__wbg_ptr)}isDone(){return 0!==Go.verificationrequest_isDone(this.__wbg_ptr)}isPassive(){return 0!==Go.verificationrequest_isPassive(this.__wbg_ptr)}isReady(){return 0!==Go.verificationrequest_isReady(this.__wbg_ptr)}isSelfVerification(){return 0!==Go.verificationrequest_isSelfVerification(this.__wbg_ptr)}get otherDeviceId(){const e=Go.verificationrequest_otherDeviceId(this.__wbg_ptr);return 0===e?void 0:F.__wrap(e)}get otherUserId(){const e=Go.verificationrequest_otherUserId(this.__wbg_ptr);return Xe.__wrap(e)}get ourSupportedMethods(){const e=Go.verificationrequest_ourSupportedMethods(this.__wbg_ptr);if(e[3])throw No(e[2]);let t;return 0!==e[0]&&(t=Io(e[0],e[1]).slice(),Go.__wbindgen_free(e[0],4*e[1],4)),t}get ownUserId(){const e=Go.verificationrequest_ownUserId(this.__wbg_ptr);return Xe.__wrap(e)}phase(){return Go.verificationrequest_phase(this.__wbg_ptr)}registerChangesCallback(e){Go.verificationrequest_registerChangesCallback(this.__wbg_ptr,e)}static request(e,t,r,_){let n,i;try{zo(e,Xe),zo(t,F),zo(r,Xe);var s=xo(_)?0:To(_,Go.__wbindgen_malloc),o=Zo;const c=Go.verificationrequest_request(e.__wbg_ptr,t.__wbg_ptr,r.__wbg_ptr,s,o);var g=c[0],a=c[1];if(c[3])throw g=0,a=0,No(c[2]);return n=g,i=a,Do(g,a)}finally{Go.__wbindgen_free(n,i,1)}}get roomId(){const e=Go.verificationrequest_roomId(this.__wbg_ptr);return 0===e?void 0:Se.__wrap(e)}scanQrCode(e){zo(e,fe);return Go.verificationrequest_scanQrCode(this.__wbg_ptr,e.__wbg_ptr)}startSas(){return Go.verificationrequest_startSas(this.__wbg_ptr)}get theirSupportedMethods(){const e=Go.verificationrequest_theirSupportedMethods(this.__wbg_ptr);if(e[3])throw No(e[2]);let t;return 0!==e[0]&&(t=Io(e[0],e[1]).slice(),Go.__wbindgen_free(e[0],4*e[1],4)),t}timeRemainingMillis(){return Go.verificationrequest_timeRemainingMillis(this.__wbg_ptr)}timedOut(){return 0!==Go.verificationrequest_timedOut(this.__wbg_ptr)}weStarted(){return 0!==Go.verificationrequest_weStarted(this.__wbg_ptr)}}Symbol.dispose&&(He.prototype[Symbol.dispose]=He.prototype.free);const Ye=Object.freeze({Created:0,0:"Created",Requested:1,1:"Requested",Ready:2,2:"Ready",Transitioned:3,3:"Transitioned",Done:4,4:"Done",Cancelled:5,5:"Cancelled"});class et{static __wrap(e){const t=Object.create(et.prototype);return t.__wbg_ptr=e,Ro.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Ro.unregister(this),e}free(){const e=this.__destroy_into_raw();Go.__wbg_versions_free(e,0)}get git_description(){return Go.__wbg_get_versions_git_description(this.__wbg_ptr)}get git_sha(){return Go.__wbg_get_versions_git_sha(this.__wbg_ptr)}get matrix_sdk_crypto(){return Go.__wbg_get_versions_matrix_sdk_crypto(this.__wbg_ptr)}get vodozemac(){return Go.__wbg_get_versions_vodozemac(this.__wbg_ptr)}}function tt(){const e=Go.getVersions();return et.__wrap(e)}function rt(e,t){return Error(Do(e,t))}function _t(e){return Number(e)}function nt(e,t){const r=Po(String(t),Go.__wbindgen_malloc,Go.__wbindgen_realloc),_=Zo;Oo().setInt32(e+4,_,!0),Oo().setInt32(e+0,r,!0)}function it(e){return e.Window}function st(e){return e.WorkerGlobalScope}function ot(e,t){const r="bigint"==typeof t?t:void 0;Oo().setBigInt64(e+8,xo(r)?BigInt(0):r,!0),Oo().setInt32(e+0,!xo(r),!0)}function gt(e){const t="boolean"==typeof e?e:void 0;return xo(t)?16777215:t?1:0}function at(e,t){const r=Po(qo(t),Go.__wbindgen_malloc,Go.__wbindgen_realloc),_=Zo;Oo().setInt32(e+4,_,!0),Oo().setInt32(e+0,r,!0)}function ct(e,t){return e in t}function pt(e){return"bigint"==typeof e}function wt(e){return"function"==typeof e}function dt(e){return null===e}function ut(e){return"object"==typeof e&&null!==e}function bt(e){return"string"==typeof e}function lt(e){return void 0===e}function yt(e,t){return e===t}function ht(e,t){return e==t}function ft(e,t){const r="number"==typeof t?t:void 0;Oo().setFloat64(e+8,xo(r)?0:r,!0),Oo().setInt32(e+0,!xo(r),!0)}function mt(e,t){const r="string"==typeof t?t:void 0;var _=xo(r)?0:Po(r,Go.__wbindgen_malloc,Go.__wbindgen_realloc),n=Zo;Oo().setInt32(e+4,n,!0),Oo().setInt32(e+0,_,!0)}function vt(e,t){throw new Error(Do(e,t))}function St(e){e._wbg_cb_unref()}function kt(){return Eo(function(e){e.abort()},arguments)}function Rt(e,t){return e.add(t)}function Ft(){return Eo(function(e,t,r){return e.add(t,r)},arguments)}function zt(e,t){return e.at(t)}function Kt(e){return i.__wrap(e)}function qt(){return Eo(function(e,t,r,_){return IDBKeyRange.bound(e,t,0!==r,0!==_)},arguments)}function It(){return Eo(function(e,t,r,_,n){return e.call(t,r,_,n)},arguments)}function Ct(){return Eo(function(e,t){return e.call(t)},arguments)}function Ut(){return Eo(function(e,t,r){return e.call(t,r)},arguments)}function Ot(){return Eo(function(e,t,r,_){return e.call(t,r,_)},arguments)}function Dt(e){return clearTimeout(e)}function jt(){return Eo(function(e){return e.clear()},arguments)}function Bt(e){e.close()}function Vt(e){return e.code}function Et(){return Eo(function(e){e.commit()},arguments)}function xt(){return Eo(function(e){e.continue()},arguments)}function Mt(){return Eo(function(e){return e.count()},arguments)}function At(){return Eo(function(e){return e.count()},arguments)}function Tt(){return Eo(function(e,t,r,_,n){return e.createIndex(Do(t,r),_,n)},arguments)}function Pt(){return Eo(function(e,t,r,_){return e.createIndex(Do(t,r),_)},arguments)}function Nt(){return Eo(function(e,t,r){return e.createObjectStore(Do(t,r))},arguments)}function Lt(e){return w.__wrap(e)}function Jt(e){return d.__wrap(e)}function Wt(e){return u.__wrap(e)}function Qt(e){return e.crypto}function Gt(e,t){e.debug(t)}function Zt(e){console.debug(e)}function Xt(e){return y.__wrap(e)}function $t(e){return h.__wrap(e)}function Ht(e){return v.__wrap(e)}function Yt(e){return S.__wrap(e)}function er(){return Eo(function(e,t,r){e.deleteObjectStore(Do(t,r))},arguments)}function tr(){return Eo(function(e){return e.delete()},arguments)}function rr(){return Eo(function(e,t){return e.delete(t)},arguments)}function _r(e){return R.__wrap(e)}function nr(e){return F.__wrap(e)}function ir(e){return z.__wrap(e)}function sr(e){return q.__wrap(e)}function or(e){return e.done}function gr(e){return D.__wrap(e)}function ar(e){return j.__wrap(e)}function cr(e){return V.__wrap(e)}function pr(e){return Object.entries(e)}function wr(e){return e.entries()}function dr(e,t){let r,_;try{r=e,_=t,console.error(Do(e,t))}finally{Go.__wbindgen_free(r,_,1)}}function ur(e,t){e.error(t)}function br(){return Eo(function(e){const t=e.error;return xo(t)?0:Fo(t)},arguments)}function lr(e){console.error(e)}function yr(e){return Array.from(e)}function hr(){return Eo(function(e){return e.getAllKeys()},arguments)}function fr(){return Eo(function(e){return e.getAll()},arguments)}function mr(){return Eo(function(e,t){return e.getAll(t)},arguments)}function vr(){return Eo(function(e){return e.getAll()},arguments)}function Sr(){return Eo(function(e,t,r){return e.getAll(t,r>>>0)},arguments)}function kr(){return Eo(function(e,t){globalThis.crypto.getRandomValues(Co(e,t))},arguments)}function Rr(){return Eo(function(e,t){e.getRandomValues(t)},arguments)}function Fr(){return Eo(function(e,t){globalThis.crypto.getRandomValues(Co(e,t))},arguments)}function zr(e){return e.getTime()}function Kr(){return Eo(function(e,t){return e.get(t)},arguments)}function qr(){return Eo(function(e,t){return Reflect.get(e,t)},arguments)}function Ir(e,t){return e[t>>>0]}function Cr(){return Eo(function(e,t){return e.get(t)},arguments)}function Ur(){return Eo(function(e,t){return Reflect.get(e,t)},arguments)}function Or(e,t){return e[t>>>0]}function Dr(e,t){return e[t]}function jr(e){return e.global}function Br(e){return N.__wrap(e)}function Vr(){return Eo(function(e,t,r){return e.index(Do(t,r))},arguments)}function Er(){return Eo(function(e){const t=e.indexedDB;return xo(t)?0:Fo(t)},arguments)}function xr(){return Eo(function(e){const t=e.indexedDB;return xo(t)?0:Fo(t)},arguments)}function Mr(){return Eo(function(e){const t=e.indexedDB;return xo(t)?0:Fo(t)},arguments)}function Ar(e,t){e.info(t)}function Tr(e){console.info(e)}function Pr(e){let t;try{t=e instanceof ArrayBuffer}catch(e){t=!1}return t}function Nr(e){let t;try{t=e instanceof IDBCursorWithValue}catch(e){t=!1}return t}function Lr(e){let t;try{t=e instanceof DOMException}catch(e){t=!1}return t}function Jr(e){let t;try{t=e instanceof Error}catch(e){t=!1}return t}function Wr(e){let t;try{t=e instanceof IDBCursor}catch(e){t=!1}return t}function Qr(e){let t;try{t=e instanceof IDBDatabase}catch(e){t=!1}return t}function Gr(e){let t;try{t=e instanceof IDBOpenDBRequest}catch(e){t=!1}return t}function Zr(e){let t;try{t=e instanceof IDBRequest}catch(e){t=!1}return t}function Xr(e){let t;try{t=e instanceof Map}catch(e){t=!1}return t}function $r(e){let t;try{t=e instanceof Promise}catch(e){t=!1}return t}function Hr(e){let t;try{t=e instanceof Uint8Array}catch(e){t=!1}return t}function Yr(e){return L.__wrap(e)}function e_(e){return Array.isArray(e)}function t_(e){return Array.isArray(e)}function r_(e){return Number.isSafeInteger(e)}function __(e,t,r){const _=t.item(r>>>0);var n=xo(_)?0:Po(_,Go.__wbindgen_malloc,Go.__wbindgen_realloc),i=Zo;Oo().setInt32(e+4,i,!0),Oo().setInt32(e+0,n,!0)}function n_(){return Symbol.iterator}function i_(){return Eo(function(e){return e.key},arguments)}function s_(e){return J.__wrap(e)}function o_(e){return W.__wrap(e)}function g_(e){return Q.__wrap(e)}function a_(e){return G.__wrap(e)}function c_(e){return e.length}function p_(e){return e.length}function w_(e){return e.length}function d_(){return Eo(function(e,t){return IDBKeyRange.lowerBound(e,0!==t)},arguments)}function u_(e){return X.__wrap(e)}function b_(e){return $.__wrap(e)}function l_(e){return e.message}function y_(e,t){const r=Po(t.message,Go.__wbindgen_malloc,Go.__wbindgen_realloc),_=Zo;Oo().setInt32(e+4,_,!0),Oo().setInt32(e+0,r,!0)}function h_(e){return e.msCrypto}function f_(e,t){const r=Po(t.name,Go.__wbindgen_malloc,Go.__wbindgen_realloc),_=Zo;Oo().setInt32(e+4,_,!0),Oo().setInt32(e+0,r,!0)}function m_(){return new Object}function v_(){return new Map}function S_(e,t){return new Error(Do(e,t))}function k_(){return new Error}function R_(){return new Array}function F_(e){return new Set(e)}function z_(e){return new Uint8Array(e)}function K_(e){return new Date(e)}function q_(e,t){try{var r={a:e,b:t};const _=new Promise((e,t)=>{const _=r.a;r.a=0;try{return Bi(_,r.b,e,t)}finally{r.a=_}});return _}finally{r.a=0}}function I_(e,t){try{var r={a:e,b:t};const _=new Promise((e,t)=>{const _=r.a;r.a=0;try{return Bi(_,r.b,e,t)}finally{r.a=_}});return _}finally{r.a=0}}function C_(e){return new Uint8Array(e>>>0)}function U_(e){return new Uint8ClampedArray(e>>>0)}function O_(e){return e.next}function D_(){return Eo(function(e){return e.next()},arguments)}function j_(e){return e.node}function B_(){return Date.now()}function V_(e){return e.now()}function E_(e){return e.objectStoreNames}function x_(){return Eo(function(e,t,r){return e.objectStore(Do(t,r))},arguments)}function M_(e){return e.oldVersion}function A_(e){return re.__wrap(e)}function T_(){return Eo(function(e){return e.openCursor()},arguments)}function P_(){return Eo(function(e,t){return e.openCursor(t)},arguments)}function N_(){return Eo(function(e){return e.openCursor()},arguments)}function L_(){return Eo(function(e,t,r,_){return e.open(Do(t,r),_>>>0)},arguments)}function J_(){return Eo(function(e,t,r){return e.open(Do(t,r))},arguments)}function W_(e){return _e.__wrap(e)}function Q_(e){return ie.__wrap(e)}function G_(){return Eo(function(e,t){return JSON.parse(Do(e,t))},arguments)}function Z_(e){return e.performance}function X_(e){return se.__unwrap(e)}function $_(e){return oe.__unwrap(e)}function H_(e){return pe.__wrap(e)}function Y_(e){return e.process}function en(e,t,r){Uint8ClampedArray.prototype.set.call(Co(e,t),r)}function tn(e,t,r){Uint8Array.prototype.set.call(Co(e,t),r)}function rn(e,t){return e.push(t)}function _n(){return Eo(function(e,t,r){return e.put(t,r)},arguments)}function nn(e){return de.__wrap(e)}function sn(e){return ue.__wrap(e)}function on(e){return e.queueMicrotask}function gn(e){queueMicrotask(e)}function an(){return Eo(function(e,t){e.randomFillSync(t)},arguments)}function cn(e){const t=e.readyState;return(Vi.indexOf(t)+1||3)-1}function pn(e){return ve.__wrap(e)}function wn(e){return e.request}function dn(e){return e.request}function un(){return Eo(function(){return module.require},arguments)}function bn(e){return Promise.resolve(e)}function ln(){return Eo(function(e){return e.result},arguments)}function yn(e){return Se.__unwrap(e)}function hn(e){return ke.__wrap(e)}function fn(e){return Re.__wrap(e)}function mn(e){return Fe.__wrap(e)}function vn(e){return ze.__wrap(e)}function Sn(e){return Ke.__wrap(e)}function kn(e){return qe.__wrap(e)}function Rn(e){return Ie.__wrap(e)}function Fn(e){return Ce.__wrap(e)}function zn(e){return Ue.__wrap(e)}function Kn(){return Eo(function(e,t){return setTimeout(e,t)},arguments)}function qn(e,t,r){e[t]=r}function In(e,t,r){e[t>>>0]=r}function Cn(e,t,r){e.set(Co(t,r))}function Un(e,t,r){return e.set(t,r)}function On(e,t){e.onabort=t}function Dn(e,t){e.oncomplete=t}function jn(e,t){e.onerror=t}function Bn(e,t){e.onerror=t}function Vn(e,t){e.onsuccess=t}function En(e,t){e.onupgradeneeded=t}function xn(e,t){e.unique=0!==t}function Mn(e){return Me.__wrap(e)}function An(e){return Ee.__wrap(e)}function Tn(e){return xe.__wrap(e)}function Pn(e,t){const r=Po(t.stack,Go.__wbindgen_malloc,Go.__wbindgen_realloc),_=Zo;Oo().setInt32(e+4,_,!0),Oo().setInt32(e+0,r,!0)}function Nn(){const e="undefined"==typeof globalThis?null:globalThis;return xo(e)?0:Fo(e)}function Ln(){const e=void 0===r.g?null:r.g;return xo(e)?0:Fo(e)}function Jn(){const e="undefined"==typeof self?null:self;return xo(e)?0:Fo(e)}function Wn(){const e="undefined"==typeof window?null:window;return xo(e)?0:Fo(e)}function Qn(e){return Te.__wrap(e)}function Gn(e){return Ae.__wrap(e)}function Zn(){return Eo(function(e){return JSON.stringify(e)},arguments)}function Xn(e,t,r){return e.subarray(t>>>0,r>>>0)}function $n(e){const t=e.target;return xo(t)?0:Fo(t)}function Hn(e,t){return e.then(t)}function Yn(e,t,r){return e.then(t,r)}function ei(e){return e.toString()}function ti(e){return Ne.__wrap(e)}function ri(e){return e.transaction}function _i(){return Eo(function(e,t,r){return e.transaction(t,Ei[r])},arguments)}function ni(e){const t=e.transaction;return xo(t)?0:Fo(t)}function ii(){return Eo(function(e,t,r,_){return e.transaction(Do(t,r),Ei[_])},arguments)}function si(){return Eo(function(e,t){return e.update(t)},arguments)}function oi(){return Eo(function(e,t){return IDBKeyRange.upperBound(e,0!==t)},arguments)}function gi(e){return Ze.__wrap(e)}function ai(e){return Xe.__wrap(e)}function ci(e){return Xe.__unwrap(e)}function pi(e){return Qe.__wrap(e)}function wi(){return Eo(function(e){return e.value},arguments)}function di(e){return e.value}function ui(e){return e.values()}function bi(e){return He.__wrap(e)}function li(e){return e.version}function yi(e){return e.versions}function hi(e,t){e.warn(t)}function fi(e){console.warn(e)}function mi(e,t){return Mo(e,t,Di)}function vi(e,t){return Mo(e,t,Oi)}function Si(e,t){return Mo(e,t,ji)}function ki(e,t){return Mo(e,t,Ui)}function Ri(e){return e}function Fi(e){return e}function zi(e,t){return Co(e,t)}function Ki(e,t){return Do(e,t)}function qi(e){return BigInt.asUintN(64,e)}function Ii(e,t){var r=Io(e,t).slice();Go.__wbindgen_free(e,4*t,4);return r}function Ci(){const e=Go.__wbindgen_externrefs,t=e.grow(4);e.set(0,void 0),e.set(t+0,void 0),e.set(t+1,null),e.set(t+2,!0),e.set(t+3,!1)}function Ui(e,t){Go.wasm_bindgen__convert__closures_____invoke__h3fc5f4d47ac7b23e(e,t)}function Oi(e,t,r){Go.wasm_bindgen__convert__closures_____invoke__hc98e844383b6010d(e,t,r)}function Di(e,t,r){const _=Go.wasm_bindgen__convert__closures_____invoke__h6cc6e60feaea7523(e,t,r);if(_[1])throw No(_[0])}function ji(e,t,r){const _=Go.wasm_bindgen__convert__closures_____invoke__h6cc6e60feaea7523_2(e,t,r);if(_[1])throw No(_[0])}function Bi(e,t,r,_){Go.wasm_bindgen__convert__closures_____invoke__h33afbfdbaf3c68e2(e,t,r,_)}Symbol.dispose&&(et.prototype[Symbol.dispose]=et.prototype.free);const Vi=["pending","done"],Ei=["readonly","readwrite","versionchange","readwriteflush","cleanup"],xi="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_attachment_free(e,1)),Mi="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_backupdecryptionkey_free(e,1)),Ai="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_backupkeys_free(e,1)),Ti="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_backupsecretsbundle_free(e,1)),Pi="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_base64encodedpkmessage_free(e,1)),Ni="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_basemigrationdata_free(e,1)),Li="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_cancelinfo_free(e,1)),Ji="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_checkcode_free(e,1)),Wi="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_collectstrategy_free(e,1)),Qi="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_crosssigningbootstraprequests_free(e,1)),Gi="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_crosssigningkeyexport_free(e,1)),Zi="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_crosssigningstatus_free(e,1)),Xi="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_curve25519publickey_free(e,1)),$i="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_curve25519secretkey_free(e,1)),Hi="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_decryptedroomevent_free(e,1)),Yi="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_decryptedtodeviceevent_free(e,1)),es="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_decryptionsettings_free(e,1)),ts="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_dehydrateddevice_free(e,1)),rs="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_dehydrateddevicekey_free(e,1)),_s="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_dehydrateddevices_free(e,1)),ns="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_device_free(e,1)),is="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_deviceid_free(e,1)),ss="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_devicekey_free(e,1)),os="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_devicekeyalgorithm_free(e,1)),gs="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_devicekeyid_free(e,1)),as="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_devicelists_free(e,1)),cs="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_ecies_free(e,1)),ps="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_ed25519publickey_free(e,1)),ws="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_ed25519signature_free(e,1)),ds="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_emoji_free(e,1)),us="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_encryptedattachment_free(e,1)),bs="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_encryptioninfo_free(e,1)),ls="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_encryptionsettings_free(e,1)),ys="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_establishedecies_free(e,1)),hs="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_eventid_free(e,1)),fs="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_identitykeys_free(e,1)),ms="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_inboundcreationresult_free(e,1)),vs="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_inboundgroupsession_free(e,1)),Ss="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_invalidtodeviceevent_free(e,1)),ks="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_keysbackuprequest_free(e,1)),Rs="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_keysclaimrequest_free(e,1)),Fs="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_keysqueryrequest_free(e,1)),zs="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_keysuploadrequest_free(e,1)),Ks="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_maybesignature_free(e,1)),qs="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_megolmdecryptionerror_free(e,1)),Is="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_megolmv1backupkey_free(e,1)),Cs="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_migration_free(e,1)),Us="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_msc4108intentdata_free(e,1)),Os="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_msc4388intentdata_free(e,1)),Ds="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_olmmachine_free(e,1)),js="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_otheruseridentity_free(e,1)),Bs="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_outboundcreationresult_free(e,1)),Vs="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_ownuseridentity_free(e,1)),Es="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_pickledinboundgroupsession_free(e,1)),xs="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_pickledsession_free(e,1)),Ms="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_pkdecryption_free(e,1)),As="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_pkencryption_free(e,1)),Ts="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_pkmessage_free(e,1)),Ps="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_plaintexttodeviceevent_free(e,1)),Ns="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_putdehydrateddevicerequest_free(e,1)),Ls="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_qr_free(e,1)),Js="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_qrcode_free(e,1)),Ws="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_qrcodedata_free(e,1)),Qs="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_qrcodeintentdata_free(e,1)),Gs="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_qrcodescan_free(e,1)),Zs="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_rehydrateddevice_free(e,1)),Xs="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_roomid_free(e,1)),$s="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_roomkeycounts_free(e,1)),Hs="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_roomkeyimportresult_free(e,1)),Ys="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_roomkeyinfo_free(e,1)),eo="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_roomkeywithheldinfo_free(e,1)),to="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_roommessagerequest_free(e,1)),ro="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_roompendingkeybundledetails_free(e,1)),_o="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_roomsettings_free(e,1)),no="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_sas_free(e,1)),io="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_secretsbundle_free(e,1)),so="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_servername_free(e,1)),oo="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_shieldstate_free(e,1)),go="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_signature_free(e,1)),ao="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_signatureuploadrequest_free(e,1)),co="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_signatureverification_free(e,1)),po="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_signatures_free(e,1)),wo="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_storehandle_free(e,1)),uo="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_storedroomkeybundledata_free(e,1)),bo="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_todeviceencryptioninfo_free(e,1)),lo="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_todevicerequest_free(e,1)),yo="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_todeviceunabletodecryptinfo_free(e,1)),ho="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_tracing_free(e,1)),fo="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_utdtodeviceevent_free(e,1)),mo="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_uploadsigningkeysrequest_free(e,1)),vo="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_userdevices_free(e,1)),So="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_userid_free(e,1)),ko="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_verificationrequest_free(e,1)),Ro="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbg_versions_free(e,1));function Fo(e){const t=Go.__externref_table_alloc();return Go.__wbindgen_externrefs.set(t,e),t}function zo(e,t){if(!(e instanceof t))throw new Error(`expected instance of ${t.name}`)}const Ko="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>Go.__wbindgen_destroy_closure(e.a,e.b));function qo(e){const t=typeof e;if("number"==t||"boolean"==t||null==e)return`${e}`;if("string"==t)return`"${e}"`;if("symbol"==t){const t=e.description;return null==t?"Symbol":`Symbol(${t})`}if("function"==t){const t=e.name;return"string"==typeof t&&t.length>0?`Function(${t})`:"Function"}if(Array.isArray(e)){const t=e.length;let r="[";t>0&&(r+=qo(e[0]));for(let _=1;_<t;_++)r+=", "+qo(e[_]);return r+="]",r}const r=/\[object ([^\]]+)\]/.exec(toString.call(e));let _;if(!(r&&r.length>1))return toString.call(e);if(_=r[1],"Object"==_)try{return"Object("+JSON.stringify(e)+")"}catch(e){return"Object"}return e instanceof Error?`${e.name}: ${e.message}\n${e.stack}`:_}function Io(e,t){e>>>=0;const r=Oo(),_=[];for(let n=e;n<e+4*t;n+=4)_.push(Go.__wbindgen_externrefs.get(r.getUint32(n,!0)));return Go.__externref_drop_slice(e,t),_}function Co(e,t){return e>>>=0,Vo().subarray(e/1,e/1+t)}let Uo=null;function Oo(){return(null===Uo||!0===Uo.buffer.detached||void 0===Uo.buffer.detached&&Uo.buffer!==Go.memory.buffer)&&(Uo=new DataView(Go.memory.buffer)),Uo}function Do(e,t){return function(e,t){Wo+=t,Wo>=Jo&&(Lo=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),Lo.decode(),Wo=t);return Lo.decode(Vo().subarray(e,e+t))}(e>>>0,t)}let jo=null;let Bo=null;function Vo(){return null!==Bo&&0!==Bo.byteLength||(Bo=new Uint8Array(Go.memory.buffer)),Bo}function Eo(e,t){try{return e.apply(this,t)}catch(e){const t=Fo(e);Go.__wbindgen_exn_store(t)}}function xo(e){return null==e}function Mo(e,t,r){const _={a:e,b:t,cnt:1},n=(...e)=>{_.cnt++;const t=_.a;_.a=0;try{return r(t,_.b,...e)}finally{_.a=t,n._wbg_cb_unref()}};return n._wbg_cb_unref=()=>{0===--_.cnt&&(Go.__wbindgen_destroy_closure(_.a,_.b),_.a=0,Ko.unregister(_))},Ko.register(n,_,_),n}function Ao(e,t){const r=t(1*e.length,1)>>>0;return Vo().set(e,r/1),Zo=e.length,r}function To(e,t){const r=t(4*e.length,4)>>>0;for(let t=0;t<e.length;t++){const _=Fo(e[t]);Oo().setUint32(r+4*t,_,!0)}return Zo=e.length,r}function Po(e,t,r){if(void 0===r){const r=Qo.encode(e),_=t(r.length,1)>>>0;return Vo().subarray(_,_+r.length).set(r),Zo=r.length,_}let _=e.length,n=t(_,1)>>>0;const i=Vo();let s=0;for(;s<_;s++){const t=e.charCodeAt(s);if(t>127)break;i[n+s]=t}if(s!==_){0!==s&&(e=e.slice(s)),n=r(n,_,_=s+3*e.length,1)>>>0;const t=Vo().subarray(n+s,n+_);s+=Qo.encodeInto(e,t).written,n=r(n,_,s,1)>>>0}return Zo=s,n}function No(e){const t=Go.__wbindgen_externrefs.get(e);return Go.__externref_table_dealloc(e),t}let Lo=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});Lo.decode();const Jo=2146435072;let Wo=0;const Qo=new TextEncoder;"encodeInto"in Qo||(Qo.encodeInto=function(e,t){const r=Qo.encode(e);return t.set(r),{read:e.length,written:r.length}});let Go,Zo=0;function Xo(e){Go=e}}}]);
      2 //# sourceMappingURL=3912.js.map