@next/swc-wasm-nodejs 14.1.1-canary.6 → 14.1.1-canary.60

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.
Files changed (4) hide show
  1. package/package.json +1 -1
  2. package/wasm.d.ts +16 -20
  3. package/wasm.js +124 -108
  4. package/wasm_bg.wasm +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next/swc-wasm-nodejs",
3
- "version": "14.1.1-canary.6",
3
+ "version": "14.1.1-canary.60",
4
4
  "files": [
5
5
  "wasm_bg.wasm",
6
6
  "wasm.js",
package/wasm.d.ts CHANGED
@@ -1,6 +1,18 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  /**
4
+ * @param {string} value
5
+ * @param {any} opts
6
+ * @returns {any}
7
+ */
8
+ export function mdxCompileSync(value: string, opts: any): any;
9
+ /**
10
+ * @param {string} value
11
+ * @param {any} opts
12
+ * @returns {Promise<any>}
13
+ */
14
+ export function mdxCompile(value: string, opts: any): Promise<any>;
15
+ /**
4
16
  * @param {string} s
5
17
  * @param {any} opts
6
18
  * @returns {any}
@@ -25,30 +37,14 @@ export function transformSync(s: any, opts: any): any;
25
37
  */
26
38
  export function transform(s: any, opts: any): Promise<any>;
27
39
  /**
28
- * Detect if metadata routes is a dynamic route, which containing
29
- * generateImageMetadata or generateSitemaps as export
30
- * Unlike native bindings, caller should provide the contents of the pages
31
- * sine our wasm bindings does not have access to the file system
32
- * @param {string} page_file_path
33
- * @param {string} page_contents
34
- * @returns {Promise<any>}
35
- */
36
- export function isDynamicMetadataRoute(page_file_path: string, page_contents: string): Promise<any>;
37
- /**
38
- * @param {string} page_file_path
39
- * @param {string} page_contents
40
- * @returns {Promise<any>}
41
- */
42
- export function getPageStaticInfo(page_file_path: string, page_contents: string): Promise<any>;
43
- /**
44
- * @param {string} value
40
+ * @param {string} s
45
41
  * @param {any} opts
46
42
  * @returns {any}
47
43
  */
48
- export function mdxCompileSync(value: string, opts: any): any;
44
+ export function parseSync(s: string, opts: any): any;
49
45
  /**
50
- * @param {string} value
46
+ * @param {string} s
51
47
  * @param {any} opts
52
48
  * @returns {Promise<any>}
53
49
  */
54
- export function mdxCompile(value: string, opts: any): Promise<any>;
50
+ export function parse(s: string, opts: any): Promise<any>;
package/wasm.js CHANGED
@@ -53,14 +53,14 @@ function passStringToWasm0(arg, malloc, realloc) {
53
53
 
54
54
  if (realloc === undefined) {
55
55
  const buf = cachedTextEncoder.encode(arg);
56
- const ptr = malloc(buf.length);
56
+ const ptr = malloc(buf.length, 1) >>> 0;
57
57
  getUint8Memory0().subarray(ptr, ptr + buf.length).set(buf);
58
58
  WASM_VECTOR_LEN = buf.length;
59
59
  return ptr;
60
60
  }
61
61
 
62
62
  let len = arg.length;
63
- let ptr = malloc(len);
63
+ let ptr = malloc(len, 1) >>> 0;
64
64
 
65
65
  const mem = getUint8Memory0();
66
66
 
@@ -76,11 +76,12 @@ function passStringToWasm0(arg, malloc, realloc) {
76
76
  if (offset !== 0) {
77
77
  arg = arg.slice(offset);
78
78
  }
79
- ptr = realloc(ptr, len, len = offset + arg.length * 3);
79
+ ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
80
80
  const view = getUint8Memory0().subarray(ptr + offset, ptr + len);
81
81
  const ret = encodeString(arg, view);
82
82
 
83
83
  offset += ret.written;
84
+ ptr = realloc(ptr, len, offset, 1) >>> 0;
84
85
  }
85
86
 
86
87
  WASM_VECTOR_LEN = offset;
@@ -123,6 +124,7 @@ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true
123
124
  cachedTextDecoder.decode();
124
125
 
125
126
  function getStringFromWasm0(ptr, len) {
127
+ ptr = ptr >>> 0;
126
128
  return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
127
129
  }
128
130
 
@@ -200,6 +202,12 @@ function debugString(val) {
200
202
  return className;
201
203
  }
202
204
 
205
+ const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
206
+ ? { register: () => {}, unregister: () => {} }
207
+ : new FinalizationRegistry(state => {
208
+ wasm.__wbindgen_export_2.get(state.dtor)(state.a, state.b)
209
+ });
210
+
203
211
  function makeMutClosure(arg0, arg1, dtor, f) {
204
212
  const state = { a: arg0, b: arg1, cnt: 1, dtor };
205
213
  const real = (...args) => {
@@ -214,20 +222,51 @@ function makeMutClosure(arg0, arg1, dtor, f) {
214
222
  } finally {
215
223
  if (--state.cnt === 0) {
216
224
  wasm.__wbindgen_export_2.get(state.dtor)(a, state.b);
217
-
225
+ CLOSURE_DTORS.unregister(state);
218
226
  } else {
219
227
  state.a = a;
220
228
  }
221
229
  }
222
230
  };
223
231
  real.original = state;
224
-
232
+ CLOSURE_DTORS.register(real, state, state);
225
233
  return real;
226
234
  }
227
235
  function __wbg_adapter_48(arg0, arg1, arg2) {
228
- wasm.wasm_bindgen_3fb300003f18f35c___convert__closures__invoke1_mut___wasm_bindgen_3fb300003f18f35c___JsValue_____(arg0, arg1, addHeapObject(arg2));
236
+ wasm._dyn_core_80dd73c7ef3d55e5___ops__function__FnMut_______Output______as_wasm_bindgen_19194eebc680be5___closure__WasmClosure___describe__invoke___wasm_bindgen_19194eebc680be5___JsValue_____(arg0, arg1, addHeapObject(arg2));
229
237
  }
230
238
 
239
+ /**
240
+ * @param {string} value
241
+ * @param {any} opts
242
+ * @returns {any}
243
+ */
244
+ module.exports.mdxCompileSync = function(value, opts) {
245
+ try {
246
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
247
+ wasm.mdxCompileSync(retptr, addHeapObject(value), addHeapObject(opts));
248
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
249
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
250
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
251
+ if (r2) {
252
+ throw takeObject(r1);
253
+ }
254
+ return takeObject(r0);
255
+ } finally {
256
+ wasm.__wbindgen_add_to_stack_pointer(16);
257
+ }
258
+ };
259
+
260
+ /**
261
+ * @param {string} value
262
+ * @param {any} opts
263
+ * @returns {Promise<any>}
264
+ */
265
+ module.exports.mdxCompile = function(value, opts) {
266
+ const ret = wasm.mdxCompile(addHeapObject(value), addHeapObject(opts));
267
+ return takeObject(ret);
268
+ };
269
+
231
270
  /**
232
271
  * @param {string} s
233
272
  * @param {any} opts
@@ -291,46 +330,14 @@ module.exports.transform = function(s, opts) {
291
330
  };
292
331
 
293
332
  /**
294
- * Detect if metadata routes is a dynamic route, which containing
295
- * generateImageMetadata or generateSitemaps as export
296
- * Unlike native bindings, caller should provide the contents of the pages
297
- * sine our wasm bindings does not have access to the file system
298
- * @param {string} page_file_path
299
- * @param {string} page_contents
300
- * @returns {Promise<any>}
301
- */
302
- module.exports.isDynamicMetadataRoute = function(page_file_path, page_contents) {
303
- const ptr0 = passStringToWasm0(page_file_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
304
- const len0 = WASM_VECTOR_LEN;
305
- const ptr1 = passStringToWasm0(page_contents, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
306
- const len1 = WASM_VECTOR_LEN;
307
- const ret = wasm.isDynamicMetadataRoute(ptr0, len0, ptr1, len1);
308
- return takeObject(ret);
309
- };
310
-
311
- /**
312
- * @param {string} page_file_path
313
- * @param {string} page_contents
314
- * @returns {Promise<any>}
315
- */
316
- module.exports.getPageStaticInfo = function(page_file_path, page_contents) {
317
- const ptr0 = passStringToWasm0(page_file_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
318
- const len0 = WASM_VECTOR_LEN;
319
- const ptr1 = passStringToWasm0(page_contents, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
320
- const len1 = WASM_VECTOR_LEN;
321
- const ret = wasm.getPageStaticInfo(ptr0, len0, ptr1, len1);
322
- return takeObject(ret);
323
- };
324
-
325
- /**
326
- * @param {string} value
333
+ * @param {string} s
327
334
  * @param {any} opts
328
335
  * @returns {any}
329
336
  */
330
- module.exports.mdxCompileSync = function(value, opts) {
337
+ module.exports.parseSync = function(s, opts) {
331
338
  try {
332
339
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
333
- wasm.mdxCompileSync(retptr, addHeapObject(value), addHeapObject(opts));
340
+ wasm.parseSync(retptr, addHeapObject(s), addHeapObject(opts));
334
341
  var r0 = getInt32Memory0()[retptr / 4 + 0];
335
342
  var r1 = getInt32Memory0()[retptr / 4 + 1];
336
343
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -344,12 +351,12 @@ module.exports.mdxCompileSync = function(value, opts) {
344
351
  };
345
352
 
346
353
  /**
347
- * @param {string} value
354
+ * @param {string} s
348
355
  * @param {any} opts
349
356
  * @returns {Promise<any>}
350
357
  */
351
- module.exports.mdxCompile = function(value, opts) {
352
- const ret = wasm.mdxCompile(addHeapObject(value), addHeapObject(opts));
358
+ module.exports.parse = function(s, opts) {
359
+ const ret = wasm.parse(addHeapObject(s), addHeapObject(opts));
353
360
  return takeObject(ret);
354
361
  };
355
362
 
@@ -368,8 +375,8 @@ function handleError(f, args) {
368
375
  wasm.__wbindgen_exn_store(addHeapObject(e));
369
376
  }
370
377
  }
371
- function __wbg_adapter_121(arg0, arg1, arg2, arg3) {
372
- wasm.wasm_bindgen_3fb300003f18f35c___convert__closures__invoke2_mut___wasm_bindgen_3fb300003f18f35c___JsValue__wasm_bindgen_3fb300003f18f35c___JsValue_____(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
378
+ function __wbg_adapter_125(arg0, arg1, arg2, arg3) {
379
+ wasm.wasm_bindgen_19194eebc680be5___convert__closures__invoke2_mut___wasm_bindgen_19194eebc680be5___JsValue__wasm_bindgen_19194eebc680be5___JsValue_____(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
373
380
  }
374
381
 
375
382
  module.exports.__wbindgen_object_drop_ref = function(arg0) {
@@ -379,10 +386,10 @@ module.exports.__wbindgen_object_drop_ref = function(arg0) {
379
386
  module.exports.__wbindgen_string_get = function(arg0, arg1) {
380
387
  const obj = getObject(arg1);
381
388
  const ret = typeof(obj) === 'string' ? obj : undefined;
382
- var ptr0 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
383
- var len0 = WASM_VECTOR_LEN;
384
- getInt32Memory0()[arg0 / 4 + 1] = len0;
385
- getInt32Memory0()[arg0 / 4 + 0] = ptr0;
389
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
390
+ var len1 = WASM_VECTOR_LEN;
391
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
392
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
386
393
  };
387
394
 
388
395
  module.exports.__wbindgen_boolean_get = function(arg0) {
@@ -439,13 +446,13 @@ module.exports.__wbindgen_is_undefined = function(arg0) {
439
446
  return ret;
440
447
  };
441
448
 
442
- module.exports.__wbindgen_string_new = function(arg0, arg1) {
443
- const ret = getStringFromWasm0(arg0, arg1);
449
+ module.exports.__wbindgen_error_new = function(arg0, arg1) {
450
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
444
451
  return addHeapObject(ret);
445
452
  };
446
453
 
447
- module.exports.__wbindgen_error_new = function(arg0, arg1) {
448
- const ret = new Error(getStringFromWasm0(arg0, arg1));
454
+ module.exports.__wbindgen_string_new = function(arg0, arg1) {
455
+ const ret = getStringFromWasm0(arg0, arg1);
449
456
  return addHeapObject(ret);
450
457
  };
451
458
 
@@ -456,18 +463,28 @@ module.exports.__wbg_new_abda76e883ba8a5f = function() {
456
463
 
457
464
  module.exports.__wbg_stack_658279fe44541cf6 = function(arg0, arg1) {
458
465
  const ret = getObject(arg1).stack;
459
- const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
460
- const len0 = WASM_VECTOR_LEN;
461
- getInt32Memory0()[arg0 / 4 + 1] = len0;
462
- getInt32Memory0()[arg0 / 4 + 0] = ptr0;
466
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
467
+ const len1 = WASM_VECTOR_LEN;
468
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
469
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
463
470
  };
464
471
 
465
472
  module.exports.__wbg_error_f851667af71bcfc6 = function(arg0, arg1) {
466
473
  var v0 = getCachedStringFromWasm0(arg0, arg1);
467
- if (arg0 !== 0) { wasm.__wbindgen_free(arg0, arg1); }
474
+ if (arg0 !== 0) { wasm.__wbindgen_free(arg0, arg1, 1); }
468
475
  console.error(v0);
469
476
  };
470
477
 
478
+ module.exports.__wbg_queueMicrotask_f82fc5d1e8f816ae = function(arg0) {
479
+ const ret = getObject(arg0).queueMicrotask;
480
+ return addHeapObject(ret);
481
+ };
482
+
483
+ module.exports.__wbindgen_is_function = function(arg0) {
484
+ const ret = typeof(getObject(arg0)) === 'function';
485
+ return ret;
486
+ };
487
+
471
488
  module.exports.__wbindgen_cb_drop = function(arg0) {
472
489
  const obj = takeObject(arg0).original;
473
490
  if (obj.cnt-- == 1) {
@@ -478,6 +495,10 @@ module.exports.__wbindgen_cb_drop = function(arg0) {
478
495
  return ret;
479
496
  };
480
497
 
498
+ module.exports.__wbg_queueMicrotask_f61ee94ee663068b = function(arg0) {
499
+ queueMicrotask(getObject(arg0));
500
+ };
501
+
481
502
  module.exports.__wbindgen_object_clone_ref = function(arg0) {
482
503
  const ret = getObject(arg0);
483
504
  return addHeapObject(ret);
@@ -540,146 +561,141 @@ module.exports.__wbg_getRandomValues_37fa2ca9e4e07fab = function() { return hand
540
561
  getObject(arg0).getRandomValues(getObject(arg1));
541
562
  }, arguments) };
542
563
 
543
- module.exports.__wbg_get_27fe3dac1c4d0224 = function(arg0, arg1) {
564
+ module.exports.__wbg_get_0ee8ea3c7c984c45 = function(arg0, arg1) {
544
565
  const ret = getObject(arg0)[arg1 >>> 0];
545
566
  return addHeapObject(ret);
546
567
  };
547
568
 
548
- module.exports.__wbg_length_e498fbc24f9c1d4f = function(arg0) {
569
+ module.exports.__wbg_length_161c0d89c6535c1d = function(arg0) {
549
570
  const ret = getObject(arg0).length;
550
571
  return ret;
551
572
  };
552
573
 
553
- module.exports.__wbindgen_is_function = function(arg0) {
554
- const ret = typeof(getObject(arg0)) === 'function';
555
- return ret;
556
- };
557
-
558
- module.exports.__wbg_newnoargs_2b8b6bd7753c76ba = function(arg0, arg1) {
574
+ module.exports.__wbg_newnoargs_cfecb3965268594c = function(arg0, arg1) {
559
575
  var v0 = getCachedStringFromWasm0(arg0, arg1);
560
576
  const ret = new Function(v0);
561
577
  return addHeapObject(ret);
562
578
  };
563
579
 
564
- module.exports.__wbg_next_b7d530c04fd8b217 = function(arg0) {
580
+ module.exports.__wbg_next_586204376d2ed373 = function(arg0) {
565
581
  const ret = getObject(arg0).next;
566
582
  return addHeapObject(ret);
567
583
  };
568
584
 
569
- module.exports.__wbg_next_88560ec06a094dea = function() { return handleError(function (arg0) {
585
+ module.exports.__wbg_next_b2d3366343a208b3 = function() { return handleError(function (arg0) {
570
586
  const ret = getObject(arg0).next();
571
587
  return addHeapObject(ret);
572
588
  }, arguments) };
573
589
 
574
- module.exports.__wbg_done_1ebec03bbd919843 = function(arg0) {
590
+ module.exports.__wbg_done_90b14d6f6eacc42f = function(arg0) {
575
591
  const ret = getObject(arg0).done;
576
592
  return ret;
577
593
  };
578
594
 
579
- module.exports.__wbg_value_6ac8da5cc5b3efda = function(arg0) {
595
+ module.exports.__wbg_value_3158be908c80a75e = function(arg0) {
580
596
  const ret = getObject(arg0).value;
581
597
  return addHeapObject(ret);
582
598
  };
583
599
 
584
- module.exports.__wbg_iterator_55f114446221aa5a = function() {
600
+ module.exports.__wbg_iterator_40027cdd598da26b = function() {
585
601
  const ret = Symbol.iterator;
586
602
  return addHeapObject(ret);
587
603
  };
588
604
 
589
- module.exports.__wbg_get_baf4855f9a986186 = function() { return handleError(function (arg0, arg1) {
605
+ module.exports.__wbg_get_3fddfed2c83f434c = function() { return handleError(function (arg0, arg1) {
590
606
  const ret = Reflect.get(getObject(arg0), getObject(arg1));
591
607
  return addHeapObject(ret);
592
608
  }, arguments) };
593
609
 
594
- module.exports.__wbg_call_95d1ea488d03e4e8 = function() { return handleError(function (arg0, arg1) {
610
+ module.exports.__wbg_call_3f093dd26d5569f8 = function() { return handleError(function (arg0, arg1) {
595
611
  const ret = getObject(arg0).call(getObject(arg1));
596
612
  return addHeapObject(ret);
597
613
  }, arguments) };
598
614
 
599
- module.exports.__wbg_self_e7c1f827057f6584 = function() { return handleError(function () {
615
+ module.exports.__wbg_self_05040bd9523805b9 = function() { return handleError(function () {
600
616
  const ret = self.self;
601
617
  return addHeapObject(ret);
602
618
  }, arguments) };
603
619
 
604
- module.exports.__wbg_window_a09ec664e14b1b81 = function() { return handleError(function () {
620
+ module.exports.__wbg_window_adc720039f2cb14f = function() { return handleError(function () {
605
621
  const ret = window.window;
606
622
  return addHeapObject(ret);
607
623
  }, arguments) };
608
624
 
609
- module.exports.__wbg_globalThis_87cbb8506fecf3a9 = function() { return handleError(function () {
625
+ module.exports.__wbg_globalThis_622105db80c1457d = function() { return handleError(function () {
610
626
  const ret = globalThis.globalThis;
611
627
  return addHeapObject(ret);
612
628
  }, arguments) };
613
629
 
614
- module.exports.__wbg_global_c85a9259e621f3db = function() { return handleError(function () {
630
+ module.exports.__wbg_global_f56b013ed9bcf359 = function() { return handleError(function () {
615
631
  const ret = global.global;
616
632
  return addHeapObject(ret);
617
633
  }, arguments) };
618
634
 
619
- module.exports.__wbg_isArray_39d28997bf6b96b4 = function(arg0) {
635
+ module.exports.__wbg_isArray_e783c41d0dd19b44 = function(arg0) {
620
636
  const ret = Array.isArray(getObject(arg0));
621
637
  return ret;
622
638
  };
623
639
 
624
- module.exports.__wbg_instanceof_ArrayBuffer_a69f02ee4c4f5065 = function(arg0) {
640
+ module.exports.__wbg_instanceof_ArrayBuffer_9221fa854ffb71b5 = function(arg0) {
625
641
  let result;
626
642
  try {
627
643
  result = getObject(arg0) instanceof ArrayBuffer;
628
- } catch {
644
+ } catch (_) {
629
645
  result = false;
630
646
  }
631
647
  const ret = result;
632
648
  return ret;
633
649
  };
634
650
 
635
- module.exports.__wbg_call_9495de66fdbe016b = function() { return handleError(function (arg0, arg1, arg2) {
651
+ module.exports.__wbg_call_67f2111acd2dfdb6 = function() { return handleError(function (arg0, arg1, arg2) {
636
652
  const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
637
653
  return addHeapObject(ret);
638
654
  }, arguments) };
639
655
 
640
- module.exports.__wbg_isSafeInteger_8c4789029e885159 = function(arg0) {
656
+ module.exports.__wbg_isSafeInteger_a23a66ee7c41b273 = function(arg0) {
641
657
  const ret = Number.isSafeInteger(getObject(arg0));
642
658
  return ret;
643
659
  };
644
660
 
645
- module.exports.__wbg_getTime_7c59072d1651a3cf = function(arg0) {
661
+ module.exports.__wbg_getTime_0e03c3f524be31ef = function(arg0) {
646
662
  const ret = getObject(arg0).getTime();
647
663
  return ret;
648
664
  };
649
665
 
650
- module.exports.__wbg_getTimezoneOffset_2a6b27fb18493a56 = function(arg0) {
666
+ module.exports.__wbg_getTimezoneOffset_840b552f34917133 = function(arg0) {
651
667
  const ret = getObject(arg0).getTimezoneOffset();
652
668
  return ret;
653
669
  };
654
670
 
655
- module.exports.__wbg_new_f127e324c1313064 = function(arg0) {
671
+ module.exports.__wbg_new_a9d80688888b4894 = function(arg0) {
656
672
  const ret = new Date(getObject(arg0));
657
673
  return addHeapObject(ret);
658
674
  };
659
675
 
660
- module.exports.__wbg_new0_25059e40b1c02766 = function() {
676
+ module.exports.__wbg_new0_7a6141101f2206da = function() {
661
677
  const ret = new Date();
662
678
  return addHeapObject(ret);
663
679
  };
664
680
 
665
- module.exports.__wbg_entries_4e1315b774245952 = function(arg0) {
681
+ module.exports.__wbg_entries_488960b196cfb6a5 = function(arg0) {
666
682
  const ret = Object.entries(getObject(arg0));
667
683
  return addHeapObject(ret);
668
684
  };
669
685
 
670
- module.exports.__wbg_new_f9876326328f45ed = function() {
686
+ module.exports.__wbg_new_632630b5cec17f21 = function() {
671
687
  const ret = new Object();
672
688
  return addHeapObject(ret);
673
689
  };
674
690
 
675
- module.exports.__wbg_new_9d3a9ce4282a18a8 = function(arg0, arg1) {
691
+ module.exports.__wbg_new_70828a4353259d4b = function(arg0, arg1) {
676
692
  try {
677
693
  var state0 = {a: arg0, b: arg1};
678
694
  var cb0 = (arg0, arg1) => {
679
695
  const a = state0.a;
680
696
  state0.a = 0;
681
697
  try {
682
- return __wbg_adapter_121(a, state0.b, arg0, arg1);
698
+ return __wbg_adapter_125(a, state0.b, arg0, arg1);
683
699
  } finally {
684
700
  state0.a = a;
685
701
  }
@@ -691,57 +707,57 @@ module.exports.__wbg_new_9d3a9ce4282a18a8 = function(arg0, arg1) {
691
707
  }
692
708
  };
693
709
 
694
- module.exports.__wbg_resolve_fd40f858d9db1a04 = function(arg0) {
710
+ module.exports.__wbg_resolve_5da6faf2c96fd1d5 = function(arg0) {
695
711
  const ret = Promise.resolve(getObject(arg0));
696
712
  return addHeapObject(ret);
697
713
  };
698
714
 
699
- module.exports.__wbg_then_ec5db6d509eb475f = function(arg0, arg1) {
715
+ module.exports.__wbg_then_f9e58f5a50f43eae = function(arg0, arg1) {
700
716
  const ret = getObject(arg0).then(getObject(arg1));
701
717
  return addHeapObject(ret);
702
718
  };
703
719
 
704
- module.exports.__wbg_buffer_cf65c07de34b9a08 = function(arg0) {
720
+ module.exports.__wbg_buffer_b914fb8b50ebbc3e = function(arg0) {
705
721
  const ret = getObject(arg0).buffer;
706
722
  return addHeapObject(ret);
707
723
  };
708
724
 
709
- module.exports.__wbg_newwithbyteoffsetandlength_9fb2f11355ecadf5 = function(arg0, arg1, arg2) {
725
+ module.exports.__wbg_newwithbyteoffsetandlength_0de9ee56e9f6ee6e = function(arg0, arg1, arg2) {
710
726
  const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
711
727
  return addHeapObject(ret);
712
728
  };
713
729
 
714
- module.exports.__wbg_new_537b7341ce90bb31 = function(arg0) {
730
+ module.exports.__wbg_new_b1f2d6842d615181 = function(arg0) {
715
731
  const ret = new Uint8Array(getObject(arg0));
716
732
  return addHeapObject(ret);
717
733
  };
718
734
 
719
- module.exports.__wbg_set_17499e8aa4003ebd = function(arg0, arg1, arg2) {
735
+ module.exports.__wbg_set_7d988c98e6ced92d = function(arg0, arg1, arg2) {
720
736
  getObject(arg0).set(getObject(arg1), arg2 >>> 0);
721
737
  };
722
738
 
723
- module.exports.__wbg_length_27a2afe8ab42b09f = function(arg0) {
739
+ module.exports.__wbg_length_21c4b0ae73cba59d = function(arg0) {
724
740
  const ret = getObject(arg0).length;
725
741
  return ret;
726
742
  };
727
743
 
728
- module.exports.__wbg_instanceof_Uint8Array_01cebe79ca606cca = function(arg0) {
744
+ module.exports.__wbg_instanceof_Uint8Array_c299a4ee232e76ba = function(arg0) {
729
745
  let result;
730
746
  try {
731
747
  result = getObject(arg0) instanceof Uint8Array;
732
- } catch {
748
+ } catch (_) {
733
749
  result = false;
734
750
  }
735
751
  const ret = result;
736
752
  return ret;
737
753
  };
738
754
 
739
- module.exports.__wbg_newwithlength_b56c882b57805732 = function(arg0) {
755
+ module.exports.__wbg_newwithlength_0d03cef43b68a530 = function(arg0) {
740
756
  const ret = new Uint8Array(arg0 >>> 0);
741
757
  return addHeapObject(ret);
742
758
  };
743
759
 
744
- module.exports.__wbg_subarray_7526649b91a252a6 = function(arg0, arg1, arg2) {
760
+ module.exports.__wbg_subarray_adc418253d76e2f1 = function(arg0, arg1, arg2) {
745
761
  const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
746
762
  return addHeapObject(ret);
747
763
  };
@@ -755,10 +771,10 @@ module.exports.__wbindgen_bigint_get_as_i64 = function(arg0, arg1) {
755
771
 
756
772
  module.exports.__wbindgen_debug_string = function(arg0, arg1) {
757
773
  const ret = debugString(getObject(arg1));
758
- const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
759
- const len0 = WASM_VECTOR_LEN;
760
- getInt32Memory0()[arg0 / 4 + 1] = len0;
761
- getInt32Memory0()[arg0 / 4 + 0] = ptr0;
774
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
775
+ const len1 = WASM_VECTOR_LEN;
776
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
777
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
762
778
  };
763
779
 
764
780
  module.exports.__wbindgen_throw = function(arg0, arg1) {
@@ -770,8 +786,8 @@ module.exports.__wbindgen_memory = function() {
770
786
  return addHeapObject(ret);
771
787
  };
772
788
 
773
- module.exports.__wbindgen_closure_wrapper14626 = function(arg0, arg1, arg2) {
774
- const ret = makeMutClosure(arg0, arg1, 3221, __wbg_adapter_48);
789
+ module.exports.__wbindgen_closure_wrapper14852 = function(arg0, arg1, arg2) {
790
+ const ret = makeMutClosure(arg0, arg1, 3287, __wbg_adapter_48);
775
791
  return addHeapObject(ret);
776
792
  };
777
793
 
package/wasm_bg.wasm CHANGED
Binary file