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

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 +317 -318
  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.9",
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
@@ -1,7 +1,7 @@
1
1
  let imports = {};
2
2
  imports['__wbindgen_placeholder__'] = module.exports;
3
3
  let wasm;
4
- const { TextEncoder, TextDecoder } = require(`util`);
4
+ const { TextDecoder, TextEncoder } = require(`util`);
5
5
 
6
6
  const heap = new Array(128).fill(undefined);
7
7
 
@@ -23,7 +23,18 @@ function takeObject(idx) {
23
23
  return ret;
24
24
  }
25
25
 
26
- let WASM_VECTOR_LEN = 0;
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
+
35
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
36
+
37
+ cachedTextDecoder.decode();
27
38
 
28
39
  let cachedUint8Memory0 = null;
29
40
 
@@ -34,6 +45,34 @@ function getUint8Memory0() {
34
45
  return cachedUint8Memory0;
35
46
  }
36
47
 
48
+ function getStringFromWasm0(ptr, len) {
49
+ return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
50
+ }
51
+
52
+ function isLikeNone(x) {
53
+ return x === undefined || x === null;
54
+ }
55
+
56
+ let cachedFloat64Memory0 = null;
57
+
58
+ function getFloat64Memory0() {
59
+ if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
60
+ cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
61
+ }
62
+ return cachedFloat64Memory0;
63
+ }
64
+
65
+ let cachedInt32Memory0 = null;
66
+
67
+ function getInt32Memory0() {
68
+ if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
69
+ cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
70
+ }
71
+ return cachedInt32Memory0;
72
+ }
73
+
74
+ let WASM_VECTOR_LEN = 0;
75
+
37
76
  let cachedTextEncoder = new TextEncoder('utf-8');
38
77
 
39
78
  const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
@@ -87,45 +126,6 @@ function passStringToWasm0(arg, malloc, realloc) {
87
126
  return ptr;
88
127
  }
89
128
 
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
- return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
127
- }
128
-
129
129
  let cachedBigInt64Memory0 = null;
130
130
 
