@hashiverse/hashiverse-client-wasm 0.0.0 → 1.0.5-rc4

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,1630 @@
1
+ /**
2
+ * Provides a simplified dispatch interface for [HashiverseClient] to the browser.
3
+ */
4
+ export class HashiverseClientWasm {
5
+ static __wrap(ptr) {
6
+ const obj = Object.create(HashiverseClientWasm.prototype);
7
+ obj.__wbg_ptr = ptr;
8
+ HashiverseClientWasmFinalization.register(obj, obj.__wbg_ptr, obj);
9
+ return obj;
10
+ }
11
+ __destroy_into_raw() {
12
+ const ptr = this.__wbg_ptr;
13
+ this.__wbg_ptr = 0;
14
+ HashiverseClientWasmFinalization.unregister(this);
15
+ return ptr;
16
+ }
17
+ free() {
18
+ const ptr = this.__destroy_into_raw();
19
+ wasm.__wbg_hashiverseclientwasm_free(ptr, 0);
20
+ }
21
+ /**
22
+ * @returns {Promise<void>}
23
+ */
24
+ client_storage_reset() {
25
+ const ret = wasm.hashiverseclientwasm_client_storage_reset(this.__wbg_ptr);
26
+ return ret;
27
+ }
28
+ /**
29
+ * @param {string} key_phrase
30
+ * @returns {Promise<HashiverseClientWasm>}
31
+ */
32
+ static create_from_keyphrase(key_phrase) {
33
+ const ptr0 = passStringToWasm0(key_phrase, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
34
+ const len0 = WASM_VECTOR_LEN;
35
+ const ret = wasm.hashiverseclientwasm_create_from_keyphrase(ptr0, len0);
36
+ return ret;
37
+ }
38
+ /**
39
+ * @param {string} client_id_hex
40
+ * @returns {Promise<HashiverseClientWasm>}
41
+ */
42
+ static create_from_stored_key(client_id_hex) {
43
+ const ptr0 = passStringToWasm0(client_id_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
44
+ const len0 = WASM_VECTOR_LEN;
45
+ const ret = wasm.hashiverseclientwasm_create_from_stored_key(ptr0, len0);
46
+ return ret;
47
+ }
48
+ /**
49
+ * @returns {Promise<void>}
50
+ */
51
+ delete_all_stored_keys_v1() {
52
+ const ret = wasm.hashiverseclientwasm_delete_all_stored_keys_v1(this.__wbg_ptr);
53
+ return ret;
54
+ }
55
+ /**
56
+ * @param {string} key_public
57
+ * @returns {Promise<void>}
58
+ */
59
+ delete_stored_key_v1(key_public) {
60
+ const ptr0 = passStringToWasm0(key_public, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
61
+ const len0 = WASM_VECTOR_LEN;
62
+ const ret = wasm.hashiverseclientwasm_delete_stored_key_v1(this.__wbg_ptr, ptr0, len0);
63
+ return ret;
64
+ }
65
+ /**
66
+ * @returns {Promise<void>}
67
+ */
68
+ ensure_meta_post_in_current_bucket_v1() {
69
+ const ret = wasm.hashiverseclientwasm_ensure_meta_post_in_current_bucket_v1(this.__wbg_ptr);
70
+ return ret;
71
+ }
72
+ /**
73
+ * @param {number} limit
74
+ * @returns {Promise<TrendingHashtagsFetchResponse>}
75
+ */
76
+ fetch_trending_hashtags_v1(limit) {
77
+ const ret = wasm.hashiverseclientwasm_fetch_trending_hashtags_v1(this.__wbg_ptr, limit);
78
+ return ret;
79
+ }
80
+ /**
81
+ * @param {string} url
82
+ * @returns {Promise<UrlPreview>}
83
+ */
84
+ fetch_url_preview_v1(url) {
85
+ const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
86
+ const len0 = WASM_VECTOR_LEN;
87
+ const ret = wasm.hashiverseclientwasm_fetch_url_preview_v1(this.__wbg_ptr, ptr0, len0);
88
+ return ret;
89
+ }
90
+ /**
91
+ * @returns {Promise<PowJobStatusV1[]>}
92
+ */
93
+ get_active_pow_jobs_v1() {
94
+ const ret = wasm.hashiverseclientwasm_get_active_pow_jobs_v1(this.__wbg_ptr);
95
+ return ret;
96
+ }
97
+ /**
98
+ * @returns {Promise<Bio[]>}
99
+ */
100
+ get_all_bios() {
101
+ const ret = wasm.hashiverseclientwasm_get_all_bios(this.__wbg_ptr);
102
+ return ret;
103
+ }
104
+ /**
105
+ * @returns {Promise<PeerInfoV1[]>}
106
+ */
107
+ get_all_known_peers_v1() {
108
+ const ret = wasm.hashiverseclientwasm_get_all_known_peers_v1(this.__wbg_ptr);
109
+ return ret;
110
+ }
111
+ /**
112
+ * @param {string} id
113
+ * @returns {Promise<Bio>}
114
+ */
115
+ get_bio(id) {
116
+ const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
117
+ const len0 = WASM_VECTOR_LEN;
118
+ const ret = wasm.hashiverseclientwasm_get_bio(this.__wbg_ptr, ptr0, len0);
119
+ return ret;
120
+ }
121
+ /**
122
+ * @returns {string}
123
+ */
124
+ get_client_id() {
125
+ let deferred1_0;
126
+ let deferred1_1;
127
+ try {
128
+ const ret = wasm.hashiverseclientwasm_get_client_id(this.__wbg_ptr);
129
+ deferred1_0 = ret[0];
130
+ deferred1_1 = ret[1];
131
+ return getStringFromWasm0(ret[0], ret[1]);
132
+ } finally {
133
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
134
+ }
135
+ }
136
+ /**
137
+ * @returns {Promise<any>}
138
+ */
139
+ get_content_thresholds_v1() {
140
+ const ret = wasm.hashiverseclientwasm_get_content_thresholds_v1(this.__wbg_ptr);
141
+ return ret;
142
+ }
143
+ /**
144
+ * @returns {Promise<string[]>}
145
+ */
146
+ get_followed_client_ids_v1() {
147
+ const ret = wasm.hashiverseclientwasm_get_followed_client_ids_v1(this.__wbg_ptr);
148
+ return ret;
149
+ }
150
+ /**
151
+ * @returns {Promise<string[]>}
152
+ */
153
+ get_followed_hashtags_v1() {
154
+ const ret = wasm.hashiverseclientwasm_get_followed_hashtags_v1(this.__wbg_ptr);
155
+ return ret;
156
+ }
157
+ /**
158
+ * @param {string} peer_id_hex
159
+ * @returns {Promise<any>}
160
+ */
161
+ get_peer_stats_v1(peer_id_hex) {
162
+ const ptr0 = passStringToWasm0(peer_id_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
163
+ const len0 = WASM_VECTOR_LEN;
164
+ const ret = wasm.hashiverseclientwasm_get_peer_stats_v1(this.__wbg_ptr, ptr0, len0);
165
+ return ret;
166
+ }
167
+ /**
168
+ * Gets all the feedbacks for a specific post
169
+ *
170
+ * The resulting vector has 256 entries - one per feedback_type that have been mapped to the statistical number of clicks a feedback button has received.
171
+ * @param {string} bucket_location
172
+ * @param {string} post_id
173
+ * @returns {Promise<Uint32Array>}
174
+ */
175
+ get_post_feedbacks_v1(bucket_location, post_id) {
176
+ const ptr0 = passStringToWasm0(bucket_location, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
177
+ const len0 = WASM_VECTOR_LEN;
178
+ const ptr1 = passStringToWasm0(post_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
179
+ const len1 = WASM_VECTOR_LEN;
180
+ const ret = wasm.hashiverseclientwasm_get_post_feedbacks_v1(this.__wbg_ptr, ptr0, len0, ptr1, len1);
181
+ return ret;
182
+ }
183
+ /**
184
+ * Gets a specific post
185
+ * @param {string} bucket_location
186
+ * @param {string} post_id
187
+ * @returns {Promise<Post>}
188
+ */
189
+ get_post_v1(bucket_location, post_id) {
190
+ const ptr0 = passStringToWasm0(bucket_location, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
191
+ const len0 = WASM_VECTOR_LEN;
192
+ const ptr1 = passStringToWasm0(post_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
193
+ const len1 = WASM_VECTOR_LEN;
194
+ const ret = wasm.hashiverseclientwasm_get_post_v1(this.__wbg_ptr, ptr0, len0, ptr1, len1);
195
+ return ret;
196
+ }
197
+ /**
198
+ * @returns {Promise<boolean>}
199
+ */
200
+ get_skip_warnings_for_followed_v1() {
201
+ const ret = wasm.hashiverseclientwasm_get_skip_warnings_for_followed_v1(this.__wbg_ptr);
202
+ return ret;
203
+ }
204
+ /**
205
+ * @returns {Promise<string[]>}
206
+ */
207
+ list_stored_key_ids_v1() {
208
+ const ret = wasm.hashiverseclientwasm_list_stored_key_ids_v1(this.__wbg_ptr);
209
+ return ret;
210
+ }
211
+ /**
212
+ * @returns {boolean}
213
+ */
214
+ logged_in() {
215
+ const ret = wasm.hashiverseclientwasm_logged_in(this.__wbg_ptr);
216
+ return ret !== 0;
217
+ }
218
+ /**
219
+ * @returns {Promise<SingleTimelineGetMoreV1Response>}
220
+ */
221
+ multiple_timeline_get_more_followed_hashtags() {
222
+ const ret = wasm.hashiverseclientwasm_multiple_timeline_get_more_followed_hashtags(this.__wbg_ptr);
223
+ return ret;
224
+ }
225
+ /**
226
+ * @returns {Promise<SingleTimelineGetMoreV1Response>}
227
+ */
228
+ multiple_timeline_get_more_followed_users() {
229
+ const ret = wasm.hashiverseclientwasm_multiple_timeline_get_more_followed_users(this.__wbg_ptr);
230
+ return ret;
231
+ }
232
+ /**
233
+ * @returns {Promise<void>}
234
+ */
235
+ multiple_timeline_reset() {
236
+ const ret = wasm.hashiverseclientwasm_multiple_timeline_reset(this.__wbg_ptr);
237
+ return ret;
238
+ }
239
+ /**
240
+ * @param {string} post
241
+ * @returns {Promise<Post>}
242
+ */
243
+ post_v1(post) {
244
+ const ptr0 = passStringToWasm0(post, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
245
+ const len0 = WASM_VECTOR_LEN;
246
+ const ret = wasm.hashiverseclientwasm_post_v1(this.__wbg_ptr, ptr0, len0);
247
+ return ret;
248
+ }
249
+ /**
250
+ * @param {string} nickname
251
+ * @param {string} status
252
+ * @param {string} selfie
253
+ * @param {string} avatar
254
+ * @returns {Promise<void>}
255
+ */
256
+ set_bio(nickname, status, selfie, avatar) {
257
+ const ptr0 = passStringToWasm0(nickname, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
258
+ const len0 = WASM_VECTOR_LEN;
259
+ const ptr1 = passStringToWasm0(status, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
260
+ const len1 = WASM_VECTOR_LEN;
261
+ const ptr2 = passStringToWasm0(selfie, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
262
+ const len2 = WASM_VECTOR_LEN;
263
+ const ptr3 = passStringToWasm0(avatar, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
264
+ const len3 = WASM_VECTOR_LEN;
265
+ const ret = wasm.hashiverseclientwasm_set_bio(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
266
+ return ret;
267
+ }
268
+ /**
269
+ * @param {any} thresholds
270
+ * @returns {Promise<void>}
271
+ */
272
+ set_content_thresholds_v1(thresholds) {
273
+ const ret = wasm.hashiverseclientwasm_set_content_thresholds_v1(this.__wbg_ptr, thresholds);
274
+ return ret;
275
+ }
276
+ /**
277
+ * @param {string} client_id
278
+ * @param {boolean} is_followed
279
+ * @returns {Promise<void>}
280
+ */
281
+ set_followed_client_id_v1(client_id, is_followed) {
282
+ const ptr0 = passStringToWasm0(client_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
283
+ const len0 = WASM_VECTOR_LEN;
284
+ const ret = wasm.hashiverseclientwasm_set_followed_client_id_v1(this.__wbg_ptr, ptr0, len0, is_followed);
285
+ return ret;
286
+ }
287
+ /**
288
+ * @param {any} client_ids
289
+ * @returns {Promise<void>}
290
+ */
291
+ set_followed_client_ids_v1(client_ids) {
292
+ const ret = wasm.hashiverseclientwasm_set_followed_client_ids_v1(this.__wbg_ptr, client_ids);
293
+ return ret;
294
+ }
295
+ /**
296
+ * @param {string} hashtag
297
+ * @param {boolean} is_followed
298
+ * @returns {Promise<void>}
299
+ */
300
+ set_followed_hashtag_v1(hashtag, is_followed) {
301
+ const ptr0 = passStringToWasm0(hashtag, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
302
+ const len0 = WASM_VECTOR_LEN;
303
+ const ret = wasm.hashiverseclientwasm_set_followed_hashtag_v1(this.__wbg_ptr, ptr0, len0, is_followed);
304
+ return ret;
305
+ }
306
+ /**
307
+ * @param {any} hashtags
308
+ * @returns {Promise<void>}
309
+ */
310
+ set_followed_hashtags_v1(hashtags) {
311
+ const ret = wasm.hashiverseclientwasm_set_followed_hashtags_v1(this.__wbg_ptr, hashtags);
312
+ return ret;
313
+ }
314
+ /**
315
+ * @param {boolean} value
316
+ * @returns {Promise<void>}
317
+ */
318
+ set_skip_warnings_for_followed_v1(value) {
319
+ const ret = wasm.hashiverseclientwasm_set_skip_warnings_for_followed_v1(this.__wbg_ptr, value);
320
+ return ret;
321
+ }
322
+ /**
323
+ * @param {string} hashtag
324
+ * @returns {Promise<SingleTimelineGetMoreV1Response>}
325
+ */
326
+ single_timeline_get_more_hashtag_v1(hashtag) {
327
+ const ptr0 = passStringToWasm0(hashtag, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
328
+ const len0 = WASM_VECTOR_LEN;
329
+ const ret = wasm.hashiverseclientwasm_single_timeline_get_more_hashtag_v1(this.__wbg_ptr, ptr0, len0);
330
+ return ret;
331
+ }
332
+ /**
333
+ * @returns {Promise<SingleTimelineGetMoreV1Response>}
334
+ */
335
+ single_timeline_get_more_me_mentioned_v1() {
336
+ const ret = wasm.hashiverseclientwasm_single_timeline_get_more_me_mentioned_v1(this.__wbg_ptr);
337
+ return ret;
338
+ }
339
+ /**
340
+ * @returns {Promise<SingleTimelineGetMoreV1Response>}
341
+ */
342
+ single_timeline_get_more_me_v1() {
343
+ const ret = wasm.hashiverseclientwasm_single_timeline_get_more_me_v1(this.__wbg_ptr);
344
+ return ret;
345
+ }
346
+ /**
347
+ * @param {string} post_id
348
+ * @returns {Promise<SingleTimelineGetMoreV1Response>}
349
+ */
350
+ single_timeline_get_more_reply_to_post_v1(post_id) {
351
+ const ptr0 = passStringToWasm0(post_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
352
+ const len0 = WASM_VECTOR_LEN;
353
+ const ret = wasm.hashiverseclientwasm_single_timeline_get_more_reply_to_post_v1(this.__wbg_ptr, ptr0, len0);
354
+ return ret;
355
+ }
356
+ /**
357
+ * @param {string} post_id
358
+ * @returns {Promise<SingleTimelineGetMoreV1Response>}
359
+ */
360
+ single_timeline_get_more_sequel_v1(post_id) {
361
+ const ptr0 = passStringToWasm0(post_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
362
+ const len0 = WASM_VECTOR_LEN;
363
+ const ret = wasm.hashiverseclientwasm_single_timeline_get_more_sequel_v1(this.__wbg_ptr, ptr0, len0);
364
+ return ret;
365
+ }
366
+ /**
367
+ * @param {string} client_id_hex
368
+ * @returns {Promise<SingleTimelineGetMoreV1Response>}
369
+ */
370
+ single_timeline_get_more_user_mentioned_v1(client_id_hex) {
371
+ const ptr0 = passStringToWasm0(client_id_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
372
+ const len0 = WASM_VECTOR_LEN;
373
+ const ret = wasm.hashiverseclientwasm_single_timeline_get_more_user_mentioned_v1(this.__wbg_ptr, ptr0, len0);
374
+ return ret;
375
+ }
376
+ /**
377
+ * @param {string} client_id_hex
378
+ * @returns {Promise<SingleTimelineGetMoreV1Response>}
379
+ */
380
+ single_timeline_get_more_user_v1(client_id_hex) {
381
+ const ptr0 = passStringToWasm0(client_id_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
382
+ const len0 = WASM_VECTOR_LEN;
383
+ const ret = wasm.hashiverseclientwasm_single_timeline_get_more_user_v1(this.__wbg_ptr, ptr0, len0);
384
+ return ret;
385
+ }
386
+ /**
387
+ * @returns {Promise<void>}
388
+ */
389
+ single_timeline_reset() {
390
+ const ret = wasm.hashiverseclientwasm_single_timeline_reset(this.__wbg_ptr);
391
+ return ret;
392
+ }
393
+ /**
394
+ * @param {string} bucket_location
395
+ * @param {string} post_id
396
+ * @param {number} feedback_type
397
+ * @returns {Promise<void>}
398
+ */
399
+ submit_feedback_v1(bucket_location, post_id, feedback_type) {
400
+ const ptr0 = passStringToWasm0(bucket_location, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
401
+ const len0 = WASM_VECTOR_LEN;
402
+ const ptr1 = passStringToWasm0(post_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
403
+ const len1 = WASM_VECTOR_LEN;
404
+ const ret = wasm.hashiverseclientwasm_submit_feedback_v1(this.__wbg_ptr, ptr0, len0, ptr1, len1, feedback_type);
405
+ return ret;
406
+ }
407
+ /**
408
+ * @returns {Promise<void>}
409
+ */
410
+ submit_meta_post_v1() {
411
+ const ret = wasm.hashiverseclientwasm_submit_meta_post_v1(this.__wbg_ptr);
412
+ return ret;
413
+ }
414
+ }
415
+ if (Symbol.dispose) HashiverseClientWasm.prototype[Symbol.dispose] = HashiverseClientWasm.prototype.free;
416
+
417
+ /**
418
+ * Initialize the parallel PoW worker pool. Call from TypeScript, passing an
419
+ * array of ready `Worker` handles that each run `HashiversePowWorker.ts`.
420
+ * @param {any} workers_js
421
+ */
422
+ export function init_pow_workers(workers_js) {
423
+ wasm.init_pow_workers(workers_js);
424
+ }
425
+
426
+ /**
427
+ * Sync PoW batch computation for sub-workers. Each sub-worker calls this function
428
+ * with a portion of the total iteration budget.
429
+ *
430
+ * Returns a colon-separated string: `salt_hex:pow_u8:hash_hex`
431
+ * @param {number} iteration_limit
432
+ * @param {number} pow_min
433
+ * @param {string} data_hash_hex
434
+ * @returns {string}
435
+ */
436
+ export function pow_compute_batch(iteration_limit, pow_min, data_hash_hex) {
437
+ let deferred2_0;
438
+ let deferred2_1;
439
+ try {
440
+ const ptr0 = passStringToWasm0(data_hash_hex, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
441
+ const len0 = WASM_VECTOR_LEN;
442
+ const ret = wasm.pow_compute_batch(iteration_limit, pow_min, ptr0, len0);
443
+ deferred2_0 = ret[0];
444
+ deferred2_1 = ret[1];
445
+ return getStringFromWasm0(ret[0], ret[1]);
446
+ } finally {
447
+ wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
448
+ }
449
+ }
450
+
451
+ /**
452
+ * Initialise logging and panic hook. Must be called manually before using the WASM module.
453
+ * Pass `verbose = true` for the main worker (logs confirmation), `false` for PoW sub-workers (silent).
454
+ * @param {boolean} verbose
455
+ */
456
+ export function wasm_init(verbose) {
457
+ wasm.wasm_init(verbose);
458
+ }
459
+ export function __wbg_Error_bce6d499ff0a4aff(arg0, arg1) {
460
+ const ret = Error(getStringFromWasm0(arg0, arg1));
461
+ return ret;
462
+ }
463
+ export function __wbg_Number_b7972a139bfbfdf0(arg0) {
464
+ const ret = Number(arg0);
465
+ return ret;
466
+ }
467
+ export function __wbg_String_8564e559799eccda(arg0, arg1) {
468
+ const ret = String(arg1);
469
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
470
+ const len1 = WASM_VECTOR_LEN;
471
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
472
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
473
+ }
474
+ export function __wbg_Window_70131fc0c91e4b3c(arg0) {
475
+ const ret = arg0.Window;
476
+ return ret;
477
+ }
478
+ export function __wbg_WorkerGlobalScope_601c48015b8cc78e(arg0) {
479
+ const ret = arg0.WorkerGlobalScope;
480
+ return ret;
481
+ }
482
+ export function __wbg___wbindgen_boolean_get_2304fb8c853028c8(arg0) {
483
+ const v = arg0;
484
+ const ret = typeof(v) === 'boolean' ? v : undefined;
485
+ return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
486
+ }
487
+ export function __wbg___wbindgen_debug_string_edece8177ad01481(arg0, arg1) {
488
+ const ret = debugString(arg1);
489
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
490
+ const len1 = WASM_VECTOR_LEN;
491
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
492
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
493
+ }
494
+ export function __wbg___wbindgen_in_07056af4f902c445(arg0, arg1) {
495
+ const ret = arg0 in arg1;
496
+ return ret;
497
+ }
498
+ export function __wbg___wbindgen_is_function_5cd60d5cf78b4eef(arg0) {
499
+ const ret = typeof(arg0) === 'function';
500
+ return ret;
501
+ }
502
+ export function __wbg___wbindgen_is_null_2042690d351e14f0(arg0) {
503
+ const ret = arg0 === null;
504
+ return ret;
505
+ }
506
+ export function __wbg___wbindgen_is_object_b4593df85baada48(arg0) {
507
+ const val = arg0;
508
+ const ret = typeof(val) === 'object' && val !== null;
509
+ return ret;
510
+ }
511
+ export function __wbg___wbindgen_is_string_dde0fd9020db4434(arg0) {
512
+ const ret = typeof(arg0) === 'string';
513
+ return ret;
514
+ }
515
+ export function __wbg___wbindgen_is_undefined_35bb9f4c7fd651d5(arg0) {
516
+ const ret = arg0 === undefined;
517
+ return ret;
518
+ }
519
+ export function __wbg___wbindgen_jsval_loose_eq_0ad77b7717db155c(arg0, arg1) {
520
+ const ret = arg0 == arg1;
521
+ return ret;
522
+ }
523
+ export function __wbg___wbindgen_number_get_f73a1244370fcc2c(arg0, arg1) {
524
+ const obj = arg1;
525
+ const ret = typeof(obj) === 'number' ? obj : undefined;
526
+ getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
527
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
528
+ }
529
+ export function __wbg___wbindgen_string_get_d109740c0d18f4d7(arg0, arg1) {
530
+ const obj = arg1;
531
+ const ret = typeof(obj) === 'string' ? obj : undefined;
532
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
533
+ var len1 = WASM_VECTOR_LEN;
534
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
535
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
536
+ }
537
+ export function __wbg___wbindgen_throw_9c31b086c2b26051(arg0, arg1) {
538
+ throw new Error(getStringFromWasm0(arg0, arg1));
539
+ }
540
+ export function __wbg__wbg_cb_unref_3fa391f3fcdb55f8(arg0) {
541
+ arg0._wbg_cb_unref();
542
+ }
543
+ export function __wbg_abort_70a701fced9ad53a() { return handleError(function (arg0) {
544
+ arg0.abort();
545
+ }, arguments); }
546
+ export function __wbg_advance_cf722fa560bd6544() { return handleError(function (arg0, arg1) {
547
+ arg0.advance(arg1 >>> 0);
548
+ }, arguments); }
549
+ export function __wbg_arrayBuffer_cb5d4748b5f3cad5() { return handleError(function (arg0) {
550
+ const ret = arg0.arrayBuffer();
551
+ return ret;
552
+ }, arguments); }
553
+ export function __wbg_bound_8d5dfa042d13a74b() { return handleError(function (arg0, arg1, arg2, arg3) {
554
+ const ret = IDBKeyRange.bound(arg0, arg1, arg2 !== 0, arg3 !== 0);
555
+ return ret;
556
+ }, arguments); }
557
+ export function __wbg_call_13665d9f14390edc() { return handleError(function (arg0, arg1) {
558
+ const ret = arg0.call(arg1);
559
+ return ret;
560
+ }, arguments); }
561
+ export function __wbg_call_dfde26266607c996() { return handleError(function (arg0, arg1, arg2) {
562
+ const ret = arg0.call(arg1, arg2);
563
+ return ret;
564
+ }, arguments); }
565
+ export function __wbg_clearTimeout_3629d6209dfcc46e(arg0) {
566
+ const ret = clearTimeout(arg0);
567
+ return ret;
568
+ }
569
+ export function __wbg_clear_bb1b3ff877b62598() { return handleError(function (arg0) {
570
+ const ret = arg0.clear();
571
+ return ret;
572
+ }, arguments); }
573
+ export function __wbg_commit_e9c1332714c53826() { return handleError(function (arg0) {
574
+ arg0.commit();
575
+ }, arguments); }
576
+ export function __wbg_count_0e78b9f66eb6a1d6() { return handleError(function (arg0) {
577
+ const ret = arg0.count();
578
+ return ret;
579
+ }, arguments); }
580
+ export function __wbg_createIndex_4dedb55a60318332() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
581
+ const ret = arg0.createIndex(getStringFromWasm0(arg1, arg2), arg3, arg4);
582
+ return ret;
583
+ }, arguments); }
584
+ export function __wbg_createObjectStore_7aa4cf3fcb65c75a() { return handleError(function (arg0, arg1, arg2, arg3) {
585
+ const ret = arg0.createObjectStore(getStringFromWasm0(arg1, arg2), arg3);
586
+ return ret;
587
+ }, arguments); }
588
+ export function __wbg_crypto_38df2bab126b63dc(arg0) {
589
+ const ret = arg0.crypto;
590
+ return ret;
591
+ }
592
+ export function __wbg_crypto_77a395de0caf6cb5() { return handleError(function (arg0) {
593
+ const ret = arg0.crypto;
594
+ return ret;
595
+ }, arguments); }
596
+ export function __wbg_crypto_e3430d75ef2b624b() { return handleError(function (arg0) {
597
+ const ret = arg0.crypto;
598
+ return ret;
599
+ }, arguments); }
600
+ export function __wbg_data_5fc79a19e47d1531(arg0) {
601
+ const ret = arg0.data;
602
+ return ret;
603
+ }
604
+ export function __wbg_debug_1cbb2f02cd18a348(arg0, arg1, arg2, arg3) {
605
+ console.debug(arg0, arg1, arg2, arg3);
606
+ }
607
+ export function __wbg_delete_9c4e8b22a8b0ff3c() { return handleError(function (arg0) {
608
+ const ret = arg0.delete();
609
+ return ret;
610
+ }, arguments); }
611
+ export function __wbg_delete_bc03f88e7f14db56() { return handleError(function (arg0, arg1) {
612
+ const ret = arg0.delete(arg1);
613
+ return ret;
614
+ }, arguments); }
615
+ export function __wbg_done_54b8da57023b7ed2(arg0) {
616
+ const ret = arg0.done;
617
+ return ret;
618
+ }
619
+ export function __wbg_entries_564a7e8b1e54ede5(arg0) {
620
+ const ret = Object.entries(arg0);
621
+ return ret;
622
+ }
623
+ export function __wbg_error_a6fa202b58aa1cd3(arg0, arg1) {
624
+ let deferred0_0;
625
+ let deferred0_1;
626
+ try {
627
+ deferred0_0 = arg0;
628
+ deferred0_1 = arg1;
629
+ console.error(getStringFromWasm0(arg0, arg1));
630
+ } finally {
631
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
632
+ }
633
+ }
634
+ export function __wbg_error_ef9cbaece146d1d5() { return handleError(function (arg0) {
635
+ const ret = arg0.error;
636
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
637
+ }, arguments); }
638
+ export function __wbg_error_ff9920154b136cbb(arg0, arg1, arg2, arg3) {
639
+ console.error(arg0, arg1, arg2, arg3);
640
+ }
641
+ export function __wbg_fetch_8d9b732df7467c44(arg0) {
642
+ const ret = fetch(arg0);
643
+ return ret;
644
+ }
645
+ export function __wbg_getAllKeys_07d656e168400060() { return handleError(function (arg0) {
646
+ const ret = arg0.getAllKeys();
647
+ return ret;
648
+ }, arguments); }
649
+ export function __wbg_getAll_bc4f4ec6a1504163() { return handleError(function (arg0) {
650
+ const ret = arg0.getAll();
651
+ return ret;
652
+ }, arguments); }
653
+ export function __wbg_getRandomValues_c44a50d8cfdaebeb() { return handleError(function (arg0, arg1) {
654
+ arg0.getRandomValues(arg1);
655
+ }, arguments); }
656
+ export function __wbg_getTime_09f1dd40a44edb30(arg0) {
657
+ const ret = arg0.getTime();
658
+ return ret;
659
+ }
660
+ export function __wbg_get_3e9a707ab7d352eb() { return handleError(function (arg0, arg1) {
661
+ const ret = Reflect.get(arg0, arg1);
662
+ return ret;
663
+ }, arguments); }
664
+ export function __wbg_get_98fdf51d029a75eb(arg0, arg1) {
665
+ const ret = arg0[arg1 >>> 0];
666
+ return ret;
667
+ }
668
+ export function __wbg_get_b6f278d067d9edad() { return handleError(function (arg0, arg1) {
669
+ const ret = arg0.get(arg1);
670
+ return ret;
671
+ }, arguments); }
672
+ export function __wbg_get_dcf82ab8aad1a593() { return handleError(function (arg0, arg1) {
673
+ const ret = Reflect.get(arg0, arg1);
674
+ return ret;
675
+ }, arguments); }
676
+ export function __wbg_get_unchecked_1dfe6d05ad91d9b7(arg0, arg1) {
677
+ const ret = arg0[arg1 >>> 0];
678
+ return ret;
679
+ }
680
+ export function __wbg_get_with_ref_key_6412cf3094599694(arg0, arg1) {
681
+ const ret = arg0[arg1];
682
+ return ret;
683
+ }
684
+ export function __wbg_global_e30ac0b7684506d0(arg0) {
685
+ const ret = arg0.global;
686
+ return ret;
687
+ }
688
+ export function __wbg_hashiverseclientwasm_new(arg0) {
689
+ const ret = HashiverseClientWasm.__wrap(arg0);
690
+ return ret;
691
+ }
692
+ export function __wbg_importKey_23679217c2a0386e() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
693
+ const ret = arg0.importKey(getStringFromWasm0(arg1, arg2), arg3, arg4, arg5 !== 0, arg6);
694
+ return ret;
695
+ }, arguments); }
696
+ export function __wbg_index_1eb6fae6472ecb14() { return handleError(function (arg0, arg1, arg2) {
697
+ const ret = arg0.index(getStringFromWasm0(arg1, arg2));
698
+ return ret;
699
+ }, arguments); }
700
+ export function __wbg_indexedDB_2e82cb845ce6b3ad() { return handleError(function (arg0) {
701
+ const ret = arg0.indexedDB;
702
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
703
+ }, arguments); }
704
+ export function __wbg_indexedDB_a2139150e2ea2a08() { return handleError(function (arg0) {
705
+ const ret = arg0.indexedDB;
706
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
707
+ }, arguments); }
708
+ export function __wbg_indexedDB_cbfeacc981615a77() { return handleError(function (arg0) {
709
+ const ret = arg0.indexedDB;
710
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
711
+ }, arguments); }
712
+ export function __wbg_info_de0a30e0c0b6b4e9(arg0, arg1, arg2, arg3) {
713
+ console.info(arg0, arg1, arg2, arg3);
714
+ }
715
+ export function __wbg_instanceof_ArrayBuffer_53db37b06f6b9afe(arg0) {
716
+ let result;
717
+ try {
718
+ result = arg0 instanceof ArrayBuffer;
719
+ } catch (_) {
720
+ result = false;
721
+ }
722
+ const ret = result;
723
+ return ret;
724
+ }
725
+ export function __wbg_instanceof_CursorSys_4b6a8aba0e823e75(arg0) {
726
+ let result;
727
+ try {
728
+ result = arg0 instanceof IDBCursorWithValue;
729
+ } catch (_) {
730
+ result = false;
731
+ }
732
+ const ret = result;
733
+ return ret;
734
+ }
735
+ export function __wbg_instanceof_DomException_bc16ce893e8c7439(arg0) {
736
+ let result;
737
+ try {
738
+ result = arg0 instanceof DOMException;
739
+ } catch (_) {
740
+ result = false;
741
+ }
742
+ const ret = result;
743
+ return ret;
744
+ }
745
+ export function __wbg_instanceof_Error_b3f7e146d654031a(arg0) {
746
+ let result;
747
+ try {
748
+ result = arg0 instanceof Error;
749
+ } catch (_) {
750
+ result = false;
751
+ }
752
+ const ret = result;
753
+ return ret;
754
+ }
755
+ export function __wbg_instanceof_IdbCursor_9dd6ddde8160efcf(arg0) {
756
+ let result;
757
+ try {
758
+ result = arg0 instanceof IDBCursor;
759
+ } catch (_) {
760
+ result = false;
761
+ }
762
+ const ret = result;
763
+ return ret;
764
+ }
765
+ export function __wbg_instanceof_IdbDatabase_102b0fe5255eee9c(arg0) {
766
+ let result;
767
+ try {
768
+ result = arg0 instanceof IDBDatabase;
769
+ } catch (_) {
770
+ result = false;
771
+ }
772
+ const ret = result;
773
+ return ret;
774
+ }
775
+ export function __wbg_instanceof_IdbRequest_eef501cff5d0b7c1(arg0) {
776
+ let result;
777
+ try {
778
+ result = arg0 instanceof IDBRequest;
779
+ } catch (_) {
780
+ result = false;
781
+ }
782
+ const ret = result;
783
+ return ret;
784
+ }
785
+ export function __wbg_instanceof_Response_ecfc823e8fb354e2(arg0) {
786
+ let result;
787
+ try {
788
+ result = arg0 instanceof Response;
789
+ } catch (_) {
790
+ result = false;
791
+ }
792
+ const ret = result;
793
+ return ret;
794
+ }
795
+ export function __wbg_instanceof_Uint8Array_abd07d4bd221d50b(arg0) {
796
+ let result;
797
+ try {
798
+ result = arg0 instanceof Uint8Array;
799
+ } catch (_) {
800
+ result = false;
801
+ }
802
+ const ret = result;
803
+ return ret;
804
+ }
805
+ export function __wbg_instanceof_Window_faa5cf994f49cca7(arg0) {
806
+ let result;
807
+ try {
808
+ result = arg0 instanceof Window;
809
+ } catch (_) {
810
+ result = false;
811
+ }
812
+ const ret = result;
813
+ return ret;
814
+ }
815
+ export function __wbg_instanceof_WorkerGlobalScope_a93ee1765e6a23bf(arg0) {
816
+ let result;
817
+ try {
818
+ result = arg0 instanceof WorkerGlobalScope;
819
+ } catch (_) {
820
+ result = false;
821
+ }
822
+ const ret = result;
823
+ return ret;
824
+ }
825
+ export function __wbg_instanceof_Worker_466db31d6830fa32(arg0) {
826
+ let result;
827
+ try {
828
+ result = arg0 instanceof Worker;
829
+ } catch (_) {
830
+ result = false;
831
+ }
832
+ const ret = result;
833
+ return ret;
834
+ }
835
+ export function __wbg_isArray_94898ed3aad6947b(arg0) {
836
+ const ret = Array.isArray(arg0);
837
+ return ret;
838
+ }
839
+ export function __wbg_isSafeInteger_01e964d144ad3a55(arg0) {
840
+ const ret = Number.isSafeInteger(arg0);
841
+ return ret;
842
+ }
843
+ export function __wbg_iterator_1441b47f341dc34f() {
844
+ const ret = Symbol.iterator;
845
+ return ret;
846
+ }
847
+ export function __wbg_length_2591a0f4f659a55c(arg0) {
848
+ const ret = arg0.length;
849
+ return ret;
850
+ }
851
+ export function __wbg_length_56fcd3e2b7e0299d(arg0) {
852
+ const ret = arg0.length;
853
+ return ret;
854
+ }
855
+ export function __wbg_log_2a34598952277e1c(arg0, arg1, arg2, arg3) {
856
+ console.log(arg0, arg1, arg2, arg3);
857
+ }
858
+ export function __wbg_lowerBound_a64226f683db77bb() { return handleError(function (arg0, arg1) {
859
+ const ret = IDBKeyRange.lowerBound(arg0, arg1 !== 0);
860
+ return ret;
861
+ }, arguments); }
862
+ export function __wbg_message_324ac511aeaf710e(arg0) {
863
+ const ret = arg0.message;
864
+ return ret;
865
+ }
866
+ export function __wbg_message_e88a8d3ba2b91c2a(arg0, arg1) {
867
+ const ret = arg1.message;
868
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
869
+ const len1 = WASM_VECTOR_LEN;
870
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
871
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
872
+ }
873
+ export function __wbg_msCrypto_bd5a034af96bcba6(arg0) {
874
+ const ret = arg0.msCrypto;
875
+ return ret;
876
+ }
877
+ export function __wbg_name_d09e9b472d8320d3(arg0) {
878
+ const ret = arg0.name;
879
+ return ret;
880
+ }
881
+ export function __wbg_name_fe88cfc178ec40b8(arg0, arg1) {
882
+ const ret = arg1.name;
883
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
884
+ const len1 = WASM_VECTOR_LEN;
885
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
886
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
887
+ }
888
+ export function __wbg_newVersion_f0b3cd0a873fccbb(arg0, arg1) {
889
+ const ret = arg1.newVersion;
890
+ getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
891
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
892
+ }
893
+ export function __wbg_new_02d162bc6cf02f60() {
894
+ const ret = new Object();
895
+ return ret;
896
+ }
897
+ export function __wbg_new_070df68d66325372() {
898
+ const ret = new Map();
899
+ return ret;
900
+ }
901
+ export function __wbg_new_0_2722fcdb71a888a6() {
902
+ const ret = new Date();
903
+ return ret;
904
+ }
905
+ export function __wbg_new_0d10e9bbbdeecb5d() { return handleError(function () {
906
+ const ret = new MessageChannel();
907
+ return ret;
908
+ }, arguments); }
909
+ export function __wbg_new_1f236d63ba0c4784(arg0, arg1) {
910
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
911
+ return ret;
912
+ }
913
+ export function __wbg_new_227d7c05414eb861() {
914
+ const ret = new Error();
915
+ return ret;
916
+ }
917
+ export function __wbg_new_310879b66b6e95e1() {
918
+ const ret = new Array();
919
+ return ret;
920
+ }
921
+ export function __wbg_new_68c31a9607709b07() { return handleError(function (arg0, arg1) {
922
+ const ret = new URL(getStringFromWasm0(arg0, arg1));
923
+ return ret;
924
+ }, arguments); }
925
+ export function __wbg_new_7ddec6de44ff8f5d(arg0) {
926
+ const ret = new Uint8Array(arg0);
927
+ return ret;
928
+ }
929
+ export function __wbg_new_d8dfd33fa007511d(arg0, arg1) {
930
+ try {
931
+ var state0 = {a: arg0, b: arg1};
932
+ var cb0 = (arg0, arg1) => {
933
+ const a = state0.a;
934
+ state0.a = 0;
935
+ try {
936
+ return wasm_bindgen_27dc98475be2c699___convert__closures_____invoke___js_sys_e92f9435493f00b6___Function_fn_wasm_bindgen_27dc98475be2c699___JsValue_____wasm_bindgen_27dc98475be2c699___sys__Undefined___js_sys_e92f9435493f00b6___Function_fn_wasm_bindgen_27dc98475be2c699___JsValue_____wasm_bindgen_27dc98475be2c699___sys__Undefined_______true_(a, state0.b, arg0, arg1);
937
+ } finally {
938
+ state0.a = a;
939
+ }
940
+ };
941
+ const ret = new Promise(cb0);
942
+ return ret;
943
+ } finally {
944
+ state0.a = 0;
945
+ }
946
+ }
947
+ export function __wbg_new_eb10af9eb99c4641() { return handleError(function () {
948
+ const ret = new URLSearchParams();
949
+ return ret;
950
+ }, arguments); }
951
+ export function __wbg_new_ee0be486d8f01282() { return handleError(function () {
952
+ const ret = new Headers();
953
+ return ret;
954
+ }, arguments); }
955
+ export function __wbg_new_from_slice_269e35316ed2d061(arg0, arg1) {
956
+ const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
957
+ return ret;
958
+ }
959
+ export function __wbg_new_typed_c072c4ce9a2a0cdf(arg0, arg1) {
960
+ try {
961
+ var state0 = {a: arg0, b: arg1};
962
+ var cb0 = (arg0, arg1) => {
963
+ const a = state0.a;
964
+ state0.a = 0;
965
+ try {
966
+ return wasm_bindgen_27dc98475be2c699___convert__closures_____invoke___js_sys_e92f9435493f00b6___Function_fn_wasm_bindgen_27dc98475be2c699___JsValue_____wasm_bindgen_27dc98475be2c699___sys__Undefined___js_sys_e92f9435493f00b6___Function_fn_wasm_bindgen_27dc98475be2c699___JsValue_____wasm_bindgen_27dc98475be2c699___sys__Undefined_______true_(a, state0.b, arg0, arg1);
967
+ } finally {
968
+ state0.a = a;
969
+ }
970
+ };
971
+ const ret = new Promise(cb0);
972
+ return ret;
973
+ } finally {
974
+ state0.a = 0;
975
+ }
976
+ }
977
+ export function __wbg_new_with_length_99887c91eae4abab(arg0) {
978
+ const ret = new Uint8Array(arg0 >>> 0);
979
+ return ret;
980
+ }
981
+ export function __wbg_new_with_str_970fa142451e063b() { return handleError(function (arg0, arg1) {
982
+ const ret = new Request(getStringFromWasm0(arg0, arg1));
983
+ return ret;
984
+ }, arguments); }
985
+ export function __wbg_new_with_str_and_init_ffe9977c986ea039() { return handleError(function (arg0, arg1, arg2) {
986
+ const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
987
+ return ret;
988
+ }, arguments); }
989
+ export function __wbg_next_2a4e19f4f5083b0f(arg0) {
990
+ const ret = arg0.next;
991
+ return ret;
992
+ }
993
+ export function __wbg_next_6429a146bf756f93() { return handleError(function (arg0) {
994
+ const ret = arg0.next();
995
+ return ret;
996
+ }, arguments); }
997
+ export function __wbg_node_84ea875411254db1(arg0) {
998
+ const ret = arg0.node;
999
+ return ret;
1000
+ }
1001
+ export function __wbg_objectStore_b28adb984a77902e() { return handleError(function (arg0, arg1, arg2) {
1002
+ const ret = arg0.objectStore(getStringFromWasm0(arg1, arg2));
1003
+ return ret;
1004
+ }, arguments); }
1005
+ export function __wbg_of_d694dacacb7afa7f(arg0) {
1006
+ const ret = Array.of(arg0);
1007
+ return ret;
1008
+ }
1009
+ export function __wbg_oldVersion_afd7254bce31480c(arg0) {
1010
+ const ret = arg0.oldVersion;
1011
+ return ret;
1012
+ }
1013
+ export function __wbg_openCursor_7423d75422835a48() { return handleError(function (arg0) {
1014
+ const ret = arg0.openCursor();
1015
+ return ret;
1016
+ }, arguments); }
1017
+ export function __wbg_open_40ab11cdd8f5ac5a() { return handleError(function (arg0, arg1, arg2, arg3) {
1018
+ const ret = arg0.open(getStringFromWasm0(arg1, arg2), arg3 >>> 0);
1019
+ return ret;
1020
+ }, arguments); }
1021
+ export function __wbg_port1_43d1f7dfdc192929(arg0) {
1022
+ const ret = arg0.port1;
1023
+ return ret;
1024
+ }
1025
+ export function __wbg_port2_8b1be7acb46ef0ee(arg0) {
1026
+ const ret = arg0.port2;
1027
+ return ret;
1028
+ }
1029
+ export function __wbg_postMessage_9cee33a09d7dbfc5() { return handleError(function (arg0, arg1, arg2) {
1030
+ arg0.postMessage(arg1, arg2);
1031
+ }, arguments); }
1032
+ export function __wbg_primaryKey_075f19f210719c55() { return handleError(function (arg0) {
1033
+ const ret = arg0.primaryKey;
1034
+ return ret;
1035
+ }, arguments); }
1036
+ export function __wbg_process_44c7a14e11e9f69e(arg0) {
1037
+ const ret = arg0.process;
1038
+ return ret;
1039
+ }
1040
+ export function __wbg_prototypesetcall_5f9bdc8d75e07276(arg0, arg1, arg2) {
1041
+ Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
1042
+ }
1043
+ export function __wbg_push_b77c476b01548d0a(arg0, arg1) {
1044
+ const ret = arg0.push(arg1);
1045
+ return ret;
1046
+ }
1047
+ export function __wbg_put_848906967513a84d() { return handleError(function (arg0, arg1) {
1048
+ const ret = arg0.put(arg1);
1049
+ return ret;
1050
+ }, arguments); }
1051
+ export function __wbg_queueMicrotask_78d584b53af520f5(arg0) {
1052
+ const ret = arg0.queueMicrotask;
1053
+ return ret;
1054
+ }
1055
+ export function __wbg_queueMicrotask_b39ea83c7f01971a(arg0) {
1056
+ queueMicrotask(arg0);
1057
+ }
1058
+ export function __wbg_randomFillSync_6c25eac9869eb53c() { return handleError(function (arg0, arg1) {
1059
+ arg0.randomFillSync(arg1);
1060
+ }, arguments); }
1061
+ export function __wbg_readyState_b7c530197b76b93b(arg0) {
1062
+ const ret = arg0.readyState;
1063
+ return (__wbindgen_enum_IdbRequestReadyState.indexOf(ret) + 1 || 3) - 1;
1064
+ }
1065
+ export function __wbg_request_c35923681eed4ed1(arg0) {
1066
+ const ret = arg0.request;
1067
+ return ret;
1068
+ }
1069
+ export function __wbg_require_b4edbdcf3e2a1ef0() { return handleError(function () {
1070
+ const ret = module.require;
1071
+ return ret;
1072
+ }, arguments); }
1073
+ export function __wbg_resolve_d17db9352f5a220e(arg0) {
1074
+ const ret = Promise.resolve(arg0);
1075
+ return ret;
1076
+ }
1077
+ export function __wbg_result_c4cb33cd39c97cac() { return handleError(function (arg0) {
1078
+ const ret = arg0.result;
1079
+ return ret;
1080
+ }, arguments); }
1081
+ export function __wbg_search_a51654966912eff6(arg0, arg1) {
1082
+ const ret = arg1.search;
1083
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1084
+ const len1 = WASM_VECTOR_LEN;
1085
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1086
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1087
+ }
1088
+ export function __wbg_setTimeout_56bcdccbad22fd44() { return handleError(function (arg0, arg1) {
1089
+ const ret = setTimeout(arg0, arg1);
1090
+ return ret;
1091
+ }, arguments); }
1092
+ export function __wbg_set_6be42768c690e380(arg0, arg1, arg2) {
1093
+ arg0[arg1] = arg2;
1094
+ }
1095
+ export function __wbg_set_78ea6a19f4818587(arg0, arg1, arg2) {
1096
+ arg0[arg1 >>> 0] = arg2;
1097
+ }
1098
+ export function __wbg_set_a0e911be3da02782() { return handleError(function (arg0, arg1, arg2) {
1099
+ const ret = Reflect.set(arg0, arg1, arg2);
1100
+ return ret;
1101
+ }, arguments); }
1102
+ export function __wbg_set_body_7f56457720e81672(arg0, arg1) {
1103
+ arg0.body = arg1;
1104
+ }
1105
+ export function __wbg_set_d57e5106f0271787() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1106
+ arg0.set(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
1107
+ }, arguments); }
1108
+ export function __wbg_set_facb7a5914e0fa39(arg0, arg1, arg2) {
1109
+ const ret = arg0.set(arg1, arg2);
1110
+ return ret;
1111
+ }
1112
+ export function __wbg_set_headers_97ed66619adb1e3e(arg0, arg1) {
1113
+ arg0.headers = arg1;
1114
+ }
1115
+ export function __wbg_set_key_path_8f8e19a098d0851c(arg0, arg1) {
1116
+ arg0.keyPath = arg1;
1117
+ }
1118
+ export function __wbg_set_method_4d69a1a7e34c0aca(arg0, arg1, arg2) {
1119
+ arg0.method = getStringFromWasm0(arg1, arg2);
1120
+ }
1121
+ export function __wbg_set_multi_entry_d33edc22376c98fb(arg0, arg1) {
1122
+ arg0.multiEntry = arg1 !== 0;
1123
+ }
1124
+ export function __wbg_set_onabort_ed56d2172d920901(arg0, arg1) {
1125
+ arg0.onabort = arg1;
1126
+ }
1127
+ export function __wbg_set_onblocked_92d254048ee5dc3d(arg0, arg1) {
1128
+ arg0.onblocked = arg1;
1129
+ }
1130
+ export function __wbg_set_oncomplete_3f428ec13b20d7cc(arg0, arg1) {
1131
+ arg0.oncomplete = arg1;
1132
+ }
1133
+ export function __wbg_set_onerror_38740b892815eedc(arg0, arg1) {
1134
+ arg0.onerror = arg1;
1135
+ }
1136
+ export function __wbg_set_onerror_457b093a5063c7ec(arg0, arg1) {
1137
+ arg0.onerror = arg1;
1138
+ }
1139
+ export function __wbg_set_onmessage_fe533da1b9c90919(arg0, arg1) {
1140
+ arg0.onmessage = arg1;
1141
+ }
1142
+ export function __wbg_set_onsuccess_b556141053d02ea7(arg0, arg1) {
1143
+ arg0.onsuccess = arg1;
1144
+ }
1145
+ export function __wbg_set_onupgradeneeded_f885fa17614acd2b(arg0, arg1) {
1146
+ arg0.onupgradeneeded = arg1;
1147
+ }
1148
+ export function __wbg_set_search_a3815bfc2c9245dd(arg0, arg1, arg2) {
1149
+ arg0.search = getStringFromWasm0(arg1, arg2);
1150
+ }
1151
+ export function __wbg_set_unique_c307b08264e831b2(arg0, arg1) {
1152
+ arg0.unique = arg1 !== 0;
1153
+ }
1154
+ export function __wbg_sign_2e27571583c28bfa() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1155
+ const ret = arg0.sign(getStringFromWasm0(arg1, arg2), arg3, arg4);
1156
+ return ret;
1157
+ }, arguments); }
1158
+ export function __wbg_stack_3b0d974bbf31e44f(arg0, arg1) {
1159
+ const ret = arg1.stack;
1160
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1161
+ const len1 = WASM_VECTOR_LEN;
1162
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1163
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1164
+ }
1165
+ export function __wbg_static_accessor_GLOBAL_THIS_02344c9b09eb08a9() {
1166
+ const ret = typeof globalThis === 'undefined' ? null : globalThis;
1167
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1168
+ }
1169
+ export function __wbg_static_accessor_GLOBAL_ac6d4ac874d5cd54() {
1170
+ const ret = typeof global === 'undefined' ? null : global;
1171
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1172
+ }
1173
+ export function __wbg_static_accessor_SELF_9b2406c23aeb2023() {
1174
+ const ret = typeof self === 'undefined' ? null : self;
1175
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1176
+ }
1177
+ export function __wbg_static_accessor_WINDOW_b34d2126934e16ba() {
1178
+ const ret = typeof window === 'undefined' ? null : window;
1179
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1180
+ }
1181
+ export function __wbg_subarray_7c6a0da8f3b4a1ba(arg0, arg1, arg2) {
1182
+ const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
1183
+ return ret;
1184
+ }
1185
+ export function __wbg_subtle_a5e9e758ed333bed(arg0) {
1186
+ const ret = arg0.subtle;
1187
+ return ret;
1188
+ }
1189
+ export function __wbg_target_84e05e84ffc12989(arg0) {
1190
+ const ret = arg0.target;
1191
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1192
+ }
1193
+ export function __wbg_text_99930d92d5f1b540() { return handleError(function (arg0) {
1194
+ const ret = arg0.text();
1195
+ return ret;
1196
+ }, arguments); }
1197
+ export function __wbg_then_837494e384b37459(arg0, arg1) {
1198
+ const ret = arg0.then(arg1);
1199
+ return ret;
1200
+ }
1201
+ export function __wbg_then_bd927500e8905df2(arg0, arg1, arg2) {
1202
+ const ret = arg0.then(arg1, arg2);
1203
+ return ret;
1204
+ }
1205
+ export function __wbg_toString_1dda136fd8f30a5f(arg0) {
1206
+ const ret = arg0.toString();
1207
+ return ret;
1208
+ }
1209
+ export function __wbg_toString_a5ee42947b978082(arg0) {
1210
+ const ret = arg0.toString();
1211
+ return ret;
1212
+ }
1213
+ export function __wbg_transaction_213e4f585d3d1b40(arg0) {
1214
+ const ret = arg0.transaction;
1215
+ return ret;
1216
+ }
1217
+ export function __wbg_transaction_38cea079a9d82352() { return handleError(function (arg0, arg1, arg2) {
1218
+ const ret = arg0.transaction(arg1, __wbindgen_enum_IdbTransactionMode[arg2]);
1219
+ return ret;
1220
+ }, arguments); }
1221
+ export function __wbg_transaction_b7261fed68fa4264() { return handleError(function (arg0, arg1, arg2, arg3) {
1222
+ const ret = arg0.transaction(getStringFromWasm0(arg1, arg2), __wbindgen_enum_IdbTransactionMode[arg3]);
1223
+ return ret;
1224
+ }, arguments); }
1225
+ export function __wbg_upperBound_f7daa7529e579cfc() { return handleError(function (arg0, arg1) {
1226
+ const ret = IDBKeyRange.upperBound(arg0, arg1 !== 0);
1227
+ return ret;
1228
+ }, arguments); }
1229
+ export function __wbg_url_f1cddff1f5b9519a(arg0, arg1) {
1230
+ const ret = arg1.url;
1231
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1232
+ const len1 = WASM_VECTOR_LEN;
1233
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1234
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1235
+ }
1236
+ export function __wbg_value_9cc0518af87a489c(arg0) {
1237
+ const ret = arg0.value;
1238
+ return ret;
1239
+ }
1240
+ export function __wbg_versions_276b2795b1c6a219(arg0) {
1241
+ const ret = arg0.versions;
1242
+ return ret;
1243
+ }
1244
+ export function __wbg_warn_099dd8c85568de56(arg0, arg1, arg2, arg3) {
1245
+ console.warn(arg0, arg1, arg2, arg3);
1246
+ }
1247
+ export function __wbindgen_cast_0000000000000001(arg0, arg1) {
1248
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 1222, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
1249
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen_27dc98475be2c699___convert__closures_____invoke___wasm_bindgen_27dc98475be2c699___JsValue__core_a377585fb64a80ef___result__Result_____wasm_bindgen_27dc98475be2c699___JsError___true_);
1250
+ return ret;
1251
+ }
1252
+ export function __wbindgen_cast_0000000000000002(arg0, arg1) {
1253
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx: 547, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1254
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen_27dc98475be2c699___convert__closures_____invoke___web_sys_4f8cbe9785b72873___features__gen_Event__Event______true_);
1255
+ return ret;
1256
+ }
1257
+ export function __wbindgen_cast_0000000000000003(arg0, arg1) {
1258
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("IDBVersionChangeEvent")], shim_idx: 331, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
1259
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen_27dc98475be2c699___convert__closures_____invoke___web_sys_4f8cbe9785b72873___features__gen_IdbVersionChangeEvent__IdbVersionChangeEvent__core_a377585fb64a80ef___result__Result_____wasm_bindgen_27dc98475be2c699___JsValue___true_);
1260
+ return ret;
1261
+ }
1262
+ export function __wbindgen_cast_0000000000000004(arg0, arg1) {
1263
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 1183, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1264
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen_27dc98475be2c699___convert__closures_____invoke___web_sys_4f8cbe9785b72873___features__gen_CloseEvent__CloseEvent______true_);
1265
+ return ret;
1266
+ }
1267
+ export function __wbindgen_cast_0000000000000005(arg0, arg1) {
1268
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 549, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1269
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen_27dc98475be2c699___convert__closures_____invoke_______true_);
1270
+ return ret;
1271
+ }
1272
+ export function __wbindgen_cast_0000000000000006(arg0, arg1) {
1273
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 810, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1274
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen_27dc98475be2c699___convert__closures_____invoke_______true__1_);
1275
+ return ret;
1276
+ }
1277
+ export function __wbindgen_cast_0000000000000007(arg0) {
1278
+ // Cast intrinsic for `F64 -> Externref`.
1279
+ const ret = arg0;
1280
+ return ret;
1281
+ }
1282
+ export function __wbindgen_cast_0000000000000008(arg0) {
1283
+ // Cast intrinsic for `I64 -> Externref`.
1284
+ const ret = arg0;
1285
+ return ret;
1286
+ }
1287
+ export function __wbindgen_cast_0000000000000009(arg0, arg1) {
1288
+ // Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
1289
+ const ret = getArrayU8FromWasm0(arg0, arg1);
1290
+ return ret;
1291
+ }
1292
+ export function __wbindgen_cast_000000000000000a(arg0, arg1) {
1293
+ // Cast intrinsic for `Ref(String) -> Externref`.
1294
+ const ret = getStringFromWasm0(arg0, arg1);
1295
+ return ret;
1296
+ }
1297
+ export function __wbindgen_cast_000000000000000b(arg0) {
1298
+ // Cast intrinsic for `U64 -> Externref`.
1299
+ const ret = BigInt.asUintN(64, arg0);
1300
+ return ret;
1301
+ }
1302
+ export function __wbindgen_cast_000000000000000c(arg0, arg1) {
1303
+ var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
1304
+ wasm.__wbindgen_free(arg0, arg1 * 4, 4);
1305
+ // Cast intrinsic for `Vector(NamedExternref("Bio")) -> Externref`.
1306
+ const ret = v0;
1307
+ return ret;
1308
+ }
1309
+ export function __wbindgen_cast_000000000000000d(arg0, arg1) {
1310
+ var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
1311
+ wasm.__wbindgen_free(arg0, arg1 * 4, 4);
1312
+ // Cast intrinsic for `Vector(NamedExternref("PeerInfoV1")) -> Externref`.
1313
+ const ret = v0;
1314
+ return ret;
1315
+ }
1316
+ export function __wbindgen_cast_000000000000000e(arg0, arg1) {
1317
+ var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
1318
+ wasm.__wbindgen_free(arg0, arg1 * 4, 4);
1319
+ // Cast intrinsic for `Vector(NamedExternref("PowJobStatusV1")) -> Externref`.
1320
+ const ret = v0;
1321
+ return ret;
1322
+ }
1323
+ export function __wbindgen_cast_000000000000000f(arg0, arg1) {
1324
+ var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
1325
+ wasm.__wbindgen_free(arg0, arg1 * 4, 4);
1326
+ // Cast intrinsic for `Vector(NamedExternref("string")) -> Externref`.
1327
+ const ret = v0;
1328
+ return ret;
1329
+ }
1330
+ export function __wbindgen_cast_0000000000000010(arg0, arg1) {
1331
+ var v0 = getArrayU32FromWasm0(arg0, arg1).slice();
1332
+ wasm.__wbindgen_free(arg0, arg1 * 4, 4);
1333
+ // Cast intrinsic for `Vector(U32) -> Externref`.
1334
+ const ret = v0;
1335
+ return ret;
1336
+ }
1337
+ export function __wbindgen_init_externref_table() {
1338
+ const table = wasm.__wbindgen_externrefs;
1339
+ const offset = table.grow(4);
1340
+ table.set(0, undefined);
1341
+ table.set(offset + 0, undefined);
1342
+ table.set(offset + 1, null);
1343
+ table.set(offset + 2, true);
1344
+ table.set(offset + 3, false);
1345
+ }
1346
+ function wasm_bindgen_27dc98475be2c699___convert__closures_____invoke_______true_(arg0, arg1) {
1347
+ wasm.wasm_bindgen_27dc98475be2c699___convert__closures_____invoke_______true_(arg0, arg1);
1348
+ }
1349
+
1350
+ function wasm_bindgen_27dc98475be2c699___convert__closures_____invoke_______true__1_(arg0, arg1) {
1351
+ wasm.wasm_bindgen_27dc98475be2c699___convert__closures_____invoke_______true__1_(arg0, arg1);
1352
+ }
1353
+
1354
+ function wasm_bindgen_27dc98475be2c699___convert__closures_____invoke___web_sys_4f8cbe9785b72873___features__gen_Event__Event______true_(arg0, arg1, arg2) {
1355
+ wasm.wasm_bindgen_27dc98475be2c699___convert__closures_____invoke___web_sys_4f8cbe9785b72873___features__gen_Event__Event______true_(arg0, arg1, arg2);
1356
+ }
1357
+
1358
+ function wasm_bindgen_27dc98475be2c699___convert__closures_____invoke___web_sys_4f8cbe9785b72873___features__gen_CloseEvent__CloseEvent______true_(arg0, arg1, arg2) {
1359
+ wasm.wasm_bindgen_27dc98475be2c699___convert__closures_____invoke___web_sys_4f8cbe9785b72873___features__gen_CloseEvent__CloseEvent______true_(arg0, arg1, arg2);
1360
+ }
1361
+
1362
+ function wasm_bindgen_27dc98475be2c699___convert__closures_____invoke___wasm_bindgen_27dc98475be2c699___JsValue__core_a377585fb64a80ef___result__Result_____wasm_bindgen_27dc98475be2c699___JsError___true_(arg0, arg1, arg2) {
1363
+ const ret = wasm.wasm_bindgen_27dc98475be2c699___convert__closures_____invoke___wasm_bindgen_27dc98475be2c699___JsValue__core_a377585fb64a80ef___result__Result_____wasm_bindgen_27dc98475be2c699___JsError___true_(arg0, arg1, arg2);
1364
+ if (ret[1]) {
1365
+ throw takeFromExternrefTable0(ret[0]);
1366
+ }
1367
+ }
1368
+
1369
+ function wasm_bindgen_27dc98475be2c699___convert__closures_____invoke___web_sys_4f8cbe9785b72873___features__gen_IdbVersionChangeEvent__IdbVersionChangeEvent__core_a377585fb64a80ef___result__Result_____wasm_bindgen_27dc98475be2c699___JsValue___true_(arg0, arg1, arg2) {
1370
+ const ret = wasm.wasm_bindgen_27dc98475be2c699___convert__closures_____invoke___web_sys_4f8cbe9785b72873___features__gen_IdbVersionChangeEvent__IdbVersionChangeEvent__core_a377585fb64a80ef___result__Result_____wasm_bindgen_27dc98475be2c699___JsValue___true_(arg0, arg1, arg2);
1371
+ if (ret[1]) {
1372
+ throw takeFromExternrefTable0(ret[0]);
1373
+ }
1374
+ }
1375
+
1376
+ function wasm_bindgen_27dc98475be2c699___convert__closures_____invoke___js_sys_e92f9435493f00b6___Function_fn_wasm_bindgen_27dc98475be2c699___JsValue_____wasm_bindgen_27dc98475be2c699___sys__Undefined___js_sys_e92f9435493f00b6___Function_fn_wasm_bindgen_27dc98475be2c699___JsValue_____wasm_bindgen_27dc98475be2c699___sys__Undefined_______true_(arg0, arg1, arg2, arg3) {
1377
+ wasm.wasm_bindgen_27dc98475be2c699___convert__closures_____invoke___js_sys_e92f9435493f00b6___Function_fn_wasm_bindgen_27dc98475be2c699___JsValue_____wasm_bindgen_27dc98475be2c699___sys__Undefined___js_sys_e92f9435493f00b6___Function_fn_wasm_bindgen_27dc98475be2c699___JsValue_____wasm_bindgen_27dc98475be2c699___sys__Undefined_______true_(arg0, arg1, arg2, arg3);
1378
+ }
1379
+
1380
+
1381
+ const __wbindgen_enum_IdbRequestReadyState = ["pending", "done"];
1382
+
1383
+
1384
+ const __wbindgen_enum_IdbTransactionMode = ["readonly", "readwrite", "versionchange", "readwriteflush", "cleanup"];
1385
+ const HashiverseClientWasmFinalization = (typeof FinalizationRegistry === 'undefined')
1386
+ ? { register: () => {}, unregister: () => {} }
1387
+ : new FinalizationRegistry(ptr => wasm.__wbg_hashiverseclientwasm_free(ptr, 1));
1388
+
1389
+ function addToExternrefTable0(obj) {
1390
+ const idx = wasm.__externref_table_alloc();
1391
+ wasm.__wbindgen_externrefs.set(idx, obj);
1392
+ return idx;
1393
+ }
1394
+
1395
+ const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
1396
+ ? { register: () => {}, unregister: () => {} }
1397
+ : new FinalizationRegistry(state => wasm.__wbindgen_destroy_closure(state.a, state.b));
1398
+
1399
+ function debugString(val) {
1400
+ // primitive types
1401
+ const type = typeof val;
1402
+ if (type == 'number' || type == 'boolean' || val == null) {
1403
+ return `${val}`;
1404
+ }
1405
+ if (type == 'string') {
1406
+ return `"${val}"`;
1407
+ }
1408
+ if (type == 'symbol') {
1409
+ const description = val.description;
1410
+ if (description == null) {
1411
+ return 'Symbol';
1412
+ } else {
1413
+ return `Symbol(${description})`;
1414
+ }
1415
+ }
1416
+ if (type == 'function') {
1417
+ const name = val.name;
1418
+ if (typeof name == 'string' && name.length > 0) {
1419
+ return `Function(${name})`;
1420
+ } else {
1421
+ return 'Function';
1422
+ }
1423
+ }
1424
+ // objects
1425
+ if (Array.isArray(val)) {
1426
+ const length = val.length;
1427
+ let debug = '[';
1428
+ if (length > 0) {
1429
+ debug += debugString(val[0]);
1430
+ }
1431
+ for(let i = 1; i < length; i++) {
1432
+ debug += ', ' + debugString(val[i]);
1433
+ }
1434
+ debug += ']';
1435
+ return debug;
1436
+ }
1437
+ // Test for built-in
1438
+ const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
1439
+ let className;
1440
+ if (builtInMatches && builtInMatches.length > 1) {
1441
+ className = builtInMatches[1];
1442
+ } else {
1443
+ // Failed to match the standard '[object ClassName]'
1444
+ return toString.call(val);
1445
+ }
1446
+ if (className == 'Object') {
1447
+ // we're a user defined class or Object
1448
+ // JSON.stringify avoids problems with cycles, and is generally much
1449
+ // easier than looping through ownProperties of `val`.
1450
+ try {
1451
+ return 'Object(' + JSON.stringify(val) + ')';
1452
+ } catch (_) {
1453
+ return 'Object';
1454
+ }
1455
+ }
1456
+ // errors
1457
+ if (val instanceof Error) {
1458
+ return `${val.name}: ${val.message}\n${val.stack}`;
1459
+ }
1460
+ // TODO we could test for more things here, like `Set`s and `Map`s.
1461
+ return className;
1462
+ }
1463
+
1464
+ function getArrayJsValueFromWasm0(ptr, len) {
1465
+ ptr = ptr >>> 0;
1466
+ const mem = getDataViewMemory0();
1467
+ const result = [];
1468
+ for (let i = ptr; i < ptr + 4 * len; i += 4) {
1469
+ result.push(wasm.__wbindgen_externrefs.get(mem.getUint32(i, true)));
1470
+ }
1471
+ wasm.__externref_drop_slice(ptr, len);
1472
+ return result;
1473
+ }
1474
+
1475
+ function getArrayU32FromWasm0(ptr, len) {
1476
+ ptr = ptr >>> 0;
1477
+ return getUint32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
1478
+ }
1479
+
1480
+ function getArrayU8FromWasm0(ptr, len) {
1481
+ ptr = ptr >>> 0;
1482
+ return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
1483
+ }
1484
+
1485
+ let cachedDataViewMemory0 = null;
1486
+ function getDataViewMemory0() {
1487
+ if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
1488
+ cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
1489
+ }
1490
+ return cachedDataViewMemory0;
1491
+ }
1492
+
1493
+ function getStringFromWasm0(ptr, len) {
1494
+ return decodeText(ptr >>> 0, len);
1495
+ }
1496
+
1497
+ let cachedUint32ArrayMemory0 = null;
1498
+ function getUint32ArrayMemory0() {
1499
+ if (cachedUint32ArrayMemory0 === null || cachedUint32ArrayMemory0.byteLength === 0) {
1500
+ cachedUint32ArrayMemory0 = new Uint32Array(wasm.memory.buffer);
1501
+ }
1502
+ return cachedUint32ArrayMemory0;
1503
+ }
1504
+
1505
+ let cachedUint8ArrayMemory0 = null;
1506
+ function getUint8ArrayMemory0() {
1507
+ if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
1508
+ cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
1509
+ }
1510
+ return cachedUint8ArrayMemory0;
1511
+ }
1512
+
1513
+ function handleError(f, args) {
1514
+ try {
1515
+ return f.apply(this, args);
1516
+ } catch (e) {
1517
+ const idx = addToExternrefTable0(e);
1518
+ wasm.__wbindgen_exn_store(idx);
1519
+ }
1520
+ }
1521
+
1522
+ function isLikeNone(x) {
1523
+ return x === undefined || x === null;
1524
+ }
1525
+
1526
+ function makeMutClosure(arg0, arg1, f) {
1527
+ const state = { a: arg0, b: arg1, cnt: 1 };
1528
+ const real = (...args) => {
1529
+
1530
+ // First up with a closure we increment the internal reference
1531
+ // count. This ensures that the Rust closure environment won't
1532
+ // be deallocated while we're invoking it.
1533
+ state.cnt++;
1534
+ const a = state.a;
1535
+ state.a = 0;
1536
+ try {
1537
+ return f(a, state.b, ...args);
1538
+ } finally {
1539
+ state.a = a;
1540
+ real._wbg_cb_unref();
1541
+ }
1542
+ };
1543
+ real._wbg_cb_unref = () => {
1544
+ if (--state.cnt === 0) {
1545
+ wasm.__wbindgen_destroy_closure(state.a, state.b);
1546
+ state.a = 0;
1547
+ CLOSURE_DTORS.unregister(state);
1548
+ }
1549
+ };
1550
+ CLOSURE_DTORS.register(real, state, state);
1551
+ return real;
1552
+ }
1553
+
1554
+ function passStringToWasm0(arg, malloc, realloc) {
1555
+ if (realloc === undefined) {
1556
+ const buf = cachedTextEncoder.encode(arg);
1557
+ const ptr = malloc(buf.length, 1) >>> 0;
1558
+ getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
1559
+ WASM_VECTOR_LEN = buf.length;
1560
+ return ptr;
1561
+ }
1562
+
1563
+ let len = arg.length;
1564
+ let ptr = malloc(len, 1) >>> 0;
1565
+
1566
+ const mem = getUint8ArrayMemory0();
1567
+
1568
+ let offset = 0;
1569
+
1570
+ for (; offset < len; offset++) {
1571
+ const code = arg.charCodeAt(offset);
1572
+ if (code > 0x7F) break;
1573
+ mem[ptr + offset] = code;
1574
+ }
1575
+ if (offset !== len) {
1576
+ if (offset !== 0) {
1577
+ arg = arg.slice(offset);
1578
+ }
1579
+ ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
1580
+ const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
1581
+ const ret = cachedTextEncoder.encodeInto(arg, view);
1582
+
1583
+ offset += ret.written;
1584
+ ptr = realloc(ptr, len, offset, 1) >>> 0;
1585
+ }
1586
+
1587
+ WASM_VECTOR_LEN = offset;
1588
+ return ptr;
1589
+ }
1590
+
1591
+ function takeFromExternrefTable0(idx) {
1592
+ const value = wasm.__wbindgen_externrefs.get(idx);
1593
+ wasm.__externref_table_dealloc(idx);
1594
+ return value;
1595
+ }
1596
+
1597
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
1598
+ cachedTextDecoder.decode();
1599
+ const MAX_SAFARI_DECODE_BYTES = 2146435072;
1600
+ let numBytesDecoded = 0;
1601
+ function decodeText(ptr, len) {
1602
+ numBytesDecoded += len;
1603
+ if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
1604
+ cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
1605
+ cachedTextDecoder.decode();
1606
+ numBytesDecoded = len;
1607
+ }
1608
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
1609
+ }
1610
+
1611
+ const cachedTextEncoder = new TextEncoder();
1612
+
1613
+ if (!('encodeInto' in cachedTextEncoder)) {
1614
+ cachedTextEncoder.encodeInto = function (arg, view) {
1615
+ const buf = cachedTextEncoder.encode(arg);
1616
+ view.set(buf);
1617
+ return {
1618
+ read: arg.length,
1619
+ written: buf.length
1620
+ };
1621
+ };
1622
+ }
1623
+
1624
+ let WASM_VECTOR_LEN = 0;
1625
+
1626
+
1627
+ let wasm;
1628
+ export function __wbg_set_wasm(val) {
1629
+ wasm = val;
1630
+ }