@element-hq/element-call-embedded 0.9.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE-AGPL-3.0 +661 -0
- package/LICENSE-COMMERCIAL +6 -0
- package/README.md +14 -0
- package/dist/assets/IndexedDBWorker-DunQAoUH.js +2 -0
- package/dist/assets/IndexedDBWorker-DunQAoUH.js.map +1 -0
- package/dist/assets/cat-4r_NkDcK.ogg +0 -0
- package/dist/assets/cat-Dd8bv_2W.mp3 +0 -0
- package/dist/assets/clap-AxCMZLTd.ogg +0 -0
- package/dist/assets/clap-Dxm5qGyl.mp3 +0 -0
- package/dist/assets/crickets-CcwrRdbq.mp3 +0 -0
- package/dist/assets/crickets-DUJdcuUa.ogg +0 -0
- package/dist/assets/de-app-BVrY_LcE.json +218 -0
- package/dist/assets/deer-91r1Gyrx.mp3 +0 -0
- package/dist/assets/deer-DPSlVch4.ogg +0 -0
- package/dist/assets/dog-BoQdnF-w.mp3 +0 -0
- package/dist/assets/dog-CxIWtkNX.ogg +0 -0
- package/dist/assets/el-app-Bgiig2Nz.json +81 -0
- package/dist/assets/en-app-CaNSxxxY.json +218 -0
- package/dist/assets/es-app-k4RDObng.json +82 -0
- package/dist/assets/et-app-lXLRqT0e.json +115 -0
- package/dist/assets/fr-app-DbyWYFAw.json +114 -0
- package/dist/assets/generic-BBbS3Wph.ogg +0 -0
- package/dist/assets/generic-BFeSb6fL.mp3 +0 -0
- package/dist/assets/id-app-C7u2K42_.json +114 -0
- package/dist/assets/inconsolata-latin-400-normal-Befkm-iY.woff +0 -0
- package/dist/assets/inconsolata-latin-400-normal-CjvQBeBR.woff2 +0 -0
- package/dist/assets/inconsolata-latin-700-normal-BUbZx5Dd.woff2 +0 -0
- package/dist/assets/inconsolata-latin-700-normal-OU_zouat.woff +0 -0
- package/dist/assets/inconsolata-latin-ext-400-normal-DeeBOK-I.woff +0 -0
- package/dist/assets/inconsolata-latin-ext-400-normal-e5nDaEKZ.woff2 +0 -0
- package/dist/assets/inconsolata-latin-ext-700-normal-BSLPqmaC.woff +0 -0
- package/dist/assets/inconsolata-latin-ext-700-normal-BhssidQ1.woff2 +0 -0
- package/dist/assets/inconsolata-vietnamese-400-normal-DfMo8OX4.woff2 +0 -0
- package/dist/assets/inconsolata-vietnamese-400-normal-hFXvniIJ.woff +0 -0
- package/dist/assets/inconsolata-vietnamese-700-normal-D1IfJGt6.woff +0 -0
- package/dist/assets/inconsolata-vietnamese-700-normal-DlaT3sch.woff2 +0 -0
- package/dist/assets/index-B_Ugqolg.js +221 -0
- package/dist/assets/index-B_Ugqolg.js.map +1 -0
- package/dist/assets/index-BtY3MdEn.css +1 -0
- package/dist/assets/index-CZufW2rm.js +9 -0
- package/dist/assets/index-CZufW2rm.js.map +1 -0
- package/dist/assets/index-DhG7hwDH.js +3 -0
- package/dist/assets/index-DhG7hwDH.js.map +1 -0
- package/dist/assets/inter-cyrillic-400-normal-BLGc9T1a.woff2 +0 -0
- package/dist/assets/inter-cyrillic-400-normal-ZzOtrSSW.woff +0 -0
- package/dist/assets/inter-cyrillic-500-normal-D4Vwzodn.woff2 +0 -0
- package/dist/assets/inter-cyrillic-500-normal-DH2hs3aW.woff +0 -0
- package/dist/assets/inter-cyrillic-600-normal-BGBWG807.woff2 +0 -0
- package/dist/assets/inter-cyrillic-600-normal-BuzJQFbW.woff +0 -0
- package/dist/assets/inter-cyrillic-700-normal-Bc8_fv8J.woff +0 -0
- package/dist/assets/inter-cyrillic-700-normal-bGtGjVdZ.woff2 +0 -0
- package/dist/assets/inter-cyrillic-ext-400-normal-BPnxn4xp.woff +0 -0
- package/dist/assets/inter-cyrillic-ext-400-normal-Dc4VJyIJ.woff2 +0 -0
- package/dist/assets/inter-cyrillic-ext-500-normal-BShVwWPj.woff2 +0 -0
- package/dist/assets/inter-cyrillic-ext-500-normal-CUiC4oBV.woff +0 -0
- package/dist/assets/inter-cyrillic-ext-600-normal-Bt9VVOA-.woff +0 -0
- package/dist/assets/inter-cyrillic-ext-600-normal-CaqZN2hq.woff2 +0 -0
- package/dist/assets/inter-cyrillic-ext-700-normal-Ced3hgUT.woff +0 -0
- package/dist/assets/inter-cyrillic-ext-700-normal-ClVoMEGq.woff2 +0 -0
- package/dist/assets/inter-greek-400-normal-BZzXV7-1.woff +0 -0
- package/dist/assets/inter-greek-400-normal-DxZsaF_h.woff2 +0 -0
- package/dist/assets/inter-greek-500-normal-CeQXL5ds.woff2 +0 -0
- package/dist/assets/inter-greek-500-normal-d_eO-yCQ.woff +0 -0
- package/dist/assets/inter-greek-600-normal-CwicyhtI.woff +0 -0
- package/dist/assets/inter-greek-600-normal-Dhlb-90d.woff2 +0 -0
- package/dist/assets/inter-greek-700-normal-BRYTaFLL.woff +0 -0
- package/dist/assets/inter-greek-700-normal-Cxpycf-U.woff2 +0 -0
- package/dist/assets/inter-greek-ext-400-normal-Bput3-QP.woff2 +0 -0
- package/dist/assets/inter-greek-ext-400-normal-DCpCPQOf.woff +0 -0
- package/dist/assets/inter-greek-ext-500-normal-B6guLgqG.woff2 +0 -0
- package/dist/assets/inter-greek-ext-500-normal-M2hEX8vc.woff +0 -0
- package/dist/assets/inter-greek-ext-600-normal-C9WLioJ8.woff +0 -0
- package/dist/assets/inter-greek-ext-600-normal-Cnui8OiR.woff2 +0 -0
- package/dist/assets/inter-greek-ext-700-normal-DXvzx4Na.woff +0 -0
- package/dist/assets/inter-greek-ext-700-normal-SzCdnevJ.woff2 +0 -0
- package/dist/assets/inter-latin-400-normal-BOOGhInR.woff2 +0 -0
- package/dist/assets/inter-latin-400-normal-gitzw0hO.woff +0 -0
- package/dist/assets/inter-latin-500-normal-D2bGa7uu.woff2 +0 -0
- package/dist/assets/inter-latin-500-normal-deR1Tlfd.woff +0 -0
- package/dist/assets/inter-latin-600-normal-B5cFAncS.woff +0 -0
- package/dist/assets/inter-latin-600-normal-D273HNI0.woff2 +0 -0
- package/dist/assets/inter-latin-700-normal-B8MtJ_2k.woff +0 -0
- package/dist/assets/inter-latin-700-normal-Sckx8rpT.woff2 +0 -0
- package/dist/assets/inter-latin-ext-400-normal-C1t-h-pH.woff +0 -0
- package/dist/assets/inter-latin-ext-400-normal-hnt3BR84.woff2 +0 -0
- package/dist/assets/inter-latin-ext-500-normal-CIS2RHJS.woff2 +0 -0
- package/dist/assets/inter-latin-ext-500-normal-UMdmhHu2.woff +0 -0
- package/dist/assets/inter-latin-ext-600-normal-BnYJhD27.woff2 +0 -0
- package/dist/assets/inter-latin-ext-600-normal-CAF0vJDd.woff +0 -0
- package/dist/assets/inter-latin-ext-700-normal-6V9MnIL5.woff +0 -0
- package/dist/assets/inter-latin-ext-700-normal-CzikT_rs.woff2 +0 -0
- package/dist/assets/inter-vietnamese-400-normal-BUNmGMP1.woff +0 -0
- package/dist/assets/inter-vietnamese-400-normal-DMkecbls.woff2 +0 -0
- package/dist/assets/inter-vietnamese-500-normal-DOriooB6.woff2 +0 -0
- package/dist/assets/inter-vietnamese-500-normal-DQPw2Hwd.woff +0 -0
- package/dist/assets/inter-vietnamese-600-normal-Cc8MFFhd.woff2 +0 -0
- package/dist/assets/inter-vietnamese-600-normal-Cm6aH8_k.woff +0 -0
- package/dist/assets/inter-vietnamese-700-normal-CGpBpxLq.woff2 +0 -0
- package/dist/assets/inter-vietnamese-700-normal-dAnkLlTo.woff +0 -0
- package/dist/assets/it-app-Brq71wxA.json +111 -0
- package/dist/assets/join_call-DlMV9nHk.ogg +0 -0
- package/dist/assets/join_call-dEJCP2wD.mp3 +0 -0
- package/dist/assets/left_call-BbqmRgnC.mp3 +0 -0
- package/dist/assets/left_call-C7NMl6WI.ogg +0 -0
- package/dist/assets/lightbulb-BIeJtAR_.ogg +0 -0
- package/dist/assets/lightbulb-BrnY00qi.mp3 +0 -0
- package/dist/assets/livekit-client.e2ee.worker-uNa5aSsA.js +2 -0
- package/dist/assets/livekit-client.e2ee.worker-uNa5aSsA.js.map +1 -0
- package/dist/assets/lv-app--dkl5K2p.json +89 -0
- package/dist/assets/matrix-sdk-crypto-wasm-D9e1T4vy.js +3 -0
- package/dist/assets/matrix-sdk-crypto-wasm-D9e1T4vy.js.map +1 -0
- package/dist/assets/matrix_sdk_crypto_wasm_bg-B6p0UpxL.wasm +0 -0
- package/dist/assets/pako.esm-Bt8vjcgE.js +2 -0
- package/dist/assets/pako.esm-Bt8vjcgE.js.map +1 -0
- package/dist/assets/party-BZPeTgC3.mp3 +0 -0
- package/dist/assets/party-D7rIOhAQ.ogg +0 -0
- package/dist/assets/pl-app-DGeQk6oM.json +117 -0
- package/dist/assets/polyfill-force-7EA3_RsE.js +2 -0
- package/dist/assets/polyfill-force-7EA3_RsE.js.map +1 -0
- package/dist/assets/polyfill-force-HZS4jnNh.js +2 -0
- package/dist/assets/polyfill-force-HZS4jnNh.js.map +1 -0
- package/dist/assets/raise_hand-Bzqn65WB.mp3 +0 -0
- package/dist/assets/raise_hand-CUbxEnt9.ogg +0 -0
- package/dist/assets/ro-app-C7W3EjXp.json +174 -0
- package/dist/assets/rock-BVCJXNC-.ogg +0 -0
- package/dist/assets/rock-CHdnB31m.mp3 +0 -0
- package/dist/assets/ru-app-B-FtZqJU.json +83 -0
- package/dist/assets/screen_share_started-DH3qxml5.mp3 +0 -0
- package/dist/assets/screen_share_started-IZDL-kAw.ogg +0 -0
- package/dist/assets/sk-app-C-Uhf1j4.json +115 -0
- package/dist/assets/spa-Cw7oBEf6.js +2 -0
- package/dist/assets/spa-Cw7oBEf6.js.map +1 -0
- package/dist/assets/uk-app-BxyP4dDT.json +117 -0
- package/dist/assets/wave-Bzf1LSMH.mp3 +0 -0
- package/dist/assets/wave-FiiOzicp.ogg +0 -0
- package/dist/assets/zh-Hans-app-CCvn5Yaa.json +110 -0
- package/dist/assets/zh-Hant-app-bsZKL_R6.json +117 -0
- package/dist/config.json +1 -0
- package/dist/index.html +1 -0
- package/package.json +14 -0
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
try{let _=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new _.Error().stack;e&&(_._sentryDebugIds=_._sentryDebugIds||{},_._sentryDebugIds[e]="28556724-d62a-4143-a994-cc5c5633a3a7",_._sentryDebugIdIdentifier="sentry-dbid-28556724-d62a-4143-a994-cc5c5633a3a7")}catch{}let r;function ht(_){r=_}let o=0,re=null;function B(){return(re===null||re.byteLength===0)&&(re=new Uint8Array(r.memory.buffer)),re}const Ir=typeof TextEncoder>"u"?(0,module.require)("util").TextEncoder:TextEncoder;let ne=new Ir("utf-8");const Cr=typeof ne.encodeInto=="function"?function(_,e){return ne.encodeInto(_,e)}:function(_,e){const t=ne.encode(_);return e.set(t),{read:_.length,written:t.length}};function g(_,e,t){if(t===void 0){const w=ne.encode(_),l=e(w.length,1)>>>0;return B().subarray(l,l+w.length).set(w),o=w.length,l}let n=_.length,i=e(n,1)>>>0;const s=B();let a=0;for(;a<n;a++){const w=_.charCodeAt(a);if(w>127)break;s[i+a]=w}if(a!==n){a!==0&&(_=_.slice(a)),i=t(i,n,n=a+_.length*3,1)>>>0;const w=B().subarray(i+a,i+n),l=Cr(_,w);a+=l.written,i=t(i,n,a,1)>>>0}return o=a,i}let U=null;function y(){return(U===null||U.buffer.detached===!0||U.buffer.detached===void 0&&U.buffer!==r.memory.buffer)&&(U=new DataView(r.memory.buffer)),U}function R(_){const e=r.__externref_table_alloc();return r.__wbindgen_export_4.set(e,_),e}function p(_,e){try{return _.apply(this,e)}catch(t){const n=R(t);r.__wbindgen_exn_store(n)}}const Or=typeof TextDecoder>"u"?(0,module.require)("util").TextDecoder:TextDecoder;let vr=new Or("utf-8",{ignoreBOM:!0,fatal:!0});vr.decode();function u(_,e){return _=_>>>0,vr.decode(B().subarray(_,_+e))}function d(_){return _==null}const ie=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>{r.__wbindgen_export_6.get(_.dtor)(_.a,_.b)});function yt(_,e,t,n){const i={a:_,b:e,cnt:1,dtor:t},s=(...a)=>{i.cnt++;const w=i.a;i.a=0;try{return n(w,i.b,...a)}finally{--i.cnt===0?(r.__wbindgen_export_6.get(i.dtor)(w,i.b),ie.unregister(i)):i.a=w}};return s.original=i,ie.register(s,i,i),s}function kr(_,e,t,n){const i={a:_,b:e,cnt:1,dtor:t},s=(...a)=>{i.cnt++;try{return n(i.a,i.b,...a)}finally{--i.cnt===0&&(r.__wbindgen_export_6.get(i.dtor)(i.a,i.b),i.a=0,ie.unregister(i))}};return s.original=i,ie.register(s,i,i),s}function ft(_){const e=typeof _;if(e=="number"||e=="boolean"||_==null)return`${_}`;if(e=="string")return`"${_}"`;if(e=="symbol"){const i=_.description;return i==null?"Symbol":`Symbol(${i})`}if(e=="function"){const i=_.name;return typeof i=="string"&&i.length>0?`Function(${i})`:"Function"}if(Array.isArray(_)){const i=_.length;let s="[";i>0&&(s+=ft(_[0]));for(let a=1;a<i;a++)s+=", "+ft(_[a]);return s+="]",s}const t=/\[object ([^\]]+)\]/.exec(toString.call(_));let n;if(t&&t.length>1)n=t[1];else return toString.call(_);if(n=="Object")try{return"Object("+JSON.stringify(_)+")"}catch{return"Object"}return _ instanceof Error?`${_.name}: ${_.message}
|
|
2
|
+
${_.stack}`:n}function se(_,e){const t=e(_.length*1,1)>>>0;return B().set(_,t/1),o=_.length,t}function c(_){const e=r.__wbindgen_export_4.get(_);return r.__externref_table_dealloc(_),e}function b(_,e){if(!(_ instanceof e))throw new Error(`expected instance of ${e.name}`)}function L(_,e){return _=_>>>0,B().subarray(_/1,_/1+e)}function k(_,e){const t=e(_.length*4,4)>>>0;for(let n=0;n<_.length;n++){const i=R(_[n]);y().setUint32(t+4*n,i,!0)}return o=_.length,t}function P(_,e){_=_>>>0;const t=y(),n=[];for(let i=_;i<_+4*e;i+=4)n.push(r.__wbindgen_export_4.get(t.getUint32(i,!0)));return r.__externref_drop_slice(_,e),n}let _e=null;function Dr(){return(_e===null||_e.byteLength===0)&&(_e=new Uint16Array(r.memory.buffer)),_e}function Ur(_,e){return _=_>>>0,Dr().subarray(_/2,_/2+e)}function Br(){const _=r.getVersions();return Je.__wrap(_)}function Vr(){r.start()}function xr(_,e,t){const n=r.closure29_externref_shim_multivalue_shim(_,e,t);if(n[1])throw c(n[0])}function Er(_,e){r._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h01b499ad5cb75280(_,e)}function Ar(_,e,t){r.closure734_externref_shim(_,e,t)}function Mr(_,e,t){r.closure414_externref_shim(_,e,t)}function Tr(_,e){r._dyn_core__ops__function__Fn_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hd1a2ce9a4f62ec0e(_,e)}function Pr(_,e,t,n){r.closure430_externref_shim(_,e,t,n)}const Nr=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"}),Wr=Object.freeze({Ed25519:0,0:"Ed25519",Curve25519:1,1:"Curve25519",Unknown:3,3:"Unknown"}),Lr=Object.freeze({Curve25519:0,0:"Curve25519",Ed25519:1,1:"Ed25519",Unknown:2,2:"Unknown"}),Qr=Object.freeze({OlmV1Curve25519AesSha2:0,0:"OlmV1Curve25519AesSha2",MegolmV1AesSha2:1,1:"MegolmV1AesSha2",Unknown:2,2:"Unknown"}),Gr=Object.freeze({Invited:0,0:"Invited",Joined:1,1:"Joined",Shared:2,2:"Shared",WorldReadable:3,3:"WorldReadable"}),Jr=Object.freeze({Verified:0,0:"Verified",BlackListed:1,1:"BlackListed",Ignored:2,2:"Ignored",Unset:3,3:"Unset"}),$r=Object.freeze({Trace:0,0:"Trace",Debug:1,1:"Debug",Info:2,2:"Info",Warn:3,3:"Warn",Error:4,4:"Error"}),Hr=Object.freeze({Login:0,0:"Login",Reciprocate:1,1:"Reciprocate"}),Xr=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"}),Yr=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"}),Zr=Object.freeze({Red:0,0:"Red",Grey:1,1:"Grey",None:2,2:"None"}),e_=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"}),t_=Object.freeze({Missing:0,0:"Missing",Invalid:1,1:"Invalid",ValidButNotTrusted:2,2:"ValidButNotTrusted",ValidAndTrusted:3,3:"ValidAndTrusted"}),r_=Object.freeze({Untrusted:0,0:"Untrusted",CrossSignedOrLegacy:1,1:"CrossSignedOrLegacy",CrossSigned:2,2:"CrossSigned"}),__=Object.freeze({SasV1:0,0:"SasV1",QrCodeScanV1:1,1:"QrCodeScanV1",QrCodeShowV1:2,2:"QrCodeShowV1",ReciprocateV1:3,3:"ReciprocateV1"}),n_=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"}),i_=["pending","done"],Rr=["readonly","readwrite","versionchange","readwriteflush","cleanup"],s_=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_attachment_free(_>>>0,1));class o_{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,s_.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_attachment_free(e,0)}static encrypt(e){const t=se(e,r.__wbindgen_malloc),n=o,i=r.attachment_encrypt(t,n);if(i[2])throw c(i[1]);return N.__wrap(i[0])}static decrypt(e){b(e,N);const t=r.attachment_decrypt(e.__wbg_ptr);if(t[3])throw c(t[2]);var n=L(t[0],t[1]).slice();return r.__wbindgen_free(t[0],t[1]*1,1),n}}const mt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_backupdecryptionkey_free(_>>>0,1));class K{static __wrap(e){e=e>>>0;const t=Object.create(K.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_backupdecryptionkey_free(e,0)}static createRandomKey(){const e=r.backupdecryptionkey_createRandomKey();return K.__wrap(e)}static fromBase64(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o,i=r.backupdecryptionkey_fromBase64(t,n);if(i[2])throw c(i[1]);return K.__wrap(i[0])}toBase64(){return r.backupdecryptionkey_toBase64(this.__wbg_ptr)}get megolmV1PublicKey(){const e=r.backupdecryptionkey_megolmV1PublicKey(this.__wbg_ptr);return Se.__wrap(e)}decryptV1(e,t,n){let i,s;try{const l=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),v=o,q=g(t,r.__wbindgen_malloc,r.__wbindgen_realloc),z=o,D=g(n,r.__wbindgen_malloc,r.__wbindgen_realloc),Kr=o,te=r.backupdecryptionkey_decryptV1(this.__wbg_ptr,l,v,q,z,D,Kr);var a=te[0],w=te[1];if(te[3])throw a=0,w=0,c(te[2]);return i=a,s=w,u(a,w)}finally{r.__wbindgen_free(i,s,1)}}}const vt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_backupkeys_free(_>>>0,1));class oe{static __wrap(e){e=e>>>0;const t=Object.create(oe.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_backupkeys_free(e,0)}get decryptionKey(){const e=r.__wbg_get_backupkeys_decryptionKey(this.__wbg_ptr);return e===0?void 0:K.__wrap(e)}set decryptionKey(e){let t=0;d(e)||(b(e,K),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 e[0]!==0&&(t=u(e[0],e[1]).slice(),r.__wbindgen_free(e[0],e[1]*1,1)),t}set backupVersion(e){var t=d(e)?0:g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_backupkeys_backupVersion(this.__wbg_ptr,t,n)}get decryptionKeyBase64(){return r.backupkeys_decryptionKeyBase64(this.__wbg_ptr)}}const kt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_backupsecretsbundle_free(_>>>0,1));class ce{static __wrap(e){e=e>>>0;const t=Object.create(ce.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_backupsecretsbundle_free(e,0)}get key(){let e,t;try{const n=r.__wbg_get_backupsecretsbundle_key(this.__wbg_ptr);return e=n[0],t=n[1],u(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}set key(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_backupsecretsbundle_key(this.__wbg_ptr,t,n)}get backup_version(){let e,t;try{const n=r.__wbg_get_backupsecretsbundle_backup_version(this.__wbg_ptr);return e=n[0],t=n[1],u(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}set backup_version(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_backupsecretsbundle_backup_version(this.__wbg_ptr,t,n)}}const Rt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_basemigrationdata_free(_>>>0,1));class Fr{__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_basemigrationdata_free(e,0)}get userId(){const e=r.__wbg_get_basemigrationdata_userId(this.__wbg_ptr);return e===0?void 0:f.__wrap(e)}set userId(e){let t=0;d(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 e===0?void 0:m.__wrap(e)}set deviceId(e){let t=0;d(e)||(b(e,m),t=e.__destroy_into_raw()),r.__wbg_set_basemigrationdata_deviceId(this.__wbg_ptr,t)}get pickledAccount(){let e,t;try{const n=r.__wbg_get_basemigrationdata_pickledAccount(this.__wbg_ptr);return e=n[0],t=n[1],u(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}set pickledAccount(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_backupsecretsbundle_key(this.__wbg_ptr,t,n)}get backupVersion(){const e=r.__wbg_get_basemigrationdata_backupVersion(this.__wbg_ptr);let t;return e[0]!==0&&(t=u(e[0],e[1]).slice(),r.__wbindgen_free(e[0],e[1]*1,1)),t}set backupVersion(e){var t=d(e)?0:g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_basemigrationdata_backupVersion(this.__wbg_ptr,t,n)}get backupRecoveryKey(){const e=r.__wbg_get_basemigrationdata_backupRecoveryKey(this.__wbg_ptr);let t;return e[0]!==0&&(t=u(e[0],e[1]).slice(),r.__wbindgen_free(e[0],e[1]*1,1)),t}set backupRecoveryKey(e){var t=d(e)?0:g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_basemigrationdata_backupRecoveryKey(this.__wbg_ptr,t,n)}get privateCrossSigningMasterKey(){const e=r.__wbg_get_basemigrationdata_privateCrossSigningMasterKey(this.__wbg_ptr);let t;return e[0]!==0&&(t=u(e[0],e[1]).slice(),r.__wbindgen_free(e[0],e[1]*1,1)),t}set privateCrossSigningMasterKey(e){var t=d(e)?0:g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_basemigrationdata_privateCrossSigningMasterKey(this.__wbg_ptr,t,n)}get privateCrossSigningSelfSigningKey(){const e=r.__wbg_get_basemigrationdata_privateCrossSigningSelfSigningKey(this.__wbg_ptr);let t;return e[0]!==0&&(t=u(e[0],e[1]).slice(),r.__wbindgen_free(e[0],e[1]*1,1)),t}set privateCrossSigningSelfSigningKey(e){var t=d(e)?0:g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_basemigrationdata_privateCrossSigningSelfSigningKey(this.__wbg_ptr,t,n)}get privateCrossSigningUserSigningKey(){const e=r.__wbg_get_basemigrationdata_privateCrossSigningUserSigningKey(this.__wbg_ptr);let t;return e[0]!==0&&(t=u(e[0],e[1]).slice(),r.__wbindgen_free(e[0],e[1]*1,1)),t}set privateCrossSigningUserSigningKey(e){var t=d(e)?0:g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_basemigrationdata_privateCrossSigningUserSigningKey(this.__wbg_ptr,t,n)}constructor(){const e=r.basemigrationdata_new();return this.__wbg_ptr=e>>>0,Rt.register(this,this.__wbg_ptr,this),this}}const Ft=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_cancelinfo_free(_>>>0,1));class A{static __wrap(e){e=e>>>0;const t=Object.create(A.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_cancelinfo_free(e,0)}reason(){return r.cancelinfo_reason(this.__wbg_ptr)}cancelCode(){let e,t;try{const n=r.cancelinfo_cancelCode(this.__wbg_ptr);return e=n[0],t=n[1],u(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}cancelledbyUs(){return r.cancelinfo_cancelledbyUs(this.__wbg_ptr)!==0}}const zt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_checkcode_free(_>>>0,1));class ae{static __wrap(e){e=e>>>0;const t=Object.create(ae.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_checkcode_free(e,0)}as_bytes(){const e=r.checkcode_as_bytes(this.__wbg_ptr);var t=L(e[0],e[1]).slice();return r.__wbindgen_free(e[0],e[1]*1,1),t}to_digit(){return r.checkcode_to_digit(this.__wbg_ptr)}}const St=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_collectstrategy_free(_>>>0,1));class S{static __wrap(e){e=e>>>0;const t=Object.create(S.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_collectstrategy_free(e,0)}eq(e){return b(e,S),r.collectstrategy_eq(this.__wbg_ptr,e.__wbg_ptr)!==0}static deviceBasedStrategy(e,t){const n=r.collectstrategy_deviceBasedStrategy(e,t);return S.__wrap(n)}static allDevices(){const e=r.collectstrategy_allDevices();return S.__wrap(e)}static errorOnUnverifiedUserProblem(){const e=r.collectstrategy_errorOnUnverifiedUserProblem();return S.__wrap(e)}static identityBasedStrategy(){const e=r.collectstrategy_identityBasedStrategy();return S.__wrap(e)}static onlyTrustedDevices(){const e=r.collectstrategy_onlyTrustedDevices();return S.__wrap(e)}}const qt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_crosssigningbootstraprequests_free(_>>>0,1));class ge{static __wrap(e){e=e>>>0;const t=Object.create(ge.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_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 Qe.__wrap(e)}get uploadSignaturesRequest(){const e=r.__wbg_get_crosssigningbootstraprequests_uploadSignaturesRequest(this.__wbg_ptr);return Z.__wrap(e)}}const jt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_crosssigningkeyexport_free(_>>>0,1));class ue{static __wrap(e){e=e>>>0;const t=Object.create(ue.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_crosssigningkeyexport_free(e,0)}get masterKey(){const e=r.crosssigningkeyexport_masterKey(this.__wbg_ptr);let t;return e[0]!==0&&(t=u(e[0],e[1]).slice(),r.__wbindgen_free(e[0],e[1]*1,1)),t}get self_signing_key(){const e=r.crosssigningkeyexport_self_signing_key(this.__wbg_ptr);let t;return e[0]!==0&&(t=u(e[0],e[1]).slice(),r.__wbindgen_free(e[0],e[1]*1,1)),t}get userSigningKey(){const e=r.crosssigningkeyexport_userSigningKey(this.__wbg_ptr);let t;return e[0]!==0&&(t=u(e[0],e[1]).slice(),r.__wbindgen_free(e[0],e[1]*1,1)),t}}const Kt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_crosssigningstatus_free(_>>>0,1));class we{static __wrap(e){e=e>>>0;const t=Object.create(we.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_crosssigningstatus_free(e,0)}get hasMaster(){return r.crosssigningstatus_hasMaster(this.__wbg_ptr)!==0}get hasSelfSigning(){return r.crosssigningstatus_hasSelfSigning(this.__wbg_ptr)!==0}get hasUserSigning(){return r.crosssigningstatus_hasUserSigning(this.__wbg_ptr)!==0}}const $e=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_curve25519publickey_free(_>>>0,1));class F{static __wrap(e){e=e>>>0;const t=Object.create(F.prototype);return t.__wbg_ptr=e,$e.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,$e.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),n=o,i=r.curve25519publickey_new(t,n);if(i[2])throw c(i[1]);return this.__wbg_ptr=i[0]>>>0,$e.register(this,this.__wbg_ptr,this),this}get length(){return r.curve25519publickey_length(this.__wbg_ptr)>>>0}toBase64(){let e,t;try{const n=r.curve25519publickey_toBase64(this.__wbg_ptr);return e=n[0],t=n[1],u(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}}const It=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_decryptedroomevent_free(_>>>0,1));class be{static __wrap(e){e=e>>>0;const t=Object.create(be.prototype);return t.__wbg_ptr=e,It.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,It.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 e===0?void 0:f.__wrap(e)}get senderDevice(){const e=r.decryptedroomevent_senderDevice(this.__wbg_ptr);return e===0?void 0:m.__wrap(e)}get senderCurve25519Key(){return r.decryptedroomevent_senderCurve25519Key(this.__wbg_ptr)}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 t===0?void 0:Y.__wrap(t)}}const Ct=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_decryptionsettings_free(_>>>0,1));class zr{__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_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,Ct.register(this,this.__wbg_ptr,this),this}}const Ot=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_dehydrateddevice_free(_>>>0,1));class de{static __wrap(e){e=e>>>0;const t=Object.create(de.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_dehydrateddevice_free(e,0)}keysForUpload(e,t){return b(t,j),r.dehydrateddevice_keysForUpload(this.__wbg_ptr,e,t.__wbg_ptr)}}const Dt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_dehydrateddevicekey_free(_>>>0,1));class j{static __wrap(e){e=e>>>0;const t=Object.create(j.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_dehydrateddevicekey_free(e,0)}static createRandomKey(){const e=r.dehydrateddevicekey_createRandomKey();if(e[2])throw c(e[1]);return j.__wrap(e[0])}static createKeyFromArray(e){const t=r.dehydrateddevicekey_createKeyFromArray(e);if(t[2])throw c(t[1]);return j.__wrap(t[0])}toBase64(){return r.dehydrateddevicekey_toBase64(this.__wbg_ptr)}}const Ut=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_dehydrateddevices_free(_>>>0,1));class pe{static __wrap(e){e=e>>>0;const t=Object.create(pe.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_dehydrateddevices_free(e,0)}create(){return r.dehydrateddevices_create(this.__wbg_ptr)}rehydrate(e,t,n){b(e,j),b(t,m);const i=g(n,r.__wbindgen_malloc,r.__wbindgen_realloc),s=o;return r.dehydrateddevices_rehydrate(this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr,i,s)}getDehydratedDeviceKey(){return r.dehydrateddevices_getDehydratedDeviceKey(this.__wbg_ptr)}saveDehydratedDeviceKey(e){return b(e,j),r.dehydrateddevices_saveDehydratedDeviceKey(this.__wbg_ptr,e.__wbg_ptr)}deleteDehydratedDeviceKey(){return r.dehydrateddevices_deleteDehydratedDeviceKey(this.__wbg_ptr)}}const Bt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_device_free(_>>>0,1));class Q{static __wrap(e){e=e>>>0;const t=Object.create(Q.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_device_free(e,0)}requestVerification(e){var t=d(e)?0:k(e,r.__wbindgen_malloc),n=o;const i=r.device_requestVerification(this.__wbg_ptr,t,n);if(i[2])throw c(i[1]);return c(i[0])}encryptToDeviceEvent(e,t){const n=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),i=o;return r.device_encryptToDeviceEvent(this.__wbg_ptr,n,i,t)}isVerified(){return r.device_isVerified(this.__wbg_ptr)!==0}isCrossSigningTrusted(){return r.device_isCrossSigningTrusted(this.__wbg_ptr)!==0}isCrossSignedByOwner(){return r.device_isCrossSignedByOwner(this.__wbg_ptr)!==0}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 m.__wrap(e)}get displayName(){const e=r.device_displayName(this.__wbg_ptr);let t;return e[0]!==0&&(t=u(e[0],e[1]).slice(),r.__wbindgen_free(e[0],e[1]*1,1)),t}getKey(e){const t=r.device_getKey(this.__wbg_ptr,e);if(t[2])throw c(t[1]);return t[0]===0?void 0:G.__wrap(t[0])}get curve25519Key(){const e=r.device_curve25519Key(this.__wbg_ptr);return e===0?void 0:F.__wrap(e)}get ed25519Key(){const e=r.device_ed25519Key(this.__wbg_ptr);return e===0?void 0:C.__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 ee.__wrap(e)}get localTrustState(){return r.device_localTrustState(this.__wbg_ptr)}isLocallyTrusted(){return r.device_isLocallyTrusted(this.__wbg_ptr)!==0}isBlacklisted(){return r.device_isBlacklisted(this.__wbg_ptr)!==0}isDeleted(){return r.device_isDeleted(this.__wbg_ptr)!==0}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 r.device_isDehydrated(this.__wbg_ptr)!==0}}const He=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_deviceid_free(_>>>0,1));class m{static __wrap(e){e=e>>>0;const t=Object.create(m.prototype);return t.__wbg_ptr=e,He.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,He.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),n=o,i=r.deviceid_new(t,n);return this.__wbg_ptr=i>>>0,He.register(this,this.__wbg_ptr,this),this}toString(){let e,t;try{const n=r.deviceid_toString(this.__wbg_ptr);return e=n[0],t=n[1],u(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}}const Vt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_devicekey_free(_>>>0,1));class G{static __wrap(e){e=e>>>0;const t=Object.create(G.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_devicekey_free(e,0)}get name(){return r.devicekey_name(this.__wbg_ptr)}get curve25519(){const e=r.devicekey_curve25519(this.__wbg_ptr);return e===0?void 0:F.__wrap(e)}get ed25519(){const e=r.devicekey_ed25519(this.__wbg_ptr);return e===0?void 0:C.__wrap(e)}get unknown(){const e=r.devicekey_unknown(this.__wbg_ptr);let t;return e[0]!==0&&(t=u(e[0],e[1]).slice(),r.__wbindgen_free(e[0],e[1]*1,1)),t}toBase64(){let e,t;try{const n=r.devicekey_toBase64(this.__wbg_ptr);return e=n[0],t=n[1],u(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}}const xt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_devicekeyalgorithm_free(_>>>0,1));class le{static __wrap(e){e=e>>>0;const t=Object.create(le.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_devicekeyalgorithm_free(e,0)}get name(){return r.devicekeyalgorithm_name(this.__wbg_ptr)}toString(){let e,t;try{const n=r.devicekeyalgorithm_toString(this.__wbg_ptr);return e=n[0],t=n[1],u(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}}const Xe=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_devicekeyid_free(_>>>0,1));class V{static __wrap(e){e=e>>>0;const t=Object.create(V.prototype);return t.__wbg_ptr=e,Xe.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Xe.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),n=o,i=r.devicekeyid_new(t,n);if(i[2])throw c(i[1]);return this.__wbg_ptr=i[0]>>>0,Xe.register(this,this.__wbg_ptr,this),this}get algorithm(){const e=r.devicekeyid_algorithm(this.__wbg_ptr);return le.__wrap(e)}get deviceId(){const e=r.devicekeyid_deviceId(this.__wbg_ptr);return m.__wrap(e)}toString(){let e,t;try{const n=r.devicekeyid_toString(this.__wbg_ptr);return e=n[0],t=n[1],u(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}}const Et=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_devicelists_free(_>>>0,1));class Sr{__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_devicelists_free(e,0)}constructor(e,t){var n=d(e)?0:k(e,r.__wbindgen_malloc),i=o,s=d(t)?0:k(t,r.__wbindgen_malloc),a=o;const w=r.devicelists_new(n,i,s,a);if(w[2])throw c(w[1]);return this.__wbg_ptr=w[0]>>>0,Et.register(this,this.__wbg_ptr,this),this}isEmpty(){return r.devicelists_isEmpty(this.__wbg_ptr)!==0}get changed(){const e=r.devicelists_changed(this.__wbg_ptr);var t=P(e[0],e[1]).slice();return r.__wbindgen_free(e[0],e[1]*4,4),t}get left(){const e=r.devicelists_left(this.__wbg_ptr);var t=P(e[0],e[1]).slice();return r.__wbindgen_free(e[0],e[1]*4,4),t}}const At=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_ecies_free(_>>>0,1));class c_{__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_ecies_free(e,0)}constructor(){const e=r.ecies_new();return this.__wbg_ptr=e>>>0,At.register(this,this.__wbg_ptr,this),this}public_key(){const e=r.ecies_public_key(this.__wbg_ptr);return F.__wrap(e)}establish_inbound_channel(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o,i=r.ecies_establish_inbound_channel(this.__wbg_ptr,t,n);if(i[2])throw c(i[1]);return me.__wrap(i[0])}establish_outbound_channel(e,t){b(e,F);const n=g(t,r.__wbindgen_malloc,r.__wbindgen_realloc),i=o,s=r.ecies_establish_outbound_channel(this.__wbg_ptr,e.__wbg_ptr,n,i);if(s[2])throw c(s[1]);return Ke.__wrap(s[0])}}const Mt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_ed25519publickey_free(_>>>0,1));class C{static __wrap(e){e=e>>>0;const t=Object.create(C.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_ed25519publickey_free(e,0)}get length(){return r.ed25519publickey_length(this.__wbg_ptr)>>>0}toBase64(){let e,t;try{const n=r.ed25519publickey_toBase64(this.__wbg_ptr);return e=n[0],t=n[1],u(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}}const Ye=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_ed25519signature_free(_>>>0,1));class x{static __wrap(e){e=e>>>0;const t=Object.create(x.prototype);return t.__wbg_ptr=e,Ye.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Ye.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),n=o,i=r.ed25519signature_new(t,n);if(i[2])throw c(i[1]);return this.__wbg_ptr=i[0]>>>0,Ye.register(this,this.__wbg_ptr,this),this}toBase64(){let e,t;try{const n=r.ed25519signature_toBase64(this.__wbg_ptr);return e=n[0],t=n[1],u(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}}const Tt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_emoji_free(_>>>0,1));class fe{static __wrap(e){e=e>>>0;const t=Object.create(fe.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_emoji_free(e,0)}get symbol(){return r.emoji_symbol(this.__wbg_ptr)}get description(){return r.emoji_description(this.__wbg_ptr)}}const Ze=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_encryptedattachment_free(_>>>0,1));class N{static __wrap(e){e=e>>>0;const t=Object.create(N.prototype);return t.__wbg_ptr=e,Ze.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Ze.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_encryptedattachment_free(e,0)}constructor(e,t){const n=se(e,r.__wbindgen_malloc),i=o,s=g(t,r.__wbindgen_malloc,r.__wbindgen_realloc),a=o,w=r.encryptedattachment_new(n,i,s,a);if(w[2])throw c(w[1]);return this.__wbg_ptr=w[0]>>>0,Ze.register(this,this.__wbg_ptr,this),this}get encryptedData(){const e=r.encryptedattachment_encryptedData(this.__wbg_ptr);var t=L(e[0],e[1]).slice();return r.__wbindgen_free(e[0],e[1]*1,1),t}get mediaEncryptionInfo(){const e=r.encryptedattachment_mediaEncryptionInfo(this.__wbg_ptr);let t;return e[0]!==0&&(t=u(e[0],e[1]).slice(),r.__wbindgen_free(e[0],e[1]*1,1)),t}get hasMediaEncryptionInfoBeenConsumed(){return r.encryptedattachment_hasMediaEncryptionInfoBeenConsumed(this.__wbg_ptr)!==0}}const Pt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_encryptioninfo_free(_>>>0,1));class he{static __wrap(e){e=e>>>0;const t=Object.create(he.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_encryptioninfo_free(e,0)}get sender(){const e=r.encryptioninfo_sender(this.__wbg_ptr);return f.__wrap(e)}get senderDevice(){const e=r.encryptioninfo_senderDevice(this.__wbg_ptr);return e===0?void 0:m.__wrap(e)}get senderCurve25519Key(){return r.encryptioninfo_senderCurve25519Key(this.__wbg_ptr)}get senderClaimedEd25519Key(){return r.encryptioninfo_senderClaimedEd25519Key(this.__wbg_ptr)}shieldState(e){const t=r.encryptioninfo_shieldState(this.__wbg_ptr,e);return Y.__wrap(t)}}const Nt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_encryptionsettings_free(_>>>0,1));class qr{__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_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 S.__wrap(e)}set sharingStrategy(e){b(e,S);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,Nt.register(this,this.__wbg_ptr,this),this}}const Wt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_establishedecies_free(_>>>0,1));class O{static __wrap(e){e=e>>>0;const t=Object.create(O.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_establishedecies_free(e,0)}public_key(){const e=r.establishedecies_public_key(this.__wbg_ptr);return F.__wrap(e)}encrypt(e){let t,n;try{const i=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),s=o,a=r.establishedecies_encrypt(this.__wbg_ptr,i,s);return t=a[0],n=a[1],u(a[0],a[1])}finally{r.__wbindgen_free(t,n,1)}}decrypt(e){let t,n;try{const a=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),w=o,l=r.establishedecies_decrypt(this.__wbg_ptr,a,w);var i=l[0],s=l[1];if(l[3])throw i=0,s=0,c(l[2]);return t=i,n=s,u(i,s)}finally{r.__wbindgen_free(t,n,1)}}check_code(){const e=r.establishedecies_check_code(this.__wbg_ptr);return ae.__wrap(e)}}const Lt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_eventid_free(_>>>0,1));class jr{__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_eventid_free(e,0)}constructor(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o,i=r.eventid_new(t,n);if(i[2])throw c(i[1]);return this.__wbg_ptr=i[0]>>>0,Lt.register(this,this.__wbg_ptr,this),this}get localpart(){let e,t;try{const n=r.eventid_localpart(this.__wbg_ptr);return e=n[0],t=n[1],u(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}get serverName(){const e=r.eventid_serverName(this.__wbg_ptr);return e===0?void 0:X.__wrap(e)}toString(){let e,t;try{const n=r.eventid_toString(this.__wbg_ptr);return e=n[0],t=n[1],u(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}}const Qt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_identitykeys_free(_>>>0,1));class ye{static __wrap(e){e=e>>>0;const t=Object.create(ye.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_identitykeys_free(e,0)}get ed25519(){const e=r.__wbg_get_identitykeys_ed25519(this.__wbg_ptr);return C.__wrap(e)}set ed25519(e){b(e,C);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 F.__wrap(e)}set curve25519(e){b(e,F);var t=e.__destroy_into_raw();r.__wbg_set_identitykeys_curve25519(this.__wbg_ptr,t)}}const Gt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_inboundcreationresult_free(_>>>0,1));class me{static __wrap(e){e=e>>>0;const t=Object.create(me.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_inboundcreationresult_free(e,0)}get channel(){const e=r.__wbg_get_inboundcreationresult_channel(this.__wbg_ptr);return O.__wrap(e)}set channel(e){b(e,O);var t=e.__destroy_into_raw();r.__wbg_set_inboundcreationresult_channel(this.__wbg_ptr,t)}get message(){let e,t;try{const n=r.__wbg_get_inboundcreationresult_message(this.__wbg_ptr);return e=n[0],t=n[1],u(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}set message(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_backupsecretsbundle_key(this.__wbg_ptr,t,n)}}const Jt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_inboundgroupsession_free(_>>>0,1));class ve{static __wrap(e){e=e>>>0;const t=Object.create(ve.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_inboundgroupsession_free(e,0)}get roomId(){const e=r.inboundgroupsession_roomId(this.__wbg_ptr);return h.__wrap(e)}get senderKey(){const e=r.inboundgroupsession_senderKey(this.__wbg_ptr);return F.__wrap(e)}get sessionId(){let e,t;try{const n=r.inboundgroupsession_sessionId(this.__wbg_ptr);return e=n[0],t=n[1],u(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}hasBeenImported(){return r.inboundgroupsession_hasBeenImported(this.__wbg_ptr)!==0}}const et=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_keysbackuprequest_free(_>>>0,1));class ke{static __wrap(e){e=e>>>0;const t=Object.create(ke.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_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,n){const i=r.keysbackuprequest_new(e,t,n);return this.__wbg_ptr=i>>>0,et.register(this,this.__wbg_ptr,this),this}get type(){return r.keysbackuprequest_type(this.__wbg_ptr)}}const tt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_keysclaimrequest_free(_>>>0,1));class Re{static __wrap(e){e=e>>>0;const t=Object.create(Re.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_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 n=r.keysclaimrequest_new(e,t);return this.__wbg_ptr=n>>>0,tt.register(this,this.__wbg_ptr,this),this}get type(){return r.keysclaimrequest_type(this.__wbg_ptr)}}const rt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_keysqueryrequest_free(_>>>0,1));class J{static __wrap(e){e=e>>>0;const t=Object.create(J.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_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 n=r.keysqueryrequest_new(e,t);return this.__wbg_ptr=n>>>0,rt.register(this,this.__wbg_ptr,this),this}get type(){return r.keysqueryrequest_type(this.__wbg_ptr)}}const _t=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_keysuploadrequest_free(_>>>0,1));class Fe{static __wrap(e){e=e>>>0;const t=Object.create(Fe.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_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 n=r.keysuploadrequest_new(e,t);return this.__wbg_ptr=n>>>0,_t.register(this,this.__wbg_ptr,this),this}get type(){return r.keysuploadrequest_type(this.__wbg_ptr)}}const $t=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_maybesignature_free(_>>>0,1));class ${static __wrap(e){e=e>>>0;const t=Object.create($.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_maybesignature_free(e,0)}isValid(){return r.maybesignature_isValid(this.__wbg_ptr)!==0}isInvalid(){return r.maybesignature_isInvalid(this.__wbg_ptr)!==0}get signature(){const e=r.maybesignature_signature(this.__wbg_ptr);return e===0?void 0:Ne.__wrap(e)}get invalidSignatureSource(){const e=r.maybesignature_invalidSignatureSource(this.__wbg_ptr);let t;return e[0]!==0&&(t=u(e[0],e[1]).slice(),r.__wbindgen_free(e[0],e[1]*1,1)),t}}const Ht=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_megolmdecryptionerror_free(_>>>0,1));class ze{static __wrap(e){e=e>>>0;const t=Object.create(ze.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_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 Xt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_megolmv1backupkey_free(_>>>0,1));class Se{static __wrap(e){e=e>>>0;const t=Object.create(Se.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_megolmv1backupkey_free(e,0)}get publicKeyBase64(){return r.megolmv1backupkey_publicKeyBase64(this.__wbg_ptr)}get algorithm(){return r.megolmv1backupkey_algorithm(this.__wbg_ptr)}}const a_=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_migration_free(_>>>0,1));class g_{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,a_.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_migration_free(e,0)}static migrateBaseData(e,t,n){return b(e,Fr),b(n,I),r.migration_migrateBaseData(e.__wbg_ptr,t,n.__wbg_ptr)}static migrateOlmSessions(e,t,n){const i=k(e,r.__wbindgen_malloc),s=o;return b(n,I),r.migration_migrateOlmSessions(i,s,t,n.__wbg_ptr)}static migrateMegolmSessions(e,t,n){const i=k(e,r.__wbindgen_malloc),s=o;return b(n,I),r.migration_migrateMegolmSessions(i,s,t,n.__wbg_ptr)}}const nt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_olmmachine_free(_>>>0,1));class qe{static __wrap(e){e=e>>>0;const t=Object.create(qe.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_olmmachine_free(e,0)}constructor(){const e=r.olmmachine_new();if(e[2])throw c(e[1]);return this.__wbg_ptr=e[0]>>>0,nt.register(this,this.__wbg_ptr,this),this}static initialize(e,t,n,i){b(e,f),b(t,m);var s=d(n)?0:g(n,r.__wbindgen_malloc,r.__wbindgen_realloc),a=o,w=d(i)?0:g(i,r.__wbindgen_malloc,r.__wbindgen_realloc),l=o;return r.olmmachine_initialize(e.__wbg_ptr,t.__wbg_ptr,s,a,w,l)}static initFromStore(e,t,n){return b(e,f),b(t,m),b(n,I),r.olmmachine_initFromStore(e.__wbg_ptr,t.__wbg_ptr,n.__wbg_ptr)}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 m.__wrap(e)}get deviceCreationTimeMs(){return r.olmmachine_deviceCreationTimeMs(this.__wbg_ptr)}get identityKeys(){const e=r.olmmachine_identityKeys(this.__wbg_ptr);return ye.__wrap(e)}get displayName(){return r.olmmachine_displayName(this.__wbg_ptr)}get roomKeyRequestsEnabled(){return r.olmmachine_roomKeyRequestsEnabled(this.__wbg_ptr)!==0}set roomKeyRequestsEnabled(e){r.olmmachine_set_roomKeyRequestsEnabled(this.__wbg_ptr,e)}get roomKeyForwardingEnabled(){return r.olmmachine_roomKeyForwardingEnabled(this.__wbg_ptr)!==0}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=k(e,r.__wbindgen_malloc),n=o;return r.olmmachine_updateTrackedUsers(this.__wbg_ptr,t,n)}markAllTrackedUsersAsDirty(){return r.olmmachine_markAllTrackedUsersAsDirty(this.__wbg_ptr)}receiveSyncChanges(e,t,n,i){const s=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),a=o;b(t,Sr);const w=r.olmmachine_receiveSyncChanges(this.__wbg_ptr,s,a,t.__wbg_ptr,n,d(i)?0:R(i));if(w[2])throw c(w[1]);return c(w[0])}outgoingRequests(){return r.olmmachine_outgoingRequests(this.__wbg_ptr)}markRequestAsSent(e,t,n){const i=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),s=o,a=g(n,r.__wbindgen_malloc,r.__wbindgen_realloc),w=o,l=r.olmmachine_markRequestAsSent(this.__wbg_ptr,i,s,t,a,w);if(l[2])throw c(l[1]);return c(l[0])}encryptRoomEvent(e,t,n){b(e,h);const i=g(t,r.__wbindgen_malloc,r.__wbindgen_realloc),s=o,a=g(n,r.__wbindgen_malloc,r.__wbindgen_realloc),w=o,l=r.olmmachine_encryptRoomEvent(this.__wbg_ptr,e.__wbg_ptr,i,s,a,w);if(l[2])throw c(l[1]);return c(l[0])}decryptRoomEvent(e,t,n){const i=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),s=o;b(t,h),b(n,zr);const a=r.olmmachine_decryptRoomEvent(this.__wbg_ptr,i,s,t.__wbg_ptr,n.__wbg_ptr);if(a[2])throw c(a[1]);return c(a[0])}getRoomEventEncryptionInfo(e,t){const n=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),i=o;b(t,h);const s=r.olmmachine_getRoomEventEncryptionInfo(this.__wbg_ptr,n,i,t.__wbg_ptr);if(s[2])throw c(s[1]);return c(s[0])}crossSigningStatus(){return r.olmmachine_crossSigningStatus(this.__wbg_ptr)}exportSecretsBundle(){return r.olmmachine_exportSecretsBundle(this.__wbg_ptr)}importSecretsBundle(e){b(e,E);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,n){var i=d(e)?0:g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),s=o,a=d(t)?0:g(t,r.__wbindgen_malloc,r.__wbindgen_realloc),w=o,l=d(n)?0:g(n,r.__wbindgen_malloc,r.__wbindgen_realloc),v=o;return r.olmmachine_importCrossSigningKeys(this.__wbg_ptr,i,s,a,w,l,v)}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),n=o;return r.olmmachine_sign(this.__wbg_ptr,t,n)}invalidateGroupSession(e){return b(e,h),r.olmmachine_invalidateGroupSession(this.__wbg_ptr,e.__wbg_ptr)}shareRoomKey(e,t,n){b(e,h);const i=k(t,r.__wbindgen_malloc),s=o;return b(n,qr),r.olmmachine_shareRoomKey(this.__wbg_ptr,e.__wbg_ptr,i,s,n.__wbg_ptr)}queryKeysForUsers(e){const t=k(e,r.__wbindgen_malloc),n=o,i=r.olmmachine_queryKeysForUsers(this.__wbg_ptr,t,n);if(i[2])throw c(i[1]);return J.__wrap(i[0])}getMissingSessions(e){const t=k(e,r.__wbindgen_malloc),n=o;return r.olmmachine_getMissingSessions(this.__wbg_ptr,t,n)}getUserDevices(e,t){return b(e,f),r.olmmachine_getUserDevices(this.__wbg_ptr,e.__wbg_ptr,!d(t),d(t)?0:t)}getDevice(e,t,n){return b(e,f),b(t,m),r.olmmachine_getDevice(this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr,!d(n),d(n)?0:n)}getVerification(e,t){b(e,f);const n=g(t,r.__wbindgen_malloc,r.__wbindgen_realloc),i=o,s=r.olmmachine_getVerification(this.__wbg_ptr,e.__wbg_ptr,n,i);if(s[2])throw c(s[1]);return c(s[0])}getVerificationRequest(e,t){b(e,f);const n=g(t,r.__wbindgen_malloc,r.__wbindgen_realloc),i=o,s=r.olmmachine_getVerificationRequest(this.__wbg_ptr,e.__wbg_ptr,n,i);return s===0?void 0:M.__wrap(s)}getVerificationRequests(e){return b(e,f),r.olmmachine_getVerificationRequests(this.__wbg_ptr,e.__wbg_ptr)}receiveVerificationEvent(e,t){const n=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),i=o;b(t,h);const s=r.olmmachine_receiveVerificationEvent(this.__wbg_ptr,n,i,t.__wbg_ptr);if(s[2])throw c(s[1]);return c(s[0])}exportRoomKeys(e){return r.olmmachine_exportRoomKeys(this.__wbg_ptr,e)}importRoomKeys(e,t){const n=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),i=o,s=r.olmmachine_importRoomKeys(this.__wbg_ptr,n,i,t);if(s[2])throw c(s[1]);return c(s[0])}importExportedRoomKeys(e,t){const n=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),i=o,s=r.olmmachine_importExportedRoomKeys(this.__wbg_ptr,n,i,t);if(s[2])throw c(s[1]);return c(s[0])}importBackedUpRoomKeys(e,t,n){const i=g(n,r.__wbindgen_malloc,r.__wbindgen_realloc),s=o,a=r.olmmachine_importBackedUpRoomKeys(this.__wbg_ptr,e,d(t)?0:R(t),i,s);if(a[2])throw c(a[1]);return c(a[0])}saveBackupDecryptionKey(e,t){b(e,K);const n=g(t,r.__wbindgen_malloc,r.__wbindgen_realloc),i=o;return r.olmmachine_saveBackupDecryptionKey(this.__wbg_ptr,e.__wbg_ptr,n,i)}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 n=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),i=o,s=g(t,r.__wbindgen_malloc,r.__wbindgen_realloc),a=o,w=r.olmmachine_enableBackupV1(this.__wbg_ptr,n,i,s,a);if(w[2])throw c(w[1]);return c(w[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,n){let i,s;try{const l=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),v=o,q=g(t,r.__wbindgen_malloc,r.__wbindgen_realloc),z=o,D=r.olmmachine_encryptExportedRoomKeys(l,v,q,z,n);var a=D[0],w=D[1];if(D[3])throw a=0,w=0,c(D[2]);return i=a,s=w,u(a,w)}finally{r.__wbindgen_free(i,s,1)}}static decryptExportedRoomKeys(e,t){let n,i;try{const w=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),l=o,v=g(t,r.__wbindgen_malloc,r.__wbindgen_realloc),q=o,z=r.olmmachine_decryptExportedRoomKeys(w,l,v,q);var s=z[0],a=z[1];if(z[3])throw s=0,a=0,c(z[2]);return n=s,i=a,u(s,a)}finally{r.__wbindgen_free(n,i,1)}}registerRoomKeyUpdatedCallback(e){return r.olmmachine_registerRoomKeyUpdatedCallback(this.__wbg_ptr,e)}registerRoomKeysWithheldCallback(e){return r.olmmachine_registerRoomKeysWithheldCallback(this.__wbg_ptr,e)}registerUserIdentityUpdatedCallback(e){return r.olmmachine_registerUserIdentityUpdatedCallback(this.__wbg_ptr,e)}registerDevicesUpdatedCallback(e){return r.olmmachine_registerDevicesUpdatedCallback(this.__wbg_ptr,e)}registerReceiveSecretCallback(e){return r.olmmachine_registerReceiveSecretCallback(this.__wbg_ptr,e)}getSecretsFromInbox(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;return r.olmmachine_getSecretsFromInbox(this.__wbg_ptr,t,n)}deleteSecretsFromInbox(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;return r.olmmachine_deleteSecretsFromInbox(this.__wbg_ptr,t,n)}requestMissingSecretsIfNeeded(){return r.olmmachine_requestMissingSecretsIfNeeded(this.__wbg_ptr)}getRoomSettings(e){return b(e,h),r.olmmachine_getRoomSettings(this.__wbg_ptr,e.__wbg_ptr)}setRoomSettings(e,t){return b(e,h),b(t,H),r.olmmachine_setRoomSettings(this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr)}dehydratedDevices(){const e=r.olmmachine_dehydratedDevices(this.__wbg_ptr);return pe.__wrap(e)}close(){const e=this.__destroy_into_raw();r.olmmachine_close(e)}}const Yt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_otheruseridentity_free(_>>>0,1));class je{static __wrap(e){e=e>>>0;const t=Object.create(je.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_otheruseridentity_free(e,0)}isVerified(){return r.otheruseridentity_isVerified(this.__wbg_ptr)!==0}verify(){return r.otheruseridentity_verify(this.__wbg_ptr)}requestVerification(e,t,n){b(e,h),b(t,jr);var i=d(n)?0:k(n,r.__wbindgen_malloc),s=o;const a=r.otheruseridentity_requestVerification(this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr,i,s);if(a[2])throw c(a[1]);return M.__wrap(a[0])}verificationRequestContent(e){let t,n;try{var i=d(e)?0:k(e,r.__wbindgen_malloc),s=o;const l=r.otheruseridentity_verificationRequestContent(this.__wbg_ptr,i,s);var a=l[0],w=l[1];if(l[3])throw a=0,w=0,c(l[2]);return t=a,n=w,u(a,w)}finally{r.__wbindgen_free(t,n,1)}}get masterKey(){let e,t;try{const s=r.otheruseridentity_masterKey(this.__wbg_ptr);var n=s[0],i=s[1];if(s[3])throw n=0,i=0,c(s[2]);return e=n,t=i,u(n,i)}finally{r.__wbindgen_free(e,t,1)}}get selfSigningKey(){let e,t;try{const s=r.otheruseridentity_selfSigningKey(this.__wbg_ptr);var n=s[0],i=s[1];if(s[3])throw n=0,i=0,c(s[2]);return e=n,t=i,u(n,i)}finally{r.__wbindgen_free(e,t,1)}}pinCurrentMasterKey(){return r.otheruseridentity_pinCurrentMasterKey(this.__wbg_ptr)}identityNeedsUserApproval(){return r.otheruseridentity_identityNeedsUserApproval(this.__wbg_ptr)!==0}wasPreviouslyVerified(){return r.otheruseridentity_wasPreviouslyVerified(this.__wbg_ptr)!==0}withdrawVerification(){return r.otheruseridentity_withdrawVerification(this.__wbg_ptr)}hasVerificationViolation(){return r.otheruseridentity_hasVerificationViolation(this.__wbg_ptr)!==0}}const Zt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_outboundcreationresult_free(_>>>0,1));class Ke{static __wrap(e){e=e>>>0;const t=Object.create(Ke.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_outboundcreationresult_free(e,0)}get channel(){const e=r.__wbg_get_inboundcreationresult_channel(this.__wbg_ptr);return O.__wrap(e)}set channel(e){b(e,O);var t=e.__destroy_into_raw();r.__wbg_set_inboundcreationresult_channel(this.__wbg_ptr,t)}get initial_message(){let e,t;try{const n=r.__wbg_get_outboundcreationresult_initial_message(this.__wbg_ptr);return e=n[0],t=n[1],u(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}set initial_message(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_backupsecretsbundle_key(this.__wbg_ptr,t,n)}}const er=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_ownuseridentity_free(_>>>0,1));class Ie{static __wrap(e){e=e>>>0;const t=Object.create(Ie.prototype);return t.__wbg_ptr=e,er.register(t,t.__wbg_ptr,t),t}__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_ownuseridentity_free(e,0)}isVerified(){return r.ownuseridentity_isVerified(this.__wbg_ptr)!==0}verify(){return r.ownuseridentity_verify(this.__wbg_ptr)}requestVerification(e){var t=d(e)?0:k(e,r.__wbindgen_malloc),n=o;const i=r.ownuseridentity_requestVerification(this.__wbg_ptr,t,n);if(i[2])throw c(i[1]);return c(i[0])}trustsOurOwnDevice(){return r.ownuseridentity_trustsOurOwnDevice(this.__wbg_ptr)}get masterKey(){let e,t;try{const s=r.ownuseridentity_masterKey(this.__wbg_ptr);var n=s[0],i=s[1];if(s[3])throw n=0,i=0,c(s[2]);return e=n,t=i,u(n,i)}finally{r.__wbindgen_free(e,t,1)}}get selfSigningKey(){let e,t;try{const s=r.ownuseridentity_selfSigningKey(this.__wbg_ptr);var n=s[0],i=s[1];if(s[3])throw n=0,i=0,c(s[2]);return e=n,t=i,u(n,i)}finally{r.__wbindgen_free(e,t,1)}}get userSigningKey(){let e,t;try{const s=r.ownuseridentity_userSigningKey(this.__wbg_ptr);var n=s[0],i=s[1];if(s[3])throw n=0,i=0,c(s[2]);return e=n,t=i,u(n,i)}finally{r.__wbindgen_free(e,t,1)}}wasPreviouslyVerified(){return r.ownuseridentity_wasPreviouslyVerified(this.__wbg_ptr)!==0}withdrawVerification(){return r.ownuseridentity_withdrawVerification(this.__wbg_ptr)}hasVerificationViolation(){return r.ownuseridentity_hasVerificationViolation(this.__wbg_ptr)!==0}}const tr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_pickledinboundgroupsession_free(_>>>0,1));class Ce{static __unwrap(e){return e instanceof Ce?e.__destroy_into_raw():0}__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_pickledinboundgroupsession_free(e,0)}get pickle(){let e,t;try{const n=r.__wbg_get_pickledinboundgroupsession_pickle(this.__wbg_ptr);return e=n[0],t=n[1],u(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}set pickle(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_backupsecretsbundle_key(this.__wbg_ptr,t,n)}get senderKey(){let e,t;try{const n=r.__wbg_get_pickledinboundgroupsession_senderKey(this.__wbg_ptr);return e=n[0],t=n[1],u(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}set senderKey(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_backupsecretsbundle_backup_version(this.__wbg_ptr,t,n)}get senderSigningKey(){const e=r.__wbg_get_pickledinboundgroupsession_senderSigningKey(this.__wbg_ptr);let t;return e[0]!==0&&(t=u(e[0],e[1]).slice(),r.__wbindgen_free(e[0],e[1]*1,1)),t}set senderSigningKey(e){var t=d(e)?0:g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_basemigrationdata_backupRecoveryKey(this.__wbg_ptr,t,n)}get roomId(){const e=r.__wbg_get_pickledinboundgroupsession_roomId(this.__wbg_ptr);return e===0?void 0:h.__wrap(e)}set roomId(e){let t=0;d(e)||(b(e,h),t=e.__destroy_into_raw()),r.__wbg_set_pickledinboundgroupsession_roomId(this.__wbg_ptr,t)}get imported(){return r.__wbg_get_pickledinboundgroupsession_imported(this.__wbg_ptr)!==0}set imported(e){r.__wbg_set_pickledinboundgroupsession_imported(this.__wbg_ptr,e)}get backedUp(){return r.__wbg_get_pickledinboundgroupsession_backedUp(this.__wbg_ptr)!==0}set backedUp(e){r.__wbg_set_pickledinboundgroupsession_backedUp(this.__wbg_ptr,e)}constructor(){const e=r.pickledinboundgroupsession_new();return this.__wbg_ptr=e>>>0,tr.register(this,this.__wbg_ptr,this),this}}const rr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_pickledsession_free(_>>>0,1));class Oe{static __unwrap(e){return e instanceof Oe?e.__destroy_into_raw():0}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,rr.unregister(this),e}free(){const e=this.__destroy_into_raw();r.__wbg_pickledsession_free(e,0)}get pickle(){let e,t;try{const n=r.__wbg_get_pickledsession_pickle(this.__wbg_ptr);return e=n[0],t=n[1],u(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}set pickle(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_backupsecretsbundle_key(this.__wbg_ptr,t,n)}get senderKey(){let e,t;try{const n=r.__wbg_get_pickledsession_senderKey(this.__wbg_ptr);return e=n[0],t=n[1],u(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}set senderKey(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;r.__wbg_set_backupsecretsbundle_backup_version(this.__wbg_ptr,t,n)}get createdUsingFallbackKey(){return r.__wbg_get_pickledsession_createdUsingFallbackKey(this.__wbg_ptr)!==0}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,rr.register(this,this.__wbg_ptr,this),this}}const it=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_putdehydrateddevicerequest_free(_>>>0,1));class De{static __wrap(e){e=e>>>0;const t=Object.create(De.prototype);return t.__wbg_ptr=e,it.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,it.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,it.register(this,this.__wbg_ptr,this),this}}const _r=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_qr_free(_>>>0,1));class Ue{static __wrap(e){e=e>>>0;const t=Object.create(Ue.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_qr_free(e,0)}state(){return r.qr_state(this.__wbg_ptr)}hasBeenScanned(){return r.qr_hasBeenScanned(this.__wbg_ptr)!==0}hasBeenConfirmed(){return r.qr_hasBeenConfirmed(this.__wbg_ptr)!==0}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 m.__wrap(e)}weStarted(){return r.qr_weStarted(this.__wbg_ptr)!==0}cancelInfo(){const e=r.qr_cancelInfo(this.__wbg_ptr);return e===0?void 0:A.__wrap(e)}isDone(){return r.qr_isDone(this.__wbg_ptr)!==0}isCancelled(){return r.qr_isCancelled(this.__wbg_ptr)!==0}isSelfVerification(){return r.qr_isSelfVerification(this.__wbg_ptr)!==0}reciprocated(){return r.qr_reciprocated(this.__wbg_ptr)!==0}get flowId(){let e,t;try{const n=r.qr_flowId(this.__wbg_ptr);return e=n[0],t=n[1],u(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}get roomId(){const e=r.qr_roomId(this.__wbg_ptr);return e===0?void 0:h.__wrap(e)}toQrCode(){const e=r.qr_toQrCode(this.__wbg_ptr);if(e[2])throw c(e[1]);return Be.__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),n=o,i=r.qr_cancelWithCode(this.__wbg_ptr,t,n);if(i[2])throw c(i[1]);return c(i[0])}registerChangesCallback(e){r.qr_registerChangesCallback(this.__wbg_ptr,e)}}const nr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_qrcode_free(_>>>0,1));class Be{static __wrap(e){e=e>>>0;const t=Object.create(Be.prototype);return t.__wbg_ptr=e,nr.register(t,t.__wbg_ptr,t),t}__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_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 st=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_qrcodedata_free(_>>>0,1));class T{static __wrap(e){e=e>>>0;const t=Object.create(T.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_qrcodedata_free(e,0)}constructor(e,t,n){b(e,F);var i=e.__destroy_into_raw();const s=g(t,r.__wbindgen_malloc,r.__wbindgen_realloc),a=o;var w=d(n)?0:g(n,r.__wbindgen_malloc,r.__wbindgen_realloc),l=o;const v=r.qrcodedata_new(i,s,a,w,l);if(v[2])throw c(v[1]);return this.__wbg_ptr=v[0]>>>0,st.register(this,this.__wbg_ptr,this),this}static fromBytes(e){const t=se(e,r.__wbindgen_malloc),n=o,i=r.qrcodedata_fromBytes(t,n);if(i[2])throw c(i[1]);return T.__wrap(i[0])}toBytes(){const e=r.qrcodedata_toBytes(this.__wbg_ptr);var t=L(e[0],e[1]).slice();return r.__wbindgen_free(e[0],e[1]*1,1),t}static fromBase64(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o,i=r.qrcodedata_fromBase64(t,n);if(i[2])throw c(i[1]);return T.__wrap(i[0])}toBase64(){let e,t;try{const n=r.qrcodedata_toBase64(this.__wbg_ptr);return e=n[0],t=n[1],u(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}get publicKey(){const e=r.qrcodedata_publicKey(this.__wbg_ptr);return F.__wrap(e)}get rendezvousUrl(){let e,t;try{const n=r.qrcodedata_rendezvousUrl(this.__wbg_ptr);return e=n[0],t=n[1],u(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}get serverName(){const e=r.qrcodedata_serverName(this.__wbg_ptr);let t;return e[0]!==0&&(t=u(e[0],e[1]).slice(),r.__wbindgen_free(e[0],e[1]*1,1)),t}get mode(){return r.qrcodedata_mode(this.__wbg_ptr)}}const ir=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_qrcodescan_free(_>>>0,1));class W{static __wrap(e){e=e>>>0;const t=Object.create(W.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_qrcodescan_free(e,0)}static fromBytes(e){const t=r.qrcodescan_fromBytes(e);if(t[2])throw c(t[1]);return W.__wrap(t[0])}}const sr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_rehydrateddevice_free(_>>>0,1));class Ve{static __wrap(e){e=e>>>0;const t=Object.create(Ve.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_rehydrateddevice_free(e,0)}receiveEvents(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o;return r.rehydrateddevice_receiveEvents(this.__wbg_ptr,t,n)}}const ot=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_roomid_free(_>>>0,1));class h{static __wrap(e){e=e>>>0;const t=Object.create(h.prototype);return t.__wbg_ptr=e,ot.register(t,t.__wbg_ptr,t),t}static __unwrap(e){return e instanceof h?e.__destroy_into_raw():0}__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_roomid_free(e,0)}constructor(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o,i=r.roomid_new(t,n);if(i[2])throw c(i[1]);return this.__wbg_ptr=i[0]>>>0,ot.register(this,this.__wbg_ptr,this),this}toString(){let e,t;try{const n=r.roomid_toString(this.__wbg_ptr);return e=n[0],t=n[1],u(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}}const or=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_roomkeycounts_free(_>>>0,1));class xe{static __wrap(e){e=e>>>0;const t=Object.create(xe.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_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 cr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_roomkeyimportresult_free(_>>>0,1));class Ee{static __wrap(e){e=e>>>0;const t=Object.create(Ee.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_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 ar=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_roomkeyinfo_free(_>>>0,1));class Ae{static __wrap(e){e=e>>>0;const t=Object.create(Ae.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_roomkeyinfo_free(e,0)}get algorithm(){return r.roomkeyinfo_algorithm(this.__wbg_ptr)}get roomId(){const e=r.roomkeyinfo_roomId(this.__wbg_ptr);return h.__wrap(e)}get senderKey(){const e=r.roomkeyinfo_senderKey(this.__wbg_ptr);return F.__wrap(e)}get sessionId(){let e,t;try{const n=r.roomkeyinfo_sessionId(this.__wbg_ptr);return e=n[0],t=n[1],u(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}}const gr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_roomkeywithheldinfo_free(_>>>0,1));class Me{static __wrap(e){e=e>>>0;const t=Object.create(Me.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_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 n=r.roomkeywithheldinfo_withheldCode(this.__wbg_ptr);return e=n[0],t=n[1],u(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}get roomId(){const e=r.roomkeywithheldinfo_roomId(this.__wbg_ptr);return h.__wrap(e)}get sessionId(){let e,t;try{const n=r.roomkeywithheldinfo_sessionId(this.__wbg_ptr);return e=n[0],t=n[1],u(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}}const ct=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_roommessagerequest_free(_>>>0,1));class Te{static __wrap(e){e=e>>>0;const t=Object.create(Te.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_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,s){const a=r.roommessagerequest_new(e,t,n,i,s);return this.__wbg_ptr=a>>>0,ct.register(this,this.__wbg_ptr,this),this}get type(){return r.roommessagerequest_type(this.__wbg_ptr)}}const at=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_roomsettings_free(_>>>0,1));class H{static __wrap(e){e=e>>>0;const t=Object.create(H.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_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 r.__wbg_get_roomsettings_onlyAllowTrustedDevices(this.__wbg_ptr)!==0}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 e[0]===0?void 0:e[1]}set sessionRotationPeriodMs(e){r.__wbg_set_roomsettings_sessionRotationPeriodMs(this.__wbg_ptr,!d(e),d(e)?0:e)}get sessionRotationPeriodMessages(){const e=r.__wbg_get_roomsettings_sessionRotationPeriodMessages(this.__wbg_ptr);return e[0]===0?void 0:e[1]}set sessionRotationPeriodMessages(e){r.__wbg_set_roomsettings_sessionRotationPeriodMessages(this.__wbg_ptr,!d(e),d(e)?0:e)}constructor(){const e=r.roomsettings_new();return this.__wbg_ptr=e>>>0,at.register(this,this.__wbg_ptr,this),this}}const ur=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_sas_free(_>>>0,1));class Pe{static __wrap(e){e=e>>>0;const t=Object.create(Pe.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_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 m.__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 m.__wrap(e)}get flowId(){let e,t;try{const n=r.sas_flowId(this.__wbg_ptr);return e=n[0],t=n[1],u(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}get roomId(){const e=r.sas_roomId(this.__wbg_ptr);return e===0?void 0:h.__wrap(e)}supportsEmoji(){return r.sas_supportsEmoji(this.__wbg_ptr)!==0}startedFromRequest(){return r.sas_startedFromRequest(this.__wbg_ptr)!==0}isSelfVerification(){return r.sas_isSelfVerification(this.__wbg_ptr)!==0}haveWeConfirmed(){return r.sas_haveWeConfirmed(this.__wbg_ptr)!==0}hasBeenAccepted(){return r.sas_hasBeenAccepted(this.__wbg_ptr)!==0}cancelInfo(){const e=r.sas_cancelInfo(this.__wbg_ptr);return e===0?void 0:A.__wrap(e)}weStarted(){return r.sas_weStarted(this.__wbg_ptr)!==0}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),n=o,i=r.sas_cancelWithCode(this.__wbg_ptr,t,n);if(i[2])throw c(i[1]);return c(i[0])}timedOut(){return r.sas_timedOut(this.__wbg_ptr)!==0}canBePresented(){return r.sas_canBePresented(this.__wbg_ptr)!==0}isDone(){return r.sas_isDone(this.__wbg_ptr)!==0}isCancelled(){return r.sas_isCancelled(this.__wbg_ptr)!==0}emoji(){const e=r.sas_emoji(this.__wbg_ptr);let t;return e[0]!==0&&(t=P(e[0],e[1]).slice(),r.__wbindgen_free(e[0],e[1]*4,4)),t}emojiIndex(){const e=r.sas_emojiIndex(this.__wbg_ptr);let t;return e[0]!==0&&(t=L(e[0],e[1]).slice(),r.__wbindgen_free(e[0],e[1]*1,1)),t}decimals(){const e=r.sas_decimals(this.__wbg_ptr);let t;return e[0]!==0&&(t=Ur(e[0],e[1]).slice(),r.__wbindgen_free(e[0],e[1]*2,2)),t}registerChangesCallback(e){r.sas_registerChangesCallback(this.__wbg_ptr,e)}}const wr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_secretsbundle_free(_>>>0,1));class E{static __wrap(e){e=e>>>0;const t=Object.create(E.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_secretsbundle_free(e,0)}get masterKey(){let e,t;try{const n=r.secretsbundle_masterKey(this.__wbg_ptr);return e=n[0],t=n[1],u(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}get selfSigningKey(){let e,t;try{const n=r.secretsbundle_selfSigningKey(this.__wbg_ptr);return e=n[0],t=n[1],u(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}get userSigningKey(){let e,t;try{const n=r.secretsbundle_userSigningKey(this.__wbg_ptr);return e=n[0],t=n[1],u(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}get backupBundle(){const e=r.secretsbundle_backupBundle(this.__wbg_ptr);return e===0?void 0:ce.__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 E.__wrap(t[0])}}const gt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_servername_free(_>>>0,1));class X{static __wrap(e){e=e>>>0;const t=Object.create(X.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_servername_free(e,0)}constructor(e){const t=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),n=o,i=r.servername_new(t,n);if(i[2])throw c(i[1]);return this.__wbg_ptr=i[0]>>>0,gt.register(this,this.__wbg_ptr,this),this}get host(){let e,t;try{const n=r.servername_host(this.__wbg_ptr);return e=n[0],t=n[1],u(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}get port(){const e=r.servername_port(this.__wbg_ptr);return e===16777215?void 0:e}isIpLiteral(){return r.servername_isIpLiteral(this.__wbg_ptr)!==0}}const br=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_shieldstate_free(_>>>0,1));class Y{static __wrap(e){e=e>>>0;const t=Object.create(Y.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_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 e===6?void 0:e}set code(e){r.__wbg_set_shieldstate_code(this.__wbg_ptr,d(e)?6:e)}get message(){const e=r.shieldstate_message(this.__wbg_ptr);let t;return e[0]!==0&&(t=u(e[0],e[1]).slice(),r.__wbindgen_free(e[0],e[1]*1,1)),t}}const dr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_signature_free(_>>>0,1));class Ne{static __wrap(e){e=e>>>0;const t=Object.create(Ne.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_signature_free(e,0)}get ed25519(){const e=r.signature_ed25519(this.__wbg_ptr);return e===0?void 0:x.__wrap(e)}toBase64(){let e,t;try{const n=r.signature_toBase64(this.__wbg_ptr);return e=n[0],t=n[1],u(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}}const ut=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_signatureuploadrequest_free(_>>>0,1));class Z{static __wrap(e){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_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 n=r.signatureuploadrequest_new(e,t);return this.__wbg_ptr=n>>>0,ut.register(this,this.__wbg_ptr,this),this}get type(){return r.signatureuploadrequest_type(this.__wbg_ptr)}}const pr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_signatureverification_free(_>>>0,1));class We{static __wrap(e){e=e>>>0;const t=Object.create(We.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_signatureverification_free(e,0)}get deviceState(){return r.signatureverification_deviceState(this.__wbg_ptr)}get userState(){return r.signatureverification_userState(this.__wbg_ptr)}trusted(){return r.signatureverification_trusted(this.__wbg_ptr)!==0}}const wt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_signatures_free(_>>>0,1));class ee{static __wrap(e){e=e>>>0;const t=Object.create(ee.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_signatures_free(e,0)}constructor(){const e=r.signatures_new();return this.__wbg_ptr=e>>>0,wt.register(this,this.__wbg_ptr,this),this}addSignature(e,t,n){b(e,f),b(t,V),b(n,x);const i=r.signatures_addSignature(this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr,n.__wbg_ptr);return i===0?void 0:$.__wrap(i)}getSignature(e,t){b(e,f),b(t,V);const n=r.signatures_getSignature(this.__wbg_ptr,e.__wbg_ptr,t.__wbg_ptr);return n===0?void 0:x.__wrap(n)}get(e){return b(e,f),r.signatures_get(this.__wbg_ptr,e.__wbg_ptr)}clear(){r.signatures_clear(this.__wbg_ptr)}isEmpty(){return r.signatures_isEmpty(this.__wbg_ptr)!==0}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 lr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_storehandle_free(_>>>0,1));class I{static __wrap(e){e=e>>>0;const t=Object.create(I.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_storehandle_free(e,0)}static open(e,t){var n=d(e)?0:g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),i=o,s=d(t)?0:g(t,r.__wbindgen_malloc,r.__wbindgen_realloc),a=o;return r.storehandle_open(n,i,s,a)}static openWithKey(e,t){const n=g(e,r.__wbindgen_malloc,r.__wbindgen_realloc),i=o,s=se(t,r.__wbindgen_malloc),a=o;return r.storehandle_openWithKey(n,i,s,a)}}const bt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_todevicerequest_free(_>>>0,1));class Le{static __wrap(e){e=e>>>0;const t=Object.create(Le.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_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,i){const s=r.todevicerequest_new(e,t,n,i);return this.__wbg_ptr=s>>>0,bt.register(this,this.__wbg_ptr,this),this}get type(){return r.todevicerequest_type(this.__wbg_ptr)}}const fr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_tracing_free(_>>>0,1));class u_{__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_tracing_free(e,0)}static isAvailable(){return r.tracing_isAvailable()!==0}constructor(e){const t=r.tracing_new(e);if(t[2])throw c(t[1]);return this.__wbg_ptr=t[0]>>>0,fr.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 dt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_uploadsigningkeysrequest_free(_>>>0,1));class Qe{static __wrap(e){e=e>>>0;const t=Object.create(Qe.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_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,dt.register(this,this.__wbg_ptr,this),this}}const hr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_userdevices_free(_>>>0,1));class Ge{static __wrap(e){e=e>>>0;const t=Object.create(Ge.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_userdevices_free(e,0)}get(e){b(e,m);const t=r.userdevices_get(this.__wbg_ptr,e.__wbg_ptr);return t===0?void 0:Q.__wrap(t)}isAnyVerified(){return r.userdevices_isAnyVerified(this.__wbg_ptr)!==0}keys(){return r.userdevices_keys(this.__wbg_ptr)}devices(){return r.userdevices_devices(this.__wbg_ptr)}}const pt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_userid_free(_>>>0,1));class f{static __wrap(e){e=e>>>0;const t=Object.create(f.prototype);return t.__wbg_ptr=e,pt.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,pt.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),n=o,i=r.userid_new(t,n);if(i[2])throw c(i[1]);return this.__wbg_ptr=i[0]>>>0,pt.register(this,this.__wbg_ptr,this),this}get localpart(){let e,t;try{const n=r.userid_localpart(this.__wbg_ptr);return e=n[0],t=n[1],u(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}get serverName(){const e=r.userid_serverName(this.__wbg_ptr);return X.__wrap(e)}isHistorical(){return r.userid_isHistorical(this.__wbg_ptr)!==0}toString(){let e,t;try{const n=r.userid_toString(this.__wbg_ptr);return e=n[0],t=n[1],u(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}clone(){const e=r.userid_clone(this.__wbg_ptr);return f.__wrap(e)}}const yr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_verificationrequest_free(_>>>0,1));class M{static __wrap(e){e=e>>>0;const t=Object.create(M.prototype);return t.__wbg_ptr=e,yr.register(t,t.__wbg_ptr,t),t}__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_verificationrequest_free(e,0)}static request(e,t,n,i){let s,a;try{b(e,f),b(t,m),b(n,f);var w=d(i)?0:k(i,r.__wbindgen_malloc),l=o;const z=r.verificationrequest_request(e.__wbg_ptr,t.__wbg_ptr,n.__wbg_ptr,w,l);var v=z[0],q=z[1];if(z[3])throw v=0,q=0,c(z[2]);return s=v,a=q,u(v,q)}finally{r.__wbindgen_free(s,a,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 e===0?void 0:m.__wrap(e)}get roomId(){const e=r.verificationrequest_roomId(this.__wbg_ptr);return e===0?void 0:h.__wrap(e)}get cancelInfo(){const e=r.verificationrequest_cancelInfo(this.__wbg_ptr);return e===0?void 0:A.__wrap(e)}isPassive(){return r.verificationrequest_isPassive(this.__wbg_ptr)!==0}isReady(){return r.verificationrequest_isReady(this.__wbg_ptr)!==0}timedOut(){return r.verificationrequest_timedOut(this.__wbg_ptr)!==0}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 e[0]!==0&&(t=P(e[0],e[1]).slice(),r.__wbindgen_free(e[0],e[1]*4,4)),t}get ourSupportedMethods(){const e=r.verificationrequest_ourSupportedMethods(this.__wbg_ptr);if(e[3])throw c(e[2]);let t;return e[0]!==0&&(t=P(e[0],e[1]).slice(),r.__wbindgen_free(e[0],e[1]*4,4)),t}get flowId(){let e,t;try{const n=r.verificationrequest_flowId(this.__wbg_ptr);return e=n[0],t=n[1],u(n[0],n[1])}finally{r.__wbindgen_free(e,t,1)}}isSelfVerification(){return r.verificationrequest_isSelfVerification(this.__wbg_ptr)!==0}weStarted(){return r.verificationrequest_weStarted(this.__wbg_ptr)!==0}isDone(){return r.verificationrequest_isDone(this.__wbg_ptr)!==0}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 r.verificationrequest_isCancelled(this.__wbg_ptr)!==0}acceptWithMethods(e){const t=k(e,r.__wbindgen_malloc),n=o,i=r.verificationrequest_acceptWithMethods(this.__wbg_ptr,t,n);if(i[2])throw c(i[1]);return c(i[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,W),r.verificationrequest_scanQrCode(this.__wbg_ptr,e.__wbg_ptr)}}const mr=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>r.__wbg_versions_free(_>>>0,1));class Je{static __wrap(e){e=e>>>0;const t=Object.create(Je.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_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 w_(_,e){const t=String(e),n=g(t,r.__wbindgen_malloc,r.__wbindgen_realloc),i=o;y().setInt32(_+4*1,i,!0),y().setInt32(_+4*0,n,!0)}function b_(_,e){const t=String(e),n=g(t,r.__wbindgen_malloc,r.__wbindgen_realloc),i=o;y().setInt32(_+4*1,i,!0),y().setInt32(_+4*0,n,!0)}function d_(_){return _.Window}function p_(_){return _.WorkerGlobalScope}function l_(_,e){return _.add(e)}function f_(){return p(function(_,e,t){return _.add(e,t)},arguments)}function h_(_,e){return _.at(e)}function y_(_){return oe.__wrap(_)}function m_(){return p(function(_,e){return IDBKeyRange.bound(_,e)},arguments)}function v_(){return p(function(_,e,t,n){return IDBKeyRange.bound(_,e,t!==0,n!==0)},arguments)}function k_(_){return _.buffer}function R_(){return p(function(_,e){return _.call(e)},arguments)}function F_(){return p(function(_,e,t){return _.call(e,t)},arguments)}function z_(){return p(function(_,e,t,n){return _.call(e,t,n)},arguments)}function S_(){return p(function(_,e,t,n,i){return _.call(e,t,n,i)},arguments)}function q_(_){return clearTimeout(_)}function j_(){return p(function(_){return _.clear()},arguments)}function K_(_){_.close()}function I_(_){return _.code}function C_(){return p(function(_){_.continue()},arguments)}function O_(){return p(function(_){return _.count()},arguments)}function D_(){return p(function(_){return _.count()},arguments)}function U_(){return p(function(_,e,t,n,i){return _.createIndex(u(e,t),n,i)},arguments)}function B_(){return p(function(_,e,t,n){return _.createIndex(u(e,t),n)},arguments)}function V_(){return p(function(_,e,t){return _.createObjectStore(u(e,t))},arguments)}function x_(_){return ge.__wrap(_)}function E_(_){return ue.__wrap(_)}function A_(_){return we.__wrap(_)}function M_(_){return _.crypto}function T_(_){console.debug(_)}function P_(_,e){_.debug(e)}function N_(_){return be.__wrap(_)}function W_(_){return de.__wrap(_)}function L_(_){return j.__wrap(_)}function Q_(){return p(function(_,e,t){_.deleteObjectStore(u(e,t))},arguments)}function G_(){return p(function(_,e){return _.delete(e)},arguments)}function J_(){return p(function(_){return _.delete()},arguments)}function $_(_){return Q.__wrap(_)}function H_(_){return m.__wrap(_)}function X_(_){return G.__wrap(_)}function Y_(_){return V.__wrap(_)}function Z_(_){return _.done}function en(_){return fe.__wrap(_)}function tn(_){return he.__wrap(_)}function rn(_){return Object.entries(_)}function _n(_){return _.entries()}function nn(_){console.error(_)}function sn(_,e){let t,n;try{t=_,n=e,console.error(u(_,e))}finally{r.__wbindgen_free(t,n,1)}}function on(_,e){_.error(e)}function cn(){return p(function(_){const e=_.error;return d(e)?0:R(e)},arguments)}function an(_){return Array.from(_)}function gn(){return p(function(_){return _.getAllKeys()},arguments)}function un(){return p(function(_){return _.getAll()},arguments)}function wn(){return p(function(_,e,t){return _.getAll(e,t>>>0)},arguments)}function bn(){return p(function(_,e){return _.getAll(e)},arguments)}function dn(){return p(function(_,e){_.getRandomValues(e)},arguments)}function pn(_){return _.getTime()}function ln(){return p(function(_,e){return Reflect.get(_,e)},arguments)}function fn(){return p(function(_,e){return _.get(e)},arguments)}function hn(){return p(function(_,e){return _.get(e)},arguments)}function yn(_,e){return _[e>>>0]}function mn(_,e){return _[e]}function vn(_,e){return _[e]}function kn(_){return _.global}function Rn(_){return ve.__wrap(_)}function Fn(){return p(function(_,e,t){return _.index(u(e,t))},arguments)}function zn(){return p(function(_){const e=_.indexedDB;return d(e)?0:R(e)},arguments)}function Sn(){return p(function(_){const e=_.indexedDB;return d(e)?0:R(e)},arguments)}function qn(){return p(function(_){const e=_.indexedDB;return d(e)?0:R(e)},arguments)}function jn(_,e){_.info(e)}function Kn(_){console.info(_)}function In(_){let e;try{e=_ instanceof ArrayBuffer}catch{e=!1}return e}function Cn(_){let e;try{e=_ instanceof Map}catch{e=!1}return e}function On(_){let e;try{e=_ instanceof Promise}catch{e=!1}return e}function Dn(_){let e;try{e=_ instanceof Uint8Array}catch{e=!1}return e}function Un(_){return Array.isArray(_)}function Bn(_){return Number.isSafeInteger(_)}function Vn(_,e,t){const n=e.item(t>>>0);var i=d(n)?0:g(n,r.__wbindgen_malloc,r.__wbindgen_realloc),s=o;y().setInt32(_+4*1,s,!0),y().setInt32(_+4*0,i,!0)}function xn(){return Symbol.iterator}function En(){return p(function(_){return _.key},arguments)}function An(_){return ke.__wrap(_)}function Mn(_){return Re.__wrap(_)}function Tn(_){return J.__wrap(_)}function Pn(_){return Fe.__wrap(_)}function Nn(_){return _.length}function Wn(_){return _.length}function Ln(_){return _.length}function Qn(){return p(function(_,e){return IDBKeyRange.lowerBound(_,e!==0)},arguments)}function Gn(_){return $.__wrap(_)}function Jn(_){return ze.__wrap(_)}function $n(_,e){const t=e.message,n=g(t,r.__wbindgen_malloc,r.__wbindgen_realloc),i=o;y().setInt32(_+4*1,i,!0),y().setInt32(_+4*0,n,!0)}function Hn(_){return _.msCrypto}function Xn(_,e){const t=e.name,n=g(t,r.__wbindgen_malloc,r.__wbindgen_realloc),i=o;y().setInt32(_+4*1,i,!0),y().setInt32(_+4*0,n,!0)}function Yn(_,e){try{var t={a:_,b:e},n=(s,a)=>{const w=t.a;t.a=0;try{return Pr(w,t.b,s,a)}finally{t.a=w}};return new Promise(n)}finally{t.a=t.b=0}}function Zn(_){return new Date(_)}function ei(){return new Object}function ti(){return new Map}function ri(){return new Array}function _i(_){return new Uint8ClampedArray(_)}function ni(){return new Error}function ii(_){return new Uint8Array(_)}function si(_){return new Set(_)}function oi(_,e){return new Function(u(_,e))}function ci(_,e,t){return new Uint8ClampedArray(_,e>>>0,t>>>0)}function ai(_,e,t){return new Uint8Array(_,e>>>0,t>>>0)}function gi(_){return new Uint8Array(_>>>0)}function ui(_){return new Uint8ClampedArray(_>>>0)}function wi(){return p(function(_,e){return new DOMException(u(_,e))},arguments)}function bi(_){return _.next}function di(){return p(function(_){return _.next()},arguments)}function pi(_){return _.node}function li(_){return _.now()}function fi(){return Date.now()}function hi(_){return _.objectStoreNames}function yi(){return p(function(_,e,t){return _.objectStore(u(e,t))},arguments)}function mi(_){return _.oldVersion}function vi(_){return qe.__wrap(_)}function ki(){return p(function(_){return _.openCursor()},arguments)}function Ri(){return p(function(_){return _.openCursor()},arguments)}function Fi(){return p(function(_,e){return _.openCursor(e)},arguments)}function zi(){return p(function(_,e,t){return _.open(u(e,t))},arguments)}function Si(){return p(function(_,e,t,n){return _.open(u(e,t),n>>>0)},arguments)}function qi(_){return je.__wrap(_)}function ji(_){return Ie.__wrap(_)}function Ki(){return p(function(_,e){return JSON.parse(u(_,e))},arguments)}function Ii(_){return _.performance}function Ci(_){return Ce.__unwrap(_)}function Oi(_){return Oe.__unwrap(_)}function Di(_){return _.process}function Ui(_,e){return _.push(e)}function Bi(){return p(function(_,e,t){return _.put(e,t)},arguments)}function Vi(_){return De.__wrap(_)}function xi(_){return Ue.__wrap(_)}function Ei(_){queueMicrotask(_)}function Ai(_){return _.queueMicrotask}function Mi(){return p(function(_,e){_.randomFillSync(e)},arguments)}function Ti(_){const e=_.readyState;return(i_.indexOf(e)+1||3)-1}function Pi(_){return Ve.__wrap(_)}function Ni(){return p(function(){return module.require},arguments)}function Wi(_){return Promise.resolve(_)}function Li(){return p(function(_){return _.result},arguments)}function Qi(_){return h.__unwrap(_)}function Gi(_){return xe.__wrap(_)}function Ji(_){return Ee.__wrap(_)}function $i(_){return Ae.__wrap(_)}function Hi(_){return Me.__wrap(_)}function Xi(_){return Te.__wrap(_)}function Yi(_){return H.__wrap(_)}function Zi(_){return Pe.__wrap(_)}function es(_){return E.__wrap(_)}function ts(){return p(function(_,e){return setTimeout(_,e)},arguments)}function rs(_,e,t){_[e>>>0]=t}function _s(_,e,t){_[e]=t}function ns(_,e,t){_[e]=t}function is(_,e,t){_.set(e,t>>>0)}function ss(_,e,t){_.set(e,t>>>0)}function os(_,e,t){return _.set(e,t)}function cs(_,e){_.onabort=e}function as(_,e){_.onblocked=e}function gs(_,e){_.oncomplete=e}function us(_,e){_.onerror=e}function ws(_,e){_.onerror=e}function bs(_,e){_.onsuccess=e}function ds(_,e){_.onupgradeneeded=e}function ps(_,e){_.onversionchange=e}function ls(_,e){_.unique=e!==0}function fs(_){return ee.__wrap(_)}function hs(_){return Z.__wrap(_)}function ys(_){return We.__wrap(_)}function ms(_,e){const t=e.stack,n=g(t,r.__wbindgen_malloc,r.__wbindgen_realloc),i=o;y().setInt32(_+4*1,i,!0),y().setInt32(_+4*0,n,!0)}function vs(){const _=typeof global>"u"?null:global;return d(_)?0:R(_)}function ks(){const _=typeof globalThis>"u"?null:globalThis;return d(_)?0:R(_)}function Rs(){const _=typeof self>"u"?null:self;return d(_)?0:R(_)}function Fs(){const _=typeof window>"u"?null:window;return d(_)?0:R(_)}function zs(_){return I.__wrap(_)}function Ss(){return p(function(_){return JSON.stringify(_)},arguments)}function qs(_,e,t){return _.subarray(e>>>0,t>>>0)}function js(_){const e=_.target;return d(e)?0:R(e)}function Ks(_,e){return _.then(e)}function Is(_,e,t){return _.then(e,t)}function Cs(_){return Le.__wrap(_)}function Os(){return p(function(_,e,t,n){return _.transaction(u(e,t),Rr[n])},arguments)}function Ds(){return p(function(_,e,t){return _.transaction(e,Rr[t])},arguments)}function Us(_){const e=_.transaction;return d(e)?0:R(e)}function Bs(){return p(function(_,e){return _.update(e)},arguments)}function Vs(_){return Ge.__wrap(_)}function xs(_){return f.__wrap(_)}function Es(_){return f.__unwrap(_)}function As(){return p(function(_){return _.value},arguments)}function Ms(_){return _.value}function Ts(_){return _.values()}function Ps(_){return M.__wrap(_)}function Ns(_){return _.version}function Ws(_){return _.versions}function Ls(_){console.warn(_)}function Qs(_,e){_.warn(e)}function Gs(_){return+_}function Js(_){return _}function $s(_){return BigInt.asUintN(64,_)}function Hs(_,e){const t=e,n=typeof t=="bigint"?t:void 0;y().setBigInt64(_+8*1,d(n)?BigInt(0):n,!0),y().setInt32(_+4*0,!d(n),!0)}function Xs(_){const e=_;return typeof e=="boolean"?e?1:0:2}function Ys(_){const e=_.original;return e.cnt--==1?(e.a=0,!0):!1}function Zs(_,e,t){return yt(_,e,30,xr)}function eo(_,e,t){return yt(_,e,409,Er)}function to(_,e,t){return yt(_,e,409,Ar)}function ro(_,e,t){return kr(_,e,415,Mr)}function _o(_,e,t){return kr(_,e,415,Tr)}function no(_,e){const t=ft(e),n=g(t,r.__wbindgen_malloc,r.__wbindgen_realloc),i=o;y().setInt32(_+4*1,i,!0),y().setInt32(_+4*0,n,!0)}function io(_,e){return new Error(u(_,e))}function so(_,e){return _ in e}function oo(){const _=r.__wbindgen_export_4,e=_.grow(4);_.set(0,void 0),_.set(e+0,void 0),_.set(e+1,null),_.set(e+2,!0),_.set(e+3,!1)}function co(_){return Array.isArray(_)}function ao(_){return typeof _=="bigint"}function go(_){return typeof _=="function"}function uo(_){return _===null}function wo(_){const e=_;return typeof e=="object"&&e!==null}function bo(_){return typeof _=="string"}function po(_){return _===void 0}function lo(_,e){return _===e}function fo(_,e){return _==e}function ho(){return r.memory}function yo(_,e){const t=e,n=typeof t=="number"?t:void 0;y().setFloat64(_+8*1,d(n)?0:n,!0),y().setInt32(_+4*0,!d(n),!0)}function mo(_){return _}function vo(_,e){const t=e,n=typeof t=="string"?t:void 0;var i=d(n)?0:g(n,r.__wbindgen_malloc,r.__wbindgen_realloc),s=o;y().setInt32(_+4*1,s,!0),y().setInt32(_+4*0,i,!0)}function ko(_,e){return u(_,e)}function Ro(_,e){throw new Error(u(_,e))}function Fo(_){let e;try{e=+_}catch(n){e=n}return e}const zo=Object.freeze(Object.defineProperty({__proto__:null,Attachment:o_,BackupDecryptionKey:K,BackupKeys:oe,BackupSecretsBundle:ce,BaseMigrationData:Fr,CancelInfo:A,CheckCode:ae,CollectStrategy:S,CrossSigningBootstrapRequests:ge,CrossSigningKeyExport:ue,CrossSigningStatus:we,Curve25519PublicKey:F,DecryptedRoomEvent:be,DecryptionErrorCode:Nr,DecryptionSettings:zr,DehydratedDevice:de,DehydratedDeviceKey:j,DehydratedDevices:pe,Device:Q,DeviceId:m,DeviceKey:G,DeviceKeyAlgorithm:le,DeviceKeyAlgorithmName:Wr,DeviceKeyId:V,DeviceKeyName:Lr,DeviceLists:Sr,Ecies:c_,Ed25519PublicKey:C,Ed25519Signature:x,Emoji:fe,EncryptedAttachment:N,EncryptionAlgorithm:Qr,EncryptionInfo:he,EncryptionSettings:qr,EstablishedEcies:O,EventId:jr,HistoryVisibility:Gr,IdentityKeys:ye,InboundCreationResult:me,InboundGroupSession:ve,KeysBackupRequest:ke,KeysClaimRequest:Re,KeysQueryRequest:J,KeysUploadRequest:Fe,LocalTrust:Jr,LoggerLevel:$r,MaybeSignature:$,MegolmDecryptionError:ze,MegolmV1BackupKey:Se,Migration:g_,OlmMachine:qe,OtherUserIdentity:je,OutboundCreationResult:Ke,OwnUserIdentity:Ie,PickledInboundGroupSession:Ce,PickledSession:Oe,PutDehydratedDeviceRequest:De,Qr:Ue,QrCode:Be,QrCodeData:T,QrCodeMode:Hr,QrCodeScan:W,QrState:Xr,RehydratedDevice:Ve,RequestType:Yr,RoomId:h,RoomKeyCounts:xe,RoomKeyImportResult:Ee,RoomKeyInfo:Ae,RoomKeyWithheldInfo:Me,RoomMessageRequest:Te,RoomSettings:H,Sas:Pe,SecretsBundle:E,ServerName:X,ShieldColor:Zr,ShieldState:Y,ShieldStateCode:e_,Signature:Ne,SignatureState:t_,SignatureUploadRequest:Z,SignatureVerification:We,Signatures:ee,StoreHandle:I,ToDeviceRequest:Le,Tracing:u_,TrustRequirement:r_,UploadSigningKeysRequest:Qe,UserDevices:Ge,UserId:f,VerificationMethod:__,VerificationRequest:M,VerificationRequestPhase:n_,Versions:Je,__wbg_String_8f0eb39a4a4c2f66:w_,__wbg_String_eecc4a11987127d6:b_,__wbg_Window_b0044ac7db258535:d_,__wbg_WorkerGlobalScope_b74cefefc62a37da:p_,__wbg_add_883d9432f9188ef2:l_,__wbg_add_9338901b80183e0f:f_,__wbg_at_7d852dd9f194d43e:h_,__wbg_backupkeys_new:y_,__wbg_bound_55a8d08e0491e17a:m_,__wbg_bound_f2afc3766d4545cf:v_,__wbg_buffer_609cc3eee51ed158:k_,__wbg_call_672a4d21634d4a24:R_,__wbg_call_7cccdd69e0791ae2:F_,__wbg_call_833bed5770ea2041:z_,__wbg_call_b8adc8b1d0a0d8eb:S_,__wbg_clearTimeout_5a54f8841c30079a:q_,__wbg_clear_f450db7eeb71163f:j_,__wbg_close_26fc2e6856d8567a:K_,__wbg_code_cfd8f6868bdaed9b:I_,__wbg_continue_c46c11d3dbe1b030:C_,__wbg_count_613cb921d67a4f26:O_,__wbg_count_ea1a2987dff7759e:D_,__wbg_createIndex_873ac48adc772309:U_,__wbg_createIndex_fcfd513cf4581834:B_,__wbg_createObjectStore_e566459f7161f82f:V_,__wbg_crosssigningbootstraprequests_new:x_,__wbg_crosssigningkeyexport_new:E_,__wbg_crosssigningstatus_new:A_,__wbg_crypto_ed58b8e10a292839:M_,__wbg_debug_3cb59063b29f58c1:T_,__wbg_debug_8edd10d3d6b2631b:P_,__wbg_decryptedroomevent_new:N_,__wbg_dehydrateddevice_new:W_,__wbg_dehydrateddevicekey_new:L_,__wbg_deleteObjectStore_3f08ae00cd288224:Q_,__wbg_delete_200677093b4cf756:G_,__wbg_delete_2ecf7cf20900b3a2:J_,__wbg_device_new:$_,__wbg_deviceid_new:H_,__wbg_devicekey_new:X_,__wbg_devicekeyid_new:Y_,__wbg_done_769e5ede4b31c67b:Z_,__wbg_emoji_new:en,__wbg_encryptioninfo_new:tn,__wbg_entries_3265d4158b33e5dc:rn,__wbg_entries_c8a90a7ed73e84ce:_n,__wbg_error_524f506f44df1645:nn,__wbg_error_7534b8e9a36f1ab4:sn,__wbg_error_c5c48c1ca56731d8:on,__wbg_error_ff4ddaabdfc5dbb3:cn,__wbg_from_2a5d3e218e67aa85:an,__wbg_getAllKeys_b11d8835dc4be0e8:gn,__wbg_getAll_304e868beec2021f:un,__wbg_getAll_d1e60c13c0073374:wn,__wbg_getAll_e6903c610babcd42:bn,__wbg_getRandomValues_bcb4912f16000dc4:dn,__wbg_getTime_46267b1c24877e30:pn,__wbg_get_67b2ba62fc30de12:ln,__wbg_get_8da03f81f6a1111e:fn,__wbg_get_93e54e8e166fbcab:hn,__wbg_get_b9b93047fe3cf45b:yn,__wbg_getwithrefkey_1dc361bd10053bfe:mn,__wbg_getwithrefkey_6550b2c093d2eb18:vn,__wbg_global_b6f5c73312f62313:kn,__wbg_inboundgroupsession_new:Rn,__wbg_index_e00ca5fff206ee3e:Fn,__wbg_indexedDB_601ec26c63e333de:zn,__wbg_indexedDB_b1f49280282046f8:Sn,__wbg_indexedDB_f6b47b0dc333fd2f:qn,__wbg_info_1643c3c2890128ab:jn,__wbg_info_3daf2e093e091b66:Kn,__wbg_instanceof_ArrayBuffer_e14585432e3737fc:In,__wbg_instanceof_Map_f3469ce2244d2430:Cn,__wbg_instanceof_Promise_935168b8f4b49db3:On,__wbg_instanceof_Uint8Array_17156bcf118086a9:Dn,__wbg_isArray_a1eab7e0d067391b:Un,__wbg_isSafeInteger_343e2beeeece1bb0:Bn,__wbg_item_c3c26b4103ad5aaf:Vn,__wbg_iterator_9a24c88df860dc65:xn,__wbg_key_29fefecef430db96:En,__wbg_keysbackuprequest_new:An,__wbg_keysclaimrequest_new:Mn,__wbg_keysqueryrequest_new:Tn,__wbg_keysuploadrequest_new:Pn,__wbg_length_238152a0aedbb6e7:Nn,__wbg_length_a446193dc22c12f8:Wn,__wbg_length_e2d2a49132c1b256:Ln,__wbg_lowerBound_1872d19f5bcf83c6:Qn,__wbg_maybesignature_new:Gn,__wbg_megolmdecryptionerror_new:Jn,__wbg_message_5c5d919204d42400:$n,__wbg_msCrypto_0a36e2ec3a343d26:Hn,__wbg_name_f2d27098bfd843e7:Xn,__wbg_new_23a2665fac83c611:Yn,__wbg_new_31a97dac4f10fab7:Zn,__wbg_new_405e22f390576ce2:ei,__wbg_new_5e0be73521bc8c17:ti,__wbg_new_78feb108b6472713:ri,__wbg_new_7a91e41fe43b3c92:_i,__wbg_new_8a6f238a6ece86ea:ni,__wbg_new_a12002a7f91c75be:ii,__wbg_new_a239edaa1dc2968f:si,__wbg_newnoargs_105ed471475aaf50:oi,__wbg_newwithbyteoffsetandlength_6d34787141015158:ci,__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a:ai,__wbg_newwithlength_a381634e90c276d4:gi,__wbg_newwithlength_ee8e1b95dea9d37c:ui,__wbg_newwithmessage_baedba94f03976fd:wi,__wbg_next_25feadfc0913fea9:bi,__wbg_next_6574e1a8a62d1055:di,__wbg_node_02999533c4ea02e3:pi,__wbg_now_2c95c9de01293173:li,__wbg_now_807e54c39636c349:fi,__wbg_objectStoreNames_9bb1ab04a7012aaf:hi,__wbg_objectStore_21878d46d25b64b6:yi,__wbg_oldVersion_e8337811e52861c6:mi,__wbg_olmmachine_new:vi,__wbg_openCursor_1adef2266972fb45:ki,__wbg_openCursor_238e247d18bde2cd:Ri,__wbg_openCursor_f4b061aa6d804b93:Fi,__wbg_open_88b1390d99a7c691:zi,__wbg_open_e0c0b2993eb596e1:Si,__wbg_otheruseridentity_new:qi,__wbg_ownuseridentity_new:ji,__wbg_parse_def2e24ef1252aff:Ki,__wbg_performance_7a3ffd0b17f663ad:Ii,__wbg_pickledinboundgroupsession_unwrap:Ci,__wbg_pickledsession_unwrap:Oi,__wbg_process_5c1d670bc53614b8:Di,__wbg_push_737cfc8c1432c2c6:Ui,__wbg_put_066faa31a6a88f5b:Bi,__wbg_putdehydrateddevicerequest_new:Vi,__wbg_qr_new:xi,__wbg_queueMicrotask_97d92b4fcc8a61c5:Ei,__wbg_queueMicrotask_d3219def82552485:Ai,__wbg_randomFillSync_ab2cfe79ebbf2740:Mi,__wbg_readyState_4013cfdf4f22afb0:Ti,__wbg_rehydrateddevice_new:Pi,__wbg_require_79b1e9274cde3c87:Ni,__wbg_resolve_4851785c9c5f573d:Wi,__wbg_result_f29afabdf2c05826:Li,__wbg_roomid_unwrap:Qi,__wbg_roomkeycounts_new:Gi,__wbg_roomkeyimportresult_new:Ji,__wbg_roomkeyinfo_new:$i,__wbg_roomkeywithheldinfo_new:Hi,__wbg_roommessagerequest_new:Xi,__wbg_roomsettings_new:Yi,__wbg_sas_new:Zi,__wbg_secretsbundle_new:es,__wbg_setTimeout_db2dbaeefb6f39c7:ts,__wbg_set_37837023f3d740e8:rs,__wbg_set_3807d5f0bfc24aa7:_s,__wbg_set_3f1d0b984ed272ed:ns,__wbg_set_65595bdd868b3009:is,__wbg_set_6775f73144c2ef27:ss,__wbg_set_8fc6bf8a5b1071d1:os,__wbg_set_wasm:ht,__wbg_setonabort_3bf4db6614fa98e9:cs,__wbg_setonblocked_aebf64bd39f1eca8:as,__wbg_setoncomplete_4d19df0dadb7c4d4:gs,__wbg_setonerror_b0d9d723b8fddbbb:us,__wbg_setonerror_d7e3056cc6e56085:ws,__wbg_setonsuccess_afa464ee777a396d:bs,__wbg_setonupgradeneeded_fcf7ce4f2eb0cb5f:ds,__wbg_setonversionchange_6ee07fa49ee1e3a5:ps,__wbg_setunique_dd24c422aa05df89:ls,__wbg_signatures_new:fs,__wbg_signatureuploadrequest_new:hs,__wbg_signatureverification_new:ys,__wbg_stack_0ed75d68575b0f3c:ms,__wbg_static_accessor_GLOBAL_88a902d13a557d07:vs,__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0:ks,__wbg_static_accessor_SELF_37c5d418e4bf5819:Rs,__wbg_static_accessor_WINDOW_5de37043a91a9c40:Fs,__wbg_storehandle_new:zs,__wbg_stringify_f7ed6987935b4a24:Ss,__wbg_subarray_aa9065fa9dc5df96:qs,__wbg_target_0a62d9d79a2a1ede:js,__wbg_then_44b73946d2fb3e7d:Ks,__wbg_then_48b406749878a531:Is,__wbg_todevicerequest_new:Cs,__wbg_transaction_babc423936946a37:Os,__wbg_transaction_d6d07c3c9963c49e:Ds,__wbg_transaction_e713aa7b07ccaedd:Us,__wbg_update_acd72607f506872a:Bs,__wbg_userdevices_new:Vs,__wbg_userid_new:xs,__wbg_userid_unwrap:Es,__wbg_value_68c4e9a54bb7fd5e:As,__wbg_value_cd1ffa7b1ab794f1:Ms,__wbg_values_53465c57fc8cd691:Ts,__wbg_verificationrequest_new:Ps,__wbg_version_a70a33e5bbc6d6db:Ns,__wbg_versions_c71aa1626a93e0a1:Ws,__wbg_warn_4ca3906c248c47c4:Ls,__wbg_warn_f4783a0419527b21:Qs,__wbindgen_as_number:Gs,__wbindgen_bigint_from_i64:Js,__wbindgen_bigint_from_u64:$s,__wbindgen_bigint_get_as_i64:Hs,__wbindgen_boolean_get:Xs,__wbindgen_cb_drop:Ys,__wbindgen_closure_wrapper1048:Zs,__wbindgen_closure_wrapper2227:eo,__wbindgen_closure_wrapper5458:to,__wbindgen_closure_wrapper6924:ro,__wbindgen_closure_wrapper6929:_o,__wbindgen_debug_string:no,__wbindgen_error_new:io,__wbindgen_in:so,__wbindgen_init_externref_table:oo,__wbindgen_is_array:co,__wbindgen_is_bigint:ao,__wbindgen_is_function:go,__wbindgen_is_null:uo,__wbindgen_is_object:wo,__wbindgen_is_string:bo,__wbindgen_is_undefined:po,__wbindgen_jsval_eq:lo,__wbindgen_jsval_loose_eq:fo,__wbindgen_memory:ho,__wbindgen_number_get:yo,__wbindgen_number_new:mo,__wbindgen_string_get:vo,__wbindgen_string_new:ko,__wbindgen_throw:Ro,__wbindgen_try_into_number:Fo,getVersions:Br,start:Vr},Symbol.toStringTag,{value:"Module"})),So=new URL(""+new URL("matrix_sdk_crypto_wasm_bg-B6p0UpxL.wasm",import.meta.url).href,import.meta.url);ht(new Proxy({},{get(){throw new Error("@matrix-org/matrix-sdk-crypto-wasm was used before it was initialized. Call `initAsync` first.")}}));let lt=null;async function qo(){const{instance:_}=await WebAssembly.instantiateStreaming(fetch(So),{"./matrix_sdk_crypto_wasm_bg.js":zo});ht(_.exports),_.exports.__wbindgen_start()}async function jo(){lt||(lt=qo()),await lt}export{g_ as A,K as B,S as C,j as D,qr as E,Oe as F,Ce as G,Gr as H,I,qe as J,Fe as K,Jr as L,ze as M,je as O,De as P,Ue as Q,h as R,Z as S,Le as T,f as U,n_ as V,Qr as a,m as b,J as c,Re as d,ke as e,Te as f,Qe as g,Pe as h,W as i,__ as j,Xr as k,Br as l,Ie as m,jr as n,E as o,Sr as p,H as q,r_ as r,zr as s,Nr as t,Zr as u,e_ as v,jo as w,u_ as x,$r as y,Fr as z};
|
|
3
|
+
//# sourceMappingURL=matrix-sdk-crypto-wasm-D9e1T4vy.js.map
|