barcode-detector 2.2.9 → 2.2.11

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/dist/es/pure.js CHANGED
@@ -1,9 +1,9 @@
1
1
  var Ze = (o) => {
2
2
  throw TypeError(o);
3
3
  };
4
- var Je = (o, f, p) => f.has(o) || Ze("Cannot " + p);
5
- var se = (o, f, p) => (Je(o, f, "read from private field"), p ? p.call(o) : f.get(o)), Ke = (o, f, p) => f.has(o) ? Ze("Cannot add the same private member more than once") : f instanceof WeakSet ? f.add(o) : f.set(o, p), tr = (o, f, p, y) => (Je(o, f, "write to private field"), y ? y.call(o, p) : f.set(o, p), p);
6
- const er = [
4
+ var Je = (o, d, p) => d.has(o) || Ze("Cannot " + p);
5
+ var Ke = (o, d, p) => (Je(o, d, "read from private field"), p ? p.call(o) : d.get(o)), tr = (o, d, p) => d.has(o) ? Ze("Cannot add the same private member more than once") : d instanceof WeakSet ? d.add(o) : d.set(o, p), er = (o, d, p, y) => (Je(o, d, "write to private field"), y ? y.call(o, p) : d.set(o, p), p);
6
+ const rr = [
7
7
  "Aztec",
8
8
  "Codabar",
9
9
  "Code128",
@@ -27,30 +27,30 @@ const er = [
27
27
  "UPC-A",
28
28
  "UPC-E"
29
29
  ];
30
- function Va(o) {
30
+ function za(o) {
31
31
  return o.join("|");
32
32
  }
33
- function Ua(o) {
34
- const f = rr(o);
35
- let p = 0, y = er.length - 1;
33
+ function Na(o) {
34
+ const d = nr(o);
35
+ let p = 0, y = rr.length - 1;
36
36
  for (; p <= y; ) {
37
- const c = Math.floor((p + y) / 2), g = er[c], j = rr(g);
38
- if (j === f)
39
- return g;
40
- j < f ? p = c + 1 : y = c - 1;
37
+ const c = Math.floor((p + y) / 2), $ = rr[c], x = nr($);
38
+ if (x === d)
39
+ return $;
40
+ x < d ? p = c + 1 : y = c - 1;
41
41
  }
42
42
  return "None";
43
43
  }
44
- function rr(o) {
44
+ function nr(o) {
45
45
  return o.toLowerCase().replace(/_-\[\]/g, "");
46
46
  }
47
- function La(o, f) {
48
- return o.Binarizer[f];
47
+ function Ga(o, d) {
48
+ return o.Binarizer[d];
49
49
  }
50
- function za(o, f) {
51
- return o.CharacterSet[f];
50
+ function Xa(o, d) {
51
+ return o.CharacterSet[d];
52
52
  }
53
- const Na = [
53
+ const Ya = [
54
54
  "Text",
55
55
  "Binary",
56
56
  "Mixed",
@@ -58,14 +58,14 @@ const Na = [
58
58
  "ISO15434",
59
59
  "UnknownECI"
60
60
  ];
61
- function Ga(o) {
62
- return Na[o.value];
61
+ function qa(o) {
62
+ return Ya[o.value];
63
63
  }
64
- function Xa(o, f) {
65
- return o.EanAddOnSymbol[f];
64
+ function Qa(o, d) {
65
+ return o.EanAddOnSymbol[d];
66
66
  }
67
- function qa(o, f) {
68
- return o.TextMode[f];
67
+ function Za(o, d) {
68
+ return o.TextMode[d];
69
69
  }
70
70
  const st = {
71
71
  formats: [],
@@ -88,96 +88,96 @@ const st = {
88
88
  textMode: "Plain",
89
89
  characterSet: "Unknown"
90
90
  };
91
- function ar(o, f) {
91
+ function or(o, d) {
92
92
  return {
93
- ...f,
94
- formats: Va(f.formats),
95
- binarizer: La(o, f.binarizer),
96
- eanAddOnSymbol: Xa(
93
+ ...d,
94
+ formats: za(d.formats),
95
+ binarizer: Ga(o, d.binarizer),
96
+ eanAddOnSymbol: Qa(
97
97
  o,
98
- f.eanAddOnSymbol
98
+ d.eanAddOnSymbol
99
99
  ),
100
- textMode: qa(o, f.textMode),
101
- characterSet: za(
100
+ textMode: Za(o, d.textMode),
101
+ characterSet: Xa(
102
102
  o,
103
- f.characterSet
103
+ d.characterSet
104
104
  )
105
105
  };
106
106
  }
107
- function or(o) {
107
+ function ir(o) {
108
108
  return {
109
109
  ...o,
110
- format: Ua(o.format),
110
+ format: Na(o.format),
111
111
  eccLevel: o.eccLevel,
112
- contentType: Ga(o.contentType)
112
+ contentType: qa(o.contentType)
113
113
  };
114
114
  }
115
- const Ya = {
116
- locateFile: (o, f) => {
115
+ const Ja = {
116
+ locateFile: (o, d) => {
117
117
  const p = o.match(/_(.+?)\.wasm$/);
118
- return p ? `https://fastly.jsdelivr.net/npm/zxing-wasm@1.2.12/dist/${p[1]}/${o}` : f + o;
118
+ return p ? `https://fastly.jsdelivr.net/npm/zxing-wasm@1.2.14/dist/${p[1]}/${o}` : d + o;
119
119
  }
120
120
  };
121
- let ue = /* @__PURE__ */ new WeakMap();
122
- function ce(o, f) {
121
+ let se = /* @__PURE__ */ new WeakMap();
122
+ function ce(o, d) {
123
123
  var p;
124
- const y = ue.get(o);
125
- if (y != null && y.modulePromise && f === void 0)
124
+ const y = se.get(o);
125
+ if (y != null && y.modulePromise && d === void 0)
126
126
  return y.modulePromise;
127
- const c = (p = y == null ? void 0 : y.moduleOverrides) != null ? p : Ya, g = o({
127
+ const c = (p = y == null ? void 0 : y.moduleOverrides) != null ? p : Ja, $ = o({
128
128
  ...c
129
129
  });
130
- return ue.set(o, {
130
+ return se.set(o, {
131
131
  moduleOverrides: c,
132
- modulePromise: g
133
- }), g;
132
+ modulePromise: $
133
+ }), $;
134
134
  }
135
- function Qa(o, f) {
136
- ue.set(o, {
137
- moduleOverrides: f
135
+ function Ka(o, d) {
136
+ se.set(o, {
137
+ moduleOverrides: d
138
138
  });
139
139
  }
140
- async function Za(o, f, p = st) {
140
+ async function to(o, d, p = st) {
141
141
  const y = {
142
142
  ...st,
143
143
  ...p
144
- }, c = await ce(o), { size: g } = f, j = new Uint8Array(await f.arrayBuffer()), k = c._malloc(g);
145
- c.HEAPU8.set(j, k);
146
- const H = c.readBarcodesFromImage(
144
+ }, c = await ce(o), { size: $ } = d, x = new Uint8Array(await d.arrayBuffer()), k = c._malloc($);
145
+ c.HEAPU8.set(x, k);
146
+ const V = c.readBarcodesFromImage(
147
147
  k,
148
- g,
149
- ar(c, y)
148
+ $,
149
+ or(c, y)
150
150
  );
151
151
  c._free(k);
152
152
  const W = [];
153
- for (let R = 0; R < H.size(); ++R)
153
+ for (let I = 0; I < V.size(); ++I)
154
154
  W.push(
155
- or(H.get(R))
155
+ ir(V.get(I))
156
156
  );
157
157
  return W;
158
158
  }
159
- async function Ja(o, f, p = st) {
159
+ async function eo(o, d, p = st) {
160
160
  const y = {
161
161
  ...st,
162
162
  ...p
163
163
  }, c = await ce(o), {
164
- data: g,
165
- width: j,
164
+ data: $,
165
+ width: x,
166
166
  height: k,
167
- data: { byteLength: H }
168
- } = f, W = c._malloc(H);
169
- c.HEAPU8.set(g, W);
170
- const R = c.readBarcodesFromPixmap(
167
+ data: { byteLength: V }
168
+ } = d, W = c._malloc(V);
169
+ c.HEAPU8.set($, W);
170
+ const I = c.readBarcodesFromPixmap(
171
171
  W,
172
- j,
172
+ x,
173
173
  k,
174
- ar(c, y)
174
+ or(c, y)
175
175
  );
176
176
  c._free(W);
177
177
  const N = [];
178
- for (let V = 0; V < R.size(); ++V)
178
+ for (let L = 0; L < I.size(); ++L)
179
179
  N.push(
180
- or(R.get(V))
180
+ ir(I.get(L))
181
181
  );
182
182
  return N;
183
183
  }
@@ -185,273 +185,265 @@ async function Ja(o, f, p = st) {
185
185
  ...st,
186
186
  formats: [...st.formats]
187
187
  });
188
- var Ht = (() => {
189
- var o, f = typeof document < "u" ? (o = document.currentScript) == null ? void 0 : o.src : void 0;
188
+ var Ut = (() => {
189
+ var o, d = typeof document < "u" && ((o = document.currentScript) == null ? void 0 : o.tagName.toUpperCase()) === "SCRIPT" ? document.currentScript.src : void 0;
190
190
  return function(p = {}) {
191
- var y, c = p, g, j, k = new Promise((e, t) => {
192
- g = e, j = t;
193
- }), H = typeof window == "object", W = typeof Bun < "u", R = typeof importScripts == "function";
194
- typeof process == "object" && typeof process.versions == "object" && process.versions.node;
195
- var N = Object.assign({}, c), V = "./this.program", M = "";
196
- function bt(e) {
197
- return c.locateFile ? c.locateFile(e, M) : M + e;
191
+ var y, c = p, $, x, k = new Promise((t, e) => {
192
+ $ = t, x = e;
193
+ }), V = typeof window == "object", W = typeof Bun < "u", I = typeof importScripts == "function";
194
+ typeof process == "object" && typeof process.versions == "object" && typeof process.versions.node == "string" && process.type != "renderer";
195
+ var N = Object.assign({}, c), L = "./this.program", R = "";
196
+ function ut(t) {
197
+ return c.locateFile ? c.locateFile(t, R) : R + t;
198
198
  }
199
- var ut, ct;
200
- (H || R || W) && (R ? M = self.location.href : typeof document < "u" && document.currentScript && (M = document.currentScript.src), f && (M = f), M.startsWith("blob:") ? M = "" : M = M.substr(0, M.replace(/[?#].*/, "").lastIndexOf("/") + 1), R && (ct = (e) => {
201
- var t = new XMLHttpRequest();
202
- return t.open("GET", e, !1), t.responseType = "arraybuffer", t.send(null), new Uint8Array(t.response);
203
- }), ut = (e) => fetch(e, {
204
- credentials: "same-origin"
205
- }).then((t) => t.ok ? t.arrayBuffer() : Promise.reject(new Error(t.status + " : " + t.url))));
206
- var Vt = c.print || console.log.bind(console), rt = c.printErr || console.error.bind(console);
207
- Object.assign(c, N), N = null, c.arguments && c.arguments, c.thisProgram && (V = c.thisProgram), c.quit && c.quit;
208
- var lt;
209
- c.wasmBinary && (lt = c.wasmBinary);
210
- var Ct, le = !1, U, F, nt, dt, Z, b, de, fe;
199
+ var ct, rt;
200
+ if (V || I || W) {
201
+ var lt;
202
+ I ? R = self.location.href : typeof document < "u" && ((lt = document.currentScript) === null || lt === void 0 ? void 0 : lt.tagName.toUpperCase()) === "SCRIPT" && (R = document.currentScript.src), d && (R = d), R.startsWith("blob:") ? R = "" : R = R.substr(0, R.replace(/[?#].*/, "").lastIndexOf("/") + 1), I && (rt = (t) => {
203
+ var e = new XMLHttpRequest();
204
+ return e.open("GET", t, !1), e.responseType = "arraybuffer", e.send(null), new Uint8Array(e.response);
205
+ }), ct = (t) => fetch(t, {
206
+ credentials: "same-origin"
207
+ }).then((e) => e.ok ? e.arrayBuffer() : Promise.reject(new Error(e.status + " : " + e.url)));
208
+ }
209
+ var Vt = c.print || console.log.bind(console), nt = c.printErr || console.error.bind(console);
210
+ Object.assign(c, N), N = null, c.arguments && c.arguments, c.thisProgram && (L = c.thisProgram);
211
+ var Ct = c.wasmBinary, Tt, le = !1, H, F, at, dt, Z, b, de, fe;
211
212
  function he() {
212
- var e = Ct.buffer;
213
- c.HEAP8 = U = new Int8Array(e), c.HEAP16 = nt = new Int16Array(e), c.HEAPU8 = F = new Uint8Array(e), c.HEAPU16 = dt = new Uint16Array(e), c.HEAP32 = Z = new Int32Array(e), c.HEAPU32 = b = new Uint32Array(e), c.HEAPF32 = de = new Float32Array(e), c.HEAPF64 = fe = new Float64Array(e);
213
+ var t = Tt.buffer;
214
+ c.HEAP8 = H = new Int8Array(t), c.HEAP16 = at = new Int16Array(t), c.HEAPU8 = F = new Uint8Array(t), c.HEAPU16 = dt = new Uint16Array(t), c.HEAP32 = Z = new Int32Array(t), c.HEAPU32 = b = new Uint32Array(t), c.HEAPF32 = de = new Float32Array(t), c.HEAPF64 = fe = new Float64Array(t);
214
215
  }
215
- var pe = [], ve = [], me = [];
216
+ var pe = [], ve = [], ye = [];
216
217
  function mr() {
217
218
  if (c.preRun)
218
219
  for (typeof c.preRun == "function" && (c.preRun = [c.preRun]); c.preRun.length; )
219
- wr(c.preRun.shift());
220
- Lt(pe);
221
- }
222
- function yr() {
223
- Lt(ve);
220
+ $r(c.preRun.shift());
221
+ Ht(pe);
224
222
  }
225
223
  function gr() {
224
+ Ht(ve);
225
+ }
226
+ function wr() {
226
227
  if (c.postRun)
227
228
  for (typeof c.postRun == "function" && (c.postRun = [c.postRun]); c.postRun.length; )
228
- br(c.postRun.shift());
229
- Lt(me);
229
+ Cr(c.postRun.shift());
230
+ Ht(ye);
230
231
  }
231
- function wr(e) {
232
- pe.unshift(e);
232
+ function $r(t) {
233
+ pe.unshift(t);
233
234
  }
234
- function $r(e) {
235
- ve.unshift(e);
235
+ function br(t) {
236
+ ve.unshift(t);
236
237
  }
237
- function br(e) {
238
- me.unshift(e);
238
+ function Cr(t) {
239
+ ye.unshift(t);
239
240
  }
240
241
  var J = 0, ft = null;
241
- function Cr(e) {
242
- var t;
243
- J++, (t = c.monitorRunDependencies) === null || t === void 0 || t.call(c, J);
242
+ function Tr(t) {
243
+ var e;
244
+ J++, (e = c.monitorRunDependencies) === null || e === void 0 || e.call(c, J);
244
245
  }
245
- function Tr(e) {
246
- var t;
247
- if (J--, (t = c.monitorRunDependencies) === null || t === void 0 || t.call(c, J), J == 0 && ft) {
246
+ function Pr(t) {
247
+ var e;
248
+ if (J--, (e = c.monitorRunDependencies) === null || e === void 0 || e.call(c, J), J == 0 && ft) {
248
249
  var r = ft;
249
250
  ft = null, r();
250
251
  }
251
252
  }
252
- function Ut(e) {
253
- var t;
254
- (t = c.onAbort) === null || t === void 0 || t.call(c, e), e = "Aborted(" + e + ")", rt(e), le = !0, e += ". Build with -sASSERTIONS for more info.";
255
- var r = new WebAssembly.RuntimeError(e);
256
- throw j(r), r;
253
+ function Lt(t) {
254
+ var e;
255
+ (e = c.onAbort) === null || e === void 0 || e.call(c, t), t = "Aborted(" + t + ")", nt(t), le = !0, t += ". Build with -sASSERTIONS for more info.";
256
+ var r = new WebAssembly.RuntimeError(t);
257
+ throw x(r), r;
257
258
  }
258
- var Pr = "data:application/octet-stream;base64,", ye = (e) => e.startsWith(Pr);
259
- function Er() {
260
- var e = "zxing_reader.wasm";
261
- return ye(e) ? e : bt(e);
259
+ var Er = "data:application/octet-stream;base64,", me = (t) => t.startsWith(Er);
260
+ function _r() {
261
+ var t = "zxing_reader.wasm";
262
+ return me(t) ? t : ut(t);
262
263
  }
263
- var Tt;
264
- function ge(e) {
265
- if (e == Tt && lt)
266
- return new Uint8Array(lt);
267
- if (ct)
268
- return ct(e);
264
+ var Pt;
265
+ function ge(t) {
266
+ if (t == Pt && Ct)
267
+ return new Uint8Array(Ct);
268
+ if (rt)
269
+ return rt(t);
269
270
  throw "both async and sync fetching of the wasm failed";
270
271
  }
271
- function _r(e) {
272
- return lt ? Promise.resolve().then(() => ge(e)) : ut(e).then((t) => new Uint8Array(t), () => ge(e));
272
+ function Ar(t) {
273
+ return Ct ? Promise.resolve().then(() => ge(t)) : ct(t).then((e) => new Uint8Array(e), () => ge(t));
273
274
  }
274
- function we(e, t, r) {
275
- return _r(e).then((n) => WebAssembly.instantiate(n, t)).then(r, (n) => {
276
- rt(`failed to asynchronously prepare wasm: ${n}`), Ut(n);
275
+ function we(t, e, r) {
276
+ return Ar(t).then((n) => WebAssembly.instantiate(n, e)).then(r, (n) => {
277
+ nt(`failed to asynchronously prepare wasm: ${n}`), Lt(n);
277
278
  });
278
279
  }
279
- function Ar(e, t, r, n) {
280
- return !e && typeof WebAssembly.instantiateStreaming == "function" && !ye(t) && typeof fetch == "function" ? fetch(t, {
280
+ function Or(t, e, r, n) {
281
+ return !t && typeof WebAssembly.instantiateStreaming == "function" && !me(e) && typeof fetch == "function" ? fetch(e, {
281
282
  credentials: "same-origin"
282
283
  }).then((a) => {
283
284
  var i = WebAssembly.instantiateStreaming(a, r);
284
285
  return i.then(n, function(u) {
285
- return rt(`wasm streaming compile failed: ${u}`), rt("falling back to ArrayBuffer instantiation"), we(t, r, n);
286
+ return nt(`wasm streaming compile failed: ${u}`), nt("falling back to ArrayBuffer instantiation"), we(e, r, n);
286
287
  });
287
- }) : we(t, r, n);
288
+ }) : we(e, r, n);
288
289
  }
289
- function xr() {
290
+ function Dr() {
290
291
  return {
291
- a: ga
292
+ a: ba
292
293
  };
293
294
  }
294
- function Dr() {
295
- var e = xr();
296
- function t(n, a) {
297
- return P = n.exports, Ct = P.ma, he(), xe = P.qa, $r(P.na), Tr(), P;
295
+ function xr() {
296
+ var t, e = Dr();
297
+ function r(a, i) {
298
+ return E = a.exports, Tt = E.ma, he(), Oe = E.qa, br(E.na), Pr(), E;
298
299
  }
299
- Cr();
300
- function r(n) {
301
- t(n.instance);
300
+ Tr();
301
+ function n(a) {
302
+ r(a.instance);
302
303
  }
303
304
  if (c.instantiateWasm)
304
305
  try {
305
- return c.instantiateWasm(e, t);
306
- } catch (n) {
307
- rt(`Module.instantiateWasm callback failed with error: ${n}`), j(n);
306
+ return c.instantiateWasm(e, r);
307
+ } catch (a) {
308
+ nt(`Module.instantiateWasm callback failed with error: ${a}`), x(a);
308
309
  }
309
- return Tt || (Tt = Er()), Ar(lt, Tt, e, r).catch(j), {};
310
+ return (t = Pt) !== null && t !== void 0 || (Pt = _r()), Or(Ct, Pt, e, n).catch(x), {};
310
311
  }
311
- var Lt = (e) => {
312
- for (; e.length > 0; )
313
- e.shift()(c);
312
+ var Ht = (t) => {
313
+ for (; t.length > 0; )
314
+ t.shift()(c);
314
315
  };
315
316
  c.noExitRuntime;
316
- var _ = (e) => Be(e), A = () => He(), Pt = [], Et = 0, Fr = (e) => {
317
- var t = new zt(e);
318
- return t.get_caught() || (t.set_caught(!0), Et--), t.set_rethrown(!1), Pt.push(t), Ue(t.excPtr), t.get_exception_ptr();
319
- }, G = 0, Or = () => {
320
- C(0, 0);
321
- var e = Pt.pop();
322
- Ve(e.excPtr), G = 0;
317
+ var _ = (t) => Be(t), A = () => Ue(), Et = [], _t = 0, Sr = (t) => {
318
+ var e = new zt(t);
319
+ return e.get_caught() || (e.set_caught(!0), _t--), e.set_rethrown(!1), Et.push(e), Le(t), ze(t);
320
+ }, G = 0, jr = () => {
321
+ T(0, 0);
322
+ var t = Et.pop();
323
+ Ve(t.excPtr), G = 0;
323
324
  };
324
325
  class zt {
325
- constructor(t) {
326
- this.excPtr = t, this.ptr = t - 24;
326
+ constructor(e) {
327
+ this.excPtr = e, this.ptr = e - 24;
327
328
  }
328
- set_type(t) {
329
- b[this.ptr + 4 >> 2] = t;
329
+ set_type(e) {
330
+ b[this.ptr + 4 >> 2] = e;
330
331
  }
331
332
  get_type() {
332
333
  return b[this.ptr + 4 >> 2];
333
334
  }
334
- set_destructor(t) {
335
- b[this.ptr + 8 >> 2] = t;
335
+ set_destructor(e) {
336
+ b[this.ptr + 8 >> 2] = e;
336
337
  }
337
338
  get_destructor() {
338
339
  return b[this.ptr + 8 >> 2];
339
340
  }
340
- set_caught(t) {
341
- t = t ? 1 : 0, U[this.ptr + 12] = t;
341
+ set_caught(e) {
342
+ e = e ? 1 : 0, H[this.ptr + 12] = e;
342
343
  }
343
344
  get_caught() {
344
- return U[this.ptr + 12] != 0;
345
+ return H[this.ptr + 12] != 0;
345
346
  }
346
- set_rethrown(t) {
347
- t = t ? 1 : 0, U[this.ptr + 13] = t;
347
+ set_rethrown(e) {
348
+ e = e ? 1 : 0, H[this.ptr + 13] = e;
348
349
  }
349
350
  get_rethrown() {
350
- return U[this.ptr + 13] != 0;
351
+ return H[this.ptr + 13] != 0;
351
352
  }
352
- init(t, r) {
353
- this.set_adjusted_ptr(0), this.set_type(t), this.set_destructor(r);
353
+ init(e, r) {
354
+ this.set_adjusted_ptr(0), this.set_type(e), this.set_destructor(r);
354
355
  }
355
- set_adjusted_ptr(t) {
356
- b[this.ptr + 16 >> 2] = t;
356
+ set_adjusted_ptr(e) {
357
+ b[this.ptr + 16 >> 2] = e;
357
358
  }
358
359
  get_adjusted_ptr() {
359
360
  return b[this.ptr + 16 >> 2];
360
361
  }
361
- get_exception_ptr() {
362
- var t = ze(this.get_type());
363
- if (t)
364
- return b[this.excPtr >> 2];
365
- var r = this.get_adjusted_ptr();
366
- return r !== 0 ? r : this.excPtr;
367
- }
368
362
  }
369
- var Sr = (e) => {
370
- throw G || (G = e), G;
371
- }, _t = (e) => ke(e), Nt = (e) => {
372
- var t = G;
373
- if (!t)
374
- return _t(0), 0;
375
- var r = new zt(t);
376
- r.set_adjusted_ptr(t);
363
+ var Fr = (t) => {
364
+ throw G || (G = t), G;
365
+ }, At = (t) => ke(t), Nt = (t) => {
366
+ var e = G;
367
+ if (!e)
368
+ return At(0), 0;
369
+ var r = new zt(e);
370
+ r.set_adjusted_ptr(e);
377
371
  var n = r.get_type();
378
372
  if (!n)
379
- return _t(0), t;
380
- for (var a of e) {
373
+ return At(0), e;
374
+ for (var a of t) {
381
375
  if (a === 0 || a === n)
382
376
  break;
383
377
  var i = r.ptr + 16;
384
- if (Le(a, n, i))
385
- return _t(a), t;
386
- }
387
- return _t(n), t;
388
- }, jr = () => Nt([]), Ir = (e) => Nt([e]), Rr = (e, t) => Nt([e, t]), Mr = () => {
389
- var e = Pt.pop();
390
- e || Ut("no exception to throw");
391
- var t = e.excPtr;
392
- throw e.get_rethrown() || (Pt.push(e), e.set_rethrown(!0), e.set_caught(!1), Et++), G = t, G;
393
- }, Wr = (e, t, r) => {
394
- var n = new zt(e);
395
- throw n.init(t, r), G = e, Et++, G;
396
- }, kr = () => Et, Br = () => {
397
- Ut("");
398
- }, At = {}, Gt = (e) => {
399
- for (; e.length; ) {
400
- var t = e.pop(), r = e.pop();
401
- r(t);
378
+ if (He(a, n, i))
379
+ return At(a), e;
380
+ }
381
+ return At(n), e;
382
+ }, Mr = () => Nt([]), Ir = (t) => Nt([t]), Rr = (t, e) => Nt([t, e]), Wr = () => {
383
+ var t = Et.pop();
384
+ t || Lt("no exception to throw");
385
+ var e = t.excPtr;
386
+ throw t.get_rethrown() || (Et.push(t), t.set_rethrown(!0), t.set_caught(!1), _t++), G = e, G;
387
+ }, kr = (t, e, r) => {
388
+ var n = new zt(t);
389
+ throw n.init(e, r), G = t, _t++, G;
390
+ }, Br = () => _t, Ur = () => {
391
+ Lt("");
392
+ }, Ot = {}, Gt = (t) => {
393
+ for (; t.length; ) {
394
+ var e = t.pop(), r = t.pop();
395
+ r(e);
402
396
  }
403
397
  };
404
- function ht(e) {
405
- return this.fromWireType(b[e >> 2]);
398
+ function ht(t) {
399
+ return this.fromWireType(b[t >> 2]);
406
400
  }
407
- var at = {}, K = {}, xt = {}, $e, Dt = (e) => {
408
- throw new $e(e);
409
- }, tt = (e, t, r) => {
410
- e.forEach(function(s) {
411
- xt[s] = t;
412
- });
401
+ var ot = {}, K = {}, Dt = {}, $e, xt = (t) => {
402
+ throw new $e(t);
403
+ }, tt = (t, e, r) => {
404
+ t.forEach((s) => Dt[s] = e);
413
405
  function n(s) {
414
406
  var l = r(s);
415
- l.length !== e.length && Dt("Mismatched type converter count");
416
- for (var d = 0; d < e.length; ++d)
417
- L(e[d], l[d]);
407
+ l.length !== t.length && xt("Mismatched type converter count");
408
+ for (var f = 0; f < t.length; ++f)
409
+ B(t[f], l[f]);
418
410
  }
419
- var a = new Array(t.length), i = [], u = 0;
420
- t.forEach((s, l) => {
421
- K.hasOwnProperty(s) ? a[l] = K[s] : (i.push(s), at.hasOwnProperty(s) || (at[s] = []), at[s].push(() => {
411
+ var a = new Array(e.length), i = [], u = 0;
412
+ e.forEach((s, l) => {
413
+ K.hasOwnProperty(s) ? a[l] = K[s] : (i.push(s), ot.hasOwnProperty(s) || (ot[s] = []), ot[s].push(() => {
422
414
  a[l] = K[s], ++u, u === i.length && n(a);
423
415
  }));
424
416
  }), i.length === 0 && n(a);
425
- }, Hr = (e) => {
426
- var t = At[e];
427
- delete At[e];
428
- var r = t.rawConstructor, n = t.rawDestructor, a = t.fields, i = a.map((u) => u.getterReturnType).concat(a.map((u) => u.setterArgumentType));
429
- tt([e], i, (u) => {
417
+ }, Vr = (t) => {
418
+ var e = Ot[t];
419
+ delete Ot[t];
420
+ var r = e.rawConstructor, n = e.rawDestructor, a = e.fields, i = a.map((u) => u.getterReturnType).concat(a.map((u) => u.setterArgumentType));
421
+ tt([t], i, (u) => {
430
422
  var s = {};
431
- return a.forEach((l, d) => {
432
- var h = l.fieldName, v = u[d], m = l.getter, w = l.getterContext, x = u[d + a.length], O = l.setter, E = l.setterContext;
423
+ return a.forEach((l, f) => {
424
+ var h = l.fieldName, v = u[f], m = l.getter, w = l.getterContext, C = u[f + a.length], S = l.setter, O = l.setterContext;
433
425
  s[h] = {
434
- read: (S) => v.fromWireType(m(w, S)),
435
- write: (S, et) => {
436
- var I = [];
437
- O(E, S, x.toWireType(I, et)), Gt(I);
426
+ read: (D) => v.fromWireType(m(w, D)),
427
+ write: (D, et) => {
428
+ var M = [];
429
+ S(O, D, C.toWireType(M, et)), Gt(M);
438
430
  }
439
431
  };
440
432
  }), [{
441
- name: t.name,
433
+ name: e.name,
442
434
  fromWireType: (l) => {
443
- var d = {};
435
+ var f = {};
444
436
  for (var h in s)
445
- d[h] = s[h].read(l);
446
- return n(l), d;
437
+ f[h] = s[h].read(l);
438
+ return n(l), f;
447
439
  },
448
- toWireType: (l, d) => {
440
+ toWireType: (l, f) => {
449
441
  for (var h in s)
450
- if (!(h in d))
442
+ if (!(h in f))
451
443
  throw new TypeError(`Missing field: "${h}"`);
452
444
  var v = r();
453
445
  for (h in s)
454
- s[h].write(v, d[h]);
446
+ s[h].write(v, f[h]);
455
447
  return l !== null && l.push(n, v), v;
456
448
  },
457
449
  argPackAdvance: z,
@@ -459,40 +451,38 @@ var Ht = (() => {
459
451
  destructorFunction: n
460
452
  }];
461
453
  });
462
- }, Vr = (e, t, r, n, a) => {
463
- }, Ur = () => {
464
- for (var e = new Array(256), t = 0; t < 256; ++t)
465
- e[t] = String.fromCharCode(t);
466
- be = e;
467
- }, be, D = (e) => {
468
- for (var t = "", r = e; F[r]; )
469
- t += be[F[r++]];
470
- return t;
471
- }, ot, $ = (e) => {
472
- throw new ot(e);
454
+ }, Lr = (t, e, r, n, a) => {
455
+ }, Hr = () => {
456
+ for (var t = new Array(256), e = 0; e < 256; ++e)
457
+ t[e] = String.fromCharCode(e);
458
+ be = t;
459
+ }, be, j = (t) => {
460
+ for (var e = "", r = t; F[r]; )
461
+ e += be[F[r++]];
462
+ return e;
463
+ }, it, g = (t) => {
464
+ throw new it(t);
473
465
  };
474
- function Lr(e, t) {
466
+ function zr(t, e) {
475
467
  let r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
476
- var n = t.name;
477
- if (e || $(`type "${n}" must have a positive integer typeid pointer`), K.hasOwnProperty(e)) {
468
+ var n = e.name;
469
+ if (t || g(`type "${n}" must have a positive integer typeid pointer`), K.hasOwnProperty(t)) {
478
470
  if (r.ignoreDuplicateRegistrations)
479
471
  return;
480
- $(`Cannot register type '${n}' twice`);
472
+ g(`Cannot register type '${n}' twice`);
481
473
  }
482
- if (K[e] = t, delete xt[e], at.hasOwnProperty(e)) {
483
- var a = at[e];
484
- delete at[e], a.forEach((i) => i());
474
+ if (K[t] = e, delete Dt[t], ot.hasOwnProperty(t)) {
475
+ var a = ot[t];
476
+ delete ot[t], a.forEach((i) => i());
485
477
  }
486
478
  }
487
- function L(e, t) {
479
+ function B(t, e) {
488
480
  let r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
489
- if (!("argPackAdvance" in t))
490
- throw new TypeError("registerType registeredInstance requires argPackAdvance");
491
- return Lr(e, t, r);
481
+ return zr(t, e, r);
492
482
  }
493
- var z = 8, zr = (e, t, r, n) => {
494
- t = D(t), L(e, {
495
- name: t,
483
+ var z = 8, Nr = (t, e, r, n) => {
484
+ e = j(e), B(t, {
485
+ name: e,
496
486
  fromWireType: function(a) {
497
487
  return !!a;
498
488
  },
@@ -505,396 +495,396 @@ var Ht = (() => {
505
495
  },
506
496
  destructorFunction: null
507
497
  });
508
- }, Nr = (e) => ({
509
- count: e.count,
510
- deleteScheduled: e.deleteScheduled,
511
- preservePointerOnDelete: e.preservePointerOnDelete,
512
- ptr: e.ptr,
513
- ptrType: e.ptrType,
514
- smartPtr: e.smartPtr,
515
- smartPtrType: e.smartPtrType
516
- }), Xt = (e) => {
517
- function t(r) {
498
+ }, Gr = (t) => ({
499
+ count: t.count,
500
+ deleteScheduled: t.deleteScheduled,
501
+ preservePointerOnDelete: t.preservePointerOnDelete,
502
+ ptr: t.ptr,
503
+ ptrType: t.ptrType,
504
+ smartPtr: t.smartPtr,
505
+ smartPtrType: t.smartPtrType
506
+ }), Xt = (t) => {
507
+ function e(r) {
518
508
  return r.$$.ptrType.registeredClass.name;
519
509
  }
520
- $(t(e) + " instance already deleted");
521
- }, qt = !1, Ce = (e) => {
522
- }, Gr = (e) => {
523
- e.smartPtr ? e.smartPtrType.rawDestructor(e.smartPtr) : e.ptrType.registeredClass.rawDestructor(e.ptr);
524
- }, Te = (e) => {
525
- e.count.value -= 1;
526
- var t = e.count.value === 0;
527
- t && Gr(e);
528
- }, Pe = (e, t, r) => {
529
- if (t === r)
530
- return e;
510
+ g(e(t) + " instance already deleted");
511
+ }, Yt = !1, Ce = (t) => {
512
+ }, Xr = (t) => {
513
+ t.smartPtr ? t.smartPtrType.rawDestructor(t.smartPtr) : t.ptrType.registeredClass.rawDestructor(t.ptr);
514
+ }, Te = (t) => {
515
+ t.count.value -= 1;
516
+ var e = t.count.value === 0;
517
+ e && Xr(t);
518
+ }, Pe = (t, e, r) => {
519
+ if (e === r)
520
+ return t;
531
521
  if (r.baseClass === void 0)
532
522
  return null;
533
- var n = Pe(e, t, r.baseClass);
523
+ var n = Pe(t, e, r.baseClass);
534
524
  return n === null ? null : r.downcast(n);
535
- }, Ee = {}, Xr = () => Object.keys(mt).length, qr = () => {
536
- var e = [];
537
- for (var t in mt)
538
- mt.hasOwnProperty(t) && e.push(mt[t]);
539
- return e;
540
- }, pt = [], Yt = () => {
541
- for (; pt.length; ) {
542
- var e = pt.pop();
543
- e.$$.deleteScheduled = !1, e.delete();
544
- }
545
- }, vt, Yr = (e) => {
546
- vt = e, pt.length && vt && vt(Yt);
547
- }, Qr = () => {
548
- c.getInheritedInstanceCount = Xr, c.getLiveInheritedInstances = qr, c.flushPendingDeletes = Yt, c.setDelayFunction = Yr;
549
- }, mt = {}, Zr = (e, t) => {
550
- for (t === void 0 && $("ptr should not be undefined"); e.baseClass; )
551
- t = e.upcast(t), e = e.baseClass;
525
+ }, Ee = {}, Yr = () => Object.keys(yt).length, qr = () => {
526
+ var t = [];
527
+ for (var e in yt)
528
+ yt.hasOwnProperty(e) && t.push(yt[e]);
552
529
  return t;
553
- }, Jr = (e, t) => (t = Zr(e, t), mt[t]), Ft = (e, t) => {
554
- (!t.ptrType || !t.ptr) && Dt("makeClassHandle requires ptr and ptrType");
555
- var r = !!t.smartPtrType, n = !!t.smartPtr;
556
- return r !== n && Dt("Both smartPtrType and smartPtr must be specified"), t.count = {
530
+ }, pt = [], qt = () => {
531
+ for (; pt.length; ) {
532
+ var t = pt.pop();
533
+ t.$$.deleteScheduled = !1, t.delete();
534
+ }
535
+ }, vt, Qr = (t) => {
536
+ vt = t, pt.length && vt && vt(qt);
537
+ }, Zr = () => {
538
+ c.getInheritedInstanceCount = Yr, c.getLiveInheritedInstances = qr, c.flushPendingDeletes = qt, c.setDelayFunction = Qr;
539
+ }, yt = {}, Jr = (t, e) => {
540
+ for (e === void 0 && g("ptr should not be undefined"); t.baseClass; )
541
+ e = t.upcast(e), t = t.baseClass;
542
+ return e;
543
+ }, Kr = (t, e) => (e = Jr(t, e), yt[e]), St = (t, e) => {
544
+ (!e.ptrType || !e.ptr) && xt("makeClassHandle requires ptr and ptrType");
545
+ var r = !!e.smartPtrType, n = !!e.smartPtr;
546
+ return r !== n && xt("Both smartPtrType and smartPtr must be specified"), e.count = {
557
547
  value: 1
558
- }, yt(Object.create(e, {
548
+ }, mt(Object.create(t, {
559
549
  $$: {
560
- value: t,
550
+ value: e,
561
551
  writable: !0
562
552
  }
563
553
  }));
564
554
  };
565
- function Kr(e) {
566
- var t = this.getPointee(e);
567
- if (!t)
568
- return this.destructor(e), null;
569
- var r = Jr(this.registeredClass, t);
555
+ function tn(t) {
556
+ var e = this.getPointee(t);
557
+ if (!e)
558
+ return this.destructor(t), null;
559
+ var r = Kr(this.registeredClass, e);
570
560
  if (r !== void 0) {
571
561
  if (r.$$.count.value === 0)
572
- return r.$$.ptr = t, r.$$.smartPtr = e, r.clone();
562
+ return r.$$.ptr = e, r.$$.smartPtr = t, r.clone();
573
563
  var n = r.clone();
574
- return this.destructor(e), n;
564
+ return this.destructor(t), n;
575
565
  }
576
566
  function a() {
577
- return this.isSmartPointer ? Ft(this.registeredClass.instancePrototype, {
567
+ return this.isSmartPointer ? St(this.registeredClass.instancePrototype, {
578
568
  ptrType: this.pointeeType,
579
- ptr: t,
569
+ ptr: e,
580
570
  smartPtrType: this,
581
- smartPtr: e
582
- }) : Ft(this.registeredClass.instancePrototype, {
571
+ smartPtr: t
572
+ }) : St(this.registeredClass.instancePrototype, {
583
573
  ptrType: this,
584
- ptr: e
574
+ ptr: t
585
575
  });
586
576
  }
587
- var i = this.registeredClass.getActualType(t), u = Ee[i];
577
+ var i = this.registeredClass.getActualType(e), u = Ee[i];
588
578
  if (!u)
589
579
  return a.call(this);
590
580
  var s;
591
581
  this.isConst ? s = u.constPointerType : s = u.pointerType;
592
- var l = Pe(t, this.registeredClass, s.registeredClass);
593
- return l === null ? a.call(this) : this.isSmartPointer ? Ft(s.registeredClass.instancePrototype, {
582
+ var l = Pe(e, this.registeredClass, s.registeredClass);
583
+ return l === null ? a.call(this) : this.isSmartPointer ? St(s.registeredClass.instancePrototype, {
594
584
  ptrType: s,
595
585
  ptr: l,
596
586
  smartPtrType: this,
597
- smartPtr: e
598
- }) : Ft(s.registeredClass.instancePrototype, {
587
+ smartPtr: t
588
+ }) : St(s.registeredClass.instancePrototype, {
599
589
  ptrType: s,
600
590
  ptr: l
601
591
  });
602
592
  }
603
- var yt = (e) => typeof FinalizationRegistry > "u" ? (yt = (t) => t, e) : (qt = new FinalizationRegistry((t) => {
604
- Te(t.$$);
605
- }), yt = (t) => {
606
- var r = t.$$, n = !!r.smartPtr;
593
+ var mt = (t) => typeof FinalizationRegistry > "u" ? (mt = (e) => e, t) : (Yt = new FinalizationRegistry((e) => {
594
+ Te(e.$$);
595
+ }), mt = (e) => {
596
+ var r = e.$$, n = !!r.smartPtr;
607
597
  if (n) {
608
598
  var a = {
609
599
  $$: r
610
600
  };
611
- qt.register(t, a, t);
601
+ Yt.register(e, a, e);
612
602
  }
613
- return t;
614
- }, Ce = (t) => qt.unregister(t), yt(e)), tn = () => {
615
- Object.assign(Ot.prototype, {
616
- isAliasOf(e) {
617
- if (!(this instanceof Ot) || !(e instanceof Ot))
603
+ return e;
604
+ }, Ce = (e) => Yt.unregister(e), mt(t)), en = () => {
605
+ Object.assign(jt.prototype, {
606
+ isAliasOf(t) {
607
+ if (!(this instanceof jt) || !(t instanceof jt))
618
608
  return !1;
619
- var t = this.$$.ptrType.registeredClass, r = this.$$.ptr;
620
- e.$$ = e.$$;
621
- for (var n = e.$$.ptrType.registeredClass, a = e.$$.ptr; t.baseClass; )
622
- r = t.upcast(r), t = t.baseClass;
609
+ var e = this.$$.ptrType.registeredClass, r = this.$$.ptr;
610
+ t.$$ = t.$$;
611
+ for (var n = t.$$.ptrType.registeredClass, a = t.$$.ptr; e.baseClass; )
612
+ r = e.upcast(r), e = e.baseClass;
623
613
  for (; n.baseClass; )
624
614
  a = n.upcast(a), n = n.baseClass;
625
- return t === n && r === a;
615
+ return e === n && r === a;
626
616
  },
627
617
  clone() {
628
618
  if (this.$$.ptr || Xt(this), this.$$.preservePointerOnDelete)
629
619
  return this.$$.count.value += 1, this;
630
- var e = yt(Object.create(Object.getPrototypeOf(this), {
620
+ var t = mt(Object.create(Object.getPrototypeOf(this), {
631
621
  $$: {
632
- value: Nr(this.$$)
622
+ value: Gr(this.$$)
633
623
  }
634
624
  }));
635
- return e.$$.count.value += 1, e.$$.deleteScheduled = !1, e;
625
+ return t.$$.count.value += 1, t.$$.deleteScheduled = !1, t;
636
626
  },
637
627
  delete() {
638
- this.$$.ptr || Xt(this), this.$$.deleteScheduled && !this.$$.preservePointerOnDelete && $("Object already scheduled for deletion"), Ce(this), Te(this.$$), this.$$.preservePointerOnDelete || (this.$$.smartPtr = void 0, this.$$.ptr = void 0);
628
+ this.$$.ptr || Xt(this), this.$$.deleteScheduled && !this.$$.preservePointerOnDelete && g("Object already scheduled for deletion"), Ce(this), Te(this.$$), this.$$.preservePointerOnDelete || (this.$$.smartPtr = void 0, this.$$.ptr = void 0);
639
629
  },
640
630
  isDeleted() {
641
631
  return !this.$$.ptr;
642
632
  },
643
633
  deleteLater() {
644
- return this.$$.ptr || Xt(this), this.$$.deleteScheduled && !this.$$.preservePointerOnDelete && $("Object already scheduled for deletion"), pt.push(this), pt.length === 1 && vt && vt(Yt), this.$$.deleteScheduled = !0, this;
634
+ return this.$$.ptr || Xt(this), this.$$.deleteScheduled && !this.$$.preservePointerOnDelete && g("Object already scheduled for deletion"), pt.push(this), pt.length === 1 && vt && vt(qt), this.$$.deleteScheduled = !0, this;
645
635
  }
646
636
  });
647
637
  };
648
- function Ot() {
638
+ function jt() {
649
639
  }
650
- var gt = (e, t) => Object.defineProperty(t, "name", {
651
- value: e
652
- }), _e = (e, t, r) => {
653
- if (e[t].overloadTable === void 0) {
654
- var n = e[t];
655
- e[t] = function() {
640
+ var gt = (t, e) => Object.defineProperty(e, "name", {
641
+ value: t
642
+ }), _e = (t, e, r) => {
643
+ if (t[e].overloadTable === void 0) {
644
+ var n = t[e];
645
+ t[e] = function() {
656
646
  for (var a = arguments.length, i = new Array(a), u = 0; u < a; u++)
657
647
  i[u] = arguments[u];
658
- return e[t].overloadTable.hasOwnProperty(i.length) || $(`Function '${r}' called with an invalid number of arguments (${i.length}) - expects one of (${e[t].overloadTable})!`), e[t].overloadTable[i.length].apply(this, i);
659
- }, e[t].overloadTable = [], e[t].overloadTable[n.argCount] = n;
648
+ return t[e].overloadTable.hasOwnProperty(i.length) || g(`Function '${r}' called with an invalid number of arguments (${i.length}) - expects one of (${t[e].overloadTable})!`), t[e].overloadTable[i.length].apply(this, i);
649
+ }, t[e].overloadTable = [], t[e].overloadTable[n.argCount] = n;
660
650
  }
661
- }, Qt = (e, t, r) => {
662
- c.hasOwnProperty(e) ? ((r === void 0 || c[e].overloadTable !== void 0 && c[e].overloadTable[r] !== void 0) && $(`Cannot register public name '${e}' twice`), _e(c, e, e), c.hasOwnProperty(r) && $(`Cannot register multiple overloads of a function with the same number of arguments (${r})!`), c[e].overloadTable[r] = t) : (c[e] = t, r !== void 0 && (c[e].numArguments = r));
663
- }, en = 48, rn = 57, nn = (e) => {
664
- if (e === void 0)
651
+ }, Qt = (t, e, r) => {
652
+ c.hasOwnProperty(t) ? ((r === void 0 || c[t].overloadTable !== void 0 && c[t].overloadTable[r] !== void 0) && g(`Cannot register public name '${t}' twice`), _e(c, t, t), c.hasOwnProperty(r) && g(`Cannot register multiple overloads of a function with the same number of arguments (${r})!`), c[t].overloadTable[r] = e) : (c[t] = e, r !== void 0 && (c[t].numArguments = r));
653
+ }, rn = 48, nn = 57, an = (t) => {
654
+ if (t === void 0)
665
655
  return "_unknown";
666
- e = e.replace(/[^a-zA-Z0-9_]/g, "$");
667
- var t = e.charCodeAt(0);
668
- return t >= en && t <= rn ? `_${e}` : e;
656
+ t = t.replace(/[^a-zA-Z0-9_]/g, "$");
657
+ var e = t.charCodeAt(0);
658
+ return e >= rn && e <= nn ? `_${t}` : t;
669
659
  };
670
- function an(e, t, r, n, a, i, u, s) {
671
- this.name = e, this.constructor = t, this.instancePrototype = r, this.rawDestructor = n, this.baseClass = a, this.getActualType = i, this.upcast = u, this.downcast = s, this.pureVirtualFunctions = [];
660
+ function on(t, e, r, n, a, i, u, s) {
661
+ this.name = t, this.constructor = e, this.instancePrototype = r, this.rawDestructor = n, this.baseClass = a, this.getActualType = i, this.upcast = u, this.downcast = s, this.pureVirtualFunctions = [];
672
662
  }
673
- var Zt = (e, t, r) => {
674
- for (; t !== r; )
675
- t.upcast || $(`Expected null or instance of ${r.name}, got an instance of ${t.name}`), e = t.upcast(e), t = t.baseClass;
676
- return e;
663
+ var Zt = (t, e, r) => {
664
+ for (; e !== r; )
665
+ e.upcast || g(`Expected null or instance of ${r.name}, got an instance of ${e.name}`), t = e.upcast(t), e = e.baseClass;
666
+ return t;
677
667
  };
678
- function on(e, t) {
679
- if (t === null)
680
- return this.isReference && $(`null is not a valid ${this.name}`), 0;
681
- t.$$ || $(`Cannot pass "${ne(t)}" as a ${this.name}`), t.$$.ptr || $(`Cannot pass deleted object as a pointer of type ${this.name}`);
682
- var r = t.$$.ptrType.registeredClass, n = Zt(t.$$.ptr, r, this.registeredClass);
668
+ function sn(t, e) {
669
+ if (e === null)
670
+ return this.isReference && g(`null is not a valid ${this.name}`), 0;
671
+ e.$$ || g(`Cannot pass "${ne(e)}" as a ${this.name}`), e.$$.ptr || g(`Cannot pass deleted object as a pointer of type ${this.name}`);
672
+ var r = e.$$.ptrType.registeredClass, n = Zt(e.$$.ptr, r, this.registeredClass);
683
673
  return n;
684
674
  }
685
- function sn(e, t) {
675
+ function un(t, e) {
686
676
  var r;
687
- if (t === null)
688
- return this.isReference && $(`null is not a valid ${this.name}`), this.isSmartPointer ? (r = this.rawConstructor(), e !== null && e.push(this.rawDestructor, r), r) : 0;
689
- (!t || !t.$$) && $(`Cannot pass "${ne(t)}" as a ${this.name}`), t.$$.ptr || $(`Cannot pass deleted object as a pointer of type ${this.name}`), !this.isConst && t.$$.ptrType.isConst && $(`Cannot convert argument of type ${t.$$.smartPtrType ? t.$$.smartPtrType.name : t.$$.ptrType.name} to parameter type ${this.name}`);
690
- var n = t.$$.ptrType.registeredClass;
691
- if (r = Zt(t.$$.ptr, n, this.registeredClass), this.isSmartPointer)
692
- switch (t.$$.smartPtr === void 0 && $("Passing raw pointer to smart pointer is illegal"), this.sharingPolicy) {
677
+ if (e === null)
678
+ return this.isReference && g(`null is not a valid ${this.name}`), this.isSmartPointer ? (r = this.rawConstructor(), t !== null && t.push(this.rawDestructor, r), r) : 0;
679
+ (!e || !e.$$) && g(`Cannot pass "${ne(e)}" as a ${this.name}`), e.$$.ptr || g(`Cannot pass deleted object as a pointer of type ${this.name}`), !this.isConst && e.$$.ptrType.isConst && g(`Cannot convert argument of type ${e.$$.smartPtrType ? e.$$.smartPtrType.name : e.$$.ptrType.name} to parameter type ${this.name}`);
680
+ var n = e.$$.ptrType.registeredClass;
681
+ if (r = Zt(e.$$.ptr, n, this.registeredClass), this.isSmartPointer)
682
+ switch (e.$$.smartPtr === void 0 && g("Passing raw pointer to smart pointer is illegal"), this.sharingPolicy) {
693
683
  case 0:
694
- t.$$.smartPtrType === this ? r = t.$$.smartPtr : $(`Cannot convert argument of type ${t.$$.smartPtrType ? t.$$.smartPtrType.name : t.$$.ptrType.name} to parameter type ${this.name}`);
684
+ e.$$.smartPtrType === this ? r = e.$$.smartPtr : g(`Cannot convert argument of type ${e.$$.smartPtrType ? e.$$.smartPtrType.name : e.$$.ptrType.name} to parameter type ${this.name}`);
695
685
  break;
696
686
  case 1:
697
- r = t.$$.smartPtr;
687
+ r = e.$$.smartPtr;
698
688
  break;
699
689
  case 2:
700
- if (t.$$.smartPtrType === this)
701
- r = t.$$.smartPtr;
690
+ if (e.$$.smartPtrType === this)
691
+ r = e.$$.smartPtr;
702
692
  else {
703
- var a = t.clone();
704
- r = this.rawShare(r, q.toHandle(() => a.delete())), e !== null && e.push(this.rawDestructor, r);
693
+ var a = e.clone();
694
+ r = this.rawShare(r, Y.toHandle(() => a.delete())), t !== null && t.push(this.rawDestructor, r);
705
695
  }
706
696
  break;
707
697
  default:
708
- $("Unsupporting sharing policy");
698
+ g("Unsupporting sharing policy");
709
699
  }
710
700
  return r;
711
701
  }
712
- function un(e, t) {
713
- if (t === null)
714
- return this.isReference && $(`null is not a valid ${this.name}`), 0;
715
- t.$$ || $(`Cannot pass "${ne(t)}" as a ${this.name}`), t.$$.ptr || $(`Cannot pass deleted object as a pointer of type ${this.name}`), t.$$.ptrType.isConst && $(`Cannot convert argument of type ${t.$$.ptrType.name} to parameter type ${this.name}`);
716
- var r = t.$$.ptrType.registeredClass, n = Zt(t.$$.ptr, r, this.registeredClass);
702
+ function cn(t, e) {
703
+ if (e === null)
704
+ return this.isReference && g(`null is not a valid ${this.name}`), 0;
705
+ e.$$ || g(`Cannot pass "${ne(e)}" as a ${this.name}`), e.$$.ptr || g(`Cannot pass deleted object as a pointer of type ${this.name}`), e.$$.ptrType.isConst && g(`Cannot convert argument of type ${e.$$.ptrType.name} to parameter type ${this.name}`);
706
+ var r = e.$$.ptrType.registeredClass, n = Zt(e.$$.ptr, r, this.registeredClass);
717
707
  return n;
718
708
  }
719
- var cn = () => {
720
- Object.assign(St.prototype, {
721
- getPointee(e) {
722
- return this.rawGetPointee && (e = this.rawGetPointee(e)), e;
709
+ var ln = () => {
710
+ Object.assign(Ft.prototype, {
711
+ getPointee(t) {
712
+ return this.rawGetPointee && (t = this.rawGetPointee(t)), t;
723
713
  },
724
- destructor(e) {
725
- var t;
726
- (t = this.rawDestructor) === null || t === void 0 || t.call(this, e);
714
+ destructor(t) {
715
+ var e;
716
+ (e = this.rawDestructor) === null || e === void 0 || e.call(this, t);
727
717
  },
728
718
  argPackAdvance: z,
729
719
  readValueFromPointer: ht,
730
- fromWireType: Kr
720
+ fromWireType: tn
731
721
  });
732
722
  };
733
- function St(e, t, r, n, a, i, u, s, l, d, h) {
734
- this.name = e, this.registeredClass = t, this.isReference = r, this.isConst = n, this.isSmartPointer = a, this.pointeeType = i, this.sharingPolicy = u, this.rawGetPointee = s, this.rawConstructor = l, this.rawShare = d, this.rawDestructor = h, !a && t.baseClass === void 0 ? n ? (this.toWireType = on, this.destructorFunction = null) : (this.toWireType = un, this.destructorFunction = null) : this.toWireType = sn;
723
+ function Ft(t, e, r, n, a, i, u, s, l, f, h) {
724
+ this.name = t, this.registeredClass = e, this.isReference = r, this.isConst = n, this.isSmartPointer = a, this.pointeeType = i, this.sharingPolicy = u, this.rawGetPointee = s, this.rawConstructor = l, this.rawShare = f, this.rawDestructor = h, !a && e.baseClass === void 0 ? n ? (this.toWireType = sn, this.destructorFunction = null) : (this.toWireType = cn, this.destructorFunction = null) : this.toWireType = un;
735
725
  }
736
- var Ae = (e, t, r) => {
737
- c.hasOwnProperty(e) || Dt("Replacing nonexistent public symbol"), c[e].overloadTable !== void 0 && r !== void 0 ? c[e].overloadTable[r] = t : (c[e] = t, c[e].argCount = r);
738
- }, ln = (e, t, r) => {
739
- e = e.replace(/p/g, "i");
740
- var n = c["dynCall_" + e];
741
- return n(t, ...r);
742
- }, jt = [], xe, T = (e) => {
743
- var t = jt[e];
744
- return t || (e >= jt.length && (jt.length = e + 1), jt[e] = t = xe.get(e)), t;
745
- }, dn = function(e, t) {
726
+ var Ae = (t, e, r) => {
727
+ c.hasOwnProperty(t) || xt("Replacing nonexistent public symbol"), c[t].overloadTable !== void 0 && r !== void 0 ? c[t].overloadTable[r] = e : (c[t] = e, c[t].argCount = r);
728
+ }, dn = (t, e, r) => {
729
+ t = t.replace(/p/g, "i");
730
+ var n = c["dynCall_" + t];
731
+ return n(e, ...r);
732
+ }, Mt = [], Oe, P = (t) => {
733
+ var e = Mt[t];
734
+ return e || (t >= Mt.length && (Mt.length = t + 1), Mt[t] = e = Oe.get(t)), e;
735
+ }, fn = function(t, e) {
746
736
  let r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];
747
- if (e.includes("j"))
748
- return ln(e, t, r);
749
- var n = T(t)(...r);
737
+ if (t.includes("j"))
738
+ return dn(t, e, r);
739
+ var n = P(e)(...r);
750
740
  return n;
751
- }, fn = (e, t) => function() {
741
+ }, hn = (t, e) => function() {
752
742
  for (var r = arguments.length, n = new Array(r), a = 0; a < r; a++)
753
743
  n[a] = arguments[a];
754
- return dn(e, t, n);
755
- }, B = (e, t) => {
756
- e = D(e);
744
+ return fn(t, e, n);
745
+ }, U = (t, e) => {
746
+ t = j(t);
757
747
  function r() {
758
- return e.includes("j") ? fn(e, t) : T(t);
748
+ return t.includes("j") ? hn(t, e) : P(e);
759
749
  }
760
750
  var n = r();
761
- return typeof n != "function" && $(`unknown function pointer with signature ${e}: ${t}`), n;
762
- }, hn = (e, t) => {
763
- var r = gt(t, function(n) {
764
- this.name = t, this.message = n;
751
+ return typeof n != "function" && g(`unknown function pointer with signature ${t}: ${e}`), n;
752
+ }, pn = (t, e) => {
753
+ var r = gt(e, function(n) {
754
+ this.name = e, this.message = n;
765
755
  var a = new Error(n).stack;
766
756
  a !== void 0 && (this.stack = this.toString() + `
767
757
  ` + a.replace(/^Error(:[^\n]*)?\n/, ""));
768
758
  });
769
- return r.prototype = Object.create(e.prototype), r.prototype.constructor = r, r.prototype.toString = function() {
759
+ return r.prototype = Object.create(t.prototype), r.prototype.constructor = r, r.prototype.toString = function() {
770
760
  return this.message === void 0 ? this.name : `${this.name}: ${this.message}`;
771
761
  }, r;
772
- }, De, Fe = (e) => {
773
- var t = We(e), r = D(t);
774
- return Y(t), r;
775
- }, It = (e, t) => {
762
+ }, De, xe = (t) => {
763
+ var e = We(t), r = j(e);
764
+ return q(e), r;
765
+ }, It = (t, e) => {
776
766
  var r = [], n = {};
777
767
  function a(i) {
778
768
  if (!n[i] && !K[i]) {
779
- if (xt[i]) {
780
- xt[i].forEach(a);
769
+ if (Dt[i]) {
770
+ Dt[i].forEach(a);
781
771
  return;
782
772
  }
783
773
  r.push(i), n[i] = !0;
784
774
  }
785
775
  }
786
- throw t.forEach(a), new De(`${e}: ` + r.map(Fe).join([", "]));
787
- }, pn = (e, t, r, n, a, i, u, s, l, d, h, v, m) => {
788
- h = D(h), i = B(a, i), s && (s = B(u, s)), d && (d = B(l, d)), m = B(v, m);
789
- var w = nn(h);
776
+ throw e.forEach(a), new De(`${t}: ` + r.map(xe).join([", "]));
777
+ }, vn = (t, e, r, n, a, i, u, s, l, f, h, v, m) => {
778
+ h = j(h), i = U(a, i), s && (s = U(u, s)), f && (f = U(l, f)), m = U(v, m);
779
+ var w = an(h);
790
780
  Qt(w, function() {
791
781
  It(`Cannot construct ${h} due to unbound types`, [n]);
792
- }), tt([e, t, r], n ? [n] : [], (x) => {
793
- x = x[0];
794
- var O, E;
795
- n ? (O = x.registeredClass, E = O.instancePrototype) : E = Ot.prototype;
796
- var S = gt(h, function() {
782
+ }), tt([t, e, r], n ? [n] : [], (C) => {
783
+ C = C[0];
784
+ var S, O;
785
+ n ? (S = C.registeredClass, O = S.instancePrototype) : O = jt.prototype;
786
+ var D = gt(h, function() {
797
787
  if (Object.getPrototypeOf(this) !== et)
798
- throw new ot("Use 'new' to construct " + h);
799
- if (I.constructor_body === void 0)
800
- throw new ot(h + " has no accessible constructor");
801
- for (var Ye = arguments.length, Wt = new Array(Ye), kt = 0; kt < Ye; kt++)
802
- Wt[kt] = arguments[kt];
803
- var Qe = I.constructor_body[Wt.length];
788
+ throw new it("Use 'new' to construct " + h);
789
+ if (M.constructor_body === void 0)
790
+ throw new it(h + " has no accessible constructor");
791
+ for (var qe = arguments.length, kt = new Array(qe), Bt = 0; Bt < qe; Bt++)
792
+ kt[Bt] = arguments[Bt];
793
+ var Qe = M.constructor_body[kt.length];
804
794
  if (Qe === void 0)
805
- throw new ot(`Tried to invoke ctor of ${h} with invalid number of parameters (${Wt.length}) - expected (${Object.keys(I.constructor_body).toString()}) parameters instead!`);
806
- return Qe.apply(this, Wt);
807
- }), et = Object.create(E, {
795
+ throw new it(`Tried to invoke ctor of ${h} with invalid number of parameters (${kt.length}) - expected (${Object.keys(M.constructor_body).toString()}) parameters instead!`);
796
+ return Qe.apply(this, kt);
797
+ }), et = Object.create(O, {
808
798
  constructor: {
809
- value: S
799
+ value: D
810
800
  }
811
801
  });
812
- S.prototype = et;
813
- var I = new an(h, S, et, m, O, i, s, d);
814
- if (I.baseClass) {
815
- var Q, Mt;
816
- (Mt = (Q = I.baseClass).__derivedClasses) !== null && Mt !== void 0 || (Q.__derivedClasses = []), I.baseClass.__derivedClasses.push(I);
802
+ D.prototype = et;
803
+ var M = new on(h, D, et, m, S, i, s, f);
804
+ if (M.baseClass) {
805
+ var Q, Wt;
806
+ (Wt = (Q = M.baseClass).__derivedClasses) !== null && Wt !== void 0 || (Q.__derivedClasses = []), M.baseClass.__derivedClasses.push(M);
817
807
  }
818
- var Ha = new St(h, I, !0, !1, !1), Xe = new St(h + "*", I, !1, !1, !1), qe = new St(h + " const*", I, !1, !0, !1);
819
- return Ee[e] = {
808
+ var Ha = new Ft(h, M, !0, !1, !1), Xe = new Ft(h + "*", M, !1, !1, !1), Ye = new Ft(h + " const*", M, !1, !0, !1);
809
+ return Ee[t] = {
820
810
  pointerType: Xe,
821
- constPointerType: qe
822
- }, Ae(w, S), [Ha, Xe, qe];
811
+ constPointerType: Ye
812
+ }, Ae(w, D), [Ha, Xe, Ye];
823
813
  });
824
- }, Jt = (e, t) => {
825
- for (var r = [], n = 0; n < e; n++)
826
- r.push(b[t + n * 4 >> 2]);
814
+ }, Jt = (t, e) => {
815
+ for (var r = [], n = 0; n < t; n++)
816
+ r.push(b[e + n * 4 >> 2]);
827
817
  return r;
828
818
  };
829
- function vn(e) {
830
- for (var t = 1; t < e.length; ++t)
831
- if (e[t] !== null && e[t].destructorFunction === void 0)
819
+ function yn(t) {
820
+ for (var e = 1; e < t.length; ++e)
821
+ if (t[e] !== null && t[e].destructorFunction === void 0)
832
822
  return !0;
833
823
  return !1;
834
824
  }
835
- function Kt(e, t, r, n, a, i) {
836
- var u = t.length;
837
- u < 2 && $("argTypes array size mismatch! Must at least get return value and 'this' types!");
838
- var s = t[1] !== null && r !== null, l = vn(t), d = t[0].name !== "void", h = u - 2, v = new Array(h), m = [], w = [], x = function() {
839
- arguments.length !== h && $(`function ${e} called with ${arguments.length} arguments, expected ${h}`), w.length = 0;
840
- var O;
841
- m.length = s ? 2 : 1, m[0] = a, s && (O = t[1].toWireType(w, this), m[1] = O);
842
- for (var E = 0; E < h; ++E)
843
- v[E] = t[E + 2].toWireType(w, E < 0 || arguments.length <= E ? void 0 : arguments[E]), m.push(v[E]);
844
- var S = n(...m);
845
- function et(I) {
825
+ function Kt(t, e, r, n, a, i) {
826
+ var u = e.length;
827
+ u < 2 && g("argTypes array size mismatch! Must at least get return value and 'this' types!");
828
+ var s = e[1] !== null && r !== null, l = yn(e), f = e[0].name !== "void", h = u - 2, v = new Array(h), m = [], w = [], C = function() {
829
+ w.length = 0;
830
+ var S;
831
+ m.length = s ? 2 : 1, m[0] = a, s && (S = e[1].toWireType(w, this), m[1] = S);
832
+ for (var O = 0; O < h; ++O)
833
+ v[O] = e[O + 2].toWireType(w, O < 0 || arguments.length <= O ? void 0 : arguments[O]), m.push(v[O]);
834
+ var D = n(...m);
835
+ function et(M) {
846
836
  if (l)
847
837
  Gt(w);
848
838
  else
849
- for (var Q = s ? 1 : 2; Q < t.length; Q++) {
850
- var Mt = Q === 1 ? O : v[Q - 2];
851
- t[Q].destructorFunction !== null && t[Q].destructorFunction(Mt);
839
+ for (var Q = s ? 1 : 2; Q < e.length; Q++) {
840
+ var Wt = Q === 1 ? S : v[Q - 2];
841
+ e[Q].destructorFunction !== null && e[Q].destructorFunction(Wt);
852
842
  }
853
- if (d)
854
- return t[0].fromWireType(I);
843
+ if (f)
844
+ return e[0].fromWireType(M);
855
845
  }
856
- return et(S);
846
+ return et(D);
857
847
  };
858
- return gt(e, x);
848
+ return gt(t, C);
859
849
  }
860
- var mn = (e, t, r, n, a, i) => {
861
- var u = Jt(t, r);
862
- a = B(n, a), tt([], [e], (s) => {
850
+ var mn = (t, e, r, n, a, i) => {
851
+ var u = Jt(e, r);
852
+ a = U(n, a), tt([], [t], (s) => {
863
853
  s = s[0];
864
854
  var l = `constructor ${s.name}`;
865
- if (s.registeredClass.constructor_body === void 0 && (s.registeredClass.constructor_body = []), s.registeredClass.constructor_body[t - 1] !== void 0)
866
- throw new ot(`Cannot register multiple constructors with identical number of parameters (${t - 1}) for class '${s.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);
867
- return s.registeredClass.constructor_body[t - 1] = () => {
855
+ if (s.registeredClass.constructor_body === void 0 && (s.registeredClass.constructor_body = []), s.registeredClass.constructor_body[e - 1] !== void 0)
856
+ throw new it(`Cannot register multiple constructors with identical number of parameters (${e - 1}) for class '${s.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);
857
+ return s.registeredClass.constructor_body[e - 1] = () => {
868
858
  It(`Cannot construct ${s.name} due to unbound types`, u);
869
- }, tt([], u, (d) => (d.splice(1, 0, null), s.registeredClass.constructor_body[t - 1] = Kt(l, d, null, a, i), [])), [];
859
+ }, tt([], u, (f) => (f.splice(1, 0, null), s.registeredClass.constructor_body[e - 1] = Kt(l, f, null, a, i), [])), [];
870
860
  });
871
- }, Oe = (e) => {
872
- e = e.trim();
873
- const t = e.indexOf("(");
874
- return t !== -1 ? e.substr(0, t) : e;
875
- }, yn = (e, t, r, n, a, i, u, s, l) => {
876
- var d = Jt(r, n);
877
- t = D(t), t = Oe(t), i = B(a, i), tt([], [e], (h) => {
878
- h = h[0];
879
- var v = `${h.name}.${t}`;
880
- t.startsWith("@@") && (t = Symbol[t.substring(2)]), s && h.registeredClass.pureVirtualFunctions.push(t);
881
- function m() {
882
- It(`Cannot call ${v} due to unbound types`, d);
861
+ }, Se = (t) => {
862
+ t = t.trim();
863
+ const e = t.indexOf("(");
864
+ return e !== -1 ? t.substr(0, e) : t;
865
+ }, gn = (t, e, r, n, a, i, u, s, l, f) => {
866
+ var h = Jt(r, n);
867
+ e = j(e), e = Se(e), i = U(a, i), tt([], [t], (v) => {
868
+ v = v[0];
869
+ var m = `${v.name}.${e}`;
870
+ e.startsWith("@@") && (e = Symbol[e.substring(2)]), s && v.registeredClass.pureVirtualFunctions.push(e);
871
+ function w() {
872
+ It(`Cannot call ${m} due to unbound types`, h);
883
873
  }
884
- var w = h.registeredClass.instancePrototype, x = w[t];
885
- return x === void 0 || x.overloadTable === void 0 && x.className !== h.name && x.argCount === r - 2 ? (m.argCount = r - 2, m.className = h.name, w[t] = m) : (_e(w, t, v), w[t].overloadTable[r - 2] = m), tt([], d, (O) => {
886
- var E = Kt(v, O, h, i, u);
887
- return w[t].overloadTable === void 0 ? (E.argCount = r - 2, w[t] = E) : w[t].overloadTable[r - 2] = E, [];
874
+ var C = v.registeredClass.instancePrototype, S = C[e];
875
+ return S === void 0 || S.overloadTable === void 0 && S.className !== v.name && S.argCount === r - 2 ? (w.argCount = r - 2, w.className = v.name, C[e] = w) : (_e(C, e, m), C[e].overloadTable[r - 2] = w), tt([], h, (O) => {
876
+ var D = Kt(m, O, v, i, u);
877
+ return C[e].overloadTable === void 0 ? (D.argCount = r - 2, C[e] = D) : C[e].overloadTable[r - 2] = D, [];
888
878
  }), [];
889
879
  });
890
- }, te = [], X = [], ee = (e) => {
891
- e > 9 && --X[e + 1] === 0 && (X[e] = void 0, te.push(e));
892
- }, gn = () => X.length / 2 - 5 - te.length, wn = () => {
893
- X.push(0, 1, void 0, 1, null, 1, !0, 1, !1, 1), c.count_emval_handles = gn;
894
- }, q = {
895
- toValue: (e) => (e || $("Cannot use deleted val. handle = " + e), X[e]),
896
- toHandle: (e) => {
897
- switch (e) {
880
+ }, te = [], X = [], ee = (t) => {
881
+ t > 9 && --X[t + 1] === 0 && (X[t] = void 0, te.push(t));
882
+ }, wn = () => X.length / 2 - 5 - te.length, $n = () => {
883
+ X.push(0, 1, void 0, 1, null, 1, !0, 1, !1, 1), c.count_emval_handles = wn;
884
+ }, Y = {
885
+ toValue: (t) => (t || g("Cannot use deleted val. handle = " + t), X[t]),
886
+ toHandle: (t) => {
887
+ switch (t) {
898
888
  case void 0:
899
889
  return 2;
900
890
  case null:
@@ -904,32 +894,32 @@ var Ht = (() => {
904
894
  case !1:
905
895
  return 8;
906
896
  default: {
907
- const t = te.pop() || X.length;
908
- return X[t] = e, X[t + 1] = 1, t;
897
+ const e = te.pop() || X.length;
898
+ return X[e] = t, X[e + 1] = 1, e;
909
899
  }
910
900
  }
911
901
  }
912
- }, $n = {
902
+ }, je = {
913
903
  name: "emscripten::val",
914
- fromWireType: (e) => {
915
- var t = q.toValue(e);
916
- return ee(e), t;
904
+ fromWireType: (t) => {
905
+ var e = Y.toValue(t);
906
+ return ee(t), e;
917
907
  },
918
- toWireType: (e, t) => q.toHandle(t),
908
+ toWireType: (t, e) => Y.toHandle(e),
919
909
  argPackAdvance: z,
920
910
  readValueFromPointer: ht,
921
911
  destructorFunction: null
922
- }, Se = (e) => L(e, $n), bn = (e, t, r) => {
923
- switch (t) {
912
+ }, bn = (t) => B(t, je), Cn = (t, e, r) => {
913
+ switch (e) {
924
914
  case 1:
925
915
  return r ? function(n) {
926
- return this.fromWireType(U[n]);
916
+ return this.fromWireType(H[n]);
927
917
  } : function(n) {
928
918
  return this.fromWireType(F[n]);
929
919
  };
930
920
  case 2:
931
921
  return r ? function(n) {
932
- return this.fromWireType(nt[n >> 1]);
922
+ return this.fromWireType(at[n >> 1]);
933
923
  } : function(n) {
934
924
  return this.fromWireType(dt[n >> 1]);
935
925
  };
@@ -940,46 +930,46 @@ var Ht = (() => {
940
930
  return this.fromWireType(b[n >> 2]);
941
931
  };
942
932
  default:
943
- throw new TypeError(`invalid integer width (${t}): ${e}`);
933
+ throw new TypeError(`invalid integer width (${e}): ${t}`);
944
934
  }
945
- }, Cn = (e, t, r, n) => {
946
- t = D(t);
935
+ }, Tn = (t, e, r, n) => {
936
+ e = j(e);
947
937
  function a() {
948
938
  }
949
- a.values = {}, L(e, {
950
- name: t,
939
+ a.values = {}, B(t, {
940
+ name: e,
951
941
  constructor: a,
952
942
  fromWireType: function(i) {
953
943
  return this.constructor.values[i];
954
944
  },
955
945
  toWireType: (i, u) => u.value,
956
946
  argPackAdvance: z,
957
- readValueFromPointer: bn(t, r, n),
947
+ readValueFromPointer: Cn(e, r, n),
958
948
  destructorFunction: null
959
- }), Qt(t, a);
960
- }, re = (e, t) => {
961
- var r = K[e];
962
- return r === void 0 && $(`${t} has unknown type ${Fe(e)}`), r;
963
- }, Tn = (e, t, r) => {
964
- var n = re(e, "enum");
965
- t = D(t);
949
+ }), Qt(e, a);
950
+ }, re = (t, e) => {
951
+ var r = K[t];
952
+ return r === void 0 && g(`${e} has unknown type ${xe(t)}`), r;
953
+ }, Pn = (t, e, r) => {
954
+ var n = re(t, "enum");
955
+ e = j(e);
966
956
  var a = n.constructor, i = Object.create(n.constructor.prototype, {
967
957
  value: {
968
958
  value: r
969
959
  },
970
960
  constructor: {
971
- value: gt(`${n.name}_${t}`, function() {
961
+ value: gt(`${n.name}_${e}`, function() {
972
962
  })
973
963
  }
974
964
  });
975
- a.values[r] = i, a[t] = i;
976
- }, ne = (e) => {
977
- if (e === null)
965
+ a.values[r] = i, a[e] = i;
966
+ }, ne = (t) => {
967
+ if (t === null)
978
968
  return "null";
979
- var t = typeof e;
980
- return t === "object" || t === "array" || t === "function" ? e.toString() : "" + e;
981
- }, Pn = (e, t) => {
982
- switch (t) {
969
+ var e = typeof t;
970
+ return e === "object" || e === "array" || e === "function" ? t.toString() : "" + t;
971
+ }, En = (t, e) => {
972
+ switch (e) {
983
973
  case 4:
984
974
  return function(r) {
985
975
  return this.fromWireType(de[r >> 2]);
@@ -989,64 +979,64 @@ var Ht = (() => {
989
979
  return this.fromWireType(fe[r >> 3]);
990
980
  };
991
981
  default:
992
- throw new TypeError(`invalid float width (${t}): ${e}`);
982
+ throw new TypeError(`invalid float width (${e}): ${t}`);
993
983
  }
994
- }, En = (e, t, r) => {
995
- t = D(t), L(e, {
996
- name: t,
984
+ }, _n = (t, e, r) => {
985
+ e = j(e), B(t, {
986
+ name: e,
997
987
  fromWireType: (n) => n,
998
988
  toWireType: (n, a) => a,
999
989
  argPackAdvance: z,
1000
- readValueFromPointer: Pn(t, r),
990
+ readValueFromPointer: En(e, r),
1001
991
  destructorFunction: null
1002
992
  });
1003
- }, _n = (e, t, r, n, a, i, u) => {
1004
- var s = Jt(t, r);
1005
- e = D(e), e = Oe(e), a = B(n, a), Qt(e, function() {
1006
- It(`Cannot call ${e} due to unbound types`, s);
1007
- }, t - 1), tt([], s, (l) => {
1008
- var d = [l[0], null].concat(l.slice(1));
1009
- return Ae(e, Kt(e, d, null, a, i), t - 1), [];
993
+ }, An = (t, e, r, n, a, i, u, s) => {
994
+ var l = Jt(e, r);
995
+ t = j(t), t = Se(t), a = U(n, a), Qt(t, function() {
996
+ It(`Cannot call ${t} due to unbound types`, l);
997
+ }, e - 1), tt([], l, (f) => {
998
+ var h = [f[0], null].concat(f.slice(1));
999
+ return Ae(t, Kt(t, h, null, a, i), e - 1), [];
1010
1000
  });
1011
- }, An = (e, t, r) => {
1012
- switch (t) {
1001
+ }, On = (t, e, r) => {
1002
+ switch (e) {
1013
1003
  case 1:
1014
- return r ? (n) => U[n] : (n) => F[n];
1004
+ return r ? (n) => H[n] : (n) => F[n];
1015
1005
  case 2:
1016
- return r ? (n) => nt[n >> 1] : (n) => dt[n >> 1];
1006
+ return r ? (n) => at[n >> 1] : (n) => dt[n >> 1];
1017
1007
  case 4:
1018
1008
  return r ? (n) => Z[n >> 2] : (n) => b[n >> 2];
1019
1009
  default:
1020
- throw new TypeError(`invalid integer width (${t}): ${e}`);
1010
+ throw new TypeError(`invalid integer width (${e}): ${t}`);
1021
1011
  }
1022
- }, xn = (e, t, r, n, a) => {
1023
- t = D(t);
1012
+ }, Dn = (t, e, r, n, a) => {
1013
+ e = j(e);
1024
1014
  var i = (h) => h;
1025
1015
  if (n === 0) {
1026
1016
  var u = 32 - 8 * r;
1027
1017
  i = (h) => h << u >>> u;
1028
1018
  }
1029
- var s = t.includes("unsigned"), l = (h, v) => {
1030
- }, d;
1031
- s ? d = function(h, v) {
1019
+ var s = e.includes("unsigned"), l = (h, v) => {
1020
+ }, f;
1021
+ s ? f = function(h, v) {
1032
1022
  return l(v, this.name), v >>> 0;
1033
- } : d = function(h, v) {
1023
+ } : f = function(h, v) {
1034
1024
  return l(v, this.name), v;
1035
- }, L(e, {
1036
- name: t,
1025
+ }, B(t, {
1026
+ name: e,
1037
1027
  fromWireType: i,
1038
- toWireType: d,
1028
+ toWireType: f,
1039
1029
  argPackAdvance: z,
1040
- readValueFromPointer: An(t, r, n !== 0),
1030
+ readValueFromPointer: On(e, r, n !== 0),
1041
1031
  destructorFunction: null
1042
1032
  });
1043
- }, Dn = (e, t, r) => {
1044
- var n = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array], a = n[t];
1033
+ }, xn = (t, e, r) => {
1034
+ var n = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array], a = n[e];
1045
1035
  function i(u) {
1046
1036
  var s = b[u >> 2], l = b[u + 4 >> 2];
1047
- return new a(U.buffer, l, s);
1037
+ return new a(H.buffer, l, s);
1048
1038
  }
1049
- r = D(r), L(e, {
1039
+ r = j(r), B(t, {
1050
1040
  name: r,
1051
1041
  fromWireType: i,
1052
1042
  argPackAdvance: z,
@@ -1054,74 +1044,76 @@ var Ht = (() => {
1054
1044
  }, {
1055
1045
  ignoreDuplicateRegistrations: !0
1056
1046
  });
1057
- }, Fn = (e, t) => {
1058
- Se(e);
1059
- }, On = (e, t, r, n) => {
1047
+ }, Sn = Object.assign({
1048
+ optional: !0
1049
+ }, je), jn = (t, e) => {
1050
+ B(t, Sn);
1051
+ }, Fn = (t, e, r, n) => {
1060
1052
  if (!(n > 0)) return 0;
1061
- for (var a = r, i = r + n - 1, u = 0; u < e.length; ++u) {
1062
- var s = e.charCodeAt(u);
1053
+ for (var a = r, i = r + n - 1, u = 0; u < t.length; ++u) {
1054
+ var s = t.charCodeAt(u);
1063
1055
  if (s >= 55296 && s <= 57343) {
1064
- var l = e.charCodeAt(++u);
1056
+ var l = t.charCodeAt(++u);
1065
1057
  s = 65536 + ((s & 1023) << 10) | l & 1023;
1066
1058
  }
1067
1059
  if (s <= 127) {
1068
1060
  if (r >= i) break;
1069
- t[r++] = s;
1061
+ e[r++] = s;
1070
1062
  } else if (s <= 2047) {
1071
1063
  if (r + 1 >= i) break;
1072
- t[r++] = 192 | s >> 6, t[r++] = 128 | s & 63;
1064
+ e[r++] = 192 | s >> 6, e[r++] = 128 | s & 63;
1073
1065
  } else if (s <= 65535) {
1074
1066
  if (r + 2 >= i) break;
1075
- t[r++] = 224 | s >> 12, t[r++] = 128 | s >> 6 & 63, t[r++] = 128 | s & 63;
1067
+ e[r++] = 224 | s >> 12, e[r++] = 128 | s >> 6 & 63, e[r++] = 128 | s & 63;
1076
1068
  } else {
1077
1069
  if (r + 3 >= i) break;
1078
- t[r++] = 240 | s >> 18, t[r++] = 128 | s >> 12 & 63, t[r++] = 128 | s >> 6 & 63, t[r++] = 128 | s & 63;
1070
+ e[r++] = 240 | s >> 18, e[r++] = 128 | s >> 12 & 63, e[r++] = 128 | s >> 6 & 63, e[r++] = 128 | s & 63;
1079
1071
  }
1080
1072
  }
1081
- return t[r] = 0, r - a;
1082
- }, wt = (e, t, r) => On(e, F, t, r), Sn = (e) => {
1083
- for (var t = 0, r = 0; r < e.length; ++r) {
1084
- var n = e.charCodeAt(r);
1085
- n <= 127 ? t++ : n <= 2047 ? t += 2 : n >= 55296 && n <= 57343 ? (t += 4, ++r) : t += 3;
1073
+ return e[r] = 0, r - a;
1074
+ }, wt = (t, e, r) => Fn(t, F, e, r), Mn = (t) => {
1075
+ for (var e = 0, r = 0; r < t.length; ++r) {
1076
+ var n = t.charCodeAt(r);
1077
+ n <= 127 ? e++ : n <= 2047 ? e += 2 : n >= 55296 && n <= 57343 ? (e += 4, ++r) : e += 3;
1086
1078
  }
1087
- return t;
1088
- }, je = typeof TextDecoder < "u" ? new TextDecoder() : void 0, Ie = (e, t, r) => {
1089
- for (var n = t + r, a = t; e[a] && !(a >= n); ) ++a;
1090
- if (a - t > 16 && e.buffer && je)
1091
- return je.decode(e.subarray(t, a));
1092
- for (var i = ""; t < a; ) {
1093
- var u = e[t++];
1079
+ return e;
1080
+ }, Fe = typeof TextDecoder < "u" ? new TextDecoder() : void 0, Me = (t, e, r) => {
1081
+ for (var n = e + r, a = e; t[a] && !(a >= n); ) ++a;
1082
+ if (a - e > 16 && t.buffer && Fe)
1083
+ return Fe.decode(t.subarray(e, a));
1084
+ for (var i = ""; e < a; ) {
1085
+ var u = t[e++];
1094
1086
  if (!(u & 128)) {
1095
1087
  i += String.fromCharCode(u);
1096
1088
  continue;
1097
1089
  }
1098
- var s = e[t++] & 63;
1090
+ var s = t[e++] & 63;
1099
1091
  if ((u & 224) == 192) {
1100
1092
  i += String.fromCharCode((u & 31) << 6 | s);
1101
1093
  continue;
1102
1094
  }
1103
- var l = e[t++] & 63;
1104
- if ((u & 240) == 224 ? u = (u & 15) << 12 | s << 6 | l : u = (u & 7) << 18 | s << 12 | l << 6 | e[t++] & 63, u < 65536)
1095
+ var l = t[e++] & 63;
1096
+ if ((u & 240) == 224 ? u = (u & 15) << 12 | s << 6 | l : u = (u & 7) << 18 | s << 12 | l << 6 | t[e++] & 63, u < 65536)
1105
1097
  i += String.fromCharCode(u);
1106
1098
  else {
1107
- var d = u - 65536;
1108
- i += String.fromCharCode(55296 | d >> 10, 56320 | d & 1023);
1099
+ var f = u - 65536;
1100
+ i += String.fromCharCode(55296 | f >> 10, 56320 | f & 1023);
1109
1101
  }
1110
1102
  }
1111
1103
  return i;
1112
- }, jn = (e, t) => e ? Ie(F, e, t) : "", In = (e, t) => {
1113
- t = D(t);
1114
- var r = t === "std::string";
1115
- L(e, {
1116
- name: t,
1104
+ }, In = (t, e) => t ? Me(F, t, e) : "", Rn = (t, e) => {
1105
+ e = j(e);
1106
+ var r = e === "std::string";
1107
+ B(t, {
1108
+ name: e,
1117
1109
  fromWireType(n) {
1118
1110
  var a = b[n >> 2], i = n + 4, u;
1119
1111
  if (r)
1120
1112
  for (var s = i, l = 0; l <= a; ++l) {
1121
- var d = i + l;
1122
- if (l == a || F[d] == 0) {
1123
- var h = d - s, v = jn(s, h);
1124
- u === void 0 ? u = v : (u += "\0", u += v), s = d + 1;
1113
+ var f = i + l;
1114
+ if (l == a || F[f] == 0) {
1115
+ var h = f - s, v = In(s, h);
1116
+ u === void 0 ? u = v : (u += "\0", u += v), s = f + 1;
1125
1117
  }
1126
1118
  }
1127
1119
  else {
@@ -1129,52 +1121,52 @@ var Ht = (() => {
1129
1121
  m[l] = String.fromCharCode(F[i + l]);
1130
1122
  u = m.join("");
1131
1123
  }
1132
- return Y(n), u;
1124
+ return q(n), u;
1133
1125
  },
1134
1126
  toWireType(n, a) {
1135
1127
  a instanceof ArrayBuffer && (a = new Uint8Array(a));
1136
1128
  var i, u = typeof a == "string";
1137
- u || a instanceof Uint8Array || a instanceof Uint8ClampedArray || a instanceof Int8Array || $("Cannot pass non-string to std::string"), r && u ? i = Sn(a) : i = a.length;
1129
+ u || a instanceof Uint8Array || a instanceof Uint8ClampedArray || a instanceof Int8Array || g("Cannot pass non-string to std::string"), r && u ? i = Mn(a) : i = a.length;
1138
1130
  var s = ie(4 + i + 1), l = s + 4;
1139
1131
  if (b[s >> 2] = i, r && u)
1140
1132
  wt(a, l, i + 1);
1141
1133
  else if (u)
1142
- for (var d = 0; d < i; ++d) {
1143
- var h = a.charCodeAt(d);
1144
- h > 255 && (Y(l), $("String has UTF-16 code units that do not fit in 8 bits")), F[l + d] = h;
1134
+ for (var f = 0; f < i; ++f) {
1135
+ var h = a.charCodeAt(f);
1136
+ h > 255 && (q(l), g("String has UTF-16 code units that do not fit in 8 bits")), F[l + f] = h;
1145
1137
  }
1146
1138
  else
1147
- for (var d = 0; d < i; ++d)
1148
- F[l + d] = a[d];
1149
- return n !== null && n.push(Y, s), s;
1139
+ for (var f = 0; f < i; ++f)
1140
+ F[l + f] = a[f];
1141
+ return n !== null && n.push(q, s), s;
1150
1142
  },
1151
1143
  argPackAdvance: z,
1152
1144
  readValueFromPointer: ht,
1153
1145
  destructorFunction(n) {
1154
- Y(n);
1146
+ q(n);
1155
1147
  }
1156
1148
  });
1157
- }, Re = typeof TextDecoder < "u" ? new TextDecoder("utf-16le") : void 0, Rn = (e, t) => {
1158
- for (var r = e, n = r >> 1, a = n + t / 2; !(n >= a) && dt[n]; ) ++n;
1159
- if (r = n << 1, r - e > 32 && Re) return Re.decode(F.subarray(e, r));
1160
- for (var i = "", u = 0; !(u >= t / 2); ++u) {
1161
- var s = nt[e + u * 2 >> 1];
1149
+ }, Ie = typeof TextDecoder < "u" ? new TextDecoder("utf-16le") : void 0, Wn = (t, e) => {
1150
+ for (var r = t, n = r >> 1, a = n + e / 2; !(n >= a) && dt[n]; ) ++n;
1151
+ if (r = n << 1, r - t > 32 && Ie) return Ie.decode(F.subarray(t, r));
1152
+ for (var i = "", u = 0; !(u >= e / 2); ++u) {
1153
+ var s = at[t + u * 2 >> 1];
1162
1154
  if (s == 0) break;
1163
1155
  i += String.fromCharCode(s);
1164
1156
  }
1165
1157
  return i;
1166
- }, Mn = (e, t, r) => {
1158
+ }, kn = (t, e, r) => {
1167
1159
  var n;
1168
1160
  if ((n = r) !== null && n !== void 0 || (r = 2147483647), r < 2) return 0;
1169
1161
  r -= 2;
1170
- for (var a = t, i = r < e.length * 2 ? r / 2 : e.length, u = 0; u < i; ++u) {
1171
- var s = e.charCodeAt(u);
1172
- nt[t >> 1] = s, t += 2;
1173
- }
1174
- return nt[t >> 1] = 0, t - a;
1175
- }, Wn = (e) => e.length * 2, kn = (e, t) => {
1176
- for (var r = 0, n = ""; !(r >= t / 4); ) {
1177
- var a = Z[e + r * 4 >> 2];
1162
+ for (var a = e, i = r < t.length * 2 ? r / 2 : t.length, u = 0; u < i; ++u) {
1163
+ var s = t.charCodeAt(u);
1164
+ at[e >> 1] = s, e += 2;
1165
+ }
1166
+ return at[e >> 1] = 0, e - a;
1167
+ }, Bn = (t) => t.length * 2, Un = (t, e) => {
1168
+ for (var r = 0, n = ""; !(r >= e / 4); ) {
1169
+ var a = Z[t + r * 4 >> 2];
1178
1170
  if (a == 0) break;
1179
1171
  if (++r, a >= 65536) {
1180
1172
  var i = a - 65536;
@@ -1183,484 +1175,482 @@ var Ht = (() => {
1183
1175
  n += String.fromCharCode(a);
1184
1176
  }
1185
1177
  return n;
1186
- }, Bn = (e, t, r) => {
1178
+ }, Vn = (t, e, r) => {
1187
1179
  var n;
1188
1180
  if ((n = r) !== null && n !== void 0 || (r = 2147483647), r < 4) return 0;
1189
- for (var a = t, i = a + r - 4, u = 0; u < e.length; ++u) {
1190
- var s = e.charCodeAt(u);
1181
+ for (var a = e, i = a + r - 4, u = 0; u < t.length; ++u) {
1182
+ var s = t.charCodeAt(u);
1191
1183
  if (s >= 55296 && s <= 57343) {
1192
- var l = e.charCodeAt(++u);
1184
+ var l = t.charCodeAt(++u);
1193
1185
  s = 65536 + ((s & 1023) << 10) | l & 1023;
1194
1186
  }
1195
- if (Z[t >> 2] = s, t += 4, t + 4 > i) break;
1187
+ if (Z[e >> 2] = s, e += 4, e + 4 > i) break;
1196
1188
  }
1197
- return Z[t >> 2] = 0, t - a;
1198
- }, Hn = (e) => {
1199
- for (var t = 0, r = 0; r < e.length; ++r) {
1200
- var n = e.charCodeAt(r);
1201
- n >= 55296 && n <= 57343 && ++r, t += 4;
1189
+ return Z[e >> 2] = 0, e - a;
1190
+ }, Ln = (t) => {
1191
+ for (var e = 0, r = 0; r < t.length; ++r) {
1192
+ var n = t.charCodeAt(r);
1193
+ n >= 55296 && n <= 57343 && ++r, e += 4;
1202
1194
  }
1203
- return t;
1204
- }, Vn = (e, t, r) => {
1205
- r = D(r);
1195
+ return e;
1196
+ }, Hn = (t, e, r) => {
1197
+ r = j(r);
1206
1198
  var n, a, i, u;
1207
- t === 2 ? (n = Rn, a = Mn, u = Wn, i = (s) => dt[s >> 1]) : t === 4 && (n = kn, a = Bn, u = Hn, i = (s) => b[s >> 2]), L(e, {
1199
+ e === 2 ? (n = Wn, a = kn, u = Bn, i = (s) => dt[s >> 1]) : e === 4 && (n = Un, a = Vn, u = Ln, i = (s) => b[s >> 2]), B(t, {
1208
1200
  name: r,
1209
1201
  fromWireType: (s) => {
1210
- for (var l = b[s >> 2], d, h = s + 4, v = 0; v <= l; ++v) {
1211
- var m = s + 4 + v * t;
1202
+ for (var l = b[s >> 2], f, h = s + 4, v = 0; v <= l; ++v) {
1203
+ var m = s + 4 + v * e;
1212
1204
  if (v == l || i(m) == 0) {
1213
- var w = m - h, x = n(h, w);
1214
- d === void 0 ? d = x : (d += "\0", d += x), h = m + t;
1205
+ var w = m - h, C = n(h, w);
1206
+ f === void 0 ? f = C : (f += "\0", f += C), h = m + e;
1215
1207
  }
1216
1208
  }
1217
- return Y(s), d;
1209
+ return q(s), f;
1218
1210
  },
1219
1211
  toWireType: (s, l) => {
1220
- typeof l != "string" && $(`Cannot pass non-string to C++ string type ${r}`);
1221
- var d = u(l), h = ie(4 + d + t);
1222
- return b[h >> 2] = d / t, a(l, h + 4, d + t), s !== null && s.push(Y, h), h;
1212
+ typeof l != "string" && g(`Cannot pass non-string to C++ string type ${r}`);
1213
+ var f = u(l), h = ie(4 + f + e);
1214
+ return b[h >> 2] = f / e, a(l, h + 4, f + e), s !== null && s.push(q, h), h;
1223
1215
  },
1224
1216
  argPackAdvance: z,
1225
1217
  readValueFromPointer: ht,
1226
1218
  destructorFunction(s) {
1227
- Y(s);
1219
+ q(s);
1228
1220
  }
1229
1221
  });
1230
- }, Un = (e, t, r, n, a, i) => {
1231
- At[e] = {
1232
- name: D(t),
1233
- rawConstructor: B(r, n),
1234
- rawDestructor: B(a, i),
1222
+ }, zn = (t, e, r, n, a, i) => {
1223
+ Ot[t] = {
1224
+ name: j(e),
1225
+ rawConstructor: U(r, n),
1226
+ rawDestructor: U(a, i),
1235
1227
  fields: []
1236
1228
  };
1237
- }, Ln = (e, t, r, n, a, i, u, s, l, d) => {
1238
- At[e].fields.push({
1239
- fieldName: D(t),
1229
+ }, Nn = (t, e, r, n, a, i, u, s, l, f) => {
1230
+ Ot[t].fields.push({
1231
+ fieldName: j(e),
1240
1232
  getterReturnType: r,
1241
- getter: B(n, a),
1233
+ getter: U(n, a),
1242
1234
  getterContext: i,
1243
1235
  setterArgumentType: u,
1244
- setter: B(s, l),
1245
- setterContext: d
1236
+ setter: U(s, l),
1237
+ setterContext: f
1246
1238
  });
1247
- }, zn = (e, t) => {
1248
- t = D(t), L(e, {
1239
+ }, Gn = (t, e) => {
1240
+ e = j(e), B(t, {
1249
1241
  isVoid: !0,
1250
- name: t,
1242
+ name: e,
1251
1243
  argPackAdvance: 0,
1252
1244
  fromWireType: () => {
1253
1245
  },
1254
1246
  toWireType: (r, n) => {
1255
1247
  }
1256
1248
  });
1257
- }, Nn = (e, t, r) => F.copyWithin(e, t, t + r), ae = [], Gn = (e, t, r, n) => (e = ae[e], t = q.toValue(t), e(null, t, r, n)), Xn = {}, qn = (e) => {
1258
- var t = Xn[e];
1259
- return t === void 0 ? D(e) : t;
1260
- }, Me = () => {
1249
+ }, Xn = (t, e, r) => F.copyWithin(t, e, e + r), ae = [], Yn = (t, e, r, n) => (t = ae[t], e = Y.toValue(e), t(null, e, r, n)), qn = {}, Qn = (t) => {
1250
+ var e = qn[t];
1251
+ return e === void 0 ? j(t) : e;
1252
+ }, Re = () => {
1261
1253
  if (typeof globalThis == "object")
1262
1254
  return globalThis;
1263
- function e(t) {
1264
- t.$$$embind_global$$$ = t;
1265
- var r = typeof $$$embind_global$$$ == "object" && t.$$$embind_global$$$ == t;
1266
- return r || delete t.$$$embind_global$$$, r;
1255
+ function t(e) {
1256
+ e.$$$embind_global$$$ = e;
1257
+ var r = typeof $$$embind_global$$$ == "object" && e.$$$embind_global$$$ == e;
1258
+ return r || delete e.$$$embind_global$$$, r;
1267
1259
  }
1268
- if (typeof $$$embind_global$$$ == "object" || (typeof global == "object" && e(global) ? $$$embind_global$$$ = global : typeof self == "object" && e(self) && ($$$embind_global$$$ = self), typeof $$$embind_global$$$ == "object"))
1260
+ if (typeof $$$embind_global$$$ == "object" || (typeof global == "object" && t(global) ? $$$embind_global$$$ = global : typeof self == "object" && t(self) && ($$$embind_global$$$ = self), typeof $$$embind_global$$$ == "object"))
1269
1261
  return $$$embind_global$$$;
1270
1262
  throw Error("unable to get global object.");
1271
- }, Yn = (e) => e === 0 ? q.toHandle(Me()) : (e = qn(e), q.toHandle(Me()[e])), Qn = (e) => {
1272
- var t = ae.length;
1273
- return ae.push(e), t;
1274
- }, Zn = (e, t) => {
1275
- for (var r = new Array(e), n = 0; n < e; ++n)
1276
- r[n] = re(b[t + n * 4 >> 2], "parameter " + n);
1263
+ }, Zn = (t) => t === 0 ? Y.toHandle(Re()) : (t = Qn(t), Y.toHandle(Re()[t])), Jn = (t) => {
1264
+ var e = ae.length;
1265
+ return ae.push(t), e;
1266
+ }, Kn = (t, e) => {
1267
+ for (var r = new Array(t), n = 0; n < t; ++n)
1268
+ r[n] = re(b[e + n * 4 >> 2], "parameter " + n);
1277
1269
  return r;
1278
- }, Jn = Reflect.construct, Kn = (e, t, r) => {
1279
- var n = [], a = e.toWireType(n, r);
1280
- return n.length && (b[t >> 2] = q.toHandle(n)), a;
1281
- }, ta = (e, t, r) => {
1282
- var n = Zn(e, t), a = n.shift();
1283
- e--;
1284
- var i = new Array(e), u = (l, d, h, v) => {
1285
- for (var m = 0, w = 0; w < e; ++w)
1270
+ }, ta = Reflect.construct, ea = (t, e, r) => {
1271
+ var n = [], a = t.toWireType(n, r);
1272
+ return n.length && (b[e >> 2] = Y.toHandle(n)), a;
1273
+ }, ra = (t, e, r) => {
1274
+ var n = Kn(t, e), a = n.shift();
1275
+ t--;
1276
+ var i = new Array(t), u = (l, f, h, v) => {
1277
+ for (var m = 0, w = 0; w < t; ++w)
1286
1278
  i[w] = n[w].readValueFromPointer(v + m), m += n[w].argPackAdvance;
1287
- var x = r === 1 ? Jn(d, i) : d.apply(l, i);
1288
- return Kn(a, h, x);
1279
+ var C = r === 1 ? ta(f, i) : f.apply(l, i);
1280
+ return ea(a, h, C);
1289
1281
  }, s = `methodCaller<(${n.map((l) => l.name).join(", ")}) => ${a.name}>`;
1290
- return Qn(gt(s, u));
1291
- }, ea = (e) => {
1292
- e > 9 && (X[e + 1] += 1);
1293
- }, ra = (e) => {
1294
- var t = q.toValue(e);
1295
- Gt(t), ee(e);
1296
- }, na = (e, t) => {
1297
- e = re(e, "_emval_take_value");
1298
- var r = e.readValueFromPointer(t);
1299
- return q.toHandle(r);
1300
- }, aa = (e, t, r, n) => {
1301
- var a = (/* @__PURE__ */ new Date()).getFullYear(), i = new Date(a, 0, 1), u = new Date(a, 6, 1), s = i.getTimezoneOffset(), l = u.getTimezoneOffset(), d = Math.max(s, l);
1302
- b[e >> 2] = d * 60, Z[t >> 2] = +(s != l);
1282
+ return Jn(gt(s, u));
1283
+ }, na = (t) => {
1284
+ t > 9 && (X[t + 1] += 1);
1285
+ }, aa = (t) => {
1286
+ var e = Y.toValue(t);
1287
+ Gt(e), ee(t);
1288
+ }, oa = (t, e) => {
1289
+ t = re(t, "_emval_take_value");
1290
+ var r = t.readValueFromPointer(e);
1291
+ return Y.toHandle(r);
1292
+ }, ia = (t, e, r, n) => {
1293
+ var a = (/* @__PURE__ */ new Date()).getFullYear(), i = new Date(a, 0, 1), u = new Date(a, 6, 1), s = i.getTimezoneOffset(), l = u.getTimezoneOffset(), f = Math.max(s, l);
1294
+ b[t >> 2] = f * 60, Z[e >> 2] = +(s != l);
1303
1295
  var h = (w) => {
1304
- var x = w >= 0 ? "-" : "+", O = Math.abs(w), E = String(Math.floor(O / 60)).padStart(2, "0"), S = String(O % 60).padStart(2, "0");
1305
- return `UTC${x}${E}${S}`;
1296
+ var C = w >= 0 ? "-" : "+", S = Math.abs(w), O = String(Math.floor(S / 60)).padStart(2, "0"), D = String(S % 60).padStart(2, "0");
1297
+ return `UTC${C}${O}${D}`;
1306
1298
  }, v = h(s), m = h(l);
1307
1299
  l < s ? (wt(v, r, 17), wt(m, n, 17)) : (wt(v, n, 17), wt(m, r, 17));
1308
- }, oa = () => 2147483648, ia = (e) => {
1309
- var t = Ct.buffer, r = (e - t.byteLength + 65535) / 65536;
1300
+ }, sa = () => 2147483648, ua = (t, e) => Math.ceil(t / e) * e, ca = (t) => {
1301
+ var e = Tt.buffer, r = (t - e.byteLength + 65535) / 65536;
1310
1302
  try {
1311
- return Ct.grow(r), he(), 1;
1303
+ return Tt.grow(r), he(), 1;
1312
1304
  } catch {
1313
1305
  }
1314
- }, sa = (e) => {
1315
- var t = F.length;
1316
- e >>>= 0;
1317
- var r = oa();
1318
- if (e > r)
1306
+ }, la = (t) => {
1307
+ var e = F.length;
1308
+ t >>>= 0;
1309
+ var r = sa();
1310
+ if (t > r)
1319
1311
  return !1;
1320
- for (var n = (l, d) => l + (d - l % d) % d, a = 1; a <= 4; a *= 2) {
1321
- var i = t * (1 + 0.2 / a);
1322
- i = Math.min(i, e + 100663296);
1323
- var u = Math.min(r, n(Math.max(e, i), 65536)), s = ia(u);
1324
- if (s)
1312
+ for (var n = 1; n <= 4; n *= 2) {
1313
+ var a = e * (1 + 0.2 / n);
1314
+ a = Math.min(a, t + 100663296);
1315
+ var i = Math.min(r, ua(Math.max(t, a), 65536)), u = ca(i);
1316
+ if (u)
1325
1317
  return !0;
1326
1318
  }
1327
1319
  return !1;
1328
- }, oe = {}, ua = () => V || "./this.program", $t = () => {
1320
+ }, oe = {}, da = () => L || "./this.program", $t = () => {
1329
1321
  if (!$t.strings) {
1330
- var e = (typeof navigator == "object" && navigator.languages && navigator.languages[0] || "C").replace("-", "_") + ".UTF-8", t = {
1322
+ var t = (typeof navigator == "object" && navigator.languages && navigator.languages[0] || "C").replace("-", "_") + ".UTF-8", e = {
1331
1323
  USER: "web_user",
1332
1324
  LOGNAME: "web_user",
1333
1325
  PATH: "/",
1334
1326
  PWD: "/",
1335
1327
  HOME: "/home/web_user",
1336
- LANG: e,
1337
- _: ua()
1328
+ LANG: t,
1329
+ _: da()
1338
1330
  };
1339
1331
  for (var r in oe)
1340
- oe[r] === void 0 ? delete t[r] : t[r] = oe[r];
1332
+ oe[r] === void 0 ? delete e[r] : e[r] = oe[r];
1341
1333
  var n = [];
1342
- for (var r in t)
1343
- n.push(`${r}=${t[r]}`);
1334
+ for (var r in e)
1335
+ n.push(`${r}=${e[r]}`);
1344
1336
  $t.strings = n;
1345
1337
  }
1346
1338
  return $t.strings;
1347
- }, ca = (e, t) => {
1348
- for (var r = 0; r < e.length; ++r)
1349
- U[t++] = e.charCodeAt(r);
1350
- U[t] = 0;
1351
- }, la = (e, t) => {
1339
+ }, fa = (t, e) => {
1340
+ for (var r = 0; r < t.length; ++r)
1341
+ H[e++] = t.charCodeAt(r);
1342
+ H[e] = 0;
1343
+ }, ha = (t, e) => {
1352
1344
  var r = 0;
1353
1345
  return $t().forEach((n, a) => {
1354
- var i = t + r;
1355
- b[e + a * 4 >> 2] = i, ca(n, i), r += n.length + 1;
1346
+ var i = e + r;
1347
+ b[t + a * 4 >> 2] = i, fa(n, i), r += n.length + 1;
1356
1348
  }), 0;
1357
- }, da = (e, t) => {
1349
+ }, pa = (t, e) => {
1358
1350
  var r = $t();
1359
- b[e >> 2] = r.length;
1351
+ b[t >> 2] = r.length;
1360
1352
  var n = 0;
1361
- return r.forEach((a) => n += a.length + 1), b[t >> 2] = n, 0;
1362
- }, fa = (e) => 52;
1363
- function ha(e, t, r, n, a) {
1353
+ return r.forEach((a) => n += a.length + 1), b[e >> 2] = n, 0;
1354
+ }, va = (t) => 52;
1355
+ function ya(t, e, r, n, a) {
1364
1356
  return 70;
1365
1357
  }
1366
- var pa = [null, [], []], va = (e, t) => {
1367
- var r = pa[e];
1368
- t === 0 || t === 10 ? ((e === 1 ? Vt : rt)(Ie(r, 0)), r.length = 0) : r.push(t);
1369
- }, ma = (e, t, r, n) => {
1358
+ var ma = [null, [], []], ga = (t, e) => {
1359
+ var r = ma[t];
1360
+ e === 0 || e === 10 ? ((t === 1 ? Vt : nt)(Me(r, 0)), r.length = 0) : r.push(e);
1361
+ }, wa = (t, e, r, n) => {
1370
1362
  for (var a = 0, i = 0; i < r; i++) {
1371
- var u = b[t >> 2], s = b[t + 4 >> 2];
1372
- t += 8;
1363
+ var u = b[e >> 2], s = b[e + 4 >> 2];
1364
+ e += 8;
1373
1365
  for (var l = 0; l < s; l++)
1374
- va(e, F[u + l]);
1366
+ ga(t, F[u + l]);
1375
1367
  a += s;
1376
1368
  }
1377
1369
  return b[n >> 2] = a, 0;
1378
- }, ya = (e) => e;
1370
+ }, $a = (t) => t;
1379
1371
  $e = c.InternalError = class extends Error {
1380
- constructor(e) {
1381
- super(e), this.name = "InternalError";
1372
+ constructor(t) {
1373
+ super(t), this.name = "InternalError";
1382
1374
  }
1383
- }, Ur(), ot = c.BindingError = class extends Error {
1384
- constructor(e) {
1385
- super(e), this.name = "BindingError";
1375
+ }, Hr(), it = c.BindingError = class extends Error {
1376
+ constructor(t) {
1377
+ super(t), this.name = "BindingError";
1386
1378
  }
1387
- }, tn(), Qr(), cn(), De = c.UnboundTypeError = hn(Error, "UnboundTypeError"), wn();
1388
- var ga = {
1389
- s: Fr,
1390
- v: Or,
1391
- b: jr,
1379
+ }, en(), Zr(), ln(), De = c.UnboundTypeError = pn(Error, "UnboundTypeError"), $n();
1380
+ var ba = {
1381
+ s: Sr,
1382
+ v: jr,
1383
+ b: Mr,
1392
1384
  g: Ir,
1393
1385
  q: Rr,
1394
- Y: Mr,
1395
- f: Wr,
1396
- X: kr,
1397
- e: Sr,
1398
- T: Br,
1399
- ha: Hr,
1400
- S: Vr,
1401
- ba: zr,
1402
- fa: pn,
1386
+ Y: Wr,
1387
+ f: kr,
1388
+ X: Br,
1389
+ e: Fr,
1390
+ T: Ur,
1391
+ ha: Vr,
1392
+ S: Lr,
1393
+ ba: Nr,
1394
+ fa: vn,
1403
1395
  ea: mn,
1404
- w: yn,
1405
- aa: Se,
1406
- x: Cn,
1407
- h: Tn,
1408
- M: En,
1409
- N: _n,
1410
- t: xn,
1411
- o: Dn,
1412
- ga: Fn,
1413
- L: In,
1414
- C: Vn,
1415
- B: Un,
1416
- ia: Ln,
1417
- ca: zn,
1418
- $: Nn,
1419
- E: Gn,
1396
+ w: gn,
1397
+ aa: bn,
1398
+ x: Tn,
1399
+ h: Pn,
1400
+ M: _n,
1401
+ N: An,
1402
+ t: Dn,
1403
+ o: xn,
1404
+ ga: jn,
1405
+ L: Rn,
1406
+ C: Hn,
1407
+ B: zn,
1408
+ ia: Nn,
1409
+ ca: Gn,
1410
+ $: Xn,
1411
+ E: Yn,
1420
1412
  ka: ee,
1421
- la: Yn,
1422
- K: ta,
1423
- O: ea,
1424
- P: ra,
1425
- da: na,
1426
- U: aa,
1427
- Z: sa,
1428
- V: la,
1429
- W: da,
1430
- _: fa,
1431
- R: ha,
1432
- J: ma,
1433
- F: Ia,
1434
- D: Ta,
1435
- G: ja,
1436
- n: Ra,
1437
- a: wa,
1438
- d: Ea,
1439
- p: Ca,
1440
- j: Sa,
1413
+ la: Zn,
1414
+ K: ra,
1415
+ O: na,
1416
+ P: aa,
1417
+ da: oa,
1418
+ U: ia,
1419
+ Z: la,
1420
+ V: ha,
1421
+ W: pa,
1422
+ _: va,
1423
+ R: ya,
1424
+ J: wa,
1425
+ F: Wa,
1426
+ D: _a,
1427
+ G: Ra,
1428
+ n: ka,
1429
+ a: Ca,
1430
+ d: Oa,
1431
+ p: Ea,
1432
+ j: Ia,
1441
1433
  I: Fa,
1442
- u: Da,
1443
- H: Oa,
1444
- z: Wa,
1445
- Q: Ba,
1446
- l: _a,
1447
- k: Pa,
1448
- c: ba,
1449
- m: $a,
1450
- A: xa,
1451
- r: Ma,
1452
- i: Aa,
1453
- y: ka,
1454
- ja: ya
1455
- }, P = Dr(), We = (e) => (We = P.oa)(e), Y = c._free = (e) => (Y = c._free = P.pa)(e), ie = c._malloc = (e) => (ie = c._malloc = P.ra)(e), C = (e, t) => (C = P.sa)(e, t), ke = (e) => (ke = P.ta)(e), Be = (e) => (Be = P.ua)(e), He = () => (He = P.va)(), Ve = (e) => (Ve = P.wa)(e), Ue = (e) => (Ue = P.xa)(e), Le = (e, t, r) => (Le = P.ya)(e, t, r), ze = (e) => (ze = P.za)(e);
1456
- c.dynCall_viijii = (e, t, r, n, a, i, u) => (c.dynCall_viijii = P.Aa)(e, t, r, n, a, i, u), c.dynCall_jiji = (e, t, r, n, a) => (c.dynCall_jiji = P.Ba)(e, t, r, n, a);
1457
- var Ne = c.dynCall_jiiii = (e, t, r, n, a) => (Ne = c.dynCall_jiiii = P.Ca)(e, t, r, n, a);
1458
- c.dynCall_iiiiij = (e, t, r, n, a, i, u) => (c.dynCall_iiiiij = P.Da)(e, t, r, n, a, i, u), c.dynCall_iiiiijj = (e, t, r, n, a, i, u, s, l) => (c.dynCall_iiiiijj = P.Ea)(e, t, r, n, a, i, u, s, l), c.dynCall_iiiiiijj = (e, t, r, n, a, i, u, s, l, d) => (c.dynCall_iiiiiijj = P.Fa)(e, t, r, n, a, i, u, s, l, d);
1459
- function wa(e, t) {
1434
+ u: ja,
1435
+ H: Ma,
1436
+ z: Ua,
1437
+ Q: La,
1438
+ l: Da,
1439
+ k: Aa,
1440
+ c: Pa,
1441
+ m: Ta,
1442
+ A: Sa,
1443
+ r: Ba,
1444
+ i: xa,
1445
+ y: Va,
1446
+ ja: $a
1447
+ }, E = xr(), We = (t) => (We = E.oa)(t), q = c._free = (t) => (q = c._free = E.pa)(t), ie = c._malloc = (t) => (ie = c._malloc = E.ra)(t), T = (t, e) => (T = E.sa)(t, e), ke = (t) => (ke = E.ta)(t), Be = (t) => (Be = E.ua)(t), Ue = () => (Ue = E.va)(), Ve = (t) => (Ve = E.wa)(t), Le = (t) => (Le = E.xa)(t), He = (t, e, r) => (He = E.ya)(t, e, r), ze = (t) => (ze = E.za)(t);
1448
+ c.dynCall_viijii = (t, e, r, n, a, i, u) => (c.dynCall_viijii = E.Aa)(t, e, r, n, a, i, u), c.dynCall_jiji = (t, e, r, n, a) => (c.dynCall_jiji = E.Ba)(t, e, r, n, a);
1449
+ var Ne = c.dynCall_jiiii = (t, e, r, n, a) => (Ne = c.dynCall_jiiii = E.Ca)(t, e, r, n, a);
1450
+ c.dynCall_iiiiij = (t, e, r, n, a, i, u) => (c.dynCall_iiiiij = E.Da)(t, e, r, n, a, i, u), c.dynCall_iiiiijj = (t, e, r, n, a, i, u, s, l) => (c.dynCall_iiiiijj = E.Ea)(t, e, r, n, a, i, u, s, l), c.dynCall_iiiiiijj = (t, e, r, n, a, i, u, s, l, f) => (c.dynCall_iiiiiijj = E.Fa)(t, e, r, n, a, i, u, s, l, f);
1451
+ function Ca(t, e) {
1460
1452
  var r = A();
1461
1453
  try {
1462
- return T(e)(t);
1454
+ return P(t)(e);
1463
1455
  } catch (n) {
1464
1456
  if (_(r), n !== n + 0) throw n;
1465
- C(1, 0);
1457
+ T(1, 0);
1466
1458
  }
1467
1459
  }
1468
- function $a(e, t, r, n) {
1460
+ function Ta(t, e, r, n) {
1469
1461
  var a = A();
1470
1462
  try {
1471
- T(e)(t, r, n);
1463
+ P(t)(e, r, n);
1472
1464
  } catch (i) {
1473
1465
  if (_(a), i !== i + 0) throw i;
1474
- C(1, 0);
1466
+ T(1, 0);
1475
1467
  }
1476
1468
  }
1477
- function ba(e, t, r) {
1469
+ function Pa(t, e, r) {
1478
1470
  var n = A();
1479
1471
  try {
1480
- T(e)(t, r);
1472
+ P(t)(e, r);
1481
1473
  } catch (a) {
1482
1474
  if (_(n), a !== a + 0) throw a;
1483
- C(1, 0);
1475
+ T(1, 0);
1484
1476
  }
1485
1477
  }
1486
- function Ca(e, t, r, n) {
1478
+ function Ea(t, e, r, n) {
1487
1479
  var a = A();
1488
1480
  try {
1489
- return T(e)(t, r, n);
1481
+ return P(t)(e, r, n);
1490
1482
  } catch (i) {
1491
1483
  if (_(a), i !== i + 0) throw i;
1492
- C(1, 0);
1484
+ T(1, 0);
1493
1485
  }
1494
1486
  }
1495
- function Ta(e, t, r, n, a) {
1487
+ function _a(t, e, r, n, a) {
1496
1488
  var i = A();
1497
1489
  try {
1498
- return T(e)(t, r, n, a);
1490
+ return P(t)(e, r, n, a);
1499
1491
  } catch (u) {
1500
1492
  if (_(i), u !== u + 0) throw u;
1501
- C(1, 0);
1493
+ T(1, 0);
1502
1494
  }
1503
1495
  }
1504
- function Pa(e, t) {
1496
+ function Aa(t, e) {
1505
1497
  var r = A();
1506
1498
  try {
1507
- T(e)(t);
1499
+ P(t)(e);
1508
1500
  } catch (n) {
1509
1501
  if (_(r), n !== n + 0) throw n;
1510
- C(1, 0);
1502
+ T(1, 0);
1511
1503
  }
1512
1504
  }
1513
- function Ea(e, t, r) {
1505
+ function Oa(t, e, r) {
1514
1506
  var n = A();
1515
1507
  try {
1516
- return T(e)(t, r);
1508
+ return P(t)(e, r);
1517
1509
  } catch (a) {
1518
1510
  if (_(n), a !== a + 0) throw a;
1519
- C(1, 0);
1511
+ T(1, 0);
1520
1512
  }
1521
1513
  }
1522
- function _a(e) {
1523
- var t = A();
1514
+ function Da(t) {
1515
+ var e = A();
1524
1516
  try {
1525
- T(e)();
1517
+ P(t)();
1526
1518
  } catch (r) {
1527
- if (_(t), r !== r + 0) throw r;
1528
- C(1, 0);
1519
+ if (_(e), r !== r + 0) throw r;
1520
+ T(1, 0);
1529
1521
  }
1530
1522
  }
1531
- function Aa(e, t, r, n, a, i, u, s, l, d, h) {
1523
+ function xa(t, e, r, n, a, i, u, s, l, f, h) {
1532
1524
  var v = A();
1533
1525
  try {
1534
- T(e)(t, r, n, a, i, u, s, l, d, h);
1526
+ P(t)(e, r, n, a, i, u, s, l, f, h);
1535
1527
  } catch (m) {
1536
1528
  if (_(v), m !== m + 0) throw m;
1537
- C(1, 0);
1529
+ T(1, 0);
1538
1530
  }
1539
1531
  }
1540
- function xa(e, t, r, n, a) {
1532
+ function Sa(t, e, r, n, a) {
1541
1533
  var i = A();
1542
1534
  try {
1543
- T(e)(t, r, n, a);
1535
+ P(t)(e, r, n, a);
1544
1536
  } catch (u) {
1545
1537
  if (_(i), u !== u + 0) throw u;
1546
- C(1, 0);
1538
+ T(1, 0);
1547
1539
  }
1548
1540
  }
1549
- function Da(e, t, r, n, a, i, u) {
1541
+ function ja(t, e, r, n, a, i, u) {
1550
1542
  var s = A();
1551
1543
  try {
1552
- return T(e)(t, r, n, a, i, u);
1544
+ return P(t)(e, r, n, a, i, u);
1553
1545
  } catch (l) {
1554
1546
  if (_(s), l !== l + 0) throw l;
1555
- C(1, 0);
1547
+ T(1, 0);
1556
1548
  }
1557
1549
  }
1558
- function Fa(e, t, r, n, a, i) {
1550
+ function Fa(t, e, r, n, a, i) {
1559
1551
  var u = A();
1560
1552
  try {
1561
- return T(e)(t, r, n, a, i);
1553
+ return P(t)(e, r, n, a, i);
1562
1554
  } catch (s) {
1563
1555
  if (_(u), s !== s + 0) throw s;
1564
- C(1, 0);
1556
+ T(1, 0);
1565
1557
  }
1566
1558
  }
1567
- function Oa(e, t, r, n, a, i, u, s) {
1559
+ function Ma(t, e, r, n, a, i, u, s) {
1568
1560
  var l = A();
1569
1561
  try {
1570
- return T(e)(t, r, n, a, i, u, s);
1571
- } catch (d) {
1572
- if (_(l), d !== d + 0) throw d;
1573
- C(1, 0);
1562
+ return P(t)(e, r, n, a, i, u, s);
1563
+ } catch (f) {
1564
+ if (_(l), f !== f + 0) throw f;
1565
+ T(1, 0);
1574
1566
  }
1575
1567
  }
1576
- function Sa(e, t, r, n, a) {
1568
+ function Ia(t, e, r, n, a) {
1577
1569
  var i = A();
1578
1570
  try {
1579
- return T(e)(t, r, n, a);
1571
+ return P(t)(e, r, n, a);
1580
1572
  } catch (u) {
1581
1573
  if (_(i), u !== u + 0) throw u;
1582
- C(1, 0);
1574
+ T(1, 0);
1583
1575
  }
1584
1576
  }
1585
- function ja(e, t, r, n) {
1577
+ function Ra(t, e, r, n) {
1586
1578
  var a = A();
1587
1579
  try {
1588
- return T(e)(t, r, n);
1580
+ return P(t)(e, r, n);
1589
1581
  } catch (i) {
1590
1582
  if (_(a), i !== i + 0) throw i;
1591
- C(1, 0);
1583
+ T(1, 0);
1592
1584
  }
1593
1585
  }
1594
- function Ia(e, t, r, n) {
1586
+ function Wa(t, e, r, n) {
1595
1587
  var a = A();
1596
1588
  try {
1597
- return T(e)(t, r, n);
1589
+ return P(t)(e, r, n);
1598
1590
  } catch (i) {
1599
1591
  if (_(a), i !== i + 0) throw i;
1600
- C(1, 0);
1592
+ T(1, 0);
1601
1593
  }
1602
1594
  }
1603
- function Ra(e) {
1604
- var t = A();
1595
+ function ka(t) {
1596
+ var e = A();
1605
1597
  try {
1606
- return T(e)();
1598
+ return P(t)();
1607
1599
  } catch (r) {
1608
- if (_(t), r !== r + 0) throw r;
1609
- C(1, 0);
1600
+ if (_(e), r !== r + 0) throw r;
1601
+ T(1, 0);
1610
1602
  }
1611
1603
  }
1612
- function Ma(e, t, r, n, a, i, u, s) {
1604
+ function Ba(t, e, r, n, a, i, u, s) {
1613
1605
  var l = A();
1614
1606
  try {
1615
- T(e)(t, r, n, a, i, u, s);
1616
- } catch (d) {
1617
- if (_(l), d !== d + 0) throw d;
1618
- C(1, 0);
1607
+ P(t)(e, r, n, a, i, u, s);
1608
+ } catch (f) {
1609
+ if (_(l), f !== f + 0) throw f;
1610
+ T(1, 0);
1619
1611
  }
1620
1612
  }
1621
- function Wa(e, t, r, n, a, i, u, s, l, d, h, v) {
1613
+ function Ua(t, e, r, n, a, i, u, s, l, f, h, v) {
1622
1614
  var m = A();
1623
1615
  try {
1624
- return T(e)(t, r, n, a, i, u, s, l, d, h, v);
1616
+ return P(t)(e, r, n, a, i, u, s, l, f, h, v);
1625
1617
  } catch (w) {
1626
1618
  if (_(m), w !== w + 0) throw w;
1627
- C(1, 0);
1619
+ T(1, 0);
1628
1620
  }
1629
1621
  }
1630
- function ka(e, t, r, n, a, i, u, s, l, d, h, v, m, w, x, O) {
1631
- var E = A();
1622
+ function Va(t, e, r, n, a, i, u, s, l, f, h, v, m, w, C, S) {
1623
+ var O = A();
1632
1624
  try {
1633
- T(e)(t, r, n, a, i, u, s, l, d, h, v, m, w, x, O);
1634
- } catch (S) {
1635
- if (_(E), S !== S + 0) throw S;
1636
- C(1, 0);
1625
+ P(t)(e, r, n, a, i, u, s, l, f, h, v, m, w, C, S);
1626
+ } catch (D) {
1627
+ if (_(O), D !== D + 0) throw D;
1628
+ T(1, 0);
1637
1629
  }
1638
1630
  }
1639
- function Ba(e, t, r, n, a) {
1631
+ function La(t, e, r, n, a) {
1640
1632
  var i = A();
1641
1633
  try {
1642
- return Ne(e, t, r, n, a);
1634
+ return Ne(t, e, r, n, a);
1643
1635
  } catch (u) {
1644
1636
  if (_(i), u !== u + 0) throw u;
1645
- C(1, 0);
1637
+ T(1, 0);
1646
1638
  }
1647
1639
  }
1648
1640
  var Rt;
1649
- ft = function e() {
1650
- Rt || Ge(), Rt || (ft = e);
1641
+ ft = function t() {
1642
+ Rt || Ge(), Rt || (ft = t);
1651
1643
  };
1652
1644
  function Ge() {
1653
1645
  if (J > 0 || (mr(), J > 0))
1654
1646
  return;
1655
- function e() {
1656
- var t;
1657
- Rt || (Rt = !0, c.calledRun = !0, !le && (yr(), g(c), (t = c.onRuntimeInitialized) === null || t === void 0 || t.call(c), gr()));
1658
- }
1659
- c.setStatus ? (c.setStatus("Running..."), setTimeout(function() {
1660
- setTimeout(function() {
1661
- c.setStatus("");
1662
- }, 1), e();
1663
- }, 1)) : e();
1647
+ function t() {
1648
+ var e;
1649
+ Rt || (Rt = !0, c.calledRun = !0, !le && (gr(), $(c), (e = c.onRuntimeInitialized) === null || e === void 0 || e.call(c), wr()));
1650
+ }
1651
+ c.setStatus ? (c.setStatus("Running..."), setTimeout(() => {
1652
+ setTimeout(() => c.setStatus(""), 1), t();
1653
+ }, 1)) : t();
1664
1654
  }
1665
1655
  if (c.preInit)
1666
1656
  for (typeof c.preInit == "function" && (c.preInit = [c.preInit]); c.preInit.length > 0; )
@@ -1668,33 +1658,33 @@ var Ht = (() => {
1668
1658
  return Ge(), y = k, y;
1669
1659
  };
1670
1660
  })();
1671
- function Ka(o) {
1661
+ function ro(o) {
1672
1662
  return ce(
1673
- Ht,
1663
+ Ut,
1674
1664
  o
1675
1665
  );
1676
1666
  }
1677
- function yo(o) {
1678
- return Qa(
1679
- Ht,
1667
+ function Co(o) {
1668
+ return Ka(
1669
+ Ut,
1680
1670
  o
1681
1671
  );
1682
1672
  }
1683
- async function to(o, f) {
1684
- return Za(
1685
- Ht,
1673
+ async function no(o, d) {
1674
+ return to(
1675
+ Ut,
1686
1676
  o,
1687
- f
1677
+ d
1688
1678
  );
1689
1679
  }
1690
- async function eo(o, f) {
1691
- return Ja(
1692
- Ht,
1680
+ async function ao(o, d) {
1681
+ return eo(
1682
+ Ut,
1693
1683
  o,
1694
- f
1684
+ d
1695
1685
  );
1696
1686
  }
1697
- const ir = [
1687
+ const sr = [
1698
1688
  ["aztec", "Aztec"],
1699
1689
  ["code_128", "Code128"],
1700
1690
  ["code_39", "Code39"],
@@ -1716,47 +1706,47 @@ const ir = [
1716
1706
  ["upc_e", "UPC-E"],
1717
1707
  ["linear_codes", "Linear-Codes"],
1718
1708
  ["matrix_codes", "Matrix-Codes"]
1719
- ], ro = [...ir, ["unknown"]].map((o) => o[0]), Bt = new Map(
1720
- ir
1709
+ ], oo = [...sr, ["unknown"]].map((o) => o[0]), ue = new Map(
1710
+ sr
1721
1711
  );
1722
- function no(o) {
1723
- for (const [f, p] of Bt)
1712
+ function io(o) {
1713
+ for (const [d, p] of ue)
1724
1714
  if (o === p)
1725
- return f;
1715
+ return d;
1726
1716
  return "unknown";
1727
1717
  }
1728
- function ao(o) {
1729
- if (sr(o))
1718
+ function so(o) {
1719
+ if (ur(o))
1730
1720
  return {
1731
1721
  width: o.naturalWidth,
1732
1722
  height: o.naturalHeight
1733
1723
  };
1734
- if (ur(o))
1724
+ if (cr(o))
1735
1725
  return {
1736
1726
  width: o.width.baseVal.value,
1737
1727
  height: o.height.baseVal.value
1738
1728
  };
1739
- if (cr(o))
1729
+ if (lr(o))
1740
1730
  return {
1741
1731
  width: o.videoWidth,
1742
1732
  height: o.videoHeight
1743
1733
  };
1744
- if (dr(o))
1734
+ if (fr(o))
1745
1735
  return {
1746
1736
  width: o.width,
1747
1737
  height: o.height
1748
1738
  };
1749
- if (hr(o))
1739
+ if (pr(o))
1750
1740
  return {
1751
1741
  width: o.displayWidth,
1752
1742
  height: o.displayHeight
1753
1743
  };
1754
- if (lr(o))
1744
+ if (dr(o))
1755
1745
  return {
1756
1746
  width: o.width,
1757
1747
  height: o.height
1758
1748
  };
1759
- if (fr(o))
1749
+ if (hr(o))
1760
1750
  return {
1761
1751
  width: o.width,
1762
1752
  height: o.height
@@ -1765,125 +1755,125 @@ function ao(o) {
1765
1755
  "The provided value is not of type '(Blob or HTMLCanvasElement or HTMLImageElement or HTMLVideoElement or ImageBitmap or ImageData or OffscreenCanvas or SVGImageElement or VideoFrame)'."
1766
1756
  );
1767
1757
  }
1768
- function sr(o) {
1769
- var f, p;
1770
- try {
1771
- return o instanceof ((p = (f = o == null ? void 0 : o.ownerDocument) == null ? void 0 : f.defaultView) == null ? void 0 : p.HTMLImageElement);
1772
- } catch {
1773
- return !1;
1774
- }
1775
- }
1776
1758
  function ur(o) {
1777
- var f, p;
1759
+ var d, p;
1778
1760
  try {
1779
- return o instanceof ((p = (f = o == null ? void 0 : o.ownerDocument) == null ? void 0 : f.defaultView) == null ? void 0 : p.SVGImageElement);
1761
+ return o instanceof ((p = (d = o == null ? void 0 : o.ownerDocument) == null ? void 0 : d.defaultView) == null ? void 0 : p.HTMLImageElement);
1780
1762
  } catch {
1781
1763
  return !1;
1782
1764
  }
1783
1765
  }
1784
1766
  function cr(o) {
1785
- var f, p;
1767
+ var d, p;
1786
1768
  try {
1787
- return o instanceof ((p = (f = o == null ? void 0 : o.ownerDocument) == null ? void 0 : f.defaultView) == null ? void 0 : p.HTMLVideoElement);
1769
+ return o instanceof ((p = (d = o == null ? void 0 : o.ownerDocument) == null ? void 0 : d.defaultView) == null ? void 0 : p.SVGImageElement);
1788
1770
  } catch {
1789
1771
  return !1;
1790
1772
  }
1791
1773
  }
1792
1774
  function lr(o) {
1793
- var f, p;
1775
+ var d, p;
1794
1776
  try {
1795
- return o instanceof ((p = (f = o == null ? void 0 : o.ownerDocument) == null ? void 0 : f.defaultView) == null ? void 0 : p.HTMLCanvasElement);
1777
+ return o instanceof ((p = (d = o == null ? void 0 : o.ownerDocument) == null ? void 0 : d.defaultView) == null ? void 0 : p.HTMLVideoElement);
1796
1778
  } catch {
1797
1779
  return !1;
1798
1780
  }
1799
1781
  }
1800
1782
  function dr(o) {
1783
+ var d, p;
1801
1784
  try {
1802
- return o instanceof ImageBitmap;
1785
+ return o instanceof ((p = (d = o == null ? void 0 : o.ownerDocument) == null ? void 0 : d.defaultView) == null ? void 0 : p.HTMLCanvasElement);
1803
1786
  } catch {
1804
1787
  return !1;
1805
1788
  }
1806
1789
  }
1807
1790
  function fr(o) {
1808
1791
  try {
1809
- return o instanceof OffscreenCanvas;
1792
+ return o instanceof ImageBitmap || Object.prototype.toString.call(o) === "[object ImageBitmap]";
1810
1793
  } catch {
1811
1794
  return !1;
1812
1795
  }
1813
1796
  }
1814
1797
  function hr(o) {
1815
1798
  try {
1816
- return o instanceof VideoFrame;
1799
+ return o instanceof OffscreenCanvas || Object.prototype.toString.call(o) === "[object OffscreenCanvas]";
1817
1800
  } catch {
1818
1801
  return !1;
1819
1802
  }
1820
1803
  }
1821
1804
  function pr(o) {
1822
1805
  try {
1823
- return o instanceof Blob;
1806
+ return o instanceof VideoFrame || Object.prototype.toString.call(o) === "[object VideoFrame]";
1807
+ } catch {
1808
+ return !1;
1809
+ }
1810
+ }
1811
+ function vr(o) {
1812
+ try {
1813
+ return o instanceof Blob || Object.prototype.toString.call(o) === "[object Blob]";
1824
1814
  } catch {
1825
1815
  return !1;
1826
1816
  }
1827
1817
  }
1828
- function oo(o) {
1818
+ function uo(o) {
1829
1819
  try {
1830
- return o instanceof ImageData;
1820
+ return o instanceof ImageData || Object.prototype.toString.call(o) === "[object ImageData]";
1831
1821
  } catch {
1832
1822
  return !1;
1833
1823
  }
1834
1824
  }
1835
- function io(o, f) {
1825
+ function co(o, d) {
1836
1826
  try {
1837
- const p = new OffscreenCanvas(o, f);
1827
+ const p = new OffscreenCanvas(o, d);
1838
1828
  if (p.getContext("2d") instanceof OffscreenCanvasRenderingContext2D)
1839
1829
  return p;
1840
1830
  throw void 0;
1841
1831
  } catch {
1842
1832
  const p = document.createElement("canvas");
1843
- return p.width = o, p.height = f, p;
1833
+ return p.width = o, p.height = d, p;
1844
1834
  }
1845
1835
  }
1846
- async function vr(o) {
1847
- if (sr(o) && !await lo(o))
1836
+ async function yr(o) {
1837
+ if (ur(o) && !await po(o))
1848
1838
  throw new DOMException(
1849
1839
  "Failed to load or decode HTMLImageElement.",
1850
1840
  "InvalidStateError"
1851
1841
  );
1852
- if (ur(o) && !await fo(o))
1842
+ if (cr(o) && !await vo(o))
1853
1843
  throw new DOMException(
1854
1844
  "Failed to load or decode SVGImageElement.",
1855
1845
  "InvalidStateError"
1856
1846
  );
1857
- if (hr(o) && ho(o))
1847
+ if (pr(o) && yo(o))
1858
1848
  throw new DOMException("VideoFrame is closed.", "InvalidStateError");
1859
- if (cr(o) && (o.readyState === 0 || o.readyState === 1))
1849
+ if (lr(o) && (o.readyState === 0 || o.readyState === 1))
1860
1850
  throw new DOMException("Invalid element or state.", "InvalidStateError");
1861
- if (dr(o) && vo(o))
1851
+ if (fr(o) && go(o))
1862
1852
  throw new DOMException(
1863
1853
  "The image source is detached.",
1864
1854
  "InvalidStateError"
1865
1855
  );
1866
- const { width: f, height: p } = ao(o);
1867
- if (f === 0 || p === 0)
1856
+ const { width: d, height: p } = so(o);
1857
+ if (d === 0 || p === 0)
1868
1858
  return null;
1869
- const c = io(f, p).getContext("2d");
1859
+ const c = co(d, p).getContext("2d");
1870
1860
  c.drawImage(o, 0, 0);
1871
1861
  try {
1872
- return c.getImageData(0, 0, f, p);
1862
+ return c.getImageData(0, 0, d, p);
1873
1863
  } catch {
1874
1864
  throw new DOMException("Source would taint origin.", "SecurityError");
1875
1865
  }
1876
1866
  }
1877
- async function so(o) {
1878
- let f;
1867
+ async function lo(o) {
1868
+ let d;
1879
1869
  try {
1880
1870
  if (globalThis.createImageBitmap)
1881
- f = await createImageBitmap(o);
1871
+ d = await createImageBitmap(o);
1882
1872
  else if (globalThis.Image) {
1883
- f = new Image();
1873
+ d = new Image();
1884
1874
  let y = "";
1885
1875
  try {
1886
- y = URL.createObjectURL(o), f.src = y, await f.decode();
1876
+ y = URL.createObjectURL(o), d.src = y, await d.decode();
1887
1877
  } finally {
1888
1878
  URL.revokeObjectURL(y);
1889
1879
  }
@@ -1895,165 +1885,173 @@ async function so(o) {
1895
1885
  "InvalidStateError"
1896
1886
  );
1897
1887
  }
1898
- return await vr(f);
1888
+ return await yr(d);
1899
1889
  }
1900
- function uo(o) {
1901
- const { width: f, height: p } = o;
1902
- if (f === 0 || p === 0)
1890
+ function fo(o) {
1891
+ const { width: d, height: p } = o;
1892
+ if (d === 0 || p === 0)
1903
1893
  return null;
1904
1894
  const y = o.getContext("2d");
1905
1895
  try {
1906
- return y.getImageData(0, 0, f, p);
1896
+ return y.getImageData(0, 0, d, p);
1907
1897
  } catch {
1908
1898
  throw new DOMException("Source would taint origin.", "SecurityError");
1909
1899
  }
1910
1900
  }
1911
- async function co(o) {
1912
- if (pr(o))
1913
- return await so(o);
1914
- if (oo(o)) {
1915
- if (po(o))
1901
+ async function ho(o) {
1902
+ if (vr(o))
1903
+ return await lo(o);
1904
+ if (uo(o)) {
1905
+ if (mo(o))
1916
1906
  throw new DOMException(
1917
1907
  "The image data has been detached.",
1918
1908
  "InvalidStateError"
1919
1909
  );
1920
1910
  return o;
1921
1911
  }
1922
- return lr(o) || fr(o) ? uo(o) : await vr(o);
1912
+ return dr(o) || hr(o) ? fo(o) : await yr(o);
1923
1913
  }
1924
- async function lo(o) {
1914
+ async function po(o) {
1925
1915
  try {
1926
1916
  return await o.decode(), !0;
1927
1917
  } catch {
1928
1918
  return !1;
1929
1919
  }
1930
1920
  }
1931
- async function fo(o) {
1932
- var f;
1921
+ async function vo(o) {
1922
+ var d;
1933
1923
  try {
1934
- return await ((f = o.decode) == null ? void 0 : f.call(o)), !0;
1924
+ return await ((d = o.decode) == null ? void 0 : d.call(o)), !0;
1935
1925
  } catch {
1936
1926
  return !1;
1937
1927
  }
1938
1928
  }
1939
- function ho(o) {
1929
+ function yo(o) {
1940
1930
  return o.format === null;
1941
1931
  }
1942
- function po(o) {
1932
+ function mo(o) {
1943
1933
  return o.data.buffer.byteLength === 0;
1944
1934
  }
1945
- function vo(o) {
1935
+ function go(o) {
1946
1936
  return o.width === 0 && o.height === 0;
1947
1937
  }
1948
- function nr(o, f) {
1949
- return o instanceof DOMException ? new DOMException(`${f}: ${o.message}`, o.name) : o instanceof Error ? new o.constructor(`${f}: ${o.message}`) : new Error(`${f}: ${o}`);
1938
+ function ar(o, d) {
1939
+ return wo(o) ? new DOMException(`${d}: ${o.message}`, o.name) : $o(o) ? new o.constructor(`${d}: ${o.message}`) : new Error(`${d}: ${o}`);
1940
+ }
1941
+ function wo(o) {
1942
+ return o instanceof DOMException || Object.prototype.toString.call(o) === "[object DOMException]";
1950
1943
  }
1951
- var it;
1952
- class go extends EventTarget {
1944
+ function $o(o) {
1945
+ return o instanceof Error || Object.prototype.toString.call(o) === "[object Error]";
1946
+ }
1947
+ var bt;
1948
+ class To extends EventTarget {
1953
1949
  constructor(p = {}) {
1954
1950
  var y;
1955
1951
  super();
1956
- Ke(this, it);
1952
+ tr(this, bt);
1957
1953
  try {
1958
1954
  const c = (y = p == null ? void 0 : p.formats) == null ? void 0 : y.filter(
1959
- (g) => g !== "unknown"
1955
+ ($) => $ !== "unknown"
1960
1956
  );
1961
1957
  if ((c == null ? void 0 : c.length) === 0)
1962
1958
  throw new TypeError("Hint option provided, but is empty.");
1963
- for (const g of c != null ? c : [])
1964
- if (!Bt.has(g))
1959
+ for (const $ of c != null ? c : [])
1960
+ if (!ue.has($))
1965
1961
  throw new TypeError(
1966
- `Failed to read the 'formats' property from 'BarcodeDetectorOptions': The provided value '${g}' is not a valid enum value of type BarcodeFormat.`
1962
+ `Failed to read the 'formats' property from 'BarcodeDetectorOptions': The provided value '${$}' is not a valid enum value of type BarcodeFormat.`
1967
1963
  );
1968
- tr(this, it, c != null ? c : []), Ka().then((g) => {
1964
+ er(this, bt, c != null ? c : []), ro().then(($) => {
1969
1965
  this.dispatchEvent(
1970
1966
  new CustomEvent("load", {
1971
- detail: g
1967
+ detail: $
1972
1968
  })
1973
1969
  );
1974
- }).catch((g) => {
1975
- this.dispatchEvent(new CustomEvent("error", { detail: g }));
1970
+ }).catch(($) => {
1971
+ this.dispatchEvent(new CustomEvent("error", { detail: $ }));
1976
1972
  });
1977
1973
  } catch (c) {
1978
- throw nr(
1974
+ throw ar(
1979
1975
  c,
1980
1976
  "Failed to construct 'BarcodeDetector'"
1981
1977
  );
1982
1978
  }
1983
1979
  }
1984
1980
  static async getSupportedFormats() {
1985
- return ro.filter((p) => p !== "unknown");
1981
+ return oo.filter((p) => p !== "unknown");
1986
1982
  }
1987
1983
  async detect(p) {
1988
1984
  try {
1989
- const y = await co(p);
1985
+ const y = await ho(p);
1990
1986
  if (y === null)
1991
1987
  return [];
1992
1988
  let c;
1989
+ const $ = {
1990
+ tryHarder: !0,
1991
+ // https://github.com/Sec-ant/barcode-detector/issues/91
1992
+ returnCodabarStartEnd: !0,
1993
+ formats: Ke(this, bt).map((x) => ue.get(x))
1994
+ };
1993
1995
  try {
1994
- pr(y) ? c = await to(y, {
1995
- tryHarder: !0,
1996
- // https://github.com/Sec-ant/barcode-detector/issues/91
1997
- returnCodabarStartEnd: !0,
1998
- formats: se(this, it).map((g) => Bt.get(g))
1999
- }) : c = await eo(y, {
2000
- tryHarder: !0,
2001
- // https://github.com/Sec-ant/barcode-detector/issues/91
2002
- returnCodabarStartEnd: !0,
2003
- formats: se(this, it).map((g) => Bt.get(g))
2004
- });
2005
- } catch (g) {
2006
- throw console.error(g), new DOMException(
1996
+ vr(y) ? c = await no(
1997
+ y,
1998
+ $
1999
+ ) : c = await ao(
2000
+ y,
2001
+ $
2002
+ );
2003
+ } catch (x) {
2004
+ throw console.error(x), new DOMException(
2007
2005
  "Barcode detection service unavailable.",
2008
2006
  "NotSupportedError"
2009
2007
  );
2010
2008
  }
2011
- return c.map((g) => {
2009
+ return c.map((x) => {
2012
2010
  const {
2013
- topLeft: { x: j, y: k },
2014
- topRight: { x: H, y: W },
2015
- bottomLeft: { x: R, y: N },
2016
- bottomRight: { x: V, y: M }
2017
- } = g.position, bt = Math.min(j, H, R, V), ut = Math.min(k, W, N, M), ct = Math.max(j, H, R, V), Vt = Math.max(k, W, N, M);
2011
+ topLeft: { x: k, y: V },
2012
+ topRight: { x: W, y: I },
2013
+ bottomLeft: { x: N, y: L },
2014
+ bottomRight: { x: R, y: ut }
2015
+ } = x.position, ct = Math.min(k, W, N, R), rt = Math.min(V, I, L, ut), lt = Math.max(k, W, N, R), Vt = Math.max(V, I, L, ut);
2018
2016
  return {
2019
2017
  boundingBox: new DOMRectReadOnly(
2020
- bt,
2021
- ut,
2022
- ct - bt,
2023
- Vt - ut
2018
+ ct,
2019
+ rt,
2020
+ lt - ct,
2021
+ Vt - rt
2024
2022
  ),
2025
- rawValue: g.text,
2026
- format: no(g.format),
2023
+ rawValue: x.text,
2024
+ format: io(x.format),
2027
2025
  cornerPoints: [
2028
2026
  {
2029
- x: j,
2030
- y: k
2027
+ x: k,
2028
+ y: V
2031
2029
  },
2032
2030
  {
2033
- x: H,
2034
- y: W
2031
+ x: W,
2032
+ y: I
2035
2033
  },
2036
2034
  {
2037
- x: V,
2038
- y: M
2035
+ x: R,
2036
+ y: ut
2039
2037
  },
2040
2038
  {
2041
- x: R,
2042
- y: N
2039
+ x: N,
2040
+ y: L
2043
2041
  }
2044
2042
  ]
2045
2043
  };
2046
2044
  });
2047
2045
  } catch (y) {
2048
- throw nr(
2046
+ throw ar(
2049
2047
  y,
2050
2048
  "Failed to execute 'detect' on 'BarcodeDetector'"
2051
2049
  );
2052
2050
  }
2053
2051
  }
2054
2052
  }
2055
- it = new WeakMap();
2053
+ bt = new WeakMap();
2056
2054
  export {
2057
- go as BarcodeDetector,
2058
- yo as setZXingModuleOverrides
2055
+ To as BarcodeDetector,
2056
+ Co as setZXingModuleOverrides
2059
2057
  };