@unifold/connect-react 0.1.24 → 0.1.25

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.
package/dist/index.js CHANGED
@@ -34,69 +34,69 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
34
34
  var require_qr_code_styling = __commonJS({
35
35
  "../../node_modules/.pnpm/qr-code-styling@1.9.2/node_modules/qr-code-styling/lib/qr-code-styling.js"(exports2, module2) {
36
36
  "use strict";
37
- !(function(t5, e) {
38
- "object" == typeof exports2 && "object" == typeof module2 ? module2.exports = e() : "function" == typeof define && define.amd ? define([], e) : "object" == typeof exports2 ? exports2.QRCodeStyling = e() : t5.QRCodeStyling = e();
37
+ !(function(t6, e) {
38
+ "object" == typeof exports2 && "object" == typeof module2 ? module2.exports = e() : "function" == typeof define && define.amd ? define([], e) : "object" == typeof exports2 ? exports2.QRCodeStyling = e() : t6.QRCodeStyling = e();
39
39
  })(exports2, (() => (() => {
40
- var t5 = { 873: (t6, e2) => {
40
+ var t6 = { 873: (t7, e2) => {
41
41
  var i2, r3, n = (function() {
42
- var t7 = function(t8, e4) {
43
- var i4 = t8, r5 = s[e4], n3 = null, o2 = 0, h2 = null, p2 = [], v2 = {}, m = function(t9, e5) {
44
- n3 = (function(t10) {
45
- for (var e6 = new Array(t10), i5 = 0; i5 < t10; i5 += 1) {
46
- e6[i5] = new Array(t10);
47
- for (var r6 = 0; r6 < t10; r6 += 1) e6[i5][r6] = null;
42
+ var t8 = function(t9, e4) {
43
+ var i4 = t9, r5 = s[e4], n3 = null, o2 = 0, h2 = null, p2 = [], v2 = {}, m = function(t10, e5) {
44
+ n3 = (function(t11) {
45
+ for (var e6 = new Array(t11), i5 = 0; i5 < t11; i5 += 1) {
46
+ e6[i5] = new Array(t11);
47
+ for (var r6 = 0; r6 < t11; r6 += 1) e6[i5][r6] = null;
48
48
  }
49
49
  return e6;
50
- })(o2 = 4 * i4 + 17), b(0, 0), b(o2 - 7, 0), b(0, o2 - 7), x(), y(), C(t9, e5), i4 >= 7 && S(t9), null == h2 && (h2 = M(i4, r5, p2)), A(h2, e5);
51
- }, b = function(t9, e5) {
52
- for (var i5 = -1; i5 <= 7; i5 += 1) if (!(t9 + i5 <= -1 || o2 <= t9 + i5)) for (var r6 = -1; r6 <= 7; r6 += 1) e5 + r6 <= -1 || o2 <= e5 + r6 || (n3[t9 + i5][e5 + r6] = 0 <= i5 && i5 <= 6 && (0 == r6 || 6 == r6) || 0 <= r6 && r6 <= 6 && (0 == i5 || 6 == i5) || 2 <= i5 && i5 <= 4 && 2 <= r6 && r6 <= 4);
50
+ })(o2 = 4 * i4 + 17), b(0, 0), b(o2 - 7, 0), b(0, o2 - 7), x(), y(), C(t10, e5), i4 >= 7 && S(t10), null == h2 && (h2 = M(i4, r5, p2)), A(h2, e5);
51
+ }, b = function(t10, e5) {
52
+ for (var i5 = -1; i5 <= 7; i5 += 1) if (!(t10 + i5 <= -1 || o2 <= t10 + i5)) for (var r6 = -1; r6 <= 7; r6 += 1) e5 + r6 <= -1 || o2 <= e5 + r6 || (n3[t10 + i5][e5 + r6] = 0 <= i5 && i5 <= 6 && (0 == r6 || 6 == r6) || 0 <= r6 && r6 <= 6 && (0 == i5 || 6 == i5) || 2 <= i5 && i5 <= 4 && 2 <= r6 && r6 <= 4);
53
53
  }, y = function() {
54
- for (var t9 = 8; t9 < o2 - 8; t9 += 1) null == n3[t9][6] && (n3[t9][6] = t9 % 2 == 0);
54
+ for (var t10 = 8; t10 < o2 - 8; t10 += 1) null == n3[t10][6] && (n3[t10][6] = t10 % 2 == 0);
55
55
  for (var e5 = 8; e5 < o2 - 8; e5 += 1) null == n3[6][e5] && (n3[6][e5] = e5 % 2 == 0);
56
56
  }, x = function() {
57
- for (var t9 = a.getPatternPosition(i4), e5 = 0; e5 < t9.length; e5 += 1) for (var r6 = 0; r6 < t9.length; r6 += 1) {
58
- var o3 = t9[e5], s2 = t9[r6];
57
+ for (var t10 = a.getPatternPosition(i4), e5 = 0; e5 < t10.length; e5 += 1) for (var r6 = 0; r6 < t10.length; r6 += 1) {
58
+ var o3 = t10[e5], s2 = t10[r6];
59
59
  if (null == n3[o3][s2]) for (var h3 = -2; h3 <= 2; h3 += 1) for (var d2 = -2; d2 <= 2; d2 += 1) n3[o3 + h3][s2 + d2] = -2 == h3 || 2 == h3 || -2 == d2 || 2 == d2 || 0 == h3 && 0 == d2;
60
60
  }
61
- }, S = function(t9) {
61
+ }, S = function(t10) {
62
62
  for (var e5 = a.getBCHTypeNumber(i4), r6 = 0; r6 < 18; r6 += 1) {
63
- var s2 = !t9 && 1 == (e5 >> r6 & 1);
63
+ var s2 = !t10 && 1 == (e5 >> r6 & 1);
64
64
  n3[Math.floor(r6 / 3)][r6 % 3 + o2 - 8 - 3] = s2;
65
65
  }
66
- for (r6 = 0; r6 < 18; r6 += 1) s2 = !t9 && 1 == (e5 >> r6 & 1), n3[r6 % 3 + o2 - 8 - 3][Math.floor(r6 / 3)] = s2;
67
- }, C = function(t9, e5) {
66
+ for (r6 = 0; r6 < 18; r6 += 1) s2 = !t10 && 1 == (e5 >> r6 & 1), n3[r6 % 3 + o2 - 8 - 3][Math.floor(r6 / 3)] = s2;
67
+ }, C = function(t10, e5) {
68
68
  for (var i5 = r5 << 3 | e5, s2 = a.getBCHTypeInfo(i5), h3 = 0; h3 < 15; h3 += 1) {
69
- var d2 = !t9 && 1 == (s2 >> h3 & 1);
69
+ var d2 = !t10 && 1 == (s2 >> h3 & 1);
70
70
  h3 < 6 ? n3[h3][8] = d2 : h3 < 8 ? n3[h3 + 1][8] = d2 : n3[o2 - 15 + h3][8] = d2;
71
71
  }
72
- for (h3 = 0; h3 < 15; h3 += 1) d2 = !t9 && 1 == (s2 >> h3 & 1), h3 < 8 ? n3[8][o2 - h3 - 1] = d2 : h3 < 9 ? n3[8][15 - h3 - 1 + 1] = d2 : n3[8][15 - h3 - 1] = d2;
73
- n3[o2 - 8][8] = !t9;
74
- }, A = function(t9, e5) {
72
+ for (h3 = 0; h3 < 15; h3 += 1) d2 = !t10 && 1 == (s2 >> h3 & 1), h3 < 8 ? n3[8][o2 - h3 - 1] = d2 : h3 < 9 ? n3[8][15 - h3 - 1 + 1] = d2 : n3[8][15 - h3 - 1] = d2;
73
+ n3[o2 - 8][8] = !t10;
74
+ }, A = function(t10, e5) {
75
75
  for (var i5 = -1, r6 = o2 - 1, s2 = 7, h3 = 0, d2 = a.getMaskFunction(e5), u2 = o2 - 1; u2 > 0; u2 -= 2) for (6 == u2 && (u2 -= 1); ; ) {
76
76
  for (var c2 = 0; c2 < 2; c2 += 1) if (null == n3[r6][u2 - c2]) {
77
77
  var l2 = false;
78
- h3 < t9.length && (l2 = 1 == (t9[h3] >>> s2 & 1)), d2(r6, u2 - c2) && (l2 = !l2), n3[r6][u2 - c2] = l2, -1 == (s2 -= 1) && (h3 += 1, s2 = 7);
78
+ h3 < t10.length && (l2 = 1 == (t10[h3] >>> s2 & 1)), d2(r6, u2 - c2) && (l2 = !l2), n3[r6][u2 - c2] = l2, -1 == (s2 -= 1) && (h3 += 1, s2 = 7);
79
79
  }
80
80
  if ((r6 += i5) < 0 || o2 <= r6) {
81
81
  r6 -= i5, i5 = -i5;
82
82
  break;
83
83
  }
84
84
  }
85
- }, M = function(t9, e5, i5) {
86
- for (var r6 = u.getRSBlocks(t9, e5), n4 = c(), o3 = 0; o3 < i5.length; o3 += 1) {
85
+ }, M = function(t10, e5, i5) {
86
+ for (var r6 = u.getRSBlocks(t10, e5), n4 = c(), o3 = 0; o3 < i5.length; o3 += 1) {
87
87
  var s2 = i5[o3];
88
- n4.put(s2.getMode(), 4), n4.put(s2.getLength(), a.getLengthInBits(s2.getMode(), t9)), s2.write(n4);
88
+ n4.put(s2.getMode(), 4), n4.put(s2.getLength(), a.getLengthInBits(s2.getMode(), t10)), s2.write(n4);
89
89
  }
90
90
  var h3 = 0;
91
91
  for (o3 = 0; o3 < r6.length; o3 += 1) h3 += r6[o3].dataCount;
92
92
  if (n4.getLengthInBits() > 8 * h3) throw "code length overflow. (" + n4.getLengthInBits() + ">" + 8 * h3 + ")";
93
93
  for (n4.getLengthInBits() + 4 <= 8 * h3 && n4.put(0, 4); n4.getLengthInBits() % 8 != 0; ) n4.putBit(false);
94
94
  for (; !(n4.getLengthInBits() >= 8 * h3 || (n4.put(236, 8), n4.getLengthInBits() >= 8 * h3)); ) n4.put(17, 8);
95
- return (function(t10, e6) {
95
+ return (function(t11, e6) {
96
96
  for (var i6 = 0, r7 = 0, n5 = 0, o4 = new Array(e6.length), s3 = new Array(e6.length), h4 = 0; h4 < e6.length; h4 += 1) {
97
97
  var u2 = e6[h4].dataCount, c2 = e6[h4].totalCount - u2;
98
98
  r7 = Math.max(r7, u2), n5 = Math.max(n5, c2), o4[h4] = new Array(u2);
99
- for (var l2 = 0; l2 < o4[h4].length; l2 += 1) o4[h4][l2] = 255 & t10.getBuffer()[l2 + i6];
99
+ for (var l2 = 0; l2 < o4[h4].length; l2 += 1) o4[h4][l2] = 255 & t11.getBuffer()[l2 + i6];
100
100
  i6 += u2;
101
101
  var g2 = a.getErrorCorrectPolynomial(c2), f2 = d(o4[h4], g2.getLength() - 1).mod(g2);
102
102
  for (s3[h4] = new Array(g2.getLength() - 1), l2 = 0; l2 < s3[h4].length; l2 += 1) {
@@ -112,85 +112,85 @@ var require_qr_code_styling = __commonJS({
112
112
  return v3;
113
113
  })(n4, r6);
114
114
  };
115
- v2.addData = function(t9, e5) {
115
+ v2.addData = function(t10, e5) {
116
116
  var i5 = null;
117
117
  switch (e5 = e5 || "Byte") {
118
118
  case "Numeric":
119
- i5 = l(t9);
119
+ i5 = l(t10);
120
120
  break;
121
121
  case "Alphanumeric":
122
- i5 = g(t9);
122
+ i5 = g(t10);
123
123
  break;
124
124
  case "Byte":
125
- i5 = f(t9);
125
+ i5 = f(t10);
126
126
  break;
127
127
  case "Kanji":
128
- i5 = w(t9);
128
+ i5 = w(t10);
129
129
  break;
130
130
  default:
131
131
  throw "mode:" + e5;
132
132
  }
133
133
  p2.push(i5), h2 = null;
134
- }, v2.isDark = function(t9, e5) {
135
- if (t9 < 0 || o2 <= t9 || e5 < 0 || o2 <= e5) throw t9 + "," + e5;
136
- return n3[t9][e5];
134
+ }, v2.isDark = function(t10, e5) {
135
+ if (t10 < 0 || o2 <= t10 || e5 < 0 || o2 <= e5) throw t10 + "," + e5;
136
+ return n3[t10][e5];
137
137
  }, v2.getModuleCount = function() {
138
138
  return o2;
139
139
  }, v2.make = function() {
140
140
  if (i4 < 1) {
141
- for (var t9 = 1; t9 < 40; t9++) {
142
- for (var e5 = u.getRSBlocks(t9, r5), n4 = c(), o3 = 0; o3 < p2.length; o3++) {
141
+ for (var t10 = 1; t10 < 40; t10++) {
142
+ for (var e5 = u.getRSBlocks(t10, r5), n4 = c(), o3 = 0; o3 < p2.length; o3++) {
143
143
  var s2 = p2[o3];
144
- n4.put(s2.getMode(), 4), n4.put(s2.getLength(), a.getLengthInBits(s2.getMode(), t9)), s2.write(n4);
144
+ n4.put(s2.getMode(), 4), n4.put(s2.getLength(), a.getLengthInBits(s2.getMode(), t10)), s2.write(n4);
145
145
  }
146
146
  var h3 = 0;
147
147
  for (o3 = 0; o3 < e5.length; o3++) h3 += e5[o3].dataCount;
148
148
  if (n4.getLengthInBits() <= 8 * h3) break;
149
149
  }
150
- i4 = t9;
150
+ i4 = t10;
151
151
  }
152
152
  m(false, (function() {
153
- for (var t10 = 0, e6 = 0, i5 = 0; i5 < 8; i5 += 1) {
153
+ for (var t11 = 0, e6 = 0, i5 = 0; i5 < 8; i5 += 1) {
154
154
  m(true, i5);
155
155
  var r6 = a.getLostPoint(v2);
156
- (0 == i5 || t10 > r6) && (t10 = r6, e6 = i5);
156
+ (0 == i5 || t11 > r6) && (t11 = r6, e6 = i5);
157
157
  }
158
158
  return e6;
159
159
  })());
160
- }, v2.createTableTag = function(t9, e5) {
161
- t9 = t9 || 2;
160
+ }, v2.createTableTag = function(t10, e5) {
161
+ t10 = t10 || 2;
162
162
  var i5 = "";
163
- i5 += '<table style="', i5 += " border-width: 0px; border-style: none;", i5 += " border-collapse: collapse;", i5 += " padding: 0px; margin: " + (e5 = void 0 === e5 ? 4 * t9 : e5) + "px;", i5 += '">', i5 += "<tbody>";
163
+ i5 += '<table style="', i5 += " border-width: 0px; border-style: none;", i5 += " border-collapse: collapse;", i5 += " padding: 0px; margin: " + (e5 = void 0 === e5 ? 4 * t10 : e5) + "px;", i5 += '">', i5 += "<tbody>";
164
164
  for (var r6 = 0; r6 < v2.getModuleCount(); r6 += 1) {
165
165
  i5 += "<tr>";
166
- for (var n4 = 0; n4 < v2.getModuleCount(); n4 += 1) i5 += '<td style="', i5 += " border-width: 0px; border-style: none;", i5 += " border-collapse: collapse;", i5 += " padding: 0px; margin: 0px;", i5 += " width: " + t9 + "px;", i5 += " height: " + t9 + "px;", i5 += " background-color: ", i5 += v2.isDark(r6, n4) ? "#000000" : "#ffffff", i5 += ";", i5 += '"/>';
166
+ for (var n4 = 0; n4 < v2.getModuleCount(); n4 += 1) i5 += '<td style="', i5 += " border-width: 0px; border-style: none;", i5 += " border-collapse: collapse;", i5 += " padding: 0px; margin: 0px;", i5 += " width: " + t10 + "px;", i5 += " height: " + t10 + "px;", i5 += " background-color: ", i5 += v2.isDark(r6, n4) ? "#000000" : "#ffffff", i5 += ";", i5 += '"/>';
167
167
  i5 += "</tr>";
168
168
  }
169
169
  return (i5 += "</tbody>") + "</table>";
170
- }, v2.createSvgTag = function(t9, e5, i5, r6) {
170
+ }, v2.createSvgTag = function(t10, e5, i5, r6) {
171
171
  var n4 = {};
172
- "object" == typeof arguments[0] && (t9 = (n4 = arguments[0]).cellSize, e5 = n4.margin, i5 = n4.alt, r6 = n4.title), t9 = t9 || 2, e5 = void 0 === e5 ? 4 * t9 : e5, (i5 = "string" == typeof i5 ? { text: i5 } : i5 || {}).text = i5.text || null, i5.id = i5.text ? i5.id || "qrcode-description" : null, (r6 = "string" == typeof r6 ? { text: r6 } : r6 || {}).text = r6.text || null, r6.id = r6.text ? r6.id || "qrcode-title" : null;
173
- var o3, s2, a2, h3, d2 = v2.getModuleCount() * t9 + 2 * e5, u2 = "";
174
- for (h3 = "l" + t9 + ",0 0," + t9 + " -" + t9 + ",0 0,-" + t9 + "z ", u2 += '<svg version="1.1" xmlns="http://www.w3.org/2000/svg"', u2 += n4.scalable ? "" : ' width="' + d2 + 'px" height="' + d2 + 'px"', u2 += ' viewBox="0 0 ' + d2 + " " + d2 + '" ', u2 += ' preserveAspectRatio="xMinYMin meet"', u2 += r6.text || i5.text ? ' role="img" aria-labelledby="' + $([r6.id, i5.id].join(" ").trim()) + '"' : "", u2 += ">", u2 += r6.text ? '<title id="' + $(r6.id) + '">' + $(r6.text) + "</title>" : "", u2 += i5.text ? '<description id="' + $(i5.id) + '">' + $(i5.text) + "</description>" : "", u2 += '<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>', u2 += '<path d="', s2 = 0; s2 < v2.getModuleCount(); s2 += 1) for (a2 = s2 * t9 + e5, o3 = 0; o3 < v2.getModuleCount(); o3 += 1) v2.isDark(s2, o3) && (u2 += "M" + (o3 * t9 + e5) + "," + a2 + h3);
172
+ "object" == typeof arguments[0] && (t10 = (n4 = arguments[0]).cellSize, e5 = n4.margin, i5 = n4.alt, r6 = n4.title), t10 = t10 || 2, e5 = void 0 === e5 ? 4 * t10 : e5, (i5 = "string" == typeof i5 ? { text: i5 } : i5 || {}).text = i5.text || null, i5.id = i5.text ? i5.id || "qrcode-description" : null, (r6 = "string" == typeof r6 ? { text: r6 } : r6 || {}).text = r6.text || null, r6.id = r6.text ? r6.id || "qrcode-title" : null;
173
+ var o3, s2, a2, h3, d2 = v2.getModuleCount() * t10 + 2 * e5, u2 = "";
174
+ for (h3 = "l" + t10 + ",0 0," + t10 + " -" + t10 + ",0 0,-" + t10 + "z ", u2 += '<svg version="1.1" xmlns="http://www.w3.org/2000/svg"', u2 += n4.scalable ? "" : ' width="' + d2 + 'px" height="' + d2 + 'px"', u2 += ' viewBox="0 0 ' + d2 + " " + d2 + '" ', u2 += ' preserveAspectRatio="xMinYMin meet"', u2 += r6.text || i5.text ? ' role="img" aria-labelledby="' + $([r6.id, i5.id].join(" ").trim()) + '"' : "", u2 += ">", u2 += r6.text ? '<title id="' + $(r6.id) + '">' + $(r6.text) + "</title>" : "", u2 += i5.text ? '<description id="' + $(i5.id) + '">' + $(i5.text) + "</description>" : "", u2 += '<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>', u2 += '<path d="', s2 = 0; s2 < v2.getModuleCount(); s2 += 1) for (a2 = s2 * t10 + e5, o3 = 0; o3 < v2.getModuleCount(); o3 += 1) v2.isDark(s2, o3) && (u2 += "M" + (o3 * t10 + e5) + "," + a2 + h3);
175
175
  return (u2 += '" stroke="transparent" fill="black"/>') + "</svg>";
176
- }, v2.createDataURL = function(t9, e5) {
177
- t9 = t9 || 2, e5 = void 0 === e5 ? 4 * t9 : e5;
178
- var i5 = v2.getModuleCount() * t9 + 2 * e5, r6 = e5, n4 = i5 - e5;
176
+ }, v2.createDataURL = function(t10, e5) {
177
+ t10 = t10 || 2, e5 = void 0 === e5 ? 4 * t10 : e5;
178
+ var i5 = v2.getModuleCount() * t10 + 2 * e5, r6 = e5, n4 = i5 - e5;
179
179
  return _(i5, i5, (function(e6, i6) {
180
180
  if (r6 <= e6 && e6 < n4 && r6 <= i6 && i6 < n4) {
181
- var o3 = Math.floor((e6 - r6) / t9), s2 = Math.floor((i6 - r6) / t9);
181
+ var o3 = Math.floor((e6 - r6) / t10), s2 = Math.floor((i6 - r6) / t10);
182
182
  return v2.isDark(s2, o3) ? 0 : 1;
183
183
  }
184
184
  return 1;
185
185
  }));
186
- }, v2.createImgTag = function(t9, e5, i5) {
187
- t9 = t9 || 2, e5 = void 0 === e5 ? 4 * t9 : e5;
188
- var r6 = v2.getModuleCount() * t9 + 2 * e5, n4 = "";
189
- return n4 += "<img", n4 += ' src="', n4 += v2.createDataURL(t9, e5), n4 += '"', n4 += ' width="', n4 += r6, n4 += '"', n4 += ' height="', n4 += r6, n4 += '"', i5 && (n4 += ' alt="', n4 += $(i5), n4 += '"'), n4 + "/>";
186
+ }, v2.createImgTag = function(t10, e5, i5) {
187
+ t10 = t10 || 2, e5 = void 0 === e5 ? 4 * t10 : e5;
188
+ var r6 = v2.getModuleCount() * t10 + 2 * e5, n4 = "";
189
+ return n4 += "<img", n4 += ' src="', n4 += v2.createDataURL(t10, e5), n4 += '"', n4 += ' width="', n4 += r6, n4 += '"', n4 += ' height="', n4 += r6, n4 += '"', i5 && (n4 += ' alt="', n4 += $(i5), n4 += '"'), n4 + "/>";
190
190
  };
191
- var $ = function(t9) {
192
- for (var e5 = "", i5 = 0; i5 < t9.length; i5 += 1) {
193
- var r6 = t9.charAt(i5);
191
+ var $ = function(t10) {
192
+ for (var e5 = "", i5 = 0; i5 < t10.length; i5 += 1) {
193
+ var r6 = t10.charAt(i5);
194
194
  switch (r6) {
195
195
  case "<":
196
196
  e5 += "&lt;";
@@ -210,40 +210,40 @@ var require_qr_code_styling = __commonJS({
210
210
  }
211
211
  return e5;
212
212
  };
213
- return v2.createASCII = function(t9, e5) {
214
- if ((t9 = t9 || 1) < 2) return (function(t10) {
215
- t10 = void 0 === t10 ? 2 : t10;
216
- var e6, i6, r7, n5, o4, s3 = 1 * v2.getModuleCount() + 2 * t10, a3 = t10, h4 = s3 - t10, d3 = { "\u2588\u2588": "\u2588", "\u2588 ": "\u2580", " \u2588": "\u2584", " ": " " }, u3 = { "\u2588\u2588": "\u2580", "\u2588 ": "\u2580", " \u2588": " ", " ": " " }, c3 = "";
213
+ return v2.createASCII = function(t10, e5) {
214
+ if ((t10 = t10 || 1) < 2) return (function(t11) {
215
+ t11 = void 0 === t11 ? 2 : t11;
216
+ var e6, i6, r7, n5, o4, s3 = 1 * v2.getModuleCount() + 2 * t11, a3 = t11, h4 = s3 - t11, d3 = { "\u2588\u2588": "\u2588", "\u2588 ": "\u2580", " \u2588": "\u2584", " ": " " }, u3 = { "\u2588\u2588": "\u2580", "\u2588 ": "\u2580", " \u2588": " ", " ": " " }, c3 = "";
217
217
  for (e6 = 0; e6 < s3; e6 += 2) {
218
- for (r7 = Math.floor((e6 - a3) / 1), n5 = Math.floor((e6 + 1 - a3) / 1), i6 = 0; i6 < s3; i6 += 1) o4 = "\u2588", a3 <= i6 && i6 < h4 && a3 <= e6 && e6 < h4 && v2.isDark(r7, Math.floor((i6 - a3) / 1)) && (o4 = " "), a3 <= i6 && i6 < h4 && a3 <= e6 + 1 && e6 + 1 < h4 && v2.isDark(n5, Math.floor((i6 - a3) / 1)) ? o4 += " " : o4 += "\u2588", c3 += t10 < 1 && e6 + 1 >= h4 ? u3[o4] : d3[o4];
218
+ for (r7 = Math.floor((e6 - a3) / 1), n5 = Math.floor((e6 + 1 - a3) / 1), i6 = 0; i6 < s3; i6 += 1) o4 = "\u2588", a3 <= i6 && i6 < h4 && a3 <= e6 && e6 < h4 && v2.isDark(r7, Math.floor((i6 - a3) / 1)) && (o4 = " "), a3 <= i6 && i6 < h4 && a3 <= e6 + 1 && e6 + 1 < h4 && v2.isDark(n5, Math.floor((i6 - a3) / 1)) ? o4 += " " : o4 += "\u2588", c3 += t11 < 1 && e6 + 1 >= h4 ? u3[o4] : d3[o4];
219
219
  c3 += "\n";
220
220
  }
221
- return s3 % 2 && t10 > 0 ? c3.substring(0, c3.length - s3 - 1) + Array(s3 + 1).join("\u2580") : c3.substring(0, c3.length - 1);
221
+ return s3 % 2 && t11 > 0 ? c3.substring(0, c3.length - s3 - 1) + Array(s3 + 1).join("\u2580") : c3.substring(0, c3.length - 1);
222
222
  })(e5);
223
- t9 -= 1, e5 = void 0 === e5 ? 2 * t9 : e5;
224
- var i5, r6, n4, o3, s2 = v2.getModuleCount() * t9 + 2 * e5, a2 = e5, h3 = s2 - e5, d2 = Array(t9 + 1).join("\u2588\u2588"), u2 = Array(t9 + 1).join(" "), c2 = "", l2 = "";
223
+ t10 -= 1, e5 = void 0 === e5 ? 2 * t10 : e5;
224
+ var i5, r6, n4, o3, s2 = v2.getModuleCount() * t10 + 2 * e5, a2 = e5, h3 = s2 - e5, d2 = Array(t10 + 1).join("\u2588\u2588"), u2 = Array(t10 + 1).join(" "), c2 = "", l2 = "";
225
225
  for (i5 = 0; i5 < s2; i5 += 1) {
226
- for (n4 = Math.floor((i5 - a2) / t9), l2 = "", r6 = 0; r6 < s2; r6 += 1) o3 = 1, a2 <= r6 && r6 < h3 && a2 <= i5 && i5 < h3 && v2.isDark(n4, Math.floor((r6 - a2) / t9)) && (o3 = 0), l2 += o3 ? d2 : u2;
227
- for (n4 = 0; n4 < t9; n4 += 1) c2 += l2 + "\n";
226
+ for (n4 = Math.floor((i5 - a2) / t10), l2 = "", r6 = 0; r6 < s2; r6 += 1) o3 = 1, a2 <= r6 && r6 < h3 && a2 <= i5 && i5 < h3 && v2.isDark(n4, Math.floor((r6 - a2) / t10)) && (o3 = 0), l2 += o3 ? d2 : u2;
227
+ for (n4 = 0; n4 < t10; n4 += 1) c2 += l2 + "\n";
228
228
  }
229
229
  return c2.substring(0, c2.length - 1);
230
- }, v2.renderTo2dContext = function(t9, e5) {
230
+ }, v2.renderTo2dContext = function(t10, e5) {
231
231
  e5 = e5 || 2;
232
- for (var i5 = v2.getModuleCount(), r6 = 0; r6 < i5; r6++) for (var n4 = 0; n4 < i5; n4++) t9.fillStyle = v2.isDark(r6, n4) ? "black" : "white", t9.fillRect(r6 * e5, n4 * e5, e5, e5);
232
+ for (var i5 = v2.getModuleCount(), r6 = 0; r6 < i5; r6++) for (var n4 = 0; n4 < i5; n4++) t10.fillStyle = v2.isDark(r6, n4) ? "black" : "white", t10.fillRect(r6 * e5, n4 * e5, e5, e5);
233
233
  }, v2;
234
234
  };
235
- t7.stringToBytes = (t7.stringToBytesFuncs = { default: function(t8) {
236
- for (var e4 = [], i4 = 0; i4 < t8.length; i4 += 1) {
237
- var r5 = t8.charCodeAt(i4);
235
+ t8.stringToBytes = (t8.stringToBytesFuncs = { default: function(t9) {
236
+ for (var e4 = [], i4 = 0; i4 < t9.length; i4 += 1) {
237
+ var r5 = t9.charCodeAt(i4);
238
238
  e4.push(255 & r5);
239
239
  }
240
240
  return e4;
241
- } }).default, t7.createStringToBytes = function(t8, e4) {
241
+ } }).default, t8.createStringToBytes = function(t9, e4) {
242
242
  var i4 = (function() {
243
- for (var i5 = v(t8), r6 = function() {
244
- var t9 = i5.read();
245
- if (-1 == t9) throw "eof";
246
- return t9;
243
+ for (var i5 = v(t9), r6 = function() {
244
+ var t10 = i5.read();
245
+ if (-1 == t10) throw "eof";
246
+ return t10;
247
247
  }, n3 = 0, o2 = {}; ; ) {
248
248
  var s2 = i5.read();
249
249
  if (-1 == s2) break;
@@ -253,71 +253,71 @@ var require_qr_code_styling = __commonJS({
253
253
  if (n3 != e4) throw n3 + " != " + e4;
254
254
  return o2;
255
255
  })(), r5 = "?".charCodeAt(0);
256
- return function(t9) {
257
- for (var e5 = [], n3 = 0; n3 < t9.length; n3 += 1) {
258
- var o2 = t9.charCodeAt(n3);
256
+ return function(t10) {
257
+ for (var e5 = [], n3 = 0; n3 < t10.length; n3 += 1) {
258
+ var o2 = t10.charCodeAt(n3);
259
259
  if (o2 < 128) e5.push(o2);
260
260
  else {
261
- var s2 = i4[t9.charAt(n3)];
261
+ var s2 = i4[t10.charAt(n3)];
262
262
  "number" == typeof s2 ? (255 & s2) == s2 ? e5.push(s2) : (e5.push(s2 >>> 8), e5.push(255 & s2)) : e5.push(r5);
263
263
  }
264
264
  }
265
265
  return e5;
266
266
  };
267
267
  };
268
- var e3, i3, r4, n2, o, s = { L: 1, M: 0, Q: 3, H: 2 }, a = (e3 = [[], [6, 18], [6, 22], [6, 26], [6, 30], [6, 34], [6, 22, 38], [6, 24, 42], [6, 26, 46], [6, 28, 50], [6, 30, 54], [6, 32, 58], [6, 34, 62], [6, 26, 46, 66], [6, 26, 48, 70], [6, 26, 50, 74], [6, 30, 54, 78], [6, 30, 56, 82], [6, 30, 58, 86], [6, 34, 62, 90], [6, 28, 50, 72, 94], [6, 26, 50, 74, 98], [6, 30, 54, 78, 102], [6, 28, 54, 80, 106], [6, 32, 58, 84, 110], [6, 30, 58, 86, 114], [6, 34, 62, 90, 118], [6, 26, 50, 74, 98, 122], [6, 30, 54, 78, 102, 126], [6, 26, 52, 78, 104, 130], [6, 30, 56, 82, 108, 134], [6, 34, 60, 86, 112, 138], [6, 30, 58, 86, 114, 142], [6, 34, 62, 90, 118, 146], [6, 30, 54, 78, 102, 126, 150], [6, 24, 50, 76, 102, 128, 154], [6, 28, 54, 80, 106, 132, 158], [6, 32, 58, 84, 110, 136, 162], [6, 26, 54, 82, 110, 138, 166], [6, 30, 58, 86, 114, 142, 170]], i3 = 1335, r4 = 7973, o = function(t8) {
269
- for (var e4 = 0; 0 != t8; ) e4 += 1, t8 >>>= 1;
268
+ var e3, i3, r4, n2, o, s = { L: 1, M: 0, Q: 3, H: 2 }, a = (e3 = [[], [6, 18], [6, 22], [6, 26], [6, 30], [6, 34], [6, 22, 38], [6, 24, 42], [6, 26, 46], [6, 28, 50], [6, 30, 54], [6, 32, 58], [6, 34, 62], [6, 26, 46, 66], [6, 26, 48, 70], [6, 26, 50, 74], [6, 30, 54, 78], [6, 30, 56, 82], [6, 30, 58, 86], [6, 34, 62, 90], [6, 28, 50, 72, 94], [6, 26, 50, 74, 98], [6, 30, 54, 78, 102], [6, 28, 54, 80, 106], [6, 32, 58, 84, 110], [6, 30, 58, 86, 114], [6, 34, 62, 90, 118], [6, 26, 50, 74, 98, 122], [6, 30, 54, 78, 102, 126], [6, 26, 52, 78, 104, 130], [6, 30, 56, 82, 108, 134], [6, 34, 60, 86, 112, 138], [6, 30, 58, 86, 114, 142], [6, 34, 62, 90, 118, 146], [6, 30, 54, 78, 102, 126, 150], [6, 24, 50, 76, 102, 128, 154], [6, 28, 54, 80, 106, 132, 158], [6, 32, 58, 84, 110, 136, 162], [6, 26, 54, 82, 110, 138, 166], [6, 30, 58, 86, 114, 142, 170]], i3 = 1335, r4 = 7973, o = function(t9) {
269
+ for (var e4 = 0; 0 != t9; ) e4 += 1, t9 >>>= 1;
270
270
  return e4;
271
- }, (n2 = {}).getBCHTypeInfo = function(t8) {
272
- for (var e4 = t8 << 10; o(e4) - o(i3) >= 0; ) e4 ^= i3 << o(e4) - o(i3);
273
- return 21522 ^ (t8 << 10 | e4);
274
- }, n2.getBCHTypeNumber = function(t8) {
275
- for (var e4 = t8 << 12; o(e4) - o(r4) >= 0; ) e4 ^= r4 << o(e4) - o(r4);
276
- return t8 << 12 | e4;
277
- }, n2.getPatternPosition = function(t8) {
278
- return e3[t8 - 1];
279
- }, n2.getMaskFunction = function(t8) {
280
- switch (t8) {
271
+ }, (n2 = {}).getBCHTypeInfo = function(t9) {
272
+ for (var e4 = t9 << 10; o(e4) - o(i3) >= 0; ) e4 ^= i3 << o(e4) - o(i3);
273
+ return 21522 ^ (t9 << 10 | e4);
274
+ }, n2.getBCHTypeNumber = function(t9) {
275
+ for (var e4 = t9 << 12; o(e4) - o(r4) >= 0; ) e4 ^= r4 << o(e4) - o(r4);
276
+ return t9 << 12 | e4;
277
+ }, n2.getPatternPosition = function(t9) {
278
+ return e3[t9 - 1];
279
+ }, n2.getMaskFunction = function(t9) {
280
+ switch (t9) {
281
281
  case 0:
282
- return function(t9, e4) {
283
- return (t9 + e4) % 2 == 0;
282
+ return function(t10, e4) {
283
+ return (t10 + e4) % 2 == 0;
284
284
  };
285
285
  case 1:
286
- return function(t9, e4) {
287
- return t9 % 2 == 0;
286
+ return function(t10, e4) {
287
+ return t10 % 2 == 0;
288
288
  };
289
289
  case 2:
290
- return function(t9, e4) {
290
+ return function(t10, e4) {
291
291
  return e4 % 3 == 0;
292
292
  };
293
293
  case 3:
294
- return function(t9, e4) {
295
- return (t9 + e4) % 3 == 0;
294
+ return function(t10, e4) {
295
+ return (t10 + e4) % 3 == 0;
296
296
  };
297
297
  case 4:
298
- return function(t9, e4) {
299
- return (Math.floor(t9 / 2) + Math.floor(e4 / 3)) % 2 == 0;
298
+ return function(t10, e4) {
299
+ return (Math.floor(t10 / 2) + Math.floor(e4 / 3)) % 2 == 0;
300
300
  };
301
301
  case 5:
302
- return function(t9, e4) {
303
- return t9 * e4 % 2 + t9 * e4 % 3 == 0;
302
+ return function(t10, e4) {
303
+ return t10 * e4 % 2 + t10 * e4 % 3 == 0;
304
304
  };
305
305
  case 6:
306
- return function(t9, e4) {
307
- return (t9 * e4 % 2 + t9 * e4 % 3) % 2 == 0;
306
+ return function(t10, e4) {
307
+ return (t10 * e4 % 2 + t10 * e4 % 3) % 2 == 0;
308
308
  };
309
309
  case 7:
310
- return function(t9, e4) {
311
- return (t9 * e4 % 3 + (t9 + e4) % 2) % 2 == 0;
310
+ return function(t10, e4) {
311
+ return (t10 * e4 % 3 + (t10 + e4) % 2) % 2 == 0;
312
312
  };
313
313
  default:
314
- throw "bad maskPattern:" + t8;
314
+ throw "bad maskPattern:" + t9;
315
315
  }
316
- }, n2.getErrorCorrectPolynomial = function(t8) {
317
- for (var e4 = d([1], 0), i4 = 0; i4 < t8; i4 += 1) e4 = e4.multiply(d([1, h.gexp(i4)], 0));
316
+ }, n2.getErrorCorrectPolynomial = function(t9) {
317
+ for (var e4 = d([1], 0), i4 = 0; i4 < t9; i4 += 1) e4 = e4.multiply(d([1, h.gexp(i4)], 0));
318
318
  return e4;
319
- }, n2.getLengthInBits = function(t8, e4) {
320
- if (1 <= e4 && e4 < 10) switch (t8) {
319
+ }, n2.getLengthInBits = function(t9, e4) {
320
+ if (1 <= e4 && e4 < 10) switch (t9) {
321
321
  case 1:
322
322
  return 10;
323
323
  case 2:
@@ -326,9 +326,9 @@ var require_qr_code_styling = __commonJS({
326
326
  case 8:
327
327
  return 8;
328
328
  default:
329
- throw "mode:" + t8;
329
+ throw "mode:" + t9;
330
330
  }
331
- else if (e4 < 27) switch (t8) {
331
+ else if (e4 < 27) switch (t9) {
332
332
  case 1:
333
333
  return 12;
334
334
  case 2:
@@ -338,11 +338,11 @@ var require_qr_code_styling = __commonJS({
338
338
  case 8:
339
339
  return 10;
340
340
  default:
341
- throw "mode:" + t8;
341
+ throw "mode:" + t9;
342
342
  }
343
343
  else {
344
344
  if (!(e4 < 41)) throw "type:" + e4;
345
- switch (t8) {
345
+ switch (t9) {
346
346
  case 1:
347
347
  return 14;
348
348
  case 2:
@@ -352,72 +352,72 @@ var require_qr_code_styling = __commonJS({
352
352
  case 8:
353
353
  return 12;
354
354
  default:
355
- throw "mode:" + t8;
355
+ throw "mode:" + t9;
356
356
  }
357
357
  }
358
- }, n2.getLostPoint = function(t8) {
359
- for (var e4 = t8.getModuleCount(), i4 = 0, r5 = 0; r5 < e4; r5 += 1) for (var n3 = 0; n3 < e4; n3 += 1) {
360
- for (var o2 = 0, s2 = t8.isDark(r5, n3), a2 = -1; a2 <= 1; a2 += 1) if (!(r5 + a2 < 0 || e4 <= r5 + a2)) for (var h2 = -1; h2 <= 1; h2 += 1) n3 + h2 < 0 || e4 <= n3 + h2 || 0 == a2 && 0 == h2 || s2 == t8.isDark(r5 + a2, n3 + h2) && (o2 += 1);
358
+ }, n2.getLostPoint = function(t9) {
359
+ for (var e4 = t9.getModuleCount(), i4 = 0, r5 = 0; r5 < e4; r5 += 1) for (var n3 = 0; n3 < e4; n3 += 1) {
360
+ for (var o2 = 0, s2 = t9.isDark(r5, n3), a2 = -1; a2 <= 1; a2 += 1) if (!(r5 + a2 < 0 || e4 <= r5 + a2)) for (var h2 = -1; h2 <= 1; h2 += 1) n3 + h2 < 0 || e4 <= n3 + h2 || 0 == a2 && 0 == h2 || s2 == t9.isDark(r5 + a2, n3 + h2) && (o2 += 1);
361
361
  o2 > 5 && (i4 += 3 + o2 - 5);
362
362
  }
363
363
  for (r5 = 0; r5 < e4 - 1; r5 += 1) for (n3 = 0; n3 < e4 - 1; n3 += 1) {
364
364
  var d2 = 0;
365
- t8.isDark(r5, n3) && (d2 += 1), t8.isDark(r5 + 1, n3) && (d2 += 1), t8.isDark(r5, n3 + 1) && (d2 += 1), t8.isDark(r5 + 1, n3 + 1) && (d2 += 1), 0 != d2 && 4 != d2 || (i4 += 3);
365
+ t9.isDark(r5, n3) && (d2 += 1), t9.isDark(r5 + 1, n3) && (d2 += 1), t9.isDark(r5, n3 + 1) && (d2 += 1), t9.isDark(r5 + 1, n3 + 1) && (d2 += 1), 0 != d2 && 4 != d2 || (i4 += 3);
366
366
  }
367
- for (r5 = 0; r5 < e4; r5 += 1) for (n3 = 0; n3 < e4 - 6; n3 += 1) t8.isDark(r5, n3) && !t8.isDark(r5, n3 + 1) && t8.isDark(r5, n3 + 2) && t8.isDark(r5, n3 + 3) && t8.isDark(r5, n3 + 4) && !t8.isDark(r5, n3 + 5) && t8.isDark(r5, n3 + 6) && (i4 += 40);
368
- for (n3 = 0; n3 < e4; n3 += 1) for (r5 = 0; r5 < e4 - 6; r5 += 1) t8.isDark(r5, n3) && !t8.isDark(r5 + 1, n3) && t8.isDark(r5 + 2, n3) && t8.isDark(r5 + 3, n3) && t8.isDark(r5 + 4, n3) && !t8.isDark(r5 + 5, n3) && t8.isDark(r5 + 6, n3) && (i4 += 40);
367
+ for (r5 = 0; r5 < e4; r5 += 1) for (n3 = 0; n3 < e4 - 6; n3 += 1) t9.isDark(r5, n3) && !t9.isDark(r5, n3 + 1) && t9.isDark(r5, n3 + 2) && t9.isDark(r5, n3 + 3) && t9.isDark(r5, n3 + 4) && !t9.isDark(r5, n3 + 5) && t9.isDark(r5, n3 + 6) && (i4 += 40);
368
+ for (n3 = 0; n3 < e4; n3 += 1) for (r5 = 0; r5 < e4 - 6; r5 += 1) t9.isDark(r5, n3) && !t9.isDark(r5 + 1, n3) && t9.isDark(r5 + 2, n3) && t9.isDark(r5 + 3, n3) && t9.isDark(r5 + 4, n3) && !t9.isDark(r5 + 5, n3) && t9.isDark(r5 + 6, n3) && (i4 += 40);
369
369
  var u2 = 0;
370
- for (n3 = 0; n3 < e4; n3 += 1) for (r5 = 0; r5 < e4; r5 += 1) t8.isDark(r5, n3) && (u2 += 1);
370
+ for (n3 = 0; n3 < e4; n3 += 1) for (r5 = 0; r5 < e4; r5 += 1) t9.isDark(r5, n3) && (u2 += 1);
371
371
  return i4 + Math.abs(100 * u2 / e4 / e4 - 50) / 5 * 10;
372
372
  }, n2), h = (function() {
373
- for (var t8 = new Array(256), e4 = new Array(256), i4 = 0; i4 < 8; i4 += 1) t8[i4] = 1 << i4;
374
- for (i4 = 8; i4 < 256; i4 += 1) t8[i4] = t8[i4 - 4] ^ t8[i4 - 5] ^ t8[i4 - 6] ^ t8[i4 - 8];
375
- for (i4 = 0; i4 < 255; i4 += 1) e4[t8[i4]] = i4;
376
- return { glog: function(t9) {
377
- if (t9 < 1) throw "glog(" + t9 + ")";
378
- return e4[t9];
373
+ for (var t9 = new Array(256), e4 = new Array(256), i4 = 0; i4 < 8; i4 += 1) t9[i4] = 1 << i4;
374
+ for (i4 = 8; i4 < 256; i4 += 1) t9[i4] = t9[i4 - 4] ^ t9[i4 - 5] ^ t9[i4 - 6] ^ t9[i4 - 8];
375
+ for (i4 = 0; i4 < 255; i4 += 1) e4[t9[i4]] = i4;
376
+ return { glog: function(t10) {
377
+ if (t10 < 1) throw "glog(" + t10 + ")";
378
+ return e4[t10];
379
379
  }, gexp: function(e5) {
380
380
  for (; e5 < 0; ) e5 += 255;
381
381
  for (; e5 >= 256; ) e5 -= 255;
382
- return t8[e5];
382
+ return t9[e5];
383
383
  } };
384
384
  })();
385
- function d(t8, e4) {
386
- if (void 0 === t8.length) throw t8.length + "/" + e4;
385
+ function d(t9, e4) {
386
+ if (void 0 === t9.length) throw t9.length + "/" + e4;
387
387
  var i4 = (function() {
388
- for (var i5 = 0; i5 < t8.length && 0 == t8[i5]; ) i5 += 1;
389
- for (var r6 = new Array(t8.length - i5 + e4), n3 = 0; n3 < t8.length - i5; n3 += 1) r6[n3] = t8[n3 + i5];
388
+ for (var i5 = 0; i5 < t9.length && 0 == t9[i5]; ) i5 += 1;
389
+ for (var r6 = new Array(t9.length - i5 + e4), n3 = 0; n3 < t9.length - i5; n3 += 1) r6[n3] = t9[n3 + i5];
390
390
  return r6;
391
- })(), r5 = { getAt: function(t9) {
392
- return i4[t9];
391
+ })(), r5 = { getAt: function(t10) {
392
+ return i4[t10];
393
393
  }, getLength: function() {
394
394
  return i4.length;
395
- }, multiply: function(t9) {
396
- for (var e5 = new Array(r5.getLength() + t9.getLength() - 1), i5 = 0; i5 < r5.getLength(); i5 += 1) for (var n3 = 0; n3 < t9.getLength(); n3 += 1) e5[i5 + n3] ^= h.gexp(h.glog(r5.getAt(i5)) + h.glog(t9.getAt(n3)));
395
+ }, multiply: function(t10) {
396
+ for (var e5 = new Array(r5.getLength() + t10.getLength() - 1), i5 = 0; i5 < r5.getLength(); i5 += 1) for (var n3 = 0; n3 < t10.getLength(); n3 += 1) e5[i5 + n3] ^= h.gexp(h.glog(r5.getAt(i5)) + h.glog(t10.getAt(n3)));
397
397
  return d(e5, 0);
398
- }, mod: function(t9) {
399
- if (r5.getLength() - t9.getLength() < 0) return r5;
400
- for (var e5 = h.glog(r5.getAt(0)) - h.glog(t9.getAt(0)), i5 = new Array(r5.getLength()), n3 = 0; n3 < r5.getLength(); n3 += 1) i5[n3] = r5.getAt(n3);
401
- for (n3 = 0; n3 < t9.getLength(); n3 += 1) i5[n3] ^= h.gexp(h.glog(t9.getAt(n3)) + e5);
402
- return d(i5, 0).mod(t9);
398
+ }, mod: function(t10) {
399
+ if (r5.getLength() - t10.getLength() < 0) return r5;
400
+ for (var e5 = h.glog(r5.getAt(0)) - h.glog(t10.getAt(0)), i5 = new Array(r5.getLength()), n3 = 0; n3 < r5.getLength(); n3 += 1) i5[n3] = r5.getAt(n3);
401
+ for (n3 = 0; n3 < t10.getLength(); n3 += 1) i5[n3] ^= h.gexp(h.glog(t10.getAt(n3)) + e5);
402
+ return d(i5, 0).mod(t10);
403
403
  } };
404
404
  return r5;
405
405
  }
406
406
  var u = /* @__PURE__ */ (function() {
407
- var t8 = [[1, 26, 19], [1, 26, 16], [1, 26, 13], [1, 26, 9], [1, 44, 34], [1, 44, 28], [1, 44, 22], [1, 44, 16], [1, 70, 55], [1, 70, 44], [2, 35, 17], [2, 35, 13], [1, 100, 80], [2, 50, 32], [2, 50, 24], [4, 25, 9], [1, 134, 108], [2, 67, 43], [2, 33, 15, 2, 34, 16], [2, 33, 11, 2, 34, 12], [2, 86, 68], [4, 43, 27], [4, 43, 19], [4, 43, 15], [2, 98, 78], [4, 49, 31], [2, 32, 14, 4, 33, 15], [4, 39, 13, 1, 40, 14], [2, 121, 97], [2, 60, 38, 2, 61, 39], [4, 40, 18, 2, 41, 19], [4, 40, 14, 2, 41, 15], [2, 146, 116], [3, 58, 36, 2, 59, 37], [4, 36, 16, 4, 37, 17], [4, 36, 12, 4, 37, 13], [2, 86, 68, 2, 87, 69], [4, 69, 43, 1, 70, 44], [6, 43, 19, 2, 44, 20], [6, 43, 15, 2, 44, 16], [4, 101, 81], [1, 80, 50, 4, 81, 51], [4, 50, 22, 4, 51, 23], [3, 36, 12, 8, 37, 13], [2, 116, 92, 2, 117, 93], [6, 58, 36, 2, 59, 37], [4, 46, 20, 6, 47, 21], [7, 42, 14, 4, 43, 15], [4, 133, 107], [8, 59, 37, 1, 60, 38], [8, 44, 20, 4, 45, 21], [12, 33, 11, 4, 34, 12], [3, 145, 115, 1, 146, 116], [4, 64, 40, 5, 65, 41], [11, 36, 16, 5, 37, 17], [11, 36, 12, 5, 37, 13], [5, 109, 87, 1, 110, 88], [5, 65, 41, 5, 66, 42], [5, 54, 24, 7, 55, 25], [11, 36, 12, 7, 37, 13], [5, 122, 98, 1, 123, 99], [7, 73, 45, 3, 74, 46], [15, 43, 19, 2, 44, 20], [3, 45, 15, 13, 46, 16], [1, 135, 107, 5, 136, 108], [10, 74, 46, 1, 75, 47], [1, 50, 22, 15, 51, 23], [2, 42, 14, 17, 43, 15], [5, 150, 120, 1, 151, 121], [9, 69, 43, 4, 70, 44], [17, 50, 22, 1, 51, 23], [2, 42, 14, 19, 43, 15], [3, 141, 113, 4, 142, 114], [3, 70, 44, 11, 71, 45], [17, 47, 21, 4, 48, 22], [9, 39, 13, 16, 40, 14], [3, 135, 107, 5, 136, 108], [3, 67, 41, 13, 68, 42], [15, 54, 24, 5, 55, 25], [15, 43, 15, 10, 44, 16], [4, 144, 116, 4, 145, 117], [17, 68, 42], [17, 50, 22, 6, 51, 23], [19, 46, 16, 6, 47, 17], [2, 139, 111, 7, 140, 112], [17, 74, 46], [7, 54, 24, 16, 55, 25], [34, 37, 13], [4, 151, 121, 5, 152, 122], [4, 75, 47, 14, 76, 48], [11, 54, 24, 14, 55, 25], [16, 45, 15, 14, 46, 16], [6, 147, 117, 4, 148, 118], [6, 73, 45, 14, 74, 46], [11, 54, 24, 16, 55, 25], [30, 46, 16, 2, 47, 17], [8, 132, 106, 4, 133, 107], [8, 75, 47, 13, 76, 48], [7, 54, 24, 22, 55, 25], [22, 45, 15, 13, 46, 16], [10, 142, 114, 2, 143, 115], [19, 74, 46, 4, 75, 47], [28, 50, 22, 6, 51, 23], [33, 46, 16, 4, 47, 17], [8, 152, 122, 4, 153, 123], [22, 73, 45, 3, 74, 46], [8, 53, 23, 26, 54, 24], [12, 45, 15, 28, 46, 16], [3, 147, 117, 10, 148, 118], [3, 73, 45, 23, 74, 46], [4, 54, 24, 31, 55, 25], [11, 45, 15, 31, 46, 16], [7, 146, 116, 7, 147, 117], [21, 73, 45, 7, 74, 46], [1, 53, 23, 37, 54, 24], [19, 45, 15, 26, 46, 16], [5, 145, 115, 10, 146, 116], [19, 75, 47, 10, 76, 48], [15, 54, 24, 25, 55, 25], [23, 45, 15, 25, 46, 16], [13, 145, 115, 3, 146, 116], [2, 74, 46, 29, 75, 47], [42, 54, 24, 1, 55, 25], [23, 45, 15, 28, 46, 16], [17, 145, 115], [10, 74, 46, 23, 75, 47], [10, 54, 24, 35, 55, 25], [19, 45, 15, 35, 46, 16], [17, 145, 115, 1, 146, 116], [14, 74, 46, 21, 75, 47], [29, 54, 24, 19, 55, 25], [11, 45, 15, 46, 46, 16], [13, 145, 115, 6, 146, 116], [14, 74, 46, 23, 75, 47], [44, 54, 24, 7, 55, 25], [59, 46, 16, 1, 47, 17], [12, 151, 121, 7, 152, 122], [12, 75, 47, 26, 76, 48], [39, 54, 24, 14, 55, 25], [22, 45, 15, 41, 46, 16], [6, 151, 121, 14, 152, 122], [6, 75, 47, 34, 76, 48], [46, 54, 24, 10, 55, 25], [2, 45, 15, 64, 46, 16], [17, 152, 122, 4, 153, 123], [29, 74, 46, 14, 75, 47], [49, 54, 24, 10, 55, 25], [24, 45, 15, 46, 46, 16], [4, 152, 122, 18, 153, 123], [13, 74, 46, 32, 75, 47], [48, 54, 24, 14, 55, 25], [42, 45, 15, 32, 46, 16], [20, 147, 117, 4, 148, 118], [40, 75, 47, 7, 76, 48], [43, 54, 24, 22, 55, 25], [10, 45, 15, 67, 46, 16], [19, 148, 118, 6, 149, 119], [18, 75, 47, 31, 76, 48], [34, 54, 24, 34, 55, 25], [20, 45, 15, 61, 46, 16]], e4 = function(t9, e5) {
407
+ var t9 = [[1, 26, 19], [1, 26, 16], [1, 26, 13], [1, 26, 9], [1, 44, 34], [1, 44, 28], [1, 44, 22], [1, 44, 16], [1, 70, 55], [1, 70, 44], [2, 35, 17], [2, 35, 13], [1, 100, 80], [2, 50, 32], [2, 50, 24], [4, 25, 9], [1, 134, 108], [2, 67, 43], [2, 33, 15, 2, 34, 16], [2, 33, 11, 2, 34, 12], [2, 86, 68], [4, 43, 27], [4, 43, 19], [4, 43, 15], [2, 98, 78], [4, 49, 31], [2, 32, 14, 4, 33, 15], [4, 39, 13, 1, 40, 14], [2, 121, 97], [2, 60, 38, 2, 61, 39], [4, 40, 18, 2, 41, 19], [4, 40, 14, 2, 41, 15], [2, 146, 116], [3, 58, 36, 2, 59, 37], [4, 36, 16, 4, 37, 17], [4, 36, 12, 4, 37, 13], [2, 86, 68, 2, 87, 69], [4, 69, 43, 1, 70, 44], [6, 43, 19, 2, 44, 20], [6, 43, 15, 2, 44, 16], [4, 101, 81], [1, 80, 50, 4, 81, 51], [4, 50, 22, 4, 51, 23], [3, 36, 12, 8, 37, 13], [2, 116, 92, 2, 117, 93], [6, 58, 36, 2, 59, 37], [4, 46, 20, 6, 47, 21], [7, 42, 14, 4, 43, 15], [4, 133, 107], [8, 59, 37, 1, 60, 38], [8, 44, 20, 4, 45, 21], [12, 33, 11, 4, 34, 12], [3, 145, 115, 1, 146, 116], [4, 64, 40, 5, 65, 41], [11, 36, 16, 5, 37, 17], [11, 36, 12, 5, 37, 13], [5, 109, 87, 1, 110, 88], [5, 65, 41, 5, 66, 42], [5, 54, 24, 7, 55, 25], [11, 36, 12, 7, 37, 13], [5, 122, 98, 1, 123, 99], [7, 73, 45, 3, 74, 46], [15, 43, 19, 2, 44, 20], [3, 45, 15, 13, 46, 16], [1, 135, 107, 5, 136, 108], [10, 74, 46, 1, 75, 47], [1, 50, 22, 15, 51, 23], [2, 42, 14, 17, 43, 15], [5, 150, 120, 1, 151, 121], [9, 69, 43, 4, 70, 44], [17, 50, 22, 1, 51, 23], [2, 42, 14, 19, 43, 15], [3, 141, 113, 4, 142, 114], [3, 70, 44, 11, 71, 45], [17, 47, 21, 4, 48, 22], [9, 39, 13, 16, 40, 14], [3, 135, 107, 5, 136, 108], [3, 67, 41, 13, 68, 42], [15, 54, 24, 5, 55, 25], [15, 43, 15, 10, 44, 16], [4, 144, 116, 4, 145, 117], [17, 68, 42], [17, 50, 22, 6, 51, 23], [19, 46, 16, 6, 47, 17], [2, 139, 111, 7, 140, 112], [17, 74, 46], [7, 54, 24, 16, 55, 25], [34, 37, 13], [4, 151, 121, 5, 152, 122], [4, 75, 47, 14, 76, 48], [11, 54, 24, 14, 55, 25], [16, 45, 15, 14, 46, 16], [6, 147, 117, 4, 148, 118], [6, 73, 45, 14, 74, 46], [11, 54, 24, 16, 55, 25], [30, 46, 16, 2, 47, 17], [8, 132, 106, 4, 133, 107], [8, 75, 47, 13, 76, 48], [7, 54, 24, 22, 55, 25], [22, 45, 15, 13, 46, 16], [10, 142, 114, 2, 143, 115], [19, 74, 46, 4, 75, 47], [28, 50, 22, 6, 51, 23], [33, 46, 16, 4, 47, 17], [8, 152, 122, 4, 153, 123], [22, 73, 45, 3, 74, 46], [8, 53, 23, 26, 54, 24], [12, 45, 15, 28, 46, 16], [3, 147, 117, 10, 148, 118], [3, 73, 45, 23, 74, 46], [4, 54, 24, 31, 55, 25], [11, 45, 15, 31, 46, 16], [7, 146, 116, 7, 147, 117], [21, 73, 45, 7, 74, 46], [1, 53, 23, 37, 54, 24], [19, 45, 15, 26, 46, 16], [5, 145, 115, 10, 146, 116], [19, 75, 47, 10, 76, 48], [15, 54, 24, 25, 55, 25], [23, 45, 15, 25, 46, 16], [13, 145, 115, 3, 146, 116], [2, 74, 46, 29, 75, 47], [42, 54, 24, 1, 55, 25], [23, 45, 15, 28, 46, 16], [17, 145, 115], [10, 74, 46, 23, 75, 47], [10, 54, 24, 35, 55, 25], [19, 45, 15, 35, 46, 16], [17, 145, 115, 1, 146, 116], [14, 74, 46, 21, 75, 47], [29, 54, 24, 19, 55, 25], [11, 45, 15, 46, 46, 16], [13, 145, 115, 6, 146, 116], [14, 74, 46, 23, 75, 47], [44, 54, 24, 7, 55, 25], [59, 46, 16, 1, 47, 17], [12, 151, 121, 7, 152, 122], [12, 75, 47, 26, 76, 48], [39, 54, 24, 14, 55, 25], [22, 45, 15, 41, 46, 16], [6, 151, 121, 14, 152, 122], [6, 75, 47, 34, 76, 48], [46, 54, 24, 10, 55, 25], [2, 45, 15, 64, 46, 16], [17, 152, 122, 4, 153, 123], [29, 74, 46, 14, 75, 47], [49, 54, 24, 10, 55, 25], [24, 45, 15, 46, 46, 16], [4, 152, 122, 18, 153, 123], [13, 74, 46, 32, 75, 47], [48, 54, 24, 14, 55, 25], [42, 45, 15, 32, 46, 16], [20, 147, 117, 4, 148, 118], [40, 75, 47, 7, 76, 48], [43, 54, 24, 22, 55, 25], [10, 45, 15, 67, 46, 16], [19, 148, 118, 6, 149, 119], [18, 75, 47, 31, 76, 48], [34, 54, 24, 34, 55, 25], [20, 45, 15, 61, 46, 16]], e4 = function(t10, e5) {
408
408
  var i5 = {};
409
- return i5.totalCount = t9, i5.dataCount = e5, i5;
409
+ return i5.totalCount = t10, i5.dataCount = e5, i5;
410
410
  }, i4 = { getRSBlocks: function(i5, r5) {
411
411
  var n3 = (function(e5, i6) {
412
412
  switch (i6) {
413
413
  case s.L:
414
- return t8[4 * (e5 - 1) + 0];
414
+ return t9[4 * (e5 - 1) + 0];
415
415
  case s.M:
416
- return t8[4 * (e5 - 1) + 1];
416
+ return t9[4 * (e5 - 1) + 1];
417
417
  case s.Q:
418
- return t8[4 * (e5 - 1) + 2];
418
+ return t9[4 * (e5 - 1) + 2];
419
419
  case s.H:
420
- return t8[4 * (e5 - 1) + 3];
420
+ return t9[4 * (e5 - 1) + 3];
421
421
  default:
422
422
  return;
423
423
  }
@@ -428,48 +428,48 @@ var require_qr_code_styling = __commonJS({
428
428
  } };
429
429
  return i4;
430
430
  })(), c = function() {
431
- var t8 = [], e4 = 0, i4 = { getBuffer: function() {
432
- return t8;
431
+ var t9 = [], e4 = 0, i4 = { getBuffer: function() {
432
+ return t9;
433
433
  }, getAt: function(e5) {
434
434
  var i5 = Math.floor(e5 / 8);
435
- return 1 == (t8[i5] >>> 7 - e5 % 8 & 1);
436
- }, put: function(t9, e5) {
437
- for (var r5 = 0; r5 < e5; r5 += 1) i4.putBit(1 == (t9 >>> e5 - r5 - 1 & 1));
435
+ return 1 == (t9[i5] >>> 7 - e5 % 8 & 1);
436
+ }, put: function(t10, e5) {
437
+ for (var r5 = 0; r5 < e5; r5 += 1) i4.putBit(1 == (t10 >>> e5 - r5 - 1 & 1));
438
438
  }, getLengthInBits: function() {
439
439
  return e4;
440
440
  }, putBit: function(i5) {
441
441
  var r5 = Math.floor(e4 / 8);
442
- t8.length <= r5 && t8.push(0), i5 && (t8[r5] |= 128 >>> e4 % 8), e4 += 1;
442
+ t9.length <= r5 && t9.push(0), i5 && (t9[r5] |= 128 >>> e4 % 8), e4 += 1;
443
443
  } };
444
444
  return i4;
445
- }, l = function(t8) {
446
- var e4 = t8, i4 = { getMode: function() {
445
+ }, l = function(t9) {
446
+ var e4 = t9, i4 = { getMode: function() {
447
447
  return 1;
448
- }, getLength: function(t9) {
448
+ }, getLength: function(t10) {
449
449
  return e4.length;
450
- }, write: function(t9) {
451
- for (var i5 = e4, n4 = 0; n4 + 2 < i5.length; ) t9.put(r5(i5.substring(n4, n4 + 3)), 10), n4 += 3;
452
- n4 < i5.length && (i5.length - n4 == 1 ? t9.put(r5(i5.substring(n4, n4 + 1)), 4) : i5.length - n4 == 2 && t9.put(r5(i5.substring(n4, n4 + 2)), 7));
453
- } }, r5 = function(t9) {
454
- for (var e5 = 0, i5 = 0; i5 < t9.length; i5 += 1) e5 = 10 * e5 + n3(t9.charAt(i5));
450
+ }, write: function(t10) {
451
+ for (var i5 = e4, n4 = 0; n4 + 2 < i5.length; ) t10.put(r5(i5.substring(n4, n4 + 3)), 10), n4 += 3;
452
+ n4 < i5.length && (i5.length - n4 == 1 ? t10.put(r5(i5.substring(n4, n4 + 1)), 4) : i5.length - n4 == 2 && t10.put(r5(i5.substring(n4, n4 + 2)), 7));
453
+ } }, r5 = function(t10) {
454
+ for (var e5 = 0, i5 = 0; i5 < t10.length; i5 += 1) e5 = 10 * e5 + n3(t10.charAt(i5));
455
455
  return e5;
456
- }, n3 = function(t9) {
457
- if ("0" <= t9 && t9 <= "9") return t9.charCodeAt(0) - "0".charCodeAt(0);
458
- throw "illegal char :" + t9;
456
+ }, n3 = function(t10) {
457
+ if ("0" <= t10 && t10 <= "9") return t10.charCodeAt(0) - "0".charCodeAt(0);
458
+ throw "illegal char :" + t10;
459
459
  };
460
460
  return i4;
461
- }, g = function(t8) {
462
- var e4 = t8, i4 = { getMode: function() {
461
+ }, g = function(t9) {
462
+ var e4 = t9, i4 = { getMode: function() {
463
463
  return 2;
464
- }, getLength: function(t9) {
464
+ }, getLength: function(t10) {
465
465
  return e4.length;
466
- }, write: function(t9) {
467
- for (var i5 = e4, n3 = 0; n3 + 1 < i5.length; ) t9.put(45 * r5(i5.charAt(n3)) + r5(i5.charAt(n3 + 1)), 11), n3 += 2;
468
- n3 < i5.length && t9.put(r5(i5.charAt(n3)), 6);
469
- } }, r5 = function(t9) {
470
- if ("0" <= t9 && t9 <= "9") return t9.charCodeAt(0) - "0".charCodeAt(0);
471
- if ("A" <= t9 && t9 <= "Z") return t9.charCodeAt(0) - "A".charCodeAt(0) + 10;
472
- switch (t9) {
466
+ }, write: function(t10) {
467
+ for (var i5 = e4, n3 = 0; n3 + 1 < i5.length; ) t10.put(45 * r5(i5.charAt(n3)) + r5(i5.charAt(n3 + 1)), 11), n3 += 2;
468
+ n3 < i5.length && t10.put(r5(i5.charAt(n3)), 6);
469
+ } }, r5 = function(t10) {
470
+ if ("0" <= t10 && t10 <= "9") return t10.charCodeAt(0) - "0".charCodeAt(0);
471
+ if ("A" <= t10 && t10 <= "Z") return t10.charCodeAt(0) - "A".charCodeAt(0) + 10;
472
+ switch (t10) {
473
473
  case " ":
474
474
  return 36;
475
475
  case "$":
@@ -489,31 +489,31 @@ var require_qr_code_styling = __commonJS({
489
489
  case ":":
490
490
  return 44;
491
491
  default:
492
- throw "illegal char :" + t9;
492
+ throw "illegal char :" + t10;
493
493
  }
494
494
  };
495
495
  return i4;
496
496
  }, f = function(e4) {
497
- var i4 = t7.stringToBytes(e4);
497
+ var i4 = t8.stringToBytes(e4);
498
498
  return { getMode: function() {
499
499
  return 4;
500
- }, getLength: function(t8) {
500
+ }, getLength: function(t9) {
501
501
  return i4.length;
502
- }, write: function(t8) {
503
- for (var e5 = 0; e5 < i4.length; e5 += 1) t8.put(i4[e5], 8);
502
+ }, write: function(t9) {
503
+ for (var e5 = 0; e5 < i4.length; e5 += 1) t9.put(i4[e5], 8);
504
504
  } };
505
505
  }, w = function(e4) {
506
- var i4 = t7.stringToBytesFuncs.SJIS;
506
+ var i4 = t8.stringToBytesFuncs.SJIS;
507
507
  if (!i4) throw "sjis not supported.";
508
508
  !(function() {
509
- var t8 = i4("\u53CB");
510
- if (2 != t8.length || 38726 != (t8[0] << 8 | t8[1])) throw "sjis not supported.";
509
+ var t9 = i4("\u53CB");
510
+ if (2 != t9.length || 38726 != (t9[0] << 8 | t9[1])) throw "sjis not supported.";
511
511
  })();
512
512
  var r5 = i4(e4), n3 = { getMode: function() {
513
513
  return 8;
514
- }, getLength: function(t8) {
514
+ }, getLength: function(t9) {
515
515
  return ~~(r5.length / 2);
516
- }, write: function(t8) {
516
+ }, write: function(t9) {
517
517
  for (var e5 = r5, i5 = 0; i5 + 1 < e5.length; ) {
518
518
  var n4 = (255 & e5[i5]) << 8 | 255 & e5[i5 + 1];
519
519
  if (33088 <= n4 && n4 <= 40956) n4 -= 33088;
@@ -521,69 +521,69 @@ var require_qr_code_styling = __commonJS({
521
521
  if (!(57408 <= n4 && n4 <= 60351)) throw "illegal char at " + (i5 + 1) + "/" + n4;
522
522
  n4 -= 49472;
523
523
  }
524
- n4 = 192 * (n4 >>> 8 & 255) + (255 & n4), t8.put(n4, 13), i5 += 2;
524
+ n4 = 192 * (n4 >>> 8 & 255) + (255 & n4), t9.put(n4, 13), i5 += 2;
525
525
  }
526
526
  if (i5 < e5.length) throw "illegal char at " + (i5 + 1);
527
527
  } };
528
528
  return n3;
529
529
  }, p = function() {
530
- var t8 = [], e4 = { writeByte: function(e5) {
531
- t8.push(255 & e5);
532
- }, writeShort: function(t9) {
533
- e4.writeByte(t9), e4.writeByte(t9 >>> 8);
534
- }, writeBytes: function(t9, i4, r5) {
535
- i4 = i4 || 0, r5 = r5 || t9.length;
536
- for (var n3 = 0; n3 < r5; n3 += 1) e4.writeByte(t9[n3 + i4]);
537
- }, writeString: function(t9) {
538
- for (var i4 = 0; i4 < t9.length; i4 += 1) e4.writeByte(t9.charCodeAt(i4));
530
+ var t9 = [], e4 = { writeByte: function(e5) {
531
+ t9.push(255 & e5);
532
+ }, writeShort: function(t10) {
533
+ e4.writeByte(t10), e4.writeByte(t10 >>> 8);
534
+ }, writeBytes: function(t10, i4, r5) {
535
+ i4 = i4 || 0, r5 = r5 || t10.length;
536
+ for (var n3 = 0; n3 < r5; n3 += 1) e4.writeByte(t10[n3 + i4]);
537
+ }, writeString: function(t10) {
538
+ for (var i4 = 0; i4 < t10.length; i4 += 1) e4.writeByte(t10.charCodeAt(i4));
539
539
  }, toByteArray: function() {
540
- return t8;
540
+ return t9;
541
541
  }, toString: function() {
542
542
  var e5 = "";
543
543
  e5 += "[";
544
- for (var i4 = 0; i4 < t8.length; i4 += 1) i4 > 0 && (e5 += ","), e5 += t8[i4];
544
+ for (var i4 = 0; i4 < t9.length; i4 += 1) i4 > 0 && (e5 += ","), e5 += t9[i4];
545
545
  return e5 + "]";
546
546
  } };
547
547
  return e4;
548
- }, v = function(t8) {
549
- var e4 = t8, i4 = 0, r5 = 0, n3 = 0, o2 = { read: function() {
548
+ }, v = function(t9) {
549
+ var e4 = t9, i4 = 0, r5 = 0, n3 = 0, o2 = { read: function() {
550
550
  for (; n3 < 8; ) {
551
551
  if (i4 >= e4.length) {
552
552
  if (0 == n3) return -1;
553
553
  throw "unexpected end of file./" + n3;
554
554
  }
555
- var t9 = e4.charAt(i4);
556
- if (i4 += 1, "=" == t9) return n3 = 0, -1;
557
- t9.match(/^\s$/) || (r5 = r5 << 6 | s2(t9.charCodeAt(0)), n3 += 6);
555
+ var t10 = e4.charAt(i4);
556
+ if (i4 += 1, "=" == t10) return n3 = 0, -1;
557
+ t10.match(/^\s$/) || (r5 = r5 << 6 | s2(t10.charCodeAt(0)), n3 += 6);
558
558
  }
559
559
  var o3 = r5 >>> n3 - 8 & 255;
560
560
  return n3 -= 8, o3;
561
- } }, s2 = function(t9) {
562
- if (65 <= t9 && t9 <= 90) return t9 - 65;
563
- if (97 <= t9 && t9 <= 122) return t9 - 97 + 26;
564
- if (48 <= t9 && t9 <= 57) return t9 - 48 + 52;
565
- if (43 == t9) return 62;
566
- if (47 == t9) return 63;
567
- throw "c:" + t9;
561
+ } }, s2 = function(t10) {
562
+ if (65 <= t10 && t10 <= 90) return t10 - 65;
563
+ if (97 <= t10 && t10 <= 122) return t10 - 97 + 26;
564
+ if (48 <= t10 && t10 <= 57) return t10 - 48 + 52;
565
+ if (43 == t10) return 62;
566
+ if (47 == t10) return 63;
567
+ throw "c:" + t10;
568
568
  };
569
569
  return o2;
570
- }, _ = function(t8, e4, i4) {
571
- for (var r5 = (function(t9, e5) {
572
- var i5 = t9, r6 = e5, n4 = new Array(t9 * e5), o3 = { setPixel: function(t10, e6, r7) {
573
- n4[e6 * i5 + t10] = r7;
574
- }, write: function(t10) {
575
- t10.writeString("GIF87a"), t10.writeShort(i5), t10.writeShort(r6), t10.writeByte(128), t10.writeByte(0), t10.writeByte(0), t10.writeByte(0), t10.writeByte(0), t10.writeByte(0), t10.writeByte(255), t10.writeByte(255), t10.writeByte(255), t10.writeString(","), t10.writeShort(0), t10.writeShort(0), t10.writeShort(i5), t10.writeShort(r6), t10.writeByte(0);
570
+ }, _ = function(t9, e4, i4) {
571
+ for (var r5 = (function(t10, e5) {
572
+ var i5 = t10, r6 = e5, n4 = new Array(t10 * e5), o3 = { setPixel: function(t11, e6, r7) {
573
+ n4[e6 * i5 + t11] = r7;
574
+ }, write: function(t11) {
575
+ t11.writeString("GIF87a"), t11.writeShort(i5), t11.writeShort(r6), t11.writeByte(128), t11.writeByte(0), t11.writeByte(0), t11.writeByte(0), t11.writeByte(0), t11.writeByte(0), t11.writeByte(255), t11.writeByte(255), t11.writeByte(255), t11.writeString(","), t11.writeShort(0), t11.writeShort(0), t11.writeShort(i5), t11.writeShort(r6), t11.writeByte(0);
576
576
  var e6 = s3(2);
577
- t10.writeByte(2);
578
- for (var n5 = 0; e6.length - n5 > 255; ) t10.writeByte(255), t10.writeBytes(e6, n5, 255), n5 += 255;
579
- t10.writeByte(e6.length - n5), t10.writeBytes(e6, n5, e6.length - n5), t10.writeByte(0), t10.writeString(";");
580
- } }, s3 = function(t10) {
581
- for (var e6 = 1 << t10, i6 = 1 + (1 << t10), r7 = t10 + 1, o4 = a3(), s4 = 0; s4 < e6; s4 += 1) o4.add(String.fromCharCode(s4));
577
+ t11.writeByte(2);
578
+ for (var n5 = 0; e6.length - n5 > 255; ) t11.writeByte(255), t11.writeBytes(e6, n5, 255), n5 += 255;
579
+ t11.writeByte(e6.length - n5), t11.writeBytes(e6, n5, e6.length - n5), t11.writeByte(0), t11.writeString(";");
580
+ } }, s3 = function(t11) {
581
+ for (var e6 = 1 << t11, i6 = 1 + (1 << t11), r7 = t11 + 1, o4 = a3(), s4 = 0; s4 < e6; s4 += 1) o4.add(String.fromCharCode(s4));
582
582
  o4.add(String.fromCharCode(e6)), o4.add(String.fromCharCode(i6));
583
- var h3, d3, u2, c2 = p(), l2 = (h3 = c2, d3 = 0, u2 = 0, { write: function(t11, e7) {
584
- if (t11 >>> e7 != 0) throw "length over";
585
- for (; d3 + e7 >= 8; ) h3.writeByte(255 & (t11 << d3 | u2)), e7 -= 8 - d3, t11 >>>= 8 - d3, u2 = 0, d3 = 0;
586
- u2 |= t11 << d3, d3 += e7;
583
+ var h3, d3, u2, c2 = p(), l2 = (h3 = c2, d3 = 0, u2 = 0, { write: function(t12, e7) {
584
+ if (t12 >>> e7 != 0) throw "length over";
585
+ for (; d3 + e7 >= 8; ) h3.writeByte(255 & (t12 << d3 | u2)), e7 -= 8 - d3, t12 >>>= 8 - d3, u2 = 0, d3 = 0;
586
+ u2 |= t12 << d3, d3 += e7;
587
587
  }, flush: function() {
588
588
  d3 > 0 && h3.writeByte(u2);
589
589
  } });
@@ -595,95 +595,95 @@ var require_qr_code_styling = __commonJS({
595
595
  }
596
596
  return l2.write(o4.indexOf(f2), r7), l2.write(i6, r7), l2.flush(), c2.toByteArray();
597
597
  }, a3 = function() {
598
- var t10 = {}, e6 = 0, i6 = { add: function(r7) {
598
+ var t11 = {}, e6 = 0, i6 = { add: function(r7) {
599
599
  if (i6.contains(r7)) throw "dup key:" + r7;
600
- t10[r7] = e6, e6 += 1;
600
+ t11[r7] = e6, e6 += 1;
601
601
  }, size: function() {
602
602
  return e6;
603
603
  }, indexOf: function(e7) {
604
- return t10[e7];
604
+ return t11[e7];
605
605
  }, contains: function(e7) {
606
- return void 0 !== t10[e7];
606
+ return void 0 !== t11[e7];
607
607
  } };
608
608
  return i6;
609
609
  };
610
610
  return o3;
611
- })(t8, e4), n3 = 0; n3 < e4; n3 += 1) for (var o2 = 0; o2 < t8; o2 += 1) r5.setPixel(o2, n3, i4(o2, n3));
611
+ })(t9, e4), n3 = 0; n3 < e4; n3 += 1) for (var o2 = 0; o2 < t9; o2 += 1) r5.setPixel(o2, n3, i4(o2, n3));
612
612
  var s2 = p();
613
613
  r5.write(s2);
614
614
  for (var a2 = (function() {
615
- var t9 = 0, e5 = 0, i5 = 0, r6 = "", n4 = {}, o3 = function(t10) {
616
- r6 += String.fromCharCode(s3(63 & t10));
617
- }, s3 = function(t10) {
618
- if (t10 < 0) ;
615
+ var t10 = 0, e5 = 0, i5 = 0, r6 = "", n4 = {}, o3 = function(t11) {
616
+ r6 += String.fromCharCode(s3(63 & t11));
617
+ }, s3 = function(t11) {
618
+ if (t11 < 0) ;
619
619
  else {
620
- if (t10 < 26) return 65 + t10;
621
- if (t10 < 52) return t10 - 26 + 97;
622
- if (t10 < 62) return t10 - 52 + 48;
623
- if (62 == t10) return 43;
624
- if (63 == t10) return 47;
620
+ if (t11 < 26) return 65 + t11;
621
+ if (t11 < 52) return t11 - 26 + 97;
622
+ if (t11 < 62) return t11 - 52 + 48;
623
+ if (62 == t11) return 43;
624
+ if (63 == t11) return 47;
625
625
  }
626
- throw "n:" + t10;
626
+ throw "n:" + t11;
627
627
  };
628
628
  return n4.writeByte = function(r7) {
629
- for (t9 = t9 << 8 | 255 & r7, e5 += 8, i5 += 1; e5 >= 6; ) o3(t9 >>> e5 - 6), e5 -= 6;
629
+ for (t10 = t10 << 8 | 255 & r7, e5 += 8, i5 += 1; e5 >= 6; ) o3(t10 >>> e5 - 6), e5 -= 6;
630
630
  }, n4.flush = function() {
631
- if (e5 > 0 && (o3(t9 << 6 - e5), t9 = 0, e5 = 0), i5 % 3 != 0) for (var n5 = 3 - i5 % 3, s4 = 0; s4 < n5; s4 += 1) r6 += "=";
631
+ if (e5 > 0 && (o3(t10 << 6 - e5), t10 = 0, e5 = 0), i5 % 3 != 0) for (var n5 = 3 - i5 % 3, s4 = 0; s4 < n5; s4 += 1) r6 += "=";
632
632
  }, n4.toString = function() {
633
633
  return r6;
634
634
  }, n4;
635
635
  })(), h2 = s2.toByteArray(), d2 = 0; d2 < h2.length; d2 += 1) a2.writeByte(h2[d2]);
636
636
  return a2.flush(), "data:image/gif;base64," + a2;
637
637
  };
638
- return t7;
638
+ return t8;
639
639
  })();
640
- n.stringToBytesFuncs["UTF-8"] = function(t7) {
641
- return (function(t8) {
642
- for (var e3 = [], i3 = 0; i3 < t8.length; i3++) {
643
- var r4 = t8.charCodeAt(i3);
644
- r4 < 128 ? e3.push(r4) : r4 < 2048 ? e3.push(192 | r4 >> 6, 128 | 63 & r4) : r4 < 55296 || r4 >= 57344 ? e3.push(224 | r4 >> 12, 128 | r4 >> 6 & 63, 128 | 63 & r4) : (i3++, r4 = 65536 + ((1023 & r4) << 10 | 1023 & t8.charCodeAt(i3)), e3.push(240 | r4 >> 18, 128 | r4 >> 12 & 63, 128 | r4 >> 6 & 63, 128 | 63 & r4));
640
+ n.stringToBytesFuncs["UTF-8"] = function(t8) {
641
+ return (function(t9) {
642
+ for (var e3 = [], i3 = 0; i3 < t9.length; i3++) {
643
+ var r4 = t9.charCodeAt(i3);
644
+ r4 < 128 ? e3.push(r4) : r4 < 2048 ? e3.push(192 | r4 >> 6, 128 | 63 & r4) : r4 < 55296 || r4 >= 57344 ? e3.push(224 | r4 >> 12, 128 | r4 >> 6 & 63, 128 | 63 & r4) : (i3++, r4 = 65536 + ((1023 & r4) << 10 | 1023 & t9.charCodeAt(i3)), e3.push(240 | r4 >> 18, 128 | r4 >> 12 & 63, 128 | r4 >> 6 & 63, 128 | 63 & r4));
645
645
  }
646
646
  return e3;
647
- })(t7);
647
+ })(t8);
648
648
  }, void 0 === (r3 = "function" == typeof (i2 = function() {
649
649
  return n;
650
- }) ? i2.apply(e2, []) : i2) || (t6.exports = r3);
650
+ }) ? i2.apply(e2, []) : i2) || (t7.exports = r3);
651
651
  } }, e = {};
652
652
  function i(r3) {
653
653
  var n = e[r3];
654
654
  if (void 0 !== n) return n.exports;
655
655
  var o = e[r3] = { exports: {} };
656
- return t5[r3](o, o.exports, i), o.exports;
656
+ return t6[r3](o, o.exports, i), o.exports;
657
657
  }
658
- i.n = (t6) => {
659
- var e2 = t6 && t6.__esModule ? () => t6.default : () => t6;
658
+ i.n = (t7) => {
659
+ var e2 = t7 && t7.__esModule ? () => t7.default : () => t7;
660
660
  return i.d(e2, { a: e2 }), e2;
661
- }, i.d = (t6, e2) => {
662
- for (var r3 in e2) i.o(e2, r3) && !i.o(t6, r3) && Object.defineProperty(t6, r3, { enumerable: true, get: e2[r3] });
663
- }, i.o = (t6, e2) => Object.prototype.hasOwnProperty.call(t6, e2);
661
+ }, i.d = (t7, e2) => {
662
+ for (var r3 in e2) i.o(e2, r3) && !i.o(t7, r3) && Object.defineProperty(t7, r3, { enumerable: true, get: e2[r3] });
663
+ }, i.o = (t7, e2) => Object.prototype.hasOwnProperty.call(t7, e2);
664
664
  var r2 = {};
665
665
  return (() => {
666
666
  "use strict";
667
667
  i.d(r2, { default: () => $ });
668
- const t6 = (t7) => !!t7 && "object" == typeof t7 && !Array.isArray(t7);
668
+ const t7 = (t8) => !!t8 && "object" == typeof t8 && !Array.isArray(t8);
669
669
  function e2(i2, ...r3) {
670
670
  if (!r3.length) return i2;
671
671
  const n2 = r3.shift();
672
- return void 0 !== n2 && t6(i2) && t6(n2) ? (i2 = Object.assign({}, i2), Object.keys(n2).forEach(((r4) => {
672
+ return void 0 !== n2 && t7(i2) && t7(n2) ? (i2 = Object.assign({}, i2), Object.keys(n2).forEach(((r4) => {
673
673
  const o2 = i2[r4], s2 = n2[r4];
674
- Array.isArray(o2) && Array.isArray(s2) ? i2[r4] = s2 : t6(o2) && t6(s2) ? i2[r4] = e2(Object.assign({}, o2), s2) : i2[r4] = s2;
674
+ Array.isArray(o2) && Array.isArray(s2) ? i2[r4] = s2 : t7(o2) && t7(s2) ? i2[r4] = e2(Object.assign({}, o2), s2) : i2[r4] = s2;
675
675
  })), e2(i2, ...r3)) : i2;
676
676
  }
677
- function n(t7, e3) {
677
+ function n(t8, e3) {
678
678
  const i2 = document.createElement("a");
679
- i2.download = e3, i2.href = t7, document.body.appendChild(i2), i2.click(), document.body.removeChild(i2);
679
+ i2.download = e3, i2.href = t8, document.body.appendChild(i2), i2.click(), document.body.removeChild(i2);
680
680
  }
681
681
  const o = { L: 0.07, M: 0.15, Q: 0.25, H: 0.3 };
682
682
  class s {
683
- constructor({ svg: t7, type: e3, window: i2 }) {
684
- this._svg = t7, this._type = e3, this._window = i2;
683
+ constructor({ svg: t8, type: e3, window: i2 }) {
684
+ this._svg = t8, this._type = e3, this._window = i2;
685
685
  }
686
- draw(t7, e3, i2, r3) {
686
+ draw(t8, e3, i2, r3) {
687
687
  let n2;
688
688
  switch (this._type) {
689
689
  case "dots":
@@ -704,100 +704,100 @@ var require_qr_code_styling = __commonJS({
704
704
  default:
705
705
  n2 = this._drawSquare;
706
706
  }
707
- n2.call(this, { x: t7, y: e3, size: i2, getNeighbor: r3 });
707
+ n2.call(this, { x: t8, y: e3, size: i2, getNeighbor: r3 });
708
708
  }
709
- _rotateFigure({ x: t7, y: e3, size: i2, rotation: r3 = 0, draw: n2 }) {
709
+ _rotateFigure({ x: t8, y: e3, size: i2, rotation: r3 = 0, draw: n2 }) {
710
710
  var o2;
711
- const s2 = t7 + i2 / 2, a2 = e3 + i2 / 2;
711
+ const s2 = t8 + i2 / 2, a2 = e3 + i2 / 2;
712
712
  n2(), null === (o2 = this._element) || void 0 === o2 || o2.setAttribute("transform", `rotate(${180 * r3 / Math.PI},${s2},${a2})`);
713
713
  }
714
- _basicDot(t7) {
715
- const { size: e3, x: i2, y: r3 } = t7;
716
- this._rotateFigure(Object.assign(Object.assign({}, t7), { draw: () => {
714
+ _basicDot(t8) {
715
+ const { size: e3, x: i2, y: r3 } = t8;
716
+ this._rotateFigure(Object.assign(Object.assign({}, t8), { draw: () => {
717
717
  this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "circle"), this._element.setAttribute("cx", String(i2 + e3 / 2)), this._element.setAttribute("cy", String(r3 + e3 / 2)), this._element.setAttribute("r", String(e3 / 2));
718
718
  } }));
719
719
  }
720
- _basicSquare(t7) {
721
- const { size: e3, x: i2, y: r3 } = t7;
722
- this._rotateFigure(Object.assign(Object.assign({}, t7), { draw: () => {
720
+ _basicSquare(t8) {
721
+ const { size: e3, x: i2, y: r3 } = t8;
722
+ this._rotateFigure(Object.assign(Object.assign({}, t8), { draw: () => {
723
723
  this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "rect"), this._element.setAttribute("x", String(i2)), this._element.setAttribute("y", String(r3)), this._element.setAttribute("width", String(e3)), this._element.setAttribute("height", String(e3));
724
724
  } }));
725
725
  }
726
- _basicSideRounded(t7) {
727
- const { size: e3, x: i2, y: r3 } = t7;
728
- this._rotateFigure(Object.assign(Object.assign({}, t7), { draw: () => {
726
+ _basicSideRounded(t8) {
727
+ const { size: e3, x: i2, y: r3 } = t8;
728
+ this._rotateFigure(Object.assign(Object.assign({}, t8), { draw: () => {
729
729
  this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "path"), this._element.setAttribute("d", `M ${i2} ${r3}v ${e3}h ` + e3 / 2 + `a ${e3 / 2} ${e3 / 2}, 0, 0, 0, 0 ${-e3}`);
730
730
  } }));
731
731
  }
732
- _basicCornerRounded(t7) {
733
- const { size: e3, x: i2, y: r3 } = t7;
734
- this._rotateFigure(Object.assign(Object.assign({}, t7), { draw: () => {
732
+ _basicCornerRounded(t8) {
733
+ const { size: e3, x: i2, y: r3 } = t8;
734
+ this._rotateFigure(Object.assign(Object.assign({}, t8), { draw: () => {
735
735
  this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "path"), this._element.setAttribute("d", `M ${i2} ${r3}v ${e3}h ${e3}v ` + -e3 / 2 + `a ${e3 / 2} ${e3 / 2}, 0, 0, 0, ${-e3 / 2} ${-e3 / 2}`);
736
736
  } }));
737
737
  }
738
- _basicCornerExtraRounded(t7) {
739
- const { size: e3, x: i2, y: r3 } = t7;
740
- this._rotateFigure(Object.assign(Object.assign({}, t7), { draw: () => {
738
+ _basicCornerExtraRounded(t8) {
739
+ const { size: e3, x: i2, y: r3 } = t8;
740
+ this._rotateFigure(Object.assign(Object.assign({}, t8), { draw: () => {
741
741
  this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "path"), this._element.setAttribute("d", `M ${i2} ${r3}v ${e3}h ${e3}a ${e3} ${e3}, 0, 0, 0, ${-e3} ${-e3}`);
742
742
  } }));
743
743
  }
744
- _basicCornersRounded(t7) {
745
- const { size: e3, x: i2, y: r3 } = t7;
746
- this._rotateFigure(Object.assign(Object.assign({}, t7), { draw: () => {
744
+ _basicCornersRounded(t8) {
745
+ const { size: e3, x: i2, y: r3 } = t8;
746
+ this._rotateFigure(Object.assign(Object.assign({}, t8), { draw: () => {
747
747
  this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "path"), this._element.setAttribute("d", `M ${i2} ${r3}v ` + e3 / 2 + `a ${e3 / 2} ${e3 / 2}, 0, 0, 0, ${e3 / 2} ${e3 / 2}h ` + e3 / 2 + "v " + -e3 / 2 + `a ${e3 / 2} ${e3 / 2}, 0, 0, 0, ${-e3 / 2} ${-e3 / 2}`);
748
748
  } }));
749
749
  }
750
- _drawDot({ x: t7, y: e3, size: i2 }) {
751
- this._basicDot({ x: t7, y: e3, size: i2, rotation: 0 });
750
+ _drawDot({ x: t8, y: e3, size: i2 }) {
751
+ this._basicDot({ x: t8, y: e3, size: i2, rotation: 0 });
752
752
  }
753
- _drawSquare({ x: t7, y: e3, size: i2 }) {
754
- this._basicSquare({ x: t7, y: e3, size: i2, rotation: 0 });
753
+ _drawSquare({ x: t8, y: e3, size: i2 }) {
754
+ this._basicSquare({ x: t8, y: e3, size: i2, rotation: 0 });
755
755
  }
756
- _drawRounded({ x: t7, y: e3, size: i2, getNeighbor: r3 }) {
756
+ _drawRounded({ x: t8, y: e3, size: i2, getNeighbor: r3 }) {
757
757
  const n2 = r3 ? +r3(-1, 0) : 0, o2 = r3 ? +r3(1, 0) : 0, s2 = r3 ? +r3(0, -1) : 0, a2 = r3 ? +r3(0, 1) : 0, h2 = n2 + o2 + s2 + a2;
758
- if (0 !== h2) if (h2 > 2 || n2 && o2 || s2 && a2) this._basicSquare({ x: t7, y: e3, size: i2, rotation: 0 });
758
+ if (0 !== h2) if (h2 > 2 || n2 && o2 || s2 && a2) this._basicSquare({ x: t8, y: e3, size: i2, rotation: 0 });
759
759
  else {
760
760
  if (2 === h2) {
761
761
  let r4 = 0;
762
- return n2 && s2 ? r4 = Math.PI / 2 : s2 && o2 ? r4 = Math.PI : o2 && a2 && (r4 = -Math.PI / 2), void this._basicCornerRounded({ x: t7, y: e3, size: i2, rotation: r4 });
762
+ return n2 && s2 ? r4 = Math.PI / 2 : s2 && o2 ? r4 = Math.PI : o2 && a2 && (r4 = -Math.PI / 2), void this._basicCornerRounded({ x: t8, y: e3, size: i2, rotation: r4 });
763
763
  }
764
764
  if (1 === h2) {
765
765
  let r4 = 0;
766
- return s2 ? r4 = Math.PI / 2 : o2 ? r4 = Math.PI : a2 && (r4 = -Math.PI / 2), void this._basicSideRounded({ x: t7, y: e3, size: i2, rotation: r4 });
766
+ return s2 ? r4 = Math.PI / 2 : o2 ? r4 = Math.PI : a2 && (r4 = -Math.PI / 2), void this._basicSideRounded({ x: t8, y: e3, size: i2, rotation: r4 });
767
767
  }
768
768
  }
769
- else this._basicDot({ x: t7, y: e3, size: i2, rotation: 0 });
769
+ else this._basicDot({ x: t8, y: e3, size: i2, rotation: 0 });
770
770
  }
771
- _drawExtraRounded({ x: t7, y: e3, size: i2, getNeighbor: r3 }) {
771
+ _drawExtraRounded({ x: t8, y: e3, size: i2, getNeighbor: r3 }) {
772
772
  const n2 = r3 ? +r3(-1, 0) : 0, o2 = r3 ? +r3(1, 0) : 0, s2 = r3 ? +r3(0, -1) : 0, a2 = r3 ? +r3(0, 1) : 0, h2 = n2 + o2 + s2 + a2;
773
- if (0 !== h2) if (h2 > 2 || n2 && o2 || s2 && a2) this._basicSquare({ x: t7, y: e3, size: i2, rotation: 0 });
773
+ if (0 !== h2) if (h2 > 2 || n2 && o2 || s2 && a2) this._basicSquare({ x: t8, y: e3, size: i2, rotation: 0 });
774
774
  else {
775
775
  if (2 === h2) {
776
776
  let r4 = 0;
777
- return n2 && s2 ? r4 = Math.PI / 2 : s2 && o2 ? r4 = Math.PI : o2 && a2 && (r4 = -Math.PI / 2), void this._basicCornerExtraRounded({ x: t7, y: e3, size: i2, rotation: r4 });
777
+ return n2 && s2 ? r4 = Math.PI / 2 : s2 && o2 ? r4 = Math.PI : o2 && a2 && (r4 = -Math.PI / 2), void this._basicCornerExtraRounded({ x: t8, y: e3, size: i2, rotation: r4 });
778
778
  }
779
779
  if (1 === h2) {
780
780
  let r4 = 0;
781
- return s2 ? r4 = Math.PI / 2 : o2 ? r4 = Math.PI : a2 && (r4 = -Math.PI / 2), void this._basicSideRounded({ x: t7, y: e3, size: i2, rotation: r4 });
781
+ return s2 ? r4 = Math.PI / 2 : o2 ? r4 = Math.PI : a2 && (r4 = -Math.PI / 2), void this._basicSideRounded({ x: t8, y: e3, size: i2, rotation: r4 });
782
782
  }
783
783
  }
784
- else this._basicDot({ x: t7, y: e3, size: i2, rotation: 0 });
784
+ else this._basicDot({ x: t8, y: e3, size: i2, rotation: 0 });
785
785
  }
786
- _drawClassy({ x: t7, y: e3, size: i2, getNeighbor: r3 }) {
786
+ _drawClassy({ x: t8, y: e3, size: i2, getNeighbor: r3 }) {
787
787
  const n2 = r3 ? +r3(-1, 0) : 0, o2 = r3 ? +r3(1, 0) : 0, s2 = r3 ? +r3(0, -1) : 0, a2 = r3 ? +r3(0, 1) : 0;
788
- 0 !== n2 + o2 + s2 + a2 ? n2 || s2 ? o2 || a2 ? this._basicSquare({ x: t7, y: e3, size: i2, rotation: 0 }) : this._basicCornerRounded({ x: t7, y: e3, size: i2, rotation: Math.PI / 2 }) : this._basicCornerRounded({ x: t7, y: e3, size: i2, rotation: -Math.PI / 2 }) : this._basicCornersRounded({ x: t7, y: e3, size: i2, rotation: Math.PI / 2 });
788
+ 0 !== n2 + o2 + s2 + a2 ? n2 || s2 ? o2 || a2 ? this._basicSquare({ x: t8, y: e3, size: i2, rotation: 0 }) : this._basicCornerRounded({ x: t8, y: e3, size: i2, rotation: Math.PI / 2 }) : this._basicCornerRounded({ x: t8, y: e3, size: i2, rotation: -Math.PI / 2 }) : this._basicCornersRounded({ x: t8, y: e3, size: i2, rotation: Math.PI / 2 });
789
789
  }
790
- _drawClassyRounded({ x: t7, y: e3, size: i2, getNeighbor: r3 }) {
790
+ _drawClassyRounded({ x: t8, y: e3, size: i2, getNeighbor: r3 }) {
791
791
  const n2 = r3 ? +r3(-1, 0) : 0, o2 = r3 ? +r3(1, 0) : 0, s2 = r3 ? +r3(0, -1) : 0, a2 = r3 ? +r3(0, 1) : 0;
792
- 0 !== n2 + o2 + s2 + a2 ? n2 || s2 ? o2 || a2 ? this._basicSquare({ x: t7, y: e3, size: i2, rotation: 0 }) : this._basicCornerExtraRounded({ x: t7, y: e3, size: i2, rotation: Math.PI / 2 }) : this._basicCornerExtraRounded({ x: t7, y: e3, size: i2, rotation: -Math.PI / 2 }) : this._basicCornersRounded({ x: t7, y: e3, size: i2, rotation: Math.PI / 2 });
792
+ 0 !== n2 + o2 + s2 + a2 ? n2 || s2 ? o2 || a2 ? this._basicSquare({ x: t8, y: e3, size: i2, rotation: 0 }) : this._basicCornerExtraRounded({ x: t8, y: e3, size: i2, rotation: Math.PI / 2 }) : this._basicCornerExtraRounded({ x: t8, y: e3, size: i2, rotation: -Math.PI / 2 }) : this._basicCornersRounded({ x: t8, y: e3, size: i2, rotation: Math.PI / 2 });
793
793
  }
794
794
  }
795
795
  const a = { dot: "dot", square: "square", extraRounded: "extra-rounded" }, h = Object.values(a);
796
796
  class d {
797
- constructor({ svg: t7, type: e3, window: i2 }) {
798
- this._svg = t7, this._type = e3, this._window = i2;
797
+ constructor({ svg: t8, type: e3, window: i2 }) {
798
+ this._svg = t8, this._type = e3, this._window = i2;
799
799
  }
800
- draw(t7, e3, i2, r3) {
800
+ draw(t8, e3, i2, r3) {
801
801
  let n2;
802
802
  switch (this._type) {
803
803
  case a.square:
@@ -809,78 +809,78 @@ var require_qr_code_styling = __commonJS({
809
809
  default:
810
810
  n2 = this._drawDot;
811
811
  }
812
- n2.call(this, { x: t7, y: e3, size: i2, rotation: r3 });
812
+ n2.call(this, { x: t8, y: e3, size: i2, rotation: r3 });
813
813
  }
814
- _rotateFigure({ x: t7, y: e3, size: i2, rotation: r3 = 0, draw: n2 }) {
814
+ _rotateFigure({ x: t8, y: e3, size: i2, rotation: r3 = 0, draw: n2 }) {
815
815
  var o2;
816
- const s2 = t7 + i2 / 2, a2 = e3 + i2 / 2;
816
+ const s2 = t8 + i2 / 2, a2 = e3 + i2 / 2;
817
817
  n2(), null === (o2 = this._element) || void 0 === o2 || o2.setAttribute("transform", `rotate(${180 * r3 / Math.PI},${s2},${a2})`);
818
818
  }
819
- _basicDot(t7) {
820
- const { size: e3, x: i2, y: r3 } = t7, n2 = e3 / 7;
821
- this._rotateFigure(Object.assign(Object.assign({}, t7), { draw: () => {
819
+ _basicDot(t8) {
820
+ const { size: e3, x: i2, y: r3 } = t8, n2 = e3 / 7;
821
+ this._rotateFigure(Object.assign(Object.assign({}, t8), { draw: () => {
822
822
  this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "path"), this._element.setAttribute("clip-rule", "evenodd"), this._element.setAttribute("d", `M ${i2 + e3 / 2} ${r3}a ${e3 / 2} ${e3 / 2} 0 1 0 0.1 0zm 0 ${n2}a ${e3 / 2 - n2} ${e3 / 2 - n2} 0 1 1 -0.1 0Z`);
823
823
  } }));
824
824
  }
825
- _basicSquare(t7) {
826
- const { size: e3, x: i2, y: r3 } = t7, n2 = e3 / 7;
827
- this._rotateFigure(Object.assign(Object.assign({}, t7), { draw: () => {
825
+ _basicSquare(t8) {
826
+ const { size: e3, x: i2, y: r3 } = t8, n2 = e3 / 7;
827
+ this._rotateFigure(Object.assign(Object.assign({}, t8), { draw: () => {
828
828
  this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "path"), this._element.setAttribute("clip-rule", "evenodd"), this._element.setAttribute("d", `M ${i2} ${r3}v ${e3}h ${e3}v ` + -e3 + `zM ${i2 + n2} ${r3 + n2}h ` + (e3 - 2 * n2) + "v " + (e3 - 2 * n2) + "h " + (2 * n2 - e3) + "z");
829
829
  } }));
830
830
  }
831
- _basicExtraRounded(t7) {
832
- const { size: e3, x: i2, y: r3 } = t7, n2 = e3 / 7;
833
- this._rotateFigure(Object.assign(Object.assign({}, t7), { draw: () => {
831
+ _basicExtraRounded(t8) {
832
+ const { size: e3, x: i2, y: r3 } = t8, n2 = e3 / 7;
833
+ this._rotateFigure(Object.assign(Object.assign({}, t8), { draw: () => {
834
834
  this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "path"), this._element.setAttribute("clip-rule", "evenodd"), this._element.setAttribute("d", `M ${i2} ${r3 + 2.5 * n2}v ` + 2 * n2 + `a ${2.5 * n2} ${2.5 * n2}, 0, 0, 0, ${2.5 * n2} ${2.5 * n2}h ` + 2 * n2 + `a ${2.5 * n2} ${2.5 * n2}, 0, 0, 0, ${2.5 * n2} ${2.5 * -n2}v ` + -2 * n2 + `a ${2.5 * n2} ${2.5 * n2}, 0, 0, 0, ${2.5 * -n2} ${2.5 * -n2}h ` + -2 * n2 + `a ${2.5 * n2} ${2.5 * n2}, 0, 0, 0, ${2.5 * -n2} ${2.5 * n2}M ${i2 + 2.5 * n2} ${r3 + n2}h ` + 2 * n2 + `a ${1.5 * n2} ${1.5 * n2}, 0, 0, 1, ${1.5 * n2} ${1.5 * n2}v ` + 2 * n2 + `a ${1.5 * n2} ${1.5 * n2}, 0, 0, 1, ${1.5 * -n2} ${1.5 * n2}h ` + -2 * n2 + `a ${1.5 * n2} ${1.5 * n2}, 0, 0, 1, ${1.5 * -n2} ${1.5 * -n2}v ` + -2 * n2 + `a ${1.5 * n2} ${1.5 * n2}, 0, 0, 1, ${1.5 * n2} ${1.5 * -n2}`);
835
835
  } }));
836
836
  }
837
- _drawDot({ x: t7, y: e3, size: i2, rotation: r3 }) {
838
- this._basicDot({ x: t7, y: e3, size: i2, rotation: r3 });
837
+ _drawDot({ x: t8, y: e3, size: i2, rotation: r3 }) {
838
+ this._basicDot({ x: t8, y: e3, size: i2, rotation: r3 });
839
839
  }
840
- _drawSquare({ x: t7, y: e3, size: i2, rotation: r3 }) {
841
- this._basicSquare({ x: t7, y: e3, size: i2, rotation: r3 });
840
+ _drawSquare({ x: t8, y: e3, size: i2, rotation: r3 }) {
841
+ this._basicSquare({ x: t8, y: e3, size: i2, rotation: r3 });
842
842
  }
843
- _drawExtraRounded({ x: t7, y: e3, size: i2, rotation: r3 }) {
844
- this._basicExtraRounded({ x: t7, y: e3, size: i2, rotation: r3 });
843
+ _drawExtraRounded({ x: t8, y: e3, size: i2, rotation: r3 }) {
844
+ this._basicExtraRounded({ x: t8, y: e3, size: i2, rotation: r3 });
845
845
  }
846
846
  }
847
847
  const u = { dot: "dot", square: "square" }, c = Object.values(u);
848
848
  class l {
849
- constructor({ svg: t7, type: e3, window: i2 }) {
850
- this._svg = t7, this._type = e3, this._window = i2;
849
+ constructor({ svg: t8, type: e3, window: i2 }) {
850
+ this._svg = t8, this._type = e3, this._window = i2;
851
851
  }
852
- draw(t7, e3, i2, r3) {
852
+ draw(t8, e3, i2, r3) {
853
853
  let n2;
854
- n2 = this._type === u.square ? this._drawSquare : this._drawDot, n2.call(this, { x: t7, y: e3, size: i2, rotation: r3 });
854
+ n2 = this._type === u.square ? this._drawSquare : this._drawDot, n2.call(this, { x: t8, y: e3, size: i2, rotation: r3 });
855
855
  }
856
- _rotateFigure({ x: t7, y: e3, size: i2, rotation: r3 = 0, draw: n2 }) {
856
+ _rotateFigure({ x: t8, y: e3, size: i2, rotation: r3 = 0, draw: n2 }) {
857
857
  var o2;
858
- const s2 = t7 + i2 / 2, a2 = e3 + i2 / 2;
858
+ const s2 = t8 + i2 / 2, a2 = e3 + i2 / 2;
859
859
  n2(), null === (o2 = this._element) || void 0 === o2 || o2.setAttribute("transform", `rotate(${180 * r3 / Math.PI},${s2},${a2})`);
860
860
  }
861
- _basicDot(t7) {
862
- const { size: e3, x: i2, y: r3 } = t7;
863
- this._rotateFigure(Object.assign(Object.assign({}, t7), { draw: () => {
861
+ _basicDot(t8) {
862
+ const { size: e3, x: i2, y: r3 } = t8;
863
+ this._rotateFigure(Object.assign(Object.assign({}, t8), { draw: () => {
864
864
  this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "circle"), this._element.setAttribute("cx", String(i2 + e3 / 2)), this._element.setAttribute("cy", String(r3 + e3 / 2)), this._element.setAttribute("r", String(e3 / 2));
865
865
  } }));
866
866
  }
867
- _basicSquare(t7) {
868
- const { size: e3, x: i2, y: r3 } = t7;
869
- this._rotateFigure(Object.assign(Object.assign({}, t7), { draw: () => {
867
+ _basicSquare(t8) {
868
+ const { size: e3, x: i2, y: r3 } = t8;
869
+ this._rotateFigure(Object.assign(Object.assign({}, t8), { draw: () => {
870
870
  this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "rect"), this._element.setAttribute("x", String(i2)), this._element.setAttribute("y", String(r3)), this._element.setAttribute("width", String(e3)), this._element.setAttribute("height", String(e3));
871
871
  } }));
872
872
  }
873
- _drawDot({ x: t7, y: e3, size: i2, rotation: r3 }) {
874
- this._basicDot({ x: t7, y: e3, size: i2, rotation: r3 });
873
+ _drawDot({ x: t8, y: e3, size: i2, rotation: r3 }) {
874
+ this._basicDot({ x: t8, y: e3, size: i2, rotation: r3 });
875
875
  }
876
- _drawSquare({ x: t7, y: e3, size: i2, rotation: r3 }) {
877
- this._basicSquare({ x: t7, y: e3, size: i2, rotation: r3 });
876
+ _drawSquare({ x: t8, y: e3, size: i2, rotation: r3 }) {
877
+ this._basicSquare({ x: t8, y: e3, size: i2, rotation: r3 });
878
878
  }
879
879
  }
880
880
  const g = "circle", f = [[1, 1, 1, 1, 1, 1, 1], [1, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 1], [1, 1, 1, 1, 1, 1, 1]], w = [[0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0], [0, 0, 1, 1, 1, 0, 0], [0, 0, 1, 1, 1, 0, 0], [0, 0, 1, 1, 1, 0, 0], [0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0]];
881
881
  class p {
882
- constructor(t7, e3) {
883
- this._roundSize = (t8) => this._options.dotsOptions.roundSize ? Math.floor(t8) : t8, this._window = e3, this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "svg"), this._element.setAttribute("width", String(t7.width)), this._element.setAttribute("height", String(t7.height)), this._element.setAttribute("xmlns:xlink", "http://www.w3.org/1999/xlink"), t7.dotsOptions.roundSize || this._element.setAttribute("shape-rendering", "crispEdges"), this._element.setAttribute("viewBox", `0 0 ${t7.width} ${t7.height}`), this._defs = this._window.document.createElementNS("http://www.w3.org/2000/svg", "defs"), this._element.appendChild(this._defs), this._imageUri = t7.image, this._instanceId = p.instanceCount++, this._options = t7;
882
+ constructor(t8, e3) {
883
+ this._roundSize = (t9) => this._options.dotsOptions.roundSize ? Math.floor(t9) : t9, this._window = e3, this._element = this._window.document.createElementNS("http://www.w3.org/2000/svg", "svg"), this._element.setAttribute("width", String(t8.width)), this._element.setAttribute("height", String(t8.height)), this._element.setAttribute("xmlns:xlink", "http://www.w3.org/1999/xlink"), t8.dotsOptions.roundSize || this._element.setAttribute("shape-rendering", "crispEdges"), this._element.setAttribute("viewBox", `0 0 ${t8.width} ${t8.height}`), this._defs = this._window.document.createElementNS("http://www.w3.org/2000/svg", "defs"), this._element.appendChild(this._defs), this._imageUri = t8.image, this._instanceId = p.instanceCount++, this._options = t8;
884
884
  }
885
885
  get width() {
886
886
  return this._options.width;
@@ -891,135 +891,135 @@ var require_qr_code_styling = __commonJS({
891
891
  getElement() {
892
892
  return this._element;
893
893
  }
894
- async drawQR(t7) {
895
- const e3 = t7.getModuleCount(), i2 = Math.min(this._options.width, this._options.height) - 2 * this._options.margin, r3 = this._options.shape === g ? i2 / Math.sqrt(2) : i2, n2 = this._roundSize(r3 / e3);
894
+ async drawQR(t8) {
895
+ const e3 = t8.getModuleCount(), i2 = Math.min(this._options.width, this._options.height) - 2 * this._options.margin, r3 = this._options.shape === g ? i2 / Math.sqrt(2) : i2, n2 = this._roundSize(r3 / e3);
896
896
  let s2 = { hideXDots: 0, hideYDots: 0, width: 0, height: 0 };
897
- if (this._qr = t7, this._options.image) {
897
+ if (this._qr = t8, this._options.image) {
898
898
  if (await this.loadImage(), !this._image) return;
899
- const { imageOptions: t8, qrOptions: i3 } = this._options, r4 = t8.imageSize * o[i3.errorCorrectionLevel], a2 = Math.floor(r4 * e3 * e3);
900
- s2 = (function({ originalHeight: t9, originalWidth: e4, maxHiddenDots: i4, maxHiddenAxisDots: r5, dotSize: n3 }) {
899
+ const { imageOptions: t9, qrOptions: i3 } = this._options, r4 = t9.imageSize * o[i3.errorCorrectionLevel], a2 = Math.floor(r4 * e3 * e3);
900
+ s2 = (function({ originalHeight: t10, originalWidth: e4, maxHiddenDots: i4, maxHiddenAxisDots: r5, dotSize: n3 }) {
901
901
  const o2 = { x: 0, y: 0 }, s3 = { x: 0, y: 0 };
902
- if (t9 <= 0 || e4 <= 0 || i4 <= 0 || n3 <= 0) return { height: 0, width: 0, hideYDots: 0, hideXDots: 0 };
903
- const a3 = t9 / e4;
902
+ if (t10 <= 0 || e4 <= 0 || i4 <= 0 || n3 <= 0) return { height: 0, width: 0, hideYDots: 0, hideXDots: 0 };
903
+ const a3 = t10 / e4;
904
904
  return o2.x = Math.floor(Math.sqrt(i4 / a3)), o2.x <= 0 && (o2.x = 1), r5 && r5 < o2.x && (o2.x = r5), o2.x % 2 == 0 && o2.x--, s3.x = o2.x * n3, o2.y = 1 + 2 * Math.ceil((o2.x * a3 - 1) / 2), s3.y = Math.round(s3.x * a3), (o2.y * o2.x > i4 || r5 && r5 < o2.y) && (r5 && r5 < o2.y ? (o2.y = r5, o2.y % 2 == 0 && o2.x--) : o2.y -= 2, s3.y = o2.y * n3, o2.x = 1 + 2 * Math.ceil((o2.y / a3 - 1) / 2), s3.x = Math.round(s3.y / a3)), { height: s3.y, width: s3.x, hideYDots: o2.y, hideXDots: o2.x };
905
905
  })({ originalWidth: this._image.width, originalHeight: this._image.height, maxHiddenDots: a2, maxHiddenAxisDots: e3 - 14, dotSize: n2 });
906
906
  }
907
- this.drawBackground(), this.drawDots(((t8, i3) => {
907
+ this.drawBackground(), this.drawDots(((t9, i3) => {
908
908
  var r4, n3, o2, a2, h2, d2;
909
- return !(this._options.imageOptions.hideBackgroundDots && t8 >= (e3 - s2.hideYDots) / 2 && t8 < (e3 + s2.hideYDots) / 2 && i3 >= (e3 - s2.hideXDots) / 2 && i3 < (e3 + s2.hideXDots) / 2 || (null === (r4 = f[t8]) || void 0 === r4 ? void 0 : r4[i3]) || (null === (n3 = f[t8 - e3 + 7]) || void 0 === n3 ? void 0 : n3[i3]) || (null === (o2 = f[t8]) || void 0 === o2 ? void 0 : o2[i3 - e3 + 7]) || (null === (a2 = w[t8]) || void 0 === a2 ? void 0 : a2[i3]) || (null === (h2 = w[t8 - e3 + 7]) || void 0 === h2 ? void 0 : h2[i3]) || (null === (d2 = w[t8]) || void 0 === d2 ? void 0 : d2[i3 - e3 + 7]));
909
+ return !(this._options.imageOptions.hideBackgroundDots && t9 >= (e3 - s2.hideYDots) / 2 && t9 < (e3 + s2.hideYDots) / 2 && i3 >= (e3 - s2.hideXDots) / 2 && i3 < (e3 + s2.hideXDots) / 2 || (null === (r4 = f[t9]) || void 0 === r4 ? void 0 : r4[i3]) || (null === (n3 = f[t9 - e3 + 7]) || void 0 === n3 ? void 0 : n3[i3]) || (null === (o2 = f[t9]) || void 0 === o2 ? void 0 : o2[i3 - e3 + 7]) || (null === (a2 = w[t9]) || void 0 === a2 ? void 0 : a2[i3]) || (null === (h2 = w[t9 - e3 + 7]) || void 0 === h2 ? void 0 : h2[i3]) || (null === (d2 = w[t9]) || void 0 === d2 ? void 0 : d2[i3 - e3 + 7]));
910
910
  })), this.drawCorners(), this._options.image && await this.drawImage({ width: s2.width, height: s2.height, count: e3, dotSize: n2 });
911
911
  }
912
912
  drawBackground() {
913
- var t7, e3, i2;
913
+ var t8, e3, i2;
914
914
  const r3 = this._element, n2 = this._options;
915
915
  if (r3) {
916
- const r4 = null === (t7 = n2.backgroundOptions) || void 0 === t7 ? void 0 : t7.gradient, o2 = null === (e3 = n2.backgroundOptions) || void 0 === e3 ? void 0 : e3.color;
916
+ const r4 = null === (t8 = n2.backgroundOptions) || void 0 === t8 ? void 0 : t8.gradient, o2 = null === (e3 = n2.backgroundOptions) || void 0 === e3 ? void 0 : e3.color;
917
917
  let s2 = n2.height, a2 = n2.width;
918
918
  if (r4 || o2) {
919
- const t8 = this._window.document.createElementNS("http://www.w3.org/2000/svg", "rect");
920
- this._backgroundClipPath = this._window.document.createElementNS("http://www.w3.org/2000/svg", "clipPath"), this._backgroundClipPath.setAttribute("id", `clip-path-background-color-${this._instanceId}`), this._defs.appendChild(this._backgroundClipPath), (null === (i2 = n2.backgroundOptions) || void 0 === i2 ? void 0 : i2.round) && (s2 = a2 = Math.min(n2.width, n2.height), t8.setAttribute("rx", String(s2 / 2 * n2.backgroundOptions.round))), t8.setAttribute("x", String(this._roundSize((n2.width - a2) / 2))), t8.setAttribute("y", String(this._roundSize((n2.height - s2) / 2))), t8.setAttribute("width", String(a2)), t8.setAttribute("height", String(s2)), this._backgroundClipPath.appendChild(t8), this._createColor({ options: r4, color: o2, additionalRotation: 0, x: 0, y: 0, height: n2.height, width: n2.width, name: `background-color-${this._instanceId}` });
919
+ const t9 = this._window.document.createElementNS("http://www.w3.org/2000/svg", "rect");
920
+ this._backgroundClipPath = this._window.document.createElementNS("http://www.w3.org/2000/svg", "clipPath"), this._backgroundClipPath.setAttribute("id", `clip-path-background-color-${this._instanceId}`), this._defs.appendChild(this._backgroundClipPath), (null === (i2 = n2.backgroundOptions) || void 0 === i2 ? void 0 : i2.round) && (s2 = a2 = Math.min(n2.width, n2.height), t9.setAttribute("rx", String(s2 / 2 * n2.backgroundOptions.round))), t9.setAttribute("x", String(this._roundSize((n2.width - a2) / 2))), t9.setAttribute("y", String(this._roundSize((n2.height - s2) / 2))), t9.setAttribute("width", String(a2)), t9.setAttribute("height", String(s2)), this._backgroundClipPath.appendChild(t9), this._createColor({ options: r4, color: o2, additionalRotation: 0, x: 0, y: 0, height: n2.height, width: n2.width, name: `background-color-${this._instanceId}` });
921
921
  }
922
922
  }
923
923
  }
924
- drawDots(t7) {
924
+ drawDots(t8) {
925
925
  var e3, i2;
926
926
  if (!this._qr) throw "QR code is not defined";
927
927
  const r3 = this._options, n2 = this._qr.getModuleCount();
928
928
  if (n2 > r3.width || n2 > r3.height) throw "The canvas is too small.";
929
929
  const o2 = Math.min(r3.width, r3.height) - 2 * r3.margin, a2 = r3.shape === g ? o2 / Math.sqrt(2) : o2, h2 = this._roundSize(a2 / n2), d2 = this._roundSize((r3.width - n2 * h2) / 2), u2 = this._roundSize((r3.height - n2 * h2) / 2), c2 = new s({ svg: this._element, type: r3.dotsOptions.type, window: this._window });
930
930
  this._dotsClipPath = this._window.document.createElementNS("http://www.w3.org/2000/svg", "clipPath"), this._dotsClipPath.setAttribute("id", `clip-path-dot-color-${this._instanceId}`), this._defs.appendChild(this._dotsClipPath), this._createColor({ options: null === (e3 = r3.dotsOptions) || void 0 === e3 ? void 0 : e3.gradient, color: r3.dotsOptions.color, additionalRotation: 0, x: 0, y: 0, height: r3.height, width: r3.width, name: `dot-color-${this._instanceId}` });
931
- for (let e4 = 0; e4 < n2; e4++) for (let r4 = 0; r4 < n2; r4++) t7 && !t7(e4, r4) || (null === (i2 = this._qr) || void 0 === i2 ? void 0 : i2.isDark(e4, r4)) && (c2.draw(d2 + r4 * h2, u2 + e4 * h2, h2, ((i3, o3) => !(r4 + i3 < 0 || e4 + o3 < 0 || r4 + i3 >= n2 || e4 + o3 >= n2) && !(t7 && !t7(e4 + o3, r4 + i3)) && !!this._qr && this._qr.isDark(e4 + o3, r4 + i3))), c2._element && this._dotsClipPath && this._dotsClipPath.appendChild(c2._element));
931
+ for (let e4 = 0; e4 < n2; e4++) for (let r4 = 0; r4 < n2; r4++) t8 && !t8(e4, r4) || (null === (i2 = this._qr) || void 0 === i2 ? void 0 : i2.isDark(e4, r4)) && (c2.draw(d2 + r4 * h2, u2 + e4 * h2, h2, ((i3, o3) => !(r4 + i3 < 0 || e4 + o3 < 0 || r4 + i3 >= n2 || e4 + o3 >= n2) && !(t8 && !t8(e4 + o3, r4 + i3)) && !!this._qr && this._qr.isDark(e4 + o3, r4 + i3))), c2._element && this._dotsClipPath && this._dotsClipPath.appendChild(c2._element));
932
932
  if (r3.shape === g) {
933
- const t8 = this._roundSize((o2 / h2 - n2) / 2), e4 = n2 + 2 * t8, i3 = d2 - t8 * h2, r4 = u2 - t8 * h2, s2 = [], a3 = this._roundSize(e4 / 2);
933
+ const t9 = this._roundSize((o2 / h2 - n2) / 2), e4 = n2 + 2 * t9, i3 = d2 - t9 * h2, r4 = u2 - t9 * h2, s2 = [], a3 = this._roundSize(e4 / 2);
934
934
  for (let i4 = 0; i4 < e4; i4++) {
935
935
  s2[i4] = [];
936
- for (let r5 = 0; r5 < e4; r5++) i4 >= t8 - 1 && i4 <= e4 - t8 && r5 >= t8 - 1 && r5 <= e4 - t8 || Math.sqrt((i4 - a3) * (i4 - a3) + (r5 - a3) * (r5 - a3)) > a3 ? s2[i4][r5] = 0 : s2[i4][r5] = this._qr.isDark(r5 - 2 * t8 < 0 ? r5 : r5 >= n2 ? r5 - 2 * t8 : r5 - t8, i4 - 2 * t8 < 0 ? i4 : i4 >= n2 ? i4 - 2 * t8 : i4 - t8) ? 1 : 0;
936
+ for (let r5 = 0; r5 < e4; r5++) i4 >= t9 - 1 && i4 <= e4 - t9 && r5 >= t9 - 1 && r5 <= e4 - t9 || Math.sqrt((i4 - a3) * (i4 - a3) + (r5 - a3) * (r5 - a3)) > a3 ? s2[i4][r5] = 0 : s2[i4][r5] = this._qr.isDark(r5 - 2 * t9 < 0 ? r5 : r5 >= n2 ? r5 - 2 * t9 : r5 - t9, i4 - 2 * t9 < 0 ? i4 : i4 >= n2 ? i4 - 2 * t9 : i4 - t9) ? 1 : 0;
937
937
  }
938
- for (let t9 = 0; t9 < e4; t9++) for (let n3 = 0; n3 < e4; n3++) s2[t9][n3] && (c2.draw(i3 + n3 * h2, r4 + t9 * h2, h2, ((e5, i4) => {
938
+ for (let t10 = 0; t10 < e4; t10++) for (let n3 = 0; n3 < e4; n3++) s2[t10][n3] && (c2.draw(i3 + n3 * h2, r4 + t10 * h2, h2, ((e5, i4) => {
939
939
  var r5;
940
- return !!(null === (r5 = s2[t9 + i4]) || void 0 === r5 ? void 0 : r5[n3 + e5]);
940
+ return !!(null === (r5 = s2[t10 + i4]) || void 0 === r5 ? void 0 : r5[n3 + e5]);
941
941
  })), c2._element && this._dotsClipPath && this._dotsClipPath.appendChild(c2._element));
942
942
  }
943
943
  }
944
944
  drawCorners() {
945
945
  if (!this._qr) throw "QR code is not defined";
946
- const t7 = this._element, e3 = this._options;
947
- if (!t7) throw "Element code is not defined";
946
+ const t8 = this._element, e3 = this._options;
947
+ if (!t8) throw "Element code is not defined";
948
948
  const i2 = this._qr.getModuleCount(), r3 = Math.min(e3.width, e3.height) - 2 * e3.margin, n2 = e3.shape === g ? r3 / Math.sqrt(2) : r3, o2 = this._roundSize(n2 / i2), a2 = 7 * o2, u2 = 3 * o2, p2 = this._roundSize((e3.width - i2 * o2) / 2), v2 = this._roundSize((e3.height - i2 * o2) / 2);
949
- [[0, 0, 0], [1, 0, Math.PI / 2], [0, 1, -Math.PI / 2]].forEach((([t8, r4, n3]) => {
949
+ [[0, 0, 0], [1, 0, Math.PI / 2], [0, 1, -Math.PI / 2]].forEach((([t9, r4, n3]) => {
950
950
  var g2, _2, m2, b2, y2, x2, S2, C2, A2, M2, $2, O, D, k;
951
- const z = p2 + t8 * o2 * (i2 - 7), B = v2 + r4 * o2 * (i2 - 7);
951
+ const z = p2 + t9 * o2 * (i2 - 7), B = v2 + r4 * o2 * (i2 - 7);
952
952
  let P = this._dotsClipPath, I = this._dotsClipPath;
953
- if (((null === (g2 = e3.cornersSquareOptions) || void 0 === g2 ? void 0 : g2.gradient) || (null === (_2 = e3.cornersSquareOptions) || void 0 === _2 ? void 0 : _2.color)) && (P = this._window.document.createElementNS("http://www.w3.org/2000/svg", "clipPath"), P.setAttribute("id", `clip-path-corners-square-color-${t8}-${r4}-${this._instanceId}`), this._defs.appendChild(P), this._cornersSquareClipPath = this._cornersDotClipPath = I = P, this._createColor({ options: null === (m2 = e3.cornersSquareOptions) || void 0 === m2 ? void 0 : m2.gradient, color: null === (b2 = e3.cornersSquareOptions) || void 0 === b2 ? void 0 : b2.color, additionalRotation: n3, x: z, y: B, height: a2, width: a2, name: `corners-square-color-${t8}-${r4}-${this._instanceId}` })), (null === (y2 = e3.cornersSquareOptions) || void 0 === y2 ? void 0 : y2.type) && h.includes(e3.cornersSquareOptions.type)) {
954
- const t9 = new d({ svg: this._element, type: e3.cornersSquareOptions.type, window: this._window });
955
- t9.draw(z, B, a2, n3), t9._element && P && P.appendChild(t9._element);
953
+ if (((null === (g2 = e3.cornersSquareOptions) || void 0 === g2 ? void 0 : g2.gradient) || (null === (_2 = e3.cornersSquareOptions) || void 0 === _2 ? void 0 : _2.color)) && (P = this._window.document.createElementNS("http://www.w3.org/2000/svg", "clipPath"), P.setAttribute("id", `clip-path-corners-square-color-${t9}-${r4}-${this._instanceId}`), this._defs.appendChild(P), this._cornersSquareClipPath = this._cornersDotClipPath = I = P, this._createColor({ options: null === (m2 = e3.cornersSquareOptions) || void 0 === m2 ? void 0 : m2.gradient, color: null === (b2 = e3.cornersSquareOptions) || void 0 === b2 ? void 0 : b2.color, additionalRotation: n3, x: z, y: B, height: a2, width: a2, name: `corners-square-color-${t9}-${r4}-${this._instanceId}` })), (null === (y2 = e3.cornersSquareOptions) || void 0 === y2 ? void 0 : y2.type) && h.includes(e3.cornersSquareOptions.type)) {
954
+ const t10 = new d({ svg: this._element, type: e3.cornersSquareOptions.type, window: this._window });
955
+ t10.draw(z, B, a2, n3), t10._element && P && P.appendChild(t10._element);
956
956
  } else {
957
- const t9 = new s({ svg: this._element, type: (null === (x2 = e3.cornersSquareOptions) || void 0 === x2 ? void 0 : x2.type) || e3.dotsOptions.type, window: this._window });
958
- for (let e4 = 0; e4 < f.length; e4++) for (let i3 = 0; i3 < f[e4].length; i3++) (null === (S2 = f[e4]) || void 0 === S2 ? void 0 : S2[i3]) && (t9.draw(z + i3 * o2, B + e4 * o2, o2, ((t10, r5) => {
957
+ const t10 = new s({ svg: this._element, type: (null === (x2 = e3.cornersSquareOptions) || void 0 === x2 ? void 0 : x2.type) || e3.dotsOptions.type, window: this._window });
958
+ for (let e4 = 0; e4 < f.length; e4++) for (let i3 = 0; i3 < f[e4].length; i3++) (null === (S2 = f[e4]) || void 0 === S2 ? void 0 : S2[i3]) && (t10.draw(z + i3 * o2, B + e4 * o2, o2, ((t11, r5) => {
959
959
  var n4;
960
- return !!(null === (n4 = f[e4 + r5]) || void 0 === n4 ? void 0 : n4[i3 + t10]);
961
- })), t9._element && P && P.appendChild(t9._element));
960
+ return !!(null === (n4 = f[e4 + r5]) || void 0 === n4 ? void 0 : n4[i3 + t11]);
961
+ })), t10._element && P && P.appendChild(t10._element));
962
962
  }
963
- if (((null === (C2 = e3.cornersDotOptions) || void 0 === C2 ? void 0 : C2.gradient) || (null === (A2 = e3.cornersDotOptions) || void 0 === A2 ? void 0 : A2.color)) && (I = this._window.document.createElementNS("http://www.w3.org/2000/svg", "clipPath"), I.setAttribute("id", `clip-path-corners-dot-color-${t8}-${r4}-${this._instanceId}`), this._defs.appendChild(I), this._cornersDotClipPath = I, this._createColor({ options: null === (M2 = e3.cornersDotOptions) || void 0 === M2 ? void 0 : M2.gradient, color: null === ($2 = e3.cornersDotOptions) || void 0 === $2 ? void 0 : $2.color, additionalRotation: n3, x: z + 2 * o2, y: B + 2 * o2, height: u2, width: u2, name: `corners-dot-color-${t8}-${r4}-${this._instanceId}` })), (null === (O = e3.cornersDotOptions) || void 0 === O ? void 0 : O.type) && c.includes(e3.cornersDotOptions.type)) {
964
- const t9 = new l({ svg: this._element, type: e3.cornersDotOptions.type, window: this._window });
965
- t9.draw(z + 2 * o2, B + 2 * o2, u2, n3), t9._element && I && I.appendChild(t9._element);
963
+ if (((null === (C2 = e3.cornersDotOptions) || void 0 === C2 ? void 0 : C2.gradient) || (null === (A2 = e3.cornersDotOptions) || void 0 === A2 ? void 0 : A2.color)) && (I = this._window.document.createElementNS("http://www.w3.org/2000/svg", "clipPath"), I.setAttribute("id", `clip-path-corners-dot-color-${t9}-${r4}-${this._instanceId}`), this._defs.appendChild(I), this._cornersDotClipPath = I, this._createColor({ options: null === (M2 = e3.cornersDotOptions) || void 0 === M2 ? void 0 : M2.gradient, color: null === ($2 = e3.cornersDotOptions) || void 0 === $2 ? void 0 : $2.color, additionalRotation: n3, x: z + 2 * o2, y: B + 2 * o2, height: u2, width: u2, name: `corners-dot-color-${t9}-${r4}-${this._instanceId}` })), (null === (O = e3.cornersDotOptions) || void 0 === O ? void 0 : O.type) && c.includes(e3.cornersDotOptions.type)) {
964
+ const t10 = new l({ svg: this._element, type: e3.cornersDotOptions.type, window: this._window });
965
+ t10.draw(z + 2 * o2, B + 2 * o2, u2, n3), t10._element && I && I.appendChild(t10._element);
966
966
  } else {
967
- const t9 = new s({ svg: this._element, type: (null === (D = e3.cornersDotOptions) || void 0 === D ? void 0 : D.type) || e3.dotsOptions.type, window: this._window });
968
- for (let e4 = 0; e4 < w.length; e4++) for (let i3 = 0; i3 < w[e4].length; i3++) (null === (k = w[e4]) || void 0 === k ? void 0 : k[i3]) && (t9.draw(z + i3 * o2, B + e4 * o2, o2, ((t10, r5) => {
967
+ const t10 = new s({ svg: this._element, type: (null === (D = e3.cornersDotOptions) || void 0 === D ? void 0 : D.type) || e3.dotsOptions.type, window: this._window });
968
+ for (let e4 = 0; e4 < w.length; e4++) for (let i3 = 0; i3 < w[e4].length; i3++) (null === (k = w[e4]) || void 0 === k ? void 0 : k[i3]) && (t10.draw(z + i3 * o2, B + e4 * o2, o2, ((t11, r5) => {
969
969
  var n4;
970
- return !!(null === (n4 = w[e4 + r5]) || void 0 === n4 ? void 0 : n4[i3 + t10]);
971
- })), t9._element && I && I.appendChild(t9._element));
970
+ return !!(null === (n4 = w[e4 + r5]) || void 0 === n4 ? void 0 : n4[i3 + t11]);
971
+ })), t10._element && I && I.appendChild(t10._element));
972
972
  }
973
973
  }));
974
974
  }
975
975
  loadImage() {
976
- return new Promise(((t7, e3) => {
976
+ return new Promise(((t8, e3) => {
977
977
  var i2;
978
978
  const r3 = this._options;
979
979
  if (!r3.image) return e3("Image is not defined");
980
980
  if (null === (i2 = r3.nodeCanvas) || void 0 === i2 ? void 0 : i2.loadImage) r3.nodeCanvas.loadImage(r3.image).then(((e4) => {
981
981
  var i3, n2;
982
982
  if (this._image = e4, this._options.imageOptions.saveAsBlob) {
983
- const t8 = null === (i3 = r3.nodeCanvas) || void 0 === i3 ? void 0 : i3.createCanvas(this._image.width, this._image.height);
984
- null === (n2 = null == t8 ? void 0 : t8.getContext("2d")) || void 0 === n2 || n2.drawImage(e4, 0, 0), this._imageUri = null == t8 ? void 0 : t8.toDataURL();
983
+ const t9 = null === (i3 = r3.nodeCanvas) || void 0 === i3 ? void 0 : i3.createCanvas(this._image.width, this._image.height);
984
+ null === (n2 = null == t9 ? void 0 : t9.getContext("2d")) || void 0 === n2 || n2.drawImage(e4, 0, 0), this._imageUri = null == t9 ? void 0 : t9.toDataURL();
985
985
  }
986
- t7();
986
+ t8();
987
987
  })).catch(e3);
988
988
  else {
989
989
  const e4 = new this._window.Image();
990
990
  "string" == typeof r3.imageOptions.crossOrigin && (e4.crossOrigin = r3.imageOptions.crossOrigin), this._image = e4, e4.onload = async () => {
991
- this._options.imageOptions.saveAsBlob && (this._imageUri = await (async function(t8, e5) {
991
+ this._options.imageOptions.saveAsBlob && (this._imageUri = await (async function(t9, e5) {
992
992
  return new Promise(((i3) => {
993
993
  const r4 = new e5.XMLHttpRequest();
994
994
  r4.onload = function() {
995
- const t9 = new e5.FileReader();
996
- t9.onloadend = function() {
997
- i3(t9.result);
998
- }, t9.readAsDataURL(r4.response);
999
- }, r4.open("GET", t8), r4.responseType = "blob", r4.send();
995
+ const t10 = new e5.FileReader();
996
+ t10.onloadend = function() {
997
+ i3(t10.result);
998
+ }, t10.readAsDataURL(r4.response);
999
+ }, r4.open("GET", t9), r4.responseType = "blob", r4.send();
1000
1000
  }));
1001
- })(r3.image || "", this._window)), t7();
1001
+ })(r3.image || "", this._window)), t8();
1002
1002
  }, e4.src = r3.image;
1003
1003
  }
1004
1004
  }));
1005
1005
  }
1006
- async drawImage({ width: t7, height: e3, count: i2, dotSize: r3 }) {
1007
- const n2 = this._options, o2 = this._roundSize((n2.width - i2 * r3) / 2), s2 = this._roundSize((n2.height - i2 * r3) / 2), a2 = o2 + this._roundSize(n2.imageOptions.margin + (i2 * r3 - t7) / 2), h2 = s2 + this._roundSize(n2.imageOptions.margin + (i2 * r3 - e3) / 2), d2 = t7 - 2 * n2.imageOptions.margin, u2 = e3 - 2 * n2.imageOptions.margin, c2 = this._window.document.createElementNS("http://www.w3.org/2000/svg", "image");
1006
+ async drawImage({ width: t8, height: e3, count: i2, dotSize: r3 }) {
1007
+ const n2 = this._options, o2 = this._roundSize((n2.width - i2 * r3) / 2), s2 = this._roundSize((n2.height - i2 * r3) / 2), a2 = o2 + this._roundSize(n2.imageOptions.margin + (i2 * r3 - t8) / 2), h2 = s2 + this._roundSize(n2.imageOptions.margin + (i2 * r3 - e3) / 2), d2 = t8 - 2 * n2.imageOptions.margin, u2 = e3 - 2 * n2.imageOptions.margin, c2 = this._window.document.createElementNS("http://www.w3.org/2000/svg", "image");
1008
1008
  c2.setAttribute("href", this._imageUri || ""), c2.setAttribute("xlink:href", this._imageUri || ""), c2.setAttribute("x", String(a2)), c2.setAttribute("y", String(h2)), c2.setAttribute("width", `${d2}px`), c2.setAttribute("height", `${u2}px`), this._element.appendChild(c2);
1009
1009
  }
1010
- _createColor({ options: t7, color: e3, additionalRotation: i2, x: r3, y: n2, height: o2, width: s2, name: a2 }) {
1010
+ _createColor({ options: t8, color: e3, additionalRotation: i2, x: r3, y: n2, height: o2, width: s2, name: a2 }) {
1011
1011
  const h2 = s2 > o2 ? s2 : o2, d2 = this._window.document.createElementNS("http://www.w3.org/2000/svg", "rect");
1012
- if (d2.setAttribute("x", String(r3)), d2.setAttribute("y", String(n2)), d2.setAttribute("height", String(o2)), d2.setAttribute("width", String(s2)), d2.setAttribute("clip-path", `url('#clip-path-${a2}')`), t7) {
1012
+ if (d2.setAttribute("x", String(r3)), d2.setAttribute("y", String(n2)), d2.setAttribute("height", String(o2)), d2.setAttribute("width", String(s2)), d2.setAttribute("clip-path", `url('#clip-path-${a2}')`), t8) {
1013
1013
  let e4;
1014
- if ("radial" === t7.type) e4 = this._window.document.createElementNS("http://www.w3.org/2000/svg", "radialGradient"), e4.setAttribute("id", a2), e4.setAttribute("gradientUnits", "userSpaceOnUse"), e4.setAttribute("fx", String(r3 + s2 / 2)), e4.setAttribute("fy", String(n2 + o2 / 2)), e4.setAttribute("cx", String(r3 + s2 / 2)), e4.setAttribute("cy", String(n2 + o2 / 2)), e4.setAttribute("r", String(h2 / 2));
1014
+ if ("radial" === t8.type) e4 = this._window.document.createElementNS("http://www.w3.org/2000/svg", "radialGradient"), e4.setAttribute("id", a2), e4.setAttribute("gradientUnits", "userSpaceOnUse"), e4.setAttribute("fx", String(r3 + s2 / 2)), e4.setAttribute("fy", String(n2 + o2 / 2)), e4.setAttribute("cx", String(r3 + s2 / 2)), e4.setAttribute("cy", String(n2 + o2 / 2)), e4.setAttribute("r", String(h2 / 2));
1015
1015
  else {
1016
- const h3 = ((t7.rotation || 0) + i2) % (2 * Math.PI), d3 = (h3 + 2 * Math.PI) % (2 * Math.PI);
1016
+ const h3 = ((t8.rotation || 0) + i2) % (2 * Math.PI), d3 = (h3 + 2 * Math.PI) % (2 * Math.PI);
1017
1017
  let u2 = r3 + s2 / 2, c2 = n2 + o2 / 2, l2 = r3 + s2 / 2, g2 = n2 + o2 / 2;
1018
1018
  d3 >= 0 && d3 <= 0.25 * Math.PI || d3 > 1.75 * Math.PI && d3 <= 2 * Math.PI ? (u2 -= s2 / 2, c2 -= o2 / 2 * Math.tan(h3), l2 += s2 / 2, g2 += o2 / 2 * Math.tan(h3)) : d3 > 0.25 * Math.PI && d3 <= 0.75 * Math.PI ? (c2 -= o2 / 2, u2 -= s2 / 2 / Math.tan(h3), g2 += o2 / 2, l2 += s2 / 2 / Math.tan(h3)) : d3 > 0.75 * Math.PI && d3 <= 1.25 * Math.PI ? (u2 += s2 / 2, c2 += o2 / 2 * Math.tan(h3), l2 -= s2 / 2, g2 -= o2 / 2 * Math.tan(h3)) : d3 > 1.25 * Math.PI && d3 <= 1.75 * Math.PI && (c2 += o2 / 2, u2 += s2 / 2 / Math.tan(h3), g2 -= o2 / 2, l2 -= s2 / 2 / Math.tan(h3)), e4 = this._window.document.createElementNS("http://www.w3.org/2000/svg", "linearGradient"), e4.setAttribute("id", a2), e4.setAttribute("gradientUnits", "userSpaceOnUse"), e4.setAttribute("x1", String(Math.round(u2))), e4.setAttribute("y1", String(Math.round(c2))), e4.setAttribute("x2", String(Math.round(l2))), e4.setAttribute("y2", String(Math.round(g2)));
1019
1019
  }
1020
- t7.colorStops.forEach((({ offset: t8, color: i3 }) => {
1020
+ t8.colorStops.forEach((({ offset: t9, color: i3 }) => {
1021
1021
  const r4 = this._window.document.createElementNS("http://www.w3.org/2000/svg", "stop");
1022
- r4.setAttribute("offset", 100 * t8 + "%"), r4.setAttribute("stop-color", i3), e4.appendChild(r4);
1022
+ r4.setAttribute("offset", 100 * t9 + "%"), r4.setAttribute("stop-color", i3), e4.appendChild(r4);
1023
1023
  })), d2.setAttribute("fill", `url('#${a2}')`), this._defs.appendChild(e4);
1024
1024
  } else e3 && d2.setAttribute("fill", e3);
1025
1025
  this._element.appendChild(d2);
@@ -1027,119 +1027,119 @@ var require_qr_code_styling = __commonJS({
1027
1027
  }
1028
1028
  p.instanceCount = 0;
1029
1029
  const v = p, _ = "canvas", m = {};
1030
- for (let t7 = 0; t7 <= 40; t7++) m[t7] = t7;
1030
+ for (let t8 = 0; t8 <= 40; t8++) m[t8] = t8;
1031
1031
  const b = { type: _, shape: "square", width: 300, height: 300, data: "", margin: 0, qrOptions: { typeNumber: m[0], mode: void 0, errorCorrectionLevel: "Q" }, imageOptions: { saveAsBlob: true, hideBackgroundDots: true, imageSize: 0.4, crossOrigin: void 0, margin: 0 }, dotsOptions: { type: "square", color: "#000", roundSize: true }, backgroundOptions: { round: 0, color: "#fff" } };
1032
- function y(t7) {
1033
- const e3 = Object.assign({}, t7);
1032
+ function y(t8) {
1033
+ const e3 = Object.assign({}, t8);
1034
1034
  if (!e3.colorStops || !e3.colorStops.length) throw "Field 'colorStops' is required in gradient";
1035
- return e3.rotation ? e3.rotation = Number(e3.rotation) : e3.rotation = 0, e3.colorStops = e3.colorStops.map(((t8) => Object.assign(Object.assign({}, t8), { offset: Number(t8.offset) }))), e3;
1035
+ return e3.rotation ? e3.rotation = Number(e3.rotation) : e3.rotation = 0, e3.colorStops = e3.colorStops.map(((t9) => Object.assign(Object.assign({}, t9), { offset: Number(t9.offset) }))), e3;
1036
1036
  }
1037
- function x(t7) {
1038
- const e3 = Object.assign({}, t7);
1037
+ function x(t8) {
1038
+ const e3 = Object.assign({}, t8);
1039
1039
  return e3.width = Number(e3.width), e3.height = Number(e3.height), e3.margin = Number(e3.margin), e3.imageOptions = Object.assign(Object.assign({}, e3.imageOptions), { hideBackgroundDots: Boolean(e3.imageOptions.hideBackgroundDots), imageSize: Number(e3.imageOptions.imageSize), margin: Number(e3.imageOptions.margin) }), e3.margin > Math.min(e3.width, e3.height) && (e3.margin = Math.min(e3.width, e3.height)), e3.dotsOptions = Object.assign({}, e3.dotsOptions), e3.dotsOptions.gradient && (e3.dotsOptions.gradient = y(e3.dotsOptions.gradient)), e3.cornersSquareOptions && (e3.cornersSquareOptions = Object.assign({}, e3.cornersSquareOptions), e3.cornersSquareOptions.gradient && (e3.cornersSquareOptions.gradient = y(e3.cornersSquareOptions.gradient))), e3.cornersDotOptions && (e3.cornersDotOptions = Object.assign({}, e3.cornersDotOptions), e3.cornersDotOptions.gradient && (e3.cornersDotOptions.gradient = y(e3.cornersDotOptions.gradient))), e3.backgroundOptions && (e3.backgroundOptions = Object.assign({}, e3.backgroundOptions), e3.backgroundOptions.gradient && (e3.backgroundOptions.gradient = y(e3.backgroundOptions.gradient))), e3;
1040
1040
  }
1041
1041
  var S = i(873), C = i.n(S);
1042
- function A(t7) {
1043
- if (!t7) throw new Error("Extension must be defined");
1044
- "." === t7[0] && (t7 = t7.substring(1));
1045
- const e3 = { bmp: "image/bmp", gif: "image/gif", ico: "image/vnd.microsoft.icon", jpeg: "image/jpeg", jpg: "image/jpeg", png: "image/png", svg: "image/svg+xml", tif: "image/tiff", tiff: "image/tiff", webp: "image/webp", pdf: "application/pdf" }[t7.toLowerCase()];
1046
- if (!e3) throw new Error(`Extension "${t7}" is not supported`);
1042
+ function A(t8) {
1043
+ if (!t8) throw new Error("Extension must be defined");
1044
+ "." === t8[0] && (t8 = t8.substring(1));
1045
+ const e3 = { bmp: "image/bmp", gif: "image/gif", ico: "image/vnd.microsoft.icon", jpeg: "image/jpeg", jpg: "image/jpeg", png: "image/png", svg: "image/svg+xml", tif: "image/tiff", tiff: "image/tiff", webp: "image/webp", pdf: "application/pdf" }[t8.toLowerCase()];
1046
+ if (!e3) throw new Error(`Extension "${t8}" is not supported`);
1047
1047
  return e3;
1048
1048
  }
1049
1049
  class M {
1050
- constructor(t7) {
1051
- (null == t7 ? void 0 : t7.jsdom) ? this._window = new t7.jsdom("", { resources: "usable" }).window : this._window = window, this._options = t7 ? x(e2(b, t7)) : b, this.update();
1050
+ constructor(t8) {
1051
+ (null == t8 ? void 0 : t8.jsdom) ? this._window = new t8.jsdom("", { resources: "usable" }).window : this._window = window, this._options = t8 ? x(e2(b, t8)) : b, this.update();
1052
1052
  }
1053
- static _clearContainer(t7) {
1054
- t7 && (t7.innerHTML = "");
1053
+ static _clearContainer(t8) {
1054
+ t8 && (t8.innerHTML = "");
1055
1055
  }
1056
1056
  _setupSvg() {
1057
1057
  if (!this._qr) return;
1058
- const t7 = new v(this._options, this._window);
1059
- this._svg = t7.getElement(), this._svgDrawingPromise = t7.drawQR(this._qr).then((() => {
1058
+ const t8 = new v(this._options, this._window);
1059
+ this._svg = t8.getElement(), this._svgDrawingPromise = t8.drawQR(this._qr).then((() => {
1060
1060
  var e3;
1061
- this._svg && (null === (e3 = this._extension) || void 0 === e3 || e3.call(this, t7.getElement(), this._options));
1061
+ this._svg && (null === (e3 = this._extension) || void 0 === e3 || e3.call(this, t8.getElement(), this._options));
1062
1062
  }));
1063
1063
  }
1064
1064
  _setupCanvas() {
1065
- var t7, e3;
1066
- this._qr && ((null === (t7 = this._options.nodeCanvas) || void 0 === t7 ? void 0 : t7.createCanvas) ? (this._nodeCanvas = this._options.nodeCanvas.createCanvas(this._options.width, this._options.height), this._nodeCanvas.width = this._options.width, this._nodeCanvas.height = this._options.height) : (this._domCanvas = document.createElement("canvas"), this._domCanvas.width = this._options.width, this._domCanvas.height = this._options.height), this._setupSvg(), this._canvasDrawingPromise = null === (e3 = this._svgDrawingPromise) || void 0 === e3 ? void 0 : e3.then((() => {
1067
- var t8;
1065
+ var t8, e3;
1066
+ this._qr && ((null === (t8 = this._options.nodeCanvas) || void 0 === t8 ? void 0 : t8.createCanvas) ? (this._nodeCanvas = this._options.nodeCanvas.createCanvas(this._options.width, this._options.height), this._nodeCanvas.width = this._options.width, this._nodeCanvas.height = this._options.height) : (this._domCanvas = document.createElement("canvas"), this._domCanvas.width = this._options.width, this._domCanvas.height = this._options.height), this._setupSvg(), this._canvasDrawingPromise = null === (e3 = this._svgDrawingPromise) || void 0 === e3 ? void 0 : e3.then((() => {
1067
+ var t9;
1068
1068
  if (!this._svg) return;
1069
1069
  const e4 = this._svg, i2 = new this._window.XMLSerializer().serializeToString(e4), r3 = btoa(i2), n2 = `data:${A("svg")};base64,${r3}`;
1070
- if (null === (t8 = this._options.nodeCanvas) || void 0 === t8 ? void 0 : t8.loadImage) return this._options.nodeCanvas.loadImage(n2).then(((t9) => {
1070
+ if (null === (t9 = this._options.nodeCanvas) || void 0 === t9 ? void 0 : t9.loadImage) return this._options.nodeCanvas.loadImage(n2).then(((t10) => {
1071
1071
  var e5, i3;
1072
- t9.width = this._options.width, t9.height = this._options.height, null === (i3 = null === (e5 = this._nodeCanvas) || void 0 === e5 ? void 0 : e5.getContext("2d")) || void 0 === i3 || i3.drawImage(t9, 0, 0);
1072
+ t10.width = this._options.width, t10.height = this._options.height, null === (i3 = null === (e5 = this._nodeCanvas) || void 0 === e5 ? void 0 : e5.getContext("2d")) || void 0 === i3 || i3.drawImage(t10, 0, 0);
1073
1073
  }));
1074
1074
  {
1075
- const t9 = new this._window.Image();
1075
+ const t10 = new this._window.Image();
1076
1076
  return new Promise(((e5) => {
1077
- t9.onload = () => {
1077
+ t10.onload = () => {
1078
1078
  var i3, r4;
1079
- null === (r4 = null === (i3 = this._domCanvas) || void 0 === i3 ? void 0 : i3.getContext("2d")) || void 0 === r4 || r4.drawImage(t9, 0, 0), e5();
1080
- }, t9.src = n2;
1079
+ null === (r4 = null === (i3 = this._domCanvas) || void 0 === i3 ? void 0 : i3.getContext("2d")) || void 0 === r4 || r4.drawImage(t10, 0, 0), e5();
1080
+ }, t10.src = n2;
1081
1081
  }));
1082
1082
  }
1083
1083
  })));
1084
1084
  }
1085
- async _getElement(t7 = "png") {
1085
+ async _getElement(t8 = "png") {
1086
1086
  if (!this._qr) throw "QR code is empty";
1087
- return "svg" === t7.toLowerCase() ? (this._svg && this._svgDrawingPromise || this._setupSvg(), await this._svgDrawingPromise, this._svg) : ((this._domCanvas || this._nodeCanvas) && this._canvasDrawingPromise || this._setupCanvas(), await this._canvasDrawingPromise, this._domCanvas || this._nodeCanvas);
1087
+ return "svg" === t8.toLowerCase() ? (this._svg && this._svgDrawingPromise || this._setupSvg(), await this._svgDrawingPromise, this._svg) : ((this._domCanvas || this._nodeCanvas) && this._canvasDrawingPromise || this._setupCanvas(), await this._canvasDrawingPromise, this._domCanvas || this._nodeCanvas);
1088
1088
  }
1089
- update(t7) {
1090
- M._clearContainer(this._container), this._options = t7 ? x(e2(this._options, t7)) : this._options, this._options.data && (this._qr = C()(this._options.qrOptions.typeNumber, this._options.qrOptions.errorCorrectionLevel), this._qr.addData(this._options.data, this._options.qrOptions.mode || (function(t8) {
1089
+ update(t8) {
1090
+ M._clearContainer(this._container), this._options = t8 ? x(e2(this._options, t8)) : this._options, this._options.data && (this._qr = C()(this._options.qrOptions.typeNumber, this._options.qrOptions.errorCorrectionLevel), this._qr.addData(this._options.data, this._options.qrOptions.mode || (function(t9) {
1091
1091
  switch (true) {
1092
- case /^[0-9]*$/.test(t8):
1092
+ case /^[0-9]*$/.test(t9):
1093
1093
  return "Numeric";
1094
- case /^[0-9A-Z $%*+\-./:]*$/.test(t8):
1094
+ case /^[0-9A-Z $%*+\-./:]*$/.test(t9):
1095
1095
  return "Alphanumeric";
1096
1096
  default:
1097
1097
  return "Byte";
1098
1098
  }
1099
1099
  })(this._options.data)), this._qr.make(), this._options.type === _ ? this._setupCanvas() : this._setupSvg(), this.append(this._container));
1100
1100
  }
1101
- append(t7) {
1102
- if (t7) {
1103
- if ("function" != typeof t7.appendChild) throw "Container should be a single DOM node";
1104
- this._options.type === _ ? this._domCanvas && t7.appendChild(this._domCanvas) : this._svg && t7.appendChild(this._svg), this._container = t7;
1101
+ append(t8) {
1102
+ if (t8) {
1103
+ if ("function" != typeof t8.appendChild) throw "Container should be a single DOM node";
1104
+ this._options.type === _ ? this._domCanvas && t8.appendChild(this._domCanvas) : this._svg && t8.appendChild(this._svg), this._container = t8;
1105
1105
  }
1106
1106
  }
1107
- applyExtension(t7) {
1108
- if (!t7) throw "Extension function should be defined.";
1109
- this._extension = t7, this.update();
1107
+ applyExtension(t8) {
1108
+ if (!t8) throw "Extension function should be defined.";
1109
+ this._extension = t8, this.update();
1110
1110
  }
1111
1111
  deleteExtension() {
1112
1112
  this._extension = void 0, this.update();
1113
1113
  }
1114
- async getRawData(t7 = "png") {
1114
+ async getRawData(t8 = "png") {
1115
1115
  if (!this._qr) throw "QR code is empty";
1116
- const e3 = await this._getElement(t7), i2 = A(t7);
1116
+ const e3 = await this._getElement(t8), i2 = A(t8);
1117
1117
  if (!e3) return null;
1118
- if ("svg" === t7.toLowerCase()) {
1119
- const t8 = `<?xml version="1.0" standalone="no"?>\r
1118
+ if ("svg" === t8.toLowerCase()) {
1119
+ const t9 = `<?xml version="1.0" standalone="no"?>\r
1120
1120
  ${new this._window.XMLSerializer().serializeToString(e3)}`;
1121
- return "undefined" == typeof Blob || this._options.jsdom ? Buffer.from(t8) : new Blob([t8], { type: i2 });
1121
+ return "undefined" == typeof Blob || this._options.jsdom ? Buffer.from(t9) : new Blob([t9], { type: i2 });
1122
1122
  }
1123
- return new Promise(((t8) => {
1123
+ return new Promise(((t9) => {
1124
1124
  const r3 = e3;
1125
- if ("toBuffer" in r3) if ("image/png" === i2) t8(r3.toBuffer(i2));
1126
- else if ("image/jpeg" === i2) t8(r3.toBuffer(i2));
1125
+ if ("toBuffer" in r3) if ("image/png" === i2) t9(r3.toBuffer(i2));
1126
+ else if ("image/jpeg" === i2) t9(r3.toBuffer(i2));
1127
1127
  else {
1128
1128
  if ("application/pdf" !== i2) throw Error("Unsupported extension");
1129
- t8(r3.toBuffer(i2));
1129
+ t9(r3.toBuffer(i2));
1130
1130
  }
1131
- else "toBlob" in r3 && r3.toBlob(t8, i2, 1);
1131
+ else "toBlob" in r3 && r3.toBlob(t9, i2, 1);
1132
1132
  }));
1133
1133
  }
1134
- async download(t7) {
1134
+ async download(t8) {
1135
1135
  if (!this._qr) throw "QR code is empty";
1136
1136
  if ("undefined" == typeof Blob) throw "Cannot download in Node.js, call getRawData instead.";
1137
1137
  let e3 = "png", i2 = "qr";
1138
- "string" == typeof t7 ? (e3 = t7, console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")) : "object" == typeof t7 && null !== t7 && (t7.name && (i2 = t7.name), t7.extension && (e3 = t7.extension));
1138
+ "string" == typeof t8 ? (e3 = t8, console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")) : "object" == typeof t8 && null !== t8 && (t8.name && (i2 = t8.name), t8.extension && (e3 = t8.extension));
1139
1139
  const r3 = await this._getElement(e3);
1140
1140
  if (r3) if ("svg" === e3.toLowerCase()) {
1141
- let t8 = new XMLSerializer().serializeToString(r3);
1142
- t8 = '<?xml version="1.0" standalone="no"?>\r\n' + t8, n(`data:${A(e3)};charset=utf-8,${encodeURIComponent(t8)}`, `${i2}.svg`);
1141
+ let t9 = new XMLSerializer().serializeToString(r3);
1142
+ t9 = '<?xml version="1.0" standalone="no"?>\r\n' + t9, n(`data:${A(e3)};charset=utf-8,${encodeURIComponent(t9)}`, `${i2}.svg`);
1143
1143
  } else n(r3.toDataURL(A(e3)), `${i2}.${e3}`);
1144
1144
  }
1145
1145
  }
@@ -1181,7 +1181,7 @@ __export(index_exports, {
1181
1181
  module.exports = __toCommonJS(index_exports);
1182
1182
 
1183
1183
  // src/provider.tsx
1184
- var import_react21 = __toESM(require("react"));
1184
+ var import_react22 = __toESM(require("react"));
1185
1185
 
1186
1186
  // ../react-provider/dist/index.mjs
1187
1187
  var import_react = require("react");
@@ -1338,13 +1338,6 @@ var ChevronRight = createLucideIcon("ChevronRight", [
1338
1338
  // ../../node_modules/.pnpm/lucide-react@0.454.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/chevron-up.js
1339
1339
  var ChevronUp = createLucideIcon("ChevronUp", [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]]);
1340
1340
 
1341
- // ../../node_modules/.pnpm/lucide-react@0.454.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/circle-help.js
1342
- var CircleHelp = createLucideIcon("CircleHelp", [
1343
- ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
1344
- ["path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3", key: "1u773s" }],
1345
- ["path", { d: "M12 17h.01", key: "p32p05" }]
1346
- ]);
1347
-
1348
1341
  // ../../node_modules/.pnpm/lucide-react@0.454.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/clock.js
1349
1342
  var Clock = createLucideIcon("Clock", [
1350
1343
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
@@ -1376,15 +1369,6 @@ var ExternalLink = createLucideIcon("ExternalLink", [
1376
1369
  ["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
1377
1370
  ]);
1378
1371
 
1379
- // ../../node_modules/.pnpm/lucide-react@0.454.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/file-text.js
1380
- var FileText = createLucideIcon("FileText", [
1381
- ["path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z", key: "1rqfz7" }],
1382
- ["path", { d: "M14 2v4a2 2 0 0 0 2 2h4", key: "tnqrlb" }],
1383
- ["path", { d: "M10 9H8", key: "b1mrlr" }],
1384
- ["path", { d: "M16 13H8", key: "t4e002" }],
1385
- ["path", { d: "M16 17H8", key: "z1uh3a" }]
1386
- ]);
1387
-
1388
1372
  // ../../node_modules/.pnpm/lucide-react@0.454.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/info.js
1389
1373
  var Info = createLucideIcon("Info", [
1390
1374
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
@@ -1432,6 +1416,18 @@ var TriangleAlert = createLucideIcon("TriangleAlert", [
1432
1416
  ["path", { d: "M12 17h.01", key: "p32p05" }]
1433
1417
  ]);
1434
1418
 
1419
+ // ../../node_modules/.pnpm/lucide-react@0.454.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/wallet-minimal.js
1420
+ var WalletMinimal = createLucideIcon("WalletMinimal", [
1421
+ ["path", { d: "M17 14h.01", key: "7oqj8z" }],
1422
+ [
1423
+ "path",
1424
+ {
1425
+ d: "M7 7h12a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14",
1426
+ key: "u1rqew"
1427
+ }
1428
+ ]
1429
+ ]);
1430
+
1435
1431
  // ../../node_modules/.pnpm/lucide-react@0.454.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/x.js
1436
1432
  var X = createLucideIcon("X", [
1437
1433
  ["path", { d: "M18 6 6 18", key: "1bl5f8" }],
@@ -2411,25 +2407,25 @@ function createFocusGuard() {
2411
2407
 
2412
2408
  // ../../node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs
2413
2409
  var __assign = function() {
2414
- __assign = Object.assign || function __assign2(t5) {
2410
+ __assign = Object.assign || function __assign2(t6) {
2415
2411
  for (var s, i = 1, n = arguments.length; i < n; i++) {
2416
2412
  s = arguments[i];
2417
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t5[p] = s[p];
2413
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t6[p] = s[p];
2418
2414
  }
2419
- return t5;
2415
+ return t6;
2420
2416
  };
2421
2417
  return __assign.apply(this, arguments);
2422
2418
  };
2423
2419
  function __rest(s, e) {
2424
- var t5 = {};
2420
+ var t6 = {};
2425
2421
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
2426
- t5[p] = s[p];
2422
+ t6[p] = s[p];
2427
2423
  if (s != null && typeof Object.getOwnPropertySymbols === "function")
2428
2424
  for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
2429
2425
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
2430
- t5[p[i]] = s[p[i]];
2426
+ t6[p[i]] = s[p[i]];
2431
2427
  }
2432
- return t5;
2428
+ return t6;
2433
2429
  }
2434
2430
  function __spreadArray(to, from, pack) {
2435
2431
  if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
@@ -3556,16 +3552,16 @@ var Close = DialogClose;
3556
3552
 
3557
3553
  // ../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs
3558
3554
  function r(e) {
3559
- var t5, f, n = "";
3555
+ var t6, f, n = "";
3560
3556
  if ("string" == typeof e || "number" == typeof e) n += e;
3561
3557
  else if ("object" == typeof e) if (Array.isArray(e)) {
3562
3558
  var o = e.length;
3563
- for (t5 = 0; t5 < o; t5++) e[t5] && (f = r(e[t5])) && (n && (n += " "), n += f);
3559
+ for (t6 = 0; t6 < o; t6++) e[t6] && (f = r(e[t6])) && (n && (n += " "), n += f);
3564
3560
  } else for (f in e) e[f] && (n && (n += " "), n += f);
3565
3561
  return n;
3566
3562
  }
3567
3563
  function clsx() {
3568
- for (var e, t5, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t5 = r(e)) && (n && (n += " "), n += t5);
3564
+ for (var e, t6, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t6 = r(e)) && (n && (n += " "), n += t6);
3569
3565
  return n;
3570
3566
  }
3571
3567
 
@@ -6151,6 +6147,26 @@ async function queryExecutions(externalUserId, publishableKey) {
6151
6147
  }
6152
6148
  return response.json();
6153
6149
  }
6150
+ async function pollDirectExecutions(request, publishableKey) {
6151
+ const pk = publishableKey || DEFAULT_PUBLISHABLE_KEY;
6152
+ validatePublishableKey(pk);
6153
+ const response = await fetch(
6154
+ `${API_BASE_URL}/v1/public/direct_executions/poll`,
6155
+ {
6156
+ method: "POST",
6157
+ headers: {
6158
+ accept: "application/json",
6159
+ "x-publishable-key": pk,
6160
+ "Content-Type": "application/json"
6161
+ },
6162
+ body: JSON.stringify(request)
6163
+ }
6164
+ );
6165
+ if (!response.ok) {
6166
+ throw new Error(`Failed to poll direct executions: ${response.statusText}`);
6167
+ }
6168
+ return response.json();
6169
+ }
6154
6170
  async function getSupportedDepositTokens(publishableKey, options) {
6155
6171
  const pk = publishableKey || DEFAULT_PUBLISHABLE_KEY;
6156
6172
  validatePublishableKey(pk);
@@ -6538,6 +6554,10 @@ var import_qr_code_styling = __toESM(require_qr_code_styling(), 1);
6538
6554
  var import_jsx_runtime34 = require("react/jsx-runtime");
6539
6555
  var import_react19 = require("react");
6540
6556
  var import_jsx_runtime35 = require("react/jsx-runtime");
6557
+ var import_jsx_runtime36 = require("react/jsx-runtime");
6558
+ var import_jsx_runtime37 = require("react/jsx-runtime");
6559
+ var import_jsx_runtime38 = require("react/jsx-runtime");
6560
+ var import_react20 = require("react");
6541
6561
  var React82 = __toESM(require("react"), 1);
6542
6562
 
6543
6563
  // ../../node_modules/.pnpm/@radix-ui+react-tooltip@1.2.8_@types+react-dom@19.2.3_@types+react@19.2.9__@types+react@19.2._aqltx4jspgwttwvtzmq3z5uagy/node_modules/@radix-ui/react-tooltip/dist/index.mjs
@@ -9270,15 +9290,14 @@ function getHullPresorted(points) {
9270
9290
  }
9271
9291
  }
9272
9292
  var Provider = TooltipProvider;
9273
- var Root32 = Tooltip;
9274
9293
  var Trigger = TooltipTrigger;
9275
9294
  var Portal3 = TooltipPortal;
9276
9295
  var Content22 = TooltipContent;
9277
9296
 
9278
9297
  // ../ui-react/dist/index.mjs
9279
- var import_jsx_runtime36 = require("react/jsx-runtime");
9280
- var import_jsx_runtime37 = require("react/jsx-runtime");
9281
- var import_react20 = require("react");
9298
+ var import_jsx_runtime39 = require("react/jsx-runtime");
9299
+ var import_jsx_runtime40 = require("react/jsx-runtime");
9300
+ var import_react21 = require("react");
9282
9301
  var React92 = __toESM(require("react"), 1);
9283
9302
 
9284
9303
  // ../../node_modules/.pnpm/@radix-ui+react-select@2.2.6_@types+react-dom@19.2.3_@types+react@19.2.9__@types+react@19.2.9_5n4syhs66qrtkkphe44qzgdimq/node_modules/@radix-ui/react-select/dist/index.mjs
@@ -10514,9 +10533,9 @@ var ScrollDownButton = SelectScrollDownButton;
10514
10533
  var Separator = SelectSeparator;
10515
10534
 
10516
10535
  // ../ui-react/dist/index.mjs
10517
- var import_jsx_runtime38 = require("react/jsx-runtime");
10518
- var import_jsx_runtime39 = require("react/jsx-runtime");
10519
- var import_jsx_runtime40 = require("react/jsx-runtime");
10536
+ var import_jsx_runtime41 = require("react/jsx-runtime");
10537
+ var import_jsx_runtime42 = require("react/jsx-runtime");
10538
+ var import_jsx_runtime43 = require("react/jsx-runtime");
10520
10539
  var React102 = __toESM(require("react"), 1);
10521
10540
 
10522
10541
  // ../../node_modules/.pnpm/@radix-ui+react-slot@1.2.4_@types+react@19.2.9_react@18.3.1/node_modules/@radix-ui/react-slot/dist/index.mjs
@@ -10663,7 +10682,7 @@ var cva = (base, config) => (props) => {
10663
10682
  };
10664
10683
 
10665
10684
  // ../ui-react/dist/index.mjs
10666
- var import_jsx_runtime41 = require("react/jsx-runtime");
10685
+ var import_jsx_runtime44 = require("react/jsx-runtime");
10667
10686
  function cn(...inputs) {
10668
10687
  return twMerge(clsx(inputs));
10669
10688
  }
@@ -14196,7 +14215,7 @@ function saveRecentToken(token) {
14196
14215
  try {
14197
14216
  const recent = getRecentTokens();
14198
14217
  const filtered = recent.filter(
14199
- (t5) => !(t5.symbol === token.symbol && t5.chainType === token.chainType && t5.chainId === token.chainId)
14218
+ (t6) => !(t6.symbol === token.symbol && t6.chainType === token.chainType && t6.chainId === token.chainId)
14200
14219
  );
14201
14220
  filtered.unshift(token);
14202
14221
  const trimmed = filtered.slice(0, MAX_RECENT_TOKENS);
@@ -14209,7 +14228,7 @@ function removeRecentToken(token) {
14209
14228
  try {
14210
14229
  const recent = getRecentTokens();
14211
14230
  const filtered = recent.filter(
14212
- (t5) => !(t5.symbol === token.symbol && t5.chainType === token.chainType && t5.chainId === token.chainId)
14231
+ (t6) => !(t6.symbol === token.symbol && t6.chainType === token.chainType && t6.chainId === token.chainId)
14213
14232
  );
14214
14233
  localStorage.setItem(STORAGE_KEY, JSON.stringify(filtered));
14215
14234
  return filtered;
@@ -14248,7 +14267,7 @@ function TokenSelectorSheet({
14248
14267
  const addOption = (symbol, chainType, chainId, isRecent) => {
14249
14268
  const key = `${symbol}-${chainType}:${chainId}`;
14250
14269
  if (seen.has(key)) return;
14251
- const tokenData = tokens.find((t5) => t5.symbol === symbol);
14270
+ const tokenData = tokens.find((t6) => t6.symbol === symbol);
14252
14271
  if (!tokenData) return;
14253
14272
  const chainData = tokenData.chains.find(
14254
14273
  (c) => c.chain_type === chainType && c.chain_id === chainId
@@ -14616,12 +14635,175 @@ function TokenSelectorSheet({
14616
14635
  }
14617
14636
  );
14618
14637
  }
14638
+ function PollCooldownButton({
14639
+ currentWalletId,
14640
+ pollCooldown,
14641
+ publishableKey,
14642
+ onCooldownChange,
14643
+ cooldownRef,
14644
+ buttonText = "Check again"
14645
+ }) {
14646
+ const handleClick = async () => {
14647
+ if (!currentWalletId || pollCooldown > 0) return;
14648
+ try {
14649
+ await pollDirectExecutions(
14650
+ { deposit_wallet_id: currentWalletId },
14651
+ publishableKey
14652
+ );
14653
+ const cooldownSeconds = 5;
14654
+ onCooldownChange(cooldownSeconds);
14655
+ if (cooldownRef.current) clearInterval(cooldownRef.current);
14656
+ cooldownRef.current = setInterval(() => {
14657
+ onCooldownChange((prev) => {
14658
+ if (prev <= 1) {
14659
+ if (cooldownRef.current) clearInterval(cooldownRef.current);
14660
+ cooldownRef.current = null;
14661
+ return 0;
14662
+ }
14663
+ return prev - 1;
14664
+ });
14665
+ }, 1e3);
14666
+ } catch (error) {
14667
+ console.error("Failed to start poll workflow:", error);
14668
+ }
14669
+ };
14670
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
14671
+ "button",
14672
+ {
14673
+ onClick: handleClick,
14674
+ disabled: !currentWalletId || pollCooldown > 0,
14675
+ className: "uf-w-full uf-rounded-xl uf-p-2 uf-flex uf-items-center uf-gap-3 uf-justify-center uf-text-center uf-text-sm uf-bg-primary hover:uf-bg-primary/80 uf-transition-colors uf-text-left disabled:uf-opacity-50 disabled:uf-cursor-not-allowed",
14676
+ children: pollCooldown > 0 ? `${buttonText} in ${pollCooldown}s` : "I've made the deposit"
14677
+ }
14678
+ ) });
14679
+ }
14680
+ function DepositFooterLinks({ onGlossaryClick }) {
14681
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "uf-flex uf-justify-end uf-items-center uf-gap-2 uf-text-xs uf-text-muted-foreground", children: [
14682
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
14683
+ "a",
14684
+ {
14685
+ href: "https://unifold.io/terms",
14686
+ target: "_blank",
14687
+ className: "uf-cursor-pointer hover:uf-text-foreground uf-transition-colors",
14688
+ children: "terms"
14689
+ }
14690
+ ),
14691
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "uf-text-xs uf-text-muted-foreground", children: "|" }),
14692
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
14693
+ "a",
14694
+ {
14695
+ href: "https://unifold.io/support",
14696
+ target: "_blank",
14697
+ className: "uf-cursor-pointer hover:uf-text-foreground uf-transition-colors",
14698
+ children: "help"
14699
+ }
14700
+ ),
14701
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "uf-text-xs uf-text-muted-foreground", children: "|" }),
14702
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
14703
+ "div",
14704
+ {
14705
+ className: "uf-cursor-pointer hover:uf-text-foreground uf-transition-colors",
14706
+ onClick: onGlossaryClick,
14707
+ children: "glossary"
14708
+ }
14709
+ )
14710
+ ] });
14711
+ }
14712
+ var t2 = i18n2.transferCrypto;
14713
+ function GlossaryModal({
14714
+ open,
14715
+ onOpenChange,
14716
+ themeClass,
14717
+ colors: colors2
14718
+ }) {
14719
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Dialog2, { open, onOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
14720
+ DialogContent2,
14721
+ {
14722
+ className: `sm:uf-max-w-[400px] !uf-top-auto !uf-h-auto sm:!uf-top-[50%] uf-border-secondary uf-text-foreground uf-p-0 uf-gap-0 [&>button]:uf-hidden ${themeClass}`,
14723
+ style: { backgroundColor: colors2.card },
14724
+ children: [
14725
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "uf-flex uf-items-center uf-justify-between uf-p-4 uf-pb-2", children: [
14726
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(DialogTitle2, { className: "uf-text-base uf-font-semibold", children: "Glossary" }),
14727
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
14728
+ "button",
14729
+ {
14730
+ onClick: () => onOpenChange(false),
14731
+ className: "uf-p-1 uf-rounded-lg hover:uf-bg-secondary uf-transition-colors uf-text-muted-foreground hover:uf-text-foreground",
14732
+ children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(X, { className: "uf-w-4 uf-h-4" })
14733
+ }
14734
+ )
14735
+ ] }),
14736
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "uf-max-h-[60vh] sm:uf-max-h-[400px] uf-overflow-y-auto uf-px-4 uf-pb-4 [scrollbar-width:none] [&::-webkit-scrollbar]:uf-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "uf-space-y-4", children: [
14737
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { children: [
14738
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "uf-text-sm uf-font-medium uf-mb-1", children: "Your Deposit Token" }),
14739
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("p", { className: "uf-text-xs uf-text-muted-foreground uf-leading-relaxed", children: t2.selectTokenDepositTooltip })
14740
+ ] }),
14741
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "uf-border-t uf-border-border" }),
14742
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { children: [
14743
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "uf-text-sm uf-font-medium uf-mb-1", children: "Deposit Address" }),
14744
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("p", { className: "uf-text-xs uf-text-muted-foreground uf-leading-relaxed", children: "A unique wallet address generated for you. Send supported tokens to this address and they will be automatically converted and deposited into your account." })
14745
+ ] }),
14746
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "uf-border-t uf-border-border" }),
14747
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { children: [
14748
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "uf-text-sm uf-font-medium uf-mb-1", children: "Price Impact" }),
14749
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("p", { className: "uf-text-xs uf-text-muted-foreground uf-leading-relaxed", children: t2.priceImpact.tooltip })
14750
+ ] }),
14751
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "uf-border-t uf-border-border" }),
14752
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { children: [
14753
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "uf-text-sm uf-font-medium uf-mb-1", children: "Slippage" }),
14754
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("p", { className: "uf-text-xs uf-text-muted-foreground uf-leading-relaxed", children: t2.slippage.tooltip })
14755
+ ] }),
14756
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "uf-border-t uf-border-border" }),
14757
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { children: [
14758
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "uf-text-sm uf-font-medium uf-mb-1", children: "Processing Time" }),
14759
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("p", { className: "uf-text-xs uf-text-muted-foreground uf-leading-relaxed", children: "The estimated time for your deposit to be confirmed and credited. This depends on the source network's block confirmation time and current congestion." })
14760
+ ] }),
14761
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "uf-border-t uf-border-border" }),
14762
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { children: [
14763
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "uf-text-sm uf-font-medium uf-mb-1", children: "Minimum Deposit" }),
14764
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("p", { className: "uf-text-xs uf-text-muted-foreground uf-leading-relaxed", children: t2.minDeposit.tooltip })
14765
+ ] }),
14766
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "uf-border-t uf-border-border" }),
14767
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { children: [
14768
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "uf-text-sm uf-font-medium uf-mb-1", children: "Recipient Address" }),
14769
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("p", { className: "uf-text-xs uf-text-muted-foreground uf-leading-relaxed", children: "The destination address on the target blockchain where your converted deposit will be sent. This is typically your wallet address on the application's native chain." })
14770
+ ] })
14771
+ ] }) })
14772
+ ]
14773
+ }
14774
+ ) });
14775
+ }
14776
+ function useCopyAddress() {
14777
+ const [copied, setCopied] = (0, import_react20.useState)(false);
14778
+ const handleCopy = (address) => {
14779
+ if (!address) return;
14780
+ navigator.clipboard.writeText(address);
14781
+ setCopied(true);
14782
+ setTimeout(() => setCopied(false), 2e3);
14783
+ };
14784
+ return { copied, handleCopy };
14785
+ }
14619
14786
  var TooltipProvider2 = Provider;
14620
- var Tooltip2 = Root32;
14621
- var TooltipTrigger2 = Trigger;
14787
+ var TooltipContext = React82.createContext({
14788
+ open: false,
14789
+ onOpenChange: () => {
14790
+ }
14791
+ });
14792
+ var TooltipTrigger2 = React82.forwardRef(({ onClick, ...props }, ref) => {
14793
+ const { open, onOpenChange } = React82.useContext(TooltipContext);
14794
+ const handleClick = React82.useCallback(
14795
+ (e) => {
14796
+ onOpenChange(!open);
14797
+ onClick?.(e);
14798
+ },
14799
+ [open, onOpenChange, onClick]
14800
+ );
14801
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Trigger, { ref, onClick: handleClick, ...props });
14802
+ });
14803
+ TooltipTrigger2.displayName = Trigger.displayName;
14622
14804
  var TooltipContent2 = React82.forwardRef(({ className, sideOffset = 4, ...props }, ref) => {
14623
14805
  const { themeClass, colors: colors2 } = useTheme();
14624
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Portal3, { children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
14806
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Portal3, { children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
14625
14807
  Content22,
14626
14808
  {
14627
14809
  ref,
@@ -14637,7 +14819,7 @@ var TooltipContent2 = React82.forwardRef(({ className, sideOffset = 4, ...props
14637
14819
  ) });
14638
14820
  });
14639
14821
  TooltipContent2.displayName = Content22.displayName;
14640
- var t2 = i18n2.transferCrypto;
14822
+ var t3 = i18n2.transferCrypto;
14641
14823
  var getChainKey = (chainId, chainType) => {
14642
14824
  return `${chainType}:${chainId}`;
14643
14825
  };
@@ -14662,8 +14844,20 @@ function TransferCryptoSingleInput({
14662
14844
  const [token, setToken] = (0, import_react17.useState)("USDC");
14663
14845
  const [chain, setChain] = (0, import_react17.useState)("solana:mainnet");
14664
14846
  const [copied, setCopied] = (0, import_react17.useState)(false);
14847
+ const { copied: copiedRecipient, handleCopy: handleCopyRecipientAddress } = useCopyAddress();
14848
+ const [glossaryOpen, setGlossaryOpen] = (0, import_react17.useState)(false);
14849
+ const [pollCooldown, setPollCooldown] = (0, import_react17.useState)(0);
14850
+ const cooldownRef = (0, import_react17.useRef)(null);
14665
14851
  const [internalWallets, setInternalWallets] = (0, import_react17.useState)([]);
14666
14852
  const [loading, setLoading] = (0, import_react17.useState)(!externalWallets?.length);
14853
+ (0, import_react17.useEffect)(() => {
14854
+ return () => {
14855
+ if (cooldownRef.current) {
14856
+ clearInterval(cooldownRef.current);
14857
+ cooldownRef.current = null;
14858
+ }
14859
+ };
14860
+ }, []);
14667
14861
  const wallets = externalWallets?.length ? externalWallets : internalWallets;
14668
14862
  const [error, setError] = (0, import_react17.useState)(null);
14669
14863
  const { executions: depositExecutions, isPolling } = useDepositPolling({
@@ -14679,8 +14873,8 @@ function TransferCryptoSingleInput({
14679
14873
  const [depositsModalOpen, setDepositsModalOpen] = (0, import_react17.useState)(false);
14680
14874
  const [tokenSelectorOpen, setTokenSelectorOpen] = (0, import_react17.useState)(false);
14681
14875
  const allChainsMap = /* @__PURE__ */ new Map();
14682
- supportedTokens.forEach((t5) => {
14683
- t5.chains.forEach((c) => {
14876
+ supportedTokens.forEach((t6) => {
14877
+ t6.chains.forEach((c) => {
14684
14878
  const comboKey = `${c.chain_type}:${c.chain_id}`;
14685
14879
  if (!allChainsMap.has(comboKey)) {
14686
14880
  allChainsMap.set(comboKey, c);
@@ -14713,25 +14907,25 @@ function TransferCryptoSingleInput({
14713
14907
  let selectedTokenData;
14714
14908
  let selectedChainData;
14715
14909
  if (destinationTokenAddress) {
14716
- for (const t5 of response.data) {
14717
- const matchingChain = t5.chains.find(
14910
+ for (const t6 of response.data) {
14911
+ const matchingChain = t6.chains.find(
14718
14912
  (c) => c.token_address.toLowerCase() === destinationTokenAddress.toLowerCase()
14719
14913
  );
14720
14914
  if (matchingChain) {
14721
- selectedTokenData = t5;
14915
+ selectedTokenData = t6;
14722
14916
  selectedChainData = matchingChain;
14723
14917
  break;
14724
14918
  }
14725
14919
  }
14726
14920
  }
14727
14921
  if (!selectedTokenData) {
14728
- selectedTokenData = response.data.find((t5) => t5.symbol === "USDC");
14922
+ selectedTokenData = response.data.find((t6) => t6.symbol === "USDC");
14729
14923
  if (selectedTokenData && selectedTokenData.chains.length > 0) {
14730
14924
  selectedChainData = selectedTokenData.chains[0];
14731
14925
  }
14732
14926
  }
14733
14927
  if (!selectedTokenData) {
14734
- selectedTokenData = response.data.find((t5) => t5.symbol === "USDT");
14928
+ selectedTokenData = response.data.find((t6) => t6.symbol === "USDT");
14735
14929
  if (selectedTokenData && selectedTokenData.chains.length > 0) {
14736
14930
  selectedChainData = selectedTokenData.chains[0];
14737
14931
  }
@@ -14831,7 +15025,7 @@ function TransferCryptoSingleInput({
14831
15025
  ]);
14832
15026
  (0, import_react17.useEffect)(() => {
14833
15027
  if (!supportedTokens.length) return;
14834
- const currentToken = supportedTokens.find((t5) => t5.symbol === token);
15028
+ const currentToken = supportedTokens.find((t6) => t6.symbol === token);
14835
15029
  if (!currentToken || currentToken.chains.length === 0) return;
14836
15030
  const isChainAvailable = currentToken.chains.some((c) => {
14837
15031
  const key = getChainKey(c.chain_id, c.chain_type);
@@ -14843,7 +15037,7 @@ function TransferCryptoSingleInput({
14843
15037
  setChain(newChain);
14844
15038
  }
14845
15039
  }, [token, supportedTokens, chain]);
14846
- const selectedToken = supportedTokens.find((t5) => t5.symbol === token);
15040
+ const selectedToken = supportedTokens.find((t6) => t6.symbol === token);
14847
15041
  const availableChainsForToken = selectedToken?.chains || [];
14848
15042
  const currentChainFromBackend = availableChainsForToken.find((c) => {
14849
15043
  const key = getChainKey(c.chain_id, c.chain_type);
@@ -14859,67 +15053,44 @@ function TransferCryptoSingleInput({
14859
15053
  };
14860
15054
  const formatProcessingTime = (seconds) => {
14861
15055
  if (seconds === null) {
14862
- return t2.processingTime.lessThanMinutes.replace("{{minutes}}", "1");
15056
+ return t3.processingTime.lessThanMinutes.replace("{{minutes}}", "1");
14863
15057
  }
14864
15058
  const minutes = Math.ceil(seconds / 60);
14865
15059
  if (minutes < 60) {
14866
- return t2.processingTime.lessThanMinutes.replace(
15060
+ return t3.processingTime.lessThanMinutes.replace(
14867
15061
  "{{minutes}}",
14868
15062
  String(minutes)
14869
15063
  );
14870
15064
  }
14871
15065
  const hours = Math.ceil(minutes / 60);
14872
- return t2.processingTime.lessThanHours.replace("{{hours}}", String(hours));
15066
+ return t3.processingTime.lessThanHours.replace("{{hours}}", String(hours));
14873
15067
  };
14874
15068
  const priceImpact = currentChainFromBackend?.estimated_price_impact_percent ?? 0;
14875
15069
  const maxSlippage = currentChainFromBackend?.max_slippage_percent ?? 0.25;
14876
15070
  const processingTime = currentChainFromBackend?.estimated_processing_time ?? null;
14877
15071
  const minDepositUsd = currentChainFromBackend?.minimum_deposit_amount_usd ?? 3;
14878
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(TooltipProvider2, { delayDuration: 0, skipDelayDuration: 0, children: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
15072
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(TooltipProvider2, { delayDuration: 0, skipDelayDuration: 0, children: /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
14879
15073
  "div",
14880
15074
  {
14881
15075
  className: "uf-space-y-3 [scrollbar-width:none] [&::-webkit-scrollbar]:uf-hidden",
14882
15076
  style: { backgroundColor: colors2.background },
14883
15077
  children: [
14884
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "uf-text-xs uf-text-muted-foreground uf-mb-1 uf-flex uf-items-center uf-justify-between", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "uf-flex uf-items-center uf-gap-1", children: [
14885
- t2.selectTokenDeposit,
14886
- /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(Tooltip2, { children: [
14887
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(TooltipTrigger2, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
14888
- "span",
14889
- {
14890
- className: "uf-inline-flex uf-cursor-pointer uf-transition-colors hover:uf-text-foreground",
14891
- tabIndex: 0,
14892
- role: "button",
14893
- "aria-label": "Deposit address information",
14894
- children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Info, { className: "uf-w-3 uf-h-3" })
14895
- }
14896
- ) }),
14897
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
14898
- TooltipContent2,
14899
- {
14900
- side: "bottom",
14901
- align: "center",
14902
- className: "uf-max-w-[240px]",
14903
- children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("p", { children: t2.selectTokenDepositTooltip })
14904
- }
14905
- )
14906
- ] })
14907
- ] }) }),
14908
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
15078
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "uf-text-xs uf-text-muted-foreground uf-mb-1 uf-flex uf-items-center uf-justify-between", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "uf-flex uf-items-center uf-gap-1", children: t3.selectTokenDeposit }) }),
15079
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
14909
15080
  "button",
14910
15081
  {
14911
15082
  onClick: () => setTokenSelectorOpen(true),
14912
15083
  disabled: tokensLoading || supportedTokens.length === 0,
14913
15084
  className: "uf-w-full uf-bg-secondary hover:uf-bg-accent uf-rounded-xl uf-p-3 uf-flex uf-items-center uf-gap-3 uf-transition-colors disabled:uf-opacity-50 disabled:uf-cursor-not-allowed",
14914
- children: tokensLoading ? /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "uf-flex uf-items-center uf-gap-3 uf-animate-pulse", children: [
14915
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "uf-w-10 uf-h-10 uf-rounded-full uf-bg-muted" }),
14916
- /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "uf-flex-1", children: [
14917
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "uf-h-4 uf-w-16 uf-bg-muted uf-rounded uf-mb-1" }),
14918
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "uf-h-3 uf-w-24 uf-bg-muted uf-rounded" })
15085
+ children: tokensLoading ? /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "uf-flex uf-items-center uf-gap-3 uf-animate-pulse", children: [
15086
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "uf-w-10 uf-h-10 uf-rounded-full uf-bg-muted" }),
15087
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "uf-flex-1", children: [
15088
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "uf-h-4 uf-w-16 uf-bg-muted uf-rounded uf-mb-1" }),
15089
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "uf-h-3 uf-w-24 uf-bg-muted uf-rounded" })
14919
15090
  ] })
14920
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(import_jsx_runtime37.Fragment, { children: [
14921
- /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "uf-relative uf-flex-shrink-0", children: [
14922
- selectedToken && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
15091
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(import_jsx_runtime40.Fragment, { children: [
15092
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "uf-relative uf-flex-shrink-0", children: [
15093
+ selectedToken && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
14923
15094
  "img",
14924
15095
  {
14925
15096
  src: selectedToken.icon_url,
@@ -14927,7 +15098,7 @@ function TransferCryptoSingleInput({
14927
15098
  className: "uf-w-10 uf-h-10 uf-rounded-full"
14928
15099
  }
14929
15100
  ),
14930
- (currentChainFromBackend || currentChainData) && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
15101
+ (currentChainFromBackend || currentChainData) && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
14931
15102
  "img",
14932
15103
  {
14933
15104
  src: currentChainFromBackend?.icon_url || currentChainData?.icon_url,
@@ -14936,12 +15107,12 @@ function TransferCryptoSingleInput({
14936
15107
  }
14937
15108
  )
14938
15109
  ] }),
14939
- /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "uf-flex-1 uf-text-left uf-min-w-0", children: [
14940
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "uf-text-sm uf-font-medium uf-text-foreground", children: selectedToken?.symbol || token }),
14941
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "uf-text-xs uf-text-muted-foreground uf-truncate", children: currentChainFromBackend?.chain_name || currentChainData?.chain_name || "Select network" })
15110
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "uf-flex-1 uf-text-left uf-min-w-0", children: [
15111
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "uf-text-sm uf-font-medium uf-text-foreground", children: selectedToken?.symbol || token }),
15112
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "uf-text-xs uf-text-muted-foreground uf-truncate", children: currentChainFromBackend?.chain_name || currentChainData?.chain_name || "Select network" })
14942
15113
  ] }),
14943
- /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "uf-flex uf-items-center uf-gap-2 uf-flex-shrink-0", children: [
14944
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "uf-text-right", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
15114
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "uf-flex uf-items-center uf-gap-2 uf-flex-shrink-0", children: [
15115
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "uf-text-right", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
14945
15116
  "div",
14946
15117
  {
14947
15118
  className: `uf-text-xs uf-font-medium ${isDarkMode ? "uf-text-amber-400" : "uf-text-amber-600"}`,
@@ -14952,12 +15123,12 @@ function TransferCryptoSingleInput({
14952
15123
  ]
14953
15124
  }
14954
15125
  ) }),
14955
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(ChevronRight, { className: "uf-w-4 uf-h-4 uf-text-muted-foreground" })
15126
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(ChevronRight, { className: "uf-w-4 uf-h-4 uf-text-muted-foreground" })
14956
15127
  ] })
14957
15128
  ] })
14958
15129
  }
14959
15130
  ),
14960
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
15131
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
14961
15132
  TokenSelectorSheet,
14962
15133
  {
14963
15134
  open: tokenSelectorOpen,
@@ -14971,226 +15142,157 @@ function TransferCryptoSingleInput({
14971
15142
  }
14972
15143
  }
14973
15144
  ),
14974
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "uf-flex uf-justify-center uf-py-2", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "uf-p-2 uf-rounded-2xl uf-shadow-lg uf-border uf-border-border", children: loading ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
14975
- "div",
14976
- {
14977
- className: "uf-flex uf-items-center uf-justify-center",
14978
- style: { width: 180, height: 180 },
14979
- children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "uf-text-foreground uf-text-sm", children: t2.loadingQRCode })
14980
- }
14981
- ) : depositAddress ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
14982
- StyledQRCode,
14983
- {
14984
- value: depositAddress,
14985
- size: 180,
14986
- imageUrl: currentChainData?.icon_url || currentChainFromBackend?.icon_url,
14987
- imageSize: 45,
14988
- darkMode: isDarkMode
14989
- },
14990
- `qr-${depositAddress}-${chain}`
14991
- ) : /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
14992
- "div",
14993
- {
14994
- className: "uf-flex uf-items-center uf-justify-center",
14995
- style: { width: 180, height: 180 },
14996
- children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "uf-text-red-400 uf-text-sm", children: t2.noAddressAvailable })
14997
- }
14998
- ) }) }),
14999
- /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { children: [
15000
- /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "uf-text-xs uf-text-muted-foreground uf-mb-2 uf-flex uf-items-center uf-gap-1", children: [
15001
- t2.depositAddress.label,
15002
- /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(Tooltip2, { children: [
15003
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(TooltipTrigger2, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
15004
- "span",
15005
- {
15006
- className: "uf-inline-flex uf-cursor-pointer uf-transition-colors hover:uf-text-foreground",
15007
- tabIndex: 0,
15008
- role: "button",
15009
- "aria-label": "Deposit address information",
15010
- children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Info, { className: "uf-w-3 uf-h-3" })
15011
- }
15012
- ) }),
15013
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
15014
- TooltipContent2,
15015
- {
15016
- side: "top",
15017
- align: "center",
15018
- className: "uf-max-w-[240px]",
15019
- children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("p", { children: t2.depositAddress.tooltip.replace("{{token}}", token) })
15020
- }
15021
- )
15145
+ error && !loading && /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "uf-bg-destructive/10 uf-border uf-border-destructive/20 uf-rounded-xl uf-p-3 uf-space-y-2", children: [
15146
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "uf-flex uf-items-start uf-gap-2", children: [
15147
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Info, { className: "uf-w-4 uf-h-4 uf-text-destructive uf-flex-shrink-0 uf-mt-0.5" }),
15148
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "uf-flex-1 uf-min-w-0", children: [
15149
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "uf-text-xs uf-font-medium uf-text-destructive uf-mb-1", children: "Failed to create deposit address" }),
15150
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "uf-text-xs uf-text-muted-foreground", children: error })
15022
15151
  ] })
15023
15152
  ] }),
15024
- loading ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "uf-bg-secondary uf-rounded-lg uf-px-3 uf-py-2.5 uf-text-xs uf-text-muted-foreground uf-animate-pulse", children: t2.loading }) : error ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "uf-bg-secondary uf-rounded-lg uf-px-3 uf-py-2.5 uf-text-xs uf-text-red-400", children: error }) : /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
15025
- "button",
15153
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "uf-flex uf-items-center uf-gap-1.5 uf-text-xs uf-text-muted-foreground uf-pl-6", children: [
15154
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Clock, { className: "uf-w-3 uf-h-3" }),
15155
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { children: "Retrying automatically every 5 seconds..." })
15156
+ ] })
15157
+ ] }),
15158
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "uf-flex uf-flex-col uf-items-center uf-pt-2", children: [
15159
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "uf-text-xs uf-text-muted-foreground uf-mb-2 uf-flex uf-items-center uf-gap-1", children: "Intent address" }),
15160
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "uf-rounded-2xl uf-shadow-lg uf-border uf-border-border", children: loading ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
15161
+ "div",
15162
+ {
15163
+ className: "uf-flex uf-items-center uf-justify-center",
15164
+ style: { width: 180, height: 180 },
15165
+ children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "uf-text-foreground uf-text-sm", children: t3.loadingQRCode })
15166
+ }
15167
+ ) : depositAddress ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
15168
+ StyledQRCode,
15169
+ {
15170
+ value: depositAddress,
15171
+ size: 180,
15172
+ imageUrl: currentChainData?.icon_url || currentChainFromBackend?.icon_url,
15173
+ imageSize: 45,
15174
+ darkMode: isDarkMode
15175
+ },
15176
+ `qr-${depositAddress}-${chain}`
15177
+ ) : /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
15178
+ "div",
15179
+ {
15180
+ className: "uf-flex uf-items-center uf-justify-center",
15181
+ style: { width: 180, height: 180 },
15182
+ children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "uf-text-red-400 uf-text-sm", children: t3.noAddressAvailable })
15183
+ }
15184
+ ) })
15185
+ ] }),
15186
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "uf-text-sm uf-text-muted-foreground uf-mb-2 uf-flex uf-justify-center uf-items-center uf-gap-1", children: [
15187
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { className: "uf-text-sm uf-truncate uf-min-w-0", children: loading ? t3.loading : depositAddress ? truncateAddress(depositAddress, 8, 6) : t3.noAddressAvailable }),
15188
+ depositAddress && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
15189
+ "span",
15026
15190
  {
15027
15191
  onClick: handleCopyAddress,
15028
- disabled: !depositAddress,
15029
- className: "uf-w-full uf-bg-secondary hover:uf-bg-accent uf-rounded-lg uf-px-3 uf-py-2.5 uf-flex uf-items-center uf-justify-between uf-gap-2 uf-transition-colors uf-cursor-pointer disabled:uf-opacity-50 disabled:uf-cursor-not-allowed",
15030
- children: [
15031
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "uf-text-xs uf-font-mono uf-truncate uf-min-w-0", children: depositAddress ? truncateAddress(depositAddress, 18, 12) : t2.noAddressAvailable }),
15032
- depositAddress && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
15033
- "span",
15034
- {
15035
- className: `uf-flex-shrink-0 uf-transition-colors ${copied ? "uf-text-green-500" : "uf-text-muted-foreground"}`,
15036
- children: copied ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Check, { className: "uf-w-3.5 uf-h-3.5" }) : /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Copy, { className: "uf-w-3.5 uf-h-3.5" })
15037
- }
15038
- )
15039
- ]
15192
+ className: `uf-flex-shrink-0 uf-transition-colors uf-cursor-pointer ${copied ? "uf-text-green-500" : "uf-text-muted-foreground"}`,
15193
+ children: copied ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Check, { className: "uf-w-3.5 uf-h-3.5" }) : /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Copy, { className: "uf-w-3.5 uf-h-3.5" })
15040
15194
  }
15041
15195
  )
15042
- ] }),
15043
- /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "uf-bg-secondary uf-rounded-xl uf-px-2.5", children: [
15044
- /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
15196
+ ] }) }),
15197
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "uf-bg-secondary uf-rounded-xl uf-px-2.5", children: [
15198
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
15045
15199
  "button",
15046
15200
  {
15047
15201
  onClick: () => setDetailsExpanded(!detailsExpanded),
15048
15202
  className: "uf-w-full uf-flex uf-items-center uf-justify-between uf-py-2.5",
15049
15203
  children: [
15050
- /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "uf-flex uf-items-center uf-gap-2", children: [
15051
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "uf-bg-card uf-rounded-full uf-p-1", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(DollarSign, { className: "uf-w-3 uf-h-3" }) }),
15052
- /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("span", { className: "uf-text-xs", children: [
15053
- t2.priceImpact.label,
15204
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "uf-flex uf-items-center uf-gap-2", children: [
15205
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "uf-bg-card uf-rounded-full uf-p-1", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Clock, { className: "uf-w-3 uf-h-3" }) }),
15206
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("span", { className: "uf-text-xs", children: [
15207
+ t3.processingTime.label,
15054
15208
  ":",
15055
15209
  " ",
15056
- /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("span", { className: "uf-text-foreground", children: [
15057
- priceImpact.toFixed(2),
15058
- "%"
15059
- ] })
15060
- ] }),
15061
- /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(Tooltip2, { children: [
15062
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(TooltipTrigger2, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
15063
- "span",
15064
- {
15065
- className: "uf-inline-flex uf-cursor-pointer uf-text-muted-foreground uf-transition-colors hover:uf-text-foreground",
15066
- onClick: (e) => e.stopPropagation(),
15067
- onKeyDown: (e) => {
15068
- if (e.key === "Enter" || e.key === " ") {
15069
- e.stopPropagation();
15070
- }
15071
- },
15072
- tabIndex: 0,
15073
- role: "button",
15074
- "aria-label": "Price impact information",
15075
- children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Info, { className: "uf-w-3 uf-h-3" })
15076
- }
15077
- ) }),
15078
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
15079
- TooltipContent2,
15080
- {
15081
- side: "top",
15082
- align: "center",
15083
- className: "uf-max-w-[240px]",
15084
- children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("p", { children: t2.priceImpact.tooltip })
15085
- }
15086
- )
15210
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { className: "uf-text-foreground", children: formatProcessingTime(processingTime) })
15087
15211
  ] })
15088
15212
  ] }),
15089
- detailsExpanded ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(ChevronUp, { className: "uf-w-4 uf-h-4 uf-text-muted-foreground" }) : /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(ChevronDown, { className: "uf-w-4 uf-h-4 uf-text-muted-foreground" })
15213
+ detailsExpanded ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(ChevronUp, { className: "uf-w-4 uf-h-4 uf-text-muted-foreground" }) : /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(ChevronDown, { className: "uf-w-4 uf-h-4 uf-text-muted-foreground" })
15090
15214
  ]
15091
15215
  }
15092
15216
  ),
15093
- detailsExpanded && /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "uf-pb-3 uf-space-y-2.5", children: [
15094
- /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "uf-flex uf-items-center uf-gap-2", children: [
15095
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "uf-bg-card uf-rounded-full uf-p-1", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(ShieldCheck, { className: "uf-w-3 uf-h-3" }) }),
15096
- /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("span", { className: "uf-text-xs", children: [
15097
- t2.slippage.label,
15217
+ detailsExpanded && /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "uf-pb-3 uf-space-y-2.5", children: [
15218
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "uf-flex uf-items-center uf-gap-2", children: [
15219
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "uf-bg-card uf-rounded-full uf-p-1", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(ShieldCheck, { className: "uf-w-3 uf-h-3" }) }),
15220
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("span", { className: "uf-text-xs", children: [
15221
+ t3.slippage.label,
15098
15222
  ":",
15099
15223
  " ",
15100
- /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("span", { className: "uf-text-foreground", children: [
15101
- t2.slippage.auto,
15224
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("span", { className: "uf-text-foreground", children: [
15225
+ t3.slippage.auto,
15102
15226
  " \u2022 ",
15103
15227
  maxSlippage.toFixed(2),
15104
15228
  "%"
15105
15229
  ] })
15106
- ] }),
15107
- /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(Tooltip2, { children: [
15108
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(TooltipTrigger2, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
15109
- "span",
15110
- {
15111
- className: "uf-inline-flex uf-cursor-pointer uf-text-muted-foreground uf-transition-colors hover:uf-text-foreground",
15112
- tabIndex: 0,
15113
- role: "button",
15114
- "aria-label": "Slippage information",
15115
- children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Info, { className: "uf-w-3 uf-h-3" })
15116
- }
15117
- ) }),
15118
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
15119
- TooltipContent2,
15120
- {
15121
- side: "top",
15122
- align: "center",
15123
- className: "uf-max-w-[240px]",
15124
- children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("p", { children: t2.slippage.tooltip })
15125
- }
15126
- )
15127
15230
  ] })
15128
15231
  ] }),
15129
- /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "uf-flex uf-items-center uf-gap-2", children: [
15130
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "uf-bg-card uf-rounded-full uf-p-1", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Clock, { className: "uf-w-3 uf-h-3" }) }),
15131
- /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("span", { className: "uf-text-xs", children: [
15132
- t2.processingTime.label,
15232
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "uf-flex uf-items-center uf-gap-2", children: [
15233
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "uf-bg-card uf-rounded-full uf-p-1", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(DollarSign, { className: "uf-w-3 uf-h-3" }) }),
15234
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("span", { className: "uf-text-xs", children: [
15235
+ t3.priceImpact.label,
15133
15236
  ":",
15134
15237
  " ",
15135
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "uf-text-foreground", children: formatProcessingTime(processingTime) })
15136
- ] })
15137
- ] }),
15138
- /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "uf-flex uf-items-center uf-gap-2", children: [
15139
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "uf-bg-card uf-rounded-full uf-p-1", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(CircleHelp, { className: "uf-w-3 uf-h-3" }) }),
15140
- /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("span", { className: "uf-text-xs", children: [
15141
- t2.help.needHelp,
15142
- " ",
15143
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
15144
- "a",
15145
- {
15146
- href: "#",
15147
- className: "uf-text-foreground uf-underline hover:uf-text-muted-foreground uf-transition-colors",
15148
- children: t2.help.contactSupport
15149
- }
15150
- )
15238
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("span", { className: "uf-text-foreground", children: [
15239
+ priceImpact.toFixed(2),
15240
+ "%"
15241
+ ] })
15151
15242
  ] })
15152
15243
  ] }),
15153
- /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "uf-flex uf-items-center uf-gap-2", children: [
15154
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "uf-bg-card uf-rounded-full uf-p-1", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(FileText, { className: "uf-w-3 uf-h-3" }) }),
15155
- /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("span", { className: "uf-text-xs", children: [
15156
- t2.terms.termsApply,
15157
- ":",
15244
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "uf-flex uf-items-center uf-gap-2", children: [
15245
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "uf-bg-card uf-rounded-full uf-p-1", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(WalletMinimal, { className: "uf-w-3 uf-h-3" }) }),
15246
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("span", { className: "uf-flex uf-gap-2 uf-text-xs", children: [
15247
+ "Recipient address:",
15158
15248
  " ",
15159
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
15160
- "a",
15249
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { className: "uf-text-foreground", children: truncateAddress(recipientAddress || "", 8, 6) }),
15250
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
15251
+ "span",
15161
15252
  {
15162
- href: "https://unifold.io/terms",
15163
- className: "uf-text-muted-foreground uf-underline hover:uf-text-foreground uf-transition-colors",
15164
- target: "_blank",
15165
- children: t2.terms.seeTerms
15253
+ onClick: () => handleCopyRecipientAddress(recipientAddress),
15254
+ className: `uf-flex-shrink-0 uf-transition-colors uf-cursor-pointer ${copiedRecipient ? "uf-text-green-500" : "uf-text-muted-foreground"}`,
15255
+ children: copiedRecipient ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Check, { className: "uf-w-3.5 uf-h-3.5" }) : /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Copy, { className: "uf-w-3.5 uf-h-3.5" })
15166
15256
  }
15167
15257
  )
15168
15258
  ] })
15169
15259
  ] })
15170
15260
  ] })
15171
15261
  ] }),
15172
- depositExecutions.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "uf-flex uf-items-center uf-justify-end uf-text-xs uf-pt-2", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
15262
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
15263
+ PollCooldownButton,
15264
+ {
15265
+ currentWalletId: currentWallet?.id,
15266
+ pollCooldown,
15267
+ publishableKey,
15268
+ onCooldownChange: setPollCooldown,
15269
+ cooldownRef,
15270
+ buttonText: "Try again"
15271
+ }
15272
+ ),
15273
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(DepositFooterLinks, { onGlossaryClick: () => setGlossaryOpen(true) }),
15274
+ depositExecutions.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "uf-flex uf-items-center uf-justify-end uf-text-xs uf-pt-2", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
15173
15275
  "button",
15174
15276
  {
15175
15277
  onClick: () => setDepositsModalOpen(true),
15176
15278
  className: "uf-flex uf-items-center uf-gap-1 uf-text-muted-foreground hover:uf-text-foreground uf-transition-colors uf-animate-in uf-fade-in uf-slide-in-from-right-8 uf-duration-1000",
15177
15279
  children: [
15178
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Clock, { className: "uf-w-3.5 uf-h-3.5" }),
15280
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Clock, { className: "uf-w-3.5 uf-h-3.5" }),
15179
15281
  "Track deposits (",
15180
15282
  depositExecutions.length,
15181
15283
  ")",
15182
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(ChevronRight, { className: "uf-w-3 uf-h-3" })
15284
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(ChevronRight, { className: "uf-w-3 uf-h-3" })
15183
15285
  ]
15184
15286
  }
15185
15287
  ) }),
15186
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
15288
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
15187
15289
  DepositPollingToasts,
15188
15290
  {
15189
15291
  executions: depositExecutions,
15190
15292
  isPolling
15191
15293
  }
15192
15294
  ),
15193
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
15295
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
15194
15296
  DepositsModal,
15195
15297
  {
15196
15298
  open: depositsModalOpen,
@@ -15200,6 +15302,15 @@ function TransferCryptoSingleInput({
15200
15302
  publishableKey,
15201
15303
  themeClass
15202
15304
  }
15305
+ ),
15306
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
15307
+ GlossaryModal,
15308
+ {
15309
+ open: glossaryOpen,
15310
+ onOpenChange: setGlossaryOpen,
15311
+ themeClass,
15312
+ colors: colors2
15313
+ }
15203
15314
  )
15204
15315
  ]
15205
15316
  }
@@ -15207,7 +15318,7 @@ function TransferCryptoSingleInput({
15207
15318
  }
15208
15319
  var Select2 = Root23;
15209
15320
  var SelectValue2 = Value;
15210
- var SelectTrigger2 = React92.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
15321
+ var SelectTrigger2 = React92.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
15211
15322
  Trigger2,
15212
15323
  {
15213
15324
  ref,
@@ -15218,12 +15329,12 @@ var SelectTrigger2 = React92.forwardRef(({ className, children, ...props }, ref)
15218
15329
  ...props,
15219
15330
  children: [
15220
15331
  children,
15221
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Icon2, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(ChevronDown, { className: "uf-h-4 uf-w-4 uf-opacity-50" }) })
15332
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Icon2, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(ChevronDown, { className: "uf-h-4 uf-w-4 uf-opacity-50" }) })
15222
15333
  ]
15223
15334
  }
15224
15335
  ));
15225
15336
  SelectTrigger2.displayName = Trigger2.displayName;
15226
- var SelectScrollUpButton2 = React92.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
15337
+ var SelectScrollUpButton2 = React92.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
15227
15338
  ScrollUpButton,
15228
15339
  {
15229
15340
  ref,
@@ -15232,11 +15343,11 @@ var SelectScrollUpButton2 = React92.forwardRef(({ className, ...props }, ref) =>
15232
15343
  className
15233
15344
  ),
15234
15345
  ...props,
15235
- children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(ChevronUp, { className: "uf-h-4 uf-w-4" })
15346
+ children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(ChevronUp, { className: "uf-h-4 uf-w-4" })
15236
15347
  }
15237
15348
  ));
15238
15349
  SelectScrollUpButton2.displayName = ScrollUpButton.displayName;
15239
- var SelectScrollDownButton2 = React92.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
15350
+ var SelectScrollDownButton2 = React92.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
15240
15351
  ScrollDownButton,
15241
15352
  {
15242
15353
  ref,
@@ -15245,13 +15356,13 @@ var SelectScrollDownButton2 = React92.forwardRef(({ className, ...props }, ref)
15245
15356
  className
15246
15357
  ),
15247
15358
  ...props,
15248
- children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(ChevronDown, { className: "uf-h-4 uf-w-4" })
15359
+ children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(ChevronDown, { className: "uf-h-4 uf-w-4" })
15249
15360
  }
15250
15361
  ));
15251
15362
  SelectScrollDownButton2.displayName = ScrollDownButton.displayName;
15252
15363
  var SelectContent2 = React92.forwardRef(({ className, children, position = "popper", ...props }, ref) => {
15253
15364
  const { themeClass, colors: colors2 } = useTheme();
15254
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Portal4, { children: /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
15365
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Portal4, { children: /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
15255
15366
  Content23,
15256
15367
  {
15257
15368
  ref,
@@ -15265,8 +15376,8 @@ var SelectContent2 = React92.forwardRef(({ className, children, position = "popp
15265
15376
  position,
15266
15377
  ...props,
15267
15378
  children: [
15268
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(SelectScrollUpButton2, {}),
15269
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
15379
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(SelectScrollUpButton2, {}),
15380
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
15270
15381
  Viewport,
15271
15382
  {
15272
15383
  className: cn(
@@ -15276,13 +15387,13 @@ var SelectContent2 = React92.forwardRef(({ className, children, position = "popp
15276
15387
  children
15277
15388
  }
15278
15389
  ),
15279
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(SelectScrollDownButton2, {})
15390
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(SelectScrollDownButton2, {})
15280
15391
  ]
15281
15392
  }
15282
15393
  ) });
15283
15394
  });
15284
15395
  SelectContent2.displayName = Content23.displayName;
15285
- var SelectLabel2 = React92.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
15396
+ var SelectLabel2 = React92.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
15286
15397
  Label,
15287
15398
  {
15288
15399
  ref,
@@ -15294,7 +15405,7 @@ var SelectLabel2 = React92.forwardRef(({ className, ...props }, ref) => /* @__PU
15294
15405
  }
15295
15406
  ));
15296
15407
  SelectLabel2.displayName = Label.displayName;
15297
- var SelectItem2 = React92.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
15408
+ var SelectItem2 = React92.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
15298
15409
  Item,
15299
15410
  {
15300
15411
  ref,
@@ -15304,13 +15415,13 @@ var SelectItem2 = React92.forwardRef(({ className, children, ...props }, ref) =>
15304
15415
  ),
15305
15416
  ...props,
15306
15417
  children: [
15307
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "uf-absolute uf-left-2 uf-flex uf-h-3.5 uf-w-3.5 uf-items-center uf-justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Check, { className: "uf-h-4 uf-w-4" }) }) }),
15308
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(ItemText, { children })
15418
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { className: "uf-absolute uf-left-2 uf-flex uf-h-3.5 uf-w-3.5 uf-items-center uf-justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Check, { className: "uf-h-4 uf-w-4" }) }) }),
15419
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(ItemText, { children })
15309
15420
  ]
15310
15421
  }
15311
15422
  ));
15312
15423
  SelectItem2.displayName = Item.displayName;
15313
- var SelectSeparator2 = React92.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
15424
+ var SelectSeparator2 = React92.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
15314
15425
  Separator,
15315
15426
  {
15316
15427
  ref,
@@ -15319,7 +15430,7 @@ var SelectSeparator2 = React92.forwardRef(({ className, ...props }, ref) => /* @
15319
15430
  }
15320
15431
  ));
15321
15432
  SelectSeparator2.displayName = Separator.displayName;
15322
- var t3 = i18n2.transferCrypto;
15433
+ var t4 = i18n2.transferCrypto;
15323
15434
  var getChainKey2 = (chainId, chainType) => {
15324
15435
  return `${chainType}:${chainId}`;
15325
15436
  };
@@ -15341,13 +15452,25 @@ function TransferCryptoDoubleInput({
15341
15452
  }) {
15342
15453
  const { themeClass, colors: colors2, fonts, components } = useTheme();
15343
15454
  const isDarkMode = themeClass.includes("uf-dark");
15344
- const [token, setToken] = (0, import_react20.useState)("USDC");
15345
- const [chain, setChain] = (0, import_react20.useState)("solana:mainnet");
15346
- const [copied, setCopied] = (0, import_react20.useState)(false);
15347
- const [internalWallets, setInternalWallets] = (0, import_react20.useState)([]);
15348
- const [loading, setLoading] = (0, import_react20.useState)(!externalWallets?.length);
15455
+ const [token, setToken] = (0, import_react21.useState)("USDC");
15456
+ const [chain, setChain] = (0, import_react21.useState)("solana:mainnet");
15457
+ const [copied, setCopied] = (0, import_react21.useState)(false);
15458
+ const { copied: copiedRecipient, handleCopy: handleCopyRecipientAddress } = useCopyAddress();
15459
+ const [glossaryOpen, setGlossaryOpen] = (0, import_react21.useState)(false);
15460
+ const [pollCooldown, setPollCooldown] = (0, import_react21.useState)(0);
15461
+ const cooldownRef = (0, import_react21.useRef)(null);
15462
+ const [internalWallets, setInternalWallets] = (0, import_react21.useState)([]);
15463
+ const [loading, setLoading] = (0, import_react21.useState)(!externalWallets?.length);
15464
+ (0, import_react21.useEffect)(() => {
15465
+ return () => {
15466
+ if (cooldownRef.current) {
15467
+ clearInterval(cooldownRef.current);
15468
+ cooldownRef.current = null;
15469
+ }
15470
+ };
15471
+ }, []);
15349
15472
  const wallets = externalWallets?.length ? externalWallets : internalWallets;
15350
- const [error, setError] = (0, import_react20.useState)(null);
15473
+ const [error, setError] = (0, import_react21.useState)(null);
15351
15474
  const { executions: depositExecutions, isPolling } = useDepositPolling({
15352
15475
  userId,
15353
15476
  publishableKey,
@@ -15355,13 +15478,13 @@ function TransferCryptoDoubleInput({
15355
15478
  onDepositSuccess,
15356
15479
  onDepositError
15357
15480
  });
15358
- const [supportedTokens, setSupportedTokens] = (0, import_react20.useState)([]);
15359
- const [tokensLoading, setTokensLoading] = (0, import_react20.useState)(true);
15360
- const [detailsExpanded, setDetailsExpanded] = (0, import_react20.useState)(false);
15361
- const [depositsModalOpen, setDepositsModalOpen] = (0, import_react20.useState)(false);
15481
+ const [supportedTokens, setSupportedTokens] = (0, import_react21.useState)([]);
15482
+ const [tokensLoading, setTokensLoading] = (0, import_react21.useState)(true);
15483
+ const [detailsExpanded, setDetailsExpanded] = (0, import_react21.useState)(false);
15484
+ const [depositsModalOpen, setDepositsModalOpen] = (0, import_react21.useState)(false);
15362
15485
  const allChainsMap = /* @__PURE__ */ new Map();
15363
- supportedTokens.forEach((t5) => {
15364
- t5.chains.forEach((c) => {
15486
+ supportedTokens.forEach((t6) => {
15487
+ t6.chains.forEach((c) => {
15365
15488
  const comboKey = `${c.chain_type}:${c.chain_id}`;
15366
15489
  if (!allChainsMap.has(comboKey)) {
15367
15490
  allChainsMap.set(comboKey, c);
@@ -15376,7 +15499,7 @@ function TransferCryptoDoubleInput({
15376
15499
  const currentChainType = currentChainData?.chain_type || "ethereum";
15377
15500
  const currentWallet = getWalletByChainType(wallets, currentChainType);
15378
15501
  const depositAddress = currentWallet?.address || "";
15379
- (0, import_react20.useEffect)(() => {
15502
+ (0, import_react21.useEffect)(() => {
15380
15503
  async function fetchSupportedTokens() {
15381
15504
  try {
15382
15505
  setTokensLoading(true);
@@ -15392,8 +15515,8 @@ function TransferCryptoDoubleInput({
15392
15515
  setSupportedTokens(response.data);
15393
15516
  if (response.data.length > 0) {
15394
15517
  const allChains = /* @__PURE__ */ new Set();
15395
- response.data.forEach((t5) => {
15396
- t5.chains.forEach((c) => {
15518
+ response.data.forEach((t6) => {
15519
+ t6.chains.forEach((c) => {
15397
15520
  allChains.add(getChainKey2(c.chain_id, c.chain_type));
15398
15521
  });
15399
15522
  });
@@ -15419,12 +15542,12 @@ function TransferCryptoDoubleInput({
15419
15542
  destinationChainId,
15420
15543
  destinationChainType
15421
15544
  ]);
15422
- (0, import_react20.useEffect)(() => {
15545
+ (0, import_react21.useEffect)(() => {
15423
15546
  if (onExecutionsChange) {
15424
15547
  onExecutionsChange(depositExecutions);
15425
15548
  }
15426
15549
  }, [depositExecutions, onExecutionsChange]);
15427
- (0, import_react20.useEffect)(() => {
15550
+ (0, import_react21.useEffect)(() => {
15428
15551
  if (externalWallets?.length) {
15429
15552
  setLoading(false);
15430
15553
  return;
@@ -15481,9 +15604,9 @@ function TransferCryptoDoubleInput({
15481
15604
  publishableKey,
15482
15605
  externalWallets
15483
15606
  ]);
15484
- (0, import_react20.useEffect)(() => {
15607
+ (0, import_react21.useEffect)(() => {
15485
15608
  if (!supportedTokens.length) return;
15486
- const currentToken = supportedTokens.find((t5) => t5.symbol === token);
15609
+ const currentToken = supportedTokens.find((t6) => t6.symbol === token);
15487
15610
  if (!currentToken || currentToken.chains.length === 0) return;
15488
15611
  const isChainAvailable = currentToken.chains.some((c) => {
15489
15612
  const key = getChainKey2(c.chain_id, c.chain_type);
@@ -15495,7 +15618,7 @@ function TransferCryptoDoubleInput({
15495
15618
  setChain(newChain);
15496
15619
  }
15497
15620
  }, [token, supportedTokens, chain]);
15498
- const selectedToken = supportedTokens.find((t5) => t5.symbol === token);
15621
+ const selectedToken = supportedTokens.find((t6) => t6.symbol === token);
15499
15622
  const availableChainsForToken = selectedToken?.chains || [];
15500
15623
  const currentChainFromBackend = availableChainsForToken.find((c) => {
15501
15624
  const key = getChainKey2(c.chain_id, c.chain_type);
@@ -15511,25 +15634,25 @@ function TransferCryptoDoubleInput({
15511
15634
  };
15512
15635
  const formatProcessingTime = (seconds) => {
15513
15636
  if (seconds === null) {
15514
- return t3.processingTime.lessThanMinutes.replace("{{minutes}}", "1");
15637
+ return t4.processingTime.lessThanMinutes.replace("{{minutes}}", "1");
15515
15638
  }
15516
15639
  const minutes = Math.ceil(seconds / 60);
15517
15640
  if (minutes < 60) {
15518
- return t3.processingTime.lessThanMinutes.replace(
15641
+ return t4.processingTime.lessThanMinutes.replace(
15519
15642
  "{{minutes}}",
15520
15643
  String(minutes)
15521
15644
  );
15522
15645
  }
15523
15646
  const hours = Math.ceil(minutes / 60);
15524
- return t3.processingTime.lessThanHours.replace("{{hours}}", String(hours));
15647
+ return t4.processingTime.lessThanHours.replace("{{hours}}", String(hours));
15525
15648
  };
15526
15649
  const priceImpact = currentChainFromBackend?.estimated_price_impact_percent ?? 0;
15527
15650
  const maxSlippage = currentChainFromBackend?.max_slippage_percent ?? 0.25;
15528
15651
  const processingTime = currentChainFromBackend?.estimated_processing_time ?? null;
15529
15652
  const minDepositUsd = currentChainFromBackend?.minimum_deposit_amount_usd ?? 3;
15530
15653
  const renderTokenItem = (tokenData) => {
15531
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "uf-flex uf-items-center uf-gap-2", children: [
15532
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
15654
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "uf-flex uf-items-center uf-gap-2", children: [
15655
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
15533
15656
  "img",
15534
15657
  {
15535
15658
  src: tokenData.icon_url,
@@ -15539,13 +15662,13 @@ function TransferCryptoDoubleInput({
15539
15662
  className: "uf-rounded-full uf-flex-shrink-0"
15540
15663
  }
15541
15664
  ),
15542
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { className: "uf-text-xs uf-font-normal", children: tokenData.symbol })
15665
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { className: "uf-text-xs uf-font-normal", children: tokenData.symbol })
15543
15666
  ] });
15544
15667
  };
15545
15668
  const renderChainItem = (chainData, showMinDeposit = false) => {
15546
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "uf-flex uf-items-center uf-justify-between uf-w-full", children: [
15547
- /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "uf-flex uf-items-center uf-gap-2", children: [
15548
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
15669
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "uf-flex uf-items-center uf-justify-between uf-w-full", children: [
15670
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "uf-flex uf-items-center uf-gap-2", children: [
15671
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
15549
15672
  "img",
15550
15673
  {
15551
15674
  src: chainData.icon_url,
@@ -15555,32 +15678,32 @@ function TransferCryptoDoubleInput({
15555
15678
  className: "uf-rounded-full uf-flex-shrink-0"
15556
15679
  }
15557
15680
  ),
15558
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { className: "uf-text-xs uf-font-normal", children: chainData.chain_name })
15681
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { className: "uf-text-xs uf-font-normal", children: chainData.chain_name })
15559
15682
  ] }),
15560
- showMinDeposit && chainData.minimum_deposit_amount_usd && /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("span", { className: "uf-text-xs uf-text-amber-400 uf-font-medium", children: [
15683
+ showMinDeposit && chainData.minimum_deposit_amount_usd && /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("span", { className: "uf-text-xs uf-text-amber-400 uf-font-medium", children: [
15561
15684
  "$",
15562
15685
  chainData.minimum_deposit_amount_usd
15563
15686
  ] })
15564
15687
  ] });
15565
15688
  };
15566
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(TooltipProvider2, { delayDuration: 0, skipDelayDuration: 0, children: /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
15689
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(TooltipProvider2, { delayDuration: 0, skipDelayDuration: 0, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
15567
15690
  "div",
15568
15691
  {
15569
15692
  className: "uf-space-y-3",
15570
15693
  style: { backgroundColor: colors2.background },
15571
15694
  children: [
15572
- /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "uf-grid uf-grid-cols-2 uf-gap-2.5", children: [
15573
- /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { children: [
15574
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "uf-text-xs uf-text-muted-foreground uf-mb-2 uf-flex uf-items-center uf-gap-1", children: t3.selectedToken }),
15575
- /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
15695
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "uf-grid uf-grid-cols-2 uf-gap-2.5", children: [
15696
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { children: [
15697
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "uf-text-xs uf-text-muted-foreground uf-mb-2 uf-flex uf-items-center uf-gap-1", children: t4.selectedToken }),
15698
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
15576
15699
  Select2,
15577
15700
  {
15578
15701
  value: token,
15579
15702
  onValueChange: setToken,
15580
15703
  disabled: tokensLoading || supportedTokens.length === 0,
15581
15704
  children: [
15582
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(SelectTrigger2, { className: "uf-bg-secondary uf-border-none uf-rounded-lg uf-h-10 hover:uf-bg-accent uf-text-foreground focus:uf-ring-1 focus:uf-ring-ring disabled:uf-opacity-50", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(SelectValue2, { children: tokensLoading ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "uf-flex uf-items-center uf-gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { className: "uf-text-xs uf-font-light uf-text-muted-foreground", children: t3.loading }) }) : selectedToken ? renderTokenItem(selectedToken) : /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "uf-flex uf-items-center uf-gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { className: "uf-text-xs uf-font-normal", children: token }) }) }) }),
15583
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(SelectContent2, { className: "uf-bg-secondary uf-border uf-text-foreground uf-max-h-[300px]", children: supportedTokens.map((tokenData) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
15705
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(SelectTrigger2, { className: "uf-bg-secondary uf-border-none uf-rounded-lg uf-h-10 hover:uf-bg-accent uf-text-foreground focus:uf-ring-1 focus:uf-ring-ring disabled:uf-opacity-50", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(SelectValue2, { children: tokensLoading ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "uf-flex uf-items-center uf-gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { className: "uf-text-xs uf-font-light uf-text-muted-foreground", children: t4.loading }) }) : selectedToken ? renderTokenItem(selectedToken) : /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "uf-flex uf-items-center uf-gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { className: "uf-text-xs uf-font-normal", children: token }) }) }) }),
15706
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(SelectContent2, { className: "uf-bg-secondary uf-border uf-text-foreground uf-max-h-[300px]", children: supportedTokens.map((tokenData) => /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
15584
15707
  SelectItem2,
15585
15708
  {
15586
15709
  value: tokenData.symbol,
@@ -15593,56 +15716,35 @@ function TransferCryptoDoubleInput({
15593
15716
  }
15594
15717
  )
15595
15718
  ] }),
15596
- /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { children: [
15597
- /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "uf-text-xs uf-text-muted-foreground uf-mb-2 uf-flex uf-items-center uf-gap-1", children: [
15598
- t3.selectedChain,
15599
- /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("span", { className: "uf-text-amber-400 uf-font-medium", children: [
15719
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { children: [
15720
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "uf-text-xs uf-text-muted-foreground uf-mb-2 uf-flex uf-items-center uf-gap-1", children: [
15721
+ t4.selectedChain,
15722
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("span", { className: "uf-text-amber-400 uf-font-medium", children: [
15600
15723
  "$",
15601
15724
  minDepositUsd,
15602
15725
  " ",
15603
- t3.minDeposit.label
15604
- ] }),
15605
- /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(Tooltip2, { children: [
15606
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(TooltipTrigger2, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
15607
- "span",
15608
- {
15609
- className: "uf-inline-flex uf-cursor-pointer uf-transition-colors hover:uf-text-foreground",
15610
- tabIndex: 0,
15611
- role: "button",
15612
- "aria-label": "Minimum deposit information",
15613
- children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Info, { className: "uf-w-4 uf-h-4" })
15614
- }
15615
- ) }),
15616
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
15617
- TooltipContent2,
15618
- {
15619
- side: "left",
15620
- align: "center",
15621
- className: "uf-max-w-[200px]",
15622
- children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("p", { children: t3.minDeposit.tooltip })
15623
- }
15624
- )
15726
+ t4.minDeposit.label
15625
15727
  ] })
15626
15728
  ] }),
15627
- /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
15729
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
15628
15730
  Select2,
15629
15731
  {
15630
15732
  value: chain,
15631
15733
  onValueChange: setChain,
15632
15734
  disabled: tokensLoading || availableChainsForToken.length === 0,
15633
15735
  children: [
15634
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(SelectTrigger2, { className: "uf-bg-secondary uf-border-none uf-rounded-lg uf-h-10 hover:uf-bg-accent uf-text-foreground focus:uf-ring-1 focus:uf-ring-ring disabled:uf-opacity-50", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(SelectValue2, { children: tokensLoading ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "uf-flex uf-items-center uf-gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { className: "uf-text-xs uf-font-light uf-text-muted-foreground", children: t3.loading }) }) : currentChainFromBackend ? renderChainItem(currentChainFromBackend) : currentChainData ? renderChainItem(currentChainData) : /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "uf-flex uf-items-center uf-gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { className: "uf-text-xs uf-font-normal", children: chain }) }) }) }),
15635
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
15736
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(SelectTrigger2, { className: "uf-bg-secondary uf-border-none uf-rounded-lg uf-h-10 hover:uf-bg-accent uf-text-foreground focus:uf-ring-1 focus:uf-ring-ring disabled:uf-opacity-50", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(SelectValue2, { children: tokensLoading ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "uf-flex uf-items-center uf-gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { className: "uf-text-xs uf-font-light uf-text-muted-foreground", children: t4.loading }) }) : currentChainFromBackend ? renderChainItem(currentChainFromBackend) : currentChainData ? renderChainItem(currentChainData) : /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "uf-flex uf-items-center uf-gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { className: "uf-text-xs uf-font-normal", children: chain }) }) }) }),
15737
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
15636
15738
  SelectContent2,
15637
15739
  {
15638
15740
  align: "end",
15639
15741
  className: "uf-bg-secondary uf-border uf-text-foreground uf-max-h-[300px] uf-min-w-[200px]",
15640
- children: availableChainsForToken.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "uf-px-2 uf-py-3 uf-text-xs uf-text-muted-foreground uf-text-center", children: t3.noChainsAvailable }) : availableChainsForToken.map((chainData) => {
15742
+ children: availableChainsForToken.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "uf-px-2 uf-py-3 uf-text-xs uf-text-muted-foreground uf-text-center", children: t4.noChainsAvailable }) : availableChainsForToken.map((chainData) => {
15641
15743
  const chainKey = getChainKey2(
15642
15744
  chainData.chain_id,
15643
15745
  chainData.chain_type
15644
15746
  );
15645
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
15747
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
15646
15748
  SelectItem2,
15647
15749
  {
15648
15750
  value: chainKey,
@@ -15659,226 +15761,157 @@ function TransferCryptoDoubleInput({
15659
15761
  )
15660
15762
  ] })
15661
15763
  ] }),
15662
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "uf-flex uf-justify-center uf-py-2", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "uf-p-4 uf-rounded-2xl uf-shadow-lg uf-border uf-border-border", children: loading ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
15663
- "div",
15664
- {
15665
- className: "uf-flex uf-items-center uf-justify-center",
15666
- style: { width: 180, height: 180 },
15667
- children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "uf-text-foreground uf-text-sm", children: t3.loadingQRCode })
15668
- }
15669
- ) : depositAddress ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
15670
- StyledQRCode,
15671
- {
15672
- value: depositAddress,
15673
- size: 180,
15674
- imageUrl: currentChainData?.icon_url || currentChainFromBackend?.icon_url,
15675
- imageSize: 45,
15676
- darkMode: isDarkMode
15677
- },
15678
- `qr-${depositAddress}-${chain}`
15679
- ) : /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
15680
- "div",
15681
- {
15682
- className: "uf-flex uf-items-center uf-justify-center",
15683
- style: { width: 180, height: 180 },
15684
- children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "uf-text-red-400 uf-text-sm", children: t3.noAddressAvailable })
15685
- }
15686
- ) }) }),
15687
- /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { children: [
15688
- /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "uf-text-xs uf-text-muted-foreground uf-mb-2 uf-flex uf-items-center uf-gap-1", children: [
15689
- t3.depositAddress.label,
15690
- /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(Tooltip2, { children: [
15691
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(TooltipTrigger2, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
15692
- "span",
15693
- {
15694
- className: "uf-inline-flex uf-cursor-pointer uf-transition-colors hover:uf-text-foreground",
15695
- tabIndex: 0,
15696
- role: "button",
15697
- "aria-label": "Deposit address information",
15698
- children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Info, { className: "uf-w-3 uf-h-3" })
15699
- }
15700
- ) }),
15701
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
15702
- TooltipContent2,
15703
- {
15704
- side: "top",
15705
- align: "center",
15706
- className: "uf-max-w-[240px]",
15707
- children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("p", { children: t3.depositAddress.tooltip.replace("{{token}}", token) })
15708
- }
15709
- )
15764
+ error && !loading && /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "uf-bg-destructive/10 uf-border uf-border-destructive/20 uf-rounded-xl uf-p-3 uf-space-y-2", children: [
15765
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "uf-flex uf-items-start uf-gap-2", children: [
15766
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Info, { className: "uf-w-4 uf-h-4 uf-text-destructive uf-flex-shrink-0 uf-mt-0.5" }),
15767
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "uf-flex-1 uf-min-w-0", children: [
15768
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "uf-text-xs uf-font-medium uf-text-destructive uf-mb-1", children: "Failed to create deposit address" }),
15769
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "uf-text-xs uf-text-muted-foreground", children: error })
15710
15770
  ] })
15711
15771
  ] }),
15712
- loading ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "uf-bg-secondary uf-rounded-lg uf-px-3 uf-py-2.5 uf-text-xs uf-text-muted-foreground uf-animate-pulse", children: t3.loading }) : error ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "uf-bg-secondary uf-rounded-lg uf-px-3 uf-py-2.5 uf-text-xs uf-text-red-400", children: error }) : /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
15713
- "button",
15772
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "uf-flex uf-items-center uf-gap-1.5 uf-text-xs uf-text-muted-foreground uf-pl-6", children: [
15773
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Clock, { className: "uf-w-3 uf-h-3" }),
15774
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { children: "Retrying automatically every 5 seconds..." })
15775
+ ] })
15776
+ ] }),
15777
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "uf-flex uf-flex-col uf-items-center uf-pt-2", children: [
15778
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "uf-text-xs uf-text-muted-foreground uf-mb-2 uf-flex uf-items-center uf-gap-1", children: "Intent address" }),
15779
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "uf-rounded-2xl uf-shadow-lg uf-border uf-border-border", children: loading ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
15780
+ "div",
15781
+ {
15782
+ className: "uf-flex uf-items-center uf-justify-center",
15783
+ style: { width: 180, height: 180 },
15784
+ children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "uf-text-foreground uf-text-sm", children: t4.loadingQRCode })
15785
+ }
15786
+ ) : depositAddress ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
15787
+ StyledQRCode,
15788
+ {
15789
+ value: depositAddress,
15790
+ size: 180,
15791
+ imageUrl: currentChainData?.icon_url || currentChainFromBackend?.icon_url,
15792
+ imageSize: 45,
15793
+ darkMode: isDarkMode
15794
+ },
15795
+ `qr-${depositAddress}-${chain}`
15796
+ ) : /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
15797
+ "div",
15798
+ {
15799
+ className: "uf-flex uf-items-center uf-justify-center",
15800
+ style: { width: 180, height: 180 },
15801
+ children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "uf-text-red-400 uf-text-sm", children: t4.noAddressAvailable })
15802
+ }
15803
+ ) })
15804
+ ] }),
15805
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "uf-text-sm uf-text-muted-foreground uf-mb-2 uf-flex uf-justify-center uf-items-center uf-gap-1", children: [
15806
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { className: "uf-text-sm uf-truncate uf-min-w-0", children: loading ? t4.loading : depositAddress ? truncateAddress(depositAddress, 8, 6) : t4.noAddressAvailable }),
15807
+ depositAddress && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
15808
+ "span",
15714
15809
  {
15715
15810
  onClick: handleCopyAddress,
15716
- disabled: !depositAddress,
15717
- className: "uf-w-full uf-bg-secondary hover:uf-bg-accent uf-rounded-lg uf-px-3 uf-py-2.5 uf-flex uf-items-center uf-justify-between uf-gap-2 uf-transition-colors uf-cursor-pointer disabled:uf-opacity-50 disabled:uf-cursor-not-allowed",
15718
- children: [
15719
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { className: "uf-text-xs uf-font-mono uf-truncate uf-min-w-0", children: depositAddress ? truncateAddress(depositAddress, 18, 12) : t3.noAddressAvailable }),
15720
- depositAddress && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
15721
- "span",
15722
- {
15723
- className: `uf-flex-shrink-0 uf-transition-colors ${copied ? "uf-text-green-500" : "uf-text-muted-foreground"}`,
15724
- children: copied ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Check, { className: "uf-w-3.5 uf-h-3.5" }) : /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Copy, { className: "uf-w-3.5 uf-h-3.5" })
15725
- }
15726
- )
15727
- ]
15811
+ className: `uf-flex-shrink-0 uf-transition-colors uf-cursor-pointer ${copied ? "uf-text-green-500" : "uf-text-muted-foreground"}`,
15812
+ children: copied ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Check, { className: "uf-w-3.5 uf-h-3.5" }) : /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Copy, { className: "uf-w-3.5 uf-h-3.5" })
15728
15813
  }
15729
15814
  )
15730
- ] }),
15731
- /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "uf-bg-secondary uf-rounded-xl uf-px-2.5", children: [
15732
- /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
15815
+ ] }) }),
15816
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "uf-bg-secondary uf-rounded-xl uf-px-2.5", children: [
15817
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
15733
15818
  "button",
15734
15819
  {
15735
15820
  onClick: () => setDetailsExpanded(!detailsExpanded),
15736
15821
  className: "uf-w-full uf-flex uf-items-center uf-justify-between uf-py-2.5",
15737
15822
  children: [
15738
- /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "uf-flex uf-items-center uf-gap-2", children: [
15739
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "uf-bg-card uf-rounded-full uf-p-1", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(DollarSign, { className: "uf-w-3 uf-h-3" }) }),
15740
- /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("span", { className: "uf-text-xs", children: [
15741
- t3.priceImpact.label,
15823
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "uf-flex uf-items-center uf-gap-2", children: [
15824
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "uf-bg-card uf-rounded-full uf-p-1", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Clock, { className: "uf-w-3 uf-h-3" }) }),
15825
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("span", { className: "uf-text-xs", children: [
15826
+ t4.processingTime.label,
15742
15827
  ":",
15743
15828
  " ",
15744
- /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("span", { className: "uf-text-foreground", children: [
15745
- priceImpact.toFixed(2),
15746
- "%"
15747
- ] })
15748
- ] }),
15749
- /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(Tooltip2, { children: [
15750
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(TooltipTrigger2, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
15751
- "span",
15752
- {
15753
- className: "uf-inline-flex uf-cursor-pointer uf-text-muted-foreground uf-transition-colors hover:uf-text-foreground",
15754
- onClick: (e) => e.stopPropagation(),
15755
- onKeyDown: (e) => {
15756
- if (e.key === "Enter" || e.key === " ") {
15757
- e.stopPropagation();
15758
- }
15759
- },
15760
- tabIndex: 0,
15761
- role: "button",
15762
- "aria-label": "Price impact information",
15763
- children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Info, { className: "uf-w-3 uf-h-3" })
15764
- }
15765
- ) }),
15766
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
15767
- TooltipContent2,
15768
- {
15769
- side: "top",
15770
- align: "center",
15771
- className: "uf-max-w-[240px]",
15772
- children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("p", { children: t3.priceImpact.tooltip })
15773
- }
15774
- )
15829
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { className: "uf-text-foreground", children: formatProcessingTime(processingTime) })
15775
15830
  ] })
15776
15831
  ] }),
15777
- detailsExpanded ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(ChevronUp, { className: "uf-w-4 uf-h-4 uf-text-muted-foreground" }) : /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(ChevronDown, { className: "uf-w-4 uf-h-4 uf-text-muted-foreground" })
15832
+ detailsExpanded ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(ChevronUp, { className: "uf-w-4 uf-h-4 uf-text-muted-foreground" }) : /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(ChevronDown, { className: "uf-w-4 uf-h-4 uf-text-muted-foreground" })
15778
15833
  ]
15779
15834
  }
15780
15835
  ),
15781
- detailsExpanded && /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "uf-pb-3 uf-space-y-2.5", children: [
15782
- /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "uf-flex uf-items-center uf-gap-2", children: [
15783
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "uf-bg-card uf-rounded-full uf-p-1", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(ShieldCheck, { className: "uf-w-3 uf-h-3" }) }),
15784
- /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("span", { className: "uf-text-xs", children: [
15785
- t3.slippage.label,
15836
+ detailsExpanded && /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "uf-pb-3 uf-space-y-2.5", children: [
15837
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "uf-flex uf-items-center uf-gap-2", children: [
15838
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "uf-bg-card uf-rounded-full uf-p-1", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(ShieldCheck, { className: "uf-w-3 uf-h-3" }) }),
15839
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("span", { className: "uf-text-xs", children: [
15840
+ t4.slippage.label,
15786
15841
  ":",
15787
15842
  " ",
15788
- /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("span", { className: "uf-text-foreground", children: [
15789
- t3.slippage.auto,
15843
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("span", { className: "uf-text-foreground", children: [
15844
+ t4.slippage.auto,
15790
15845
  " \u2022 ",
15791
15846
  maxSlippage.toFixed(2),
15792
15847
  "%"
15793
15848
  ] })
15794
- ] }),
15795
- /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(Tooltip2, { children: [
15796
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(TooltipTrigger2, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
15797
- "span",
15798
- {
15799
- className: "uf-inline-flex uf-cursor-pointer uf-text-muted-foreground uf-transition-colors hover:uf-text-foreground",
15800
- tabIndex: 0,
15801
- role: "button",
15802
- "aria-label": "Slippage information",
15803
- children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Info, { className: "uf-w-3 uf-h-3" })
15804
- }
15805
- ) }),
15806
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
15807
- TooltipContent2,
15808
- {
15809
- side: "top",
15810
- align: "center",
15811
- className: "uf-max-w-[240px]",
15812
- children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("p", { children: t3.slippage.tooltip })
15813
- }
15814
- )
15815
15849
  ] })
15816
15850
  ] }),
15817
- /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "uf-flex uf-items-center uf-gap-2", children: [
15818
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "uf-bg-card uf-rounded-full uf-p-1", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Clock, { className: "uf-w-3 uf-h-3" }) }),
15819
- /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("span", { className: "uf-text-xs", children: [
15820
- t3.processingTime.label,
15851
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "uf-flex uf-items-center uf-gap-2", children: [
15852
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "uf-bg-card uf-rounded-full uf-p-1", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(DollarSign, { className: "uf-w-3 uf-h-3" }) }),
15853
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("span", { className: "uf-text-xs", children: [
15854
+ t4.priceImpact.label,
15821
15855
  ":",
15822
15856
  " ",
15823
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { className: "uf-text-foreground", children: formatProcessingTime(processingTime) })
15824
- ] })
15825
- ] }),
15826
- /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "uf-flex uf-items-center uf-gap-2", children: [
15827
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "uf-bg-card uf-rounded-full uf-p-1", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(CircleHelp, { className: "uf-w-3 uf-h-3" }) }),
15828
- /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("span", { className: "uf-text-xs", children: [
15829
- t3.help.needHelp,
15830
- " ",
15831
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
15832
- "a",
15833
- {
15834
- href: "https://unifold.io/support",
15835
- className: "uf-text-foreground uf-underline hover:uf-text-muted-foreground uf-transition-colors",
15836
- children: t3.help.contactSupport
15837
- }
15838
- )
15857
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("span", { className: "uf-text-foreground", children: [
15858
+ priceImpact.toFixed(2),
15859
+ "%"
15860
+ ] })
15839
15861
  ] })
15840
15862
  ] }),
15841
- /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "uf-flex uf-items-center uf-gap-2", children: [
15842
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "uf-bg-card uf-rounded-full uf-p-1", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(FileText, { className: "uf-w-3 uf-h-3" }) }),
15843
- /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("span", { className: "uf-text-xs", children: [
15844
- t3.terms.termsApply,
15845
- ":",
15863
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "uf-flex uf-items-center uf-gap-2", children: [
15864
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "uf-bg-card uf-rounded-full uf-p-1", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(WalletMinimal, { className: "uf-w-3 uf-h-3" }) }),
15865
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("span", { className: "uf-flex uf-gap-2 uf-text-xs", children: [
15866
+ "Recipient address:",
15846
15867
  " ",
15847
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
15848
- "a",
15868
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { className: "uf-text-foreground", children: truncateAddress(recipientAddress || "", 8, 6) }),
15869
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
15870
+ "span",
15849
15871
  {
15850
- href: "https://unifold.io/terms",
15851
- className: "uf-text-muted-foreground uf-underline hover:uf-text-foreground uf-transition-colors",
15852
- target: "_blank",
15853
- children: t3.terms.seeTerms
15872
+ onClick: () => handleCopyRecipientAddress(recipientAddress),
15873
+ className: `uf-flex-shrink-0 uf-transition-colors uf-cursor-pointer ${copiedRecipient ? "uf-text-green-500" : "uf-text-muted-foreground"}`,
15874
+ children: copiedRecipient ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Check, { className: "uf-w-3.5 uf-h-3.5" }) : /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Copy, { className: "uf-w-3.5 uf-h-3.5" })
15854
15875
  }
15855
15876
  )
15856
15877
  ] })
15857
15878
  ] })
15858
15879
  ] })
15859
15880
  ] }),
15860
- depositExecutions.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "uf-flex uf-items-center uf-justify-end uf-text-xs uf-pt-2", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
15881
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
15882
+ PollCooldownButton,
15883
+ {
15884
+ currentWalletId: currentWallet?.id,
15885
+ pollCooldown,
15886
+ publishableKey,
15887
+ onCooldownChange: setPollCooldown,
15888
+ cooldownRef,
15889
+ buttonText: "Check again"
15890
+ }
15891
+ ),
15892
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(DepositFooterLinks, { onGlossaryClick: () => setGlossaryOpen(true) }),
15893
+ depositExecutions.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "uf-flex uf-items-center uf-justify-end uf-text-xs uf-pt-2", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
15861
15894
  "button",
15862
15895
  {
15863
15896
  onClick: () => setDepositsModalOpen(true),
15864
15897
  className: "uf-flex uf-items-center uf-gap-1 uf-text-muted-foreground hover:uf-text-foreground uf-transition-colors uf-animate-in uf-fade-in uf-slide-in-from-right-8 uf-duration-1000",
15865
15898
  children: [
15866
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Clock, { className: "uf-w-3.5 uf-h-3.5" }),
15899
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Clock, { className: "uf-w-3.5 uf-h-3.5" }),
15867
15900
  "Track deposits (",
15868
15901
  depositExecutions.length,
15869
15902
  ")",
15870
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(ChevronRight, { className: "uf-w-3 uf-h-3" })
15903
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(ChevronRight, { className: "uf-w-3 uf-h-3" })
15871
15904
  ]
15872
15905
  }
15873
15906
  ) }),
15874
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
15907
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
15875
15908
  DepositPollingToasts,
15876
15909
  {
15877
15910
  executions: depositExecutions,
15878
15911
  isPolling
15879
15912
  }
15880
15913
  ),
15881
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
15914
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
15882
15915
  DepositsModal,
15883
15916
  {
15884
15917
  open: depositsModalOpen,
@@ -15888,6 +15921,15 @@ function TransferCryptoDoubleInput({
15888
15921
  publishableKey,
15889
15922
  themeClass
15890
15923
  }
15924
+ ),
15925
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
15926
+ GlossaryModal,
15927
+ {
15928
+ open: glossaryOpen,
15929
+ onOpenChange: setGlossaryOpen,
15930
+ themeClass,
15931
+ colors: colors2
15932
+ }
15891
15933
  )
15892
15934
  ]
15893
15935
  }
@@ -15896,27 +15938,27 @@ function TransferCryptoDoubleInput({
15896
15938
  function SkeletonButton({
15897
15939
  variant = "default"
15898
15940
  }) {
15899
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "uf-w-full uf-bg-secondary uf-rounded-xl uf-p-3 uf-flex uf-items-center uf-justify-between uf-animate-pulse", children: [
15900
- /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "uf-flex uf-items-center uf-gap-3", children: [
15901
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "uf-bg-muted uf-rounded-lg uf-w-9 uf-h-9" }),
15902
- /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "uf-space-y-1.5", children: [
15903
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "uf-h-3.5 uf-w-24 uf-bg-muted uf-rounded" }),
15904
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "uf-h-3 uf-w-32 uf-bg-muted uf-rounded" })
15941
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "uf-w-full uf-bg-secondary uf-rounded-xl uf-p-3 uf-flex uf-items-center uf-justify-between uf-animate-pulse", children: [
15942
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "uf-flex uf-items-center uf-gap-3", children: [
15943
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "uf-bg-muted uf-rounded-lg uf-w-9 uf-h-9" }),
15944
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "uf-space-y-1.5", children: [
15945
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "uf-h-3.5 uf-w-24 uf-bg-muted uf-rounded" }),
15946
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "uf-h-3 uf-w-32 uf-bg-muted uf-rounded" })
15905
15947
  ] })
15906
15948
  ] }),
15907
- /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "uf-flex uf-items-center uf-gap-2", children: [
15908
- variant === "with-icons" && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "uf-flex uf--space-x-1", children: [1, 2, 3].map((i) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
15949
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "uf-flex uf-items-center uf-gap-2", children: [
15950
+ variant === "with-icons" && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "uf-flex uf--space-x-1", children: [1, 2, 3].map((i) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
15909
15951
  "div",
15910
15952
  {
15911
15953
  className: "uf-w-5 uf-h-5 uf-rounded-full uf-bg-muted uf-border-2 uf-border-secondary"
15912
15954
  },
15913
15955
  i
15914
15956
  )) }),
15915
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(ChevronRight, { className: "uf-w-4 uf-h-4 uf-text-muted" })
15957
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(ChevronRight, { className: "uf-w-4 uf-h-4 uf-text-muted" })
15916
15958
  ] })
15917
15959
  ] });
15918
15960
  }
15919
- var t4 = i18n2.depositModal;
15961
+ var t5 = i18n2.depositModal;
15920
15962
  function DepositModal({
15921
15963
  open,
15922
15964
  onOpenChange,
@@ -16078,16 +16120,16 @@ function DepositModal({
16078
16120
  setQuotesCount(count3);
16079
16121
  }
16080
16122
  };
16081
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(Dialog2, { open, onOpenChange: handleClose, children: [
16082
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
16123
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(Dialog2, { open, onOpenChange: handleClose, children: [
16124
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
16083
16125
  DialogContent2,
16084
16126
  {
16085
16127
  className: `sm:uf-max-w-[400px] uf-border-secondary uf-text-foreground uf-p-0 uf-gap-0 uf-overflow-visible [&>button]:uf-hidden ${view === "main" ? "!uf-top-auto !uf-h-auto !uf-max-h-[60vh] sm:!uf-max-h-none sm:!uf-top-[50%]" : "!uf-top-0 !uf-h-full sm:!uf-h-auto sm:!uf-top-[50%]"} ${themeClass}`,
16086
16128
  style: { backgroundColor: colors2.background },
16087
16129
  onPointerDownOutside: (e) => e.preventDefault(),
16088
16130
  onInteractOutside: (e) => e.preventDefault(),
16089
- children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(ThemeStyleInjector, { children: view === "main" ? /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(import_jsx_runtime40.Fragment, { children: [
16090
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
16131
+ children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(ThemeStyleInjector, { children: view === "main" ? /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_jsx_runtime43.Fragment, { children: [
16132
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
16091
16133
  DepositHeader,
16092
16134
  {
16093
16135
  title: modalTitle || "Deposit",
@@ -16100,56 +16142,56 @@ function DepositModal({
16100
16142
  publishableKey
16101
16143
  }
16102
16144
  ),
16103
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "uf-pb-4 uf-space-y-3", children: isCountryLoading || isAddressValidationLoading || !projectConfig ? /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(import_jsx_runtime40.Fragment, { children: [
16104
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(SkeletonButton, { variant: "with-icons" }),
16105
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(SkeletonButton, { variant: "with-icons" }),
16106
- !hideDepositTracker && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(SkeletonButton, {})
16145
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "uf-pb-4 uf-space-y-3", children: isCountryLoading || isAddressValidationLoading || !projectConfig ? /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_jsx_runtime43.Fragment, { children: [
16146
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(SkeletonButton, { variant: "with-icons" }),
16147
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(SkeletonButton, { variant: "with-icons" }),
16148
+ !hideDepositTracker && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(SkeletonButton, {})
16107
16149
  ] }) : countryError ? (
16108
16150
  /* Error state - couldn't verify location */
16109
- /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "uf-flex uf-flex-col uf-items-center uf-justify-center uf-py-8 uf-px-4 uf-text-center", children: [
16110
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "uf-w-16 uf-h-16 uf-rounded-full uf-bg-muted uf-flex uf-items-center uf-justify-center uf-mb-4", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(TriangleAlert, { className: "uf-w-8 uf-h-8 uf-text-muted-foreground" }) }),
16111
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("h3", { className: "uf-text-lg uf-font-semibold uf-text-foreground uf-mb-2", children: "Unable to Verify Location" }),
16112
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("p", { className: "uf-text-sm uf-text-muted-foreground uf-max-w-[280px]", children: "We couldn't verify your location. Please check your connection and try again." })
16151
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "uf-flex uf-flex-col uf-items-center uf-justify-center uf-py-8 uf-px-4 uf-text-center", children: [
16152
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "uf-w-16 uf-h-16 uf-rounded-full uf-bg-muted uf-flex uf-items-center uf-justify-center uf-mb-4", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(TriangleAlert, { className: "uf-w-8 uf-h-8 uf-text-muted-foreground" }) }),
16153
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("h3", { className: "uf-text-lg uf-font-semibold uf-text-foreground uf-mb-2", children: "Unable to Verify Location" }),
16154
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("p", { className: "uf-text-sm uf-text-muted-foreground uf-max-w-[280px]", children: "We couldn't verify your location. Please check your connection and try again." })
16113
16155
  ] })
16114
16156
  ) : !isAllowed ? (
16115
16157
  /* Blocked country state (isAllowed is false or null without error) */
16116
- /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "uf-flex uf-flex-col uf-items-center uf-justify-center uf-py-8 uf-px-4 uf-text-center", children: [
16117
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "uf-w-16 uf-h-16 uf-rounded-full uf-bg-muted uf-flex uf-items-center uf-justify-center uf-mb-4", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(MapPinOff, { className: "uf-w-8 uf-h-8 uf-text-muted-foreground" }) }),
16118
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("h3", { className: "uf-text-lg uf-font-semibold uf-text-foreground uf-mb-2", children: "No Tokens Available" }),
16119
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("p", { className: "uf-text-sm uf-text-muted-foreground uf-max-w-[280px]", children: "There are no supported tokens available from your current location." })
16158
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "uf-flex uf-flex-col uf-items-center uf-justify-center uf-py-8 uf-px-4 uf-text-center", children: [
16159
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "uf-w-16 uf-h-16 uf-rounded-full uf-bg-muted uf-flex uf-items-center uf-justify-center uf-mb-4", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(MapPinOff, { className: "uf-w-8 uf-h-8 uf-text-muted-foreground" }) }),
16160
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("h3", { className: "uf-text-lg uf-font-semibold uf-text-foreground uf-mb-2", children: "No Tokens Available" }),
16161
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("p", { className: "uf-text-sm uf-text-muted-foreground uf-max-w-[280px]", children: "There are no supported tokens available from your current location." })
16120
16162
  ] })
16121
16163
  ) : isAddressValid === false ? (
16122
16164
  /* Invalid recipient address state (e.g., Algorand not opted in) */
16123
- /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "uf-flex uf-flex-col uf-items-center uf-justify-center uf-py-8 uf-px-4 uf-text-center", children: [
16124
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "uf-w-16 uf-h-16 uf-rounded-full uf-bg-muted uf-flex uf-items-center uf-justify-center uf-mb-4", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(TriangleAlert, { className: "uf-w-8 uf-h-8 uf-text-muted-foreground" }) }),
16125
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("h3", { className: "uf-text-lg uf-font-semibold uf-text-foreground uf-mb-2", children: addressValidationMessages.unableToReceiveFunds }),
16126
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("p", { className: "uf-text-sm uf-text-muted-foreground uf-max-w-[280px]", children: getAddressValidationErrorMessage(
16165
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "uf-flex uf-flex-col uf-items-center uf-justify-center uf-py-8 uf-px-4 uf-text-center", children: [
16166
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "uf-w-16 uf-h-16 uf-rounded-full uf-bg-muted uf-flex uf-items-center uf-justify-center uf-mb-4", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(TriangleAlert, { className: "uf-w-8 uf-h-8 uf-text-muted-foreground" }) }),
16167
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("h3", { className: "uf-text-lg uf-font-semibold uf-text-foreground uf-mb-2", children: addressValidationMessages.unableToReceiveFunds }),
16168
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("p", { className: "uf-text-sm uf-text-muted-foreground uf-max-w-[280px]", children: getAddressValidationErrorMessage(
16127
16169
  addressFailureCode,
16128
16170
  addressFailureMetadata
16129
16171
  ) })
16130
16172
  ] })
16131
16173
  ) : (
16132
16174
  /* Normal deposit options */
16133
- /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(import_jsx_runtime40.Fragment, { children: [
16134
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
16175
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_jsx_runtime43.Fragment, { children: [
16176
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
16135
16177
  TransferCryptoButton,
16136
16178
  {
16137
16179
  onClick: () => setView("transfer"),
16138
- title: t4.transferCrypto.title,
16139
- subtitle: t4.transferCrypto.subtitle,
16180
+ title: t5.transferCrypto.title,
16181
+ subtitle: t5.transferCrypto.subtitle,
16140
16182
  featuredTokens: projectConfig.transfer_crypto.networks
16141
16183
  }
16142
16184
  ),
16143
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
16185
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
16144
16186
  DepositWithCardButton,
16145
16187
  {
16146
16188
  onClick: () => setView("card"),
16147
- title: t4.depositWithCard.title,
16148
- subtitle: t4.depositWithCard.subtitle,
16189
+ title: t5.depositWithCard.title,
16190
+ subtitle: t5.depositWithCard.subtitle,
16149
16191
  paymentNetworks: projectConfig.payment_networks.networks
16150
16192
  }
16151
16193
  ),
16152
- !hideDepositTracker && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
16194
+ !hideDepositTracker && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
16153
16195
  DepositTrackerButton,
16154
16196
  {
16155
16197
  onClick: () => setDepositsModalOpen(true),
@@ -16160,17 +16202,17 @@ function DepositModal({
16160
16202
  )
16161
16203
  ] })
16162
16204
  ) })
16163
- ] }) : view === "transfer" ? /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(import_jsx_runtime40.Fragment, { children: [
16164
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
16205
+ ] }) : view === "transfer" ? /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_jsx_runtime43.Fragment, { children: [
16206
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
16165
16207
  DepositHeader,
16166
16208
  {
16167
- title: t4.transferCrypto.title,
16209
+ title: t5.transferCrypto.title,
16168
16210
  showBack: true,
16169
16211
  onBack: handleBack,
16170
16212
  onClose: handleClose
16171
16213
  }
16172
16214
  ),
16173
- transferInputVariant === "single_input" ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
16215
+ transferInputVariant === "single_input" ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
16174
16216
  TransferCryptoSingleInput,
16175
16217
  {
16176
16218
  userId,
@@ -16184,7 +16226,7 @@ function DepositModal({
16184
16226
  onDepositError,
16185
16227
  wallets
16186
16228
  }
16187
- ) : /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
16229
+ ) : /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
16188
16230
  TransferCryptoDoubleInput,
16189
16231
  {
16190
16232
  userId,
@@ -16199,18 +16241,18 @@ function DepositModal({
16199
16241
  wallets
16200
16242
  }
16201
16243
  )
16202
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(import_jsx_runtime40.Fragment, { children: [
16203
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
16244
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_jsx_runtime43.Fragment, { children: [
16245
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
16204
16246
  DepositHeader,
16205
16247
  {
16206
- title: cardView === "quotes" ? t4.quotes : t4.depositWithCard.title,
16248
+ title: cardView === "quotes" ? t5.quotes : t5.depositWithCard.title,
16207
16249
  showBack: true,
16208
16250
  onBack: handleBack,
16209
16251
  onClose: handleClose,
16210
16252
  badge: cardView === "quotes" ? { count: quotesCount } : void 0
16211
16253
  }
16212
16254
  ),
16213
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
16255
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
16214
16256
  BuyWithCard,
16215
16257
  {
16216
16258
  userId,
@@ -16232,7 +16274,7 @@ function DepositModal({
16232
16274
  ] }) })
16233
16275
  }
16234
16276
  ),
16235
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
16277
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
16236
16278
  DepositsModal,
16237
16279
  {
16238
16280
  open: depositsModalOpen,
@@ -16289,7 +16331,7 @@ var Button = React102.forwardRef(
16289
16331
  }
16290
16332
  return baseStyle;
16291
16333
  }, [variant, components, fonts, style]);
16292
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
16334
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
16293
16335
  Comp,
16294
16336
  {
16295
16337
  className: cn(buttonVariants({ variant, size: size4, className })),
@@ -16303,18 +16345,18 @@ var Button = React102.forwardRef(
16303
16345
  Button.displayName = "Button";
16304
16346
 
16305
16347
  // src/provider.tsx
16306
- var import_jsx_runtime42 = require("react/jsx-runtime");
16348
+ var import_jsx_runtime45 = require("react/jsx-runtime");
16307
16349
  function UnifoldProvider2({
16308
16350
  children,
16309
16351
  publishableKey,
16310
16352
  config
16311
16353
  }) {
16312
- const [isOpen, setIsOpen] = (0, import_react21.useState)(false);
16313
- const [depositConfig, setDepositConfig] = (0, import_react21.useState)(
16354
+ const [isOpen, setIsOpen] = (0, import_react22.useState)(false);
16355
+ const [depositConfig, setDepositConfig] = (0, import_react22.useState)(
16314
16356
  null
16315
16357
  );
16316
- const [resolvedTheme, setResolvedTheme] = import_react21.default.useState("dark");
16317
- import_react21.default.useEffect(() => {
16358
+ const [resolvedTheme, setResolvedTheme] = import_react22.default.useState("dark");
16359
+ import_react22.default.useEffect(() => {
16318
16360
  const appearance = config?.appearance || "dark";
16319
16361
  if (appearance === "auto") {
16320
16362
  const prefersDark = window.matchMedia("(prefers-color-scheme: dark)").matches;
@@ -16329,9 +16371,9 @@ function UnifoldProvider2({
16329
16371
  setResolvedTheme(appearance);
16330
16372
  }
16331
16373
  }, [config?.appearance]);
16332
- const depositPromiseRef = import_react21.default.useRef(null);
16333
- const closeTimeoutRef = import_react21.default.useRef(null);
16334
- const beginDeposit = (0, import_react21.useCallback)((config2) => {
16374
+ const depositPromiseRef = import_react22.default.useRef(null);
16375
+ const closeTimeoutRef = import_react22.default.useRef(null);
16376
+ const beginDeposit = (0, import_react22.useCallback)((config2) => {
16335
16377
  if (closeTimeoutRef.current) {
16336
16378
  clearTimeout(closeTimeoutRef.current);
16337
16379
  closeTimeoutRef.current = null;
@@ -16351,7 +16393,7 @@ function UnifoldProvider2({
16351
16393
  setIsOpen(true);
16352
16394
  return promise;
16353
16395
  }, []);
16354
- const closeDeposit = (0, import_react21.useCallback)(() => {
16396
+ const closeDeposit = (0, import_react22.useCallback)(() => {
16355
16397
  if (depositPromiseRef.current) {
16356
16398
  depositPromiseRef.current.reject({
16357
16399
  message: "Deposit cancelled by user",
@@ -16365,7 +16407,7 @@ function UnifoldProvider2({
16365
16407
  closeTimeoutRef.current = null;
16366
16408
  }, 200);
16367
16409
  }, []);
16368
- const handleDepositSuccess = (0, import_react21.useCallback)((data) => {
16410
+ const handleDepositSuccess = (0, import_react22.useCallback)((data) => {
16369
16411
  if (depositConfig?.onSuccess) {
16370
16412
  depositConfig.onSuccess(data);
16371
16413
  }
@@ -16374,7 +16416,7 @@ function UnifoldProvider2({
16374
16416
  depositPromiseRef.current = null;
16375
16417
  }
16376
16418
  }, [depositConfig]);
16377
- const handleDepositError = (0, import_react21.useCallback)((error) => {
16419
+ const handleDepositError = (0, import_react22.useCallback)((error) => {
16378
16420
  console.error("[UnifoldProvider] Deposit error:", error);
16379
16421
  if (depositConfig?.onError) {
16380
16422
  depositConfig.onError(error);
@@ -16384,7 +16426,7 @@ function UnifoldProvider2({
16384
16426
  depositPromiseRef.current = null;
16385
16427
  }
16386
16428
  }, [depositConfig]);
16387
- const contextValue = (0, import_react21.useMemo)(
16429
+ const contextValue = (0, import_react22.useMemo)(
16388
16430
  () => ({
16389
16431
  beginDeposit,
16390
16432
  closeDeposit,
@@ -16393,7 +16435,7 @@ function UnifoldProvider2({
16393
16435
  }),
16394
16436
  [beginDeposit, closeDeposit, handleDepositSuccess, handleDepositError]
16395
16437
  );
16396
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(UnifoldProvider, { publishableKey, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(ConnectContext.Provider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
16438
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(UnifoldProvider, { publishableKey, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(ConnectContext.Provider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
16397
16439
  ThemeProvider,
16398
16440
  {
16399
16441
  mode: resolvedTheme,
@@ -16404,7 +16446,7 @@ function UnifoldProvider2({
16404
16446
  components: config?.components,
16405
16447
  children: [
16406
16448
  children,
16407
- depositConfig && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
16449
+ depositConfig && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
16408
16450
  DepositModal,
16409
16451
  {
16410
16452
  open: isOpen,
@@ -16429,10 +16471,10 @@ function UnifoldProvider2({
16429
16471
  }
16430
16472
  ) }) });
16431
16473
  }
16432
- var ConnectContext = import_react21.default.createContext(null);
16474
+ var ConnectContext = import_react22.default.createContext(null);
16433
16475
  function useUnifold2() {
16434
16476
  const baseContext = useUnifold();
16435
- const connectContext = import_react21.default.useContext(ConnectContext);
16477
+ const connectContext = import_react22.default.useContext(ConnectContext);
16436
16478
  if (typeof window === "undefined") {
16437
16479
  return {
16438
16480
  publishableKey: "",
@@ -16493,17 +16535,16 @@ lucide-react/dist/esm/icons/check.js:
16493
16535
  lucide-react/dist/esm/icons/chevron-down.js:
16494
16536
  lucide-react/dist/esm/icons/chevron-right.js:
16495
16537
  lucide-react/dist/esm/icons/chevron-up.js:
16496
- lucide-react/dist/esm/icons/circle-help.js:
16497
16538
  lucide-react/dist/esm/icons/clock.js:
16498
16539
  lucide-react/dist/esm/icons/copy.js:
16499
16540
  lucide-react/dist/esm/icons/credit-card.js:
16500
16541
  lucide-react/dist/esm/icons/dollar-sign.js:
16501
16542
  lucide-react/dist/esm/icons/external-link.js:
16502
- lucide-react/dist/esm/icons/file-text.js:
16503
16543
  lucide-react/dist/esm/icons/info.js:
16504
16544
  lucide-react/dist/esm/icons/map-pin-off.js:
16505
16545
  lucide-react/dist/esm/icons/shield-check.js:
16506
16546
  lucide-react/dist/esm/icons/triangle-alert.js:
16547
+ lucide-react/dist/esm/icons/wallet-minimal.js:
16507
16548
  lucide-react/dist/esm/icons/x.js:
16508
16549
  lucide-react/dist/esm/icons/zap.js:
16509
16550
  lucide-react/dist/esm/lucide-react.js: