@bitwarden/sdk-internal 0.2.0-main.4 → 0.2.0-main.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bitwarden_wasm_internal.d.ts +106 -30
- package/bitwarden_wasm_internal_bg.js +561 -370
- package/bitwarden_wasm_internal_bg.wasm +0 -0
- package/bitwarden_wasm_internal_bg.wasm.d.ts +32 -25
- package/bitwarden_wasm_internal_bg.wasm.js +1 -1
- package/node/bitwarden_wasm_internal.d.ts +106 -30
- package/node/bitwarden_wasm_internal.js +560 -369
- package/node/bitwarden_wasm_internal_bg.wasm +0 -0
- package/node/bitwarden_wasm_internal_bg.wasm.d.ts +32 -25
- package/package.json +1 -1
@@ -78,10 +78,6 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
78
78
|
return ptr;
|
79
79
|
}
|
80
80
|
|
81
|
-
function isLikeNone(x) {
|
82
|
-
return x === undefined || x === null;
|
83
|
-
}
|
84
|
-
|
85
81
|
let cachedDataViewMemory0 = null;
|
86
82
|
|
87
83
|
function getDataViewMemory0() {
|
@@ -96,8 +92,34 @@ function getDataViewMemory0() {
|
|
96
92
|
return cachedDataViewMemory0;
|
97
93
|
}
|
98
94
|
|
95
|
+
let cachedTextDecoder = new TextDecoder("utf-8", { ignoreBOM: true, fatal: true });
|
96
|
+
|
97
|
+
cachedTextDecoder.decode();
|
98
|
+
|
99
|
+
function getStringFromWasm0(ptr, len) {
|
100
|
+
ptr = ptr >>> 0;
|
101
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
102
|
+
}
|
103
|
+
|
99
104
|
let heap_next = heap.length;
|
100
105
|
|
106
|
+
function addHeapObject(obj) {
|
107
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
108
|
+
const idx = heap_next;
|
109
|
+
heap_next = heap[idx];
|
110
|
+
|
111
|
+
heap[idx] = obj;
|
112
|
+
return idx;
|
113
|
+
}
|
114
|
+
|
115
|
+
function handleError(f, args) {
|
116
|
+
try {
|
117
|
+
return f.apply(this, args);
|
118
|
+
} catch (e) {
|
119
|
+
wasm.__wbindgen_exn_store(addHeapObject(e));
|
120
|
+
}
|
121
|
+
}
|
122
|
+
|
101
123
|
function dropObject(idx) {
|
102
124
|
if (idx < 132) return;
|
103
125
|
heap[idx] = heap_next;
|
@@ -110,22 +132,40 @@ function takeObject(idx) {
|
|
110
132
|
return ret;
|
111
133
|
}
|
112
134
|
|
113
|
-
function
|
114
|
-
|
115
|
-
const idx = heap_next;
|
116
|
-
heap_next = heap[idx];
|
117
|
-
|
118
|
-
heap[idx] = obj;
|
119
|
-
return idx;
|
135
|
+
function isLikeNone(x) {
|
136
|
+
return x === undefined || x === null;
|
120
137
|
}
|
121
138
|
|
122
|
-
|
123
|
-
|
124
|
-
|
139
|
+
const CLOSURE_DTORS =
|
140
|
+
typeof FinalizationRegistry === "undefined"
|
141
|
+
? { register: () => {}, unregister: () => {} }
|
142
|
+
: new FinalizationRegistry((state) => {
|
143
|
+
wasm.__wbindgen_export_4.get(state.dtor)(state.a, state.b);
|
144
|
+
});
|
125
145
|
|
126
|
-
function
|
127
|
-
|
128
|
-
|
146
|
+
function makeMutClosure(arg0, arg1, dtor, f) {
|
147
|
+
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
148
|
+
const real = (...args) => {
|
149
|
+
// First up with a closure we increment the internal reference
|
150
|
+
// count. This ensures that the Rust closure environment won't
|
151
|
+
// be deallocated while we're invoking it.
|
152
|
+
state.cnt++;
|
153
|
+
const a = state.a;
|
154
|
+
state.a = 0;
|
155
|
+
try {
|
156
|
+
return f(a, state.b, ...args);
|
157
|
+
} finally {
|
158
|
+
if (--state.cnt === 0) {
|
159
|
+
wasm.__wbindgen_export_4.get(state.dtor)(a, state.b);
|
160
|
+
CLOSURE_DTORS.unregister(state);
|
161
|
+
} else {
|
162
|
+
state.a = a;
|
163
|
+
}
|
164
|
+
}
|
165
|
+
};
|
166
|
+
real.original = state;
|
167
|
+
CLOSURE_DTORS.register(real, state, state);
|
168
|
+
return real;
|
129
169
|
}
|
130
170
|
|
131
171
|
function debugString(val) {
|
@@ -169,7 +209,7 @@ function debugString(val) {
|
|
169
209
|
// Test for built-in
|
170
210
|
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
171
211
|
let className;
|
172
|
-
if (builtInMatches.length > 1) {
|
212
|
+
if (builtInMatches && builtInMatches.length > 1) {
|
173
213
|
className = builtInMatches[1];
|
174
214
|
} else {
|
175
215
|
// Failed to match the standard '[object ClassName]'
|
@@ -193,54 +233,95 @@ function debugString(val) {
|
|
193
233
|
return className;
|
194
234
|
}
|
195
235
|
|
196
|
-
|
197
|
-
typeof FinalizationRegistry === "undefined"
|
198
|
-
? { register: () => {}, unregister: () => {} }
|
199
|
-
: new FinalizationRegistry((state) => {
|
200
|
-
wasm.__wbindgen_export_2.get(state.dtor)(state.a, state.b);
|
201
|
-
});
|
236
|
+
let stack_pointer = 128;
|
202
237
|
|
203
|
-
function
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
// count. This ensures that the Rust closure environment won't
|
208
|
-
// be deallocated while we're invoking it.
|
209
|
-
state.cnt++;
|
210
|
-
const a = state.a;
|
211
|
-
state.a = 0;
|
212
|
-
try {
|
213
|
-
return f(a, state.b, ...args);
|
214
|
-
} finally {
|
215
|
-
if (--state.cnt === 0) {
|
216
|
-
wasm.__wbindgen_export_2.get(state.dtor)(a, state.b);
|
217
|
-
CLOSURE_DTORS.unregister(state);
|
218
|
-
} else {
|
219
|
-
state.a = a;
|
220
|
-
}
|
221
|
-
}
|
222
|
-
};
|
223
|
-
real.original = state;
|
224
|
-
CLOSURE_DTORS.register(real, state, state);
|
225
|
-
return real;
|
238
|
+
function addBorrowedObject(obj) {
|
239
|
+
if (stack_pointer == 1) throw new Error("out of js stack");
|
240
|
+
heap[--stack_pointer] = obj;
|
241
|
+
return stack_pointer;
|
226
242
|
}
|
243
|
+
/**
|
244
|
+
* @param {any} error
|
245
|
+
* @returns {boolean}
|
246
|
+
*/
|
247
|
+
module.exports.isCoreError = function (error) {
|
248
|
+
try {
|
249
|
+
const ret = wasm.isCoreError(addBorrowedObject(error));
|
250
|
+
return ret !== 0;
|
251
|
+
} finally {
|
252
|
+
heap[stack_pointer++] = undefined;
|
253
|
+
}
|
254
|
+
};
|
255
|
+
|
256
|
+
/**
|
257
|
+
* @param {any} error
|
258
|
+
* @returns {boolean}
|
259
|
+
*/
|
260
|
+
module.exports.isEncryptionSettingsError = function (error) {
|
261
|
+
try {
|
262
|
+
const ret = wasm.isEncryptionSettingsError(addBorrowedObject(error));
|
263
|
+
return ret !== 0;
|
264
|
+
} finally {
|
265
|
+
heap[stack_pointer++] = undefined;
|
266
|
+
}
|
267
|
+
};
|
268
|
+
|
269
|
+
/**
|
270
|
+
* @param {any} error
|
271
|
+
* @returns {boolean}
|
272
|
+
*/
|
273
|
+
module.exports.isKeyGenerationError = function (error) {
|
274
|
+
try {
|
275
|
+
const ret = wasm.isKeyGenerationError(addBorrowedObject(error));
|
276
|
+
return ret !== 0;
|
277
|
+
} finally {
|
278
|
+
heap[stack_pointer++] = undefined;
|
279
|
+
}
|
280
|
+
};
|
281
|
+
|
282
|
+
/**
|
283
|
+
* @param {any} error
|
284
|
+
* @returns {boolean}
|
285
|
+
*/
|
286
|
+
module.exports.isTestError = function (error) {
|
287
|
+
try {
|
288
|
+
const ret = wasm.isTestError(addBorrowedObject(error));
|
289
|
+
return ret !== 0;
|
290
|
+
} finally {
|
291
|
+
heap[stack_pointer++] = undefined;
|
292
|
+
}
|
293
|
+
};
|
294
|
+
|
295
|
+
/**
|
296
|
+
* @param {KeyAlgorithm} key_algorithm
|
297
|
+
* @returns {GenerateSshKeyResult}
|
298
|
+
*/
|
299
|
+
module.exports.generate_ssh_key = function (key_algorithm) {
|
300
|
+
try {
|
301
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
302
|
+
wasm.generate_ssh_key(retptr, addHeapObject(key_algorithm));
|
303
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
304
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
305
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
306
|
+
if (r2) {
|
307
|
+
throw takeObject(r1);
|
308
|
+
}
|
309
|
+
return takeObject(r0);
|
310
|
+
} finally {
|
311
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
312
|
+
}
|
313
|
+
};
|
314
|
+
|
227
315
|
function __wbg_adapter_38(arg0, arg1, arg2) {
|
228
|
-
wasm.
|
316
|
+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hb80710307d9edf75(
|
229
317
|
arg0,
|
230
318
|
arg1,
|
231
319
|
addHeapObject(arg2),
|
232
320
|
);
|
233
321
|
}
|
234
322
|
|
235
|
-
function
|
236
|
-
|
237
|
-
return f.apply(this, args);
|
238
|
-
} catch (e) {
|
239
|
-
wasm.__wbindgen_exn_store(addHeapObject(e));
|
240
|
-
}
|
241
|
-
}
|
242
|
-
function __wbg_adapter_100(arg0, arg1, arg2, arg3) {
|
243
|
-
wasm.wasm_bindgen__convert__closures__invoke2_mut__h29c3505e35b3c82d(
|
323
|
+
function __wbg_adapter_127(arg0, arg1, arg2, arg3) {
|
324
|
+
wasm.wasm_bindgen__convert__closures__invoke2_mut__h1aea760ed40205bc(
|
244
325
|
arg0,
|
245
326
|
arg1,
|
246
327
|
addHeapObject(arg2),
|
@@ -248,6 +329,9 @@ function __wbg_adapter_100(arg0, arg1, arg2, arg3) {
|
|
248
329
|
);
|
249
330
|
}
|
250
331
|
|
332
|
+
/**
|
333
|
+
* @enum {0 | 1 | 2 | 3 | 4}
|
334
|
+
*/
|
251
335
|
module.exports.LogLevel = Object.freeze({
|
252
336
|
Trace: 0,
|
253
337
|
0: "Trace",
|
@@ -339,21 +423,13 @@ class BitwardenClient {
|
|
339
423
|
}
|
340
424
|
/**
|
341
425
|
* @param {string} msg
|
426
|
+
* @returns {Promise<void>}
|
342
427
|
*/
|
343
428
|
throw(msg) {
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
wasm.bitwardenclient_throw(retptr, this.__wbg_ptr, ptr0, len0);
|
349
|
-
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
350
|
-
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
351
|
-
if (r1) {
|
352
|
-
throw takeObject(r0);
|
353
|
-
}
|
354
|
-
} finally {
|
355
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
356
|
-
}
|
429
|
+
const ptr0 = passStringToWasm0(msg, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
430
|
+
const len0 = WASM_VECTOR_LEN;
|
431
|
+
const ret = wasm.bitwardenclient_throw(this.__wbg_ptr, ptr0, len0);
|
432
|
+
return takeObject(ret);
|
357
433
|
}
|
358
434
|
/**
|
359
435
|
* Test method, calls http endpoint
|
@@ -428,6 +504,51 @@ class ClientCrypto {
|
|
428
504
|
const ret = wasm.clientcrypto_initialize_org_crypto(this.__wbg_ptr, addHeapObject(req));
|
429
505
|
return takeObject(ret);
|
430
506
|
}
|
507
|
+
/**
|
508
|
+
* Generates a new key pair and encrypts the private key with the provided user key.
|
509
|
+
* Crypto initialization not required.
|
510
|
+
* @param {string} user_key
|
511
|
+
* @returns {MakeKeyPairResponse}
|
512
|
+
*/
|
513
|
+
make_key_pair(user_key) {
|
514
|
+
try {
|
515
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
516
|
+
const ptr0 = passStringToWasm0(user_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
517
|
+
const len0 = WASM_VECTOR_LEN;
|
518
|
+
wasm.clientcrypto_make_key_pair(retptr, this.__wbg_ptr, ptr0, len0);
|
519
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
520
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
521
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
522
|
+
if (r2) {
|
523
|
+
throw takeObject(r1);
|
524
|
+
}
|
525
|
+
return takeObject(r0);
|
526
|
+
} finally {
|
527
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
528
|
+
}
|
529
|
+
}
|
530
|
+
/**
|
531
|
+
* Verifies a user's asymmetric keys by decrypting the private key with the provided user
|
532
|
+
* key. Returns if the private key is decryptable and if it is a valid matching key.
|
533
|
+
* Crypto initialization not required.
|
534
|
+
* @param {VerifyAsymmetricKeysRequest} request
|
535
|
+
* @returns {VerifyAsymmetricKeysResponse}
|
536
|
+
*/
|
537
|
+
verify_asymmetric_keys(request) {
|
538
|
+
try {
|
539
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
540
|
+
wasm.clientcrypto_verify_asymmetric_keys(retptr, this.__wbg_ptr, addHeapObject(request));
|
541
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
542
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
543
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
544
|
+
if (r2) {
|
545
|
+
throw takeObject(r1);
|
546
|
+
}
|
547
|
+
return takeObject(r0);
|
548
|
+
} finally {
|
549
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
550
|
+
}
|
551
|
+
}
|
431
552
|
}
|
432
553
|
module.exports.ClientCrypto = ClientCrypto;
|
433
554
|
|
@@ -514,162 +635,161 @@ class ClientVault {
|
|
514
635
|
}
|
515
636
|
module.exports.ClientVault = ClientVault;
|
516
637
|
|
517
|
-
module.exports.
|
518
|
-
const
|
519
|
-
const
|
520
|
-
|
521
|
-
? 0
|
522
|
-
: passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
523
|
-
var len1 = WASM_VECTOR_LEN;
|
638
|
+
module.exports.__wbg_String_8f0eb39a4a4c2f66 = function (arg0, arg1) {
|
639
|
+
const ret = String(getObject(arg1));
|
640
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
641
|
+
const len1 = WASM_VECTOR_LEN;
|
524
642
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
525
643
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
526
644
|
};
|
527
645
|
|
528
|
-
module.exports.
|
529
|
-
|
530
|
-
};
|
531
|
-
|
532
|
-
module.exports.__wbindgen_is_object = function (arg0) {
|
533
|
-
const val = getObject(arg0);
|
534
|
-
const ret = typeof val === "object" && val !== null;
|
535
|
-
return ret;
|
536
|
-
};
|
537
|
-
|
538
|
-
module.exports.__wbg_getwithrefkey_edc2c8960f0f1191 = function (arg0, arg1) {
|
539
|
-
const ret = getObject(arg0)[getObject(arg1)];
|
540
|
-
return addHeapObject(ret);
|
541
|
-
};
|
542
|
-
|
543
|
-
module.exports.__wbindgen_is_undefined = function (arg0) {
|
544
|
-
const ret = getObject(arg0) === undefined;
|
545
|
-
return ret;
|
646
|
+
module.exports.__wbg_abort_05026c983d86824c = function (arg0) {
|
647
|
+
getObject(arg0).abort();
|
546
648
|
};
|
547
649
|
|
548
|
-
module.exports.
|
549
|
-
|
550
|
-
|
650
|
+
module.exports.__wbg_append_66f7cb821a84ee22 = function () {
|
651
|
+
return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
652
|
+
getObject(arg0).append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
653
|
+
}, arguments);
|
551
654
|
};
|
552
655
|
|
553
|
-
module.exports.
|
554
|
-
|
555
|
-
|
656
|
+
module.exports.__wbg_append_72d1635ad8643998 = function () {
|
657
|
+
return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
658
|
+
getObject(arg0).append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
659
|
+
}, arguments);
|
556
660
|
};
|
557
661
|
|
558
|
-
module.exports.
|
559
|
-
|
560
|
-
|
662
|
+
module.exports.__wbg_append_7606a4b52c36db7b = function () {
|
663
|
+
return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
664
|
+
getObject(arg0).append(
|
665
|
+
getStringFromWasm0(arg1, arg2),
|
666
|
+
getObject(arg3),
|
667
|
+
getStringFromWasm0(arg4, arg5),
|
668
|
+
);
|
669
|
+
}, arguments);
|
561
670
|
};
|
562
671
|
|
563
|
-
module.exports.
|
564
|
-
|
565
|
-
|
672
|
+
module.exports.__wbg_append_f513a7a3683bdc23 = function () {
|
673
|
+
return handleError(function (arg0, arg1, arg2, arg3) {
|
674
|
+
getObject(arg0).append(getStringFromWasm0(arg1, arg2), getObject(arg3));
|
675
|
+
}, arguments);
|
566
676
|
};
|
567
677
|
|
568
|
-
module.exports.
|
569
|
-
const ret =
|
678
|
+
module.exports.__wbg_buffer_61b7ce01341d7f88 = function (arg0) {
|
679
|
+
const ret = getObject(arg0).buffer;
|
570
680
|
return addHeapObject(ret);
|
571
681
|
};
|
572
682
|
|
573
|
-
module.exports.
|
574
|
-
|
575
|
-
|
683
|
+
module.exports.__wbg_call_500db948e69c7330 = function () {
|
684
|
+
return handleError(function (arg0, arg1, arg2) {
|
685
|
+
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
686
|
+
return addHeapObject(ret);
|
687
|
+
}, arguments);
|
576
688
|
};
|
577
689
|
|
578
|
-
module.exports.
|
579
|
-
|
580
|
-
|
690
|
+
module.exports.__wbg_call_b0d8e36992d9900d = function () {
|
691
|
+
return handleError(function (arg0, arg1) {
|
692
|
+
const ret = getObject(arg0).call(getObject(arg1));
|
693
|
+
return addHeapObject(ret);
|
694
|
+
}, arguments);
|
581
695
|
};
|
582
696
|
|
583
|
-
module.exports.
|
584
|
-
const ret = getObject(arg0);
|
697
|
+
module.exports.__wbg_crypto_ed58b8e10a292839 = function (arg0) {
|
698
|
+
const ret = getObject(arg0).crypto;
|
585
699
|
return addHeapObject(ret);
|
586
700
|
};
|
587
701
|
|
588
|
-
module.exports.
|
589
|
-
|
590
|
-
const ret = getObject(arg0).next();
|
591
|
-
return addHeapObject(ret);
|
592
|
-
}, arguments);
|
702
|
+
module.exports.__wbg_debug_19114f11037e4658 = function (arg0, arg1, arg2, arg3) {
|
703
|
+
console.debug(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
|
593
704
|
};
|
594
705
|
|
595
|
-
module.exports.
|
706
|
+
module.exports.__wbg_done_f22c1561fa919baa = function (arg0) {
|
596
707
|
const ret = getObject(arg0).done;
|
597
708
|
return ret;
|
598
709
|
};
|
599
710
|
|
600
|
-
module.exports.
|
601
|
-
const ret = getObject(arg0)
|
711
|
+
module.exports.__wbg_entries_4f2bb9b0d701c0f6 = function (arg0) {
|
712
|
+
const ret = Object.entries(getObject(arg0));
|
602
713
|
return addHeapObject(ret);
|
603
714
|
};
|
604
715
|
|
605
|
-
module.exports.
|
606
|
-
|
607
|
-
|
716
|
+
module.exports.__wbg_error_483d659117b6f3f6 = function (arg0, arg1, arg2, arg3) {
|
717
|
+
console.error(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
|
718
|
+
};
|
719
|
+
|
720
|
+
module.exports.__wbg_error_7534b8e9a36f1ab4 = function (arg0, arg1) {
|
721
|
+
let deferred0_0;
|
722
|
+
let deferred0_1;
|
608
723
|
try {
|
609
724
|
deferred0_0 = arg0;
|
610
725
|
deferred0_1 = arg1;
|
611
|
-
|
612
|
-
return addHeapObject(ret);
|
726
|
+
console.error(getStringFromWasm0(arg0, arg1));
|
613
727
|
} finally {
|
614
728
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
615
729
|
}
|
616
730
|
};
|
617
731
|
|
618
|
-
module.exports.
|
619
|
-
|
620
|
-
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
621
|
-
return addHeapObject(ret);
|
622
|
-
}, arguments);
|
623
|
-
};
|
624
|
-
|
625
|
-
module.exports.__wbg_new_e69b5f66fda8f13c = function () {
|
626
|
-
const ret = new Object();
|
732
|
+
module.exports.__wbg_fetch_229368eecee9d217 = function (arg0, arg1) {
|
733
|
+
const ret = getObject(arg0).fetch(getObject(arg1));
|
627
734
|
return addHeapObject(ret);
|
628
735
|
};
|
629
736
|
|
630
|
-
module.exports.
|
631
|
-
|
737
|
+
module.exports.__wbg_fetch_b335d17f45a8b5a1 = function (arg0) {
|
738
|
+
const ret = fetch(getObject(arg0));
|
739
|
+
return addHeapObject(ret);
|
632
740
|
};
|
633
741
|
|
634
|
-
module.exports.
|
635
|
-
return handleError(function () {
|
636
|
-
|
637
|
-
return addHeapObject(ret);
|
742
|
+
module.exports.__wbg_getRandomValues_bcb4912f16000dc4 = function () {
|
743
|
+
return handleError(function (arg0, arg1) {
|
744
|
+
getObject(arg0).getRandomValues(getObject(arg1));
|
638
745
|
}, arguments);
|
639
746
|
};
|
640
747
|
|
641
|
-
module.exports.
|
642
|
-
getObject(arg0)
|
748
|
+
module.exports.__wbg_get_9aa3dff3f0266054 = function (arg0, arg1) {
|
749
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
750
|
+
return addHeapObject(ret);
|
643
751
|
};
|
644
752
|
|
645
|
-
module.exports.
|
646
|
-
|
753
|
+
module.exports.__wbg_get_bbccf8970793c087 = function () {
|
754
|
+
return handleError(function (arg0, arg1) {
|
755
|
+
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
756
|
+
return addHeapObject(ret);
|
757
|
+
}, arguments);
|
647
758
|
};
|
648
759
|
|
649
|
-
module.exports.
|
650
|
-
getObject(arg0)
|
760
|
+
module.exports.__wbg_getwithrefkey_1dc361bd10053bfe = function (arg0, arg1) {
|
761
|
+
const ret = getObject(arg0)[getObject(arg1)];
|
762
|
+
return addHeapObject(ret);
|
651
763
|
};
|
652
764
|
|
653
|
-
module.exports.
|
654
|
-
|
765
|
+
module.exports.__wbg_has_94c2fc1d261bbfe9 = function () {
|
766
|
+
return handleError(function (arg0, arg1) {
|
767
|
+
const ret = Reflect.has(getObject(arg0), getObject(arg1));
|
768
|
+
return ret;
|
769
|
+
}, arguments);
|
655
770
|
};
|
656
771
|
|
657
|
-
module.exports.
|
658
|
-
const ret = getObject(arg0).
|
772
|
+
module.exports.__wbg_headers_24e3e19fe3f187c0 = function (arg0) {
|
773
|
+
const ret = getObject(arg0).headers;
|
659
774
|
return addHeapObject(ret);
|
660
775
|
};
|
661
776
|
|
662
|
-
module.exports.
|
663
|
-
getObject(arg0)
|
777
|
+
module.exports.__wbg_info_18e75e6ce8a36a90 = function (arg0, arg1, arg2, arg3) {
|
778
|
+
console.info(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
|
664
779
|
};
|
665
780
|
|
666
|
-
module.exports.
|
667
|
-
|
668
|
-
|
669
|
-
|
781
|
+
module.exports.__wbg_instanceof_ArrayBuffer_670ddde44cdb2602 = function (arg0) {
|
782
|
+
let result;
|
783
|
+
try {
|
784
|
+
result = getObject(arg0) instanceof ArrayBuffer;
|
785
|
+
} catch (_) {
|
786
|
+
result = false;
|
787
|
+
}
|
788
|
+
const ret = result;
|
789
|
+
return ret;
|
670
790
|
};
|
671
791
|
|
672
|
-
module.exports.
|
792
|
+
module.exports.__wbg_instanceof_Response_d3453657e10c4300 = function (arg0) {
|
673
793
|
let result;
|
674
794
|
try {
|
675
795
|
result = getObject(arg0) instanceof Response;
|
@@ -680,75 +800,73 @@ module.exports.__wbg_instanceof_Response_3c0e210a57ff751d = function (arg0) {
|
|
680
800
|
return ret;
|
681
801
|
};
|
682
802
|
|
683
|
-
module.exports.
|
684
|
-
|
803
|
+
module.exports.__wbg_instanceof_Uint8Array_28af5bc19d6acad8 = function (arg0) {
|
804
|
+
let result;
|
805
|
+
try {
|
806
|
+
result = getObject(arg0) instanceof Uint8Array;
|
807
|
+
} catch (_) {
|
808
|
+
result = false;
|
809
|
+
}
|
810
|
+
const ret = result;
|
685
811
|
return ret;
|
686
812
|
};
|
687
813
|
|
688
|
-
module.exports.
|
689
|
-
const ret = getObject(
|
690
|
-
|
691
|
-
const len1 = WASM_VECTOR_LEN;
|
692
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
693
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
814
|
+
module.exports.__wbg_isSafeInteger_12f5549b2fca23f4 = function (arg0) {
|
815
|
+
const ret = Number.isSafeInteger(getObject(arg0));
|
816
|
+
return ret;
|
694
817
|
};
|
695
818
|
|
696
|
-
module.exports.
|
697
|
-
const ret =
|
819
|
+
module.exports.__wbg_iterator_23604bb983791576 = function () {
|
820
|
+
const ret = Symbol.iterator;
|
698
821
|
return addHeapObject(ret);
|
699
822
|
};
|
700
823
|
|
701
|
-
module.exports.
|
702
|
-
|
703
|
-
|
704
|
-
return addHeapObject(ret);
|
705
|
-
}, arguments);
|
824
|
+
module.exports.__wbg_length_65d1cd11729ced11 = function (arg0) {
|
825
|
+
const ret = getObject(arg0).length;
|
826
|
+
return ret;
|
706
827
|
};
|
707
828
|
|
708
|
-
module.exports.
|
709
|
-
getObject(arg0).
|
829
|
+
module.exports.__wbg_length_d65cf0786bfc5739 = function (arg0) {
|
830
|
+
const ret = getObject(arg0).length;
|
831
|
+
return ret;
|
710
832
|
};
|
711
833
|
|
712
|
-
module.exports.
|
713
|
-
|
714
|
-
const ret = getObject(arg0).text();
|
715
|
-
return addHeapObject(ret);
|
716
|
-
}, arguments);
|
834
|
+
module.exports.__wbg_log_bc77772961bf21bb = function (arg0, arg1, arg2, arg3) {
|
835
|
+
console.log(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
|
717
836
|
};
|
718
837
|
|
719
|
-
module.exports.
|
720
|
-
const ret =
|
838
|
+
module.exports.__wbg_msCrypto_0a36e2ec3a343d26 = function (arg0) {
|
839
|
+
const ret = getObject(arg0).msCrypto;
|
721
840
|
return addHeapObject(ret);
|
722
841
|
};
|
723
842
|
|
724
|
-
module.exports.
|
725
|
-
|
726
|
-
|
843
|
+
module.exports.__wbg_new_079af0206358fe9d = function () {
|
844
|
+
return handleError(function () {
|
845
|
+
const ret = new FormData();
|
846
|
+
return addHeapObject(ret);
|
847
|
+
}, arguments);
|
727
848
|
};
|
728
849
|
|
729
|
-
module.exports.
|
730
|
-
const
|
731
|
-
|
732
|
-
obj.a = 0;
|
733
|
-
return true;
|
734
|
-
}
|
735
|
-
const ret = false;
|
736
|
-
return ret;
|
850
|
+
module.exports.__wbg_new_254fa9eac11932ae = function () {
|
851
|
+
const ret = new Array();
|
852
|
+
return addHeapObject(ret);
|
737
853
|
};
|
738
854
|
|
739
|
-
module.exports.
|
740
|
-
|
741
|
-
|
855
|
+
module.exports.__wbg_new_35d748855c4620b9 = function () {
|
856
|
+
return handleError(function () {
|
857
|
+
const ret = new Headers();
|
858
|
+
return addHeapObject(ret);
|
859
|
+
}, arguments);
|
742
860
|
};
|
743
861
|
|
744
|
-
module.exports.
|
862
|
+
module.exports.__wbg_new_3d446df9155128ef = function (arg0, arg1) {
|
745
863
|
try {
|
746
864
|
var state0 = { a: arg0, b: arg1 };
|
747
865
|
var cb0 = (arg0, arg1) => {
|
748
866
|
const a = state0.a;
|
749
867
|
state0.a = 0;
|
750
868
|
try {
|
751
|
-
return
|
869
|
+
return __wbg_adapter_127(a, state0.b, arg0, arg1);
|
752
870
|
} finally {
|
753
871
|
state0.a = a;
|
754
872
|
}
|
@@ -760,240 +878,281 @@ module.exports.__wbg_new_1073970097e5a420 = function (arg0, arg1) {
|
|
760
878
|
}
|
761
879
|
};
|
762
880
|
|
763
|
-
module.exports.
|
764
|
-
getObject(arg0)
|
881
|
+
module.exports.__wbg_new_3ff5b33b1ce712df = function (arg0) {
|
882
|
+
const ret = new Uint8Array(getObject(arg0));
|
883
|
+
return addHeapObject(ret);
|
765
884
|
};
|
766
885
|
|
767
|
-
module.exports.
|
768
|
-
|
886
|
+
module.exports.__wbg_new_5f48f21d4be11586 = function () {
|
887
|
+
return handleError(function () {
|
888
|
+
const ret = new AbortController();
|
889
|
+
return addHeapObject(ret);
|
890
|
+
}, arguments);
|
891
|
+
};
|
892
|
+
|
893
|
+
module.exports.__wbg_new_6799ef630abee97c = function (arg0, arg1) {
|
894
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
769
895
|
return addHeapObject(ret);
|
770
896
|
};
|
771
897
|
|
772
|
-
module.exports.
|
773
|
-
const ret =
|
774
|
-
|
775
|
-
const len1 = WASM_VECTOR_LEN;
|
776
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
777
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
898
|
+
module.exports.__wbg_new_688846f374351c92 = function () {
|
899
|
+
const ret = new Object();
|
900
|
+
return addHeapObject(ret);
|
778
901
|
};
|
779
902
|
|
780
|
-
module.exports.
|
903
|
+
module.exports.__wbg_new_8a6f238a6ece86ea = function () {
|
904
|
+
const ret = new Error();
|
905
|
+
return addHeapObject(ret);
|
906
|
+
};
|
907
|
+
|
908
|
+
module.exports.__wbg_new_f24b6d53abe5bc82 = function (arg0, arg1) {
|
781
909
|
let deferred0_0;
|
782
910
|
let deferred0_1;
|
783
911
|
try {
|
784
912
|
deferred0_0 = arg0;
|
785
913
|
deferred0_1 = arg1;
|
786
|
-
|
914
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
915
|
+
return addHeapObject(ret);
|
787
916
|
} finally {
|
788
917
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
789
918
|
}
|
790
919
|
};
|
791
920
|
|
792
|
-
module.exports.
|
793
|
-
|
794
|
-
|
795
|
-
return addHeapObject(ret);
|
796
|
-
}, arguments);
|
921
|
+
module.exports.__wbg_newnoargs_fd9e4bf8be2bc16d = function (arg0, arg1) {
|
922
|
+
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
923
|
+
return addHeapObject(ret);
|
797
924
|
};
|
798
925
|
|
799
|
-
module.exports.
|
800
|
-
|
801
|
-
|
802
|
-
return addHeapObject(ret);
|
803
|
-
}, arguments);
|
926
|
+
module.exports.__wbg_newwithbyteoffsetandlength_ba35896968751d91 = function (arg0, arg1, arg2) {
|
927
|
+
const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
|
928
|
+
return addHeapObject(ret);
|
804
929
|
};
|
805
930
|
|
806
|
-
module.exports.
|
807
|
-
|
808
|
-
|
809
|
-
return addHeapObject(ret);
|
810
|
-
}, arguments);
|
931
|
+
module.exports.__wbg_newwithlength_34ce8f1051e74449 = function (arg0) {
|
932
|
+
const ret = new Uint8Array(arg0 >>> 0);
|
933
|
+
return addHeapObject(ret);
|
811
934
|
};
|
812
935
|
|
813
|
-
module.exports.
|
814
|
-
return handleError(function () {
|
815
|
-
const ret =
|
936
|
+
module.exports.__wbg_newwithstrandinit_a1f6583f20e4faff = function () {
|
937
|
+
return handleError(function (arg0, arg1, arg2) {
|
938
|
+
const ret = new Request(getStringFromWasm0(arg0, arg1), getObject(arg2));
|
816
939
|
return addHeapObject(ret);
|
817
940
|
}, arguments);
|
818
941
|
};
|
819
942
|
|
820
|
-
module.exports.
|
821
|
-
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
822
|
-
return addHeapObject(ret);
|
823
|
-
};
|
824
|
-
|
825
|
-
module.exports.__wbg_call_a9ef466721e824f2 = function () {
|
943
|
+
module.exports.__wbg_newwithu8arraysequenceandoptions_75a3b40c32d6c988 = function () {
|
826
944
|
return handleError(function (arg0, arg1) {
|
827
|
-
const ret = getObject(arg0)
|
945
|
+
const ret = new Blob(getObject(arg0), getObject(arg1));
|
828
946
|
return addHeapObject(ret);
|
829
947
|
}, arguments);
|
830
948
|
};
|
831
949
|
|
832
|
-
module.exports.
|
833
|
-
|
834
|
-
|
835
|
-
};
|
836
|
-
|
837
|
-
module.exports.__wbg_get_ef828680c64da212 = function () {
|
838
|
-
return handleError(function (arg0, arg1) {
|
839
|
-
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
950
|
+
module.exports.__wbg_next_01dd9234a5bf6d05 = function () {
|
951
|
+
return handleError(function (arg0) {
|
952
|
+
const ret = getObject(arg0).next();
|
840
953
|
return addHeapObject(ret);
|
841
954
|
}, arguments);
|
842
955
|
};
|
843
956
|
|
844
|
-
module.exports.
|
845
|
-
const ret =
|
846
|
-
return ret;
|
957
|
+
module.exports.__wbg_next_137428deb98342b0 = function (arg0) {
|
958
|
+
const ret = getObject(arg0).next;
|
959
|
+
return addHeapObject(ret);
|
847
960
|
};
|
848
961
|
|
849
|
-
module.exports.
|
850
|
-
const ret = getObject(arg0).
|
962
|
+
module.exports.__wbg_node_02999533c4ea02e3 = function (arg0) {
|
963
|
+
const ret = getObject(arg0).node;
|
851
964
|
return addHeapObject(ret);
|
852
965
|
};
|
853
966
|
|
854
|
-
module.exports.
|
855
|
-
const ret =
|
967
|
+
module.exports.__wbg_process_5c1d670bc53614b8 = function (arg0) {
|
968
|
+
const ret = getObject(arg0).process;
|
856
969
|
return addHeapObject(ret);
|
857
970
|
};
|
858
971
|
|
859
|
-
module.exports.
|
972
|
+
module.exports.__wbg_push_6edad0df4b546b2c = function (arg0, arg1) {
|
860
973
|
const ret = getObject(arg0).push(getObject(arg1));
|
861
974
|
return ret;
|
862
975
|
};
|
863
976
|
|
864
|
-
module.exports.
|
865
|
-
|
866
|
-
try {
|
867
|
-
result = getObject(arg0) instanceof ArrayBuffer;
|
868
|
-
} catch (_) {
|
869
|
-
result = false;
|
870
|
-
}
|
871
|
-
const ret = result;
|
872
|
-
return ret;
|
977
|
+
module.exports.__wbg_queueMicrotask_2181040e064c0dc8 = function (arg0) {
|
978
|
+
queueMicrotask(getObject(arg0));
|
873
979
|
};
|
874
980
|
|
875
|
-
module.exports.
|
876
|
-
const ret =
|
981
|
+
module.exports.__wbg_queueMicrotask_ef9ac43769cbcc4f = function (arg0) {
|
982
|
+
const ret = getObject(arg0).queueMicrotask;
|
877
983
|
return addHeapObject(ret);
|
878
984
|
};
|
879
985
|
|
880
|
-
module.exports.
|
986
|
+
module.exports.__wbg_randomFillSync_ab2cfe79ebbf2740 = function () {
|
881
987
|
return handleError(function (arg0, arg1) {
|
882
|
-
|
883
|
-
|
988
|
+
getObject(arg0).randomFillSync(takeObject(arg1));
|
989
|
+
}, arguments);
|
990
|
+
};
|
991
|
+
|
992
|
+
module.exports.__wbg_require_79b1e9274cde3c87 = function () {
|
993
|
+
return handleError(function () {
|
994
|
+
const ret = module.require;
|
995
|
+
return addHeapObject(ret);
|
884
996
|
}, arguments);
|
885
997
|
};
|
886
998
|
|
887
|
-
module.exports.
|
999
|
+
module.exports.__wbg_resolve_0bf7c44d641804f9 = function (arg0) {
|
888
1000
|
const ret = Promise.resolve(getObject(arg0));
|
889
1001
|
return addHeapObject(ret);
|
890
1002
|
};
|
891
1003
|
|
892
|
-
module.exports.
|
893
|
-
|
894
|
-
return addHeapObject(ret);
|
1004
|
+
module.exports.__wbg_set_23d69db4e5c66a6e = function (arg0, arg1, arg2) {
|
1005
|
+
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
895
1006
|
};
|
896
1007
|
|
897
|
-
module.exports.
|
898
|
-
|
899
|
-
return addHeapObject(ret);
|
1008
|
+
module.exports.__wbg_set_3f1d0b984ed272ed = function (arg0, arg1, arg2) {
|
1009
|
+
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
900
1010
|
};
|
901
1011
|
|
902
|
-
module.exports.
|
903
|
-
|
904
|
-
return addHeapObject(ret);
|
1012
|
+
module.exports.__wbg_setbody_64920df008e48adc = function (arg0, arg1) {
|
1013
|
+
getObject(arg0).body = getObject(arg1);
|
905
1014
|
};
|
906
1015
|
|
907
|
-
module.exports.
|
908
|
-
|
909
|
-
return addHeapObject(ret);
|
1016
|
+
module.exports.__wbg_setcredentials_cfc15e48e3a3a535 = function (arg0, arg1) {
|
1017
|
+
getObject(arg0).credentials = __wbindgen_enum_RequestCredentials[arg1];
|
910
1018
|
};
|
911
1019
|
|
912
|
-
module.exports.
|
913
|
-
|
914
|
-
return addHeapObject(ret);
|
1020
|
+
module.exports.__wbg_setheaders_4c921e8e226bdfa7 = function (arg0, arg1) {
|
1021
|
+
getObject(arg0).headers = getObject(arg1);
|
915
1022
|
};
|
916
1023
|
|
917
|
-
module.exports.
|
918
|
-
|
919
|
-
return ret;
|
1024
|
+
module.exports.__wbg_setmethod_cfc7f688ba46a6be = function (arg0, arg1, arg2) {
|
1025
|
+
getObject(arg0).method = getStringFromWasm0(arg1, arg2);
|
920
1026
|
};
|
921
1027
|
|
922
|
-
module.exports.
|
923
|
-
|
924
|
-
return addHeapObject(ret);
|
1028
|
+
module.exports.__wbg_setmode_cd03637eb7da01e0 = function (arg0, arg1) {
|
1029
|
+
getObject(arg0).mode = __wbindgen_enum_RequestMode[arg1];
|
925
1030
|
};
|
926
1031
|
|
927
|
-
module.exports.
|
928
|
-
|
1032
|
+
module.exports.__wbg_setname_c0e2d6f348c746f4 = function (arg0, arg1, arg2) {
|
1033
|
+
let deferred0_0;
|
1034
|
+
let deferred0_1;
|
1035
|
+
try {
|
1036
|
+
deferred0_0 = arg1;
|
1037
|
+
deferred0_1 = arg2;
|
1038
|
+
getObject(arg0).name = getStringFromWasm0(arg1, arg2);
|
1039
|
+
} finally {
|
1040
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
1041
|
+
}
|
929
1042
|
};
|
930
1043
|
|
931
|
-
module.exports.
|
932
|
-
|
1044
|
+
module.exports.__wbg_setsignal_f766190d206f09e5 = function (arg0, arg1) {
|
1045
|
+
getObject(arg0).signal = getObject(arg1);
|
1046
|
+
};
|
1047
|
+
|
1048
|
+
module.exports.__wbg_settype_fd39465d237c2f36 = function (arg0, arg1, arg2) {
|
1049
|
+
getObject(arg0).type = getStringFromWasm0(arg1, arg2);
|
1050
|
+
};
|
1051
|
+
|
1052
|
+
module.exports.__wbg_setvariant_d1d41b778dfe9c17 = function (arg0, arg1, arg2) {
|
1053
|
+
let deferred0_0;
|
1054
|
+
let deferred0_1;
|
933
1055
|
try {
|
934
|
-
|
935
|
-
|
936
|
-
|
1056
|
+
deferred0_0 = arg1;
|
1057
|
+
deferred0_1 = arg2;
|
1058
|
+
getObject(arg0).variant = getStringFromWasm0(arg1, arg2);
|
1059
|
+
} finally {
|
1060
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
937
1061
|
}
|
938
|
-
const ret = result;
|
939
|
-
return ret;
|
940
1062
|
};
|
941
1063
|
|
942
|
-
module.exports.
|
943
|
-
|
944
|
-
|
945
|
-
return addHeapObject(ret);
|
946
|
-
}, arguments);
|
1064
|
+
module.exports.__wbg_signal_1fdadeba2d04660e = function (arg0) {
|
1065
|
+
const ret = getObject(arg0).signal;
|
1066
|
+
return addHeapObject(ret);
|
947
1067
|
};
|
948
1068
|
|
949
|
-
module.exports.
|
950
|
-
|
951
|
-
|
952
|
-
|
1069
|
+
module.exports.__wbg_stack_0ed75d68575b0f3c = function (arg0, arg1) {
|
1070
|
+
const ret = getObject(arg1).stack;
|
1071
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
1072
|
+
const len1 = WASM_VECTOR_LEN;
|
1073
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
1074
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
953
1075
|
};
|
954
1076
|
|
955
|
-
module.exports.
|
956
|
-
|
1077
|
+
module.exports.__wbg_static_accessor_GLOBAL_0be7472e492ad3e3 = function () {
|
1078
|
+
const ret = typeof global === "undefined" ? null : global;
|
1079
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
957
1080
|
};
|
958
1081
|
|
959
|
-
module.exports.
|
960
|
-
|
961
|
-
|
1082
|
+
module.exports.__wbg_static_accessor_GLOBAL_THIS_1a6eb482d12c9bfb = function () {
|
1083
|
+
const ret = typeof globalThis === "undefined" ? null : globalThis;
|
1084
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
1085
|
+
};
|
1086
|
+
|
1087
|
+
module.exports.__wbg_static_accessor_SELF_1dc398a895c82351 = function () {
|
1088
|
+
const ret = typeof self === "undefined" ? null : self;
|
1089
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
1090
|
+
};
|
1091
|
+
|
1092
|
+
module.exports.__wbg_static_accessor_WINDOW_ae1c80c7eea8d64a = function () {
|
1093
|
+
const ret = typeof window === "undefined" ? null : window;
|
1094
|
+
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
1095
|
+
};
|
1096
|
+
|
1097
|
+
module.exports.__wbg_status_317f53bc4c7638df = function (arg0) {
|
1098
|
+
const ret = getObject(arg0).status;
|
1099
|
+
return ret;
|
1100
|
+
};
|
1101
|
+
|
1102
|
+
module.exports.__wbg_stringify_f4f701bc34ceda61 = function () {
|
1103
|
+
return handleError(function (arg0) {
|
1104
|
+
const ret = JSON.stringify(getObject(arg0));
|
962
1105
|
return addHeapObject(ret);
|
963
1106
|
}, arguments);
|
964
1107
|
};
|
965
1108
|
|
966
|
-
module.exports.
|
967
|
-
|
968
|
-
|
969
|
-
}, arguments);
|
1109
|
+
module.exports.__wbg_subarray_46adeb9b86949d12 = function (arg0, arg1, arg2) {
|
1110
|
+
const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
|
1111
|
+
return addHeapObject(ret);
|
970
1112
|
};
|
971
1113
|
|
972
|
-
module.exports.
|
973
|
-
return handleError(function (arg0
|
974
|
-
getObject(arg0).
|
975
|
-
|
976
|
-
getObject(arg3),
|
977
|
-
getStringFromWasm0(arg4, arg5),
|
978
|
-
);
|
1114
|
+
module.exports.__wbg_text_dfc4cb7631d2eb34 = function () {
|
1115
|
+
return handleError(function (arg0) {
|
1116
|
+
const ret = getObject(arg0).text();
|
1117
|
+
return addHeapObject(ret);
|
979
1118
|
}, arguments);
|
980
1119
|
};
|
981
1120
|
|
982
|
-
module.exports.
|
983
|
-
const ret =
|
1121
|
+
module.exports.__wbg_then_0438fad860fe38e1 = function (arg0, arg1) {
|
1122
|
+
const ret = getObject(arg0).then(getObject(arg1));
|
984
1123
|
return addHeapObject(ret);
|
985
1124
|
};
|
986
1125
|
|
987
|
-
module.exports.
|
988
|
-
const ret = getObject(arg0).
|
1126
|
+
module.exports.__wbg_then_0ffafeddf0e182a4 = function (arg0, arg1, arg2) {
|
1127
|
+
const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
|
989
1128
|
return addHeapObject(ret);
|
990
1129
|
};
|
991
1130
|
|
992
|
-
module.exports.
|
993
|
-
|
994
|
-
|
995
|
-
|
996
|
-
|
1131
|
+
module.exports.__wbg_url_5327bc0a41a9b085 = function (arg0, arg1) {
|
1132
|
+
const ret = getObject(arg1).url;
|
1133
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
1134
|
+
const len1 = WASM_VECTOR_LEN;
|
1135
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
1136
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
1137
|
+
};
|
1138
|
+
|
1139
|
+
module.exports.__wbg_value_4c32fd138a88eee2 = function (arg0) {
|
1140
|
+
const ret = getObject(arg0).value;
|
1141
|
+
return addHeapObject(ret);
|
1142
|
+
};
|
1143
|
+
|
1144
|
+
module.exports.__wbg_versions_c71aa1626a93e0a1 = function (arg0) {
|
1145
|
+
const ret = getObject(arg0).versions;
|
1146
|
+
return addHeapObject(ret);
|
1147
|
+
};
|
1148
|
+
|
1149
|
+
module.exports.__wbg_warn_cb8be8bbf790a5d6 = function (arg0, arg1, arg2, arg3) {
|
1150
|
+
console.warn(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
|
1151
|
+
};
|
1152
|
+
|
1153
|
+
module.exports.__wbindgen_as_number = function (arg0) {
|
1154
|
+
const ret = +getObject(arg0);
|
1155
|
+
return ret;
|
997
1156
|
};
|
998
1157
|
|
999
1158
|
module.exports.__wbindgen_boolean_get = function (arg0) {
|
@@ -1002,19 +1161,19 @@ module.exports.__wbindgen_boolean_get = function (arg0) {
|
|
1002
1161
|
return ret;
|
1003
1162
|
};
|
1004
1163
|
|
1005
|
-
module.exports.
|
1006
|
-
const obj =
|
1007
|
-
|
1008
|
-
|
1009
|
-
|
1164
|
+
module.exports.__wbindgen_cb_drop = function (arg0) {
|
1165
|
+
const obj = takeObject(arg0).original;
|
1166
|
+
if (obj.cnt-- == 1) {
|
1167
|
+
obj.a = 0;
|
1168
|
+
return true;
|
1169
|
+
}
|
1170
|
+
const ret = false;
|
1171
|
+
return ret;
|
1010
1172
|
};
|
1011
1173
|
|
1012
|
-
module.exports.
|
1013
|
-
const ret =
|
1014
|
-
|
1015
|
-
const len1 = WASM_VECTOR_LEN;
|
1016
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
1017
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
1174
|
+
module.exports.__wbindgen_closure_wrapper1933 = function (arg0, arg1, arg2) {
|
1175
|
+
const ret = makeMutClosure(arg0, arg1, 549, __wbg_adapter_38);
|
1176
|
+
return addHeapObject(ret);
|
1018
1177
|
};
|
1019
1178
|
|
1020
1179
|
module.exports.__wbindgen_debug_string = function (arg0, arg1) {
|
@@ -1025,51 +1184,83 @@ module.exports.__wbindgen_debug_string = function (arg0, arg1) {
|
|
1025
1184
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
1026
1185
|
};
|
1027
1186
|
|
1028
|
-
module.exports.
|
1029
|
-
|
1187
|
+
module.exports.__wbindgen_error_new = function (arg0, arg1) {
|
1188
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
1189
|
+
return addHeapObject(ret);
|
1030
1190
|
};
|
1031
1191
|
|
1032
|
-
module.exports.
|
1033
|
-
const ret = getObject(arg0)
|
1034
|
-
return
|
1192
|
+
module.exports.__wbindgen_in = function (arg0, arg1) {
|
1193
|
+
const ret = getObject(arg0) in getObject(arg1);
|
1194
|
+
return ret;
|
1035
1195
|
};
|
1036
1196
|
|
1037
|
-
module.exports.
|
1038
|
-
|
1197
|
+
module.exports.__wbindgen_is_function = function (arg0) {
|
1198
|
+
const ret = typeof getObject(arg0) === "function";
|
1199
|
+
return ret;
|
1039
1200
|
};
|
1040
1201
|
|
1041
|
-
module.exports.
|
1042
|
-
|
1043
|
-
|
1044
|
-
|
1045
|
-
}, arguments);
|
1202
|
+
module.exports.__wbindgen_is_object = function (arg0) {
|
1203
|
+
const val = getObject(arg0);
|
1204
|
+
const ret = typeof val === "object" && val !== null;
|
1205
|
+
return ret;
|
1046
1206
|
};
|
1047
1207
|
|
1048
|
-
module.exports.
|
1049
|
-
|
1208
|
+
module.exports.__wbindgen_is_string = function (arg0) {
|
1209
|
+
const ret = typeof getObject(arg0) === "string";
|
1210
|
+
return ret;
|
1050
1211
|
};
|
1051
1212
|
|
1052
|
-
module.exports.
|
1053
|
-
|
1213
|
+
module.exports.__wbindgen_is_undefined = function (arg0) {
|
1214
|
+
const ret = getObject(arg0) === undefined;
|
1215
|
+
return ret;
|
1054
1216
|
};
|
1055
1217
|
|
1056
|
-
module.exports.
|
1057
|
-
|
1218
|
+
module.exports.__wbindgen_jsval_loose_eq = function (arg0, arg1) {
|
1219
|
+
const ret = getObject(arg0) == getObject(arg1);
|
1220
|
+
return ret;
|
1058
1221
|
};
|
1059
1222
|
|
1060
|
-
module.exports.
|
1061
|
-
|
1223
|
+
module.exports.__wbindgen_memory = function () {
|
1224
|
+
const ret = wasm.memory;
|
1225
|
+
return addHeapObject(ret);
|
1062
1226
|
};
|
1063
1227
|
|
1064
|
-
module.exports.
|
1065
|
-
|
1228
|
+
module.exports.__wbindgen_number_get = function (arg0, arg1) {
|
1229
|
+
const obj = getObject(arg1);
|
1230
|
+
const ret = typeof obj === "number" ? obj : undefined;
|
1231
|
+
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
1232
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
1066
1233
|
};
|
1067
1234
|
|
1068
|
-
module.exports.
|
1069
|
-
const ret =
|
1235
|
+
module.exports.__wbindgen_object_clone_ref = function (arg0) {
|
1236
|
+
const ret = getObject(arg0);
|
1070
1237
|
return addHeapObject(ret);
|
1071
1238
|
};
|
1072
1239
|
|
1240
|
+
module.exports.__wbindgen_object_drop_ref = function (arg0) {
|
1241
|
+
takeObject(arg0);
|
1242
|
+
};
|
1243
|
+
|
1244
|
+
module.exports.__wbindgen_string_get = function (arg0, arg1) {
|
1245
|
+
const obj = getObject(arg1);
|
1246
|
+
const ret = typeof obj === "string" ? obj : undefined;
|
1247
|
+
var ptr1 = isLikeNone(ret)
|
1248
|
+
? 0
|
1249
|
+
: passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
1250
|
+
var len1 = WASM_VECTOR_LEN;
|
1251
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
1252
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
1253
|
+
};
|
1254
|
+
|
1255
|
+
module.exports.__wbindgen_string_new = function (arg0, arg1) {
|
1256
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
1257
|
+
return addHeapObject(ret);
|
1258
|
+
};
|
1259
|
+
|
1260
|
+
module.exports.__wbindgen_throw = function (arg0, arg1) {
|
1261
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
1262
|
+
};
|
1263
|
+
|
1073
1264
|
const path = require("path").join(__dirname, "bitwarden_wasm_internal_bg.wasm");
|
1074
1265
|
const bytes = require("fs").readFileSync(path);
|
1075
1266
|
|