barcode-detector 3.0.4 → 3.0.6

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