@bitwarden/sdk-internal 0.1.3 → 0.1.4

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,6 +1,9 @@
1
1
  let imports = {};
2
2
  imports["__wbindgen_placeholder__"] = module.exports;
3
3
  let wasm;
4
+ const { WasmError } = require(
5
+ String.raw`./snippets/bitwarden-wasm-internal-4c2122daf2564d19/src/error.js`,
6
+ );
4
7
  const { TextEncoder, TextDecoder } = require(`util`);
5
8
 
6
9
  const heap = new Array(128).fill(undefined);
@@ -11,20 +14,6 @@ function getObject(idx) {
11
14
  return heap[idx];
12
15
  }
13
16
 
14
- let heap_next = heap.length;
15
-
16
- function dropObject(idx) {
17
- if (idx < 132) return;
18
- heap[idx] = heap_next;
19
- heap_next = idx;
20
- }
21
-
22
- function takeObject(idx) {
23
- const ret = getObject(idx);
24
- dropObject(idx);
25
- return ret;
26
- }
27
-
28
17
  let WASM_VECTOR_LEN = 0;
29
18
 
30
19
  let cachedUint8ArrayMemory0 = null;
@@ -110,13 +99,18 @@ function getDataViewMemory0() {
110
99
  return cachedDataViewMemory0;
111
100
  }
112
101
 
113
- let cachedTextDecoder = new TextDecoder("utf-8", { ignoreBOM: true, fatal: true });
102
+ let heap_next = heap.length;
114
103
 
115
- cachedTextDecoder.decode();
104
+ function dropObject(idx) {
105
+ if (idx < 132) return;
106
+ heap[idx] = heap_next;
107
+ heap_next = idx;
108
+ }
116
109
 
117
- function getStringFromWasm0(ptr, len) {
118
- ptr = ptr >>> 0;
119
- return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
110
+ function takeObject(idx) {
111
+ const ret = getObject(idx);
112
+ dropObject(idx);
113
+ return ret;
120
114
  }
121
115
 
122
116
  function addHeapObject(obj) {
@@ -128,6 +122,15 @@ function addHeapObject(obj) {
128
122
  return idx;
129
123
  }
130
124
 
125
+ let cachedTextDecoder = new TextDecoder("utf-8", { ignoreBOM: true, fatal: true });
126
+
127
+ cachedTextDecoder.decode();
128
+
129
+ function getStringFromWasm0(ptr, len) {
130
+ ptr = ptr >>> 0;
131
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
132
+ }
133
+
131
134
  function debugString(val) {
132
135
  // primitive types
133
136
  const type = typeof val;
@@ -224,8 +227,8 @@ function makeMutClosure(arg0, arg1, dtor, f) {
224
227
  CLOSURE_DTORS.register(real, state, state);
225
228
  return real;
226
229
  }
227
- function __wbg_adapter_36(arg0, arg1, arg2) {
228
- wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h974cc3e4e3fc8e18(
230
+ function __wbg_adapter_38(arg0, arg1, arg2) {
231
+ wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hb01d34a575ef8bb3(
229
232
  arg0,
230
233
  arg1,
231
234
  addHeapObject(arg2),
@@ -239,8 +242,8 @@ function handleError(f, args) {
239
242
  wasm.__wbindgen_exn_store(addHeapObject(e));
240
243
  }
241
244
  }
242
- function __wbg_adapter_86(arg0, arg1, arg2, arg3) {
243
- wasm.wasm_bindgen__convert__closures__invoke2_mut__h0b740609e8693551(
245
+ function __wbg_adapter_98(arg0, arg1, arg2, arg3) {
246
+ wasm.wasm_bindgen__convert__closures__invoke2_mut__h6a4d43ef1f8d92b4(
244
247
  arg0,
245
248
  arg1,
246
249
  addHeapObject(arg2),
@@ -248,8 +251,6 @@ function __wbg_adapter_86(arg0, arg1, arg2, arg3) {
248
251
  );
249
252
  }
250
253
 
251
- /**
252
- */
253
254
  module.exports.LogLevel = Object.freeze({
254
255
  Trace: 0,
255
256
  0: "Trace",
@@ -263,12 +264,15 @@ module.exports.LogLevel = Object.freeze({
263
264
  4: "Error",
264
265
  });
265
266
 
267
+ const __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"];
268
+
269
+ const __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate"];
270
+
266
271
  const BitwardenClientFinalization =
267
272
  typeof FinalizationRegistry === "undefined"
268
273
  ? { register: () => {}, unregister: () => {} }
269
274
  : new FinalizationRegistry((ptr) => wasm.__wbg_bitwardenclient_free(ptr >>> 0, 1));
270
- /**
271
- */
275
+
272
276
  class BitwardenClient {
273
277
  __destroy_into_raw() {
274
278
  const ptr = this.__wbg_ptr;
@@ -328,61 +332,293 @@ class BitwardenClient {
328
332
  const ret = wasm.bitwardenclient_http_get(this.__wbg_ptr, ptr0, len0);
329
333
  return takeObject(ret);
330
334
  }
335
+ /**
336
+ * @returns {ClientCrypto}
337
+ */
338
+ crypto() {
339
+ const ret = wasm.bitwardenclient_crypto(this.__wbg_ptr);
340
+ return ClientCrypto.__wrap(ret);
341
+ }
342
+ /**
343
+ * @returns {ClientVault}
344
+ */
345
+ vault() {
346
+ const ret = wasm.bitwardenclient_crypto(this.__wbg_ptr);
347
+ return ClientVault.__wrap(ret);
348
+ }
331
349
  }
332
350
  module.exports.BitwardenClient = BitwardenClient;
333
351
 
334
- module.exports.__wbg_new_525245e2b9901204 = function () {
352
+ const ClientCryptoFinalization =
353
+ typeof FinalizationRegistry === "undefined"
354
+ ? { register: () => {}, unregister: () => {} }
355
+ : new FinalizationRegistry((ptr) => wasm.__wbg_clientcrypto_free(ptr >>> 0, 1));
356
+
357
+ class ClientCrypto {
358
+ static __wrap(ptr) {
359
+ ptr = ptr >>> 0;
360
+ const obj = Object.create(ClientCrypto.prototype);
361
+ obj.__wbg_ptr = ptr;
362
+ ClientCryptoFinalization.register(obj, obj.__wbg_ptr, obj);
363
+ return obj;
364
+ }
365
+
366
+ __destroy_into_raw() {
367
+ const ptr = this.__wbg_ptr;
368
+ this.__wbg_ptr = 0;
369
+ ClientCryptoFinalization.unregister(this);
370
+ return ptr;
371
+ }
372
+
373
+ free() {
374
+ const ptr = this.__destroy_into_raw();
375
+ wasm.__wbg_clientcrypto_free(ptr, 0);
376
+ }
377
+ /**
378
+ * Initialization method for the user crypto. Needs to be called before any other crypto
379
+ * operations.
380
+ * @param {InitUserCryptoRequest} req
381
+ * @returns {Promise<void>}
382
+ */
383
+ initialize_user_crypto(req) {
384
+ const ret = wasm.clientcrypto_initialize_user_crypto(this.__wbg_ptr, addHeapObject(req));
385
+ return takeObject(ret);
386
+ }
387
+ /**
388
+ * Initialization method for the organization crypto. Needs to be called after
389
+ * `initialize_user_crypto` but before any other crypto operations.
390
+ * @param {InitOrgCryptoRequest} req
391
+ * @returns {Promise<void>}
392
+ */
393
+ initialize_org_crypto(req) {
394
+ const ret = wasm.clientcrypto_initialize_org_crypto(this.__wbg_ptr, addHeapObject(req));
395
+ return takeObject(ret);
396
+ }
397
+ }
398
+ module.exports.ClientCrypto = ClientCrypto;
399
+
400
+ const ClientFoldersFinalization =
401
+ typeof FinalizationRegistry === "undefined"
402
+ ? { register: () => {}, unregister: () => {} }
403
+ : new FinalizationRegistry((ptr) => wasm.__wbg_clientfolders_free(ptr >>> 0, 1));
404
+
405
+ class ClientFolders {
406
+ static __wrap(ptr) {
407
+ ptr = ptr >>> 0;
408
+ const obj = Object.create(ClientFolders.prototype);
409
+ obj.__wbg_ptr = ptr;
410
+ ClientFoldersFinalization.register(obj, obj.__wbg_ptr, obj);
411
+ return obj;
412
+ }
413
+
414
+ __destroy_into_raw() {
415
+ const ptr = this.__wbg_ptr;
416
+ this.__wbg_ptr = 0;
417
+ ClientFoldersFinalization.unregister(this);
418
+ return ptr;
419
+ }
420
+
421
+ free() {
422
+ const ptr = this.__destroy_into_raw();
423
+ wasm.__wbg_clientfolders_free(ptr, 0);
424
+ }
425
+ /**
426
+ * Decrypt folder
427
+ * @param {Folder} folder
428
+ * @returns {FolderView}
429
+ */
430
+ decrypt(folder) {
431
+ try {
432
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
433
+ wasm.clientfolders_decrypt(retptr, this.__wbg_ptr, addHeapObject(folder));
434
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
435
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
436
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
437
+ if (r2) {
438
+ throw takeObject(r1);
439
+ }
440
+ return takeObject(r0);
441
+ } finally {
442
+ wasm.__wbindgen_add_to_stack_pointer(16);
443
+ }
444
+ }
445
+ }
446
+ module.exports.ClientFolders = ClientFolders;
447
+
448
+ const ClientVaultFinalization =
449
+ typeof FinalizationRegistry === "undefined"
450
+ ? { register: () => {}, unregister: () => {} }
451
+ : new FinalizationRegistry((ptr) => wasm.__wbg_clientvault_free(ptr >>> 0, 1));
452
+
453
+ class ClientVault {
454
+ static __wrap(ptr) {
455
+ ptr = ptr >>> 0;
456
+ const obj = Object.create(ClientVault.prototype);
457
+ obj.__wbg_ptr = ptr;
458
+ ClientVaultFinalization.register(obj, obj.__wbg_ptr, obj);
459
+ return obj;
460
+ }
461
+
462
+ __destroy_into_raw() {
463
+ const ptr = this.__wbg_ptr;
464
+ this.__wbg_ptr = 0;
465
+ ClientVaultFinalization.unregister(this);
466
+ return ptr;
467
+ }
468
+
469
+ free() {
470
+ const ptr = this.__destroy_into_raw();
471
+ wasm.__wbg_clientvault_free(ptr, 0);
472
+ }
473
+ /**
474
+ * @returns {ClientFolders}
475
+ */
476
+ folders() {
477
+ const ret = wasm.bitwardenclient_crypto(this.__wbg_ptr);
478
+ return ClientFolders.__wrap(ret);
479
+ }
480
+ }
481
+ module.exports.ClientVault = ClientVault;
482
+
483
+ module.exports.__wbindgen_string_get = function (arg0, arg1) {
484
+ const obj = getObject(arg1);
485
+ const ret = typeof obj === "string" ? obj : undefined;
486
+ var ptr1 = isLikeNone(ret)
487
+ ? 0
488
+ : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
489
+ var len1 = WASM_VECTOR_LEN;
490
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
491
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
492
+ };
493
+
494
+ module.exports.__wbindgen_object_drop_ref = function (arg0) {
495
+ takeObject(arg0);
496
+ };
497
+
498
+ module.exports.__wbindgen_is_object = function (arg0) {
499
+ const val = getObject(arg0);
500
+ const ret = typeof val === "object" && val !== null;
501
+ return ret;
502
+ };
503
+
504
+ module.exports.__wbg_getwithrefkey_edc2c8960f0f1191 = function (arg0, arg1) {
505
+ const ret = getObject(arg0)[getObject(arg1)];
506
+ return addHeapObject(ret);
507
+ };
508
+
509
+ module.exports.__wbindgen_is_undefined = function (arg0) {
510
+ const ret = getObject(arg0) === undefined;
511
+ return ret;
512
+ };
513
+
514
+ module.exports.__wbindgen_in = function (arg0, arg1) {
515
+ const ret = getObject(arg0) in getObject(arg1);
516
+ return ret;
517
+ };
518
+
519
+ module.exports.__wbg_isSafeInteger_b9dff570f01a9100 = function (arg0) {
520
+ const ret = Number.isSafeInteger(getObject(arg0));
521
+ return ret;
522
+ };
523
+
524
+ module.exports.__wbindgen_as_number = function (arg0) {
525
+ const ret = +getObject(arg0);
526
+ return ret;
527
+ };
528
+
529
+ module.exports.__wbindgen_is_string = function (arg0) {
530
+ const ret = typeof getObject(arg0) === "string";
531
+ return ret;
532
+ };
533
+
534
+ module.exports.__wbg_entries_c02034de337d3ee2 = function (arg0) {
535
+ const ret = Object.entries(getObject(arg0));
536
+ return addHeapObject(ret);
537
+ };
538
+
539
+ module.exports.__wbg_length_f217bbbf7e8e4df4 = function (arg0) {
540
+ const ret = getObject(arg0).length;
541
+ return ret;
542
+ };
543
+
544
+ module.exports.__wbg_get_5419cf6b954aa11d = function (arg0, arg1) {
545
+ const ret = getObject(arg0)[arg1 >>> 0];
546
+ return addHeapObject(ret);
547
+ };
548
+
549
+ module.exports.__wbindgen_object_clone_ref = function (arg0) {
550
+ const ret = getObject(arg0);
551
+ return addHeapObject(ret);
552
+ };
553
+
554
+ module.exports.__wbg_new_4f56b64fd4b2f633 = function (arg0, arg1) {
555
+ let deferred0_0;
556
+ let deferred0_1;
557
+ try {
558
+ deferred0_0 = arg0;
559
+ deferred0_1 = arg1;
560
+ const ret = new WasmError(getStringFromWasm0(arg0, arg1));
561
+ return addHeapObject(ret);
562
+ } finally {
563
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
564
+ }
565
+ };
566
+
567
+ module.exports.__wbg_call_3bfa248576352471 = function () {
568
+ return handleError(function (arg0, arg1, arg2) {
569
+ const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
570
+ return addHeapObject(ret);
571
+ }, arguments);
572
+ };
573
+
574
+ module.exports.__wbg_new_e69b5f66fda8f13c = function () {
335
575
  const ret = new Object();
336
576
  return addHeapObject(ret);
337
577
  };
338
578
 
339
- module.exports.__wbg_setmethod_dc68a742c2db5c6a = function (arg0, arg1, arg2) {
579
+ module.exports.__wbg_setmethod_ce2da76000b02f6a = function (arg0, arg1, arg2) {
340
580
  getObject(arg0).method = getStringFromWasm0(arg1, arg2);
341
581
  };
342
582
 
343
- module.exports.__wbg_new_e27c93803e1acc42 = function () {
583
+ module.exports.__wbg_new_a9ae04a5200606a5 = function () {
344
584
  return handleError(function () {
345
585
  const ret = new Headers();
346
586
  return addHeapObject(ret);
347
587
  }, arguments);
348
588
  };
349
589
 
350
- module.exports.__wbindgen_object_drop_ref = function (arg0) {
351
- takeObject(arg0);
352
- };
353
-
354
- module.exports.__wbg_setheaders_be10a5ab566fd06f = function (arg0, arg1) {
590
+ module.exports.__wbg_setheaders_f5205d36e423a544 = function (arg0, arg1) {
355
591
  getObject(arg0).headers = getObject(arg1);
356
592
  };
357
593
 
358
- module.exports.__wbg_setmode_a781aae2bd3df202 = function (arg0, arg1) {
359
- getObject(arg0).mode = ["same-origin", "no-cors", "cors", "navigate"][arg1];
594
+ module.exports.__wbg_setmode_4919fd636102c586 = function (arg0, arg1) {
595
+ getObject(arg0).mode = __wbindgen_enum_RequestMode[arg1];
360
596
  };
361
597
 
362
- module.exports.__wbg_setcredentials_2b67800db3f7b621 = function (arg0, arg1) {
363
- getObject(arg0).credentials = ["omit", "same-origin", "include"][arg1];
598
+ module.exports.__wbg_setcredentials_a4e661320cdb9738 = function (arg0, arg1) {
599
+ getObject(arg0).credentials = __wbindgen_enum_RequestCredentials[arg1];
364
600
  };
365
601
 
366
- module.exports.__wbg_setbody_734cb3d7ee8e6e96 = function (arg0, arg1) {
602
+ module.exports.__wbg_setbody_aa8b691bec428bf4 = function (arg0, arg1) {
367
603
  getObject(arg0).body = getObject(arg1);
368
604
  };
369
605
 
370
- module.exports.__wbg_signal_41e46ccad44bb5e2 = function (arg0) {
606
+ module.exports.__wbg_signal_9acfcec9e7dffc22 = function (arg0) {
371
607
  const ret = getObject(arg0).signal;
372
608
  return addHeapObject(ret);
373
609
  };
374
610
 
375
- module.exports.__wbg_setsignal_91c4e8ebd04eb935 = function (arg0, arg1) {
611
+ module.exports.__wbg_setsignal_812ccb8269a7fd90 = function (arg0, arg1) {
376
612
  getObject(arg0).signal = getObject(arg1);
377
613
  };
378
614
 
379
- module.exports.__wbg_append_f3a4426bb50622c5 = function () {
615
+ module.exports.__wbg_append_8b3e7f74a47ea7d5 = function () {
380
616
  return handleError(function (arg0, arg1, arg2, arg3, arg4) {
381
617
  getObject(arg0).append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
382
618
  }, arguments);
383
619
  };
384
620
 
385
- module.exports.__wbg_instanceof_Response_e91b7eb7c611a9ae = function (arg0) {
621
+ module.exports.__wbg_instanceof_Response_3c0e210a57ff751d = function (arg0) {
386
622
  let result;
387
623
  try {
388
624
  result = getObject(arg0) instanceof Response;
@@ -393,12 +629,12 @@ module.exports.__wbg_instanceof_Response_e91b7eb7c611a9ae = function (arg0) {
393
629
  return ret;
394
630
  };
395
631
 
396
- module.exports.__wbg_status_ae8de515694c5c7c = function (arg0) {
632
+ module.exports.__wbg_status_5f4e900d22140a18 = function (arg0) {
397
633
  const ret = getObject(arg0).status;
398
634
  return ret;
399
635
  };
400
636
 
401
- module.exports.__wbg_url_1bf85c8abeb8c92d = function (arg0, arg1) {
637
+ module.exports.__wbg_url_58af972663531d16 = function (arg0, arg1) {
402
638
  const ret = getObject(arg1).url;
403
639
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
404
640
  const len1 = WASM_VECTOR_LEN;
@@ -406,51 +642,40 @@ module.exports.__wbg_url_1bf85c8abeb8c92d = function (arg0, arg1) {
406
642
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
407
643
  };
408
644
 
409
- module.exports.__wbg_headers_5e283e8345689121 = function (arg0) {
645
+ module.exports.__wbg_headers_1b9bf90c73fae600 = function (arg0) {
410
646
  const ret = getObject(arg0).headers;
411
647
  return addHeapObject(ret);
412
648
  };
413
649
 
414
- module.exports.__wbg_next_f9cb570345655b9a = function () {
650
+ module.exports.__wbg_next_b06e115d1b01e10b = function () {
415
651
  return handleError(function (arg0) {
416
652
  const ret = getObject(arg0).next();
417
653
  return addHeapObject(ret);
418
654
  }, arguments);
419
655
  };
420
656
 
421
- module.exports.__wbg_done_bfda7aa8f252b39f = function (arg0) {
657
+ module.exports.__wbg_done_983b5ffcaec8c583 = function (arg0) {
422
658
  const ret = getObject(arg0).done;
423
659
  return ret;
424
660
  };
425
661
 
426
- module.exports.__wbg_value_6d39332ab4788d86 = function (arg0) {
662
+ module.exports.__wbg_value_2ab8a198c834c26a = function (arg0) {
427
663
  const ret = getObject(arg0).value;
428
664
  return addHeapObject(ret);
429
665
  };
430
666
 
431
- module.exports.__wbg_stringify_bbf45426c92a6bf5 = function () {
667
+ module.exports.__wbg_stringify_eead5648c09faaf8 = function () {
432
668
  return handleError(function (arg0) {
433
669
  const ret = JSON.stringify(getObject(arg0));
434
670
  return addHeapObject(ret);
435
671
  }, arguments);
436
672
  };
437
673
 
438
- module.exports.__wbindgen_string_get = function (arg0, arg1) {
439
- const obj = getObject(arg1);
440
- const ret = typeof obj === "string" ? obj : undefined;
441
- var ptr1 = isLikeNone(ret)
442
- ? 0
443
- : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
444
- var len1 = WASM_VECTOR_LEN;
445
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
446
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
447
- };
448
-
449
- module.exports.__wbg_abort_8659d889a7877ae3 = function (arg0) {
674
+ module.exports.__wbg_abort_c57daab47a6c1215 = function (arg0) {
450
675
  getObject(arg0).abort();
451
676
  };
452
677
 
453
- module.exports.__wbg_text_a94b91ea8700357a = function () {
678
+ module.exports.__wbg_text_ebeee8b31af4c919 = function () {
454
679
  return handleError(function (arg0) {
455
680
  const ret = getObject(arg0).text();
456
681
  return addHeapObject(ret);
@@ -462,13 +687,6 @@ module.exports.__wbindgen_string_new = function (arg0, arg1) {
462
687
  return addHeapObject(ret);
463
688
  };
464
689
 
465
- module.exports.__wbg_call_89af060b4e1523f2 = function () {
466
- return handleError(function (arg0, arg1, arg2) {
467
- const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
468
- return addHeapObject(ret);
469
- }, arguments);
470
- };
471
-
472
690
  module.exports.__wbindgen_jsval_loose_eq = function (arg0, arg1) {
473
691
  const ret = getObject(arg0) == getObject(arg1);
474
692
  return ret;
@@ -489,60 +707,14 @@ module.exports.__wbindgen_error_new = function (arg0, arg1) {
489
707
  return addHeapObject(ret);
490
708
  };
491
709
 
492
- module.exports.__wbindgen_object_clone_ref = function (arg0) {
493
- const ret = getObject(arg0);
494
- return addHeapObject(ret);
495
- };
496
-
497
- module.exports.__wbindgen_is_object = function (arg0) {
498
- const val = getObject(arg0);
499
- const ret = typeof val === "object" && val !== null;
500
- return ret;
501
- };
502
-
503
- module.exports.__wbg_getwithrefkey_edc2c8960f0f1191 = function (arg0, arg1) {
504
- const ret = getObject(arg0)[getObject(arg1)];
505
- return addHeapObject(ret);
506
- };
507
-
508
- module.exports.__wbindgen_is_undefined = function (arg0) {
509
- const ret = getObject(arg0) === undefined;
510
- return ret;
511
- };
512
-
513
- module.exports.__wbindgen_in = function (arg0, arg1) {
514
- const ret = getObject(arg0) in getObject(arg1);
515
- return ret;
516
- };
517
-
518
- module.exports.__wbindgen_is_string = function (arg0) {
519
- const ret = typeof getObject(arg0) === "string";
520
- return ret;
521
- };
522
-
523
- module.exports.__wbg_entries_7a0e06255456ebcd = function (arg0) {
524
- const ret = Object.entries(getObject(arg0));
525
- return addHeapObject(ret);
526
- };
527
-
528
- module.exports.__wbg_length_ae22078168b726f5 = function (arg0) {
529
- const ret = getObject(arg0).length;
530
- return ret;
531
- };
532
-
533
- module.exports.__wbg_get_3baa728f9d58d3f6 = function (arg0, arg1) {
534
- const ret = getObject(arg0)[arg1 >>> 0];
535
- return addHeapObject(ret);
536
- };
537
-
538
- module.exports.__wbg_new_b85e72ed1bfd57f9 = function (arg0, arg1) {
710
+ module.exports.__wbg_new_1073970097e5a420 = function (arg0, arg1) {
539
711
  try {
540
712
  var state0 = { a: arg0, b: arg1 };
541
713
  var cb0 = (arg0, arg1) => {
542
714
  const a = state0.a;
543
715
  state0.a = 0;
544
716
  try {
545
- return __wbg_adapter_86(a, state0.b, arg0, arg1);
717
+ return __wbg_adapter_98(a, state0.b, arg0, arg1);
546
718
  } finally {
547
719
  state0.a = a;
548
720
  }
@@ -554,6 +726,10 @@ module.exports.__wbg_new_b85e72ed1bfd57f9 = function (arg0, arg1) {
554
726
  }
555
727
  };
556
728
 
729
+ module.exports.__wbg_set_f975102236d3c502 = function (arg0, arg1, arg2) {
730
+ getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
731
+ };
732
+
557
733
  module.exports.__wbg_new_abda76e883ba8a5f = function () {
558
734
  const ret = new Error();
559
735
  return addHeapObject(ret);
@@ -579,52 +755,52 @@ module.exports.__wbg_error_f851667af71bcfc6 = function (arg0, arg1) {
579
755
  }
580
756
  };
581
757
 
582
- module.exports.__wbg_self_3093d5d1f7bcb682 = function () {
758
+ module.exports.__wbg_self_bf91bf94d9e04084 = function () {
583
759
  return handleError(function () {
584
760
  const ret = self.self;
585
761
  return addHeapObject(ret);
586
762
  }, arguments);
587
763
  };
588
764
 
589
- module.exports.__wbg_window_3bcfc4d31bc012f8 = function () {
765
+ module.exports.__wbg_window_52dd9f07d03fd5f8 = function () {
590
766
  return handleError(function () {
591
767
  const ret = window.window;
592
768
  return addHeapObject(ret);
593
769
  }, arguments);
594
770
  };
595
771
 
596
- module.exports.__wbg_globalThis_86b222e13bdf32ed = function () {
772
+ module.exports.__wbg_globalThis_05c129bf37fcf1be = function () {
597
773
  return handleError(function () {
598
774
  const ret = globalThis.globalThis;
599
775
  return addHeapObject(ret);
600
776
  }, arguments);
601
777
  };
602
778
 
603
- module.exports.__wbg_global_e5a3fe56f8be9485 = function () {
779
+ module.exports.__wbg_global_3eca19bb09e9c484 = function () {
604
780
  return handleError(function () {
605
781
  const ret = global.global;
606
782
  return addHeapObject(ret);
607
783
  }, arguments);
608
784
  };
609
785
 
610
- module.exports.__wbg_newnoargs_76313bd6ff35d0f2 = function (arg0, arg1) {
786
+ module.exports.__wbg_newnoargs_1ede4bf2ebbaaf43 = function (arg0, arg1) {
611
787
  const ret = new Function(getStringFromWasm0(arg0, arg1));
612
788
  return addHeapObject(ret);
613
789
  };
614
790
 
615
- module.exports.__wbg_call_1084a111329e68ce = function () {
791
+ module.exports.__wbg_call_a9ef466721e824f2 = function () {
616
792
  return handleError(function (arg0, arg1) {
617
793
  const ret = getObject(arg0).call(getObject(arg1));
618
794
  return addHeapObject(ret);
619
795
  }, arguments);
620
796
  };
621
797
 
622
- module.exports.__wbg_iterator_888179a48810a9fe = function () {
798
+ module.exports.__wbg_iterator_695d699a44d6234c = function () {
623
799
  const ret = Symbol.iterator;
624
800
  return addHeapObject(ret);
625
801
  };
626
802
 
627
- module.exports.__wbg_get_224d16597dbbfd96 = function () {
803
+ module.exports.__wbg_get_ef828680c64da212 = function () {
628
804
  return handleError(function (arg0, arg1) {
629
805
  const ret = Reflect.get(getObject(arg0), getObject(arg1));
630
806
  return addHeapObject(ret);
@@ -636,22 +812,22 @@ module.exports.__wbindgen_is_function = function (arg0) {
636
812
  return ret;
637
813
  };
638
814
 
639
- module.exports.__wbg_next_de3e9db4440638b2 = function (arg0) {
815
+ module.exports.__wbg_next_13b477da1eaa3897 = function (arg0) {
640
816
  const ret = getObject(arg0).next;
641
817
  return addHeapObject(ret);
642
818
  };
643
819
 
644
- module.exports.__wbg_new_a220cf903aa02ca2 = function () {
820
+ module.exports.__wbg_new_034f913e7636e987 = function () {
645
821
  const ret = new Array();
646
822
  return addHeapObject(ret);
647
823
  };
648
824
 
649
- module.exports.__wbg_push_37c89022f34c01ca = function (arg0, arg1) {
825
+ module.exports.__wbg_push_36cf4d81d7da33d1 = function (arg0, arg1) {
650
826
  const ret = getObject(arg0).push(getObject(arg1));
651
827
  return ret;
652
828
  };
653
829
 
654
- module.exports.__wbg_instanceof_ArrayBuffer_61dfc3198373c902 = function (arg0) {
830
+ module.exports.__wbg_instanceof_ArrayBuffer_74945570b4a62ec7 = function (arg0) {
655
831
  let result;
656
832
  try {
657
833
  result = getObject(arg0) instanceof ArrayBuffer;
@@ -662,29 +838,29 @@ module.exports.__wbg_instanceof_ArrayBuffer_61dfc3198373c902 = function (arg0) {
662
838
  return ret;
663
839
  };
664
840
 
665
- module.exports.__wbg_new_796382978dfd4fb0 = function (arg0, arg1) {
841
+ module.exports.__wbg_new_70a2f23d1565c04c = function (arg0, arg1) {
666
842
  const ret = new Error(getStringFromWasm0(arg0, arg1));
667
843
  return addHeapObject(ret);
668
844
  };
669
845
 
670
- module.exports.__wbg_has_4bfbc01db38743f7 = function () {
846
+ module.exports.__wbg_has_bd717f25f195f23d = function () {
671
847
  return handleError(function (arg0, arg1) {
672
848
  const ret = Reflect.has(getObject(arg0), getObject(arg1));
673
849
  return ret;
674
850
  }, arguments);
675
851
  };
676
852
 
677
- module.exports.__wbg_resolve_570458cb99d56a43 = function (arg0) {
853
+ module.exports.__wbg_resolve_0aad7c1484731c99 = function (arg0) {
678
854
  const ret = Promise.resolve(getObject(arg0));
679
855
  return addHeapObject(ret);
680
856
  };
681
857
 
682
- module.exports.__wbg_then_95e6edc0f89b73b1 = function (arg0, arg1) {
858
+ module.exports.__wbg_then_748f75edfb032440 = function (arg0, arg1) {
683
859
  const ret = getObject(arg0).then(getObject(arg1));
684
860
  return addHeapObject(ret);
685
861
  };
686
862
 
687
- module.exports.__wbg_then_876bb3c633745cc6 = function (arg0, arg1, arg2) {
863
+ module.exports.__wbg_then_4866a7d9f55d8f3e = function (arg0, arg1, arg2) {
688
864
  const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
689
865
  return addHeapObject(ret);
690
866
  };
@@ -694,31 +870,31 @@ module.exports.__wbindgen_memory = function () {
694
870
  return addHeapObject(ret);
695
871
  };
696
872
 
697
- module.exports.__wbg_buffer_b7b08af79b0b0974 = function (arg0) {
873
+ module.exports.__wbg_buffer_ccaed51a635d8a2d = function (arg0) {
698
874
  const ret = getObject(arg0).buffer;
699
875
  return addHeapObject(ret);
700
876
  };
701
877
 
702
- module.exports.__wbg_newwithbyteoffsetandlength_8a2cb9ca96b27ec9 = function (arg0, arg1, arg2) {
878
+ module.exports.__wbg_newwithbyteoffsetandlength_7e3eb787208af730 = function (arg0, arg1, arg2) {
703
879
  const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
704
880
  return addHeapObject(ret);
705
881
  };
706
882
 
707
- module.exports.__wbg_length_8339fcf5d8ecd12e = function (arg0) {
883
+ module.exports.__wbg_length_9254c4bd3b9f23c4 = function (arg0) {
708
884
  const ret = getObject(arg0).length;
709
885
  return ret;
710
886
  };
711
887
 
712
- module.exports.__wbg_new_ea1883e1e5e86686 = function (arg0) {
888
+ module.exports.__wbg_new_fec2611eb9180f95 = function (arg0) {
713
889
  const ret = new Uint8Array(getObject(arg0));
714
890
  return addHeapObject(ret);
715
891
  };
716
892
 
717
- module.exports.__wbg_set_d1e79e2388520f18 = function (arg0, arg1, arg2) {
893
+ module.exports.__wbg_set_ec2fcf81bc573fd9 = function (arg0, arg1, arg2) {
718
894
  getObject(arg0).set(getObject(arg1), arg2 >>> 0);
719
895
  };
720
896
 
721
- module.exports.__wbg_instanceof_Uint8Array_247a91427532499e = function (arg0) {
897
+ module.exports.__wbg_instanceof_Uint8Array_df0761410414ef36 = function (arg0) {
722
898
  let result;
723
899
  try {
724
900
  result = getObject(arg0) instanceof Uint8Array;
@@ -729,37 +905,37 @@ module.exports.__wbg_instanceof_Uint8Array_247a91427532499e = function (arg0) {
729
905
  return ret;
730
906
  };
731
907
 
732
- module.exports.__wbg_new_f9f1d655d855a601 = function () {
908
+ module.exports.__wbg_new_4e7308fbedde3997 = function () {
733
909
  return handleError(function () {
734
910
  const ret = new FormData();
735
911
  return addHeapObject(ret);
736
912
  }, arguments);
737
913
  };
738
914
 
739
- module.exports.__wbg_append_b10805b72af15312 = function () {
915
+ module.exports.__wbg_append_43a4b1c9d5df4168 = function () {
740
916
  return handleError(function (arg0, arg1, arg2, arg3, arg4) {
741
917
  getObject(arg0).append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
742
918
  }, arguments);
743
919
  };
744
920
 
745
- module.exports.__wbg_settype_b6ab7b74bd1908a1 = function (arg0, arg1, arg2) {
921
+ module.exports.__wbg_settype_623d2ee701e6310a = function (arg0, arg1, arg2) {
746
922
  getObject(arg0).type = getStringFromWasm0(arg1, arg2);
747
923
  };
748
924
 
749
- module.exports.__wbg_newwithu8arraysequenceandoptions_c8bc456a23f02fca = function () {
925
+ module.exports.__wbg_newwithu8arraysequenceandoptions_d41c0fdf78490206 = function () {
750
926
  return handleError(function (arg0, arg1) {
751
927
  const ret = new Blob(getObject(arg0), getObject(arg1));
752
928
  return addHeapObject(ret);
753
929
  }, arguments);
754
930
  };
755
931
 
756
- module.exports.__wbg_append_876bddfd2c8b42fb = function () {
932
+ module.exports.__wbg_append_7ee78799a92a9731 = function () {
757
933
  return handleError(function (arg0, arg1, arg2, arg3) {
758
934
  getObject(arg0).append(getStringFromWasm0(arg1, arg2), getObject(arg3));
759
935
  }, arguments);
760
936
  };
761
937
 
762
- module.exports.__wbg_append_fc486ec9757bf1c1 = function () {
938
+ module.exports.__wbg_append_8135c71037096394 = function () {
763
939
  return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
764
940
  getObject(arg0).append(
765
941
  getStringFromWasm0(arg1, arg2),
@@ -769,17 +945,17 @@ module.exports.__wbg_append_fc486ec9757bf1c1 = function () {
769
945
  }, arguments);
770
946
  };
771
947
 
772
- module.exports.__wbg_fetch_25e3a297f7b04639 = function (arg0) {
948
+ module.exports.__wbg_fetch_f8d735ba6fe1b719 = function (arg0) {
773
949
  const ret = fetch(getObject(arg0));
774
950
  return addHeapObject(ret);
775
951
  };
776
952
 
777
- module.exports.__wbg_fetch_ba7fe179e527d942 = function (arg0, arg1) {
953
+ module.exports.__wbg_fetch_1fdc4448ed9eec00 = function (arg0, arg1) {
778
954
  const ret = getObject(arg0).fetch(getObject(arg1));
779
955
  return addHeapObject(ret);
780
956
  };
781
957
 
782
- module.exports.__wbg_new_ebf2727385ee825c = function () {
958
+ module.exports.__wbg_new_75169ae5a9683c55 = function () {
783
959
  return handleError(function () {
784
960
  const ret = new AbortController();
785
961
  return addHeapObject(ret);
@@ -819,44 +995,44 @@ module.exports.__wbindgen_throw = function (arg0, arg1) {
819
995
  throw new Error(getStringFromWasm0(arg0, arg1));
820
996
  };
821
997
 
822
- module.exports.__wbg_queueMicrotask_48421b3cc9052b68 = function (arg0) {
998
+ module.exports.__wbg_queueMicrotask_848aa4969108a57e = function (arg0) {
823
999
  const ret = getObject(arg0).queueMicrotask;
824
1000
  return addHeapObject(ret);
825
1001
  };
826
1002
 
827
- module.exports.__wbg_queueMicrotask_12a30234db4045d3 = function (arg0) {
1003
+ module.exports.__wbg_queueMicrotask_c5419c06eab41e73 = function (arg0) {
828
1004
  queueMicrotask(getObject(arg0));
829
1005
  };
830
1006
 
831
- module.exports.__wbg_newwithstrandinit_a31c69e4cc337183 = function () {
1007
+ module.exports.__wbg_newwithstrandinit_4b92c89af0a8e383 = function () {
832
1008
  return handleError(function (arg0, arg1, arg2) {
833
1009
  const ret = new Request(getStringFromWasm0(arg0, arg1), getObject(arg2));
834
1010
  return addHeapObject(ret);
835
1011
  }, arguments);
836
1012
  };
837
1013
 
838
- module.exports.__wbg_debug_d7780810b3a93632 = function (arg0, arg1, arg2, arg3) {
1014
+ module.exports.__wbg_debug_a0b6c2c5ac9a4bfd = function (arg0, arg1, arg2, arg3) {
839
1015
  console.debug(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
840
1016
  };
841
1017
 
842
- module.exports.__wbg_error_f02f3d66b42c6251 = function (arg0, arg1, arg2, arg3) {
1018
+ module.exports.__wbg_error_4d17c5bb1ca90c94 = function (arg0, arg1, arg2, arg3) {
843
1019
  console.error(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
844
1020
  };
845
1021
 
846
- module.exports.__wbg_info_123d8c35ec14384a = function (arg0, arg1, arg2, arg3) {
1022
+ module.exports.__wbg_info_1c7fba7da21072d1 = function (arg0, arg1, arg2, arg3) {
847
1023
  console.info(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
848
1024
  };
849
1025
 
850
- module.exports.__wbg_log_22aecf4cc2edc319 = function (arg0, arg1, arg2, arg3) {
1026
+ module.exports.__wbg_log_4de37a0274d94769 = function (arg0, arg1, arg2, arg3) {
851
1027
  console.log(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
852
1028
  };
853
1029
 
854
- module.exports.__wbg_warn_60924fcf321399f0 = function (arg0, arg1, arg2, arg3) {
1030
+ module.exports.__wbg_warn_2e2787d40aad9a81 = function (arg0, arg1, arg2, arg3) {
855
1031
  console.warn(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
856
1032
  };
857
1033
 
858
- module.exports.__wbindgen_closure_wrapper1154 = function (arg0, arg1, arg2) {
859
- const ret = makeMutClosure(arg0, arg1, 243, __wbg_adapter_36);
1034
+ module.exports.__wbindgen_closure_wrapper1606 = function (arg0, arg1, arg2) {
1035
+ const ret = makeMutClosure(arg0, arg1, 425, __wbg_adapter_38);
860
1036
  return addHeapObject(ret);
861
1037
  };
862
1038