@janssenproject/cedarling_wasm 0.0.220-nodejs → 0.0.221
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/cedarling_wasm.d.ts +77 -0
- package/cedarling_wasm.js +630 -651
- package/cedarling_wasm_bg.wasm +0 -0
- package/package.json +6 -2
package/cedarling_wasm.js
CHANGED
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
let imports = {};
|
|
3
|
-
imports['__wbindgen_placeholder__'] = module.exports;
|
|
4
1
|
let wasm;
|
|
5
|
-
const { TextDecoder, TextEncoder } = require(`util`);
|
|
6
2
|
|
|
7
3
|
let cachedUint8ArrayMemory0 = null;
|
|
8
4
|
|
|
@@ -13,11 +9,19 @@ function getUint8ArrayMemory0() {
|
|
|
13
9
|
return cachedUint8ArrayMemory0;
|
|
14
10
|
}
|
|
15
11
|
|
|
16
|
-
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
12
|
+
let cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
|
|
17
13
|
|
|
18
|
-
cachedTextDecoder.decode();
|
|
14
|
+
if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
|
|
19
15
|
|
|
16
|
+
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
17
|
+
let numBytesDecoded = 0;
|
|
20
18
|
function decodeText(ptr, len) {
|
|
19
|
+
numBytesDecoded += len;
|
|
20
|
+
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
21
|
+
cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
|
|
22
|
+
cachedTextDecoder.decode();
|
|
23
|
+
numBytesDecoded = len;
|
|
24
|
+
}
|
|
21
25
|
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
22
26
|
}
|
|
23
27
|
|
|
@@ -28,7 +32,7 @@ function getStringFromWasm0(ptr, len) {
|
|
|
28
32
|
|
|
29
33
|
let WASM_VECTOR_LEN = 0;
|
|
30
34
|
|
|
31
|
-
const cachedTextEncoder = new TextEncoder('utf-8');
|
|
35
|
+
const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
|
|
32
36
|
|
|
33
37
|
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
|
34
38
|
? function (arg, view) {
|
|
@@ -216,10 +220,10 @@ function debugString(val) {
|
|
|
216
220
|
* @param {any} config
|
|
217
221
|
* @returns {Promise<Cedarling>}
|
|
218
222
|
*/
|
|
219
|
-
|
|
223
|
+
export function init(config) {
|
|
220
224
|
const ret = wasm.init(config);
|
|
221
225
|
return ret;
|
|
222
|
-
}
|
|
226
|
+
}
|
|
223
227
|
|
|
224
228
|
function takeFromExternrefTable0(idx) {
|
|
225
229
|
const value = wasm.__wbindgen_export_4.get(idx);
|
|
@@ -268,7 +272,7 @@ const AuthorizeResultFinalization = (typeof FinalizationRegistry === 'undefined'
|
|
|
268
272
|
* A WASM wrapper for the Rust `cedarling::AuthorizeResult` struct.
|
|
269
273
|
* Represents the result of an authorization request.
|
|
270
274
|
*/
|
|
271
|
-
class AuthorizeResult {
|
|
275
|
+
export class AuthorizeResult {
|
|
272
276
|
|
|
273
277
|
static __wrap(ptr) {
|
|
274
278
|
ptr = ptr >>> 0;
|
|
@@ -404,7 +408,6 @@ class AuthorizeResult {
|
|
|
404
408
|
return ret === 0 ? undefined : AuthorizeResultResponse.__wrap(ret);
|
|
405
409
|
}
|
|
406
410
|
}
|
|
407
|
-
module.exports.AuthorizeResult = AuthorizeResult;
|
|
408
411
|
|
|
409
412
|
const AuthorizeResultResponseFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
410
413
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -413,7 +416,7 @@ const AuthorizeResultResponseFinalization = (typeof FinalizationRegistry === 'un
|
|
|
413
416
|
* A WASM wrapper for the Rust `cedar_policy::Response` struct.
|
|
414
417
|
* Represents the result of an authorization request.
|
|
415
418
|
*/
|
|
416
|
-
class AuthorizeResultResponse {
|
|
419
|
+
export class AuthorizeResultResponse {
|
|
417
420
|
|
|
418
421
|
static __wrap(ptr) {
|
|
419
422
|
ptr = ptr >>> 0;
|
|
@@ -451,7 +454,6 @@ class AuthorizeResultResponse {
|
|
|
451
454
|
return Diagnostics.__wrap(ret);
|
|
452
455
|
}
|
|
453
456
|
}
|
|
454
|
-
module.exports.AuthorizeResultResponse = AuthorizeResultResponse;
|
|
455
457
|
|
|
456
458
|
const CedarlingFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
457
459
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -459,7 +461,7 @@ const CedarlingFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
459
461
|
/**
|
|
460
462
|
* The instance of the Cedarling application.
|
|
461
463
|
*/
|
|
462
|
-
class Cedarling {
|
|
464
|
+
export class Cedarling {
|
|
463
465
|
|
|
464
466
|
static __wrap(ptr) {
|
|
465
467
|
ptr = ptr >>> 0;
|
|
@@ -620,7 +622,6 @@ class Cedarling {
|
|
|
620
622
|
return ret;
|
|
621
623
|
}
|
|
622
624
|
}
|
|
623
|
-
module.exports.Cedarling = Cedarling;
|
|
624
625
|
|
|
625
626
|
const DiagnosticsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
626
627
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -631,7 +632,7 @@ const DiagnosticsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
631
632
|
*
|
|
632
633
|
* Provides detailed information about how a policy decision was made, including policies that contributed to the decision and any errors encountered during evaluation.
|
|
633
634
|
*/
|
|
634
|
-
class Diagnostics {
|
|
635
|
+
export class Diagnostics {
|
|
635
636
|
|
|
636
637
|
static __wrap(ptr) {
|
|
637
638
|
ptr = ptr >>> 0;
|
|
@@ -677,13 +678,12 @@ class Diagnostics {
|
|
|
677
678
|
return v1;
|
|
678
679
|
}
|
|
679
680
|
}
|
|
680
|
-
module.exports.Diagnostics = Diagnostics;
|
|
681
681
|
|
|
682
682
|
const JsJsonLogicFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
683
683
|
? { register: () => {}, unregister: () => {} }
|
|
684
684
|
: new FinalizationRegistry(ptr => wasm.__wbg_jsjsonlogic_free(ptr >>> 0, 1));
|
|
685
685
|
|
|
686
|
-
class JsJsonLogic {
|
|
686
|
+
export class JsJsonLogic {
|
|
687
687
|
|
|
688
688
|
__destroy_into_raw() {
|
|
689
689
|
const ptr = this.__wbg_ptr;
|
|
@@ -715,7 +715,6 @@ class JsJsonLogic {
|
|
|
715
715
|
return takeFromExternrefTable0(ret[0]);
|
|
716
716
|
}
|
|
717
717
|
}
|
|
718
|
-
module.exports.JsJsonLogic = JsJsonLogic;
|
|
719
718
|
|
|
720
719
|
const PolicyEvaluationErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
721
720
|
? { register: () => {}, unregister: () => {} }
|
|
@@ -726,7 +725,7 @@ const PolicyEvaluationErrorFinalization = (typeof FinalizationRegistry === 'unde
|
|
|
726
725
|
*
|
|
727
726
|
* Represents an error that occurred when evaluating a Cedar policy.
|
|
728
727
|
*/
|
|
729
|
-
class PolicyEvaluationError {
|
|
728
|
+
export class PolicyEvaluationError {
|
|
730
729
|
|
|
731
730
|
static __wrap(ptr) {
|
|
732
731
|
ptr = ptr >>> 0;
|
|
@@ -780,671 +779,651 @@ class PolicyEvaluationError {
|
|
|
780
779
|
}
|
|
781
780
|
}
|
|
782
781
|
}
|
|
783
|
-
module.exports.PolicyEvaluationError = PolicyEvaluationError;
|
|
784
|
-
|
|
785
|
-
module.exports.__wbg_Error_0497d5bdba9362e5 = function(arg0, arg1) {
|
|
786
|
-
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
787
|
-
return ret;
|
|
788
|
-
};
|
|
789
|
-
|
|
790
|
-
module.exports.__wbg_String_8f0eb39a4a4c2f66 = function(arg0, arg1) {
|
|
791
|
-
const ret = String(arg1);
|
|
792
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
793
|
-
const len1 = WASM_VECTOR_LEN;
|
|
794
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
795
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
796
|
-
};
|
|
797
|
-
|
|
798
|
-
module.exports.__wbg_abort_18ba44d46e13d7fe = function(arg0) {
|
|
799
|
-
arg0.abort();
|
|
800
|
-
};
|
|
801
|
-
|
|
802
|
-
module.exports.__wbg_abort_4198a1129c47f21a = function(arg0, arg1) {
|
|
803
|
-
arg0.abort(arg1);
|
|
804
|
-
};
|
|
805
|
-
|
|
806
|
-
module.exports.__wbg_append_0342728346e47425 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
807
|
-
arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
808
|
-
}, arguments) };
|
|
809
|
-
|
|
810
|
-
module.exports.__wbg_arrayBuffer_d58b858456021d7f = function() { return handleError(function (arg0) {
|
|
811
|
-
const ret = arg0.arrayBuffer();
|
|
812
|
-
return ret;
|
|
813
|
-
}, arguments) };
|
|
814
|
-
|
|
815
|
-
module.exports.__wbg_authorizeresult_new = function(arg0) {
|
|
816
|
-
const ret = AuthorizeResult.__wrap(arg0);
|
|
817
|
-
return ret;
|
|
818
|
-
};
|
|
819
|
-
|
|
820
|
-
module.exports.__wbg_buffer_a1a27a0dfa70165d = function(arg0) {
|
|
821
|
-
const ret = arg0.buffer;
|
|
822
|
-
return ret;
|
|
823
|
-
};
|
|
824
|
-
|
|
825
|
-
module.exports.__wbg_call_f2db6205e5c51dc8 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
826
|
-
const ret = arg0.call(arg1, arg2);
|
|
827
|
-
return ret;
|
|
828
|
-
}, arguments) };
|
|
829
|
-
|
|
830
|
-
module.exports.__wbg_call_fbe8be8bf6436ce5 = function() { return handleError(function (arg0, arg1) {
|
|
831
|
-
const ret = arg0.call(arg1);
|
|
832
|
-
return ret;
|
|
833
|
-
}, arguments) };
|
|
834
|
-
|
|
835
|
-
module.exports.__wbg_cedarling_new = function(arg0) {
|
|
836
|
-
const ret = Cedarling.__wrap(arg0);
|
|
837
|
-
return ret;
|
|
838
|
-
};
|
|
839
782
|
|
|
840
|
-
|
|
841
|
-
const ret = clearTimeout(arg0);
|
|
842
|
-
return ret;
|
|
843
|
-
};
|
|
783
|
+
const EXPECTED_RESPONSE_TYPES = new Set(['basic', 'cors', 'default']);
|
|
844
784
|
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
785
|
+
async function __wbg_load(module, imports) {
|
|
786
|
+
if (typeof Response === 'function' && module instanceof Response) {
|
|
787
|
+
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
|
788
|
+
try {
|
|
789
|
+
return await WebAssembly.instantiateStreaming(module, imports);
|
|
849
790
|
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
};
|
|
791
|
+
} catch (e) {
|
|
792
|
+
const validResponse = module.ok && EXPECTED_RESPONSE_TYPES.has(module.type);
|
|
853
793
|
|
|
854
|
-
module.
|
|
855
|
-
|
|
856
|
-
return ret;
|
|
857
|
-
};
|
|
794
|
+
if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
|
|
795
|
+
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);
|
|
858
796
|
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
}
|
|
863
|
-
|
|
864
|
-
module.exports.__wbg_entries_c951fa14164704e7 = function(arg0) {
|
|
865
|
-
const ret = arg0.entries();
|
|
866
|
-
return ret;
|
|
867
|
-
};
|
|
797
|
+
} else {
|
|
798
|
+
throw e;
|
|
799
|
+
}
|
|
800
|
+
}
|
|
801
|
+
}
|
|
868
802
|
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
};
|
|
803
|
+
const bytes = await module.arrayBuffer();
|
|
804
|
+
return await WebAssembly.instantiate(bytes, imports);
|
|
872
805
|
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
return ret;
|
|
876
|
-
};
|
|
877
|
-
|
|
878
|
-
module.exports.__wbg_fetch_f156d10be9a5c88a = function(arg0) {
|
|
879
|
-
const ret = fetch(arg0);
|
|
880
|
-
return ret;
|
|
881
|
-
};
|
|
806
|
+
} else {
|
|
807
|
+
const instance = await WebAssembly.instantiate(module, imports);
|
|
882
808
|
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
return ret;
|
|
886
|
-
}, arguments) };
|
|
809
|
+
if (instance instanceof WebAssembly.Instance) {
|
|
810
|
+
return { instance, module };
|
|
887
811
|
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
}
|
|
812
|
+
} else {
|
|
813
|
+
return instance;
|
|
814
|
+
}
|
|
815
|
+
}
|
|
816
|
+
}
|
|
891
817
|
|
|
892
|
-
|
|
893
|
-
const
|
|
894
|
-
|
|
895
|
-
|
|
818
|
+
function __wbg_get_imports() {
|
|
819
|
+
const imports = {};
|
|
820
|
+
imports.wbg = {};
|
|
821
|
+
imports.wbg.__wbg_Error_0497d5bdba9362e5 = function(arg0, arg1) {
|
|
822
|
+
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
823
|
+
return ret;
|
|
824
|
+
};
|
|
825
|
+
imports.wbg.__wbg_String_8f0eb39a4a4c2f66 = function(arg0, arg1) {
|
|
826
|
+
const ret = String(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
|
+
imports.wbg.__wbg_abort_18ba44d46e13d7fe = function(arg0) {
|
|
833
|
+
arg0.abort();
|
|
834
|
+
};
|
|
835
|
+
imports.wbg.__wbg_abort_4198a1129c47f21a = function(arg0, arg1) {
|
|
836
|
+
arg0.abort(arg1);
|
|
837
|
+
};
|
|
838
|
+
imports.wbg.__wbg_append_0342728346e47425 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
839
|
+
arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
840
|
+
}, arguments) };
|
|
841
|
+
imports.wbg.__wbg_arrayBuffer_d58b858456021d7f = function() { return handleError(function (arg0) {
|
|
842
|
+
const ret = arg0.arrayBuffer();
|
|
843
|
+
return ret;
|
|
844
|
+
}, arguments) };
|
|
845
|
+
imports.wbg.__wbg_authorizeresult_new = function(arg0) {
|
|
846
|
+
const ret = AuthorizeResult.__wrap(arg0);
|
|
847
|
+
return ret;
|
|
848
|
+
};
|
|
849
|
+
imports.wbg.__wbg_buffer_a1a27a0dfa70165d = function(arg0) {
|
|
850
|
+
const ret = arg0.buffer;
|
|
851
|
+
return ret;
|
|
852
|
+
};
|
|
853
|
+
imports.wbg.__wbg_call_f2db6205e5c51dc8 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
854
|
+
const ret = arg0.call(arg1, arg2);
|
|
855
|
+
return ret;
|
|
856
|
+
}, arguments) };
|
|
857
|
+
imports.wbg.__wbg_call_fbe8be8bf6436ce5 = function() { return handleError(function (arg0, arg1) {
|
|
858
|
+
const ret = arg0.call(arg1);
|
|
859
|
+
return ret;
|
|
860
|
+
}, arguments) };
|
|
861
|
+
imports.wbg.__wbg_cedarling_new = function(arg0) {
|
|
862
|
+
const ret = Cedarling.__wrap(arg0);
|
|
863
|
+
return ret;
|
|
864
|
+
};
|
|
865
|
+
imports.wbg.__wbg_clearTimeout_6222fede17abcb1a = function(arg0) {
|
|
866
|
+
const ret = clearTimeout(arg0);
|
|
867
|
+
return ret;
|
|
868
|
+
};
|
|
869
|
+
imports.wbg.__wbg_crypto_574e78ad8b13b65f = function(arg0) {
|
|
870
|
+
const ret = arg0.crypto;
|
|
871
|
+
return ret;
|
|
872
|
+
};
|
|
873
|
+
imports.wbg.__wbg_debug_d6b79b0bf4da29c2 = function(arg0) {
|
|
874
|
+
console.debug(...arg0);
|
|
875
|
+
};
|
|
876
|
+
imports.wbg.__wbg_done_4d01f352bade43b7 = function(arg0) {
|
|
877
|
+
const ret = arg0.done;
|
|
878
|
+
return ret;
|
|
879
|
+
};
|
|
880
|
+
imports.wbg.__wbg_entries_41651c850143b957 = function(arg0) {
|
|
881
|
+
const ret = Object.entries(arg0);
|
|
882
|
+
return ret;
|
|
883
|
+
};
|
|
884
|
+
imports.wbg.__wbg_entries_c951fa14164704e7 = function(arg0) {
|
|
885
|
+
const ret = arg0.entries();
|
|
886
|
+
return ret;
|
|
887
|
+
};
|
|
888
|
+
imports.wbg.__wbg_error_5cb390bc4013f9d1 = function(arg0) {
|
|
889
|
+
console.error(...arg0);
|
|
890
|
+
};
|
|
891
|
+
imports.wbg.__wbg_fetch_a8e43a4e138dfc93 = function(arg0, arg1) {
|
|
892
|
+
const ret = arg0.fetch(arg1);
|
|
893
|
+
return ret;
|
|
894
|
+
};
|
|
895
|
+
imports.wbg.__wbg_fetch_f156d10be9a5c88a = function(arg0) {
|
|
896
|
+
const ret = fetch(arg0);
|
|
897
|
+
return ret;
|
|
898
|
+
};
|
|
899
|
+
imports.wbg.__wbg_fromEntries_91e19ec7b6783aeb = function() { return handleError(function (arg0) {
|
|
900
|
+
const ret = Object.fromEntries(arg0);
|
|
901
|
+
return ret;
|
|
902
|
+
}, arguments) };
|
|
903
|
+
imports.wbg.__wbg_getRandomValues_b8f5dbd5f3995a9e = function() { return handleError(function (arg0, arg1) {
|
|
904
|
+
arg0.getRandomValues(arg1);
|
|
905
|
+
}, arguments) };
|
|
906
|
+
imports.wbg.__wbg_getTime_2afe67905d873e92 = function(arg0) {
|
|
907
|
+
const ret = arg0.getTime();
|
|
908
|
+
return ret;
|
|
909
|
+
};
|
|
910
|
+
imports.wbg.__wbg_getTimezoneOffset_31f33c0868da345e = function(arg0) {
|
|
911
|
+
const ret = arg0.getTimezoneOffset();
|
|
912
|
+
return ret;
|
|
913
|
+
};
|
|
914
|
+
imports.wbg.__wbg_get_92470be87867c2e5 = function() { return handleError(function (arg0, arg1) {
|
|
915
|
+
const ret = Reflect.get(arg0, arg1);
|
|
916
|
+
return ret;
|
|
917
|
+
}, arguments) };
|
|
918
|
+
imports.wbg.__wbg_get_a131a44bd1eb6979 = function(arg0, arg1) {
|
|
919
|
+
const ret = arg0[arg1 >>> 0];
|
|
920
|
+
return ret;
|
|
921
|
+
};
|
|
922
|
+
imports.wbg.__wbg_getwithrefkey_1dc361bd10053bfe = function(arg0, arg1) {
|
|
923
|
+
const ret = arg0[arg1];
|
|
924
|
+
return ret;
|
|
925
|
+
};
|
|
926
|
+
imports.wbg.__wbg_has_809e438ee9d787a7 = function() { return handleError(function (arg0, arg1) {
|
|
927
|
+
const ret = Reflect.has(arg0, arg1);
|
|
928
|
+
return ret;
|
|
929
|
+
}, arguments) };
|
|
930
|
+
imports.wbg.__wbg_headers_0f0cbdc6290b6780 = function(arg0) {
|
|
931
|
+
const ret = arg0.headers;
|
|
932
|
+
return ret;
|
|
933
|
+
};
|
|
934
|
+
imports.wbg.__wbg_info_6bba09377e5a3490 = function(arg0) {
|
|
935
|
+
console.info(...arg0);
|
|
936
|
+
};
|
|
937
|
+
imports.wbg.__wbg_instanceof_ArrayBuffer_a8b6f580b363f2bc = function(arg0) {
|
|
938
|
+
let result;
|
|
939
|
+
try {
|
|
940
|
+
result = arg0 instanceof ArrayBuffer;
|
|
941
|
+
} catch (_) {
|
|
942
|
+
result = false;
|
|
943
|
+
}
|
|
944
|
+
const ret = result;
|
|
945
|
+
return ret;
|
|
946
|
+
};
|
|
947
|
+
imports.wbg.__wbg_instanceof_Array_b740b533930f065b = function(arg0) {
|
|
948
|
+
let result;
|
|
949
|
+
try {
|
|
950
|
+
result = arg0 instanceof Array;
|
|
951
|
+
} catch (_) {
|
|
952
|
+
result = false;
|
|
953
|
+
}
|
|
954
|
+
const ret = result;
|
|
955
|
+
return ret;
|
|
956
|
+
};
|
|
957
|
+
imports.wbg.__wbg_instanceof_Map_80cc65041c96417a = function(arg0) {
|
|
958
|
+
let result;
|
|
959
|
+
try {
|
|
960
|
+
result = arg0 instanceof Map;
|
|
961
|
+
} catch (_) {
|
|
962
|
+
result = false;
|
|
963
|
+
}
|
|
964
|
+
const ret = result;
|
|
965
|
+
return ret;
|
|
966
|
+
};
|
|
967
|
+
imports.wbg.__wbg_instanceof_Response_e80ce8b7a2b968d2 = function(arg0) {
|
|
968
|
+
let result;
|
|
969
|
+
try {
|
|
970
|
+
result = arg0 instanceof Response;
|
|
971
|
+
} catch (_) {
|
|
972
|
+
result = false;
|
|
973
|
+
}
|
|
974
|
+
const ret = result;
|
|
975
|
+
return ret;
|
|
976
|
+
};
|
|
977
|
+
imports.wbg.__wbg_instanceof_Uint8Array_ca460677bc155827 = function(arg0) {
|
|
978
|
+
let result;
|
|
979
|
+
try {
|
|
980
|
+
result = arg0 instanceof Uint8Array;
|
|
981
|
+
} catch (_) {
|
|
982
|
+
result = false;
|
|
983
|
+
}
|
|
984
|
+
const ret = result;
|
|
985
|
+
return ret;
|
|
986
|
+
};
|
|
987
|
+
imports.wbg.__wbg_isArray_5f090bed72bd4f89 = function(arg0) {
|
|
988
|
+
const ret = Array.isArray(arg0);
|
|
989
|
+
return ret;
|
|
990
|
+
};
|
|
991
|
+
imports.wbg.__wbg_isSafeInteger_90d7c4674047d684 = function(arg0) {
|
|
992
|
+
const ret = Number.isSafeInteger(arg0);
|
|
993
|
+
return ret;
|
|
994
|
+
};
|
|
995
|
+
imports.wbg.__wbg_iterator_4068add5b2aef7a6 = function() {
|
|
996
|
+
const ret = Symbol.iterator;
|
|
997
|
+
return ret;
|
|
998
|
+
};
|
|
999
|
+
imports.wbg.__wbg_keys_42062809bf87339e = function(arg0) {
|
|
1000
|
+
const ret = Object.keys(arg0);
|
|
1001
|
+
return ret;
|
|
1002
|
+
};
|
|
1003
|
+
imports.wbg.__wbg_length_ab6d22b5ead75c72 = function(arg0) {
|
|
1004
|
+
const ret = arg0.length;
|
|
1005
|
+
return ret;
|
|
1006
|
+
};
|
|
1007
|
+
imports.wbg.__wbg_length_f00ec12454a5d9fd = function(arg0) {
|
|
1008
|
+
const ret = arg0.length;
|
|
1009
|
+
return ret;
|
|
1010
|
+
};
|
|
1011
|
+
imports.wbg.__wbg_log_7e417898f19eba17 = function(arg0) {
|
|
1012
|
+
console.log(...arg0);
|
|
1013
|
+
};
|
|
1014
|
+
imports.wbg.__wbg_msCrypto_a61aeb35a24c1329 = function(arg0) {
|
|
1015
|
+
const ret = arg0.msCrypto;
|
|
1016
|
+
return ret;
|
|
1017
|
+
};
|
|
1018
|
+
imports.wbg.__wbg_new0_97314565408dea38 = function() {
|
|
1019
|
+
const ret = new Date();
|
|
1020
|
+
return ret;
|
|
1021
|
+
};
|
|
1022
|
+
imports.wbg.__wbg_new_07b483f72211fd66 = function() {
|
|
1023
|
+
const ret = new Object();
|
|
1024
|
+
return ret;
|
|
1025
|
+
};
|
|
1026
|
+
imports.wbg.__wbg_new_186abcfdff244e42 = function() { return handleError(function () {
|
|
1027
|
+
const ret = new AbortController();
|
|
1028
|
+
return ret;
|
|
1029
|
+
}, arguments) };
|
|
1030
|
+
imports.wbg.__wbg_new_4796e1cd2eb9ea6d = function() { return handleError(function () {
|
|
1031
|
+
const ret = new Headers();
|
|
1032
|
+
return ret;
|
|
1033
|
+
}, arguments) };
|
|
1034
|
+
imports.wbg.__wbg_new_58353953ad2097cc = function() {
|
|
1035
|
+
const ret = new Array();
|
|
1036
|
+
return ret;
|
|
1037
|
+
};
|
|
1038
|
+
imports.wbg.__wbg_new_a2957aa5684de228 = function(arg0) {
|
|
1039
|
+
const ret = new Date(arg0);
|
|
1040
|
+
return ret;
|
|
1041
|
+
};
|
|
1042
|
+
imports.wbg.__wbg_new_a979b4b45bd55c7f = function() {
|
|
1043
|
+
const ret = new Map();
|
|
1044
|
+
return ret;
|
|
1045
|
+
};
|
|
1046
|
+
imports.wbg.__wbg_new_e30c39c06edaabf2 = function(arg0, arg1) {
|
|
1047
|
+
try {
|
|
1048
|
+
var state0 = {a: arg0, b: arg1};
|
|
1049
|
+
var cb0 = (arg0, arg1) => {
|
|
1050
|
+
const a = state0.a;
|
|
1051
|
+
state0.a = 0;
|
|
1052
|
+
try {
|
|
1053
|
+
return __wbg_adapter_244(a, state0.b, arg0, arg1);
|
|
1054
|
+
} finally {
|
|
1055
|
+
state0.a = a;
|
|
1056
|
+
}
|
|
1057
|
+
};
|
|
1058
|
+
const ret = new Promise(cb0);
|
|
1059
|
+
return ret;
|
|
1060
|
+
} finally {
|
|
1061
|
+
state0.a = state0.b = 0;
|
|
1062
|
+
}
|
|
1063
|
+
};
|
|
1064
|
+
imports.wbg.__wbg_new_e52b3efaaa774f96 = function(arg0) {
|
|
1065
|
+
const ret = new Uint8Array(arg0);
|
|
1066
|
+
return ret;
|
|
1067
|
+
};
|
|
1068
|
+
imports.wbg.__wbg_newfromslice_7c05ab1297cb2d88 = function(arg0, arg1) {
|
|
1069
|
+
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
1070
|
+
return ret;
|
|
1071
|
+
};
|
|
1072
|
+
imports.wbg.__wbg_newnoargs_ff528e72d35de39a = function(arg0, arg1) {
|
|
1073
|
+
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
1074
|
+
return ret;
|
|
1075
|
+
};
|
|
1076
|
+
imports.wbg.__wbg_newwithargs_17a05078fc85d3aa = function(arg0, arg1, arg2, arg3) {
|
|
1077
|
+
const ret = new Function(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
|
|
1078
|
+
return ret;
|
|
1079
|
+
};
|
|
1080
|
+
imports.wbg.__wbg_newwithbyteoffsetandlength_3b01ecda099177e8 = function(arg0, arg1, arg2) {
|
|
1081
|
+
const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
|
|
1082
|
+
return ret;
|
|
1083
|
+
};
|
|
1084
|
+
imports.wbg.__wbg_newwithlength_08f872dc1e3ada2e = function(arg0) {
|
|
1085
|
+
const ret = new Uint8Array(arg0 >>> 0);
|
|
1086
|
+
return ret;
|
|
1087
|
+
};
|
|
1088
|
+
imports.wbg.__wbg_newwithstrandinit_f8a9dbe009d6be37 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1089
|
+
const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
|
|
1090
|
+
return ret;
|
|
1091
|
+
}, arguments) };
|
|
1092
|
+
imports.wbg.__wbg_next_8bb824d217961b5d = function(arg0) {
|
|
1093
|
+
const ret = arg0.next;
|
|
1094
|
+
return ret;
|
|
1095
|
+
};
|
|
1096
|
+
imports.wbg.__wbg_next_e2da48d8fff7439a = function() { return handleError(function (arg0) {
|
|
1097
|
+
const ret = arg0.next();
|
|
1098
|
+
return ret;
|
|
1099
|
+
}, arguments) };
|
|
1100
|
+
imports.wbg.__wbg_node_905d3e251edff8a2 = function(arg0) {
|
|
1101
|
+
const ret = arg0.node;
|
|
1102
|
+
return ret;
|
|
1103
|
+
};
|
|
1104
|
+
imports.wbg.__wbg_policyevaluationerror_new = function(arg0) {
|
|
1105
|
+
const ret = PolicyEvaluationError.__wrap(arg0);
|
|
1106
|
+
return ret;
|
|
1107
|
+
};
|
|
1108
|
+
imports.wbg.__wbg_process_dc0fbacc7c1c06f7 = function(arg0) {
|
|
1109
|
+
const ret = arg0.process;
|
|
1110
|
+
return ret;
|
|
1111
|
+
};
|
|
1112
|
+
imports.wbg.__wbg_push_73fd7b5550ebf707 = function(arg0, arg1) {
|
|
1113
|
+
const ret = arg0.push(arg1);
|
|
1114
|
+
return ret;
|
|
1115
|
+
};
|
|
1116
|
+
imports.wbg.__wbg_queueMicrotask_46c1df247678729f = function(arg0) {
|
|
1117
|
+
queueMicrotask(arg0);
|
|
1118
|
+
};
|
|
1119
|
+
imports.wbg.__wbg_queueMicrotask_8acf3ccb75ed8d11 = function(arg0) {
|
|
1120
|
+
const ret = arg0.queueMicrotask;
|
|
1121
|
+
return ret;
|
|
1122
|
+
};
|
|
1123
|
+
imports.wbg.__wbg_randomFillSync_ac0988aba3254290 = function() { return handleError(function (arg0, arg1) {
|
|
1124
|
+
arg0.randomFillSync(arg1);
|
|
1125
|
+
}, arguments) };
|
|
1126
|
+
imports.wbg.__wbg_require_60cc747a6bc5215a = function() { return handleError(function () {
|
|
1127
|
+
const ret = module.require;
|
|
1128
|
+
return ret;
|
|
1129
|
+
}, arguments) };
|
|
1130
|
+
imports.wbg.__wbg_resolve_0dac8c580ffd4678 = function(arg0) {
|
|
1131
|
+
const ret = Promise.resolve(arg0);
|
|
1132
|
+
return ret;
|
|
1133
|
+
};
|
|
1134
|
+
imports.wbg.__wbg_setTimeout_2b339866a2aa3789 = function(arg0, arg1) {
|
|
1135
|
+
const ret = setTimeout(arg0, arg1);
|
|
1136
|
+
return ret;
|
|
1137
|
+
};
|
|
1138
|
+
imports.wbg.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
|
|
1139
|
+
arg0[arg1] = arg2;
|
|
1140
|
+
};
|
|
1141
|
+
imports.wbg.__wbg_set_7422acbe992d64ab = function(arg0, arg1, arg2) {
|
|
1142
|
+
arg0[arg1 >>> 0] = arg2;
|
|
1143
|
+
};
|
|
1144
|
+
imports.wbg.__wbg_set_c43293f93a35998a = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1145
|
+
const ret = Reflect.set(arg0, arg1, arg2);
|
|
1146
|
+
return ret;
|
|
1147
|
+
}, arguments) };
|
|
1148
|
+
imports.wbg.__wbg_set_d6bdfd275fb8a4ce = function(arg0, arg1, arg2) {
|
|
1149
|
+
const ret = arg0.set(arg1, arg2);
|
|
1150
|
+
return ret;
|
|
1151
|
+
};
|
|
1152
|
+
imports.wbg.__wbg_set_fe4e79d1ed3b0e9b = function(arg0, arg1, arg2) {
|
|
1153
|
+
arg0.set(arg1, arg2 >>> 0);
|
|
1154
|
+
};
|
|
1155
|
+
imports.wbg.__wbg_setbody_971ec015fc13d6b4 = function(arg0, arg1) {
|
|
1156
|
+
arg0.body = arg1;
|
|
1157
|
+
};
|
|
1158
|
+
imports.wbg.__wbg_setcache_a94cd14dc0cc72a2 = function(arg0, arg1) {
|
|
1159
|
+
arg0.cache = __wbindgen_enum_RequestCache[arg1];
|
|
1160
|
+
};
|
|
1161
|
+
imports.wbg.__wbg_setcredentials_920d91fb5984c94a = function(arg0, arg1) {
|
|
1162
|
+
arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
|
|
1163
|
+
};
|
|
1164
|
+
imports.wbg.__wbg_setheaders_65a4eb4c0443ae61 = function(arg0, arg1) {
|
|
1165
|
+
arg0.headers = arg1;
|
|
1166
|
+
};
|
|
1167
|
+
imports.wbg.__wbg_setmethod_8ce1be0b4d701b7c = function(arg0, arg1, arg2) {
|
|
1168
|
+
arg0.method = getStringFromWasm0(arg1, arg2);
|
|
1169
|
+
};
|
|
1170
|
+
imports.wbg.__wbg_setmode_bd35f026f55b6247 = function(arg0, arg1) {
|
|
1171
|
+
arg0.mode = __wbindgen_enum_RequestMode[arg1];
|
|
1172
|
+
};
|
|
1173
|
+
imports.wbg.__wbg_setsignal_8e72abfe7ee03c97 = function(arg0, arg1) {
|
|
1174
|
+
arg0.signal = arg1;
|
|
1175
|
+
};
|
|
1176
|
+
imports.wbg.__wbg_signal_b96223519a041faa = function(arg0) {
|
|
1177
|
+
const ret = arg0.signal;
|
|
1178
|
+
return ret;
|
|
1179
|
+
};
|
|
1180
|
+
imports.wbg.__wbg_static_accessor_GLOBAL_487c52c58d65314d = function() {
|
|
1181
|
+
const ret = typeof global === 'undefined' ? null : global;
|
|
1182
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1183
|
+
};
|
|
1184
|
+
imports.wbg.__wbg_static_accessor_GLOBAL_THIS_ee9704f328b6b291 = function() {
|
|
1185
|
+
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
1186
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1187
|
+
};
|
|
1188
|
+
imports.wbg.__wbg_static_accessor_SELF_78c9e3071b912620 = function() {
|
|
1189
|
+
const ret = typeof self === 'undefined' ? null : self;
|
|
1190
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1191
|
+
};
|
|
1192
|
+
imports.wbg.__wbg_static_accessor_WINDOW_a093d21393777366 = function() {
|
|
1193
|
+
const ret = typeof window === 'undefined' ? null : window;
|
|
1194
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1195
|
+
};
|
|
1196
|
+
imports.wbg.__wbg_status_a54682bbe52f9058 = function(arg0) {
|
|
1197
|
+
const ret = arg0.status;
|
|
1198
|
+
return ret;
|
|
1199
|
+
};
|
|
1200
|
+
imports.wbg.__wbg_stringify_c242842b97f054cc = function() { return handleError(function (arg0) {
|
|
1201
|
+
const ret = JSON.stringify(arg0);
|
|
1202
|
+
return ret;
|
|
1203
|
+
}, arguments) };
|
|
1204
|
+
imports.wbg.__wbg_subarray_dd4ade7d53bd8e26 = function(arg0, arg1, arg2) {
|
|
1205
|
+
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
1206
|
+
return ret;
|
|
1207
|
+
};
|
|
1208
|
+
imports.wbg.__wbg_text_ec0e22f60e30dd2f = function() { return handleError(function (arg0) {
|
|
1209
|
+
const ret = arg0.text();
|
|
1210
|
+
return ret;
|
|
1211
|
+
}, arguments) };
|
|
1212
|
+
imports.wbg.__wbg_then_82ab9fb4080f1707 = function(arg0, arg1, arg2) {
|
|
1213
|
+
const ret = arg0.then(arg1, arg2);
|
|
1214
|
+
return ret;
|
|
1215
|
+
};
|
|
1216
|
+
imports.wbg.__wbg_then_db882932c0c714c6 = function(arg0, arg1) {
|
|
1217
|
+
const ret = arg0.then(arg1);
|
|
1218
|
+
return ret;
|
|
1219
|
+
};
|
|
1220
|
+
imports.wbg.__wbg_trace_f1ea3a49486fac2c = function(arg0) {
|
|
1221
|
+
console.trace(...arg0);
|
|
1222
|
+
};
|
|
1223
|
+
imports.wbg.__wbg_url_e6ed869ea05b7a71 = function(arg0, arg1) {
|
|
1224
|
+
const ret = arg1.url;
|
|
1225
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1226
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1227
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1228
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1229
|
+
};
|
|
1230
|
+
imports.wbg.__wbg_value_17b896954e14f896 = function(arg0) {
|
|
1231
|
+
const ret = arg0.value;
|
|
1232
|
+
return ret;
|
|
1233
|
+
};
|
|
1234
|
+
imports.wbg.__wbg_versions_c01dfd4722a88165 = function(arg0) {
|
|
1235
|
+
const ret = arg0.versions;
|
|
1236
|
+
return ret;
|
|
1237
|
+
};
|
|
1238
|
+
imports.wbg.__wbg_warn_c6a0f82186237bfa = function(arg0) {
|
|
1239
|
+
console.warn(...arg0);
|
|
1240
|
+
};
|
|
1241
|
+
imports.wbg.__wbindgen_bigint_from_i64 = function(arg0) {
|
|
1242
|
+
const ret = arg0;
|
|
1243
|
+
return ret;
|
|
1244
|
+
};
|
|
1245
|
+
imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
1246
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
1247
|
+
return ret;
|
|
1248
|
+
};
|
|
1249
|
+
imports.wbg.__wbindgen_bigint_get_as_i64 = function(arg0, arg1) {
|
|
1250
|
+
const v = arg1;
|
|
1251
|
+
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
1252
|
+
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
1253
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1254
|
+
};
|
|
1255
|
+
imports.wbg.__wbindgen_boolean_get = function(arg0) {
|
|
1256
|
+
const v = arg0;
|
|
1257
|
+
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
1258
|
+
return ret;
|
|
1259
|
+
};
|
|
1260
|
+
imports.wbg.__wbindgen_cb_drop = function(arg0) {
|
|
1261
|
+
const obj = arg0.original;
|
|
1262
|
+
if (obj.cnt-- == 1) {
|
|
1263
|
+
obj.a = 0;
|
|
1264
|
+
return true;
|
|
1265
|
+
}
|
|
1266
|
+
const ret = false;
|
|
1267
|
+
return ret;
|
|
1268
|
+
};
|
|
1269
|
+
imports.wbg.__wbindgen_closure_wrapper3941 = function(arg0, arg1, arg2) {
|
|
1270
|
+
const ret = makeMutClosure(arg0, arg1, 499, __wbg_adapter_48);
|
|
1271
|
+
return ret;
|
|
1272
|
+
};
|
|
1273
|
+
imports.wbg.__wbindgen_closure_wrapper4090 = function(arg0, arg1, arg2) {
|
|
1274
|
+
const ret = makeMutClosure(arg0, arg1, 545, __wbg_adapter_51);
|
|
1275
|
+
return ret;
|
|
1276
|
+
};
|
|
1277
|
+
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
|
1278
|
+
const ret = debugString(arg1);
|
|
1279
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1280
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1281
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1282
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1283
|
+
};
|
|
1284
|
+
imports.wbg.__wbindgen_in = function(arg0, arg1) {
|
|
1285
|
+
const ret = arg0 in arg1;
|
|
1286
|
+
return ret;
|
|
1287
|
+
};
|
|
1288
|
+
imports.wbg.__wbindgen_init_externref_table = function() {
|
|
1289
|
+
const table = wasm.__wbindgen_export_4;
|
|
1290
|
+
const offset = table.grow(4);
|
|
1291
|
+
table.set(0, undefined);
|
|
1292
|
+
table.set(offset + 0, undefined);
|
|
1293
|
+
table.set(offset + 1, null);
|
|
1294
|
+
table.set(offset + 2, true);
|
|
1295
|
+
table.set(offset + 3, false);
|
|
1296
|
+
;
|
|
1297
|
+
};
|
|
1298
|
+
imports.wbg.__wbindgen_is_bigint = function(arg0) {
|
|
1299
|
+
const ret = typeof(arg0) === 'bigint';
|
|
1300
|
+
return ret;
|
|
1301
|
+
};
|
|
1302
|
+
imports.wbg.__wbindgen_is_function = function(arg0) {
|
|
1303
|
+
const ret = typeof(arg0) === 'function';
|
|
1304
|
+
return ret;
|
|
1305
|
+
};
|
|
1306
|
+
imports.wbg.__wbindgen_is_object = function(arg0) {
|
|
1307
|
+
const val = arg0;
|
|
1308
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
1309
|
+
return ret;
|
|
1310
|
+
};
|
|
1311
|
+
imports.wbg.__wbindgen_is_string = function(arg0) {
|
|
1312
|
+
const ret = typeof(arg0) === 'string';
|
|
1313
|
+
return ret;
|
|
1314
|
+
};
|
|
1315
|
+
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
|
1316
|
+
const ret = arg0 === undefined;
|
|
1317
|
+
return ret;
|
|
1318
|
+
};
|
|
1319
|
+
imports.wbg.__wbindgen_jsval_eq = function(arg0, arg1) {
|
|
1320
|
+
const ret = arg0 === arg1;
|
|
1321
|
+
return ret;
|
|
1322
|
+
};
|
|
1323
|
+
imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
|
1324
|
+
const ret = arg0 == arg1;
|
|
1325
|
+
return ret;
|
|
1326
|
+
};
|
|
1327
|
+
imports.wbg.__wbindgen_memory = function() {
|
|
1328
|
+
const ret = wasm.memory;
|
|
1329
|
+
return ret;
|
|
1330
|
+
};
|
|
1331
|
+
imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
|
|
1332
|
+
const obj = arg1;
|
|
1333
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
1334
|
+
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
1335
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1336
|
+
};
|
|
1337
|
+
imports.wbg.__wbindgen_number_new = function(arg0) {
|
|
1338
|
+
const ret = arg0;
|
|
1339
|
+
return ret;
|
|
1340
|
+
};
|
|
1341
|
+
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
1342
|
+
const obj = arg1;
|
|
1343
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
1344
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1345
|
+
var len1 = WASM_VECTOR_LEN;
|
|
1346
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1347
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1348
|
+
};
|
|
1349
|
+
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
1350
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
1351
|
+
return ret;
|
|
1352
|
+
};
|
|
1353
|
+
imports.wbg.__wbindgen_throw = function(arg0, arg1) {
|
|
1354
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
1355
|
+
};
|
|
896
1356
|
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
return ret;
|
|
900
|
-
};
|
|
1357
|
+
return imports;
|
|
1358
|
+
}
|
|
901
1359
|
|
|
902
|
-
|
|
903
|
-
const ret = Reflect.get(arg0, arg1);
|
|
904
|
-
return ret;
|
|
905
|
-
}, arguments) };
|
|
1360
|
+
function __wbg_init_memory(imports, memory) {
|
|
906
1361
|
|
|
907
|
-
|
|
908
|
-
const ret = arg0[arg1 >>> 0];
|
|
909
|
-
return ret;
|
|
910
|
-
};
|
|
1362
|
+
}
|
|
911
1363
|
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
1364
|
+
function __wbg_finalize_init(instance, module) {
|
|
1365
|
+
wasm = instance.exports;
|
|
1366
|
+
__wbg_init.__wbindgen_wasm_module = module;
|
|
1367
|
+
cachedDataViewMemory0 = null;
|
|
1368
|
+
cachedUint8ArrayMemory0 = null;
|
|
916
1369
|
|
|
917
|
-
module.exports.__wbg_has_809e438ee9d787a7 = function() { return handleError(function (arg0, arg1) {
|
|
918
|
-
const ret = Reflect.has(arg0, arg1);
|
|
919
|
-
return ret;
|
|
920
|
-
}, arguments) };
|
|
921
1370
|
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
};
|
|
1371
|
+
wasm.__wbindgen_start();
|
|
1372
|
+
return wasm;
|
|
1373
|
+
}
|
|
926
1374
|
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
};
|
|
1375
|
+
function initSync(module) {
|
|
1376
|
+
if (wasm !== undefined) return wasm;
|
|
930
1377
|
|
|
931
|
-
module.exports.__wbg_instanceof_ArrayBuffer_a8b6f580b363f2bc = function(arg0) {
|
|
932
|
-
let result;
|
|
933
|
-
try {
|
|
934
|
-
result = arg0 instanceof ArrayBuffer;
|
|
935
|
-
} catch (_) {
|
|
936
|
-
result = false;
|
|
937
|
-
}
|
|
938
|
-
const ret = result;
|
|
939
|
-
return ret;
|
|
940
|
-
};
|
|
941
1378
|
|
|
942
|
-
module
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
1379
|
+
if (typeof module !== 'undefined') {
|
|
1380
|
+
if (Object.getPrototypeOf(module) === Object.prototype) {
|
|
1381
|
+
({module} = module)
|
|
1382
|
+
} else {
|
|
1383
|
+
console.warn('using deprecated parameters for `initSync()`; pass a single object instead')
|
|
1384
|
+
}
|
|
948
1385
|
}
|
|
949
|
-
const ret = result;
|
|
950
|
-
return ret;
|
|
951
|
-
};
|
|
952
1386
|
|
|
953
|
-
|
|
954
|
-
let result;
|
|
955
|
-
try {
|
|
956
|
-
result = arg0 instanceof Map;
|
|
957
|
-
} catch (_) {
|
|
958
|
-
result = false;
|
|
959
|
-
}
|
|
960
|
-
const ret = result;
|
|
961
|
-
return ret;
|
|
962
|
-
};
|
|
1387
|
+
const imports = __wbg_get_imports();
|
|
963
1388
|
|
|
964
|
-
|
|
965
|
-
let result;
|
|
966
|
-
try {
|
|
967
|
-
result = arg0 instanceof Response;
|
|
968
|
-
} catch (_) {
|
|
969
|
-
result = false;
|
|
970
|
-
}
|
|
971
|
-
const ret = result;
|
|
972
|
-
return ret;
|
|
973
|
-
};
|
|
1389
|
+
__wbg_init_memory(imports);
|
|
974
1390
|
|
|
975
|
-
module
|
|
976
|
-
|
|
977
|
-
try {
|
|
978
|
-
result = arg0 instanceof Uint8Array;
|
|
979
|
-
} catch (_) {
|
|
980
|
-
result = false;
|
|
1391
|
+
if (!(module instanceof WebAssembly.Module)) {
|
|
1392
|
+
module = new WebAssembly.Module(module);
|
|
981
1393
|
}
|
|
982
|
-
const ret = result;
|
|
983
|
-
return ret;
|
|
984
|
-
};
|
|
985
|
-
|
|
986
|
-
module.exports.__wbg_isArray_5f090bed72bd4f89 = function(arg0) {
|
|
987
|
-
const ret = Array.isArray(arg0);
|
|
988
|
-
return ret;
|
|
989
|
-
};
|
|
990
|
-
|
|
991
|
-
module.exports.__wbg_isSafeInteger_90d7c4674047d684 = function(arg0) {
|
|
992
|
-
const ret = Number.isSafeInteger(arg0);
|
|
993
|
-
return ret;
|
|
994
|
-
};
|
|
995
|
-
|
|
996
|
-
module.exports.__wbg_iterator_4068add5b2aef7a6 = function() {
|
|
997
|
-
const ret = Symbol.iterator;
|
|
998
|
-
return ret;
|
|
999
|
-
};
|
|
1000
1394
|
|
|
1001
|
-
|
|
1002
|
-
const ret = Object.keys(arg0);
|
|
1003
|
-
return ret;
|
|
1004
|
-
};
|
|
1005
|
-
|
|
1006
|
-
module.exports.__wbg_length_ab6d22b5ead75c72 = function(arg0) {
|
|
1007
|
-
const ret = arg0.length;
|
|
1008
|
-
return ret;
|
|
1009
|
-
};
|
|
1395
|
+
const instance = new WebAssembly.Instance(module, imports);
|
|
1010
1396
|
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
return ret;
|
|
1014
|
-
};
|
|
1015
|
-
|
|
1016
|
-
module.exports.__wbg_log_7e417898f19eba17 = function(arg0) {
|
|
1017
|
-
console.log(...arg0);
|
|
1018
|
-
};
|
|
1019
|
-
|
|
1020
|
-
module.exports.__wbg_msCrypto_a61aeb35a24c1329 = function(arg0) {
|
|
1021
|
-
const ret = arg0.msCrypto;
|
|
1022
|
-
return ret;
|
|
1023
|
-
};
|
|
1024
|
-
|
|
1025
|
-
module.exports.__wbg_new0_97314565408dea38 = function() {
|
|
1026
|
-
const ret = new Date();
|
|
1027
|
-
return ret;
|
|
1028
|
-
};
|
|
1029
|
-
|
|
1030
|
-
module.exports.__wbg_new_07b483f72211fd66 = function() {
|
|
1031
|
-
const ret = new Object();
|
|
1032
|
-
return ret;
|
|
1033
|
-
};
|
|
1034
|
-
|
|
1035
|
-
module.exports.__wbg_new_186abcfdff244e42 = function() { return handleError(function () {
|
|
1036
|
-
const ret = new AbortController();
|
|
1037
|
-
return ret;
|
|
1038
|
-
}, arguments) };
|
|
1039
|
-
|
|
1040
|
-
module.exports.__wbg_new_4796e1cd2eb9ea6d = function() { return handleError(function () {
|
|
1041
|
-
const ret = new Headers();
|
|
1042
|
-
return ret;
|
|
1043
|
-
}, arguments) };
|
|
1044
|
-
|
|
1045
|
-
module.exports.__wbg_new_58353953ad2097cc = function() {
|
|
1046
|
-
const ret = new Array();
|
|
1047
|
-
return ret;
|
|
1048
|
-
};
|
|
1397
|
+
return __wbg_finalize_init(instance, module);
|
|
1398
|
+
}
|
|
1049
1399
|
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
return ret;
|
|
1053
|
-
};
|
|
1400
|
+
async function __wbg_init(module_or_path) {
|
|
1401
|
+
if (wasm !== undefined) return wasm;
|
|
1054
1402
|
|
|
1055
|
-
module.exports.__wbg_new_a979b4b45bd55c7f = function() {
|
|
1056
|
-
const ret = new Map();
|
|
1057
|
-
return ret;
|
|
1058
|
-
};
|
|
1059
1403
|
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
try {
|
|
1067
|
-
return __wbg_adapter_244(a, state0.b, arg0, arg1);
|
|
1068
|
-
} finally {
|
|
1069
|
-
state0.a = a;
|
|
1070
|
-
}
|
|
1071
|
-
};
|
|
1072
|
-
const ret = new Promise(cb0);
|
|
1073
|
-
return ret;
|
|
1074
|
-
} finally {
|
|
1075
|
-
state0.a = state0.b = 0;
|
|
1404
|
+
if (typeof module_or_path !== 'undefined') {
|
|
1405
|
+
if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
|
|
1406
|
+
({module_or_path} = module_or_path)
|
|
1407
|
+
} else {
|
|
1408
|
+
console.warn('using deprecated parameters for the initialization function; pass a single object instead')
|
|
1409
|
+
}
|
|
1076
1410
|
}
|
|
1077
|
-
};
|
|
1078
|
-
|
|
1079
|
-
module.exports.__wbg_new_e52b3efaaa774f96 = function(arg0) {
|
|
1080
|
-
const ret = new Uint8Array(arg0);
|
|
1081
|
-
return ret;
|
|
1082
|
-
};
|
|
1083
|
-
|
|
1084
|
-
module.exports.__wbg_newfromslice_7c05ab1297cb2d88 = function(arg0, arg1) {
|
|
1085
|
-
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
1086
|
-
return ret;
|
|
1087
|
-
};
|
|
1088
|
-
|
|
1089
|
-
module.exports.__wbg_newnoargs_ff528e72d35de39a = function(arg0, arg1) {
|
|
1090
|
-
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
1091
|
-
return ret;
|
|
1092
|
-
};
|
|
1093
|
-
|
|
1094
|
-
module.exports.__wbg_newwithargs_17a05078fc85d3aa = function(arg0, arg1, arg2, arg3) {
|
|
1095
|
-
const ret = new Function(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
|
|
1096
|
-
return ret;
|
|
1097
|
-
};
|
|
1098
|
-
|
|
1099
|
-
module.exports.__wbg_newwithbyteoffsetandlength_3b01ecda099177e8 = function(arg0, arg1, arg2) {
|
|
1100
|
-
const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
|
|
1101
|
-
return ret;
|
|
1102
|
-
};
|
|
1103
|
-
|
|
1104
|
-
module.exports.__wbg_newwithlength_08f872dc1e3ada2e = function(arg0) {
|
|
1105
|
-
const ret = new Uint8Array(arg0 >>> 0);
|
|
1106
|
-
return ret;
|
|
1107
|
-
};
|
|
1108
|
-
|
|
1109
|
-
module.exports.__wbg_newwithstrandinit_f8a9dbe009d6be37 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1110
|
-
const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
|
|
1111
|
-
return ret;
|
|
1112
|
-
}, arguments) };
|
|
1113
|
-
|
|
1114
|
-
module.exports.__wbg_next_8bb824d217961b5d = function(arg0) {
|
|
1115
|
-
const ret = arg0.next;
|
|
1116
|
-
return ret;
|
|
1117
|
-
};
|
|
1118
|
-
|
|
1119
|
-
module.exports.__wbg_next_e2da48d8fff7439a = function() { return handleError(function (arg0) {
|
|
1120
|
-
const ret = arg0.next();
|
|
1121
|
-
return ret;
|
|
1122
|
-
}, arguments) };
|
|
1123
|
-
|
|
1124
|
-
module.exports.__wbg_node_905d3e251edff8a2 = function(arg0) {
|
|
1125
|
-
const ret = arg0.node;
|
|
1126
|
-
return ret;
|
|
1127
|
-
};
|
|
1128
|
-
|
|
1129
|
-
module.exports.__wbg_policyevaluationerror_new = function(arg0) {
|
|
1130
|
-
const ret = PolicyEvaluationError.__wrap(arg0);
|
|
1131
|
-
return ret;
|
|
1132
|
-
};
|
|
1133
|
-
|
|
1134
|
-
module.exports.__wbg_process_dc0fbacc7c1c06f7 = function(arg0) {
|
|
1135
|
-
const ret = arg0.process;
|
|
1136
|
-
return ret;
|
|
1137
|
-
};
|
|
1138
|
-
|
|
1139
|
-
module.exports.__wbg_push_73fd7b5550ebf707 = function(arg0, arg1) {
|
|
1140
|
-
const ret = arg0.push(arg1);
|
|
1141
|
-
return ret;
|
|
1142
|
-
};
|
|
1143
|
-
|
|
1144
|
-
module.exports.__wbg_queueMicrotask_46c1df247678729f = function(arg0) {
|
|
1145
|
-
queueMicrotask(arg0);
|
|
1146
|
-
};
|
|
1147
|
-
|
|
1148
|
-
module.exports.__wbg_queueMicrotask_8acf3ccb75ed8d11 = function(arg0) {
|
|
1149
|
-
const ret = arg0.queueMicrotask;
|
|
1150
|
-
return ret;
|
|
1151
|
-
};
|
|
1152
|
-
|
|
1153
|
-
module.exports.__wbg_randomFillSync_ac0988aba3254290 = function() { return handleError(function (arg0, arg1) {
|
|
1154
|
-
arg0.randomFillSync(arg1);
|
|
1155
|
-
}, arguments) };
|
|
1156
|
-
|
|
1157
|
-
module.exports.__wbg_require_60cc747a6bc5215a = function() { return handleError(function () {
|
|
1158
|
-
const ret = module.require;
|
|
1159
|
-
return ret;
|
|
1160
|
-
}, arguments) };
|
|
1161
|
-
|
|
1162
|
-
module.exports.__wbg_resolve_0dac8c580ffd4678 = function(arg0) {
|
|
1163
|
-
const ret = Promise.resolve(arg0);
|
|
1164
|
-
return ret;
|
|
1165
|
-
};
|
|
1166
|
-
|
|
1167
|
-
module.exports.__wbg_setTimeout_2b339866a2aa3789 = function(arg0, arg1) {
|
|
1168
|
-
const ret = setTimeout(arg0, arg1);
|
|
1169
|
-
return ret;
|
|
1170
|
-
};
|
|
1171
|
-
|
|
1172
|
-
module.exports.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
|
|
1173
|
-
arg0[arg1] = arg2;
|
|
1174
|
-
};
|
|
1175
|
-
|
|
1176
|
-
module.exports.__wbg_set_7422acbe992d64ab = function(arg0, arg1, arg2) {
|
|
1177
|
-
arg0[arg1 >>> 0] = arg2;
|
|
1178
|
-
};
|
|
1179
|
-
|
|
1180
|
-
module.exports.__wbg_set_c43293f93a35998a = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1181
|
-
const ret = Reflect.set(arg0, arg1, arg2);
|
|
1182
|
-
return ret;
|
|
1183
|
-
}, arguments) };
|
|
1184
|
-
|
|
1185
|
-
module.exports.__wbg_set_d6bdfd275fb8a4ce = function(arg0, arg1, arg2) {
|
|
1186
|
-
const ret = arg0.set(arg1, arg2);
|
|
1187
|
-
return ret;
|
|
1188
|
-
};
|
|
1189
|
-
|
|
1190
|
-
module.exports.__wbg_set_fe4e79d1ed3b0e9b = function(arg0, arg1, arg2) {
|
|
1191
|
-
arg0.set(arg1, arg2 >>> 0);
|
|
1192
|
-
};
|
|
1193
|
-
|
|
1194
|
-
module.exports.__wbg_setbody_971ec015fc13d6b4 = function(arg0, arg1) {
|
|
1195
|
-
arg0.body = arg1;
|
|
1196
|
-
};
|
|
1197
|
-
|
|
1198
|
-
module.exports.__wbg_setcache_a94cd14dc0cc72a2 = function(arg0, arg1) {
|
|
1199
|
-
arg0.cache = __wbindgen_enum_RequestCache[arg1];
|
|
1200
|
-
};
|
|
1201
|
-
|
|
1202
|
-
module.exports.__wbg_setcredentials_920d91fb5984c94a = function(arg0, arg1) {
|
|
1203
|
-
arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
|
|
1204
|
-
};
|
|
1205
|
-
|
|
1206
|
-
module.exports.__wbg_setheaders_65a4eb4c0443ae61 = function(arg0, arg1) {
|
|
1207
|
-
arg0.headers = arg1;
|
|
1208
|
-
};
|
|
1209
|
-
|
|
1210
|
-
module.exports.__wbg_setmethod_8ce1be0b4d701b7c = function(arg0, arg1, arg2) {
|
|
1211
|
-
arg0.method = getStringFromWasm0(arg1, arg2);
|
|
1212
|
-
};
|
|
1213
|
-
|
|
1214
|
-
module.exports.__wbg_setmode_bd35f026f55b6247 = function(arg0, arg1) {
|
|
1215
|
-
arg0.mode = __wbindgen_enum_RequestMode[arg1];
|
|
1216
|
-
};
|
|
1217
1411
|
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
};
|
|
1221
|
-
|
|
1222
|
-
module.exports.__wbg_signal_b96223519a041faa = function(arg0) {
|
|
1223
|
-
const ret = arg0.signal;
|
|
1224
|
-
return ret;
|
|
1225
|
-
};
|
|
1226
|
-
|
|
1227
|
-
module.exports.__wbg_static_accessor_GLOBAL_487c52c58d65314d = function() {
|
|
1228
|
-
const ret = typeof global === 'undefined' ? null : global;
|
|
1229
|
-
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1230
|
-
};
|
|
1231
|
-
|
|
1232
|
-
module.exports.__wbg_static_accessor_GLOBAL_THIS_ee9704f328b6b291 = function() {
|
|
1233
|
-
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
1234
|
-
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1235
|
-
};
|
|
1236
|
-
|
|
1237
|
-
module.exports.__wbg_static_accessor_SELF_78c9e3071b912620 = function() {
|
|
1238
|
-
const ret = typeof self === 'undefined' ? null : self;
|
|
1239
|
-
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1240
|
-
};
|
|
1241
|
-
|
|
1242
|
-
module.exports.__wbg_static_accessor_WINDOW_a093d21393777366 = function() {
|
|
1243
|
-
const ret = typeof window === 'undefined' ? null : window;
|
|
1244
|
-
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1245
|
-
};
|
|
1246
|
-
|
|
1247
|
-
module.exports.__wbg_status_a54682bbe52f9058 = function(arg0) {
|
|
1248
|
-
const ret = arg0.status;
|
|
1249
|
-
return ret;
|
|
1250
|
-
};
|
|
1251
|
-
|
|
1252
|
-
module.exports.__wbg_stringify_c242842b97f054cc = function() { return handleError(function (arg0) {
|
|
1253
|
-
const ret = JSON.stringify(arg0);
|
|
1254
|
-
return ret;
|
|
1255
|
-
}, arguments) };
|
|
1256
|
-
|
|
1257
|
-
module.exports.__wbg_subarray_dd4ade7d53bd8e26 = function(arg0, arg1, arg2) {
|
|
1258
|
-
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
1259
|
-
return ret;
|
|
1260
|
-
};
|
|
1261
|
-
|
|
1262
|
-
module.exports.__wbg_text_ec0e22f60e30dd2f = function() { return handleError(function (arg0) {
|
|
1263
|
-
const ret = arg0.text();
|
|
1264
|
-
return ret;
|
|
1265
|
-
}, arguments) };
|
|
1266
|
-
|
|
1267
|
-
module.exports.__wbg_then_82ab9fb4080f1707 = function(arg0, arg1, arg2) {
|
|
1268
|
-
const ret = arg0.then(arg1, arg2);
|
|
1269
|
-
return ret;
|
|
1270
|
-
};
|
|
1271
|
-
|
|
1272
|
-
module.exports.__wbg_then_db882932c0c714c6 = function(arg0, arg1) {
|
|
1273
|
-
const ret = arg0.then(arg1);
|
|
1274
|
-
return ret;
|
|
1275
|
-
};
|
|
1276
|
-
|
|
1277
|
-
module.exports.__wbg_trace_f1ea3a49486fac2c = function(arg0) {
|
|
1278
|
-
console.trace(...arg0);
|
|
1279
|
-
};
|
|
1280
|
-
|
|
1281
|
-
module.exports.__wbg_url_e6ed869ea05b7a71 = function(arg0, arg1) {
|
|
1282
|
-
const ret = arg1.url;
|
|
1283
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1284
|
-
const len1 = WASM_VECTOR_LEN;
|
|
1285
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1286
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1287
|
-
};
|
|
1288
|
-
|
|
1289
|
-
module.exports.__wbg_value_17b896954e14f896 = function(arg0) {
|
|
1290
|
-
const ret = arg0.value;
|
|
1291
|
-
return ret;
|
|
1292
|
-
};
|
|
1293
|
-
|
|
1294
|
-
module.exports.__wbg_versions_c01dfd4722a88165 = function(arg0) {
|
|
1295
|
-
const ret = arg0.versions;
|
|
1296
|
-
return ret;
|
|
1297
|
-
};
|
|
1298
|
-
|
|
1299
|
-
module.exports.__wbg_warn_c6a0f82186237bfa = function(arg0) {
|
|
1300
|
-
console.warn(...arg0);
|
|
1301
|
-
};
|
|
1302
|
-
|
|
1303
|
-
module.exports.__wbindgen_bigint_from_i64 = function(arg0) {
|
|
1304
|
-
const ret = arg0;
|
|
1305
|
-
return ret;
|
|
1306
|
-
};
|
|
1307
|
-
|
|
1308
|
-
module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
1309
|
-
const ret = BigInt.asUintN(64, arg0);
|
|
1310
|
-
return ret;
|
|
1311
|
-
};
|
|
1312
|
-
|
|
1313
|
-
module.exports.__wbindgen_bigint_get_as_i64 = function(arg0, arg1) {
|
|
1314
|
-
const v = arg1;
|
|
1315
|
-
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
1316
|
-
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
1317
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1318
|
-
};
|
|
1319
|
-
|
|
1320
|
-
module.exports.__wbindgen_boolean_get = function(arg0) {
|
|
1321
|
-
const v = arg0;
|
|
1322
|
-
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
1323
|
-
return ret;
|
|
1324
|
-
};
|
|
1325
|
-
|
|
1326
|
-
module.exports.__wbindgen_cb_drop = function(arg0) {
|
|
1327
|
-
const obj = arg0.original;
|
|
1328
|
-
if (obj.cnt-- == 1) {
|
|
1329
|
-
obj.a = 0;
|
|
1330
|
-
return true;
|
|
1412
|
+
if (typeof module_or_path === 'undefined') {
|
|
1413
|
+
module_or_path = new URL('cedarling_wasm_bg.wasm', import.meta.url);
|
|
1331
1414
|
}
|
|
1332
|
-
const
|
|
1333
|
-
return ret;
|
|
1334
|
-
};
|
|
1335
|
-
|
|
1336
|
-
module.exports.__wbindgen_closure_wrapper3942 = function(arg0, arg1, arg2) {
|
|
1337
|
-
const ret = makeMutClosure(arg0, arg1, 499, __wbg_adapter_48);
|
|
1338
|
-
return ret;
|
|
1339
|
-
};
|
|
1340
|
-
|
|
1341
|
-
module.exports.__wbindgen_closure_wrapper4091 = function(arg0, arg1, arg2) {
|
|
1342
|
-
const ret = makeMutClosure(arg0, arg1, 545, __wbg_adapter_51);
|
|
1343
|
-
return ret;
|
|
1344
|
-
};
|
|
1345
|
-
|
|
1346
|
-
module.exports.__wbindgen_debug_string = function(arg0, arg1) {
|
|
1347
|
-
const ret = debugString(arg1);
|
|
1348
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1349
|
-
const len1 = WASM_VECTOR_LEN;
|
|
1350
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1351
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1352
|
-
};
|
|
1353
|
-
|
|
1354
|
-
module.exports.__wbindgen_in = function(arg0, arg1) {
|
|
1355
|
-
const ret = arg0 in arg1;
|
|
1356
|
-
return ret;
|
|
1357
|
-
};
|
|
1358
|
-
|
|
1359
|
-
module.exports.__wbindgen_init_externref_table = function() {
|
|
1360
|
-
const table = wasm.__wbindgen_export_4;
|
|
1361
|
-
const offset = table.grow(4);
|
|
1362
|
-
table.set(0, undefined);
|
|
1363
|
-
table.set(offset + 0, undefined);
|
|
1364
|
-
table.set(offset + 1, null);
|
|
1365
|
-
table.set(offset + 2, true);
|
|
1366
|
-
table.set(offset + 3, false);
|
|
1367
|
-
;
|
|
1368
|
-
};
|
|
1369
|
-
|
|
1370
|
-
module.exports.__wbindgen_is_bigint = function(arg0) {
|
|
1371
|
-
const ret = typeof(arg0) === 'bigint';
|
|
1372
|
-
return ret;
|
|
1373
|
-
};
|
|
1374
|
-
|
|
1375
|
-
module.exports.__wbindgen_is_function = function(arg0) {
|
|
1376
|
-
const ret = typeof(arg0) === 'function';
|
|
1377
|
-
return ret;
|
|
1378
|
-
};
|
|
1379
|
-
|
|
1380
|
-
module.exports.__wbindgen_is_object = function(arg0) {
|
|
1381
|
-
const val = arg0;
|
|
1382
|
-
const ret = typeof(val) === 'object' && val !== null;
|
|
1383
|
-
return ret;
|
|
1384
|
-
};
|
|
1385
|
-
|
|
1386
|
-
module.exports.__wbindgen_is_string = function(arg0) {
|
|
1387
|
-
const ret = typeof(arg0) === 'string';
|
|
1388
|
-
return ret;
|
|
1389
|
-
};
|
|
1390
|
-
|
|
1391
|
-
module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
1392
|
-
const ret = arg0 === undefined;
|
|
1393
|
-
return ret;
|
|
1394
|
-
};
|
|
1415
|
+
const imports = __wbg_get_imports();
|
|
1395
1416
|
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
};
|
|
1400
|
-
|
|
1401
|
-
module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
|
1402
|
-
const ret = arg0 == arg1;
|
|
1403
|
-
return ret;
|
|
1404
|
-
};
|
|
1405
|
-
|
|
1406
|
-
module.exports.__wbindgen_memory = function() {
|
|
1407
|
-
const ret = wasm.memory;
|
|
1408
|
-
return ret;
|
|
1409
|
-
};
|
|
1410
|
-
|
|
1411
|
-
module.exports.__wbindgen_number_get = function(arg0, arg1) {
|
|
1412
|
-
const obj = arg1;
|
|
1413
|
-
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
1414
|
-
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
1415
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1416
|
-
};
|
|
1417
|
-
|
|
1418
|
-
module.exports.__wbindgen_number_new = function(arg0) {
|
|
1419
|
-
const ret = arg0;
|
|
1420
|
-
return ret;
|
|
1421
|
-
};
|
|
1422
|
-
|
|
1423
|
-
module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
1424
|
-
const obj = arg1;
|
|
1425
|
-
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
1426
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1427
|
-
var len1 = WASM_VECTOR_LEN;
|
|
1428
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1429
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1430
|
-
};
|
|
1431
|
-
|
|
1432
|
-
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
1433
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
|
1434
|
-
return ret;
|
|
1435
|
-
};
|
|
1436
|
-
|
|
1437
|
-
module.exports.__wbindgen_throw = function(arg0, arg1) {
|
|
1438
|
-
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
1439
|
-
};
|
|
1417
|
+
if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {
|
|
1418
|
+
module_or_path = fetch(module_or_path);
|
|
1419
|
+
}
|
|
1440
1420
|
|
|
1441
|
-
|
|
1442
|
-
const bytes = require('fs').readFileSync(path);
|
|
1421
|
+
__wbg_init_memory(imports);
|
|
1443
1422
|
|
|
1444
|
-
const
|
|
1445
|
-
const wasmInstance = new WebAssembly.Instance(wasmModule, imports);
|
|
1446
|
-
wasm = wasmInstance.exports;
|
|
1447
|
-
module.exports.__wasm = wasm;
|
|
1423
|
+
const { instance, module } = await __wbg_load(await module_or_path, imports);
|
|
1448
1424
|
|
|
1449
|
-
|
|
1425
|
+
return __wbg_finalize_init(instance, module);
|
|
1426
|
+
}
|
|
1450
1427
|
|
|
1428
|
+
export { initSync };
|
|
1429
|
+
export default __wbg_init;
|