@xmtp/wasm-bindings 1.6.1 → 1.6.6

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.
@@ -1,5 +1,3 @@
1
- import { JSArrayBufferCopy } from './snippets/wasm-array-cp-201e2a98f0e691f7/copy.min.js';
2
-
3
1
  let wasm;
4
2
 
5
3
  let cachedUint8ArrayMemory0 = null;
@@ -95,41 +93,10 @@ function getDataViewMemory0() {
95
93
  return cachedDataViewMemory0;
96
94
  }
97
95
 
98
- function addToExternrefTable0(obj) {
99
- const idx = wasm.__externref_table_alloc();
100
- wasm.__wbindgen_export_4.set(idx, obj);
101
- return idx;
102
- }
103
-
104
- function handleError(f, args) {
105
- try {
106
- return f.apply(this, args);
107
- } catch (e) {
108
- const idx = addToExternrefTable0(e);
109
- wasm.__wbindgen_exn_store(idx);
110
- }
111
- }
112
-
113
96
  function isLikeNone(x) {
114
97
  return x === undefined || x === null;
115
98
  }
116
99
 
117
- function getArrayU8FromWasm0(ptr, len) {
118
- ptr = ptr >>> 0;
119
- return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
120
- }
121
-
122
- function getArrayJsValueFromWasm0(ptr, len) {
123
- ptr = ptr >>> 0;
124
- const mem = getDataViewMemory0();
125
- const result = [];
126
- for (let i = ptr; i < ptr + 4 * len; i += 4) {
127
- result.push(wasm.__wbindgen_export_4.get(mem.getUint32(i, true)));
128
- }
129
- wasm.__externref_drop_slice(ptr, len);
130
- return result;
131
- }
132
-
133
100
  function debugString(val) {
134
101
  // primitive types
135
102
  const type = typeof val;
@@ -195,13 +162,40 @@ function debugString(val) {
195
162
  return className;
196
163
  }
197
164
 
165
+ function addToExternrefTable0(obj) {
166
+ const idx = wasm.__externref_table_alloc();
167
+ wasm.__wbindgen_externrefs.set(idx, obj);
168
+ return idx;
169
+ }
170
+
171
+ function handleError(f, args) {
172
+ try {
173
+ return f.apply(this, args);
174
+ } catch (e) {
175
+ const idx = addToExternrefTable0(e);
176
+ wasm.__wbindgen_exn_store(idx);
177
+ }
178
+ }
179
+
180
+ function getArrayU8FromWasm0(ptr, len) {
181
+ ptr = ptr >>> 0;
182
+ return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
183
+ }
184
+
185
+ function getArrayJsValueFromWasm0(ptr, len) {
186
+ ptr = ptr >>> 0;
187
+ const mem = getDataViewMemory0();
188
+ const result = [];
189
+ for (let i = ptr; i < ptr + 4 * len; i += 4) {
190
+ result.push(wasm.__wbindgen_externrefs.get(mem.getUint32(i, true)));
191
+ }
192
+ wasm.__externref_drop_slice(ptr, len);
193
+ return result;
194
+ }
195
+
198
196
  const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
199
197
  ? { register: () => {}, unregister: () => {} }
200
- : new FinalizationRegistry(
201
- state => {
202
- wasm.__wbindgen_export_7.get(state.dtor)(state.a, state.b);
203
- }
204
- );
198
+ : new FinalizationRegistry(state => state.dtor(state.a, state.b));
205
199
 
206
200
  function makeMutClosure(arg0, arg1, dtor, f) {
207
201
  const state = { a: arg0, b: arg1, cnt: 1, dtor };
@@ -216,24 +210,56 @@ function makeMutClosure(arg0, arg1, dtor, f) {
216
210
  try {
217
211
  return f(a, state.b, ...args);
218
212
  } finally {
219
- if (--state.cnt === 0) {
220
- wasm.__wbindgen_export_7.get(state.dtor)(a, state.b);
221
- CLOSURE_DTORS.unregister(state);
222
- } else {
223
- state.a = a;
224
- }
213
+ state.a = a;
214
+ real._wbg_cb_unref();
215
+ }
216
+ };
217
+ real._wbg_cb_unref = () => {
218
+ if (--state.cnt === 0) {
219
+ state.dtor(state.a, state.b);
220
+ state.a = 0;
221
+ CLOSURE_DTORS.unregister(state);
225
222
  }
226
223
  };
227
- real.original = state;
228
224
  CLOSURE_DTORS.register(real, state, state);
229
225
  return real;
230
226
  }
231
227
 
232
- function passArray8ToWasm0(arg, malloc) {
233
- const ptr = malloc(arg.length * 1, 1) >>> 0;
234
- getUint8ArrayMemory0().set(arg, ptr / 1);
235
- WASM_VECTOR_LEN = arg.length;
236
- return ptr;
228
+ function takeFromExternrefTable0(idx) {
229
+ const value = wasm.__wbindgen_externrefs.get(idx);
230
+ wasm.__externref_table_dealloc(idx);
231
+ return value;
232
+ }
233
+
234
+ function _assertClass(instance, klass) {
235
+ if (!(instance instanceof klass)) {
236
+ throw new Error(`expected instance of ${klass.name}`);
237
+ }
238
+ }
239
+ /**
240
+ * @param {Reply} reply
241
+ * @returns {Uint8Array}
242
+ */
243
+ export function encodeReply(reply) {
244
+ _assertClass(reply, Reply);
245
+ var ptr0 = reply.__destroy_into_raw();
246
+ const ret = wasm.encodeReply(ptr0);
247
+ if (ret[2]) {
248
+ throw takeFromExternrefTable0(ret[1]);
249
+ }
250
+ return takeFromExternrefTable0(ret[0]);
251
+ }
252
+
253
+ /**
254
+ * @param {Uint8Array} bytes
255
+ * @returns {Reply}
256
+ */
257
+ export function decodeReply(bytes) {
258
+ const ret = wasm.decodeReply(bytes);
259
+ if (ret[2]) {
260
+ throw takeFromExternrefTable0(ret[1]);
261
+ }
262
+ return Reply.__wrap(ret[0]);
237
263
  }
238
264
 
239
265
  function passArrayJsValueToWasm0(array, malloc) {
@@ -245,32 +271,125 @@ function passArrayJsValueToWasm0(array, malloc) {
245
271
  WASM_VECTOR_LEN = array.length;
246
272
  return ptr;
247
273
  }
274
+ /**
275
+ * @param {Uint8Array} bytes
276
+ * @returns {ReadReceipt}
277
+ */
278
+ export function decodeReadReceipt(bytes) {
279
+ const ret = wasm.decodeReadReceipt(bytes);
280
+ if (ret[2]) {
281
+ throw takeFromExternrefTable0(ret[1]);
282
+ }
283
+ return ReadReceipt.__wrap(ret[0]);
284
+ }
248
285
 
249
- function _assertClass(instance, klass) {
250
- if (!(instance instanceof klass)) {
251
- throw new Error(`expected instance of ${klass.name}`);
286
+ /**
287
+ * @param {ReadReceipt} readReceipt
288
+ * @returns {Uint8Array}
289
+ */
290
+ export function encodeReadReceipt(readReceipt) {
291
+ _assertClass(readReceipt, ReadReceipt);
292
+ var ptr0 = readReceipt.__destroy_into_raw();
293
+ const ret = wasm.encodeReadReceipt(ptr0);
294
+ if (ret[2]) {
295
+ throw takeFromExternrefTable0(ret[1]);
252
296
  }
297
+ return takeFromExternrefTable0(ret[0]);
253
298
  }
254
299
 
255
- function takeFromExternrefTable0(idx) {
256
- const value = wasm.__wbindgen_export_4.get(idx);
257
- wasm.__externref_table_dealloc(idx);
258
- return value;
300
+ /**
301
+ * @param {Uint8Array} bytes
302
+ * @returns {any}
303
+ */
304
+ export function decodeWalletSendCalls(bytes) {
305
+ const ret = wasm.decodeWalletSendCalls(bytes);
306
+ if (ret[2]) {
307
+ throw takeFromExternrefTable0(ret[1]);
308
+ }
309
+ return takeFromExternrefTable0(ret[0]);
259
310
  }
311
+
260
312
  /**
261
- * @param {string} signature_text
262
- * @param {Uint8Array} signature_bytes
263
- * @param {Uint8Array} public_key
313
+ * @param {any} wallet_send_calls
314
+ * @returns {Uint8Array}
264
315
  */
265
- export function verifySignedWithPublicKey(signature_text, signature_bytes, public_key) {
266
- const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
316
+ export function encodeWalletSendCalls(wallet_send_calls) {
317
+ const ret = wasm.encodeWalletSendCalls(wallet_send_calls);
318
+ if (ret[2]) {
319
+ throw takeFromExternrefTable0(ret[1]);
320
+ }
321
+ return takeFromExternrefTable0(ret[0]);
322
+ }
323
+
324
+ /**
325
+ * @param {string} text
326
+ * @returns {Uint8Array}
327
+ */
328
+ export function encodeXmtpText(text) {
329
+ const ptr0 = passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
267
330
  const len0 = WASM_VECTOR_LEN;
268
- const ret = wasm.verifySignedWithPublicKey(ptr0, len0, signature_bytes, public_key);
269
- if (ret[1]) {
270
- throw takeFromExternrefTable0(ret[0]);
331
+ const ret = wasm.encodeXmtpText(ptr0, len0);
332
+ if (ret[2]) {
333
+ throw takeFromExternrefTable0(ret[1]);
334
+ }
335
+ return takeFromExternrefTable0(ret[0]);
336
+ }
337
+
338
+ /**
339
+ * @param {Uint8Array} bytes
340
+ * @returns {string}
341
+ */
342
+ export function decodeXmtpText(bytes) {
343
+ let deferred2_0;
344
+ let deferred2_1;
345
+ try {
346
+ const ret = wasm.decodeXmtpText(bytes);
347
+ var ptr1 = ret[0];
348
+ var len1 = ret[1];
349
+ if (ret[3]) {
350
+ ptr1 = 0; len1 = 0;
351
+ throw takeFromExternrefTable0(ret[2]);
352
+ }
353
+ deferred2_0 = ptr1;
354
+ deferred2_1 = len1;
355
+ return getStringFromWasm0(ptr1, len1);
356
+ } finally {
357
+ wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
271
358
  }
272
359
  }
273
360
 
361
+ /**
362
+ * @param {Reaction} reaction
363
+ * @returns {Uint8Array}
364
+ */
365
+ export function encodeReaction(reaction) {
366
+ _assertClass(reaction, Reaction);
367
+ var ptr0 = reaction.__destroy_into_raw();
368
+ const ret = wasm.encodeReaction(ptr0);
369
+ if (ret[2]) {
370
+ throw takeFromExternrefTable0(ret[1]);
371
+ }
372
+ return takeFromExternrefTable0(ret[0]);
373
+ }
374
+
375
+ /**
376
+ * @param {Uint8Array} bytes
377
+ * @returns {Reaction}
378
+ */
379
+ export function decodeReaction(bytes) {
380
+ const ret = wasm.decodeReaction(bytes);
381
+ if (ret[2]) {
382
+ throw takeFromExternrefTable0(ret[1]);
383
+ }
384
+ return Reaction.__wrap(ret[0]);
385
+ }
386
+
387
+ function passArray8ToWasm0(arg, malloc) {
388
+ const ptr = malloc(arg.length * 1, 1) >>> 0;
389
+ getUint8ArrayMemory0().set(arg, ptr / 1);
390
+ WASM_VECTOR_LEN = arg.length;
391
+ return ptr;
392
+ }
274
393
  /**
275
394
  * @param {string} v3_host
276
395
  * @param {string | null | undefined} gateway_host
@@ -311,16 +430,99 @@ export function revokeInstallationsSignatureRequest(v3_host, gateway_host, recov
311
430
  return SignatureRequestHandle.__wrap(ret[0]);
312
431
  }
313
432
 
433
+ /**
434
+ * @param {string} signature_text
435
+ * @param {Uint8Array} signature_bytes
436
+ * @param {Uint8Array} public_key
437
+ */
438
+ export function verifySignedWithPublicKey(signature_text, signature_bytes, public_key) {
439
+ const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
440
+ const len0 = WASM_VECTOR_LEN;
441
+ const ret = wasm.verifySignedWithPublicKey(ptr0, len0, signature_bytes, public_key);
442
+ if (ret[1]) {
443
+ throw takeFromExternrefTable0(ret[0]);
444
+ }
445
+ }
446
+
447
+ /**
448
+ * @param {string} v3_host
449
+ * @param {string | null | undefined} gateway_host
450
+ * @param {string[]} inbox_ids
451
+ * @returns {Promise<InboxState[]>}
452
+ */
453
+ export function inboxStateFromInboxIds(v3_host, gateway_host, inbox_ids) {
454
+ const ptr0 = passStringToWasm0(v3_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
455
+ const len0 = WASM_VECTOR_LEN;
456
+ var ptr1 = isLikeNone(gateway_host) ? 0 : passStringToWasm0(gateway_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
457
+ var len1 = WASM_VECTOR_LEN;
458
+ const ptr2 = passArrayJsValueToWasm0(inbox_ids, wasm.__wbindgen_malloc);
459
+ const len2 = WASM_VECTOR_LEN;
460
+ const ret = wasm.inboxStateFromInboxIds(ptr0, len0, ptr1, len1, ptr2, len2);
461
+ return ret;
462
+ }
463
+
314
464
  /**
315
465
  * @param {Uint8Array} bytes
316
- * @returns {MultiRemoteAttachment}
466
+ * @returns {GroupUpdated}
317
467
  */
318
- export function decodeMultiRemoteAttachment(bytes) {
319
- const ret = wasm.decodeMultiRemoteAttachment(bytes);
468
+ export function decodeGroupUpdated(bytes) {
469
+ const ret = wasm.decodeGroupUpdated(bytes);
320
470
  if (ret[2]) {
321
471
  throw takeFromExternrefTable0(ret[1]);
322
472
  }
323
- return MultiRemoteAttachment.__wrap(ret[0]);
473
+ return GroupUpdated.__wrap(ret[0]);
474
+ }
475
+
476
+ /**
477
+ * @param {Uint8Array} bytes
478
+ * @returns {RemoteAttachment}
479
+ */
480
+ export function decodeRemoteAttachment(bytes) {
481
+ const ret = wasm.decodeRemoteAttachment(bytes);
482
+ if (ret[2]) {
483
+ throw takeFromExternrefTable0(ret[1]);
484
+ }
485
+ return RemoteAttachment.__wrap(ret[0]);
486
+ }
487
+
488
+ /**
489
+ * @param {RemoteAttachment} remoteAttachment
490
+ * @returns {Uint8Array}
491
+ */
492
+ export function encodeRemoteAttachment(remoteAttachment) {
493
+ _assertClass(remoteAttachment, RemoteAttachment);
494
+ var ptr0 = remoteAttachment.__destroy_into_raw();
495
+ const ret = wasm.encodeRemoteAttachment(ptr0);
496
+ if (ret[2]) {
497
+ throw takeFromExternrefTable0(ret[1]);
498
+ }
499
+ return takeFromExternrefTable0(ret[0]);
500
+ }
501
+
502
+ /**
503
+ * @param {Uint8Array} bytes
504
+ * @returns {TransactionReference}
505
+ */
506
+ export function decodeTransactionReference(bytes) {
507
+ const ret = wasm.decodeTransactionReference(bytes);
508
+ if (ret[2]) {
509
+ throw takeFromExternrefTable0(ret[1]);
510
+ }
511
+ return TransactionReference.__wrap(ret[0]);
512
+ }
513
+
514
+ /**
515
+ * @param {TransactionReference} transactionReference
516
+ * @returns {Uint8Array}
517
+ */
518
+ export function encodeTransactionReference(transactionReference) {
519
+ _assertClass(transactionReference, TransactionReference);
520
+ var ptr0 = transactionReference.__destroy_into_raw();
521
+ const ret = wasm.encodeTransactionReference(ptr0);
522
+ if (ret[2]) {
523
+ throw takeFromExternrefTable0(ret[1]);
524
+ }
525
+ return takeFromExternrefTable0(ret[0]);
324
526
  }
325
527
 
326
528
  /**
@@ -338,29 +540,41 @@ export function encodeMultiRemoteAttachment(multiRemoteAttachment) {
338
540
  }
339
541
 
340
542
  /**
341
- * @param {Reaction} reaction
342
- * @returns {Uint8Array}
543
+ * @param {Uint8Array} bytes
544
+ * @returns {MultiRemoteAttachment}
343
545
  */
344
- export function encodeReaction(reaction) {
345
- _assertClass(reaction, Reaction);
346
- var ptr0 = reaction.__destroy_into_raw();
347
- const ret = wasm.encodeReaction(ptr0);
546
+ export function decodeMultiRemoteAttachment(bytes) {
547
+ const ret = wasm.decodeMultiRemoteAttachment(bytes);
348
548
  if (ret[2]) {
349
549
  throw takeFromExternrefTable0(ret[1]);
350
550
  }
351
- return takeFromExternrefTable0(ret[0]);
551
+ return MultiRemoteAttachment.__wrap(ret[0]);
352
552
  }
353
553
 
354
554
  /**
355
555
  * @param {Uint8Array} bytes
356
- * @returns {Reaction}
556
+ * @returns {Actions}
357
557
  */
358
- export function decodeReaction(bytes) {
359
- const ret = wasm.decodeReaction(bytes);
558
+ export function decodeActions(bytes) {
559
+ const ret = wasm.decodeActions(bytes);
360
560
  if (ret[2]) {
361
561
  throw takeFromExternrefTable0(ret[1]);
362
562
  }
363
- return Reaction.__wrap(ret[0]);
563
+ return Actions.__wrap(ret[0]);
564
+ }
565
+
566
+ /**
567
+ * @param {Actions} actions
568
+ * @returns {Uint8Array}
569
+ */
570
+ export function encodeActions(actions) {
571
+ _assertClass(actions, Actions);
572
+ var ptr0 = actions.__destroy_into_raw();
573
+ const ret = wasm.encodeActions(ptr0);
574
+ if (ret[2]) {
575
+ throw takeFromExternrefTable0(ret[1]);
576
+ }
577
+ return takeFromExternrefTable0(ret[0]);
364
578
  }
365
579
 
366
580
  /**
@@ -376,9 +590,13 @@ export function decodeReaction(bytes) {
376
590
  * @param {boolean | null} [disable_events]
377
591
  * @param {string | null} [app_version]
378
592
  * @param {string | null} [gateway_host]
593
+ * @param {bigint | null} [nonce]
594
+ * @param {any | null} [auth_callback]
595
+ * @param {AuthHandle | null} [auth_handle]
596
+ * @param {ClientMode | null} [client_mode]
379
597
  * @returns {Promise<Client>}
380
598
  */
381
- export function createClient(host, inbox_id, account_identifier, db_path, encryption_key, device_sync_server_url, device_sync_worker_mode, log_options, allow_offline, disable_events, app_version, gateway_host) {
599
+ export function createClient(host, inbox_id, account_identifier, db_path, encryption_key, device_sync_server_url, device_sync_worker_mode, log_options, allow_offline, disable_events, app_version, gateway_host, nonce, auth_callback, auth_handle, client_mode) {
382
600
  const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
383
601
  const len0 = WASM_VECTOR_LEN;
384
602
  const ptr1 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -396,36 +614,40 @@ export function createClient(host, inbox_id, account_identifier, db_path, encryp
396
614
  var len5 = WASM_VECTOR_LEN;
397
615
  var ptr6 = isLikeNone(gateway_host) ? 0 : passStringToWasm0(gateway_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
398
616
  var len6 = WASM_VECTOR_LEN;
399
- const ret = wasm.createClient(ptr0, len0, ptr1, len1, account_identifier, ptr2, len2, isLikeNone(encryption_key) ? 0 : addToExternrefTable0(encryption_key), ptr3, len3, isLikeNone(device_sync_worker_mode) ? 3 : ((__wbindgen_enum_DeviceSyncWorkerMode.indexOf(device_sync_worker_mode) + 1 || 3) - 1), ptr4, isLikeNone(allow_offline) ? 0xFFFFFF : allow_offline ? 1 : 0, isLikeNone(disable_events) ? 0xFFFFFF : disable_events ? 1 : 0, ptr5, len5, ptr6, len6);
617
+ let ptr7 = 0;
618
+ if (!isLikeNone(auth_handle)) {
619
+ _assertClass(auth_handle, AuthHandle);
620
+ ptr7 = auth_handle.__destroy_into_raw();
621
+ }
622
+ const ret = wasm.createClient(ptr0, len0, ptr1, len1, account_identifier, ptr2, len2, isLikeNone(encryption_key) ? 0 : addToExternrefTable0(encryption_key), ptr3, len3, isLikeNone(device_sync_worker_mode) ? 3 : ((__wbindgen_enum_DeviceSyncWorkerMode.indexOf(device_sync_worker_mode) + 1 || 3) - 1), ptr4, isLikeNone(allow_offline) ? 0xFFFFFF : allow_offline ? 1 : 0, isLikeNone(disable_events) ? 0xFFFFFF : disable_events ? 1 : 0, ptr5, len5, ptr6, len6, !isLikeNone(nonce), isLikeNone(nonce) ? BigInt(0) : nonce, isLikeNone(auth_callback) ? 0 : addToExternrefTable0(auth_callback), ptr7, isLikeNone(client_mode) ? 2 : client_mode);
400
623
  return ret;
401
624
  }
402
625
 
403
626
  /**
404
- * @param {string} v3_host
405
- * @param {string | null | undefined} gateway_host
406
- * @param {string[]} inbox_ids
407
- * @returns {Promise<InboxState[]>}
627
+ * @param {string} host
628
+ * @param {string | null | undefined} gatewayHost
629
+ * @param {Identifier} accountIdentifier
630
+ * @returns {Promise<string | undefined>}
408
631
  */
409
- export function inboxStateFromInboxIds(v3_host, gateway_host, inbox_ids) {
410
- const ptr0 = passStringToWasm0(v3_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
632
+ export function getInboxIdForIdentifier(host, gatewayHost, accountIdentifier) {
633
+ const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
411
634
  const len0 = WASM_VECTOR_LEN;
412
- var ptr1 = isLikeNone(gateway_host) ? 0 : passStringToWasm0(gateway_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
635
+ var ptr1 = isLikeNone(gatewayHost) ? 0 : passStringToWasm0(gatewayHost, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
413
636
  var len1 = WASM_VECTOR_LEN;
414
- const ptr2 = passArrayJsValueToWasm0(inbox_ids, wasm.__wbindgen_malloc);
415
- const len2 = WASM_VECTOR_LEN;
416
- const ret = wasm.inboxStateFromInboxIds(ptr0, len0, ptr1, len1, ptr2, len2);
637
+ const ret = wasm.getInboxIdForIdentifier(ptr0, len0, ptr1, len1, accountIdentifier);
417
638
  return ret;
418
639
  }
419
640
 
420
641
  /**
421
642
  * @param {Identifier} accountIdentifier
643
+ * @param {bigint | null} [nonce]
422
644
  * @returns {string}
423
645
  */
424
- export function generateInboxId(accountIdentifier) {
646
+ export function generateInboxId(accountIdentifier, nonce) {
425
647
  let deferred2_0;
426
648
  let deferred2_1;
427
649
  try {
428
- const ret = wasm.generateInboxId(accountIdentifier);
650
+ const ret = wasm.generateInboxId(accountIdentifier, !isLikeNone(nonce), isLikeNone(nonce) ? BigInt(0) : nonce);
429
651
  var ptr1 = ret[0];
430
652
  var len1 = ret[1];
431
653
  if (ret[3]) {
@@ -441,18 +663,55 @@ export function generateInboxId(accountIdentifier) {
441
663
  }
442
664
 
443
665
  /**
444
- * @param {string} v3_host
445
- * @param {string | null | undefined} gateway_host
446
- * @param {Identifier} accountIdentifier
447
- * @returns {Promise<string | undefined>}
666
+ * @param {Uint8Array} bytes
667
+ * @returns {Attachment}
448
668
  */
449
- export function getInboxIdForIdentifier(v3_host, gateway_host, accountIdentifier) {
450
- const ptr0 = passStringToWasm0(v3_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
451
- const len0 = WASM_VECTOR_LEN;
452
- var ptr1 = isLikeNone(gateway_host) ? 0 : passStringToWasm0(gateway_host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
453
- var len1 = WASM_VECTOR_LEN;
454
- const ret = wasm.getInboxIdForIdentifier(ptr0, len0, ptr1, len1, accountIdentifier);
455
- return ret;
669
+ export function decodeAttachment(bytes) {
670
+ const ret = wasm.decodeAttachment(bytes);
671
+ if (ret[2]) {
672
+ throw takeFromExternrefTable0(ret[1]);
673
+ }
674
+ return Attachment.__wrap(ret[0]);
675
+ }
676
+
677
+ /**
678
+ * @param {Attachment} attachment
679
+ * @returns {Uint8Array}
680
+ */
681
+ export function encodeAttachment(attachment) {
682
+ _assertClass(attachment, Attachment);
683
+ var ptr0 = attachment.__destroy_into_raw();
684
+ const ret = wasm.encodeAttachment(ptr0);
685
+ if (ret[2]) {
686
+ throw takeFromExternrefTable0(ret[1]);
687
+ }
688
+ return takeFromExternrefTable0(ret[0]);
689
+ }
690
+
691
+ /**
692
+ * @param {Uint8Array} bytes
693
+ * @returns {Intent}
694
+ */
695
+ export function decodeIntent(bytes) {
696
+ const ret = wasm.decodeIntent(bytes);
697
+ if (ret[2]) {
698
+ throw takeFromExternrefTable0(ret[1]);
699
+ }
700
+ return Intent.__wrap(ret[0]);
701
+ }
702
+
703
+ /**
704
+ * @param {Intent} intent
705
+ * @returns {Uint8Array}
706
+ */
707
+ export function encodeIntent(intent) {
708
+ _assertClass(intent, Intent);
709
+ var ptr0 = intent.__destroy_into_raw();
710
+ const ret = wasm.encodeIntent(ptr0);
711
+ if (ret[2]) {
712
+ throw takeFromExternrefTable0(ret[1]);
713
+ }
714
+ return takeFromExternrefTable0(ret[0]);
456
715
  }
457
716
 
458
717
  /**
@@ -466,26 +725,41 @@ export function task_worker_entry_point(ptr) {
466
725
  }
467
726
  }
468
727
 
469
- function __wbg_adapter_8(arg0, arg1) {
470
- wasm.wasm_bindgen__convert__closures_____invoke__hb3fd7a1e3a7fa14d(arg0, arg1);
728
+ function wasm_bindgen__convert__closures_____invoke__h753a3e053785270d(arg0, arg1) {
729
+ wasm.wasm_bindgen__convert__closures_____invoke__h753a3e053785270d(arg0, arg1);
471
730
  }
472
731
 
473
- function __wbg_adapter_13(arg0, arg1) {
474
- wasm.wasm_bindgen__convert__closures_____invoke__h135d62b0906d3413(arg0, arg1);
732
+ function wasm_bindgen__convert__closures_____invoke__h9011598bdd38acb2(arg0, arg1) {
733
+ wasm.wasm_bindgen__convert__closures_____invoke__h9011598bdd38acb2(arg0, arg1);
475
734
  }
476
735
 
477
- function __wbg_adapter_18(arg0, arg1, arg2) {
478
- wasm.closure7227_externref_shim(arg0, arg1, arg2);
736
+ function wasm_bindgen__convert__closures_____invoke__h34df32c886f66f02(arg0, arg1, arg2) {
737
+ wasm.wasm_bindgen__convert__closures_____invoke__h34df32c886f66f02(arg0, arg1, arg2);
479
738
  }
480
739
 
481
- function __wbg_adapter_33(arg0, arg1) {
482
- wasm.wasm_bindgen__convert__closures_____invoke__h849ef726e44c1bb5(arg0, arg1);
740
+ function wasm_bindgen__convert__closures_____invoke__hafab8b28acda63ce(arg0, arg1) {
741
+ wasm.wasm_bindgen__convert__closures_____invoke__hafab8b28acda63ce(arg0, arg1);
483
742
  }
484
743
 
485
- function __wbg_adapter_899(arg0, arg1, arg2, arg3) {
486
- wasm.closure8188_externref_shim(arg0, arg1, arg2, arg3);
744
+ function wasm_bindgen__convert__closures_____invoke__h18a484e2affd7fe5(arg0, arg1, arg2, arg3) {
745
+ wasm.wasm_bindgen__convert__closures_____invoke__h18a484e2affd7fe5(arg0, arg1, arg2, arg3);
487
746
  }
488
747
 
748
+ /**
749
+ * @enum {0 | 1 | 2}
750
+ */
751
+ export const ActionStyle = Object.freeze({
752
+ Primary: 0, "0": "Primary",
753
+ Secondary: 1, "1": "Secondary",
754
+ Danger: 2, "2": "Danger",
755
+ });
756
+ /**
757
+ * @enum {0 | 1}
758
+ */
759
+ export const ClientMode = Object.freeze({
760
+ Default: 0, "0": "Default",
761
+ Notification: 1, "1": "Notification",
762
+ });
489
763
  /**
490
764
  * @enum {0 | 1}
491
765
  */
@@ -565,6 +839,13 @@ export const ListConversationsOrderBy = Object.freeze({
565
839
  CreatedAt: 0, "0": "CreatedAt",
566
840
  LastActivity: 1, "1": "LastActivity",
567
841
  });
842
+ /**
843
+ * @enum {0 | 1}
844
+ */
845
+ export const MessageSortBy = Object.freeze({
846
+ SentAt: 0, "0": "SentAt",
847
+ InsertedAt: 1, "1": "InsertedAt",
848
+ });
568
849
  /**
569
850
  * @enum {0 | 1 | 2 | 3 | 4}
570
851
  */
@@ -576,7 +857,7 @@ export const MetadataField = Object.freeze({
576
857
  MessageExpirationMS: 4, "4": "MessageExpirationMS",
577
858
  });
578
859
  /**
579
- * @enum {0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10}
860
+ * @enum {0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12}
580
861
  */
581
862
  export const PayloadType = Object.freeze({
582
863
  Text: 0, "0": "Text",
@@ -589,7 +870,9 @@ export const PayloadType = Object.freeze({
589
870
  GroupUpdated: 7, "7": "GroupUpdated",
590
871
  ReadReceipt: 8, "8": "ReadReceipt",
591
872
  WalletSendCalls: 9, "9": "WalletSendCalls",
592
- Custom: 10, "10": "Custom",
873
+ Intent: 10, "10": "Intent",
874
+ Actions: 11, "11": "Actions",
875
+ Custom: 12, "12": "Custom",
593
876
  });
594
877
  /**
595
878
  * @enum {0 | 1 | 2}
@@ -662,21 +945,294 @@ export const SortDirection = Object.freeze({
662
945
  Descending: 1, "1": "Descending",
663
946
  });
664
947
 
665
- const __wbindgen_enum_DeviceSyncWorkerMode = ["enabled", "disabled"];
948
+ const __wbindgen_enum_DeviceSyncWorkerMode = ["enabled", "disabled"];
949
+
950
+ const __wbindgen_enum_LogLevel = ["off", "error", "warn", "info", "debug", "trace"];
951
+
952
+ const __wbindgen_enum_ReadableStreamType = ["bytes"];
953
+
954
+ const __wbindgen_enum_ReferrerPolicy = ["", "no-referrer", "no-referrer-when-downgrade", "origin", "origin-when-cross-origin", "unsafe-url", "same-origin", "strict-origin", "strict-origin-when-cross-origin"];
955
+
956
+ const __wbindgen_enum_RequestCache = ["default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached"];
957
+
958
+ const __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"];
959
+
960
+ const __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate"];
961
+
962
+ const __wbindgen_enum_RequestRedirect = ["follow", "error", "manual"];
963
+
964
+ const ActionFinalization = (typeof FinalizationRegistry === 'undefined')
965
+ ? { register: () => {}, unregister: () => {} }
966
+ : new FinalizationRegistry(ptr => wasm.__wbg_action_free(ptr >>> 0, 1));
967
+
968
+ export class Action {
969
+
970
+ static __wrap(ptr) {
971
+ ptr = ptr >>> 0;
972
+ const obj = Object.create(Action.prototype);
973
+ obj.__wbg_ptr = ptr;
974
+ ActionFinalization.register(obj, obj.__wbg_ptr, obj);
975
+ return obj;
976
+ }
666
977
 
667
- const __wbindgen_enum_LogLevel = ["off", "error", "warn", "info", "debug", "trace"];
978
+ static __unwrap(jsValue) {
979
+ if (!(jsValue instanceof Action)) {
980
+ return 0;
981
+ }
982
+ return jsValue.__destroy_into_raw();
983
+ }
668
984
 
669
- const __wbindgen_enum_ReadableStreamType = ["bytes"];
985
+ __destroy_into_raw() {
986
+ const ptr = this.__wbg_ptr;
987
+ this.__wbg_ptr = 0;
988
+ ActionFinalization.unregister(this);
989
+ return ptr;
990
+ }
670
991
 
671
- const __wbindgen_enum_ReferrerPolicy = ["", "no-referrer", "no-referrer-when-downgrade", "origin", "origin-when-cross-origin", "unsafe-url", "same-origin", "strict-origin", "strict-origin-when-cross-origin"];
992
+ free() {
993
+ const ptr = this.__destroy_into_raw();
994
+ wasm.__wbg_action_free(ptr, 0);
995
+ }
996
+ /**
997
+ * @returns {string}
998
+ */
999
+ get id() {
1000
+ let deferred1_0;
1001
+ let deferred1_1;
1002
+ try {
1003
+ const ret = wasm.__wbg_get_action_id(this.__wbg_ptr);
1004
+ deferred1_0 = ret[0];
1005
+ deferred1_1 = ret[1];
1006
+ return getStringFromWasm0(ret[0], ret[1]);
1007
+ } finally {
1008
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
1009
+ }
1010
+ }
1011
+ /**
1012
+ * @param {string} arg0
1013
+ */
1014
+ set id(arg0) {
1015
+ const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1016
+ const len0 = WASM_VECTOR_LEN;
1017
+ wasm.__wbg_set_action_id(this.__wbg_ptr, ptr0, len0);
1018
+ }
1019
+ /**
1020
+ * @returns {string}
1021
+ */
1022
+ get label() {
1023
+ let deferred1_0;
1024
+ let deferred1_1;
1025
+ try {
1026
+ const ret = wasm.__wbg_get_action_label(this.__wbg_ptr);
1027
+ deferred1_0 = ret[0];
1028
+ deferred1_1 = ret[1];
1029
+ return getStringFromWasm0(ret[0], ret[1]);
1030
+ } finally {
1031
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
1032
+ }
1033
+ }
1034
+ /**
1035
+ * @param {string} arg0
1036
+ */
1037
+ set label(arg0) {
1038
+ const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1039
+ const len0 = WASM_VECTOR_LEN;
1040
+ wasm.__wbg_set_action_label(this.__wbg_ptr, ptr0, len0);
1041
+ }
1042
+ /**
1043
+ * @returns {string | undefined}
1044
+ */
1045
+ get imageUrl() {
1046
+ const ret = wasm.__wbg_get_action_imageUrl(this.__wbg_ptr);
1047
+ let v1;
1048
+ if (ret[0] !== 0) {
1049
+ v1 = getStringFromWasm0(ret[0], ret[1]).slice();
1050
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
1051
+ }
1052
+ return v1;
1053
+ }
1054
+ /**
1055
+ * @param {string | null} [arg0]
1056
+ */
1057
+ set imageUrl(arg0) {
1058
+ var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1059
+ var len0 = WASM_VECTOR_LEN;
1060
+ wasm.__wbg_set_action_imageUrl(this.__wbg_ptr, ptr0, len0);
1061
+ }
1062
+ /**
1063
+ * @returns {ActionStyle | undefined}
1064
+ */
1065
+ get style() {
1066
+ const ret = wasm.__wbg_get_action_style(this.__wbg_ptr);
1067
+ return ret === 3 ? undefined : ret;
1068
+ }
1069
+ /**
1070
+ * @param {ActionStyle | null} [arg0]
1071
+ */
1072
+ set style(arg0) {
1073
+ wasm.__wbg_set_action_style(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0);
1074
+ }
1075
+ /**
1076
+ * @returns {bigint | undefined}
1077
+ */
1078
+ get expiresAtNs() {
1079
+ const ret = wasm.__wbg_get_action_expiresAtNs(this.__wbg_ptr);
1080
+ return ret[0] === 0 ? undefined : ret[1];
1081
+ }
1082
+ /**
1083
+ * @param {bigint | null} [arg0]
1084
+ */
1085
+ set expiresAtNs(arg0) {
1086
+ wasm.__wbg_set_action_expiresAtNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
1087
+ }
1088
+ /**
1089
+ * @param {string} id
1090
+ * @param {string} label
1091
+ * @param {string | null} [image_url]
1092
+ * @param {ActionStyle | null} [style]
1093
+ * @param {bigint | null} [expires_at_ns]
1094
+ */
1095
+ constructor(id, label, image_url, style, expires_at_ns) {
1096
+ const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1097
+ const len0 = WASM_VECTOR_LEN;
1098
+ const ptr1 = passStringToWasm0(label, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1099
+ const len1 = WASM_VECTOR_LEN;
1100
+ var ptr2 = isLikeNone(image_url) ? 0 : passStringToWasm0(image_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1101
+ var len2 = WASM_VECTOR_LEN;
1102
+ const ret = wasm.action_new(ptr0, len0, ptr1, len1, ptr2, len2, isLikeNone(style) ? 3 : style, !isLikeNone(expires_at_ns), isLikeNone(expires_at_ns) ? BigInt(0) : expires_at_ns);
1103
+ this.__wbg_ptr = ret >>> 0;
1104
+ ActionFinalization.register(this, this.__wbg_ptr, this);
1105
+ return this;
1106
+ }
1107
+ }
1108
+ if (Symbol.dispose) Action.prototype[Symbol.dispose] = Action.prototype.free;
672
1109
 
673
- const __wbindgen_enum_RequestCache = ["default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached"];
1110
+ const ActionsFinalization = (typeof FinalizationRegistry === 'undefined')
1111
+ ? { register: () => {}, unregister: () => {} }
1112
+ : new FinalizationRegistry(ptr => wasm.__wbg_actions_free(ptr >>> 0, 1));
674
1113
 
675
- const __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"];
1114
+ export class Actions {
676
1115
 
677
- const __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate"];
1116
+ static __wrap(ptr) {
1117
+ ptr = ptr >>> 0;
1118
+ const obj = Object.create(Actions.prototype);
1119
+ obj.__wbg_ptr = ptr;
1120
+ ActionsFinalization.register(obj, obj.__wbg_ptr, obj);
1121
+ return obj;
1122
+ }
678
1123
 
679
- const __wbindgen_enum_RequestRedirect = ["follow", "error", "manual"];
1124
+ __destroy_into_raw() {
1125
+ const ptr = this.__wbg_ptr;
1126
+ this.__wbg_ptr = 0;
1127
+ ActionsFinalization.unregister(this);
1128
+ return ptr;
1129
+ }
1130
+
1131
+ free() {
1132
+ const ptr = this.__destroy_into_raw();
1133
+ wasm.__wbg_actions_free(ptr, 0);
1134
+ }
1135
+ /**
1136
+ * @returns {string}
1137
+ */
1138
+ get id() {
1139
+ let deferred1_0;
1140
+ let deferred1_1;
1141
+ try {
1142
+ const ret = wasm.__wbg_get_actions_id(this.__wbg_ptr);
1143
+ deferred1_0 = ret[0];
1144
+ deferred1_1 = ret[1];
1145
+ return getStringFromWasm0(ret[0], ret[1]);
1146
+ } finally {
1147
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
1148
+ }
1149
+ }
1150
+ /**
1151
+ * @param {string} arg0
1152
+ */
1153
+ set id(arg0) {
1154
+ const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1155
+ const len0 = WASM_VECTOR_LEN;
1156
+ wasm.__wbg_set_action_id(this.__wbg_ptr, ptr0, len0);
1157
+ }
1158
+ /**
1159
+ * @returns {string}
1160
+ */
1161
+ get description() {
1162
+ let deferred1_0;
1163
+ let deferred1_1;
1164
+ try {
1165
+ const ret = wasm.__wbg_get_actions_description(this.__wbg_ptr);
1166
+ deferred1_0 = ret[0];
1167
+ deferred1_1 = ret[1];
1168
+ return getStringFromWasm0(ret[0], ret[1]);
1169
+ } finally {
1170
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
1171
+ }
1172
+ }
1173
+ /**
1174
+ * @param {string} arg0
1175
+ */
1176
+ set description(arg0) {
1177
+ const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1178
+ const len0 = WASM_VECTOR_LEN;
1179
+ wasm.__wbg_set_action_label(this.__wbg_ptr, ptr0, len0);
1180
+ }
1181
+ /**
1182
+ * @returns {bigint | undefined}
1183
+ */
1184
+ get expiresAtNs() {
1185
+ const ret = wasm.__wbg_get_actions_expiresAtNs(this.__wbg_ptr);
1186
+ return ret[0] === 0 ? undefined : ret[1];
1187
+ }
1188
+ /**
1189
+ * @param {bigint | null} [arg0]
1190
+ */
1191
+ set expiresAtNs(arg0) {
1192
+ wasm.__wbg_set_action_expiresAtNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
1193
+ }
1194
+ /**
1195
+ * @param {Action} action
1196
+ */
1197
+ addAction(action) {
1198
+ _assertClass(action, Action);
1199
+ var ptr0 = action.__destroy_into_raw();
1200
+ wasm.actions_addAction(this.__wbg_ptr, ptr0);
1201
+ }
1202
+ /**
1203
+ * @returns {Action[]}
1204
+ */
1205
+ getActions() {
1206
+ const ret = wasm.actions_getActions(this.__wbg_ptr);
1207
+ var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
1208
+ wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
1209
+ return v1;
1210
+ }
1211
+ /**
1212
+ * @param {Action[]} actions
1213
+ */
1214
+ setActions(actions) {
1215
+ const ptr0 = passArrayJsValueToWasm0(actions, wasm.__wbindgen_malloc);
1216
+ const len0 = WASM_VECTOR_LEN;
1217
+ wasm.actions_setActions(this.__wbg_ptr, ptr0, len0);
1218
+ }
1219
+ /**
1220
+ * @param {string} id
1221
+ * @param {string} description
1222
+ * @param {bigint | null} [expires_at_ns]
1223
+ */
1224
+ constructor(id, description, expires_at_ns) {
1225
+ const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1226
+ const len0 = WASM_VECTOR_LEN;
1227
+ const ptr1 = passStringToWasm0(description, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1228
+ const len1 = WASM_VECTOR_LEN;
1229
+ const ret = wasm.actions_new(ptr0, len0, ptr1, len1, !isLikeNone(expires_at_ns), isLikeNone(expires_at_ns) ? BigInt(0) : expires_at_ns);
1230
+ this.__wbg_ptr = ret >>> 0;
1231
+ ActionsFinalization.register(this, this.__wbg_ptr, this);
1232
+ return this;
1233
+ }
1234
+ }
1235
+ if (Symbol.dispose) Actions.prototype[Symbol.dispose] = Actions.prototype.free;
680
1236
 
681
1237
  const ApiStatsFinalization = (typeof FinalizationRegistry === 'undefined')
682
1238
  ? { register: () => {}, unregister: () => {} }
@@ -898,6 +1454,49 @@ export class Attachment {
898
1454
  }
899
1455
  if (Symbol.dispose) Attachment.prototype[Symbol.dispose] = Attachment.prototype.free;
900
1456
 
1457
+ const AuthHandleFinalization = (typeof FinalizationRegistry === 'undefined')
1458
+ ? { register: () => {}, unregister: () => {} }
1459
+ : new FinalizationRegistry(ptr => wasm.__wbg_authhandle_free(ptr >>> 0, 1));
1460
+
1461
+ export class AuthHandle {
1462
+
1463
+ __destroy_into_raw() {
1464
+ const ptr = this.__wbg_ptr;
1465
+ this.__wbg_ptr = 0;
1466
+ AuthHandleFinalization.unregister(this);
1467
+ return ptr;
1468
+ }
1469
+
1470
+ free() {
1471
+ const ptr = this.__destroy_into_raw();
1472
+ wasm.__wbg_authhandle_free(ptr, 0);
1473
+ }
1474
+ /**
1475
+ * @returns {number}
1476
+ */
1477
+ id() {
1478
+ const ret = wasm.authhandle_id(this.__wbg_ptr);
1479
+ return ret >>> 0;
1480
+ }
1481
+ constructor() {
1482
+ const ret = wasm.authhandle_new();
1483
+ this.__wbg_ptr = ret >>> 0;
1484
+ AuthHandleFinalization.register(this, this.__wbg_ptr, this);
1485
+ return this;
1486
+ }
1487
+ /**
1488
+ * @param {Credential} credential
1489
+ * @returns {Promise<void>}
1490
+ */
1491
+ set(credential) {
1492
+ _assertClass(credential, Credential);
1493
+ var ptr0 = credential.__destroy_into_raw();
1494
+ const ret = wasm.authhandle_set(this.__wbg_ptr, ptr0);
1495
+ return ret;
1496
+ }
1497
+ }
1498
+ if (Symbol.dispose) AuthHandle.prototype[Symbol.dispose] = AuthHandle.prototype.free;
1499
+
901
1500
  const ClientFinalization = (typeof FinalizationRegistry === 'undefined')
902
1501
  ? { register: () => {}, unregister: () => {} }
903
1502
  : new FinalizationRegistry(ptr => wasm.__wbg_client_free(ptr >>> 0, 1));
@@ -1012,10 +1611,49 @@ export class Client {
1012
1611
  return ret;
1013
1612
  }
1014
1613
  /**
1015
- * @returns {Promise<SignatureRequestHandle>}
1614
+ * @returns {Promise<SignatureRequestHandle | undefined>}
1615
+ */
1616
+ revokeAllOtherInstallationsSignatureRequest() {
1617
+ const ret = wasm.client_revokeAllOtherInstallationsSignatureRequest(this.__wbg_ptr);
1618
+ return ret;
1619
+ }
1620
+ /**
1621
+ *
1622
+ * * Get the client's inbox state.
1623
+ * *
1624
+ * * If `refresh_from_network` is true, the client will go to the network first to refresh the state.
1625
+ * * Otherwise, the state will be read from the local database.
1626
+ *
1627
+ * @param {boolean} refresh_from_network
1628
+ * @returns {Promise<InboxState>}
1629
+ */
1630
+ inboxState(refresh_from_network) {
1631
+ const ret = wasm.client_inboxState(this.__wbg_ptr, refresh_from_network);
1632
+ return ret;
1633
+ }
1634
+ /**
1635
+ * @param {string} inbox_id
1636
+ * @returns {Promise<InboxState>}
1637
+ */
1638
+ getLatestInboxState(inbox_id) {
1639
+ const ptr0 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1640
+ const len0 = WASM_VECTOR_LEN;
1641
+ const ret = wasm.client_getLatestInboxState(this.__wbg_ptr, ptr0, len0);
1642
+ return ret;
1643
+ }
1644
+ /**
1645
+ *
1646
+ * * Get key package statuses for a list of installation IDs.
1647
+ * *
1648
+ * * Returns a JavaScript object mapping installation ID strings to KeyPackageStatus objects.
1649
+ *
1650
+ * @param {string[]} installation_ids
1651
+ * @returns {Promise<any>}
1016
1652
  */
1017
- revokeAllOtherInstallationsSignatureRequest() {
1018
- const ret = wasm.client_revokeAllOtherInstallationsSignatureRequest(this.__wbg_ptr);
1653
+ getKeyPackageStatusesForInstallationIds(installation_ids) {
1654
+ const ptr0 = passArrayJsValueToWasm0(installation_ids, wasm.__wbindgen_malloc);
1655
+ const len0 = WASM_VECTOR_LEN;
1656
+ const ret = wasm.client_getKeyPackageStatusesForInstallationIds(this.__wbg_ptr, ptr0, len0);
1019
1657
  return ret;
1020
1658
  }
1021
1659
  /**
@@ -1236,45 +1874,6 @@ export class Client {
1236
1874
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
1237
1875
  }
1238
1876
  }
1239
- /**
1240
- *
1241
- * * Get the client's inbox state.
1242
- * *
1243
- * * If `refresh_from_network` is true, the client will go to the network first to refresh the state.
1244
- * * Otherwise, the state will be read from the local database.
1245
- *
1246
- * @param {boolean} refresh_from_network
1247
- * @returns {Promise<InboxState>}
1248
- */
1249
- inboxState(refresh_from_network) {
1250
- const ret = wasm.client_inboxState(this.__wbg_ptr, refresh_from_network);
1251
- return ret;
1252
- }
1253
- /**
1254
- * @param {string} inbox_id
1255
- * @returns {Promise<InboxState>}
1256
- */
1257
- getLatestInboxState(inbox_id) {
1258
- const ptr0 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1259
- const len0 = WASM_VECTOR_LEN;
1260
- const ret = wasm.client_getLatestInboxState(this.__wbg_ptr, ptr0, len0);
1261
- return ret;
1262
- }
1263
- /**
1264
- *
1265
- * * Get key package statuses for a list of installation IDs.
1266
- * *
1267
- * * Returns a JavaScript object mapping installation ID strings to KeyPackageStatus objects.
1268
- *
1269
- * @param {string[]} installation_ids
1270
- * @returns {Promise<any>}
1271
- */
1272
- getKeyPackageStatusesForInstallationIds(installation_ids) {
1273
- const ptr0 = passArrayJsValueToWasm0(installation_ids, wasm.__wbindgen_malloc);
1274
- const len0 = WASM_VECTOR_LEN;
1275
- const ret = wasm.client_getKeyPackageStatusesForInstallationIds(this.__wbg_ptr, ptr0, len0);
1276
- return ret;
1277
- }
1278
1877
  }
1279
1878
  if (Symbol.dispose) Client.prototype[Symbol.dispose] = Client.prototype.free;
1280
1879
 
@@ -1429,7 +2028,7 @@ export class ContentTypeId {
1429
2028
  set authorityId(arg0) {
1430
2029
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1431
2030
  const len0 = WASM_VECTOR_LEN;
1432
- wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
2031
+ wasm.__wbg_set_contenttypeid_authorityId(this.__wbg_ptr, ptr0, len0);
1433
2032
  }
1434
2033
  /**
1435
2034
  * @returns {string}
@@ -1508,25 +2107,6 @@ export class Conversation {
1508
2107
  const ptr = this.__destroy_into_raw();
1509
2108
  wasm.__wbg_conversation_free(ptr, 0);
1510
2109
  }
1511
- /**
1512
- * @returns {ConsentState}
1513
- */
1514
- consentState() {
1515
- const ret = wasm.conversation_consentState(this.__wbg_ptr);
1516
- if (ret[2]) {
1517
- throw takeFromExternrefTable0(ret[1]);
1518
- }
1519
- return ret[0];
1520
- }
1521
- /**
1522
- * @param {ConsentState} state
1523
- */
1524
- updateConsentState(state) {
1525
- const ret = wasm.conversation_updateConsentState(this.__wbg_ptr, state);
1526
- if (ret[1]) {
1527
- throw takeFromExternrefTable0(ret[0]);
1528
- }
1529
- }
1530
2110
  /**
1531
2111
  * @returns {string[]}
1532
2112
  */
@@ -1705,6 +2285,16 @@ export class Conversation {
1705
2285
  wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
1706
2286
  }
1707
2287
  }
2288
+ /**
2289
+ * @param {string} app_data
2290
+ * @returns {Promise<void>}
2291
+ */
2292
+ updateAppData(app_data) {
2293
+ const ptr0 = passStringToWasm0(app_data, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2294
+ const len0 = WASM_VECTOR_LEN;
2295
+ const ret = wasm.conversation_updateAppData(this.__wbg_ptr, ptr0, len0);
2296
+ return ret;
2297
+ }
1708
2298
  /**
1709
2299
  * @returns {string}
1710
2300
  */
@@ -1726,6 +2316,16 @@ export class Conversation {
1726
2316
  wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
1727
2317
  }
1728
2318
  }
2319
+ /**
2320
+ * @returns {GroupMembershipState}
2321
+ */
2322
+ membershipState() {
2323
+ const ret = wasm.conversation_membershipState(this.__wbg_ptr);
2324
+ if (ret[2]) {
2325
+ throw takeFromExternrefTable0(ret[1]);
2326
+ }
2327
+ return ret[0];
2328
+ }
1729
2329
  /**
1730
2330
  * Publish all unpublished messages
1731
2331
  * @returns {Promise<void>}
@@ -2027,6 +2627,27 @@ export class Conversation {
2027
2627
  }
2028
2628
  return StreamCloser.__wrap(ret[0]);
2029
2629
  }
2630
+ /**
2631
+ * @returns {string}
2632
+ */
2633
+ appData() {
2634
+ let deferred2_0;
2635
+ let deferred2_1;
2636
+ try {
2637
+ const ret = wasm.conversation_appData(this.__wbg_ptr);
2638
+ var ptr1 = ret[0];
2639
+ var len1 = ret[1];
2640
+ if (ret[3]) {
2641
+ ptr1 = 0; len1 = 0;
2642
+ throw takeFromExternrefTable0(ret[2]);
2643
+ }
2644
+ deferred2_0 = ptr1;
2645
+ deferred2_1 = len1;
2646
+ return getStringFromWasm0(ptr1, len1);
2647
+ } finally {
2648
+ wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
2649
+ }
2650
+ }
2030
2651
  /**
2031
2652
  * @param {string} inbox_id
2032
2653
  * @returns {boolean}
@@ -2060,6 +2681,25 @@ export class Conversation {
2060
2681
  }
2061
2682
  return ret[0] !== 0;
2062
2683
  }
2684
+ /**
2685
+ * @returns {ConsentState}
2686
+ */
2687
+ consentState() {
2688
+ const ret = wasm.conversation_consentState(this.__wbg_ptr);
2689
+ if (ret[2]) {
2690
+ throw takeFromExternrefTable0(ret[1]);
2691
+ }
2692
+ return ret[0];
2693
+ }
2694
+ /**
2695
+ * @param {ConsentState} state
2696
+ */
2697
+ updateConsentState(state) {
2698
+ const ret = wasm.conversation_updateConsentState(this.__wbg_ptr, state);
2699
+ if (ret[1]) {
2700
+ throw takeFromExternrefTable0(ret[0]);
2701
+ }
2702
+ }
2063
2703
  }
2064
2704
  if (Symbol.dispose) Conversation.prototype[Symbol.dispose] = Conversation.prototype.free;
2065
2705
 
@@ -2633,8 +3273,9 @@ export class CreateGroupOptions {
2633
3273
  * @param {string | null} [group_description]
2634
3274
  * @param {PermissionPolicySet | null} [custom_permission_policy_set]
2635
3275
  * @param {MessageDisappearingSettings | null} [message_disappearing_settings]
3276
+ * @param {string | null} [app_data]
2636
3277
  */
2637
- constructor(permissions, group_name, group_image_url_square, group_description, custom_permission_policy_set, message_disappearing_settings) {
3278
+ constructor(permissions, group_name, group_image_url_square, group_description, custom_permission_policy_set, message_disappearing_settings, app_data) {
2638
3279
  var ptr0 = isLikeNone(group_name) ? 0 : passStringToWasm0(group_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2639
3280
  var len0 = WASM_VECTOR_LEN;
2640
3281
  var ptr1 = isLikeNone(group_image_url_square) ? 0 : passStringToWasm0(group_image_url_square, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -2651,7 +3292,9 @@ export class CreateGroupOptions {
2651
3292
  _assertClass(message_disappearing_settings, MessageDisappearingSettings);
2652
3293
  ptr4 = message_disappearing_settings.__destroy_into_raw();
2653
3294
  }
2654
- const ret = wasm.creategroupoptions_new(isLikeNone(permissions) ? 3 : permissions, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, ptr4);
3295
+ var ptr5 = isLikeNone(app_data) ? 0 : passStringToWasm0(app_data, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3296
+ var len5 = WASM_VECTOR_LEN;
3297
+ const ret = wasm.creategroupoptions_new(isLikeNone(permissions) ? 3 : permissions, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, ptr4, ptr5, len5);
2655
3298
  this.__wbg_ptr = ret >>> 0;
2656
3299
  CreateGroupOptionsFinalization.register(this, this.__wbg_ptr, this);
2657
3300
  return this;
@@ -2765,9 +3408,64 @@ export class CreateGroupOptions {
2765
3408
  }
2766
3409
  wasm.__wbg_set_createdmoptions_messageDisappearingSettings(this.__wbg_ptr, ptr0);
2767
3410
  }
3411
+ /**
3412
+ * @returns {string | undefined}
3413
+ */
3414
+ get appData() {
3415
+ const ret = wasm.__wbg_get_creategroupoptions_appData(this.__wbg_ptr);
3416
+ let v1;
3417
+ if (ret[0] !== 0) {
3418
+ v1 = getStringFromWasm0(ret[0], ret[1]).slice();
3419
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
3420
+ }
3421
+ return v1;
3422
+ }
3423
+ /**
3424
+ * @param {string | null} [arg0]
3425
+ */
3426
+ set appData(arg0) {
3427
+ var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3428
+ var len0 = WASM_VECTOR_LEN;
3429
+ wasm.__wbg_set_creategroupoptions_appData(this.__wbg_ptr, ptr0, len0);
3430
+ }
2768
3431
  }
2769
3432
  if (Symbol.dispose) CreateGroupOptions.prototype[Symbol.dispose] = CreateGroupOptions.prototype.free;
2770
3433
 
3434
+ const CredentialFinalization = (typeof FinalizationRegistry === 'undefined')
3435
+ ? { register: () => {}, unregister: () => {} }
3436
+ : new FinalizationRegistry(ptr => wasm.__wbg_credential_free(ptr >>> 0, 1));
3437
+
3438
+ export class Credential {
3439
+
3440
+ __destroy_into_raw() {
3441
+ const ptr = this.__wbg_ptr;
3442
+ this.__wbg_ptr = 0;
3443
+ CredentialFinalization.unregister(this);
3444
+ return ptr;
3445
+ }
3446
+
3447
+ free() {
3448
+ const ptr = this.__destroy_into_raw();
3449
+ wasm.__wbg_credential_free(ptr, 0);
3450
+ }
3451
+ /**
3452
+ * @param {string | null | undefined} name
3453
+ * @param {string} value
3454
+ * @param {bigint} expires_at_seconds
3455
+ */
3456
+ constructor(name, value, expires_at_seconds) {
3457
+ var ptr0 = isLikeNone(name) ? 0 : passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3458
+ var len0 = WASM_VECTOR_LEN;
3459
+ const ptr1 = passStringToWasm0(value, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3460
+ const len1 = WASM_VECTOR_LEN;
3461
+ const ret = wasm.credential_new(ptr0, len0, ptr1, len1, expires_at_seconds);
3462
+ this.__wbg_ptr = ret >>> 0;
3463
+ CredentialFinalization.register(this, this.__wbg_ptr, this);
3464
+ return this;
3465
+ }
3466
+ }
3467
+ if (Symbol.dispose) Credential.prototype[Symbol.dispose] = Credential.prototype.free;
3468
+
2771
3469
  const DecodedMessageFinalization = (typeof FinalizationRegistry === 'undefined')
2772
3470
  ? { register: () => {}, unregister: () => {} }
2773
3471
  : new FinalizationRegistry(ptr => wasm.__wbg_decodedmessage_free(ptr >>> 0, 1));
@@ -3021,6 +3719,16 @@ export class DecodedMessageContent {
3021
3719
  const ptr = this.__destroy_into_raw();
3022
3720
  wasm.__wbg_decodedmessagecontent_free(ptr, 0);
3023
3721
  }
3722
+ /**
3723
+ * @returns {Actions | undefined}
3724
+ */
3725
+ asActions() {
3726
+ const ret = wasm.decodedmessagecontent_asActions(this.__wbg_ptr);
3727
+ if (ret[2]) {
3728
+ throw takeFromExternrefTable0(ret[1]);
3729
+ }
3730
+ return ret[0] === 0 ? undefined : Actions.__wrap(ret[0]);
3731
+ }
3024
3732
  /**
3025
3733
  * @returns {ReactionPayload | undefined}
3026
3734
  */
@@ -3108,6 +3816,16 @@ export class DecodedMessageContent {
3108
3816
  const ret = wasm.decodedmessagecontent_asCustom(this.__wbg_ptr);
3109
3817
  return ret === 0 ? undefined : EncodedContent.__wrap(ret);
3110
3818
  }
3819
+ /**
3820
+ * @returns {Intent | undefined}
3821
+ */
3822
+ asIntent() {
3823
+ const ret = wasm.decodedmessagecontent_asIntent(this.__wbg_ptr);
3824
+ if (ret[2]) {
3825
+ throw takeFromExternrefTable0(ret[1]);
3826
+ }
3827
+ return ret[0] === 0 ? undefined : Intent.__wrap(ret[0]);
3828
+ }
3111
3829
  }
3112
3830
  if (Symbol.dispose) DecodedMessageContent.prototype[Symbol.dispose] = DecodedMessageContent.prototype.free;
3113
3831
 
@@ -3611,33 +4329,118 @@ export class GroupUpdated {
3611
4329
  wasm.__wbg_groupupdated_free(ptr, 0);
3612
4330
  }
3613
4331
  /**
3614
- * @returns {string}
4332
+ * @returns {string}
4333
+ */
4334
+ get initiatedByInboxId() {
4335
+ let deferred1_0;
4336
+ let deferred1_1;
4337
+ try {
4338
+ const ret = wasm.__wbg_get_groupupdated_initiatedByInboxId(this.__wbg_ptr);
4339
+ deferred1_0 = ret[0];
4340
+ deferred1_1 = ret[1];
4341
+ return getStringFromWasm0(ret[0], ret[1]);
4342
+ } finally {
4343
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
4344
+ }
4345
+ }
4346
+ /**
4347
+ * @param {string} arg0
4348
+ */
4349
+ set initiatedByInboxId(arg0) {
4350
+ const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
4351
+ const len0 = WASM_VECTOR_LEN;
4352
+ wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
4353
+ }
4354
+ /**
4355
+ * @returns {Inbox[]}
4356
+ */
4357
+ get addedInboxes() {
4358
+ const ret = wasm.__wbg_get_groupupdated_addedInboxes(this.__wbg_ptr);
4359
+ var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
4360
+ wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
4361
+ return v1;
4362
+ }
4363
+ /**
4364
+ * @param {Inbox[]} arg0
4365
+ */
4366
+ set addedInboxes(arg0) {
4367
+ const ptr0 = passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
4368
+ const len0 = WASM_VECTOR_LEN;
4369
+ wasm.__wbg_set_groupupdated_addedInboxes(this.__wbg_ptr, ptr0, len0);
4370
+ }
4371
+ /**
4372
+ * @returns {Inbox[]}
4373
+ */
4374
+ get removedInboxes() {
4375
+ const ret = wasm.__wbg_get_groupupdated_removedInboxes(this.__wbg_ptr);
4376
+ var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
4377
+ wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
4378
+ return v1;
4379
+ }
4380
+ /**
4381
+ * @param {Inbox[]} arg0
4382
+ */
4383
+ set removedInboxes(arg0) {
4384
+ const ptr0 = passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
4385
+ const len0 = WASM_VECTOR_LEN;
4386
+ wasm.__wbg_set_groupupdated_removedInboxes(this.__wbg_ptr, ptr0, len0);
4387
+ }
4388
+ /**
4389
+ * @returns {Inbox[]}
4390
+ */
4391
+ get leftInboxes() {
4392
+ const ret = wasm.__wbg_get_groupupdated_leftInboxes(this.__wbg_ptr);
4393
+ var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
4394
+ wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
4395
+ return v1;
4396
+ }
4397
+ /**
4398
+ * @param {Inbox[]} arg0
4399
+ */
4400
+ set leftInboxes(arg0) {
4401
+ const ptr0 = passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
4402
+ const len0 = WASM_VECTOR_LEN;
4403
+ wasm.__wbg_set_groupupdated_leftInboxes(this.__wbg_ptr, ptr0, len0);
4404
+ }
4405
+ /**
4406
+ * @returns {MetadataFieldChange[]}
4407
+ */
4408
+ get metadataFieldChanges() {
4409
+ const ret = wasm.__wbg_get_groupupdated_metadataFieldChanges(this.__wbg_ptr);
4410
+ var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
4411
+ wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
4412
+ return v1;
4413
+ }
4414
+ /**
4415
+ * @param {MetadataFieldChange[]} arg0
4416
+ */
4417
+ set metadataFieldChanges(arg0) {
4418
+ const ptr0 = passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
4419
+ const len0 = WASM_VECTOR_LEN;
4420
+ wasm.__wbg_set_groupupdated_metadataFieldChanges(this.__wbg_ptr, ptr0, len0);
4421
+ }
4422
+ /**
4423
+ * @returns {Inbox[]}
3615
4424
  */
3616
- get initiatedByInboxId() {
3617
- let deferred1_0;
3618
- let deferred1_1;
3619
- try {
3620
- const ret = wasm.__wbg_get_groupupdated_initiatedByInboxId(this.__wbg_ptr);
3621
- deferred1_0 = ret[0];
3622
- deferred1_1 = ret[1];
3623
- return getStringFromWasm0(ret[0], ret[1]);
3624
- } finally {
3625
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
3626
- }
4425
+ get addedAdminInboxes() {
4426
+ const ret = wasm.__wbg_get_groupupdated_addedAdminInboxes(this.__wbg_ptr);
4427
+ var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
4428
+ wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
4429
+ return v1;
3627
4430
  }
3628
4431
  /**
3629
- * @param {string} arg0
4432
+ * @param {Inbox[]} arg0
3630
4433
  */
3631
- set initiatedByInboxId(arg0) {
3632
- const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
4434
+ set addedAdminInboxes(arg0) {
4435
+ const ptr0 = passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
3633
4436
  const len0 = WASM_VECTOR_LEN;
3634
- wasm.__wbg_set_groupmember_inboxId(this.__wbg_ptr, ptr0, len0);
4437
+ wasm.__wbg_set_groupupdated_addedAdminInboxes(this.__wbg_ptr, ptr0, len0);
3635
4438
  }
3636
4439
  /**
3637
4440
  * @returns {Inbox[]}
3638
4441
  */
3639
- get addedInboxes() {
3640
- const ret = wasm.__wbg_get_groupupdated_addedInboxes(this.__wbg_ptr);
4442
+ get removedAdminInboxes() {
4443
+ const ret = wasm.__wbg_get_groupupdated_removedAdminInboxes(this.__wbg_ptr);
3641
4444
  var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
3642
4445
  wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
3643
4446
  return v1;
@@ -3645,16 +4448,16 @@ export class GroupUpdated {
3645
4448
  /**
3646
4449
  * @param {Inbox[]} arg0
3647
4450
  */
3648
- set addedInboxes(arg0) {
4451
+ set removedAdminInboxes(arg0) {
3649
4452
  const ptr0 = passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
3650
4453
  const len0 = WASM_VECTOR_LEN;
3651
- wasm.__wbg_set_groupupdated_addedInboxes(this.__wbg_ptr, ptr0, len0);
4454
+ wasm.__wbg_set_groupupdated_removedAdminInboxes(this.__wbg_ptr, ptr0, len0);
3652
4455
  }
3653
4456
  /**
3654
4457
  * @returns {Inbox[]}
3655
4458
  */
3656
- get removedInboxes() {
3657
- const ret = wasm.__wbg_get_groupupdated_removedInboxes(this.__wbg_ptr);
4459
+ get addedSuperAdminInboxes() {
4460
+ const ret = wasm.__wbg_get_groupupdated_addedSuperAdminInboxes(this.__wbg_ptr);
3658
4461
  var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
3659
4462
  wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
3660
4463
  return v1;
@@ -3662,27 +4465,27 @@ export class GroupUpdated {
3662
4465
  /**
3663
4466
  * @param {Inbox[]} arg0
3664
4467
  */
3665
- set removedInboxes(arg0) {
4468
+ set addedSuperAdminInboxes(arg0) {
3666
4469
  const ptr0 = passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
3667
4470
  const len0 = WASM_VECTOR_LEN;
3668
- wasm.__wbg_set_groupupdated_removedInboxes(this.__wbg_ptr, ptr0, len0);
4471
+ wasm.__wbg_set_groupupdated_addedSuperAdminInboxes(this.__wbg_ptr, ptr0, len0);
3669
4472
  }
3670
4473
  /**
3671
- * @returns {MetadataFieldChange[]}
4474
+ * @returns {Inbox[]}
3672
4475
  */
3673
- get metadataFieldChanges() {
3674
- const ret = wasm.__wbg_get_groupupdated_metadataFieldChanges(this.__wbg_ptr);
4476
+ get removedSuperAdminInboxes() {
4477
+ const ret = wasm.__wbg_get_groupupdated_removedSuperAdminInboxes(this.__wbg_ptr);
3675
4478
  var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
3676
4479
  wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
3677
4480
  return v1;
3678
4481
  }
3679
4482
  /**
3680
- * @param {MetadataFieldChange[]} arg0
4483
+ * @param {Inbox[]} arg0
3681
4484
  */
3682
- set metadataFieldChanges(arg0) {
4485
+ set removedSuperAdminInboxes(arg0) {
3683
4486
  const ptr0 = passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
3684
4487
  const len0 = WASM_VECTOR_LEN;
3685
- wasm.__wbg_set_groupupdated_metadataFieldChanges(this.__wbg_ptr, ptr0, len0);
4488
+ wasm.__wbg_set_groupupdated_removedSuperAdminInboxes(this.__wbg_ptr, ptr0, len0);
3686
4489
  }
3687
4490
  }
3688
4491
  if (Symbol.dispose) GroupUpdated.prototype[Symbol.dispose] = GroupUpdated.prototype.free;
@@ -3870,7 +4673,7 @@ export class Inbox {
3870
4673
  set inboxId(arg0) {
3871
4674
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3872
4675
  const len0 = WASM_VECTOR_LEN;
3873
- wasm.__wbg_set_groupmember_inboxId(this.__wbg_ptr, ptr0, len0);
4676
+ wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
3874
4677
  }
3875
4678
  }
3876
4679
  if (Symbol.dispose) Inbox.prototype[Symbol.dispose] = Inbox.prototype.free;
@@ -3939,7 +4742,7 @@ export class InboxState {
3939
4742
  set inboxId(arg0) {
3940
4743
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3941
4744
  const len0 = WASM_VECTOR_LEN;
3942
- wasm.__wbg_set_groupmember_inboxId(this.__wbg_ptr, ptr0, len0);
4745
+ wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
3943
4746
  }
3944
4747
  /**
3945
4748
  * @returns {Identifier}
@@ -4070,7 +4873,7 @@ export class Installation {
4070
4873
  set id(arg0) {
4071
4874
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
4072
4875
  const len0 = WASM_VECTOR_LEN;
4073
- wasm.__wbg_set_installation_id(this.__wbg_ptr, ptr0, len0);
4876
+ wasm.__wbg_set_action_id(this.__wbg_ptr, ptr0, len0);
4074
4877
  }
4075
4878
  /**
4076
4879
  * @returns {bigint | undefined}
@@ -4083,11 +4886,113 @@ export class Installation {
4083
4886
  * @param {bigint | null} [arg0]
4084
4887
  */
4085
4888
  set clientTimestampNs(arg0) {
4086
- wasm.__wbg_set_installation_clientTimestampNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
4889
+ wasm.__wbg_set_action_expiresAtNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
4087
4890
  }
4088
4891
  }
4089
4892
  if (Symbol.dispose) Installation.prototype[Symbol.dispose] = Installation.prototype.free;
4090
4893
 
4894
+ const IntentFinalization = (typeof FinalizationRegistry === 'undefined')
4895
+ ? { register: () => {}, unregister: () => {} }
4896
+ : new FinalizationRegistry(ptr => wasm.__wbg_intent_free(ptr >>> 0, 1));
4897
+
4898
+ export class Intent {
4899
+
4900
+ static __wrap(ptr) {
4901
+ ptr = ptr >>> 0;
4902
+ const obj = Object.create(Intent.prototype);
4903
+ obj.__wbg_ptr = ptr;
4904
+ IntentFinalization.register(obj, obj.__wbg_ptr, obj);
4905
+ return obj;
4906
+ }
4907
+
4908
+ __destroy_into_raw() {
4909
+ const ptr = this.__wbg_ptr;
4910
+ this.__wbg_ptr = 0;
4911
+ IntentFinalization.unregister(this);
4912
+ return ptr;
4913
+ }
4914
+
4915
+ free() {
4916
+ const ptr = this.__destroy_into_raw();
4917
+ wasm.__wbg_intent_free(ptr, 0);
4918
+ }
4919
+ /**
4920
+ * @returns {string}
4921
+ */
4922
+ get id() {
4923
+ let deferred1_0;
4924
+ let deferred1_1;
4925
+ try {
4926
+ const ret = wasm.__wbg_get_intent_id(this.__wbg_ptr);
4927
+ deferred1_0 = ret[0];
4928
+ deferred1_1 = ret[1];
4929
+ return getStringFromWasm0(ret[0], ret[1]);
4930
+ } finally {
4931
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
4932
+ }
4933
+ }
4934
+ /**
4935
+ * @param {string} arg0
4936
+ */
4937
+ set id(arg0) {
4938
+ const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
4939
+ const len0 = WASM_VECTOR_LEN;
4940
+ wasm.__wbg_set_attachment_mimeType(this.__wbg_ptr, ptr0, len0);
4941
+ }
4942
+ /**
4943
+ * @returns {string}
4944
+ */
4945
+ get actionId() {
4946
+ let deferred1_0;
4947
+ let deferred1_1;
4948
+ try {
4949
+ const ret = wasm.__wbg_get_intent_actionId(this.__wbg_ptr);
4950
+ deferred1_0 = ret[0];
4951
+ deferred1_1 = ret[1];
4952
+ return getStringFromWasm0(ret[0], ret[1]);
4953
+ } finally {
4954
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
4955
+ }
4956
+ }
4957
+ /**
4958
+ * @param {string} arg0
4959
+ */
4960
+ set actionId(arg0) {
4961
+ const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
4962
+ const len0 = WASM_VECTOR_LEN;
4963
+ wasm.__wbg_set_attachment_content(this.__wbg_ptr, ptr0, len0);
4964
+ }
4965
+ /**
4966
+ * @returns {any}
4967
+ */
4968
+ get metadata() {
4969
+ const ret = wasm.__wbg_get_intent_metadata(this.__wbg_ptr);
4970
+ return ret;
4971
+ }
4972
+ /**
4973
+ * @param {any} arg0
4974
+ */
4975
+ set metadata(arg0) {
4976
+ wasm.__wbg_set_intent_metadata(this.__wbg_ptr, arg0);
4977
+ }
4978
+ /**
4979
+ * @param {string} id
4980
+ * @param {string} action_id
4981
+ * @param {any} metadata
4982
+ */
4983
+ constructor(id, action_id, metadata) {
4984
+ const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
4985
+ const len0 = WASM_VECTOR_LEN;
4986
+ const ptr1 = passStringToWasm0(action_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
4987
+ const len1 = WASM_VECTOR_LEN;
4988
+ const ret = wasm.intent_new(ptr0, len0, ptr1, len1, metadata);
4989
+ this.__wbg_ptr = ret >>> 0;
4990
+ IntentFinalization.register(this, this.__wbg_ptr, this);
4991
+ return this;
4992
+ }
4993
+ }
4994
+ if (Symbol.dispose) Intent.prototype[Symbol.dispose] = Intent.prototype.free;
4995
+
4091
4996
  const IntoUnderlyingByteSourceFinalization = (typeof FinalizationRegistry === 'undefined')
4092
4997
  ? { register: () => {}, unregister: () => {} }
4093
4998
  : new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingbytesource_free(ptr >>> 0, 1));
@@ -4499,15 +5404,18 @@ export class ListMessagesOptions {
4499
5404
  * @param {any[] | null} [exclude_content_types]
4500
5405
  * @param {GroupMessageKind | null} [kind]
4501
5406
  * @param {string[] | null} [exclude_sender_inbox_ids]
5407
+ * @param {MessageSortBy | null} [sort_by]
5408
+ * @param {bigint | null} [inserted_after_ns]
5409
+ * @param {bigint | null} [inserted_before_ns]
4502
5410
  */
4503
- constructor(sent_before_ns, sent_after_ns, limit, delivery_status, direction, content_types, exclude_content_types, kind, exclude_sender_inbox_ids) {
5411
+ constructor(sent_before_ns, sent_after_ns, limit, delivery_status, direction, content_types, exclude_content_types, kind, exclude_sender_inbox_ids, sort_by, inserted_after_ns, inserted_before_ns) {
4504
5412
  var ptr0 = isLikeNone(content_types) ? 0 : passArrayJsValueToWasm0(content_types, wasm.__wbindgen_malloc);
4505
5413
  var len0 = WASM_VECTOR_LEN;
4506
5414
  var ptr1 = isLikeNone(exclude_content_types) ? 0 : passArrayJsValueToWasm0(exclude_content_types, wasm.__wbindgen_malloc);
4507
5415
  var len1 = WASM_VECTOR_LEN;
4508
5416
  var ptr2 = isLikeNone(exclude_sender_inbox_ids) ? 0 : passArrayJsValueToWasm0(exclude_sender_inbox_ids, wasm.__wbindgen_malloc);
4509
5417
  var len2 = WASM_VECTOR_LEN;
4510
- const ret = wasm.listmessagesoptions_new(!isLikeNone(sent_before_ns), isLikeNone(sent_before_ns) ? BigInt(0) : sent_before_ns, !isLikeNone(sent_after_ns), isLikeNone(sent_after_ns) ? BigInt(0) : sent_after_ns, !isLikeNone(limit), isLikeNone(limit) ? BigInt(0) : limit, isLikeNone(delivery_status) ? 3 : delivery_status, isLikeNone(direction) ? 2 : direction, ptr0, len0, ptr1, len1, isLikeNone(kind) ? 2 : kind, ptr2, len2);
5418
+ const ret = wasm.listmessagesoptions_new(!isLikeNone(sent_before_ns), isLikeNone(sent_before_ns) ? BigInt(0) : sent_before_ns, !isLikeNone(sent_after_ns), isLikeNone(sent_after_ns) ? BigInt(0) : sent_after_ns, !isLikeNone(limit), isLikeNone(limit) ? BigInt(0) : limit, isLikeNone(delivery_status) ? 3 : delivery_status, isLikeNone(direction) ? 2 : direction, ptr0, len0, ptr1, len1, isLikeNone(kind) ? 2 : kind, ptr2, len2, isLikeNone(sort_by) ? 2 : sort_by, !isLikeNone(inserted_after_ns), isLikeNone(inserted_after_ns) ? BigInt(0) : inserted_after_ns, !isLikeNone(inserted_before_ns), isLikeNone(inserted_before_ns) ? BigInt(0) : inserted_before_ns);
4511
5419
  this.__wbg_ptr = ret >>> 0;
4512
5420
  ListMessagesOptionsFinalization.register(this, this.__wbg_ptr, this);
4513
5421
  return this;
@@ -4650,6 +5558,45 @@ export class ListMessagesOptions {
4650
5558
  var len0 = WASM_VECTOR_LEN;
4651
5559
  wasm.__wbg_set_listmessagesoptions_excludeSenderInboxIds(this.__wbg_ptr, ptr0, len0);
4652
5560
  }
5561
+ /**
5562
+ * @returns {MessageSortBy | undefined}
5563
+ */
5564
+ get sortBy() {
5565
+ const ret = wasm.__wbg_get_listmessagesoptions_sortBy(this.__wbg_ptr);
5566
+ return ret === 2 ? undefined : ret;
5567
+ }
5568
+ /**
5569
+ * @param {MessageSortBy | null} [arg0]
5570
+ */
5571
+ set sortBy(arg0) {
5572
+ wasm.__wbg_set_listmessagesoptions_sortBy(this.__wbg_ptr, isLikeNone(arg0) ? 2 : arg0);
5573
+ }
5574
+ /**
5575
+ * @returns {bigint | undefined}
5576
+ */
5577
+ get insertedAfterNs() {
5578
+ const ret = wasm.__wbg_get_listmessagesoptions_insertedAfterNs(this.__wbg_ptr);
5579
+ return ret[0] === 0 ? undefined : ret[1];
5580
+ }
5581
+ /**
5582
+ * @param {bigint | null} [arg0]
5583
+ */
5584
+ set insertedAfterNs(arg0) {
5585
+ wasm.__wbg_set_listmessagesoptions_insertedAfterNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
5586
+ }
5587
+ /**
5588
+ * @returns {bigint | undefined}
5589
+ */
5590
+ get insertedBeforeNs() {
5591
+ const ret = wasm.__wbg_get_listmessagesoptions_insertedBeforeNs(this.__wbg_ptr);
5592
+ return ret[0] === 0 ? undefined : ret[1];
5593
+ }
5594
+ /**
5595
+ * @param {bigint | null} [arg0]
5596
+ */
5597
+ set insertedBeforeNs(arg0) {
5598
+ wasm.__wbg_set_listmessagesoptions_insertedBeforeNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
5599
+ }
4653
5600
  }
4654
5601
  if (Symbol.dispose) ListMessagesOptions.prototype[Symbol.dispose] = ListMessagesOptions.prototype.free;
4655
5602
 
@@ -4790,14 +5737,14 @@ export class Message {
4790
5737
  * @returns {bigint}
4791
5738
  */
4792
5739
  get sentAtNs() {
4793
- const ret = wasm.__wbg_get_apistats_upload_key_package(this.__wbg_ptr);
5740
+ const ret = wasm.__wbg_get_message_sentAtNs(this.__wbg_ptr);
4794
5741
  return ret;
4795
5742
  }
4796
5743
  /**
4797
5744
  * @param {bigint} arg0
4798
5745
  */
4799
5746
  set sentAtNs(arg0) {
4800
- wasm.__wbg_set_apistats_upload_key_package(this.__wbg_ptr, arg0);
5747
+ wasm.__wbg_set_message_sentAtNs(this.__wbg_ptr, arg0);
4801
5748
  }
4802
5749
  /**
4803
5750
  * @returns {string}
@@ -5089,7 +6036,7 @@ export class MetadataFieldChange {
5089
6036
  set fieldName(arg0) {
5090
6037
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
5091
6038
  const len0 = WASM_VECTOR_LEN;
5092
- wasm.__wbg_set_groupmember_inboxId(this.__wbg_ptr, ptr0, len0);
6039
+ wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
5093
6040
  }
5094
6041
  /**
5095
6042
  * @returns {string | undefined}
@@ -5547,7 +6494,7 @@ export class Reaction {
5547
6494
  set reference(arg0) {
5548
6495
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
5549
6496
  const len0 = WASM_VECTOR_LEN;
5550
- wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
6497
+ wasm.__wbg_set_contenttypeid_authorityId(this.__wbg_ptr, ptr0, len0);
5551
6498
  }
5552
6499
  /**
5553
6500
  * @returns {string}
@@ -5689,7 +6636,7 @@ export class ReactionPayload {
5689
6636
  set reference(arg0) {
5690
6637
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
5691
6638
  const len0 = WASM_VECTOR_LEN;
5692
- wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
6639
+ wasm.__wbg_set_contenttypeid_authorityId(this.__wbg_ptr, ptr0, len0);
5693
6640
  }
5694
6641
  /**
5695
6642
  * @returns {string}
@@ -5840,7 +6787,7 @@ export class RemoteAttachment {
5840
6787
  set url(arg0) {
5841
6788
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
5842
6789
  const len0 = WASM_VECTOR_LEN;
5843
- wasm.__wbg_set_conversationdebuginfo_forkDetails(this.__wbg_ptr, ptr0, len0);
6790
+ wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
5844
6791
  }
5845
6792
  /**
5846
6793
  * @returns {string}
@@ -5863,7 +6810,7 @@ export class RemoteAttachment {
5863
6810
  set contentDigest(arg0) {
5864
6811
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
5865
6812
  const len0 = WASM_VECTOR_LEN;
5866
- wasm.__wbg_set_conversationdebuginfo_localCommitLog(this.__wbg_ptr, ptr0, len0);
6813
+ wasm.__wbg_set_remoteattachment_contentDigest(this.__wbg_ptr, ptr0, len0);
5867
6814
  }
5868
6815
  /**
5869
6816
  * @returns {Uint8Array}
@@ -5880,7 +6827,7 @@ export class RemoteAttachment {
5880
6827
  set secret(arg0) {
5881
6828
  const ptr0 = passArray8ToWasm0(arg0, wasm.__wbindgen_malloc);
5882
6829
  const len0 = WASM_VECTOR_LEN;
5883
- wasm.__wbg_set_conversationdebuginfo_remoteCommitLog(this.__wbg_ptr, ptr0, len0);
6830
+ wasm.__wbg_set_remoteattachment_secret(this.__wbg_ptr, ptr0, len0);
5884
6831
  }
5885
6832
  /**
5886
6833
  * @returns {Uint8Array}
@@ -5940,17 +6887,17 @@ export class RemoteAttachment {
5940
6887
  wasm.__wbg_set_remoteattachment_scheme(this.__wbg_ptr, ptr0, len0);
5941
6888
  }
5942
6889
  /**
5943
- * @returns {bigint}
6890
+ * @returns {number}
5944
6891
  */
5945
6892
  get contentLength() {
5946
- const ret = wasm.__wbg_get_conversationdebuginfo_epoch(this.__wbg_ptr);
5947
- return ret;
6893
+ const ret = wasm.__wbg_get_remoteattachment_contentLength(this.__wbg_ptr);
6894
+ return ret >>> 0;
5948
6895
  }
5949
6896
  /**
5950
- * @param {bigint} arg0
6897
+ * @param {number} arg0
5951
6898
  */
5952
6899
  set contentLength(arg0) {
5953
- wasm.__wbg_set_conversationdebuginfo_epoch(this.__wbg_ptr, arg0);
6900
+ wasm.__wbg_set_remoteattachment_contentLength(this.__wbg_ptr, arg0);
5954
6901
  }
5955
6902
  /**
5956
6903
  * @returns {string | undefined}
@@ -6100,7 +7047,7 @@ export class RemoteAttachmentInfo {
6100
7047
  set url(arg0) {
6101
7048
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
6102
7049
  const len0 = WASM_VECTOR_LEN;
6103
- wasm.__wbg_set_remoteattachmentinfo_url(this.__wbg_ptr, ptr0, len0);
7050
+ wasm.__wbg_set_action_label(this.__wbg_ptr, ptr0, len0);
6104
7051
  }
6105
7052
  /**
6106
7053
  * @returns {Uint8Array}
@@ -6175,6 +7122,109 @@ export class RemoteAttachmentInfo {
6175
7122
  }
6176
7123
  if (Symbol.dispose) RemoteAttachmentInfo.prototype[Symbol.dispose] = RemoteAttachmentInfo.prototype.free;
6177
7124
 
7125
+ const ReplyFinalization = (typeof FinalizationRegistry === 'undefined')
7126
+ ? { register: () => {}, unregister: () => {} }
7127
+ : new FinalizationRegistry(ptr => wasm.__wbg_reply_free(ptr >>> 0, 1));
7128
+
7129
+ export class Reply {
7130
+
7131
+ static __wrap(ptr) {
7132
+ ptr = ptr >>> 0;
7133
+ const obj = Object.create(Reply.prototype);
7134
+ obj.__wbg_ptr = ptr;
7135
+ ReplyFinalization.register(obj, obj.__wbg_ptr, obj);
7136
+ return obj;
7137
+ }
7138
+
7139
+ __destroy_into_raw() {
7140
+ const ptr = this.__wbg_ptr;
7141
+ this.__wbg_ptr = 0;
7142
+ ReplyFinalization.unregister(this);
7143
+ return ptr;
7144
+ }
7145
+
7146
+ free() {
7147
+ const ptr = this.__destroy_into_raw();
7148
+ wasm.__wbg_reply_free(ptr, 0);
7149
+ }
7150
+ /**
7151
+ * @returns {EncodedContent}
7152
+ */
7153
+ get content() {
7154
+ const ret = wasm.__wbg_get_reply_content(this.__wbg_ptr);
7155
+ return EncodedContent.__wrap(ret);
7156
+ }
7157
+ /**
7158
+ * @param {EncodedContent} arg0
7159
+ */
7160
+ set content(arg0) {
7161
+ _assertClass(arg0, EncodedContent);
7162
+ var ptr0 = arg0.__destroy_into_raw();
7163
+ wasm.__wbg_set_reply_content(this.__wbg_ptr, ptr0);
7164
+ }
7165
+ /**
7166
+ * @returns {string}
7167
+ */
7168
+ get reference() {
7169
+ let deferred1_0;
7170
+ let deferred1_1;
7171
+ try {
7172
+ const ret = wasm.__wbg_get_reply_reference(this.__wbg_ptr);
7173
+ deferred1_0 = ret[0];
7174
+ deferred1_1 = ret[1];
7175
+ return getStringFromWasm0(ret[0], ret[1]);
7176
+ } finally {
7177
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
7178
+ }
7179
+ }
7180
+ /**
7181
+ * @param {string} arg0
7182
+ */
7183
+ set reference(arg0) {
7184
+ const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
7185
+ const len0 = WASM_VECTOR_LEN;
7186
+ wasm.__wbg_set_reply_reference(this.__wbg_ptr, ptr0, len0);
7187
+ }
7188
+ /**
7189
+ * @returns {string | undefined}
7190
+ */
7191
+ get referenceInboxId() {
7192
+ const ret = wasm.__wbg_get_reply_referenceInboxId(this.__wbg_ptr);
7193
+ let v1;
7194
+ if (ret[0] !== 0) {
7195
+ v1 = getStringFromWasm0(ret[0], ret[1]).slice();
7196
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
7197
+ }
7198
+ return v1;
7199
+ }
7200
+ /**
7201
+ * @param {string | null} [arg0]
7202
+ */
7203
+ set referenceInboxId(arg0) {
7204
+ var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
7205
+ var len0 = WASM_VECTOR_LEN;
7206
+ wasm.__wbg_set_reply_referenceInboxId(this.__wbg_ptr, ptr0, len0);
7207
+ }
7208
+ /**
7209
+ * @param {EncodedContent} content
7210
+ * @param {string} reference
7211
+ * @param {string | null} [referenceInboxId]
7212
+ */
7213
+ constructor(content, reference, referenceInboxId) {
7214
+ _assertClass(content, EncodedContent);
7215
+ var ptr0 = content.__destroy_into_raw();
7216
+ const ptr1 = passStringToWasm0(reference, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
7217
+ const len1 = WASM_VECTOR_LEN;
7218
+ var ptr2 = isLikeNone(referenceInboxId) ? 0 : passStringToWasm0(referenceInboxId, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
7219
+ var len2 = WASM_VECTOR_LEN;
7220
+ const ret = wasm.reply_new(ptr0, ptr1, len1, ptr2, len2);
7221
+ this.__wbg_ptr = ret >>> 0;
7222
+ ReplyFinalization.register(this, this.__wbg_ptr, this);
7223
+ return this;
7224
+ }
7225
+ }
7226
+ if (Symbol.dispose) Reply.prototype[Symbol.dispose] = Reply.prototype.free;
7227
+
6178
7228
  const SendMessageOptsFinalization = (typeof FinalizationRegistry === 'undefined')
6179
7229
  ? { register: () => {}, unregister: () => {} }
6180
7230
  : new FinalizationRegistry(ptr => wasm.__wbg_sendmessageopts_free(ptr >>> 0, 1));
@@ -6387,7 +7437,7 @@ export class TextContent {
6387
7437
  set content(arg0) {
6388
7438
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
6389
7439
  const len0 = WASM_VECTOR_LEN;
6390
- wasm.__wbg_set_textcontent_content(this.__wbg_ptr, ptr0, len0);
7440
+ wasm.__wbg_set_groupmember_inboxId(this.__wbg_ptr, ptr0, len0);
6391
7441
  }
6392
7442
  }
6393
7443
  if (Symbol.dispose) TextContent.prototype[Symbol.dispose] = TextContent.prototype.free;
@@ -6461,7 +7511,7 @@ export class TransactionMetadata {
6461
7511
  set currency(arg0) {
6462
7512
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
6463
7513
  const len0 = WASM_VECTOR_LEN;
6464
- wasm.__wbg_set_reaction_content(this.__wbg_ptr, ptr0, len0);
7514
+ wasm.__wbg_set_remoteattachment_secret(this.__wbg_ptr, ptr0, len0);
6465
7515
  }
6466
7516
  /**
6467
7517
  * @returns {number}
@@ -6533,7 +7583,7 @@ export class TransactionMetadata {
6533
7583
  set toAddress(arg0) {
6534
7584
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
6535
7585
  const len0 = WASM_VECTOR_LEN;
6536
- wasm.__wbg_set_transactionmetadata_toAddress(this.__wbg_ptr, ptr0, len0);
7586
+ wasm.__wbg_set_remoteattachment_nonce(this.__wbg_ptr, ptr0, len0);
6537
7587
  }
6538
7588
  }
6539
7589
  if (Symbol.dispose) TransactionMetadata.prototype[Symbol.dispose] = TransactionMetadata.prototype.free;
@@ -6749,10 +7799,14 @@ async function __wbg_load(module, imports) {
6749
7799
  function __wbg_get_imports() {
6750
7800
  const imports = {};
6751
7801
  imports.wbg = {};
6752
- imports.wbg.__wbg_Error_e17e777aac105295 = function(arg0, arg1) {
7802
+ imports.wbg.__wbg_Error_e83987f665cf5504 = function(arg0, arg1) {
6753
7803
  const ret = Error(getStringFromWasm0(arg0, arg1));
6754
7804
  return ret;
6755
7805
  };
7806
+ imports.wbg.__wbg_Number_bb48ca12f395cd08 = function(arg0) {
7807
+ const ret = Number(arg0);
7808
+ return ret;
7809
+ };
6756
7810
  imports.wbg.__wbg_String_8f0eb39a4a4c2f66 = function(arg0, arg1) {
6757
7811
  const ret = String(arg1);
6758
7812
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -6760,56 +7814,141 @@ function __wbg_get_imports() {
6760
7814
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
6761
7815
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
6762
7816
  };
6763
- imports.wbg.__wbg_abort_67e1b49bf6614565 = function(arg0) {
6764
- arg0.abort();
7817
+ imports.wbg.__wbg___wbindgen_bigint_get_as_i64_f3ebc5a755000afd = function(arg0, arg1) {
7818
+ const v = arg1;
7819
+ const ret = typeof(v) === 'bigint' ? v : undefined;
7820
+ getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
7821
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
7822
+ };
7823
+ imports.wbg.__wbg___wbindgen_boolean_get_6d5a1ee65bab5f68 = function(arg0) {
7824
+ const v = arg0;
7825
+ const ret = typeof(v) === 'boolean' ? v : undefined;
7826
+ return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
7827
+ };
7828
+ imports.wbg.__wbg___wbindgen_debug_string_df47ffb5e35e6763 = function(arg0, arg1) {
7829
+ const ret = debugString(arg1);
7830
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
7831
+ const len1 = WASM_VECTOR_LEN;
7832
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
7833
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
7834
+ };
7835
+ imports.wbg.__wbg___wbindgen_in_bb933bd9e1b3bc0f = function(arg0, arg1) {
7836
+ const ret = arg0 in arg1;
7837
+ return ret;
7838
+ };
7839
+ imports.wbg.__wbg___wbindgen_is_bigint_cb320707dcd35f0b = function(arg0) {
7840
+ const ret = typeof(arg0) === 'bigint';
7841
+ return ret;
7842
+ };
7843
+ imports.wbg.__wbg___wbindgen_is_function_ee8a6c5833c90377 = function(arg0) {
7844
+ const ret = typeof(arg0) === 'function';
7845
+ return ret;
7846
+ };
7847
+ imports.wbg.__wbg___wbindgen_is_null_5e69f72e906cc57c = function(arg0) {
7848
+ const ret = arg0 === null;
7849
+ return ret;
7850
+ };
7851
+ imports.wbg.__wbg___wbindgen_is_object_c818261d21f283a4 = function(arg0) {
7852
+ const val = arg0;
7853
+ const ret = typeof(val) === 'object' && val !== null;
7854
+ return ret;
7855
+ };
7856
+ imports.wbg.__wbg___wbindgen_is_string_fbb76cb2940daafd = function(arg0) {
7857
+ const ret = typeof(arg0) === 'string';
7858
+ return ret;
7859
+ };
7860
+ imports.wbg.__wbg___wbindgen_is_undefined_2d472862bd29a478 = function(arg0) {
7861
+ const ret = arg0 === undefined;
7862
+ return ret;
6765
7863
  };
6766
- imports.wbg.__wbg_abort_d830bf2e9aa6ec5b = function(arg0, arg1) {
7864
+ imports.wbg.__wbg___wbindgen_jsval_eq_6b13ab83478b1c50 = function(arg0, arg1) {
7865
+ const ret = arg0 === arg1;
7866
+ return ret;
7867
+ };
7868
+ imports.wbg.__wbg___wbindgen_jsval_loose_eq_b664b38a2f582147 = function(arg0, arg1) {
7869
+ const ret = arg0 == arg1;
7870
+ return ret;
7871
+ };
7872
+ imports.wbg.__wbg___wbindgen_number_get_a20bf9b85341449d = function(arg0, arg1) {
7873
+ const obj = arg1;
7874
+ const ret = typeof(obj) === 'number' ? obj : undefined;
7875
+ getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
7876
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
7877
+ };
7878
+ imports.wbg.__wbg___wbindgen_string_get_e4f06c90489ad01b = function(arg0, arg1) {
7879
+ const obj = arg1;
7880
+ const ret = typeof(obj) === 'string' ? obj : undefined;
7881
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
7882
+ var len1 = WASM_VECTOR_LEN;
7883
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
7884
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
7885
+ };
7886
+ imports.wbg.__wbg___wbindgen_throw_b855445ff6a94295 = function(arg0, arg1) {
7887
+ throw new Error(getStringFromWasm0(arg0, arg1));
7888
+ };
7889
+ imports.wbg.__wbg___wbindgen_try_into_number_e60ef6e208abc399 = function(arg0) {
7890
+ let result;
7891
+ try { result = +arg0 } catch (e) { result = e }
7892
+ const ret = result;
7893
+ return ret;
7894
+ };
7895
+ imports.wbg.__wbg__wbg_cb_unref_2454a539ea5790d9 = function(arg0) {
7896
+ arg0._wbg_cb_unref();
7897
+ };
7898
+ imports.wbg.__wbg_abort_28ad55c5825b004d = function(arg0, arg1) {
6767
7899
  arg0.abort(arg1);
6768
7900
  };
6769
- imports.wbg.__wbg_add_bd7fa428f539a577 = function(arg0, arg1) {
6770
- const ret = arg0.add(arg1);
7901
+ imports.wbg.__wbg_abort_e7eb059f72f9ed0c = function(arg0) {
7902
+ arg0.abort();
7903
+ };
7904
+ imports.wbg.__wbg_action_new = function(arg0) {
7905
+ const ret = Action.__wrap(arg0);
7906
+ return ret;
7907
+ };
7908
+ imports.wbg.__wbg_action_unwrap = function(arg0) {
7909
+ const ret = Action.__unwrap(arg0);
6771
7910
  return ret;
6772
7911
  };
6773
- imports.wbg.__wbg_append_72a3c0addd2bce38 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
7912
+ imports.wbg.__wbg_append_b577eb3a177bc0fa = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
6774
7913
  arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
6775
7914
  }, arguments) };
6776
- imports.wbg.__wbg_arrayBuffer_9c99b8e2809e8cbb = function() { return handleError(function (arg0) {
7915
+ imports.wbg.__wbg_arrayBuffer_b375eccb84b4ddf3 = function() { return handleError(function (arg0) {
6777
7916
  const ret = arg0.arrayBuffer();
6778
7917
  return ret;
6779
7918
  }, arguments) };
6780
- imports.wbg.__wbg_body_4851aa049324a851 = function(arg0) {
7919
+ imports.wbg.__wbg_body_587542b2fd8e06c0 = function(arg0) {
6781
7920
  const ret = arg0.body;
6782
7921
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
6783
7922
  };
6784
- imports.wbg.__wbg_buffer_8d40b1d762fb3c66 = function(arg0) {
7923
+ imports.wbg.__wbg_buffer_ccc4520b36d3ccf4 = function(arg0) {
6785
7924
  const ret = arg0.buffer;
6786
7925
  return ret;
6787
7926
  };
6788
- imports.wbg.__wbg_byobRequest_2c036bceca1e6037 = function(arg0) {
7927
+ imports.wbg.__wbg_byobRequest_2344e6975f27456e = function(arg0) {
6789
7928
  const ret = arg0.byobRequest;
6790
7929
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
6791
7930
  };
6792
- imports.wbg.__wbg_byteLength_331a6b5545834024 = function(arg0) {
7931
+ imports.wbg.__wbg_byteLength_bcd42e4025299788 = function(arg0) {
6793
7932
  const ret = arg0.byteLength;
6794
7933
  return ret;
6795
7934
  };
6796
- imports.wbg.__wbg_byteOffset_49a5b5608000358b = function(arg0) {
7935
+ imports.wbg.__wbg_byteOffset_ca3a6cf7944b364b = function(arg0) {
6797
7936
  const ret = arg0.byteOffset;
6798
7937
  return ret;
6799
7938
  };
6800
- imports.wbg.__wbg_call_13410aac570ffff7 = function() { return handleError(function (arg0, arg1) {
6801
- const ret = arg0.call(arg1);
7939
+ imports.wbg.__wbg_call_525440f72fbfc0ea = function() { return handleError(function (arg0, arg1, arg2) {
7940
+ const ret = arg0.call(arg1, arg2);
6802
7941
  return ret;
6803
7942
  }, arguments) };
6804
- imports.wbg.__wbg_call_a5400b25a865cfd8 = function() { return handleError(function (arg0, arg1, arg2) {
6805
- const ret = arg0.call(arg1, arg2);
7943
+ imports.wbg.__wbg_call_e762c39fa8ea36bf = function() { return handleError(function (arg0, arg1) {
7944
+ const ret = arg0.call(arg1);
6806
7945
  return ret;
6807
7946
  }, arguments) };
6808
- imports.wbg.__wbg_cancel_8bb5b8f4906b658a = function(arg0) {
7947
+ imports.wbg.__wbg_cancel_48ab6f9dc366e369 = function(arg0) {
6809
7948
  const ret = arg0.cancel();
6810
7949
  return ret;
6811
7950
  };
6812
- imports.wbg.__wbg_catch_c80ecae90cb8ed4e = function(arg0, arg1) {
7951
+ imports.wbg.__wbg_catch_943836faa5d29bfb = function(arg0, arg1) {
6813
7952
  const ret = arg0.catch(arg1);
6814
7953
  return ret;
6815
7954
  };
@@ -6825,30 +7964,24 @@ function __wbg_get_imports() {
6825
7964
  const ret = clearTimeout(arg0);
6826
7965
  return ret;
6827
7966
  };
6828
- imports.wbg.__wbg_clearTimeout_6222fede17abcb1a = function(arg0) {
7967
+ imports.wbg.__wbg_clearTimeout_7a42b49784aea641 = function(arg0) {
6829
7968
  const ret = clearTimeout(arg0);
6830
7969
  return ret;
6831
7970
  };
6832
- imports.wbg.__wbg_clear_dcb6cf8aaaa1dbd5 = function(arg0) {
6833
- arg0.clear();
6834
- };
6835
- imports.wbg.__wbg_clear_f94469174061203f = function(arg0) {
6836
- arg0.clear();
6837
- };
6838
7971
  imports.wbg.__wbg_client_new = function(arg0) {
6839
7972
  const ret = Client.__wrap(arg0);
6840
7973
  return ret;
6841
7974
  };
6842
- imports.wbg.__wbg_close_9870d6f25f3c1f31 = function(arg0) {
6843
- arg0.close();
6844
- };
6845
- imports.wbg.__wbg_close_cccada6053ee3a65 = function() { return handleError(function (arg0) {
7975
+ imports.wbg.__wbg_close_5a6caed3231b68cd = function() { return handleError(function (arg0) {
6846
7976
  arg0.close();
6847
7977
  }, arguments) };
6848
- imports.wbg.__wbg_close_d71a78219dc23e91 = function() { return handleError(function (arg0) {
7978
+ imports.wbg.__wbg_close_6956df845478561a = function() { return handleError(function (arg0) {
6849
7979
  arg0.close();
6850
7980
  }, arguments) };
6851
- imports.wbg.__wbg_code_89056d52bf1a8bb0 = function(arg0) {
7981
+ imports.wbg.__wbg_close_6b987dbb02427741 = function(arg0) {
7982
+ arg0.close();
7983
+ };
7984
+ imports.wbg.__wbg_code_218f5fdf8c7fcabd = function(arg0) {
6852
7985
  const ret = arg0.code;
6853
7986
  return ret;
6854
7987
  };
@@ -6864,11 +7997,11 @@ function __wbg_get_imports() {
6864
7997
  const ret = ConversationListItem.__wrap(arg0);
6865
7998
  return ret;
6866
7999
  };
6867
- imports.wbg.__wbg_createSyncAccessHandle_d06aab2e41a339b2 = function(arg0) {
8000
+ imports.wbg.__wbg_createSyncAccessHandle_63bd856e74273e32 = function(arg0) {
6868
8001
  const ret = arg0.createSyncAccessHandle();
6869
8002
  return ret;
6870
8003
  };
6871
- imports.wbg.__wbg_create_c81beed67ad2881c = function(arg0) {
8004
+ imports.wbg.__wbg_create_f2b6bfa66a83e88e = function(arg0) {
6872
8005
  const ret = Object.create(arg0);
6873
8006
  return ret;
6874
8007
  };
@@ -6876,10 +8009,10 @@ function __wbg_get_imports() {
6876
8009
  const ret = arg0.crypto;
6877
8010
  return ret;
6878
8011
  };
6879
- imports.wbg.__wbg_debug_7f3000e7358ea482 = function(arg0, arg1, arg2, arg3) {
8012
+ imports.wbg.__wbg_debug_e55e1461940eb14d = function(arg0, arg1, arg2, arg3) {
6880
8013
  console.debug(arg0, arg1, arg2, arg3);
6881
8014
  };
6882
- imports.wbg.__wbg_debug_c906769d2f88c17b = function(arg0) {
8015
+ imports.wbg.__wbg_debug_f4b0c59db649db48 = function(arg0) {
6883
8016
  console.debug(arg0);
6884
8017
  };
6885
8018
  imports.wbg.__wbg_decodedmessage_new = function(arg0) {
@@ -6890,32 +8023,21 @@ function __wbg_get_imports() {
6890
8023
  const ret = DecodedMessage.__unwrap(arg0);
6891
8024
  return ret;
6892
8025
  };
6893
- imports.wbg.__wbg_delete_34b4d9b89634f0c0 = function(arg0, arg1) {
6894
- const ret = arg0.delete(arg1);
6895
- return ret;
6896
- };
6897
- imports.wbg.__wbg_delete_ded22f5899363180 = function(arg0, arg1) {
6898
- const ret = arg0.delete(arg1);
6899
- return ret;
6900
- };
6901
- imports.wbg.__wbg_done_75ed0ee6dd243d9d = function(arg0) {
8026
+ imports.wbg.__wbg_done_2042aa2670fb1db1 = function(arg0) {
6902
8027
  const ret = arg0.done;
6903
8028
  return ret;
6904
8029
  };
6905
- imports.wbg.__wbg_enqueue_452bc2343d1c2ff9 = function() { return handleError(function (arg0, arg1) {
8030
+ imports.wbg.__wbg_enqueue_7b18a650aec77898 = function() { return handleError(function (arg0, arg1) {
6906
8031
  arg0.enqueue(arg1);
6907
8032
  }, arguments) };
6908
- imports.wbg.__wbg_entries_1a3c3b9544532397 = function(arg0) {
8033
+ imports.wbg.__wbg_entries_a1e792d46512c8bf = function(arg0) {
6909
8034
  const ret = arg0.entries();
6910
8035
  return ret;
6911
8036
  };
6912
- imports.wbg.__wbg_entries_2be2f15bd5554996 = function(arg0) {
8037
+ imports.wbg.__wbg_entries_e171b586f8f6bdbf = function(arg0) {
6913
8038
  const ret = Object.entries(arg0);
6914
8039
  return ret;
6915
8040
  };
6916
- imports.wbg.__wbg_error_0889f151acea569e = function(arg0, arg1, arg2, arg3) {
6917
- console.error(arg0, arg1, arg2, arg3);
6918
- };
6919
8041
  imports.wbg.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
6920
8042
  let deferred0_0;
6921
8043
  let deferred0_1;
@@ -6927,133 +8049,132 @@ function __wbg_get_imports() {
6927
8049
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
6928
8050
  }
6929
8051
  };
6930
- imports.wbg.__wbg_error_99981e16d476aa5c = function(arg0) {
8052
+ imports.wbg.__wbg_error_a7f8fbb0523dae15 = function(arg0) {
6931
8053
  console.error(arg0);
6932
8054
  };
8055
+ imports.wbg.__wbg_error_d8b22cf4e59a6791 = function(arg0, arg1, arg2, arg3) {
8056
+ console.error(arg0, arg1, arg2, arg3);
8057
+ };
6933
8058
  imports.wbg.__wbg_error_e98c298703cffa97 = function(arg0, arg1) {
6934
8059
  console.error(getStringFromWasm0(arg0, arg1));
6935
8060
  };
6936
- imports.wbg.__wbg_fetch_36d024dbd9192353 = function(arg0, arg1, arg2) {
6937
- const ret = arg0.fetch(arg1, arg2);
6938
- return ret;
6939
- };
6940
8061
  imports.wbg.__wbg_fetch_53eef7df7b439a49 = function(arg0, arg1) {
6941
8062
  const ret = fetch(arg0, arg1);
6942
8063
  return ret;
6943
8064
  };
6944
- imports.wbg.__wbg_fetch_87aed7f306ec6d63 = function(arg0, arg1) {
6945
- const ret = arg0.fetch(arg1);
8065
+ imports.wbg.__wbg_fetch_74a3e84ebd2c9a0e = function(arg0) {
8066
+ const ret = fetch(arg0);
6946
8067
  return ret;
6947
8068
  };
6948
- imports.wbg.__wbg_fetch_f156d10be9a5c88a = function(arg0) {
6949
- const ret = fetch(arg0);
8069
+ imports.wbg.__wbg_fetch_8725865ff47e7fcc = function(arg0, arg1, arg2) {
8070
+ const ret = arg0.fetch(arg1, arg2);
8071
+ return ret;
8072
+ };
8073
+ imports.wbg.__wbg_fetch_f8ba0e29a9d6de0d = function(arg0, arg1) {
8074
+ const ret = arg0.fetch(arg1);
6950
8075
  return ret;
6951
8076
  };
6952
- imports.wbg.__wbg_fill_c8751cf67b766c70 = function(arg0, arg1, arg2, arg3) {
8077
+ imports.wbg.__wbg_fill_f6f1b48c9e4bb626 = function(arg0, arg1, arg2, arg3) {
6953
8078
  const ret = arg0.fill(arg1, arg2 >>> 0, arg3 >>> 0);
6954
8079
  return ret;
6955
8080
  };
6956
- imports.wbg.__wbg_flush_d2487a24f3bc3cf4 = function() { return handleError(function (arg0) {
8081
+ imports.wbg.__wbg_flush_b49c3916f841ba87 = function() { return handleError(function (arg0) {
6957
8082
  arg0.flush();
6958
8083
  }, arguments) };
6959
- imports.wbg.__wbg_from_88bc52ce20ba6318 = function(arg0) {
8084
+ imports.wbg.__wbg_from_a4ad7cbddd0d7135 = function(arg0) {
6960
8085
  const ret = Array.from(arg0);
6961
8086
  return ret;
6962
8087
  };
6963
- imports.wbg.__wbg_getDate_9615e288fc892247 = function(arg0) {
8088
+ imports.wbg.__wbg_getDate_5a70d2f6a482d99f = function(arg0) {
6964
8089
  const ret = arg0.getDate();
6965
8090
  return ret;
6966
8091
  };
6967
- imports.wbg.__wbg_getDay_c9c4f57fb4ef6fef = function(arg0) {
8092
+ imports.wbg.__wbg_getDay_a150a3fd757619d1 = function(arg0) {
6968
8093
  const ret = arg0.getDay();
6969
8094
  return ret;
6970
8095
  };
6971
- imports.wbg.__wbg_getDirectoryHandle_0fb26677897f1e21 = function(arg0, arg1, arg2, arg3) {
8096
+ imports.wbg.__wbg_getDirectoryHandle_45b9305ebb42f05a = function(arg0, arg1, arg2, arg3) {
6972
8097
  const ret = arg0.getDirectoryHandle(getStringFromWasm0(arg1, arg2), arg3);
6973
8098
  return ret;
6974
8099
  };
6975
- imports.wbg.__wbg_getDirectory_8564f4b4ae7ee35c = function(arg0) {
8100
+ imports.wbg.__wbg_getDirectory_7e7a55f640412401 = function(arg0) {
6976
8101
  const ret = arg0.getDirectory();
6977
8102
  return ret;
6978
8103
  };
6979
- imports.wbg.__wbg_getFileHandle_9f23d09c2497fa5f = function(arg0, arg1, arg2, arg3) {
8104
+ imports.wbg.__wbg_getFileHandle_acd9b5e4404b60dd = function(arg0, arg1, arg2, arg3) {
6980
8105
  const ret = arg0.getFileHandle(getStringFromWasm0(arg1, arg2), arg3);
6981
8106
  return ret;
6982
8107
  };
6983
- imports.wbg.__wbg_getFullYear_e351a9fa7d2fab83 = function(arg0) {
8108
+ imports.wbg.__wbg_getFullYear_8240d5a15191feae = function(arg0) {
6984
8109
  const ret = arg0.getFullYear();
6985
8110
  return ret;
6986
8111
  };
6987
- imports.wbg.__wbg_getHours_4cc14de357c9e723 = function(arg0) {
8112
+ imports.wbg.__wbg_getHours_5e476e0b9ebc42d1 = function(arg0) {
6988
8113
  const ret = arg0.getHours();
6989
8114
  return ret;
6990
8115
  };
6991
- imports.wbg.__wbg_getMinutes_6cde8fdd08b0c2ec = function(arg0) {
8116
+ imports.wbg.__wbg_getMinutes_c95dfb65f1ea8f02 = function(arg0) {
6992
8117
  const ret = arg0.getMinutes();
6993
8118
  return ret;
6994
8119
  };
6995
- imports.wbg.__wbg_getMonth_8cc234bce5c8bcac = function(arg0) {
8120
+ imports.wbg.__wbg_getMonth_25c1c5a601d72773 = function(arg0) {
6996
8121
  const ret = arg0.getMonth();
6997
8122
  return ret;
6998
8123
  };
6999
- imports.wbg.__wbg_getRandomValues_3c9c0d586e575a16 = function() { return handleError(function (arg0, arg1) {
7000
- globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
7001
- }, arguments) };
7002
- imports.wbg.__wbg_getRandomValues_8e6341dd77432a34 = function() { return handleError(function (arg0, arg1) {
8124
+ imports.wbg.__wbg_getRandomValues_1c61fac11405ffdc = function() { return handleError(function (arg0, arg1) {
7003
8125
  globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
7004
8126
  }, arguments) };
7005
8127
  imports.wbg.__wbg_getRandomValues_b8f5dbd5f3995a9e = function() { return handleError(function (arg0, arg1) {
7006
8128
  arg0.getRandomValues(arg1);
7007
8129
  }, arguments) };
8130
+ imports.wbg.__wbg_getRandomValues_c51ec1a88ebf4945 = function() { return handleError(function (arg0, arg1) {
8131
+ globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
8132
+ }, arguments) };
7008
8133
  imports.wbg.__wbg_getReader_48e00749fe3f6089 = function() { return handleError(function (arg0) {
7009
8134
  const ret = arg0.getReader();
7010
8135
  return ret;
7011
8136
  }, arguments) };
7012
- imports.wbg.__wbg_getSeconds_c2f02452d804ece0 = function(arg0) {
8137
+ imports.wbg.__wbg_getSeconds_8113bf8709718eb2 = function(arg0) {
7013
8138
  const ret = arg0.getSeconds();
7014
8139
  return ret;
7015
8140
  };
7016
- imports.wbg.__wbg_getSize_56a06761973a6cd7 = function() { return handleError(function (arg0) {
8141
+ imports.wbg.__wbg_getSize_f43fed70ca1762f1 = function() { return handleError(function (arg0) {
7017
8142
  const ret = arg0.getSize();
7018
8143
  return ret;
7019
8144
  }, arguments) };
7020
- imports.wbg.__wbg_getTime_6bb3f64e0f18f817 = function(arg0) {
8145
+ imports.wbg.__wbg_getTime_14776bfb48a1bff9 = function(arg0) {
7021
8146
  const ret = arg0.getTime();
7022
8147
  return ret;
7023
8148
  };
7024
- imports.wbg.__wbg_getTimezoneOffset_1e3ddc1382e7c8b0 = function(arg0) {
8149
+ imports.wbg.__wbg_getTimezoneOffset_d391cb11d54969f8 = function(arg0) {
7025
8150
  const ret = arg0.getTimezoneOffset();
7026
8151
  return ret;
7027
8152
  };
7028
- imports.wbg.__wbg_getUint32_2dc0ed17b0324774 = function(arg0, arg1) {
8153
+ imports.wbg.__wbg_getUint32_741d4a7dc32fc0d5 = function(arg0, arg1) {
7029
8154
  const ret = arg0.getUint32(arg1 >>> 0);
7030
8155
  return ret;
7031
8156
  };
7032
- imports.wbg.__wbg_get_0da715ceaecea5c8 = function(arg0, arg1) {
8157
+ imports.wbg.__wbg_get_7bed016f185add81 = function(arg0, arg1) {
7033
8158
  const ret = arg0[arg1 >>> 0];
7034
8159
  return ret;
7035
8160
  };
7036
- imports.wbg.__wbg_get_458e874b43b18b25 = function() { return handleError(function (arg0, arg1) {
7037
- const ret = Reflect.get(arg0, arg1);
7038
- return ret;
7039
- }, arguments) };
7040
- imports.wbg.__wbg_get_5ee3191755594360 = function(arg0, arg1) {
7041
- const ret = arg0.get(arg1);
7042
- return ret;
7043
- };
7044
- imports.wbg.__wbg_getdone_f026246f6bbe58d3 = function(arg0) {
8161
+ imports.wbg.__wbg_get_done_a0463af43a1fc764 = function(arg0) {
7045
8162
  const ret = arg0.done;
7046
8163
  return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
7047
8164
  };
7048
- imports.wbg.__wbg_getindex_61bb13d19869849b = function(arg0, arg1) {
8165
+ imports.wbg.__wbg_get_efcb449f58ec27c2 = function() { return handleError(function (arg0, arg1) {
8166
+ const ret = Reflect.get(arg0, arg1);
8167
+ return ret;
8168
+ }, arguments) };
8169
+ imports.wbg.__wbg_get_index_af1d9818a935f6ae = function(arg0, arg1) {
7049
8170
  const ret = arg0[arg1 >>> 0];
7050
8171
  return ret;
7051
8172
  };
7052
- imports.wbg.__wbg_getvalue_31e5a08f61e5aa42 = function(arg0) {
8173
+ imports.wbg.__wbg_get_value_5ce96c9f81ce7398 = function(arg0) {
7053
8174
  const ret = arg0.value;
7054
8175
  return ret;
7055
8176
  };
7056
- imports.wbg.__wbg_getwithrefkey_1dc361bd10053bfe = function(arg0, arg1) {
8177
+ imports.wbg.__wbg_get_with_ref_key_1dc361bd10053bfe = function(arg0, arg1) {
7057
8178
  const ret = arg0[arg1];
7058
8179
  return ret;
7059
8180
  };
@@ -7065,15 +8186,11 @@ function __wbg_get_imports() {
7065
8186
  const ret = GroupSyncSummary.__wrap(arg0);
7066
8187
  return ret;
7067
8188
  };
7068
- imports.wbg.__wbg_has_6a9bff5f4208cfca = function(arg0, arg1) {
7069
- const ret = arg0.has(arg1);
7070
- return ret;
7071
- };
7072
- imports.wbg.__wbg_has_b89e451f638123e3 = function() { return handleError(function (arg0, arg1) {
8189
+ imports.wbg.__wbg_has_787fafc980c3ccdb = function() { return handleError(function (arg0, arg1) {
7073
8190
  const ret = Reflect.has(arg0, arg1);
7074
8191
  return ret;
7075
8192
  }, arguments) };
7076
- imports.wbg.__wbg_headers_29fec3c72865cd75 = function(arg0) {
8193
+ imports.wbg.__wbg_headers_b87d7eaba61c3278 = function(arg0) {
7077
8194
  const ret = arg0.headers;
7078
8195
  return ret;
7079
8196
  };
@@ -7089,10 +8206,10 @@ function __wbg_get_imports() {
7089
8206
  const ret = InboxState.__wrap(arg0);
7090
8207
  return ret;
7091
8208
  };
7092
- imports.wbg.__wbg_info_15c3631232fceddb = function(arg0, arg1, arg2, arg3) {
8209
+ imports.wbg.__wbg_info_68cd5b51ef7e5137 = function(arg0, arg1, arg2, arg3) {
7093
8210
  console.info(arg0, arg1, arg2, arg3);
7094
8211
  };
7095
- imports.wbg.__wbg_info_6cf68c1a86a92f6a = function(arg0) {
8212
+ imports.wbg.__wbg_info_e674a11f4f50cc0c = function(arg0) {
7096
8213
  console.info(arg0);
7097
8214
  };
7098
8215
  imports.wbg.__wbg_installation_new = function(arg0) {
@@ -7103,7 +8220,7 @@ function __wbg_get_imports() {
7103
8220
  const ret = Installation.__unwrap(arg0);
7104
8221
  return ret;
7105
8222
  };
7106
- imports.wbg.__wbg_instanceof_ArrayBuffer_67f3012529f6a2dd = function(arg0) {
8223
+ imports.wbg.__wbg_instanceof_ArrayBuffer_70beb1189ca63b38 = function(arg0) {
7107
8224
  let result;
7108
8225
  try {
7109
8226
  result = arg0 instanceof ArrayBuffer;
@@ -7113,7 +8230,7 @@ function __wbg_get_imports() {
7113
8230
  const ret = result;
7114
8231
  return ret;
7115
8232
  };
7116
- imports.wbg.__wbg_instanceof_DomException_bd63c2a0e0b53ed5 = function(arg0) {
8233
+ imports.wbg.__wbg_instanceof_DomException_83b15e7b042a0b1a = function(arg0) {
7117
8234
  let result;
7118
8235
  try {
7119
8236
  result = arg0 instanceof DOMException;
@@ -7123,7 +8240,17 @@ function __wbg_get_imports() {
7123
8240
  const ret = result;
7124
8241
  return ret;
7125
8242
  };
7126
- imports.wbg.__wbg_instanceof_Response_50fde2cd696850bf = function(arg0) {
8243
+ imports.wbg.__wbg_instanceof_Map_8579b5e2ab5437c7 = function(arg0) {
8244
+ let result;
8245
+ try {
8246
+ result = arg0 instanceof Map;
8247
+ } catch (_) {
8248
+ result = false;
8249
+ }
8250
+ const ret = result;
8251
+ return ret;
8252
+ };
8253
+ imports.wbg.__wbg_instanceof_Response_f4f3e87e07f3135c = function(arg0) {
7127
8254
  let result;
7128
8255
  try {
7129
8256
  result = arg0 instanceof Response;
@@ -7133,7 +8260,7 @@ function __wbg_get_imports() {
7133
8260
  const ret = result;
7134
8261
  return ret;
7135
8262
  };
7136
- imports.wbg.__wbg_instanceof_Uint8Array_9a8378d955933db7 = function(arg0) {
8263
+ imports.wbg.__wbg_instanceof_Uint8Array_20c8e73002f7af98 = function(arg0) {
7137
8264
  let result;
7138
8265
  try {
7139
8266
  result = arg0 instanceof Uint8Array;
@@ -7143,7 +8270,7 @@ function __wbg_get_imports() {
7143
8270
  const ret = result;
7144
8271
  return ret;
7145
8272
  };
7146
- imports.wbg.__wbg_instanceof_WorkerGlobalScope_85d487cc157fd065 = function(arg0) {
8273
+ imports.wbg.__wbg_instanceof_WorkerGlobalScope_e31f49b6d33fcadd = function(arg0) {
7147
8274
  let result;
7148
8275
  try {
7149
8276
  result = arg0 instanceof WorkerGlobalScope;
@@ -7153,27 +8280,27 @@ function __wbg_get_imports() {
7153
8280
  const ret = result;
7154
8281
  return ret;
7155
8282
  };
7156
- imports.wbg.__wbg_iterator_f370b34483c71a1c = function() {
7157
- const ret = Symbol.iterator;
8283
+ imports.wbg.__wbg_isArray_96e0af9891d0945d = function(arg0) {
8284
+ const ret = Array.isArray(arg0);
7158
8285
  return ret;
7159
8286
  };
7160
- imports.wbg.__wbg_keys_200bc2675df61794 = function(arg0) {
7161
- const ret = arg0.keys();
8287
+ imports.wbg.__wbg_isSafeInteger_d216eda7911dde36 = function(arg0) {
8288
+ const ret = Number.isSafeInteger(arg0);
7162
8289
  return ret;
7163
8290
  };
7164
- imports.wbg.__wbg_keys_822161a7faf55538 = function(arg0) {
7165
- const ret = arg0.keys();
8291
+ imports.wbg.__wbg_iterator_e5822695327a3c39 = function() {
8292
+ const ret = Symbol.iterator;
7166
8293
  return ret;
7167
8294
  };
7168
- imports.wbg.__wbg_length_186546c51cd61acd = function(arg0) {
8295
+ imports.wbg.__wbg_length_69bca3cb64fc8748 = function(arg0) {
7169
8296
  const ret = arg0.length;
7170
8297
  return ret;
7171
8298
  };
7172
- imports.wbg.__wbg_length_6bb7e81f9d7713e4 = function(arg0) {
8299
+ imports.wbg.__wbg_length_a95b69f903b746c4 = function(arg0) {
7173
8300
  const ret = arg0.length;
7174
8301
  return ret;
7175
8302
  };
7176
- imports.wbg.__wbg_length_9d771c54845e987f = function(arg0) {
8303
+ imports.wbg.__wbg_length_cdd215e10d9dd507 = function(arg0) {
7177
8304
  const ret = arg0.length;
7178
8305
  return ret;
7179
8306
  };
@@ -7189,7 +8316,7 @@ function __wbg_get_imports() {
7189
8316
  imports.wbg.__wbg_measure_7728846525e2cced = function() { return handleError(function (arg0, arg1, arg2, arg3) {
7190
8317
  arg0.measure(getStringFromWasm0(arg1, arg2), arg3);
7191
8318
  }, arguments) };
7192
- imports.wbg.__wbg_message_5481231e71ccaf7b = function(arg0, arg1) {
8319
+ imports.wbg.__wbg_message_bd42dbe3f2f3ed8e = function(arg0, arg1) {
7193
8320
  const ret = arg1.message;
7194
8321
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
7195
8322
  const len1 = WASM_VECTOR_LEN;
@@ -7220,41 +8347,41 @@ function __wbg_get_imports() {
7220
8347
  const ret = arg0.msCrypto;
7221
8348
  return ret;
7222
8349
  };
7223
- imports.wbg.__wbg_name_f75f535832c8ea6b = function(arg0, arg1) {
8350
+ imports.wbg.__wbg_name_3a33ad25b892b2dd = function(arg0, arg1) {
7224
8351
  const ret = arg1.name;
7225
8352
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
7226
8353
  const len1 = WASM_VECTOR_LEN;
7227
8354
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
7228
8355
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
7229
8356
  };
7230
- imports.wbg.__wbg_navigator_bfaf1b0b0eb48da2 = function(arg0) {
8357
+ imports.wbg.__wbg_navigator_ae06f1666ea7c968 = function(arg0) {
7231
8358
  const ret = arg0.navigator;
7232
8359
  return ret;
7233
8360
  };
7234
- imports.wbg.__wbg_new0_b0a0a38c201e6df5 = function() {
8361
+ imports.wbg.__wbg_new_0_f9740686d739025c = function() {
7235
8362
  const ret = new Date();
7236
8363
  return ret;
7237
8364
  };
7238
- imports.wbg.__wbg_new_0dc86f3faa8a3b53 = function(arg0) {
7239
- const ret = new Set(arg0);
7240
- return ret;
7241
- };
7242
- imports.wbg.__wbg_new_19c25a3f2fa63a02 = function() {
8365
+ imports.wbg.__wbg_new_1acc0b6eea89d040 = function() {
7243
8366
  const ret = new Object();
7244
8367
  return ret;
7245
8368
  };
7246
- imports.wbg.__wbg_new_1f3a344cf3123716 = function() {
7247
- const ret = new Array();
8369
+ imports.wbg.__wbg_new_1c342efbe54a5bfd = function(arg0, arg1, arg2) {
8370
+ const ret = new DataView(arg0, arg1 >>> 0, arg2 >>> 0);
7248
8371
  return ret;
7249
8372
  };
7250
- imports.wbg.__wbg_new_2e3c58a15f39f5f9 = function(arg0, arg1) {
8373
+ imports.wbg.__wbg_new_2531773dac38ebb3 = function() { return handleError(function () {
8374
+ const ret = new AbortController();
8375
+ return ret;
8376
+ }, arguments) };
8377
+ imports.wbg.__wbg_new_3c3d849046688a66 = function(arg0, arg1) {
7251
8378
  try {
7252
8379
  var state0 = {a: arg0, b: arg1};
7253
8380
  var cb0 = (arg0, arg1) => {
7254
8381
  const a = state0.a;
7255
8382
  state0.a = 0;
7256
8383
  try {
7257
- return __wbg_adapter_899(a, state0.b, arg0, arg1);
8384
+ return wasm_bindgen__convert__closures_____invoke__h18a484e2affd7fe5(a, state0.b, arg0, arg1);
7258
8385
  } finally {
7259
8386
  state0.a = a;
7260
8387
  }
@@ -7265,75 +8392,71 @@ function __wbg_get_imports() {
7265
8392
  state0.a = state0.b = 0;
7266
8393
  }
7267
8394
  };
7268
- imports.wbg.__wbg_new_2ff1f68f3676ea53 = function() {
8395
+ imports.wbg.__wbg_new_5a79be3ab53b8aa5 = function(arg0) {
8396
+ const ret = new Uint8Array(arg0);
8397
+ return ret;
8398
+ };
8399
+ imports.wbg.__wbg_new_68651c719dcda04e = function() {
7269
8400
  const ret = new Map();
7270
8401
  return ret;
7271
8402
  };
7272
- imports.wbg.__wbg_new_5a2ae4557f92b50e = function(arg0) {
7273
- const ret = new Date(arg0);
8403
+ imports.wbg.__wbg_new_8a6f238a6ece86ea = function() {
8404
+ const ret = new Error();
7274
8405
  return ret;
7275
8406
  };
7276
- imports.wbg.__wbg_new_638ebfaedbf32a5e = function(arg0) {
7277
- const ret = new Uint8Array(arg0);
8407
+ imports.wbg.__wbg_new_93d9417ed3fb115d = function(arg0) {
8408
+ const ret = new Date(arg0);
7278
8409
  return ret;
7279
8410
  };
7280
- imports.wbg.__wbg_new_66b9434b4e59b63e = function() { return handleError(function () {
7281
- const ret = new AbortController();
8411
+ imports.wbg.__wbg_new_9edf9838a2def39c = function() { return handleError(function () {
8412
+ const ret = new Headers();
7282
8413
  return ret;
7283
8414
  }, arguments) };
7284
- imports.wbg.__wbg_new_8a6f238a6ece86ea = function() {
7285
- const ret = new Error();
7286
- return ret;
7287
- };
7288
- imports.wbg.__wbg_new_da9dc54c5db29dfa = function(arg0, arg1) {
8415
+ imports.wbg.__wbg_new_a7442b4b19c1a356 = function(arg0, arg1) {
7289
8416
  const ret = new Error(getStringFromWasm0(arg0, arg1));
7290
8417
  return ret;
7291
8418
  };
7292
- imports.wbg.__wbg_new_f60d6f09990bdb99 = function(arg0, arg1, arg2) {
7293
- const ret = new DataView(arg0, arg1 >>> 0, arg2 >>> 0);
8419
+ imports.wbg.__wbg_new_e17d9f43105b08be = function() {
8420
+ const ret = new Array();
7294
8421
  return ret;
7295
8422
  };
7296
- imports.wbg.__wbg_new_f6e53210afea8e45 = function() { return handleError(function () {
7297
- const ret = new Headers();
7298
- return ret;
7299
- }, arguments) };
7300
- imports.wbg.__wbg_newfromslice_074c56947bd43469 = function(arg0, arg1) {
8423
+ imports.wbg.__wbg_new_from_slice_92f4d78ca282a2d2 = function(arg0, arg1) {
7301
8424
  const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
7302
8425
  return ret;
7303
8426
  };
7304
- imports.wbg.__wbg_newnoargs_254190557c45b4ec = function(arg0, arg1) {
8427
+ imports.wbg.__wbg_new_no_args_ee98eee5275000a4 = function(arg0, arg1) {
7305
8428
  const ret = new Function(getStringFromWasm0(arg0, arg1));
7306
8429
  return ret;
7307
8430
  };
7308
- imports.wbg.__wbg_newwithbyteoffsetandlength_e8f53910b4d42b45 = function(arg0, arg1, arg2) {
8431
+ imports.wbg.__wbg_new_with_byte_offset_and_length_46e3e6a5e9f9e89b = function(arg0, arg1, arg2) {
7309
8432
  const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
7310
8433
  return ret;
7311
8434
  };
7312
- imports.wbg.__wbg_newwithintounderlyingsource_b47f6a6a596a7f24 = function(arg0, arg1) {
8435
+ imports.wbg.__wbg_new_with_into_underlying_source_b47f6a6a596a7f24 = function(arg0, arg1) {
7313
8436
  const ret = new ReadableStream(IntoUnderlyingSource.__wrap(arg0), arg1);
7314
8437
  return ret;
7315
8438
  };
7316
- imports.wbg.__wbg_newwithlength_a167dcc7aaa3ba77 = function(arg0) {
8439
+ imports.wbg.__wbg_new_with_length_01aa0dc35aa13543 = function(arg0) {
7317
8440
  const ret = new Uint8Array(arg0 >>> 0);
7318
8441
  return ret;
7319
8442
  };
7320
- imports.wbg.__wbg_newwithstrandinit_b5d168a29a3fd85f = function() { return handleError(function (arg0, arg1, arg2) {
8443
+ imports.wbg.__wbg_new_with_str_and_init_0ae7728b6ec367b1 = function() { return handleError(function (arg0, arg1, arg2) {
7321
8444
  const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
7322
8445
  return ret;
7323
8446
  }, arguments) };
7324
- imports.wbg.__wbg_newwithyearmonthday_9d5466a369f2521d = function(arg0, arg1, arg2) {
8447
+ imports.wbg.__wbg_new_with_year_month_day_6236812cf591750d = function(arg0, arg1, arg2) {
7325
8448
  const ret = new Date(arg0 >>> 0, arg1, arg2);
7326
8449
  return ret;
7327
8450
  };
7328
- imports.wbg.__wbg_next_1142e1658f75ec63 = function() { return handleError(function (arg0) {
8451
+ imports.wbg.__wbg_next_020810e0ae8ebcb0 = function() { return handleError(function (arg0) {
7329
8452
  const ret = arg0.next();
7330
8453
  return ret;
7331
8454
  }, arguments) };
7332
- imports.wbg.__wbg_next_5b3530e612fde77d = function(arg0) {
8455
+ imports.wbg.__wbg_next_2c826fe5dfec6b6a = function(arg0) {
7333
8456
  const ret = arg0.next;
7334
8457
  return ret;
7335
8458
  };
7336
- imports.wbg.__wbg_next_692e82279131b03c = function() { return handleError(function (arg0) {
8459
+ imports.wbg.__wbg_next_eedaffcadc567b75 = function() { return handleError(function (arg0) {
7337
8460
  const ret = arg0.next();
7338
8461
  return ret;
7339
8462
  }, arguments) };
@@ -7341,40 +8464,45 @@ function __wbg_get_imports() {
7341
8464
  const ret = arg0.node;
7342
8465
  return ret;
7343
8466
  };
7344
- imports.wbg.__wbg_now_1e80617bcee43265 = function() {
7345
- const ret = Date.now();
7346
- return ret;
7347
- };
7348
8467
  imports.wbg.__wbg_now_2c95c9de01293173 = function(arg0) {
7349
8468
  const ret = arg0.now();
7350
8469
  return ret;
7351
8470
  };
7352
- imports.wbg.__wbg_now_2f0bbf3fd348701f = function(arg0) {
7353
- const ret = globalThis.performance.now();
7354
- getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
7355
- getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
8471
+ imports.wbg.__wbg_now_793306c526e2e3b6 = function() {
8472
+ const ret = Date.now();
8473
+ return ret;
7356
8474
  };
7357
- imports.wbg.__wbg_onclose_6c8f213130a86e05 = function(arg0) {
8475
+ imports.wbg.__wbg_on_auth_required_0073951310891028 = function() { return handleError(function (arg0) {
8476
+ const ret = arg0.on_auth_required();
8477
+ return ret;
8478
+ }, arguments) };
8479
+ imports.wbg.__wbg_on_close_ac65e222a18da4ec = function(arg0) {
7358
8480
  arg0.on_close();
7359
8481
  };
7360
- imports.wbg.__wbg_onconsentupdate_cd008b56bd308bca = function(arg0, arg1) {
8482
+ imports.wbg.__wbg_on_consent_update_515ca76d1f4692c6 = function(arg0, arg1) {
7361
8483
  arg0.on_consent_update(arg1);
7362
8484
  };
7363
- imports.wbg.__wbg_onconversation_89e91ba5da6e7d31 = function(arg0, arg1) {
8485
+ imports.wbg.__wbg_on_conversation_2d7c67d16051e9fd = function(arg0, arg1) {
7364
8486
  arg0.on_conversation(Conversation.__wrap(arg1));
7365
8487
  };
7366
- imports.wbg.__wbg_onerror_047567bdcaa0c379 = function(arg0, arg1) {
8488
+ imports.wbg.__wbg_on_error_f4cbc08a24b1f45c = function(arg0, arg1) {
7367
8489
  arg0.on_error(arg1);
7368
8490
  };
7369
- imports.wbg.__wbg_onmessage_7103e4915945ddd3 = function(arg0, arg1) {
8491
+ imports.wbg.__wbg_on_message_1dfdfc11a7a08d9f = function(arg0, arg1) {
7370
8492
  arg0.on_message(Message.__wrap(arg1));
7371
8493
  };
7372
- imports.wbg.__wbg_onmessagedeleted_b2ddb8ee5fcf999c = function(arg0, arg1, arg2) {
7373
- var v0 = getArrayU8FromWasm0(arg1, arg2).slice();
7374
- wasm.__wbindgen_free(arg1, arg2 * 1, 1);
7375
- arg0.on_message_deleted(v0);
8494
+ imports.wbg.__wbg_on_message_deleted_8318458db6af8b0c = function(arg0, arg1, arg2) {
8495
+ let deferred0_0;
8496
+ let deferred0_1;
8497
+ try {
8498
+ deferred0_0 = arg1;
8499
+ deferred0_1 = arg2;
8500
+ arg0.on_message_deleted(getStringFromWasm0(arg1, arg2));
8501
+ } finally {
8502
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
8503
+ }
7376
8504
  };
7377
- imports.wbg.__wbg_onuserpreferenceupdate_ed9d4c8c250e03d2 = function(arg0, arg1, arg2) {
8505
+ imports.wbg.__wbg_on_user_preference_update_598e2bd9bb61c7ea = function(arg0, arg1, arg2) {
7378
8506
  var v0 = getArrayJsValueFromWasm0(arg1, arg2).slice();
7379
8507
  wasm.__wbindgen_free(arg1, arg2 * 4, 4);
7380
8508
  arg0.on_user_preference_update(v0);
@@ -7387,47 +8515,47 @@ function __wbg_get_imports() {
7387
8515
  const ret = arg0.performance;
7388
8516
  return ret;
7389
8517
  };
7390
- imports.wbg.__wbg_postMessage_38909232d65f5870 = function() { return handleError(function (arg0, arg1) {
8518
+ imports.wbg.__wbg_postMessage_de7175726e2c1bc7 = function() { return handleError(function (arg0, arg1) {
7391
8519
  arg0.postMessage(arg1);
7392
8520
  }, arguments) };
7393
8521
  imports.wbg.__wbg_process_dc0fbacc7c1c06f7 = function(arg0) {
7394
8522
  const ret = arg0.process;
7395
8523
  return ret;
7396
8524
  };
7397
- imports.wbg.__wbg_prototypesetcall_3d4a26c1ed734349 = function(arg0, arg1, arg2) {
8525
+ imports.wbg.__wbg_prototypesetcall_2a6620b6922694b2 = function(arg0, arg1, arg2) {
7398
8526
  Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
7399
8527
  };
7400
- imports.wbg.__wbg_push_330b2eb93e4e1212 = function(arg0, arg1) {
8528
+ imports.wbg.__wbg_push_df81a39d04db858c = function(arg0, arg1) {
7401
8529
  const ret = arg0.push(arg1);
7402
8530
  return ret;
7403
8531
  };
7404
- imports.wbg.__wbg_queueMicrotask_25d0739ac89e8c88 = function(arg0) {
7405
- queueMicrotask(arg0);
7406
- };
7407
- imports.wbg.__wbg_queueMicrotask_4488407636f5bf24 = function(arg0) {
8532
+ imports.wbg.__wbg_queueMicrotask_34d692c25c47d05b = function(arg0) {
7408
8533
  const ret = arg0.queueMicrotask;
7409
8534
  return ret;
7410
8535
  };
8536
+ imports.wbg.__wbg_queueMicrotask_9d76cacb20c84d58 = function(arg0) {
8537
+ queueMicrotask(arg0);
8538
+ };
7411
8539
  imports.wbg.__wbg_randomFillSync_ac0988aba3254290 = function() { return handleError(function (arg0, arg1) {
7412
8540
  arg0.randomFillSync(arg1);
7413
8541
  }, arguments) };
7414
- imports.wbg.__wbg_random_7ed63a0b38ee3b75 = function() {
8542
+ imports.wbg.__wbg_random_babe96ffc73e60a2 = function() {
7415
8543
  const ret = Math.random();
7416
8544
  return ret;
7417
8545
  };
7418
- imports.wbg.__wbg_read_a43bb46027f02ee9 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
7419
- const ret = arg0.read(getArrayU8FromWasm0(arg1, arg2), arg3);
7420
- return ret;
7421
- }, arguments) };
7422
- imports.wbg.__wbg_read_bc925c758aa4d897 = function(arg0) {
8546
+ imports.wbg.__wbg_read_48f1593df542f968 = function(arg0) {
7423
8547
  const ret = arg0.read();
7424
8548
  return ret;
7425
8549
  };
7426
- imports.wbg.__wbg_read_e271e94623077591 = function() { return handleError(function (arg0, arg1, arg2) {
8550
+ imports.wbg.__wbg_read_e2b5efb864451cae = function() { return handleError(function (arg0, arg1, arg2) {
7427
8551
  const ret = arg0.read(arg1, arg2);
7428
8552
  return ret;
7429
8553
  }, arguments) };
7430
- imports.wbg.__wbg_releaseLock_ff29b586502a8221 = function(arg0) {
8554
+ imports.wbg.__wbg_read_f7d59b68d039d64d = function() { return handleError(function (arg0, arg1, arg2, arg3) {
8555
+ const ret = arg0.read(getArrayU8FromWasm0(arg1, arg2), arg3);
8556
+ return ret;
8557
+ }, arguments) };
8558
+ imports.wbg.__wbg_releaseLock_5d0b5a68887b891d = function(arg0) {
7431
8559
  arg0.releaseLock();
7432
8560
  };
7433
8561
  imports.wbg.__wbg_remoteattachmentinfo_new = function(arg0) {
@@ -7438,7 +8566,7 @@ function __wbg_get_imports() {
7438
8566
  const ret = RemoteAttachmentInfo.__unwrap(arg0);
7439
8567
  return ret;
7440
8568
  };
7441
- imports.wbg.__wbg_removeEntry_3ab786c4d0e6a154 = function(arg0, arg1, arg2) {
8569
+ imports.wbg.__wbg_removeEntry_ad74c4d6bc5669bf = function(arg0, arg1, arg2) {
7442
8570
  const ret = arg0.removeEntry(getStringFromWasm0(arg1, arg2));
7443
8571
  return ret;
7444
8572
  };
@@ -7446,18 +8574,18 @@ function __wbg_get_imports() {
7446
8574
  const ret = module.require;
7447
8575
  return ret;
7448
8576
  }, arguments) };
7449
- imports.wbg.__wbg_resolve_4055c623acdd6a1b = function(arg0) {
8577
+ imports.wbg.__wbg_resolve_caf97c30b83f7053 = function(arg0) {
7450
8578
  const ret = Promise.resolve(arg0);
7451
8579
  return ret;
7452
8580
  };
7453
- imports.wbg.__wbg_respond_6c2c4e20ef85138e = function() { return handleError(function (arg0, arg1) {
8581
+ imports.wbg.__wbg_respond_0f4dbf5386f5c73e = function() { return handleError(function (arg0, arg1) {
7454
8582
  arg0.respond(arg1 >>> 0);
7455
8583
  }, arguments) };
7456
8584
  imports.wbg.__wbg_setInterval_ed3b5e3c3ebb8a6d = function() { return handleError(function (arg0, arg1) {
7457
8585
  const ret = setInterval(arg0, arg1);
7458
8586
  return ret;
7459
8587
  }, arguments) };
7460
- imports.wbg.__wbg_setTimeout_2b339866a2aa3789 = function(arg0, arg1) {
8588
+ imports.wbg.__wbg_setTimeout_7bb3429662ab1e70 = function(arg0, arg1) {
7461
8589
  const ret = setTimeout(arg0, arg1);
7462
8590
  return ret;
7463
8591
  };
@@ -7472,75 +8600,75 @@ function __wbg_get_imports() {
7472
8600
  const ret = setTimeout(arg0, arg1);
7473
8601
  return ret;
7474
8602
  }, arguments) };
7475
- imports.wbg.__wbg_setUint32_8a9564ae127df4c5 = function(arg0, arg1, arg2) {
8603
+ imports.wbg.__wbg_setUint32_7c19a62c08deac62 = function(arg0, arg1, arg2) {
7476
8604
  arg0.setUint32(arg1 >>> 0, arg2 >>> 0);
7477
8605
  };
7478
- imports.wbg.__wbg_set_1353b2a5e96bc48c = function(arg0, arg1, arg2) {
7479
- arg0.set(getArrayU8FromWasm0(arg1, arg2));
7480
- };
7481
- imports.wbg.__wbg_set_1c17f9738fac2718 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
7482
- arg0.set(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
7483
- }, arguments) };
7484
8606
  imports.wbg.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
7485
8607
  arg0[arg1] = arg2;
7486
8608
  };
7487
- imports.wbg.__wbg_set_453345bcda80b89a = function() { return handleError(function (arg0, arg1, arg2) {
7488
- const ret = Reflect.set(arg0, arg1, arg2);
7489
- return ret;
8609
+ imports.wbg.__wbg_set_8b342d8cd9d2a02c = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
8610
+ arg0.set(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
7490
8611
  }, arguments) };
7491
- imports.wbg.__wbg_set_90f6c0f7bd8c0415 = function(arg0, arg1, arg2) {
7492
- arg0[arg1 >>> 0] = arg2;
7493
- };
7494
- imports.wbg.__wbg_set_b7f1cf4fae26fe2a = function(arg0, arg1, arg2) {
8612
+ imports.wbg.__wbg_set_907fb406c34a251d = function(arg0, arg1, arg2) {
7495
8613
  const ret = arg0.set(arg1, arg2);
7496
8614
  return ret;
7497
8615
  };
7498
- imports.wbg.__wbg_setat_f8fc70f546036b10 = function(arg0, arg1) {
8616
+ imports.wbg.__wbg_set_9e6516df7b7d0f19 = function(arg0, arg1, arg2) {
8617
+ arg0.set(getArrayU8FromWasm0(arg1, arg2));
8618
+ };
8619
+ imports.wbg.__wbg_set_at_ec187fadbab331e2 = function(arg0, arg1) {
7499
8620
  arg0.at = arg1;
7500
8621
  };
7501
- imports.wbg.__wbg_setbody_c8460bdf44147df8 = function(arg0, arg1) {
8622
+ imports.wbg.__wbg_set_body_3c365989753d61f4 = function(arg0, arg1) {
7502
8623
  arg0.body = arg1;
7503
8624
  };
7504
- imports.wbg.__wbg_setcache_90ca4ad8a8ad40d3 = function(arg0, arg1) {
8625
+ imports.wbg.__wbg_set_c213c871859d6500 = function(arg0, arg1, arg2) {
8626
+ arg0[arg1 >>> 0] = arg2;
8627
+ };
8628
+ imports.wbg.__wbg_set_c2abbebe8b9ebee1 = function() { return handleError(function (arg0, arg1, arg2) {
8629
+ const ret = Reflect.set(arg0, arg1, arg2);
8630
+ return ret;
8631
+ }, arguments) };
8632
+ imports.wbg.__wbg_set_cache_2f9deb19b92b81e3 = function(arg0, arg1) {
7505
8633
  arg0.cache = __wbindgen_enum_RequestCache[arg1];
7506
8634
  };
7507
- imports.wbg.__wbg_setcreate_1eb73f4ea713c1ad = function(arg0, arg1) {
8635
+ imports.wbg.__wbg_set_create_89d91caa5a7a3a2b = function(arg0, arg1) {
7508
8636
  arg0.create = arg1 !== 0;
7509
8637
  };
7510
- imports.wbg.__wbg_setcreate_2d32aa4bbcd1d7af = function(arg0, arg1) {
8638
+ imports.wbg.__wbg_set_create_cd6996d11cc76544 = function(arg0, arg1) {
7511
8639
  arg0.create = arg1 !== 0;
7512
8640
  };
7513
- imports.wbg.__wbg_setcredentials_9cd60d632c9d5dfc = function(arg0, arg1) {
8641
+ imports.wbg.__wbg_set_credentials_f621cd2d85c0c228 = function(arg0, arg1) {
7514
8642
  arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
7515
8643
  };
7516
- imports.wbg.__wbg_setheaders_0052283e2f3503d1 = function(arg0, arg1) {
8644
+ imports.wbg.__wbg_set_headers_6926da238cd32ee4 = function(arg0, arg1) {
7517
8645
  arg0.headers = arg1;
7518
8646
  };
7519
- imports.wbg.__wbg_sethighwatermark_3d5961f834647d41 = function(arg0, arg1) {
8647
+ imports.wbg.__wbg_set_high_water_mark_5142ac1d2fb46365 = function(arg0, arg1) {
7520
8648
  arg0.highWaterMark = arg1;
7521
8649
  };
7522
- imports.wbg.__wbg_setintegrity_de8bf847597602b5 = function(arg0, arg1, arg2) {
8650
+ imports.wbg.__wbg_set_integrity_62a46fc792832f41 = function(arg0, arg1, arg2) {
7523
8651
  arg0.integrity = getStringFromWasm0(arg1, arg2);
7524
8652
  };
7525
- imports.wbg.__wbg_setmethod_9b504d5b855b329c = function(arg0, arg1, arg2) {
8653
+ imports.wbg.__wbg_set_method_c02d8cbbe204ac2d = function(arg0, arg1, arg2) {
7526
8654
  arg0.method = getStringFromWasm0(arg1, arg2);
7527
8655
  };
7528
- imports.wbg.__wbg_setmode_a23e1a2ad8b512f8 = function(arg0, arg1) {
8656
+ imports.wbg.__wbg_set_mode_52ef73cfa79639cb = function(arg0, arg1) {
7529
8657
  arg0.mode = __wbindgen_enum_RequestMode[arg1];
7530
8658
  };
7531
- imports.wbg.__wbg_setredirect_9542307f3ab946a9 = function(arg0, arg1) {
8659
+ imports.wbg.__wbg_set_redirect_df0285496ec45ff8 = function(arg0, arg1) {
7532
8660
  arg0.redirect = __wbindgen_enum_RequestRedirect[arg1];
7533
8661
  };
7534
- imports.wbg.__wbg_setreferrer_c8dd38f95f31e178 = function(arg0, arg1, arg2) {
8662
+ imports.wbg.__wbg_set_referrer_ec9cf8a8a315d50c = function(arg0, arg1, arg2) {
7535
8663
  arg0.referrer = getStringFromWasm0(arg1, arg2);
7536
8664
  };
7537
- imports.wbg.__wbg_setreferrerpolicy_164abad8ed6e3886 = function(arg0, arg1) {
8665
+ imports.wbg.__wbg_set_referrer_policy_99c1f299b4e37446 = function(arg0, arg1) {
7538
8666
  arg0.referrerPolicy = __wbindgen_enum_ReferrerPolicy[arg1];
7539
8667
  };
7540
- imports.wbg.__wbg_setsignal_8c45ad1247a74809 = function(arg0, arg1) {
8668
+ imports.wbg.__wbg_set_signal_dda2cf7ccb6bee0f = function(arg0, arg1) {
7541
8669
  arg0.signal = arg1;
7542
8670
  };
7543
- imports.wbg.__wbg_signal_da4d466ce86118b5 = function(arg0) {
8671
+ imports.wbg.__wbg_signal_4db5aa055bf9eb9a = function(arg0) {
7544
8672
  const ret = arg0.signal;
7545
8673
  return ret;
7546
8674
  };
@@ -7548,11 +8676,7 @@ function __wbg_get_imports() {
7548
8676
  const ret = SignatureRequestHandle.__wrap(arg0);
7549
8677
  return ret;
7550
8678
  };
7551
- imports.wbg.__wbg_size_af8602b0b838d49e = function(arg0) {
7552
- const ret = arg0.size;
7553
- return ret;
7554
- };
7555
- imports.wbg.__wbg_slice_974daea329f5c01d = function(arg0, arg1, arg2) {
8679
+ imports.wbg.__wbg_slice_3e7e2fc0da7cc625 = function(arg0, arg1, arg2) {
7556
8680
  const ret = arg0.slice(arg1 >>> 0, arg2 >>> 0);
7557
8681
  return ret;
7558
8682
  };
@@ -7563,78 +8687,72 @@ function __wbg_get_imports() {
7563
8687
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
7564
8688
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
7565
8689
  };
7566
- imports.wbg.__wbg_static_accessor_GLOBAL_8921f820c2ce3f12 = function() {
8690
+ imports.wbg.__wbg_static_accessor_GLOBAL_89e1d9ac6a1b250e = function() {
7567
8691
  const ret = typeof global === 'undefined' ? null : global;
7568
8692
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
7569
8693
  };
7570
- imports.wbg.__wbg_static_accessor_GLOBAL_THIS_f0a4409105898184 = function() {
8694
+ imports.wbg.__wbg_static_accessor_GLOBAL_THIS_8b530f326a9e48ac = function() {
7571
8695
  const ret = typeof globalThis === 'undefined' ? null : globalThis;
7572
8696
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
7573
8697
  };
7574
- imports.wbg.__wbg_static_accessor_SELF_995b214ae681ff99 = function() {
8698
+ imports.wbg.__wbg_static_accessor_SELF_6fdf4b64710cc91b = function() {
7575
8699
  const ret = typeof self === 'undefined' ? null : self;
7576
8700
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
7577
8701
  };
7578
- imports.wbg.__wbg_static_accessor_WINDOW_cde3890479c675ea = function() {
8702
+ imports.wbg.__wbg_static_accessor_WINDOW_b45bfc5a37f6cfa2 = function() {
7579
8703
  const ret = typeof window === 'undefined' ? null : window;
7580
8704
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
7581
8705
  };
7582
- imports.wbg.__wbg_status_3fea3036088621d6 = function(arg0) {
8706
+ imports.wbg.__wbg_status_de7eed5a7a5bfd5d = function(arg0) {
7583
8707
  const ret = arg0.status;
7584
8708
  return ret;
7585
8709
  };
7586
- imports.wbg.__wbg_storage_32b4ac688c114c3d = function(arg0) {
8710
+ imports.wbg.__wbg_storage_2fd28cd0598c9a9b = function(arg0) {
7587
8711
  const ret = arg0.storage;
7588
8712
  return ret;
7589
8713
  };
7590
- imports.wbg.__wbg_stringify_b98c93d0a190446a = function() { return handleError(function (arg0) {
8714
+ imports.wbg.__wbg_stringify_b5fb28f6465d9c3e = function() { return handleError(function (arg0) {
7591
8715
  const ret = JSON.stringify(arg0);
7592
8716
  return ret;
7593
8717
  }, arguments) };
7594
- imports.wbg.__wbg_subarray_70fd07feefe14294 = function(arg0, arg1, arg2) {
8718
+ imports.wbg.__wbg_subarray_480600f3d6a9f26c = function(arg0, arg1, arg2) {
7595
8719
  const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
7596
8720
  return ret;
7597
8721
  };
7598
- imports.wbg.__wbg_text_0f69a215637b9b34 = function() { return handleError(function (arg0) {
8722
+ imports.wbg.__wbg_text_dc33c15c17bdfb52 = function() { return handleError(function (arg0) {
7599
8723
  const ret = arg0.text();
7600
8724
  return ret;
7601
8725
  }, arguments) };
7602
- imports.wbg.__wbg_then_b33a773d723afa3e = function(arg0, arg1, arg2) {
7603
- const ret = arg0.then(arg1, arg2);
8726
+ imports.wbg.__wbg_then_4f46f6544e6b4a28 = function(arg0, arg1) {
8727
+ const ret = arg0.then(arg1);
7604
8728
  return ret;
7605
8729
  };
7606
- imports.wbg.__wbg_then_e22500defe16819f = function(arg0, arg1) {
7607
- const ret = arg0.then(arg1);
8730
+ imports.wbg.__wbg_then_70d05cf780a18d77 = function(arg0, arg1, arg2) {
8731
+ const ret = arg0.then(arg1, arg2);
7608
8732
  return ret;
7609
8733
  };
7610
- imports.wbg.__wbg_toString_2ca967683e5874bc = function() { return handleError(function (arg0, arg1) {
8734
+ imports.wbg.__wbg_toString_331854e6e3c16849 = function() { return handleError(function (arg0, arg1) {
7611
8735
  const ret = arg0.toString(arg1);
7612
8736
  return ret;
7613
8737
  }, arguments) };
7614
- imports.wbg.__wbg_toString_78df35411a4fd40c = function(arg0) {
8738
+ imports.wbg.__wbg_toString_7da7c8dbec78fcb8 = function(arg0) {
7615
8739
  const ret = arg0.toString();
7616
8740
  return ret;
7617
8741
  };
7618
- imports.wbg.__wbg_toU8Array_7fa7fb3ae8554ad0 = function(arg0, arg1, arg2, arg3) {
7619
- JSArrayBufferCopy.toU8Array(arg0, arg1 >>> 0, arg2 >>> 0, arg3);
7620
- };
7621
- imports.wbg.__wbg_toU8Slice_11519abfa5176ae4 = function(arg0, arg1, arg2, arg3) {
7622
- JSArrayBufferCopy.toU8Slice(arg0, arg1, arg2 >>> 0, arg3 >>> 0);
7623
- };
7624
- imports.wbg.__wbg_truncate_0fe935591188a14c = function() { return handleError(function (arg0, arg1) {
7625
- arg0.truncate(arg1 >>> 0);
7626
- }, arguments) };
7627
- imports.wbg.__wbg_truncate_7cddd971e3cf0a8c = function() { return handleError(function (arg0, arg1) {
8742
+ imports.wbg.__wbg_truncate_6511a04243d4c36b = function() { return handleError(function (arg0, arg1) {
7628
8743
  arg0.truncate(arg1);
7629
8744
  }, arguments) };
7630
- imports.wbg.__wbg_url_e5720dfacf77b05e = function(arg0, arg1) {
8745
+ imports.wbg.__wbg_truncate_f99e4636535b6562 = function() { return handleError(function (arg0, arg1) {
8746
+ arg0.truncate(arg1 >>> 0);
8747
+ }, arguments) };
8748
+ imports.wbg.__wbg_url_b36d2a5008eb056f = function(arg0, arg1) {
7631
8749
  const ret = arg1.url;
7632
8750
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
7633
8751
  const len1 = WASM_VECTOR_LEN;
7634
8752
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
7635
8753
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
7636
8754
  };
7637
- imports.wbg.__wbg_value_dd9372230531eade = function(arg0) {
8755
+ imports.wbg.__wbg_value_692627309814bb8c = function(arg0) {
7638
8756
  const ret = arg0.value;
7639
8757
  return ret;
7640
8758
  };
@@ -7642,94 +8760,21 @@ function __wbg_get_imports() {
7642
8760
  const ret = arg0.versions;
7643
8761
  return ret;
7644
8762
  };
7645
- imports.wbg.__wbg_view_91cc97d57ab30530 = function(arg0) {
8763
+ imports.wbg.__wbg_view_f6c15ac9fed63bbd = function(arg0) {
7646
8764
  const ret = arg0.view;
7647
8765
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
7648
8766
  };
7649
- imports.wbg.__wbg_warn_90eb15d986910fe9 = function(arg0, arg1, arg2, arg3) {
7650
- console.warn(arg0, arg1, arg2, arg3);
7651
- };
7652
- imports.wbg.__wbg_warn_e2ada06313f92f09 = function(arg0) {
8767
+ imports.wbg.__wbg_warn_1d74dddbe2fd1dbb = function(arg0) {
7653
8768
  console.warn(arg0);
7654
8769
  };
7655
- imports.wbg.__wbg_wbindgenbooleanget_3fe6f642c7d97746 = function(arg0) {
7656
- const v = arg0;
7657
- const ret = typeof(v) === 'boolean' ? v : undefined;
7658
- return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
7659
- };
7660
- imports.wbg.__wbg_wbindgencbdrop_eb10308566512b88 = function(arg0) {
7661
- const obj = arg0.original;
7662
- if (obj.cnt-- == 1) {
7663
- obj.a = 0;
7664
- return true;
7665
- }
7666
- const ret = false;
7667
- return ret;
7668
- };
7669
- imports.wbg.__wbg_wbindgendebugstring_99ef257a3ddda34d = function(arg0, arg1) {
7670
- const ret = debugString(arg1);
7671
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
7672
- const len1 = WASM_VECTOR_LEN;
7673
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
7674
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
7675
- };
7676
- imports.wbg.__wbg_wbindgenin_d7a1ee10933d2d55 = function(arg0, arg1) {
7677
- const ret = arg0 in arg1;
7678
- return ret;
7679
- };
7680
- imports.wbg.__wbg_wbindgenisfunction_8cee7dce3725ae74 = function(arg0) {
7681
- const ret = typeof(arg0) === 'function';
7682
- return ret;
7683
- };
7684
- imports.wbg.__wbg_wbindgenisobject_307a53c6bd97fbf8 = function(arg0) {
7685
- const val = arg0;
7686
- const ret = typeof(val) === 'object' && val !== null;
7687
- return ret;
7688
- };
7689
- imports.wbg.__wbg_wbindgenisstring_d4fa939789f003b0 = function(arg0) {
7690
- const ret = typeof(arg0) === 'string';
7691
- return ret;
7692
- };
7693
- imports.wbg.__wbg_wbindgenisundefined_c4b71d073b92f3c5 = function(arg0) {
7694
- const ret = arg0 === undefined;
7695
- return ret;
7696
- };
7697
- imports.wbg.__wbg_wbindgenjsvallooseeq_9bec8c9be826bed1 = function(arg0, arg1) {
7698
- const ret = arg0 == arg1;
7699
- return ret;
7700
- };
7701
- imports.wbg.__wbg_wbindgenmemory_d84da70f7c42d172 = function() {
7702
- const ret = wasm.memory;
7703
- return ret;
7704
- };
7705
- imports.wbg.__wbg_wbindgennumberget_f74b4c7525ac05cb = function(arg0, arg1) {
7706
- const obj = arg1;
7707
- const ret = typeof(obj) === 'number' ? obj : undefined;
7708
- getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
7709
- getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
7710
- };
7711
- imports.wbg.__wbg_wbindgenstringget_0f16a6ddddef376f = function(arg0, arg1) {
7712
- const obj = arg1;
7713
- const ret = typeof(obj) === 'string' ? obj : undefined;
7714
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
7715
- var len1 = WASM_VECTOR_LEN;
7716
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
7717
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
7718
- };
7719
- imports.wbg.__wbg_wbindgenthrow_451ec1a8469d7eb6 = function(arg0, arg1) {
7720
- throw new Error(getStringFromWasm0(arg0, arg1));
7721
- };
7722
- imports.wbg.__wbg_wbindgentryintonumber_aef53fe1d23c5fd4 = function(arg0) {
7723
- let result;
7724
- try { result = +arg0 } catch (e) { result = e }
7725
- const ret = result;
7726
- return ret;
8770
+ imports.wbg.__wbg_warn_8f5b5437666d0885 = function(arg0, arg1, arg2, arg3) {
8771
+ console.warn(arg0, arg1, arg2, arg3);
7727
8772
  };
7728
- imports.wbg.__wbg_write_9ac6a5f58a8c835c = function() { return handleError(function (arg0, arg1, arg2, arg3) {
8773
+ imports.wbg.__wbg_write_0c22b53589bfcada = function() { return handleError(function (arg0, arg1, arg2, arg3) {
7729
8774
  const ret = arg0.write(getArrayU8FromWasm0(arg1, arg2), arg3);
7730
8775
  return ret;
7731
8776
  }, arguments) };
7732
- imports.wbg.__wbg_write_c0e234eeb0039d0d = function() { return handleError(function (arg0, arg1, arg2) {
8777
+ imports.wbg.__wbg_write_5c1be3e4039a6ed1 = function() { return handleError(function (arg0, arg1, arg2) {
7733
8778
  const ret = arg0.write(arg1, arg2);
7734
8779
  return ret;
7735
8780
  }, arguments) };
@@ -7741,9 +8786,9 @@ function __wbg_get_imports() {
7741
8786
  const ret = XmtpCursor.__unwrap(arg0);
7742
8787
  return ret;
7743
8788
  };
7744
- imports.wbg.__wbindgen_cast_071bb8cd1f636a07 = function(arg0, arg1) {
7745
- // Cast intrinsic for `Closure(Closure { dtor_idx: 6809, function: Function { arguments: [], shim_idx: 6810, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
7746
- const ret = makeMutClosure(arg0, arg1, 6809, __wbg_adapter_33);
8789
+ imports.wbg.__wbindgen_cast_0dcbf355c8c44095 = function(arg0, arg1) {
8790
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 6806, function: Function { arguments: [], shim_idx: 6807, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
8791
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h5e0a3136249b832f, wasm_bindgen__convert__closures_____invoke__h9011598bdd38acb2);
7747
8792
  return ret;
7748
8793
  };
7749
8794
  imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
@@ -7763,9 +8808,9 @@ function __wbg_get_imports() {
7763
8808
  const ret = v0;
7764
8809
  return ret;
7765
8810
  };
7766
- imports.wbg.__wbindgen_cast_653b2620668ca290 = function(arg0, arg1) {
7767
- // Cast intrinsic for `Closure(Closure { dtor_idx: 7216, function: Function { arguments: [Externref], shim_idx: 7227, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
7768
- const ret = makeMutClosure(arg0, arg1, 7216, __wbg_adapter_18);
8811
+ imports.wbg.__wbindgen_cast_6038cfb3ffda6ae4 = function(arg0, arg1) {
8812
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 7219, function: Function { arguments: [Externref], shim_idx: 7230, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
8813
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h5faecc40242ea0ca, wasm_bindgen__convert__closures_____invoke__h34df32c886f66f02);
7769
8814
  return ret;
7770
8815
  };
7771
8816
  imports.wbg.__wbindgen_cast_8e37b4ad2f2ba653 = function(arg0, arg1) {
@@ -7787,9 +8832,9 @@ function __wbg_get_imports() {
7787
8832
  const ret = arg0;
7788
8833
  return ret;
7789
8834
  };
7790
- imports.wbg.__wbindgen_cast_9af4c227e00b9082 = function(arg0, arg1) {
7791
- // Cast intrinsic for `Closure(Closure { dtor_idx: 7203, function: Function { arguments: [], shim_idx: 7204, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
7792
- const ret = makeMutClosure(arg0, arg1, 7203, __wbg_adapter_13);
8835
+ imports.wbg.__wbindgen_cast_b364f81b0bffec21 = function(arg0, arg1) {
8836
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 7020, function: Function { arguments: [], shim_idx: 7021, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
8837
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h8a0c80adf0f210e5, wasm_bindgen__convert__closures_____invoke__h753a3e053785270d);
7793
8838
  return ret;
7794
8839
  };
7795
8840
  imports.wbg.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
@@ -7797,16 +8842,16 @@ function __wbg_get_imports() {
7797
8842
  const ret = getArrayU8FromWasm0(arg0, arg1);
7798
8843
  return ret;
7799
8844
  };
8845
+ imports.wbg.__wbindgen_cast_d24c038e51b83c0a = function(arg0, arg1) {
8846
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 7183, function: Function { arguments: [], shim_idx: 7184, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
8847
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h83869f5b20c236a6, wasm_bindgen__convert__closures_____invoke__hafab8b28acda63ce);
8848
+ return ret;
8849
+ };
7800
8850
  imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
7801
8851
  // Cast intrinsic for `F64 -> Externref`.
7802
8852
  const ret = arg0;
7803
8853
  return ret;
7804
8854
  };
7805
- imports.wbg.__wbindgen_cast_d90c0f8b32072ebf = function(arg0, arg1) {
7806
- // Cast intrinsic for `Closure(Closure { dtor_idx: 4939, function: Function { arguments: [], shim_idx: 4940, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
7807
- const ret = makeMutClosure(arg0, arg1, 4939, __wbg_adapter_8);
7808
- return ret;
7809
- };
7810
8855
  imports.wbg.__wbindgen_cast_e081be35fe620ec4 = function(arg0, arg1) {
7811
8856
  var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
7812
8857
  wasm.__wbindgen_free(arg0, arg1 * 4, 4);
@@ -7822,7 +8867,7 @@ function __wbg_get_imports() {
7822
8867
  return ret;
7823
8868
  };
7824
8869
  imports.wbg.__wbindgen_init_externref_table = function() {
7825
- const table = wasm.__wbindgen_export_4;
8870
+ const table = wasm.__wbindgen_externrefs;
7826
8871
  const offset = table.grow(4);
7827
8872
  table.set(0, undefined);
7828
8873
  table.set(offset + 0, undefined);
@@ -7835,10 +8880,6 @@ function __wbg_get_imports() {
7835
8880
  return imports;
7836
8881
  }
7837
8882
 
7838
- function __wbg_init_memory(imports, memory) {
7839
-
7840
- }
7841
-
7842
8883
  function __wbg_finalize_init(instance, module) {
7843
8884
  wasm = instance.exports;
7844
8885
  __wbg_init.__wbindgen_wasm_module = module;
@@ -7864,8 +8905,6 @@ function initSync(module) {
7864
8905
 
7865
8906
  const imports = __wbg_get_imports();
7866
8907
 
7867
- __wbg_init_memory(imports);
7868
-
7869
8908
  if (!(module instanceof WebAssembly.Module)) {
7870
8909
  module = new WebAssembly.Module(module);
7871
8910
  }
@@ -7896,8 +8935,6 @@ async function __wbg_init(module_or_path) {
7896
8935
  module_or_path = fetch(module_or_path);
7897
8936
  }
7898
8937
 
7899
- __wbg_init_memory(imports);
7900
-
7901
8938
  const { instance, module } = await __wbg_load(await module_or_path, imports);
7902
8939
 
7903
8940
  return __wbg_finalize_init(instance, module);