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