@janssenproject/cedarling_wasm 0.0.343-nodejs → 0.0.344
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/README.md +22 -0
- package/cedarling_wasm.d.ts +216 -0
- package/cedarling_wasm.js +392 -212
- package/cedarling_wasm_bg.wasm +0 -0
- package/package.json +6 -2
package/cedarling_wasm.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* A WASM wrapper for the Rust `cedarling::AuthorizeResult` struct.
|
|
5
5
|
* Represents the result of an authorization request.
|
|
6
6
|
*/
|
|
7
|
-
class AuthorizeResult {
|
|
7
|
+
export class AuthorizeResult {
|
|
8
8
|
static __wrap(ptr) {
|
|
9
9
|
ptr = ptr >>> 0;
|
|
10
10
|
const obj = Object.create(AuthorizeResult.prototype);
|
|
@@ -98,13 +98,12 @@ class AuthorizeResult {
|
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
if (Symbol.dispose) AuthorizeResult.prototype[Symbol.dispose] = AuthorizeResult.prototype.free;
|
|
101
|
-
exports.AuthorizeResult = AuthorizeResult;
|
|
102
101
|
|
|
103
102
|
/**
|
|
104
103
|
* A WASM wrapper for the Rust `cedar_policy::Response` struct.
|
|
105
104
|
* Represents the result of an authorization request.
|
|
106
105
|
*/
|
|
107
|
-
class AuthorizeResultResponse {
|
|
106
|
+
export class AuthorizeResultResponse {
|
|
108
107
|
static __wrap(ptr) {
|
|
109
108
|
ptr = ptr >>> 0;
|
|
110
109
|
const obj = Object.create(AuthorizeResultResponse.prototype);
|
|
@@ -140,12 +139,11 @@ class AuthorizeResultResponse {
|
|
|
140
139
|
}
|
|
141
140
|
}
|
|
142
141
|
if (Symbol.dispose) AuthorizeResultResponse.prototype[Symbol.dispose] = AuthorizeResultResponse.prototype.free;
|
|
143
|
-
exports.AuthorizeResultResponse = AuthorizeResultResponse;
|
|
144
142
|
|
|
145
143
|
/**
|
|
146
144
|
* The instance of the Cedarling application.
|
|
147
145
|
*/
|
|
148
|
-
class Cedarling {
|
|
146
|
+
export class Cedarling {
|
|
149
147
|
static __wrap(ptr) {
|
|
150
148
|
ptr = ptr >>> 0;
|
|
151
149
|
const obj = Object.create(Cedarling.prototype);
|
|
@@ -199,6 +197,20 @@ class Cedarling {
|
|
|
199
197
|
throw takeFromExternrefTable0(ret[0]);
|
|
200
198
|
}
|
|
201
199
|
}
|
|
200
|
+
/**
|
|
201
|
+
* Get trusted issuer identifiers that failed to load.
|
|
202
|
+
*
|
|
203
|
+
* # Example
|
|
204
|
+
*
|
|
205
|
+
* ```javascript
|
|
206
|
+
* const ids = cedarling.failed_trusted_issuer_ids();
|
|
207
|
+
* ```
|
|
208
|
+
* @returns {Array<any>}
|
|
209
|
+
*/
|
|
210
|
+
failed_trusted_issuer_ids() {
|
|
211
|
+
const ret = wasm.cedarling_failed_trusted_issuer_ids(this.__wbg_ptr);
|
|
212
|
+
return ret;
|
|
213
|
+
}
|
|
202
214
|
/**
|
|
203
215
|
* Get a value from the data store by key.
|
|
204
216
|
* Returns null if the key doesn't exist or the entry has expired.
|
|
@@ -358,6 +370,48 @@ class Cedarling {
|
|
|
358
370
|
}
|
|
359
371
|
return DataStoreStats.__wrap(ret[0]);
|
|
360
372
|
}
|
|
373
|
+
/**
|
|
374
|
+
* Check whether a trusted issuer was loaded by `iss` claim.
|
|
375
|
+
*
|
|
376
|
+
* # Arguments
|
|
377
|
+
*
|
|
378
|
+
* * `iss_claim` - Issuer `iss` claim value to check.
|
|
379
|
+
*
|
|
380
|
+
* # Example
|
|
381
|
+
*
|
|
382
|
+
* ```javascript
|
|
383
|
+
* const ok = cedarling.is_trusted_issuer_loaded_by_iss("https://issuer.example.org");
|
|
384
|
+
* ```
|
|
385
|
+
* @param {string} iss_claim
|
|
386
|
+
* @returns {boolean}
|
|
387
|
+
*/
|
|
388
|
+
is_trusted_issuer_loaded_by_iss(iss_claim) {
|
|
389
|
+
const ptr0 = passStringToWasm0(iss_claim, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
390
|
+
const len0 = WASM_VECTOR_LEN;
|
|
391
|
+
const ret = wasm.cedarling_is_trusted_issuer_loaded_by_iss(this.__wbg_ptr, ptr0, len0);
|
|
392
|
+
return ret !== 0;
|
|
393
|
+
}
|
|
394
|
+
/**
|
|
395
|
+
* Check whether a trusted issuer was loaded by issuer identifier.
|
|
396
|
+
*
|
|
397
|
+
* # Arguments
|
|
398
|
+
*
|
|
399
|
+
* * `issuer_id` - Trusted issuer identifier to check.
|
|
400
|
+
*
|
|
401
|
+
* # Example
|
|
402
|
+
*
|
|
403
|
+
* ```javascript
|
|
404
|
+
* const ok = cedarling.is_trusted_issuer_loaded_by_name("issuer_id");
|
|
405
|
+
* ```
|
|
406
|
+
* @param {string} issuer_id
|
|
407
|
+
* @returns {boolean}
|
|
408
|
+
*/
|
|
409
|
+
is_trusted_issuer_loaded_by_name(issuer_id) {
|
|
410
|
+
const ptr0 = passStringToWasm0(issuer_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
411
|
+
const len0 = WASM_VECTOR_LEN;
|
|
412
|
+
const ret = wasm.cedarling_is_trusted_issuer_loaded_by_name(this.__wbg_ptr, ptr0, len0);
|
|
413
|
+
return ret !== 0;
|
|
414
|
+
}
|
|
361
415
|
/**
|
|
362
416
|
* List all entries with their metadata.
|
|
363
417
|
* Returns an array of DataEntry objects.
|
|
@@ -379,6 +433,34 @@ class Cedarling {
|
|
|
379
433
|
}
|
|
380
434
|
return takeFromExternrefTable0(ret[0]);
|
|
381
435
|
}
|
|
436
|
+
/**
|
|
437
|
+
* Get trusted issuer identifiers loaded successfully.
|
|
438
|
+
*
|
|
439
|
+
* # Example
|
|
440
|
+
*
|
|
441
|
+
* ```javascript
|
|
442
|
+
* const ids = cedarling.loaded_trusted_issuer_ids();
|
|
443
|
+
* ```
|
|
444
|
+
* @returns {Array<any>}
|
|
445
|
+
*/
|
|
446
|
+
loaded_trusted_issuer_ids() {
|
|
447
|
+
const ret = wasm.cedarling_loaded_trusted_issuer_ids(this.__wbg_ptr);
|
|
448
|
+
return ret;
|
|
449
|
+
}
|
|
450
|
+
/**
|
|
451
|
+
* Get the number of trusted issuers loaded successfully.
|
|
452
|
+
*
|
|
453
|
+
* # Example
|
|
454
|
+
*
|
|
455
|
+
* ```javascript
|
|
456
|
+
* const loadedCount = cedarling.loaded_trusted_issuers_count();
|
|
457
|
+
* ```
|
|
458
|
+
* @returns {number}
|
|
459
|
+
*/
|
|
460
|
+
loaded_trusted_issuers_count() {
|
|
461
|
+
const ret = wasm.cedarling_loaded_trusted_issuers_count(this.__wbg_ptr);
|
|
462
|
+
return ret >>> 0;
|
|
463
|
+
}
|
|
382
464
|
/**
|
|
383
465
|
* Create a new instance of the Cedarling application.
|
|
384
466
|
* Assume that config is `Object`
|
|
@@ -476,15 +558,28 @@ class Cedarling {
|
|
|
476
558
|
const ret = wasm.cedarling_shut_down(this.__wbg_ptr);
|
|
477
559
|
return ret;
|
|
478
560
|
}
|
|
561
|
+
/**
|
|
562
|
+
* Get the total number of trusted issuer entries discovered.
|
|
563
|
+
*
|
|
564
|
+
* # Example
|
|
565
|
+
*
|
|
566
|
+
* ```javascript
|
|
567
|
+
* const total = cedarling.total_issuers();
|
|
568
|
+
* ```
|
|
569
|
+
* @returns {number}
|
|
570
|
+
*/
|
|
571
|
+
total_issuers() {
|
|
572
|
+
const ret = wasm.cedarling_total_issuers(this.__wbg_ptr);
|
|
573
|
+
return ret >>> 0;
|
|
574
|
+
}
|
|
479
575
|
}
|
|
480
576
|
if (Symbol.dispose) Cedarling.prototype[Symbol.dispose] = Cedarling.prototype.free;
|
|
481
|
-
exports.Cedarling = Cedarling;
|
|
482
577
|
|
|
483
578
|
/**
|
|
484
579
|
* A WASM wrapper for the Rust `cedarling::DataEntry` struct.
|
|
485
580
|
* Represents a data entry in the DataStore with value and metadata.
|
|
486
581
|
*/
|
|
487
|
-
class DataEntry {
|
|
582
|
+
export class DataEntry {
|
|
488
583
|
static __wrap(ptr) {
|
|
489
584
|
ptr = ptr >>> 0;
|
|
490
585
|
const obj = Object.create(DataEntry.prototype);
|
|
@@ -643,13 +738,12 @@ class DataEntry {
|
|
|
643
738
|
}
|
|
644
739
|
}
|
|
645
740
|
if (Symbol.dispose) DataEntry.prototype[Symbol.dispose] = DataEntry.prototype.free;
|
|
646
|
-
exports.DataEntry = DataEntry;
|
|
647
741
|
|
|
648
742
|
/**
|
|
649
743
|
* A WASM wrapper for the Rust `cedarling::DataStoreStats` struct.
|
|
650
744
|
* Statistics about the DataStore.
|
|
651
745
|
*/
|
|
652
|
-
class DataStoreStats {
|
|
746
|
+
export class DataStoreStats {
|
|
653
747
|
static __wrap(ptr) {
|
|
654
748
|
ptr = ptr >>> 0;
|
|
655
749
|
const obj = Object.create(DataStoreStats.prototype);
|
|
@@ -820,7 +914,6 @@ class DataStoreStats {
|
|
|
820
914
|
}
|
|
821
915
|
}
|
|
822
916
|
if (Symbol.dispose) DataStoreStats.prototype[Symbol.dispose] = DataStoreStats.prototype.free;
|
|
823
|
-
exports.DataStoreStats = DataStoreStats;
|
|
824
917
|
|
|
825
918
|
/**
|
|
826
919
|
* Diagnostics
|
|
@@ -828,7 +921,7 @@ exports.DataStoreStats = DataStoreStats;
|
|
|
828
921
|
*
|
|
829
922
|
* Provides detailed information about how a policy decision was made, including policies that contributed to the decision and any errors encountered during evaluation.
|
|
830
923
|
*/
|
|
831
|
-
class Diagnostics {
|
|
924
|
+
export class Diagnostics {
|
|
832
925
|
static __wrap(ptr) {
|
|
833
926
|
ptr = ptr >>> 0;
|
|
834
927
|
const obj = Object.create(Diagnostics.prototype);
|
|
@@ -872,9 +965,8 @@ class Diagnostics {
|
|
|
872
965
|
}
|
|
873
966
|
}
|
|
874
967
|
if (Symbol.dispose) Diagnostics.prototype[Symbol.dispose] = Diagnostics.prototype.free;
|
|
875
|
-
exports.Diagnostics = Diagnostics;
|
|
876
968
|
|
|
877
|
-
class IntoUnderlyingByteSource {
|
|
969
|
+
export class IntoUnderlyingByteSource {
|
|
878
970
|
__destroy_into_raw() {
|
|
879
971
|
const ptr = this.__wbg_ptr;
|
|
880
972
|
this.__wbg_ptr = 0;
|
|
@@ -919,9 +1011,8 @@ class IntoUnderlyingByteSource {
|
|
|
919
1011
|
}
|
|
920
1012
|
}
|
|
921
1013
|
if (Symbol.dispose) IntoUnderlyingByteSource.prototype[Symbol.dispose] = IntoUnderlyingByteSource.prototype.free;
|
|
922
|
-
exports.IntoUnderlyingByteSource = IntoUnderlyingByteSource;
|
|
923
1014
|
|
|
924
|
-
class IntoUnderlyingSink {
|
|
1015
|
+
export class IntoUnderlyingSink {
|
|
925
1016
|
__destroy_into_raw() {
|
|
926
1017
|
const ptr = this.__wbg_ptr;
|
|
927
1018
|
this.__wbg_ptr = 0;
|
|
@@ -959,9 +1050,8 @@ class IntoUnderlyingSink {
|
|
|
959
1050
|
}
|
|
960
1051
|
}
|
|
961
1052
|
if (Symbol.dispose) IntoUnderlyingSink.prototype[Symbol.dispose] = IntoUnderlyingSink.prototype.free;
|
|
962
|
-
exports.IntoUnderlyingSink = IntoUnderlyingSink;
|
|
963
1053
|
|
|
964
|
-
class IntoUnderlyingSource {
|
|
1054
|
+
export class IntoUnderlyingSource {
|
|
965
1055
|
__destroy_into_raw() {
|
|
966
1056
|
const ptr = this.__wbg_ptr;
|
|
967
1057
|
this.__wbg_ptr = 0;
|
|
@@ -986,13 +1076,12 @@ class IntoUnderlyingSource {
|
|
|
986
1076
|
}
|
|
987
1077
|
}
|
|
988
1078
|
if (Symbol.dispose) IntoUnderlyingSource.prototype[Symbol.dispose] = IntoUnderlyingSource.prototype.free;
|
|
989
|
-
exports.IntoUnderlyingSource = IntoUnderlyingSource;
|
|
990
1079
|
|
|
991
1080
|
/**
|
|
992
1081
|
* A WASM wrapper for the Rust `cedarling::MultiIssuerAuthorizeResult` struct.
|
|
993
1082
|
* Represents the result of a multi-issuer authorization request.
|
|
994
1083
|
*/
|
|
995
|
-
class MultiIssuerAuthorizeResult {
|
|
1084
|
+
export class MultiIssuerAuthorizeResult {
|
|
996
1085
|
static __wrap(ptr) {
|
|
997
1086
|
ptr = ptr >>> 0;
|
|
998
1087
|
const obj = Object.create(MultiIssuerAuthorizeResult.prototype);
|
|
@@ -1089,7 +1178,6 @@ class MultiIssuerAuthorizeResult {
|
|
|
1089
1178
|
}
|
|
1090
1179
|
}
|
|
1091
1180
|
if (Symbol.dispose) MultiIssuerAuthorizeResult.prototype[Symbol.dispose] = MultiIssuerAuthorizeResult.prototype.free;
|
|
1092
|
-
exports.MultiIssuerAuthorizeResult = MultiIssuerAuthorizeResult;
|
|
1093
1181
|
|
|
1094
1182
|
/**
|
|
1095
1183
|
* PolicyEvaluationError
|
|
@@ -1097,7 +1185,7 @@ exports.MultiIssuerAuthorizeResult = MultiIssuerAuthorizeResult;
|
|
|
1097
1185
|
*
|
|
1098
1186
|
* Represents an error that occurred when evaluating a Cedar policy.
|
|
1099
1187
|
*/
|
|
1100
|
-
class PolicyEvaluationError {
|
|
1188
|
+
export class PolicyEvaluationError {
|
|
1101
1189
|
static __wrap(ptr) {
|
|
1102
1190
|
ptr = ptr >>> 0;
|
|
1103
1191
|
const obj = Object.create(PolicyEvaluationError.prototype);
|
|
@@ -1149,7 +1237,6 @@ class PolicyEvaluationError {
|
|
|
1149
1237
|
}
|
|
1150
1238
|
}
|
|
1151
1239
|
if (Symbol.dispose) PolicyEvaluationError.prototype[Symbol.dispose] = PolicyEvaluationError.prototype.free;
|
|
1152
|
-
exports.PolicyEvaluationError = PolicyEvaluationError;
|
|
1153
1240
|
|
|
1154
1241
|
/**
|
|
1155
1242
|
* Create a new instance of the Cedarling application.
|
|
@@ -1157,11 +1244,10 @@ exports.PolicyEvaluationError = PolicyEvaluationError;
|
|
|
1157
1244
|
* @param {any} config
|
|
1158
1245
|
* @returns {Promise<Cedarling>}
|
|
1159
1246
|
*/
|
|
1160
|
-
function init(config) {
|
|
1247
|
+
export function init(config) {
|
|
1161
1248
|
const ret = wasm.init(config);
|
|
1162
1249
|
return ret;
|
|
1163
1250
|
}
|
|
1164
|
-
exports.init = init;
|
|
1165
1251
|
|
|
1166
1252
|
/**
|
|
1167
1253
|
* Create a new instance of the Cedarling application from archive bytes.
|
|
@@ -1183,81 +1269,80 @@ exports.init = init;
|
|
|
1183
1269
|
* @param {Uint8Array} archive_bytes
|
|
1184
1270
|
* @returns {Promise<Cedarling>}
|
|
1185
1271
|
*/
|
|
1186
|
-
function init_from_archive_bytes(config, archive_bytes) {
|
|
1272
|
+
export function init_from_archive_bytes(config, archive_bytes) {
|
|
1187
1273
|
const ret = wasm.init_from_archive_bytes(config, archive_bytes);
|
|
1188
1274
|
return ret;
|
|
1189
1275
|
}
|
|
1190
|
-
exports.init_from_archive_bytes = init_from_archive_bytes;
|
|
1191
1276
|
|
|
1192
1277
|
function __wbg_get_imports() {
|
|
1193
1278
|
const import0 = {
|
|
1194
1279
|
__proto__: null,
|
|
1195
|
-
|
|
1280
|
+
__wbg_Error_55538483de6e3abe: function(arg0, arg1) {
|
|
1196
1281
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
1197
1282
|
return ret;
|
|
1198
1283
|
},
|
|
1199
|
-
|
|
1284
|
+
__wbg_Number_f257194b7002d6f9: function(arg0) {
|
|
1200
1285
|
const ret = Number(arg0);
|
|
1201
1286
|
return ret;
|
|
1202
1287
|
},
|
|
1203
|
-
|
|
1288
|
+
__wbg___wbindgen_bigint_get_as_i64_a738e80c0fe6f6a7: function(arg0, arg1) {
|
|
1204
1289
|
const v = arg1;
|
|
1205
1290
|
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
1206
1291
|
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
1207
1292
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1208
1293
|
},
|
|
1209
|
-
|
|
1294
|
+
__wbg___wbindgen_boolean_get_fe2a24fdfdb4064f: function(arg0) {
|
|
1210
1295
|
const v = arg0;
|
|
1211
1296
|
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
1212
1297
|
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
1213
1298
|
},
|
|
1214
|
-
|
|
1299
|
+
__wbg___wbindgen_debug_string_d89627202d0155b7: function(arg0, arg1) {
|
|
1215
1300
|
const ret = debugString(arg1);
|
|
1216
1301
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1217
1302
|
const len1 = WASM_VECTOR_LEN;
|
|
1218
1303
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1219
1304
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1220
1305
|
},
|
|
1221
|
-
|
|
1306
|
+
__wbg___wbindgen_in_fe3eb6a509f75744: function(arg0, arg1) {
|
|
1222
1307
|
const ret = arg0 in arg1;
|
|
1223
1308
|
return ret;
|
|
1224
1309
|
},
|
|
1225
|
-
|
|
1310
|
+
__wbg___wbindgen_is_bigint_ca270ac12ef71091: function(arg0) {
|
|
1226
1311
|
const ret = typeof(arg0) === 'bigint';
|
|
1227
1312
|
return ret;
|
|
1228
1313
|
},
|
|
1229
|
-
|
|
1314
|
+
__wbg___wbindgen_is_function_2a95406423ea8626: function(arg0) {
|
|
1230
1315
|
const ret = typeof(arg0) === 'function';
|
|
1231
1316
|
return ret;
|
|
1232
1317
|
},
|
|
1233
|
-
|
|
1318
|
+
__wbg___wbindgen_is_object_59a002e76b059312: function(arg0) {
|
|
1234
1319
|
const val = arg0;
|
|
1235
1320
|
const ret = typeof(val) === 'object' && val !== null;
|
|
1236
1321
|
return ret;
|
|
1237
1322
|
},
|
|
1238
|
-
|
|
1323
|
+
__wbg___wbindgen_is_string_624d5244bb2bc87c: function(arg0) {
|
|
1239
1324
|
const ret = typeof(arg0) === 'string';
|
|
1240
1325
|
return ret;
|
|
1241
1326
|
},
|
|
1242
|
-
|
|
1327
|
+
__wbg___wbindgen_is_undefined_87a3a837f331fef5: function(arg0) {
|
|
1243
1328
|
const ret = arg0 === undefined;
|
|
1244
1329
|
return ret;
|
|
1245
1330
|
},
|
|
1246
|
-
|
|
1331
|
+
__wbg___wbindgen_jsval_eq_eedd705f9f2a4f35: function(arg0, arg1) {
|
|
1247
1332
|
const ret = arg0 === arg1;
|
|
1248
1333
|
return ret;
|
|
1249
1334
|
},
|
|
1250
|
-
|
|
1335
|
+
__wbg___wbindgen_jsval_loose_eq_cf851f110c48f9ba: function(arg0, arg1) {
|
|
1251
1336
|
const ret = arg0 == arg1;
|
|
1252
1337
|
return ret;
|
|
1253
1338
|
},
|
|
1254
|
-
|
|
1339
|
+
__wbg___wbindgen_number_get_769f3676dc20c1d7: function(arg0, arg1) {
|
|
1255
1340
|
const obj = arg1;
|
|
1256
1341
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
1257
1342
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
1258
1343
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1259
1344
|
},
|
|
1260
|
-
|
|
1345
|
+
__wbg___wbindgen_string_get_f1161390414f9b59: function(arg0, arg1) {
|
|
1261
1346
|
const obj = arg1;
|
|
1262
1347
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
1263
1348
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -1265,22 +1350,22 @@ function __wbg_get_imports() {
|
|
|
1265
1350
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1266
1351
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1267
1352
|
},
|
|
1268
|
-
|
|
1353
|
+
__wbg___wbindgen_throw_5549492daedad139: function(arg0, arg1) {
|
|
1269
1354
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
1270
1355
|
},
|
|
1271
|
-
|
|
1356
|
+
__wbg__wbg_cb_unref_fbe69bb076c16bad: function(arg0) {
|
|
1272
1357
|
arg0._wbg_cb_unref();
|
|
1273
1358
|
},
|
|
1274
|
-
|
|
1275
|
-
arg0.abort();
|
|
1276
|
-
},
|
|
1277
|
-
__wbg_abort_6479c2d794ebf2ee: function(arg0, arg1) {
|
|
1359
|
+
__wbg_abort_b007790bcfd9fff2: function(arg0, arg1) {
|
|
1278
1360
|
arg0.abort(arg1);
|
|
1279
1361
|
},
|
|
1280
|
-
|
|
1362
|
+
__wbg_abort_bdf419e9dcbdaeb3: function(arg0) {
|
|
1363
|
+
arg0.abort();
|
|
1364
|
+
},
|
|
1365
|
+
__wbg_append_7c8e49986ab5288d: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1281
1366
|
arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
1282
1367
|
}, arguments); },
|
|
1283
|
-
|
|
1368
|
+
__wbg_arrayBuffer_9f258d017f7107c5: function() { return handleError(function (arg0) {
|
|
1284
1369
|
const ret = arg0.arrayBuffer();
|
|
1285
1370
|
return ret;
|
|
1286
1371
|
}, arguments); },
|
|
@@ -1288,39 +1373,39 @@ function __wbg_get_imports() {
|
|
|
1288
1373
|
const ret = AuthorizeResult.__wrap(arg0);
|
|
1289
1374
|
return ret;
|
|
1290
1375
|
},
|
|
1291
|
-
|
|
1376
|
+
__wbg_body_b8b0dbac0427b082: function(arg0) {
|
|
1292
1377
|
const ret = arg0.body;
|
|
1293
1378
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1294
1379
|
},
|
|
1295
|
-
|
|
1380
|
+
__wbg_buffer_0a57788cdfce21ba: function(arg0) {
|
|
1296
1381
|
const ret = arg0.buffer;
|
|
1297
1382
|
return ret;
|
|
1298
1383
|
},
|
|
1299
|
-
|
|
1384
|
+
__wbg_byobRequest_ab0e57f55bf774f2: function(arg0) {
|
|
1300
1385
|
const ret = arg0.byobRequest;
|
|
1301
1386
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1302
1387
|
},
|
|
1303
|
-
|
|
1388
|
+
__wbg_byteLength_9931db00e5861bf9: function(arg0) {
|
|
1304
1389
|
const ret = arg0.byteLength;
|
|
1305
1390
|
return ret;
|
|
1306
1391
|
},
|
|
1307
|
-
|
|
1392
|
+
__wbg_byteOffset_0a985a98f8ffb8d7: function(arg0) {
|
|
1308
1393
|
const ret = arg0.byteOffset;
|
|
1309
1394
|
return ret;
|
|
1310
1395
|
},
|
|
1311
|
-
|
|
1312
|
-
const ret = arg0.call(arg1
|
|
1396
|
+
__wbg_call_6ae20895a60069a2: function() { return handleError(function (arg0, arg1) {
|
|
1397
|
+
const ret = arg0.call(arg1);
|
|
1313
1398
|
return ret;
|
|
1314
1399
|
}, arguments); },
|
|
1315
|
-
|
|
1316
|
-
const ret = arg0.call(arg1);
|
|
1400
|
+
__wbg_call_8f5d7bb070283508: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1401
|
+
const ret = arg0.call(arg1, arg2);
|
|
1317
1402
|
return ret;
|
|
1318
1403
|
}, arguments); },
|
|
1319
|
-
|
|
1404
|
+
__wbg_cancel_17af7d30174e56fc: function(arg0) {
|
|
1320
1405
|
const ret = arg0.cancel();
|
|
1321
1406
|
return ret;
|
|
1322
1407
|
},
|
|
1323
|
-
|
|
1408
|
+
__wbg_catch_95f7e0f431da3bfc: function(arg0, arg1) {
|
|
1324
1409
|
const ret = arg0.catch(arg1);
|
|
1325
1410
|
return ret;
|
|
1326
1411
|
},
|
|
@@ -1336,10 +1421,10 @@ function __wbg_get_imports() {
|
|
|
1336
1421
|
const ret = clearTimeout(arg0);
|
|
1337
1422
|
return ret;
|
|
1338
1423
|
},
|
|
1339
|
-
|
|
1424
|
+
__wbg_close_62f6a4eadc94565f: function() { return handleError(function (arg0) {
|
|
1340
1425
|
arg0.close();
|
|
1341
1426
|
}, arguments); },
|
|
1342
|
-
|
|
1427
|
+
__wbg_close_f287058716088a50: function() { return handleError(function (arg0) {
|
|
1343
1428
|
arg0.close();
|
|
1344
1429
|
}, arguments); },
|
|
1345
1430
|
__wbg_crypto_38df2bab126b63dc: function(arg0) {
|
|
@@ -1350,48 +1435,48 @@ function __wbg_get_imports() {
|
|
|
1350
1435
|
const ret = DataEntry.__wrap(arg0);
|
|
1351
1436
|
return ret;
|
|
1352
1437
|
},
|
|
1353
|
-
|
|
1438
|
+
__wbg_debug_423712c4250f1682: function(arg0) {
|
|
1354
1439
|
console.debug(...arg0);
|
|
1355
1440
|
},
|
|
1356
|
-
|
|
1441
|
+
__wbg_done_19f92cb1f8738aba: function(arg0) {
|
|
1357
1442
|
const ret = arg0.done;
|
|
1358
1443
|
return ret;
|
|
1359
1444
|
},
|
|
1360
|
-
|
|
1445
|
+
__wbg_enqueue_ee0593cea9be93bd: function() { return handleError(function (arg0, arg1) {
|
|
1361
1446
|
arg0.enqueue(arg1);
|
|
1362
1447
|
}, arguments); },
|
|
1363
|
-
|
|
1364
|
-
const ret =
|
|
1448
|
+
__wbg_entries_28ed7cb892e12eff: function(arg0) {
|
|
1449
|
+
const ret = Object.entries(arg0);
|
|
1365
1450
|
return ret;
|
|
1366
1451
|
},
|
|
1367
|
-
|
|
1452
|
+
__wbg_entries_31ac11e93c1f2197: function(arg0) {
|
|
1368
1453
|
const ret = arg0.entries();
|
|
1369
1454
|
return ret;
|
|
1370
1455
|
},
|
|
1371
|
-
|
|
1372
|
-
const ret =
|
|
1456
|
+
__wbg_entries_dc69bbf25538adc3: function(arg0) {
|
|
1457
|
+
const ret = arg0.entries();
|
|
1373
1458
|
return ret;
|
|
1374
1459
|
},
|
|
1375
|
-
|
|
1460
|
+
__wbg_error_333d6f7cc81c136f: function(arg0) {
|
|
1376
1461
|
console.error(...arg0);
|
|
1377
1462
|
},
|
|
1378
1463
|
__wbg_fetch_010aa16f24b763bc: function(arg0, arg1) {
|
|
1379
1464
|
const ret = fetch(arg0, arg1);
|
|
1380
1465
|
return ret;
|
|
1381
1466
|
},
|
|
1382
|
-
|
|
1383
|
-
const ret = fetch(
|
|
1467
|
+
__wbg_fetch_2f3387796d5f6a84: function(arg0, arg1, arg2) {
|
|
1468
|
+
const ret = arg0.fetch(arg1, arg2);
|
|
1384
1469
|
return ret;
|
|
1385
1470
|
},
|
|
1386
|
-
|
|
1471
|
+
__wbg_fetch_3f39346b50886803: function(arg0, arg1) {
|
|
1387
1472
|
const ret = arg0.fetch(arg1);
|
|
1388
1473
|
return ret;
|
|
1389
1474
|
},
|
|
1390
|
-
|
|
1391
|
-
const ret =
|
|
1475
|
+
__wbg_fetch_43b2f110608a59ff: function(arg0) {
|
|
1476
|
+
const ret = fetch(arg0);
|
|
1392
1477
|
return ret;
|
|
1393
1478
|
},
|
|
1394
|
-
|
|
1479
|
+
__wbg_fromEntries_0f0bc9cda6b6487d: function() { return handleError(function (arg0) {
|
|
1395
1480
|
const ret = Object.fromEntries(arg0);
|
|
1396
1481
|
return ret;
|
|
1397
1482
|
}, arguments); },
|
|
@@ -1405,35 +1490,35 @@ function __wbg_get_imports() {
|
|
|
1405
1490
|
const ret = arg0.getReader();
|
|
1406
1491
|
return ret;
|
|
1407
1492
|
}, arguments); },
|
|
1408
|
-
|
|
1493
|
+
__wbg_getTime_c3af35594e283356: function(arg0) {
|
|
1409
1494
|
const ret = arg0.getTime();
|
|
1410
1495
|
return ret;
|
|
1411
1496
|
},
|
|
1412
|
-
|
|
1497
|
+
__wbg_getTimezoneOffset_c60f1a836e59b3db: function(arg0) {
|
|
1413
1498
|
const ret = arg0.getTimezoneOffset();
|
|
1414
1499
|
return ret;
|
|
1415
1500
|
},
|
|
1416
|
-
|
|
1417
|
-
const ret =
|
|
1501
|
+
__wbg_get_94f5fc088edd3138: function(arg0, arg1) {
|
|
1502
|
+
const ret = arg0[arg1 >>> 0];
|
|
1418
1503
|
return ret;
|
|
1419
|
-
},
|
|
1420
|
-
|
|
1504
|
+
},
|
|
1505
|
+
__wbg_get_a50328e7325d7f9b: function() { return handleError(function (arg0, arg1) {
|
|
1421
1506
|
const ret = Reflect.get(arg0, arg1);
|
|
1422
1507
|
return ret;
|
|
1423
1508
|
}, arguments); },
|
|
1424
|
-
|
|
1425
|
-
const ret = arg0[arg1 >>> 0];
|
|
1426
|
-
return ret;
|
|
1427
|
-
},
|
|
1428
|
-
__wbg_get_done_d0ab690f8df5501f: function(arg0) {
|
|
1509
|
+
__wbg_get_done_cedda7fa9770abba: function(arg0) {
|
|
1429
1510
|
const ret = arg0.done;
|
|
1430
1511
|
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
1431
1512
|
},
|
|
1432
|
-
|
|
1513
|
+
__wbg_get_ff5f1fb220233477: function() { return handleError(function (arg0, arg1) {
|
|
1514
|
+
const ret = Reflect.get(arg0, arg1);
|
|
1515
|
+
return ret;
|
|
1516
|
+
}, arguments); },
|
|
1517
|
+
__wbg_get_unchecked_7c6bbabf5b0b1fbf: function(arg0, arg1) {
|
|
1433
1518
|
const ret = arg0[arg1 >>> 0];
|
|
1434
1519
|
return ret;
|
|
1435
1520
|
},
|
|
1436
|
-
|
|
1521
|
+
__wbg_get_value_69a0a45ef9f1a593: function(arg0) {
|
|
1437
1522
|
const ret = arg0.value;
|
|
1438
1523
|
return ret;
|
|
1439
1524
|
},
|
|
@@ -1441,18 +1526,18 @@ function __wbg_get_imports() {
|
|
|
1441
1526
|
const ret = arg0[arg1];
|
|
1442
1527
|
return ret;
|
|
1443
1528
|
},
|
|
1444
|
-
|
|
1529
|
+
__wbg_has_3f87d148146a0f4e: function() { return handleError(function (arg0, arg1) {
|
|
1445
1530
|
const ret = Reflect.has(arg0, arg1);
|
|
1446
1531
|
return ret;
|
|
1447
1532
|
}, arguments); },
|
|
1448
|
-
|
|
1533
|
+
__wbg_headers_6ccffabdaab0d021: function(arg0) {
|
|
1449
1534
|
const ret = arg0.headers;
|
|
1450
1535
|
return ret;
|
|
1451
1536
|
},
|
|
1452
|
-
|
|
1537
|
+
__wbg_info_62423f62777981a5: function(arg0) {
|
|
1453
1538
|
console.info(...arg0);
|
|
1454
1539
|
},
|
|
1455
|
-
|
|
1540
|
+
__wbg_instanceof_ArrayBuffer_8d855993947fc3a2: function(arg0) {
|
|
1456
1541
|
let result;
|
|
1457
1542
|
try {
|
|
1458
1543
|
result = arg0 instanceof ArrayBuffer;
|
|
@@ -1462,7 +1547,7 @@ function __wbg_get_imports() {
|
|
|
1462
1547
|
const ret = result;
|
|
1463
1548
|
return ret;
|
|
1464
1549
|
},
|
|
1465
|
-
|
|
1550
|
+
__wbg_instanceof_Array_79c1b15ef3abcc53: function(arg0) {
|
|
1466
1551
|
let result;
|
|
1467
1552
|
try {
|
|
1468
1553
|
result = arg0 instanceof Array;
|
|
@@ -1472,7 +1557,7 @@ function __wbg_get_imports() {
|
|
|
1472
1557
|
const ret = result;
|
|
1473
1558
|
return ret;
|
|
1474
1559
|
},
|
|
1475
|
-
|
|
1560
|
+
__wbg_instanceof_Map_238410f1463c05ed: function(arg0) {
|
|
1476
1561
|
let result;
|
|
1477
1562
|
try {
|
|
1478
1563
|
result = arg0 instanceof Map;
|
|
@@ -1482,7 +1567,7 @@ function __wbg_get_imports() {
|
|
|
1482
1567
|
const ret = result;
|
|
1483
1568
|
return ret;
|
|
1484
1569
|
},
|
|
1485
|
-
|
|
1570
|
+
__wbg_instanceof_Response_fece7eabbcaca4c3: function(arg0) {
|
|
1486
1571
|
let result;
|
|
1487
1572
|
try {
|
|
1488
1573
|
result = arg0 instanceof Response;
|
|
@@ -1492,7 +1577,7 @@ function __wbg_get_imports() {
|
|
|
1492
1577
|
const ret = result;
|
|
1493
1578
|
return ret;
|
|
1494
1579
|
},
|
|
1495
|
-
|
|
1580
|
+
__wbg_instanceof_Uint8Array_ce24d58a5f4bdcc3: function(arg0) {
|
|
1496
1581
|
let result;
|
|
1497
1582
|
try {
|
|
1498
1583
|
result = arg0 instanceof Uint8Array;
|
|
@@ -1502,31 +1587,31 @@ function __wbg_get_imports() {
|
|
|
1502
1587
|
const ret = result;
|
|
1503
1588
|
return ret;
|
|
1504
1589
|
},
|
|
1505
|
-
|
|
1590
|
+
__wbg_isArray_867202cf8f195ed8: function(arg0) {
|
|
1506
1591
|
const ret = Array.isArray(arg0);
|
|
1507
1592
|
return ret;
|
|
1508
1593
|
},
|
|
1509
|
-
|
|
1594
|
+
__wbg_isSafeInteger_1dfae065cbfe1915: function(arg0) {
|
|
1510
1595
|
const ret = Number.isSafeInteger(arg0);
|
|
1511
1596
|
return ret;
|
|
1512
1597
|
},
|
|
1513
|
-
|
|
1598
|
+
__wbg_iterator_54661826e186eb6a: function() {
|
|
1514
1599
|
const ret = Symbol.iterator;
|
|
1515
1600
|
return ret;
|
|
1516
1601
|
},
|
|
1517
|
-
|
|
1602
|
+
__wbg_keys_e84d806594765111: function(arg0) {
|
|
1518
1603
|
const ret = Object.keys(arg0);
|
|
1519
1604
|
return ret;
|
|
1520
1605
|
},
|
|
1521
|
-
|
|
1606
|
+
__wbg_length_e6e1633fbea6cfa9: function(arg0) {
|
|
1522
1607
|
const ret = arg0.length;
|
|
1523
1608
|
return ret;
|
|
1524
1609
|
},
|
|
1525
|
-
|
|
1610
|
+
__wbg_length_fae3e439140f48a4: function(arg0) {
|
|
1526
1611
|
const ret = arg0.length;
|
|
1527
1612
|
return ret;
|
|
1528
1613
|
},
|
|
1529
|
-
|
|
1614
|
+
__wbg_log_81714afdff806379: function(arg0) {
|
|
1530
1615
|
console.log(...arg0);
|
|
1531
1616
|
},
|
|
1532
1617
|
__wbg_msCrypto_bd5a034af96bcba6: function(arg0) {
|
|
@@ -1537,54 +1622,54 @@ function __wbg_get_imports() {
|
|
|
1537
1622
|
const ret = MultiIssuerAuthorizeResult.__wrap(arg0);
|
|
1538
1623
|
return ret;
|
|
1539
1624
|
},
|
|
1540
|
-
|
|
1541
|
-
const ret = new
|
|
1542
|
-
return ret;
|
|
1543
|
-
}, arguments); },
|
|
1544
|
-
__wbg_new_0_1dcafdf5e786e876: function() {
|
|
1545
|
-
const ret = new Date();
|
|
1625
|
+
__wbg_new_0934b88171ef61b0: function() {
|
|
1626
|
+
const ret = new Map();
|
|
1546
1627
|
return ret;
|
|
1547
1628
|
},
|
|
1548
|
-
|
|
1549
|
-
const ret = new
|
|
1629
|
+
__wbg_new_0_e649c99e7382313f: function() {
|
|
1630
|
+
const ret = new Date();
|
|
1550
1631
|
return ret;
|
|
1551
1632
|
},
|
|
1552
|
-
|
|
1633
|
+
__wbg_new_1d96678aaacca32e: function(arg0) {
|
|
1553
1634
|
const ret = new Uint8Array(arg0);
|
|
1554
1635
|
return ret;
|
|
1555
1636
|
},
|
|
1556
|
-
|
|
1637
|
+
__wbg_new_210ef5849ab6cf48: function() { return handleError(function () {
|
|
1638
|
+
const ret = new Headers();
|
|
1639
|
+
return ret;
|
|
1640
|
+
}, arguments); },
|
|
1641
|
+
__wbg_new_4370be21fa2b2f80: function() {
|
|
1557
1642
|
const ret = new Array();
|
|
1558
1643
|
return ret;
|
|
1559
1644
|
},
|
|
1560
|
-
|
|
1645
|
+
__wbg_new_48e1d86cfd30c8e7: function() {
|
|
1561
1646
|
const ret = new Object();
|
|
1562
1647
|
return ret;
|
|
1563
1648
|
},
|
|
1564
|
-
|
|
1565
|
-
const ret = new AbortController();
|
|
1566
|
-
return ret;
|
|
1567
|
-
}, arguments); },
|
|
1568
|
-
__wbg_new_d15cb560a6a0e5f0: function(arg0, arg1) {
|
|
1649
|
+
__wbg_new_4a843fe2ee4082a9: function(arg0, arg1) {
|
|
1569
1650
|
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
1570
1651
|
return ret;
|
|
1571
1652
|
},
|
|
1572
|
-
|
|
1653
|
+
__wbg_new_ce17f0bcfcc7b8ef: function() { return handleError(function () {
|
|
1654
|
+
const ret = new AbortController();
|
|
1655
|
+
return ret;
|
|
1656
|
+
}, arguments); },
|
|
1657
|
+
__wbg_new_d51bf22e953dcfd1: function(arg0) {
|
|
1573
1658
|
const ret = new Date(arg0);
|
|
1574
1659
|
return ret;
|
|
1575
1660
|
},
|
|
1576
|
-
|
|
1661
|
+
__wbg_new_from_slice_0bc58e36f82a1b50: function(arg0, arg1) {
|
|
1577
1662
|
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
1578
1663
|
return ret;
|
|
1579
1664
|
},
|
|
1580
|
-
|
|
1665
|
+
__wbg_new_typed_25dda2388d7e5e9f: function(arg0, arg1) {
|
|
1581
1666
|
try {
|
|
1582
1667
|
var state0 = {a: arg0, b: arg1};
|
|
1583
1668
|
var cb0 = (arg0, arg1) => {
|
|
1584
1669
|
const a = state0.a;
|
|
1585
1670
|
state0.a = 0;
|
|
1586
1671
|
try {
|
|
1587
|
-
return
|
|
1672
|
+
return wasm_bindgen__convert__closures_____invoke__h7b228b9e08b1988a(a, state0.b, arg0, arg1);
|
|
1588
1673
|
} finally {
|
|
1589
1674
|
state0.a = a;
|
|
1590
1675
|
}
|
|
@@ -1592,29 +1677,29 @@ function __wbg_get_imports() {
|
|
|
1592
1677
|
const ret = new Promise(cb0);
|
|
1593
1678
|
return ret;
|
|
1594
1679
|
} finally {
|
|
1595
|
-
state0.a =
|
|
1680
|
+
state0.a = 0;
|
|
1596
1681
|
}
|
|
1597
1682
|
},
|
|
1598
|
-
|
|
1683
|
+
__wbg_new_with_byte_offset_and_length_ab1e1002d7a694e4: function(arg0, arg1, arg2) {
|
|
1599
1684
|
const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
|
|
1600
1685
|
return ret;
|
|
1601
1686
|
},
|
|
1602
|
-
|
|
1687
|
+
__wbg_new_with_length_0f3108b57e05ed7c: function(arg0) {
|
|
1603
1688
|
const ret = new Uint8Array(arg0 >>> 0);
|
|
1604
1689
|
return ret;
|
|
1605
1690
|
},
|
|
1606
|
-
|
|
1691
|
+
__wbg_new_with_str_and_init_cb3df438bf62964e: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1607
1692
|
const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
|
|
1608
1693
|
return ret;
|
|
1609
1694
|
}, arguments); },
|
|
1610
|
-
|
|
1611
|
-
const ret = arg0.next();
|
|
1612
|
-
return ret;
|
|
1613
|
-
}, arguments); },
|
|
1614
|
-
__wbg_next_e01a967809d1aa68: function(arg0) {
|
|
1695
|
+
__wbg_next_55d835fe0ab5b3e7: function(arg0) {
|
|
1615
1696
|
const ret = arg0.next;
|
|
1616
1697
|
return ret;
|
|
1617
1698
|
},
|
|
1699
|
+
__wbg_next_e34cfb9df1518d7c: function() { return handleError(function (arg0) {
|
|
1700
|
+
const ret = arg0.next();
|
|
1701
|
+
return ret;
|
|
1702
|
+
}, arguments); },
|
|
1618
1703
|
__wbg_node_84ea875411254db1: function(arg0) {
|
|
1619
1704
|
const ret = arg0.node;
|
|
1620
1705
|
return ret;
|
|
@@ -1627,39 +1712,39 @@ function __wbg_get_imports() {
|
|
|
1627
1712
|
const ret = arg0.process;
|
|
1628
1713
|
return ret;
|
|
1629
1714
|
},
|
|
1630
|
-
|
|
1715
|
+
__wbg_prototypesetcall_3875d54d12ef2eec: function(arg0, arg1, arg2) {
|
|
1631
1716
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
1632
1717
|
},
|
|
1633
|
-
|
|
1718
|
+
__wbg_push_d0006a37f9fcda6d: function(arg0, arg1) {
|
|
1634
1719
|
const ret = arg0.push(arg1);
|
|
1635
1720
|
return ret;
|
|
1636
1721
|
},
|
|
1637
|
-
|
|
1722
|
+
__wbg_queueMicrotask_8868365114fe23b5: function(arg0) {
|
|
1723
|
+
queueMicrotask(arg0);
|
|
1724
|
+
},
|
|
1725
|
+
__wbg_queueMicrotask_cfc5a0e62f9ebdbe: function(arg0) {
|
|
1638
1726
|
const ret = arg0.queueMicrotask;
|
|
1639
1727
|
return ret;
|
|
1640
1728
|
},
|
|
1641
|
-
__wbg_queueMicrotask_a082d78ce798393e: function(arg0) {
|
|
1642
|
-
queueMicrotask(arg0);
|
|
1643
|
-
},
|
|
1644
1729
|
__wbg_randomFillSync_6c25eac9869eb53c: function() { return handleError(function (arg0, arg1) {
|
|
1645
1730
|
arg0.randomFillSync(arg1);
|
|
1646
1731
|
}, arguments); },
|
|
1647
|
-
|
|
1732
|
+
__wbg_read_a9540f69bce63522: function(arg0) {
|
|
1648
1733
|
const ret = arg0.read();
|
|
1649
1734
|
return ret;
|
|
1650
1735
|
},
|
|
1651
|
-
|
|
1736
|
+
__wbg_releaseLock_58c436bedc52c5b4: function(arg0) {
|
|
1652
1737
|
arg0.releaseLock();
|
|
1653
1738
|
},
|
|
1654
1739
|
__wbg_require_b4edbdcf3e2a1ef0: function() { return handleError(function () {
|
|
1655
1740
|
const ret = module.require;
|
|
1656
1741
|
return ret;
|
|
1657
1742
|
}, arguments); },
|
|
1658
|
-
|
|
1743
|
+
__wbg_resolve_d8059bc113e215bf: function(arg0) {
|
|
1659
1744
|
const ret = Promise.resolve(arg0);
|
|
1660
1745
|
return ret;
|
|
1661
1746
|
},
|
|
1662
|
-
|
|
1747
|
+
__wbg_respond_1ec29395edbe7fce: function() { return handleError(function (arg0, arg1) {
|
|
1663
1748
|
arg0.respond(arg1 >>> 0);
|
|
1664
1749
|
}, arguments); },
|
|
1665
1750
|
__wbg_setTimeout_a3127d9f29a851c3: function(arg0, arg1) {
|
|
@@ -1670,114 +1755,114 @@ function __wbg_get_imports() {
|
|
|
1670
1755
|
const ret = setTimeout(arg0, arg1);
|
|
1671
1756
|
return ret;
|
|
1672
1757
|
},
|
|
1673
|
-
|
|
1758
|
+
__wbg_set_0b4302959e9491f2: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1759
|
+
arg0.set(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
1760
|
+
}, arguments); },
|
|
1761
|
+
__wbg_set_295bad3b5ead4e99: function(arg0, arg1, arg2) {
|
|
1762
|
+
arg0.set(getArrayU8FromWasm0(arg1, arg2));
|
|
1763
|
+
},
|
|
1764
|
+
__wbg_set_4702dfa37c77f492: function(arg0, arg1, arg2) {
|
|
1674
1765
|
arg0[arg1 >>> 0] = arg2;
|
|
1675
1766
|
},
|
|
1676
1767
|
__wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
|
|
1677
1768
|
arg0[arg1] = arg2;
|
|
1678
1769
|
},
|
|
1679
|
-
|
|
1680
|
-
const ret = Reflect.set(arg0, arg1, arg2);
|
|
1681
|
-
return ret;
|
|
1682
|
-
}, arguments); },
|
|
1683
|
-
__wbg_set_8c0b3ffcf05d61c2: function(arg0, arg1, arg2) {
|
|
1684
|
-
arg0.set(getArrayU8FromWasm0(arg1, arg2));
|
|
1685
|
-
},
|
|
1686
|
-
__wbg_set_bf7251625df30a02: function(arg0, arg1, arg2) {
|
|
1770
|
+
__wbg_set_8c6629931852a4a5: function(arg0, arg1, arg2) {
|
|
1687
1771
|
const ret = arg0.set(arg1, arg2);
|
|
1688
1772
|
return ret;
|
|
1689
1773
|
},
|
|
1690
|
-
|
|
1774
|
+
__wbg_set_991082a7a49971cf: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1775
|
+
const ret = Reflect.set(arg0, arg1, arg2);
|
|
1776
|
+
return ret;
|
|
1777
|
+
}, arguments); },
|
|
1778
|
+
__wbg_set_body_e2cf9537a2f3e0be: function(arg0, arg1) {
|
|
1691
1779
|
arg0.body = arg1;
|
|
1692
1780
|
},
|
|
1693
|
-
|
|
1781
|
+
__wbg_set_cache_542e710bfd7aa57a: function(arg0, arg1) {
|
|
1694
1782
|
arg0.cache = __wbindgen_enum_RequestCache[arg1];
|
|
1695
1783
|
},
|
|
1696
|
-
|
|
1784
|
+
__wbg_set_credentials_5838a4909b379d8e: function(arg0, arg1) {
|
|
1697
1785
|
arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
|
|
1698
1786
|
},
|
|
1699
|
-
|
|
1700
|
-
arg0.set(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
1701
|
-
}, arguments); },
|
|
1702
|
-
__wbg_set_headers_3c8fecc693b75327: function(arg0, arg1) {
|
|
1787
|
+
__wbg_set_headers_22d4b01224273a83: function(arg0, arg1) {
|
|
1703
1788
|
arg0.headers = arg1;
|
|
1704
1789
|
},
|
|
1705
|
-
|
|
1790
|
+
__wbg_set_integrity_cddf7f2db42f804f: function(arg0, arg1, arg2) {
|
|
1706
1791
|
arg0.integrity = getStringFromWasm0(arg1, arg2);
|
|
1707
1792
|
},
|
|
1708
|
-
|
|
1793
|
+
__wbg_set_method_4a4ab3faba8a018c: function(arg0, arg1, arg2) {
|
|
1709
1794
|
arg0.method = getStringFromWasm0(arg1, arg2);
|
|
1710
1795
|
},
|
|
1711
|
-
|
|
1796
|
+
__wbg_set_mode_7b856ab49b64c0db: function(arg0, arg1) {
|
|
1712
1797
|
arg0.mode = __wbindgen_enum_RequestMode[arg1];
|
|
1713
1798
|
},
|
|
1714
|
-
|
|
1799
|
+
__wbg_set_redirect_def7b707b961a056: function(arg0, arg1) {
|
|
1715
1800
|
arg0.redirect = __wbindgen_enum_RequestRedirect[arg1];
|
|
1716
1801
|
},
|
|
1717
|
-
|
|
1802
|
+
__wbg_set_referrer_137c75ffd4471b33: function(arg0, arg1, arg2) {
|
|
1718
1803
|
arg0.referrer = getStringFromWasm0(arg1, arg2);
|
|
1719
1804
|
},
|
|
1720
|
-
|
|
1805
|
+
__wbg_set_referrer_policy_cc894554d0688d32: function(arg0, arg1) {
|
|
1721
1806
|
arg0.referrerPolicy = __wbindgen_enum_ReferrerPolicy[arg1];
|
|
1722
1807
|
},
|
|
1723
|
-
|
|
1808
|
+
__wbg_set_signal_cd4528432ab8fe0b: function(arg0, arg1) {
|
|
1724
1809
|
arg0.signal = arg1;
|
|
1725
1810
|
},
|
|
1726
|
-
|
|
1811
|
+
__wbg_signal_6740ecf9bc372e29: function(arg0) {
|
|
1727
1812
|
const ret = arg0.signal;
|
|
1728
1813
|
return ret;
|
|
1729
1814
|
},
|
|
1730
|
-
|
|
1815
|
+
__wbg_static_accessor_GLOBAL_8dfb7f5e26ebe523: function() {
|
|
1731
1816
|
const ret = typeof global === 'undefined' ? null : global;
|
|
1732
1817
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1733
1818
|
},
|
|
1734
|
-
|
|
1819
|
+
__wbg_static_accessor_GLOBAL_THIS_941154efc8395cdd: function() {
|
|
1735
1820
|
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
1736
1821
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1737
1822
|
},
|
|
1738
|
-
|
|
1823
|
+
__wbg_static_accessor_SELF_58dac9af822f561f: function() {
|
|
1739
1824
|
const ret = typeof self === 'undefined' ? null : self;
|
|
1740
1825
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1741
1826
|
},
|
|
1742
|
-
|
|
1827
|
+
__wbg_static_accessor_WINDOW_ee64f0b3d8354c0b: function() {
|
|
1743
1828
|
const ret = typeof window === 'undefined' ? null : window;
|
|
1744
1829
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1745
1830
|
},
|
|
1746
|
-
|
|
1831
|
+
__wbg_status_1ae443dc56281de7: function(arg0) {
|
|
1747
1832
|
const ret = arg0.status;
|
|
1748
1833
|
return ret;
|
|
1749
1834
|
},
|
|
1750
|
-
|
|
1835
|
+
__wbg_subarray_035d32bb24a7d55d: function(arg0, arg1, arg2) {
|
|
1751
1836
|
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
1752
1837
|
return ret;
|
|
1753
1838
|
},
|
|
1754
|
-
|
|
1839
|
+
__wbg_text_6d3a70da69d27961: function() { return handleError(function (arg0) {
|
|
1755
1840
|
const ret = arg0.text();
|
|
1756
1841
|
return ret;
|
|
1757
1842
|
}, arguments); },
|
|
1758
|
-
|
|
1759
|
-
const ret = arg0.then(arg1);
|
|
1843
|
+
__wbg_then_0150352e4ad20344: function(arg0, arg1, arg2) {
|
|
1844
|
+
const ret = arg0.then(arg1, arg2);
|
|
1760
1845
|
return ret;
|
|
1761
1846
|
},
|
|
1762
|
-
|
|
1763
|
-
const ret = arg0.then(arg1
|
|
1847
|
+
__wbg_then_5160486c67ddb98a: function(arg0, arg1) {
|
|
1848
|
+
const ret = arg0.then(arg1);
|
|
1764
1849
|
return ret;
|
|
1765
1850
|
},
|
|
1766
|
-
|
|
1851
|
+
__wbg_toString_9e7353a77cb415a2: function(arg0) {
|
|
1767
1852
|
const ret = arg0.toString();
|
|
1768
1853
|
return ret;
|
|
1769
1854
|
},
|
|
1770
|
-
|
|
1855
|
+
__wbg_trace_6bf63295328ed5f4: function(arg0) {
|
|
1771
1856
|
console.trace(...arg0);
|
|
1772
1857
|
},
|
|
1773
|
-
|
|
1858
|
+
__wbg_url_c6d54634d7005dd1: function(arg0, arg1) {
|
|
1774
1859
|
const ret = arg1.url;
|
|
1775
1860
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1776
1861
|
const len1 = WASM_VECTOR_LEN;
|
|
1777
1862
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1778
1863
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1779
1864
|
},
|
|
1780
|
-
|
|
1865
|
+
__wbg_value_d5b248ce8419bd1b: function(arg0) {
|
|
1781
1866
|
const ret = arg0.value;
|
|
1782
1867
|
return ret;
|
|
1783
1868
|
},
|
|
@@ -1785,31 +1870,31 @@ function __wbg_get_imports() {
|
|
|
1785
1870
|
const ret = arg0.versions;
|
|
1786
1871
|
return ret;
|
|
1787
1872
|
},
|
|
1788
|
-
|
|
1873
|
+
__wbg_view_38a930844c964103: function(arg0) {
|
|
1789
1874
|
const ret = arg0.view;
|
|
1790
1875
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1791
1876
|
},
|
|
1792
|
-
|
|
1877
|
+
__wbg_warn_eb29a0759e003ef2: function(arg0) {
|
|
1793
1878
|
console.warn(...arg0);
|
|
1794
1879
|
},
|
|
1795
1880
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
1796
|
-
// Cast intrinsic for `Closure(Closure {
|
|
1797
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1881
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 2210, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1882
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__haed62cf3e2984162);
|
|
1798
1883
|
return ret;
|
|
1799
1884
|
},
|
|
1800
1885
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
1801
|
-
// Cast intrinsic for `Closure(Closure {
|
|
1802
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1886
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 639, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1887
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h7bfdbb08164f06ae);
|
|
1803
1888
|
return ret;
|
|
1804
1889
|
},
|
|
1805
1890
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
1806
|
-
// Cast intrinsic for `Closure(Closure {
|
|
1807
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1891
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 595, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1892
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h57b5907d3b936f99);
|
|
1808
1893
|
return ret;
|
|
1809
1894
|
},
|
|
1810
1895
|
__wbindgen_cast_0000000000000004: function(arg0, arg1) {
|
|
1811
|
-
// Cast intrinsic for `Closure(Closure {
|
|
1812
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1896
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 753, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1897
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__hc120bfaa77467242);
|
|
1813
1898
|
return ret;
|
|
1814
1899
|
},
|
|
1815
1900
|
__wbindgen_cast_0000000000000005: function(arg0) {
|
|
@@ -1853,27 +1938,27 @@ function __wbg_get_imports() {
|
|
|
1853
1938
|
};
|
|
1854
1939
|
}
|
|
1855
1940
|
|
|
1856
|
-
function
|
|
1857
|
-
wasm.
|
|
1941
|
+
function wasm_bindgen__convert__closures_____invoke__h57b5907d3b936f99(arg0, arg1) {
|
|
1942
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h57b5907d3b936f99(arg0, arg1);
|
|
1858
1943
|
}
|
|
1859
1944
|
|
|
1860
|
-
function
|
|
1861
|
-
wasm.
|
|
1945
|
+
function wasm_bindgen__convert__closures_____invoke__hc120bfaa77467242(arg0, arg1) {
|
|
1946
|
+
wasm.wasm_bindgen__convert__closures_____invoke__hc120bfaa77467242(arg0, arg1);
|
|
1862
1947
|
}
|
|
1863
1948
|
|
|
1864
|
-
function
|
|
1865
|
-
wasm.
|
|
1949
|
+
function wasm_bindgen__convert__closures_____invoke__h7bfdbb08164f06ae(arg0, arg1, arg2) {
|
|
1950
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h7bfdbb08164f06ae(arg0, arg1, arg2);
|
|
1866
1951
|
}
|
|
1867
1952
|
|
|
1868
|
-
function
|
|
1869
|
-
const ret = wasm.
|
|
1953
|
+
function wasm_bindgen__convert__closures_____invoke__haed62cf3e2984162(arg0, arg1, arg2) {
|
|
1954
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__haed62cf3e2984162(arg0, arg1, arg2);
|
|
1870
1955
|
if (ret[1]) {
|
|
1871
1956
|
throw takeFromExternrefTable0(ret[0]);
|
|
1872
1957
|
}
|
|
1873
1958
|
}
|
|
1874
1959
|
|
|
1875
|
-
function
|
|
1876
|
-
wasm.
|
|
1960
|
+
function wasm_bindgen__convert__closures_____invoke__h7b228b9e08b1988a(arg0, arg1, arg2, arg3) {
|
|
1961
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h7b228b9e08b1988a(arg0, arg1, arg2, arg3);
|
|
1877
1962
|
}
|
|
1878
1963
|
|
|
1879
1964
|
|
|
@@ -1941,7 +2026,7 @@ function _assertClass(instance, klass) {
|
|
|
1941
2026
|
|
|
1942
2027
|
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
1943
2028
|
? { register: () => {}, unregister: () => {} }
|
|
1944
|
-
: new FinalizationRegistry(state =>
|
|
2029
|
+
: new FinalizationRegistry(state => wasm.__wbindgen_destroy_closure(state.a, state.b));
|
|
1945
2030
|
|
|
1946
2031
|
function debugString(val) {
|
|
1947
2032
|
// primitive types
|
|
@@ -2058,8 +2143,8 @@ function isLikeNone(x) {
|
|
|
2058
2143
|
return x === undefined || x === null;
|
|
2059
2144
|
}
|
|
2060
2145
|
|
|
2061
|
-
function makeMutClosure(arg0, arg1,
|
|
2062
|
-
const state = { a: arg0, b: arg1, cnt: 1
|
|
2146
|
+
function makeMutClosure(arg0, arg1, f) {
|
|
2147
|
+
const state = { a: arg0, b: arg1, cnt: 1 };
|
|
2063
2148
|
const real = (...args) => {
|
|
2064
2149
|
|
|
2065
2150
|
// First up with a closure we increment the internal reference
|
|
@@ -2077,7 +2162,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
2077
2162
|
};
|
|
2078
2163
|
real._wbg_cb_unref = () => {
|
|
2079
2164
|
if (--state.cnt === 0) {
|
|
2080
|
-
|
|
2165
|
+
wasm.__wbindgen_destroy_closure(state.a, state.b);
|
|
2081
2166
|
state.a = 0;
|
|
2082
2167
|
CLOSURE_DTORS.unregister(state);
|
|
2083
2168
|
}
|
|
@@ -2131,7 +2216,15 @@ function takeFromExternrefTable0(idx) {
|
|
|
2131
2216
|
|
|
2132
2217
|
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
2133
2218
|
cachedTextDecoder.decode();
|
|
2219
|
+
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
2220
|
+
let numBytesDecoded = 0;
|
|
2134
2221
|
function decodeText(ptr, len) {
|
|
2222
|
+
numBytesDecoded += len;
|
|
2223
|
+
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
2224
|
+
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
2225
|
+
cachedTextDecoder.decode();
|
|
2226
|
+
numBytesDecoded = len;
|
|
2227
|
+
}
|
|
2135
2228
|
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
2136
2229
|
}
|
|
2137
2230
|
|
|
@@ -2150,8 +2243,95 @@ if (!('encodeInto' in cachedTextEncoder)) {
|
|
|
2150
2243
|
|
|
2151
2244
|
let WASM_VECTOR_LEN = 0;
|
|
2152
2245
|
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2246
|
+
let wasmModule, wasm;
|
|
2247
|
+
function __wbg_finalize_init(instance, module) {
|
|
2248
|
+
wasm = instance.exports;
|
|
2249
|
+
wasmModule = module;
|
|
2250
|
+
cachedDataViewMemory0 = null;
|
|
2251
|
+
cachedUint8ArrayMemory0 = null;
|
|
2252
|
+
wasm.__wbindgen_start();
|
|
2253
|
+
return wasm;
|
|
2254
|
+
}
|
|
2255
|
+
|
|
2256
|
+
async function __wbg_load(module, imports) {
|
|
2257
|
+
if (typeof Response === 'function' && module instanceof Response) {
|
|
2258
|
+
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
|
2259
|
+
try {
|
|
2260
|
+
return await WebAssembly.instantiateStreaming(module, imports);
|
|
2261
|
+
} catch (e) {
|
|
2262
|
+
const validResponse = module.ok && expectedResponseType(module.type);
|
|
2263
|
+
|
|
2264
|
+
if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
|
|
2265
|
+
console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
|
|
2266
|
+
|
|
2267
|
+
} else { throw e; }
|
|
2268
|
+
}
|
|
2269
|
+
}
|
|
2270
|
+
|
|
2271
|
+
const bytes = await module.arrayBuffer();
|
|
2272
|
+
return await WebAssembly.instantiate(bytes, imports);
|
|
2273
|
+
} else {
|
|
2274
|
+
const instance = await WebAssembly.instantiate(module, imports);
|
|
2275
|
+
|
|
2276
|
+
if (instance instanceof WebAssembly.Instance) {
|
|
2277
|
+
return { instance, module };
|
|
2278
|
+
} else {
|
|
2279
|
+
return instance;
|
|
2280
|
+
}
|
|
2281
|
+
}
|
|
2282
|
+
|
|
2283
|
+
function expectedResponseType(type) {
|
|
2284
|
+
switch (type) {
|
|
2285
|
+
case 'basic': case 'cors': case 'default': return true;
|
|
2286
|
+
}
|
|
2287
|
+
return false;
|
|
2288
|
+
}
|
|
2289
|
+
}
|
|
2290
|
+
|
|
2291
|
+
function initSync(module) {
|
|
2292
|
+
if (wasm !== undefined) return wasm;
|
|
2293
|
+
|
|
2294
|
+
|
|
2295
|
+
if (module !== undefined) {
|
|
2296
|
+
if (Object.getPrototypeOf(module) === Object.prototype) {
|
|
2297
|
+
({module} = module)
|
|
2298
|
+
} else {
|
|
2299
|
+
console.warn('using deprecated parameters for `initSync()`; pass a single object instead')
|
|
2300
|
+
}
|
|
2301
|
+
}
|
|
2302
|
+
|
|
2303
|
+
const imports = __wbg_get_imports();
|
|
2304
|
+
if (!(module instanceof WebAssembly.Module)) {
|
|
2305
|
+
module = new WebAssembly.Module(module);
|
|
2306
|
+
}
|
|
2307
|
+
const instance = new WebAssembly.Instance(module, imports);
|
|
2308
|
+
return __wbg_finalize_init(instance, module);
|
|
2309
|
+
}
|
|
2310
|
+
|
|
2311
|
+
async function __wbg_init(module_or_path) {
|
|
2312
|
+
if (wasm !== undefined) return wasm;
|
|
2313
|
+
|
|
2314
|
+
|
|
2315
|
+
if (module_or_path !== undefined) {
|
|
2316
|
+
if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
|
|
2317
|
+
({module_or_path} = module_or_path)
|
|
2318
|
+
} else {
|
|
2319
|
+
console.warn('using deprecated parameters for the initialization function; pass a single object instead')
|
|
2320
|
+
}
|
|
2321
|
+
}
|
|
2322
|
+
|
|
2323
|
+
if (module_or_path === undefined) {
|
|
2324
|
+
module_or_path = new URL('cedarling_wasm_bg.wasm', import.meta.url);
|
|
2325
|
+
}
|
|
2326
|
+
const imports = __wbg_get_imports();
|
|
2327
|
+
|
|
2328
|
+
if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {
|
|
2329
|
+
module_or_path = fetch(module_or_path);
|
|
2330
|
+
}
|
|
2331
|
+
|
|
2332
|
+
const { instance, module } = await __wbg_load(await module_or_path, imports);
|
|
2333
|
+
|
|
2334
|
+
return __wbg_finalize_init(instance, module);
|
|
2335
|
+
}
|
|
2336
|
+
|
|
2337
|
+
export { initSync, __wbg_init as default };
|