qsharp-lang 1.0.18-dev → 1.0.19-dev

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.
@@ -23,6 +23,15 @@ function takeObject(idx) {
23
23
  return ret;
24
24
  }
25
25
 
26
+ function addHeapObject(obj) {
27
+ if (heap_next === heap.length) heap.push(heap.length + 1);
28
+ const idx = heap_next;
29
+ heap_next = heap[idx];
30
+
31
+ heap[idx] = obj;
32
+ return idx;
33
+ }
34
+
26
35
  let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
27
36
 
28
37
  cachedTextDecoder.decode();
@@ -37,18 +46,10 @@ function getUint8Memory0() {
37
46
  }
38
47
 
39
48
  function getStringFromWasm0(ptr, len) {
49
+ ptr = ptr >>> 0;
40
50
  return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
41
51
  }
42
52
 
43
- function addHeapObject(obj) {
44
- if (heap_next === heap.length) heap.push(heap.length + 1);
45
- const idx = heap_next;
46
- heap_next = heap[idx];
47
-
48
- heap[idx] = obj;
49
- return idx;
50
- }
51
-
52
53
  let WASM_VECTOR_LEN = 0;
53
54
 
54
55
  let cachedTextEncoder = new TextEncoder('utf-8');
@@ -70,14 +71,14 @@ function passStringToWasm0(arg, malloc, realloc) {
70
71
 
71
72
  if (realloc === undefined) {
72
73
  const buf = cachedTextEncoder.encode(arg);
73
- const ptr = malloc(buf.length);
74
+ const ptr = malloc(buf.length, 1) >>> 0;
74
75
  getUint8Memory0().subarray(ptr, ptr + buf.length).set(buf);
75
76
  WASM_VECTOR_LEN = buf.length;
76
77
  return ptr;
77
78
  }
78
79
 
79
80
  let len = arg.length;
80
- let ptr = malloc(len);
81
+ let ptr = malloc(len, 1) >>> 0;
81
82
 
82
83
  const mem = getUint8Memory0();
83
84
 
@@ -93,7 +94,7 @@ function passStringToWasm0(arg, malloc, realloc) {
93
94
  if (offset !== 0) {
94
95
  arg = arg.slice(offset);
95
96
  }
96
- ptr = realloc(ptr, len, len = offset + arg.length * 3);
97
+ ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
97
98
  const view = getUint8Memory0().subarray(ptr + offset, ptr + len);
98
99
  const ret = encodeString(arg, view);
99
100
 
@@ -190,19 +191,72 @@ function debugString(val) {
190
191
  // TODO we could test for more things here, like `Set`s and `Map`s.
191
192
  return className;
192
193
  }
194
+
195
+ let stack_pointer = 128;
196
+
197
+ function addBorrowedObject(obj) {
198
+ if (stack_pointer == 1) throw new Error('out of js stack');
199
+ heap[--stack_pointer] = obj;
200
+ return stack_pointer;
201
+ }
202
+
203
+ let cachedUint32Memory0 = null;
204
+
205
+ function getUint32Memory0() {
206
+ if (cachedUint32Memory0 === null || cachedUint32Memory0.byteLength === 0) {
207
+ cachedUint32Memory0 = new Uint32Array(wasm.memory.buffer);
208
+ }
209
+ return cachedUint32Memory0;
210
+ }
211
+
212
+ function passArray32ToWasm0(arg, malloc) {
213
+ const ptr = malloc(arg.length * 4, 4) >>> 0;
214
+ getUint32Memory0().set(arg, ptr / 4);
215
+ WASM_VECTOR_LEN = arg.length;
216
+ return ptr;
217
+ }
218
+ /**
219
+ * @param {any} callback
220
+ * @param {number} level
221
+ */
222
+ module.exports.initLogging = function(callback, level) {
223
+ try {
224
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
225
+ wasm.initLogging(retptr, addHeapObject(callback), level);
226
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
227
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
228
+ if (r1) {
229
+ throw takeObject(r0);
230
+ }
231
+ } finally {
232
+ wasm.__wbindgen_add_to_stack_pointer(16);
233
+ }
234
+ };
235
+
236
+ /**
237
+ * @param {number} level
238
+ */
239
+ module.exports.setLogLevel = function(level) {
240
+ wasm.setLogLevel(level);
241
+ };
242
+
193
243
  /**
194
244
  * @returns {string}
195
245
  */
196
246
  module.exports.git_hash = function() {
247
+ let deferred1_0;
248
+ let deferred1_1;
197
249
  try {
198
250
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
199
251
  wasm.git_hash(retptr);
200
252
  var r0 = getInt32Memory0()[retptr / 4 + 0];
201
253
  var r1 = getInt32Memory0()[retptr / 4 + 1];
254
+ deferred1_0 = r0;
255
+ deferred1_1 = r1;
202
256
  return getStringFromWasm0(r0, r1);
203
257
  } finally {
204
258
  wasm.__wbindgen_add_to_stack_pointer(16);
205
- wasm.__wbindgen_export_2(r0, r1);
259
+ wasm.__wbindgen_export_2(deferred1_0, deferred1_1, 1);
206
260
  }
207
261
  };
208
262
 
@@ -211,6 +265,8 @@ module.exports.git_hash = function() {
211
265
  * @returns {string}
212
266
  */
213
267
  module.exports.get_qir = function(code) {
268
+ let deferred3_0;
269
+ let deferred3_1;
214
270
  try {
215
271
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
216
272
  const ptr0 = passStringToWasm0(code, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
@@ -220,16 +276,18 @@ module.exports.get_qir = function(code) {
220
276
  var r1 = getInt32Memory0()[retptr / 4 + 1];
221
277
  var r2 = getInt32Memory0()[retptr / 4 + 2];
222
278
  var r3 = getInt32Memory0()[retptr / 4 + 3];
223
- var ptr1 = r0;
224
- var len1 = r1;
279
+ var ptr2 = r0;
280
+ var len2 = r1;
225
281
  if (r3) {
226
- ptr1 = 0; len1 = 0;
282
+ ptr2 = 0; len2 = 0;
227
283
  throw takeObject(r2);
228
284
  }
229
- return getStringFromWasm0(ptr1, len1);
285
+ deferred3_0 = ptr2;
286
+ deferred3_1 = len2;
287
+ return getStringFromWasm0(ptr2, len2);
230
288
  } finally {
231
289
  wasm.__wbindgen_add_to_stack_pointer(16);
232
- wasm.__wbindgen_export_2(ptr1, len1);
290
+ wasm.__wbindgen_export_2(deferred3_0, deferred3_1, 1);
233
291
  }
234
292
  };
235
293
 
@@ -245,12 +303,12 @@ module.exports.get_library_source_content = function(name) {
245
303
  wasm.get_library_source_content(retptr, ptr0, len0);
246
304
  var r0 = getInt32Memory0()[retptr / 4 + 0];
247
305
  var r1 = getInt32Memory0()[retptr / 4 + 1];
248
- let v1;
306
+ let v2;
249
307
  if (r0 !== 0) {
250
- v1 = getStringFromWasm0(r0, r1).slice();
308
+ v2 = getStringFromWasm0(r0, r1).slice();
251
309
  wasm.__wbindgen_export_2(r0, r1 * 1);
252
310
  }
253
- return v1;
311
+ return v2;
254
312
  } finally {
255
313
  wasm.__wbindgen_add_to_stack_pointer(16);
256
314
  }
@@ -261,6 +319,8 @@ module.exports.get_library_source_content = function(name) {
261
319
  * @returns {string}
262
320
  */
263
321
  module.exports.get_hir = function(code) {
322
+ let deferred2_0;
323
+ let deferred2_1;
264
324
  try {
265
325
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
266
326
  const ptr0 = passStringToWasm0(code, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
@@ -268,20 +328,15 @@ module.exports.get_hir = function(code) {
268
328
  wasm.get_hir(retptr, ptr0, len0);
269
329
  var r0 = getInt32Memory0()[retptr / 4 + 0];
270
330
  var r1 = getInt32Memory0()[retptr / 4 + 1];
331
+ deferred2_0 = r0;
332
+ deferred2_1 = r1;
271
333
  return getStringFromWasm0(r0, r1);
272
334
  } finally {
273
335
  wasm.__wbindgen_add_to_stack_pointer(16);
274
- wasm.__wbindgen_export_2(r0, r1);
336
+ wasm.__wbindgen_export_2(deferred2_0, deferred2_1, 1);
275
337
  }
276
338
  };
277
339
 
278
- let stack_pointer = 128;
279
-
280
- function addBorrowedObject(obj) {
281
- if (stack_pointer == 1) throw new Error('out of js stack');
282
- heap[--stack_pointer] = obj;
283
- return stack_pointer;
284
- }
285
340
  /**
286
341
  * @param {string} code
287
342
  * @param {string} expr
@@ -327,46 +382,6 @@ module.exports.check_exercise_solution = function(solution_code, exercise_source
327
382
  }
328
383
  };
329
384
 
330
- let cachedUint32Memory0 = null;
331
-
332
- function getUint32Memory0() {
333
- if (cachedUint32Memory0 === null || cachedUint32Memory0.byteLength === 0) {
334
- cachedUint32Memory0 = new Uint32Array(wasm.memory.buffer);
335
- }
336
- return cachedUint32Memory0;
337
- }
338
-
339
- function passArray32ToWasm0(arg, malloc) {
340
- const ptr = malloc(arg.length * 4);
341
- getUint32Memory0().set(arg, ptr / 4);
342
- WASM_VECTOR_LEN = arg.length;
343
- return ptr;
344
- }
345
- /**
346
- * @param {any} callback
347
- * @param {number} level
348
- */
349
- module.exports.initLogging = function(callback, level) {
350
- try {
351
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
352
- wasm.initLogging(retptr, addHeapObject(callback), level);
353
- var r0 = getInt32Memory0()[retptr / 4 + 0];
354
- var r1 = getInt32Memory0()[retptr / 4 + 1];
355
- if (r1) {
356
- throw takeObject(r0);
357
- }
358
- } finally {
359
- wasm.__wbindgen_add_to_stack_pointer(16);
360
- }
361
- };
362
-
363
- /**
364
- * @param {number} level
365
- */
366
- module.exports.setLogLevel = function(level) {
367
- wasm.setLogLevel(level);
368
- };
369
-
370
385
  function handleError(f, args) {
371
386
  try {
372
387
  return f.apply(this, args);
@@ -374,10 +389,6 @@ function handleError(f, args) {
374
389
  wasm.__wbindgen_export_3(addHeapObject(e));
375
390
  }
376
391
  }
377
-
378
- function getArrayU8FromWasm0(ptr, len) {
379
- return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
380
- }
381
392
  /**
382
393
  */
383
394
  module.exports.StepResultId = Object.freeze({ BreakpointHit:0,"0":"BreakpointHit",Next:1,"1":"Next",StepIn:2,"2":"StepIn",StepOut:3,"3":"StepOut",Return:4,"4":"Return", });
@@ -386,15 +397,16 @@ module.exports.StepResultId = Object.freeze({ BreakpointHit:0,"0":"BreakpointHit
386
397
  class DebugService {
387
398
 
388
399
  static __wrap(ptr) {
400
+ ptr = ptr >>> 0;
389
401
  const obj = Object.create(DebugService.prototype);
390
- obj.ptr = ptr;
402
+ obj.__wbg_ptr = ptr;
391
403
 
392
404
  return obj;
393
405
  }
394
406
 
395
407
  __destroy_into_raw() {
396
- const ptr = this.ptr;
397
- this.ptr = 0;
408
+ const ptr = this.__wbg_ptr;
409
+ this.__wbg_ptr = 0;
398
410
 
399
411
  return ptr;
400
412
  }
@@ -416,6 +428,8 @@ class DebugService {
416
428
  * @returns {string}
417
429
  */
418
430
  load_source(path, source, entry) {
431
+ let deferred4_0;
432
+ let deferred4_1;
419
433
  try {
420
434
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
421
435
  const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
@@ -424,27 +438,29 @@ class DebugService {
424
438
  const len1 = WASM_VECTOR_LEN;
425
439
  var ptr2 = isLikeNone(entry) ? 0 : passStringToWasm0(entry, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
426
440
  var len2 = WASM_VECTOR_LEN;
427
- wasm.debugservice_load_source(retptr, this.ptr, ptr0, len0, ptr1, len1, ptr2, len2);
441
+ wasm.debugservice_load_source(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
428
442
  var r0 = getInt32Memory0()[retptr / 4 + 0];
429
443
  var r1 = getInt32Memory0()[retptr / 4 + 1];
444
+ deferred4_0 = r0;
445
+ deferred4_1 = r1;
430
446
  return getStringFromWasm0(r0, r1);
431
447
  } finally {
432
448
  wasm.__wbindgen_add_to_stack_pointer(16);
433
- wasm.__wbindgen_export_2(r0, r1);
449
+ wasm.__wbindgen_export_2(deferred4_0, deferred4_1, 1);
434
450
  }
435
451
  }
436
452
  /**
437
453
  * @returns {IQuantumStateList}
438
454
  */
439
455
  capture_quantum_state() {
440
- const ret = wasm.debugservice_capture_quantum_state(this.ptr);
456
+ const ret = wasm.debugservice_capture_quantum_state(this.__wbg_ptr);
441
457
  return takeObject(ret);
442
458
  }
443
459
  /**
444
460
  * @returns {IStackFrameList}
445
461
  */
446
462
  get_stack_frames() {
447
- const ret = wasm.debugservice_get_stack_frames(this.ptr);
463
+ const ret = wasm.debugservice_get_stack_frames(this.__wbg_ptr);
448
464
  return takeObject(ret);
449
465
  }
450
466
  /**
@@ -457,7 +473,7 @@ class DebugService {
457
473
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
458
474
  const ptr0 = passArray32ToWasm0(ids, wasm.__wbindgen_export_0);
459
475
  const len0 = WASM_VECTOR_LEN;
460
- wasm.debugservice_eval_next(retptr, this.ptr, addBorrowedObject(event_cb), ptr0, len0);
476
+ wasm.debugservice_eval_next(retptr, this.__wbg_ptr, addBorrowedObject(event_cb), ptr0, len0);
461
477
  var r0 = getInt32Memory0()[retptr / 4 + 0];
462
478
  var r1 = getInt32Memory0()[retptr / 4 + 1];
463
479
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -480,7 +496,7 @@ class DebugService {
480
496
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
481
497
  const ptr0 = passArray32ToWasm0(ids, wasm.__wbindgen_export_0);
482
498
  const len0 = WASM_VECTOR_LEN;
483
- wasm.debugservice_eval_continue(retptr, this.ptr, addBorrowedObject(event_cb), ptr0, len0);
499
+ wasm.debugservice_eval_continue(retptr, this.__wbg_ptr, addBorrowedObject(event_cb), ptr0, len0);
484
500
  var r0 = getInt32Memory0()[retptr / 4 + 0];
485
501
  var r1 = getInt32Memory0()[retptr / 4 + 1];
486
502
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -503,7 +519,7 @@ class DebugService {
503
519
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
504
520
  const ptr0 = passArray32ToWasm0(ids, wasm.__wbindgen_export_0);
505
521
  const len0 = WASM_VECTOR_LEN;
506
- wasm.debugservice_eval_step_in(retptr, this.ptr, addBorrowedObject(event_cb), ptr0, len0);
522
+ wasm.debugservice_eval_step_in(retptr, this.__wbg_ptr, addBorrowedObject(event_cb), ptr0, len0);
507
523
  var r0 = getInt32Memory0()[retptr / 4 + 0];
508
524
  var r1 = getInt32Memory0()[retptr / 4 + 1];
509
525
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -526,7 +542,7 @@ class DebugService {
526
542
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
527
543
  const ptr0 = passArray32ToWasm0(ids, wasm.__wbindgen_export_0);
528
544
  const len0 = WASM_VECTOR_LEN;
529
- wasm.debugservice_eval_step_out(retptr, this.ptr, addBorrowedObject(event_cb), ptr0, len0);
545
+ wasm.debugservice_eval_step_out(retptr, this.__wbg_ptr, addBorrowedObject(event_cb), ptr0, len0);
530
546
  var r0 = getInt32Memory0()[retptr / 4 + 0];
531
547
  var r1 = getInt32Memory0()[retptr / 4 + 1];
532
548
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -546,14 +562,14 @@ class DebugService {
546
562
  get_breakpoints(path) {
547
563
  const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
548
564
  const len0 = WASM_VECTOR_LEN;
549
- const ret = wasm.debugservice_get_breakpoints(this.ptr, ptr0, len0);
565
+ const ret = wasm.debugservice_get_breakpoints(this.__wbg_ptr, ptr0, len0);
550
566
  return takeObject(ret);
551
567
  }
552
568
  /**
553
569
  * @returns {IVariableList}
554
570
  */
555
571
  get_locals() {
556
- const ret = wasm.debugservice_get_locals(this.ptr);
572
+ const ret = wasm.debugservice_get_locals(this.__wbg_ptr);
557
573
  return takeObject(ret);
558
574
  }
559
575
  }
@@ -563,15 +579,16 @@ module.exports.DebugService = DebugService;
563
579
  class LanguageService {
564
580
 
565
581
  static __wrap(ptr) {
582
+ ptr = ptr >>> 0;
566
583
  const obj = Object.create(LanguageService.prototype);
567
- obj.ptr = ptr;
584
+ obj.__wbg_ptr = ptr;
568
585
 
569
586
  return obj;
570
587
  }
571
588
 
572
589
  __destroy_into_raw() {
573
- const ptr = this.ptr;
574
- this.ptr = 0;
590
+ const ptr = this.__wbg_ptr;
591
+ this.__wbg_ptr = 0;
575
592
 
576
593
  return ptr;
577
594
  }
@@ -595,7 +612,7 @@ class LanguageService {
595
612
  * @param {IWorkspaceConfiguration} config
596
613
  */
597
614
  update_configuration(config) {
598
- wasm.languageservice_update_configuration(this.ptr, addHeapObject(config));
615
+ wasm.languageservice_update_configuration(this.__wbg_ptr, addHeapObject(config));
599
616
  }
600
617
  /**
601
618
  * @param {string} uri
@@ -607,7 +624,7 @@ class LanguageService {
607
624
  const len0 = WASM_VECTOR_LEN;
608
625
  const ptr1 = passStringToWasm0(text, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
609
626
  const len1 = WASM_VECTOR_LEN;
610
- wasm.languageservice_update_document(this.ptr, ptr0, len0, version, ptr1, len1);
627
+ wasm.languageservice_update_document(this.__wbg_ptr, ptr0, len0, version, ptr1, len1);
611
628
  }
612
629
  /**
613
630
  * @param {string} uri
@@ -615,7 +632,7 @@ class LanguageService {
615
632
  close_document(uri) {
616
633
  const ptr0 = passStringToWasm0(uri, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
617
634
  const len0 = WASM_VECTOR_LEN;
618
- wasm.languageservice_close_document(this.ptr, ptr0, len0);
635
+ wasm.languageservice_close_document(this.__wbg_ptr, ptr0, len0);
619
636
  }
620
637
  /**
621
638
  * @param {string} uri
@@ -625,7 +642,7 @@ class LanguageService {
625
642
  get_completions(uri, offset) {
626
643
  const ptr0 = passStringToWasm0(uri, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
627
644
  const len0 = WASM_VECTOR_LEN;
628
- const ret = wasm.languageservice_get_completions(this.ptr, ptr0, len0, offset);
645
+ const ret = wasm.languageservice_get_completions(this.__wbg_ptr, ptr0, len0, offset);
629
646
  return takeObject(ret);
630
647
  }
631
648
  /**
@@ -636,7 +653,7 @@ class LanguageService {
636
653
  get_definition(uri, offset) {
637
654
  const ptr0 = passStringToWasm0(uri, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
638
655
  const len0 = WASM_VECTOR_LEN;
639
- const ret = wasm.languageservice_get_definition(this.ptr, ptr0, len0, offset);
656
+ const ret = wasm.languageservice_get_definition(this.__wbg_ptr, ptr0, len0, offset);
640
657
  return takeObject(ret);
641
658
  }
642
659
  /**
@@ -647,7 +664,7 @@ class LanguageService {
647
664
  get_hover(uri, offset) {
648
665
  const ptr0 = passStringToWasm0(uri, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
649
666
  const len0 = WASM_VECTOR_LEN;
650
- const ret = wasm.languageservice_get_hover(this.ptr, ptr0, len0, offset);
667
+ const ret = wasm.languageservice_get_hover(this.__wbg_ptr, ptr0, len0, offset);
651
668
  return takeObject(ret);
652
669
  }
653
670
  /**
@@ -658,7 +675,7 @@ class LanguageService {
658
675
  get_signature_help(uri, offset) {
659
676
  const ptr0 = passStringToWasm0(uri, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
660
677
  const len0 = WASM_VECTOR_LEN;
661
- const ret = wasm.languageservice_get_signature_help(this.ptr, ptr0, len0, offset);
678
+ const ret = wasm.languageservice_get_signature_help(this.__wbg_ptr, ptr0, len0, offset);
662
679
  return takeObject(ret);
663
680
  }
664
681
  /**
@@ -672,7 +689,7 @@ class LanguageService {
672
689
  const len0 = WASM_VECTOR_LEN;
673
690
  const ptr1 = passStringToWasm0(new_name, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
674
691
  const len1 = WASM_VECTOR_LEN;
675
- const ret = wasm.languageservice_get_rename(this.ptr, ptr0, len0, offset, ptr1, len1);
692
+ const ret = wasm.languageservice_get_rename(this.__wbg_ptr, ptr0, len0, offset, ptr1, len1);
676
693
  return takeObject(ret);
677
694
  }
678
695
  /**
@@ -683,7 +700,7 @@ class LanguageService {
683
700
  prepare_rename(uri, offset) {
684
701
  const ptr0 = passStringToWasm0(uri, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
685
702
  const len0 = WASM_VECTOR_LEN;
686
- const ret = wasm.languageservice_prepare_rename(this.ptr, ptr0, len0, offset);
703
+ const ret = wasm.languageservice_prepare_rename(this.__wbg_ptr, ptr0, len0, offset);
687
704
  return takeObject(ret);
688
705
  }
689
706
  }
@@ -693,35 +710,16 @@ module.exports.__wbindgen_object_drop_ref = function(arg0) {
693
710
  takeObject(arg0);
694
711
  };
695
712
 
696
- module.exports.__wbindgen_string_new = function(arg0, arg1) {
697
- const ret = getStringFromWasm0(arg0, arg1);
713
+ module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
714
+ const ret = BigInt.asUintN(64, arg0);
698
715
  return addHeapObject(ret);
699
716
  };
700
717
 
701
- module.exports.__wbindgen_is_function = function(arg0) {
702
- const ret = typeof(getObject(arg0)) === 'function';
703
- return ret;
704
- };
705
-
706
718
  module.exports.__wbindgen_error_new = function(arg0, arg1) {
707
719
  const ret = new Error(getStringFromWasm0(arg0, arg1));
708
720
  return addHeapObject(ret);
709
721
  };
710
722
 
711
- module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
712
- const ret = BigInt.asUintN(64, arg0);
713
- return addHeapObject(ret);
714
- };
715
-
716
- module.exports.__wbindgen_string_get = function(arg0, arg1) {
717
- const obj = getObject(arg1);
718
- const ret = typeof(obj) === 'string' ? obj : undefined;
719
- var ptr0 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
720
- var len0 = WASM_VECTOR_LEN;
721
- getInt32Memory0()[arg0 / 4 + 1] = len0;
722
- getInt32Memory0()[arg0 / 4 + 0] = ptr0;
723
- };
724
-
725
723
  module.exports.__wbindgen_is_object = function(arg0) {
726
724
  const val = getObject(arg0);
727
725
  const ret = typeof(val) === 'object' && val !== null;
@@ -738,9 +736,13 @@ module.exports.__wbindgen_in = function(arg0, arg1) {
738
736
  return ret;
739
737
  };
740
738
 
741
- module.exports.__wbindgen_object_clone_ref = function(arg0) {
742
- const ret = getObject(arg0);
743
- return addHeapObject(ret);
739
+ module.exports.__wbindgen_string_get = function(arg0, arg1) {
740
+ const obj = getObject(arg1);
741
+ const ret = typeof(obj) === 'string' ? obj : undefined;
742
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
743
+ var len1 = WASM_VECTOR_LEN;
744
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
745
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
744
746
  };
745
747
 
746
748
  module.exports.__wbindgen_number_new = function(arg0) {
@@ -748,6 +750,11 @@ module.exports.__wbindgen_number_new = function(arg0) {
748
750
  return addHeapObject(ret);
749
751
  };
750
752
 
753
+ module.exports.__wbindgen_string_new = function(arg0, arg1) {
754
+ const ret = getStringFromWasm0(arg0, arg1);
755
+ return addHeapObject(ret);
756
+ };
757
+
751
758
  module.exports.__wbg_new_0232637a3cb0b1a7 = function() {
752
759
  const ret = new Error();
753
760
  return addHeapObject(ret);
@@ -755,10 +762,20 @@ module.exports.__wbg_new_0232637a3cb0b1a7 = function() {
755
762
 
756
763
  module.exports.__wbg_stack_3090cd8fd3702c6e = function(arg0, arg1) {
757
764
  const ret = getObject(arg1).stack;
758
- const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
759
- const len0 = WASM_VECTOR_LEN;
760
- getInt32Memory0()[arg0 / 4 + 1] = len0;
761
- getInt32Memory0()[arg0 / 4 + 0] = ptr0;
765
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
766
+ const len1 = WASM_VECTOR_LEN;
767
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
768
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
769
+ };
770
+
771
+ module.exports.__wbindgen_is_function = function(arg0) {
772
+ const ret = typeof(getObject(arg0)) === 'function';
773
+ return ret;
774
+ };
775
+
776
+ module.exports.__wbindgen_object_clone_ref = function(arg0) {
777
+ const ret = getObject(arg0);
778
+ return addHeapObject(ret);
762
779
  };
763
780
 
764
781
  module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
@@ -779,31 +796,39 @@ module.exports.__wbindgen_number_get = function(arg0, arg1) {
779
796
  getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
780
797
  };
781
798
 
782
- module.exports.__wbg_getwithrefkey_5e6d9547403deab8 = function(arg0, arg1) {
799
+ module.exports.__wbg_getwithrefkey_d1f0d12f1f1b63ea = function(arg0, arg1) {
783
800
  const ret = getObject(arg0)[getObject(arg1)];
784
801
  return addHeapObject(ret);
785
802
  };
786
803
 
787
- module.exports.__wbg_set_841ac57cff3d672b = function(arg0, arg1, arg2) {
804
+ module.exports.__wbg_set_bd72c078edfa51ad = function(arg0, arg1, arg2) {
788
805
  getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
789
806
  };
790
807
 
791
- module.exports.__wbg_crypto_e1d53a1d73fb10b8 = function(arg0) {
808
+ module.exports.__wbg_getRandomValues_37fa2ca9e4e07fab = function() { return handleError(function (arg0, arg1) {
809
+ getObject(arg0).getRandomValues(getObject(arg1));
810
+ }, arguments) };
811
+
812
+ module.exports.__wbg_randomFillSync_dc1e9a60c158336d = function() { return handleError(function (arg0, arg1) {
813
+ getObject(arg0).randomFillSync(takeObject(arg1));
814
+ }, arguments) };
815
+
816
+ module.exports.__wbg_crypto_c48a774b022d20ac = function(arg0) {
792
817
  const ret = getObject(arg0).crypto;
793
818
  return addHeapObject(ret);
794
819
  };
795
820
 
796
- module.exports.__wbg_process_038c26bf42b093f8 = function(arg0) {
821
+ module.exports.__wbg_process_298734cf255a885d = function(arg0) {
797
822
  const ret = getObject(arg0).process;
798
823
  return addHeapObject(ret);
799
824
  };
800
825
 
801
- module.exports.__wbg_versions_ab37218d2f0b24a8 = function(arg0) {
826
+ module.exports.__wbg_versions_e2e78e134e3e5d01 = function(arg0) {
802
827
  const ret = getObject(arg0).versions;
803
828
  return addHeapObject(ret);
804
829
  };
805
830
 
806
- module.exports.__wbg_node_080f4b19d15bc1fe = function(arg0) {
831
+ module.exports.__wbg_node_1cd7a5d853dbea79 = function(arg0) {
807
832
  const ret = getObject(arg0).node;
808
833
  return addHeapObject(ret);
809
834
  };
@@ -813,114 +838,86 @@ module.exports.__wbindgen_is_string = function(arg0) {
813
838
  return ret;
814
839
  };
815
840
 
816
- module.exports.__wbg_msCrypto_6e7d3e1f92610cbb = function(arg0) {
841
+ module.exports.__wbg_msCrypto_bcb970640f50a1e8 = function(arg0) {
817
842
  const ret = getObject(arg0).msCrypto;
818
843
  return addHeapObject(ret);
819
844
  };
820
845
 
821
- module.exports.__wbg_require_78a3dcfbdba9cbce = function() { return handleError(function () {
846
+ module.exports.__wbg_require_8f08ceecec0f4fee = function() { return handleError(function () {
822
847
  const ret = module.require;
823
848
  return addHeapObject(ret);
824
849
  }, arguments) };
825
850
 
826
- module.exports.__wbg_randomFillSync_6894564c2c334c42 = function() { return handleError(function (arg0, arg1, arg2) {
827
- getObject(arg0).randomFillSync(getArrayU8FromWasm0(arg1, arg2));
828
- }, arguments) };
829
-
830
- module.exports.__wbg_getRandomValues_805f1c3d65988a5a = function() { return handleError(function (arg0, arg1) {
831
- getObject(arg0).getRandomValues(getObject(arg1));
832
- }, arguments) };
833
-
834
- module.exports.__wbg_get_27fe3dac1c4d0224 = function(arg0, arg1) {
851
+ module.exports.__wbg_get_44be0491f933a435 = function(arg0, arg1) {
835
852
  const ret = getObject(arg0)[arg1 >>> 0];
836
853
  return addHeapObject(ret);
837
854
  };
838
855
 
839
- module.exports.__wbg_length_e498fbc24f9c1d4f = function(arg0) {
856
+ module.exports.__wbg_length_fff51ee6522a1a18 = function(arg0) {
840
857
  const ret = getObject(arg0).length;
841
858
  return ret;
842
859
  };
843
860
 
844
- module.exports.__wbg_new_b525de17f44a8943 = function() {
861
+ module.exports.__wbg_new_898a68150f225f2e = function() {
845
862
  const ret = new Array();
846
863
  return addHeapObject(ret);
847
864
  };
848
865
 
849
- module.exports.__wbg_newnoargs_2b8b6bd7753c76ba = function(arg0, arg1) {
866
+ module.exports.__wbg_newnoargs_581967eacc0e2604 = function(arg0, arg1) {
850
867
  const ret = new Function(getStringFromWasm0(arg0, arg1));
851
868
  return addHeapObject(ret);
852
869
  };
853
870
 
854
- module.exports.__wbg_next_b7d530c04fd8b217 = function(arg0) {
871
+ module.exports.__wbg_next_526fc47e980da008 = function(arg0) {
855
872
  const ret = getObject(arg0).next;
856
873
  return addHeapObject(ret);
857
874
  };
858
875
 
859
- module.exports.__wbg_next_88560ec06a094dea = function() { return handleError(function (arg0) {
876
+ module.exports.__wbg_next_ddb3312ca1c4e32a = function() { return handleError(function (arg0) {
860
877
  const ret = getObject(arg0).next();
861
878
  return addHeapObject(ret);
862
879
  }, arguments) };
863
880
 
864
- module.exports.__wbg_done_1ebec03bbd919843 = function(arg0) {
881
+ module.exports.__wbg_done_5c1f01fb660d73b5 = function(arg0) {
865
882
  const ret = getObject(arg0).done;
866
883
  return ret;
867
884
  };
868
885
 
869
- module.exports.__wbg_value_6ac8da5cc5b3efda = function(arg0) {
886
+ module.exports.__wbg_value_1695675138684bd5 = function(arg0) {
870
887
  const ret = getObject(arg0).value;
871
888
  return addHeapObject(ret);
872
889
  };
873
890
 
874
- module.exports.__wbg_iterator_55f114446221aa5a = function() {
891
+ module.exports.__wbg_iterator_97f0c81209c6c35a = function() {
875
892
  const ret = Symbol.iterator;
876
893
  return addHeapObject(ret);
877
894
  };
878
895
 
879
- module.exports.__wbg_get_baf4855f9a986186 = function() { return handleError(function (arg0, arg1) {
896
+ module.exports.__wbg_get_97b561fb56f034b5 = function() { return handleError(function (arg0, arg1) {
880
897
  const ret = Reflect.get(getObject(arg0), getObject(arg1));
881
898
  return addHeapObject(ret);
882
899
  }, arguments) };
883
900
 
884
- module.exports.__wbg_call_95d1ea488d03e4e8 = function() { return handleError(function (arg0, arg1) {
901
+ module.exports.__wbg_call_cb65541d95d71282 = function() { return handleError(function (arg0, arg1) {
885
902
  const ret = getObject(arg0).call(getObject(arg1));
886
903
  return addHeapObject(ret);
887
904
  }, arguments) };
888
905
 
889
- module.exports.__wbg_new_f9876326328f45ed = function() {
906
+ module.exports.__wbg_new_b51585de1b234aff = function() {
890
907
  const ret = new Object();
891
908
  return addHeapObject(ret);
892
909
  };
893
910
 
894
- module.exports.__wbg_self_e7c1f827057f6584 = function() { return handleError(function () {
895
- const ret = self.self;
896
- return addHeapObject(ret);
897
- }, arguments) };
898
-
899
- module.exports.__wbg_window_a09ec664e14b1b81 = function() { return handleError(function () {
900
- const ret = window.window;
901
- return addHeapObject(ret);
902
- }, arguments) };
903
-
904
- module.exports.__wbg_globalThis_87cbb8506fecf3a9 = function() { return handleError(function () {
905
- const ret = globalThis.globalThis;
906
- return addHeapObject(ret);
907
- }, arguments) };
908
-
909
- module.exports.__wbg_global_c85a9259e621f3db = function() { return handleError(function () {
910
- const ret = global.global;
911
- return addHeapObject(ret);
912
- }, arguments) };
913
-
914
- module.exports.__wbg_set_17224bc548dd1d7b = function(arg0, arg1, arg2) {
911
+ module.exports.__wbg_set_502d29070ea18557 = function(arg0, arg1, arg2) {
915
912
  getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
916
913
  };
917
914
 
918
- module.exports.__wbg_isArray_39d28997bf6b96b4 = function(arg0) {
915
+ module.exports.__wbg_isArray_4c24b343cb13cfb1 = function(arg0) {
919
916
  const ret = Array.isArray(getObject(arg0));
920
917
  return ret;
921
918
  };
922
919
 
923
- module.exports.__wbg_instanceof_ArrayBuffer_a69f02ee4c4f5065 = function(arg0) {
920
+ module.exports.__wbg_instanceof_ArrayBuffer_39ac22089b74fddb = function(arg0) {
924
921
  let result;
925
922
  try {
926
923
  result = getObject(arg0) instanceof ArrayBuffer;
@@ -931,36 +928,61 @@ module.exports.__wbg_instanceof_ArrayBuffer_a69f02ee4c4f5065 = function(arg0) {
931
928
  return ret;
932
929
  };
933
930
 
934
- module.exports.__wbg_call_9495de66fdbe016b = function() { return handleError(function (arg0, arg1, arg2) {
931
+ module.exports.__wbg_call_01734de55d61e11d = function() { return handleError(function (arg0, arg1, arg2) {
935
932
  const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
936
933
  return addHeapObject(ret);
937
934
  }, arguments) };
938
935
 
939
- module.exports.__wbg_call_99043a1e2a9e5916 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
936
+ module.exports.__wbg_call_776890ca77946e2f = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
940
937
  const ret = getObject(arg0).call(getObject(arg1), getObject(arg2), getObject(arg3), getObject(arg4));
941
938
  return addHeapObject(ret);
942
939
  }, arguments) };
943
940
 
944
- module.exports.__wbg_buffer_cf65c07de34b9a08 = function(arg0) {
941
+ module.exports.__wbg_buffer_085ec1f694018c4f = function(arg0) {
945
942
  const ret = getObject(arg0).buffer;
946
943
  return addHeapObject(ret);
947
944
  };
948
945
 
949
- module.exports.__wbg_new_537b7341ce90bb31 = function(arg0) {
946
+ module.exports.__wbg_self_1ff1d729e9aae938 = function() { return handleError(function () {
947
+ const ret = self.self;
948
+ return addHeapObject(ret);
949
+ }, arguments) };
950
+
951
+ module.exports.__wbg_window_5f4faef6c12b79ec = function() { return handleError(function () {
952
+ const ret = window.window;
953
+ return addHeapObject(ret);
954
+ }, arguments) };
955
+
956
+ module.exports.__wbg_globalThis_1d39714405582d3c = function() { return handleError(function () {
957
+ const ret = globalThis.globalThis;
958
+ return addHeapObject(ret);
959
+ }, arguments) };
960
+
961
+ module.exports.__wbg_global_651f05c6a0944d1c = function() { return handleError(function () {
962
+ const ret = global.global;
963
+ return addHeapObject(ret);
964
+ }, arguments) };
965
+
966
+ module.exports.__wbg_newwithbyteoffsetandlength_6da8e527659b86aa = function(arg0, arg1, arg2) {
967
+ const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
968
+ return addHeapObject(ret);
969
+ };
970
+
971
+ module.exports.__wbg_new_8125e318e6245eed = function(arg0) {
950
972
  const ret = new Uint8Array(getObject(arg0));
951
973
  return addHeapObject(ret);
952
974
  };
953
975
 
954
- module.exports.__wbg_set_17499e8aa4003ebd = function(arg0, arg1, arg2) {
976
+ module.exports.__wbg_set_5cf90238115182c3 = function(arg0, arg1, arg2) {
955
977
  getObject(arg0).set(getObject(arg1), arg2 >>> 0);
956
978
  };
957
979
 
958
- module.exports.__wbg_length_27a2afe8ab42b09f = function(arg0) {
980
+ module.exports.__wbg_length_72e2208bbc0efc61 = function(arg0) {
959
981
  const ret = getObject(arg0).length;
960
982
  return ret;
961
983
  };
962
984
 
963
- module.exports.__wbg_instanceof_Uint8Array_01cebe79ca606cca = function(arg0) {
985
+ module.exports.__wbg_instanceof_Uint8Array_d8d9cb2b8e8ac1d4 = function(arg0) {
964
986
  let result;
965
987
  try {
966
988
  result = getObject(arg0) instanceof Uint8Array;
@@ -971,22 +993,22 @@ module.exports.__wbg_instanceof_Uint8Array_01cebe79ca606cca = function(arg0) {
971
993
  return ret;
972
994
  };
973
995
 
974
- module.exports.__wbg_newwithlength_b56c882b57805732 = function(arg0) {
996
+ module.exports.__wbg_newwithlength_e5d69174d6984cd7 = function(arg0) {
975
997
  const ret = new Uint8Array(arg0 >>> 0);
976
998
  return addHeapObject(ret);
977
999
  };
978
1000
 
979
- module.exports.__wbg_subarray_7526649b91a252a6 = function(arg0, arg1, arg2) {
1001
+ module.exports.__wbg_subarray_13db269f57aa838d = function(arg0, arg1, arg2) {
980
1002
  const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
981
1003
  return addHeapObject(ret);
982
1004
  };
983
1005
 
984
1006
  module.exports.__wbindgen_debug_string = function(arg0, arg1) {
985
1007
  const ret = debugString(getObject(arg1));
986
- const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
987
- const len0 = WASM_VECTOR_LEN;
988
- getInt32Memory0()[arg0 / 4 + 1] = len0;
989
- getInt32Memory0()[arg0 / 4 + 0] = ptr0;
1008
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1009
+ const len1 = WASM_VECTOR_LEN;
1010
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
1011
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
990
1012
  };
991
1013
 
992
1014
  module.exports.__wbindgen_throw = function(arg0, arg1) {