@abaxx_tech/v-integration-react 1.2.0-dev.3 → 1.2.0-dev.4

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