@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.
- package/package.json +1 -1
- package/wasm.d.ts +2 -42
- package/wasm.js +411 -468
- package/wasm_bg.wasm +0 -0
package/package.json
CHANGED
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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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
|
|
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
|
|
29
|
+
let cachedUint8ArrayMemory0 = null;
|
|
40
30
|
|
|
41
|
-
function
|
|
42
|
-
if (
|
|
43
|
-
|
|
31
|
+
function getUint8ArrayMemory0() {
|
|
32
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
33
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
44
34
|
}
|
|
45
|
-
return
|
|
35
|
+
return cachedUint8ArrayMemory0;
|
|
46
36
|
}
|
|
47
37
|
|
|
48
38
|
function getStringFromWasm0(ptr, len) {
|
|
49
39
|
ptr = ptr >>> 0;
|
|
50
|
-
return cachedTextDecoder.decode(
|
|
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
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
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
|
-
|
|
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 =
|
|
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 =
|
|
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
|
|
107
|
+
let cachedDataViewMemory0 = null;
|
|
132
108
|
|
|
133
|
-
function
|
|
134
|
-
if (
|
|
135
|
-
|
|
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
|
|
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
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
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}
|
|
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
|
-
|
|
296
|
-
|
|
297
|
-
|
|
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(
|
|
317
|
-
return
|
|
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
|
-
|
|
327
|
-
|
|
328
|
-
|
|
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(
|
|
348
|
-
return
|
|
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
|
-
|
|
358
|
-
|
|
359
|
-
|
|
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(
|
|
379
|
-
return
|
|
286
|
+
const ret = wasm.parse(s, opts);
|
|
287
|
+
return ret;
|
|
380
288
|
};
|
|
381
289
|
|
|
382
|
-
|
|
383
|
-
|
|
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
|
-
|
|
387
|
-
|
|
388
|
-
|
|
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
|
-
|
|
392
|
-
|
|
393
|
-
|
|
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.
|
|
397
|
-
const ret =
|
|
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.
|
|
402
|
-
const ret =
|
|
403
|
-
return
|
|
341
|
+
module.exports.__wbg_done_769e5ede4b31c67b = function(arg0) {
|
|
342
|
+
const ret = arg0.done;
|
|
343
|
+
return ret;
|
|
404
344
|
};
|
|
405
345
|
|
|
406
|
-
module.exports.
|
|
407
|
-
const ret =
|
|
408
|
-
return
|
|
346
|
+
module.exports.__wbg_entries_3265d4158b33e5dc = function(arg0) {
|
|
347
|
+
const ret = Object.entries(arg0);
|
|
348
|
+
return ret;
|
|
409
349
|
};
|
|
410
350
|
|
|
411
|
-
module.exports.
|
|
412
|
-
|
|
413
|
-
|
|
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.
|
|
417
|
-
|
|
357
|
+
module.exports.__wbg_getRandomValues_bcb4912f16000dc4 = function() { return handleError(function (arg0, arg1) {
|
|
358
|
+
arg0.getRandomValues(arg1);
|
|
418
359
|
}, arguments) };
|
|
419
360
|
|
|
420
|
-
module.exports.
|
|
421
|
-
const ret =
|
|
422
|
-
return
|
|
361
|
+
module.exports.__wbg_getTime_46267b1c24877e30 = function(arg0) {
|
|
362
|
+
const ret = arg0.getTime();
|
|
363
|
+
return ret;
|
|
423
364
|
};
|
|
424
365
|
|
|
425
|
-
module.exports.
|
|
426
|
-
|
|
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.
|
|
430
|
-
const ret =
|
|
431
|
-
return
|
|
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.
|
|
435
|
-
|
|
381
|
+
module.exports.__wbg_getwithrefkey_bb8f74a92cb2e784 = function(arg0, arg1) {
|
|
382
|
+
const ret = arg0[arg1];
|
|
383
|
+
return ret;
|
|
436
384
|
};
|
|
437
385
|
|
|
438
|
-
module.exports.
|
|
439
|
-
|
|
440
|
-
|
|
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.
|
|
444
|
-
|
|
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.
|
|
449
|
-
const ret =
|
|
450
|
-
return
|
|
408
|
+
module.exports.__wbg_isArray_a1eab7e0d067391b = function(arg0) {
|
|
409
|
+
const ret = Array.isArray(arg0);
|
|
410
|
+
return ret;
|
|
451
411
|
};
|
|
452
412
|
|
|
453
|
-
module.exports.
|
|
454
|
-
const ret =
|
|
455
|
-
|
|
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.
|
|
462
|
-
|
|
463
|
-
|
|
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.
|
|
468
|
-
const ret =
|
|
469
|
-
return
|
|
423
|
+
module.exports.__wbg_length_a446193dc22c12f8 = function(arg0) {
|
|
424
|
+
const ret = arg0.length;
|
|
425
|
+
return ret;
|
|
470
426
|
};
|
|
471
427
|
|
|
472
|
-
module.exports.
|
|
473
|
-
const ret =
|
|
474
|
-
return
|
|
428
|
+
module.exports.__wbg_length_e2d2a49132c1b256 = function(arg0) {
|
|
429
|
+
const ret = arg0.length;
|
|
430
|
+
return ret;
|
|
475
431
|
};
|
|
476
432
|
|
|
477
|
-
module.exports.
|
|
478
|
-
const
|
|
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.
|
|
484
|
-
const ret =
|
|
485
|
-
return
|
|
438
|
+
module.exports.__wbg_new0_f788a2397c7ca929 = function() {
|
|
439
|
+
const ret = new Date();
|
|
440
|
+
return ret;
|
|
486
441
|
};
|
|
487
442
|
|
|
488
|
-
module.exports.
|
|
489
|
-
|
|
490
|
-
|
|
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.
|
|
494
|
-
const ret =
|
|
495
|
-
return
|
|
462
|
+
module.exports.__wbg_new_31a97dac4f10fab7 = function(arg0) {
|
|
463
|
+
const ret = new Date(arg0);
|
|
464
|
+
return ret;
|
|
496
465
|
};
|
|
497
466
|
|
|
498
|
-
module.exports.
|
|
499
|
-
const ret =
|
|
467
|
+
module.exports.__wbg_new_405e22f390576ce2 = function() {
|
|
468
|
+
const ret = new Object();
|
|
500
469
|
return ret;
|
|
501
470
|
};
|
|
502
471
|
|
|
503
|
-
module.exports.
|
|
504
|
-
const ret =
|
|
505
|
-
return
|
|
506
|
-
}
|
|
472
|
+
module.exports.__wbg_new_78feb108b6472713 = function() {
|
|
473
|
+
const ret = new Array();
|
|
474
|
+
return ret;
|
|
475
|
+
};
|
|
507
476
|
|
|
508
|
-
module.exports.
|
|
509
|
-
const ret =
|
|
477
|
+
module.exports.__wbg_new_8a6f238a6ece86ea = function() {
|
|
478
|
+
const ret = new Error();
|
|
510
479
|
return ret;
|
|
511
480
|
};
|
|
512
481
|
|
|
513
|
-
module.exports.
|
|
514
|
-
const ret =
|
|
515
|
-
return
|
|
482
|
+
module.exports.__wbg_new_a12002a7f91c75be = function(arg0) {
|
|
483
|
+
const ret = new Uint8Array(arg0);
|
|
484
|
+
return ret;
|
|
516
485
|
};
|
|
517
486
|
|
|
518
|
-
module.exports.
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
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.
|
|
524
|
-
const ret =
|
|
525
|
-
return
|
|
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.
|
|
498
|
+
module.exports.__wbg_newwithlength_a381634e90c276d4 = function(arg0) {
|
|
529
499
|
const ret = new Uint8Array(arg0 >>> 0);
|
|
530
|
-
return
|
|
500
|
+
return ret;
|
|
531
501
|
};
|
|
532
502
|
|
|
533
|
-
module.exports.
|
|
534
|
-
const ret =
|
|
535
|
-
return
|
|
503
|
+
module.exports.__wbg_next_25feadfc0913fea9 = function(arg0) {
|
|
504
|
+
const ret = arg0.next;
|
|
505
|
+
return ret;
|
|
536
506
|
};
|
|
537
507
|
|
|
538
|
-
module.exports.
|
|
539
|
-
const ret =
|
|
540
|
-
return
|
|
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.
|
|
549
|
-
const ret =
|
|
550
|
-
return
|
|
513
|
+
module.exports.__wbg_node_02999533c4ea02e3 = function(arg0) {
|
|
514
|
+
const ret = arg0.node;
|
|
515
|
+
return ret;
|
|
551
516
|
};
|
|
552
517
|
|
|
553
|
-
module.exports.
|
|
554
|
-
const ret =
|
|
518
|
+
module.exports.__wbg_process_5c1d670bc53614b8 = function(arg0) {
|
|
519
|
+
const ret = arg0.process;
|
|
555
520
|
return ret;
|
|
556
521
|
};
|
|
557
522
|
|
|
558
|
-
module.exports.
|
|
559
|
-
const ret =
|
|
560
|
-
return
|
|
561
|
-
}
|
|
523
|
+
module.exports.__wbg_queueMicrotask_6c22d88054515cb4 = function(arg0) {
|
|
524
|
+
const ret = arg0.queueMicrotask;
|
|
525
|
+
return ret;
|
|
526
|
+
};
|
|
562
527
|
|
|
563
|
-
module.exports.
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
}, arguments) };
|
|
528
|
+
module.exports.__wbg_queueMicrotask_b81e3a75ab81ca62 = function(arg0) {
|
|
529
|
+
queueMicrotask(arg0);
|
|
530
|
+
};
|
|
567
531
|
|
|
568
|
-
module.exports.
|
|
569
|
-
|
|
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.
|
|
574
|
-
const ret =
|
|
575
|
-
return
|
|
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.
|
|
579
|
-
const ret =
|
|
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.
|
|
584
|
-
|
|
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.
|
|
590
|
-
|
|
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.
|
|
595
|
-
|
|
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.
|
|
600
|
-
const
|
|
601
|
-
const
|
|
602
|
-
|
|
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.
|
|
606
|
-
const
|
|
607
|
-
|
|
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.
|
|
613
|
-
const
|
|
614
|
-
|
|
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.
|
|
622
|
-
|
|
623
|
-
|
|
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.
|
|
633
|
-
|
|
634
|
-
|
|
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.
|
|
644
|
-
const ret =
|
|
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.
|
|
649
|
-
const ret =
|
|
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.
|
|
654
|
-
const ret =
|
|
596
|
+
module.exports.__wbg_value_cd1ffa7b1ab794f1 = function(arg0) {
|
|
597
|
+
const ret = arg0.value;
|
|
655
598
|
return ret;
|
|
656
599
|
};
|
|
657
600
|
|
|
658
|
-
module.exports.
|
|
659
|
-
const ret =
|
|
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
|
|
613
|
+
return ret;
|
|
683
614
|
};
|
|
684
615
|
|
|
685
|
-
module.exports.
|
|
686
|
-
const
|
|
687
|
-
|
|
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.
|
|
691
|
-
const
|
|
692
|
-
|
|
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.
|
|
696
|
-
const
|
|
697
|
-
|
|
698
|
-
|
|
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.
|
|
701
|
-
const ret =
|
|
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.
|
|
706
|
-
const ret =
|
|
707
|
-
|
|
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.
|
|
711
|
-
const ret =
|
|
712
|
-
return
|
|
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.
|
|
716
|
-
const ret =
|
|
717
|
-
return
|
|
657
|
+
module.exports.__wbindgen_in = function(arg0, arg1) {
|
|
658
|
+
const ret = arg0 in arg1;
|
|
659
|
+
return ret;
|
|
718
660
|
};
|
|
719
661
|
|
|
720
|
-
module.exports.
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
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.
|
|
740
|
-
const ret =
|
|
741
|
-
return
|
|
673
|
+
module.exports.__wbindgen_is_bigint = function(arg0) {
|
|
674
|
+
const ret = typeof(arg0) === 'bigint';
|
|
675
|
+
return ret;
|
|
742
676
|
};
|
|
743
677
|
|
|
744
|
-
module.exports.
|
|
745
|
-
|
|
678
|
+
module.exports.__wbindgen_is_function = function(arg0) {
|
|
679
|
+
const ret = typeof(arg0) === 'function';
|
|
680
|
+
return ret;
|
|
746
681
|
};
|
|
747
682
|
|
|
748
|
-
module.exports.
|
|
749
|
-
const
|
|
750
|
-
|
|
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.
|
|
754
|
-
|
|
689
|
+
module.exports.__wbindgen_is_string = function(arg0) {
|
|
690
|
+
const ret = typeof(arg0) === 'string';
|
|
691
|
+
return ret;
|
|
755
692
|
};
|
|
756
693
|
|
|
757
|
-
module.exports.
|
|
758
|
-
const ret =
|
|
759
|
-
|
|
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.
|
|
766
|
-
|
|
699
|
+
module.exports.__wbindgen_jsval_eq = function(arg0, arg1) {
|
|
700
|
+
const ret = arg0 === arg1;
|
|
701
|
+
return ret;
|
|
767
702
|
};
|
|
768
703
|
|
|
769
|
-
module.exports.
|
|
770
|
-
const ret =
|
|
771
|
-
return
|
|
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.
|
|
775
|
-
|
|
709
|
+
module.exports.__wbindgen_memory = function() {
|
|
710
|
+
const ret = wasm.memory;
|
|
711
|
+
return ret;
|
|
776
712
|
};
|
|
777
713
|
|
|
778
|
-
module.exports.
|
|
779
|
-
const
|
|
780
|
-
|
|
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.
|
|
784
|
-
const ret =
|
|
785
|
-
return
|
|
721
|
+
module.exports.__wbindgen_number_new = function(arg0) {
|
|
722
|
+
const ret = arg0;
|
|
723
|
+
return ret;
|
|
786
724
|
};
|
|
787
725
|
|
|
788
|
-
module.exports.
|
|
789
|
-
const obj =
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
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.
|
|
799
|
-
|
|
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
|