@filen/sdk-rs 0.3.4 → 0.3.6

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.
@@ -1,1395 +0,0 @@
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 isLikeNone(x) {
110
- return x === undefined || x === null;
111
- }
112
-
113
- function getArrayU8FromWasm0(ptr, len) {
114
- ptr = ptr >>> 0;
115
- return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
116
- }
117
-
118
- const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
119
- ? { register: () => {}, unregister: () => {} }
120
- : new FinalizationRegistry(state => {
121
- wasm.__wbindgen_export_6.get(state.dtor)(state.a, state.b)
122
- });
123
-
124
- function makeMutClosure(arg0, arg1, dtor, f) {
125
- const state = { a: arg0, b: arg1, cnt: 1, dtor };
126
- const real = (...args) => {
127
- // First up with a closure we increment the internal reference
128
- // count. This ensures that the Rust closure environment won't
129
- // be deallocated while we're invoking it.
130
- state.cnt++;
131
- const a = state.a;
132
- state.a = 0;
133
- try {
134
- return f(a, state.b, ...args);
135
- } finally {
136
- if (--state.cnt === 0) {
137
- wasm.__wbindgen_export_6.get(state.dtor)(a, state.b);
138
- CLOSURE_DTORS.unregister(state);
139
- } else {
140
- state.a = a;
141
- }
142
- }
143
- };
144
- real.original = state;
145
- CLOSURE_DTORS.register(real, state, state);
146
- return real;
147
- }
148
-
149
- function debugString(val) {
150
- // primitive types
151
- const type = typeof val;
152
- if (type == 'number' || type == 'boolean' || val == null) {
153
- return `${val}`;
154
- }
155
- if (type == 'string') {
156
- return `"${val}"`;
157
- }
158
- if (type == 'symbol') {
159
- const description = val.description;
160
- if (description == null) {
161
- return 'Symbol';
162
- } else {
163
- return `Symbol(${description})`;
164
- }
165
- }
166
- if (type == 'function') {
167
- const name = val.name;
168
- if (typeof name == 'string' && name.length > 0) {
169
- return `Function(${name})`;
170
- } else {
171
- return 'Function';
172
- }
173
- }
174
- // objects
175
- if (Array.isArray(val)) {
176
- const length = val.length;
177
- let debug = '[';
178
- if (length > 0) {
179
- debug += debugString(val[0]);
180
- }
181
- for(let i = 1; i < length; i++) {
182
- debug += ', ' + debugString(val[i]);
183
- }
184
- debug += ']';
185
- return debug;
186
- }
187
- // Test for built-in
188
- const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
189
- let className;
190
- if (builtInMatches && builtInMatches.length > 1) {
191
- className = builtInMatches[1];
192
- } else {
193
- // Failed to match the standard '[object ClassName]'
194
- return toString.call(val);
195
- }
196
- if (className == 'Object') {
197
- // we're a user defined class or Object
198
- // JSON.stringify avoids problems with cycles, and is generally much
199
- // easier than looping through ownProperties of `val`.
200
- try {
201
- return 'Object(' + JSON.stringify(val) + ')';
202
- } catch (_) {
203
- return 'Object';
204
- }
205
- }
206
- // errors
207
- if (val instanceof Error) {
208
- return `${val.name}: ${val.message}\n${val.stack}`;
209
- }
210
- // TODO we could test for more things here, like `Set`s and `Map`s.
211
- return className;
212
- }
213
-
214
- function passArray8ToWasm0(arg, malloc) {
215
- const ptr = malloc(arg.length * 1, 1) >>> 0;
216
- getUint8ArrayMemory0().set(arg, ptr / 1);
217
- WASM_VECTOR_LEN = arg.length;
218
- return ptr;
219
- }
220
-
221
- function takeFromExternrefTable0(idx) {
222
- const value = wasm.__wbindgen_export_4.get(idx);
223
- wasm.__externref_table_dealloc(idx);
224
- return value;
225
- }
226
- /**
227
- * @param {StringifiedClient} serialized
228
- * @returns {Client}
229
- */
230
- export function fromStringified(serialized) {
231
- const ret = wasm.fromStringified(serialized);
232
- if (ret[2]) {
233
- throw takeFromExternrefTable0(ret[1]);
234
- }
235
- return Client.__wrap(ret[0]);
236
- }
237
-
238
- /**
239
- * @param {string} email
240
- * @param {string} password
241
- * @param {string | null} [twoFactorCode]
242
- * @returns {Promise<Client>}
243
- */
244
- export function login(email, password, twoFactorCode) {
245
- const ptr0 = passStringToWasm0(email, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
246
- const len0 = WASM_VECTOR_LEN;
247
- const ptr1 = passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
248
- const len1 = WASM_VECTOR_LEN;
249
- var ptr2 = isLikeNone(twoFactorCode) ? 0 : passStringToWasm0(twoFactorCode, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
250
- var len2 = WASM_VECTOR_LEN;
251
- const ret = wasm.login(ptr0, len0, ptr1, len1, ptr2, len2);
252
- return ret;
253
- }
254
-
255
- export function main_js() {
256
- wasm.main_js();
257
- }
258
-
259
- function __wbg_adapter_60(arg0, arg1) {
260
- wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h1ad07d0627257b45(arg0, arg1);
261
- }
262
-
263
- function __wbg_adapter_63(arg0, arg1) {
264
- wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h96ccbfe273ba439a(arg0, arg1);
265
- }
266
-
267
- function __wbg_adapter_66(arg0, arg1, arg2) {
268
- wasm.closure837_externref_shim(arg0, arg1, arg2);
269
- }
270
-
271
- function __wbg_adapter_303(arg0, arg1, arg2, arg3) {
272
- wasm.closure996_externref_shim(arg0, arg1, arg2, arg3);
273
- }
274
-
275
- const __wbindgen_enum_ReadableStreamReaderMode = ["byob"];
276
-
277
- const __wbindgen_enum_ReadableStreamType = ["bytes"];
278
-
279
- const __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"];
280
-
281
- const __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate"];
282
-
283
- const ClientFinalization = (typeof FinalizationRegistry === 'undefined')
284
- ? { register: () => {}, unregister: () => {} }
285
- : new FinalizationRegistry(ptr => wasm.__wbg_client_free(ptr >>> 0, 1));
286
-
287
- export class Client {
288
-
289
- static __wrap(ptr) {
290
- ptr = ptr >>> 0;
291
- const obj = Object.create(Client.prototype);
292
- obj.__wbg_ptr = ptr;
293
- ClientFinalization.register(obj, obj.__wbg_ptr, obj);
294
- return obj;
295
- }
296
-
297
- __destroy_into_raw() {
298
- const ptr = this.__wbg_ptr;
299
- this.__wbg_ptr = 0;
300
- ClientFinalization.unregister(this);
301
- return ptr;
302
- }
303
-
304
- free() {
305
- const ptr = this.__destroy_into_raw();
306
- wasm.__wbg_client_free(ptr, 0);
307
- }
308
- /**
309
- * @returns {StringifiedClient}
310
- */
311
- toStringified() {
312
- const ret = wasm.client_toStringified(this.__wbg_ptr);
313
- return ret;
314
- }
315
- /**
316
- * @param {DownloadFileToZipParams} params
317
- * @returns {Promise<void>}
318
- */
319
- downloadItemsToZip(params) {
320
- const ret = wasm.client_downloadItemsToZip(this.__wbg_ptr, params);
321
- return ret;
322
- }
323
- /**
324
- * @param {DownloadFileStreamParams} params
325
- * @returns {Promise<void>}
326
- */
327
- downloadFileToWriter(params) {
328
- const ret = wasm.client_downloadFileToWriter(this.__wbg_ptr, params);
329
- return ret;
330
- }
331
- /**
332
- * @param {File} file
333
- * @returns {Promise<File>}
334
- */
335
- trashFile(file) {
336
- const ret = wasm.client_trashFile(this.__wbg_ptr, file);
337
- return ret;
338
- }
339
- /**
340
- * @param {File} file
341
- * @returns {Promise<Uint8Array>}
342
- */
343
- downloadFile(file) {
344
- const ret = wasm.client_downloadFile(this.__wbg_ptr, file);
345
- return ret;
346
- }
347
- /**
348
- * @param {UploadFileStreamParams} params
349
- * @returns {Promise<File>}
350
- */
351
- uploadFileFromReader(params) {
352
- const ret = wasm.client_uploadFileFromReader(this.__wbg_ptr, params);
353
- return ret;
354
- }
355
- /**
356
- * @param {File} file
357
- * @returns {Promise<void>}
358
- */
359
- deleteFilePermanently(file) {
360
- const ret = wasm.client_deleteFilePermanently(this.__wbg_ptr, file);
361
- return ret;
362
- }
363
- /**
364
- * @param {Uint8Array} data
365
- * @param {UploadFileParams} params
366
- * @returns {Promise<File>}
367
- */
368
- uploadFile(data, params) {
369
- const ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
370
- const len0 = WASM_VECTOR_LEN;
371
- const ret = wasm.client_uploadFile(this.__wbg_ptr, ptr0, len0, params);
372
- return ret;
373
- }
374
- /**
375
- * @param {DirEnum} dir
376
- * @returns {[Dir[], File[]]}
377
- */
378
- listDir(dir) {
379
- const ret = wasm.client_listDir(this.__wbg_ptr, dir);
380
- return ret;
381
- }
382
- /**
383
- * @returns {Root}
384
- */
385
- root() {
386
- const ret = wasm.client_root(this.__wbg_ptr);
387
- return ret;
388
- }
389
- /**
390
- * @param {DirEnum} dir
391
- * @param {string} nameOrUuid
392
- * @returns {Promise<NonRootObject | undefined>}
393
- */
394
- findItemInDir(dir, nameOrUuid) {
395
- const ptr0 = passStringToWasm0(nameOrUuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
396
- const len0 = WASM_VECTOR_LEN;
397
- const ret = wasm.client_findItemInDir(this.__wbg_ptr, dir, ptr0, len0);
398
- return ret;
399
- }
400
- /**
401
- * @param {Dir} dir
402
- * @returns {Promise<Dir>}
403
- */
404
- trashDir(dir) {
405
- const ret = wasm.client_trashDir(this.__wbg_ptr, dir);
406
- return ret;
407
- }
408
- /**
409
- * @param {Dir} dir
410
- * @returns {Promise<void>}
411
- */
412
- deleteDirPermanently(dir) {
413
- const ret = wasm.client_deleteDirPermanently(this.__wbg_ptr, dir);
414
- return ret;
415
- }
416
- /**
417
- * @param {DirEnum} parent
418
- * @param {string} name
419
- * @returns {Promise<void>}
420
- */
421
- dirExists(parent, name) {
422
- const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
423
- const len0 = WASM_VECTOR_LEN;
424
- const ret = wasm.client_dirExists(this.__wbg_ptr, parent, ptr0, len0);
425
- return ret;
426
- }
427
- /**
428
- * @param {DirEnum} parent
429
- * @param {string} name
430
- * @returns {Promise<Dir>}
431
- */
432
- createDir(parent, name) {
433
- const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
434
- const len0 = WASM_VECTOR_LEN;
435
- const ret = wasm.client_createDir(this.__wbg_ptr, parent, ptr0, len0);
436
- return ret;
437
- }
438
- }
439
-
440
- const IntoUnderlyingByteSourceFinalization = (typeof FinalizationRegistry === 'undefined')
441
- ? { register: () => {}, unregister: () => {} }
442
- : new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingbytesource_free(ptr >>> 0, 1));
443
-
444
- export class IntoUnderlyingByteSource {
445
-
446
- __destroy_into_raw() {
447
- const ptr = this.__wbg_ptr;
448
- this.__wbg_ptr = 0;
449
- IntoUnderlyingByteSourceFinalization.unregister(this);
450
- return ptr;
451
- }
452
-
453
- free() {
454
- const ptr = this.__destroy_into_raw();
455
- wasm.__wbg_intounderlyingbytesource_free(ptr, 0);
456
- }
457
- /**
458
- * @returns {ReadableStreamType}
459
- */
460
- get type() {
461
- const ret = wasm.intounderlyingbytesource_type(this.__wbg_ptr);
462
- return __wbindgen_enum_ReadableStreamType[ret];
463
- }
464
- /**
465
- * @returns {number}
466
- */
467
- get autoAllocateChunkSize() {
468
- const ret = wasm.intounderlyingbytesource_autoAllocateChunkSize(this.__wbg_ptr);
469
- return ret >>> 0;
470
- }
471
- /**
472
- * @param {ReadableByteStreamController} controller
473
- */
474
- start(controller) {
475
- wasm.intounderlyingbytesource_start(this.__wbg_ptr, controller);
476
- }
477
- /**
478
- * @param {ReadableByteStreamController} controller
479
- * @returns {Promise<any>}
480
- */
481
- pull(controller) {
482
- const ret = wasm.intounderlyingbytesource_pull(this.__wbg_ptr, controller);
483
- return ret;
484
- }
485
- cancel() {
486
- const ptr = this.__destroy_into_raw();
487
- wasm.intounderlyingbytesource_cancel(ptr);
488
- }
489
- }
490
-
491
- const IntoUnderlyingSinkFinalization = (typeof FinalizationRegistry === 'undefined')
492
- ? { register: () => {}, unregister: () => {} }
493
- : new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingsink_free(ptr >>> 0, 1));
494
-
495
- export class IntoUnderlyingSink {
496
-
497
- __destroy_into_raw() {
498
- const ptr = this.__wbg_ptr;
499
- this.__wbg_ptr = 0;
500
- IntoUnderlyingSinkFinalization.unregister(this);
501
- return ptr;
502
- }
503
-
504
- free() {
505
- const ptr = this.__destroy_into_raw();
506
- wasm.__wbg_intounderlyingsink_free(ptr, 0);
507
- }
508
- /**
509
- * @param {any} chunk
510
- * @returns {Promise<any>}
511
- */
512
- write(chunk) {
513
- const ret = wasm.intounderlyingsink_write(this.__wbg_ptr, chunk);
514
- return ret;
515
- }
516
- /**
517
- * @param {any} reason
518
- * @returns {Promise<any>}
519
- */
520
- abort(reason) {
521
- const ptr = this.__destroy_into_raw();
522
- const ret = wasm.intounderlyingsink_abort(ptr, reason);
523
- return ret;
524
- }
525
- /**
526
- * @returns {Promise<any>}
527
- */
528
- close() {
529
- const ptr = this.__destroy_into_raw();
530
- const ret = wasm.intounderlyingsink_close(ptr);
531
- return ret;
532
- }
533
- }
534
-
535
- const IntoUnderlyingSourceFinalization = (typeof FinalizationRegistry === 'undefined')
536
- ? { register: () => {}, unregister: () => {} }
537
- : new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingsource_free(ptr >>> 0, 1));
538
-
539
- export class IntoUnderlyingSource {
540
-
541
- __destroy_into_raw() {
542
- const ptr = this.__wbg_ptr;
543
- this.__wbg_ptr = 0;
544
- IntoUnderlyingSourceFinalization.unregister(this);
545
- return ptr;
546
- }
547
-
548
- free() {
549
- const ptr = this.__destroy_into_raw();
550
- wasm.__wbg_intounderlyingsource_free(ptr, 0);
551
- }
552
- cancel() {
553
- const ptr = this.__destroy_into_raw();
554
- wasm.intounderlyingsource_cancel(ptr);
555
- }
556
- /**
557
- * @param {ReadableStreamDefaultController} controller
558
- * @returns {Promise<any>}
559
- */
560
- pull(controller) {
561
- const ret = wasm.intounderlyingsource_pull(this.__wbg_ptr, controller);
562
- return ret;
563
- }
564
- }
565
-
566
- export function __wbg_String_8f0eb39a4a4c2f66(arg0, arg1) {
567
- const ret = String(arg1);
568
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
569
- const len1 = WASM_VECTOR_LEN;
570
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
571
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
572
- };
573
-
574
- export function __wbg_abort_410ec47a64ac6117(arg0, arg1) {
575
- arg0.abort(arg1);
576
- };
577
-
578
- export function __wbg_abort_775ef1d17fc65868(arg0) {
579
- arg0.abort();
580
- };
581
-
582
- export function __wbg_aborted_c078e36031795a9a(arg0) {
583
- const ret = arg0.aborted;
584
- return ret;
585
- };
586
-
587
- export function __wbg_append_8c7dd8d641a5f01b() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
588
- arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
589
- }, arguments) };
590
-
591
- export function __wbg_arrayBuffer_d1b44c4390db422f() { return handleError(function (arg0) {
592
- const ret = arg0.arrayBuffer();
593
- return ret;
594
- }, arguments) };
595
-
596
- export function __wbg_body_0b8fd1fe671660df(arg0) {
597
- const ret = arg0.body;
598
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
599
- };
600
-
601
- export function __wbg_buffer_09165b52af8c5237(arg0) {
602
- const ret = arg0.buffer;
603
- return ret;
604
- };
605
-
606
- export function __wbg_buffer_609cc3eee51ed158(arg0) {
607
- const ret = arg0.buffer;
608
- return ret;
609
- };
610
-
611
- export function __wbg_byobRequest_77d9adf63337edfb(arg0) {
612
- const ret = arg0.byobRequest;
613
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
614
- };
615
-
616
- export function __wbg_byteLength_e674b853d9c77e1d(arg0) {
617
- const ret = arg0.byteLength;
618
- return ret;
619
- };
620
-
621
- export function __wbg_byteOffset_fd862df290ef848d(arg0) {
622
- const ret = arg0.byteOffset;
623
- return ret;
624
- };
625
-
626
- export function __wbg_call_672a4d21634d4a24() { return handleError(function (arg0, arg1) {
627
- const ret = arg0.call(arg1);
628
- return ret;
629
- }, arguments) };
630
-
631
- export function __wbg_call_7cccdd69e0791ae2() { return handleError(function (arg0, arg1, arg2) {
632
- const ret = arg0.call(arg1, arg2);
633
- return ret;
634
- }, arguments) };
635
-
636
- export function __wbg_cancel_81ebaa65c2a54d20(arg0) {
637
- const ret = arg0.cancel();
638
- return ret;
639
- };
640
-
641
- export function __wbg_cancel_8a308660caa6cadf(arg0) {
642
- const ret = arg0.cancel();
643
- return ret;
644
- };
645
-
646
- export function __wbg_catch_a6e601879b2610e9(arg0, arg1) {
647
- const ret = arg0.catch(arg1);
648
- return ret;
649
- };
650
-
651
- export function __wbg_clearTimeout_0b53d391c1b94dda(arg0) {
652
- const ret = clearTimeout(arg0);
653
- return ret;
654
- };
655
-
656
- export function __wbg_client_new(arg0) {
657
- const ret = Client.__wrap(arg0);
658
- return ret;
659
- };
660
-
661
- export function __wbg_close_304cc1fef3466669() { return handleError(function (arg0) {
662
- arg0.close();
663
- }, arguments) };
664
-
665
- export function __wbg_close_5ce03e29be453811() { return handleError(function (arg0) {
666
- arg0.close();
667
- }, arguments) };
668
-
669
- export function __wbg_close_fa50b16598acbea1(arg0) {
670
- const ret = arg0.close();
671
- return ret;
672
- };
673
-
674
- export function __wbg_crypto_574e78ad8b13b65f(arg0) {
675
- const ret = arg0.crypto;
676
- return ret;
677
- };
678
-
679
- export function __wbg_debug_e17b51583ca6a632(arg0, arg1, arg2, arg3) {
680
- console.debug(arg0, arg1, arg2, arg3);
681
- };
682
-
683
- export function __wbg_done_769e5ede4b31c67b(arg0) {
684
- const ret = arg0.done;
685
- return ret;
686
- };
687
-
688
- export function __wbg_enqueue_bb16ba72f537dc9e() { return handleError(function (arg0, arg1) {
689
- arg0.enqueue(arg1);
690
- }, arguments) };
691
-
692
- export function __wbg_entries_3265d4158b33e5dc(arg0) {
693
- const ret = Object.entries(arg0);
694
- return ret;
695
- };
696
-
697
- export function __wbg_error_524f506f44df1645(arg0) {
698
- console.error(arg0);
699
- };
700
-
701
- export function __wbg_error_7534b8e9a36f1ab4(arg0, arg1) {
702
- let deferred0_0;
703
- let deferred0_1;
704
- try {
705
- deferred0_0 = arg0;
706
- deferred0_1 = arg1;
707
- console.error(getStringFromWasm0(arg0, arg1));
708
- } finally {
709
- wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
710
- }
711
- };
712
-
713
- export function __wbg_error_80de38b3f7cc3c3c(arg0, arg1, arg2, arg3) {
714
- console.error(arg0, arg1, arg2, arg3);
715
- };
716
-
717
- export function __wbg_fetch_11bff8299d0ecd2b(arg0) {
718
- const ret = fetch(arg0);
719
- return ret;
720
- };
721
-
722
- export function __wbg_fetch_509096533071c657(arg0, arg1) {
723
- const ret = arg0.fetch(arg1);
724
- return ret;
725
- };
726
-
727
- export function __wbg_getRandomValues_3c9c0d586e575a16() { return handleError(function (arg0, arg1) {
728
- globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
729
- }, arguments) };
730
-
731
- export function __wbg_getRandomValues_b8f5dbd5f3995a9e() { return handleError(function (arg0, arg1) {
732
- arg0.getRandomValues(arg1);
733
- }, arguments) };
734
-
735
- export function __wbg_getReader_21f724e0f12fa481() { return handleError(function (arg0, arg1) {
736
- const ret = arg0.getReader(arg1);
737
- return ret;
738
- }, arguments) };
739
-
740
- export function __wbg_getReader_48e00749fe3f6089() { return handleError(function (arg0) {
741
- const ret = arg0.getReader();
742
- return ret;
743
- }, arguments) };
744
-
745
- export function __wbg_getTime_46267b1c24877e30(arg0) {
746
- const ret = arg0.getTime();
747
- return ret;
748
- };
749
-
750
- export function __wbg_getWriter_6ce182d0adc3f96b() { return handleError(function (arg0) {
751
- const ret = arg0.getWriter();
752
- return ret;
753
- }, arguments) };
754
-
755
- export function __wbg_get_67b2ba62fc30de12() { return handleError(function (arg0, arg1) {
756
- const ret = Reflect.get(arg0, arg1);
757
- return ret;
758
- }, arguments) };
759
-
760
- export function __wbg_get_b9b93047fe3cf45b(arg0, arg1) {
761
- const ret = arg0[arg1 >>> 0];
762
- return ret;
763
- };
764
-
765
- export function __wbg_getdone_d47073731acd3e74(arg0) {
766
- const ret = arg0.done;
767
- return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
768
- };
769
-
770
- export function __wbg_getvalue_009dcd63692bee1f(arg0) {
771
- const ret = arg0.value;
772
- return ret;
773
- };
774
-
775
- export function __wbg_getwithrefkey_1dc361bd10053bfe(arg0, arg1) {
776
- const ret = arg0[arg1];
777
- return ret;
778
- };
779
-
780
- export function __wbg_has_a5ea9117f258a0ec() { return handleError(function (arg0, arg1) {
781
- const ret = Reflect.has(arg0, arg1);
782
- return ret;
783
- }, arguments) };
784
-
785
- export function __wbg_headers_9cb51cfd2ac780a4(arg0) {
786
- const ret = arg0.headers;
787
- return ret;
788
- };
789
-
790
- export function __wbg_info_033d8b8a0838f1d3(arg0, arg1, arg2, arg3) {
791
- console.info(arg0, arg1, arg2, arg3);
792
- };
793
-
794
- export function __wbg_instanceof_AbortSignal_ec9211148136acd1(arg0) {
795
- let result;
796
- try {
797
- result = arg0 instanceof AbortSignal;
798
- } catch (_) {
799
- result = false;
800
- }
801
- const ret = result;
802
- return ret;
803
- };
804
-
805
- export function __wbg_instanceof_ArrayBuffer_e14585432e3737fc(arg0) {
806
- let result;
807
- try {
808
- result = arg0 instanceof ArrayBuffer;
809
- } catch (_) {
810
- result = false;
811
- }
812
- const ret = result;
813
- return ret;
814
- };
815
-
816
- export function __wbg_instanceof_Map_f3469ce2244d2430(arg0) {
817
- let result;
818
- try {
819
- result = arg0 instanceof Map;
820
- } catch (_) {
821
- result = false;
822
- }
823
- const ret = result;
824
- return ret;
825
- };
826
-
827
- export function __wbg_instanceof_ReadableStream_87eac785b90f3611(arg0) {
828
- let result;
829
- try {
830
- result = arg0 instanceof ReadableStream;
831
- } catch (_) {
832
- result = false;
833
- }
834
- const ret = result;
835
- return ret;
836
- };
837
-
838
- export function __wbg_instanceof_Response_f2cc20d9f7dfd644(arg0) {
839
- let result;
840
- try {
841
- result = arg0 instanceof Response;
842
- } catch (_) {
843
- result = false;
844
- }
845
- const ret = result;
846
- return ret;
847
- };
848
-
849
- export function __wbg_instanceof_Uint8Array_17156bcf118086a9(arg0) {
850
- let result;
851
- try {
852
- result = arg0 instanceof Uint8Array;
853
- } catch (_) {
854
- result = false;
855
- }
856
- const ret = result;
857
- return ret;
858
- };
859
-
860
- export function __wbg_instanceof_WritableStream_ba73ec6ef935602f(arg0) {
861
- let result;
862
- try {
863
- result = arg0 instanceof WritableStream;
864
- } catch (_) {
865
- result = false;
866
- }
867
- const ret = result;
868
- return ret;
869
- };
870
-
871
- export function __wbg_isArray_a1eab7e0d067391b(arg0) {
872
- const ret = Array.isArray(arg0);
873
- return ret;
874
- };
875
-
876
- export function __wbg_isSafeInteger_343e2beeeece1bb0(arg0) {
877
- const ret = Number.isSafeInteger(arg0);
878
- return ret;
879
- };
880
-
881
- export function __wbg_iterator_9a24c88df860dc65() {
882
- const ret = Symbol.iterator;
883
- return ret;
884
- };
885
-
886
- export function __wbg_length_a446193dc22c12f8(arg0) {
887
- const ret = arg0.length;
888
- return ret;
889
- };
890
-
891
- export function __wbg_length_e2d2a49132c1b256(arg0) {
892
- const ret = arg0.length;
893
- return ret;
894
- };
895
-
896
- export function __wbg_log_cad59bb680daec67(arg0, arg1, arg2, arg3) {
897
- console.log(arg0, arg1, arg2, arg3);
898
- };
899
-
900
- export function __wbg_msCrypto_a61aeb35a24c1329(arg0) {
901
- const ret = arg0.msCrypto;
902
- return ret;
903
- };
904
-
905
- export function __wbg_new0_f788a2397c7ca929() {
906
- const ret = new Date();
907
- return ret;
908
- };
909
-
910
- export function __wbg_new_018dcc2d6c8c2f6a() { return handleError(function () {
911
- const ret = new Headers();
912
- return ret;
913
- }, arguments) };
914
-
915
- export function __wbg_new_23a2665fac83c611(arg0, arg1) {
916
- try {
917
- var state0 = {a: arg0, b: arg1};
918
- var cb0 = (arg0, arg1) => {
919
- const a = state0.a;
920
- state0.a = 0;
921
- try {
922
- return __wbg_adapter_303(a, state0.b, arg0, arg1);
923
- } finally {
924
- state0.a = a;
925
- }
926
- };
927
- const ret = new Promise(cb0);
928
- return ret;
929
- } finally {
930
- state0.a = state0.b = 0;
931
- }
932
- };
933
-
934
- export function __wbg_new_405e22f390576ce2() {
935
- const ret = new Object();
936
- return ret;
937
- };
938
-
939
- export function __wbg_new_78feb108b6472713() {
940
- const ret = new Array();
941
- return ret;
942
- };
943
-
944
- export function __wbg_new_8a6f238a6ece86ea() {
945
- const ret = new Error();
946
- return ret;
947
- };
948
-
949
- export function __wbg_new_a12002a7f91c75be(arg0) {
950
- const ret = new Uint8Array(arg0);
951
- return ret;
952
- };
953
-
954
- export function __wbg_new_c68d7209be747379(arg0, arg1) {
955
- const ret = new Error(getStringFromWasm0(arg0, arg1));
956
- return ret;
957
- };
958
-
959
- export function __wbg_new_e25e5aab09ff45db() { return handleError(function () {
960
- const ret = new AbortController();
961
- return ret;
962
- }, arguments) };
963
-
964
- export function __wbg_newnoargs_105ed471475aaf50(arg0, arg1) {
965
- const ret = new Function(getStringFromWasm0(arg0, arg1));
966
- return ret;
967
- };
968
-
969
- export function __wbg_newwithbyteoffsetandlength_d97e637ebe145a9a(arg0, arg1, arg2) {
970
- const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
971
- return ret;
972
- };
973
-
974
- export function __wbg_newwithlength_a381634e90c276d4(arg0) {
975
- const ret = new Uint8Array(arg0 >>> 0);
976
- return ret;
977
- };
978
-
979
- export function __wbg_newwithlength_c4c419ef0bc8a1f8(arg0) {
980
- const ret = new Array(arg0 >>> 0);
981
- return ret;
982
- };
983
-
984
- export function __wbg_newwithstrandinit_06c535e0a867c635() { return handleError(function (arg0, arg1, arg2) {
985
- const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
986
- return ret;
987
- }, arguments) };
988
-
989
- export function __wbg_next_25feadfc0913fea9(arg0) {
990
- const ret = arg0.next;
991
- return ret;
992
- };
993
-
994
- export function __wbg_next_6574e1a8a62d1055() { return handleError(function (arg0) {
995
- const ret = arg0.next();
996
- return ret;
997
- }, arguments) };
998
-
999
- export function __wbg_node_905d3e251edff8a2(arg0) {
1000
- const ret = arg0.node;
1001
- return ret;
1002
- };
1003
-
1004
- export function __wbg_now_e1163c67115ff874(arg0) {
1005
- const ret = arg0.now();
1006
- return ret;
1007
- };
1008
-
1009
- export function __wbg_performance_7fe0928f3ab059e5(arg0) {
1010
- const ret = arg0.performance;
1011
- return ret;
1012
- };
1013
-
1014
- export function __wbg_process_dc0fbacc7c1c06f7(arg0) {
1015
- const ret = arg0.process;
1016
- return ret;
1017
- };
1018
-
1019
- export function __wbg_queueMicrotask_97d92b4fcc8a61c5(arg0) {
1020
- queueMicrotask(arg0);
1021
- };
1022
-
1023
- export function __wbg_queueMicrotask_d3219def82552485(arg0) {
1024
- const ret = arg0.queueMicrotask;
1025
- return ret;
1026
- };
1027
-
1028
- export function __wbg_randomFillSync_ac0988aba3254290() { return handleError(function (arg0, arg1) {
1029
- arg0.randomFillSync(arg1);
1030
- }, arguments) };
1031
-
1032
- export function __wbg_read_52e3f904f5768a0e(arg0, arg1) {
1033
- const ret = arg0.read(arg1);
1034
- return ret;
1035
- };
1036
-
1037
- export function __wbg_read_a2434af1186cb56c(arg0) {
1038
- const ret = arg0.read();
1039
- return ret;
1040
- };
1041
-
1042
- export function __wbg_ready_480b0e63c18378c7(arg0) {
1043
- const ret = arg0.ready;
1044
- return ret;
1045
- };
1046
-
1047
- export function __wbg_releaseLock_091899af97991d2e(arg0) {
1048
- arg0.releaseLock();
1049
- };
1050
-
1051
- export function __wbg_releaseLock_673b80f18806e95a(arg0) {
1052
- arg0.releaseLock();
1053
- };
1054
-
1055
- export function __wbg_releaseLock_a389e6ea62ce0f4d(arg0) {
1056
- arg0.releaseLock();
1057
- };
1058
-
1059
- export function __wbg_require_60cc747a6bc5215a() { return handleError(function () {
1060
- const ret = module.require;
1061
- return ret;
1062
- }, arguments) };
1063
-
1064
- export function __wbg_resolve_4851785c9c5f573d(arg0) {
1065
- const ret = Promise.resolve(arg0);
1066
- return ret;
1067
- };
1068
-
1069
- export function __wbg_respond_1f279fa9f8edcb1c() { return handleError(function (arg0, arg1) {
1070
- arg0.respond(arg1 >>> 0);
1071
- }, arguments) };
1072
-
1073
- export function __wbg_setTimeout_42370cb3051b8c2c() { return handleError(function (arg0, arg1, arg2) {
1074
- const ret = arg0.setTimeout(arg1, arg2);
1075
- return ret;
1076
- }, arguments) };
1077
-
1078
- export function __wbg_setTimeout_73ce8df12de4f2f2(arg0, arg1) {
1079
- const ret = setTimeout(arg0, arg1);
1080
- return ret;
1081
- };
1082
-
1083
- export function __wbg_set_37837023f3d740e8(arg0, arg1, arg2) {
1084
- arg0[arg1 >>> 0] = arg2;
1085
- };
1086
-
1087
- export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
1088
- arg0[arg1] = arg2;
1089
- };
1090
-
1091
- export function __wbg_set_65595bdd868b3009(arg0, arg1, arg2) {
1092
- arg0.set(arg1, arg2 >>> 0);
1093
- };
1094
-
1095
- export function __wbg_setbody_5923b78a95eedf29(arg0, arg1) {
1096
- arg0.body = arg1;
1097
- };
1098
-
1099
- export function __wbg_setcredentials_c3a22f1cd105a2c6(arg0, arg1) {
1100
- arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
1101
- };
1102
-
1103
- export function __wbg_setheaders_834c0bdb6a8949ad(arg0, arg1) {
1104
- arg0.headers = arg1;
1105
- };
1106
-
1107
- export function __wbg_setmethod_3c5280fe5d890842(arg0, arg1, arg2) {
1108
- arg0.method = getStringFromWasm0(arg1, arg2);
1109
- };
1110
-
1111
- export function __wbg_setmode_4967d329825f7890(arg0, arg1) {
1112
- arg0.mode = __wbindgen_enum_ReadableStreamReaderMode[arg1];
1113
- };
1114
-
1115
- export function __wbg_setmode_5dc300b865044b65(arg0, arg1) {
1116
- arg0.mode = __wbindgen_enum_RequestMode[arg1];
1117
- };
1118
-
1119
- export function __wbg_setonabort_a12865ed9905809a(arg0, arg1) {
1120
- arg0.onabort = arg1;
1121
- };
1122
-
1123
- export function __wbg_setsignal_75b21ef3a81de905(arg0, arg1) {
1124
- arg0.signal = arg1;
1125
- };
1126
-
1127
- export function __wbg_signal_aaf9ad74119f20a4(arg0) {
1128
- const ret = arg0.signal;
1129
- return ret;
1130
- };
1131
-
1132
- export function __wbg_stack_0ed75d68575b0f3c(arg0, arg1) {
1133
- const ret = arg1.stack;
1134
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1135
- const len1 = WASM_VECTOR_LEN;
1136
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1137
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1138
- };
1139
-
1140
- export function __wbg_static_accessor_GLOBAL_88a902d13a557d07() {
1141
- const ret = typeof global === 'undefined' ? null : global;
1142
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1143
- };
1144
-
1145
- export function __wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0() {
1146
- const ret = typeof globalThis === 'undefined' ? null : globalThis;
1147
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1148
- };
1149
-
1150
- export function __wbg_static_accessor_SELF_37c5d418e4bf5819() {
1151
- const ret = typeof self === 'undefined' ? null : self;
1152
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1153
- };
1154
-
1155
- export function __wbg_static_accessor_WINDOW_5de37043a91a9c40() {
1156
- const ret = typeof window === 'undefined' ? null : window;
1157
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1158
- };
1159
-
1160
- export function __wbg_status_f6360336ca686bf0(arg0) {
1161
- const ret = arg0.status;
1162
- return ret;
1163
- };
1164
-
1165
- export function __wbg_stringify_f7ed6987935b4a24() { return handleError(function (arg0) {
1166
- const ret = JSON.stringify(arg0);
1167
- return ret;
1168
- }, arguments) };
1169
-
1170
- export function __wbg_subarray_aa9065fa9dc5df96(arg0, arg1, arg2) {
1171
- const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
1172
- return ret;
1173
- };
1174
-
1175
- export function __wbg_then_44b73946d2fb3e7d(arg0, arg1) {
1176
- const ret = arg0.then(arg1);
1177
- return ret;
1178
- };
1179
-
1180
- export function __wbg_then_48b406749878a531(arg0, arg1, arg2) {
1181
- const ret = arg0.then(arg1, arg2);
1182
- return ret;
1183
- };
1184
-
1185
- export function __wbg_toString_5285597960676b7b(arg0) {
1186
- const ret = arg0.toString();
1187
- return ret;
1188
- };
1189
-
1190
- export function __wbg_url_ae10c34ca209681d(arg0, arg1) {
1191
- const ret = arg1.url;
1192
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1193
- const len1 = WASM_VECTOR_LEN;
1194
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1195
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1196
- };
1197
-
1198
- export function __wbg_value_cd1ffa7b1ab794f1(arg0) {
1199
- const ret = arg0.value;
1200
- return ret;
1201
- };
1202
-
1203
- export function __wbg_versions_c01dfd4722a88165(arg0) {
1204
- const ret = arg0.versions;
1205
- return ret;
1206
- };
1207
-
1208
- export function __wbg_view_fd8a56e8983f448d(arg0) {
1209
- const ret = arg0.view;
1210
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1211
- };
1212
-
1213
- export function __wbg_warn_aaf1f4664a035bd6(arg0, arg1, arg2, arg3) {
1214
- console.warn(arg0, arg1, arg2, arg3);
1215
- };
1216
-
1217
- export function __wbg_write_311434e30ee214e5(arg0, arg1) {
1218
- const ret = arg0.write(arg1);
1219
- return ret;
1220
- };
1221
-
1222
- export function __wbindgen_array_new() {
1223
- const ret = [];
1224
- return ret;
1225
- };
1226
-
1227
- export function __wbindgen_array_push(arg0, arg1) {
1228
- arg0.push(arg1);
1229
- };
1230
-
1231
- export function __wbindgen_as_number(arg0) {
1232
- const ret = +arg0;
1233
- return ret;
1234
- };
1235
-
1236
- export function __wbindgen_bigint_from_i64(arg0) {
1237
- const ret = arg0;
1238
- return ret;
1239
- };
1240
-
1241
- export function __wbindgen_bigint_from_u64(arg0) {
1242
- const ret = BigInt.asUintN(64, arg0);
1243
- return ret;
1244
- };
1245
-
1246
- export function __wbindgen_bigint_get_as_i64(arg0, arg1) {
1247
- const v = arg1;
1248
- const ret = typeof(v) === 'bigint' ? v : undefined;
1249
- getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
1250
- getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
1251
- };
1252
-
1253
- export function __wbindgen_boolean_get(arg0) {
1254
- const v = arg0;
1255
- const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
1256
- return ret;
1257
- };
1258
-
1259
- export function __wbindgen_cb_drop(arg0) {
1260
- const obj = arg0.original;
1261
- if (obj.cnt-- == 1) {
1262
- obj.a = 0;
1263
- return true;
1264
- }
1265
- const ret = false;
1266
- return ret;
1267
- };
1268
-
1269
- export function __wbindgen_closure_wrapper1759(arg0, arg1, arg2) {
1270
- const ret = makeMutClosure(arg0, arg1, 733, __wbg_adapter_60);
1271
- return ret;
1272
- };
1273
-
1274
- export function __wbindgen_closure_wrapper2007(arg0, arg1, arg2) {
1275
- const ret = makeMutClosure(arg0, arg1, 798, __wbg_adapter_63);
1276
- return ret;
1277
- };
1278
-
1279
- export function __wbindgen_closure_wrapper2123(arg0, arg1, arg2) {
1280
- const ret = makeMutClosure(arg0, arg1, 838, __wbg_adapter_66);
1281
- return ret;
1282
- };
1283
-
1284
- export function __wbindgen_debug_string(arg0, arg1) {
1285
- const ret = debugString(arg1);
1286
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1287
- const len1 = WASM_VECTOR_LEN;
1288
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1289
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1290
- };
1291
-
1292
- export function __wbindgen_error_new(arg0, arg1) {
1293
- const ret = new Error(getStringFromWasm0(arg0, arg1));
1294
- return ret;
1295
- };
1296
-
1297
- export function __wbindgen_in(arg0, arg1) {
1298
- const ret = arg0 in arg1;
1299
- return ret;
1300
- };
1301
-
1302
- export function __wbindgen_init_externref_table() {
1303
- const table = wasm.__wbindgen_export_4;
1304
- const offset = table.grow(4);
1305
- table.set(0, undefined);
1306
- table.set(offset + 0, undefined);
1307
- table.set(offset + 1, null);
1308
- table.set(offset + 2, true);
1309
- table.set(offset + 3, false);
1310
- ;
1311
- };
1312
-
1313
- export function __wbindgen_is_bigint(arg0) {
1314
- const ret = typeof(arg0) === 'bigint';
1315
- return ret;
1316
- };
1317
-
1318
- export function __wbindgen_is_function(arg0) {
1319
- const ret = typeof(arg0) === 'function';
1320
- return ret;
1321
- };
1322
-
1323
- export function __wbindgen_is_object(arg0) {
1324
- const val = arg0;
1325
- const ret = typeof(val) === 'object' && val !== null;
1326
- return ret;
1327
- };
1328
-
1329
- export function __wbindgen_is_string(arg0) {
1330
- const ret = typeof(arg0) === 'string';
1331
- return ret;
1332
- };
1333
-
1334
- export function __wbindgen_is_undefined(arg0) {
1335
- const ret = arg0 === undefined;
1336
- return ret;
1337
- };
1338
-
1339
- export function __wbindgen_jsval_eq(arg0, arg1) {
1340
- const ret = arg0 === arg1;
1341
- return ret;
1342
- };
1343
-
1344
- export function __wbindgen_jsval_loose_eq(arg0, arg1) {
1345
- const ret = arg0 == arg1;
1346
- return ret;
1347
- };
1348
-
1349
- export function __wbindgen_memory() {
1350
- const ret = wasm.memory;
1351
- return ret;
1352
- };
1353
-
1354
- export function __wbindgen_number_get(arg0, arg1) {
1355
- const obj = arg1;
1356
- const ret = typeof(obj) === 'number' ? obj : undefined;
1357
- getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
1358
- getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
1359
- };
1360
-
1361
- export function __wbindgen_number_new(arg0) {
1362
- const ret = arg0;
1363
- return ret;
1364
- };
1365
-
1366
- export function __wbindgen_string_get(arg0, arg1) {
1367
- const obj = arg1;
1368
- const ret = typeof(obj) === 'string' ? obj : undefined;
1369
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1370
- var len1 = WASM_VECTOR_LEN;
1371
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1372
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1373
- };
1374
-
1375
- export function __wbindgen_string_new(arg0, arg1) {
1376
- const ret = getStringFromWasm0(arg0, arg1);
1377
- return ret;
1378
- };
1379
-
1380
- export function __wbindgen_throw(arg0, arg1) {
1381
- throw new Error(getStringFromWasm0(arg0, arg1));
1382
- };
1383
-
1384
- export function __wbindgen_typeof(arg0) {
1385
- const ret = typeof arg0;
1386
- return ret;
1387
- };
1388
-
1389
- export function __wbindgen_uint8_array_new(arg0, arg1) {
1390
- var v0 = getArrayU8FromWasm0(arg0, arg1).slice();
1391
- wasm.__wbindgen_free(arg0, arg1 * 1, 1);
1392
- const ret = v0;
1393
- return ret;
1394
- };
1395
-