@next/swc-wasm-nodejs 13.5.6 → 13.5.7-canary.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/wasm.d.ts +18 -18
- package/wasm.js +262 -263
- package/wasm_bg.wasm +0 -0
package/package.json
CHANGED
package/wasm.d.ts
CHANGED
|
@@ -1,24 +1,6 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
-
* @param {string} query
|
|
5
|
-
* @param {any} opts
|
|
6
|
-
* @returns {any}
|
|
7
|
-
*/
|
|
8
|
-
export function browserslist(query: string, opts: any): any;
|
|
9
|
-
/**
|
|
10
|
-
* @param {string} value
|
|
11
|
-
* @param {any} opts
|
|
12
|
-
* @returns {any}
|
|
13
|
-
*/
|
|
14
|
-
export function mdxCompileSync(value: string, opts: any): any;
|
|
15
|
-
/**
|
|
16
|
-
* @param {string} value
|
|
17
|
-
* @param {any} opts
|
|
18
|
-
* @returns {Promise<any>}
|
|
19
|
-
*/
|
|
20
|
-
export function mdxCompile(value: string, opts: any): Promise<any>;
|
|
21
|
-
/**
|
|
22
4
|
* @param {string} s
|
|
23
5
|
* @param {any} opts
|
|
24
6
|
* @returns {any}
|
|
@@ -54,3 +36,21 @@ export function parseSync(s: string, opts: any): any;
|
|
|
54
36
|
* @returns {Promise<any>}
|
|
55
37
|
*/
|
|
56
38
|
export function parse(s: string, opts: any): Promise<any>;
|
|
39
|
+
/**
|
|
40
|
+
* @param {string} value
|
|
41
|
+
* @param {any} opts
|
|
42
|
+
* @returns {any}
|
|
43
|
+
*/
|
|
44
|
+
export function mdxCompileSync(value: string, opts: any): any;
|
|
45
|
+
/**
|
|
46
|
+
* @param {string} value
|
|
47
|
+
* @param {any} opts
|
|
48
|
+
* @returns {Promise<any>}
|
|
49
|
+
*/
|
|
50
|
+
export function mdxCompile(value: string, opts: any): Promise<any>;
|
|
51
|
+
/**
|
|
52
|
+
* @param {string} query
|
|
53
|
+
* @param {any} opts
|
|
54
|
+
* @returns {any}
|
|
55
|
+
*/
|
|
56
|
+
export function browserslist(query: string, opts: any): any;
|
package/wasm.js
CHANGED
|
@@ -117,6 +117,24 @@ function addHeapObject(obj) {
|
|
|
117
117
|
return idx;
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
+
let cachedFloat64Memory0 = null;
|
|
121
|
+
|
|
122
|
+
function getFloat64Memory0() {
|
|
123
|
+
if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
|
|
124
|
+
cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
|
125
|
+
}
|
|
126
|
+
return cachedFloat64Memory0;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
let cachedBigInt64Memory0 = null;
|
|
130
|
+
|
|
131
|
+
function getBigInt64Memory0() {
|
|
132
|
+
if (cachedBigInt64Memory0 === null || cachedBigInt64Memory0.byteLength === 0) {
|
|
133
|
+
cachedBigInt64Memory0 = new BigInt64Array(wasm.memory.buffer);
|
|
134
|
+
}
|
|
135
|
+
return cachedBigInt64Memory0;
|
|
136
|
+
}
|
|
137
|
+
|
|
120
138
|
function debugString(val) {
|
|
121
139
|
// primitive types
|
|
122
140
|
const type = typeof val;
|
|
@@ -182,24 +200,6 @@ function debugString(val) {
|
|
|
182
200
|
return className;
|
|
183
201
|
}
|
|
184
202
|
|
|
185
|
-
let cachedFloat64Memory0 = null;
|
|
186
|
-
|
|
187
|
-
function getFloat64Memory0() {
|
|
188
|
-
if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
|
|
189
|
-
cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
|
190
|
-
}
|
|
191
|
-
return cachedFloat64Memory0;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
let cachedBigInt64Memory0 = null;
|
|
195
|
-
|
|
196
|
-
function getBigInt64Memory0() {
|
|
197
|
-
if (cachedBigInt64Memory0 === null || cachedBigInt64Memory0.byteLength === 0) {
|
|
198
|
-
cachedBigInt64Memory0 = new BigInt64Array(wasm.memory.buffer);
|
|
199
|
-
}
|
|
200
|
-
return cachedBigInt64Memory0;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
203
|
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
204
204
|
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
205
205
|
const real = (...args) => {
|
|
@@ -225,20 +225,18 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
225
225
|
return real;
|
|
226
226
|
}
|
|
227
227
|
function __wbg_adapter_48(arg0, arg1, arg2) {
|
|
228
|
-
wasm.
|
|
228
|
+
wasm._dyn_core_ee09cdb701fd1a68___ops__function__FnMut_______Output______as_wasm_bindgen_9ed0e3b0c0ec5f8___closure__WasmClosure___describe__invoke___wasm_bindgen_9ed0e3b0c0ec5f8___JsValue_____(arg0, arg1, addHeapObject(arg2));
|
|
229
229
|
}
|
|
230
230
|
|
|
231
231
|
/**
|
|
232
|
-
* @param {string}
|
|
232
|
+
* @param {string} s
|
|
233
233
|
* @param {any} opts
|
|
234
234
|
* @returns {any}
|
|
235
235
|
*/
|
|
236
|
-
module.exports.
|
|
236
|
+
module.exports.minifySync = function(s, opts) {
|
|
237
237
|
try {
|
|
238
238
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
239
|
-
|
|
240
|
-
const len0 = WASM_VECTOR_LEN;
|
|
241
|
-
wasm.browserslist(retptr, ptr0, len0, addHeapObject(opts));
|
|
239
|
+
wasm.minifySync(retptr, addHeapObject(s), addHeapObject(opts));
|
|
242
240
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
243
241
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
244
242
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -251,34 +249,25 @@ module.exports.browserslist = function(query, opts) {
|
|
|
251
249
|
}
|
|
252
250
|
};
|
|
253
251
|
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
try {
|
|
264
|
-
return f.apply(this, args);
|
|
265
|
-
} catch (e) {
|
|
266
|
-
wasm.__wbindgen_exn_store(addHeapObject(e));
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
function __wbg_adapter_114(arg0, arg1, arg2, arg3) {
|
|
270
|
-
wasm.wasm_bindgen_a32b4eb3683bf048___convert__closures__invoke2_mut___wasm_bindgen_a32b4eb3683bf048___JsValue__wasm_bindgen_a32b4eb3683bf048___JsValue_____(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
271
|
-
}
|
|
252
|
+
/**
|
|
253
|
+
* @param {string} s
|
|
254
|
+
* @param {any} opts
|
|
255
|
+
* @returns {Promise<any>}
|
|
256
|
+
*/
|
|
257
|
+
module.exports.minify = function(s, opts) {
|
|
258
|
+
const ret = wasm.minify(addHeapObject(s), addHeapObject(opts));
|
|
259
|
+
return takeObject(ret);
|
|
260
|
+
};
|
|
272
261
|
|
|
273
262
|
/**
|
|
274
|
-
* @param {
|
|
263
|
+
* @param {any} s
|
|
275
264
|
* @param {any} opts
|
|
276
265
|
* @returns {any}
|
|
277
266
|
*/
|
|
278
|
-
module.exports.
|
|
267
|
+
module.exports.transformSync = function(s, opts) {
|
|
279
268
|
try {
|
|
280
269
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
281
|
-
wasm.
|
|
270
|
+
wasm.transformSync(retptr, addHeapObject(s), addHeapObject(opts));
|
|
282
271
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
283
272
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
284
273
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -292,12 +281,12 @@ module.exports.mdxCompileSync = function(value, opts) {
|
|
|
292
281
|
};
|
|
293
282
|
|
|
294
283
|
/**
|
|
295
|
-
* @param {
|
|
284
|
+
* @param {any} s
|
|
296
285
|
* @param {any} opts
|
|
297
286
|
* @returns {Promise<any>}
|
|
298
287
|
*/
|
|
299
|
-
module.exports.
|
|
300
|
-
const ret = wasm.
|
|
288
|
+
module.exports.transform = function(s, opts) {
|
|
289
|
+
const ret = wasm.transform(addHeapObject(s), addHeapObject(opts));
|
|
301
290
|
return takeObject(ret);
|
|
302
291
|
};
|
|
303
292
|
|
|
@@ -306,10 +295,10 @@ module.exports.mdxCompile = function(value, opts) {
|
|
|
306
295
|
* @param {any} opts
|
|
307
296
|
* @returns {any}
|
|
308
297
|
*/
|
|
309
|
-
module.exports.
|
|
298
|
+
module.exports.parseSync = function(s, opts) {
|
|
310
299
|
try {
|
|
311
300
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
312
|
-
wasm.
|
|
301
|
+
wasm.parseSync(retptr, addHeapObject(s), addHeapObject(opts));
|
|
313
302
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
314
303
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
315
304
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -327,20 +316,20 @@ module.exports.minifySync = function(s, opts) {
|
|
|
327
316
|
* @param {any} opts
|
|
328
317
|
* @returns {Promise<any>}
|
|
329
318
|
*/
|
|
330
|
-
module.exports.
|
|
331
|
-
const ret = wasm.
|
|
319
|
+
module.exports.parse = function(s, opts) {
|
|
320
|
+
const ret = wasm.parse(addHeapObject(s), addHeapObject(opts));
|
|
332
321
|
return takeObject(ret);
|
|
333
322
|
};
|
|
334
323
|
|
|
335
324
|
/**
|
|
336
|
-
* @param {
|
|
325
|
+
* @param {string} value
|
|
337
326
|
* @param {any} opts
|
|
338
327
|
* @returns {any}
|
|
339
328
|
*/
|
|
340
|
-
module.exports.
|
|
329
|
+
module.exports.mdxCompileSync = function(value, opts) {
|
|
341
330
|
try {
|
|
342
331
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
343
|
-
wasm.
|
|
332
|
+
wasm.mdxCompileSync(retptr, addHeapObject(value), addHeapObject(opts));
|
|
344
333
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
345
334
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
346
335
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -354,24 +343,33 @@ module.exports.transformSync = function(s, opts) {
|
|
|
354
343
|
};
|
|
355
344
|
|
|
356
345
|
/**
|
|
357
|
-
* @param {
|
|
346
|
+
* @param {string} value
|
|
358
347
|
* @param {any} opts
|
|
359
348
|
* @returns {Promise<any>}
|
|
360
349
|
*/
|
|
361
|
-
module.exports.
|
|
362
|
-
const ret = wasm.
|
|
350
|
+
module.exports.mdxCompile = function(value, opts) {
|
|
351
|
+
const ret = wasm.mdxCompile(addHeapObject(value), addHeapObject(opts));
|
|
363
352
|
return takeObject(ret);
|
|
364
353
|
};
|
|
365
354
|
|
|
355
|
+
function getCachedStringFromWasm0(ptr, len) {
|
|
356
|
+
if (ptr === 0) {
|
|
357
|
+
return getObject(len);
|
|
358
|
+
} else {
|
|
359
|
+
return getStringFromWasm0(ptr, len);
|
|
360
|
+
}
|
|
361
|
+
}
|
|
366
362
|
/**
|
|
367
|
-
* @param {string}
|
|
363
|
+
* @param {string} query
|
|
368
364
|
* @param {any} opts
|
|
369
365
|
* @returns {any}
|
|
370
366
|
*/
|
|
371
|
-
module.exports.
|
|
367
|
+
module.exports.browserslist = function(query, opts) {
|
|
372
368
|
try {
|
|
373
369
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
374
|
-
|
|
370
|
+
const ptr0 = passStringToWasm0(query, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
371
|
+
const len0 = WASM_VECTOR_LEN;
|
|
372
|
+
wasm.browserslist(retptr, ptr0, len0, addHeapObject(opts));
|
|
375
373
|
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
376
374
|
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
377
375
|
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
@@ -384,60 +382,21 @@ module.exports.parseSync = function(s, opts) {
|
|
|
384
382
|
}
|
|
385
383
|
};
|
|
386
384
|
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
module.exports.__wbg_get_27fe3dac1c4d0224 = function(arg0, arg1) {
|
|
398
|
-
const ret = getObject(arg0)[arg1 >>> 0];
|
|
399
|
-
return addHeapObject(ret);
|
|
400
|
-
};
|
|
385
|
+
function handleError(f, args) {
|
|
386
|
+
try {
|
|
387
|
+
return f.apply(this, args);
|
|
388
|
+
} catch (e) {
|
|
389
|
+
wasm.__wbindgen_exn_store(addHeapObject(e));
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
function __wbg_adapter_126(arg0, arg1, arg2, arg3) {
|
|
393
|
+
wasm.wasm_bindgen_9ed0e3b0c0ec5f8___convert__closures__invoke2_mut___wasm_bindgen_9ed0e3b0c0ec5f8___JsValue__wasm_bindgen_9ed0e3b0c0ec5f8___JsValue_____(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
394
|
+
}
|
|
401
395
|
|
|
402
396
|
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
403
397
|
takeObject(arg0);
|
|
404
398
|
};
|
|
405
399
|
|
|
406
|
-
module.exports.__wbg_next_88560ec06a094dea = function() { return handleError(function (arg0) {
|
|
407
|
-
const ret = getObject(arg0).next();
|
|
408
|
-
return addHeapObject(ret);
|
|
409
|
-
}, arguments) };
|
|
410
|
-
|
|
411
|
-
module.exports.__wbg_done_1ebec03bbd919843 = function(arg0) {
|
|
412
|
-
const ret = getObject(arg0).done;
|
|
413
|
-
return ret;
|
|
414
|
-
};
|
|
415
|
-
|
|
416
|
-
module.exports.__wbg_value_6ac8da5cc5b3efda = function(arg0) {
|
|
417
|
-
const ret = getObject(arg0).value;
|
|
418
|
-
return addHeapObject(ret);
|
|
419
|
-
};
|
|
420
|
-
|
|
421
|
-
module.exports.__wbg_getwithrefkey_15c62c2b8546208d = function(arg0, arg1) {
|
|
422
|
-
const ret = getObject(arg0)[getObject(arg1)];
|
|
423
|
-
return addHeapObject(ret);
|
|
424
|
-
};
|
|
425
|
-
|
|
426
|
-
module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
427
|
-
const ret = getObject(arg0) === undefined;
|
|
428
|
-
return ret;
|
|
429
|
-
};
|
|
430
|
-
|
|
431
|
-
module.exports.__wbindgen_in = function(arg0, arg1) {
|
|
432
|
-
const ret = getObject(arg0) in getObject(arg1);
|
|
433
|
-
return ret;
|
|
434
|
-
};
|
|
435
|
-
|
|
436
|
-
module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
|
437
|
-
const ret = getObject(arg0) == getObject(arg1);
|
|
438
|
-
return ret;
|
|
439
|
-
};
|
|
440
|
-
|
|
441
400
|
module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
442
401
|
const obj = getObject(arg1);
|
|
443
402
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
@@ -447,34 +406,42 @@ module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
|
447
406
|
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
448
407
|
};
|
|
449
408
|
|
|
450
|
-
module.exports.__wbg_new0_25059e40b1c02766 = function() {
|
|
451
|
-
const ret = new Date();
|
|
452
|
-
return addHeapObject(ret);
|
|
453
|
-
};
|
|
454
|
-
|
|
455
409
|
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
456
410
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
457
411
|
return addHeapObject(ret);
|
|
458
412
|
};
|
|
459
413
|
|
|
460
|
-
module.exports.
|
|
461
|
-
const
|
|
462
|
-
|
|
463
|
-
|
|
414
|
+
module.exports.__wbindgen_boolean_get = function(arg0) {
|
|
415
|
+
const v = getObject(arg0);
|
|
416
|
+
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
417
|
+
return ret;
|
|
418
|
+
};
|
|
464
419
|
|
|
465
|
-
module.exports.
|
|
420
|
+
module.exports.__wbindgen_is_bigint = function(arg0) {
|
|
421
|
+
const ret = typeof(getObject(arg0)) === 'bigint';
|
|
422
|
+
return ret;
|
|
423
|
+
};
|
|
424
|
+
|
|
425
|
+
module.exports.__wbindgen_bigint_from_i64 = function(arg0) {
|
|
466
426
|
const ret = arg0;
|
|
467
427
|
return addHeapObject(ret);
|
|
468
428
|
};
|
|
469
429
|
|
|
470
|
-
module.exports.
|
|
471
|
-
const ret =
|
|
430
|
+
module.exports.__wbindgen_jsval_eq = function(arg0, arg1) {
|
|
431
|
+
const ret = getObject(arg0) === getObject(arg1);
|
|
432
|
+
return ret;
|
|
433
|
+
};
|
|
434
|
+
|
|
435
|
+
module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
436
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
472
437
|
return addHeapObject(ret);
|
|
473
438
|
};
|
|
474
439
|
|
|
475
|
-
module.exports.
|
|
476
|
-
const
|
|
477
|
-
|
|
440
|
+
module.exports.__wbindgen_number_get = function(arg0, arg1) {
|
|
441
|
+
const obj = getObject(arg1);
|
|
442
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
443
|
+
getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
|
|
444
|
+
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
|
478
445
|
};
|
|
479
446
|
|
|
480
447
|
module.exports.__wbindgen_is_object = function(arg0) {
|
|
@@ -483,24 +450,24 @@ module.exports.__wbindgen_is_object = function(arg0) {
|
|
|
483
450
|
return ret;
|
|
484
451
|
};
|
|
485
452
|
|
|
486
|
-
module.exports.
|
|
487
|
-
const
|
|
488
|
-
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
453
|
+
module.exports.__wbindgen_in = function(arg0, arg1) {
|
|
454
|
+
const ret = getObject(arg0) in getObject(arg1);
|
|
489
455
|
return ret;
|
|
490
456
|
};
|
|
491
457
|
|
|
492
|
-
module.exports.
|
|
493
|
-
const ret =
|
|
494
|
-
return
|
|
458
|
+
module.exports.__wbindgen_is_string = function(arg0) {
|
|
459
|
+
const ret = typeof(getObject(arg0)) === 'string';
|
|
460
|
+
return ret;
|
|
495
461
|
};
|
|
496
462
|
|
|
497
|
-
module.exports.
|
|
498
|
-
getObject(arg0)
|
|
463
|
+
module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
464
|
+
const ret = getObject(arg0) === undefined;
|
|
465
|
+
return ret;
|
|
499
466
|
};
|
|
500
467
|
|
|
501
|
-
module.exports.
|
|
502
|
-
const ret =
|
|
503
|
-
return ret;
|
|
468
|
+
module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
469
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
470
|
+
return addHeapObject(ret);
|
|
504
471
|
};
|
|
505
472
|
|
|
506
473
|
module.exports.__wbg_new_abda76e883ba8a5f = function() {
|
|
@@ -522,41 +489,38 @@ if (arg0 !== 0) { wasm.__wbindgen_free(arg0, arg1); }
|
|
|
522
489
|
console.error(v0);
|
|
523
490
|
};
|
|
524
491
|
|
|
525
|
-
module.exports.
|
|
526
|
-
const
|
|
527
|
-
|
|
492
|
+
module.exports.__wbindgen_cb_drop = function(arg0) {
|
|
493
|
+
const obj = takeObject(arg0).original;
|
|
494
|
+
if (obj.cnt-- == 1) {
|
|
495
|
+
obj.a = 0;
|
|
496
|
+
return true;
|
|
497
|
+
}
|
|
498
|
+
const ret = false;
|
|
499
|
+
return ret;
|
|
528
500
|
};
|
|
529
501
|
|
|
530
|
-
module.exports.
|
|
531
|
-
const ret = getObject(arg0)
|
|
502
|
+
module.exports.__wbindgen_object_clone_ref = function(arg0) {
|
|
503
|
+
const ret = getObject(arg0);
|
|
532
504
|
return addHeapObject(ret);
|
|
533
505
|
};
|
|
534
506
|
|
|
535
|
-
module.exports.
|
|
536
|
-
const ret =
|
|
537
|
-
return
|
|
507
|
+
module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
|
508
|
+
const ret = getObject(arg0) == getObject(arg1);
|
|
509
|
+
return ret;
|
|
538
510
|
};
|
|
539
511
|
|
|
540
|
-
module.exports.
|
|
541
|
-
|
|
542
|
-
}, arguments) };
|
|
543
|
-
|
|
544
|
-
module.exports.__wbg_subarray_7526649b91a252a6 = function(arg0, arg1, arg2) {
|
|
545
|
-
const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
|
|
512
|
+
module.exports.__wbindgen_number_new = function(arg0) {
|
|
513
|
+
const ret = arg0;
|
|
546
514
|
return addHeapObject(ret);
|
|
547
515
|
};
|
|
548
516
|
|
|
549
|
-
module.exports.
|
|
550
|
-
getObject(arg0)
|
|
551
|
-
}, arguments) };
|
|
552
|
-
|
|
553
|
-
module.exports.__wbg_new_537b7341ce90bb31 = function(arg0) {
|
|
554
|
-
const ret = new Uint8Array(getObject(arg0));
|
|
517
|
+
module.exports.__wbg_getwithrefkey_15c62c2b8546208d = function(arg0, arg1) {
|
|
518
|
+
const ret = getObject(arg0)[getObject(arg1)];
|
|
555
519
|
return addHeapObject(ret);
|
|
556
520
|
};
|
|
557
521
|
|
|
558
|
-
module.exports.
|
|
559
|
-
getObject(arg0)
|
|
522
|
+
module.exports.__wbg_set_20cbc34131e76824 = function(arg0, arg1, arg2) {
|
|
523
|
+
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
560
524
|
};
|
|
561
525
|
|
|
562
526
|
module.exports.__wbg_crypto_c48a774b022d20ac = function(arg0) {
|
|
@@ -579,50 +543,79 @@ module.exports.__wbg_node_1cd7a5d853dbea79 = function(arg0) {
|
|
|
579
543
|
return addHeapObject(ret);
|
|
580
544
|
};
|
|
581
545
|
|
|
582
|
-
module.exports.__wbindgen_is_string = function(arg0) {
|
|
583
|
-
const ret = typeof(getObject(arg0)) === 'string';
|
|
584
|
-
return ret;
|
|
585
|
-
};
|
|
586
|
-
|
|
587
546
|
module.exports.__wbg_msCrypto_bcb970640f50a1e8 = function(arg0) {
|
|
588
547
|
const ret = getObject(arg0).msCrypto;
|
|
589
548
|
return addHeapObject(ret);
|
|
590
549
|
};
|
|
591
550
|
|
|
592
|
-
module.exports.__wbg_newwithlength_b56c882b57805732 = function(arg0) {
|
|
593
|
-
const ret = new Uint8Array(arg0 >>> 0);
|
|
594
|
-
return addHeapObject(ret);
|
|
595
|
-
};
|
|
596
|
-
|
|
597
551
|
module.exports.__wbg_require_8f08ceecec0f4fee = function() { return handleError(function () {
|
|
598
552
|
const ret = module.require;
|
|
599
553
|
return addHeapObject(ret);
|
|
600
554
|
}, arguments) };
|
|
601
555
|
|
|
556
|
+
module.exports.__wbg_randomFillSync_dc1e9a60c158336d = function() { return handleError(function (arg0, arg1) {
|
|
557
|
+
getObject(arg0).randomFillSync(takeObject(arg1));
|
|
558
|
+
}, arguments) };
|
|
559
|
+
|
|
560
|
+
module.exports.__wbg_getRandomValues_37fa2ca9e4e07fab = function() { return handleError(function (arg0, arg1) {
|
|
561
|
+
getObject(arg0).getRandomValues(getObject(arg1));
|
|
562
|
+
}, arguments) };
|
|
563
|
+
|
|
564
|
+
module.exports.__wbg_get_27fe3dac1c4d0224 = function(arg0, arg1) {
|
|
565
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
566
|
+
return addHeapObject(ret);
|
|
567
|
+
};
|
|
568
|
+
|
|
569
|
+
module.exports.__wbg_length_e498fbc24f9c1d4f = function(arg0) {
|
|
570
|
+
const ret = getObject(arg0).length;
|
|
571
|
+
return ret;
|
|
572
|
+
};
|
|
573
|
+
|
|
602
574
|
module.exports.__wbindgen_is_function = function(arg0) {
|
|
603
575
|
const ret = typeof(getObject(arg0)) === 'function';
|
|
604
576
|
return ret;
|
|
605
577
|
};
|
|
606
578
|
|
|
607
|
-
module.exports.
|
|
608
|
-
|
|
579
|
+
module.exports.__wbg_newnoargs_2b8b6bd7753c76ba = function(arg0, arg1) {
|
|
580
|
+
var v0 = getCachedStringFromWasm0(arg0, arg1);
|
|
581
|
+
const ret = new Function(v0);
|
|
582
|
+
return addHeapObject(ret);
|
|
583
|
+
};
|
|
584
|
+
|
|
585
|
+
module.exports.__wbg_next_b7d530c04fd8b217 = function(arg0) {
|
|
586
|
+
const ret = getObject(arg0).next;
|
|
587
|
+
return addHeapObject(ret);
|
|
588
|
+
};
|
|
589
|
+
|
|
590
|
+
module.exports.__wbg_next_88560ec06a094dea = function() { return handleError(function (arg0) {
|
|
591
|
+
const ret = getObject(arg0).next();
|
|
609
592
|
return addHeapObject(ret);
|
|
610
593
|
}, arguments) };
|
|
611
594
|
|
|
595
|
+
module.exports.__wbg_done_1ebec03bbd919843 = function(arg0) {
|
|
596
|
+
const ret = getObject(arg0).done;
|
|
597
|
+
return ret;
|
|
598
|
+
};
|
|
599
|
+
|
|
600
|
+
module.exports.__wbg_value_6ac8da5cc5b3efda = function(arg0) {
|
|
601
|
+
const ret = getObject(arg0).value;
|
|
602
|
+
return addHeapObject(ret);
|
|
603
|
+
};
|
|
604
|
+
|
|
612
605
|
module.exports.__wbg_iterator_55f114446221aa5a = function() {
|
|
613
606
|
const ret = Symbol.iterator;
|
|
614
607
|
return addHeapObject(ret);
|
|
615
608
|
};
|
|
616
609
|
|
|
617
|
-
module.exports.
|
|
618
|
-
const ret = getObject(arg0)
|
|
610
|
+
module.exports.__wbg_get_baf4855f9a986186 = function() { return handleError(function (arg0, arg1) {
|
|
611
|
+
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
619
612
|
return addHeapObject(ret);
|
|
620
613
|
}, arguments) };
|
|
621
614
|
|
|
622
|
-
module.exports.
|
|
623
|
-
const ret = getObject(arg0).
|
|
615
|
+
module.exports.__wbg_call_95d1ea488d03e4e8 = function() { return handleError(function (arg0, arg1) {
|
|
616
|
+
const ret = getObject(arg0).call(getObject(arg1));
|
|
624
617
|
return addHeapObject(ret);
|
|
625
|
-
};
|
|
618
|
+
}, arguments) };
|
|
626
619
|
|
|
627
620
|
module.exports.__wbg_self_e7c1f827057f6584 = function() { return handleError(function () {
|
|
628
621
|
const ret = self.self;
|
|
@@ -644,55 +637,17 @@ module.exports.__wbg_global_c85a9259e621f3db = function() { return handleError(f
|
|
|
644
637
|
return addHeapObject(ret);
|
|
645
638
|
}, arguments) };
|
|
646
639
|
|
|
647
|
-
module.exports.
|
|
648
|
-
|
|
649
|
-
const ret = new Function(v0);
|
|
650
|
-
return addHeapObject(ret);
|
|
651
|
-
};
|
|
652
|
-
|
|
653
|
-
module.exports.__wbindgen_object_clone_ref = function(arg0) {
|
|
654
|
-
const ret = getObject(arg0);
|
|
655
|
-
return addHeapObject(ret);
|
|
656
|
-
};
|
|
657
|
-
|
|
658
|
-
module.exports.__wbg_length_27a2afe8ab42b09f = function(arg0) {
|
|
659
|
-
const ret = getObject(arg0).length;
|
|
660
|
-
return ret;
|
|
661
|
-
};
|
|
662
|
-
|
|
663
|
-
module.exports.__wbindgen_debug_string = function(arg0, arg1) {
|
|
664
|
-
const ret = debugString(getObject(arg1));
|
|
665
|
-
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
666
|
-
const len0 = WASM_VECTOR_LEN;
|
|
667
|
-
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
668
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
669
|
-
};
|
|
670
|
-
|
|
671
|
-
module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
672
|
-
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
673
|
-
return addHeapObject(ret);
|
|
674
|
-
};
|
|
675
|
-
|
|
676
|
-
module.exports.__wbg_entries_4e1315b774245952 = function(arg0) {
|
|
677
|
-
const ret = Object.entries(getObject(arg0));
|
|
640
|
+
module.exports.__wbg_new_b525de17f44a8943 = function() {
|
|
641
|
+
const ret = new Array();
|
|
678
642
|
return addHeapObject(ret);
|
|
679
643
|
};
|
|
680
644
|
|
|
681
|
-
module.exports.
|
|
682
|
-
|
|
683
|
-
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
684
|
-
getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
|
|
685
|
-
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
|
645
|
+
module.exports.__wbg_set_17224bc548dd1d7b = function(arg0, arg1, arg2) {
|
|
646
|
+
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
686
647
|
};
|
|
687
648
|
|
|
688
|
-
module.exports.
|
|
689
|
-
|
|
690
|
-
try {
|
|
691
|
-
result = getObject(arg0) instanceof Uint8Array;
|
|
692
|
-
} catch {
|
|
693
|
-
result = false;
|
|
694
|
-
}
|
|
695
|
-
const ret = result;
|
|
649
|
+
module.exports.__wbg_isArray_39d28997bf6b96b4 = function(arg0) {
|
|
650
|
+
const ret = Array.isArray(getObject(arg0));
|
|
696
651
|
return ret;
|
|
697
652
|
};
|
|
698
653
|
|
|
@@ -707,46 +662,39 @@ module.exports.__wbg_instanceof_ArrayBuffer_a69f02ee4c4f5065 = function(arg0) {
|
|
|
707
662
|
return ret;
|
|
708
663
|
};
|
|
709
664
|
|
|
710
|
-
module.exports.
|
|
711
|
-
const ret =
|
|
712
|
-
return ret;
|
|
713
|
-
};
|
|
665
|
+
module.exports.__wbg_call_9495de66fdbe016b = function() { return handleError(function (arg0, arg1, arg2) {
|
|
666
|
+
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
667
|
+
return addHeapObject(ret);
|
|
668
|
+
}, arguments) };
|
|
714
669
|
|
|
715
|
-
module.exports.
|
|
716
|
-
const ret = getObject(arg0)
|
|
670
|
+
module.exports.__wbg_isSafeInteger_8c4789029e885159 = function(arg0) {
|
|
671
|
+
const ret = Number.isSafeInteger(getObject(arg0));
|
|
717
672
|
return ret;
|
|
718
673
|
};
|
|
719
674
|
|
|
720
|
-
module.exports.
|
|
721
|
-
const ret =
|
|
675
|
+
module.exports.__wbg_getTime_7c59072d1651a3cf = function(arg0) {
|
|
676
|
+
const ret = getObject(arg0).getTime();
|
|
722
677
|
return ret;
|
|
723
678
|
};
|
|
724
679
|
|
|
725
|
-
module.exports.
|
|
726
|
-
const
|
|
727
|
-
|
|
728
|
-
getBigInt64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? BigInt(0) : ret;
|
|
729
|
-
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
|
680
|
+
module.exports.__wbg_getTimezoneOffset_2a6b27fb18493a56 = function(arg0) {
|
|
681
|
+
const ret = getObject(arg0).getTimezoneOffset();
|
|
682
|
+
return ret;
|
|
730
683
|
};
|
|
731
684
|
|
|
732
|
-
module.exports.
|
|
733
|
-
const ret = arg0;
|
|
685
|
+
module.exports.__wbg_new_f127e324c1313064 = function(arg0) {
|
|
686
|
+
const ret = new Date(getObject(arg0));
|
|
734
687
|
return addHeapObject(ret);
|
|
735
688
|
};
|
|
736
689
|
|
|
737
|
-
module.exports.
|
|
738
|
-
const ret =
|
|
739
|
-
return ret;
|
|
740
|
-
};
|
|
741
|
-
|
|
742
|
-
module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
743
|
-
const ret = BigInt.asUintN(64, arg0);
|
|
690
|
+
module.exports.__wbg_new0_25059e40b1c02766 = function() {
|
|
691
|
+
const ret = new Date();
|
|
744
692
|
return addHeapObject(ret);
|
|
745
693
|
};
|
|
746
694
|
|
|
747
|
-
module.exports.
|
|
748
|
-
const ret =
|
|
749
|
-
return ret;
|
|
695
|
+
module.exports.__wbg_entries_4e1315b774245952 = function(arg0) {
|
|
696
|
+
const ret = Object.entries(getObject(arg0));
|
|
697
|
+
return addHeapObject(ret);
|
|
750
698
|
};
|
|
751
699
|
|
|
752
700
|
module.exports.__wbg_new_f9876326328f45ed = function() {
|
|
@@ -754,10 +702,6 @@ module.exports.__wbg_new_f9876326328f45ed = function() {
|
|
|
754
702
|
return addHeapObject(ret);
|
|
755
703
|
};
|
|
756
704
|
|
|
757
|
-
module.exports.__wbg_set_20cbc34131e76824 = function(arg0, arg1, arg2) {
|
|
758
|
-
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
759
|
-
};
|
|
760
|
-
|
|
761
705
|
module.exports.__wbg_new_9d3a9ce4282a18a8 = function(arg0, arg1) {
|
|
762
706
|
try {
|
|
763
707
|
var state0 = {a: arg0, b: arg1};
|
|
@@ -765,7 +709,7 @@ module.exports.__wbg_new_9d3a9ce4282a18a8 = function(arg0, arg1) {
|
|
|
765
709
|
const a = state0.a;
|
|
766
710
|
state0.a = 0;
|
|
767
711
|
try {
|
|
768
|
-
return
|
|
712
|
+
return __wbg_adapter_126(a, state0.b, arg0, arg1);
|
|
769
713
|
} finally {
|
|
770
714
|
state0.a = a;
|
|
771
715
|
}
|
|
@@ -777,32 +721,87 @@ module.exports.__wbg_new_9d3a9ce4282a18a8 = function(arg0, arg1) {
|
|
|
777
721
|
}
|
|
778
722
|
};
|
|
779
723
|
|
|
780
|
-
module.exports.__wbindgen_throw = function(arg0, arg1) {
|
|
781
|
-
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
782
|
-
};
|
|
783
|
-
|
|
784
724
|
module.exports.__wbg_resolve_fd40f858d9db1a04 = function(arg0) {
|
|
785
725
|
const ret = Promise.resolve(getObject(arg0));
|
|
786
726
|
return addHeapObject(ret);
|
|
787
727
|
};
|
|
788
728
|
|
|
789
|
-
module.exports.
|
|
790
|
-
const
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
729
|
+
module.exports.__wbg_then_ec5db6d509eb475f = function(arg0, arg1) {
|
|
730
|
+
const ret = getObject(arg0).then(getObject(arg1));
|
|
731
|
+
return addHeapObject(ret);
|
|
732
|
+
};
|
|
733
|
+
|
|
734
|
+
module.exports.__wbg_buffer_cf65c07de34b9a08 = function(arg0) {
|
|
735
|
+
const ret = getObject(arg0).buffer;
|
|
736
|
+
return addHeapObject(ret);
|
|
737
|
+
};
|
|
738
|
+
|
|
739
|
+
module.exports.__wbg_newwithbyteoffsetandlength_9fb2f11355ecadf5 = function(arg0, arg1, arg2) {
|
|
740
|
+
const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
|
|
741
|
+
return addHeapObject(ret);
|
|
742
|
+
};
|
|
743
|
+
|
|
744
|
+
module.exports.__wbg_new_537b7341ce90bb31 = function(arg0) {
|
|
745
|
+
const ret = new Uint8Array(getObject(arg0));
|
|
746
|
+
return addHeapObject(ret);
|
|
747
|
+
};
|
|
748
|
+
|
|
749
|
+
module.exports.__wbg_set_17499e8aa4003ebd = function(arg0, arg1, arg2) {
|
|
750
|
+
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
751
|
+
};
|
|
752
|
+
|
|
753
|
+
module.exports.__wbg_length_27a2afe8ab42b09f = function(arg0) {
|
|
754
|
+
const ret = getObject(arg0).length;
|
|
755
|
+
return ret;
|
|
756
|
+
};
|
|
757
|
+
|
|
758
|
+
module.exports.__wbg_instanceof_Uint8Array_01cebe79ca606cca = function(arg0) {
|
|
759
|
+
let result;
|
|
760
|
+
try {
|
|
761
|
+
result = getObject(arg0) instanceof Uint8Array;
|
|
762
|
+
} catch {
|
|
763
|
+
result = false;
|
|
794
764
|
}
|
|
795
|
-
const ret =
|
|
765
|
+
const ret = result;
|
|
796
766
|
return ret;
|
|
797
767
|
};
|
|
798
768
|
|
|
799
|
-
module.exports.
|
|
800
|
-
const ret =
|
|
769
|
+
module.exports.__wbg_newwithlength_b56c882b57805732 = function(arg0) {
|
|
770
|
+
const ret = new Uint8Array(arg0 >>> 0);
|
|
771
|
+
return addHeapObject(ret);
|
|
772
|
+
};
|
|
773
|
+
|
|
774
|
+
module.exports.__wbg_subarray_7526649b91a252a6 = function(arg0, arg1, arg2) {
|
|
775
|
+
const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
|
|
776
|
+
return addHeapObject(ret);
|
|
777
|
+
};
|
|
778
|
+
|
|
779
|
+
module.exports.__wbindgen_bigint_get_as_i64 = function(arg0, arg1) {
|
|
780
|
+
const v = getObject(arg1);
|
|
781
|
+
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
782
|
+
getBigInt64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? BigInt(0) : ret;
|
|
783
|
+
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
|
784
|
+
};
|
|
785
|
+
|
|
786
|
+
module.exports.__wbindgen_debug_string = function(arg0, arg1) {
|
|
787
|
+
const ret = debugString(getObject(arg1));
|
|
788
|
+
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
789
|
+
const len0 = WASM_VECTOR_LEN;
|
|
790
|
+
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
791
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
792
|
+
};
|
|
793
|
+
|
|
794
|
+
module.exports.__wbindgen_throw = function(arg0, arg1) {
|
|
795
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
796
|
+
};
|
|
797
|
+
|
|
798
|
+
module.exports.__wbindgen_memory = function() {
|
|
799
|
+
const ret = wasm.memory;
|
|
801
800
|
return addHeapObject(ret);
|
|
802
801
|
};
|
|
803
802
|
|
|
804
|
-
module.exports.
|
|
805
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
803
|
+
module.exports.__wbindgen_closure_wrapper13340 = function(arg0, arg1, arg2) {
|
|
804
|
+
const ret = makeMutClosure(arg0, arg1, 2157, __wbg_adapter_48);
|
|
806
805
|
return addHeapObject(ret);
|
|
807
806
|
};
|
|
808
807
|
|
package/wasm_bg.wasm
CHANGED
|
Binary file
|