@utoo/web 0.0.1-alpha.10
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/esm/index.d.ts +21 -0
- package/esm/index.js +103 -0
- package/esm/message.d.ts +2 -0
- package/esm/message.js +2 -0
- package/esm/type.d.ts +30 -0
- package/esm/type.js +12 -0
- package/esm/utoo/index.d.ts +107 -0
- package/esm/utoo/index.js +1331 -0
- package/esm/utoo/index_bg.wasm +0 -0
- package/esm/worker.d.ts +1 -0
- package/esm/worker.js +82 -0
- package/package.json +34 -0
|
@@ -0,0 +1,1331 @@
|
|
|
1
|
+
let wasm;
|
|
2
|
+
const heap = new Array(128).fill(undefined);
|
|
3
|
+
heap.push(undefined, null, true, false);
|
|
4
|
+
function getObject(idx) { return heap[idx]; }
|
|
5
|
+
let WASM_VECTOR_LEN = 0;
|
|
6
|
+
let cachedUint8ArrayMemory0 = null;
|
|
7
|
+
function getUint8ArrayMemory0() {
|
|
8
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.buffer !== wasm.memory.buffer) {
|
|
9
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
10
|
+
}
|
|
11
|
+
return cachedUint8ArrayMemory0;
|
|
12
|
+
}
|
|
13
|
+
const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available'); } });
|
|
14
|
+
const encodeString = function (arg, view) {
|
|
15
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
16
|
+
view.set(buf);
|
|
17
|
+
return {
|
|
18
|
+
read: arg.length,
|
|
19
|
+
written: buf.length
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
function passStringToWasm0(arg, malloc, realloc) {
|
|
23
|
+
if (realloc === undefined) {
|
|
24
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
25
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
26
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
27
|
+
WASM_VECTOR_LEN = buf.length;
|
|
28
|
+
return ptr;
|
|
29
|
+
}
|
|
30
|
+
let len = arg.length;
|
|
31
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
32
|
+
const mem = getUint8ArrayMemory0();
|
|
33
|
+
let offset = 0;
|
|
34
|
+
for (; offset < len; offset++) {
|
|
35
|
+
const code = arg.charCodeAt(offset);
|
|
36
|
+
if (code > 0x7F)
|
|
37
|
+
break;
|
|
38
|
+
mem[ptr + offset] = code;
|
|
39
|
+
}
|
|
40
|
+
if (offset !== len) {
|
|
41
|
+
if (offset !== 0) {
|
|
42
|
+
arg = arg.slice(offset);
|
|
43
|
+
}
|
|
44
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
45
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
46
|
+
const ret = encodeString(arg, view);
|
|
47
|
+
offset += ret.written;
|
|
48
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
49
|
+
}
|
|
50
|
+
WASM_VECTOR_LEN = offset;
|
|
51
|
+
return ptr;
|
|
52
|
+
}
|
|
53
|
+
let cachedDataViewMemory0 = null;
|
|
54
|
+
function getDataViewMemory0() {
|
|
55
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer !== wasm.memory.buffer) {
|
|
56
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
57
|
+
}
|
|
58
|
+
return cachedDataViewMemory0;
|
|
59
|
+
}
|
|
60
|
+
const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available'); } });
|
|
61
|
+
if (typeof TextDecoder !== 'undefined') {
|
|
62
|
+
cachedTextDecoder.decode();
|
|
63
|
+
}
|
|
64
|
+
;
|
|
65
|
+
function getStringFromWasm0(ptr, len) {
|
|
66
|
+
ptr = ptr >>> 0;
|
|
67
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().slice(ptr, ptr + len));
|
|
68
|
+
}
|
|
69
|
+
let heap_next = heap.length;
|
|
70
|
+
function addHeapObject(obj) {
|
|
71
|
+
if (heap_next === heap.length)
|
|
72
|
+
heap.push(heap.length + 1);
|
|
73
|
+
const idx = heap_next;
|
|
74
|
+
heap_next = heap[idx];
|
|
75
|
+
heap[idx] = obj;
|
|
76
|
+
return idx;
|
|
77
|
+
}
|
|
78
|
+
function handleError(f, args) {
|
|
79
|
+
try {
|
|
80
|
+
return f.apply(this, args);
|
|
81
|
+
}
|
|
82
|
+
catch (e) {
|
|
83
|
+
wasm.__wbindgen_export_3(addHeapObject(e));
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
function dropObject(idx) {
|
|
87
|
+
if (idx < 132)
|
|
88
|
+
return;
|
|
89
|
+
heap[idx] = heap_next;
|
|
90
|
+
heap_next = idx;
|
|
91
|
+
}
|
|
92
|
+
function takeObject(idx) {
|
|
93
|
+
const ret = getObject(idx);
|
|
94
|
+
dropObject(idx);
|
|
95
|
+
return ret;
|
|
96
|
+
}
|
|
97
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
98
|
+
ptr = ptr >>> 0;
|
|
99
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
100
|
+
}
|
|
101
|
+
function isLikeNone(x) {
|
|
102
|
+
return x === undefined || x === null;
|
|
103
|
+
}
|
|
104
|
+
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
105
|
+
? { register: () => { }, unregister: () => { } }
|
|
106
|
+
: new FinalizationRegistry(state => {
|
|
107
|
+
wasm.__wbindgen_export_5.get(state.dtor)(state.a, state.b);
|
|
108
|
+
});
|
|
109
|
+
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
110
|
+
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
111
|
+
const real = (...args) => {
|
|
112
|
+
// First up with a closure we increment the internal reference
|
|
113
|
+
// count. This ensures that the Rust closure environment won't
|
|
114
|
+
// be deallocated while we're invoking it.
|
|
115
|
+
state.cnt++;
|
|
116
|
+
const a = state.a;
|
|
117
|
+
state.a = 0;
|
|
118
|
+
try {
|
|
119
|
+
return f(a, state.b, ...args);
|
|
120
|
+
}
|
|
121
|
+
finally {
|
|
122
|
+
if (--state.cnt === 0) {
|
|
123
|
+
wasm.__wbindgen_export_5.get(state.dtor)(a, state.b);
|
|
124
|
+
CLOSURE_DTORS.unregister(state);
|
|
125
|
+
}
|
|
126
|
+
else {
|
|
127
|
+
state.a = a;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
};
|
|
131
|
+
real.original = state;
|
|
132
|
+
CLOSURE_DTORS.register(real, state, state);
|
|
133
|
+
return real;
|
|
134
|
+
}
|
|
135
|
+
function debugString(val) {
|
|
136
|
+
// primitive types
|
|
137
|
+
const type = typeof val;
|
|
138
|
+
if (type == 'number' || type == 'boolean' || val == null) {
|
|
139
|
+
return `${val}`;
|
|
140
|
+
}
|
|
141
|
+
if (type == 'string') {
|
|
142
|
+
return `"${val}"`;
|
|
143
|
+
}
|
|
144
|
+
if (type == 'symbol') {
|
|
145
|
+
const description = val.description;
|
|
146
|
+
if (description == null) {
|
|
147
|
+
return 'Symbol';
|
|
148
|
+
}
|
|
149
|
+
else {
|
|
150
|
+
return `Symbol(${description})`;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
if (type == 'function') {
|
|
154
|
+
const name = val.name;
|
|
155
|
+
if (typeof name == 'string' && name.length > 0) {
|
|
156
|
+
return `Function(${name})`;
|
|
157
|
+
}
|
|
158
|
+
else {
|
|
159
|
+
return 'Function';
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
// objects
|
|
163
|
+
if (Array.isArray(val)) {
|
|
164
|
+
const length = val.length;
|
|
165
|
+
let debug = '[';
|
|
166
|
+
if (length > 0) {
|
|
167
|
+
debug += debugString(val[0]);
|
|
168
|
+
}
|
|
169
|
+
for (let i = 1; i < length; i++) {
|
|
170
|
+
debug += ', ' + debugString(val[i]);
|
|
171
|
+
}
|
|
172
|
+
debug += ']';
|
|
173
|
+
return debug;
|
|
174
|
+
}
|
|
175
|
+
// Test for built-in
|
|
176
|
+
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
177
|
+
let className;
|
|
178
|
+
if (builtInMatches && builtInMatches.length > 1) {
|
|
179
|
+
className = builtInMatches[1];
|
|
180
|
+
}
|
|
181
|
+
else {
|
|
182
|
+
// Failed to match the standard '[object ClassName]'
|
|
183
|
+
return toString.call(val);
|
|
184
|
+
}
|
|
185
|
+
if (className == 'Object') {
|
|
186
|
+
// we're a user defined class or Object
|
|
187
|
+
// JSON.stringify avoids problems with cycles, and is generally much
|
|
188
|
+
// easier than looping through ownProperties of `val`.
|
|
189
|
+
try {
|
|
190
|
+
return 'Object(' + JSON.stringify(val) + ')';
|
|
191
|
+
}
|
|
192
|
+
catch (_) {
|
|
193
|
+
return 'Object';
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
// errors
|
|
197
|
+
if (val instanceof Error) {
|
|
198
|
+
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
199
|
+
}
|
|
200
|
+
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
201
|
+
return className;
|
|
202
|
+
}
|
|
203
|
+
function passArray8ToWasm0(arg, malloc) {
|
|
204
|
+
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
205
|
+
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
206
|
+
WASM_VECTOR_LEN = arg.length;
|
|
207
|
+
return ptr;
|
|
208
|
+
}
|
|
209
|
+
export function init_pack() {
|
|
210
|
+
wasm.init_pack();
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* Entry point for web workers
|
|
214
|
+
* @param {number} ptr
|
|
215
|
+
*/
|
|
216
|
+
export function wasm_thread_entry_point(ptr) {
|
|
217
|
+
wasm.wasm_thread_entry_point(ptr);
|
|
218
|
+
}
|
|
219
|
+
function __wbg_adapter_46(arg0, arg1) {
|
|
220
|
+
wasm.__wbindgen_export_6(arg0, arg1);
|
|
221
|
+
}
|
|
222
|
+
function __wbg_adapter_49(arg0, arg1, arg2) {
|
|
223
|
+
wasm.__wbindgen_export_7(arg0, arg1, addHeapObject(arg2));
|
|
224
|
+
}
|
|
225
|
+
function __wbg_adapter_52(arg0, arg1, arg2) {
|
|
226
|
+
wasm.__wbindgen_export_8(arg0, arg1, addHeapObject(arg2));
|
|
227
|
+
}
|
|
228
|
+
let stack_pointer = 128;
|
|
229
|
+
function addBorrowedObject(obj) {
|
|
230
|
+
if (stack_pointer == 1)
|
|
231
|
+
throw new Error('out of js stack');
|
|
232
|
+
heap[--stack_pointer] = obj;
|
|
233
|
+
return stack_pointer;
|
|
234
|
+
}
|
|
235
|
+
function __wbg_adapter_57(arg0, arg1, arg2) {
|
|
236
|
+
try {
|
|
237
|
+
wasm.__wbindgen_export_9(arg0, arg1, addBorrowedObject(arg2));
|
|
238
|
+
}
|
|
239
|
+
finally {
|
|
240
|
+
heap[stack_pointer++] = undefined;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
function __wbg_adapter_60(arg0, arg1) {
|
|
244
|
+
wasm.__wbindgen_export_10(arg0, arg1);
|
|
245
|
+
}
|
|
246
|
+
function __wbg_adapter_109(arg0, arg1, arg2, arg3) {
|
|
247
|
+
wasm.__wbindgen_export_11(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
248
|
+
}
|
|
249
|
+
const __wbindgen_enum_DirEntryType = ["file", "directory"];
|
|
250
|
+
const __wbindgen_enum_FileSystemHandleKind = ["file", "directory"];
|
|
251
|
+
const __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"];
|
|
252
|
+
const __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate"];
|
|
253
|
+
const __wbindgen_enum_WorkerType = ["classic", "module"];
|
|
254
|
+
const CreateSyncAccessHandleOptionsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
255
|
+
? { register: () => { }, unregister: () => { } }
|
|
256
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_createsyncaccesshandleoptions_free(ptr >>> 0, 1));
|
|
257
|
+
export class CreateSyncAccessHandleOptions {
|
|
258
|
+
static __wrap(ptr) {
|
|
259
|
+
ptr = ptr >>> 0;
|
|
260
|
+
const obj = Object.create(CreateSyncAccessHandleOptions.prototype);
|
|
261
|
+
obj.__wbg_ptr = ptr;
|
|
262
|
+
CreateSyncAccessHandleOptionsFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
263
|
+
return obj;
|
|
264
|
+
}
|
|
265
|
+
__destroy_into_raw() {
|
|
266
|
+
const ptr = this.__wbg_ptr;
|
|
267
|
+
this.__wbg_ptr = 0;
|
|
268
|
+
CreateSyncAccessHandleOptionsFinalization.unregister(this);
|
|
269
|
+
return ptr;
|
|
270
|
+
}
|
|
271
|
+
free() {
|
|
272
|
+
const ptr = this.__destroy_into_raw();
|
|
273
|
+
wasm.__wbg_createsyncaccesshandleoptions_free(ptr, 0);
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
const DirEntryFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
277
|
+
? { register: () => { }, unregister: () => { } }
|
|
278
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_direntry_free(ptr >>> 0, 1));
|
|
279
|
+
export class DirEntry {
|
|
280
|
+
static __wrap(ptr) {
|
|
281
|
+
ptr = ptr >>> 0;
|
|
282
|
+
const obj = Object.create(DirEntry.prototype);
|
|
283
|
+
obj.__wbg_ptr = ptr;
|
|
284
|
+
DirEntryFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
285
|
+
return obj;
|
|
286
|
+
}
|
|
287
|
+
toJSON() {
|
|
288
|
+
return {
|
|
289
|
+
name: this.name,
|
|
290
|
+
type: this.type,
|
|
291
|
+
};
|
|
292
|
+
}
|
|
293
|
+
toString() {
|
|
294
|
+
return JSON.stringify(this);
|
|
295
|
+
}
|
|
296
|
+
__destroy_into_raw() {
|
|
297
|
+
const ptr = this.__wbg_ptr;
|
|
298
|
+
this.__wbg_ptr = 0;
|
|
299
|
+
DirEntryFinalization.unregister(this);
|
|
300
|
+
return ptr;
|
|
301
|
+
}
|
|
302
|
+
free() {
|
|
303
|
+
const ptr = this.__destroy_into_raw();
|
|
304
|
+
wasm.__wbg_direntry_free(ptr, 0);
|
|
305
|
+
}
|
|
306
|
+
/**
|
|
307
|
+
* @returns {string}
|
|
308
|
+
*/
|
|
309
|
+
get name() {
|
|
310
|
+
let deferred1_0;
|
|
311
|
+
let deferred1_1;
|
|
312
|
+
try {
|
|
313
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
314
|
+
wasm.__wbg_get_direntry_name(retptr, this.__wbg_ptr);
|
|
315
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
316
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
317
|
+
deferred1_0 = r0;
|
|
318
|
+
deferred1_1 = r1;
|
|
319
|
+
return getStringFromWasm0(r0, r1);
|
|
320
|
+
}
|
|
321
|
+
finally {
|
|
322
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
323
|
+
wasm.__wbindgen_export_4(deferred1_0, deferred1_1, 1);
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
/**
|
|
327
|
+
* @param {string} arg0
|
|
328
|
+
*/
|
|
329
|
+
set name(arg0) {
|
|
330
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
|
|
331
|
+
const len0 = WASM_VECTOR_LEN;
|
|
332
|
+
wasm.__wbg_set_direntry_name(this.__wbg_ptr, ptr0, len0);
|
|
333
|
+
}
|
|
334
|
+
/**
|
|
335
|
+
* @returns {DirEntryType}
|
|
336
|
+
*/
|
|
337
|
+
get type() {
|
|
338
|
+
const ret = wasm.__wbg_get_direntry_type(this.__wbg_ptr);
|
|
339
|
+
return __wbindgen_enum_DirEntryType[ret];
|
|
340
|
+
}
|
|
341
|
+
/**
|
|
342
|
+
* @param {DirEntryType} arg0
|
|
343
|
+
*/
|
|
344
|
+
set type(arg0) {
|
|
345
|
+
wasm.__wbg_set_direntry_type(this.__wbg_ptr, (__wbindgen_enum_DirEntryType.indexOf(arg0) + 1 || 3) - 1);
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
const ProjectFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
349
|
+
? { register: () => { }, unregister: () => { } }
|
|
350
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_project_free(ptr >>> 0, 1));
|
|
351
|
+
export class Project {
|
|
352
|
+
__destroy_into_raw() {
|
|
353
|
+
const ptr = this.__wbg_ptr;
|
|
354
|
+
this.__wbg_ptr = 0;
|
|
355
|
+
ProjectFinalization.unregister(this);
|
|
356
|
+
return ptr;
|
|
357
|
+
}
|
|
358
|
+
free() {
|
|
359
|
+
const ptr = this.__destroy_into_raw();
|
|
360
|
+
wasm.__wbg_project_free(ptr, 0);
|
|
361
|
+
}
|
|
362
|
+
/**
|
|
363
|
+
* @param {string} cwd
|
|
364
|
+
*/
|
|
365
|
+
constructor(cwd) {
|
|
366
|
+
const ptr0 = passStringToWasm0(cwd, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
|
|
367
|
+
const len0 = WASM_VECTOR_LEN;
|
|
368
|
+
const ret = wasm.project_new(ptr0, len0);
|
|
369
|
+
this.__wbg_ptr = ret >>> 0;
|
|
370
|
+
ProjectFinalization.register(this, this.__wbg_ptr, this);
|
|
371
|
+
return this;
|
|
372
|
+
}
|
|
373
|
+
/**
|
|
374
|
+
* @returns {string}
|
|
375
|
+
*/
|
|
376
|
+
get cwd() {
|
|
377
|
+
let deferred1_0;
|
|
378
|
+
let deferred1_1;
|
|
379
|
+
try {
|
|
380
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
381
|
+
wasm.project_cwd(retptr, this.__wbg_ptr);
|
|
382
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
383
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
384
|
+
deferred1_0 = r0;
|
|
385
|
+
deferred1_1 = r1;
|
|
386
|
+
return getStringFromWasm0(r0, r1);
|
|
387
|
+
}
|
|
388
|
+
finally {
|
|
389
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
390
|
+
wasm.__wbindgen_export_4(deferred1_0, deferred1_1, 1);
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
/**
|
|
394
|
+
* @param {string} package_lock
|
|
395
|
+
* @returns {Promise<void>}
|
|
396
|
+
*/
|
|
397
|
+
install(package_lock) {
|
|
398
|
+
const ptr0 = passStringToWasm0(package_lock, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
|
|
399
|
+
const len0 = WASM_VECTOR_LEN;
|
|
400
|
+
const ret = wasm.project_install(this.__wbg_ptr, ptr0, len0);
|
|
401
|
+
return takeObject(ret);
|
|
402
|
+
}
|
|
403
|
+
/**
|
|
404
|
+
* @returns {Promise<any>}
|
|
405
|
+
*/
|
|
406
|
+
build() {
|
|
407
|
+
const ret = wasm.project_build(this.__wbg_ptr);
|
|
408
|
+
return takeObject(ret);
|
|
409
|
+
}
|
|
410
|
+
/**
|
|
411
|
+
* @param {string} path
|
|
412
|
+
* @returns {Promise<Uint8Array>}
|
|
413
|
+
*/
|
|
414
|
+
read(path) {
|
|
415
|
+
const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
|
|
416
|
+
const len0 = WASM_VECTOR_LEN;
|
|
417
|
+
const ret = wasm.project_read(this.__wbg_ptr, ptr0, len0);
|
|
418
|
+
return takeObject(ret);
|
|
419
|
+
}
|
|
420
|
+
/**
|
|
421
|
+
* @param {string} path
|
|
422
|
+
* @returns {Promise<string>}
|
|
423
|
+
*/
|
|
424
|
+
readToString(path) {
|
|
425
|
+
const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
|
|
426
|
+
const len0 = WASM_VECTOR_LEN;
|
|
427
|
+
const ret = wasm.project_readToString(this.__wbg_ptr, ptr0, len0);
|
|
428
|
+
return takeObject(ret);
|
|
429
|
+
}
|
|
430
|
+
/**
|
|
431
|
+
* @param {string} path
|
|
432
|
+
* @param {Uint8Array} content
|
|
433
|
+
* @returns {Promise<void>}
|
|
434
|
+
*/
|
|
435
|
+
write(path, content) {
|
|
436
|
+
const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
|
|
437
|
+
const len0 = WASM_VECTOR_LEN;
|
|
438
|
+
const ptr1 = passArray8ToWasm0(content, wasm.__wbindgen_export_1);
|
|
439
|
+
const len1 = WASM_VECTOR_LEN;
|
|
440
|
+
const ret = wasm.project_write(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
441
|
+
return takeObject(ret);
|
|
442
|
+
}
|
|
443
|
+
/**
|
|
444
|
+
* @param {string} path
|
|
445
|
+
* @param {string} content
|
|
446
|
+
* @returns {Promise<void>}
|
|
447
|
+
*/
|
|
448
|
+
writeString(path, content) {
|
|
449
|
+
const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
|
|
450
|
+
const len0 = WASM_VECTOR_LEN;
|
|
451
|
+
const ptr1 = passStringToWasm0(content, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
|
|
452
|
+
const len1 = WASM_VECTOR_LEN;
|
|
453
|
+
const ret = wasm.project_writeString(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
454
|
+
return takeObject(ret);
|
|
455
|
+
}
|
|
456
|
+
/**
|
|
457
|
+
* @param {string} path
|
|
458
|
+
* @returns {Promise<DirEntry[]>}
|
|
459
|
+
*/
|
|
460
|
+
readDir(path) {
|
|
461
|
+
const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
|
|
462
|
+
const len0 = WASM_VECTOR_LEN;
|
|
463
|
+
const ret = wasm.project_readDir(this.__wbg_ptr, ptr0, len0);
|
|
464
|
+
return takeObject(ret);
|
|
465
|
+
}
|
|
466
|
+
/**
|
|
467
|
+
* @param {string} path
|
|
468
|
+
* @returns {Promise<void>}
|
|
469
|
+
*/
|
|
470
|
+
createDir(path) {
|
|
471
|
+
const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
|
|
472
|
+
const len0 = WASM_VECTOR_LEN;
|
|
473
|
+
const ret = wasm.project_createDir(this.__wbg_ptr, ptr0, len0);
|
|
474
|
+
return takeObject(ret);
|
|
475
|
+
}
|
|
476
|
+
/**
|
|
477
|
+
* @param {string} path
|
|
478
|
+
* @returns {Promise<void>}
|
|
479
|
+
*/
|
|
480
|
+
createDirAll(path) {
|
|
481
|
+
const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
|
|
482
|
+
const len0 = WASM_VECTOR_LEN;
|
|
483
|
+
const ret = wasm.project_createDirAll(this.__wbg_ptr, ptr0, len0);
|
|
484
|
+
return takeObject(ret);
|
|
485
|
+
}
|
|
486
|
+
/**
|
|
487
|
+
* @param {string} src
|
|
488
|
+
* @param {string} dst
|
|
489
|
+
* @returns {Promise<void>}
|
|
490
|
+
*/
|
|
491
|
+
copyFile(src, dst) {
|
|
492
|
+
const ptr0 = passStringToWasm0(src, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
|
|
493
|
+
const len0 = WASM_VECTOR_LEN;
|
|
494
|
+
const ptr1 = passStringToWasm0(dst, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
|
|
495
|
+
const len1 = WASM_VECTOR_LEN;
|
|
496
|
+
const ret = wasm.project_copyFile(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
497
|
+
return takeObject(ret);
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
async function __wbg_load(module, imports) {
|
|
501
|
+
if (typeof Response === 'function' && module instanceof Response) {
|
|
502
|
+
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
|
503
|
+
try {
|
|
504
|
+
return await WebAssembly.instantiateStreaming(module, imports);
|
|
505
|
+
}
|
|
506
|
+
catch (e) {
|
|
507
|
+
if (module.headers.get('Content-Type') != 'application/wasm') {
|
|
508
|
+
console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
|
|
509
|
+
}
|
|
510
|
+
else {
|
|
511
|
+
throw e;
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
const bytes = await module.arrayBuffer();
|
|
516
|
+
return await WebAssembly.instantiate(bytes, imports);
|
|
517
|
+
}
|
|
518
|
+
else {
|
|
519
|
+
const instance = await WebAssembly.instantiate(module, imports);
|
|
520
|
+
if (instance instanceof WebAssembly.Instance) {
|
|
521
|
+
return { instance, module };
|
|
522
|
+
}
|
|
523
|
+
else {
|
|
524
|
+
return instance;
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
function __wbg_get_imports() {
|
|
529
|
+
const imports = {};
|
|
530
|
+
imports.wbg = {};
|
|
531
|
+
imports.wbg.__wbg_String_8f0eb39a4a4c2f66 = function (arg0, arg1) {
|
|
532
|
+
const ret = String(getObject(arg1));
|
|
533
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
|
|
534
|
+
const len1 = WASM_VECTOR_LEN;
|
|
535
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
536
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
537
|
+
};
|
|
538
|
+
imports.wbg.__wbg_abort_410ec47a64ac6117 = function (arg0, arg1) {
|
|
539
|
+
getObject(arg0).abort(getObject(arg1));
|
|
540
|
+
};
|
|
541
|
+
imports.wbg.__wbg_abort_775ef1d17fc65868 = function (arg0) {
|
|
542
|
+
getObject(arg0).abort();
|
|
543
|
+
};
|
|
544
|
+
imports.wbg.__wbg_append_8c7dd8d641a5f01b = function () {
|
|
545
|
+
return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
546
|
+
getObject(arg0).append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
547
|
+
}, arguments);
|
|
548
|
+
};
|
|
549
|
+
imports.wbg.__wbg_arrayBuffer_d1b44c4390db422f = function () {
|
|
550
|
+
return handleError(function (arg0) {
|
|
551
|
+
const ret = getObject(arg0).arrayBuffer();
|
|
552
|
+
return addHeapObject(ret);
|
|
553
|
+
}, arguments);
|
|
554
|
+
};
|
|
555
|
+
imports.wbg.__wbg_async_9ff6d9e405f13772 = function (arg0) {
|
|
556
|
+
const ret = getObject(arg0).async;
|
|
557
|
+
return ret;
|
|
558
|
+
};
|
|
559
|
+
imports.wbg.__wbg_buffer_609cc3eee51ed158 = function (arg0) {
|
|
560
|
+
const ret = getObject(arg0).buffer;
|
|
561
|
+
return addHeapObject(ret);
|
|
562
|
+
};
|
|
563
|
+
imports.wbg.__wbg_call_672a4d21634d4a24 = function () {
|
|
564
|
+
return handleError(function (arg0, arg1) {
|
|
565
|
+
const ret = getObject(arg0).call(getObject(arg1));
|
|
566
|
+
return addHeapObject(ret);
|
|
567
|
+
}, arguments);
|
|
568
|
+
};
|
|
569
|
+
imports.wbg.__wbg_call_7cccdd69e0791ae2 = function () {
|
|
570
|
+
return handleError(function (arg0, arg1, arg2) {
|
|
571
|
+
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
572
|
+
return addHeapObject(ret);
|
|
573
|
+
}, arguments);
|
|
574
|
+
};
|
|
575
|
+
imports.wbg.__wbg_clearTimeout_0b53d391c1b94dda = function (arg0) {
|
|
576
|
+
const ret = clearTimeout(takeObject(arg0));
|
|
577
|
+
return addHeapObject(ret);
|
|
578
|
+
};
|
|
579
|
+
imports.wbg.__wbg_close_a17af48266bd9942 = function (arg0) {
|
|
580
|
+
getObject(arg0).close();
|
|
581
|
+
};
|
|
582
|
+
imports.wbg.__wbg_createObjectURL_6e98d2f9c7bd9764 = function () {
|
|
583
|
+
return handleError(function (arg0, arg1) {
|
|
584
|
+
const ret = URL.createObjectURL(getObject(arg1));
|
|
585
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
|
|
586
|
+
const len1 = WASM_VECTOR_LEN;
|
|
587
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
588
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
589
|
+
}, arguments);
|
|
590
|
+
};
|
|
591
|
+
imports.wbg.__wbg_createsyncaccesshandleoptions_new = function (arg0) {
|
|
592
|
+
const ret = CreateSyncAccessHandleOptions.__wrap(arg0);
|
|
593
|
+
return addHeapObject(ret);
|
|
594
|
+
};
|
|
595
|
+
imports.wbg.__wbg_data_432d9c3df2630942 = function (arg0) {
|
|
596
|
+
const ret = getObject(arg0).data;
|
|
597
|
+
return addHeapObject(ret);
|
|
598
|
+
};
|
|
599
|
+
imports.wbg.__wbg_debug_3cb59063b29f58c1 = function (arg0) {
|
|
600
|
+
console.debug(getObject(arg0));
|
|
601
|
+
};
|
|
602
|
+
imports.wbg.__wbg_debug_e17b51583ca6a632 = function (arg0, arg1, arg2, arg3) {
|
|
603
|
+
console.debug(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
|
|
604
|
+
};
|
|
605
|
+
imports.wbg.__wbg_direntry_new = function (arg0) {
|
|
606
|
+
const ret = DirEntry.__wrap(arg0);
|
|
607
|
+
return addHeapObject(ret);
|
|
608
|
+
};
|
|
609
|
+
imports.wbg.__wbg_done_769e5ede4b31c67b = function (arg0) {
|
|
610
|
+
const ret = getObject(arg0).done;
|
|
611
|
+
return ret;
|
|
612
|
+
};
|
|
613
|
+
imports.wbg.__wbg_entries_19efe296f7d36df9 = function (arg0) {
|
|
614
|
+
const ret = getObject(arg0).entries();
|
|
615
|
+
return addHeapObject(ret);
|
|
616
|
+
};
|
|
617
|
+
imports.wbg.__wbg_error_524f506f44df1645 = function (arg0) {
|
|
618
|
+
console.error(getObject(arg0));
|
|
619
|
+
};
|
|
620
|
+
imports.wbg.__wbg_error_7534b8e9a36f1ab4 = function (arg0, arg1) {
|
|
621
|
+
let deferred0_0;
|
|
622
|
+
let deferred0_1;
|
|
623
|
+
try {
|
|
624
|
+
deferred0_0 = arg0;
|
|
625
|
+
deferred0_1 = arg1;
|
|
626
|
+
console.error(getStringFromWasm0(arg0, arg1));
|
|
627
|
+
}
|
|
628
|
+
finally {
|
|
629
|
+
wasm.__wbindgen_export_4(deferred0_0, deferred0_1, 1);
|
|
630
|
+
}
|
|
631
|
+
};
|
|
632
|
+
imports.wbg.__wbg_error_80de38b3f7cc3c3c = function (arg0, arg1, arg2, arg3) {
|
|
633
|
+
console.error(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
|
|
634
|
+
};
|
|
635
|
+
imports.wbg.__wbg_eval_e10dc02e9547f640 = function () {
|
|
636
|
+
return handleError(function (arg0, arg1) {
|
|
637
|
+
const ret = eval(getStringFromWasm0(arg0, arg1));
|
|
638
|
+
return addHeapObject(ret);
|
|
639
|
+
}, arguments);
|
|
640
|
+
};
|
|
641
|
+
imports.wbg.__wbg_fetch_11bff8299d0ecd2b = function (arg0) {
|
|
642
|
+
const ret = fetch(getObject(arg0));
|
|
643
|
+
return addHeapObject(ret);
|
|
644
|
+
};
|
|
645
|
+
imports.wbg.__wbg_fetch_509096533071c657 = function (arg0, arg1) {
|
|
646
|
+
const ret = getObject(arg0).fetch(getObject(arg1));
|
|
647
|
+
return addHeapObject(ret);
|
|
648
|
+
};
|
|
649
|
+
imports.wbg.__wbg_from_2a5d3e218e67aa85 = function (arg0) {
|
|
650
|
+
const ret = Array.from(getObject(arg0));
|
|
651
|
+
return addHeapObject(ret);
|
|
652
|
+
};
|
|
653
|
+
imports.wbg.__wbg_getDirectoryHandle_c48a138373d79b3d = function (arg0, arg1, arg2, arg3) {
|
|
654
|
+
const ret = getObject(arg0).getDirectoryHandle(getStringFromWasm0(arg1, arg2), getObject(arg3));
|
|
655
|
+
return addHeapObject(ret);
|
|
656
|
+
};
|
|
657
|
+
imports.wbg.__wbg_getDirectory_c206b0540c9acc0f = function (arg0) {
|
|
658
|
+
const ret = getObject(arg0).getDirectory();
|
|
659
|
+
return addHeapObject(ret);
|
|
660
|
+
};
|
|
661
|
+
imports.wbg.__wbg_getFileHandle_5fb877d1ecc74d52 = function (arg0, arg1, arg2, arg3) {
|
|
662
|
+
const ret = getObject(arg0).getFileHandle(getStringFromWasm0(arg1, arg2), getObject(arg3));
|
|
663
|
+
return addHeapObject(ret);
|
|
664
|
+
};
|
|
665
|
+
imports.wbg.__wbg_getRandomValues_3a70830e53f8ccf5 = function () {
|
|
666
|
+
return handleError(function (arg0) {
|
|
667
|
+
globalThis.crypto.getRandomValues(getObject(arg0));
|
|
668
|
+
}, arguments);
|
|
669
|
+
};
|
|
670
|
+
imports.wbg.__wbg_getSize_e7dbd5ffa0b43df1 = function () {
|
|
671
|
+
return handleError(function (arg0) {
|
|
672
|
+
const ret = getObject(arg0).getSize();
|
|
673
|
+
return ret;
|
|
674
|
+
}, arguments);
|
|
675
|
+
};
|
|
676
|
+
imports.wbg.__wbg_get_67b2ba62fc30de12 = function () {
|
|
677
|
+
return handleError(function (arg0, arg1) {
|
|
678
|
+
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
679
|
+
return addHeapObject(ret);
|
|
680
|
+
}, arguments);
|
|
681
|
+
};
|
|
682
|
+
imports.wbg.__wbg_get_b9b93047fe3cf45b = function (arg0, arg1) {
|
|
683
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
684
|
+
return addHeapObject(ret);
|
|
685
|
+
};
|
|
686
|
+
imports.wbg.__wbg_has_a5ea9117f258a0ec = function () {
|
|
687
|
+
return handleError(function (arg0, arg1) {
|
|
688
|
+
const ret = Reflect.has(getObject(arg0), getObject(arg1));
|
|
689
|
+
return ret;
|
|
690
|
+
}, arguments);
|
|
691
|
+
};
|
|
692
|
+
imports.wbg.__wbg_headers_9cb51cfd2ac780a4 = function (arg0) {
|
|
693
|
+
const ret = getObject(arg0).headers;
|
|
694
|
+
return addHeapObject(ret);
|
|
695
|
+
};
|
|
696
|
+
imports.wbg.__wbg_info_033d8b8a0838f1d3 = function (arg0, arg1, arg2, arg3) {
|
|
697
|
+
console.info(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
|
|
698
|
+
};
|
|
699
|
+
imports.wbg.__wbg_info_3daf2e093e091b66 = function (arg0) {
|
|
700
|
+
console.info(getObject(arg0));
|
|
701
|
+
};
|
|
702
|
+
imports.wbg.__wbg_instanceof_DedicatedWorkerGlobalScope_a688e81380e34e02 = function (arg0) {
|
|
703
|
+
let result;
|
|
704
|
+
try {
|
|
705
|
+
result = getObject(arg0) instanceof DedicatedWorkerGlobalScope;
|
|
706
|
+
}
|
|
707
|
+
catch (_) {
|
|
708
|
+
result = false;
|
|
709
|
+
}
|
|
710
|
+
const ret = result;
|
|
711
|
+
return ret;
|
|
712
|
+
};
|
|
713
|
+
imports.wbg.__wbg_instanceof_DomException_ed1ccb7aaf39034c = function (arg0) {
|
|
714
|
+
let result;
|
|
715
|
+
try {
|
|
716
|
+
result = getObject(arg0) instanceof DOMException;
|
|
717
|
+
}
|
|
718
|
+
catch (_) {
|
|
719
|
+
result = false;
|
|
720
|
+
}
|
|
721
|
+
const ret = result;
|
|
722
|
+
return ret;
|
|
723
|
+
};
|
|
724
|
+
imports.wbg.__wbg_instanceof_FileSystemDirectoryHandle_0906fc139d75557b = function (arg0) {
|
|
725
|
+
let result;
|
|
726
|
+
try {
|
|
727
|
+
result = getObject(arg0) instanceof FileSystemDirectoryHandle;
|
|
728
|
+
}
|
|
729
|
+
catch (_) {
|
|
730
|
+
result = false;
|
|
731
|
+
}
|
|
732
|
+
const ret = result;
|
|
733
|
+
return ret;
|
|
734
|
+
};
|
|
735
|
+
imports.wbg.__wbg_instanceof_Response_f2cc20d9f7dfd644 = function (arg0) {
|
|
736
|
+
let result;
|
|
737
|
+
try {
|
|
738
|
+
result = getObject(arg0) instanceof Response;
|
|
739
|
+
}
|
|
740
|
+
catch (_) {
|
|
741
|
+
result = false;
|
|
742
|
+
}
|
|
743
|
+
const ret = result;
|
|
744
|
+
return ret;
|
|
745
|
+
};
|
|
746
|
+
imports.wbg.__wbg_instanceof_WorkerGlobalScope_dbdbdea7e3b56493 = function (arg0) {
|
|
747
|
+
let result;
|
|
748
|
+
try {
|
|
749
|
+
result = getObject(arg0) instanceof WorkerGlobalScope;
|
|
750
|
+
}
|
|
751
|
+
catch (_) {
|
|
752
|
+
result = false;
|
|
753
|
+
}
|
|
754
|
+
const ret = result;
|
|
755
|
+
return ret;
|
|
756
|
+
};
|
|
757
|
+
imports.wbg.__wbg_iterator_9a24c88df860dc65 = function () {
|
|
758
|
+
const ret = Symbol.iterator;
|
|
759
|
+
return addHeapObject(ret);
|
|
760
|
+
};
|
|
761
|
+
imports.wbg.__wbg_kind_e326a1c6387aad5e = function (arg0) {
|
|
762
|
+
const ret = getObject(arg0).kind;
|
|
763
|
+
return (__wbindgen_enum_FileSystemHandleKind.indexOf(ret) + 1 || 3) - 1;
|
|
764
|
+
};
|
|
765
|
+
imports.wbg.__wbg_length_a446193dc22c12f8 = function (arg0) {
|
|
766
|
+
const ret = getObject(arg0).length;
|
|
767
|
+
return ret;
|
|
768
|
+
};
|
|
769
|
+
imports.wbg.__wbg_message_d1685a448ba00178 = function (arg0, arg1) {
|
|
770
|
+
const ret = getObject(arg1).message;
|
|
771
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
|
|
772
|
+
const len1 = WASM_VECTOR_LEN;
|
|
773
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
774
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
775
|
+
};
|
|
776
|
+
imports.wbg.__wbg_name_f2d27098bfd843e7 = function (arg0, arg1) {
|
|
777
|
+
const ret = getObject(arg1).name;
|
|
778
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
|
|
779
|
+
const len1 = WASM_VECTOR_LEN;
|
|
780
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
781
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
782
|
+
};
|
|
783
|
+
imports.wbg.__wbg_navigator_0a9bf1120e24fec2 = function (arg0) {
|
|
784
|
+
const ret = getObject(arg0).navigator;
|
|
785
|
+
return addHeapObject(ret);
|
|
786
|
+
};
|
|
787
|
+
imports.wbg.__wbg_new_018dcc2d6c8c2f6a = function () {
|
|
788
|
+
return handleError(function () {
|
|
789
|
+
const ret = new Headers();
|
|
790
|
+
return addHeapObject(ret);
|
|
791
|
+
}, arguments);
|
|
792
|
+
};
|
|
793
|
+
imports.wbg.__wbg_new_23a2665fac83c611 = function (arg0, arg1) {
|
|
794
|
+
try {
|
|
795
|
+
var state0 = { a: arg0, b: arg1 };
|
|
796
|
+
var cb0 = (arg0, arg1) => {
|
|
797
|
+
const a = state0.a;
|
|
798
|
+
state0.a = 0;
|
|
799
|
+
try {
|
|
800
|
+
return __wbg_adapter_109(a, state0.b, arg0, arg1);
|
|
801
|
+
}
|
|
802
|
+
finally {
|
|
803
|
+
state0.a = a;
|
|
804
|
+
}
|
|
805
|
+
};
|
|
806
|
+
const ret = new Promise(cb0);
|
|
807
|
+
return addHeapObject(ret);
|
|
808
|
+
}
|
|
809
|
+
finally {
|
|
810
|
+
state0.a = state0.b = 0;
|
|
811
|
+
}
|
|
812
|
+
};
|
|
813
|
+
imports.wbg.__wbg_new_405e22f390576ce2 = function () {
|
|
814
|
+
const ret = new Object();
|
|
815
|
+
return addHeapObject(ret);
|
|
816
|
+
};
|
|
817
|
+
imports.wbg.__wbg_new_5e0be73521bc8c17 = function () {
|
|
818
|
+
const ret = new Map();
|
|
819
|
+
return addHeapObject(ret);
|
|
820
|
+
};
|
|
821
|
+
imports.wbg.__wbg_new_78feb108b6472713 = function () {
|
|
822
|
+
const ret = new Array();
|
|
823
|
+
return addHeapObject(ret);
|
|
824
|
+
};
|
|
825
|
+
imports.wbg.__wbg_new_8a6f238a6ece86ea = function () {
|
|
826
|
+
const ret = new Error();
|
|
827
|
+
return addHeapObject(ret);
|
|
828
|
+
};
|
|
829
|
+
imports.wbg.__wbg_new_a12002a7f91c75be = function (arg0) {
|
|
830
|
+
const ret = new Uint8Array(getObject(arg0));
|
|
831
|
+
return addHeapObject(ret);
|
|
832
|
+
};
|
|
833
|
+
imports.wbg.__wbg_new_b1a33e5095abf678 = function () {
|
|
834
|
+
return handleError(function (arg0, arg1) {
|
|
835
|
+
const ret = new Worker(getStringFromWasm0(arg0, arg1));
|
|
836
|
+
return addHeapObject(ret);
|
|
837
|
+
}, arguments);
|
|
838
|
+
};
|
|
839
|
+
imports.wbg.__wbg_new_e25e5aab09ff45db = function () {
|
|
840
|
+
return handleError(function () {
|
|
841
|
+
const ret = new AbortController();
|
|
842
|
+
return addHeapObject(ret);
|
|
843
|
+
}, arguments);
|
|
844
|
+
};
|
|
845
|
+
imports.wbg.__wbg_new_e9a4a67dbababe57 = function (arg0) {
|
|
846
|
+
const ret = new Int32Array(getObject(arg0));
|
|
847
|
+
return addHeapObject(ret);
|
|
848
|
+
};
|
|
849
|
+
imports.wbg.__wbg_newnoargs_105ed471475aaf50 = function (arg0, arg1) {
|
|
850
|
+
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
851
|
+
return addHeapObject(ret);
|
|
852
|
+
};
|
|
853
|
+
imports.wbg.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a = function (arg0, arg1, arg2) {
|
|
854
|
+
const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
|
|
855
|
+
return addHeapObject(ret);
|
|
856
|
+
};
|
|
857
|
+
imports.wbg.__wbg_newwithlength_a381634e90c276d4 = function (arg0) {
|
|
858
|
+
const ret = new Uint8Array(arg0 >>> 0);
|
|
859
|
+
return addHeapObject(ret);
|
|
860
|
+
};
|
|
861
|
+
imports.wbg.__wbg_newwithoptions_0419cac3977d7f7f = function () {
|
|
862
|
+
return handleError(function (arg0, arg1, arg2) {
|
|
863
|
+
const ret = new Worker(getStringFromWasm0(arg0, arg1), getObject(arg2));
|
|
864
|
+
return addHeapObject(ret);
|
|
865
|
+
}, arguments);
|
|
866
|
+
};
|
|
867
|
+
imports.wbg.__wbg_newwithstrandinit_06c535e0a867c635 = function () {
|
|
868
|
+
return handleError(function (arg0, arg1, arg2) {
|
|
869
|
+
const ret = new Request(getStringFromWasm0(arg0, arg1), getObject(arg2));
|
|
870
|
+
return addHeapObject(ret);
|
|
871
|
+
}, arguments);
|
|
872
|
+
};
|
|
873
|
+
imports.wbg.__wbg_newwithstrsequence_a242b062eda81d0b = function () {
|
|
874
|
+
return handleError(function (arg0) {
|
|
875
|
+
const ret = new Blob(getObject(arg0));
|
|
876
|
+
return addHeapObject(ret);
|
|
877
|
+
}, arguments);
|
|
878
|
+
};
|
|
879
|
+
imports.wbg.__wbg_newwithstrsequenceandoptions_aaff55b467c81b63 = function () {
|
|
880
|
+
return handleError(function (arg0, arg1) {
|
|
881
|
+
const ret = new Blob(getObject(arg0), getObject(arg1));
|
|
882
|
+
return addHeapObject(ret);
|
|
883
|
+
}, arguments);
|
|
884
|
+
};
|
|
885
|
+
imports.wbg.__wbg_next_25feadfc0913fea9 = function (arg0) {
|
|
886
|
+
const ret = getObject(arg0).next;
|
|
887
|
+
return addHeapObject(ret);
|
|
888
|
+
};
|
|
889
|
+
imports.wbg.__wbg_next_6574e1a8a62d1055 = function () {
|
|
890
|
+
return handleError(function (arg0) {
|
|
891
|
+
const ret = getObject(arg0).next();
|
|
892
|
+
return addHeapObject(ret);
|
|
893
|
+
}, arguments);
|
|
894
|
+
};
|
|
895
|
+
imports.wbg.__wbg_next_c3ab0d59847b3b5c = function () {
|
|
896
|
+
return handleError(function (arg0) {
|
|
897
|
+
const ret = getObject(arg0).next();
|
|
898
|
+
return addHeapObject(ret);
|
|
899
|
+
}, arguments);
|
|
900
|
+
};
|
|
901
|
+
imports.wbg.__wbg_now_e1163c67115ff874 = function (arg0) {
|
|
902
|
+
const ret = getObject(arg0).now();
|
|
903
|
+
return ret;
|
|
904
|
+
};
|
|
905
|
+
imports.wbg.__wbg_of_4a05197bfc89556f = function (arg0, arg1, arg2) {
|
|
906
|
+
const ret = Array.of(getObject(arg0), getObject(arg1), getObject(arg2));
|
|
907
|
+
return addHeapObject(ret);
|
|
908
|
+
};
|
|
909
|
+
imports.wbg.__wbg_performance_7fe0928f3ab059e5 = function (arg0) {
|
|
910
|
+
const ret = getObject(arg0).performance;
|
|
911
|
+
return addHeapObject(ret);
|
|
912
|
+
};
|
|
913
|
+
imports.wbg.__wbg_postMessage_6edafa8f7b9c2f52 = function () {
|
|
914
|
+
return handleError(function (arg0, arg1) {
|
|
915
|
+
getObject(arg0).postMessage(getObject(arg1));
|
|
916
|
+
}, arguments);
|
|
917
|
+
};
|
|
918
|
+
imports.wbg.__wbg_postMessage_83a8d58d3fcb6c13 = function () {
|
|
919
|
+
return handleError(function (arg0, arg1) {
|
|
920
|
+
getObject(arg0).postMessage(getObject(arg1));
|
|
921
|
+
}, arguments);
|
|
922
|
+
};
|
|
923
|
+
imports.wbg.__wbg_push_737cfc8c1432c2c6 = function (arg0, arg1) {
|
|
924
|
+
const ret = getObject(arg0).push(getObject(arg1));
|
|
925
|
+
return ret;
|
|
926
|
+
};
|
|
927
|
+
imports.wbg.__wbg_queueMicrotask_97d92b4fcc8a61c5 = function (arg0) {
|
|
928
|
+
queueMicrotask(getObject(arg0));
|
|
929
|
+
};
|
|
930
|
+
imports.wbg.__wbg_queueMicrotask_d3219def82552485 = function (arg0) {
|
|
931
|
+
const ret = getObject(arg0).queueMicrotask;
|
|
932
|
+
return addHeapObject(ret);
|
|
933
|
+
};
|
|
934
|
+
imports.wbg.__wbg_random_3ad904d98382defe = function () {
|
|
935
|
+
const ret = Math.random();
|
|
936
|
+
return ret;
|
|
937
|
+
};
|
|
938
|
+
imports.wbg.__wbg_read_f8fdd4b410209222 = function () {
|
|
939
|
+
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
940
|
+
const ret = getObject(arg0).read(getArrayU8FromWasm0(arg1, arg2), getObject(arg3));
|
|
941
|
+
return ret;
|
|
942
|
+
}, arguments);
|
|
943
|
+
};
|
|
944
|
+
imports.wbg.__wbg_removeEntry_a424e90dff229b19 = function (arg0, arg1, arg2, arg3) {
|
|
945
|
+
const ret = getObject(arg0).removeEntry(getStringFromWasm0(arg1, arg2), getObject(arg3));
|
|
946
|
+
return addHeapObject(ret);
|
|
947
|
+
};
|
|
948
|
+
imports.wbg.__wbg_resolve_4851785c9c5f573d = function (arg0) {
|
|
949
|
+
const ret = Promise.resolve(getObject(arg0));
|
|
950
|
+
return addHeapObject(ret);
|
|
951
|
+
};
|
|
952
|
+
imports.wbg.__wbg_revokeObjectURL_27267efebeb457c7 = function () {
|
|
953
|
+
return handleError(function (arg0, arg1) {
|
|
954
|
+
URL.revokeObjectURL(getStringFromWasm0(arg0, arg1));
|
|
955
|
+
}, arguments);
|
|
956
|
+
};
|
|
957
|
+
imports.wbg.__wbg_setTimeout_42370cb3051b8c2c = function () {
|
|
958
|
+
return handleError(function (arg0, arg1, arg2) {
|
|
959
|
+
const ret = getObject(arg0).setTimeout(getObject(arg1), arg2);
|
|
960
|
+
return addHeapObject(ret);
|
|
961
|
+
}, arguments);
|
|
962
|
+
};
|
|
963
|
+
imports.wbg.__wbg_setTimeout_73ce8df12de4f2f2 = function (arg0, arg1) {
|
|
964
|
+
const ret = setTimeout(getObject(arg0), arg1);
|
|
965
|
+
return addHeapObject(ret);
|
|
966
|
+
};
|
|
967
|
+
imports.wbg.__wbg_set_37837023f3d740e8 = function (arg0, arg1, arg2) {
|
|
968
|
+
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
969
|
+
};
|
|
970
|
+
imports.wbg.__wbg_set_3f1d0b984ed272ed = function (arg0, arg1, arg2) {
|
|
971
|
+
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
972
|
+
};
|
|
973
|
+
imports.wbg.__wbg_set_65595bdd868b3009 = function (arg0, arg1, arg2) {
|
|
974
|
+
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
975
|
+
};
|
|
976
|
+
imports.wbg.__wbg_set_8fc6bf8a5b1071d1 = function (arg0, arg1, arg2) {
|
|
977
|
+
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
978
|
+
return addHeapObject(ret);
|
|
979
|
+
};
|
|
980
|
+
imports.wbg.__wbg_setat_2a071a392643c10e = function (arg0, arg1) {
|
|
981
|
+
getObject(arg0).at = arg1;
|
|
982
|
+
};
|
|
983
|
+
imports.wbg.__wbg_setbody_5923b78a95eedf29 = function (arg0, arg1) {
|
|
984
|
+
getObject(arg0).body = getObject(arg1);
|
|
985
|
+
};
|
|
986
|
+
imports.wbg.__wbg_setcreate_139bad94b2874fb5 = function (arg0, arg1) {
|
|
987
|
+
getObject(arg0).create = arg1 !== 0;
|
|
988
|
+
};
|
|
989
|
+
imports.wbg.__wbg_setcreate_4ca762e23d9f78da = function (arg0, arg1) {
|
|
990
|
+
getObject(arg0).create = arg1 !== 0;
|
|
991
|
+
};
|
|
992
|
+
imports.wbg.__wbg_setcredentials_c3a22f1cd105a2c6 = function (arg0, arg1) {
|
|
993
|
+
getObject(arg0).credentials = __wbindgen_enum_RequestCredentials[arg1];
|
|
994
|
+
};
|
|
995
|
+
imports.wbg.__wbg_setheaders_834c0bdb6a8949ad = function (arg0, arg1) {
|
|
996
|
+
getObject(arg0).headers = getObject(arg1);
|
|
997
|
+
};
|
|
998
|
+
imports.wbg.__wbg_setmethod_3c5280fe5d890842 = function (arg0, arg1, arg2) {
|
|
999
|
+
getObject(arg0).method = getStringFromWasm0(arg1, arg2);
|
|
1000
|
+
};
|
|
1001
|
+
imports.wbg.__wbg_setmode_5dc300b865044b65 = function (arg0, arg1) {
|
|
1002
|
+
getObject(arg0).mode = __wbindgen_enum_RequestMode[arg1];
|
|
1003
|
+
};
|
|
1004
|
+
imports.wbg.__wbg_setname_73878b09a5ee3d0c = function (arg0, arg1, arg2) {
|
|
1005
|
+
getObject(arg0).name = getStringFromWasm0(arg1, arg2);
|
|
1006
|
+
};
|
|
1007
|
+
imports.wbg.__wbg_setonerror_57eeef5feb01fe7a = function (arg0, arg1) {
|
|
1008
|
+
getObject(arg0).onerror = getObject(arg1);
|
|
1009
|
+
};
|
|
1010
|
+
imports.wbg.__wbg_setonmessage_5a885b16bdc6dca6 = function (arg0, arg1) {
|
|
1011
|
+
getObject(arg0).onmessage = getObject(arg1);
|
|
1012
|
+
};
|
|
1013
|
+
imports.wbg.__wbg_setrecursive_536113a081d6177a = function (arg0, arg1) {
|
|
1014
|
+
getObject(arg0).recursive = arg1 !== 0;
|
|
1015
|
+
};
|
|
1016
|
+
imports.wbg.__wbg_setsignal_75b21ef3a81de905 = function (arg0, arg1) {
|
|
1017
|
+
getObject(arg0).signal = getObject(arg1);
|
|
1018
|
+
};
|
|
1019
|
+
imports.wbg.__wbg_settype_39ed370d3edd403c = function (arg0, arg1, arg2) {
|
|
1020
|
+
getObject(arg0).type = getStringFromWasm0(arg1, arg2);
|
|
1021
|
+
};
|
|
1022
|
+
imports.wbg.__wbg_settype_47fae7d6c82625e7 = function (arg0, arg1) {
|
|
1023
|
+
getObject(arg0).type = __wbindgen_enum_WorkerType[arg1];
|
|
1024
|
+
};
|
|
1025
|
+
imports.wbg.__wbg_signal_aaf9ad74119f20a4 = function (arg0) {
|
|
1026
|
+
const ret = getObject(arg0).signal;
|
|
1027
|
+
return addHeapObject(ret);
|
|
1028
|
+
};
|
|
1029
|
+
imports.wbg.__wbg_size_3808d41635a9c259 = function (arg0) {
|
|
1030
|
+
const ret = getObject(arg0).size;
|
|
1031
|
+
return ret;
|
|
1032
|
+
};
|
|
1033
|
+
imports.wbg.__wbg_slice_8c197bf0b6dfc84a = function () {
|
|
1034
|
+
return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1035
|
+
const ret = getObject(arg0).slice(arg1, arg2, getStringFromWasm0(arg3, arg4));
|
|
1036
|
+
return addHeapObject(ret);
|
|
1037
|
+
}, arguments);
|
|
1038
|
+
};
|
|
1039
|
+
imports.wbg.__wbg_stack_0ed75d68575b0f3c = function (arg0, arg1) {
|
|
1040
|
+
const ret = getObject(arg1).stack;
|
|
1041
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
|
|
1042
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1043
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1044
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1045
|
+
};
|
|
1046
|
+
imports.wbg.__wbg_static_accessor_GLOBAL_88a902d13a557d07 = function () {
|
|
1047
|
+
const ret = typeof global === 'undefined' ? null : global;
|
|
1048
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
1049
|
+
};
|
|
1050
|
+
imports.wbg.__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0 = function () {
|
|
1051
|
+
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
1052
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
1053
|
+
};
|
|
1054
|
+
imports.wbg.__wbg_static_accessor_SELF_37c5d418e4bf5819 = function () {
|
|
1055
|
+
const ret = typeof self === 'undefined' ? null : self;
|
|
1056
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
1057
|
+
};
|
|
1058
|
+
imports.wbg.__wbg_static_accessor_WINDOW_5de37043a91a9c40 = function () {
|
|
1059
|
+
const ret = typeof window === 'undefined' ? null : window;
|
|
1060
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
1061
|
+
};
|
|
1062
|
+
imports.wbg.__wbg_status_f6360336ca686bf0 = function (arg0) {
|
|
1063
|
+
const ret = getObject(arg0).status;
|
|
1064
|
+
return ret;
|
|
1065
|
+
};
|
|
1066
|
+
imports.wbg.__wbg_storage_07eb754b88898955 = function (arg0) {
|
|
1067
|
+
const ret = getObject(arg0).storage;
|
|
1068
|
+
return addHeapObject(ret);
|
|
1069
|
+
};
|
|
1070
|
+
imports.wbg.__wbg_stringify_f7ed6987935b4a24 = function () {
|
|
1071
|
+
return handleError(function (arg0) {
|
|
1072
|
+
const ret = JSON.stringify(getObject(arg0));
|
|
1073
|
+
return addHeapObject(ret);
|
|
1074
|
+
}, arguments);
|
|
1075
|
+
};
|
|
1076
|
+
imports.wbg.__wbg_subarray_aa9065fa9dc5df96 = function (arg0, arg1, arg2) {
|
|
1077
|
+
const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
|
|
1078
|
+
return addHeapObject(ret);
|
|
1079
|
+
};
|
|
1080
|
+
imports.wbg.__wbg_then_44b73946d2fb3e7d = function (arg0, arg1) {
|
|
1081
|
+
const ret = getObject(arg0).then(getObject(arg1));
|
|
1082
|
+
return addHeapObject(ret);
|
|
1083
|
+
};
|
|
1084
|
+
imports.wbg.__wbg_then_48b406749878a531 = function (arg0, arg1, arg2) {
|
|
1085
|
+
const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
|
|
1086
|
+
return addHeapObject(ret);
|
|
1087
|
+
};
|
|
1088
|
+
imports.wbg.__wbg_toString_5285597960676b7b = function (arg0) {
|
|
1089
|
+
const ret = getObject(arg0).toString();
|
|
1090
|
+
return addHeapObject(ret);
|
|
1091
|
+
};
|
|
1092
|
+
imports.wbg.__wbg_truncate_29261a6365c72b01 = function () {
|
|
1093
|
+
return handleError(function (arg0, arg1) {
|
|
1094
|
+
getObject(arg0).truncate(arg1 >>> 0);
|
|
1095
|
+
}, arguments);
|
|
1096
|
+
};
|
|
1097
|
+
imports.wbg.__wbg_url_ae10c34ca209681d = function (arg0, arg1) {
|
|
1098
|
+
const ret = getObject(arg1).url;
|
|
1099
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
|
|
1100
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1101
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1102
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1103
|
+
};
|
|
1104
|
+
imports.wbg.__wbg_value_cd1ffa7b1ab794f1 = function (arg0) {
|
|
1105
|
+
const ret = getObject(arg0).value;
|
|
1106
|
+
return addHeapObject(ret);
|
|
1107
|
+
};
|
|
1108
|
+
imports.wbg.__wbg_value_dab73d3d5d4abaaf = function (arg0) {
|
|
1109
|
+
const ret = getObject(arg0).value;
|
|
1110
|
+
return addHeapObject(ret);
|
|
1111
|
+
};
|
|
1112
|
+
imports.wbg.__wbg_waitAsync_61f0a081053dd3c2 = function (arg0, arg1, arg2) {
|
|
1113
|
+
const ret = Atomics.waitAsync(getObject(arg0), arg1 >>> 0, arg2);
|
|
1114
|
+
return addHeapObject(ret);
|
|
1115
|
+
};
|
|
1116
|
+
imports.wbg.__wbg_waitAsync_7ce6c8a047c752c3 = function () {
|
|
1117
|
+
const ret = Atomics.waitAsync;
|
|
1118
|
+
return addHeapObject(ret);
|
|
1119
|
+
};
|
|
1120
|
+
imports.wbg.__wbg_warn_4ca3906c248c47c4 = function (arg0) {
|
|
1121
|
+
console.warn(getObject(arg0));
|
|
1122
|
+
};
|
|
1123
|
+
imports.wbg.__wbg_warn_aaf1f4664a035bd6 = function (arg0, arg1, arg2, arg3) {
|
|
1124
|
+
console.warn(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
|
|
1125
|
+
};
|
|
1126
|
+
imports.wbg.__wbg_write_530d3c84df874f53 = function () {
|
|
1127
|
+
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1128
|
+
const ret = getObject(arg0).write(getArrayU8FromWasm0(arg1, arg2), getObject(arg3));
|
|
1129
|
+
return ret;
|
|
1130
|
+
}, arguments);
|
|
1131
|
+
};
|
|
1132
|
+
imports.wbg.__wbindgen_array_new = function () {
|
|
1133
|
+
const ret = [];
|
|
1134
|
+
return addHeapObject(ret);
|
|
1135
|
+
};
|
|
1136
|
+
imports.wbg.__wbindgen_array_push = function (arg0, arg1) {
|
|
1137
|
+
getObject(arg0).push(takeObject(arg1));
|
|
1138
|
+
};
|
|
1139
|
+
imports.wbg.__wbindgen_bigint_from_i64 = function (arg0) {
|
|
1140
|
+
const ret = arg0;
|
|
1141
|
+
return addHeapObject(ret);
|
|
1142
|
+
};
|
|
1143
|
+
imports.wbg.__wbindgen_bigint_from_u64 = function (arg0) {
|
|
1144
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
1145
|
+
return addHeapObject(ret);
|
|
1146
|
+
};
|
|
1147
|
+
imports.wbg.__wbindgen_cb_drop = function (arg0) {
|
|
1148
|
+
const obj = takeObject(arg0).original;
|
|
1149
|
+
if (obj.cnt-- == 1) {
|
|
1150
|
+
obj.a = 0;
|
|
1151
|
+
return true;
|
|
1152
|
+
}
|
|
1153
|
+
const ret = false;
|
|
1154
|
+
return ret;
|
|
1155
|
+
};
|
|
1156
|
+
imports.wbg.__wbindgen_closure_wrapper204130 = function (arg0, arg1, arg2) {
|
|
1157
|
+
const ret = makeMutClosure(arg0, arg1, 131379, __wbg_adapter_49);
|
|
1158
|
+
return addHeapObject(ret);
|
|
1159
|
+
};
|
|
1160
|
+
imports.wbg.__wbindgen_closure_wrapper216712 = function (arg0, arg1, arg2) {
|
|
1161
|
+
const ret = makeMutClosure(arg0, arg1, 144806, __wbg_adapter_52);
|
|
1162
|
+
return addHeapObject(ret);
|
|
1163
|
+
};
|
|
1164
|
+
imports.wbg.__wbindgen_closure_wrapper216713 = function (arg0, arg1, arg2) {
|
|
1165
|
+
const ret = makeMutClosure(arg0, arg1, 144806, __wbg_adapter_52);
|
|
1166
|
+
return addHeapObject(ret);
|
|
1167
|
+
};
|
|
1168
|
+
imports.wbg.__wbindgen_closure_wrapper216764 = function (arg0, arg1, arg2) {
|
|
1169
|
+
const ret = makeMutClosure(arg0, arg1, 144832, __wbg_adapter_57);
|
|
1170
|
+
return addHeapObject(ret);
|
|
1171
|
+
};
|
|
1172
|
+
imports.wbg.__wbindgen_closure_wrapper216804 = function (arg0, arg1, arg2) {
|
|
1173
|
+
const ret = makeMutClosure(arg0, arg1, 144850, __wbg_adapter_60);
|
|
1174
|
+
return addHeapObject(ret);
|
|
1175
|
+
};
|
|
1176
|
+
imports.wbg.__wbindgen_closure_wrapper32222 = function (arg0, arg1, arg2) {
|
|
1177
|
+
const ret = makeMutClosure(arg0, arg1, 18428, __wbg_adapter_46);
|
|
1178
|
+
return addHeapObject(ret);
|
|
1179
|
+
};
|
|
1180
|
+
imports.wbg.__wbindgen_debug_string = function (arg0, arg1) {
|
|
1181
|
+
const ret = debugString(getObject(arg1));
|
|
1182
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
|
|
1183
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1184
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1185
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1186
|
+
};
|
|
1187
|
+
imports.wbg.__wbindgen_error_new = function (arg0, arg1) {
|
|
1188
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
1189
|
+
return addHeapObject(ret);
|
|
1190
|
+
};
|
|
1191
|
+
imports.wbg.__wbindgen_is_function = function (arg0) {
|
|
1192
|
+
const ret = typeof (getObject(arg0)) === 'function';
|
|
1193
|
+
return ret;
|
|
1194
|
+
};
|
|
1195
|
+
imports.wbg.__wbindgen_is_object = function (arg0) {
|
|
1196
|
+
const val = getObject(arg0);
|
|
1197
|
+
const ret = typeof (val) === 'object' && val !== null;
|
|
1198
|
+
return ret;
|
|
1199
|
+
};
|
|
1200
|
+
imports.wbg.__wbindgen_is_string = function (arg0) {
|
|
1201
|
+
const ret = typeof (getObject(arg0)) === 'string';
|
|
1202
|
+
return ret;
|
|
1203
|
+
};
|
|
1204
|
+
imports.wbg.__wbindgen_is_undefined = function (arg0) {
|
|
1205
|
+
const ret = getObject(arg0) === undefined;
|
|
1206
|
+
return ret;
|
|
1207
|
+
};
|
|
1208
|
+
imports.wbg.__wbindgen_link_9579f016b4522a24 = function (arg0) {
|
|
1209
|
+
const val = `onmessage = function (ev) {
|
|
1210
|
+
let [ia, index, value] = ev.data;
|
|
1211
|
+
ia = new Int32Array(ia.buffer);
|
|
1212
|
+
let result = Atomics.wait(ia, index, value);
|
|
1213
|
+
postMessage(result);
|
|
1214
|
+
};
|
|
1215
|
+
`;
|
|
1216
|
+
const ret = typeof URL.createObjectURL === 'undefined' ? "data:application/javascript," + encodeURIComponent(val) : URL.createObjectURL(new Blob([val], { type: "text/javascript" }));
|
|
1217
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
|
|
1218
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1219
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1220
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1221
|
+
};
|
|
1222
|
+
imports.wbg.__wbindgen_memory = function () {
|
|
1223
|
+
const ret = wasm.memory;
|
|
1224
|
+
return addHeapObject(ret);
|
|
1225
|
+
};
|
|
1226
|
+
imports.wbg.__wbindgen_module = function () {
|
|
1227
|
+
const ret = __wbg_init.__wbindgen_wasm_module;
|
|
1228
|
+
return addHeapObject(ret);
|
|
1229
|
+
};
|
|
1230
|
+
imports.wbg.__wbindgen_number_get = function (arg0, arg1) {
|
|
1231
|
+
const obj = getObject(arg1);
|
|
1232
|
+
const ret = typeof (obj) === 'number' ? obj : undefined;
|
|
1233
|
+
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
1234
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1235
|
+
};
|
|
1236
|
+
imports.wbg.__wbindgen_number_new = function (arg0) {
|
|
1237
|
+
const ret = arg0;
|
|
1238
|
+
return addHeapObject(ret);
|
|
1239
|
+
};
|
|
1240
|
+
imports.wbg.__wbindgen_object_clone_ref = function (arg0) {
|
|
1241
|
+
const ret = getObject(arg0);
|
|
1242
|
+
return addHeapObject(ret);
|
|
1243
|
+
};
|
|
1244
|
+
imports.wbg.__wbindgen_object_drop_ref = function (arg0) {
|
|
1245
|
+
takeObject(arg0);
|
|
1246
|
+
};
|
|
1247
|
+
imports.wbg.__wbindgen_rethrow = function (arg0) {
|
|
1248
|
+
throw takeObject(arg0);
|
|
1249
|
+
};
|
|
1250
|
+
imports.wbg.__wbindgen_string_get = function (arg0, arg1) {
|
|
1251
|
+
const obj = getObject(arg1);
|
|
1252
|
+
const ret = typeof (obj) === 'string' ? obj : undefined;
|
|
1253
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
|
|
1254
|
+
var len1 = WASM_VECTOR_LEN;
|
|
1255
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1256
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1257
|
+
};
|
|
1258
|
+
imports.wbg.__wbindgen_string_new = function (arg0, arg1) {
|
|
1259
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
1260
|
+
return addHeapObject(ret);
|
|
1261
|
+
};
|
|
1262
|
+
imports.wbg.__wbindgen_throw = function (arg0, arg1) {
|
|
1263
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
1264
|
+
};
|
|
1265
|
+
imports.wbg.__wbindgen_uint8_array_new = function (arg0, arg1) {
|
|
1266
|
+
var v0 = getArrayU8FromWasm0(arg0, arg1).slice();
|
|
1267
|
+
wasm.__wbindgen_export_4(arg0, arg1 * 1, 1);
|
|
1268
|
+
const ret = v0;
|
|
1269
|
+
return addHeapObject(ret);
|
|
1270
|
+
};
|
|
1271
|
+
return imports;
|
|
1272
|
+
}
|
|
1273
|
+
function __wbg_init_memory(imports, memory) {
|
|
1274
|
+
imports.wbg.memory = memory || new WebAssembly.Memory({ initial: 224, maximum: 16384, shared: true });
|
|
1275
|
+
}
|
|
1276
|
+
function __wbg_finalize_init(instance, module, thread_stack_size) {
|
|
1277
|
+
wasm = instance.exports;
|
|
1278
|
+
__wbg_init.__wbindgen_wasm_module = module;
|
|
1279
|
+
cachedDataViewMemory0 = null;
|
|
1280
|
+
cachedUint8ArrayMemory0 = null;
|
|
1281
|
+
if (typeof thread_stack_size !== 'undefined' && (typeof thread_stack_size !== 'number' || thread_stack_size === 0 || thread_stack_size % 65536 !== 0)) {
|
|
1282
|
+
throw 'invalid stack size';
|
|
1283
|
+
}
|
|
1284
|
+
wasm.__wbindgen_start(thread_stack_size);
|
|
1285
|
+
return wasm;
|
|
1286
|
+
}
|
|
1287
|
+
function initSync(module, memory) {
|
|
1288
|
+
if (wasm !== undefined)
|
|
1289
|
+
return wasm;
|
|
1290
|
+
let thread_stack_size;
|
|
1291
|
+
if (typeof module !== 'undefined') {
|
|
1292
|
+
if (Object.getPrototypeOf(module) === Object.prototype) {
|
|
1293
|
+
({ module, memory, thread_stack_size } = module);
|
|
1294
|
+
}
|
|
1295
|
+
else {
|
|
1296
|
+
console.warn('using deprecated parameters for `initSync()`; pass a single object instead');
|
|
1297
|
+
}
|
|
1298
|
+
}
|
|
1299
|
+
const imports = __wbg_get_imports();
|
|
1300
|
+
__wbg_init_memory(imports, memory);
|
|
1301
|
+
if (!(module instanceof WebAssembly.Module)) {
|
|
1302
|
+
module = new WebAssembly.Module(module);
|
|
1303
|
+
}
|
|
1304
|
+
const instance = new WebAssembly.Instance(module, imports);
|
|
1305
|
+
return __wbg_finalize_init(instance, module, thread_stack_size);
|
|
1306
|
+
}
|
|
1307
|
+
async function __wbg_init(module_or_path, memory) {
|
|
1308
|
+
if (wasm !== undefined)
|
|
1309
|
+
return wasm;
|
|
1310
|
+
let thread_stack_size;
|
|
1311
|
+
if (typeof module_or_path !== 'undefined') {
|
|
1312
|
+
if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
|
|
1313
|
+
({ module_or_path, memory, thread_stack_size } = module_or_path);
|
|
1314
|
+
}
|
|
1315
|
+
else {
|
|
1316
|
+
console.warn('using deprecated parameters for the initialization function; pass a single object instead');
|
|
1317
|
+
}
|
|
1318
|
+
}
|
|
1319
|
+
if (typeof module_or_path === 'undefined') {
|
|
1320
|
+
module_or_path = new URL('index_bg.wasm', import.meta.url);
|
|
1321
|
+
}
|
|
1322
|
+
const imports = __wbg_get_imports();
|
|
1323
|
+
if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {
|
|
1324
|
+
module_or_path = fetch(module_or_path);
|
|
1325
|
+
}
|
|
1326
|
+
__wbg_init_memory(imports, memory);
|
|
1327
|
+
const { instance, module } = await __wbg_load(await module_or_path, imports);
|
|
1328
|
+
return __wbg_finalize_init(instance, module, thread_stack_size);
|
|
1329
|
+
}
|
|
1330
|
+
export { initSync };
|
|
1331
|
+
export default __wbg_init;
|