@xmtp/wasm-bindings 0.0.6 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,8 @@
1
- import { SQLite } from './snippets/diesel-wasm-sqlite-36e85657e47f3be3/src/js/sqlite3-diesel.js';
1
+ import { SQLite } from './snippets/sqlite-web-90f8afa7b0cd2303/src/js/sqlite3-diesel.js';
2
2
 
3
3
  let wasm;
4
4
 
5
- const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
6
-
7
- if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
5
+ let WASM_VECTOR_LEN = 0;
8
6
 
9
7
  let cachedUint8ArrayMemory0 = null;
10
8
 
@@ -15,13 +13,6 @@ function getUint8ArrayMemory0() {
15
13
  return cachedUint8ArrayMemory0;
16
14
  }
17
15
 
18
- function getStringFromWasm0(ptr, len) {
19
- ptr = ptr >>> 0;
20
- return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
21
- }
22
-
23
- let WASM_VECTOR_LEN = 0;
24
-
25
16
  const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
26
17
 
27
18
  const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
@@ -76,10 +67,6 @@ function passStringToWasm0(arg, malloc, realloc) {
76
67
  return ptr;
77
68
  }
78
69
 
79
- function isLikeNone(x) {
80
- return x === undefined || x === null;
81
- }
82
-
83
70
  let cachedDataViewMemory0 = null;
84
71
 
