@wormhole-foundation/wormhole-connect 0.3.19-beta.3-development → 0.3.19-beta.4-development
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/assets/{ccip-B8sh0red.js → ccip-fCzlhBBT.js} +1 -1
- package/dist/assets/{evm-B3YdeaCI.js → evm-zyz5dAmi.js} +4 -4
- package/dist/assets/{index-moDeJTxm.js → index-Cjisu-Ym.js} +1 -1
- package/dist/assets/{index-1ZJmfQkw.js → index-DYCDjsFo.js} +2 -2
- package/dist/assets/{index.es-CXmj0UJy.js → index.es-LrzWWyFt.js} +2 -2
- package/dist/main.js +5 -5
- package/dist/src/components/ManualAddressInput.d.ts.map +1 -1
- package/lib/{algorand-CNPRWbNB.mjs → algorand-BNtk5Zlz.mjs} +4 -4
- package/lib/{algorand-BDR3KPTJ.js → algorand-BOA88Yi9.js} +1 -1
- package/lib/{aptos-Br9Q1n2N.js → aptos-09IlHhtG.js} +1 -1
- package/lib/{aptos-tCZHrDAP.js → aptos-2Xg1Y_0j.js} +2 -2
- package/lib/{aptos-t3uXFwih.mjs → aptos-DsuCT57P.mjs} +4 -4
- package/lib/{aptos-BPs26BCC.mjs → aptos-ofb4q2o1.mjs} +1 -1
- package/lib/{browser-33Nc32cs.mjs → browser-5rNYk7ew.mjs} +2 -2
- package/lib/{browser-Cz60hQ-L.js → browser-CMlhlM7_.js} +1 -1
- package/lib/{ccip-CtmuOQGX.js → ccip-BnSw75yc.js} +1 -1
- package/lib/{ccip-CE49B2YD.mjs → ccip-rZCaMFot.mjs} +1 -1
- package/lib/{chain-CbwtJlkc.mjs → chain-BZjg2BoT.mjs} +1 -1
- package/lib/{chain-BT07YJHt.js → chain-NLYiTi92.js} +1 -1
- package/lib/cosmos-DeEa4QWd.js +37 -0
- package/lib/{cosmos-LlwNYP69.mjs → cosmos-IWVkyjMV.mjs} +6 -6
- package/lib/{cosmwasm-CiJ3I3AY.js → cosmwasm-BFtZD1Ru.js} +2 -2
- package/lib/{cosmwasm-CbTKetWD.mjs → cosmwasm-CGR89px_.mjs} +6 -6
- package/lib/{create-Chqnlpoq.js → create-Bpjnlpg_.js} +1 -1
- package/lib/{create-HNw0Emrd.mjs → create-PB82rGuQ.mjs} +1 -1
- package/lib/{ens-validation.es6-BaZUabxu.js → ens-validation.es6-BY6Eu6az.js} +1 -1
- package/lib/{ens-validation.es6-CyEOHc9J.mjs → ens-validation.es6-D6AE2QT0.mjs} +2 -2
- package/lib/{evm-lHNM4jqm.mjs → evm-DB1-WEEt.mjs} +6 -6
- package/lib/{evm-3AGyBI-h.js → evm-DY9ovr2c.js} +2 -2
- package/lib/{evm-CjvzIUCn.mjs → evm-FMLhTUS9.mjs} +6 -6
- package/lib/{evm-CNC7JHe1.js → evm-aLUoXBeT.js} +4 -4
- package/lib/{index-35qsyZLz.js → index-6GqC5Hzz.js} +1 -1
- package/lib/{index-DvUq-nIQ.mjs → index-95lzn8zO.mjs} +5 -5
- package/lib/{index-DrncQYMG.js → index-9SUIf5nS.js} +1 -1
- package/lib/{index-BqGvvv6N.js → index-B2IuVewp.js} +1 -1
- package/lib/{index-DJzhcNDU.mjs → index-B2JrUboW.mjs} +6 -6
- package/lib/{index-CokIAiMa.mjs → index-BAMSsTuN.mjs} +4 -4
- package/lib/{index-C4kvGnSA.mjs → index-BEQsB526.mjs} +2 -2
- package/lib/{index-BS1tjK_Z.mjs → index-BEjdY6hm.mjs} +5 -5
- package/lib/{index-abvwfKBf.js → index-BG24T1GX.js} +1 -1
- package/lib/{index-Cp5np38p.mjs → index-BI-a425p.mjs} +1 -1
- package/lib/{index-UOSBfEgg.js → index-BQqBYm1C.js} +1 -1
- package/lib/{index-zKUpU-3R.mjs → index-BSpDXKq1.mjs} +4 -4
- package/lib/{index-D1dHZqit.mjs → index-BULQb7l7.mjs} +4 -4
- package/lib/{index-BWsL77BI.mjs → index-Bdzevkwx.mjs} +3 -3
- package/lib/{index-DRTx-Ru8.mjs → index-BqGrE5rX.mjs} +4 -4
- package/lib/{index-DPNt5r2L.js → index-BwTYRqte.js} +1 -1
- package/lib/{index-CdSy2Lfd.mjs → index-C1JlVOwd.mjs} +128 -124
- package/lib/{index-BBtf8VGl.js → index-C7pm5tV-.js} +1 -1
- package/lib/{index-DfJLd65b.mjs → index-CFc6ua8j.mjs} +4 -4
- package/lib/{index-DVVJw5ml.js → index-COcHH6cV.js} +1 -1
- package/lib/{index-BCnyHegg.mjs → index-CPg2DDGG.mjs} +4 -4
- package/lib/{index-Bfw-brA6.js → index-CaF25_vp.js} +1 -1
- package/lib/{index-CACyup9A.js → index-CefRPGIJ.js} +1 -1
- package/lib/{index-DGRaAUXo.mjs → index-CfOBXKOA.mjs} +2 -2
- package/lib/{index-BpuXk_6h.js → index-Clclaa8l.js} +1 -1
- package/lib/{index-CbCfazgA.mjs → index-Cn3ZByEn.mjs} +5 -5
- package/lib/{index-BH5gBrJu.mjs → index-CswKQSoP.mjs} +3 -3
- package/lib/{index-CGLAoOXl.mjs → index-Cu-QZ2Yi.mjs} +4 -4
- package/lib/{index-B9L2kltl.mjs → index-CxU-Gb5y.mjs} +4 -4
- package/lib/{index-DVH-ZIP6.mjs → index-D0taDsGK.mjs} +4 -4
- package/lib/index-D1vD1x9T.js +3 -0
- package/lib/{index-CjyrCdi_.mjs → index-DHsWcdrI.mjs} +72 -72
- package/lib/{index-Cofatf_w.js → index-DIhwpM7p.js} +1 -1
- package/lib/{index-DCPwTd_i.js → index-DRhnM5uA.js} +1 -1
- package/lib/{index-0t31FGKV.js → index-D_ETBz6p.js} +1 -1
- package/lib/{index-B6m0ovID.mjs → index-Df-PgrLd.mjs} +2 -2
- package/lib/{index-Tl7zYqHL.js → index-DfYc88fY.js} +10 -10
- package/lib/{index-CO9tmWap.js → index-Dph4RybI.js} +1 -1
- package/lib/{index-Bk7wdRtH.mjs → index-Dvg604_r.mjs} +3 -3
- package/lib/{index-BCSt_UXY.js → index-DzVxkotY.js} +1 -1
- package/lib/{index-CYap2RXm.js → index-LMP2SXjR.js} +1 -1
- package/lib/{index-B9gw1I6s.js → index-M0F8WpQR.js} +1 -1
- package/lib/{index-ztQgUCWf.js → index-Na_--gcE.js} +1 -1
- package/lib/{index-Dbwiqljw.js → index-aCI_DUM-.js} +1 -1
- package/lib/{index-dJMYtBle.mjs → index-afsYF03s.mjs} +4 -4
- package/lib/{index-l_e-RUun.js → index-tMk2zWGF.js} +1 -1
- package/lib/{index.es-DnXnnX-i.mjs → index.es-DqS4HLZw.mjs} +4 -4
- package/lib/{index.es-494n2GDU.js → index.es-uerP6wyE.js} +2 -2
- package/lib/index.js +1 -1
- package/lib/index.mjs +1 -1
- package/lib/{libsodium-wrappers-9p7NdjLu.mjs → libsodium-wrappers-B78L643V.mjs} +1 -1
- package/lib/{libsodium-wrappers-Dechaffz.js → libsodium-wrappers-DP3-RcK9.js} +1 -1
- package/lib/{sei-SWKTnPTF.mjs → sei-CvQ5fq9U.mjs} +2 -2
- package/lib/{sei-DORxBQd-.js → sei-D8YL8hcu.js} +1 -1
- package/lib/{solana-DvbMa7B_.mjs → solana-DIKpxJ66.mjs} +3 -3
- package/lib/{solana-KhBV5LOd.js → solana-PbyA60e9.js} +1 -1
- package/lib/{solana-Bd9eRY8E.js → solana-Q02Qu6Us.js} +2 -2
- package/lib/{solana-T2pgCVfU.mjs → solana-eqcW3EUS.mjs} +6 -6
- package/lib/{solanaEmbed.esm-8eZSo5K2.mjs → solanaEmbed.esm-B35xqpi9.mjs} +2 -2
- package/lib/{solanaEmbed.esm-CnKFJhsj.js → solanaEmbed.esm-DAJICEjv.js} +1 -1
- package/lib/src/components/ManualAddressInput.d.ts.map +1 -1
- package/lib/{sui-CjRGl9Gg.mjs → sui-CmBrrkS9.mjs} +1 -1
- package/lib/{sui-B382sZz0.js → sui-Cz7TcwK6.js} +1 -1
- package/lib/{sui-DDu4a1uc.mjs → sui-DWSLoSDK.mjs} +4 -4
- package/lib/{sui-DwH1wYGH.js → sui-YcpSM6BX.js} +2 -2
- package/lib/{unsignedTransaction-mu6HJcHt.js → unsignedTransaction-CuG8xbiM.js} +1 -1
- package/lib/{unsignedTransaction-BbAfXtog.mjs → unsignedTransaction-Dgrq3Lq3.mjs} +2 -2
- package/package.json +1 -1
- package/lib/cosmos-t65H2NQC.js +0 -37
- package/lib/index-Bp0NhDcb.js +0 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as P,
|
|
1
|
+
import { o as P, q as Ye, d as Z, bV as Ze, as as it } from "./index-C1JlVOwd.mjs";
|
|
2
2
|
var Je = {}, Qe = { exports: {} }, je = {};
|
|
3
3
|
(function(o) {
|
|
4
4
|
o.fetch = n(P.fetch) && n(P.ReadableStream), o.writableStream = n(P.WritableStream), o.abortController = n(P.AbortController);
|
|
@@ -33,13 +33,13 @@ var Je = {}, Qe = { exports: {} }, je = {};
|
|
|
33
33
|
}
|
|
34
34
|
r = null;
|
|
35
35
|
})(je);
|
|
36
|
-
var
|
|
36
|
+
var xe = {}, We = je, ft = Ye(), et = Ze, Ae = xe.readyStates = {
|
|
37
37
|
UNSENT: 0,
|
|
38
38
|
OPENED: 1,
|
|
39
39
|
HEADERS_RECEIVED: 2,
|
|
40
40
|
LOADING: 3,
|
|
41
41
|
DONE: 4
|
|
42
|
-
}, $e =
|
|
42
|
+
}, $e = xe.IncomingMessage = function(o, r, h, f) {
|
|
43
43
|
var n = this;
|
|
44
44
|
if (et.Readable.call(n), n._mode = h, n.headers = {}, n.rawHeaders = [], n.trailers = {}, n.rawTrailers = [], n.on("end", function() {
|
|
45
45
|
Z.process.nextTick(function() {
|
|
@@ -147,11 +147,11 @@ $e.prototype._onXHRProgress = function(o) {
|
|
|
147
147
|
}
|
|
148
148
|
r._xhr.readyState === Ae.DONE && r._mode !== "ms-stream" && (o(!0), r.push(null));
|
|
149
149
|
};
|
|
150
|
-
var he = je, ht = Ye, tt =
|
|
150
|
+
var he = je, ht = Ye(), tt = xe, ke = Ze, ut = tt.IncomingMessage, Ke = tt.readyStates;
|
|
151
151
|
function ct(o, r) {
|
|
152
152
|
return he.fetch && r ? "fetch" : he.mozchunkedarraybuffer ? "moz-chunked-arraybuffer" : he.msstream ? "ms-stream" : he.arraybuffer && o ? "arraybuffer" : "text";
|
|
153
153
|
}
|
|
154
|
-
var
|
|
154
|
+
var I = Qe.exports = function(o) {
|
|
155
155
|
var r = this;
|
|
156
156
|
ke.Writable.call(r), r._opts = o, r._body = [], r._headers = {}, o.auth && r.setHeader("Authorization", "Basic " + Z.Buffer.from(o.auth).toString("base64")), Object.keys(o.headers).forEach(function(n) {
|
|
157
157
|
r.setHeader(n, o.headers[n]);
|
|
@@ -171,23 +171,23 @@ var S = Qe.exports = function(o) {
|
|
|
171
171
|
r._onFinish();
|
|
172
172
|
});
|
|
173
173
|
};
|
|
174
|
-
ht(
|
|
175
|
-
|
|
174
|
+
ht(I, ke.Writable);
|
|
175
|
+
I.prototype.setHeader = function(o, r) {
|
|
176
176
|
var h = this, f = o.toLowerCase();
|
|
177
177
|
pt.indexOf(f) === -1 && (h._headers[f] = {
|
|
178
178
|
name: o,
|
|
179
179
|
value: r
|
|
180
180
|
});
|
|
181
181
|
};
|
|
182
|
-
|
|
182
|
+
I.prototype.getHeader = function(o) {
|
|
183
183
|
var r = this._headers[o.toLowerCase()];
|
|
184
184
|
return r ? r.value : null;
|
|
185
185
|
};
|
|
186
|
-
|
|
186
|
+
I.prototype.removeHeader = function(o) {
|
|
187
187
|
var r = this;
|
|
188
188
|
delete r._headers[o.toLowerCase()];
|
|
189
189
|
};
|
|
190
|
-
|
|
190
|
+
I.prototype._onFinish = function() {
|
|
191
191
|
var o = this;
|
|
192
192
|
if (!o._destroyed) {
|
|
193
193
|
var r = o._opts;
|
|
@@ -267,43 +267,43 @@ function lt(o) {
|
|
|
267
267
|
return !1;
|
|
268
268
|
}
|
|
269
269
|
}
|
|
270
|
-
|
|
270
|
+
I.prototype._onXHRProgress = function() {
|
|
271
271
|
var o = this;
|
|
272
272
|
o._resetTimers(!1), !(!lt(o._xhr) || o._destroyed) && (o._response || o._connect(), o._response._onXHRProgress(o._resetTimers.bind(o)));
|
|
273
273
|
};
|
|
274
|
-
|
|
274
|
+
I.prototype._connect = function() {
|
|
275
275
|
var o = this;
|
|
276
276
|
o._destroyed || (o._response = new ut(o._xhr, o._fetchResponse, o._mode, o._resetTimers.bind(o)), o._response.on("error", function(r) {
|
|
277
277
|
o.emit("error", r);
|
|
278
278
|
}), o.emit("response", o._response));
|
|
279
279
|
};
|
|
280
|
-
|
|
280
|
+
I.prototype._write = function(o, r, h) {
|
|
281
281
|
var f = this;
|
|
282
282
|
f._body.push(o), h();
|
|
283
283
|
};
|
|
284
|
-
|
|
284
|
+
I.prototype._resetTimers = function(o) {
|
|
285
285
|
var r = this;
|
|
286
286
|
P.clearTimeout(r._socketTimer), r._socketTimer = null, o ? (P.clearTimeout(r._fetchTimer), r._fetchTimer = null) : r._socketTimeout && (r._socketTimer = P.setTimeout(function() {
|
|
287
287
|
r.emit("timeout");
|
|
288
288
|
}, r._socketTimeout));
|
|
289
289
|
};
|
|
290
|
-
|
|
290
|
+
I.prototype.abort = I.prototype.destroy = function(o) {
|
|
291
291
|
var r = this;
|
|
292
292
|
r._destroyed = !0, r._resetTimers(!0), r._response && (r._response._destroyed = !0), r._xhr ? r._xhr.abort() : r._fetchAbortController && r._fetchAbortController.abort(), o && r.emit("error", o);
|
|
293
293
|
};
|
|
294
|
-
|
|
294
|
+
I.prototype.end = function(o, r, h) {
|
|
295
295
|
var f = this;
|
|
296
296
|
typeof o == "function" && (h = o, o = void 0), ke.Writable.prototype.end.call(f, o, r, h);
|
|
297
297
|
};
|
|
298
|
-
|
|
298
|
+
I.prototype.setTimeout = function(o, r) {
|
|
299
299
|
var h = this;
|
|
300
300
|
r && h.once("timeout", r), h._socketTimeout = o, h._resetTimers(!1);
|
|
301
301
|
};
|
|
302
|
-
|
|
302
|
+
I.prototype.flushHeaders = function() {
|
|
303
303
|
};
|
|
304
|
-
|
|
304
|
+
I.prototype.setNoDelay = function() {
|
|
305
305
|
};
|
|
306
|
-
|
|
306
|
+
I.prototype.setSocketKeepAlive = function() {
|
|
307
307
|
};
|
|
308
308
|
var pt = [
|
|
309
309
|
"accept-charset",
|
|
@@ -398,14 +398,14 @@ var gt = {
|
|
|
398
398
|
509: "Bandwidth Limit Exceeded",
|
|
399
399
|
510: "Not Extended",
|
|
400
400
|
511: "Network Authentication Required"
|
|
401
|
-
}, He = { exports: {} },
|
|
401
|
+
}, He = { exports: {} }, qe = { exports: {} };
|
|
402
402
|
/*! https://mths.be/punycode v1.4.1 by @mathias */
|
|
403
|
-
|
|
403
|
+
qe.exports;
|
|
404
404
|
(function(o, r) {
|
|
405
405
|
(function(h) {
|
|
406
406
|
var f = r && !r.nodeType && r, n = o && !o.nodeType && o, g = typeof P == "object" && P;
|
|
407
407
|
(g.global === g || g.window === g || g.self === g) && (h = g);
|
|
408
|
-
var u, a = 2147483647, v = 36, T = 1, C = 26, m = 38, A = 700, te = 72, ae = 128,
|
|
408
|
+
var u, a = 2147483647, v = 36, T = 1, C = 26, m = 38, A = 700, te = 72, ae = 128, S = "-", Oe = /^xn--/, Ee = /[^\x20-\x7E]/, Ue = /[\x2E\u3002\uFF0E\uFF61]/g, Le = {
|
|
409
409
|
overflow: "Overflow: input needs wider integers to process",
|
|
410
410
|
"not-basic": "Illegal input >= 0x80 (not a basic code point)",
|
|
411
411
|
"invalid-input": "Invalid input"
|
|
@@ -448,25 +448,25 @@ xe.exports;
|
|
|
448
448
|
return M(b + (pe + 1) * i / (i + m));
|
|
449
449
|
}
|
|
450
450
|
function we(i) {
|
|
451
|
-
var p = [], y = i.length, b, w = 0, U = ae,
|
|
452
|
-
for (R = i.lastIndexOf(
|
|
451
|
+
var p = [], y = i.length, b, w = 0, U = ae, q = te, R, N, B, G, L, H, k, V, Q;
|
|
452
|
+
for (R = i.lastIndexOf(S), R < 0 && (R = 0), N = 0; N < R; ++N)
|
|
453
453
|
i.charCodeAt(N) >= 128 && J("not-basic"), p.push(i.charCodeAt(N));
|
|
454
454
|
for (B = R > 0 ? R + 1 : 0; B < y; ) {
|
|
455
|
-
for (G = w, L = 1, H = v; B >= y && J("invalid-input"), k = oe(i.charCodeAt(B++)), (k >= v || k > M((a - w) / L)) && J("overflow"), w += k * L, V = H <=
|
|
455
|
+
for (G = w, L = 1, H = v; B >= y && J("invalid-input"), k = oe(i.charCodeAt(B++)), (k >= v || k > M((a - w) / L)) && J("overflow"), w += k * L, V = H <= q ? T : H >= q + C ? C : H - q, !(k < V); H += v)
|
|
456
456
|
Q = v - V, L > M(a / Q) && J("overflow"), L *= Q;
|
|
457
|
-
b = p.length + 1,
|
|
457
|
+
b = p.length + 1, q = ne(w - G, b, G == 0), M(w / b) > a - U && J("overflow"), U += M(w / b), w %= b, p.splice(w++, 0, U);
|
|
458
458
|
}
|
|
459
459
|
return ue(p);
|
|
460
460
|
}
|
|
461
461
|
function Re(i) {
|
|
462
|
-
var p, y, b, w, U,
|
|
463
|
-
for (i = Te(i), k = i.length, p = ae, y = 0, U = te,
|
|
464
|
-
L = i[
|
|
465
|
-
for (b = w = H.length, w && H.push(
|
|
466
|
-
for (R = a,
|
|
467
|
-
L = i[
|
|
468
|
-
for (V = b + 1, R - p > M((a - y) / V) && J("overflow"), y += (R - p) * V, p = R,
|
|
469
|
-
if (L = i[
|
|
462
|
+
var p, y, b, w, U, q, R, N, B, G, L, H = [], k, V, Q, me;
|
|
463
|
+
for (i = Te(i), k = i.length, p = ae, y = 0, U = te, q = 0; q < k; ++q)
|
|
464
|
+
L = i[q], L < 128 && H.push(re(L));
|
|
465
|
+
for (b = w = H.length, w && H.push(S); b < k; ) {
|
|
466
|
+
for (R = a, q = 0; q < k; ++q)
|
|
467
|
+
L = i[q], L >= p && L < R && (R = L);
|
|
468
|
+
for (V = b + 1, R - p > M((a - y) / V) && J("overflow"), y += (R - p) * V, p = R, q = 0; q < k; ++q)
|
|
469
|
+
if (L = i[q], L < p && ++y > a && J("overflow"), L == p) {
|
|
470
470
|
for (N = y, B = v; G = B <= U ? T : B >= U + C ? C : B - U, !(N < G); B += v)
|
|
471
471
|
me = N - G, Q = v - G, H.push(
|
|
472
472
|
re(ce(G + me % Q, 0))
|
|
@@ -482,7 +482,7 @@ xe.exports;
|
|
|
482
482
|
return Oe.test(p) ? we(p.slice(4).toLowerCase()) : p;
|
|
483
483
|
});
|
|
484
484
|
}
|
|
485
|
-
function
|
|
485
|
+
function Ie(i) {
|
|
486
486
|
return be(i, function(p) {
|
|
487
487
|
return Ee.test(p) ? "xn--" + Re(p) : p;
|
|
488
488
|
});
|
|
@@ -507,7 +507,7 @@ xe.exports;
|
|
|
507
507
|
},
|
|
508
508
|
decode: we,
|
|
509
509
|
encode: Re,
|
|
510
|
-
toASCII:
|
|
510
|
+
toASCII: Ie,
|
|
511
511
|
toUnicode: Pe
|
|
512
512
|
}, f && n)
|
|
513
513
|
if (o.exports == f)
|
|
@@ -518,8 +518,8 @@ xe.exports;
|
|
|
518
518
|
else
|
|
519
519
|
h.punycode = u;
|
|
520
520
|
})(P);
|
|
521
|
-
})(
|
|
522
|
-
var _t =
|
|
521
|
+
})(qe, qe.exports);
|
|
522
|
+
var _t = qe.exports;
|
|
523
523
|
(function(o, r) {
|
|
524
524
|
Object.defineProperty(r, "__esModule", { value: !0 });
|
|
525
525
|
var h = _t, f = it;
|
|
@@ -539,8 +539,8 @@ var _t = xe.exports;
|
|
|
539
539
|
isNullOrUndefined: function(e) {
|
|
540
540
|
return e == null;
|
|
541
541
|
}
|
|
542
|
-
}, v = g.default, T = a, C = ne, m = Re, A = Pe, te = we, ae =
|
|
543
|
-
function
|
|
542
|
+
}, v = g.default, T = a, C = ne, m = Re, A = Pe, te = we, ae = S;
|
|
543
|
+
function S() {
|
|
544
544
|
this.protocol = null, this.slashes = null, this.auth = null, this.host = null, this.port = null, this.hostname = null, this.hash = null, this.search = null, this.query = null, this.pathname = null, this.path = null, this.href = null;
|
|
545
545
|
}
|
|
546
546
|
var Oe = /^([a-z0-9.+-]+:)/i, Ee = /:[0-9]*$/, Ue = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/, Le = ["<", ">", '"', "`", " ", "\r", `
|
|
@@ -563,12 +563,12 @@ var _t = xe.exports;
|
|
|
563
563
|
"file:": !0
|
|
564
564
|
}, ce = u.default;
|
|
565
565
|
function ne(e, s, t) {
|
|
566
|
-
if (e && T.isObject(e) && e instanceof
|
|
566
|
+
if (e && T.isObject(e) && e instanceof S)
|
|
567
567
|
return e;
|
|
568
|
-
var l = new
|
|
568
|
+
var l = new S();
|
|
569
569
|
return l.parse(e, s, t), l;
|
|
570
570
|
}
|
|
571
|
-
|
|
571
|
+
S.prototype.parse = function(e, s, t) {
|
|
572
572
|
if (!T.isString(e))
|
|
573
573
|
throw new TypeError("Parameter 'url' must be a string, not " + typeof e);
|
|
574
574
|
var l = e.indexOf("?"), _ = l !== -1 && l < e.indexOf("#") ? "?" : "#", D = e.split(_), j = /\\/g;
|
|
@@ -579,17 +579,17 @@ var _t = xe.exports;
|
|
|
579
579
|
if (W)
|
|
580
580
|
return this.path = c, this.href = c, this.pathname = W[1], W[2] ? (this.search = W[2], s ? this.query = ce.parse(this.search.substr(1)) : this.query = this.search.substr(1)) : s && (this.search = "", this.query = {}), this;
|
|
581
581
|
}
|
|
582
|
-
var
|
|
583
|
-
if (
|
|
584
|
-
|
|
585
|
-
var fe =
|
|
586
|
-
this.protocol = fe, c = c.substr(
|
|
582
|
+
var x = Oe.exec(c);
|
|
583
|
+
if (x) {
|
|
584
|
+
x = x[0];
|
|
585
|
+
var fe = x.toLowerCase();
|
|
586
|
+
this.protocol = fe, c = c.substr(x.length);
|
|
587
587
|
}
|
|
588
|
-
if (t ||
|
|
588
|
+
if (t || x || c.match(/^\/\/[^@\/]+@[^@\/]+/)) {
|
|
589
589
|
var ve = c.substr(0, 2) === "//";
|
|
590
|
-
ve && !(
|
|
590
|
+
ve && !(x && ue[x]) && (c = c.substr(2), this.slashes = !0);
|
|
591
591
|
}
|
|
592
|
-
if (!ue[
|
|
592
|
+
if (!ue[x] && (ve || x && !oe[x])) {
|
|
593
593
|
for (var F = -1, O = 0; O < ie.length; O++) {
|
|
594
594
|
var ee = c.indexOf(ie[O]);
|
|
595
595
|
ee !== -1 && (F === -1 || ee < F) && (F = ee);
|
|
@@ -606,7 +606,7 @@ var _t = xe.exports;
|
|
|
606
606
|
for (var d = this.hostname.split(/\./), O = 0, E = d.length; O < E; O++) {
|
|
607
607
|
var K = d[O];
|
|
608
608
|
if (K && !K.match(de)) {
|
|
609
|
-
for (var z = "", X = 0,
|
|
609
|
+
for (var z = "", X = 0, Se = K.length; X < Se; X++)
|
|
610
610
|
K.charCodeAt(X) > 127 ? z += "x" : z += K[X];
|
|
611
611
|
if (!z.match(de)) {
|
|
612
612
|
var se = d.slice(0, O), Y = d.slice(O + 1), le = K.match(be);
|
|
@@ -637,9 +637,9 @@ var _t = xe.exports;
|
|
|
637
637
|
return this.href = this.format(), this;
|
|
638
638
|
};
|
|
639
639
|
function we(e) {
|
|
640
|
-
return T.isString(e) && (e = ne(e)), e instanceof
|
|
640
|
+
return T.isString(e) && (e = ne(e)), e instanceof S ? e.format() : S.prototype.format.call(e);
|
|
641
641
|
}
|
|
642
|
-
|
|
642
|
+
S.prototype.format = function() {
|
|
643
643
|
var e = this.auth || "";
|
|
644
644
|
e && (e = encodeURIComponent(e), e = e.replace(/%3A/i, ":"), e += "@");
|
|
645
645
|
var s = this.protocol || "", t = this.pathname || "", l = this.hash || "", _ = !1, D = "";
|
|
@@ -652,18 +652,18 @@ var _t = xe.exports;
|
|
|
652
652
|
function Re(e, s) {
|
|
653
653
|
return ne(e, !1, !0).resolve(s);
|
|
654
654
|
}
|
|
655
|
-
|
|
655
|
+
S.prototype.resolve = function(e) {
|
|
656
656
|
return this.resolveObject(ne(e, !1, !0)).format();
|
|
657
657
|
};
|
|
658
658
|
function Pe(e, s) {
|
|
659
659
|
return e ? ne(e, !1, !0).resolveObject(s) : s;
|
|
660
660
|
}
|
|
661
|
-
|
|
661
|
+
S.prototype.resolveObject = function(e) {
|
|
662
662
|
if (T.isString(e)) {
|
|
663
|
-
var s = new
|
|
663
|
+
var s = new S();
|
|
664
664
|
s.parse(e, !1, !0), e = s;
|
|
665
665
|
}
|
|
666
|
-
for (var t = new
|
|
666
|
+
for (var t = new S(), l = Object.keys(this), _ = 0; _ < l.length; _++) {
|
|
667
667
|
var D = l[_];
|
|
668
668
|
t[D] = this[D];
|
|
669
669
|
}
|
|
@@ -678,8 +678,8 @@ var _t = xe.exports;
|
|
|
678
678
|
}
|
|
679
679
|
if (e.protocol && e.protocol !== t.protocol) {
|
|
680
680
|
if (!oe[e.protocol]) {
|
|
681
|
-
for (var
|
|
682
|
-
var ve =
|
|
681
|
+
for (var x = Object.keys(e), fe = 0; fe < x.length; fe++) {
|
|
682
|
+
var ve = x[fe];
|
|
683
683
|
t[ve] = e[ve];
|
|
684
684
|
}
|
|
685
685
|
return t.href = t.format(), t;
|
|
@@ -711,12 +711,12 @@ var _t = xe.exports;
|
|
|
711
711
|
}
|
|
712
712
|
if (!d.length)
|
|
713
713
|
return t.pathname = null, t.search ? t.path = "/" + t.search : t.path = null, t.href = t.format(), t;
|
|
714
|
-
for (var X = d.slice(-1)[0],
|
|
714
|
+
for (var X = d.slice(-1)[0], Se = (t.host || e.host || d.length > 1) && (X === "." || X === "..") || X === "", se = 0, Y = d.length; Y >= 0; Y--)
|
|
715
715
|
X = d[Y], X === "." ? d.splice(Y, 1) : X === ".." ? (d.splice(Y, 1), se++) : se && (d.splice(Y, 1), se--);
|
|
716
716
|
if (!$ && !ge)
|
|
717
717
|
for (; se--; se)
|
|
718
718
|
d.unshift("..");
|
|
719
|
-
$ && d[0] !== "" && (!d[0] || d[0].charAt(0) !== "/") && d.unshift(""),
|
|
719
|
+
$ && d[0] !== "" && (!d[0] || d[0].charAt(0) !== "/") && d.unshift(""), Se && d.join("/").substr(-1) !== "/" && d.push("");
|
|
720
720
|
var le = d[0] === "" || d[0] && d[0].charAt(0) === "/";
|
|
721
721
|
if (K) {
|
|
722
722
|
t.hostname = t.host = le ? "" : d.length ? d.shift() : "";
|
|
@@ -724,11 +724,11 @@ var _t = xe.exports;
|
|
|
724
724
|
z && (t.auth = z.shift(), t.host = t.hostname = z.shift());
|
|
725
725
|
}
|
|
726
726
|
return $ = $ || t.host && d.length, $ && !le && d.unshift(""), d.length ? t.pathname = d.join("/") : (t.pathname = null, t.path = null), (!T.isNull(t.pathname) || !T.isNull(t.search)) && (t.path = (t.pathname ? t.pathname : "") + (t.search ? t.search : "")), t.auth = e.auth || t.auth, t.slashes = t.slashes || e.slashes, t.href = t.format(), t;
|
|
727
|
-
},
|
|
727
|
+
}, S.prototype.parseHost = function() {
|
|
728
728
|
var e = this.host, s = Ee.exec(e);
|
|
729
729
|
s && (s = s[0], s !== ":" && (this.port = s.substr(1)), e = e.substr(0, e.length - s.length)), e && (this.hostname = e);
|
|
730
730
|
};
|
|
731
|
-
function
|
|
731
|
+
function Ie(e, s) {
|
|
732
732
|
for (var t = 0, l = e.length - 1; l >= 0; l--) {
|
|
733
733
|
var _ = e[l];
|
|
734
734
|
_ === "." ? e.splice(l, 1) : _ === ".." ? (e.splice(l, 1), t++) : t && (e.splice(l, 1), t--);
|
|
@@ -747,7 +747,7 @@ var _t = xe.exports;
|
|
|
747
747
|
continue;
|
|
748
748
|
e = l + "/" + e, s = l.charAt(0) === "/";
|
|
749
749
|
}
|
|
750
|
-
return e =
|
|
750
|
+
return e = Ie(p(e.split("/"), function(_) {
|
|
751
751
|
return !!_;
|
|
752
752
|
}), !s).join("/"), (s ? "/" : "") + e || ".";
|
|
753
753
|
}
|
|
@@ -782,7 +782,7 @@ var _t = xe.exports;
|
|
|
782
782
|
), U = (
|
|
783
783
|
/** @type {resolveImport}*/
|
|
784
784
|
m
|
|
785
|
-
),
|
|
785
|
+
), q = (
|
|
786
786
|
/** @type {UrlImport}*/
|
|
787
787
|
ae
|
|
788
788
|
), R = y.URL, N = y.URLSearchParams, B = /%/g, G = /\\/g, L = /\n/g, H = /\r/g, k = /\t/g, V = 47;
|
|
@@ -859,15 +859,15 @@ var _t = xe.exports;
|
|
|
859
859
|
return b(s);
|
|
860
860
|
if (typeof t != "object" || t === null)
|
|
861
861
|
throw new TypeError('The "options" argument must be of type object.');
|
|
862
|
-
var j = (l = t.auth) != null ? l : !0, c = (_ = t.fragment) != null ? _ : !0, W = (D = t.search) != null ? D : !0,
|
|
863
|
-
return j || (
|
|
862
|
+
var j = (l = t.auth) != null ? l : !0, c = (_ = t.fragment) != null ? _ : !0, W = (D = t.search) != null ? D : !0, x = new R(s.toString());
|
|
863
|
+
return j || (x.username = "", x.password = ""), c || (x.hash = ""), W || (x.search = ""), x.toString();
|
|
864
864
|
}
|
|
865
865
|
), Ve = {
|
|
866
866
|
format: Xe,
|
|
867
867
|
parse: w,
|
|
868
868
|
resolve: U,
|
|
869
869
|
resolveObject: A,
|
|
870
|
-
Url:
|
|
870
|
+
Url: q,
|
|
871
871
|
URL: R,
|
|
872
872
|
URLSearchParams: N,
|
|
873
873
|
domainToASCII: De,
|
|
@@ -875,11 +875,11 @@ var _t = xe.exports;
|
|
|
875
875
|
pathToFileURL: Ge,
|
|
876
876
|
fileURLToPath: ze
|
|
877
877
|
};
|
|
878
|
-
r.URL = R, r.URLSearchParams = N, r.Url =
|
|
878
|
+
r.URL = R, r.URLSearchParams = N, r.Url = q, r.default = Ve, r.domainToASCII = De, r.domainToUnicode = Be, r.fileURLToPath = ze, r.format = Xe, r.parse = w, r.pathToFileURL = Ge, r.resolve = U, r.resolveObject = A, r = o.exports = Ve;
|
|
879
879
|
})(He, He.exports);
|
|
880
880
|
var rt = He.exports;
|
|
881
881
|
(function(o) {
|
|
882
|
-
var r = dt, h =
|
|
882
|
+
var r = dt, h = xe, f = mt, n = gt, g = rt, u = o;
|
|
883
883
|
u.request = function(a, v) {
|
|
884
884
|
typeof a == "string" ? a = g.parse(a) : a = f(a);
|
|
885
885
|
var T = P.location.protocol.search(/^https?:$/) === -1 ? "http:" : "", C = a.protocol || T, m = a.hostname || a.host, A = a.port, te = a.path || "/";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const me=Symbol(),se=Object.getPrototypeOf,G=new WeakMap,he=e=>e&&(G.has(e)?G.get(e):se(e)===Object.prototype||se(e)===Array.prototype),ge=e=>he(e)&&e[me]||null,ne=(e,t=!0)=>{G.set(e,t)};var H={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1,REACT_APP_CONNECT_VERSION:"0.3.19-beta.3-development"};const F=e=>typeof e=="object"&&e!==null,A=new WeakMap,x=new WeakSet,be=(e=Object.is,t=(n,g)=>new Proxy(n,g),s=n=>F(n)&&!x.has(n)&&(Array.isArray(n)||!(Symbol.iterator in n))&&!(n instanceof WeakMap)&&!(n instanceof WeakSet)&&!(n instanceof Error)&&!(n instanceof Number)&&!(n instanceof Date)&&!(n instanceof String)&&!(n instanceof RegExp)&&!(n instanceof ArrayBuffer),r=n=>{switch(n.status){case"fulfilled":return n.value;case"rejected":throw n.reason;default:throw n}},l=new WeakMap,c=(n,g,I=r)=>{const v=l.get(n);if((v==null?void 0:v[0])===g)return v[1];const w=Array.isArray(n)?[]:Object.create(Object.getPrototypeOf(n));return ne(w,!0),l.set(n,[g,w]),Reflect.ownKeys(n).forEach(k=>{if(Object.getOwnPropertyDescriptor(w,k))return;const L=Reflect.get(n,k),M={value:L,enumerable:!0,configurable:!0};if(x.has(L))ne(L,!1);else if(L instanceof Promise)delete M.value,M.get=()=>I(L);else if(A.has(L)){const[b,q]=A.get(L);M.value=c(b,q(),I)}Object.defineProperty(w,k,M)}),Object.preventExtensions(w)},m=new WeakMap,f=[1,1],W=n=>{if(!F(n))throw new Error("object required");const g=m.get(n);if(g)return g;let I=f[0];const v=new Set,w=(a,i=++f[0])=>{I!==i&&(I=i,v.forEach(o=>o(a,i)))};let k=f[1];const L=(a=++f[1])=>(k!==a&&!v.size&&(k=a,b.forEach(([i])=>{const o=i[1](a);o>I&&(I=o)})),I),M=a=>(i,o)=>{const h=[...i];h[1]=[a,...h[1]],w(h,o)},b=new Map,q=(a,i)=>{if((H?"production":void 0)!=="production"&&b.has(a))throw new Error("prop listener already exists");if(v.size){const o=i[3](M(a));b.set(a,[i,o])}else b.set(a,[i])},te=a=>{var i;const o=b.get(a);o&&(b.delete(a),(i=o[1])==null||i.call(o))},pe=a=>(v.add(a),v.size===1&&b.forEach(([o,h],N)=>{if((H?"production":void 0)!=="production"&&h)throw new Error("remove already exists");const R=o[3](M(N));b.set(N,[o,R])}),()=>{v.delete(a),v.size===0&&b.forEach(([o,h],N)=>{h&&(h(),b.set(N,[o]))})}),J=Array.isArray(n)?[]:Object.create(Object.getPrototypeOf(n)),$=t(J,{deleteProperty(a,i){const o=Reflect.get(a,i);te(i);const h=Reflect.deleteProperty(a,i);return h&&w(["delete",[i],o]),h},set(a,i,o,h){const N=Reflect.has(a,i),R=Reflect.get(a,i,h);if(N&&(e(R,o)||m.has(o)&&e(R,m.get(o))))return!0;te(i),F(o)&&(o=ge(o)||o);let V=o;if(o instanceof Promise)o.then(C=>{o.status="fulfilled",o.value=C,w(["resolve",[i],C])}).catch(C=>{o.status="rejected",o.reason=C,w(["reject",[i],C])});else{!A.has(o)&&s(o)&&(V=W(o));const C=!x.has(V)&&A.get(V);C&&q(i,C)}return Reflect.set(a,i,V,h),w(["set",[i],o,R]),!0}});m.set(n,$);const fe=[J,L,c,pe];return A.set($,fe),Reflect.ownKeys(n).forEach(a=>{const i=Object.getOwnPropertyDescriptor(n,a);"value"in i&&($[a]=n[a],delete i.value,delete i.writable),Object.defineProperty(J,a,i)}),$})=>[W,A,x,e,t,s,r,l,c,m,f],[ye]=be();function j(e={}){return ye(e)}function D(e,t,s){const r=A.get(e);(H?"production":void 0)!=="production"&&!r&&console.warn("Please use proxy object");let l;const c=[],m=r[3];let f=!1;const n=m(g=>{c.push(g),l||(l=Promise.resolve().then(()=>{l=void 0,f&&t(c.splice(0))}))});return f=!0,()=>{f=!1,n()}}function ve(e,t){const s=A.get(e);(H?"production":void 0)!=="production"&&!s&&console.warn("Please use proxy object");const[r,l,c]=s;return c(r,l(),t)}const d=j({history:["ConnectWallet"],view:"ConnectWallet",data:void 0}),ee={state:d,subscribe(e){return D(d,()=>e(d))},push(e,t){e!==d.view&&(d.view=e,t&&(d.data=t),d.history.push(e))},reset(e){d.view=e,d.history=[e]},replace(e){d.history.length>1&&(d.history[d.history.length-1]=e,d.view=e)},goBack(){if(d.history.length>1){d.history.pop();const[e]=d.history.slice(-1);d.view=e}},setData(e){d.data=e}},u={WALLETCONNECT_DEEPLINK_CHOICE:"WALLETCONNECT_DEEPLINK_CHOICE",WCM_VERSION:"WCM_VERSION",RECOMMENDED_WALLET_AMOUNT:9,isMobile(){return typeof window<"u"?!!(window.matchMedia("(pointer:coarse)").matches||/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)):!1},isAndroid(){return u.isMobile()&&navigator.userAgent.toLowerCase().includes("android")},isIos(){const e=navigator.userAgent.toLowerCase();return u.isMobile()&&(e.includes("iphone")||e.includes("ipad"))},isHttpUrl(e){return e.startsWith("http://")||e.startsWith("https://")},isArray(e){return Array.isArray(e)&&e.length>0},formatNativeUrl(e,t,s){if(u.isHttpUrl(e))return this.formatUniversalUrl(e,t,s);let r=e;r.includes("://")||(r=e.replaceAll("/","").replaceAll(":",""),r=`${r}://`),r.endsWith("/")||(r=`${r}/`),this.setWalletConnectDeepLink(r,s);const l=encodeURIComponent(t);return`${r}wc?uri=${l}`},formatUniversalUrl(e,t,s){if(!u.isHttpUrl(e))return this.formatNativeUrl(e,t,s);let r=e;r.endsWith("/")||(r=`${r}/`),this.setWalletConnectDeepLink(r,s);const l=encodeURIComponent(t);return`${r}wc?uri=${l}`},async wait(e){return new Promise(t=>{setTimeout(t,e)})},openHref(e,t){window.open(e,t,"noreferrer noopener")},setWalletConnectDeepLink(e,t){try{localStorage.setItem(u.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:e,name:t}))}catch{console.info("Unable to set WalletConnect deep link")}},setWalletConnectAndroidDeepLink(e){try{const[t]=e.split("?");localStorage.setItem(u.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:t,name:"Android"}))}catch{console.info("Unable to set WalletConnect android deep link")}},removeWalletConnectDeepLink(){try{localStorage.removeItem(u.WALLETCONNECT_DEEPLINK_CHOICE)}catch{console.info("Unable to remove WalletConnect deep link")}},setModalVersionInStorage(){try{typeof localStorage<"u"&&localStorage.setItem(u.WCM_VERSION,"2.6.2")}catch{console.info("Unable to set Web3Modal version in storage")}},getWalletRouterData(){var e;const t=(e=ee.state.data)==null?void 0:e.Wallet;if(!t)throw new Error('Missing "Wallet" view data');return t}},we=typeof location<"u"&&(location.hostname.includes("localhost")||location.protocol.includes("https")),p=j({enabled:we,userSessionId:"",events:[],connectedWalletId:void 0}),ue={state:p,subscribe(e){return D(p.events,()=>e(ve(p.events[p.events.length-1])))},initialize(){p.enabled&&typeof(crypto==null?void 0:crypto.randomUUID)<"u"&&(p.userSessionId=crypto.randomUUID())},setConnectedWalletId(e){p.connectedWalletId=e},click(e){if(p.enabled){const t={type:"CLICK",name:e.name,userSessionId:p.userSessionId,timestamp:Date.now(),data:e};p.events.push(t)}},track(e){if(p.enabled){const t={type:"TRACK",name:e.name,userSessionId:p.userSessionId,timestamp:Date.now(),data:e};p.events.push(t)}},view(e){if(p.enabled){const t={type:"VIEW",name:e.name,userSessionId:p.userSessionId,timestamp:Date.now(),data:e};p.events.push(t)}}},O=j({chains:void 0,walletConnectUri:void 0,isAuth:!1,isCustomDesktop:!1,isCustomMobile:!1,isDataLoaded:!1,isUiLoaded:!1}),y={state:O,subscribe(e){return D(O,()=>e(O))},setChains(e){O.chains=e},setWalletConnectUri(e){O.walletConnectUri=e},setIsCustomDesktop(e){O.isCustomDesktop=e},setIsCustomMobile(e){O.isCustomMobile=e},setIsDataLoaded(e){O.isDataLoaded=e},setIsUiLoaded(e){O.isUiLoaded=e},setIsAuth(e){O.isAuth=e}},B=j({projectId:"",mobileWallets:void 0,desktopWallets:void 0,walletImages:void 0,chains:void 0,enableAuthMode:!1,enableExplorer:!0,explorerExcludedWalletIds:void 0,explorerRecommendedWalletIds:void 0,termsOfServiceUrl:void 0,privacyPolicyUrl:void 0}),P={state:B,subscribe(e){return D(B,()=>e(B))},setConfig(e){var t,s;ue.initialize(),y.setChains(e.chains),y.setIsAuth(!!e.enableAuthMode),y.setIsCustomMobile(!!((t=e.mobileWallets)!=null&&t.length)),y.setIsCustomDesktop(!!((s=e.desktopWallets)!=null&&s.length)),u.setModalVersionInStorage(),Object.assign(B,e)}};var Ie=Object.defineProperty,oe=Object.getOwnPropertySymbols,Oe=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable,re=(e,t,s)=>t in e?Ie(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,Le=(e,t)=>{for(var s in t||(t={}))Oe.call(t,s)&&re(e,s,t[s]);if(oe)for(var s of oe(t))Ee.call(t,s)&&re(e,s,t[s]);return e};const Q="https://explorer-api.walletconnect.com",X="wcm",Y="js-2.6.2";async function K(e,t){const s=Le({sdkType:X,sdkVersion:Y},t),r=new URL(e,Q);return r.searchParams.append("projectId",P.state.projectId),Object.entries(s).forEach(([l,c])=>{c&&r.searchParams.append(l,String(c))}),(await fetch(r)).json()}const U={async getDesktopListings(e){return K("/w3m/v1/getDesktopListings",e)},async getMobileListings(e){return K("/w3m/v1/getMobileListings",e)},async getInjectedListings(e){return K("/w3m/v1/getInjectedListings",e)},async getAllListings(e){return K("/w3m/v1/getAllListings",e)},getWalletImageUrl(e){return`${Q}/w3m/v1/getWalletImage/${e}?projectId=${P.state.projectId}&sdkType=${X}&sdkVersion=${Y}`},getAssetImageUrl(e){return`${Q}/w3m/v1/getAssetImage/${e}?projectId=${P.state.projectId}&sdkType=${X}&sdkVersion=${Y}`}};var We=Object.defineProperty,ie=Object.getOwnPropertySymbols,Ce=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable,ae=(e,t,s)=>t in e?We(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,je=(e,t)=>{for(var s in t||(t={}))Ce.call(t,s)&&ae(e,s,t[s]);if(ie)for(var s of ie(t))Ae.call(t,s)&&ae(e,s,t[s]);return e};const le=u.isMobile(),E=j({wallets:{listings:[],total:0,page:1},search:{listings:[],total:0,page:1},recomendedWallets:[]}),Me={state:E,async getRecomendedWallets(){const{explorerRecommendedWalletIds:e,explorerExcludedWalletIds:t}=P.state;if(e==="NONE"||t==="ALL"&&!e)return E.recomendedWallets;if(u.isArray(e)){const s={recommendedIds:e.join(",")},{listings:r}=await U.getAllListings(s),l=Object.values(r);l.sort((c,m)=>{const f=e.indexOf(c.id),W=e.indexOf(m.id);return f-W}),E.recomendedWallets=l}else{const{chains:s,isAuth:r}=y.state,l=s==null?void 0:s.join(","),c=u.isArray(t),m={page:1,sdks:r?"auth_v1":void 0,entries:u.RECOMMENDED_WALLET_AMOUNT,chains:l,version:2,excludedIds:c?t.join(","):void 0},{listings:f}=le?await U.getMobileListings(m):await U.getDesktopListings(m);E.recomendedWallets=Object.values(f)}return E.recomendedWallets},async getWallets(e){const t=je({},e),{explorerRecommendedWalletIds:s,explorerExcludedWalletIds:r}=P.state,{recomendedWallets:l}=E;if(r==="ALL")return E.wallets;l.length?t.excludedIds=l.map(I=>I.id).join(","):u.isArray(s)&&(t.excludedIds=s.join(",")),u.isArray(r)&&(t.excludedIds=[t.excludedIds,r].filter(Boolean).join(",")),y.state.isAuth&&(t.sdks="auth_v1");const{page:c,search:m}=e,{listings:f,total:W}=le?await U.getMobileListings(t):await U.getDesktopListings(t),n=Object.values(f),g=m?"search":"wallets";return E[g]={listings:[...E[g].listings,...n],total:W,page:c??1},{listings:n,total:W}},getWalletImageUrl(e){return U.getWalletImageUrl(e)},getAssetImageUrl(e){return U.getAssetImageUrl(e)},resetSearch(){E.search={listings:[],total:0,page:1}}},_=j({open:!1}),z={state:_,subscribe(e){return D(_,()=>e(_))},async open(e){return new Promise(t=>{const{isUiLoaded:s,isDataLoaded:r}=y.state;if(u.removeWalletConnectDeepLink(),y.setWalletConnectUri(e==null?void 0:e.uri),y.setChains(e==null?void 0:e.chains),ee.reset("ConnectWallet"),s&&r)_.open=!0,t();else{const l=setInterval(()=>{const c=y.state;c.isUiLoaded&&c.isDataLoaded&&(clearInterval(l),_.open=!0,t())},200)}})},close(){_.open=!1}};var Ue=Object.defineProperty,ce=Object.getOwnPropertySymbols,Se=Object.prototype.hasOwnProperty,Pe=Object.prototype.propertyIsEnumerable,de=(e,t,s)=>t in e?Ue(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,De=(e,t)=>{for(var s in t||(t={}))Se.call(t,s)&&de(e,s,t[s]);if(ce)for(var s of ce(t))Pe.call(t,s)&&de(e,s,t[s]);return e};function ke(){return typeof matchMedia<"u"&&matchMedia("(prefers-color-scheme: dark)").matches}const T=j({themeMode:ke()?"dark":"light"}),Z={state:T,subscribe(e){return D(T,()=>e(T))},setThemeConfig(e){const{themeMode:t,themeVariables:s}=e;t&&(T.themeMode=t),s&&(T.themeVariables=De({},s))}},S=j({open:!1,message:"",variant:"success"}),Ne={state:S,subscribe(e){return D(S,()=>e(S))},openToast(e,t){S.open=!0,S.message=e,S.variant=t},closeToast(){S.open=!1}};class _e{constructor(t){this.openModal=z.open,this.closeModal=z.close,this.subscribeModal=z.subscribe,this.setTheme=Z.setThemeConfig,Z.setThemeConfig(t),P.setConfig(t),this.initUi()}async initUi(){if(typeof window<"u"){await Promise.resolve().then(()=>require("./index-DCPwTd_i.js"));const t=document.createElement("wcm-modal");document.body.insertAdjacentElement("beforeend",t),y.setIsUiLoaded(!0)}}}const Re=Object.freeze(Object.defineProperty({__proto__:null,WalletConnectModal:_e},Symbol.toStringTag,{value:"Module"}));exports.R=ue;exports.T=ee;exports.a=u;exports.index=Re;exports.ne=Z;exports.oe=Ne;exports.p=y;exports.se=z;exports.te=Me;exports.y=P;
|
|
1
|
+
"use strict";const me=Symbol(),se=Object.getPrototypeOf,G=new WeakMap,he=e=>e&&(G.has(e)?G.get(e):se(e)===Object.prototype||se(e)===Array.prototype),ge=e=>he(e)&&e[me]||null,ne=(e,t=!0)=>{G.set(e,t)};var H={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1,REACT_APP_CONNECT_VERSION:"0.3.19-beta.4-development"};const F=e=>typeof e=="object"&&e!==null,A=new WeakMap,x=new WeakSet,be=(e=Object.is,t=(n,g)=>new Proxy(n,g),s=n=>F(n)&&!x.has(n)&&(Array.isArray(n)||!(Symbol.iterator in n))&&!(n instanceof WeakMap)&&!(n instanceof WeakSet)&&!(n instanceof Error)&&!(n instanceof Number)&&!(n instanceof Date)&&!(n instanceof String)&&!(n instanceof RegExp)&&!(n instanceof ArrayBuffer),r=n=>{switch(n.status){case"fulfilled":return n.value;case"rejected":throw n.reason;default:throw n}},l=new WeakMap,c=(n,g,I=r)=>{const v=l.get(n);if((v==null?void 0:v[0])===g)return v[1];const w=Array.isArray(n)?[]:Object.create(Object.getPrototypeOf(n));return ne(w,!0),l.set(n,[g,w]),Reflect.ownKeys(n).forEach(k=>{if(Object.getOwnPropertyDescriptor(w,k))return;const L=Reflect.get(n,k),M={value:L,enumerable:!0,configurable:!0};if(x.has(L))ne(L,!1);else if(L instanceof Promise)delete M.value,M.get=()=>I(L);else if(A.has(L)){const[b,q]=A.get(L);M.value=c(b,q(),I)}Object.defineProperty(w,k,M)}),Object.preventExtensions(w)},m=new WeakMap,f=[1,1],W=n=>{if(!F(n))throw new Error("object required");const g=m.get(n);if(g)return g;let I=f[0];const v=new Set,w=(a,i=++f[0])=>{I!==i&&(I=i,v.forEach(o=>o(a,i)))};let k=f[1];const L=(a=++f[1])=>(k!==a&&!v.size&&(k=a,b.forEach(([i])=>{const o=i[1](a);o>I&&(I=o)})),I),M=a=>(i,o)=>{const h=[...i];h[1]=[a,...h[1]],w(h,o)},b=new Map,q=(a,i)=>{if((H?"production":void 0)!=="production"&&b.has(a))throw new Error("prop listener already exists");if(v.size){const o=i[3](M(a));b.set(a,[i,o])}else b.set(a,[i])},te=a=>{var i;const o=b.get(a);o&&(b.delete(a),(i=o[1])==null||i.call(o))},pe=a=>(v.add(a),v.size===1&&b.forEach(([o,h],N)=>{if((H?"production":void 0)!=="production"&&h)throw new Error("remove already exists");const R=o[3](M(N));b.set(N,[o,R])}),()=>{v.delete(a),v.size===0&&b.forEach(([o,h],N)=>{h&&(h(),b.set(N,[o]))})}),J=Array.isArray(n)?[]:Object.create(Object.getPrototypeOf(n)),$=t(J,{deleteProperty(a,i){const o=Reflect.get(a,i);te(i);const h=Reflect.deleteProperty(a,i);return h&&w(["delete",[i],o]),h},set(a,i,o,h){const N=Reflect.has(a,i),R=Reflect.get(a,i,h);if(N&&(e(R,o)||m.has(o)&&e(R,m.get(o))))return!0;te(i),F(o)&&(o=ge(o)||o);let V=o;if(o instanceof Promise)o.then(C=>{o.status="fulfilled",o.value=C,w(["resolve",[i],C])}).catch(C=>{o.status="rejected",o.reason=C,w(["reject",[i],C])});else{!A.has(o)&&s(o)&&(V=W(o));const C=!x.has(V)&&A.get(V);C&&q(i,C)}return Reflect.set(a,i,V,h),w(["set",[i],o,R]),!0}});m.set(n,$);const fe=[J,L,c,pe];return A.set($,fe),Reflect.ownKeys(n).forEach(a=>{const i=Object.getOwnPropertyDescriptor(n,a);"value"in i&&($[a]=n[a],delete i.value,delete i.writable),Object.defineProperty(J,a,i)}),$})=>[W,A,x,e,t,s,r,l,c,m,f],[ye]=be();function j(e={}){return ye(e)}function D(e,t,s){const r=A.get(e);(H?"production":void 0)!=="production"&&!r&&console.warn("Please use proxy object");let l;const c=[],m=r[3];let f=!1;const n=m(g=>{c.push(g),l||(l=Promise.resolve().then(()=>{l=void 0,f&&t(c.splice(0))}))});return f=!0,()=>{f=!1,n()}}function ve(e,t){const s=A.get(e);(H?"production":void 0)!=="production"&&!s&&console.warn("Please use proxy object");const[r,l,c]=s;return c(r,l(),t)}const d=j({history:["ConnectWallet"],view:"ConnectWallet",data:void 0}),ee={state:d,subscribe(e){return D(d,()=>e(d))},push(e,t){e!==d.view&&(d.view=e,t&&(d.data=t),d.history.push(e))},reset(e){d.view=e,d.history=[e]},replace(e){d.history.length>1&&(d.history[d.history.length-1]=e,d.view=e)},goBack(){if(d.history.length>1){d.history.pop();const[e]=d.history.slice(-1);d.view=e}},setData(e){d.data=e}},u={WALLETCONNECT_DEEPLINK_CHOICE:"WALLETCONNECT_DEEPLINK_CHOICE",WCM_VERSION:"WCM_VERSION",RECOMMENDED_WALLET_AMOUNT:9,isMobile(){return typeof window<"u"?!!(window.matchMedia("(pointer:coarse)").matches||/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)):!1},isAndroid(){return u.isMobile()&&navigator.userAgent.toLowerCase().includes("android")},isIos(){const e=navigator.userAgent.toLowerCase();return u.isMobile()&&(e.includes("iphone")||e.includes("ipad"))},isHttpUrl(e){return e.startsWith("http://")||e.startsWith("https://")},isArray(e){return Array.isArray(e)&&e.length>0},formatNativeUrl(e,t,s){if(u.isHttpUrl(e))return this.formatUniversalUrl(e,t,s);let r=e;r.includes("://")||(r=e.replaceAll("/","").replaceAll(":",""),r=`${r}://`),r.endsWith("/")||(r=`${r}/`),this.setWalletConnectDeepLink(r,s);const l=encodeURIComponent(t);return`${r}wc?uri=${l}`},formatUniversalUrl(e,t,s){if(!u.isHttpUrl(e))return this.formatNativeUrl(e,t,s);let r=e;r.endsWith("/")||(r=`${r}/`),this.setWalletConnectDeepLink(r,s);const l=encodeURIComponent(t);return`${r}wc?uri=${l}`},async wait(e){return new Promise(t=>{setTimeout(t,e)})},openHref(e,t){window.open(e,t,"noreferrer noopener")},setWalletConnectDeepLink(e,t){try{localStorage.setItem(u.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:e,name:t}))}catch{console.info("Unable to set WalletConnect deep link")}},setWalletConnectAndroidDeepLink(e){try{const[t]=e.split("?");localStorage.setItem(u.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:t,name:"Android"}))}catch{console.info("Unable to set WalletConnect android deep link")}},removeWalletConnectDeepLink(){try{localStorage.removeItem(u.WALLETCONNECT_DEEPLINK_CHOICE)}catch{console.info("Unable to remove WalletConnect deep link")}},setModalVersionInStorage(){try{typeof localStorage<"u"&&localStorage.setItem(u.WCM_VERSION,"2.6.2")}catch{console.info("Unable to set Web3Modal version in storage")}},getWalletRouterData(){var e;const t=(e=ee.state.data)==null?void 0:e.Wallet;if(!t)throw new Error('Missing "Wallet" view data');return t}},we=typeof location<"u"&&(location.hostname.includes("localhost")||location.protocol.includes("https")),p=j({enabled:we,userSessionId:"",events:[],connectedWalletId:void 0}),ue={state:p,subscribe(e){return D(p.events,()=>e(ve(p.events[p.events.length-1])))},initialize(){p.enabled&&typeof(crypto==null?void 0:crypto.randomUUID)<"u"&&(p.userSessionId=crypto.randomUUID())},setConnectedWalletId(e){p.connectedWalletId=e},click(e){if(p.enabled){const t={type:"CLICK",name:e.name,userSessionId:p.userSessionId,timestamp:Date.now(),data:e};p.events.push(t)}},track(e){if(p.enabled){const t={type:"TRACK",name:e.name,userSessionId:p.userSessionId,timestamp:Date.now(),data:e};p.events.push(t)}},view(e){if(p.enabled){const t={type:"VIEW",name:e.name,userSessionId:p.userSessionId,timestamp:Date.now(),data:e};p.events.push(t)}}},O=j({chains:void 0,walletConnectUri:void 0,isAuth:!1,isCustomDesktop:!1,isCustomMobile:!1,isDataLoaded:!1,isUiLoaded:!1}),y={state:O,subscribe(e){return D(O,()=>e(O))},setChains(e){O.chains=e},setWalletConnectUri(e){O.walletConnectUri=e},setIsCustomDesktop(e){O.isCustomDesktop=e},setIsCustomMobile(e){O.isCustomMobile=e},setIsDataLoaded(e){O.isDataLoaded=e},setIsUiLoaded(e){O.isUiLoaded=e},setIsAuth(e){O.isAuth=e}},B=j({projectId:"",mobileWallets:void 0,desktopWallets:void 0,walletImages:void 0,chains:void 0,enableAuthMode:!1,enableExplorer:!0,explorerExcludedWalletIds:void 0,explorerRecommendedWalletIds:void 0,termsOfServiceUrl:void 0,privacyPolicyUrl:void 0}),P={state:B,subscribe(e){return D(B,()=>e(B))},setConfig(e){var t,s;ue.initialize(),y.setChains(e.chains),y.setIsAuth(!!e.enableAuthMode),y.setIsCustomMobile(!!((t=e.mobileWallets)!=null&&t.length)),y.setIsCustomDesktop(!!((s=e.desktopWallets)!=null&&s.length)),u.setModalVersionInStorage(),Object.assign(B,e)}};var Ie=Object.defineProperty,oe=Object.getOwnPropertySymbols,Oe=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable,re=(e,t,s)=>t in e?Ie(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,Le=(e,t)=>{for(var s in t||(t={}))Oe.call(t,s)&&re(e,s,t[s]);if(oe)for(var s of oe(t))Ee.call(t,s)&&re(e,s,t[s]);return e};const Q="https://explorer-api.walletconnect.com",X="wcm",Y="js-2.6.2";async function K(e,t){const s=Le({sdkType:X,sdkVersion:Y},t),r=new URL(e,Q);return r.searchParams.append("projectId",P.state.projectId),Object.entries(s).forEach(([l,c])=>{c&&r.searchParams.append(l,String(c))}),(await fetch(r)).json()}const U={async getDesktopListings(e){return K("/w3m/v1/getDesktopListings",e)},async getMobileListings(e){return K("/w3m/v1/getMobileListings",e)},async getInjectedListings(e){return K("/w3m/v1/getInjectedListings",e)},async getAllListings(e){return K("/w3m/v1/getAllListings",e)},getWalletImageUrl(e){return`${Q}/w3m/v1/getWalletImage/${e}?projectId=${P.state.projectId}&sdkType=${X}&sdkVersion=${Y}`},getAssetImageUrl(e){return`${Q}/w3m/v1/getAssetImage/${e}?projectId=${P.state.projectId}&sdkType=${X}&sdkVersion=${Y}`}};var We=Object.defineProperty,ie=Object.getOwnPropertySymbols,Ce=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable,ae=(e,t,s)=>t in e?We(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,je=(e,t)=>{for(var s in t||(t={}))Ce.call(t,s)&&ae(e,s,t[s]);if(ie)for(var s of ie(t))Ae.call(t,s)&&ae(e,s,t[s]);return e};const le=u.isMobile(),E=j({wallets:{listings:[],total:0,page:1},search:{listings:[],total:0,page:1},recomendedWallets:[]}),Me={state:E,async getRecomendedWallets(){const{explorerRecommendedWalletIds:e,explorerExcludedWalletIds:t}=P.state;if(e==="NONE"||t==="ALL"&&!e)return E.recomendedWallets;if(u.isArray(e)){const s={recommendedIds:e.join(",")},{listings:r}=await U.getAllListings(s),l=Object.values(r);l.sort((c,m)=>{const f=e.indexOf(c.id),W=e.indexOf(m.id);return f-W}),E.recomendedWallets=l}else{const{chains:s,isAuth:r}=y.state,l=s==null?void 0:s.join(","),c=u.isArray(t),m={page:1,sdks:r?"auth_v1":void 0,entries:u.RECOMMENDED_WALLET_AMOUNT,chains:l,version:2,excludedIds:c?t.join(","):void 0},{listings:f}=le?await U.getMobileListings(m):await U.getDesktopListings(m);E.recomendedWallets=Object.values(f)}return E.recomendedWallets},async getWallets(e){const t=je({},e),{explorerRecommendedWalletIds:s,explorerExcludedWalletIds:r}=P.state,{recomendedWallets:l}=E;if(r==="ALL")return E.wallets;l.length?t.excludedIds=l.map(I=>I.id).join(","):u.isArray(s)&&(t.excludedIds=s.join(",")),u.isArray(r)&&(t.excludedIds=[t.excludedIds,r].filter(Boolean).join(",")),y.state.isAuth&&(t.sdks="auth_v1");const{page:c,search:m}=e,{listings:f,total:W}=le?await U.getMobileListings(t):await U.getDesktopListings(t),n=Object.values(f),g=m?"search":"wallets";return E[g]={listings:[...E[g].listings,...n],total:W,page:c??1},{listings:n,total:W}},getWalletImageUrl(e){return U.getWalletImageUrl(e)},getAssetImageUrl(e){return U.getAssetImageUrl(e)},resetSearch(){E.search={listings:[],total:0,page:1}}},_=j({open:!1}),z={state:_,subscribe(e){return D(_,()=>e(_))},async open(e){return new Promise(t=>{const{isUiLoaded:s,isDataLoaded:r}=y.state;if(u.removeWalletConnectDeepLink(),y.setWalletConnectUri(e==null?void 0:e.uri),y.setChains(e==null?void 0:e.chains),ee.reset("ConnectWallet"),s&&r)_.open=!0,t();else{const l=setInterval(()=>{const c=y.state;c.isUiLoaded&&c.isDataLoaded&&(clearInterval(l),_.open=!0,t())},200)}})},close(){_.open=!1}};var Ue=Object.defineProperty,ce=Object.getOwnPropertySymbols,Se=Object.prototype.hasOwnProperty,Pe=Object.prototype.propertyIsEnumerable,de=(e,t,s)=>t in e?Ue(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,De=(e,t)=>{for(var s in t||(t={}))Se.call(t,s)&&de(e,s,t[s]);if(ce)for(var s of ce(t))Pe.call(t,s)&&de(e,s,t[s]);return e};function ke(){return typeof matchMedia<"u"&&matchMedia("(prefers-color-scheme: dark)").matches}const T=j({themeMode:ke()?"dark":"light"}),Z={state:T,subscribe(e){return D(T,()=>e(T))},setThemeConfig(e){const{themeMode:t,themeVariables:s}=e;t&&(T.themeMode=t),s&&(T.themeVariables=De({},s))}},S=j({open:!1,message:"",variant:"success"}),Ne={state:S,subscribe(e){return D(S,()=>e(S))},openToast(e,t){S.open=!0,S.message=e,S.variant=t},closeToast(){S.open=!1}};class _e{constructor(t){this.openModal=z.open,this.closeModal=z.close,this.subscribeModal=z.subscribe,this.setTheme=Z.setThemeConfig,Z.setThemeConfig(t),P.setConfig(t),this.initUi()}async initUi(){if(typeof window<"u"){await Promise.resolve().then(()=>require("./index-DRhnM5uA.js"));const t=document.createElement("wcm-modal");document.body.insertAdjacentElement("beforeend",t),y.setIsUiLoaded(!0)}}}const Re=Object.freeze(Object.defineProperty({__proto__:null,WalletConnectModal:_e},Symbol.toStringTag,{value:"Module"}));exports.R=ue;exports.T=ee;exports.a=u;exports.index=Re;exports.ne=Z;exports.oe=Ne;exports.p=y;exports.se=z;exports.te=Me;exports.y=P;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./index-DIhwpM7p.js"),Mr=require("./dijkstra-CtFxn7S9.js"),Sr=require("./index-DfYc88fY.js");var Or=function(t){for(var o=[],n=t.length,r=0;r<n;r++){var i=t.charCodeAt(r);if(i>=55296&&i<=56319&&n>r+1){var a=t.charCodeAt(r+1);a>=56320&&a<=57343&&(i=(i-55296)*1024+a-56320+65536,r+=1)}if(i<128){o.push(i);continue}if(i<2048){o.push(i>>6|192),o.push(i&63|128);continue}if(i<55296||i>=57344&&i<65536){o.push(i>>12|224),o.push(i>>6&63|128),o.push(i&63|128);continue}if(i>=65536&&i<=1114111){o.push(i>>18|240),o.push(i>>12&63|128),o.push(i>>6&63|128),o.push(i&63|128);continue}o.push(239,191,189)}return new Uint8Array(o).buffer};/**
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|