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