@next/swc-wasm-nodejs 15.4.0-canary.8 → 15.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. package/package.json +1 -1
  2. package/wasm.d.ts +2 -42
  3. package/wasm.js +411 -468
  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": "15.4.0-canary.8",
3
+ "version": "15.4.0",
4
4
  "files": [
5
5
  "wasm_bg.wasm",
6
6
  "wasm.js",
package/wasm.d.ts CHANGED
@@ -1,50 +1,10 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
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
- /**
16
- * @param {string} s
17
- * @param {any} opts
18
- * @returns {any}
19
- */
20
3
  export function minifySync(s: string, opts: any): any;
21
- /**
22
- * @param {string} s
23
- * @param {any} opts
24
- * @returns {Promise<any>}
25
- */
26
4
  export function minify(s: string, opts: any): Promise<any>;
27
- /**
28
- * @param {any} s
29
- * @param {any} opts
30
- * @returns {any}
31
- */
32
5
  export function transformSync(s: any, opts: any): any;
33
- /**
34
- * @param {any} s
35
- * @param {any} opts
36
- * @returns {Promise<any>}
37
- */
38
6
  export function transform(s: any, opts: any): Promise<any>;
39
- /**
40
- * @param {string} s
41
- * @param {any} opts
42
- * @returns {any}
43
- */
44
7
  export function parseSync(s: string, opts: any): any;
45
- /**
46
- * @param {string} s
47
- * @param {any} opts
48
- * @returns {Promise<any>}
49
- */
50
8
  export function parse(s: string, opts: any): Promise<any>;
9
+ export function mdxCompileSync(value: string, opts: any): any;
10
+ export function mdxCompile(value: string, opts: any): Promise<any>;
package/wasm.js CHANGED
@@ -1,75 +1,51 @@
1
+
1
2
  let imports = {};
2
3
  imports['__wbindgen_placeholder__'] = module.exports;
4
+ imports['env'] = require('env');
3
5
  let wasm;
4
6
  const { TextDecoder, TextEncoder } = require(`util`);
5
7
 
6
- const heap = new Array(128).fill(undefined);
7
-
8
- heap.push(undefined, null, true, false);
9
-
10
- function getObject(idx) { return heap[idx]; }
11
-
12
- let heap_next = heap.length;
13
-
14
- function dropObject(idx) {
15
- if (idx < 132) return;
16
- heap[idx] = heap_next;
17
- heap_next = idx;
8
+ function addToExternrefTable0(obj) {
9
+ const idx = wasm.__externref_table_alloc();
10
+ wasm.__wbindgen_export_2.set(idx, obj);
11
+ return idx;
18
12
  }
19
13
 
20
- function takeObject(idx) {
21
- const ret = getObject(idx);
22
- dropObject(idx);
23
- return ret;
14
+ function handleError(f, args) {
15
+ try {
16
+ return f.apply(this, args);
17
+ } catch (e) {
18
+ const idx = addToExternrefTable0(e);
19
+ wasm.__wbindgen_exn_store(idx);
20
+ }
24
21
  }
25
22
 
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
- }
23
+ function getFromExternrefTable0(idx) { return wasm.__wbindgen_export_2.get(idx); }
34
24
 
35
25
  let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
36
26
 
37
27
  cachedTextDecoder.decode();
38
28
 
39
- let cachedUint8Memory0 = null;
29
+ let cachedUint8ArrayMemory0 = null;
40
30
 
41
- function getUint8Memory0() {
42
- if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
43
- cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
31
+ function getUint8ArrayMemory0() {
32
+ if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
33
+ cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
44
34
  }
45
- return cachedUint8Memory0;
35
+ return cachedUint8ArrayMemory0;
46
36
  }
47
37
 
48
38
  function getStringFromWasm0(ptr, len) {
49
39
  ptr = ptr >>> 0;
50
- return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
51
- }
52
-
53
- function isLikeNone(x) {
54
- return x === undefined || x === null;
55
- }
56
-
57
- let cachedFloat64Memory0 = null;
58
-
59
- function getFloat64Memory0() {
60
- if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
61
- cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
62
- }
63
- return cachedFloat64Memory0;
40
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
64
41
  }
65
42
 
66
- let cachedInt32Memory0 = null;
67
-
68
- function getInt32Memory0() {
69
- if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
70
- cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
43
+ function getCachedStringFromWasm0(ptr, len) {
44
+ if (ptr === 0) {
45
+ return getFromExternrefTable0(len);
46
+ } else {
47
+ return getStringFromWasm0(ptr, len);
71
48
  }
72
- return cachedInt32Memory0;
73
49
  }
74
50
 
75
51
  let WASM_VECTOR_LEN = 0;
@@ -94,7 +70,7 @@ function passStringToWasm0(arg, malloc, realloc) {
94
70
  if (realloc === undefined) {
95
71
  const buf = cachedTextEncoder.encode(arg);
96
72
  const ptr = malloc(buf.length, 1) >>> 0;
97
- getUint8Memory0().subarray(ptr, ptr + buf.length).set(buf);
73
+ getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
98
74
  WASM_VECTOR_LEN = buf.length;
99
75
  return ptr;
100
76
  }
@@ -102,7 +78,7 @@ function passStringToWasm0(arg, malloc, realloc) {
102
78
  let len = arg.length;
103
79
  let ptr = malloc(len, 1) >>> 0;
104
80
 
105
- const mem = getUint8Memory0();
81
+ const mem = getUint8ArrayMemory0();
106
82
 
107
83
  let offset = 0;
108
84
 
@@ -117,7 +93,7 @@ function passStringToWasm0(arg, malloc, realloc) {
117
93
  arg = arg.slice(offset);
118
94
  }
119
95
  ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
120
- const view = getUint8Memory0().subarray(ptr + offset, ptr + len);
96
+ const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
121
97
  const ret = encodeString(arg, view);
122
98
 
123
99
  offset += ret.written;
@@ -128,13 +104,48 @@ function passStringToWasm0(arg, malloc, realloc) {
128
104
  return ptr;
129
105
  }
130
106
 
131
- let cachedBigInt64Memory0 = null;
107
+ let cachedDataViewMemory0 = null;
132
108
 
133
- function getBigInt64Memory0() {
134
- if (cachedBigInt64Memory0 === null || cachedBigInt64Memory0.byteLength === 0) {
135
- cachedBigInt64Memory0 = new BigInt64Array(wasm.memory.buffer);
109
+ function getDataViewMemory0() {
110
+ if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
111
+ cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
136
112
  }
137
- return cachedBigInt64Memory0;
113
+ return cachedDataViewMemory0;
114
+ }
115
+
116
+ function isLikeNone(x) {
117
+ return x === undefined || x === null;
118
+ }
119
+
120
+ const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
121
+ ? { register: () => {}, unregister: () => {} }
122
+ : new FinalizationRegistry(state => {
123
+ wasm.__wbindgen_export_6.get(state.dtor)(state.a, state.b)
124
+ });
125
+
126
+ function makeMutClosure(arg0, arg1, dtor, f) {
127
+ const state = { a: arg0, b: arg1, cnt: 1, dtor };
128
+ const real = (...args) => {
129
+ // First up with a closure we increment the internal reference
130
+ // count. This ensures that the Rust closure environment won't
131
+ // be deallocated while we're invoking it.
132
+ state.cnt++;
133
+ const a = state.a;
134
+ state.a = 0;
135
+ try {
136
+ return f(a, state.b, ...args);
137
+ } finally {
138
+ if (--state.cnt === 0) {
139
+ wasm.__wbindgen_export_6.get(state.dtor)(a, state.b);
140
+ CLOSURE_DTORS.unregister(state);
141
+ } else {
142
+ state.a = a;
143
+ }
144
+ }
145
+ };
146
+ real.original = state;
147
+ CLOSURE_DTORS.register(real, state, state);
148
+ return real;
138
149
  }
139
150
 
140
151
  function debugString(val) {
@@ -178,7 +189,7 @@ function debugString(val) {
178
189
  // Test for built-in
179
190
  const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
180
191
  let className;
181
- if (builtInMatches.length > 1) {
192
+ if (builtInMatches && builtInMatches.length > 1) {
182
193
  className = builtInMatches[1];
183
194
  } else {
184
195
  // Failed to match the standard '[object ClassName]'
@@ -202,602 +213,532 @@ function debugString(val) {
202
213
  return className;
203
214
  }
204
215
 
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
-
211
- function makeMutClosure(arg0, arg1, dtor, f) {
212
- const state = { a: arg0, b: arg1, cnt: 1, dtor };
213
- const real = (...args) => {
214
- // First up with a closure we increment the internal reference
215
- // count. This ensures that the Rust closure environment won't
216
- // be deallocated while we're invoking it.
217
- state.cnt++;
218
- const a = state.a;
219
- state.a = 0;
220
- try {
221
- return f(a, state.b, ...args);
222
- } finally {
223
- if (--state.cnt === 0) {
224
- wasm.__wbindgen_export_2.get(state.dtor)(a, state.b);
225
- CLOSURE_DTORS.unregister(state);
226
- } else {
227
- state.a = a;
228
- }
229
- }
230
- };
231
- real.original = state;
232
- CLOSURE_DTORS.register(real, state, state);
233
- return real;
234
- }
235
- function __wbg_adapter_48(arg0, arg1, arg2) {
236
- wasm._dyn_core_d740453d92c4907d___ops__function__FnMut_______Output______as_wasm_bindgen_b3e6b9209ca1af04___closure__WasmClosure___describe__invoke___wasm_bindgen_b3e6b9209ca1af04___JsValue_____(arg0, arg1, addHeapObject(arg2));
216
+ function takeFromExternrefTable0(idx) {
217
+ const value = wasm.__wbindgen_export_2.get(idx);
218
+ wasm.__externref_table_dealloc(idx);
219
+ return value;
237
220
  }
238
-
239
- function getCachedStringFromWasm0(ptr, len) {
240
- if (ptr === 0) {
241
- return getObject(len);
242
- } else {
243
- return getStringFromWasm0(ptr, len);
244
- }
245
- }
246
-
247
- function handleError(f, args) {
248
- try {
249
- return f.apply(this, args);
250
- } catch (e) {
251
- wasm.__wbindgen_exn_store(addHeapObject(e));
252
- }
253
- }
254
- function __wbg_adapter_113(arg0, arg1, arg2, arg3) {
255
- wasm.wasm_bindgen_b3e6b9209ca1af04___convert__closures__invoke2_mut___wasm_bindgen_b3e6b9209ca1af04___JsValue__wasm_bindgen_b3e6b9209ca1af04___JsValue_____(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
256
- }
257
-
258
221
  /**
259
- * @param {string} value
260
- * @param {any} opts
261
- * @returns {any}
262
- */
263
- module.exports.mdxCompileSync = function(value, opts) {
264
- try {
265
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
266
- wasm.mdxCompileSync(retptr, addHeapObject(value), addHeapObject(opts));
267
- var r0 = getInt32Memory0()[retptr / 4 + 0];
268
- var r1 = getInt32Memory0()[retptr / 4 + 1];
269
- var r2 = getInt32Memory0()[retptr / 4 + 2];
270
- if (r2) {
271
- throw takeObject(r1);
272
- }
273
- return takeObject(r0);
274
- } finally {
275
- wasm.__wbindgen_add_to_stack_pointer(16);
276
- }
277
- };
278
-
279
- /**
280
- * @param {string} value
281
- * @param {any} opts
282
- * @returns {Promise<any>}
283
- */
284
- module.exports.mdxCompile = function(value, opts) {
285
- const ret = wasm.mdxCompile(addHeapObject(value), addHeapObject(opts));
286
- return takeObject(ret);
287
- };
288
-
289
- /**
290
- * @param {string} s
291
- * @param {any} opts
292
- * @returns {any}
293
- */
222
+ * @param {string} s
223
+ * @param {any} opts
224
+ * @returns {any}
225
+ */
294
226
  module.exports.minifySync = function(s, opts) {
295
- try {
296
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
297
- wasm.minifySync(retptr, addHeapObject(s), addHeapObject(opts));
298
- var r0 = getInt32Memory0()[retptr / 4 + 0];
299
- var r1 = getInt32Memory0()[retptr / 4 + 1];
300
- var r2 = getInt32Memory0()[retptr / 4 + 2];
301
- if (r2) {
302
- throw takeObject(r1);
303
- }
304
- return takeObject(r0);
305
- } finally {
306
- wasm.__wbindgen_add_to_stack_pointer(16);
227
+ const ret = wasm.minifySync(s, opts);
228
+ if (ret[2]) {
229
+ throw takeFromExternrefTable0(ret[1]);
307
230
  }
231
+ return takeFromExternrefTable0(ret[0]);
308
232
  };
309
233
 
310
234
  /**
311
- * @param {string} s
312
- * @param {any} opts
313
- * @returns {Promise<any>}
314
- */
235
+ * @param {string} s
236
+ * @param {any} opts
237
+ * @returns {Promise<any>}
238
+ */
315
239
  module.exports.minify = function(s, opts) {
316
- const ret = wasm.minify(addHeapObject(s), addHeapObject(opts));
317
- return takeObject(ret);
240
+ const ret = wasm.minify(s, opts);
241
+ return ret;
318
242
  };
319
243
 
320
244
  /**
321
- * @param {any} s
322
- * @param {any} opts
323
- * @returns {any}
324
- */
245
+ * @param {any} s
246
+ * @param {any} opts
247
+ * @returns {any}
248
+ */
325
249
  module.exports.transformSync = function(s, opts) {
326
- try {
327
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
328
- wasm.transformSync(retptr, addHeapObject(s), addHeapObject(opts));
329
- var r0 = getInt32Memory0()[retptr / 4 + 0];
330
- var r1 = getInt32Memory0()[retptr / 4 + 1];
331
- var r2 = getInt32Memory0()[retptr / 4 + 2];
332
- if (r2) {
333
- throw takeObject(r1);
334
- }
335
- return takeObject(r0);
336
- } finally {
337
- wasm.__wbindgen_add_to_stack_pointer(16);
250
+ const ret = wasm.transformSync(s, opts);
251
+ if (ret[2]) {
252
+ throw takeFromExternrefTable0(ret[1]);
338
253
  }
254
+ return takeFromExternrefTable0(ret[0]);
339
255
  };
340
256
 
341
257
  /**
342
- * @param {any} s
343
- * @param {any} opts
344
- * @returns {Promise<any>}
345
- */
258
+ * @param {any} s
259
+ * @param {any} opts
260
+ * @returns {Promise<any>}
261
+ */
346
262
  module.exports.transform = function(s, opts) {
347
- const ret = wasm.transform(addHeapObject(s), addHeapObject(opts));
348
- return takeObject(ret);
263
+ const ret = wasm.transform(s, opts);
264
+ return ret;
349
265
  };
350
266
 
351
267
  /**
352
- * @param {string} s
353
- * @param {any} opts
354
- * @returns {any}
355
- */
268
+ * @param {string} s
269
+ * @param {any} opts
270
+ * @returns {any}
271
+ */
356
272
  module.exports.parseSync = function(s, opts) {
357
- try {
358
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
359
- wasm.parseSync(retptr, addHeapObject(s), addHeapObject(opts));
360
- var r0 = getInt32Memory0()[retptr / 4 + 0];
361
- var r1 = getInt32Memory0()[retptr / 4 + 1];
362
- var r2 = getInt32Memory0()[retptr / 4 + 2];
363
- if (r2) {
364
- throw takeObject(r1);
365
- }
366
- return takeObject(r0);
367
- } finally {
368
- wasm.__wbindgen_add_to_stack_pointer(16);
273
+ const ret = wasm.parseSync(s, opts);
274
+ if (ret[2]) {
275
+ throw takeFromExternrefTable0(ret[1]);
369
276
  }
277
+ return takeFromExternrefTable0(ret[0]);
370
278
  };
371
279
 
372
280
  /**
373
- * @param {string} s
374
- * @param {any} opts
375
- * @returns {Promise<any>}
376
- */
281
+ * @param {string} s
282
+ * @param {any} opts
283
+ * @returns {Promise<any>}
284
+ */
377
285
  module.exports.parse = function(s, opts) {
378
- const ret = wasm.parse(addHeapObject(s), addHeapObject(opts));
379
- return takeObject(ret);
286
+ const ret = wasm.parse(s, opts);
287
+ return ret;
380
288
  };
381
289
 
382
- module.exports.__wbindgen_object_drop_ref = function(arg0) {
383
- takeObject(arg0);
290
+ /**
291
+ * @param {string} value
292
+ * @param {any} opts
293
+ * @returns {any}
294
+ */
295
+ module.exports.mdxCompileSync = function(value, opts) {
296
+ const ret = wasm.mdxCompileSync(value, opts);
297
+ if (ret[2]) {
298
+ throw takeFromExternrefTable0(ret[1]);
299
+ }
300
+ return takeFromExternrefTable0(ret[0]);
384
301
  };
385
302
 
386
- module.exports.__wbindgen_number_new = function(arg0) {
387
- const ret = arg0;
388
- return addHeapObject(ret);
303
+ /**
304
+ * @param {string} value
305
+ * @param {any} opts
306
+ * @returns {Promise<any>}
307
+ */
308
+ module.exports.mdxCompile = function(value, opts) {
309
+ const ret = wasm.mdxCompile(value, opts);
310
+ return ret;
389
311
  };
390
312
 
391
- module.exports.__wbg_new_a9d80688888b4894 = function(arg0) {
392
- const ret = new Date(getObject(arg0));
393
- return addHeapObject(ret);
313
+ function __wbg_adapter_50(arg0, arg1, arg2) {
314
+ wasm.closure1082_externref_shim(arg0, arg1, arg2);
315
+ }
316
+
317
+ function __wbg_adapter_115(arg0, arg1, arg2, arg3) {
318
+ wasm.closure145_externref_shim(arg0, arg1, arg2, arg3);
319
+ }
320
+
321
+ module.exports.__wbg_buffer_609cc3eee51ed158 = function(arg0) {
322
+ const ret = arg0.buffer;
323
+ return ret;
394
324
  };
395
325
 
396
- module.exports.__wbg_getTimezoneOffset_840b552f34917133 = function(arg0) {
397
- const ret = getObject(arg0).getTimezoneOffset();
326
+ module.exports.__wbg_call_672a4d21634d4a24 = function() { return handleError(function (arg0, arg1) {
327
+ const ret = arg0.call(arg1);
328
+ return ret;
329
+ }, arguments) };
330
+
331
+ module.exports.__wbg_call_7cccdd69e0791ae2 = function() { return handleError(function (arg0, arg1, arg2) {
332
+ const ret = arg0.call(arg1, arg2);
333
+ return ret;
334
+ }, arguments) };
335
+
336
+ module.exports.__wbg_crypto_ed58b8e10a292839 = function(arg0) {
337
+ const ret = arg0.crypto;
398
338
  return ret;
399
339
  };
400
340
 
401
- module.exports.__wbindgen_memory = function() {
402
- const ret = wasm.memory;
403
- return addHeapObject(ret);
341
+ module.exports.__wbg_done_769e5ede4b31c67b = function(arg0) {
342
+ const ret = arg0.done;
343
+ return ret;
404
344
  };
405
345
 
406
- module.exports.__wbg_buffer_b914fb8b50ebbc3e = function(arg0) {
407
- const ret = getObject(arg0).buffer;
408
- return addHeapObject(ret);
346
+ module.exports.__wbg_entries_3265d4158b33e5dc = function(arg0) {
347
+ const ret = Object.entries(arg0);
348
+ return ret;
409
349
  };
410
350
 
411
- module.exports.__wbg_newwithbyteoffsetandlength_0de9ee56e9f6ee6e = function(arg0, arg1, arg2) {
412
- const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
413
- return addHeapObject(ret);
351
+ module.exports.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
352
+ var v0 = getCachedStringFromWasm0(arg0, arg1);
353
+ if (arg0 !== 0) { wasm.__wbindgen_free(arg0, arg1, 1); }
354
+ console.error(v0);
414
355
  };
415
356
 
416
- module.exports.__wbg_randomFillSync_5c9c955aa56b6049 = function() { return handleError(function (arg0, arg1) {
417
- getObject(arg0).randomFillSync(takeObject(arg1));
357
+ module.exports.__wbg_getRandomValues_bcb4912f16000dc4 = function() { return handleError(function (arg0, arg1) {
358
+ arg0.getRandomValues(arg1);
418
359
  }, arguments) };
419
360
 
420
- module.exports.__wbg_subarray_adc418253d76e2f1 = function(arg0, arg1, arg2) {
421
- const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
422
- return addHeapObject(ret);
361
+ module.exports.__wbg_getTime_46267b1c24877e30 = function(arg0) {
362
+ const ret = arg0.getTime();
363
+ return ret;
423
364
  };
424
365
 
425
- module.exports.__wbg_getRandomValues_3aa56aa6edec874c = function() { return handleError(function (arg0, arg1) {
426
- getObject(arg0).getRandomValues(getObject(arg1));
366
+ module.exports.__wbg_getTimezoneOffset_6b5752021c499c47 = function(arg0) {
367
+ const ret = arg0.getTimezoneOffset();
368
+ return ret;
369
+ };
370
+
371
+ module.exports.__wbg_get_67b2ba62fc30de12 = function() { return handleError(function (arg0, arg1) {
372
+ const ret = Reflect.get(arg0, arg1);
373
+ return ret;
427
374
  }, arguments) };
428
375
 
429
- module.exports.__wbg_new_b1f2d6842d615181 = function(arg0) {
430
- const ret = new Uint8Array(getObject(arg0));
431
- return addHeapObject(ret);
376
+ module.exports.__wbg_get_b9b93047fe3cf45b = function(arg0, arg1) {
377
+ const ret = arg0[arg1 >>> 0];
378
+ return ret;
432
379
  };
433
380
 
434
- module.exports.__wbg_set_7d988c98e6ced92d = function(arg0, arg1, arg2) {
435
- getObject(arg0).set(getObject(arg1), arg2 >>> 0);
381
+ module.exports.__wbg_getwithrefkey_bb8f74a92cb2e784 = function(arg0, arg1) {
382
+ const ret = arg0[arg1];
383
+ return ret;
436
384
  };
437
385
 
438
- module.exports.__wbg_new0_7a6141101f2206da = function() {
439
- const ret = new Date();
440
- return addHeapObject(ret);
386
+ module.exports.__wbg_instanceof_ArrayBuffer_e14585432e3737fc = function(arg0) {
387
+ let result;
388
+ try {
389
+ result = arg0 instanceof ArrayBuffer;
390
+ } catch (_) {
391
+ result = false;
392
+ }
393
+ const ret = result;
394
+ return ret;
441
395
  };
442
396
 
443
- module.exports.__wbg_getTime_0e03c3f524be31ef = function(arg0) {
444
- const ret = getObject(arg0).getTime();
397
+ module.exports.__wbg_instanceof_Uint8Array_17156bcf118086a9 = function(arg0) {
398
+ let result;
399
+ try {
400
+ result = arg0 instanceof Uint8Array;
401
+ } catch (_) {
402
+ result = false;
403
+ }
404
+ const ret = result;
445
405
  return ret;
446
406
  };
447
407
 
448
- module.exports.__wbg_new_abda76e883ba8a5f = function() {
449
- const ret = new Error();
450
- return addHeapObject(ret);
408
+ module.exports.__wbg_isArray_a1eab7e0d067391b = function(arg0) {
409
+ const ret = Array.isArray(arg0);
410
+ return ret;
451
411
  };
452
412
 
453
- module.exports.__wbg_stack_658279fe44541cf6 = function(arg0, arg1) {
454
- const ret = getObject(arg1).stack;
455
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
456
- const len1 = WASM_VECTOR_LEN;
457
- getInt32Memory0()[arg0 / 4 + 1] = len1;
458
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
413
+ module.exports.__wbg_isSafeInteger_343e2beeeece1bb0 = function(arg0) {
414
+ const ret = Number.isSafeInteger(arg0);
415
+ return ret;
459
416
  };
460
417
 
461
- module.exports.__wbg_error_f851667af71bcfc6 = function(arg0, arg1) {
462
- var v0 = getCachedStringFromWasm0(arg0, arg1);
463
- if (arg0 !== 0) { wasm.__wbindgen_free(arg0, arg1, 1); }
464
- console.error(v0);
418
+ module.exports.__wbg_iterator_9a24c88df860dc65 = function() {
419
+ const ret = Symbol.iterator;
420
+ return ret;
465
421
  };
466
422
 
467
- module.exports.__wbindgen_object_clone_ref = function(arg0) {
468
- const ret = getObject(arg0);
469
- return addHeapObject(ret);
423
+ module.exports.__wbg_length_a446193dc22c12f8 = function(arg0) {
424
+ const ret = arg0.length;
425
+ return ret;
470
426
  };
471
427
 
472
- module.exports.__wbg_crypto_1d1f22824a6a080c = function(arg0) {
473
- const ret = getObject(arg0).crypto;
474
- return addHeapObject(ret);
428
+ module.exports.__wbg_length_e2d2a49132c1b256 = function(arg0) {
429
+ const ret = arg0.length;
430
+ return ret;
475
431
  };
476
432
 
477
- module.exports.__wbindgen_is_object = function(arg0) {
478
- const val = getObject(arg0);
479
- const ret = typeof(val) === 'object' && val !== null;
433
+ module.exports.__wbg_msCrypto_0a36e2ec3a343d26 = function(arg0) {
434
+ const ret = arg0.msCrypto;
480
435
  return ret;
481
436
  };
482
437
 
483
- module.exports.__wbg_process_4a72847cc503995b = function(arg0) {
484
- const ret = getObject(arg0).process;
485
- return addHeapObject(ret);
438
+ module.exports.__wbg_new0_f788a2397c7ca929 = function() {
439
+ const ret = new Date();
440
+ return ret;
486
441
  };
487
442
 
488
- module.exports.__wbg_versions_f686565e586dd935 = function(arg0) {
489
- const ret = getObject(arg0).versions;
490
- return addHeapObject(ret);
443
+ module.exports.__wbg_new_23a2665fac83c611 = function(arg0, arg1) {
444
+ try {
445
+ var state0 = {a: arg0, b: arg1};
446
+ var cb0 = (arg0, arg1) => {
447
+ const a = state0.a;
448
+ state0.a = 0;
449
+ try {
450
+ return __wbg_adapter_115(a, state0.b, arg0, arg1);
451
+ } finally {
452
+ state0.a = a;
453
+ }
454
+ };
455
+ const ret = new Promise(cb0);
456
+ return ret;
457
+ } finally {
458
+ state0.a = state0.b = 0;
459
+ }
491
460
  };
492
461
 
493
- module.exports.__wbg_node_104a2ff8d6ea03a2 = function(arg0) {
494
- const ret = getObject(arg0).node;
495
- return addHeapObject(ret);
462
+ module.exports.__wbg_new_31a97dac4f10fab7 = function(arg0) {
463
+ const ret = new Date(arg0);
464
+ return ret;
496
465
  };
497
466
 
498
- module.exports.__wbindgen_is_string = function(arg0) {
499
- const ret = typeof(getObject(arg0)) === 'string';
467
+ module.exports.__wbg_new_405e22f390576ce2 = function() {
468
+ const ret = new Object();
500
469
  return ret;
501
470
  };
502
471
 
503
- module.exports.__wbg_require_cca90b1a94a0255b = function() { return handleError(function () {
504
- const ret = module.require;
505
- return addHeapObject(ret);
506
- }, arguments) };
472
+ module.exports.__wbg_new_78feb108b6472713 = function() {
473
+ const ret = new Array();
474
+ return ret;
475
+ };
507
476
 
508
- module.exports.__wbindgen_is_function = function(arg0) {
509
- const ret = typeof(getObject(arg0)) === 'function';
477
+ module.exports.__wbg_new_8a6f238a6ece86ea = function() {
478
+ const ret = new Error();
510
479
  return ret;
511
480
  };
512
481
 
513
- module.exports.__wbindgen_string_new = function(arg0, arg1) {
514
- const ret = getStringFromWasm0(arg0, arg1);
515
- return addHeapObject(ret);
482
+ module.exports.__wbg_new_a12002a7f91c75be = function(arg0) {
483
+ const ret = new Uint8Array(arg0);
484
+ return ret;
516
485
  };
517
486
 
518
- module.exports.__wbg_call_67f2111acd2dfdb6 = function() { return handleError(function (arg0, arg1, arg2) {
519
- const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
520
- return addHeapObject(ret);
521
- }, arguments) };
487
+ module.exports.__wbg_newnoargs_105ed471475aaf50 = function(arg0, arg1) {
488
+ var v0 = getCachedStringFromWasm0(arg0, arg1);
489
+ const ret = new Function(v0);
490
+ return ret;
491
+ };
522
492
 
523
- module.exports.__wbg_msCrypto_eb05e62b530a1508 = function(arg0) {
524
- const ret = getObject(arg0).msCrypto;
525
- return addHeapObject(ret);
493
+ module.exports.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a = function(arg0, arg1, arg2) {
494
+ const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
495
+ return ret;
526
496
  };
527
497
 
528
- module.exports.__wbg_newwithlength_0d03cef43b68a530 = function(arg0) {
498
+ module.exports.__wbg_newwithlength_a381634e90c276d4 = function(arg0) {
529
499
  const ret = new Uint8Array(arg0 >>> 0);
530
- return addHeapObject(ret);
500
+ return ret;
531
501
  };
532
502
 
533
- module.exports.__wbg_iterator_40027cdd598da26b = function() {
534
- const ret = Symbol.iterator;
535
- return addHeapObject(ret);
503
+ module.exports.__wbg_next_25feadfc0913fea9 = function(arg0) {
504
+ const ret = arg0.next;
505
+ return ret;
536
506
  };
537
507
 
538
- module.exports.__wbg_get_3fddfed2c83f434c = function() { return handleError(function (arg0, arg1) {
539
- const ret = Reflect.get(getObject(arg0), getObject(arg1));
540
- return addHeapObject(ret);
541
- }, arguments) };
542
-
543
- module.exports.__wbg_call_3f093dd26d5569f8 = function() { return handleError(function (arg0, arg1) {
544
- const ret = getObject(arg0).call(getObject(arg1));
545
- return addHeapObject(ret);
508
+ module.exports.__wbg_next_6574e1a8a62d1055 = function() { return handleError(function (arg0) {
509
+ const ret = arg0.next();
510
+ return ret;
546
511
  }, arguments) };
547
512
 
548
- module.exports.__wbg_next_586204376d2ed373 = function(arg0) {
549
- const ret = getObject(arg0).next;
550
- return addHeapObject(ret);
513
+ module.exports.__wbg_node_02999533c4ea02e3 = function(arg0) {
514
+ const ret = arg0.node;
515
+ return ret;
551
516
  };
552
517
 
553
- module.exports.__wbg_length_21c4b0ae73cba59d = function(arg0) {
554
- const ret = getObject(arg0).length;
518
+ module.exports.__wbg_process_5c1d670bc53614b8 = function(arg0) {
519
+ const ret = arg0.process;
555
520
  return ret;
556
521
  };
557
522
 
558
- module.exports.__wbg_self_05040bd9523805b9 = function() { return handleError(function () {
559
- const ret = self.self;
560
- return addHeapObject(ret);
561
- }, arguments) };
523
+ module.exports.__wbg_queueMicrotask_6c22d88054515cb4 = function(arg0) {
524
+ const ret = arg0.queueMicrotask;
525
+ return ret;
526
+ };
562
527
 
563
- module.exports.__wbg_window_adc720039f2cb14f = function() { return handleError(function () {
564
- const ret = window.window;
565
- return addHeapObject(ret);
566
- }, arguments) };
528
+ module.exports.__wbg_queueMicrotask_b81e3a75ab81ca62 = function(arg0) {
529
+ queueMicrotask(arg0);
530
+ };
567
531
 
568
- module.exports.__wbg_globalThis_622105db80c1457d = function() { return handleError(function () {
569
- const ret = globalThis.globalThis;
570
- return addHeapObject(ret);
532
+ module.exports.__wbg_randomFillSync_ab2cfe79ebbf2740 = function() { return handleError(function (arg0, arg1) {
533
+ arg0.randomFillSync(arg1);
571
534
  }, arguments) };
572
535
 
573
- module.exports.__wbg_global_f56b013ed9bcf359 = function() { return handleError(function () {
574
- const ret = global.global;
575
- return addHeapObject(ret);
536
+ module.exports.__wbg_require_79b1e9274cde3c87 = function() { return handleError(function () {
537
+ const ret = module.require;
538
+ return ret;
576
539
  }, arguments) };
577
540
 
578
- module.exports.__wbindgen_is_undefined = function(arg0) {
579
- const ret = getObject(arg0) === undefined;
541
+ module.exports.__wbg_resolve_4851785c9c5f573d = function(arg0) {
542
+ const ret = Promise.resolve(arg0);
580
543
  return ret;
581
544
  };
582
545
 
583
- module.exports.__wbg_newnoargs_cfecb3965268594c = function(arg0, arg1) {
584
- var v0 = getCachedStringFromWasm0(arg0, arg1);
585
- const ret = new Function(v0);
586
- return addHeapObject(ret);
546
+ module.exports.__wbg_set_37837023f3d740e8 = function(arg0, arg1, arg2) {
547
+ arg0[arg1 >>> 0] = arg2;
587
548
  };
588
549
 
589
- module.exports.__wbindgen_error_new = function(arg0, arg1) {
590
- const ret = new Error(getStringFromWasm0(arg0, arg1));
591
- return addHeapObject(ret);
550
+ module.exports.__wbg_set_3fda3bac07393de4 = function(arg0, arg1, arg2) {
551
+ arg0[arg1] = arg2;
592
552
  };
593
553
 
594
- module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
595
- const ret = getObject(arg0) == getObject(arg1);
596
- return ret;
554
+ module.exports.__wbg_set_65595bdd868b3009 = function(arg0, arg1, arg2) {
555
+ arg0.set(arg1, arg2 >>> 0);
597
556
  };
598
557
 
599
- module.exports.__wbindgen_boolean_get = function(arg0) {
600
- const v = getObject(arg0);
601
- const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
602
- return ret;
558
+ module.exports.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
559
+ const ret = arg1.stack;
560
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
561
+ const len1 = WASM_VECTOR_LEN;
562
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
563
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
603
564
  };
604
565
 
605
- module.exports.__wbindgen_number_get = function(arg0, arg1) {
606
- const obj = getObject(arg1);
607
- const ret = typeof(obj) === 'number' ? obj : undefined;
608
- getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
609
- getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
566
+ module.exports.__wbg_static_accessor_GLOBAL_88a902d13a557d07 = function() {
567
+ const ret = typeof global === 'undefined' ? null : global;
568
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
610
569
  };
611
570
 
612
- module.exports.__wbindgen_string_get = function(arg0, arg1) {
613
- const obj = getObject(arg1);
614
- const ret = typeof(obj) === 'string' ? obj : undefined;
615
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
616
- var len1 = WASM_VECTOR_LEN;
617
- getInt32Memory0()[arg0 / 4 + 1] = len1;
618
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
571
+ module.exports.__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0 = function() {
572
+ const ret = typeof globalThis === 'undefined' ? null : globalThis;
573
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
619
574
  };
620
575
 
621
- module.exports.__wbg_instanceof_Uint8Array_c299a4ee232e76ba = function(arg0) {
622
- let result;
623
- try {
624
- result = getObject(arg0) instanceof Uint8Array;
625
- } catch (_) {
626
- result = false;
627
- }
628
- const ret = result;
629
- return ret;
576
+ module.exports.__wbg_static_accessor_SELF_37c5d418e4bf5819 = function() {
577
+ const ret = typeof self === 'undefined' ? null : self;
578
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
630
579
  };
631
580
 
632
- module.exports.__wbg_instanceof_ArrayBuffer_9221fa854ffb71b5 = function(arg0) {
633
- let result;
634
- try {
635
- result = getObject(arg0) instanceof ArrayBuffer;
636
- } catch (_) {
637
- result = false;
638
- }
639
- const ret = result;
640
- return ret;
581
+ module.exports.__wbg_static_accessor_WINDOW_5de37043a91a9c40 = function() {
582
+ const ret = typeof window === 'undefined' ? null : window;
583
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
641
584
  };
642
585
 
643
- module.exports.__wbindgen_is_bigint = function(arg0) {
644
- const ret = typeof(getObject(arg0)) === 'bigint';
586
+ module.exports.__wbg_subarray_aa9065fa9dc5df96 = function(arg0, arg1, arg2) {
587
+ const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
645
588
  return ret;
646
589
  };
647
590
 
648
- module.exports.__wbg_isArray_e783c41d0dd19b44 = function(arg0) {
649
- const ret = Array.isArray(getObject(arg0));
591
+ module.exports.__wbg_then_44b73946d2fb3e7d = function(arg0, arg1) {
592
+ const ret = arg0.then(arg1);
650
593
  return ret;
651
594
  };
652
595
 
653
- module.exports.__wbg_isSafeInteger_a23a66ee7c41b273 = function(arg0) {
654
- const ret = Number.isSafeInteger(getObject(arg0));
596
+ module.exports.__wbg_value_cd1ffa7b1ab794f1 = function(arg0) {
597
+ const ret = arg0.value;
655
598
  return ret;
656
599
  };
657
600
 
658
- module.exports.__wbindgen_in = function(arg0, arg1) {
659
- const ret = getObject(arg0) in getObject(arg1);
601
+ module.exports.__wbg_versions_c71aa1626a93e0a1 = function(arg0) {
602
+ const ret = arg0.versions;
660
603
  return ret;
661
604
  };
662
605
 
663
- module.exports.__wbindgen_bigint_get_as_i64 = function(arg0, arg1) {
664
- const v = getObject(arg1);
665
- const ret = typeof(v) === 'bigint' ? v : undefined;
666
- getBigInt64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? BigInt(0) : ret;
667
- getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
668
- };
669
-
670
606
  module.exports.__wbindgen_bigint_from_i64 = function(arg0) {
671
607
  const ret = arg0;
672
- return addHeapObject(ret);
673
- };
674
-
675
- module.exports.__wbindgen_jsval_eq = function(arg0, arg1) {
676
- const ret = getObject(arg0) === getObject(arg1);
677
608
  return ret;
678
609
  };
679
610
 
680
611
  module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
681
612
  const ret = BigInt.asUintN(64, arg0);
682
- return addHeapObject(ret);
613
+ return ret;
683
614
  };
684
615
 
685
- module.exports.__wbg_length_161c0d89c6535c1d = function(arg0) {
686
- const ret = getObject(arg0).length;
687
- return ret;
616
+ module.exports.__wbindgen_bigint_get_as_i64 = function(arg0, arg1) {
617
+ const v = arg1;
618
+ const ret = typeof(v) === 'bigint' ? v : undefined;
619
+ getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
620
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
688
621
  };
689
622
 
690
- module.exports.__wbg_get_0ee8ea3c7c984c45 = function(arg0, arg1) {
691
- const ret = getObject(arg0)[arg1 >>> 0];
692
- return addHeapObject(ret);
623
+ module.exports.__wbindgen_boolean_get = function(arg0) {
624
+ const v = arg0;
625
+ const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
626
+ return ret;
693
627
  };
694
628
 
695
- module.exports.__wbg_next_b2d3366343a208b3 = function() { return handleError(function (arg0) {
696
- const ret = getObject(arg0).next();
697
- return addHeapObject(ret);
698
- }, arguments) };
629
+ module.exports.__wbindgen_cb_drop = function(arg0) {
630
+ const obj = arg0.original;
631
+ if (obj.cnt-- == 1) {
632
+ obj.a = 0;
633
+ return true;
634
+ }
635
+ const ret = false;
636
+ return ret;
637
+ };
699
638
 
700
- module.exports.__wbg_done_90b14d6f6eacc42f = function(arg0) {
701
- const ret = getObject(arg0).done;
639
+ module.exports.__wbindgen_closure_wrapper24272 = function(arg0, arg1, arg2) {
640
+ const ret = makeMutClosure(arg0, arg1, 1083, __wbg_adapter_50);
702
641
  return ret;
703
642
  };
704
643
 
705
- module.exports.__wbg_value_3158be908c80a75e = function(arg0) {
706
- const ret = getObject(arg0).value;
707
- return addHeapObject(ret);
644
+ module.exports.__wbindgen_debug_string = function(arg0, arg1) {
645
+ const ret = debugString(arg1);
646
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
647
+ const len1 = WASM_VECTOR_LEN;
648
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
649
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
708
650
  };
709
651
 
710
- module.exports.__wbg_entries_488960b196cfb6a5 = function(arg0) {
711
- const ret = Object.entries(getObject(arg0));
712
- return addHeapObject(ret);
652
+ module.exports.__wbindgen_error_new = function(arg0, arg1) {
653
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
654
+ return ret;
713
655
  };
714
656
 
715
- module.exports.__wbg_getwithrefkey_15c62c2b8546208d = function(arg0, arg1) {
716
- const ret = getObject(arg0)[getObject(arg1)];
717
- return addHeapObject(ret);
657
+ module.exports.__wbindgen_in = function(arg0, arg1) {
658
+ const ret = arg0 in arg1;
659
+ return ret;
718
660
  };
719
661
 
720
- module.exports.__wbg_new_70828a4353259d4b = function(arg0, arg1) {
721
- try {
722
- var state0 = {a: arg0, b: arg1};
723
- var cb0 = (arg0, arg1) => {
724
- const a = state0.a;
725
- state0.a = 0;
726
- try {
727
- return __wbg_adapter_113(a, state0.b, arg0, arg1);
728
- } finally {
729
- state0.a = a;
730
- }
731
- };
732
- const ret = new Promise(cb0);
733
- return addHeapObject(ret);
734
- } finally {
735
- state0.a = state0.b = 0;
736
- }
662
+ module.exports.__wbindgen_init_externref_table = function() {
663
+ const table = wasm.__wbindgen_export_2;
664
+ const offset = table.grow(4);
665
+ table.set(0, undefined);
666
+ table.set(offset + 0, undefined);
667
+ table.set(offset + 1, null);
668
+ table.set(offset + 2, true);
669
+ table.set(offset + 3, false);
670
+ ;
737
671
  };
738
672
 
739
- module.exports.__wbg_new_632630b5cec17f21 = function() {
740
- const ret = new Object();
741
- return addHeapObject(ret);
673
+ module.exports.__wbindgen_is_bigint = function(arg0) {
674
+ const ret = typeof(arg0) === 'bigint';
675
+ return ret;
742
676
  };
743
677
 
744
- module.exports.__wbg_set_20cbc34131e76824 = function(arg0, arg1, arg2) {
745
- getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
678
+ module.exports.__wbindgen_is_function = function(arg0) {
679
+ const ret = typeof(arg0) === 'function';
680
+ return ret;
746
681
  };
747
682
 
748
- module.exports.__wbg_new_75208e29bddfd88c = function() {
749
- const ret = new Array();
750
- return addHeapObject(ret);
683
+ module.exports.__wbindgen_is_object = function(arg0) {
684
+ const val = arg0;
685
+ const ret = typeof(val) === 'object' && val !== null;
686
+ return ret;
751
687
  };
752
688
 
753
- module.exports.__wbg_set_79c308ecd9a1d091 = function(arg0, arg1, arg2) {
754
- getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
689
+ module.exports.__wbindgen_is_string = function(arg0) {
690
+ const ret = typeof(arg0) === 'string';
691
+ return ret;
755
692
  };
756
693
 
757
- module.exports.__wbindgen_debug_string = function(arg0, arg1) {
758
- const ret = debugString(getObject(arg1));
759
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
760
- const len1 = WASM_VECTOR_LEN;
761
- getInt32Memory0()[arg0 / 4 + 1] = len1;
762
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
694
+ module.exports.__wbindgen_is_undefined = function(arg0) {
695
+ const ret = arg0 === undefined;
696
+ return ret;
763
697
  };
764
698
 
765
- module.exports.__wbindgen_throw = function(arg0, arg1) {
766
- throw new Error(getStringFromWasm0(arg0, arg1));
699
+ module.exports.__wbindgen_jsval_eq = function(arg0, arg1) {
700
+ const ret = arg0 === arg1;
701
+ return ret;
767
702
  };
768
703
 
769
- module.exports.__wbg_then_f9e58f5a50f43eae = function(arg0, arg1) {
770
- const ret = getObject(arg0).then(getObject(arg1));
771
- return addHeapObject(ret);
704
+ module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
705
+ const ret = arg0 == arg1;
706
+ return ret;
772
707
  };
773
708
 
774
- module.exports.__wbg_queueMicrotask_f61ee94ee663068b = function(arg0) {
775
- queueMicrotask(getObject(arg0));
709
+ module.exports.__wbindgen_memory = function() {
710
+ const ret = wasm.memory;
711
+ return ret;
776
712
  };
777
713
 
778
- module.exports.__wbg_queueMicrotask_f82fc5d1e8f816ae = function(arg0) {
779
- const ret = getObject(arg0).queueMicrotask;
780
- return addHeapObject(ret);
714
+ module.exports.__wbindgen_number_get = function(arg0, arg1) {
715
+ const obj = arg1;
716
+ const ret = typeof(obj) === 'number' ? obj : undefined;
717
+ getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
718
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
781
719
  };
782
720
 
783
- module.exports.__wbg_resolve_5da6faf2c96fd1d5 = function(arg0) {
784
- const ret = Promise.resolve(getObject(arg0));
785
- return addHeapObject(ret);
721
+ module.exports.__wbindgen_number_new = function(arg0) {
722
+ const ret = arg0;
723
+ return ret;
786
724
  };
787
725
 
788
- module.exports.__wbindgen_cb_drop = function(arg0) {
789
- const obj = takeObject(arg0).original;
790
- if (obj.cnt-- == 1) {
791
- obj.a = 0;
792
- return true;
793
- }
794
- const ret = false;
726
+ module.exports.__wbindgen_string_get = function(arg0, arg1) {
727
+ const obj = arg1;
728
+ const ret = typeof(obj) === 'string' ? obj : undefined;
729
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
730
+ var len1 = WASM_VECTOR_LEN;
731
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
732
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
733
+ };
734
+
735
+ module.exports.__wbindgen_string_new = function(arg0, arg1) {
736
+ const ret = getStringFromWasm0(arg0, arg1);
795
737
  return ret;
796
738
  };
797
739
 
798
- module.exports.__wbindgen_closure_wrapper24142 = function(arg0, arg1, arg2) {
799
- const ret = makeMutClosure(arg0, arg1, 1088, __wbg_adapter_48);
800
- return addHeapObject(ret);
740
+ module.exports.__wbindgen_throw = function(arg0, arg1) {
741
+ throw new Error(getStringFromWasm0(arg0, arg1));
801
742
  };
802
743
 
803
744
  const path = require('path').join(__dirname, 'wasm_bg.wasm');
@@ -808,3 +749,5 @@ const wasmInstance = new WebAssembly.Instance(wasmModule, imports);
808
749
  wasm = wasmInstance.exports;
809
750
  module.exports.__wasm = wasm;
810
751
 
752
+ wasm.__wbindgen_start();
753
+
package/wasm_bg.wasm CHANGED
Binary file