@janssenproject/cedarling_wasm 1.14.0-nodejs → 1.15.0-nodejs
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 +39 -0
- package/cedarling_wasm.d.ts +41 -28
- package/cedarling_wasm.js +406 -307
- package/cedarling_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/cedarling_wasm.js
CHANGED
|
@@ -2,94 +2,21 @@
|
|
|
2
2
|
let imports = {};
|
|
3
3
|
imports['__wbindgen_placeholder__'] = module.exports;
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
10
|
-
}
|
|
11
|
-
return cachedUint8ArrayMemory0;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
15
|
-
|
|
16
|
-
cachedTextDecoder.decode();
|
|
17
|
-
|
|
18
|
-
function decodeText(ptr, len) {
|
|
19
|
-
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
function getStringFromWasm0(ptr, len) {
|
|
23
|
-
ptr = ptr >>> 0;
|
|
24
|
-
return decodeText(ptr, len);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
let WASM_VECTOR_LEN = 0;
|
|
28
|
-
|
|
29
|
-
const cachedTextEncoder = new TextEncoder();
|
|
30
|
-
|
|
31
|
-
if (!('encodeInto' in cachedTextEncoder)) {
|
|
32
|
-
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
33
|
-
const buf = cachedTextEncoder.encode(arg);
|
|
34
|
-
view.set(buf);
|
|
35
|
-
return {
|
|
36
|
-
read: arg.length,
|
|
37
|
-
written: buf.length
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
function passStringToWasm0(arg, malloc, realloc) {
|
|
43
|
-
|
|
44
|
-
if (realloc === undefined) {
|
|
45
|
-
const buf = cachedTextEncoder.encode(arg);
|
|
46
|
-
const ptr = malloc(buf.length, 1) >>> 0;
|
|
47
|
-
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
48
|
-
WASM_VECTOR_LEN = buf.length;
|
|
49
|
-
return ptr;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
let len = arg.length;
|
|
53
|
-
let ptr = malloc(len, 1) >>> 0;
|
|
54
|
-
|
|
55
|
-
const mem = getUint8ArrayMemory0();
|
|
56
|
-
|
|
57
|
-
let offset = 0;
|
|
58
|
-
|
|
59
|
-
for (; offset < len; offset++) {
|
|
60
|
-
const code = arg.charCodeAt(offset);
|
|
61
|
-
if (code > 0x7F) break;
|
|
62
|
-
mem[ptr + offset] = code;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
if (offset !== len) {
|
|
66
|
-
if (offset !== 0) {
|
|
67
|
-
arg = arg.slice(offset);
|
|
68
|
-
}
|
|
69
|
-
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
70
|
-
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
71
|
-
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
72
|
-
|
|
73
|
-
offset += ret.written;
|
|
74
|
-
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
WASM_VECTOR_LEN = offset;
|
|
78
|
-
return ptr;
|
|
5
|
+
function addToExternrefTable0(obj) {
|
|
6
|
+
const idx = wasm.__externref_table_alloc();
|
|
7
|
+
wasm.__wbindgen_externrefs.set(idx, obj);
|
|
8
|
+
return idx;
|
|
79
9
|
}
|
|
80
10
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
85
|
-
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
11
|
+
function _assertClass(instance, klass) {
|
|
12
|
+
if (!(instance instanceof klass)) {
|
|
13
|
+
throw new Error(`expected instance of ${klass.name}`);
|
|
86
14
|
}
|
|
87
|
-
return cachedDataViewMemory0;
|
|
88
15
|
}
|
|
89
16
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
17
|
+
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
18
|
+
? { register: () => {}, unregister: () => {} }
|
|
19
|
+
: new FinalizationRegistry(state => state.dtor(state.a, state.b));
|
|
93
20
|
|
|
94
21
|
function debugString(val) {
|
|
95
22
|
// primitive types
|
|
@@ -156,10 +83,41 @@ function debugString(val) {
|
|
|
156
83
|
return className;
|
|
157
84
|
}
|
|
158
85
|
|
|
159
|
-
function
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
86
|
+
function getArrayJsValueFromWasm0(ptr, len) {
|
|
87
|
+
ptr = ptr >>> 0;
|
|
88
|
+
const mem = getDataViewMemory0();
|
|
89
|
+
const result = [];
|
|
90
|
+
for (let i = ptr; i < ptr + 4 * len; i += 4) {
|
|
91
|
+
result.push(wasm.__wbindgen_externrefs.get(mem.getUint32(i, true)));
|
|
92
|
+
}
|
|
93
|
+
wasm.__externref_drop_slice(ptr, len);
|
|
94
|
+
return result;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
98
|
+
ptr = ptr >>> 0;
|
|
99
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
let cachedDataViewMemory0 = null;
|
|
103
|
+
function getDataViewMemory0() {
|
|
104
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
105
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
106
|
+
}
|
|
107
|
+
return cachedDataViewMemory0;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
function getStringFromWasm0(ptr, len) {
|
|
111
|
+
ptr = ptr >>> 0;
|
|
112
|
+
return decodeText(ptr, len);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
let cachedUint8ArrayMemory0 = null;
|
|
116
|
+
function getUint8ArrayMemory0() {
|
|
117
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
118
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
119
|
+
}
|
|
120
|
+
return cachedUint8ArrayMemory0;
|
|
163
121
|
}
|
|
164
122
|
|
|
165
123
|
function handleError(f, args) {
|
|
@@ -171,15 +129,10 @@ function handleError(f, args) {
|
|
|
171
129
|
}
|
|
172
130
|
}
|
|
173
131
|
|
|
174
|
-
function
|
|
175
|
-
|
|
176
|
-
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
132
|
+
function isLikeNone(x) {
|
|
133
|
+
return x === undefined || x === null;
|
|
177
134
|
}
|
|
178
135
|
|
|
179
|
-
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
180
|
-
? { register: () => {}, unregister: () => {} }
|
|
181
|
-
: new FinalizationRegistry(state => state.dtor(state.a, state.b));
|
|
182
|
-
|
|
183
136
|
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
184
137
|
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
185
138
|
const real = (...args) => {
|
|
@@ -207,16 +160,43 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
207
160
|
CLOSURE_DTORS.register(real, state, state);
|
|
208
161
|
return real;
|
|
209
162
|
}
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
163
|
+
|
|
164
|
+
function passStringToWasm0(arg, malloc, realloc) {
|
|
165
|
+
if (realloc === undefined) {
|
|
166
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
167
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
168
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
169
|
+
WASM_VECTOR_LEN = buf.length;
|
|
170
|
+
return ptr;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
let len = arg.length;
|
|
174
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
175
|
+
|
|
176
|
+
const mem = getUint8ArrayMemory0();
|
|
177
|
+
|
|
178
|
+
let offset = 0;
|
|
179
|
+
|
|
180
|
+
for (; offset < len; offset++) {
|
|
181
|
+
const code = arg.charCodeAt(offset);
|
|
182
|
+
if (code > 0x7F) break;
|
|
183
|
+
mem[ptr + offset] = code;
|
|
184
|
+
}
|
|
185
|
+
if (offset !== len) {
|
|
186
|
+
if (offset !== 0) {
|
|
187
|
+
arg = arg.slice(offset);
|
|
188
|
+
}
|
|
189
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
190
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
191
|
+
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
192
|
+
|
|
193
|
+
offset += ret.written;
|
|
194
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
WASM_VECTOR_LEN = offset;
|
|
198
|
+
return ptr;
|
|
199
|
+
}
|
|
220
200
|
|
|
221
201
|
function takeFromExternrefTable0(idx) {
|
|
222
202
|
const value = wasm.__wbindgen_externrefs.get(idx);
|
|
@@ -224,32 +204,37 @@ function takeFromExternrefTable0(idx) {
|
|
|
224
204
|
return value;
|
|
225
205
|
}
|
|
226
206
|
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
for (let i = ptr; i < ptr + 4 * len; i += 4) {
|
|
232
|
-
result.push(wasm.__wbindgen_externrefs.get(mem.getUint32(i, true)));
|
|
233
|
-
}
|
|
234
|
-
wasm.__externref_drop_slice(ptr, len);
|
|
235
|
-
return result;
|
|
207
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
208
|
+
cachedTextDecoder.decode();
|
|
209
|
+
function decodeText(ptr, len) {
|
|
210
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
236
211
|
}
|
|
237
212
|
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
213
|
+
const cachedTextEncoder = new TextEncoder();
|
|
214
|
+
|
|
215
|
+
if (!('encodeInto' in cachedTextEncoder)) {
|
|
216
|
+
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
217
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
218
|
+
view.set(buf);
|
|
219
|
+
return {
|
|
220
|
+
read: arg.length,
|
|
221
|
+
written: buf.length
|
|
222
|
+
};
|
|
241
223
|
}
|
|
242
224
|
}
|
|
243
|
-
|
|
244
|
-
|
|
225
|
+
|
|
226
|
+
let WASM_VECTOR_LEN = 0;
|
|
227
|
+
|
|
228
|
+
function wasm_bindgen__convert__closures_____invoke__h7f8b71809a8d7577(arg0, arg1, arg2) {
|
|
229
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h7f8b71809a8d7577(arg0, arg1, arg2);
|
|
245
230
|
}
|
|
246
231
|
|
|
247
|
-
function
|
|
248
|
-
wasm.
|
|
232
|
+
function wasm_bindgen__convert__closures_____invoke__h8a10b0fb25c32ce7(arg0, arg1) {
|
|
233
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h8a10b0fb25c32ce7(arg0, arg1);
|
|
249
234
|
}
|
|
250
235
|
|
|
251
|
-
function
|
|
252
|
-
wasm.
|
|
236
|
+
function wasm_bindgen__convert__closures_____invoke__h3a7d0d99d266e2f8(arg0, arg1, arg2, arg3) {
|
|
237
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h3a7d0d99d266e2f8(arg0, arg1, arg2, arg3);
|
|
253
238
|
}
|
|
254
239
|
|
|
255
240
|
const __wbindgen_enum_RequestCache = ["default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached"];
|
|
@@ -261,12 +246,36 @@ const __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate
|
|
|
261
246
|
const AuthorizeResultFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
262
247
|
? { register: () => {}, unregister: () => {} }
|
|
263
248
|
: new FinalizationRegistry(ptr => wasm.__wbg_authorizeresult_free(ptr >>> 0, 1));
|
|
249
|
+
|
|
250
|
+
const AuthorizeResultResponseFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
251
|
+
? { register: () => {}, unregister: () => {} }
|
|
252
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_authorizeresultresponse_free(ptr >>> 0, 1));
|
|
253
|
+
|
|
254
|
+
const CedarlingFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
255
|
+
? { register: () => {}, unregister: () => {} }
|
|
256
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_cedarling_free(ptr >>> 0, 1));
|
|
257
|
+
|
|
258
|
+
const DiagnosticsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
259
|
+
? { register: () => {}, unregister: () => {} }
|
|
260
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_diagnostics_free(ptr >>> 0, 1));
|
|
261
|
+
|
|
262
|
+
const JsJsonLogicFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
263
|
+
? { register: () => {}, unregister: () => {} }
|
|
264
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_jsjsonlogic_free(ptr >>> 0, 1));
|
|
265
|
+
|
|
266
|
+
const MultiIssuerAuthorizeResultFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
267
|
+
? { register: () => {}, unregister: () => {} }
|
|
268
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_multiissuerauthorizeresult_free(ptr >>> 0, 1));
|
|
269
|
+
|
|
270
|
+
const PolicyEvaluationErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
271
|
+
? { register: () => {}, unregister: () => {} }
|
|
272
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_policyevaluationerror_free(ptr >>> 0, 1));
|
|
273
|
+
|
|
264
274
|
/**
|
|
265
275
|
* A WASM wrapper for the Rust `cedarling::AuthorizeResult` struct.
|
|
266
276
|
* Represents the result of an authorization request.
|
|
267
277
|
*/
|
|
268
278
|
class AuthorizeResult {
|
|
269
|
-
|
|
270
279
|
static __wrap(ptr) {
|
|
271
280
|
ptr = ptr >>> 0;
|
|
272
281
|
const obj = Object.create(AuthorizeResult.prototype);
|
|
@@ -274,14 +283,12 @@ class AuthorizeResult {
|
|
|
274
283
|
AuthorizeResultFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
275
284
|
return obj;
|
|
276
285
|
}
|
|
277
|
-
|
|
278
286
|
__destroy_into_raw() {
|
|
279
287
|
const ptr = this.__wbg_ptr;
|
|
280
288
|
this.__wbg_ptr = 0;
|
|
281
289
|
AuthorizeResultFinalization.unregister(this);
|
|
282
290
|
return ptr;
|
|
283
291
|
}
|
|
284
|
-
|
|
285
292
|
free() {
|
|
286
293
|
const ptr = this.__destroy_into_raw();
|
|
287
294
|
wasm.__wbg_authorizeresult_free(ptr, 0);
|
|
@@ -402,18 +409,13 @@ class AuthorizeResult {
|
|
|
402
409
|
}
|
|
403
410
|
}
|
|
404
411
|
if (Symbol.dispose) AuthorizeResult.prototype[Symbol.dispose] = AuthorizeResult.prototype.free;
|
|
405
|
-
|
|
406
412
|
exports.AuthorizeResult = AuthorizeResult;
|
|
407
413
|
|
|
408
|
-
const AuthorizeResultResponseFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
409
|
-
? { register: () => {}, unregister: () => {} }
|
|
410
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_authorizeresultresponse_free(ptr >>> 0, 1));
|
|
411
414
|
/**
|
|
412
415
|
* A WASM wrapper for the Rust `cedar_policy::Response` struct.
|
|
413
416
|
* Represents the result of an authorization request.
|
|
414
417
|
*/
|
|
415
418
|
class AuthorizeResultResponse {
|
|
416
|
-
|
|
417
419
|
static __wrap(ptr) {
|
|
418
420
|
ptr = ptr >>> 0;
|
|
419
421
|
const obj = Object.create(AuthorizeResultResponse.prototype);
|
|
@@ -421,14 +423,12 @@ class AuthorizeResultResponse {
|
|
|
421
423
|
AuthorizeResultResponseFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
422
424
|
return obj;
|
|
423
425
|
}
|
|
424
|
-
|
|
425
426
|
__destroy_into_raw() {
|
|
426
427
|
const ptr = this.__wbg_ptr;
|
|
427
428
|
this.__wbg_ptr = 0;
|
|
428
429
|
AuthorizeResultResponseFinalization.unregister(this);
|
|
429
430
|
return ptr;
|
|
430
431
|
}
|
|
431
|
-
|
|
432
432
|
free() {
|
|
433
433
|
const ptr = this.__destroy_into_raw();
|
|
434
434
|
wasm.__wbg_authorizeresultresponse_free(ptr, 0);
|
|
@@ -451,17 +451,12 @@ class AuthorizeResultResponse {
|
|
|
451
451
|
}
|
|
452
452
|
}
|
|
453
453
|
if (Symbol.dispose) AuthorizeResultResponse.prototype[Symbol.dispose] = AuthorizeResultResponse.prototype.free;
|
|
454
|
-
|
|
455
454
|
exports.AuthorizeResultResponse = AuthorizeResultResponse;
|
|
456
455
|
|
|
457
|
-
const CedarlingFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
458
|
-
? { register: () => {}, unregister: () => {} }
|
|
459
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_cedarling_free(ptr >>> 0, 1));
|
|
460
456
|
/**
|
|
461
457
|
* The instance of the Cedarling application.
|
|
462
458
|
*/
|
|
463
459
|
class Cedarling {
|
|
464
|
-
|
|
465
460
|
static __wrap(ptr) {
|
|
466
461
|
ptr = ptr >>> 0;
|
|
467
462
|
const obj = Object.create(Cedarling.prototype);
|
|
@@ -469,14 +464,12 @@ class Cedarling {
|
|
|
469
464
|
CedarlingFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
470
465
|
return obj;
|
|
471
466
|
}
|
|
472
|
-
|
|
473
467
|
__destroy_into_raw() {
|
|
474
468
|
const ptr = this.__wbg_ptr;
|
|
475
469
|
this.__wbg_ptr = 0;
|
|
476
470
|
CedarlingFinalization.unregister(this);
|
|
477
471
|
return ptr;
|
|
478
472
|
}
|
|
479
|
-
|
|
480
473
|
free() {
|
|
481
474
|
const ptr = this.__destroy_into_raw();
|
|
482
475
|
wasm.__wbg_cedarling_free(ptr, 0);
|
|
@@ -521,6 +514,16 @@ class Cedarling {
|
|
|
521
514
|
const ret = wasm.cedarling_authorize_unsigned(this.__wbg_ptr, request);
|
|
522
515
|
return ret;
|
|
523
516
|
}
|
|
517
|
+
/**
|
|
518
|
+
* Authorize multi-issuer request.
|
|
519
|
+
* Makes authorization decision based on multiple JWT tokens from different issuers
|
|
520
|
+
* @param {any} request
|
|
521
|
+
* @returns {Promise<MultiIssuerAuthorizeResult>}
|
|
522
|
+
*/
|
|
523
|
+
authorize_multi_issuer(request) {
|
|
524
|
+
const ret = wasm.cedarling_authorize_multi_issuer(this.__wbg_ptr, request);
|
|
525
|
+
return ret;
|
|
526
|
+
}
|
|
524
527
|
/**
|
|
525
528
|
* Get logs and remove them from the storage.
|
|
526
529
|
* Returns `Array` of `Map`
|
|
@@ -622,12 +625,8 @@ class Cedarling {
|
|
|
622
625
|
}
|
|
623
626
|
}
|
|
624
627
|
if (Symbol.dispose) Cedarling.prototype[Symbol.dispose] = Cedarling.prototype.free;
|
|
625
|
-
|
|
626
628
|
exports.Cedarling = Cedarling;
|
|
627
629
|
|
|
628
|
-
const DiagnosticsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
629
|
-
? { register: () => {}, unregister: () => {} }
|
|
630
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_diagnostics_free(ptr >>> 0, 1));
|
|
631
630
|
/**
|
|
632
631
|
* Diagnostics
|
|
633
632
|
* ===========
|
|
@@ -635,7 +634,6 @@ const DiagnosticsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
635
634
|
* Provides detailed information about how a policy decision was made, including policies that contributed to the decision and any errors encountered during evaluation.
|
|
636
635
|
*/
|
|
637
636
|
class Diagnostics {
|
|
638
|
-
|
|
639
637
|
static __wrap(ptr) {
|
|
640
638
|
ptr = ptr >>> 0;
|
|
641
639
|
const obj = Object.create(Diagnostics.prototype);
|
|
@@ -643,14 +641,12 @@ class Diagnostics {
|
|
|
643
641
|
DiagnosticsFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
644
642
|
return obj;
|
|
645
643
|
}
|
|
646
|
-
|
|
647
644
|
__destroy_into_raw() {
|
|
648
645
|
const ptr = this.__wbg_ptr;
|
|
649
646
|
this.__wbg_ptr = 0;
|
|
650
647
|
DiagnosticsFinalization.unregister(this);
|
|
651
648
|
return ptr;
|
|
652
649
|
}
|
|
653
|
-
|
|
654
650
|
free() {
|
|
655
651
|
const ptr = this.__destroy_into_raw();
|
|
656
652
|
wasm.__wbg_diagnostics_free(ptr, 0);
|
|
@@ -681,22 +677,15 @@ class Diagnostics {
|
|
|
681
677
|
}
|
|
682
678
|
}
|
|
683
679
|
if (Symbol.dispose) Diagnostics.prototype[Symbol.dispose] = Diagnostics.prototype.free;
|
|
684
|
-
|
|
685
680
|
exports.Diagnostics = Diagnostics;
|
|
686
681
|
|
|
687
|
-
const JsJsonLogicFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
688
|
-
? { register: () => {}, unregister: () => {} }
|
|
689
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_jsjsonlogic_free(ptr >>> 0, 1));
|
|
690
|
-
|
|
691
682
|
class JsJsonLogic {
|
|
692
|
-
|
|
693
683
|
__destroy_into_raw() {
|
|
694
684
|
const ptr = this.__wbg_ptr;
|
|
695
685
|
this.__wbg_ptr = 0;
|
|
696
686
|
JsJsonLogicFinalization.unregister(this);
|
|
697
687
|
return ptr;
|
|
698
688
|
}
|
|
699
|
-
|
|
700
689
|
free() {
|
|
701
690
|
const ptr = this.__destroy_into_raw();
|
|
702
691
|
wasm.__wbg_jsjsonlogic_free(ptr, 0);
|
|
@@ -721,12 +710,111 @@ class JsJsonLogic {
|
|
|
721
710
|
}
|
|
722
711
|
}
|
|
723
712
|
if (Symbol.dispose) JsJsonLogic.prototype[Symbol.dispose] = JsJsonLogic.prototype.free;
|
|
724
|
-
|
|
725
713
|
exports.JsJsonLogic = JsJsonLogic;
|
|
726
714
|
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
715
|
+
/**
|
|
716
|
+
* A WASM wrapper for the Rust `cedarling::MultiIssuerAuthorizeResult` struct.
|
|
717
|
+
* Represents the result of a multi-issuer authorization request.
|
|
718
|
+
*/
|
|
719
|
+
class MultiIssuerAuthorizeResult {
|
|
720
|
+
static __wrap(ptr) {
|
|
721
|
+
ptr = ptr >>> 0;
|
|
722
|
+
const obj = Object.create(MultiIssuerAuthorizeResult.prototype);
|
|
723
|
+
obj.__wbg_ptr = ptr;
|
|
724
|
+
MultiIssuerAuthorizeResultFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
725
|
+
return obj;
|
|
726
|
+
}
|
|
727
|
+
__destroy_into_raw() {
|
|
728
|
+
const ptr = this.__wbg_ptr;
|
|
729
|
+
this.__wbg_ptr = 0;
|
|
730
|
+
MultiIssuerAuthorizeResultFinalization.unregister(this);
|
|
731
|
+
return ptr;
|
|
732
|
+
}
|
|
733
|
+
free() {
|
|
734
|
+
const ptr = this.__destroy_into_raw();
|
|
735
|
+
wasm.__wbg_multiissuerauthorizeresult_free(ptr, 0);
|
|
736
|
+
}
|
|
737
|
+
/**
|
|
738
|
+
* Result of Cedar policy authorization
|
|
739
|
+
* @returns {AuthorizeResultResponse}
|
|
740
|
+
*/
|
|
741
|
+
get response() {
|
|
742
|
+
const ret = wasm.__wbg_get_multiissuerauthorizeresult_response(this.__wbg_ptr);
|
|
743
|
+
return AuthorizeResultResponse.__wrap(ret);
|
|
744
|
+
}
|
|
745
|
+
/**
|
|
746
|
+
* Result of Cedar policy authorization
|
|
747
|
+
* @param {AuthorizeResultResponse} arg0
|
|
748
|
+
*/
|
|
749
|
+
set response(arg0) {
|
|
750
|
+
_assertClass(arg0, AuthorizeResultResponse);
|
|
751
|
+
var ptr0 = arg0.__destroy_into_raw();
|
|
752
|
+
wasm.__wbg_set_multiissuerauthorizeresult_response(this.__wbg_ptr, ptr0);
|
|
753
|
+
}
|
|
754
|
+
/**
|
|
755
|
+
* Result of authorization
|
|
756
|
+
* true means `ALLOW`
|
|
757
|
+
* false means `Deny`
|
|
758
|
+
* @returns {boolean}
|
|
759
|
+
*/
|
|
760
|
+
get decision() {
|
|
761
|
+
const ret = wasm.__wbg_get_multiissuerauthorizeresult_decision(this.__wbg_ptr);
|
|
762
|
+
return ret !== 0;
|
|
763
|
+
}
|
|
764
|
+
/**
|
|
765
|
+
* Result of authorization
|
|
766
|
+
* true means `ALLOW`
|
|
767
|
+
* false means `Deny`
|
|
768
|
+
* @param {boolean} arg0
|
|
769
|
+
*/
|
|
770
|
+
set decision(arg0) {
|
|
771
|
+
wasm.__wbg_set_multiissuerauthorizeresult_decision(this.__wbg_ptr, arg0);
|
|
772
|
+
}
|
|
773
|
+
/**
|
|
774
|
+
* Request ID of the authorization request
|
|
775
|
+
* @returns {string}
|
|
776
|
+
*/
|
|
777
|
+
get request_id() {
|
|
778
|
+
let deferred1_0;
|
|
779
|
+
let deferred1_1;
|
|
780
|
+
try {
|
|
781
|
+
const ret = wasm.__wbg_get_multiissuerauthorizeresult_request_id(this.__wbg_ptr);
|
|
782
|
+
deferred1_0 = ret[0];
|
|
783
|
+
deferred1_1 = ret[1];
|
|
784
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
785
|
+
} finally {
|
|
786
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
787
|
+
}
|
|
788
|
+
}
|
|
789
|
+
/**
|
|
790
|
+
* Request ID of the authorization request
|
|
791
|
+
* @param {string} arg0
|
|
792
|
+
*/
|
|
793
|
+
set request_id(arg0) {
|
|
794
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
795
|
+
const len0 = WASM_VECTOR_LEN;
|
|
796
|
+
wasm.__wbg_set_multiissuerauthorizeresult_request_id(this.__wbg_ptr, ptr0, len0);
|
|
797
|
+
}
|
|
798
|
+
/**
|
|
799
|
+
* Convert `MultiIssuerAuthorizeResult` to json string value
|
|
800
|
+
* @returns {string}
|
|
801
|
+
*/
|
|
802
|
+
json_string() {
|
|
803
|
+
let deferred1_0;
|
|
804
|
+
let deferred1_1;
|
|
805
|
+
try {
|
|
806
|
+
const ret = wasm.multiissuerauthorizeresult_json_string(this.__wbg_ptr);
|
|
807
|
+
deferred1_0 = ret[0];
|
|
808
|
+
deferred1_1 = ret[1];
|
|
809
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
810
|
+
} finally {
|
|
811
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
812
|
+
}
|
|
813
|
+
}
|
|
814
|
+
}
|
|
815
|
+
if (Symbol.dispose) MultiIssuerAuthorizeResult.prototype[Symbol.dispose] = MultiIssuerAuthorizeResult.prototype.free;
|
|
816
|
+
exports.MultiIssuerAuthorizeResult = MultiIssuerAuthorizeResult;
|
|
817
|
+
|
|
730
818
|
/**
|
|
731
819
|
* PolicyEvaluationError
|
|
732
820
|
* =====================
|
|
@@ -734,7 +822,6 @@ const PolicyEvaluationErrorFinalization = (typeof FinalizationRegistry === 'unde
|
|
|
734
822
|
* Represents an error that occurred when evaluating a Cedar policy.
|
|
735
823
|
*/
|
|
736
824
|
class PolicyEvaluationError {
|
|
737
|
-
|
|
738
825
|
static __wrap(ptr) {
|
|
739
826
|
ptr = ptr >>> 0;
|
|
740
827
|
const obj = Object.create(PolicyEvaluationError.prototype);
|
|
@@ -742,14 +829,12 @@ class PolicyEvaluationError {
|
|
|
742
829
|
PolicyEvaluationErrorFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
743
830
|
return obj;
|
|
744
831
|
}
|
|
745
|
-
|
|
746
832
|
__destroy_into_raw() {
|
|
747
833
|
const ptr = this.__wbg_ptr;
|
|
748
834
|
this.__wbg_ptr = 0;
|
|
749
835
|
PolicyEvaluationErrorFinalization.unregister(this);
|
|
750
836
|
return ptr;
|
|
751
837
|
}
|
|
752
|
-
|
|
753
838
|
free() {
|
|
754
839
|
const ptr = this.__destroy_into_raw();
|
|
755
840
|
wasm.__wbg_policyevaluationerror_free(ptr, 0);
|
|
@@ -788,15 +873,26 @@ class PolicyEvaluationError {
|
|
|
788
873
|
}
|
|
789
874
|
}
|
|
790
875
|
if (Symbol.dispose) PolicyEvaluationError.prototype[Symbol.dispose] = PolicyEvaluationError.prototype.free;
|
|
791
|
-
|
|
792
876
|
exports.PolicyEvaluationError = PolicyEvaluationError;
|
|
793
877
|
|
|
794
|
-
|
|
878
|
+
/**
|
|
879
|
+
* Create a new instance of the Cedarling application.
|
|
880
|
+
* This function can take as config parameter the eather `Map` other `Object`
|
|
881
|
+
* @param {any} config
|
|
882
|
+
* @returns {Promise<Cedarling>}
|
|
883
|
+
*/
|
|
884
|
+
function init(config) {
|
|
885
|
+
const ret = wasm.init(config);
|
|
886
|
+
return ret;
|
|
887
|
+
}
|
|
888
|
+
exports.init = init;
|
|
889
|
+
|
|
890
|
+
exports.__wbg_Error_52673b7de5a0ca89 = function(arg0, arg1) {
|
|
795
891
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
796
892
|
return ret;
|
|
797
893
|
};
|
|
798
894
|
|
|
799
|
-
exports.
|
|
895
|
+
exports.__wbg_Number_2d1dcfcf4ec51736 = function(arg0) {
|
|
800
896
|
const ret = Number(arg0);
|
|
801
897
|
return ret;
|
|
802
898
|
};
|
|
@@ -809,20 +905,20 @@ exports.__wbg_String_8f0eb39a4a4c2f66 = function(arg0, arg1) {
|
|
|
809
905
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
810
906
|
};
|
|
811
907
|
|
|
812
|
-
exports.
|
|
908
|
+
exports.__wbg___wbindgen_bigint_get_as_i64_6e32f5e6aff02e1d = function(arg0, arg1) {
|
|
813
909
|
const v = arg1;
|
|
814
910
|
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
815
911
|
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
816
912
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
817
913
|
};
|
|
818
914
|
|
|
819
|
-
exports.
|
|
915
|
+
exports.__wbg___wbindgen_boolean_get_dea25b33882b895b = function(arg0) {
|
|
820
916
|
const v = arg0;
|
|
821
917
|
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
822
918
|
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
823
919
|
};
|
|
824
920
|
|
|
825
|
-
exports.
|
|
921
|
+
exports.__wbg___wbindgen_debug_string_adfb662ae34724b6 = function(arg0, arg1) {
|
|
826
922
|
const ret = debugString(arg1);
|
|
827
923
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
828
924
|
const len1 = WASM_VECTOR_LEN;
|
|
@@ -830,55 +926,55 @@ exports.__wbg___wbindgen_debug_string_df47ffb5e35e6763 = function(arg0, arg1) {
|
|
|
830
926
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
831
927
|
};
|
|
832
928
|
|
|
833
|
-
exports.
|
|
929
|
+
exports.__wbg___wbindgen_in_0d3e1e8f0c669317 = function(arg0, arg1) {
|
|
834
930
|
const ret = arg0 in arg1;
|
|
835
931
|
return ret;
|
|
836
932
|
};
|
|
837
933
|
|
|
838
|
-
exports.
|
|
934
|
+
exports.__wbg___wbindgen_is_bigint_0e1a2e3f55cfae27 = function(arg0) {
|
|
839
935
|
const ret = typeof(arg0) === 'bigint';
|
|
840
936
|
return ret;
|
|
841
937
|
};
|
|
842
938
|
|
|
843
|
-
exports.
|
|
939
|
+
exports.__wbg___wbindgen_is_function_8d400b8b1af978cd = function(arg0) {
|
|
844
940
|
const ret = typeof(arg0) === 'function';
|
|
845
941
|
return ret;
|
|
846
942
|
};
|
|
847
943
|
|
|
848
|
-
exports.
|
|
944
|
+
exports.__wbg___wbindgen_is_object_ce774f3490692386 = function(arg0) {
|
|
849
945
|
const val = arg0;
|
|
850
946
|
const ret = typeof(val) === 'object' && val !== null;
|
|
851
947
|
return ret;
|
|
852
948
|
};
|
|
853
949
|
|
|
854
|
-
exports.
|
|
950
|
+
exports.__wbg___wbindgen_is_string_704ef9c8fc131030 = function(arg0) {
|
|
855
951
|
const ret = typeof(arg0) === 'string';
|
|
856
952
|
return ret;
|
|
857
953
|
};
|
|
858
954
|
|
|
859
|
-
exports.
|
|
955
|
+
exports.__wbg___wbindgen_is_undefined_f6b95eab589e0269 = function(arg0) {
|
|
860
956
|
const ret = arg0 === undefined;
|
|
861
957
|
return ret;
|
|
862
958
|
};
|
|
863
959
|
|
|
864
|
-
exports.
|
|
960
|
+
exports.__wbg___wbindgen_jsval_eq_b6101cc9cef1fe36 = function(arg0, arg1) {
|
|
865
961
|
const ret = arg0 === arg1;
|
|
866
962
|
return ret;
|
|
867
963
|
};
|
|
868
964
|
|
|
869
|
-
exports.
|
|
965
|
+
exports.__wbg___wbindgen_jsval_loose_eq_766057600fdd1b0d = function(arg0, arg1) {
|
|
870
966
|
const ret = arg0 == arg1;
|
|
871
967
|
return ret;
|
|
872
968
|
};
|
|
873
969
|
|
|
874
|
-
exports.
|
|
970
|
+
exports.__wbg___wbindgen_number_get_9619185a74197f95 = function(arg0, arg1) {
|
|
875
971
|
const obj = arg1;
|
|
876
972
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
877
973
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
878
974
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
879
975
|
};
|
|
880
976
|
|
|
881
|
-
exports.
|
|
977
|
+
exports.__wbg___wbindgen_string_get_a2a31e16edf96e42 = function(arg0, arg1) {
|
|
882
978
|
const obj = arg1;
|
|
883
979
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
884
980
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -887,27 +983,27 @@ exports.__wbg___wbindgen_string_get_e4f06c90489ad01b = function(arg0, arg1) {
|
|
|
887
983
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
888
984
|
};
|
|
889
985
|
|
|
890
|
-
exports.
|
|
986
|
+
exports.__wbg___wbindgen_throw_dd24417ed36fc46e = function(arg0, arg1) {
|
|
891
987
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
892
988
|
};
|
|
893
989
|
|
|
894
|
-
exports.
|
|
990
|
+
exports.__wbg__wbg_cb_unref_87dfb5aaa0cbcea7 = function(arg0) {
|
|
895
991
|
arg0._wbg_cb_unref();
|
|
896
992
|
};
|
|
897
993
|
|
|
898
|
-
exports.
|
|
899
|
-
arg0.abort(
|
|
994
|
+
exports.__wbg_abort_07646c894ebbf2bd = function(arg0) {
|
|
995
|
+
arg0.abort();
|
|
900
996
|
};
|
|
901
997
|
|
|
902
|
-
exports.
|
|
903
|
-
arg0.abort();
|
|
998
|
+
exports.__wbg_abort_399ecbcfd6ef3c8e = function(arg0, arg1) {
|
|
999
|
+
arg0.abort(arg1);
|
|
904
1000
|
};
|
|
905
1001
|
|
|
906
|
-
exports.
|
|
1002
|
+
exports.__wbg_append_c5cbdf46455cc776 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
907
1003
|
arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
908
1004
|
}, arguments) };
|
|
909
1005
|
|
|
910
|
-
exports.
|
|
1006
|
+
exports.__wbg_arrayBuffer_c04af4fce566092d = function() { return handleError(function (arg0) {
|
|
911
1007
|
const ret = arg0.arrayBuffer();
|
|
912
1008
|
return ret;
|
|
913
1009
|
}, arguments) };
|
|
@@ -917,12 +1013,12 @@ exports.__wbg_authorizeresult_new = function(arg0) {
|
|
|
917
1013
|
return ret;
|
|
918
1014
|
};
|
|
919
1015
|
|
|
920
|
-
exports.
|
|
1016
|
+
exports.__wbg_call_3020136f7a2d6e44 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
921
1017
|
const ret = arg0.call(arg1, arg2);
|
|
922
1018
|
return ret;
|
|
923
1019
|
}, arguments) };
|
|
924
1020
|
|
|
925
|
-
exports.
|
|
1021
|
+
exports.__wbg_call_abb4ff46ce38be40 = function() { return handleError(function (arg0, arg1) {
|
|
926
1022
|
const ret = arg0.call(arg1);
|
|
927
1023
|
return ret;
|
|
928
1024
|
}, arguments) };
|
|
@@ -932,7 +1028,7 @@ exports.__wbg_cedarling_new = function(arg0) {
|
|
|
932
1028
|
return ret;
|
|
933
1029
|
};
|
|
934
1030
|
|
|
935
|
-
exports.
|
|
1031
|
+
exports.__wbg_clearTimeout_b716ecb44bea14ed = function(arg0) {
|
|
936
1032
|
const ret = clearTimeout(arg0);
|
|
937
1033
|
return ret;
|
|
938
1034
|
};
|
|
@@ -942,40 +1038,40 @@ exports.__wbg_crypto_574e78ad8b13b65f = function(arg0) {
|
|
|
942
1038
|
return ret;
|
|
943
1039
|
};
|
|
944
1040
|
|
|
945
|
-
exports.
|
|
1041
|
+
exports.__wbg_debug_24d884048190fccc = function(arg0) {
|
|
946
1042
|
console.debug(...arg0);
|
|
947
1043
|
};
|
|
948
1044
|
|
|
949
|
-
exports.
|
|
1045
|
+
exports.__wbg_done_62ea16af4ce34b24 = function(arg0) {
|
|
950
1046
|
const ret = arg0.done;
|
|
951
1047
|
return ret;
|
|
952
1048
|
};
|
|
953
1049
|
|
|
954
|
-
exports.
|
|
1050
|
+
exports.__wbg_entries_83c79938054e065f = function(arg0) {
|
|
955
1051
|
const ret = Object.entries(arg0);
|
|
956
1052
|
return ret;
|
|
957
1053
|
};
|
|
958
1054
|
|
|
959
|
-
exports.
|
|
1055
|
+
exports.__wbg_entries_9af46b7eaf7dfefa = function(arg0) {
|
|
960
1056
|
const ret = arg0.entries();
|
|
961
1057
|
return ret;
|
|
962
1058
|
};
|
|
963
1059
|
|
|
964
|
-
exports.
|
|
1060
|
+
exports.__wbg_error_98d791de55bc7c97 = function(arg0) {
|
|
965
1061
|
console.error(...arg0);
|
|
966
1062
|
};
|
|
967
1063
|
|
|
968
|
-
exports.
|
|
1064
|
+
exports.__wbg_fetch_7fb7602a1bf647ec = function(arg0) {
|
|
969
1065
|
const ret = fetch(arg0);
|
|
970
1066
|
return ret;
|
|
971
1067
|
};
|
|
972
1068
|
|
|
973
|
-
exports.
|
|
1069
|
+
exports.__wbg_fetch_90447c28cc0b095e = function(arg0, arg1) {
|
|
974
1070
|
const ret = arg0.fetch(arg1);
|
|
975
1071
|
return ret;
|
|
976
1072
|
};
|
|
977
1073
|
|
|
978
|
-
exports.
|
|
1074
|
+
exports.__wbg_fromEntries_743eaaa008e6db37 = function() { return handleError(function (arg0) {
|
|
979
1075
|
const ret = Object.fromEntries(arg0);
|
|
980
1076
|
return ret;
|
|
981
1077
|
}, arguments) };
|
|
@@ -988,22 +1084,22 @@ exports.__wbg_getRandomValues_b8f5dbd5f3995a9e = function() { return handleError
|
|
|
988
1084
|
arg0.getRandomValues(arg1);
|
|
989
1085
|
}, arguments) };
|
|
990
1086
|
|
|
991
|
-
exports.
|
|
1087
|
+
exports.__wbg_getTime_ad1e9878a735af08 = function(arg0) {
|
|
992
1088
|
const ret = arg0.getTime();
|
|
993
1089
|
return ret;
|
|
994
1090
|
};
|
|
995
1091
|
|
|
996
|
-
exports.
|
|
1092
|
+
exports.__wbg_getTimezoneOffset_45389e26d6f46823 = function(arg0) {
|
|
997
1093
|
const ret = arg0.getTimezoneOffset();
|
|
998
1094
|
return ret;
|
|
999
1095
|
};
|
|
1000
1096
|
|
|
1001
|
-
exports.
|
|
1097
|
+
exports.__wbg_get_6b7bd52aca3f9671 = function(arg0, arg1) {
|
|
1002
1098
|
const ret = arg0[arg1 >>> 0];
|
|
1003
1099
|
return ret;
|
|
1004
1100
|
};
|
|
1005
1101
|
|
|
1006
|
-
exports.
|
|
1102
|
+
exports.__wbg_get_af9dab7e9603ea93 = function() { return handleError(function (arg0, arg1) {
|
|
1007
1103
|
const ret = Reflect.get(arg0, arg1);
|
|
1008
1104
|
return ret;
|
|
1009
1105
|
}, arguments) };
|
|
@@ -1013,21 +1109,21 @@ exports.__wbg_get_with_ref_key_1dc361bd10053bfe = function(arg0, arg1) {
|
|
|
1013
1109
|
return ret;
|
|
1014
1110
|
};
|
|
1015
1111
|
|
|
1016
|
-
exports.
|
|
1112
|
+
exports.__wbg_has_0e670569d65d3a45 = function() { return handleError(function (arg0, arg1) {
|
|
1017
1113
|
const ret = Reflect.has(arg0, arg1);
|
|
1018
1114
|
return ret;
|
|
1019
1115
|
}, arguments) };
|
|
1020
1116
|
|
|
1021
|
-
exports.
|
|
1117
|
+
exports.__wbg_headers_654c30e1bcccc552 = function(arg0) {
|
|
1022
1118
|
const ret = arg0.headers;
|
|
1023
1119
|
return ret;
|
|
1024
1120
|
};
|
|
1025
1121
|
|
|
1026
|
-
exports.
|
|
1122
|
+
exports.__wbg_info_e951478d580c1573 = function(arg0) {
|
|
1027
1123
|
console.info(...arg0);
|
|
1028
1124
|
};
|
|
1029
1125
|
|
|
1030
|
-
exports.
|
|
1126
|
+
exports.__wbg_instanceof_ArrayBuffer_f3320d2419cd0355 = function(arg0) {
|
|
1031
1127
|
let result;
|
|
1032
1128
|
try {
|
|
1033
1129
|
result = arg0 instanceof ArrayBuffer;
|
|
@@ -1038,7 +1134,7 @@ exports.__wbg_instanceof_ArrayBuffer_70beb1189ca63b38 = function(arg0) {
|
|
|
1038
1134
|
return ret;
|
|
1039
1135
|
};
|
|
1040
1136
|
|
|
1041
|
-
exports.
|
|
1137
|
+
exports.__wbg_instanceof_Array_bc64f5da83077362 = function(arg0) {
|
|
1042
1138
|
let result;
|
|
1043
1139
|
try {
|
|
1044
1140
|
result = arg0 instanceof Array;
|
|
@@ -1049,7 +1145,7 @@ exports.__wbg_instanceof_Array_fca44e0f4a7f6240 = function(arg0) {
|
|
|
1049
1145
|
return ret;
|
|
1050
1146
|
};
|
|
1051
1147
|
|
|
1052
|
-
exports.
|
|
1148
|
+
exports.__wbg_instanceof_Map_084be8da74364158 = function(arg0) {
|
|
1053
1149
|
let result;
|
|
1054
1150
|
try {
|
|
1055
1151
|
result = arg0 instanceof Map;
|
|
@@ -1060,7 +1156,7 @@ exports.__wbg_instanceof_Map_8579b5e2ab5437c7 = function(arg0) {
|
|
|
1060
1156
|
return ret;
|
|
1061
1157
|
};
|
|
1062
1158
|
|
|
1063
|
-
exports.
|
|
1159
|
+
exports.__wbg_instanceof_Response_cd74d1c2ac92cb0b = function(arg0) {
|
|
1064
1160
|
let result;
|
|
1065
1161
|
try {
|
|
1066
1162
|
result = arg0 instanceof Response;
|
|
@@ -1071,7 +1167,7 @@ exports.__wbg_instanceof_Response_f4f3e87e07f3135c = function(arg0) {
|
|
|
1071
1167
|
return ret;
|
|
1072
1168
|
};
|
|
1073
1169
|
|
|
1074
|
-
exports.
|
|
1170
|
+
exports.__wbg_instanceof_Uint8Array_da54ccc9d3e09434 = function(arg0) {
|
|
1075
1171
|
let result;
|
|
1076
1172
|
try {
|
|
1077
1173
|
result = arg0 instanceof Uint8Array;
|
|
@@ -1082,37 +1178,37 @@ exports.__wbg_instanceof_Uint8Array_20c8e73002f7af98 = function(arg0) {
|
|
|
1082
1178
|
return ret;
|
|
1083
1179
|
};
|
|
1084
1180
|
|
|
1085
|
-
exports.
|
|
1181
|
+
exports.__wbg_isArray_51fd9e6422c0a395 = function(arg0) {
|
|
1086
1182
|
const ret = Array.isArray(arg0);
|
|
1087
1183
|
return ret;
|
|
1088
1184
|
};
|
|
1089
1185
|
|
|
1090
|
-
exports.
|
|
1186
|
+
exports.__wbg_isSafeInteger_ae7d3f054d55fa16 = function(arg0) {
|
|
1091
1187
|
const ret = Number.isSafeInteger(arg0);
|
|
1092
1188
|
return ret;
|
|
1093
1189
|
};
|
|
1094
1190
|
|
|
1095
|
-
exports.
|
|
1191
|
+
exports.__wbg_iterator_27b7c8b35ab3e86b = function() {
|
|
1096
1192
|
const ret = Symbol.iterator;
|
|
1097
1193
|
return ret;
|
|
1098
1194
|
};
|
|
1099
1195
|
|
|
1100
|
-
exports.
|
|
1196
|
+
exports.__wbg_keys_f5c6002ff150fc6c = function(arg0) {
|
|
1101
1197
|
const ret = Object.keys(arg0);
|
|
1102
1198
|
return ret;
|
|
1103
1199
|
};
|
|
1104
1200
|
|
|
1105
|
-
exports.
|
|
1201
|
+
exports.__wbg_length_22ac23eaec9d8053 = function(arg0) {
|
|
1106
1202
|
const ret = arg0.length;
|
|
1107
1203
|
return ret;
|
|
1108
1204
|
};
|
|
1109
1205
|
|
|
1110
|
-
exports.
|
|
1206
|
+
exports.__wbg_length_d45040a40c570362 = function(arg0) {
|
|
1111
1207
|
const ret = arg0.length;
|
|
1112
1208
|
return ret;
|
|
1113
1209
|
};
|
|
1114
1210
|
|
|
1115
|
-
exports.
|
|
1211
|
+
exports.__wbg_log_3f650af133a6de58 = function(arg0) {
|
|
1116
1212
|
console.log(...arg0);
|
|
1117
1213
|
};
|
|
1118
1214
|
|
|
@@ -1121,29 +1217,59 @@ exports.__wbg_msCrypto_a61aeb35a24c1329 = function(arg0) {
|
|
|
1121
1217
|
return ret;
|
|
1122
1218
|
};
|
|
1123
1219
|
|
|
1124
|
-
exports.
|
|
1220
|
+
exports.__wbg_multiissuerauthorizeresult_new = function(arg0) {
|
|
1221
|
+
const ret = MultiIssuerAuthorizeResult.__wrap(arg0);
|
|
1222
|
+
return ret;
|
|
1223
|
+
};
|
|
1224
|
+
|
|
1225
|
+
exports.__wbg_new_0_23cedd11d9b40c9d = function() {
|
|
1125
1226
|
const ret = new Date();
|
|
1126
1227
|
return ret;
|
|
1127
1228
|
};
|
|
1128
1229
|
|
|
1129
|
-
exports.
|
|
1230
|
+
exports.__wbg_new_1ba21ce319a06297 = function() {
|
|
1130
1231
|
const ret = new Object();
|
|
1131
1232
|
return ret;
|
|
1132
1233
|
};
|
|
1133
1234
|
|
|
1134
|
-
exports.
|
|
1235
|
+
exports.__wbg_new_25f239778d6112b9 = function() {
|
|
1236
|
+
const ret = new Array();
|
|
1237
|
+
return ret;
|
|
1238
|
+
};
|
|
1239
|
+
|
|
1240
|
+
exports.__wbg_new_3c79b3bb1b32b7d3 = function() { return handleError(function () {
|
|
1241
|
+
const ret = new Headers();
|
|
1242
|
+
return ret;
|
|
1243
|
+
}, arguments) };
|
|
1244
|
+
|
|
1245
|
+
exports.__wbg_new_6421f6084cc5bc5a = function(arg0) {
|
|
1246
|
+
const ret = new Uint8Array(arg0);
|
|
1247
|
+
return ret;
|
|
1248
|
+
};
|
|
1249
|
+
|
|
1250
|
+
exports.__wbg_new_881a222c65f168fc = function() { return handleError(function () {
|
|
1135
1251
|
const ret = new AbortController();
|
|
1136
1252
|
return ret;
|
|
1137
1253
|
}, arguments) };
|
|
1138
1254
|
|
|
1139
|
-
exports.
|
|
1255
|
+
exports.__wbg_new_b2db8aa2650f793a = function(arg0) {
|
|
1256
|
+
const ret = new Date(arg0);
|
|
1257
|
+
return ret;
|
|
1258
|
+
};
|
|
1259
|
+
|
|
1260
|
+
exports.__wbg_new_b546ae120718850e = function() {
|
|
1261
|
+
const ret = new Map();
|
|
1262
|
+
return ret;
|
|
1263
|
+
};
|
|
1264
|
+
|
|
1265
|
+
exports.__wbg_new_ff12d2b041fb48f1 = function(arg0, arg1) {
|
|
1140
1266
|
try {
|
|
1141
1267
|
var state0 = {a: arg0, b: arg1};
|
|
1142
1268
|
var cb0 = (arg0, arg1) => {
|
|
1143
1269
|
const a = state0.a;
|
|
1144
1270
|
state0.a = 0;
|
|
1145
1271
|
try {
|
|
1146
|
-
return
|
|
1272
|
+
return wasm_bindgen__convert__closures_____invoke__h3a7d0d99d266e2f8(a, state0.b, arg0, arg1);
|
|
1147
1273
|
} finally {
|
|
1148
1274
|
state0.a = a;
|
|
1149
1275
|
}
|
|
@@ -1155,66 +1281,41 @@ exports.__wbg_new_3c3d849046688a66 = function(arg0, arg1) {
|
|
|
1155
1281
|
}
|
|
1156
1282
|
};
|
|
1157
1283
|
|
|
1158
|
-
exports.
|
|
1159
|
-
const ret = new Uint8Array(arg0);
|
|
1160
|
-
return ret;
|
|
1161
|
-
};
|
|
1162
|
-
|
|
1163
|
-
exports.__wbg_new_68651c719dcda04e = function() {
|
|
1164
|
-
const ret = new Map();
|
|
1165
|
-
return ret;
|
|
1166
|
-
};
|
|
1167
|
-
|
|
1168
|
-
exports.__wbg_new_93d9417ed3fb115d = function(arg0) {
|
|
1169
|
-
const ret = new Date(arg0);
|
|
1170
|
-
return ret;
|
|
1171
|
-
};
|
|
1172
|
-
|
|
1173
|
-
exports.__wbg_new_9edf9838a2def39c = function() { return handleError(function () {
|
|
1174
|
-
const ret = new Headers();
|
|
1175
|
-
return ret;
|
|
1176
|
-
}, arguments) };
|
|
1177
|
-
|
|
1178
|
-
exports.__wbg_new_e17d9f43105b08be = function() {
|
|
1179
|
-
const ret = new Array();
|
|
1180
|
-
return ret;
|
|
1181
|
-
};
|
|
1182
|
-
|
|
1183
|
-
exports.__wbg_new_from_slice_92f4d78ca282a2d2 = function(arg0, arg1) {
|
|
1284
|
+
exports.__wbg_new_from_slice_f9c22b9153b26992 = function(arg0, arg1) {
|
|
1184
1285
|
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
1185
1286
|
return ret;
|
|
1186
1287
|
};
|
|
1187
1288
|
|
|
1188
|
-
exports.
|
|
1289
|
+
exports.__wbg_new_no_args_cb138f77cf6151ee = function(arg0, arg1) {
|
|
1189
1290
|
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
1190
1291
|
return ret;
|
|
1191
1292
|
};
|
|
1192
1293
|
|
|
1193
|
-
exports.
|
|
1294
|
+
exports.__wbg_new_with_args_df9e7125ffe55248 = function(arg0, arg1, arg2, arg3) {
|
|
1194
1295
|
const ret = new Function(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
|
|
1195
1296
|
return ret;
|
|
1196
1297
|
};
|
|
1197
1298
|
|
|
1198
|
-
exports.
|
|
1299
|
+
exports.__wbg_new_with_length_aa5eaf41d35235e5 = function(arg0) {
|
|
1199
1300
|
const ret = new Uint8Array(arg0 >>> 0);
|
|
1200
1301
|
return ret;
|
|
1201
1302
|
};
|
|
1202
1303
|
|
|
1203
|
-
exports.
|
|
1304
|
+
exports.__wbg_new_with_str_and_init_c5748f76f5108934 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1204
1305
|
const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
|
|
1205
1306
|
return ret;
|
|
1206
1307
|
}, arguments) };
|
|
1207
1308
|
|
|
1208
|
-
exports.
|
|
1209
|
-
const ret = arg0.next();
|
|
1210
|
-
return ret;
|
|
1211
|
-
}, arguments) };
|
|
1212
|
-
|
|
1213
|
-
exports.__wbg_next_2c826fe5dfec6b6a = function(arg0) {
|
|
1309
|
+
exports.__wbg_next_138a17bbf04e926c = function(arg0) {
|
|
1214
1310
|
const ret = arg0.next;
|
|
1215
1311
|
return ret;
|
|
1216
1312
|
};
|
|
1217
1313
|
|
|
1314
|
+
exports.__wbg_next_3cfe5c0fe2a4cc53 = function() { return handleError(function (arg0) {
|
|
1315
|
+
const ret = arg0.next();
|
|
1316
|
+
return ret;
|
|
1317
|
+
}, arguments) };
|
|
1318
|
+
|
|
1218
1319
|
exports.__wbg_node_905d3e251edff8a2 = function(arg0) {
|
|
1219
1320
|
const ret = arg0.node;
|
|
1220
1321
|
return ret;
|
|
@@ -1230,21 +1331,21 @@ exports.__wbg_process_dc0fbacc7c1c06f7 = function(arg0) {
|
|
|
1230
1331
|
return ret;
|
|
1231
1332
|
};
|
|
1232
1333
|
|
|
1233
|
-
exports.
|
|
1334
|
+
exports.__wbg_prototypesetcall_dfe9b766cdc1f1fd = function(arg0, arg1, arg2) {
|
|
1234
1335
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
1235
1336
|
};
|
|
1236
1337
|
|
|
1237
|
-
exports.
|
|
1338
|
+
exports.__wbg_push_7d9be8f38fc13975 = function(arg0, arg1) {
|
|
1238
1339
|
const ret = arg0.push(arg1);
|
|
1239
1340
|
return ret;
|
|
1240
1341
|
};
|
|
1241
1342
|
|
|
1242
|
-
exports.
|
|
1343
|
+
exports.__wbg_queueMicrotask_9b549dfce8865860 = function(arg0) {
|
|
1243
1344
|
const ret = arg0.queueMicrotask;
|
|
1244
1345
|
return ret;
|
|
1245
1346
|
};
|
|
1246
1347
|
|
|
1247
|
-
exports.
|
|
1348
|
+
exports.__wbg_queueMicrotask_fca69f5bfad613a5 = function(arg0) {
|
|
1248
1349
|
queueMicrotask(arg0);
|
|
1249
1350
|
};
|
|
1250
1351
|
|
|
@@ -1257,12 +1358,12 @@ exports.__wbg_require_60cc747a6bc5215a = function() { return handleError(functio
|
|
|
1257
1358
|
return ret;
|
|
1258
1359
|
}, arguments) };
|
|
1259
1360
|
|
|
1260
|
-
exports.
|
|
1361
|
+
exports.__wbg_resolve_fd5bfbaa4ce36e1e = function(arg0) {
|
|
1261
1362
|
const ret = Promise.resolve(arg0);
|
|
1262
1363
|
return ret;
|
|
1263
1364
|
};
|
|
1264
1365
|
|
|
1265
|
-
exports.
|
|
1366
|
+
exports.__wbg_setTimeout_4302406184dcc5be = function(arg0, arg1) {
|
|
1266
1367
|
const ret = setTimeout(arg0, arg1);
|
|
1267
1368
|
return ret;
|
|
1268
1369
|
};
|
|
@@ -1271,108 +1372,108 @@ exports.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
|
|
|
1271
1372
|
arg0[arg1] = arg2;
|
|
1272
1373
|
};
|
|
1273
1374
|
|
|
1274
|
-
exports.
|
|
1275
|
-
const ret =
|
|
1375
|
+
exports.__wbg_set_781438a03c0c3c81 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1376
|
+
const ret = Reflect.set(arg0, arg1, arg2);
|
|
1276
1377
|
return ret;
|
|
1277
|
-
};
|
|
1278
|
-
|
|
1279
|
-
exports.__wbg_set_body_3c365989753d61f4 = function(arg0, arg1) {
|
|
1280
|
-
arg0.body = arg1;
|
|
1281
|
-
};
|
|
1378
|
+
}, arguments) };
|
|
1282
1379
|
|
|
1283
|
-
exports.
|
|
1380
|
+
exports.__wbg_set_7df433eea03a5c14 = function(arg0, arg1, arg2) {
|
|
1284
1381
|
arg0[arg1 >>> 0] = arg2;
|
|
1285
1382
|
};
|
|
1286
1383
|
|
|
1287
|
-
exports.
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
}, arguments) };
|
|
1384
|
+
exports.__wbg_set_body_8e743242d6076a4f = function(arg0, arg1) {
|
|
1385
|
+
arg0.body = arg1;
|
|
1386
|
+
};
|
|
1291
1387
|
|
|
1292
|
-
exports.
|
|
1388
|
+
exports.__wbg_set_cache_0e437c7c8e838b9b = function(arg0, arg1) {
|
|
1293
1389
|
arg0.cache = __wbindgen_enum_RequestCache[arg1];
|
|
1294
1390
|
};
|
|
1295
1391
|
|
|
1296
|
-
exports.
|
|
1392
|
+
exports.__wbg_set_credentials_55ae7c3c106fd5be = function(arg0, arg1) {
|
|
1297
1393
|
arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
|
|
1298
1394
|
};
|
|
1299
1395
|
|
|
1300
|
-
exports.
|
|
1396
|
+
exports.__wbg_set_efaaf145b9377369 = function(arg0, arg1, arg2) {
|
|
1397
|
+
const ret = arg0.set(arg1, arg2);
|
|
1398
|
+
return ret;
|
|
1399
|
+
};
|
|
1400
|
+
|
|
1401
|
+
exports.__wbg_set_headers_5671cf088e114d2b = function(arg0, arg1) {
|
|
1301
1402
|
arg0.headers = arg1;
|
|
1302
1403
|
};
|
|
1303
1404
|
|
|
1304
|
-
exports.
|
|
1405
|
+
exports.__wbg_set_method_76c69e41b3570627 = function(arg0, arg1, arg2) {
|
|
1305
1406
|
arg0.method = getStringFromWasm0(arg1, arg2);
|
|
1306
1407
|
};
|
|
1307
1408
|
|
|
1308
|
-
exports.
|
|
1409
|
+
exports.__wbg_set_mode_611016a6818fc690 = function(arg0, arg1) {
|
|
1309
1410
|
arg0.mode = __wbindgen_enum_RequestMode[arg1];
|
|
1310
1411
|
};
|
|
1311
1412
|
|
|
1312
|
-
exports.
|
|
1413
|
+
exports.__wbg_set_signal_e89be862d0091009 = function(arg0, arg1) {
|
|
1313
1414
|
arg0.signal = arg1;
|
|
1314
1415
|
};
|
|
1315
1416
|
|
|
1316
|
-
exports.
|
|
1417
|
+
exports.__wbg_signal_3c14fbdc89694b39 = function(arg0) {
|
|
1317
1418
|
const ret = arg0.signal;
|
|
1318
1419
|
return ret;
|
|
1319
1420
|
};
|
|
1320
1421
|
|
|
1321
|
-
exports.
|
|
1422
|
+
exports.__wbg_static_accessor_GLOBAL_769e6b65d6557335 = function() {
|
|
1322
1423
|
const ret = typeof global === 'undefined' ? null : global;
|
|
1323
1424
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1324
1425
|
};
|
|
1325
1426
|
|
|
1326
|
-
exports.
|
|
1427
|
+
exports.__wbg_static_accessor_GLOBAL_THIS_60cf02db4de8e1c1 = function() {
|
|
1327
1428
|
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
1328
1429
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1329
1430
|
};
|
|
1330
1431
|
|
|
1331
|
-
exports.
|
|
1432
|
+
exports.__wbg_static_accessor_SELF_08f5a74c69739274 = function() {
|
|
1332
1433
|
const ret = typeof self === 'undefined' ? null : self;
|
|
1333
1434
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1334
1435
|
};
|
|
1335
1436
|
|
|
1336
|
-
exports.
|
|
1437
|
+
exports.__wbg_static_accessor_WINDOW_a8924b26aa92d024 = function() {
|
|
1337
1438
|
const ret = typeof window === 'undefined' ? null : window;
|
|
1338
1439
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1339
1440
|
};
|
|
1340
1441
|
|
|
1341
|
-
exports.
|
|
1442
|
+
exports.__wbg_status_9bfc680efca4bdfd = function(arg0) {
|
|
1342
1443
|
const ret = arg0.status;
|
|
1343
1444
|
return ret;
|
|
1344
1445
|
};
|
|
1345
1446
|
|
|
1346
|
-
exports.
|
|
1447
|
+
exports.__wbg_stringify_655a6390e1f5eb6b = function() { return handleError(function (arg0) {
|
|
1347
1448
|
const ret = JSON.stringify(arg0);
|
|
1348
1449
|
return ret;
|
|
1349
1450
|
}, arguments) };
|
|
1350
1451
|
|
|
1351
|
-
exports.
|
|
1452
|
+
exports.__wbg_subarray_845f2f5bce7d061a = function(arg0, arg1, arg2) {
|
|
1352
1453
|
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
1353
1454
|
return ret;
|
|
1354
1455
|
};
|
|
1355
1456
|
|
|
1356
|
-
exports.
|
|
1457
|
+
exports.__wbg_text_51046bb33d257f63 = function() { return handleError(function (arg0) {
|
|
1357
1458
|
const ret = arg0.text();
|
|
1358
1459
|
return ret;
|
|
1359
1460
|
}, arguments) };
|
|
1360
1461
|
|
|
1361
|
-
exports.
|
|
1362
|
-
const ret = arg0.then(arg1);
|
|
1462
|
+
exports.__wbg_then_429f7caf1026411d = function(arg0, arg1, arg2) {
|
|
1463
|
+
const ret = arg0.then(arg1, arg2);
|
|
1363
1464
|
return ret;
|
|
1364
1465
|
};
|
|
1365
1466
|
|
|
1366
|
-
exports.
|
|
1367
|
-
const ret = arg0.then(arg1
|
|
1467
|
+
exports.__wbg_then_4f95312d68691235 = function(arg0, arg1) {
|
|
1468
|
+
const ret = arg0.then(arg1);
|
|
1368
1469
|
return ret;
|
|
1369
1470
|
};
|
|
1370
1471
|
|
|
1371
|
-
exports.
|
|
1472
|
+
exports.__wbg_trace_b213249bfc587469 = function(arg0) {
|
|
1372
1473
|
console.trace(...arg0);
|
|
1373
1474
|
};
|
|
1374
1475
|
|
|
1375
|
-
exports.
|
|
1476
|
+
exports.__wbg_url_b6d11838a4f95198 = function(arg0, arg1) {
|
|
1376
1477
|
const ret = arg1.url;
|
|
1377
1478
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1378
1479
|
const len1 = WASM_VECTOR_LEN;
|
|
@@ -1380,7 +1481,7 @@ exports.__wbg_url_b36d2a5008eb056f = function(arg0, arg1) {
|
|
|
1380
1481
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1381
1482
|
};
|
|
1382
1483
|
|
|
1383
|
-
exports.
|
|
1484
|
+
exports.__wbg_value_57b7b035e117f7ee = function(arg0) {
|
|
1384
1485
|
const ret = arg0.value;
|
|
1385
1486
|
return ret;
|
|
1386
1487
|
};
|
|
@@ -1390,19 +1491,25 @@ exports.__wbg_versions_c01dfd4722a88165 = function(arg0) {
|
|
|
1390
1491
|
return ret;
|
|
1391
1492
|
};
|
|
1392
1493
|
|
|
1393
|
-
exports.
|
|
1494
|
+
exports.__wbg_warn_14a9fd75d0abe5d7 = function(arg0) {
|
|
1394
1495
|
console.warn(...arg0);
|
|
1395
1496
|
};
|
|
1396
1497
|
|
|
1498
|
+
exports.__wbindgen_cast_0e8a9f348831646f = function(arg0, arg1) {
|
|
1499
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 510, function: Function { arguments: [], shim_idx: 511, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1500
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h3edd0da2e16650db, wasm_bindgen__convert__closures_____invoke__h8a10b0fb25c32ce7);
|
|
1501
|
+
return ret;
|
|
1502
|
+
};
|
|
1503
|
+
|
|
1397
1504
|
exports.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
|
|
1398
1505
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
1399
1506
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
1400
1507
|
return ret;
|
|
1401
1508
|
};
|
|
1402
1509
|
|
|
1403
|
-
exports.
|
|
1404
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1405
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1510
|
+
exports.__wbindgen_cast_317cf9338e91f114 = function(arg0, arg1) {
|
|
1511
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 555, function: Function { arguments: [Externref], shim_idx: 556, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1512
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h8554173f80599467, wasm_bindgen__convert__closures_____invoke__h7f8b71809a8d7577);
|
|
1406
1513
|
return ret;
|
|
1407
1514
|
};
|
|
1408
1515
|
|
|
@@ -1430,12 +1537,6 @@ exports.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
|
|
|
1430
1537
|
return ret;
|
|
1431
1538
|
};
|
|
1432
1539
|
|
|
1433
|
-
exports.__wbindgen_cast_f0904d98c773eedb = function(arg0, arg1) {
|
|
1434
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 508, function: Function { arguments: [], shim_idx: 509, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1435
|
-
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__ha0787d3d14449f11, wasm_bindgen__convert__closures_____invoke__hf8ac7184f86fbcce);
|
|
1436
|
-
return ret;
|
|
1437
|
-
};
|
|
1438
|
-
|
|
1439
1540
|
exports.__wbindgen_init_externref_table = function() {
|
|
1440
1541
|
const table = wasm.__wbindgen_externrefs;
|
|
1441
1542
|
const offset = table.grow(4);
|
|
@@ -1444,7 +1545,6 @@ exports.__wbindgen_init_externref_table = function() {
|
|
|
1444
1545
|
table.set(offset + 1, null);
|
|
1445
1546
|
table.set(offset + 2, true);
|
|
1446
1547
|
table.set(offset + 3, false);
|
|
1447
|
-
;
|
|
1448
1548
|
};
|
|
1449
1549
|
|
|
1450
1550
|
const wasmPath = `${__dirname}/cedarling_wasm_bg.wasm`;
|
|
@@ -1453,4 +1553,3 @@ const wasmModule = new WebAssembly.Module(wasmBytes);
|
|
|
1453
1553
|
const wasm = exports.__wasm = new WebAssembly.Instance(wasmModule, imports).exports;
|
|
1454
1554
|
|
|
1455
1555
|
wasm.__wbindgen_start();
|
|
1456
|
-
|