glassjar 0.5.1 → 0.5.2
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.
|
@@ -21,23 +21,23 @@ class S {
|
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
Symbol.dispose && (S.prototype[Symbol.dispose] = S.prototype.free);
|
|
24
|
-
function
|
|
25
|
-
const w =
|
|
26
|
-
B.configure_compiler_toolchain(w, i, o, q, h, p,
|
|
24
|
+
function X(C, A, g, I, Q, E) {
|
|
25
|
+
const w = V(C, B.__wbindgen_malloc), i = F, o = V(A, B.__wbindgen_malloc), q = F, h = k(g, B.__wbindgen_malloc, B.__wbindgen_realloc), p = F, Z = k(I, B.__wbindgen_malloc, B.__wbindgen_realloc), z = F, l = k(Q, B.__wbindgen_malloc, B.__wbindgen_realloc), f = F;
|
|
26
|
+
B.configure_compiler_toolchain(w, i, o, q, h, p, Z, z, l, f, E);
|
|
27
27
|
}
|
|
28
|
-
function
|
|
28
|
+
function m() {
|
|
29
29
|
B.main();
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function b(C) {
|
|
32
32
|
B.set_compiler_instance_observer(C);
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function P(C) {
|
|
35
35
|
B.set_compiler_module_constructor(C);
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function r(C) {
|
|
38
38
|
B.set_object_build_observer(C);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function n() {
|
|
41
41
|
return {
|
|
42
42
|
__proto__: null,
|
|
43
43
|
"./engine_bg.js": {
|
|
@@ -46,25 +46,25 @@ function r() {
|
|
|
46
46
|
return BigInt(A);
|
|
47
47
|
},
|
|
48
48
|
__wbg_Error_8c4e43fe74559d73: function(A, g) {
|
|
49
|
-
return Error(
|
|
49
|
+
return Error(M(A, g));
|
|
50
50
|
},
|
|
51
51
|
__wbg_Number_04624de7d0e8332d: function(A) {
|
|
52
52
|
return Number(A);
|
|
53
53
|
},
|
|
54
54
|
__wbg_String_8f0eb39a4a4c2f66: function(A, g) {
|
|
55
|
-
const I = String(g), Q =
|
|
55
|
+
const I = String(g), Q = k(I, B.__wbindgen_malloc, B.__wbindgen_realloc), E = F;
|
|
56
56
|
N().setInt32(A + 4, E, !0), N().setInt32(A + 0, Q, !0);
|
|
57
57
|
},
|
|
58
58
|
__wbg___wbindgen_bigint_get_as_i64_8fcf4ce7f1ca72a2: function(A, g) {
|
|
59
59
|
const I = g, Q = typeof I == "bigint" ? I : void 0;
|
|
60
|
-
N().setBigInt64(A + 8,
|
|
60
|
+
N().setBigInt64(A + 8, G(Q) ? BigInt(0) : Q, !0), N().setInt32(A + 0, !G(Q), !0);
|
|
61
61
|
},
|
|
62
62
|
__wbg___wbindgen_boolean_get_bbbb1c18aa2f5e25: function(A) {
|
|
63
63
|
const g = A, I = typeof g == "boolean" ? g : void 0;
|
|
64
|
-
return
|
|
64
|
+
return G(I) ? 16777215 : I ? 1 : 0;
|
|
65
65
|
},
|
|
66
66
|
__wbg___wbindgen_debug_string_0bc8482c6e3508ae: function(A, g) {
|
|
67
|
-
const I =
|
|
67
|
+
const I = T(g), Q = k(I, B.__wbindgen_malloc, B.__wbindgen_realloc), E = F;
|
|
68
68
|
N().setInt32(A + 4, E, !0), N().setInt32(A + 0, Q, !0);
|
|
69
69
|
},
|
|
70
70
|
__wbg___wbindgen_function_table_5ae7216dfcbcc506: function() {
|
|
@@ -103,7 +103,7 @@ function r() {
|
|
|
103
103
|
},
|
|
104
104
|
__wbg___wbindgen_number_get_8ff4255516ccad3e: function(A, g) {
|
|
105
105
|
const I = g, Q = typeof I == "number" ? I : void 0;
|
|
106
|
-
N().setFloat64(A + 8,
|
|
106
|
+
N().setFloat64(A + 8, G(Q) ? 0 : Q, !0), N().setInt32(A + 0, !G(Q), !0);
|
|
107
107
|
},
|
|
108
108
|
__wbg___wbindgen_rethrow_05525c567f154472: function(A) {
|
|
109
109
|
throw A;
|
|
@@ -113,18 +113,18 @@ function r() {
|
|
|
113
113
|
},
|
|
114
114
|
__wbg___wbindgen_string_get_72fb696202c56729: function(A, g) {
|
|
115
115
|
const I = g, Q = typeof I == "string" ? I : void 0;
|
|
116
|
-
var E =
|
|
116
|
+
var E = G(Q) ? 0 : k(Q, B.__wbindgen_malloc, B.__wbindgen_realloc), w = F;
|
|
117
117
|
N().setInt32(A + 4, w, !0), N().setInt32(A + 0, E, !0);
|
|
118
118
|
},
|
|
119
119
|
__wbg___wbindgen_throw_be289d5034ed271b: function(A, g) {
|
|
120
|
-
throw new Error(
|
|
120
|
+
throw new Error(M(A, g));
|
|
121
121
|
},
|
|
122
122
|
__wbg__wbg_cb_unref_d9b87ff7982e3b21: function(A) {
|
|
123
123
|
A._wbg_cb_unref();
|
|
124
124
|
},
|
|
125
125
|
__wbg_addEventListener_3acb0aad4483804c: function() {
|
|
126
126
|
return D(function(A, g, I, Q) {
|
|
127
|
-
A.addEventListener(
|
|
127
|
+
A.addEventListener(M(g, I), Q);
|
|
128
128
|
}, arguments);
|
|
129
129
|
},
|
|
130
130
|
__wbg_apply_2e22c45cb4f12415: function() {
|
|
@@ -179,7 +179,7 @@ function r() {
|
|
|
179
179
|
return A.crypto;
|
|
180
180
|
},
|
|
181
181
|
__wbg_customSections_193491b069139fb1: function(A, g, I) {
|
|
182
|
-
return WebAssembly.Module.customSections(A,
|
|
182
|
+
return WebAssembly.Module.customSections(A, M(g, I));
|
|
183
183
|
},
|
|
184
184
|
__wbg_data_5330da50312d0bc1: function(A) {
|
|
185
185
|
return A.data;
|
|
@@ -193,7 +193,7 @@ function r() {
|
|
|
193
193
|
__wbg_error_7534b8e9a36f1ab4: function(A, g) {
|
|
194
194
|
let I, Q;
|
|
195
195
|
try {
|
|
196
|
-
I = A, Q = g, console.error(
|
|
196
|
+
I = A, Q = g, console.error(M(A, g));
|
|
197
197
|
} finally {
|
|
198
198
|
B.__wbindgen_free(I, Q, 1);
|
|
199
199
|
}
|
|
@@ -205,7 +205,7 @@ function r() {
|
|
|
205
205
|
return A.exports;
|
|
206
206
|
},
|
|
207
207
|
__wbg_fetch_d1488f40cef1e210: function(A, g, I) {
|
|
208
|
-
return A.fetch(
|
|
208
|
+
return A.fetch(M(g, I));
|
|
209
209
|
},
|
|
210
210
|
__wbg_from_bddd64e7d5ff6941: function(A) {
|
|
211
211
|
return Array.from(A);
|
|
@@ -499,10 +499,10 @@ function r() {
|
|
|
499
499
|
return new Uint8Array(s(A, g));
|
|
500
500
|
},
|
|
501
501
|
__wbg_new_no_args_1c7c842f08d00ebb: function(A, g) {
|
|
502
|
-
return new Function(
|
|
502
|
+
return new Function(M(A, g));
|
|
503
503
|
},
|
|
504
504
|
__wbg_new_with_args_7bba34e94b1cfa40: function(A, g, I, Q) {
|
|
505
|
-
return new Function(
|
|
505
|
+
return new Function(M(A, g), M(I, Q));
|
|
506
506
|
},
|
|
507
507
|
__wbg_new_with_byte_offset_9120ba79e057895b: function(A, g) {
|
|
508
508
|
return new Uint8Array(A, g >>> 0);
|
|
@@ -571,7 +571,7 @@ function r() {
|
|
|
571
571
|
},
|
|
572
572
|
__wbg_removeEventListener_e63328781a5b9af9: function() {
|
|
573
573
|
return D(function(A, g, I, Q) {
|
|
574
|
-
A.removeEventListener(
|
|
574
|
+
A.removeEventListener(M(g, I), Q);
|
|
575
575
|
}, arguments);
|
|
576
576
|
},
|
|
577
577
|
__wbg_require_b74f47fc2d022fd6: function() {
|
|
@@ -631,24 +631,24 @@ function r() {
|
|
|
631
631
|
return A.slice(g >>> 0, I >>> 0);
|
|
632
632
|
},
|
|
633
633
|
__wbg_stack_0ed75d68575b0f3c: function(A, g) {
|
|
634
|
-
const I = g.stack, Q =
|
|
634
|
+
const I = g.stack, Q = k(I, B.__wbindgen_malloc, B.__wbindgen_realloc), E = F;
|
|
635
635
|
N().setInt32(A + 4, E, !0), N().setInt32(A + 0, Q, !0);
|
|
636
636
|
},
|
|
637
637
|
__wbg_static_accessor_GLOBAL_12837167ad935116: function() {
|
|
638
638
|
const A = typeof global > "u" ? null : global;
|
|
639
|
-
return
|
|
639
|
+
return G(A) ? 0 : Y(A);
|
|
640
640
|
},
|
|
641
641
|
__wbg_static_accessor_GLOBAL_THIS_e628e89ab3b1c95f: function() {
|
|
642
642
|
const A = typeof globalThis > "u" ? null : globalThis;
|
|
643
|
-
return
|
|
643
|
+
return G(A) ? 0 : Y(A);
|
|
644
644
|
},
|
|
645
645
|
__wbg_static_accessor_SELF_a621d3dfbb60d0ce: function() {
|
|
646
646
|
const A = typeof self > "u" ? null : self;
|
|
647
|
-
return
|
|
647
|
+
return G(A) ? 0 : Y(A);
|
|
648
648
|
},
|
|
649
649
|
__wbg_static_accessor_WINDOW_f8727f0cf888e0bd: function() {
|
|
650
650
|
const A = typeof window > "u" ? null : window;
|
|
651
|
-
return
|
|
651
|
+
return G(A) ? 0 : Y(A);
|
|
652
652
|
},
|
|
653
653
|
__wbg_store_d1d951c98d9bed41: function() {
|
|
654
654
|
return D(function(A, g, I) {
|
|
@@ -665,7 +665,7 @@ function r() {
|
|
|
665
665
|
return A.then(g);
|
|
666
666
|
},
|
|
667
667
|
__wbg_toString_56d946daff83867b: function(A, g, I) {
|
|
668
|
-
const Q = g.toString(I), E =
|
|
668
|
+
const Q = g.toString(I), E = k(Q, B.__wbindgen_malloc, B.__wbindgen_realloc), w = F;
|
|
669
669
|
N().setInt32(A + 4, w, !0), N().setInt32(A + 0, E, !0);
|
|
670
670
|
},
|
|
671
671
|
__wbg_toString_964ff7fe6eca8362: function(A) {
|
|
@@ -697,22 +697,22 @@ function r() {
|
|
|
697
697
|
console.warn(A, g, I);
|
|
698
698
|
},
|
|
699
699
|
__wbindgen_cast_0000000000000001: function(A, g) {
|
|
700
|
-
return
|
|
700
|
+
return gA(A, g, B.wasm_bindgen_36932265c58943ab___closure__destroy___dyn_core_37ee0ce0c4cd57d5___ops__function__Fn__web_sys_ca373f7aaf47173f___features__gen_MessageEvent__MessageEvent____Output_______, v);
|
|
701
701
|
},
|
|
702
702
|
__wbindgen_cast_0000000000000002: function(A, g) {
|
|
703
|
-
return
|
|
703
|
+
return U(A, g, B.wasm_bindgen_36932265c58943ab___closure__destroy___dyn_core_37ee0ce0c4cd57d5___ops__function__Fn__web_sys_ca373f7aaf47173f___features__gen_MessageEvent__MessageEvent____Output_______, u);
|
|
704
704
|
},
|
|
705
705
|
__wbindgen_cast_0000000000000003: function(A, g) {
|
|
706
|
-
return
|
|
706
|
+
return U(A, g, B.wasm_bindgen_36932265c58943ab___closure__destroy___dyn_for__a__core_37ee0ce0c4cd57d5___ops__function__FnMut____a_js_sys_9eaf8169b8189500___Array____Output___core_37ee0ce0c4cd57d5___result__Result_js_sys_9eaf8169b8189500___Array__wasm_bindgen_36932265c58943ab___JsValue___, O);
|
|
707
707
|
},
|
|
708
708
|
__wbindgen_cast_0000000000000004: function(A, g) {
|
|
709
|
-
return
|
|
709
|
+
return U(A, g, B.wasm_bindgen_36932265c58943ab___closure__destroy___dyn_for__a__core_37ee0ce0c4cd57d5___ops__function__FnMut____a_js_sys_9eaf8169b8189500___Array____Output___core_37ee0ce0c4cd57d5___result__Result_js_sys_9eaf8169b8189500___Array__wasm_bindgen_36932265c58943ab___JsValue___, O);
|
|
710
710
|
},
|
|
711
711
|
__wbindgen_cast_0000000000000005: function(A, g) {
|
|
712
|
-
return
|
|
712
|
+
return U(A, g, B.wasm_bindgen_36932265c58943ab___closure__destroy___dyn_for__a__core_37ee0ce0c4cd57d5___ops__function__FnMut____a_js_sys_9eaf8169b8189500___Array____Output___core_37ee0ce0c4cd57d5___result__Result_js_sys_9eaf8169b8189500___Array__wasm_bindgen_36932265c58943ab___JsValue___, _);
|
|
713
713
|
},
|
|
714
714
|
__wbindgen_cast_0000000000000006: function(A, g) {
|
|
715
|
-
return
|
|
715
|
+
return U(A, g, B.wasm_bindgen_36932265c58943ab___closure__destroy___dyn_core_37ee0ce0c4cd57d5___ops__function__FnMut__wasm_bindgen_36932265c58943ab___JsValue____Output_______, e);
|
|
716
716
|
},
|
|
717
717
|
__wbindgen_cast_0000000000000007: function(A) {
|
|
718
718
|
return A;
|
|
@@ -724,7 +724,7 @@ function r() {
|
|
|
724
724
|
return s(A, g);
|
|
725
725
|
},
|
|
726
726
|
__wbindgen_cast_000000000000000a: function(A, g) {
|
|
727
|
-
return
|
|
727
|
+
return M(A, g);
|
|
728
728
|
},
|
|
729
729
|
__wbindgen_cast_000000000000000b: function(A, g) {
|
|
730
730
|
return BigInt.asUintN(64, A) | BigInt.asUintN(64, g) << BigInt(64);
|
|
@@ -743,25 +743,25 @@ function r() {
|
|
|
743
743
|
}
|
|
744
744
|
};
|
|
745
745
|
}
|
|
746
|
-
function u(C, A, g) {
|
|
747
|
-
B.wasm_bindgen_36932265c58943ab___convert__closures_____invoke___wasm_bindgen_36932265c58943ab___JsValue_____(C, A, g);
|
|
748
|
-
}
|
|
749
746
|
function v(C, A, g) {
|
|
750
747
|
B.wasm_bindgen_36932265c58943ab___convert__closures_____invoke___web_sys_ca373f7aaf47173f___features__gen_MessageEvent__MessageEvent_____(C, A, g);
|
|
751
748
|
}
|
|
752
|
-
function
|
|
749
|
+
function u(C, A, g) {
|
|
753
750
|
B.wasm_bindgen_36932265c58943ab___convert__closures_____invoke___web_sys_ca373f7aaf47173f___features__gen_MessageEvent__MessageEvent______1_(C, A, g);
|
|
754
751
|
}
|
|
752
|
+
function e(C, A, g) {
|
|
753
|
+
B.wasm_bindgen_36932265c58943ab___convert__closures_____invoke___wasm_bindgen_36932265c58943ab___JsValue_____(C, A, g);
|
|
754
|
+
}
|
|
755
755
|
function _(C, A, g) {
|
|
756
756
|
const I = B.wasm_bindgen_36932265c58943ab___convert__closures________invoke___js_sys_9eaf8169b8189500___Array__core_37ee0ce0c4cd57d5___result__Result_____wasm_bindgen_36932265c58943ab___JsValue__(C, A, g);
|
|
757
757
|
if (I[1])
|
|
758
|
-
throw
|
|
758
|
+
throw x(I[0]);
|
|
759
759
|
}
|
|
760
760
|
function O(C, A, g) {
|
|
761
761
|
const I = B.wasm_bindgen_36932265c58943ab___convert__closures________invoke___js_sys_9eaf8169b8189500___Array__core_37ee0ce0c4cd57d5___result__Result_js_sys_9eaf8169b8189500___Array__wasm_bindgen_36932265c58943ab___JsValue__(C, A, g);
|
|
762
762
|
if (I[2])
|
|
763
|
-
throw
|
|
764
|
-
return
|
|
763
|
+
throw x(I[1]);
|
|
764
|
+
return x(I[0]);
|
|
765
765
|
}
|
|
766
766
|
function $(C, A, g, I) {
|
|
767
767
|
B.wasm_bindgen_36932265c58943ab___convert__closures_____invoke___wasm_bindgen_36932265c58943ab___JsValue__wasm_bindgen_36932265c58943ab___JsValue_____(C, A, g, I);
|
|
@@ -770,14 +770,14 @@ typeof FinalizationRegistry > "u" || new FinalizationRegistry((C) => B.__wbg_dap
|
|
|
770
770
|
const j = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
771
771
|
}, unregister: () => {
|
|
772
772
|
} } : new FinalizationRegistry((C) => B.__wbg_trap_free(C >>> 0, 1));
|
|
773
|
-
function
|
|
773
|
+
function Y(C) {
|
|
774
774
|
const A = B.__externref_table_alloc();
|
|
775
775
|
return B.__wbindgen_externrefs.set(A, C), A;
|
|
776
776
|
}
|
|
777
777
|
const H = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
778
778
|
}, unregister: () => {
|
|
779
779
|
} } : new FinalizationRegistry((C) => C.dtor(C.a, C.b));
|
|
780
|
-
function
|
|
780
|
+
function T(C) {
|
|
781
781
|
const A = typeof C;
|
|
782
782
|
if (A == "number" || A == "boolean" || C == null)
|
|
783
783
|
return `${C}`;
|
|
@@ -794,9 +794,9 @@ function d(C) {
|
|
|
794
794
|
if (Array.isArray(C)) {
|
|
795
795
|
const Q = C.length;
|
|
796
796
|
let E = "[";
|
|
797
|
-
Q > 0 && (E +=
|
|
797
|
+
Q > 0 && (E += T(C[0]));
|
|
798
798
|
for (let w = 1; w < Q; w++)
|
|
799
|
-
E += ", " +
|
|
799
|
+
E += ", " + T(C[w]);
|
|
800
800
|
return E += "]", E;
|
|
801
801
|
}
|
|
802
802
|
const g = /\[object ([^\]]+)\]/.exec(toString.call(C));
|
|
@@ -828,22 +828,22 @@ let y = null;
|
|
|
828
828
|
function N() {
|
|
829
829
|
return (y === null || y.buffer.detached === !0 || y.buffer.detached === void 0 && y.buffer !== B.memory.buffer) && (y = new DataView(B.memory.buffer)), y;
|
|
830
830
|
}
|
|
831
|
-
function
|
|
831
|
+
function M(C, A) {
|
|
832
832
|
return C = C >>> 0, CA(C, A);
|
|
833
833
|
}
|
|
834
|
-
let
|
|
834
|
+
let J = null;
|
|
835
835
|
function R() {
|
|
836
|
-
return (
|
|
836
|
+
return (J === null || J.byteLength === 0) && (J = new Uint8Array(B.memory.buffer)), J;
|
|
837
837
|
}
|
|
838
838
|
function D(C, A) {
|
|
839
839
|
try {
|
|
840
840
|
return C.apply(this, A);
|
|
841
841
|
} catch (g) {
|
|
842
|
-
const I =
|
|
842
|
+
const I = Y(g);
|
|
843
843
|
B.__wbindgen_exn_store(I);
|
|
844
844
|
}
|
|
845
845
|
}
|
|
846
|
-
function
|
|
846
|
+
function G(C) {
|
|
847
847
|
return C == null;
|
|
848
848
|
}
|
|
849
849
|
function gA(C, A, g, I) {
|
|
@@ -859,7 +859,7 @@ function gA(C, A, g, I) {
|
|
|
859
859
|
--Q.cnt === 0 && (Q.dtor(Q.a, Q.b), Q.a = 0, H.unregister(Q));
|
|
860
860
|
}, H.register(E, Q, Q), E;
|
|
861
861
|
}
|
|
862
|
-
function
|
|
862
|
+
function U(C, A, g, I) {
|
|
863
863
|
const Q = { a: C, b: A, cnt: 1, dtor: g }, E = (...w) => {
|
|
864
864
|
Q.cnt++;
|
|
865
865
|
const i = Q.a;
|
|
@@ -874,14 +874,14 @@ function Y(C, A, g, I) {
|
|
|
874
874
|
--Q.cnt === 0 && (Q.dtor(Q.a, Q.b), Q.a = 0, H.unregister(Q));
|
|
875
875
|
}, H.register(E, Q, Q), E;
|
|
876
876
|
}
|
|
877
|
-
function
|
|
877
|
+
function V(C, A) {
|
|
878
878
|
const g = A(C.length * 1, 1) >>> 0;
|
|
879
|
-
return R().set(C, g / 1),
|
|
879
|
+
return R().set(C, g / 1), F = C.length, g;
|
|
880
880
|
}
|
|
881
|
-
function
|
|
881
|
+
function k(C, A, g) {
|
|
882
882
|
if (g === void 0) {
|
|
883
883
|
const i = L.encode(C), o = A(i.length, 1) >>> 0;
|
|
884
|
-
return R().subarray(o, o + i.length).set(i),
|
|
884
|
+
return R().subarray(o, o + i.length).set(i), F = i.length, o;
|
|
885
885
|
}
|
|
886
886
|
let I = C.length, Q = A(I, 1) >>> 0;
|
|
887
887
|
const E = R();
|
|
@@ -896,18 +896,18 @@ function G(C, A, g) {
|
|
|
896
896
|
const i = R().subarray(Q + w, Q + I), o = L.encodeInto(C, i);
|
|
897
897
|
w += o.written, Q = g(Q, I, w, 1) >>> 0;
|
|
898
898
|
}
|
|
899
|
-
return
|
|
899
|
+
return F = w, Q;
|
|
900
900
|
}
|
|
901
|
-
function
|
|
901
|
+
function x(C) {
|
|
902
902
|
const A = B.__wbindgen_externrefs.get(C);
|
|
903
903
|
return B.__externref_table_dealloc(C), A;
|
|
904
904
|
}
|
|
905
905
|
let c = new TextDecoder("utf-8", { ignoreBOM: !0, fatal: !0 });
|
|
906
906
|
c.decode();
|
|
907
907
|
const IA = 2146435072;
|
|
908
|
-
let
|
|
908
|
+
let d = 0;
|
|
909
909
|
function CA(C, A) {
|
|
910
|
-
return
|
|
910
|
+
return d += A, d >= IA && (c = new TextDecoder("utf-8", { ignoreBOM: !0, fatal: !0 }), c.decode(), d = A), c.decode(R().subarray(C, C + A));
|
|
911
911
|
}
|
|
912
912
|
const L = new TextEncoder();
|
|
913
913
|
"encodeInto" in L || (L.encodeInto = function(C, A) {
|
|
@@ -917,9 +917,9 @@ const L = new TextEncoder();
|
|
|
917
917
|
written: g.length
|
|
918
918
|
};
|
|
919
919
|
});
|
|
920
|
-
let
|
|
920
|
+
let F = 0, B;
|
|
921
921
|
function QA(C, A) {
|
|
922
|
-
return B = C.exports, y = null,
|
|
922
|
+
return B = C.exports, y = null, J = null, B.__wbindgen_start(), B;
|
|
923
923
|
}
|
|
924
924
|
async function BA(C, A) {
|
|
925
925
|
if (typeof Response == "function" && C instanceof Response) {
|
|
@@ -951,12 +951,12 @@ async function BA(C, A) {
|
|
|
951
951
|
async function EA(C) {
|
|
952
952
|
if (B !== void 0) return B;
|
|
953
953
|
C !== void 0 && (Object.getPrototypeOf(C) === Object.prototype ? { module_or_path: C } = C : console.warn("using deprecated parameters for the initialization function; pass a single object instead")), C === void 0 && (C = new URL("", import.meta.url));
|
|
954
|
-
const A =
|
|
954
|
+
const A = n();
|
|
955
955
|
(typeof C == "string" || typeof Request == "function" && C instanceof Request || typeof URL == "function" && C instanceof URL) && (C = fetch(C));
|
|
956
956
|
const { instance: g, module: I } = await BA(await C, A);
|
|
957
957
|
return QA(g);
|
|
958
958
|
}
|
|
959
|
-
var DA = new URL("https://cdn.jsdelivr.net/npm/glassjar@0.5.
|
|
959
|
+
var DA = new URL("https://cdn.jsdelivr.net/npm/glassjar@0.5.2/dist/engine_bg.wasm");
|
|
960
960
|
class wA {
|
|
961
961
|
enabled = !1;
|
|
962
962
|
verified;
|
|
@@ -996,7 +996,7 @@ class wA {
|
|
|
996
996
|
const p = await crypto.subtle.digest("SHA-256", Q);
|
|
997
997
|
E = Array.from(
|
|
998
998
|
new Uint8Array(p),
|
|
999
|
-
(
|
|
999
|
+
(Z) => Z.toString(16).padStart(2, "0")
|
|
1000
1000
|
).join("");
|
|
1001
1001
|
} catch {
|
|
1002
1002
|
return I.hashMs += performance.now() - w, I.bypasses++, g === this.generation && (this.retained = void 0), this.compile(Q, I);
|
|
@@ -1054,7 +1054,7 @@ function iA(C, A) {
|
|
|
1054
1054
|
if (C[g] !== A[g]) return !1;
|
|
1055
1055
|
return !0;
|
|
1056
1056
|
}
|
|
1057
|
-
const
|
|
1057
|
+
const t = "glassjar-wasm:";
|
|
1058
1058
|
function oA(C, A) {
|
|
1059
1059
|
const g = new URL(String(C), A);
|
|
1060
1060
|
if (g.protocol !== "https:" && g.protocol !== "http:")
|
|
@@ -1071,7 +1071,7 @@ addEventListener(
|
|
|
1071
1071
|
const A = C.data;
|
|
1072
1072
|
if (A?.type === "configure_cpp") {
|
|
1073
1073
|
if (C.stopImmediatePropagation(), !A.toolchain) throw new Error("Missing verified compiler seed");
|
|
1074
|
-
a.configureVerified(A.toolchain, A.cacheCompilerModule),
|
|
1074
|
+
a.configureVerified(A.toolchain, A.cacheCompilerModule), X(
|
|
1075
1075
|
A.toolchain.compiler,
|
|
1076
1076
|
A.toolchain.sysroot,
|
|
1077
1077
|
A.toolchain.compilerHash,
|
|
@@ -1094,16 +1094,16 @@ addEventListener(
|
|
|
1094
1094
|
}
|
|
1095
1095
|
);
|
|
1096
1096
|
try {
|
|
1097
|
-
const C = self.name ?? "", A = C.startsWith(
|
|
1098
|
-
await EA({ module_or_path: A ?? DA }),
|
|
1097
|
+
const C = self.name ?? "", A = C.startsWith(t) ? oA(C.slice(t.length)) : void 0;
|
|
1098
|
+
await EA({ module_or_path: A ?? DA }), P(
|
|
1099
1099
|
(g) => a.constructVerified(g)
|
|
1100
|
-
),
|
|
1100
|
+
), r(
|
|
1101
1101
|
() => new Promise((g) => {
|
|
1102
1102
|
W = g, postMessage({ type: "object_build_complete", ...K });
|
|
1103
1103
|
})
|
|
1104
|
-
),
|
|
1104
|
+
), b(
|
|
1105
1105
|
(g) => a.instantiated(g)
|
|
1106
|
-
),
|
|
1106
|
+
), m();
|
|
1107
1107
|
} catch (C) {
|
|
1108
1108
|
postMessage({
|
|
1109
1109
|
type: "error",
|
package/dist/engine_bg.wasm
CHANGED
|
Binary file
|