@janssenproject/cedarling_wasm 0.0.275-nodejs → 0.0.276
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 +119 -0
- package/cedarling_wasm.js +755 -663
- package/cedarling_wasm_bg.wasm +0 -0
- package/package.json +6 -2
package/cedarling_wasm.js
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
let imports = {};
|
|
3
|
-
imports['__wbindgen_placeholder__'] = module.exports;
|
|
1
|
+
let wasm;
|
|
4
2
|
|
|
5
3
|
let cachedUint8ArrayMemory0 = null;
|
|
6
4
|
|
|
@@ -15,7 +13,15 @@ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true
|
|
|
15
13
|
|
|
16
14
|
cachedTextDecoder.decode();
|
|
17
15
|
|
|
16
|
+
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
17
|
+
let numBytesDecoded = 0;
|
|
18
18
|
function decodeText(ptr, len) {
|
|
19
|
+
numBytesDecoded += len;
|
|
20
|
+
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
21
|
+
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
22
|
+
cachedTextDecoder.decode();
|
|
23
|
+
numBytesDecoded = len;
|
|
24
|
+
}
|
|
19
25
|
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
20
26
|
}
|
|
21
27
|
|
|
@@ -207,16 +213,22 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
207
213
|
CLOSURE_DTORS.register(real, state, state);
|
|
208
214
|
return real;
|
|
209
215
|
}
|
|
216
|
+
|
|
217
|
+
function _assertClass(instance, klass) {
|
|
218
|
+
if (!(instance instanceof klass)) {
|
|
219
|
+
throw new Error(`expected instance of ${klass.name}`);
|
|
220
|
+
}
|
|
221
|
+
}
|
|
210
222
|
/**
|
|
211
223
|
* Create a new instance of the Cedarling application.
|
|
212
224
|
* This function can take as config parameter the eather `Map` other `Object`
|
|
213
225
|
* @param {any} config
|
|
214
226
|
* @returns {Promise<Cedarling>}
|
|
215
227
|
*/
|
|
216
|
-
|
|
228
|
+
export function init(config) {
|
|
217
229
|
const ret = wasm.init(config);
|
|
218
230
|
return ret;
|
|
219
|
-
}
|
|
231
|
+
}
|
|
220
232
|
|
|
221
233
|
function takeFromExternrefTable0(idx) {
|
|
222
234
|
const value = wasm.__wbindgen_externrefs.get(idx);
|
|
@@ -234,20 +246,14 @@ function getArrayJsValueFromWasm0(ptr, len) {
|
|
|
234
246
|
wasm.__externref_drop_slice(ptr, len);
|
|
235
247
|
return result;
|
|
236
248
|
}
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
if (!(instance instanceof klass)) {
|
|
240
|
-
throw new Error(`expected instance of ${klass.name}`);
|
|
241
|
-
}
|
|
249
|
+
function wasm_bindgen__convert__closures_____invoke__hb85a0d6bfa2beadc(arg0, arg1) {
|
|
250
|
+
wasm.wasm_bindgen__convert__closures_____invoke__hb85a0d6bfa2beadc(arg0, arg1);
|
|
242
251
|
}
|
|
252
|
+
|
|
243
253
|
function wasm_bindgen__convert__closures_____invoke__h1c715d53d5a00020(arg0, arg1, arg2) {
|
|
244
254
|
wasm.wasm_bindgen__convert__closures_____invoke__h1c715d53d5a00020(arg0, arg1, arg2);
|
|
245
255
|
}
|
|
246
256
|
|
|
247
|
-
function wasm_bindgen__convert__closures_____invoke__hf8ac7184f86fbcce(arg0, arg1) {
|
|
248
|
-
wasm.wasm_bindgen__convert__closures_____invoke__hf8ac7184f86fbcce(arg0, arg1);
|
|
249
|
-
}
|
|
250
|
-
|
|
251
257
|
function wasm_bindgen__convert__closures_____invoke__h4b59ba169ea05287(arg0, arg1, arg2, arg3) {
|
|
252
258
|
wasm.wasm_bindgen__convert__closures_____invoke__h4b59ba169ea05287(arg0, arg1, arg2, arg3);
|
|
253
259
|
}
|
|
@@ -265,7 +271,7 @@ const AuthorizeResultFinalization = (typeof FinalizationRegistry === 'undefined'
|
|
|
265
271
|
* A WASM wrapper for the Rust `cedarling::AuthorizeResult` struct.
|
|
266
272
|
* Represents the result of an authorization request.
|
|
267
273
|
*/
|
|
268
|
-
class AuthorizeResult {
|
|
274
|
+
export class AuthorizeResult {
|
|
269
275
|
|
|
270
276
|
static __wrap(ptr) {
|
|
271
277
|
ptr = ptr >>> 0;
|
|
@@ -403,8 +409,6 @@ class AuthorizeResult {
|
|
|
403
409
|
}
|
|
404
410
|
if (Symbol.dispose) AuthorizeResult.prototype[Symbol.dispose] = AuthorizeResult.prototype.free;
|
|
405
411
|
|
|
406
|
-
exports.AuthorizeResult = AuthorizeResult;
|
|
407
|
-
|
|
408
412
|
const AuthorizeResultResponseFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
409
413
|
? { register: () => {}, unregister: () => {} }
|
|
410
414
|
: new FinalizationRegistry(ptr => wasm.__wbg_authorizeresultresponse_free(ptr >>> 0, 1));
|
|
@@ -412,7 +416,7 @@ const AuthorizeResultResponseFinalization = (typeof FinalizationRegistry === 'un
|
|
|
412
416
|
* A WASM wrapper for the Rust `cedar_policy::Response` struct.
|
|
413
417
|
* Represents the result of an authorization request.
|
|
414
418
|
*/
|
|
415
|
-
class AuthorizeResultResponse {
|
|
419
|
+
export class AuthorizeResultResponse {
|
|
416
420
|
|
|
417
421
|
static __wrap(ptr) {
|
|
418
422
|
ptr = ptr >>> 0;
|
|
@@ -452,15 +456,13 @@ class AuthorizeResultResponse {
|
|
|
452
456
|
}
|
|
453
457
|
if (Symbol.dispose) AuthorizeResultResponse.prototype[Symbol.dispose] = AuthorizeResultResponse.prototype.free;
|
|
454
458
|
|
|
455
|
-
exports.AuthorizeResultResponse = AuthorizeResultResponse;
|
|
456
|
-
|
|
457
459
|
const CedarlingFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
458
460
|
? { register: () => {}, unregister: () => {} }
|
|
459
461
|
: new FinalizationRegistry(ptr => wasm.__wbg_cedarling_free(ptr >>> 0, 1));
|
|
460
462
|
/**
|
|
461
463
|
* The instance of the Cedarling application.
|
|
462
464
|
*/
|
|
463
|
-
class Cedarling {
|
|
465
|
+
export class Cedarling {
|
|
464
466
|
|
|
465
467
|
static __wrap(ptr) {
|
|
466
468
|
ptr = ptr >>> 0;
|
|
@@ -521,6 +523,16 @@ class Cedarling {
|
|
|
521
523
|
const ret = wasm.cedarling_authorize_unsigned(this.__wbg_ptr, request);
|
|
522
524
|
return ret;
|
|
523
525
|
}
|
|
526
|
+
/**
|
|
527
|
+
* Authorize multi-issuer request.
|
|
528
|
+
* Makes authorization decision based on multiple JWT tokens from different issuers
|
|
529
|
+
* @param {any} request
|
|
530
|
+
* @returns {Promise<MultiIssuerAuthorizeResult>}
|
|
531
|
+
*/
|
|
532
|
+
authorize_multi_issuer(request) {
|
|
533
|
+
const ret = wasm.cedarling_authorize_multi_issuer(this.__wbg_ptr, request);
|
|
534
|
+
return ret;
|
|
535
|
+
}
|
|
524
536
|
/**
|
|
525
537
|
* Get logs and remove them from the storage.
|
|
526
538
|
* Returns `Array` of `Map`
|
|
@@ -623,8 +635,6 @@ class Cedarling {
|
|
|
623
635
|
}
|
|
624
636
|
if (Symbol.dispose) Cedarling.prototype[Symbol.dispose] = Cedarling.prototype.free;
|
|
625
637
|
|
|
626
|
-
exports.Cedarling = Cedarling;
|
|
627
|
-
|
|
628
638
|
const DiagnosticsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
629
639
|
? { register: () => {}, unregister: () => {} }
|
|
630
640
|
: new FinalizationRegistry(ptr => wasm.__wbg_diagnostics_free(ptr >>> 0, 1));
|
|
@@ -634,7 +644,7 @@ const DiagnosticsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
634
644
|
*
|
|
635
645
|
* Provides detailed information about how a policy decision was made, including policies that contributed to the decision and any errors encountered during evaluation.
|
|
636
646
|
*/
|
|
637
|
-
class Diagnostics {
|
|
647
|
+
export class Diagnostics {
|
|
638
648
|
|
|
639
649
|
static __wrap(ptr) {
|
|
640
650
|
ptr = ptr >>> 0;
|
|
@@ -682,13 +692,11 @@ class Diagnostics {
|
|
|
682
692
|
}
|
|
683
693
|
if (Symbol.dispose) Diagnostics.prototype[Symbol.dispose] = Diagnostics.prototype.free;
|
|
684
694
|
|
|
685
|
-
exports.Diagnostics = Diagnostics;
|
|
686
|
-
|
|
687
695
|
const JsJsonLogicFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
688
696
|
? { register: () => {}, unregister: () => {} }
|
|
689
697
|
: new FinalizationRegistry(ptr => wasm.__wbg_jsjsonlogic_free(ptr >>> 0, 1));
|
|
690
698
|
|
|
691
|
-
class JsJsonLogic {
|
|
699
|
+
export class JsJsonLogic {
|
|
692
700
|
|
|
693
701
|
__destroy_into_raw() {
|
|
694
702
|
const ptr = this.__wbg_ptr;
|
|
@@ -722,7 +730,113 @@ class JsJsonLogic {
|
|
|
722
730
|
}
|
|
723
731
|
if (Symbol.dispose) JsJsonLogic.prototype[Symbol.dispose] = JsJsonLogic.prototype.free;
|
|
724
732
|
|
|
725
|
-
|
|
733
|
+
const MultiIssuerAuthorizeResultFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
734
|
+
? { register: () => {}, unregister: () => {} }
|
|
735
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_multiissuerauthorizeresult_free(ptr >>> 0, 1));
|
|
736
|
+
/**
|
|
737
|
+
* A WASM wrapper for the Rust `cedarling::MultiIssuerAuthorizeResult` struct.
|
|
738
|
+
* Represents the result of a multi-issuer authorization request.
|
|
739
|
+
*/
|
|
740
|
+
export class MultiIssuerAuthorizeResult {
|
|
741
|
+
|
|
742
|
+
static __wrap(ptr) {
|
|
743
|
+
ptr = ptr >>> 0;
|
|
744
|
+
const obj = Object.create(MultiIssuerAuthorizeResult.prototype);
|
|
745
|
+
obj.__wbg_ptr = ptr;
|
|
746
|
+
MultiIssuerAuthorizeResultFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
747
|
+
return obj;
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
__destroy_into_raw() {
|
|
751
|
+
const ptr = this.__wbg_ptr;
|
|
752
|
+
this.__wbg_ptr = 0;
|
|
753
|
+
MultiIssuerAuthorizeResultFinalization.unregister(this);
|
|
754
|
+
return ptr;
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
free() {
|
|
758
|
+
const ptr = this.__destroy_into_raw();
|
|
759
|
+
wasm.__wbg_multiissuerauthorizeresult_free(ptr, 0);
|
|
760
|
+
}
|
|
761
|
+
/**
|
|
762
|
+
* Result of Cedar policy authorization
|
|
763
|
+
* @returns {AuthorizeResultResponse}
|
|
764
|
+
*/
|
|
765
|
+
get response() {
|
|
766
|
+
const ret = wasm.__wbg_get_multiissuerauthorizeresult_response(this.__wbg_ptr);
|
|
767
|
+
return AuthorizeResultResponse.__wrap(ret);
|
|
768
|
+
}
|
|
769
|
+
/**
|
|
770
|
+
* Result of Cedar policy authorization
|
|
771
|
+
* @param {AuthorizeResultResponse} arg0
|
|
772
|
+
*/
|
|
773
|
+
set response(arg0) {
|
|
774
|
+
_assertClass(arg0, AuthorizeResultResponse);
|
|
775
|
+
var ptr0 = arg0.__destroy_into_raw();
|
|
776
|
+
wasm.__wbg_set_multiissuerauthorizeresult_response(this.__wbg_ptr, ptr0);
|
|
777
|
+
}
|
|
778
|
+
/**
|
|
779
|
+
* Result of authorization
|
|
780
|
+
* true means `ALLOW`
|
|
781
|
+
* false means `Deny`
|
|
782
|
+
* @returns {boolean}
|
|
783
|
+
*/
|
|
784
|
+
get decision() {
|
|
785
|
+
const ret = wasm.__wbg_get_multiissuerauthorizeresult_decision(this.__wbg_ptr);
|
|
786
|
+
return ret !== 0;
|
|
787
|
+
}
|
|
788
|
+
/**
|
|
789
|
+
* Result of authorization
|
|
790
|
+
* true means `ALLOW`
|
|
791
|
+
* false means `Deny`
|
|
792
|
+
* @param {boolean} arg0
|
|
793
|
+
*/
|
|
794
|
+
set decision(arg0) {
|
|
795
|
+
wasm.__wbg_set_multiissuerauthorizeresult_decision(this.__wbg_ptr, arg0);
|
|
796
|
+
}
|
|
797
|
+
/**
|
|
798
|
+
* Request ID of the authorization request
|
|
799
|
+
* @returns {string}
|
|
800
|
+
*/
|
|
801
|
+
get request_id() {
|
|
802
|
+
let deferred1_0;
|
|
803
|
+
let deferred1_1;
|
|
804
|
+
try {
|
|
805
|
+
const ret = wasm.__wbg_get_multiissuerauthorizeresult_request_id(this.__wbg_ptr);
|
|
806
|
+
deferred1_0 = ret[0];
|
|
807
|
+
deferred1_1 = ret[1];
|
|
808
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
809
|
+
} finally {
|
|
810
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
811
|
+
}
|
|
812
|
+
}
|
|
813
|
+
/**
|
|
814
|
+
* Request ID of the authorization request
|
|
815
|
+
* @param {string} arg0
|
|
816
|
+
*/
|
|
817
|
+
set request_id(arg0) {
|
|
818
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
819
|
+
const len0 = WASM_VECTOR_LEN;
|
|
820
|
+
wasm.__wbg_set_multiissuerauthorizeresult_request_id(this.__wbg_ptr, ptr0, len0);
|
|
821
|
+
}
|
|
822
|
+
/**
|
|
823
|
+
* Convert `MultiIssuerAuthorizeResult` to json string value
|
|
824
|
+
* @returns {string}
|
|
825
|
+
*/
|
|
826
|
+
json_string() {
|
|
827
|
+
let deferred1_0;
|
|
828
|
+
let deferred1_1;
|
|
829
|
+
try {
|
|
830
|
+
const ret = wasm.multiissuerauthorizeresult_json_string(this.__wbg_ptr);
|
|
831
|
+
deferred1_0 = ret[0];
|
|
832
|
+
deferred1_1 = ret[1];
|
|
833
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
834
|
+
} finally {
|
|
835
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
836
|
+
}
|
|
837
|
+
}
|
|
838
|
+
}
|
|
839
|
+
if (Symbol.dispose) MultiIssuerAuthorizeResult.prototype[Symbol.dispose] = MultiIssuerAuthorizeResult.prototype.free;
|
|
726
840
|
|
|
727
841
|
const PolicyEvaluationErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
728
842
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -733,7 +847,7 @@ const PolicyEvaluationErrorFinalization = (typeof FinalizationRegistry === 'unde
|
|
|
733
847
|
*
|
|
734
848
|
* Represents an error that occurred when evaluating a Cedar policy.
|
|
735
849
|
*/
|
|
736
|
-
class PolicyEvaluationError {
|
|
850
|
+
export class PolicyEvaluationError {
|
|
737
851
|
|
|
738
852
|
static __wrap(ptr) {
|
|
739
853
|
ptr = ptr >>> 0;
|
|
@@ -789,668 +903,646 @@ class PolicyEvaluationError {
|
|
|
789
903
|
}
|
|
790
904
|
if (Symbol.dispose) PolicyEvaluationError.prototype[Symbol.dispose] = PolicyEvaluationError.prototype.free;
|
|
791
905
|
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
exports.__wbg_Error_e83987f665cf5504 = function(arg0, arg1) {
|
|
795
|
-
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
796
|
-
return ret;
|
|
797
|
-
};
|
|
798
|
-
|
|
799
|
-
exports.__wbg_Number_bb48ca12f395cd08 = function(arg0) {
|
|
800
|
-
const ret = Number(arg0);
|
|
801
|
-
return ret;
|
|
802
|
-
};
|
|
803
|
-
|
|
804
|
-
exports.__wbg_String_8f0eb39a4a4c2f66 = function(arg0, arg1) {
|
|
805
|
-
const ret = String(arg1);
|
|
806
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
807
|
-
const len1 = WASM_VECTOR_LEN;
|
|
808
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
809
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
810
|
-
};
|
|
811
|
-
|
|
812
|
-
exports.__wbg___wbindgen_bigint_get_as_i64_f3ebc5a755000afd = function(arg0, arg1) {
|
|
813
|
-
const v = arg1;
|
|
814
|
-
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
815
|
-
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
816
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
817
|
-
};
|
|
818
|
-
|
|
819
|
-
exports.__wbg___wbindgen_boolean_get_6d5a1ee65bab5f68 = function(arg0) {
|
|
820
|
-
const v = arg0;
|
|
821
|
-
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
822
|
-
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
823
|
-
};
|
|
824
|
-
|
|
825
|
-
exports.__wbg___wbindgen_debug_string_df47ffb5e35e6763 = function(arg0, arg1) {
|
|
826
|
-
const ret = debugString(arg1);
|
|
827
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
828
|
-
const len1 = WASM_VECTOR_LEN;
|
|
829
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
830
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
831
|
-
};
|
|
832
|
-
|
|
833
|
-
exports.__wbg___wbindgen_in_bb933bd9e1b3bc0f = function(arg0, arg1) {
|
|
834
|
-
const ret = arg0 in arg1;
|
|
835
|
-
return ret;
|
|
836
|
-
};
|
|
837
|
-
|
|
838
|
-
exports.__wbg___wbindgen_is_bigint_cb320707dcd35f0b = function(arg0) {
|
|
839
|
-
const ret = typeof(arg0) === 'bigint';
|
|
840
|
-
return ret;
|
|
841
|
-
};
|
|
842
|
-
|
|
843
|
-
exports.__wbg___wbindgen_is_function_ee8a6c5833c90377 = function(arg0) {
|
|
844
|
-
const ret = typeof(arg0) === 'function';
|
|
845
|
-
return ret;
|
|
846
|
-
};
|
|
847
|
-
|
|
848
|
-
exports.__wbg___wbindgen_is_object_c818261d21f283a4 = function(arg0) {
|
|
849
|
-
const val = arg0;
|
|
850
|
-
const ret = typeof(val) === 'object' && val !== null;
|
|
851
|
-
return ret;
|
|
852
|
-
};
|
|
853
|
-
|
|
854
|
-
exports.__wbg___wbindgen_is_string_fbb76cb2940daafd = function(arg0) {
|
|
855
|
-
const ret = typeof(arg0) === 'string';
|
|
856
|
-
return ret;
|
|
857
|
-
};
|
|
858
|
-
|
|
859
|
-
exports.__wbg___wbindgen_is_undefined_2d472862bd29a478 = function(arg0) {
|
|
860
|
-
const ret = arg0 === undefined;
|
|
861
|
-
return ret;
|
|
862
|
-
};
|
|
863
|
-
|
|
864
|
-
exports.__wbg___wbindgen_jsval_eq_6b13ab83478b1c50 = function(arg0, arg1) {
|
|
865
|
-
const ret = arg0 === arg1;
|
|
866
|
-
return ret;
|
|
867
|
-
};
|
|
868
|
-
|
|
869
|
-
exports.__wbg___wbindgen_jsval_loose_eq_b664b38a2f582147 = function(arg0, arg1) {
|
|
870
|
-
const ret = arg0 == arg1;
|
|
871
|
-
return ret;
|
|
872
|
-
};
|
|
873
|
-
|
|
874
|
-
exports.__wbg___wbindgen_number_get_a20bf9b85341449d = function(arg0, arg1) {
|
|
875
|
-
const obj = arg1;
|
|
876
|
-
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
877
|
-
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
878
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
879
|
-
};
|
|
880
|
-
|
|
881
|
-
exports.__wbg___wbindgen_string_get_e4f06c90489ad01b = function(arg0, arg1) {
|
|
882
|
-
const obj = arg1;
|
|
883
|
-
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
884
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
885
|
-
var len1 = WASM_VECTOR_LEN;
|
|
886
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
887
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
888
|
-
};
|
|
889
|
-
|
|
890
|
-
exports.__wbg___wbindgen_throw_b855445ff6a94295 = function(arg0, arg1) {
|
|
891
|
-
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
892
|
-
};
|
|
893
|
-
|
|
894
|
-
exports.__wbg__wbg_cb_unref_2454a539ea5790d9 = function(arg0) {
|
|
895
|
-
arg0._wbg_cb_unref();
|
|
896
|
-
};
|
|
897
|
-
|
|
898
|
-
exports.__wbg_abort_28ad55c5825b004d = function(arg0, arg1) {
|
|
899
|
-
arg0.abort(arg1);
|
|
900
|
-
};
|
|
901
|
-
|
|
902
|
-
exports.__wbg_abort_e7eb059f72f9ed0c = function(arg0) {
|
|
903
|
-
arg0.abort();
|
|
904
|
-
};
|
|
905
|
-
|
|
906
|
-
exports.__wbg_append_b577eb3a177bc0fa = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
907
|
-
arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
908
|
-
}, arguments) };
|
|
909
|
-
|
|
910
|
-
exports.__wbg_arrayBuffer_b375eccb84b4ddf3 = function() { return handleError(function (arg0) {
|
|
911
|
-
const ret = arg0.arrayBuffer();
|
|
912
|
-
return ret;
|
|
913
|
-
}, arguments) };
|
|
906
|
+
const EXPECTED_RESPONSE_TYPES = new Set(['basic', 'cors', 'default']);
|
|
914
907
|
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
exports.__wbg_call_525440f72fbfc0ea = function() { return handleError(function (arg0, arg1, arg2) {
|
|
921
|
-
const ret = arg0.call(arg1, arg2);
|
|
922
|
-
return ret;
|
|
923
|
-
}, arguments) };
|
|
924
|
-
|
|
925
|
-
exports.__wbg_call_e762c39fa8ea36bf = function() { return handleError(function (arg0, arg1) {
|
|
926
|
-
const ret = arg0.call(arg1);
|
|
927
|
-
return ret;
|
|
928
|
-
}, arguments) };
|
|
929
|
-
|
|
930
|
-
exports.__wbg_cedarling_new = function(arg0) {
|
|
931
|
-
const ret = Cedarling.__wrap(arg0);
|
|
932
|
-
return ret;
|
|
933
|
-
};
|
|
934
|
-
|
|
935
|
-
exports.__wbg_clearTimeout_7a42b49784aea641 = function(arg0) {
|
|
936
|
-
const ret = clearTimeout(arg0);
|
|
937
|
-
return ret;
|
|
938
|
-
};
|
|
939
|
-
|
|
940
|
-
exports.__wbg_crypto_574e78ad8b13b65f = function(arg0) {
|
|
941
|
-
const ret = arg0.crypto;
|
|
942
|
-
return ret;
|
|
943
|
-
};
|
|
944
|
-
|
|
945
|
-
exports.__wbg_debug_755c0800f64c9a88 = function(arg0) {
|
|
946
|
-
console.debug(...arg0);
|
|
947
|
-
};
|
|
948
|
-
|
|
949
|
-
exports.__wbg_done_2042aa2670fb1db1 = function(arg0) {
|
|
950
|
-
const ret = arg0.done;
|
|
951
|
-
return ret;
|
|
952
|
-
};
|
|
953
|
-
|
|
954
|
-
exports.__wbg_entries_e171b586f8f6bdbf = function(arg0) {
|
|
955
|
-
const ret = Object.entries(arg0);
|
|
956
|
-
return ret;
|
|
957
|
-
};
|
|
958
|
-
|
|
959
|
-
exports.__wbg_entries_eb145c4da5c811f7 = function(arg0) {
|
|
960
|
-
const ret = arg0.entries();
|
|
961
|
-
return ret;
|
|
962
|
-
};
|
|
963
|
-
|
|
964
|
-
exports.__wbg_error_7a6b3e62969d4270 = function(arg0) {
|
|
965
|
-
console.error(...arg0);
|
|
966
|
-
};
|
|
967
|
-
|
|
968
|
-
exports.__wbg_fetch_74a3e84ebd2c9a0e = function(arg0) {
|
|
969
|
-
const ret = fetch(arg0);
|
|
970
|
-
return ret;
|
|
971
|
-
};
|
|
908
|
+
async function __wbg_load(module, imports) {
|
|
909
|
+
if (typeof Response === 'function' && module instanceof Response) {
|
|
910
|
+
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
|
911
|
+
try {
|
|
912
|
+
return await WebAssembly.instantiateStreaming(module, imports);
|
|
972
913
|
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
return ret;
|
|
976
|
-
};
|
|
914
|
+
} catch (e) {
|
|
915
|
+
const validResponse = module.ok && EXPECTED_RESPONSE_TYPES.has(module.type);
|
|
977
916
|
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
return ret;
|
|
981
|
-
}, arguments) };
|
|
917
|
+
if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
|
|
918
|
+
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);
|
|
982
919
|
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
}
|
|
920
|
+
} else {
|
|
921
|
+
throw e;
|
|
922
|
+
}
|
|
923
|
+
}
|
|
924
|
+
}
|
|
986
925
|
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
}, arguments) };
|
|
926
|
+
const bytes = await module.arrayBuffer();
|
|
927
|
+
return await WebAssembly.instantiate(bytes, imports);
|
|
990
928
|
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
return ret;
|
|
994
|
-
};
|
|
929
|
+
} else {
|
|
930
|
+
const instance = await WebAssembly.instantiate(module, imports);
|
|
995
931
|
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
return ret;
|
|
999
|
-
};
|
|
932
|
+
if (instance instanceof WebAssembly.Instance) {
|
|
933
|
+
return { instance, module };
|
|
1000
934
|
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
}
|
|
935
|
+
} else {
|
|
936
|
+
return instance;
|
|
937
|
+
}
|
|
938
|
+
}
|
|
939
|
+
}
|
|
1005
940
|
|
|
1006
|
-
|
|
1007
|
-
const
|
|
1008
|
-
|
|
1009
|
-
|
|
941
|
+
function __wbg_get_imports() {
|
|
942
|
+
const imports = {};
|
|
943
|
+
imports.wbg = {};
|
|
944
|
+
imports.wbg.__wbg_Error_e83987f665cf5504 = function(arg0, arg1) {
|
|
945
|
+
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
946
|
+
return ret;
|
|
947
|
+
};
|
|
948
|
+
imports.wbg.__wbg_Number_bb48ca12f395cd08 = function(arg0) {
|
|
949
|
+
const ret = Number(arg0);
|
|
950
|
+
return ret;
|
|
951
|
+
};
|
|
952
|
+
imports.wbg.__wbg_String_8f0eb39a4a4c2f66 = function(arg0, arg1) {
|
|
953
|
+
const ret = String(arg1);
|
|
954
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
955
|
+
const len1 = WASM_VECTOR_LEN;
|
|
956
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
957
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
958
|
+
};
|
|
959
|
+
imports.wbg.__wbg___wbindgen_bigint_get_as_i64_f3ebc5a755000afd = function(arg0, arg1) {
|
|
960
|
+
const v = arg1;
|
|
961
|
+
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
962
|
+
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
963
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
964
|
+
};
|
|
965
|
+
imports.wbg.__wbg___wbindgen_boolean_get_6d5a1ee65bab5f68 = function(arg0) {
|
|
966
|
+
const v = arg0;
|
|
967
|
+
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
968
|
+
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
969
|
+
};
|
|
970
|
+
imports.wbg.__wbg___wbindgen_debug_string_df47ffb5e35e6763 = function(arg0, arg1) {
|
|
971
|
+
const ret = debugString(arg1);
|
|
972
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
973
|
+
const len1 = WASM_VECTOR_LEN;
|
|
974
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
975
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
976
|
+
};
|
|
977
|
+
imports.wbg.__wbg___wbindgen_in_bb933bd9e1b3bc0f = function(arg0, arg1) {
|
|
978
|
+
const ret = arg0 in arg1;
|
|
979
|
+
return ret;
|
|
980
|
+
};
|
|
981
|
+
imports.wbg.__wbg___wbindgen_is_bigint_cb320707dcd35f0b = function(arg0) {
|
|
982
|
+
const ret = typeof(arg0) === 'bigint';
|
|
983
|
+
return ret;
|
|
984
|
+
};
|
|
985
|
+
imports.wbg.__wbg___wbindgen_is_function_ee8a6c5833c90377 = function(arg0) {
|
|
986
|
+
const ret = typeof(arg0) === 'function';
|
|
987
|
+
return ret;
|
|
988
|
+
};
|
|
989
|
+
imports.wbg.__wbg___wbindgen_is_object_c818261d21f283a4 = function(arg0) {
|
|
990
|
+
const val = arg0;
|
|
991
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
992
|
+
return ret;
|
|
993
|
+
};
|
|
994
|
+
imports.wbg.__wbg___wbindgen_is_string_fbb76cb2940daafd = function(arg0) {
|
|
995
|
+
const ret = typeof(arg0) === 'string';
|
|
996
|
+
return ret;
|
|
997
|
+
};
|
|
998
|
+
imports.wbg.__wbg___wbindgen_is_undefined_2d472862bd29a478 = function(arg0) {
|
|
999
|
+
const ret = arg0 === undefined;
|
|
1000
|
+
return ret;
|
|
1001
|
+
};
|
|
1002
|
+
imports.wbg.__wbg___wbindgen_jsval_eq_6b13ab83478b1c50 = function(arg0, arg1) {
|
|
1003
|
+
const ret = arg0 === arg1;
|
|
1004
|
+
return ret;
|
|
1005
|
+
};
|
|
1006
|
+
imports.wbg.__wbg___wbindgen_jsval_loose_eq_b664b38a2f582147 = function(arg0, arg1) {
|
|
1007
|
+
const ret = arg0 == arg1;
|
|
1008
|
+
return ret;
|
|
1009
|
+
};
|
|
1010
|
+
imports.wbg.__wbg___wbindgen_number_get_a20bf9b85341449d = function(arg0, arg1) {
|
|
1011
|
+
const obj = arg1;
|
|
1012
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
1013
|
+
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
1014
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1015
|
+
};
|
|
1016
|
+
imports.wbg.__wbg___wbindgen_string_get_e4f06c90489ad01b = function(arg0, arg1) {
|
|
1017
|
+
const obj = arg1;
|
|
1018
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
1019
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1020
|
+
var len1 = WASM_VECTOR_LEN;
|
|
1021
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1022
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1023
|
+
};
|
|
1024
|
+
imports.wbg.__wbg___wbindgen_throw_b855445ff6a94295 = function(arg0, arg1) {
|
|
1025
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
1026
|
+
};
|
|
1027
|
+
imports.wbg.__wbg__wbg_cb_unref_2454a539ea5790d9 = function(arg0) {
|
|
1028
|
+
arg0._wbg_cb_unref();
|
|
1029
|
+
};
|
|
1030
|
+
imports.wbg.__wbg_abort_28ad55c5825b004d = function(arg0, arg1) {
|
|
1031
|
+
arg0.abort(arg1);
|
|
1032
|
+
};
|
|
1033
|
+
imports.wbg.__wbg_abort_e7eb059f72f9ed0c = function(arg0) {
|
|
1034
|
+
arg0.abort();
|
|
1035
|
+
};
|
|
1036
|
+
imports.wbg.__wbg_append_b577eb3a177bc0fa = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1037
|
+
arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
1038
|
+
}, arguments) };
|
|
1039
|
+
imports.wbg.__wbg_arrayBuffer_b375eccb84b4ddf3 = function() { return handleError(function (arg0) {
|
|
1040
|
+
const ret = arg0.arrayBuffer();
|
|
1041
|
+
return ret;
|
|
1042
|
+
}, arguments) };
|
|
1043
|
+
imports.wbg.__wbg_authorizeresult_new = function(arg0) {
|
|
1044
|
+
const ret = AuthorizeResult.__wrap(arg0);
|
|
1045
|
+
return ret;
|
|
1046
|
+
};
|
|
1047
|
+
imports.wbg.__wbg_call_525440f72fbfc0ea = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1048
|
+
const ret = arg0.call(arg1, arg2);
|
|
1049
|
+
return ret;
|
|
1050
|
+
}, arguments) };
|
|
1051
|
+
imports.wbg.__wbg_call_e762c39fa8ea36bf = function() { return handleError(function (arg0, arg1) {
|
|
1052
|
+
const ret = arg0.call(arg1);
|
|
1053
|
+
return ret;
|
|
1054
|
+
}, arguments) };
|
|
1055
|
+
imports.wbg.__wbg_cedarling_new = function(arg0) {
|
|
1056
|
+
const ret = Cedarling.__wrap(arg0);
|
|
1057
|
+
return ret;
|
|
1058
|
+
};
|
|
1059
|
+
imports.wbg.__wbg_clearTimeout_7a42b49784aea641 = function(arg0) {
|
|
1060
|
+
const ret = clearTimeout(arg0);
|
|
1061
|
+
return ret;
|
|
1062
|
+
};
|
|
1063
|
+
imports.wbg.__wbg_crypto_574e78ad8b13b65f = function(arg0) {
|
|
1064
|
+
const ret = arg0.crypto;
|
|
1065
|
+
return ret;
|
|
1066
|
+
};
|
|
1067
|
+
imports.wbg.__wbg_debug_755c0800f64c9a88 = function(arg0) {
|
|
1068
|
+
console.debug(...arg0);
|
|
1069
|
+
};
|
|
1070
|
+
imports.wbg.__wbg_done_2042aa2670fb1db1 = function(arg0) {
|
|
1071
|
+
const ret = arg0.done;
|
|
1072
|
+
return ret;
|
|
1073
|
+
};
|
|
1074
|
+
imports.wbg.__wbg_entries_e171b586f8f6bdbf = function(arg0) {
|
|
1075
|
+
const ret = Object.entries(arg0);
|
|
1076
|
+
return ret;
|
|
1077
|
+
};
|
|
1078
|
+
imports.wbg.__wbg_entries_eb145c4da5c811f7 = function(arg0) {
|
|
1079
|
+
const ret = arg0.entries();
|
|
1080
|
+
return ret;
|
|
1081
|
+
};
|
|
1082
|
+
imports.wbg.__wbg_error_7a6b3e62969d4270 = function(arg0) {
|
|
1083
|
+
console.error(...arg0);
|
|
1084
|
+
};
|
|
1085
|
+
imports.wbg.__wbg_fetch_74a3e84ebd2c9a0e = function(arg0) {
|
|
1086
|
+
const ret = fetch(arg0);
|
|
1087
|
+
return ret;
|
|
1088
|
+
};
|
|
1089
|
+
imports.wbg.__wbg_fetch_f8ba0e29a9d6de0d = function(arg0, arg1) {
|
|
1090
|
+
const ret = arg0.fetch(arg1);
|
|
1091
|
+
return ret;
|
|
1092
|
+
};
|
|
1093
|
+
imports.wbg.__wbg_fromEntries_c7159f3787268c9f = function() { return handleError(function (arg0) {
|
|
1094
|
+
const ret = Object.fromEntries(arg0);
|
|
1095
|
+
return ret;
|
|
1096
|
+
}, arguments) };
|
|
1097
|
+
imports.wbg.__wbg_getRandomValues_1c61fac11405ffdc = function() { return handleError(function (arg0, arg1) {
|
|
1098
|
+
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
1099
|
+
}, arguments) };
|
|
1100
|
+
imports.wbg.__wbg_getRandomValues_b8f5dbd5f3995a9e = function() { return handleError(function (arg0, arg1) {
|
|
1101
|
+
arg0.getRandomValues(arg1);
|
|
1102
|
+
}, arguments) };
|
|
1103
|
+
imports.wbg.__wbg_getTime_14776bfb48a1bff9 = function(arg0) {
|
|
1104
|
+
const ret = arg0.getTime();
|
|
1105
|
+
return ret;
|
|
1106
|
+
};
|
|
1107
|
+
imports.wbg.__wbg_getTimezoneOffset_d391cb11d54969f8 = function(arg0) {
|
|
1108
|
+
const ret = arg0.getTimezoneOffset();
|
|
1109
|
+
return ret;
|
|
1110
|
+
};
|
|
1111
|
+
imports.wbg.__wbg_get_7bed016f185add81 = function(arg0, arg1) {
|
|
1112
|
+
const ret = arg0[arg1 >>> 0];
|
|
1113
|
+
return ret;
|
|
1114
|
+
};
|
|
1115
|
+
imports.wbg.__wbg_get_efcb449f58ec27c2 = function() { return handleError(function (arg0, arg1) {
|
|
1116
|
+
const ret = Reflect.get(arg0, arg1);
|
|
1117
|
+
return ret;
|
|
1118
|
+
}, arguments) };
|
|
1119
|
+
imports.wbg.__wbg_get_with_ref_key_1dc361bd10053bfe = function(arg0, arg1) {
|
|
1120
|
+
const ret = arg0[arg1];
|
|
1121
|
+
return ret;
|
|
1122
|
+
};
|
|
1123
|
+
imports.wbg.__wbg_has_787fafc980c3ccdb = function() { return handleError(function (arg0, arg1) {
|
|
1124
|
+
const ret = Reflect.has(arg0, arg1);
|
|
1125
|
+
return ret;
|
|
1126
|
+
}, arguments) };
|
|
1127
|
+
imports.wbg.__wbg_headers_b87d7eaba61c3278 = function(arg0) {
|
|
1128
|
+
const ret = arg0.headers;
|
|
1129
|
+
return ret;
|
|
1130
|
+
};
|
|
1131
|
+
imports.wbg.__wbg_info_f0ce824723264770 = function(arg0) {
|
|
1132
|
+
console.info(...arg0);
|
|
1133
|
+
};
|
|
1134
|
+
imports.wbg.__wbg_instanceof_ArrayBuffer_70beb1189ca63b38 = function(arg0) {
|
|
1135
|
+
let result;
|
|
1136
|
+
try {
|
|
1137
|
+
result = arg0 instanceof ArrayBuffer;
|
|
1138
|
+
} catch (_) {
|
|
1139
|
+
result = false;
|
|
1140
|
+
}
|
|
1141
|
+
const ret = result;
|
|
1142
|
+
return ret;
|
|
1143
|
+
};
|
|
1144
|
+
imports.wbg.__wbg_instanceof_Array_fca44e0f4a7f6240 = function(arg0) {
|
|
1145
|
+
let result;
|
|
1146
|
+
try {
|
|
1147
|
+
result = arg0 instanceof Array;
|
|
1148
|
+
} catch (_) {
|
|
1149
|
+
result = false;
|
|
1150
|
+
}
|
|
1151
|
+
const ret = result;
|
|
1152
|
+
return ret;
|
|
1153
|
+
};
|
|
1154
|
+
imports.wbg.__wbg_instanceof_Map_8579b5e2ab5437c7 = function(arg0) {
|
|
1155
|
+
let result;
|
|
1156
|
+
try {
|
|
1157
|
+
result = arg0 instanceof Map;
|
|
1158
|
+
} catch (_) {
|
|
1159
|
+
result = false;
|
|
1160
|
+
}
|
|
1161
|
+
const ret = result;
|
|
1162
|
+
return ret;
|
|
1163
|
+
};
|
|
1164
|
+
imports.wbg.__wbg_instanceof_Response_f4f3e87e07f3135c = function(arg0) {
|
|
1165
|
+
let result;
|
|
1166
|
+
try {
|
|
1167
|
+
result = arg0 instanceof Response;
|
|
1168
|
+
} catch (_) {
|
|
1169
|
+
result = false;
|
|
1170
|
+
}
|
|
1171
|
+
const ret = result;
|
|
1172
|
+
return ret;
|
|
1173
|
+
};
|
|
1174
|
+
imports.wbg.__wbg_instanceof_Uint8Array_20c8e73002f7af98 = function(arg0) {
|
|
1175
|
+
let result;
|
|
1176
|
+
try {
|
|
1177
|
+
result = arg0 instanceof Uint8Array;
|
|
1178
|
+
} catch (_) {
|
|
1179
|
+
result = false;
|
|
1180
|
+
}
|
|
1181
|
+
const ret = result;
|
|
1182
|
+
return ret;
|
|
1183
|
+
};
|
|
1184
|
+
imports.wbg.__wbg_isArray_96e0af9891d0945d = function(arg0) {
|
|
1185
|
+
const ret = Array.isArray(arg0);
|
|
1186
|
+
return ret;
|
|
1187
|
+
};
|
|
1188
|
+
imports.wbg.__wbg_isSafeInteger_d216eda7911dde36 = function(arg0) {
|
|
1189
|
+
const ret = Number.isSafeInteger(arg0);
|
|
1190
|
+
return ret;
|
|
1191
|
+
};
|
|
1192
|
+
imports.wbg.__wbg_iterator_e5822695327a3c39 = function() {
|
|
1193
|
+
const ret = Symbol.iterator;
|
|
1194
|
+
return ret;
|
|
1195
|
+
};
|
|
1196
|
+
imports.wbg.__wbg_keys_b4d27b02ad14f4be = function(arg0) {
|
|
1197
|
+
const ret = Object.keys(arg0);
|
|
1198
|
+
return ret;
|
|
1199
|
+
};
|
|
1200
|
+
imports.wbg.__wbg_length_69bca3cb64fc8748 = function(arg0) {
|
|
1201
|
+
const ret = arg0.length;
|
|
1202
|
+
return ret;
|
|
1203
|
+
};
|
|
1204
|
+
imports.wbg.__wbg_length_cdd215e10d9dd507 = function(arg0) {
|
|
1205
|
+
const ret = arg0.length;
|
|
1206
|
+
return ret;
|
|
1207
|
+
};
|
|
1208
|
+
imports.wbg.__wbg_log_33f7f6dbc0d0ccf4 = function(arg0) {
|
|
1209
|
+
console.log(...arg0);
|
|
1210
|
+
};
|
|
1211
|
+
imports.wbg.__wbg_msCrypto_a61aeb35a24c1329 = function(arg0) {
|
|
1212
|
+
const ret = arg0.msCrypto;
|
|
1213
|
+
return ret;
|
|
1214
|
+
};
|
|
1215
|
+
imports.wbg.__wbg_multiissuerauthorizeresult_new = function(arg0) {
|
|
1216
|
+
const ret = MultiIssuerAuthorizeResult.__wrap(arg0);
|
|
1217
|
+
return ret;
|
|
1218
|
+
};
|
|
1219
|
+
imports.wbg.__wbg_new_0_f9740686d739025c = function() {
|
|
1220
|
+
const ret = new Date();
|
|
1221
|
+
return ret;
|
|
1222
|
+
};
|
|
1223
|
+
imports.wbg.__wbg_new_1acc0b6eea89d040 = function() {
|
|
1224
|
+
const ret = new Object();
|
|
1225
|
+
return ret;
|
|
1226
|
+
};
|
|
1227
|
+
imports.wbg.__wbg_new_2531773dac38ebb3 = function() { return handleError(function () {
|
|
1228
|
+
const ret = new AbortController();
|
|
1229
|
+
return ret;
|
|
1230
|
+
}, arguments) };
|
|
1231
|
+
imports.wbg.__wbg_new_3c3d849046688a66 = function(arg0, arg1) {
|
|
1232
|
+
try {
|
|
1233
|
+
var state0 = {a: arg0, b: arg1};
|
|
1234
|
+
var cb0 = (arg0, arg1) => {
|
|
1235
|
+
const a = state0.a;
|
|
1236
|
+
state0.a = 0;
|
|
1237
|
+
try {
|
|
1238
|
+
return wasm_bindgen__convert__closures_____invoke__h4b59ba169ea05287(a, state0.b, arg0, arg1);
|
|
1239
|
+
} finally {
|
|
1240
|
+
state0.a = a;
|
|
1241
|
+
}
|
|
1242
|
+
};
|
|
1243
|
+
const ret = new Promise(cb0);
|
|
1244
|
+
return ret;
|
|
1245
|
+
} finally {
|
|
1246
|
+
state0.a = state0.b = 0;
|
|
1247
|
+
}
|
|
1248
|
+
};
|
|
1249
|
+
imports.wbg.__wbg_new_5a79be3ab53b8aa5 = function(arg0) {
|
|
1250
|
+
const ret = new Uint8Array(arg0);
|
|
1251
|
+
return ret;
|
|
1252
|
+
};
|
|
1253
|
+
imports.wbg.__wbg_new_68651c719dcda04e = function() {
|
|
1254
|
+
const ret = new Map();
|
|
1255
|
+
return ret;
|
|
1256
|
+
};
|
|
1257
|
+
imports.wbg.__wbg_new_93d9417ed3fb115d = function(arg0) {
|
|
1258
|
+
const ret = new Date(arg0);
|
|
1259
|
+
return ret;
|
|
1260
|
+
};
|
|
1261
|
+
imports.wbg.__wbg_new_9edf9838a2def39c = function() { return handleError(function () {
|
|
1262
|
+
const ret = new Headers();
|
|
1263
|
+
return ret;
|
|
1264
|
+
}, arguments) };
|
|
1265
|
+
imports.wbg.__wbg_new_e17d9f43105b08be = function() {
|
|
1266
|
+
const ret = new Array();
|
|
1267
|
+
return ret;
|
|
1268
|
+
};
|
|
1269
|
+
imports.wbg.__wbg_new_from_slice_92f4d78ca282a2d2 = function(arg0, arg1) {
|
|
1270
|
+
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
1271
|
+
return ret;
|
|
1272
|
+
};
|
|
1273
|
+
imports.wbg.__wbg_new_no_args_ee98eee5275000a4 = function(arg0, arg1) {
|
|
1274
|
+
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
1275
|
+
return ret;
|
|
1276
|
+
};
|
|
1277
|
+
imports.wbg.__wbg_new_with_args_02cbc439ce3fd7db = function(arg0, arg1, arg2, arg3) {
|
|
1278
|
+
const ret = new Function(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
|
|
1279
|
+
return ret;
|
|
1280
|
+
};
|
|
1281
|
+
imports.wbg.__wbg_new_with_length_01aa0dc35aa13543 = function(arg0) {
|
|
1282
|
+
const ret = new Uint8Array(arg0 >>> 0);
|
|
1283
|
+
return ret;
|
|
1284
|
+
};
|
|
1285
|
+
imports.wbg.__wbg_new_with_str_and_init_0ae7728b6ec367b1 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1286
|
+
const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
|
|
1287
|
+
return ret;
|
|
1288
|
+
}, arguments) };
|
|
1289
|
+
imports.wbg.__wbg_next_020810e0ae8ebcb0 = function() { return handleError(function (arg0) {
|
|
1290
|
+
const ret = arg0.next();
|
|
1291
|
+
return ret;
|
|
1292
|
+
}, arguments) };
|
|
1293
|
+
imports.wbg.__wbg_next_2c826fe5dfec6b6a = function(arg0) {
|
|
1294
|
+
const ret = arg0.next;
|
|
1295
|
+
return ret;
|
|
1296
|
+
};
|
|
1297
|
+
imports.wbg.__wbg_node_905d3e251edff8a2 = function(arg0) {
|
|
1298
|
+
const ret = arg0.node;
|
|
1299
|
+
return ret;
|
|
1300
|
+
};
|
|
1301
|
+
imports.wbg.__wbg_policyevaluationerror_new = function(arg0) {
|
|
1302
|
+
const ret = PolicyEvaluationError.__wrap(arg0);
|
|
1303
|
+
return ret;
|
|
1304
|
+
};
|
|
1305
|
+
imports.wbg.__wbg_process_dc0fbacc7c1c06f7 = function(arg0) {
|
|
1306
|
+
const ret = arg0.process;
|
|
1307
|
+
return ret;
|
|
1308
|
+
};
|
|
1309
|
+
imports.wbg.__wbg_prototypesetcall_2a6620b6922694b2 = function(arg0, arg1, arg2) {
|
|
1310
|
+
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
1311
|
+
};
|
|
1312
|
+
imports.wbg.__wbg_push_df81a39d04db858c = function(arg0, arg1) {
|
|
1313
|
+
const ret = arg0.push(arg1);
|
|
1314
|
+
return ret;
|
|
1315
|
+
};
|
|
1316
|
+
imports.wbg.__wbg_queueMicrotask_34d692c25c47d05b = function(arg0) {
|
|
1317
|
+
const ret = arg0.queueMicrotask;
|
|
1318
|
+
return ret;
|
|
1319
|
+
};
|
|
1320
|
+
imports.wbg.__wbg_queueMicrotask_9d76cacb20c84d58 = function(arg0) {
|
|
1321
|
+
queueMicrotask(arg0);
|
|
1322
|
+
};
|
|
1323
|
+
imports.wbg.__wbg_randomFillSync_ac0988aba3254290 = function() { return handleError(function (arg0, arg1) {
|
|
1324
|
+
arg0.randomFillSync(arg1);
|
|
1325
|
+
}, arguments) };
|
|
1326
|
+
imports.wbg.__wbg_require_60cc747a6bc5215a = function() { return handleError(function () {
|
|
1327
|
+
const ret = module.require;
|
|
1328
|
+
return ret;
|
|
1329
|
+
}, arguments) };
|
|
1330
|
+
imports.wbg.__wbg_resolve_caf97c30b83f7053 = function(arg0) {
|
|
1331
|
+
const ret = Promise.resolve(arg0);
|
|
1332
|
+
return ret;
|
|
1333
|
+
};
|
|
1334
|
+
imports.wbg.__wbg_setTimeout_7bb3429662ab1e70 = function(arg0, arg1) {
|
|
1335
|
+
const ret = setTimeout(arg0, arg1);
|
|
1336
|
+
return ret;
|
|
1337
|
+
};
|
|
1338
|
+
imports.wbg.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
|
|
1339
|
+
arg0[arg1] = arg2;
|
|
1340
|
+
};
|
|
1341
|
+
imports.wbg.__wbg_set_907fb406c34a251d = function(arg0, arg1, arg2) {
|
|
1342
|
+
const ret = arg0.set(arg1, arg2);
|
|
1343
|
+
return ret;
|
|
1344
|
+
};
|
|
1345
|
+
imports.wbg.__wbg_set_body_3c365989753d61f4 = function(arg0, arg1) {
|
|
1346
|
+
arg0.body = arg1;
|
|
1347
|
+
};
|
|
1348
|
+
imports.wbg.__wbg_set_c213c871859d6500 = function(arg0, arg1, arg2) {
|
|
1349
|
+
arg0[arg1 >>> 0] = arg2;
|
|
1350
|
+
};
|
|
1351
|
+
imports.wbg.__wbg_set_c2abbebe8b9ebee1 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1352
|
+
const ret = Reflect.set(arg0, arg1, arg2);
|
|
1353
|
+
return ret;
|
|
1354
|
+
}, arguments) };
|
|
1355
|
+
imports.wbg.__wbg_set_cache_2f9deb19b92b81e3 = function(arg0, arg1) {
|
|
1356
|
+
arg0.cache = __wbindgen_enum_RequestCache[arg1];
|
|
1357
|
+
};
|
|
1358
|
+
imports.wbg.__wbg_set_credentials_f621cd2d85c0c228 = function(arg0, arg1) {
|
|
1359
|
+
arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
|
|
1360
|
+
};
|
|
1361
|
+
imports.wbg.__wbg_set_headers_6926da238cd32ee4 = function(arg0, arg1) {
|
|
1362
|
+
arg0.headers = arg1;
|
|
1363
|
+
};
|
|
1364
|
+
imports.wbg.__wbg_set_method_c02d8cbbe204ac2d = function(arg0, arg1, arg2) {
|
|
1365
|
+
arg0.method = getStringFromWasm0(arg1, arg2);
|
|
1366
|
+
};
|
|
1367
|
+
imports.wbg.__wbg_set_mode_52ef73cfa79639cb = function(arg0, arg1) {
|
|
1368
|
+
arg0.mode = __wbindgen_enum_RequestMode[arg1];
|
|
1369
|
+
};
|
|
1370
|
+
imports.wbg.__wbg_set_signal_dda2cf7ccb6bee0f = function(arg0, arg1) {
|
|
1371
|
+
arg0.signal = arg1;
|
|
1372
|
+
};
|
|
1373
|
+
imports.wbg.__wbg_signal_4db5aa055bf9eb9a = function(arg0) {
|
|
1374
|
+
const ret = arg0.signal;
|
|
1375
|
+
return ret;
|
|
1376
|
+
};
|
|
1377
|
+
imports.wbg.__wbg_static_accessor_GLOBAL_89e1d9ac6a1b250e = function() {
|
|
1378
|
+
const ret = typeof global === 'undefined' ? null : global;
|
|
1379
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1380
|
+
};
|
|
1381
|
+
imports.wbg.__wbg_static_accessor_GLOBAL_THIS_8b530f326a9e48ac = function() {
|
|
1382
|
+
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
1383
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1384
|
+
};
|
|
1385
|
+
imports.wbg.__wbg_static_accessor_SELF_6fdf4b64710cc91b = function() {
|
|
1386
|
+
const ret = typeof self === 'undefined' ? null : self;
|
|
1387
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1388
|
+
};
|
|
1389
|
+
imports.wbg.__wbg_static_accessor_WINDOW_b45bfc5a37f6cfa2 = function() {
|
|
1390
|
+
const ret = typeof window === 'undefined' ? null : window;
|
|
1391
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1392
|
+
};
|
|
1393
|
+
imports.wbg.__wbg_status_de7eed5a7a5bfd5d = function(arg0) {
|
|
1394
|
+
const ret = arg0.status;
|
|
1395
|
+
return ret;
|
|
1396
|
+
};
|
|
1397
|
+
imports.wbg.__wbg_stringify_b5fb28f6465d9c3e = function() { return handleError(function (arg0) {
|
|
1398
|
+
const ret = JSON.stringify(arg0);
|
|
1399
|
+
return ret;
|
|
1400
|
+
}, arguments) };
|
|
1401
|
+
imports.wbg.__wbg_subarray_480600f3d6a9f26c = function(arg0, arg1, arg2) {
|
|
1402
|
+
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
1403
|
+
return ret;
|
|
1404
|
+
};
|
|
1405
|
+
imports.wbg.__wbg_text_dc33c15c17bdfb52 = function() { return handleError(function (arg0) {
|
|
1406
|
+
const ret = arg0.text();
|
|
1407
|
+
return ret;
|
|
1408
|
+
}, arguments) };
|
|
1409
|
+
imports.wbg.__wbg_then_4f46f6544e6b4a28 = function(arg0, arg1) {
|
|
1410
|
+
const ret = arg0.then(arg1);
|
|
1411
|
+
return ret;
|
|
1412
|
+
};
|
|
1413
|
+
imports.wbg.__wbg_then_70d05cf780a18d77 = function(arg0, arg1, arg2) {
|
|
1414
|
+
const ret = arg0.then(arg1, arg2);
|
|
1415
|
+
return ret;
|
|
1416
|
+
};
|
|
1417
|
+
imports.wbg.__wbg_trace_15baa8999e3f2ed1 = function(arg0) {
|
|
1418
|
+
console.trace(...arg0);
|
|
1419
|
+
};
|
|
1420
|
+
imports.wbg.__wbg_url_b36d2a5008eb056f = function(arg0, arg1) {
|
|
1421
|
+
const ret = arg1.url;
|
|
1422
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1423
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1424
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1425
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1426
|
+
};
|
|
1427
|
+
imports.wbg.__wbg_value_692627309814bb8c = function(arg0) {
|
|
1428
|
+
const ret = arg0.value;
|
|
1429
|
+
return ret;
|
|
1430
|
+
};
|
|
1431
|
+
imports.wbg.__wbg_versions_c01dfd4722a88165 = function(arg0) {
|
|
1432
|
+
const ret = arg0.versions;
|
|
1433
|
+
return ret;
|
|
1434
|
+
};
|
|
1435
|
+
imports.wbg.__wbg_warn_a2d80c28bcdb1933 = function(arg0) {
|
|
1436
|
+
console.warn(...arg0);
|
|
1437
|
+
};
|
|
1438
|
+
imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
|
|
1439
|
+
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
1440
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
1441
|
+
return ret;
|
|
1442
|
+
};
|
|
1443
|
+
imports.wbg.__wbindgen_cast_4625c577ab2ec9ee = function(arg0) {
|
|
1444
|
+
// Cast intrinsic for `U64 -> Externref`.
|
|
1445
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
1446
|
+
return ret;
|
|
1447
|
+
};
|
|
1448
|
+
imports.wbg.__wbindgen_cast_7476ec76802be9a6 = function(arg0, arg1) {
|
|
1449
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 520, function: Function { arguments: [], shim_idx: 521, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1450
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h412f0562fcad9c84, wasm_bindgen__convert__closures_____invoke__hb85a0d6bfa2beadc);
|
|
1451
|
+
return ret;
|
|
1452
|
+
};
|
|
1453
|
+
imports.wbg.__wbindgen_cast_9ae0607507abb057 = function(arg0) {
|
|
1454
|
+
// Cast intrinsic for `I64 -> Externref`.
|
|
1455
|
+
const ret = arg0;
|
|
1456
|
+
return ret;
|
|
1457
|
+
};
|
|
1458
|
+
imports.wbg.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
|
|
1459
|
+
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
1460
|
+
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
1461
|
+
return ret;
|
|
1462
|
+
};
|
|
1463
|
+
imports.wbg.__wbindgen_cast_d13a751f153ef52c = function(arg0, arg1) {
|
|
1464
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 565, function: Function { arguments: [Externref], shim_idx: 566, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1465
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h8bb11a3ec59bf31f, wasm_bindgen__convert__closures_____invoke__h1c715d53d5a00020);
|
|
1466
|
+
return ret;
|
|
1467
|
+
};
|
|
1468
|
+
imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
|
|
1469
|
+
// Cast intrinsic for `F64 -> Externref`.
|
|
1470
|
+
const ret = arg0;
|
|
1471
|
+
return ret;
|
|
1472
|
+
};
|
|
1473
|
+
imports.wbg.__wbindgen_init_externref_table = function() {
|
|
1474
|
+
const table = wasm.__wbindgen_externrefs;
|
|
1475
|
+
const offset = table.grow(4);
|
|
1476
|
+
table.set(0, undefined);
|
|
1477
|
+
table.set(offset + 0, undefined);
|
|
1478
|
+
table.set(offset + 1, null);
|
|
1479
|
+
table.set(offset + 2, true);
|
|
1480
|
+
table.set(offset + 3, false);
|
|
1481
|
+
;
|
|
1482
|
+
};
|
|
1010
1483
|
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
return ret;
|
|
1014
|
-
};
|
|
1484
|
+
return imports;
|
|
1485
|
+
}
|
|
1015
1486
|
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1487
|
+
function __wbg_finalize_init(instance, module) {
|
|
1488
|
+
wasm = instance.exports;
|
|
1489
|
+
__wbg_init.__wbindgen_wasm_module = module;
|
|
1490
|
+
cachedDataViewMemory0 = null;
|
|
1491
|
+
cachedUint8ArrayMemory0 = null;
|
|
1020
1492
|
|
|
1021
|
-
exports.__wbg_headers_b87d7eaba61c3278 = function(arg0) {
|
|
1022
|
-
const ret = arg0.headers;
|
|
1023
|
-
return ret;
|
|
1024
|
-
};
|
|
1025
1493
|
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
}
|
|
1494
|
+
wasm.__wbindgen_start();
|
|
1495
|
+
return wasm;
|
|
1496
|
+
}
|
|
1029
1497
|
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
try {
|
|
1033
|
-
result = arg0 instanceof ArrayBuffer;
|
|
1034
|
-
} catch (_) {
|
|
1035
|
-
result = false;
|
|
1036
|
-
}
|
|
1037
|
-
const ret = result;
|
|
1038
|
-
return ret;
|
|
1039
|
-
};
|
|
1498
|
+
function initSync(module) {
|
|
1499
|
+
if (wasm !== undefined) return wasm;
|
|
1040
1500
|
|
|
1041
|
-
exports.__wbg_instanceof_Array_fca44e0f4a7f6240 = function(arg0) {
|
|
1042
|
-
let result;
|
|
1043
|
-
try {
|
|
1044
|
-
result = arg0 instanceof Array;
|
|
1045
|
-
} catch (_) {
|
|
1046
|
-
result = false;
|
|
1047
|
-
}
|
|
1048
|
-
const ret = result;
|
|
1049
|
-
return ret;
|
|
1050
|
-
};
|
|
1051
1501
|
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1502
|
+
if (typeof module !== 'undefined') {
|
|
1503
|
+
if (Object.getPrototypeOf(module) === Object.prototype) {
|
|
1504
|
+
({module} = module)
|
|
1505
|
+
} else {
|
|
1506
|
+
console.warn('using deprecated parameters for `initSync()`; pass a single object instead')
|
|
1507
|
+
}
|
|
1058
1508
|
}
|
|
1059
|
-
const ret = result;
|
|
1060
|
-
return ret;
|
|
1061
|
-
};
|
|
1062
1509
|
|
|
1063
|
-
|
|
1064
|
-
let result;
|
|
1065
|
-
try {
|
|
1066
|
-
result = arg0 instanceof Response;
|
|
1067
|
-
} catch (_) {
|
|
1068
|
-
result = false;
|
|
1069
|
-
}
|
|
1070
|
-
const ret = result;
|
|
1071
|
-
return ret;
|
|
1072
|
-
};
|
|
1510
|
+
const imports = __wbg_get_imports();
|
|
1073
1511
|
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
try {
|
|
1077
|
-
result = arg0 instanceof Uint8Array;
|
|
1078
|
-
} catch (_) {
|
|
1079
|
-
result = false;
|
|
1512
|
+
if (!(module instanceof WebAssembly.Module)) {
|
|
1513
|
+
module = new WebAssembly.Module(module);
|
|
1080
1514
|
}
|
|
1081
|
-
const ret = result;
|
|
1082
|
-
return ret;
|
|
1083
|
-
};
|
|
1084
|
-
|
|
1085
|
-
exports.__wbg_isArray_96e0af9891d0945d = function(arg0) {
|
|
1086
|
-
const ret = Array.isArray(arg0);
|
|
1087
|
-
return ret;
|
|
1088
|
-
};
|
|
1089
1515
|
|
|
1090
|
-
|
|
1091
|
-
const ret = Number.isSafeInteger(arg0);
|
|
1092
|
-
return ret;
|
|
1093
|
-
};
|
|
1094
|
-
|
|
1095
|
-
exports.__wbg_iterator_e5822695327a3c39 = function() {
|
|
1096
|
-
const ret = Symbol.iterator;
|
|
1097
|
-
return ret;
|
|
1098
|
-
};
|
|
1099
|
-
|
|
1100
|
-
exports.__wbg_keys_b4d27b02ad14f4be = function(arg0) {
|
|
1101
|
-
const ret = Object.keys(arg0);
|
|
1102
|
-
return ret;
|
|
1103
|
-
};
|
|
1104
|
-
|
|
1105
|
-
exports.__wbg_length_69bca3cb64fc8748 = function(arg0) {
|
|
1106
|
-
const ret = arg0.length;
|
|
1107
|
-
return ret;
|
|
1108
|
-
};
|
|
1109
|
-
|
|
1110
|
-
exports.__wbg_length_cdd215e10d9dd507 = function(arg0) {
|
|
1111
|
-
const ret = arg0.length;
|
|
1112
|
-
return ret;
|
|
1113
|
-
};
|
|
1114
|
-
|
|
1115
|
-
exports.__wbg_log_33f7f6dbc0d0ccf4 = function(arg0) {
|
|
1116
|
-
console.log(...arg0);
|
|
1117
|
-
};
|
|
1118
|
-
|
|
1119
|
-
exports.__wbg_msCrypto_a61aeb35a24c1329 = function(arg0) {
|
|
1120
|
-
const ret = arg0.msCrypto;
|
|
1121
|
-
return ret;
|
|
1122
|
-
};
|
|
1516
|
+
const instance = new WebAssembly.Instance(module, imports);
|
|
1123
1517
|
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
return ret;
|
|
1127
|
-
};
|
|
1518
|
+
return __wbg_finalize_init(instance, module);
|
|
1519
|
+
}
|
|
1128
1520
|
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
return ret;
|
|
1132
|
-
};
|
|
1521
|
+
async function __wbg_init(module_or_path) {
|
|
1522
|
+
if (wasm !== undefined) return wasm;
|
|
1133
1523
|
|
|
1134
|
-
exports.__wbg_new_2531773dac38ebb3 = function() { return handleError(function () {
|
|
1135
|
-
const ret = new AbortController();
|
|
1136
|
-
return ret;
|
|
1137
|
-
}, arguments) };
|
|
1138
1524
|
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
try {
|
|
1146
|
-
return wasm_bindgen__convert__closures_____invoke__h4b59ba169ea05287(a, state0.b, arg0, arg1);
|
|
1147
|
-
} finally {
|
|
1148
|
-
state0.a = a;
|
|
1149
|
-
}
|
|
1150
|
-
};
|
|
1151
|
-
const ret = new Promise(cb0);
|
|
1152
|
-
return ret;
|
|
1153
|
-
} finally {
|
|
1154
|
-
state0.a = state0.b = 0;
|
|
1525
|
+
if (typeof module_or_path !== 'undefined') {
|
|
1526
|
+
if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
|
|
1527
|
+
({module_or_path} = module_or_path)
|
|
1528
|
+
} else {
|
|
1529
|
+
console.warn('using deprecated parameters for the initialization function; pass a single object instead')
|
|
1530
|
+
}
|
|
1155
1531
|
}
|
|
1156
|
-
};
|
|
1157
|
-
|
|
1158
|
-
exports.__wbg_new_5a79be3ab53b8aa5 = function(arg0) {
|
|
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) {
|
|
1184
|
-
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
1185
|
-
return ret;
|
|
1186
|
-
};
|
|
1187
|
-
|
|
1188
|
-
exports.__wbg_new_no_args_ee98eee5275000a4 = function(arg0, arg1) {
|
|
1189
|
-
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
1190
|
-
return ret;
|
|
1191
|
-
};
|
|
1192
|
-
|
|
1193
|
-
exports.__wbg_new_with_args_02cbc439ce3fd7db = function(arg0, arg1, arg2, arg3) {
|
|
1194
|
-
const ret = new Function(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
|
|
1195
|
-
return ret;
|
|
1196
|
-
};
|
|
1197
|
-
|
|
1198
|
-
exports.__wbg_new_with_length_01aa0dc35aa13543 = function(arg0) {
|
|
1199
|
-
const ret = new Uint8Array(arg0 >>> 0);
|
|
1200
|
-
return ret;
|
|
1201
|
-
};
|
|
1202
|
-
|
|
1203
|
-
exports.__wbg_new_with_str_and_init_0ae7728b6ec367b1 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1204
|
-
const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
|
|
1205
|
-
return ret;
|
|
1206
|
-
}, arguments) };
|
|
1207
|
-
|
|
1208
|
-
exports.__wbg_next_020810e0ae8ebcb0 = function() { return handleError(function (arg0) {
|
|
1209
|
-
const ret = arg0.next();
|
|
1210
|
-
return ret;
|
|
1211
|
-
}, arguments) };
|
|
1212
|
-
|
|
1213
|
-
exports.__wbg_next_2c826fe5dfec6b6a = function(arg0) {
|
|
1214
|
-
const ret = arg0.next;
|
|
1215
|
-
return ret;
|
|
1216
|
-
};
|
|
1217
1532
|
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
exports.__wbg_policyevaluationerror_new = function(arg0) {
|
|
1224
|
-
const ret = PolicyEvaluationError.__wrap(arg0);
|
|
1225
|
-
return ret;
|
|
1226
|
-
};
|
|
1227
|
-
|
|
1228
|
-
exports.__wbg_process_dc0fbacc7c1c06f7 = function(arg0) {
|
|
1229
|
-
const ret = arg0.process;
|
|
1230
|
-
return ret;
|
|
1231
|
-
};
|
|
1232
|
-
|
|
1233
|
-
exports.__wbg_prototypesetcall_2a6620b6922694b2 = function(arg0, arg1, arg2) {
|
|
1234
|
-
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
1235
|
-
};
|
|
1236
|
-
|
|
1237
|
-
exports.__wbg_push_df81a39d04db858c = function(arg0, arg1) {
|
|
1238
|
-
const ret = arg0.push(arg1);
|
|
1239
|
-
return ret;
|
|
1240
|
-
};
|
|
1241
|
-
|
|
1242
|
-
exports.__wbg_queueMicrotask_34d692c25c47d05b = function(arg0) {
|
|
1243
|
-
const ret = arg0.queueMicrotask;
|
|
1244
|
-
return ret;
|
|
1245
|
-
};
|
|
1246
|
-
|
|
1247
|
-
exports.__wbg_queueMicrotask_9d76cacb20c84d58 = function(arg0) {
|
|
1248
|
-
queueMicrotask(arg0);
|
|
1249
|
-
};
|
|
1250
|
-
|
|
1251
|
-
exports.__wbg_randomFillSync_ac0988aba3254290 = function() { return handleError(function (arg0, arg1) {
|
|
1252
|
-
arg0.randomFillSync(arg1);
|
|
1253
|
-
}, arguments) };
|
|
1254
|
-
|
|
1255
|
-
exports.__wbg_require_60cc747a6bc5215a = function() { return handleError(function () {
|
|
1256
|
-
const ret = module.require;
|
|
1257
|
-
return ret;
|
|
1258
|
-
}, arguments) };
|
|
1259
|
-
|
|
1260
|
-
exports.__wbg_resolve_caf97c30b83f7053 = function(arg0) {
|
|
1261
|
-
const ret = Promise.resolve(arg0);
|
|
1262
|
-
return ret;
|
|
1263
|
-
};
|
|
1264
|
-
|
|
1265
|
-
exports.__wbg_setTimeout_7bb3429662ab1e70 = function(arg0, arg1) {
|
|
1266
|
-
const ret = setTimeout(arg0, arg1);
|
|
1267
|
-
return ret;
|
|
1268
|
-
};
|
|
1269
|
-
|
|
1270
|
-
exports.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
|
|
1271
|
-
arg0[arg1] = arg2;
|
|
1272
|
-
};
|
|
1273
|
-
|
|
1274
|
-
exports.__wbg_set_907fb406c34a251d = function(arg0, arg1, arg2) {
|
|
1275
|
-
const ret = arg0.set(arg1, arg2);
|
|
1276
|
-
return ret;
|
|
1277
|
-
};
|
|
1278
|
-
|
|
1279
|
-
exports.__wbg_set_body_3c365989753d61f4 = function(arg0, arg1) {
|
|
1280
|
-
arg0.body = arg1;
|
|
1281
|
-
};
|
|
1282
|
-
|
|
1283
|
-
exports.__wbg_set_c213c871859d6500 = function(arg0, arg1, arg2) {
|
|
1284
|
-
arg0[arg1 >>> 0] = arg2;
|
|
1285
|
-
};
|
|
1286
|
-
|
|
1287
|
-
exports.__wbg_set_c2abbebe8b9ebee1 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1288
|
-
const ret = Reflect.set(arg0, arg1, arg2);
|
|
1289
|
-
return ret;
|
|
1290
|
-
}, arguments) };
|
|
1291
|
-
|
|
1292
|
-
exports.__wbg_set_cache_2f9deb19b92b81e3 = function(arg0, arg1) {
|
|
1293
|
-
arg0.cache = __wbindgen_enum_RequestCache[arg1];
|
|
1294
|
-
};
|
|
1295
|
-
|
|
1296
|
-
exports.__wbg_set_credentials_f621cd2d85c0c228 = function(arg0, arg1) {
|
|
1297
|
-
arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
|
|
1298
|
-
};
|
|
1299
|
-
|
|
1300
|
-
exports.__wbg_set_headers_6926da238cd32ee4 = function(arg0, arg1) {
|
|
1301
|
-
arg0.headers = arg1;
|
|
1302
|
-
};
|
|
1303
|
-
|
|
1304
|
-
exports.__wbg_set_method_c02d8cbbe204ac2d = function(arg0, arg1, arg2) {
|
|
1305
|
-
arg0.method = getStringFromWasm0(arg1, arg2);
|
|
1306
|
-
};
|
|
1307
|
-
|
|
1308
|
-
exports.__wbg_set_mode_52ef73cfa79639cb = function(arg0, arg1) {
|
|
1309
|
-
arg0.mode = __wbindgen_enum_RequestMode[arg1];
|
|
1310
|
-
};
|
|
1311
|
-
|
|
1312
|
-
exports.__wbg_set_signal_dda2cf7ccb6bee0f = function(arg0, arg1) {
|
|
1313
|
-
arg0.signal = arg1;
|
|
1314
|
-
};
|
|
1315
|
-
|
|
1316
|
-
exports.__wbg_signal_4db5aa055bf9eb9a = function(arg0) {
|
|
1317
|
-
const ret = arg0.signal;
|
|
1318
|
-
return ret;
|
|
1319
|
-
};
|
|
1320
|
-
|
|
1321
|
-
exports.__wbg_static_accessor_GLOBAL_89e1d9ac6a1b250e = function() {
|
|
1322
|
-
const ret = typeof global === 'undefined' ? null : global;
|
|
1323
|
-
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1324
|
-
};
|
|
1325
|
-
|
|
1326
|
-
exports.__wbg_static_accessor_GLOBAL_THIS_8b530f326a9e48ac = function() {
|
|
1327
|
-
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
1328
|
-
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1329
|
-
};
|
|
1330
|
-
|
|
1331
|
-
exports.__wbg_static_accessor_SELF_6fdf4b64710cc91b = function() {
|
|
1332
|
-
const ret = typeof self === 'undefined' ? null : self;
|
|
1333
|
-
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1334
|
-
};
|
|
1335
|
-
|
|
1336
|
-
exports.__wbg_static_accessor_WINDOW_b45bfc5a37f6cfa2 = function() {
|
|
1337
|
-
const ret = typeof window === 'undefined' ? null : window;
|
|
1338
|
-
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1339
|
-
};
|
|
1340
|
-
|
|
1341
|
-
exports.__wbg_status_de7eed5a7a5bfd5d = function(arg0) {
|
|
1342
|
-
const ret = arg0.status;
|
|
1343
|
-
return ret;
|
|
1344
|
-
};
|
|
1345
|
-
|
|
1346
|
-
exports.__wbg_stringify_b5fb28f6465d9c3e = function() { return handleError(function (arg0) {
|
|
1347
|
-
const ret = JSON.stringify(arg0);
|
|
1348
|
-
return ret;
|
|
1349
|
-
}, arguments) };
|
|
1350
|
-
|
|
1351
|
-
exports.__wbg_subarray_480600f3d6a9f26c = function(arg0, arg1, arg2) {
|
|
1352
|
-
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
1353
|
-
return ret;
|
|
1354
|
-
};
|
|
1355
|
-
|
|
1356
|
-
exports.__wbg_text_dc33c15c17bdfb52 = function() { return handleError(function (arg0) {
|
|
1357
|
-
const ret = arg0.text();
|
|
1358
|
-
return ret;
|
|
1359
|
-
}, arguments) };
|
|
1360
|
-
|
|
1361
|
-
exports.__wbg_then_4f46f6544e6b4a28 = function(arg0, arg1) {
|
|
1362
|
-
const ret = arg0.then(arg1);
|
|
1363
|
-
return ret;
|
|
1364
|
-
};
|
|
1365
|
-
|
|
1366
|
-
exports.__wbg_then_70d05cf780a18d77 = function(arg0, arg1, arg2) {
|
|
1367
|
-
const ret = arg0.then(arg1, arg2);
|
|
1368
|
-
return ret;
|
|
1369
|
-
};
|
|
1370
|
-
|
|
1371
|
-
exports.__wbg_trace_15baa8999e3f2ed1 = function(arg0) {
|
|
1372
|
-
console.trace(...arg0);
|
|
1373
|
-
};
|
|
1374
|
-
|
|
1375
|
-
exports.__wbg_url_b36d2a5008eb056f = function(arg0, arg1) {
|
|
1376
|
-
const ret = arg1.url;
|
|
1377
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1378
|
-
const len1 = WASM_VECTOR_LEN;
|
|
1379
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1380
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1381
|
-
};
|
|
1382
|
-
|
|
1383
|
-
exports.__wbg_value_692627309814bb8c = function(arg0) {
|
|
1384
|
-
const ret = arg0.value;
|
|
1385
|
-
return ret;
|
|
1386
|
-
};
|
|
1387
|
-
|
|
1388
|
-
exports.__wbg_versions_c01dfd4722a88165 = function(arg0) {
|
|
1389
|
-
const ret = arg0.versions;
|
|
1390
|
-
return ret;
|
|
1391
|
-
};
|
|
1392
|
-
|
|
1393
|
-
exports.__wbg_warn_a2d80c28bcdb1933 = function(arg0) {
|
|
1394
|
-
console.warn(...arg0);
|
|
1395
|
-
};
|
|
1396
|
-
|
|
1397
|
-
exports.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
|
|
1398
|
-
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
1399
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
|
1400
|
-
return ret;
|
|
1401
|
-
};
|
|
1402
|
-
|
|
1403
|
-
exports.__wbindgen_cast_2fb66661e8d075cf = function(arg0, arg1) {
|
|
1404
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 553, function: Function { arguments: [Externref], shim_idx: 554, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1405
|
-
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h8bb11a3ec59bf31f, wasm_bindgen__convert__closures_____invoke__h1c715d53d5a00020);
|
|
1406
|
-
return ret;
|
|
1407
|
-
};
|
|
1408
|
-
|
|
1409
|
-
exports.__wbindgen_cast_4625c577ab2ec9ee = function(arg0) {
|
|
1410
|
-
// Cast intrinsic for `U64 -> Externref`.
|
|
1411
|
-
const ret = BigInt.asUintN(64, arg0);
|
|
1412
|
-
return ret;
|
|
1413
|
-
};
|
|
1414
|
-
|
|
1415
|
-
exports.__wbindgen_cast_9ae0607507abb057 = function(arg0) {
|
|
1416
|
-
// Cast intrinsic for `I64 -> Externref`.
|
|
1417
|
-
const ret = arg0;
|
|
1418
|
-
return ret;
|
|
1419
|
-
};
|
|
1533
|
+
if (typeof module_or_path === 'undefined') {
|
|
1534
|
+
module_or_path = new URL('cedarling_wasm_bg.wasm', import.meta.url);
|
|
1535
|
+
}
|
|
1536
|
+
const imports = __wbg_get_imports();
|
|
1420
1537
|
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
return ret;
|
|
1425
|
-
};
|
|
1538
|
+
if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {
|
|
1539
|
+
module_or_path = fetch(module_or_path);
|
|
1540
|
+
}
|
|
1426
1541
|
|
|
1427
|
-
|
|
1428
|
-
// Cast intrinsic for `F64 -> Externref`.
|
|
1429
|
-
const ret = arg0;
|
|
1430
|
-
return ret;
|
|
1431
|
-
};
|
|
1542
|
+
const { instance, module } = await __wbg_load(await module_or_path, imports);
|
|
1432
1543
|
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__ha0787d3d14449f11, wasm_bindgen__convert__closures_____invoke__hf8ac7184f86fbcce);
|
|
1436
|
-
return ret;
|
|
1437
|
-
};
|
|
1438
|
-
|
|
1439
|
-
exports.__wbindgen_init_externref_table = function() {
|
|
1440
|
-
const table = wasm.__wbindgen_externrefs;
|
|
1441
|
-
const offset = table.grow(4);
|
|
1442
|
-
table.set(0, undefined);
|
|
1443
|
-
table.set(offset + 0, undefined);
|
|
1444
|
-
table.set(offset + 1, null);
|
|
1445
|
-
table.set(offset + 2, true);
|
|
1446
|
-
table.set(offset + 3, false);
|
|
1447
|
-
;
|
|
1448
|
-
};
|
|
1449
|
-
|
|
1450
|
-
const wasmPath = `${__dirname}/cedarling_wasm_bg.wasm`;
|
|
1451
|
-
const wasmBytes = require('fs').readFileSync(wasmPath);
|
|
1452
|
-
const wasmModule = new WebAssembly.Module(wasmBytes);
|
|
1453
|
-
const wasm = exports.__wasm = new WebAssembly.Instance(wasmModule, imports).exports;
|
|
1454
|
-
|
|
1455
|
-
wasm.__wbindgen_start();
|
|
1544
|
+
return __wbg_finalize_init(instance, module);
|
|
1545
|
+
}
|
|
1456
1546
|
|
|
1547
|
+
export { initSync };
|
|
1548
|
+
export default __wbg_init;
|