@applemusic-like-lyrics/lyric 0.2.4 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -22
- package/package.json +7 -2
- package/pkg/amll_lyric.d.ts +61 -58
- package/pkg/amll_lyric.js +4 -2
- package/pkg/amll_lyric_bg.js +457 -553
- package/pkg/amll_lyric_bg.wasm +0 -0
- package/pkg/amll_lyric_bg.wasm.d.ts +22 -21
- package/pkg/lyric.d.ts +0 -138
- package/pkg/lyric.js +0 -4
- package/pkg/lyric_bg.js +0 -746
- package/pkg/lyric_bg.wasm +0 -0
- package/pkg/lyric_bg.wasm.d.ts +0 -21
package/pkg/amll_lyric_bg.js
CHANGED
|
@@ -1,127 +1,411 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @param {string} hex_data
|
|
3
|
+
* @returns {string}
|
|
4
|
+
*/
|
|
5
|
+
export function decryptQrcHex(hex_data) {
|
|
6
|
+
let deferred2_0;
|
|
7
|
+
let deferred2_1;
|
|
8
|
+
try {
|
|
9
|
+
const ptr0 = passStringToWasm0(hex_data, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
10
|
+
const len0 = WASM_VECTOR_LEN;
|
|
11
|
+
const ret = wasm.decryptQrcHex(ptr0, len0);
|
|
12
|
+
deferred2_0 = ret[0];
|
|
13
|
+
deferred2_1 = ret[1];
|
|
14
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
15
|
+
} finally {
|
|
16
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
17
|
+
}
|
|
4
18
|
}
|
|
5
19
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
function dropObject(idx) {
|
|
16
|
-
if (idx < 132) return;
|
|
17
|
-
heap[idx] = heap_next;
|
|
18
|
-
heap_next = idx;
|
|
20
|
+
/**
|
|
21
|
+
* @param {string} src
|
|
22
|
+
* @returns {any}
|
|
23
|
+
*/
|
|
24
|
+
export function parseEslrc(src) {
|
|
25
|
+
const ptr0 = passStringToWasm0(src, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
26
|
+
const len0 = WASM_VECTOR_LEN;
|
|
27
|
+
const ret = wasm.parseEslrc(ptr0, len0);
|
|
28
|
+
return ret;
|
|
19
29
|
}
|
|
20
30
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
31
|
+
/**
|
|
32
|
+
* @param {string} src
|
|
33
|
+
* @returns {any}
|
|
34
|
+
*/
|
|
35
|
+
export function parseLrc(src) {
|
|
36
|
+
const ptr0 = passStringToWasm0(src, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
37
|
+
const len0 = WASM_VECTOR_LEN;
|
|
38
|
+
const ret = wasm.parseLrc(ptr0, len0);
|
|
24
39
|
return ret;
|
|
25
40
|
}
|
|
26
41
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
42
|
+
/**
|
|
43
|
+
* @param {string} src
|
|
44
|
+
* @returns {any}
|
|
45
|
+
*/
|
|
46
|
+
export function parseLys(src) {
|
|
47
|
+
const ptr0 = passStringToWasm0(src, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
48
|
+
const len0 = WASM_VECTOR_LEN;
|
|
49
|
+
const ret = wasm.parseLys(ptr0, len0);
|
|
50
|
+
return ret;
|
|
34
51
|
}
|
|
35
52
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
53
|
+
/**
|
|
54
|
+
* @param {string} src
|
|
55
|
+
* @returns {any}
|
|
56
|
+
*/
|
|
57
|
+
export function parseQrc(src) {
|
|
58
|
+
const ptr0 = passStringToWasm0(src, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
59
|
+
const len0 = WASM_VECTOR_LEN;
|
|
60
|
+
const ret = wasm.parseQrc(ptr0, len0);
|
|
61
|
+
return ret;
|
|
62
|
+
}
|
|
39
63
|
|
|
40
|
-
|
|
64
|
+
/**
|
|
65
|
+
* @param {string} src
|
|
66
|
+
* @returns {any}
|
|
67
|
+
*/
|
|
68
|
+
export function parseTTML(src) {
|
|
69
|
+
const ptr0 = passStringToWasm0(src, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
70
|
+
const len0 = WASM_VECTOR_LEN;
|
|
71
|
+
const ret = wasm.parseTTML(ptr0, len0);
|
|
72
|
+
return ret;
|
|
73
|
+
}
|
|
41
74
|
|
|
42
|
-
|
|
75
|
+
/**
|
|
76
|
+
* @param {string} src
|
|
77
|
+
* @returns {any}
|
|
78
|
+
*/
|
|
79
|
+
export function parseYrc(src) {
|
|
80
|
+
const ptr0 = passStringToWasm0(src, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
81
|
+
const len0 = WASM_VECTOR_LEN;
|
|
82
|
+
const ret = wasm.parseYrc(ptr0, len0);
|
|
83
|
+
return ret;
|
|
84
|
+
}
|
|
43
85
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
86
|
+
/**
|
|
87
|
+
* @param {any} lrc
|
|
88
|
+
* @returns {string}
|
|
89
|
+
*/
|
|
90
|
+
export function stringifyAss(lrc) {
|
|
91
|
+
let deferred1_0;
|
|
92
|
+
let deferred1_1;
|
|
93
|
+
try {
|
|
94
|
+
const ret = wasm.stringifyAss(lrc);
|
|
95
|
+
deferred1_0 = ret[0];
|
|
96
|
+
deferred1_1 = ret[1];
|
|
97
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
98
|
+
} finally {
|
|
99
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
47
100
|
}
|
|
48
|
-
return cachedUint8ArrayMemory0;
|
|
49
101
|
}
|
|
50
102
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
103
|
+
/**
|
|
104
|
+
* @param {any} lrc
|
|
105
|
+
* @returns {string}
|
|
106
|
+
*/
|
|
107
|
+
export function stringifyEslrc(lrc) {
|
|
108
|
+
let deferred1_0;
|
|
109
|
+
let deferred1_1;
|
|
110
|
+
try {
|
|
111
|
+
const ret = wasm.stringifyEslrc(lrc);
|
|
112
|
+
deferred1_0 = ret[0];
|
|
113
|
+
deferred1_1 = ret[1];
|
|
114
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
115
|
+
} finally {
|
|
116
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
117
|
+
}
|
|
54
118
|
}
|
|
55
119
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
120
|
+
/**
|
|
121
|
+
* @param {any} lrc
|
|
122
|
+
* @returns {string}
|
|
123
|
+
*/
|
|
124
|
+
export function stringifyLrc(lrc) {
|
|
125
|
+
let deferred1_0;
|
|
126
|
+
let deferred1_1;
|
|
127
|
+
try {
|
|
128
|
+
const ret = wasm.stringifyLrc(lrc);
|
|
129
|
+
deferred1_0 = ret[0];
|
|
130
|
+
deferred1_1 = ret[1];
|
|
131
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
132
|
+
} finally {
|
|
133
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
134
|
+
}
|
|
65
135
|
}
|
|
66
|
-
: function (arg, view) {
|
|
67
|
-
const buf = cachedTextEncoder.encode(arg);
|
|
68
|
-
view.set(buf);
|
|
69
|
-
return {
|
|
70
|
-
read: arg.length,
|
|
71
|
-
written: buf.length
|
|
72
|
-
};
|
|
73
|
-
});
|
|
74
136
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
137
|
+
/**
|
|
138
|
+
* @param {any} lrc
|
|
139
|
+
* @returns {string}
|
|
140
|
+
*/
|
|
141
|
+
export function stringifyLys(lrc) {
|
|
142
|
+
let deferred1_0;
|
|
143
|
+
let deferred1_1;
|
|
144
|
+
try {
|
|
145
|
+
const ret = wasm.stringifyLys(lrc);
|
|
146
|
+
deferred1_0 = ret[0];
|
|
147
|
+
deferred1_1 = ret[1];
|
|
148
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
149
|
+
} finally {
|
|
150
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
83
151
|
}
|
|
152
|
+
}
|
|
84
153
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
let
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
const
|
|
94
|
-
|
|
95
|
-
|
|
154
|
+
/**
|
|
155
|
+
* @param {any} lrc
|
|
156
|
+
* @returns {string}
|
|
157
|
+
*/
|
|
158
|
+
export function stringifyQrc(lrc) {
|
|
159
|
+
let deferred1_0;
|
|
160
|
+
let deferred1_1;
|
|
161
|
+
try {
|
|
162
|
+
const ret = wasm.stringifyQrc(lrc);
|
|
163
|
+
deferred1_0 = ret[0];
|
|
164
|
+
deferred1_1 = ret[1];
|
|
165
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
166
|
+
} finally {
|
|
167
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
96
168
|
}
|
|
169
|
+
}
|
|
97
170
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
171
|
+
/**
|
|
172
|
+
* @param {any} lrc
|
|
173
|
+
* @returns {string}
|
|
174
|
+
*/
|
|
175
|
+
export function stringifyTTML(lrc) {
|
|
176
|
+
let deferred1_0;
|
|
177
|
+
let deferred1_1;
|
|
178
|
+
try {
|
|
179
|
+
const ret = wasm.stringifyTTML(lrc);
|
|
180
|
+
deferred1_0 = ret[0];
|
|
181
|
+
deferred1_1 = ret[1];
|
|
182
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
183
|
+
} finally {
|
|
184
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
108
185
|
}
|
|
109
|
-
|
|
110
|
-
WASM_VECTOR_LEN = offset;
|
|
111
|
-
return ptr;
|
|
112
186
|
}
|
|
113
187
|
|
|
114
|
-
|
|
115
|
-
|
|
188
|
+
/**
|
|
189
|
+
* @param {any} lrc
|
|
190
|
+
* @returns {string}
|
|
191
|
+
*/
|
|
192
|
+
export function stringifyYrc(lrc) {
|
|
193
|
+
let deferred1_0;
|
|
194
|
+
let deferred1_1;
|
|
195
|
+
try {
|
|
196
|
+
const ret = wasm.stringifyYrc(lrc);
|
|
197
|
+
deferred1_0 = ret[0];
|
|
198
|
+
deferred1_1 = ret[1];
|
|
199
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
200
|
+
} finally {
|
|
201
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
202
|
+
}
|
|
116
203
|
}
|
|
117
204
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
function
|
|
121
|
-
|
|
122
|
-
|
|
205
|
+
/**
|
|
206
|
+
* When the `console_error_panic_hook` feature is enabled, we can call the
|
|
207
|
+
* `set_panic_hook` function at least once during initialization, and then
|
|
208
|
+
* we will get better error messages if our code ever panics.
|
|
209
|
+
*
|
|
210
|
+
* For more details see
|
|
211
|
+
* https://github.com/rustwasm/console_error_panic_hook#readme
|
|
212
|
+
*/
|
|
213
|
+
export function wasm_start() {
|
|
214
|
+
wasm.wasm_start();
|
|
215
|
+
}
|
|
216
|
+
export function __wbg_Error_2e59b1b37a9a34c3(arg0, arg1) {
|
|
217
|
+
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
218
|
+
return ret;
|
|
219
|
+
}
|
|
220
|
+
export function __wbg_Number_e6ffdb596c888833(arg0) {
|
|
221
|
+
const ret = Number(arg0);
|
|
222
|
+
return ret;
|
|
223
|
+
}
|
|
224
|
+
export function __wbg___wbindgen_bigint_get_as_i64_2c5082002e4826e2(arg0, arg1) {
|
|
225
|
+
const v = arg1;
|
|
226
|
+
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
227
|
+
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
228
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
229
|
+
}
|
|
230
|
+
export function __wbg___wbindgen_boolean_get_a86c216575a75c30(arg0) {
|
|
231
|
+
const v = arg0;
|
|
232
|
+
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
233
|
+
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
234
|
+
}
|
|
235
|
+
export function __wbg___wbindgen_debug_string_dd5d2d07ce9e6c57(arg0, arg1) {
|
|
236
|
+
const ret = debugString(arg1);
|
|
237
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
238
|
+
const len1 = WASM_VECTOR_LEN;
|
|
239
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
240
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
241
|
+
}
|
|
242
|
+
export function __wbg___wbindgen_in_4bd7a57e54337366(arg0, arg1) {
|
|
243
|
+
const ret = arg0 in arg1;
|
|
244
|
+
return ret;
|
|
245
|
+
}
|
|
246
|
+
export function __wbg___wbindgen_is_bigint_6c98f7e945dacdde(arg0) {
|
|
247
|
+
const ret = typeof(arg0) === 'bigint';
|
|
248
|
+
return ret;
|
|
249
|
+
}
|
|
250
|
+
export function __wbg___wbindgen_is_function_49868bde5eb1e745(arg0) {
|
|
251
|
+
const ret = typeof(arg0) === 'function';
|
|
252
|
+
return ret;
|
|
253
|
+
}
|
|
254
|
+
export function __wbg___wbindgen_is_object_40c5a80572e8f9d3(arg0) {
|
|
255
|
+
const val = arg0;
|
|
256
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
257
|
+
return ret;
|
|
258
|
+
}
|
|
259
|
+
export function __wbg___wbindgen_is_undefined_c0cca72b82b86f4d(arg0) {
|
|
260
|
+
const ret = arg0 === undefined;
|
|
261
|
+
return ret;
|
|
262
|
+
}
|
|
263
|
+
export function __wbg___wbindgen_jsval_eq_7d430e744a913d26(arg0, arg1) {
|
|
264
|
+
const ret = arg0 === arg1;
|
|
265
|
+
return ret;
|
|
266
|
+
}
|
|
267
|
+
export function __wbg___wbindgen_jsval_loose_eq_3a72ae764d46d944(arg0, arg1) {
|
|
268
|
+
const ret = arg0 == arg1;
|
|
269
|
+
return ret;
|
|
270
|
+
}
|
|
271
|
+
export function __wbg___wbindgen_number_get_7579aab02a8a620c(arg0, arg1) {
|
|
272
|
+
const obj = arg1;
|
|
273
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
274
|
+
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
275
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
276
|
+
}
|
|
277
|
+
export function __wbg___wbindgen_string_get_914df97fcfa788f2(arg0, arg1) {
|
|
278
|
+
const obj = arg1;
|
|
279
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
280
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
281
|
+
var len1 = WASM_VECTOR_LEN;
|
|
282
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
283
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
284
|
+
}
|
|
285
|
+
export function __wbg___wbindgen_throw_81fc77679af83bc6(arg0, arg1) {
|
|
286
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
287
|
+
}
|
|
288
|
+
export function __wbg_call_7f2987183bb62793() { return handleError(function (arg0, arg1) {
|
|
289
|
+
const ret = arg0.call(arg1);
|
|
290
|
+
return ret;
|
|
291
|
+
}, arguments); }
|
|
292
|
+
export function __wbg_done_547d467e97529006(arg0) {
|
|
293
|
+
const ret = arg0.done;
|
|
294
|
+
return ret;
|
|
295
|
+
}
|
|
296
|
+
export function __wbg_get_ed0642c4b9d31ddf() { return handleError(function (arg0, arg1) {
|
|
297
|
+
const ret = Reflect.get(arg0, arg1);
|
|
298
|
+
return ret;
|
|
299
|
+
}, arguments); }
|
|
300
|
+
export function __wbg_get_unchecked_7d7babe32e9e6a54(arg0, arg1) {
|
|
301
|
+
const ret = arg0[arg1 >>> 0];
|
|
302
|
+
return ret;
|
|
303
|
+
}
|
|
304
|
+
export function __wbg_get_with_ref_key_6412cf3094599694(arg0, arg1) {
|
|
305
|
+
const ret = arg0[arg1];
|
|
306
|
+
return ret;
|
|
307
|
+
}
|
|
308
|
+
export function __wbg_instanceof_ArrayBuffer_ff7c1337a5e3b33a(arg0) {
|
|
309
|
+
let result;
|
|
310
|
+
try {
|
|
311
|
+
result = arg0 instanceof ArrayBuffer;
|
|
312
|
+
} catch (_) {
|
|
313
|
+
result = false;
|
|
123
314
|
}
|
|
124
|
-
|
|
315
|
+
const ret = result;
|
|
316
|
+
return ret;
|
|
317
|
+
}
|
|
318
|
+
export function __wbg_instanceof_Uint8Array_4b8da683deb25d72(arg0) {
|
|
319
|
+
let result;
|
|
320
|
+
try {
|
|
321
|
+
result = arg0 instanceof Uint8Array;
|
|
322
|
+
} catch (_) {
|
|
323
|
+
result = false;
|
|
324
|
+
}
|
|
325
|
+
const ret = result;
|
|
326
|
+
return ret;
|
|
327
|
+
}
|
|
328
|
+
export function __wbg_isArray_db61795ad004c139(arg0) {
|
|
329
|
+
const ret = Array.isArray(arg0);
|
|
330
|
+
return ret;
|
|
331
|
+
}
|
|
332
|
+
export function __wbg_isSafeInteger_ea83862ba994770c(arg0) {
|
|
333
|
+
const ret = Number.isSafeInteger(arg0);
|
|
334
|
+
return ret;
|
|
335
|
+
}
|
|
336
|
+
export function __wbg_iterator_de403ef31815a3e6() {
|
|
337
|
+
const ret = Symbol.iterator;
|
|
338
|
+
return ret;
|
|
339
|
+
}
|
|
340
|
+
export function __wbg_length_0c32cb8543c8e4c8(arg0) {
|
|
341
|
+
const ret = arg0.length;
|
|
342
|
+
return ret;
|
|
343
|
+
}
|
|
344
|
+
export function __wbg_length_6e821edde497a532(arg0) {
|
|
345
|
+
const ret = arg0.length;
|
|
346
|
+
return ret;
|
|
347
|
+
}
|
|
348
|
+
export function __wbg_new_4f9fafbb3909af72() {
|
|
349
|
+
const ret = new Object();
|
|
350
|
+
return ret;
|
|
351
|
+
}
|
|
352
|
+
export function __wbg_new_a560378ea1240b14(arg0) {
|
|
353
|
+
const ret = new Uint8Array(arg0);
|
|
354
|
+
return ret;
|
|
355
|
+
}
|
|
356
|
+
export function __wbg_new_f3c9df4f38f3f798() {
|
|
357
|
+
const ret = new Array();
|
|
358
|
+
return ret;
|
|
359
|
+
}
|
|
360
|
+
export function __wbg_next_01132ed6134b8ef5(arg0) {
|
|
361
|
+
const ret = arg0.next;
|
|
362
|
+
return ret;
|
|
363
|
+
}
|
|
364
|
+
export function __wbg_next_b3713ec761a9dbfd() { return handleError(function (arg0) {
|
|
365
|
+
const ret = arg0.next();
|
|
366
|
+
return ret;
|
|
367
|
+
}, arguments); }
|
|
368
|
+
export function __wbg_prototypesetcall_3e05eb9545565046(arg0, arg1, arg2) {
|
|
369
|
+
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
370
|
+
}
|
|
371
|
+
export function __wbg_set_6be42768c690e380(arg0, arg1, arg2) {
|
|
372
|
+
arg0[arg1] = arg2;
|
|
373
|
+
}
|
|
374
|
+
export function __wbg_set_6c60b2e8ad0e9383(arg0, arg1, arg2) {
|
|
375
|
+
arg0[arg1 >>> 0] = arg2;
|
|
376
|
+
}
|
|
377
|
+
export function __wbg_value_7f6052747ccf940f(arg0) {
|
|
378
|
+
const ret = arg0.value;
|
|
379
|
+
return ret;
|
|
380
|
+
}
|
|
381
|
+
export function __wbindgen_cast_0000000000000001(arg0) {
|
|
382
|
+
// Cast intrinsic for `F64 -> Externref`.
|
|
383
|
+
const ret = arg0;
|
|
384
|
+
return ret;
|
|
385
|
+
}
|
|
386
|
+
export function __wbindgen_cast_0000000000000002(arg0, arg1) {
|
|
387
|
+
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
388
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
389
|
+
return ret;
|
|
390
|
+
}
|
|
391
|
+
export function __wbindgen_cast_0000000000000003(arg0) {
|
|
392
|
+
// Cast intrinsic for `U64 -> Externref`.
|
|
393
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
394
|
+
return ret;
|
|
395
|
+
}
|
|
396
|
+
export function __wbindgen_init_externref_table() {
|
|
397
|
+
const table = wasm.__wbindgen_externrefs;
|
|
398
|
+
const offset = table.grow(4);
|
|
399
|
+
table.set(0, undefined);
|
|
400
|
+
table.set(offset + 0, undefined);
|
|
401
|
+
table.set(offset + 1, null);
|
|
402
|
+
table.set(offset + 2, true);
|
|
403
|
+
table.set(offset + 3, false);
|
|
404
|
+
}
|
|
405
|
+
function addToExternrefTable0(obj) {
|
|
406
|
+
const idx = wasm.__externref_table_alloc();
|
|
407
|
+
wasm.__wbindgen_externrefs.set(idx, obj);
|
|
408
|
+
return idx;
|
|
125
409
|
}
|
|
126
410
|
|
|
127
411
|
function debugString(val) {
|
|
@@ -165,7 +449,7 @@ function debugString(val) {
|
|
|
165
449
|
// Test for built-in
|
|
166
450
|
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
167
451
|
let className;
|
|
168
|
-
if (builtInMatches.length > 1) {
|
|
452
|
+
if (builtInMatches && builtInMatches.length > 1) {
|
|
169
453
|
className = builtInMatches[1];
|
|
170
454
|
} else {
|
|
171
455
|
// Failed to match the standard '[object ClassName]'
|
|
@@ -188,494 +472,114 @@ function debugString(val) {
|
|
|
188
472
|
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
189
473
|
return className;
|
|
190
474
|
}
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
export function stringifyAss(lrc) {
|
|
196
|
-
let deferred1_0;
|
|
197
|
-
let deferred1_1;
|
|
198
|
-
try {
|
|
199
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
200
|
-
wasm.stringifyAss(retptr, addHeapObject(lrc));
|
|
201
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
202
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
203
|
-
deferred1_0 = r0;
|
|
204
|
-
deferred1_1 = r1;
|
|
205
|
-
return getStringFromWasm0(r0, r1);
|
|
206
|
-
} finally {
|
|
207
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
208
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
209
|
-
}
|
|
475
|
+
|
|
476
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
477
|
+
ptr = ptr >>> 0;
|
|
478
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
210
479
|
}
|
|
211
480
|
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
export function decryptQrcHex(hex_data) {
|
|
217
|
-
let deferred2_0;
|
|
218
|
-
let deferred2_1;
|
|
219
|
-
try {
|
|
220
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
221
|
-
const ptr0 = passStringToWasm0(hex_data, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
222
|
-
const len0 = WASM_VECTOR_LEN;
|
|
223
|
-
wasm.decryptQrcHex(retptr, ptr0, len0);
|
|
224
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
225
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
226
|
-
deferred2_0 = r0;
|
|
227
|
-
deferred2_1 = r1;
|
|
228
|
-
return getStringFromWasm0(r0, r1);
|
|
229
|
-
} finally {
|
|
230
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
231
|
-
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
481
|
+
let cachedDataViewMemory0 = null;
|
|
482
|
+
function getDataViewMemory0() {
|
|
483
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
484
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
232
485
|
}
|
|
486
|
+
return cachedDataViewMemory0;
|
|
233
487
|
}
|
|
234
488
|
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
*/
|
|
239
|
-
export function parseEslrc(src) {
|
|
240
|
-
const ptr0 = passStringToWasm0(src, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
241
|
-
const len0 = WASM_VECTOR_LEN;
|
|
242
|
-
const ret = wasm.parseEslrc(ptr0, len0);
|
|
243
|
-
return takeObject(ret);
|
|
489
|
+
function getStringFromWasm0(ptr, len) {
|
|
490
|
+
ptr = ptr >>> 0;
|
|
491
|
+
return decodeText(ptr, len);
|
|
244
492
|
}
|
|
245
493
|
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
export function stringifyEslrc(lrc) {
|
|
251
|
-
let deferred1_0;
|
|
252
|
-
let deferred1_1;
|
|
253
|
-
try {
|
|
254
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
255
|
-
wasm.stringifyEslrc(retptr, addHeapObject(lrc));
|
|
256
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
257
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
258
|
-
deferred1_0 = r0;
|
|
259
|
-
deferred1_1 = r1;
|
|
260
|
-
return getStringFromWasm0(r0, r1);
|
|
261
|
-
} finally {
|
|
262
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
263
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
494
|
+
let cachedUint8ArrayMemory0 = null;
|
|
495
|
+
function getUint8ArrayMemory0() {
|
|
496
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
497
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
264
498
|
}
|
|
499
|
+
return cachedUint8ArrayMemory0;
|
|
265
500
|
}
|
|
266
501
|
|
|
267
|
-
|
|
268
|
-
* @param {string} src
|
|
269
|
-
* @returns {any}
|
|
270
|
-
*/
|
|
271
|
-
export function parseLrc(src) {
|
|
272
|
-
const ptr0 = passStringToWasm0(src, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
273
|
-
const len0 = WASM_VECTOR_LEN;
|
|
274
|
-
const ret = wasm.parseLrc(ptr0, len0);
|
|
275
|
-
return takeObject(ret);
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
/**
|
|
279
|
-
* @param {any} lrc
|
|
280
|
-
* @returns {string}
|
|
281
|
-
*/
|
|
282
|
-
export function stringifyLrc(lrc) {
|
|
283
|
-
let deferred1_0;
|
|
284
|
-
let deferred1_1;
|
|
502
|
+
function handleError(f, args) {
|
|
285
503
|
try {
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
deferred1_0 = r0;
|
|
291
|
-
deferred1_1 = r1;
|
|
292
|
-
return getStringFromWasm0(r0, r1);
|
|
293
|
-
} finally {
|
|
294
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
295
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
504
|
+
return f.apply(this, args);
|
|
505
|
+
} catch (e) {
|
|
506
|
+
const idx = addToExternrefTable0(e);
|
|
507
|
+
wasm.__wbindgen_exn_store(idx);
|
|
296
508
|
}
|
|
297
509
|
}
|
|
298
510
|
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
* @returns {any}
|
|
302
|
-
*/
|
|
303
|
-
export function parseLys(src) {
|
|
304
|
-
const ptr0 = passStringToWasm0(src, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
305
|
-
const len0 = WASM_VECTOR_LEN;
|
|
306
|
-
const ret = wasm.parseLys(ptr0, len0);
|
|
307
|
-
return takeObject(ret);
|
|
511
|
+
function isLikeNone(x) {
|
|
512
|
+
return x === undefined || x === null;
|
|
308
513
|
}
|
|
309
514
|
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
try {
|
|
318
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
319
|
-
wasm.stringifyLys(retptr, addHeapObject(lrc));
|
|
320
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
321
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
322
|
-
deferred1_0 = r0;
|
|
323
|
-
deferred1_1 = r1;
|
|
324
|
-
return getStringFromWasm0(r0, r1);
|
|
325
|
-
} finally {
|
|
326
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
327
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
515
|
+
function passStringToWasm0(arg, malloc, realloc) {
|
|
516
|
+
if (realloc === undefined) {
|
|
517
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
518
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
519
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
520
|
+
WASM_VECTOR_LEN = buf.length;
|
|
521
|
+
return ptr;
|
|
328
522
|
}
|
|
329
|
-
}
|
|
330
523
|
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
* @returns {any}
|
|
334
|
-
*/
|
|
335
|
-
export function parseQrc(src) {
|
|
336
|
-
const ptr0 = passStringToWasm0(src, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
337
|
-
const len0 = WASM_VECTOR_LEN;
|
|
338
|
-
const ret = wasm.parseQrc(ptr0, len0);
|
|
339
|
-
return takeObject(ret);
|
|
340
|
-
}
|
|
524
|
+
let len = arg.length;
|
|
525
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
341
526
|
|
|
342
|
-
|
|
343
|
-
* @param {any} lrc
|
|
344
|
-
* @returns {string}
|
|
345
|
-
*/
|
|
346
|
-
export function stringifyQrc(lrc) {
|
|
347
|
-
let deferred1_0;
|
|
348
|
-
let deferred1_1;
|
|
349
|
-
try {
|
|
350
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
351
|
-
wasm.stringifyQrc(retptr, addHeapObject(lrc));
|
|
352
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
353
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
354
|
-
deferred1_0 = r0;
|
|
355
|
-
deferred1_1 = r1;
|
|
356
|
-
return getStringFromWasm0(r0, r1);
|
|
357
|
-
} finally {
|
|
358
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
359
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
360
|
-
}
|
|
361
|
-
}
|
|
527
|
+
const mem = getUint8ArrayMemory0();
|
|
362
528
|
|
|
363
|
-
|
|
364
|
-
* @param {string} src
|
|
365
|
-
* @returns {any}
|
|
366
|
-
*/
|
|
367
|
-
export function parseTTML(src) {
|
|
368
|
-
const ptr0 = passStringToWasm0(src, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
369
|
-
const len0 = WASM_VECTOR_LEN;
|
|
370
|
-
const ret = wasm.parseTTML(ptr0, len0);
|
|
371
|
-
return takeObject(ret);
|
|
372
|
-
}
|
|
529
|
+
let offset = 0;
|
|
373
530
|
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
export function stringifyTTML(lrc) {
|
|
379
|
-
let deferred1_0;
|
|
380
|
-
let deferred1_1;
|
|
381
|
-
try {
|
|
382
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
383
|
-
wasm.stringifyTTML(retptr, addHeapObject(lrc));
|
|
384
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
385
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
386
|
-
deferred1_0 = r0;
|
|
387
|
-
deferred1_1 = r1;
|
|
388
|
-
return getStringFromWasm0(r0, r1);
|
|
389
|
-
} finally {
|
|
390
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
391
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
531
|
+
for (; offset < len; offset++) {
|
|
532
|
+
const code = arg.charCodeAt(offset);
|
|
533
|
+
if (code > 0x7F) break;
|
|
534
|
+
mem[ptr + offset] = code;
|
|
392
535
|
}
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
*
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
const ptr0 = passStringToWasm0(src, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
401
|
-
const len0 = WASM_VECTOR_LEN;
|
|
402
|
-
const ret = wasm.parseYrc(ptr0, len0);
|
|
403
|
-
return takeObject(ret);
|
|
404
|
-
}
|
|
536
|
+
if (offset !== len) {
|
|
537
|
+
if (offset !== 0) {
|
|
538
|
+
arg = arg.slice(offset);
|
|
539
|
+
}
|
|
540
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
541
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
542
|
+
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
405
543
|
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
* @returns {string}
|
|
409
|
-
*/
|
|
410
|
-
export function stringifyYrc(lrc) {
|
|
411
|
-
let deferred1_0;
|
|
412
|
-
let deferred1_1;
|
|
413
|
-
try {
|
|
414
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
415
|
-
wasm.stringifyYrc(retptr, addHeapObject(lrc));
|
|
416
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
417
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
418
|
-
deferred1_0 = r0;
|
|
419
|
-
deferred1_1 = r1;
|
|
420
|
-
return getStringFromWasm0(r0, r1);
|
|
421
|
-
} finally {
|
|
422
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
423
|
-
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
544
|
+
offset += ret.written;
|
|
545
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
424
546
|
}
|
|
425
|
-
}
|
|
426
547
|
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
* `set_panic_hook` function at least once during initialization, and then
|
|
430
|
-
* we will get better error messages if our code ever panics.
|
|
431
|
-
*
|
|
432
|
-
* For more details see
|
|
433
|
-
* https://github.com/rustwasm/console_error_panic_hook#readme
|
|
434
|
-
*/
|
|
435
|
-
export function wasm_start() {
|
|
436
|
-
wasm.wasm_start();
|
|
548
|
+
WASM_VECTOR_LEN = offset;
|
|
549
|
+
return ptr;
|
|
437
550
|
}
|
|
438
551
|
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
552
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
553
|
+
cachedTextDecoder.decode();
|
|
554
|
+
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
555
|
+
let numBytesDecoded = 0;
|
|
556
|
+
function decodeText(ptr, len) {
|
|
557
|
+
numBytesDecoded += len;
|
|
558
|
+
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
559
|
+
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
560
|
+
cachedTextDecoder.decode();
|
|
561
|
+
numBytesDecoded = len;
|
|
444
562
|
}
|
|
563
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
445
564
|
}
|
|
446
565
|
|
|
447
|
-
|
|
448
|
-
takeObject(arg0);
|
|
449
|
-
};
|
|
450
|
-
|
|
451
|
-
export function __wbindgen_is_bigint(arg0) {
|
|
452
|
-
const ret = typeof(getObject(arg0)) === 'bigint';
|
|
453
|
-
return ret;
|
|
454
|
-
};
|
|
455
|
-
|
|
456
|
-
export function __wbindgen_bigint_from_u64(arg0) {
|
|
457
|
-
const ret = BigInt.asUintN(64, arg0);
|
|
458
|
-
return addHeapObject(ret);
|
|
459
|
-
};
|
|
460
|
-
|
|
461
|
-
export function __wbindgen_jsval_eq(arg0, arg1) {
|
|
462
|
-
const ret = getObject(arg0) === getObject(arg1);
|
|
463
|
-
return ret;
|
|
464
|
-
};
|
|
465
|
-
|
|
466
|
-
export function __wbindgen_error_new(arg0, arg1) {
|
|
467
|
-
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
468
|
-
return addHeapObject(ret);
|
|
469
|
-
};
|
|
470
|
-
|
|
471
|
-
export function __wbindgen_is_object(arg0) {
|
|
472
|
-
const val = getObject(arg0);
|
|
473
|
-
const ret = typeof(val) === 'object' && val !== null;
|
|
474
|
-
return ret;
|
|
475
|
-
};
|
|
476
|
-
|
|
477
|
-
export function __wbindgen_is_undefined(arg0) {
|
|
478
|
-
const ret = getObject(arg0) === undefined;
|
|
479
|
-
return ret;
|
|
480
|
-
};
|
|
481
|
-
|
|
482
|
-
export function __wbindgen_in(arg0, arg1) {
|
|
483
|
-
const ret = getObject(arg0) in getObject(arg1);
|
|
484
|
-
return ret;
|
|
485
|
-
};
|
|
486
|
-
|
|
487
|
-
export function __wbindgen_string_get(arg0, arg1) {
|
|
488
|
-
const obj = getObject(arg1);
|
|
489
|
-
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
490
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
491
|
-
var len1 = WASM_VECTOR_LEN;
|
|
492
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
493
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
494
|
-
};
|
|
495
|
-
|
|
496
|
-
export function __wbindgen_boolean_get(arg0) {
|
|
497
|
-
const v = getObject(arg0);
|
|
498
|
-
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
499
|
-
return ret;
|
|
500
|
-
};
|
|
501
|
-
|
|
502
|
-
export function __wbindgen_jsval_loose_eq(arg0, arg1) {
|
|
503
|
-
const ret = getObject(arg0) == getObject(arg1);
|
|
504
|
-
return ret;
|
|
505
|
-
};
|
|
506
|
-
|
|
507
|
-
export function __wbindgen_number_get(arg0, arg1) {
|
|
508
|
-
const obj = getObject(arg1);
|
|
509
|
-
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
510
|
-
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
511
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
512
|
-
};
|
|
513
|
-
|
|
514
|
-
export function __wbindgen_as_number(arg0) {
|
|
515
|
-
const ret = +getObject(arg0);
|
|
516
|
-
return ret;
|
|
517
|
-
};
|
|
518
|
-
|
|
519
|
-
export function __wbindgen_number_new(arg0) {
|
|
520
|
-
const ret = arg0;
|
|
521
|
-
return addHeapObject(ret);
|
|
522
|
-
};
|
|
523
|
-
|
|
524
|
-
export function __wbindgen_object_clone_ref(arg0) {
|
|
525
|
-
const ret = getObject(arg0);
|
|
526
|
-
return addHeapObject(ret);
|
|
527
|
-
};
|
|
528
|
-
|
|
529
|
-
export function __wbindgen_string_new(arg0, arg1) {
|
|
530
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
|
531
|
-
return addHeapObject(ret);
|
|
532
|
-
};
|
|
533
|
-
|
|
534
|
-
export function __wbg_getwithrefkey_edc2c8960f0f1191(arg0, arg1) {
|
|
535
|
-
const ret = getObject(arg0)[getObject(arg1)];
|
|
536
|
-
return addHeapObject(ret);
|
|
537
|
-
};
|
|
538
|
-
|
|
539
|
-
export function __wbg_set_f975102236d3c502(arg0, arg1, arg2) {
|
|
540
|
-
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
541
|
-
};
|
|
542
|
-
|
|
543
|
-
export function __wbg_call_1084a111329e68ce() { return handleError(function (arg0, arg1) {
|
|
544
|
-
const ret = getObject(arg0).call(getObject(arg1));
|
|
545
|
-
return addHeapObject(ret);
|
|
546
|
-
}, arguments) };
|
|
547
|
-
|
|
548
|
-
export function __wbg_get_3baa728f9d58d3f6(arg0, arg1) {
|
|
549
|
-
const ret = getObject(arg0)[arg1 >>> 0];
|
|
550
|
-
return addHeapObject(ret);
|
|
551
|
-
};
|
|
552
|
-
|
|
553
|
-
export function __wbg_length_ae22078168b726f5(arg0) {
|
|
554
|
-
const ret = getObject(arg0).length;
|
|
555
|
-
return ret;
|
|
556
|
-
};
|
|
557
|
-
|
|
558
|
-
export function __wbg_new_a220cf903aa02ca2() {
|
|
559
|
-
const ret = new Array();
|
|
560
|
-
return addHeapObject(ret);
|
|
561
|
-
};
|
|
562
|
-
|
|
563
|
-
export function __wbindgen_is_function(arg0) {
|
|
564
|
-
const ret = typeof(getObject(arg0)) === 'function';
|
|
565
|
-
return ret;
|
|
566
|
-
};
|
|
567
|
-
|
|
568
|
-
export function __wbg_next_de3e9db4440638b2(arg0) {
|
|
569
|
-
const ret = getObject(arg0).next;
|
|
570
|
-
return addHeapObject(ret);
|
|
571
|
-
};
|
|
572
|
-
|
|
573
|
-
export function __wbg_next_f9cb570345655b9a() { return handleError(function (arg0) {
|
|
574
|
-
const ret = getObject(arg0).next();
|
|
575
|
-
return addHeapObject(ret);
|
|
576
|
-
}, arguments) };
|
|
577
|
-
|
|
578
|
-
export function __wbg_done_bfda7aa8f252b39f(arg0) {
|
|
579
|
-
const ret = getObject(arg0).done;
|
|
580
|
-
return ret;
|
|
581
|
-
};
|
|
582
|
-
|
|
583
|
-
export function __wbg_value_6d39332ab4788d86(arg0) {
|
|
584
|
-
const ret = getObject(arg0).value;
|
|
585
|
-
return addHeapObject(ret);
|
|
586
|
-
};
|
|
587
|
-
|
|
588
|
-
export function __wbg_iterator_888179a48810a9fe() {
|
|
589
|
-
const ret = Symbol.iterator;
|
|
590
|
-
return addHeapObject(ret);
|
|
591
|
-
};
|
|
592
|
-
|
|
593
|
-
export function __wbg_get_224d16597dbbfd96() { return handleError(function (arg0, arg1) {
|
|
594
|
-
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
595
|
-
return addHeapObject(ret);
|
|
596
|
-
}, arguments) };
|
|
597
|
-
|
|
598
|
-
export function __wbg_new_525245e2b9901204() {
|
|
599
|
-
const ret = new Object();
|
|
600
|
-
return addHeapObject(ret);
|
|
601
|
-
};
|
|
602
|
-
|
|
603
|
-
export function __wbg_set_673dda6c73d19609(arg0, arg1, arg2) {
|
|
604
|
-
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
605
|
-
};
|
|
606
|
-
|
|
607
|
-
export function __wbg_isArray_8364a5371e9737d8(arg0) {
|
|
608
|
-
const ret = Array.isArray(getObject(arg0));
|
|
609
|
-
return ret;
|
|
610
|
-
};
|
|
611
|
-
|
|
612
|
-
export function __wbg_instanceof_ArrayBuffer_61dfc3198373c902(arg0) {
|
|
613
|
-
let result;
|
|
614
|
-
try {
|
|
615
|
-
result = getObject(arg0) instanceof ArrayBuffer;
|
|
616
|
-
} catch (_) {
|
|
617
|
-
result = false;
|
|
618
|
-
}
|
|
619
|
-
const ret = result;
|
|
620
|
-
return ret;
|
|
621
|
-
};
|
|
566
|
+
const cachedTextEncoder = new TextEncoder();
|
|
622
567
|
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
};
|
|
632
|
-
|
|
633
|
-
export function __wbg_new_ea1883e1e5e86686(arg0) {
|
|
634
|
-
const ret = new Uint8Array(getObject(arg0));
|
|
635
|
-
return addHeapObject(ret);
|
|
636
|
-
};
|
|
637
|
-
|
|
638
|
-
export function __wbg_set_d1e79e2388520f18(arg0, arg1, arg2) {
|
|
639
|
-
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
640
|
-
};
|
|
641
|
-
|
|
642
|
-
export function __wbg_length_8339fcf5d8ecd12e(arg0) {
|
|
643
|
-
const ret = getObject(arg0).length;
|
|
644
|
-
return ret;
|
|
645
|
-
};
|
|
646
|
-
|
|
647
|
-
export function __wbg_instanceof_Uint8Array_247a91427532499e(arg0) {
|
|
648
|
-
let result;
|
|
649
|
-
try {
|
|
650
|
-
result = getObject(arg0) instanceof Uint8Array;
|
|
651
|
-
} catch (_) {
|
|
652
|
-
result = false;
|
|
653
|
-
}
|
|
654
|
-
const ret = result;
|
|
655
|
-
return ret;
|
|
656
|
-
};
|
|
657
|
-
|
|
658
|
-
export function __wbindgen_bigint_get_as_i64(arg0, arg1) {
|
|
659
|
-
const v = getObject(arg1);
|
|
660
|
-
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
661
|
-
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
662
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
663
|
-
};
|
|
664
|
-
|
|
665
|
-
export function __wbindgen_debug_string(arg0, arg1) {
|
|
666
|
-
const ret = debugString(getObject(arg1));
|
|
667
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
668
|
-
const len1 = WASM_VECTOR_LEN;
|
|
669
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
670
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
671
|
-
};
|
|
568
|
+
if (!('encodeInto' in cachedTextEncoder)) {
|
|
569
|
+
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
570
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
571
|
+
view.set(buf);
|
|
572
|
+
return {
|
|
573
|
+
read: arg.length,
|
|
574
|
+
written: buf.length
|
|
575
|
+
};
|
|
576
|
+
};
|
|
577
|
+
}
|
|
672
578
|
|
|
673
|
-
|
|
674
|
-
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
675
|
-
};
|
|
579
|
+
let WASM_VECTOR_LEN = 0;
|
|
676
580
|
|
|
677
|
-
export function __wbindgen_memory() {
|
|
678
|
-
const ret = wasm.memory;
|
|
679
|
-
return addHeapObject(ret);
|
|
680
|
-
};
|
|
681
581
|
|
|
582
|
+
let wasm;
|
|
583
|
+
export function __wbg_set_wasm(val) {
|
|
584
|
+
wasm = val;
|
|
585
|
+
}
|