@xmtp/wasm-bindings 1.2.0-rc3 → 1.2.0-rc5

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,3 +1,5 @@
1
+ import { JSUtils } from './snippets/sqlite-wasm-rs-7363ec544fce135b/src/vfs/utils.js';
2
+
1
3
  let wasm;
2
4
 
3
5
  let WASM_VECTOR_LEN = 0;
@@ -224,6 +226,12 @@ function passArrayJsValueToWasm0(array, malloc) {
224
226
  return ptr;
225
227
  }
226
228
 
229
+ function takeFromExternrefTable0(idx) {
230
+ const value = wasm.__wbindgen_export_4.get(idx);
231
+ wasm.__externref_table_dealloc(idx);
232
+ return value;
233
+ }
234
+
227
235
  function _assertClass(instance, klass) {
228
236
  if (!(instance instanceof klass)) {
229
237
  throw new Error(`expected instance of ${klass.name}`);
@@ -236,12 +244,6 @@ function passArray8ToWasm0(arg, malloc) {
236
244
  WASM_VECTOR_LEN = arg.length;
237
245
  return ptr;
238
246
  }
239
-
240
- function takeFromExternrefTable0(idx) {
241
- const value = wasm.__wbindgen_export_4.get(idx);
242
- wasm.__externref_table_dealloc(idx);
243
- return value;
244
- }
245
247
  /**
246
248
  * @param {MultiRemoteAttachment} multiRemoteAttachment
247
249
  * @returns {Uint8Array}
@@ -373,28 +375,23 @@ export function generateInboxId(accountIdentifier) {
373
375
  }
374
376
 
375
377
  function __wbg_adapter_50(arg0, arg1) {
376
- wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h6040dd5f55152215(arg0, arg1);
378
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h575b04d35ced4eef(arg0, arg1);
377
379
  }
378
380
 
379
381
  function __wbg_adapter_53(arg0, arg1) {
380
- wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h89dafc0baf46c12b(arg0, arg1);
382
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h796728156b0a2ca1(arg0, arg1);
381
383
  }
382
384
 
383
385
  function __wbg_adapter_56(arg0, arg1, arg2) {
384
- wasm.closure4459_externref_shim(arg0, arg1, arg2);
386
+ wasm.closure4502_externref_shim(arg0, arg1, arg2);
385
387
  }
386
388
 
387
389
  function __wbg_adapter_59(arg0, arg1) {
388
- wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0f45197f24caef5a(arg0, arg1);
389
- }
390
-
391
- function __wbg_adapter_650(arg0, arg1, arg2, arg3, arg4) {
392
- const ret = wasm.closure5466_externref_shim(arg0, arg1, arg2, arg3, arg4);
393
- return ret !== 0;
390
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h5c244b99d95a8e7a(arg0, arg1);
394
391
  }
395
392
 
396
- function __wbg_adapter_751(arg0, arg1, arg2, arg3) {
397
- wasm.closure5465_externref_shim(arg0, arg1, arg2, arg3);
393
+ function __wbg_adapter_769(arg0, arg1, arg2, arg3) {
394
+ wasm.closure5473_externref_shim(arg0, arg1, arg2, arg3);
398
395
  }
399
396
 
400
397
  /**
@@ -551,6 +548,137 @@ const __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"];
551
548
 
552
549
  const __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate"];
553
550
 
551
+ const ApiStatsFinalization = (typeof FinalizationRegistry === 'undefined')
552
+ ? { register: () => {}, unregister: () => {} }
553
+ : new FinalizationRegistry(ptr => wasm.__wbg_apistats_free(ptr >>> 0, 1));
554
+
555
+ export class ApiStats {
556
+
557
+ static __wrap(ptr) {
558
+ ptr = ptr >>> 0;
559
+ const obj = Object.create(ApiStats.prototype);
560
+ obj.__wbg_ptr = ptr;
561
+ ApiStatsFinalization.register(obj, obj.__wbg_ptr, obj);
562
+ return obj;
563
+ }
564
+
565
+ __destroy_into_raw() {
566
+ const ptr = this.__wbg_ptr;
567
+ this.__wbg_ptr = 0;
568
+ ApiStatsFinalization.unregister(this);
569
+ return ptr;
570
+ }
571
+
572
+ free() {
573
+ const ptr = this.__destroy_into_raw();
574
+ wasm.__wbg_apistats_free(ptr, 0);
575
+ }
576
+ /**
577
+ * @returns {bigint}
578
+ */
579
+ get upload_key_package() {
580
+ const ret = wasm.__wbg_get_apistats_upload_key_package(this.__wbg_ptr);
581
+ return BigInt.asUintN(64, ret);
582
+ }
583
+ /**
584
+ * @param {bigint} arg0
585
+ */
586
+ set upload_key_package(arg0) {
587
+ wasm.__wbg_set_apistats_upload_key_package(this.__wbg_ptr, arg0);
588
+ }
589
+ /**
590
+ * @returns {bigint}
591
+ */
592
+ get fetch_key_package() {
593
+ const ret = wasm.__wbg_get_apistats_fetch_key_package(this.__wbg_ptr);
594
+ return BigInt.asUintN(64, ret);
595
+ }
596
+ /**
597
+ * @param {bigint} arg0
598
+ */
599
+ set fetch_key_package(arg0) {
600
+ wasm.__wbg_set_apistats_fetch_key_package(this.__wbg_ptr, arg0);
601
+ }
602
+ /**
603
+ * @returns {bigint}
604
+ */
605
+ get send_group_messages() {
606
+ const ret = wasm.__wbg_get_apistats_send_group_messages(this.__wbg_ptr);
607
+ return BigInt.asUintN(64, ret);
608
+ }
609
+ /**
610
+ * @param {bigint} arg0
611
+ */
612
+ set send_group_messages(arg0) {
613
+ wasm.__wbg_set_apistats_send_group_messages(this.__wbg_ptr, arg0);
614
+ }
615
+ /**
616
+ * @returns {bigint}
617
+ */
618
+ get send_welcome_messages() {
619
+ const ret = wasm.__wbg_get_apistats_send_welcome_messages(this.__wbg_ptr);
620
+ return BigInt.asUintN(64, ret);
621
+ }
622
+ /**
623
+ * @param {bigint} arg0
624
+ */
625
+ set send_welcome_messages(arg0) {
626
+ wasm.__wbg_set_apistats_send_welcome_messages(this.__wbg_ptr, arg0);
627
+ }
628
+ /**
629
+ * @returns {bigint}
630
+ */
631
+ get query_group_messages() {
632
+ const ret = wasm.__wbg_get_apistats_query_group_messages(this.__wbg_ptr);
633
+ return BigInt.asUintN(64, ret);
634
+ }
635
+ /**
636
+ * @param {bigint} arg0
637
+ */
638
+ set query_group_messages(arg0) {
639
+ wasm.__wbg_set_apistats_query_group_messages(this.__wbg_ptr, arg0);
640
+ }
641
+ /**
642
+ * @returns {bigint}
643
+ */
644
+ get query_welcome_messages() {
645
+ const ret = wasm.__wbg_get_apistats_query_welcome_messages(this.__wbg_ptr);
646
+ return BigInt.asUintN(64, ret);
647
+ }
648
+ /**
649
+ * @param {bigint} arg0
650
+ */
651
+ set query_welcome_messages(arg0) {
652
+ wasm.__wbg_set_apistats_query_welcome_messages(this.__wbg_ptr, arg0);
653
+ }
654
+ /**
655
+ * @returns {bigint}
656
+ */
657
+ get subscribe_messages() {
658
+ const ret = wasm.__wbg_get_apistats_subscribe_messages(this.__wbg_ptr);
659
+ return BigInt.asUintN(64, ret);
660
+ }
661
+ /**
662
+ * @param {bigint} arg0
663
+ */
664
+ set subscribe_messages(arg0) {
665
+ wasm.__wbg_set_apistats_subscribe_messages(this.__wbg_ptr, arg0);
666
+ }
667
+ /**
668
+ * @returns {bigint}
669
+ */
670
+ get subscribe_welcomes() {
671
+ const ret = wasm.__wbg_get_apistats_subscribe_welcomes(this.__wbg_ptr);
672
+ return BigInt.asUintN(64, ret);
673
+ }
674
+ /**
675
+ * @param {bigint} arg0
676
+ */
677
+ set subscribe_welcomes(arg0) {
678
+ wasm.__wbg_set_apistats_subscribe_welcomes(this.__wbg_ptr, arg0);
679
+ }
680
+ }
681
+
554
682
  const ClientFinalization = (typeof FinalizationRegistry === 'undefined')
555
683
  ? { register: () => {}, unregister: () => {} }
556
684
  : new FinalizationRegistry(ptr => wasm.__wbg_client_free(ptr >>> 0, 1));
@@ -576,6 +704,27 @@ export class Client {
576
704
  const ptr = this.__destroy_into_raw();
577
705
  wasm.__wbg_client_free(ptr, 0);
578
706
  }
707
+ /**
708
+ * @param {Consent[]} records
709
+ * @returns {Promise<void>}
710
+ */
711
+ setConsentStates(records) {
712
+ const ptr0 = passArrayJsValueToWasm0(records, wasm.__wbindgen_malloc);
713
+ const len0 = WASM_VECTOR_LEN;
714
+ const ret = wasm.client_setConsentStates(this.__wbg_ptr, ptr0, len0);
715
+ return ret;
716
+ }
717
+ /**
718
+ * @param {ConsentEntityType} entity_type
719
+ * @param {string} entity
720
+ * @returns {Promise<ConsentState>}
721
+ */
722
+ getConsentState(entity_type, entity) {
723
+ const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
724
+ const len0 = WASM_VECTOR_LEN;
725
+ const ret = wasm.client_getConsentState(this.__wbg_ptr, entity_type, ptr0, len0);
726
+ return ret;
727
+ }
579
728
  /**
580
729
  * @returns {string | undefined}
581
730
  */
@@ -805,24 +954,42 @@ export class Client {
805
954
  return ret;
806
955
  }
807
956
  /**
808
- * @param {Consent[]} records
809
- * @returns {Promise<void>}
957
+ * @returns {ApiStats}
810
958
  */
811
- setConsentStates(records) {
812
- const ptr0 = passArrayJsValueToWasm0(records, wasm.__wbindgen_malloc);
813
- const len0 = WASM_VECTOR_LEN;
814
- const ret = wasm.client_setConsentStates(this.__wbg_ptr, ptr0, len0);
815
- return ret;
959
+ apiStatistics() {
960
+ const ret = wasm.client_apiStatistics(this.__wbg_ptr);
961
+ return ApiStats.__wrap(ret);
816
962
  }
817
963
  /**
818
- * @param {ConsentEntityType} entity_type
819
- * @param {string} entity
820
- * @returns {Promise<ConsentState>}
964
+ * @returns {IdentityStats}
821
965
  */
822
- getConsentState(entity_type, entity) {
823
- const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
966
+ apiIdentityStatistics() {
967
+ const ret = wasm.client_apiIdentityStatistics(this.__wbg_ptr);
968
+ return IdentityStats.__wrap(ret);
969
+ }
970
+ /**
971
+ * @returns {string}
972
+ */
973
+ apiAggregateStatistics() {
974
+ let deferred1_0;
975
+ let deferred1_1;
976
+ try {
977
+ const ret = wasm.client_apiAggregateStatistics(this.__wbg_ptr);
978
+ deferred1_0 = ret[0];
979
+ deferred1_1 = ret[1];
980
+ return getStringFromWasm0(ret[0], ret[1]);
981
+ } finally {
982
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
983
+ }
984
+ }
985
+ /**
986
+ * @param {string} server_url
987
+ * @returns {Promise<string>}
988
+ */
989
+ uploadDebugArchive(server_url) {
990
+ const ptr0 = passStringToWasm0(server_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
824
991
  const len0 = WASM_VECTOR_LEN;
825
- const ret = wasm.client_getConsentState(this.__wbg_ptr, entity_type, ptr0, len0);
992
+ const ret = wasm.client_uploadDebugArchive(this.__wbg_ptr, ptr0, len0);
826
993
  return ret;
827
994
  }
828
995
  /**
@@ -1000,7 +1167,7 @@ export class ContentTypeId {
1000
1167
  set authorityId(arg0) {
1001
1168
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1002
1169
  const len0 = WASM_VECTOR_LEN;
1003
- wasm.__wbg_set_contenttypeid_authorityId(this.__wbg_ptr, ptr0, len0);
1170
+ wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
1004
1171
  }
1005
1172
  /**
1006
1173
  * @returns {string}
@@ -1913,13 +2080,6 @@ export class Conversations {
1913
2080
  const ret = wasm.conversations_syncAllConversations(this.__wbg_ptr, ptr0, len0);
1914
2081
  return ret;
1915
2082
  }
1916
- /**
1917
- * @returns {Promise<void>}
1918
- */
1919
- syncDeviceSync() {
1920
- const ret = wasm.conversations_syncDeviceSync(this.__wbg_ptr);
1921
- return ret;
1922
- }
1923
2083
  /**
1924
2084
  * @param {ListConversationsOptions | null} [opts]
1925
2085
  * @returns {Array<any>}
@@ -2368,7 +2528,7 @@ export class GroupMember {
2368
2528
  set inboxId(arg0) {
2369
2529
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2370
2530
  const len0 = WASM_VECTOR_LEN;
2371
- wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
2531
+ wasm.__wbg_set_groupmember_inboxId(this.__wbg_ptr, ptr0, len0);
2372
2532
  }
2373
2533
  /**
2374
2534
  * @returns {Identifier[]}
@@ -2604,6 +2764,85 @@ export class HmacKey {
2604
2764
  }
2605
2765
  }
2606
2766
 
2767
+ const IdentityStatsFinalization = (typeof FinalizationRegistry === 'undefined')
2768
+ ? { register: () => {}, unregister: () => {} }
2769
+ : new FinalizationRegistry(ptr => wasm.__wbg_identitystats_free(ptr >>> 0, 1));
2770
+
2771
+ export class IdentityStats {
2772
+
2773
+ static __wrap(ptr) {
2774
+ ptr = ptr >>> 0;
2775
+ const obj = Object.create(IdentityStats.prototype);
2776
+ obj.__wbg_ptr = ptr;
2777
+ IdentityStatsFinalization.register(obj, obj.__wbg_ptr, obj);
2778
+ return obj;
2779
+ }
2780
+
2781
+ __destroy_into_raw() {
2782
+ const ptr = this.__wbg_ptr;
2783
+ this.__wbg_ptr = 0;
2784
+ IdentityStatsFinalization.unregister(this);
2785
+ return ptr;
2786
+ }
2787
+
2788
+ free() {
2789
+ const ptr = this.__destroy_into_raw();
2790
+ wasm.__wbg_identitystats_free(ptr, 0);
2791
+ }
2792
+ /**
2793
+ * @returns {bigint}
2794
+ */
2795
+ get publish_identity_update() {
2796
+ const ret = wasm.__wbg_get_apistats_upload_key_package(this.__wbg_ptr);
2797
+ return BigInt.asUintN(64, ret);
2798
+ }
2799
+ /**
2800
+ * @param {bigint} arg0
2801
+ */
2802
+ set publish_identity_update(arg0) {
2803
+ wasm.__wbg_set_apistats_upload_key_package(this.__wbg_ptr, arg0);
2804
+ }
2805
+ /**
2806
+ * @returns {bigint}
2807
+ */
2808
+ get get_identity_updates_v2() {
2809
+ const ret = wasm.__wbg_get_apistats_fetch_key_package(this.__wbg_ptr);
2810
+ return BigInt.asUintN(64, ret);
2811
+ }
2812
+ /**
2813
+ * @param {bigint} arg0
2814
+ */
2815
+ set get_identity_updates_v2(arg0) {
2816
+ wasm.__wbg_set_apistats_fetch_key_package(this.__wbg_ptr, arg0);
2817
+ }
2818
+ /**
2819
+ * @returns {bigint}
2820
+ */
2821
+ get get_inbox_ids() {
2822
+ const ret = wasm.__wbg_get_apistats_send_group_messages(this.__wbg_ptr);
2823
+ return BigInt.asUintN(64, ret);
2824
+ }
2825
+ /**
2826
+ * @param {bigint} arg0
2827
+ */
2828
+ set get_inbox_ids(arg0) {
2829
+ wasm.__wbg_set_apistats_send_group_messages(this.__wbg_ptr, arg0);
2830
+ }
2831
+ /**
2832
+ * @returns {bigint}
2833
+ */
2834
+ get verify_smart_contract_wallet_signature() {
2835
+ const ret = wasm.__wbg_get_apistats_send_welcome_messages(this.__wbg_ptr);
2836
+ return BigInt.asUintN(64, ret);
2837
+ }
2838
+ /**
2839
+ * @param {bigint} arg0
2840
+ */
2841
+ set verify_smart_contract_wallet_signature(arg0) {
2842
+ wasm.__wbg_set_apistats_send_welcome_messages(this.__wbg_ptr, arg0);
2843
+ }
2844
+ }
2845
+
2607
2846
  const InboxStateFinalization = (typeof FinalizationRegistry === 'undefined')
2608
2847
  ? { register: () => {}, unregister: () => {} }
2609
2848
  : new FinalizationRegistry(ptr => wasm.__wbg_inboxstate_free(ptr >>> 0, 1));
@@ -2650,7 +2889,7 @@ export class InboxState {
2650
2889
  set inboxId(arg0) {
2651
2890
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2652
2891
  const len0 = WASM_VECTOR_LEN;
2653
- wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
2892
+ wasm.__wbg_set_inboxstate_inboxId(this.__wbg_ptr, ptr0, len0);
2654
2893
  }
2655
2894
  /**
2656
2895
  * @returns {Identifier}
@@ -3219,7 +3458,7 @@ export class ListMessagesOptions {
3219
3458
  * @param {bigint | null} [arg0]
3220
3459
  */
3221
3460
  set sentBeforeNs(arg0) {
3222
- wasm.__wbg_set_listmessagesoptions_sentBeforeNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
3461
+ wasm.__wbg_set_listconversationsoptions_createdAfterNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
3223
3462
  }
3224
3463
  /**
3225
3464
  * @returns {bigint | undefined}
@@ -3232,7 +3471,7 @@ export class ListMessagesOptions {
3232
3471
  * @param {bigint | null} [arg0]
3233
3472
  */
3234
3473
  set sentAfterNs(arg0) {
3235
- wasm.__wbg_set_listmessagesoptions_sentAfterNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
3474
+ wasm.__wbg_set_listconversationsoptions_createdBeforeNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
3236
3475
  }
3237
3476
  /**
3238
3477
  * @returns {bigint | undefined}
@@ -3245,7 +3484,7 @@ export class ListMessagesOptions {
3245
3484
  * @param {bigint | null} [arg0]
3246
3485
  */
3247
3486
  set limit(arg0) {
3248
- wasm.__wbg_set_listmessagesoptions_limit(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
3487
+ wasm.__wbg_set_listconversationsoptions_limit(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
3249
3488
  }
3250
3489
  /**
3251
3490
  * @returns {DeliveryStatus | undefined}
@@ -3441,14 +3680,14 @@ export class Message {
3441
3680
  * @returns {bigint}
3442
3681
  */
3443
3682
  get sentAtNs() {
3444
- const ret = wasm.__wbg_get_message_sentAtNs(this.__wbg_ptr);
3683
+ const ret = wasm.__wbg_get_conversationdebuginfo_epoch(this.__wbg_ptr);
3445
3684
  return ret;
3446
3685
  }
3447
3686
  /**
3448
3687
  * @param {bigint} arg0
3449
3688
  */
3450
3689
  set sentAtNs(arg0) {
3451
- wasm.__wbg_set_message_sentAtNs(this.__wbg_ptr, arg0);
3690
+ wasm.__wbg_set_conversationdebuginfo_epoch(this.__wbg_ptr, arg0);
3452
3691
  }
3453
3692
  /**
3454
3693
  * @returns {string}
@@ -4093,7 +4332,7 @@ export class Reaction {
4093
4332
  set reference(arg0) {
4094
4333
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
4095
4334
  const len0 = WASM_VECTOR_LEN;
4096
- wasm.__wbg_set_reaction_reference(this.__wbg_ptr, ptr0, len0);
4335
+ wasm.__wbg_set_groupmember_inboxId(this.__wbg_ptr, ptr0, len0);
4097
4336
  }
4098
4337
  /**
4099
4338
  * @returns {string}
@@ -4603,7 +4842,7 @@ function __wbg_get_imports() {
4603
4842
  const ret = Object.create(arg0);
4604
4843
  return ret;
4605
4844
  };
4606
- imports.wbg.__wbg_crypto_ed58b8e10a292839 = function(arg0) {
4845
+ imports.wbg.__wbg_crypto_574e78ad8b13b65f = function(arg0) {
4607
4846
  const ret = arg0.crypto;
4608
4847
  return ret;
4609
4848
  };
@@ -4653,24 +4892,6 @@ function __wbg_get_imports() {
4653
4892
  imports.wbg.__wbg_error_80de38b3f7cc3c3c = function(arg0, arg1, arg2, arg3) {
4654
4893
  console.error(arg0, arg1, arg2, arg3);
4655
4894
  };
4656
- imports.wbg.__wbg_every_44c3a06a12373d8d = function(arg0, arg1, arg2) {
4657
- try {
4658
- var state0 = {a: arg1, b: arg2};
4659
- var cb0 = (arg0, arg1, arg2) => {
4660
- const a = state0.a;
4661
- state0.a = 0;
4662
- try {
4663
- return __wbg_adapter_650(a, state0.b, arg0, arg1, arg2);
4664
- } finally {
4665
- state0.a = a;
4666
- }
4667
- };
4668
- const ret = arg0.every(cb0);
4669
- return ret;
4670
- } finally {
4671
- state0.a = state0.b = 0;
4672
- }
4673
- };
4674
4895
  imports.wbg.__wbg_fetch_509096533071c657 = function(arg0, arg1) {
4675
4896
  const ret = arg0.fetch(arg1);
4676
4897
  return ret;
@@ -4683,24 +4904,6 @@ function __wbg_get_imports() {
4683
4904
  const ret = arg0.fill(arg1, arg2 >>> 0, arg3 >>> 0);
4684
4905
  return ret;
4685
4906
  };
4686
- imports.wbg.__wbg_findIndex_3e4f86a66183a36b = function(arg0, arg1, arg2) {
4687
- try {
4688
- var state0 = {a: arg1, b: arg2};
4689
- var cb0 = (arg0, arg1, arg2) => {
4690
- const a = state0.a;
4691
- state0.a = 0;
4692
- try {
4693
- return __wbg_adapter_650(a, state0.b, arg0, arg1, arg2);
4694
- } finally {
4695
- state0.a = a;
4696
- }
4697
- };
4698
- const ret = arg0.findIndex(cb0);
4699
- return ret;
4700
- } finally {
4701
- state0.a = state0.b = 0;
4702
- }
4703
- };
4704
4907
  imports.wbg.__wbg_flush_1a680a66b21c53d7 = function() { return handleError(function (arg0) {
4705
4908
  arg0.flush();
4706
4909
  }, arguments) };
@@ -4744,10 +4947,13 @@ function __wbg_get_imports() {
4744
4947
  const ret = arg0.getMonth();
4745
4948
  return ret;
4746
4949
  };
4747
- imports.wbg.__wbg_getRandomValues_21a0191e74d0e1d3 = function() { return handleError(function (arg0, arg1) {
4950
+ imports.wbg.__wbg_getRandomValues_3c9c0d586e575a16 = function() { return handleError(function (arg0, arg1) {
4951
+ globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
4952
+ }, arguments) };
4953
+ imports.wbg.__wbg_getRandomValues_9cf8a9a052847419 = function() { return handleError(function (arg0, arg1) {
4748
4954
  globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
4749
4955
  }, arguments) };
4750
- imports.wbg.__wbg_getRandomValues_bcb4912f16000dc4 = function() { return handleError(function (arg0, arg1) {
4956
+ imports.wbg.__wbg_getRandomValues_b8f5dbd5f3995a9e = function() { return handleError(function (arg0, arg1) {
4751
4957
  arg0.getRandomValues(arg1);
4752
4958
  }, arguments) };
4753
4959
  imports.wbg.__wbg_getReader_48e00749fe3f6089 = function() { return handleError(function (arg0) {
@@ -4794,10 +5000,6 @@ function __wbg_get_imports() {
4794
5000
  const ret = arg0[arg1 >>> 0];
4795
5001
  return ret;
4796
5002
  };
4797
- imports.wbg.__wbg_getindex_d332410fbea81873 = function(arg0, arg1) {
4798
- const ret = arg0[arg1 >>> 0];
4799
- return ret;
4800
- };
4801
5003
  imports.wbg.__wbg_getvalue_009dcd63692bee1f = function(arg0) {
4802
5004
  const ret = arg0.value;
4803
5005
  return ret;
@@ -4880,26 +5082,6 @@ function __wbg_get_imports() {
4880
5082
  const ret = result;
4881
5083
  return ret;
4882
5084
  };
4883
- imports.wbg.__wbg_instanceof_ServiceWorkerGlobalScope_9662fcbac1190e8b = function(arg0) {
4884
- let result;
4885
- try {
4886
- result = arg0 instanceof ServiceWorkerGlobalScope;
4887
- } catch (_) {
4888
- result = false;
4889
- }
4890
- const ret = result;
4891
- return ret;
4892
- };
4893
- imports.wbg.__wbg_instanceof_SharedWorkerGlobalScope_1796b9b4c3344538 = function(arg0) {
4894
- let result;
4895
- try {
4896
- result = arg0 instanceof SharedWorkerGlobalScope;
4897
- } catch (_) {
4898
- result = false;
4899
- }
4900
- const ret = result;
4901
- return ret;
4902
- };
4903
5085
  imports.wbg.__wbg_instanceof_Uint8Array_17156bcf118086a9 = function(arg0) {
4904
5086
  let result;
4905
5087
  try {
@@ -4910,16 +5092,6 @@ function __wbg_get_imports() {
4910
5092
  const ret = result;
4911
5093
  return ret;
4912
5094
  };
4913
- imports.wbg.__wbg_instanceof_Window_def73ea0955fc569 = function(arg0) {
4914
- let result;
4915
- try {
4916
- result = arg0 instanceof Window;
4917
- } catch (_) {
4918
- result = false;
4919
- }
4920
- const ret = result;
4921
- return ret;
4922
- };
4923
5095
  imports.wbg.__wbg_instanceof_WorkerGlobalScope_dbdbdea7e3b56493 = function(arg0) {
4924
5096
  let result;
4925
5097
  try {
@@ -4985,7 +5157,7 @@ function __wbg_get_imports() {
4985
5157
  const ret = MessageWithReactions.__wrap(arg0);
4986
5158
  return ret;
4987
5159
  };
4988
- imports.wbg.__wbg_msCrypto_0a36e2ec3a343d26 = function(arg0) {
5160
+ imports.wbg.__wbg_msCrypto_a61aeb35a24c1329 = function(arg0) {
4989
5161
  const ret = arg0.msCrypto;
4990
5162
  return ret;
4991
5163
  };
@@ -5015,7 +5187,7 @@ function __wbg_get_imports() {
5015
5187
  const a = state0.a;
5016
5188
  state0.a = 0;
5017
5189
  try {
5018
- return __wbg_adapter_751(a, state0.b, arg0, arg1);
5190
+ return __wbg_adapter_769(a, state0.b, arg0, arg1);
5019
5191
  } finally {
5020
5192
  state0.a = a;
5021
5193
  }
@@ -5082,10 +5254,6 @@ function __wbg_get_imports() {
5082
5254
  const ret = new Uint8Array(arg0 >>> 0);
5083
5255
  return ret;
5084
5256
  };
5085
- imports.wbg.__wbg_newwithlength_bd3de93688d68fbc = function(arg0) {
5086
- const ret = new Uint32Array(arg0 >>> 0);
5087
- return ret;
5088
- };
5089
5257
  imports.wbg.__wbg_newwithstrandinit_06c535e0a867c635 = function() { return handleError(function (arg0, arg1, arg2) {
5090
5258
  const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
5091
5259
  return ret;
@@ -5106,7 +5274,7 @@ function __wbg_get_imports() {
5106
5274
  const ret = arg0.next();
5107
5275
  return ret;
5108
5276
  }, arguments) };
5109
- imports.wbg.__wbg_node_02999533c4ea02e3 = function(arg0) {
5277
+ imports.wbg.__wbg_node_905d3e251edff8a2 = function(arg0) {
5110
5278
  const ret = arg0.node;
5111
5279
  return ret;
5112
5280
  };
@@ -5122,19 +5290,24 @@ function __wbg_get_imports() {
5122
5290
  const ret = arg0.now();
5123
5291
  return ret;
5124
5292
  };
5125
- imports.wbg.__wbg_onconsentupdate_54b444121968ec54 = function(arg0, arg1) {
5293
+ imports.wbg.__wbg_now_ffb89993ffe8c9e9 = function(arg0) {
5294
+ const ret = globalThis.performance.now();
5295
+ getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
5296
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
5297
+ };
5298
+ imports.wbg.__wbg_onconsentupdate_f4aeb6b2142a9f77 = function(arg0, arg1) {
5126
5299
  arg0.on_consent_update(arg1);
5127
5300
  };
5128
- imports.wbg.__wbg_onconversation_04d5bcbf4cf0aca0 = function(arg0, arg1) {
5301
+ imports.wbg.__wbg_onconversation_028c1117630a484e = function(arg0, arg1) {
5129
5302
  arg0.on_conversation(Conversation.__wrap(arg1));
5130
5303
  };
5131
- imports.wbg.__wbg_onerror_74a216da3c9154ed = function(arg0, arg1) {
5304
+ imports.wbg.__wbg_onerror_24ac3b185e05657b = function(arg0, arg1) {
5132
5305
  arg0.on_error(arg1);
5133
5306
  };
5134
- imports.wbg.__wbg_onmessage_027fcf9b1c8f68e9 = function(arg0, arg1) {
5307
+ imports.wbg.__wbg_onmessage_8c039fe8f8e0e49c = function(arg0, arg1) {
5135
5308
  arg0.on_message(Message.__wrap(arg1));
5136
5309
  };
5137
- imports.wbg.__wbg_onuserpreferenceupdate_b0f871f854fe68fd = function(arg0, arg1, arg2) {
5310
+ imports.wbg.__wbg_onuserpreferenceupdate_0e3efc9839666dfd = function(arg0, arg1, arg2) {
5138
5311
  var v0 = getArrayJsValueFromWasm0(arg1, arg2).slice();
5139
5312
  wasm.__wbindgen_free(arg1, arg2 * 4, 4);
5140
5313
  arg0.on_user_preference_update(v0);
@@ -5150,19 +5323,11 @@ function __wbg_get_imports() {
5150
5323
  const ret = globalThis.performance;
5151
5324
  return ret;
5152
5325
  };
5153
- imports.wbg.__wbg_performance_704644393c4d3310 = function(arg0) {
5154
- const ret = arg0.performance;
5155
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
5156
- };
5157
5326
  imports.wbg.__wbg_performance_7a3ffd0b17f663ad = function(arg0) {
5158
5327
  const ret = arg0.performance;
5159
5328
  return ret;
5160
5329
  };
5161
- imports.wbg.__wbg_performance_c185c0cdc2766575 = function(arg0) {
5162
- const ret = arg0.performance;
5163
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
5164
- };
5165
- imports.wbg.__wbg_process_5c1d670bc53614b8 = function(arg0) {
5330
+ imports.wbg.__wbg_process_dc0fbacc7c1c06f7 = function(arg0) {
5166
5331
  const ret = arg0.process;
5167
5332
  return ret;
5168
5333
  };
@@ -5177,7 +5342,7 @@ function __wbg_get_imports() {
5177
5342
  const ret = arg0.queueMicrotask;
5178
5343
  return ret;
5179
5344
  };
5180
- imports.wbg.__wbg_randomFillSync_ab2cfe79ebbf2740 = function() { return handleError(function (arg0, arg1) {
5345
+ imports.wbg.__wbg_randomFillSync_ac0988aba3254290 = function() { return handleError(function (arg0, arg1) {
5181
5346
  arg0.randomFillSync(arg1);
5182
5347
  }, arguments) };
5183
5348
  imports.wbg.__wbg_random_3ad904d98382defe = function() {
@@ -5211,7 +5376,7 @@ function __wbg_get_imports() {
5211
5376
  const ret = arg0.removeEntry(getStringFromWasm0(arg1, arg2));
5212
5377
  return ret;
5213
5378
  };
5214
- imports.wbg.__wbg_require_79b1e9274cde3c87 = function() { return handleError(function () {
5379
+ imports.wbg.__wbg_require_60cc747a6bc5215a = function() { return handleError(function () {
5215
5380
  const ret = module.require;
5216
5381
  return ret;
5217
5382
  }, arguments) };
@@ -5276,12 +5441,6 @@ function __wbg_get_imports() {
5276
5441
  imports.wbg.__wbg_setheaders_834c0bdb6a8949ad = function(arg0, arg1) {
5277
5442
  arg0.headers = arg1;
5278
5443
  };
5279
- imports.wbg.__wbg_setindex_c430b78b97744fcc = function(arg0, arg1, arg2) {
5280
- arg0[arg1 >>> 0] = arg2 >>> 0;
5281
- };
5282
- imports.wbg.__wbg_setindex_dcd71eabf405bde1 = function(arg0, arg1, arg2) {
5283
- arg0[arg1 >>> 0] = arg2;
5284
- };
5285
5444
  imports.wbg.__wbg_setmethod_3c5280fe5d890842 = function(arg0, arg1, arg2) {
5286
5445
  arg0.method = getStringFromWasm0(arg1, arg2);
5287
5446
  };
@@ -5354,10 +5513,16 @@ function __wbg_get_imports() {
5354
5513
  const ret = arg0.then(arg1, arg2);
5355
5514
  return ret;
5356
5515
  };
5516
+ imports.wbg.__wbg_toSlice_543b72cb118ed345 = function(arg0, arg1, arg2, arg3) {
5517
+ JSUtils.toSlice(arg0, arg1, arg2 >>> 0, arg3 >>> 0);
5518
+ };
5357
5519
  imports.wbg.__wbg_toString_ba82658ec370add0 = function() { return handleError(function (arg0, arg1) {
5358
5520
  const ret = arg0.toString(arg1);
5359
5521
  return ret;
5360
5522
  }, arguments) };
5523
+ imports.wbg.__wbg_toUint8Array_ee685a679892191f = function(arg0, arg1, arg2, arg3) {
5524
+ JSUtils.toUint8Array(arg0, arg1 >>> 0, arg2 >>> 0, arg3);
5525
+ };
5361
5526
  imports.wbg.__wbg_truncate_29261a6365c72b01 = function() { return handleError(function (arg0, arg1) {
5362
5527
  arg0.truncate(arg1 >>> 0);
5363
5528
  }, arguments) };
@@ -5375,7 +5540,7 @@ function __wbg_get_imports() {
5375
5540
  const ret = arg0.value;
5376
5541
  return ret;
5377
5542
  };
5378
- imports.wbg.__wbg_versions_c71aa1626a93e0a1 = function(arg0) {
5543
+ imports.wbg.__wbg_versions_c01dfd4722a88165 = function(arg0) {
5379
5544
  const ret = arg0.versions;
5380
5545
  return ret;
5381
5546
  };
@@ -5389,10 +5554,6 @@ function __wbg_get_imports() {
5389
5554
  imports.wbg.__wbg_warn_aaf1f4664a035bd6 = function(arg0, arg1, arg2, arg3) {
5390
5555
  console.warn(arg0, arg1, arg2, arg3);
5391
5556
  };
5392
- imports.wbg.__wbg_write_1d776df9041838cf = function() { return handleError(function (arg0, arg1, arg2) {
5393
- const ret = arg0.write(arg1, arg2);
5394
- return ret;
5395
- }, arguments) };
5396
5557
  imports.wbg.__wbg_write_530d3c84df874f53 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
5397
5558
  const ret = arg0.write(getArrayU8FromWasm0(arg1, arg2), arg3);
5398
5559
  return ret;
@@ -5430,20 +5591,20 @@ function __wbg_get_imports() {
5430
5591
  const ret = false;
5431
5592
  return ret;
5432
5593
  };
5433
- imports.wbg.__wbindgen_closure_wrapper17265 = function(arg0, arg1, arg2) {
5434
- const ret = makeMutClosure(arg0, arg1, 4093, __wbg_adapter_50);
5594
+ imports.wbg.__wbindgen_closure_wrapper16613 = function(arg0, arg1, arg2) {
5595
+ const ret = makeMutClosure(arg0, arg1, 4145, __wbg_adapter_50);
5435
5596
  return ret;
5436
5597
  };
5437
- imports.wbg.__wbindgen_closure_wrapper17309 = function(arg0, arg1, arg2) {
5438
- const ret = makeMutClosure(arg0, arg1, 4103, __wbg_adapter_53);
5598
+ imports.wbg.__wbindgen_closure_wrapper16755 = function(arg0, arg1, arg2) {
5599
+ const ret = makeMutClosure(arg0, arg1, 4199, __wbg_adapter_53);
5439
5600
  return ret;
5440
5601
  };
5441
- imports.wbg.__wbindgen_closure_wrapper20550 = function(arg0, arg1, arg2) {
5442
- const ret = makeMutClosure(arg0, arg1, 4460, __wbg_adapter_56);
5602
+ imports.wbg.__wbindgen_closure_wrapper19854 = function(arg0, arg1, arg2) {
5603
+ const ret = makeMutClosure(arg0, arg1, 4503, __wbg_adapter_56);
5443
5604
  return ret;
5444
5605
  };
5445
- imports.wbg.__wbindgen_closure_wrapper20671 = function(arg0, arg1, arg2) {
5446
- const ret = makeMutClosure(arg0, arg1, 4474, __wbg_adapter_59);
5606
+ imports.wbg.__wbindgen_closure_wrapper19962 = function(arg0, arg1, arg2) {
5607
+ const ret = makeMutClosure(arg0, arg1, 4512, __wbg_adapter_59);
5447
5608
  return ret;
5448
5609
  };
5449
5610
  imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {