@noir-lang/acvm_js 0.27.0 → 0.28.0-20a160c

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.
package/web/acvm_js.js CHANGED
@@ -1,25 +1,5 @@
1
1
  let wasm;
2
2
 
3
- const heap = new Array(128).fill(undefined);
4
-
5
- heap.push(undefined, null, true, false);
6
-
7
- function getObject(idx) { return heap[idx]; }
8
-
9
- let heap_next = heap.length;
10
-
11
- function dropObject(idx) {
12
- if (idx < 132) return;
13
- heap[idx] = heap_next;
14
- heap_next = idx;
15
- }
16
-
17
- function takeObject(idx) {
18
- const ret = getObject(idx);
19
- dropObject(idx);
20
- return ret;
21
- }
22
-
23
3
  const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
24
4
 
25
5
  if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
@@ -38,6 +18,12 @@ function getStringFromWasm0(ptr, len) {
38
18
  return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
39
19
  }
40
20
 
21
+ const heap = new Array(128).fill(undefined);
22
+
23
+ heap.push(undefined, null, true, false);
24
+
25
+ let heap_next = heap.length;
26
+
41
27
  function addHeapObject(obj) {
42
28
  if (heap_next === heap.length) heap.push(heap.length + 1);
43
29
  const idx = heap_next;
@@ -47,6 +33,20 @@ function addHeapObject(obj) {
47
33
  return idx;
48
34
  }
49
35
 
36
+ function getObject(idx) { return heap[idx]; }
37
+
38
+ function dropObject(idx) {
39
+ if (idx < 132) return;
40
+ heap[idx] = heap_next;
41
+ heap_next = idx;
42
+ }
43
+
44
+ function takeObject(idx) {
45
+ const ret = getObject(idx);
46
+ dropObject(idx);
47
+ return ret;
48
+ }
49
+
50
50
  function isLikeNone(x) {
51
51
  return x === undefined || x === null;
52
52
  }
@@ -90,14 +90,14 @@ function passStringToWasm0(arg, malloc, realloc) {
90
90
 
91
91
  if (realloc === undefined) {
92
92
  const buf = cachedTextEncoder.encode(arg);
93
- const ptr = malloc(buf.length, 1) >>> 0;
93
+ const ptr = malloc(buf.length) >>> 0;
94
94
  getUint8Memory0().subarray(ptr, ptr + buf.length).set(buf);
95
95
  WASM_VECTOR_LEN = buf.length;
96
96
  return ptr;
97
97
  }
98
98
 
99
99
  let len = arg.length;
100
- let ptr = malloc(len, 1) >>> 0;
100
+ let ptr = malloc(len) >>> 0;
101
101
 
102
102
  const mem = getUint8Memory0();
103
103
 
@@ -113,7 +113,7 @@ function passStringToWasm0(arg, malloc, realloc) {
113
113
  if (offset !== 0) {
114
114
  arg = arg.slice(offset);
115
115
  }
116
- ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
116
+ ptr = realloc(ptr, len, len = offset + arg.length * 3) >>> 0;
117
117
  const view = getUint8Memory0().subarray(ptr + offset, ptr + len);
118
118
  const ret = encodeString(arg, view);
119
119
 
@@ -223,16 +223,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
223
223
  return real;
224
224
  }
225
225
  function __wbg_adapter_54(arg0, arg1, arg2) {
226
- wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h7be0e81f38bcb593(arg0, arg1, addHeapObject(arg2));
227
- }
228
-
229
- /**
230
- * Returns the `BuildInfo` object containing information about how the installed package was built.
231
- * @returns {BuildInfo} - Information on how the installed package was built.
232
- */
233
- export function buildInfo() {
234
- const ret = wasm.buildInfo();
235
- return takeObject(ret);
226
+ wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__heb1f60a5b015b6c5(arg0, arg1, addHeapObject(arg2));
236
227
  }
237
228
 
238
229
  function _assertClass(instance, klass) {
@@ -243,7 +234,7 @@ function _assertClass(instance, klass) {
243
234
  }
244
235
 
245
236
  function passArray8ToWasm0(arg, malloc) {
246
- const ptr = malloc(arg.length * 1, 1) >>> 0;
237
+ const ptr = malloc(arg.length * 1) >>> 0;
247
238
  getUint8Memory0().set(arg, ptr / 1);
248
239
  WASM_VECTOR_LEN = arg.length;
249
240
  return ptr;
@@ -341,6 +332,143 @@ export function compressWitness(witness_map) {
341
332
  }
342
333
  }
343
334
 
335
+ /**
336
+ * Verifies a ECDSA signature over the secp256r1 curve.
337
+ * @param {Uint8Array} hashed_msg
338
+ * @param {Uint8Array} public_key_x_bytes
339
+ * @param {Uint8Array} public_key_y_bytes
340
+ * @param {Uint8Array} signature
341
+ * @returns {boolean}
342
+ */
343
+ export function ecdsa_secp256r1_verify(hashed_msg, public_key_x_bytes, public_key_y_bytes, signature) {
344
+ const ptr0 = passArray8ToWasm0(hashed_msg, wasm.__wbindgen_malloc);
345
+ const len0 = WASM_VECTOR_LEN;
346
+ const ptr1 = passArray8ToWasm0(public_key_x_bytes, wasm.__wbindgen_malloc);
347
+ const len1 = WASM_VECTOR_LEN;
348
+ const ptr2 = passArray8ToWasm0(public_key_y_bytes, wasm.__wbindgen_malloc);
349
+ const len2 = WASM_VECTOR_LEN;
350
+ const ptr3 = passArray8ToWasm0(signature, wasm.__wbindgen_malloc);
351
+ const len3 = WASM_VECTOR_LEN;
352
+ const ret = wasm.ecdsa_secp256r1_verify(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
353
+ return ret !== 0;
354
+ }
355
+
356
+ /**
357
+ * Calculates the Blake2s256 hash of the input bytes and represents these as a single field element.
358
+ * Verifies a ECDSA signature over the secp256k1 curve.
359
+ * @param {Uint8Array} hashed_msg
360
+ * @param {Uint8Array} public_key_x_bytes
361
+ * @param {Uint8Array} public_key_y_bytes
362
+ * @param {Uint8Array} signature
363
+ * @returns {boolean}
364
+ */
365
+ export function ecdsa_secp256k1_verify(hashed_msg, public_key_x_bytes, public_key_y_bytes, signature) {
366
+ const ptr0 = passArray8ToWasm0(hashed_msg, wasm.__wbindgen_malloc);
367
+ const len0 = WASM_VECTOR_LEN;
368
+ const ptr1 = passArray8ToWasm0(public_key_x_bytes, wasm.__wbindgen_malloc);
369
+ const len1 = WASM_VECTOR_LEN;
370
+ const ptr2 = passArray8ToWasm0(public_key_y_bytes, wasm.__wbindgen_malloc);
371
+ const len2 = WASM_VECTOR_LEN;
372
+ const ptr3 = passArray8ToWasm0(signature, wasm.__wbindgen_malloc);
373
+ const len3 = WASM_VECTOR_LEN;
374
+ const ret = wasm.ecdsa_secp256k1_verify(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
375
+ return ret !== 0;
376
+ }
377
+
378
+ /**
379
+ * Calculates the Keccak256 hash of the input bytes
380
+ * @param {Uint8Array} inputs
381
+ * @returns {Uint8Array}
382
+ */
383
+ export function keccak256(inputs) {
384
+ try {
385
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
386
+ const ptr0 = passArray8ToWasm0(inputs, wasm.__wbindgen_malloc);
387
+ const len0 = WASM_VECTOR_LEN;
388
+ wasm.keccak256(retptr, ptr0, len0);
389
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
390
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
391
+ var v2 = getArrayU8FromWasm0(r0, r1).slice();
392
+ wasm.__wbindgen_free(r0, r1 * 1);
393
+ return v2;
394
+ } finally {
395
+ wasm.__wbindgen_add_to_stack_pointer(16);
396
+ }
397
+ }
398
+
399
+ /**
400
+ * Calculates the Blake2s256 hash of the input bytes
401
+ * @param {Uint8Array} inputs
402
+ * @returns {Uint8Array}
403
+ */
404
+ export function blake2s256(inputs) {
405
+ try {
406
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
407
+ const ptr0 = passArray8ToWasm0(inputs, wasm.__wbindgen_malloc);
408
+ const len0 = WASM_VECTOR_LEN;
409
+ wasm.blake2s256(retptr, ptr0, len0);
410
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
411
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
412
+ var v2 = getArrayU8FromWasm0(r0, r1).slice();
413
+ wasm.__wbindgen_free(r0, r1 * 1);
414
+ return v2;
415
+ } finally {
416
+ wasm.__wbindgen_add_to_stack_pointer(16);
417
+ }
418
+ }
419
+
420
+ /**
421
+ * Calculates the SHA256 hash of the input bytes
422
+ * @param {Uint8Array} inputs
423
+ * @returns {Uint8Array}
424
+ */
425
+ export function sha256(inputs) {
426
+ try {
427
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
428
+ const ptr0 = passArray8ToWasm0(inputs, wasm.__wbindgen_malloc);
429
+ const len0 = WASM_VECTOR_LEN;
430
+ wasm.sha256(retptr, ptr0, len0);
431
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
432
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
433
+ var v2 = getArrayU8FromWasm0(r0, r1).slice();
434
+ wasm.__wbindgen_free(r0, r1 * 1);
435
+ return v2;
436
+ } finally {
437
+ wasm.__wbindgen_add_to_stack_pointer(16);
438
+ }
439
+ }
440
+
441
+ /**
442
+ * Performs a bitwise XOR operation between `lhs` and `rhs`
443
+ * @param {string} lhs
444
+ * @param {string} rhs
445
+ * @returns {string}
446
+ */
447
+ export function xor(lhs, rhs) {
448
+ const ret = wasm.xor(addHeapObject(lhs), addHeapObject(rhs));
449
+ return takeObject(ret);
450
+ }
451
+
452
+ /**
453
+ * Performs a bitwise AND operation between `lhs` and `rhs`
454
+ * @param {string} lhs
455
+ * @param {string} rhs
456
+ * @returns {string}
457
+ */
458
+ export function and(lhs, rhs) {
459
+ const ret = wasm.and(addHeapObject(lhs), addHeapObject(rhs));
460
+ return takeObject(ret);
461
+ }
462
+
463
+ /**
464
+ * Returns the `BuildInfo` object containing information about how the installed package was built.
465
+ * @returns {BuildInfo} - Information on how the installed package was built.
466
+ */
467
+ export function buildInfo() {
468
+ const ret = wasm.buildInfo();
469
+ return takeObject(ret);
470
+ }
471
+
344
472
  /**
345
473
  * Sets the package's logging level.
346
474
  *
@@ -441,8 +569,8 @@ function handleError(f, args) {
441
569
  wasm.__wbindgen_exn_store(addHeapObject(e));
442
570
  }
443
571
  }
444
- function __wbg_adapter_148(arg0, arg1, arg2, arg3) {
445
- wasm.wasm_bindgen__convert__closures__invoke2_mut__h2cc2a3675130eda0(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
572
+ function __wbg_adapter_155(arg0, arg1, arg2, arg3) {
573
+ wasm.wasm_bindgen__convert__closures__invoke2_mut__h72933b4dbc34aade(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
446
574
  }
447
575
 
448
576
  /**
@@ -528,9 +656,6 @@ async function __wbg_load(module, imports) {
528
656
  function __wbg_get_imports() {
529
657
  const imports = {};
530
658
  imports.wbg = {};
531
- imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
532
- takeObject(arg0);
533
- };
534
659
  imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
535
660
  const ret = new Error(getStringFromWasm0(arg0, arg1));
536
661
  return addHeapObject(ret);
@@ -539,41 +664,31 @@ function __wbg_get_imports() {
539
664
  const ret = getObject(arg0);
540
665
  return addHeapObject(ret);
541
666
  };
542
- imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
543
- const ret = getStringFromWasm0(arg0, arg1);
544
- return addHeapObject(ret);
667
+ imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
668
+ takeObject(arg0);
545
669
  };
546
670
  imports.wbg.__wbg_wasmblackboxfunctionsolver_new = function(arg0) {
547
671
  const ret = WasmBlackBoxFunctionSolver.__wrap(arg0);
548
672
  return addHeapObject(ret);
549
673
  };
674
+ imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
675
+ const ret = getStringFromWasm0(arg0, arg1);
676
+ return addHeapObject(ret);
677
+ };
550
678
  imports.wbg.__wbindgen_is_undefined = function(arg0) {
551
679
  const ret = getObject(arg0) === undefined;
552
680
  return ret;
553
681
  };
554
- imports.wbg.__wbindgen_is_array = function(arg0) {
555
- const ret = Array.isArray(getObject(arg0));
556
- return ret;
557
- };
558
682
  imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
559
683
  const obj = getObject(arg1);
560
684
  const ret = typeof(obj) === 'number' ? obj : undefined;
561
685
  getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
562
686
  getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
563
687
  };
564
- imports.wbg.__wbindgen_cb_drop = function(arg0) {
565
- const obj = takeObject(arg0).original;
566
- if (obj.cnt-- == 1) {
567
- obj.a = 0;
568
- return true;
569
- }
570
- const ret = false;
688
+ imports.wbg.__wbindgen_is_array = function(arg0) {
689
+ const ret = Array.isArray(getObject(arg0));
571
690
  return ret;
572
691
  };
573
- imports.wbg.__wbg_constructor_6b4742a211e48095 = function(arg0) {
574
- const ret = new Error(takeObject(arg0));
575
- return addHeapObject(ret);
576
- };
577
692
  imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
578
693
  const obj = getObject(arg1);
579
694
  const ret = typeof(obj) === 'string' ? obj : undefined;
@@ -582,7 +697,20 @@ function __wbg_get_imports() {
582
697
  getInt32Memory0()[arg0 / 4 + 1] = len1;
583
698
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
584
699
  };
585
- imports.wbg.__wbg_new_212eeacc588e41ad = function() {
700
+ imports.wbg.__wbg_constructor_bd5b3ba6619fce81 = function(arg0) {
701
+ const ret = new Error(takeObject(arg0));
702
+ return addHeapObject(ret);
703
+ };
704
+ imports.wbg.__wbindgen_cb_drop = function(arg0) {
705
+ const obj = takeObject(arg0).original;
706
+ if (obj.cnt-- == 1) {
707
+ obj.a = 0;
708
+ return true;
709
+ }
710
+ const ret = false;
711
+ return ret;
712
+ };
713
+ imports.wbg.__wbg_new_d6cb182577c81490 = function() {
586
714
  const ret = new Map();
587
715
  return addHeapObject(ret);
588
716
  };
@@ -613,7 +741,7 @@ function __wbg_get_imports() {
613
741
  deferred0_1 = arg1;
614
742
  console.error(getStringFromWasm0(arg0, arg1));
615
743
  } finally {
616
- wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
744
+ wasm.__wbindgen_free(deferred0_0, deferred0_1);
617
745
  }
618
746
  };
619
747
  imports.wbg.__wbindgen_bigint_from_i64 = function(arg0) {
@@ -701,106 +829,106 @@ function __wbg_get_imports() {
701
829
  const ret = module.require;
702
830
  return addHeapObject(ret);
703
831
  }, arguments) };
704
- imports.wbg.__wbg_debug_9b8701f894da9929 = function(arg0, arg1, arg2, arg3) {
832
+ imports.wbg.__wbg_debug_efabe4eb183aa5d4 = function(arg0, arg1, arg2, arg3) {
705
833
  console.debug(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
706
834
  };
707
- imports.wbg.__wbg_error_788ae33f81d3b84b = function(arg0) {
835
+ imports.wbg.__wbg_error_a7e23606158b68b9 = function(arg0) {
708
836
  console.error(getObject(arg0));
709
837
  };
710
- imports.wbg.__wbg_error_d9bce418caafb712 = function(arg0, arg1, arg2, arg3) {
838
+ imports.wbg.__wbg_error_50f42b952a595a23 = function(arg0, arg1, arg2, arg3) {
711
839
  console.error(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
712
840
  };
713
- imports.wbg.__wbg_info_bb52f40b06f679de = function(arg0, arg1, arg2, arg3) {
841
+ imports.wbg.__wbg_info_24d8f53d98f12b95 = function(arg0, arg1, arg2, arg3) {
714
842
  console.info(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
715
843
  };
716
- imports.wbg.__wbg_log_ea7093e35e3efd07 = function(arg0, arg1, arg2, arg3) {
844
+ imports.wbg.__wbg_log_9b164efbe6db702f = function(arg0, arg1, arg2, arg3) {
717
845
  console.log(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
718
846
  };
719
- imports.wbg.__wbg_warn_dfc0e0cf544a13bd = function(arg0, arg1, arg2, arg3) {
847
+ imports.wbg.__wbg_warn_8342bfbc6028193a = function(arg0, arg1, arg2, arg3) {
720
848
  console.warn(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
721
849
  };
722
- imports.wbg.__wbg_get_44be0491f933a435 = function(arg0, arg1) {
850
+ imports.wbg.__wbg_get_7303ed2ef026b2f5 = function(arg0, arg1) {
723
851
  const ret = getObject(arg0)[arg1 >>> 0];
724
852
  return addHeapObject(ret);
725
853
  };
726
- imports.wbg.__wbg_length_fff51ee6522a1a18 = function(arg0) {
854
+ imports.wbg.__wbg_length_820c786973abdd8a = function(arg0) {
727
855
  const ret = getObject(arg0).length;
728
856
  return ret;
729
857
  };
730
- imports.wbg.__wbg_new_898a68150f225f2e = function() {
858
+ imports.wbg.__wbg_new_0394642eae39db16 = function() {
731
859
  const ret = new Array();
732
860
  return addHeapObject(ret);
733
861
  };
734
- imports.wbg.__wbg_BigInt_025925c4804d8575 = function(arg0) {
862
+ imports.wbg.__wbg_BigInt_9523742cb675bb6f = function(arg0) {
735
863
  const ret = BigInt(getObject(arg0));
736
864
  return addHeapObject(ret);
737
865
  };
738
- imports.wbg.__wbg_newnoargs_581967eacc0e2604 = function(arg0, arg1) {
866
+ imports.wbg.__wbg_newnoargs_c9e6043b8ad84109 = function(arg0, arg1) {
739
867
  const ret = new Function(getStringFromWasm0(arg0, arg1));
740
868
  return addHeapObject(ret);
741
869
  };
742
- imports.wbg.__wbg_get_97b561fb56f034b5 = function() { return handleError(function (arg0, arg1) {
870
+ imports.wbg.__wbg_get_f53c921291c381bd = function() { return handleError(function (arg0, arg1) {
743
871
  const ret = Reflect.get(getObject(arg0), getObject(arg1));
744
872
  return addHeapObject(ret);
745
873
  }, arguments) };
746
- imports.wbg.__wbg_call_cb65541d95d71282 = function() { return handleError(function (arg0, arg1) {
874
+ imports.wbg.__wbg_call_557a2f2deacc4912 = function() { return handleError(function (arg0, arg1) {
747
875
  const ret = getObject(arg0).call(getObject(arg1));
748
876
  return addHeapObject(ret);
749
877
  }, arguments) };
750
- imports.wbg.__wbg_new_b51585de1b234aff = function() {
878
+ imports.wbg.__wbg_new_2b6fea4ea03b1b95 = function() {
751
879
  const ret = new Object();
752
880
  return addHeapObject(ret);
753
881
  };
754
- imports.wbg.__wbg_self_1ff1d729e9aae938 = function() { return handleError(function () {
882
+ imports.wbg.__wbg_self_742dd6eab3e9211e = function() { return handleError(function () {
755
883
  const ret = self.self;
756
884
  return addHeapObject(ret);
757
885
  }, arguments) };
758
- imports.wbg.__wbg_window_5f4faef6c12b79ec = function() { return handleError(function () {
886
+ imports.wbg.__wbg_window_c409e731db53a0e2 = function() { return handleError(function () {
759
887
  const ret = window.window;
760
888
  return addHeapObject(ret);
761
889
  }, arguments) };
762
- imports.wbg.__wbg_globalThis_1d39714405582d3c = function() { return handleError(function () {
890
+ imports.wbg.__wbg_globalThis_b70c095388441f2d = function() { return handleError(function () {
763
891
  const ret = globalThis.globalThis;
764
892
  return addHeapObject(ret);
765
893
  }, arguments) };
766
- imports.wbg.__wbg_global_651f05c6a0944d1c = function() { return handleError(function () {
894
+ imports.wbg.__wbg_global_1c72617491ed7194 = function() { return handleError(function () {
767
895
  const ret = global.global;
768
896
  return addHeapObject(ret);
769
897
  }, arguments) };
770
- imports.wbg.__wbg_newwithlength_3ec098a360da1909 = function(arg0) {
898
+ imports.wbg.__wbg_newwithlength_cd1db47a173e3944 = function(arg0) {
771
899
  const ret = new Array(arg0 >>> 0);
772
900
  return addHeapObject(ret);
773
901
  };
774
- imports.wbg.__wbg_set_502d29070ea18557 = function(arg0, arg1, arg2) {
902
+ imports.wbg.__wbg_set_b4da98d504ac6091 = function(arg0, arg1, arg2) {
775
903
  getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
776
904
  };
777
- imports.wbg.__wbg_from_d7c216d4616bb368 = function(arg0) {
905
+ imports.wbg.__wbg_from_6bc98a09a0b58bb1 = function(arg0) {
778
906
  const ret = Array.from(getObject(arg0));
779
907
  return addHeapObject(ret);
780
908
  };
781
- imports.wbg.__wbg_push_ca1c26067ef907ac = function(arg0, arg1) {
909
+ imports.wbg.__wbg_push_109cfc26d02582dd = function(arg0, arg1) {
782
910
  const ret = getObject(arg0).push(getObject(arg1));
783
911
  return ret;
784
912
  };
785
- imports.wbg.__wbg_byteLength_0488a7a303dccf40 = function(arg0) {
913
+ imports.wbg.__wbg_byteLength_1a59a59856fc656a = function(arg0) {
786
914
  const ret = getObject(arg0).byteLength;
787
915
  return ret;
788
916
  };
789
- imports.wbg.__wbg_toString_26c114c5f3052ff5 = function(arg0, arg1, arg2) {
917
+ imports.wbg.__wbg_toString_68dcf9fa017bbb08 = function(arg0, arg1, arg2) {
790
918
  const ret = getObject(arg1).toString(arg2);
791
919
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
792
920
  const len1 = WASM_VECTOR_LEN;
793
921
  getInt32Memory0()[arg0 / 4 + 1] = len1;
794
922
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
795
923
  };
796
- imports.wbg.__wbg_new_d258248ed531ff54 = function(arg0, arg1) {
924
+ imports.wbg.__wbg_new_87297f22973157c8 = function(arg0, arg1) {
797
925
  const ret = new Error(getStringFromWasm0(arg0, arg1));
798
926
  return addHeapObject(ret);
799
927
  };
800
- imports.wbg.__wbg_setcause_a60925f08b71876d = function(arg0, arg1) {
928
+ imports.wbg.__wbg_setcause_394738aae0ce9341 = function(arg0, arg1) {
801
929
  getObject(arg0).cause = getObject(arg1);
802
930
  };
803
- imports.wbg.__wbg_instanceof_Function_3021b2be9300e7a7 = function(arg0) {
931
+ imports.wbg.__wbg_instanceof_Function_8e1bcaacb89c4438 = function(arg0) {
804
932
  let result;
805
933
  try {
806
934
  result = getObject(arg0) instanceof Function;
@@ -810,30 +938,30 @@ function __wbg_get_imports() {
810
938
  const ret = result;
811
939
  return ret;
812
940
  };
813
- imports.wbg.__wbg_call_01734de55d61e11d = function() { return handleError(function (arg0, arg1, arg2) {
941
+ imports.wbg.__wbg_call_587b30eea3e09332 = function() { return handleError(function (arg0, arg1, arg2) {
814
942
  const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
815
943
  return addHeapObject(ret);
816
944
  }, arguments) };
817
- imports.wbg.__wbg_call_4c92f6aec1e1d6e6 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
945
+ imports.wbg.__wbg_call_4c73e4aecced6a7d = function() { return handleError(function (arg0, arg1, arg2, arg3) {
818
946
  const ret = getObject(arg0).call(getObject(arg1), getObject(arg2), getObject(arg3));
819
947
  return addHeapObject(ret);
820
948
  }, arguments) };
821
- imports.wbg.__wbg_bind_f9d2c8ec337bbbe7 = function(arg0, arg1, arg2) {
949
+ imports.wbg.__wbg_bind_7d5ce7224bedd5b8 = function(arg0, arg1, arg2) {
822
950
  const ret = getObject(arg0).bind(getObject(arg1), getObject(arg2));
823
951
  return addHeapObject(ret);
824
952
  };
825
- imports.wbg.__wbg_bind_60a9a80cada2f33c = function(arg0, arg1, arg2, arg3) {
953
+ imports.wbg.__wbg_bind_f5218b29220675c3 = function(arg0, arg1, arg2, arg3) {
826
954
  const ret = getObject(arg0).bind(getObject(arg1), getObject(arg2), getObject(arg3));
827
955
  return addHeapObject(ret);
828
956
  };
829
- imports.wbg.__wbg_forEach_d3ffcb118358250b = function(arg0, arg1, arg2) {
957
+ imports.wbg.__wbg_forEach_942772130a8d06a6 = function(arg0, arg1, arg2) {
830
958
  try {
831
959
  var state0 = {a: arg1, b: arg2};
832
960
  var cb0 = (arg0, arg1) => {
833
961
  const a = state0.a;
834
962
  state0.a = 0;
835
963
  try {
836
- return __wbg_adapter_148(a, state0.b, arg0, arg1);
964
+ return __wbg_adapter_155(a, state0.b, arg0, arg1);
837
965
  } finally {
838
966
  state0.a = a;
839
967
  }
@@ -843,22 +971,22 @@ function __wbg_get_imports() {
843
971
  state0.a = state0.b = 0;
844
972
  }
845
973
  };
846
- imports.wbg.__wbg_set_bedc3d02d0f05eb0 = function(arg0, arg1, arg2) {
974
+ imports.wbg.__wbg_set_da7be7bf0e037b14 = function(arg0, arg1, arg2) {
847
975
  const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
848
976
  return addHeapObject(ret);
849
977
  };
850
- imports.wbg.__wbg_constructor_47e9bb352faf1649 = function(arg0) {
978
+ imports.wbg.__wbg_constructor_f2623999a1f453eb = function(arg0) {
851
979
  const ret = getObject(arg0).constructor;
852
980
  return addHeapObject(ret);
853
981
  };
854
- imports.wbg.__wbg_new_43f1b47c28813cbd = function(arg0, arg1) {
982
+ imports.wbg.__wbg_new_2b55e405e4af4986 = function(arg0, arg1) {
855
983
  try {
856
984
  var state0 = {a: arg0, b: arg1};
857
985
  var cb0 = (arg0, arg1) => {
858
986
  const a = state0.a;
859
987
  state0.a = 0;
860
988
  try {
861
- return __wbg_adapter_148(a, state0.b, arg0, arg1);
989
+ return __wbg_adapter_155(a, state0.b, arg0, arg1);
862
990
  } finally {
863
991
  state0.a = a;
864
992
  }
@@ -869,62 +997,62 @@ function __wbg_get_imports() {
869
997
  state0.a = state0.b = 0;
870
998
  }
871
999
  };
872
- imports.wbg.__wbg_resolve_53698b95aaf7fcf8 = function(arg0) {
1000
+ imports.wbg.__wbg_resolve_ae38ad63c43ff98b = function(arg0) {
873
1001
  const ret = Promise.resolve(getObject(arg0));
874
1002
  return addHeapObject(ret);
875
1003
  };
876
- imports.wbg.__wbg_then_f7e06ee3c11698eb = function(arg0, arg1) {
1004
+ imports.wbg.__wbg_then_8df675b8bb5d5e3c = function(arg0, arg1) {
877
1005
  const ret = getObject(arg0).then(getObject(arg1));
878
1006
  return addHeapObject(ret);
879
1007
  };
880
- imports.wbg.__wbg_then_b2267541e2a73865 = function(arg0, arg1, arg2) {
1008
+ imports.wbg.__wbg_then_835b073a479138e5 = function(arg0, arg1, arg2) {
881
1009
  const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
882
1010
  return addHeapObject(ret);
883
1011
  };
884
- imports.wbg.__wbg_buffer_085ec1f694018c4f = function(arg0) {
1012
+ imports.wbg.__wbg_buffer_55ba7a6b1b92e2ac = function(arg0) {
885
1013
  const ret = getObject(arg0).buffer;
886
1014
  return addHeapObject(ret);
887
1015
  };
888
- imports.wbg.__wbg_newwithbyteoffsetandlength_6da8e527659b86aa = function(arg0, arg1, arg2) {
1016
+ imports.wbg.__wbg_newwithbyteoffsetandlength_88d1d8be5df94b9b = function(arg0, arg1, arg2) {
889
1017
  const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
890
1018
  return addHeapObject(ret);
891
1019
  };
892
- imports.wbg.__wbg_new_8125e318e6245eed = function(arg0) {
1020
+ imports.wbg.__wbg_new_09938a7d020f049b = function(arg0) {
893
1021
  const ret = new Uint8Array(getObject(arg0));
894
1022
  return addHeapObject(ret);
895
1023
  };
896
- imports.wbg.__wbg_set_5cf90238115182c3 = function(arg0, arg1, arg2) {
1024
+ imports.wbg.__wbg_set_3698e3ca519b3c3c = function(arg0, arg1, arg2) {
897
1025
  getObject(arg0).set(getObject(arg1), arg2 >>> 0);
898
1026
  };
899
- imports.wbg.__wbg_length_72e2208bbc0efc61 = function(arg0) {
1027
+ imports.wbg.__wbg_length_0aab7ffd65ad19ed = function(arg0) {
900
1028
  const ret = getObject(arg0).length;
901
1029
  return ret;
902
1030
  };
903
- imports.wbg.__wbg_newwithlength_e5d69174d6984cd7 = function(arg0) {
1031
+ imports.wbg.__wbg_newwithlength_89eeca401d8918c2 = function(arg0) {
904
1032
  const ret = new Uint8Array(arg0 >>> 0);
905
1033
  return addHeapObject(ret);
906
1034
  };
907
- imports.wbg.__wbg_subarray_13db269f57aa838d = function(arg0, arg1, arg2) {
1035
+ imports.wbg.__wbg_subarray_d82be056deb4ad27 = function(arg0, arg1, arg2) {
908
1036
  const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
909
1037
  return addHeapObject(ret);
910
1038
  };
911
- imports.wbg.__wbg_compile_0ef211355a4ebea3 = function(arg0) {
1039
+ imports.wbg.__wbg_compile_eefe73dfb19bff3d = function(arg0) {
912
1040
  const ret = WebAssembly.compile(getObject(arg0));
913
1041
  return addHeapObject(ret);
914
1042
  };
915
- imports.wbg.__wbg_instantiate_8900c71988551df8 = function(arg0, arg1) {
1043
+ imports.wbg.__wbg_instantiate_e61ee50cd947cd36 = function(arg0, arg1) {
916
1044
  const ret = WebAssembly.instantiate(getObject(arg0), getObject(arg1));
917
1045
  return addHeapObject(ret);
918
1046
  };
919
- imports.wbg.__wbg_exports_9484b00cdfd311fc = function(arg0) {
1047
+ imports.wbg.__wbg_exports_311291a1333429a3 = function(arg0) {
920
1048
  const ret = getObject(arg0).exports;
921
1049
  return addHeapObject(ret);
922
1050
  };
923
- imports.wbg.__wbg_exports_b7984a3120d6aba2 = function(arg0) {
1051
+ imports.wbg.__wbg_exports_12505982ae149cb0 = function(arg0) {
924
1052
  const ret = WebAssembly.Module.exports(getObject(arg0));
925
1053
  return addHeapObject(ret);
926
1054
  };
927
- imports.wbg.__wbg_instanceof_Table_ba74319dfec929b1 = function(arg0) {
1055
+ imports.wbg.__wbg_instanceof_Table_b0af5234a12a19f9 = function(arg0) {
928
1056
  let result;
929
1057
  try {
930
1058
  result = getObject(arg0) instanceof WebAssembly.Table;
@@ -934,11 +1062,11 @@ function __wbg_get_imports() {
934
1062
  const ret = result;
935
1063
  return ret;
936
1064
  };
937
- imports.wbg.__wbg_get_9bb402f6a9f0b436 = function() { return handleError(function (arg0, arg1) {
1065
+ imports.wbg.__wbg_get_b5def15f90c3e295 = function() { return handleError(function (arg0, arg1) {
938
1066
  const ret = getObject(arg0).get(arg1 >>> 0);
939
1067
  return addHeapObject(ret);
940
1068
  }, arguments) };
941
- imports.wbg.__wbg_instanceof_Memory_6b2a8e33c4176794 = function(arg0) {
1069
+ imports.wbg.__wbg_instanceof_Memory_331618ccd3fa615d = function(arg0) {
942
1070
  let result;
943
1071
  try {
944
1072
  result = getObject(arg0) instanceof WebAssembly.Memory;
@@ -948,23 +1076,23 @@ function __wbg_get_imports() {
948
1076
  const ret = result;
949
1077
  return ret;
950
1078
  };
951
- imports.wbg.__wbg_new_5514c0d576222fc2 = function() { return handleError(function (arg0) {
1079
+ imports.wbg.__wbg_new_e40873b83efb2dcd = function() { return handleError(function (arg0) {
952
1080
  const ret = new WebAssembly.Memory(getObject(arg0));
953
1081
  return addHeapObject(ret);
954
1082
  }, arguments) };
955
- imports.wbg.__wbg_apply_f9ecfcbfefaf7349 = function() { return handleError(function (arg0, arg1, arg2) {
1083
+ imports.wbg.__wbg_apply_46ea2bb0ad750196 = function() { return handleError(function (arg0, arg1, arg2) {
956
1084
  const ret = Reflect.apply(getObject(arg0), getObject(arg1), getObject(arg2));
957
1085
  return addHeapObject(ret);
958
1086
  }, arguments) };
959
- imports.wbg.__wbg_getPrototypeOf_2782f7ac7c421741 = function() { return handleError(function (arg0) {
1087
+ imports.wbg.__wbg_getPrototypeOf_7dc7a2328db2bc0e = function() { return handleError(function (arg0) {
960
1088
  const ret = Reflect.getPrototypeOf(getObject(arg0));
961
1089
  return addHeapObject(ret);
962
1090
  }, arguments) };
963
- imports.wbg.__wbg_set_092e06b0f9d71865 = function() { return handleError(function (arg0, arg1, arg2) {
1091
+ imports.wbg.__wbg_set_07da13cc24b69217 = function() { return handleError(function (arg0, arg1, arg2) {
964
1092
  const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
965
1093
  return ret;
966
1094
  }, arguments) };
967
- imports.wbg.__wbg_parse_670c19d4e984792e = function() { return handleError(function (arg0, arg1) {
1095
+ imports.wbg.__wbg_parse_76a8a18ca3f8730b = function() { return handleError(function (arg0, arg1) {
968
1096
  const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
969
1097
  return addHeapObject(ret);
970
1098
  }, arguments) };
@@ -992,8 +1120,8 @@ function __wbg_get_imports() {
992
1120
  const ret = wasm.__wbindgen_export_2;
993
1121
  return addHeapObject(ret);
994
1122
  };
995
- imports.wbg.__wbindgen_closure_wrapper595 = function(arg0, arg1, arg2) {
996
- const ret = makeMutClosure(arg0, arg1, 189, __wbg_adapter_54);
1123
+ imports.wbg.__wbindgen_closure_wrapper613 = function(arg0, arg1, arg2) {
1124
+ const ret = makeMutClosure(arg0, arg1, 194, __wbg_adapter_54);
997
1125
  return addHeapObject(ret);
998
1126
  };
999
1127
 
Binary file