@xmtp/wasm-bindings 0.0.1 → 0.0.2

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.
@@ -20,6 +20,19 @@ function getStringFromWasm0(ptr, len) {
20
20
  return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
21
21
  }
22
22
 
23
+ function isLikeNone(x) {
24
+ return x === undefined || x === null;
25
+ }
26
+
27
+ let cachedDataViewMemory0 = null;
28
+
29
+ function getDataViewMemory0() {
30
+ if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
31
+ cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
32
+ }
33
+ return cachedDataViewMemory0;
34
+ }
35
+
23
36
  let WASM_VECTOR_LEN = 0;
24
37
 
25
38
  const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
@@ -76,19 +89,6 @@ function passStringToWasm0(arg, malloc, realloc) {
76
89
  return ptr;
77
90
  }
78
91
 
79
- function isLikeNone(x) {
80
- return x === undefined || x === null;
81
- }
82
-
83
- let cachedDataViewMemory0 = null;
84
-
85
- function getDataViewMemory0() {
86
- if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
87
- cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
88
- }
89
- return cachedDataViewMemory0;
90
- }
91
-
92
92
  function debugString(val) {
93
93
  // primitive types
94
94
  const type = typeof val;
@@ -184,18 +184,12 @@ function makeMutClosure(arg0, arg1, dtor, f) {
184
184
  CLOSURE_DTORS.register(real, state, state);
185
185
  return real;
186
186
  }
187
- function __wbg_adapter_44(arg0, arg1) {
188
- wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hccdc993aebae1d0b(arg0, arg1);
189
- }
190
-
191
- function __wbg_adapter_47(arg0, arg1, arg2) {
192
- wasm.closure2262_externref_shim(arg0, arg1, arg2);
187
+ function __wbg_adapter_46(arg0, arg1) {
188
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0991cb2389da8d1c(arg0, arg1);
193
189
  }
194
190
 
195
- function takeFromExternrefTable0(idx) {
196
- const value = wasm.__wbindgen_export_2.get(idx);
197
- wasm.__externref_table_dealloc(idx);
198
- return value;
191
+ function __wbg_adapter_49(arg0, arg1, arg2) {
192
+ wasm.closure2398_externref_shim(arg0, arg1, arg2);
199
193
  }
200
194
 
201
195
  function getArrayJsValueFromWasm0(ptr, len) {
@@ -231,30 +225,12 @@ function _assertClass(instance, klass) {
231
225
  }
232
226
  return instance.ptr;
233
227
  }
234
- /**
235
- * @param {string} host
236
- * @param {string} inbox_id
237
- * @param {string} account_address
238
- * @param {string} db_path
239
- * @param {Uint8Array | undefined} [encryption_key]
240
- * @param {string | undefined} [history_sync_url]
241
- * @returns {Promise<WasmClient>}
242
- */
243
- export function createClient(host, inbox_id, account_address, db_path, encryption_key, history_sync_url) {
244
- const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
245
- const len0 = WASM_VECTOR_LEN;
246
- const ptr1 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
247
- const len1 = WASM_VECTOR_LEN;
248
- const ptr2 = passStringToWasm0(account_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
249
- const len2 = WASM_VECTOR_LEN;
250
- const ptr3 = passStringToWasm0(db_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
251
- const len3 = WASM_VECTOR_LEN;
252
- var ptr4 = isLikeNone(history_sync_url) ? 0 : passStringToWasm0(history_sync_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
253
- var len4 = WASM_VECTOR_LEN;
254
- const ret = wasm.createClient(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, isLikeNone(encryption_key) ? 0 : addToExternrefTable0(encryption_key), ptr4, len4);
255
- return ret;
256
- }
257
228
 
229
+ function takeFromExternrefTable0(idx) {
230
+ const value = wasm.__wbindgen_export_2.get(idx);
231
+ wasm.__externref_table_dealloc(idx);
232
+ return value;
233
+ }
258
234
  /**
259
235
  * @param {string} host
260
236
  * @param {string} account_address
@@ -288,6 +264,30 @@ export function generateInboxId(account_address) {
288
264
  }
289
265
  }
290
266
 
267
+ /**
268
+ * @param {string} host
269
+ * @param {string} inbox_id
270
+ * @param {string} account_address
271
+ * @param {string} db_path
272
+ * @param {Uint8Array | undefined} [encryption_key]
273
+ * @param {string | undefined} [history_sync_url]
274
+ * @returns {Promise<WasmClient>}
275
+ */
276
+ export function createClient(host, inbox_id, account_address, db_path, encryption_key, history_sync_url) {
277
+ const ptr0 = passStringToWasm0(host, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
278
+ const len0 = WASM_VECTOR_LEN;
279
+ const ptr1 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
280
+ const len1 = WASM_VECTOR_LEN;
281
+ const ptr2 = passStringToWasm0(account_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
282
+ const len2 = WASM_VECTOR_LEN;
283
+ const ptr3 = passStringToWasm0(db_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
284
+ const len3 = WASM_VECTOR_LEN;
285
+ var ptr4 = isLikeNone(history_sync_url) ? 0 : passStringToWasm0(history_sync_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
286
+ var len4 = WASM_VECTOR_LEN;
287
+ const ret = wasm.createClient(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, isLikeNone(encryption_key) ? 0 : addToExternrefTable0(encryption_key), ptr4, len4);
288
+ return ret;
289
+ }
290
+
291
291
  function handleError(f, args) {
292
292
  try {
293
293
  return f.apply(this, args);
@@ -360,20 +360,26 @@ export function __wbgtest_cov_dump() {
360
360
  return v1;
361
361
  }
362
362
 
363
- function __wbg_adapter_523(arg0, arg1, arg2, arg3, arg4) {
364
- wasm.closure3105_externref_shim(arg0, arg1, arg2, arg3, arg4);
363
+ function __wbg_adapter_537(arg0, arg1, arg2, arg3, arg4) {
364
+ wasm.closure3231_externref_shim(arg0, arg1, arg2, arg3, arg4);
365
365
  }
366
366
 
367
- function __wbg_adapter_566(arg0, arg1, arg2, arg3) {
368
- wasm.closure3103_externref_shim(arg0, arg1, arg2, arg3);
367
+ function __wbg_adapter_580(arg0, arg1, arg2, arg3) {
368
+ wasm.closure3227_externref_shim(arg0, arg1, arg2, arg3);
369
369
  }
370
370
 
371
371
  export const WasmConsentEntityType = Object.freeze({ GroupId:0,"0":"GroupId",InboxId:1,"1":"InboxId",Address:2,"2":"Address", });
372
372
 
373
373
  export const WasmConsentState = Object.freeze({ Unknown:0,"0":"Unknown",Allowed:1,"1":"Allowed",Denied:2,"2":"Denied", });
374
374
 
375
+ export const WasmConversationType = Object.freeze({ Dm:0,"0":"Dm",Group:1,"1":"Group",Sync:2,"2":"Sync", });
376
+
375
377
  export const WasmDeliveryStatus = Object.freeze({ Unpublished:0,"0":"Unpublished",Published:1,"1":"Published",Failed:2,"2":"Failed", });
376
378
 
379
+ export const WasmDirection = Object.freeze({ Ascending:0,"0":"Ascending",Descending:1,"1":"Descending", });
380
+
381
+ export const WasmGroupMembershipState = Object.freeze({ Allowed:0,"0":"Allowed",Rejected:1,"1":"Rejected",Pending:2,"2":"Pending", });
382
+
377
383
  export const WasmGroupMessageKind = Object.freeze({ Application:0,"0":"Application",MembershipChange:1,"1":"MembershipChange", });
378
384
 
379
385
  export const WasmGroupPermissionsOptions = Object.freeze({ AllMembers:0,"0":"AllMembers",AdminOnly:1,"1":"AdminOnly",CustomPolicy:2,"2":"CustomPolicy", });
@@ -640,75 +646,6 @@ export class WasmClient {
640
646
  const ptr = this.__destroy_into_raw();
641
647
  wasm.__wbg_wasmclient_free(ptr, 0);
642
648
  }
643
- /**
644
- * @returns {string}
645
- */
646
- get accountAddress() {
647
- let deferred1_0;
648
- let deferred1_1;
649
- try {
650
- const ret = wasm.wasmclient_accountAddress(this.__wbg_ptr);
651
- deferred1_0 = ret[0];
652
- deferred1_1 = ret[1];
653
- return getStringFromWasm0(ret[0], ret[1]);
654
- } finally {
655
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
656
- }
657
- }
658
- /**
659
- * @returns {string}
660
- */
661
- get inboxId() {
662
- let deferred1_0;
663
- let deferred1_1;
664
- try {
665
- const ret = wasm.wasmclient_inboxId(this.__wbg_ptr);
666
- deferred1_0 = ret[0];
667
- deferred1_1 = ret[1];
668
- return getStringFromWasm0(ret[0], ret[1]);
669
- } finally {
670
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
671
- }
672
- }
673
- /**
674
- * @returns {boolean}
675
- */
676
- get isRegistered() {
677
- const ret = wasm.wasmclient_isRegistered(this.__wbg_ptr);
678
- return ret !== 0;
679
- }
680
- /**
681
- * @returns {string}
682
- */
683
- get installationId() {
684
- let deferred1_0;
685
- let deferred1_1;
686
- try {
687
- const ret = wasm.wasmclient_installationId(this.__wbg_ptr);
688
- deferred1_0 = ret[0];
689
- deferred1_1 = ret[1];
690
- return getStringFromWasm0(ret[0], ret[1]);
691
- } finally {
692
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
693
- }
694
- }
695
- /**
696
- * @param {(string)[]} account_addresses
697
- * @returns {Promise<any>}
698
- */
699
- canMessage(account_addresses) {
700
- const ptr0 = passArrayJsValueToWasm0(account_addresses, wasm.__wbindgen_malloc);
701
- const len0 = WASM_VECTOR_LEN;
702
- const ret = wasm.wasmclient_canMessage(this.__wbg_ptr, ptr0, len0);
703
- return ret;
704
- }
705
- /**
706
- * @returns {Promise<void>}
707
- */
708
- registerIdentity() {
709
- const ret = wasm.wasmclient_registerIdentity(this.__wbg_ptr);
710
- return ret;
711
- }
712
649
  /**
713
650
  * @returns {Promise<string | undefined>}
714
651
  */
@@ -763,20 +700,24 @@ export class WasmClient {
763
700
  return ret;
764
701
  }
765
702
  /**
703
+ * @param {(WasmConsent)[]} records
766
704
  * @returns {Promise<void>}
767
705
  */
768
- requestHistorySync() {
769
- const ret = wasm.wasmclient_requestHistorySync(this.__wbg_ptr);
706
+ setConsentStates(records) {
707
+ const ptr0 = passArrayJsValueToWasm0(records, wasm.__wbindgen_malloc);
708
+ const len0 = WASM_VECTOR_LEN;
709
+ const ret = wasm.wasmclient_setConsentStates(this.__wbg_ptr, ptr0, len0);
770
710
  return ret;
771
711
  }
772
712
  /**
773
- * @param {string} address
774
- * @returns {Promise<string | undefined>}
713
+ * @param {WasmConsentEntityType} entity_type
714
+ * @param {string} entity
715
+ * @returns {Promise<WasmConsentState>}
775
716
  */
776
- findInboxIdByAddress(address) {
777
- const ptr0 = passStringToWasm0(address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
717
+ getConsentState(entity_type, entity) {
718
+ const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
778
719
  const len0 = WASM_VECTOR_LEN;
779
- const ret = wasm.wasmclient_findInboxIdByAddress(this.__wbg_ptr, ptr0, len0);
720
+ const ret = wasm.wasmclient_getConsentState(this.__wbg_ptr, entity_type, ptr0, len0);
780
721
  return ret;
781
722
  }
782
723
  /**
@@ -803,94 +744,166 @@ export class WasmClient {
803
744
  const ret = wasm.wasmclient_getLatestInboxState(this.__wbg_ptr, ptr0, len0);
804
745
  return ret;
805
746
  }
806
- /**
807
- * @param {(WasmConsent)[]} records
808
- * @returns {Promise<void>}
809
- */
810
- setConsentStates(records) {
811
- const ptr0 = passArrayJsValueToWasm0(records, wasm.__wbindgen_malloc);
812
- const len0 = WASM_VECTOR_LEN;
813
- const ret = wasm.wasmclient_setConsentStates(this.__wbg_ptr, ptr0, len0);
814
- return ret;
815
- }
816
- /**
817
- * @param {WasmConsentEntityType} entity_type
818
- * @param {string} entity
819
- * @returns {Promise<WasmConsentState>}
820
- */
821
- getConsentState(entity_type, entity) {
822
- const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
823
- const len0 = WASM_VECTOR_LEN;
824
- const ret = wasm.wasmclient_getConsentState(this.__wbg_ptr, entity_type, ptr0, len0);
825
- return ret;
826
- }
827
- /**
828
- * @returns {WasmConversations}
829
- */
830
- conversations() {
831
- const ret = wasm.wasmclient_conversations(this.__wbg_ptr);
832
- return WasmConversations.__wrap(ret);
833
- }
834
- }
835
-
836
- const WasmConsentFinalization = (typeof FinalizationRegistry === 'undefined')
837
- ? { register: () => {}, unregister: () => {} }
838
- : new FinalizationRegistry(ptr => wasm.__wbg_wasmconsent_free(ptr >>> 0, 1));
839
-
840
- export class WasmConsent {
841
-
842
- static __unwrap(jsValue) {
843
- if (!(jsValue instanceof WasmConsent)) {
844
- return 0;
845
- }
846
- return jsValue.__destroy_into_raw();
847
- }
848
-
849
- __destroy_into_raw() {
850
- const ptr = this.__wbg_ptr;
851
- this.__wbg_ptr = 0;
852
- WasmConsentFinalization.unregister(this);
853
- return ptr;
854
- }
855
-
856
- free() {
857
- const ptr = this.__destroy_into_raw();
858
- wasm.__wbg_wasmconsent_free(ptr, 0);
859
- }
860
- /**
861
- * @returns {WasmConsentEntityType}
862
- */
863
- get entity_type() {
864
- const ret = wasm.__wbg_get_wasmconsent_entity_type(this.__wbg_ptr);
865
- return ret;
866
- }
867
- /**
868
- * @param {WasmConsentEntityType} arg0
869
- */
870
- set entity_type(arg0) {
871
- wasm.__wbg_set_wasmconsent_entity_type(this.__wbg_ptr, arg0);
872
- }
873
- /**
874
- * @returns {WasmConsentState}
875
- */
876
- get state() {
877
- const ret = wasm.__wbg_get_wasmconsent_state(this.__wbg_ptr);
878
- return ret;
879
- }
880
- /**
881
- * @param {WasmConsentState} arg0
882
- */
883
- set state(arg0) {
884
- wasm.__wbg_set_wasmconsent_state(this.__wbg_ptr, arg0);
885
- }
886
747
  /**
887
748
  * @returns {string}
888
749
  */
889
- get entity() {
750
+ get accountAddress() {
890
751
  let deferred1_0;
891
752
  let deferred1_1;
892
753
  try {
893
- const ret = wasm.__wbg_get_wasmconsent_entity(this.__wbg_ptr);
754
+ const ret = wasm.wasmclient_accountAddress(this.__wbg_ptr);
755
+ deferred1_0 = ret[0];
756
+ deferred1_1 = ret[1];
757
+ return getStringFromWasm0(ret[0], ret[1]);
758
+ } finally {
759
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
760
+ }
761
+ }
762
+ /**
763
+ * @returns {string}
764
+ */
765
+ get inboxId() {
766
+ let deferred1_0;
767
+ let deferred1_1;
768
+ try {
769
+ const ret = wasm.wasmclient_inboxId(this.__wbg_ptr);
770
+ deferred1_0 = ret[0];
771
+ deferred1_1 = ret[1];
772
+ return getStringFromWasm0(ret[0], ret[1]);
773
+ } finally {
774
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
775
+ }
776
+ }
777
+ /**
778
+ * @returns {boolean}
779
+ */
780
+ get isRegistered() {
781
+ const ret = wasm.wasmclient_isRegistered(this.__wbg_ptr);
782
+ return ret !== 0;
783
+ }
784
+ /**
785
+ * @returns {string}
786
+ */
787
+ get installationId() {
788
+ let deferred1_0;
789
+ let deferred1_1;
790
+ try {
791
+ const ret = wasm.wasmclient_installationId(this.__wbg_ptr);
792
+ deferred1_0 = ret[0];
793
+ deferred1_1 = ret[1];
794
+ return getStringFromWasm0(ret[0], ret[1]);
795
+ } finally {
796
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
797
+ }
798
+ }
799
+ /**
800
+ * @param {(string)[]} account_addresses
801
+ * @returns {Promise<any>}
802
+ */
803
+ canMessage(account_addresses) {
804
+ const ptr0 = passArrayJsValueToWasm0(account_addresses, wasm.__wbindgen_malloc);
805
+ const len0 = WASM_VECTOR_LEN;
806
+ const ret = wasm.wasmclient_canMessage(this.__wbg_ptr, ptr0, len0);
807
+ return ret;
808
+ }
809
+ /**
810
+ * @returns {Promise<void>}
811
+ */
812
+ registerIdentity() {
813
+ const ret = wasm.wasmclient_registerIdentity(this.__wbg_ptr);
814
+ return ret;
815
+ }
816
+ /**
817
+ * @returns {Promise<void>}
818
+ */
819
+ sendHistorySyncRequest() {
820
+ const ret = wasm.wasmclient_sendHistorySyncRequest(this.__wbg_ptr);
821
+ return ret;
822
+ }
823
+ /**
824
+ * @returns {Promise<void>}
825
+ */
826
+ sendConsentSyncRequest() {
827
+ const ret = wasm.wasmclient_sendConsentSyncRequest(this.__wbg_ptr);
828
+ return ret;
829
+ }
830
+ /**
831
+ * @param {string} address
832
+ * @returns {Promise<string | undefined>}
833
+ */
834
+ findInboxIdByAddress(address) {
835
+ const ptr0 = passStringToWasm0(address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
836
+ const len0 = WASM_VECTOR_LEN;
837
+ const ret = wasm.wasmclient_findInboxIdByAddress(this.__wbg_ptr, ptr0, len0);
838
+ return ret;
839
+ }
840
+ /**
841
+ * @returns {WasmConversations}
842
+ */
843
+ conversations() {
844
+ const ret = wasm.wasmclient_conversations(this.__wbg_ptr);
845
+ return WasmConversations.__wrap(ret);
846
+ }
847
+ }
848
+
849
+ const WasmConsentFinalization = (typeof FinalizationRegistry === 'undefined')
850
+ ? { register: () => {}, unregister: () => {} }
851
+ : new FinalizationRegistry(ptr => wasm.__wbg_wasmconsent_free(ptr >>> 0, 1));
852
+
853
+ export class WasmConsent {
854
+
855
+ static __unwrap(jsValue) {
856
+ if (!(jsValue instanceof WasmConsent)) {
857
+ return 0;
858
+ }
859
+ return jsValue.__destroy_into_raw();
860
+ }
861
+
862
+ __destroy_into_raw() {
863
+ const ptr = this.__wbg_ptr;
864
+ this.__wbg_ptr = 0;
865
+ WasmConsentFinalization.unregister(this);
866
+ return ptr;
867
+ }
868
+
869
+ free() {
870
+ const ptr = this.__destroy_into_raw();
871
+ wasm.__wbg_wasmconsent_free(ptr, 0);
872
+ }
873
+ /**
874
+ * @returns {WasmConsentEntityType}
875
+ */
876
+ get entity_type() {
877
+ const ret = wasm.__wbg_get_wasmconsent_entity_type(this.__wbg_ptr);
878
+ return ret;
879
+ }
880
+ /**
881
+ * @param {WasmConsentEntityType} arg0
882
+ */
883
+ set entity_type(arg0) {
884
+ wasm.__wbg_set_wasmconsent_entity_type(this.__wbg_ptr, arg0);
885
+ }
886
+ /**
887
+ * @returns {WasmConsentState}
888
+ */
889
+ get state() {
890
+ const ret = wasm.__wbg_get_wasmconsent_state(this.__wbg_ptr);
891
+ return ret;
892
+ }
893
+ /**
894
+ * @param {WasmConsentState} arg0
895
+ */
896
+ set state(arg0) {
897
+ wasm.__wbg_set_wasmconsent_state(this.__wbg_ptr, arg0);
898
+ }
899
+ /**
900
+ * @returns {string}
901
+ */
902
+ get entity() {
903
+ let deferred1_0;
904
+ let deferred1_1;
905
+ try {
906
+ const ret = wasm.__wbg_get_wasmconsent_entity(this.__wbg_ptr);
894
907
  deferred1_0 = ret[0];
895
908
  deferred1_1 = ret[1];
896
909
  return getStringFromWasm0(ret[0], ret[1]);
@@ -967,7 +980,7 @@ export class WasmContentTypeId {
967
980
  set authority_id(arg0) {
968
981
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
969
982
  const len0 = WASM_VECTOR_LEN;
970
- wasm.__wbg_set_wasmcontenttypeid_authority_id(this.__wbg_ptr, ptr0, len0);
983
+ wasm.__wbg_set_wasmconsent_entity(this.__wbg_ptr, ptr0, len0);
971
984
  }
972
985
  /**
973
986
  * @returns {string}
@@ -1077,6 +1090,16 @@ export class WasmConversations {
1077
1090
  const ret = wasm.wasmconversations_create_group(this.__wbg_ptr, ptr0, len0, ptr1);
1078
1091
  return ret;
1079
1092
  }
1093
+ /**
1094
+ * @param {string} account_address
1095
+ * @returns {Promise<WasmGroup>}
1096
+ */
1097
+ create_dm(account_address) {
1098
+ const ptr0 = passStringToWasm0(account_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1099
+ const len0 = WASM_VECTOR_LEN;
1100
+ const ret = wasm.wasmconversations_create_dm(this.__wbg_ptr, ptr0, len0);
1101
+ return ret;
1102
+ }
1080
1103
  /**
1081
1104
  * @param {string} group_id
1082
1105
  * @returns {WasmGroup}
@@ -1090,6 +1113,19 @@ export class WasmConversations {
1090
1113
  }
1091
1114
  return WasmGroup.__wrap(ret[0]);
1092
1115
  }
1116
+ /**
1117
+ * @param {string} target_inbox_id
1118
+ * @returns {WasmGroup}
1119
+ */
1120
+ find_dm_by_target_inbox_id(target_inbox_id) {
1121
+ const ptr0 = passStringToWasm0(target_inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1122
+ const len0 = WASM_VECTOR_LEN;
1123
+ const ret = wasm.wasmconversations_find_dm_by_target_inbox_id(this.__wbg_ptr, ptr0, len0);
1124
+ if (ret[2]) {
1125
+ throw takeFromExternrefTable0(ret[1]);
1126
+ }
1127
+ return WasmGroup.__wrap(ret[0]);
1128
+ }
1093
1129
  /**
1094
1130
  * @param {string} message_id
1095
1131
  * @returns {WasmMessage}
@@ -1123,6 +1159,32 @@ export class WasmConversations {
1123
1159
  const ret = wasm.wasmconversations_list(this.__wbg_ptr, ptr0);
1124
1160
  return ret;
1125
1161
  }
1162
+ /**
1163
+ * @param {WasmListConversationsOptions | undefined} [opts]
1164
+ * @returns {Promise<Array<any>>}
1165
+ */
1166
+ list_groups(opts) {
1167
+ let ptr0 = 0;
1168
+ if (!isLikeNone(opts)) {
1169
+ _assertClass(opts, WasmListConversationsOptions);
1170
+ ptr0 = opts.__destroy_into_raw();
1171
+ }
1172
+ const ret = wasm.wasmconversations_list_groups(this.__wbg_ptr, ptr0);
1173
+ return ret;
1174
+ }
1175
+ /**
1176
+ * @param {WasmListConversationsOptions | undefined} [opts]
1177
+ * @returns {Promise<Array<any>>}
1178
+ */
1179
+ list_dms(opts) {
1180
+ let ptr0 = 0;
1181
+ if (!isLikeNone(opts)) {
1182
+ _assertClass(opts, WasmListConversationsOptions);
1183
+ ptr0 = opts.__destroy_into_raw();
1184
+ }
1185
+ const ret = wasm.wasmconversations_list_dms(this.__wbg_ptr, ptr0);
1186
+ return ret;
1187
+ }
1126
1188
  }
1127
1189
 
1128
1190
  const WasmCreateGroupOptionsFinalization = (typeof FinalizationRegistry === 'undefined')
@@ -1407,6 +1469,25 @@ export class WasmGroup {
1407
1469
  const ptr = this.__destroy_into_raw();
1408
1470
  wasm.__wbg_wasmgroup_free(ptr, 0);
1409
1471
  }
1472
+ /**
1473
+ * @returns {WasmConsentState}
1474
+ */
1475
+ consent_state() {
1476
+ const ret = wasm.wasmgroup_consent_state(this.__wbg_ptr);
1477
+ if (ret[2]) {
1478
+ throw takeFromExternrefTable0(ret[1]);
1479
+ }
1480
+ return ret[0];
1481
+ }
1482
+ /**
1483
+ * @param {WasmConsentState} state
1484
+ */
1485
+ update_consent_state(state) {
1486
+ const ret = wasm.wasmgroup_update_consent_state(this.__wbg_ptr, state);
1487
+ if (ret[1]) {
1488
+ throw takeFromExternrefTable0(ret[0]);
1489
+ }
1490
+ }
1410
1491
  /**
1411
1492
  * @returns {string}
1412
1493
  */
@@ -1810,22 +1891,24 @@ export class WasmGroup {
1810
1891
  return WasmGroupMetadata.__wrap(ret[0]);
1811
1892
  }
1812
1893
  /**
1813
- * @returns {WasmConsentState}
1814
- */
1815
- consent_state() {
1816
- const ret = wasm.wasmgroup_consent_state(this.__wbg_ptr);
1817
- if (ret[2]) {
1818
- throw takeFromExternrefTable0(ret[1]);
1819
- }
1820
- return ret[0];
1821
- }
1822
- /**
1823
- * @param {WasmConsentState} state
1894
+ * @returns {string}
1824
1895
  */
1825
- update_consent_state(state) {
1826
- const ret = wasm.wasmgroup_update_consent_state(this.__wbg_ptr, state);
1827
- if (ret[1]) {
1828
- throw takeFromExternrefTable0(ret[0]);
1896
+ dm_peer_inbox_id() {
1897
+ let deferred2_0;
1898
+ let deferred2_1;
1899
+ try {
1900
+ const ret = wasm.wasmgroup_dm_peer_inbox_id(this.__wbg_ptr);
1901
+ var ptr1 = ret[0];
1902
+ var len1 = ret[1];
1903
+ if (ret[3]) {
1904
+ ptr1 = 0; len1 = 0;
1905
+ throw takeFromExternrefTable0(ret[2]);
1906
+ }
1907
+ deferred2_0 = ptr1;
1908
+ deferred2_1 = len1;
1909
+ return getStringFromWasm0(ptr1, len1);
1910
+ } finally {
1911
+ wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
1829
1912
  }
1830
1913
  }
1831
1914
  }
@@ -2124,7 +2207,7 @@ export class WasmInboxState {
2124
2207
  set recovery_address(arg0) {
2125
2208
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2126
2209
  const len0 = WASM_VECTOR_LEN;
2127
- wasm.__wbg_set_wasminboxstate_recovery_address(this.__wbg_ptr, ptr0, len0);
2210
+ wasm.__wbg_set_wasmcontenttypeid_type_id(this.__wbg_ptr, ptr0, len0);
2128
2211
  }
2129
2212
  /**
2130
2213
  * @returns {(WasmInstallation)[]}
@@ -2281,6 +2364,39 @@ export class WasmListConversationsOptions {
2281
2364
  const ptr = this.__destroy_into_raw();
2282
2365
  wasm.__wbg_wasmlistconversationsoptions_free(ptr, 0);
2283
2366
  }
2367
+ /**
2368
+ * @returns {any[] | undefined}
2369
+ */
2370
+ get allowed_states() {
2371
+ const ret = wasm.__wbg_get_wasmlistconversationsoptions_allowed_states(this.__wbg_ptr);
2372
+ let v1;
2373
+ if (ret[0] !== 0) {
2374
+ v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
2375
+ wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
2376
+ }
2377
+ return v1;
2378
+ }
2379
+ /**
2380
+ * @param {any[] | undefined} [arg0]
2381
+ */
2382
+ set allowed_states(arg0) {
2383
+ var ptr0 = isLikeNone(arg0) ? 0 : passArrayJsValueToWasm0(arg0, wasm.__wbindgen_malloc);
2384
+ var len0 = WASM_VECTOR_LEN;
2385
+ wasm.__wbg_set_wasmlistconversationsoptions_allowed_states(this.__wbg_ptr, ptr0, len0);
2386
+ }
2387
+ /**
2388
+ * @returns {WasmConversationType | undefined}
2389
+ */
2390
+ get conversation_type() {
2391
+ const ret = wasm.__wbg_get_wasmlistconversationsoptions_conversation_type(this.__wbg_ptr);
2392
+ return ret === 3 ? undefined : ret;
2393
+ }
2394
+ /**
2395
+ * @param {WasmConversationType | undefined} [arg0]
2396
+ */
2397
+ set conversation_type(arg0) {
2398
+ wasm.__wbg_set_wasmlistconversationsoptions_conversation_type(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0);
2399
+ }
2284
2400
  /**
2285
2401
  * @returns {bigint | undefined}
2286
2402
  */
@@ -2321,12 +2437,16 @@ export class WasmListConversationsOptions {
2321
2437
  wasm.__wbg_set_wasmlistconversationsoptions_limit(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
2322
2438
  }
2323
2439
  /**
2440
+ * @param {any[] | undefined} [allowed_states]
2441
+ * @param {WasmConversationType | undefined} [conversation_type]
2324
2442
  * @param {bigint | undefined} [created_after_ns]
2325
2443
  * @param {bigint | undefined} [created_before_ns]
2326
2444
  * @param {bigint | undefined} [limit]
2327
2445
  */
2328
- constructor(created_after_ns, created_before_ns, limit) {
2329
- const ret = wasm.wasmlistconversationsoptions_new(!isLikeNone(created_after_ns), isLikeNone(created_after_ns) ? BigInt(0) : created_after_ns, !isLikeNone(created_before_ns), isLikeNone(created_before_ns) ? BigInt(0) : created_before_ns, !isLikeNone(limit), isLikeNone(limit) ? BigInt(0) : limit);
2446
+ constructor(allowed_states, conversation_type, created_after_ns, created_before_ns, limit) {
2447
+ var ptr0 = isLikeNone(allowed_states) ? 0 : passArrayJsValueToWasm0(allowed_states, wasm.__wbindgen_malloc);
2448
+ var len0 = WASM_VECTOR_LEN;
2449
+ const ret = wasm.wasmlistconversationsoptions_new(ptr0, len0, isLikeNone(conversation_type) ? 3 : conversation_type, !isLikeNone(created_after_ns), isLikeNone(created_after_ns) ? BigInt(0) : created_after_ns, !isLikeNone(created_before_ns), isLikeNone(created_before_ns) ? BigInt(0) : created_before_ns, !isLikeNone(limit), isLikeNone(limit) ? BigInt(0) : limit);
2330
2450
  this.__wbg_ptr = ret >>> 0;
2331
2451
  WasmListConversationsOptionsFinalization.register(this, this.__wbg_ptr, this);
2332
2452
  return this;
@@ -2361,7 +2481,7 @@ export class WasmListMessagesOptions {
2361
2481
  * @param {bigint | undefined} [arg0]
2362
2482
  */
2363
2483
  set sent_before_ns(arg0) {
2364
- wasm.__wbg_set_wasmlistconversationsoptions_created_after_ns(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
2484
+ wasm.__wbg_set_wasminstallation_client_timestamp_ns(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
2365
2485
  }
2366
2486
  /**
2367
2487
  * @returns {bigint | undefined}
@@ -2374,7 +2494,7 @@ export class WasmListMessagesOptions {
2374
2494
  * @param {bigint | undefined} [arg0]
2375
2495
  */
2376
2496
  set sent_after_ns(arg0) {
2377
- wasm.__wbg_set_wasmlistconversationsoptions_created_before_ns(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
2497
+ wasm.__wbg_set_wasmlistmessagesoptions_sent_after_ns(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
2378
2498
  }
2379
2499
  /**
2380
2500
  * @returns {bigint | undefined}
@@ -2387,7 +2507,7 @@ export class WasmListMessagesOptions {
2387
2507
  * @param {bigint | undefined} [arg0]
2388
2508
  */
2389
2509
  set limit(arg0) {
2390
- wasm.__wbg_set_wasmlistconversationsoptions_limit(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
2510
+ wasm.__wbg_set_wasmlistmessagesoptions_limit(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
2391
2511
  }
2392
2512
  /**
2393
2513
  * @returns {WasmDeliveryStatus | undefined}
@@ -2402,14 +2522,28 @@ export class WasmListMessagesOptions {
2402
2522
  set delivery_status(arg0) {
2403
2523
  wasm.__wbg_set_wasmlistmessagesoptions_delivery_status(this.__wbg_ptr, isLikeNone(arg0) ? 3 : arg0);
2404
2524
  }
2525
+ /**
2526
+ * @returns {WasmDirection | undefined}
2527
+ */
2528
+ get direction() {
2529
+ const ret = wasm.__wbg_get_wasmlistmessagesoptions_direction(this.__wbg_ptr);
2530
+ return ret === 2 ? undefined : ret;
2531
+ }
2532
+ /**
2533
+ * @param {WasmDirection | undefined} [arg0]
2534
+ */
2535
+ set direction(arg0) {
2536
+ wasm.__wbg_set_wasmlistmessagesoptions_direction(this.__wbg_ptr, isLikeNone(arg0) ? 2 : arg0);
2537
+ }
2405
2538
  /**
2406
2539
  * @param {bigint | undefined} [sent_before_ns]
2407
2540
  * @param {bigint | undefined} [sent_after_ns]
2408
2541
  * @param {bigint | undefined} [limit]
2409
2542
  * @param {WasmDeliveryStatus | undefined} [delivery_status]
2543
+ * @param {WasmDirection | undefined} [direction]
2410
2544
  */
2411
- constructor(sent_before_ns, sent_after_ns, limit, delivery_status) {
2412
- const ret = wasm.wasmlistmessagesoptions_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);
2545
+ constructor(sent_before_ns, sent_after_ns, limit, delivery_status, direction) {
2546
+ const ret = wasm.wasmlistmessagesoptions_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);
2413
2547
  this.__wbg_ptr = ret >>> 0;
2414
2548
  WasmListMessagesOptionsFinalization.register(this, this.__wbg_ptr, this);
2415
2549
  return this;
@@ -2778,933 +2912,939 @@ function __wbg_get_imports() {
2778
2912
  const ret = new Error(getStringFromWasm0(arg0, arg1));
2779
2913
  return ret;
2780
2914
  };
2781
- imports.wbg.__wbindgen_number_new = function(arg0) {
2782
- const ret = arg0;
2783
- return ret;
2784
- };
2785
2915
  imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
2786
2916
  const ret = getStringFromWasm0(arg0, arg1);
2787
2917
  return ret;
2788
2918
  };
2789
- imports.wbg.__wbg_wasminstallation_new = function(arg0) {
2790
- const ret = WasmInstallation.__wrap(arg0);
2791
- return ret;
2792
- };
2793
- imports.wbg.__wbg_wasmgroup_new = function(arg0) {
2794
- const ret = WasmGroup.__wrap(arg0);
2795
- return ret;
2796
- };
2797
- imports.wbg.__wbg_wasminboxstate_new = function(arg0) {
2798
- const ret = WasmInboxState.__wrap(arg0);
2919
+ imports.wbg.__wbindgen_number_new = function(arg0) {
2920
+ const ret = arg0;
2799
2921
  return ret;
2800
2922
  };
2801
2923
  imports.wbg.__wbg_wasmmessage_new = function(arg0) {
2802
2924
  const ret = WasmMessage.__wrap(arg0);
2803
2925
  return ret;
2804
2926
  };
2805
- imports.wbg.__wbg_wasmclient_new = function(arg0) {
2806
- const ret = WasmClient.__wrap(arg0);
2807
- return ret;
2808
- };
2809
- imports.wbg.__wbindgen_is_undefined = function(arg0) {
2810
- const ret = arg0 === undefined;
2811
- return ret;
2812
- };
2813
- imports.wbg.__wbindgen_in = function(arg0, arg1) {
2814
- const ret = arg0 in arg1;
2815
- return ret;
2816
- };
2817
- imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
2818
- const obj = arg1;
2819
- const ret = typeof(obj) === 'string' ? obj : undefined;
2820
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2821
- var len1 = WASM_VECTOR_LEN;
2822
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
2823
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2824
- };
2825
- imports.wbg.__wbindgen_is_object = function(arg0) {
2826
- const val = arg0;
2827
- const ret = typeof(val) === 'object' && val !== null;
2828
- return ret;
2829
- };
2830
- imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
2831
- const obj = arg1;
2832
- const ret = typeof(obj) === 'number' ? obj : undefined;
2833
- getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
2834
- getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
2835
- };
2836
- imports.wbg.__wbg_wasmconsent_unwrap = function(arg0) {
2837
- const ret = WasmConsent.__unwrap(arg0);
2838
- return ret;
2839
- };
2840
- imports.wbg.__wbg_wasminstallation_unwrap = function(arg0) {
2841
- const ret = WasmInstallation.__unwrap(arg0);
2842
- return ret;
2843
- };
2844
- imports.wbg.__wbindgen_as_number = function(arg0) {
2845
- const ret = +arg0;
2846
- return ret;
2847
- };
2848
- imports.wbg.__wbindgen_cb_drop = function(arg0) {
2849
- const obj = arg0.original;
2850
- if (obj.cnt-- == 1) {
2851
- obj.a = 0;
2852
- return true;
2853
- }
2854
- const ret = false;
2855
- return ret;
2856
- };
2857
- imports.wbg.__wbg_clearTimeout_541ac0980ffcef74 = typeof clearTimeout == 'function' ? clearTimeout : notDefined('clearTimeout');
2858
- imports.wbg.__wbg_setTimeout_7d81d052875b0f4f = function() { return handleError(function (arg0, arg1) {
2859
- const ret = setTimeout(arg0, arg1);
2860
- return ret;
2861
- }, arguments) };
2862
- imports.wbg.__wbg_log_c9486ca5d8e2cbe8 = function(arg0, arg1) {
2863
- let deferred0_0;
2864
- let deferred0_1;
2865
- try {
2866
- deferred0_0 = arg0;
2867
- deferred0_1 = arg1;
2868
- console.log(getStringFromWasm0(arg0, arg1));
2869
- } finally {
2870
- wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2871
- }
2872
- };
2873
- imports.wbg.__wbg_log_aba5996d9bde071f = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
2874
- let deferred0_0;
2875
- let deferred0_1;
2876
- try {
2877
- deferred0_0 = arg0;
2878
- deferred0_1 = arg1;
2879
- console.log(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3), getStringFromWasm0(arg4, arg5), getStringFromWasm0(arg6, arg7));
2880
- } finally {
2881
- wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2882
- }
2883
- };
2884
- imports.wbg.__wbg_mark_40e050a77cc39fea = function(arg0, arg1) {
2885
- performance.mark(getStringFromWasm0(arg0, arg1));
2886
- };
2887
- imports.wbg.__wbg_measure_aa7a73f17813f708 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
2888
- let deferred0_0;
2889
- let deferred0_1;
2890
- let deferred1_0;
2891
- let deferred1_1;
2892
- try {
2893
- deferred0_0 = arg0;
2894
- deferred0_1 = arg1;
2895
- deferred1_0 = arg2;
2896
- deferred1_1 = arg3;
2897
- performance.measure(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
2898
- } finally {
2899
- wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
2900
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
2901
- }
2902
- }, arguments) };
2903
- imports.wbg.__wbg_fetch_f8d735ba6fe1b719 = typeof fetch == 'function' ? fetch : notDefined('fetch');
2904
- imports.wbg.__wbg_sqlite3_ae38011f61b040f1 = function(arg0) {
2905
- const ret = arg0.sqlite3;
2906
- return ret;
2907
- };
2908
- imports.wbg.__wbg_wasm_d435af5a2079512e = function(arg0) {
2909
- const ret = arg0.wasm;
2910
- return ret;
2911
- };
2912
- imports.wbg.__wbg_pstack_fc77b7165420650a = function(arg0) {
2913
- const ret = arg0.pstack;
2914
- return ret;
2915
- };
2916
- imports.wbg.__wbg_pointer_d3c7ebff6fec1c91 = function(arg0) {
2917
- const ret = arg0.pointer;
2918
- return ret;
2919
- };
2920
- imports.wbg.__wbg_alloc_3dc7f2dcc7f32fdb = function(arg0, arg1) {
2921
- const ret = arg0.alloc(arg1 >>> 0);
2922
- return ret;
2923
- };
2924
- imports.wbg.__wbg_alloc_412cbdfb204df090 = function(arg0, arg1) {
2925
- const ret = arg0.alloc(arg1 >>> 0);
2926
- return ret;
2927
- };
2928
- imports.wbg.__wbg_preparev3_b9722ce244c18dbc = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
2929
- const ret = arg0.prepare_v3(arg1, arg2 >>> 0, arg3, arg4 >>> 0, arg5, arg6);
2930
- return ret;
2931
- };
2932
- imports.wbg.__wbg_peekPtr_a3eb6c43e8226b33 = function(arg0, arg1) {
2933
- const ret = arg0.peekPtr(arg1);
2934
- return ret;
2935
- };
2936
- imports.wbg.__wbg_restore_f0dcf7e42f529814 = function(arg0, arg1) {
2937
- arg0.restore(arg1);
2938
- };
2939
- imports.wbg.__wbindgen_is_null = function(arg0) {
2940
- const ret = arg0 === null;
2941
- return ret;
2942
- };
2943
- imports.wbg.__wbg_alloc_12d3472bbd917658 = function(arg0) {
2944
- const ret = arg0.alloc;
2945
- return ret;
2946
- };
2947
- imports.wbg.__wbg_allocPtr_a9d5b0a7a6dfb5ab = function(arg0, arg1, arg2) {
2948
- const ret = arg0.allocPtr(arg1 >>> 0, arg2 !== 0);
2927
+ imports.wbg.__wbg_wasmgroup_new = function(arg0) {
2928
+ const ret = WasmGroup.__wrap(arg0);
2949
2929
  return ret;
2950
2930
  };
2951
- imports.wbg.__wbg_impl_3c42f6bcb7b4c19c = function(arg0, arg1) {
2952
- const ret = arg0.impl(arg1 >>> 0);
2931
+ imports.wbg.__wbg_wasminstallation_new = function(arg0) {
2932
+ const ret = WasmInstallation.__wrap(arg0);
2953
2933
  return ret;
2954
2934
  };
2955
- imports.wbg.__wbg_bindnull_a579e45de8665932 = function(arg0, arg1, arg2) {
2956
- const ret = arg0.bind_null(arg1, arg2);
2935
+ imports.wbg.__wbg_wasminboxstate_new = function(arg0) {
2936
+ const ret = WasmInboxState.__wrap(arg0);
2957
2937
  return ret;
2958
2938
  };
2959
- imports.wbg.__wbg_bindtext_b0a790891eeafc66 = function(arg0, arg1, arg2, arg3, arg4, arg5) {
2960
- const ret = arg0.bind_text(arg1, arg2, arg3 >>> 0, arg4, arg5);
2939
+ imports.wbg.__wbg_wasmclient_new = function(arg0) {
2940
+ const ret = WasmClient.__wrap(arg0);
2961
2941
  return ret;
2962
2942
  };
2963
- imports.wbg.__wbg_bindint_e1f4dcb68267a201 = function(arg0, arg1, arg2, arg3) {
2964
- const ret = arg0.bind_int(arg1, arg2, arg3);
2943
+ imports.wbg.__wbindgen_try_into_number = function(arg0) {
2944
+ let result;
2945
+ try { result = +arg0 } catch (e) { result = e }
2946
+ const ret = result;
2947
+ return ret;
2948
+ };
2949
+ imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
2950
+ const obj = arg1;
2951
+ const ret = typeof(obj) === 'number' ? obj : undefined;
2952
+ getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
2953
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
2954
+ };
2955
+ imports.wbg.__wbg_wasmconsent_unwrap = function(arg0) {
2956
+ const ret = WasmConsent.__unwrap(arg0);
2957
+ return ret;
2958
+ };
2959
+ imports.wbg.__wbg_wasminstallation_unwrap = function(arg0) {
2960
+ const ret = WasmInstallation.__unwrap(arg0);
2961
+ return ret;
2962
+ };
2963
+ imports.wbg.__wbindgen_is_undefined = function(arg0) {
2964
+ const ret = arg0 === undefined;
2965
+ return ret;
2966
+ };
2967
+ imports.wbg.__wbindgen_in = function(arg0, arg1) {
2968
+ const ret = arg0 in arg1;
2969
+ return ret;
2970
+ };
2971
+ imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
2972
+ const obj = arg1;
2973
+ const ret = typeof(obj) === 'string' ? obj : undefined;
2974
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2975
+ var len1 = WASM_VECTOR_LEN;
2976
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
2977
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2978
+ };
2979
+ imports.wbg.__wbindgen_is_object = function(arg0) {
2980
+ const val = arg0;
2981
+ const ret = typeof(val) === 'object' && val !== null;
2982
+ return ret;
2983
+ };
2984
+ imports.wbg.__wbindgen_as_number = function(arg0) {
2985
+ const ret = +arg0;
2986
+ return ret;
2987
+ };
2988
+ imports.wbg.__wbindgen_cb_drop = function(arg0) {
2989
+ const obj = arg0.original;
2990
+ if (obj.cnt-- == 1) {
2991
+ obj.a = 0;
2992
+ return true;
2993
+ }
2994
+ const ret = false;
2995
+ return ret;
2996
+ };
2997
+ imports.wbg.__wbg_clearTimeout_541ac0980ffcef74 = typeof clearTimeout == 'function' ? clearTimeout : notDefined('clearTimeout');
2998
+ imports.wbg.__wbg_setTimeout_7d81d052875b0f4f = function() { return handleError(function (arg0, arg1) {
2999
+ const ret = setTimeout(arg0, arg1);
3000
+ return ret;
3001
+ }, arguments) };
3002
+ imports.wbg.__wbg_log_c9486ca5d8e2cbe8 = function(arg0, arg1) {
3003
+ let deferred0_0;
3004
+ let deferred0_1;
3005
+ try {
3006
+ deferred0_0 = arg0;
3007
+ deferred0_1 = arg1;
3008
+ console.log(getStringFromWasm0(arg0, arg1));
3009
+ } finally {
3010
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
3011
+ }
3012
+ };
3013
+ imports.wbg.__wbg_log_aba5996d9bde071f = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
3014
+ let deferred0_0;
3015
+ let deferred0_1;
3016
+ try {
3017
+ deferred0_0 = arg0;
3018
+ deferred0_1 = arg1;
3019
+ console.log(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3), getStringFromWasm0(arg4, arg5), getStringFromWasm0(arg6, arg7));
3020
+ } finally {
3021
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
3022
+ }
3023
+ };
3024
+ imports.wbg.__wbg_mark_40e050a77cc39fea = function(arg0, arg1) {
3025
+ performance.mark(getStringFromWasm0(arg0, arg1));
3026
+ };
3027
+ imports.wbg.__wbg_measure_aa7a73f17813f708 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
3028
+ let deferred0_0;
3029
+ let deferred0_1;
3030
+ let deferred1_0;
3031
+ let deferred1_1;
3032
+ try {
3033
+ deferred0_0 = arg0;
3034
+ deferred0_1 = arg1;
3035
+ deferred1_0 = arg2;
3036
+ deferred1_1 = arg3;
3037
+ performance.measure(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
3038
+ } finally {
3039
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
3040
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
3041
+ }
3042
+ }, arguments) };
3043
+ imports.wbg.__wbg_fetch_f8d735ba6fe1b719 = typeof fetch == 'function' ? fetch : notDefined('fetch');
3044
+ imports.wbg.__wbg_sqlite3_ae38011f61b040f1 = function(arg0) {
3045
+ const ret = arg0.sqlite3;
3046
+ return ret;
3047
+ };
3048
+ imports.wbg.__wbg_wasm_d435af5a2079512e = function(arg0) {
3049
+ const ret = arg0.wasm;
3050
+ return ret;
3051
+ };
3052
+ imports.wbg.__wbg_pstack_fc77b7165420650a = function(arg0) {
3053
+ const ret = arg0.pstack;
3054
+ return ret;
3055
+ };
3056
+ imports.wbg.__wbg_pointer_d3c7ebff6fec1c91 = function(arg0) {
3057
+ const ret = arg0.pointer;
3058
+ return ret;
3059
+ };
3060
+ imports.wbg.__wbg_alloc_3dc7f2dcc7f32fdb = function(arg0, arg1) {
3061
+ const ret = arg0.alloc(arg1 >>> 0);
3062
+ return ret;
3063
+ };
3064
+ imports.wbg.__wbg_alloc_412cbdfb204df090 = function(arg0, arg1) {
3065
+ const ret = arg0.alloc(arg1 >>> 0);
3066
+ return ret;
3067
+ };
3068
+ imports.wbg.__wbg_preparev3_b9722ce244c18dbc = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
3069
+ const ret = arg0.prepare_v3(arg1, arg2 >>> 0, arg3, arg4 >>> 0, arg5, arg6);
3070
+ return ret;
3071
+ };
3072
+ imports.wbg.__wbg_peekPtr_a3eb6c43e8226b33 = function(arg0, arg1) {
3073
+ const ret = arg0.peekPtr(arg1);
3074
+ return ret;
3075
+ };
3076
+ imports.wbg.__wbg_restore_f0dcf7e42f529814 = function(arg0, arg1) {
3077
+ arg0.restore(arg1);
3078
+ };
3079
+ imports.wbg.__wbindgen_is_null = function(arg0) {
3080
+ const ret = arg0 === null;
3081
+ return ret;
3082
+ };
3083
+ imports.wbg.__wbg_alloc_12d3472bbd917658 = function(arg0) {
3084
+ const ret = arg0.alloc;
3085
+ return ret;
3086
+ };
3087
+ imports.wbg.__wbg_allocPtr_a9d5b0a7a6dfb5ab = function(arg0, arg1, arg2) {
3088
+ const ret = arg0.allocPtr(arg1 >>> 0, arg2 !== 0);
3089
+ return ret;
3090
+ };
3091
+ imports.wbg.__wbg_impl_3c42f6bcb7b4c19c = function(arg0, arg1) {
3092
+ const ret = arg0.impl(arg1 >>> 0);
3093
+ return ret;
3094
+ };
3095
+ imports.wbg.__wbg_bindnull_a579e45de8665932 = function(arg0, arg1, arg2) {
3096
+ const ret = arg0.bind_null(arg1, arg2);
3097
+ return ret;
3098
+ };
3099
+ imports.wbg.__wbg_bindtext_b0a790891eeafc66 = function(arg0, arg1, arg2, arg3, arg4, arg5) {
3100
+ const ret = arg0.bind_text(arg1, arg2, arg3 >>> 0, arg4, arg5);
3101
+ return ret;
3102
+ };
3103
+ imports.wbg.__wbg_bindint_e1f4dcb68267a201 = function(arg0, arg1, arg2, arg3) {
3104
+ const ret = arg0.bind_int(arg1, arg2, arg3);
3105
+ return ret;
3106
+ };
3107
+ imports.wbg.__wbg_bindint64_4cb9d1672a18e57b = function(arg0, arg1, arg2, arg3) {
3108
+ const ret = arg0.bind_int64(arg1, arg2, arg3);
3109
+ return ret;
3110
+ };
3111
+ imports.wbg.__wbg_binddouble_1506f6b8c0c42d14 = function(arg0, arg1, arg2, arg3) {
3112
+ const ret = arg0.bind_double(arg1, arg2, arg3);
3113
+ return ret;
3114
+ };
3115
+ imports.wbg.__wbg_bindblob_f2a0872798d6b562 = function(arg0, arg1, arg2, arg3, arg4, arg5) {
3116
+ const ret = arg0.bind_blob(arg1, arg2, arg3 >>> 0, arg4, arg5);
3117
+ return ret;
3118
+ };
3119
+ imports.wbg.__wbg_dbhandle_9fa910514462f201 = function(arg0, arg1) {
3120
+ const ret = arg0.db_handle(arg1);
3121
+ return ret;
3122
+ };
3123
+ imports.wbg.__wbg_dealloc_351653c7fd6f869c = function(arg0, arg1) {
3124
+ arg0.dealloc(arg1 >>> 0);
3125
+ };
3126
+ imports.wbg.__wbg_finalize_7ee740fba804fefe = function() { return handleError(function (arg0, arg1) {
3127
+ arg0.finalize(arg1);
3128
+ }, arguments) };
3129
+ imports.wbg.__wbg_reset_64daad59c50383d3 = function(arg0, arg1) {
3130
+ const ret = arg0.reset(arg1);
3131
+ return ret;
3132
+ };
3133
+ imports.wbg.__wbg_step_09504a247e0ba954 = function(arg0, arg1) {
3134
+ const ret = arg0.step(arg1);
3135
+ return ret;
3136
+ };
3137
+ imports.wbg.__wbg_columncount_da141db0617412dd = function(arg0, arg1) {
3138
+ const ret = arg0.column_count(arg1);
3139
+ return ret;
3140
+ };
3141
+ imports.wbg.__wbg_columnvalue_83d37aeaa7f4bef6 = function(arg0, arg1, arg2) {
3142
+ const ret = arg0.column_value(arg1, arg2);
3143
+ return ret;
3144
+ };
3145
+ imports.wbg.__wbindgen_link_42e73067c99cbdba = function(arg0) {
3146
+ const ret = new URL('snippets/diesel-wasm-sqlite-36e85657e47f3be3/src/js/sqlite3-opfs-async-proxy.js', import.meta.url).toString();
3147
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3148
+ const len1 = WASM_VECTOR_LEN;
3149
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3150
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3151
+ };
3152
+ imports.wbg.__wbg_heap8u_e5e9645d146c39a3 = function(arg0) {
3153
+ const ret = arg0.heap8u();
3154
+ return ret;
3155
+ };
3156
+ imports.wbg.__wbg_capi_74a1a04b4eb066db = function(arg0) {
3157
+ const ret = arg0.capi;
3158
+ return ret;
3159
+ };
3160
+ imports.wbg.__wbg_new_d2b35c9d7f4b1471 = function(arg0) {
3161
+ const ret = new SQLite(arg0);
3162
+ return ret;
3163
+ };
3164
+ imports.wbg.__wbg_version_7fb95c5a88d542ce = function(arg0) {
3165
+ const ret = arg0.version();
3166
+ return ret;
3167
+ };
3168
+ imports.wbg.__wbg_filename_9eb2d8c937e22432 = function(arg0, arg1, arg2, arg3, arg4) {
3169
+ let deferred0_0;
3170
+ let deferred0_1;
3171
+ try {
3172
+ deferred0_0 = arg3;
3173
+ deferred0_1 = arg4;
3174
+ const ret = arg1.filename(arg2, getStringFromWasm0(arg3, arg4));
3175
+ const ptr2 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3176
+ const len2 = WASM_VECTOR_LEN;
3177
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len2, true);
3178
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr2, true);
3179
+ } finally {
3180
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
3181
+ }
3182
+ };
3183
+ imports.wbg.__wbg_errstr_5114edcda623dd5a = function(arg0, arg1, arg2) {
3184
+ const ret = arg1.errstr(arg2);
3185
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3186
+ const len1 = WASM_VECTOR_LEN;
3187
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3188
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3189
+ };
3190
+ imports.wbg.__wbg_errmsg_43ea55533a3ea740 = function(arg0, arg1, arg2) {
3191
+ const ret = arg1.errmsg(arg2);
3192
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3193
+ const len1 = WASM_VECTOR_LEN;
3194
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3195
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3196
+ };
3197
+ imports.wbg.__wbg_extendederrcode_2e0c706dd10fe107 = function(arg0, arg1) {
3198
+ const ret = arg0.extended_errcode(arg1);
3199
+ return ret;
3200
+ };
3201
+ imports.wbg.__wbg_valuedup_186941ef4d6d7d09 = function(arg0, arg1) {
3202
+ const ret = arg0.value_dup(arg1 >>> 0);
3203
+ return ret;
3204
+ };
3205
+ imports.wbg.__wbg_valueblob_80b0d28b673e9efc = function(arg0, arg1) {
3206
+ const ret = arg0.value_blob(arg1 >>> 0);
3207
+ return ret;
3208
+ };
3209
+ imports.wbg.__wbg_valuebytes_ae42a50aaa4db15e = function(arg0, arg1) {
3210
+ const ret = arg0.value_bytes(arg1 >>> 0);
3211
+ return ret;
3212
+ };
3213
+ imports.wbg.__wbg_valuefree_47295db839c6fbb4 = function(arg0, arg1) {
3214
+ arg0.value_free(arg1 >>> 0);
3215
+ };
3216
+ imports.wbg.__wbg_valueint_b4d6710e3940d2d0 = function(arg0, arg1) {
3217
+ const ret = arg0.value_int(arg1 >>> 0);
3218
+ return ret;
3219
+ };
3220
+ imports.wbg.__wbg_valueint64_89f223f9f63833ee = function(arg0, arg1) {
3221
+ const ret = arg0.value_int64(arg1 >>> 0);
3222
+ return ret;
3223
+ };
3224
+ imports.wbg.__wbg_valuetext_503dfdd35d1a5d23 = function(arg0, arg1, arg2) {
3225
+ const ret = arg1.value_text(arg2 >>> 0);
3226
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3227
+ const len1 = WASM_VECTOR_LEN;
3228
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3229
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3230
+ };
3231
+ imports.wbg.__wbg_valuetype_10265d962173575d = function(arg0, arg1) {
3232
+ const ret = arg0.value_type(arg1 >>> 0);
3233
+ return ret;
3234
+ };
3235
+ imports.wbg.__wbg_open_630840f0e3bfa104 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
3236
+ const ret = arg0.open(getStringFromWasm0(arg1, arg2), arg3 === 0 ? undefined : arg4);
3237
+ return ret;
3238
+ }, arguments) };
3239
+ imports.wbg.__wbg_exec_891e7bcb242b8263 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
3240
+ arg0.exec(arg1, getStringFromWasm0(arg2, arg3));
3241
+ }, arguments) };
3242
+ imports.wbg.__wbg_changes_449e8e7adde4811b = function(arg0, arg1) {
3243
+ const ret = arg0.changes(arg1);
3244
+ return ret;
3245
+ };
3246
+ imports.wbg.__wbg_close_f1e03beafae72a1f = function(arg0, arg1) {
3247
+ const ret = arg0.close(arg1);
3248
+ return ret;
3249
+ };
3250
+ imports.wbg.__wbg_columnname_ff3aa78d6aa3c952 = function(arg0, arg1, arg2, arg3) {
3251
+ const ret = arg1.column_name(arg2, arg3);
3252
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3253
+ const len1 = WASM_VECTOR_LEN;
3254
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3255
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3256
+ };
3257
+ imports.wbg.__wbg_registerdieselsqlfunctions_376c3851387d1a3a = function() { return handleError(function (arg0, arg1) {
3258
+ arg0.register_diesel_sql_functions(arg1);
3259
+ }, arguments) };
3260
+ imports.wbg.__wbg_allocCString_42f27a0af479f779 = function(arg0, arg1, arg2) {
3261
+ let deferred0_0;
3262
+ let deferred0_1;
3263
+ try {
3264
+ deferred0_0 = arg1;
3265
+ deferred0_1 = arg2;
3266
+ const ret = arg0.allocCString(getStringFromWasm0(arg1, arg2));
2965
3267
  return ret;
2966
- };
2967
- imports.wbg.__wbg_bindint64_4cb9d1672a18e57b = function(arg0, arg1, arg2, arg3) {
2968
- const ret = arg0.bind_int64(arg1, arg2, arg3);
3268
+ } finally {
3269
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
3270
+ }
3271
+ };
3272
+ imports.wbg.__wbg_SQLITEFLOAT_e0da134da12d25d0 = function(arg0) {
3273
+ const ret = arg0.SQLITE_FLOAT;
3274
+ return ret;
3275
+ };
3276
+ imports.wbg.__wbg_SQLITEROW_a21779e78155c8ad = function(arg0) {
3277
+ const ret = arg0.SQLITE_ROW;
3278
+ return ret;
3279
+ };
3280
+ imports.wbg.__wbg_SQLITEINTEGER_9031dce8e01c166c = function(arg0) {
3281
+ const ret = arg0.SQLITE_INTEGER;
3282
+ return ret;
3283
+ };
3284
+ imports.wbg.__wbg_SQLITECONSTRAINTFOREIGNKEY_741a343b3482effc = function(arg0) {
3285
+ const ret = arg0.SQLITE_CONSTRAINT_FOREIGNKEY;
3286
+ return ret;
3287
+ };
3288
+ imports.wbg.__wbg_SQLITEDONE_fbfe18ce23a3b6da = function(arg0) {
3289
+ const ret = arg0.SQLITE_DONE;
3290
+ return ret;
3291
+ };
3292
+ imports.wbg.__wbg_SQLITESTATIC_b98299c993e94d35 = function(arg0) {
3293
+ const ret = arg0.SQLITE_STATIC;
3294
+ return ret;
3295
+ };
3296
+ imports.wbg.__wbg_SQLITEBLOB_394b61ff6fc173a6 = function(arg0) {
3297
+ const ret = arg0.SQLITE_BLOB;
3298
+ return ret;
3299
+ };
3300
+ imports.wbg.__wbg_SQLITEOK_2d09a4e691645e98 = function(arg0) {
3301
+ const ret = arg0.SQLITE_OK;
3302
+ return ret;
3303
+ };
3304
+ imports.wbg.__wbg_SQLITEPREPAREPERSISTENT_d81d553ffa5c038c = function(arg0) {
3305
+ const ret = arg0.SQLITE_PREPARE_PERSISTENT;
3306
+ return ret;
3307
+ };
3308
+ imports.wbg.__wbg_SQLITECONSTRAINTNOTNULL_0f87885933517ad3 = function(arg0) {
3309
+ const ret = arg0.SQLITE_CONSTRAINT_NOTNULL;
3310
+ return ret;
3311
+ };
3312
+ imports.wbg.__wbg_SQLITECONSTRAINTPRIMARYKEY_3e2ad26d848575a2 = function(arg0) {
3313
+ const ret = arg0.SQLITE_CONSTRAINT_PRIMARYKEY;
3314
+ return ret;
3315
+ };
3316
+ imports.wbg.__wbg_SQLITENULL_00f5eb33b5b89690 = function(arg0) {
3317
+ const ret = arg0.SQLITE_NULL;
3318
+ return ret;
3319
+ };
3320
+ imports.wbg.__wbg_SQLITECONSTRAINTCHECK_7b54e6702b2e57ba = function(arg0) {
3321
+ const ret = arg0.SQLITE_CONSTRAINT_CHECK;
3322
+ return ret;
3323
+ };
3324
+ imports.wbg.__wbg_SQLITETEXT_727e78d48f532f23 = function(arg0) {
3325
+ const ret = arg0.SQLITE_TEXT;
3326
+ return ret;
3327
+ };
3328
+ imports.wbg.__wbg_SQLITECONSTRAINTUNIQUE_1dea04a977c1e377 = function(arg0) {
3329
+ const ret = arg0.SQLITE_CONSTRAINT_UNIQUE;
3330
+ return ret;
3331
+ };
3332
+ imports.wbg.__wbg_SQLITEOPENREADWRITE_a83b4615e4d0f3ab = function(arg0) {
3333
+ const ret = arg0.SQLITE_OPEN_READWRITE;
3334
+ return ret;
3335
+ };
3336
+ imports.wbg.__wbg_SQLITEOPENCREATE_9de5b9e000c4b114 = function(arg0) {
3337
+ const ret = arg0.SQLITE_OPEN_CREATE;
3338
+ return ret;
3339
+ };
3340
+ imports.wbg.__wbg_SQLITEOPENURI_553652ff6391f5f3 = function(arg0) {
3341
+ const ret = arg0.SQLITE_OPEN_URI;
3342
+ return ret;
3343
+ };
3344
+ imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
3345
+ const ret = arg0 == arg1;
3346
+ return ret;
3347
+ };
3348
+ imports.wbg.__wbindgen_boolean_get = function(arg0) {
3349
+ const v = arg0;
3350
+ const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
3351
+ return ret;
3352
+ };
3353
+ imports.wbg.__wbg_String_b9412f8799faab3e = function(arg0, arg1) {
3354
+ const ret = String(arg1);
3355
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3356
+ const len1 = WASM_VECTOR_LEN;
3357
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3358
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3359
+ };
3360
+ imports.wbg.__wbg_getwithrefkey_edc2c8960f0f1191 = function(arg0, arg1) {
3361
+ const ret = arg0[arg1];
3362
+ return ret;
3363
+ };
3364
+ imports.wbg.__wbg_set_f975102236d3c502 = function(arg0, arg1, arg2) {
3365
+ arg0[arg1] = arg2;
3366
+ };
3367
+ imports.wbg.__wbg_log_491a5231a6310c13 = function(arg0, arg1) {
3368
+ console.log(getStringFromWasm0(arg0, arg1));
3369
+ };
3370
+ imports.wbg.__wbg_self_fa85e99720202dd4 = function(arg0) {
3371
+ const ret = arg0.self;
3372
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
3373
+ };
3374
+ imports.wbg.__wbg_constructor_41b3ab5898fdf330 = function(arg0) {
3375
+ const ret = arg0.constructor;
3376
+ return ret;
3377
+ };
3378
+ imports.wbg.__wbg_name_963614637094aad8 = function(arg0, arg1) {
3379
+ const ret = arg1.name;
3380
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3381
+ const len1 = WASM_VECTOR_LEN;
3382
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3383
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3384
+ };
3385
+ imports.wbg.__wbg_Deno_a6da1a839b626101 = function(arg0) {
3386
+ const ret = arg0.Deno;
3387
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
3388
+ };
3389
+ imports.wbg.__wbg_stack_9dc96582e4822571 = function(arg0, arg1) {
3390
+ const ret = arg1.stack;
3391
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3392
+ const len1 = WASM_VECTOR_LEN;
3393
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3394
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3395
+ };
3396
+ imports.wbg.__wbg_String_c3b43c66a02c6ca8 = function(arg0, arg1) {
3397
+ const ret = String(arg1);
3398
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3399
+ const len1 = WASM_VECTOR_LEN;
3400
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3401
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3402
+ };
3403
+ imports.wbg.__wbg_settextcontent_ea3dfc9f7afe7f06 = function(arg0, arg1, arg2) {
3404
+ arg0.textContent = getStringFromWasm0(arg1, arg2);
3405
+ };
3406
+ imports.wbg.__wbg_static_accessor_DOCUMENT_a5bca7f6e8b241cf = function() {
3407
+ const ret = document;
3408
+ return ret;
3409
+ };
3410
+ imports.wbg.__wbg_getElementById_605f2ff21c779a7e = function(arg0, arg1, arg2) {
3411
+ const ret = arg0.getElementById(getStringFromWasm0(arg1, arg2));
3412
+ return ret;
3413
+ };
3414
+ imports.wbg.__wbg_textcontent_6e4b01ce1801d4e6 = function(arg0, arg1) {
3415
+ const ret = arg1.textContent;
3416
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3417
+ const len1 = WASM_VECTOR_LEN;
3418
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3419
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3420
+ };
3421
+ imports.wbg.__wbg_stack_e7498cc287ef84ec = function(arg0) {
3422
+ const ret = arg0.stack;
3423
+ return ret;
3424
+ };
3425
+ imports.wbg.__wbg_wbgtestoutputwriteln_1db413808589922e = typeof __wbg_test_output_writeln == 'function' ? __wbg_test_output_writeln : notDefined('__wbg_test_output_writeln');
3426
+ imports.wbg.__wbg_stack_660f03fff6667bdc = function(arg0) {
3427
+ const ret = arg0.stack;
3428
+ return ret;
3429
+ };
3430
+ imports.wbg.__wbg_new_abda76e883ba8a5f = function() {
3431
+ const ret = new Error();
3432
+ return ret;
3433
+ };
3434
+ imports.wbg.__wbg_stack_658279fe44541cf6 = function(arg0, arg1) {
3435
+ const ret = arg1.stack;
3436
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3437
+ const len1 = WASM_VECTOR_LEN;
3438
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3439
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3440
+ };
3441
+ imports.wbg.__wbg_error_f851667af71bcfc6 = function(arg0, arg1) {
3442
+ let deferred0_0;
3443
+ let deferred0_1;
3444
+ try {
3445
+ deferred0_0 = arg0;
3446
+ deferred0_1 = arg1;
3447
+ console.error(getStringFromWasm0(arg0, arg1));
3448
+ } finally {
3449
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
3450
+ }
3451
+ };
3452
+ imports.wbg.__wbg_queueMicrotask_848aa4969108a57e = function(arg0) {
3453
+ const ret = arg0.queueMicrotask;
3454
+ return ret;
3455
+ };
3456
+ imports.wbg.__wbindgen_is_function = function(arg0) {
3457
+ const ret = typeof(arg0) === 'function';
3458
+ return ret;
3459
+ };
3460
+ imports.wbg.__wbg_queueMicrotask_c5419c06eab41e73 = typeof queueMicrotask == 'function' ? queueMicrotask : notDefined('queueMicrotask');
3461
+ imports.wbg.__wbg_log_f740dc2253ea759b = typeof console.log == 'function' ? console.log : notDefined('console.log');
3462
+ imports.wbg.__wbg_fetch_1fdc4448ed9eec00 = function(arg0, arg1) {
3463
+ const ret = arg0.fetch(arg1);
3464
+ return ret;
3465
+ };
3466
+ imports.wbg.__wbg_close_cfd08d9cf9f36856 = function() { return handleError(function (arg0) {
3467
+ arg0.close();
3468
+ }, arguments) };
3469
+ imports.wbg.__wbg_enqueue_e693a6fb4f3261c1 = function() { return handleError(function (arg0, arg1) {
3470
+ arg0.enqueue(arg1);
3471
+ }, arguments) };
3472
+ imports.wbg.__wbg_instanceof_Response_3c0e210a57ff751d = function(arg0) {
3473
+ let result;
3474
+ try {
3475
+ result = arg0 instanceof Response;
3476
+ } catch (_) {
3477
+ result = false;
3478
+ }
3479
+ const ret = result;
3480
+ return ret;
3481
+ };
3482
+ imports.wbg.__wbg_url_58af972663531d16 = function(arg0, arg1) {
3483
+ const ret = arg1.url;
3484
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3485
+ const len1 = WASM_VECTOR_LEN;
3486
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3487
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3488
+ };
3489
+ imports.wbg.__wbg_status_5f4e900d22140a18 = function(arg0) {
3490
+ const ret = arg0.status;
3491
+ return ret;
3492
+ };
3493
+ imports.wbg.__wbg_headers_1b9bf90c73fae600 = function(arg0) {
3494
+ const ret = arg0.headers;
3495
+ return ret;
3496
+ };
3497
+ imports.wbg.__wbg_arrayBuffer_144729e09879650e = function() { return handleError(function (arg0) {
3498
+ const ret = arg0.arrayBuffer();
3499
+ return ret;
3500
+ }, arguments) };
3501
+ imports.wbg.__wbg_byobRequest_86ac467c94924d3c = function(arg0) {
3502
+ const ret = arg0.byobRequest;
3503
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
3504
+ };
3505
+ imports.wbg.__wbg_close_7cda9dd901230214 = function() { return handleError(function (arg0) {
3506
+ arg0.close();
3507
+ }, arguments) };
3508
+ imports.wbg.__wbg_signal_9acfcec9e7dffc22 = function(arg0) {
3509
+ const ret = arg0.signal;
3510
+ return ret;
3511
+ };
3512
+ imports.wbg.__wbg_new_75169ae5a9683c55 = function() { return handleError(function () {
3513
+ const ret = new AbortController();
3514
+ return ret;
3515
+ }, arguments) };
3516
+ imports.wbg.__wbg_abort_c57daab47a6c1215 = function(arg0) {
3517
+ arg0.abort();
3518
+ };
3519
+ imports.wbg.__wbg_view_de0e81c5c00d2129 = function(arg0) {
3520
+ const ret = arg0.view;
3521
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
3522
+ };
3523
+ imports.wbg.__wbg_respond_ffb6928cd9b79c32 = function() { return handleError(function (arg0, arg1) {
3524
+ arg0.respond(arg1 >>> 0);
3525
+ }, arguments) };
3526
+ imports.wbg.__wbg_newwithstrandinit_4b92c89af0a8e383 = function() { return handleError(function (arg0, arg1, arg2) {
3527
+ const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
3528
+ return ret;
3529
+ }, arguments) };
3530
+ imports.wbg.__wbg_setbody_aa8b691bec428bf4 = function(arg0, arg1) {
3531
+ arg0.body = arg1;
3532
+ };
3533
+ imports.wbg.__wbg_setcredentials_a4e661320cdb9738 = function(arg0, arg1) {
3534
+ arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
3535
+ };
3536
+ imports.wbg.__wbg_setheaders_f5205d36e423a544 = function(arg0, arg1) {
3537
+ arg0.headers = arg1;
3538
+ };
3539
+ imports.wbg.__wbg_setmethod_ce2da76000b02f6a = function(arg0, arg1, arg2) {
3540
+ arg0.method = getStringFromWasm0(arg1, arg2);
3541
+ };
3542
+ imports.wbg.__wbg_setmode_4919fd636102c586 = function(arg0, arg1) {
3543
+ arg0.mode = __wbindgen_enum_RequestMode[arg1];
3544
+ };
3545
+ imports.wbg.__wbg_setsignal_812ccb8269a7fd90 = function(arg0, arg1) {
3546
+ arg0.signal = arg1;
3547
+ };
3548
+ imports.wbg.__wbg_new_a9ae04a5200606a5 = function() { return handleError(function () {
3549
+ const ret = new Headers();
3550
+ return ret;
3551
+ }, arguments) };
3552
+ imports.wbg.__wbg_append_8b3e7f74a47ea7d5 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
3553
+ arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
3554
+ }, arguments) };
3555
+ imports.wbg.__wbg_crypto_1d1f22824a6a080c = function(arg0) {
3556
+ const ret = arg0.crypto;
3557
+ return ret;
3558
+ };
3559
+ imports.wbg.__wbg_process_4a72847cc503995b = function(arg0) {
3560
+ const ret = arg0.process;
3561
+ return ret;
3562
+ };
3563
+ imports.wbg.__wbg_versions_f686565e586dd935 = function(arg0) {
3564
+ const ret = arg0.versions;
3565
+ return ret;
3566
+ };
3567
+ imports.wbg.__wbg_node_104a2ff8d6ea03a2 = function(arg0) {
3568
+ const ret = arg0.node;
3569
+ return ret;
3570
+ };
3571
+ imports.wbg.__wbindgen_is_string = function(arg0) {
3572
+ const ret = typeof(arg0) === 'string';
3573
+ return ret;
3574
+ };
3575
+ imports.wbg.__wbg_require_cca90b1a94a0255b = function() { return handleError(function () {
3576
+ const ret = module.require;
3577
+ return ret;
3578
+ }, arguments) };
3579
+ imports.wbg.__wbg_msCrypto_eb05e62b530a1508 = function(arg0) {
3580
+ const ret = arg0.msCrypto;
3581
+ return ret;
3582
+ };
3583
+ imports.wbg.__wbg_getRandomValues_3aa56aa6edec874c = function() { return handleError(function (arg0, arg1) {
3584
+ arg0.getRandomValues(arg1);
3585
+ }, arguments) };
3586
+ imports.wbg.__wbg_randomFillSync_5c9c955aa56b6049 = function() { return handleError(function (arg0, arg1) {
3587
+ arg0.randomFillSync(arg1);
3588
+ }, arguments) };
3589
+ imports.wbg.__wbg_get_5419cf6b954aa11d = function(arg0, arg1) {
3590
+ const ret = arg0[arg1 >>> 0];
3591
+ return ret;
3592
+ };
3593
+ imports.wbg.__wbg_length_f217bbbf7e8e4df4 = function(arg0) {
3594
+ const ret = arg0.length;
3595
+ return ret;
3596
+ };
3597
+ imports.wbg.__wbg_new_034f913e7636e987 = function() {
3598
+ const ret = new Array();
3599
+ return ret;
3600
+ };
3601
+ imports.wbg.__wbg_newnoargs_1ede4bf2ebbaaf43 = function(arg0, arg1) {
3602
+ const ret = new Function(getStringFromWasm0(arg0, arg1));
3603
+ return ret;
3604
+ };
3605
+ imports.wbg.__wbg_new_7a87a0376e40533b = function() {
3606
+ const ret = new Map();
3607
+ return ret;
3608
+ };
3609
+ imports.wbg.__wbg_next_13b477da1eaa3897 = function(arg0) {
3610
+ const ret = arg0.next;
3611
+ return ret;
3612
+ };
3613
+ imports.wbg.__wbg_next_b06e115d1b01e10b = function() { return handleError(function (arg0) {
3614
+ const ret = arg0.next();
3615
+ return ret;
3616
+ }, arguments) };
3617
+ imports.wbg.__wbg_done_983b5ffcaec8c583 = function(arg0) {
3618
+ const ret = arg0.done;
3619
+ return ret;
3620
+ };
3621
+ imports.wbg.__wbg_value_2ab8a198c834c26a = function(arg0) {
3622
+ const ret = arg0.value;
3623
+ return ret;
3624
+ };
3625
+ imports.wbg.__wbg_iterator_695d699a44d6234c = function() {
3626
+ const ret = Symbol.iterator;
3627
+ return ret;
3628
+ };
3629
+ imports.wbg.__wbg_get_ef828680c64da212 = function() { return handleError(function (arg0, arg1) {
3630
+ const ret = Reflect.get(arg0, arg1);
3631
+ return ret;
3632
+ }, arguments) };
3633
+ imports.wbg.__wbg_call_a9ef466721e824f2 = function() { return handleError(function (arg0, arg1) {
3634
+ const ret = arg0.call(arg1);
3635
+ return ret;
3636
+ }, arguments) };
3637
+ imports.wbg.__wbg_new_e69b5f66fda8f13c = function() {
3638
+ const ret = new Object();
3639
+ return ret;
3640
+ };
3641
+ imports.wbg.__wbg_self_bf91bf94d9e04084 = function() { return handleError(function () {
3642
+ const ret = self.self;
3643
+ return ret;
3644
+ }, arguments) };
3645
+ imports.wbg.__wbg_window_52dd9f07d03fd5f8 = function() { return handleError(function () {
3646
+ const ret = window.window;
3647
+ return ret;
3648
+ }, arguments) };
3649
+ imports.wbg.__wbg_globalThis_05c129bf37fcf1be = function() { return handleError(function () {
3650
+ const ret = globalThis.globalThis;
3651
+ return ret;
3652
+ }, arguments) };
3653
+ imports.wbg.__wbg_global_3eca19bb09e9c484 = function() { return handleError(function () {
3654
+ const ret = global.global;
3655
+ return ret;
3656
+ }, arguments) };
3657
+ imports.wbg.__wbg_set_425e70f7c64ac962 = function(arg0, arg1, arg2) {
3658
+ arg0[arg1 >>> 0] = arg2;
3659
+ };
3660
+ imports.wbg.__wbg_forEach_678f416cbff9306a = function(arg0, arg1, arg2) {
3661
+ try {
3662
+ var state0 = {a: arg1, b: arg2};
3663
+ var cb0 = (arg0, arg1, arg2) => {
3664
+ const a = state0.a;
3665
+ state0.a = 0;
3666
+ try {
3667
+ return __wbg_adapter_537(a, state0.b, arg0, arg1, arg2);
3668
+ } finally {
3669
+ state0.a = a;
3670
+ }
3671
+ };
3672
+ arg0.forEach(cb0);
3673
+ } finally {
3674
+ state0.a = state0.b = 0;
3675
+ }
3676
+ };
3677
+ imports.wbg.__wbg_push_36cf4d81d7da33d1 = function(arg0, arg1) {
3678
+ const ret = arg0.push(arg1);
3679
+ return ret;
3680
+ };
3681
+ imports.wbg.__wbg_instanceof_ArrayBuffer_74945570b4a62ec7 = function(arg0) {
3682
+ let result;
3683
+ try {
3684
+ result = arg0 instanceof ArrayBuffer;
3685
+ } catch (_) {
3686
+ result = false;
3687
+ }
3688
+ const ret = result;
3689
+ return ret;
3690
+ };
3691
+ imports.wbg.__wbg_new_70a2f23d1565c04c = function(arg0, arg1) {
3692
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
3693
+ return ret;
3694
+ };
3695
+ imports.wbg.__wbg_message_00eebca8fa4dd7db = function(arg0) {
3696
+ const ret = arg0.message;
3697
+ return ret;
3698
+ };
3699
+ imports.wbg.__wbg_name_aa32a0ae51232604 = function(arg0) {
3700
+ const ret = arg0.name;
3701
+ return ret;
3702
+ };
3703
+ imports.wbg.__wbg_call_3bfa248576352471 = function() { return handleError(function (arg0, arg1, arg2) {
3704
+ const ret = arg0.call(arg1, arg2);
3705
+ return ret;
3706
+ }, arguments) };
3707
+ imports.wbg.__wbg_set_277a63e77c89279f = function(arg0, arg1, arg2) {
3708
+ const ret = arg0.set(arg1, arg2);
3709
+ return ret;
3710
+ };
3711
+ imports.wbg.__wbg_isSafeInteger_b9dff570f01a9100 = function(arg0) {
3712
+ const ret = Number.isSafeInteger(arg0);
3713
+ return ret;
3714
+ };
3715
+ imports.wbg.__wbg_now_70af4fe37a792251 = function() {
3716
+ const ret = Date.now();
3717
+ return ret;
3718
+ };
3719
+ imports.wbg.__wbg_entries_c02034de337d3ee2 = function(arg0) {
3720
+ const ret = Object.entries(arg0);
3721
+ return ret;
3722
+ };
3723
+ imports.wbg.__wbg_new_1073970097e5a420 = function(arg0, arg1) {
3724
+ try {
3725
+ var state0 = {a: arg0, b: arg1};
3726
+ var cb0 = (arg0, arg1) => {
3727
+ const a = state0.a;
3728
+ state0.a = 0;
3729
+ try {
3730
+ return __wbg_adapter_580(a, state0.b, arg0, arg1);
3731
+ } finally {
3732
+ state0.a = a;
3733
+ }
3734
+ };
3735
+ const ret = new Promise(cb0);
2969
3736
  return ret;
2970
- };
2971
- imports.wbg.__wbg_binddouble_1506f6b8c0c42d14 = function(arg0, arg1, arg2, arg3) {
2972
- const ret = arg0.bind_double(arg1, arg2, arg3);
2973
- return ret;
2974
- };
2975
- imports.wbg.__wbg_bindblob_f2a0872798d6b562 = function(arg0, arg1, arg2, arg3, arg4, arg5) {
2976
- const ret = arg0.bind_blob(arg1, arg2, arg3 >>> 0, arg4, arg5);
2977
- return ret;
2978
- };
2979
- imports.wbg.__wbg_dbhandle_9fa910514462f201 = function(arg0, arg1) {
2980
- const ret = arg0.db_handle(arg1);
2981
- return ret;
2982
- };
2983
- imports.wbg.__wbg_dealloc_351653c7fd6f869c = function(arg0, arg1) {
2984
- arg0.dealloc(arg1 >>> 0);
2985
- };
2986
- imports.wbg.__wbg_finalize_7ee740fba804fefe = function() { return handleError(function (arg0, arg1) {
2987
- arg0.finalize(arg1);
2988
- }, arguments) };
2989
- imports.wbg.__wbg_reset_64daad59c50383d3 = function(arg0, arg1) {
2990
- const ret = arg0.reset(arg1);
2991
- return ret;
2992
- };
2993
- imports.wbg.__wbg_step_09504a247e0ba954 = function(arg0, arg1) {
2994
- const ret = arg0.step(arg1);
2995
- return ret;
2996
- };
2997
- imports.wbg.__wbg_columncount_da141db0617412dd = function(arg0, arg1) {
2998
- const ret = arg0.column_count(arg1);
2999
- return ret;
3000
- };
3001
- imports.wbg.__wbg_columnvalue_83d37aeaa7f4bef6 = function(arg0, arg1, arg2) {
3002
- const ret = arg0.column_value(arg1, arg2);
3003
- return ret;
3004
- };
3005
- imports.wbg.__wbindgen_link_42e73067c99cbdba = function(arg0) {
3006
- const ret = new URL('snippets/diesel-wasm-sqlite-36e85657e47f3be3/src/js/sqlite3-opfs-async-proxy.js', import.meta.url).toString();
3007
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3008
- const len1 = WASM_VECTOR_LEN;
3009
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3010
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3011
- };
3012
- imports.wbg.__wbg_heap8u_e5e9645d146c39a3 = function(arg0) {
3013
- const ret = arg0.heap8u();
3014
- return ret;
3015
- };
3016
- imports.wbg.__wbg_capi_74a1a04b4eb066db = function(arg0) {
3017
- const ret = arg0.capi;
3018
- return ret;
3019
- };
3020
- imports.wbg.__wbg_new_d2b35c9d7f4b1471 = function(arg0) {
3021
- const ret = new SQLite(arg0);
3022
- return ret;
3023
- };
3024
- imports.wbg.__wbg_version_7fb95c5a88d542ce = function(arg0) {
3025
- const ret = arg0.version();
3026
- return ret;
3027
- };
3028
- imports.wbg.__wbg_filename_9eb2d8c937e22432 = function(arg0, arg1, arg2, arg3, arg4) {
3029
- let deferred0_0;
3030
- let deferred0_1;
3031
- try {
3032
- deferred0_0 = arg3;
3033
- deferred0_1 = arg4;
3034
- const ret = arg1.filename(arg2, getStringFromWasm0(arg3, arg4));
3035
- const ptr2 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3036
- const len2 = WASM_VECTOR_LEN;
3037
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len2, true);
3038
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr2, true);
3039
- } finally {
3040
- wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
3041
- }
3042
- };
3043
- imports.wbg.__wbg_errstr_5114edcda623dd5a = function(arg0, arg1, arg2) {
3044
- const ret = arg1.errstr(arg2);
3045
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3046
- const len1 = WASM_VECTOR_LEN;
3047
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3048
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3049
- };
3050
- imports.wbg.__wbg_errmsg_43ea55533a3ea740 = function(arg0, arg1, arg2) {
3051
- const ret = arg1.errmsg(arg2);
3052
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3053
- const len1 = WASM_VECTOR_LEN;
3054
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3055
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3056
- };
3057
- imports.wbg.__wbg_extendederrcode_2e0c706dd10fe107 = function(arg0, arg1) {
3058
- const ret = arg0.extended_errcode(arg1);
3059
- return ret;
3060
- };
3061
- imports.wbg.__wbg_valuedup_186941ef4d6d7d09 = function(arg0, arg1) {
3062
- const ret = arg0.value_dup(arg1 >>> 0);
3063
- return ret;
3064
- };
3065
- imports.wbg.__wbg_valueblob_80b0d28b673e9efc = function(arg0, arg1) {
3066
- const ret = arg0.value_blob(arg1 >>> 0);
3067
- return ret;
3068
- };
3069
- imports.wbg.__wbg_valuebytes_ae42a50aaa4db15e = function(arg0, arg1) {
3070
- const ret = arg0.value_bytes(arg1 >>> 0);
3071
- return ret;
3072
- };
3073
- imports.wbg.__wbg_valuefree_47295db839c6fbb4 = function(arg0, arg1) {
3074
- arg0.value_free(arg1 >>> 0);
3075
- };
3076
- imports.wbg.__wbg_valueint_b4d6710e3940d2d0 = function(arg0, arg1) {
3077
- const ret = arg0.value_int(arg1 >>> 0);
3078
- return ret;
3079
- };
3080
- imports.wbg.__wbg_valueint64_89f223f9f63833ee = function(arg0, arg1) {
3081
- const ret = arg0.value_int64(arg1 >>> 0);
3082
- return ret;
3083
- };
3084
- imports.wbg.__wbg_valuetext_503dfdd35d1a5d23 = function(arg0, arg1, arg2) {
3085
- const ret = arg1.value_text(arg2 >>> 0);
3086
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3087
- const len1 = WASM_VECTOR_LEN;
3088
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3089
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3090
- };
3091
- imports.wbg.__wbg_valuetype_10265d962173575d = function(arg0, arg1) {
3092
- const ret = arg0.value_type(arg1 >>> 0);
3093
- return ret;
3094
- };
3095
- imports.wbg.__wbg_open_630840f0e3bfa104 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
3096
- const ret = arg0.open(getStringFromWasm0(arg1, arg2), arg3 === 0 ? undefined : arg4);
3097
- return ret;
3098
- }, arguments) };
3099
- imports.wbg.__wbg_exec_891e7bcb242b8263 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
3100
- arg0.exec(arg1, getStringFromWasm0(arg2, arg3));
3101
- }, arguments) };
3102
- imports.wbg.__wbg_changes_449e8e7adde4811b = function(arg0, arg1) {
3103
- const ret = arg0.changes(arg1);
3104
- return ret;
3105
- };
3106
- imports.wbg.__wbg_close_f1e03beafae72a1f = function(arg0, arg1) {
3107
- const ret = arg0.close(arg1);
3108
- return ret;
3109
- };
3110
- imports.wbg.__wbg_columnname_ff3aa78d6aa3c952 = function(arg0, arg1, arg2, arg3) {
3111
- const ret = arg1.column_name(arg2, arg3);
3112
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3113
- const len1 = WASM_VECTOR_LEN;
3114
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3115
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3116
- };
3117
- imports.wbg.__wbg_registerdieselsqlfunctions_376c3851387d1a3a = function() { return handleError(function (arg0, arg1) {
3118
- arg0.register_diesel_sql_functions(arg1);
3119
- }, arguments) };
3120
- imports.wbg.__wbg_allocCString_42f27a0af479f779 = function(arg0, arg1, arg2) {
3121
- let deferred0_0;
3122
- let deferred0_1;
3123
- try {
3124
- deferred0_0 = arg1;
3125
- deferred0_1 = arg2;
3126
- const ret = arg0.allocCString(getStringFromWasm0(arg1, arg2));
3127
- return ret;
3128
- } finally {
3129
- wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
3130
- }
3131
- };
3132
- imports.wbg.__wbg_SQLITENULL_00f5eb33b5b89690 = function(arg0) {
3133
- const ret = arg0.SQLITE_NULL;
3134
- return ret;
3135
- };
3136
- imports.wbg.__wbg_SQLITECONSTRAINTUNIQUE_1dea04a977c1e377 = function(arg0) {
3137
- const ret = arg0.SQLITE_CONSTRAINT_UNIQUE;
3138
- return ret;
3139
- };
3140
- imports.wbg.__wbg_SQLITEROW_a21779e78155c8ad = function(arg0) {
3141
- const ret = arg0.SQLITE_ROW;
3142
- return ret;
3143
- };
3144
- imports.wbg.__wbg_SQLITEOK_2d09a4e691645e98 = function(arg0) {
3145
- const ret = arg0.SQLITE_OK;
3146
- return ret;
3147
- };
3148
- imports.wbg.__wbg_SQLITEFLOAT_e0da134da12d25d0 = function(arg0) {
3149
- const ret = arg0.SQLITE_FLOAT;
3150
- return ret;
3151
- };
3152
- imports.wbg.__wbg_SQLITEINTEGER_9031dce8e01c166c = function(arg0) {
3153
- const ret = arg0.SQLITE_INTEGER;
3154
- return ret;
3155
- };
3156
- imports.wbg.__wbg_SQLITEDONE_fbfe18ce23a3b6da = function(arg0) {
3157
- const ret = arg0.SQLITE_DONE;
3158
- return ret;
3159
- };
3160
- imports.wbg.__wbg_SQLITEBLOB_394b61ff6fc173a6 = function(arg0) {
3161
- const ret = arg0.SQLITE_BLOB;
3162
- return ret;
3163
- };
3164
- imports.wbg.__wbg_SQLITECONSTRAINTPRIMARYKEY_3e2ad26d848575a2 = function(arg0) {
3165
- const ret = arg0.SQLITE_CONSTRAINT_PRIMARYKEY;
3166
- return ret;
3167
- };
3168
- imports.wbg.__wbg_SQLITESTATIC_b98299c993e94d35 = function(arg0) {
3169
- const ret = arg0.SQLITE_STATIC;
3170
- return ret;
3171
- };
3172
- imports.wbg.__wbg_SQLITECONSTRAINTCHECK_7b54e6702b2e57ba = function(arg0) {
3173
- const ret = arg0.SQLITE_CONSTRAINT_CHECK;
3174
- return ret;
3175
- };
3176
- imports.wbg.__wbg_SQLITECONSTRAINTFOREIGNKEY_741a343b3482effc = function(arg0) {
3177
- const ret = arg0.SQLITE_CONSTRAINT_FOREIGNKEY;
3178
- return ret;
3179
- };
3180
- imports.wbg.__wbg_SQLITECONSTRAINTNOTNULL_0f87885933517ad3 = function(arg0) {
3181
- const ret = arg0.SQLITE_CONSTRAINT_NOTNULL;
3182
- return ret;
3183
- };
3184
- imports.wbg.__wbg_SQLITEPREPAREPERSISTENT_d81d553ffa5c038c = function(arg0) {
3185
- const ret = arg0.SQLITE_PREPARE_PERSISTENT;
3186
- return ret;
3187
- };
3188
- imports.wbg.__wbg_SQLITETEXT_727e78d48f532f23 = function(arg0) {
3189
- const ret = arg0.SQLITE_TEXT;
3190
- return ret;
3191
- };
3192
- imports.wbg.__wbg_SQLITEOPENREADWRITE_a83b4615e4d0f3ab = function(arg0) {
3193
- const ret = arg0.SQLITE_OPEN_READWRITE;
3194
- return ret;
3195
- };
3196
- imports.wbg.__wbg_SQLITEOPENCREATE_9de5b9e000c4b114 = function(arg0) {
3197
- const ret = arg0.SQLITE_OPEN_CREATE;
3198
- return ret;
3199
- };
3200
- imports.wbg.__wbg_SQLITEOPENURI_553652ff6391f5f3 = function(arg0) {
3201
- const ret = arg0.SQLITE_OPEN_URI;
3202
- return ret;
3203
- };
3204
- imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
3205
- const ret = arg0 == arg1;
3206
- return ret;
3207
- };
3208
- imports.wbg.__wbindgen_boolean_get = function(arg0) {
3209
- const v = arg0;
3210
- const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
3211
- return ret;
3212
- };
3213
- imports.wbg.__wbg_String_b9412f8799faab3e = function(arg0, arg1) {
3214
- const ret = String(arg1);
3215
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3216
- const len1 = WASM_VECTOR_LEN;
3217
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3218
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3219
- };
3220
- imports.wbg.__wbg_getwithrefkey_edc2c8960f0f1191 = function(arg0, arg1) {
3221
- const ret = arg0[arg1];
3222
- return ret;
3223
- };
3224
- imports.wbg.__wbg_set_f975102236d3c502 = function(arg0, arg1, arg2) {
3225
- arg0[arg1] = arg2;
3226
- };
3227
- imports.wbg.__wbg_log_491a5231a6310c13 = function(arg0, arg1) {
3228
- console.log(getStringFromWasm0(arg0, arg1));
3229
- };
3230
- imports.wbg.__wbg_self_fa85e99720202dd4 = function(arg0) {
3231
- const ret = arg0.self;
3232
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
3233
- };
3234
- imports.wbg.__wbg_constructor_41b3ab5898fdf330 = function(arg0) {
3235
- const ret = arg0.constructor;
3236
- return ret;
3237
- };
3238
- imports.wbg.__wbg_name_963614637094aad8 = function(arg0, arg1) {
3239
- const ret = arg1.name;
3240
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3241
- const len1 = WASM_VECTOR_LEN;
3242
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3243
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3244
- };
3245
- imports.wbg.__wbg_Deno_a6da1a839b626101 = function(arg0) {
3246
- const ret = arg0.Deno;
3247
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
3248
- };
3249
- imports.wbg.__wbg_stack_9dc96582e4822571 = function(arg0, arg1) {
3250
- const ret = arg1.stack;
3251
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3252
- const len1 = WASM_VECTOR_LEN;
3253
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3254
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3255
- };
3256
- imports.wbg.__wbg_String_c3b43c66a02c6ca8 = function(arg0, arg1) {
3257
- const ret = String(arg1);
3258
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3259
- const len1 = WASM_VECTOR_LEN;
3260
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3261
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3262
- };
3263
- imports.wbg.__wbg_settextcontent_ea3dfc9f7afe7f06 = function(arg0, arg1, arg2) {
3264
- arg0.textContent = getStringFromWasm0(arg1, arg2);
3265
- };
3266
- imports.wbg.__wbg_static_accessor_DOCUMENT_a5bca7f6e8b241cf = function() {
3267
- const ret = document;
3268
- return ret;
3269
- };
3270
- imports.wbg.__wbg_getElementById_605f2ff21c779a7e = function(arg0, arg1, arg2) {
3271
- const ret = arg0.getElementById(getStringFromWasm0(arg1, arg2));
3272
- return ret;
3273
- };
3274
- imports.wbg.__wbg_textcontent_6e4b01ce1801d4e6 = function(arg0, arg1) {
3275
- const ret = arg1.textContent;
3276
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3277
- const len1 = WASM_VECTOR_LEN;
3278
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3279
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3280
- };
3281
- imports.wbg.__wbg_stack_e7498cc287ef84ec = function(arg0) {
3282
- const ret = arg0.stack;
3283
- return ret;
3284
- };
3285
- imports.wbg.__wbg_wbgtestoutputwriteln_1db413808589922e = typeof __wbg_test_output_writeln == 'function' ? __wbg_test_output_writeln : notDefined('__wbg_test_output_writeln');
3286
- imports.wbg.__wbg_stack_660f03fff6667bdc = function(arg0) {
3287
- const ret = arg0.stack;
3288
- return ret;
3289
- };
3290
- imports.wbg.__wbg_new_abda76e883ba8a5f = function() {
3291
- const ret = new Error();
3292
- return ret;
3293
- };
3294
- imports.wbg.__wbg_stack_658279fe44541cf6 = function(arg0, arg1) {
3295
- const ret = arg1.stack;
3296
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3297
- const len1 = WASM_VECTOR_LEN;
3298
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3299
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3300
- };
3301
- imports.wbg.__wbg_error_f851667af71bcfc6 = function(arg0, arg1) {
3302
- let deferred0_0;
3303
- let deferred0_1;
3304
- try {
3305
- deferred0_0 = arg0;
3306
- deferred0_1 = arg1;
3307
- console.error(getStringFromWasm0(arg0, arg1));
3308
- } finally {
3309
- wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
3310
- }
3311
- };
3312
- imports.wbg.__wbg_queueMicrotask_848aa4969108a57e = function(arg0) {
3313
- const ret = arg0.queueMicrotask;
3314
- return ret;
3315
- };
3316
- imports.wbg.__wbindgen_is_function = function(arg0) {
3317
- const ret = typeof(arg0) === 'function';
3318
- return ret;
3319
- };
3320
- imports.wbg.__wbg_queueMicrotask_c5419c06eab41e73 = typeof queueMicrotask == 'function' ? queueMicrotask : notDefined('queueMicrotask');
3321
- imports.wbg.__wbg_log_f740dc2253ea759b = typeof console.log == 'function' ? console.log : notDefined('console.log');
3322
- imports.wbg.__wbg_fetch_1fdc4448ed9eec00 = function(arg0, arg1) {
3323
- const ret = arg0.fetch(arg1);
3324
- return ret;
3325
- };
3326
- imports.wbg.__wbg_close_cfd08d9cf9f36856 = function() { return handleError(function (arg0) {
3327
- arg0.close();
3328
- }, arguments) };
3329
- imports.wbg.__wbg_enqueue_e693a6fb4f3261c1 = function() { return handleError(function (arg0, arg1) {
3330
- arg0.enqueue(arg1);
3331
- }, arguments) };
3332
- imports.wbg.__wbg_instanceof_Response_3c0e210a57ff751d = function(arg0) {
3333
- let result;
3334
- try {
3335
- result = arg0 instanceof Response;
3336
- } catch (_) {
3337
- result = false;
3338
- }
3339
- const ret = result;
3340
- return ret;
3341
- };
3342
- imports.wbg.__wbg_url_58af972663531d16 = function(arg0, arg1) {
3343
- const ret = arg1.url;
3344
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3345
- const len1 = WASM_VECTOR_LEN;
3346
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3347
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3348
- };
3349
- imports.wbg.__wbg_status_5f4e900d22140a18 = function(arg0) {
3350
- const ret = arg0.status;
3351
- return ret;
3352
- };
3353
- imports.wbg.__wbg_headers_1b9bf90c73fae600 = function(arg0) {
3354
- const ret = arg0.headers;
3355
- return ret;
3356
- };
3357
- imports.wbg.__wbg_arrayBuffer_144729e09879650e = function() { return handleError(function (arg0) {
3358
- const ret = arg0.arrayBuffer();
3359
- return ret;
3360
- }, arguments) };
3361
- imports.wbg.__wbg_byobRequest_86ac467c94924d3c = function(arg0) {
3362
- const ret = arg0.byobRequest;
3363
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
3364
- };
3365
- imports.wbg.__wbg_close_7cda9dd901230214 = function() { return handleError(function (arg0) {
3366
- arg0.close();
3367
- }, arguments) };
3368
- imports.wbg.__wbg_signal_9acfcec9e7dffc22 = function(arg0) {
3369
- const ret = arg0.signal;
3370
- return ret;
3371
- };
3372
- imports.wbg.__wbg_new_75169ae5a9683c55 = function() { return handleError(function () {
3373
- const ret = new AbortController();
3374
- return ret;
3375
- }, arguments) };
3376
- imports.wbg.__wbg_abort_c57daab47a6c1215 = function(arg0) {
3377
- arg0.abort();
3378
- };
3379
- imports.wbg.__wbg_view_de0e81c5c00d2129 = function(arg0) {
3380
- const ret = arg0.view;
3381
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
3382
- };
3383
- imports.wbg.__wbg_respond_ffb6928cd9b79c32 = function() { return handleError(function (arg0, arg1) {
3384
- arg0.respond(arg1 >>> 0);
3385
- }, arguments) };
3386
- imports.wbg.__wbg_newwithstrandinit_4b92c89af0a8e383 = function() { return handleError(function (arg0, arg1, arg2) {
3387
- const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
3388
- return ret;
3389
- }, arguments) };
3390
- imports.wbg.__wbg_setbody_aa8b691bec428bf4 = function(arg0, arg1) {
3391
- arg0.body = arg1;
3392
- };
3393
- imports.wbg.__wbg_setcredentials_a4e661320cdb9738 = function(arg0, arg1) {
3394
- arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
3395
- };
3396
- imports.wbg.__wbg_setheaders_f5205d36e423a544 = function(arg0, arg1) {
3397
- arg0.headers = arg1;
3398
- };
3399
- imports.wbg.__wbg_setmethod_ce2da76000b02f6a = function(arg0, arg1, arg2) {
3400
- arg0.method = getStringFromWasm0(arg1, arg2);
3401
- };
3402
- imports.wbg.__wbg_setmode_4919fd636102c586 = function(arg0, arg1) {
3403
- arg0.mode = __wbindgen_enum_RequestMode[arg1];
3404
- };
3405
- imports.wbg.__wbg_setsignal_812ccb8269a7fd90 = function(arg0, arg1) {
3406
- arg0.signal = arg1;
3407
- };
3408
- imports.wbg.__wbg_new_a9ae04a5200606a5 = function() { return handleError(function () {
3409
- const ret = new Headers();
3410
- return ret;
3411
- }, arguments) };
3412
- imports.wbg.__wbg_append_8b3e7f74a47ea7d5 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
3413
- arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
3414
- }, arguments) };
3415
- imports.wbg.__wbg_crypto_1d1f22824a6a080c = function(arg0) {
3416
- const ret = arg0.crypto;
3417
- return ret;
3418
- };
3419
- imports.wbg.__wbg_process_4a72847cc503995b = function(arg0) {
3420
- const ret = arg0.process;
3421
- return ret;
3422
- };
3423
- imports.wbg.__wbg_versions_f686565e586dd935 = function(arg0) {
3424
- const ret = arg0.versions;
3425
- return ret;
3426
- };
3427
- imports.wbg.__wbg_node_104a2ff8d6ea03a2 = function(arg0) {
3428
- const ret = arg0.node;
3429
- return ret;
3430
- };
3431
- imports.wbg.__wbindgen_is_string = function(arg0) {
3432
- const ret = typeof(arg0) === 'string';
3433
- return ret;
3434
- };
3435
- imports.wbg.__wbg_require_cca90b1a94a0255b = function() { return handleError(function () {
3436
- const ret = module.require;
3437
- return ret;
3438
- }, arguments) };
3439
- imports.wbg.__wbg_msCrypto_eb05e62b530a1508 = function(arg0) {
3440
- const ret = arg0.msCrypto;
3441
- return ret;
3442
- };
3443
- imports.wbg.__wbg_getRandomValues_3aa56aa6edec874c = function() { return handleError(function (arg0, arg1) {
3444
- arg0.getRandomValues(arg1);
3445
- }, arguments) };
3446
- imports.wbg.__wbg_randomFillSync_5c9c955aa56b6049 = function() { return handleError(function (arg0, arg1) {
3447
- arg0.randomFillSync(arg1);
3448
- }, arguments) };
3449
- imports.wbg.__wbg_get_5419cf6b954aa11d = function(arg0, arg1) {
3450
- const ret = arg0[arg1 >>> 0];
3451
- return ret;
3452
- };
3453
- imports.wbg.__wbg_length_f217bbbf7e8e4df4 = function(arg0) {
3454
- const ret = arg0.length;
3455
- return ret;
3456
- };
3457
- imports.wbg.__wbg_new_034f913e7636e987 = function() {
3458
- const ret = new Array();
3459
- return ret;
3460
- };
3461
- imports.wbg.__wbg_newnoargs_1ede4bf2ebbaaf43 = function(arg0, arg1) {
3462
- const ret = new Function(getStringFromWasm0(arg0, arg1));
3463
- return ret;
3464
- };
3465
- imports.wbg.__wbg_new_7a87a0376e40533b = function() {
3466
- const ret = new Map();
3467
- return ret;
3468
- };
3469
- imports.wbg.__wbg_next_13b477da1eaa3897 = function(arg0) {
3470
- const ret = arg0.next;
3471
- return ret;
3472
- };
3473
- imports.wbg.__wbg_next_b06e115d1b01e10b = function() { return handleError(function (arg0) {
3474
- const ret = arg0.next();
3475
- return ret;
3476
- }, arguments) };
3477
- imports.wbg.__wbg_done_983b5ffcaec8c583 = function(arg0) {
3478
- const ret = arg0.done;
3479
- return ret;
3480
- };
3481
- imports.wbg.__wbg_value_2ab8a198c834c26a = function(arg0) {
3482
- const ret = arg0.value;
3483
- return ret;
3484
- };
3485
- imports.wbg.__wbg_iterator_695d699a44d6234c = function() {
3486
- const ret = Symbol.iterator;
3487
- return ret;
3488
- };
3489
- imports.wbg.__wbg_get_ef828680c64da212 = function() { return handleError(function (arg0, arg1) {
3490
- const ret = Reflect.get(arg0, arg1);
3491
- return ret;
3492
- }, arguments) };
3493
- imports.wbg.__wbg_call_a9ef466721e824f2 = function() { return handleError(function (arg0, arg1) {
3494
- const ret = arg0.call(arg1);
3495
- return ret;
3496
- }, arguments) };
3497
- imports.wbg.__wbg_new_e69b5f66fda8f13c = function() {
3498
- const ret = new Object();
3499
- return ret;
3500
- };
3501
- imports.wbg.__wbg_self_bf91bf94d9e04084 = function() { return handleError(function () {
3502
- const ret = self.self;
3503
- return ret;
3504
- }, arguments) };
3505
- imports.wbg.__wbg_window_52dd9f07d03fd5f8 = function() { return handleError(function () {
3506
- const ret = window.window;
3507
- return ret;
3508
- }, arguments) };
3509
- imports.wbg.__wbg_globalThis_05c129bf37fcf1be = function() { return handleError(function () {
3510
- const ret = globalThis.globalThis;
3511
- return ret;
3512
- }, arguments) };
3513
- imports.wbg.__wbg_global_3eca19bb09e9c484 = function() { return handleError(function () {
3514
- const ret = global.global;
3515
- return ret;
3516
- }, arguments) };
3517
- imports.wbg.__wbg_set_425e70f7c64ac962 = function(arg0, arg1, arg2) {
3518
- arg0[arg1 >>> 0] = arg2;
3519
- };
3520
- imports.wbg.__wbg_forEach_678f416cbff9306a = function(arg0, arg1, arg2) {
3521
- try {
3522
- var state0 = {a: arg1, b: arg2};
3523
- var cb0 = (arg0, arg1, arg2) => {
3524
- const a = state0.a;
3525
- state0.a = 0;
3526
- try {
3527
- return __wbg_adapter_523(a, state0.b, arg0, arg1, arg2);
3528
- } finally {
3529
- state0.a = a;
3530
- }
3531
- };
3532
- arg0.forEach(cb0);
3533
- } finally {
3534
- state0.a = state0.b = 0;
3535
- }
3536
- };
3537
- imports.wbg.__wbg_push_36cf4d81d7da33d1 = function(arg0, arg1) {
3538
- const ret = arg0.push(arg1);
3539
- return ret;
3540
- };
3541
- imports.wbg.__wbg_instanceof_ArrayBuffer_74945570b4a62ec7 = function(arg0) {
3542
- let result;
3543
- try {
3544
- result = arg0 instanceof ArrayBuffer;
3545
- } catch (_) {
3546
- result = false;
3547
- }
3548
- const ret = result;
3549
- return ret;
3550
- };
3551
- imports.wbg.__wbg_new_70a2f23d1565c04c = function(arg0, arg1) {
3552
- const ret = new Error(getStringFromWasm0(arg0, arg1));
3553
- return ret;
3554
- };
3555
- imports.wbg.__wbg_message_00eebca8fa4dd7db = function(arg0) {
3556
- const ret = arg0.message;
3557
- return ret;
3558
- };
3559
- imports.wbg.__wbg_name_aa32a0ae51232604 = function(arg0) {
3560
- const ret = arg0.name;
3561
- return ret;
3562
- };
3563
- imports.wbg.__wbg_call_3bfa248576352471 = function() { return handleError(function (arg0, arg1, arg2) {
3564
- const ret = arg0.call(arg1, arg2);
3565
- return ret;
3566
- }, arguments) };
3567
- imports.wbg.__wbg_set_277a63e77c89279f = function(arg0, arg1, arg2) {
3568
- const ret = arg0.set(arg1, arg2);
3569
- return ret;
3570
- };
3571
- imports.wbg.__wbg_isSafeInteger_b9dff570f01a9100 = function(arg0) {
3572
- const ret = Number.isSafeInteger(arg0);
3573
- return ret;
3574
- };
3575
- imports.wbg.__wbg_now_70af4fe37a792251 = function() {
3576
- const ret = Date.now();
3577
- return ret;
3578
- };
3579
- imports.wbg.__wbg_entries_c02034de337d3ee2 = function(arg0) {
3580
- const ret = Object.entries(arg0);
3581
- return ret;
3582
- };
3583
- imports.wbg.__wbg_new_1073970097e5a420 = function(arg0, arg1) {
3584
- try {
3585
- var state0 = {a: arg0, b: arg1};
3586
- var cb0 = (arg0, arg1) => {
3587
- const a = state0.a;
3588
- state0.a = 0;
3589
- try {
3590
- return __wbg_adapter_566(a, state0.b, arg0, arg1);
3591
- } finally {
3592
- state0.a = a;
3593
- }
3594
- };
3595
- const ret = new Promise(cb0);
3596
- return ret;
3597
- } finally {
3598
- state0.a = state0.b = 0;
3599
- }
3600
- };
3601
- imports.wbg.__wbg_resolve_0aad7c1484731c99 = function(arg0) {
3602
- const ret = Promise.resolve(arg0);
3603
- return ret;
3604
- };
3605
- imports.wbg.__wbg_then_748f75edfb032440 = function(arg0, arg1) {
3606
- const ret = arg0.then(arg1);
3607
- return ret;
3608
- };
3609
- imports.wbg.__wbg_then_4866a7d9f55d8f3e = function(arg0, arg1, arg2) {
3610
- const ret = arg0.then(arg1, arg2);
3611
- return ret;
3612
- };
3613
- imports.wbg.__wbg_buffer_ccaed51a635d8a2d = function(arg0) {
3614
- const ret = arg0.buffer;
3615
- return ret;
3616
- };
3617
- imports.wbg.__wbg_newwithbyteoffsetandlength_7e3eb787208af730 = function(arg0, arg1, arg2) {
3618
- const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
3619
- return ret;
3620
- };
3621
- imports.wbg.__wbg_new_fec2611eb9180f95 = function(arg0) {
3622
- const ret = new Uint8Array(arg0);
3623
- return ret;
3624
- };
3625
- imports.wbg.__wbg_set_ec2fcf81bc573fd9 = function(arg0, arg1, arg2) {
3626
- arg0.set(arg1, arg2 >>> 0);
3627
- };
3628
- imports.wbg.__wbg_length_9254c4bd3b9f23c4 = function(arg0) {
3629
- const ret = arg0.length;
3630
- return ret;
3631
- };
3632
- imports.wbg.__wbg_instanceof_Uint8Array_df0761410414ef36 = function(arg0) {
3633
- let result;
3634
- try {
3635
- result = arg0 instanceof Uint8Array;
3636
- } catch (_) {
3637
- result = false;
3638
- }
3639
- const ret = result;
3640
- return ret;
3641
- };
3642
- imports.wbg.__wbg_newwithlength_76462a666eca145f = function(arg0) {
3643
- const ret = new Uint8Array(arg0 >>> 0);
3644
- return ret;
3645
- };
3646
- imports.wbg.__wbg_buffer_95102df5554646dc = function(arg0) {
3647
- const ret = arg0.buffer;
3648
- return ret;
3649
- };
3650
- imports.wbg.__wbg_subarray_975a06f9dbd16995 = function(arg0, arg1, arg2) {
3651
- const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
3652
- return ret;
3653
- };
3654
- imports.wbg.__wbg_byteLength_5d623ba3d92a3a9c = function(arg0) {
3655
- const ret = arg0.byteLength;
3656
- return ret;
3657
- };
3658
- imports.wbg.__wbg_byteOffset_ec0928143c619cd7 = function(arg0) {
3659
- const ret = arg0.byteOffset;
3660
- return ret;
3661
- };
3662
- imports.wbg.__wbg_has_bd717f25f195f23d = function() { return handleError(function (arg0, arg1) {
3663
- const ret = Reflect.has(arg0, arg1);
3664
- return ret;
3665
- }, arguments) };
3666
- imports.wbg.__wbg_new_fddd2773b9888ac9 = function() { return handleError(function (arg0) {
3667
- const ret = new WebAssembly.Memory(arg0);
3668
- return ret;
3669
- }, arguments) };
3670
- imports.wbg.__wbg_stringify_eead5648c09faaf8 = function() { return handleError(function (arg0) {
3671
- const ret = JSON.stringify(arg0);
3672
- return ret;
3673
- }, arguments) };
3674
- imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
3675
- const ret = debugString(arg1);
3676
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3677
- const len1 = WASM_VECTOR_LEN;
3678
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3679
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3680
- };
3681
- imports.wbg.__wbindgen_throw = function(arg0, arg1) {
3682
- throw new Error(getStringFromWasm0(arg0, arg1));
3683
- };
3684
- imports.wbg.__wbindgen_memory = function() {
3685
- const ret = wasm.memory;
3686
- return ret;
3687
- };
3688
- imports.wbg.__wbindgen_closure_wrapper7553 = function(arg0, arg1, arg2) {
3689
- const ret = makeMutClosure(arg0, arg1, 1618, __wbg_adapter_44);
3690
- return ret;
3691
- };
3692
- imports.wbg.__wbindgen_closure_wrapper11082 = function(arg0, arg1, arg2) {
3693
- const ret = makeMutClosure(arg0, arg1, 2263, __wbg_adapter_47);
3694
- return ret;
3695
- };
3696
- imports.wbg.__wbindgen_init_externref_table = function() {
3697
- const table = wasm.__wbindgen_export_2;
3698
- const offset = table.grow(4);
3699
- table.set(0, undefined);
3700
- table.set(offset + 0, undefined);
3701
- table.set(offset + 1, null);
3702
- table.set(offset + 2, true);
3703
- table.set(offset + 3, false);
3704
- ;
3705
- };
3706
-
3707
- return imports;
3737
+ } finally {
3738
+ state0.a = state0.b = 0;
3739
+ }
3740
+ };
3741
+ imports.wbg.__wbg_resolve_0aad7c1484731c99 = function(arg0) {
3742
+ const ret = Promise.resolve(arg0);
3743
+ return ret;
3744
+ };
3745
+ imports.wbg.__wbg_then_748f75edfb032440 = function(arg0, arg1) {
3746
+ const ret = arg0.then(arg1);
3747
+ return ret;
3748
+ };
3749
+ imports.wbg.__wbg_then_4866a7d9f55d8f3e = function(arg0, arg1, arg2) {
3750
+ const ret = arg0.then(arg1, arg2);
3751
+ return ret;
3752
+ };
3753
+ imports.wbg.__wbg_buffer_ccaed51a635d8a2d = function(arg0) {
3754
+ const ret = arg0.buffer;
3755
+ return ret;
3756
+ };
3757
+ imports.wbg.__wbg_newwithbyteoffsetandlength_7e3eb787208af730 = function(arg0, arg1, arg2) {
3758
+ const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
3759
+ return ret;
3760
+ };
3761
+ imports.wbg.__wbg_new_fec2611eb9180f95 = function(arg0) {
3762
+ const ret = new Uint8Array(arg0);
3763
+ return ret;
3764
+ };
3765
+ imports.wbg.__wbg_set_ec2fcf81bc573fd9 = function(arg0, arg1, arg2) {
3766
+ arg0.set(arg1, arg2 >>> 0);
3767
+ };
3768
+ imports.wbg.__wbg_length_9254c4bd3b9f23c4 = function(arg0) {
3769
+ const ret = arg0.length;
3770
+ return ret;
3771
+ };
3772
+ imports.wbg.__wbg_instanceof_Uint8Array_df0761410414ef36 = function(arg0) {
3773
+ let result;
3774
+ try {
3775
+ result = arg0 instanceof Uint8Array;
3776
+ } catch (_) {
3777
+ result = false;
3778
+ }
3779
+ const ret = result;
3780
+ return ret;
3781
+ };
3782
+ imports.wbg.__wbg_newwithlength_76462a666eca145f = function(arg0) {
3783
+ const ret = new Uint8Array(arg0 >>> 0);
3784
+ return ret;
3785
+ };
3786
+ imports.wbg.__wbg_buffer_95102df5554646dc = function(arg0) {
3787
+ const ret = arg0.buffer;
3788
+ return ret;
3789
+ };
3790
+ imports.wbg.__wbg_subarray_975a06f9dbd16995 = function(arg0, arg1, arg2) {
3791
+ const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
3792
+ return ret;
3793
+ };
3794
+ imports.wbg.__wbg_byteLength_5d623ba3d92a3a9c = function(arg0) {
3795
+ const ret = arg0.byteLength;
3796
+ return ret;
3797
+ };
3798
+ imports.wbg.__wbg_byteOffset_ec0928143c619cd7 = function(arg0) {
3799
+ const ret = arg0.byteOffset;
3800
+ return ret;
3801
+ };
3802
+ imports.wbg.__wbg_has_bd717f25f195f23d = function() { return handleError(function (arg0, arg1) {
3803
+ const ret = Reflect.has(arg0, arg1);
3804
+ return ret;
3805
+ }, arguments) };
3806
+ imports.wbg.__wbg_new_fddd2773b9888ac9 = function() { return handleError(function (arg0) {
3807
+ const ret = new WebAssembly.Memory(arg0);
3808
+ return ret;
3809
+ }, arguments) };
3810
+ imports.wbg.__wbg_stringify_eead5648c09faaf8 = function() { return handleError(function (arg0) {
3811
+ const ret = JSON.stringify(arg0);
3812
+ return ret;
3813
+ }, arguments) };
3814
+ imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
3815
+ const ret = debugString(arg1);
3816
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3817
+ const len1 = WASM_VECTOR_LEN;
3818
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3819
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3820
+ };
3821
+ imports.wbg.__wbindgen_throw = function(arg0, arg1) {
3822
+ throw new Error(getStringFromWasm0(arg0, arg1));
3823
+ };
3824
+ imports.wbg.__wbindgen_memory = function() {
3825
+ const ret = wasm.memory;
3826
+ return ret;
3827
+ };
3828
+ imports.wbg.__wbindgen_closure_wrapper7046 = function(arg0, arg1, arg2) {
3829
+ const ret = makeMutClosure(arg0, arg1, 1619, __wbg_adapter_46);
3830
+ return ret;
3831
+ };
3832
+ imports.wbg.__wbindgen_closure_wrapper11359 = function(arg0, arg1, arg2) {
3833
+ const ret = makeMutClosure(arg0, arg1, 2399, __wbg_adapter_49);
3834
+ return ret;
3835
+ };
3836
+ imports.wbg.__wbindgen_init_externref_table = function() {
3837
+ const table = wasm.__wbindgen_export_2;
3838
+ const offset = table.grow(4);
3839
+ table.set(0, undefined);
3840
+ table.set(offset + 0, undefined);
3841
+ table.set(offset + 1, null);
3842
+ table.set(offset + 2, true);
3843
+ table.set(offset + 3, false);
3844
+ ;
3845
+ };
3846
+
3847
+ return imports;
3708
3848
  }
3709
3849
 
3710
3850
  function __wbg_init_memory(imports, memory) {