85
72
  function getDataViewMemory0() {
@@ -89,6 +76,65 @@ function getDataViewMemory0() {
89
76
  return cachedDataViewMemory0;
90
77
  }
91
78
 
79
+ const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
80
+
81
+ if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
82
+
83
+ function getStringFromWasm0(ptr, len) {
84
+ ptr = ptr >>> 0;
85
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
86
+ }
87
+
88
+ function addToExternrefTable0(obj) {
89
+ const idx = wasm.__externref_table_alloc();
90
+ wasm.__wbindgen_export_5.set(idx, obj);
91
+ return idx;
92
+ }
93
+
94
+ function handleError(f, args) {
95
+ try {
96
+ return f.apply(this, args);
97
+ } catch (e) {
98
+ const idx = addToExternrefTable0(e);
99
+ wasm.__wbindgen_exn_store(idx);
100
+ }
101
+ }
102
+
103
+ function isLikeNone(x) {
104
+ return x === undefined || x === null;
105
+ }
106
+
107
+ const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
108
+ ? { register: () => {}, unregister: () => {} }
109
+ : new FinalizationRegistry(state => {
110
+ wasm.__wbindgen_export_6.get(state.dtor)(state.a, state.b)
111
+ });
112
+
113
+ function makeMutClosure(arg0, arg1, dtor, f) {
114
+ const state = { a: arg0, b: arg1, cnt: 1, dtor };
115
+ const real = (...args) => {
116
+ // First up with a closure we increment the internal reference
117
+ // count. This ensures that the Rust closure environment won't
118
+ // be deallocated while we're invoking it.
119
+ state.cnt++;
120
+ const a = state.a;
121
+ state.a = 0;
122
+ try {
123
+ return f(a, state.b, ...args);
124
+ } finally {
125
+ if (--state.cnt === 0) {
126
+ wasm.__wbindgen_export_6.get(state.dtor)(a, state.b);
127
+ CLOSURE_DTORS.unregister(state);
128
+ } else {
129
+ state.a = a;
130
+ }
131
+ }
132
+ };
133
+ real.original = state;
134
+ CLOSURE_DTORS.register(real, state, state);
135
+ return real;
136
+ }
137
+
92
138
  function debugString(val) {
93
139
  // primitive types
94
140
  const type = typeof val;
@@ -130,7 +176,7 @@ function debugString(val) {
130
176
  // Test for built-in
131
177
  const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
132
178
  let className;
133
- if (builtInMatches.length > 1) {
179
+ if (builtInMatches && builtInMatches.length > 1) {
134
180
  className = builtInMatches[1];
135
181
  } else {
136
182
  // Failed to match the standard '[object ClassName]'
@@ -154,61 +200,43 @@ function debugString(val) {
154
200
  return className;
155
201
  }
156
202
 
157
- const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
158
- ? { register: () => {}, unregister: () => {} }
159
- : new FinalizationRegistry(state => {
160
- wasm.__wbindgen_export_3.get(state.dtor)(state.a, state.b)
161
- });
162
-
163
- function makeMutClosure(arg0, arg1, dtor, f) {
164
- const state = { a: arg0, b: arg1, cnt: 1, dtor };
165
- const real = (...args) => {
166
- // First up with a closure we increment the internal reference
167
- // count. This ensures that the Rust closure environment won't
168
- // be deallocated while we're invoking it.
169
- state.cnt++;
170
- const a = state.a;
171
- state.a = 0;
172
- try {
173
- return f(a, state.b, ...args);
174
- } finally {
175
- if (--state.cnt === 0) {
176
- wasm.__wbindgen_export_3.get(state.dtor)(a, state.b);
177
- CLOSURE_DTORS.unregister(state);
178
- } else {
179
- state.a = a;
180
- }
181
- }
182
- };
183
- real.original = state;
184
- CLOSURE_DTORS.register(real, state, state);
185
- return real;
186
- }
187
- function __wbg_adapter_46(arg0, arg1) {
188
- wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__ha602f13c6f6f57bd(arg0, arg1);
189
- }
190
-
191
- function __wbg_adapter_49(arg0, arg1, arg2) {
192
- wasm.closure2320_externref_shim(arg0, arg1, arg2);
203
+ function getArrayJsValueFromWasm0(ptr, len) {
204
+ ptr = ptr >>> 0;
205
+ const mem = getDataViewMemory0();
206
+ const result = [];
207
+ for (let i = ptr; i < ptr + 4 * len; i += 4) {
208
+ result.push(wasm.__wbindgen_export_5.get(mem.getUint32(i, true)));
209
+ }
210
+ wasm.__externref_drop_slice(ptr, len);
211
+ return result;
193
212
  }
194
213
 
195
- function addToExternrefTable0(obj) {
196
- const idx = wasm.__externref_table_alloc();
197
- wasm.__wbindgen_export_2.set(idx, obj);
198
- return idx;
214
+ function passArrayJsValueToWasm0(array, malloc) {
215
+ const ptr = malloc(array.length * 4, 4) >>> 0;
216
+ const mem = getDataViewMemory0();
217
+ for (let i = 0; i < array.length; i++) {
218
+ mem.setUint32(ptr + 4 * i, addToExternrefTable0(array[i]), true);
219
+ }
220
+ WASM_VECTOR_LEN = array.length;
221
+ return ptr;
199
222
  }
200
223
 
201
224
  function _assertClass(instance, klass) {
202
225
  if (!(instance instanceof klass)) {
203
226
  throw new Error(`expected instance of ${klass.name}`);
204
227
  }
205
- return instance.ptr;
228
+ }
229
+
230
+ function takeFromExternrefTable0(idx) {
231
+ const value = wasm.__wbindgen_export_5.get(idx);
232
+ wasm.__externref_table_dealloc(idx);
233
+ return value;
206
234
  }
207
235
  /**
208
236
  * @param {string} host
209
237
  * @param {string} inbox_id
210
238
  * @param {string} account_address
211
- * @param {string} db_path
239
+ * @param {string | undefined} [db_path]
212
240
  * @param {Uint8Array | undefined} [encryption_key]
213
241
  * @param {string | undefined} [history_sync_url]
214
242
  * @param {LogOptions | undefined} [log_options]
@@ -221,8 +249,8 @@ export function createClient(host, inbox_id, account_address, db_path, encryptio
221
249
  const len1 = WASM_VECTOR_LEN;
222
250
  const ptr2 = passStringToWasm0(account_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
223
251
  const len2 = WASM_VECTOR_LEN;
224
- const ptr3 = passStringToWasm0(db_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
225
- const len3 = WASM_VECTOR_LEN;
252
+ var ptr3 = isLikeNone(db_path) ? 0 : passStringToWasm0(db_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
253
+ var len3 = WASM_VECTOR_LEN;
226
254
  var ptr4 = isLikeNone(history_sync_url) ? 0 : passStringToWasm0(history_sync_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
227
255
  var len4 = WASM_VECTOR_LEN;
228
256
  let ptr5 = 0;
@@ -234,32 +262,6 @@ export function createClient(host, inbox_id, account_address, db_path, encryptio
234
262
  return ret;
235
263
  }
236
264
 
237
- function passArrayJsValueToWasm0(array, malloc) {
238
- const ptr = malloc(array.length * 4, 4) >>> 0;
239
- const mem = getDataViewMemory0();
240
- for (let i = 0; i < array.length; i++) {
241
- mem.setUint32(ptr + 4 * i, addToExternrefTable0(array[i]), true);
242
- }
243
- WASM_VECTOR_LEN = array.length;
244
- return ptr;
245
- }
246
-
247
- function takeFromExternrefTable0(idx) {
248
- const value = wasm.__wbindgen_export_2.get(idx);
249
- wasm.__externref_table_dealloc(idx);
250
- return value;
251
- }
252
-
253
- function getArrayJsValueFromWasm0(ptr, len) {
254
- ptr = ptr >>> 0;
255
- const mem = getDataViewMemory0();
256
- const result = [];
257
- for (let i = ptr; i < ptr + 4 * len; i += 4) {
258
- result.push(wasm.__wbindgen_export_2.get(mem.getUint32(i, true)));
259
- }
260
- wasm.__externref_drop_slice(ptr, len);
261
- return result;
262
- }
263
265
  /**
264
266
  * @param {string} host
265
267
  * @param {string} account_address
@@ -299,50 +301,140 @@ export function generateInboxId(account_address) {
299
301
  }
300
302
  }
301
303
 
302
- function handleError(f, args) {
303
- try {
304
- return f.apply(this, args);
305
- } catch (e) {
306
- const idx = addToExternrefTable0(e);
307
- wasm.__wbindgen_exn_store(idx);
304
+ /**
305
+ * @param {string} signature_text
306
+ * @param {Uint8Array} signature_bytes
307
+ * @param {Uint8Array} public_key
308
+ */
309
+ export function verifySignedWithPublicKey(signature_text, signature_bytes, public_key) {
310
+ const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
311
+ const len0 = WASM_VECTOR_LEN;
312
+ const ret = wasm.verifySignedWithPublicKey(ptr0, len0, signature_bytes, public_key);
313
+ if (ret[1]) {
314
+ throw takeFromExternrefTable0(ret[0]);
308
315
  }
309
316
  }
310
317
 
311
- function notDefined(what) { return () => { throw new Error(`${what} is not defined`); }; }
312
- function __wbg_adapter_567(arg0, arg1, arg2, arg3) {
313
- wasm.closure3388_externref_shim(arg0, arg1, arg2, arg3);
318
+ function __wbg_adapter_46(arg0, arg1, arg2) {
319
+ wasm.closure2502_externref_shim(arg0, arg1, arg2);
314
320
  }
315
321
 
316
- export const ConsentEntityType = Object.freeze({ GroupId:0,"0":"GroupId",InboxId:1,"1":"InboxId",Address:2,"2":"Address", });
317
-
318
- export const ConsentState = Object.freeze({ Unknown:0,"0":"Unknown",Allowed:1,"1":"Allowed",Denied:2,"2":"Denied", });
319
-
320
- export const ConversationType = Object.freeze({ Dm:0,"0":"Dm",Group:1,"1":"Group",Sync:2,"2":"Sync", });
321
-
322
- export const DeliveryStatus = Object.freeze({ Unpublished:0,"0":"Unpublished",Published:1,"1":"Published",Failed:2,"2":"Failed", });
323
-
324
- export const GroupMembershipState = Object.freeze({ Allowed:0,"0":"Allowed",Rejected:1,"1":"Rejected",Pending:2,"2":"Pending", });
325
-
326
- export const GroupMessageKind = Object.freeze({ Application:0,"0":"Application",MembershipChange:1,"1":"MembershipChange", });
327
-
328
- export const GroupPermissionsOptions = Object.freeze({ AllMembers:0,"0":"AllMembers",AdminOnly:1,"1":"AdminOnly",CustomPolicy:2,"2":"CustomPolicy", });
329
-
330
- export const PermissionLevel = Object.freeze({ Member:0,"0":"Member",Admin:1,"1":"Admin",SuperAdmin:2,"2":"SuperAdmin", });
331
-
332
- export const PermissionPolicy = Object.freeze({ Allow:0,"0":"Allow",Deny:1,"1":"Deny",Admin:2,"2":"Admin",SuperAdmin:3,"3":"SuperAdmin",DoesNotExist:4,"4":"DoesNotExist",Other:5,"5":"Other", });
333
-
334
- export const PermissionUpdateType = Object.freeze({ AddMember:0,"0":"AddMember",RemoveMember:1,"1":"RemoveMember",AddAdmin:2,"2":"AddAdmin",RemoveAdmin:3,"3":"RemoveAdmin",UpdateMetadata:4,"4":"UpdateMetadata", });
335
-
336
- export const SignatureRequestType = Object.freeze({ AddWallet:0,"0":"AddWallet",CreateInbox:1,"1":"CreateInbox",RevokeWallet:2,"2":"RevokeWallet",RevokeInstallations:3,"3":"RevokeInstallations", });
337
-
338
- export const SortDirection = Object.freeze({ Ascending:0,"0":"Ascending",Descending:1,"1":"Descending", });
322
+ function __wbg_adapter_569(arg0, arg1, arg2, arg3) {
323
+ wasm.closure3596_externref_shim(arg0, arg1, arg2, arg3);
324
+ }
339
325
 
340
- const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
326
+ /**
327
+ * @enum {0 | 1 | 2}
328
+ */
329
+ export const ConsentEntityType = Object.freeze({
330
+ GroupId: 0, "0": "GroupId",
331
+ InboxId: 1, "1": "InboxId",
332
+ Address: 2, "2": "Address",
333
+ });
334
+ /**
335
+ * @enum {0 | 1 | 2}
336
+ */
337
+ export const ConsentState = Object.freeze({
338
+ Unknown: 0, "0": "Unknown",
339
+ Allowed: 1, "1": "Allowed",
340
+ Denied: 2, "2": "Denied",
341
+ });
342
+ /**
343
+ * @enum {0 | 1 | 2}
344
+ */
345
+ export const ConversationType = Object.freeze({
346
+ Dm: 0, "0": "Dm",
347
+ Group: 1, "1": "Group",
348
+ Sync: 2, "2": "Sync",
349
+ });
350
+ /**
351
+ * @enum {0 | 1 | 2}
352
+ */
353
+ export const DeliveryStatus = Object.freeze({
354
+ Unpublished: 0, "0": "Unpublished",
355
+ Published: 1, "1": "Published",
356
+ Failed: 2, "2": "Failed",
357
+ });
358
+ /**
359
+ * @enum {0 | 1 | 2}
360
+ */
361
+ export const GroupMembershipState = Object.freeze({
362
+ Allowed: 0, "0": "Allowed",
363
+ Rejected: 1, "1": "Rejected",
364
+ Pending: 2, "2": "Pending",
365
+ });
366
+ /**
367
+ * @enum {0 | 1}
368
+ */
369
+ export const GroupMessageKind = Object.freeze({
370
+ Application: 0, "0": "Application",
371
+ MembershipChange: 1, "1": "MembershipChange",
372
+ });
373
+ /**
374
+ * @enum {0 | 1 | 2}
375
+ */
376
+ export const GroupPermissionsOptions = Object.freeze({
377
+ AllMembers: 0, "0": "AllMembers",
378
+ AdminOnly: 1, "1": "AdminOnly",
379
+ CustomPolicy: 2, "2": "CustomPolicy",
380
+ });
381
+ /**
382
+ * @enum {0 | 1 | 2 | 3}
383
+ */
384
+ export const MetadataField = Object.freeze({
385
+ GroupName: 0, "0": "GroupName",
386
+ Description: 1, "1": "Description",
387
+ ImageUrlSquare: 2, "2": "ImageUrlSquare",
388
+ PinnedFrameUrl: 3, "3": "PinnedFrameUrl",
389
+ });
390
+ /**
391
+ * @enum {0 | 1 | 2}
392
+ */
393
+ export const PermissionLevel = Object.freeze({
394
+ Member: 0, "0": "Member",
395
+ Admin: 1, "1": "Admin",
396
+ SuperAdmin: 2, "2": "SuperAdmin",
397
+ });
398
+ /**
399
+ * @enum {0 | 1 | 2 | 3 | 4 | 5}
400
+ */
401
+ export const PermissionPolicy = Object.freeze({
402
+ Allow: 0, "0": "Allow",
403
+ Deny: 1, "1": "Deny",
404
+ Admin: 2, "2": "Admin",
405
+ SuperAdmin: 3, "3": "SuperAdmin",
406
+ DoesNotExist: 4, "4": "DoesNotExist",
407
+ Other: 5, "5": "Other",
408
+ });
409
+ /**
410
+ * @enum {0 | 1 | 2 | 3 | 4}
411
+ */
412
+ export const PermissionUpdateType = Object.freeze({
413
+ AddMember: 0, "0": "AddMember",
414
+ RemoveMember: 1, "1": "RemoveMember",
415
+ AddAdmin: 2, "2": "AddAdmin",
416
+ RemoveAdmin: 3, "3": "RemoveAdmin",
417
+ UpdateMetadata: 4, "4": "UpdateMetadata",
418
+ });
419
+ /**
420
+ * @enum {0 | 1 | 2 | 3}
421
+ */
422
+ export const SignatureRequestType = Object.freeze({
423
+ AddWallet: 0, "0": "AddWallet",
424
+ CreateInbox: 1, "1": "CreateInbox",
425
+ RevokeWallet: 2, "2": "RevokeWallet",
426
+ RevokeInstallations: 3, "3": "RevokeInstallations",
427
+ });
428
+ /**
429
+ * @enum {0 | 1}
430
+ */
431
+ export const SortDirection = Object.freeze({
432
+ Ascending: 0, "0": "Ascending",
433
+ Descending: 1, "1": "Descending",
434
+ });
341
435
 
342
436
  const __wbindgen_enum_LogLevel = ["off", "error", "warn", "info", "debug", "trace"];
343
437
 
344
- const __wbindgen_enum_ReadableStreamReaderMode = ["byob"];
345
-
346
438
  const __wbindgen_enum_ReadableStreamType = ["bytes"];
347
439
 
348
440
  const __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"];
@@ -374,6 +466,30 @@ export class Client {
374
466
  const ptr = this.__destroy_into_raw();
375
467
  wasm.__wbg_client_free(ptr, 0);
376
468
  }
469
+ /**
470
+ *
471
+ * * Get the client's inbox state.
472
+ * *
473
+ * * If `refresh_from_network` is true, the client will go to the network first to refresh the state.
474
+ * * Otherwise, the state will be read from the local database.
475
+ *
476
+ * @param {boolean} refresh_from_network
477
+ * @returns {Promise<InboxState>}
478
+ */
479
+ inboxState(refresh_from_network) {
480
+ const ret = wasm.client_inboxState(this.__wbg_ptr, refresh_from_network);
481
+ return ret;
482
+ }
483
+ /**
484
+ * @param {string} inbox_id
485
+ * @returns {Promise<InboxState>}
486
+ */
487
+ getLatestInboxState(inbox_id) {
488
+ const ptr0 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
489
+ const len0 = WASM_VECTOR_LEN;
490
+ const ret = wasm.client_getLatestInboxState(this.__wbg_ptr, ptr0, len0);
491
+ return ret;
492
+ }
377
493
  /**
378
494
  * @returns {string}
379
495
  */
@@ -482,57 +598,19 @@ export class Client {
482
598
  return Conversations.__wrap(ret);
483
599
  }
484
600
  /**
485
- * @param {string} signature_text
486
- * @returns {Uint8Array}
601
+ * @param {(Consent)[]} records
602
+ * @returns {Promise<void>}
487
603
  */
488
- signWithInstallationKey(signature_text) {
489
- const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
604
+ setConsentStates(records) {
605
+ const ptr0 = passArrayJsValueToWasm0(records, wasm.__wbindgen_malloc);
490
606
  const len0 = WASM_VECTOR_LEN;
491
- const ret = wasm.client_signWithInstallationKey(this.__wbg_ptr, ptr0, len0);
492
- if (ret[2]) {
493
- throw takeFromExternrefTable0(ret[1]);
494
- }
495
- return takeFromExternrefTable0(ret[0]);
607
+ const ret = wasm.client_setConsentStates(this.__wbg_ptr, ptr0, len0);
608
+ return ret;
496
609
  }
497
610
  /**
498
- * @param {string} signature_text
499
- * @param {Uint8Array} signature_bytes
500
- */
501
- verifySignedWithInstallationKey(signature_text, signature_bytes) {
502
- const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
503
- const len0 = WASM_VECTOR_LEN;
504
- const ret = wasm.client_verifySignedWithInstallationKey(this.__wbg_ptr, ptr0, len0, signature_bytes);
505
- if (ret[1]) {
506
- throw takeFromExternrefTable0(ret[0]);
507
- }
508
- }
509
- /**
510
- * @param {string} signature_text
511
- * @param {Uint8Array} signature_bytes
512
- * @param {Uint8Array} public_key
513
- */
514
- verifySignedWithPublicKey(signature_text, signature_bytes, public_key) {
515
- const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
516
- const len0 = WASM_VECTOR_LEN;
517
- const ret = wasm.client_verifySignedWithPublicKey(this.__wbg_ptr, ptr0, len0, signature_bytes, public_key);
518
- if (ret[1]) {
519
- throw takeFromExternrefTable0(ret[0]);
520
- }
521
- }
522
- /**
523
- * @param {(Consent)[]} records
524
- * @returns {Promise<void>}
525
- */
526
- setConsentStates(records) {
527
- const ptr0 = passArrayJsValueToWasm0(records, wasm.__wbindgen_malloc);
528
- const len0 = WASM_VECTOR_LEN;
529
- const ret = wasm.client_setConsentStates(this.__wbg_ptr, ptr0, len0);
530
- return ret;
531
- }
532
- /**
533
- * @param {ConsentEntityType} entity_type
534
- * @param {string} entity
535
- * @returns {Promise<ConsentState>}
611
+ * @param {ConsentEntityType} entity_type
612
+ * @param {string} entity
613
+ * @returns {Promise<ConsentState>}
536
614
  */
537
615
  getConsentState(entity_type, entity) {
538
616
  const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -548,16 +626,13 @@ export class Client {
548
626
  return ret;
549
627
  }
550
628
  /**
551
- * @param {string} existing_wallet_address
552
629
  * @param {string} new_wallet_address
553
630
  * @returns {Promise<string>}
554
631
  */
555
- addWalletSignatureText(existing_wallet_address, new_wallet_address) {
556
- const ptr0 = passStringToWasm0(existing_wallet_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
632
+ addWalletSignatureText(new_wallet_address) {
633
+ const ptr0 = passStringToWasm0(new_wallet_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
557
634
  const len0 = WASM_VECTOR_LEN;
558
- const ptr1 = passStringToWasm0(new_wallet_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
559
- const len1 = WASM_VECTOR_LEN;
560
- const ret = wasm.client_addWalletSignatureText(this.__wbg_ptr, ptr0, len0, ptr1, len1);
635
+ const ret = wasm.client_addWalletSignatureText(this.__wbg_ptr, ptr0, len0);
561
636
  return ret;
562
637
  }
563
638
  /**
@@ -605,28 +680,29 @@ export class Client {
605
680
  return ret;
606
681
  }
607
682
  /**
608
- *
609
- * * Get the client's inbox state.
610
- * *
611
- * * If `refresh_from_network` is true, the client will go to the network first to refresh the state.
612
- * * Otherwise, the state will be read from the local database.
613
- *
614
- * @param {boolean} refresh_from_network
615
- * @returns {Promise<InboxState>}
683
+ * @param {string} signature_text
684
+ * @returns {Uint8Array}
616
685
  */
617
- inboxState(refresh_from_network) {
618
- const ret = wasm.client_inboxState(this.__wbg_ptr, refresh_from_network);
619
- return ret;
686
+ signWithInstallationKey(signature_text) {
687
+ const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
688
+ const len0 = WASM_VECTOR_LEN;
689
+ const ret = wasm.client_signWithInstallationKey(this.__wbg_ptr, ptr0, len0);
690
+ if (ret[2]) {
691
+ throw takeFromExternrefTable0(ret[1]);
692
+ }
693
+ return takeFromExternrefTable0(ret[0]);
620
694
  }
621
695
  /**
622
- * @param {string} inbox_id
623
- * @returns {Promise<InboxState>}
696
+ * @param {string} signature_text
697
+ * @param {Uint8Array} signature_bytes
624
698
  */
625
- getLatestInboxState(inbox_id) {
626
- const ptr0 = passStringToWasm0(inbox_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
699
+ verifySignedWithInstallationKey(signature_text, signature_bytes) {
700
+ const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
627
701
  const len0 = WASM_VECTOR_LEN;
628
- const ret = wasm.client_getLatestInboxState(this.__wbg_ptr, ptr0, len0);
629
- return ret;
702
+ const ret = wasm.client_verifySignedWithInstallationKey(this.__wbg_ptr, ptr0, len0, signature_bytes);
703
+ if (ret[1]) {
704
+ throw takeFromExternrefTable0(ret[0]);
705
+ }
630
706
  }
631
707
  }
632
708
 
@@ -858,25 +934,6 @@ export class Conversation {
858
934
  const ptr = this.__destroy_into_raw();
859
935
  wasm.__wbg_conversation_free(ptr, 0);
860
936
  }
861
- /**
862
- * @returns {ConsentState}
863
- */
864
- consentState() {
865
- const ret = wasm.conversation_consentState(this.__wbg_ptr);
866
- if (ret[2]) {
867
- throw takeFromExternrefTable0(ret[1]);
868
- }
869
- return ret[0];
870
- }
871
- /**
872
- * @param {ConsentState} state
873
- */
874
- updateConsentState(state) {
875
- const ret = wasm.conversation_updateConsentState(this.__wbg_ptr, state);
876
- if (ret[1]) {
877
- throw takeFromExternrefTable0(ret[0]);
878
- }
879
- }
880
937
  /**
881
938
  * @returns {string}
882
939
  */
@@ -1300,6 +1357,35 @@ export class Conversation {
1300
1357
  wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
1301
1358
  }
1302
1359
  }
1360
+ /**
1361
+ * @param {PermissionUpdateType} permission_update_type
1362
+ * @param {PermissionPolicy} permission_policy_option
1363
+ * @param {MetadataField | undefined} [metadata_field]
1364
+ * @returns {Promise<void>}
1365
+ */
1366
+ updatePermissionPolicy(permission_update_type, permission_policy_option, metadata_field) {
1367
+ const ret = wasm.conversation_updatePermissionPolicy(this.__wbg_ptr, permission_update_type, permission_policy_option, isLikeNone(metadata_field) ? 4 : metadata_field);
1368
+ return ret;
1369
+ }
1370
+ /**
1371
+ * @returns {ConsentState}
1372
+ */
1373
+ consentState() {
1374
+ const ret = wasm.conversation_consentState(this.__wbg_ptr);
1375
+ if (ret[2]) {
1376
+ throw takeFromExternrefTable0(ret[1]);
1377
+ }
1378
+ return ret[0];
1379
+ }
1380
+ /**
1381
+ * @param {ConsentState} state
1382
+ */
1383
+ updateConsentState(state) {
1384
+ const ret = wasm.conversation_updateConsentState(this.__wbg_ptr, state);
1385
+ if (ret[1]) {
1386
+ throw takeFromExternrefTable0(ret[0]);
1387
+ }
1388
+ }
1303
1389
  }
1304
1390
 
1305
1391
  const ConversationsFinalization = (typeof FinalizationRegistry === 'undefined')
@@ -1557,14 +1643,33 @@ export class CreateGroupOptions {
1557
1643
  var len0 = WASM_VECTOR_LEN;
1558
1644
  wasm.__wbg_set_creategroupoptions_groupPinnedFrameUrl(this.__wbg_ptr, ptr0, len0);
1559
1645
  }
1646
+ /**
1647
+ * @returns {PermissionPolicySet | undefined}
1648
+ */
1649
+ get customPermissionPolicySet() {
1650
+ const ret = wasm.__wbg_get_creategroupoptions_customPermissionPolicySet(this.__wbg_ptr);
1651
+ return ret === 0 ? undefined : PermissionPolicySet.__wrap(ret);
1652
+ }
1653
+ /**
1654
+ * @param {PermissionPolicySet | undefined} [arg0]
1655
+ */
1656
+ set customPermissionPolicySet(arg0) {
1657
+ let ptr0 = 0;
1658
+ if (!isLikeNone(arg0)) {
1659
+ _assertClass(arg0, PermissionPolicySet);
1660
+ ptr0 = arg0.__destroy_into_raw();
1661
+ }
1662
+ wasm.__wbg_set_creategroupoptions_customPermissionPolicySet(this.__wbg_ptr, ptr0);
1663
+ }
1560
1664
  /**
1561
1665
  * @param {GroupPermissionsOptions | undefined} [permissions]
1562
1666
  * @param {string | undefined} [group_name]
1563
1667
  * @param {string | undefined} [group_image_url_square]
1564
1668
  * @param {string | undefined} [group_description]
1565
1669
  * @param {string | undefined} [group_pinned_frame_url]
1670
+ * @param {PermissionPolicySet | undefined} [custom_permission_policy_set]
1566
1671
  */
1567
- constructor(permissions, group_name, group_image_url_square, group_description, group_pinned_frame_url) {
1672
+ constructor(permissions, group_name, group_image_url_square, group_description, group_pinned_frame_url, custom_permission_policy_set) {
1568
1673
  var ptr0 = isLikeNone(group_name) ? 0 : passStringToWasm0(group_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1569
1674
  var len0 = WASM_VECTOR_LEN;
1570
1675
  var ptr1 = isLikeNone(group_image_url_square) ? 0 : passStringToWasm0(group_image_url_square, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -1573,7 +1678,12 @@ export class CreateGroupOptions {
1573
1678
  var len2 = WASM_VECTOR_LEN;
1574
1679
  var ptr3 = isLikeNone(group_pinned_frame_url) ? 0 : passStringToWasm0(group_pinned_frame_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1575
1680
  var len3 = WASM_VECTOR_LEN;
1576
- const ret = wasm.creategroupoptions_new(isLikeNone(permissions) ? 3 : permissions, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
1681
+ let ptr4 = 0;
1682
+ if (!isLikeNone(custom_permission_policy_set)) {
1683
+ _assertClass(custom_permission_policy_set, PermissionPolicySet);
1684
+ ptr4 = custom_permission_policy_set.__destroy_into_raw();
1685
+ }
1686
+ const ret = wasm.creategroupoptions_new(isLikeNone(permissions) ? 3 : permissions, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4);
1577
1687
  this.__wbg_ptr = ret >>> 0;
1578
1688
  CreateGroupOptionsFinalization.register(this, this.__wbg_ptr, this);
1579
1689
  return this;
@@ -1661,13 +1771,13 @@ export class EncodedContent {
1661
1771
  */
1662
1772
  get compression() {
1663
1773
  const ret = wasm.__wbg_get_encodedcontent_compression(this.__wbg_ptr);
1664
- return ret[0] === 0 ? undefined : ret[1];
1774
+ return ret === 0x100000001 ? undefined : ret;
1665
1775
  }
1666
1776
  /**
1667
1777
  * @param {number | undefined} [arg0]
1668
1778
  */
1669
1779
  set compression(arg0) {
1670
- wasm.__wbg_set_encodedcontent_compression(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? 0 : arg0);
1780
+ wasm.__wbg_set_encodedcontent_compression(this.__wbg_ptr, isLikeNone(arg0) ? 0x100000001 : (arg0) >> 0);
1671
1781
  }
1672
1782
  /**
1673
1783
  * @returns {Uint8Array}
@@ -1697,7 +1807,7 @@ export class EncodedContent {
1697
1807
  }
1698
1808
  var ptr1 = isLikeNone(fallback) ? 0 : passStringToWasm0(fallback, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1699
1809
  var len1 = WASM_VECTOR_LEN;
1700
- const ret = wasm.encodedcontent_new(ptr0, parameters, ptr1, len1, !isLikeNone(compression), isLikeNone(compression) ? 0 : compression, content);
1810
+ const ret = wasm.encodedcontent_new(ptr0, parameters, ptr1, len1, isLikeNone(compression) ? 0x100000001 : (compression) >> 0, content);
1701
1811
  this.__wbg_ptr = ret >>> 0;
1702
1812
  EncodedContentFinalization.register(this, this.__wbg_ptr, this);
1703
1813
  return this;
@@ -2156,7 +2266,7 @@ export class IntoUnderlyingByteSource {
2156
2266
  wasm.__wbg_intounderlyingbytesource_free(ptr, 0);
2157
2267
  }
2158
2268
  /**
2159
- * @returns {any}
2269
+ * @returns {ReadableStreamType}
2160
2270
  */
2161
2271
  get type() {
2162
2272
  const ret = wasm.intounderlyingbytesource_type(this.__wbg_ptr);
@@ -2398,7 +2508,7 @@ export class ListMessagesOptions {
2398
2508
  * @param {bigint | undefined} [arg0]
2399
2509
  */
2400
2510
  set sentBeforeNs(arg0) {
2401
- wasm.__wbg_set_listconversationsoptions_createdAfterNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
2511
+ wasm.__wbg_set_listmessagesoptions_sentBeforeNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
2402
2512
  }
2403
2513
  /**
2404
2514
  * @returns {bigint | undefined}
@@ -2411,7 +2521,7 @@ export class ListMessagesOptions {
2411
2521
  * @param {bigint | undefined} [arg0]
2412
2522
  */
2413
2523
  set sentAfterNs(arg0) {
2414
- wasm.__wbg_set_listconversationsoptions_createdBeforeNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
2524
+ wasm.__wbg_set_listmessagesoptions_sentAfterNs(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
2415
2525
  }
2416
2526
  /**
2417
2527
  * @returns {bigint | undefined}
@@ -2424,7 +2534,7 @@ export class ListMessagesOptions {
2424
2534
  * @param {bigint | undefined} [arg0]
2425
2535
  */
2426
2536
  set limit(arg0) {
2427
- wasm.__wbg_set_listconversationsoptions_limit(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
2537
+ wasm.__wbg_set_listmessagesoptions_limit(this.__wbg_ptr, !isLikeNone(arg0), isLikeNone(arg0) ? BigInt(0) : arg0);
2428
2538
  }
2429
2539
  /**
2430
2540
  * @returns {DeliveryStatus | undefined}
@@ -2518,7 +2628,7 @@ export class LogOptions {
2518
2628
  }
2519
2629
  /**
2520
2630
  * filter for logs
2521
- * @returns {any | undefined}
2631
+ * @returns {LogLevel | undefined}
2522
2632
  */
2523
2633
  get level() {
2524
2634
  const ret = wasm.__wbg_get_logoptions_level(this.__wbg_ptr);
@@ -2526,18 +2636,18 @@ export class LogOptions {
2526
2636
  }
2527
2637
  /**
2528
2638
  * filter for logs
2529
- * @param {any | undefined} [arg0]
2639
+ * @param {LogLevel | undefined} [arg0]
2530
2640
  */
2531
2641
  set level(arg0) {
2532
- wasm.__wbg_set_logoptions_level(this.__wbg_ptr, arg0 == undefined ? 7 : ((__wbindgen_enum_LogLevel.indexOf(arg0) + 1 || 7) - 1));
2642
+ wasm.__wbg_set_logoptions_level(this.__wbg_ptr, isLikeNone(arg0) ? 7 : ((__wbindgen_enum_LogLevel.indexOf(arg0) + 1 || 7) - 1));
2533
2643
  }
2534
2644
  /**
2535
2645
  * @param {boolean} structured
2536
2646
  * @param {boolean} performance
2537
- * @param {any | undefined} [level]
2647
+ * @param {LogLevel | undefined} [level]
2538
2648
  */
2539
2649
  constructor(structured, performance, level) {
2540
- const ret = wasm.logoptions_new(structured, performance, level == undefined ? 7 : ((__wbindgen_enum_LogLevel.indexOf(level) + 1 || 7) - 1));
2650
+ const ret = wasm.logoptions_new(structured, performance, isLikeNone(level) ? 7 : ((__wbindgen_enum_LogLevel.indexOf(level) + 1 || 7) - 1));
2541
2651
  this.__wbg_ptr = ret >>> 0;
2542
2652
  LogOptionsFinalization.register(this, this.__wbg_ptr, this);
2543
2653
  return this;
@@ -2917,849 +3027,879 @@ async function __wbg_load(module, imports) {
2917
3027
  function __wbg_get_imports() {
2918
3028
  const imports = {};
2919
3029
  imports.wbg = {};
2920
- imports.wbg.__wbg_initmodule_63b167b4c2952e1b = function(arg0) {
2921
- const ret = SQLite.init_module(arg0);
3030
+ imports.wbg.__wbg_SQLITEBLOB_6acbdf0084499c6d = function(arg0) {
3031
+ const ret = arg0.SQLITE_BLOB;
2922
3032
  return ret;
2923
3033
  };
2924
- imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
2925
- const ret = new Error(getStringFromWasm0(arg0, arg1));
3034
+ imports.wbg.__wbg_SQLITECONSTRAINTCHECK_078c7421516c6cb0 = function(arg0) {
3035
+ const ret = arg0.SQLITE_CONSTRAINT_CHECK;
2926
3036
  return ret;
2927
3037
  };
2928
- imports.wbg.__wbindgen_number_new = function(arg0) {
2929
- const ret = arg0;
3038
+ imports.wbg.__wbg_SQLITECONSTRAINTFOREIGNKEY_542d05e3ee2cb739 = function(arg0) {
3039
+ const ret = arg0.SQLITE_CONSTRAINT_FOREIGNKEY;
2930
3040
  return ret;
2931
3041
  };
2932
- imports.wbg.__wbg_conversation_new = function(arg0) {
2933
- const ret = Conversation.__wrap(arg0);
3042
+ imports.wbg.__wbg_SQLITECONSTRAINTNOTNULL_2e70f645b6727cc2 = function(arg0) {
3043
+ const ret = arg0.SQLITE_CONSTRAINT_NOTNULL;
2934
3044
  return ret;
2935
3045
  };
2936
- imports.wbg.__wbg_message_new = function(arg0) {
2937
- const ret = Message.__wrap(arg0);
3046
+ imports.wbg.__wbg_SQLITECONSTRAINTPRIMARYKEY_672b0b877eaa70c2 = function(arg0) {
3047
+ const ret = arg0.SQLITE_CONSTRAINT_PRIMARYKEY;
2938
3048
  return ret;
2939
3049
  };
2940
- imports.wbg.__wbg_installation_new = function(arg0) {
2941
- const ret = Installation.__wrap(arg0);
3050
+ imports.wbg.__wbg_SQLITECONSTRAINTUNIQUE_99e8e64a3ddb260e = function(arg0) {
3051
+ const ret = arg0.SQLITE_CONSTRAINT_UNIQUE;
2942
3052
  return ret;
2943
3053
  };
2944
- imports.wbg.__wbg_client_new = function(arg0) {
2945
- const ret = Client.__wrap(arg0);
3054
+ imports.wbg.__wbg_SQLITEDONE_71e1fe762c2f590a = function(arg0) {
3055
+ const ret = arg0.SQLITE_DONE;
2946
3056
  return ret;
2947
3057
  };
2948
- imports.wbg.__wbg_inboxstate_new = function(arg0) {
2949
- const ret = InboxState.__wrap(arg0);
3058
+ imports.wbg.__wbg_SQLITEFLOAT_0d1b783b6273c5ca = function(arg0) {
3059
+ const ret = arg0.SQLITE_FLOAT;
2950
3060
  return ret;
2951
3061
  };
2952
- imports.wbg.__wbindgen_is_undefined = function(arg0) {
2953
- const ret = arg0 === undefined;
3062
+ imports.wbg.__wbg_SQLITEINTEGER_89d30a97ec5964fa = function(arg0) {
3063
+ const ret = arg0.SQLITE_INTEGER;
2954
3064
  return ret;
2955
3065
  };
2956
- imports.wbg.__wbindgen_in = function(arg0, arg1) {
2957
- const ret = arg0 in arg1;
3066
+ imports.wbg.__wbg_SQLITENULL_14a0b14e9418f512 = function(arg0) {
3067
+ const ret = arg0.SQLITE_NULL;
2958
3068
  return ret;
2959
3069
  };
2960
- imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
2961
- const obj = arg1;
2962
- const ret = typeof(obj) === 'string' ? obj : undefined;
2963
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2964
- var len1 = WASM_VECTOR_LEN;
3070
+ imports.wbg.__wbg_SQLITEOK_a0a5a44f4b54bda1 = function(arg0) {
3071
+ const ret = arg0.SQLITE_OK;
3072
+ return ret;
3073
+ };
3074
+ imports.wbg.__wbg_SQLITEOPENCREATE_a89e637416473d65 = function(arg0) {
3075
+ const ret = arg0.SQLITE_OPEN_CREATE;
3076
+ return ret;
3077
+ };
3078
+ imports.wbg.__wbg_SQLITEOPENREADWRITE_3eb06e2be4a7f535 = function(arg0) {
3079
+ const ret = arg0.SQLITE_OPEN_READWRITE;
3080
+ return ret;
3081
+ };
3082
+ imports.wbg.__wbg_SQLITEOPENURI_73f78cdcb3e54f88 = function(arg0) {
3083
+ const ret = arg0.SQLITE_OPEN_URI;
3084
+ return ret;
3085
+ };
3086
+ imports.wbg.__wbg_SQLITEPREPAREPERSISTENT_6f142d8bf27893d7 = function(arg0) {
3087
+ const ret = arg0.SQLITE_PREPARE_PERSISTENT;
3088
+ return ret;
3089
+ };
3090
+ imports.wbg.__wbg_SQLITEROW_16ddd22277b912f1 = function(arg0) {
3091
+ const ret = arg0.SQLITE_ROW;
3092
+ return ret;
3093
+ };
3094
+ imports.wbg.__wbg_SQLITESTATIC_f6e96ea3ff678329 = function(arg0) {
3095
+ const ret = arg0.SQLITE_STATIC;
3096
+ return ret;
3097
+ };
3098
+ imports.wbg.__wbg_SQLITETEXT_4dd38105410a0c0a = function(arg0) {
3099
+ const ret = arg0.SQLITE_TEXT;
3100
+ return ret;
3101
+ };
3102
+ imports.wbg.__wbg_String_8f0eb39a4a4c2f66 = function(arg0, arg1) {
3103
+ const ret = String(arg1);
3104
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3105
+ const len1 = WASM_VECTOR_LEN;
2965
3106
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
2966
3107
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2967
3108
  };
2968
- imports.wbg.__wbindgen_is_object = function(arg0) {
2969
- const val = arg0;
2970
- const ret = typeof(val) === 'object' && val !== null;
3109
+ imports.wbg.__wbg_abort_05026c983d86824c = function(arg0) {
3110
+ arg0.abort();
3111
+ };
3112
+ imports.wbg.__wbg_allocCString_69f9010fb2b096f0 = function(arg0, arg1, arg2) {
3113
+ let deferred0_0;
3114
+ let deferred0_1;
3115
+ try {
3116
+ deferred0_0 = arg1;
3117
+ deferred0_1 = arg2;
3118
+ const ret = arg0.allocCString(getStringFromWasm0(arg1, arg2));
3119
+ return ret;
3120
+ } finally {
3121
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
3122
+ }
3123
+ };
3124
+ imports.wbg.__wbg_allocPtr_c83ee345784d444f = function(arg0, arg1, arg2) {
3125
+ const ret = arg0.allocPtr(arg1 >>> 0, arg2 !== 0);
2971
3126
  return ret;
2972
3127
  };
2973
- imports.wbg.__wbindgen_as_number = function(arg0) {
2974
- const ret = +arg0;
3128
+ imports.wbg.__wbg_alloc_59459fd5c596f36c = function(arg0, arg1) {
3129
+ const ret = arg0.alloc(arg1 >>> 0);
2975
3130
  return ret;
2976
3131
  };
2977
- imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
2978
- const ret = getStringFromWasm0(arg0, arg1);
3132
+ imports.wbg.__wbg_alloc_818f07788ede8415 = function(arg0, arg1) {
3133
+ const ret = arg0.alloc(arg1 >>> 0);
2979
3134
  return ret;
2980
3135
  };
2981
- imports.wbg.__wbindgen_try_into_number = function(arg0) {
2982
- let result;
2983
- try { result = +arg0 } catch (e) { result = e }
2984
- const ret = result;
2985
- return ret;
2986
- };
2987
- imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
2988
- const obj = arg1;
2989
- const ret = typeof(obj) === 'number' ? obj : undefined;
2990
- getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
2991
- getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
2992
- };
2993
- imports.wbg.__wbg_consent_unwrap = function(arg0) {
2994
- const ret = Consent.__unwrap(arg0);
2995
- return ret;
2996
- };
2997
- imports.wbg.__wbg_installation_unwrap = function(arg0) {
2998
- const ret = Installation.__unwrap(arg0);
2999
- return ret;
3000
- };
3001
- imports.wbg.__wbg_performance_72f95fe5952939b5 = function() {
3002
- const ret = globalThis.performance;
3003
- return ret;
3004
- };
3005
- imports.wbg.__wbg_mark_6045ef1772587264 = function() { return handleError(function (arg0, arg1, arg2) {
3006
- arg0.mark(getStringFromWasm0(arg1, arg2));
3007
- }, arguments) };
3008
- imports.wbg.__wbg_mark_bad820680b8580c2 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
3009
- arg0.mark(getStringFromWasm0(arg1, arg2), arg3);
3010
- }, arguments) };
3011
- imports.wbg.__wbg_measure_1d846b814d43d7e1 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
3012
- arg0.measure(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4), getStringFromWasm0(arg5, arg6));
3013
- }, arguments) };
3014
- imports.wbg.__wbg_measure_7ca0e5cfef892340 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
3015
- arg0.measure(getStringFromWasm0(arg1, arg2), arg3);
3016
- }, arguments) };
3017
- imports.wbg.__wbindgen_cb_drop = function(arg0) {
3018
- const obj = arg0.original;
3019
- if (obj.cnt-- == 1) {
3020
- obj.a = 0;
3021
- return true;
3022
- }
3023
- const ret = false;
3024
- return ret;
3025
- };
3026
- imports.wbg.__wbg_clearTimeout_541ac0980ffcef74 = typeof clearTimeout == 'function' ? clearTimeout : notDefined('clearTimeout');
3027
- imports.wbg.__wbg_setTimeout_7d81d052875b0f4f = function() { return handleError(function (arg0, arg1) {
3028
- const ret = setTimeout(arg0, arg1);
3029
- return ret;
3030
- }, arguments) };
3031
- imports.wbg.__wbg_new_abda76e883ba8a5f = function() {
3032
- const ret = new Error();
3033
- return ret;
3034
- };
3035
- imports.wbg.__wbg_stack_658279fe44541cf6 = function(arg0, arg1) {
3036
- const ret = arg1.stack;
3037
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3038
- const len1 = WASM_VECTOR_LEN;
3039
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3040
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3041
- };
3042
- imports.wbg.__wbg_error_f851667af71bcfc6 = function(arg0, arg1) {
3043
- let deferred0_0;
3044
- let deferred0_1;
3045
- try {
3046
- deferred0_0 = arg0;
3047
- deferred0_1 = arg1;
3048
- console.error(getStringFromWasm0(arg0, arg1));
3049
- } finally {
3050
- wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
3051
- }
3052
- };
3053
- imports.wbg.__wbg_sqlite3_94709d525395f0e0 = function(arg0) {
3054
- const ret = arg0.sqlite3;
3055
- return ret;
3056
- };
3057
- imports.wbg.__wbg_wasm_493cb9116b24d2ed = function(arg0) {
3058
- const ret = arg0.wasm;
3059
- return ret;
3060
- };
3061
- imports.wbg.__wbg_pstack_fc77b7165420650a = function(arg0) {
3062
- const ret = arg0.pstack;
3063
- return ret;
3064
- };
3065
- imports.wbg.__wbg_pointer_d3c7ebff6fec1c91 = function(arg0) {
3066
- const ret = arg0.pointer;
3067
- return ret;
3068
- };
3069
- imports.wbg.__wbg_alloc_3dc7f2dcc7f32fdb = function(arg0, arg1) {
3070
- const ret = arg0.alloc(arg1 >>> 0);
3071
- return ret;
3072
- };
3073
- imports.wbg.__wbg_alloc_412cbdfb204df090 = function(arg0, arg1) {
3074
- const ret = arg0.alloc(arg1 >>> 0);
3075
- return ret;
3076
- };
3077
- imports.wbg.__wbg_preparev3_439afd649e006ca8 = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
3078
- const ret = arg0.prepare_v3(arg1, arg2 >>> 0, arg3, arg4 >>> 0, arg5, arg6);
3079
- return ret;
3080
- };
3081
- imports.wbg.__wbg_peekPtr_a3eb6c43e8226b33 = function(arg0, arg1) {
3082
- const ret = arg0.peekPtr(arg1);
3083
- return ret;
3084
- };
3085
- imports.wbg.__wbg_restore_f0dcf7e42f529814 = function(arg0, arg1) {
3086
- arg0.restore(arg1);
3087
- };
3088
- imports.wbg.__wbindgen_is_null = function(arg0) {
3089
- const ret = arg0 === null;
3090
- return ret;
3091
- };
3092
- imports.wbg.__wbg_alloc_12d3472bbd917658 = function(arg0) {
3093
- const ret = arg0.alloc;
3094
- return ret;
3095
- };
3096
- imports.wbg.__wbg_allocPtr_a9d5b0a7a6dfb5ab = function(arg0, arg1, arg2) {
3097
- const ret = arg0.allocPtr(arg1 >>> 0, arg2 !== 0);
3098
- return ret;
3099
- };
3100
- imports.wbg.__wbg_impl_3c42f6bcb7b4c19c = function(arg0, arg1) {
3101
- const ret = arg0.impl(arg1 >>> 0);
3102
- return ret;
3103
- };
3104
- imports.wbg.__wbg_bindnull_bb548bfb7e51d9f6 = function(arg0, arg1, arg2) {
3105
- const ret = arg0.bind_null(arg1, arg2);
3106
- return ret;
3107
- };
3108
- imports.wbg.__wbg_bindtext_ea5e136c4ac4c21f = function(arg0, arg1, arg2, arg3, arg4, arg5) {
3109
- const ret = arg0.bind_text(arg1, arg2, arg3 >>> 0, arg4, arg5);
3110
- return ret;
3111
- };
3112
- imports.wbg.__wbg_bindint_1ad9b7c92c66451b = function(arg0, arg1, arg2, arg3) {
3113
- const ret = arg0.bind_int(arg1, arg2, arg3);
3114
- return ret;
3115
- };
3116
- imports.wbg.__wbg_bindint64_4f6d503abe851224 = function(arg0, arg1, arg2, arg3) {
3117
- const ret = arg0.bind_int64(arg1, arg2, arg3);
3118
- return ret;
3119
- };
3120
- imports.wbg.__wbg_binddouble_b0a91f37239ee4b0 = function(arg0, arg1, arg2, arg3) {
3121
- const ret = arg0.bind_double(arg1, arg2, arg3);
3122
- return ret;
3123
- };
3124
- imports.wbg.__wbg_bindblob_5a17f213fdf1908e = function(arg0, arg1, arg2, arg3, arg4, arg5) {
3125
- const ret = arg0.bind_blob(arg1, arg2, arg3 >>> 0, arg4, arg5);
3126
- return ret;
3127
- };
3128
- imports.wbg.__wbg_dbhandle_ab50bfd9245494b7 = function(arg0, arg1) {
3129
- const ret = arg0.db_handle(arg1);
3130
- return ret;
3131
- };
3132
- imports.wbg.__wbg_dealloc_351653c7fd6f869c = function(arg0, arg1) {
3133
- arg0.dealloc(arg1 >>> 0);
3134
- };
3135
- imports.wbg.__wbg_finalize_238aae75fb871c94 = function() { return handleError(function (arg0, arg1) {
3136
- arg0.finalize(arg1);
3137
- }, arguments) };
3138
- imports.wbg.__wbg_reset_0be27bd2c5c25e78 = function(arg0, arg1) {
3139
- const ret = arg0.reset(arg1);
3140
- return ret;
3141
- };
3142
- imports.wbg.__wbg_step_a58b1066c566c122 = function(arg0, arg1) {
3143
- const ret = arg0.step(arg1);
3144
- return ret;
3145
- };
3146
- imports.wbg.__wbg_columncount_a12965551470fb42 = function(arg0, arg1) {
3147
- const ret = arg0.column_count(arg1);
3148
- return ret;
3149
- };
3150
- imports.wbg.__wbg_columnvalue_49c1ea5d732bde1c = function(arg0, arg1, arg2) {
3151
- const ret = arg0.column_value(arg1, arg2);
3152
- return ret;
3153
- };
3154
- imports.wbg.__wbg_capi_ca06542c83b93175 = function(arg0) {
3155
- const ret = arg0.capi;
3156
- return ret;
3157
- };
3158
- imports.wbg.__wbg_SQLITECONSTRAINTCHECK_7b54e6702b2e57ba = function(arg0) {
3159
- const ret = arg0.SQLITE_CONSTRAINT_CHECK;
3160
- return ret;
3161
- };
3162
- imports.wbg.__wbg_SQLITEROW_a21779e78155c8ad = function(arg0) {
3163
- const ret = arg0.SQLITE_ROW;
3164
- return ret;
3165
- };
3166
- imports.wbg.__wbg_SQLITEPREPAREPERSISTENT_d81d553ffa5c038c = function(arg0) {
3167
- const ret = arg0.SQLITE_PREPARE_PERSISTENT;
3168
- return ret;
3169
- };
3170
- imports.wbg.__wbg_SQLITEINTEGER_9031dce8e01c166c = function(arg0) {
3171
- const ret = arg0.SQLITE_INTEGER;
3172
- return ret;
3173
- };
3174
- imports.wbg.__wbg_SQLITEDONE_fbfe18ce23a3b6da = function(arg0) {
3175
- const ret = arg0.SQLITE_DONE;
3176
- return ret;
3177
- };
3178
- imports.wbg.__wbg_SQLITETEXT_727e78d48f532f23 = function(arg0) {
3179
- const ret = arg0.SQLITE_TEXT;
3180
- return ret;
3181
- };
3182
- imports.wbg.__wbg_SQLITENULL_00f5eb33b5b89690 = function(arg0) {
3183
- const ret = arg0.SQLITE_NULL;
3184
- return ret;
3185
- };
3186
- imports.wbg.__wbg_SQLITECONSTRAINTUNIQUE_1dea04a977c1e377 = function(arg0) {
3187
- const ret = arg0.SQLITE_CONSTRAINT_UNIQUE;
3188
- return ret;
3189
- };
3190
- imports.wbg.__wbg_SQLITECONSTRAINTPRIMARYKEY_3e2ad26d848575a2 = function(arg0) {
3191
- const ret = arg0.SQLITE_CONSTRAINT_PRIMARYKEY;
3192
- return ret;
3193
- };
3194
- imports.wbg.__wbg_SQLITEBLOB_394b61ff6fc173a6 = function(arg0) {
3195
- const ret = arg0.SQLITE_BLOB;
3196
- return ret;
3197
- };
3198
- imports.wbg.__wbg_SQLITESTATIC_b98299c993e94d35 = function(arg0) {
3199
- const ret = arg0.SQLITE_STATIC;
3200
- return ret;
3201
- };
3202
- imports.wbg.__wbg_SQLITEFLOAT_e0da134da12d25d0 = function(arg0) {
3203
- const ret = arg0.SQLITE_FLOAT;
3204
- return ret;
3205
- };
3206
- imports.wbg.__wbg_SQLITECONSTRAINTNOTNULL_0f87885933517ad3 = function(arg0) {
3207
- const ret = arg0.SQLITE_CONSTRAINT_NOTNULL;
3208
- return ret;
3209
- };
3210
- imports.wbg.__wbg_SQLITEOK_2d09a4e691645e98 = function(arg0) {
3211
- const ret = arg0.SQLITE_OK;
3212
- return ret;
3213
- };
3214
- imports.wbg.__wbg_SQLITECONSTRAINTFOREIGNKEY_741a343b3482effc = function(arg0) {
3215
- const ret = arg0.SQLITE_CONSTRAINT_FOREIGNKEY;
3216
- return ret;
3217
- };
3218
- imports.wbg.__wbg_SQLITEOPENREADWRITE_a83b4615e4d0f3ab = function(arg0) {
3219
- const ret = arg0.SQLITE_OPEN_READWRITE;
3220
- return ret;
3221
- };
3222
- imports.wbg.__wbg_SQLITEOPENCREATE_9de5b9e000c4b114 = function(arg0) {
3223
- const ret = arg0.SQLITE_OPEN_CREATE;
3224
- return ret;
3225
- };
3226
- imports.wbg.__wbg_SQLITEOPENURI_553652ff6391f5f3 = function(arg0) {
3227
- const ret = arg0.SQLITE_OPEN_URI;
3228
- return ret;
3229
- };
3230
- imports.wbg.__wbg_changes_ad25c054690f6c2c = function(arg0, arg1) {
3231
- const ret = arg0.changes(arg1);
3232
- return ret;
3233
- };
3234
- imports.wbg.__wbg_close_91b1f36e8a68490f = function(arg0, arg1) {
3235
- const ret = arg0.close(arg1);
3236
- return ret;
3237
- };
3238
- imports.wbg.__wbindgen_link_42e73067c99cbdba = function(arg0) {
3239
- const ret = new URL('snippets/diesel-wasm-sqlite-36e85657e47f3be3/src/js/sqlite3-opfs-async-proxy.js', import.meta.url).toString();
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_heap8u_e5e9645d146c39a3 = function(arg0) {
3246
- const ret = arg0.heap8u();
3247
- return ret;
3248
- };
3249
- imports.wbg.__wbg_new_a4c99de148de264c = function(arg0) {
3250
- const ret = new SQLite(arg0);
3251
- return ret;
3252
- };
3253
- imports.wbg.__wbg_version_5f48815bb1d8b346 = function(arg0) {
3254
- const ret = arg0.version();
3255
- return ret;
3256
- };
3257
- imports.wbg.__wbg_filename_144613ea2a1b3e89 = function(arg0, arg1, arg2, arg3, arg4) {
3258
- let deferred0_0;
3259
- let deferred0_1;
3260
- try {
3261
- deferred0_0 = arg3;
3262
- deferred0_1 = arg4;
3263
- const ret = arg1.filename(arg2, getStringFromWasm0(arg3, arg4));
3264
- const ptr2 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3265
- const len2 = WASM_VECTOR_LEN;
3266
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len2, true);
3267
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr2, true);
3268
- } finally {
3269
- wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
3270
- }
3271
- };
3272
- imports.wbg.__wbg_errstr_bb38008691932700 = function(arg0, arg1, arg2) {
3273
- const ret = arg1.errstr(arg2);
3274
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3275
- const len1 = WASM_VECTOR_LEN;
3276
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3277
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3278
- };
3279
- imports.wbg.__wbg_errmsg_89bcbfbe76b14cf4 = function(arg0, arg1, arg2) {
3280
- const ret = arg1.errmsg(arg2);
3281
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3282
- const len1 = WASM_VECTOR_LEN;
3283
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3284
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3285
- };
3286
- imports.wbg.__wbg_extendederrcode_2b31e0b528da9bbb = function(arg0, arg1) {
3287
- const ret = arg0.extended_errcode(arg1);
3288
- return ret;
3289
- };
3290
- imports.wbg.__wbg_valuedup_b0df8ddba19f1b98 = function(arg0, arg1) {
3291
- const ret = arg0.value_dup(arg1 >>> 0);
3292
- return ret;
3293
- };
3294
- imports.wbg.__wbg_valueblob_3f74b376b132f8b5 = function(arg0, arg1) {
3295
- const ret = arg0.value_blob(arg1 >>> 0);
3296
- return ret;
3297
- };
3298
- imports.wbg.__wbg_valuebytes_4694dcd27c345742 = function(arg0, arg1) {
3299
- const ret = arg0.value_bytes(arg1 >>> 0);
3300
- return ret;
3301
- };
3302
- imports.wbg.__wbg_valuefree_bb58ed981c1df68f = function(arg0, arg1) {
3303
- arg0.value_free(arg1 >>> 0);
3304
- };
3305
- imports.wbg.__wbg_valueint_69cbd5211d849273 = function(arg0, arg1) {
3306
- const ret = arg0.value_int(arg1 >>> 0);
3307
- return ret;
3308
- };
3309
- imports.wbg.__wbg_valueint64_64bd43aa58b87911 = function(arg0, arg1) {
3310
- const ret = arg0.value_int64(arg1 >>> 0);
3311
- return ret;
3312
- };
3313
- imports.wbg.__wbg_valuetext_92c3345d82a9ca0c = function(arg0, arg1, arg2) {
3314
- const ret = arg1.value_text(arg2 >>> 0);
3315
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3316
- const len1 = WASM_VECTOR_LEN;
3317
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3318
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3319
- };
3320
- imports.wbg.__wbg_valuetype_cfed2bfc3d2b9ffe = function(arg0, arg1) {
3321
- const ret = arg0.value_type(arg1 >>> 0);
3322
- return ret;
3323
- };
3324
- imports.wbg.__wbg_open_d821a8bd5c12df12 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
3325
- const ret = arg0.open(getStringFromWasm0(arg1, arg2), arg3 === 0 ? undefined : arg4);
3326
- return ret;
3327
- }, arguments) };
3328
- imports.wbg.__wbg_exec_06c0a88959122598 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
3329
- arg0.exec(arg1, getStringFromWasm0(arg2, arg3));
3330
- }, arguments) };
3331
- imports.wbg.__wbg_columnname_f60d10fff22a7705 = function(arg0, arg1, arg2, arg3) {
3332
- const ret = arg1.column_name(arg2, arg3);
3333
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3334
- const len1 = WASM_VECTOR_LEN;
3335
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3336
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3337
- };
3338
- imports.wbg.__wbg_registerdieselsqlfunctions_af501c8fa4b13f74 = function() { return handleError(function (arg0, arg1) {
3339
- arg0.register_diesel_sql_functions(arg1);
3340
- }, arguments) };
3341
- imports.wbg.__wbg_allocCString_42f27a0af479f779 = function(arg0, arg1, arg2) {
3342
- let deferred0_0;
3343
- let deferred0_1;
3344
- try {
3345
- deferred0_0 = arg1;
3346
- deferred0_1 = arg2;
3347
- const ret = arg0.allocCString(getStringFromWasm0(arg1, arg2));
3136
+ imports.wbg.__wbg_alloc_9ba78eb5db297dec = function(arg0) {
3137
+ const ret = arg0.alloc;
3348
3138
  return ret;
3349
- } finally {
3350
- wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
3351
- }
3352
- };
3353
- imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
3354
- const ret = arg0 == arg1;
3355
- return ret;
3356
- };
3357
- imports.wbg.__wbindgen_boolean_get = function(arg0) {
3358
- const v = arg0;
3359
- const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
3360
- return ret;
3361
- };
3362
- imports.wbg.__wbg_String_b9412f8799faab3e = function(arg0, arg1) {
3363
- const ret = String(arg1);
3364
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3365
- const len1 = WASM_VECTOR_LEN;
3366
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3367
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3368
- };
3369
- imports.wbg.__wbg_getwithrefkey_edc2c8960f0f1191 = function(arg0, arg1) {
3370
- const ret = arg0[arg1];
3371
- return ret;
3372
- };
3373
- imports.wbg.__wbg_set_f975102236d3c502 = function(arg0, arg1, arg2) {
3374
- arg0[arg1] = arg2;
3375
- };
3376
- imports.wbg.__wbg_fetch_9b133f5ec268a7b8 = typeof fetch == 'function' ? fetch : notDefined('fetch');
3377
- imports.wbg.__wbg_queueMicrotask_848aa4969108a57e = function(arg0) {
3378
- const ret = arg0.queueMicrotask;
3379
- return ret;
3380
- };
3381
- imports.wbg.__wbindgen_is_function = function(arg0) {
3382
- const ret = typeof(arg0) === 'function';
3383
- return ret;
3384
- };
3385
- imports.wbg.__wbg_queueMicrotask_c5419c06eab41e73 = typeof queueMicrotask == 'function' ? queueMicrotask : notDefined('queueMicrotask');
3386
- imports.wbg.__wbg_crypto_1d1f22824a6a080c = function(arg0) {
3387
- const ret = arg0.crypto;
3388
- return ret;
3389
- };
3390
- imports.wbg.__wbg_process_4a72847cc503995b = function(arg0) {
3391
- const ret = arg0.process;
3392
- return ret;
3393
- };
3394
- imports.wbg.__wbg_versions_f686565e586dd935 = function(arg0) {
3395
- const ret = arg0.versions;
3396
- return ret;
3397
- };
3398
- imports.wbg.__wbg_node_104a2ff8d6ea03a2 = function(arg0) {
3399
- const ret = arg0.node;
3400
- return ret;
3401
- };
3402
- imports.wbg.__wbindgen_is_string = function(arg0) {
3403
- const ret = typeof(arg0) === 'string';
3404
- return ret;
3405
- };
3406
- imports.wbg.__wbg_require_cca90b1a94a0255b = function() { return handleError(function () {
3407
- const ret = module.require;
3408
- return ret;
3409
- }, arguments) };
3410
- imports.wbg.__wbg_msCrypto_eb05e62b530a1508 = function(arg0) {
3411
- const ret = arg0.msCrypto;
3412
- return ret;
3413
- };
3414
- imports.wbg.__wbg_getRandomValues_3aa56aa6edec874c = function() { return handleError(function (arg0, arg1) {
3415
- arg0.getRandomValues(arg1);
3416
- }, arguments) };
3417
- imports.wbg.__wbg_randomFillSync_5c9c955aa56b6049 = function() { return handleError(function (arg0, arg1) {
3418
- arg0.randomFillSync(arg1);
3419
- }, arguments) };
3420
- imports.wbg.__wbg_debug_69675dd374e2c249 = typeof console.debug == 'function' ? console.debug : notDefined('console.debug');
3421
- imports.wbg.__wbg_debug_a0b6c2c5ac9a4bfd = typeof console.debug == 'function' ? console.debug : notDefined('console.debug');
3422
- imports.wbg.__wbg_error_53abcd6a461f73d8 = typeof console.error == 'function' ? console.error : notDefined('console.error');
3423
- imports.wbg.__wbg_error_4d17c5bb1ca90c94 = typeof console.error == 'function' ? console.error : notDefined('console.error');
3424
- imports.wbg.__wbg_info_f073b719c8035bbf = typeof console.info == 'function' ? console.info : notDefined('console.info');
3425
- imports.wbg.__wbg_info_1c7fba7da21072d1 = typeof console.info == 'function' ? console.info : notDefined('console.info');
3426
- imports.wbg.__wbg_warn_41503a1c2194de89 = typeof console.warn == 'function' ? console.warn : notDefined('console.warn');
3427
- imports.wbg.__wbg_warn_2e2787d40aad9a81 = typeof console.warn == 'function' ? console.warn : notDefined('console.warn');
3428
- imports.wbg.__wbg_fetch_1fdc4448ed9eec00 = function(arg0, arg1) {
3429
- const ret = arg0.fetch(arg1);
3430
- return ret;
3431
- };
3432
- imports.wbg.__wbg_close_cfd08d9cf9f36856 = function() { return handleError(function (arg0) {
3433
- arg0.close();
3434
- }, arguments) };
3435
- imports.wbg.__wbg_enqueue_e693a6fb4f3261c1 = function() { return handleError(function (arg0, arg1) {
3436
- arg0.enqueue(arg1);
3437
- }, arguments) };
3438
- imports.wbg.__wbg_instanceof_Response_3c0e210a57ff751d = function(arg0) {
3439
- let result;
3440
- try {
3441
- result = arg0 instanceof Response;
3442
- } catch (_) {
3443
- result = false;
3444
- }
3445
- const ret = result;
3446
- return ret;
3447
- };
3448
- imports.wbg.__wbg_url_58af972663531d16 = function(arg0, arg1) {
3449
- const ret = arg1.url;
3450
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3451
- const len1 = WASM_VECTOR_LEN;
3452
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3453
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3454
- };
3455
- imports.wbg.__wbg_status_5f4e900d22140a18 = function(arg0) {
3456
- const ret = arg0.status;
3457
- return ret;
3458
- };
3459
- imports.wbg.__wbg_headers_1b9bf90c73fae600 = function(arg0) {
3460
- const ret = arg0.headers;
3461
- return ret;
3462
- };
3463
- imports.wbg.__wbg_arrayBuffer_144729e09879650e = function() { return handleError(function (arg0) {
3464
- const ret = arg0.arrayBuffer();
3465
- return ret;
3466
- }, arguments) };
3467
- imports.wbg.__wbg_byobRequest_86ac467c94924d3c = function(arg0) {
3468
- const ret = arg0.byobRequest;
3469
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
3470
- };
3471
- imports.wbg.__wbg_close_7cda9dd901230214 = function() { return handleError(function (arg0) {
3472
- arg0.close();
3473
- }, arguments) };
3474
- imports.wbg.__wbg_signal_9acfcec9e7dffc22 = function(arg0) {
3475
- const ret = arg0.signal;
3476
- return ret;
3477
- };
3478
- imports.wbg.__wbg_new_75169ae5a9683c55 = function() { return handleError(function () {
3479
- const ret = new AbortController();
3480
- return ret;
3481
- }, arguments) };
3482
- imports.wbg.__wbg_abort_c57daab47a6c1215 = function(arg0) {
3483
- arg0.abort();
3484
- };
3485
- imports.wbg.__wbg_view_de0e81c5c00d2129 = function(arg0) {
3486
- const ret = arg0.view;
3487
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
3488
- };
3489
- imports.wbg.__wbg_respond_ffb6928cd9b79c32 = function() { return handleError(function (arg0, arg1) {
3490
- arg0.respond(arg1 >>> 0);
3491
- }, arguments) };
3492
- imports.wbg.__wbg_newwithstrandinit_4b92c89af0a8e383 = function() { return handleError(function (arg0, arg1, arg2) {
3493
- const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
3494
- return ret;
3495
- }, arguments) };
3496
- imports.wbg.__wbg_setbody_aa8b691bec428bf4 = function(arg0, arg1) {
3497
- arg0.body = arg1;
3498
- };
3499
- imports.wbg.__wbg_setcredentials_a4e661320cdb9738 = function(arg0, arg1) {
3500
- arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
3501
- };
3502
- imports.wbg.__wbg_setheaders_f5205d36e423a544 = function(arg0, arg1) {
3503
- arg0.headers = arg1;
3504
- };
3505
- imports.wbg.__wbg_setmethod_ce2da76000b02f6a = function(arg0, arg1, arg2) {
3506
- arg0.method = getStringFromWasm0(arg1, arg2);
3507
- };
3508
- imports.wbg.__wbg_setmode_4919fd636102c586 = function(arg0, arg1) {
3509
- arg0.mode = __wbindgen_enum_RequestMode[arg1];
3510
- };
3511
- imports.wbg.__wbg_setsignal_812ccb8269a7fd90 = function(arg0, arg1) {
3512
- arg0.signal = arg1;
3513
- };
3514
- imports.wbg.__wbg_new_a9ae04a5200606a5 = function() { return handleError(function () {
3515
- const ret = new Headers();
3516
- return ret;
3517
- }, arguments) };
3518
- imports.wbg.__wbg_append_8b3e7f74a47ea7d5 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
3519
- arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
3520
- }, arguments) };
3521
- imports.wbg.__wbg_get_5419cf6b954aa11d = function(arg0, arg1) {
3522
- const ret = arg0[arg1 >>> 0];
3523
- return ret;
3524
- };
3525
- imports.wbg.__wbg_length_f217bbbf7e8e4df4 = function(arg0) {
3526
- const ret = arg0.length;
3527
- return ret;
3528
- };
3529
- imports.wbg.__wbg_new_034f913e7636e987 = function() {
3530
- const ret = new Array();
3531
- return ret;
3532
- };
3533
- imports.wbg.__wbg_newnoargs_1ede4bf2ebbaaf43 = function(arg0, arg1) {
3534
- const ret = new Function(getStringFromWasm0(arg0, arg1));
3535
- return ret;
3536
- };
3537
- imports.wbg.__wbg_new_7a87a0376e40533b = function() {
3538
- const ret = new Map();
3539
- return ret;
3540
- };
3541
- imports.wbg.__wbg_next_13b477da1eaa3897 = function(arg0) {
3542
- const ret = arg0.next;
3543
- return ret;
3544
- };
3545
- imports.wbg.__wbg_next_b06e115d1b01e10b = function() { return handleError(function (arg0) {
3546
- const ret = arg0.next();
3547
- return ret;
3548
- }, arguments) };
3549
- imports.wbg.__wbg_done_983b5ffcaec8c583 = function(arg0) {
3550
- const ret = arg0.done;
3551
- return ret;
3552
- };
3553
- imports.wbg.__wbg_value_2ab8a198c834c26a = function(arg0) {
3554
- const ret = arg0.value;
3555
- return ret;
3556
- };
3557
- imports.wbg.__wbg_iterator_695d699a44d6234c = function() {
3558
- const ret = Symbol.iterator;
3559
- return ret;
3560
- };
3561
- imports.wbg.__wbg_get_ef828680c64da212 = function() { return handleError(function (arg0, arg1) {
3562
- const ret = Reflect.get(arg0, arg1);
3563
- return ret;
3564
- }, arguments) };
3565
- imports.wbg.__wbg_call_a9ef466721e824f2 = function() { return handleError(function (arg0, arg1) {
3566
- const ret = arg0.call(arg1);
3567
- return ret;
3568
- }, arguments) };
3569
- imports.wbg.__wbg_new_e69b5f66fda8f13c = function() {
3570
- const ret = new Object();
3571
- return ret;
3572
- };
3573
- imports.wbg.__wbg_self_bf91bf94d9e04084 = function() { return handleError(function () {
3574
- const ret = self.self;
3575
- return ret;
3576
- }, arguments) };
3577
- imports.wbg.__wbg_window_52dd9f07d03fd5f8 = function() { return handleError(function () {
3578
- const ret = window.window;
3579
- return ret;
3580
- }, arguments) };
3581
- imports.wbg.__wbg_globalThis_05c129bf37fcf1be = function() { return handleError(function () {
3582
- const ret = globalThis.globalThis;
3583
- return ret;
3584
- }, arguments) };
3585
- imports.wbg.__wbg_global_3eca19bb09e9c484 = function() { return handleError(function () {
3586
- const ret = global.global;
3587
- return ret;
3588
- }, arguments) };
3589
- imports.wbg.__wbg_set_425e70f7c64ac962 = function(arg0, arg1, arg2) {
3590
- arg0[arg1 >>> 0] = arg2;
3591
- };
3592
- imports.wbg.__wbg_push_36cf4d81d7da33d1 = function(arg0, arg1) {
3593
- const ret = arg0.push(arg1);
3594
- return ret;
3595
- };
3596
- imports.wbg.__wbg_instanceof_ArrayBuffer_74945570b4a62ec7 = function(arg0) {
3597
- let result;
3598
- try {
3599
- result = arg0 instanceof ArrayBuffer;
3600
- } catch (_) {
3601
- result = false;
3602
- }
3603
- const ret = result;
3604
- return ret;
3605
- };
3606
- imports.wbg.__wbg_new_70a2f23d1565c04c = function(arg0, arg1) {
3607
- const ret = new Error(getStringFromWasm0(arg0, arg1));
3608
- return ret;
3609
- };
3610
- imports.wbg.__wbg_call_3bfa248576352471 = function() { return handleError(function (arg0, arg1, arg2) {
3611
- const ret = arg0.call(arg1, arg2);
3612
- return ret;
3613
- }, arguments) };
3614
- imports.wbg.__wbg_set_277a63e77c89279f = function(arg0, arg1, arg2) {
3615
- const ret = arg0.set(arg1, arg2);
3616
- return ret;
3617
- };
3618
- imports.wbg.__wbg_isSafeInteger_b9dff570f01a9100 = function(arg0) {
3619
- const ret = Number.isSafeInteger(arg0);
3620
- return ret;
3621
- };
3622
- imports.wbg.__wbg_now_70af4fe37a792251 = function() {
3623
- const ret = Date.now();
3624
- return ret;
3625
- };
3626
- imports.wbg.__wbg_create_70ef5302cb22a5c4 = function(arg0) {
3627
- const ret = Object.create(arg0);
3628
- return ret;
3629
- };
3630
- imports.wbg.__wbg_entries_c02034de337d3ee2 = function(arg0) {
3631
- const ret = Object.entries(arg0);
3632
- return ret;
3633
- };
3634
- imports.wbg.__wbg_new_1073970097e5a420 = function(arg0, arg1) {
3635
- try {
3636
- var state0 = {a: arg0, b: arg1};
3637
- var cb0 = (arg0, arg1) => {
3638
- const a = state0.a;
3639
- state0.a = 0;
3640
- try {
3641
- return __wbg_adapter_567(a, state0.b, arg0, arg1);
3642
- } finally {
3643
- state0.a = a;
3644
- }
3645
- };
3646
- const ret = new Promise(cb0);
3139
+ };
3140
+ imports.wbg.__wbg_append_72d1635ad8643998 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
3141
+ arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
3142
+ }, arguments) };
3143
+ imports.wbg.__wbg_arrayBuffer_d0ca2ad8bda0039b = function() { return handleError(function (arg0) {
3144
+ const ret = arg0.arrayBuffer();
3647
3145
  return ret;
3648
- } finally {
3649
- state0.a = state0.b = 0;
3650
- }
3651
- };
3652
- imports.wbg.__wbg_resolve_0aad7c1484731c99 = function(arg0) {
3653
- const ret = Promise.resolve(arg0);
3654
- return ret;
3655
- };
3656
- imports.wbg.__wbg_then_748f75edfb032440 = function(arg0, arg1) {
3657
- const ret = arg0.then(arg1);
3658
- return ret;
3659
- };
3660
- imports.wbg.__wbg_then_4866a7d9f55d8f3e = function(arg0, arg1, arg2) {
3661
- const ret = arg0.then(arg1, arg2);
3662
- return ret;
3663
- };
3664
- imports.wbg.__wbg_buffer_ccaed51a635d8a2d = function(arg0) {
3665
- const ret = arg0.buffer;
3666
- return ret;
3667
- };
3668
- imports.wbg.__wbg_newwithbyteoffsetandlength_7e3eb787208af730 = function(arg0, arg1, arg2) {
3669
- const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
3670
- return ret;
3671
- };
3672
- imports.wbg.__wbg_new_fec2611eb9180f95 = function(arg0) {
3673
- const ret = new Uint8Array(arg0);
3674
- return ret;
3675
- };
3676
- imports.wbg.__wbg_set_ec2fcf81bc573fd9 = function(arg0, arg1, arg2) {
3677
- arg0.set(arg1, arg2 >>> 0);
3678
- };
3679
- imports.wbg.__wbg_length_9254c4bd3b9f23c4 = function(arg0) {
3680
- const ret = arg0.length;
3681
- return ret;
3682
- };
3683
- imports.wbg.__wbg_instanceof_Uint8Array_df0761410414ef36 = function(arg0) {
3684
- let result;
3685
- try {
3686
- result = arg0 instanceof Uint8Array;
3687
- } catch (_) {
3688
- result = false;
3689
- }
3690
- const ret = result;
3691
- return ret;
3692
- };
3693
- imports.wbg.__wbg_newwithlength_76462a666eca145f = function(arg0) {
3694
- const ret = new Uint8Array(arg0 >>> 0);
3695
- return ret;
3696
- };
3697
- imports.wbg.__wbg_buffer_95102df5554646dc = function(arg0) {
3698
- const ret = arg0.buffer;
3699
- return ret;
3700
- };
3701
- imports.wbg.__wbg_subarray_975a06f9dbd16995 = function(arg0, arg1, arg2) {
3702
- const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
3703
- return ret;
3704
- };
3705
- imports.wbg.__wbg_byteLength_5d623ba3d92a3a9c = function(arg0) {
3706
- const ret = arg0.byteLength;
3707
- return ret;
3708
- };
3709
- imports.wbg.__wbg_byteOffset_ec0928143c619cd7 = function(arg0) {
3710
- const ret = arg0.byteOffset;
3711
- return ret;
3712
- };
3713
- imports.wbg.__wbg_has_bd717f25f195f23d = function() { return handleError(function (arg0, arg1) {
3714
- const ret = Reflect.has(arg0, arg1);
3715
- return ret;
3716
- }, arguments) };
3717
- imports.wbg.__wbg_set_e864d25d9b399c9f = function() { return handleError(function (arg0, arg1, arg2) {
3718
- const ret = Reflect.set(arg0, arg1, arg2);
3719
- return ret;
3720
- }, arguments) };
3721
- imports.wbg.__wbg_new_fddd2773b9888ac9 = function() { return handleError(function (arg0) {
3722
- const ret = new WebAssembly.Memory(arg0);
3723
- return ret;
3724
- }, arguments) };
3725
- imports.wbg.__wbg_stringify_eead5648c09faaf8 = function() { return handleError(function (arg0) {
3726
- const ret = JSON.stringify(arg0);
3727
- return ret;
3728
- }, arguments) };
3729
- imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
3730
- const ret = debugString(arg1);
3731
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3732
- const len1 = WASM_VECTOR_LEN;
3733
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3734
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3735
- };
3736
- imports.wbg.__wbindgen_throw = function(arg0, arg1) {
3737
- throw new Error(getStringFromWasm0(arg0, arg1));
3738
- };
3739
- imports.wbg.__wbindgen_memory = function() {
3740
- const ret = wasm.memory;
3741
- return ret;
3742
- };
3743
- imports.wbg.__wbindgen_closure_wrapper7534 = function(arg0, arg1, arg2) {
3744
- const ret = makeMutClosure(arg0, arg1, 1807, __wbg_adapter_46);
3745
- return ret;
3746
- };
3747
- imports.wbg.__wbindgen_closure_wrapper10085 = function(arg0, arg1, arg2) {
3748
- const ret = makeMutClosure(arg0, arg1, 2321, __wbg_adapter_49);
3749
- return ret;
3750
- };
3751
- imports.wbg.__wbindgen_init_externref_table = function() {
3752
- const table = wasm.__wbindgen_export_2;
3753
- const offset = table.grow(4);
3754
- table.set(0, undefined);
3755
- table.set(offset + 0, undefined);
3756
- table.set(offset + 1, null);
3757
- table.set(offset + 2, true);
3758
- table.set(offset + 3, false);
3759
- ;
3760
- };
3761
-
3762
- return imports;
3146
+ }, arguments) };
3147
+ imports.wbg.__wbg_bindblob_2d3842f5d0645344 = function(arg0, arg1, arg2, arg3, arg4, arg5) {
3148
+ const ret = arg0.bind_blob(arg1, arg2, arg3 >>> 0, arg4, arg5);
3149
+ return ret;
3150
+ };
3151
+ imports.wbg.__wbg_binddouble_652de2eaf823b755 = function(arg0, arg1, arg2, arg3) {
3152
+ const ret = arg0.bind_double(arg1, arg2, arg3);
3153
+ return ret;
3154
+ };
3155
+ imports.wbg.__wbg_bindint64_ab19debe2f3b2a51 = function(arg0, arg1, arg2, arg3) {
3156
+ const ret = arg0.bind_int64(arg1, arg2, arg3);
3157
+ return ret;
3158
+ };
3159
+ imports.wbg.__wbg_bindint_d6ed3d7de087f452 = function(arg0, arg1, arg2, arg3) {
3160
+ const ret = arg0.bind_int(arg1, arg2, arg3);
3161
+ return ret;
3162
+ };
3163
+ imports.wbg.__wbg_bindnull_db900eeb1a7f0781 = function(arg0, arg1, arg2) {
3164
+ const ret = arg0.bind_null(arg1, arg2);
3165
+ return ret;
3166
+ };
3167
+ imports.wbg.__wbg_bindtext_d7063f12780d715d = function(arg0, arg1, arg2, arg3, arg4, arg5) {
3168
+ const ret = arg0.bind_text(arg1, arg2, arg3 >>> 0, arg4, arg5);
3169
+ return ret;
3170
+ };
3171
+ imports.wbg.__wbg_buffer_61b7ce01341d7f88 = function(arg0) {
3172
+ const ret = arg0.buffer;
3173
+ return ret;
3174
+ };
3175
+ imports.wbg.__wbg_buffer_dc5dbfa8d5fb28cf = function(arg0) {
3176
+ const ret = arg0.buffer;
3177
+ return ret;
3178
+ };
3179
+ imports.wbg.__wbg_byobRequest_1fc36a0c1e98611b = function(arg0) {
3180
+ const ret = arg0.byobRequest;
3181
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
3182
+ };
3183
+ imports.wbg.__wbg_byteLength_1b2d953758afc500 = function(arg0) {
3184
+ const ret = arg0.byteLength;
3185
+ return ret;
3186
+ };
3187
+ imports.wbg.__wbg_byteOffset_7ef484c6c1d473e9 = function(arg0) {
3188
+ const ret = arg0.byteOffset;
3189
+ return ret;
3190
+ };
3191
+ imports.wbg.__wbg_call_500db948e69c7330 = function() { return handleError(function (arg0, arg1, arg2) {
3192
+ const ret = arg0.call(arg1, arg2);
3193
+ return ret;
3194
+ }, arguments) };
3195
+ imports.wbg.__wbg_call_b0d8e36992d9900d = function() { return handleError(function (arg0, arg1) {
3196
+ const ret = arg0.call(arg1);
3197
+ return ret;
3198
+ }, arguments) };
3199
+ imports.wbg.__wbg_capi_b2cd9cd3325d1164 = function(arg0) {
3200
+ const ret = arg0.capi;
3201
+ return ret;
3202
+ };
3203
+ imports.wbg.__wbg_changes_8f2cadd92748538c = function(arg0, arg1) {
3204
+ const ret = arg0.changes(arg1);
3205
+ return ret;
3206
+ };
3207
+ imports.wbg.__wbg_client_new = function(arg0) {
3208
+ const ret = Client.__wrap(arg0);
3209
+ return ret;
3210
+ };
3211
+ imports.wbg.__wbg_close_061ae3ddcd90d5b9 = function(arg0, arg1) {
3212
+ const ret = arg0.close(arg1);
3213
+ return ret;
3214
+ };
3215
+ imports.wbg.__wbg_close_59511bda900d85a8 = function() { return handleError(function (arg0) {
3216
+ arg0.close();
3217
+ }, arguments) };
3218
+ imports.wbg.__wbg_close_65cb23eb0316f916 = function() { return handleError(function (arg0) {
3219
+ arg0.close();
3220
+ }, arguments) };
3221
+ imports.wbg.__wbg_columncount_328a9b2639ca5c51 = function(arg0, arg1) {
3222
+ const ret = arg0.column_count(arg1);
3223
+ return ret;
3224
+ };
3225
+ imports.wbg.__wbg_columnname_5421a5f0dfa3eff5 = function(arg0, arg1, arg2, arg3) {
3226
+ const ret = arg1.column_name(arg2, arg3);
3227
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3228
+ const len1 = WASM_VECTOR_LEN;
3229
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3230
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3231
+ };
3232
+ imports.wbg.__wbg_columnvalue_88aa9511cf9c6770 = function(arg0, arg1, arg2) {
3233
+ const ret = arg0.column_value(arg1, arg2);
3234
+ return ret;
3235
+ };
3236
+ imports.wbg.__wbg_consent_unwrap = function(arg0) {
3237
+ const ret = Consent.__unwrap(arg0);
3238
+ return ret;
3239
+ };
3240
+ imports.wbg.__wbg_conversation_new = function(arg0) {
3241
+ const ret = Conversation.__wrap(arg0);
3242
+ return ret;
3243
+ };
3244
+ imports.wbg.__wbg_create_861381d799b454bc = function(arg0) {
3245
+ const ret = Object.create(arg0);
3246
+ return ret;
3247
+ };
3248
+ imports.wbg.__wbg_crypto_ed58b8e10a292839 = function(arg0) {
3249
+ const ret = arg0.crypto;
3250
+ return ret;
3251
+ };
3252
+ imports.wbg.__wbg_dbhandle_4a844bc7b495c9bd = function(arg0, arg1) {
3253
+ const ret = arg0.db_handle(arg1);
3254
+ return ret;
3255
+ };
3256
+ imports.wbg.__wbg_dealloc_83aa46cc9ca6df71 = function(arg0, arg1) {
3257
+ arg0.dealloc(arg1 >>> 0);
3258
+ };
3259
+ imports.wbg.__wbg_debug_156ca727dbc3150f = function(arg0) {
3260
+ console.debug(arg0);
3261
+ };
3262
+ imports.wbg.__wbg_debug_19114f11037e4658 = function(arg0, arg1, arg2, arg3) {
3263
+ console.debug(arg0, arg1, arg2, arg3);
3264
+ };
3265
+ imports.wbg.__wbg_done_f22c1561fa919baa = function(arg0) {
3266
+ const ret = arg0.done;
3267
+ return ret;
3268
+ };
3269
+ imports.wbg.__wbg_enqueue_3997a55771b5212a = function() { return handleError(function (arg0, arg1) {
3270
+ arg0.enqueue(arg1);
3271
+ }, arguments) };
3272
+ imports.wbg.__wbg_entries_4f2bb9b0d701c0f6 = function(arg0) {
3273
+ const ret = Object.entries(arg0);
3274
+ return ret;
3275
+ };
3276
+ imports.wbg.__wbg_errmsg_79ea90bf7680bb35 = function(arg0, arg1, arg2) {
3277
+ const ret = arg1.errmsg(arg2);
3278
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3279
+ const len1 = WASM_VECTOR_LEN;
3280
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3281
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3282
+ };
3283
+ imports.wbg.__wbg_error_483d659117b6f3f6 = function(arg0, arg1, arg2, arg3) {
3284
+ console.error(arg0, arg1, arg2, arg3);
3285
+ };
3286
+ imports.wbg.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
3287
+ let deferred0_0;
3288
+ let deferred0_1;
3289
+ try {
3290
+ deferred0_0 = arg0;
3291
+ deferred0_1 = arg1;
3292
+ console.error(getStringFromWasm0(arg0, arg1));
3293
+ } finally {
3294
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
3295
+ }
3296
+ };
3297
+ imports.wbg.__wbg_error_fab41a42d22bf2bc = function(arg0) {
3298
+ console.error(arg0);
3299
+ };
3300
+ imports.wbg.__wbg_errstr_503ebc5fc9ad1b72 = function(arg0, arg1, arg2) {
3301
+ const ret = arg1.errstr(arg2);
3302
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3303
+ const len1 = WASM_VECTOR_LEN;
3304
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3305
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3306
+ };
3307
+ imports.wbg.__wbg_exec_fd553de4a4a4f848 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
3308
+ arg0.exec(arg1, getStringFromWasm0(arg2, arg3));
3309
+ }, arguments) };
3310
+ imports.wbg.__wbg_extendederrcode_0835da64030ca814 = function(arg0, arg1) {
3311
+ const ret = arg0.extended_errcode(arg1);
3312
+ return ret;
3313
+ };
3314
+ imports.wbg.__wbg_fetch_229368eecee9d217 = function(arg0, arg1) {
3315
+ const ret = arg0.fetch(arg1);
3316
+ return ret;
3317
+ };
3318
+ imports.wbg.__wbg_fetch_b335d17f45a8b5a1 = function(arg0) {
3319
+ const ret = fetch(arg0);
3320
+ return ret;
3321
+ };
3322
+ imports.wbg.__wbg_filename_0235553cd4665109 = function(arg0, arg1, arg2, arg3, arg4) {
3323
+ let deferred0_0;
3324
+ let deferred0_1;
3325
+ try {
3326
+ deferred0_0 = arg3;
3327
+ deferred0_1 = arg4;
3328
+ const ret = arg1.filename(arg2, getStringFromWasm0(arg3, arg4));
3329
+ const ptr2 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3330
+ const len2 = WASM_VECTOR_LEN;
3331
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len2, true);
3332
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr2, true);
3333
+ } finally {
3334
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
3335
+ }
3336
+ };
3337
+ imports.wbg.__wbg_finalize_429654d82c434d47 = function() { return handleError(function (arg0, arg1) {
3338
+ arg0.finalize(arg1);
3339
+ }, arguments) };
3340
+ imports.wbg.__wbg_getRandomValues_bcb4912f16000dc4 = function() { return handleError(function (arg0, arg1) {
3341
+ arg0.getRandomValues(arg1);
3342
+ }, arguments) };
3343
+ imports.wbg.__wbg_get_9aa3dff3f0266054 = function(arg0, arg1) {
3344
+ const ret = arg0[arg1 >>> 0];
3345
+ return ret;
3346
+ };
3347
+ imports.wbg.__wbg_get_bbccf8970793c087 = function() { return handleError(function (arg0, arg1) {
3348
+ const ret = Reflect.get(arg0, arg1);
3349
+ return ret;
3350
+ }, arguments) };
3351
+ imports.wbg.__wbg_getwithrefkey_1dc361bd10053bfe = function(arg0, arg1) {
3352
+ const ret = arg0[arg1];
3353
+ return ret;
3354
+ };
3355
+ imports.wbg.__wbg_has_94c2fc1d261bbfe9 = function() { return handleError(function (arg0, arg1) {
3356
+ const ret = Reflect.has(arg0, arg1);
3357
+ return ret;
3358
+ }, arguments) };
3359
+ imports.wbg.__wbg_headers_24e3e19fe3f187c0 = function(arg0) {
3360
+ const ret = arg0.headers;
3361
+ return ret;
3362
+ };
3363
+ imports.wbg.__wbg_heap8u_253de697ab096b05 = function(arg0) {
3364
+ const ret = arg0.heap8u();
3365
+ return ret;
3366
+ };
3367
+ imports.wbg.__wbg_impl_0cd08b475fc5f858 = function(arg0, arg1) {
3368
+ const ret = arg0.impl(arg1 >>> 0);
3369
+ return ret;
3370
+ };
3371
+ imports.wbg.__wbg_inboxstate_new = function(arg0) {
3372
+ const ret = InboxState.__wrap(arg0);
3373
+ return ret;
3374
+ };
3375
+ imports.wbg.__wbg_info_18e75e6ce8a36a90 = function(arg0, arg1, arg2, arg3) {
3376
+ console.info(arg0, arg1, arg2, arg3);
3377
+ };
3378
+ imports.wbg.__wbg_info_c3044c86ae29faab = function(arg0) {
3379
+ console.info(arg0);
3380
+ };
3381
+ imports.wbg.__wbg_initmodule_694b4b8a6236ad25 = function(arg0) {
3382
+ const ret = SQLite.init_module(arg0);
3383
+ return ret;
3384
+ };
3385
+ imports.wbg.__wbg_installation_new = function(arg0) {
3386
+ const ret = Installation.__wrap(arg0);
3387
+ return ret;
3388
+ };
3389
+ imports.wbg.__wbg_installation_unwrap = function(arg0) {
3390
+ const ret = Installation.__unwrap(arg0);
3391
+ return ret;
3392
+ };
3393
+ imports.wbg.__wbg_instanceof_ArrayBuffer_670ddde44cdb2602 = function(arg0) {
3394
+ let result;
3395
+ try {
3396
+ result = arg0 instanceof ArrayBuffer;
3397
+ } catch (_) {
3398
+ result = false;
3399
+ }
3400
+ const ret = result;
3401
+ return ret;
3402
+ };
3403
+ imports.wbg.__wbg_instanceof_Response_d3453657e10c4300 = function(arg0) {
3404
+ let result;
3405
+ try {
3406
+ result = arg0 instanceof Response;
3407
+ } catch (_) {
3408
+ result = false;
3409
+ }
3410
+ const ret = result;
3411
+ return ret;
3412
+ };
3413
+ imports.wbg.__wbg_instanceof_Uint8Array_28af5bc19d6acad8 = function(arg0) {
3414
+ let result;
3415
+ try {
3416
+ result = arg0 instanceof Uint8Array;
3417
+ } catch (_) {
3418
+ result = false;
3419
+ }
3420
+ const ret = result;
3421
+ return ret;
3422
+ };
3423
+ imports.wbg.__wbg_instanceof_WorkerGlobalScope_b32c94246142a6a7 = function(arg0) {
3424
+ let result;
3425
+ try {
3426
+ result = arg0 instanceof WorkerGlobalScope;
3427
+ } catch (_) {
3428
+ result = false;
3429
+ }
3430
+ const ret = result;
3431
+ return ret;
3432
+ };
3433
+ imports.wbg.__wbg_isSafeInteger_12f5549b2fca23f4 = function(arg0) {
3434
+ const ret = Number.isSafeInteger(arg0);
3435
+ return ret;
3436
+ };
3437
+ imports.wbg.__wbg_iterator_23604bb983791576 = function() {
3438
+ const ret = Symbol.iterator;
3439
+ return ret;
3440
+ };
3441
+ imports.wbg.__wbg_length_65d1cd11729ced11 = function(arg0) {
3442
+ const ret = arg0.length;
3443
+ return ret;
3444
+ };
3445
+ imports.wbg.__wbg_length_d65cf0786bfc5739 = function(arg0) {
3446
+ const ret = arg0.length;
3447
+ return ret;
3448
+ };
3449
+ imports.wbg.__wbg_mark_05056c522bddc362 = function() { return handleError(function (arg0, arg1, arg2) {
3450
+ arg0.mark(getStringFromWasm0(arg1, arg2));
3451
+ }, arguments) };
3452
+ imports.wbg.__wbg_mark_24a1a597f4f00679 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
3453
+ arg0.mark(getStringFromWasm0(arg1, arg2), arg3);
3454
+ }, arguments) };
3455
+ imports.wbg.__wbg_measure_0b7379f5cfacac6d = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
3456
+ arg0.measure(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4), getStringFromWasm0(arg5, arg6));
3457
+ }, arguments) };
3458
+ imports.wbg.__wbg_measure_7728846525e2cced = function() { return handleError(function (arg0, arg1, arg2, arg3) {
3459
+ arg0.measure(getStringFromWasm0(arg1, arg2), arg3);
3460
+ }, arguments) };
3461
+ imports.wbg.__wbg_message_new = function(arg0) {
3462
+ const ret = Message.__wrap(arg0);
3463
+ return ret;
3464
+ };
3465
+ imports.wbg.__wbg_msCrypto_0a36e2ec3a343d26 = function(arg0) {
3466
+ const ret = arg0.msCrypto;
3467
+ return ret;
3468
+ };
3469
+ imports.wbg.__wbg_new_254fa9eac11932ae = function() {
3470
+ const ret = new Array();
3471
+ return ret;
3472
+ };
3473
+ imports.wbg.__wbg_new_35d748855c4620b9 = function() { return handleError(function () {
3474
+ const ret = new Headers();
3475
+ return ret;
3476
+ }, arguments) };
3477
+ imports.wbg.__wbg_new_3c34f3fe365c1436 = function(arg0) {
3478
+ const ret = new SQLite(arg0);
3479
+ return ret;
3480
+ };
3481
+ imports.wbg.__wbg_new_3d446df9155128ef = function(arg0, arg1) {
3482
+ try {
3483
+ var state0 = {a: arg0, b: arg1};
3484
+ var cb0 = (arg0, arg1) => {
3485
+ const a = state0.a;
3486
+ state0.a = 0;
3487
+ try {
3488
+ return __wbg_adapter_569(a, state0.b, arg0, arg1);
3489
+ } finally {
3490
+ state0.a = a;
3491
+ }
3492
+ };
3493
+ const ret = new Promise(cb0);
3494
+ return ret;
3495
+ } finally {
3496
+ state0.a = state0.b = 0;
3497
+ }
3498
+ };
3499
+ imports.wbg.__wbg_new_3ff5b33b1ce712df = function(arg0) {
3500
+ const ret = new Uint8Array(arg0);
3501
+ return ret;
3502
+ };
3503
+ imports.wbg.__wbg_new_5f48f21d4be11586 = function() { return handleError(function () {
3504
+ const ret = new AbortController();
3505
+ return ret;
3506
+ }, arguments) };
3507
+ imports.wbg.__wbg_new_6799ef630abee97c = function(arg0, arg1) {
3508
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
3509
+ return ret;
3510
+ };
3511
+ imports.wbg.__wbg_new_688846f374351c92 = function() {
3512
+ const ret = new Object();
3513
+ return ret;
3514
+ };
3515
+ imports.wbg.__wbg_new_8a6f238a6ece86ea = function() {
3516
+ const ret = new Error();
3517
+ return ret;
3518
+ };
3519
+ imports.wbg.__wbg_new_bc96c6a1c0786643 = function() {
3520
+ const ret = new Map();
3521
+ return ret;
3522
+ };
3523
+ imports.wbg.__wbg_new_e04dcd3aad5daca2 = function() { return handleError(function (arg0) {
3524
+ const ret = new WebAssembly.Memory(arg0);
3525
+ return ret;
3526
+ }, arguments) };
3527
+ imports.wbg.__wbg_newnoargs_fd9e4bf8be2bc16d = function(arg0, arg1) {
3528
+ const ret = new Function(getStringFromWasm0(arg0, arg1));
3529
+ return ret;
3530
+ };
3531
+ imports.wbg.__wbg_newwithbyteoffsetandlength_ba35896968751d91 = function(arg0, arg1, arg2) {
3532
+ const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
3533
+ return ret;
3534
+ };
3535
+ imports.wbg.__wbg_newwithlength_34ce8f1051e74449 = function(arg0) {
3536
+ const ret = new Uint8Array(arg0 >>> 0);
3537
+ return ret;
3538
+ };
3539
+ imports.wbg.__wbg_newwithstrandinit_a1f6583f20e4faff = function() { return handleError(function (arg0, arg1, arg2) {
3540
+ const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
3541
+ return ret;
3542
+ }, arguments) };
3543
+ imports.wbg.__wbg_next_01dd9234a5bf6d05 = function() { return handleError(function (arg0) {
3544
+ const ret = arg0.next();
3545
+ return ret;
3546
+ }, arguments) };
3547
+ imports.wbg.__wbg_next_137428deb98342b0 = function(arg0) {
3548
+ const ret = arg0.next;
3549
+ return ret;
3550
+ };
3551
+ imports.wbg.__wbg_node_02999533c4ea02e3 = function(arg0) {
3552
+ const ret = arg0.node;
3553
+ return ret;
3554
+ };
3555
+ imports.wbg.__wbg_now_64d0bb151e5d3889 = function() {
3556
+ const ret = Date.now();
3557
+ return ret;
3558
+ };
3559
+ imports.wbg.__wbg_open_aba34ed1b3b52dc4 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
3560
+ const ret = arg0.open(getStringFromWasm0(arg1, arg2), arg3 === 0x100000001 ? undefined : arg3);
3561
+ return ret;
3562
+ }, arguments) };
3563
+ imports.wbg.__wbg_peekPtr_6a7d4078b4e26f07 = function(arg0, arg1) {
3564
+ const ret = arg0.peekPtr(arg1);
3565
+ return ret;
3566
+ };
3567
+ imports.wbg.__wbg_performance_121b9855d716e029 = function() {
3568
+ const ret = globalThis.performance;
3569
+ return ret;
3570
+ };
3571
+ imports.wbg.__wbg_pointer_310208402223b1bb = function(arg0) {
3572
+ const ret = arg0.pointer;
3573
+ return ret;
3574
+ };
3575
+ imports.wbg.__wbg_preparev3_9322dce970cabecf = function(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
3576
+ const ret = arg0.prepare_v3(arg1, arg2 >>> 0, arg3, arg4 >>> 0, arg5, arg6);
3577
+ return ret;
3578
+ };
3579
+ imports.wbg.__wbg_process_5c1d670bc53614b8 = function(arg0) {
3580
+ const ret = arg0.process;
3581
+ return ret;
3582
+ };
3583
+ imports.wbg.__wbg_pstack_66a1730e634b3fee = function(arg0) {
3584
+ const ret = arg0.pstack;
3585
+ return ret;
3586
+ };
3587
+ imports.wbg.__wbg_push_6edad0df4b546b2c = function(arg0, arg1) {
3588
+ const ret = arg0.push(arg1);
3589
+ return ret;
3590
+ };
3591
+ imports.wbg.__wbg_queueMicrotask_2181040e064c0dc8 = function(arg0) {
3592
+ queueMicrotask(arg0);
3593
+ };
3594
+ imports.wbg.__wbg_queueMicrotask_ef9ac43769cbcc4f = function(arg0) {
3595
+ const ret = arg0.queueMicrotask;
3596
+ return ret;
3597
+ };
3598
+ imports.wbg.__wbg_randomFillSync_ab2cfe79ebbf2740 = function() { return handleError(function (arg0, arg1) {
3599
+ arg0.randomFillSync(arg1);
3600
+ }, arguments) };
3601
+ imports.wbg.__wbg_registerdieselsqlfunctions_f374322dbb736b21 = function() { return handleError(function (arg0, arg1) {
3602
+ arg0.register_diesel_sql_functions(arg1);
3603
+ }, arguments) };
3604
+ imports.wbg.__wbg_require_79b1e9274cde3c87 = function() { return handleError(function () {
3605
+ const ret = module.require;
3606
+ return ret;
3607
+ }, arguments) };
3608
+ imports.wbg.__wbg_reset_a6165093a081b112 = function(arg0, arg1) {
3609
+ const ret = arg0.reset(arg1);
3610
+ return ret;
3611
+ };
3612
+ imports.wbg.__wbg_resolve_0bf7c44d641804f9 = function(arg0) {
3613
+ const ret = Promise.resolve(arg0);
3614
+ return ret;
3615
+ };
3616
+ imports.wbg.__wbg_respond_88fe7338392675f2 = function() { return handleError(function (arg0, arg1) {
3617
+ arg0.respond(arg1 >>> 0);
3618
+ }, arguments) };
3619
+ imports.wbg.__wbg_restore_43c154983844b05b = function(arg0, arg1) {
3620
+ arg0.restore(arg1);
3621
+ };
3622
+ imports.wbg.__wbg_setTimeout_e41dd56300ff86eb = function() { return handleError(function (arg0, arg1, arg2) {
3623
+ const ret = arg0.setTimeout(arg1, arg2);
3624
+ return ret;
3625
+ }, arguments) };
3626
+ imports.wbg.__wbg_set_1d80752d0d5f0b21 = function(arg0, arg1, arg2) {
3627
+ arg0[arg1 >>> 0] = arg2;
3628
+ };
3629
+ imports.wbg.__wbg_set_23d69db4e5c66a6e = function(arg0, arg1, arg2) {
3630
+ arg0.set(arg1, arg2 >>> 0);
3631
+ };
3632
+ imports.wbg.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
3633
+ arg0[arg1] = arg2;
3634
+ };
3635
+ imports.wbg.__wbg_set_4e647025551483bd = function() { return handleError(function (arg0, arg1, arg2) {
3636
+ const ret = Reflect.set(arg0, arg1, arg2);
3637
+ return ret;
3638
+ }, arguments) };
3639
+ imports.wbg.__wbg_set_76818dc3c59a63d5 = function(arg0, arg1, arg2) {
3640
+ const ret = arg0.set(arg1, arg2);
3641
+ return ret;
3642
+ };
3643
+ imports.wbg.__wbg_setbody_64920df008e48adc = function(arg0, arg1) {
3644
+ arg0.body = arg1;
3645
+ };
3646
+ imports.wbg.__wbg_setcredentials_cfc15e48e3a3a535 = function(arg0, arg1) {
3647
+ arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
3648
+ };
3649
+ imports.wbg.__wbg_setheaders_4c921e8e226bdfa7 = function(arg0, arg1) {
3650
+ arg0.headers = arg1;
3651
+ };
3652
+ imports.wbg.__wbg_setmethod_cfc7f688ba46a6be = function(arg0, arg1, arg2) {
3653
+ arg0.method = getStringFromWasm0(arg1, arg2);
3654
+ };
3655
+ imports.wbg.__wbg_setmode_cd03637eb7da01e0 = function(arg0, arg1) {
3656
+ arg0.mode = __wbindgen_enum_RequestMode[arg1];
3657
+ };
3658
+ imports.wbg.__wbg_setsignal_f766190d206f09e5 = function(arg0, arg1) {
3659
+ arg0.signal = arg1;
3660
+ };
3661
+ imports.wbg.__wbg_signal_1fdadeba2d04660e = function(arg0) {
3662
+ const ret = arg0.signal;
3663
+ return ret;
3664
+ };
3665
+ imports.wbg.__wbg_sqlite3_0c56434abd1dc461 = function(arg0) {
3666
+ const ret = arg0.sqlite3;
3667
+ return ret;
3668
+ };
3669
+ imports.wbg.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
3670
+ const ret = arg1.stack;
3671
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3672
+ const len1 = WASM_VECTOR_LEN;
3673
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3674
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3675
+ };
3676
+ imports.wbg.__wbg_static_accessor_GLOBAL_0be7472e492ad3e3 = function() {
3677
+ const ret = typeof global === 'undefined' ? null : global;
3678
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
3679
+ };
3680
+ imports.wbg.__wbg_static_accessor_GLOBAL_THIS_1a6eb482d12c9bfb = function() {
3681
+ const ret = typeof globalThis === 'undefined' ? null : globalThis;
3682
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
3683
+ };
3684
+ imports.wbg.__wbg_static_accessor_SELF_1dc398a895c82351 = function() {
3685
+ const ret = typeof self === 'undefined' ? null : self;
3686
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
3687
+ };
3688
+ imports.wbg.__wbg_static_accessor_WINDOW_ae1c80c7eea8d64a = function() {
3689
+ const ret = typeof window === 'undefined' ? null : window;
3690
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
3691
+ };
3692
+ imports.wbg.__wbg_status_317f53bc4c7638df = function(arg0) {
3693
+ const ret = arg0.status;
3694
+ return ret;
3695
+ };
3696
+ imports.wbg.__wbg_step_99a553e5d7fbed2f = function(arg0, arg1) {
3697
+ const ret = arg0.step(arg1);
3698
+ return ret;
3699
+ };
3700
+ imports.wbg.__wbg_stringify_f4f701bc34ceda61 = function() { return handleError(function (arg0) {
3701
+ const ret = JSON.stringify(arg0);
3702
+ return ret;
3703
+ }, arguments) };
3704
+ imports.wbg.__wbg_subarray_46adeb9b86949d12 = function(arg0, arg1, arg2) {
3705
+ const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
3706
+ return ret;
3707
+ };
3708
+ imports.wbg.__wbg_text_dfc4cb7631d2eb34 = function() { return handleError(function (arg0) {
3709
+ const ret = arg0.text();
3710
+ return ret;
3711
+ }, arguments) };
3712
+ imports.wbg.__wbg_then_0438fad860fe38e1 = function(arg0, arg1) {
3713
+ const ret = arg0.then(arg1);
3714
+ return ret;
3715
+ };
3716
+ imports.wbg.__wbg_then_0ffafeddf0e182a4 = function(arg0, arg1, arg2) {
3717
+ const ret = arg0.then(arg1, arg2);
3718
+ return ret;
3719
+ };
3720
+ imports.wbg.__wbg_url_5327bc0a41a9b085 = function(arg0, arg1) {
3721
+ const ret = arg1.url;
3722
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3723
+ const len1 = WASM_VECTOR_LEN;
3724
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3725
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3726
+ };
3727
+ imports.wbg.__wbg_value_4c32fd138a88eee2 = function(arg0) {
3728
+ const ret = arg0.value;
3729
+ return ret;
3730
+ };
3731
+ imports.wbg.__wbg_valueblob_b7834022c19ff288 = function(arg0, arg1) {
3732
+ const ret = arg0.value_blob(arg1 >>> 0);
3733
+ return ret;
3734
+ };
3735
+ imports.wbg.__wbg_valuebytes_c6924414a4f4b6f3 = function(arg0, arg1) {
3736
+ const ret = arg0.value_bytes(arg1 >>> 0);
3737
+ return ret;
3738
+ };
3739
+ imports.wbg.__wbg_valuedup_6d367159408d8196 = function(arg0, arg1) {
3740
+ const ret = arg0.value_dup(arg1 >>> 0);
3741
+ return ret;
3742
+ };
3743
+ imports.wbg.__wbg_valuefree_3f7442e9bb21e645 = function(arg0, arg1) {
3744
+ arg0.value_free(arg1 >>> 0);
3745
+ };
3746
+ imports.wbg.__wbg_valueint64_992b66e1610bc511 = function(arg0, arg1) {
3747
+ const ret = arg0.value_int64(arg1 >>> 0);
3748
+ return ret;
3749
+ };
3750
+ imports.wbg.__wbg_valueint_4d711af866e97d8e = function(arg0, arg1) {
3751
+ const ret = arg0.value_int(arg1 >>> 0);
3752
+ return ret;
3753
+ };
3754
+ imports.wbg.__wbg_valuetext_1305a3b91ca00e84 = function(arg0, arg1, arg2) {
3755
+ const ret = arg1.value_text(arg2 >>> 0);
3756
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3757
+ const len1 = WASM_VECTOR_LEN;
3758
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3759
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3760
+ };
3761
+ imports.wbg.__wbg_valuetype_486feb6594cb75e3 = function(arg0, arg1) {
3762
+ const ret = arg0.value_type(arg1 >>> 0);
3763
+ return ret;
3764
+ };
3765
+ imports.wbg.__wbg_version_683c1e99c4c0439b = function(arg0) {
3766
+ const ret = arg0.version();
3767
+ return ret;
3768
+ };
3769
+ imports.wbg.__wbg_versions_c71aa1626a93e0a1 = function(arg0) {
3770
+ const ret = arg0.versions;
3771
+ return ret;
3772
+ };
3773
+ imports.wbg.__wbg_view_a03cbb1d55c73e57 = function(arg0) {
3774
+ const ret = arg0.view;
3775
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
3776
+ };
3777
+ imports.wbg.__wbg_warn_123db6aa8948382e = function(arg0) {
3778
+ console.warn(arg0);
3779
+ };
3780
+ imports.wbg.__wbg_warn_cb8be8bbf790a5d6 = function(arg0, arg1, arg2, arg3) {
3781
+ console.warn(arg0, arg1, arg2, arg3);
3782
+ };
3783
+ imports.wbg.__wbg_wasm_a5f31e71db23f94b = function(arg0) {
3784
+ const ret = arg0.wasm;
3785
+ return ret;
3786
+ };
3787
+ imports.wbg.__wbindgen_as_number = function(arg0) {
3788
+ const ret = +arg0;
3789
+ return ret;
3790
+ };
3791
+ imports.wbg.__wbindgen_boolean_get = function(arg0) {
3792
+ const v = arg0;
3793
+ const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
3794
+ return ret;
3795
+ };
3796
+ imports.wbg.__wbindgen_cb_drop = function(arg0) {
3797
+ const obj = arg0.original;
3798
+ if (obj.cnt-- == 1) {
3799
+ obj.a = 0;
3800
+ return true;
3801
+ }
3802
+ const ret = false;
3803
+ return ret;
3804
+ };
3805
+ imports.wbg.__wbindgen_closure_wrapper10903 = function(arg0, arg1, arg2) {
3806
+ const ret = makeMutClosure(arg0, arg1, 2503, __wbg_adapter_46);
3807
+ return ret;
3808
+ };
3809
+ imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
3810
+ const ret = debugString(arg1);
3811
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3812
+ const len1 = WASM_VECTOR_LEN;
3813
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3814
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3815
+ };
3816
+ imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
3817
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
3818
+ return ret;
3819
+ };
3820
+ imports.wbg.__wbindgen_in = function(arg0, arg1) {
3821
+ const ret = arg0 in arg1;
3822
+ return ret;
3823
+ };
3824
+ imports.wbg.__wbindgen_init_externref_table = function() {
3825
+ const table = wasm.__wbindgen_export_5;
3826
+ const offset = table.grow(4);
3827
+ table.set(0, undefined);
3828
+ table.set(offset + 0, undefined);
3829
+ table.set(offset + 1, null);
3830
+ table.set(offset + 2, true);
3831
+ table.set(offset + 3, false);
3832
+ ;
3833
+ };
3834
+ imports.wbg.__wbindgen_is_function = function(arg0) {
3835
+ const ret = typeof(arg0) === 'function';
3836
+ return ret;
3837
+ };
3838
+ imports.wbg.__wbindgen_is_null = function(arg0) {
3839
+ const ret = arg0 === null;
3840
+ return ret;
3841
+ };
3842
+ imports.wbg.__wbindgen_is_object = function(arg0) {
3843
+ const val = arg0;
3844
+ const ret = typeof(val) === 'object' && val !== null;
3845
+ return ret;
3846
+ };
3847
+ imports.wbg.__wbindgen_is_string = function(arg0) {
3848
+ const ret = typeof(arg0) === 'string';
3849
+ return ret;
3850
+ };
3851
+ imports.wbg.__wbindgen_is_undefined = function(arg0) {
3852
+ const ret = arg0 === undefined;
3853
+ return ret;
3854
+ };
3855
+ imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
3856
+ const ret = arg0 == arg1;
3857
+ return ret;
3858
+ };
3859
+ imports.wbg.__wbindgen_link_de369e9aa1a11bdd = function(arg0) {
3860
+ const ret = new URL('snippets/sqlite-web-90f8afa7b0cd2303/src/js/sqlite3-opfs-async-proxy.js', import.meta.url).toString();
3861
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3862
+ const len1 = WASM_VECTOR_LEN;
3863
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3864
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3865
+ };
3866
+ imports.wbg.__wbindgen_memory = function() {
3867
+ const ret = wasm.memory;
3868
+ return ret;
3869
+ };
3870
+ imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
3871
+ const obj = arg1;
3872
+ const ret = typeof(obj) === 'number' ? obj : undefined;
3873
+ getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
3874
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
3875
+ };
3876
+ imports.wbg.__wbindgen_number_new = function(arg0) {
3877
+ const ret = arg0;
3878
+ return ret;
3879
+ };
3880
+ imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
3881
+ const obj = arg1;
3882
+ const ret = typeof(obj) === 'string' ? obj : undefined;
3883
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3884
+ var len1 = WASM_VECTOR_LEN;
3885
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3886
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3887
+ };
3888
+ imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
3889
+ const ret = getStringFromWasm0(arg0, arg1);
3890
+ return ret;
3891
+ };
3892
+ imports.wbg.__wbindgen_throw = function(arg0, arg1) {
3893
+ throw new Error(getStringFromWasm0(arg0, arg1));
3894
+ };
3895
+ imports.wbg.__wbindgen_try_into_number = function(arg0) {
3896
+ let result;
3897
+ try { result = +arg0 } catch (e) { result = e }
3898
+ const ret = result;
3899
+ return ret;
3900
+ };
3901
+
3902
+ return imports;
3763
3903
  }
3764
3904
 
3765
3905
  function __wbg_init_memory(imports, memory) {