@kreuzberg/wasm 4.0.5 → 4.0.7
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/README.md +4 -4
- package/dist/pkg/README.md +4 -4
- package/dist/pkg/kreuzberg_wasm.d.ts +14 -11
- package/dist/pkg/kreuzberg_wasm.js +690 -787
- package/dist/pkg/kreuzberg_wasm_bg.js +479 -583
- package/dist/pkg/kreuzberg_wasm_bg.wasm +0 -0
- package/dist/pkg/kreuzberg_wasm_bg.wasm.d.ts +3 -3
- package/dist/pkg/package.json +1 -1
- package/package.json +1 -1
|
@@ -1,254 +1,3 @@
|
|
|
1
|
-
let wasm;
|
|
2
|
-
export function __wbg_set_wasm(val) {
|
|
3
|
-
wasm = val;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
function addToExternrefTable0(obj) {
|
|
7
|
-
const idx = wasm.__externref_table_alloc();
|
|
8
|
-
wasm.__wbindgen_externrefs.set(idx, obj);
|
|
9
|
-
return idx;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
13
|
-
? { register: () => {}, unregister: () => {} }
|
|
14
|
-
: new FinalizationRegistry(state => state.dtor(state.a, state.b));
|
|
15
|
-
|
|
16
|
-
function debugString(val) {
|
|
17
|
-
// primitive types
|
|
18
|
-
const type = typeof val;
|
|
19
|
-
if (type == 'number' || type == 'boolean' || val == null) {
|
|
20
|
-
return `${val}`;
|
|
21
|
-
}
|
|
22
|
-
if (type == 'string') {
|
|
23
|
-
return `"${val}"`;
|
|
24
|
-
}
|
|
25
|
-
if (type == 'symbol') {
|
|
26
|
-
const description = val.description;
|
|
27
|
-
if (description == null) {
|
|
28
|
-
return 'Symbol';
|
|
29
|
-
} else {
|
|
30
|
-
return `Symbol(${description})`;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
if (type == 'function') {
|
|
34
|
-
const name = val.name;
|
|
35
|
-
if (typeof name == 'string' && name.length > 0) {
|
|
36
|
-
return `Function(${name})`;
|
|
37
|
-
} else {
|
|
38
|
-
return 'Function';
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
// objects
|
|
42
|
-
if (Array.isArray(val)) {
|
|
43
|
-
const length = val.length;
|
|
44
|
-
let debug = '[';
|
|
45
|
-
if (length > 0) {
|
|
46
|
-
debug += debugString(val[0]);
|
|
47
|
-
}
|
|
48
|
-
for(let i = 1; i < length; i++) {
|
|
49
|
-
debug += ', ' + debugString(val[i]);
|
|
50
|
-
}
|
|
51
|
-
debug += ']';
|
|
52
|
-
return debug;
|
|
53
|
-
}
|
|
54
|
-
// Test for built-in
|
|
55
|
-
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
56
|
-
let className;
|
|
57
|
-
if (builtInMatches && builtInMatches.length > 1) {
|
|
58
|
-
className = builtInMatches[1];
|
|
59
|
-
} else {
|
|
60
|
-
// Failed to match the standard '[object ClassName]'
|
|
61
|
-
return toString.call(val);
|
|
62
|
-
}
|
|
63
|
-
if (className == 'Object') {
|
|
64
|
-
// we're a user defined class or Object
|
|
65
|
-
// JSON.stringify avoids problems with cycles, and is generally much
|
|
66
|
-
// easier than looping through ownProperties of `val`.
|
|
67
|
-
try {
|
|
68
|
-
return 'Object(' + JSON.stringify(val) + ')';
|
|
69
|
-
} catch (_) {
|
|
70
|
-
return 'Object';
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
// errors
|
|
74
|
-
if (val instanceof Error) {
|
|
75
|
-
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
76
|
-
}
|
|
77
|
-
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
78
|
-
return className;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
function getArrayU8FromWasm0(ptr, len) {
|
|
82
|
-
ptr = ptr >>> 0;
|
|
83
|
-
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
function getCachedStringFromWasm0(ptr, len) {
|
|
87
|
-
if (ptr === 0) {
|
|
88
|
-
return getFromExternrefTable0(len);
|
|
89
|
-
} else {
|
|
90
|
-
return getStringFromWasm0(ptr, len);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
let cachedDataViewMemory0 = null;
|
|
95
|
-
function getDataViewMemory0() {
|
|
96
|
-
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
97
|
-
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
98
|
-
}
|
|
99
|
-
return cachedDataViewMemory0;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
function getFromExternrefTable0(idx) { return wasm.__wbindgen_externrefs.get(idx); }
|
|
103
|
-
|
|
104
|
-
function getStringFromWasm0(ptr, len) {
|
|
105
|
-
ptr = ptr >>> 0;
|
|
106
|
-
return decodeText(ptr, len);
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
let cachedUint8ArrayMemory0 = null;
|
|
110
|
-
function getUint8ArrayMemory0() {
|
|
111
|
-
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
112
|
-
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
113
|
-
}
|
|
114
|
-
return cachedUint8ArrayMemory0;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
function handleError(f, args) {
|
|
118
|
-
try {
|
|
119
|
-
return f.apply(this, args);
|
|
120
|
-
} catch (e) {
|
|
121
|
-
const idx = addToExternrefTable0(e);
|
|
122
|
-
wasm.__wbindgen_exn_store(idx);
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
function isLikeNone(x) {
|
|
127
|
-
return x === undefined || x === null;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
131
|
-
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
132
|
-
const real = (...args) => {
|
|
133
|
-
|
|
134
|
-
// First up with a closure we increment the internal reference
|
|
135
|
-
// count. This ensures that the Rust closure environment won't
|
|
136
|
-
// be deallocated while we're invoking it.
|
|
137
|
-
state.cnt++;
|
|
138
|
-
const a = state.a;
|
|
139
|
-
state.a = 0;
|
|
140
|
-
try {
|
|
141
|
-
return f(a, state.b, ...args);
|
|
142
|
-
} finally {
|
|
143
|
-
state.a = a;
|
|
144
|
-
real._wbg_cb_unref();
|
|
145
|
-
}
|
|
146
|
-
};
|
|
147
|
-
real._wbg_cb_unref = () => {
|
|
148
|
-
if (--state.cnt === 0) {
|
|
149
|
-
state.dtor(state.a, state.b);
|
|
150
|
-
state.a = 0;
|
|
151
|
-
CLOSURE_DTORS.unregister(state);
|
|
152
|
-
}
|
|
153
|
-
};
|
|
154
|
-
CLOSURE_DTORS.register(real, state, state);
|
|
155
|
-
return real;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
function passArrayJsValueToWasm0(array, malloc) {
|
|
159
|
-
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
160
|
-
for (let i = 0; i < array.length; i++) {
|
|
161
|
-
const add = addToExternrefTable0(array[i]);
|
|
162
|
-
getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
|
|
163
|
-
}
|
|
164
|
-
WASM_VECTOR_LEN = array.length;
|
|
165
|
-
return ptr;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
function passStringToWasm0(arg, malloc, realloc) {
|
|
169
|
-
if (realloc === undefined) {
|
|
170
|
-
const buf = cachedTextEncoder.encode(arg);
|
|
171
|
-
const ptr = malloc(buf.length, 1) >>> 0;
|
|
172
|
-
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
173
|
-
WASM_VECTOR_LEN = buf.length;
|
|
174
|
-
return ptr;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
let len = arg.length;
|
|
178
|
-
let ptr = malloc(len, 1) >>> 0;
|
|
179
|
-
|
|
180
|
-
const mem = getUint8ArrayMemory0();
|
|
181
|
-
|
|
182
|
-
let offset = 0;
|
|
183
|
-
|
|
184
|
-
for (; offset < len; offset++) {
|
|
185
|
-
const code = arg.charCodeAt(offset);
|
|
186
|
-
if (code > 0x7F) break;
|
|
187
|
-
mem[ptr + offset] = code;
|
|
188
|
-
}
|
|
189
|
-
if (offset !== len) {
|
|
190
|
-
if (offset !== 0) {
|
|
191
|
-
arg = arg.slice(offset);
|
|
192
|
-
}
|
|
193
|
-
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
194
|
-
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
195
|
-
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
196
|
-
|
|
197
|
-
offset += ret.written;
|
|
198
|
-
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
WASM_VECTOR_LEN = offset;
|
|
202
|
-
return ptr;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
function takeFromExternrefTable0(idx) {
|
|
206
|
-
const value = wasm.__wbindgen_externrefs.get(idx);
|
|
207
|
-
wasm.__externref_table_dealloc(idx);
|
|
208
|
-
return value;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
212
|
-
cachedTextDecoder.decode();
|
|
213
|
-
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
214
|
-
let numBytesDecoded = 0;
|
|
215
|
-
function decodeText(ptr, len) {
|
|
216
|
-
numBytesDecoded += len;
|
|
217
|
-
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
218
|
-
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
219
|
-
cachedTextDecoder.decode();
|
|
220
|
-
numBytesDecoded = len;
|
|
221
|
-
}
|
|
222
|
-
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
const cachedTextEncoder = new TextEncoder();
|
|
226
|
-
|
|
227
|
-
if (!('encodeInto' in cachedTextEncoder)) {
|
|
228
|
-
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
229
|
-
const buf = cachedTextEncoder.encode(arg);
|
|
230
|
-
view.set(buf);
|
|
231
|
-
return {
|
|
232
|
-
read: arg.length,
|
|
233
|
-
written: buf.length
|
|
234
|
-
};
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
let WASM_VECTOR_LEN = 0;
|
|
239
|
-
|
|
240
|
-
function wasm_bindgen_4fcc1eb3154b8c24___convert__closures_____invoke___wasm_bindgen_4fcc1eb3154b8c24___JsValue_____(arg0, arg1, arg2) {
|
|
241
|
-
wasm.wasm_bindgen_4fcc1eb3154b8c24___convert__closures_____invoke___wasm_bindgen_4fcc1eb3154b8c24___JsValue_____(arg0, arg1, arg2);
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
function wasm_bindgen_4fcc1eb3154b8c24___convert__closures_____invoke___wasm_bindgen_4fcc1eb3154b8c24___JsValue__wasm_bindgen_4fcc1eb3154b8c24___JsValue_____(arg0, arg1, arg2, arg3) {
|
|
245
|
-
wasm.wasm_bindgen_4fcc1eb3154b8c24___convert__closures_____invoke___wasm_bindgen_4fcc1eb3154b8c24___JsValue__wasm_bindgen_4fcc1eb3154b8c24___JsValue_____(arg0, arg1, arg2, arg3);
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
const ModuleInfoFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
249
|
-
? { register: () => {}, unregister: () => {} }
|
|
250
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_moduleinfo_free(ptr >>> 0, 1));
|
|
251
|
-
|
|
252
1
|
/**
|
|
253
2
|
* Get information about the WASM module
|
|
254
3
|
*/
|
|
@@ -1305,229 +1054,187 @@ export function write_block_from_callback_wasm(param, buf, size) {
|
|
|
1305
1054
|
const ret = wasm.write_block_from_callback_wasm(param, buf, size);
|
|
1306
1055
|
return ret;
|
|
1307
1056
|
}
|
|
1308
|
-
|
|
1309
|
-
export function __wbg_Error_52673b7de5a0ca89(arg0, arg1) {
|
|
1057
|
+
export function __wbg_Error_8c4e43fe74559d73(arg0, arg1) {
|
|
1310
1058
|
var v0 = getCachedStringFromWasm0(arg0, arg1);
|
|
1311
1059
|
const ret = Error(v0);
|
|
1312
1060
|
return ret;
|
|
1313
|
-
}
|
|
1314
|
-
|
|
1315
|
-
export function __wbg_Number_2d1dcfcf4ec51736(arg0) {
|
|
1061
|
+
}
|
|
1062
|
+
export function __wbg_Number_04624de7d0e8332d(arg0) {
|
|
1316
1063
|
const ret = Number(arg0);
|
|
1317
1064
|
return ret;
|
|
1318
|
-
}
|
|
1319
|
-
|
|
1065
|
+
}
|
|
1320
1066
|
export function __wbg_String_8f0eb39a4a4c2f66(arg0, arg1) {
|
|
1321
1067
|
const ret = String(arg1);
|
|
1322
1068
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1323
1069
|
const len1 = WASM_VECTOR_LEN;
|
|
1324
1070
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1325
1071
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1326
|
-
}
|
|
1327
|
-
|
|
1328
|
-
export function __wbg___wbindgen_bigint_get_as_i64_6e32f5e6aff02e1d(arg0, arg1) {
|
|
1072
|
+
}
|
|
1073
|
+
export function __wbg___wbindgen_bigint_get_as_i64_8fcf4ce7f1ca72a2(arg0, arg1) {
|
|
1329
1074
|
const v = arg1;
|
|
1330
1075
|
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
1331
1076
|
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
1332
1077
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1333
|
-
}
|
|
1334
|
-
|
|
1335
|
-
export function __wbg___wbindgen_boolean_get_dea25b33882b895b(arg0) {
|
|
1078
|
+
}
|
|
1079
|
+
export function __wbg___wbindgen_boolean_get_bbbb1c18aa2f5e25(arg0) {
|
|
1336
1080
|
const v = arg0;
|
|
1337
1081
|
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
1338
1082
|
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
1339
|
-
}
|
|
1340
|
-
|
|
1341
|
-
export function __wbg___wbindgen_debug_string_adfb662ae34724b6(arg0, arg1) {
|
|
1083
|
+
}
|
|
1084
|
+
export function __wbg___wbindgen_debug_string_0bc8482c6e3508ae(arg0, arg1) {
|
|
1342
1085
|
const ret = debugString(arg1);
|
|
1343
1086
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1344
1087
|
const len1 = WASM_VECTOR_LEN;
|
|
1345
1088
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1346
1089
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1347
|
-
}
|
|
1348
|
-
|
|
1349
|
-
export function __wbg___wbindgen_in_0d3e1e8f0c669317(arg0, arg1) {
|
|
1090
|
+
}
|
|
1091
|
+
export function __wbg___wbindgen_in_47fa6863be6f2f25(arg0, arg1) {
|
|
1350
1092
|
const ret = arg0 in arg1;
|
|
1351
1093
|
return ret;
|
|
1352
|
-
}
|
|
1353
|
-
|
|
1354
|
-
export function __wbg___wbindgen_is_bigint_0e1a2e3f55cfae27(arg0) {
|
|
1094
|
+
}
|
|
1095
|
+
export function __wbg___wbindgen_is_bigint_31b12575b56f32fc(arg0) {
|
|
1355
1096
|
const ret = typeof(arg0) === 'bigint';
|
|
1356
1097
|
return ret;
|
|
1357
|
-
}
|
|
1358
|
-
|
|
1359
|
-
export function __wbg___wbindgen_is_function_8d400b8b1af978cd(arg0) {
|
|
1098
|
+
}
|
|
1099
|
+
export function __wbg___wbindgen_is_function_0095a73b8b156f76(arg0) {
|
|
1360
1100
|
const ret = typeof(arg0) === 'function';
|
|
1361
1101
|
return ret;
|
|
1362
|
-
}
|
|
1363
|
-
|
|
1364
|
-
export function __wbg___wbindgen_is_object_ce774f3490692386(arg0) {
|
|
1102
|
+
}
|
|
1103
|
+
export function __wbg___wbindgen_is_object_5ae8e5880f2c1fbd(arg0) {
|
|
1365
1104
|
const val = arg0;
|
|
1366
1105
|
const ret = typeof(val) === 'object' && val !== null;
|
|
1367
1106
|
return ret;
|
|
1368
|
-
}
|
|
1369
|
-
|
|
1370
|
-
export function __wbg___wbindgen_is_string_704ef9c8fc131030(arg0) {
|
|
1107
|
+
}
|
|
1108
|
+
export function __wbg___wbindgen_is_string_cd444516edc5b180(arg0) {
|
|
1371
1109
|
const ret = typeof(arg0) === 'string';
|
|
1372
1110
|
return ret;
|
|
1373
|
-
}
|
|
1374
|
-
|
|
1375
|
-
export function __wbg___wbindgen_is_undefined_f6b95eab589e0269(arg0) {
|
|
1111
|
+
}
|
|
1112
|
+
export function __wbg___wbindgen_is_undefined_9e4d92534c42d778(arg0) {
|
|
1376
1113
|
const ret = arg0 === undefined;
|
|
1377
1114
|
return ret;
|
|
1378
|
-
}
|
|
1379
|
-
|
|
1380
|
-
export function __wbg___wbindgen_jsval_eq_b6101cc9cef1fe36(arg0, arg1) {
|
|
1115
|
+
}
|
|
1116
|
+
export function __wbg___wbindgen_jsval_eq_11888390b0186270(arg0, arg1) {
|
|
1381
1117
|
const ret = arg0 === arg1;
|
|
1382
1118
|
return ret;
|
|
1383
|
-
}
|
|
1384
|
-
|
|
1385
|
-
export function __wbg___wbindgen_jsval_loose_eq_766057600fdd1b0d(arg0, arg1) {
|
|
1119
|
+
}
|
|
1120
|
+
export function __wbg___wbindgen_jsval_loose_eq_9dd77d8cd6671811(arg0, arg1) {
|
|
1386
1121
|
const ret = arg0 == arg1;
|
|
1387
1122
|
return ret;
|
|
1388
|
-
}
|
|
1389
|
-
|
|
1390
|
-
export function __wbg___wbindgen_number_get_9619185a74197f95(arg0, arg1) {
|
|
1123
|
+
}
|
|
1124
|
+
export function __wbg___wbindgen_number_get_8ff4255516ccad3e(arg0, arg1) {
|
|
1391
1125
|
const obj = arg1;
|
|
1392
1126
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
1393
1127
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
1394
1128
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1395
|
-
}
|
|
1396
|
-
|
|
1397
|
-
export function __wbg___wbindgen_string_get_a2a31e16edf96e42(arg0, arg1) {
|
|
1129
|
+
}
|
|
1130
|
+
export function __wbg___wbindgen_string_get_72fb696202c56729(arg0, arg1) {
|
|
1398
1131
|
const obj = arg1;
|
|
1399
1132
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
1400
1133
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1401
1134
|
var len1 = WASM_VECTOR_LEN;
|
|
1402
1135
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1403
1136
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1404
|
-
}
|
|
1405
|
-
|
|
1406
|
-
export function __wbg___wbindgen_throw_dd24417ed36fc46e(arg0, arg1) {
|
|
1137
|
+
}
|
|
1138
|
+
export function __wbg___wbindgen_throw_be289d5034ed271b(arg0, arg1) {
|
|
1407
1139
|
var v0 = getCachedStringFromWasm0(arg0, arg1);
|
|
1408
1140
|
throw new Error(v0);
|
|
1409
|
-
}
|
|
1410
|
-
|
|
1411
|
-
export function __wbg__wbg_cb_unref_87dfb5aaa0cbcea7(arg0) {
|
|
1141
|
+
}
|
|
1142
|
+
export function __wbg__wbg_cb_unref_d9b87ff7982e3b21(arg0) {
|
|
1412
1143
|
arg0._wbg_cb_unref();
|
|
1413
|
-
}
|
|
1414
|
-
|
|
1415
|
-
export function __wbg_addEventListener_6a82629b3d430a48() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1144
|
+
}
|
|
1145
|
+
export function __wbg_addEventListener_3acb0aad4483804c() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1416
1146
|
var v0 = getCachedStringFromWasm0(arg1, arg2);
|
|
1417
1147
|
arg0.addEventListener(v0, arg3);
|
|
1418
|
-
}, arguments) }
|
|
1419
|
-
|
|
1420
|
-
export function __wbg_apply_52e9ae668d017009() { return handleError(function (arg0, arg1, arg2) {
|
|
1148
|
+
}, arguments); }
|
|
1149
|
+
export function __wbg_apply_ada2ee1a60ac7b3c() { return handleError(function (arg0, arg1, arg2) {
|
|
1421
1150
|
const ret = arg0.apply(arg1, arg2);
|
|
1422
1151
|
return ret;
|
|
1423
|
-
}, arguments) }
|
|
1424
|
-
|
|
1425
|
-
export function __wbg_call_3020136f7a2d6e44() { return handleError(function (arg0, arg1, arg2) {
|
|
1426
|
-
const ret = arg0.call(arg1, arg2);
|
|
1427
|
-
return ret;
|
|
1428
|
-
}, arguments) };
|
|
1429
|
-
|
|
1430
|
-
export function __wbg_call_abb4ff46ce38be40() { return handleError(function (arg0, arg1) {
|
|
1152
|
+
}, arguments); }
|
|
1153
|
+
export function __wbg_call_389efe28435a9388() { return handleError(function (arg0, arg1) {
|
|
1431
1154
|
const ret = arg0.call(arg1);
|
|
1432
1155
|
return ret;
|
|
1433
|
-
}, arguments) }
|
|
1434
|
-
|
|
1435
|
-
|
|
1156
|
+
}, arguments); }
|
|
1157
|
+
export function __wbg_call_4708e0c13bdc8e95() { return handleError(function (arg0, arg1, arg2) {
|
|
1158
|
+
const ret = arg0.call(arg1, arg2);
|
|
1159
|
+
return ret;
|
|
1160
|
+
}, arguments); }
|
|
1161
|
+
export function __wbg_call_812d25f1510c13c8() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1436
1162
|
const ret = arg0.call(arg1, arg2, arg3);
|
|
1437
1163
|
return ret;
|
|
1438
|
-
}, arguments) }
|
|
1439
|
-
|
|
1440
|
-
export function __wbg_codePointAt_6fd4439a1e465afd(arg0, arg1) {
|
|
1164
|
+
}, arguments); }
|
|
1165
|
+
export function __wbg_codePointAt_bf59dbf74d8db275(arg0, arg1) {
|
|
1441
1166
|
const ret = arg0.codePointAt(arg1 >>> 0);
|
|
1442
1167
|
return ret;
|
|
1443
|
-
}
|
|
1444
|
-
|
|
1445
|
-
export function __wbg_construct_8d61a09a064d7a0e() { return handleError(function (arg0, arg1) {
|
|
1168
|
+
}
|
|
1169
|
+
export function __wbg_construct_86626e847de3b629() { return handleError(function (arg0, arg1) {
|
|
1446
1170
|
const ret = Reflect.construct(arg0, arg1);
|
|
1447
1171
|
return ret;
|
|
1448
|
-
}, arguments) }
|
|
1449
|
-
|
|
1450
|
-
export function __wbg_debug_9d0c87ddda3dc485(arg0) {
|
|
1172
|
+
}, arguments); }
|
|
1173
|
+
export function __wbg_debug_a4099fa12db6cd61(arg0) {
|
|
1451
1174
|
console.debug(arg0);
|
|
1452
|
-
}
|
|
1453
|
-
|
|
1454
|
-
export function __wbg_decode_47d91d32f8c229af() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1175
|
+
}
|
|
1176
|
+
export function __wbg_decode_9cea5b72e50871c4() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1455
1177
|
const ret = arg1.decode(getArrayU8FromWasm0(arg2, arg3));
|
|
1456
1178
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1457
1179
|
const len1 = WASM_VECTOR_LEN;
|
|
1458
1180
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1459
1181
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1460
|
-
}, arguments) }
|
|
1461
|
-
|
|
1462
|
-
export function __wbg_done_62ea16af4ce34b24(arg0) {
|
|
1182
|
+
}, arguments); }
|
|
1183
|
+
export function __wbg_done_57b39ecd9addfe81(arg0) {
|
|
1463
1184
|
const ret = arg0.done;
|
|
1464
1185
|
return ret;
|
|
1465
|
-
}
|
|
1466
|
-
|
|
1467
|
-
export function __wbg_entries_83c79938054e065f(arg0) {
|
|
1186
|
+
}
|
|
1187
|
+
export function __wbg_entries_58c7934c745daac7(arg0) {
|
|
1468
1188
|
const ret = Object.entries(arg0);
|
|
1469
1189
|
return ret;
|
|
1470
|
-
}
|
|
1471
|
-
|
|
1190
|
+
}
|
|
1472
1191
|
export function __wbg_error_7534b8e9a36f1ab4(arg0, arg1) {
|
|
1473
1192
|
var v0 = getCachedStringFromWasm0(arg0, arg1);
|
|
1474
1193
|
if (arg0 !== 0) { wasm.__wbindgen_free(arg0, arg1, 1); }
|
|
1475
1194
|
console.error(v0);
|
|
1476
|
-
}
|
|
1477
|
-
|
|
1478
|
-
export function __wbg_error_7bc7d576a6aaf855(arg0) {
|
|
1195
|
+
}
|
|
1196
|
+
export function __wbg_error_9a7fe3f932034cde(arg0) {
|
|
1479
1197
|
console.error(arg0);
|
|
1480
|
-
}
|
|
1481
|
-
|
|
1482
|
-
export function __wbg_fromCodePoint_50facac709b76f67() { return handleError(function (arg0) {
|
|
1198
|
+
}
|
|
1199
|
+
export function __wbg_fromCodePoint_22365db7b7d6ac39() { return handleError(function (arg0) {
|
|
1483
1200
|
const ret = String.fromCodePoint(arg0 >>> 0);
|
|
1484
1201
|
return ret;
|
|
1485
|
-
}, arguments) }
|
|
1486
|
-
|
|
1487
|
-
export function __wbg_from_29a8414a7a7cd19d(arg0) {
|
|
1202
|
+
}, arguments); }
|
|
1203
|
+
export function __wbg_from_bddd64e7d5ff6941(arg0) {
|
|
1488
1204
|
const ret = Array.from(arg0);
|
|
1489
1205
|
return ret;
|
|
1490
|
-
}
|
|
1491
|
-
|
|
1206
|
+
}
|
|
1492
1207
|
export function __wbg_getRandomValues_1c61fac11405ffdc() { return handleError(function (arg0, arg1) {
|
|
1493
1208
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
1494
|
-
}, arguments) }
|
|
1495
|
-
|
|
1496
|
-
export function __wbg_getTime_ad1e9878a735af08(arg0) {
|
|
1209
|
+
}, arguments); }
|
|
1210
|
+
export function __wbg_getTime_1e3cd1391c5c3995(arg0) {
|
|
1497
1211
|
const ret = arg0.getTime();
|
|
1498
1212
|
return ret;
|
|
1499
|
-
}
|
|
1500
|
-
|
|
1501
|
-
export function __wbg_get_16458e8ef25ea5fa() { return handleError(function (arg0, arg1) {
|
|
1213
|
+
}
|
|
1214
|
+
export function __wbg_get_7efbcc3819719b0f() { return handleError(function (arg0, arg1) {
|
|
1502
1215
|
const ret = arg0.get(arg1 >>> 0);
|
|
1503
1216
|
return ret;
|
|
1504
|
-
}, arguments) }
|
|
1505
|
-
|
|
1506
|
-
export function __wbg_get_6b7bd52aca3f9671(arg0, arg1) {
|
|
1217
|
+
}, arguments); }
|
|
1218
|
+
export function __wbg_get_9b94d73e6221f75c(arg0, arg1) {
|
|
1507
1219
|
const ret = arg0[arg1 >>> 0];
|
|
1508
1220
|
return ret;
|
|
1509
|
-
}
|
|
1510
|
-
|
|
1511
|
-
export function __wbg_get_af9dab7e9603ea93() { return handleError(function (arg0, arg1) {
|
|
1221
|
+
}
|
|
1222
|
+
export function __wbg_get_b3ed3ad4be2bc8ac() { return handleError(function (arg0, arg1) {
|
|
1512
1223
|
const ret = Reflect.get(arg0, arg1);
|
|
1513
1224
|
return ret;
|
|
1514
|
-
}, arguments) }
|
|
1515
|
-
|
|
1516
|
-
export function __wbg_get_index_4e7b3f629a0ab9cd(arg0, arg1) {
|
|
1225
|
+
}, arguments); }
|
|
1226
|
+
export function __wbg_get_index_9a5bfdd2ca49c65f(arg0, arg1) {
|
|
1517
1227
|
const ret = arg0[arg1 >>> 0];
|
|
1518
1228
|
return ret;
|
|
1519
|
-
}
|
|
1520
|
-
|
|
1229
|
+
}
|
|
1521
1230
|
export function __wbg_get_with_ref_key_1dc361bd10053bfe(arg0, arg1) {
|
|
1522
1231
|
const ret = arg0[arg1];
|
|
1523
1232
|
return ret;
|
|
1524
|
-
}
|
|
1525
|
-
|
|
1526
|
-
export function __wbg_info_ce6bcc489c22f6f0(arg0) {
|
|
1233
|
+
}
|
|
1234
|
+
export function __wbg_info_148d043840582012(arg0) {
|
|
1527
1235
|
console.info(arg0);
|
|
1528
|
-
}
|
|
1529
|
-
|
|
1530
|
-
export function __wbg_instanceof_ArrayBuffer_f3320d2419cd0355(arg0) {
|
|
1236
|
+
}
|
|
1237
|
+
export function __wbg_instanceof_ArrayBuffer_c367199e2fa2aa04(arg0) {
|
|
1531
1238
|
let result;
|
|
1532
1239
|
try {
|
|
1533
1240
|
result = arg0 instanceof ArrayBuffer;
|
|
@@ -1536,9 +1243,8 @@ export function __wbg_instanceof_ArrayBuffer_f3320d2419cd0355(arg0) {
|
|
|
1536
1243
|
}
|
|
1537
1244
|
const ret = result;
|
|
1538
1245
|
return ret;
|
|
1539
|
-
}
|
|
1540
|
-
|
|
1541
|
-
export function __wbg_instanceof_Map_084be8da74364158(arg0) {
|
|
1246
|
+
}
|
|
1247
|
+
export function __wbg_instanceof_Map_53af74335dec57f4(arg0) {
|
|
1542
1248
|
let result;
|
|
1543
1249
|
try {
|
|
1544
1250
|
result = arg0 instanceof Map;
|
|
@@ -1547,9 +1253,8 @@ export function __wbg_instanceof_Map_084be8da74364158(arg0) {
|
|
|
1547
1253
|
}
|
|
1548
1254
|
const ret = result;
|
|
1549
1255
|
return ret;
|
|
1550
|
-
}
|
|
1551
|
-
|
|
1552
|
-
export function __wbg_instanceof_Uint8Array_da54ccc9d3e09434(arg0) {
|
|
1256
|
+
}
|
|
1257
|
+
export function __wbg_instanceof_Uint8Array_9b9075935c74707c(arg0) {
|
|
1553
1258
|
let result;
|
|
1554
1259
|
try {
|
|
1555
1260
|
result = arg0 instanceof Uint8Array;
|
|
@@ -1558,95 +1263,66 @@ export function __wbg_instanceof_Uint8Array_da54ccc9d3e09434(arg0) {
|
|
|
1558
1263
|
}
|
|
1559
1264
|
const ret = result;
|
|
1560
1265
|
return ret;
|
|
1561
|
-
}
|
|
1562
|
-
|
|
1563
|
-
export function __wbg_isArray_51fd9e6422c0a395(arg0) {
|
|
1266
|
+
}
|
|
1267
|
+
export function __wbg_isArray_d314bb98fcf08331(arg0) {
|
|
1564
1268
|
const ret = Array.isArray(arg0);
|
|
1565
1269
|
return ret;
|
|
1566
|
-
}
|
|
1567
|
-
|
|
1568
|
-
export function __wbg_isSafeInteger_ae7d3f054d55fa16(arg0) {
|
|
1270
|
+
}
|
|
1271
|
+
export function __wbg_isSafeInteger_bfbc7332a9768d2a(arg0) {
|
|
1569
1272
|
const ret = Number.isSafeInteger(arg0);
|
|
1570
1273
|
return ret;
|
|
1571
|
-
}
|
|
1572
|
-
|
|
1573
|
-
export function __wbg_iterator_27b7c8b35ab3e86b() {
|
|
1274
|
+
}
|
|
1275
|
+
export function __wbg_iterator_6ff6560ca1568e55() {
|
|
1574
1276
|
const ret = Symbol.iterator;
|
|
1575
1277
|
return ret;
|
|
1576
|
-
}
|
|
1577
|
-
|
|
1578
|
-
export function __wbg_length_1f83b8e5895c84aa(arg0) {
|
|
1278
|
+
}
|
|
1279
|
+
export function __wbg_length_32ed9a279acd054c(arg0) {
|
|
1579
1280
|
const ret = arg0.length;
|
|
1580
1281
|
return ret;
|
|
1581
|
-
}
|
|
1582
|
-
|
|
1583
|
-
export function __wbg_length_22ac23eaec9d8053(arg0) {
|
|
1282
|
+
}
|
|
1283
|
+
export function __wbg_length_35a7bace40f36eac(arg0) {
|
|
1584
1284
|
const ret = arg0.length;
|
|
1585
1285
|
return ret;
|
|
1586
|
-
}
|
|
1587
|
-
|
|
1588
|
-
export function __wbg_length_3a9ca660d3d3391b(arg0) {
|
|
1286
|
+
}
|
|
1287
|
+
export function __wbg_length_68dc7c5cf1b6d349(arg0) {
|
|
1589
1288
|
const ret = arg0.length;
|
|
1590
1289
|
return ret;
|
|
1591
|
-
}
|
|
1592
|
-
|
|
1593
|
-
export function __wbg_length_bd124cfd1a9444fe(arg0) {
|
|
1290
|
+
}
|
|
1291
|
+
export function __wbg_length_aeb94ff17a8a8556(arg0) {
|
|
1594
1292
|
const ret = arg0.length;
|
|
1595
1293
|
return ret;
|
|
1596
|
-
}
|
|
1597
|
-
|
|
1598
|
-
export function __wbg_length_d45040a40c570362(arg0) {
|
|
1294
|
+
}
|
|
1295
|
+
export function __wbg_length_c8c85e3b2adbc8be(arg0) {
|
|
1599
1296
|
const ret = arg0.length;
|
|
1600
1297
|
return ret;
|
|
1601
|
-
}
|
|
1602
|
-
|
|
1603
|
-
export function __wbg_log_1d990106d99dacb7(arg0) {
|
|
1298
|
+
}
|
|
1299
|
+
export function __wbg_log_6b5ca2e6124b2808(arg0) {
|
|
1604
1300
|
console.log(arg0);
|
|
1605
|
-
}
|
|
1606
|
-
|
|
1607
|
-
export function __wbg_new_0_23cedd11d9b40c9d() {
|
|
1301
|
+
}
|
|
1302
|
+
export function __wbg_new_0_73afc35eb544e539() {
|
|
1608
1303
|
const ret = new Date();
|
|
1609
1304
|
return ret;
|
|
1610
|
-
}
|
|
1611
|
-
|
|
1612
|
-
export function __wbg_new_111dde64cffa8ba1() { return handleError(function () {
|
|
1613
|
-
const ret = new FileReader();
|
|
1614
|
-
return ret;
|
|
1615
|
-
}, arguments) };
|
|
1616
|
-
|
|
1617
|
-
export function __wbg_new_1ba21ce319a06297() {
|
|
1305
|
+
}
|
|
1306
|
+
export function __wbg_new_361308b2356cecd0() {
|
|
1618
1307
|
const ret = new Object();
|
|
1619
1308
|
return ret;
|
|
1620
|
-
}
|
|
1621
|
-
|
|
1622
|
-
export function __wbg_new_25f239778d6112b9() {
|
|
1309
|
+
}
|
|
1310
|
+
export function __wbg_new_3eb36ae241fe6f44() {
|
|
1623
1311
|
const ret = new Array();
|
|
1624
1312
|
return ret;
|
|
1625
|
-
}
|
|
1626
|
-
|
|
1627
|
-
export function __wbg_new_6421f6084cc5bc5a(arg0) {
|
|
1628
|
-
const ret = new Uint8Array(arg0);
|
|
1629
|
-
return ret;
|
|
1630
|
-
};
|
|
1631
|
-
|
|
1313
|
+
}
|
|
1632
1314
|
export function __wbg_new_8a6f238a6ece86ea() {
|
|
1633
1315
|
const ret = new Error();
|
|
1634
1316
|
return ret;
|
|
1635
|
-
}
|
|
1636
|
-
|
|
1637
|
-
export function __wbg_new_b546ae120718850e() {
|
|
1638
|
-
const ret = new Map();
|
|
1639
|
-
return ret;
|
|
1640
|
-
};
|
|
1641
|
-
|
|
1642
|
-
export function __wbg_new_ff12d2b041fb48f1(arg0, arg1) {
|
|
1317
|
+
}
|
|
1318
|
+
export function __wbg_new_b5d9e2fb389fef91(arg0, arg1) {
|
|
1643
1319
|
try {
|
|
1644
1320
|
var state0 = {a: arg0, b: arg1};
|
|
1645
1321
|
var cb0 = (arg0, arg1) => {
|
|
1646
1322
|
const a = state0.a;
|
|
1647
1323
|
state0.a = 0;
|
|
1648
1324
|
try {
|
|
1649
|
-
return
|
|
1325
|
+
return wasm_bindgen_d5f0760cbbd6023b___convert__closures_____invoke___wasm_bindgen_d5f0760cbbd6023b___JsValue__wasm_bindgen_d5f0760cbbd6023b___JsValue_____(a, state0.b, arg0, arg1);
|
|
1650
1326
|
} finally {
|
|
1651
1327
|
state0.a = a;
|
|
1652
1328
|
}
|
|
@@ -1656,220 +1332,190 @@ export function __wbg_new_ff12d2b041fb48f1(arg0, arg1) {
|
|
|
1656
1332
|
} finally {
|
|
1657
1333
|
state0.a = state0.b = 0;
|
|
1658
1334
|
}
|
|
1659
|
-
}
|
|
1660
|
-
|
|
1661
|
-
|
|
1335
|
+
}
|
|
1336
|
+
export function __wbg_new_c1eaab32d813ec69() { return handleError(function () {
|
|
1337
|
+
const ret = new FileReader();
|
|
1338
|
+
return ret;
|
|
1339
|
+
}, arguments); }
|
|
1340
|
+
export function __wbg_new_dca287b076112a51() {
|
|
1341
|
+
const ret = new Map();
|
|
1342
|
+
return ret;
|
|
1343
|
+
}
|
|
1344
|
+
export function __wbg_new_dd2b680c8bf6ae29(arg0) {
|
|
1345
|
+
const ret = new Uint8Array(arg0);
|
|
1346
|
+
return ret;
|
|
1347
|
+
}
|
|
1348
|
+
export function __wbg_new_no_args_1c7c842f08d00ebb(arg0, arg1) {
|
|
1662
1349
|
var v0 = getCachedStringFromWasm0(arg0, arg1);
|
|
1663
1350
|
const ret = new Function(v0);
|
|
1664
1351
|
return ret;
|
|
1665
|
-
}
|
|
1666
|
-
|
|
1667
|
-
export function __wbg_new_with_label_a21974f868c72f0c() { return handleError(function (arg0, arg1) {
|
|
1352
|
+
}
|
|
1353
|
+
export function __wbg_new_with_label_868725b8d51e8ff3() { return handleError(function (arg0, arg1) {
|
|
1668
1354
|
var v0 = getCachedStringFromWasm0(arg0, arg1);
|
|
1669
1355
|
const ret = new TextDecoder(v0);
|
|
1670
1356
|
return ret;
|
|
1671
|
-
}, arguments) }
|
|
1672
|
-
|
|
1673
|
-
export function __wbg_new_with_length_12c6de4fac33117a(arg0) {
|
|
1357
|
+
}, arguments); }
|
|
1358
|
+
export function __wbg_new_with_length_1763c527b2923202(arg0) {
|
|
1674
1359
|
const ret = new Array(arg0 >>> 0);
|
|
1675
1360
|
return ret;
|
|
1676
|
-
}
|
|
1677
|
-
|
|
1678
|
-
|
|
1361
|
+
}
|
|
1362
|
+
export function __wbg_next_3482f54c49e8af19() { return handleError(function (arg0) {
|
|
1363
|
+
const ret = arg0.next();
|
|
1364
|
+
return ret;
|
|
1365
|
+
}, arguments); }
|
|
1366
|
+
export function __wbg_next_418f80d8f5303233(arg0) {
|
|
1679
1367
|
const ret = arg0.next;
|
|
1680
1368
|
return ret;
|
|
1681
|
-
}
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
const ret = arg0.next();
|
|
1369
|
+
}
|
|
1370
|
+
export function __wbg_of_0774a9663fb93da1(arg0, arg1, arg2, arg3) {
|
|
1371
|
+
const ret = Array.of(arg0, arg1, arg2, arg3);
|
|
1685
1372
|
return ret;
|
|
1686
|
-
}
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
const ret = Array.of(arg0, arg1, arg2, arg3, arg4);
|
|
1373
|
+
}
|
|
1374
|
+
export function __wbg_of_9ab14f9d4bfb5040(arg0, arg1) {
|
|
1375
|
+
const ret = Array.of(arg0, arg1);
|
|
1690
1376
|
return ret;
|
|
1691
|
-
}
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
const ret = Array.of(arg0);
|
|
1377
|
+
}
|
|
1378
|
+
export function __wbg_of_ab479ddbf595c4a7(arg0, arg1, arg2, arg3, arg4) {
|
|
1379
|
+
const ret = Array.of(arg0, arg1, arg2, arg3, arg4);
|
|
1695
1380
|
return ret;
|
|
1696
|
-
}
|
|
1697
|
-
|
|
1698
|
-
export function __wbg_of_7779827fa663eec8(arg0, arg1, arg2) {
|
|
1381
|
+
}
|
|
1382
|
+
export function __wbg_of_ddc0942b0dce16a1(arg0, arg1, arg2) {
|
|
1699
1383
|
const ret = Array.of(arg0, arg1, arg2);
|
|
1700
1384
|
return ret;
|
|
1701
|
-
}
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
const ret = Array.of(arg0, arg1);
|
|
1705
|
-
return ret;
|
|
1706
|
-
};
|
|
1707
|
-
|
|
1708
|
-
export function __wbg_of_fdf875aa87d9498c(arg0, arg1, arg2, arg3) {
|
|
1709
|
-
const ret = Array.of(arg0, arg1, arg2, arg3);
|
|
1385
|
+
}
|
|
1386
|
+
export function __wbg_of_f915f7cd925b21a5(arg0) {
|
|
1387
|
+
const ret = Array.of(arg0);
|
|
1710
1388
|
return ret;
|
|
1711
|
-
}
|
|
1712
|
-
|
|
1713
|
-
export function __wbg_prototypesetcall_dfe9b766cdc1f1fd(arg0, arg1, arg2) {
|
|
1389
|
+
}
|
|
1390
|
+
export function __wbg_prototypesetcall_bdcdcc5842e4d77d(arg0, arg1, arg2) {
|
|
1714
1391
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
1715
|
-
}
|
|
1716
|
-
|
|
1717
|
-
export function __wbg_push_7d9be8f38fc13975(arg0, arg1) {
|
|
1392
|
+
}
|
|
1393
|
+
export function __wbg_push_8ffdcb2063340ba5(arg0, arg1) {
|
|
1718
1394
|
const ret = arg0.push(arg1);
|
|
1719
1395
|
return ret;
|
|
1720
|
-
}
|
|
1721
|
-
|
|
1722
|
-
export function __wbg_queueMicrotask_9b549dfce8865860(arg0) {
|
|
1396
|
+
}
|
|
1397
|
+
export function __wbg_queueMicrotask_0aa0a927f78f5d98(arg0) {
|
|
1723
1398
|
const ret = arg0.queueMicrotask;
|
|
1724
1399
|
return ret;
|
|
1725
|
-
}
|
|
1726
|
-
|
|
1727
|
-
export function __wbg_queueMicrotask_fca69f5bfad613a5(arg0) {
|
|
1400
|
+
}
|
|
1401
|
+
export function __wbg_queueMicrotask_5bb536982f78a56f(arg0) {
|
|
1728
1402
|
queueMicrotask(arg0);
|
|
1729
|
-
}
|
|
1730
|
-
|
|
1731
|
-
export function __wbg_readAsArrayBuffer_0aca937439be3197() { return handleError(function (arg0, arg1) {
|
|
1403
|
+
}
|
|
1404
|
+
export function __wbg_readAsArrayBuffer_7dda4bab363b1552() { return handleError(function (arg0, arg1) {
|
|
1732
1405
|
arg0.readAsArrayBuffer(arg1);
|
|
1733
|
-
}, arguments) }
|
|
1734
|
-
|
|
1735
|
-
export function __wbg_reject_e9f21cdd3c968ce3(arg0) {
|
|
1406
|
+
}, arguments); }
|
|
1407
|
+
export function __wbg_reject_a2176de7f1212be5(arg0) {
|
|
1736
1408
|
const ret = Promise.reject(arg0);
|
|
1737
1409
|
return ret;
|
|
1738
|
-
}
|
|
1739
|
-
|
|
1740
|
-
export function __wbg_resolve_fd5bfbaa4ce36e1e(arg0) {
|
|
1410
|
+
}
|
|
1411
|
+
export function __wbg_resolve_002c4b7d9d8f6b64(arg0) {
|
|
1741
1412
|
const ret = Promise.resolve(arg0);
|
|
1742
1413
|
return ret;
|
|
1743
|
-
}
|
|
1744
|
-
|
|
1745
|
-
export function __wbg_result_893437a1eaacc4df() { return handleError(function (arg0) {
|
|
1414
|
+
}
|
|
1415
|
+
export function __wbg_result_a9f41cf43ff6e60f() { return handleError(function (arg0) {
|
|
1746
1416
|
const ret = arg0.result;
|
|
1747
1417
|
return ret;
|
|
1748
|
-
}, arguments) }
|
|
1749
|
-
|
|
1750
|
-
export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
|
|
1751
|
-
arg0[arg1] = arg2;
|
|
1752
|
-
};
|
|
1753
|
-
|
|
1754
|
-
export function __wbg_set_7df433eea03a5c14(arg0, arg1, arg2) {
|
|
1755
|
-
arg0[arg1 >>> 0] = arg2;
|
|
1756
|
-
};
|
|
1757
|
-
|
|
1758
|
-
export function __wbg_set_bc3a432bdcd60886(arg0, arg1, arg2) {
|
|
1759
|
-
arg0.set(arg1, arg2 >>> 0);
|
|
1760
|
-
};
|
|
1761
|
-
|
|
1762
|
-
export function __wbg_set_c50d03a32da17043() { return handleError(function (arg0, arg1, arg2) {
|
|
1418
|
+
}, arguments); }
|
|
1419
|
+
export function __wbg_set_0af2522656c2a71b() { return handleError(function (arg0, arg1, arg2) {
|
|
1763
1420
|
arg0.set(arg1 >>> 0, arg2);
|
|
1764
|
-
}, arguments) }
|
|
1765
|
-
|
|
1766
|
-
export function __wbg_set_efaaf145b9377369(arg0, arg1, arg2) {
|
|
1421
|
+
}, arguments); }
|
|
1422
|
+
export function __wbg_set_1eb0999cf5d27fc8(arg0, arg1, arg2) {
|
|
1767
1423
|
const ret = arg0.set(arg1, arg2);
|
|
1768
1424
|
return ret;
|
|
1769
|
-
}
|
|
1770
|
-
|
|
1771
|
-
|
|
1425
|
+
}
|
|
1426
|
+
export function __wbg_set_25cf9deff6bf0ea8(arg0, arg1, arg2) {
|
|
1427
|
+
arg0.set(arg1, arg2 >>> 0);
|
|
1428
|
+
}
|
|
1429
|
+
export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
|
|
1430
|
+
arg0[arg1] = arg2;
|
|
1431
|
+
}
|
|
1432
|
+
export function __wbg_set_f43e577aea94465b(arg0, arg1, arg2) {
|
|
1433
|
+
arg0[arg1 >>> 0] = arg2;
|
|
1434
|
+
}
|
|
1435
|
+
export function __wbg_slice_8bbd46adb2100583(arg0, arg1, arg2) {
|
|
1772
1436
|
const ret = arg0.slice(arg1 >>> 0, arg2 >>> 0);
|
|
1773
1437
|
return ret;
|
|
1774
|
-
}
|
|
1775
|
-
|
|
1438
|
+
}
|
|
1776
1439
|
export function __wbg_stack_0ed75d68575b0f3c(arg0, arg1) {
|
|
1777
1440
|
const ret = arg1.stack;
|
|
1778
1441
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1779
1442
|
const len1 = WASM_VECTOR_LEN;
|
|
1780
1443
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1781
1444
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1782
|
-
}
|
|
1783
|
-
|
|
1784
|
-
export function __wbg_static_accessor_GLOBAL_769e6b65d6557335() {
|
|
1445
|
+
}
|
|
1446
|
+
export function __wbg_static_accessor_GLOBAL_12837167ad935116() {
|
|
1785
1447
|
const ret = typeof global === 'undefined' ? null : global;
|
|
1786
1448
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1787
|
-
}
|
|
1788
|
-
|
|
1789
|
-
export function __wbg_static_accessor_GLOBAL_THIS_60cf02db4de8e1c1() {
|
|
1449
|
+
}
|
|
1450
|
+
export function __wbg_static_accessor_GLOBAL_THIS_e628e89ab3b1c95f() {
|
|
1790
1451
|
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
1791
1452
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1792
|
-
}
|
|
1793
|
-
|
|
1794
|
-
export function __wbg_static_accessor_SELF_08f5a74c69739274() {
|
|
1453
|
+
}
|
|
1454
|
+
export function __wbg_static_accessor_SELF_a621d3dfbb60d0ce() {
|
|
1795
1455
|
const ret = typeof self === 'undefined' ? null : self;
|
|
1796
1456
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1797
|
-
}
|
|
1798
|
-
|
|
1799
|
-
export function __wbg_static_accessor_WINDOW_a8924b26aa92d024() {
|
|
1457
|
+
}
|
|
1458
|
+
export function __wbg_static_accessor_WINDOW_f8727f0cf888e0bd() {
|
|
1800
1459
|
const ret = typeof window === 'undefined' ? null : window;
|
|
1801
1460
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1802
|
-
}
|
|
1803
|
-
|
|
1804
|
-
export function __wbg_subarray_845f2f5bce7d061a(arg0, arg1, arg2) {
|
|
1461
|
+
}
|
|
1462
|
+
export function __wbg_subarray_a96e1fef17ed23cb(arg0, arg1, arg2) {
|
|
1805
1463
|
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
1806
1464
|
return ret;
|
|
1807
|
-
}
|
|
1808
|
-
|
|
1809
|
-
export function __wbg_then_429f7caf1026411d(arg0, arg1, arg2) {
|
|
1465
|
+
}
|
|
1466
|
+
export function __wbg_then_0d9fe2c7b1857d32(arg0, arg1, arg2) {
|
|
1810
1467
|
const ret = arg0.then(arg1, arg2);
|
|
1811
1468
|
return ret;
|
|
1812
|
-
}
|
|
1813
|
-
|
|
1814
|
-
export function __wbg_then_4f95312d68691235(arg0, arg1) {
|
|
1469
|
+
}
|
|
1470
|
+
export function __wbg_then_b9e7b3b5f1a9e1b5(arg0, arg1) {
|
|
1815
1471
|
const ret = arg0.then(arg1);
|
|
1816
1472
|
return ret;
|
|
1817
|
-
}
|
|
1818
|
-
|
|
1819
|
-
export function __wbg_type_cb833fc71b5282fb(arg0, arg1) {
|
|
1473
|
+
}
|
|
1474
|
+
export function __wbg_type_e8c7fade6d73451b(arg0, arg1) {
|
|
1820
1475
|
const ret = arg1.type;
|
|
1821
1476
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1822
1477
|
const len1 = WASM_VECTOR_LEN;
|
|
1823
1478
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1824
1479
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1825
|
-
}
|
|
1826
|
-
|
|
1827
|
-
export function __wbg_value_57b7b035e117f7ee(arg0) {
|
|
1480
|
+
}
|
|
1481
|
+
export function __wbg_value_0546255b415e96c1(arg0) {
|
|
1828
1482
|
const ret = arg0.value;
|
|
1829
1483
|
return ret;
|
|
1830
|
-
}
|
|
1831
|
-
|
|
1832
|
-
export function __wbg_warn_6e567d0d926ff881(arg0) {
|
|
1484
|
+
}
|
|
1485
|
+
export function __wbg_warn_f7ae1b2e66ccb930(arg0) {
|
|
1833
1486
|
console.warn(arg0);
|
|
1834
|
-
}
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
const ret = BigInt.asUintN(64, arg0);
|
|
1487
|
+
}
|
|
1488
|
+
export function __wbindgen_cast_0000000000000001(arg0, arg1) {
|
|
1489
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 1981, function: Function { arguments: [Externref], shim_idx: 1982, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1490
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_d5f0760cbbd6023b___closure__destroy___dyn_core_67558b4ca73dc0a8___ops__function__FnMut__wasm_bindgen_d5f0760cbbd6023b___JsValue____Output_______, wasm_bindgen_d5f0760cbbd6023b___convert__closures_____invoke___wasm_bindgen_d5f0760cbbd6023b___JsValue_____);
|
|
1839
1491
|
return ret;
|
|
1840
|
-
}
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
// Cast intrinsic for `Ref(CachedString) -> Externref`.
|
|
1845
|
-
const ret = v0;
|
|
1492
|
+
}
|
|
1493
|
+
export function __wbindgen_cast_0000000000000002(arg0) {
|
|
1494
|
+
// Cast intrinsic for `F64 -> Externref`.
|
|
1495
|
+
const ret = arg0;
|
|
1846
1496
|
return ret;
|
|
1847
|
-
}
|
|
1848
|
-
|
|
1849
|
-
export function __wbindgen_cast_9ae0607507abb057(arg0) {
|
|
1497
|
+
}
|
|
1498
|
+
export function __wbindgen_cast_0000000000000003(arg0) {
|
|
1850
1499
|
// Cast intrinsic for `I64 -> Externref`.
|
|
1851
1500
|
const ret = arg0;
|
|
1852
1501
|
return ret;
|
|
1853
|
-
}
|
|
1854
|
-
|
|
1855
|
-
|
|
1502
|
+
}
|
|
1503
|
+
export function __wbindgen_cast_0000000000000004(arg0, arg1) {
|
|
1504
|
+
var v0 = getCachedStringFromWasm0(arg0, arg1);
|
|
1505
|
+
// Cast intrinsic for `Ref(CachedString) -> Externref`.
|
|
1506
|
+
const ret = v0;
|
|
1507
|
+
return ret;
|
|
1508
|
+
}
|
|
1509
|
+
export function __wbindgen_cast_0000000000000005(arg0, arg1) {
|
|
1856
1510
|
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
1857
1511
|
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
1858
1512
|
return ret;
|
|
1859
|
-
}
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
const ret = arg0;
|
|
1864
|
-
return ret;
|
|
1865
|
-
};
|
|
1866
|
-
|
|
1867
|
-
export function __wbindgen_cast_f624fc0274c44f54(arg0, arg1) {
|
|
1868
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 1981, function: Function { arguments: [Externref], shim_idx: 1982, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1869
|
-
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_4fcc1eb3154b8c24___closure__destroy___dyn_core_67558b4ca73dc0a8___ops__function__FnMut__wasm_bindgen_4fcc1eb3154b8c24___JsValue____Output_______, wasm_bindgen_4fcc1eb3154b8c24___convert__closures_____invoke___wasm_bindgen_4fcc1eb3154b8c24___JsValue_____);
|
|
1513
|
+
}
|
|
1514
|
+
export function __wbindgen_cast_0000000000000006(arg0) {
|
|
1515
|
+
// Cast intrinsic for `U64 -> Externref`.
|
|
1516
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
1870
1517
|
return ret;
|
|
1871
|
-
}
|
|
1872
|
-
|
|
1518
|
+
}
|
|
1873
1519
|
export function __wbindgen_init_externref_table() {
|
|
1874
1520
|
const table = wasm.__wbindgen_externrefs;
|
|
1875
1521
|
const offset = table.grow(4);
|
|
@@ -1878,9 +1524,259 @@ export function __wbindgen_init_externref_table() {
|
|
|
1878
1524
|
table.set(offset + 1, null);
|
|
1879
1525
|
table.set(offset + 2, true);
|
|
1880
1526
|
table.set(offset + 3, false);
|
|
1881
|
-
}
|
|
1882
|
-
|
|
1527
|
+
}
|
|
1883
1528
|
export function __wbindgen_object_is_undefined(arg0) {
|
|
1884
1529
|
const ret = arg0 === undefined;
|
|
1885
1530
|
return ret;
|
|
1886
|
-
}
|
|
1531
|
+
}
|
|
1532
|
+
function wasm_bindgen_d5f0760cbbd6023b___convert__closures_____invoke___wasm_bindgen_d5f0760cbbd6023b___JsValue_____(arg0, arg1, arg2) {
|
|
1533
|
+
wasm.wasm_bindgen_d5f0760cbbd6023b___convert__closures_____invoke___wasm_bindgen_d5f0760cbbd6023b___JsValue_____(arg0, arg1, arg2);
|
|
1534
|
+
}
|
|
1535
|
+
|
|
1536
|
+
function wasm_bindgen_d5f0760cbbd6023b___convert__closures_____invoke___wasm_bindgen_d5f0760cbbd6023b___JsValue__wasm_bindgen_d5f0760cbbd6023b___JsValue_____(arg0, arg1, arg2, arg3) {
|
|
1537
|
+
wasm.wasm_bindgen_d5f0760cbbd6023b___convert__closures_____invoke___wasm_bindgen_d5f0760cbbd6023b___JsValue__wasm_bindgen_d5f0760cbbd6023b___JsValue_____(arg0, arg1, arg2, arg3);
|
|
1538
|
+
}
|
|
1539
|
+
|
|
1540
|
+
const ModuleInfoFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1541
|
+
? { register: () => {}, unregister: () => {} }
|
|
1542
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_moduleinfo_free(ptr >>> 0, 1));
|
|
1543
|
+
|
|
1544
|
+
function addToExternrefTable0(obj) {
|
|
1545
|
+
const idx = wasm.__externref_table_alloc();
|
|
1546
|
+
wasm.__wbindgen_externrefs.set(idx, obj);
|
|
1547
|
+
return idx;
|
|
1548
|
+
}
|
|
1549
|
+
|
|
1550
|
+
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
1551
|
+
? { register: () => {}, unregister: () => {} }
|
|
1552
|
+
: new FinalizationRegistry(state => state.dtor(state.a, state.b));
|
|
1553
|
+
|
|
1554
|
+
function debugString(val) {
|
|
1555
|
+
// primitive types
|
|
1556
|
+
const type = typeof val;
|
|
1557
|
+
if (type == 'number' || type == 'boolean' || val == null) {
|
|
1558
|
+
return `${val}`;
|
|
1559
|
+
}
|
|
1560
|
+
if (type == 'string') {
|
|
1561
|
+
return `"${val}"`;
|
|
1562
|
+
}
|
|
1563
|
+
if (type == 'symbol') {
|
|
1564
|
+
const description = val.description;
|
|
1565
|
+
if (description == null) {
|
|
1566
|
+
return 'Symbol';
|
|
1567
|
+
} else {
|
|
1568
|
+
return `Symbol(${description})`;
|
|
1569
|
+
}
|
|
1570
|
+
}
|
|
1571
|
+
if (type == 'function') {
|
|
1572
|
+
const name = val.name;
|
|
1573
|
+
if (typeof name == 'string' && name.length > 0) {
|
|
1574
|
+
return `Function(${name})`;
|
|
1575
|
+
} else {
|
|
1576
|
+
return 'Function';
|
|
1577
|
+
}
|
|
1578
|
+
}
|
|
1579
|
+
// objects
|
|
1580
|
+
if (Array.isArray(val)) {
|
|
1581
|
+
const length = val.length;
|
|
1582
|
+
let debug = '[';
|
|
1583
|
+
if (length > 0) {
|
|
1584
|
+
debug += debugString(val[0]);
|
|
1585
|
+
}
|
|
1586
|
+
for(let i = 1; i < length; i++) {
|
|
1587
|
+
debug += ', ' + debugString(val[i]);
|
|
1588
|
+
}
|
|
1589
|
+
debug += ']';
|
|
1590
|
+
return debug;
|
|
1591
|
+
}
|
|
1592
|
+
// Test for built-in
|
|
1593
|
+
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
1594
|
+
let className;
|
|
1595
|
+
if (builtInMatches && builtInMatches.length > 1) {
|
|
1596
|
+
className = builtInMatches[1];
|
|
1597
|
+
} else {
|
|
1598
|
+
// Failed to match the standard '[object ClassName]'
|
|
1599
|
+
return toString.call(val);
|
|
1600
|
+
}
|
|
1601
|
+
if (className == 'Object') {
|
|
1602
|
+
// we're a user defined class or Object
|
|
1603
|
+
// JSON.stringify avoids problems with cycles, and is generally much
|
|
1604
|
+
// easier than looping through ownProperties of `val`.
|
|
1605
|
+
try {
|
|
1606
|
+
return 'Object(' + JSON.stringify(val) + ')';
|
|
1607
|
+
} catch (_) {
|
|
1608
|
+
return 'Object';
|
|
1609
|
+
}
|
|
1610
|
+
}
|
|
1611
|
+
// errors
|
|
1612
|
+
if (val instanceof Error) {
|
|
1613
|
+
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
1614
|
+
}
|
|
1615
|
+
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
1616
|
+
return className;
|
|
1617
|
+
}
|
|
1618
|
+
|
|
1619
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
1620
|
+
ptr = ptr >>> 0;
|
|
1621
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
1622
|
+
}
|
|
1623
|
+
|
|
1624
|
+
function getCachedStringFromWasm0(ptr, len) {
|
|
1625
|
+
if (ptr === 0) {
|
|
1626
|
+
return getFromExternrefTable0(len);
|
|
1627
|
+
} else {
|
|
1628
|
+
return getStringFromWasm0(ptr, len);
|
|
1629
|
+
}
|
|
1630
|
+
}
|
|
1631
|
+
|
|
1632
|
+
let cachedDataViewMemory0 = null;
|
|
1633
|
+
function getDataViewMemory0() {
|
|
1634
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
1635
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
1636
|
+
}
|
|
1637
|
+
return cachedDataViewMemory0;
|
|
1638
|
+
}
|
|
1639
|
+
|
|
1640
|
+
function getFromExternrefTable0(idx) { return wasm.__wbindgen_externrefs.get(idx); }
|
|
1641
|
+
|
|
1642
|
+
function getStringFromWasm0(ptr, len) {
|
|
1643
|
+
ptr = ptr >>> 0;
|
|
1644
|
+
return decodeText(ptr, len);
|
|
1645
|
+
}
|
|
1646
|
+
|
|
1647
|
+
let cachedUint8ArrayMemory0 = null;
|
|
1648
|
+
function getUint8ArrayMemory0() {
|
|
1649
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
1650
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
1651
|
+
}
|
|
1652
|
+
return cachedUint8ArrayMemory0;
|
|
1653
|
+
}
|
|
1654
|
+
|
|
1655
|
+
function handleError(f, args) {
|
|
1656
|
+
try {
|
|
1657
|
+
return f.apply(this, args);
|
|
1658
|
+
} catch (e) {
|
|
1659
|
+
const idx = addToExternrefTable0(e);
|
|
1660
|
+
wasm.__wbindgen_exn_store(idx);
|
|
1661
|
+
}
|
|
1662
|
+
}
|
|
1663
|
+
|
|
1664
|
+
function isLikeNone(x) {
|
|
1665
|
+
return x === undefined || x === null;
|
|
1666
|
+
}
|
|
1667
|
+
|
|
1668
|
+
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
1669
|
+
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
1670
|
+
const real = (...args) => {
|
|
1671
|
+
|
|
1672
|
+
// First up with a closure we increment the internal reference
|
|
1673
|
+
// count. This ensures that the Rust closure environment won't
|
|
1674
|
+
// be deallocated while we're invoking it.
|
|
1675
|
+
state.cnt++;
|
|
1676
|
+
const a = state.a;
|
|
1677
|
+
state.a = 0;
|
|
1678
|
+
try {
|
|
1679
|
+
return f(a, state.b, ...args);
|
|
1680
|
+
} finally {
|
|
1681
|
+
state.a = a;
|
|
1682
|
+
real._wbg_cb_unref();
|
|
1683
|
+
}
|
|
1684
|
+
};
|
|
1685
|
+
real._wbg_cb_unref = () => {
|
|
1686
|
+
if (--state.cnt === 0) {
|
|
1687
|
+
state.dtor(state.a, state.b);
|
|
1688
|
+
state.a = 0;
|
|
1689
|
+
CLOSURE_DTORS.unregister(state);
|
|
1690
|
+
}
|
|
1691
|
+
};
|
|
1692
|
+
CLOSURE_DTORS.register(real, state, state);
|
|
1693
|
+
return real;
|
|
1694
|
+
}
|
|
1695
|
+
|
|
1696
|
+
function passArrayJsValueToWasm0(array, malloc) {
|
|
1697
|
+
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
1698
|
+
for (let i = 0; i < array.length; i++) {
|
|
1699
|
+
const add = addToExternrefTable0(array[i]);
|
|
1700
|
+
getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
|
|
1701
|
+
}
|
|
1702
|
+
WASM_VECTOR_LEN = array.length;
|
|
1703
|
+
return ptr;
|
|
1704
|
+
}
|
|
1705
|
+
|
|
1706
|
+
function passStringToWasm0(arg, malloc, realloc) {
|
|
1707
|
+
if (realloc === undefined) {
|
|
1708
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
1709
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
1710
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
1711
|
+
WASM_VECTOR_LEN = buf.length;
|
|
1712
|
+
return ptr;
|
|
1713
|
+
}
|
|
1714
|
+
|
|
1715
|
+
let len = arg.length;
|
|
1716
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
1717
|
+
|
|
1718
|
+
const mem = getUint8ArrayMemory0();
|
|
1719
|
+
|
|
1720
|
+
let offset = 0;
|
|
1721
|
+
|
|
1722
|
+
for (; offset < len; offset++) {
|
|
1723
|
+
const code = arg.charCodeAt(offset);
|
|
1724
|
+
if (code > 0x7F) break;
|
|
1725
|
+
mem[ptr + offset] = code;
|
|
1726
|
+
}
|
|
1727
|
+
if (offset !== len) {
|
|
1728
|
+
if (offset !== 0) {
|
|
1729
|
+
arg = arg.slice(offset);
|
|
1730
|
+
}
|
|
1731
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
1732
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
1733
|
+
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
1734
|
+
|
|
1735
|
+
offset += ret.written;
|
|
1736
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
1737
|
+
}
|
|
1738
|
+
|
|
1739
|
+
WASM_VECTOR_LEN = offset;
|
|
1740
|
+
return ptr;
|
|
1741
|
+
}
|
|
1742
|
+
|
|
1743
|
+
function takeFromExternrefTable0(idx) {
|
|
1744
|
+
const value = wasm.__wbindgen_externrefs.get(idx);
|
|
1745
|
+
wasm.__externref_table_dealloc(idx);
|
|
1746
|
+
return value;
|
|
1747
|
+
}
|
|
1748
|
+
|
|
1749
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
1750
|
+
cachedTextDecoder.decode();
|
|
1751
|
+
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
1752
|
+
let numBytesDecoded = 0;
|
|
1753
|
+
function decodeText(ptr, len) {
|
|
1754
|
+
numBytesDecoded += len;
|
|
1755
|
+
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
1756
|
+
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
1757
|
+
cachedTextDecoder.decode();
|
|
1758
|
+
numBytesDecoded = len;
|
|
1759
|
+
}
|
|
1760
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
1761
|
+
}
|
|
1762
|
+
|
|
1763
|
+
const cachedTextEncoder = new TextEncoder();
|
|
1764
|
+
|
|
1765
|
+
if (!('encodeInto' in cachedTextEncoder)) {
|
|
1766
|
+
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
1767
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
1768
|
+
view.set(buf);
|
|
1769
|
+
return {
|
|
1770
|
+
read: arg.length,
|
|
1771
|
+
written: buf.length
|
|
1772
|
+
};
|
|
1773
|
+
};
|
|
1774
|
+
}
|
|
1775
|
+
|
|
1776
|
+
let WASM_VECTOR_LEN = 0;
|
|
1777
|
+
|
|
1778
|
+
|
|
1779
|
+
let wasm;
|
|
1780
|
+
export function __wbg_set_wasm(val) {
|
|
1781
|
+
wasm = val;
|
|
1782
|
+
}
|