barcode-detector 3.1.2 → 3.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- //#region node_modules/.pnpm/zxing-wasm@3.0.2_@types+emscripten@1.40.0/node_modules/zxing-wasm/dist/es/share.js
1
+ //#region node_modules/.pnpm/zxing-wasm@3.0.3_@types+emscripten@1.40.0/node_modules/zxing-wasm/dist/es/share.js
2
2
  var e = [
3
3
  [
4
4
  "All",
@@ -497,27 +497,27 @@ var _ = {
497
497
  addHRT: !1,
498
498
  addQuietZones: !0,
499
499
  options: ""
500
- }, ee = "3.0.2", te = "b304f6656b865be11b00741d430b7d0027bc0ab4", ne = { locateFile: (e, t) => {
500
+ }, ee = "3.0.3", v = "1681c2e7bde3b43073a58fde4083dc68ef424763", te = { locateFile: (e, t) => {
501
501
  let n = e.match(/_(.+?)\.wasm$/);
502
- return n ? `https://fastly.jsdelivr.net/npm/zxing-wasm@3.0.2/dist/${n[1]}/${e}` : t + e;
503
- } }, v = /* @__PURE__ */ new WeakMap();
504
- function re(e, t) {
502
+ return n ? `https://fastly.jsdelivr.net/npm/zxing-wasm@3.0.3/dist/${n[1]}/${e}` : t + e;
503
+ } }, y = /* @__PURE__ */ new WeakMap();
504
+ function ne(e, t) {
505
505
  return Object.is(e, t) || Object.keys(e).length === Object.keys(t).length && Object.keys(e).every((n) => Object.hasOwn(t, n) && e[n] === t[n]);
506
506
  }
507
- function ie(e, { overrides: t, equalityFn: n = re, fireImmediately: r = !1 } = {}) {
507
+ function re(e, { overrides: t, equalityFn: n = ne, fireImmediately: r = !1 } = {}) {
508
508
  var i, a;
509
- let [o, s] = (i = v.get(e)) == null ? [ne] : i, c = t == null ? o : t, l;
509
+ let [o, s] = (i = y.get(e)) == null ? [te] : i, c = t == null ? o : t, l;
510
510
  if (r) {
511
511
  if (s && (l = n(o, c))) return s;
512
512
  let t = e({ ...c });
513
- return v.set(e, [c, t]), t;
513
+ return y.set(e, [c, t]), t;
514
514
  }
515
- ((a = l) == null ? n(o, c) : a) || v.set(e, [c]);
515
+ ((a = l) == null ? n(o, c) : a) || y.set(e, [c]);
516
516
  }
517
- function ae(e) {
518
- v.delete(e);
517
+ function ie(e) {
518
+ y.delete(e);
519
519
  }
520
- function oe(e) {
520
+ function ae(e) {
521
521
  let t = e.byteLength >> 2, n = new Uint8Array(t);
522
522
  for (let r = 0; r < t; r++) {
523
523
  let t = r << 2;
@@ -525,13 +525,13 @@ function oe(e) {
525
525
  }
526
526
  return n;
527
527
  }
528
- async function y(e, t, n = m) {
528
+ async function b(e, t, n = m) {
529
529
  let r = {
530
530
  ...m,
531
531
  ...n
532
- }, i = await ie(e, { fireImmediately: !0 }), a, o;
532
+ }, i = await re(e, { fireImmediately: !0 }), a, o;
533
533
  if ("width" in t && "height" in t && "data" in t) {
534
- let { data: e, width: n, height: s } = t, c = oe(e), l = c.byteLength;
534
+ let { data: e, width: n, height: s } = t, c = ae(e), l = c.byteLength;
535
535
  if (o = i._malloc(l), !o) throw Error(`Failed to allocate ${l} bytes in WASM memory`);
536
536
  try {
537
537
  i.HEAPU8.set(c, o), a = i.readBarcodesFromPixmap(o, n, s, h(r));
@@ -557,8 +557,8 @@ async function y(e, t, n = m) {
557
557
  }
558
558
  ({ ...m }), [...m.formats], { ..._ };
559
559
  //#endregion
560
- //#region node_modules/.pnpm/zxing-wasm@3.0.2_@types+emscripten@1.40.0/node_modules/zxing-wasm/dist/es/reader/index.js
561
- async function se(e = {}) {
560
+ //#region node_modules/.pnpm/zxing-wasm@3.0.3_@types+emscripten@1.40.0/node_modules/zxing-wasm/dist/es/reader/index.js
561
+ async function oe(e = {}) {
562
562
  var t, n, r, i = e, a = !!globalThis.window, o = typeof Bun < "u", s = !!globalThis.WorkerGlobalScope;
563
563
  !((n = globalThis.process) == null || (n = n.versions) == null) && n.node && ((r = globalThis.process) == null || r.type);
564
564
  var c = "./this.program", l, u = "";
@@ -579,186 +579,186 @@ async function se(e = {}) {
579
579
  throw Error(t.status + " : " + t.url);
580
580
  };
581
581
  }
582
- var m = console.log.bind(console), h = console.error.bind(console), g, _ = !1, ee, te, ne = !1;
583
- function v() {
582
+ var m = console.log.bind(console), h = console.error.bind(console), g, _ = !1, ee, v, te = !1;
583
+ function y() {
584
584
  var e = Xn.buffer;
585
- C = new Int8Array(e), x = new Int16Array(e), i.HEAPU8 = E = new Uint8Array(e), w = new Uint16Array(e), S = new Int32Array(e), T = new Uint32Array(e), pe = new Float32Array(e), me = new Float64Array(e);
585
+ w = new Int8Array(e), S = new Int16Array(e), i.HEAPU8 = D = new Uint8Array(e), T = new Uint16Array(e), C = new Int32Array(e), E = new Uint32Array(e), fe = new Float32Array(e), pe = new Float64Array(e);
586
+ }
587
+ function ne() {
588
+ if (i.preRun) for (typeof i.preRun == "function" && (i.preRun = [i.preRun]); i.preRun.length;) ve(i.preRun.shift());
589
+ me(_e);
586
590
  }
587
591
  function re() {
588
- if (i.preRun) for (typeof i.preRun == "function" && (i.preRun = [i.preRun]); i.preRun.length;) ye(i.preRun.shift());
589
- he(ve);
592
+ te = !0, zr.Ba();
590
593
  }
591
594
  function ie() {
592
- ne = !0, $.Aa();
593
- }
594
- function ae() {
595
- if (i.postRun) for (typeof i.postRun == "function" && (i.postRun = [i.postRun]); i.postRun.length;) _e(i.postRun.shift());
596
- he(ge);
595
+ if (i.postRun) for (typeof i.postRun == "function" && (i.postRun = [i.postRun]); i.postRun.length;) ge(i.postRun.shift());
596
+ me(he);
597
597
  }
598
- function oe(e) {
598
+ function ae(e) {
599
599
  var t, n;
600
600
  (t = i.onAbort) == null || t.call(i, e), e = "Aborted(" + e + ")", h(e), _ = !0, e += ". Build with -sASSERTIONS for more info.";
601
601
  var r = new WebAssembly.RuntimeError(e);
602
- throw (n = te) == null || n(r), r;
602
+ throw (n = v) == null || n(r), r;
603
603
  }
604
- var y;
605
- function se() {
604
+ var b;
605
+ function oe() {
606
606
  return d("zxing_reader.wasm");
607
607
  }
608
- function b(e) {
609
- if (e == y && g) return new Uint8Array(g);
608
+ function x(e) {
609
+ if (e == b && g) return new Uint8Array(g);
610
610
  if (p) return p(e);
611
611
  throw "both async and sync fetching of the wasm failed";
612
612
  }
613
- async function ce(e) {
613
+ async function se(e) {
614
614
  if (!g) try {
615
615
  var t = await f(e);
616
616
  return new Uint8Array(t);
617
617
  } catch {}
618
- return b(e);
618
+ return x(e);
619
619
  }
620
- async function le(e, t) {
620
+ async function ce(e, t) {
621
621
  try {
622
- var n = await ce(e);
622
+ var n = await se(e);
623
623
  return await WebAssembly.instantiate(n, t);
624
624
  } catch (e) {
625
- h(`failed to asynchronously prepare wasm: ${e}`), oe(e);
625
+ h(`failed to asynchronously prepare wasm: ${e}`), ae(e);
626
626
  }
627
627
  }
628
- async function ue(e, t, n) {
628
+ async function le(e, t, n) {
629
629
  if (!e && WebAssembly.instantiateStreaming) try {
630
630
  var r = fetch(t, { credentials: "same-origin" });
631
631
  return await WebAssembly.instantiateStreaming(r, n);
632
632
  } catch (e) {
633
633
  h(`wasm streaming compile failed: ${e}`), h("falling back to ArrayBuffer instantiation");
634
634
  }
635
- return le(t, n);
635
+ return ce(t, n);
636
636
  }
637
- function de() {
637
+ function ue() {
638
638
  return { a: $n };
639
639
  }
640
- async function fe() {
640
+ async function de() {
641
641
  function e(e, t) {
642
- return $ = e.exports, Qn($), v(), $;
642
+ return zr = e.exports, Qn(zr), y(), zr;
643
643
  }
644
644
  function t(t) {
645
645
  return e(t.instance);
646
646
  }
647
- var n = de();
647
+ var n = ue();
648
648
  return i.instantiateWasm ? new Promise((t, r) => {
649
649
  i.instantiateWasm(n, (n, r) => {
650
650
  t(e(n, r));
651
651
  });
652
- }) : (y != null || (y = se()), t(await ue(g, y, n)));
652
+ }) : (b != null || (b = oe()), t(await le(g, b, n)));
653
653
  }
654
- var x, S, C, pe, me, w, T, E, he = (e) => {
654
+ var S, C, w, fe, pe, T, E, D, me = (e) => {
655
655
  for (; e.length > 0;) e.shift()(i);
656
- }, ge = [], _e = (e) => ge.push(e), ve = [], ye = (e) => ve.push(e), D = (e) => Un(e), O = () => Wn(), k = [], A = 0, be = (e) => {
657
- var t = new Se(e);
658
- return t.get_caught() || (t.set_caught(!0), A--), t.set_rethrown(!1), k.push(t), Vn(e);
659
- }, j = 0, xe = () => {
660
- Q(0, 0);
661
- var e = k.pop();
662
- Gn(e.excPtr), j = 0;
656
+ }, he = [], ge = (e) => he.push(e), _e = [], ve = (e) => _e.push(e), O = (e) => Hn(e), k = () => Un(), A = [], j = 0, ye = (e) => {
657
+ var t = new xe(e);
658
+ return t.get_caught() || (t.set_caught(!0), j--), t.set_rethrown(!1), A.push(t), Bn(e);
659
+ }, M = 0, be = () => {
660
+ $(0, 0);
661
+ var e = A.pop();
662
+ Wn(e.excPtr), M = 0;
663
663
  };
664
- class Se {
664
+ class xe {
665
665
  constructor(e) {
666
666
  this.excPtr = e, this.ptr = e - 24;
667
667
  }
668
668
  set_type(e) {
669
- T[this.ptr + 4 >> 2] = e;
669
+ E[this.ptr + 4 >> 2] = e;
670
670
  }
671
671
  get_type() {
672
- return T[this.ptr + 4 >> 2];
672
+ return E[this.ptr + 4 >> 2];
673
673
  }
674
674
  set_destructor(e) {
675
- T[this.ptr + 8 >> 2] = e;
675
+ E[this.ptr + 8 >> 2] = e;
676
676
  }
677
677
  get_destructor() {
678
- return T[this.ptr + 8 >> 2];
678
+ return E[this.ptr + 8 >> 2];
679
679
  }
680
680
  set_caught(e) {
681
- e = e ? 1 : 0, C[this.ptr + 12] = e;
681
+ e = +!!e, w[this.ptr + 12] = e;
682
682
  }
683
683
  get_caught() {
684
- return C[this.ptr + 12] != 0;
684
+ return w[this.ptr + 12] != 0;
685
685
  }
686
686
  set_rethrown(e) {
687
- e = e ? 1 : 0, C[this.ptr + 13] = e;
687
+ e = +!!e, w[this.ptr + 13] = e;
688
688
  }
689
689
  get_rethrown() {
690
- return C[this.ptr + 13] != 0;
690
+ return w[this.ptr + 13] != 0;
691
691
  }
692
692
  init(e, t) {
693
693
  this.set_adjusted_ptr(0), this.set_type(e), this.set_destructor(t);
694
694
  }
695
695
  set_adjusted_ptr(e) {
696
- T[this.ptr + 16 >> 2] = e;
696
+ E[this.ptr + 16 >> 2] = e;
697
697
  }
698
698
  get_adjusted_ptr() {
699
- return T[this.ptr + 16 >> 2];
699
+ return E[this.ptr + 16 >> 2];
700
700
  }
701
701
  }
702
- var M = (e) => Hn(e), Ce = (e) => {
703
- var t = j;
704
- if (!t) return M(0), 0;
705
- var n = new Se(t);
702
+ var N = (e) => Vn(e), Se = (e) => {
703
+ var t = M;
704
+ if (!t) return N(0), 0;
705
+ var n = new xe(t);
706
706
  n.set_adjusted_ptr(t);
707
707
  var r = n.get_type();
708
- if (!r) return M(0), t;
708
+ if (!r) return N(0), t;
709
709
  for (var i of e) {
710
710
  if (i === 0 || i === r) break;
711
711
  var a = n.ptr + 16;
712
- if (qn(i, r, a)) return M(i), t;
712
+ if (Kn(i, r, a)) return N(i), t;
713
713
  }
714
- return M(r), t;
715
- }, we = () => Ce([]), Te = (e) => Ce([e]), Ee = (e, t) => Ce([e, t]), De = () => {
716
- var e = k.pop();
717
- e || oe("no exception to throw");
714
+ return N(r), t;
715
+ }, Ce = () => Se([]), we = (e) => Se([e]), Te = (e, t) => Se([e, t]), Ee = () => {
716
+ var e = A.pop();
717
+ e || ae("no exception to throw");
718
718
  var t = e.excPtr;
719
- throw e.get_rethrown() || (k.push(e), e.set_rethrown(!0), e.set_caught(!1), A++), Kn(t), j = t, j;
720
- }, Oe = (e, t, n) => {
721
- throw new Se(e).init(t, n), Kn(e), j = e, A++, j;
722
- }, ke = () => A, Ae = (e) => {
723
- throw j || (j = e), j;
724
- }, je = () => oe(""), N = {}, Me = (e) => {
719
+ throw e.get_rethrown() || (A.push(e), e.set_rethrown(!0), e.set_caught(!1), j++), Gn(t), M = t, M;
720
+ }, De = (e, t, n) => {
721
+ throw new xe(e).init(t, n), Gn(e), M = e, j++, M;
722
+ }, Oe = () => j, ke = (e) => {
723
+ throw M || (M = e), M;
724
+ }, Ae = () => ae(""), P = {}, je = (e) => {
725
725
  for (; e.length;) {
726
726
  var t = e.pop();
727
727
  e.pop()(t);
728
728
  }
729
729
  };
730
- function P(e) {
731
- return this.fromWireType(T[e >> 2]);
730
+ function F(e) {
731
+ return this.fromWireType(E[e >> 2]);
732
732
  }
733
- var F = {}, I = {}, L = {}, Ne = class extends Error {
733
+ var I = {}, L = {}, R = {}, Me = class extends Error {
734
734
  constructor(e) {
735
735
  super(e), this.name = "InternalError";
736
736
  }
737
- }, Pe = (e) => {
738
- throw new Ne(e);
739
- }, R = (e, t, n) => {
740
- e.forEach((e) => L[e] = t);
737
+ }, Ne = (e) => {
738
+ throw new Me(e);
739
+ }, z = (e, t, n) => {
740
+ e.forEach((e) => R[e] = t);
741
741
  function r(t) {
742
742
  var r = n(t);
743
- r.length !== e.length && Pe("Mismatched type converter count");
744
- for (var i = 0; i < e.length; ++i) H(e[i], r[i]);
743
+ r.length !== e.length && Ne("Mismatched type converter count");
744
+ for (var i = 0; i < e.length; ++i) U(e[i], r[i]);
745
745
  }
746
746
  var i = Array(t.length), a = [], o = 0;
747
747
  {
748
748
  let e = t;
749
749
  for (let t = 0; t < e.length; ++t) {
750
750
  let n = e[t];
751
- I.hasOwnProperty(n) ? i[t] = I[n] : (a.push(n), F.hasOwnProperty(n) || (F[n] = []), F[n].push(() => {
752
- i[t] = I[n], ++o, o === a.length && r(i);
751
+ L.hasOwnProperty(n) ? i[t] = L[n] : (a.push(n), I.hasOwnProperty(n) || (I[n] = []), I[n].push(() => {
752
+ i[t] = L[n], ++o, o === a.length && r(i);
753
753
  }));
754
754
  }
755
755
  }
756
756
  a.length === 0 && r(i);
757
- }, Fe = (e) => {
758
- var t = N[e];
759
- delete N[e];
757
+ }, Pe = (e) => {
758
+ var t = P[e];
759
+ delete P[e];
760
760
  var n = t.rawConstructor, r = t.rawDestructor, i = t.fields, a = i.map((e) => e.getterReturnType).concat(i.map((e) => e.setterArgumentType));
761
- R([e], a, (e) => {
761
+ z([e], a, (e) => {
762
762
  var a = {};
763
763
  {
764
764
  let t = i;
@@ -768,7 +768,7 @@ async function se(e = {}) {
768
768
  read: (e) => o.fromWireType(s(c, e)),
769
769
  write: (e, t) => {
770
770
  var n = [];
771
- u(d, e, l.toWireType(n, t)), Me(n);
771
+ u(d, e, l.toWireType(n, t)), je(n);
772
772
  },
773
773
  optional: o.optional
774
774
  };
@@ -787,40 +787,40 @@ async function se(e = {}) {
787
787
  for (i in a) a[i].write(o, t[i]);
788
788
  return e !== null && e.push(r, o), o;
789
789
  },
790
- readValueFromPointer: P,
790
+ readValueFromPointer: F,
791
791
  destructorFunction: r
792
792
  }];
793
793
  });
794
- }, Ie = (e, t, n, r, i) => {}, z = (e) => {
794
+ }, Fe = (e, t, n, r, i) => {}, B = (e) => {
795
795
  for (var t = "";;) {
796
- var n = E[e++];
796
+ var n = D[e++];
797
797
  if (!n) return t;
798
798
  t += String.fromCharCode(n);
799
799
  }
800
- }, B = class extends Error {
800
+ }, V = class extends Error {
801
801
  constructor(e) {
802
802
  super(e), this.name = "BindingError";
803
803
  }
804
- }, V = (e) => {
805
- throw new B(e);
804
+ }, H = (e) => {
805
+ throw new V(e);
806
806
  };
807
- function Le(e, t) {
807
+ function Ie(e, t) {
808
808
  let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
809
809
  var r = t.name;
810
- if (e || V(`type "${r}" must have a positive integer typeid pointer`), I.hasOwnProperty(e)) {
810
+ if (e || H(`type "${r}" must have a positive integer typeid pointer`), L.hasOwnProperty(e)) {
811
811
  if (n.ignoreDuplicateRegistrations) return;
812
- V(`Cannot register type '${r}' twice`);
812
+ H(`Cannot register type '${r}' twice`);
813
813
  }
814
- if (I[e] = t, delete L[e], F.hasOwnProperty(e)) {
815
- var i = F[e];
816
- delete F[e], i.forEach((e) => e());
814
+ if (L[e] = t, delete R[e], I.hasOwnProperty(e)) {
815
+ var i = I[e];
816
+ delete I[e], i.forEach((e) => e());
817
817
  }
818
818
  }
819
- function H(e, t) {
820
- return Le(e, t, arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {});
819
+ function U(e, t) {
820
+ return Ie(e, t, arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {});
821
821
  }
822
- var Re = (e, t, n, r) => {
823
- t = z(t), H(e, {
822
+ var Le = (e, t, n, r) => {
823
+ t = B(t), U(e, {
824
824
  name: t,
825
825
  fromWireType: function(e) {
826
826
  return !!e;
@@ -829,11 +829,11 @@ async function se(e = {}) {
829
829
  return t ? n : r;
830
830
  },
831
831
  readValueFromPointer: function(e) {
832
- return this.fromWireType(E[e]);
832
+ return this.fromWireType(D[e]);
833
833
  },
834
834
  destructorFunction: null
835
835
  });
836
- }, ze = (e) => ({
836
+ }, Re = (e) => ({
837
837
  count: e.count,
838
838
  deleteScheduled: e.deleteScheduled,
839
839
  preservePointerOnDelete: e.preservePointerOnDelete,
@@ -841,34 +841,34 @@ async function se(e = {}) {
841
841
  ptrType: e.ptrType,
842
842
  smartPtr: e.smartPtr,
843
843
  smartPtrType: e.smartPtrType
844
- }), Be = (e) => {
844
+ }), ze = (e) => {
845
845
  function t(e) {
846
846
  return e.$$.ptrType.registeredClass.name;
847
847
  }
848
- V(t(e) + " instance already deleted");
849
- }, Ve = !1, He = (e) => {}, Ue = (e) => {
848
+ H(t(e) + " instance already deleted");
849
+ }, Be = !1, Ve = (e) => {}, He = (e) => {
850
850
  e.smartPtr ? e.smartPtrType.rawDestructor(e.smartPtr) : e.ptrType.registeredClass.rawDestructor(e.ptr);
851
- }, We = (e) => {
852
- --e.count.value, e.count.value === 0 && Ue(e);
853
- }, U = (e) => globalThis.FinalizationRegistry ? (Ve = new FinalizationRegistry((e) => {
854
- We(e.$$);
855
- }), U = (e) => {
851
+ }, Ue = (e) => {
852
+ --e.count.value, e.count.value === 0 && He(e);
853
+ }, W = (e) => globalThis.FinalizationRegistry ? (Be = new FinalizationRegistry((e) => {
854
+ Ue(e.$$);
855
+ }), W = (e) => {
856
856
  var t = e.$$;
857
857
  if (t.smartPtr) {
858
858
  var n = { $$: t };
859
- Ve.register(e, n, e);
859
+ Be.register(e, n, e);
860
860
  }
861
861
  return e;
862
- }, He = (e) => Ve.unregister(e), U(e)) : (U = (e) => e, e), Ge = [], Ke = () => {
863
- for (; Ge.length;) {
864
- var e = Ge.pop();
862
+ }, Ve = (e) => Be.unregister(e), W(e)) : (W = (e) => e, e), We = [], Ge = () => {
863
+ for (; We.length;) {
864
+ var e = We.pop();
865
865
  e.$$.deleteScheduled = !1, e.delete();
866
866
  }
867
- }, qe, Je = () => {
868
- let e = Ye.prototype;
867
+ }, Ke, qe = () => {
868
+ let e = Je.prototype;
869
869
  Object.assign(e, {
870
870
  isAliasOf(e) {
871
- if (!(this instanceof Ye) || !(e instanceof Ye)) return !1;
871
+ if (!(this instanceof Je) || !(e instanceof Je)) return !1;
872
872
  var t = this.$$.ptrType.registeredClass, n = this.$$.ptr;
873
873
  e.$$ = e.$$;
874
874
  for (var r = e.$$.ptrType.registeredClass, i = e.$$.ptr; t.baseClass;) n = t.upcast(n), t = t.baseClass;
@@ -876,64 +876,64 @@ async function se(e = {}) {
876
876
  return t === r && n === i;
877
877
  },
878
878
  clone() {
879
- if (this.$$.ptr || Be(this), this.$$.preservePointerOnDelete) return this.$$.count.value += 1, this;
880
- var e = U(Object.create(Object.getPrototypeOf(this), { $$: { value: ze(this.$$) } }));
879
+ if (this.$$.ptr || ze(this), this.$$.preservePointerOnDelete) return this.$$.count.value += 1, this;
880
+ var e = W(Object.create(Object.getPrototypeOf(this), { $$: { value: Re(this.$$) } }));
881
881
  return e.$$.count.value += 1, e.$$.deleteScheduled = !1, e;
882
882
  },
883
883
  delete() {
884
- this.$$.ptr || Be(this), this.$$.deleteScheduled && !this.$$.preservePointerOnDelete && V("Object already scheduled for deletion"), He(this), We(this.$$), this.$$.preservePointerOnDelete || (this.$$.smartPtr = void 0, this.$$.ptr = void 0);
884
+ this.$$.ptr || ze(this), this.$$.deleteScheduled && !this.$$.preservePointerOnDelete && H("Object already scheduled for deletion"), Ve(this), Ue(this.$$), this.$$.preservePointerOnDelete || (this.$$.smartPtr = void 0, this.$$.ptr = void 0);
885
885
  },
886
886
  isDeleted() {
887
887
  return !this.$$.ptr;
888
888
  },
889
889
  deleteLater() {
890
- return this.$$.ptr || Be(this), this.$$.deleteScheduled && !this.$$.preservePointerOnDelete && V("Object already scheduled for deletion"), Ge.push(this), Ge.length === 1 && qe && qe(Ke), this.$$.deleteScheduled = !0, this;
890
+ return this.$$.ptr || ze(this), this.$$.deleteScheduled && !this.$$.preservePointerOnDelete && H("Object already scheduled for deletion"), We.push(this), We.length === 1 && Ke && Ke(Ge), this.$$.deleteScheduled = !0, this;
891
891
  }
892
892
  });
893
893
  let t = Symbol.dispose;
894
894
  t && (e[t] = e.delete);
895
895
  };
896
- function Ye() {}
897
- var Xe = (e, t) => Object.defineProperty(t, "name", { value: e }), Ze = {}, Qe = (e, t, n) => {
896
+ function Je() {}
897
+ var Ye = (e, t) => Object.defineProperty(t, "name", { value: e }), Xe = {}, Ze = (e, t, n) => {
898
898
  if (e[t].overloadTable === void 0) {
899
899
  var r = e[t];
900
900
  e[t] = function() {
901
901
  var r = [...arguments];
902
- return e[t].overloadTable.hasOwnProperty(r.length) || V(`Function '${n}' called with an invalid number of arguments (${r.length}) - expects one of (${e[t].overloadTable})!`), e[t].overloadTable[r.length].apply(this, r);
902
+ return e[t].overloadTable.hasOwnProperty(r.length) || H(`Function '${n}' called with an invalid number of arguments (${r.length}) - expects one of (${e[t].overloadTable})!`), e[t].overloadTable[r.length].apply(this, r);
903
903
  }, e[t].overloadTable = [], e[t].overloadTable[r.argCount] = r;
904
904
  }
905
- }, $e = (e, t, n) => {
906
- i.hasOwnProperty(e) ? ((n === void 0 || i[e].overloadTable !== void 0 && i[e].overloadTable[n] !== void 0) && V(`Cannot register public name '${e}' twice`), Qe(i, e, e), i[e].overloadTable.hasOwnProperty(n) && V(`Cannot register multiple overloads of a function with the same number of arguments (${n})!`), i[e].overloadTable[n] = t) : (i[e] = t, i[e].argCount = n);
907
- }, et = 48, tt = 57, nt = (e) => {
905
+ }, Qe = (e, t, n) => {
906
+ i.hasOwnProperty(e) ? ((n === void 0 || i[e].overloadTable !== void 0 && i[e].overloadTable[n] !== void 0) && H(`Cannot register public name '${e}' twice`), Ze(i, e, e), i[e].overloadTable.hasOwnProperty(n) && H(`Cannot register multiple overloads of a function with the same number of arguments (${n})!`), i[e].overloadTable[n] = t) : (i[e] = t, i[e].argCount = n);
907
+ }, $e = 48, et = 57, tt = (e) => {
908
908
  e = e.replace(/[^a-zA-Z0-9_]/g, "$");
909
909
  var t = e.charCodeAt(0);
910
- return t >= et && t <= tt ? `_${e}` : e;
910
+ return t >= $e && t <= et ? `_${e}` : e;
911
911
  };
912
- function rt(e, t, n, r, i, a, o, s) {
912
+ function nt(e, t, n, r, i, a, o, s) {
913
913
  this.name = e, this.constructor = t, this.instancePrototype = n, this.rawDestructor = r, this.baseClass = i, this.getActualType = a, this.upcast = o, this.downcast = s, this.pureVirtualFunctions = [];
914
914
  }
915
- var it = (e, t, n) => {
916
- for (; t !== n;) t.upcast || V(`Expected null or instance of ${n.name}, got an instance of ${t.name}`), e = t.upcast(e), t = t.baseClass;
915
+ var rt = (e, t, n) => {
916
+ for (; t !== n;) t.upcast || H(`Expected null or instance of ${n.name}, got an instance of ${t.name}`), e = t.upcast(e), t = t.baseClass;
917
917
  return e;
918
- }, at = (e) => {
918
+ }, it = (e) => {
919
919
  if (e === null) return "null";
920
920
  var t = typeof e;
921
921
  return t === "object" || t === "array" || t === "function" ? e.toString() : "" + e;
922
922
  };
923
- function ot(e, t) {
924
- if (t === null) return this.isReference && V(`null is not a valid ${this.name}`), 0;
925
- t.$$ || V(`Cannot pass "${at(t)}" as a ${this.name}`), t.$$.ptr || V(`Cannot pass deleted object as a pointer of type ${this.name}`);
923
+ function at(e, t) {
924
+ if (t === null) return this.isReference && H(`null is not a valid ${this.name}`), 0;
925
+ t.$$ || H(`Cannot pass "${it(t)}" as a ${this.name}`), t.$$.ptr || H(`Cannot pass deleted object as a pointer of type ${this.name}`);
926
926
  var n = t.$$.ptrType.registeredClass;
927
- return it(t.$$.ptr, n, this.registeredClass);
927
+ return rt(t.$$.ptr, n, this.registeredClass);
928
928
  }
929
- function st(e, t) {
929
+ function ot(e, t) {
930
930
  var n;
931
- if (t === null) return this.isReference && V(`null is not a valid ${this.name}`), this.isSmartPointer ? (n = this.rawConstructor(), e !== null && e.push(this.rawDestructor, n), n) : 0;
932
- (!t || !t.$$) && V(`Cannot pass "${at(t)}" as a ${this.name}`), t.$$.ptr || V(`Cannot pass deleted object as a pointer of type ${this.name}`), !this.isConst && t.$$.ptrType.isConst && V(`Cannot convert argument of type ${t.$$.smartPtrType ? t.$$.smartPtrType.name : t.$$.ptrType.name} to parameter type ${this.name}`);
931
+ if (t === null) return this.isReference && H(`null is not a valid ${this.name}`), this.isSmartPointer ? (n = this.rawConstructor(), e !== null && e.push(this.rawDestructor, n), n) : 0;
932
+ (!t || !t.$$) && H(`Cannot pass "${it(t)}" as a ${this.name}`), t.$$.ptr || H(`Cannot pass deleted object as a pointer of type ${this.name}`), !this.isConst && t.$$.ptrType.isConst && H(`Cannot convert argument of type ${t.$$.smartPtrType ? t.$$.smartPtrType.name : t.$$.ptrType.name} to parameter type ${this.name}`);
933
933
  var r = t.$$.ptrType.registeredClass;
934
- if (n = it(t.$$.ptr, r, this.registeredClass), this.isSmartPointer) switch (t.$$.smartPtr === void 0 && V("Passing raw pointer to smart pointer is illegal"), this.sharingPolicy) {
934
+ if (n = rt(t.$$.ptr, r, this.registeredClass), this.isSmartPointer) switch (t.$$.smartPtr === void 0 && H("Passing raw pointer to smart pointer is illegal"), this.sharingPolicy) {
935
935
  case 0:
936
- t.$$.smartPtrType === this ? n = t.$$.smartPtr : V(`Cannot convert argument of type ${t.$$.smartPtrType ? t.$$.smartPtrType.name : t.$$.ptrType.name} to parameter type ${this.name}`);
936
+ t.$$.smartPtrType === this ? n = t.$$.smartPtr : H(`Cannot convert argument of type ${t.$$.smartPtrType ? t.$$.smartPtrType.name : t.$$.ptrType.name} to parameter type ${this.name}`);
937
937
  break;
938
938
  case 1:
939
939
  n = t.$$.smartPtr;
@@ -942,66 +942,66 @@ async function se(e = {}) {
942
942
  if (t.$$.smartPtrType === this) n = t.$$.smartPtr;
943
943
  else {
944
944
  var i = t.clone();
945
- n = this.rawShare(n, J.toHandle(() => i.delete())), e !== null && e.push(this.rawDestructor, n);
945
+ n = this.rawShare(n, Y.toHandle(() => i.delete())), e !== null && e.push(this.rawDestructor, n);
946
946
  }
947
947
  break;
948
- default: V("Unsupported sharing policy");
948
+ default: H("Unsupported sharing policy");
949
949
  }
950
950
  return n;
951
951
  }
952
- function ct(e, t) {
953
- if (t === null) return this.isReference && V(`null is not a valid ${this.name}`), 0;
954
- t.$$ || V(`Cannot pass "${at(t)}" as a ${this.name}`), t.$$.ptr || V(`Cannot pass deleted object as a pointer of type ${this.name}`), t.$$.ptrType.isConst && V(`Cannot convert argument of type ${t.$$.ptrType.name} to parameter type ${this.name}`);
952
+ function st(e, t) {
953
+ if (t === null) return this.isReference && H(`null is not a valid ${this.name}`), 0;
954
+ t.$$ || H(`Cannot pass "${it(t)}" as a ${this.name}`), t.$$.ptr || H(`Cannot pass deleted object as a pointer of type ${this.name}`), t.$$.ptrType.isConst && H(`Cannot convert argument of type ${t.$$.ptrType.name} to parameter type ${this.name}`);
955
955
  var n = t.$$.ptrType.registeredClass;
956
- return it(t.$$.ptr, n, this.registeredClass);
956
+ return rt(t.$$.ptr, n, this.registeredClass);
957
957
  }
958
- var lt = (e, t, n) => {
958
+ var ct = (e, t, n) => {
959
959
  if (t === n) return e;
960
960
  if (n.baseClass === void 0) return null;
961
- var r = lt(e, t, n.baseClass);
961
+ var r = ct(e, t, n.baseClass);
962
962
  return r === null ? null : n.downcast(r);
963
- }, ut = {}, dt = (e, t) => {
964
- for (t === void 0 && V("ptr should not be undefined"); e.baseClass;) t = e.upcast(t), e = e.baseClass;
963
+ }, lt = {}, ut = (e, t) => {
964
+ for (t === void 0 && H("ptr should not be undefined"); e.baseClass;) t = e.upcast(t), e = e.baseClass;
965
965
  return t;
966
- }, ft = (e, t) => (t = dt(e, t), ut[t]), pt = (e, t) => ((!t.ptrType || !t.ptr) && Pe("makeClassHandle requires ptr and ptrType"), !!t.smartPtrType != !!t.smartPtr && Pe("Both smartPtrType and smartPtr must be specified"), t.count = { value: 1 }, U(Object.create(e, { $$: {
966
+ }, dt = (e, t) => (t = ut(e, t), lt[t]), ft = (e, t) => ((!t.ptrType || !t.ptr) && Ne("makeClassHandle requires ptr and ptrType"), !!t.smartPtrType != !!t.smartPtr && Ne("Both smartPtrType and smartPtr must be specified"), t.count = { value: 1 }, W(Object.create(e, { $$: {
967
967
  value: t,
968
968
  writable: !0
969
969
  } })));
970
- function mt(e) {
970
+ function pt(e) {
971
971
  var t = this.getPointee(e);
972
972
  if (!t) return this.destructor(e), null;
973
- var n = ft(this.registeredClass, t);
973
+ var n = dt(this.registeredClass, t);
974
974
  if (n !== void 0) {
975
975
  if (n.$$.count.value === 0) return n.$$.ptr = t, n.$$.smartPtr = e, n.clone();
976
976
  var r = n.clone();
977
977
  return this.destructor(e), r;
978
978
  }
979
979
  function i() {
980
- return this.isSmartPointer ? pt(this.registeredClass.instancePrototype, {
980
+ return this.isSmartPointer ? ft(this.registeredClass.instancePrototype, {
981
981
  ptrType: this.pointeeType,
982
982
  ptr: t,
983
983
  smartPtrType: this,
984
984
  smartPtr: e
985
- }) : pt(this.registeredClass.instancePrototype, {
985
+ }) : ft(this.registeredClass.instancePrototype, {
986
986
  ptrType: this,
987
987
  ptr: e
988
988
  });
989
989
  }
990
- var a = Ze[this.registeredClass.getActualType(t)];
990
+ var a = Xe[this.registeredClass.getActualType(t)];
991
991
  if (!a) return i.call(this);
992
- var o = this.isConst ? a.constPointerType : a.pointerType, s = lt(t, this.registeredClass, o.registeredClass);
993
- return s === null ? i.call(this) : this.isSmartPointer ? pt(o.registeredClass.instancePrototype, {
992
+ var o = this.isConst ? a.constPointerType : a.pointerType, s = ct(t, this.registeredClass, o.registeredClass);
993
+ return s === null ? i.call(this) : this.isSmartPointer ? ft(o.registeredClass.instancePrototype, {
994
994
  ptrType: o,
995
995
  ptr: s,
996
996
  smartPtrType: this,
997
997
  smartPtr: e
998
- }) : pt(o.registeredClass.instancePrototype, {
998
+ }) : ft(o.registeredClass.instancePrototype, {
999
999
  ptrType: o,
1000
1000
  ptr: s
1001
1001
  });
1002
1002
  }
1003
- var ht = () => {
1004
- Object.assign(gt.prototype, {
1003
+ var mt = () => {
1004
+ Object.assign(ht.prototype, {
1005
1005
  getPointee(e) {
1006
1006
  return this.rawGetPointee && (e = this.rawGetPointee(e)), e;
1007
1007
  },
@@ -1009,115 +1009,115 @@ async function se(e = {}) {
1009
1009
  var t;
1010
1010
  (t = this.rawDestructor) == null || t.call(this, e);
1011
1011
  },
1012
- readValueFromPointer: P,
1013
- fromWireType: mt
1012
+ readValueFromPointer: F,
1013
+ fromWireType: pt
1014
1014
  });
1015
1015
  };
1016
- function gt(e, t, n, r, i, a, o, s, c, l, u) {
1017
- this.name = e, this.registeredClass = t, this.isReference = n, this.isConst = r, this.isSmartPointer = i, this.pointeeType = a, this.sharingPolicy = o, this.rawGetPointee = s, this.rawConstructor = c, this.rawShare = l, this.rawDestructor = u, !i && t.baseClass === void 0 ? r ? (this.toWireType = ot, this.destructorFunction = null) : (this.toWireType = ct, this.destructorFunction = null) : this.toWireType = st;
1016
+ function ht(e, t, n, r, i, a, o, s, c, l, u) {
1017
+ this.name = e, this.registeredClass = t, this.isReference = n, this.isConst = r, this.isSmartPointer = i, this.pointeeType = a, this.sharingPolicy = o, this.rawGetPointee = s, this.rawConstructor = c, this.rawShare = l, this.rawDestructor = u, !i && t.baseClass === void 0 ? r ? (this.toWireType = at, this.destructorFunction = null) : (this.toWireType = st, this.destructorFunction = null) : this.toWireType = ot;
1018
1018
  }
1019
- var _t = (e, t, n) => {
1020
- i.hasOwnProperty(e) || Pe("Replacing nonexistent public symbol"), i[e].overloadTable !== void 0 && n !== void 0 ? i[e].overloadTable[n] = t : (i[e] = t, i[e].argCount = n);
1021
- }, W = {}, vt = (e, t, n) => {
1019
+ var gt = (e, t, n) => {
1020
+ i.hasOwnProperty(e) || Ne("Replacing nonexistent public symbol"), i[e].overloadTable !== void 0 && n !== void 0 ? i[e].overloadTable[n] = t : (i[e] = t, i[e].argCount = n);
1021
+ }, G = {}, _t = (e, t, n) => {
1022
1022
  e = e.replace(/p/g, "i");
1023
- var r = W[e];
1023
+ var r = G[e];
1024
1024
  return r(t, ...n);
1025
- }, yt = [], G = (e) => {
1026
- var t = yt[e];
1027
- return t || (yt[e] = t = Zn.get(e)), t;
1028
- }, bt = function(e, t) {
1025
+ }, vt = [], K = (e) => {
1026
+ var t = vt[e];
1027
+ return t || (vt[e] = t = Zn.get(e)), t;
1028
+ }, yt = function(e, t) {
1029
1029
  let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];
1030
- if (arguments.length > 3 && arguments[3] !== void 0 && arguments[3], e.includes("j")) return vt(e, t, n);
1031
- var r = G(t)(...n);
1030
+ if (arguments.length > 3 && arguments[3] !== void 0 && arguments[3], e.includes("j")) return _t(e, t, n);
1031
+ var r = K(t)(...n);
1032
1032
  function i(e) {
1033
1033
  return e;
1034
1034
  }
1035
1035
  return i(r);
1036
- }, xt = function(e, t) {
1036
+ }, bt = function(e, t) {
1037
1037
  let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
1038
1038
  return function() {
1039
- return bt(e, t, [...arguments], n);
1039
+ return yt(e, t, [...arguments], n);
1040
1040
  };
1041
- }, K = function(e, t) {
1042
- arguments.length > 2 && arguments[2] !== void 0 && arguments[2], e = z(e);
1041
+ }, q = function(e, t) {
1042
+ arguments.length > 2 && arguments[2] !== void 0 && arguments[2], e = B(e);
1043
1043
  function n() {
1044
- return e.includes("j") ? xt(e, t) : G(t);
1044
+ return e.includes("j") ? bt(e, t) : K(t);
1045
1045
  }
1046
1046
  var r = n();
1047
- return typeof r != "function" && V(`unknown function pointer with signature ${e}: ${t}`), r;
1047
+ return typeof r != "function" && H(`unknown function pointer with signature ${e}: ${t}`), r;
1048
1048
  };
1049
- class St extends Error {}
1050
- var Ct = (e) => {
1051
- var t = zn(e), n = z(t);
1052
- return Z(t), n;
1053
- }, wt = (e, t) => {
1049
+ class xt extends Error {}
1050
+ var St = (e) => {
1051
+ var t = Rn(e), n = B(t);
1052
+ return Q(t), n;
1053
+ }, Ct = (e, t) => {
1054
1054
  var n = [], r = {};
1055
1055
  function i(e) {
1056
- if (!r[e] && !I[e]) {
1057
- if (L[e]) {
1058
- L[e].forEach(i);
1056
+ if (!r[e] && !L[e]) {
1057
+ if (R[e]) {
1058
+ R[e].forEach(i);
1059
1059
  return;
1060
1060
  }
1061
1061
  n.push(e), r[e] = !0;
1062
1062
  }
1063
1063
  }
1064
- throw t.forEach(i), new St(`${e}: ` + n.map(Ct).join([", "]));
1065
- }, Tt = (e, t, n, r, i, a, o, s, c, l, u, d, f) => {
1066
- u = z(u), a = K(i, a), s && (s = K(o, s)), l && (l = K(c, l)), f = K(d, f);
1067
- var p = nt(u);
1068
- $e(p, function() {
1069
- wt(`Cannot construct ${u} due to unbound types`, [r]);
1070
- }), R([
1064
+ throw t.forEach(i), new xt(`${e}: ` + n.map(St).join([", "]));
1065
+ }, wt = (e, t, n, r, i, a, o, s, c, l, u, d, f) => {
1066
+ u = B(u), a = q(i, a), s && (s = q(o, s)), l && (l = q(c, l)), f = q(d, f);
1067
+ var p = tt(u);
1068
+ Qe(p, function() {
1069
+ Ct(`Cannot construct ${u} due to unbound types`, [r]);
1070
+ }), z([
1071
1071
  e,
1072
1072
  t,
1073
1073
  n
1074
1074
  ], r ? [r] : [], (t) => {
1075
1075
  t = t[0];
1076
1076
  var n, i;
1077
- r ? (n = t.registeredClass, i = n.instancePrototype) : i = Ye.prototype;
1078
- var o = Xe(u, function() {
1079
- if (Object.getPrototypeOf(this) !== c) throw new B(`Use 'new' to construct ${u}`);
1080
- if (d.constructor_body === void 0) throw new B(`${u} has no accessible constructor`);
1077
+ r ? (n = t.registeredClass, i = n.instancePrototype) : i = Je.prototype;
1078
+ var o = Ye(u, function() {
1079
+ if (Object.getPrototypeOf(this) !== c) throw new V(`Use 'new' to construct ${u}`);
1080
+ if (d.constructor_body === void 0) throw new V(`${u} has no accessible constructor`);
1081
1081
  var e = [...arguments], t = d.constructor_body[e.length];
1082
- if (t === void 0) throw new B(`Tried to invoke ctor of ${u} with invalid number of parameters (${e.length}) - expected (${Object.keys(d.constructor_body).toString()}) parameters instead!`);
1082
+ if (t === void 0) throw new V(`Tried to invoke ctor of ${u} with invalid number of parameters (${e.length}) - expected (${Object.keys(d.constructor_body).toString()}) parameters instead!`);
1083
1083
  return t.apply(this, e);
1084
1084
  }), c = Object.create(i, { constructor: { value: o } });
1085
1085
  o.prototype = c;
1086
- var d = new rt(u, o, c, f, n, a, s, l);
1086
+ var d = new nt(u, o, c, f, n, a, s, l);
1087
1087
  if (d.baseClass) {
1088
1088
  var m;
1089
1089
  (m = d.baseClass).__derivedClasses != null || (m.__derivedClasses = []), d.baseClass.__derivedClasses.push(d);
1090
1090
  }
1091
- var h = new gt(u, d, !0, !1, !1), g = new gt(u + "*", d, !1, !1, !1), _ = new gt(u + " const*", d, !1, !0, !1);
1092
- return Ze[e] = {
1091
+ var h = new ht(u, d, !0, !1, !1), g = new ht(u + "*", d, !1, !1, !1), _ = new ht(u + " const*", d, !1, !0, !1);
1092
+ return Xe[e] = {
1093
1093
  pointerType: g,
1094
1094
  constPointerType: _
1095
- }, _t(p, o), [
1095
+ }, gt(p, o), [
1096
1096
  h,
1097
1097
  g,
1098
1098
  _
1099
1099
  ];
1100
1100
  });
1101
- }, Et = (e, t) => {
1102
- for (var n = [], r = 0; r < e; r++) n.push(T[t + r * 4 >> 2]);
1101
+ }, Tt = (e, t) => {
1102
+ for (var n = [], r = 0; r < e; r++) n.push(E[t + r * 4 >> 2]);
1103
1103
  return n;
1104
1104
  };
1105
- function Dt(e) {
1105
+ function Et(e) {
1106
1106
  for (var t = 1; t < e.length; ++t) if (e[t] !== null && e[t].destructorFunction === void 0) return !0;
1107
1107
  return !1;
1108
1108
  }
1109
- function Ot(e, t, n, r, i, a) {
1109
+ function Dt(e, t, n, r, i, a) {
1110
1110
  var o = t.length;
1111
- o < 2 && V("argTypes array size mismatch! Must at least get return value and 'this' types!");
1112
- var s = t[1] !== null && n !== null, c = Dt(t), l = !t[0].isVoid, u = o - 2, d = Array(u), f = [], p = [];
1113
- return Xe(e, function() {
1111
+ o < 2 && H("argTypes array size mismatch! Must at least get return value and 'this' types!");
1112
+ var s = t[1] !== null && n !== null, c = Et(t), l = !t[0].isVoid, u = o - 2, d = Array(u), f = [], p = [];
1113
+ return Ye(e, function() {
1114
1114
  p.length = 0;
1115
1115
  var e;
1116
1116
  f.length = s ? 2 : 1, f[0] = i, s && (e = t[1].toWireType(p, this), f[1] = e);
1117
1117
  for (var n = 0; n < u; ++n) d[n] = t[n + 2].toWireType(p, n < 0 || arguments.length <= n ? void 0 : arguments[n]), f.push(d[n]);
1118
1118
  var a = r(...f);
1119
1119
  function o(n) {
1120
- if (c) Me(p);
1120
+ if (c) je(p);
1121
1121
  else for (var r = s ? 1 : 2; r < t.length; r++) {
1122
1122
  var i = r === 1 ? e : d[r - 2];
1123
1123
  t[r].destructorFunction !== null && t[r].destructorFunction(i);
@@ -1127,36 +1127,36 @@ async function se(e = {}) {
1127
1127
  return o(a);
1128
1128
  });
1129
1129
  }
1130
- var kt = (e, t, n, r, i, a) => {
1131
- var o = Et(t, n);
1132
- i = K(r, i), R([], [e], (e) => {
1130
+ var Ot = (e, t, n, r, i, a) => {
1131
+ var o = Tt(t, n);
1132
+ i = q(r, i), z([], [e], (e) => {
1133
1133
  e = e[0];
1134
1134
  var n = `constructor ${e.name}`;
1135
- if (e.registeredClass.constructor_body === void 0 && (e.registeredClass.constructor_body = []), e.registeredClass.constructor_body[t - 1] !== void 0) throw new B(`Cannot register multiple constructors with identical number of parameters (${t - 1}) for class '${e.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);
1135
+ if (e.registeredClass.constructor_body === void 0 && (e.registeredClass.constructor_body = []), e.registeredClass.constructor_body[t - 1] !== void 0) throw new V(`Cannot register multiple constructors with identical number of parameters (${t - 1}) for class '${e.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);
1136
1136
  return e.registeredClass.constructor_body[t - 1] = () => {
1137
- wt(`Cannot construct ${e.name} due to unbound types`, o);
1138
- }, R([], o, (r) => (r.splice(1, 0, null), e.registeredClass.constructor_body[t - 1] = Ot(n, r, null, i, a), [])), [];
1137
+ Ct(`Cannot construct ${e.name} due to unbound types`, o);
1138
+ }, z([], o, (r) => (r.splice(1, 0, null), e.registeredClass.constructor_body[t - 1] = Dt(n, r, null, i, a), [])), [];
1139
1139
  });
1140
- }, At = (e) => {
1140
+ }, kt = (e) => {
1141
1141
  e = e.trim();
1142
1142
  let t = e.indexOf("(");
1143
1143
  return t === -1 ? e : e.slice(0, t);
1144
- }, jt = (e, t, n, r, i, a, o, s, c, l) => {
1145
- var u = Et(n, r);
1146
- t = z(t), t = At(t), a = K(i, a, c), R([], [e], (e) => {
1144
+ }, At = (e, t, n, r, i, a, o, s, c, l) => {
1145
+ var u = Tt(n, r);
1146
+ t = B(t), t = kt(t), a = q(i, a, c), z([], [e], (e) => {
1147
1147
  e = e[0];
1148
1148
  var r = `${e.name}.${t}`;
1149
1149
  t.startsWith("@@") && (t = Symbol[t.substring(2)]), s && e.registeredClass.pureVirtualFunctions.push(t);
1150
1150
  function i() {
1151
- wt(`Cannot call ${r} due to unbound types`, u);
1151
+ Ct(`Cannot call ${r} due to unbound types`, u);
1152
1152
  }
1153
1153
  var l = e.registeredClass.instancePrototype, d = l[t];
1154
- return d === void 0 || d.overloadTable === void 0 && d.className !== e.name && d.argCount === n - 2 ? (i.argCount = n - 2, i.className = e.name, l[t] = i) : (Qe(l, t, r), l[t].overloadTable[n - 2] = i), R([], u, (i) => {
1155
- var s = Ot(r, i, e, a, o, c);
1154
+ return d === void 0 || d.overloadTable === void 0 && d.className !== e.name && d.argCount === n - 2 ? (i.argCount = n - 2, i.className = e.name, l[t] = i) : (Ze(l, t, r), l[t].overloadTable[n - 2] = i), z([], u, (i) => {
1155
+ var s = Dt(r, i, e, a, o, c);
1156
1156
  return l[t].overloadTable === void 0 ? (s.argCount = n - 2, l[t] = s) : l[t].overloadTable[n - 2] = s, [];
1157
1157
  }), [];
1158
1158
  });
1159
- }, Mt = [], q = [
1159
+ }, jt = [], J = [
1160
1160
  0,
1161
1161
  1,
1162
1162
  ,
@@ -1167,10 +1167,10 @@ async function se(e = {}) {
1167
1167
  1,
1168
1168
  !1,
1169
1169
  1
1170
- ], Nt = (e) => {
1171
- e > 9 && --q[e + 1] === 0 && (q[e] = void 0, Mt.push(e));
1172
- }, J = {
1173
- toValue: (e) => (e || V(`Cannot use deleted val. handle = ${e}`), q[e]),
1170
+ ], Mt = (e) => {
1171
+ e > 9 && --J[e + 1] === 0 && (J[e] = void 0, jt.push(e));
1172
+ }, Y = {
1173
+ toValue: (e) => (e || H(`Cannot use deleted val. handle = ${e}`), J[e]),
1174
1174
  toHandle: (e) => {
1175
1175
  switch (e) {
1176
1176
  case void 0: return 2;
@@ -1178,68 +1178,68 @@ async function se(e = {}) {
1178
1178
  case !0: return 6;
1179
1179
  case !1: return 8;
1180
1180
  default: {
1181
- let t = Mt.pop() || q.length;
1182
- return q[t] = e, q[t + 1] = 1, t;
1181
+ let t = jt.pop() || J.length;
1182
+ return J[t] = e, J[t + 1] = 1, t;
1183
1183
  }
1184
1184
  }
1185
1185
  }
1186
- }, Pt = {
1186
+ }, Nt = {
1187
1187
  name: "emscripten::val",
1188
1188
  fromWireType: (e) => {
1189
- var t = J.toValue(e);
1190
- return Nt(e), t;
1189
+ var t = Y.toValue(e);
1190
+ return Mt(e), t;
1191
1191
  },
1192
- toWireType: (e, t) => J.toHandle(t),
1193
- readValueFromPointer: P,
1192
+ toWireType: (e, t) => Y.toHandle(t),
1193
+ readValueFromPointer: F,
1194
1194
  destructorFunction: null
1195
- }, Ft = (e) => H(e, Pt), It = (e, t) => {
1195
+ }, Pt = (e) => U(e, Nt), Ft = (e, t) => {
1196
1196
  switch (t) {
1197
1197
  case 4: return function(e) {
1198
- return this.fromWireType(pe[e >> 2]);
1198
+ return this.fromWireType(fe[e >> 2]);
1199
1199
  };
1200
1200
  case 8: return function(e) {
1201
- return this.fromWireType(me[e >> 3]);
1201
+ return this.fromWireType(pe[e >> 3]);
1202
1202
  };
1203
1203
  default: throw TypeError(`invalid float width (${t}): ${e}`);
1204
1204
  }
1205
- }, Lt = (e, t, n) => {
1206
- t = z(t), H(e, {
1205
+ }, It = (e, t, n) => {
1206
+ t = B(t), U(e, {
1207
1207
  name: t,
1208
1208
  fromWireType: (e) => e,
1209
1209
  toWireType: (e, t) => t,
1210
- readValueFromPointer: It(t, n),
1210
+ readValueFromPointer: Ft(t, n),
1211
1211
  destructorFunction: null
1212
1212
  });
1213
- }, Rt = (e, t, n, r, i, a, o, s) => {
1214
- var c = Et(t, n);
1215
- e = z(e), e = At(e), i = K(r, i, o), $e(e, function() {
1216
- wt(`Cannot call ${e} due to unbound types`, c);
1217
- }, t - 1), R([], c, (n) => {
1213
+ }, Lt = (e, t, n, r, i, a, o, s) => {
1214
+ var c = Tt(t, n);
1215
+ e = B(e), e = kt(e), i = q(r, i, o), Qe(e, function() {
1216
+ Ct(`Cannot call ${e} due to unbound types`, c);
1217
+ }, t - 1), z([], c, (n) => {
1218
1218
  var r = [n[0], null].concat(n.slice(1));
1219
- return _t(e, Ot(e, r, null, i, a, o), t - 1), [];
1219
+ return gt(e, Dt(e, r, null, i, a, o), t - 1), [];
1220
1220
  });
1221
- }, zt = (e, t, n) => {
1221
+ }, Rt = (e, t, n) => {
1222
1222
  switch (t) {
1223
- case 1: return n ? (e) => C[e] : (e) => E[e];
1224
- case 2: return n ? (e) => x[e >> 1] : (e) => w[e >> 1];
1225
- case 4: return n ? (e) => S[e >> 2] : (e) => T[e >> 2];
1223
+ case 1: return n ? (e) => w[e] : (e) => D[e];
1224
+ case 2: return n ? (e) => S[e >> 1] : (e) => T[e >> 1];
1225
+ case 4: return n ? (e) => C[e >> 2] : (e) => E[e >> 2];
1226
1226
  default: throw TypeError(`invalid integer width (${t}): ${e}`);
1227
1227
  }
1228
- }, Bt = (e, t, n, r, i) => {
1229
- t = z(t);
1228
+ }, zt = (e, t, n, r, i) => {
1229
+ t = B(t);
1230
1230
  let a = r === 0, o = (e) => e;
1231
1231
  if (a) {
1232
1232
  var s = 32 - 8 * n;
1233
1233
  o = (e) => e << s >>> s, i = o(i);
1234
1234
  }
1235
- H(e, {
1235
+ U(e, {
1236
1236
  name: t,
1237
1237
  fromWireType: o,
1238
1238
  toWireType: (e, t) => t,
1239
- readValueFromPointer: zt(t, n, r !== 0),
1239
+ readValueFromPointer: Rt(t, n, r !== 0),
1240
1240
  destructorFunction: null
1241
1241
  });
1242
- }, Vt = (e, t, n) => {
1242
+ }, Bt = (e, t, n) => {
1243
1243
  let r = (e, t) => {
1244
1244
  let n = 0;
1245
1245
  return {
@@ -1259,12 +1259,12 @@ async function se(e = {}) {
1259
1259
  e[Symbol.iterator] || (e[Symbol.iterator] = function() {
1260
1260
  return r(this[t](), (e) => this[n](e));
1261
1261
  });
1262
- }, Ht = (e, t, n, r) => {
1263
- n = z(n), r = z(r), R([], [e, t], (e) => {
1262
+ }, Vt = (e, t, n, r) => {
1263
+ n = B(n), r = B(r), z([], [e, t], (e) => {
1264
1264
  let t = e[0];
1265
- return Vt(t.registeredClass.instancePrototype, n, r), [];
1265
+ return Bt(t.registeredClass.instancePrototype, n, r), [];
1266
1266
  });
1267
- }, Ut = (e, t, n) => {
1267
+ }, Ht = (e, t, n) => {
1268
1268
  var r = [
1269
1269
  Int8Array,
1270
1270
  Uint8Array,
@@ -1276,17 +1276,17 @@ async function se(e = {}) {
1276
1276
  Float64Array
1277
1277
  ][t];
1278
1278
  function i(e) {
1279
- var t = T[e >> 2], n = T[e + 4 >> 2];
1280
- return new r(C.buffer, n, t);
1279
+ var t = E[e >> 2], n = E[e + 4 >> 2];
1280
+ return new r(w.buffer, n, t);
1281
1281
  }
1282
- n = z(n), H(e, {
1282
+ n = B(n), U(e, {
1283
1283
  name: n,
1284
1284
  fromWireType: i,
1285
1285
  readValueFromPointer: i
1286
1286
  }, { ignoreDuplicateRegistrations: !0 });
1287
- }, Wt = Object.assign({ optional: !0 }, Pt), Gt = (e, t) => {
1288
- H(e, Wt);
1289
- }, Kt = (e, t, n, r) => {
1287
+ }, Ut = Object.assign({ optional: !0 }, Nt), Wt = (e, t) => {
1288
+ U(e, Ut);
1289
+ }, Gt = (e, t, n, r) => {
1290
1290
  if (!(r > 0)) return 0;
1291
1291
  for (var i = n, a = n + r - 1, o = 0; o < e.length; ++o) {
1292
1292
  var s = e.codePointAt(o);
@@ -1305,21 +1305,21 @@ async function se(e = {}) {
1305
1305
  }
1306
1306
  }
1307
1307
  return t[n] = 0, n - i;
1308
- }, Y = (e, t, n) => Kt(e, E, t, n), qt = (e) => {
1308
+ }, X = (e, t, n) => Gt(e, D, t, n), Kt = (e) => {
1309
1309
  for (var t = 0, n = 0; n < e.length; ++n) {
1310
1310
  var r = e.charCodeAt(n);
1311
1311
  r <= 127 ? t++ : r <= 2047 ? t += 2 : r >= 55296 && r <= 57343 ? (t += 4, ++n) : t += 3;
1312
1312
  }
1313
1313
  return t;
1314
- }, Jt = globalThis.TextDecoder && new TextDecoder(), Yt = (e, t, n, r) => {
1314
+ }, qt = globalThis.TextDecoder && new TextDecoder(), Jt = (e, t, n, r) => {
1315
1315
  var i = t + n;
1316
1316
  if (r) return i;
1317
1317
  for (; e[t] && !(t >= i);) ++t;
1318
1318
  return t;
1319
- }, Xt = function(e) {
1319
+ }, Yt = function(e) {
1320
1320
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, n = arguments.length > 2 ? arguments[2] : void 0, r = arguments.length > 3 ? arguments[3] : void 0;
1321
- var i = Yt(e, t, n, r);
1322
- if (i - t > 16 && e.buffer && Jt) return Jt.decode(e.subarray(t, i));
1321
+ var i = Jt(e, t, n, r);
1322
+ if (i - t > 16 && e.buffer && qt) return qt.decode(e.subarray(t, i));
1323
1323
  for (var a = ""; t < i;) {
1324
1324
  var o = e[t++];
1325
1325
  if (!(o & 128)) {
@@ -1339,181 +1339,181 @@ async function se(e = {}) {
1339
1339
  }
1340
1340
  }
1341
1341
  return a;
1342
- }, Zt = (e, t, n) => e ? Xt(E, e, t, n) : "", Qt = (e, t) => {
1343
- t = z(t);
1342
+ }, Xt = (e, t, n) => e ? Yt(D, e, t, n) : "", Zt = (e, t) => {
1343
+ t = B(t);
1344
1344
  var n = !0;
1345
- H(e, {
1345
+ U(e, {
1346
1346
  name: t,
1347
1347
  fromWireType(e) {
1348
- var t = T[e >> 2], r = e + 4, i;
1349
- if (n) i = Zt(r, t, !0);
1348
+ var t = E[e >> 2], r = e + 4, i;
1349
+ if (n) i = Xt(r, t, !0);
1350
1350
  else {
1351
1351
  i = "";
1352
- for (var a = 0; a < t; ++a) i += String.fromCharCode(E[r + a]);
1352
+ for (var a = 0; a < t; ++a) i += String.fromCharCode(D[r + a]);
1353
1353
  }
1354
- return Z(e), i;
1354
+ return Q(e), i;
1355
1355
  },
1356
1356
  toWireType(e, t) {
1357
1357
  t instanceof ArrayBuffer && (t = new Uint8Array(t));
1358
1358
  var r, i = typeof t == "string";
1359
- i || ArrayBuffer.isView(t) && t.BYTES_PER_ELEMENT == 1 || V("Cannot pass non-string to std::string"), r = n && i ? qt(t) : t.length;
1360
- var a = Bn(4 + r + 1), o = a + 4;
1361
- if (T[a >> 2] = r, i) if (n) Y(t, o, r + 1);
1359
+ i || ArrayBuffer.isView(t) && t.BYTES_PER_ELEMENT == 1 || H("Cannot pass non-string to std::string"), r = n && i ? Kt(t) : t.length;
1360
+ var a = zn(4 + r + 1), o = a + 4;
1361
+ if (E[a >> 2] = r, i) if (n) X(t, o, r + 1);
1362
1362
  else for (var s = 0; s < r; ++s) {
1363
1363
  var c = t.charCodeAt(s);
1364
- c > 255 && (Z(a), V("String has UTF-16 code units that do not fit in 8 bits")), E[o + s] = c;
1364
+ c > 255 && (Q(a), H("String has UTF-16 code units that do not fit in 8 bits")), D[o + s] = c;
1365
1365
  }
1366
- else E.set(t, o);
1367
- return e !== null && e.push(Z, a), a;
1366
+ else D.set(t, o);
1367
+ return e !== null && e.push(Q, a), a;
1368
1368
  },
1369
- readValueFromPointer: P,
1369
+ readValueFromPointer: F,
1370
1370
  destructorFunction(e) {
1371
- Z(e);
1371
+ Q(e);
1372
1372
  }
1373
1373
  });
1374
- }, $t = globalThis.TextDecoder ? new TextDecoder("utf-16le") : void 0, en = (e, t, n) => {
1375
- var r = e >> 1, i = Yt(w, r, t / 2, n);
1376
- if (i - r > 16 && $t) return $t.decode(w.subarray(r, i));
1374
+ }, Qt = globalThis.TextDecoder ? new TextDecoder("utf-16le") : void 0, $t = (e, t, n) => {
1375
+ var r = e >> 1, i = Jt(T, r, t / 2, n);
1376
+ if (i - r > 16 && Qt) return Qt.decode(T.subarray(r, i));
1377
1377
  for (var a = "", o = r; o < i; ++o) {
1378
- var s = w[o];
1378
+ var s = T[o];
1379
1379
  a += String.fromCharCode(s);
1380
1380
  }
1381
1381
  return a;
1382
- }, tn = (e, t, n) => {
1382
+ }, en = (e, t, n) => {
1383
1383
  if (n != null || (n = 2147483647), n < 2) return 0;
1384
1384
  n -= 2;
1385
1385
  for (var r = t, i = n < e.length * 2 ? n / 2 : e.length, a = 0; a < i; ++a) {
1386
1386
  var o = e.charCodeAt(a);
1387
- x[t >> 1] = o, t += 2;
1387
+ S[t >> 1] = o, t += 2;
1388
1388
  }
1389
- return x[t >> 1] = 0, t - r;
1390
- }, nn = (e) => e.length * 2, rn = (e, t, n) => {
1389
+ return S[t >> 1] = 0, t - r;
1390
+ }, tn = (e) => e.length * 2, nn = (e, t, n) => {
1391
1391
  for (var r = "", i = e >> 2, a = 0; !(a >= t / 4); a++) {
1392
- var o = T[i + a];
1392
+ var o = E[i + a];
1393
1393
  if (!o && !n) break;
1394
1394
  r += String.fromCodePoint(o);
1395
1395
  }
1396
1396
  return r;
1397
- }, an = (e, t, n) => {
1397
+ }, rn = (e, t, n) => {
1398
1398
  if (n != null || (n = 2147483647), n < 4) return 0;
1399
1399
  for (var r = t, i = r + n - 4, a = 0; a < e.length; ++a) {
1400
1400
  var o = e.codePointAt(a);
1401
- if (o > 65535 && a++, S[t >> 2] = o, t += 4, t + 4 > i) break;
1401
+ if (o > 65535 && a++, C[t >> 2] = o, t += 4, t + 4 > i) break;
1402
1402
  }
1403
- return S[t >> 2] = 0, t - r;
1404
- }, on = (e) => {
1403
+ return C[t >> 2] = 0, t - r;
1404
+ }, an = (e) => {
1405
1405
  for (var t = 0, n = 0; n < e.length; ++n) e.codePointAt(n) > 65535 && n++, t += 4;
1406
1406
  return t;
1407
- }, sn = (e, t, n) => {
1408
- n = z(n);
1407
+ }, on = (e, t, n) => {
1408
+ n = B(n);
1409
1409
  var r, i, a;
1410
- t === 2 ? (r = en, i = tn, a = nn) : (r = rn, i = an, a = on), H(e, {
1410
+ t === 2 ? (r = $t, i = en, a = tn) : (r = nn, i = rn, a = an), U(e, {
1411
1411
  name: n,
1412
1412
  fromWireType: (e) => {
1413
- var n = T[e >> 2], i = r(e + 4, n * t, !0);
1414
- return Z(e), i;
1413
+ var n = E[e >> 2], i = r(e + 4, n * t, !0);
1414
+ return Q(e), i;
1415
1415
  },
1416
1416
  toWireType: (e, r) => {
1417
- typeof r != "string" && V(`Cannot pass non-string to C++ string type ${n}`);
1418
- var o = a(r), s = Bn(4 + o + t);
1419
- return T[s >> 2] = o / t, i(r, s + 4, o + t), e !== null && e.push(Z, s), s;
1417
+ typeof r != "string" && H(`Cannot pass non-string to C++ string type ${n}`);
1418
+ var o = a(r), s = zn(4 + o + t);
1419
+ return E[s >> 2] = o / t, i(r, s + 4, o + t), e !== null && e.push(Q, s), s;
1420
1420
  },
1421
- readValueFromPointer: P,
1421
+ readValueFromPointer: F,
1422
1422
  destructorFunction(e) {
1423
- Z(e);
1423
+ Q(e);
1424
1424
  }
1425
1425
  });
1426
- }, cn = (e, t, n, r, i, a) => {
1427
- N[e] = {
1428
- name: z(t),
1429
- rawConstructor: K(n, r),
1430
- rawDestructor: K(i, a),
1426
+ }, sn = (e, t, n, r, i, a) => {
1427
+ P[e] = {
1428
+ name: B(t),
1429
+ rawConstructor: q(n, r),
1430
+ rawDestructor: q(i, a),
1431
1431
  fields: []
1432
1432
  };
1433
- }, ln = (e, t, n, r, i, a, o, s, c, l) => {
1434
- N[e].fields.push({
1435
- fieldName: z(t),
1433
+ }, cn = (e, t, n, r, i, a, o, s, c, l) => {
1434
+ P[e].fields.push({
1435
+ fieldName: B(t),
1436
1436
  getterReturnType: n,
1437
- getter: K(r, i),
1437
+ getter: q(r, i),
1438
1438
  getterContext: a,
1439
1439
  setterArgumentType: o,
1440
- setter: K(s, c),
1440
+ setter: q(s, c),
1441
1441
  setterContext: l
1442
1442
  });
1443
- }, un = (e, t) => {
1444
- t = z(t), H(e, {
1443
+ }, ln = (e, t) => {
1444
+ t = B(t), U(e, {
1445
1445
  isVoid: !0,
1446
1446
  name: t,
1447
1447
  fromWireType: () => void 0,
1448
1448
  toWireType: (e, t) => void 0
1449
1449
  });
1450
- }, dn = [], fn = (e) => {
1451
- var t = dn.length;
1452
- return dn.push(e), t;
1450
+ }, un = [], dn = (e) => {
1451
+ var t = un.length;
1452
+ return un.push(e), t;
1453
+ }, fn = (e, t) => {
1454
+ var n = L[e];
1455
+ return n === void 0 && H(`${t} has unknown type ${St(e)}`), n;
1453
1456
  }, pn = (e, t) => {
1454
- var n = I[e];
1455
- return n === void 0 && V(`${t} has unknown type ${Ct(e)}`), n;
1456
- }, mn = (e, t) => {
1457
- for (var n = Array(e), r = 0; r < e; ++r) n[r] = pn(T[t + r * 4 >> 2], `parameter ${r}`);
1457
+ for (var n = Array(e), r = 0; r < e; ++r) n[r] = fn(E[t + r * 4 >> 2], `parameter ${r}`);
1458
1458
  return n;
1459
- }, hn = (e, t, n) => {
1459
+ }, mn = (e, t, n) => {
1460
1460
  var r = [], i = e(r, n);
1461
- return r.length && (T[t >> 2] = J.toHandle(r)), i;
1462
- }, gn = {}, _n = (e) => {
1463
- var t = gn[e];
1464
- return t === void 0 ? z(e) : t;
1465
- }, vn = (e, t, n) => {
1466
- var r = 8, [i, ...a] = mn(e, t), o = i.toWireType.bind(i), s = a.map((e) => e.readValueFromPointer.bind(e));
1461
+ return r.length && (E[t >> 2] = Y.toHandle(r)), i;
1462
+ }, hn = {}, gn = (e) => {
1463
+ var t = hn[e];
1464
+ return t === void 0 ? B(e) : t;
1465
+ }, _n = (e, t, n) => {
1466
+ var r = 8, [i, ...a] = pn(e, t), o = i.toWireType.bind(i), s = a.map((e) => e.readValueFromPointer.bind(e));
1467
1467
  e--;
1468
1468
  var c = Array(e);
1469
- return fn(Xe(`methodCaller<(${a.map((e) => e.name)}) => ${i.name}>`, (t, i, a, l) => {
1469
+ return dn(Ye(`methodCaller<(${a.map((e) => e.name)}) => ${i.name}>`, (t, i, a, l) => {
1470
1470
  for (var u = 0, d = 0; d < e; ++d) c[d] = s[d](l + u), u += r;
1471
1471
  var f;
1472
1472
  switch (n) {
1473
1473
  case 0:
1474
- f = J.toValue(t).apply(null, c);
1474
+ f = Y.toValue(t).apply(null, c);
1475
1475
  break;
1476
1476
  case 2:
1477
- f = Reflect.construct(J.toValue(t), c);
1477
+ f = Reflect.construct(Y.toValue(t), c);
1478
1478
  break;
1479
1479
  case 3:
1480
1480
  f = c[0];
1481
1481
  break;
1482
1482
  case 1:
1483
- f = J.toValue(t)[_n(i)](...c);
1483
+ f = Y.toValue(t)[gn(i)](...c);
1484
1484
  break;
1485
1485
  }
1486
- return hn(o, a, f);
1486
+ return mn(o, a, f);
1487
1487
  }));
1488
- }, yn = (e) => e ? (e = _n(e), J.toHandle(globalThis[e])) : J.toHandle(globalThis), bn = (e) => {
1489
- e > 9 && (q[e + 1] += 1);
1490
- }, xn = (e, t, n, r, i) => dn[e](t, n, r, i), Sn = (e) => {
1491
- Me(J.toValue(e)), Nt(e);
1492
- }, Cn = (e, t, n, r) => {
1488
+ }, vn = (e) => e ? (e = gn(e), Y.toHandle(globalThis[e])) : Y.toHandle(globalThis), yn = (e) => {
1489
+ e > 9 && (J[e + 1] += 1);
1490
+ }, bn = (e, t, n, r, i) => un[e](t, n, r, i), xn = (e) => {
1491
+ je(Y.toValue(e)), Mt(e);
1492
+ }, Sn = (e, t, n, r) => {
1493
1493
  var i = (/* @__PURE__ */ new Date()).getFullYear(), a = new Date(i, 0, 1), o = new Date(i, 6, 1), s = a.getTimezoneOffset(), c = o.getTimezoneOffset(), l = Math.max(s, c);
1494
- T[e >> 2] = l * 60, S[t >> 2] = Number(s != c);
1494
+ E[e >> 2] = l * 60, C[t >> 2] = Number(s != c);
1495
1495
  var u = (e) => {
1496
1496
  var t = e >= 0 ? "-" : "+", n = Math.abs(e);
1497
1497
  return `UTC${t}${String(Math.floor(n / 60)).padStart(2, "0")}${String(n % 60).padStart(2, "0")}`;
1498
1498
  }, d = u(s), f = u(c);
1499
- c < s ? (Y(d, n, 17), Y(f, r, 17)) : (Y(d, r, 17), Y(f, n, 17));
1500
- }, wn = () => 2147483648, Tn = (e, t) => Math.ceil(e / t) * t, En = (e) => {
1499
+ c < s ? (X(d, n, 17), X(f, r, 17)) : (X(d, r, 17), X(f, n, 17));
1500
+ }, Cn = () => 2147483648, wn = (e, t) => Math.ceil(e / t) * t, Tn = (e) => {
1501
1501
  var t = (e - Xn.buffer.byteLength + 65535) / 65536 | 0;
1502
1502
  try {
1503
- return Xn.grow(t), v(), 1;
1503
+ return Xn.grow(t), y(), 1;
1504
1504
  } catch {}
1505
- }, Dn = (e) => {
1506
- var t = E.length;
1505
+ }, En = (e) => {
1506
+ var t = D.length;
1507
1507
  e >>>= 0;
1508
- var n = wn();
1508
+ var n = Cn();
1509
1509
  if (e > n) return !1;
1510
1510
  for (var r = 1; r <= 4; r *= 2) {
1511
1511
  var i = t * (1 + .2 / r);
1512
- if (i = Math.min(i, e + 100663296), En(Math.min(n, Tn(Math.max(e, i), 65536)))) return !0;
1512
+ if (i = Math.min(i, e + 100663296), Tn(Math.min(n, wn(Math.max(e, i), 65536)))) return !0;
1513
1513
  }
1514
1514
  return !1;
1515
- }, On = {}, kn = () => c || "./this.program", X = () => {
1516
- if (!X.strings) {
1515
+ }, Dn = {}, On = () => c || "./this.program", Z = () => {
1516
+ if (!Z.strings) {
1517
1517
  var e, t, n = {
1518
1518
  USER: "web_user",
1519
1519
  LOGNAME: "web_user",
@@ -1521,498 +1521,508 @@ async function se(e = {}) {
1521
1521
  PWD: "/",
1522
1522
  HOME: "/home/web_user",
1523
1523
  LANG: ((e = (t = globalThis.navigator) == null ? void 0 : t.language) == null ? "C" : e).replace("-", "_") + ".UTF-8",
1524
- _: kn()
1524
+ _: On()
1525
1525
  };
1526
- for (var r in On) On[r] === void 0 ? delete n[r] : n[r] = On[r];
1526
+ for (var r in Dn) Dn[r] === void 0 ? delete n[r] : n[r] = Dn[r];
1527
1527
  var i = [];
1528
1528
  for (var r in n) i.push(`${r}=${n[r]}`);
1529
- X.strings = i;
1529
+ Z.strings = i;
1530
1530
  }
1531
- return X.strings;
1532
- }, An = (e, t) => {
1531
+ return Z.strings;
1532
+ }, kn = (e, t) => {
1533
1533
  var n = 0, r = 0;
1534
- for (var i of X()) {
1534
+ for (var i of Z()) {
1535
1535
  var a = t + n;
1536
- T[e + r >> 2] = a, n += Y(i, a, Infinity) + 1, r += 4;
1536
+ E[e + r >> 2] = a, n += X(i, a, Infinity) + 1, r += 4;
1537
1537
  }
1538
1538
  return 0;
1539
- }, jn = (e, t) => {
1540
- var n = X();
1541
- T[e >> 2] = n.length;
1539
+ }, An = (e, t) => {
1540
+ var n = Z();
1541
+ E[e >> 2] = n.length;
1542
1542
  var r = 0;
1543
- for (var i of n) r += qt(i) + 1;
1544
- return T[t >> 2] = r, 0;
1545
- }, Mn = (e) => 52, Nn = (e, t) => t + 2097152 >>> 0 < 4194305 - !!e ? (e >>> 0) + t * 4294967296 : NaN;
1546
- function Pn(e, t, n, r, i) {
1547
- return Nn(t, n), 70;
1543
+ for (var i of n) r += Kt(i) + 1;
1544
+ return E[t >> 2] = r, 0;
1545
+ }, jn = (e) => 52, Mn = (e, t) => t + 2097152 >>> 0 < 4194305 - !!e ? (e >>> 0) + t * 4294967296 : NaN;
1546
+ function Nn(e, t, n, r, i) {
1547
+ return Mn(t, n), 70;
1548
1548
  }
1549
- var Fn = [
1549
+ var Pn = [
1550
1550
  null,
1551
1551
  [],
1552
1552
  []
1553
- ], In = (e, t) => {
1554
- var n = Fn[e];
1555
- t === 0 || t === 10 ? ((e === 1 ? m : h)(Xt(n)), n.length = 0) : n.push(t);
1556
- }, Ln = (e, t, n, r) => {
1553
+ ], Fn = (e, t) => {
1554
+ var n = Pn[e];
1555
+ t === 0 || t === 10 ? ((e === 1 ? m : h)(Yt(n)), n.length = 0) : n.push(t);
1556
+ }, In = (e, t, n, r) => {
1557
1557
  for (var i = 0, a = 0; a < n; a++) {
1558
- var o = T[t >> 2], s = T[t + 4 >> 2];
1558
+ var o = E[t >> 2], s = E[t + 4 >> 2];
1559
1559
  t += 8;
1560
- for (var c = 0; c < s; c++) In(e, E[o + c]);
1560
+ for (var c = 0; c < s; c++) Fn(e, D[o + c]);
1561
1561
  i += s;
1562
1562
  }
1563
- return T[r >> 2] = i, 0;
1564
- }, Rn = (e) => e;
1565
- if (Je(), ht(), i.noExitRuntime && i.noExitRuntime, i.print && (m = i.print), i.printErr && (h = i.printErr), i.wasmBinary && (g = i.wasmBinary), i.arguments && i.arguments, i.thisProgram && (c = i.thisProgram), i.preInit) for (typeof i.preInit == "function" && (i.preInit = [i.preInit]); i.preInit.length > 0;) i.preInit.shift()();
1566
- var zn, Z, Bn, Vn, Q, Hn, Un, Wn, Gn, Kn, qn, Jn, Yn, Xn, Zn;
1563
+ return E[r >> 2] = i, 0;
1564
+ }, Ln = (e) => e;
1565
+ if (qe(), mt(), i.noExitRuntime && i.noExitRuntime, i.print && (m = i.print), i.printErr && (h = i.printErr), i.wasmBinary && (g = i.wasmBinary), i.arguments && i.arguments, i.thisProgram && (c = i.thisProgram), i.preInit) for (typeof i.preInit == "function" && (i.preInit = [i.preInit]); i.preInit.length > 0;) i.preInit.shift()();
1566
+ var Rn, Q, zn, Bn, $, Vn, Hn, Un, Wn, Gn, Kn, qn, Jn, Yn, Xn, Zn;
1567
1567
  function Qn(e) {
1568
- zn = e.Ba, Z = i._free = e.Ca, Bn = i._malloc = e.Ea, Vn = e.Fa, Q = e.Ga, Hn = e.Ha, Un = e.Ia, Wn = e.Ja, Gn = e.Ka, Kn = e.La, qn = e.Ma, W.viijii = e.Na, Jn = W.iiijj = e.Oa, W.jiji = e.Pa, Yn = W.jiiii = e.Qa, W.iiiiij = e.Ra, W.iiiiijj = e.Sa, W.iiiiiijj = e.Ta, Xn = e.za, Zn = e.Da;
1568
+ Rn = e.Ca, Q = i._free = e.Da, zn = i._malloc = e.Fa, Bn = e.Ga, $ = e.Ha, Vn = e.Ia, Hn = e.Ja, Un = e.Ka, Wn = e.La, Gn = e.Ma, Kn = e.Na, G.viijii = e.Oa, qn = G.viijjijjjjjj = e.Pa, Jn = G.iiijj = e.Qa, G.jiji = e.Ra, Yn = G.jiiii = e.Sa, G.iiiiij = e.Ta, G.iiiiijj = e.Ua, G.iiiiiijj = e.Va, Xn = e.Aa, Zn = e.Ea;
1569
1569
  }
1570
1570
  var $n = {
1571
- s: be,
1572
- x: xe,
1573
- a: we,
1574
- i: Te,
1575
- m: Ee,
1576
- Q: De,
1577
- q: Oe,
1578
- fa: ke,
1579
- d: Ae,
1580
- ba: je,
1581
- wa: Fe,
1582
- aa: Ie,
1583
- qa: Re,
1584
- ua: Tt,
1585
- ta: kt,
1586
- F: jt,
1587
- oa: Ft,
1588
- X: Lt,
1589
- Y: Rt,
1590
- A: Bt,
1591
- sa: Ht,
1592
- t: Ut,
1593
- va: Gt,
1594
- pa: Qt,
1595
- S: sn,
1596
- G: cn,
1597
- xa: ln,
1598
- ra: un,
1599
- N: vn,
1600
- ya: Nt,
1601
- C: yn,
1602
- T: bn,
1603
- M: xn,
1604
- ka: Sn,
1605
- ca: Cn,
1606
- ga: Dn,
1607
- da: An,
1608
- ea: jn,
1609
- ha: Mn,
1610
- _: Pn,
1611
- V: Ln,
1612
- ma: xr,
1613
- K: wr,
1614
- B: Dr,
1615
- O: sr,
1571
+ s: ye,
1572
+ x: be,
1573
+ a: Ce,
1574
+ i: we,
1575
+ m: Te,
1576
+ R: Ee,
1577
+ p: De,
1578
+ ga: Oe,
1579
+ d: ke,
1580
+ ca: Ae,
1581
+ xa: Pe,
1582
+ ba: Fe,
1583
+ ra: Le,
1584
+ va: wt,
1585
+ ua: Ot,
1586
+ H: At,
1587
+ pa: Pt,
1588
+ X: It,
1589
+ Y: Lt,
1590
+ A: zt,
1591
+ ta: Vt,
1592
+ u: Ht,
1593
+ wa: Wt,
1594
+ qa: Zt,
1595
+ S: on,
1596
+ I: sn,
1597
+ ya: cn,
1598
+ sa: ln,
1599
+ O: _n,
1600
+ za: Mt,
1601
+ E: vn,
1602
+ T: yn,
1603
+ N: bn,
1604
+ la: xn,
1605
+ da: Sn,
1606
+ ha: En,
1607
+ ea: kn,
1608
+ fa: An,
1609
+ ia: jn,
1610
+ _: Nn,
1611
+ V: In,
1612
+ na: xr,
1613
+ M: wr,
1614
+ C: Ar,
1615
+ P: sr,
1616
1616
  U: Mr,
1617
- p: yr,
1617
+ q: br,
1618
1618
  b: nr,
1619
- D: Cr,
1620
- ja: kr,
1619
+ F: Cr,
1620
+ ka: Or,
1621
1621
  c: ir,
1622
- ia: Ar,
1623
- h: or,
1622
+ ja: kr,
1623
+ g: or,
1624
1624
  j: pr,
1625
1625
  r: hr,
1626
- P: Sr,
1627
- w: _r,
1628
- E: vr,
1629
- L: br,
1630
- I: Nr,
1631
- $: Fr,
1632
- Z: Ir,
1626
+ Q: Sr,
1627
+ t: _r,
1628
+ G: vr,
1629
+ B: yr,
1630
+ K: Nr,
1631
+ $: Ir,
1632
+ Z: Lr,
1633
1633
  f: cr,
1634
1634
  l: er,
1635
1635
  e: rr,
1636
1636
  W: Tr,
1637
- g: ar,
1638
- J: jr,
1637
+ h: ar,
1638
+ L: jr,
1639
1639
  k: tr,
1640
- la: Er,
1640
+ ma: Er,
1641
1641
  o: gr,
1642
1642
  y: ur,
1643
- u: mr,
1644
- R: fr,
1645
- v: Or,
1643
+ v: mr,
1644
+ D: fr,
1645
+ w: Dr,
1646
1646
  n: lr,
1647
- H: Pr,
1648
- na: dr,
1649
- z: Rn
1647
+ J: Pr,
1648
+ oa: dr,
1649
+ aa: Fr,
1650
+ z: Ln
1650
1651
  };
1651
1652
  function er(e, t) {
1652
- var n = O();
1653
+ var n = k();
1653
1654
  try {
1654
- G(e)(t);
1655
+ K(e)(t);
1655
1656
  } catch (e) {
1656
- if (D(n), e !== e + 0) throw e;
1657
- Q(1, 0);
1657
+ if (O(n), e !== e + 0) throw e;
1658
+ $(1, 0);
1658
1659
  }
1659
1660
  }
1660
1661
  function tr(e, t, n, r, i) {
1661
- var a = O();
1662
+ var a = k();
1662
1663
  try {
1663
- G(e)(t, n, r, i);
1664
+ K(e)(t, n, r, i);
1664
1665
  } catch (e) {
1665
- if (D(a), e !== e + 0) throw e;
1666
- Q(1, 0);
1666
+ if (O(a), e !== e + 0) throw e;
1667
+ $(1, 0);
1667
1668
  }
1668
1669
  }
1669
1670
  function nr(e, t) {
1670
- var n = O();
1671
+ var n = k();
1671
1672
  try {
1672
- return G(e)(t);
1673
+ return K(e)(t);
1673
1674
  } catch (e) {
1674
- if (D(n), e !== e + 0) throw e;
1675
- Q(1, 0);
1675
+ if (O(n), e !== e + 0) throw e;
1676
+ $(1, 0);
1676
1677
  }
1677
1678
  }
1678
1679
  function rr(e, t, n) {
1679
- var r = O();
1680
+ var r = k();
1680
1681
  try {
1681
- G(e)(t, n);
1682
+ K(e)(t, n);
1682
1683
  } catch (e) {
1683
- if (D(r), e !== e + 0) throw e;
1684
- Q(1, 0);
1684
+ if (O(r), e !== e + 0) throw e;
1685
+ $(1, 0);
1685
1686
  }
1686
1687
  }
1687
1688
  function ir(e, t, n) {
1688
- var r = O();
1689
+ var r = k();
1689
1690
  try {
1690
- return G(e)(t, n);
1691
+ return K(e)(t, n);
1691
1692
  } catch (e) {
1692
- if (D(r), e !== e + 0) throw e;
1693
- Q(1, 0);
1693
+ if (O(r), e !== e + 0) throw e;
1694
+ $(1, 0);
1694
1695
  }
1695
1696
  }
1696
1697
  function ar(e, t, n, r) {
1697
- var i = O();
1698
+ var i = k();
1698
1699
  try {
1699
- G(e)(t, n, r);
1700
+ K(e)(t, n, r);
1700
1701
  } catch (e) {
1701
- if (D(i), e !== e + 0) throw e;
1702
- Q(1, 0);
1702
+ if (O(i), e !== e + 0) throw e;
1703
+ $(1, 0);
1703
1704
  }
1704
1705
  }
1705
1706
  function or(e, t, n, r) {
1706
- var i = O();
1707
+ var i = k();
1707
1708
  try {
1708
- return G(e)(t, n, r);
1709
+ return K(e)(t, n, r);
1709
1710
  } catch (e) {
1710
- if (D(i), e !== e + 0) throw e;
1711
- Q(1, 0);
1711
+ if (O(i), e !== e + 0) throw e;
1712
+ $(1, 0);
1712
1713
  }
1713
1714
  }
1714
1715
  function sr(e, t, n, r, i, a) {
1715
- var o = O();
1716
+ var o = k();
1716
1717
  try {
1717
- return G(e)(t, n, r, i, a);
1718
+ return K(e)(t, n, r, i, a);
1718
1719
  } catch (e) {
1719
- if (D(o), e !== e + 0) throw e;
1720
- Q(1, 0);
1720
+ if (O(o), e !== e + 0) throw e;
1721
+ $(1, 0);
1721
1722
  }
1722
1723
  }
1723
1724
  function cr(e) {
1724
- var t = O();
1725
+ var t = k();
1725
1726
  try {
1726
- G(e)();
1727
+ K(e)();
1727
1728
  } catch (e) {
1728
- if (D(t), e !== e + 0) throw e;
1729
- Q(1, 0);
1729
+ if (O(t), e !== e + 0) throw e;
1730
+ $(1, 0);
1730
1731
  }
1731
1732
  }
1732
1733
  function lr(e, t, n, r, i, a, o, s, c, l, u) {
1733
- var d = O();
1734
+ var d = k();
1734
1735
  try {
1735
- G(e)(t, n, r, i, a, o, s, c, l, u);
1736
+ K(e)(t, n, r, i, a, o, s, c, l, u);
1736
1737
  } catch (e) {
1737
- if (D(d), e !== e + 0) throw e;
1738
- Q(1, 0);
1738
+ if (O(d), e !== e + 0) throw e;
1739
+ $(1, 0);
1739
1740
  }
1740
1741
  }
1741
1742
  function ur(e, t, n, r, i, a, o) {
1742
- var s = O();
1743
+ var s = k();
1743
1744
  try {
1744
- G(e)(t, n, r, i, a, o);
1745
+ K(e)(t, n, r, i, a, o);
1745
1746
  } catch (e) {
1746
- if (D(s), e !== e + 0) throw e;
1747
- Q(1, 0);
1747
+ if (O(s), e !== e + 0) throw e;
1748
+ $(1, 0);
1748
1749
  }
1749
1750
  }
1750
1751
  function dr(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g) {
1751
- var _ = O();
1752
+ var _ = k();
1752
1753
  try {
1753
- G(e)(t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g);
1754
+ K(e)(t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g);
1754
1755
  } catch (e) {
1755
- if (D(_), e !== e + 0) throw e;
1756
- Q(1, 0);
1756
+ if (O(_), e !== e + 0) throw e;
1757
+ $(1, 0);
1757
1758
  }
1758
1759
  }
1759
1760
  function fr(e, t, n, r, i, a, o, s, c) {
1760
- var l = O();
1761
+ var l = k();
1761
1762
  try {
1762
- G(e)(t, n, r, i, a, o, s, c);
1763
+ K(e)(t, n, r, i, a, o, s, c);
1763
1764
  } catch (e) {
1764
- if (D(l), e !== e + 0) throw e;
1765
- Q(1, 0);
1765
+ if (O(l), e !== e + 0) throw e;
1766
+ $(1, 0);
1766
1767
  }
1767
1768
  }
1768
1769
  function pr(e, t, n, r, i) {
1769
- var a = O();
1770
+ var a = k();
1770
1771
  try {
1771
- return G(e)(t, n, r, i);
1772
+ return K(e)(t, n, r, i);
1772
1773
  } catch (e) {
1773
- if (D(a), e !== e + 0) throw e;
1774
- Q(1, 0);
1774
+ if (O(a), e !== e + 0) throw e;
1775
+ $(1, 0);
1775
1776
  }
1776
1777
  }
1777
1778
  function mr(e, t, n, r, i, a, o, s) {
1778
- var c = O();
1779
+ var c = k();
1779
1780
  try {
1780
- G(e)(t, n, r, i, a, o, s);
1781
+ K(e)(t, n, r, i, a, o, s);
1781
1782
  } catch (e) {
1782
- if (D(c), e !== e + 0) throw e;
1783
- Q(1, 0);
1783
+ if (O(c), e !== e + 0) throw e;
1784
+ $(1, 0);
1784
1785
  }
1785
1786
  }
1786
1787
  function hr(e, t, n, r, i, a) {
1787
- var o = O();
1788
+ var o = k();
1788
1789
  try {
1789
- return G(e)(t, n, r, i, a);
1790
+ return K(e)(t, n, r, i, a);
1790
1791
  } catch (e) {
1791
- if (D(o), e !== e + 0) throw e;
1792
- Q(1, 0);
1792
+ if (O(o), e !== e + 0) throw e;
1793
+ $(1, 0);
1793
1794
  }
1794
1795
  }
1795
1796
  function gr(e, t, n, r, i, a) {
1796
- var o = O();
1797
+ var o = k();
1797
1798
  try {
1798
- G(e)(t, n, r, i, a);
1799
+ K(e)(t, n, r, i, a);
1799
1800
  } catch (e) {
1800
- if (D(o), e !== e + 0) throw e;
1801
- Q(1, 0);
1801
+ if (O(o), e !== e + 0) throw e;
1802
+ $(1, 0);
1802
1803
  }
1803
1804
  }
1804
1805
  function _r(e, t, n, r, i, a, o) {
1805
- var s = O();
1806
+ var s = k();
1806
1807
  try {
1807
- return G(e)(t, n, r, i, a, o);
1808
+ return K(e)(t, n, r, i, a, o);
1808
1809
  } catch (e) {
1809
- if (D(s), e !== e + 0) throw e;
1810
- Q(1, 0);
1810
+ if (O(s), e !== e + 0) throw e;
1811
+ $(1, 0);
1811
1812
  }
1812
1813
  }
1813
1814
  function vr(e, t, n, r, i, a, o, s) {
1814
- var c = O();
1815
+ var c = k();
1815
1816
  try {
1816
- return G(e)(t, n, r, i, a, o, s);
1817
+ return K(e)(t, n, r, i, a, o, s);
1817
1818
  } catch (e) {
1818
- if (D(c), e !== e + 0) throw e;
1819
- Q(1, 0);
1819
+ if (O(c), e !== e + 0) throw e;
1820
+ $(1, 0);
1820
1821
  }
1821
1822
  }
1822
- function yr(e) {
1823
- var t = O();
1823
+ function yr(e, t, n, r, i, a, o, s, c) {
1824
+ var l = k();
1824
1825
  try {
1825
- return G(e)();
1826
+ return K(e)(t, n, r, i, a, o, s, c);
1826
1827
  } catch (e) {
1827
- if (D(t), e !== e + 0) throw e;
1828
- Q(1, 0);
1828
+ if (O(l), e !== e + 0) throw e;
1829
+ $(1, 0);
1829
1830
  }
1830
1831
  }
1831
- function br(e, t, n, r, i, a, o, s, c) {
1832
- var l = O();
1832
+ function br(e) {
1833
+ var t = k();
1833
1834
  try {
1834
- return G(e)(t, n, r, i, a, o, s, c);
1835
+ return K(e)();
1835
1836
  } catch (e) {
1836
- if (D(l), e !== e + 0) throw e;
1837
- Q(1, 0);
1837
+ if (O(t), e !== e + 0) throw e;
1838
+ $(1, 0);
1838
1839
  }
1839
1840
  }
1840
1841
  function xr(e, t, n) {
1841
- var r = O();
1842
+ var r = k();
1842
1843
  try {
1843
- return G(e)(t, n);
1844
+ return K(e)(t, n);
1844
1845
  } catch (e) {
1845
- if (D(r), e !== e + 0) throw e;
1846
- Q(1, 0);
1846
+ if (O(r), e !== e + 0) throw e;
1847
+ $(1, 0);
1847
1848
  }
1848
1849
  }
1849
1850
  function Sr(e, t, n, r, i, a, o) {
1850
- var s = O();
1851
+ var s = k();
1851
1852
  try {
1852
- return G(e)(t, n, r, i, a, o);
1853
+ return K(e)(t, n, r, i, a, o);
1853
1854
  } catch (e) {
1854
- if (D(s), e !== e + 0) throw e;
1855
- Q(1, 0);
1855
+ if (O(s), e !== e + 0) throw e;
1856
+ $(1, 0);
1856
1857
  }
1857
1858
  }
1858
1859
  function Cr(e, t, n, r) {
1859
- var i = O();
1860
+ var i = k();
1860
1861
  try {
1861
- return G(e)(t, n, r);
1862
+ return K(e)(t, n, r);
1862
1863
  } catch (e) {
1863
- if (D(i), e !== e + 0) throw e;
1864
- Q(1, 0);
1864
+ if (O(i), e !== e + 0) throw e;
1865
+ $(1, 0);
1865
1866
  }
1866
1867
  }
1867
1868
  function wr(e, t, n, r) {
1868
- var i = O();
1869
+ var i = k();
1869
1870
  try {
1870
- return G(e)(t, n, r);
1871
+ return K(e)(t, n, r);
1871
1872
  } catch (e) {
1872
- if (D(i), e !== e + 0) throw e;
1873
- Q(1, 0);
1873
+ if (O(i), e !== e + 0) throw e;
1874
+ $(1, 0);
1874
1875
  }
1875
1876
  }
1876
1877
  function Tr(e, t, n, r, i, a, o, s, c) {
1877
- var l = O();
1878
+ var l = k();
1878
1879
  try {
1879
- G(e)(t, n, r, i, a, o, s, c);
1880
+ K(e)(t, n, r, i, a, o, s, c);
1880
1881
  } catch (e) {
1881
- if (D(l), e !== e + 0) throw e;
1882
- Q(1, 0);
1882
+ if (O(l), e !== e + 0) throw e;
1883
+ $(1, 0);
1883
1884
  }
1884
1885
  }
1885
1886
  function Er(e, t, n, r, i, a, o, s) {
1886
- var c = O();
1887
+ var c = k();
1887
1888
  try {
1888
- G(e)(t, n, r, i, a, o, s);
1889
+ K(e)(t, n, r, i, a, o, s);
1889
1890
  } catch (e) {
1890
- if (D(c), e !== e + 0) throw e;
1891
- Q(1, 0);
1891
+ if (O(c), e !== e + 0) throw e;
1892
+ $(1, 0);
1892
1893
  }
1893
1894
  }
1894
- function Dr(e, t, n, r, i, a) {
1895
- var o = O();
1895
+ function Dr(e, t, n, r, i, a, o, s, c, l) {
1896
+ var u = k();
1896
1897
  try {
1897
- return G(e)(t, n, r, i, a);
1898
+ K(e)(t, n, r, i, a, o, s, c, l);
1898
1899
  } catch (e) {
1899
- if (D(o), e !== e + 0) throw e;
1900
- Q(1, 0);
1900
+ if (O(u), e !== e + 0) throw e;
1901
+ $(1, 0);
1901
1902
  }
1902
1903
  }
1903
- function Or(e, t, n, r, i, a, o, s, c, l) {
1904
- var u = O();
1904
+ function Or(e, t, n) {
1905
+ var r = k();
1905
1906
  try {
1906
- G(e)(t, n, r, i, a, o, s, c, l);
1907
+ return K(e)(t, n);
1907
1908
  } catch (e) {
1908
- if (D(u), e !== e + 0) throw e;
1909
- Q(1, 0);
1909
+ if (O(r), e !== e + 0) throw e;
1910
+ $(1, 0);
1910
1911
  }
1911
1912
  }
1912
- function kr(e, t, n) {
1913
- var r = O();
1913
+ function kr(e, t, n, r, i) {
1914
+ var a = k();
1914
1915
  try {
1915
- return G(e)(t, n);
1916
+ return K(e)(t, n, r, i);
1916
1917
  } catch (e) {
1917
- if (D(r), e !== e + 0) throw e;
1918
- Q(1, 0);
1918
+ if (O(a), e !== e + 0) throw e;
1919
+ $(1, 0);
1919
1920
  }
1920
1921
  }
1921
- function Ar(e, t, n, r, i) {
1922
- var a = O();
1922
+ function Ar(e, t, n, r, i, a) {
1923
+ var o = k();
1923
1924
  try {
1924
- return G(e)(t, n, r, i);
1925
+ return K(e)(t, n, r, i, a);
1925
1926
  } catch (e) {
1926
- if (D(a), e !== e + 0) throw e;
1927
- Q(1, 0);
1927
+ if (O(o), e !== e + 0) throw e;
1928
+ $(1, 0);
1928
1929
  }
1929
1930
  }
1930
1931
  function jr(e, t, n, r, i, a, o) {
1931
- var s = O();
1932
+ var s = k();
1932
1933
  try {
1933
- G(e)(t, n, r, i, a, o);
1934
+ K(e)(t, n, r, i, a, o);
1934
1935
  } catch (e) {
1935
- if (D(s), e !== e + 0) throw e;
1936
- Q(1, 0);
1936
+ if (O(s), e !== e + 0) throw e;
1937
+ $(1, 0);
1937
1938
  }
1938
1939
  }
1939
1940
  function Mr(e, t, n, r) {
1940
- var i = O();
1941
+ var i = k();
1941
1942
  try {
1942
- return G(e)(t, n, r);
1943
+ return K(e)(t, n, r);
1943
1944
  } catch (e) {
1944
- if (D(i), e !== e + 0) throw e;
1945
- Q(1, 0);
1945
+ if (O(i), e !== e + 0) throw e;
1946
+ $(1, 0);
1946
1947
  }
1947
1948
  }
1948
1949
  function Nr(e, t, n, r, i, a, o, s, c, l, u, d) {
1949
- var f = O();
1950
+ var f = k();
1950
1951
  try {
1951
- return G(e)(t, n, r, i, a, o, s, c, l, u, d);
1952
+ return K(e)(t, n, r, i, a, o, s, c, l, u, d);
1952
1953
  } catch (e) {
1953
- if (D(f), e !== e + 0) throw e;
1954
- Q(1, 0);
1954
+ if (O(f), e !== e + 0) throw e;
1955
+ $(1, 0);
1955
1956
  }
1956
1957
  }
1957
1958
  function Pr(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h) {
1958
- var g = O();
1959
+ var g = k();
1959
1960
  try {
1960
- G(e)(t, n, r, i, a, o, s, c, l, u, d, f, p, m, h);
1961
+ K(e)(t, n, r, i, a, o, s, c, l, u, d, f, p, m, h);
1961
1962
  } catch (e) {
1962
- if (D(g), e !== e + 0) throw e;
1963
- Q(1, 0);
1963
+ if (O(g), e !== e + 0) throw e;
1964
+ $(1, 0);
1964
1965
  }
1965
1966
  }
1966
- function Fr(e, t, n, r, i, a, o) {
1967
- var s = O();
1967
+ function Fr(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _, ee, v) {
1968
+ var te = k();
1969
+ try {
1970
+ qn(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _, ee, v);
1971
+ } catch (e) {
1972
+ if (O(te), e !== e + 0) throw e;
1973
+ $(1, 0);
1974
+ }
1975
+ }
1976
+ function Ir(e, t, n, r, i, a, o) {
1977
+ var s = k();
1968
1978
  try {
1969
1979
  return Jn(e, t, n, r, i, a, o);
1970
1980
  } catch (e) {
1971
- if (D(s), e !== e + 0) throw e;
1972
- Q(1, 0);
1981
+ if (O(s), e !== e + 0) throw e;
1982
+ $(1, 0);
1973
1983
  }
1974
1984
  }
1975
- function Ir(e, t, n, r, i) {
1976
- var a = O();
1985
+ function Lr(e, t, n, r, i) {
1986
+ var a = k();
1977
1987
  try {
1978
1988
  return Yn(e, t, n, r, i);
1979
1989
  } catch (e) {
1980
- if (D(a), e !== e + 0) throw e;
1981
- Q(1, 0);
1990
+ if (O(a), e !== e + 0) throw e;
1991
+ $(1, 0);
1982
1992
  }
1983
1993
  }
1984
- function Lr() {
1985
- re();
1994
+ function Rr() {
1995
+ ne();
1986
1996
  function e() {
1987
1997
  var e, t;
1988
- i.calledRun = !0, !_ && (ie(), (e = ee) == null || e(i), (t = i.onRuntimeInitialized) == null || t.call(i), ae());
1998
+ i.calledRun = !0, !_ && (re(), (e = ee) == null || e(i), (t = i.onRuntimeInitialized) == null || t.call(i), ie());
1989
1999
  }
1990
2000
  i.setStatus ? (i.setStatus("Running..."), setTimeout(() => {
1991
2001
  setTimeout(() => i.setStatus(""), 1), e();
1992
2002
  }, 1)) : e();
1993
2003
  }
1994
- var $ = await fe();
1995
- return Lr(), t = ne ? i : new Promise((e, t) => {
1996
- ee = e, te = t;
2004
+ var zr = await de();
2005
+ return Rr(), t = te ? i : new Promise((e, t) => {
2006
+ ee = e, v = t;
1997
2007
  }), t;
1998
2008
  }
1999
- function b(e) {
2000
- return ie(se, e);
2009
+ function x(e) {
2010
+ return re(oe, e);
2001
2011
  }
2002
- function ce() {
2003
- return ae(se);
2012
+ function se() {
2013
+ return ie(oe);
2004
2014
  }
2005
- function le(e) {
2006
- b({
2015
+ function ce(e) {
2016
+ x({
2007
2017
  overrides: e,
2008
2018
  equalityFn: Object.is,
2009
2019
  fireImmediately: !1
2010
2020
  });
2011
2021
  }
2012
- async function ue(e, t) {
2013
- return y(se, e, t);
2022
+ async function le(e, t) {
2023
+ return b(oe, e, t);
2014
2024
  }
2015
- var de = "98106d24a9bc2c4a24a6e6864e0f5729bd68cf73d6f5b45bb1c824521146370c", fe = [
2025
+ var ue = "319c39440f2237a31a4c41d9e72fa053f8e35e618df5aa4eac1264db0f3da008", de = [
2016
2026
  ["aztec", "Aztec"],
2017
2027
  ["aztec_code", "AztecCode"],
2018
2028
  ["aztec_rune", "AztecRune"],
@@ -2056,39 +2066,39 @@ var de = "98106d24a9bc2c4a24a6e6864e0f5729bd68cf73d6f5b45bb1c824521146370c", fe
2056
2066
  ["retail_codes", "AllRetail"],
2057
2067
  ["industrial_codes", "AllIndustrial"],
2058
2068
  ["any", "All"]
2059
- ], x = [...fe, ["unknown"]].map((e) => e[0]), S = new Map(fe);
2060
- function C(e) {
2061
- for (let [t, n] of S) if (e === n) return t;
2069
+ ], S = [...de, ["unknown"]].map((e) => e[0]), C = new Map(de);
2070
+ function w(e) {
2071
+ for (let [t, n] of C) if (e === n) return t;
2062
2072
  return "unknown";
2063
2073
  }
2064
- function pe(e) {
2065
- if (me(e)) return {
2074
+ function fe(e) {
2075
+ if (pe(e)) return {
2066
2076
  width: e.naturalWidth,
2067
2077
  height: e.naturalHeight
2068
2078
  };
2069
- if (w(e)) return {
2079
+ if (T(e)) return {
2070
2080
  width: e.width.baseVal.value,
2071
2081
  height: e.height.baseVal.value
2072
2082
  };
2073
- if (T(e)) return {
2083
+ if (E(e)) return {
2074
2084
  width: e.videoWidth,
2075
2085
  height: e.videoHeight
2076
2086
  };
2077
- if (he(e)) return {
2087
+ if (me(e)) return {
2078
2088
  width: e.width,
2079
2089
  height: e.height
2080
2090
  };
2081
- if (_e(e)) return {
2091
+ if (ge(e)) return {
2082
2092
  width: e.displayWidth,
2083
2093
  height: e.displayHeight
2084
2094
  };
2085
- if (E(e) || ge(e)) return {
2095
+ if (D(e) || he(e)) return {
2086
2096
  width: e.width,
2087
2097
  height: e.height
2088
2098
  };
2089
2099
  throw TypeError("The provided value is not of type '(Blob or HTMLCanvasElement or HTMLImageElement or HTMLVideoElement or ImageBitmap or ImageData or OffscreenCanvas or SVGImageElement or VideoFrame)'.");
2090
2100
  }
2091
- function me(e) {
2101
+ function pe(e) {
2092
2102
  try {
2093
2103
  var t;
2094
2104
  return e instanceof (e == null || (t = e.ownerDocument) == null || (t = t.defaultView) == null ? void 0 : t.HTMLImageElement);
@@ -2096,7 +2106,7 @@ function me(e) {
2096
2106
  return !1;
2097
2107
  }
2098
2108
  }
2099
- function w(e) {
2109
+ function T(e) {
2100
2110
  try {
2101
2111
  var t;
2102
2112
  return e instanceof (e == null || (t = e.ownerDocument) == null || (t = t.defaultView) == null ? void 0 : t.SVGImageElement);
@@ -2104,7 +2114,7 @@ function w(e) {
2104
2114
  return !1;
2105
2115
  }
2106
2116
  }
2107
- function T(e) {
2117
+ function E(e) {
2108
2118
  try {
2109
2119
  var t;
2110
2120
  return e instanceof (e == null || (t = e.ownerDocument) == null || (t = t.defaultView) == null ? void 0 : t.HTMLVideoElement);
@@ -2112,7 +2122,7 @@ function T(e) {
2112
2122
  return !1;
2113
2123
  }
2114
2124
  }
2115
- function E(e) {
2125
+ function D(e) {
2116
2126
  try {
2117
2127
  var t;
2118
2128
  return e instanceof (e == null || (t = e.ownerDocument) == null || (t = t.defaultView) == null ? void 0 : t.HTMLCanvasElement);
@@ -2120,42 +2130,42 @@ function E(e) {
2120
2130
  return !1;
2121
2131
  }
2122
2132
  }
2123
- function he(e) {
2133
+ function me(e) {
2124
2134
  try {
2125
2135
  return e instanceof ImageBitmap || Object.prototype.toString.call(e) === "[object ImageBitmap]";
2126
2136
  } catch {
2127
2137
  return !1;
2128
2138
  }
2129
2139
  }
2130
- function ge(e) {
2140
+ function he(e) {
2131
2141
  try {
2132
2142
  return e instanceof OffscreenCanvas || Object.prototype.toString.call(e) === "[object OffscreenCanvas]";
2133
2143
  } catch {
2134
2144
  return !1;
2135
2145
  }
2136
2146
  }
2137
- function _e(e) {
2147
+ function ge(e) {
2138
2148
  try {
2139
2149
  return e instanceof VideoFrame || Object.prototype.toString.call(e) === "[object VideoFrame]";
2140
2150
  } catch {
2141
2151
  return !1;
2142
2152
  }
2143
2153
  }
2144
- function ve(e) {
2154
+ function _e(e) {
2145
2155
  try {
2146
2156
  return e instanceof Blob || Object.prototype.toString.call(e) === "[object Blob]";
2147
2157
  } catch {
2148
2158
  return !1;
2149
2159
  }
2150
2160
  }
2151
- function ye(e) {
2161
+ function ve(e) {
2152
2162
  try {
2153
2163
  return e instanceof ImageData || Object.prototype.toString.call(e) === "[object ImageData]";
2154
2164
  } catch {
2155
2165
  return !1;
2156
2166
  }
2157
2167
  }
2158
- function D(e, t) {
2168
+ function O(e, t) {
2159
2169
  try {
2160
2170
  let n = new OffscreenCanvas(e, t);
2161
2171
  if (n.getContext("2d") instanceof OffscreenCanvasRenderingContext2D) return n;
@@ -2165,15 +2175,15 @@ function D(e, t) {
2165
2175
  return n.width = e, n.height = t, n;
2166
2176
  }
2167
2177
  }
2168
- async function O(e) {
2169
- if (me(e) && !await j(e)) throw new DOMException("Failed to load or decode HTMLImageElement.", "InvalidStateError");
2170
- if (w(e) && !await xe(e)) throw new DOMException("Failed to load or decode SVGImageElement.", "InvalidStateError");
2171
- if (_e(e) && Se(e)) throw new DOMException("VideoFrame is closed.", "InvalidStateError");
2172
- if (T(e) && (e.readyState === 0 || e.readyState === 1)) throw new DOMException("Invalid element or state.", "InvalidStateError");
2173
- if (he(e) && Ce(e)) throw new DOMException("The image source is detached.", "InvalidStateError");
2174
- let { width: t, height: n } = pe(e);
2178
+ async function k(e) {
2179
+ if (pe(e) && !await M(e)) throw new DOMException("Failed to load or decode HTMLImageElement.", "InvalidStateError");
2180
+ if (T(e) && !await be(e)) throw new DOMException("Failed to load or decode SVGImageElement.", "InvalidStateError");
2181
+ if (ge(e) && xe(e)) throw new DOMException("VideoFrame is closed.", "InvalidStateError");
2182
+ if (E(e) && (e.readyState === 0 || e.readyState === 1)) throw new DOMException("Invalid element or state.", "InvalidStateError");
2183
+ if (me(e) && Se(e)) throw new DOMException("The image source is detached.", "InvalidStateError");
2184
+ let { width: t, height: n } = fe(e);
2175
2185
  if (t === 0 || n === 0) return null;
2176
- let r = D(t, n).getContext("2d");
2186
+ let r = O(t, n).getContext("2d");
2177
2187
  r.drawImage(e, 0, 0);
2178
2188
  try {
2179
2189
  return r.getImageData(0, 0, t, n);
@@ -2181,7 +2191,7 @@ async function O(e) {
2181
2191
  throw new DOMException("Source would taint origin.", "SecurityError");
2182
2192
  }
2183
2193
  }
2184
- async function k(e) {
2194
+ async function A(e) {
2185
2195
  let t;
2186
2196
  try {
2187
2197
  t = await createImageBitmap(e);
@@ -2200,9 +2210,9 @@ async function k(e) {
2200
2210
  throw new DOMException("Failed to load or decode Blob.", "InvalidStateError");
2201
2211
  }
2202
2212
  }
2203
- return await O(t);
2213
+ return await k(t);
2204
2214
  }
2205
- function A(e) {
2215
+ function j(e) {
2206
2216
  let { width: t, height: n } = e;
2207
2217
  if (t === 0 || n === 0) return null;
2208
2218
  let r = e.getContext("2d");
@@ -2212,22 +2222,22 @@ function A(e) {
2212
2222
  throw new DOMException("Source would taint origin.", "SecurityError");
2213
2223
  }
2214
2224
  }
2215
- async function be(e) {
2216
- if (ve(e)) return await k(e);
2217
- if (ye(e)) {
2218
- if (M(e)) throw new DOMException("The image data has been detached.", "InvalidStateError");
2225
+ async function ye(e) {
2226
+ if (_e(e)) return await A(e);
2227
+ if (ve(e)) {
2228
+ if (N(e)) throw new DOMException("The image data has been detached.", "InvalidStateError");
2219
2229
  return e;
2220
2230
  }
2221
- return E(e) || ge(e) ? A(e) : await O(e);
2231
+ return D(e) || he(e) ? j(e) : await k(e);
2222
2232
  }
2223
- async function j(e) {
2233
+ async function M(e) {
2224
2234
  try {
2225
2235
  return await e.decode(), !0;
2226
2236
  } catch {
2227
2237
  return !1;
2228
2238
  }
2229
2239
  }
2230
- async function xe(e) {
2240
+ async function be(e) {
2231
2241
  try {
2232
2242
  var t;
2233
2243
  return await ((t = e.decode) == null ? void 0 : t.call(e)), !0;
@@ -2235,78 +2245,78 @@ async function xe(e) {
2235
2245
  return !1;
2236
2246
  }
2237
2247
  }
2238
- function Se(e) {
2248
+ function xe(e) {
2239
2249
  return e.format === null;
2240
2250
  }
2241
- function M(e) {
2251
+ function N(e) {
2242
2252
  return e.data.buffer.byteLength === 0;
2243
2253
  }
2244
- function Ce(e) {
2254
+ function Se(e) {
2245
2255
  return e.width === 0 && e.height === 0;
2246
2256
  }
2247
- function we(e, t) {
2248
- return Te(e) ? new DOMException(`${t}: ${e.message}`, e.name) : Ee(e) ? new e.constructor(`${t}: ${e.message}`) : /* @__PURE__ */ Error(`${t}: ${e}`);
2257
+ function Ce(e, t) {
2258
+ return we(e) ? new DOMException(`${t}: ${e.message}`, e.name) : Te(e) ? new e.constructor(`${t}: ${e.message}`) : /* @__PURE__ */ Error(`${t}: ${e}`);
2249
2259
  }
2250
- function Te(e) {
2260
+ function we(e) {
2251
2261
  return e instanceof DOMException || Object.prototype.toString.call(e) === "[object DOMException]";
2252
2262
  }
2253
- function Ee(e) {
2263
+ function Te(e) {
2254
2264
  return e instanceof Error || Object.prototype.toString.call(e) === "[object Error]";
2255
2265
  }
2256
2266
  //#endregion
2257
- //#region \0@oxc-project+runtime@0.122.0/helpers/checkPrivateRedeclaration.js
2258
- function De(e, t) {
2267
+ //#region \0@oxc-project+runtime@0.127.0/helpers/checkPrivateRedeclaration.js
2268
+ function Ee(e, t) {
2259
2269
  if (t.has(e)) throw TypeError("Cannot initialize the same private elements twice on an object");
2260
2270
  }
2261
2271
  //#endregion
2262
- //#region \0@oxc-project+runtime@0.122.0/helpers/classPrivateFieldInitSpec.js
2263
- function Oe(e, t, n) {
2264
- De(e, t), t.set(e, n);
2272
+ //#region \0@oxc-project+runtime@0.127.0/helpers/classPrivateFieldInitSpec.js
2273
+ function De(e, t, n) {
2274
+ Ee(e, t), t.set(e, n);
2265
2275
  }
2266
2276
  //#endregion
2267
- //#region \0@oxc-project+runtime@0.122.0/helpers/assertClassBrand.js
2268
- function ke(e, t, n) {
2277
+ //#region \0@oxc-project+runtime@0.127.0/helpers/assertClassBrand.js
2278
+ function Oe(e, t, n) {
2269
2279
  if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
2270
2280
  throw TypeError("Private element is not present on this object");
2271
2281
  }
2272
2282
  //#endregion
2273
- //#region \0@oxc-project+runtime@0.122.0/helpers/classPrivateFieldSet2.js
2274
- function Ae(e, t, n) {
2275
- return e.set(ke(e, t), n), n;
2283
+ //#region \0@oxc-project+runtime@0.127.0/helpers/classPrivateFieldSet2.js
2284
+ function ke(e, t, n) {
2285
+ return e.set(Oe(e, t), n), n;
2276
2286
  }
2277
2287
  //#endregion
2278
- //#region \0@oxc-project+runtime@0.122.0/helpers/classPrivateFieldGet2.js
2279
- function je(e, t) {
2280
- return e.get(ke(e, t));
2288
+ //#region \0@oxc-project+runtime@0.127.0/helpers/classPrivateFieldGet2.js
2289
+ function Ae(e, t) {
2290
+ return e.get(Oe(e, t));
2281
2291
  }
2282
2292
  //#endregion
2283
2293
  //#region src/core.ts
2284
- var N = /* @__PURE__ */ new WeakMap(), Me = class {
2294
+ var P = /* @__PURE__ */ new WeakMap(), je = class {
2285
2295
  constructor(e = {}) {
2286
- Oe(this, N, void 0);
2296
+ De(this, P, void 0);
2287
2297
  try {
2288
2298
  var t;
2289
2299
  let n = e == null || (t = e.formats) == null ? void 0 : t.filter((e) => e !== "unknown");
2290
2300
  if ((n == null ? void 0 : n.length) === 0) throw TypeError("Hint option provided, but is empty.");
2291
- for (let e of n == null ? [] : n) if (!S.has(e)) throw TypeError(`Failed to read the 'formats' property from 'BarcodeDetectorOptions': The provided value '${e}' is not a valid enum value of type BarcodeFormat.`);
2292
- Ae(N, this, n == null ? [] : n), b({ fireImmediately: !0 }).catch(() => {});
2301
+ for (let e of n == null ? [] : n) if (!C.has(e)) throw TypeError(`Failed to read the 'formats' property from 'BarcodeDetectorOptions': The provided value '${e}' is not a valid enum value of type BarcodeFormat.`);
2302
+ ke(P, this, n == null ? [] : n), x({ fireImmediately: !0 }).catch(() => {});
2293
2303
  } catch (e) {
2294
- throw we(e, "Failed to construct 'BarcodeDetector'");
2304
+ throw Ce(e, "Failed to construct 'BarcodeDetector'");
2295
2305
  }
2296
2306
  }
2297
2307
  static async getSupportedFormats() {
2298
- return x.filter((e) => e !== "unknown");
2308
+ return S.filter((e) => e !== "unknown");
2299
2309
  }
2300
2310
  async detect(e) {
2301
2311
  try {
2302
- let t = await be(e);
2312
+ let t = await ye(e);
2303
2313
  if (t === null) return [];
2304
2314
  let n, r = {
2305
2315
  textMode: "Plain",
2306
- formats: je(N, this).map((e) => S.get(e))
2316
+ formats: Ae(P, this).map((e) => C.get(e))
2307
2317
  };
2308
2318
  try {
2309
- n = await ue(t, r);
2319
+ n = await le(t, r);
2310
2320
  } catch (e) {
2311
2321
  throw console.error(e), new DOMException("Barcode detection service unavailable.", "NotSupportedError");
2312
2322
  }
@@ -2315,7 +2325,7 @@ var N = /* @__PURE__ */ new WeakMap(), Me = class {
2315
2325
  return {
2316
2326
  boundingBox: new DOMRectReadOnly(l, u, d - l, f - u),
2317
2327
  rawValue: e.text,
2318
- format: C(e.format),
2328
+ format: w(e.format),
2319
2329
  cornerPoints: [
2320
2330
  {
2321
2331
  x: t,
@@ -2337,9 +2347,9 @@ var N = /* @__PURE__ */ new WeakMap(), Me = class {
2337
2347
  };
2338
2348
  });
2339
2349
  } catch (e) {
2340
- throw we(e, "Failed to execute 'detect' on 'BarcodeDetector'");
2350
+ throw Ce(e, "Failed to execute 'detect' on 'BarcodeDetector'");
2341
2351
  }
2342
2352
  }
2343
2353
  };
2344
2354
  //#endregion
2345
- export { ce as a, de as i, le as n, ee as o, b as r, te as s, Me as t };
2355
+ export { se as a, ue as i, ce as n, ee as o, x as r, v as s, je as t };