@janssenproject/cedarling_wasm 0.0.251 → 0.0.252-nodejs

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/cedarling_wasm.js CHANGED
@@ -1,4 +1,6 @@
1
- let wasm;
1
+
2
+ let imports = {};
3
+ imports['__wbindgen_placeholder__'] = module.exports;
2
4
 
3
5
  let cachedUint8ArrayMemory0 = null;
4
6
 
@@ -13,15 +15,7 @@ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true
13
15
 
14
16
  cachedTextDecoder.decode();
15
17
 
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
- }
25
19
  return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
26
20
  }
27
21
 
@@ -93,26 +87,6 @@ function getDataViewMemory0() {
93
87
  return cachedDataViewMemory0;
94
88
  }
95
89
 
96
- function addToExternrefTable0(obj) {
97
- const idx = wasm.__externref_table_alloc();
98
- wasm.__wbindgen_export_4.set(idx, obj);
99
- return idx;
100
- }
101
-
102
- function handleError(f, args) {
103
- try {
104
- return f.apply(this, args);
105
- } catch (e) {
106
- const idx = addToExternrefTable0(e);
107
- wasm.__wbindgen_exn_store(idx);
108
- }
109
- }
110
-
111
- function getArrayU8FromWasm0(ptr, len) {
112
- ptr = ptr >>> 0;
113
- return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
114
- }
115
-
116
90
  function isLikeNone(x) {
117
91
  return x === undefined || x === null;
118
92
  }
@@ -182,13 +156,29 @@ function debugString(val) {
182
156
  return className;
183
157
  }
184
158
 
159
+ function addToExternrefTable0(obj) {
160
+ const idx = wasm.__externref_table_alloc();
161
+ wasm.__wbindgen_externrefs.set(idx, obj);
162
+ return idx;
163
+ }
164
+
165
+ function handleError(f, args) {
166
+ try {
167
+ return f.apply(this, args);
168
+ } catch (e) {
169
+ const idx = addToExternrefTable0(e);
170
+ wasm.__wbindgen_exn_store(idx);
171
+ }
172
+ }
173
+
174
+ function getArrayU8FromWasm0(ptr, len) {
175
+ ptr = ptr >>> 0;
176
+ return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
177
+ }
178
+
185
179
  const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
186
180
  ? { register: () => {}, unregister: () => {} }
187
- : new FinalizationRegistry(
188
- state => {
189
- wasm.__wbindgen_export_5.get(state.dtor)(state.a, state.b);
190
- }
191
- );
181
+ : new FinalizationRegistry(state => state.dtor(state.a, state.b));
192
182
 
193
183
  function makeMutClosure(arg0, arg1, dtor, f) {
194
184
  const state = { a: arg0, b: arg1, cnt: 1, dtor };
@@ -203,15 +193,17 @@ function makeMutClosure(arg0, arg1, dtor, f) {
203
193
  try {
204
194
  return f(a, state.b, ...args);
205
195
  } finally {
206
- if (--state.cnt === 0) {
207
- wasm.__wbindgen_export_5.get(state.dtor)(a, state.b);
208
- CLOSURE_DTORS.unregister(state);
209
- } else {
210
- state.a = a;
211
- }
196
+ state.a = a;
197
+ real._wbg_cb_unref();
198
+ }
199
+ };
200
+ real._wbg_cb_unref = () => {
201
+ if (--state.cnt === 0) {
202
+ state.dtor(state.a, state.b);
203
+ state.a = 0;
204
+ CLOSURE_DTORS.unregister(state);
212
205
  }
213
206
  };
214
- real.original = state;
215
207
  CLOSURE_DTORS.register(real, state, state);
216
208
  return real;
217
209
  }
