@scanupload/qr-code-generator 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1921 @@
1
+ import G, { useState as ne, useEffect as er } from "react";
2
+ function lr(e) {
3
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
4
+ }
5
+ var oe = { exports: {} }, re = {};
6
+ /**
7
+ * @license React
8
+ * react-jsx-runtime.production.js
9
+ *
10
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
11
+ *
12
+ * This source code is licensed under the MIT license found in the
13
+ * LICENSE file in the root directory of this source tree.
14
+ */
15
+ var Se;
16
+ function cr() {
17
+ if (Se) return re;
18
+ Se = 1;
19
+ var e = Symbol.for("react.transitional.element"), u = Symbol.for("react.fragment");
20
+ function n(s, v, a) {
21
+ var f = null;
22
+ if (a !== void 0 && (f = "" + a), v.key !== void 0 && (f = "" + v.key), "key" in v) {
23
+ a = {};
24
+ for (var i in v)
25
+ i !== "key" && (a[i] = v[i]);
26
+ } else a = v;
27
+ return v = a.ref, {
28
+ $$typeof: e,
29
+ type: s,
30
+ key: f,
31
+ ref: v !== void 0 ? v : null,
32
+ props: a
33
+ };
34
+ }
35
+ return re.Fragment = u, re.jsx = n, re.jsxs = n, re;
36
+ }
37
+ var te = {};
38
+ /**
39
+ * @license React
40
+ * react-jsx-runtime.development.js
41
+ *
42
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
43
+ *
44
+ * This source code is licensed under the MIT license found in the
45
+ * LICENSE file in the root directory of this source tree.
46
+ */
47
+ var xe;
48
+ function vr() {
49
+ return xe || (xe = 1, process.env.NODE_ENV !== "production" && (function() {
50
+ function e(r) {
51
+ if (r == null) return null;
52
+ if (typeof r == "function")
53
+ return r.$$typeof === W ? null : r.displayName || r.name || null;
54
+ if (typeof r == "string") return r;
55
+ switch (r) {
56
+ case O:
57
+ return "Fragment";
58
+ case B:
59
+ return "Profiler";
60
+ case P:
61
+ return "StrictMode";
62
+ case N:
63
+ return "Suspense";
64
+ case z:
65
+ return "SuspenseList";
66
+ case J:
67
+ return "Activity";
68
+ }
69
+ if (typeof r == "object")
70
+ switch (typeof r.tag == "number" && console.error(
71
+ "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
72
+ ), r.$$typeof) {
73
+ case E:
74
+ return "Portal";
75
+ case D:
76
+ return r.displayName || "Context";
77
+ case L:
78
+ return (r._context.displayName || "Context") + ".Consumer";
79
+ case m:
80
+ var p = r.render;
81
+ return r = r.displayName, r || (r = p.displayName || p.name || "", r = r !== "" ? "ForwardRef(" + r + ")" : "ForwardRef"), r;
82
+ case H:
83
+ return p = r.displayName || null, p !== null ? p : e(r.type) || "Memo";
84
+ case X:
85
+ p = r._payload, r = r._init;
86
+ try {
87
+ return e(r(p));
88
+ } catch {
89
+ }
90
+ }
91
+ return null;
92
+ }
93
+ function u(r) {
94
+ return "" + r;
95
+ }
96
+ function n(r) {
97
+ try {
98
+ u(r);
99
+ var p = !1;
100
+ } catch {
101
+ p = !0;
102
+ }
103
+ if (p) {
104
+ p = console;
105
+ var _ = p.error, T = typeof Symbol == "function" && Symbol.toStringTag && r[Symbol.toStringTag] || r.constructor.name || "Object";
106
+ return _.call(
107
+ p,
108
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
109
+ T
110
+ ), u(r);
111
+ }
112
+ }
113
+ function s(r) {
114
+ if (r === O) return "<>";
115
+ if (typeof r == "object" && r !== null && r.$$typeof === X)
116
+ return "<...>";
117
+ try {
118
+ var p = e(r);
119
+ return p ? "<" + p + ">" : "<...>";
120
+ } catch {
121
+ return "<...>";
122
+ }
123
+ }
124
+ function v() {
125
+ var r = q.A;
126
+ return r === null ? null : r.getOwner();
127
+ }
128
+ function a() {
129
+ return Error("react-stack-top-frame");
130
+ }
131
+ function f(r) {
132
+ if (Q.call(r, "key")) {
133
+ var p = Object.getOwnPropertyDescriptor(r, "key").get;
134
+ if (p && p.isReactWarning) return !1;
135
+ }
136
+ return r.key !== void 0;
137
+ }
138
+ function i(r, p) {
139
+ function _() {
140
+ I || (I = !0, console.error(
141
+ "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
142
+ p
143
+ ));
144
+ }
145
+ _.isReactWarning = !0, Object.defineProperty(r, "key", {
146
+ get: _,
147
+ configurable: !0
148
+ });
149
+ }
150
+ function o() {
151
+ var r = e(this.type);
152
+ return U[r] || (U[r] = !0, console.error(
153
+ "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
154
+ )), r = this.props.ref, r !== void 0 ? r : null;
155
+ }
156
+ function t(r, p, _, T, S, w) {
157
+ var R = _.ref;
158
+ return r = {
159
+ $$typeof: g,
160
+ type: r,
161
+ key: p,
162
+ props: _,
163
+ _owner: T
164
+ }, (R !== void 0 ? R : null) !== null ? Object.defineProperty(r, "ref", {
165
+ enumerable: !1,
166
+ get: o
167
+ }) : Object.defineProperty(r, "ref", { enumerable: !1, value: null }), r._store = {}, Object.defineProperty(r._store, "validated", {
168
+ configurable: !1,
169
+ enumerable: !1,
170
+ writable: !0,
171
+ value: 0
172
+ }), Object.defineProperty(r, "_debugInfo", {
173
+ configurable: !1,
174
+ enumerable: !1,
175
+ writable: !0,
176
+ value: null
177
+ }), Object.defineProperty(r, "_debugStack", {
178
+ configurable: !1,
179
+ enumerable: !1,
180
+ writable: !0,
181
+ value: S
182
+ }), Object.defineProperty(r, "_debugTask", {
183
+ configurable: !1,
184
+ enumerable: !1,
185
+ writable: !0,
186
+ value: w
187
+ }), Object.freeze && (Object.freeze(r.props), Object.freeze(r)), r;
188
+ }
189
+ function l(r, p, _, T, S, w) {
190
+ var R = p.children;
191
+ if (R !== void 0)
192
+ if (T)
193
+ if (Y(R)) {
194
+ for (T = 0; T < R.length; T++)
195
+ c(R[T]);
196
+ Object.freeze && Object.freeze(R);
197
+ } else
198
+ console.error(
199
+ "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
200
+ );
201
+ else c(R);
202
+ if (Q.call(p, "key")) {
203
+ R = e(r);
204
+ var C = Object.keys(p).filter(function(x) {
205
+ return x !== "key";
206
+ });
207
+ T = 0 < C.length ? "{key: someKey, " + C.join(": ..., ") + ": ...}" : "{key: someKey}", d[R + T] || (C = 0 < C.length ? "{" + C.join(": ..., ") + ": ...}" : "{}", console.error(
208
+ `A props object containing a "key" prop is being spread into JSX:
209
+ let props = %s;
210
+ <%s {...props} />
211
+ React keys must be passed directly to JSX without using spread:
212
+ let props = %s;
213
+ <%s key={someKey} {...props} />`,
214
+ T,
215
+ R,
216
+ C,
217
+ R
218
+ ), d[R + T] = !0);
219
+ }
220
+ if (R = null, _ !== void 0 && (n(_), R = "" + _), f(p) && (n(p.key), R = "" + p.key), "key" in p) {
221
+ _ = {};
222
+ for (var A in p)
223
+ A !== "key" && (_[A] = p[A]);
224
+ } else _ = p;
225
+ return R && i(
226
+ _,
227
+ typeof r == "function" ? r.displayName || r.name || "Unknown" : r
228
+ ), t(
229
+ r,
230
+ R,
231
+ _,
232
+ v(),
233
+ S,
234
+ w
235
+ );
236
+ }
237
+ function c(r) {
238
+ h(r) ? r._store && (r._store.validated = 1) : typeof r == "object" && r !== null && r.$$typeof === X && (r._payload.status === "fulfilled" ? h(r._payload.value) && r._payload.value._store && (r._payload.value._store.validated = 1) : r._store && (r._store.validated = 1));
239
+ }
240
+ function h(r) {
241
+ return typeof r == "object" && r !== null && r.$$typeof === g;
242
+ }
243
+ var b = G, g = Symbol.for("react.transitional.element"), E = Symbol.for("react.portal"), O = Symbol.for("react.fragment"), P = Symbol.for("react.strict_mode"), B = Symbol.for("react.profiler"), L = Symbol.for("react.consumer"), D = Symbol.for("react.context"), m = Symbol.for("react.forward_ref"), N = Symbol.for("react.suspense"), z = Symbol.for("react.suspense_list"), H = Symbol.for("react.memo"), X = Symbol.for("react.lazy"), J = Symbol.for("react.activity"), W = Symbol.for("react.client.reference"), q = b.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Q = Object.prototype.hasOwnProperty, Y = Array.isArray, F = console.createTask ? console.createTask : function() {
244
+ return null;
245
+ };
246
+ b = {
247
+ react_stack_bottom_frame: function(r) {
248
+ return r();
249
+ }
250
+ };
251
+ var I, U = {}, K = b.react_stack_bottom_frame.bind(
252
+ b,
253
+ a
254
+ )(), Z = F(s(a)), d = {};
255
+ te.Fragment = O, te.jsx = function(r, p, _) {
256
+ var T = 1e4 > q.recentlyCreatedOwnerStacks++;
257
+ return l(
258
+ r,
259
+ p,
260
+ _,
261
+ !1,
262
+ T ? Error("react-stack-top-frame") : K,
263
+ T ? F(s(r)) : Z
264
+ );
265
+ }, te.jsxs = function(r, p, _) {
266
+ var T = 1e4 > q.recentlyCreatedOwnerStacks++;
267
+ return l(
268
+ r,
269
+ p,
270
+ _,
271
+ !0,
272
+ T ? Error("react-stack-top-frame") : K,
273
+ T ? F(s(r)) : Z
274
+ );
275
+ };
276
+ })()), te;
277
+ }
278
+ var Ae;
279
+ function dr() {
280
+ return Ae || (Ae = 1, process.env.NODE_ENV === "production" ? oe.exports = cr() : oe.exports = vr()), oe.exports;
281
+ }
282
+ var k = dr(), ee = {}, ie = { exports: {} }, ue = { exports: {} }, M = {};
283
+ /** @license React v16.13.1
284
+ * react-is.production.min.js
285
+ *
286
+ * Copyright (c) Facebook, Inc. and its affiliates.
287
+ *
288
+ * This source code is licensed under the MIT license found in the
289
+ * LICENSE file in the root directory of this source tree.
290
+ */
291
+ var Me;
292
+ function hr() {
293
+ if (Me) return M;
294
+ Me = 1;
295
+ var e = typeof Symbol == "function" && Symbol.for, u = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, s = e ? Symbol.for("react.fragment") : 60107, v = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, f = e ? Symbol.for("react.provider") : 60109, i = e ? Symbol.for("react.context") : 60110, o = e ? Symbol.for("react.async_mode") : 60111, t = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, c = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, b = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, E = e ? Symbol.for("react.block") : 60121, O = e ? Symbol.for("react.fundamental") : 60117, P = e ? Symbol.for("react.responder") : 60118, B = e ? Symbol.for("react.scope") : 60119;
296
+ function L(m) {
297
+ if (typeof m == "object" && m !== null) {
298
+ var N = m.$$typeof;
299
+ switch (N) {
300
+ case u:
301
+ switch (m = m.type, m) {
302
+ case o:
303
+ case t:
304
+ case s:
305
+ case a:
306
+ case v:
307
+ case c:
308
+ return m;
309
+ default:
310
+ switch (m = m && m.$$typeof, m) {
311
+ case i:
312
+ case l:
313
+ case g:
314
+ case b:
315
+ case f:
316
+ return m;
317
+ default:
318
+ return N;
319
+ }
320
+ }
321
+ case n:
322
+ return N;
323
+ }
324
+ }
325
+ }
326
+ function D(m) {
327
+ return L(m) === t;
328
+ }
329
+ return M.AsyncMode = o, M.ConcurrentMode = t, M.ContextConsumer = i, M.ContextProvider = f, M.Element = u, M.ForwardRef = l, M.Fragment = s, M.Lazy = g, M.Memo = b, M.Portal = n, M.Profiler = a, M.StrictMode = v, M.Suspense = c, M.isAsyncMode = function(m) {
330
+ return D(m) || L(m) === o;
331
+ }, M.isConcurrentMode = D, M.isContextConsumer = function(m) {
332
+ return L(m) === i;
333
+ }, M.isContextProvider = function(m) {
334
+ return L(m) === f;
335
+ }, M.isElement = function(m) {
336
+ return typeof m == "object" && m !== null && m.$$typeof === u;
337
+ }, M.isForwardRef = function(m) {
338
+ return L(m) === l;
339
+ }, M.isFragment = function(m) {
340
+ return L(m) === s;
341
+ }, M.isLazy = function(m) {
342
+ return L(m) === g;
343
+ }, M.isMemo = function(m) {
344
+ return L(m) === b;
345
+ }, M.isPortal = function(m) {
346
+ return L(m) === n;
347
+ }, M.isProfiler = function(m) {
348
+ return L(m) === a;
349
+ }, M.isStrictMode = function(m) {
350
+ return L(m) === v;
351
+ }, M.isSuspense = function(m) {
352
+ return L(m) === c;
353
+ }, M.isValidElementType = function(m) {
354
+ return typeof m == "string" || typeof m == "function" || m === s || m === t || m === a || m === v || m === c || m === h || typeof m == "object" && m !== null && (m.$$typeof === g || m.$$typeof === b || m.$$typeof === f || m.$$typeof === i || m.$$typeof === l || m.$$typeof === O || m.$$typeof === P || m.$$typeof === B || m.$$typeof === E);
355
+ }, M.typeOf = L, M;
356
+ }
357
+ var j = {};
358
+ /** @license React v16.13.1
359
+ * react-is.development.js
360
+ *
361
+ * Copyright (c) Facebook, Inc. and its affiliates.
362
+ *
363
+ * This source code is licensed under the MIT license found in the
364
+ * LICENSE file in the root directory of this source tree.
365
+ */
366
+ var je;
367
+ function pr() {
368
+ return je || (je = 1, process.env.NODE_ENV !== "production" && (function() {
369
+ var e = typeof Symbol == "function" && Symbol.for, u = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, s = e ? Symbol.for("react.fragment") : 60107, v = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, f = e ? Symbol.for("react.provider") : 60109, i = e ? Symbol.for("react.context") : 60110, o = e ? Symbol.for("react.async_mode") : 60111, t = e ? Symbol.for("react.concurrent_mode") : 60111, l = e ? Symbol.for("react.forward_ref") : 60112, c = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, b = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, E = e ? Symbol.for("react.block") : 60121, O = e ? Symbol.for("react.fundamental") : 60117, P = e ? Symbol.for("react.responder") : 60118, B = e ? Symbol.for("react.scope") : 60119;
370
+ function L(y) {
371
+ return typeof y == "string" || typeof y == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
372
+ y === s || y === t || y === a || y === v || y === c || y === h || typeof y == "object" && y !== null && (y.$$typeof === g || y.$$typeof === b || y.$$typeof === f || y.$$typeof === i || y.$$typeof === l || y.$$typeof === O || y.$$typeof === P || y.$$typeof === B || y.$$typeof === E);
373
+ }
374
+ function D(y) {
375
+ if (typeof y == "object" && y !== null) {
376
+ var V = y.$$typeof;
377
+ switch (V) {
378
+ case u:
379
+ var ae = y.type;
380
+ switch (ae) {
381
+ case o:
382
+ case t:
383
+ case s:
384
+ case a:
385
+ case v:
386
+ case c:
387
+ return ae;
388
+ default:
389
+ var Ce = ae && ae.$$typeof;
390
+ switch (Ce) {
391
+ case i:
392
+ case l:
393
+ case g:
394
+ case b:
395
+ case f:
396
+ return Ce;
397
+ default:
398
+ return V;
399
+ }
400
+ }
401
+ case n:
402
+ return V;
403
+ }
404
+ }
405
+ }
406
+ var m = o, N = t, z = i, H = f, X = u, J = l, W = s, q = g, Q = b, Y = n, F = a, I = v, U = c, K = !1;
407
+ function Z(y) {
408
+ return K || (K = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), d(y) || D(y) === o;
409
+ }
410
+ function d(y) {
411
+ return D(y) === t;
412
+ }
413
+ function r(y) {
414
+ return D(y) === i;
415
+ }
416
+ function p(y) {
417
+ return D(y) === f;
418
+ }
419
+ function _(y) {
420
+ return typeof y == "object" && y !== null && y.$$typeof === u;
421
+ }
422
+ function T(y) {
423
+ return D(y) === l;
424
+ }
425
+ function S(y) {
426
+ return D(y) === s;
427
+ }
428
+ function w(y) {
429
+ return D(y) === g;
430
+ }
431
+ function R(y) {
432
+ return D(y) === b;
433
+ }
434
+ function C(y) {
435
+ return D(y) === n;
436
+ }
437
+ function A(y) {
438
+ return D(y) === a;
439
+ }
440
+ function x(y) {
441
+ return D(y) === v;
442
+ }
443
+ function $(y) {
444
+ return D(y) === c;
445
+ }
446
+ j.AsyncMode = m, j.ConcurrentMode = N, j.ContextConsumer = z, j.ContextProvider = H, j.Element = X, j.ForwardRef = J, j.Fragment = W, j.Lazy = q, j.Memo = Q, j.Portal = Y, j.Profiler = F, j.StrictMode = I, j.Suspense = U, j.isAsyncMode = Z, j.isConcurrentMode = d, j.isContextConsumer = r, j.isContextProvider = p, j.isElement = _, j.isForwardRef = T, j.isFragment = S, j.isLazy = w, j.isMemo = R, j.isPortal = C, j.isProfiler = A, j.isStrictMode = x, j.isSuspense = $, j.isValidElementType = L, j.typeOf = D;
447
+ })()), j;
448
+ }
449
+ var De;
450
+ function rr() {
451
+ return De || (De = 1, process.env.NODE_ENV === "production" ? ue.exports = hr() : ue.exports = pr()), ue.exports;
452
+ }
453
+ /*
454
+ object-assign
455
+ (c) Sindre Sorhus
456
+ @license MIT
457
+ */
458
+ var ce, Le;
459
+ function mr() {
460
+ if (Le) return ce;
461
+ Le = 1;
462
+ var e = Object.getOwnPropertySymbols, u = Object.prototype.hasOwnProperty, n = Object.prototype.propertyIsEnumerable;
463
+ function s(a) {
464
+ if (a == null)
465
+ throw new TypeError("Object.assign cannot be called with null or undefined");
466
+ return Object(a);
467
+ }
468
+ function v() {
469
+ try {
470
+ if (!Object.assign)
471
+ return !1;
472
+ var a = new String("abc");
473
+ if (a[5] = "de", Object.getOwnPropertyNames(a)[0] === "5")
474
+ return !1;
475
+ for (var f = {}, i = 0; i < 10; i++)
476
+ f["_" + String.fromCharCode(i)] = i;
477
+ var o = Object.getOwnPropertyNames(f).map(function(l) {
478
+ return f[l];
479
+ });
480
+ if (o.join("") !== "0123456789")
481
+ return !1;
482
+ var t = {};
483
+ return "abcdefghijklmnopqrst".split("").forEach(function(l) {
484
+ t[l] = l;
485
+ }), Object.keys(Object.assign({}, t)).join("") === "abcdefghijklmnopqrst";
486
+ } catch {
487
+ return !1;
488
+ }
489
+ }
490
+ return ce = v() ? Object.assign : function(a, f) {
491
+ for (var i, o = s(a), t, l = 1; l < arguments.length; l++) {
492
+ i = Object(arguments[l]);
493
+ for (var c in i)
494
+ u.call(i, c) && (o[c] = i[c]);
495
+ if (e) {
496
+ t = e(i);
497
+ for (var h = 0; h < t.length; h++)
498
+ n.call(i, t[h]) && (o[t[h]] = i[t[h]]);
499
+ }
500
+ }
501
+ return o;
502
+ }, ce;
503
+ }
504
+ var ve, Be;
505
+ function Oe() {
506
+ if (Be) return ve;
507
+ Be = 1;
508
+ var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
509
+ return ve = e, ve;
510
+ }
511
+ var de, ke;
512
+ function tr() {
513
+ return ke || (ke = 1, de = Function.call.bind(Object.prototype.hasOwnProperty)), de;
514
+ }
515
+ var he, Ie;
516
+ function gr() {
517
+ if (Ie) return he;
518
+ Ie = 1;
519
+ var e = function() {
520
+ };
521
+ if (process.env.NODE_ENV !== "production") {
522
+ var u = /* @__PURE__ */ Oe(), n = {}, s = /* @__PURE__ */ tr();
523
+ e = function(a) {
524
+ var f = "Warning: " + a;
525
+ typeof console < "u" && console.error(f);
526
+ try {
527
+ throw new Error(f);
528
+ } catch {
529
+ }
530
+ };
531
+ }
532
+ function v(a, f, i, o, t) {
533
+ if (process.env.NODE_ENV !== "production") {
534
+ for (var l in a)
535
+ if (s(a, l)) {
536
+ var c;
537
+ try {
538
+ if (typeof a[l] != "function") {
539
+ var h = Error(
540
+ (o || "React class") + ": " + i + " type `" + l + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[l] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
541
+ );
542
+ throw h.name = "Invariant Violation", h;
543
+ }
544
+ c = a[l](f, l, o, i, null, u);
545
+ } catch (g) {
546
+ c = g;
547
+ }
548
+ if (c && !(c instanceof Error) && e(
549
+ (o || "React class") + ": type specification of " + i + " `" + l + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof c + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
550
+ ), c instanceof Error && !(c.message in n)) {
551
+ n[c.message] = !0;
552
+ var b = t ? t() : "";
553
+ e(
554
+ "Failed " + i + " type: " + c.message + (b ?? "")
555
+ );
556
+ }
557
+ }
558
+ }
559
+ }
560
+ return v.resetWarningCache = function() {
561
+ process.env.NODE_ENV !== "production" && (n = {});
562
+ }, he = v, he;
563
+ }
564
+ var pe, Ne;
565
+ function yr() {
566
+ if (Ne) return pe;
567
+ Ne = 1;
568
+ var e = rr(), u = mr(), n = /* @__PURE__ */ Oe(), s = /* @__PURE__ */ tr(), v = /* @__PURE__ */ gr(), a = function() {
569
+ };
570
+ process.env.NODE_ENV !== "production" && (a = function(i) {
571
+ var o = "Warning: " + i;
572
+ typeof console < "u" && console.error(o);
573
+ try {
574
+ throw new Error(o);
575
+ } catch {
576
+ }
577
+ });
578
+ function f() {
579
+ return null;
580
+ }
581
+ return pe = function(i, o) {
582
+ var t = typeof Symbol == "function" && Symbol.iterator, l = "@@iterator";
583
+ function c(d) {
584
+ var r = d && (t && d[t] || d[l]);
585
+ if (typeof r == "function")
586
+ return r;
587
+ }
588
+ var h = "<<anonymous>>", b = {
589
+ array: P("array"),
590
+ bigint: P("bigint"),
591
+ bool: P("boolean"),
592
+ func: P("function"),
593
+ number: P("number"),
594
+ object: P("object"),
595
+ string: P("string"),
596
+ symbol: P("symbol"),
597
+ any: B(),
598
+ arrayOf: L,
599
+ element: D(),
600
+ elementType: m(),
601
+ instanceOf: N,
602
+ node: J(),
603
+ objectOf: H,
604
+ oneOf: z,
605
+ oneOfType: X,
606
+ shape: q,
607
+ exact: Q
608
+ };
609
+ function g(d, r) {
610
+ return d === r ? d !== 0 || 1 / d === 1 / r : d !== d && r !== r;
611
+ }
612
+ function E(d, r) {
613
+ this.message = d, this.data = r && typeof r == "object" ? r : {}, this.stack = "";
614
+ }
615
+ E.prototype = Error.prototype;
616
+ function O(d) {
617
+ if (process.env.NODE_ENV !== "production")
618
+ var r = {}, p = 0;
619
+ function _(S, w, R, C, A, x, $) {
620
+ if (C = C || h, x = x || R, $ !== n) {
621
+ if (o) {
622
+ var y = new Error(
623
+ "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
624
+ );
625
+ throw y.name = "Invariant Violation", y;
626
+ } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
627
+ var V = C + ":" + R;
628
+ !r[V] && // Avoid spamming the console because they are often not actionable except for lib authors
629
+ p < 3 && (a(
630
+ "You are manually calling a React.PropTypes validation function for the `" + x + "` prop on `" + C + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
631
+ ), r[V] = !0, p++);
632
+ }
633
+ }
634
+ return w[R] == null ? S ? w[R] === null ? new E("The " + A + " `" + x + "` is marked as required " + ("in `" + C + "`, but its value is `null`.")) : new E("The " + A + " `" + x + "` is marked as required in " + ("`" + C + "`, but its value is `undefined`.")) : null : d(w, R, C, A, x);
635
+ }
636
+ var T = _.bind(null, !1);
637
+ return T.isRequired = _.bind(null, !0), T;
638
+ }
639
+ function P(d) {
640
+ function r(p, _, T, S, w, R) {
641
+ var C = p[_], A = I(C);
642
+ if (A !== d) {
643
+ var x = U(C);
644
+ return new E(
645
+ "Invalid " + S + " `" + w + "` of type " + ("`" + x + "` supplied to `" + T + "`, expected ") + ("`" + d + "`."),
646
+ { expectedType: d }
647
+ );
648
+ }
649
+ return null;
650
+ }
651
+ return O(r);
652
+ }
653
+ function B() {
654
+ return O(f);
655
+ }
656
+ function L(d) {
657
+ function r(p, _, T, S, w) {
658
+ if (typeof d != "function")
659
+ return new E("Property `" + w + "` of component `" + T + "` has invalid PropType notation inside arrayOf.");
660
+ var R = p[_];
661
+ if (!Array.isArray(R)) {
662
+ var C = I(R);
663
+ return new E("Invalid " + S + " `" + w + "` of type " + ("`" + C + "` supplied to `" + T + "`, expected an array."));
664
+ }
665
+ for (var A = 0; A < R.length; A++) {
666
+ var x = d(R, A, T, S, w + "[" + A + "]", n);
667
+ if (x instanceof Error)
668
+ return x;
669
+ }
670
+ return null;
671
+ }
672
+ return O(r);
673
+ }
674
+ function D() {
675
+ function d(r, p, _, T, S) {
676
+ var w = r[p];
677
+ if (!i(w)) {
678
+ var R = I(w);
679
+ return new E("Invalid " + T + " `" + S + "` of type " + ("`" + R + "` supplied to `" + _ + "`, expected a single ReactElement."));
680
+ }
681
+ return null;
682
+ }
683
+ return O(d);
684
+ }
685
+ function m() {
686
+ function d(r, p, _, T, S) {
687
+ var w = r[p];
688
+ if (!e.isValidElementType(w)) {
689
+ var R = I(w);
690
+ return new E("Invalid " + T + " `" + S + "` of type " + ("`" + R + "` supplied to `" + _ + "`, expected a single ReactElement type."));
691
+ }
692
+ return null;
693
+ }
694
+ return O(d);
695
+ }
696
+ function N(d) {
697
+ function r(p, _, T, S, w) {
698
+ if (!(p[_] instanceof d)) {
699
+ var R = d.name || h, C = Z(p[_]);
700
+ return new E("Invalid " + S + " `" + w + "` of type " + ("`" + C + "` supplied to `" + T + "`, expected ") + ("instance of `" + R + "`."));
701
+ }
702
+ return null;
703
+ }
704
+ return O(r);
705
+ }
706
+ function z(d) {
707
+ if (!Array.isArray(d))
708
+ return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
709
+ "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
710
+ ) : a("Invalid argument supplied to oneOf, expected an array.")), f;
711
+ function r(p, _, T, S, w) {
712
+ for (var R = p[_], C = 0; C < d.length; C++)
713
+ if (g(R, d[C]))
714
+ return null;
715
+ var A = JSON.stringify(d, function($, y) {
716
+ var V = U(y);
717
+ return V === "symbol" ? String(y) : y;
718
+ });
719
+ return new E("Invalid " + S + " `" + w + "` of value `" + String(R) + "` " + ("supplied to `" + T + "`, expected one of " + A + "."));
720
+ }
721
+ return O(r);
722
+ }
723
+ function H(d) {
724
+ function r(p, _, T, S, w) {
725
+ if (typeof d != "function")
726
+ return new E("Property `" + w + "` of component `" + T + "` has invalid PropType notation inside objectOf.");
727
+ var R = p[_], C = I(R);
728
+ if (C !== "object")
729
+ return new E("Invalid " + S + " `" + w + "` of type " + ("`" + C + "` supplied to `" + T + "`, expected an object."));
730
+ for (var A in R)
731
+ if (s(R, A)) {
732
+ var x = d(R, A, T, S, w + "." + A, n);
733
+ if (x instanceof Error)
734
+ return x;
735
+ }
736
+ return null;
737
+ }
738
+ return O(r);
739
+ }
740
+ function X(d) {
741
+ if (!Array.isArray(d))
742
+ return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), f;
743
+ for (var r = 0; r < d.length; r++) {
744
+ var p = d[r];
745
+ if (typeof p != "function")
746
+ return a(
747
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + K(p) + " at index " + r + "."
748
+ ), f;
749
+ }
750
+ function _(T, S, w, R, C) {
751
+ for (var A = [], x = 0; x < d.length; x++) {
752
+ var $ = d[x], y = $(T, S, w, R, C, n);
753
+ if (y == null)
754
+ return null;
755
+ y.data && s(y.data, "expectedType") && A.push(y.data.expectedType);
756
+ }
757
+ var V = A.length > 0 ? ", expected one of type [" + A.join(", ") + "]" : "";
758
+ return new E("Invalid " + R + " `" + C + "` supplied to " + ("`" + w + "`" + V + "."));
759
+ }
760
+ return O(_);
761
+ }
762
+ function J() {
763
+ function d(r, p, _, T, S) {
764
+ return Y(r[p]) ? null : new E("Invalid " + T + " `" + S + "` supplied to " + ("`" + _ + "`, expected a ReactNode."));
765
+ }
766
+ return O(d);
767
+ }
768
+ function W(d, r, p, _, T) {
769
+ return new E(
770
+ (d || "React class") + ": " + r + " type `" + p + "." + _ + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + T + "`."
771
+ );
772
+ }
773
+ function q(d) {
774
+ function r(p, _, T, S, w) {
775
+ var R = p[_], C = I(R);
776
+ if (C !== "object")
777
+ return new E("Invalid " + S + " `" + w + "` of type `" + C + "` " + ("supplied to `" + T + "`, expected `object`."));
778
+ for (var A in d) {
779
+ var x = d[A];
780
+ if (typeof x != "function")
781
+ return W(T, S, w, A, U(x));
782
+ var $ = x(R, A, T, S, w + "." + A, n);
783
+ if ($)
784
+ return $;
785
+ }
786
+ return null;
787
+ }
788
+ return O(r);
789
+ }
790
+ function Q(d) {
791
+ function r(p, _, T, S, w) {
792
+ var R = p[_], C = I(R);
793
+ if (C !== "object")
794
+ return new E("Invalid " + S + " `" + w + "` of type `" + C + "` " + ("supplied to `" + T + "`, expected `object`."));
795
+ var A = u({}, p[_], d);
796
+ for (var x in A) {
797
+ var $ = d[x];
798
+ if (s(d, x) && typeof $ != "function")
799
+ return W(T, S, w, x, U($));
800
+ if (!$)
801
+ return new E(
802
+ "Invalid " + S + " `" + w + "` key `" + x + "` supplied to `" + T + "`.\nBad object: " + JSON.stringify(p[_], null, " ") + `
803
+ Valid keys: ` + JSON.stringify(Object.keys(d), null, " ")
804
+ );
805
+ var y = $(R, x, T, S, w + "." + x, n);
806
+ if (y)
807
+ return y;
808
+ }
809
+ return null;
810
+ }
811
+ return O(r);
812
+ }
813
+ function Y(d) {
814
+ switch (typeof d) {
815
+ case "number":
816
+ case "string":
817
+ case "undefined":
818
+ return !0;
819
+ case "boolean":
820
+ return !d;
821
+ case "object":
822
+ if (Array.isArray(d))
823
+ return d.every(Y);
824
+ if (d === null || i(d))
825
+ return !0;
826
+ var r = c(d);
827
+ if (r) {
828
+ var p = r.call(d), _;
829
+ if (r !== d.entries) {
830
+ for (; !(_ = p.next()).done; )
831
+ if (!Y(_.value))
832
+ return !1;
833
+ } else
834
+ for (; !(_ = p.next()).done; ) {
835
+ var T = _.value;
836
+ if (T && !Y(T[1]))
837
+ return !1;
838
+ }
839
+ } else
840
+ return !1;
841
+ return !0;
842
+ default:
843
+ return !1;
844
+ }
845
+ }
846
+ function F(d, r) {
847
+ return d === "symbol" ? !0 : r ? r["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && r instanceof Symbol : !1;
848
+ }
849
+ function I(d) {
850
+ var r = typeof d;
851
+ return Array.isArray(d) ? "array" : d instanceof RegExp ? "object" : F(r, d) ? "symbol" : r;
852
+ }
853
+ function U(d) {
854
+ if (typeof d > "u" || d === null)
855
+ return "" + d;
856
+ var r = I(d);
857
+ if (r === "object") {
858
+ if (d instanceof Date)
859
+ return "date";
860
+ if (d instanceof RegExp)
861
+ return "regexp";
862
+ }
863
+ return r;
864
+ }
865
+ function K(d) {
866
+ var r = U(d);
867
+ switch (r) {
868
+ case "array":
869
+ case "object":
870
+ return "an " + r;
871
+ case "boolean":
872
+ case "date":
873
+ case "regexp":
874
+ return "a " + r;
875
+ default:
876
+ return r;
877
+ }
878
+ }
879
+ function Z(d) {
880
+ return !d.constructor || !d.constructor.name ? h : d.constructor.name;
881
+ }
882
+ return b.checkPropTypes = v, b.resetWarningCache = v.resetWarningCache, b.PropTypes = b, b;
883
+ }, pe;
884
+ }
885
+ var me, $e;
886
+ function br() {
887
+ if ($e) return me;
888
+ $e = 1;
889
+ var e = /* @__PURE__ */ Oe();
890
+ function u() {
891
+ }
892
+ function n() {
893
+ }
894
+ return n.resetWarningCache = u, me = function() {
895
+ function s(f, i, o, t, l, c) {
896
+ if (c !== e) {
897
+ var h = new Error(
898
+ "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
899
+ );
900
+ throw h.name = "Invariant Violation", h;
901
+ }
902
+ }
903
+ s.isRequired = s;
904
+ function v() {
905
+ return s;
906
+ }
907
+ var a = {
908
+ array: s,
909
+ bigint: s,
910
+ bool: s,
911
+ func: s,
912
+ number: s,
913
+ object: s,
914
+ string: s,
915
+ symbol: s,
916
+ any: s,
917
+ arrayOf: v,
918
+ element: s,
919
+ elementType: s,
920
+ instanceOf: v,
921
+ node: s,
922
+ objectOf: v,
923
+ oneOf: v,
924
+ oneOfType: v,
925
+ shape: v,
926
+ exact: v,
927
+ checkPropTypes: n,
928
+ resetWarningCache: u
929
+ };
930
+ return a.PropTypes = a, a;
931
+ }, me;
932
+ }
933
+ var ze;
934
+ function nr() {
935
+ if (ze) return ie.exports;
936
+ if (ze = 1, process.env.NODE_ENV !== "production") {
937
+ var e = rr(), u = !0;
938
+ ie.exports = /* @__PURE__ */ yr()(e.isElement, u);
939
+ } else
940
+ ie.exports = /* @__PURE__ */ br()();
941
+ return ie.exports;
942
+ }
943
+ var ge, Ye;
944
+ function ar() {
945
+ return Ye || (Ye = 1, ge = {
946
+ L: 1,
947
+ M: 0,
948
+ Q: 3,
949
+ H: 2
950
+ }), ge;
951
+ }
952
+ var ye, qe;
953
+ function or() {
954
+ return qe || (qe = 1, ye = {
955
+ MODE_NUMBER: 1,
956
+ MODE_ALPHA_NUM: 2,
957
+ MODE_8BIT_BYTE: 4,
958
+ MODE_KANJI: 8
959
+ }), ye;
960
+ }
961
+ var be, Fe;
962
+ function Er() {
963
+ if (Fe) return be;
964
+ Fe = 1;
965
+ var e = or();
966
+ function u(n) {
967
+ this.mode = e.MODE_8BIT_BYTE, this.data = n;
968
+ }
969
+ return u.prototype = {
970
+ getLength: function(n) {
971
+ return this.data.length;
972
+ },
973
+ write: function(n) {
974
+ for (var s = 0; s < this.data.length; s++)
975
+ n.put(this.data.charCodeAt(s), 8);
976
+ }
977
+ }, be = u, be;
978
+ }
979
+ var Ee, He;
980
+ function Tr() {
981
+ if (He) return Ee;
982
+ He = 1;
983
+ var e = ar();
984
+ function u(n, s) {
985
+ this.totalCount = n, this.dataCount = s;
986
+ }
987
+ return u.RS_BLOCK_TABLE = [
988
+ // L
989
+ // M
990
+ // Q
991
+ // H
992
+ // 1
993
+ [1, 26, 19],
994
+ [1, 26, 16],
995
+ [1, 26, 13],
996
+ [1, 26, 9],
997
+ // 2
998
+ [1, 44, 34],
999
+ [1, 44, 28],
1000
+ [1, 44, 22],
1001
+ [1, 44, 16],
1002
+ // 3
1003
+ [1, 70, 55],
1004
+ [1, 70, 44],
1005
+ [2, 35, 17],
1006
+ [2, 35, 13],
1007
+ // 4
1008
+ [1, 100, 80],
1009
+ [2, 50, 32],
1010
+ [2, 50, 24],
1011
+ [4, 25, 9],
1012
+ // 5
1013
+ [1, 134, 108],
1014
+ [2, 67, 43],
1015
+ [2, 33, 15, 2, 34, 16],
1016
+ [2, 33, 11, 2, 34, 12],
1017
+ // 6
1018
+ [2, 86, 68],
1019
+ [4, 43, 27],
1020
+ [4, 43, 19],
1021
+ [4, 43, 15],
1022
+ // 7
1023
+ [2, 98, 78],
1024
+ [4, 49, 31],
1025
+ [2, 32, 14, 4, 33, 15],
1026
+ [4, 39, 13, 1, 40, 14],
1027
+ // 8
1028
+ [2, 121, 97],
1029
+ [2, 60, 38, 2, 61, 39],
1030
+ [4, 40, 18, 2, 41, 19],
1031
+ [4, 40, 14, 2, 41, 15],
1032
+ // 9
1033
+ [2, 146, 116],
1034
+ [3, 58, 36, 2, 59, 37],
1035
+ [4, 36, 16, 4, 37, 17],
1036
+ [4, 36, 12, 4, 37, 13],
1037
+ // 10
1038
+ [2, 86, 68, 2, 87, 69],
1039
+ [4, 69, 43, 1, 70, 44],
1040
+ [6, 43, 19, 2, 44, 20],
1041
+ [6, 43, 15, 2, 44, 16],
1042
+ // 11
1043
+ [4, 101, 81],
1044
+ [1, 80, 50, 4, 81, 51],
1045
+ [4, 50, 22, 4, 51, 23],
1046
+ [3, 36, 12, 8, 37, 13],
1047
+ // 12
1048
+ [2, 116, 92, 2, 117, 93],
1049
+ [6, 58, 36, 2, 59, 37],
1050
+ [4, 46, 20, 6, 47, 21],
1051
+ [7, 42, 14, 4, 43, 15],
1052
+ // 13
1053
+ [4, 133, 107],
1054
+ [8, 59, 37, 1, 60, 38],
1055
+ [8, 44, 20, 4, 45, 21],
1056
+ [12, 33, 11, 4, 34, 12],
1057
+ // 14
1058
+ [3, 145, 115, 1, 146, 116],
1059
+ [4, 64, 40, 5, 65, 41],
1060
+ [11, 36, 16, 5, 37, 17],
1061
+ [11, 36, 12, 5, 37, 13],
1062
+ // 15
1063
+ [5, 109, 87, 1, 110, 88],
1064
+ [5, 65, 41, 5, 66, 42],
1065
+ [5, 54, 24, 7, 55, 25],
1066
+ [11, 36, 12],
1067
+ // 16
1068
+ [5, 122, 98, 1, 123, 99],
1069
+ [7, 73, 45, 3, 74, 46],
1070
+ [15, 43, 19, 2, 44, 20],
1071
+ [3, 45, 15, 13, 46, 16],
1072
+ // 17
1073
+ [1, 135, 107, 5, 136, 108],
1074
+ [10, 74, 46, 1, 75, 47],
1075
+ [1, 50, 22, 15, 51, 23],
1076
+ [2, 42, 14, 17, 43, 15],
1077
+ // 18
1078
+ [5, 150, 120, 1, 151, 121],
1079
+ [9, 69, 43, 4, 70, 44],
1080
+ [17, 50, 22, 1, 51, 23],
1081
+ [2, 42, 14, 19, 43, 15],
1082
+ // 19
1083
+ [3, 141, 113, 4, 142, 114],
1084
+ [3, 70, 44, 11, 71, 45],
1085
+ [17, 47, 21, 4, 48, 22],
1086
+ [9, 39, 13, 16, 40, 14],
1087
+ // 20
1088
+ [3, 135, 107, 5, 136, 108],
1089
+ [3, 67, 41, 13, 68, 42],
1090
+ [15, 54, 24, 5, 55, 25],
1091
+ [15, 43, 15, 10, 44, 16],
1092
+ // 21
1093
+ [4, 144, 116, 4, 145, 117],
1094
+ [17, 68, 42],
1095
+ [17, 50, 22, 6, 51, 23],
1096
+ [19, 46, 16, 6, 47, 17],
1097
+ // 22
1098
+ [2, 139, 111, 7, 140, 112],
1099
+ [17, 74, 46],
1100
+ [7, 54, 24, 16, 55, 25],
1101
+ [34, 37, 13],
1102
+ // 23
1103
+ [4, 151, 121, 5, 152, 122],
1104
+ [4, 75, 47, 14, 76, 48],
1105
+ [11, 54, 24, 14, 55, 25],
1106
+ [16, 45, 15, 14, 46, 16],
1107
+ // 24
1108
+ [6, 147, 117, 4, 148, 118],
1109
+ [6, 73, 45, 14, 74, 46],
1110
+ [11, 54, 24, 16, 55, 25],
1111
+ [30, 46, 16, 2, 47, 17],
1112
+ // 25
1113
+ [8, 132, 106, 4, 133, 107],
1114
+ [8, 75, 47, 13, 76, 48],
1115
+ [7, 54, 24, 22, 55, 25],
1116
+ [22, 45, 15, 13, 46, 16],
1117
+ // 26
1118
+ [10, 142, 114, 2, 143, 115],
1119
+ [19, 74, 46, 4, 75, 47],
1120
+ [28, 50, 22, 6, 51, 23],
1121
+ [33, 46, 16, 4, 47, 17],
1122
+ // 27
1123
+ [8, 152, 122, 4, 153, 123],
1124
+ [22, 73, 45, 3, 74, 46],
1125
+ [8, 53, 23, 26, 54, 24],
1126
+ [12, 45, 15, 28, 46, 16],
1127
+ // 28
1128
+ [3, 147, 117, 10, 148, 118],
1129
+ [3, 73, 45, 23, 74, 46],
1130
+ [4, 54, 24, 31, 55, 25],
1131
+ [11, 45, 15, 31, 46, 16],
1132
+ // 29
1133
+ [7, 146, 116, 7, 147, 117],
1134
+ [21, 73, 45, 7, 74, 46],
1135
+ [1, 53, 23, 37, 54, 24],
1136
+ [19, 45, 15, 26, 46, 16],
1137
+ // 30
1138
+ [5, 145, 115, 10, 146, 116],
1139
+ [19, 75, 47, 10, 76, 48],
1140
+ [15, 54, 24, 25, 55, 25],
1141
+ [23, 45, 15, 25, 46, 16],
1142
+ // 31
1143
+ [13, 145, 115, 3, 146, 116],
1144
+ [2, 74, 46, 29, 75, 47],
1145
+ [42, 54, 24, 1, 55, 25],
1146
+ [23, 45, 15, 28, 46, 16],
1147
+ // 32
1148
+ [17, 145, 115],
1149
+ [10, 74, 46, 23, 75, 47],
1150
+ [10, 54, 24, 35, 55, 25],
1151
+ [19, 45, 15, 35, 46, 16],
1152
+ // 33
1153
+ [17, 145, 115, 1, 146, 116],
1154
+ [14, 74, 46, 21, 75, 47],
1155
+ [29, 54, 24, 19, 55, 25],
1156
+ [11, 45, 15, 46, 46, 16],
1157
+ // 34
1158
+ [13, 145, 115, 6, 146, 116],
1159
+ [14, 74, 46, 23, 75, 47],
1160
+ [44, 54, 24, 7, 55, 25],
1161
+ [59, 46, 16, 1, 47, 17],
1162
+ // 35
1163
+ [12, 151, 121, 7, 152, 122],
1164
+ [12, 75, 47, 26, 76, 48],
1165
+ [39, 54, 24, 14, 55, 25],
1166
+ [22, 45, 15, 41, 46, 16],
1167
+ // 36
1168
+ [6, 151, 121, 14, 152, 122],
1169
+ [6, 75, 47, 34, 76, 48],
1170
+ [46, 54, 24, 10, 55, 25],
1171
+ [2, 45, 15, 64, 46, 16],
1172
+ // 37
1173
+ [17, 152, 122, 4, 153, 123],
1174
+ [29, 74, 46, 14, 75, 47],
1175
+ [49, 54, 24, 10, 55, 25],
1176
+ [24, 45, 15, 46, 46, 16],
1177
+ // 38
1178
+ [4, 152, 122, 18, 153, 123],
1179
+ [13, 74, 46, 32, 75, 47],
1180
+ [48, 54, 24, 14, 55, 25],
1181
+ [42, 45, 15, 32, 46, 16],
1182
+ // 39
1183
+ [20, 147, 117, 4, 148, 118],
1184
+ [40, 75, 47, 7, 76, 48],
1185
+ [43, 54, 24, 22, 55, 25],
1186
+ [10, 45, 15, 67, 46, 16],
1187
+ // 40
1188
+ [19, 148, 118, 6, 149, 119],
1189
+ [18, 75, 47, 31, 76, 48],
1190
+ [34, 54, 24, 34, 55, 25],
1191
+ [20, 45, 15, 61, 46, 16]
1192
+ ], u.getRSBlocks = function(n, s) {
1193
+ var v = u.getRsBlockTable(n, s);
1194
+ if (v == null)
1195
+ throw new Error("bad rs block @ typeNumber:" + n + "/errorCorrectLevel:" + s);
1196
+ for (var a = v.length / 3, f = new Array(), i = 0; i < a; i++)
1197
+ for (var o = v[i * 3 + 0], t = v[i * 3 + 1], l = v[i * 3 + 2], c = 0; c < o; c++)
1198
+ f.push(new u(t, l));
1199
+ return f;
1200
+ }, u.getRsBlockTable = function(n, s) {
1201
+ switch (s) {
1202
+ case e.L:
1203
+ return u.RS_BLOCK_TABLE[(n - 1) * 4 + 0];
1204
+ case e.M:
1205
+ return u.RS_BLOCK_TABLE[(n - 1) * 4 + 1];
1206
+ case e.Q:
1207
+ return u.RS_BLOCK_TABLE[(n - 1) * 4 + 2];
1208
+ case e.H:
1209
+ return u.RS_BLOCK_TABLE[(n - 1) * 4 + 3];
1210
+ default:
1211
+ return;
1212
+ }
1213
+ }, Ee = u, Ee;
1214
+ }
1215
+ var Te, We;
1216
+ function _r() {
1217
+ if (We) return Te;
1218
+ We = 1;
1219
+ function e() {
1220
+ this.buffer = new Array(), this.length = 0;
1221
+ }
1222
+ return e.prototype = {
1223
+ get: function(u) {
1224
+ var n = Math.floor(u / 8);
1225
+ return (this.buffer[n] >>> 7 - u % 8 & 1) == 1;
1226
+ },
1227
+ put: function(u, n) {
1228
+ for (var s = 0; s < n; s++)
1229
+ this.putBit((u >>> n - s - 1 & 1) == 1);
1230
+ },
1231
+ getLengthInBits: function() {
1232
+ return this.length;
1233
+ },
1234
+ putBit: function(u) {
1235
+ var n = Math.floor(this.length / 8);
1236
+ this.buffer.length <= n && this.buffer.push(0), u && (this.buffer[n] |= 128 >>> this.length % 8), this.length++;
1237
+ }
1238
+ }, Te = e, Te;
1239
+ }
1240
+ var _e, Qe;
1241
+ function ir() {
1242
+ if (Qe) return _e;
1243
+ Qe = 1;
1244
+ for (var e = {
1245
+ glog: function(n) {
1246
+ if (n < 1)
1247
+ throw new Error("glog(" + n + ")");
1248
+ return e.LOG_TABLE[n];
1249
+ },
1250
+ gexp: function(n) {
1251
+ for (; n < 0; )
1252
+ n += 255;
1253
+ for (; n >= 256; )
1254
+ n -= 255;
1255
+ return e.EXP_TABLE[n];
1256
+ },
1257
+ EXP_TABLE: new Array(256),
1258
+ LOG_TABLE: new Array(256)
1259
+ }, u = 0; u < 8; u++)
1260
+ e.EXP_TABLE[u] = 1 << u;
1261
+ for (var u = 8; u < 256; u++)
1262
+ e.EXP_TABLE[u] = e.EXP_TABLE[u - 4] ^ e.EXP_TABLE[u - 5] ^ e.EXP_TABLE[u - 6] ^ e.EXP_TABLE[u - 8];
1263
+ for (var u = 0; u < 255; u++)
1264
+ e.LOG_TABLE[e.EXP_TABLE[u]] = u;
1265
+ return _e = e, _e;
1266
+ }
1267
+ var Re, Ue;
1268
+ function ur() {
1269
+ if (Ue) return Re;
1270
+ Ue = 1;
1271
+ var e = ir();
1272
+ function u(n, s) {
1273
+ if (n.length == null)
1274
+ throw new Error(n.length + "/" + s);
1275
+ for (var v = 0; v < n.length && n[v] == 0; )
1276
+ v++;
1277
+ this.num = new Array(n.length - v + s);
1278
+ for (var a = 0; a < n.length - v; a++)
1279
+ this.num[a] = n[a + v];
1280
+ }
1281
+ return u.prototype = {
1282
+ get: function(n) {
1283
+ return this.num[n];
1284
+ },
1285
+ getLength: function() {
1286
+ return this.num.length;
1287
+ },
1288
+ multiply: function(n) {
1289
+ for (var s = new Array(this.getLength() + n.getLength() - 1), v = 0; v < this.getLength(); v++)
1290
+ for (var a = 0; a < n.getLength(); a++)
1291
+ s[v + a] ^= e.gexp(e.glog(this.get(v)) + e.glog(n.get(a)));
1292
+ return new u(s, 0);
1293
+ },
1294
+ mod: function(n) {
1295
+ if (this.getLength() - n.getLength() < 0)
1296
+ return this;
1297
+ for (var s = e.glog(this.get(0)) - e.glog(n.get(0)), v = new Array(this.getLength()), a = 0; a < this.getLength(); a++)
1298
+ v[a] = this.get(a);
1299
+ for (var a = 0; a < n.getLength(); a++)
1300
+ v[a] ^= e.gexp(e.glog(n.get(a)) + s);
1301
+ return new u(v, 0).mod(n);
1302
+ }
1303
+ }, Re = u, Re;
1304
+ }
1305
+ var Pe, Ve;
1306
+ function Rr() {
1307
+ if (Ve) return Pe;
1308
+ Ve = 1;
1309
+ var e = or(), u = ur(), n = ir(), s = {
1310
+ PATTERN000: 0,
1311
+ PATTERN001: 1,
1312
+ PATTERN010: 2,
1313
+ PATTERN011: 3,
1314
+ PATTERN100: 4,
1315
+ PATTERN101: 5,
1316
+ PATTERN110: 6,
1317
+ PATTERN111: 7
1318
+ }, v = {
1319
+ PATTERN_POSITION_TABLE: [
1320
+ [],
1321
+ [6, 18],
1322
+ [6, 22],
1323
+ [6, 26],
1324
+ [6, 30],
1325
+ [6, 34],
1326
+ [6, 22, 38],
1327
+ [6, 24, 42],
1328
+ [6, 26, 46],
1329
+ [6, 28, 50],
1330
+ [6, 30, 54],
1331
+ [6, 32, 58],
1332
+ [6, 34, 62],
1333
+ [6, 26, 46, 66],
1334
+ [6, 26, 48, 70],
1335
+ [6, 26, 50, 74],
1336
+ [6, 30, 54, 78],
1337
+ [6, 30, 56, 82],
1338
+ [6, 30, 58, 86],
1339
+ [6, 34, 62, 90],
1340
+ [6, 28, 50, 72, 94],
1341
+ [6, 26, 50, 74, 98],
1342
+ [6, 30, 54, 78, 102],
1343
+ [6, 28, 54, 80, 106],
1344
+ [6, 32, 58, 84, 110],
1345
+ [6, 30, 58, 86, 114],
1346
+ [6, 34, 62, 90, 118],
1347
+ [6, 26, 50, 74, 98, 122],
1348
+ [6, 30, 54, 78, 102, 126],
1349
+ [6, 26, 52, 78, 104, 130],
1350
+ [6, 30, 56, 82, 108, 134],
1351
+ [6, 34, 60, 86, 112, 138],
1352
+ [6, 30, 58, 86, 114, 142],
1353
+ [6, 34, 62, 90, 118, 146],
1354
+ [6, 30, 54, 78, 102, 126, 150],
1355
+ [6, 24, 50, 76, 102, 128, 154],
1356
+ [6, 28, 54, 80, 106, 132, 158],
1357
+ [6, 32, 58, 84, 110, 136, 162],
1358
+ [6, 26, 54, 82, 110, 138, 166],
1359
+ [6, 30, 58, 86, 114, 142, 170]
1360
+ ],
1361
+ G15: 1335,
1362
+ G18: 7973,
1363
+ G15_MASK: 21522,
1364
+ getBCHTypeInfo: function(a) {
1365
+ for (var f = a << 10; v.getBCHDigit(f) - v.getBCHDigit(v.G15) >= 0; )
1366
+ f ^= v.G15 << v.getBCHDigit(f) - v.getBCHDigit(v.G15);
1367
+ return (a << 10 | f) ^ v.G15_MASK;
1368
+ },
1369
+ getBCHTypeNumber: function(a) {
1370
+ for (var f = a << 12; v.getBCHDigit(f) - v.getBCHDigit(v.G18) >= 0; )
1371
+ f ^= v.G18 << v.getBCHDigit(f) - v.getBCHDigit(v.G18);
1372
+ return a << 12 | f;
1373
+ },
1374
+ getBCHDigit: function(a) {
1375
+ for (var f = 0; a != 0; )
1376
+ f++, a >>>= 1;
1377
+ return f;
1378
+ },
1379
+ getPatternPosition: function(a) {
1380
+ return v.PATTERN_POSITION_TABLE[a - 1];
1381
+ },
1382
+ getMask: function(a, f, i) {
1383
+ switch (a) {
1384
+ case s.PATTERN000:
1385
+ return (f + i) % 2 == 0;
1386
+ case s.PATTERN001:
1387
+ return f % 2 == 0;
1388
+ case s.PATTERN010:
1389
+ return i % 3 == 0;
1390
+ case s.PATTERN011:
1391
+ return (f + i) % 3 == 0;
1392
+ case s.PATTERN100:
1393
+ return (Math.floor(f / 2) + Math.floor(i / 3)) % 2 == 0;
1394
+ case s.PATTERN101:
1395
+ return f * i % 2 + f * i % 3 == 0;
1396
+ case s.PATTERN110:
1397
+ return (f * i % 2 + f * i % 3) % 2 == 0;
1398
+ case s.PATTERN111:
1399
+ return (f * i % 3 + (f + i) % 2) % 2 == 0;
1400
+ default:
1401
+ throw new Error("bad maskPattern:" + a);
1402
+ }
1403
+ },
1404
+ getErrorCorrectPolynomial: function(a) {
1405
+ for (var f = new u([1], 0), i = 0; i < a; i++)
1406
+ f = f.multiply(new u([1, n.gexp(i)], 0));
1407
+ return f;
1408
+ },
1409
+ getLengthInBits: function(a, f) {
1410
+ if (1 <= f && f < 10)
1411
+ switch (a) {
1412
+ case e.MODE_NUMBER:
1413
+ return 10;
1414
+ case e.MODE_ALPHA_NUM:
1415
+ return 9;
1416
+ case e.MODE_8BIT_BYTE:
1417
+ return 8;
1418
+ case e.MODE_KANJI:
1419
+ return 8;
1420
+ default:
1421
+ throw new Error("mode:" + a);
1422
+ }
1423
+ else if (f < 27)
1424
+ switch (a) {
1425
+ case e.MODE_NUMBER:
1426
+ return 12;
1427
+ case e.MODE_ALPHA_NUM:
1428
+ return 11;
1429
+ case e.MODE_8BIT_BYTE:
1430
+ return 16;
1431
+ case e.MODE_KANJI:
1432
+ return 10;
1433
+ default:
1434
+ throw new Error("mode:" + a);
1435
+ }
1436
+ else if (f < 41)
1437
+ switch (a) {
1438
+ case e.MODE_NUMBER:
1439
+ return 14;
1440
+ case e.MODE_ALPHA_NUM:
1441
+ return 13;
1442
+ case e.MODE_8BIT_BYTE:
1443
+ return 16;
1444
+ case e.MODE_KANJI:
1445
+ return 12;
1446
+ default:
1447
+ throw new Error("mode:" + a);
1448
+ }
1449
+ else
1450
+ throw new Error("type:" + f);
1451
+ },
1452
+ getLostPoint: function(a) {
1453
+ for (var f = a.getModuleCount(), i = 0, o = 0; o < f; o++)
1454
+ for (var t = 0; t < f; t++) {
1455
+ for (var l = 0, c = a.isDark(o, t), h = -1; h <= 1; h++)
1456
+ if (!(o + h < 0 || f <= o + h))
1457
+ for (var b = -1; b <= 1; b++)
1458
+ t + b < 0 || f <= t + b || h == 0 && b == 0 || c == a.isDark(o + h, t + b) && l++;
1459
+ l > 5 && (i += 3 + l - 5);
1460
+ }
1461
+ for (var o = 0; o < f - 1; o++)
1462
+ for (var t = 0; t < f - 1; t++) {
1463
+ var g = 0;
1464
+ a.isDark(o, t) && g++, a.isDark(o + 1, t) && g++, a.isDark(o, t + 1) && g++, a.isDark(o + 1, t + 1) && g++, (g == 0 || g == 4) && (i += 3);
1465
+ }
1466
+ for (var o = 0; o < f; o++)
1467
+ for (var t = 0; t < f - 6; t++)
1468
+ a.isDark(o, t) && !a.isDark(o, t + 1) && a.isDark(o, t + 2) && a.isDark(o, t + 3) && a.isDark(o, t + 4) && !a.isDark(o, t + 5) && a.isDark(o, t + 6) && (i += 40);
1469
+ for (var t = 0; t < f; t++)
1470
+ for (var o = 0; o < f - 6; o++)
1471
+ a.isDark(o, t) && !a.isDark(o + 1, t) && a.isDark(o + 2, t) && a.isDark(o + 3, t) && a.isDark(o + 4, t) && !a.isDark(o + 5, t) && a.isDark(o + 6, t) && (i += 40);
1472
+ for (var E = 0, t = 0; t < f; t++)
1473
+ for (var o = 0; o < f; o++)
1474
+ a.isDark(o, t) && E++;
1475
+ var O = Math.abs(100 * E / f / f - 50) / 5;
1476
+ return i += O * 10, i;
1477
+ }
1478
+ };
1479
+ return Pe = v, Pe;
1480
+ }
1481
+ var we, Ge;
1482
+ function Pr() {
1483
+ if (Ge) return we;
1484
+ Ge = 1;
1485
+ var e = Er(), u = Tr(), n = _r(), s = Rr(), v = ur();
1486
+ function a(i, o) {
1487
+ this.typeNumber = i, this.errorCorrectLevel = o, this.modules = null, this.moduleCount = 0, this.dataCache = null, this.dataList = [];
1488
+ }
1489
+ var f = a.prototype;
1490
+ return f.addData = function(i) {
1491
+ var o = new e(i);
1492
+ this.dataList.push(o), this.dataCache = null;
1493
+ }, f.isDark = function(i, o) {
1494
+ if (i < 0 || this.moduleCount <= i || o < 0 || this.moduleCount <= o)
1495
+ throw new Error(i + "," + o);
1496
+ return this.modules[i][o];
1497
+ }, f.getModuleCount = function() {
1498
+ return this.moduleCount;
1499
+ }, f.make = function() {
1500
+ if (this.typeNumber < 1) {
1501
+ var i = 1;
1502
+ for (i = 1; i < 40; i++) {
1503
+ for (var o = u.getRSBlocks(i, this.errorCorrectLevel), t = new n(), l = 0, c = 0; c < o.length; c++)
1504
+ l += o[c].dataCount;
1505
+ for (var c = 0; c < this.dataList.length; c++) {
1506
+ var h = this.dataList[c];
1507
+ t.put(h.mode, 4), t.put(h.getLength(), s.getLengthInBits(h.mode, i)), h.write(t);
1508
+ }
1509
+ if (t.getLengthInBits() <= l * 8)
1510
+ break;
1511
+ }
1512
+ this.typeNumber = i;
1513
+ }
1514
+ this.makeImpl(!1, this.getBestMaskPattern());
1515
+ }, f.makeImpl = function(i, o) {
1516
+ this.moduleCount = this.typeNumber * 4 + 17, this.modules = new Array(this.moduleCount);
1517
+ for (var t = 0; t < this.moduleCount; t++) {
1518
+ this.modules[t] = new Array(this.moduleCount);
1519
+ for (var l = 0; l < this.moduleCount; l++)
1520
+ this.modules[t][l] = null;
1521
+ }
1522
+ this.setupPositionProbePattern(0, 0), this.setupPositionProbePattern(this.moduleCount - 7, 0), this.setupPositionProbePattern(0, this.moduleCount - 7), this.setupPositionAdjustPattern(), this.setupTimingPattern(), this.setupTypeInfo(i, o), this.typeNumber >= 7 && this.setupTypeNumber(i), this.dataCache == null && (this.dataCache = a.createData(this.typeNumber, this.errorCorrectLevel, this.dataList)), this.mapData(this.dataCache, o);
1523
+ }, f.setupPositionProbePattern = function(i, o) {
1524
+ for (var t = -1; t <= 7; t++)
1525
+ if (!(i + t <= -1 || this.moduleCount <= i + t))
1526
+ for (var l = -1; l <= 7; l++)
1527
+ o + l <= -1 || this.moduleCount <= o + l || (0 <= t && t <= 6 && (l == 0 || l == 6) || 0 <= l && l <= 6 && (t == 0 || t == 6) || 2 <= t && t <= 4 && 2 <= l && l <= 4 ? this.modules[i + t][o + l] = !0 : this.modules[i + t][o + l] = !1);
1528
+ }, f.getBestMaskPattern = function() {
1529
+ for (var i = 0, o = 0, t = 0; t < 8; t++) {
1530
+ this.makeImpl(!0, t);
1531
+ var l = s.getLostPoint(this);
1532
+ (t == 0 || i > l) && (i = l, o = t);
1533
+ }
1534
+ return o;
1535
+ }, f.createMovieClip = function(i, o, t) {
1536
+ var l = i.createEmptyMovieClip(o, t), c = 1;
1537
+ this.make();
1538
+ for (var h = 0; h < this.modules.length; h++)
1539
+ for (var b = h * c, g = 0; g < this.modules[h].length; g++) {
1540
+ var E = g * c, O = this.modules[h][g];
1541
+ O && (l.beginFill(0, 100), l.moveTo(E, b), l.lineTo(E + c, b), l.lineTo(E + c, b + c), l.lineTo(E, b + c), l.endFill());
1542
+ }
1543
+ return l;
1544
+ }, f.setupTimingPattern = function() {
1545
+ for (var i = 8; i < this.moduleCount - 8; i++)
1546
+ this.modules[i][6] == null && (this.modules[i][6] = i % 2 == 0);
1547
+ for (var o = 8; o < this.moduleCount - 8; o++)
1548
+ this.modules[6][o] == null && (this.modules[6][o] = o % 2 == 0);
1549
+ }, f.setupPositionAdjustPattern = function() {
1550
+ for (var i = s.getPatternPosition(this.typeNumber), o = 0; o < i.length; o++)
1551
+ for (var t = 0; t < i.length; t++) {
1552
+ var l = i[o], c = i[t];
1553
+ if (this.modules[l][c] == null)
1554
+ for (var h = -2; h <= 2; h++)
1555
+ for (var b = -2; b <= 2; b++)
1556
+ h == -2 || h == 2 || b == -2 || b == 2 || h == 0 && b == 0 ? this.modules[l + h][c + b] = !0 : this.modules[l + h][c + b] = !1;
1557
+ }
1558
+ }, f.setupTypeNumber = function(i) {
1559
+ for (var o = s.getBCHTypeNumber(this.typeNumber), t = 0; t < 18; t++) {
1560
+ var l = !i && (o >> t & 1) == 1;
1561
+ this.modules[Math.floor(t / 3)][t % 3 + this.moduleCount - 8 - 3] = l;
1562
+ }
1563
+ for (var t = 0; t < 18; t++) {
1564
+ var l = !i && (o >> t & 1) == 1;
1565
+ this.modules[t % 3 + this.moduleCount - 8 - 3][Math.floor(t / 3)] = l;
1566
+ }
1567
+ }, f.setupTypeInfo = function(i, o) {
1568
+ for (var t = this.errorCorrectLevel << 3 | o, l = s.getBCHTypeInfo(t), c = 0; c < 15; c++) {
1569
+ var h = !i && (l >> c & 1) == 1;
1570
+ c < 6 ? this.modules[c][8] = h : c < 8 ? this.modules[c + 1][8] = h : this.modules[this.moduleCount - 15 + c][8] = h;
1571
+ }
1572
+ for (var c = 0; c < 15; c++) {
1573
+ var h = !i && (l >> c & 1) == 1;
1574
+ c < 8 ? this.modules[8][this.moduleCount - c - 1] = h : c < 9 ? this.modules[8][15 - c - 1 + 1] = h : this.modules[8][15 - c - 1] = h;
1575
+ }
1576
+ this.modules[this.moduleCount - 8][8] = !i;
1577
+ }, f.mapData = function(i, o) {
1578
+ for (var t = -1, l = this.moduleCount - 1, c = 7, h = 0, b = this.moduleCount - 1; b > 0; b -= 2)
1579
+ for (b == 6 && b--; ; ) {
1580
+ for (var g = 0; g < 2; g++)
1581
+ if (this.modules[l][b - g] == null) {
1582
+ var E = !1;
1583
+ h < i.length && (E = (i[h] >>> c & 1) == 1);
1584
+ var O = s.getMask(o, l, b - g);
1585
+ O && (E = !E), this.modules[l][b - g] = E, c--, c == -1 && (h++, c = 7);
1586
+ }
1587
+ if (l += t, l < 0 || this.moduleCount <= l) {
1588
+ l -= t, t = -t;
1589
+ break;
1590
+ }
1591
+ }
1592
+ }, a.PAD0 = 236, a.PAD1 = 17, a.createData = function(i, o, t) {
1593
+ for (var l = u.getRSBlocks(i, o), c = new n(), h = 0; h < t.length; h++) {
1594
+ var b = t[h];
1595
+ c.put(b.mode, 4), c.put(b.getLength(), s.getLengthInBits(b.mode, i)), b.write(c);
1596
+ }
1597
+ for (var g = 0, h = 0; h < l.length; h++)
1598
+ g += l[h].dataCount;
1599
+ if (c.getLengthInBits() > g * 8)
1600
+ throw new Error("code length overflow. (" + c.getLengthInBits() + ">" + g * 8 + ")");
1601
+ for (c.getLengthInBits() + 4 <= g * 8 && c.put(0, 4); c.getLengthInBits() % 8 != 0; )
1602
+ c.putBit(!1);
1603
+ for (; !(c.getLengthInBits() >= g * 8 || (c.put(a.PAD0, 8), c.getLengthInBits() >= g * 8)); )
1604
+ c.put(a.PAD1, 8);
1605
+ return a.createBytes(c, l);
1606
+ }, a.createBytes = function(i, o) {
1607
+ for (var t = 0, l = 0, c = 0, h = new Array(o.length), b = new Array(o.length), g = 0; g < o.length; g++) {
1608
+ var E = o[g].dataCount, O = o[g].totalCount - E;
1609
+ l = Math.max(l, E), c = Math.max(c, O), h[g] = new Array(E);
1610
+ for (var P = 0; P < h[g].length; P++)
1611
+ h[g][P] = 255 & i.buffer[P + t];
1612
+ t += E;
1613
+ var B = s.getErrorCorrectPolynomial(O), L = new v(h[g], B.getLength() - 1), D = L.mod(B);
1614
+ b[g] = new Array(B.getLength() - 1);
1615
+ for (var P = 0; P < b[g].length; P++) {
1616
+ var m = P + D.getLength() - b[g].length;
1617
+ b[g][P] = m >= 0 ? D.get(m) : 0;
1618
+ }
1619
+ }
1620
+ for (var N = 0, P = 0; P < o.length; P++)
1621
+ N += o[P].totalCount;
1622
+ for (var z = new Array(N), H = 0, P = 0; P < l; P++)
1623
+ for (var g = 0; g < o.length; g++)
1624
+ P < h[g].length && (z[H++] = h[g][P]);
1625
+ for (var P = 0; P < c; P++)
1626
+ for (var g = 0; g < o.length; g++)
1627
+ P < b[g].length && (z[H++] = b[g][P]);
1628
+ return z;
1629
+ }, we = a, we;
1630
+ }
1631
+ var se = {}, Xe;
1632
+ function wr() {
1633
+ if (Xe) return se;
1634
+ Xe = 1, Object.defineProperty(se, "__esModule", {
1635
+ value: !0
1636
+ });
1637
+ var e = Object.assign || function(t) {
1638
+ for (var l = 1; l < arguments.length; l++) {
1639
+ var c = arguments[l];
1640
+ for (var h in c)
1641
+ Object.prototype.hasOwnProperty.call(c, h) && (t[h] = c[h]);
1642
+ }
1643
+ return t;
1644
+ }, u = /* @__PURE__ */ nr(), n = a(u), s = G, v = a(s);
1645
+ function a(t) {
1646
+ return t && t.__esModule ? t : { default: t };
1647
+ }
1648
+ function f(t, l) {
1649
+ var c = {};
1650
+ for (var h in t)
1651
+ l.indexOf(h) >= 0 || Object.prototype.hasOwnProperty.call(t, h) && (c[h] = t[h]);
1652
+ return c;
1653
+ }
1654
+ var i = {
1655
+ bgColor: n.default.oneOfType([n.default.object, n.default.string]).isRequired,
1656
+ bgD: n.default.string.isRequired,
1657
+ fgColor: n.default.oneOfType([n.default.object, n.default.string]).isRequired,
1658
+ fgD: n.default.string.isRequired,
1659
+ size: n.default.number.isRequired,
1660
+ title: n.default.string,
1661
+ viewBoxSize: n.default.number.isRequired,
1662
+ xmlns: n.default.string
1663
+ }, o = (0, s.forwardRef)(function(t, l) {
1664
+ var c = t.bgColor, h = t.bgD, b = t.fgD, g = t.fgColor, E = t.size, O = t.title, P = t.viewBoxSize, B = t.xmlns, L = B === void 0 ? "http://www.w3.org/2000/svg" : B, D = f(t, ["bgColor", "bgD", "fgD", "fgColor", "size", "title", "viewBoxSize", "xmlns"]);
1665
+ return v.default.createElement(
1666
+ "svg",
1667
+ e({}, D, { height: E, ref: l, viewBox: "0 0 " + P + " " + P, width: E, xmlns: L }),
1668
+ O ? v.default.createElement(
1669
+ "title",
1670
+ null,
1671
+ O
1672
+ ) : null,
1673
+ v.default.createElement("path", { d: h, fill: c }),
1674
+ v.default.createElement("path", { d: b, fill: g })
1675
+ );
1676
+ });
1677
+ return o.displayName = "QRCodeSvg", o.propTypes = i, se.default = o, se;
1678
+ }
1679
+ var Je;
1680
+ function Or() {
1681
+ if (Je) return ee;
1682
+ Je = 1, Object.defineProperty(ee, "__esModule", {
1683
+ value: !0
1684
+ }), ee.QRCode = void 0;
1685
+ var e = Object.assign || function(E) {
1686
+ for (var O = 1; O < arguments.length; O++) {
1687
+ var P = arguments[O];
1688
+ for (var B in P)
1689
+ Object.prototype.hasOwnProperty.call(P, B) && (E[B] = P[B]);
1690
+ }
1691
+ return E;
1692
+ }, u = /* @__PURE__ */ nr(), n = c(u), s = ar(), v = c(s), a = Pr(), f = c(a), i = G, o = c(i), t = wr(), l = c(t);
1693
+ function c(E) {
1694
+ return E && E.__esModule ? E : { default: E };
1695
+ }
1696
+ function h(E, O) {
1697
+ var P = {};
1698
+ for (var B in E)
1699
+ O.indexOf(B) >= 0 || Object.prototype.hasOwnProperty.call(E, B) && (P[B] = E[B]);
1700
+ return P;
1701
+ }
1702
+ var b = {
1703
+ bgColor: n.default.oneOfType([n.default.object, n.default.string]),
1704
+ fgColor: n.default.oneOfType([n.default.object, n.default.string]),
1705
+ level: n.default.string,
1706
+ size: n.default.number,
1707
+ value: n.default.string.isRequired
1708
+ }, g = (0, i.forwardRef)(function(E, O) {
1709
+ var P = E.bgColor, B = P === void 0 ? "#FFFFFF" : P, L = E.fgColor, D = L === void 0 ? "#000000" : L, m = E.level, N = m === void 0 ? "L" : m, z = E.size, H = z === void 0 ? 256 : z, X = E.value, J = h(E, ["bgColor", "fgColor", "level", "size", "value"]), W = new f.default(-1, v.default[N]);
1710
+ W.addData(X), W.make();
1711
+ var q = W.modules;
1712
+ return o.default.createElement(l.default, e({}, J, {
1713
+ bgColor: B,
1714
+ bgD: q.map(function(Q, Y) {
1715
+ return Q.map(function(F, I) {
1716
+ return F ? "" : "M " + I + " " + Y + " l 1 0 0 1 -1 0 Z";
1717
+ }).join(" ");
1718
+ }).join(" "),
1719
+ fgColor: D,
1720
+ fgD: q.map(function(Q, Y) {
1721
+ return Q.map(function(F, I) {
1722
+ return F ? "M " + I + " " + Y + " l 1 0 0 1 -1 0 Z" : "";
1723
+ }).join(" ");
1724
+ }).join(" "),
1725
+ ref: O,
1726
+ size: H,
1727
+ viewBoxSize: q.length
1728
+ }));
1729
+ });
1730
+ return ee.QRCode = g, g.displayName = "QRCode", g.propTypes = b, ee.default = g, ee;
1731
+ }
1732
+ var Cr = Or();
1733
+ const Sr = /* @__PURE__ */ lr(Cr);
1734
+ var sr = {
1735
+ color: void 0,
1736
+ size: void 0,
1737
+ className: void 0,
1738
+ style: void 0,
1739
+ attr: void 0
1740
+ }, Ke = G.createContext && /* @__PURE__ */ G.createContext(sr), xr = ["attr", "size", "title"];
1741
+ function Ar(e, u) {
1742
+ if (e == null) return {};
1743
+ var n = Mr(e, u), s, v;
1744
+ if (Object.getOwnPropertySymbols) {
1745
+ var a = Object.getOwnPropertySymbols(e);
1746
+ for (v = 0; v < a.length; v++)
1747
+ s = a[v], !(u.indexOf(s) >= 0) && Object.prototype.propertyIsEnumerable.call(e, s) && (n[s] = e[s]);
1748
+ }
1749
+ return n;
1750
+ }
1751
+ function Mr(e, u) {
1752
+ if (e == null) return {};
1753
+ var n = {};
1754
+ for (var s in e)
1755
+ if (Object.prototype.hasOwnProperty.call(e, s)) {
1756
+ if (u.indexOf(s) >= 0) continue;
1757
+ n[s] = e[s];
1758
+ }
1759
+ return n;
1760
+ }
1761
+ function fe() {
1762
+ return fe = Object.assign ? Object.assign.bind() : function(e) {
1763
+ for (var u = 1; u < arguments.length; u++) {
1764
+ var n = arguments[u];
1765
+ for (var s in n)
1766
+ Object.prototype.hasOwnProperty.call(n, s) && (e[s] = n[s]);
1767
+ }
1768
+ return e;
1769
+ }, fe.apply(this, arguments);
1770
+ }
1771
+ function Ze(e, u) {
1772
+ var n = Object.keys(e);
1773
+ if (Object.getOwnPropertySymbols) {
1774
+ var s = Object.getOwnPropertySymbols(e);
1775
+ u && (s = s.filter(function(v) {
1776
+ return Object.getOwnPropertyDescriptor(e, v).enumerable;
1777
+ })), n.push.apply(n, s);
1778
+ }
1779
+ return n;
1780
+ }
1781
+ function le(e) {
1782
+ for (var u = 1; u < arguments.length; u++) {
1783
+ var n = arguments[u] != null ? arguments[u] : {};
1784
+ u % 2 ? Ze(Object(n), !0).forEach(function(s) {
1785
+ jr(e, s, n[s]);
1786
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Ze(Object(n)).forEach(function(s) {
1787
+ Object.defineProperty(e, s, Object.getOwnPropertyDescriptor(n, s));
1788
+ });
1789
+ }
1790
+ return e;
1791
+ }
1792
+ function jr(e, u, n) {
1793
+ return u = Dr(u), u in e ? Object.defineProperty(e, u, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[u] = n, e;
1794
+ }
1795
+ function Dr(e) {
1796
+ var u = Lr(e, "string");
1797
+ return typeof u == "symbol" ? u : u + "";
1798
+ }
1799
+ function Lr(e, u) {
1800
+ if (typeof e != "object" || !e) return e;
1801
+ var n = e[Symbol.toPrimitive];
1802
+ if (n !== void 0) {
1803
+ var s = n.call(e, u);
1804
+ if (typeof s != "object") return s;
1805
+ throw new TypeError("@@toPrimitive must return a primitive value.");
1806
+ }
1807
+ return (u === "string" ? String : Number)(e);
1808
+ }
1809
+ function fr(e) {
1810
+ return e && e.map((u, n) => /* @__PURE__ */ G.createElement(u.tag, le({
1811
+ key: n
1812
+ }, u.attr), fr(u.child)));
1813
+ }
1814
+ function Br(e) {
1815
+ return (u) => /* @__PURE__ */ G.createElement(kr, fe({
1816
+ attr: le({}, e.attr)
1817
+ }, u), fr(e.child));
1818
+ }
1819
+ function kr(e) {
1820
+ var u = (n) => {
1821
+ var {
1822
+ attr: s,
1823
+ size: v,
1824
+ title: a
1825
+ } = e, f = Ar(e, xr), i = v || n.size || "1em", o;
1826
+ return n.className && (o = n.className), e.className && (o = (o ? o + " " : "") + e.className), /* @__PURE__ */ G.createElement("svg", fe({
1827
+ stroke: "currentColor",
1828
+ fill: "currentColor",
1829
+ strokeWidth: "0"
1830
+ }, n.attr, s, f, {
1831
+ className: o,
1832
+ style: le(le({
1833
+ color: e.color || n.color
1834
+ }, n.style), e.style),
1835
+ height: i,
1836
+ width: i,
1837
+ xmlns: "http://www.w3.org/2000/svg"
1838
+ }), a && /* @__PURE__ */ G.createElement("title", null, a), e.children);
1839
+ };
1840
+ return Ke !== void 0 ? /* @__PURE__ */ G.createElement(Ke.Consumer, null, (n) => u(n)) : u(sr);
1841
+ }
1842
+ function Ir(e) {
1843
+ return Br({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "M9.5 6.5v3h-3v-3h3M11 5H5v6h6V5zm-1.5 9.5v3h-3v-3h3M11 13H5v6h6v-6zm6.5-6.5v3h-3v-3h3M19 5h-6v6h6V5zm-6 8h1.5v1.5H13V13zm1.5 1.5H16V16h-1.5v-1.5zM16 13h1.5v1.5H16V13zm-3 3h1.5v1.5H13V16zm1.5 1.5H16V19h-1.5v-1.5zM16 16h1.5v1.5H16V16zm1.5-1.5H19V16h-1.5v-1.5zm0 3H19V19h-1.5v-1.5zM22 7h-2V4h-3V2h5v5zm0 15v-5h-2v3h-3v2h5zM2 22h5v-2H4v-3H2v5zM2 2v5h2V4h3V2H2z" }, child: [] }] })(e);
1844
+ }
1845
+ const Nr = ({
1846
+ logoBackgroundCss: e = "bg-gradient-to-br from-red-600 to-purple-500 rounded-xl flex items-center justify-center flex-col",
1847
+ logoCss: u = "text-white",
1848
+ size: n = "small"
1849
+ }) => {
1850
+ const [s, v] = ne("w-2 h-2"), [a, f] = ne("w-4 h-4");
1851
+ return er(() => {
1852
+ switch (n) {
1853
+ case "small":
1854
+ f("w-2 h-2"), v("w-1 h-1");
1855
+ break;
1856
+ case "medium":
1857
+ f("w-6 h-6"), v("w-4 h-4");
1858
+ break;
1859
+ case "large":
1860
+ f("w-8 h-8"), v("w-6 h-6");
1861
+ break;
1862
+ }
1863
+ return () => {
1864
+ };
1865
+ }, [n]), /* @__PURE__ */ k.jsx("div", { className: "flex items-center space-x-2", children: /* @__PURE__ */ k.jsx("div", { className: `${a} ${e}`, children: /* @__PURE__ */ k.jsx(Ir, { className: `${s} ${u}` }) }) });
1866
+ }, zr = ({
1867
+ uploadUrl: e,
1868
+ header: u,
1869
+ showHeader: n = !1,
1870
+ showLogo: s = !0,
1871
+ size: v = "large"
1872
+ }) => {
1873
+ const [a, f] = ne(160), [i, o] = ne(
1874
+ "w-32 h-32 md:w-40 md:h-40"
1875
+ ), [t, l] = ne("w-2 h-2");
1876
+ return er(() => {
1877
+ switch (v) {
1878
+ case "small":
1879
+ o("w-16 h-16 md:w-20 md:h-20"), l("w-2 h-2"), f(200);
1880
+ break;
1881
+ case "medium":
1882
+ o("w-24 h-24 md:w-30 md:h-30"), l("w-4 h-4"), f(200);
1883
+ break;
1884
+ case "large":
1885
+ o("w-32 h-32 md:w-40 md:h-40"), l("w-6 h-6"), f(200);
1886
+ break;
1887
+ }
1888
+ return () => {
1889
+ };
1890
+ }, [v]), /* @__PURE__ */ k.jsx("section", { className: "mx-auto max-w-3xl p-6", children: /* @__PURE__ */ k.jsxs("div", { className: "flex flex-col items-center text-center", children: [
1891
+ n && /* @__PURE__ */ k.jsx(k.Fragment, { children: /* @__PURE__ */ k.jsx("header", { className: "mb-4", children: /* @__PURE__ */ k.jsx("h1", { className: "text-xl font-semibold text-gray-900", children: u }) }) }),
1892
+ /* @__PURE__ */ k.jsxs(
1893
+ "div",
1894
+ {
1895
+ "aria-label": "QR Code for file upload",
1896
+ className: `bg-white p-2 rounded-2xl border-3 border-dashed ${i} flex
1897
+ border-gray-300 items-center justify-center transition-all duration-300 hover:shadow-lg hover:scale-105`,
1898
+ children: [
1899
+ /* @__PURE__ */ k.jsxs("div", { className: "relative inline-block", children: [
1900
+ /* @__PURE__ */ k.jsx(Sr, { value: e, size: a, className: "w-full h-full" }),
1901
+ s && /* @__PURE__ */ k.jsx(k.Fragment, { children: /* @__PURE__ */ k.jsx("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ k.jsx(
1902
+ "div",
1903
+ {
1904
+ className: `bg-white ${t} rounded flex items-center justify-center`,
1905
+ children: /* @__PURE__ */ k.jsx("span", { className: "text-xs font-bold", children: /* @__PURE__ */ k.jsx(Nr, { size: v }) })
1906
+ }
1907
+ ) }) })
1908
+ ] }),
1909
+ /* @__PURE__ */ k.jsxs("p", { className: "sr-only", children: [
1910
+ "QR Code that allows uploads from ",
1911
+ e
1912
+ ] })
1913
+ ]
1914
+ }
1915
+ )
1916
+ ] }) });
1917
+ };
1918
+ export {
1919
+ zr as QrCodeGenerator
1920
+ };
1921
+ //# sourceMappingURL=qr-code-generator.es.js.map