hunni.space/widgets/element-call/assets/matrix-sdk-crypto-wasm-DlvlUyhf.js
mowetentertainment1 730de334a7 initial
2025-12-05 11:05:33 -05:00

1 line
125 KiB
JavaScript

try{let e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="3f8a761d-69e0-4051-aebf-15d6150c3bfe",e._sentryDebugIdIdentifier="sentry-dbid-3f8a761d-69e0-4051-aebf-15d6150c3bfe")}catch{}let r;function Ct(e){r=e}let o=0,oe=null;function T(){return(null===oe||0===oe.byteLength)&&(oe=new Uint8Array(r.memory.buffer)),oe}const Zr=typeof TextEncoder>"u"?(0,module.require)("util").TextEncoder:TextEncoder;let ae=new Zr("utf-8");const Yr="function"==typeof ae.encodeInto?function(e,t){return ae.encodeInto(e,t)}:function(e,t){const r=ae.encode(e);return t.set(r),{read:e.length,written:r.length}};function g(e,t,r){if(void 0===r){const r=ae.encode(e),_=t(r.length,1)>>>0;return T().subarray(_,_+r.length).set(r),o=r.length,_}let _=e.length,n=t(_,1)>>>0;const i=T();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=T().subarray(n+s,n+_);s+=Yr(e,t).written,n=r(n,_,s,1)>>>0}return o=s,n}let E=null;function k(){return(null===E||!0===E.buffer.detached||void 0===E.buffer.detached&&E.buffer!==r.memory.buffer)&&(E=new DataView(r.memory.buffer)),E}function v(e){const t=r.__externref_table_alloc();return r.__wbindgen_export_4.set(t,e),t}function p(e,t){try{return e.apply(this,t)}catch(e){const t=v(e);r.__wbindgen_exn_store(t)}}const e_=typeof TextDecoder>"u"?(0,module.require)("util").TextDecoder:TextDecoder;let Nr=new e_("utf-8",{ignoreBOM:!0,fatal:!0});function w(e,t){return e>>>=0,Nr.decode(T().subarray(e,e+t))}function u(e){return null==e}function j(e,t){return e>>>=0,T().subarray(e/1,e/1+t)}Nr.decode();const ge=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>{r.__wbindgen_export_6.get(e.dtor)(e.a,e.b)});function Dt(e,t,_,n){const i={a:e,b:t,cnt:1,dtor:_},s=(...e)=>{i.cnt++;const t=i.a;i.a=0;try{return n(t,i.b,...e)}finally{0===--i.cnt?(r.__wbindgen_export_6.get(i.dtor)(t,i.b),ge.unregister(i)):i.a=t}};return s.original=i,ge.register(s,i,i),s}function Wr(e,t,_,n){const i={a:e,b:t,cnt:1,dtor:_},s=(...e)=>{i.cnt++;try{return n(i.a,i.b,...e)}finally{0===--i.cnt&&(r.__wbindgen_export_6.get(i.dtor)(i.a,i.b),i.a=0,ge.unregister(i))}};return s.original=i,ge.register(s,i,i),s}function It(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+=It(e[0]));for(let _=1;_<t;_++)r+=", "+It(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{return"Object"}return e instanceof Error?`${e.name}: ${e.message}\n${e.stack}`:_}function C(e,t){const r=t(1*e.length,1)>>>0;return T().set(e,r/1),o=e.length,r}function c(e){const t=r.__wbindgen_export_4.get(e);return r.__externref_table_dealloc(e),t}function b(e,t){if(!(e instanceof t))throw new Error(`expected instance of ${t.name}`)}function S(e,t){const r=t(4*e.length,4)>>>0;for(let t=0;t<e.length;t++){const _=v(e[t]);k().setUint32(r+4*t,_,!0)}return o=e.length,r}function G(e,t){e>>>=0;const _=k(),n=[];for(let i=e;i<e+4*t;i+=4)n.push(r.__wbindgen_export_4.get(_.getUint32(i,!0)));return r.__externref_drop_slice(e,t),n}let ce=null;function t_(){return(null===ce||0===ce.byteLength)&&(ce=new Uint16Array(r.memory.buffer)),ce}function r_(e,t){return e>>>=0,t_().subarray(e/2,e/2+t)}function __(){const e=r.getVersions();return it.__wrap(e)}function n_(){r.start()}function i_(e,t,_){const n=r.closure38_externref_shim_multivalue_shim(e,t,_);if(n[1])throw c(n[0])}function s_(e,t){r._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h9a610c366a7f0d0a(e,t)}function o_(e,t,_){r.closure751_externref_shim(e,t,_)}function c_(e,t,_){r.closure434_externref_shim(e,t,_)}function a_(e,t){r._dyn_core__ops__function__Fn_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__ha55834deaaca03e1(e,t)}function g_(e,t,_,n){r.closure450_externref_shim(e,t,_,n)}const w_=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"}),d_=Object.freeze({Ed25519:0,0:"Ed25519",Curve25519:1,1:"Curve25519",Unknown:3,3:"Unknown"}),b_=Object.freeze({Curve25519:0,0:"Curve25519",Ed25519:1,1:"Ed25519",Unknown:2,2:"Unknown"}),u_=Object.freeze({OlmV1Curve25519AesSha2:0,0:"OlmV1Curve25519AesSha2",MegolmV1AesSha2:1,1:"MegolmV1AesSha2",Unknown:2,2:"Unknown"}),p_=Object.freeze({Invited:0,0:"Invited",Joined:1,1:"Joined",Shared:2,2:"Shared",WorldReadable:3,3:"WorldReadable"}),l_=Object.freeze({Verified:0,0:"Verified",BlackListed:1,1:"BlackListed",Ignored:2,2:"Ignored",Unset:3,3:"Unset"}),f_=Object.freeze({Trace:0,0:"Trace",Debug:1,1:"Debug",Info:2,2:"Info",Warn:3,3:"Warn",Error:4,4:"Error"}),y_=Object.freeze({Decrypted:0,0:"Decrypted",UnableToDecrypt:1,1:"UnableToDecrypt",PlainText:2,2:"PlainText",Invalid:3,3:"Invalid"}),h_=Object.freeze({Login:0,0:"Login",Reciprocate:1,1:"Reciprocate"}),m_=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"}),v_=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"}),k_=Object.freeze({Red:0,0:"Red",Grey:1,1:"Grey",None:2,2:"None"}),R_=Object.freeze({AuthenticityNotGuaranteed:0,0:"AuthenticityNotGuaranteed",UnknownDevice:1,1:"UnknownDevice",UnsignedDevice:2,2:"UnsignedDevice",UnverifiedIdentity:3,3:"UnverifiedIdentity",SentInClear:4,4:"SentInClear",VerificationViolation:5,5:"VerificationViolation",MismatchedSender:6,6:"MismatchedSender"}),F_=Object.freeze({Missing:0,0:"Missing",Invalid:1,1:"Invalid",ValidButNotTrusted:2,2:"ValidButNotTrusted",ValidAndTrusted:3,3:"ValidAndTrusted"}),z_=Object.freeze({Untrusted:0,0:"Untrusted",CrossSignedOrLegacy:1,1:"CrossSignedOrLegacy",CrossSigned:2,2:"CrossSigned"}),S_=Object.freeze({SasV1:0,0:"SasV1",QrCodeScanV1:1,1:"QrCodeScanV1",QrCodeShowV1:2,2:"QrCodeShowV1",ReciprocateV1:3,3:"ReciprocateV1"}),q_=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"}),j_=["pending","done"],Lr=["readonly","readwrite","versionchange","readwriteflush","cleanup"],K_=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_attachment_free(e>>>0,1));class I_{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,K_.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_attachment_free(e,0)}static encrypt(e){const t=C(e,r.__wbindgen_malloc),_=o,n=r.attachment_encrypt(t,_);if(n[2])throw c(n[1]);return P.__wrap(n[0])}static decrypt(e){b(e,P);const t=r.attachment_decrypt(e.__wbg_ptr);if(t[3])throw c(t[2]);var _=j(t[0],t[1]).slice();return r.__wbindgen_free(t[0],1*t[1],1),_}}const Ot=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_backupdecryptionkey_free(e>>>0,1));class O{static __wrap(e){e>>>=0;const t=Object.create(O.prototype);return t.__wbg_ptr=e,Ot.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Ot.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_backupdecryptionkey_free(e,0)}static createRandomKey(){const e=r.backupdecryptionkey_createRandomKey();return O.__wrap(e)}static fromBase64(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),_=o,n=r.backupdecryptionkey_fromBase64(t,_);if(n[2])throw c(n[1]);return O.__wrap(n[0])}toBase64(){return r.backupdecryptionkey_toBase64(this.__wbg_ptr)}get megolmV1PublicKey(){const e=r.backupdecryptionkey_megolmV1PublicKey(this.__wbg_ptr);return Ue.__wrap(e)}decryptV1(e,t,_){let n,i;try{const b=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),u=o,d=g(t,r.__wbindgen_malloc,r.__wbindgen_realloc),p=o,l=g(_,r.__wbindgen_malloc,r.__wbindgen_realloc),y=o,h=r.backupdecryptionkey_decryptV1(this.__wbg_ptr,b,u,d,p,l,y);var s=h[0],a=h[1];if(h[3])throw s=0,a=0,c(h[2]);return n=s,i=a,w(s,a)}finally{r.__wbindgen_free(n,i,1)}}}const Ut=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_backupkeys_free(e>>>0,1));class be{static __wrap(e){e>>>=0;const t=Object.create(be.prototype);return t.__wbg_ptr=e,Ut.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Ut.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_backupkeys_free(e,0)}get decryptionKey(){const e=r.__wbg_get_backupkeys_decryptionKey(this.__wbg_ptr);return 0===e?void 0:O.__wrap(e)}set decryptionKey(e){let t=0;u(e)||(b(e,O),t=e.__destroy_into_raw()),r.__wbg_set_backupkeys_decryptionKey(this.__wbg_ptr,t)}get backupVersion(){const e=r.__wbg_get_backupkeys_backupVersion(this.__wbg_ptr);let t;return 0!==e[0]&&(t=w(e[0],e[1]).slice(),r.__wbindgen_free(e[0],1*e[1],1)),t}set backupVersion(e){var t=u(e)?0:g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),_=o;r.__wbg_set_backupkeys_backupVersion(this.__wbg_ptr,t,_)}get decryptionKeyBase64(){return r.backupkeys_decryptionKeyBase64(this.__wbg_ptr)}}const Bt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_backupsecretsbundle_free(e>>>0,1));class ue{static __wrap(e){e>>>=0;const t=Object.create(ue.prototype);return t.__wbg_ptr=e,Bt.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Bt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_backupsecretsbundle_free(e,0)}get key(){let e,t;try{const _=r.__wbg_get_backupsecretsbundle_key(this.__wbg_ptr);return e=_[0],t=_[1],w(_[0],_[1])}finally{r.__wbindgen_free(e,t,1)}}set key(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),_=o;r.__wbg_set_backupsecretsbundle_key(this.__wbg_ptr,t,_)}get backup_version(){let e,t;try{const _=r.__wbg_get_backupsecretsbundle_backup_version(this.__wbg_ptr);return e=_[0],t=_[1],w(_[0],_[1])}finally{r.__wbindgen_free(e,t,1)}}set backup_version(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),_=o;r.__wbg_set_backupsecretsbundle_backup_version(this.__wbg_ptr,t,_)}}const st=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_base64encodedpkmessage_free(e>>>0,1));class J{static __wrap(e){e>>>=0;const t=Object.create(J.prototype);return t.__wbg_ptr=e,st.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,st.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_base64encodedpkmessage_free(e,0)}get ciphertext(){let e,t;try{const _=r.__wbg_get_base64encodedpkmessage_ciphertext(this.__wbg_ptr);return e=_[0],t=_[1],w(_[0],_[1])}finally{r.__wbindgen_free(e,t,1)}}set ciphertext(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),_=o;r.__wbg_set_backupsecretsbundle_key(this.__wbg_ptr,t,_)}get mac(){let e,t;try{const _=r.__wbg_get_base64encodedpkmessage_mac(this.__wbg_ptr);return e=_[0],t=_[1],w(_[0],_[1])}finally{r.__wbindgen_free(e,t,1)}}set mac(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),_=o;r.__wbg_set_backupsecretsbundle_backup_version(this.__wbg_ptr,t,_)}get ephemeralKey(){let e,t;try{const _=r.__wbg_get_base64encodedpkmessage_ephemeralKey(this.__wbg_ptr);return e=_[0],t=_[1],w(_[0],_[1])}finally{r.__wbindgen_free(e,t,1)}}set ephemeralKey(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),_=o;r.__wbg_set_base64encodedpkmessage_ephemeralKey(this.__wbg_ptr,t,_)}constructor(e,t,_){const n=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),i=o,s=g(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=o,a=g(_,r.__wbindgen_malloc,r.__wbindgen_realloc),w=o,b=r.base64encodedpkmessage_new(n,i,s,c,a,w);return this.__wbg_ptr=b>>>0,st.register(this,this.__wbg_ptr,this),this}}const Vt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_basemigrationdata_free(e>>>0,1));class Qr{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Vt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_basemigrationdata_free(e,0)}get userId(){const e=r.__wbg_get_basemigrationdata_userId(this.__wbg_ptr);return 0===e?void 0:f.__wrap(e)}set userId(e){let t=0;u(e)||(b(e,f),t=e.__destroy_into_raw()),r.__wbg_set_basemigrationdata_userId(this.__wbg_ptr,t)}get deviceId(){const e=r.__wbg_get_basemigrationdata_deviceId(this.__wbg_ptr);return 0===e?void 0:h.__wrap(e)}set deviceId(e){let t=0;u(e)||(b(e,h),t=e.__destroy_into_raw()),r.__wbg_set_basemigrationdata_deviceId(this.__wbg_ptr,t)}get pickledAccount(){let e,t;try{const _=r.__wbg_get_basemigrationdata_pickledAccount(this.__wbg_ptr);return e=_[0],t=_[1],w(_[0],_[1])}finally{r.__wbindgen_free(e,t,1)}}set pickledAccount(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),_=o;r.__wbg_set_backupsecretsbundle_key(this.__wbg_ptr,t,_)}get backupVersion(){const e=r.__wbg_get_basemigrationdata_backupVersion(this.__wbg_ptr);let t;return 0!==e[0]&&(t=w(e[0],e[1]).slice(),r.__wbindgen_free(e[0],1*e[1],1)),t}set backupVersion(e){var t=u(e)?0:g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),_=o;r.__wbg_set_basemigrationdata_backupVersion(this.__wbg_ptr,t,_)}get backupRecoveryKey(){const e=r.__wbg_get_basemigrationdata_backupRecoveryKey(this.__wbg_ptr);let t;return 0!==e[0]&&(t=w(e[0],e[1]).slice(),r.__wbindgen_free(e[0],1*e[1],1)),t}set backupRecoveryKey(e){var t=u(e)?0:g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),_=o;r.__wbg_set_basemigrationdata_backupRecoveryKey(this.__wbg_ptr,t,_)}get privateCrossSigningMasterKey(){const e=r.__wbg_get_basemigrationdata_privateCrossSigningMasterKey(this.__wbg_ptr);let t;return 0!==e[0]&&(t=w(e[0],e[1]).slice(),r.__wbindgen_free(e[0],1*e[1],1)),t}set privateCrossSigningMasterKey(e){var t=u(e)?0:g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),_=o;r.__wbg_set_basemigrationdata_privateCrossSigningMasterKey(this.__wbg_ptr,t,_)}get privateCrossSigningSelfSigningKey(){const e=r.__wbg_get_basemigrationdata_privateCrossSigningSelfSigningKey(this.__wbg_ptr);let t;return 0!==e[0]&&(t=w(e[0],e[1]).slice(),r.__wbindgen_free(e[0],1*e[1],1)),t}set privateCrossSigningSelfSigningKey(e){var t=u(e)?0:g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),_=o;r.__wbg_set_basemigrationdata_privateCrossSigningSelfSigningKey(this.__wbg_ptr,t,_)}get privateCrossSigningUserSigningKey(){const e=r.__wbg_get_basemigrationdata_privateCrossSigningUserSigningKey(this.__wbg_ptr);let t;return 0!==e[0]&&(t=w(e[0],e[1]).slice(),r.__wbindgen_free(e[0],1*e[1],1)),t}set privateCrossSigningUserSigningKey(e){var t=u(e)?0:g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),_=o;r.__wbg_set_basemigrationdata_privateCrossSigningUserSigningKey(this.__wbg_ptr,t,_)}constructor(){const e=r.basemigrationdata_new();return this.__wbg_ptr=e>>>0,Vt.register(this,this.__wbg_ptr,this),this}}const xt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_cancelinfo_free(e>>>0,1));class W{static __wrap(e){e>>>=0;const t=Object.create(W.prototype);return t.__wbg_ptr=e,xt.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,xt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_cancelinfo_free(e,0)}reason(){return r.cancelinfo_reason(this.__wbg_ptr)}cancelCode(){let e,t;try{const _=r.cancelinfo_cancelCode(this.__wbg_ptr);return e=_[0],t=_[1],w(_[0],_[1])}finally{r.__wbindgen_free(e,t,1)}}cancelledbyUs(){return 0!==r.cancelinfo_cancelledbyUs(this.__wbg_ptr)}}const Et=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_checkcode_free(e>>>0,1));class pe{static __wrap(e){e>>>=0;const t=Object.create(pe.prototype);return t.__wbg_ptr=e,Et.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Et.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_checkcode_free(e,0)}as_bytes(){const e=r.checkcode_as_bytes(this.__wbg_ptr);var t=j(e[0],e[1]).slice();return r.__wbindgen_free(e[0],1*e[1],1),t}to_digit(){return r.checkcode_to_digit(this.__wbg_ptr)}}const Tt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_collectstrategy_free(e>>>0,1));class q{static __wrap(e){e>>>=0;const t=Object.create(q.prototype);return t.__wbg_ptr=e,Tt.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Tt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_collectstrategy_free(e,0)}eq(e){return b(e,q),0!==r.collectstrategy_eq(this.__wbg_ptr,e.__wbg_ptr)}static deviceBasedStrategy(e,t){const _=r.collectstrategy_deviceBasedStrategy(e,t);return q.__wrap(_)}static allDevices(){const e=r.collectstrategy_allDevices();return q.__wrap(e)}static errorOnUnverifiedUserProblem(){const e=r.collectstrategy_errorOnUnverifiedUserProblem();return q.__wrap(e)}static identityBasedStrategy(){const e=r.collectstrategy_identityBasedStrategy();return q.__wrap(e)}static onlyTrustedDevices(){const e=r.collectstrategy_onlyTrustedDevices();return q.__wrap(e)}}const At=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_crosssigningbootstraprequests_free(e>>>0,1));class le{static __wrap(e){e>>>=0;const t=Object.create(le.prototype);return t.__wbg_ptr=e,At.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,At.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_crosssigningbootstraprequests_free(e,0)}get uploadKeysRequest(){return r.__wbg_get_crosssigningbootstraprequests_uploadKeysRequest(this.__wbg_ptr)}get uploadSigningKeysRequest(){const e=r.__wbg_get_crosssigningbootstraprequests_uploadSigningKeysRequest(this.__wbg_ptr);return _t.__wrap(e)}get uploadSignaturesRequest(){const e=r.__wbg_get_crosssigningbootstraprequests_uploadSignaturesRequest(this.__wbg_ptr);return _e.__wrap(e)}}const Mt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_crosssigningkeyexport_free(e>>>0,1));class fe{static __wrap(e){e>>>=0;const t=Object.create(fe.prototype);return t.__wbg_ptr=e,Mt.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Mt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_crosssigningkeyexport_free(e,0)}get masterKey(){const e=r.crosssigningkeyexport_masterKey(this.__wbg_ptr);let t;return 0!==e[0]&&(t=w(e[0],e[1]).slice(),r.__wbindgen_free(e[0],1*e[1],1)),t}get self_signing_key(){const e=r.crosssigningkeyexport_self_signing_key(this.__wbg_ptr);let t;return 0!==e[0]&&(t=w(e[0],e[1]).slice(),r.__wbindgen_free(e[0],1*e[1],1)),t}get userSigningKey(){const e=r.crosssigningkeyexport_userSigningKey(this.__wbg_ptr);let t;return 0!==e[0]&&(t=w(e[0],e[1]).slice(),r.__wbindgen_free(e[0],1*e[1],1)),t}}const Pt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_crosssigningstatus_free(e>>>0,1));class ye{static __wrap(e){e>>>=0;const t=Object.create(ye.prototype);return t.__wbg_ptr=e,Pt.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Pt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_crosssigningstatus_free(e,0)}get hasMaster(){return 0!==r.crosssigningstatus_hasMaster(this.__wbg_ptr)}get hasSelfSigning(){return 0!==r.crosssigningstatus_hasSelfSigning(this.__wbg_ptr)}get hasUserSigning(){return 0!==r.crosssigningstatus_hasUserSigning(this.__wbg_ptr)}}const ot=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_curve25519publickey_free(e>>>0,1));class R{static __wrap(e){e>>>=0;const t=Object.create(R.prototype);return t.__wbg_ptr=e,ot.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ot.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_curve25519publickey_free(e,0)}constructor(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),_=o,n=r.curve25519publickey_new(t,_);if(n[2])throw c(n[1]);return this.__wbg_ptr=n[0]>>>0,ot.register(this,this.__wbg_ptr,this),this}get length(){return r.curve25519publickey_length(this.__wbg_ptr)>>>0}toBase64(){let e,t;try{const _=r.curve25519publickey_toBase64(this.__wbg_ptr);return e=_[0],t=_[1],w(_[0],_[1])}finally{r.__wbindgen_free(e,t,1)}}}const Nt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_curve25519secretkey_free(e>>>0,1));class D{static __wrap(e){e>>>=0;const t=Object.create(D.prototype);return t.__wbg_ptr=e,Nt.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Nt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_curve25519secretkey_free(e,0)}static new(){const e=r.curve25519secretkey_new();return D.__wrap(e)}static fromBase64(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),_=o,n=r.curve25519secretkey_fromBase64(t,_);if(n[2])throw c(n[1]);return D.__wrap(n[0])}toBase64(){let e,t;try{const _=r.curve25519secretkey_toBase64(this.__wbg_ptr);return e=_[0],t=_[1],w(_[0],_[1])}finally{r.__wbindgen_free(e,t,1)}}toUint8Array(){const e=r.curve25519secretkey_toUint8Array(this.__wbg_ptr);var t=j(e[0],e[1]).slice();return r.__wbindgen_free(e[0],1*e[1],1),t}static fromUint8Array(e){const t=C(e,r.__wbindgen_malloc),_=o,n=r.curve25519secretkey_fromUint8Array(t,_);if(n[2])throw c(n[1]);return D.__wrap(n[0])}}const Wt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_decryptedroomevent_free(e>>>0,1));class he{static __wrap(e){e>>>=0;const t=Object.create(he.prototype);return t.__wbg_ptr=e,Wt.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Wt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_decryptedroomevent_free(e,0)}get event(){return r.__wbg_get_decryptedroomevent_event(this.__wbg_ptr)}get sender(){const e=r.decryptedroomevent_sender(this.__wbg_ptr);return f.__wrap(e)}get senderDevice(){const e=r.decryptedroomevent_senderDevice(this.__wbg_ptr);return 0===e?void 0:h.__wrap(e)}get senderCurve25519Key(){let e,t;try{const _=r.decryptedroomevent_senderCurve25519Key(this.__wbg_ptr);return e=_[0],t=_[1],w(_[0],_[1])}finally{r.__wbindgen_free(e,t,1)}}get senderClaimedEd25519Key(){return r.decryptedroomevent_senderClaimedEd25519Key(this.__wbg_ptr)}get forwardingCurve25519KeyChain(){return r.decryptedroomevent_forwardingCurve25519KeyChain(this.__wbg_ptr)}shieldState(e){const t=r.decryptedroomevent_shieldState(this.__wbg_ptr,e);return re.__wrap(t)}}const Lt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_decryptedtodeviceevent_free(e>>>0,1));class me{static __wrap(e){e>>>=0;const t=Object.create(me.prototype);return t.__wbg_ptr=e,Lt.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Lt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_decryptedtodeviceevent_free(e,0)}get rawEvent(){return r.__wbg_get_decryptedtodeviceevent_rawEvent(this.__wbg_ptr)}get encryptionInfo(){const e=r.__wbg_get_decryptedtodeviceevent_encryptionInfo(this.__wbg_ptr);return et.__wrap(e)}get type(){return r.decryptedtodeviceevent_type(this.__wbg_ptr)}}const Qt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_decryptionsettings_free(e>>>0,1));class Gr{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Qt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_decryptionsettings_free(e,0)}get sender_device_trust_requirement(){return r.__wbg_get_decryptionsettings_sender_device_trust_requirement(this.__wbg_ptr)}set sender_device_trust_requirement(e){r.__wbg_set_decryptionsettings_sender_device_trust_requirement(this.__wbg_ptr,e)}constructor(e){const t=r.decryptionsettings_new(e);return this.__wbg_ptr=t>>>0,Qt.register(this,this.__wbg_ptr,this),this}}const Gt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_dehydrateddevice_free(e>>>0,1));class ve{static __wrap(e){e>>>=0;const t=Object.create(ve.prototype);return t.__wbg_ptr=e,Gt.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Gt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_dehydrateddevice_free(e,0)}keysForUpload(e,t){return b(t,K),r.dehydrateddevice_keysForUpload(this.__wbg_ptr,e,t.__wbg_ptr)}}const Jt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_dehydrateddevicekey_free(e>>>0,1));class K{static __wrap(e){e>>>=0;const t=Object.create(K.prototype);return t.__wbg_ptr=e,Jt.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Jt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_dehydrateddevicekey_free(e,0)}static createRandomKey(){const e=r.dehydrateddevicekey_createRandomKey();if(e[2])throw c(e[1]);return K.__wrap(e[0])}static createKeyFromArray(e){const t=r.dehydrateddevicekey_createKeyFromArray(e);if(t[2])throw c(t[1]);return K.__wrap(t[0])}toBase64(){return r.dehydrateddevicekey_toBase64(this.__wbg_ptr)}}const $t=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_dehydrateddevices_free(e>>>0,1));class ke{static __wrap(e){e>>>=0;const t=Object.create(ke.prototype);return t.__wbg_ptr=e,$t.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,$t.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_dehydrateddevices_free(e,0)}create(){return r.dehydrateddevices_create(this.__wbg_ptr)}rehydrate(e,t,_){b(e,K),b(t,h);const n=g(_,r.__wbindgen_malloc,r.__wbindgen_realloc),i=o;return r.dehydrateddevices_rehydrate(this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr,n,i)}getDehydratedDeviceKey(){return r.dehydrateddevices_getDehydratedDeviceKey(this.__wbg_ptr)}saveDehydratedDeviceKey(e){return b(e,K),r.dehydrateddevices_saveDehydratedDeviceKey(this.__wbg_ptr,e.__wbg_ptr)}deleteDehydratedDeviceKey(){return r.dehydrateddevices_deleteDehydratedDeviceKey(this.__wbg_ptr)}}const Ht=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_device_free(e>>>0,1));class H{static __wrap(e){e>>>=0;const t=Object.create(H.prototype);return t.__wbg_ptr=e,Ht.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Ht.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_device_free(e,0)}requestVerification(e){var t=u(e)?0:S(e,r.__wbindgen_malloc),_=o;const n=r.device_requestVerification(this.__wbg_ptr,t,_);if(n[2])throw c(n[1]);return c(n[0])}encryptToDeviceEvent(e,t){const _=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;return r.device_encryptToDeviceEvent(this.__wbg_ptr,_,n,t)}isVerified(){return 0!==r.device_isVerified(this.__wbg_ptr)}isCrossSigningTrusted(){return 0!==r.device_isCrossSigningTrusted(this.__wbg_ptr)}isCrossSignedByOwner(){return 0!==r.device_isCrossSignedByOwner(this.__wbg_ptr)}setLocalTrust(e){return r.device_setLocalTrust(this.__wbg_ptr,e)}get userId(){const e=r.device_userId(this.__wbg_ptr);return f.__wrap(e)}get deviceId(){const e=r.device_deviceId(this.__wbg_ptr);return h.__wrap(e)}get displayName(){const e=r.device_displayName(this.__wbg_ptr);let t;return 0!==e[0]&&(t=w(e[0],e[1]).slice(),r.__wbindgen_free(e[0],1*e[1],1)),t}getKey(e){const t=r.device_getKey(this.__wbg_ptr,e);if(t[2])throw c(t[1]);return 0===t[0]?void 0:X.__wrap(t[0])}get curve25519Key(){const e=r.device_curve25519Key(this.__wbg_ptr);return 0===e?void 0:R.__wrap(e)}get ed25519Key(){const e=r.device_ed25519Key(this.__wbg_ptr);return 0===e?void 0:B.__wrap(e)}get keys(){return r.device_keys(this.__wbg_ptr)}get algorithms(){return r.device_algorithms(this.__wbg_ptr)}get signatures(){const e=r.device_signatures(this.__wbg_ptr);return ne.__wrap(e)}get localTrustState(){return r.device_localTrustState(this.__wbg_ptr)}isLocallyTrusted(){return 0!==r.device_isLocallyTrusted(this.__wbg_ptr)}isBlacklisted(){return 0!==r.device_isBlacklisted(this.__wbg_ptr)}isDeleted(){return 0!==r.device_isDeleted(this.__wbg_ptr)}firstTimeSeen(){const e=r.device_firstTimeSeen(this.__wbg_ptr);return BigInt.asUintN(64,e)}verify(){return r.device_verify(this.__wbg_ptr)}get isDehydrated(){return 0!==r.device_isDehydrated(this.__wbg_ptr)}}const ct=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_deviceid_free(e>>>0,1));class h{static __wrap(e){e>>>=0;const t=Object.create(h.prototype);return t.__wbg_ptr=e,ct.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ct.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_deviceid_free(e,0)}constructor(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),_=o,n=r.deviceid_new(t,_);return this.__wbg_ptr=n>>>0,ct.register(this,this.__wbg_ptr,this),this}toString(){let e,t;try{const _=r.deviceid_toString(this.__wbg_ptr);return e=_[0],t=_[1],w(_[0],_[1])}finally{r.__wbindgen_free(e,t,1)}}}const Xt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_devicekey_free(e>>>0,1));class X{static __wrap(e){e>>>=0;const t=Object.create(X.prototype);return t.__wbg_ptr=e,Xt.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Xt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_devicekey_free(e,0)}get name(){return r.devicekey_name(this.__wbg_ptr)}get curve25519(){const e=r.devicekey_curve25519(this.__wbg_ptr);return 0===e?void 0:R.__wrap(e)}get ed25519(){const e=r.devicekey_ed25519(this.__wbg_ptr);return 0===e?void 0:B.__wrap(e)}get unknown(){const e=r.devicekey_unknown(this.__wbg_ptr);let t;return 0!==e[0]&&(t=w(e[0],e[1]).slice(),r.__wbindgen_free(e[0],1*e[1],1)),t}toBase64(){let e,t;try{const _=r.devicekey_toBase64(this.__wbg_ptr);return e=_[0],t=_[1],w(_[0],_[1])}finally{r.__wbindgen_free(e,t,1)}}}const Zt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_devicekeyalgorithm_free(e>>>0,1));class Re{static __wrap(e){e>>>=0;const t=Object.create(Re.prototype);return t.__wbg_ptr=e,Zt.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Zt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_devicekeyalgorithm_free(e,0)}get name(){return r.devicekeyalgorithm_name(this.__wbg_ptr)}toString(){let e,t;try{const _=r.devicekeyalgorithm_toString(this.__wbg_ptr);return e=_[0],t=_[1],w(_[0],_[1])}finally{r.__wbindgen_free(e,t,1)}}}const at=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_devicekeyid_free(e>>>0,1));class A{static __wrap(e){e>>>=0;const t=Object.create(A.prototype);return t.__wbg_ptr=e,at.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,at.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_devicekeyid_free(e,0)}constructor(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),_=o,n=r.devicekeyid_new(t,_);if(n[2])throw c(n[1]);return this.__wbg_ptr=n[0]>>>0,at.register(this,this.__wbg_ptr,this),this}get algorithm(){const e=r.devicekeyid_algorithm(this.__wbg_ptr);return Re.__wrap(e)}get deviceId(){const e=r.devicekeyid_deviceId(this.__wbg_ptr);return h.__wrap(e)}toString(){let e,t;try{const _=r.devicekeyid_toString(this.__wbg_ptr);return e=_[0],t=_[1],w(_[0],_[1])}finally{r.__wbindgen_free(e,t,1)}}}const Yt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_devicelists_free(e>>>0,1));class Jr{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Yt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_devicelists_free(e,0)}constructor(e,t){var _=u(e)?0:S(e,r.__wbindgen_malloc),n=o,i=u(t)?0:S(t,r.__wbindgen_malloc),s=o;const g=r.devicelists_new(_,n,i,s);if(g[2])throw c(g[1]);return this.__wbg_ptr=g[0]>>>0,Yt.register(this,this.__wbg_ptr,this),this}isEmpty(){return 0!==r.devicelists_isEmpty(this.__wbg_ptr)}get changed(){const e=r.devicelists_changed(this.__wbg_ptr);var t=G(e[0],e[1]).slice();return r.__wbindgen_free(e[0],4*e[1],4),t}get left(){const e=r.devicelists_left(this.__wbg_ptr);var t=G(e[0],e[1]).slice();return r.__wbindgen_free(e[0],4*e[1],4),t}}const er=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_ecies_free(e>>>0,1));class C_{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,er.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_ecies_free(e,0)}constructor(){const e=r.ecies_new();return this.__wbg_ptr=e>>>0,er.register(this,this.__wbg_ptr,this),this}public_key(){const e=r.ecies_public_key(this.__wbg_ptr);return R.__wrap(e)}establish_inbound_channel(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),_=o,n=r.ecies_establish_inbound_channel(this.__wbg_ptr,t,_);if(n[2])throw c(n[1]);return qe.__wrap(n[0])}establish_outbound_channel(e,t){b(e,R);const _=g(t,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o,i=r.ecies_establish_outbound_channel(this.__wbg_ptr,e.__wbg_ptr,_,n);if(i[2])throw c(i[1]);return xe.__wrap(i[0])}}const tr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_ed25519publickey_free(e>>>0,1));class B{static __wrap(e){e>>>=0;const t=Object.create(B.prototype);return t.__wbg_ptr=e,tr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,tr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_ed25519publickey_free(e,0)}get length(){return r.ed25519publickey_length(this.__wbg_ptr)>>>0}toBase64(){let e,t;try{const _=r.ed25519publickey_toBase64(this.__wbg_ptr);return e=_[0],t=_[1],w(_[0],_[1])}finally{r.__wbindgen_free(e,t,1)}}}const gt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_ed25519signature_free(e>>>0,1));class M{static __wrap(e){e>>>=0;const t=Object.create(M.prototype);return t.__wbg_ptr=e,gt.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,gt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_ed25519signature_free(e,0)}constructor(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),_=o,n=r.ed25519signature_new(t,_);if(n[2])throw c(n[1]);return this.__wbg_ptr=n[0]>>>0,gt.register(this,this.__wbg_ptr,this),this}toBase64(){let e,t;try{const _=r.ed25519signature_toBase64(this.__wbg_ptr);return e=_[0],t=_[1],w(_[0],_[1])}finally{r.__wbindgen_free(e,t,1)}}}const rr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_emoji_free(e>>>0,1));class Fe{static __wrap(e){e>>>=0;const t=Object.create(Fe.prototype);return t.__wbg_ptr=e,rr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,rr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_emoji_free(e,0)}get symbol(){return r.emoji_symbol(this.__wbg_ptr)}get description(){return r.emoji_description(this.__wbg_ptr)}}const wt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_encryptedattachment_free(e>>>0,1));class P{static __wrap(e){e>>>=0;const t=Object.create(P.prototype);return t.__wbg_ptr=e,wt.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,wt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_encryptedattachment_free(e,0)}constructor(e,t){const _=C(e,r.__wbindgen_malloc),n=o,i=g(t,r.__wbindgen_malloc,r.__wbindgen_realloc),s=o,a=r.encryptedattachment_new(_,n,i,s);if(a[2])throw c(a[1]);return this.__wbg_ptr=a[0]>>>0,wt.register(this,this.__wbg_ptr,this),this}get encryptedData(){const e=r.encryptedattachment_encryptedData(this.__wbg_ptr);var t=j(e[0],e[1]).slice();return r.__wbindgen_free(e[0],1*e[1],1),t}get mediaEncryptionInfo(){const e=r.encryptedattachment_mediaEncryptionInfo(this.__wbg_ptr);let t;return 0!==e[0]&&(t=w(e[0],e[1]).slice(),r.__wbindgen_free(e[0],1*e[1],1)),t}get hasMediaEncryptionInfoBeenConsumed(){return 0!==r.encryptedattachment_hasMediaEncryptionInfoBeenConsumed(this.__wbg_ptr)}}const _r=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_encryptioninfo_free(e>>>0,1));class ze{static __wrap(e){e>>>=0;const t=Object.create(ze.prototype);return t.__wbg_ptr=e,_r.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,_r.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_encryptioninfo_free(e,0)}get sender(){const e=r.__wbg_get_encryptioninfo_sender(this.__wbg_ptr);return f.__wrap(e)}set sender(e){b(e,f);var t=e.__destroy_into_raw();r.__wbg_set_encryptioninfo_sender(this.__wbg_ptr,t)}get senderDevice(){const e=r.__wbg_get_encryptioninfo_senderDevice(this.__wbg_ptr);return 0===e?void 0:h.__wrap(e)}set senderDevice(e){let t=0;u(e)||(b(e,h),t=e.__destroy_into_raw()),r.__wbg_set_encryptioninfo_senderDevice(this.__wbg_ptr,t)}get senderCurve25519Key(){let e,t;try{const _=r.__wbg_get_encryptioninfo_senderCurve25519Key(this.__wbg_ptr);return e=_[0],t=_[1],w(_[0],_[1])}finally{r.__wbindgen_free(e,t,1)}}set senderCurve25519Key(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),_=o;r.__wbg_set_backupsecretsbundle_key(this.__wbg_ptr,t,_)}get senderClaimedEd25519Key(){const e=r.__wbg_get_encryptioninfo_senderClaimedEd25519Key(this.__wbg_ptr);let t;return 0!==e[0]&&(t=w(e[0],e[1]).slice(),r.__wbindgen_free(e[0],1*e[1],1)),t}set senderClaimedEd25519Key(e){var t=u(e)?0:g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),_=o;r.__wbg_set_basemigrationdata_backupVersion(this.__wbg_ptr,t,_)}shieldState(e){const t=r.encryptioninfo_shieldState(this.__wbg_ptr,e);return re.__wrap(t)}}const nr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_encryptionsettings_free(e>>>0,1));class $r{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,nr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_encryptionsettings_free(e,0)}get algorithm(){return r.__wbg_get_encryptionsettings_algorithm(this.__wbg_ptr)}set algorithm(e){r.__wbg_set_encryptionsettings_algorithm(this.__wbg_ptr,e)}get rotationPeriod(){const e=r.__wbg_get_encryptionsettings_rotationPeriod(this.__wbg_ptr);return BigInt.asUintN(64,e)}set rotationPeriod(e){r.__wbg_set_encryptionsettings_rotationPeriod(this.__wbg_ptr,e)}get rotationPeriodMessages(){const e=r.__wbg_get_encryptionsettings_rotationPeriodMessages(this.__wbg_ptr);return BigInt.asUintN(64,e)}set rotationPeriodMessages(e){r.__wbg_set_encryptionsettings_rotationPeriodMessages(this.__wbg_ptr,e)}get historyVisibility(){return r.__wbg_get_encryptionsettings_historyVisibility(this.__wbg_ptr)}set historyVisibility(e){r.__wbg_set_encryptionsettings_historyVisibility(this.__wbg_ptr,e)}get sharingStrategy(){const e=r.__wbg_get_encryptionsettings_sharingStrategy(this.__wbg_ptr);return q.__wrap(e)}set sharingStrategy(e){b(e,q);var t=e.__destroy_into_raw();r.__wbg_set_encryptionsettings_sharingStrategy(this.__wbg_ptr,t)}constructor(){const e=r.encryptionsettings_new();return this.__wbg_ptr=e>>>0,nr.register(this,this.__wbg_ptr,this),this}}const ir=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_establishedecies_free(e>>>0,1));class V{static __wrap(e){e>>>=0;const t=Object.create(V.prototype);return t.__wbg_ptr=e,ir.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ir.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_establishedecies_free(e,0)}public_key(){const e=r.establishedecies_public_key(this.__wbg_ptr);return R.__wrap(e)}encrypt(e){let t,_;try{const n=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),i=o,s=r.establishedecies_encrypt(this.__wbg_ptr,n,i);return t=s[0],_=s[1],w(s[0],s[1])}finally{r.__wbindgen_free(t,_,1)}}decrypt(e){let t,_;try{const s=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),a=o,b=r.establishedecies_decrypt(this.__wbg_ptr,s,a);var n=b[0],i=b[1];if(b[3])throw n=0,i=0,c(b[2]);return t=n,_=i,w(n,i)}finally{r.__wbindgen_free(t,_,1)}}check_code(){const e=r.establishedecies_check_code(this.__wbg_ptr);return pe.__wrap(e)}}const sr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_eventid_free(e>>>0,1));class Hr{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,sr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_eventid_free(e,0)}constructor(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),_=o,n=r.eventid_new(t,_);if(n[2])throw c(n[1]);return this.__wbg_ptr=n[0]>>>0,sr.register(this,this.__wbg_ptr,this),this}get localpart(){let e,t;try{const _=r.eventid_localpart(this.__wbg_ptr);return e=_[0],t=_[1],w(_[0],_[1])}finally{r.__wbindgen_free(e,t,1)}}get serverName(){const e=r.eventid_serverName(this.__wbg_ptr);return 0===e?void 0:te.__wrap(e)}toString(){let e,t;try{const _=r.eventid_toString(this.__wbg_ptr);return e=_[0],t=_[1],w(_[0],_[1])}finally{r.__wbindgen_free(e,t,1)}}}const or=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_identitykeys_free(e>>>0,1));class Se{static __wrap(e){e>>>=0;const t=Object.create(Se.prototype);return t.__wbg_ptr=e,or.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,or.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_identitykeys_free(e,0)}get ed25519(){const e=r.__wbg_get_identitykeys_ed25519(this.__wbg_ptr);return B.__wrap(e)}set ed25519(e){b(e,B);var t=e.__destroy_into_raw();r.__wbg_set_identitykeys_ed25519(this.__wbg_ptr,t)}get curve25519(){const e=r.__wbg_get_identitykeys_curve25519(this.__wbg_ptr);return R.__wrap(e)}set curve25519(e){b(e,R);var t=e.__destroy_into_raw();r.__wbg_set_identitykeys_curve25519(this.__wbg_ptr,t)}}const cr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_inboundcreationresult_free(e>>>0,1));class qe{static __wrap(e){e>>>=0;const t=Object.create(qe.prototype);return t.__wbg_ptr=e,cr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,cr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_inboundcreationresult_free(e,0)}get channel(){const e=r.__wbg_get_inboundcreationresult_channel(this.__wbg_ptr);return V.__wrap(e)}set channel(e){b(e,V);var t=e.__destroy_into_raw();r.__wbg_set_inboundcreationresult_channel(this.__wbg_ptr,t)}get message(){let e,t;try{const _=r.__wbg_get_inboundcreationresult_message(this.__wbg_ptr);return e=_[0],t=_[1],w(_[0],_[1])}finally{r.__wbindgen_free(e,t,1)}}set message(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),_=o;r.__wbg_set_backupsecretsbundle_key(this.__wbg_ptr,t,_)}}const ar=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_inboundgroupsession_free(e>>>0,1));class je{static __wrap(e){e>>>=0;const t=Object.create(je.prototype);return t.__wbg_ptr=e,ar.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ar.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_inboundgroupsession_free(e,0)}get roomId(){const e=r.inboundgroupsession_roomId(this.__wbg_ptr);return y.__wrap(e)}get senderKey(){const e=r.inboundgroupsession_senderKey(this.__wbg_ptr);return R.__wrap(e)}get sessionId(){let e,t;try{const _=r.inboundgroupsession_sessionId(this.__wbg_ptr);return e=_[0],t=_[1],w(_[0],_[1])}finally{r.__wbindgen_free(e,t,1)}}hasBeenImported(){return 0!==r.inboundgroupsession_hasBeenImported(this.__wbg_ptr)}}const gr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_invalidtodeviceevent_free(e>>>0,1));class Ke{static __wrap(e){e>>>=0;const t=Object.create(Ke.prototype);return t.__wbg_ptr=e,gr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,gr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_invalidtodeviceevent_free(e,0)}get rawEvent(){return r.__wbg_get_invalidtodeviceevent_rawEvent(this.__wbg_ptr)}get type(){return r.invalidtodeviceevent_type(this.__wbg_ptr)}}const dt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_keysbackuprequest_free(e>>>0,1));class Ie{static __wrap(e){e>>>=0;const t=Object.create(Ie.prototype);return t.__wbg_ptr=e,dt.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,dt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_keysbackuprequest_free(e,0)}get id(){return r.__wbg_get_keysbackuprequest_id(this.__wbg_ptr)}get body(){return r.__wbg_get_keysbackuprequest_body(this.__wbg_ptr)}get version(){return r.__wbg_get_keysbackuprequest_version(this.__wbg_ptr)}constructor(e,t,_){const n=r.keysbackuprequest_new(e,t,_);return this.__wbg_ptr=n>>>0,dt.register(this,this.__wbg_ptr,this),this}get type(){return r.keysbackuprequest_type(this.__wbg_ptr)}}const bt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_keysclaimrequest_free(e>>>0,1));class Ce{static __wrap(e){e>>>=0;const t=Object.create(Ce.prototype);return t.__wbg_ptr=e,bt.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,bt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_keysclaimrequest_free(e,0)}get id(){return r.__wbg_get_keysclaimrequest_id(this.__wbg_ptr)}get body(){return r.__wbg_get_keysclaimrequest_body(this.__wbg_ptr)}constructor(e,t){const _=r.keysclaimrequest_new(e,t);return this.__wbg_ptr=_>>>0,bt.register(this,this.__wbg_ptr,this),this}get type(){return r.keysclaimrequest_type(this.__wbg_ptr)}}const ut=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_keysqueryrequest_free(e>>>0,1));class Z{static __wrap(e){e>>>=0;const t=Object.create(Z.prototype);return t.__wbg_ptr=e,ut.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ut.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_keysqueryrequest_free(e,0)}get id(){return r.__wbg_get_keysqueryrequest_id(this.__wbg_ptr)}get body(){return r.__wbg_get_keysqueryrequest_body(this.__wbg_ptr)}constructor(e,t){const _=r.keysqueryrequest_new(e,t);return this.__wbg_ptr=_>>>0,ut.register(this,this.__wbg_ptr,this),this}get type(){return r.keysqueryrequest_type(this.__wbg_ptr)}}const pt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_keysuploadrequest_free(e>>>0,1));class De{static __wrap(e){e>>>=0;const t=Object.create(De.prototype);return t.__wbg_ptr=e,pt.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,pt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_keysuploadrequest_free(e,0)}get id(){return r.__wbg_get_keysuploadrequest_id(this.__wbg_ptr)}get body(){return r.__wbg_get_keysuploadrequest_body(this.__wbg_ptr)}constructor(e,t){const _=r.keysuploadrequest_new(e,t);return this.__wbg_ptr=_>>>0,pt.register(this,this.__wbg_ptr,this),this}get type(){return r.keysuploadrequest_type(this.__wbg_ptr)}}const wr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_maybesignature_free(e>>>0,1));class Y{static __wrap(e){e>>>=0;const t=Object.create(Y.prototype);return t.__wbg_ptr=e,wr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,wr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_maybesignature_free(e,0)}isValid(){return 0!==r.maybesignature_isValid(this.__wbg_ptr)}isInvalid(){return 0!==r.maybesignature_isInvalid(this.__wbg_ptr)}get signature(){const e=r.maybesignature_signature(this.__wbg_ptr);return 0===e?void 0:Ze.__wrap(e)}get invalidSignatureSource(){const e=r.maybesignature_invalidSignatureSource(this.__wbg_ptr);let t;return 0!==e[0]&&(t=w(e[0],e[1]).slice(),r.__wbindgen_free(e[0],1*e[1],1)),t}}const dr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_megolmdecryptionerror_free(e>>>0,1));class Oe{static __wrap(e){e>>>=0;const t=Object.create(Oe.prototype);return t.__wbg_ptr=e,dr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,dr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_megolmdecryptionerror_free(e,0)}get code(){return r.__wbg_get_megolmdecryptionerror_code(this.__wbg_ptr)}get description(){return r.__wbg_get_megolmdecryptionerror_description(this.__wbg_ptr)}get maybe_withheld(){return r.__wbg_get_megolmdecryptionerror_maybe_withheld(this.__wbg_ptr)}}const br=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_megolmv1backupkey_free(e>>>0,1));class Ue{static __wrap(e){e>>>=0;const t=Object.create(Ue.prototype);return t.__wbg_ptr=e,br.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,br.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_megolmv1backupkey_free(e,0)}get publicKeyBase64(){return r.megolmv1backupkey_publicKeyBase64(this.__wbg_ptr)}get algorithm(){return r.megolmv1backupkey_algorithm(this.__wbg_ptr)}}const D_=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_migration_free(e>>>0,1));class O_{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,D_.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_migration_free(e,0)}static migrateBaseData(e,t,_,n){return b(e,Qr),b(_,U),r.migration_migrateBaseData(e.__wbg_ptr,t,_.__wbg_ptr,u(n)?0:v(n))}static migrateOlmSessions(e,t,_,n){const i=S(e,r.__wbindgen_malloc),s=o;b(_,U);const g=r.migration_migrateOlmSessions(i,s,t,_.__wbg_ptr,u(n)?0:v(n));if(g[2])throw c(g[1]);return c(g[0])}static migrateMegolmSessions(e,t,_,n){const i=S(e,r.__wbindgen_malloc),s=o;b(_,U);const g=r.migration_migrateMegolmSessions(i,s,t,_.__wbg_ptr,u(n)?0:v(n));if(g[2])throw c(g[1]);return c(g[0])}}const lt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_olmmachine_free(e>>>0,1));class Be{static __wrap(e){e>>>=0;const t=Object.create(Be.prototype);return t.__wbg_ptr=e,lt.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,lt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_olmmachine_free(e,0)}constructor(){const e=r.olmmachine_new();if(e[2])throw c(e[1]);return this.__wbg_ptr=e[0]>>>0,lt.register(this,this.__wbg_ptr,this),this}static initialize(e,t,_,n,i){b(e,f),b(t,h);var s=u(_)?0:g(_,r.__wbindgen_malloc,r.__wbindgen_realloc),c=o,a=u(n)?0:g(n,r.__wbindgen_malloc,r.__wbindgen_realloc),w=o;return r.olmmachine_initialize(e.__wbg_ptr,t.__wbg_ptr,s,c,a,w,u(i)?0:v(i))}static initFromStore(e,t,_,n){return b(e,f),b(t,h),b(_,U),r.olmmachine_initFromStore(e.__wbg_ptr,t.__wbg_ptr,_.__wbg_ptr,u(n)?0:v(n))}get userId(){const e=r.olmmachine_userId(this.__wbg_ptr);return f.__wrap(e)}get deviceId(){const e=r.olmmachine_deviceId(this.__wbg_ptr);return h.__wrap(e)}get deviceCreationTimeMs(){return r.olmmachine_deviceCreationTimeMs(this.__wbg_ptr)}get identityKeys(){const e=r.olmmachine_identityKeys(this.__wbg_ptr);return Se.__wrap(e)}get displayName(){return r.olmmachine_displayName(this.__wbg_ptr)}get roomKeyRequestsEnabled(){return 0!==r.olmmachine_roomKeyRequestsEnabled(this.__wbg_ptr)}set roomKeyRequestsEnabled(e){r.olmmachine_set_roomKeyRequestsEnabled(this.__wbg_ptr,e)}get roomKeyForwardingEnabled(){return 0!==r.olmmachine_roomKeyForwardingEnabled(this.__wbg_ptr)}set roomKeyForwardingEnabled(e){r.olmmachine_set_roomKeyForwardingEnabled(this.__wbg_ptr,e)}trackedUsers(){const e=r.olmmachine_trackedUsers(this.__wbg_ptr);if(e[2])throw c(e[1]);return c(e[0])}updateTrackedUsers(e){const t=S(e,r.__wbindgen_malloc),_=o;return r.olmmachine_updateTrackedUsers(this.__wbg_ptr,t,_)}markAllTrackedUsersAsDirty(){return r.olmmachine_markAllTrackedUsersAsDirty(this.__wbg_ptr)}receiveSyncChanges(e,t,_,n){const i=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),s=o;b(t,Jr);const a=r.olmmachine_receiveSyncChanges(this.__wbg_ptr,i,s,t.__wbg_ptr,_,u(n)?0:v(n));if(a[2])throw c(a[1]);return c(a[0])}outgoingRequests(){return r.olmmachine_outgoingRequests(this.__wbg_ptr)}markRequestAsSent(e,t,_){const n=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),i=o,s=g(_,r.__wbindgen_malloc,r.__wbindgen_realloc),a=o,w=r.olmmachine_markRequestAsSent(this.__wbg_ptr,n,i,t,s,a);if(w[2])throw c(w[1]);return c(w[0])}encryptRoomEvent(e,t,_){b(e,y);const n=g(t,r.__wbindgen_malloc,r.__wbindgen_realloc),i=o,s=g(_,r.__wbindgen_malloc,r.__wbindgen_realloc),a=o,w=r.olmmachine_encryptRoomEvent(this.__wbg_ptr,e.__wbg_ptr,n,i,s,a);if(w[2])throw c(w[1]);return c(w[0])}decryptRoomEvent(e,t,_){const n=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),i=o;b(t,y),b(_,Gr);const s=r.olmmachine_decryptRoomEvent(this.__wbg_ptr,n,i,t.__wbg_ptr,_.__wbg_ptr);if(s[2])throw c(s[1]);return c(s[0])}getRoomEventEncryptionInfo(e,t){const _=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;b(t,y);const i=r.olmmachine_getRoomEventEncryptionInfo(this.__wbg_ptr,_,n,t.__wbg_ptr);if(i[2])throw c(i[1]);return c(i[0])}crossSigningStatus(){return r.olmmachine_crossSigningStatus(this.__wbg_ptr)}exportSecretsBundle(){return r.olmmachine_exportSecretsBundle(this.__wbg_ptr)}importSecretsBundle(e){b(e,N);var t=e.__destroy_into_raw();return r.olmmachine_importSecretsBundle(this.__wbg_ptr,t)}exportCrossSigningKeys(){return r.olmmachine_exportCrossSigningKeys(this.__wbg_ptr)}importCrossSigningKeys(e,t,_){var n=u(e)?0:g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),i=o,s=u(t)?0:g(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=o,a=u(_)?0:g(_,r.__wbindgen_malloc,r.__wbindgen_realloc),w=o;return r.olmmachine_importCrossSigningKeys(this.__wbg_ptr,n,i,s,c,a,w)}bootstrapCrossSigning(e){return r.olmmachine_bootstrapCrossSigning(this.__wbg_ptr,e)}getIdentity(e){return b(e,f),r.olmmachine_getIdentity(this.__wbg_ptr,e.__wbg_ptr)}sign(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),_=o;return r.olmmachine_sign(this.__wbg_ptr,t,_)}invalidateGroupSession(e){return b(e,y),r.olmmachine_invalidateGroupSession(this.__wbg_ptr,e.__wbg_ptr)}shareRoomKey(e,t,_){b(e,y);const n=S(t,r.__wbindgen_malloc),i=o;return b(_,$r),r.olmmachine_shareRoomKey(this.__wbg_ptr,e.__wbg_ptr,n,i,_.__wbg_ptr)}queryKeysForUsers(e){const t=S(e,r.__wbindgen_malloc),_=o,n=r.olmmachine_queryKeysForUsers(this.__wbg_ptr,t,_);if(n[2])throw c(n[1]);return Z.__wrap(n[0])}getMissingSessions(e){const t=S(e,r.__wbindgen_malloc),_=o;return r.olmmachine_getMissingSessions(this.__wbg_ptr,t,_)}getUserDevices(e,t){return b(e,f),r.olmmachine_getUserDevices(this.__wbg_ptr,e.__wbg_ptr,!u(t),u(t)?0:t)}getDevice(e,t,_){return b(e,f),b(t,h),r.olmmachine_getDevice(this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr,!u(_),u(_)?0:_)}getVerification(e,t){b(e,f);const _=g(t,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o,i=r.olmmachine_getVerification(this.__wbg_ptr,e.__wbg_ptr,_,n);if(i[2])throw c(i[1]);return c(i[0])}getVerificationRequest(e,t){b(e,f);const _=g(t,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o,i=r.olmmachine_getVerificationRequest(this.__wbg_ptr,e.__wbg_ptr,_,n);return 0===i?void 0:L.__wrap(i)}getVerificationRequests(e){return b(e,f),r.olmmachine_getVerificationRequests(this.__wbg_ptr,e.__wbg_ptr)}receiveVerificationEvent(e,t){const _=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;b(t,y);const i=r.olmmachine_receiveVerificationEvent(this.__wbg_ptr,_,n,t.__wbg_ptr);if(i[2])throw c(i[1]);return c(i[0])}exportRoomKeys(e){return r.olmmachine_exportRoomKeys(this.__wbg_ptr,e)}importRoomKeys(e,t){const _=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o,i=r.olmmachine_importRoomKeys(this.__wbg_ptr,_,n,t);if(i[2])throw c(i[1]);return c(i[0])}importExportedRoomKeys(e,t){const _=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o,i=r.olmmachine_importExportedRoomKeys(this.__wbg_ptr,_,n,t);if(i[2])throw c(i[1]);return c(i[0])}importBackedUpRoomKeys(e,t,_){const n=g(_,r.__wbindgen_malloc,r.__wbindgen_realloc),i=o,s=r.olmmachine_importBackedUpRoomKeys(this.__wbg_ptr,e,u(t)?0:v(t),n,i);if(s[2])throw c(s[1]);return c(s[0])}saveBackupDecryptionKey(e,t){b(e,O);const _=g(t,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;return r.olmmachine_saveBackupDecryptionKey(this.__wbg_ptr,e.__wbg_ptr,_,n)}getBackupKeys(){return r.olmmachine_getBackupKeys(this.__wbg_ptr)}verifyBackup(e){const t=r.olmmachine_verifyBackup(this.__wbg_ptr,e);if(t[2])throw c(t[1]);return c(t[0])}enableBackupV1(e,t){const _=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o,i=g(t,r.__wbindgen_malloc,r.__wbindgen_realloc),s=o,a=r.olmmachine_enableBackupV1(this.__wbg_ptr,_,n,i,s);if(a[2])throw c(a[1]);return c(a[0])}isBackupEnabled(){return r.olmmachine_isBackupEnabled(this.__wbg_ptr)}disableBackup(){return r.olmmachine_disableBackup(this.__wbg_ptr)}backupRoomKeys(){return r.olmmachine_backupRoomKeys(this.__wbg_ptr)}roomKeyCounts(){return r.olmmachine_roomKeyCounts(this.__wbg_ptr)}static encryptExportedRoomKeys(e,t,_){let n,i;try{const b=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),u=o,d=g(t,r.__wbindgen_malloc,r.__wbindgen_realloc),p=o,l=r.olmmachine_encryptExportedRoomKeys(b,u,d,p,_);var s=l[0],a=l[1];if(l[3])throw s=0,a=0,c(l[2]);return n=s,i=a,w(s,a)}finally{r.__wbindgen_free(n,i,1)}}static decryptExportedRoomKeys(e,t){let _,n;try{const a=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),b=o,u=g(t,r.__wbindgen_malloc,r.__wbindgen_realloc),d=o,p=r.olmmachine_decryptExportedRoomKeys(a,b,u,d);var i=p[0],s=p[1];if(p[3])throw i=0,s=0,c(p[2]);return _=i,n=s,w(i,s)}finally{r.__wbindgen_free(_,n,1)}}registerRoomKeyUpdatedCallback(e){r.olmmachine_registerRoomKeyUpdatedCallback(this.__wbg_ptr,e)}registerRoomKeysWithheldCallback(e){r.olmmachine_registerRoomKeysWithheldCallback(this.__wbg_ptr,e)}registerUserIdentityUpdatedCallback(e){r.olmmachine_registerUserIdentityUpdatedCallback(this.__wbg_ptr,e)}registerDevicesUpdatedCallback(e){r.olmmachine_registerDevicesUpdatedCallback(this.__wbg_ptr,e)}registerReceiveSecretCallback(e){r.olmmachine_registerReceiveSecretCallback(this.__wbg_ptr,e)}getSecretsFromInbox(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),_=o;return r.olmmachine_getSecretsFromInbox(this.__wbg_ptr,t,_)}deleteSecretsFromInbox(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),_=o;return r.olmmachine_deleteSecretsFromInbox(this.__wbg_ptr,t,_)}requestMissingSecretsIfNeeded(){return r.olmmachine_requestMissingSecretsIfNeeded(this.__wbg_ptr)}getRoomSettings(e){return b(e,y),r.olmmachine_getRoomSettings(this.__wbg_ptr,e.__wbg_ptr)}setRoomSettings(e,t){return b(e,y),b(t,ee),r.olmmachine_setRoomSettings(this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr)}dehydratedDevices(){const e=r.olmmachine_dehydratedDevices(this.__wbg_ptr);return ke.__wrap(e)}buildRoomKeyBundle(e){return b(e,y),r.olmmachine_buildRoomKeyBundle(this.__wbg_ptr,e.__wbg_ptr)}shareRoomKeyBundleData(e,t,_,n,i){b(e,f),b(t,y);const s=g(_,r.__wbindgen_malloc,r.__wbindgen_realloc),a=o;var w=u(n)?0:g(n,r.__wbindgen_malloc,r.__wbindgen_realloc),d=o;b(i,q);var p=i.__destroy_into_raw();const l=r.olmmachine_shareRoomKeyBundleData(this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr,s,a,w,d,p);if(l[2])throw c(l[1]);return c(l[0])}getReceivedRoomKeyBundleData(e,t){return b(e,y),b(t,f),r.olmmachine_getReceivedRoomKeyBundleData(this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr)}receiveRoomKeyBundle(e,t){b(e,ie);const _=C(t,r.__wbindgen_malloc),n=o,i=r.olmmachine_receiveRoomKeyBundle(this.__wbg_ptr,e.__wbg_ptr,_,n);if(i[2])throw c(i[1]);return c(i[0])}close(){const e=this.__destroy_into_raw();r.olmmachine_close(e)}}const ur=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_otheruseridentity_free(e>>>0,1));class Ve{static __wrap(e){e>>>=0;const t=Object.create(Ve.prototype);return t.__wbg_ptr=e,ur.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ur.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_otheruseridentity_free(e,0)}isVerified(){return 0!==r.otheruseridentity_isVerified(this.__wbg_ptr)}verify(){return r.otheruseridentity_verify(this.__wbg_ptr)}requestVerification(e,t,_){b(e,y),b(t,Hr);var n=u(_)?0:S(_,r.__wbindgen_malloc),i=o;const s=r.otheruseridentity_requestVerification(this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr,n,i);if(s[2])throw c(s[1]);return L.__wrap(s[0])}verificationRequestContent(e){let t,_;try{var n=u(e)?0:S(e,r.__wbindgen_malloc),i=o;const a=r.otheruseridentity_verificationRequestContent(this.__wbg_ptr,n,i);var s=a[0],g=a[1];if(a[3])throw s=0,g=0,c(a[2]);return t=s,_=g,w(s,g)}finally{r.__wbindgen_free(t,_,1)}}get masterKey(){let e,t;try{const i=r.otheruseridentity_masterKey(this.__wbg_ptr);var _=i[0],n=i[1];if(i[3])throw _=0,n=0,c(i[2]);return e=_,t=n,w(_,n)}finally{r.__wbindgen_free(e,t,1)}}get selfSigningKey(){let e,t;try{const i=r.otheruseridentity_selfSigningKey(this.__wbg_ptr);var _=i[0],n=i[1];if(i[3])throw _=0,n=0,c(i[2]);return e=_,t=n,w(_,n)}finally{r.__wbindgen_free(e,t,1)}}pinCurrentMasterKey(){return r.otheruseridentity_pinCurrentMasterKey(this.__wbg_ptr)}identityNeedsUserApproval(){return 0!==r.otheruseridentity_identityNeedsUserApproval(this.__wbg_ptr)}wasPreviouslyVerified(){return 0!==r.otheruseridentity_wasPreviouslyVerified(this.__wbg_ptr)}withdrawVerification(){return r.otheruseridentity_withdrawVerification(this.__wbg_ptr)}hasVerificationViolation(){return 0!==r.otheruseridentity_hasVerificationViolation(this.__wbg_ptr)}}const pr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_outboundcreationresult_free(e>>>0,1));class xe{static __wrap(e){e>>>=0;const t=Object.create(xe.prototype);return t.__wbg_ptr=e,pr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,pr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_outboundcreationresult_free(e,0)}get channel(){const e=r.__wbg_get_inboundcreationresult_channel(this.__wbg_ptr);return V.__wrap(e)}set channel(e){b(e,V);var t=e.__destroy_into_raw();r.__wbg_set_inboundcreationresult_channel(this.__wbg_ptr,t)}get initial_message(){let e,t;try{const _=r.__wbg_get_outboundcreationresult_initial_message(this.__wbg_ptr);return e=_[0],t=_[1],w(_[0],_[1])}finally{r.__wbindgen_free(e,t,1)}}set initial_message(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),_=o;r.__wbg_set_backupsecretsbundle_key(this.__wbg_ptr,t,_)}}const lr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_ownuseridentity_free(e>>>0,1));class Ee{static __wrap(e){e>>>=0;const t=Object.create(Ee.prototype);return t.__wbg_ptr=e,lr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,lr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_ownuseridentity_free(e,0)}isVerified(){return 0!==r.ownuseridentity_isVerified(this.__wbg_ptr)}verify(){return r.ownuseridentity_verify(this.__wbg_ptr)}requestVerification(e){var t=u(e)?0:S(e,r.__wbindgen_malloc),_=o;const n=r.ownuseridentity_requestVerification(this.__wbg_ptr,t,_);if(n[2])throw c(n[1]);return c(n[0])}trustsOurOwnDevice(){return r.ownuseridentity_trustsOurOwnDevice(this.__wbg_ptr)}get masterKey(){let e,t;try{const i=r.ownuseridentity_masterKey(this.__wbg_ptr);var _=i[0],n=i[1];if(i[3])throw _=0,n=0,c(i[2]);return e=_,t=n,w(_,n)}finally{r.__wbindgen_free(e,t,1)}}get selfSigningKey(){let e,t;try{const i=r.ownuseridentity_selfSigningKey(this.__wbg_ptr);var _=i[0],n=i[1];if(i[3])throw _=0,n=0,c(i[2]);return e=_,t=n,w(_,n)}finally{r.__wbindgen_free(e,t,1)}}get userSigningKey(){let e,t;try{const i=r.ownuseridentity_userSigningKey(this.__wbg_ptr);var _=i[0],n=i[1];if(i[3])throw _=0,n=0,c(i[2]);return e=_,t=n,w(_,n)}finally{r.__wbindgen_free(e,t,1)}}wasPreviouslyVerified(){return 0!==r.ownuseridentity_wasPreviouslyVerified(this.__wbg_ptr)}withdrawVerification(){return r.ownuseridentity_withdrawVerification(this.__wbg_ptr)}hasVerificationViolation(){return 0!==r.ownuseridentity_hasVerificationViolation(this.__wbg_ptr)}}const fr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_pickledinboundgroupsession_free(e>>>0,1));class Te{static __unwrap(e){return e instanceof Te?e.__destroy_into_raw():0}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,fr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_pickledinboundgroupsession_free(e,0)}get pickle(){let e,t;try{const _=r.__wbg_get_pickledinboundgroupsession_pickle(this.__wbg_ptr);return e=_[0],t=_[1],w(_[0],_[1])}finally{r.__wbindgen_free(e,t,1)}}set pickle(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),_=o;r.__wbg_set_backupsecretsbundle_key(this.__wbg_ptr,t,_)}get senderKey(){let e,t;try{const _=r.__wbg_get_pickledinboundgroupsession_senderKey(this.__wbg_ptr);return e=_[0],t=_[1],w(_[0],_[1])}finally{r.__wbindgen_free(e,t,1)}}set senderKey(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),_=o;r.__wbg_set_backupsecretsbundle_backup_version(this.__wbg_ptr,t,_)}get senderSigningKey(){const e=r.__wbg_get_pickledinboundgroupsession_senderSigningKey(this.__wbg_ptr);let t;return 0!==e[0]&&(t=w(e[0],e[1]).slice(),r.__wbindgen_free(e[0],1*e[1],1)),t}set senderSigningKey(e){var t=u(e)?0:g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),_=o;r.__wbg_set_basemigrationdata_backupRecoveryKey(this.__wbg_ptr,t,_)}get roomId(){const e=r.__wbg_get_pickledinboundgroupsession_roomId(this.__wbg_ptr);return 0===e?void 0:y.__wrap(e)}set roomId(e){let t=0;u(e)||(b(e,y),t=e.__destroy_into_raw()),r.__wbg_set_pickledinboundgroupsession_roomId(this.__wbg_ptr,t)}get imported(){return 0!==r.__wbg_get_pickledinboundgroupsession_imported(this.__wbg_ptr)}set imported(e){r.__wbg_set_pickledinboundgroupsession_imported(this.__wbg_ptr,e)}get backedUp(){return 0!==r.__wbg_get_pickledinboundgroupsession_backedUp(this.__wbg_ptr)}set backedUp(e){r.__wbg_set_pickledinboundgroupsession_backedUp(this.__wbg_ptr,e)}constructor(){const e=r.pickledinboundgroupsession_new();return this.__wbg_ptr=e>>>0,fr.register(this,this.__wbg_ptr,this),this}}const yr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_pickledsession_free(e>>>0,1));class Ae{static __unwrap(e){return e instanceof Ae?e.__destroy_into_raw():0}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,yr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_pickledsession_free(e,0)}get pickle(){let e,t;try{const _=r.__wbg_get_pickledsession_pickle(this.__wbg_ptr);return e=_[0],t=_[1],w(_[0],_[1])}finally{r.__wbindgen_free(e,t,1)}}set pickle(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),_=o;r.__wbg_set_backupsecretsbundle_key(this.__wbg_ptr,t,_)}get senderKey(){let e,t;try{const _=r.__wbg_get_pickledsession_senderKey(this.__wbg_ptr);return e=_[0],t=_[1],w(_[0],_[1])}finally{r.__wbindgen_free(e,t,1)}}set senderKey(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),_=o;r.__wbg_set_backupsecretsbundle_backup_version(this.__wbg_ptr,t,_)}get createdUsingFallbackKey(){return 0!==r.__wbg_get_pickledsession_createdUsingFallbackKey(this.__wbg_ptr)}set createdUsingFallbackKey(e){r.__wbg_set_pickledsession_createdUsingFallbackKey(this.__wbg_ptr,e)}get creationTime(){return r.__wbg_get_pickledsession_creationTime(this.__wbg_ptr)}set creationTime(e){r.__wbg_set_pickledsession_creationTime(this.__wbg_ptr,e)}get lastUseTime(){return r.__wbg_get_pickledsession_lastUseTime(this.__wbg_ptr)}set lastUseTime(e){r.__wbg_set_pickledsession_lastUseTime(this.__wbg_ptr,e)}constructor(){const e=r.pickledsession_new();return this.__wbg_ptr=e>>>0,yr.register(this,this.__wbg_ptr,this),this}}const ft=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_pkdecryption_free(e>>>0,1));class we{static __wrap(e){e>>>=0;const t=Object.create(we.prototype);return t.__wbg_ptr=e,ft.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ft.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_pkdecryption_free(e,0)}constructor(){const e=r.pkdecryption_new();return this.__wbg_ptr=e>>>0,ft.register(this,this.__wbg_ptr,this),this}static fromKey(e){b(e,D);const t=r.pkdecryption_fromKey(e.__wbg_ptr);return we.__wrap(t)}secretKey(){const e=r.pkdecryption_secretKey(this.__wbg_ptr);return D.__wrap(e)}publicKey(){const e=r.pkdecryption_publicKey(this.__wbg_ptr);return R.__wrap(e)}decryptString(e){let t,_;try{b(e,I);const s=r.pkdecryption_decryptString(this.__wbg_ptr,e.__wbg_ptr);var n=s[0],i=s[1];if(s[3])throw n=0,i=0,c(s[2]);return t=n,_=i,w(n,i)}finally{r.__wbindgen_free(t,_,1)}}decrypt(e){b(e,I);const t=r.pkdecryption_decrypt(this.__wbg_ptr,e.__wbg_ptr);if(t[3])throw c(t[2]);var _=j(t[0],t[1]).slice();return r.__wbindgen_free(t[0],1*t[1],1),_}}const hr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_pkencryption_free(e>>>0,1));class de{static __wrap(e){e>>>=0;const t=Object.create(de.prototype);return t.__wbg_ptr=e,hr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,hr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_pkencryption_free(e,0)}static fromKey(e){b(e,R);const t=r.pkencryption_fromKey(e.__wbg_ptr);return de.__wrap(t)}encrypt(e){const t=C(e,r.__wbindgen_malloc),_=o,n=r.pkencryption_encrypt(this.__wbg_ptr,t,_);return I.__wrap(n)}encryptString(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),_=o,n=r.pkencryption_encrypt(this.__wbg_ptr,t,_);return I.__wrap(n)}}const mr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_pkmessage_free(e>>>0,1));class I{static __wrap(e){e>>>=0;const t=Object.create(I.prototype);return t.__wbg_ptr=e,mr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,mr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_pkmessage_free(e,0)}ciphertext(){const e=r.pkmessage_ciphertext(this.__wbg_ptr);var t=j(e[0],e[1]).slice();return r.__wbindgen_free(e[0],1*e[1],1),t}mac(){const e=r.pkmessage_mac(this.__wbg_ptr);var t=j(e[0],e[1]).slice();return r.__wbindgen_free(e[0],1*e[1],1),t}ephemeralKey(){const e=r.pkmessage_ephemeralKey(this.__wbg_ptr);return R.__wrap(e)}static fromParts(e,t,_){const n=C(e,r.__wbindgen_malloc),i=o,s=C(t,r.__wbindgen_malloc),g=o;b(_,R);const c=r.pkmessage_fromParts(n,i,s,g,_.__wbg_ptr);return I.__wrap(c)}static fromBase64(e){b(e,J);const t=r.pkmessage_fromBase64(e.__wbg_ptr);if(t[2])throw c(t[1]);return I.__wrap(t[0])}toBase64(){const e=r.pkmessage_toBase64(this.__wbg_ptr);return J.__wrap(e)}}const vr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_plaintexttodeviceevent_free(e>>>0,1));class Me{static __wrap(e){e>>>=0;const t=Object.create(Me.prototype);return t.__wbg_ptr=e,vr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,vr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_plaintexttodeviceevent_free(e,0)}get rawEvent(){return r.__wbg_get_plaintexttodeviceevent_rawEvent(this.__wbg_ptr)}get type(){return r.plaintexttodeviceevent_type(this.__wbg_ptr)}}const yt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_putdehydrateddevicerequest_free(e>>>0,1));class Pe{static __wrap(e){e>>>=0;const t=Object.create(Pe.prototype);return t.__wbg_ptr=e,yt.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,yt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_putdehydrateddevicerequest_free(e,0)}get body(){return r.__wbg_get_putdehydrateddevicerequest_body(this.__wbg_ptr)}constructor(e){const t=r.putdehydrateddevicerequest_new(e);return this.__wbg_ptr=t>>>0,yt.register(this,this.__wbg_ptr,this),this}}const kr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_qr_free(e>>>0,1));class Ne{static __wrap(e){e>>>=0;const t=Object.create(Ne.prototype);return t.__wbg_ptr=e,kr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,kr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_qr_free(e,0)}state(){return r.qr_state(this.__wbg_ptr)}hasBeenScanned(){return 0!==r.qr_hasBeenScanned(this.__wbg_ptr)}hasBeenConfirmed(){return 0!==r.qr_hasBeenConfirmed(this.__wbg_ptr)}get userId(){const e=r.qr_userId(this.__wbg_ptr);return f.__wrap(e)}get otherUserId(){const e=r.qr_otherUserId(this.__wbg_ptr);return f.__wrap(e)}get otherDeviceId(){const e=r.qr_otherDeviceId(this.__wbg_ptr);return h.__wrap(e)}weStarted(){return 0!==r.qr_weStarted(this.__wbg_ptr)}cancelInfo(){const e=r.qr_cancelInfo(this.__wbg_ptr);return 0===e?void 0:W.__wrap(e)}isDone(){return 0!==r.qr_isDone(this.__wbg_ptr)}isCancelled(){return 0!==r.qr_isCancelled(this.__wbg_ptr)}isSelfVerification(){return 0!==r.qr_isSelfVerification(this.__wbg_ptr)}reciprocated(){return 0!==r.qr_reciprocated(this.__wbg_ptr)}get flowId(){let e,t;try{const _=r.qr_flowId(this.__wbg_ptr);return e=_[0],t=_[1],w(_[0],_[1])}finally{r.__wbindgen_free(e,t,1)}}get roomId(){const e=r.qr_roomId(this.__wbg_ptr);return 0===e?void 0:y.__wrap(e)}toQrCode(){const e=r.qr_toQrCode(this.__wbg_ptr);if(e[2])throw c(e[1]);return We.__wrap(e[0])}toBytes(){const e=r.qr_toBytes(this.__wbg_ptr);if(e[2])throw c(e[1]);return c(e[0])}reciprocate(){const e=r.qr_reciprocate(this.__wbg_ptr);if(e[2])throw c(e[1]);return c(e[0])}confirmScanning(){const e=r.qr_confirmScanning(this.__wbg_ptr);if(e[2])throw c(e[1]);return c(e[0])}cancel(){const e=r.qr_cancel(this.__wbg_ptr);if(e[2])throw c(e[1]);return c(e[0])}cancelWithCode(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),_=o,n=r.qr_cancelWithCode(this.__wbg_ptr,t,_);if(n[2])throw c(n[1]);return c(n[0])}registerChangesCallback(e){r.qr_registerChangesCallback(this.__wbg_ptr,e)}}const Rr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_qrcode_free(e>>>0,1));class We{static __wrap(e){e>>>=0;const t=Object.create(We.prototype);return t.__wbg_ptr=e,Rr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Rr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_qrcode_free(e,0)}renderIntoBuffer(){const e=r.qrcode_renderIntoBuffer(this.__wbg_ptr);if(e[2])throw c(e[1]);return c(e[0])}}const ht=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_qrcodedata_free(e>>>0,1));class Q{static __wrap(e){e>>>=0;const t=Object.create(Q.prototype);return t.__wbg_ptr=e,ht.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ht.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_qrcodedata_free(e,0)}constructor(e,t,_){b(e,R);var n=e.__destroy_into_raw();const i=g(t,r.__wbindgen_malloc,r.__wbindgen_realloc),s=o;var a=u(_)?0:g(_,r.__wbindgen_malloc,r.__wbindgen_realloc),w=o;const d=r.qrcodedata_new(n,i,s,a,w);if(d[2])throw c(d[1]);return this.__wbg_ptr=d[0]>>>0,ht.register(this,this.__wbg_ptr,this),this}static fromBytes(e){const t=C(e,r.__wbindgen_malloc),_=o,n=r.qrcodedata_fromBytes(t,_);if(n[2])throw c(n[1]);return Q.__wrap(n[0])}toBytes(){const e=r.qrcodedata_toBytes(this.__wbg_ptr);var t=j(e[0],e[1]).slice();return r.__wbindgen_free(e[0],1*e[1],1),t}static fromBase64(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),_=o,n=r.qrcodedata_fromBase64(t,_);if(n[2])throw c(n[1]);return Q.__wrap(n[0])}toBase64(){let e,t;try{const _=r.qrcodedata_toBase64(this.__wbg_ptr);return e=_[0],t=_[1],w(_[0],_[1])}finally{r.__wbindgen_free(e,t,1)}}get publicKey(){const e=r.qrcodedata_publicKey(this.__wbg_ptr);return R.__wrap(e)}get rendezvousUrl(){let e,t;try{const _=r.qrcodedata_rendezvousUrl(this.__wbg_ptr);return e=_[0],t=_[1],w(_[0],_[1])}finally{r.__wbindgen_free(e,t,1)}}get serverName(){const e=r.qrcodedata_serverName(this.__wbg_ptr);let t;return 0!==e[0]&&(t=w(e[0],e[1]).slice(),r.__wbindgen_free(e[0],1*e[1],1)),t}get mode(){return r.qrcodedata_mode(this.__wbg_ptr)}}const Fr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_qrcodescan_free(e>>>0,1));class ${static __wrap(e){e>>>=0;const t=Object.create($.prototype);return t.__wbg_ptr=e,Fr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Fr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_qrcodescan_free(e,0)}static fromBytes(e){const t=r.qrcodescan_fromBytes(e);if(t[2])throw c(t[1]);return $.__wrap(t[0])}}const zr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_rehydrateddevice_free(e>>>0,1));class Le{static __wrap(e){e>>>=0;const t=Object.create(Le.prototype);return t.__wbg_ptr=e,zr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,zr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_rehydrateddevice_free(e,0)}receiveEvents(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),_=o;return r.rehydrateddevice_receiveEvents(this.__wbg_ptr,t,_)}}const mt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_roomid_free(e>>>0,1));class y{static __wrap(e){e>>>=0;const t=Object.create(y.prototype);return t.__wbg_ptr=e,mt.register(t,t.__wbg_ptr,t),t}static __unwrap(e){return e instanceof y?e.__destroy_into_raw():0}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,mt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_roomid_free(e,0)}constructor(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),_=o,n=r.roomid_new(t,_);if(n[2])throw c(n[1]);return this.__wbg_ptr=n[0]>>>0,mt.register(this,this.__wbg_ptr,this),this}toString(){let e,t;try{const _=r.roomid_toString(this.__wbg_ptr);return e=_[0],t=_[1],w(_[0],_[1])}finally{r.__wbindgen_free(e,t,1)}}}const Sr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_roomkeycounts_free(e>>>0,1));class Qe{static __wrap(e){e>>>=0;const t=Object.create(Qe.prototype);return t.__wbg_ptr=e,Sr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Sr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_roomkeycounts_free(e,0)}get total(){return r.__wbg_get_roomkeycounts_total(this.__wbg_ptr)}set total(e){r.__wbg_set_roomkeycounts_total(this.__wbg_ptr,e)}get backedUp(){return r.__wbg_get_roomkeycounts_backedUp(this.__wbg_ptr)}set backedUp(e){r.__wbg_set_roomkeycounts_backedUp(this.__wbg_ptr,e)}}const qr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_roomkeyimportresult_free(e>>>0,1));class Ge{static __wrap(e){e>>>=0;const t=Object.create(Ge.prototype);return t.__wbg_ptr=e,qr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,qr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_roomkeyimportresult_free(e,0)}get importedCount(){return r.__wbg_get_roomkeyimportresult_importedCount(this.__wbg_ptr)>>>0}get totalCount(){return r.__wbg_get_roomkeyimportresult_totalCount(this.__wbg_ptr)>>>0}keys(){return r.roomkeyimportresult_keys(this.__wbg_ptr)}}const jr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_roomkeyinfo_free(e>>>0,1));class Je{static __wrap(e){e>>>=0;const t=Object.create(Je.prototype);return t.__wbg_ptr=e,jr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,jr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_roomkeyinfo_free(e,0)}get algorithm(){return r.roomkeyinfo_algorithm(this.__wbg_ptr)}get roomId(){const e=r.roomkeyinfo_roomId(this.__wbg_ptr);return y.__wrap(e)}get senderKey(){const e=r.roomkeyinfo_senderKey(this.__wbg_ptr);return R.__wrap(e)}get sessionId(){let e,t;try{const _=r.roomkeyinfo_sessionId(this.__wbg_ptr);return e=_[0],t=_[1],w(_[0],_[1])}finally{r.__wbindgen_free(e,t,1)}}}const Kr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_roomkeywithheldinfo_free(e>>>0,1));class $e{static __wrap(e){e>>>=0;const t=Object.create($e.prototype);return t.__wbg_ptr=e,Kr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Kr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_roomkeywithheldinfo_free(e,0)}get sender(){const e=r.roomkeywithheldinfo_sender(this.__wbg_ptr);return f.__wrap(e)}get algorithm(){return r.roomkeywithheldinfo_algorithm(this.__wbg_ptr)}get withheldCode(){let e,t;try{const _=r.roomkeywithheldinfo_withheldCode(this.__wbg_ptr);return e=_[0],t=_[1],w(_[0],_[1])}finally{r.__wbindgen_free(e,t,1)}}get roomId(){const e=r.roomkeywithheldinfo_roomId(this.__wbg_ptr);return y.__wrap(e)}get sessionId(){let e,t;try{const _=r.roomkeywithheldinfo_sessionId(this.__wbg_ptr);return e=_[0],t=_[1],w(_[0],_[1])}finally{r.__wbindgen_free(e,t,1)}}}const vt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_roommessagerequest_free(e>>>0,1));class He{static __wrap(e){e>>>=0;const t=Object.create(He.prototype);return t.__wbg_ptr=e,vt.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,vt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_roommessagerequest_free(e,0)}get id(){return r.__wbg_get_roommessagerequest_id(this.__wbg_ptr)}get room_id(){return r.__wbg_get_roommessagerequest_room_id(this.__wbg_ptr)}get txn_id(){return r.__wbg_get_roommessagerequest_txn_id(this.__wbg_ptr)}get event_type(){return r.__wbg_get_roommessagerequest_event_type(this.__wbg_ptr)}get body(){return r.__wbg_get_roommessagerequest_body(this.__wbg_ptr)}constructor(e,t,_,n,i){const s=r.roommessagerequest_new(e,t,_,n,i);return this.__wbg_ptr=s>>>0,vt.register(this,this.__wbg_ptr,this),this}get type(){return r.roommessagerequest_type(this.__wbg_ptr)}}const kt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_roomsettings_free(e>>>0,1));class ee{static __wrap(e){e>>>=0;const t=Object.create(ee.prototype);return t.__wbg_ptr=e,kt.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,kt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_roomsettings_free(e,0)}get algorithm(){return r.__wbg_get_roomsettings_algorithm(this.__wbg_ptr)}set algorithm(e){r.__wbg_set_roomsettings_algorithm(this.__wbg_ptr,e)}get onlyAllowTrustedDevices(){return 0!==r.__wbg_get_roomsettings_onlyAllowTrustedDevices(this.__wbg_ptr)}set onlyAllowTrustedDevices(e){r.__wbg_set_roomsettings_onlyAllowTrustedDevices(this.__wbg_ptr,e)}get sessionRotationPeriodMs(){const e=r.__wbg_get_roomsettings_sessionRotationPeriodMs(this.__wbg_ptr);return 0===e[0]?void 0:e[1]}set sessionRotationPeriodMs(e){r.__wbg_set_roomsettings_sessionRotationPeriodMs(this.__wbg_ptr,!u(e),u(e)?0:e)}get sessionRotationPeriodMessages(){const e=r.__wbg_get_roomsettings_sessionRotationPeriodMessages(this.__wbg_ptr);return 0===e[0]?void 0:e[1]}set sessionRotationPeriodMessages(e){r.__wbg_set_roomsettings_sessionRotationPeriodMessages(this.__wbg_ptr,!u(e),u(e)?0:e)}constructor(){const e=r.roomsettings_new();return this.__wbg_ptr=e>>>0,kt.register(this,this.__wbg_ptr,this),this}}const Ir=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_sas_free(e>>>0,1));class Xe{static __wrap(e){e>>>=0;const t=Object.create(Xe.prototype);return t.__wbg_ptr=e,Ir.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Ir.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_sas_free(e,0)}get userId(){const e=r.sas_userId(this.__wbg_ptr);return f.__wrap(e)}get deviceId(){const e=r.sas_deviceId(this.__wbg_ptr);return h.__wrap(e)}get otherUserId(){const e=r.sas_otherUserId(this.__wbg_ptr);return f.__wrap(e)}get otherDeviceId(){const e=r.sas_otherDeviceId(this.__wbg_ptr);return h.__wrap(e)}get flowId(){let e,t;try{const _=r.sas_flowId(this.__wbg_ptr);return e=_[0],t=_[1],w(_[0],_[1])}finally{r.__wbindgen_free(e,t,1)}}get roomId(){const e=r.sas_roomId(this.__wbg_ptr);return 0===e?void 0:y.__wrap(e)}supportsEmoji(){return 0!==r.sas_supportsEmoji(this.__wbg_ptr)}startedFromRequest(){return 0!==r.sas_startedFromRequest(this.__wbg_ptr)}isSelfVerification(){return 0!==r.sas_isSelfVerification(this.__wbg_ptr)}haveWeConfirmed(){return 0!==r.sas_haveWeConfirmed(this.__wbg_ptr)}hasBeenAccepted(){return 0!==r.sas_hasBeenAccepted(this.__wbg_ptr)}cancelInfo(){const e=r.sas_cancelInfo(this.__wbg_ptr);return 0===e?void 0:W.__wrap(e)}weStarted(){return 0!==r.sas_weStarted(this.__wbg_ptr)}accept(){const e=r.sas_accept(this.__wbg_ptr);if(e[2])throw c(e[1]);return c(e[0])}confirm(){return r.sas_confirm(this.__wbg_ptr)}cancel(){const e=r.sas_cancel(this.__wbg_ptr);if(e[2])throw c(e[1]);return c(e[0])}cancelWithCode(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),_=o,n=r.sas_cancelWithCode(this.__wbg_ptr,t,_);if(n[2])throw c(n[1]);return c(n[0])}timedOut(){return 0!==r.sas_timedOut(this.__wbg_ptr)}canBePresented(){return 0!==r.sas_canBePresented(this.__wbg_ptr)}isDone(){return 0!==r.sas_isDone(this.__wbg_ptr)}isCancelled(){return 0!==r.sas_isCancelled(this.__wbg_ptr)}emoji(){const e=r.sas_emoji(this.__wbg_ptr);let t;return 0!==e[0]&&(t=G(e[0],e[1]).slice(),r.__wbindgen_free(e[0],4*e[1],4)),t}emojiIndex(){const e=r.sas_emojiIndex(this.__wbg_ptr);let t;return 0!==e[0]&&(t=j(e[0],e[1]).slice(),r.__wbindgen_free(e[0],1*e[1],1)),t}decimals(){const e=r.sas_decimals(this.__wbg_ptr);let t;return 0!==e[0]&&(t=r_(e[0],e[1]).slice(),r.__wbindgen_free(e[0],2*e[1],2)),t}registerChangesCallback(e){r.sas_registerChangesCallback(this.__wbg_ptr,e)}}const Cr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_secretsbundle_free(e>>>0,1));class N{static __wrap(e){e>>>=0;const t=Object.create(N.prototype);return t.__wbg_ptr=e,Cr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Cr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_secretsbundle_free(e,0)}get masterKey(){let e,t;try{const _=r.secretsbundle_masterKey(this.__wbg_ptr);return e=_[0],t=_[1],w(_[0],_[1])}finally{r.__wbindgen_free(e,t,1)}}get selfSigningKey(){let e,t;try{const _=r.secretsbundle_selfSigningKey(this.__wbg_ptr);return e=_[0],t=_[1],w(_[0],_[1])}finally{r.__wbindgen_free(e,t,1)}}get userSigningKey(){let e,t;try{const _=r.secretsbundle_userSigningKey(this.__wbg_ptr);return e=_[0],t=_[1],w(_[0],_[1])}finally{r.__wbindgen_free(e,t,1)}}get backupBundle(){const e=r.secretsbundle_backupBundle(this.__wbg_ptr);return 0===e?void 0:ue.__wrap(e)}to_json(){const e=r.secretsbundle_to_json(this.__wbg_ptr);if(e[2])throw c(e[1]);return c(e[0])}static from_json(e){const t=r.secretsbundle_from_json(e);if(t[2])throw c(t[1]);return N.__wrap(t[0])}}const Rt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_servername_free(e>>>0,1));class te{static __wrap(e){e>>>=0;const t=Object.create(te.prototype);return t.__wbg_ptr=e,Rt.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Rt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_servername_free(e,0)}constructor(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),_=o,n=r.servername_new(t,_);if(n[2])throw c(n[1]);return this.__wbg_ptr=n[0]>>>0,Rt.register(this,this.__wbg_ptr,this),this}get host(){let e,t;try{const _=r.servername_host(this.__wbg_ptr);return e=_[0],t=_[1],w(_[0],_[1])}finally{r.__wbindgen_free(e,t,1)}}get port(){const e=r.servername_port(this.__wbg_ptr);return 16777215===e?void 0:e}isIpLiteral(){return 0!==r.servername_isIpLiteral(this.__wbg_ptr)}}const Dr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_shieldstate_free(e>>>0,1));class re{static __wrap(e){e>>>=0;const t=Object.create(re.prototype);return t.__wbg_ptr=e,Dr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Dr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_shieldstate_free(e,0)}get color(){return r.__wbg_get_shieldstate_color(this.__wbg_ptr)}set color(e){r.__wbg_set_shieldstate_color(this.__wbg_ptr,e)}get code(){const e=r.__wbg_get_shieldstate_code(this.__wbg_ptr);return 7===e?void 0:e}set code(e){r.__wbg_set_shieldstate_code(this.__wbg_ptr,u(e)?7:e)}get message(){const e=r.shieldstate_message(this.__wbg_ptr);let t;return 0!==e[0]&&(t=w(e[0],e[1]).slice(),r.__wbindgen_free(e[0],1*e[1],1)),t}}const Or=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_signature_free(e>>>0,1));class Ze{static __wrap(e){e>>>=0;const t=Object.create(Ze.prototype);return t.__wbg_ptr=e,Or.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Or.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_signature_free(e,0)}get ed25519(){const e=r.signature_ed25519(this.__wbg_ptr);return 0===e?void 0:M.__wrap(e)}toBase64(){let e,t;try{const _=r.signature_toBase64(this.__wbg_ptr);return e=_[0],t=_[1],w(_[0],_[1])}finally{r.__wbindgen_free(e,t,1)}}}const Ft=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_signatureuploadrequest_free(e>>>0,1));class _e{static __wrap(e){e>>>=0;const t=Object.create(_e.prototype);return t.__wbg_ptr=e,Ft.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Ft.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_signatureuploadrequest_free(e,0)}get id(){return r.__wbg_get_signatureuploadrequest_id(this.__wbg_ptr)}get body(){return r.__wbg_get_signatureuploadrequest_body(this.__wbg_ptr)}constructor(e,t){const _=r.signatureuploadrequest_new(e,t);return this.__wbg_ptr=_>>>0,Ft.register(this,this.__wbg_ptr,this),this}get type(){return r.signatureuploadrequest_type(this.__wbg_ptr)}}const Ur=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_signatureverification_free(e>>>0,1));class Ye{static __wrap(e){e>>>=0;const t=Object.create(Ye.prototype);return t.__wbg_ptr=e,Ur.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Ur.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_signatureverification_free(e,0)}get deviceState(){return r.signatureverification_deviceState(this.__wbg_ptr)}get userState(){return r.signatureverification_userState(this.__wbg_ptr)}trusted(){return 0!==r.signatureverification_trusted(this.__wbg_ptr)}}const zt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_signatures_free(e>>>0,1));class ne{static __wrap(e){e>>>=0;const t=Object.create(ne.prototype);return t.__wbg_ptr=e,zt.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,zt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_signatures_free(e,0)}constructor(){const e=r.signatures_new();return this.__wbg_ptr=e>>>0,zt.register(this,this.__wbg_ptr,this),this}addSignature(e,t,_){b(e,f),b(t,A),b(_,M);const n=r.signatures_addSignature(this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr,_.__wbg_ptr);return 0===n?void 0:Y.__wrap(n)}getSignature(e,t){b(e,f),b(t,A);const _=r.signatures_getSignature(this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr);return 0===_?void 0:M.__wrap(_)}get(e){return b(e,f),r.signatures_get(this.__wbg_ptr,e.__wbg_ptr)}clear(){r.signatures_clear(this.__wbg_ptr)}isEmpty(){return 0!==r.signatures_isEmpty(this.__wbg_ptr)}get count(){return r.signatures_count(this.__wbg_ptr)>>>0}asJSON(){const e=r.signatures_asJSON(this.__wbg_ptr);if(e[2])throw c(e[1]);return c(e[0])}}const Br=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_storehandle_free(e>>>0,1));class U{static __wrap(e){e>>>=0;const t=Object.create(U.prototype);return t.__wbg_ptr=e,Br.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Br.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_storehandle_free(e,0)}static open(e,t,_){var n=u(e)?0:g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),i=o,s=u(t)?0:g(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=o;return r.storehandle_open(n,i,s,c,u(_)?0:v(_))}static openWithKey(e,t,_){const n=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),i=o,s=C(t,r.__wbindgen_malloc),c=o;return r.storehandle_openWithKey(n,i,s,c,u(_)?0:v(_))}}const Vr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_storedroomkeybundledata_free(e>>>0,1));class ie{static __wrap(e){e>>>=0;const t=Object.create(ie.prototype);return t.__wbg_ptr=e,Vr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Vr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_storedroomkeybundledata_free(e,0)}get senderUser(){const e=r.__wbg_get_storedroomkeybundledata_senderUser(this.__wbg_ptr);return f.__wrap(e)}get roomId(){const e=r.__wbg_get_storedroomkeybundledata_roomId(this.__wbg_ptr);return y.__wrap(e)}get url(){let e,t;try{const _=r.__wbg_get_storedroomkeybundledata_url(this.__wbg_ptr);return e=_[0],t=_[1],w(_[0],_[1])}finally{r.__wbindgen_free(e,t,1)}}get encryptionInfo(){let e,t;try{const _=r.__wbg_get_storedroomkeybundledata_encryptionInfo(this.__wbg_ptr);return e=_[0],t=_[1],w(_[0],_[1])}finally{r.__wbindgen_free(e,t,1)}}}const xr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_todeviceencryptioninfo_free(e>>>0,1));class et{static __wrap(e){e>>>=0;const t=Object.create(et.prototype);return t.__wbg_ptr=e,xr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,xr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_todeviceencryptioninfo_free(e,0)}get senderCurve25519Key(){let e,t;try{const _=r.__wbg_get_todeviceencryptioninfo_senderCurve25519Key(this.__wbg_ptr);return e=_[0],t=_[1],w(_[0],_[1])}finally{r.__wbindgen_free(e,t,1)}}set senderCurve25519Key(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),_=o;r.__wbg_set_backupsecretsbundle_key(this.__wbg_ptr,t,_)}get sender(){const e=r.__wbg_get_todeviceencryptioninfo_sender(this.__wbg_ptr);return f.__wrap(e)}set sender(e){b(e,f);var t=e.__destroy_into_raw();r.__wbg_set_todeviceencryptioninfo_sender(this.__wbg_ptr,t)}get senderDevice(){const e=r.__wbg_get_todeviceencryptioninfo_senderDevice(this.__wbg_ptr);return 0===e?void 0:h.__wrap(e)}set senderDevice(e){let t=0;u(e)||(b(e,h),t=e.__destroy_into_raw()),r.__wbg_set_todeviceencryptioninfo_senderDevice(this.__wbg_ptr,t)}isSenderVerified(){return 0!==r.todeviceencryptioninfo_isSenderVerified(this.__wbg_ptr)}}const St=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_todevicerequest_free(e>>>0,1));class tt{static __wrap(e){e>>>=0;const t=Object.create(tt.prototype);return t.__wbg_ptr=e,St.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,St.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_todevicerequest_free(e,0)}get id(){return r.__wbg_get_todevicerequest_id(this.__wbg_ptr)}get event_type(){return r.__wbg_get_todevicerequest_event_type(this.__wbg_ptr)}get txn_id(){return r.__wbg_get_todevicerequest_txn_id(this.__wbg_ptr)}get body(){return r.__wbg_get_todevicerequest_body(this.__wbg_ptr)}constructor(e,t,_,n){const i=r.todevicerequest_new(e,t,_,n);return this.__wbg_ptr=i>>>0,St.register(this,this.__wbg_ptr,this),this}get type(){return r.todevicerequest_type(this.__wbg_ptr)}}const Er=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_tracing_free(e>>>0,1));class U_{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Er.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_tracing_free(e,0)}static isAvailable(){return 0!==r.tracing_isAvailable()}constructor(e){const t=r.tracing_new(e);if(t[2])throw c(t[1]);return this.__wbg_ptr=t[0]>>>0,Er.register(this,this.__wbg_ptr,this),this}set minLevel(e){const t=r.tracing_set_minLevel(this.__wbg_ptr,e);if(t[1])throw c(t[0])}turnOn(){const e=r.tracing_turnOn(this.__wbg_ptr);if(e[1])throw c(e[0])}turnOff(){const e=r.tracing_turnOff(this.__wbg_ptr);if(e[1])throw c(e[0])}}const Tr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_utdtodeviceevent_free(e>>>0,1));class rt{static __wrap(e){e>>>=0;const t=Object.create(rt.prototype);return t.__wbg_ptr=e,Tr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Tr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_utdtodeviceevent_free(e,0)}get rawEvent(){return r.__wbg_get_utdtodeviceevent_rawEvent(this.__wbg_ptr)}get type(){return r.utdtodeviceevent_type(this.__wbg_ptr)}}const qt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_uploadsigningkeysrequest_free(e>>>0,1));class _t{static __wrap(e){e>>>=0;const t=Object.create(_t.prototype);return t.__wbg_ptr=e,qt.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,qt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_uploadsigningkeysrequest_free(e,0)}get body(){return r.__wbg_get_uploadsigningkeysrequest_body(this.__wbg_ptr)}constructor(e){const t=r.uploadsigningkeysrequest_new(e);return this.__wbg_ptr=t>>>0,qt.register(this,this.__wbg_ptr,this),this}}const Ar=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_userdevices_free(e>>>0,1));class nt{static __wrap(e){e>>>=0;const t=Object.create(nt.prototype);return t.__wbg_ptr=e,Ar.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Ar.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_userdevices_free(e,0)}get(e){b(e,h);const t=r.userdevices_get(this.__wbg_ptr,e.__wbg_ptr);return 0===t?void 0:H.__wrap(t)}isAnyVerified(){return 0!==r.userdevices_isAnyVerified(this.__wbg_ptr)}keys(){return r.userdevices_keys(this.__wbg_ptr)}devices(){return r.userdevices_devices(this.__wbg_ptr)}}const jt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_userid_free(e>>>0,1));class f{static __wrap(e){e>>>=0;const t=Object.create(f.prototype);return t.__wbg_ptr=e,jt.register(t,t.__wbg_ptr,t),t}static __unwrap(e){return e instanceof f?e.__destroy_into_raw():0}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,jt.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_userid_free(e,0)}constructor(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),_=o,n=r.userid_new(t,_);if(n[2])throw c(n[1]);return this.__wbg_ptr=n[0]>>>0,jt.register(this,this.__wbg_ptr,this),this}get localpart(){let e,t;try{const _=r.userid_localpart(this.__wbg_ptr);return e=_[0],t=_[1],w(_[0],_[1])}finally{r.__wbindgen_free(e,t,1)}}get serverName(){const e=r.userid_serverName(this.__wbg_ptr);return te.__wrap(e)}isHistorical(){return 0!==r.userid_isHistorical(this.__wbg_ptr)}toString(){let e,t;try{const _=r.userid_toString(this.__wbg_ptr);return e=_[0],t=_[1],w(_[0],_[1])}finally{r.__wbindgen_free(e,t,1)}}clone(){const e=r.userid_clone(this.__wbg_ptr);return f.__wrap(e)}}const Mr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_verificationrequest_free(e>>>0,1));class L{static __wrap(e){e>>>=0;const t=Object.create(L.prototype);return t.__wbg_ptr=e,Mr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Mr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_verificationrequest_free(e,0)}static request(e,t,_,n){let i,s;try{b(e,f),b(t,h),b(_,f);var g=u(n)?0:S(n,r.__wbindgen_malloc),a=o;const l=r.verificationrequest_request(e.__wbg_ptr,t.__wbg_ptr,_.__wbg_ptr,g,a);var d=l[0],p=l[1];if(l[3])throw d=0,p=0,c(l[2]);return i=d,s=p,w(d,p)}finally{r.__wbindgen_free(i,s,1)}}get ownUserId(){const e=r.verificationrequest_ownUserId(this.__wbg_ptr);return f.__wrap(e)}get otherUserId(){const e=r.verificationrequest_otherUserId(this.__wbg_ptr);return f.__wrap(e)}get otherDeviceId(){const e=r.verificationrequest_otherDeviceId(this.__wbg_ptr);return 0===e?void 0:h.__wrap(e)}get roomId(){const e=r.verificationrequest_roomId(this.__wbg_ptr);return 0===e?void 0:y.__wrap(e)}get cancelInfo(){const e=r.verificationrequest_cancelInfo(this.__wbg_ptr);return 0===e?void 0:W.__wrap(e)}isPassive(){return 0!==r.verificationrequest_isPassive(this.__wbg_ptr)}isReady(){return 0!==r.verificationrequest_isReady(this.__wbg_ptr)}timedOut(){return 0!==r.verificationrequest_timedOut(this.__wbg_ptr)}timeRemainingMillis(){return r.verificationrequest_timeRemainingMillis(this.__wbg_ptr)}get theirSupportedMethods(){const e=r.verificationrequest_theirSupportedMethods(this.__wbg_ptr);if(e[3])throw c(e[2]);let t;return 0!==e[0]&&(t=G(e[0],e[1]).slice(),r.__wbindgen_free(e[0],4*e[1],4)),t}get ourSupportedMethods(){const e=r.verificationrequest_ourSupportedMethods(this.__wbg_ptr);if(e[3])throw c(e[2]);let t;return 0!==e[0]&&(t=G(e[0],e[1]).slice(),r.__wbindgen_free(e[0],4*e[1],4)),t}get flowId(){let e,t;try{const _=r.verificationrequest_flowId(this.__wbg_ptr);return e=_[0],t=_[1],w(_[0],_[1])}finally{r.__wbindgen_free(e,t,1)}}isSelfVerification(){return 0!==r.verificationrequest_isSelfVerification(this.__wbg_ptr)}weStarted(){return 0!==r.verificationrequest_weStarted(this.__wbg_ptr)}isDone(){return 0!==r.verificationrequest_isDone(this.__wbg_ptr)}phase(){return r.verificationrequest_phase(this.__wbg_ptr)}getVerification(){return r.verificationrequest_getVerification(this.__wbg_ptr)}registerChangesCallback(e){r.verificationrequest_registerChangesCallback(this.__wbg_ptr,e)}isCancelled(){return 0!==r.verificationrequest_isCancelled(this.__wbg_ptr)}acceptWithMethods(e){const t=S(e,r.__wbindgen_malloc),_=o,n=r.verificationrequest_acceptWithMethods(this.__wbg_ptr,t,_);if(n[2])throw c(n[1]);return c(n[0])}accept(){const e=r.verificationrequest_accept(this.__wbg_ptr);if(e[2])throw c(e[1]);return c(e[0])}cancel(){const e=r.verificationrequest_cancel(this.__wbg_ptr);if(e[2])throw c(e[1]);return c(e[0])}startSas(){return r.verificationrequest_startSas(this.__wbg_ptr)}generateQrCode(){return r.verificationrequest_generateQrCode(this.__wbg_ptr)}scanQrCode(e){return b(e,$),r.verificationrequest_scanQrCode(this.__wbg_ptr,e.__wbg_ptr)}}const Pr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>r.__wbg_versions_free(e>>>0,1));class it{static __wrap(e){e>>>=0;const t=Object.create(it.prototype);return t.__wbg_ptr=e,Pr.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Pr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_versions_free(e,0)}get vodozemac(){return r.__wbg_get_versions_vodozemac(this.__wbg_ptr)}get matrix_sdk_crypto(){return r.__wbg_get_versions_matrix_sdk_crypto(this.__wbg_ptr)}get git_sha(){return r.__wbg_get_versions_git_sha(this.__wbg_ptr)}get git_description(){return r.__wbg_get_versions_git_description(this.__wbg_ptr)}}function B_(e,t){const _=g(String(t),r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;k().setInt32(e+4,n,!0),k().setInt32(e+0,_,!0)}function V_(e){return e.Window}function x_(e){return e.WorkerGlobalScope}function E_(e,t){return e.add(t)}function T_(){return p(function(e,t,r){return e.add(t,r)},arguments)}function A_(e,t){return e.at(t)}function M_(e){return be.__wrap(e)}function P_(){return p(function(e,t){return IDBKeyRange.bound(e,t)},arguments)}function N_(){return p(function(e,t,r,_){return IDBKeyRange.bound(e,t,0!==r,0!==_)},arguments)}function W_(e){return e.buffer}function L_(){return p(function(e,t){return e.call(t)},arguments)}function Q_(){return p(function(e,t,r){return e.call(t,r)},arguments)}function G_(){return p(function(e,t,r,_){return e.call(t,r,_)},arguments)}function J_(){return p(function(e,t,r,_,n){return e.call(t,r,_,n)},arguments)}function $_(e){return clearTimeout(e)}function H_(){return p(function(e){return e.clear()},arguments)}function X_(e){e.close()}function Z_(e){return e.code}function Y_(){return p(function(e){e.continue()},arguments)}function en(){return p(function(e){return e.count()},arguments)}function tn(){return p(function(e){return e.count()},arguments)}function rn(){return p(function(e,t,r,_,n){return e.createIndex(w(t,r),_,n)},arguments)}function _n(){return p(function(e,t,r,_){return e.createIndex(w(t,r),_)},arguments)}function nn(){return p(function(e,t,r){return e.createObjectStore(w(t,r))},arguments)}function sn(e){return le.__wrap(e)}function on(e){return fe.__wrap(e)}function cn(e){return ye.__wrap(e)}function an(e){return e.crypto}function gn(e){console.debug(e)}function wn(e,t){e.debug(t)}function dn(e){return he.__wrap(e)}function bn(e){return me.__wrap(e)}function un(e){return ve.__wrap(e)}function pn(e){return K.__wrap(e)}function ln(){return p(function(e,t,r){e.deleteObjectStore(w(t,r))},arguments)}function fn(){return p(function(e,t){return e.delete(t)},arguments)}function yn(){return p(function(e){return e.delete()},arguments)}function hn(e){return H.__wrap(e)}function mn(e){return h.__wrap(e)}function vn(e){return X.__wrap(e)}function kn(e){return A.__wrap(e)}function Rn(e){return e.done}function Fn(e){return Fe.__wrap(e)}function zn(e){return P.__wrap(e)}function Sn(e){return ze.__wrap(e)}function qn(e){return Object.entries(e)}function jn(e){return e.entries()}function Kn(e){console.error(e)}function In(e,t){e.error(t)}function Cn(e,t){let _,n;try{_=e,n=t,console.error(w(e,t))}finally{r.__wbindgen_free(_,n,1)}}function Dn(){return p(function(e){const t=e.error;return u(t)?0:v(t)},arguments)}function On(e){return Array.from(e)}function Un(){return p(function(e){return e.getAllKeys()},arguments)}function Bn(){return p(function(e){return e.getAll()},arguments)}function Vn(){return p(function(e,t,r){return e.getAll(t,r>>>0)},arguments)}function xn(){return p(function(e,t){return e.getAll(t)},arguments)}function En(){return p(function(e,t){globalThis.crypto.getRandomValues(j(e,t))},arguments)}function Tn(){return p(function(e,t){e.getRandomValues(t)},arguments)}function An(e){return e.getTime()}function Mn(){return p(function(e,t){return Reflect.get(e,t)},arguments)}function Pn(){return p(function(e,t){return e.get(t)},arguments)}function Nn(){return p(function(e,t){return e.get(t)},arguments)}function Wn(e,t){return e[t>>>0]}function Ln(e,t){return e[t]}function Qn(e){return e.global}function Gn(e){return je.__wrap(e)}function Jn(){return p(function(e,t,r){return e.index(w(t,r))},arguments)}function $n(){return p(function(e){const t=e.indexedDB;return u(t)?0:v(t)},arguments)}function Hn(){return p(function(e){const t=e.indexedDB;return u(t)?0:v(t)},arguments)}function Xn(){return p(function(e){const t=e.indexedDB;return u(t)?0:v(t)},arguments)}function Zn(e){console.info(e)}function Yn(e,t){e.info(t)}function ei(e){let t;try{t=e instanceof ArrayBuffer}catch{t=!1}return t}function ti(e){let t;try{t=e instanceof Map}catch{t=!1}return t}function ri(e){let t;try{t=e instanceof Promise}catch{t=!1}return t}function _i(e){let t;try{t=e instanceof Uint8Array}catch{t=!1}return t}function ni(e){return Ke.__wrap(e)}function ii(e){return Array.isArray(e)}function si(e){return Number.isSafeInteger(e)}function oi(e,t,_){const n=t.item(_>>>0);var i=u(n)?0:g(n,r.__wbindgen_malloc,r.__wbindgen_realloc),s=o;k().setInt32(e+4,s,!0),k().setInt32(e+0,i,!0)}function ci(){return Symbol.iterator}function ai(){return p(function(e){return e.key},arguments)}function gi(e){return Ie.__wrap(e)}function wi(e){return Ce.__wrap(e)}function di(e){return Z.__wrap(e)}function bi(e){return De.__wrap(e)}function ui(e){return e.length}function pi(e){return e.length}function li(e){return e.length}function fi(){return p(function(e,t){return IDBKeyRange.lowerBound(e,0!==t)},arguments)}function yi(e){return Y.__wrap(e)}function hi(e){return Oe.__wrap(e)}function mi(e,t){const _=g(t.message,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;k().setInt32(e+4,n,!0),k().setInt32(e+0,_,!0)}function vi(e){return e.msCrypto}function ki(e,t){const _=g(t.name,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;k().setInt32(e+4,n,!0),k().setInt32(e+0,_,!0)}function Ri(e,t){try{var r={a:e,b:t};return new Promise((e,t)=>{const _=r.a;r.a=0;try{return g_(_,r.b,e,t)}finally{r.a=_}})}finally{r.a=r.b=0}}function Fi(e){return new Date(e)}function zi(){return new Object}function Si(){return new Map}function qi(){return new Array}function ji(e){return new Uint8ClampedArray(e)}function Ki(){return new Error}function Ii(e){return new Uint8Array(e)}function Ci(e){return new Set(e)}function Di(e,t){return new Function(w(e,t))}function Oi(e,t,r){return new Uint8ClampedArray(e,t>>>0,r>>>0)}function Ui(e,t,r){return new Uint8Array(e,t>>>0,r>>>0)}function Bi(e){return new Uint8Array(e>>>0)}function Vi(e){return new Uint8ClampedArray(e>>>0)}function xi(){return p(function(e,t){return new DOMException(w(e,t))},arguments)}function Ei(e){return e.next}function Ti(){return p(function(e){return e.next()},arguments)}function Ai(e){return e.node}function Mi(e){return e.now()}function Pi(){return Date.now()}function Ni(e){return e.objectStoreNames}function Wi(){return p(function(e,t,r){return e.objectStore(w(t,r))},arguments)}function Li(e){return e.oldVersion}function Qi(e){return Be.__wrap(e)}function Gi(){return p(function(e){return e.openCursor()},arguments)}function Ji(){return p(function(e){return e.openCursor()},arguments)}function $i(){return p(function(e,t){return e.openCursor(t)},arguments)}function Hi(){return p(function(e,t,r){return e.open(w(t,r))},arguments)}function Xi(){return p(function(e,t,r,_){return e.open(w(t,r),_>>>0)},arguments)}function Zi(e){return Ve.__wrap(e)}function Yi(e){return Ee.__wrap(e)}function es(){return p(function(e,t){return JSON.parse(w(e,t))},arguments)}function ts(e){return e.performance}function rs(e){return Te.__unwrap(e)}function _s(e){return Ae.__unwrap(e)}function ns(e){return Me.__wrap(e)}function is(e){return e.process}function ss(e,t){return e.push(t)}function os(){return p(function(e,t,r){return e.put(t,r)},arguments)}function cs(e){return Pe.__wrap(e)}function as(e){return Ne.__wrap(e)}function gs(e){queueMicrotask(e)}function ws(e){return e.queueMicrotask}function ds(){return p(function(e,t){e.randomFillSync(t)},arguments)}function bs(e){const t=e.readyState;return(j_.indexOf(t)+1||3)-1}function us(e){return Le.__wrap(e)}function ps(){return p(function(){return module.require},arguments)}function ls(e){return Promise.resolve(e)}function fs(){return p(function(e){return e.result},arguments)}function ys(e){return y.__unwrap(e)}function hs(e){return Qe.__wrap(e)}function ms(e){return Ge.__wrap(e)}function vs(e){return Je.__wrap(e)}function ks(e){return $e.__wrap(e)}function Rs(e){return He.__wrap(e)}function Fs(e){return ee.__wrap(e)}function zs(e){return Xe.__wrap(e)}function Ss(e){return N.__wrap(e)}function qs(){return p(function(e,t){return setTimeout(e,t)},arguments)}function js(e,t,r){e[t>>>0]=r}function Ks(e,t,r){e[t]=r}function Is(e,t,r){e.set(t,r>>>0)}function Cs(e,t,r){e.set(t,r>>>0)}function Ds(e,t,r){return e.set(t,r)}function Os(e,t){e.onabort=t}function Us(e,t){e.onblocked=t}function Bs(e,t){e.oncomplete=t}function Vs(e,t){e.onerror=t}function xs(e,t){e.onerror=t}function Es(e,t){e.onsuccess=t}function Ts(e,t){e.onupgradeneeded=t}function As(e,t){e.onversionchange=t}function Ms(e,t){e.unique=0!==t}function Ps(e){return ne.__wrap(e)}function Ns(e){return _e.__wrap(e)}function Ws(e){return Ye.__wrap(e)}function Ls(e,t){const _=g(t.stack,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;k().setInt32(e+4,n,!0),k().setInt32(e+0,_,!0)}function Qs(){const e=typeof global>"u"?null:global;return u(e)?0:v(e)}function Gs(){const e=typeof globalThis>"u"?null:globalThis;return u(e)?0:v(e)}function Js(){const e=typeof self>"u"?null:self;return u(e)?0:v(e)}function $s(){const e=typeof window>"u"?null:window;return u(e)?0:v(e)}function Hs(e){return ie.__wrap(e)}function Xs(e){return U.__wrap(e)}function Zs(){return p(function(e){return JSON.stringify(e)},arguments)}function Ys(e,t,r){return e.subarray(t>>>0,r>>>0)}function eo(e){const t=e.target;return u(t)?0:v(t)}function to(e,t){return e.then(t)}function ro(e,t,r){return e.then(t,r)}function _o(e){return tt.__wrap(e)}function no(){return p(function(e,t,r,_){return e.transaction(w(t,r),Lr[_])},arguments)}function io(){return p(function(e,t,r){return e.transaction(t,Lr[r])},arguments)}function so(e){const t=e.transaction;return u(t)?0:v(t)}function oo(){return p(function(e,t){return e.update(t)},arguments)}function co(e){return nt.__wrap(e)}function ao(e){return f.__wrap(e)}function go(e){return f.__unwrap(e)}function wo(e){return rt.__wrap(e)}function bo(){return p(function(e){return e.value},arguments)}function uo(e){return e.value}function po(e){return e.values()}function lo(e){return L.__wrap(e)}function fo(e){return e.version}function yo(e){return e.versions}function ho(e){console.warn(e)}function mo(e,t){e.warn(t)}function vo(){return[]}function ko(e,t){e.push(t)}function Ro(e){return+e}function Fo(e){return e}function zo(e){return BigInt.asUintN(64,e)}function So(e,t){const r="bigint"==typeof t?t:void 0;k().setBigInt64(e+8,u(r)?BigInt(0):r,!0),k().setInt32(e+0,!u(r),!0)}function qo(e){return"boolean"==typeof e?e?1:0:2}function jo(e){const t=e.original;return 1==t.cnt--&&(t.a=0,!0)}function Ko(e,t,r){return Dt(e,t,39,i_)}function Io(e,t,r){return Dt(e,t,429,s_)}function Co(e,t,r){return Dt(e,t,429,o_)}function Do(e,t,r){return Wr(e,t,435,c_)}function Oo(e,t,r){return Wr(e,t,435,a_)}function Uo(e,t){const _=g(It(t),r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;k().setInt32(e+4,n,!0),k().setInt32(e+0,_,!0)}function Bo(e,t){return new Error(w(e,t))}function Vo(e,t){return e in t}function xo(){const e=r.__wbindgen_export_4,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 Eo(e){return Array.isArray(e)}function To(e){return"bigint"==typeof e}function Ao(e){return"function"==typeof e}function Mo(e){return null===e}function Po(e){return"object"==typeof e&&null!==e}function No(e){return"string"==typeof e}function Wo(e){return void 0===e}function Lo(e,t){return e===t}function Qo(e,t){return e==t}function Go(){return r.memory}function Jo(e,t){const r="number"==typeof t?t:void 0;k().setFloat64(e+8,u(r)?0:r,!0),k().setInt32(e+0,!u(r),!0)}function $o(e){return e}function Ho(e,t){const _="string"==typeof t?t:void 0;var n=u(_)?0:g(_,r.__wbindgen_malloc,r.__wbindgen_realloc),i=o;k().setInt32(e+4,i,!0),k().setInt32(e+0,n,!0)}function Xo(e,t){return w(e,t)}function Zo(e,t){throw new Error(w(e,t))}function Yo(e){let t;try{t=+e}catch(e){t=e}return t}const ec=Object.freeze(Object.defineProperty({__proto__:null,Attachment:I_,BackupDecryptionKey:O,BackupKeys:be,BackupSecretsBundle:ue,Base64EncodedPkMessage:J,BaseMigrationData:Qr,CancelInfo:W,CheckCode:pe,CollectStrategy:q,CrossSigningBootstrapRequests:le,CrossSigningKeyExport:fe,CrossSigningStatus:ye,Curve25519PublicKey:R,Curve25519SecretKey:D,DecryptedRoomEvent:he,DecryptedToDeviceEvent:me,DecryptionErrorCode:w_,DecryptionSettings:Gr,DehydratedDevice:ve,DehydratedDeviceKey:K,DehydratedDevices:ke,Device:H,DeviceId:h,DeviceKey:X,DeviceKeyAlgorithm:Re,DeviceKeyAlgorithmName:d_,DeviceKeyId:A,DeviceKeyName:b_,DeviceLists:Jr,Ecies:C_,Ed25519PublicKey:B,Ed25519Signature:M,Emoji:Fe,EncryptedAttachment:P,EncryptionAlgorithm:u_,EncryptionInfo:ze,EncryptionSettings:$r,EstablishedEcies:V,EventId:Hr,HistoryVisibility:p_,IdentityKeys:Se,InboundCreationResult:qe,InboundGroupSession:je,InvalidToDeviceEvent:Ke,KeysBackupRequest:Ie,KeysClaimRequest:Ce,KeysQueryRequest:Z,KeysUploadRequest:De,LocalTrust:l_,LoggerLevel:f_,MaybeSignature:Y,MegolmDecryptionError:Oe,MegolmV1BackupKey:Ue,Migration:O_,OlmMachine:Be,OtherUserIdentity:Ve,OutboundCreationResult:xe,OwnUserIdentity:Ee,PickledInboundGroupSession:Te,PickledSession:Ae,PkDecryption:we,PkEncryption:de,PkMessage:I,PlainTextToDeviceEvent:Me,ProcessedToDeviceEventType:y_,PutDehydratedDeviceRequest:Pe,Qr:Ne,QrCode:We,QrCodeData:Q,QrCodeMode:h_,QrCodeScan:$,QrState:m_,RehydratedDevice:Le,RequestType:v_,RoomId:y,RoomKeyCounts:Qe,RoomKeyImportResult:Ge,RoomKeyInfo:Je,RoomKeyWithheldInfo:$e,RoomMessageRequest:He,RoomSettings:ee,Sas:Xe,SecretsBundle:N,ServerName:te,ShieldColor:k_,ShieldState:re,ShieldStateCode:R_,Signature:Ze,SignatureState:F_,SignatureUploadRequest:_e,SignatureVerification:Ye,Signatures:ne,StoreHandle:U,StoredRoomKeyBundleData:ie,ToDeviceEncryptionInfo:et,ToDeviceRequest:tt,Tracing:U_,TrustRequirement:z_,UTDToDeviceEvent:rt,UploadSigningKeysRequest:_t,UserDevices:nt,UserId:f,VerificationMethod:S_,VerificationRequest:L,VerificationRequestPhase:q_,Versions:it,__wbg_String_8f0eb39a4a4c2f66:B_,__wbg_Window_b0044ac7db258535:V_,__wbg_WorkerGlobalScope_b74cefefc62a37da:x_,__wbg_add_883d9432f9188ef2:E_,__wbg_add_9338901b80183e0f:T_,__wbg_at_7d852dd9f194d43e:A_,__wbg_backupkeys_new:M_,__wbg_bound_55a8d08e0491e17a:P_,__wbg_bound_f2afc3766d4545cf:N_,__wbg_buffer_609cc3eee51ed158:W_,__wbg_call_672a4d21634d4a24:L_,__wbg_call_7cccdd69e0791ae2:Q_,__wbg_call_833bed5770ea2041:G_,__wbg_call_b8adc8b1d0a0d8eb:J_,__wbg_clearTimeout_5a54f8841c30079a:$_,__wbg_clear_f450db7eeb71163f:H_,__wbg_close_26fc2e6856d8567a:X_,__wbg_code_cfd8f6868bdaed9b:Z_,__wbg_continue_c46c11d3dbe1b030:Y_,__wbg_count_613cb921d67a4f26:en,__wbg_count_ea1a2987dff7759e:tn,__wbg_createIndex_873ac48adc772309:rn,__wbg_createIndex_fcfd513cf4581834:_n,__wbg_createObjectStore_e566459f7161f82f:nn,__wbg_crosssigningbootstraprequests_new:sn,__wbg_crosssigningkeyexport_new:on,__wbg_crosssigningstatus_new:cn,__wbg_crypto_574e78ad8b13b65f:an,__wbg_debug_3cb59063b29f58c1:gn,__wbg_debug_5f2014cb259e3fd1:wn,__wbg_decryptedroomevent_new:dn,__wbg_decryptedtodeviceevent_new:bn,__wbg_dehydrateddevice_new:un,__wbg_dehydrateddevicekey_new:pn,__wbg_deleteObjectStore_3f08ae00cd288224:ln,__wbg_delete_200677093b4cf756:fn,__wbg_delete_2ecf7cf20900b3a2:yn,__wbg_device_new:hn,__wbg_deviceid_new:mn,__wbg_devicekey_new:vn,__wbg_devicekeyid_new:kn,__wbg_done_769e5ede4b31c67b:Rn,__wbg_emoji_new:Fn,__wbg_encryptedattachment_new:zn,__wbg_encryptioninfo_new:Sn,__wbg_entries_3265d4158b33e5dc:qn,__wbg_entries_c8a90a7ed73e84ce:jn,__wbg_error_524f506f44df1645:Kn,__wbg_error_64e73d9e9f03e8a4:In,__wbg_error_7534b8e9a36f1ab4:Cn,__wbg_error_ff4ddaabdfc5dbb3:Dn,__wbg_from_2a5d3e218e67aa85:On,__wbg_getAllKeys_b11d8835dc4be0e8:Un,__wbg_getAll_304e868beec2021f:Bn,__wbg_getAll_d1e60c13c0073374:Vn,__wbg_getAll_e6903c610babcd42:xn,__wbg_getRandomValues_3d90134a348e46b3:En,__wbg_getRandomValues_b8f5dbd5f3995a9e:Tn,__wbg_getTime_46267b1c24877e30:An,__wbg_get_67b2ba62fc30de12:Mn,__wbg_get_8da03f81f6a1111e:Pn,__wbg_get_93e54e8e166fbcab:Nn,__wbg_get_b9b93047fe3cf45b:Wn,__wbg_getwithrefkey_1dc361bd10053bfe:Ln,__wbg_global_b6f5c73312f62313:Qn,__wbg_inboundgroupsession_new:Gn,__wbg_index_e00ca5fff206ee3e:Jn,__wbg_indexedDB_601ec26c63e333de:$n,__wbg_indexedDB_b1f49280282046f8:Hn,__wbg_indexedDB_f6b47b0dc333fd2f:Xn,__wbg_info_3daf2e093e091b66:Zn,__wbg_info_9dbb68f6a8dca153:Yn,__wbg_instanceof_ArrayBuffer_e14585432e3737fc:ei,__wbg_instanceof_Map_f3469ce2244d2430:ti,__wbg_instanceof_Promise_935168b8f4b49db3:ri,__wbg_instanceof_Uint8Array_17156bcf118086a9:_i,__wbg_invalidtodeviceevent_new:ni,__wbg_isArray_a1eab7e0d067391b:ii,__wbg_isSafeInteger_343e2beeeece1bb0:si,__wbg_item_c3c26b4103ad5aaf:oi,__wbg_iterator_9a24c88df860dc65:ci,__wbg_key_29fefecef430db96:ai,__wbg_keysbackuprequest_new:gi,__wbg_keysclaimrequest_new:wi,__wbg_keysqueryrequest_new:di,__wbg_keysuploadrequest_new:bi,__wbg_length_238152a0aedbb6e7:ui,__wbg_length_a446193dc22c12f8:pi,__wbg_length_e2d2a49132c1b256:li,__wbg_lowerBound_1872d19f5bcf83c6:fi,__wbg_maybesignature_new:yi,__wbg_megolmdecryptionerror_new:hi,__wbg_message_5c5d919204d42400:mi,__wbg_msCrypto_a61aeb35a24c1329:vi,__wbg_name_f2d27098bfd843e7:ki,__wbg_new_23a2665fac83c611:Ri,__wbg_new_31a97dac4f10fab7:Fi,__wbg_new_405e22f390576ce2:zi,__wbg_new_5e0be73521bc8c17:Si,__wbg_new_78feb108b6472713:qi,__wbg_new_7a91e41fe43b3c92:ji,__wbg_new_8a6f238a6ece86ea:Ki,__wbg_new_a12002a7f91c75be:Ii,__wbg_new_a239edaa1dc2968f:Ci,__wbg_newnoargs_105ed471475aaf50:Di,__wbg_newwithbyteoffsetandlength_6d34787141015158:Oi,__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a:Ui,__wbg_newwithlength_a381634e90c276d4:Bi,__wbg_newwithlength_ee8e1b95dea9d37c:Vi,__wbg_newwithmessage_baedba94f03976fd:xi,__wbg_next_25feadfc0913fea9:Ei,__wbg_next_6574e1a8a62d1055:Ti,__wbg_node_905d3e251edff8a2:Ai,__wbg_now_2c95c9de01293173:Mi,__wbg_now_807e54c39636c349:Pi,__wbg_objectStoreNames_9bb1ab04a7012aaf:Ni,__wbg_objectStore_21878d46d25b64b6:Wi,__wbg_oldVersion_e8337811e52861c6:Li,__wbg_olmmachine_new:Qi,__wbg_openCursor_1adef2266972fb45:Gi,__wbg_openCursor_238e247d18bde2cd:Ji,__wbg_openCursor_f4b061aa6d804b93:$i,__wbg_open_88b1390d99a7c691:Hi,__wbg_open_e0c0b2993eb596e1:Xi,__wbg_otheruseridentity_new:Zi,__wbg_ownuseridentity_new:Yi,__wbg_parse_def2e24ef1252aff:es,__wbg_performance_7a3ffd0b17f663ad:ts,__wbg_pickledinboundgroupsession_unwrap:rs,__wbg_pickledsession_unwrap:_s,__wbg_plaintexttodeviceevent_new:ns,__wbg_process_dc0fbacc7c1c06f7:is,__wbg_push_737cfc8c1432c2c6:ss,__wbg_put_066faa31a6a88f5b:os,__wbg_putdehydrateddevicerequest_new:cs,__wbg_qr_new:as,__wbg_queueMicrotask_97d92b4fcc8a61c5:gs,__wbg_queueMicrotask_d3219def82552485:ws,__wbg_randomFillSync_ac0988aba3254290:ds,__wbg_readyState_4013cfdf4f22afb0:bs,__wbg_rehydrateddevice_new:us,__wbg_require_60cc747a6bc5215a:ps,__wbg_resolve_4851785c9c5f573d:ls,__wbg_result_f29afabdf2c05826:fs,__wbg_roomid_unwrap:ys,__wbg_roomkeycounts_new:hs,__wbg_roomkeyimportresult_new:ms,__wbg_roomkeyinfo_new:vs,__wbg_roomkeywithheldinfo_new:ks,__wbg_roommessagerequest_new:Rs,__wbg_roomsettings_new:Fs,__wbg_sas_new:zs,__wbg_secretsbundle_new:Ss,__wbg_setTimeout_db2dbaeefb6f39c7:qs,__wbg_set_37837023f3d740e8:js,__wbg_set_3f1d0b984ed272ed:Ks,__wbg_set_65595bdd868b3009:Is,__wbg_set_6775f73144c2ef27:Cs,__wbg_set_8fc6bf8a5b1071d1:Ds,__wbg_set_wasm:Ct,__wbg_setonabort_3bf4db6614fa98e9:Os,__wbg_setonblocked_aebf64bd39f1eca8:Us,__wbg_setoncomplete_4d19df0dadb7c4d4:Bs,__wbg_setonerror_b0d9d723b8fddbbb:Vs,__wbg_setonerror_d7e3056cc6e56085:xs,__wbg_setonsuccess_afa464ee777a396d:Es,__wbg_setonupgradeneeded_fcf7ce4f2eb0cb5f:Ts,__wbg_setonversionchange_6ee07fa49ee1e3a5:As,__wbg_setunique_dd24c422aa05df89:Ms,__wbg_signatures_new:Ps,__wbg_signatureuploadrequest_new:Ns,__wbg_signatureverification_new:Ws,__wbg_stack_0ed75d68575b0f3c:Ls,__wbg_static_accessor_GLOBAL_88a902d13a557d07:Qs,__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0:Gs,__wbg_static_accessor_SELF_37c5d418e4bf5819:Js,__wbg_static_accessor_WINDOW_5de37043a91a9c40:$s,__wbg_storedroomkeybundledata_new:Hs,__wbg_storehandle_new:Xs,__wbg_stringify_f7ed6987935b4a24:Zs,__wbg_subarray_aa9065fa9dc5df96:Ys,__wbg_target_0a62d9d79a2a1ede:eo,__wbg_then_44b73946d2fb3e7d:to,__wbg_then_48b406749878a531:ro,__wbg_todevicerequest_new:_o,__wbg_transaction_babc423936946a37:no,__wbg_transaction_d6d07c3c9963c49e:io,__wbg_transaction_e713aa7b07ccaedd:so,__wbg_update_acd72607f506872a:oo,__wbg_userdevices_new:co,__wbg_userid_new:ao,__wbg_userid_unwrap:go,__wbg_utdtodeviceevent_new:wo,__wbg_value_68c4e9a54bb7fd5e:bo,__wbg_value_cd1ffa7b1ab794f1:uo,__wbg_values_53465c57fc8cd691:po,__wbg_verificationrequest_new:lo,__wbg_version_a70a33e5bbc6d6db:fo,__wbg_versions_c01dfd4722a88165:yo,__wbg_warn_4ca3906c248c47c4:ho,__wbg_warn_c3cc2bbed3f9c3c0:mo,__wbindgen_array_new:vo,__wbindgen_array_push:ko,__wbindgen_as_number:Ro,__wbindgen_bigint_from_i64:Fo,__wbindgen_bigint_from_u64:zo,__wbindgen_bigint_get_as_i64:So,__wbindgen_boolean_get:qo,__wbindgen_cb_drop:jo,__wbindgen_closure_wrapper1145:Ko,__wbindgen_closure_wrapper2371:Io,__wbindgen_closure_wrapper5561:Co,__wbindgen_closure_wrapper7047:Do,__wbindgen_closure_wrapper7052:Oo,__wbindgen_debug_string:Uo,__wbindgen_error_new:Bo,__wbindgen_in:Vo,__wbindgen_init_externref_table:xo,__wbindgen_is_array:Eo,__wbindgen_is_bigint:To,__wbindgen_is_function:Ao,__wbindgen_is_null:Mo,__wbindgen_is_object:Po,__wbindgen_is_string:No,__wbindgen_is_undefined:Wo,__wbindgen_jsval_eq:Lo,__wbindgen_jsval_loose_eq:Qo,__wbindgen_memory:Go,__wbindgen_number_get:Jo,__wbindgen_number_new:$o,__wbindgen_string_get:Ho,__wbindgen_string_new:Xo,__wbindgen_throw:Zo,__wbindgen_try_into_number:Yo,getVersions:__,start:n_},Symbol.toStringTag,{value:"Module"})),tc=new URL(""+new URL("matrix_sdk_crypto_wasm_bg-X-iWfZQJ.wasm",import.meta.url).href,import.meta.url);Ct(new Proxy({},{get(){throw new Error("@matrix-org/matrix-sdk-crypto-wasm was used before it was initialized. Call `initAsync` first.")}}));let Kt=null;async function rc(e){const{instance:t}=await WebAssembly.instantiateStreaming(fetch(e),{"./matrix_sdk_crypto_wasm_bg.js":ec});Ct(t.exports),t.exports.__wbindgen_start()}async function _c(e=tc){Kt||(Kt=rc(e)),await Kt}export{Ae as A,O as B,q as C,K as D,$r as E,Te as F,U as G,p_ as H,Be as I,De as K,l_ as L,Oe as M,Ve as O,Pe as P,Ne as Q,y as R,_e as S,tt as T,f as U,S_ as V,u_ as a,h as b,Z as c,Ce as d,Ie as e,He as f,_t as g,Xe as h,q_ as i,$ as j,m_ as k,__ as l,Ee as m,Hr as n,N as o,Jr as p,y_ as q,ee as r,z_ as s,Gr as t,w_ as u,k_ as v,R_ as w,_c as x,Qr as y,O_ as z};