@@ -221,13 +213,13 @@ function makeMutClosure(arg0, arg1, dtor, f) {
221
213
  * @param {any} config
222
214
  * @returns {Promise<Cedarling>}
223
215
  */
224
- export function init(config) {
216
+ exports.init = function(config) {
225
217
  const ret = wasm.init(config);
226
218
  return ret;
227
- }
219
+ };
228
220
 
229
221
  function takeFromExternrefTable0(idx) {
230
- const value = wasm.__wbindgen_export_4.get(idx);
222
+ const value = wasm.__wbindgen_externrefs.get(idx);
231
223
  wasm.__externref_table_dealloc(idx);
232
224
  return value;
233
225
  }
@@ -237,7 +229,7 @@ function getArrayJsValueFromWasm0(ptr, len) {
237
229
  const mem = getDataViewMemory0();
238
230
  const result = [];
239
231
  for (let i = ptr; i < ptr + 4 * len; i += 4) {
240
- result.push(wasm.__wbindgen_export_4.get(mem.getUint32(i, true)));
232
+ result.push(wasm.__wbindgen_externrefs.get(mem.getUint32(i, true)));
241
233
  }
242
234
  wasm.__externref_drop_slice(ptr, len);
243
235
  return result;
@@ -248,16 +240,16 @@ function _assertClass(instance, klass) {
248
240
  throw new Error(`expected instance of ${klass.name}`);
249
241
  }
250
242
  }
251
- function __wbg_adapter_6(arg0, arg1) {
252
- wasm.wasm_bindgen__convert__closures_____invoke__h45fb813e03a674d3(arg0, arg1);
243
+ function wasm_bindgen__convert__closures_____invoke__h559bc6a3933a5765(arg0, arg1, arg2) {
244
+ wasm.wasm_bindgen__convert__closures_____invoke__h559bc6a3933a5765(arg0, arg1, arg2);
253
245
  }
254
246
 
255
- function __wbg_adapter_9(arg0, arg1, arg2) {
256
- wasm.closure553_externref_shim(arg0, arg1, arg2);
247
+ function wasm_bindgen__convert__closures_____invoke__hc1fc6e0e3b60f4a4(arg0, arg1) {
248
+ wasm.wasm_bindgen__convert__closures_____invoke__hc1fc6e0e3b60f4a4(arg0, arg1);
257
249
  }
258
250
 
259
- function __wbg_adapter_214(arg0, arg1, arg2, arg3) {
260
- wasm.closure1831_externref_shim(arg0, arg1, arg2, arg3);
251
+ function wasm_bindgen__convert__closures_____invoke__h132b7432541a1b5f(arg0, arg1, arg2, arg3) {
252
+ wasm.wasm_bindgen__convert__closures_____invoke__h132b7432541a1b5f(arg0, arg1, arg2, arg3);
261
253
  }
262
254
 
263
255
  const __wbindgen_enum_RequestCache = ["default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached"];
@@ -273,7 +265,7 @@ const AuthorizeResultFinalization = (typeof FinalizationRegistry === 'undefined'
273
265
  * A WASM wrapper for the Rust `cedarling::AuthorizeResult` struct.
274
266
  * Represents the result of an authorization request.
275
267
  */
276
- export class AuthorizeResult {
268
+ class AuthorizeResult {
277
269
 
278
270
  static __wrap(ptr) {
279
271
  ptr = ptr >>> 0;
@@ -411,6 +403,8 @@ export class AuthorizeResult {
411
403
  }
412
404
  if (Symbol.dispose) AuthorizeResult.prototype[Symbol.dispose] = AuthorizeResult.prototype.free;
413
405
 
406
+ exports.AuthorizeResult = AuthorizeResult;
407
+
414
408
  const AuthorizeResultResponseFinalization = (typeof FinalizationRegistry === 'undefined')
415
409
  ? { register: () => {}, unregister: () => {} }
416
410
  : new FinalizationRegistry(ptr => wasm.__wbg_authorizeresultresponse_free(ptr >>> 0, 1));
@@ -418,7 +412,7 @@ const AuthorizeResultResponseFinalization = (typeof FinalizationRegistry === 'un
418
412
  * A WASM wrapper for the Rust `cedar_policy::Response` struct.
419
413
  * Represents the result of an authorization request.
420
414
  */
421
- export class AuthorizeResultResponse {
415
+ class AuthorizeResultResponse {
422
416
 
423
417
  static __wrap(ptr) {
424
418
  ptr = ptr >>> 0;
@@ -458,13 +452,15 @@ export class AuthorizeResultResponse {
458
452
  }
459
453
  if (Symbol.dispose) AuthorizeResultResponse.prototype[Symbol.dispose] = AuthorizeResultResponse.prototype.free;
460
454
 
455
+ exports.AuthorizeResultResponse = AuthorizeResultResponse;
456
+
461
457
  const CedarlingFinalization = (typeof FinalizationRegistry === 'undefined')
462
458
  ? { register: () => {}, unregister: () => {} }
463
459
  : new FinalizationRegistry(ptr => wasm.__wbg_cedarling_free(ptr >>> 0, 1));
464
460
  /**
465
461
  * The instance of the Cedarling application.
466
462
  */
467
- export class Cedarling {
463
+ class Cedarling {
468
464
 
469
465
  static __wrap(ptr) {
470
466
  ptr = ptr >>> 0;
@@ -627,6 +623,8 @@ export class Cedarling {
627
623
  }
628
624
  if (Symbol.dispose) Cedarling.prototype[Symbol.dispose] = Cedarling.prototype.free;
629
625
 
626
+ exports.Cedarling = Cedarling;
627
+
630
628
  const DiagnosticsFinalization = (typeof FinalizationRegistry === 'undefined')
631
629
  ? { register: () => {}, unregister: () => {} }
632
630
  : new FinalizationRegistry(ptr => wasm.__wbg_diagnostics_free(ptr >>> 0, 1));
@@ -636,7 +634,7 @@ const DiagnosticsFinalization = (typeof FinalizationRegistry === 'undefined')
636
634
  *
637
635
  * Provides detailed information about how a policy decision was made, including policies that contributed to the decision and any errors encountered during evaluation.
638
636
  */
639
- export class Diagnostics {
637
+ class Diagnostics {
640
638
 
641
639
  static __wrap(ptr) {
642
640
  ptr = ptr >>> 0;
@@ -684,11 +682,13 @@ export class Diagnostics {
684
682
  }
685
683
  if (Symbol.dispose) Diagnostics.prototype[Symbol.dispose] = Diagnostics.prototype.free;
686
684
 
685
+ exports.Diagnostics = Diagnostics;
686
+
687
687
  const JsJsonLogicFinalization = (typeof FinalizationRegistry === 'undefined')
688
688
  ? { register: () => {}, unregister: () => {} }
689
689
  : new FinalizationRegistry(ptr => wasm.__wbg_jsjsonlogic_free(ptr >>> 0, 1));
690
690
 
691
- export class JsJsonLogic {
691
+ class JsJsonLogic {
692
692
 
693
693
  __destroy_into_raw() {
694
694
  const ptr = this.__wbg_ptr;
@@ -722,6 +722,8 @@ export class JsJsonLogic {
722
722
  }
723
723
  if (Symbol.dispose) JsJsonLogic.prototype[Symbol.dispose] = JsJsonLogic.prototype.free;
724
724
 
725
+ exports.JsJsonLogic = JsJsonLogic;
726
+
725
727
  const PolicyEvaluationErrorFinalization = (typeof FinalizationRegistry === 'undefined')
726
728
  ? { register: () => {}, unregister: () => {} }
727
729
  : new FinalizationRegistry(ptr => wasm.__wbg_policyevaluationerror_free(ptr >>> 0, 1));
@@ -731,7 +733,7 @@ const PolicyEvaluationErrorFinalization = (typeof FinalizationRegistry === 'unde
731
733
  *
732
734
  * Represents an error that occurred when evaluating a Cedar policy.
733
735
  */
734
- export class PolicyEvaluationError {
736
+ class PolicyEvaluationError {
735
737
 
736
738
  static __wrap(ptr) {
737
739
  ptr = ptr >>> 0;
@@ -787,656 +789,668 @@ export class PolicyEvaluationError {
787
789
  }
788
790
  if (Symbol.dispose) PolicyEvaluationError.prototype[Symbol.dispose] = PolicyEvaluationError.prototype.free;
789
791
 
790
- const EXPECTED_RESPONSE_TYPES = new Set(['basic', 'cors', 'default']);
792
+ exports.PolicyEvaluationError = PolicyEvaluationError;
791
793
 
792
- async function __wbg_load(module, imports) {
793
- if (typeof Response === 'function' && module instanceof Response) {
794
- if (typeof WebAssembly.instantiateStreaming === 'function') {
795
- try {
796
- return await WebAssembly.instantiateStreaming(module, imports);
794
+ exports.__wbg_Error_e83987f665cf5504 = function(arg0, arg1) {
795
+ const ret = Error(getStringFromWasm0(arg0, arg1));
796
+ return ret;
797
+ };
797
798
 
798
- } catch (e) {
799
- const validResponse = module.ok && EXPECTED_RESPONSE_TYPES.has(module.type);
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
+ };
800
837
 
801
- if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
802
- 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);
838
+ exports.__wbg___wbindgen_is_bigint_cb320707dcd35f0b = function(arg0) {
839
+ const ret = typeof(arg0) === 'bigint';
840
+ return ret;
841
+ };
803
842
 
804
- } else {
805
- throw e;
806
- }
807
- }
808
- }
843
+ exports.__wbg___wbindgen_is_function_ee8a6c5833c90377 = function(arg0) {
844
+ const ret = typeof(arg0) === 'function';
845
+ return ret;
846
+ };
809
847
 
810
- const bytes = await module.arrayBuffer();
811
- return await WebAssembly.instantiate(bytes, imports);
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
+ };
812
853
 
813
- } else {
814
- const instance = await WebAssembly.instantiate(module, imports);
854
+ exports.__wbg___wbindgen_is_string_fbb76cb2940daafd = function(arg0) {
855
+ const ret = typeof(arg0) === 'string';
856
+ return ret;
857
+ };
815
858
 
816
- if (instance instanceof WebAssembly.Instance) {
817
- return { instance, module };
859
+ exports.__wbg___wbindgen_is_undefined_2d472862bd29a478 = function(arg0) {
860
+ const ret = arg0 === undefined;
861
+ return ret;
862
+ };
818
863
 
819
- } else {
820
- return instance;
821
- }
822
- }
823
- }
864
+ exports.__wbg___wbindgen_jsval_eq_6b13ab83478b1c50 = function(arg0, arg1) {
865
+ const ret = arg0 === arg1;
866
+ return ret;
867
+ };
824
868
 
825
- function __wbg_get_imports() {
826
- const imports = {};
827
- imports.wbg = {};
828
- imports.wbg.__wbg_Error_e17e777aac105295 = function(arg0, arg1) {
829
- const ret = Error(getStringFromWasm0(arg0, arg1));
830
- return ret;
831
- };
832
- imports.wbg.__wbg_Number_998bea33bd87c3e0 = function(arg0) {
833
- const ret = Number(arg0);
834
- return ret;
835
- };
836
- imports.wbg.__wbg_String_8f0eb39a4a4c2f66 = function(arg0, arg1) {
837
- const ret = String(arg1);
838
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
839
- const len1 = WASM_VECTOR_LEN;
840
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
841
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
842
- };
843
- imports.wbg.__wbg_abort_67e1b49bf6614565 = function(arg0) {
844
- arg0.abort();
845
- };
846
- imports.wbg.__wbg_abort_d830bf2e9aa6ec5b = function(arg0, arg1) {
847
- arg0.abort(arg1);
848
- };
849
- imports.wbg.__wbg_append_72a3c0addd2bce38 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
850
- arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
851
- }, arguments) };
852
- imports.wbg.__wbg_arrayBuffer_9c99b8e2809e8cbb = function() { return handleError(function (arg0) {
853
- const ret = arg0.arrayBuffer();
854
- return ret;
855
- }, arguments) };
856
- imports.wbg.__wbg_authorizeresult_new = function(arg0) {
857
- const ret = AuthorizeResult.__wrap(arg0);
858
- return ret;
859
- };
860
- imports.wbg.__wbg_call_13410aac570ffff7 = function() { return handleError(function (arg0, arg1) {
861
- const ret = arg0.call(arg1);
862
- return ret;
863
- }, arguments) };
864
- imports.wbg.__wbg_call_a5400b25a865cfd8 = function() { return handleError(function (arg0, arg1, arg2) {
865
- const ret = arg0.call(arg1, arg2);
866
- return ret;
867
- }, arguments) };
868
- imports.wbg.__wbg_cedarling_new = function(arg0) {
869
- const ret = Cedarling.__wrap(arg0);
870
- return ret;
871
- };
872
- imports.wbg.__wbg_clearTimeout_7a42b49784aea641 = function(arg0) {
873
- const ret = clearTimeout(arg0);
874
- return ret;
875
- };
876
- imports.wbg.__wbg_crypto_574e78ad8b13b65f = function(arg0) {
877
- const ret = arg0.crypto;
878
- return ret;
879
- };
880
- imports.wbg.__wbg_debug_3bc8bd5a0fc361c6 = function(arg0) {
881
- console.debug(...arg0);
882
- };
883
- imports.wbg.__wbg_done_75ed0ee6dd243d9d = function(arg0) {
884
- const ret = arg0.done;
885
- return ret;
886
- };
887
- imports.wbg.__wbg_entries_2be2f15bd5554996 = function(arg0) {
888
- const ret = Object.entries(arg0);
889
- return ret;
890
- };
891
- imports.wbg.__wbg_entries_7a842f4caac72cb9 = function(arg0) {
892
- const ret = arg0.entries();
893
- return ret;
894
- };
895
- imports.wbg.__wbg_error_3e65ef00ce5a8b19 = function(arg0) {
896
- console.error(...arg0);
897
- };
898
- imports.wbg.__wbg_fetch_74a3e84ebd2c9a0e = function(arg0) {
899
- const ret = fetch(arg0);
900
- return ret;
901
- };
902
- imports.wbg.__wbg_fetch_87aed7f306ec6d63 = function(arg0, arg1) {
903
- const ret = arg0.fetch(arg1);
904
- return ret;
905
- };
906
- imports.wbg.__wbg_fromEntries_90d06c670ebbfb45 = function() { return handleError(function (arg0) {
907
- const ret = Object.fromEntries(arg0);
908
- return ret;
909
- }, arguments) };
910
- imports.wbg.__wbg_getRandomValues_1c61fac11405ffdc = function() { return handleError(function (arg0, arg1) {
911
- globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
912
- }, arguments) };
913
- imports.wbg.__wbg_getRandomValues_b8f5dbd5f3995a9e = function() { return handleError(function (arg0, arg1) {
914
- arg0.getRandomValues(arg1);
915
- }, arguments) };
916
- imports.wbg.__wbg_getTime_6bb3f64e0f18f817 = function(arg0) {
917
- const ret = arg0.getTime();
918
- return ret;
919
- };
920
- imports.wbg.__wbg_getTimezoneOffset_1e3ddc1382e7c8b0 = function(arg0) {
921
- const ret = arg0.getTimezoneOffset();
922
- return ret;
923
- };
924
- imports.wbg.__wbg_get_0da715ceaecea5c8 = function(arg0, arg1) {
925
- const ret = arg0[arg1 >>> 0];
926
- return ret;
927
- };
928
- imports.wbg.__wbg_get_458e874b43b18b25 = function() { return handleError(function (arg0, arg1) {
929
- const ret = Reflect.get(arg0, arg1);
930
- return ret;
931
- }, arguments) };
932
- imports.wbg.__wbg_getwithrefkey_1dc361bd10053bfe = function(arg0, arg1) {
933
- const ret = arg0[arg1];
934
- return ret;
935
- };
936
- imports.wbg.__wbg_has_b89e451f638123e3 = function() { return handleError(function (arg0, arg1) {
937
- const ret = Reflect.has(arg0, arg1);
938
- return ret;
939
- }, arguments) };
940
- imports.wbg.__wbg_headers_29fec3c72865cd75 = function(arg0) {
941
- const ret = arg0.headers;
942
- return ret;
943
- };
944
- imports.wbg.__wbg_info_8fdedfc14c52e0d2 = function(arg0) {
945
- console.info(...arg0);
946
- };
947
- imports.wbg.__wbg_instanceof_ArrayBuffer_67f3012529f6a2dd = function(arg0) {
948
- let result;
949
- try {
950
- result = arg0 instanceof ArrayBuffer;
951
- } catch (_) {
952
- result = false;
953
- }
954
- const ret = result;
955
- return ret;
956
- };
957
- imports.wbg.__wbg_instanceof_Array_0b7383f4189e69c2 = function(arg0) {
958
- let result;
959
- try {
960
- result = arg0 instanceof Array;
961
- } catch (_) {
962
- result = false;
963
- }
964
- const ret = result;
965
- return ret;
966
- };
967
- imports.wbg.__wbg_instanceof_Map_ebb01a5b6b5ffd0b = function(arg0) {
968
- let result;
969
- try {
970
- result = arg0 instanceof Map;
971
- } catch (_) {
972
- result = false;
973
- }
974
- const ret = result;
975
- return ret;
976
- };
977
- imports.wbg.__wbg_instanceof_Response_50fde2cd696850bf = function(arg0) {
978
- let result;
979
- try {
980
- result = arg0 instanceof Response;
981
- } catch (_) {
982
- result = false;
983
- }
984
- const ret = result;
985
- return ret;
986
- };
987
- imports.wbg.__wbg_instanceof_Uint8Array_9a8378d955933db7 = function(arg0) {
988
- let result;
989
- try {
990
- result = arg0 instanceof Uint8Array;
991
- } catch (_) {
992
- result = false;
993
- }
994
- const ret = result;
995
- return ret;
996
- };
997
- imports.wbg.__wbg_isArray_030cce220591fb41 = function(arg0) {
998
- const ret = Array.isArray(arg0);
999
- return ret;
1000
- };
1001
- imports.wbg.__wbg_isSafeInteger_1c0d1af5542e102a = function(arg0) {
1002
- const ret = Number.isSafeInteger(arg0);
1003
- return ret;
1004
- };
1005
- imports.wbg.__wbg_iterator_f370b34483c71a1c = function() {
1006
- const ret = Symbol.iterator;
1007
- return ret;
1008
- };
1009
- imports.wbg.__wbg_keys_ef52390b2ae0e714 = function(arg0) {
1010
- const ret = Object.keys(arg0);
1011
- return ret;
1012
- };
1013
- imports.wbg.__wbg_length_186546c51cd61acd = function(arg0) {
1014
- const ret = arg0.length;
1015
- return ret;
1016
- };
1017
- imports.wbg.__wbg_length_6bb7e81f9d7713e4 = function(arg0) {
1018
- const ret = arg0.length;
1019
- return ret;
1020
- };
1021
- imports.wbg.__wbg_log_77195989eb27ffe5 = function(arg0) {
1022
- console.log(...arg0);
1023
- };
1024
- imports.wbg.__wbg_msCrypto_a61aeb35a24c1329 = function(arg0) {
1025
- const ret = arg0.msCrypto;
1026
- return ret;
1027
- };
1028
- imports.wbg.__wbg_new0_b0a0a38c201e6df5 = function() {
1029
- const ret = new Date();
1030
- return ret;
1031
- };
1032
- imports.wbg.__wbg_new_19c25a3f2fa63a02 = function() {
1033
- const ret = new Object();
1034
- return ret;
1035
- };
1036
- imports.wbg.__wbg_new_1f3a344cf3123716 = function() {
1037
- const ret = new Array();
1038
- return ret;
1039
- };
1040
- imports.wbg.__wbg_new_2e3c58a15f39f5f9 = function(arg0, arg1) {
1041
- try {
1042
- var state0 = {a: arg0, b: arg1};
1043
- var cb0 = (arg0, arg1) => {
1044
- const a = state0.a;
1045
- state0.a = 0;
1046
- try {
1047
- return __wbg_adapter_214(a, state0.b, arg0, arg1);
1048
- } finally {
1049
- state0.a = a;
1050
- }
1051
- };
1052
- const ret = new Promise(cb0);
1053
- return ret;
1054
- } finally {
1055
- state0.a = state0.b = 0;
1056
- }
1057
- };
1058
- imports.wbg.__wbg_new_2ff1f68f3676ea53 = function() {
1059
- const ret = new Map();
1060
- return ret;
1061
- };
1062
- imports.wbg.__wbg_new_5a2ae4557f92b50e = function(arg0) {
1063
- const ret = new Date(arg0);
1064
- return ret;
1065
- };
1066
- imports.wbg.__wbg_new_638ebfaedbf32a5e = function(arg0) {
1067
- const ret = new Uint8Array(arg0);
1068
- return ret;
1069
- };
1070
- imports.wbg.__wbg_new_66b9434b4e59b63e = function() { return handleError(function () {
1071
- const ret = new AbortController();
1072
- return ret;
1073
- }, arguments) };
1074
- imports.wbg.__wbg_new_f6e53210afea8e45 = function() { return handleError(function () {
1075
- const ret = new Headers();
1076
- return ret;
1077
- }, arguments) };
1078
- imports.wbg.__wbg_newfromslice_074c56947bd43469 = function(arg0, arg1) {
1079
- const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
1080
- return ret;
1081
- };
1082
- imports.wbg.__wbg_newnoargs_254190557c45b4ec = function(arg0, arg1) {
1083
- const ret = new Function(getStringFromWasm0(arg0, arg1));
1084
- return ret;
1085
- };
1086
- imports.wbg.__wbg_newwithargs_b8065bb443501079 = function(arg0, arg1, arg2, arg3) {
1087
- const ret = new Function(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
1088
- return ret;
1089
- };
1090
- imports.wbg.__wbg_newwithlength_a167dcc7aaa3ba77 = function(arg0) {
1091
- const ret = new Uint8Array(arg0 >>> 0);
1092
- return ret;
1093
- };
1094
- imports.wbg.__wbg_newwithstrandinit_b5d168a29a3fd85f = function() { return handleError(function (arg0, arg1, arg2) {
1095
- const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
1096
- return ret;
1097
- }, arguments) };
1098
- imports.wbg.__wbg_next_5b3530e612fde77d = function(arg0) {
1099
- const ret = arg0.next;
1100
- return ret;
1101
- };
1102
- imports.wbg.__wbg_next_692e82279131b03c = function() { return handleError(function (arg0) {
1103
- const ret = arg0.next();
1104
- return ret;
1105
- }, arguments) };
1106
- imports.wbg.__wbg_node_905d3e251edff8a2 = function(arg0) {
1107
- const ret = arg0.node;
1108
- return ret;
1109
- };
1110
- imports.wbg.__wbg_policyevaluationerror_new = function(arg0) {
1111
- const ret = PolicyEvaluationError.__wrap(arg0);
1112
- return ret;
1113
- };
1114
- imports.wbg.__wbg_process_dc0fbacc7c1c06f7 = function(arg0) {
1115
- const ret = arg0.process;
1116
- return ret;
1117
- };
1118
- imports.wbg.__wbg_prototypesetcall_3d4a26c1ed734349 = function(arg0, arg1, arg2) {
1119
- Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
1120
- };
1121
- imports.wbg.__wbg_push_330b2eb93e4e1212 = function(arg0, arg1) {
1122
- const ret = arg0.push(arg1);
1123
- return ret;
1124
- };
1125
- imports.wbg.__wbg_queueMicrotask_25d0739ac89e8c88 = function(arg0) {
1126
- queueMicrotask(arg0);
1127
- };
1128
- imports.wbg.__wbg_queueMicrotask_4488407636f5bf24 = function(arg0) {
1129
- const ret = arg0.queueMicrotask;
1130
- return ret;
1131
- };
1132
- imports.wbg.__wbg_randomFillSync_ac0988aba3254290 = function() { return handleError(function (arg0, arg1) {
1133
- arg0.randomFillSync(arg1);
1134
- }, arguments) };
1135
- imports.wbg.__wbg_require_60cc747a6bc5215a = function() { return handleError(function () {
1136
- const ret = module.require;
1137
- return ret;
1138
- }, arguments) };
1139
- imports.wbg.__wbg_resolve_4055c623acdd6a1b = function(arg0) {
1140
- const ret = Promise.resolve(arg0);
1141
- return ret;
1142
- };
1143
- imports.wbg.__wbg_setTimeout_7bb3429662ab1e70 = function(arg0, arg1) {
1144
- const ret = setTimeout(arg0, arg1);
1145
- return ret;
1146
- };
1147
- imports.wbg.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
1148
- arg0[arg1] = arg2;
1149
- };
1150
- imports.wbg.__wbg_set_453345bcda80b89a = function() { return handleError(function (arg0, arg1, arg2) {
1151
- const ret = Reflect.set(arg0, arg1, arg2);
1152
- return ret;
1153
- }, arguments) };
1154
- imports.wbg.__wbg_set_90f6c0f7bd8c0415 = function(arg0, arg1, arg2) {
1155
- arg0[arg1 >>> 0] = arg2;
1156
- };
1157
- imports.wbg.__wbg_set_b7f1cf4fae26fe2a = function(arg0, arg1, arg2) {
1158
- const ret = arg0.set(arg1, arg2);
1159
- return ret;
1160
- };
1161
- imports.wbg.__wbg_setbody_c8460bdf44147df8 = function(arg0, arg1) {
1162
- arg0.body = arg1;
1163
- };
1164
- imports.wbg.__wbg_setcache_90ca4ad8a8ad40d3 = function(arg0, arg1) {
1165
- arg0.cache = __wbindgen_enum_RequestCache[arg1];
1166
- };
1167
- imports.wbg.__wbg_setcredentials_9cd60d632c9d5dfc = function(arg0, arg1) {
1168
- arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
1169
- };
1170
- imports.wbg.__wbg_setheaders_0052283e2f3503d1 = function(arg0, arg1) {
1171
- arg0.headers = arg1;
1172
- };
1173
- imports.wbg.__wbg_setmethod_9b504d5b855b329c = function(arg0, arg1, arg2) {
1174
- arg0.method = getStringFromWasm0(arg1, arg2);
1175
- };
1176
- imports.wbg.__wbg_setmode_a23e1a2ad8b512f8 = function(arg0, arg1) {
1177
- arg0.mode = __wbindgen_enum_RequestMode[arg1];
1178
- };
1179
- imports.wbg.__wbg_setsignal_8c45ad1247a74809 = function(arg0, arg1) {
1180
- arg0.signal = arg1;
1181
- };
1182
- imports.wbg.__wbg_signal_da4d466ce86118b5 = function(arg0) {
1183
- const ret = arg0.signal;
1184
- return ret;
1185
- };
1186
- imports.wbg.__wbg_static_accessor_GLOBAL_8921f820c2ce3f12 = function() {
1187
- const ret = typeof global === 'undefined' ? null : global;
1188
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1189
- };
1190
- imports.wbg.__wbg_static_accessor_GLOBAL_THIS_f0a4409105898184 = function() {
1191
- const ret = typeof globalThis === 'undefined' ? null : globalThis;
1192
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1193
- };
1194
- imports.wbg.__wbg_static_accessor_SELF_995b214ae681ff99 = function() {
1195
- const ret = typeof self === 'undefined' ? null : self;
1196
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1197
- };
1198
- imports.wbg.__wbg_static_accessor_WINDOW_cde3890479c675ea = function() {
1199
- const ret = typeof window === 'undefined' ? null : window;
1200
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1201
- };
1202
- imports.wbg.__wbg_status_3fea3036088621d6 = function(arg0) {
1203
- const ret = arg0.status;
1204
- return ret;
1205
- };
1206
- imports.wbg.__wbg_stringify_b98c93d0a190446a = function() { return handleError(function (arg0) {
1207
- const ret = JSON.stringify(arg0);
1208
- return ret;
1209
- }, arguments) };
1210
- imports.wbg.__wbg_subarray_70fd07feefe14294 = function(arg0, arg1, arg2) {
1211
- const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
1212
- return ret;
1213
- };
1214
- imports.wbg.__wbg_text_0f69a215637b9b34 = function() { return handleError(function (arg0) {
1215
- const ret = arg0.text();
1216
- return ret;
1217
- }, arguments) };
1218
- imports.wbg.__wbg_then_b33a773d723afa3e = function(arg0, arg1, arg2) {
1219
- const ret = arg0.then(arg1, arg2);
1220
- return ret;
1221
- };
1222
- imports.wbg.__wbg_then_e22500defe16819f = function(arg0, arg1) {
1223
- const ret = arg0.then(arg1);
1224
- return ret;
1225
- };
1226
- imports.wbg.__wbg_trace_fe562a020dec3e6f = function(arg0) {
1227
- console.trace(...arg0);
1228
- };
1229
- imports.wbg.__wbg_url_e5720dfacf77b05e = function(arg0, arg1) {
1230
- const ret = arg1.url;
1231
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1232
- const len1 = WASM_VECTOR_LEN;
1233
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1234
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1235
- };
1236
- imports.wbg.__wbg_value_dd9372230531eade = function(arg0) {
1237
- const ret = arg0.value;
1238
- return ret;
1239
- };
1240
- imports.wbg.__wbg_versions_c01dfd4722a88165 = function(arg0) {
1241
- const ret = arg0.versions;
1242
- return ret;
1243
- };
1244
- imports.wbg.__wbg_warn_3e0e93af109bb736 = function(arg0) {
1245
- console.warn(...arg0);
1246
- };
1247
- imports.wbg.__wbg_wbindgenbigintgetasi64_ac743ece6ab9bba1 = function(arg0, arg1) {
1248
- const v = arg1;
1249
- const ret = typeof(v) === 'bigint' ? v : undefined;
1250
- getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
1251
- getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
1252
- };
1253
- imports.wbg.__wbg_wbindgenbooleanget_3fe6f642c7d97746 = function(arg0) {
1254
- const v = arg0;
1255
- const ret = typeof(v) === 'boolean' ? v : undefined;
1256
- return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
1257
- };
1258
- imports.wbg.__wbg_wbindgencbdrop_eb10308566512b88 = function(arg0) {
1259
- const obj = arg0.original;
1260
- if (obj.cnt-- == 1) {
1261
- obj.a = 0;
1262
- return true;
1263
- }
1264
- const ret = false;
1265
- return ret;
1266
- };
1267
- imports.wbg.__wbg_wbindgendebugstring_99ef257a3ddda34d = function(arg0, arg1) {
1268
- const ret = debugString(arg1);
1269
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1270
- const len1 = WASM_VECTOR_LEN;
1271
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1272
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1273
- };
1274
- imports.wbg.__wbg_wbindgenin_d7a1ee10933d2d55 = function(arg0, arg1) {
1275
- const ret = arg0 in arg1;
1276
- return ret;
1277
- };
1278
- imports.wbg.__wbg_wbindgenisbigint_ecb90cc08a5a9154 = function(arg0) {
1279
- const ret = typeof(arg0) === 'bigint';
1280
- return ret;
1281
- };
1282
- imports.wbg.__wbg_wbindgenisfunction_8cee7dce3725ae74 = function(arg0) {
1283
- const ret = typeof(arg0) === 'function';
1284
- return ret;
1285
- };
1286
- imports.wbg.__wbg_wbindgenisobject_307a53c6bd97fbf8 = function(arg0) {
1287
- const val = arg0;
1288
- const ret = typeof(val) === 'object' && val !== null;
1289
- return ret;
1290
- };
1291
- imports.wbg.__wbg_wbindgenisstring_d4fa939789f003b0 = function(arg0) {
1292
- const ret = typeof(arg0) === 'string';
1293
- return ret;
1294
- };
1295
- imports.wbg.__wbg_wbindgenisundefined_c4b71d073b92f3c5 = function(arg0) {
1296
- const ret = arg0 === undefined;
1297
- return ret;
1298
- };
1299
- imports.wbg.__wbg_wbindgenjsvaleq_e6f2ad59ccae1b58 = function(arg0, arg1) {
1300
- const ret = arg0 === arg1;
1301
- return ret;
1302
- };
1303
- imports.wbg.__wbg_wbindgenjsvallooseeq_9bec8c9be826bed1 = function(arg0, arg1) {
1304
- const ret = arg0 == arg1;
1305
- return ret;
1306
- };
1307
- imports.wbg.__wbg_wbindgennumberget_f74b4c7525ac05cb = function(arg0, arg1) {
1308
- const obj = arg1;
1309
- const ret = typeof(obj) === 'number' ? obj : undefined;
1310
- getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
1311
- getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
1312
- };
1313
- imports.wbg.__wbg_wbindgenstringget_0f16a6ddddef376f = function(arg0, arg1) {
1314
- const obj = arg1;
1315
- const ret = typeof(obj) === 'string' ? obj : undefined;
1316
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1317
- var len1 = WASM_VECTOR_LEN;
1318
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1319
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1320
- };
1321
- imports.wbg.__wbg_wbindgenthrow_451ec1a8469d7eb6 = function(arg0, arg1) {
1322
- throw new Error(getStringFromWasm0(arg0, arg1));
1323
- };
1324
- imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
1325
- // Cast intrinsic for `Ref(String) -> Externref`.
1326
- const ret = getStringFromWasm0(arg0, arg1);
1327
- return ret;
1328
- };
1329
- imports.wbg.__wbindgen_cast_3f672b6028f26d1d = function(arg0, arg1) {
1330
- // Cast intrinsic for `Closure(Closure { dtor_idx: 506, function: Function { arguments: [], shim_idx: 507, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1331
- const ret = makeMutClosure(arg0, arg1, 506, __wbg_adapter_6);
1332
- return ret;
1333
- };
1334
- imports.wbg.__wbindgen_cast_4625c577ab2ec9ee = function(arg0) {
1335
- // Cast intrinsic for `U64 -> Externref`.
1336
- const ret = BigInt.asUintN(64, arg0);
1337
- return ret;
1338
- };
1339
- imports.wbg.__wbindgen_cast_9ae0607507abb057 = function(arg0) {
1340
- // Cast intrinsic for `I64 -> Externref`.
1341
- const ret = arg0;
1342
- return ret;
1343
- };
1344
- imports.wbg.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
1345
- // Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
1346
- const ret = getArrayU8FromWasm0(arg0, arg1);
1347
- return ret;
1348
- };
1349
- imports.wbg.__wbindgen_cast_d1dd07120553c180 = function(arg0, arg1) {
1350
- // Cast intrinsic for `Closure(Closure { dtor_idx: 552, function: Function { arguments: [Externref], shim_idx: 553, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1351
- const ret = makeMutClosure(arg0, arg1, 552, __wbg_adapter_9);
1352
- return ret;
1353
- };
1354
- imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
1355
- // Cast intrinsic for `F64 -> Externref`.
1356
- const ret = arg0;
1357
- return ret;
1358
- };
1359
- imports.wbg.__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
- };
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) };
1369
914
 
1370
- return imports;
1371
- }
915
+ exports.__wbg_authorizeresult_new = function(arg0) {
916
+ const ret = AuthorizeResult.__wrap(arg0);
917
+ return ret;
918
+ };
1372
919
 
1373
- function __wbg_init_memory(imports, memory) {
920
+ exports.__wbg_call_525440f72fbfc0ea = function() { return handleError(function (arg0, arg1, arg2) {
921
+ const ret = arg0.call(arg1, arg2);
922
+ return ret;
923
+ }, arguments) };
1374
924
 
1375
- }
925
+ exports.__wbg_call_e762c39fa8ea36bf = function() { return handleError(function (arg0, arg1) {
926
+ const ret = arg0.call(arg1);
927
+ return ret;
928
+ }, arguments) };
1376
929
 
1377
- function __wbg_finalize_init(instance, module) {
1378
- wasm = instance.exports;
1379
- __wbg_init.__wbindgen_wasm_module = module;
1380
- cachedDataViewMemory0 = null;
1381
- cachedUint8ArrayMemory0 = null;
930
+ exports.__wbg_cedarling_new = function(arg0) {
931
+ const ret = Cedarling.__wrap(arg0);
932
+ return ret;
933
+ };
1382
934
 
935
+ exports.__wbg_clearTimeout_7a42b49784aea641 = function(arg0) {
936
+ const ret = clearTimeout(arg0);
937
+ return ret;
938
+ };
1383
939
 
1384
- wasm.__wbindgen_start();
1385
- return wasm;
1386
- }
940
+ exports.__wbg_crypto_574e78ad8b13b65f = function(arg0) {
941
+ const ret = arg0.crypto;
942
+ return ret;
943
+ };
1387
944
 
1388
- function initSync(module) {
1389
- if (wasm !== undefined) return wasm;
945
+ exports.__wbg_debug_755c0800f64c9a88 = function(arg0) {
946
+ console.debug(...arg0);
947
+ };
1390
948
 
949
+ exports.__wbg_done_2042aa2670fb1db1 = function(arg0) {
950
+ const ret = arg0.done;
951
+ return ret;
952
+ };
1391
953
 
1392
- if (typeof module !== 'undefined') {
1393
- if (Object.getPrototypeOf(module) === Object.prototype) {
1394
- ({module} = module)
1395
- } else {
1396
- console.warn('using deprecated parameters for `initSync()`; pass a single object instead')
1397
- }
1398
- }
954
+ exports.__wbg_entries_e171b586f8f6bdbf = function(arg0) {
955
+ const ret = Object.entries(arg0);
956
+ return ret;
957
+ };
1399
958
 
1400
- const imports = __wbg_get_imports();
959
+ exports.__wbg_entries_eb145c4da5c811f7 = function(arg0) {
960
+ const ret = arg0.entries();
961
+ return ret;
962
+ };
1401
963
 
1402
- __wbg_init_memory(imports);
964
+ exports.__wbg_error_7a6b3e62969d4270 = function(arg0) {
965
+ console.error(...arg0);
966
+ };
1403
967
 
1404
- if (!(module instanceof WebAssembly.Module)) {
1405
- module = new WebAssembly.Module(module);
1406
- }
968
+ exports.__wbg_fetch_74a3e84ebd2c9a0e = function(arg0) {
969
+ const ret = fetch(arg0);
970
+ return ret;
971
+ };
1407
972
 
1408
- const instance = new WebAssembly.Instance(module, imports);
973
+ exports.__wbg_fetch_f8ba0e29a9d6de0d = function(arg0, arg1) {
974
+ const ret = arg0.fetch(arg1);
975
+ return ret;
976
+ };
1409
977
 
1410
- return __wbg_finalize_init(instance, module);
1411
- }
978
+ exports.__wbg_fromEntries_c7159f3787268c9f = function() { return handleError(function (arg0) {
979
+ const ret = Object.fromEntries(arg0);
980
+ return ret;
981
+ }, arguments) };
1412
982
 
1413
- async function __wbg_init(module_or_path) {
1414
- if (wasm !== undefined) return wasm;
983
+ exports.__wbg_getRandomValues_1c61fac11405ffdc = function() { return handleError(function (arg0, arg1) {
984
+ globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
985
+ }, arguments) };
1415
986
 
987
+ exports.__wbg_getRandomValues_b8f5dbd5f3995a9e = function() { return handleError(function (arg0, arg1) {
988
+ arg0.getRandomValues(arg1);
989
+ }, arguments) };
1416
990
 
1417
- if (typeof module_or_path !== 'undefined') {
1418
- if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
1419
- ({module_or_path} = module_or_path)
1420
- } else {
1421
- console.warn('using deprecated parameters for the initialization function; pass a single object instead')
1422
- }
991
+ exports.__wbg_getTime_14776bfb48a1bff9 = function(arg0) {
992
+ const ret = arg0.getTime();
993
+ return ret;
994
+ };
995
+
996
+ exports.__wbg_getTimezoneOffset_d391cb11d54969f8 = function(arg0) {
997
+ const ret = arg0.getTimezoneOffset();
998
+ return ret;
999
+ };
1000
+
1001
+ exports.__wbg_get_7bed016f185add81 = function(arg0, arg1) {
1002
+ const ret = arg0[arg1 >>> 0];
1003
+ return ret;
1004
+ };
1005
+
1006
+ exports.__wbg_get_efcb449f58ec27c2 = function() { return handleError(function (arg0, arg1) {
1007
+ const ret = Reflect.get(arg0, arg1);
1008
+ return ret;
1009
+ }, arguments) };
1010
+
1011
+ exports.__wbg_get_with_ref_key_1dc361bd10053bfe = function(arg0, arg1) {
1012
+ const ret = arg0[arg1];
1013
+ return ret;
1014
+ };
1015
+
1016
+ exports.__wbg_has_787fafc980c3ccdb = function() { return handleError(function (arg0, arg1) {
1017
+ const ret = Reflect.has(arg0, arg1);
1018
+ return ret;
1019
+ }, arguments) };
1020
+
1021
+ exports.__wbg_headers_b87d7eaba61c3278 = function(arg0) {
1022
+ const ret = arg0.headers;
1023
+ return ret;
1024
+ };
1025
+
1026
+ exports.__wbg_info_f0ce824723264770 = function(arg0) {
1027
+ console.info(...arg0);
1028
+ };
1029
+
1030
+ exports.__wbg_instanceof_ArrayBuffer_70beb1189ca63b38 = function(arg0) {
1031
+ let result;
1032
+ try {
1033
+ result = arg0 instanceof ArrayBuffer;
1034
+ } catch (_) {
1035
+ result = false;
1423
1036
  }
1037
+ const ret = result;
1038
+ return ret;
1039
+ };
1424
1040
 
1425
- if (typeof module_or_path === 'undefined') {
1426
- module_or_path = new URL('cedarling_wasm_bg.wasm', import.meta.url);
1041
+ exports.__wbg_instanceof_Array_fca44e0f4a7f6240 = function(arg0) {
1042
+ let result;
1043
+ try {
1044
+ result = arg0 instanceof Array;
1045
+ } catch (_) {
1046
+ result = false;
1427
1047
  }
1428
- const imports = __wbg_get_imports();
1048
+ const ret = result;
1049
+ return ret;
1050
+ };
1429
1051
 
1430
- if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {
1431
- module_or_path = fetch(module_or_path);
1052
+ exports.__wbg_instanceof_Map_8579b5e2ab5437c7 = function(arg0) {
1053
+ let result;
1054
+ try {
1055
+ result = arg0 instanceof Map;
1056
+ } catch (_) {
1057
+ result = false;
1432
1058
  }
1059
+ const ret = result;
1060
+ return ret;
1061
+ };
1433
1062
 
1434
- __wbg_init_memory(imports);
1063
+ exports.__wbg_instanceof_Response_f4f3e87e07f3135c = function(arg0) {
1064
+ let result;
1065
+ try {
1066
+ result = arg0 instanceof Response;
1067
+ } catch (_) {
1068
+ result = false;
1069
+ }
1070
+ const ret = result;
1071
+ return ret;
1072
+ };
1435
1073
 
1436
- const { instance, module } = await __wbg_load(await module_or_path, imports);
1074
+ exports.__wbg_instanceof_Uint8Array_20c8e73002f7af98 = function(arg0) {
1075
+ let result;
1076
+ try {
1077
+ result = arg0 instanceof Uint8Array;
1078
+ } catch (_) {
1079
+ result = false;
1080
+ }
1081
+ const ret = result;
1082
+ return ret;
1083
+ };
1437
1084
 
1438
- return __wbg_finalize_init(instance, module);
1439
- }
1085
+ exports.__wbg_isArray_96e0af9891d0945d = function(arg0) {
1086
+ const ret = Array.isArray(arg0);
1087
+ return ret;
1088
+ };
1089
+
1090
+ exports.__wbg_isSafeInteger_d216eda7911dde36 = function(arg0) {
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
+ };
1123
+
1124
+ exports.__wbg_new_0_f9740686d739025c = function() {
1125
+ const ret = new Date();
1126
+ return ret;
1127
+ };
1128
+
1129
+ exports.__wbg_new_1acc0b6eea89d040 = function() {
1130
+ const ret = new Object();
1131
+ return ret;
1132
+ };
1133
+
1134
+ exports.__wbg_new_2531773dac38ebb3 = function() { return handleError(function () {
1135
+ const ret = new AbortController();
1136
+ return ret;
1137
+ }, arguments) };
1138
+
1139
+ exports.__wbg_new_3c3d849046688a66 = function(arg0, arg1) {
1140
+ try {
1141
+ var state0 = {a: arg0, b: arg1};
1142
+ var cb0 = (arg0, arg1) => {
1143
+ const a = state0.a;
1144
+ state0.a = 0;
1145
+ try {
1146
+ return wasm_bindgen__convert__closures_____invoke__h132b7432541a1b5f(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;
1155
+ }
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
+
1218
+ exports.__wbg_node_905d3e251edff8a2 = function(arg0) {
1219
+ const ret = arg0.node;
1220
+ return ret;
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_3f672b6028f26d1d = function(arg0, arg1) {
1404
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 506, function: Function { arguments: [], shim_idx: 507, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1405
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h6d2901713d099ee2, wasm_bindgen__convert__closures_____invoke__hc1fc6e0e3b60f4a4);
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
+ };
1420
+
1421
+ exports.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
1422
+ // Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
1423
+ const ret = getArrayU8FromWasm0(arg0, arg1);
1424
+ return ret;
1425
+ };
1426
+
1427
+ exports.__wbindgen_cast_d1dd07120553c180 = function(arg0, arg1) {
1428
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 552, function: Function { arguments: [Externref], shim_idx: 553, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1429
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hf4c9146f86ff048f, wasm_bindgen__convert__closures_____invoke__h559bc6a3933a5765);
1430
+ return ret;
1431
+ };
1432
+
1433
+ exports.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
1434
+ // Cast intrinsic for `F64 -> Externref`.
1435
+ const ret = arg0;
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();
1440
1456
 
1441
- export { initSync };
1442
- export default __wbg_init;