glassjar 0.5.2 → 0.6.0
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.
|
@@ -2,11 +2,11 @@ class S {
|
|
|
2
2
|
static __wrap(A) {
|
|
3
3
|
A = A >>> 0;
|
|
4
4
|
const g = Object.create(S.prototype);
|
|
5
|
-
return g.__wbg_ptr = A,
|
|
5
|
+
return g.__wbg_ptr = A, O.register(g, g.__wbg_ptr, g), g;
|
|
6
6
|
}
|
|
7
7
|
__destroy_into_raw() {
|
|
8
8
|
const A = this.__wbg_ptr;
|
|
9
|
-
return this.__wbg_ptr = 0,
|
|
9
|
+
return this.__wbg_ptr = 0, O.unregister(this), A;
|
|
10
10
|
}
|
|
11
11
|
free() {
|
|
12
12
|
const A = this.__destroy_into_raw();
|
|
@@ -21,14 +21,14 @@ 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,
|
|
24
|
+
function b(C, A, g, I, Q, E) {
|
|
25
|
+
const w = j(C, B.__wbindgen_malloc), i = k, N = j(A, B.__wbindgen_malloc), q = k, h = M(g, B.__wbindgen_malloc, B.__wbindgen_realloc), p = k, V = M(I, B.__wbindgen_malloc, B.__wbindgen_realloc), z = k, f = M(Q, B.__wbindgen_malloc, B.__wbindgen_realloc), X = k;
|
|
26
|
+
B.configure_compiler_toolchain(w, i, N, q, h, p, V, z, f, X, E);
|
|
27
27
|
}
|
|
28
28
|
function m() {
|
|
29
29
|
B.main();
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function l(C) {
|
|
32
32
|
B.set_compiler_instance_observer(C);
|
|
33
33
|
}
|
|
34
34
|
function P(C) {
|
|
@@ -46,26 +46,26 @@ function n() {
|
|
|
46
46
|
return BigInt(A);
|
|
47
47
|
},
|
|
48
48
|
__wbg_Error_8c4e43fe74559d73: function(A, g) {
|
|
49
|
-
return Error(
|
|
49
|
+
return Error(F(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 =
|
|
56
|
-
|
|
55
|
+
const I = String(g), Q = M(I, B.__wbindgen_malloc, B.__wbindgen_realloc), E = k;
|
|
56
|
+
o().setInt32(A + 4, E, !0), o().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
|
-
|
|
60
|
+
o().setBigInt64(A + 8, G(Q) ? BigInt(0) : Q, !0), o().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
64
|
return G(I) ? 16777215 : I ? 1 : 0;
|
|
65
65
|
},
|
|
66
66
|
__wbg___wbindgen_debug_string_0bc8482c6e3508ae: function(A, g) {
|
|
67
|
-
const I = T(g), Q =
|
|
68
|
-
|
|
67
|
+
const I = T(g), Q = M(I, B.__wbindgen_malloc, B.__wbindgen_realloc), E = k;
|
|
68
|
+
o().setInt32(A + 4, E, !0), o().setInt32(A + 0, Q, !0);
|
|
69
69
|
},
|
|
70
70
|
__wbg___wbindgen_function_table_5ae7216dfcbcc506: function() {
|
|
71
71
|
return B.__wbindgen_export;
|
|
@@ -103,7 +103,7 @@ function n() {
|
|
|
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
|
-
|
|
106
|
+
o().setFloat64(A + 8, G(Q) ? 0 : Q, !0), o().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 n() {
|
|
|
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 = G(Q) ? 0 :
|
|
117
|
-
|
|
116
|
+
var E = G(Q) ? 0 : M(Q, B.__wbindgen_malloc, B.__wbindgen_realloc), w = k;
|
|
117
|
+
o().setInt32(A + 4, w, !0), o().setInt32(A + 0, E, !0);
|
|
118
118
|
},
|
|
119
119
|
__wbg___wbindgen_throw_be289d5034ed271b: function(A, g) {
|
|
120
|
-
throw new Error(
|
|
120
|
+
throw new Error(F(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(F(g, I), Q);
|
|
128
128
|
}, arguments);
|
|
129
129
|
},
|
|
130
130
|
__wbg_apply_2e22c45cb4f12415: function() {
|
|
@@ -179,7 +179,7 @@ function n() {
|
|
|
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, F(g, I));
|
|
183
183
|
},
|
|
184
184
|
__wbg_data_5330da50312d0bc1: function(A) {
|
|
185
185
|
return A.data;
|
|
@@ -193,7 +193,7 @@ function n() {
|
|
|
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(F(A, g));
|
|
197
197
|
} finally {
|
|
198
198
|
B.__wbindgen_free(I, Q, 1);
|
|
199
199
|
}
|
|
@@ -205,7 +205,7 @@ function n() {
|
|
|
205
205
|
return A.exports;
|
|
206
206
|
},
|
|
207
207
|
__wbg_fetch_d1488f40cef1e210: function(A, g, I) {
|
|
208
|
-
return A.fetch(
|
|
208
|
+
return A.fetch(F(g, I));
|
|
209
209
|
},
|
|
210
210
|
__wbg_from_bddd64e7d5ff6941: function(A) {
|
|
211
211
|
return Array.from(A);
|
|
@@ -473,12 +473,12 @@ function n() {
|
|
|
473
473
|
__wbg_new_b5d9e2fb389fef91: function(A, g) {
|
|
474
474
|
try {
|
|
475
475
|
var I = { a: A, b: g }, Q = (w, i) => {
|
|
476
|
-
const
|
|
476
|
+
const N = I.a;
|
|
477
477
|
I.a = 0;
|
|
478
478
|
try {
|
|
479
|
-
return $(
|
|
479
|
+
return $(N, I.b, w, i);
|
|
480
480
|
} finally {
|
|
481
|
-
I.a =
|
|
481
|
+
I.a = N;
|
|
482
482
|
}
|
|
483
483
|
};
|
|
484
484
|
return new Promise(Q);
|
|
@@ -499,10 +499,10 @@ function n() {
|
|
|
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(F(A, g));
|
|
503
503
|
},
|
|
504
504
|
__wbg_new_with_args_7bba34e94b1cfa40: function(A, g, I, Q) {
|
|
505
|
-
return new Function(
|
|
505
|
+
return new Function(F(A, g), F(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 n() {
|
|
|
571
571
|
},
|
|
572
572
|
__wbg_removeEventListener_e63328781a5b9af9: function() {
|
|
573
573
|
return D(function(A, g, I, Q) {
|
|
574
|
-
A.removeEventListener(
|
|
574
|
+
A.removeEventListener(F(g, I), Q);
|
|
575
575
|
}, arguments);
|
|
576
576
|
},
|
|
577
577
|
__wbg_require_b74f47fc2d022fd6: function() {
|
|
@@ -631,24 +631,24 @@ function n() {
|
|
|
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 =
|
|
635
|
-
|
|
634
|
+
const I = g.stack, Q = M(I, B.__wbindgen_malloc, B.__wbindgen_realloc), E = k;
|
|
635
|
+
o().setInt32(A + 4, E, !0), o().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 G(A) ? 0 :
|
|
639
|
+
return G(A) ? 0 : U(A);
|
|
640
640
|
},
|
|
641
641
|
__wbg_static_accessor_GLOBAL_THIS_e628e89ab3b1c95f: function() {
|
|
642
642
|
const A = typeof globalThis > "u" ? null : globalThis;
|
|
643
|
-
return G(A) ? 0 :
|
|
643
|
+
return G(A) ? 0 : U(A);
|
|
644
644
|
},
|
|
645
645
|
__wbg_static_accessor_SELF_a621d3dfbb60d0ce: function() {
|
|
646
646
|
const A = typeof self > "u" ? null : self;
|
|
647
|
-
return G(A) ? 0 :
|
|
647
|
+
return G(A) ? 0 : U(A);
|
|
648
648
|
},
|
|
649
649
|
__wbg_static_accessor_WINDOW_f8727f0cf888e0bd: function() {
|
|
650
650
|
const A = typeof window > "u" ? null : window;
|
|
651
|
-
return G(A) ? 0 :
|
|
651
|
+
return G(A) ? 0 : U(A);
|
|
652
652
|
},
|
|
653
653
|
__wbg_store_d1d951c98d9bed41: function() {
|
|
654
654
|
return D(function(A, g, I) {
|
|
@@ -665,8 +665,8 @@ function n() {
|
|
|
665
665
|
return A.then(g);
|
|
666
666
|
},
|
|
667
667
|
__wbg_toString_56d946daff83867b: function(A, g, I) {
|
|
668
|
-
const Q = g.toString(I), E =
|
|
669
|
-
|
|
668
|
+
const Q = g.toString(I), E = M(Q, B.__wbindgen_malloc, B.__wbindgen_realloc), w = k;
|
|
669
|
+
o().setInt32(A + 4, w, !0), o().setInt32(A + 0, E, !0);
|
|
670
670
|
},
|
|
671
671
|
__wbg_toString_964ff7fe6eca8362: function(A) {
|
|
672
672
|
return A.toString();
|
|
@@ -697,22 +697,22 @@ function n() {
|
|
|
697
697
|
console.warn(A, g, I);
|
|
698
698
|
},
|
|
699
699
|
__wbindgen_cast_0000000000000001: function(A, g) {
|
|
700
|
-
return
|
|
700
|
+
return Y(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___, d);
|
|
701
701
|
},
|
|
702
702
|
__wbindgen_cast_0000000000000002: function(A, g) {
|
|
703
|
-
return
|
|
703
|
+
return Y(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___, d);
|
|
704
704
|
},
|
|
705
705
|
__wbindgen_cast_0000000000000003: function(A, g) {
|
|
706
|
-
return
|
|
706
|
+
return Y(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___, _);
|
|
707
707
|
},
|
|
708
708
|
__wbindgen_cast_0000000000000004: function(A, g) {
|
|
709
|
-
return
|
|
709
|
+
return Y(A, g, B.wasm_bindgen_36932265c58943ab___closure__destroy___dyn_core_37ee0ce0c4cd57d5___ops__function__FnMut__wasm_bindgen_36932265c58943ab___JsValue____Output_______, u);
|
|
710
710
|
},
|
|
711
711
|
__wbindgen_cast_0000000000000005: function(A, g) {
|
|
712
|
-
return
|
|
712
|
+
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);
|
|
713
713
|
},
|
|
714
714
|
__wbindgen_cast_0000000000000006: function(A, g) {
|
|
715
|
-
return
|
|
715
|
+
return Y(A, g, B.wasm_bindgen_36932265c58943ab___closure__destroy___dyn_core_37ee0ce0c4cd57d5___ops__function__Fn__web_sys_ca373f7aaf47173f___features__gen_MessageEvent__MessageEvent____Output_______, e);
|
|
716
716
|
},
|
|
717
717
|
__wbindgen_cast_0000000000000007: function(A) {
|
|
718
718
|
return A;
|
|
@@ -724,7 +724,7 @@ function n() {
|
|
|
724
724
|
return s(A, g);
|
|
725
725
|
},
|
|
726
726
|
__wbindgen_cast_000000000000000a: function(A, g) {
|
|
727
|
-
return
|
|
727
|
+
return F(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,21 +743,21 @@ function n() {
|
|
|
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
|
+
}
|
|
746
749
|
function v(C, A, g) {
|
|
747
750
|
B.wasm_bindgen_36932265c58943ab___convert__closures_____invoke___web_sys_ca373f7aaf47173f___features__gen_MessageEvent__MessageEvent_____(C, A, g);
|
|
748
751
|
}
|
|
749
|
-
function u(C, A, g) {
|
|
750
|
-
B.wasm_bindgen_36932265c58943ab___convert__closures_____invoke___web_sys_ca373f7aaf47173f___features__gen_MessageEvent__MessageEvent______1_(C, A, g);
|
|
751
|
-
}
|
|
752
752
|
function e(C, A, g) {
|
|
753
|
-
B.
|
|
753
|
+
B.wasm_bindgen_36932265c58943ab___convert__closures_____invoke___web_sys_ca373f7aaf47173f___features__gen_MessageEvent__MessageEvent______1_(C, A, g);
|
|
754
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
758
|
throw x(I[0]);
|
|
759
759
|
}
|
|
760
|
-
function
|
|
760
|
+
function d(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
763
|
throw x(I[1]);
|
|
@@ -767,10 +767,10 @@ 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);
|
|
768
768
|
}
|
|
769
769
|
typeof FinalizationRegistry > "u" || new FinalizationRegistry((C) => B.__wbg_dapadapter_free(C >>> 0, 1));
|
|
770
|
-
const
|
|
770
|
+
const O = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
771
771
|
}, unregister: () => {
|
|
772
772
|
} } : new FinalizationRegistry((C) => B.__wbg_trap_free(C >>> 0, 1));
|
|
773
|
-
function
|
|
773
|
+
function U(C) {
|
|
774
774
|
const A = B.__externref_table_alloc();
|
|
775
775
|
return B.__wbindgen_externrefs.set(A, C), A;
|
|
776
776
|
}
|
|
@@ -816,7 +816,7 @@ ${C.stack}` : I;
|
|
|
816
816
|
}
|
|
817
817
|
function AA(C, A) {
|
|
818
818
|
C = C >>> 0;
|
|
819
|
-
const g =
|
|
819
|
+
const g = o(), I = [];
|
|
820
820
|
for (let Q = C; Q < C + 4 * A; Q += 4)
|
|
821
821
|
I.push(B.__wbindgen_externrefs.get(g.getUint32(Q, !0)));
|
|
822
822
|
return B.__externref_drop_slice(C, A), I;
|
|
@@ -825,10 +825,10 @@ function s(C, A) {
|
|
|
825
825
|
return C = C >>> 0, R().subarray(C / 1, C / 1 + A);
|
|
826
826
|
}
|
|
827
827
|
let y = null;
|
|
828
|
-
function
|
|
828
|
+
function o() {
|
|
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 F(C, A) {
|
|
832
832
|
return C = C >>> 0, CA(C, A);
|
|
833
833
|
}
|
|
834
834
|
let J = null;
|
|
@@ -839,7 +839,7 @@ function D(C, A) {
|
|
|
839
839
|
try {
|
|
840
840
|
return C.apply(this, A);
|
|
841
841
|
} catch (g) {
|
|
842
|
-
const I =
|
|
842
|
+
const I = U(g);
|
|
843
843
|
B.__wbindgen_exn_store(I);
|
|
844
844
|
}
|
|
845
845
|
}
|
|
@@ -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 Y(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 U(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 j(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), k = C.length, g;
|
|
880
880
|
}
|
|
881
|
-
function
|
|
881
|
+
function M(C, A, g) {
|
|
882
882
|
if (g === void 0) {
|
|
883
|
-
const i = L.encode(C),
|
|
884
|
-
return R().subarray(
|
|
883
|
+
const i = L.encode(C), N = A(i.length, 1) >>> 0;
|
|
884
|
+
return R().subarray(N, N + i.length).set(i), k = i.length, N;
|
|
885
885
|
}
|
|
886
886
|
let I = C.length, Q = A(I, 1) >>> 0;
|
|
887
887
|
const E = R();
|
|
@@ -893,10 +893,10 @@ function k(C, A, g) {
|
|
|
893
893
|
}
|
|
894
894
|
if (w !== I) {
|
|
895
895
|
w !== 0 && (C = C.slice(w)), Q = g(Q, I, I = w + C.length * 3, 1) >>> 0;
|
|
896
|
-
const i = R().subarray(Q + w, Q + I),
|
|
897
|
-
w +=
|
|
896
|
+
const i = R().subarray(Q + w, Q + I), N = L.encodeInto(C, i);
|
|
897
|
+
w += N.written, Q = g(Q, I, w, 1) >>> 0;
|
|
898
898
|
}
|
|
899
|
-
return
|
|
899
|
+
return k = w, Q;
|
|
900
900
|
}
|
|
901
901
|
function x(C) {
|
|
902
902
|
const A = B.__wbindgen_externrefs.get(C);
|
|
@@ -905,9 +905,9 @@ function x(C) {
|
|
|
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 Z = 0;
|
|
909
909
|
function CA(C, A) {
|
|
910
|
-
return
|
|
910
|
+
return Z += A, Z >= IA && (c = new TextDecoder("utf-8", { ignoreBOM: !0, fatal: !0 }), c.decode(), Z = 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,7 +917,7 @@ const L = new TextEncoder();
|
|
|
917
917
|
written: g.length
|
|
918
918
|
};
|
|
919
919
|
});
|
|
920
|
-
let
|
|
920
|
+
let k = 0, B;
|
|
921
921
|
function QA(C, A) {
|
|
922
922
|
return B = C.exports, y = null, J = null, B.__wbindgen_start(), B;
|
|
923
923
|
}
|
|
@@ -956,7 +956,7 @@ async function EA(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.
|
|
959
|
+
var DA = new URL("https://cdn.jsdelivr.net/npm/glassjar@0.6.0/dist/engine_bg.wasm");
|
|
960
960
|
class wA {
|
|
961
961
|
enabled = !1;
|
|
962
962
|
verified;
|
|
@@ -996,15 +996,15 @@ 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
|
+
(V) => V.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);
|
|
1003
1003
|
}
|
|
1004
1004
|
if (I.hashMs += performance.now() - w, g !== this.generation) return this.compile(Q, I);
|
|
1005
|
-
const i = performance.now(),
|
|
1005
|
+
const i = performance.now(), N = this.retained, q = N?.sha256 === E && N.bytes.length === Q.length && iA(N.bytes, Q);
|
|
1006
1006
|
if (this.stats.compareMs += performance.now() - i, q)
|
|
1007
|
-
return this.stats.hits++, this.publishStats(),
|
|
1007
|
+
return this.stats.hits++, this.publishStats(), N.module;
|
|
1008
1008
|
this.stats.misses++, this.retained = void 0;
|
|
1009
1009
|
const h = this.compile(Q);
|
|
1010
1010
|
return this.retained = { module: h, bytes: Q, sha256: E }, this.send({ type: "compiler_module", value: this.retained }), this.publishStats(), h;
|
|
@@ -1055,7 +1055,7 @@ function iA(C, A) {
|
|
|
1055
1055
|
return !0;
|
|
1056
1056
|
}
|
|
1057
1057
|
const t = "glassjar-wasm:";
|
|
1058
|
-
function
|
|
1058
|
+
function NA(C, A) {
|
|
1059
1059
|
const g = new URL(String(C), A);
|
|
1060
1060
|
if (g.protocol !== "https:" && g.protocol !== "http:")
|
|
1061
1061
|
throw new TypeError(`Engine Wasm must be served over http(s), not ${g.protocol}`);
|
|
@@ -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), b(
|
|
1075
1075
|
A.toolchain.compiler,
|
|
1076
1076
|
A.toolchain.sysroot,
|
|
1077
1077
|
A.toolchain.compilerHash,
|
|
@@ -1094,14 +1094,14 @@ addEventListener(
|
|
|
1094
1094
|
}
|
|
1095
1095
|
);
|
|
1096
1096
|
try {
|
|
1097
|
-
const C = self.name ?? "", A = C.startsWith(t) ?
|
|
1097
|
+
const C = self.name ?? "", A = C.startsWith(t) ? NA(C.slice(t.length)) : void 0;
|
|
1098
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
|
+
), l(
|
|
1105
1105
|
(g) => a.instantiated(g)
|
|
1106
1106
|
), m();
|
|
1107
1107
|
} catch (C) {
|
package/dist/engine_bg.wasm
CHANGED
|
Binary file
|