@abaxx_tech/v-integration-react 1.1.1 → 1.1.2-dev.1

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,85 +1,83 @@
1
1
  import { jsx as P, jsxs as he, Fragment as He } from "react/jsx-runtime";
2
2
  import Nr, { createContext as Or, useState as ge, useContext as nt, useRef as Lt, useEffect as Qe, useCallback as Ge } from "react";
3
3
  const Ve = Or({}), qr = ({
4
- appId: W,
5
- clientId: X,
6
- apiUrl: ie,
7
- children: V
4
+ clientId: K,
5
+ apiUrl: X,
6
+ children: ie
8
7
  }) => {
9
- const [O, Y] = ge(""), [$, M] = ge(""), [b, g] = ge(!1), [A, C] = ge(""), [F, E] = ge(""), [U, N] = ge(/* @__PURE__ */ new Date()), [S, Z] = ge(""), [Q, z] = ge(null), [H, o] = ge(null);
8
+ const [W, O] = ge(""), [Y, F] = ge(""), [M, x] = ge(!1), [d, A] = ge(""), [C, U] = ge(""), [D, H] = ge(/* @__PURE__ */ new Date()), [q, N] = ge(""), [Z, G] = ge(null), [z, R] = ge(null);
10
9
  return /* @__PURE__ */ P(
11
10
  Ve.Provider,
12
11
  {
13
12
  value: {
14
- appId: W,
15
- apiUrl: ie,
16
- clientId: X,
17
- identity: O,
18
- setIdentity: Y,
19
- authRequestId: $,
20
- setAuthRequestId: M,
21
- isAuthenticating: b,
22
- setIsAuthenticating: g,
23
- codeVerifier: A,
24
- setCodeVerifier: C,
25
- codeChallenge: F,
26
- setCodeChallenge: E,
27
- authCode: S,
28
- setAuthCode: Z,
29
- authRequestIdExpires: U,
30
- setAuthRequestIdExpires: N,
31
- token: Q,
32
- setToken: z,
33
- authError: H,
34
- setAuthError: o
13
+ apiUrl: X,
14
+ clientId: K,
15
+ identity: W,
16
+ setIdentity: O,
17
+ authRequestId: Y,
18
+ setAuthRequestId: F,
19
+ isAuthenticating: M,
20
+ setIsAuthenticating: x,
21
+ codeVerifier: d,
22
+ setCodeVerifier: A,
23
+ codeChallenge: C,
24
+ setCodeChallenge: U,
25
+ authCode: q,
26
+ setAuthCode: N,
27
+ authRequestIdExpires: D,
28
+ setAuthRequestIdExpires: H,
29
+ token: Z,
30
+ setToken: G,
31
+ authError: z,
32
+ setAuthError: R
35
33
  },
36
- children: V
34
+ children: ie
37
35
  }
38
36
  );
39
37
  };
