barcode-detector 2.0.2 → 2.0.4

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