@noir-lang/acvm_js 0.30.0 → 0.31.0

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/nodejs/acvm_js.js CHANGED
@@ -1,7 +1,7 @@
1
1
  let imports = {};
2
2
  imports['__wbindgen_placeholder__'] = module.exports;
3
3
  let wasm;
4
- const { TextDecoder, TextEncoder } = require(`util`);
4
+ const { TextEncoder, TextDecoder } = require(`util`);
5
5
 
6
6
  const heap = new Array(128).fill(undefined);
7
7
 
@@ -23,9 +23,7 @@ function takeObject(idx) {
23
23
  return ret;
24
24
  }
25
25
 
26
- let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
27
-
28
- cachedTextDecoder.decode();
26
+ let WASM_VECTOR_LEN = 0;
29
27
 
30
28
  let cachedUint8Memory0 = null;
31
29
 
@@ -36,44 +34,6 @@ function getUint8Memory0() {
36
34
  return cachedUint8Memory0;
37
35
  }
38
36
 
39
- function getStringFromWasm0(ptr, len) {
40
- ptr = ptr >>> 0;
41
- return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
42
- }
43
-
44
- function addHeapObject(obj) {
45
- if (heap_next === heap.length) heap.push(heap.length + 1);
46
- const idx = heap_next;
47
- heap_next = heap[idx];
48
-
49
- heap[idx] = obj;
50
- return idx;
51
- }
52
-
53
- function isLikeNone(x) {
54
- return x === undefined || x === null;
55
- }
56
-
57
- let cachedFloat64Memory0 = null;
58
-
59
- function getFloat64Memory0() {
60
- if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
61
- cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
62
- }
63
- return cachedFloat64Memory0;
64
- }
65
-
66
- let cachedInt32Memory0 = null;
67
-
68
- function getInt32Memory0() {
69
- if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
70
- cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
71
- }
72
- return cachedInt32Memory0;
73
- }
74
-
75
- let WASM_VECTOR_LEN = 0;
76
-
77
37
  let cachedTextEncoder = new TextEncoder('utf-8');
78
38
 
79
39
  const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
@@ -127,6 +87,46 @@ function passStringToWasm0(arg, malloc, realloc) {
127
87
  return ptr;
128
88
  }
129
89
 
90
+ function isLikeNone(x) {
91
+ return x === undefined || x === null;
92
+ }
93
+
94
+ let cachedInt32Memory0 = null;
95
+
96
+ function getInt32Memory0() {
97
+ if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
98
+ cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
99
+ }
100
+ return cachedInt32Memory0;
101
+ }
102
+
103
+ function addHeapObject(obj) {
104
+ if (heap_next === heap.length) heap.push(heap.length + 1);
105
+ const idx = heap_next;
106
+ heap_next = heap[idx];
107
+
108
+ heap[idx] = obj;
109
+ return idx;
110
+ }
111
+
112
+ let cachedFloat64Memory0 = null;
113
+
114
+ function getFloat64Memory0() {
115
+ if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
116
+ cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
117
+ }
118
+ return cachedFloat64Memory0;
119
+ }
120
+
121
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
122
+
123
+ cachedTextDecoder.decode();
124
+
125
+ function getStringFromWasm0(ptr, len) {
126
+ ptr = ptr >>> 0;
127
+ return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
128
+ }
129
+
130
130
  let cachedBigInt64Memory0 = null;
131
131
 
132
132
  function getBigInt64Memory0() {
@@ -226,7 +226,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
226
226
  return real;
227
227
  }
228
228
  function __wbg_adapter_54(arg0, arg1, arg2) {
229
- wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__heb1f60a5b015b6c5(arg0, arg1, addHeapObject(arg2));
229
+ wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h3d2354449e918783(arg0, arg1, addHeapObject(arg2));
230
230
  }
231
231
 
