@ibearua/bitmask-core-dev 1.0.0-beta.12 → 1.0.0-beta.14

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,2511 @@
1
+ let wasm;
2
+ export function __wbg_set_wasm(val) {
3
+ wasm = val;
4
+ }
5
+
6
+
7
+ let WASM_VECTOR_LEN = 0;
8
+
9
+ let cachedUint8ArrayMemory0 = null;
10
+
11
+ function getUint8ArrayMemory0() {
12
+ if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
13
+ cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
14
+ }
15
+ return cachedUint8ArrayMemory0;
16
+ }
17
+
18
+ const lTextEncoder = typeof TextEncoder === 'undefined' ? (0, module.require)('util').TextEncoder : TextEncoder;
19
+
20
+ let cachedTextEncoder = new lTextEncoder('utf-8');
21
+
22
+ const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
23
+ ? function (arg, view) {
24
+ return cachedTextEncoder.encodeInto(arg, view);
25
+ }
26
+ : function (arg, view) {
27
+ const buf = cachedTextEncoder.encode(arg);
28
+ view.set(buf);
29
+ return {
30
+ read: arg.length,
31
+ written: buf.length
32
+ };
33
+ });
34
+
35
+ function passStringToWasm0(arg, malloc, realloc) {
36
+
37
+ if (realloc === undefined) {
38
+ const buf = cachedTextEncoder.encode(arg);
39
+ const ptr = malloc(buf.length, 1) >>> 0;
40
+ getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
41
+ WASM_VECTOR_LEN = buf.length;
42
+ return ptr;
43
+ }
44
+
45
+ let len = arg.length;
46
+ let ptr = malloc(len, 1) >>> 0;
47
+
48
+ const mem = getUint8ArrayMemory0();
49
+
50
+ let offset = 0;
51
+
52
+ for (; offset < len; offset++) {
53
+ const code = arg.charCodeAt(offset);
54
+ if (code > 0x7F) break;
55
+ mem[ptr + offset] = code;
56
+ }
57
+
58
+ if (offset !== len) {
59
+ if (offset !== 0) {
60
+ arg = arg.slice(offset);
61
+ }
62
+ ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
63
+ const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
64
+ const ret = encodeString(arg, view);
65
+
66
+ offset += ret.written;
67
+ ptr = realloc(ptr, len, offset, 1) >>> 0;
68
+ }
69
+
70
+ WASM_VECTOR_LEN = offset;
71
+ return ptr;
72
+ }
73
+
74
+ let cachedDataViewMemory0 = null;
75
+
76
+ function getDataViewMemory0() {
77
+ if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
78
+ cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
79
+ }
80
+ return cachedDataViewMemory0;
81
+ }
82
+
83
+ const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
84
+
85
+ let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
86
+
87
+ cachedTextDecoder.decode();
88
+
89
+ function getStringFromWasm0(ptr, len) {
90
+ ptr = ptr >>> 0;
91
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
92
+ }
93
+
94
+ function addToExternrefTable0(obj) {
95
+ const idx = wasm.__externref_table_alloc();
96
+ wasm.__wbindgen_export_4.set(idx, obj);
97
+ return idx;
98
+ }
99
+
100
+ function handleError(f, args) {
101
+ try {
102
+ return f.apply(this, args);
103
+ } catch (e) {
104
+ const idx = addToExternrefTable0(e);
105
+ wasm.__wbindgen_exn_store(idx);
106
+ }
107
+ }
108
+
109
+ function getArrayJsValueFromWasm0(ptr, len) {
110
+ ptr = ptr >>> 0;
111
+ const mem = getDataViewMemory0();
112
+ const result = [];
113
+ for (let i = ptr; i < ptr + 4 * len; i += 4) {
114
+ result.push(wasm.__wbindgen_export_4.get(mem.getUint32(i, true)));
115
+ }
116
+ wasm.__externref_drop_slice(ptr, len);
117
+ return result;
118
+ }
119
+
120
+ function isLikeNone(x) {
121
+ return x === undefined || x === null;
122
+ }
123
+
124
+ function getArrayU8FromWasm0(ptr, len) {
125
+ ptr = ptr >>> 0;
126
+ return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
127
+ }
128
+
129
+ const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
130
+ ? { register: () => {}, unregister: () => {} }
131
+ : new FinalizationRegistry(state => {
132
+ wasm.__wbindgen_export_7.get(state.dtor)(state.a, state.b)
133
+ });
134
+
135
+ function makeMutClosure(arg0, arg1, dtor, f) {
136
+ const state = { a: arg0, b: arg1, cnt: 1, dtor };
137
+ const real = (...args) => {
138
+ // First up with a closure we increment the internal reference
139
+ // count. This ensures that the Rust closure environment won't
140
+ // be deallocated while we're invoking it.
141
+ state.cnt++;
142
+ const a = state.a;
143
+ state.a = 0;
144
+ try {
145
+ return f(a, state.b, ...args);
146
+ } finally {
147
+ if (--state.cnt === 0) {
148
+ wasm.__wbindgen_export_7.get(state.dtor)(a, state.b);
149
+ CLOSURE_DTORS.unregister(state);
150
+ } else {
151
+ state.a = a;
152
+ }
153
+ }
154
+ };
155
+ real.original = state;
156
+ CLOSURE_DTORS.register(real, state, state);
157
+ return real;
158
+ }
159
+
160
+ function debugString(val) {
161
+ // primitive types
162
+ const type = typeof val;
163
+ if (type == 'number' || type == 'boolean' || val == null) {
164
+ return `${val}`;
165
+ }
166
+ if (type == 'string') {
167
+ return `"${val}"`;
168
+ }
169
+ if (type == 'symbol') {
170
+ const description = val.description;
171
+ if (description == null) {
172
+ return 'Symbol';
173
+ } else {
174
+ return `Symbol(${description})`;
175
+ }
176
+ }
177
+ if (type == 'function') {
178
+ const name = val.name;
179
+ if (typeof name == 'string' && name.length > 0) {
180
+ return `Function(${name})`;
181
+ } else {
182
+ return 'Function';
183
+ }
184
+ }
185
+ // objects
186
+ if (Array.isArray(val)) {
187
+ const length = val.length;
188
+ let debug = '[';
189
+ if (length > 0) {
190
+ debug += debugString(val[0]);
191
+ }
192
+ for(let i = 1; i < length; i++) {
193
+ debug += ', ' + debugString(val[i]);
194
+ }
195
+ debug += ']';
196
+ return debug;
197
+ }
198
+ // Test for built-in
199
+ const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
200
+ let className;
201
+ if (builtInMatches && builtInMatches.length > 1) {
202
+ className = builtInMatches[1];
203
+ } else {
204
+ // Failed to match the standard '[object ClassName]'
205
+ return toString.call(val);
206
+ }
207
+ if (className == 'Object') {
208
+ // we're a user defined class or Object
209
+ // JSON.stringify avoids problems with cycles, and is generally much
210
+ // easier than looping through ownProperties of `val`.
211
+ try {
212
+ return 'Object(' + JSON.stringify(val) + ')';
213
+ } catch (_) {
214
+ return 'Object';
215
+ }
216
+ }
217
+ // errors
218
+ if (val instanceof Error) {
219
+ return `${val.name}: ${val.message}\n${val.stack}`;
220
+ }
221
+ // TODO we could test for more things here, like `Set`s and `Map`s.
222
+ return className;
223
+ }
224
+
225
+ function passArray8ToWasm0(arg, malloc) {
226
+ const ptr = malloc(arg.length * 1, 1) >>> 0;
227
+ getUint8ArrayMemory0().set(arg, ptr / 1);
228
+ WASM_VECTOR_LEN = arg.length;
229
+ return ptr;
230
+ }
231
+ /**
232
+ * @param {string} secret_key
233
+ * @param {string} name
234
+ * @param {Uint8Array} data
235
+ * @param {boolean} force
236
+ * @param {Uint8Array | null} [metadata]
237
+ * @returns {Promise<any>}
238
+ */
239
+ export function store(secret_key, name, data, force, metadata) {
240
+ const ptr0 = passStringToWasm0(secret_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
241
+ const len0 = WASM_VECTOR_LEN;
242
+ const ptr1 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
243
+ const len1 = WASM_VECTOR_LEN;
244
+ const ptr2 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
245
+ const len2 = WASM_VECTOR_LEN;
246
+ var ptr3 = isLikeNone(metadata) ? 0 : passArray8ToWasm0(metadata, wasm.__wbindgen_malloc);
247
+ var len3 = WASM_VECTOR_LEN;
248
+ const ret = wasm.store(ptr0, len0, ptr1, len1, ptr2, len2, force, ptr3, len3);
249
+ return ret;
250
+ }
251
+
252
+ /**
253
+ * @param {string} secret_key
254
+ * @param {string} name
255
+ * @returns {Promise<any>}
256
+ */
257
+ export function retrieve(secret_key, name) {
258
+ const ptr0 = passStringToWasm0(secret_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
259
+ const len0 = WASM_VECTOR_LEN;
260
+ const ptr1 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
261
+ const len1 = WASM_VECTOR_LEN;
262
+ const ret = wasm.retrieve(ptr0, len0, ptr1, len1);
263
+ return ret;
264
+ }
265
+
266
+ /**
267
+ * @param {string} secret_key
268
+ * @param {string} name
269
+ * @returns {Promise<any>}
270
+ */
271
+ export function retrieve_metadata(secret_key, name) {
272
+ const ptr0 = passStringToWasm0(secret_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
273
+ const len0 = WASM_VECTOR_LEN;
274
+ const ptr1 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
275
+ const len1 = WASM_VECTOR_LEN;
276
+ const ret = wasm.retrieve_metadata(ptr0, len0, ptr1, len1);
277
+ return ret;
278
+ }
279
+
280
+ /**
281
+ * @param {Uint8Array} bytes
282
+ * @returns {string}
283
+ */
284
+ export function encode_hex(bytes) {
285
+ let deferred2_0;
286
+ let deferred2_1;
287
+ try {
288
+ const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
289
+ const len0 = WASM_VECTOR_LEN;
290
+ const ret = wasm.encode_hex(ptr0, len0);
291
+ deferred2_0 = ret[0];
292
+ deferred2_1 = ret[1];
293
+ return getStringFromWasm0(ret[0], ret[1]);
294
+ } finally {
295
+ wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
296
+ }
297
+ }
298
+
299
+ /**
300
+ * @param {Uint8Array} bytes
301
+ * @returns {string}
302
+ */
303
+ export function encode_base64(bytes) {
304
+ let deferred2_0;
305
+ let deferred2_1;
306
+ try {
307
+ const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
308
+ const len0 = WASM_VECTOR_LEN;
309
+ const ret = wasm.encode_base64(ptr0, len0);
310
+ deferred2_0 = ret[0];
311
+ deferred2_1 = ret[1];
312
+ return getStringFromWasm0(ret[0], ret[1]);
313
+ } finally {
314
+ wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
315
+ }
316
+ }
317
+
318
+ function takeFromExternrefTable0(idx) {
319
+ const value = wasm.__wbindgen_export_4.get(idx);
320
+ wasm.__externref_table_dealloc(idx);
321
+ return value;
322
+ }
323
+ /**
324
+ * @param {string} string
325
+ * @returns {Uint8Array}
326
+ */
327
+ export function decode_hex(string) {
328
+ const ptr0 = passStringToWasm0(string, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
329
+ const len0 = WASM_VECTOR_LEN;
330
+ const ret = wasm.decode_hex(ptr0, len0);
331
+ if (ret[3]) {
332
+ throw takeFromExternrefTable0(ret[2]);
333
+ }
334
+ var v2 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
335
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
336
+ return v2;
337
+ }
338
+
339
+ /**
340
+ * @param {string} string
341
+ * @returns {Uint8Array}
342
+ */
343
+ export function decode_base64(string) {
344
+ const ptr0 = passStringToWasm0(string, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
345
+ const len0 = WASM_VECTOR_LEN;
346
+ const ret = wasm.decode_base64(ptr0, len0);
347
+ if (ret[3]) {
348
+ throw takeFromExternrefTable0(ret[2]);
349
+ }
350
+ var v2 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
351
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
352
+ return v2;
353
+ }
354
+
355
+ /**
356
+ * @param {string} nostr_hex_sk
357
+ * @param {any} request
358
+ * @returns {Promise<any>}
359
+ */
360
+ export function create_watcher(nostr_hex_sk, request) {
361
+ const ptr0 = passStringToWasm0(nostr_hex_sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
362
+ const len0 = WASM_VECTOR_LEN;
363
+ const ret = wasm.create_watcher(ptr0, len0, request);
364
+ return ret;
365
+ }
366
+
367
+ /**
368
+ * @param {string} nostr_hex_sk
369
+ * @param {any} request
370
+ * @returns {Promise<any>}
371
+ */
372
+ export function recover_watcher(nostr_hex_sk, request) {
373
+ const ptr0 = passStringToWasm0(nostr_hex_sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
374
+ const len0 = WASM_VECTOR_LEN;
375
+ const ret = wasm.recover_watcher(ptr0, len0, request);
376
+ return ret;
377
+ }
378
+
379
+ /**
380
+ * @param {string} nostr_hex_sk
381
+ * @returns {Promise<any>}
382
+ */
383
+ export function destroy_watcher(nostr_hex_sk) {
384
+ const ptr0 = passStringToWasm0(nostr_hex_sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
385
+ const len0 = WASM_VECTOR_LEN;
386
+ const ret = wasm.destroy_watcher(ptr0, len0);
387
+ return ret;
388
+ }
389
+
390
+ /**
391
+ * @param {string} nostr_hex_sk
392
+ * @returns {Promise<any>}
393
+ */
394
+ export function destroy_recover_watcher(nostr_hex_sk) {
395
+ const ptr0 = passStringToWasm0(nostr_hex_sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
396
+ const len0 = WASM_VECTOR_LEN;
397
+ const ret = wasm.destroy_recover_watcher(ptr0, len0);
398
+ return ret;
399
+ }
400
+
401
+ /**
402
+ * @param {string} nostr_hex_sk
403
+ * @returns {Promise<any>}
404
+ */
405
+ export function check_watcher(nostr_hex_sk) {
406
+ const ptr0 = passStringToWasm0(nostr_hex_sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
407
+ const len0 = WASM_VECTOR_LEN;
408
+ const ret = wasm.check_watcher(ptr0, len0);
409
+ return ret;
410
+ }
411
+
412
+ /**
413
+ * @param {string} nostr_hex_sk
414
+ * @param {string} request
415
+ * @returns {Promise<any>}
416
+ */
417
+ export function watcher_next_address(nostr_hex_sk, request) {
418
+ const ptr0 = passStringToWasm0(nostr_hex_sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
419
+ const len0 = WASM_VECTOR_LEN;
420
+ const ptr1 = passStringToWasm0(request, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
421
+ const len1 = WASM_VECTOR_LEN;
422
+ const ret = wasm.watcher_next_address(ptr0, len0, ptr1, len1);
423
+ return ret;
424
+ }
425
+
426
+ /**
427
+ * @param {string} nostr_hex_sk
428
+ * @param {string} request
429
+ * @returns {Promise<any>}
430
+ */
431
+ export function watcher_next_utxo(nostr_hex_sk, request) {
432
+ const ptr0 = passStringToWasm0(nostr_hex_sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
433
+ const len0 = WASM_VECTOR_LEN;
434
+ const ptr1 = passStringToWasm0(request, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
435
+ const len1 = WASM_VECTOR_LEN;
436
+ const ret = wasm.watcher_next_utxo(ptr0, len0, ptr1, len1);
437
+ return ret;
438
+ }
439
+
440
+ /**
441
+ * @param {string} nostr_hex_sk
442
+ * @param {string} request
443
+ * @returns {Promise<any>}
444
+ */
445
+ export function watcher_unspent_utxos(nostr_hex_sk, request) {
446
+ const ptr0 = passStringToWasm0(nostr_hex_sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
447
+ const len0 = WASM_VECTOR_LEN;
448
+ const ptr1 = passStringToWasm0(request, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
449
+ const len1 = WASM_VECTOR_LEN;
450
+ const ret = wasm.watcher_unspent_utxos(ptr0, len0, ptr1, len1);
451
+ return ret;
452
+ }
453
+
454
+ /**
455
+ * @returns {string}
456
+ */
457
+ export function get_rgb_version() {
458
+ let deferred1_0;
459
+ let deferred1_1;
460
+ try {
461
+ const ret = wasm.get_rgb_version();
462
+ deferred1_0 = ret[0];
463
+ deferred1_1 = ret[1];
464
+ return getStringFromWasm0(ret[0], ret[1]);
465
+ } finally {
466
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
467
+ }
468
+ }
469
+
470
+ /**
471
+ * @param {string} nostr_hex_sk
472
+ * @returns {Promise<any>}
473
+ */
474
+ export function get_rgb_wallet(nostr_hex_sk) {
475
+ const ptr0 = passStringToWasm0(nostr_hex_sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
476
+ const len0 = WASM_VECTOR_LEN;
477
+ const ret = wasm.get_rgb_wallet(ptr0, len0);
478
+ return ret;
479
+ }
480
+
481
+ /**
482
+ * @param {string} nostr_hex_sk
483
+ * @param {string} request
484
+ * @returns {Promise<any>}
485
+ */
486
+ export function get_contract(nostr_hex_sk, request) {
487
+ const ptr0 = passStringToWasm0(nostr_hex_sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
488
+ const len0 = WASM_VECTOR_LEN;
489
+ const ptr1 = passStringToWasm0(request, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
490
+ const len1 = WASM_VECTOR_LEN;
491
+ const ret = wasm.get_contract(ptr0, len0, ptr1, len1);
492
+ return ret;
493
+ }
494
+
495
+ /**
496
+ * @param {string} nostr_hex_sk
497
+ * @param {boolean} arg1
498
+ * @returns {Promise<any>}
499
+ */
500
+ export function list_contracts(nostr_hex_sk, arg1) {
501
+ const ptr0 = passStringToWasm0(nostr_hex_sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
502
+ const len0 = WASM_VECTOR_LEN;
503
+ const ret = wasm.list_contracts(ptr0, len0, arg1);
504
+ return ret;
505
+ }
506
+
507
+ /**
508
+ * @param {string} nostr_hex_sk
509
+ * @param {string} request
510
+ * @returns {Promise<any>}
511
+ */
512
+ export function import_contract(nostr_hex_sk, request) {
513
+ const ptr0 = passStringToWasm0(nostr_hex_sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
514
+ const len0 = WASM_VECTOR_LEN;
515
+ const ptr1 = passStringToWasm0(request, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
516
+ const len1 = WASM_VECTOR_LEN;
517
+ const ret = wasm.import_contract(ptr0, len0, ptr1, len1);
518
+ return ret;
519
+ }
520
+
521
+ /**
522
+ * @param {string} nostr_hex_sk
523
+ * @param {any} request
524
+ * @returns {Promise<any>}
525
+ */
526
+ export function issue_contract(nostr_hex_sk, request) {
527
+ const ptr0 = passStringToWasm0(nostr_hex_sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
528
+ const len0 = WASM_VECTOR_LEN;
529
+ const ret = wasm.issue_contract(ptr0, len0, request);
530
+ return ret;
531
+ }
532
+
533
+ /**
534
+ * @param {string} nostr_hex_sk
535
+ * @param {any} request
536
+ * @returns {Promise<any>}
537
+ */
538
+ export function issue_contract_proxy(nostr_hex_sk, request) {
539
+ const ptr0 = passStringToWasm0(nostr_hex_sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
540
+ const len0 = WASM_VECTOR_LEN;
541
+ const ret = wasm.issue_contract_proxy(ptr0, len0, request);
542
+ return ret;
543
+ }
544
+
545
+ /**
546
+ * @param {string} nostr_hex_sk
547
+ * @param {any} request
548
+ * @returns {Promise<any>}
549
+ */
550
+ export function create_rgb_invoice(nostr_hex_sk, request) {
551
+ const ptr0 = passStringToWasm0(nostr_hex_sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
552
+ const len0 = WASM_VECTOR_LEN;
553
+ const ret = wasm.create_rgb_invoice(ptr0, len0, request);
554
+ return ret;
555
+ }
556
+
557
+ /**
558
+ * @param {string} nostr_hex_sk
559
+ * @param {string} request
560
+ * @returns {Promise<any>}
561
+ */
562
+ export function remove_rgb_invoice(nostr_hex_sk, request) {
563
+ const ptr0 = passStringToWasm0(nostr_hex_sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
564
+ const len0 = WASM_VECTOR_LEN;
565
+ const ptr1 = passStringToWasm0(request, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
566
+ const len1 = WASM_VECTOR_LEN;
567
+ const ret = wasm.remove_rgb_invoice(ptr0, len0, ptr1, len1);
568
+ return ret;
569
+ }
570
+
571
+ /**
572
+ * @param {string} nostr_hex_sk
573
+ * @returns {Promise<any>}
574
+ */
575
+ export function list_rgb_invoices(nostr_hex_sk) {
576
+ const ptr0 = passStringToWasm0(nostr_hex_sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
577
+ const len0 = WASM_VECTOR_LEN;
578
+ const ret = wasm.list_rgb_invoices(ptr0, len0);
579
+ return ret;
580
+ }
581
+
582
+ /**
583
+ * @param {string} invoice
584
+ * @returns {Promise<any>}
585
+ */
586
+ export function decode_rgb_invoice(invoice) {
587
+ const ptr0 = passStringToWasm0(invoice, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
588
+ const len0 = WASM_VECTOR_LEN;
589
+ const ret = wasm.decode_rgb_invoice(ptr0, len0);
590
+ return ret;
591
+ }
592
+
593
+ /**
594
+ * @param {string} nostr_hex_sk
595
+ * @param {any} request
596
+ * @returns {Promise<any>}
597
+ */
598
+ export function can_create_transfer_contract(nostr_hex_sk, request) {
599
+ const ptr0 = passStringToWasm0(nostr_hex_sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
600
+ const len0 = WASM_VECTOR_LEN;
601
+ const ret = wasm.can_create_transfer_contract(ptr0, len0, request);
602
+ return ret;
603
+ }
604
+
605
+ /**
606
+ * @param {string} nostr_hex_sk
607
+ * @param {any} request
608
+ * @returns {Promise<any>}
609
+ */
610
+ export function create_rgb_transfer(nostr_hex_sk, request) {
611
+ const ptr0 = passStringToWasm0(nostr_hex_sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
612
+ const len0 = WASM_VECTOR_LEN;
613
+ const ret = wasm.create_rgb_transfer(ptr0, len0, request);
614
+ return ret;
615
+ }
616
+
617
+ /**
618
+ * @param {string} nostr_hex_sk
619
+ * @param {any} request
620
+ * @param {any} secrets
621
+ * @returns {Promise<any>}
622
+ */
623
+ export function create_and_publish_rgb_transfer(nostr_hex_sk, request, secrets) {
624
+ const ptr0 = passStringToWasm0(nostr_hex_sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
625
+ const len0 = WASM_VECTOR_LEN;
626
+ const ret = wasm.create_and_publish_rgb_transfer(ptr0, len0, request, secrets);
627
+ return ret;
628
+ }
629
+
630
+ /**
631
+ * @param {string} _nostr_hex_sk
632
+ * @param {any} request
633
+ * @returns {Promise<any>}
634
+ */
635
+ export function psbt_sign_file(_nostr_hex_sk, request) {
636
+ const ptr0 = passStringToWasm0(_nostr_hex_sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
637
+ const len0 = WASM_VECTOR_LEN;
638
+ const ret = wasm.psbt_sign_file(ptr0, len0, request);
639
+ return ret;
640
+ }
641
+
642
+ /**
643
+ * @param {string} nostr_hex_sk
644
+ * @param {any} request
645
+ * @returns {Promise<any>}
646
+ */
647
+ export function accept_transfer(nostr_hex_sk, request) {
648
+ const ptr0 = passStringToWasm0(nostr_hex_sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
649
+ const len0 = WASM_VECTOR_LEN;
650
+ const ret = wasm.accept_transfer(ptr0, len0, request);
651
+ return ret;
652
+ }
653
+
654
+ /**
655
+ * @param {string} nostr_hex_sk
656
+ * @param {any} request
657
+ * @returns {Promise<any>}
658
+ */
659
+ export function save_transfer(nostr_hex_sk, request) {
660
+ const ptr0 = passStringToWasm0(nostr_hex_sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
661
+ const len0 = WASM_VECTOR_LEN;
662
+ const ret = wasm.save_transfer(ptr0, len0, request);
663
+ return ret;
664
+ }
665
+
666
+ /**
667
+ * @param {string} nostr_hex_sk
668
+ * @returns {Promise<any>}
669
+ */
670
+ export function list_transfers(nostr_hex_sk) {
671
+ const ptr0 = passStringToWasm0(nostr_hex_sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
672
+ const len0 = WASM_VECTOR_LEN;
673
+ const ret = wasm.list_transfers(ptr0, len0);
674
+ return ret;
675
+ }
676
+
677
+ /**
678
+ * @param {string} nostr_hex_sk
679
+ * @returns {Promise<any>}
680
+ */
681
+ export function verify_transfers(nostr_hex_sk) {
682
+ const ptr0 = passStringToWasm0(nostr_hex_sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
683
+ const len0 = WASM_VECTOR_LEN;
684
+ const ret = wasm.verify_transfers(ptr0, len0);
685
+ return ret;
686
+ }
687
+
688
+ /**
689
+ * @param {string} nostr_hex_sk
690
+ * @returns {Promise<any>}
691
+ */
692
+ export function list_offers(nostr_hex_sk) {
693
+ const ptr0 = passStringToWasm0(nostr_hex_sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
694
+ const len0 = WASM_VECTOR_LEN;
695
+ const ret = wasm.list_offers(ptr0, len0);
696
+ return ret;
697
+ }
698
+
699
+ /**
700
+ * @param {string} nostr_hex_sk
701
+ * @returns {Promise<any>}
702
+ */
703
+ export function offers(nostr_hex_sk) {
704
+ const ptr0 = passStringToWasm0(nostr_hex_sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
705
+ const len0 = WASM_VECTOR_LEN;
706
+ const ret = wasm.offers(ptr0, len0);
707
+ return ret;
708
+ }
709
+
710
+ /**
711
+ * @param {string} nostr_hex_sk
712
+ * @returns {Promise<any>}
713
+ */
714
+ export function bids(nostr_hex_sk) {
715
+ const ptr0 = passStringToWasm0(nostr_hex_sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
716
+ const len0 = WASM_VECTOR_LEN;
717
+ const ret = wasm.bids(ptr0, len0);
718
+ return ret;
719
+ }
720
+
721
+ /**
722
+ * @param {string} nostr_hex_sk
723
+ * @param {string} offer_id
724
+ * @returns {Promise<any>}
725
+ */
726
+ export function offer_swap_suppl(nostr_hex_sk, offer_id) {
727
+ const ptr0 = passStringToWasm0(nostr_hex_sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
728
+ const len0 = WASM_VECTOR_LEN;
729
+ const ptr1 = passStringToWasm0(offer_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
730
+ const len1 = WASM_VECTOR_LEN;
731
+ const ret = wasm.offer_swap_suppl(ptr0, len0, ptr1, len1);
732
+ return ret;
733
+ }
734
+
735
+ /**
736
+ * @param {string} nostr_hex_sk
737
+ * @param {string} bid_id
738
+ * @returns {Promise<any>}
739
+ */
740
+ export function bid_swap_suppl(nostr_hex_sk, bid_id) {
741
+ const ptr0 = passStringToWasm0(nostr_hex_sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
742
+ const len0 = WASM_VECTOR_LEN;
743
+ const ptr1 = passStringToWasm0(bid_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
744
+ const len1 = WASM_VECTOR_LEN;
745
+ const ret = wasm.bid_swap_suppl(ptr0, len0, ptr1, len1);
746
+ return ret;
747
+ }
748
+
749
+ /**
750
+ * @param {string} nostr_hex_sk
751
+ * @param {any} request
752
+ * @param {any} secrets
753
+ * @returns {Promise<any>}
754
+ */
755
+ export function can_create_offer(nostr_hex_sk, request, secrets) {
756
+ const ptr0 = passStringToWasm0(nostr_hex_sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
757
+ const len0 = WASM_VECTOR_LEN;
758
+ const ret = wasm.can_create_offer(ptr0, len0, request, secrets);
759
+ return ret;
760
+ }
761
+
762
+ /**
763
+ * @param {string} nostr_hex_sk
764
+ * @param {any} request
765
+ * @param {any} secrets
766
+ * @returns {Promise<any>}
767
+ */
768
+ export function create_offer(nostr_hex_sk, request, secrets) {
769
+ const ptr0 = passStringToWasm0(nostr_hex_sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
770
+ const len0 = WASM_VECTOR_LEN;
771
+ const ret = wasm.create_offer(ptr0, len0, request, secrets);
772
+ return ret;
773
+ }
774
+
775
+ /**
776
+ * @param {string} nostr_hex_sk
777
+ * @param {any} request
778
+ * @returns {Promise<any>}
779
+ */
780
+ export function cancel_offer(nostr_hex_sk, request) {
781
+ const ptr0 = passStringToWasm0(nostr_hex_sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
782
+ const len0 = WASM_VECTOR_LEN;
783
+ const ret = wasm.cancel_offer(ptr0, len0, request);
784
+ return ret;
785
+ }
786
+
787
+ /**
788
+ * @param {string} nostr_hex_sk
789
+ * @param {any} request
790
+ * @param {any} secrets
791
+ * @returns {Promise<any>}
792
+ */
793
+ export function can_create_bid(nostr_hex_sk, request, secrets) {
794
+ const ptr0 = passStringToWasm0(nostr_hex_sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
795
+ const len0 = WASM_VECTOR_LEN;
796
+ const ret = wasm.can_create_bid(ptr0, len0, request, secrets);
797
+ return ret;
798
+ }
799
+
800
+ /**
801
+ * @param {string} nostr_hex_sk
802
+ * @param {any} request
803
+ * @param {any} secrets
804
+ * @returns {Promise<any>}
805
+ */
806
+ export function create_bid(nostr_hex_sk, request, secrets) {
807
+ const ptr0 = passStringToWasm0(nostr_hex_sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
808
+ const len0 = WASM_VECTOR_LEN;
809
+ const ret = wasm.create_bid(ptr0, len0, request, secrets);
810
+ return ret;
811
+ }
812
+
813
+ /**
814
+ * @param {string} nostr_hex_sk
815
+ * @param {any} request
816
+ * @returns {Promise<any>}
817
+ */
818
+ export function cancel_bid(nostr_hex_sk, request) {
819
+ const ptr0 = passStringToWasm0(nostr_hex_sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
820
+ const len0 = WASM_VECTOR_LEN;
821
+ const ret = wasm.cancel_bid(ptr0, len0, request);
822
+ return ret;
823
+ }
824
+
825
+ /**
826
+ * @param {string} nostr_hex_sk
827
+ * @param {any} request
828
+ * @param {any} secrets
829
+ * @param {bigint} fee
830
+ * @param {string} max_claim
831
+ * @returns {Promise<any>}
832
+ */
833
+ export function create_airdrop(nostr_hex_sk, request, secrets, fee, max_claim) {
834
+ const ptr0 = passStringToWasm0(nostr_hex_sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
835
+ const len0 = WASM_VECTOR_LEN;
836
+ const ptr1 = passStringToWasm0(max_claim, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
837
+ const len1 = WASM_VECTOR_LEN;
838
+ const ret = wasm.create_airdrop(ptr0, len0, request, secrets, fee, ptr1, len1);
839
+ return ret;
840
+ }
841
+
842
+ /**
843
+ * @param {string} nostr_hex_sk
844
+ * @param {any} request
845
+ * @returns {Promise<any>}
846
+ */
847
+ export function create_airdrop_claim(nostr_hex_sk, request) {
848
+ const ptr0 = passStringToWasm0(nostr_hex_sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
849
+ const len0 = WASM_VECTOR_LEN;
850
+ const ret = wasm.create_airdrop_claim(ptr0, len0, request);
851
+ return ret;
852
+ }
853
+
854
+ /**
855
+ * @param {string} nostr_hex_sk
856
+ * @param {any} request
857
+ * @returns {Promise<any>}
858
+ */
859
+ export function close_airdrop(nostr_hex_sk, request) {
860
+ const ptr0 = passStringToWasm0(nostr_hex_sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
861
+ const len0 = WASM_VECTOR_LEN;
862
+ const ret = wasm.close_airdrop(ptr0, len0, request);
863
+ return ret;
864
+ }
865
+
866
+ /**
867
+ * @param {string} nostr_hex_sk
868
+ * @returns {Promise<any>}
869
+ */
870
+ export function backup_rgb_data(nostr_hex_sk) {
871
+ const ptr0 = passStringToWasm0(nostr_hex_sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
872
+ const len0 = WASM_VECTOR_LEN;
873
+ const ret = wasm.backup_rgb_data(ptr0, len0);
874
+ return ret;
875
+ }
876
+
877
+ /**
878
+ * @param {string} nostr_hex_sk
879
+ * @returns {Promise<any>}
880
+ */
881
+ export function restore_rgb_data(nostr_hex_sk) {
882
+ const ptr0 = passStringToWasm0(nostr_hex_sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
883
+ const len0 = WASM_VECTOR_LEN;
884
+ const ret = wasm.restore_rgb_data(ptr0, len0);
885
+ return ret;
886
+ }
887
+
888
+ /**
889
+ * @returns {Promise<any>}
890
+ */
891
+ export function get_network() {
892
+ const ret = wasm.get_network();
893
+ return ret;
894
+ }
895
+
896
+ /**
897
+ * @param {string} network_str
898
+ * @returns {Promise<any>}
899
+ */
900
+ export function switch_network(network_str) {
901
+ const ptr0 = passStringToWasm0(network_str, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
902
+ const len0 = WASM_VECTOR_LEN;
903
+ const ret = wasm.switch_network(ptr0, len0);
904
+ return ret;
905
+ }
906
+
907
+ /**
908
+ * @param {string} key
909
+ * @returns {Promise<any>}
910
+ */
911
+ export function get_env(key) {
912
+ const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
913
+ const len0 = WASM_VECTOR_LEN;
914
+ const ret = wasm.get_env(ptr0, len0);
915
+ return ret;
916
+ }
917
+
918
+ /**
919
+ * @param {string} key
920
+ * @param {string} value
921
+ * @returns {Promise<any>}
922
+ */
923
+ export function set_env(key, value) {
924
+ const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
925
+ const len0 = WASM_VECTOR_LEN;
926
+ const ptr1 = passStringToWasm0(value, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
927
+ const len1 = WASM_VECTOR_LEN;
928
+ const ret = wasm.set_env(ptr0, len0, ptr1, len1);
929
+ return ret;
930
+ }
931
+
932
+ /**
933
+ * @param {number} ms
934
+ * @returns {Promise<any>}
935
+ */
936
+ export function sleep(ms) {
937
+ const ret = wasm.sleep(ms);
938
+ return ret;
939
+ }
940
+
941
+ /**
942
+ * @param {string} decimal
943
+ * @param {number} precision
944
+ * @returns {string}
945
+ */
946
+ export function convert_contract_amount_raw(decimal, precision) {
947
+ let deferred2_0;
948
+ let deferred2_1;
949
+ try {
950
+ const ptr0 = passStringToWasm0(decimal, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
951
+ const len0 = WASM_VECTOR_LEN;
952
+ const ret = wasm.convert_contract_amount_raw(ptr0, len0, precision);
953
+ deferred2_0 = ret[0];
954
+ deferred2_1 = ret[1];
955
+ return getStringFromWasm0(ret[0], ret[1]);
956
+ } finally {
957
+ wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
958
+ }
959
+ }
960
+
961
+ /**
962
+ * @param {bigint} amount
963
+ * @param {number} precision
964
+ * @returns {string}
965
+ */
966
+ export function convert_contract_amount_string(amount, precision) {
967
+ let deferred1_0;
968
+ let deferred1_1;
969
+ try {
970
+ const ret = wasm.convert_contract_amount_string(amount, precision);
971
+ deferred1_0 = ret[0];
972
+ deferred1_1 = ret[1];
973
+ return getStringFromWasm0(ret[0], ret[1]);
974
+ } finally {
975
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
976
+ }
977
+ }
978
+
979
+ /**
980
+ * @param {string} amount
981
+ * @returns {any}
982
+ */
983
+ export function parse_contract_amount(amount) {
984
+ const ptr0 = passStringToWasm0(amount, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
985
+ const len0 = WASM_VECTOR_LEN;
986
+ const ret = wasm.parse_contract_amount(ptr0, len0);
987
+ return ret;
988
+ }
989
+
990
+ /**
991
+ * @param {string} amount
992
+ * @param {number} precision
993
+ * @returns {string}
994
+ */
995
+ export function parse_contract_amount_precision(amount, precision) {
996
+ let deferred2_0;
997
+ let deferred2_1;
998
+ try {
999
+ const ptr0 = passStringToWasm0(amount, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1000
+ const len0 = WASM_VECTOR_LEN;
1001
+ const ret = wasm.parse_contract_amount_precision(ptr0, len0, precision);
1002
+ deferred2_0 = ret[0];
1003
+ deferred2_1 = ret[1];
1004
+ return getStringFromWasm0(ret[0], ret[1]);
1005
+ } finally {
1006
+ wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
1007
+ }
1008
+ }
1009
+
1010
+ /**
1011
+ * @returns {any}
1012
+ */
1013
+ export function version() {
1014
+ const ret = wasm.version();
1015
+ return ret;
1016
+ }
1017
+
1018
+ /**
1019
+ * @param {string} username
1020
+ * @param {string} password
1021
+ * @returns {Promise<any>}
1022
+ */
1023
+ export function create_wallet(username, password) {
1024
+ const ptr0 = passStringToWasm0(username, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1025
+ const len0 = WASM_VECTOR_LEN;
1026
+ const ptr1 = passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1027
+ const len1 = WASM_VECTOR_LEN;
1028
+ const ret = wasm.create_wallet(ptr0, len0, ptr1, len1);
1029
+ return ret;
1030
+ }
1031
+
1032
+ /**
1033
+ * @param {string} username
1034
+ * @param {string} password
1035
+ * @returns {Promise<any>}
1036
+ */
1037
+ export function auth(username, password) {
1038
+ const ptr0 = passStringToWasm0(username, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1039
+ const len0 = WASM_VECTOR_LEN;
1040
+ const ptr1 = passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1041
+ const len1 = WASM_VECTOR_LEN;
1042
+ const ret = wasm.auth(ptr0, len0, ptr1, len1);
1043
+ return ret;
1044
+ }
1045
+
1046
+ /**
1047
+ * @param {string} description
1048
+ * @param {number} amount
1049
+ * @param {string} token
1050
+ * @returns {Promise<any>}
1051
+ */
1052
+ export function ln_create_invoice(description, amount, token) {
1053
+ const ptr0 = passStringToWasm0(description, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1054
+ const len0 = WASM_VECTOR_LEN;
1055
+ const ptr1 = passStringToWasm0(token, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1056
+ const len1 = WASM_VECTOR_LEN;
1057
+ const ret = wasm.ln_create_invoice(ptr0, len0, amount, ptr1, len1);
1058
+ return ret;
1059
+ }
1060
+
1061
+ /**
1062
+ * @param {string} token
1063
+ * @returns {Promise<any>}
1064
+ */
1065
+ export function get_balance(token) {
1066
+ const ptr0 = passStringToWasm0(token, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1067
+ const len0 = WASM_VECTOR_LEN;
1068
+ const ret = wasm.get_balance(ptr0, len0);
1069
+ return ret;
1070
+ }
1071
+
1072
+ /**
1073
+ * @param {string} token
1074
+ * @returns {Promise<any>}
1075
+ */
1076
+ export function get_txs(token) {
1077
+ const ptr0 = passStringToWasm0(token, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1078
+ const len0 = WASM_VECTOR_LEN;
1079
+ const ret = wasm.get_txs(ptr0, len0);
1080
+ return ret;
1081
+ }
1082
+
1083
+ /**
1084
+ * @param {string} payment_request
1085
+ * @param {string} token
1086
+ * @returns {Promise<any>}
1087
+ */
1088
+ export function pay_invoice(payment_request, token) {
1089
+ const ptr0 = passStringToWasm0(payment_request, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1090
+ const len0 = WASM_VECTOR_LEN;
1091
+ const ptr1 = passStringToWasm0(token, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1092
+ const len1 = WASM_VECTOR_LEN;
1093
+ const ret = wasm.pay_invoice(ptr0, len0, ptr1, len1);
1094
+ return ret;
1095
+ }
1096
+
1097
+ /**
1098
+ * @param {string} payment_hash
1099
+ * @returns {Promise<any>}
1100
+ */
1101
+ export function check_payment(payment_hash) {
1102
+ const ptr0 = passStringToWasm0(payment_hash, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1103
+ const len0 = WASM_VECTOR_LEN;
1104
+ const ret = wasm.check_payment(ptr0, len0);
1105
+ return ret;
1106
+ }
1107
+
1108
+ /**
1109
+ * @param {string} token
1110
+ * @param {string | null} [ln_address]
1111
+ * @returns {Promise<any>}
1112
+ */
1113
+ export function swap_btc_ln(token, ln_address) {
1114
+ const ptr0 = passStringToWasm0(token, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1115
+ const len0 = WASM_VECTOR_LEN;
1116
+ var ptr1 = isLikeNone(ln_address) ? 0 : passStringToWasm0(ln_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1117
+ var len1 = WASM_VECTOR_LEN;
1118
+ const ret = wasm.swap_btc_ln(ptr0, len0, ptr1, len1);
1119
+ return ret;
1120
+ }
1121
+
1122
+ /**
1123
+ * @param {string} address
1124
+ * @param {bigint} amount
1125
+ * @param {string} token
1126
+ * @returns {Promise<any>}
1127
+ */
1128
+ export function swap_ln_btc(address, amount, token) {
1129
+ const ptr0 = passStringToWasm0(address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1130
+ const len0 = WASM_VECTOR_LEN;
1131
+ const ptr1 = passStringToWasm0(token, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1132
+ const len1 = WASM_VECTOR_LEN;
1133
+ const ret = wasm.swap_ln_btc(ptr0, len0, amount, ptr1, len1);
1134
+ return ret;
1135
+ }
1136
+
1137
+ /**
1138
+ * @param {string} sk
1139
+ * @param {number} fee_rate
1140
+ * @param {any} secrets
1141
+ * @param {boolean} broadcast
1142
+ * @param {bigint | null | undefined} fund_value
1143
+ * @param {boolean} coordinator_fee
1144
+ * @returns {Promise<any>}
1145
+ */
1146
+ export function fund_rgb_vault(sk, fee_rate, secrets, broadcast, fund_value, coordinator_fee) {
1147
+ const ptr0 = passStringToWasm0(sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1148
+ const len0 = WASM_VECTOR_LEN;
1149
+ const ret = wasm.fund_rgb_vault(ptr0, len0, fee_rate, secrets, broadcast, !isLikeNone(fund_value), isLikeNone(fund_value) ? BigInt(0) : fund_value, coordinator_fee);
1150
+ return ret;
1151
+ }
1152
+
1153
+ /**
1154
+ * @param {string} sk
1155
+ * @param {string} address
1156
+ * @param {bigint} sats
1157
+ * @param {number} fee_rate
1158
+ * @param {any} secrets
1159
+ * @returns {Promise<any>}
1160
+ */
1161
+ export function transfer_sats(sk, address, sats, fee_rate, secrets) {
1162
+ const ptr0 = passStringToWasm0(sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1163
+ const len0 = WASM_VECTOR_LEN;
1164
+ const ptr1 = passStringToWasm0(address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1165
+ const len1 = WASM_VECTOR_LEN;
1166
+ const ret = wasm.transfer_sats(ptr0, len0, ptr1, len1, sats, fee_rate, secrets);
1167
+ return ret;
1168
+ }
1169
+
1170
+ /**
1171
+ * @param {string} sk
1172
+ * @returns {Promise<any>}
1173
+ */
1174
+ export function get_btc_wallet(sk) {
1175
+ const ptr0 = passStringToWasm0(sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1176
+ const len0 = WASM_VECTOR_LEN;
1177
+ const ret = wasm.get_btc_wallet(ptr0, len0);
1178
+ return ret;
1179
+ }
1180
+
1181
+ /**
1182
+ * @param {string} nostr_hex_sk
1183
+ * @returns {Promise<any>}
1184
+ */
1185
+ export function backup_btc_data(nostr_hex_sk) {
1186
+ const ptr0 = passStringToWasm0(nostr_hex_sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1187
+ const len0 = WASM_VECTOR_LEN;
1188
+ const ret = wasm.backup_btc_data(ptr0, len0);
1189
+ return ret;
1190
+ }
1191
+
1192
+ /**
1193
+ * @param {string} seed
1194
+ * @param {string} pass_phrase
1195
+ * @param {string} recover_address
1196
+ * @returns {Promise<any>}
1197
+ */
1198
+ export function recover_funds_from_bad_wallets(seed, pass_phrase, recover_address) {
1199
+ const ptr0 = passStringToWasm0(seed, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1200
+ const len0 = WASM_VECTOR_LEN;
1201
+ const ptr1 = passStringToWasm0(pass_phrase, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1202
+ const len1 = WASM_VECTOR_LEN;
1203
+ const ptr2 = passStringToWasm0(recover_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1204
+ const len2 = WASM_VECTOR_LEN;
1205
+ const ret = wasm.recover_funds_from_bad_wallets(ptr0, len0, ptr1, len1, ptr2, len2);
1206
+ return ret;
1207
+ }
1208
+
1209
+ /**
1210
+ * @param {string} nostr_hex_sk
1211
+ * @returns {Promise<any>}
1212
+ */
1213
+ export function restore_btc_data(nostr_hex_sk) {
1214
+ const ptr0 = passStringToWasm0(nostr_hex_sk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1215
+ const len0 = WASM_VECTOR_LEN;
1216
+ const ret = wasm.restore_btc_data(ptr0, len0);
1217
+ return ret;
1218
+ }
1219
+
1220
+ /**
1221
+ * @param {string} pubkey
1222
+ * @param {string} token
1223
+ * @returns {Promise<any>}
1224
+ */
1225
+ export function new_nostr_pubkey(pubkey, token) {
1226
+ const ptr0 = passStringToWasm0(pubkey, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1227
+ const len0 = WASM_VECTOR_LEN;
1228
+ const ptr1 = passStringToWasm0(token, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1229
+ const len1 = WASM_VECTOR_LEN;
1230
+ const ret = wasm.new_nostr_pubkey(ptr0, len0, ptr1, len1);
1231
+ return ret;
1232
+ }
1233
+
1234
+ /**
1235
+ * @param {string} pubkey
1236
+ * @param {string} token
1237
+ * @returns {Promise<any>}
1238
+ */
1239
+ export function update_nostr_pubkey(pubkey, token) {
1240
+ const ptr0 = passStringToWasm0(pubkey, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1241
+ const len0 = WASM_VECTOR_LEN;
1242
+ const ptr1 = passStringToWasm0(token, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1243
+ const len1 = WASM_VECTOR_LEN;
1244
+ const ret = wasm.update_nostr_pubkey(ptr0, len0, ptr1, len1);
1245
+ return ret;
1246
+ }
1247
+
1248
+ /**
1249
+ * @param {string} password
1250
+ * @returns {string}
1251
+ */
1252
+ export function hash_password(password) {
1253
+ let deferred2_0;
1254
+ let deferred2_1;
1255
+ try {
1256
+ const ptr0 = passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1257
+ const len0 = WASM_VECTOR_LEN;
1258
+ const ret = wasm.hash_password(ptr0, len0);
1259
+ deferred2_0 = ret[0];
1260
+ deferred2_1 = ret[1];
1261
+ return getStringFromWasm0(ret[0], ret[1]);
1262
+ } finally {
1263
+ wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
1264
+ }
1265
+ }
1266
+
1267
+ /**
1268
+ * @param {string} password
1269
+ * @returns {Promise<any>}
1270
+ */
1271
+ export function new_mnemonic(password) {
1272
+ const ptr0 = passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1273
+ const len0 = WASM_VECTOR_LEN;
1274
+ const ret = wasm.new_mnemonic(ptr0, len0);
1275
+ return ret;
1276
+ }
1277
+
1278
+ /**
1279
+ * @param {string} seed
1280
+ * @param {string} password
1281
+ * @returns {Promise<any>}
1282
+ */
1283
+ export function save_mnemonic(seed, password) {
1284
+ const ptr0 = passStringToWasm0(seed, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1285
+ const len0 = WASM_VECTOR_LEN;
1286
+ const ptr1 = passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1287
+ const len1 = WASM_VECTOR_LEN;
1288
+ const ret = wasm.save_mnemonic(ptr0, len0, ptr1, len1);
1289
+ return ret;
1290
+ }
1291
+
1292
+ /**
1293
+ * @param {string} hash
1294
+ * @param {string} encrypted_descriptors
1295
+ * @param {string} seed_password
1296
+ * @returns {Promise<any>}
1297
+ */
1298
+ export function decrypt_wallet(hash, encrypted_descriptors, seed_password) {
1299
+ const ptr0 = passStringToWasm0(hash, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1300
+ const len0 = WASM_VECTOR_LEN;
1301
+ const ptr1 = passStringToWasm0(encrypted_descriptors, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1302
+ const len1 = WASM_VECTOR_LEN;
1303
+ const ptr2 = passStringToWasm0(seed_password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1304
+ const len2 = WASM_VECTOR_LEN;
1305
+ const ret = wasm.decrypt_wallet(ptr0, len0, ptr1, len1, ptr2, len2);
1306
+ return ret;
1307
+ }
1308
+
1309
+ /**
1310
+ * @param {string} hash
1311
+ * @param {string} encrypted_descriptors
1312
+ * @param {string} seed_password
1313
+ * @returns {Promise<any>}
1314
+ */
1315
+ export function upgrade_wallet(hash, encrypted_descriptors, seed_password) {
1316
+ const ptr0 = passStringToWasm0(hash, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1317
+ const len0 = WASM_VECTOR_LEN;
1318
+ const ptr1 = passStringToWasm0(encrypted_descriptors, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1319
+ const len1 = WASM_VECTOR_LEN;
1320
+ const ptr2 = passStringToWasm0(seed_password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1321
+ const len2 = WASM_VECTOR_LEN;
1322
+ const ret = wasm.upgrade_wallet(ptr0, len0, ptr1, len1, ptr2, len2);
1323
+ return ret;
1324
+ }
1325
+
1326
+ /**
1327
+ * @param {string} hash
1328
+ * @param {string} seed_password
1329
+ * @returns {Promise<any>}
1330
+ */
1331
+ export function new_wallet(hash, seed_password) {
1332
+ const ptr0 = passStringToWasm0(hash, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1333
+ const len0 = WASM_VECTOR_LEN;
1334
+ const ptr1 = passStringToWasm0(seed_password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1335
+ const len1 = WASM_VECTOR_LEN;
1336
+ const ret = wasm.new_wallet(ptr0, len0, ptr1, len1);
1337
+ return ret;
1338
+ }
1339
+
1340
+ /**
1341
+ * @param {string} mnemonic
1342
+ * @param {string} hash
1343
+ * @param {string} seed_password
1344
+ * @returns {Promise<any>}
1345
+ */
1346
+ export function encrypt_wallet(mnemonic, hash, seed_password) {
1347
+ const ptr0 = passStringToWasm0(mnemonic, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1348
+ const len0 = WASM_VECTOR_LEN;
1349
+ const ptr1 = passStringToWasm0(hash, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1350
+ const len1 = WASM_VECTOR_LEN;
1351
+ const ptr2 = passStringToWasm0(seed_password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1352
+ const len2 = WASM_VECTOR_LEN;
1353
+ const ret = wasm.encrypt_wallet(ptr0, len0, ptr1, len1, ptr2, len2);
1354
+ return ret;
1355
+ }
1356
+
1357
+ /**
1358
+ * @param {string} descriptor
1359
+ * @param {string | null} [change_descriptor]
1360
+ * @returns {Promise<any>}
1361
+ */
1362
+ export function get_wallet_data(descriptor, change_descriptor) {
1363
+ const ptr0 = passStringToWasm0(descriptor, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1364
+ const len0 = WASM_VECTOR_LEN;
1365
+ var ptr1 = isLikeNone(change_descriptor) ? 0 : passStringToWasm0(change_descriptor, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1366
+ var len1 = WASM_VECTOR_LEN;
1367
+ const ret = wasm.get_wallet_data(ptr0, len0, ptr1, len1);
1368
+ return ret;
1369
+ }
1370
+
1371
+ /**
1372
+ * @returns {Promise<any>}
1373
+ */
1374
+ export function sync_wallets() {
1375
+ const ret = wasm.sync_wallets();
1376
+ return ret;
1377
+ }
1378
+
1379
+ /**
1380
+ * @param {string} descriptor
1381
+ * @param {string | null} [change_descriptor]
1382
+ * @returns {Promise<any>}
1383
+ */
1384
+ export function get_new_address(descriptor, change_descriptor) {
1385
+ const ptr0 = passStringToWasm0(descriptor, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1386
+ const len0 = WASM_VECTOR_LEN;
1387
+ var ptr1 = isLikeNone(change_descriptor) ? 0 : passStringToWasm0(change_descriptor, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1388
+ var len1 = WASM_VECTOR_LEN;
1389
+ const ret = wasm.get_new_address(ptr0, len0, ptr1, len1);
1390
+ return ret;
1391
+ }
1392
+
1393
+ /**
1394
+ * @param {string} descriptor
1395
+ * @param {string} change_descriptor
1396
+ * @param {string} destination
1397
+ * @param {bigint} amount
1398
+ * @param {boolean} broadcast
1399
+ * @param {number | null} [fee_rate]
1400
+ * @returns {Promise<any>}
1401
+ */
1402
+ export function send_sats(descriptor, change_descriptor, destination, amount, broadcast, fee_rate) {
1403
+ const ptr0 = passStringToWasm0(descriptor, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1404
+ const len0 = WASM_VECTOR_LEN;
1405
+ const ptr1 = passStringToWasm0(change_descriptor, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1406
+ const len1 = WASM_VECTOR_LEN;
1407
+ const ptr2 = passStringToWasm0(destination, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1408
+ const len2 = WASM_VECTOR_LEN;
1409
+ const ret = wasm.send_sats(ptr0, len0, ptr1, len1, ptr2, len2, amount, broadcast, isLikeNone(fee_rate) ? 0x100000001 : Math.fround(fee_rate));
1410
+ return ret;
1411
+ }
1412
+
1413
+ /**
1414
+ * @param {string} descriptor
1415
+ * @param {string} change_descriptor
1416
+ * @param {string} rgb_address
1417
+ * @param {boolean} broadcast
1418
+ * @param {number | null} [fee_rate]
1419
+ * @returns {Promise<any>}
1420
+ */
1421
+ export function fund_vault(descriptor, change_descriptor, rgb_address, broadcast, fee_rate) {
1422
+ const ptr0 = passStringToWasm0(descriptor, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1423
+ const len0 = WASM_VECTOR_LEN;
1424
+ const ptr1 = passStringToWasm0(change_descriptor, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1425
+ const len1 = WASM_VECTOR_LEN;
1426
+ const ptr2 = passStringToWasm0(rgb_address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1427
+ const len2 = WASM_VECTOR_LEN;
1428
+ const ret = wasm.fund_vault(ptr0, len0, ptr1, len1, ptr2, len2, broadcast, isLikeNone(fee_rate) ? 0x100000001 : Math.fround(fee_rate));
1429
+ return ret;
1430
+ }
1431
+
1432
+ /**
1433
+ * @param {string} rgb_descriptor_xpub
1434
+ * @returns {Promise<any>}
1435
+ */
1436
+ export function get_assets_vault(rgb_descriptor_xpub) {
1437
+ const ptr0 = passStringToWasm0(rgb_descriptor_xpub, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1438
+ const len0 = WASM_VECTOR_LEN;
1439
+ const ret = wasm.get_assets_vault(ptr0, len0);
1440
+ return ret;
1441
+ }
1442
+
1443
+ /**
1444
+ * @param {string} destination
1445
+ * @param {string} descriptor
1446
+ * @param {string | null} [change_descriptor]
1447
+ * @param {number | null} [fee_rate]
1448
+ * @returns {Promise<any>}
1449
+ */
1450
+ export function drain_wallet(destination, descriptor, change_descriptor, fee_rate) {
1451
+ const ptr0 = passStringToWasm0(destination, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1452
+ const len0 = WASM_VECTOR_LEN;
1453
+ const ptr1 = passStringToWasm0(descriptor, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1454
+ const len1 = WASM_VECTOR_LEN;
1455
+ var ptr2 = isLikeNone(change_descriptor) ? 0 : passStringToWasm0(change_descriptor, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1456
+ var len2 = WASM_VECTOR_LEN;
1457
+ const ret = wasm.drain_wallet(ptr0, len0, ptr1, len1, ptr2, len2, isLikeNone(fee_rate) ? 0x100000001 : Math.fround(fee_rate));
1458
+ return ret;
1459
+ }
1460
+
1461
+ /**
1462
+ * @param {string} txid
1463
+ * @param {number} fee_rate
1464
+ * @param {string} descriptor
1465
+ * @param {string | null | undefined} change_descriptor
1466
+ * @param {boolean} broadcast
1467
+ * @returns {Promise<any>}
1468
+ */
1469
+ export function bump_fee(txid, fee_rate, descriptor, change_descriptor, broadcast) {
1470
+ const ptr0 = passStringToWasm0(txid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1471
+ const len0 = WASM_VECTOR_LEN;
1472
+ const ptr1 = passStringToWasm0(descriptor, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1473
+ const len1 = WASM_VECTOR_LEN;
1474
+ var ptr2 = isLikeNone(change_descriptor) ? 0 : passStringToWasm0(change_descriptor, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1475
+ var len2 = WASM_VECTOR_LEN;
1476
+ const ret = wasm.bump_fee(ptr0, len0, fee_rate, ptr1, len1, ptr2, len2, broadcast);
1477
+ return ret;
1478
+ }
1479
+
1480
+ /**
1481
+ * @param {any} request
1482
+ * @returns {Promise<any>}
1483
+ */
1484
+ export function psbt_sign_and_publish_file(request) {
1485
+ const ret = wasm.psbt_sign_and_publish_file(request);
1486
+ return ret;
1487
+ }
1488
+
1489
+ /**
1490
+ * @param {any} request
1491
+ * @returns {Promise<any>}
1492
+ */
1493
+ export function psbt_publish_file(request) {
1494
+ const ret = wasm.psbt_publish_file(request);
1495
+ return ret;
1496
+ }
1497
+
1498
+ function __wbg_adapter_54(arg0, arg1, arg2) {
1499
+ wasm.closure1855_externref_shim(arg0, arg1, arg2);
1500
+ }
1501
+
1502
+ function __wbg_adapter_57(arg0, arg1, arg2) {
1503
+ wasm.closure1997_externref_shim(arg0, arg1, arg2);
1504
+ }
1505
+
1506
+ function __wbg_adapter_60(arg0, arg1, arg2) {
1507
+ wasm.closure2665_externref_shim(arg0, arg1, arg2);
1508
+ }
1509
+
1510
+ function __wbg_adapter_63(arg0, arg1, arg2) {
1511
+ wasm.closure3825_externref_shim(arg0, arg1, arg2);
1512
+ }
1513
+
1514
+ function __wbg_adapter_416(arg0, arg1, arg2, arg3) {
1515
+ wasm.closure4113_externref_shim(arg0, arg1, arg2, arg3);
1516
+ }
1517
+
1518
+ const __wbindgen_enum_IdbTransactionMode = ["readonly", "readwrite", "versionchange", "readwriteflush", "cleanup"];
1519
+
1520
+ const __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"];
1521
+
1522
+ const __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate"];
1523
+
1524
+ export function __wbg_String_8f0eb39a4a4c2f66(arg0, arg1) {
1525
+ const ret = String(arg1);
1526
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1527
+ const len1 = WASM_VECTOR_LEN;
1528
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1529
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1530
+ };
1531
+
1532
+ export function __wbg_abort_775ef1d17fc65868(arg0) {
1533
+ arg0.abort();
1534
+ };
1535
+
1536
+ export function __wbg_allSettled_d6c2eb0382f2fff9(arg0) {
1537
+ const ret = Promise.allSettled(arg0);
1538
+ return ret;
1539
+ };
1540
+
1541
+ export function __wbg_any_8f7b1d9e103c57f1(arg0) {
1542
+ const ret = Promise.any(arg0);
1543
+ return ret;
1544
+ };
1545
+
1546
+ export function __wbg_append_299d5d48292c0495() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1547
+ arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
1548
+ }, arguments) };
1549
+
1550
+ export function __wbg_append_8c7dd8d641a5f01b() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1551
+ arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
1552
+ }, arguments) };
1553
+
1554
+ export function __wbg_append_b2d1fc16de2a0e81() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
1555
+ arg0.append(getStringFromWasm0(arg1, arg2), arg3, getStringFromWasm0(arg4, arg5));
1556
+ }, arguments) };
1557
+
1558
+ export function __wbg_append_b44785ebeb668479() { return handleError(function (arg0, arg1, arg2, arg3) {
1559
+ arg0.append(getStringFromWasm0(arg1, arg2), arg3);
1560
+ }, arguments) };
1561
+
1562
+ export function __wbg_arrayBuffer_d1b44c4390db422f() { return handleError(function (arg0) {
1563
+ const ret = arg0.arrayBuffer();
1564
+ return ret;
1565
+ }, arguments) };
1566
+
1567
+ export function __wbg_buffer_609cc3eee51ed158(arg0) {
1568
+ const ret = arg0.buffer;
1569
+ return ret;
1570
+ };
1571
+
1572
+ export function __wbg_call_672a4d21634d4a24() { return handleError(function (arg0, arg1) {
1573
+ const ret = arg0.call(arg1);
1574
+ return ret;
1575
+ }, arguments) };
1576
+
1577
+ export function __wbg_call_7cccdd69e0791ae2() { return handleError(function (arg0, arg1, arg2) {
1578
+ const ret = arg0.call(arg1, arg2);
1579
+ return ret;
1580
+ }, arguments) };
1581
+
1582
+ export function __wbg_close_26fc2e6856d8567a(arg0) {
1583
+ arg0.close();
1584
+ };
1585
+
1586
+ export function __wbg_commit_ee33ba79d75a9134() { return handleError(function (arg0) {
1587
+ arg0.commit();
1588
+ }, arguments) };
1589
+
1590
+ export function __wbg_createIndex_873ac48adc772309() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1591
+ const ret = arg0.createIndex(getStringFromWasm0(arg1, arg2), arg3, arg4);
1592
+ return ret;
1593
+ }, arguments) };
1594
+
1595
+ export function __wbg_createObjectStore_d2f9e1016f4d81b9() { return handleError(function (arg0, arg1, arg2, arg3) {
1596
+ const ret = arg0.createObjectStore(getStringFromWasm0(arg1, arg2), arg3);
1597
+ return ret;
1598
+ }, arguments) };
1599
+
1600
+ export function __wbg_crypto_8b2f439d7d40e47c(arg0) {
1601
+ const ret = arg0.crypto;
1602
+ return ret;
1603
+ };
1604
+
1605
+ export function __wbg_debug_07010e9cfe65fce9(arg0, arg1) {
1606
+ var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
1607
+ wasm.__wbindgen_free(arg0, arg1 * 4, 4);
1608
+ console.debug(...v0);
1609
+ };
1610
+
1611
+ export function __wbg_deleteDatabase_b8f234aeb7ad3452() { return handleError(function (arg0, arg1, arg2) {
1612
+ const ret = arg0.deleteDatabase(getStringFromWasm0(arg1, arg2));
1613
+ return ret;
1614
+ }, arguments) };
1615
+
1616
+ export function __wbg_deleteIndex_e6717aa0e9691894() { return handleError(function (arg0, arg1, arg2) {
1617
+ arg0.deleteIndex(getStringFromWasm0(arg1, arg2));
1618
+ }, arguments) };
1619
+
1620
+ export function __wbg_deleteObjectStore_3f08ae00cd288224() { return handleError(function (arg0, arg1, arg2) {
1621
+ arg0.deleteObjectStore(getStringFromWasm0(arg1, arg2));
1622
+ }, arguments) };
1623
+
1624
+ export function __wbg_done_769e5ede4b31c67b(arg0) {
1625
+ const ret = arg0.done;
1626
+ return ret;
1627
+ };
1628
+
1629
+ export function __wbg_entries_3265d4158b33e5dc(arg0) {
1630
+ const ret = Object.entries(arg0);
1631
+ return ret;
1632
+ };
1633
+
1634
+ export function __wbg_error_3c7d958458bf649b(arg0, arg1) {
1635
+ var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
1636
+ wasm.__wbindgen_free(arg0, arg1 * 4, 4);
1637
+ console.error(...v0);
1638
+ };
1639
+
1640
+ export function __wbg_error_7534b8e9a36f1ab4(arg0, arg1) {
1641
+ let deferred0_0;
1642
+ let deferred0_1;
1643
+ try {
1644
+ deferred0_0 = arg0;
1645
+ deferred0_1 = arg1;
1646
+ console.error(getStringFromWasm0(arg0, arg1));
1647
+ } finally {
1648
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
1649
+ }
1650
+ };
1651
+
1652
+ export function __wbg_error_e9332df4e7a14612(arg0) {
1653
+ const ret = arg0.error;
1654
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1655
+ };
1656
+
1657
+ export function __wbg_error_ff4ddaabdfc5dbb3() { return handleError(function (arg0) {
1658
+ const ret = arg0.error;
1659
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1660
+ }, arguments) };
1661
+
1662
+ export function __wbg_fetch_509096533071c657(arg0, arg1) {
1663
+ const ret = arg0.fetch(arg1);
1664
+ return ret;
1665
+ };
1666
+
1667
+ export function __wbg_fetch_6397c767b06a0785(arg0) {
1668
+ const ret = fetch(arg0);
1669
+ return ret;
1670
+ };
1671
+
1672
+ export function __wbg_fetch_b335d17f45a8b5a1(arg0) {
1673
+ const ret = fetch(arg0);
1674
+ return ret;
1675
+ };
1676
+
1677
+ export function __wbg_fetch_b7bf320f681242d2(arg0, arg1) {
1678
+ const ret = arg0.fetch(arg1);
1679
+ return ret;
1680
+ };
1681
+
1682
+ export function __wbg_getRandomValues_1c61fac11405ffdc() { return handleError(function (arg0, arg1) {
1683
+ globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
1684
+ }, arguments) };
1685
+
1686
+ export function __wbg_getRandomValues_7b17ba35056bcdd1() { return handleError(function (arg0, arg1) {
1687
+ arg0.getRandomValues(arg1);
1688
+ }, arguments) };
1689
+
1690
+ export function __wbg_getTime_46267b1c24877e30(arg0) {
1691
+ const ret = arg0.getTime();
1692
+ return ret;
1693
+ };
1694
+
1695
+ export function __wbg_get_4f73335ab78445db(arg0, arg1, arg2) {
1696
+ const ret = arg1[arg2 >>> 0];
1697
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1698
+ var len1 = WASM_VECTOR_LEN;
1699
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1700
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1701
+ };
1702
+
1703
+ export function __wbg_get_67b2ba62fc30de12() { return handleError(function (arg0, arg1) {
1704
+ const ret = Reflect.get(arg0, arg1);
1705
+ return ret;
1706
+ }, arguments) };
1707
+
1708
+ export function __wbg_get_8da03f81f6a1111e() { return handleError(function (arg0, arg1) {
1709
+ const ret = arg0.get(arg1);
1710
+ return ret;
1711
+ }, arguments) };
1712
+
1713
+ export function __wbg_get_b9b93047fe3cf45b(arg0, arg1) {
1714
+ const ret = arg0[arg1 >>> 0];
1715
+ return ret;
1716
+ };
1717
+
1718
+ export function __wbg_getwithrefkey_1dc361bd10053bfe(arg0, arg1) {
1719
+ const ret = arg0[arg1];
1720
+ return ret;
1721
+ };
1722
+
1723
+ export function __wbg_has_a5ea9117f258a0ec() { return handleError(function (arg0, arg1) {
1724
+ const ret = Reflect.has(arg0, arg1);
1725
+ return ret;
1726
+ }, arguments) };
1727
+
1728
+ export function __wbg_headers_9cb51cfd2ac780a4(arg0) {
1729
+ const ret = arg0.headers;
1730
+ return ret;
1731
+ };
1732
+
1733
+ export function __wbg_indexNames_0ed82a19d7d88aa3(arg0) {
1734
+ const ret = arg0.indexNames;
1735
+ return ret;
1736
+ };
1737
+
1738
+ export function __wbg_index_e00ca5fff206ee3e() { return handleError(function (arg0, arg1, arg2) {
1739
+ const ret = arg0.index(getStringFromWasm0(arg1, arg2));
1740
+ return ret;
1741
+ }, arguments) };
1742
+
1743
+ export function __wbg_info_638bd7b680bce79d(arg0, arg1) {
1744
+ var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
1745
+ wasm.__wbindgen_free(arg0, arg1 * 4, 4);
1746
+ console.info(...v0);
1747
+ };
1748
+
1749
+ export function __wbg_instanceof_ArrayBuffer_e14585432e3737fc(arg0) {
1750
+ let result;
1751
+ try {
1752
+ result = arg0 instanceof ArrayBuffer;
1753
+ } catch (_) {
1754
+ result = false;
1755
+ }
1756
+ const ret = result;
1757
+ return ret;
1758
+ };
1759
+
1760
+ export function __wbg_instanceof_Error_4d54113b22d20306(arg0) {
1761
+ let result;
1762
+ try {
1763
+ result = arg0 instanceof Error;
1764
+ } catch (_) {
1765
+ result = false;
1766
+ }
1767
+ const ret = result;
1768
+ return ret;
1769
+ };
1770
+
1771
+ export function __wbg_instanceof_IdbDatabase_a3ef009ca00059f9(arg0) {
1772
+ let result;
1773
+ try {
1774
+ result = arg0 instanceof IDBDatabase;
1775
+ } catch (_) {
1776
+ result = false;
1777
+ }
1778
+ const ret = result;
1779
+ return ret;
1780
+ };
1781
+
1782
+ export function __wbg_instanceof_IdbFactory_12eaba3366f4302f(arg0) {
1783
+ let result;
1784
+ try {
1785
+ result = arg0 instanceof IDBFactory;
1786
+ } catch (_) {
1787
+ result = false;
1788
+ }
1789
+ const ret = result;
1790
+ return ret;
1791
+ };
1792
+
1793
+ export function __wbg_instanceof_IdbOpenDbRequest_a3416e156c9db893(arg0) {
1794
+ let result;
1795
+ try {
1796
+ result = arg0 instanceof IDBOpenDBRequest;
1797
+ } catch (_) {
1798
+ result = false;
1799
+ }
1800
+ const ret = result;
1801
+ return ret;
1802
+ };
1803
+
1804
+ export function __wbg_instanceof_IdbRequest_4813c3f207666aa4(arg0) {
1805
+ let result;
1806
+ try {
1807
+ result = arg0 instanceof IDBRequest;
1808
+ } catch (_) {
1809
+ result = false;
1810
+ }
1811
+ const ret = result;
1812
+ return ret;
1813
+ };
1814
+
1815
+ export function __wbg_instanceof_IdbTransaction_746ea660d347650d(arg0) {
1816
+ let result;
1817
+ try {
1818
+ result = arg0 instanceof IDBTransaction;
1819
+ } catch (_) {
1820
+ result = false;
1821
+ }
1822
+ const ret = result;
1823
+ return ret;
1824
+ };
1825
+
1826
+ export function __wbg_instanceof_Response_f2cc20d9f7dfd644(arg0) {
1827
+ let result;
1828
+ try {
1829
+ result = arg0 instanceof Response;
1830
+ } catch (_) {
1831
+ result = false;
1832
+ }
1833
+ const ret = result;
1834
+ return ret;
1835
+ };
1836
+
1837
+ export function __wbg_instanceof_Uint8Array_17156bcf118086a9(arg0) {
1838
+ let result;
1839
+ try {
1840
+ result = arg0 instanceof Uint8Array;
1841
+ } catch (_) {
1842
+ result = false;
1843
+ }
1844
+ const ret = result;
1845
+ return ret;
1846
+ };
1847
+
1848
+ export function __wbg_instanceof_Window_def73ea0955fc569(arg0) {
1849
+ let result;
1850
+ try {
1851
+ result = arg0 instanceof Window;
1852
+ } catch (_) {
1853
+ result = false;
1854
+ }
1855
+ const ret = result;
1856
+ return ret;
1857
+ };
1858
+
1859
+ export function __wbg_instanceof_WorkerGlobalScope_dbdbdea7e3b56493(arg0) {
1860
+ let result;
1861
+ try {
1862
+ result = arg0 instanceof WorkerGlobalScope;
1863
+ } catch (_) {
1864
+ result = false;
1865
+ }
1866
+ const ret = result;
1867
+ return ret;
1868
+ };
1869
+
1870
+ export function __wbg_isArray_a1eab7e0d067391b(arg0) {
1871
+ const ret = Array.isArray(arg0);
1872
+ return ret;
1873
+ };
1874
+
1875
+ export function __wbg_isSafeInteger_343e2beeeece1bb0(arg0) {
1876
+ const ret = Number.isSafeInteger(arg0);
1877
+ return ret;
1878
+ };
1879
+
1880
+ export function __wbg_iterator_9a24c88df860dc65() {
1881
+ const ret = Symbol.iterator;
1882
+ return ret;
1883
+ };
1884
+
1885
+ export function __wbg_keyPath_443ecf3f74202169() { return handleError(function (arg0) {
1886
+ const ret = arg0.keyPath;
1887
+ return ret;
1888
+ }, arguments) };
1889
+
1890
+ export function __wbg_length_52b6c4580c5ec934(arg0) {
1891
+ const ret = arg0.length;
1892
+ return ret;
1893
+ };
1894
+
1895
+ export function __wbg_length_a446193dc22c12f8(arg0) {
1896
+ const ret = arg0.length;
1897
+ return ret;
1898
+ };
1899
+
1900
+ export function __wbg_length_e2d2a49132c1b256(arg0) {
1901
+ const ret = arg0.length;
1902
+ return ret;
1903
+ };
1904
+
1905
+ export function __wbg_log_c222819a41e063d3(arg0) {
1906
+ console.log(arg0);
1907
+ };
1908
+
1909
+ export function __wbg_message_97a2af9b89d693a3(arg0) {
1910
+ const ret = arg0.message;
1911
+ return ret;
1912
+ };
1913
+
1914
+ export function __wbg_msCrypto_592a45e469d83ced(arg0) {
1915
+ const ret = arg0.msCrypto;
1916
+ return ret;
1917
+ };
1918
+
1919
+ export function __wbg_multiEntry_c146ebd38a5de9ea(arg0) {
1920
+ const ret = arg0.multiEntry;
1921
+ return ret;
1922
+ };
1923
+
1924
+ export function __wbg_name_0b327d569f00ebee(arg0) {
1925
+ const ret = arg0.name;
1926
+ return ret;
1927
+ };
1928
+
1929
+ export function __wbg_new0_f788a2397c7ca929() {
1930
+ const ret = new Date();
1931
+ return ret;
1932
+ };
1933
+
1934
+ export function __wbg_new_018dcc2d6c8c2f6a() { return handleError(function () {
1935
+ const ret = new Headers();
1936
+ return ret;
1937
+ }, arguments) };
1938
+
1939
+ export function __wbg_new_23a2665fac83c611(arg0, arg1) {
1940
+ try {
1941
+ var state0 = {a: arg0, b: arg1};
1942
+ var cb0 = (arg0, arg1) => {
1943
+ const a = state0.a;
1944
+ state0.a = 0;
1945
+ try {
1946
+ return __wbg_adapter_416(a, state0.b, arg0, arg1);
1947
+ } finally {
1948
+ state0.a = a;
1949
+ }
1950
+ };
1951
+ const ret = new Promise(cb0);
1952
+ return ret;
1953
+ } finally {
1954
+ state0.a = state0.b = 0;
1955
+ }
1956
+ };
1957
+
1958
+ export function __wbg_new_405e22f390576ce2() {
1959
+ const ret = new Object();
1960
+ return ret;
1961
+ };
1962
+
1963
+ export function __wbg_new_78feb108b6472713() {
1964
+ const ret = new Array();
1965
+ return ret;
1966
+ };
1967
+
1968
+ export function __wbg_new_80bf4ee74f41ff92() { return handleError(function () {
1969
+ const ret = new URLSearchParams();
1970
+ return ret;
1971
+ }, arguments) };
1972
+
1973
+ export function __wbg_new_8a6f238a6ece86ea() {
1974
+ const ret = new Error();
1975
+ return ret;
1976
+ };
1977
+
1978
+ export function __wbg_new_9fd39a253424609a() { return handleError(function () {
1979
+ const ret = new FormData();
1980
+ return ret;
1981
+ }, arguments) };
1982
+
1983
+ export function __wbg_new_9ffbe0a71eff35e3() { return handleError(function (arg0, arg1) {
1984
+ const ret = new URL(getStringFromWasm0(arg0, arg1));
1985
+ return ret;
1986
+ }, arguments) };
1987
+
1988
+ export function __wbg_new_a12002a7f91c75be(arg0) {
1989
+ const ret = new Uint8Array(arg0);
1990
+ return ret;
1991
+ };
1992
+
1993
+ export function __wbg_new_e25e5aab09ff45db() { return handleError(function () {
1994
+ const ret = new AbortController();
1995
+ return ret;
1996
+ }, arguments) };
1997
+
1998
+ export function __wbg_newnoargs_105ed471475aaf50(arg0, arg1) {
1999
+ const ret = new Function(getStringFromWasm0(arg0, arg1));
2000
+ return ret;
2001
+ };
2002
+
2003
+ export function __wbg_newwithbyteoffsetandlength_d97e637ebe145a9a(arg0, arg1, arg2) {
2004
+ const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
2005
+ return ret;
2006
+ };
2007
+
2008
+ export function __wbg_newwithlength_a381634e90c276d4(arg0) {
2009
+ const ret = new Uint8Array(arg0 >>> 0);
2010
+ return ret;
2011
+ };
2012
+
2013
+ export function __wbg_newwithstr_78e86e03c4ae814e() { return handleError(function (arg0, arg1) {
2014
+ const ret = new Request(getStringFromWasm0(arg0, arg1));
2015
+ return ret;
2016
+ }, arguments) };
2017
+
2018
+ export function __wbg_newwithstrandinit_06c535e0a867c635() { return handleError(function (arg0, arg1, arg2) {
2019
+ const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
2020
+ return ret;
2021
+ }, arguments) };
2022
+
2023
+ export function __wbg_newwithu8arraysequence_1e24f242a67f6fdd() { return handleError(function (arg0) {
2024
+ const ret = new Blob(arg0);
2025
+ return ret;
2026
+ }, arguments) };
2027
+
2028
+ export function __wbg_newwithu8arraysequenceandoptions_068570c487f69127() { return handleError(function (arg0, arg1) {
2029
+ const ret = new Blob(arg0, arg1);
2030
+ return ret;
2031
+ }, arguments) };
2032
+
2033
+ export function __wbg_next_25feadfc0913fea9(arg0) {
2034
+ const ret = arg0.next;
2035
+ return ret;
2036
+ };
2037
+
2038
+ export function __wbg_next_6574e1a8a62d1055() { return handleError(function (arg0) {
2039
+ const ret = arg0.next();
2040
+ return ret;
2041
+ }, arguments) };
2042
+
2043
+ export function __wbg_node_6d722617e26f29f2(arg0) {
2044
+ const ret = arg0.node;
2045
+ return ret;
2046
+ };
2047
+
2048
+ export function __wbg_now_807e54c39636c349() {
2049
+ const ret = Date.now();
2050
+ return ret;
2051
+ };
2052
+
2053
+ export function __wbg_objectStoreNames_9bb1ab04a7012aaf(arg0) {
2054
+ const ret = arg0.objectStoreNames;
2055
+ return ret;
2056
+ };
2057
+
2058
+ export function __wbg_objectStore_21878d46d25b64b6() { return handleError(function (arg0, arg1, arg2) {
2059
+ const ret = arg0.objectStore(getStringFromWasm0(arg1, arg2));
2060
+ return ret;
2061
+ }, arguments) };
2062
+
2063
+ export function __wbg_open_88b1390d99a7c691() { return handleError(function (arg0, arg1, arg2) {
2064
+ const ret = arg0.open(getStringFromWasm0(arg1, arg2));
2065
+ return ret;
2066
+ }, arguments) };
2067
+
2068
+ export function __wbg_open_e0c0b2993eb596e1() { return handleError(function (arg0, arg1, arg2, arg3) {
2069
+ const ret = arg0.open(getStringFromWasm0(arg1, arg2), arg3 >>> 0);
2070
+ return ret;
2071
+ }, arguments) };
2072
+
2073
+ export function __wbg_process_d9ea7ce819197991(arg0) {
2074
+ const ret = arg0.process;
2075
+ return ret;
2076
+ };
2077
+
2078
+ export function __wbg_push_737cfc8c1432c2c6(arg0, arg1) {
2079
+ const ret = arg0.push(arg1);
2080
+ return ret;
2081
+ };
2082
+
2083
+ export function __wbg_put_066faa31a6a88f5b() { return handleError(function (arg0, arg1, arg2) {
2084
+ const ret = arg0.put(arg1, arg2);
2085
+ return ret;
2086
+ }, arguments) };
2087
+
2088
+ export function __wbg_put_9ef5363941008835() { return handleError(function (arg0, arg1) {
2089
+ const ret = arg0.put(arg1);
2090
+ return ret;
2091
+ }, arguments) };
2092
+
2093
+ export function __wbg_queueMicrotask_97d92b4fcc8a61c5(arg0) {
2094
+ queueMicrotask(arg0);
2095
+ };
2096
+
2097
+ export function __wbg_queueMicrotask_d3219def82552485(arg0) {
2098
+ const ret = arg0.queueMicrotask;
2099
+ return ret;
2100
+ };
2101
+
2102
+ export function __wbg_randomFillSync_e2ae5c896c5ec592() { return handleError(function (arg0, arg1) {
2103
+ arg0.randomFillSync(arg1);
2104
+ }, arguments) };
2105
+
2106
+ export function __wbg_require_d3a2417979c32e11() { return handleError(function () {
2107
+ const ret = module.require;
2108
+ return ret;
2109
+ }, arguments) };
2110
+
2111
+ export function __wbg_resolve_4851785c9c5f573d(arg0) {
2112
+ const ret = Promise.resolve(arg0);
2113
+ return ret;
2114
+ };
2115
+
2116
+ export function __wbg_result_f29afabdf2c05826() { return handleError(function (arg0) {
2117
+ const ret = arg0.result;
2118
+ return ret;
2119
+ }, arguments) };
2120
+
2121
+ export function __wbg_search_e0e79cfe010c5c23(arg0, arg1) {
2122
+ const ret = arg1.search;
2123
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2124
+ const len1 = WASM_VECTOR_LEN;
2125
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
2126
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2127
+ };
2128
+
2129
+ export function __wbg_setTimeout_f2fe5af8e3debeb3() { return handleError(function (arg0, arg1, arg2) {
2130
+ const ret = arg0.setTimeout(arg1, arg2);
2131
+ return ret;
2132
+ }, arguments) };
2133
+
2134
+ export function __wbg_set_11cd83f45504cedf() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
2135
+ arg0.set(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
2136
+ }, arguments) };
2137
+
2138
+ export function __wbg_set_65595bdd868b3009(arg0, arg1, arg2) {
2139
+ arg0.set(arg1, arg2 >>> 0);
2140
+ };
2141
+
2142
+ export function __wbg_setautoincrement_8b4327709e9ee7d9(arg0, arg1) {
2143
+ arg0.autoIncrement = arg1 !== 0;
2144
+ };
2145
+
2146
+ export function __wbg_setbody_5923b78a95eedf29(arg0, arg1) {
2147
+ arg0.body = arg1;
2148
+ };
2149
+
2150
+ export function __wbg_setcredentials_c3a22f1cd105a2c6(arg0, arg1) {
2151
+ arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
2152
+ };
2153
+
2154
+ export function __wbg_setheaders_834c0bdb6a8949ad(arg0, arg1) {
2155
+ arg0.headers = arg1;
2156
+ };
2157
+
2158
+ export function __wbg_setkeypath_691179e313c26ae1(arg0, arg1) {
2159
+ arg0.keyPath = arg1;
2160
+ };
2161
+
2162
+ export function __wbg_setmethod_3c5280fe5d890842(arg0, arg1, arg2) {
2163
+ arg0.method = getStringFromWasm0(arg1, arg2);
2164
+ };
2165
+
2166
+ export function __wbg_setmode_5dc300b865044b65(arg0, arg1) {
2167
+ arg0.mode = __wbindgen_enum_RequestMode[arg1];
2168
+ };
2169
+
2170
+ export function __wbg_setmultientry_4c4eee871f29837a(arg0, arg1) {
2171
+ arg0.multiEntry = arg1 !== 0;
2172
+ };
2173
+
2174
+ export function __wbg_setonabort_3bf4db6614fa98e9(arg0, arg1) {
2175
+ arg0.onabort = arg1;
2176
+ };
2177
+
2178
+ export function __wbg_setoncomplete_4d19df0dadb7c4d4(arg0, arg1) {
2179
+ arg0.oncomplete = arg1;
2180
+ };
2181
+
2182
+ export function __wbg_setonerror_b0d9d723b8fddbbb(arg0, arg1) {
2183
+ arg0.onerror = arg1;
2184
+ };
2185
+
2186
+ export function __wbg_setonerror_d7e3056cc6e56085(arg0, arg1) {
2187
+ arg0.onerror = arg1;
2188
+ };
2189
+
2190
+ export function __wbg_setonsuccess_afa464ee777a396d(arg0, arg1) {
2191
+ arg0.onsuccess = arg1;
2192
+ };
2193
+
2194
+ export function __wbg_setonupgradeneeded_fcf7ce4f2eb0cb5f(arg0, arg1) {
2195
+ arg0.onupgradeneeded = arg1;
2196
+ };
2197
+
2198
+ export function __wbg_setonversionchange_6ee07fa49ee1e3a5(arg0, arg1) {
2199
+ arg0.onversionchange = arg1;
2200
+ };
2201
+
2202
+ export function __wbg_setsearch_609451e9e712f3c6(arg0, arg1, arg2) {
2203
+ arg0.search = getStringFromWasm0(arg1, arg2);
2204
+ };
2205
+
2206
+ export function __wbg_setsignal_75b21ef3a81de905(arg0, arg1) {
2207
+ arg0.signal = arg1;
2208
+ };
2209
+
2210
+ export function __wbg_settype_39ed370d3edd403c(arg0, arg1, arg2) {
2211
+ arg0.type = getStringFromWasm0(arg1, arg2);
2212
+ };
2213
+
2214
+ export function __wbg_setunique_dd24c422aa05df89(arg0, arg1) {
2215
+ arg0.unique = arg1 !== 0;
2216
+ };
2217
+
2218
+ export function __wbg_signal_aaf9ad74119f20a4(arg0) {
2219
+ const ret = arg0.signal;
2220
+ return ret;
2221
+ };
2222
+
2223
+ export function __wbg_stack_0ed75d68575b0f3c(arg0, arg1) {
2224
+ const ret = arg1.stack;
2225
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2226
+ const len1 = WASM_VECTOR_LEN;
2227
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
2228
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2229
+ };
2230
+
2231
+ export function __wbg_static_accessor_GLOBAL_88a902d13a557d07() {
2232
+ const ret = typeof global === 'undefined' ? null : global;
2233
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2234
+ };
2235
+
2236
+ export function __wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0() {
2237
+ const ret = typeof globalThis === 'undefined' ? null : globalThis;
2238
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2239
+ };
2240
+
2241
+ export function __wbg_static_accessor_SELF_37c5d418e4bf5819() {
2242
+ const ret = typeof self === 'undefined' ? null : self;
2243
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2244
+ };
2245
+
2246
+ export function __wbg_static_accessor_WINDOW_5de37043a91a9c40() {
2247
+ const ret = typeof window === 'undefined' ? null : window;
2248
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2249
+ };
2250
+
2251
+ export function __wbg_status_f6360336ca686bf0(arg0) {
2252
+ const ret = arg0.status;
2253
+ return ret;
2254
+ };
2255
+
2256
+ export function __wbg_stringify_f7ed6987935b4a24() { return handleError(function (arg0) {
2257
+ const ret = JSON.stringify(arg0);
2258
+ return ret;
2259
+ }, arguments) };
2260
+
2261
+ export function __wbg_subarray_aa9065fa9dc5df96(arg0, arg1, arg2) {
2262
+ const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
2263
+ return ret;
2264
+ };
2265
+
2266
+ export function __wbg_target_0a62d9d79a2a1ede(arg0) {
2267
+ const ret = arg0.target;
2268
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2269
+ };
2270
+
2271
+ export function __wbg_text_7805bea50de2af49() { return handleError(function (arg0) {
2272
+ const ret = arg0.text();
2273
+ return ret;
2274
+ }, arguments) };
2275
+
2276
+ export function __wbg_then_44b73946d2fb3e7d(arg0, arg1) {
2277
+ const ret = arg0.then(arg1);
2278
+ return ret;
2279
+ };
2280
+
2281
+ export function __wbg_then_48b406749878a531(arg0, arg1, arg2) {
2282
+ const ret = arg0.then(arg1, arg2);
2283
+ return ret;
2284
+ };
2285
+
2286
+ export function __wbg_toString_5285597960676b7b(arg0) {
2287
+ const ret = arg0.toString();
2288
+ return ret;
2289
+ };
2290
+
2291
+ export function __wbg_toString_c813bbd34d063839(arg0) {
2292
+ const ret = arg0.toString();
2293
+ return ret;
2294
+ };
2295
+
2296
+ export function __wbg_trace_4f64f498ecbfeea8(arg0, arg1) {
2297
+ var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
2298
+ wasm.__wbindgen_free(arg0, arg1 * 4, 4);
2299
+ console.trace(...v0);
2300
+ };
2301
+
2302
+ export function __wbg_transaction_d6d07c3c9963c49e() { return handleError(function (arg0, arg1, arg2) {
2303
+ const ret = arg0.transaction(arg1, __wbindgen_enum_IdbTransactionMode[arg2]);
2304
+ return ret;
2305
+ }, arguments) };
2306
+
2307
+ export function __wbg_transaction_e713aa7b07ccaedd(arg0) {
2308
+ const ret = arg0.transaction;
2309
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2310
+ };
2311
+
2312
+ export function __wbg_unique_23ddfed89bddb31d(arg0) {
2313
+ const ret = arg0.unique;
2314
+ return ret;
2315
+ };
2316
+
2317
+ export function __wbg_url_8f9653b899456042(arg0, arg1) {
2318
+ const ret = arg1.url;
2319
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2320
+ const len1 = WASM_VECTOR_LEN;
2321
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
2322
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2323
+ };
2324
+
2325
+ export function __wbg_url_ae10c34ca209681d(arg0, arg1) {
2326
+ const ret = arg1.url;
2327
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2328
+ const len1 = WASM_VECTOR_LEN;
2329
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
2330
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2331
+ };
2332
+
2333
+ export function __wbg_value_cd1ffa7b1ab794f1(arg0) {
2334
+ const ret = arg0.value;
2335
+ return ret;
2336
+ };
2337
+
2338
+ export function __wbg_versions_c8e8bcb59a0bf647(arg0) {
2339
+ const ret = arg0.versions;
2340
+ return ret;
2341
+ };
2342
+
2343
+ export function __wbg_warn_1529a2c662795cd8(arg0, arg1) {
2344
+ var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
2345
+ wasm.__wbindgen_free(arg0, arg1 * 4, 4);
2346
+ console.warn(...v0);
2347
+ };
2348
+
2349
+ export function __wbindgen_as_number(arg0) {
2350
+ const ret = +arg0;
2351
+ return ret;
2352
+ };
2353
+
2354
+ export function __wbindgen_bigint_from_i64(arg0) {
2355
+ const ret = arg0;
2356
+ return ret;
2357
+ };
2358
+
2359
+ export function __wbindgen_bigint_from_u64(arg0) {
2360
+ const ret = BigInt.asUintN(64, arg0);
2361
+ return ret;
2362
+ };
2363
+
2364
+ export function __wbindgen_bigint_get_as_i64(arg0, arg1) {
2365
+ const v = arg1;
2366
+ const ret = typeof(v) === 'bigint' ? v : undefined;
2367
+ getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
2368
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
2369
+ };
2370
+
2371
+ export function __wbindgen_boolean_get(arg0) {
2372
+ const v = arg0;
2373
+ const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
2374
+ return ret;
2375
+ };
2376
+
2377
+ export function __wbindgen_cb_drop(arg0) {
2378
+ const obj = arg0.original;
2379
+ if (obj.cnt-- == 1) {
2380
+ obj.a = 0;
2381
+ return true;
2382
+ }
2383
+ const ret = false;
2384
+ return ret;
2385
+ };
2386
+
2387
+ export function __wbindgen_closure_wrapper11536(arg0, arg1, arg2) {
2388
+ const ret = makeMutClosure(arg0, arg1, 2666, __wbg_adapter_60);
2389
+ return ret;
2390
+ };
2391
+
2392
+ export function __wbindgen_closure_wrapper15965(arg0, arg1, arg2) {
2393
+ const ret = makeMutClosure(arg0, arg1, 3826, __wbg_adapter_63);
2394
+ return ret;
2395
+ };
2396
+
2397
+ export function __wbindgen_closure_wrapper7702(arg0, arg1, arg2) {
2398
+ const ret = makeMutClosure(arg0, arg1, 1856, __wbg_adapter_54);
2399
+ return ret;
2400
+ };
2401
+
2402
+ export function __wbindgen_closure_wrapper8151(arg0, arg1, arg2) {
2403
+ const ret = makeMutClosure(arg0, arg1, 1998, __wbg_adapter_57);
2404
+ return ret;
2405
+ };
2406
+
2407
+ export function __wbindgen_debug_string(arg0, arg1) {
2408
+ const ret = debugString(arg1);
2409
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2410
+ const len1 = WASM_VECTOR_LEN;
2411
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
2412
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2413
+ };
2414
+
2415
+ export function __wbindgen_error_new(arg0, arg1) {
2416
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
2417
+ return ret;
2418
+ };
2419
+
2420
+ export function __wbindgen_in(arg0, arg1) {
2421
+ const ret = arg0 in arg1;
2422
+ return ret;
2423
+ };
2424
+
2425
+ export function __wbindgen_init_externref_table() {
2426
+ const table = wasm.__wbindgen_export_4;
2427
+ const offset = table.grow(4);
2428
+ table.set(0, undefined);
2429
+ table.set(offset + 0, undefined);
2430
+ table.set(offset + 1, null);
2431
+ table.set(offset + 2, true);
2432
+ table.set(offset + 3, false);
2433
+ ;
2434
+ };
2435
+
2436
+ export function __wbindgen_is_bigint(arg0) {
2437
+ const ret = typeof(arg0) === 'bigint';
2438
+ return ret;
2439
+ };
2440
+
2441
+ export function __wbindgen_is_function(arg0) {
2442
+ const ret = typeof(arg0) === 'function';
2443
+ return ret;
2444
+ };
2445
+
2446
+ export function __wbindgen_is_null(arg0) {
2447
+ const ret = arg0 === null;
2448
+ return ret;
2449
+ };
2450
+
2451
+ export function __wbindgen_is_object(arg0) {
2452
+ const val = arg0;
2453
+ const ret = typeof(val) === 'object' && val !== null;
2454
+ return ret;
2455
+ };
2456
+
2457
+ export function __wbindgen_is_string(arg0) {
2458
+ const ret = typeof(arg0) === 'string';
2459
+ return ret;
2460
+ };
2461
+
2462
+ export function __wbindgen_is_undefined(arg0) {
2463
+ const ret = arg0 === undefined;
2464
+ return ret;
2465
+ };
2466
+
2467
+ export function __wbindgen_jsval_eq(arg0, arg1) {
2468
+ const ret = arg0 === arg1;
2469
+ return ret;
2470
+ };
2471
+
2472
+ export function __wbindgen_jsval_loose_eq(arg0, arg1) {
2473
+ const ret = arg0 == arg1;
2474
+ return ret;
2475
+ };
2476
+
2477
+ export function __wbindgen_memory() {
2478
+ const ret = wasm.memory;
2479
+ return ret;
2480
+ };
2481
+
2482
+ export function __wbindgen_number_get(arg0, arg1) {
2483
+ const obj = arg1;
2484
+ const ret = typeof(obj) === 'number' ? obj : undefined;
2485
+ getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
2486
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
2487
+ };
2488
+
2489
+ export function __wbindgen_number_new(arg0) {
2490
+ const ret = arg0;
2491
+ return ret;
2492
+ };
2493
+
2494
+ export function __wbindgen_string_get(arg0, arg1) {
2495
+ const obj = arg1;
2496
+ const ret = typeof(obj) === 'string' ? obj : undefined;
2497
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2498
+ var len1 = WASM_VECTOR_LEN;
2499
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
2500
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2501
+ };
2502
+
2503
+ export function __wbindgen_string_new(arg0, arg1) {
2504
+ const ret = getStringFromWasm0(arg0, arg1);
2505
+ return ret;
2506
+ };
2507
+
2508
+ export function __wbindgen_throw(arg0, arg1) {
2509
+ throw new Error(getStringFromWasm0(arg0, arg1));
2510
+ };
2511
+