barcode-detector 2.2.4 → 2.2.5

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