232
232
  function passArray8ToWasm0(arg, malloc) {
@@ -236,17 +236,21 @@ function passArray8ToWasm0(arg, malloc) {
236
236
  return ptr;
237
237
  }
238
238
  /**
239
- * Decompresses a compressed witness as outputted by Nargo into a `WitnessMap`.
239
+ * Extracts a `WitnessMap` containing the witness indices corresponding to the circuit's public inputs.
240
240
  *
241
- * @param {Uint8Array} compressed_witness - A compressed witness.
242
- * @returns {WitnessMap} The decompressed witness map.
241
+ * @param {Uint8Array} circuit - A serialized representation of an ACIR circuit
242
+ * @param {WitnessMap} witness_map - The completed witness map after executing the circuit.
243
+ * @returns {WitnessMap} A witness map containing the circuit's public inputs.
244
+ * @param {Uint8Array} circuit
245
+ * @param {WitnessMap} solved_witness
246
+ * @returns {WitnessMap}
243
247
  */
244
- module.exports.decompressWitness = function(compressed_witness) {
248
+ module.exports.getPublicWitness = function(circuit, solved_witness) {
245
249
  try {
246
250
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
247
- const ptr0 = passArray8ToWasm0(compressed_witness, wasm.__wbindgen_malloc);
251
+ const ptr0 = passArray8ToWasm0(circuit, wasm.__wbindgen_malloc);
248
252
  const len0 = WASM_VECTOR_LEN;
249
- wasm.decompressWitness(retptr, ptr0, len0);
253
+ wasm.getPublicWitness(retptr, ptr0, len0, addHeapObject(solved_witness));
250
254
  var r0 = getInt32Memory0()[retptr / 4 + 0];
251
255
  var r1 = getInt32Memory0()[retptr / 4 + 1];
252
256
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -259,35 +263,117 @@ module.exports.decompressWitness = function(compressed_witness) {
259
263
  }
260
264
  };
261
265
 
262
- function getArrayU8FromWasm0(ptr, len) {
263
- ptr = ptr >>> 0;
264
- return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
265
- }
266
266
  /**
267
- * Compresses a `WitnessMap` into the binary format outputted by Nargo.
267
+ * Extracts a `WitnessMap` containing the witness indices corresponding to the circuit's public parameters.
268
268
  *
269
- * @param {Uint8Array} compressed_witness - A witness map.
270
- * @returns {WitnessMap} A compressed witness map
269
+ * @param {Uint8Array} circuit - A serialized representation of an ACIR circuit
270
+ * @param {WitnessMap} witness_map - The completed witness map after executing the circuit.
271
+ * @returns {WitnessMap} A witness map containing the circuit's public parameters.
272
+ * @param {Uint8Array} circuit
273
+ * @param {WitnessMap} solved_witness
274
+ * @returns {WitnessMap}
271
275
  */
272
- module.exports.compressWitness = function(witness_map) {
276
+ module.exports.getPublicParametersWitness = function(circuit, solved_witness) {
273
277
  try {
274
278
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
275
- wasm.compressWitness(retptr, addHeapObject(witness_map));
279
+ const ptr0 = passArray8ToWasm0(circuit, wasm.__wbindgen_malloc);
280
+ const len0 = WASM_VECTOR_LEN;
281
+ wasm.getPublicParametersWitness(retptr, ptr0, len0, addHeapObject(solved_witness));
276
282
  var r0 = getInt32Memory0()[retptr / 4 + 0];
277
283
  var r1 = getInt32Memory0()[retptr / 4 + 1];
278
284
  var r2 = getInt32Memory0()[retptr / 4 + 2];
279
- var r3 = getInt32Memory0()[retptr / 4 + 3];
280
- if (r3) {
281
- throw takeObject(r2);
285
+ if (r2) {
286
+ throw takeObject(r1);
282
287
  }
283
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
284
- wasm.__wbindgen_free(r0, r1 * 1);
285
- return v1;
288
+ return takeObject(r0);
289
+ } finally {
290
+ wasm.__wbindgen_add_to_stack_pointer(16);
291
+ }
292
+ };
293
+
294
+ /**
295
+ * Extracts a `WitnessMap` containing the witness indices corresponding to the circuit's return values.
296
+ *
297
+ * @param {Uint8Array} circuit - A serialized representation of an ACIR circuit
298
+ * @param {WitnessMap} witness_map - The completed witness map after executing the circuit.
299
+ * @returns {WitnessMap} A witness map containing the circuit's return values.
300
+ * @param {Uint8Array} circuit
301
+ * @param {WitnessMap} witness_map
302
+ * @returns {WitnessMap}
303
+ */
304
+ module.exports.getReturnWitness = function(circuit, witness_map) {
305
+ try {
306
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
307
+ const ptr0 = passArray8ToWasm0(circuit, wasm.__wbindgen_malloc);
308
+ const len0 = WASM_VECTOR_LEN;
309
+ wasm.getReturnWitness(retptr, ptr0, len0, addHeapObject(witness_map));
310
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
311
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
312
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
313
+ if (r2) {
314
+ throw takeObject(r1);
315
+ }
316
+ return takeObject(r0);
286
317
  } finally {
287
318
  wasm.__wbindgen_add_to_stack_pointer(16);
288
319
  }
289
320
  };
290
321
 
322
+ function _assertClass(instance, klass) {
323
+ if (!(instance instanceof klass)) {
324
+ throw new Error(`expected instance of ${klass.name}`);
325
+ }
326
+ return instance.ptr;
327
+ }
328
+ /**
329
+ * Executes an ACIR circuit to generate the solved witness from the initial witness.
330
+ *
331
+ * @param {&WasmBlackBoxFunctionSolver} solver - A black box solver.
332
+ * @param {Uint8Array} circuit - A serialized representation of an ACIR circuit
333
+ * @param {WitnessMap} initial_witness - The initial witness map defining all of the inputs to `circuit`..
334
+ * @param {ForeignCallHandler} foreign_call_handler - A callback to process any foreign calls from the circuit.
335
+ * @returns {WitnessMap} The solved witness calculated by executing the circuit on the provided inputs.
336
+ */
337
+ module.exports.executeCircuitWithBlackBoxSolver = function(solver, circuit, initial_witness, foreign_call_handler) {
338
+ _assertClass(solver, WasmBlackBoxFunctionSolver);
339
+ const ptr0 = passArray8ToWasm0(circuit, wasm.__wbindgen_malloc);
340
+ const len0 = WASM_VECTOR_LEN;
341
+ const ret = wasm.executeCircuitWithBlackBoxSolver(solver.__wbg_ptr, ptr0, len0, addHeapObject(initial_witness), addHeapObject(foreign_call_handler));
342
+ return takeObject(ret);
343
+ };
344
+
345
+ /**
346
+ * Executes an ACIR circuit to generate the solved witness from the initial witness.
347
+ *
348
+ * @param {Uint8Array} circuit - A serialized representation of an ACIR circuit
349
+ * @param {WitnessMap} initial_witness - The initial witness map defining all of the inputs to `circuit`..
350
+ * @param {ForeignCallHandler} foreign_call_handler - A callback to process any foreign calls from the circuit.
351
+ * @returns {WitnessMap} The solved witness calculated by executing the circuit on the provided inputs.
352
+ */
353
+ module.exports.executeCircuit = function(circuit, initial_witness, foreign_call_handler) {
354
+ const ptr0 = passArray8ToWasm0(circuit, wasm.__wbindgen_malloc);
355
+ const len0 = WASM_VECTOR_LEN;
356
+ const ret = wasm.executeCircuit(ptr0, len0, addHeapObject(initial_witness), addHeapObject(foreign_call_handler));
357
+ return takeObject(ret);
358
+ };
359
+
360
+ /**
361
+ * @returns {Promise<WasmBlackBoxFunctionSolver>}
362
+ */
363
+ module.exports.createBlackBoxSolver = function() {
364
+ const ret = wasm.createBlackBoxSolver();
365
+ return takeObject(ret);
366
+ };
367
+
368
+ /**
369
+ * Sets the package's logging level.
370
+ *
371
+ * @param {LogLevel} level - The maximum level of logging to be emitted.
372
+ */
373
+ module.exports.initLogLevel = function(level) {
374
+ wasm.initLogLevel(addHeapObject(level));
375
+ };
376
+
291
377
  /**
292
378
  * Verifies a ECDSA signature over the secp256r1 curve.
293
379
  * @param {Uint8Array} hashed_msg
@@ -331,6 +417,10 @@ module.exports.ecdsa_secp256k1_verify = function(hashed_msg, public_key_x_bytes,
331
417
  return ret !== 0;
332
418
  };
333
419
 
420
+ function getArrayU8FromWasm0(ptr, len) {
421
+ ptr = ptr >>> 0;
422
+ return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
423
+ }
334
424
  /**
335
425
  * Calculates the Keccak256 hash of the input bytes
336
426
  * @param {Uint8Array} inputs
@@ -417,85 +507,17 @@ module.exports.and = function(lhs, rhs) {
417
507
  };
418
508
 
419
509
  /**
420
- * Returns the `BuildInfo` object containing information about how the installed package was built.
421
- * @returns {BuildInfo} - Information on how the installed package was built.
422
- */
423
- module.exports.buildInfo = function() {
424
- const ret = wasm.buildInfo();
425
- return takeObject(ret);
426
- };
427
-
428
- function _assertClass(instance, klass) {
429
- if (!(instance instanceof klass)) {
430
- throw new Error(`expected instance of ${klass.name}`);
431
- }
432
- return instance.ptr;
433
- }
434
- /**
435
- * Executes an ACIR circuit to generate the solved witness from the initial witness.
436
- *
437
- * @param {&WasmBlackBoxFunctionSolver} solver - A black box solver.
438
- * @param {Uint8Array} circuit - A serialized representation of an ACIR circuit
439
- * @param {WitnessMap} initial_witness - The initial witness map defining all of the inputs to `circuit`..
440
- * @param {ForeignCallHandler} foreign_call_handler - A callback to process any foreign calls from the circuit.
441
- * @returns {WitnessMap} The solved witness calculated by executing the circuit on the provided inputs.
442
- */
443
- module.exports.executeCircuitWithBlackBoxSolver = function(solver, circuit, initial_witness, foreign_call_handler) {
444
- _assertClass(solver, WasmBlackBoxFunctionSolver);
445
- const ptr0 = passArray8ToWasm0(circuit, wasm.__wbindgen_malloc);
446
- const len0 = WASM_VECTOR_LEN;
447
- const ret = wasm.executeCircuitWithBlackBoxSolver(solver.__wbg_ptr, ptr0, len0, addHeapObject(initial_witness), addHeapObject(foreign_call_handler));
448
- return takeObject(ret);
449
- };
450
-
451
- /**
452
- * Executes an ACIR circuit to generate the solved witness from the initial witness.
453
- *
454
- * @param {Uint8Array} circuit - A serialized representation of an ACIR circuit
455
- * @param {WitnessMap} initial_witness - The initial witness map defining all of the inputs to `circuit`..
456
- * @param {ForeignCallHandler} foreign_call_handler - A callback to process any foreign calls from the circuit.
457
- * @returns {WitnessMap} The solved witness calculated by executing the circuit on the provided inputs.
458
- */
459
- module.exports.executeCircuit = function(circuit, initial_witness, foreign_call_handler) {
460
- const ptr0 = passArray8ToWasm0(circuit, wasm.__wbindgen_malloc);
461
- const len0 = WASM_VECTOR_LEN;
462
- const ret = wasm.executeCircuit(ptr0, len0, addHeapObject(initial_witness), addHeapObject(foreign_call_handler));
463
- return takeObject(ret);
464
- };
465
-
466
- /**
467
- * @returns {Promise<WasmBlackBoxFunctionSolver>}
468
- */
469
- module.exports.createBlackBoxSolver = function() {
470
- const ret = wasm.createBlackBoxSolver();
471
- return takeObject(ret);
472
- };
473
-
474
- /**
475
- * Sets the package's logging level.
476
- *
477
- * @param {LogLevel} level - The maximum level of logging to be emitted.
478
- */
479
- module.exports.initLogLevel = function(level) {
480
- wasm.initLogLevel(addHeapObject(level));
481
- };
482
-
483
- /**
484
- * Extracts a `WitnessMap` containing the witness indices corresponding to the circuit's public inputs.
510
+ * Decompresses a compressed witness as outputted by Nargo into a `WitnessMap`.
485
511
  *
486
- * @param {Uint8Array} circuit - A serialized representation of an ACIR circuit
487
- * @param {WitnessMap} witness_map - The completed witness map after executing the circuit.
488
- * @returns {WitnessMap} A witness map containing the circuit's public inputs.
489
- * @param {Uint8Array} circuit
490
- * @param {WitnessMap} solved_witness
491
- * @returns {WitnessMap}
512
+ * @param {Uint8Array} compressed_witness - A compressed witness.
513
+ * @returns {WitnessMap} The decompressed witness map.
492
514
  */
493
- module.exports.getPublicWitness = function(circuit, solved_witness) {
515
+ module.exports.decompressWitness = function(compressed_witness) {
494
516
  try {
495
517
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
496
- const ptr0 = passArray8ToWasm0(circuit, wasm.__wbindgen_malloc);
518
+ const ptr0 = passArray8ToWasm0(compressed_witness, wasm.__wbindgen_malloc);
497
519
  const len0 = WASM_VECTOR_LEN;
498
- wasm.getPublicWitness(retptr, ptr0, len0, addHeapObject(solved_witness));
520
+ wasm.decompressWitness(retptr, ptr0, len0);
499
521
  var r0 = getInt32Memory0()[retptr / 4 + 0];
500
522
  var r1 = getInt32Memory0()[retptr / 4 + 1];
501
523
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -509,59 +531,37 @@ module.exports.getPublicWitness = function(circuit, solved_witness) {
509
531
  };
510
532
 
511
533
  /**
512
- * Extracts a `WitnessMap` containing the witness indices corresponding to the circuit's public parameters.
534
+ * Compresses a `WitnessMap` into the binary format outputted by Nargo.
513
535
  *
514
- * @param {Uint8Array} circuit - A serialized representation of an ACIR circuit
515
- * @param {WitnessMap} witness_map - The completed witness map after executing the circuit.
516
- * @returns {WitnessMap} A witness map containing the circuit's public parameters.
517
- * @param {Uint8Array} circuit
518
- * @param {WitnessMap} solved_witness
519
- * @returns {WitnessMap}
536
+ * @param {Uint8Array} compressed_witness - A witness map.
537
+ * @returns {WitnessMap} A compressed witness map
520
538
  */
521
- module.exports.getPublicParametersWitness = function(circuit, solved_witness) {
539
+ module.exports.compressWitness = function(witness_map) {
522
540
  try {
523
541
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
524
- const ptr0 = passArray8ToWasm0(circuit, wasm.__wbindgen_malloc);
525
- const len0 = WASM_VECTOR_LEN;
526
- wasm.getPublicParametersWitness(retptr, ptr0, len0, addHeapObject(solved_witness));
542
+ wasm.compressWitness(retptr, addHeapObject(witness_map));
527
543
  var r0 = getInt32Memory0()[retptr / 4 + 0];
528
544
  var r1 = getInt32Memory0()[retptr / 4 + 1];
529
545
  var r2 = getInt32Memory0()[retptr / 4 + 2];
530
- if (r2) {
531
- throw takeObject(r1);
546
+ var r3 = getInt32Memory0()[retptr / 4 + 3];
547
+ if (r3) {
548
+ throw takeObject(r2);
532
549
  }
533
- return takeObject(r0);
550
+ var v1 = getArrayU8FromWasm0(r0, r1).slice();
551
+ wasm.__wbindgen_free(r0, r1 * 1);
552
+ return v1;
534
553
  } finally {
535
554
  wasm.__wbindgen_add_to_stack_pointer(16);
536
555
  }
537
556
  };
538
557
 
539
558
  /**
540
- * Extracts a `WitnessMap` containing the witness indices corresponding to the circuit's return values.
541
- *
542
- * @param {Uint8Array} circuit - A serialized representation of an ACIR circuit
543
- * @param {WitnessMap} witness_map - The completed witness map after executing the circuit.
544
- * @returns {WitnessMap} A witness map containing the circuit's return values.
545
- * @param {Uint8Array} circuit
546
- * @param {WitnessMap} witness_map
547
- * @returns {WitnessMap}
559
+ * Returns the `BuildInfo` object containing information about how the installed package was built.
560
+ * @returns {BuildInfo} - Information on how the installed package was built.
548
561
  */
549
- module.exports.getReturnWitness = function(circuit, witness_map) {
550
- try {
551
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
552
- const ptr0 = passArray8ToWasm0(circuit, wasm.__wbindgen_malloc);
553
- const len0 = WASM_VECTOR_LEN;
554
- wasm.getReturnWitness(retptr, ptr0, len0, addHeapObject(witness_map));
555
- var r0 = getInt32Memory0()[retptr / 4 + 0];
556
- var r1 = getInt32Memory0()[retptr / 4 + 1];
557
- var r2 = getInt32Memory0()[retptr / 4 + 2];
558
- if (r2) {
559
- throw takeObject(r1);
560
- }
561
- return takeObject(r0);
562
- } finally {
563
- wasm.__wbindgen_add_to_stack_pointer(16);
564
- }
562
+ module.exports.buildInfo = function() {
563
+ const ret = wasm.buildInfo();
564
+ return takeObject(ret);
565
565
  };
566
566
 
567
567
  function handleError(f, args) {
@@ -572,7 +572,7 @@ function handleError(f, args) {
572
572
  }
573
573
  }
574
574
  function __wbg_adapter_155(arg0, arg1, arg2, arg3) {
575
- wasm.wasm_bindgen__convert__closures__invoke2_mut__h72933b4dbc34aade(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
575
+ wasm.wasm_bindgen__convert__closures__invoke2_mut__ha676a05262f43687(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
576
576
  }
577
577
 
578
578
  /**
@@ -630,33 +630,37 @@ module.exports.__wbindgen_object_drop_ref = function(arg0) {
630
630
  takeObject(arg0);
631
631
  };
632
632
 
633
- module.exports.__wbindgen_error_new = function(arg0, arg1) {
634
- const ret = new Error(getStringFromWasm0(arg0, arg1));
633
+ module.exports.__wbg_wasmblackboxfunctionsolver_new = function(arg0) {
634
+ const ret = WasmBlackBoxFunctionSolver.__wrap(arg0);
635
635
  return addHeapObject(ret);
636
636
  };
637
637
 
638
- module.exports.__wbindgen_object_clone_ref = function(arg0) {
639
- const ret = getObject(arg0);
640
- return addHeapObject(ret);
638
+ module.exports.__wbindgen_is_array = function(arg0) {
639
+ const ret = Array.isArray(getObject(arg0));
640
+ return ret;
641
641
  };
642
642
 
643
- module.exports.__wbindgen_is_string = function(arg0) {
644
- const ret = typeof(getObject(arg0)) === 'string';
645
- return ret;
643
+ module.exports.__wbindgen_string_get = function(arg0, arg1) {
644
+ const obj = getObject(arg1);
645
+ const ret = typeof(obj) === 'string' ? obj : undefined;
646
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
647
+ var len1 = WASM_VECTOR_LEN;
648
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
649
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
646
650
  };
647
651
 
648
- module.exports.__wbindgen_is_array = function(arg0) {
649
- const ret = Array.isArray(getObject(arg0));
652
+ module.exports.__wbindgen_is_string = function(arg0) {
653
+ const ret = typeof(getObject(arg0)) === 'string';
650
654
  return ret;
651
655
  };
652
656
 
653
- module.exports.__wbindgen_string_new = function(arg0, arg1) {
654
- const ret = getStringFromWasm0(arg0, arg1);
657
+ module.exports.__wbg_new_3a350aed96e43abb = function() {
658
+ const ret = new Map();
655
659
  return addHeapObject(ret);
656
660
  };
657
661
 
658
- module.exports.__wbg_wasmblackboxfunctionsolver_new = function(arg0) {
659
- const ret = WasmBlackBoxFunctionSolver.__wrap(arg0);
662
+ module.exports.__wbindgen_number_new = function(arg0) {
663
+ const ret = arg0;
660
664
  return addHeapObject(ret);
661
665
  };
662
666
 
@@ -667,18 +671,24 @@ module.exports.__wbindgen_number_get = function(arg0, arg1) {
667
671
  getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
668
672
  };
669
673
 
670
- module.exports.__wbindgen_is_undefined = function(arg0) {
671
- const ret = getObject(arg0) === undefined;
672
- return ret;
674
+ module.exports.__wbindgen_error_new = function(arg0, arg1) {
675
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
676
+ return addHeapObject(ret);
673
677
  };
674
678
 
675
- module.exports.__wbindgen_string_get = function(arg0, arg1) {
676
- const obj = getObject(arg1);
677
- const ret = typeof(obj) === 'string' ? obj : undefined;
678
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
679
- var len1 = WASM_VECTOR_LEN;
680
- getInt32Memory0()[arg0 / 4 + 1] = len1;
681
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
679
+ module.exports.__wbindgen_object_clone_ref = function(arg0) {
680
+ const ret = getObject(arg0);
681
+ return addHeapObject(ret);
682
+ };
683
+
684
+ module.exports.__wbg_constructor_e2f72a91b4e3ce37 = function(arg0) {
685
+ const ret = new Error(takeObject(arg0));
686
+ return addHeapObject(ret);
687
+ };
688
+
689
+ module.exports.__wbindgen_string_new = function(arg0, arg1) {
690
+ const ret = getStringFromWasm0(arg0, arg1);
691
+ return addHeapObject(ret);
682
692
  };
683
693
 
684
694
  module.exports.__wbindgen_cb_drop = function(arg0) {
@@ -691,19 +701,9 @@ module.exports.__wbindgen_cb_drop = function(arg0) {
691
701
  return ret;
692
702
  };
693
703
 
694
- module.exports.__wbg_new_e290c3c041336f87 = function() {
695
- const ret = new Map();
696
- return addHeapObject(ret);
697
- };
698
-
699
- module.exports.__wbindgen_number_new = function(arg0) {
700
- const ret = arg0;
701
- return addHeapObject(ret);
702
- };
703
-
704
- module.exports.__wbg_constructor_6e18ba778d67e20b = function(arg0) {
705
- const ret = new Error(takeObject(arg0));
706
- return addHeapObject(ret);
704
+ module.exports.__wbindgen_is_undefined = function(arg0) {
705
+ const ret = getObject(arg0) === undefined;
706
+ return ret;
707
707
  };
708
708
 
709
709
  module.exports.__wbg_new_abda76e883ba8a5f = function() {
@@ -746,16 +746,6 @@ module.exports.__wbindgen_ge = function(arg0, arg1) {
746
746
  return ret;
747
747
  };
748
748
 
749
- module.exports.__wbindgen_is_bigint = function(arg0) {
750
- const ret = typeof(getObject(arg0)) === 'bigint';
751
- return ret;
752
- };
753
-
754
- module.exports.__wbindgen_jsval_eq = function(arg0, arg1) {
755
- const ret = getObject(arg0) === getObject(arg1);
756
- return ret;
757
- };
758
-
759
749
  module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
760
750
  const ret = BigInt.asUintN(64, arg0);
761
751
  return addHeapObject(ret);
@@ -766,9 +756,13 @@ module.exports.__wbindgen_shr = function(arg0, arg1) {
766
756
  return addHeapObject(ret);
767
757
  };
768
758
 
769
- module.exports.__wbindgen_is_object = function(arg0) {
770
- const val = getObject(arg0);
771
- const ret = typeof(val) === 'object' && val !== null;
759
+ module.exports.__wbindgen_jsval_eq = function(arg0, arg1) {
760
+ const ret = getObject(arg0) === getObject(arg1);
761
+ return ret;
762
+ };
763
+
764
+ module.exports.__wbindgen_is_bigint = function(arg0) {
765
+ const ret = typeof(getObject(arg0)) === 'bigint';
772
766
  return ret;
773
767
  };
774
768
 
@@ -777,7 +771,7 @@ module.exports.__wbindgen_is_function = function(arg0) {
777
771
  return ret;
778
772
  };
779
773
 
780
- module.exports.__wbg_instanceof_Global_68951a6a6244ac6e = function(arg0) {
774
+ module.exports.__wbg_instanceof_Global_f190e0e5a44a62df = function(arg0) {
781
775
  let result;
782
776
  try {
783
777
  result = getObject(arg0) instanceof WebAssembly.Global;
@@ -788,6 +782,12 @@ module.exports.__wbg_instanceof_Global_68951a6a6244ac6e = function(arg0) {
788
782
  return ret;
789
783
  };
790
784
 
785
+ module.exports.__wbindgen_is_object = function(arg0) {
786
+ const val = getObject(arg0);
787
+ const ret = typeof(val) === 'object' && val !== null;
788
+ return ret;
789
+ };
790
+
791
791
  module.exports.__wbg_static_accessor_SYMBOL_45d4d15e3c4aeb33 = function() {
792
792
  const ret = Symbol;
793
793
  return addHeapObject(ret);
@@ -798,14 +798,6 @@ module.exports.__wbindgen_is_symbol = function(arg0) {
798
798
  return ret;
799
799
  };
800
800
 
801
- module.exports.__wbg_getRandomValues_37fa2ca9e4e07fab = function() { return handleError(function (arg0, arg1) {
802
- getObject(arg0).getRandomValues(getObject(arg1));
803
- }, arguments) };
804
-
805
- module.exports.__wbg_randomFillSync_dc1e9a60c158336d = function() { return handleError(function (arg0, arg1) {
806
- getObject(arg0).randomFillSync(takeObject(arg1));
807
- }, arguments) };
808
-
809
801
  module.exports.__wbg_crypto_c48a774b022d20ac = function(arg0) {
810
802
  const ret = getObject(arg0).crypto;
811
803
  return addHeapObject(ret);
@@ -836,6 +828,14 @@ module.exports.__wbg_require_8f08ceecec0f4fee = function() { return handleError(
836
828
  return addHeapObject(ret);
837
829
  }, arguments) };
838
830
 
831
+ module.exports.__wbg_getRandomValues_37fa2ca9e4e07fab = function() { return handleError(function (arg0, arg1) {
832
+ getObject(arg0).getRandomValues(getObject(arg1));
833
+ }, arguments) };
834
+
835
+ module.exports.__wbg_randomFillSync_dc1e9a60c158336d = function() { return handleError(function (arg0, arg1) {
836
+ getObject(arg0).randomFillSync(takeObject(arg1));
837
+ }, arguments) };
838
+
839
839
  module.exports.__wbg_debug_efabe4eb183aa5d4 = function(arg0, arg1, arg2, arg3) {
840
840
  console.debug(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
841
841
  };
@@ -1189,8 +1189,8 @@ module.exports.__wbindgen_function_table = function() {
1189
1189
  return addHeapObject(ret);
1190
1190
  };
1191
1191
 
1192
- module.exports.__wbindgen_closure_wrapper631 = function(arg0, arg1, arg2) {
1193
- const ret = makeMutClosure(arg0, arg1, 201, __wbg_adapter_54);
1192
+ module.exports.__wbindgen_closure_wrapper503 = function(arg0, arg1, arg2) {
1193
+ const ret = makeMutClosure(arg0, arg1, 160, __wbg_adapter_54);
1194
1194
  return addHeapObject(ret);
1195
1195
  };
1196
1196
 
Binary file