@abaxx_tech/v-integration-react 1.2.0-dev.1 → 1.2.0-dev.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.
@@ -5,7 +5,7 @@ const qe = Or({}), qr = ({
5
5
  apiUrl: X,
6
6
  children: ie
7
7
  }) => {
8
- const [W, O] = ge(""), [Z, U] = ge(""), [M, x] = ge(!1), [d, A] = ge(""), [C, j] = ge(""), [D, H] = ge(/* @__PURE__ */ new Date()), [q, B] = ge(""), [J, Q] = ge(null), [z, E] = ge(null), o = Bt.useCallback(() => {
8
+ const [Z, O] = ge(""), [J, U] = ge(""), [M, x] = ge(!1), [d, A] = ge(""), [C, j] = ge(""), [D, H] = ge(/* @__PURE__ */ new Date()), [q, B] = ge(""), [K, Q] = ge(null), [z, E] = ge(null), u = Bt.useCallback(() => {
9
9
  O(""), U(""), x(!1), A(""), j(""), B(""), H(/* @__PURE__ */ new Date()), Q(null), E(null);
10
10
  }, []);
11
11
  return /* @__PURE__ */ P(
@@ -14,9 +14,9 @@ const qe = Or({}), qr = ({
14
14
  value: {
15
15
  apiUrl: X,
16
16
  clientId: V,
17
- identity: W,
17
+ identity: Z,
18
18
  setIdentity: O,
19
- authRequestId: Z,
19
+ authRequestId: J,
20
20
  setAuthRequestId: U,
21
21
  isAuthenticating: M,
22
22
  setIsAuthenticating: x,
@@ -28,11 +28,11 @@ const qe = Or({}), qr = ({
28
28
  setAuthCode: B,
29
29
  authRequestIdExpires: D,
30
30
  setAuthRequestIdExpires: H,
31
- token: J,
31
+ token: K,
32
32
  setToken: Q,
33
33
  authError: z,
34
34
  setAuthError: E,
35
- resetState: o
35
+ resetState: u
36
36
  },
37
37
  children: ie
38
38
  }
@@ -52,9 +52,9 @@ function Ur() {
52
52
  clientId: X,
53
53
  authRequestId: ie,
54
54
  // results of the successful auth
55
- setIdentity: W,
55
+ setIdentity: Z,
56
56
  authCode: O,
57
- setAuthCode: Z,
57
+ setAuthCode: J,
58
58
  // results of the successful begin auth
59
59
  setAuthRequestId: U,
60
60
  setAuthRequestIdExpires: M,
@@ -66,30 +66,30 @@ function Ur() {
66
66
  token: D,
67
67
  setToken: H,
68
68
  setAuthError: q
69
- } = Ke(qe), B = Lt(null), J = Lt(""), Q = Oe((E) => {
69
+ } = Ke(qe), B = Lt(null), K = Lt(""), Q = Oe((E) => {
70
70
  try {
71
- let o;
71
+ let u;
72
72
  try {
73
- o = JSON.parse(E.data);
73
+ u = JSON.parse(E.data);
74
74
  } catch {
75
- o = { type: E.type, message: E.data };
75
+ u = { type: E.type, message: E.data };
76
76
  }
77
77
  switch (E.type) {
78
78
  case "start": {
79
- o.request_id && o.expires && (U(o.request_id), J.current = o.request_id, M(new Date(o.expires)));
79
+ u.request_id && u.expires && (U(u.request_id), K.current = u.request_id, M(new Date(u.expires)));
80
80
  break;
81
81
  }
82
82
  case "approved": {
83
- o.code && o.identity && o.approved && o.request_id && o.request_id == J.current && (B.current && (console.info("Closing SSE connection after approval"), B.current.close(), B.current = null), Z(o.code), W(o.identity), j(!0));
83
+ u.code && u.identity && u.approved && u.request_id && u.request_id == K.current && (B.current && (console.info("Closing SSE connection after approval"), B.current.close(), B.current = null), J(u.code), Z(u.identity), j(!0));
84
84
  break;
85
85
  }
86
86
  default:
87
87
  break;
88
88
  }
89
- } catch (o) {
90
- console.error("Error parsing SSE message:", o);
89
+ } catch (u) {
90
+ console.error("Error parsing SSE message:", u);
91
91
  }
92
- }, [U, M, Z, W, j]);
92
+ }, [U, M, J, Z, j]);
93
93
  Ve(() => {
94
94
  if (A)
95
95
  return;
@@ -97,8 +97,8 @@ function Ur() {
97
97
  return (async () => {
98
98
  const b = jr(64), c = await window.crypto.subtle.digest("SHA-256", b);
99
99
  if (!E) {
100
- const y = Pt(new Uint8Array(c)), f = Pt(b);
101
- x(y), d(f);
100
+ const y = Pt(new Uint8Array(c)), s = Pt(b);
101
+ x(y), d(s);
102
102
  }
103
103
  })(), () => {
104
104
  E = !0;
@@ -110,21 +110,21 @@ function Ur() {
110
110
  }
111
111
  if (!(!A || B.current))
112
112
  try {
113
- const E = `${V}/v-plus/auth/start?cid=${X}`, o = new EventSource(E);
114
- return B.current = o, o.onmessage = Q, o.addEventListener("start", Q), o.addEventListener("approved", Q), o.onerror = () => {
113
+ const E = `${V}/v-plus/auth/start?cid=${X}`, u = new EventSource(E);
114
+ return B.current = u, u.onmessage = Q, u.addEventListener("start", Q), u.addEventListener("approved", Q), u.onerror = () => {
115
115
  if (D || !B.current) {
116
116
  console.info("SSE connection closed"), B.current && (B.current.close(), B.current = null);
117
117
  return;
118
118
  }
119
119
  D || console.info("Waiting for authentication...");
120
120
  }, () => {
121
- o && (o.close(), B.current = null);
121
+ u && (u.close(), B.current = null);
122
122
  };
123
123
  } catch (E) {
124
124
  console.error("SSE connection setup failed:", E), B.current = null;
125
125
  }
126
126
  }, [D, A, V, X, Q]);
127
- const z = Oe(async (E, o, b) => {
127
+ const z = Oe(async (E, u, b) => {
128
128
  try {
129
129
  const y = await (await fetch(`${V}/v-plus/auth/token?cid=${X}`, {
130
130
  method: "POST",
@@ -133,7 +133,7 @@ function Ur() {
133
133
  },
134
134
  body: JSON.stringify({
135
135
  auth_code: E,
136
- request_id: o,
136
+ request_id: u,
137
137
  code_verifier: b
138
138
  })
139
139
  })).json();
@@ -142,9 +142,9 @@ function Ur() {
142
142
  else
143
143
  throw new Error("No token received");
144
144
  } catch (c) {
145
- console.error("Error fetching token:", c), j(!1), q(`Failed to obtain auth token: ${c}`), Z("");
145
+ console.error("Error fetching token:", c), j(!1), q(`Failed to obtain auth token: ${c}`), J("");
146
146
  }
147
- }, [V, X, H, j, q, Z]);
147
+ }, [V, X, H, j, q, J]);
148
148
  return Ve(() => {
149
149
  O && z(O, ie, C);
150
150
  }, [O, C, ie, z]), null;
@@ -162,9 +162,9 @@ Qe.exports;
162
162
  var Dt;
163
163
  function $r() {
164
164
  return Dt || (Dt = 1, function(V, X) {
165
- var ie = 200, W = "__lodash_hash_undefined__", O = 1, Z = 2, U = 9007199254740991, M = "[object Arguments]", x = "[object Array]", d = "[object AsyncFunction]", A = "[object Boolean]", C = "[object Date]", j = "[object Error]", D = "[object Function]", H = "[object GeneratorFunction]", q = "[object Map]", B = "[object Number]", J = "[object Null]", Q = "[object Object]", z = "[object Promise]", E = "[object Proxy]", o = "[object RegExp]", b = "[object Set]", c = "[object String]", y = "[object Symbol]", f = "[object Undefined]", w = "[object WeakMap]", n = "[object ArrayBuffer]", t = "[object DataView]", g = "[object Float32Array]", i = "[object Float64Array]", p = "[object Int8Array]", L = "[object Int16Array]", T = "[object Int32Array]", K = "[object Uint8Array]", $ = "[object Uint8ClampedArray]", re = "[object Uint16Array]", oe = "[object Uint32Array]", S = /[\\^$.*+?()[\]{}|]/g, k = /^\[object .+?Constructor\]$/, ue = /^(?:0|[1-9]\d*)$/, G = {};
166
- G[g] = G[i] = G[p] = G[L] = G[T] = G[K] = G[$] = G[re] = G[oe] = !0, G[M] = G[x] = G[n] = G[A] = G[t] = G[C] = G[j] = G[D] = G[q] = G[B] = G[Q] = G[o] = G[b] = G[c] = G[w] = !1;
167
- var se = typeof nt == "object" && nt && nt.Object === Object && nt, _e = typeof self == "object" && self && self.Object === Object && self, s = se || _e || Function("return this")(), u = X && !X.nodeType && X, a = u && !0 && V && !V.nodeType && V, l = a && a.exports === u, h = l && se.process, _ = function() {
165
+ var ie = 200, Z = "__lodash_hash_undefined__", O = 1, J = 2, U = 9007199254740991, M = "[object Arguments]", x = "[object Array]", d = "[object AsyncFunction]", A = "[object Boolean]", C = "[object Date]", j = "[object Error]", D = "[object Function]", H = "[object GeneratorFunction]", q = "[object Map]", B = "[object Number]", K = "[object Null]", Q = "[object Object]", z = "[object Promise]", E = "[object Proxy]", u = "[object RegExp]", b = "[object Set]", c = "[object String]", y = "[object Symbol]", s = "[object Undefined]", w = "[object WeakMap]", n = "[object ArrayBuffer]", t = "[object DataView]", g = "[object Float32Array]", i = "[object Float64Array]", p = "[object Int8Array]", L = "[object Int16Array]", T = "[object Int32Array]", W = "[object Uint8Array]", $ = "[object Uint8ClampedArray]", re = "[object Uint16Array]", oe = "[object Uint32Array]", S = /[\\^$.*+?()[\]{}|]/g, k = /^\[object .+?Constructor\]$/, ue = /^(?:0|[1-9]\d*)$/, G = {};
166
+ G[g] = G[i] = G[p] = G[L] = G[T] = G[W] = G[$] = G[re] = G[oe] = !0, G[M] = G[x] = G[n] = G[A] = G[t] = G[C] = G[j] = G[D] = G[q] = G[B] = G[Q] = G[u] = G[b] = G[c] = G[w] = !1;
167
+ var se = typeof nt == "object" && nt && nt.Object === Object && nt, _e = typeof self == "object" && self && self.Object === Object && self, o = se || _e || Function("return this")(), f = X && !X.nodeType && X, a = f && !0 && V && !V.nodeType && V, l = a && a.exports === f, h = l && se.process, _ = function() {
168
168
  try {
169
169
  return h && h.binding && h.binding("util");
170
170
  } catch {
@@ -221,12 +221,12 @@ function $r() {
221
221
  v[++r] = m;
222
222
  }), v;
223
223
  }
224
- var Be = Array.prototype, qt = Function.prototype, Ze = Object.prototype, at = s["__core-js_shared__"], ct = qt.toString, be = Ze.hasOwnProperty, ht = function() {
224
+ var Be = Array.prototype, qt = Function.prototype, Ze = Object.prototype, at = o["__core-js_shared__"], ct = qt.toString, be = Ze.hasOwnProperty, ht = function() {
225
225
  var e = /[^.]+$/.exec(at && at.keys && at.keys.IE_PROTO || "");
226
226
  return e ? "Symbol(src)_1." + e : "";
227
227
  }(), dt = Ze.toString, jt = RegExp(
228
228
  "^" + ct.call(be).replace(S, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
229
- ), gt = l ? s.Buffer : void 0, Je = s.Symbol, pt = s.Uint8Array, yt = Ze.propertyIsEnumerable, Ut = Be.splice, Ee = Je ? Je.toStringTag : void 0, wt = Object.getOwnPropertySymbols, $t = gt ? gt.isBuffer : void 0, Ft = We(Object.keys, Object), it = Ne(s, "DataView"), Ue = Ne(s, "Map"), ot = Ne(s, "Promise"), st = Ne(s, "Set"), ft = Ne(s, "WeakMap"), $e = Ne(Object, "create"), Ht = Pe(it), Qt = Pe(Ue), Gt = Pe(ot), Vt = Pe(st), Kt = Pe(ft), xt = Je ? Je.prototype : void 0, ut = xt ? xt.valueOf : void 0;
229
+ ), gt = l ? o.Buffer : void 0, Je = o.Symbol, pt = o.Uint8Array, yt = Ze.propertyIsEnumerable, Ut = Be.splice, Ee = Je ? Je.toStringTag : void 0, wt = Object.getOwnPropertySymbols, $t = gt ? gt.isBuffer : void 0, Ft = We(Object.keys, Object), it = Ne(o, "DataView"), Ue = Ne(o, "Map"), ot = Ne(o, "Promise"), st = Ne(o, "Set"), ft = Ne(o, "WeakMap"), $e = Ne(Object, "create"), Ht = Pe(it), Qt = Pe(Ue), Gt = Pe(ot), Vt = Pe(st), Kt = Pe(ft), xt = Je ? Je.prototype : void 0, ut = xt ? xt.valueOf : void 0;
230
230
  function Re(e) {
231
231
  var r = -1, v = e == null ? 0 : e.length;
232
232
  for (this.clear(); ++r < v; ) {
@@ -245,7 +245,7 @@ function $r() {
245
245
  var r = this.__data__;
246
246
  if ($e) {
247
247
  var v = r[e];
248
- return v === W ? void 0 : v;
248
+ return v === Z ? void 0 : v;
249
249
  }
250
250
  return be.call(r, e) ? r[e] : void 0;
251
251
  }
@@ -255,7 +255,7 @@ function $r() {
255
255
  }
256
256
  function Xt(e, r) {
257
257
  var v = this.__data__;
258
- return this.size += this.has(e) ? 0 : 1, v[e] = $e && r === void 0 ? W : r, this;
258
+ return this.size += this.has(e) ? 0 : 1, v[e] = $e && r === void 0 ? Z : r, this;
259
259
  }
260
260
  Re.prototype.clear = Wt, Re.prototype.delete = Zt, Re.prototype.get = Jt, Re.prototype.has = Yt, Re.prototype.set = Xt;
261
261
  function Ae(e) {
@@ -322,7 +322,7 @@ function $r() {
322
322
  this.add(e[r]);
323
323
  }
324
324
  function ur(e) {
325
- return this.__data__.set(e, W), this;
325
+ return this.__data__.set(e, Z), this;
326
326
  }
327
327
  function lr(e) {
328
328
  return this.__data__.has(e);
@@ -377,7 +377,7 @@ function $r() {
377
377
  return et(e) ? m : Y(m, v(e));
378
378
  }
379
379
  function Fe(e) {
380
- return e == null ? e === void 0 ? f : J : Ee && Ee in Object(e) ? Tr(e) : Lr(e);
380
+ return e == null ? e === void 0 ? s : K : Ee && Ee in Object(e) ? Tr(e) : Lr(e);
381
381
  }
382
382
  function bt(e) {
383
383
  return He(e) && Fe(e) == M;
@@ -429,7 +429,7 @@ function $r() {
429
429
  var ne = F.get(e);
430
430
  if (ne && F.get(r))
431
431
  return ne == r;
432
- var pe = -1, xe = !0, de = v & Z ? new Ye() : void 0;
432
+ var pe = -1, xe = !0, de = v & J ? new Ye() : void 0;
433
433
  for (F.set(e, r), F.set(r, e); ++pe < fe; ) {
434
434
  var ye = e[pe], we = r[pe];
435
435
  if (m)
@@ -469,7 +469,7 @@ function $r() {
469
469
  return Tt(+e, +r);
470
470
  case j:
471
471
  return e.name == r.name && e.message == r.message;
472
- case o:
472
+ case u:
473
473
  case c:
474
474
  return e == r + "";
475
475
  case q:
@@ -481,7 +481,7 @@ function $r() {
481
481
  var ne = ae.get(e);
482
482
  if (ne)
483
483
  return ne == r;
484
- m |= Z, ae.set(e, r);
484
+ m |= J, ae.set(e, r);
485
485
  var pe = At(fe(e), fe(r), m, te, F, ae);
486
486
  return ae.delete(e), pe;
487
487
  case y:
@@ -642,68 +642,68 @@ var vt = { exports: {} }, St;
642
642
  function Fr() {
643
643
  return St || (St = 1, function(V, X) {
644
644
  var ie = function() {
645
- var W = function(o, b) {
646
- var c = 236, y = 17, f = o, w = Z[b], n = null, t = 0, g = null, i = [], p = {}, L = function(s, u) {
647
- t = f * 4 + 17, n = function(a) {
645
+ var Z = function(u, b) {
646
+ var c = 236, y = 17, s = u, w = J[b], n = null, t = 0, g = null, i = [], p = {}, L = function(o, f) {
647
+ t = s * 4 + 17, n = function(a) {
648
648
  for (var l = new Array(a), h = 0; h < a; h += 1) {
649
649
  l[h] = new Array(a);
650
650
  for (var _ = 0; _ < a; _ += 1)
651
651
  l[h][_] = null;
652
652
  }
653
653
  return l;
654
- }(t), T(0, 0), T(t - 7, 0), T(0, t - 7), re(), $(), S(s, u), f >= 7 && oe(s), g == null && (g = G(f, w, i)), k(g, u);
655
- }, T = function(s, u) {
654
+ }(t), T(0, 0), T(t - 7, 0), T(0, t - 7), re(), $(), S(o, f), s >= 7 && oe(o), g == null && (g = G(s, w, i)), k(g, f);
655
+ }, T = function(o, f) {
656
656
  for (var a = -1; a <= 7; a += 1)
657
- if (!(s + a <= -1 || t <= s + a))
657
+ if (!(o + a <= -1 || t <= o + a))
658
658
  for (var l = -1; l <= 7; l += 1)
659
- u + l <= -1 || t <= u + l || (0 <= a && a <= 6 && (l == 0 || l == 6) || 0 <= l && l <= 6 && (a == 0 || a == 6) || 2 <= a && a <= 4 && 2 <= l && l <= 4 ? n[s + a][u + l] = !0 : n[s + a][u + l] = !1);
660
- }, K = function() {
661
- for (var s = 0, u = 0, a = 0; a < 8; a += 1) {
659
+ f + l <= -1 || t <= f + l || (0 <= a && a <= 6 && (l == 0 || l == 6) || 0 <= l && l <= 6 && (a == 0 || a == 6) || 2 <= a && a <= 4 && 2 <= l && l <= 4 ? n[o + a][f + l] = !0 : n[o + a][f + l] = !1);
660
+ }, W = function() {
661
+ for (var o = 0, f = 0, a = 0; a < 8; a += 1) {
662
662
  L(!0, a);
663
663
  var l = M.getLostPoint(p);
664
- (a == 0 || s > l) && (s = l, u = a);
664
+ (a == 0 || o > l) && (o = l, f = a);
665
665
  }
666
- return u;
666
+ return f;
667
667
  }, $ = function() {
668
- for (var s = 8; s < t - 8; s += 1)
669
- n[s][6] == null && (n[s][6] = s % 2 == 0);
670
- for (var u = 8; u < t - 8; u += 1)
671
- n[6][u] == null && (n[6][u] = u % 2 == 0);
668
+ for (var o = 8; o < t - 8; o += 1)
669
+ n[o][6] == null && (n[o][6] = o % 2 == 0);
670
+ for (var f = 8; f < t - 8; f += 1)
671
+ n[6][f] == null && (n[6][f] = f % 2 == 0);
672
672
  }, re = function() {
673
- for (var s = M.getPatternPosition(f), u = 0; u < s.length; u += 1)
674
- for (var a = 0; a < s.length; a += 1) {
675
- var l = s[u], h = s[a];
673
+ for (var o = M.getPatternPosition(s), f = 0; f < o.length; f += 1)
674
+ for (var a = 0; a < o.length; a += 1) {
675
+ var l = o[f], h = o[a];
676
676
  if (n[l][h] == null)
677
677
  for (var _ = -2; _ <= 2; _ += 1)
678
678
  for (var R = -2; R <= 2; R += 1)
679
679
  _ == -2 || _ == 2 || R == -2 || R == 2 || _ == 0 && R == 0 ? n[l + _][h + R] = !0 : n[l + _][h + R] = !1;
680
680
  }
681
- }, oe = function(s) {
682
- for (var u = M.getBCHTypeNumber(f), a = 0; a < 18; a += 1) {
683
- var l = !s && (u >> a & 1) == 1;
681
+ }, oe = function(o) {
682
+ for (var f = M.getBCHTypeNumber(s), a = 0; a < 18; a += 1) {
683
+ var l = !o && (f >> a & 1) == 1;
684
684
  n[Math.floor(a / 3)][a % 3 + t - 8 - 3] = l;
685
685
  }
686
686
  for (var a = 0; a < 18; a += 1) {
687
- var l = !s && (u >> a & 1) == 1;
687
+ var l = !o && (f >> a & 1) == 1;
688
688
  n[a % 3 + t - 8 - 3][Math.floor(a / 3)] = l;
689
689
  }
690
- }, S = function(s, u) {
691
- for (var a = w << 3 | u, l = M.getBCHTypeInfo(a), h = 0; h < 15; h += 1) {
692
- var _ = !s && (l >> h & 1) == 1;
690
+ }, S = function(o, f) {
691
+ for (var a = w << 3 | f, l = M.getBCHTypeInfo(a), h = 0; h < 15; h += 1) {
692
+ var _ = !o && (l >> h & 1) == 1;
693
693
  h < 6 ? n[h][8] = _ : h < 8 ? n[h + 1][8] = _ : n[t - 15 + h][8] = _;
694
694
  }
695
695
  for (var h = 0; h < 15; h += 1) {
696
- var _ = !s && (l >> h & 1) == 1;
696
+ var _ = !o && (l >> h & 1) == 1;
697
697
  h < 8 ? n[8][t - h - 1] = _ : h < 9 ? n[8][15 - h - 1 + 1] = _ : n[8][15 - h - 1] = _;
698
698
  }
699
- n[t - 8][8] = !s;
700
- }, k = function(s, u) {
701
- for (var a = -1, l = t - 1, h = 7, _ = 0, R = M.getMaskFunction(u), I = t - 1; I > 0; I -= 2)
699
+ n[t - 8][8] = !o;
700
+ }, k = function(o, f) {
701
+ for (var a = -1, l = t - 1, h = 7, _ = 0, R = M.getMaskFunction(f), I = t - 1; I > 0; I -= 2)
702
702
  for (I == 6 && (I -= 1); ; ) {
703
703
  for (var Y = 0; Y < 2; Y += 1)
704
704
  if (n[l][I - Y] == null) {
705
705
  var ee = !1;
706
- _ < s.length && (ee = (s[_] >>> h & 1) == 1);
706
+ _ < o.length && (ee = (o[_] >>> h & 1) == 1);
707
707
  var N = R(l, I - Y);
708
708
  N && (ee = !ee), n[l][I - Y] = ee, h -= 1, h == -1 && (_ += 1, h = 7);
709
709
  }
@@ -712,12 +712,12 @@ function Fr() {
712
712
  break;
713
713
  }
714
714
  }
715
- }, ue = function(s, u) {
716
- for (var a = 0, l = 0, h = 0, _ = new Array(u.length), R = new Array(u.length), I = 0; I < u.length; I += 1) {
717
- var Y = u[I].dataCount, ee = u[I].totalCount - Y;
715
+ }, ue = function(o, f) {
716
+ for (var a = 0, l = 0, h = 0, _ = new Array(f.length), R = new Array(f.length), I = 0; I < f.length; I += 1) {
717
+ var Y = f[I].dataCount, ee = f[I].totalCount - Y;
718
718
  l = Math.max(l, Y), h = Math.max(h, ee), _[I] = new Array(Y);
719
719
  for (var N = 0; N < _[I].length; N += 1)
720
- _[I][N] = 255 & s.getBuffer()[N + a];
720
+ _[I][N] = 255 & o.getBuffer()[N + a];
721
721
  a += Y;
722
722
  var le = M.getErrorCorrectPolynomial(ee), ve = d(_[I], le.getLength() - 1), Se = ve.mod(le);
723
723
  R[I] = new Array(le.getLength() - 1);
@@ -726,19 +726,19 @@ function Fr() {
726
726
  R[I][N] = ke >= 0 ? Se.getAt(ke) : 0;
727
727
  }
728
728
  }
729
- for (var We = 0, N = 0; N < u.length; N += 1)
730
- We += u[N].totalCount;
729
+ for (var We = 0, N = 0; N < f.length; N += 1)
730
+ We += f[N].totalCount;
731
731
  for (var je = new Array(We), Be = 0, N = 0; N < l; N += 1)
732
- for (var I = 0; I < u.length; I += 1)
732
+ for (var I = 0; I < f.length; I += 1)
733
733
  N < _[I].length && (je[Be] = _[I][N], Be += 1);
734
734
  for (var N = 0; N < h; N += 1)
735
- for (var I = 0; I < u.length; I += 1)
735
+ for (var I = 0; I < f.length; I += 1)
736
736
  N < R[I].length && (je[Be] = R[I][N], Be += 1);
737
737
  return je;
738
- }, G = function(s, u, a) {
739
- for (var l = A.getRSBlocks(s, u), h = C(), _ = 0; _ < a.length; _ += 1) {
738
+ }, G = function(o, f, a) {
739
+ for (var l = A.getRSBlocks(o, f), h = C(), _ = 0; _ < a.length; _ += 1) {
740
740
  var R = a[_];
741
- h.put(R.getMode(), 4), h.put(R.getLength(), M.getLengthInBits(R.getMode(), s)), R.write(h);
741
+ h.put(R.getMode(), 4), h.put(R.getLength(), M.getLengthInBits(R.getMode(), o)), R.write(h);
742
742
  }
743
743
  for (var I = 0, _ = 0; _ < l.length; _ += 1)
744
744
  I += l[_].dataCount;
@@ -750,107 +750,107 @@ function Fr() {
750
750
  h.put(y, 8);
751
751
  return ue(h, l);
752
752
  };
753
- p.addData = function(s, u) {
754
- u = u || "Byte";
753
+ p.addData = function(o, f) {
754
+ f = f || "Byte";
755
755
  var a = null;
756
- switch (u) {
756
+ switch (f) {
757
757
  case "Numeric":
758
- a = j(s);
758
+ a = j(o);
759
759
  break;
760
760
  case "Alphanumeric":
761
- a = D(s);
761
+ a = D(o);
762
762
  break;
763
763
  case "Byte":
764
- a = H(s);
764
+ a = H(o);
765
765
  break;
766
766
  case "Kanji":
767
- a = q(s);
767
+ a = q(o);
768
768
  break;
769
769
  default:
770
- throw "mode:" + u;
770
+ throw "mode:" + f;
771
771
  }
772
772
  i.push(a), g = null;
773
- }, p.isDark = function(s, u) {
774
- if (s < 0 || t <= s || u < 0 || t <= u)
775
- throw s + "," + u;
776
- return n[s][u];
773
+ }, p.isDark = function(o, f) {
774
+ if (o < 0 || t <= o || f < 0 || t <= f)
775
+ throw o + "," + f;
776
+ return n[o][f];
777
777
  }, p.getModuleCount = function() {
778
778
  return t;
779
779
  }, p.make = function() {
780
- if (f < 1) {
781
- for (var s = 1; s < 40; s++) {
782
- for (var u = A.getRSBlocks(s, w), a = C(), l = 0; l < i.length; l++) {
780
+ if (s < 1) {
781
+ for (var o = 1; o < 40; o++) {
782
+ for (var f = A.getRSBlocks(o, w), a = C(), l = 0; l < i.length; l++) {
783
783
  var h = i[l];
784
- a.put(h.getMode(), 4), a.put(h.getLength(), M.getLengthInBits(h.getMode(), s)), h.write(a);
784
+ a.put(h.getMode(), 4), a.put(h.getLength(), M.getLengthInBits(h.getMode(), o)), h.write(a);
785
785
  }
786
- for (var _ = 0, l = 0; l < u.length; l++)
787
- _ += u[l].dataCount;
786
+ for (var _ = 0, l = 0; l < f.length; l++)
787
+ _ += f[l].dataCount;
788
788
  if (a.getLengthInBits() <= _ * 8)
789
789
  break;
790
790
  }
791
- f = s;
791
+ s = o;
792
792
  }
793
- L(!1, K());
794
- }, p.createTableTag = function(s, u) {
795
- s = s || 2, u = typeof u > "u" ? s * 4 : u;
793
+ L(!1, W());
794
+ }, p.createTableTag = function(o, f) {
795
+ o = o || 2, f = typeof f > "u" ? o * 4 : f;
796
796
  var a = "";
797
- a += '<table style="', a += " border-width: 0px; border-style: none;", a += " border-collapse: collapse;", a += " padding: 0px; margin: " + u + "px;", a += '">', a += "<tbody>";
797
+ a += '<table style="', a += " border-width: 0px; border-style: none;", a += " border-collapse: collapse;", a += " padding: 0px; margin: " + f + "px;", a += '">', a += "<tbody>";
798
798
  for (var l = 0; l < p.getModuleCount(); l += 1) {
799
799
  a += "<tr>";
800
800
  for (var h = 0; h < p.getModuleCount(); h += 1)
801
- a += '<td style="', a += " border-width: 0px; border-style: none;", a += " border-collapse: collapse;", a += " padding: 0px; margin: 0px;", a += " width: " + s + "px;", a += " height: " + s + "px;", a += " background-color: ", a += p.isDark(l, h) ? "#000000" : "#ffffff", a += ";", a += '"/>';
801
+ a += '<td style="', a += " border-width: 0px; border-style: none;", a += " border-collapse: collapse;", a += " padding: 0px; margin: 0px;", a += " width: " + o + "px;", a += " height: " + o + "px;", a += " background-color: ", a += p.isDark(l, h) ? "#000000" : "#ffffff", a += ";", a += '"/>';
802
802
  a += "</tr>";
803
803
  }
804
804
  return a += "</tbody>", a += "</table>", a;
805
- }, p.createSvgTag = function(s, u, a, l) {
805
+ }, p.createSvgTag = function(o, f, a, l) {
806
806
  var h = {};
807
- typeof arguments[0] == "object" && (h = arguments[0], s = h.cellSize, u = h.margin, a = h.alt, l = h.title), s = s || 2, u = typeof u > "u" ? s * 4 : u, a = typeof a == "string" ? { text: a } : a || {}, a.text = a.text || null, a.id = a.text ? a.id || "qrcode-description" : null, l = typeof l == "string" ? { text: l } : l || {}, l.text = l.text || null, l.id = l.text ? l.id || "qrcode-title" : null;
808
- var _ = p.getModuleCount() * s + u * 2, R, I, Y, ee, N = "", le;
809
- for (le = "l" + s + ",0 0," + s + " -" + s + ",0 0,-" + s + "z ", N += '<svg version="1.1" xmlns="http://www.w3.org/2000/svg"', N += h.scalable ? "" : ' width="' + _ + 'px" height="' + _ + 'px"', N += ' viewBox="0 0 ' + _ + " " + _ + '" ', N += ' preserveAspectRatio="xMinYMin meet"', N += l.text || a.text ? ' role="img" aria-labelledby="' + se([l.id, a.id].join(" ").trim()) + '"' : "", N += ">", N += l.text ? '<title id="' + se(l.id) + '">' + se(l.text) + "</title>" : "", N += a.text ? '<description id="' + se(a.id) + '">' + se(a.text) + "</description>" : "", N += '<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>', N += '<path d="', Y = 0; Y < p.getModuleCount(); Y += 1)
810
- for (ee = Y * s + u, R = 0; R < p.getModuleCount(); R += 1)
811
- p.isDark(Y, R) && (I = R * s + u, N += "M" + I + "," + ee + le);
807
+ typeof arguments[0] == "object" && (h = arguments[0], o = h.cellSize, f = h.margin, a = h.alt, l = h.title), o = o || 2, f = typeof f > "u" ? o * 4 : f, a = typeof a == "string" ? { text: a } : a || {}, a.text = a.text || null, a.id = a.text ? a.id || "qrcode-description" : null, l = typeof l == "string" ? { text: l } : l || {}, l.text = l.text || null, l.id = l.text ? l.id || "qrcode-title" : null;
808
+ var _ = p.getModuleCount() * o + f * 2, R, I, Y, ee, N = "", le;
809
+ for (le = "l" + o + ",0 0," + o + " -" + o + ",0 0,-" + o + "z ", N += '<svg version="1.1" xmlns="http://www.w3.org/2000/svg"', N += h.scalable ? "" : ' width="' + _ + 'px" height="' + _ + 'px"', N += ' viewBox="0 0 ' + _ + " " + _ + '" ', N += ' preserveAspectRatio="xMinYMin meet"', N += l.text || a.text ? ' role="img" aria-labelledby="' + se([l.id, a.id].join(" ").trim()) + '"' : "", N += ">", N += l.text ? '<title id="' + se(l.id) + '">' + se(l.text) + "</title>" : "", N += a.text ? '<description id="' + se(a.id) + '">' + se(a.text) + "</description>" : "", N += '<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>', N += '<path d="', Y = 0; Y < p.getModuleCount(); Y += 1)
810
+ for (ee = Y * o + f, R = 0; R < p.getModuleCount(); R += 1)
811
+ p.isDark(Y, R) && (I = R * o + f, N += "M" + I + "," + ee + le);
812
812
  return N += '" stroke="transparent" fill="black"/>', N += "</svg>", N;
813
- }, p.createDataURL = function(s, u) {
814
- s = s || 2, u = typeof u > "u" ? s * 4 : u;
815
- var a = p.getModuleCount() * s + u * 2, l = u, h = a - u;
813
+ }, p.createDataURL = function(o, f) {
814
+ o = o || 2, f = typeof f > "u" ? o * 4 : f;
815
+ var a = p.getModuleCount() * o + f * 2, l = f, h = a - f;
816
816
  return E(a, a, function(_, R) {
817
817
  if (l <= _ && _ < h && l <= R && R < h) {
818
- var I = Math.floor((_ - l) / s), Y = Math.floor((R - l) / s);
818
+ var I = Math.floor((_ - l) / o), Y = Math.floor((R - l) / o);
819
819
  return p.isDark(Y, I) ? 0 : 1;
820
820
  } else
821
821
  return 1;
822
822
  });
823
- }, p.createImgTag = function(s, u, a) {
824
- s = s || 2, u = typeof u > "u" ? s * 4 : u;
825
- var l = p.getModuleCount() * s + u * 2, h = "";
826
- return h += "<img", h += ' src="', h += p.createDataURL(s, u), h += '"', h += ' width="', h += l, h += '"', h += ' height="', h += l, h += '"', a && (h += ' alt="', h += se(a), h += '"'), h += "/>", h;
823
+ }, p.createImgTag = function(o, f, a) {
824
+ o = o || 2, f = typeof f > "u" ? o * 4 : f;
825
+ var l = p.getModuleCount() * o + f * 2, h = "";
826
+ return h += "<img", h += ' src="', h += p.createDataURL(o, f), h += '"', h += ' width="', h += l, h += '"', h += ' height="', h += l, h += '"', a && (h += ' alt="', h += se(a), h += '"'), h += "/>", h;
827
827
  };
828
- var se = function(s) {
829
- for (var u = "", a = 0; a < s.length; a += 1) {
830
- var l = s.charAt(a);
828
+ var se = function(o) {
829
+ for (var f = "", a = 0; a < o.length; a += 1) {
830
+ var l = o.charAt(a);
831
831
  switch (l) {
832
832
  case "<":
833
- u += "&lt;";
833
+ f += "&lt;";
834
834
  break;
835
835
  case ">":
836
- u += "&gt;";
836
+ f += "&gt;";
837
837
  break;
838
838
  case "&":
839
- u += "&amp;";
839
+ f += "&amp;";
840
840
  break;
841
841
  case '"':
842
- u += "&quot;";
842
+ f += "&quot;";
843
843
  break;
844
844
  default:
845
- u += l;
845
+ f += l;
846
846
  break;
847
847
  }
848
848
  }
849
- return u;
850
- }, _e = function(s) {
851
- var u = 1;
852
- s = typeof s > "u" ? u * 2 : s;
853
- var a = p.getModuleCount() * u + s * 2, l = s, h = a - s, _, R, I, Y, ee, N = {
849
+ return f;
850
+ }, _e = function(o) {
851
+ var f = 1;
852
+ o = typeof o > "u" ? f * 2 : o;
853
+ var a = p.getModuleCount() * f + o * 2, l = o, h = a - o, _, R, I, Y, ee, N = {
854
854
  "██": "█",
855
855
  "█ ": "▀",
856
856
  " █": "▄",
@@ -862,64 +862,64 @@ function Fr() {
862
862
  " ": " "
863
863
  }, ve = "";
864
864
  for (_ = 0; _ < a; _ += 2) {
865
- for (I = Math.floor((_ - l) / u), Y = Math.floor((_ + 1 - l) / u), R = 0; R < a; R += 1)
866
- ee = "█", l <= R && R < h && l <= _ && _ < h && p.isDark(I, Math.floor((R - l) / u)) && (ee = " "), l <= R && R < h && l <= _ + 1 && _ + 1 < h && p.isDark(Y, Math.floor((R - l) / u)) ? ee += " " : ee += "█", ve += s < 1 && _ + 1 >= h ? le[ee] : N[ee];
865
+ for (I = Math.floor((_ - l) / f), Y = Math.floor((_ + 1 - l) / f), R = 0; R < a; R += 1)
866
+ ee = "█", l <= R && R < h && l <= _ && _ < h && p.isDark(I, Math.floor((R - l) / f)) && (ee = " "), l <= R && R < h && l <= _ + 1 && _ + 1 < h && p.isDark(Y, Math.floor((R - l) / f)) ? ee += " " : ee += "█", ve += o < 1 && _ + 1 >= h ? le[ee] : N[ee];
867
867
  ve += `
868
868
  `;
869
869
  }
870
- return a % 2 && s > 0 ? ve.substring(0, ve.length - a - 1) + Array(a + 1).join("▀") : ve.substring(0, ve.length - 1);
870
+ return a % 2 && o > 0 ? ve.substring(0, ve.length - a - 1) + Array(a + 1).join("▀") : ve.substring(0, ve.length - 1);
871
871
  };
872
- return p.createASCII = function(s, u) {
873
- if (s = s || 1, s < 2)
874
- return _e(u);
875
- s -= 1, u = typeof u > "u" ? s * 2 : u;
876
- var a = p.getModuleCount() * s + u * 2, l = u, h = a - u, _, R, I, Y, ee = Array(s + 1).join("██"), N = Array(s + 1).join(" "), le = "", ve = "";
872
+ return p.createASCII = function(o, f) {
873
+ if (o = o || 1, o < 2)
874
+ return _e(f);
875
+ o -= 1, f = typeof f > "u" ? o * 2 : f;
876
+ var a = p.getModuleCount() * o + f * 2, l = f, h = a - f, _, R, I, Y, ee = Array(o + 1).join("██"), N = Array(o + 1).join(" "), le = "", ve = "";
877
877
  for (_ = 0; _ < a; _ += 1) {
878
- for (I = Math.floor((_ - l) / s), ve = "", R = 0; R < a; R += 1)
879
- Y = 1, l <= R && R < h && l <= _ && _ < h && p.isDark(I, Math.floor((R - l) / s)) && (Y = 0), ve += Y ? ee : N;
880
- for (I = 0; I < s; I += 1)
878
+ for (I = Math.floor((_ - l) / o), ve = "", R = 0; R < a; R += 1)
879
+ Y = 1, l <= R && R < h && l <= _ && _ < h && p.isDark(I, Math.floor((R - l) / o)) && (Y = 0), ve += Y ? ee : N;
880
+ for (I = 0; I < o; I += 1)
881
881
  le += ve + `
882
882
  `;
883
883
  }
884
884
  return le.substring(0, le.length - 1);
885
- }, p.renderTo2dContext = function(s, u) {
886
- u = u || 2;
885
+ }, p.renderTo2dContext = function(o, f) {
886
+ f = f || 2;
887
887
  for (var a = p.getModuleCount(), l = 0; l < a; l++)
888
888
  for (var h = 0; h < a; h++)
889
- s.fillStyle = p.isDark(l, h) ? "black" : "white", s.fillRect(l * u, h * u, u, u);
889
+ o.fillStyle = p.isDark(l, h) ? "black" : "white", o.fillRect(l * f, h * f, f, f);
890
890
  }, p;
891
891
  };
892
- W.stringToBytesFuncs = {
893
- default: function(o) {
894
- for (var b = [], c = 0; c < o.length; c += 1) {
895
- var y = o.charCodeAt(c);
892
+ Z.stringToBytesFuncs = {
893
+ default: function(u) {
894
+ for (var b = [], c = 0; c < u.length; c += 1) {
895
+ var y = u.charCodeAt(c);
896
896
  b.push(y & 255);
897
897
  }
898
898
  return b;
899
899
  }
900
- }, W.stringToBytes = W.stringToBytesFuncs.default, W.createStringToBytes = function(o, b) {
900
+ }, Z.stringToBytes = Z.stringToBytesFuncs.default, Z.createStringToBytes = function(u, b) {
901
901
  var c = function() {
902
- for (var f = Q(o), w = function() {
903
- var $ = f.read();
902
+ for (var s = Q(u), w = function() {
903
+ var $ = s.read();
904
904
  if ($ == -1) throw "eof";
905
905
  return $;
906
906
  }, n = 0, t = {}; ; ) {
907
- var g = f.read();
907
+ var g = s.read();
908
908
  if (g == -1) break;
909
- var i = w(), p = w(), L = w(), T = String.fromCharCode(g << 8 | i), K = p << 8 | L;
910
- t[T] = K, n += 1;
909
+ var i = w(), p = w(), L = w(), T = String.fromCharCode(g << 8 | i), W = p << 8 | L;
910
+ t[T] = W, n += 1;
911
911
  }
912
912
  if (n != b)
913
913
  throw n + " != " + b;
914
914
  return t;
915
915
  }(), y = 63;
916
- return function(f) {
917
- for (var w = [], n = 0; n < f.length; n += 1) {
918
- var t = f.charCodeAt(n);
916
+ return function(s) {
917
+ for (var w = [], n = 0; n < s.length; n += 1) {
918
+ var t = s.charCodeAt(n);
919
919
  if (t < 128)
920
920
  w.push(t);
921
921
  else {
922
- var g = c[f.charAt(n)];
922
+ var g = c[s.charAt(n)];
923
923
  typeof g == "number" ? (g & 255) == g ? w.push(g) : (w.push(g >>> 8), w.push(g & 255)) : w.push(y);
924
924
  }
925
925
  }
@@ -931,7 +931,7 @@ function Fr() {
931
931
  MODE_ALPHA_NUM: 2,
932
932
  MODE_8BIT_BYTE: 4,
933
933
  MODE_KANJI: 8
934
- }, Z = {
934
+ }, J = {
935
935
  L: 1,
936
936
  M: 0,
937
937
  Q: 3,
@@ -946,7 +946,7 @@ function Fr() {
946
946
  PATTERN110: 6,
947
947
  PATTERN111: 7
948
948
  }, M = function() {
949
- var o = [
949
+ var u = [
950
950
  [],
951
951
  [6, 18],
952
952
  [6, 22],
@@ -987,22 +987,22 @@ function Fr() {
987
987
  [6, 32, 58, 84, 110, 136, 162],
988
988
  [6, 26, 54, 82, 110, 138, 166],
989
989
  [6, 30, 58, 86, 114, 142, 170]
990
- ], b = 1335, c = 7973, y = 21522, f = {}, w = function(n) {
990
+ ], b = 1335, c = 7973, y = 21522, s = {}, w = function(n) {
991
991
  for (var t = 0; n != 0; )
992
992
  t += 1, n >>>= 1;
993
993
  return t;
994
994
  };
995
- return f.getBCHTypeInfo = function(n) {
995
+ return s.getBCHTypeInfo = function(n) {
996
996
  for (var t = n << 10; w(t) - w(b) >= 0; )
997
997
  t ^= b << w(t) - w(b);
998
998
  return (n << 10 | t) ^ y;
999
- }, f.getBCHTypeNumber = function(n) {
999
+ }, s.getBCHTypeNumber = function(n) {
1000
1000
  for (var t = n << 12; w(t) - w(c) >= 0; )
1001
1001
  t ^= c << w(t) - w(c);
1002
1002
  return n << 12 | t;
1003
- }, f.getPatternPosition = function(n) {
1004
- return o[n - 1];
1005
- }, f.getMaskFunction = function(n) {
1003
+ }, s.getPatternPosition = function(n) {
1004
+ return u[n - 1];
1005
+ }, s.getMaskFunction = function(n) {
1006
1006
  switch (n) {
1007
1007
  case U.PATTERN000:
1008
1008
  return function(t, g) {
@@ -1039,11 +1039,11 @@ function Fr() {
1039
1039
  default:
1040
1040
  throw "bad maskPattern:" + n;
1041
1041
  }
1042
- }, f.getErrorCorrectPolynomial = function(n) {
1042
+ }, s.getErrorCorrectPolynomial = function(n) {
1043
1043
  for (var t = d([1], 0), g = 0; g < n; g += 1)
1044
1044
  t = t.multiply(d([1, x.gexp(g)], 0));
1045
1045
  return t;
1046
- }, f.getLengthInBits = function(n, t) {
1046
+ }, s.getLengthInBits = function(n, t) {
1047
1047
  if (1 <= t && t < 10)
1048
1048
  switch (n) {
1049
1049
  case O.MODE_NUMBER:
@@ -1085,13 +1085,13 @@ function Fr() {
1085
1085
  }
1086
1086
  else
1087
1087
  throw "type:" + t;
1088
- }, f.getLostPoint = function(n) {
1088
+ }, s.getLostPoint = function(n) {
1089
1089
  for (var t = n.getModuleCount(), g = 0, i = 0; i < t; i += 1)
1090
1090
  for (var p = 0; p < t; p += 1) {
1091
- for (var L = 0, T = n.isDark(i, p), K = -1; K <= 1; K += 1)
1092
- if (!(i + K < 0 || t <= i + K))
1091
+ for (var L = 0, T = n.isDark(i, p), W = -1; W <= 1; W += 1)
1092
+ if (!(i + W < 0 || t <= i + W))
1093
1093
  for (var $ = -1; $ <= 1; $ += 1)
1094
- p + $ < 0 || t <= p + $ || K == 0 && $ == 0 || T == n.isDark(i + K, p + $) && (L += 1);
1094
+ p + $ < 0 || t <= p + $ || W == 0 && $ == 0 || T == n.isDark(i + W, p + $) && (L += 1);
1095
1095
  L > 5 && (g += 3 + L - 5);
1096
1096
  }
1097
1097
  for (var i = 0; i < t - 1; i += 1)
@@ -1110,58 +1110,58 @@ function Fr() {
1110
1110
  n.isDark(i, p) && (oe += 1);
1111
1111
  var S = Math.abs(100 * oe / t / t - 50) / 5;
1112
1112
  return g += S * 10, g;
1113
- }, f;
1113
+ }, s;
1114
1114
  }(), x = function() {
1115
- for (var o = new Array(256), b = new Array(256), c = 0; c < 8; c += 1)
1116
- o[c] = 1 << c;
1115
+ for (var u = new Array(256), b = new Array(256), c = 0; c < 8; c += 1)
1116
+ u[c] = 1 << c;
1117
1117
  for (var c = 8; c < 256; c += 1)
1118
- o[c] = o[c - 4] ^ o[c - 5] ^ o[c - 6] ^ o[c - 8];
1118
+ u[c] = u[c - 4] ^ u[c - 5] ^ u[c - 6] ^ u[c - 8];
1119
1119
  for (var c = 0; c < 255; c += 1)
1120
- b[o[c]] = c;
1120
+ b[u[c]] = c;
1121
1121
  var y = {};
1122
- return y.glog = function(f) {
1123
- if (f < 1)
1124
- throw "glog(" + f + ")";
1125
- return b[f];
1126
- }, y.gexp = function(f) {
1127
- for (; f < 0; )
1128
- f += 255;
1129
- for (; f >= 256; )
1130
- f -= 255;
1131
- return o[f];
1122
+ return y.glog = function(s) {
1123
+ if (s < 1)
1124
+ throw "glog(" + s + ")";
1125
+ return b[s];
1126
+ }, y.gexp = function(s) {
1127
+ for (; s < 0; )
1128
+ s += 255;
1129
+ for (; s >= 256; )
1130
+ s -= 255;
1131
+ return u[s];
1132
1132
  }, y;
1133
1133
  }();
1134
- function d(o, b) {
1135
- if (typeof o.length > "u")
1136
- throw o.length + "/" + b;
1134
+ function d(u, b) {
1135
+ if (typeof u.length > "u")
1136
+ throw u.length + "/" + b;
1137
1137
  var c = function() {
1138
- for (var f = 0; f < o.length && o[f] == 0; )
1139
- f += 1;
1140
- for (var w = new Array(o.length - f + b), n = 0; n < o.length - f; n += 1)
1141
- w[n] = o[n + f];
1138
+ for (var s = 0; s < u.length && u[s] == 0; )
1139
+ s += 1;
1140
+ for (var w = new Array(u.length - s + b), n = 0; n < u.length - s; n += 1)
1141
+ w[n] = u[n + s];
1142
1142
  return w;
1143
1143
  }(), y = {};
1144
- return y.getAt = function(f) {
1145
- return c[f];
1144
+ return y.getAt = function(s) {
1145
+ return c[s];
1146
1146
  }, y.getLength = function() {
1147
1147
  return c.length;
1148
- }, y.multiply = function(f) {
1149
- for (var w = new Array(y.getLength() + f.getLength() - 1), n = 0; n < y.getLength(); n += 1)
1150
- for (var t = 0; t < f.getLength(); t += 1)
1151
- w[n + t] ^= x.gexp(x.glog(y.getAt(n)) + x.glog(f.getAt(t)));
1148
+ }, y.multiply = function(s) {
1149
+ for (var w = new Array(y.getLength() + s.getLength() - 1), n = 0; n < y.getLength(); n += 1)
1150
+ for (var t = 0; t < s.getLength(); t += 1)
1151
+ w[n + t] ^= x.gexp(x.glog(y.getAt(n)) + x.glog(s.getAt(t)));
1152
1152
  return d(w, 0);
1153
- }, y.mod = function(f) {
1154
- if (y.getLength() - f.getLength() < 0)
1153
+ }, y.mod = function(s) {
1154
+ if (y.getLength() - s.getLength() < 0)
1155
1155
  return y;
1156
- for (var w = x.glog(y.getAt(0)) - x.glog(f.getAt(0)), n = new Array(y.getLength()), t = 0; t < y.getLength(); t += 1)
1156
+ for (var w = x.glog(y.getAt(0)) - x.glog(s.getAt(0)), n = new Array(y.getLength()), t = 0; t < y.getLength(); t += 1)
1157
1157
  n[t] = y.getAt(t);
1158
- for (var t = 0; t < f.getLength(); t += 1)
1159
- n[t] ^= x.gexp(x.glog(f.getAt(t)) + w);
1160
- return d(n, 0).mod(f);
1158
+ for (var t = 0; t < s.getLength(); t += 1)
1159
+ n[t] ^= x.gexp(x.glog(s.getAt(t)) + w);
1160
+ return d(n, 0).mod(s);
1161
1161
  }, y;
1162
1162
  }
1163
1163
  var A = function() {
1164
- var o = [
1164
+ var u = [
1165
1165
  // L
1166
1166
  // M
1167
1167
  // Q
@@ -1366,60 +1366,60 @@ function Fr() {
1366
1366
  [18, 75, 47, 31, 76, 48],
1367
1367
  [34, 54, 24, 34, 55, 25],
1368
1368
  [20, 45, 15, 61, 46, 16]
1369
- ], b = function(f, w) {
1369
+ ], b = function(s, w) {
1370
1370
  var n = {};
1371
- return n.totalCount = f, n.dataCount = w, n;
1372
- }, c = {}, y = function(f, w) {
1371
+ return n.totalCount = s, n.dataCount = w, n;
1372
+ }, c = {}, y = function(s, w) {
1373
1373
  switch (w) {
1374
- case Z.L:
1375
- return o[(f - 1) * 4 + 0];
1376
- case Z.M:
1377
- return o[(f - 1) * 4 + 1];
1378
- case Z.Q:
1379
- return o[(f - 1) * 4 + 2];
1380
- case Z.H:
1381
- return o[(f - 1) * 4 + 3];
1374
+ case J.L:
1375
+ return u[(s - 1) * 4 + 0];
1376
+ case J.M:
1377
+ return u[(s - 1) * 4 + 1];
1378
+ case J.Q:
1379
+ return u[(s - 1) * 4 + 2];
1380
+ case J.H:
1381
+ return u[(s - 1) * 4 + 3];
1382
1382
  default:
1383
1383
  return;
1384
1384
  }
1385
1385
  };
1386
- return c.getRSBlocks = function(f, w) {
1387
- var n = y(f, w);
1386
+ return c.getRSBlocks = function(s, w) {
1387
+ var n = y(s, w);
1388
1388
  if (typeof n > "u")
1389
- throw "bad rs block @ typeNumber:" + f + "/errorCorrectionLevel:" + w;
1389
+ throw "bad rs block @ typeNumber:" + s + "/errorCorrectionLevel:" + w;
1390
1390
  for (var t = n.length / 3, g = [], i = 0; i < t; i += 1)
1391
- for (var p = n[i * 3 + 0], L = n[i * 3 + 1], T = n[i * 3 + 2], K = 0; K < p; K += 1)
1391
+ for (var p = n[i * 3 + 0], L = n[i * 3 + 1], T = n[i * 3 + 2], W = 0; W < p; W += 1)
1392
1392
  g.push(b(L, T));
1393
1393
  return g;
1394
1394
  }, c;
1395
1395
  }(), C = function() {
1396
- var o = [], b = 0, c = {};
1396
+ var u = [], b = 0, c = {};
1397
1397
  return c.getBuffer = function() {
1398
- return o;
1398
+ return u;
1399
1399
  }, c.getAt = function(y) {
1400
- var f = Math.floor(y / 8);
1401
- return (o[f] >>> 7 - y % 8 & 1) == 1;
1402
- }, c.put = function(y, f) {
1403
- for (var w = 0; w < f; w += 1)
1404
- c.putBit((y >>> f - w - 1 & 1) == 1);
1400
+ var s = Math.floor(y / 8);
1401
+ return (u[s] >>> 7 - y % 8 & 1) == 1;
1402
+ }, c.put = function(y, s) {
1403
+ for (var w = 0; w < s; w += 1)
1404
+ c.putBit((y >>> s - w - 1 & 1) == 1);
1405
1405
  }, c.getLengthInBits = function() {
1406
1406
  return b;
1407
1407
  }, c.putBit = function(y) {
1408
- var f = Math.floor(b / 8);
1409
- o.length <= f && o.push(0), y && (o[f] |= 128 >>> b % 8), b += 1;
1408
+ var s = Math.floor(b / 8);
1409
+ u.length <= s && u.push(0), y && (u[s] |= 128 >>> b % 8), b += 1;
1410
1410
  }, c;
1411
- }, j = function(o) {
1412
- var b = O.MODE_NUMBER, c = o, y = {};
1411
+ }, j = function(u) {
1412
+ var b = O.MODE_NUMBER, c = u, y = {};
1413
1413
  y.getMode = function() {
1414
1414
  return b;
1415
1415
  }, y.getLength = function(n) {
1416
1416
  return c.length;
1417
1417
  }, y.write = function(n) {
1418
1418
  for (var t = c, g = 0; g + 2 < t.length; )
1419
- n.put(f(t.substring(g, g + 3)), 10), g += 3;
1420
- g < t.length && (t.length - g == 1 ? n.put(f(t.substring(g, g + 1)), 4) : t.length - g == 2 && n.put(f(t.substring(g, g + 2)), 7));
1419
+ n.put(s(t.substring(g, g + 3)), 10), g += 3;
1420
+ g < t.length && (t.length - g == 1 ? n.put(s(t.substring(g, g + 1)), 4) : t.length - g == 2 && n.put(s(t.substring(g, g + 2)), 7));
1421
1421
  };
1422
- var f = function(n) {
1422
+ var s = function(n) {
1423
1423
  for (var t = 0, g = 0; g < n.length; g += 1)
1424
1424
  t = t * 10 + w(n.charAt(g));
1425
1425
  return t;
@@ -1429,8 +1429,8 @@ function Fr() {
1429
1429
  throw "illegal char :" + n;
1430
1430
  };
1431
1431
  return y;
1432
- }, D = function(o) {
1433
- var b = O.MODE_ALPHA_NUM, c = o, y = {};
1432
+ }, D = function(u) {
1433
+ var b = O.MODE_ALPHA_NUM, c = u, y = {};
1434
1434
  y.getMode = function() {
1435
1435
  return b;
1436
1436
  }, y.getLength = function(w) {
@@ -1438,12 +1438,12 @@ function Fr() {
1438
1438
  }, y.write = function(w) {
1439
1439
  for (var n = c, t = 0; t + 1 < n.length; )
1440
1440
  w.put(
1441
- f(n.charAt(t)) * 45 + f(n.charAt(t + 1)),
1441
+ s(n.charAt(t)) * 45 + s(n.charAt(t + 1)),
1442
1442
  11
1443
1443
  ), t += 2;
1444
- t < n.length && w.put(f(n.charAt(t)), 6);
1444
+ t < n.length && w.put(s(n.charAt(t)), 6);
1445
1445
  };
1446
- var f = function(w) {
1446
+ var s = function(w) {
1447
1447
  if ("0" <= w && w <= "9")
1448
1448
  return w.charCodeAt(0) - 48;
1449
1449
  if ("A" <= w && w <= "Z")
@@ -1472,18 +1472,18 @@ function Fr() {
1472
1472
  }
1473
1473
  };
1474
1474
  return y;
1475
- }, H = function(o) {
1476
- var b = O.MODE_8BIT_BYTE, c = W.stringToBytes(o), y = {};
1475
+ }, H = function(u) {
1476
+ var b = O.MODE_8BIT_BYTE, c = Z.stringToBytes(u), y = {};
1477
1477
  return y.getMode = function() {
1478
1478
  return b;
1479
- }, y.getLength = function(f) {
1479
+ }, y.getLength = function(s) {
1480
1480
  return c.length;
1481
- }, y.write = function(f) {
1481
+ }, y.write = function(s) {
1482
1482
  for (var w = 0; w < c.length; w += 1)
1483
- f.put(c[w], 8);
1483
+ s.put(c[w], 8);
1484
1484
  }, y;
1485
- }, q = function(o) {
1486
- var b = O.MODE_KANJI, c = W.stringToBytesFuncs.SJIS;
1485
+ }, q = function(u) {
1486
+ var b = O.MODE_KANJI, c = Z.stringToBytesFuncs.SJIS;
1487
1487
  if (!c)
1488
1488
  throw "sjis not supported.";
1489
1489
  (function(w, n) {
@@ -1491,12 +1491,12 @@ function Fr() {
1491
1491
  if (t.length != 2 || (t[0] << 8 | t[1]) != n)
1492
1492
  throw "sjis not supported.";
1493
1493
  })("友", 38726);
1494
- var y = c(o), f = {};
1495
- return f.getMode = function() {
1494
+ var y = c(u), s = {};
1495
+ return s.getMode = function() {
1496
1496
  return b;
1497
- }, f.getLength = function(w) {
1497
+ }, s.getLength = function(w) {
1498
1498
  return ~~(y.length / 2);
1499
- }, f.write = function(w) {
1499
+ }, s.write = function(w) {
1500
1500
  for (var n = y, t = 0; t + 1 < n.length; ) {
1501
1501
  var g = (255 & n[t]) << 8 | 255 & n[t + 1];
1502
1502
  if (33088 <= g && g <= 40956)
@@ -1509,31 +1509,31 @@ function Fr() {
1509
1509
  }
1510
1510
  if (t < n.length)
1511
1511
  throw "illegal char at " + (t + 1);
1512
- }, f;
1512
+ }, s;
1513
1513
  }, B = function() {
1514
- var o = [], b = {};
1514
+ var u = [], b = {};
1515
1515
  return b.writeByte = function(c) {
1516
- o.push(c & 255);
1516
+ u.push(c & 255);
1517
1517
  }, b.writeShort = function(c) {
1518
1518
  b.writeByte(c), b.writeByte(c >>> 8);
1519
- }, b.writeBytes = function(c, y, f) {
1520
- y = y || 0, f = f || c.length;
1521
- for (var w = 0; w < f; w += 1)
1519
+ }, b.writeBytes = function(c, y, s) {
1520
+ y = y || 0, s = s || c.length;
1521
+ for (var w = 0; w < s; w += 1)
1522
1522
  b.writeByte(c[w + y]);
1523
1523
  }, b.writeString = function(c) {
1524
1524
  for (var y = 0; y < c.length; y += 1)
1525
1525
  b.writeByte(c.charCodeAt(y));
1526
1526
  }, b.toByteArray = function() {
1527
- return o;
1527
+ return u;
1528
1528
  }, b.toString = function() {
1529
1529
  var c = "";
1530
1530
  c += "[";
1531
- for (var y = 0; y < o.length; y += 1)
1532
- y > 0 && (c += ","), c += o[y];
1531
+ for (var y = 0; y < u.length; y += 1)
1532
+ y > 0 && (c += ","), c += u[y];
1533
1533
  return c += "]", c;
1534
1534
  }, b;
1535
- }, J = function() {
1536
- var o = 0, b = 0, c = 0, y = "", f = {}, w = function(t) {
1535
+ }, K = function() {
1536
+ var u = 0, b = 0, c = 0, y = "", s = {}, w = function(t) {
1537
1537
  y += String.fromCharCode(n(t & 63));
1538
1538
  }, n = function(t) {
1539
1539
  if (!(t < 0)) {
@@ -1550,34 +1550,34 @@ function Fr() {
1550
1550
  }
1551
1551
  throw "n:" + t;
1552
1552
  };
1553
- return f.writeByte = function(t) {
1554
- for (o = o << 8 | t & 255, b += 8, c += 1; b >= 6; )
1555
- w(o >>> b - 6), b -= 6;
1556
- }, f.flush = function() {
1557
- if (b > 0 && (w(o << 6 - b), o = 0, b = 0), c % 3 != 0)
1553
+ return s.writeByte = function(t) {
1554
+ for (u = u << 8 | t & 255, b += 8, c += 1; b >= 6; )
1555
+ w(u >>> b - 6), b -= 6;
1556
+ }, s.flush = function() {
1557
+ if (b > 0 && (w(u << 6 - b), u = 0, b = 0), c % 3 != 0)
1558
1558
  for (var t = 3 - c % 3, g = 0; g < t; g += 1)
1559
1559
  y += "=";
1560
- }, f.toString = function() {
1560
+ }, s.toString = function() {
1561
1561
  return y;
1562
- }, f;
1563
- }, Q = function(o) {
1564
- var b = o, c = 0, y = 0, f = 0, w = {};
1562
+ }, s;
1563
+ }, Q = function(u) {
1564
+ var b = u, c = 0, y = 0, s = 0, w = {};
1565
1565
  w.read = function() {
1566
- for (; f < 8; ) {
1566
+ for (; s < 8; ) {
1567
1567
  if (c >= b.length) {
1568
- if (f == 0)
1568
+ if (s == 0)
1569
1569
  return -1;
1570
- throw "unexpected end of file./" + f;
1570
+ throw "unexpected end of file./" + s;
1571
1571
  }
1572
1572
  var t = b.charAt(c);
1573
1573
  if (c += 1, t == "=")
1574
- return f = 0, -1;
1574
+ return s = 0, -1;
1575
1575
  if (t.match(/^\s$/))
1576
1576
  continue;
1577
- y = y << 6 | n(t.charCodeAt(0)), f += 6;
1577
+ y = y << 6 | n(t.charCodeAt(0)), s += 6;
1578
1578
  }
1579
- var g = y >>> f - 8 & 255;
1580
- return f -= 8, g;
1579
+ var g = y >>> s - 8 & 255;
1580
+ return s -= 8, g;
1581
1581
  };
1582
1582
  var n = function(t) {
1583
1583
  if (65 <= t && t <= 90)
@@ -1593,10 +1593,10 @@ function Fr() {
1593
1593
  throw "c:" + t;
1594
1594
  };
1595
1595
  return w;
1596
- }, z = function(o, b) {
1597
- var c = o, y = b, f = new Array(o * b), w = {};
1596
+ }, z = function(u, b) {
1597
+ var c = u, y = b, s = new Array(u * b), w = {};
1598
1598
  w.setPixel = function(i, p, L) {
1599
- f[p * c + i] = L;
1599
+ s[p * c + i] = L;
1600
1600
  }, w.write = function(i) {
1601
1601
  i.writeString("GIF87a"), i.writeShort(c), i.writeShort(y), i.writeByte(128), i.writeByte(0), i.writeByte(0), i.writeByte(0), i.writeByte(0), i.writeByte(0), i.writeByte(255), i.writeByte(255), i.writeByte(255), i.writeString(","), i.writeShort(0), i.writeShort(0), i.writeShort(c), i.writeShort(y), i.writeByte(0);
1602
1602
  var p = 2, L = t(p);
@@ -1606,28 +1606,28 @@ function Fr() {
1606
1606
  i.writeByte(L.length - T), i.writeBytes(L, T, L.length - T), i.writeByte(0), i.writeString(";");
1607
1607
  };
1608
1608
  var n = function(i) {
1609
- var p = i, L = 0, T = 0, K = {};
1610
- return K.write = function($, re) {
1609
+ var p = i, L = 0, T = 0, W = {};
1610
+ return W.write = function($, re) {
1611
1611
  if ($ >>> re)
1612
1612
  throw "length over";
1613
1613
  for (; L + re >= 8; )
1614
1614
  p.writeByte(255 & ($ << L | T)), re -= 8 - L, $ >>>= 8 - L, T = 0, L = 0;
1615
1615
  T = $ << L | T, L = L + re;
1616
- }, K.flush = function() {
1616
+ }, W.flush = function() {
1617
1617
  L > 0 && p.writeByte(T);
1618
- }, K;
1618
+ }, W;
1619
1619
  }, t = function(i) {
1620
- for (var p = 1 << i, L = (1 << i) + 1, T = i + 1, K = g(), $ = 0; $ < p; $ += 1)
1621
- K.add(String.fromCharCode($));
1622
- K.add(String.fromCharCode(p)), K.add(String.fromCharCode(L));
1620
+ for (var p = 1 << i, L = (1 << i) + 1, T = i + 1, W = g(), $ = 0; $ < p; $ += 1)
1621
+ W.add(String.fromCharCode($));
1622
+ W.add(String.fromCharCode(p)), W.add(String.fromCharCode(L));
1623
1623
  var re = B(), oe = n(re);
1624
1624
  oe.write(p, T);
1625
- var S = 0, k = String.fromCharCode(f[S]);
1626
- for (S += 1; S < f.length; ) {
1627
- var ue = String.fromCharCode(f[S]);
1628
- S += 1, K.contains(k + ue) ? k = k + ue : (oe.write(K.indexOf(k), T), K.size() < 4095 && (K.size() == 1 << T && (T += 1), K.add(k + ue)), k = ue);
1625
+ var S = 0, k = String.fromCharCode(s[S]);
1626
+ for (S += 1; S < s.length; ) {
1627
+ var ue = String.fromCharCode(s[S]);
1628
+ S += 1, W.contains(k + ue) ? k = k + ue : (oe.write(W.indexOf(k), T), W.size() < 4095 && (W.size() == 1 << T && (T += 1), W.add(k + ue)), k = ue);
1629
1629
  }
1630
- return oe.write(K.indexOf(k), T), oe.write(L, T), oe.flush(), re.toByteArray();
1630
+ return oe.write(W.indexOf(k), T), oe.write(L, T), oe.flush(), re.toByteArray();
1631
1631
  }, g = function() {
1632
1632
  var i = {}, p = 0, L = {};
1633
1633
  return L.add = function(T) {
@@ -1643,23 +1643,23 @@ function Fr() {
1643
1643
  }, L;
1644
1644
  };
1645
1645
  return w;
1646
- }, E = function(o, b, c) {
1647
- for (var y = z(o, b), f = 0; f < b; f += 1)
1648
- for (var w = 0; w < o; w += 1)
1649
- y.setPixel(w, f, c(w, f));
1646
+ }, E = function(u, b, c) {
1647
+ for (var y = z(u, b), s = 0; s < b; s += 1)
1648
+ for (var w = 0; w < u; w += 1)
1649
+ y.setPixel(w, s, c(w, s));
1650
1650
  var n = B();
1651
1651
  y.write(n);
1652
- for (var t = J(), g = n.toByteArray(), i = 0; i < g.length; i += 1)
1652
+ for (var t = K(), g = n.toByteArray(), i = 0; i < g.length; i += 1)
1653
1653
  t.writeByte(g[i]);
1654
1654
  return t.flush(), "data:image/gif;base64," + t;
1655
1655
  };
1656
- return W;
1656
+ return Z;
1657
1657
  }();
1658
1658
  (function() {
1659
- ie.stringToBytesFuncs["UTF-8"] = function(W) {
1660
- function O(Z) {
1661
- for (var U = [], M = 0; M < Z.length; M++) {
1662
- var x = Z.charCodeAt(M);
1659
+ ie.stringToBytesFuncs["UTF-8"] = function(Z) {
1660
+ function O(J) {
1661
+ for (var U = [], M = 0; M < J.length; M++) {
1662
+ var x = J.charCodeAt(M);
1663
1663
  x < 128 ? U.push(x) : x < 2048 ? U.push(
1664
1664
  192 | x >> 6,
1665
1665
  128 | x & 63
@@ -1667,7 +1667,7 @@ function Fr() {
1667
1667
  224 | x >> 12,
1668
1668
  128 | x >> 6 & 63,
1669
1669
  128 | x & 63
1670
- ) : (M++, x = 65536 + ((x & 1023) << 10 | Z.charCodeAt(M) & 1023), U.push(
1670
+ ) : (M++, x = 65536 + ((x & 1023) << 10 | J.charCodeAt(M) & 1023), U.push(
1671
1671
  240 | x >> 18,
1672
1672
  128 | x >> 12 & 63,
1673
1673
  128 | x >> 6 & 63,
@@ -1676,10 +1676,10 @@ function Fr() {
1676
1676
  }
1677
1677
  return U;
1678
1678
  }
1679
- return O(W);
1679
+ return O(Z);
1680
1680
  };
1681
- })(), function(W) {
1682
- V.exports = W();
1681
+ })(), function(Z) {
1682
+ V.exports = Z();
1683
1683
  }(function() {
1684
1684
  return ie;
1685
1685
  });
@@ -1716,7 +1716,7 @@ function Hr() {
1716
1716
  }, X.apply(this, arguments);
1717
1717
  };
1718
1718
  Object.defineProperty(Te, "__esModule", { value: !0 }), Te.QRCode = void 0;
1719
- var ie = $r(), W = Fr(), O = Bt, Z = (
1719
+ var ie = $r(), Z = Fr(), O = Bt, J = (
1720
1720
  /** @class */
1721
1721
  function(U) {
1722
1722
  V(M, U);
@@ -1751,16 +1751,16 @@ function Hr() {
1751
1751
  q.lineWidth = x, q.fillStyle = j, q.strokeStyle = j, A += x / 2, d += x / 2, C -= x, Array.isArray(D) || (D = [D, D, D, D]), D = D.map(function(E) {
1752
1752
  return E = Math.min(E, C / 2), E < 0 ? 0 : E;
1753
1753
  });
1754
- var B = D[0] || 0, J = D[1] || 0, Q = D[2] || 0, z = D[3] || 0;
1755
- q.beginPath(), q.moveTo(d + B, A), q.lineTo(d + C - J, A), J && q.quadraticCurveTo(d + C, A, d + C, A + J), q.lineTo(d + C, A + C - Q), Q && q.quadraticCurveTo(d + C, A + C, d + C - Q, A + C), q.lineTo(d + z, A + C), z && q.quadraticCurveTo(d, A + C, d, A + C - z), q.lineTo(d, A + B), B && q.quadraticCurveTo(d, A, d + B, A), q.closePath(), q.stroke(), H && q.fill();
1754
+ var B = D[0] || 0, K = D[1] || 0, Q = D[2] || 0, z = D[3] || 0;
1755
+ q.beginPath(), q.moveTo(d + B, A), q.lineTo(d + C - K, A), K && q.quadraticCurveTo(d + C, A, d + C, A + K), q.lineTo(d + C, A + C - Q), Q && q.quadraticCurveTo(d + C, A + C, d + C - Q, A + C), q.lineTo(d + z, A + C), z && q.quadraticCurveTo(d, A + C, d, A + C - z), q.lineTo(d, A + B), B && q.quadraticCurveTo(d, A, d + B, A), q.closePath(), q.stroke(), H && q.fill();
1756
1756
  }, M.prototype.drawPositioningPattern = function(x, d, A, C, j, D, H) {
1757
1757
  H === void 0 && (H = [0, 0, 0, 0]);
1758
- var q = Math.ceil(d), B, J;
1759
- typeof H != "number" && !Array.isArray(H) ? (B = H.outer || 0, J = H.inner || 0) : (B = H, J = B);
1758
+ var q = Math.ceil(d), B, K;
1759
+ typeof H != "number" && !Array.isArray(H) ? (B = H.outer || 0, K = H.inner || 0) : (B = H, K = B);
1760
1760
  var Q, z;
1761
1761
  typeof D != "string" ? (Q = D.outer, z = D.inner) : (Q = D, z = D);
1762
- var E = C * d + A, o = j * d + A, b = d * 7;
1763
- this.drawRoundedSquare(q, o, E, b, Q, B, !1, x), b = d * 3, E += d * 2, o += d * 2, this.drawRoundedSquare(q, o, E, b, z, J, !0, x);
1762
+ var E = C * d + A, u = j * d + A, b = d * 7;
1763
+ this.drawRoundedSquare(q, u, E, b, Q, B, !1, x), b = d * 3, E += d * 2, u += d * 2, this.drawRoundedSquare(q, u, E, b, z, K, !0, x);
1764
1764
  }, M.prototype.isInPositioninZone = function(x, d, A) {
1765
1765
  return A.some(function(C) {
1766
1766
  return d >= C.row && d <= C.row + 7 && x >= C.col && x <= C.col + 7;
@@ -1769,8 +1769,8 @@ function Hr() {
1769
1769
  return x / d;
1770
1770
  }, M.prototype.isCoordinateInImage = function(x, d, A, C, j, D, H, q) {
1771
1771
  if (q) {
1772
- var B = 2, J = this.transformPixelLengthIntoNumberOfCells(j, H), Q = this.transformPixelLengthIntoNumberOfCells(D, H), z = this.transformPixelLengthIntoNumberOfCells(A, H) - 1, E = this.transformPixelLengthIntoNumberOfCells(C, H) - 1;
1773
- return d >= J - B && d <= J + z + B && x >= Q - B && x <= Q + E + B;
1772
+ var B = 2, K = this.transformPixelLengthIntoNumberOfCells(j, H), Q = this.transformPixelLengthIntoNumberOfCells(D, H), z = this.transformPixelLengthIntoNumberOfCells(A, H) - 1, E = this.transformPixelLengthIntoNumberOfCells(C, H) - 1;
1773
+ return d >= K - B && d <= K + z + B && x >= Q - B && x <= Q + E + B;
1774
1774
  } else
1775
1775
  return !1;
1776
1776
  }, M.prototype.shouldComponentUpdate = function(x) {
@@ -1780,10 +1780,10 @@ function Hr() {
1780
1780
  }, M.prototype.componentDidUpdate = function() {
1781
1781
  this.update();
1782
1782
  }, M.prototype.update = function() {
1783
- var x, d = this.props, A = d.value, C = d.ecLevel, j = d.enableCORS, D = d.bgColor, H = d.fgColor, q = d.logoImage, B = d.logoOpacity, J = d.logoOnLoad, Q = d.removeQrCodeBehindLogo, z = d.qrStyle, E = d.eyeRadius, o = d.eyeColor, b = d.logoPaddingStyle, c = +this.props.size, y = +this.props.quietZone, f = this.props.logoWidth ? +this.props.logoWidth : 0, w = this.props.logoHeight ? +this.props.logoHeight : 0, n = this.props.logoPadding ? +this.props.logoPadding : 0, t = W(0, C);
1783
+ var x, d = this.props, A = d.value, C = d.ecLevel, j = d.enableCORS, D = d.bgColor, H = d.fgColor, q = d.logoImage, B = d.logoOpacity, K = d.logoOnLoad, Q = d.removeQrCodeBehindLogo, z = d.qrStyle, E = d.eyeRadius, u = d.eyeColor, b = d.logoPaddingStyle, c = +this.props.size, y = +this.props.quietZone, s = this.props.logoWidth ? +this.props.logoWidth : 0, w = this.props.logoHeight ? +this.props.logoHeight : 0, n = this.props.logoPadding ? +this.props.logoPadding : 0, t = Z(0, C);
1784
1784
  t.addData(this.utf16to8(A)), t.make();
1785
- var g = (x = this.canvasRef) === null || x === void 0 ? void 0 : x.current, i = g.getContext("2d"), p = c + 2 * y, L = t.getModuleCount(), T = c / L, K = window.devicePixelRatio || 1;
1786
- g.height = g.width = p * K, i.scale(K, K), i.fillStyle = D, i.fillRect(0, 0, p, p);
1785
+ var g = (x = this.canvasRef) === null || x === void 0 ? void 0 : x.current, i = g.getContext("2d"), p = c + 2 * y, L = t.getModuleCount(), T = c / L, W = window.devicePixelRatio || 1;
1786
+ g.height = g.width = p * W, i.scale(W, W), i.fillStyle = D, i.fillRect(0, 0, p, p);
1787
1787
  var $ = y, re = [
1788
1788
  { row: 0, col: 0 },
1789
1789
  { row: 0, col: L - 7 },
@@ -1812,14 +1812,14 @@ function Hr() {
1812
1812
  i.fillRect(Math.round(k * T) + $, Math.round(S * T) + $, G, se);
1813
1813
  }
1814
1814
  for (var _e = 0; _e < 3; _e++) {
1815
- var s = re[_e], S = s.row, k = s.col, u = E, a = void 0;
1816
- Array.isArray(u) && (u = u[_e]), typeof u == "number" && (u = [u, u, u, u]), o ? Array.isArray(o) ? a = o[_e] : a = o : a = H, this.drawPositioningPattern(i, T, $, S, k, a, u);
1815
+ var o = re[_e], S = o.row, k = o.col, f = E, a = void 0;
1816
+ Array.isArray(f) && (f = f[_e]), typeof f == "number" && (f = [f, f, f, f]), u ? Array.isArray(u) ? a = u[_e] : a = u : a = H, this.drawPositioningPattern(i, T, $, S, k, a, f);
1817
1817
  }
1818
1818
  if (q) {
1819
1819
  var l = new Image();
1820
1820
  j && (l.crossOrigin = "Anonymous"), l.onload = function(h) {
1821
1821
  i.save();
1822
- var _ = f || c * 0.2, R = w || _, I = (c - _) / 2, Y = (c - R) / 2;
1822
+ var _ = s || c * 0.2, R = w || _, I = (c - _) / 2, Y = (c - R) / 2;
1823
1823
  if (Q || n) {
1824
1824
  i.beginPath(), i.strokeStyle = D, i.fillStyle = D;
1825
1825
  var ee = _ + 2 * n, N = R + 2 * n, le = I + $ - n, ve = Y + $ - n;
@@ -1829,7 +1829,7 @@ function Hr() {
1829
1829
  } else
1830
1830
  i.fillRect(le, ve, ee, N);
1831
1831
  }
1832
- i.globalAlpha = B, i.drawImage(l, I + $, Y + $, _, R), i.restore(), J && J(h);
1832
+ i.globalAlpha = B, i.drawImage(l, I + $, Y + $, _, R), i.restore(), K && K(h);
1833
1833
  }, l.src = q;
1834
1834
  }
1835
1835
  }, M.prototype.render = function() {
@@ -1850,7 +1850,7 @@ function Hr() {
1850
1850
  }, M;
1851
1851
  }(O.Component)
1852
1852
  );
1853
- return Te.QRCode = Z, Te;
1853
+ return Te.QRCode = J, Te;
1854
1854
  }
1855
1855
  var Nt = Hr();
1856
1856
  const Ot = () => /* @__PURE__ */ he("div", { className: "v-flex v-items-center v-justify-center", children: [
@@ -1909,7 +1909,7 @@ const Ot = () => /* @__PURE__ */ he("div", { className: "v-flex v-items-center v
1909
1909
  title: V,
1910
1910
  containerClass: X
1911
1911
  }) => {
1912
- const ie = (/* @__PURE__ */ new Date()).getFullYear(), [W, O] = ge(""), [Z, U] = ge(""), [M, x] = ge(!1), {
1912
+ const ie = (/* @__PURE__ */ new Date()).getFullYear(), [Z, O] = ge(""), [J, U] = ge(""), [M, x] = ge(!1), {
1913
1913
  apiUrl: d,
1914
1914
  clientId: A,
1915
1915
  codeChallenge: C,
@@ -1918,18 +1918,18 @@ const Ot = () => /* @__PURE__ */ he("div", { className: "v-flex v-items-center v
1918
1918
  setIsAuthenticating: H,
1919
1919
  isAuthenticating: q,
1920
1920
  token: B,
1921
- setAuthError: J
1921
+ setAuthError: K
1922
1922
  } = Ke(qe);
1923
1923
  Ve(() => {
1924
1924
  if (C && j && D) {
1925
- const E = D.getTime() / 1e3, o = `c=${C},r=${j},e=${E},a=${A}`;
1926
- U(o);
1925
+ const E = D.getTime() / 1e3, u = `c=${C},r=${j},e=${E},a=${A}`;
1926
+ U(u);
1927
1927
  }
1928
1928
  }, [A, j, D, C]);
1929
1929
  const Q = Oe(
1930
1930
  async (E) => {
1931
1931
  try {
1932
- const o = await fetch(
1932
+ const u = await fetch(
1933
1933
  `${d}/v-plus/auth/req?cid=${A}`,
1934
1934
  {
1935
1935
  method: "POST",
@@ -1939,44 +1939,37 @@ const Ot = () => /* @__PURE__ */ he("div", { className: "v-flex v-items-center v
1939
1939
  },
1940
1940
  body: JSON.stringify(E)
1941
1941
  }
1942
- ), b = await o.json();
1943
- if (!o.ok || b.ok === !1) {
1944
- J(
1945
- `Auth request failed: ${b.message || o.status}`
1942
+ ), b = await u.json();
1943
+ if (!u.ok || b.ok === !1) {
1944
+ K(
1945
+ `Auth request failed: ${b.message || u.status}`
1946
1946
  );
1947
1947
  return;
1948
1948
  }
1949
1949
  return b;
1950
- } catch (o) {
1951
- J(`Auth request failed: ${o}`);
1950
+ } catch (u) {
1951
+ K(`Auth request failed: ${u}`);
1952
1952
  }
1953
1953
  },
1954
- [d, A, J]
1954
+ [d, A, K]
1955
1955
  ), z = Oe(async () => {
1956
1956
  x(!0);
1957
1957
  try {
1958
- if (!W) {
1959
- const o = "Invalid login. Email or Abaxx ID is required.";
1960
- window.alert(o), console.error(o);
1958
+ if (!Z) {
1959
+ K("Invalid login. Email or Abaxx ID is required.");
1961
1960
  return;
1962
1961
  }
1963
1962
  const E = await Q({
1964
- alias: W,
1963
+ alias: Z,
1965
1964
  code_challenge: C,
1966
1965
  request_id: j
1967
1966
  });
1968
- if (E != null && E.ok)
1969
- H(!0);
1970
- else if (!(E != null && E.ok) && (E == null ? void 0 : E.message) === "Unable to request auth.") {
1971
- const o = "Invalid login. Please use your existing Email or Abaxx ID.";
1972
- window.alert(o), console.error(o);
1973
- }
1967
+ E != null && E.ok ? H(!0) : !(E != null && E.ok) && (E == null ? void 0 : E.message) === "Unable to request auth." && K("Invalid login. Please use your existing Email or Abaxx ID.");
1974
1968
  } catch (E) {
1975
- const o = "Something went wrong. Please try again later.";
1976
- window.alert(o), console.error(o), console.log(E);
1969
+ K("Something went wrong. Please try again later."), console.error(E);
1977
1970
  }
1978
1971
  x(!1);
1979
- }, [C, j, W, x, H, Q]);
1972
+ }, [C, j, Z, x, H, Q, K]);
1980
1973
  return /* @__PURE__ */ P(Ge, { children: /* @__PURE__ */ he(
1981
1974
  "div",
1982
1975
  {
@@ -2010,10 +2003,10 @@ const Ot = () => /* @__PURE__ */ he("div", { className: "v-flex v-items-center v
2010
2003
  }
2011
2004
  ),
2012
2005
  !B && !q ? /* @__PURE__ */ he(Ge, { children: [
2013
- /* @__PURE__ */ P("div", { className: "v-mb-8", children: j && Z ? /* @__PURE__ */ P(
2006
+ /* @__PURE__ */ P("div", { className: "v-mb-8", children: j && J ? /* @__PURE__ */ P(
2014
2007
  Nt.QRCode,
2015
2008
  {
2016
- value: Z,
2009
+ value: J,
2017
2010
  size: 130,
2018
2011
  fgColor: "#e60100",
2019
2012
  qrStyle: "dots",
@@ -2032,7 +2025,7 @@ const Ot = () => /* @__PURE__ */ he("div", { className: "v-flex v-items-center v
2032
2025
  type: "text",
2033
2026
  className: "v-input v-w-full v-h-10 v-mb-4 v-rounded v-bg-transparent v-text-gray-600 v-border-gray-400 v-border v-px-2 v-text-center",
2034
2027
  placeholder: "Enter Email or Abaxx ID",
2035
- value: W,
2028
+ value: Z,
2036
2029
  onChange: (E) => O(E.target.value),
2037
2030
  disabled: M
2038
2031
  }
@@ -2041,7 +2034,7 @@ const Ot = () => /* @__PURE__ */ he("div", { className: "v-flex v-items-center v
2041
2034
  "button",
2042
2035
  {
2043
2036
  className: "v-button v-h-10 v-w-full v-bg-red v-text-white v-text-base v-font-semibold v-flex v-items-center v-gap-2 v-justify-center",
2044
- disabled: M || !W || !j,
2037
+ disabled: M || !Z || !j,
2045
2038
  onClick: z,
2046
2039
  children: [
2047
2040
  M && /* @__PURE__ */ P(
@@ -2103,9 +2096,9 @@ const Ot = () => /* @__PURE__ */ he("div", { className: "v-flex v-items-center v
2103
2096
  size: V = 130,
2104
2097
  qrColor: X = "#e60100",
2105
2098
  logoImage: ie = "https://content.abaxx.com/assets/static/qr-logo.png",
2106
- logoWidth: W = 40,
2099
+ logoWidth: Z = 40,
2107
2100
  logoHeight: O = 20,
2108
- quietZone: Z = 0,
2101
+ quietZone: J = 0,
2109
2102
  containerClass: U = "",
2110
2103
  showStatus: M = !0,
2111
2104
  checkmarkColor: x = "#c40808"
@@ -2120,7 +2113,7 @@ const Ot = () => /* @__PURE__ */ he("div", { className: "v-flex v-items-center v
2120
2113
  } = Ke(qe);
2121
2114
  return Ve(() => {
2122
2115
  if (j && D && H) {
2123
- const J = H.getTime() / 1e3, Q = `c=${j},r=${D},e=${J},a=${C}`;
2116
+ const K = H.getTime() / 1e3, Q = `c=${j},r=${D},e=${K},a=${C}`;
2124
2117
  A(Q);
2125
2118
  }
2126
2119
  }, [C, D, H, j]), /* @__PURE__ */ P("div", { className: `v-auth-qr-container ${U}`, children: !B && !q ? /* @__PURE__ */ P("div", { className: "v-qr-wrapper", children: D && d ? /* @__PURE__ */ P(
@@ -2131,9 +2124,9 @@ const Ot = () => /* @__PURE__ */ he("div", { className: "v-flex v-items-center v
2131
2124
  fgColor: X,
2132
2125
  qrStyle: "dots",
2133
2126
  logoImage: ie,
2134
- logoWidth: W,
2127
+ logoWidth: Z,
2135
2128
  logoHeight: O,
2136
- quietZone: Z
2129
+ quietZone: J
2137
2130
  }
2138
2131
  ) : /* @__PURE__ */ P(
2139
2132
  "div",
@@ -2169,9 +2162,9 @@ const Ot = () => /* @__PURE__ */ he("div", { className: "v-flex v-items-center v
2169
2162
  inputPlaceholder: V = "Enter Email or Abaxx ID",
2170
2163
  buttonText: X = "Sign In",
2171
2164
  inputHeight: ie = "v-h-10",
2172
- inputWidth: W = "v-w-full",
2165
+ inputWidth: Z = "v-w-full",
2173
2166
  inputTextColor: O = "v-text-gray-600",
2174
- inputBorderColor: Z = "v-border-gray-400",
2167
+ inputBorderColor: J = "v-border-gray-400",
2175
2168
  inputBackgroundColor: U = "v-bg-transparent",
2176
2169
  buttonHeight: M = "v-h-10",
2177
2170
  buttonWidth: x = "v-w-full",
@@ -2181,19 +2174,19 @@ const Ot = () => /* @__PURE__ */ he("div", { className: "v-flex v-items-center v
2181
2174
  checkmarkColor: j = "#c40808"
2182
2175
  }) => {
2183
2176
  const [D, H] = ge(""), [q, B] = ge(!1), {
2184
- apiUrl: J,
2177
+ apiUrl: K,
2185
2178
  clientId: Q,
2186
2179
  codeChallenge: z,
2187
2180
  authRequestId: E,
2188
- setIsAuthenticating: o,
2181
+ setIsAuthenticating: u,
2189
2182
  setAuthError: b,
2190
2183
  isAuthenticating: c,
2191
2184
  token: y
2192
- } = Ke(qe), f = Oe(
2185
+ } = Ke(qe), s = Oe(
2193
2186
  async (n) => {
2194
2187
  try {
2195
2188
  const t = await fetch(
2196
- `${J}/v-plus/auth/req?cid=${Q}`,
2189
+ `${K}/v-plus/auth/req?cid=${Q}`,
2197
2190
  {
2198
2191
  method: "POST",
2199
2192
  headers: {
@@ -2214,42 +2207,35 @@ const Ot = () => /* @__PURE__ */ he("div", { className: "v-flex v-items-center v
2214
2207
  b(`Auth request failed: ${t}`);
2215
2208
  }
2216
2209
  },
2217
- [J, Q, b]
2210
+ [K, Q, b]
2218
2211
  ), w = Oe(async () => {
2219
2212
  B(!0);
2220
2213
  try {
2221
2214
  if (!D) {
2222
- const t = "Invalid login. Email or Abaxx ID is required.";
2223
- window.alert(t), console.error(t);
2215
+ b("Invalid login. Email or Abaxx ID is required.");
2224
2216
  return;
2225
2217
  }
2226
- const n = await f({
2218
+ const n = await s({
2227
2219
  alias: D,
2228
2220
  code_challenge: z,
2229
2221
  request_id: E
2230
2222
  });
2231
- if (n != null && n.ok)
2232
- o(!0);
2233
- else if (!(n != null && n.ok) && (n == null ? void 0 : n.message) === "Unable to request auth.") {
2234
- const t = "Invalid login. Please use your existing Email or Abaxx ID.";
2235
- window.alert(t), console.error(t);
2236
- }
2223
+ n != null && n.ok ? u(!0) : !(n != null && n.ok) && (n == null ? void 0 : n.message) === "Unable to request auth." && b("Invalid login. Please use your existing Email or Abaxx ID.");
2237
2224
  } catch (n) {
2238
- const t = "Something went wrong. Please try again later.";
2239
- window.alert(t), console.error(t), console.log(n);
2225
+ b("Something went wrong. Please try again later."), console.error(n);
2240
2226
  }
2241
2227
  B(!1);
2242
- }, [z, E, D, B, o, f]);
2228
+ }, [z, E, D, B, u, s, b]);
2243
2229
  return /* @__PURE__ */ P("div", { className: `v-auth-email-container ${C}`, children: !y && !c ? /* @__PURE__ */ he("div", { className: "v-min-w-300", children: [
2244
2230
  /* @__PURE__ */ P(
2245
2231
  "input",
2246
2232
  {
2247
2233
  type: "text",
2248
- className: `v-input ${W} ${ie} v-mb-4 v-rounded v-border v-px-2 v-text-center`,
2234
+ className: `v-input ${Z} ${ie} v-mb-4 v-rounded v-border v-px-2 v-text-center`,
2249
2235
  style: {
2250
2236
  backgroundColor: U.startsWith("#") ? U : U === "v-bg-transparent" ? "transparent" : U === "v-bg-white" ? "#ffffff" : "transparent",
2251
2237
  color: O.startsWith("#") ? O : O === "v-text-gray-600" ? "#6b7280" : O === "v-text-black" ? "#000000" : O === "v-text-white" ? "#ffffff" : "#6b7280",
2252
- borderColor: Z.startsWith("#") ? Z : Z === "v-border-gray-400" ? "#9ca3af" : Z === "v-border-blue-400" ? "#60a5fa" : "#9ca3af"
2238
+ borderColor: J.startsWith("#") ? J : J === "v-border-gray-400" ? "#9ca3af" : J === "v-border-blue-400" ? "#60a5fa" : "#9ca3af"
2253
2239
  },
2254
2240
  placeholder: V,
2255
2241
  value: D,