131
131
  function getBigInt64Memory0() {
@@ -225,8 +225,58 @@ function makeMutClosure(arg0, arg1, dtor, f) {
225
225
  return real;
226
226
  }
227
227
  function __wbg_adapter_48(arg0, arg1, arg2) {
228
- wasm.wasm_bindgen_3fb300003f18f35c___convert__closures__invoke1_mut___wasm_bindgen_3fb300003f18f35c___JsValue_____(arg0, arg1, addHeapObject(arg2));
228
+ wasm.wasm_bindgen_39630e0829e5c267___convert__closures__invoke1_mut___wasm_bindgen_39630e0829e5c267___JsValue_____(arg0, arg1, addHeapObject(arg2));
229
+ }
230
+
231
+ function getCachedStringFromWasm0(ptr, len) {
232
+ if (ptr === 0) {
233
+ return getObject(len);
234
+ } else {
235
+ return getStringFromWasm0(ptr, len);
236
+ }
237
+ }
238
+
239
+ function handleError(f, args) {
240
+ try {
241
+ return f.apply(this, args);
242
+ } catch (e) {
243
+ wasm.__wbindgen_exn_store(addHeapObject(e));
244
+ }
229
245
  }
246
+ function __wbg_adapter_109(arg0, arg1, arg2, arg3) {
247
+ wasm.wasm_bindgen_39630e0829e5c267___convert__closures__invoke2_mut___wasm_bindgen_39630e0829e5c267___JsValue__wasm_bindgen_39630e0829e5c267___JsValue_____(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
248
+ }
249
+
250
+ /**
251
+ * @param {string} value
252
+ * @param {any} opts
253
+ * @returns {any}
254
+ */
255
+ module.exports.mdxCompileSync = function(value, opts) {
256
+ try {
257
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
258
+ wasm.mdxCompileSync(retptr, addHeapObject(value), addHeapObject(opts));
259
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
260
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
261
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
262
+ if (r2) {
263
+ throw takeObject(r1);
264
+ }
265
+ return takeObject(r0);
266
+ } finally {
267
+ wasm.__wbindgen_add_to_stack_pointer(16);
268
+ }
269
+ };
270
+
271
+ /**
272
+ * @param {string} value
273
+ * @param {any} opts
274
+ * @returns {Promise<any>}
275
+ */
276
+ module.exports.mdxCompile = function(value, opts) {
277
+ const ret = wasm.mdxCompile(addHeapObject(value), addHeapObject(opts));
278
+ return takeObject(ret);
279
+ };
230
280
 
231
281
  /**
232
282
  * @param {string} s
@@ -291,46 +341,14 @@ module.exports.transform = function(s, opts) {
291
341
  };
292
342
 
293
343
  /**
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
344
+ * @param {string} s
327
345
  * @param {any} opts
328
346
  * @returns {any}
329
347
  */
330
- module.exports.mdxCompileSync = function(value, opts) {
348
+ module.exports.parseSync = function(s, opts) {
331
349
  try {
332
350
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
333
- wasm.mdxCompileSync(retptr, addHeapObject(value), addHeapObject(opts));
351
+ wasm.parseSync(retptr, addHeapObject(s), addHeapObject(opts));
334
352
  var r0 = getInt32Memory0()[retptr / 4 + 0];
335
353
  var r1 = getInt32Memory0()[retptr / 4 + 1];
336
354
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -344,111 +362,44 @@ module.exports.mdxCompileSync = function(value, opts) {
344
362
  };
345
363
 
346
364
  /**
347
- * @param {string} value
365
+ * @param {string} s
348
366
  * @param {any} opts
349
367
  * @returns {Promise<any>}
350
368
  */
351
- module.exports.mdxCompile = function(value, opts) {
352
- const ret = wasm.mdxCompile(addHeapObject(value), addHeapObject(opts));
369
+ module.exports.parse = function(s, opts) {
370
+ const ret = wasm.parse(addHeapObject(s), addHeapObject(opts));
353
371
  return takeObject(ret);
354
372
  };
355
373
 
356
- function getCachedStringFromWasm0(ptr, len) {
357
- if (ptr === 0) {
358
- return getObject(len);
359
- } else {
360
- return getStringFromWasm0(ptr, len);
361
- }
362
- }
363
-
364
- function handleError(f, args) {
365
- try {
366
- return f.apply(this, args);
367
- } catch (e) {
368
- wasm.__wbindgen_exn_store(addHeapObject(e));
369
- }
370
- }
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));
373
- }
374
+ module.exports.__wbg_new0_25059e40b1c02766 = function() {
375
+ const ret = new Date();
376
+ return addHeapObject(ret);
377
+ };
374
378
 
375
379
  module.exports.__wbindgen_object_drop_ref = function(arg0) {
376
380
  takeObject(arg0);
377
381
  };
378
382
 
379
- module.exports.__wbindgen_string_get = function(arg0, arg1) {
380
- const obj = getObject(arg1);
381
- 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;
386
- };
387
-
388
- module.exports.__wbindgen_boolean_get = function(arg0) {
389
- const v = getObject(arg0);
390
- const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
391
- return ret;
392
- };
393
-
394
- module.exports.__wbindgen_is_bigint = function(arg0) {
395
- const ret = typeof(getObject(arg0)) === 'bigint';
396
- return ret;
397
- };
398
-
399
- module.exports.__wbindgen_bigint_from_i64 = function(arg0) {
383
+ module.exports.__wbindgen_number_new = function(arg0) {
400
384
  const ret = arg0;
401
385
  return addHeapObject(ret);
402
386
  };
403
387
 
404
- module.exports.__wbindgen_jsval_eq = function(arg0, arg1) {
405
- const ret = getObject(arg0) === getObject(arg1);
406
- return ret;
407
- };
408
-
409
- module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
410
- const ret = BigInt.asUintN(64, arg0);
388
+ module.exports.__wbg_new_f127e324c1313064 = function(arg0) {
389
+ const ret = new Date(getObject(arg0));
411
390
  return addHeapObject(ret);
412
391
  };
413
392
 
414
- module.exports.__wbindgen_number_get = function(arg0, arg1) {
415
- const obj = getObject(arg1);
416
- const ret = typeof(obj) === 'number' ? obj : undefined;
417
- getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
418
- getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
419
- };
420
-
421
- module.exports.__wbindgen_is_object = function(arg0) {
422
- const val = getObject(arg0);
423
- const ret = typeof(val) === 'object' && val !== null;
424
- return ret;
425
- };
426
-
427
- module.exports.__wbindgen_in = function(arg0, arg1) {
428
- const ret = getObject(arg0) in getObject(arg1);
429
- return ret;
430
- };
431
-
432
- module.exports.__wbindgen_is_string = function(arg0) {
433
- const ret = typeof(getObject(arg0)) === 'string';
393
+ module.exports.__wbg_getTimezoneOffset_2a6b27fb18493a56 = function(arg0) {
394
+ const ret = getObject(arg0).getTimezoneOffset();
434
395
  return ret;
435
396
  };
436
397
 
437
- module.exports.__wbindgen_is_undefined = function(arg0) {
438
- const ret = getObject(arg0) === undefined;
398
+ module.exports.__wbg_getTime_7c59072d1651a3cf = function(arg0) {
399
+ const ret = getObject(arg0).getTime();
439
400
  return ret;
440
401
  };
441
402
 
442
- module.exports.__wbindgen_string_new = function(arg0, arg1) {
443
- const ret = getStringFromWasm0(arg0, arg1);
444
- return addHeapObject(ret);
445
- };
446
-
447
- module.exports.__wbindgen_error_new = function(arg0, arg1) {
448
- const ret = new Error(getStringFromWasm0(arg0, arg1));
449
- return addHeapObject(ret);
450
- };
451
-
452
403
  module.exports.__wbg_new_abda76e883ba8a5f = function() {
453
404
  const ret = new Error();
454
405
  return addHeapObject(ret);
@@ -468,38 +419,82 @@ if (arg0 !== 0) { wasm.__wbindgen_free(arg0, arg1); }
468
419
  console.error(v0);
469
420
  };
470
421
 
471
- module.exports.__wbindgen_cb_drop = function(arg0) {
472
- const obj = takeObject(arg0).original;
473
- if (obj.cnt-- == 1) {
474
- obj.a = 0;
475
- return true;
476
- }
477
- const ret = false;
478
- return ret;
422
+ module.exports.__wbindgen_memory = function() {
423
+ const ret = wasm.memory;
424
+ return addHeapObject(ret);
479
425
  };
480
426
 
481
- module.exports.__wbindgen_object_clone_ref = function(arg0) {
482
- const ret = getObject(arg0);
427
+ module.exports.__wbg_buffer_cf65c07de34b9a08 = function(arg0) {
428
+ const ret = getObject(arg0).buffer;
483
429
  return addHeapObject(ret);
484
430
  };
485
431
 
486
- module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
487
- const ret = getObject(arg0) == getObject(arg1);
488
- return ret;
489
- };
432
+ module.exports.__wbg_newwithbyteoffsetandlength_9fb2f11355ecadf5 = function(arg0, arg1, arg2) {
433
+ const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
434
+ return addHeapObject(ret);
435
+ };
490
436
 
491
- module.exports.__wbindgen_number_new = function(arg0) {
492
- const ret = arg0;
437
+ module.exports.__wbg_randomFillSync_dc1e9a60c158336d = function() { return handleError(function (arg0, arg1) {
438
+ getObject(arg0).randomFillSync(takeObject(arg1));
439
+ }, arguments) };
440
+
441
+ module.exports.__wbg_subarray_7526649b91a252a6 = function(arg0, arg1, arg2) {
442
+ const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
493
443
  return addHeapObject(ret);
494
444
  };
495
445
 
496
- module.exports.__wbg_getwithrefkey_15c62c2b8546208d = function(arg0, arg1) {
497
- const ret = getObject(arg0)[getObject(arg1)];
446
+ module.exports.__wbg_getRandomValues_37fa2ca9e4e07fab = function() { return handleError(function (arg0, arg1) {
447
+ getObject(arg0).getRandomValues(getObject(arg1));
448
+ }, arguments) };
449
+
450
+ module.exports.__wbg_new_537b7341ce90bb31 = function(arg0) {
451
+ const ret = new Uint8Array(getObject(arg0));
498
452
  return addHeapObject(ret);
499
453
  };
500
454
 
501
- module.exports.__wbg_set_20cbc34131e76824 = function(arg0, arg1, arg2) {
502
- getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
455
+ module.exports.__wbg_set_17499e8aa4003ebd = function(arg0, arg1, arg2) {
456
+ getObject(arg0).set(getObject(arg1), arg2 >>> 0);
457
+ };
458
+
459
+ module.exports.__wbg_self_e7c1f827057f6584 = function() { return handleError(function () {
460
+ const ret = self.self;
461
+ return addHeapObject(ret);
462
+ }, arguments) };
463
+
464
+ module.exports.__wbg_window_a09ec664e14b1b81 = function() { return handleError(function () {
465
+ const ret = window.window;
466
+ return addHeapObject(ret);
467
+ }, arguments) };
468
+
469
+ module.exports.__wbg_globalThis_87cbb8506fecf3a9 = function() { return handleError(function () {
470
+ const ret = globalThis.globalThis;
471
+ return addHeapObject(ret);
472
+ }, arguments) };
473
+
474
+ module.exports.__wbg_global_c85a9259e621f3db = function() { return handleError(function () {
475
+ const ret = global.global;
476
+ return addHeapObject(ret);
477
+ }, arguments) };
478
+
479
+ module.exports.__wbindgen_is_undefined = function(arg0) {
480
+ const ret = getObject(arg0) === undefined;
481
+ return ret;
482
+ };
483
+
484
+ module.exports.__wbg_newnoargs_2b8b6bd7753c76ba = function(arg0, arg1) {
485
+ var v0 = getCachedStringFromWasm0(arg0, arg1);
486
+ const ret = new Function(v0);
487
+ return addHeapObject(ret);
488
+ };
489
+
490
+ module.exports.__wbg_call_95d1ea488d03e4e8 = function() { return handleError(function (arg0, arg1) {
491
+ const ret = getObject(arg0).call(getObject(arg1));
492
+ return addHeapObject(ret);
493
+ }, arguments) };
494
+
495
+ module.exports.__wbindgen_object_clone_ref = function(arg0) {
496
+ const ret = getObject(arg0);
497
+ return addHeapObject(ret);
503
498
  };
504
499
 
505
500
  module.exports.__wbg_crypto_c48a774b022d20ac = function(arg0) {
@@ -507,6 +502,12 @@ module.exports.__wbg_crypto_c48a774b022d20ac = function(arg0) {
507
502
  return addHeapObject(ret);
508
503
  };
509
504
 
505
+ module.exports.__wbindgen_is_object = function(arg0) {
506
+ const val = getObject(arg0);
507
+ const ret = typeof(val) === 'object' && val !== null;
508
+ return ret;
509
+ };
510
+
510
511
  module.exports.__wbg_process_298734cf255a885d = function(arg0) {
511
512
  const ret = getObject(arg0).process;
512
513
  return addHeapObject(ret);
@@ -522,65 +523,41 @@ module.exports.__wbg_node_1cd7a5d853dbea79 = function(arg0) {
522
523
  return addHeapObject(ret);
523
524
  };
524
525
 
526
+ module.exports.__wbindgen_is_string = function(arg0) {
527
+ const ret = typeof(getObject(arg0)) === 'string';
528
+ return ret;
529
+ };
530
+
525
531
  module.exports.__wbg_msCrypto_bcb970640f50a1e8 = function(arg0) {
526
532
  const ret = getObject(arg0).msCrypto;
527
533
  return addHeapObject(ret);
528
534
  };
529
535
 
536
+ module.exports.__wbg_newwithlength_b56c882b57805732 = function(arg0) {
537
+ const ret = new Uint8Array(arg0 >>> 0);
538
+ return addHeapObject(ret);
539
+ };
540
+
530
541
  module.exports.__wbg_require_8f08ceecec0f4fee = function() { return handleError(function () {
531
542
  const ret = module.require;
532
543
  return addHeapObject(ret);
533
544
  }, arguments) };
534
545
 
535
- module.exports.__wbg_randomFillSync_dc1e9a60c158336d = function() { return handleError(function (arg0, arg1) {
536
- getObject(arg0).randomFillSync(takeObject(arg1));
537
- }, arguments) };
538
-
539
- module.exports.__wbg_getRandomValues_37fa2ca9e4e07fab = function() { return handleError(function (arg0, arg1) {
540
- getObject(arg0).getRandomValues(getObject(arg1));
541
- }, arguments) };
542
-
543
- module.exports.__wbg_get_27fe3dac1c4d0224 = function(arg0, arg1) {
544
- const ret = getObject(arg0)[arg1 >>> 0];
545
- return addHeapObject(ret);
546
- };
547
-
548
- module.exports.__wbg_length_e498fbc24f9c1d4f = function(arg0) {
549
- const ret = getObject(arg0).length;
550
- return ret;
551
- };
552
-
553
546
  module.exports.__wbindgen_is_function = function(arg0) {
554
547
  const ret = typeof(getObject(arg0)) === 'function';
555
548
  return ret;
556
549
  };
557
550
 
558
- module.exports.__wbg_newnoargs_2b8b6bd7753c76ba = function(arg0, arg1) {
559
- var v0 = getCachedStringFromWasm0(arg0, arg1);
560
- const ret = new Function(v0);
561
- return addHeapObject(ret);
562
- };
563
-
564
- module.exports.__wbg_next_b7d530c04fd8b217 = function(arg0) {
565
- const ret = getObject(arg0).next;
551
+ module.exports.__wbindgen_string_new = function(arg0, arg1) {
552
+ const ret = getStringFromWasm0(arg0, arg1);
566
553
  return addHeapObject(ret);
567
554
  };
568
555
 
569
- module.exports.__wbg_next_88560ec06a094dea = function() { return handleError(function (arg0) {
570
- const ret = getObject(arg0).next();
556
+ module.exports.__wbg_call_9495de66fdbe016b = function() { return handleError(function (arg0, arg1, arg2) {
557
+ const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
571
558
  return addHeapObject(ret);
572
559
  }, arguments) };
573
560
 
574
- module.exports.__wbg_done_1ebec03bbd919843 = function(arg0) {
575
- const ret = getObject(arg0).done;
576
- return ret;
577
- };
578
-
579
- module.exports.__wbg_value_6ac8da5cc5b3efda = function(arg0) {
580
- const ret = getObject(arg0).value;
581
- return addHeapObject(ret);
582
- };
583
-
584
561
  module.exports.__wbg_iterator_55f114446221aa5a = function() {
585
562
  const ret = Symbol.iterator;
586
563
  return addHeapObject(ret);
@@ -591,33 +568,61 @@ module.exports.__wbg_get_baf4855f9a986186 = function() { return handleError(func
591
568
  return addHeapObject(ret);
592
569
  }, arguments) };
593
570
 
594
- module.exports.__wbg_call_95d1ea488d03e4e8 = function() { return handleError(function (arg0, arg1) {
595
- const ret = getObject(arg0).call(getObject(arg1));
571
+ module.exports.__wbg_next_b7d530c04fd8b217 = function(arg0) {
572
+ const ret = getObject(arg0).next;
596
573
  return addHeapObject(ret);
597
- }, arguments) };
574
+ };
598
575
 
599
- module.exports.__wbg_self_e7c1f827057f6584 = function() { return handleError(function () {
600
- const ret = self.self;
601
- return addHeapObject(ret);
602
- }, arguments) };
576
+ module.exports.__wbg_length_27a2afe8ab42b09f = function(arg0) {
577
+ const ret = getObject(arg0).length;
578
+ return ret;
579
+ };
603
580
 
604
- module.exports.__wbg_window_a09ec664e14b1b81 = function() { return handleError(function () {
605
- const ret = window.window;
581
+ module.exports.__wbindgen_error_new = function(arg0, arg1) {
582
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
606
583
  return addHeapObject(ret);
607
- }, arguments) };
584
+ };
608
585
 
609
- module.exports.__wbg_globalThis_87cbb8506fecf3a9 = function() { return handleError(function () {
610
- const ret = globalThis.globalThis;
586
+ module.exports.__wbg_entries_4e1315b774245952 = function(arg0) {
587
+ const ret = Object.entries(getObject(arg0));
611
588
  return addHeapObject(ret);
612
- }, arguments) };
589
+ };
613
590
 
614
- module.exports.__wbg_global_c85a9259e621f3db = function() { return handleError(function () {
615
- const ret = global.global;
616
- return addHeapObject(ret);
617
- }, arguments) };
591
+ module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
592
+ const ret = getObject(arg0) == getObject(arg1);
593
+ return ret;
594
+ };
618
595
 
619
- module.exports.__wbg_isArray_39d28997bf6b96b4 = function(arg0) {
620
- const ret = Array.isArray(getObject(arg0));
596
+ module.exports.__wbindgen_boolean_get = function(arg0) {
597
+ const v = getObject(arg0);
598
+ const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
599
+ return ret;
600
+ };
601
+
602
+ module.exports.__wbindgen_number_get = function(arg0, arg1) {
603
+ const obj = getObject(arg1);
604
+ const ret = typeof(obj) === 'number' ? obj : undefined;
605
+ getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
606
+ getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
607
+ };
608
+
609
+ module.exports.__wbindgen_string_get = function(arg0, arg1) {
610
+ const obj = getObject(arg1);
611
+ const ret = typeof(obj) === 'string' ? obj : undefined;
612
+ var ptr0 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
613
+ var len0 = WASM_VECTOR_LEN;
614
+ getInt32Memory0()[arg0 / 4 + 1] = len0;
615
+ getInt32Memory0()[arg0 / 4 + 0] = ptr0;
616
+ };
617
+
618
+ module.exports.__wbg_instanceof_Uint8Array_01cebe79ca606cca = function(arg0) {
619
+ let result;
620
+ try {
621
+ result = getObject(arg0) instanceof Uint8Array;
622
+ } catch {
623
+ result = false;
624
+ }
625
+ const ret = result;
621
626
  return ret;
622
627
  };
623
628
 
@@ -632,46 +637,86 @@ module.exports.__wbg_instanceof_ArrayBuffer_a69f02ee4c4f5065 = function(arg0) {
632
637
  return ret;
633
638
  };
634
639
 
635
- module.exports.__wbg_call_9495de66fdbe016b = function() { return handleError(function (arg0, arg1, arg2) {
636
- const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
640
+ module.exports.__wbg_get_27fe3dac1c4d0224 = function(arg0, arg1) {
641
+ const ret = getObject(arg0)[arg1 >>> 0];
642
+ return addHeapObject(ret);
643
+ };
644
+
645
+ module.exports.__wbg_next_88560ec06a094dea = function() { return handleError(function (arg0) {
646
+ const ret = getObject(arg0).next();
637
647
  return addHeapObject(ret);
638
648
  }, arguments) };
639
649
 
640
- module.exports.__wbg_isSafeInteger_8c4789029e885159 = function(arg0) {
641
- const ret = Number.isSafeInteger(getObject(arg0));
650
+ module.exports.__wbg_done_1ebec03bbd919843 = function(arg0) {
651
+ const ret = getObject(arg0).done;
642
652
  return ret;
643
653
  };
644
654
 
645
- module.exports.__wbg_getTime_7c59072d1651a3cf = function(arg0) {
646
- const ret = getObject(arg0).getTime();
647
- return ret;
655
+ module.exports.__wbg_value_6ac8da5cc5b3efda = function(arg0) {
656
+ const ret = getObject(arg0).value;
657
+ return addHeapObject(ret);
648
658
  };
649
659
 
650
- module.exports.__wbg_getTimezoneOffset_2a6b27fb18493a56 = function(arg0) {
651
- const ret = getObject(arg0).getTimezoneOffset();
660
+ module.exports.__wbindgen_is_bigint = function(arg0) {
661
+ const ret = typeof(getObject(arg0)) === 'bigint';
652
662
  return ret;
653
663
  };
654
664
 
655
- module.exports.__wbg_new_f127e324c1313064 = function(arg0) {
656
- const ret = new Date(getObject(arg0));
657
- return addHeapObject(ret);
665
+ module.exports.__wbindgen_bigint_get_as_i64 = function(arg0, arg1) {
666
+ const v = getObject(arg1);
667
+ const ret = typeof(v) === 'bigint' ? v : undefined;
668
+ getBigInt64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? BigInt(0) : ret;
669
+ getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
658
670
  };
659
671
 
660
- module.exports.__wbg_new0_25059e40b1c02766 = function() {
661
- const ret = new Date();
672
+ module.exports.__wbindgen_bigint_from_i64 = function(arg0) {
673
+ const ret = arg0;
662
674
  return addHeapObject(ret);
663
675
  };
664
676
 
665
- module.exports.__wbg_entries_4e1315b774245952 = function(arg0) {
666
- const ret = Object.entries(getObject(arg0));
677
+ module.exports.__wbindgen_jsval_eq = function(arg0, arg1) {
678
+ const ret = getObject(arg0) === getObject(arg1);
679
+ return ret;
680
+ };
681
+
682
+ module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
683
+ const ret = BigInt.asUintN(64, arg0);
667
684
  return addHeapObject(ret);
668
685
  };
669
686
 
670
- module.exports.__wbg_new_f9876326328f45ed = function() {
671
- const ret = new Object();
687
+ module.exports.__wbg_isSafeInteger_8c4789029e885159 = function(arg0) {
688
+ const ret = Number.isSafeInteger(getObject(arg0));
689
+ return ret;
690
+ };
691
+
692
+ module.exports.__wbg_isArray_39d28997bf6b96b4 = function(arg0) {
693
+ const ret = Array.isArray(getObject(arg0));
694
+ return ret;
695
+ };
696
+
697
+ module.exports.__wbindgen_in = function(arg0, arg1) {
698
+ const ret = getObject(arg0) in getObject(arg1);
699
+ return ret;
700
+ };
701
+
702
+ module.exports.__wbg_length_e498fbc24f9c1d4f = function(arg0) {
703
+ const ret = getObject(arg0).length;
704
+ return ret;
705
+ };
706
+
707
+ module.exports.__wbg_getwithrefkey_15c62c2b8546208d = function(arg0, arg1) {
708
+ const ret = getObject(arg0)[getObject(arg1)];
672
709
  return addHeapObject(ret);
673
710
  };
674
711
 
712
+ module.exports.__wbindgen_debug_string = function(arg0, arg1) {
713
+ const ret = debugString(getObject(arg1));
714
+ const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
715
+ const len0 = WASM_VECTOR_LEN;
716
+ getInt32Memory0()[arg0 / 4 + 1] = len0;
717
+ getInt32Memory0()[arg0 / 4 + 0] = ptr0;
718
+ };
719
+
675
720
  module.exports.__wbg_new_9d3a9ce4282a18a8 = function(arg0, arg1) {
676
721
  try {
677
722
  var state0 = {a: arg0, b: arg1};
@@ -679,7 +724,7 @@ module.exports.__wbg_new_9d3a9ce4282a18a8 = function(arg0, arg1) {
679
724
  const a = state0.a;
680
725
  state0.a = 0;
681
726
  try {
682
- return __wbg_adapter_121(a, state0.b, arg0, arg1);
727
+ return __wbg_adapter_109(a, state0.b, arg0, arg1);
683
728
  } finally {
684
729
  state0.a = a;
685
730
  }
@@ -691,87 +736,41 @@ module.exports.__wbg_new_9d3a9ce4282a18a8 = function(arg0, arg1) {
691
736
  }
692
737
  };
693
738
 
694
- module.exports.__wbg_resolve_fd40f858d9db1a04 = function(arg0) {
695
- const ret = Promise.resolve(getObject(arg0));
739
+ module.exports.__wbg_new_f9876326328f45ed = function() {
740
+ const ret = new Object();
696
741
  return addHeapObject(ret);
697
742
  };
698
743
 
699
- module.exports.__wbg_then_ec5db6d509eb475f = function(arg0, arg1) {
700
- const ret = getObject(arg0).then(getObject(arg1));
701
- return addHeapObject(ret);
744
+ module.exports.__wbg_set_20cbc34131e76824 = function(arg0, arg1, arg2) {
745
+ getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
702
746
  };
703
747
 
704
- module.exports.__wbg_buffer_cf65c07de34b9a08 = function(arg0) {
705
- const ret = getObject(arg0).buffer;
706
- return addHeapObject(ret);
748
+ module.exports.__wbindgen_throw = function(arg0, arg1) {
749
+ throw new Error(getStringFromWasm0(arg0, arg1));
707
750
  };
708
751
 
709
- module.exports.__wbg_newwithbyteoffsetandlength_9fb2f11355ecadf5 = function(arg0, arg1, arg2) {
710
- const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
752
+ module.exports.__wbg_then_ec5db6d509eb475f = function(arg0, arg1) {
753
+ const ret = getObject(arg0).then(getObject(arg1));
711
754
  return addHeapObject(ret);
712
755
  };
713
756
 
714
- module.exports.__wbg_new_537b7341ce90bb31 = function(arg0) {
715
- const ret = new Uint8Array(getObject(arg0));
757
+ module.exports.__wbg_resolve_fd40f858d9db1a04 = function(arg0) {
758
+ const ret = Promise.resolve(getObject(arg0));
716
759
  return addHeapObject(ret);
717
760
  };
718
761
 
719
- module.exports.__wbg_set_17499e8aa4003ebd = function(arg0, arg1, arg2) {
720
- getObject(arg0).set(getObject(arg1), arg2 >>> 0);
721
- };
722
-
723
- module.exports.__wbg_length_27a2afe8ab42b09f = function(arg0) {
724
- const ret = getObject(arg0).length;
725
- return ret;
726
- };
727
-
728
- module.exports.__wbg_instanceof_Uint8Array_01cebe79ca606cca = function(arg0) {
729
- let result;
730
- try {
731
- result = getObject(arg0) instanceof Uint8Array;
732
- } catch {
733
- result = false;
762
+ module.exports.__wbindgen_cb_drop = function(arg0) {
763
+ const obj = takeObject(arg0).original;
764
+ if (obj.cnt-- == 1) {
765
+ obj.a = 0;
766
+ return true;
734
767
  }
735
- const ret = result;
768
+ const ret = false;
736
769
  return ret;
737
770
  };
738
771
 
739
- module.exports.__wbg_newwithlength_b56c882b57805732 = function(arg0) {
740
- const ret = new Uint8Array(arg0 >>> 0);
741
- return addHeapObject(ret);
742
- };
743
-
744
- module.exports.__wbg_subarray_7526649b91a252a6 = function(arg0, arg1, arg2) {
745
- const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
746
- return addHeapObject(ret);
747
- };
748
-
749
- module.exports.__wbindgen_bigint_get_as_i64 = function(arg0, arg1) {
750
- const v = getObject(arg1);
751
- const ret = typeof(v) === 'bigint' ? v : undefined;
752
- getBigInt64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? BigInt(0) : ret;
753
- getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
754
- };
755
-
756
- module.exports.__wbindgen_debug_string = function(arg0, arg1) {
757
- 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;
762
- };
763
-
764
- module.exports.__wbindgen_throw = function(arg0, arg1) {
765
- throw new Error(getStringFromWasm0(arg0, arg1));
766
- };
767
-
768
- module.exports.__wbindgen_memory = function() {
769
- const ret = wasm.memory;
770
- return addHeapObject(ret);
771
- };
772
-
773
- module.exports.__wbindgen_closure_wrapper14626 = function(arg0, arg1, arg2) {
774
- const ret = makeMutClosure(arg0, arg1, 3221, __wbg_adapter_48);
772
+ module.exports.__wbindgen_closure_wrapper23861 = function(arg0, arg1, arg2) {
773
+ const ret = makeMutClosure(arg0, arg1, 364, __wbg_adapter_48);
775
774
  return addHeapObject(ret);
776
775
  };
777
776
 
package/wasm_bg.wasm CHANGED
Binary file