40
- function jr(W) {
41
- const X = new Uint8Array(W);
38
+ function jr(K) {
39
+ const X = new Uint8Array(K);
42
40
  return window.crypto.getRandomValues(X), X;
43
41
  }
44
- function Pt(W) {
45
- const X = Array.from(W);
42
+ function Pt(K) {
43
+ const X = Array.from(K);
46
44
  return btoa(String.fromCharCode(...X)).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
47
45
  }
48
46
  function $r() {
49
47
  const {
50
- apiUrl: W,
48
+ apiUrl: K,
51
49
  clientId: X,
52
50
  authRequestId: ie,
53
51
  // results of the successful auth
54
- setIdentity: V,
52
+ setIdentity: W,
55
53
  authCode: O,
56
54
  setAuthCode: Y,
57
55
  // results of the successful begin auth
58
- setAuthRequestId: $,
56
+ setAuthRequestId: F,
59
57
  setAuthRequestIdExpires: M,
60
- setCodeChallenge: b,
61
- setCodeVerifier: g,
58
+ setCodeChallenge: x,
59
+ setCodeVerifier: d,
62
60
  codeChallenge: A,
63
61
  codeVerifier: C,
64
- setIsAuthenticating: F,
65
- token: E,
66
- setToken: U,
67
- setAuthError: N
68
- } = nt(Ve), S = Lt(null), Z = Lt(""), Q = (H) => {
62
+ setIsAuthenticating: U,
63
+ token: D,
64
+ setToken: H,
65
+ setAuthError: q
66
+ } = nt(Ve), N = Lt(null), Z = Lt(""), G = (R) => {
69
67
  try {
70
68
  let o;
71
69
  try {
72
- o = JSON.parse(H.data);
70
+ o = JSON.parse(R.data);
73
71
  } catch {
74
- o = { type: H.type, message: H.data };
72
+ o = { type: R.type, message: R.data };
75
73
  }
76
- switch (H.type) {
74
+ switch (R.type) {
77
75
  case "start": {
78
- o.request_id && o.expires && ($(o.request_id), Z.current = o.request_id, M(new Date(o.expires)));
76
+ o.request_id && o.expires && (F(o.request_id), Z.current = o.request_id, M(new Date(o.expires)));
79
77
  break;
80
78
  }
81
79
  case "approved": {
82
- o.code && o.identity && o.approved && o.request_id && o.request_id == Z.current && (S.current && (console.info("Closing SSE connection after approval"), S.current.close(), S.current = null), Y(o.code), V(o.identity), F(!0));
80
+ o.code && o.identity && o.approved && o.request_id && o.request_id == Z.current && (N.current && (console.info("Closing SSE connection after approval"), N.current.close(), N.current = null), Y(o.code), W(o.identity), U(!0));
83
81
  break;
84
82
  }
85
83
  default:
@@ -92,105 +90,104 @@ function $r() {
92
90
  Qe(() => {
93
91
  if (A)
94
92
  return;
95
- let H = !1;
93
+ let R = !1;
96
94
  return (async () => {
97
- const p = jr(64), v = await window.crypto.subtle.digest("SHA-256", p);
98
- if (!H) {
99
- const x = Pt(new Uint8Array(v)), f = Pt(p);
100
- b(x), g(f);
95
+ const b = jr(64), c = await window.crypto.subtle.digest("SHA-256", b);
96
+ if (!R) {
97
+ const y = Pt(new Uint8Array(c)), f = Pt(b);
98
+ x(y), d(f);
101
99
  }
102
100
  })(), () => {
103
- H = !0;
101
+ R = !0;
104
102
  };
105
103
  }, [A]), Qe(() => {
106
- if (E) {
107
- S.current && (console.info("Closing existing SSE connection"), S.current.close(), S.current = null);
104
+ if (D) {
105
+ N.current && (console.info("Closing existing SSE connection"), N.current.close(), N.current = null);
108
106
  return;
109
107
  }
110
- if (!(!A || S.current))
108
+ if (!(!A || N.current))
111
109
  try {
112
- const H = `${W}/v-plus/auth/start?cid=${X}`, o = new EventSource(H);
113
- return S.current = o, o.onmessage = Q, o.addEventListener("start", Q), o.addEventListener("approved", Q), o.onerror = () => {
114
- if (E || !S.current) {
115
- console.info("SSE connection closed"), S.current && (S.current.close(), S.current = null);
110
+ const R = `${K}/v-plus/auth/start?cid=${X}`, o = new EventSource(R);
111
+ return N.current = o, o.onmessage = G, o.addEventListener("start", G), o.addEventListener("approved", G), o.onerror = () => {
112
+ if (D || !N.current) {
113
+ console.info("SSE connection closed"), N.current && (N.current.close(), N.current = null);
116
114
  return;
117
115
  }
118
- E || console.info("Waiting for authentication...");
116
+ D || console.info("Waiting for authentication...");
119
117
  }, () => {
120
- o && (o.close(), S.current = null);
118
+ o && (o.close(), N.current = null);
121
119
  };
122
- } catch (H) {
123
- console.error("SSE connection setup failed:", H), S.current = null;
120
+ } catch (R) {
121
+ console.error("SSE connection setup failed:", R), N.current = null;
124
122
  }
125
- }, [E, A, W, X]);
126
- const z = Ge(async (H, o, p) => {
123
+ }, [D, A, K, X]);
124
+ const z = Ge(async (R, o, b) => {
127
125
  try {
128
- const x = await (await fetch(`${W}/v-plus/auth/token?cid=${X}`, {
126
+ const y = await (await fetch(`${K}/v-plus/auth/token?cid=${X}`, {
129
127
  method: "POST",
130
128
  headers: {
131
129
  "Content-Type": "application/json"
132
130
  },
133
131
  body: JSON.stringify({
134
- auth_code: H,
132
+ auth_code: R,
135
133
  request_id: o,
136
- code_verifier: p
134
+ code_verifier: b
137
135
  })
138
136
  })).json();
139
- if (x.token)
140
- U(x.token), F(!1);
137
+ if (y.token)
138
+ H(y.token), U(!1);
141
139
  else
142
140
  throw new Error("No token received");
143
- } catch (v) {
144
- console.error("Error fetching token:", v), F(!1), N(`Failed to obtain auth token: ${v}`), Y("");
141
+ } catch (c) {
142
+ console.error("Error fetching token:", c), U(!1), q(`Failed to obtain auth token: ${c}`), Y("");
145
143
  }
146
- }, [W, X]);
144
+ }, [K, X]);
147
145
  return Qe(() => {
148
146
  O && z(O, ie, C);
149
147
  }, [O, C, ie]), null;
150
148
  }
151
149
  const Vr = ({
152
- appId: W,
153
- clientId: X,
154
- apiUrl: ie,
155
- children: V
156
- }) => /* @__PURE__ */ he(qr, { appId: W, apiUrl: ie, clientId: X, children: [
150
+ clientId: K,
151
+ apiUrl: X,
152
+ children: ie
153
+ }) => /* @__PURE__ */ he(qr, { apiUrl: X, clientId: K, children: [
157
154
  /* @__PURE__ */ P($r, {}),
158
- V
155
+ ie
159
156
  ] });
160
157
  var rt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Te = {}, Ue = { exports: {} };
161
158
  Ue.exports;
162
159
  var Dt;
163
160
  function Fr() {
164
- return Dt || (Dt = 1, function(W, X) {
165
- var ie = 200, V = "__lodash_hash_undefined__", O = 1, Y = 2, $ = 9007199254740991, M = "[object Arguments]", b = "[object Array]", g = "[object AsyncFunction]", A = "[object Boolean]", C = "[object Date]", F = "[object Error]", E = "[object Function]", U = "[object GeneratorFunction]", N = "[object Map]", S = "[object Number]", Z = "[object Null]", Q = "[object Object]", z = "[object Promise]", H = "[object Proxy]", o = "[object RegExp]", p = "[object Set]", v = "[object String]", x = "[object Symbol]", f = "[object Undefined]", w = "[object WeakMap]", n = "[object ArrayBuffer]", t = "[object DataView]", h = "[object Float32Array]", i = "[object Float64Array]", y = "[object Int8Array]", L = "[object Int16Array]", T = "[object Int32Array]", K = "[object Uint8Array]", q = "[object Uint8ClampedArray]", re = "[object Uint16Array]", oe = "[object Uint32Array]", D = /[\\^$.*+?()[\]{}|]/g, k = /^\[object .+?Constructor\]$/, ue = /^(?:0|[1-9]\d*)$/, G = {};
166
- G[h] = G[i] = G[y] = G[L] = G[T] = G[K] = G[q] = G[re] = G[oe] = !0, G[M] = G[b] = G[n] = G[A] = G[t] = G[C] = G[F] = G[E] = G[N] = G[S] = G[Q] = G[o] = G[p] = G[v] = G[w] = !1;
167
- var se = typeof rt == "object" && rt && rt.Object === Object && rt, _e = typeof self == "object" && self && self.Object === Object && self, s = se || _e || Function("return this")(), u = X && !X.nodeType && X, a = u && !0 && W && !W.nodeType && W, l = a && a.exports === u, d = l && se.process, _ = function() {
161
+ return Dt || (Dt = 1, function(K, X) {
162
+ var ie = 200, W = "__lodash_hash_undefined__", O = 1, Y = 2, F = 9007199254740991, M = "[object Arguments]", x = "[object Array]", d = "[object AsyncFunction]", A = "[object Boolean]", C = "[object Date]", U = "[object Error]", D = "[object Function]", H = "[object GeneratorFunction]", q = "[object Map]", N = "[object Number]", Z = "[object Null]", G = "[object Object]", z = "[object Promise]", R = "[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]", V = "[object Uint8Array]", j = "[object Uint8ClampedArray]", re = "[object Uint16Array]", oe = "[object Uint32Array]", k = /[\\^$.*+?()[\]{}|]/g, B = /^\[object .+?Constructor\]$/, ue = /^(?:0|[1-9]\d*)$/, Q = {};
163
+ Q[g] = Q[i] = Q[p] = Q[L] = Q[T] = Q[V] = Q[j] = Q[re] = Q[oe] = !0, Q[M] = Q[x] = Q[n] = Q[A] = Q[t] = Q[C] = Q[U] = Q[D] = Q[q] = Q[N] = Q[G] = Q[o] = Q[b] = Q[c] = Q[w] = !1;
164
+ var se = typeof rt == "object" && rt && rt.Object === Object && rt, _e = typeof self == "object" && self && self.Object === Object && self, s = se || _e || Function("return this")(), u = X && !X.nodeType && X, a = u && !0 && K && !K.nodeType && K, l = a && a.exports === u, h = l && se.process, _ = function() {
168
165
  try {
169
- return d && d.binding && d.binding("util");
166
+ return h && h.binding && h.binding("util");
170
167
  } catch {
171
168
  }
172
- }(), R = _ && _.isTypedArray;
169
+ }(), E = _ && _.isTypedArray;
173
170
  function I(e, r) {
174
- for (var c = -1, m = e == null ? 0 : e.length, te = 0, j = []; ++c < m; ) {
175
- var ae = e[c];
176
- r(ae, c, e) && (j[te++] = ae);
171
+ for (var v = -1, m = e == null ? 0 : e.length, te = 0, $ = []; ++v < m; ) {
172
+ var ae = e[v];
173
+ r(ae, v, e) && ($[te++] = ae);
177
174
  }
178
- return j;
175
+ return $;
179
176
  }
180
177
  function J(e, r) {
181
- for (var c = -1, m = r.length, te = e.length; ++c < m; )
182
- e[te + c] = r[c];
178
+ for (var v = -1, m = r.length, te = e.length; ++v < m; )
179
+ e[te + v] = r[v];
183
180
  return e;
184
181
  }
185
182
  function ee(e, r) {
186
- for (var c = -1, m = e == null ? 0 : e.length; ++c < m; )
187
- if (r(e[c], c, e))
183
+ for (var v = -1, m = e == null ? 0 : e.length; ++v < m; )
184
+ if (r(e[v], v, e))
188
185
  return !0;
189
186
  return !1;
190
187
  }
191
- function B(e, r) {
192
- for (var c = -1, m = Array(e); ++c < e; )
193
- m[c] = r(c);
188
+ function S(e, r) {
189
+ for (var v = -1, m = Array(e); ++v < e; )
190
+ m[v] = r(v);
194
191
  return m;
195
192
  }
196
193
  function le(e) {
@@ -205,31 +202,31 @@ function Fr() {
205
202
  return e == null ? void 0 : e[r];
206
203
  }
207
204
  function Be(e) {
208
- var r = -1, c = Array(e.size);
205
+ var r = -1, v = Array(e.size);
209
206
  return e.forEach(function(m, te) {
210
- c[++r] = [te, m];
211
- }), c;
207
+ v[++r] = [te, m];
208
+ }), v;
212
209
  }
213
210
  function Ke(e, r) {
214
- return function(c) {
215
- return e(r(c));
211
+ return function(v) {
212
+ return e(r(v));
216
213
  };
217
214
  }
218
215
  function Oe(e) {
219
- var r = -1, c = Array(e.size);
216
+ var r = -1, v = Array(e.size);
220
217
  return e.forEach(function(m) {
221
- c[++r] = m;
222
- }), c;
218
+ v[++r] = m;
219
+ }), v;
223
220
  }
224
221
  var Se = Array.prototype, Ot = Function.prototype, We = Object.prototype, at = s["__core-js_shared__"], ct = Ot.toString, be = We.hasOwnProperty, ht = function() {
225
222
  var e = /[^.]+$/.exec(at && at.keys && at.keys.IE_PROTO || "");
226
223
  return e ? "Symbol(src)_1." + e : "";
227
224
  }(), dt = We.toString, qt = RegExp(
228
- "^" + ct.call(be).replace(D, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
225
+ "^" + ct.call(be).replace(k, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
229
226
  ), gt = l ? s.Buffer : void 0, Ze = s.Symbol, pt = s.Uint8Array, yt = We.propertyIsEnumerable, jt = Se.splice, Ee = Ze ? Ze.toStringTag : void 0, wt = Object.getOwnPropertySymbols, $t = gt ? gt.isBuffer : void 0, Ft = Ke(Object.keys, Object), it = Ne(s, "DataView"), qe = Ne(s, "Map"), ot = Ne(s, "Promise"), st = Ne(s, "Set"), ft = Ne(s, "WeakMap"), je = Ne(Object, "create"), Ut = Pe(it), Ht = Pe(qe), Qt = Pe(ot), Gt = Pe(st), Vt = Pe(ft), xt = Ze ? Ze.prototype : void 0, ut = xt ? xt.valueOf : void 0;
230
227
  function Re(e) {
231
- var r = -1, c = e == null ? 0 : e.length;
232
- for (this.clear(); ++r < c; ) {
228
+ var r = -1, v = e == null ? 0 : e.length;
229
+ for (this.clear(); ++r < v; ) {
233
230
  var m = e[r];
234
231
  this.set(m[0], m[1]);
235
232
  }
@@ -244,8 +241,8 @@ function Fr() {
244
241
  function Zt(e) {
245
242
  var r = this.__data__;
246
243
  if (je) {
247
- var c = r[e];
248
- return c === V ? void 0 : c;
244
+ var v = r[e];
245
+ return v === W ? void 0 : v;
249
246
  }
250
247
  return be.call(r, e) ? r[e] : void 0;
251
248
  }
@@ -254,13 +251,13 @@ function Fr() {
254
251
  return je ? r[e] !== void 0 : be.call(r, e);
255
252
  }
256
253
  function Yt(e, r) {
257
- var c = this.__data__;
258
- return this.size += this.has(e) ? 0 : 1, c[e] = je && r === void 0 ? V : r, this;
254
+ var v = this.__data__;
255
+ return this.size += this.has(e) ? 0 : 1, v[e] = je && r === void 0 ? W : r, this;
259
256
  }
260
257
  Re.prototype.clear = Kt, Re.prototype.delete = Wt, Re.prototype.get = Zt, Re.prototype.has = Jt, Re.prototype.set = Yt;
261
258
  function Ae(e) {
262
- var r = -1, c = e == null ? 0 : e.length;
263
- for (this.clear(); ++r < c; ) {
259
+ var r = -1, v = e == null ? 0 : e.length;
260
+ for (this.clear(); ++r < v; ) {
264
261
  var m = e[r];
265
262
  this.set(m[0], m[1]);
266
263
  }
@@ -269,27 +266,27 @@ function Fr() {
269
266
  this.__data__ = [], this.size = 0;
270
267
  }
271
268
  function zt(e) {
272
- var r = this.__data__, c = Ye(r, e);
273
- if (c < 0)
269
+ var r = this.__data__, v = Ye(r, e);
270
+ if (v < 0)
274
271
  return !1;
275
272
  var m = r.length - 1;
276
- return c == m ? r.pop() : jt.call(r, c, 1), --this.size, !0;
273
+ return v == m ? r.pop() : jt.call(r, v, 1), --this.size, !0;
277
274
  }
278
275
  function er(e) {
279
- var r = this.__data__, c = Ye(r, e);
280
- return c < 0 ? void 0 : r[c][1];
276
+ var r = this.__data__, v = Ye(r, e);
277
+ return v < 0 ? void 0 : r[v][1];
281
278
  }
282
279
  function tr(e) {
283
280
  return Ye(this.__data__, e) > -1;
284
281
  }
285
282
  function rr(e, r) {
286
- var c = this.__data__, m = Ye(c, e);
287
- return m < 0 ? (++this.size, c.push([e, r])) : c[m][1] = r, this;
283
+ var v = this.__data__, m = Ye(v, e);
284
+ return m < 0 ? (++this.size, v.push([e, r])) : v[m][1] = r, this;
288
285
  }
289
286
  Ae.prototype.clear = Xt, Ae.prototype.delete = zt, Ae.prototype.get = er, Ae.prototype.has = tr, Ae.prototype.set = rr;
290
287
  function Le(e) {
291
- var r = -1, c = e == null ? 0 : e.length;
292
- for (this.clear(); ++r < c; ) {
288
+ var r = -1, v = e == null ? 0 : e.length;
289
+ for (this.clear(); ++r < v; ) {
293
290
  var m = e[r];
294
291
  this.set(m[0], m[1]);
295
292
  }
@@ -312,17 +309,17 @@ function Fr() {
312
309
  return Xe(this, e).has(e);
313
310
  }
314
311
  function sr(e, r) {
315
- var c = Xe(this, e), m = c.size;
316
- return c.set(e, r), this.size += c.size == m ? 0 : 1, this;
312
+ var v = Xe(this, e), m = v.size;
313
+ return v.set(e, r), this.size += v.size == m ? 0 : 1, this;
317
314
  }
318
315
  Le.prototype.clear = nr, Le.prototype.delete = ar, Le.prototype.get = ir, Le.prototype.has = or, Le.prototype.set = sr;
319
316
  function Je(e) {
320
- var r = -1, c = e == null ? 0 : e.length;
321
- for (this.__data__ = new Le(); ++r < c; )
317
+ var r = -1, v = e == null ? 0 : e.length;
318
+ for (this.__data__ = new Le(); ++r < v; )
322
319
  this.add(e[r]);
323
320
  }
324
321
  function fr(e) {
325
- return this.__data__.set(e, V), this;
322
+ return this.__data__.set(e, W), this;
326
323
  }
327
324
  function ur(e) {
328
325
  return this.__data__.has(e);
@@ -336,8 +333,8 @@ function Fr() {
336
333
  this.__data__ = new Ae(), this.size = 0;
337
334
  }
338
335
  function vr(e) {
339
- var r = this.__data__, c = r.delete(e);
340
- return this.size = r.size, c;
336
+ var r = this.__data__, v = r.delete(e);
337
+ return this.size = r.size, v;
341
338
  }
342
339
  function cr(e) {
343
340
  return this.__data__.get(e);
@@ -346,35 +343,35 @@ function Fr() {
346
343
  return this.__data__.has(e);
347
344
  }
348
345
  function dr(e, r) {
349
- var c = this.__data__;
350
- if (c instanceof Ae) {
351
- var m = c.__data__;
346
+ var v = this.__data__;
347
+ if (v instanceof Ae) {
348
+ var m = v.__data__;
352
349
  if (!qe || m.length < ie - 1)
353
- return m.push([e, r]), this.size = ++c.size, this;
354
- c = this.__data__ = new Le(m);
350
+ return m.push([e, r]), this.size = ++v.size, this;
351
+ v = this.__data__ = new Le(m);
355
352
  }
356
- return c.set(e, r), this.size = c.size, this;
353
+ return v.set(e, r), this.size = v.size, this;
357
354
  }
358
355
  Ce.prototype.clear = lr, Ce.prototype.delete = vr, Ce.prototype.get = cr, Ce.prototype.has = hr, Ce.prototype.set = dr;
359
356
  function gr(e, r) {
360
- var c = ze(e), m = !c && Lr(e), te = !c && !m && lt(e), j = !c && !m && !te && Et(e), ae = c || m || te || j, fe = ae ? B(e.length, String) : [], ce = fe.length;
357
+ var v = ze(e), m = !v && Lr(e), te = !v && !m && lt(e), $ = !v && !m && !te && Et(e), ae = v || m || te || $, fe = ae ? S(e.length, String) : [], ce = fe.length;
361
358
  for (var ne in e)
362
359
  be.call(e, ne) && !(ae && // Safari 9 has enumerable `arguments.length` in strict mode.
363
360
  (ne == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
364
361
  te && (ne == "offset" || ne == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
365
- j && (ne == "buffer" || ne == "byteLength" || ne == "byteOffset") || // Skip index properties.
362
+ $ && (ne == "buffer" || ne == "byteLength" || ne == "byteOffset") || // Skip index properties.
366
363
  Cr(ne, ce))) && fe.push(ne);
367
364
  return fe;
368
365
  }
369
366
  function Ye(e, r) {
370
- for (var c = e.length; c--; )
371
- if (Tt(e[c][0], r))
372
- return c;
367
+ for (var v = e.length; v--; )
368
+ if (Tt(e[v][0], r))
369
+ return v;
373
370
  return -1;
374
371
  }
375
- function pr(e, r, c) {
372
+ function pr(e, r, v) {
376
373
  var m = r(e);
377
- return ze(e) ? m : J(m, c(e));
374
+ return ze(e) ? m : J(m, v(e));
378
375
  }
379
376
  function $e(e) {
380
377
  return e == null ? e === void 0 ? f : Z : Ee && Ee in Object(e) ? mr(e) : Rr(e);
@@ -382,58 +379,58 @@ function Fr() {
382
379
  function bt(e) {
383
380
  return Fe(e) && $e(e) == M;
384
381
  }
385
- function _t(e, r, c, m, te) {
386
- return e === r ? !0 : e == null || r == null || !Fe(e) && !Fe(r) ? e !== e && r !== r : yr(e, r, c, m, _t, te);
382
+ function _t(e, r, v, m, te) {
383
+ return e === r ? !0 : e == null || r == null || !Fe(e) && !Fe(r) ? e !== e && r !== r : yr(e, r, v, m, _t, te);
387
384
  }
388
- function yr(e, r, c, m, te, j) {
389
- var ae = ze(e), fe = ze(r), ce = ae ? b : Me(e), ne = fe ? b : Me(r);
390
- ce = ce == M ? Q : ce, ne = ne == M ? Q : ne;
391
- var pe = ce == Q, xe = ne == Q, de = ce == ne;
385
+ function yr(e, r, v, m, te, $) {
386
+ var ae = ze(e), fe = ze(r), ce = ae ? x : Me(e), ne = fe ? x : Me(r);
387
+ ce = ce == M ? G : ce, ne = ne == M ? G : ne;
388
+ var pe = ce == G, xe = ne == G, de = ce == ne;
392
389
  if (de && lt(e)) {
393
390
  if (!lt(r))
394
391
  return !1;
395
392
  ae = !0, pe = !1;
396
393
  }
397
394
  if (de && !pe)
398
- return j || (j = new Ce()), ae || Et(e) ? At(e, r, c, m, te, j) : _r(e, r, ce, c, m, te, j);
399
- if (!(c & O)) {
395
+ return $ || ($ = new Ce()), ae || Et(e) ? At(e, r, v, m, te, $) : _r(e, r, ce, v, m, te, $);
396
+ if (!(v & O)) {
400
397
  var ye = pe && be.call(e, "__wrapped__"), we = xe && be.call(r, "__wrapped__");
401
398
  if (ye || we) {
402
399
  var Ie = ye ? e.value() : e, me = we ? r.value() : r;
403
- return j || (j = new Ce()), te(Ie, me, c, m, j);
400
+ return $ || ($ = new Ce()), te(Ie, me, v, m, $);
404
401
  }
405
402
  }
406
- return de ? (j || (j = new Ce()), Ar(e, r, c, m, te, j)) : !1;
403
+ return de ? ($ || ($ = new Ce()), Ar(e, r, v, m, te, $)) : !1;
407
404
  }
408
405
  function wr(e) {
409
406
  if (!It(e) || Ir(e))
410
407
  return !1;
411
- var r = Ct(e) ? qt : k;
408
+ var r = Ct(e) ? qt : B;
412
409
  return r.test(Pe(e));
413
410
  }
414
411
  function xr(e) {
415
- return Fe(e) && Mt(e.length) && !!G[$e(e)];
412
+ return Fe(e) && Mt(e.length) && !!Q[$e(e)];
416
413
  }
417
414
  function br(e) {
418
415
  if (!Er(e))
419
416
  return Ft(e);
420
417
  var r = [];
421
- for (var c in Object(e))
422
- be.call(e, c) && c != "constructor" && r.push(c);
418
+ for (var v in Object(e))
419
+ be.call(e, v) && v != "constructor" && r.push(v);
423
420
  return r;
424
421
  }
425
- function At(e, r, c, m, te, j) {
426
- var ae = c & O, fe = e.length, ce = r.length;
422
+ function At(e, r, v, m, te, $) {
423
+ var ae = v & O, fe = e.length, ce = r.length;
427
424
  if (fe != ce && !(ae && ce > fe))
428
425
  return !1;
429
- var ne = j.get(e);
430
- if (ne && j.get(r))
426
+ var ne = $.get(e);
427
+ if (ne && $.get(r))
431
428
  return ne == r;
432
- var pe = -1, xe = !0, de = c & Y ? new Je() : void 0;
433
- for (j.set(e, r), j.set(r, e); ++pe < fe; ) {
429
+ var pe = -1, xe = !0, de = v & Y ? new Je() : void 0;
430
+ for ($.set(e, r), $.set(r, e); ++pe < fe; ) {
434
431
  var ye = e[pe], we = r[pe];
435
432
  if (m)
436
- var Ie = ae ? m(we, ye, pe, r, e, j) : m(ye, we, pe, e, r, j);
433
+ var Ie = ae ? m(we, ye, pe, r, e, $) : m(ye, we, pe, e, r, $);
437
434
  if (Ie !== void 0) {
438
435
  if (Ie)
439
436
  continue;
@@ -442,39 +439,39 @@ function Fr() {
442
439
  }
443
440
  if (de) {
444
441
  if (!ee(r, function(me, De) {
445
- if (!ve(de, De) && (ye === me || te(ye, me, c, m, j)))
442
+ if (!ve(de, De) && (ye === me || te(ye, me, v, m, $)))
446
443
  return de.push(De);
447
444
  })) {
448
445
  xe = !1;
449
446
  break;
450
447
  }
451
- } else if (!(ye === we || te(ye, we, c, m, j))) {
448
+ } else if (!(ye === we || te(ye, we, v, m, $))) {
452
449
  xe = !1;
453
450
  break;
454
451
  }
455
452
  }
456
- return j.delete(e), j.delete(r), xe;
453
+ return $.delete(e), $.delete(r), xe;
457
454
  }
458
- function _r(e, r, c, m, te, j, ae) {
459
- switch (c) {
455
+ function _r(e, r, v, m, te, $, ae) {
456
+ switch (v) {
460
457
  case t:
461
458
  if (e.byteLength != r.byteLength || e.byteOffset != r.byteOffset)
462
459
  return !1;
463
460
  e = e.buffer, r = r.buffer;
464
461
  case n:
465
- return !(e.byteLength != r.byteLength || !j(new pt(e), new pt(r)));
462
+ return !(e.byteLength != r.byteLength || !$(new pt(e), new pt(r)));
466
463
  case A:
467
464
  case C:
468
- case S:
465
+ case N:
469
466
  return Tt(+e, +r);
470
- case F:
467
+ case U:
471
468
  return e.name == r.name && e.message == r.message;
472
469
  case o:
473
- case v:
470
+ case c:
474
471
  return e == r + "";
475
- case N:
472
+ case q:
476
473
  var fe = Be;
477
- case p:
474
+ case b:
478
475
  var ce = m & O;
479
476
  if (fe || (fe = Oe), e.size != r.size && !ce)
480
477
  return !1;
@@ -482,16 +479,16 @@ function Fr() {
482
479
  if (ne)
483
480
  return ne == r;
484
481
  m |= Y, ae.set(e, r);
485
- var pe = At(fe(e), fe(r), m, te, j, ae);
482
+ var pe = At(fe(e), fe(r), m, te, $, ae);
486
483
  return ae.delete(e), pe;
487
- case x:
484
+ case y:
488
485
  if (ut)
489
486
  return ut.call(e) == ut.call(r);
490
487
  }
491
488
  return !1;
492
489
  }
493
- function Ar(e, r, c, m, te, j) {
494
- var ae = c & O, fe = mt(e), ce = fe.length, ne = mt(r), pe = ne.length;
490
+ function Ar(e, r, v, m, te, $) {
491
+ var ae = v & O, fe = mt(e), ce = fe.length, ne = mt(r), pe = ne.length;
495
492
  if (ce != pe && !ae)
496
493
  return !1;
497
494
  for (var xe = ce; xe--; ) {
@@ -499,17 +496,17 @@ function Fr() {
499
496
  if (!(ae ? de in r : be.call(r, de)))
500
497
  return !1;
501
498
  }
502
- var ye = j.get(e);
503
- if (ye && j.get(r))
499
+ var ye = $.get(e);
500
+ if (ye && $.get(r))
504
501
  return ye == r;
505
502
  var we = !0;
506
- j.set(e, r), j.set(r, e);
503
+ $.set(e, r), $.set(r, e);
507
504
  for (var Ie = ae; ++xe < ce; ) {
508
505
  de = fe[xe];
509
506
  var me = e[de], De = r[de];
510
507
  if (m)
511
- var Rt = ae ? m(De, me, de, r, e, j) : m(me, De, de, e, r, j);
512
- if (!(Rt === void 0 ? me === De || te(me, De, c, m, j) : Rt)) {
508
+ var Rt = ae ? m(De, me, de, r, e, $) : m(me, De, de, e, r, $);
509
+ if (!(Rt === void 0 ? me === De || te(me, De, v, m, $) : Rt)) {
513
510
  we = !1;
514
511
  break;
515
512
  }
@@ -519,53 +516,53 @@ function Fr() {
519
516
  var et = e.constructor, tt = r.constructor;
520
517
  et != tt && "constructor" in e && "constructor" in r && !(typeof et == "function" && et instanceof et && typeof tt == "function" && tt instanceof tt) && (we = !1);
521
518
  }
522
- return j.delete(e), j.delete(r), we;
519
+ return $.delete(e), $.delete(r), we;
523
520
  }
524
521
  function mt(e) {
525
522
  return pr(e, kr, Tr);
526
523
  }
527
524
  function Xe(e, r) {
528
- var c = e.__data__;
529
- return Mr(r) ? c[typeof r == "string" ? "string" : "hash"] : c.map;
525
+ var v = e.__data__;
526
+ return Mr(r) ? v[typeof r == "string" ? "string" : "hash"] : v.map;
530
527
  }
531
528
  function Ne(e, r) {
532
- var c = ke(e, r);
533
- return wr(c) ? c : void 0;
529
+ var v = ke(e, r);
530
+ return wr(v) ? v : void 0;
534
531
  }
535
532
  function mr(e) {
536
- var r = be.call(e, Ee), c = e[Ee];
533
+ var r = be.call(e, Ee), v = e[Ee];
537
534
  try {
538
535
  e[Ee] = void 0;
539
536
  var m = !0;
540
537
  } catch {
541
538
  }
542
539
  var te = dt.call(e);
543
- return m && (r ? e[Ee] = c : delete e[Ee]), te;
540
+ return m && (r ? e[Ee] = v : delete e[Ee]), te;
544
541
  }
545
542
  var Tr = wt ? function(e) {
546
543
  return e == null ? [] : (e = Object(e), I(wt(e), function(r) {
547
544
  return yt.call(e, r);
548
545
  }));
549
546
  } : Br, Me = $e;
550
- (it && Me(new it(new ArrayBuffer(1))) != t || qe && Me(new qe()) != N || ot && Me(ot.resolve()) != z || st && Me(new st()) != p || ft && Me(new ft()) != w) && (Me = function(e) {
551
- var r = $e(e), c = r == Q ? e.constructor : void 0, m = c ? Pe(c) : "";
547
+ (it && Me(new it(new ArrayBuffer(1))) != t || qe && Me(new qe()) != q || ot && Me(ot.resolve()) != z || st && Me(new st()) != b || ft && Me(new ft()) != w) && (Me = function(e) {
548
+ var r = $e(e), v = r == G ? e.constructor : void 0, m = v ? Pe(v) : "";
552
549
  if (m)
553
550
  switch (m) {
554
551
  case Ut:
555
552
  return t;
556
553
  case Ht:
557
- return N;
554
+ return q;
558
555
  case Qt:
559
556
  return z;
560
557
  case Gt:
561
- return p;
558
+ return b;
562
559
  case Vt:
563
560
  return w;
564
561
  }
565
562
  return r;
566
563
  });
567
564
  function Cr(e, r) {
568
- return r = r ?? $, !!r && (typeof e == "number" || ue.test(e)) && e > -1 && e % 1 == 0 && e < r;
565
+ return r = r ?? F, !!r && (typeof e == "number" || ue.test(e)) && e > -1 && e % 1 == 0 && e < r;
569
566
  }
570
567
  function Mr(e) {
571
568
  var r = typeof e;
@@ -575,8 +572,8 @@ function Fr() {
575
572
  return !!ht && ht in e;
576
573
  }
577
574
  function Er(e) {
578
- var r = e && e.constructor, c = typeof r == "function" && r.prototype || We;
579
- return e === c;
575
+ var r = e && e.constructor, v = typeof r == "function" && r.prototype || We;
576
+ return e === v;
580
577
  }
581
578
  function Rr(e) {
582
579
  return dt.call(e);
@@ -613,10 +610,10 @@ function Fr() {
613
610
  if (!It(e))
614
611
  return !1;
615
612
  var r = $e(e);
616
- return r == E || r == U || r == g || r == H;
613
+ return r == D || r == H || r == d || r == R;
617
614
  }
618
615
  function Mt(e) {
619
- return typeof e == "number" && e > -1 && e % 1 == 0 && e <= $;
616
+ return typeof e == "number" && e > -1 && e % 1 == 0 && e <= F;
620
617
  }
621
618
  function It(e) {
622
619
  var r = typeof e;
@@ -625,7 +622,7 @@ function Fr() {
625
622
  function Fe(e) {
626
623
  return e != null && typeof e == "object";
627
624
  }
628
- var Et = R ? le(R) : xr;
625
+ var Et = E ? le(E) : xr;
629
626
  function kr(e) {
630
627
  return Pr(e) ? gr(e) : br(e);
631
628
  }
@@ -635,36 +632,36 @@ function Fr() {
635
632
  function Sr() {
636
633
  return !1;
637
634
  }
638
- W.exports = Dr;
635
+ K.exports = Dr;
639
636
  }(Ue, Ue.exports)), Ue.exports;
640
637
  }
641
638
  var vt = { exports: {} }, kt;
642
639
  function Ur() {
643
- return kt || (kt = 1, function(W, X) {
640
+ return kt || (kt = 1, function(K, X) {
644
641
  var ie = function() {
645
- var V = function(o, p) {
646
- var v = 236, x = 17, f = o, w = Y[p], n = null, t = 0, h = null, i = [], y = {}, L = function(s, u) {
642
+ var W = function(o, b) {
643
+ var c = 236, y = 17, f = o, w = Y[b], n = null, t = 0, g = null, i = [], p = {}, L = function(s, u) {
647
644
  t = f * 4 + 17, n = function(a) {
648
- for (var l = new Array(a), d = 0; d < a; d += 1) {
649
- l[d] = new Array(a);
645
+ for (var l = new Array(a), h = 0; h < a; h += 1) {
646
+ l[h] = new Array(a);
650
647
  for (var _ = 0; _ < a; _ += 1)
651
- l[d][_] = null;
648
+ l[h][_] = null;
652
649
  }
653
650
  return l;
654
- }(t), T(0, 0), T(t - 7, 0), T(0, t - 7), re(), q(), D(s, u), f >= 7 && oe(s), h == null && (h = G(f, w, i)), k(h, u);
651
+ }(t), T(0, 0), T(t - 7, 0), T(0, t - 7), re(), j(), k(s, u), f >= 7 && oe(s), g == null && (g = Q(f, w, i)), B(g, u);
655
652
  }, T = function(s, u) {
656
653
  for (var a = -1; a <= 7; a += 1)
657
654
  if (!(s + a <= -1 || t <= s + a))
658
655
  for (var l = -1; l <= 7; l += 1)
659
656
  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() {
657
+ }, V = function() {
661
658
  for (var s = 0, u = 0, a = 0; a < 8; a += 1) {
662
659
  L(!0, a);
663
- var l = M.getLostPoint(y);
660
+ var l = M.getLostPoint(p);
664
661
  (a == 0 || s > l) && (s = l, u = a);
665
662
  }
666
663
  return u;
667
- }, q = function() {
664
+ }, j = function() {
668
665
  for (var s = 8; s < t - 8; s += 1)
669
666
  n[s][6] == null && (n[s][6] = s % 2 == 0);
670
667
  for (var u = 8; u < t - 8; u += 1)
@@ -672,11 +669,11 @@ function Ur() {
672
669
  }, re = function() {
673
670
  for (var s = M.getPatternPosition(f), u = 0; u < s.length; u += 1)
674
671
  for (var a = 0; a < s.length; a += 1) {
675
- var l = s[u], d = s[a];
676
- if (n[l][d] == null)
672
+ var l = s[u], h = s[a];
673
+ if (n[l][h] == null)
677
674
  for (var _ = -2; _ <= 2; _ += 1)
678
- for (var R = -2; R <= 2; R += 1)
679
- _ == -2 || _ == 2 || R == -2 || R == 2 || _ == 0 && R == 0 ? n[l + _][d + R] = !0 : n[l + _][d + R] = !1;
675
+ for (var E = -2; E <= 2; E += 1)
676
+ _ == -2 || _ == 2 || E == -2 || E == 2 || _ == 0 && E == 0 ? n[l + _][h + E] = !0 : n[l + _][h + E] = !1;
680
677
  }
681
678
  }, oe = function(s) {
682
679
  for (var u = M.getBCHTypeNumber(f), a = 0; a < 18; a += 1) {
@@ -687,25 +684,25 @@ function Ur() {
687
684
  var l = !s && (u >> a & 1) == 1;
688
685
  n[a % 3 + t - 8 - 3][Math.floor(a / 3)] = l;
689
686
  }
690
- }, D = function(s, u) {
691
- for (var a = w << 3 | u, l = M.getBCHTypeInfo(a), d = 0; d < 15; d += 1) {
692
- var _ = !s && (l >> d & 1) == 1;
693
- d < 6 ? n[d][8] = _ : d < 8 ? n[d + 1][8] = _ : n[t - 15 + d][8] = _;
687
+ }, k = function(s, u) {
688
+ for (var a = w << 3 | u, l = M.getBCHTypeInfo(a), h = 0; h < 15; h += 1) {
689
+ var _ = !s && (l >> h & 1) == 1;
690
+ h < 6 ? n[h][8] = _ : h < 8 ? n[h + 1][8] = _ : n[t - 15 + h][8] = _;
694
691
  }
695
- for (var d = 0; d < 15; d += 1) {
696
- var _ = !s && (l >> d & 1) == 1;
697
- d < 8 ? n[8][t - d - 1] = _ : d < 9 ? n[8][15 - d - 1 + 1] = _ : n[8][15 - d - 1] = _;
692
+ for (var h = 0; h < 15; h += 1) {
693
+ var _ = !s && (l >> h & 1) == 1;
694
+ h < 8 ? n[8][t - h - 1] = _ : h < 9 ? n[8][15 - h - 1 + 1] = _ : n[8][15 - h - 1] = _;
698
695
  }
699
696
  n[t - 8][8] = !s;
700
- }, k = function(s, u) {
701
- for (var a = -1, l = t - 1, d = 7, _ = 0, R = M.getMaskFunction(u), I = t - 1; I > 0; I -= 2)
697
+ }, B = function(s, u) {
698
+ for (var a = -1, l = t - 1, h = 7, _ = 0, E = M.getMaskFunction(u), I = t - 1; I > 0; I -= 2)
702
699
  for (I == 6 && (I -= 1); ; ) {
703
700
  for (var J = 0; J < 2; J += 1)
704
701
  if (n[l][I - J] == null) {
705
702
  var ee = !1;
706
- _ < s.length && (ee = (s[_] >>> d & 1) == 1);
707
- var B = R(l, I - J);
708
- B && (ee = !ee), n[l][I - J] = ee, d -= 1, d == -1 && (_ += 1, d = 7);
703
+ _ < s.length && (ee = (s[_] >>> h & 1) == 1);
704
+ var S = E(l, I - J);
705
+ S && (ee = !ee), n[l][I - J] = ee, h -= 1, h == -1 && (_ += 1, h = 7);
709
706
  }
710
707
  if (l += a, l < 0 || t <= l) {
711
708
  l -= a, a = -a;
@@ -713,75 +710,75 @@ function Ur() {
713
710
  }
714
711
  }
715
712
  }, ue = function(s, u) {
716
- for (var a = 0, l = 0, d = 0, _ = new Array(u.length), R = new Array(u.length), I = 0; I < u.length; I += 1) {
713
+ for (var a = 0, l = 0, h = 0, _ = new Array(u.length), E = new Array(u.length), I = 0; I < u.length; I += 1) {
717
714
  var J = u[I].dataCount, ee = u[I].totalCount - J;
718
- l = Math.max(l, J), d = Math.max(d, ee), _[I] = new Array(J);
719
- for (var B = 0; B < _[I].length; B += 1)
720
- _[I][B] = 255 & s.getBuffer()[B + a];
715
+ l = Math.max(l, J), h = Math.max(h, ee), _[I] = new Array(J);
716
+ for (var S = 0; S < _[I].length; S += 1)
717
+ _[I][S] = 255 & s.getBuffer()[S + a];
721
718
  a += J;
722
- var le = M.getErrorCorrectPolynomial(ee), ve = g(_[I], le.getLength() - 1), ke = ve.mod(le);
723
- R[I] = new Array(le.getLength() - 1);
724
- for (var B = 0; B < R[I].length; B += 1) {
725
- var Be = B + ke.getLength() - R[I].length;
726
- R[I][B] = Be >= 0 ? ke.getAt(Be) : 0;
719
+ var le = M.getErrorCorrectPolynomial(ee), ve = d(_[I], le.getLength() - 1), ke = ve.mod(le);
720
+ E[I] = new Array(le.getLength() - 1);
721
+ for (var S = 0; S < E[I].length; S += 1) {
722
+ var Be = S + ke.getLength() - E[I].length;
723
+ E[I][S] = Be >= 0 ? ke.getAt(Be) : 0;
727
724
  }
728
725
  }
729
- for (var Ke = 0, B = 0; B < u.length; B += 1)
730
- Ke += u[B].totalCount;
731
- for (var Oe = new Array(Ke), Se = 0, B = 0; B < l; B += 1)
726
+ for (var Ke = 0, S = 0; S < u.length; S += 1)
727
+ Ke += u[S].totalCount;
728
+ for (var Oe = new Array(Ke), Se = 0, S = 0; S < l; S += 1)
732
729
  for (var I = 0; I < u.length; I += 1)
733
- B < _[I].length && (Oe[Se] = _[I][B], Se += 1);
734
- for (var B = 0; B < d; B += 1)
730
+ S < _[I].length && (Oe[Se] = _[I][S], Se += 1);
731
+ for (var S = 0; S < h; S += 1)
735
732
  for (var I = 0; I < u.length; I += 1)
736
- B < R[I].length && (Oe[Se] = R[I][B], Se += 1);
733
+ S < E[I].length && (Oe[Se] = E[I][S], Se += 1);
737
734
  return Oe;
738
- }, G = function(s, u, a) {
739
- for (var l = A.getRSBlocks(s, u), d = C(), _ = 0; _ < a.length; _ += 1) {
740
- var R = a[_];
741
- d.put(R.getMode(), 4), d.put(R.getLength(), M.getLengthInBits(R.getMode(), s)), R.write(d);
735
+ }, Q = function(s, u, a) {
736
+ for (var l = A.getRSBlocks(s, u), h = C(), _ = 0; _ < a.length; _ += 1) {
737
+ var E = a[_];
738
+ h.put(E.getMode(), 4), h.put(E.getLength(), M.getLengthInBits(E.getMode(), s)), E.write(h);
742
739
  }
743
740
  for (var I = 0, _ = 0; _ < l.length; _ += 1)
744
741
  I += l[_].dataCount;
745
- if (d.getLengthInBits() > I * 8)
746
- throw "code length overflow. (" + d.getLengthInBits() + ">" + I * 8 + ")";
747
- for (d.getLengthInBits() + 4 <= I * 8 && d.put(0, 4); d.getLengthInBits() % 8 != 0; )
748
- d.putBit(!1);
749
- for (; !(d.getLengthInBits() >= I * 8 || (d.put(v, 8), d.getLengthInBits() >= I * 8)); )
750
- d.put(x, 8);
751
- return ue(d, l);
742
+ if (h.getLengthInBits() > I * 8)
743
+ throw "code length overflow. (" + h.getLengthInBits() + ">" + I * 8 + ")";
744
+ for (h.getLengthInBits() + 4 <= I * 8 && h.put(0, 4); h.getLengthInBits() % 8 != 0; )
745
+ h.putBit(!1);
746
+ for (; !(h.getLengthInBits() >= I * 8 || (h.put(c, 8), h.getLengthInBits() >= I * 8)); )
747
+ h.put(y, 8);
748
+ return ue(h, l);
752
749
  };
753
- y.addData = function(s, u) {
750
+ p.addData = function(s, u) {
754
751
  u = u || "Byte";
755
752
  var a = null;
756
753
  switch (u) {
757
754
  case "Numeric":
758
- a = F(s);
755
+ a = U(s);
759
756
  break;
760
757
  case "Alphanumeric":
761
- a = E(s);
758
+ a = D(s);
762
759
  break;
763
760
  case "Byte":
764
- a = U(s);
761
+ a = H(s);
765
762
  break;
766
763
  case "Kanji":
767
- a = N(s);
764
+ a = q(s);
768
765
  break;
769
766
  default:
770
767
  throw "mode:" + u;
771
768
  }
772
- i.push(a), h = null;
773
- }, y.isDark = function(s, u) {
769
+ i.push(a), g = null;
770
+ }, p.isDark = function(s, u) {
774
771
  if (s < 0 || t <= s || u < 0 || t <= u)
775
772
  throw s + "," + u;
776
773
  return n[s][u];
777
- }, y.getModuleCount = function() {
774
+ }, p.getModuleCount = function() {
778
775
  return t;
779
- }, y.make = function() {
776
+ }, p.make = function() {
780
777
  if (f < 1) {
781
778
  for (var s = 1; s < 40; s++) {
782
779
  for (var u = A.getRSBlocks(s, w), a = C(), l = 0; l < i.length; l++) {
783
- var d = i[l];
784
- a.put(d.getMode(), 4), a.put(d.getLength(), M.getLengthInBits(d.getMode(), s)), d.write(a);
780
+ var h = i[l];
781
+ a.put(h.getMode(), 4), a.put(h.getLength(), M.getLengthInBits(h.getMode(), s)), h.write(a);
785
782
  }
786
783
  for (var _ = 0, l = 0; l < u.length; l++)
787
784
  _ += u[l].dataCount;
@@ -790,40 +787,40 @@ function Ur() {
790
787
  }
791
788
  f = s;
792
789
  }
793
- L(!1, K());
794
- }, y.createTableTag = function(s, u) {
790
+ L(!1, V());
791
+ }, p.createTableTag = function(s, u) {
795
792
  s = s || 2, u = typeof u > "u" ? s * 4 : u;
796
793
  var a = "";
797
794
  a += '<table style="', a += " border-width: 0px; border-style: none;", a += " border-collapse: collapse;", a += " padding: 0px; margin: " + u + "px;", a += '">', a += "<tbody>";
798
- for (var l = 0; l < y.getModuleCount(); l += 1) {
795
+ for (var l = 0; l < p.getModuleCount(); l += 1) {
799
796
  a += "<tr>";
800
- for (var d = 0; d < y.getModuleCount(); d += 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 += y.isDark(l, d) ? "#000000" : "#ffffff", a += ";", a += '"/>';
797
+ for (var h = 0; h < p.getModuleCount(); h += 1)
798
+ 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 += '"/>';
802
799
  a += "</tr>";
803
800
  }
804
801
  return a += "</tbody>", a += "</table>", a;
805
- }, y.createSvgTag = function(s, u, a, l) {
806
- var d = {};
807
- typeof arguments[0] == "object" && (d = arguments[0], s = d.cellSize, u = d.margin, a = d.alt, l = d.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 _ = y.getModuleCount() * s + u * 2, R, I, J, ee, B = "", le;
809
- for (le = "l" + s + ",0 0," + s + " -" + s + ",0 0,-" + s + "z ", B += '<svg version="1.1" xmlns="http://www.w3.org/2000/svg"', B += d.scalable ? "" : ' width="' + _ + 'px" height="' + _ + 'px"', B += ' viewBox="0 0 ' + _ + " " + _ + '" ', B += ' preserveAspectRatio="xMinYMin meet"', B += l.text || a.text ? ' role="img" aria-labelledby="' + se([l.id, a.id].join(" ").trim()) + '"' : "", B += ">", B += l.text ? '<title id="' + se(l.id) + '">' + se(l.text) + "</title>" : "", B += a.text ? '<description id="' + se(a.id) + '">' + se(a.text) + "</description>" : "", B += '<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>', B += '<path d="', J = 0; J < y.getModuleCount(); J += 1)
810
- for (ee = J * s + u, R = 0; R < y.getModuleCount(); R += 1)
811
- y.isDark(J, R) && (I = R * s + u, B += "M" + I + "," + ee + le);
812
- return B += '" stroke="transparent" fill="black"/>', B += "</svg>", B;
813
- }, y.createDataURL = function(s, u) {
802
+ }, p.createSvgTag = function(s, u, a, l) {
803
+ var h = {};
804
+ 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;
805
+ var _ = p.getModuleCount() * s + u * 2, E, I, J, ee, S = "", le;
806
+ for (le = "l" + s + ",0 0," + s + " -" + s + ",0 0,-" + s + "z ", S += '<svg version="1.1" xmlns="http://www.w3.org/2000/svg"', S += h.scalable ? "" : ' width="' + _ + 'px" height="' + _ + 'px"', S += ' viewBox="0 0 ' + _ + " " + _ + '" ', S += ' preserveAspectRatio="xMinYMin meet"', S += l.text || a.text ? ' role="img" aria-labelledby="' + se([l.id, a.id].join(" ").trim()) + '"' : "", S += ">", S += l.text ? '<title id="' + se(l.id) + '">' + se(l.text) + "</title>" : "", S += a.text ? '<description id="' + se(a.id) + '">' + se(a.text) + "</description>" : "", S += '<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>', S += '<path d="', J = 0; J < p.getModuleCount(); J += 1)
807
+ for (ee = J * s + u, E = 0; E < p.getModuleCount(); E += 1)
808
+ p.isDark(J, E) && (I = E * s + u, S += "M" + I + "," + ee + le);
809
+ return S += '" stroke="transparent" fill="black"/>', S += "</svg>", S;
810
+ }, p.createDataURL = function(s, u) {
814
811
  s = s || 2, u = typeof u > "u" ? s * 4 : u;
815
- var a = y.getModuleCount() * s + u * 2, l = u, d = a - u;
816
- return H(a, a, function(_, R) {
817
- if (l <= _ && _ < d && l <= R && R < d) {
818
- var I = Math.floor((_ - l) / s), J = Math.floor((R - l) / s);
819
- return y.isDark(J, I) ? 0 : 1;
812
+ var a = p.getModuleCount() * s + u * 2, l = u, h = a - u;
813
+ return R(a, a, function(_, E) {
814
+ if (l <= _ && _ < h && l <= E && E < h) {
815
+ var I = Math.floor((_ - l) / s), J = Math.floor((E - l) / s);
816
+ return p.isDark(J, I) ? 0 : 1;
820
817
  } else
821
818
  return 1;
822
819
  });
823
- }, y.createImgTag = function(s, u, a) {
820
+ }, p.createImgTag = function(s, u, a) {
824
821
  s = s || 2, u = typeof u > "u" ? s * 4 : u;
825
- var l = y.getModuleCount() * s + u * 2, d = "";
826
- return d += "<img", d += ' src="', d += y.createDataURL(s, u), d += '"', d += ' width="', d += l, d += '"', d += ' height="', d += l, d += '"', a && (d += ' alt="', d += se(a), d += '"'), d += "/>", d;
822
+ var l = p.getModuleCount() * s + u * 2, h = "";
823
+ 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;
827
824
  };
828
825
  var se = function(s) {
829
826
  for (var u = "", a = 0; a < s.length; a += 1) {
@@ -850,7 +847,7 @@ function Ur() {
850
847
  }, _e = function(s) {
851
848
  var u = 1;
852
849
  s = typeof s > "u" ? u * 2 : s;
853
- var a = y.getModuleCount() * u + s * 2, l = s, d = a - s, _, R, I, J, ee, B = {
850
+ var a = p.getModuleCount() * u + s * 2, l = s, h = a - s, _, E, I, J, ee, S = {
854
851
  "██": "█",
855
852
  "█ ": "▀",
856
853
  " █": "▄",
@@ -862,65 +859,65 @@ function Ur() {
862
859
  " ": " "
863
860
  }, ve = "";
864
861
  for (_ = 0; _ < a; _ += 2) {
865
- for (I = Math.floor((_ - l) / u), J = Math.floor((_ + 1 - l) / u), R = 0; R < a; R += 1)
866
- ee = "█", l <= R && R < d && l <= _ && _ < d && y.isDark(I, Math.floor((R - l) / u)) && (ee = " "), l <= R && R < d && l <= _ + 1 && _ + 1 < d && y.isDark(J, Math.floor((R - l) / u)) ? ee += " " : ee += "█", ve += s < 1 && _ + 1 >= d ? le[ee] : B[ee];
862
+ for (I = Math.floor((_ - l) / u), J = Math.floor((_ + 1 - l) / u), E = 0; E < a; E += 1)
863
+ ee = "█", l <= E && E < h && l <= _ && _ < h && p.isDark(I, Math.floor((E - l) / u)) && (ee = " "), l <= E && E < h && l <= _ + 1 && _ + 1 < h && p.isDark(J, Math.floor((E - l) / u)) ? ee += " " : ee += "█", ve += s < 1 && _ + 1 >= h ? le[ee] : S[ee];
867
864
  ve += `
868
865
  `;
869
866
  }
870
867
  return a % 2 && s > 0 ? ve.substring(0, ve.length - a - 1) + Array(a + 1).join("▀") : ve.substring(0, ve.length - 1);
871
868
  };
872
- return y.createASCII = function(s, u) {
869
+ return p.createASCII = function(s, u) {
873
870
  if (s = s || 1, s < 2)
874
871
  return _e(u);
875
872
  s -= 1, u = typeof u > "u" ? s * 2 : u;
876
- var a = y.getModuleCount() * s + u * 2, l = u, d = a - u, _, R, I, J, ee = Array(s + 1).join("██"), B = Array(s + 1).join(" "), le = "", ve = "";
873
+ var a = p.getModuleCount() * s + u * 2, l = u, h = a - u, _, E, I, J, ee = Array(s + 1).join("██"), S = Array(s + 1).join(" "), le = "", ve = "";
877
874
  for (_ = 0; _ < a; _ += 1) {
878
- for (I = Math.floor((_ - l) / s), ve = "", R = 0; R < a; R += 1)
879
- J = 1, l <= R && R < d && l <= _ && _ < d && y.isDark(I, Math.floor((R - l) / s)) && (J = 0), ve += J ? ee : B;
875
+ for (I = Math.floor((_ - l) / s), ve = "", E = 0; E < a; E += 1)
876
+ J = 1, l <= E && E < h && l <= _ && _ < h && p.isDark(I, Math.floor((E - l) / s)) && (J = 0), ve += J ? ee : S;
880
877
  for (I = 0; I < s; I += 1)
881
878
  le += ve + `
882
879
  `;
883
880
  }
884
881
  return le.substring(0, le.length - 1);
885
- }, y.renderTo2dContext = function(s, u) {
882
+ }, p.renderTo2dContext = function(s, u) {
886
883
  u = u || 2;
887
- for (var a = y.getModuleCount(), l = 0; l < a; l++)
888
- for (var d = 0; d < a; d++)
889
- s.fillStyle = y.isDark(l, d) ? "black" : "white", s.fillRect(l * u, d * u, u, u);
890
- }, y;
884
+ for (var a = p.getModuleCount(), l = 0; l < a; l++)
885
+ for (var h = 0; h < a; h++)
886
+ s.fillStyle = p.isDark(l, h) ? "black" : "white", s.fillRect(l * u, h * u, u, u);
887
+ }, p;
891
888
  };
892
- V.stringToBytesFuncs = {
889
+ W.stringToBytesFuncs = {
893
890
  default: function(o) {
894
- for (var p = [], v = 0; v < o.length; v += 1) {
895
- var x = o.charCodeAt(v);
896
- p.push(x & 255);
891
+ for (var b = [], c = 0; c < o.length; c += 1) {
892
+ var y = o.charCodeAt(c);
893
+ b.push(y & 255);
897
894
  }
898
- return p;
895
+ return b;
899
896
  }
900
- }, V.stringToBytes = V.stringToBytesFuncs.default, V.createStringToBytes = function(o, p) {
901
- var v = function() {
902
- for (var f = Q(o), w = function() {
903
- var q = f.read();
904
- if (q == -1) throw "eof";
905
- return q;
897
+ }, W.stringToBytes = W.stringToBytesFuncs.default, W.createStringToBytes = function(o, b) {
898
+ var c = function() {
899
+ for (var f = G(o), w = function() {
900
+ var j = f.read();
901
+ if (j == -1) throw "eof";
902
+ return j;
906
903
  }, n = 0, t = {}; ; ) {
907
- var h = f.read();
908
- if (h == -1) break;
909
- var i = w(), y = w(), L = w(), T = String.fromCharCode(h << 8 | i), K = y << 8 | L;
910
- t[T] = K, n += 1;
904
+ var g = f.read();
905
+ if (g == -1) break;
906
+ var i = w(), p = w(), L = w(), T = String.fromCharCode(g << 8 | i), V = p << 8 | L;
907
+ t[T] = V, n += 1;
911
908
  }
912
- if (n != p)
913
- throw n + " != " + p;
909
+ if (n != b)
910
+ throw n + " != " + b;
914
911
  return t;
915
- }(), x = 63;
912
+ }(), y = 63;
916
913
  return function(f) {
917
914
  for (var w = [], n = 0; n < f.length; n += 1) {
918
915
  var t = f.charCodeAt(n);
919
916
  if (t < 128)
920
917
  w.push(t);
921
918
  else {
922
- var h = v[f.charAt(n)];
923
- typeof h == "number" ? (h & 255) == h ? w.push(h) : (w.push(h >>> 8), w.push(h & 255)) : w.push(x);
919
+ var g = c[f.charAt(n)];
920
+ typeof g == "number" ? (g & 255) == g ? w.push(g) : (w.push(g >>> 8), w.push(g & 255)) : w.push(y);
924
921
  }
925
922
  }
926
923
  return w;
@@ -936,7 +933,7 @@ function Ur() {
936
933
  M: 0,
937
934
  Q: 3,
938
935
  H: 2
939
- }, $ = {
936
+ }, F = {
940
937
  PATTERN000: 0,
941
938
  PATTERN001: 1,
942
939
  PATTERN010: 2,
@@ -987,61 +984,61 @@ function Ur() {
987
984
  [6, 32, 58, 84, 110, 136, 162],
988
985
  [6, 26, 54, 82, 110, 138, 166],
989
986
  [6, 30, 58, 86, 114, 142, 170]
990
- ], p = 1335, v = 7973, x = 21522, f = {}, w = function(n) {
987
+ ], b = 1335, c = 7973, y = 21522, f = {}, w = function(n) {
991
988
  for (var t = 0; n != 0; )
992
989
  t += 1, n >>>= 1;
993
990
  return t;
994
991
  };
995
992
  return f.getBCHTypeInfo = function(n) {
996
- for (var t = n << 10; w(t) - w(p) >= 0; )
997
- t ^= p << w(t) - w(p);
998
- return (n << 10 | t) ^ x;
993
+ for (var t = n << 10; w(t) - w(b) >= 0; )
994
+ t ^= b << w(t) - w(b);
995
+ return (n << 10 | t) ^ y;
999
996
  }, f.getBCHTypeNumber = function(n) {
1000
- for (var t = n << 12; w(t) - w(v) >= 0; )
1001
- t ^= v << w(t) - w(v);
997
+ for (var t = n << 12; w(t) - w(c) >= 0; )
998
+ t ^= c << w(t) - w(c);
1002
999
  return n << 12 | t;
1003
1000
  }, f.getPatternPosition = function(n) {
1004
1001
  return o[n - 1];
1005
1002
  }, f.getMaskFunction = function(n) {
1006
1003
  switch (n) {
1007
- case $.PATTERN000:
1008
- return function(t, h) {
1009
- return (t + h) % 2 == 0;
1004
+ case F.PATTERN000:
1005
+ return function(t, g) {
1006
+ return (t + g) % 2 == 0;
1010
1007
  };
1011
- case $.PATTERN001:
1012
- return function(t, h) {
1008
+ case F.PATTERN001:
1009
+ return function(t, g) {
1013
1010
  return t % 2 == 0;
1014
1011
  };
1015
- case $.PATTERN010:
1016
- return function(t, h) {
1017
- return h % 3 == 0;
1012
+ case F.PATTERN010:
1013
+ return function(t, g) {
1014
+ return g % 3 == 0;
1018
1015
  };
1019
- case $.PATTERN011:
1020
- return function(t, h) {
1021
- return (t + h) % 3 == 0;
1016
+ case F.PATTERN011:
1017
+ return function(t, g) {
1018
+ return (t + g) % 3 == 0;
1022
1019
  };
1023
- case $.PATTERN100:
1024
- return function(t, h) {
1025
- return (Math.floor(t / 2) + Math.floor(h / 3)) % 2 == 0;
1020
+ case F.PATTERN100:
1021
+ return function(t, g) {
1022
+ return (Math.floor(t / 2) + Math.floor(g / 3)) % 2 == 0;
1026
1023
  };
1027
- case $.PATTERN101:
1028
- return function(t, h) {
1029
- return t * h % 2 + t * h % 3 == 0;
1024
+ case F.PATTERN101:
1025
+ return function(t, g) {
1026
+ return t * g % 2 + t * g % 3 == 0;
1030
1027
  };
1031
- case $.PATTERN110:
1032
- return function(t, h) {
1033
- return (t * h % 2 + t * h % 3) % 2 == 0;
1028
+ case F.PATTERN110:
1029
+ return function(t, g) {
1030
+ return (t * g % 2 + t * g % 3) % 2 == 0;
1034
1031
  };
1035
- case $.PATTERN111:
1036
- return function(t, h) {
1037
- return (t * h % 3 + (t + h) % 2) % 2 == 0;
1032
+ case F.PATTERN111:
1033
+ return function(t, g) {
1034
+ return (t * g % 3 + (t + g) % 2) % 2 == 0;
1038
1035
  };
1039
1036
  default:
1040
1037
  throw "bad maskPattern:" + n;
1041
1038
  }
1042
1039
  }, f.getErrorCorrectPolynomial = function(n) {
1043
- for (var t = g([1], 0), h = 0; h < n; h += 1)
1044
- t = t.multiply(g([1, b.gexp(h)], 0));
1040
+ for (var t = d([1], 0), g = 0; g < n; g += 1)
1041
+ t = t.multiply(d([1, x.gexp(g)], 0));
1045
1042
  return t;
1046
1043
  }, f.getLengthInBits = function(n, t) {
1047
1044
  if (1 <= t && t < 10)
@@ -1086,79 +1083,79 @@ function Ur() {
1086
1083
  else
1087
1084
  throw "type:" + t;
1088
1085
  }, f.getLostPoint = function(n) {
1089
- for (var t = n.getModuleCount(), h = 0, i = 0; i < t; i += 1)
1090
- for (var y = 0; y < t; y += 1) {
1091
- for (var L = 0, T = n.isDark(i, y), K = -1; K <= 1; K += 1)
1092
- if (!(i + K < 0 || t <= i + K))
1093
- for (var q = -1; q <= 1; q += 1)
1094
- y + q < 0 || t <= y + q || K == 0 && q == 0 || T == n.isDark(i + K, y + q) && (L += 1);
1095
- L > 5 && (h += 3 + L - 5);
1086
+ for (var t = n.getModuleCount(), g = 0, i = 0; i < t; i += 1)
1087
+ for (var p = 0; p < t; p += 1) {
1088
+ for (var L = 0, T = n.isDark(i, p), V = -1; V <= 1; V += 1)
1089
+ if (!(i + V < 0 || t <= i + V))
1090
+ for (var j = -1; j <= 1; j += 1)
1091
+ p + j < 0 || t <= p + j || V == 0 && j == 0 || T == n.isDark(i + V, p + j) && (L += 1);
1092
+ L > 5 && (g += 3 + L - 5);
1096
1093
  }
1097
1094
  for (var i = 0; i < t - 1; i += 1)
1098
- for (var y = 0; y < t - 1; y += 1) {
1095
+ for (var p = 0; p < t - 1; p += 1) {
1099
1096
  var re = 0;
1100
- n.isDark(i, y) && (re += 1), n.isDark(i + 1, y) && (re += 1), n.isDark(i, y + 1) && (re += 1), n.isDark(i + 1, y + 1) && (re += 1), (re == 0 || re == 4) && (h += 3);
1097
+ n.isDark(i, p) && (re += 1), n.isDark(i + 1, p) && (re += 1), n.isDark(i, p + 1) && (re += 1), n.isDark(i + 1, p + 1) && (re += 1), (re == 0 || re == 4) && (g += 3);
1101
1098
  }
1102
1099
  for (var i = 0; i < t; i += 1)
1103
- for (var y = 0; y < t - 6; y += 1)
1104
- n.isDark(i, y) && !n.isDark(i, y + 1) && n.isDark(i, y + 2) && n.isDark(i, y + 3) && n.isDark(i, y + 4) && !n.isDark(i, y + 5) && n.isDark(i, y + 6) && (h += 40);
1105
- for (var y = 0; y < t; y += 1)
1100
+ for (var p = 0; p < t - 6; p += 1)
1101
+ n.isDark(i, p) && !n.isDark(i, p + 1) && n.isDark(i, p + 2) && n.isDark(i, p + 3) && n.isDark(i, p + 4) && !n.isDark(i, p + 5) && n.isDark(i, p + 6) && (g += 40);
1102
+ for (var p = 0; p < t; p += 1)
1106
1103
  for (var i = 0; i < t - 6; i += 1)
1107
- n.isDark(i, y) && !n.isDark(i + 1, y) && n.isDark(i + 2, y) && n.isDark(i + 3, y) && n.isDark(i + 4, y) && !n.isDark(i + 5, y) && n.isDark(i + 6, y) && (h += 40);
1108
- for (var oe = 0, y = 0; y < t; y += 1)
1104
+ n.isDark(i, p) && !n.isDark(i + 1, p) && n.isDark(i + 2, p) && n.isDark(i + 3, p) && n.isDark(i + 4, p) && !n.isDark(i + 5, p) && n.isDark(i + 6, p) && (g += 40);
1105
+ for (var oe = 0, p = 0; p < t; p += 1)
1109
1106
  for (var i = 0; i < t; i += 1)
1110
- n.isDark(i, y) && (oe += 1);
1111
- var D = Math.abs(100 * oe / t / t - 50) / 5;
1112
- return h += D * 10, h;
1107
+ n.isDark(i, p) && (oe += 1);
1108
+ var k = Math.abs(100 * oe / t / t - 50) / 5;
1109
+ return g += k * 10, g;
1113
1110
  }, f;
1114
- }(), b = function() {
1115
- for (var o = new Array(256), p = new Array(256), v = 0; v < 8; v += 1)
1116
- o[v] = 1 << v;
1117
- for (var v = 8; v < 256; v += 1)
1118
- o[v] = o[v - 4] ^ o[v - 5] ^ o[v - 6] ^ o[v - 8];
1119
- for (var v = 0; v < 255; v += 1)
1120
- p[o[v]] = v;
1121
- var x = {};
1122
- return x.glog = function(f) {
1111
+ }(), x = function() {
1112
+ for (var o = new Array(256), b = new Array(256), c = 0; c < 8; c += 1)
1113
+ o[c] = 1 << c;
1114
+ for (var c = 8; c < 256; c += 1)
1115
+ o[c] = o[c - 4] ^ o[c - 5] ^ o[c - 6] ^ o[c - 8];
1116
+ for (var c = 0; c < 255; c += 1)
1117
+ b[o[c]] = c;
1118
+ var y = {};
1119
+ return y.glog = function(f) {
1123
1120
  if (f < 1)
1124
1121
  throw "glog(" + f + ")";
1125
- return p[f];
1126
- }, x.gexp = function(f) {
1122
+ return b[f];
1123
+ }, y.gexp = function(f) {
1127
1124
  for (; f < 0; )
1128
1125
  f += 255;
1129
1126
  for (; f >= 256; )
1130
1127
  f -= 255;
1131
1128
  return o[f];
1132
- }, x;
1129
+ }, y;
1133
1130
  }();
1134
- function g(o, p) {
1131
+ function d(o, b) {
1135
1132
  if (typeof o.length > "u")
1136
- throw o.length + "/" + p;
1137
- var v = function() {
1133
+ throw o.length + "/" + b;
1134
+ var c = function() {
1138
1135
  for (var f = 0; f < o.length && o[f] == 0; )
1139
1136
  f += 1;
1140
- for (var w = new Array(o.length - f + p), n = 0; n < o.length - f; n += 1)
1137
+ for (var w = new Array(o.length - f + b), n = 0; n < o.length - f; n += 1)
1141
1138
  w[n] = o[n + f];
1142
1139
  return w;
1143
- }(), x = {};
1144
- return x.getAt = function(f) {
1145
- return v[f];
1146
- }, x.getLength = function() {
1147
- return v.length;
1148
- }, x.multiply = function(f) {
1149
- for (var w = new Array(x.getLength() + f.getLength() - 1), n = 0; n < x.getLength(); n += 1)
1140
+ }(), y = {};
1141
+ return y.getAt = function(f) {
1142
+ return c[f];
1143
+ }, y.getLength = function() {
1144
+ return c.length;
1145
+ }, y.multiply = function(f) {
1146
+ for (var w = new Array(y.getLength() + f.getLength() - 1), n = 0; n < y.getLength(); n += 1)
1150
1147
  for (var t = 0; t < f.getLength(); t += 1)
1151
- w[n + t] ^= b.gexp(b.glog(x.getAt(n)) + b.glog(f.getAt(t)));
1152
- return g(w, 0);
1153
- }, x.mod = function(f) {
1154
- if (x.getLength() - f.getLength() < 0)
1155
- return x;
1156
- for (var w = b.glog(x.getAt(0)) - b.glog(f.getAt(0)), n = new Array(x.getLength()), t = 0; t < x.getLength(); t += 1)
1157
- n[t] = x.getAt(t);
1148
+ w[n + t] ^= x.gexp(x.glog(y.getAt(n)) + x.glog(f.getAt(t)));
1149
+ return d(w, 0);
1150
+ }, y.mod = function(f) {
1151
+ if (y.getLength() - f.getLength() < 0)
1152
+ return y;
1153
+ 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)
1154
+ n[t] = y.getAt(t);
1158
1155
  for (var t = 0; t < f.getLength(); t += 1)
1159
- n[t] ^= b.gexp(b.glog(f.getAt(t)) + w);
1160
- return g(n, 0).mod(f);
1161
- }, x;
1156
+ n[t] ^= x.gexp(x.glog(f.getAt(t)) + w);
1157
+ return d(n, 0).mod(f);
1158
+ }, y;
1162
1159
  }
1163
1160
  var A = function() {
1164
1161
  var o = [
@@ -1366,10 +1363,10 @@ function Ur() {
1366
1363
  [18, 75, 47, 31, 76, 48],
1367
1364
  [34, 54, 24, 34, 55, 25],
1368
1365
  [20, 45, 15, 61, 46, 16]
1369
- ], p = function(f, w) {
1366
+ ], b = function(f, w) {
1370
1367
  var n = {};
1371
1368
  return n.totalCount = f, n.dataCount = w, n;
1372
- }, v = {}, x = function(f, w) {
1369
+ }, c = {}, y = function(f, w) {
1373
1370
  switch (w) {
1374
1371
  case Y.L:
1375
1372
  return o[(f - 1) * 4 + 0];
@@ -1383,60 +1380,60 @@ function Ur() {
1383
1380
  return;
1384
1381
  }
1385
1382
  };
1386
- return v.getRSBlocks = function(f, w) {
1387
- var n = x(f, w);
1383
+ return c.getRSBlocks = function(f, w) {
1384
+ var n = y(f, w);
1388
1385
  if (typeof n > "u")
1389
1386
  throw "bad rs block @ typeNumber:" + f + "/errorCorrectionLevel:" + w;
1390
- for (var t = n.length / 3, h = [], i = 0; i < t; i += 1)
1391
- for (var y = n[i * 3 + 0], L = n[i * 3 + 1], T = n[i * 3 + 2], K = 0; K < y; K += 1)
1392
- h.push(p(L, T));
1393
- return h;
1394
- }, v;
1387
+ for (var t = n.length / 3, g = [], i = 0; i < t; i += 1)
1388
+ for (var p = n[i * 3 + 0], L = n[i * 3 + 1], T = n[i * 3 + 2], V = 0; V < p; V += 1)
1389
+ g.push(b(L, T));
1390
+ return g;
1391
+ }, c;
1395
1392
  }(), C = function() {
1396
- var o = [], p = 0, v = {};
1397
- return v.getBuffer = function() {
1393
+ var o = [], b = 0, c = {};
1394
+ return c.getBuffer = function() {
1398
1395
  return o;
1399
- }, v.getAt = function(x) {
1400
- var f = Math.floor(x / 8);
1401
- return (o[f] >>> 7 - x % 8 & 1) == 1;
1402
- }, v.put = function(x, f) {
1396
+ }, c.getAt = function(y) {
1397
+ var f = Math.floor(y / 8);
1398
+ return (o[f] >>> 7 - y % 8 & 1) == 1;
1399
+ }, c.put = function(y, f) {
1403
1400
  for (var w = 0; w < f; w += 1)
1404
- v.putBit((x >>> f - w - 1 & 1) == 1);
1405
- }, v.getLengthInBits = function() {
1406
- return p;
1407
- }, v.putBit = function(x) {
1408
- var f = Math.floor(p / 8);
1409
- o.length <= f && o.push(0), x && (o[f] |= 128 >>> p % 8), p += 1;
1410
- }, v;
1411
- }, F = function(o) {
1412
- var p = O.MODE_NUMBER, v = o, x = {};
1413
- x.getMode = function() {
1414
- return p;
1415
- }, x.getLength = function(n) {
1416
- return v.length;
1417
- }, x.write = function(n) {
1418
- for (var t = v, h = 0; h + 2 < t.length; )
1419
- n.put(f(t.substring(h, h + 3)), 10), h += 3;
1420
- h < t.length && (t.length - h == 1 ? n.put(f(t.substring(h, h + 1)), 4) : t.length - h == 2 && n.put(f(t.substring(h, h + 2)), 7));
1401
+ c.putBit((y >>> f - w - 1 & 1) == 1);
1402
+ }, c.getLengthInBits = function() {
1403
+ return b;
1404
+ }, c.putBit = function(y) {
1405
+ var f = Math.floor(b / 8);
1406
+ o.length <= f && o.push(0), y && (o[f] |= 128 >>> b % 8), b += 1;
1407
+ }, c;
1408
+ }, U = function(o) {
1409
+ var b = O.MODE_NUMBER, c = o, y = {};
1410
+ y.getMode = function() {
1411
+ return b;
1412
+ }, y.getLength = function(n) {
1413
+ return c.length;
1414
+ }, y.write = function(n) {
1415
+ for (var t = c, g = 0; g + 2 < t.length; )
1416
+ n.put(f(t.substring(g, g + 3)), 10), g += 3;
1417
+ 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));
1421
1418
  };
1422
1419
  var f = function(n) {
1423
- for (var t = 0, h = 0; h < n.length; h += 1)
1424
- t = t * 10 + w(n.charAt(h));
1420
+ for (var t = 0, g = 0; g < n.length; g += 1)
1421
+ t = t * 10 + w(n.charAt(g));
1425
1422
  return t;
1426
1423
  }, w = function(n) {
1427
1424
  if ("0" <= n && n <= "9")
1428
1425
  return n.charCodeAt(0) - 48;
1429
1426
  throw "illegal char :" + n;
1430
1427
  };
1431
- return x;
1432
- }, E = function(o) {
1433
- var p = O.MODE_ALPHA_NUM, v = o, x = {};
1434
- x.getMode = function() {
1435
- return p;
1436
- }, x.getLength = function(w) {
1437
- return v.length;
1438
- }, x.write = function(w) {
1439
- for (var n = v, t = 0; t + 1 < n.length; )
1428
+ return y;
1429
+ }, D = function(o) {
1430
+ var b = O.MODE_ALPHA_NUM, c = o, y = {};
1431
+ y.getMode = function() {
1432
+ return b;
1433
+ }, y.getLength = function(w) {
1434
+ return c.length;
1435
+ }, y.write = function(w) {
1436
+ for (var n = c, t = 0; t + 1 < n.length; )
1440
1437
  w.put(
1441
1438
  f(n.charAt(t)) * 45 + f(n.charAt(t + 1)),
1442
1439
  11
@@ -1471,70 +1468,70 @@ function Ur() {
1471
1468
  throw "illegal char :" + w;
1472
1469
  }
1473
1470
  };
1474
- return x;
1475
- }, U = function(o) {
1476
- var p = O.MODE_8BIT_BYTE, v = V.stringToBytes(o), x = {};
1477
- return x.getMode = function() {
1478
- return p;
1479
- }, x.getLength = function(f) {
1480
- return v.length;
1481
- }, x.write = function(f) {
1482
- for (var w = 0; w < v.length; w += 1)
1483
- f.put(v[w], 8);
1484
- }, x;
1485
- }, N = function(o) {
1486
- var p = O.MODE_KANJI, v = V.stringToBytesFuncs.SJIS;
1487
- if (!v)
1471
+ return y;
1472
+ }, H = function(o) {
1473
+ var b = O.MODE_8BIT_BYTE, c = W.stringToBytes(o), y = {};
1474
+ return y.getMode = function() {
1475
+ return b;
1476
+ }, y.getLength = function(f) {
1477
+ return c.length;
1478
+ }, y.write = function(f) {
1479
+ for (var w = 0; w < c.length; w += 1)
1480
+ f.put(c[w], 8);
1481
+ }, y;
1482
+ }, q = function(o) {
1483
+ var b = O.MODE_KANJI, c = W.stringToBytesFuncs.SJIS;
1484
+ if (!c)
1488
1485
  throw "sjis not supported.";
1489
1486
  (function(w, n) {
1490
- var t = v(w);
1487
+ var t = c(w);
1491
1488
  if (t.length != 2 || (t[0] << 8 | t[1]) != n)
1492
1489
  throw "sjis not supported.";
1493
1490
  })("友", 38726);
1494
- var x = v(o), f = {};
1491
+ var y = c(o), f = {};
1495
1492
  return f.getMode = function() {
1496
- return p;
1493
+ return b;
1497
1494
  }, f.getLength = function(w) {
1498
- return ~~(x.length / 2);
1495
+ return ~~(y.length / 2);
1499
1496
  }, f.write = function(w) {
1500
- for (var n = x, t = 0; t + 1 < n.length; ) {
1501
- var h = (255 & n[t]) << 8 | 255 & n[t + 1];
1502
- if (33088 <= h && h <= 40956)
1503
- h -= 33088;
1504
- else if (57408 <= h && h <= 60351)
1505
- h -= 49472;
1497
+ for (var n = y, t = 0; t + 1 < n.length; ) {
1498
+ var g = (255 & n[t]) << 8 | 255 & n[t + 1];
1499
+ if (33088 <= g && g <= 40956)
1500
+ g -= 33088;
1501
+ else if (57408 <= g && g <= 60351)
1502
+ g -= 49472;
1506
1503
  else
1507
- throw "illegal char at " + (t + 1) + "/" + h;
1508
- h = (h >>> 8 & 255) * 192 + (h & 255), w.put(h, 13), t += 2;
1504
+ throw "illegal char at " + (t + 1) + "/" + g;
1505
+ g = (g >>> 8 & 255) * 192 + (g & 255), w.put(g, 13), t += 2;
1509
1506
  }
1510
1507
  if (t < n.length)
1511
1508
  throw "illegal char at " + (t + 1);
1512
1509
  }, f;
1513
- }, S = function() {
1514
- var o = [], p = {};
1515
- return p.writeByte = function(v) {
1516
- o.push(v & 255);
1517
- }, p.writeShort = function(v) {
1518
- p.writeByte(v), p.writeByte(v >>> 8);
1519
- }, p.writeBytes = function(v, x, f) {
1520
- x = x || 0, f = f || v.length;
1510
+ }, N = function() {
1511
+ var o = [], b = {};
1512
+ return b.writeByte = function(c) {
1513
+ o.push(c & 255);
1514
+ }, b.writeShort = function(c) {
1515
+ b.writeByte(c), b.writeByte(c >>> 8);
1516
+ }, b.writeBytes = function(c, y, f) {
1517
+ y = y || 0, f = f || c.length;
1521
1518
  for (var w = 0; w < f; w += 1)
1522
- p.writeByte(v[w + x]);
1523
- }, p.writeString = function(v) {
1524
- for (var x = 0; x < v.length; x += 1)
1525
- p.writeByte(v.charCodeAt(x));
1526
- }, p.toByteArray = function() {
1519
+ b.writeByte(c[w + y]);
1520
+ }, b.writeString = function(c) {
1521
+ for (var y = 0; y < c.length; y += 1)
1522
+ b.writeByte(c.charCodeAt(y));
1523
+ }, b.toByteArray = function() {
1527
1524
  return o;
1528
- }, p.toString = function() {
1529
- var v = "";
1530
- v += "[";
1531
- for (var x = 0; x < o.length; x += 1)
1532
- x > 0 && (v += ","), v += o[x];
1533
- return v += "]", v;
1534
- }, p;
1525
+ }, b.toString = function() {
1526
+ var c = "";
1527
+ c += "[";
1528
+ for (var y = 0; y < o.length; y += 1)
1529
+ y > 0 && (c += ","), c += o[y];
1530
+ return c += "]", c;
1531
+ }, b;
1535
1532
  }, Z = function() {
1536
- var o = 0, p = 0, v = 0, x = "", f = {}, w = function(t) {
1537
- x += String.fromCharCode(n(t & 63));
1533
+ var o = 0, b = 0, c = 0, y = "", f = {}, w = function(t) {
1534
+ y += String.fromCharCode(n(t & 63));
1538
1535
  }, n = function(t) {
1539
1536
  if (!(t < 0)) {
1540
1537
  if (t < 26)
@@ -1551,33 +1548,33 @@ function Ur() {
1551
1548
  throw "n:" + t;
1552
1549
  };
1553
1550
  return f.writeByte = function(t) {
1554
- for (o = o << 8 | t & 255, p += 8, v += 1; p >= 6; )
1555
- w(o >>> p - 6), p -= 6;
1551
+ for (o = o << 8 | t & 255, b += 8, c += 1; b >= 6; )
1552
+ w(o >>> b - 6), b -= 6;
1556
1553
  }, f.flush = function() {
1557
- if (p > 0 && (w(o << 6 - p), o = 0, p = 0), v % 3 != 0)
1558
- for (var t = 3 - v % 3, h = 0; h < t; h += 1)
1559
- x += "=";
1554
+ if (b > 0 && (w(o << 6 - b), o = 0, b = 0), c % 3 != 0)
1555
+ for (var t = 3 - c % 3, g = 0; g < t; g += 1)
1556
+ y += "=";
1560
1557
  }, f.toString = function() {
1561
- return x;
1558
+ return y;
1562
1559
  }, f;
1563
- }, Q = function(o) {
1564
- var p = o, v = 0, x = 0, f = 0, w = {};
1560
+ }, G = function(o) {
1561
+ var b = o, c = 0, y = 0, f = 0, w = {};
1565
1562
  w.read = function() {
1566
1563
  for (; f < 8; ) {
1567
- if (v >= p.length) {
1564
+ if (c >= b.length) {
1568
1565
  if (f == 0)
1569
1566
  return -1;
1570
1567
  throw "unexpected end of file./" + f;
1571
1568
  }
1572
- var t = p.charAt(v);
1573
- if (v += 1, t == "=")
1569
+ var t = b.charAt(c);
1570
+ if (c += 1, t == "=")
1574
1571
  return f = 0, -1;
1575
1572
  if (t.match(/^\s$/))
1576
1573
  continue;
1577
- x = x << 6 | n(t.charCodeAt(0)), f += 6;
1574
+ y = y << 6 | n(t.charCodeAt(0)), f += 6;
1578
1575
  }
1579
- var h = x >>> f - 8 & 255;
1580
- return f -= 8, h;
1576
+ var g = y >>> f - 8 & 255;
1577
+ return f -= 8, g;
1581
1578
  };
1582
1579
  var n = function(t) {
1583
1580
  if (65 <= t && t <= 90)
@@ -1593,49 +1590,49 @@ function Ur() {
1593
1590
  throw "c:" + t;
1594
1591
  };
1595
1592
  return w;
1596
- }, z = function(o, p) {
1597
- var v = o, x = p, f = new Array(o * p), w = {};
1598
- w.setPixel = function(i, y, L) {
1599
- f[y * v + i] = L;
1593
+ }, z = function(o, b) {
1594
+ var c = o, y = b, f = new Array(o * b), w = {};
1595
+ w.setPixel = function(i, p, L) {
1596
+ f[p * c + i] = L;
1600
1597
  }, w.write = function(i) {
1601
- i.writeString("GIF87a"), i.writeShort(v), i.writeShort(x), 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(v), i.writeShort(x), i.writeByte(0);
1602
- var y = 2, L = t(y);
1603
- i.writeByte(y);
1598
+ 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);
1599
+ var p = 2, L = t(p);
1600
+ i.writeByte(p);
1604
1601
  for (var T = 0; L.length - T > 255; )
1605
1602
  i.writeByte(255), i.writeBytes(L, T, 255), T += 255;
1606
1603
  i.writeByte(L.length - T), i.writeBytes(L, T, L.length - T), i.writeByte(0), i.writeString(";");
1607
1604
  };
1608
1605
  var n = function(i) {
1609
- var y = i, L = 0, T = 0, K = {};
1610
- return K.write = function(q, re) {
1611
- if (q >>> re)
1606
+ var p = i, L = 0, T = 0, V = {};
1607
+ return V.write = function(j, re) {
1608
+ if (j >>> re)
1612
1609
  throw "length over";
1613
1610
  for (; L + re >= 8; )
1614
- y.writeByte(255 & (q << L | T)), re -= 8 - L, q >>>= 8 - L, T = 0, L = 0;
1615
- T = q << L | T, L = L + re;
1616
- }, K.flush = function() {
1617
- L > 0 && y.writeByte(T);
1618
- }, K;
1611
+ p.writeByte(255 & (j << L | T)), re -= 8 - L, j >>>= 8 - L, T = 0, L = 0;
1612
+ T = j << L | T, L = L + re;
1613
+ }, V.flush = function() {
1614
+ L > 0 && p.writeByte(T);
1615
+ }, V;
1619
1616
  }, t = function(i) {
1620
- for (var y = 1 << i, L = (1 << i) + 1, T = i + 1, K = h(), q = 0; q < y; q += 1)
1621
- K.add(String.fromCharCode(q));
1622
- K.add(String.fromCharCode(y)), K.add(String.fromCharCode(L));
1623
- var re = S(), oe = n(re);
1624
- oe.write(y, T);
1625
- var D = 0, k = String.fromCharCode(f[D]);
1626
- for (D += 1; D < f.length; ) {
1627
- var ue = String.fromCharCode(f[D]);
1628
- D += 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);
1617
+ for (var p = 1 << i, L = (1 << i) + 1, T = i + 1, V = g(), j = 0; j < p; j += 1)
1618
+ V.add(String.fromCharCode(j));
1619
+ V.add(String.fromCharCode(p)), V.add(String.fromCharCode(L));
1620
+ var re = N(), oe = n(re);
1621
+ oe.write(p, T);
1622
+ var k = 0, B = String.fromCharCode(f[k]);
1623
+ for (k += 1; k < f.length; ) {
1624
+ var ue = String.fromCharCode(f[k]);
1625
+ k += 1, V.contains(B + ue) ? B = B + ue : (oe.write(V.indexOf(B), T), V.size() < 4095 && (V.size() == 1 << T && (T += 1), V.add(B + ue)), B = ue);
1629
1626
  }
1630
- return oe.write(K.indexOf(k), T), oe.write(L, T), oe.flush(), re.toByteArray();
1631
- }, h = function() {
1632
- var i = {}, y = 0, L = {};
1627
+ return oe.write(V.indexOf(B), T), oe.write(L, T), oe.flush(), re.toByteArray();
1628
+ }, g = function() {
1629
+ var i = {}, p = 0, L = {};
1633
1630
  return L.add = function(T) {
1634
1631
  if (L.contains(T))
1635
1632
  throw "dup key:" + T;
1636
- i[T] = y, y += 1;
1633
+ i[T] = p, p += 1;
1637
1634
  }, L.size = function() {
1638
- return y;
1635
+ return p;
1639
1636
  }, L.indexOf = function(T) {
1640
1637
  return i[T];
1641
1638
  }, L.contains = function(T) {
@@ -1643,43 +1640,43 @@ function Ur() {
1643
1640
  }, L;
1644
1641
  };
1645
1642
  return w;
1646
- }, H = function(o, p, v) {
1647
- for (var x = z(o, p), f = 0; f < p; f += 1)
1643
+ }, R = function(o, b, c) {
1644
+ for (var y = z(o, b), f = 0; f < b; f += 1)
1648
1645
  for (var w = 0; w < o; w += 1)
1649
- x.setPixel(w, f, v(w, f));
1650
- var n = S();
1651
- x.write(n);
1652
- for (var t = Z(), h = n.toByteArray(), i = 0; i < h.length; i += 1)
1653
- t.writeByte(h[i]);
1646
+ y.setPixel(w, f, c(w, f));
1647
+ var n = N();
1648
+ y.write(n);
1649
+ for (var t = Z(), g = n.toByteArray(), i = 0; i < g.length; i += 1)
1650
+ t.writeByte(g[i]);
1654
1651
  return t.flush(), "data:image/gif;base64," + t;
1655
1652
  };
1656
- return V;
1653
+ return W;
1657
1654
  }();
1658
1655
  (function() {
1659
- ie.stringToBytesFuncs["UTF-8"] = function(V) {
1656
+ ie.stringToBytesFuncs["UTF-8"] = function(W) {
1660
1657
  function O(Y) {
1661
- for (var $ = [], M = 0; M < Y.length; M++) {
1662
- var b = Y.charCodeAt(M);
1663
- b < 128 ? $.push(b) : b < 2048 ? $.push(
1664
- 192 | b >> 6,
1665
- 128 | b & 63
1666
- ) : b < 55296 || b >= 57344 ? $.push(
1667
- 224 | b >> 12,
1668
- 128 | b >> 6 & 63,
1669
- 128 | b & 63
1670
- ) : (M++, b = 65536 + ((b & 1023) << 10 | Y.charCodeAt(M) & 1023), $.push(
1671
- 240 | b >> 18,
1672
- 128 | b >> 12 & 63,
1673
- 128 | b >> 6 & 63,
1674
- 128 | b & 63
1658
+ for (var F = [], M = 0; M < Y.length; M++) {
1659
+ var x = Y.charCodeAt(M);
1660
+ x < 128 ? F.push(x) : x < 2048 ? F.push(
1661
+ 192 | x >> 6,
1662
+ 128 | x & 63
1663
+ ) : x < 55296 || x >= 57344 ? F.push(
1664
+ 224 | x >> 12,
1665
+ 128 | x >> 6 & 63,
1666
+ 128 | x & 63
1667
+ ) : (M++, x = 65536 + ((x & 1023) << 10 | Y.charCodeAt(M) & 1023), F.push(
1668
+ 240 | x >> 18,
1669
+ 128 | x >> 12 & 63,
1670
+ 128 | x >> 6 & 63,
1671
+ 128 | x & 63
1675
1672
  ));
1676
1673
  }
1677
- return $;
1674
+ return F;
1678
1675
  }
1679
- return O(V);
1676
+ return O(W);
1680
1677
  };
1681
- })(), function(V) {
1682
- W.exports = V();
1678
+ })(), function(W) {
1679
+ K.exports = W();
1683
1680
  }(function() {
1684
1681
  return ie;
1685
1682
  });
@@ -1689,45 +1686,45 @@ var Bt;
1689
1686
  function Hr() {
1690
1687
  if (Bt) return Te;
1691
1688
  Bt = 1;
1692
- var W = Te && Te.__extends || /* @__PURE__ */ function() {
1693
- var $ = function(M, b) {
1694
- return $ = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(g, A) {
1695
- g.__proto__ = A;
1696
- } || function(g, A) {
1697
- for (var C in A) Object.prototype.hasOwnProperty.call(A, C) && (g[C] = A[C]);
1698
- }, $(M, b);
1689
+ var K = Te && Te.__extends || /* @__PURE__ */ function() {
1690
+ var F = function(M, x) {
1691
+ return F = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, A) {
1692
+ d.__proto__ = A;
1693
+ } || function(d, A) {
1694
+ for (var C in A) Object.prototype.hasOwnProperty.call(A, C) && (d[C] = A[C]);
1695
+ }, F(M, x);
1699
1696
  };
1700
- return function(M, b) {
1701
- if (typeof b != "function" && b !== null)
1702
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
1703
- $(M, b);
1704
- function g() {
1697
+ return function(M, x) {
1698
+ if (typeof x != "function" && x !== null)
1699
+ throw new TypeError("Class extends value " + String(x) + " is not a constructor or null");
1700
+ F(M, x);
1701
+ function d() {
1705
1702
  this.constructor = M;
1706
1703
  }
1707
- M.prototype = b === null ? Object.create(b) : (g.prototype = b.prototype, new g());
1704
+ M.prototype = x === null ? Object.create(x) : (d.prototype = x.prototype, new d());
1708
1705
  };
1709
1706
  }(), X = Te && Te.__assign || function() {
1710
- return X = Object.assign || function($) {
1711
- for (var M, b = 1, g = arguments.length; b < g; b++) {
1712
- M = arguments[b];
1713
- for (var A in M) Object.prototype.hasOwnProperty.call(M, A) && ($[A] = M[A]);
1707
+ return X = Object.assign || function(F) {
1708
+ for (var M, x = 1, d = arguments.length; x < d; x++) {
1709
+ M = arguments[x];
1710
+ for (var A in M) Object.prototype.hasOwnProperty.call(M, A) && (F[A] = M[A]);
1714
1711
  }
1715
- return $;
1712
+ return F;
1716
1713
  }, X.apply(this, arguments);
1717
1714
  };
1718
1715
  Object.defineProperty(Te, "__esModule", { value: !0 }), Te.QRCode = void 0;
1719
- var ie = Fr(), V = Ur(), O = Nr, Y = (
1716
+ var ie = Fr(), W = Ur(), O = Nr, Y = (
1720
1717
  /** @class */
1721
- function($) {
1722
- W(M, $);
1723
- function M(b) {
1724
- var g = $.call(this, b) || this;
1725
- return g.canvasRef = O.createRef(), g;
1718
+ function(F) {
1719
+ K(M, F);
1720
+ function M(x) {
1721
+ var d = F.call(this, x) || this;
1722
+ return d.canvasRef = O.createRef(), d;
1726
1723
  }
1727
- return M.prototype.download = function(b, g) {
1724
+ return M.prototype.download = function(x, d) {
1728
1725
  if (this.canvasRef.current) {
1729
1726
  var A = void 0;
1730
- switch (b) {
1727
+ switch (x) {
1731
1728
  case "jpg":
1732
1729
  A = "image/jpeg";
1733
1730
  break;
@@ -1739,102 +1736,102 @@ function Hr() {
1739
1736
  A = "image/png";
1740
1737
  break;
1741
1738
  }
1742
- var C = this.canvasRef.current.toDataURL(A, 1), F = document.createElement("a");
1743
- F.download = g ?? "react-qrcode-logo", F.href = C, F.click();
1739
+ var C = this.canvasRef.current.toDataURL(A, 1), U = document.createElement("a");
1740
+ U.download = d ?? "react-qrcode-logo", U.href = C, U.click();
1744
1741
  }
1745
- }, M.prototype.utf16to8 = function(b) {
1746
- var g = "", A, C, F = b.length;
1747
- for (A = 0; A < F; A++)
1748
- C = b.charCodeAt(A), C >= 1 && C <= 127 ? g += b.charAt(A) : C > 2047 ? (g += String.fromCharCode(224 | C >> 12 & 15), g += String.fromCharCode(128 | C >> 6 & 63), g += String.fromCharCode(128 | C >> 0 & 63)) : (g += String.fromCharCode(192 | C >> 6 & 31), g += String.fromCharCode(128 | C >> 0 & 63));
1749
- return g;
1750
- }, M.prototype.drawRoundedSquare = function(b, g, A, C, F, E, U, N) {
1751
- N.lineWidth = b, N.fillStyle = F, N.strokeStyle = F, A += b / 2, g += b / 2, C -= b, Array.isArray(E) || (E = [E, E, E, E]), E = E.map(function(H) {
1752
- return H = Math.min(H, C / 2), H < 0 ? 0 : H;
1742
+ }, M.prototype.utf16to8 = function(x) {
1743
+ var d = "", A, C, U = x.length;
1744
+ for (A = 0; A < U; A++)
1745
+ C = x.charCodeAt(A), C >= 1 && C <= 127 ? d += x.charAt(A) : C > 2047 ? (d += String.fromCharCode(224 | C >> 12 & 15), d += String.fromCharCode(128 | C >> 6 & 63), d += String.fromCharCode(128 | C >> 0 & 63)) : (d += String.fromCharCode(192 | C >> 6 & 31), d += String.fromCharCode(128 | C >> 0 & 63));
1746
+ return d;
1747
+ }, M.prototype.drawRoundedSquare = function(x, d, A, C, U, D, H, q) {
1748
+ q.lineWidth = x, q.fillStyle = U, q.strokeStyle = U, A += x / 2, d += x / 2, C -= x, Array.isArray(D) || (D = [D, D, D, D]), D = D.map(function(R) {
1749
+ return R = Math.min(R, C / 2), R < 0 ? 0 : R;
1753
1750
  });
1754
- var S = E[0] || 0, Z = E[1] || 0, Q = E[2] || 0, z = E[3] || 0;
1755
- N.beginPath(), N.moveTo(g + S, A), N.lineTo(g + C - Z, A), Z && N.quadraticCurveTo(g + C, A, g + C, A + Z), N.lineTo(g + C, A + C - Q), Q && N.quadraticCurveTo(g + C, A + C, g + C - Q, A + C), N.lineTo(g + z, A + C), z && N.quadraticCurveTo(g, A + C, g, A + C - z), N.lineTo(g, A + S), S && N.quadraticCurveTo(g, A, g + S, A), N.closePath(), N.stroke(), U && N.fill();
1756
- }, M.prototype.drawPositioningPattern = function(b, g, A, C, F, E, U) {
1757
- U === void 0 && (U = [0, 0, 0, 0]);
1758
- var N = Math.ceil(g), S, Z;
1759
- typeof U != "number" && !Array.isArray(U) ? (S = U.outer || 0, Z = U.inner || 0) : (S = U, Z = S);
1760
- var Q, z;
1761
- typeof E != "string" ? (Q = E.outer, z = E.inner) : (Q = E, z = E);
1762
- var H = C * g + A, o = F * g + A, p = g * 7;
1763
- this.drawRoundedSquare(N, o, H, p, Q, S, !1, b), p = g * 3, H += g * 2, o += g * 2, this.drawRoundedSquare(N, o, H, p, z, Z, !0, b);
1764
- }, M.prototype.isInPositioninZone = function(b, g, A) {
1751
+ var N = D[0] || 0, Z = D[1] || 0, G = D[2] || 0, z = D[3] || 0;
1752
+ q.beginPath(), q.moveTo(d + N, A), q.lineTo(d + C - Z, A), Z && q.quadraticCurveTo(d + C, A, d + C, A + Z), q.lineTo(d + C, A + C - G), G && q.quadraticCurveTo(d + C, A + C, d + C - G, A + C), q.lineTo(d + z, A + C), z && q.quadraticCurveTo(d, A + C, d, A + C - z), q.lineTo(d, A + N), N && q.quadraticCurveTo(d, A, d + N, A), q.closePath(), q.stroke(), H && q.fill();
1753
+ }, M.prototype.drawPositioningPattern = function(x, d, A, C, U, D, H) {
1754
+ H === void 0 && (H = [0, 0, 0, 0]);
1755
+ var q = Math.ceil(d), N, Z;
1756
+ typeof H != "number" && !Array.isArray(H) ? (N = H.outer || 0, Z = H.inner || 0) : (N = H, Z = N);
1757
+ var G, z;
1758
+ typeof D != "string" ? (G = D.outer, z = D.inner) : (G = D, z = D);
1759
+ var R = C * d + A, o = U * d + A, b = d * 7;
1760
+ this.drawRoundedSquare(q, o, R, b, G, N, !1, x), b = d * 3, R += d * 2, o += d * 2, this.drawRoundedSquare(q, o, R, b, z, Z, !0, x);
1761
+ }, M.prototype.isInPositioninZone = function(x, d, A) {
1765
1762
  return A.some(function(C) {
1766
- return g >= C.row && g <= C.row + 7 && b >= C.col && b <= C.col + 7;
1763
+ return d >= C.row && d <= C.row + 7 && x >= C.col && x <= C.col + 7;
1767
1764
  });
1768
- }, M.prototype.transformPixelLengthIntoNumberOfCells = function(b, g) {
1769
- return b / g;
1770
- }, M.prototype.isCoordinateInImage = function(b, g, A, C, F, E, U, N) {
1771
- if (N) {
1772
- var S = 2, Z = this.transformPixelLengthIntoNumberOfCells(F, U), Q = this.transformPixelLengthIntoNumberOfCells(E, U), z = this.transformPixelLengthIntoNumberOfCells(A, U) - 1, H = this.transformPixelLengthIntoNumberOfCells(C, U) - 1;
1773
- return g >= Z - S && g <= Z + z + S && b >= Q - S && b <= Q + H + S;
1765
+ }, M.prototype.transformPixelLengthIntoNumberOfCells = function(x, d) {
1766
+ return x / d;
1767
+ }, M.prototype.isCoordinateInImage = function(x, d, A, C, U, D, H, q) {
1768
+ if (q) {
1769
+ var N = 2, Z = this.transformPixelLengthIntoNumberOfCells(U, H), G = this.transformPixelLengthIntoNumberOfCells(D, H), z = this.transformPixelLengthIntoNumberOfCells(A, H) - 1, R = this.transformPixelLengthIntoNumberOfCells(C, H) - 1;
1770
+ return d >= Z - N && d <= Z + z + N && x >= G - N && x <= G + R + N;
1774
1771
  } else
1775
1772
  return !1;
1776
- }, M.prototype.shouldComponentUpdate = function(b) {
1777
- return !ie(this.props, b);
1773
+ }, M.prototype.shouldComponentUpdate = function(x) {
1774
+ return !ie(this.props, x);
1778
1775
  }, M.prototype.componentDidMount = function() {
1779
1776
  this.update();
1780
1777
  }, M.prototype.componentDidUpdate = function() {
1781
1778
  this.update();
1782
1779
  }, M.prototype.update = function() {
1783
- var b, g = this.props, A = g.value, C = g.ecLevel, F = g.enableCORS, E = g.bgColor, U = g.fgColor, N = g.logoImage, S = g.logoOpacity, Z = g.logoOnLoad, Q = g.removeQrCodeBehindLogo, z = g.qrStyle, H = g.eyeRadius, o = g.eyeColor, p = g.logoPaddingStyle, v = +this.props.size, x = +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 = V(0, C);
1780
+ var x, d = this.props, A = d.value, C = d.ecLevel, U = d.enableCORS, D = d.bgColor, H = d.fgColor, q = d.logoImage, N = d.logoOpacity, Z = d.logoOnLoad, G = d.removeQrCodeBehindLogo, z = d.qrStyle, R = 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);
1784
1781
  t.addData(this.utf16to8(A)), t.make();
1785
- var h = (b = this.canvasRef) === null || b === void 0 ? void 0 : b.current, i = h.getContext("2d"), y = v + 2 * x, L = t.getModuleCount(), T = v / L, K = window.devicePixelRatio || 1;
1786
- h.height = h.width = y * K, i.scale(K, K), i.fillStyle = E, i.fillRect(0, 0, y, y);
1787
- var q = x, re = [
1782
+ 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, V = window.devicePixelRatio || 1;
1783
+ g.height = g.width = p * V, i.scale(V, V), i.fillStyle = D, i.fillRect(0, 0, p, p);
1784
+ var j = y, re = [
1788
1785
  { row: 0, col: 0 },
1789
1786
  { row: 0, col: L - 7 },
1790
1787
  { row: L - 7, col: 0 }
1791
1788
  ];
1792
- if (i.strokeStyle = U, z === "dots") {
1793
- i.fillStyle = U;
1794
- for (var oe = T / 2, D = 0; D < L; D++)
1795
- for (var k = 0; k < L; k++)
1796
- t.isDark(D, k) && !this.isInPositioninZone(D, k, re) && (i.beginPath(), i.arc(Math.round(k * T) + oe + q, Math.round(D * T) + oe + q, oe / 100 * 75, 0, 2 * Math.PI, !1), i.closePath(), i.fill());
1789
+ if (i.strokeStyle = H, z === "dots") {
1790
+ i.fillStyle = H;
1791
+ for (var oe = T / 2, k = 0; k < L; k++)
1792
+ for (var B = 0; B < L; B++)
1793
+ t.isDark(k, B) && !this.isInPositioninZone(k, B, re) && (i.beginPath(), i.arc(Math.round(B * T) + oe + j, Math.round(k * T) + oe + j, oe / 100 * 75, 0, 2 * Math.PI, !1), i.closePath(), i.fill());
1797
1794
  } else if (z === "fluid") {
1798
- for (var oe = Math.ceil(T / 2), D = 0; D < L; D++)
1799
- for (var k = 0; k < L; k++)
1800
- if (t.isDark(D, k) && !this.isInPositioninZone(D, k, re)) {
1795
+ for (var oe = Math.ceil(T / 2), k = 0; k < L; k++)
1796
+ for (var B = 0; B < L; B++)
1797
+ if (t.isDark(k, B) && !this.isInPositioninZone(k, B, re)) {
1801
1798
  var ue = [!1, !1, !1, !1];
1802
- D > 0 && !t.isDark(D - 1, k) && k > 0 && !t.isDark(D, k - 1) && (ue[0] = !0), D > 0 && !t.isDark(D - 1, k) && k < L - 1 && !t.isDark(D, k + 1) && (ue[1] = !0), D < L - 1 && !t.isDark(D + 1, k) && k < L - 1 && !t.isDark(D, k + 1) && (ue[2] = !0), D < L - 1 && !t.isDark(D + 1, k) && k > 0 && !t.isDark(D, k - 1) && (ue[3] = !0);
1803
- var G = Math.ceil((k + 1) * T) - Math.floor(k * T), se = Math.ceil((D + 1) * T) - Math.floor(D * T);
1804
- i.fillStyle = U, i.beginPath(), i.arc(Math.round(k * T) + oe + q, Math.round(D * T) + oe + q, oe, 0, 2 * Math.PI, !1), i.closePath(), i.fill(), ue[0] || i.fillRect(Math.round(k * T) + q, Math.round(D * T) + q, G / 2, se / 2), ue[1] || i.fillRect(Math.round(k * T) + q + Math.floor(G / 2), Math.round(D * T) + q, G / 2, se / 2), ue[2] || i.fillRect(Math.round(k * T) + q + Math.floor(G / 2), Math.round(D * T) + q + Math.floor(se / 2), G / 2, se / 2), ue[3] || i.fillRect(Math.round(k * T) + q, Math.round(D * T) + q + Math.floor(se / 2), G / 2, se / 2);
1799
+ k > 0 && !t.isDark(k - 1, B) && B > 0 && !t.isDark(k, B - 1) && (ue[0] = !0), k > 0 && !t.isDark(k - 1, B) && B < L - 1 && !t.isDark(k, B + 1) && (ue[1] = !0), k < L - 1 && !t.isDark(k + 1, B) && B < L - 1 && !t.isDark(k, B + 1) && (ue[2] = !0), k < L - 1 && !t.isDark(k + 1, B) && B > 0 && !t.isDark(k, B - 1) && (ue[3] = !0);
1800
+ var Q = Math.ceil((B + 1) * T) - Math.floor(B * T), se = Math.ceil((k + 1) * T) - Math.floor(k * T);
1801
+ i.fillStyle = H, i.beginPath(), i.arc(Math.round(B * T) + oe + j, Math.round(k * T) + oe + j, oe, 0, 2 * Math.PI, !1), i.closePath(), i.fill(), ue[0] || i.fillRect(Math.round(B * T) + j, Math.round(k * T) + j, Q / 2, se / 2), ue[1] || i.fillRect(Math.round(B * T) + j + Math.floor(Q / 2), Math.round(k * T) + j, Q / 2, se / 2), ue[2] || i.fillRect(Math.round(B * T) + j + Math.floor(Q / 2), Math.round(k * T) + j + Math.floor(se / 2), Q / 2, se / 2), ue[3] || i.fillRect(Math.round(B * T) + j, Math.round(k * T) + j + Math.floor(se / 2), Q / 2, se / 2);
1805
1802
  }
1806
1803
  } else
1807
- for (var D = 0; D < L; D++)
1808
- for (var k = 0; k < L; k++)
1809
- if (t.isDark(D, k) && !this.isInPositioninZone(D, k, re)) {
1810
- i.fillStyle = U;
1811
- var G = Math.ceil((k + 1) * T) - Math.floor(k * T), se = Math.ceil((D + 1) * T) - Math.floor(D * T);
1812
- i.fillRect(Math.round(k * T) + q, Math.round(D * T) + q, G, se);
1804
+ for (var k = 0; k < L; k++)
1805
+ for (var B = 0; B < L; B++)
1806
+ if (t.isDark(k, B) && !this.isInPositioninZone(k, B, re)) {
1807
+ i.fillStyle = H;
1808
+ var Q = Math.ceil((B + 1) * T) - Math.floor(B * T), se = Math.ceil((k + 1) * T) - Math.floor(k * T);
1809
+ i.fillRect(Math.round(B * T) + j, Math.round(k * T) + j, Q, se);
1813
1810
  }
1814
1811
  for (var _e = 0; _e < 3; _e++) {
1815
- var s = re[_e], D = s.row, k = s.col, u = H, 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 = U, this.drawPositioningPattern(i, T, q, D, k, a, u);
1812
+ var s = re[_e], k = s.row, B = s.col, u = R, a = void 0;
1813
+ 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, j, k, B, a, u);
1817
1814
  }
1818
- if (N) {
1815
+ if (q) {
1819
1816
  var l = new Image();
1820
- F && (l.crossOrigin = "Anonymous"), l.onload = function(d) {
1817
+ U && (l.crossOrigin = "Anonymous"), l.onload = function(h) {
1821
1818
  i.save();
1822
- var _ = f || v * 0.2, R = w || _, I = (v - _) / 2, J = (v - R) / 2;
1823
- if (Q || n) {
1824
- i.beginPath(), i.strokeStyle = E, i.fillStyle = E;
1825
- var ee = _ + 2 * n, B = R + 2 * n, le = I + q - n, ve = J + q - n;
1826
- if (p === "circle") {
1827
- var ke = le + ee / 2, Be = ve + B / 2;
1828
- i.ellipse(ke, Be, ee / 2, B / 2, 0, 0, 2 * Math.PI), i.stroke(), i.fill();
1819
+ var _ = f || c * 0.2, E = w || _, I = (c - _) / 2, J = (c - E) / 2;
1820
+ if (G || n) {
1821
+ i.beginPath(), i.strokeStyle = D, i.fillStyle = D;
1822
+ var ee = _ + 2 * n, S = E + 2 * n, le = I + j - n, ve = J + j - n;
1823
+ if (b === "circle") {
1824
+ var ke = le + ee / 2, Be = ve + S / 2;
1825
+ i.ellipse(ke, Be, ee / 2, S / 2, 0, 0, 2 * Math.PI), i.stroke(), i.fill();
1829
1826
  } else
1830
- i.fillRect(le, ve, ee, B);
1827
+ i.fillRect(le, ve, ee, S);
1831
1828
  }
1832
- i.globalAlpha = S, i.drawImage(l, I + q, J + q, _, R), i.restore(), Z && Z(d);
1833
- }, l.src = N;
1829
+ i.globalAlpha = N, i.drawImage(l, I + j, J + j, _, E), i.restore(), Z && Z(h);
1830
+ }, l.src = q;
1834
1831
  }
1835
1832
  }, M.prototype.render = function() {
1836
- var b, g = +this.props.size + 2 * +this.props.quietZone;
1837
- return O.createElement("canvas", { id: (b = this.props.id) !== null && b !== void 0 ? b : "react-qrcode-logo", height: g, width: g, style: X({ height: g + "px", width: g + "px" }, this.props.style), ref: this.canvasRef });
1833
+ var x, d = +this.props.size + 2 * +this.props.quietZone;
1834
+ return O.createElement("canvas", { id: (x = this.props.id) !== null && x !== void 0 ? x : "react-qrcode-logo", height: d, width: d, style: X({ height: d + "px", width: d + "px" }, this.props.style), ref: this.canvasRef });
1838
1835
  }, M.defaultProps = {
1839
1836
  value: "https://reactjs.org/",
1840
1837
  ecLevel: "M",
@@ -1906,80 +1903,76 @@ const Nt = () => /* @__PURE__ */ he("div", { className: "v-flex v-items-center v
1906
1903
  }
1907
1904
  ` })
1908
1905
  ] }), Kr = ({
1909
- title: W,
1906
+ title: K,
1910
1907
  containerClass: X
1911
1908
  }) => {
1912
- const ie = (/* @__PURE__ */ new Date()).getFullYear(), [V, O] = ge(""), [Y, $] = ge(""), [M, b] = ge(!1), {
1913
- appId: g,
1914
- apiUrl: A,
1915
- clientId: C,
1916
- codeChallenge: F,
1917
- authRequestId: E,
1918
- authRequestIdExpires: U,
1919
- setIsAuthenticating: N,
1920
- isAuthenticating: S,
1921
- token: Z,
1922
- setAuthError: Q
1909
+ const ie = (/* @__PURE__ */ new Date()).getFullYear(), [W, O] = ge(""), [Y, F] = ge(""), [M, x] = ge(!1), {
1910
+ apiUrl: d,
1911
+ clientId: A,
1912
+ codeChallenge: C,
1913
+ authRequestId: U,
1914
+ authRequestIdExpires: D,
1915
+ setIsAuthenticating: H,
1916
+ isAuthenticating: q,
1917
+ token: N,
1918
+ setAuthError: Z
1923
1919
  } = nt(Ve);
1924
1920
  Qe(() => {
1925
- if (F && E && U) {
1926
- const o = U.getTime() / 1e3, p = `c=${F},r=${E},e=${o},a=${C}`;
1927
- $(p);
1921
+ if (C && U && D) {
1922
+ const R = D.getTime() / 1e3, o = `c=${C},r=${U},e=${R},a=${A}`;
1923
+ F(o);
1928
1924
  }
1929
- }, [C, E, U, F]);
1930
- const z = Ge(async () => {
1931
- b(!0);
1925
+ }, [A, U, D, C]);
1926
+ const G = Ge(async () => {
1927
+ x(!0);
1932
1928
  try {
1933
- if (!V) {
1934
- const p = "Invalid login. Email or Abaxx ID is required.";
1935
- window.alert(p), console.error(p);
1929
+ if (!W) {
1930
+ const o = "Invalid login. Email or Abaxx ID is required.";
1931
+ window.alert(o), console.error(o);
1936
1932
  return;
1937
1933
  }
1938
- const o = await H({
1939
- alias: V,
1940
- code_challenge: F,
1941
- request_id: E
1934
+ const R = await z({
1935
+ alias: W,
1936
+ code_challenge: C,
1937
+ request_id: U
1942
1938
  });
1943
- if (o != null && o.ok)
1944
- N(!0);
1945
- else if (!(o != null && o.ok) && (o == null ? void 0 : o.message) === "Unable to request auth.") {
1946
- const p = "Invalid login. Please use your existing Email or Abaxx ID.";
1947
- window.alert(p), console.error(p);
1939
+ if (R != null && R.ok)
1940
+ H(!0);
1941
+ else if (!(R != null && R.ok) && (R == null ? void 0 : R.message) === "Unable to request auth.") {
1942
+ const o = "Invalid login. Please use your existing Email or Abaxx ID.";
1943
+ window.alert(o), console.error(o);
1948
1944
  }
1949
- } catch (o) {
1950
- const p = "Something went wrong. Please try again later.";
1951
- window.alert(p), console.error(p), console.log(o);
1945
+ } catch (R) {
1946
+ const o = "Something went wrong. Please try again later.";
1947
+ window.alert(o), console.error(o), console.log(R);
1952
1948
  }
1953
- b(!1);
1954
- }, [F, E, V, b, N]), H = Ge(
1955
- async (o) => {
1949
+ x(!1);
1950
+ }, [C, U, W, x, H]), z = Ge(
1951
+ async (R) => {
1956
1952
  try {
1957
- const p = await fetch(
1958
- `${A}/v-plus/auth/req?cid=${C}`,
1953
+ const o = await fetch(
1954
+ `${d}/v-plus/auth/req?cid=${A}`,
1959
1955
  {
1960
1956
  method: "POST",
1961
1957
  headers: {
1962
1958
  Accept: "application/json",
1963
1959
  "Content-Type": "application/json"
1964
1960
  },
1965
- body: JSON.stringify({
1966
- ...o,
1967
- appId: g
1968
- })
1961
+ body: JSON.stringify(R)
1969
1962
  }
1970
- ), v = await p.json();
1971
- if (!p.ok || v.ok === !1) {
1972
- Q(
1973
- `Auth request failed: ${v.message || p.status}`
1963
+ ), b = await o.json();
1964
+ if (!o.ok || b.ok === !1) {
1965
+ Z(
1966
+ `Auth request failed: ${b.message || o.status}`
1974
1967
  );
1975
1968
  return;
1976
1969
  }
1977
- return v;
1978
- } catch (p) {
1979
- Q(`Auth request failed: ${p}`);
1970
+ return b;
1971
+ } catch (o) {
1972
+ Z(`Auth request failed: ${o}`);
1980
1973
  }
1981
1974
  },
1982
- [A, C, Q]
1975
+ [d, A, Z]
1983
1976
  );
1984
1977
  return /* @__PURE__ */ P(He, { children: /* @__PURE__ */ he(
1985
1978
  "div",
@@ -2013,8 +2006,8 @@ const Nt = () => /* @__PURE__ */ he("div", { className: "v-flex v-items-center v
2013
2006
  height: 56
2014
2007
  }
2015
2008
  ),
2016
- !Z && !S ? /* @__PURE__ */ he(He, { children: [
2017
- /* @__PURE__ */ P("div", { className: "v-mb-8", children: E && Y ? /* @__PURE__ */ P(
2009
+ !N && !q ? /* @__PURE__ */ he(He, { children: [
2010
+ /* @__PURE__ */ P("div", { className: "v-mb-8", children: U && Y ? /* @__PURE__ */ P(
2018
2011
  St.QRCode,
2019
2012
  {
2020
2013
  value: Y,
@@ -2027,7 +2020,7 @@ const Nt = () => /* @__PURE__ */ he("div", { className: "v-flex v-items-center v
2027
2020
  quietZone: 0
2028
2021
  }
2029
2022
  ) : /* @__PURE__ */ P("div", { className: "v-w-130 v-h-130 v-flex v-items-center v-justify-center", children: /* @__PURE__ */ P(Nt, {}) }) }),
2030
- /* @__PURE__ */ P("h1", { className: "v-text-black v-text-xl v-tracking-wide v-mb-4 v-font-medium", children: W || "Verifier+ Login" }),
2023
+ /* @__PURE__ */ P("h1", { className: "v-text-black v-text-xl v-tracking-wide v-mb-4 v-font-medium", children: K || "Verifier+ Login" }),
2031
2024
  /* @__PURE__ */ P("p", { className: "v-text-gray-400 v-font-semibold v-mb-6 v-text-sm", children: "Sign in using the latest version of Verifier+ or enter Abaxx ID" }),
2032
2025
  /* @__PURE__ */ he("div", { className: "v-min-w-300", children: [
2033
2026
  /* @__PURE__ */ P(
@@ -2036,8 +2029,8 @@ const Nt = () => /* @__PURE__ */ he("div", { className: "v-flex v-items-center v
2036
2029
  type: "text",
2037
2030
  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",
2038
2031
  placeholder: "Enter Email or Abaxx ID",
2039
- value: V,
2040
- onChange: (o) => O(o.target.value),
2032
+ value: W,
2033
+ onChange: (R) => O(R.target.value),
2041
2034
  disabled: M
2042
2035
  }
2043
2036
  ),
@@ -2045,8 +2038,8 @@ const Nt = () => /* @__PURE__ */ he("div", { className: "v-flex v-items-center v
2045
2038
  "button",
2046
2039
  {
2047
2040
  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",
2048
- disabled: M || !V || !E,
2049
- onClick: z,
2041
+ disabled: M || !W || !U,
2042
+ onClick: G,
2050
2043
  children: [
2051
2044
  M && /* @__PURE__ */ P(
2052
2045
  "svg",
@@ -2086,7 +2079,7 @@ const Nt = () => /* @__PURE__ */ he("div", { className: "v-flex v-items-center v
2086
2079
  children: /* @__PURE__ */ P("path", { d: "M20 6 9 17l-5-5" })
2087
2080
  }
2088
2081
  ),
2089
- Z ? /* @__PURE__ */ P("div", { className: "v-text-2xl v-mb-3 v-text-black", children: /* @__PURE__ */ P("span", { children: "Login success!" }) }) : /* @__PURE__ */ he(He, { children: [
2082
+ N ? /* @__PURE__ */ P("div", { className: "v-text-2xl v-mb-3 v-text-black", children: /* @__PURE__ */ P("span", { children: "Login success!" }) }) : /* @__PURE__ */ he(He, { children: [
2090
2083
  /* @__PURE__ */ P("div", { className: "v-text-2xl v-mb-3 v-text-black", children: /* @__PURE__ */ P("span", { children: "Authorization requested!" }) }),
2091
2084
  /* @__PURE__ */ P("div", { className: "v-text-center v-rounded v-bg-slate-100 v-text-slate-800 v-p-3 v-my-4", children: /* @__PURE__ */ P("span", { children: "Please check the Abaxx Verifier App" }) })
2092
2085
  ] })
@@ -2104,38 +2097,38 @@ const Nt = () => /* @__PURE__ */ he("div", { className: "v-flex v-items-center v
2104
2097
  }
2105
2098
  ) });
2106
2099
  }, Wr = ({
2107
- size: W = 130,
2100
+ size: K = 130,
2108
2101
  qrColor: X = "#e60100",
2109
2102
  logoImage: ie = "https://content.abaxx.com/assets/static/qr-logo.png",
2110
- logoWidth: V = 40,
2103
+ logoWidth: W = 40,
2111
2104
  logoHeight: O = 20,
2112
2105
  quietZone: Y = 0,
2113
- containerClass: $ = "",
2106
+ containerClass: F = "",
2114
2107
  showStatus: M = !0,
2115
- checkmarkColor: b = "#c40808"
2108
+ checkmarkColor: x = "#c40808"
2116
2109
  }) => {
2117
- const [g, A] = ge(""), {
2110
+ const [d, A] = ge(""), {
2118
2111
  clientId: C,
2119
- codeChallenge: F,
2120
- authRequestId: E,
2121
- authRequestIdExpires: U,
2122
- isAuthenticating: N,
2123
- token: S
2112
+ codeChallenge: U,
2113
+ authRequestId: D,
2114
+ authRequestIdExpires: H,
2115
+ isAuthenticating: q,
2116
+ token: N
2124
2117
  } = nt(Ve);
2125
2118
  return Qe(() => {
2126
- if (F && E && U) {
2127
- const Z = U.getTime() / 1e3, Q = `c=${F},r=${E},e=${Z},a=${C}`;
2128
- A(Q);
2119
+ if (U && D && H) {
2120
+ const Z = H.getTime() / 1e3, G = `c=${U},r=${D},e=${Z},a=${C}`;
2121
+ A(G);
2129
2122
  }
2130
- }, [C, E, U, F]), /* @__PURE__ */ P("div", { className: `v-auth-qr-container ${$}`, children: !S && !N ? /* @__PURE__ */ P("div", { className: "v-qr-wrapper", children: E && g ? /* @__PURE__ */ P(
2123
+ }, [C, D, H, U]), /* @__PURE__ */ P("div", { className: `v-auth-qr-container ${F}`, children: !N && !q ? /* @__PURE__ */ P("div", { className: "v-qr-wrapper", children: D && d ? /* @__PURE__ */ P(
2131
2124
  St.QRCode,
2132
2125
  {
2133
- value: g,
2134
- size: W,
2126
+ value: d,
2127
+ size: K,
2135
2128
  fgColor: X,
2136
2129
  qrStyle: "dots",
2137
2130
  logoImage: ie,
2138
- logoWidth: V,
2131
+ logoWidth: W,
2139
2132
  logoHeight: O,
2140
2133
  quietZone: Y
2141
2134
  }
@@ -2143,7 +2136,7 @@ const Nt = () => /* @__PURE__ */ he("div", { className: "v-flex v-items-center v
2143
2136
  "div",
2144
2137
  {
2145
2138
  className: "v-flex v-items-center v-justify-center",
2146
- style: { width: W, height: W },
2139
+ style: { width: K, height: K },
2147
2140
  children: /* @__PURE__ */ P(Nt, {})
2148
2141
  }
2149
2142
  ) }) : M ? /* @__PURE__ */ he("div", { className: "v-fade-in v-flex v-items-center v-flex-col", children: [
@@ -2155,128 +2148,124 @@ const Nt = () => /* @__PURE__ */ he("div", { className: "v-flex v-items-center v
2155
2148
  height: "24",
2156
2149
  viewBox: "0 0 24 24",
2157
2150
  fill: "none",
2158
- stroke: b,
2151
+ stroke: x,
2159
2152
  strokeWidth: "2",
2160
2153
  strokeLinecap: "round",
2161
2154
  strokeLinejoin: "round",
2162
2155
  className: "v-mb-5",
2163
- style: { width: W * 0.6, height: W * 0.6 },
2156
+ style: { width: K * 0.6, height: K * 0.6 },
2164
2157
  children: /* @__PURE__ */ P("path", { d: "M20 6 9 17l-5-5" })
2165
2158
  }
2166
2159
  ),
2167
- S ? /* @__PURE__ */ P("div", { className: "v-text-lg v-mb-3 v-text-black", children: /* @__PURE__ */ P("span", { children: "Login success!" }) }) : /* @__PURE__ */ he(He, { children: [
2160
+ N ? /* @__PURE__ */ P("div", { className: "v-text-lg v-mb-3 v-text-black", children: /* @__PURE__ */ P("span", { children: "Login success!" }) }) : /* @__PURE__ */ he(He, { children: [
2168
2161
  /* @__PURE__ */ P("div", { className: "v-text-lg v-mb-3 v-text-black", children: /* @__PURE__ */ P("span", { children: "Authorization requested!" }) }),
2169
2162
  /* @__PURE__ */ P("div", { className: "v-text-center v-rounded v-bg-slate-100 v-text-slate-800 v-p-3 v-my-4", children: /* @__PURE__ */ P("span", { children: "Please check the Abaxx Verifier App" }) })
2170
2163
  ] })
2171
2164
  ] }) : null });
2172
2165
  }, Zr = ({
2173
- inputPlaceholder: W = "Enter Email or Abaxx ID",
2166
+ inputPlaceholder: K = "Enter Email or Abaxx ID",
2174
2167
  buttonText: X = "Sign In",
2175
2168
  inputHeight: ie = "v-h-10",
2176
- inputWidth: V = "v-w-full",
2169
+ inputWidth: W = "v-w-full",
2177
2170
  inputTextColor: O = "v-text-gray-600",
2178
2171
  inputBorderColor: Y = "v-border-gray-400",
2179
- inputBackgroundColor: $ = "v-bg-transparent",
2172
+ inputBackgroundColor: F = "v-bg-transparent",
2180
2173
  buttonHeight: M = "v-h-10",
2181
- buttonWidth: b = "v-w-full",
2182
- buttonBackgroundColor: g = "v-bg-red",
2174
+ buttonWidth: x = "v-w-full",
2175
+ buttonBackgroundColor: d = "v-bg-red",
2183
2176
  buttonTextColor: A = "v-text-white",
2184
2177
  containerClass: C = "",
2185
- checkmarkColor: F = "#c40808"
2178
+ checkmarkColor: U = "#c40808"
2186
2179
  }) => {
2187
- const [E, U] = ge(""), [N, S] = ge(!1), {
2188
- appId: Z,
2189
- apiUrl: Q,
2190
- clientId: z,
2191
- codeChallenge: H,
2192
- authRequestId: o,
2193
- setIsAuthenticating: p,
2194
- setAuthError: v,
2195
- isAuthenticating: x,
2196
- token: f
2197
- } = nt(Ve), w = Ge(async () => {
2198
- S(!0);
2180
+ const [D, H] = ge(""), [q, N] = ge(!1), {
2181
+ apiUrl: Z,
2182
+ clientId: G,
2183
+ codeChallenge: z,
2184
+ authRequestId: R,
2185
+ setIsAuthenticating: o,
2186
+ setAuthError: b,
2187
+ isAuthenticating: c,
2188
+ token: y
2189
+ } = nt(Ve), f = Ge(async () => {
2190
+ N(!0);
2199
2191
  try {
2200
- if (!E) {
2201
- const h = "Invalid login. Email or Abaxx ID is required.";
2202
- window.alert(h), console.error(h);
2192
+ if (!D) {
2193
+ const t = "Invalid login. Email or Abaxx ID is required.";
2194
+ window.alert(t), console.error(t);
2203
2195
  return;
2204
2196
  }
2205
- const t = await n({
2206
- alias: E,
2207
- code_challenge: H,
2208
- request_id: o
2197
+ const n = await w({
2198
+ alias: D,
2199
+ code_challenge: z,
2200
+ request_id: R
2209
2201
  });
2210
- if (t != null && t.ok)
2211
- p(!0);
2212
- else if (!(t != null && t.ok) && (t == null ? void 0 : t.message) === "Unable to request auth.") {
2213
- const h = "Invalid login. Please use your existing Email or Abaxx ID.";
2214
- window.alert(h), console.error(h);
2202
+ if (n != null && n.ok)
2203
+ o(!0);
2204
+ else if (!(n != null && n.ok) && (n == null ? void 0 : n.message) === "Unable to request auth.") {
2205
+ const t = "Invalid login. Please use your existing Email or Abaxx ID.";
2206
+ window.alert(t), console.error(t);
2215
2207
  }
2216
- } catch (t) {
2217
- const h = "Something went wrong. Please try again later.";
2218
- window.alert(h), console.error(h), console.log(t);
2208
+ } catch (n) {
2209
+ const t = "Something went wrong. Please try again later.";
2210
+ window.alert(t), console.error(t), console.log(n);
2219
2211
  }
2220
- S(!1);
2221
- }, [H, o, E, S, p]), n = Ge(
2222
- async (t) => {
2212
+ N(!1);
2213
+ }, [z, R, D, N, o]), w = Ge(
2214
+ async (n) => {
2223
2215
  try {
2224
- const h = await fetch(
2225
- `${Q}/v-plus/auth/req?cid=${z}`,
2216
+ const t = await fetch(
2217
+ `${Z}/v-plus/auth/req?cid=${G}`,
2226
2218
  {
2227
2219
  method: "POST",
2228
2220
  headers: {
2229
2221
  Accept: "application/json",
2230
2222
  "Content-Type": "application/json"
2231
2223
  },
2232
- body: JSON.stringify({
2233
- ...t,
2234
- appId: Z
2235
- })
2224
+ body: JSON.stringify(n)
2236
2225
  }
2237
- ), i = await h.json();
2238
- if (!h.ok || i.ok === !1) {
2239
- v(
2240
- `Auth request failed: ${i.message || h.status}`
2226
+ ), g = await t.json();
2227
+ if (!t.ok || g.ok === !1) {
2228
+ b(
2229
+ `Auth request failed: ${g.message || t.status}`
2241
2230
  );
2242
2231
  return;
2243
2232
  }
2244
- return i;
2245
- } catch (h) {
2246
- v(`Auth request failed: ${h}`);
2233
+ return g;
2234
+ } catch (t) {
2235
+ b(`Auth request failed: ${t}`);
2247
2236
  }
2248
2237
  },
2249
- [Q, z, Z, v]
2238
+ [Z, G, b]
2250
2239
  );
2251
- return /* @__PURE__ */ P("div", { className: `v-auth-email-container ${C}`, children: !f && !x ? /* @__PURE__ */ he("div", { className: "v-min-w-300", children: [
2240
+ return /* @__PURE__ */ P("div", { className: `v-auth-email-container ${C}`, children: !y && !c ? /* @__PURE__ */ he("div", { className: "v-min-w-300", children: [
2252
2241
  /* @__PURE__ */ P(
2253
2242
  "input",
2254
2243
  {
2255
2244
  type: "text",
2256
- className: `v-input ${V} ${ie} v-mb-4 v-rounded v-border v-px-2 v-text-center`,
2245
+ className: `v-input ${W} ${ie} v-mb-4 v-rounded v-border v-px-2 v-text-center`,
2257
2246
  style: {
2258
- backgroundColor: $.startsWith("#") ? $ : $ === "v-bg-transparent" ? "transparent" : $ === "v-bg-white" ? "#ffffff" : "transparent",
2247
+ backgroundColor: F.startsWith("#") ? F : F === "v-bg-transparent" ? "transparent" : F === "v-bg-white" ? "#ffffff" : "transparent",
2259
2248
  color: O.startsWith("#") ? O : O === "v-text-gray-600" ? "#6b7280" : O === "v-text-black" ? "#000000" : O === "v-text-white" ? "#ffffff" : "#6b7280",
2260
2249
  borderColor: Y.startsWith("#") ? Y : Y === "v-border-gray-400" ? "#9ca3af" : Y === "v-border-blue-400" ? "#60a5fa" : "#9ca3af"
2261
2250
  },
2262
- placeholder: W,
2263
- value: E,
2264
- onChange: (t) => U(t.target.value),
2265
- disabled: N
2251
+ placeholder: K,
2252
+ value: D,
2253
+ onChange: (n) => H(n.target.value),
2254
+ disabled: q
2266
2255
  }
2267
2256
  ),
2268
2257
  /* @__PURE__ */ he(
2269
2258
  "button",
2270
2259
  {
2271
- className: `v-button ${M} ${b} v-text-base v-font-semibold v-flex v-items-center v-gap-2 v-justify-center`,
2260
+ className: `v-button ${M} ${x} v-text-base v-font-semibold v-flex v-items-center v-gap-2 v-justify-center`,
2272
2261
  style: {
2273
- backgroundColor: g.startsWith("#") ? g : g === "v-bg-blue" ? "#3b82f6" : g === "v-bg-red" ? "#ef4444" : g === "v-bg-green" ? "#10b981" : g === "v-bg-purple" ? "#8b5cf6" : g === "v-bg-yellow" ? "#f59e0b" : g === "v-bg-gray" ? "#6b7280" : "#ef4444",
2262
+ backgroundColor: d.startsWith("#") ? d : d === "v-bg-blue" ? "#3b82f6" : d === "v-bg-red" ? "#ef4444" : d === "v-bg-green" ? "#10b981" : d === "v-bg-purple" ? "#8b5cf6" : d === "v-bg-yellow" ? "#f59e0b" : d === "v-bg-gray" ? "#6b7280" : "#ef4444",
2274
2263
  color: A.startsWith("#") ? A : A === "v-text-white" ? "#ffffff" : A === "v-text-black" ? "#000000" : A === "v-text-gray-600" ? "#6b7280" : "#ffffff"
2275
2264
  },
2276
- disabled: N || !E || !o,
2277
- onClick: w,
2265
+ disabled: q || !D || !R,
2266
+ onClick: f,
2278
2267
  children: [
2279
- N && /* @__PURE__ */ P(
2268
+ q && /* @__PURE__ */ P(
2280
2269
  "svg",
2281
2270
  {
2282
2271
  xmlns: "http://www.w3.org/2000/svg",
@@ -2284,7 +2273,7 @@ const Nt = () => /* @__PURE__ */ he("div", { className: "v-flex v-items-center v
2284
2273
  height: "24",
2285
2274
  viewBox: "0 0 24 24",
2286
2275
  fill: "none",
2287
- stroke: F,
2276
+ stroke: U,
2288
2277
  strokeWidth: "2",
2289
2278
  strokeLinecap: "round",
2290
2279
  strokeLinejoin: "round",
@@ -2305,7 +2294,7 @@ const Nt = () => /* @__PURE__ */ he("div", { className: "v-flex v-items-center v
2305
2294
  height: "24",
2306
2295
  viewBox: "0 0 24 24",
2307
2296
  fill: "none",
2308
- stroke: F,
2297
+ stroke: U,
2309
2298
  strokeWidth: "2",
2310
2299
  strokeLinecap: "round",
2311
2300
  strokeLinejoin: "round",
@@ -2313,7 +2302,7 @@ const Nt = () => /* @__PURE__ */ he("div", { className: "v-flex v-items-center v
2313
2302
  children: /* @__PURE__ */ P("path", { d: "M20 6 9 17l-5-5" })
2314
2303
  }
2315
2304
  ),
2316
- f ? /* @__PURE__ */ P("div", { className: "v-text-2xl v-mb-3 v-text-black", children: /* @__PURE__ */ P("span", { children: "Login success!" }) }) : /* @__PURE__ */ he(He, { children: [
2305
+ y ? /* @__PURE__ */ P("div", { className: "v-text-2xl v-mb-3 v-text-black", children: /* @__PURE__ */ P("span", { children: "Login success!" }) }) : /* @__PURE__ */ he(He, { children: [
2317
2306
  /* @__PURE__ */ P("div", { className: "v-text-2xl v-mb-3 v-text-black", children: /* @__PURE__ */ P("span", { children: "Authorization requested!" }) }),
2318
2307
  /* @__PURE__ */ P("div", { className: "v-text-center v-rounded v-bg-slate-100 v-text-slate-800 v-p-3 v-my-4", children: /* @__PURE__ */ P("span", { children: "Please check the Abaxx Verifier App" }) })
2319
2308
  ] })