@use-glyph/sdk-react 2.0.13 → 2.0.15-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { jsx as c, jsxs as S, Fragment as ve } from "react/jsx-runtime";
2
2
  import * as B from "react";
3
- import q, { createContext as So, useContext as xr, useState as re, useEffect as xe, memo as gt, forwardRef as Gt, createElement as ol, useLayoutEffect as Ep, useMemo as Fe, useCallback as tt, useRef as To, lazy as vp } from "react";
4
- import { useChainId as Vt, injected as w0, useChains as Ap, useSwitchChain as Hl, useConfig as Uo, deepEqual as b0, useConnect as y0, useDisconnect as C0, useAccount as x0, createConfig as E0, WagmiProvider as v0, useReconnect as A0 } from "wagmi";
5
- import { parseSignature as k0, encodeFunctionData as kp, custom as hs, createPublicClient as yn, http as Et, hexToBigInt as Nr, fallback as il, createWalletClient as S0, zeroAddress as vt, formatUnits as $r, parseUnits as jl, isAddress as ll, checksumAddress as qa, erc20Abi as fi, parseEther as T0, publicActions as U0, extractChain as I0, ProviderRpcError as gi, getAddress as hd, SwitchChainError as N0, fromHex as B0, isHex as R0, hexToNumber as F0, webSocket as M0 } from "viem";
3
+ import q, { createContext as To, useContext as xr, useState as re, useEffect as xe, memo as gt, forwardRef as Gt, createElement as il, useLayoutEffect as Ep, useMemo as Fe, useCallback as tt, useRef as Uo, lazy as vp } from "react";
4
+ import { useChainId as Vt, injected as w0, useChains as Ap, useSwitchChain as Hl, useConfig as Io, deepEqual as b0, useConnect as y0, useDisconnect as C0, useAccount as x0, createConfig as E0, WagmiProvider as v0, useReconnect as A0 } from "wagmi";
5
+ import { parseSignature as k0, encodeFunctionData as kp, custom as hs, createPublicClient as yn, http as Et, hexToBigInt as Nr, fallback as ll, createWalletClient as S0, zeroAddress as vt, formatUnits as $r, parseUnits as jl, isAddress as cl, checksumAddress as qa, erc20Abi as gi, parseEther as T0, publicActions as U0, extractChain as I0, ProviderRpcError as wi, getAddress as hd, SwitchChainError as N0, fromHex as B0, isHex as R0, hexToNumber as F0, webSocket as M0 } from "viem";
6
6
  import * as Sp from "react-dom";
7
7
  import Tp from "react-dom";
8
8
  import { useMutation as V0, useQuery as Da, QueryClientProvider as Up, QueryClient as Ip } from "@tanstack/react-query";
@@ -28,7 +28,7 @@ const z0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
28
28
  get getSolverCapacity() {
29
29
  return VA;
30
30
  }
31
- }, Symbol.toStringTag, { value: "Module" })), Io = So(void 0), _l = So(null);
31
+ }, Symbol.toStringTag, { value: "Module" })), No = To(void 0), _l = To(null);
32
32
  function hM(e, t, r) {
33
33
  return async (n, a) => {
34
34
  const s = {
@@ -42,7 +42,7 @@ function hM(e, t, r) {
42
42
  });
43
43
  };
44
44
  }
45
- const No = So(void 0);
45
+ const Bo = To(void 0);
46
46
  function m(e) {
47
47
  return {
48
48
  formatters: void 0,
@@ -132,18 +132,18 @@ const D0 = /* @__PURE__ */ m({
132
132
  },
133
133
  testnet: !1
134
134
  }), Np = "2.37.8";
135
- let wi = {
135
+ let bi = {
136
136
  getDocsUrl: ({ docsBaseUrl: e, docsPath: t = "", docsSlug: r }) => t ? `${e ?? "https://viem.sh"}${t}${r ? `#${r}` : ""}` : void 0,
137
137
  version: `viem@${Np}`
138
- }, ge = class cl extends Error {
138
+ }, ge = class dl extends Error {
139
139
  constructor(t, r = {}) {
140
- const n = r.cause instanceof cl ? r.cause.details : r.cause?.message ? r.cause.message : r.details, a = r.cause instanceof cl && r.cause.docsPath || r.docsPath, s = wi.getDocsUrl?.({ ...r, docsPath: a }), o = [
140
+ const n = r.cause instanceof dl ? r.cause.details : r.cause?.message ? r.cause.message : r.details, a = r.cause instanceof dl && r.cause.docsPath || r.docsPath, s = bi.getDocsUrl?.({ ...r, docsPath: a }), o = [
141
141
  t || "An error occurred.",
142
142
  "",
143
143
  ...r.metaMessages ? [...r.metaMessages, ""] : [],
144
144
  ...s ? [`Docs: ${s}`] : [],
145
145
  ...n ? [`Details: ${n}`] : [],
146
- ...wi.version ? [`Version: ${wi.version}`] : []
146
+ ...bi.version ? [`Version: ${bi.version}`] : []
147
147
  ].join(`
148
148
  `);
149
149
  super(o, r.cause ? { cause: r.cause } : void 0), Object.defineProperty(this, "details", {
@@ -351,7 +351,7 @@ function st(e, t = {}) {
351
351
  function Ga(e, t = {}) {
352
352
  return Number(st(e, t));
353
353
  }
354
- function Bo(e, t) {
354
+ function Ro(e, t) {
355
355
  return ({ exclude: r, format: n }) => ({
356
356
  exclude: r,
357
357
  format: (a) => {
@@ -374,7 +374,7 @@ const Mp = {
374
374
  "0x3": "eip4844",
375
375
  "0x4": "eip7702"
376
376
  };
377
- function Ro(e) {
377
+ function Fo(e) {
378
378
  const t = {
379
379
  ...e,
380
380
  blockHash: e.blockHash ? e.blockHash : null,
@@ -406,7 +406,7 @@ function Ro(e) {
406
406
  }
407
407
  })(), t.type === "legacy" && (delete t.accessList, delete t.maxFeePerBlobGas, delete t.maxFeePerGas, delete t.maxPriorityFeePerGas, delete t.yParity), t.type === "eip2930" && (delete t.maxFeePerBlobGas, delete t.maxFeePerGas, delete t.maxPriorityFeePerGas), t.type === "eip1559" && delete t.maxFeePerBlobGas, t;
408
408
  }
409
- const $l = /* @__PURE__ */ Bo("transaction", Ro);
409
+ const $l = /* @__PURE__ */ Ro("transaction", Fo);
410
410
  function sg(e) {
411
411
  return e.map((t) => ({
412
412
  address: t.address,
@@ -418,7 +418,7 @@ function sg(e) {
418
418
  }));
419
419
  }
420
420
  function og(e) {
421
- const t = (e.transactions ?? []).map((r) => typeof r == "string" ? r : Ro(r));
421
+ const t = (e.transactions ?? []).map((r) => typeof r == "string" ? r : Fo(r));
422
422
  return {
423
423
  ...e,
424
424
  baseFeePerGas: e.baseFeePerGas ? BigInt(e.baseFeePerGas) : null,
@@ -437,7 +437,7 @@ function og(e) {
437
437
  totalDifficulty: e.totalDifficulty ? BigInt(e.totalDifficulty) : null
438
438
  };
439
439
  }
440
- const ec = /* @__PURE__ */ Bo("block", og);
440
+ const ec = /* @__PURE__ */ Ro("block", og);
441
441
  function Vp(e, { args: t, eventName: r } = {}) {
442
442
  return {
443
443
  ...e,
@@ -469,7 +469,7 @@ function lg(e) {
469
469
  };
470
470
  return e.blobGasPrice && (t.blobGasPrice = BigInt(e.blobGasPrice)), e.blobGasUsed && (t.blobGasUsed = BigInt(e.blobGasUsed)), t;
471
471
  }
472
- const Wp = /* @__PURE__ */ Bo("transactionReceipt", lg), cg = {
472
+ const Wp = /* @__PURE__ */ Ro("transactionReceipt", lg), cg = {
473
473
  legacy: "0x0",
474
474
  eip2930: "0x1",
475
475
  eip1559: "0x2",
@@ -480,7 +480,7 @@ function Lp(e) {
480
480
  const t = {};
481
481
  return typeof e.authorizationList < "u" && (t.authorizationList = dg(e.authorizationList)), typeof e.accessList < "u" && (t.accessList = e.accessList), typeof e.blobVersionedHashes < "u" && (t.blobVersionedHashes = e.blobVersionedHashes), typeof e.blobs < "u" && (typeof e.blobs[0] != "string" ? t.blobs = e.blobs.map((r) => Dr(r)) : t.blobs = e.blobs), typeof e.data < "u" && (t.data = e.data), typeof e.from < "u" && (t.from = e.from), typeof e.gas < "u" && (t.gas = he(e.gas)), typeof e.gasPrice < "u" && (t.gasPrice = he(e.gasPrice)), typeof e.maxFeePerBlobGas < "u" && (t.maxFeePerBlobGas = he(e.maxFeePerBlobGas)), typeof e.maxFeePerGas < "u" && (t.maxFeePerGas = he(e.maxFeePerGas)), typeof e.maxPriorityFeePerGas < "u" && (t.maxPriorityFeePerGas = he(e.maxPriorityFeePerGas)), typeof e.nonce < "u" && (t.nonce = he(e.nonce)), typeof e.to < "u" && (t.to = e.to), typeof e.type < "u" && (t.type = cg[e.type]), typeof e.value < "u" && (t.value = he(e.value)), t;
482
482
  }
483
- const Op = /* @__PURE__ */ Bo("transactionRequest", Lp);
483
+ const Op = /* @__PURE__ */ Ro("transactionRequest", Lp);
484
484
  function dg(e) {
485
485
  return e.map((t) => ({
486
486
  address: t.address,
@@ -860,7 +860,7 @@ function Pp(e) {
860
860
  }
861
861
  const In = typeof globalThis == "object" && "crypto" in globalThis ? globalThis.crypto : void 0;
862
862
  /*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
863
- function Fo(e) {
863
+ function Mo(e) {
864
864
  return e instanceof Uint8Array || ArrayBuffer.isView(e) && e.constructor.name === "Uint8Array";
865
865
  }
866
866
  function Za(e) {
@@ -868,7 +868,7 @@ function Za(e) {
868
868
  throw new Error("positive integer expected, got " + e);
869
869
  }
870
870
  function Lr(e, ...t) {
871
- if (!Fo(e))
871
+ if (!Mo(e))
872
872
  throw new Error("Uint8Array expected");
873
873
  if (t.length > 0 && !t.includes(e.length))
874
874
  throw new Error("Uint8Array expected of length " + t + ", got length=" + e.length);
@@ -897,7 +897,7 @@ function Xn(...e) {
897
897
  for (let t = 0; t < e.length; t++)
898
898
  e[t].fill(0);
899
899
  }
900
- function bi(e) {
900
+ function yi(e) {
901
901
  return new DataView(e.buffer, e.byteOffset, e.byteLength);
902
902
  }
903
903
  function dr(e, t) {
@@ -930,7 +930,7 @@ function yd(e) {
930
930
  if (e >= Tr.a && e <= Tr.f)
931
931
  return e - (Tr.a - 10);
932
932
  }
933
- function uo(e) {
933
+ function po(e) {
934
934
  if (typeof e != "string")
935
935
  throw new Error("hex string expected, got " + typeof e);
936
936
  if (Xp)
@@ -954,7 +954,7 @@ function Ng(e) {
954
954
  throw new Error("string expected");
955
955
  return new Uint8Array(new TextEncoder().encode(e));
956
956
  }
957
- function Mo(e) {
957
+ function Vo(e) {
958
958
  return typeof e == "string" && (e = Ng(e)), Lr(e), e;
959
959
  }
960
960
  function _r(...e) {
@@ -973,7 +973,7 @@ function _r(...e) {
973
973
  class rc {
974
974
  }
975
975
  function Hp(e) {
976
- const t = (n) => e().update(Mo(n)).digest(), r = e();
976
+ const t = (n) => e().update(Vo(n)).digest(), r = e();
977
977
  return t.outputLen = r.outputLen, t.blockLen = r.blockLen, t.create = () => e(), t;
978
978
  }
979
979
  function jp(e = 32) {
@@ -997,15 +997,15 @@ function Fg(e, t, r) {
997
997
  }
998
998
  class Mg extends rc {
999
999
  constructor(t, r, n, a) {
1000
- super(), this.finished = !1, this.length = 0, this.pos = 0, this.destroyed = !1, this.blockLen = t, this.outputLen = r, this.padOffset = n, this.isLE = a, this.buffer = new Uint8Array(t), this.view = bi(this.buffer);
1000
+ super(), this.finished = !1, this.length = 0, this.pos = 0, this.destroyed = !1, this.blockLen = t, this.outputLen = r, this.padOffset = n, this.isLE = a, this.buffer = new Uint8Array(t), this.view = yi(this.buffer);
1001
1001
  }
1002
1002
  update(t) {
1003
- Yn(this), t = Mo(t), Lr(t);
1003
+ Yn(this), t = Vo(t), Lr(t);
1004
1004
  const { view: r, buffer: n, blockLen: a } = this, s = t.length;
1005
1005
  for (let o = 0; o < s; ) {
1006
1006
  const i = Math.min(a - this.pos, s - o);
1007
1007
  if (i === a) {
1008
- const l = bi(t);
1008
+ const l = yi(t);
1009
1009
  for (; a <= s - o; o += a)
1010
1010
  this.process(l, o);
1011
1011
  continue;
@@ -1022,7 +1022,7 @@ class Mg extends rc {
1022
1022
  for (let d = o; d < a; d++)
1023
1023
  r[d] = 0;
1024
1024
  Bg(n, a - 8, BigInt(this.length * 8), s), this.process(n, 0);
1025
- const i = bi(t), l = this.outputLen;
1025
+ const i = yi(t), l = this.outputLen;
1026
1026
  if (l % 4)
1027
1027
  throw new Error("_sha2: outputLen should be aligned to 32bit");
1028
1028
  const u = l / 4, p = this.get();
@@ -1308,7 +1308,7 @@ Object.defineProperty(tn, "nodeMessage", {
1308
1308
  writable: !0,
1309
1309
  value: /max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/
1310
1310
  });
1311
- class dl extends ge {
1311
+ class ul extends ge {
1312
1312
  constructor({ cause: t, maxFeePerGas: r } = {}) {
1313
1313
  super(`The fee cap (\`maxFeePerGas\`${r ? ` = ${gn(r)}` : ""} gwei) cannot be lower than the block base fee.`, {
1314
1314
  cause: t,
@@ -1316,24 +1316,24 @@ class dl extends ge {
1316
1316
  });
1317
1317
  }
1318
1318
  }
1319
- Object.defineProperty(dl, "nodeMessage", {
1319
+ Object.defineProperty(ul, "nodeMessage", {
1320
1320
  enumerable: !0,
1321
1321
  configurable: !0,
1322
1322
  writable: !0,
1323
1323
  value: /max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/
1324
1324
  });
1325
- class ul extends ge {
1325
+ class pl extends ge {
1326
1326
  constructor({ cause: t, nonce: r } = {}) {
1327
1327
  super(`Nonce provided for the transaction ${r ? `(${r}) ` : ""}is higher than the next one expected.`, { cause: t, name: "NonceTooHighError" });
1328
1328
  }
1329
1329
  }
1330
- Object.defineProperty(ul, "nodeMessage", {
1330
+ Object.defineProperty(pl, "nodeMessage", {
1331
1331
  enumerable: !0,
1332
1332
  configurable: !0,
1333
1333
  writable: !0,
1334
1334
  value: /nonce too high/
1335
1335
  });
1336
- class pl extends ge {
1336
+ class ml extends ge {
1337
1337
  constructor({ cause: t, nonce: r } = {}) {
1338
1338
  super([
1339
1339
  `Nonce provided for the transaction ${r ? `(${r}) ` : ""}is lower than the current nonce of the account.`,
@@ -1342,24 +1342,24 @@ class pl extends ge {
1342
1342
  `), { cause: t, name: "NonceTooLowError" });
1343
1343
  }
1344
1344
  }
1345
- Object.defineProperty(pl, "nodeMessage", {
1345
+ Object.defineProperty(ml, "nodeMessage", {
1346
1346
  enumerable: !0,
1347
1347
  configurable: !0,
1348
1348
  writable: !0,
1349
1349
  value: /nonce too low|transaction already imported|already known/
1350
1350
  });
1351
- class ml extends ge {
1351
+ class hl extends ge {
1352
1352
  constructor({ cause: t, nonce: r } = {}) {
1353
1353
  super(`Nonce provided for the transaction ${r ? `(${r}) ` : ""}exceeds the maximum allowed nonce.`, { cause: t, name: "NonceMaxValueError" });
1354
1354
  }
1355
1355
  }
1356
- Object.defineProperty(ml, "nodeMessage", {
1356
+ Object.defineProperty(hl, "nodeMessage", {
1357
1357
  enumerable: !0,
1358
1358
  configurable: !0,
1359
1359
  writable: !0,
1360
1360
  value: /nonce has max value/
1361
1361
  });
1362
- class hl extends ge {
1362
+ class fl extends ge {
1363
1363
  constructor({ cause: t } = {}) {
1364
1364
  super([
1365
1365
  "The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."
@@ -1380,13 +1380,13 @@ class hl extends ge {
1380
1380
  });
1381
1381
  }
1382
1382
  }
1383
- Object.defineProperty(hl, "nodeMessage", {
1383
+ Object.defineProperty(fl, "nodeMessage", {
1384
1384
  enumerable: !0,
1385
1385
  configurable: !0,
1386
1386
  writable: !0,
1387
1387
  value: /insufficient funds|exceeds transaction sender account balance/
1388
1388
  });
1389
- class fl extends ge {
1389
+ class gl extends ge {
1390
1390
  constructor({ cause: t, gas: r } = {}) {
1391
1391
  super(`The amount of gas ${r ? `(${r}) ` : ""}provided for the transaction exceeds the limit allowed for the block.`, {
1392
1392
  cause: t,
@@ -1394,13 +1394,13 @@ class fl extends ge {
1394
1394
  });
1395
1395
  }
1396
1396
  }
1397
- Object.defineProperty(fl, "nodeMessage", {
1397
+ Object.defineProperty(gl, "nodeMessage", {
1398
1398
  enumerable: !0,
1399
1399
  configurable: !0,
1400
1400
  writable: !0,
1401
1401
  value: /intrinsic gas too high|gas limit reached/
1402
1402
  });
1403
- class gl extends ge {
1403
+ class wl extends ge {
1404
1404
  constructor({ cause: t, gas: r } = {}) {
1405
1405
  super(`The amount of gas ${r ? `(${r}) ` : ""}provided for the transaction is too low.`, {
1406
1406
  cause: t,
@@ -1408,13 +1408,13 @@ class gl extends ge {
1408
1408
  });
1409
1409
  }
1410
1410
  }
1411
- Object.defineProperty(gl, "nodeMessage", {
1411
+ Object.defineProperty(wl, "nodeMessage", {
1412
1412
  enumerable: !0,
1413
1413
  configurable: !0,
1414
1414
  writable: !0,
1415
1415
  value: /intrinsic gas too low/
1416
1416
  });
1417
- class wl extends ge {
1417
+ class bl extends ge {
1418
1418
  constructor({ cause: t }) {
1419
1419
  super("The transaction type is not supported for this chain.", {
1420
1420
  cause: t,
@@ -1422,7 +1422,7 @@ class wl extends ge {
1422
1422
  });
1423
1423
  }
1424
1424
  }
1425
- Object.defineProperty(wl, "nodeMessage", {
1425
+ Object.defineProperty(bl, "nodeMessage", {
1426
1426
  enumerable: !0,
1427
1427
  configurable: !0,
1428
1428
  writable: !0,
@@ -1522,7 +1522,7 @@ class ac extends rc {
1522
1522
  bd(this.state32), a2(this.state32, this.rounds), bd(this.state32), this.posOut = 0, this.pos = 0;
1523
1523
  }
1524
1524
  update(t) {
1525
- Yn(this), t = Mo(t), Lr(t);
1525
+ Yn(this), t = Vo(t), Lr(t);
1526
1526
  const { blockLen: r, state: n } = this, a = t.length;
1527
1527
  for (let s = 0; s < a; ) {
1528
1528
  const o = Math.min(r - this.pos, a - s);
@@ -1577,23 +1577,23 @@ const s2 = (e, t, r) => Hp(() => new ac(t, e, r)), o2 = s2(1, 136, 256 / 8);
1577
1577
  function i2(e, t) {
1578
1578
  return o2(ts(e, { strict: !1 }) ? Ka(e) : e);
1579
1579
  }
1580
- const yi = /* @__PURE__ */ new s1(8192);
1580
+ const Ci = /* @__PURE__ */ new s1(8192);
1581
1581
  function l2(e, t) {
1582
- if (yi.has(`${e}.${t}`))
1583
- return yi.get(`${e}.${t}`);
1582
+ if (Ci.has(`${e}.${t}`))
1583
+ return Ci.get(`${e}.${t}`);
1584
1584
  const r = e.substring(2).toLowerCase(), n = i2(Fp(r)), a = r.split("");
1585
1585
  for (let o = 0; o < 40; o += 2)
1586
1586
  n[o >> 1] >> 4 >= 8 && a[o] && (a[o] = a[o].toUpperCase()), (n[o >> 1] & 15) >= 8 && a[o + 1] && (a[o + 1] = a[o + 1].toUpperCase());
1587
1587
  const s = `0x${a.join("")}`;
1588
- return yi.set(`${e}.${t}`, s), s;
1588
+ return Ci.set(`${e}.${t}`, s), s;
1589
1589
  }
1590
- const c2 = /^0x[a-fA-F0-9]{40}$/, Ci = /* @__PURE__ */ new s1(8192);
1590
+ const c2 = /^0x[a-fA-F0-9]{40}$/, xi = /* @__PURE__ */ new s1(8192);
1591
1591
  function Rt(e, t) {
1592
1592
  const { strict: r = !0 } = t ?? {}, n = `${e}.${r}`;
1593
- if (Ci.has(n))
1594
- return Ci.get(n);
1593
+ if (xi.has(n))
1594
+ return xi.get(n);
1595
1595
  const a = c2.test(e) ? e.toLowerCase() === e ? !0 : r ? l2(e) === e : !0 : !1;
1596
- return Ci.set(n, a), a;
1596
+ return xi.set(n, a), a;
1597
1597
  }
1598
1598
  function d2(e, t, r, { strict: n } = {}) {
1599
1599
  return ts(e, { strict: !1 }) ? p2(e, t, r, {
@@ -2275,7 +2275,7 @@ const Zt = {
2275
2275
  transactions: e.transactions?.map((r) => {
2276
2276
  if (typeof r == "string")
2277
2277
  return r;
2278
- const n = Ro(r);
2278
+ const n = Fo(r);
2279
2279
  return n.typeHex === "0x7e" && (n.isSystemTx = r.isSystemTx, n.mint = r.mint ? st(r.mint) : void 0, n.sourceHash = r.sourceHash, n.type = "deposit"), n;
2280
2280
  }),
2281
2281
  stateRoot: e.stateRoot
@@ -2427,7 +2427,7 @@ const $ = {
2427
2427
  webSocket: ["ws://127.0.0.1:8545"]
2428
2428
  }
2429
2429
  }
2430
- }), j2 = 42161, Vo = /* @__PURE__ */ m({
2430
+ }), j2 = 42161, Wo = /* @__PURE__ */ m({
2431
2431
  id: 33139,
2432
2432
  name: "Ape Chain",
2433
2433
  nativeCurrency: {
@@ -3741,7 +3741,7 @@ const $ = {
3741
3741
  },
3742
3742
  testnet: !0,
3743
3743
  sourceId: Yw
3744
- }), xi = 1, Hw = m({
3744
+ }), Ei = 1, Hw = m({
3745
3745
  ...$,
3746
3746
  id: 60808,
3747
3747
  name: "BOB",
@@ -3769,19 +3769,19 @@ const $ = {
3769
3769
  blockCreated: 23131
3770
3770
  },
3771
3771
  l2OutputOracle: {
3772
- [xi]: {
3772
+ [Ei]: {
3773
3773
  address: "0xdDa53E23f8a32640b04D7256e651C1db98dB11C1",
3774
3774
  blockCreated: 4462615
3775
3775
  }
3776
3776
  },
3777
3777
  portal: {
3778
- [xi]: {
3778
+ [Ei]: {
3779
3779
  address: "0x8AdeE124447435fE03e3CD24dF3f4cAE32E65a3E",
3780
3780
  blockCreated: 4462615
3781
3781
  }
3782
3782
  }
3783
3783
  },
3784
- sourceId: xi
3784
+ sourceId: Ei
3785
3785
  }), jw = /* @__PURE__ */ m({
3786
3786
  id: 288,
3787
3787
  name: "Boba Network",
@@ -3823,7 +3823,7 @@ const $ = {
3823
3823
  }
3824
3824
  },
3825
3825
  testnet: !0
3826
- }), Ei = 11155111, $w = m({
3826
+ }), vi = 11155111, $w = m({
3827
3827
  ...$,
3828
3828
  id: 808813,
3829
3829
  name: "BOB Sepolia",
@@ -3851,20 +3851,20 @@ const $ = {
3851
3851
  blockCreated: 35677
3852
3852
  },
3853
3853
  l2OutputOracle: {
3854
- [Ei]: {
3854
+ [vi]: {
3855
3855
  address: "0x14D0069452b4AE2b250B395b8adAb771E4267d2f",
3856
3856
  blockCreated: 4462615
3857
3857
  }
3858
3858
  },
3859
3859
  portal: {
3860
- [Ei]: {
3860
+ [vi]: {
3861
3861
  address: "0x867B1Aa872b9C8cB5E9F7755feDC45BB24Ad0ae4",
3862
3862
  blockCreated: 4462615
3863
3863
  }
3864
3864
  }
3865
3865
  },
3866
3866
  testnet: !0,
3867
- sourceId: Ei
3867
+ sourceId: vi
3868
3868
  }), eb = /* @__PURE__ */ m({
3869
3869
  id: 11100,
3870
3870
  name: "Bool Beta Mainnet",
@@ -4254,7 +4254,7 @@ const Eb = {
4254
4254
  format(e) {
4255
4255
  return {
4256
4256
  transactions: e.transactions?.map((r) => typeof r == "string" ? r : {
4257
- ...Ro(r),
4257
+ ...Fo(r),
4258
4258
  ...r.gatewayFee ? {
4259
4259
  gatewayFee: st(r.gatewayFee),
4260
4260
  gatewayFeeRecipient: r.gatewayFeeRecipient
@@ -4413,7 +4413,7 @@ const Qa = {
4413
4413
  }
4414
4414
  },
4415
4415
  testnet: !0
4416
- }), vi = 11155111, Nb = /* @__PURE__ */ m({
4416
+ }), Ai = 11155111, Nb = /* @__PURE__ */ m({
4417
4417
  ...Qa,
4418
4418
  id: 11142220,
4419
4419
  name: "Celo Sepolia Testnet",
@@ -4441,19 +4441,19 @@ const Qa = {
4441
4441
  blockCreated: 1
4442
4442
  },
4443
4443
  portal: {
4444
- [vi]: {
4444
+ [Ai]: {
4445
4445
  address: "0x44ae3d41a335a7d05eb533029917aad35662dcc2",
4446
4446
  blockCreated: 8825790
4447
4447
  }
4448
4448
  },
4449
4449
  disputeGameFactory: {
4450
- [vi]: {
4450
+ [Ai]: {
4451
4451
  address: "0x57c45d82d1a995f1e135b8d7edc0a6bb5211cfaa",
4452
4452
  blockCreated: 8825790
4453
4453
  }
4454
4454
  },
4455
4455
  l1StandardBridge: {
4456
- [vi]: {
4456
+ [Ai]: {
4457
4457
  address: "0xec18a3c30131a0db4246e785355fbc16e2eaf408",
4458
4458
  blockCreated: 8825790
4459
4459
  }
@@ -9154,10 +9154,10 @@ function W7(e, t) {
9154
9154
  }) : tn.nodeMessage.test(r) ? new tn({
9155
9155
  cause: e,
9156
9156
  maxFeePerGas: t?.maxFeePerGas
9157
- }) : dl.nodeMessage.test(r) ? new dl({
9157
+ }) : ul.nodeMessage.test(r) ? new ul({
9158
9158
  cause: e,
9159
9159
  maxFeePerGas: t?.maxFeePerGas
9160
- }) : ul.nodeMessage.test(r) ? new ul({ cause: e, nonce: t?.nonce }) : pl.nodeMessage.test(r) ? new pl({ cause: e, nonce: t?.nonce }) : ml.nodeMessage.test(r) ? new ml({ cause: e, nonce: t?.nonce }) : hl.nodeMessage.test(r) ? new hl({ cause: e }) : fl.nodeMessage.test(r) ? new fl({ cause: e, gas: t?.gas }) : gl.nodeMessage.test(r) ? new gl({ cause: e, gas: t?.gas }) : wl.nodeMessage.test(r) ? new wl({ cause: e }) : Hn.nodeMessage.test(r) ? new Hn({
9160
+ }) : pl.nodeMessage.test(r) ? new pl({ cause: e, nonce: t?.nonce }) : ml.nodeMessage.test(r) ? new ml({ cause: e, nonce: t?.nonce }) : hl.nodeMessage.test(r) ? new hl({ cause: e, nonce: t?.nonce }) : fl.nodeMessage.test(r) ? new fl({ cause: e }) : gl.nodeMessage.test(r) ? new gl({ cause: e, gas: t?.gas }) : wl.nodeMessage.test(r) ? new wl({ cause: e, gas: t?.gas }) : bl.nodeMessage.test(r) ? new bl({ cause: e }) : Hn.nodeMessage.test(r) ? new Hn({
9161
9161
  cause: e,
9162
9162
  maxFeePerGas: t?.maxFeePerGas,
9163
9163
  maxPriorityFeePerGas: t?.maxPriorityFeePerGas
@@ -14409,7 +14409,7 @@ const z7 = /* @__PURE__ */ m({
14409
14409
  }
14410
14410
  },
14411
14411
  sourceId: va
14412
- }), Ai = 11155111, z4 = /* @__PURE__ */ m({
14412
+ }), ki = 11155111, z4 = /* @__PURE__ */ m({
14413
14413
  ...$,
14414
14414
  id: 53302,
14415
14415
  name: "Superseed Sepolia",
@@ -14436,20 +14436,20 @@ const z7 = /* @__PURE__ */ m({
14436
14436
  address: "0xcA11bde05977b3631167028862bE2a173976CA11"
14437
14437
  },
14438
14438
  portal: {
14439
- [Ai]: {
14439
+ [ki]: {
14440
14440
  address: "0x7A0db8C51432d2C3eb4e8f360a2EeB26FF2809fB",
14441
14441
  blockCreated: 5523438
14442
14442
  }
14443
14443
  },
14444
14444
  l1StandardBridge: {
14445
- [Ai]: {
14445
+ [ki]: {
14446
14446
  address: "0x2B227A603fAAdB3De0ED050b63ADD232B5f2c28C",
14447
14447
  blockCreated: 5523442
14448
14448
  }
14449
14449
  }
14450
14450
  },
14451
14451
  testnet: !0,
14452
- sourceId: Ai
14452
+ sourceId: ki
14453
14453
  }), D4 = /* @__PURE__ */ m({
14454
14454
  id: 254,
14455
14455
  name: "Swan Chain Mainnet",
@@ -16262,7 +16262,7 @@ const z7 = /* @__PURE__ */ m({
16262
16262
  }
16263
16263
  },
16264
16264
  testnet: !0
16265
- }), ki = 1, Cx = /* @__PURE__ */ m({
16265
+ }), Si = 1, Cx = /* @__PURE__ */ m({
16266
16266
  ...$,
16267
16267
  id: 48900,
16268
16268
  name: "Zircuit Mainnet",
@@ -16292,23 +16292,23 @@ const z7 = /* @__PURE__ */ m({
16292
16292
  address: "0xcA11bde05977b3631167028862bE2a173976CA11"
16293
16293
  },
16294
16294
  l2OutputOracle: {
16295
- [ki]: {
16295
+ [Si]: {
16296
16296
  address: "0x92Ef6Af472b39F1b363da45E35530c24619245A4"
16297
16297
  }
16298
16298
  },
16299
16299
  portal: {
16300
- [ki]: {
16300
+ [Si]: {
16301
16301
  address: "0x17bfAfA932d2e23Bd9B909Fd5B4D2e2a27043fb1"
16302
16302
  }
16303
16303
  },
16304
16304
  l1StandardBridge: {
16305
- [ki]: {
16305
+ [Si]: {
16306
16306
  address: "0x386B76D9cA5F5Fb150B6BFB35CF5379B22B26dd8"
16307
16307
  }
16308
16308
  }
16309
16309
  },
16310
16310
  testnet: !1
16311
- }), Si = 11155111, xx = /* @__PURE__ */ m({
16311
+ }), Ti = 11155111, xx = /* @__PURE__ */ m({
16312
16312
  ...$,
16313
16313
  id: 48898,
16314
16314
  name: "Zircuit Garfield Testnet",
@@ -16329,23 +16329,23 @@ const z7 = /* @__PURE__ */ m({
16329
16329
  address: "0xcA11bde05977b3631167028862bE2a173976CA11"
16330
16330
  },
16331
16331
  l2OutputOracle: {
16332
- [Si]: {
16332
+ [Ti]: {
16333
16333
  address: "0xd69D3AC5CA686cCF94b258291772bc520FEAf211"
16334
16334
  }
16335
16335
  },
16336
16336
  portal: {
16337
- [Si]: {
16337
+ [Ti]: {
16338
16338
  address: "0x4E21A71Ac3F7607Da5c06153A17B1DD20E702c21"
16339
16339
  }
16340
16340
  },
16341
16341
  l1StandardBridge: {
16342
- [Si]: {
16342
+ [Ti]: {
16343
16343
  address: "0x87a7E2bCA9E35BA49282E832a28A6023904460D8"
16344
16344
  }
16345
16345
  }
16346
16346
  },
16347
16347
  testnet: !0
16348
- }), Ti = 11155111, Ex = /* @__PURE__ */ m({
16348
+ }), Ui = 11155111, Ex = /* @__PURE__ */ m({
16349
16349
  ...$,
16350
16350
  id: 48899,
16351
16351
  name: "Zircuit Testnet",
@@ -16371,17 +16371,17 @@ const z7 = /* @__PURE__ */ m({
16371
16371
  blockCreated: 6040287
16372
16372
  },
16373
16373
  l2OutputOracle: {
16374
- [Ti]: {
16374
+ [Ui]: {
16375
16375
  address: "0x740C2dac453aEf7140809F80b72bf0e647af8148"
16376
16376
  }
16377
16377
  },
16378
16378
  portal: {
16379
- [Ti]: {
16379
+ [Ui]: {
16380
16380
  address: "0x787f1C8c5924178689E0560a43D848bF8E54b23e"
16381
16381
  }
16382
16382
  },
16383
16383
  l1StandardBridge: {
16384
- [Ti]: {
16384
+ [Ui]: {
16385
16385
  address: "0x0545c5fe980098C16fcD0eCB5E79753afa6d9af9"
16386
16386
  }
16387
16387
  }
@@ -16765,7 +16765,7 @@ const z7 = /* @__PURE__ */ m({
16765
16765
  ancient8: Y2,
16766
16766
  ancient8Sepolia: X2,
16767
16767
  anvil: H2,
16768
- apeChain: Vo,
16768
+ apeChain: Wo,
16769
16769
  apexTestnet: _2,
16770
16770
  arbitrum: g1,
16771
16771
  arbitrumGoerli: $2,
@@ -17389,7 +17389,7 @@ const z7 = /* @__PURE__ */ m({
17389
17389
  }, Symbol.toStringTag, { value: "Module" })), Fx = "https://useglyph.io", Fr = "cly38x0w10ac945q9yg9sm71i", Mr = "clxt9p8e601al6tgmsyhu7j3t", Mx = "https://useglyph.io", Vx = "https://i.ibb.co/TxcwPQyr/Group-12489-1.png", Wx = 60 * 1e3, Lx = 60 * 1e3, Ox = "0x3c7fb61850cCD1490B820D317f565358D6f1Fb87", S1 = 80, mt = 6;
17390
17390
  var rr = /* @__PURE__ */ ((e) => (e.PRIMARY = "primary", e.SUCCESS = "success", e.ERROR = "error", e))(rr || {}), Ue = /* @__PURE__ */ ((e) => (e.MAIN = "main", e.FUND = "fund", e.SEND = "send", e.RECEIVE = "receive", e.PROFILE = "profile", e.SWAP = "swap", e))(Ue || {}), Le = /* @__PURE__ */ ((e) => (e.HOME = "home", e.ACTIVITY = "activity", e.TOKENS = "tokens", e.NFTS = "nfts", e.LINKED_ACCOUNTS = "linked-accounts", e))(Le || {}), Br = /* @__PURE__ */ ((e) => (e.BUY = "fund-buy", e.WAIT = "fund-wait", e.END = "fund-end", e))(Br || {}), Tt = /* @__PURE__ */ ((e) => (e.ENTER_ADDRESS = "send-enter-address", e.ENTER_AMOUNT = "send-enter-amount", e.WAIT = "send-wait", e.END = "send-end", e))(Tt || {}), Lt = /* @__PURE__ */ ((e) => (e.START = "swap-start", e.WAIT = "swap-wait", e.END = "swap-end", e))(Lt || {});
17391
17391
  const tr = {
17392
- [Vo.id]: "ApeChain"
17392
+ [Wo.id]: "ApeChain"
17393
17393
  // Remove after https://github.com/wevm/viem/pull/4080 is merged and viem is updated to that version
17394
17394
  }, qt = {
17395
17395
  id: "io.useglyph.privy",
@@ -17401,7 +17401,7 @@ const tr = {
17401
17401
  }, Me = () => {
17402
17402
  const e = xr(_l);
17403
17403
  if (!e) throw new Error("useGlyph must be used within GlyphProvider");
17404
- const t = xr(No);
17404
+ const t = xr(Bo);
17405
17405
  if (!t) throw new Error("useGlyph must be used within GlyphUserDataProvider");
17406
17406
  const { ready: r, authenticated: n, login: a, logout: s, signMessage: o, signTypedData: i, sendTransaction: l, glyphUrl: u, hideWidget: p } = e, {
17407
17407
  user: d,
@@ -17454,7 +17454,7 @@ const tr = {
17454
17454
  var zn = /* @__PURE__ */ ((e) => (e.PRIVY = "privy", e.EIP1193 = "eip1193", e))(zn || {});
17455
17455
  const Vd = "privy";
17456
17456
  var T1 = /* @__PURE__ */ ((e) => (e.RAINBOWKIT = "rainbowkit", e.CONNECTKIT = "connectkit", e.THIRDWEB = "thirdweb", e.WAGMI = "wagmi", e.DYNAMIC = "dynamic", e))(T1 || {});
17457
- const Ye = {
17457
+ const Je = {
17458
17458
  CLOSED: "closed",
17459
17459
  OPEN: "open",
17460
17460
  ...Ue,
@@ -17495,13 +17495,13 @@ const Kx = (e) => /* @__PURE__ */ S("svg", { width: "24", height: "24", viewBox:
17495
17495
  fill: "currentColor"
17496
17496
  }
17497
17497
  )
17498
- ] }), Ge = (e, t, r, n = "currency") => {
17498
+ ] }), Ye = (e, t, r, n = "currency") => {
17499
17499
  const a = r && Number(e) < 0.01, s = a ? 0.01 : e, o = new Intl.NumberFormat(["en-US"], {
17500
17500
  style: n,
17501
17501
  currency: n === "decimal" ? void 0 : t || "USD"
17502
17502
  }).format(Number(s || 0));
17503
17503
  return a ? `< ${o}` : o;
17504
- }, Wd = (e) => Ge(0, e).replace(/[.\d]/g, "").trim();
17504
+ }, Wd = (e) => Ye(0, e).replace(/[.\d]/g, "").trim();
17505
17505
  function U1(e) {
17506
17506
  var t, r, n = "";
17507
17507
  if (typeof e == "string" || typeof e == "number") n += e;
@@ -17557,9 +17557,9 @@ const dc = "-", zx = (e) => {
17557
17557
  validators: []
17558
17558
  };
17559
17559
  return Qx(Object.entries(e.classGroups), r).forEach(([s, o]) => {
17560
- bl(o, n, s, t);
17560
+ yl(o, n, s, t);
17561
17561
  }), n;
17562
- }, bl = (e, t, r, n) => {
17562
+ }, yl = (e, t, r, n) => {
17563
17563
  e.forEach((a) => {
17564
17564
  if (typeof a == "string") {
17565
17565
  const s = a === "" ? t : Od(t, a);
@@ -17568,7 +17568,7 @@ const dc = "-", zx = (e) => {
17568
17568
  }
17569
17569
  if (typeof a == "function") {
17570
17570
  if (Zx(a)) {
17571
- bl(a(n), t, r, n);
17571
+ yl(a(n), t, r, n);
17572
17572
  return;
17573
17573
  }
17574
17574
  t.validators.push({
@@ -17578,7 +17578,7 @@ const dc = "-", zx = (e) => {
17578
17578
  return;
17579
17579
  }
17580
17580
  Object.entries(a).forEach(([s, o]) => {
17581
- bl(o, Od(t, s), r, n);
17581
+ yl(o, Od(t, s), r, n);
17582
17582
  });
17583
17583
  });
17584
17584
  }, Od = (e, t) => {
@@ -17731,10 +17731,10 @@ function qd(e, ...t) {
17731
17731
  return s(_x.apply(null, arguments));
17732
17732
  };
17733
17733
  }
17734
- const Je = (e) => {
17734
+ const Pe = (e) => {
17735
17735
  const t = (r) => r[e] || [];
17736
17736
  return t.isThemeGetter = !0, t;
17737
- }, F1 = /^\[(?:([a-z-]+):)?(.+)\]$/i, $x = /^\d+\/\d+$/, eE = /* @__PURE__ */ new Set(["px", "full", "screen"]), tE = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, rE = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, nE = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, aE = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, sE = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Ur = (e) => Dn(e) || eE.has(e) || $x.test(e), Jr = (e) => oa(e, "length", mE), Dn = (e) => !!e && !Number.isNaN(Number(e)), Ui = (e) => oa(e, "number", Dn), Sa = (e) => !!e && Number.isInteger(Number(e)), oE = (e) => e.endsWith("%") && Dn(e.slice(0, -1)), ye = (e) => F1.test(e), Yr = (e) => tE.test(e), iE = /* @__PURE__ */ new Set(["length", "size", "percentage"]), lE = (e) => oa(e, iE, M1), cE = (e) => oa(e, "position", M1), dE = /* @__PURE__ */ new Set(["image", "url"]), uE = (e) => oa(e, dE, fE), pE = (e) => oa(e, "", hE), Ta = () => !0, oa = (e, t, r) => {
17737
+ }, F1 = /^\[(?:([a-z-]+):)?(.+)\]$/i, $x = /^\d+\/\d+$/, eE = /* @__PURE__ */ new Set(["px", "full", "screen"]), tE = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, rE = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, nE = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, aE = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, sE = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Ur = (e) => Dn(e) || eE.has(e) || $x.test(e), Jr = (e) => oa(e, "length", mE), Dn = (e) => !!e && !Number.isNaN(Number(e)), Ii = (e) => oa(e, "number", Dn), Sa = (e) => !!e && Number.isInteger(Number(e)), oE = (e) => e.endsWith("%") && Dn(e.slice(0, -1)), ye = (e) => F1.test(e), Yr = (e) => tE.test(e), iE = /* @__PURE__ */ new Set(["length", "size", "percentage"]), lE = (e) => oa(e, iE, M1), cE = (e) => oa(e, "position", M1), dE = /* @__PURE__ */ new Set(["image", "url"]), uE = (e) => oa(e, dE, fE), pE = (e) => oa(e, "", hE), Ta = () => !0, oa = (e, t, r) => {
17738
17738
  const n = F1.exec(e);
17739
17739
  return n ? n[1] ? typeof t == "string" ? n[1] === t : t.has(n[1]) : r(n[2]) : !1;
17740
17740
  }, mE = (e) => (
@@ -17743,7 +17743,7 @@ const Je = (e) => {
17743
17743
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
17744
17744
  rE.test(e) && !nE.test(e)
17745
17745
  ), M1 = () => !1, hE = (e) => aE.test(e), fE = (e) => sE.test(e), Kd = () => {
17746
- const e = Je("colors"), t = Je("spacing"), r = Je("blur"), n = Je("brightness"), a = Je("borderColor"), s = Je("borderRadius"), o = Je("borderSpacing"), i = Je("borderWidth"), l = Je("contrast"), u = Je("grayscale"), p = Je("hueRotate"), d = Je("invert"), h = Je("gap"), f = Je("gradientColorStops"), y = Je("gradientColorStopPositions"), C = Je("inset"), b = Je("margin"), x = Je("opacity"), A = Je("padding"), k = Je("saturate"), v = Je("scale"), N = Je("sepia"), R = Je("skew"), U = Je("space"), L = Je("translate"), V = () => ["auto", "contain", "none"], X = () => ["auto", "hidden", "clip", "visible", "scroll"], Q = () => ["auto", ye, t], Z = () => [ye, t], T = () => ["", Ur, Jr], M = () => ["auto", Dn, ye], F = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], O = () => ["solid", "dashed", "dotted", "double", "none"], z = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], G = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], J = () => ["", "0", ye], _ = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], j = () => [Dn, ye];
17746
+ const e = Pe("colors"), t = Pe("spacing"), r = Pe("blur"), n = Pe("brightness"), a = Pe("borderColor"), s = Pe("borderRadius"), o = Pe("borderSpacing"), i = Pe("borderWidth"), l = Pe("contrast"), u = Pe("grayscale"), p = Pe("hueRotate"), d = Pe("invert"), h = Pe("gap"), f = Pe("gradientColorStops"), y = Pe("gradientColorStopPositions"), C = Pe("inset"), b = Pe("margin"), x = Pe("opacity"), A = Pe("padding"), k = Pe("saturate"), v = Pe("scale"), N = Pe("sepia"), R = Pe("skew"), U = Pe("space"), L = Pe("translate"), V = () => ["auto", "contain", "none"], X = () => ["auto", "hidden", "clip", "visible", "scroll"], Q = () => ["auto", ye, t], Z = () => [ye, t], T = () => ["", Ur, Jr], M = () => ["auto", Dn, ye], F = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], O = () => ["solid", "dashed", "dotted", "double", "none"], z = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], G = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], J = () => ["", "0", ye], _ = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], j = () => [Dn, ye];
17747
17747
  return {
17748
17748
  cacheSize: 500,
17749
17749
  separator: ":",
@@ -18431,7 +18431,7 @@ const Je = (e) => {
18431
18431
  * @see https://tailwindcss.com/docs/font-weight
18432
18432
  */
18433
18433
  "font-weight": [{
18434
- font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", Ui]
18434
+ font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", Ii]
18435
18435
  }],
18436
18436
  /**
18437
18437
  * Font Family
@@ -18482,7 +18482,7 @@ const Je = (e) => {
18482
18482
  * @see https://tailwindcss.com/docs/line-clamp
18483
18483
  */
18484
18484
  "line-clamp": [{
18485
- "line-clamp": ["none", Dn, Ui]
18485
+ "line-clamp": ["none", Dn, Ii]
18486
18486
  }],
18487
18487
  /**
18488
18488
  * Line Height
@@ -19696,7 +19696,7 @@ const Je = (e) => {
19696
19696
  * @see https://tailwindcss.com/docs/stroke-width
19697
19697
  */
19698
19698
  "stroke-w": [{
19699
- stroke: [Ur, Jr, Ui]
19699
+ stroke: [Ur, Jr, Ii]
19700
19700
  }],
19701
19701
  /**
19702
19702
  * Stroke
@@ -19802,7 +19802,7 @@ var le;
19802
19802
  (function(e) {
19803
19803
  e[e.Verbose = 4] = "Verbose", e[e.Info = 3] = "Info", e[e.Warn = 2] = "Warn", e[e.Error = 1] = "Error", e[e.None = 0] = "None";
19804
19804
  })(le || (le = {}));
19805
- const yl = (e, t, r) => {
19805
+ const Cl = (e, t, r) => {
19806
19806
  if (r >= t) {
19807
19807
  const n = e.reduce((a, s, o) => ((o + 1) % 2 && a.push(`
19808
19808
  `), a.push(s), a), []);
@@ -19845,10 +19845,10 @@ function V1(e, t) {
19845
19845
  return e.apply(t, arguments);
19846
19846
  };
19847
19847
  }
19848
- const { toString: EE } = Object.prototype, { getPrototypeOf: uc } = Object, { iterator: Wo, toStringTag: W1 } = Symbol, Lo = /* @__PURE__ */ ((e) => (t) => {
19848
+ const { toString: EE } = Object.prototype, { getPrototypeOf: uc } = Object, { iterator: Lo, toStringTag: W1 } = Symbol, Oo = /* @__PURE__ */ ((e) => (t) => {
19849
19849
  const r = EE.call(t);
19850
19850
  return e[r] || (e[r] = r.slice(8, -1).toLowerCase());
19851
- })(/* @__PURE__ */ Object.create(null)), or = (e) => (e = e.toLowerCase(), (t) => Lo(t) === e), Oo = (e) => (t) => typeof t === e, { isArray: ia } = Array, Pa = Oo("undefined");
19851
+ })(/* @__PURE__ */ Object.create(null)), or = (e) => (e = e.toLowerCase(), (t) => Oo(t) === e), qo = (e) => (t) => typeof t === e, { isArray: ia } = Array, Pa = qo("undefined");
19852
19852
  function vE(e) {
19853
19853
  return e !== null && !Pa(e) && e.constructor !== null && !Pa(e.constructor) && Ft(e.constructor.isBuffer) && e.constructor.isBuffer(e);
19854
19854
  }
@@ -19857,14 +19857,14 @@ function AE(e) {
19857
19857
  let t;
19858
19858
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && L1(e.buffer), t;
19859
19859
  }
19860
- const kE = Oo("string"), Ft = Oo("function"), O1 = Oo("number"), qo = (e) => e !== null && typeof e == "object", SE = (e) => e === !0 || e === !1, no = (e) => {
19861
- if (Lo(e) !== "object")
19860
+ const kE = qo("string"), Ft = qo("function"), O1 = qo("number"), Ko = (e) => e !== null && typeof e == "object", SE = (e) => e === !0 || e === !1, no = (e) => {
19861
+ if (Oo(e) !== "object")
19862
19862
  return !1;
19863
19863
  const t = uc(e);
19864
- return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(W1 in e) && !(Wo in e);
19865
- }, TE = or("Date"), UE = or("File"), IE = or("Blob"), NE = or("FileList"), BE = (e) => qo(e) && Ft(e.pipe), RE = (e) => {
19864
+ return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(W1 in e) && !(Lo in e);
19865
+ }, TE = or("Date"), UE = or("File"), IE = or("Blob"), NE = or("FileList"), BE = (e) => Ko(e) && Ft(e.pipe), RE = (e) => {
19866
19866
  let t;
19867
- return e && (typeof FormData == "function" && e instanceof FormData || Ft(e.append) && ((t = Lo(e)) === "formdata" || // detect form-data instance
19867
+ return e && (typeof FormData == "function" && e instanceof FormData || Ft(e.append) && ((t = Oo(e)) === "formdata" || // detect form-data instance
19868
19868
  t === "object" && Ft(e.toString) && e.toString() === "[object FormData]"));
19869
19869
  }, FE = or("URLSearchParams"), [ME, VE, WE, LE] = ["ReadableStream", "Request", "Response", "Headers"].map(or), OE = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
19870
19870
  function as(e, t, { allOwnKeys: r = !1 } = {}) {
@@ -19891,10 +19891,10 @@ function q1(e, t) {
19891
19891
  return null;
19892
19892
  }
19893
19893
  const pn = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, K1 = (e) => !Pa(e) && e !== pn;
19894
- function Cl() {
19894
+ function xl() {
19895
19895
  const { caseless: e } = K1(this) && this || {}, t = {}, r = (n, a) => {
19896
19896
  const s = e && q1(t, a) || a;
19897
- no(t[s]) && no(n) ? t[s] = Cl(t[s], n) : no(n) ? t[s] = Cl({}, n) : ia(n) ? t[s] = n.slice() : t[s] = n;
19897
+ no(t[s]) && no(n) ? t[s] = xl(t[s], n) : no(n) ? t[s] = xl({}, n) : ia(n) ? t[s] = n.slice() : t[s] = n;
19898
19898
  };
19899
19899
  for (let n = 0, a = arguments.length; n < a; n++)
19900
19900
  arguments[n] && as(arguments[n], r);
@@ -19930,7 +19930,7 @@ const qE = (e, t, r, { allOwnKeys: n } = {}) => (as(t, (a, s) => {
19930
19930
  r[t] = e[t];
19931
19931
  return r;
19932
19932
  }, QE = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && uc(Uint8Array)), PE = (e, t) => {
19933
- const n = (e && e[Wo]).call(e);
19933
+ const n = (e && e[Lo]).call(e);
19934
19934
  let a;
19935
19935
  for (; (a = n.next()) && !a.done; ) {
19936
19936
  const s = a.value;
@@ -19978,11 +19978,11 @@ const qE = (e, t, r, { allOwnKeys: n } = {}) => (as(t, (a, s) => {
19978
19978
  }, $E = () => {
19979
19979
  }, ev = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
19980
19980
  function tv(e) {
19981
- return !!(e && Ft(e.append) && e[W1] === "FormData" && e[Wo]);
19981
+ return !!(e && Ft(e.append) && e[W1] === "FormData" && e[Lo]);
19982
19982
  }
19983
19983
  const rv = (e) => {
19984
19984
  const t = new Array(10), r = (n, a) => {
19985
- if (qo(n)) {
19985
+ if (Ko(n)) {
19986
19986
  if (t.indexOf(n) >= 0)
19987
19987
  return;
19988
19988
  if (!("toJSON" in n)) {
@@ -19997,14 +19997,14 @@ const rv = (e) => {
19997
19997
  return n;
19998
19998
  };
19999
19999
  return r(e, 0);
20000
- }, nv = or("AsyncFunction"), av = (e) => e && (qo(e) || Ft(e)) && Ft(e.then) && Ft(e.catch), D1 = ((e, t) => e ? setImmediate : t ? ((r, n) => (pn.addEventListener("message", ({ source: a, data: s }) => {
20000
+ }, nv = or("AsyncFunction"), av = (e) => e && (Ko(e) || Ft(e)) && Ft(e.then) && Ft(e.catch), D1 = ((e, t) => e ? setImmediate : t ? ((r, n) => (pn.addEventListener("message", ({ source: a, data: s }) => {
20001
20001
  a === pn && s === r && n.length && n.shift()();
20002
20002
  }, !1), (a) => {
20003
20003
  n.push(a), pn.postMessage(r, "*");
20004
20004
  }))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(
20005
20005
  typeof setImmediate == "function",
20006
20006
  Ft(pn.postMessage)
20007
- ), sv = typeof queueMicrotask < "u" ? queueMicrotask.bind(pn) : typeof process < "u" && process.nextTick || D1, ov = (e) => e != null && Ft(e[Wo]), D = {
20007
+ ), sv = typeof queueMicrotask < "u" ? queueMicrotask.bind(pn) : typeof process < "u" && process.nextTick || D1, ov = (e) => e != null && Ft(e[Lo]), D = {
20008
20008
  isArray: ia,
20009
20009
  isArrayBuffer: L1,
20010
20010
  isBuffer: vE,
@@ -20013,7 +20013,7 @@ const rv = (e) => {
20013
20013
  isString: kE,
20014
20014
  isNumber: O1,
20015
20015
  isBoolean: SE,
20016
- isObject: qo,
20016
+ isObject: Ko,
20017
20017
  isPlainObject: no,
20018
20018
  isReadableStream: ME,
20019
20019
  isRequest: VE,
@@ -20030,13 +20030,13 @@ const rv = (e) => {
20030
20030
  isTypedArray: QE,
20031
20031
  isFileList: NE,
20032
20032
  forEach: as,
20033
- merge: Cl,
20033
+ merge: xl,
20034
20034
  extend: qE,
20035
20035
  trim: OE,
20036
20036
  stripBOM: KE,
20037
20037
  inherits: zE,
20038
20038
  toFlatObject: DE,
20039
- kindOf: Lo,
20039
+ kindOf: Oo,
20040
20040
  kindOfTest: or,
20041
20041
  endsWith: GE,
20042
20042
  toArray: ZE,
@@ -20114,7 +20114,7 @@ we.from = (e, t, r, n, a, s) => {
20114
20114
  }, (i) => i !== "isAxiosError"), we.call(o, e.message, t, r, n, a), o.cause = e, o.name = e.name, s && Object.assign(o, s), o;
20115
20115
  };
20116
20116
  const iv = null;
20117
- function xl(e) {
20117
+ function El(e) {
20118
20118
  return D.isPlainObject(e) || D.isArray(e);
20119
20119
  }
20120
20120
  function Q1(e) {
@@ -20126,12 +20126,12 @@ function Dd(e, t, r) {
20126
20126
  }).join(r ? "." : "") : t;
20127
20127
  }
20128
20128
  function lv(e) {
20129
- return D.isArray(e) && !e.some(xl);
20129
+ return D.isArray(e) && !e.some(El);
20130
20130
  }
20131
20131
  const cv = D.toFlatObject(D, {}, null, function(t) {
20132
20132
  return /^is[A-Z]/.test(t);
20133
20133
  });
20134
- function Ko(e, t, r) {
20134
+ function zo(e, t, r) {
20135
20135
  if (!D.isObject(e))
20136
20136
  throw new TypeError("target must be an object");
20137
20137
  t = t || new FormData(), r = D.toFlatObject(r, {
@@ -20166,12 +20166,12 @@ function Ko(e, t, r) {
20166
20166
  );
20167
20167
  }), !1;
20168
20168
  }
20169
- return xl(y) ? !0 : (t.append(Dd(b, C, s), u(y)), !1);
20169
+ return El(y) ? !0 : (t.append(Dd(b, C, s), u(y)), !1);
20170
20170
  }
20171
20171
  const d = [], h = Object.assign(cv, {
20172
20172
  defaultVisitor: p,
20173
20173
  convertValue: u,
20174
- isVisitable: xl
20174
+ isVisitable: El
20175
20175
  });
20176
20176
  function f(y, C) {
20177
20177
  if (!D.isUndefined(y)) {
@@ -20207,7 +20207,7 @@ function Gd(e) {
20207
20207
  });
20208
20208
  }
20209
20209
  function pc(e, t) {
20210
- this._pairs = [], e && Ko(e, this, t);
20210
+ this._pairs = [], e && zo(e, this, t);
20211
20211
  }
20212
20212
  const P1 = pc.prototype;
20213
20213
  P1.append = function(t, r) {
@@ -20305,20 +20305,20 @@ const Y1 = {
20305
20305
  Blob: mv
20306
20306
  },
20307
20307
  protocols: ["http", "https", "file", "blob", "url", "data"]
20308
- }, mc = typeof window < "u" && typeof document < "u", El = typeof navigator == "object" && navigator || void 0, fv = mc && (!El || ["ReactNative", "NativeScript", "NS"].indexOf(El.product) < 0), gv = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
20308
+ }, mc = typeof window < "u" && typeof document < "u", vl = typeof navigator == "object" && navigator || void 0, fv = mc && (!vl || ["ReactNative", "NativeScript", "NS"].indexOf(vl.product) < 0), gv = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
20309
20309
  self instanceof WorkerGlobalScope && typeof self.importScripts == "function", wv = mc && window.location.href || "http://localhost", bv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20310
20310
  __proto__: null,
20311
20311
  hasBrowserEnv: mc,
20312
20312
  hasStandardBrowserEnv: fv,
20313
20313
  hasStandardBrowserWebWorkerEnv: gv,
20314
- navigator: El,
20314
+ navigator: vl,
20315
20315
  origin: wv
20316
20316
  }, Symbol.toStringTag, { value: "Module" })), wt = {
20317
20317
  ...bv,
20318
20318
  ...hv
20319
20319
  };
20320
20320
  function yv(e, t) {
20321
- return Ko(e, new wt.classes.URLSearchParams(), Object.assign({
20321
+ return zo(e, new wt.classes.URLSearchParams(), Object.assign({
20322
20322
  visitor: function(r, n, a, s) {
20323
20323
  return wt.isNode && D.isBuffer(r) ? (this.append(n, r.toString("base64")), !1) : s.defaultVisitor.apply(this, arguments);
20324
20324
  }
@@ -20380,7 +20380,7 @@ const ss = {
20380
20380
  return yv(t, this.formSerializer).toString();
20381
20381
  if ((i = D.isFileList(t)) || n.indexOf("multipart/form-data") > -1) {
20382
20382
  const l = this.env && this.env.FormData;
20383
- return Ko(
20383
+ return zo(
20384
20384
  i ? { "files[]": t } : t,
20385
20385
  l && new l(),
20386
20386
  this.formSerializer
@@ -20470,7 +20470,7 @@ function kv(e) {
20470
20470
  return t;
20471
20471
  }
20472
20472
  const Sv = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
20473
- function Ii(e, t, r, n, a) {
20473
+ function Ni(e, t, r, n, a) {
20474
20474
  if (D.isFunction(n))
20475
20475
  return n.call(this, t, r);
20476
20476
  if (a && (t = r), !!D.isString(t)) {
@@ -20544,7 +20544,7 @@ let Mt = class {
20544
20544
  has(t, r) {
20545
20545
  if (t = Ua(t), t) {
20546
20546
  const n = D.findKey(this, t);
20547
- return !!(n && this[n] !== void 0 && (!r || Ii(this, this[n], n, r)));
20547
+ return !!(n && this[n] !== void 0 && (!r || Ni(this, this[n], n, r)));
20548
20548
  }
20549
20549
  return !1;
20550
20550
  }
@@ -20554,7 +20554,7 @@ let Mt = class {
20554
20554
  function s(o) {
20555
20555
  if (o = Ua(o), o) {
20556
20556
  const i = D.findKey(n, o);
20557
- i && (!r || Ii(n, n[i], i, r)) && (delete n[i], a = !0);
20557
+ i && (!r || Ni(n, n[i], i, r)) && (delete n[i], a = !0);
20558
20558
  }
20559
20559
  }
20560
20560
  return D.isArray(t) ? t.forEach(s) : s(t), a;
@@ -20564,7 +20564,7 @@ let Mt = class {
20564
20564
  let n = r.length, a = !1;
20565
20565
  for (; n--; ) {
20566
20566
  const s = r[n];
20567
- (!t || Ii(this, this[s], s, t, !0)) && (delete this[s], a = !0);
20567
+ (!t || Ni(this, this[s], s, t, !0)) && (delete this[s], a = !0);
20568
20568
  }
20569
20569
  return a;
20570
20570
  }
@@ -20631,7 +20631,7 @@ D.reduceDescriptors(Mt.prototype, ({ value: e }, t) => {
20631
20631
  };
20632
20632
  });
20633
20633
  D.freezeMethods(Mt);
20634
- function Ni(e, t) {
20634
+ function Bi(e, t) {
20635
20635
  const r = this || ss, n = t || r, a = Mt.from(n.headers);
20636
20636
  let s = n.data;
20637
20637
  return D.forEach(e, function(i) {
@@ -20689,7 +20689,7 @@ function Bv(e, t) {
20689
20689
  }, n - d)));
20690
20690
  }, () => a && o(a)];
20691
20691
  }
20692
- const po = (e, t, r = 3) => {
20692
+ const mo = (e, t, r = 3) => {
20693
20693
  let n = 0;
20694
20694
  const a = Nv(50, 250);
20695
20695
  return Bv((s) => {
@@ -20888,7 +20888,7 @@ const $1 = (e) => {
20888
20888
  )), b = null;
20889
20889
  }, s === void 0 && o.setContentType(null), "setRequestHeader" in b && D.forEach(o.toJSON(), function(v, N) {
20890
20890
  b.setRequestHeader(N, v);
20891
- }), D.isUndefined(a.withCredentials) || (b.withCredentials = !!a.withCredentials), i && i !== "json" && (b.responseType = a.responseType), u && ([h, y] = po(u, !0), b.addEventListener("progress", h)), l && b.upload && ([d, f] = po(l), b.upload.addEventListener("progress", d), b.upload.addEventListener("loadend", f)), (a.cancelToken || a.signal) && (p = (k) => {
20891
+ }), D.isUndefined(a.withCredentials) || (b.withCredentials = !!a.withCredentials), i && i !== "json" && (b.responseType = a.responseType), u && ([h, y] = mo(u, !0), b.addEventListener("progress", h)), l && b.upload && ([d, f] = mo(l), b.upload.addEventListener("progress", d), b.upload.addEventListener("loadend", f)), (a.cancelToken || a.signal) && (p = (k) => {
20892
20892
  b && (n(!k || k.type ? new la(null, e, b) : k), b.abort(), b = null);
20893
20893
  }, a.cancelToken && a.cancelToken.subscribe(p), a.signal && (a.signal.aborted ? p() : a.signal.addEventListener("abort", p)));
20894
20894
  const A = Iv(a.url);
@@ -20978,7 +20978,7 @@ const $1 = (e) => {
20978
20978
  }, {
20979
20979
  highWaterMark: 2
20980
20980
  });
20981
- }, zo = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", em = zo && typeof ReadableStream == "function", Dv = zo && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), tm = (e, ...t) => {
20981
+ }, Do = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", em = Do && typeof ReadableStream == "function", Dv = Do && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), tm = (e, ...t) => {
20982
20982
  try {
20983
20983
  return !!e(...t);
20984
20984
  } catch {
@@ -20994,12 +20994,12 @@ const $1 = (e) => {
20994
20994
  }
20995
20995
  }).headers.has("Content-Type");
20996
20996
  return e && !t;
20997
- }), Hd = 64 * 1024, vl = em && tm(() => D.isReadableStream(new Response("").body)), mo = {
20998
- stream: vl && ((e) => e.body)
20997
+ }), Hd = 64 * 1024, Al = em && tm(() => D.isReadableStream(new Response("").body)), ho = {
20998
+ stream: Al && ((e) => e.body)
20999
20999
  };
21000
- zo && ((e) => {
21000
+ Do && ((e) => {
21001
21001
  ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
21002
- !mo[t] && (mo[t] = D.isFunction(e[t]) ? (r) => r[t]() : (r, n) => {
21002
+ !ho[t] && (ho[t] = D.isFunction(e[t]) ? (r) => r[t]() : (r, n) => {
21003
21003
  throw new we(`Response type '${t}' is not supported`, we.ERR_NOT_SUPPORT, n);
21004
21004
  });
21005
21005
  });
@@ -21021,7 +21021,7 @@ const Zv = async (e) => {
21021
21021
  }, Qv = async (e, t) => {
21022
21022
  const r = D.toFiniteNumber(e.getContentLength());
21023
21023
  return r ?? Zv(t);
21024
- }, Pv = zo && (async (e) => {
21024
+ }, Pv = Do && (async (e) => {
21025
21025
  let {
21026
21026
  url: t,
21027
21027
  method: r,
@@ -21052,7 +21052,7 @@ const Zv = async (e) => {
21052
21052
  if (D.isFormData(n) && (R = N.headers.get("content-type")) && p.setContentType(R), N.body) {
21053
21053
  const [U, L] = Pd(
21054
21054
  b,
21055
- po(Jd(l))
21055
+ mo(Jd(l))
21056
21056
  );
21057
21057
  n = Xd(N.body, Hd, U, L);
21058
21058
  }
@@ -21069,15 +21069,15 @@ const Zv = async (e) => {
21069
21069
  credentials: x ? d : void 0
21070
21070
  });
21071
21071
  let A = await fetch(y);
21072
- const k = vl && (u === "stream" || u === "response");
21073
- if (vl && (i || k && C)) {
21072
+ const k = Al && (u === "stream" || u === "response");
21073
+ if (Al && (i || k && C)) {
21074
21074
  const N = {};
21075
21075
  ["status", "statusText", "headers"].forEach((V) => {
21076
21076
  N[V] = A[V];
21077
21077
  });
21078
21078
  const R = D.toFiniteNumber(A.headers.get("content-length")), [U, L] = i && Pd(
21079
21079
  R,
21080
- po(Jd(i), !0)
21080
+ mo(Jd(i), !0)
21081
21081
  ) || [];
21082
21082
  A = new Response(
21083
21083
  Xd(A.body, Hd, U, () => {
@@ -21087,7 +21087,7 @@ const Zv = async (e) => {
21087
21087
  );
21088
21088
  }
21089
21089
  u = u || "text";
21090
- let v = await mo[D.findKey(mo, u) || "text"](A, e);
21090
+ let v = await ho[D.findKey(ho, u) || "text"](A, e);
21091
21091
  return !k && C && C(), await new Promise((N, R) => {
21092
21092
  j1(N, R, {
21093
21093
  data: v,
@@ -21106,12 +21106,12 @@ const Zv = async (e) => {
21106
21106
  }
21107
21107
  ) : we.from(x, x && x.code, e, y);
21108
21108
  }
21109
- }), Al = {
21109
+ }), kl = {
21110
21110
  http: iv,
21111
21111
  xhr: Lv,
21112
21112
  fetch: Pv
21113
21113
  };
21114
- D.forEach(Al, (e, t) => {
21114
+ D.forEach(kl, (e, t) => {
21115
21115
  if (e) {
21116
21116
  try {
21117
21117
  Object.defineProperty(e, "name", { value: t });
@@ -21129,7 +21129,7 @@ const jd = (e) => `- ${e}`, Jv = (e) => D.isFunction(e) || e === null || e === !
21129
21129
  for (let s = 0; s < t; s++) {
21130
21130
  r = e[s];
21131
21131
  let o;
21132
- if (n = r, !Jv(r) && (n = Al[(o = String(r)).toLowerCase()], n === void 0))
21132
+ if (n = r, !Jv(r) && (n = kl[(o = String(r)).toLowerCase()], n === void 0))
21133
21133
  throw new we(`Unknown adapter '${o}'`);
21134
21134
  if (n)
21135
21135
  break;
@@ -21149,38 +21149,38 @@ const jd = (e) => `- ${e}`, Jv = (e) => D.isFunction(e) || e === null || e === !
21149
21149
  }
21150
21150
  return n;
21151
21151
  },
21152
- adapters: Al
21152
+ adapters: kl
21153
21153
  };
21154
- function Bi(e) {
21154
+ function Ri(e) {
21155
21155
  if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
21156
21156
  throw new la(null, e);
21157
21157
  }
21158
21158
  function _d(e) {
21159
- return Bi(e), e.headers = Mt.from(e.headers), e.data = Ni.call(
21159
+ return Ri(e), e.headers = Mt.from(e.headers), e.data = Bi.call(
21160
21160
  e,
21161
21161
  e.transformRequest
21162
21162
  ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), rm.getAdapter(e.adapter || ss.adapter)(e).then(function(n) {
21163
- return Bi(e), n.data = Ni.call(
21163
+ return Ri(e), n.data = Bi.call(
21164
21164
  e,
21165
21165
  e.transformResponse,
21166
21166
  n
21167
21167
  ), n.headers = Mt.from(n.headers), n;
21168
21168
  }, function(n) {
21169
- return H1(n) || (Bi(e), n && n.response && (n.response.data = Ni.call(
21169
+ return H1(n) || (Ri(e), n && n.response && (n.response.data = Bi.call(
21170
21170
  e,
21171
21171
  e.transformResponse,
21172
21172
  n.response
21173
21173
  ), n.response.headers = Mt.from(n.response.headers))), Promise.reject(n);
21174
21174
  });
21175
21175
  }
21176
- const nm = "1.9.0", Do = {};
21176
+ const nm = "1.9.0", Go = {};
21177
21177
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
21178
- Do[e] = function(n) {
21178
+ Go[e] = function(n) {
21179
21179
  return typeof n === e || "a" + (t < 1 ? "n " : " ") + e;
21180
21180
  };
21181
21181
  });
21182
21182
  const $d = {};
21183
- Do.transitional = function(t, r, n) {
21183
+ Go.transitional = function(t, r, n) {
21184
21184
  function a(s, o) {
21185
21185
  return "[Axios v" + nm + "] Transitional option '" + s + "'" + o + (n ? ". " + n : "");
21186
21186
  }
@@ -21198,7 +21198,7 @@ Do.transitional = function(t, r, n) {
21198
21198
  )), t ? t(s, o, i) : !0;
21199
21199
  };
21200
21200
  };
21201
- Do.spelling = function(t) {
21201
+ Go.spelling = function(t) {
21202
21202
  return (r, n) => (console.warn(`${n} is likely a misspelling of ${t}`), !0);
21203
21203
  };
21204
21204
  function Yv(e, t, r) {
@@ -21220,7 +21220,7 @@ function Yv(e, t, r) {
21220
21220
  }
21221
21221
  const so = {
21222
21222
  assertOptions: Yv,
21223
- validators: Do
21223
+ validators: Go
21224
21224
  }, ur = so.validators;
21225
21225
  let wn = class {
21226
21226
  constructor(t) {
@@ -21427,7 +21427,7 @@ function Hv(e) {
21427
21427
  function jv(e) {
21428
21428
  return D.isObject(e) && e.isAxiosError === !0;
21429
21429
  }
21430
- const kl = {
21430
+ const Sl = {
21431
21431
  Continue: 100,
21432
21432
  SwitchingProtocols: 101,
21433
21433
  Processing: 102,
@@ -21492,8 +21492,8 @@ const kl = {
21492
21492
  NotExtended: 510,
21493
21493
  NetworkAuthenticationRequired: 511
21494
21494
  };
21495
- Object.entries(kl).forEach(([e, t]) => {
21496
- kl[t] = e;
21495
+ Object.entries(Sl).forEach(([e, t]) => {
21496
+ Sl[t] = e;
21497
21497
  });
21498
21498
  function sm(e) {
21499
21499
  const t = new wn(e), r = V1(wn.prototype.request, t);
@@ -21507,7 +21507,7 @@ rt.CanceledError = la;
21507
21507
  rt.CancelToken = Xv;
21508
21508
  rt.isCancel = H1;
21509
21509
  rt.VERSION = nm;
21510
- rt.toFormData = Ko;
21510
+ rt.toFormData = zo;
21511
21511
  rt.AxiosError = we;
21512
21512
  rt.Cancel = rt.CanceledError;
21513
21513
  rt.all = function(t) {
@@ -21519,7 +21519,7 @@ rt.mergeConfig = xn;
21519
21519
  rt.AxiosHeaders = Mt;
21520
21520
  rt.formToJSON = (e) => X1(D.isHTMLForm(e) ? new FormData(e) : e);
21521
21521
  rt.getAdapter = rm.getAdapter;
21522
- rt.HttpStatusCode = kl;
21522
+ rt.HttpStatusCode = Sl;
21523
21523
  rt.default = rt;
21524
21524
  const {
21525
21525
  Axios: wM,
@@ -22168,7 +22168,7 @@ async function iA({ stepItem: e, step: t, wallet: r, setState: n, request: a, cl
22168
22168
  }));
22169
22169
  }, h);
22170
22170
  }
22171
- const Go = "https://api.relay.link", en = "https://assets.relay.link", im = "wss://ws.relay.link", lA = (e) => e?.length && e.find((t) => t.requestId)?.requestId || null;
22171
+ const Zo = "https://api.relay.link", en = "https://assets.relay.link", im = "wss://ws.relay.link", lA = (e) => e?.length && e.find((t) => t.requestId)?.requestId || null;
22172
22172
  function cA({ event: e, requestId: t, onOpen: r, onUpdate: n, onError: a, onClose: s, url: o, enabled: i = !1 }) {
22173
22173
  if (!i || typeof window > "u" || typeof window.WebSocket > "u")
22174
22174
  return { close: () => {
@@ -22320,7 +22320,7 @@ function wr(e, t) {
22320
22320
  function lm(e, t, r) {
22321
22321
  e.websocketFailureTimeoutId && (clearTimeout(e.websocketFailureTimeoutId), e.websocketFailureTimeoutId = null, t.log([`Cleared failure timeout: ${r}`], le.Verbose));
22322
22322
  }
22323
- async function Zo(e, t = {}, r, n, a, s, o) {
22323
+ async function Qo(e, t = {}, r, n, a, s, o) {
22324
22324
  const i = Oe();
22325
22325
  i?.baseApiUrl && (t.baseURL = i.baseApiUrl);
22326
22326
  const l = i.pollingInterval ?? 5e3, u = i.maxPollingAttemptsBeforeTimeout ?? 2.5 * 60 * 1e3 / l, p = i.chains.find((k) => k.id === e);
@@ -22470,7 +22470,7 @@ async function Zo(e, t = {}, r, n, a, s, o) {
22470
22470
  }
22471
22471
  }));
22472
22472
  await Promise.all(Q);
22473
- const Z = await Zo(e, t, r, n, d, s, f);
22473
+ const Z = await Qo(e, t, r, n, d, s, f);
22474
22474
  return f.closeWebSocket?.(), Ia(f, i), Z;
22475
22475
  } catch (k) {
22476
22476
  i.log(["Execute Steps: An error occurred", k], le.Error), f.closeWebSocket?.(), Ia(f, i);
@@ -22531,7 +22531,7 @@ function fc(e) {
22531
22531
  function gc(e) {
22532
22532
  return e.extend !== void 0 && e.getPermissions !== void 0;
22533
22533
  }
22534
- const Qo = (e) => ({
22534
+ const Po = (e) => ({
22535
22535
  vmType: "evm",
22536
22536
  getChainId: async () => e.getChainId(),
22537
22537
  transport: hs(e.transport),
@@ -22596,7 +22596,7 @@ const Qo = (e) => ({
22596
22596
  const s = Oe(), o = s.chains.find((p) => p.id === r), i = o?.httpRpcUrl;
22597
22597
  return await yn({
22598
22598
  chain: o?.viemChain,
22599
- transport: e.transport ? il(i ? [Et(i), hs(e.transport), Et()] : [hs(e.transport), Et()]) : il([Et(i), Et()]),
22599
+ transport: e.transport ? ll(i ? [Et(i), hs(e.transport), Et()] : [hs(e.transport), Et()]) : ll([Et(i), Et()]),
22600
22600
  pollingInterval: s.confirmationPollingInterval
22601
22601
  }).waitForTransactionReceipt({
22602
22602
  hash: t,
@@ -22713,7 +22713,7 @@ const Qo = (e) => ({
22713
22713
  return { isEOA: !1, isEIP7702Delegated: !1 };
22714
22714
  }
22715
22715
  }
22716
- }), yA = Object.values(Rx).reduce((e, t) => (e[t.id] = t, e), {}), Po = (e) => {
22716
+ }), yA = Object.values(Rx).reduce((e, t) => (e[t.id] = t, e), {}), Jo = (e) => {
22717
22717
  let t;
22718
22718
  const n = [999, 1337].includes(e.id) ? void 0 : yA[e.id];
22719
22719
  return n ? t = n : t = {
@@ -22782,7 +22782,7 @@ const Qo = (e) => ({
22782
22782
  }
22783
22783
  const n = await yt.get(`${e}/chains${r}`);
22784
22784
  if (n.data && n.data.chains)
22785
- return n.data.chains.map((a) => Po(a));
22785
+ return n.data.chains.map((a) => Jo(a));
22786
22786
  throw "No Chain Data";
22787
22787
  }, um = (e) => {
22788
22788
  let t = null, r, n = [];
@@ -22809,16 +22809,16 @@ const xA = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
22809
22809
  get LogLevel() {
22810
22810
  return le;
22811
22811
  },
22812
- adaptViemWallet: Qo,
22812
+ adaptViemWallet: Po,
22813
22813
  axios: yt,
22814
- configureViemChain: Po,
22814
+ configureViemChain: Jo,
22815
22815
  convertViemChainToRelayChain: wc,
22816
- executeSteps: Zo,
22816
+ executeSteps: Qo,
22817
22817
  fetchChainConfigs: CA,
22818
22818
  getCurrentStepData: um,
22819
22819
  isAPIError: tA,
22820
22820
  isSimulateContractRequest: bc,
22821
- log: yl,
22821
+ log: Cl,
22822
22822
  pollUntilHasData: cm,
22823
22823
  pollUntilOk: dm,
22824
22824
  prepareCallTransaction: fc,
@@ -22839,7 +22839,7 @@ const vA = [
22839
22839
  ].map((e) => wc(e)), AA = [A1, b1].map((e) => wc(e));
22840
22840
  class kA {
22841
22841
  log(t, r = le.Info) {
22842
- return yl(t, r, this.logLevel);
22842
+ return Cl(t, r, this.logLevel);
22843
22843
  }
22844
22844
  constructor(t) {
22845
22845
  if (Object.defineProperty(this, "version", {
@@ -22912,7 +22912,7 @@ class kA {
22912
22912
  configurable: !0,
22913
22913
  writable: !0,
22914
22914
  value: z0
22915
- }), this.version = EA, this.uiVersion = t.uiVersion, this.baseApiUrl = t.baseApiUrl ?? Go, this.logLevel = t.logLevel !== void 0 ? t.logLevel : le.None, this.pollingInterval = t.pollingInterval, this.maxPollingAttemptsBeforeTimeout = t.maxPollingAttemptsBeforeTimeout, this.useGasFeeEstimations = t.useGasFeeEstimations ?? !0, this.websocketEnabled = t.websocket?.enabled ?? !1, this.websocketUrl = t.websocket?.url ?? im, t.chains ? this.chains = t.chains : t.baseApiUrl?.includes("testnets") ? this.chains = AA : this.chains = vA, t.source)
22915
+ }), this.version = EA, this.uiVersion = t.uiVersion, this.baseApiUrl = t.baseApiUrl ?? Zo, this.logLevel = t.logLevel !== void 0 ? t.logLevel : le.None, this.pollingInterval = t.pollingInterval, this.maxPollingAttemptsBeforeTimeout = t.maxPollingAttemptsBeforeTimeout, this.useGasFeeEstimations = t.useGasFeeEstimations ?? !0, this.websocketEnabled = t.websocket?.enabled ?? !1, this.websocketUrl = t.websocket?.url ?? im, t.chains ? this.chains = t.chains : t.baseApiUrl?.includes("testnets") ? this.chains = AA : this.chains = vA, t.source)
22916
22916
  this.source = t.source;
22917
22917
  else if (typeof window < "u") {
22918
22918
  let r = location.hostname;
@@ -22921,7 +22921,7 @@ class kA {
22921
22921
  }
22922
22922
  configure(t) {
22923
22923
  this.baseApiUrl = t.baseApiUrl ? t.baseApiUrl : this.baseApiUrl, this.source = t.source ? t.source : this.source, this.logLevel = t.logLevel !== void 0 ? t.logLevel : le.None, this.pollingInterval = t.pollingInterval ? t.pollingInterval : this.pollingInterval, this.confirmationPollingInterval = t.confirmationPollingInterval ? t.confirmationPollingInterval : this.confirmationPollingInterval, this.maxPollingAttemptsBeforeTimeout = t.maxPollingAttemptsBeforeTimeout ? t.maxPollingAttemptsBeforeTimeout : this.maxPollingAttemptsBeforeTimeout, this.useGasFeeEstimations = t.useGasFeeEstimations !== void 0 ? t.useGasFeeEstimations : this.useGasFeeEstimations, this.websocketEnabled = t.websocket?.enabled !== void 0 ? t.websocket.enabled : this.websocketEnabled, this.websocketUrl = t.websocket?.url || this.websocketUrl, t.logger ? this.log = t.logger : this.log = (r, n = le.Info) => {
22924
- yl(r, n, this.logLevel);
22924
+ Cl(r, n, this.logLevel);
22925
22925
  }, t.chains && (this.chains = t.chains);
22926
22926
  }
22927
22927
  }
@@ -22931,13 +22931,13 @@ function Oe() {
22931
22931
  function SA(e) {
22932
22932
  return Oa ? Oa.configure(e) : Oa = new kA({ ...e }), Oa;
22933
22933
  }
22934
- const pm = "0x000000000000000000000000000000000000dead", mm = "CbKGgVKLJFb8bBrf58DnAkdryX6ubewVytn7X957YwNr", hm = "CrfbABN2sSvmoZLu9eDDfXpaC2nHg42R7AXbHs9eg4S9", fm = "bc1q4vxn43l44h30nkluqfxd9eckf45vr2awz38lwa", TA = "THa7BwoPfacfiELa63pbmm3g5PGKYmtJyt", UA = "0x00000000000000000000000000000000000dead0", gm = "0x000000000000000000000000000000000000000000000000000000000000dead", IA = 9286185, NA = 543210, Sl = (e, t) => e === "svm" ? t === IA ? hm : mm : e === "bvm" ? fm : t === NA ? UA : e === "tvm" ? TA : e === "suivm" ? gm : pm, ru = (e) => e ? e === hm || e === mm || e === fm || e === pm || e === gm : !1;
22934
+ const pm = "0x000000000000000000000000000000000000dead", mm = "CbKGgVKLJFb8bBrf58DnAkdryX6ubewVytn7X957YwNr", hm = "CrfbABN2sSvmoZLu9eDDfXpaC2nHg42R7AXbHs9eg4S9", fm = "bc1q4vxn43l44h30nkluqfxd9eckf45vr2awz38lwa", TA = "THa7BwoPfacfiELa63pbmm3g5PGKYmtJyt", UA = "0x00000000000000000000000000000000000dead0", gm = "0x000000000000000000000000000000000000000000000000000000000000dead", IA = 9286185, NA = 543210, Tl = (e, t) => e === "svm" ? t === IA ? hm : mm : e === "bvm" ? fm : t === NA ? UA : e === "tvm" ? TA : e === "suivm" ? gm : pm, ru = (e) => e ? e === hm || e === mm || e === fm || e === pm || e === gm : !1;
22935
22935
  function BA(e) {
22936
22936
  const { quote: t, wallet: r, depositGasLimit: n, onProgress: a } = e, s = Oe();
22937
22937
  if (!s.baseApiUrl || !s.baseApiUrl.length)
22938
22938
  throw new ReferenceError("RelayClient missing api url configuration");
22939
22939
  let o;
22940
- r && (o = gc(r) ? Qo(r) : r);
22940
+ r && (o = gc(r) ? Po(r) : r);
22941
22941
  try {
22942
22942
  if (!o)
22943
22943
  throw new Error("AdaptedWallet is required to execute steps");
@@ -22949,7 +22949,7 @@ function BA(e) {
22949
22949
  if (ru(t?.details?.sender))
22950
22950
  throw new Error("Sender should never be burn address");
22951
22951
  const { request: u, ...p } = t, d = yc(p), h = new Promise((f, y) => {
22952
- Zo(l, u, o, ({ steps: C, fees: b, breakdown: x, details: A, refunded: k, error: v }) => {
22952
+ Qo(l, u, o, ({ steps: C, fees: b, breakdown: x, details: A, refunded: k, error: v }) => {
22953
22953
  if (i.signal.aborted) {
22954
22954
  console.log("Relay SDK: Execution aborted, skipping progress callback");
22955
22955
  return;
@@ -22980,7 +22980,7 @@ function BA(e) {
22980
22980
  }
22981
22981
  }
22982
22982
  const RA = async (e, t, r, n, a) => {
22983
- const s = e.chains.find((p) => p.id === r), o = e.chains.find((p) => p.id === t), i = s ? Sl(s.vmType, s.id) : void 0, l = o ? Sl(o.vmType, o.id) : void 0;
22983
+ const s = e.chains.find((p) => p.id === r), o = e.chains.find((p) => p.id === t), i = s ? Tl(s.vmType, s.id) : void 0, l = o ? Tl(o.vmType, o.id) : void 0;
22984
22984
  let u;
22985
22985
  return a && (u = await a.address()), {
22986
22986
  user: u || i || vt,
@@ -22992,7 +22992,7 @@ async function FA(e, t, r) {
22992
22992
  if (!y.baseApiUrl || !y.baseApiUrl.length)
22993
22993
  throw new ReferenceError("RelayClient missing api url configuration");
22994
22994
  let C;
22995
- s && (C = gc(s) ? Qo(s) : s);
22995
+ s && (C = gc(s) ? Po(s) : s);
22996
22996
  let b;
22997
22997
  h && h.length > 0 && (b = h.map((N) => bc(N) ? fc(N) : N));
22998
22998
  let x;
@@ -23028,7 +23028,7 @@ async function MA(e) {
23028
23028
  throw new ReferenceError("RelayClient missing api url configuration");
23029
23029
  let h;
23030
23030
  p && p.length > 0 && (h = p.map((A) => bc(A) ? fc(A) : A));
23031
- const f = d.chains.find((A) => A.id === n), y = Sl(f?.vmType, f?.id), C = {
23031
+ const f = d.chains.find((A) => A.id === n), y = Tl(f?.vmType, f?.id), C = {
23032
23032
  user: i ?? y,
23033
23033
  destinationCurrency: r,
23034
23034
  destinationChainId: t,
@@ -23076,7 +23076,7 @@ async function LA(e) {
23076
23076
  if (!o.baseApiUrl || !o.baseApiUrl.length)
23077
23077
  throw new ReferenceError("RelayClient missing api url configuration");
23078
23078
  let i;
23079
- if (t && (i = gc(t) ? Qo(t) : t), !i)
23079
+ if (t && (i = gc(t) ? Po(t) : t), !i)
23080
23080
  throw new Error("AdaptedWallet is required to execute claim steps");
23081
23081
  const l = await i.address(), u = new AbortController(), p = {
23082
23082
  url: `${o.baseApiUrl}/app-fees/${l}/claim`,
@@ -23091,15 +23091,15 @@ async function LA(e) {
23091
23091
  const h = d.data.steps || [], f = yc({
23092
23092
  steps: h
23093
23093
  });
23094
- return { data: await Zo(r, p, i, (C) => {
23094
+ return { data: await Qo(r, p, i, (C) => {
23095
23095
  u.signal.aborted || s?.(C);
23096
23096
  }, f), abortController: u };
23097
23097
  } catch (d) {
23098
23098
  throw console.error(d), d;
23099
23099
  }
23100
23100
  }
23101
- const Tl = 792703809, ut = SA({
23102
- baseApiUrl: Go,
23101
+ const oo = 792703809, ut = SA({
23102
+ baseApiUrl: Zo,
23103
23103
  source: "useglyph.io"
23104
23104
  }), FM = (e) => {
23105
23105
  ut.configure({
@@ -23135,7 +23135,7 @@ const DA = "GlyphWidget", os = (e) => {
23135
23135
  }
23136
23136
  };
23137
23137
  };
23138
- function Ri(e, t) {
23138
+ function Fi(e, t) {
23139
23139
  return BigInt(jl(e.toString(), t));
23140
23140
  }
23141
23141
  const Ya = (e, t = 2) => Number(
@@ -23188,13 +23188,13 @@ const PA = (e) => ut?.chains?.find((t) => t.id === e) || null, su = (e, t) => {
23188
23188
  n?.toLowerCase?.()
23189
23189
  );
23190
23190
  };
23191
- function Ze({ className: e, ...t }) {
23191
+ function Ge({ className: e, ...t }) {
23192
23192
  return /* @__PURE__ */ c("div", { className: oe("gw-animate-pulse gw-rounded-md gw-bg-muted", e), ...t });
23193
23193
  }
23194
23194
  const JA = ({ className: e, overrideUrl: t, overrideAlt: r }) => {
23195
23195
  const { user: n, ready: a, authenticated: s } = Me();
23196
23196
  if (!a || !s)
23197
- return /* @__PURE__ */ c(Ze, { className: oe("gw-size-10 gw-rounded-full", e) });
23197
+ return /* @__PURE__ */ c(Ge, { className: oe("gw-size-10 gw-rounded-full", e) });
23198
23198
  let o = t || n?.picture || Ja(n?.evmWallet);
23199
23199
  return o.match(qA) && (o = o.replace("_normal.", ".")), /* @__PURE__ */ c(ve, { children: /* @__PURE__ */ c(
23200
23200
  "img",
@@ -23227,7 +23227,7 @@ const JA = ({ className: e, overrideUrl: t, overrideAlt: r }) => {
23227
23227
  p && "max-sm:gw-hidden",
23228
23228
  "gw-pl-1 gw-pr-2.5 gw-inline-flex gw-items-center"
23229
23229
  ),
23230
- children: /* @__PURE__ */ c(Ze, { className: "gw-w-16 gw-h-5 gw-inline-block" })
23230
+ children: /* @__PURE__ */ c(Ge, { className: "gw-w-16 gw-h-5 gw-inline-block" })
23231
23231
  }
23232
23232
  ) : /* @__PURE__ */ S("div", { className: oe(p && "max-sm:gw-hidden", "gw-pl-1 gw-pr-2.5"), children: [
23233
23233
  rn(
@@ -23245,9 +23245,9 @@ const JA = ({ className: e, overrideUrl: t, overrideAlt: r }) => {
23245
23245
  p && "max-sm:gw-hidden",
23246
23246
  "gw-pl-1 gw-pr-2.5 gw-inline-flex gw-items-center"
23247
23247
  ),
23248
- children: /* @__PURE__ */ c(Ze, { className: "gw-w-16 gw-h-5 gw-inline-block" })
23248
+ children: /* @__PURE__ */ c(Ge, { className: "gw-w-16 gw-h-5 gw-inline-block" })
23249
23249
  }
23250
- ) : /* @__PURE__ */ c("div", { className: oe(p && "max-sm:gw-hidden", "gw-pl-1 gw-pr-2.5"), children: Ge(
23250
+ ) : /* @__PURE__ */ c("div", { className: oe(p && "max-sm:gw-hidden", "gw-pl-1 gw-pr-2.5"), children: Ye(
23251
23251
  l?.tokens,
23252
23252
  l?.currency,
23253
23253
  u?.some((d) => BigInt(d.valueInWei) !== 0n)
@@ -23310,7 +23310,7 @@ const _A = Gt(
23310
23310
  children: s,
23311
23311
  iconNode: o,
23312
23312
  ...i
23313
- }, l) => ol(
23313
+ }, l) => il(
23314
23314
  "svg",
23315
23315
  {
23316
23316
  ref: l,
@@ -23324,7 +23324,7 @@ const _A = Gt(
23324
23324
  ...i
23325
23325
  },
23326
23326
  [
23327
- ...o.map(([u, p]) => ol(u, p)),
23327
+ ...o.map(([u, p]) => il(u, p)),
23328
23328
  ...Array.isArray(s) ? s : [s]
23329
23329
  ]
23330
23330
  )
@@ -23337,7 +23337,7 @@ const _A = Gt(
23337
23337
  */
23338
23338
  const ir = (e, t) => {
23339
23339
  const r = Gt(
23340
- ({ className: n, ...a }, s) => ol(_A, {
23340
+ ({ className: n, ...a }, s) => il(_A, {
23341
23341
  ref: s,
23342
23342
  iconNode: t,
23343
23343
  className: wm(
@@ -23577,7 +23577,7 @@ const du = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, uu = I1, x
23577
23577
  ] : u;
23578
23578
  }, []);
23579
23579
  return uu(e, o, l, r?.class, r?.className);
23580
- }, Jo = xk(
23580
+ }, Yo = xk(
23581
23581
  "gw-inline-flex gw-font-display gw-items-center gw-justify-center gw-ease-in-out gw-gap-2 gw-whitespace-nowrap gw-rounded-full gw-font-medium gw-ring-offset-background gw-transition focus-visible:gw-outline-none focus-visible:gw-ring-2 focus-visible:gw-ring-ring focus-visible:gw-ring-offset-2 disabled:gw-pointer-events-none disabled:gw-opacity-50 [&_svg]:gw-pointer-events-none [&_svg]:gw-size-4 [&_svg]:gw-shrink-0",
23582
23582
  {
23583
23583
  variants: {
@@ -23620,7 +23620,7 @@ const du = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, uu = I1, x
23620
23620
  ({ className: e, variant: t, size: r, shadow: n, scale: a, asChild: s = !1, ...o }, i) => /* @__PURE__ */ c(
23621
23621
  s ? fk : "button",
23622
23622
  {
23623
- className: oe(Jo({ variant: t, size: r, className: e, shadow: n, scale: a })),
23623
+ className: oe(Yo({ variant: t, size: r, className: e, shadow: n, scale: a })),
23624
23624
  ref: i,
23625
23625
  ...o
23626
23626
  }
@@ -23806,7 +23806,7 @@ var Rk = "DismissableLayer", Ul = "dismissableLayer.update", Fk = "dismissableLa
23806
23806
  layers: /* @__PURE__ */ new Set(),
23807
23807
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
23808
23808
  branches: /* @__PURE__ */ new Set()
23809
- }), Yo = B.forwardRef(
23809
+ }), Xo = B.forwardRef(
23810
23810
  (e, t) => {
23811
23811
  const {
23812
23812
  disableOutsidePointerEvents: r = !1,
@@ -23854,7 +23854,7 @@ var Rk = "DismissableLayer", Ul = "dismissableLayer.update", Fk = "dismissableLa
23854
23854
  );
23855
23855
  }
23856
23856
  );
23857
- Yo.displayName = Rk;
23857
+ Xo.displayName = Rk;
23858
23858
  var Vk = "DismissableLayerBranch", Wk = B.forwardRef((e, t) => {
23859
23859
  const r = B.useContext(vm), n = B.useRef(null), a = ft(t, n);
23860
23860
  return B.useEffect(() => {
@@ -23918,7 +23918,7 @@ function Am(e, t, r, { discrete: n }) {
23918
23918
  const a = r.originalEvent.target, s = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: r });
23919
23919
  t && a.addEventListener(e, t, { once: !0 }), n ? Nk(a, s) : a.dispatchEvent(s);
23920
23920
  }
23921
- var Fi = "focusScope.autoFocusOnMount", Mi = "focusScope.autoFocusOnUnmount", hu = { bubbles: !1, cancelable: !0 }, qk = "FocusScope", xc = B.forwardRef((e, t) => {
23921
+ var Mi = "focusScope.autoFocusOnMount", Vi = "focusScope.autoFocusOnUnmount", hu = { bubbles: !1, cancelable: !0 }, qk = "FocusScope", xc = B.forwardRef((e, t) => {
23922
23922
  const {
23923
23923
  loop: r = !1,
23924
23924
  trapped: n = !1,
@@ -23960,13 +23960,13 @@ var Fi = "focusScope.autoFocusOnMount", Mi = "focusScope.autoFocusOnUnmount", hu
23960
23960
  gu.add(f);
23961
23961
  const C = document.activeElement;
23962
23962
  if (!i.contains(C)) {
23963
- const x = new CustomEvent(Fi, hu);
23964
- i.addEventListener(Fi, u), i.dispatchEvent(x), x.defaultPrevented || (Kk(Qk(km(i)), { select: !0 }), document.activeElement === C && Hr(i));
23963
+ const x = new CustomEvent(Mi, hu);
23964
+ i.addEventListener(Mi, u), i.dispatchEvent(x), x.defaultPrevented || (Kk(Qk(km(i)), { select: !0 }), document.activeElement === C && Hr(i));
23965
23965
  }
23966
23966
  return () => {
23967
- i.removeEventListener(Fi, u), setTimeout(() => {
23968
- const x = new CustomEvent(Mi, hu);
23969
- i.addEventListener(Mi, p), i.dispatchEvent(x), x.defaultPrevented || Hr(C ?? document.body, { select: !0 }), i.removeEventListener(Mi, p), gu.remove(f);
23967
+ i.removeEventListener(Mi, u), setTimeout(() => {
23968
+ const x = new CustomEvent(Vi, hu);
23969
+ i.addEventListener(Vi, p), i.dispatchEvent(x), x.defaultPrevented || Hr(C ?? document.body, { select: !0 }), i.removeEventListener(Vi, p), gu.remove(f);
23970
23970
  }, 0);
23971
23971
  };
23972
23972
  }
@@ -24117,12 +24117,12 @@ function Xk(e) {
24117
24117
  let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, r = t && "isReactWarning" in t && t.isReactWarning;
24118
24118
  return r ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, r = t && "isReactWarning" in t && t.isReactWarning, r ? e.props.ref : e.props.ref || e.ref);
24119
24119
  }
24120
- var Vi = 0;
24120
+ var Wi = 0;
24121
24121
  function Sm() {
24122
24122
  B.useEffect(() => {
24123
24123
  const e = document.querySelectorAll("[data-radix-focus-guard]");
24124
- return document.body.insertAdjacentElement("afterbegin", e[0] ?? bu()), document.body.insertAdjacentElement("beforeend", e[1] ?? bu()), Vi++, () => {
24125
- Vi === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), Vi--;
24124
+ return document.body.insertAdjacentElement("afterbegin", e[0] ?? bu()), document.body.insertAdjacentElement("beforeend", e[1] ?? bu()), Wi++, () => {
24125
+ Wi === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), Wi--;
24126
24126
  };
24127
24127
  }, []);
24128
24128
  }
@@ -24152,8 +24152,8 @@ function Hk(e, t, r) {
24152
24152
  (s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
24153
24153
  return e.concat(s || Array.prototype.slice.call(t));
24154
24154
  }
24155
- var oo = "right-scroll-bar-position", io = "width-before-scroll-bar", jk = "with-scroll-bars-hidden", _k = "--removed-body-scroll-bar-size";
24156
- function Wi(e, t) {
24155
+ var io = "right-scroll-bar-position", lo = "width-before-scroll-bar", jk = "with-scroll-bars-hidden", _k = "--removed-body-scroll-bar-size";
24156
+ function Li(e, t) {
24157
24157
  return typeof e == "function" ? e(t) : e && (e.current = t), e;
24158
24158
  }
24159
24159
  function $k(e, t) {
@@ -24181,7 +24181,7 @@ var eS = typeof window < "u" ? B.useLayoutEffect : B.useEffect, yu = /* @__PURE_
24181
24181
  function tS(e, t) {
24182
24182
  var r = $k(null, function(n) {
24183
24183
  return e.forEach(function(a) {
24184
- return Wi(a, n);
24184
+ return Li(a, n);
24185
24185
  });
24186
24186
  });
24187
24187
  return eS(function() {
@@ -24189,9 +24189,9 @@ function tS(e, t) {
24189
24189
  if (n) {
24190
24190
  var a = new Set(n), s = new Set(e), o = r.current;
24191
24191
  a.forEach(function(i) {
24192
- s.has(i) || Wi(i, null);
24192
+ s.has(i) || Li(i, null);
24193
24193
  }), s.forEach(function(i) {
24194
- a.has(i) || Wi(i, o);
24194
+ a.has(i) || Li(i, o);
24195
24195
  });
24196
24196
  }
24197
24197
  yu.set(r, e);
@@ -24273,12 +24273,12 @@ Um.isSideCarExport = !0;
24273
24273
  function sS(e, t) {
24274
24274
  return e.useMedium(t), Um;
24275
24275
  }
24276
- var Im = aS(), Li = function() {
24277
- }, Xo = B.forwardRef(function(e, t) {
24276
+ var Im = aS(), Oi = function() {
24277
+ }, Ho = B.forwardRef(function(e, t) {
24278
24278
  var r = B.useRef(null), n = B.useState({
24279
- onScrollCapture: Li,
24280
- onWheelCapture: Li,
24281
- onTouchMoveCapture: Li
24279
+ onScrollCapture: Oi,
24280
+ onWheelCapture: Oi,
24281
+ onTouchMoveCapture: Oi
24282
24282
  }), a = n[0], s = n[1], o = e.forwardProps, i = e.children, l = e.className, u = e.removeScrollBar, p = e.enabled, d = e.shards, h = e.sideCar, f = e.noRelative, y = e.noIsolation, C = e.inert, b = e.allowPinchZoom, x = e.as, A = x === void 0 ? "div" : x, k = e.gapMode, v = Tm(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), N = h, R = tS([r, t]), U = mr(mr({}, v), a);
24283
24283
  return B.createElement(
24284
24284
  B.Fragment,
@@ -24287,14 +24287,14 @@ var Im = aS(), Li = function() {
24287
24287
  o ? B.cloneElement(B.Children.only(i), mr(mr({}, U), { ref: R })) : B.createElement(A, mr({}, U, { className: l, ref: R }), i)
24288
24288
  );
24289
24289
  });
24290
- Xo.defaultProps = {
24290
+ Ho.defaultProps = {
24291
24291
  enabled: !0,
24292
24292
  removeScrollBar: !0,
24293
24293
  inert: !1
24294
24294
  };
24295
- Xo.classNames = {
24296
- fullWidth: io,
24297
- zeroRight: oo
24295
+ Ho.classNames = {
24296
+ fullWidth: lo,
24297
+ zeroRight: io
24298
24298
  };
24299
24299
  var oS = function() {
24300
24300
  if (typeof __webpack_nonce__ < "u")
@@ -24345,11 +24345,11 @@ var dS = function() {
24345
24345
  top: 0,
24346
24346
  right: 0,
24347
24347
  gap: 0
24348
- }, Oi = function(e) {
24348
+ }, qi = function(e) {
24349
24349
  return parseInt(e || "", 10) || 0;
24350
24350
  }, mS = function(e) {
24351
24351
  var t = window.getComputedStyle(document.body), r = t[e === "padding" ? "paddingLeft" : "marginLeft"], n = t[e === "padding" ? "paddingTop" : "marginTop"], a = t[e === "padding" ? "paddingRight" : "marginRight"];
24352
- return [Oi(r), Oi(n), Oi(a)];
24352
+ return [qi(r), qi(n), qi(a)];
24353
24353
  }, hS = function(e) {
24354
24354
  if (e === void 0 && (e = "margin"), typeof window > "u")
24355
24355
  return pS;
@@ -24384,19 +24384,19 @@ var dS = function() {
24384
24384
  ].filter(Boolean).join(""), `
24385
24385
  }
24386
24386
 
24387
- .`).concat(oo, ` {
24387
+ .`).concat(io, ` {
24388
24388
  right: `).concat(i, "px ").concat(n, `;
24389
24389
  }
24390
24390
 
24391
- .`).concat(io, ` {
24391
+ .`).concat(lo, ` {
24392
24392
  margin-right: `).concat(i, "px ").concat(n, `;
24393
24393
  }
24394
24394
 
24395
- .`).concat(oo, " .").concat(oo, ` {
24395
+ .`).concat(io, " .").concat(io, ` {
24396
24396
  right: 0 `).concat(n, `;
24397
24397
  }
24398
24398
 
24399
- .`).concat(io, " .").concat(io, ` {
24399
+ .`).concat(lo, " .").concat(lo, ` {
24400
24400
  margin-right: 0 `).concat(n, `;
24401
24401
  }
24402
24402
 
@@ -24599,15 +24599,15 @@ function NS(e) {
24599
24599
  }
24600
24600
  const BS = sS(Im, IS);
24601
24601
  var vc = B.forwardRef(function(e, t) {
24602
- return B.createElement(Xo, mr({}, e, { ref: t, sideCar: BS }));
24602
+ return B.createElement(Ho, mr({}, e, { ref: t, sideCar: BS }));
24603
24603
  });
24604
- vc.classNames = Xo.classNames;
24604
+ vc.classNames = Ho.classNames;
24605
24605
  var RS = function(e) {
24606
24606
  if (typeof document > "u")
24607
24607
  return null;
24608
24608
  var t = Array.isArray(e) ? e[0] : e;
24609
24609
  return t.ownerDocument.body;
24610
- }, Mn = /* @__PURE__ */ new WeakMap(), Js = /* @__PURE__ */ new WeakMap(), Ys = {}, qi = 0, Mm = function(e) {
24610
+ }, Mn = /* @__PURE__ */ new WeakMap(), Js = /* @__PURE__ */ new WeakMap(), Ys = {}, Ki = 0, Mm = function(e) {
24611
24611
  return e && (e.host || Mm(e.parentNode));
24612
24612
  }, FS = function(e, t) {
24613
24613
  return t.map(function(r) {
@@ -24638,11 +24638,11 @@ var RS = function(e) {
24638
24638
  }
24639
24639
  });
24640
24640
  };
24641
- return p(t), i.clear(), qi++, function() {
24641
+ return p(t), i.clear(), Ki++, function() {
24642
24642
  o.forEach(function(d) {
24643
24643
  var h = Mn.get(d) - 1, f = s.get(d) - 1;
24644
24644
  Mn.set(d, h), s.set(d, f), h || (Js.has(d) || d.removeAttribute(n), Js.delete(d)), f || d.removeAttribute(r);
24645
- }), qi--, qi || (Mn = /* @__PURE__ */ new WeakMap(), Mn = /* @__PURE__ */ new WeakMap(), Js = /* @__PURE__ */ new WeakMap(), Ys = {});
24645
+ }), Ki--, Ki || (Mn = /* @__PURE__ */ new WeakMap(), Mn = /* @__PURE__ */ new WeakMap(), Js = /* @__PURE__ */ new WeakMap(), Ys = {});
24646
24646
  };
24647
24647
  }, Vm = function(e, t, r) {
24648
24648
  r === void 0 && (r = "data-aria-hidden");
@@ -24650,7 +24650,7 @@ var RS = function(e) {
24650
24650
  return a ? (n.push.apply(n, Array.from(a.querySelectorAll("[aria-live], script"))), MS(n, a, r, "aria-hidden")) : function() {
24651
24651
  return null;
24652
24652
  };
24653
- }, Ho = "Dialog", [Wm] = Un(Ho), [VS, lr] = Wm(Ho), Lm = (e) => {
24653
+ }, jo = "Dialog", [Wm] = Un(jo), [VS, lr] = Wm(jo), Lm = (e) => {
24654
24654
  const {
24655
24655
  __scopeDialog: t,
24656
24656
  children: r,
@@ -24662,7 +24662,7 @@ var RS = function(e) {
24662
24662
  prop: n,
24663
24663
  defaultProp: a ?? !1,
24664
24664
  onChange: s,
24665
- caller: Ho
24665
+ caller: jo
24666
24666
  });
24667
24667
  return /* @__PURE__ */ c(
24668
24668
  VS,
@@ -24681,7 +24681,7 @@ var RS = function(e) {
24681
24681
  }
24682
24682
  );
24683
24683
  };
24684
- Lm.displayName = Ho;
24684
+ Lm.displayName = jo;
24685
24685
  var Om = "DialogTrigger", qm = B.forwardRef(
24686
24686
  (e, t) => {
24687
24687
  const { __scopeDialog: r, ...n } = e, a = lr(Om, r), s = ft(t, a.triggerRef);
@@ -24708,16 +24708,16 @@ var Ac = "DialogPortal", [WS, Km] = Wm(Ac, {
24708
24708
  return /* @__PURE__ */ c(WS, { scope: t, forceMount: r, children: B.Children.map(n, (o) => /* @__PURE__ */ c(on, { present: r || s.open, children: /* @__PURE__ */ c(Ec, { asChild: !0, container: a, children: o }) })) });
24709
24709
  };
24710
24710
  zm.displayName = Ac;
24711
- var ho = "DialogOverlay", Dm = B.forwardRef(
24711
+ var fo = "DialogOverlay", Dm = B.forwardRef(
24712
24712
  (e, t) => {
24713
- const r = Km(ho, e.__scopeDialog), { forceMount: n = r.forceMount, ...a } = e, s = lr(ho, e.__scopeDialog);
24713
+ const r = Km(fo, e.__scopeDialog), { forceMount: n = r.forceMount, ...a } = e, s = lr(fo, e.__scopeDialog);
24714
24714
  return s.modal ? /* @__PURE__ */ c(on, { present: n || s.open, children: /* @__PURE__ */ c(OS, { ...a, ref: t }) }) : null;
24715
24715
  }
24716
24716
  );
24717
- Dm.displayName = ho;
24717
+ Dm.displayName = fo;
24718
24718
  var LS = /* @__PURE__ */ jn("DialogOverlay.RemoveScroll"), OS = B.forwardRef(
24719
24719
  (e, t) => {
24720
- const { __scopeDialog: r, ...n } = e, a = lr(ho, r);
24720
+ const { __scopeDialog: r, ...n } = e, a = lr(fo, r);
24721
24721
  return (
24722
24722
  // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
24723
24723
  // ie. when `Overlay` and `Content` are siblings
@@ -24800,7 +24800,7 @@ var qS = B.forwardRef(
24800
24800
  onMountAutoFocus: a,
24801
24801
  onUnmountAutoFocus: s,
24802
24802
  children: /* @__PURE__ */ c(
24803
- Yo,
24803
+ Xo,
24804
24804
  {
24805
24805
  role: "dialog",
24806
24806
  id: i.contentId,
@@ -24964,7 +24964,7 @@ function ku(...e) {
24964
24964
  typeof r == "function" && r(...t);
24965
24965
  };
24966
24966
  }
24967
- const Ki = typeof document < "u" && window.visualViewport;
24967
+ const zi = typeof document < "u" && window.visualViewport;
24968
24968
  function Su(e) {
24969
24969
  let t = window.getComputedStyle(e);
24970
24970
  return /(auto|scroll)/.test(t.overflow + t.overflowX + t.overflowY);
@@ -24985,13 +24985,13 @@ const _S = /* @__PURE__ */ new Set([
24985
24985
  "submit",
24986
24986
  "reset"
24987
24987
  ]);
24988
- let Xs = 0, zi;
24988
+ let Xs = 0, Di;
24989
24989
  function $S(e = {}) {
24990
24990
  let { isDisabled: t } = e;
24991
24991
  jS(() => {
24992
24992
  if (!t)
24993
- return Xs++, Xs === 1 && rh() && (zi = eT()), () => {
24994
- Xs--, Xs === 0 && zi?.();
24993
+ return Xs++, Xs === 1 && rh() && (Di = eT()), () => {
24994
+ Xs--, Xs === 0 && Di?.();
24995
24995
  };
24996
24996
  }, [
24997
24997
  t
@@ -25015,9 +25015,9 @@ function eT() {
25015
25015
  }, s = (d) => {
25016
25016
  let h = d.target;
25017
25017
  Nl(h) && (h.style.transform = "translateY(-2000px)", requestAnimationFrame(() => {
25018
- h.style.transform = "", Ki && (Ki.height < window.innerHeight ? requestAnimationFrame(() => {
25018
+ h.style.transform = "", zi && (zi.height < window.innerHeight ? requestAnimationFrame(() => {
25019
25019
  Tu(h);
25020
- }) : Ki.addEventListener("resize", () => Tu(h), {
25020
+ }) : zi.addEventListener("resize", () => Tu(h), {
25021
25021
  once: !0
25022
25022
  }));
25023
25023
  }));
@@ -25116,7 +25116,7 @@ function Hs(e, t) {
25116
25116
  function sT(e) {
25117
25117
  return 8 * (Math.log(e + 1) - 2);
25118
25118
  }
25119
- function Di(e, t) {
25119
+ function Gi(e, t) {
25120
25120
  if (!e) return () => {
25121
25121
  };
25122
25122
  const r = e.style.cssText;
@@ -25138,7 +25138,7 @@ const $e = {
25138
25138
  0,
25139
25139
  1
25140
25140
  ]
25141
- }, oh = 0.4, iT = 0.25, lT = 100, ih = 8, un = 16, Bl = 26, Gi = "vaul-dragging";
25141
+ }, oh = 0.4, iT = 0.25, lT = 100, ih = 8, un = 16, Bl = 26, Zi = "vaul-dragging";
25142
25142
  function lh(e) {
25143
25143
  const t = q.useRef(e);
25144
25144
  return q.useEffect(() => {
@@ -25334,15 +25334,15 @@ function pT() {
25334
25334
  s.current && clearTimeout(s.current);
25335
25335
  const l = document.querySelector("[data-vaul-drawer-wrapper]") || document.querySelector("[vaul-drawer-wrapper]");
25336
25336
  if (!l) return;
25337
- oT(n && !a ? Di(document.body, {
25337
+ oT(n && !a ? Gi(document.body, {
25338
25338
  background: "black"
25339
- }) : uT, Di(l, {
25339
+ }) : uT, Gi(l, {
25340
25340
  transformOrigin: lt(e) ? "top" : "left",
25341
25341
  transitionProperty: "transform, border-radius",
25342
25342
  transitionDuration: `${$e.DURATION}s`,
25343
25343
  transitionTimingFunction: `cubic-bezier(${$e.EASE.join(",")})`
25344
25344
  }));
25345
- const u = Di(l, {
25345
+ const u = Gi(l, {
25346
25346
  borderRadius: `${ih}px`,
25347
25347
  overflow: "hidden",
25348
25348
  ...lt(e) ? {
@@ -25509,11 +25509,11 @@ function hT({ open: e, onOpenChange: t, children: r, onDrag: n, onRelease: a, sn
25509
25509
  if (de.current && J) {
25510
25510
  const Be = v === "bottom" || v === "right" ? 1 : -1, We = (Ce.current - (lt(v) ? ue.pageY : ue.pageX)) * Be, Se = We > 0, He = s && !p && !Se;
25511
25511
  if (He && nt === 0) return;
25512
- const pe = Math.abs(We), Te = document.querySelector("[data-vaul-drawer-wrapper]"), Qe = v === "bottom" || v === "top" ? Wt.current : Qt.current;
25513
- let Pe = pe / Qe;
25512
+ const pe = Math.abs(We), Te = document.querySelector("[data-vaul-drawer-wrapper]"), Ze = v === "bottom" || v === "top" ? Wt.current : Qt.current;
25513
+ let Qe = pe / Ze;
25514
25514
  const Pt = se(pe, Se);
25515
- if (Pt !== null && (Pe = Pt), He && Pe >= 1 || !ae.current && !I(ue.target, Se)) return;
25516
- if (de.current.classList.add(Gi), ae.current = !0, ct(de.current, {
25515
+ if (Pt !== null && (Qe = Pt), He && Qe >= 1 || !ae.current && !I(ue.target, Se)) return;
25516
+ if (de.current.classList.add(Zi), ae.current = !0, ct(de.current, {
25517
25517
  transition: "none"
25518
25518
  }), ct(ee.current, {
25519
25519
  transition: "none"
@@ -25526,12 +25526,12 @@ function hT({ open: e, onOpenChange: t, children: r, onDrag: n, onRelease: a, sn
25526
25526
  });
25527
25527
  return;
25528
25528
  }
25529
- const ze = 1 - Pe;
25530
- if ((je || h && nt === h - 1) && (n?.(ue, Pe), ct(ee.current, {
25529
+ const ze = 1 - Qe;
25530
+ if ((je || h && nt === h - 1) && (n?.(ue, Qe), ct(ee.current, {
25531
25531
  opacity: `${ze}`,
25532
25532
  transition: "none"
25533
25533
  }, !0)), Te && ee.current && o) {
25534
- const _e = Math.min(g() + Pe * (1 - g()), 1), kr = 8 - Pe * 8, St = Math.max(0, 14 - Pe * 14);
25534
+ const _e = Math.min(g() + Qe * (1 - g()), 1), kr = 8 - Qe * 8, St = Math.max(0, 14 - Qe * 14);
25535
25535
  ct(Te, {
25536
25536
  borderRadius: `${kr}px`,
25537
25537
  transform: lt(v) ? `scale(${_e}) translate3d(0, ${St}px, 0)` : `scale(${_e}) translate3d(${St}px, 0, 0)`,
@@ -25559,17 +25559,17 @@ function hT({ open: e, onOpenChange: t, children: r, onDrag: n, onRelease: a, sn
25559
25559
  var Se;
25560
25560
  const He = ((Se = window.visualViewport) == null ? void 0 : Se.height) || 0, pe = window.innerHeight;
25561
25561
  let Te = pe - He;
25562
- const Qe = de.current.getBoundingClientRect().height || 0, Pe = Qe > pe * 0.8;
25563
- pt.current || (pt.current = Qe);
25562
+ const Ze = de.current.getBoundingClientRect().height || 0, Qe = Ze > pe * 0.8;
25563
+ pt.current || (pt.current = Ze);
25564
25564
  const Pt = de.current.getBoundingClientRect().top;
25565
25565
  if (Math.abs(ke.current - Te) > 60 && (Ne.current = !Ne.current), s && s.length > 0 && fe && nt) {
25566
25566
  const ze = fe[nt] || 0;
25567
25567
  Te += ze;
25568
25568
  }
25569
- if (ke.current = Te, Qe > He || Ne.current) {
25569
+ if (ke.current = Te, Ze > He || Ne.current) {
25570
25570
  const ze = de.current.getBoundingClientRect().height;
25571
25571
  let _e = ze;
25572
- ze > He && (_e = He - (Pe ? Pt : Bl)), C ? de.current.style.height = `${ze - Math.max(Te, 0)}px` : de.current.style.height = `${Math.max(_e, He - Pt)}px`;
25572
+ ze > He && (_e = He - (Qe ? Pt : Bl)), C ? de.current.style.height = `${ze - Math.max(Te, 0)}px` : de.current.style.height = `${Math.max(_e, He - Pt)}px`;
25573
25573
  } else PS() || (de.current.style.height = `${pt.current}px`);
25574
25574
  s && s.length > 0 && !Ne.current ? de.current.style.bottom = "0px" : de.current.style.bottom = `${Math.max(Te, 0)}px`;
25575
25575
  }
@@ -25613,11 +25613,11 @@ function hT({ open: e, onOpenChange: t, children: r, onDrag: n, onRelease: a, sn
25613
25613
  }, !0);
25614
25614
  }
25615
25615
  function be() {
25616
- !J || !de.current || (de.current.classList.remove(Gi), ae.current = !1, _(!1), ie.current = /* @__PURE__ */ new Date());
25616
+ !J || !de.current || (de.current.classList.remove(Zi), ae.current = !1, _(!1), ie.current = /* @__PURE__ */ new Date());
25617
25617
  }
25618
25618
  function qe(ue) {
25619
25619
  if (!J || !de.current) return;
25620
- de.current.classList.remove(Gi), ae.current = !1, _(!1), ie.current = /* @__PURE__ */ new Date();
25620
+ de.current.classList.remove(Zi), ae.current = !1, _(!1), ie.current = /* @__PURE__ */ new Date();
25621
25621
  const Be = Hs(de.current, v);
25622
25622
  if (!ue || !I(ue.target, !1) || !Be || Number.isNaN(Be) || P.current === null) return;
25623
25623
  const We = ie.current.getTime() - P.current.getTime(), Se = Ce.current - (lt(v) ? ue.pageY : ue.pageX), He = Math.abs(Se) / We;
@@ -25642,9 +25642,9 @@ function hT({ open: e, onOpenChange: t, children: r, onDrag: n, onRelease: a, sn
25642
25642
  }
25643
25643
  var pe;
25644
25644
  const Te = Math.min((pe = de.current.getBoundingClientRect().height) != null ? pe : 0, window.innerHeight);
25645
- var Qe;
25646
- const Pe = Math.min((Qe = de.current.getBoundingClientRect().width) != null ? Qe : 0, window.innerWidth), Pt = v === "left" || v === "right";
25647
- if (Math.abs(Be) >= (Pt ? Pe : Te) * l) {
25645
+ var Ze;
25646
+ const Qe = Math.min((Ze = de.current.getBoundingClientRect().width) != null ? Ze : 0, window.innerWidth), Pt = v === "left" || v === "right";
25647
+ if (Math.abs(Be) >= (Pt ? Qe : Te) * l) {
25648
25648
  K(), a?.(ue, !1);
25649
25649
  return;
25650
25650
  }
@@ -25957,7 +25957,7 @@ const ln = {
25957
25957
  className: oe("gw-text-sm gw-text-muted-foreground", e),
25958
25958
  ...t
25959
25959
  }
25960
- )), ST = ["top", "right", "bottom", "left"], nn = Math.min, Ot = Math.max, fo = Math.round, js = Math.floor, br = (e) => ({
25960
+ )), ST = ["top", "right", "bottom", "left"], nn = Math.min, Ot = Math.max, go = Math.round, js = Math.floor, br = (e) => ({
25961
25961
  x: e,
25962
25962
  y: e
25963
25963
  }), TT = {
@@ -25998,10 +25998,10 @@ function NT(e, t, r) {
25998
25998
  r === void 0 && (r = !1);
25999
25999
  const n = ua(e), a = Mc(e), s = Fc(a);
26000
26000
  let o = a === "x" ? n === (r ? "end" : "start") ? "right" : "left" : n === "start" ? "bottom" : "top";
26001
- return t.reference[s] > t.floating[s] && (o = go(o)), [o, go(o)];
26001
+ return t.reference[s] > t.floating[s] && (o = wo(o)), [o, wo(o)];
26002
26002
  }
26003
26003
  function BT(e) {
26004
- const t = go(e);
26004
+ const t = wo(e);
26005
26005
  return [Fl(e), t, Fl(t)];
26006
26006
  }
26007
26007
  function Fl(e) {
@@ -26025,7 +26025,7 @@ function VT(e, t, r, n) {
26025
26025
  let s = MT(Kr(e), r === "start", n);
26026
26026
  return a && (s = s.map((o) => o + "-" + a), t && (s = s.concat(s.map(Fl)))), s;
26027
26027
  }
26028
- function go(e) {
26028
+ function wo(e) {
26029
26029
  return e.replace(/left|right|bottom|top/g, (t) => TT[t]);
26030
26030
  }
26031
26031
  function WT(e) {
@@ -26045,7 +26045,7 @@ function mh(e) {
26045
26045
  left: e
26046
26046
  };
26047
26047
  }
26048
- function wo(e) {
26048
+ function bo(e) {
26049
26049
  const {
26050
26050
  x: t,
26051
26051
  y: r,
@@ -26188,7 +26188,7 @@ async function Xa(e, t) {
26188
26188
  elementContext: d = "floating",
26189
26189
  altBoundary: h = !1,
26190
26190
  padding: f = 0
26191
- } = qr(t, e), y = mh(f), b = i[h ? d === "floating" ? "reference" : "floating" : d], x = wo(await s.getClippingRect({
26191
+ } = qr(t, e), y = mh(f), b = i[h ? d === "floating" ? "reference" : "floating" : d], x = bo(await s.getClippingRect({
26192
26192
  element: (r = await (s.isElement == null ? void 0 : s.isElement(b))) == null || r ? b : b.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(i.floating)),
26193
26193
  boundary: u,
26194
26194
  rootBoundary: p,
@@ -26204,7 +26204,7 @@ async function Xa(e, t) {
26204
26204
  } : {
26205
26205
  x: 1,
26206
26206
  y: 1
26207
- }, N = wo(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
26207
+ }, N = bo(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
26208
26208
  elements: i,
26209
26209
  rect: A,
26210
26210
  offsetParent: k,
@@ -26278,7 +26278,7 @@ const OT = (e) => ({
26278
26278
  } = qr(e, t);
26279
26279
  if ((r = s.arrow) != null && r.alignmentOffset)
26280
26280
  return {};
26281
- const x = Kr(a), A = hr(i), k = Kr(i) === i, v = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), N = h || (k || !C ? [go(i)] : BT(i)), R = y !== "none";
26281
+ const x = Kr(a), A = hr(i), k = Kr(i) === i, v = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), N = h || (k || !C ? [wo(i)] : BT(i)), R = y !== "none";
26282
26282
  !h && R && N.push(...VT(i, C, y, v));
26283
26283
  const U = [i, ...N], L = await Xa(t, b), V = [];
26284
26284
  let X = ((n = s.flip) == null ? void 0 : n.overflows) || [];
@@ -26577,7 +26577,7 @@ const DT = function(e) {
26577
26577
  }
26578
26578
  };
26579
26579
  };
26580
- function jo() {
26580
+ function _o() {
26581
26581
  return typeof window < "u";
26582
26582
  }
26583
26583
  function pa(e) {
@@ -26592,16 +26592,16 @@ function vr(e) {
26592
26592
  return (t = (fh(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
26593
26593
  }
26594
26594
  function fh(e) {
26595
- return jo() ? e instanceof Node || e instanceof Dt(e).Node : !1;
26595
+ return _o() ? e instanceof Node || e instanceof Dt(e).Node : !1;
26596
26596
  }
26597
26597
  function ar(e) {
26598
- return jo() ? e instanceof Element || e instanceof Dt(e).Element : !1;
26598
+ return _o() ? e instanceof Element || e instanceof Dt(e).Element : !1;
26599
26599
  }
26600
26600
  function Er(e) {
26601
- return jo() ? e instanceof HTMLElement || e instanceof Dt(e).HTMLElement : !1;
26601
+ return _o() ? e instanceof HTMLElement || e instanceof Dt(e).HTMLElement : !1;
26602
26602
  }
26603
26603
  function Fu(e) {
26604
- return !jo() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Dt(e).ShadowRoot;
26604
+ return !_o() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Dt(e).ShadowRoot;
26605
26605
  }
26606
26606
  const PT = /* @__PURE__ */ new Set(["inline", "contents"]);
26607
26607
  function cs(e) {
@@ -26618,7 +26618,7 @@ function YT(e) {
26618
26618
  return JT.has(pa(e));
26619
26619
  }
26620
26620
  const XT = [":popover-open", ":modal"];
26621
- function _o(e) {
26621
+ function $o(e) {
26622
26622
  return XT.some((t) => {
26623
26623
  try {
26624
26624
  return e.matches(t);
@@ -26637,7 +26637,7 @@ function $T(e) {
26637
26637
  for (; Er(t) && !$n(t); ) {
26638
26638
  if (Vc(t))
26639
26639
  return t;
26640
- if (_o(t))
26640
+ if ($o(t))
26641
26641
  return null;
26642
26642
  t = an(t);
26643
26643
  }
@@ -26653,7 +26653,7 @@ function $n(e) {
26653
26653
  function sr(e) {
26654
26654
  return Dt(e).getComputedStyle(e);
26655
26655
  }
26656
- function $o(e) {
26656
+ function ei(e) {
26657
26657
  return ar(e) ? {
26658
26658
  scrollLeft: e.scrollLeft,
26659
26659
  scrollTop: e.scrollTop
@@ -26694,7 +26694,7 @@ function Ml(e) {
26694
26694
  function wh(e) {
26695
26695
  const t = sr(e);
26696
26696
  let r = parseFloat(t.width) || 0, n = parseFloat(t.height) || 0;
26697
- const a = Er(e), s = a ? e.offsetWidth : r, o = a ? e.offsetHeight : n, i = fo(r) !== s || fo(n) !== o;
26697
+ const a = Er(e), s = a ? e.offsetWidth : r, o = a ? e.offsetHeight : n, i = go(r) !== s || go(n) !== o;
26698
26698
  return i && (r = s, n = o), {
26699
26699
  width: r,
26700
26700
  height: n,
@@ -26713,7 +26713,7 @@ function Zn(e) {
26713
26713
  height: a,
26714
26714
  $: s
26715
26715
  } = wh(t);
26716
- let o = (s ? fo(r.width) : r.width) / n, i = (s ? fo(r.height) : r.height) / a;
26716
+ let o = (s ? go(r.width) : r.width) / n, i = (s ? go(r.height) : r.height) / a;
26717
26717
  return (!o || !Number.isFinite(o)) && (o = 1), (!i || !Number.isFinite(i)) && (i = 1), {
26718
26718
  x: o,
26719
26719
  y: i
@@ -26745,19 +26745,19 @@ function vn(e, t, r, n) {
26745
26745
  l *= b.x, u *= b.y, p *= b.x, d *= b.y, l += k, u += v, y = Dt(C), C = Ml(y);
26746
26746
  }
26747
26747
  }
26748
- return wo({
26748
+ return bo({
26749
26749
  width: p,
26750
26750
  height: d,
26751
26751
  x: l,
26752
26752
  y: u
26753
26753
  });
26754
26754
  }
26755
- function ei(e, t) {
26756
- const r = $o(e).scrollLeft;
26755
+ function ti(e, t) {
26756
+ const r = ei(e).scrollLeft;
26757
26757
  return t ? t.left + r : vn(vr(e)).left + r;
26758
26758
  }
26759
26759
  function yh(e, t) {
26760
- const r = e.getBoundingClientRect(), n = r.left + t.scrollLeft - ei(e, r), a = r.top + t.scrollTop;
26760
+ const r = e.getBoundingClientRect(), n = r.left + t.scrollLeft - ti(e, r), a = r.top + t.scrollTop;
26761
26761
  return {
26762
26762
  x: n,
26763
26763
  y: a
@@ -26770,7 +26770,7 @@ function nU(e) {
26770
26770
  offsetParent: n,
26771
26771
  strategy: a
26772
26772
  } = e;
26773
- const s = a === "fixed", o = vr(n), i = t ? _o(t.floating) : !1;
26773
+ const s = a === "fixed", o = vr(n), i = t ? $o(t.floating) : !1;
26774
26774
  if (n === o || i && s)
26775
26775
  return r;
26776
26776
  let l = {
@@ -26778,7 +26778,7 @@ function nU(e) {
26778
26778
  scrollTop: 0
26779
26779
  }, u = br(1);
26780
26780
  const p = br(0), d = Er(n);
26781
- if ((d || !d && !s) && ((pa(n) !== "body" || cs(o)) && (l = $o(n)), Er(n))) {
26781
+ if ((d || !d && !s) && ((pa(n) !== "body" || cs(o)) && (l = ei(n)), Er(n))) {
26782
26782
  const f = vn(n);
26783
26783
  u = Zn(n), p.x = f.x + n.clientLeft, p.y = f.y + n.clientTop;
26784
26784
  }
@@ -26794,8 +26794,8 @@ function aU(e) {
26794
26794
  return Array.from(e.getClientRects());
26795
26795
  }
26796
26796
  function sU(e) {
26797
- const t = vr(e), r = $o(e), n = e.ownerDocument.body, a = Ot(t.scrollWidth, t.clientWidth, n.scrollWidth, n.clientWidth), s = Ot(t.scrollHeight, t.clientHeight, n.scrollHeight, n.clientHeight);
26798
- let o = -r.scrollLeft + ei(e);
26797
+ const t = vr(e), r = ei(e), n = e.ownerDocument.body, a = Ot(t.scrollWidth, t.clientWidth, n.scrollWidth, n.clientWidth), s = Ot(t.scrollHeight, t.clientHeight, n.scrollHeight, n.clientHeight);
26798
+ let o = -r.scrollLeft + ti(e);
26799
26799
  const i = -r.scrollTop;
26800
26800
  return sr(n).direction === "rtl" && (o += Ot(t.clientWidth, n.clientWidth) - a), {
26801
26801
  width: a,
@@ -26813,7 +26813,7 @@ function oU(e, t) {
26813
26813
  const p = Wc();
26814
26814
  (!p || p && t === "fixed") && (i = a.offsetLeft, l = a.offsetTop);
26815
26815
  }
26816
- const u = ei(n);
26816
+ const u = ti(n);
26817
26817
  if (u <= 0) {
26818
26818
  const p = n.ownerDocument, d = p.body, h = getComputedStyle(d), f = p.compatMode === "CSS1Compat" && parseFloat(h.marginLeft) + parseFloat(h.marginRight) || 0, y = Math.abs(n.clientWidth - d.clientWidth - f);
26819
26819
  y <= Mu && (s -= y);
@@ -26852,7 +26852,7 @@ function Vu(e, t, r) {
26852
26852
  height: t.height
26853
26853
  };
26854
26854
  }
26855
- return wo(n);
26855
+ return bo(n);
26856
26856
  }
26857
26857
  function Ch(e, t) {
26858
26858
  const r = an(e);
@@ -26878,7 +26878,7 @@ function dU(e) {
26878
26878
  rootBoundary: n,
26879
26879
  strategy: a
26880
26880
  } = e;
26881
- const o = [...r === "clippingAncestors" ? _o(t) ? [] : cU(t, this._c) : [].concat(r), n], i = o[0], l = o.reduce((u, p) => {
26881
+ const o = [...r === "clippingAncestors" ? $o(t) ? [] : cU(t, this._c) : [].concat(r), n], i = o[0], l = o.reduce((u, p) => {
26882
26882
  const d = Vu(t, p, a);
26883
26883
  return u.top = Ot(d.top, u.top), u.right = nn(d.right, u.right), u.bottom = nn(d.bottom, u.bottom), u.left = Ot(d.left, u.left), u;
26884
26884
  }, Vu(t, i, a));
@@ -26907,10 +26907,10 @@ function pU(e, t, r) {
26907
26907
  };
26908
26908
  const l = br(0);
26909
26909
  function u() {
26910
- l.x = ei(a);
26910
+ l.x = ti(a);
26911
26911
  }
26912
26912
  if (n || !n && !s)
26913
- if ((pa(t) !== "body" || cs(a)) && (i = $o(t)), n) {
26913
+ if ((pa(t) !== "body" || cs(a)) && (i = ei(t)), n) {
26914
26914
  const f = vn(t, !0, s, t);
26915
26915
  l.x = f.x + t.clientLeft, l.y = f.y + t.clientTop;
26916
26916
  } else a && u();
@@ -26923,7 +26923,7 @@ function pU(e, t, r) {
26923
26923
  height: o.height
26924
26924
  };
26925
26925
  }
26926
- function Zi(e) {
26926
+ function Qi(e) {
26927
26927
  return sr(e).position === "static";
26928
26928
  }
26929
26929
  function Wu(e, t) {
@@ -26936,21 +26936,21 @@ function Wu(e, t) {
26936
26936
  }
26937
26937
  function xh(e, t) {
26938
26938
  const r = Dt(e);
26939
- if (_o(e))
26939
+ if ($o(e))
26940
26940
  return r;
26941
26941
  if (!Er(e)) {
26942
26942
  let a = an(e);
26943
26943
  for (; a && !$n(a); ) {
26944
- if (ar(a) && !Zi(a))
26944
+ if (ar(a) && !Qi(a))
26945
26945
  return a;
26946
26946
  a = an(a);
26947
26947
  }
26948
26948
  return r;
26949
26949
  }
26950
26950
  let n = Wu(e, t);
26951
- for (; n && YT(n) && Zi(n); )
26951
+ for (; n && YT(n) && Qi(n); )
26952
26952
  n = Wu(n, t);
26953
- return n && $n(n) && Zi(n) && !Vc(n) ? r : n || $T(e) || r;
26953
+ return n && $n(n) && Qi(n) && !Vc(n) ? r : n || $T(e) || r;
26954
26954
  }
26955
26955
  const mU = async function(e) {
26956
26956
  const t = this.getOffsetParent || xh, r = this.getDimensions, n = await r(e.floating);
@@ -27078,8 +27078,8 @@ const bU = DT, yU = GT, CU = qT, xU = QT, EU = KT, Lu = OT, vU = ZT, AU = (e, t,
27078
27078
  });
27079
27079
  };
27080
27080
  var kU = typeof document < "u", SU = function() {
27081
- }, lo = kU ? Ep : SU;
27082
- function bo(e, t) {
27081
+ }, co = kU ? Ep : SU;
27082
+ function yo(e, t) {
27083
27083
  if (e === t)
27084
27084
  return !0;
27085
27085
  if (typeof e != typeof t)
@@ -27091,7 +27091,7 @@ function bo(e, t) {
27091
27091
  if (Array.isArray(e)) {
27092
27092
  if (r = e.length, r !== t.length) return !1;
27093
27093
  for (n = r; n-- !== 0; )
27094
- if (!bo(e[n], t[n]))
27094
+ if (!yo(e[n], t[n]))
27095
27095
  return !1;
27096
27096
  return !0;
27097
27097
  }
@@ -27102,7 +27102,7 @@ function bo(e, t) {
27102
27102
  return !1;
27103
27103
  for (n = r; n-- !== 0; ) {
27104
27104
  const s = a[n];
27105
- if (!(s === "_owner" && e.$$typeof) && !bo(e[s], t[s]))
27105
+ if (!(s === "_owner" && e.$$typeof) && !yo(e[s], t[s]))
27106
27106
  return !1;
27107
27107
  }
27108
27108
  return !0;
@@ -27116,9 +27116,9 @@ function Ou(e, t) {
27116
27116
  const r = vh(e);
27117
27117
  return Math.round(t * r) / r;
27118
27118
  }
27119
- function Qi(e) {
27119
+ function Pi(e) {
27120
27120
  const t = B.useRef(e);
27121
- return lo(() => {
27121
+ return co(() => {
27122
27122
  t.current = e;
27123
27123
  }), t;
27124
27124
  }
@@ -27144,12 +27144,12 @@ function TU(e) {
27144
27144
  middlewareData: {},
27145
27145
  isPositioned: !1
27146
27146
  }), [h, f] = B.useState(n);
27147
- bo(h, n) || f(n);
27147
+ yo(h, n) || f(n);
27148
27148
  const [y, C] = B.useState(null), [b, x] = B.useState(null), A = B.useCallback((G) => {
27149
27149
  G !== R.current && (R.current = G, C(G));
27150
27150
  }, []), k = B.useCallback((G) => {
27151
27151
  G !== U.current && (U.current = G, x(G));
27152
- }, []), v = s || y, N = o || b, R = B.useRef(null), U = B.useRef(null), L = B.useRef(p), V = l != null, X = Qi(l), Q = Qi(a), Z = Qi(u), T = B.useCallback(() => {
27152
+ }, []), v = s || y, N = o || b, R = B.useRef(null), U = B.useRef(null), L = B.useRef(p), V = l != null, X = Pi(l), Q = Pi(a), Z = Pi(u), T = B.useCallback(() => {
27153
27153
  if (!R.current || !U.current)
27154
27154
  return;
27155
27155
  const G = {
@@ -27166,21 +27166,21 @@ function TU(e) {
27166
27166
  // setting it to `true` when `open === false` (must be specified).
27167
27167
  isPositioned: Z.current !== !1
27168
27168
  };
27169
- M.current && !bo(L.current, _) && (L.current = _, Sp.flushSync(() => {
27169
+ M.current && !yo(L.current, _) && (L.current = _, Sp.flushSync(() => {
27170
27170
  d(_);
27171
27171
  }));
27172
27172
  });
27173
27173
  }, [h, t, r, Q, Z]);
27174
- lo(() => {
27174
+ co(() => {
27175
27175
  u === !1 && L.current.isPositioned && (L.current.isPositioned = !1, d((G) => ({
27176
27176
  ...G,
27177
27177
  isPositioned: !1
27178
27178
  })));
27179
27179
  }, [u]);
27180
27180
  const M = B.useRef(!1);
27181
- lo(() => (M.current = !0, () => {
27181
+ co(() => (M.current = !0, () => {
27182
27182
  M.current = !1;
27183
- }), []), lo(() => {
27183
+ }), []), co(() => {
27184
27184
  if (v && (R.current = v), N && (U.current = N), v && N) {
27185
27185
  if (X.current)
27186
27186
  return X.current(v, N, T);
@@ -27306,7 +27306,7 @@ function OU(e) {
27306
27306
  r(void 0);
27307
27307
  }, [e]), t;
27308
27308
  }
27309
- var Oc = "Popper", [kh, ti] = Un(Oc), [qU, Sh] = kh(Oc), Th = (e) => {
27309
+ var Oc = "Popper", [kh, ri] = Un(Oc), [qU, Sh] = kh(Oc), Th = (e) => {
27310
27310
  const { __scopePopper: t, children: r } = e, [n, a] = B.useState(null);
27311
27311
  return /* @__PURE__ */ c(qU, { scope: t, anchor: n, onAnchorChange: a, children: r });
27312
27312
  };
@@ -27502,9 +27502,9 @@ function Fh(e) {
27502
27502
  const [t, r = "center"] = e.split("-");
27503
27503
  return [t, r];
27504
27504
  }
27505
- var Mh = Th, Kc = Ih, Vh = Nh, Wh = Rh, ri = "Popover", [Lh] = Un(ri, [
27506
- ti
27507
- ]), ds = ti(), [QU, cn] = Lh(ri), Oh = (e) => {
27505
+ var Mh = Th, Kc = Ih, Vh = Nh, Wh = Rh, ni = "Popover", [Lh] = Un(ni, [
27506
+ ri
27507
+ ]), ds = ri(), [QU, cn] = Lh(ni), Oh = (e) => {
27508
27508
  const {
27509
27509
  __scopePopover: t,
27510
27510
  children: r,
@@ -27516,7 +27516,7 @@ var Mh = Th, Kc = Ih, Vh = Nh, Wh = Rh, ri = "Popover", [Lh] = Un(ri, [
27516
27516
  prop: n,
27517
27517
  defaultProp: a ?? !1,
27518
27518
  onChange: s,
27519
- caller: ri
27519
+ caller: ni
27520
27520
  });
27521
27521
  return /* @__PURE__ */ c(Mh, { ...i, children: /* @__PURE__ */ c(
27522
27522
  QU,
@@ -27535,7 +27535,7 @@ var Mh = Th, Kc = Ih, Vh = Nh, Wh = Rh, ri = "Popover", [Lh] = Un(ri, [
27535
27535
  }
27536
27536
  ) });
27537
27537
  };
27538
- Oh.displayName = ri;
27538
+ Oh.displayName = ni;
27539
27539
  var qh = "PopoverAnchor", PU = B.forwardRef(
27540
27540
  (e, t) => {
27541
27541
  const { __scopePopover: r, ...n } = e, a = cn(qh, r), s = ds(r), { onCustomAnchorAdd: o, onCustomAnchorRemove: i } = a;
@@ -27652,7 +27652,7 @@ var XU = /* @__PURE__ */ jn("PopoverContent.RemoveScroll"), HU = B.forwardRef(
27652
27652
  onMountAutoFocus: a,
27653
27653
  onUnmountAutoFocus: s,
27654
27654
  children: /* @__PURE__ */ c(
27655
- Yo,
27655
+ Xo,
27656
27656
  {
27657
27657
  asChild: !0,
27658
27658
  disableOutsidePointerEvents: o,
@@ -28024,7 +28024,7 @@ const RI = (e) => {
28024
28024
  ]), g = q.useMemo(() => d.duration || Z || qu, [
28025
28025
  d.duration,
28026
28026
  Z
28027
- ]), w = q.useRef(0), I = q.useRef(0), W = q.useRef(0), K = q.useRef(null), [Y, be] = T.split("-"), qe = q.useMemo(() => b.reduce((pe, Te, Qe) => Qe >= se ? pe : pe + Te.height, 0), [
28027
+ ]), w = q.useRef(0), I = q.useRef(0), W = q.useRef(0), K = q.useRef(null), [Y, be] = T.split("-"), qe = q.useMemo(() => b.reduce((pe, Te, Ze) => Ze >= se ? pe : pe + Te.height, 0), [
28028
28028
  b,
28029
28029
  se
28030
28030
  ]), Re = wI(), Ke = d.invert || p, Ie = ne === "loading";
@@ -28041,14 +28041,14 @@ const RI = (e) => {
28041
28041
  const pe = ht.current;
28042
28042
  if (pe) {
28043
28043
  const Te = pe.getBoundingClientRect().height;
28044
- return Qt(Te), y((Qe) => [
28044
+ return Qt(Te), y((Ze) => [
28045
28045
  {
28046
28046
  toastId: d.id,
28047
28047
  height: Te,
28048
28048
  position: d.position
28049
28049
  },
28050
- ...Qe
28051
- ]), () => y((Qe) => Qe.filter((Pe) => Pe.toastId !== d.id));
28050
+ ...Ze
28051
+ ]), () => y((Ze) => Ze.filter((Qe) => Qe.toastId !== d.id));
28052
28052
  }
28053
28053
  }, [
28054
28054
  y,
@@ -28057,17 +28057,17 @@ const RI = (e) => {
28057
28057
  if (!ee) return;
28058
28058
  const pe = ht.current, Te = pe.style.height;
28059
28059
  pe.style.height = "auto";
28060
- const Qe = pe.getBoundingClientRect().height;
28061
- pe.style.height = Te, Qt(Qe), y((Pe) => Pe.find((ze) => ze.toastId === d.id) ? Pe.map((ze) => ze.toastId === d.id ? {
28060
+ const Ze = pe.getBoundingClientRect().height;
28061
+ pe.style.height = Te, Qt(Ze), y((Qe) => Qe.find((ze) => ze.toastId === d.id) ? Qe.map((ze) => ze.toastId === d.id ? {
28062
28062
  ...ze,
28063
- height: Qe
28063
+ height: Ze
28064
28064
  } : ze) : [
28065
28065
  {
28066
28066
  toastId: d.id,
28067
- height: Qe,
28067
+ height: Ze,
28068
28068
  position: d.position
28069
28069
  },
28070
- ...Pe
28070
+ ...Qe
28071
28071
  ]);
28072
28072
  }, [
28073
28073
  ee,
@@ -28094,8 +28094,8 @@ const RI = (e) => {
28094
28094
  let pe;
28095
28095
  return k || f || Re ? (() => {
28096
28096
  if (W.current < w.current) {
28097
- const Pe = (/* @__PURE__ */ new Date()).getTime() - w.current;
28098
- pt.current = pt.current - Pe;
28097
+ const Qe = (/* @__PURE__ */ new Date()).getTime() - w.current;
28098
+ pt.current = pt.current - Qe;
28099
28099
  }
28100
28100
  W.current = (/* @__PURE__ */ new Date()).getTime();
28101
28101
  })() : (() => {
@@ -28175,12 +28175,12 @@ const RI = (e) => {
28175
28175
  })));
28176
28176
  },
28177
28177
  onPointerUp: () => {
28178
- var pe, Te, Qe;
28178
+ var pe, Te, Ze;
28179
28179
  if (me || !fe) return;
28180
28180
  K.current = null;
28181
- const Pe = Number(((pe = ht.current) == null ? void 0 : pe.style.getPropertyValue("--swipe-amount-x").replace("px", "")) || 0), Pt = Number(((Te = ht.current) == null ? void 0 : Te.style.getPropertyValue("--swipe-amount-y").replace("px", "")) || 0), ze = (/* @__PURE__ */ new Date()).getTime() - ((Qe = Xt.current) == null ? void 0 : Qe.getTime()), _e = J === "x" ? Pe : Pt, kr = Math.abs(_e) / ze;
28181
+ const Qe = Number(((pe = ht.current) == null ? void 0 : pe.style.getPropertyValue("--swipe-amount-x").replace("px", "")) || 0), Pt = Number(((Te = ht.current) == null ? void 0 : Te.style.getPropertyValue("--swipe-amount-y").replace("px", "")) || 0), ze = (/* @__PURE__ */ new Date()).getTime() - ((Ze = Xt.current) == null ? void 0 : Ze.getTime()), _e = J === "x" ? Qe : Pt, kr = Math.abs(_e) / ze;
28182
28182
  if (Math.abs(_e) >= II || kr > 0.11) {
28183
- de(I.current), d.onDismiss == null || d.onDismiss.call(d, d), te(J === "x" ? Pe > 0 ? "right" : "left" : Pt > 0 ? "down" : "up"), ue(), Ce(!0);
28183
+ de(I.current), d.onDismiss == null || d.onDismiss.call(d, d), te(J === "x" ? Qe > 0 ? "right" : "left" : Pt > 0 ? "down" : "up"), ue(), Ce(!0);
28184
28184
  return;
28185
28185
  } else {
28186
28186
  var St, Ht;
@@ -28189,7 +28189,7 @@ const RI = (e) => {
28189
28189
  Ve(!1), ae(!1), _(null);
28190
28190
  },
28191
28191
  onPointerMove: (pe) => {
28192
- var Te, Qe, Pe;
28192
+ var Te, Ze, Qe;
28193
28193
  if (!K.current || !fe || ((Te = window.getSelection()) == null ? void 0 : Te.toString().length) > 0) return;
28194
28194
  const ze = pe.clientY - K.current.y, _e = pe.clientX - K.current.x;
28195
28195
  var kr;
@@ -28215,7 +28215,7 @@ const RI = (e) => {
28215
28215
  const dn = _e * md(_e);
28216
28216
  Ht.x = Math.abs(dn) < Math.abs(_e) ? dn : _e;
28217
28217
  }
28218
- (Math.abs(Ht.x) > 0 || Math.abs(Ht.y) > 0) && Ve(!0), (Qe = ht.current) == null || Qe.style.setProperty("--swipe-amount-x", `${Ht.x}px`), (Pe = ht.current) == null || Pe.style.setProperty("--swipe-amount-y", `${Ht.y}px`);
28218
+ (Math.abs(Ht.x) > 0 || Math.abs(Ht.y) > 0) && Ve(!0), (Ze = ht.current) == null || Ze.style.setProperty("--swipe-amount-x", `${Ht.x}px`), (Qe = ht.current) == null || Qe.style.setProperty("--swipe-amount-y", `${Ht.y}px`);
28219
28219
  }
28220
28220
  }, E && !d.jsx && ne !== "loading" ? /* @__PURE__ */ q.createElement("button", {
28221
28221
  "aria-label": G,
@@ -28533,7 +28533,7 @@ function LI(e, t, r) {
28533
28533
  }
28534
28534
  return C.cancel = y, C;
28535
28535
  }
28536
- function ni(e, t, r) {
28536
+ function ai(e, t, r) {
28537
28537
  var n = {}, a = n.atBegin, s = a === void 0 ? !1 : a;
28538
28538
  return LI(e, t, {
28539
28539
  debounceMode: s !== !1
@@ -28548,7 +28548,7 @@ function Zr() {
28548
28548
  if (!e) throw new Error("glyph hooks must be used within GlyphProvider");
28549
28549
  return { glyphApiFetch: e.apiFetch };
28550
28550
  }
28551
- let Pi = null;
28551
+ let Ji = null;
28552
28552
  function qI() {
28553
28553
  const { glyphApiFetch: e } = Zr(), t = Vt(), r = tt(
28554
28554
  async (o) => {
@@ -28564,9 +28564,9 @@ function qI() {
28564
28564
  [e]
28565
28565
  ), n = tt(
28566
28566
  async (o, i, l, u, p) => {
28567
- if (p && Pi?.abort?.(), !e) return { quote: null, ok: !1, error: "Glyph API not ready" };
28568
- Pi = new AbortController();
28569
- const d = Pi.signal, h = await e("/api/widget/onramp/quote", {
28567
+ if (p && Ji?.abort?.(), !e) return { quote: null, ok: !1, error: "Glyph API not ready" };
28568
+ Ji = new AbortController();
28569
+ const d = Ji.signal, h = await e("/api/widget/onramp/quote", {
28570
28570
  method: "POST",
28571
28571
  body: JSON.stringify({ chainId: t, amount: o, currency: i, country: l, subdivision: u }),
28572
28572
  headers: { "Content-Type": "application/json" },
@@ -28612,13 +28612,13 @@ function ZI() {
28612
28612
  const P = typeof H == "string" ? H : H(l);
28613
28613
  if (u(P), P && Number(P) < h) {
28614
28614
  x(
28615
- `Minimum funding amount for your location is ${Ge(h, p)}.`
28615
+ `Minimum funding amount for your location is ${Ye(h, p)}.`
28616
28616
  );
28617
28617
  return;
28618
28618
  }
28619
28619
  if (P && Number(P) > y) {
28620
28620
  x(
28621
- `Maximum funding amount for your location is ${Ge(y, p)}.`
28621
+ `Maximum funding amount for your location is ${Ye(y, p)}.`
28622
28622
  );
28623
28623
  return;
28624
28624
  }
@@ -28626,7 +28626,7 @@ function ZI() {
28626
28626
  },
28627
28627
  [l, h, y, p]
28628
28628
  ), z = Fe(
28629
- () => ni(1500, async (H) => {
28629
+ () => ai(1500, async (H) => {
28630
28630
  try {
28631
28631
  N(!0);
28632
28632
  const P = await s(H, p, e.country, e?.subdivision, !0);
@@ -28704,7 +28704,7 @@ function ZI() {
28704
28704
  );
28705
28705
  return () => clearInterval(H);
28706
28706
  }, [R, L, _]);
28707
- const j = !e?.isOnrampEnabled, te = n !== Vo.id, ee = j ? GI : null;
28707
+ const j = !e?.isOnrampEnabled, te = n !== Wo.id, ee = j ? GI : null;
28708
28708
  return {
28709
28709
  userCurrency: p,
28710
28710
  fundMinAmount: h,
@@ -28734,11 +28734,11 @@ function Du(e, t, r) {
28734
28734
  }
28735
28735
  return n;
28736
28736
  }
28737
- function yo(e, t) {
28737
+ function Co(e, t) {
28738
28738
  let r = e;
28739
28739
  return r.match(/^0+[.,]/) && (r = r.replace(/^0+/, "0")), r.match(/^0[0-9]+/) && (r = r.replace(/^0+/, "")), r = Du(r, ".", t), r = Du(r, ",", t), r;
28740
28740
  }
28741
- function ai(e) {
28741
+ function si(e) {
28742
28742
  return /* @__PURE__ */ S("svg", { width: "175", height: "175", viewBox: "0 0 175 175", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
28743
28743
  /* @__PURE__ */ c("circle", { cx: "87.5", cy: "87.5", r: "87.5", fill: "#929792" }),
28744
28744
  /* @__PURE__ */ c("g", { clipPath: "url(#clip0_4594_16001)", filter: "url(#filter0_d_4594_16001)", children: /* @__PURE__ */ c("g", { filter: "url(#filter1_d_4594_16001)", children: /* @__PURE__ */ c(
@@ -28836,7 +28836,7 @@ function ja({ className: e }) {
28836
28836
  alt: n?.symbol,
28837
28837
  className: oe("gw-size-6 gw-rounded-full gw-object-cover", e)
28838
28838
  }
28839
- ) : /* @__PURE__ */ c(ai, { className: oe("gw-size-6", e) });
28839
+ ) : /* @__PURE__ */ c(si, { className: oe("gw-size-6", e) });
28840
28840
  }
28841
28841
  function QI(e) {
28842
28842
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
@@ -28903,8 +28903,8 @@ const HI = ({ text: e, textToCopy: t, className: r, textClassName: n, iconClassN
28903
28903
  ]
28904
28904
  }
28905
28905
  );
28906
- }, An = gt(HI), Ji = ({ className: e }) => /* @__PURE__ */ c(ik, { className: oe("gw-size-6 gw-text-brand-gray-700", e) }), jI = ({ fullScreenHeader: e, onProfileClick: t }) => {
28907
- const { user: r, setFetchForAllNetworks: n, fetchForAllNetworks: a } = Me(), { iconMap: s } = QA(), o = Ap(), i = Vt(), { switchChainAsync: l } = Hl(), [u, p] = re([]), [d, h] = re(!1), f = To(null), y = Fe(() => a ? /* @__PURE__ */ c(Ji, {}) : /* @__PURE__ */ c("img", { src: s.get(i), className: "gw-size-6 gw-rounded-full gw-object-cover" }), [s, i, a]);
28906
+ }, An = gt(HI), Yi = ({ className: e }) => /* @__PURE__ */ c(ik, { className: oe("gw-size-6 gw-text-brand-gray-700", e) }), jI = ({ fullScreenHeader: e, onProfileClick: t }) => {
28907
+ const { user: r, setFetchForAllNetworks: n, fetchForAllNetworks: a } = Me(), { iconMap: s } = QA(), o = Ap(), i = Vt(), { switchChainAsync: l } = Hl(), [u, p] = re([]), [d, h] = re(!1), f = Uo(null), y = Fe(() => a ? /* @__PURE__ */ c(Yi, {}) : /* @__PURE__ */ c("img", { src: s.get(i), className: "gw-size-6 gw-rounded-full gw-object-cover" }), [s, i, a]);
28908
28908
  return xe(() => {
28909
28909
  p(o.slice().sort((C, b) => (C.id === i ? -1 : 1) - (b.id === i ? -1 : 1)));
28910
28910
  }, [o, i]), xe(() => {
@@ -28945,14 +28945,14 @@ const HI = ({ text: e, textToCopy: t, className: r, textClassName: n, iconClassN
28945
28945
  ) })
28946
28946
  ] })
28947
28947
  ] }),
28948
- o?.length === 1 ? y ?? /* @__PURE__ */ c(Ze, { className: "gw-size-6 gw-rounded-full" }) : /* @__PURE__ */ S("div", { className: "gw-relative", ref: f, children: [
28948
+ o?.length === 1 ? y ?? /* @__PURE__ */ c(Ge, { className: "gw-size-6 gw-rounded-full" }) : /* @__PURE__ */ S("div", { className: "gw-relative", ref: f, children: [
28949
28949
  /* @__PURE__ */ S(
28950
28950
  "button",
28951
28951
  {
28952
28952
  onClick: () => h(!d),
28953
28953
  className: "gw-rounded-full gw-shadow-buttonMd gw-px-0.5 gw-py-0.5 gw-h-auto gw-w-auto gw-min-w-0 !gw-ring-0 gw-flex gw-items-center gw-space-x-1 gw-bg-white",
28954
28954
  children: [
28955
- /* @__PURE__ */ c("div", { className: "gw-mx-1 gw-my-1", children: y ?? /* @__PURE__ */ c(Ze, { className: "gw-size-6 gw-rounded-full" }) }),
28955
+ /* @__PURE__ */ c("div", { className: "gw-mx-1 gw-my-1", children: y ?? /* @__PURE__ */ c(Ge, { className: "gw-size-6 gw-rounded-full" }) }),
28956
28956
  /* @__PURE__ */ c(Cc, { className: "gw-size-4 gw-text-gray-500" })
28957
28957
  ]
28958
28958
  }
@@ -28969,7 +28969,7 @@ const HI = ({ text: e, textToCopy: t, className: r, textClassName: n, iconClassN
28969
28969
  a ? "gw-bg-green-500/15" : "hover:gw-bg-gray-50"
28970
28970
  ),
28971
28971
  children: [
28972
- /* @__PURE__ */ c("div", { className: "gw-mx-1 gw-my-1", children: /* @__PURE__ */ c(Ji, {}) }),
28972
+ /* @__PURE__ */ c("div", { className: "gw-mx-1 gw-my-1", children: /* @__PURE__ */ c(Yi, {}) }),
28973
28973
  /* @__PURE__ */ c("span", { className: oe("gw-text-sm", a && "!gw-font-bold"), children: "All Supported Chains" })
28974
28974
  ]
28975
28975
  },
@@ -28983,7 +28983,7 @@ const HI = ({ text: e, textToCopy: t, className: r, textClassName: n, iconClassN
28983
28983
  alt: C.name,
28984
28984
  className: "gw-size-6 gw-rounded-full gw-object-cover"
28985
28985
  }
28986
- ) : /* @__PURE__ */ c(Ji, {});
28986
+ ) : /* @__PURE__ */ c(Yi, {});
28987
28987
  return /* @__PURE__ */ S(
28988
28988
  "button",
28989
28989
  {
@@ -29059,9 +29059,9 @@ var $I = Object.freeze({
29059
29059
  )
29060
29060
  );
29061
29061
  Jh.displayName = eN;
29062
- var tN = Jh, [si] = Un("Tooltip", [
29063
- ti
29064
- ]), oi = ti(), Yh = "TooltipProvider", rN = 700, Wl = "tooltip.open", [nN, Dc] = si(Yh), Xh = (e) => {
29062
+ var tN = Jh, [oi] = Un("Tooltip", [
29063
+ ri
29064
+ ]), ii = ri(), Yh = "TooltipProvider", rN = 700, Wl = "tooltip.open", [nN, Dc] = oi(Yh), Xh = (e) => {
29065
29065
  const {
29066
29066
  __scopeTooltip: t,
29067
29067
  delayDuration: r = rN,
@@ -29097,7 +29097,7 @@ var tN = Jh, [si] = Un("Tooltip", [
29097
29097
  );
29098
29098
  };
29099
29099
  Xh.displayName = Yh;
29100
- var _a = "Tooltip", [aN, ii] = si(_a), Hh = (e) => {
29100
+ var _a = "Tooltip", [aN, li] = oi(_a), Hh = (e) => {
29101
29101
  const {
29102
29102
  __scopeTooltip: t,
29103
29103
  children: r,
@@ -29106,7 +29106,7 @@ var _a = "Tooltip", [aN, ii] = si(_a), Hh = (e) => {
29106
29106
  onOpenChange: s,
29107
29107
  disableHoverableContent: o,
29108
29108
  delayDuration: i
29109
- } = e, l = Dc(_a, e.__scopeTooltip), u = oi(t), [p, d] = B.useState(null), h = bn(), f = B.useRef(0), y = o ?? l.disableHoverableContent, C = i ?? l.delayDuration, b = B.useRef(!1), [x, A] = da({
29109
+ } = e, l = Dc(_a, e.__scopeTooltip), u = ii(t), [p, d] = B.useState(null), h = bn(), f = B.useRef(0), y = o ?? l.disableHoverableContent, C = i ?? l.delayDuration, b = B.useRef(!1), [x, A] = da({
29110
29110
  prop: n,
29111
29111
  defaultProp: a ?? !1,
29112
29112
  onChange: (U) => {
@@ -29149,7 +29149,7 @@ var _a = "Tooltip", [aN, ii] = si(_a), Hh = (e) => {
29149
29149
  Hh.displayName = _a;
29150
29150
  var Ll = "TooltipTrigger", jh = B.forwardRef(
29151
29151
  (e, t) => {
29152
- const { __scopeTooltip: r, ...n } = e, a = ii(Ll, r), s = Dc(Ll, r), o = oi(r), i = B.useRef(null), l = ft(t, i, a.onTriggerChange), u = B.useRef(!1), p = B.useRef(!1), d = B.useCallback(() => u.current = !1, []);
29152
+ const { __scopeTooltip: r, ...n } = e, a = li(Ll, r), s = Dc(Ll, r), o = ii(r), i = B.useRef(null), l = ft(t, i, a.onTriggerChange), u = B.useRef(!1), p = B.useRef(!1), d = B.useCallback(() => u.current = !1, []);
29153
29153
  return B.useEffect(() => () => document.removeEventListener("pointerup", d), [d]), /* @__PURE__ */ c(Kc, { asChild: !0, ...o, children: /* @__PURE__ */ c(
29154
29154
  it.button,
29155
29155
  {
@@ -29176,15 +29176,15 @@ var Ll = "TooltipTrigger", jh = B.forwardRef(
29176
29176
  }
29177
29177
  );
29178
29178
  jh.displayName = Ll;
29179
- var sN = "TooltipPortal", [WM, oN] = si(sN, {
29179
+ var sN = "TooltipPortal", [WM, oN] = oi(sN, {
29180
29180
  forceMount: void 0
29181
29181
  }), ta = "TooltipContent", _h = B.forwardRef(
29182
29182
  (e, t) => {
29183
- const r = oN(ta, e.__scopeTooltip), { forceMount: n = r.forceMount, side: a = "top", ...s } = e, o = ii(ta, e.__scopeTooltip);
29183
+ const r = oN(ta, e.__scopeTooltip), { forceMount: n = r.forceMount, side: a = "top", ...s } = e, o = li(ta, e.__scopeTooltip);
29184
29184
  return /* @__PURE__ */ c(on, { present: n || o.open, children: o.disableHoverableContent ? /* @__PURE__ */ c($h, { side: a, ...s, ref: t }) : /* @__PURE__ */ c(iN, { side: a, ...s, ref: t }) });
29185
29185
  }
29186
29186
  ), iN = B.forwardRef((e, t) => {
29187
- const r = ii(ta, e.__scopeTooltip), n = Dc(ta, e.__scopeTooltip), a = B.useRef(null), s = ft(t, a), [o, i] = B.useState(null), { trigger: l, onClose: u } = r, p = a.current, { onPointerInTransitChange: d } = n, h = B.useCallback(() => {
29187
+ const r = li(ta, e.__scopeTooltip), n = Dc(ta, e.__scopeTooltip), a = B.useRef(null), s = ft(t, a), [o, i] = B.useState(null), { trigger: l, onClose: u } = r, p = a.current, { onPointerInTransitChange: d } = n, h = B.useCallback(() => {
29188
29188
  i(null), d(!1);
29189
29189
  }, [d]), f = B.useCallback(
29190
29190
  (y, C) => {
@@ -29209,7 +29209,7 @@ var sN = "TooltipPortal", [WM, oN] = si(sN, {
29209
29209
  return document.addEventListener("pointermove", y), () => document.removeEventListener("pointermove", y);
29210
29210
  }
29211
29211
  }, [l, p, o, u, h]), /* @__PURE__ */ c($h, { ...e, ref: s });
29212
- }), [lN, cN] = si(_a, { isInside: !1 }), dN = /* @__PURE__ */ wk("TooltipContent"), $h = B.forwardRef(
29212
+ }), [lN, cN] = oi(_a, { isInside: !1 }), dN = /* @__PURE__ */ wk("TooltipContent"), $h = B.forwardRef(
29213
29213
  (e, t) => {
29214
29214
  const {
29215
29215
  __scopeTooltip: r,
@@ -29218,7 +29218,7 @@ var sN = "TooltipPortal", [WM, oN] = si(sN, {
29218
29218
  onEscapeKeyDown: s,
29219
29219
  onPointerDownOutside: o,
29220
29220
  ...i
29221
- } = e, l = ii(ta, r), u = oi(r), { onClose: p } = l;
29221
+ } = e, l = li(ta, r), u = ii(r), { onClose: p } = l;
29222
29222
  return B.useEffect(() => (document.addEventListener(Wl, p), () => document.removeEventListener(Wl, p)), [p]), B.useEffect(() => {
29223
29223
  if (l.trigger) {
29224
29224
  const d = (h) => {
@@ -29227,7 +29227,7 @@ var sN = "TooltipPortal", [WM, oN] = si(sN, {
29227
29227
  return window.addEventListener("scroll", d, { capture: !0 }), () => window.removeEventListener("scroll", d, { capture: !0 });
29228
29228
  }
29229
29229
  }, [l.trigger, p]), /* @__PURE__ */ c(
29230
- Yo,
29230
+ Xo,
29231
29231
  {
29232
29232
  asChild: !0,
29233
29233
  disableOutsidePointerEvents: !1,
@@ -29263,7 +29263,7 @@ var sN = "TooltipPortal", [WM, oN] = si(sN, {
29263
29263
  _h.displayName = ta;
29264
29264
  var ef = "TooltipArrow", uN = B.forwardRef(
29265
29265
  (e, t) => {
29266
- const { __scopeTooltip: r, ...n } = e, a = oi(r);
29266
+ const { __scopeTooltip: r, ...n } = e, a = ii(r);
29267
29267
  return cN(
29268
29268
  ef,
29269
29269
  r
@@ -29758,7 +29758,7 @@ function FN({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
29758
29758
  },
29759
29759
  value: o,
29760
29760
  onChange: (Q) => x((Z) => {
29761
- let T = yo(Q.target.value, RN);
29761
+ let T = Co(Q.target.value, RN);
29762
29762
  return Q.target.max && parseFloat(T) > parseFloat(Q.target.max) && (T = Z), T;
29763
29763
  }),
29764
29764
  placeholder: "0",
@@ -29770,7 +29770,7 @@ function FN({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
29770
29770
  }
29771
29771
  ) }),
29772
29772
  /* @__PURE__ */ S("div", { className: "gw-typography-caption", children: [
29773
- /* @__PURE__ */ c("div", { className: "gw-mt-2 gw-text-brand-gray-500 gw-text-center", children: h || A && `${Ge(i ?? 0, s)} min - ${Ge(l ?? 999999, s)} max` }),
29773
+ /* @__PURE__ */ c("div", { className: "gw-mt-2 gw-text-brand-gray-500 gw-text-center", children: h || A && `${Ye(i ?? 0, s)} min - ${Ye(l ?? 999999, s)} max` }),
29774
29774
  !X && (A ? /* @__PURE__ */ S("div", { className: "gw-mt-4 gw-flex gw-space-x-2 gw-text-brand-gray-500 gw-items-center gw-justify-center", children: [
29775
29775
  /* @__PURE__ */ S("span", { children: [
29776
29776
  "You will receive ",
@@ -29804,7 +29804,7 @@ function FN({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
29804
29804
  /* @__PURE__ */ S("div", { className: "gw-flex gw-flex-col gw-mt-5", children: [
29805
29805
  /* @__PURE__ */ c("div", { className: "gw-typography-body2 gw-text-brand-gray-500", children: "Receive" }),
29806
29806
  /* @__PURE__ */ S("div", { className: "gw-flex gw-justify-between gw-items-center gw-mt-1", children: [
29807
- /* @__PURE__ */ c("div", { className: "gw-typography-h3-nr", children: C ? /* @__PURE__ */ c(Ze, { className: "gw-w-20 gw-h-10" }) : f?.out_tokens_amount }),
29807
+ /* @__PURE__ */ c("div", { className: "gw-typography-h3-nr", children: C ? /* @__PURE__ */ c(Ge, { className: "gw-w-20 gw-h-10" }) : f?.out_tokens_amount }),
29808
29808
  /* @__PURE__ */ c(ja, { className: "gw-size-10 gw-rounded-full" })
29809
29809
  ] }),
29810
29810
  /* @__PURE__ */ S("div", { className: "gw-typography-caption gw-text-brand-gray-500 gw-mt-1 gw-text-center gw-flex gw-items-center gw-justify-center gw-gap-0.5", children: [
@@ -29813,9 +29813,9 @@ function FN({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
29813
29813
  v,
29814
29814
  " = "
29815
29815
  ] }),
29816
- C ? /* @__PURE__ */ c(Ze, { className: "gw-w-6 gw-h-4 gw-inline-block" }) : (
29816
+ C ? /* @__PURE__ */ c(Ge, { className: "gw-w-6 gw-h-4 gw-inline-block" }) : (
29817
29817
  // TODO: Do the calculation before showing it in diff currency
29818
- `${Ge(f?.ape_to_currency, f?.currency)}`
29818
+ `${Ye(f?.ape_to_currency, f?.currency)}`
29819
29819
  )
29820
29820
  ] })
29821
29821
  ] }),
@@ -29883,11 +29883,11 @@ function FN({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
29883
29883
  ] }),
29884
29884
  /* @__PURE__ */ S("div", { className: "gw-flex gw-justify-between gw-items-center gw-mt-2", children: [
29885
29885
  /* @__PURE__ */ c("span", { children: "Network Fees" }),
29886
- /* @__PURE__ */ c("div", { className: "gw-text-brand-gray-500", children: C ? /* @__PURE__ */ c(Ze, { className: "gw-w-6 gw-h-3.5" }) : `${Ge(f?.estimated_fees_amount, f?.currency)}` })
29886
+ /* @__PURE__ */ c("div", { className: "gw-text-brand-gray-500", children: C ? /* @__PURE__ */ c(Ge, { className: "gw-w-6 gw-h-3.5" }) : `${Ye(f?.estimated_fees_amount, f?.currency)}` })
29887
29887
  ] }),
29888
29888
  /* @__PURE__ */ S("div", { className: "gw-flex gw-justify-between gw-items-center gw-mt-2", children: [
29889
29889
  /* @__PURE__ */ c("span", { children: "Total" }),
29890
- /* @__PURE__ */ c("div", { className: "gw-text-brand-gray-500", children: C ? /* @__PURE__ */ c(Ze, { className: "gw-w-6 gw-h-3.5" }) : `${Ge(f?.in_amount, f?.currency)}` })
29890
+ /* @__PURE__ */ c("div", { className: "gw-text-brand-gray-500", children: C ? /* @__PURE__ */ c(Ge, { className: "gw-w-6 gw-h-3.5" }) : `${Ye(f?.in_amount, f?.currency)}` })
29891
29891
  ] })
29892
29892
  ] })
29893
29893
  ] })
@@ -30237,7 +30237,7 @@ function QN({ data: e }) {
30237
30237
  ] }),
30238
30238
  /* @__PURE__ */ S("div", { className: "gw-max-w-[55%] gw-flex gw-flex-col gw-items-end", children: [
30239
30239
  /* @__PURE__ */ c("div", { className: "gw-font-medium", children: e.value }),
30240
- /* @__PURE__ */ c("div", { className: "gw-typography-caption gw-text-brand-gray-500 gw-line-clamp-1", children: `${e.name_on_list !== null ? e.name_on_list.toUpperCase() : Ge(e.amount, e.amount_currency)}` })
30240
+ /* @__PURE__ */ c("div", { className: "gw-typography-caption gw-text-brand-gray-500 gw-line-clamp-1", children: `${e.name_on_list !== null ? e.name_on_list.toUpperCase() : Ye(e.amount, e.amount_currency)}` })
30241
30241
  ] })
30242
30242
  ] })
30243
30243
  ] });
@@ -30249,7 +30249,7 @@ function ma({ text: e, url: t }) {
30249
30249
  href: t,
30250
30250
  target: "_blank",
30251
30251
  rel: "noopener noreferrer",
30252
- className: Jo({
30252
+ className: Yo({
30253
30253
  variant: "link",
30254
30254
  size: "sm",
30255
30255
  className: "gw-py-0 gw-h-auto",
@@ -30273,17 +30273,17 @@ function PN() {
30273
30273
  className: oe(
30274
30274
  "gw-rounded-full gw-overflow-hidden gw-size-10 gw-flex-shrink-0 gw-flex gw-justify-center gw-items-center"
30275
30275
  ),
30276
- children: /* @__PURE__ */ c(Ze, { className: "gw-w-full gw-h-full gw-rounded-full" })
30276
+ children: /* @__PURE__ */ c(Ge, { className: "gw-w-full gw-h-full gw-rounded-full" })
30277
30277
  }
30278
30278
  ),
30279
30279
  /* @__PURE__ */ S("div", { className: "gw-flex gw-justify-between gw-items-center gw-flex-1", children: [
30280
30280
  /* @__PURE__ */ S("div", { className: "gw-flex gw-flex-col gw-text-start gw-space-y-1", children: [
30281
- /* @__PURE__ */ c("div", { className: "gw-font-medium gw-capitalize", children: /* @__PURE__ */ c(Ze, { className: "gw-w-14 gw-h-4" }) }),
30282
- /* @__PURE__ */ c("div", { className: oe("gw-typography-caption"), children: /* @__PURE__ */ c(Ze, { className: "gw-w-14 gw-h-3" }) })
30281
+ /* @__PURE__ */ c("div", { className: "gw-font-medium gw-capitalize", children: /* @__PURE__ */ c(Ge, { className: "gw-w-14 gw-h-4" }) }),
30282
+ /* @__PURE__ */ c("div", { className: oe("gw-typography-caption"), children: /* @__PURE__ */ c(Ge, { className: "gw-w-14 gw-h-3" }) })
30283
30283
  ] }),
30284
30284
  /* @__PURE__ */ S("div", { className: "gw-flex gw-flex-col gw-text-end gw-space-y-1", children: [
30285
- /* @__PURE__ */ c("div", { className: "gw-font-medium", children: /* @__PURE__ */ c(Ze, { className: "gw-w-10 gw-h-4" }) }),
30286
- /* @__PURE__ */ c("div", { className: "gw-typography-caption gw-text-brand-gray-500", children: /* @__PURE__ */ c(Ze, { className: "gw-w-10 gw-h-3" }) })
30285
+ /* @__PURE__ */ c("div", { className: "gw-font-medium", children: /* @__PURE__ */ c(Ge, { className: "gw-w-10 gw-h-4" }) }),
30286
+ /* @__PURE__ */ c("div", { className: "gw-typography-caption gw-text-brand-gray-500", children: /* @__PURE__ */ c(Ge, { className: "gw-w-10 gw-h-3" }) })
30287
30287
  ] })
30288
30288
  ] })
30289
30289
  ] });
@@ -30328,7 +30328,7 @@ function JN(e) {
30328
30328
  n
30329
30329
  ];
30330
30330
  }
30331
- var li = "Collapsible", [YN, tf] = Un(li), [XN, Pc] = YN(li), rf = B.forwardRef(
30331
+ var ci = "Collapsible", [YN, tf] = Un(ci), [XN, Pc] = YN(ci), rf = B.forwardRef(
30332
30332
  (e, t) => {
30333
30333
  const {
30334
30334
  __scopeCollapsible: r,
@@ -30341,7 +30341,7 @@ var li = "Collapsible", [YN, tf] = Un(li), [XN, Pc] = YN(li), rf = B.forwardRef(
30341
30341
  prop: n,
30342
30342
  defaultProp: a ?? !1,
30343
30343
  onChange: o,
30344
- caller: li
30344
+ caller: ci
30345
30345
  });
30346
30346
  return /* @__PURE__ */ c(
30347
30347
  XN,
@@ -30364,7 +30364,7 @@ var li = "Collapsible", [YN, tf] = Un(li), [XN, Pc] = YN(li), rf = B.forwardRef(
30364
30364
  );
30365
30365
  }
30366
30366
  );
30367
- rf.displayName = li;
30367
+ rf.displayName = ci;
30368
30368
  var nf = "CollapsibleTrigger", af = B.forwardRef(
30369
30369
  (e, t) => {
30370
30370
  const { __scopeCollapsible: r, ...n } = e, a = Pc(nf, r);
@@ -30433,7 +30433,7 @@ function tB(e) {
30433
30433
  const t = B.useContext(eB);
30434
30434
  return e || t || "ltr";
30435
30435
  }
30436
- var cr = "Accordion", rB = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [Xc, nB, aB] = JN(cr), [ci] = Un(cr, [
30436
+ var cr = "Accordion", rB = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [Xc, nB, aB] = JN(cr), [di] = Un(cr, [
30437
30437
  aB,
30438
30438
  tf
30439
30439
  ]), Hc = tf(), jc = q.forwardRef(
@@ -30443,7 +30443,7 @@ var cr = "Accordion", rB = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft",
30443
30443
  }
30444
30444
  );
30445
30445
  jc.displayName = cr;
30446
- var [of, sB] = ci(cr), [lf, oB] = ci(
30446
+ var [of, sB] = di(cr), [lf, oB] = di(
30447
30447
  cr,
30448
30448
  { collapsible: !1 }
30449
30449
  ), iB = q.forwardRef(
@@ -30501,7 +30501,7 @@ var [of, sB] = ci(cr), [lf, oB] = ci(
30501
30501
  children: /* @__PURE__ */ c(lf, { scope: e.__scopeAccordion, collapsible: !0, children: /* @__PURE__ */ c(cf, { ...s, ref: t }) })
30502
30502
  }
30503
30503
  );
30504
- }), [cB, di] = ci(cr), cf = q.forwardRef(
30504
+ }), [cB, ui] = di(cr), cf = q.forwardRef(
30505
30505
  (e, t) => {
30506
30506
  const { __scopeAccordion: r, disabled: n, dir: a, orientation: s = "vertical", ...o } = e, i = q.useRef(null), l = ft(i, t), u = nB(r), d = tB(a) === "ltr", h = ot(e.onKeyDown, (f) => {
30507
30507
  if (!rB.includes(f.key)) return;
@@ -30556,9 +30556,9 @@ var [of, sB] = ci(cr), [lf, oB] = ci(
30556
30556
  }
30557
30557
  );
30558
30558
  }
30559
- ), Co = "AccordionItem", [dB, _c] = ci(Co), $c = q.forwardRef(
30559
+ ), xo = "AccordionItem", [dB, _c] = di(xo), $c = q.forwardRef(
30560
30560
  (e, t) => {
30561
- const { __scopeAccordion: r, value: n, ...a } = e, s = di(Co, r), o = sB(Co, r), i = Hc(r), l = bn(), u = n && o.value.includes(n) || !1, p = s.disabled || e.disabled;
30561
+ const { __scopeAccordion: r, value: n, ...a } = e, s = ui(xo, r), o = sB(xo, r), i = Hc(r), l = bn(), u = n && o.value.includes(n) || !1, p = s.disabled || e.disabled;
30562
30562
  return /* @__PURE__ */ c(
30563
30563
  dB,
30564
30564
  {
@@ -30585,10 +30585,10 @@ var [of, sB] = ci(cr), [lf, oB] = ci(
30585
30585
  );
30586
30586
  }
30587
30587
  );
30588
- $c.displayName = Co;
30588
+ $c.displayName = xo;
30589
30589
  var df = "AccordionHeader", uf = q.forwardRef(
30590
30590
  (e, t) => {
30591
- const { __scopeAccordion: r, ...n } = e, a = di(cr, r), s = _c(df, r);
30591
+ const { __scopeAccordion: r, ...n } = e, a = ui(cr, r), s = _c(df, r);
30592
30592
  return /* @__PURE__ */ c(
30593
30593
  it.h3,
30594
30594
  {
@@ -30604,7 +30604,7 @@ var df = "AccordionHeader", uf = q.forwardRef(
30604
30604
  uf.displayName = df;
30605
30605
  var ql = "AccordionTrigger", ed = q.forwardRef(
30606
30606
  (e, t) => {
30607
- const { __scopeAccordion: r, ...n } = e, a = di(cr, r), s = _c(ql, r), o = oB(ql, r), i = Hc(r);
30607
+ const { __scopeAccordion: r, ...n } = e, a = ui(cr, r), s = _c(ql, r), o = oB(ql, r), i = Hc(r);
30608
30608
  return /* @__PURE__ */ c(Xc.ItemSlot, { scope: r, children: /* @__PURE__ */ c(
30609
30609
  _N,
30610
30610
  {
@@ -30621,7 +30621,7 @@ var ql = "AccordionTrigger", ed = q.forwardRef(
30621
30621
  ed.displayName = ql;
30622
30622
  var pf = "AccordionContent", td = q.forwardRef(
30623
30623
  (e, t) => {
30624
- const { __scopeAccordion: r, ...n } = e, a = di(cr, r), s = _c(pf, r), o = Hc(r);
30624
+ const { __scopeAccordion: r, ...n } = e, a = ui(cr, r), s = _c(pf, r), o = Hc(r);
30625
30625
  return /* @__PURE__ */ c(
30626
30626
  $N,
30627
30627
  {
@@ -30663,7 +30663,7 @@ const gB = uB, wB = Gt(({ className: e, ...t }, r) => /* @__PURE__ */ c(pB, { re
30663
30663
  }
30664
30664
  ));
30665
30665
  function CB({ expandFirst: e = !1 }) {
30666
- const { user: t, fetchForAllNetworks: r } = Me(), n = Vt(), { transactionGroups: a, fetchTransactions: s, loadMore: o, hasMore: i, isLoading: l } = GN(), u = To(null), [p, d] = re(""), h = a.reduce((y, C) => y + C.transactions.length, 0);
30666
+ const { user: t, fetchForAllNetworks: r } = Me(), n = Vt(), { transactionGroups: a, fetchTransactions: s, loadMore: o, hasMore: i, isLoading: l } = GN(), u = Uo(null), [p, d] = re(""), h = a.reduce((y, C) => y + C.transactions.length, 0);
30667
30667
  xe(() => {
30668
30668
  s(!0);
30669
30669
  }, [n, r]), xe(() => {
@@ -30828,7 +30828,7 @@ function EB({ setWalletView: e }) {
30828
30828
  }
30829
30829
  ) : /* @__PURE__ */ S(ve, { children: [
30830
30830
  /* @__PURE__ */ c("h6", { children: "My Balance" }),
30831
- /* @__PURE__ */ c("div", { className: "gw-flex gw-font-medium gw-items-center gw-gap-1", children: !n || s?.value === void 0 ? /* @__PURE__ */ c(Ze, { className: "gw-w-20 gw-h-6" }) : /* @__PURE__ */ S(ve, { children: [
30831
+ /* @__PURE__ */ c("div", { className: "gw-flex gw-font-medium gw-items-center gw-gap-1", children: !n || s?.value === void 0 ? /* @__PURE__ */ c(Ge, { className: "gw-w-20 gw-h-6" }) : /* @__PURE__ */ S(ve, { children: [
30832
30832
  /* @__PURE__ */ c(ja, { className: "gw-size-5" }),
30833
30833
  /* @__PURE__ */ S("span", { children: [
30834
30834
  rn(
@@ -30844,8 +30844,8 @@ function EB({ setWalletView: e }) {
30844
30844
  }
30845
30845
  ),
30846
30846
  /* @__PURE__ */ S("div", { className: "gw-flex gw-justify-center gw-items-center gw-flex-col", children: [
30847
- /* @__PURE__ */ c("span", { className: "gw-typography-h2-nr", children: !n || o?.tokens === void 0 ? /* @__PURE__ */ c(Ze, { className: "gw-w-20 gw-h-[3.75rem]" }) : /* @__PURE__ */ S(ve, { children: [
30848
- Ge(
30847
+ /* @__PURE__ */ c("span", { className: "gw-typography-h2-nr", children: !n || o?.tokens === void 0 ? /* @__PURE__ */ c(Ge, { className: "gw-w-20 gw-h-[3.75rem]" }) : /* @__PURE__ */ S(ve, { children: [
30848
+ Ye(
30849
30849
  o?.tokens,
30850
30850
  void 0,
30851
30851
  i?.some((l) => BigInt(l.valueInWei) !== 0n),
@@ -31062,12 +31062,9 @@ const SB = (e) => /* @__PURE__ */ S("svg", { xmlns: "http://www.w3.org/2000/svg"
31062
31062
  ) : /* @__PURE__ */ c(SB, { style: { width: "100%", height: "100%" }, ...a }) });
31063
31063
  };
31064
31064
  function TB() {
31065
- const { glyphUrl: e, balances: t, hasBalances: r } = Me(), [n, a] = re(""), s = t?.nfts || [], o = t?.wallet_value?.nfts, i = new URL("/nfts", e).toString();
31065
+ const { glyphUrl: e, balances: t, hasBalances: r } = Me(), [n, a] = re(""), s = t?.nfts || [], o = new URL("/nfts", e).toString();
31066
31066
  return /* @__PURE__ */ S("div", { className: "gw-pl-4 gw-pt-4 gw-flex gw-flex-col gw-h-full", children: [
31067
- /* @__PURE__ */ S("div", { className: "gw-flex gw-mb-2 gw-flex-row gw-justify-between gw-items-center gw-w-full gw-flex-shrink-0 gw-pr-4", children: [
31068
- /* @__PURE__ */ c("h6", { children: "My NFTs" }),
31069
- o ? /* @__PURE__ */ c("div", { className: "gw-typography-body2", children: /* @__PURE__ */ c("span", { className: "amount", children: Ge(o, t?.wallet_value?.currency, s.length > 0) }) }) : null
31070
- ] }),
31067
+ /* @__PURE__ */ c("div", { className: "gw-flex gw-mb-2 gw-flex-row gw-justify-between gw-items-center gw-w-full gw-flex-shrink-0 gw-pr-4", children: /* @__PURE__ */ c("h6", { children: "My NFTs" }) }),
31071
31068
  r && s?.length ? /* @__PURE__ */ S("div", { className: "gw-flex gw-flex-col gw-flex-1 gw-min-h-0", children: [
31072
31069
  /* @__PURE__ */ c("div", { className: "gw-flex-1 gw-min-h-0 gw-overflow-auto", children: /* @__PURE__ */ c(
31073
31070
  jc,
@@ -31077,44 +31074,44 @@ function TB() {
31077
31074
  collapsible: !0,
31078
31075
  value: n,
31079
31076
  onValueChange: a,
31080
- children: s.map((l, u) => /* @__PURE__ */ c("div", { children: /* @__PURE__ */ S($c, { value: u.toString(), className: "gw-pr-4", children: [
31077
+ children: s.map((i, l) => /* @__PURE__ */ c("div", { children: /* @__PURE__ */ S($c, { value: l.toString(), className: "gw-pr-4", children: [
31081
31078
  /* @__PURE__ */ c(ed, { asChild: !0, children: /* @__PURE__ */ S("div", { className: "gw-flex gw-justify-between gw-items-center gw-w-full gw-py-2 gw-cursor-pointer", children: [
31082
31079
  /* @__PURE__ */ S("div", { className: "gw-flex gw-items-center gw-space-x-3 gw-min-w-0 gw-flex-1", children: [
31083
31080
  /* @__PURE__ */ c("div", { className: "gw-flex-shrink-0", children: /* @__PURE__ */ c(
31084
31081
  Zu,
31085
31082
  {
31086
- url: l.contractImage || l.image,
31087
- alt: l.name,
31083
+ url: i.contractImage || i.image,
31084
+ alt: i.name,
31088
31085
  className: "gw-w-10 gw-h-10",
31089
31086
  height: "40",
31090
31087
  width: "40"
31091
31088
  }
31092
31089
  ) }),
31093
- /* @__PURE__ */ c("span", { className: "gw-text-sm gw-line-clamp-1 gw-truncate gw-letter-spacing-0.12 gw-min-w-0 gw-max-w-[75%]", children: l.name?.toLocaleUpperCase?.() || l.symbol || "" })
31090
+ /* @__PURE__ */ c("span", { className: "gw-text-sm gw-line-clamp-1 gw-truncate gw-letter-spacing-0.12 gw-min-w-0 gw-max-w-[75%]", children: i.name?.toLocaleUpperCase?.() || i.symbol || "" })
31094
31091
  ] }),
31095
31092
  /* @__PURE__ */ c("div", { className: "gw-flex gw-flex-col gw-items-between gw-justify-end gw-text-end gw-flex-shrink-0", children: /* @__PURE__ */ c(
31096
31093
  AB,
31097
31094
  {
31098
- className: `${n === u.toString() ? "" : "gw-rotate-180"}`
31095
+ className: `${n === l.toString() ? "" : "gw-rotate-180"}`
31099
31096
  }
31100
31097
  ) })
31101
31098
  ] }) }),
31102
- /* @__PURE__ */ c(td, { children: /* @__PURE__ */ c("div", { className: "gw-grid gw-grid-cols-4 gw-gap-4 gw-my-2", children: l.items.map((p) => /* @__PURE__ */ S("div", { className: "gw-relative", children: [
31103
- p.fromLinked && /* @__PURE__ */ c("div", { className: "gw-absolute gw-top-1 gw-right-1 gw-z-10", children: /* @__PURE__ */ c(kB, {}) }),
31104
- p.fromDelegated && /* @__PURE__ */ c("div", { className: "gw-absolute gw-bottom-0 gw-left-0 gw-right-0 gw-z-10", children: /* @__PURE__ */ c("div", { className: "gw-bg-black gw-bg-opacity-50 gw-text-white gw-text-center gw-text-[10px] gw-py-0.5 gw-px-1", children: "Delegate" }) }),
31099
+ /* @__PURE__ */ c(td, { children: /* @__PURE__ */ c("div", { className: "gw-grid gw-grid-cols-4 gw-gap-4 gw-my-2", children: i.items.map((u) => /* @__PURE__ */ S("div", { className: "gw-relative", children: [
31100
+ u.fromLinked && /* @__PURE__ */ c("div", { className: "gw-absolute gw-top-1 gw-right-1 gw-z-10", children: /* @__PURE__ */ c(kB, {}) }),
31101
+ u.fromDelegated && /* @__PURE__ */ c("div", { className: "gw-absolute gw-bottom-0 gw-left-0 gw-right-0 gw-z-10", children: /* @__PURE__ */ c("div", { className: "gw-bg-black gw-bg-opacity-50 gw-text-white gw-text-center gw-text-[10px] gw-py-0.5 gw-px-1", children: "Delegate" }) }),
31105
31102
  /* @__PURE__ */ c(
31106
31103
  Zu,
31107
31104
  {
31108
- url: p.tokenImage || p.image?.thumbnailUrl,
31109
- alt: p.tokenId,
31105
+ url: u.tokenImage || u.image?.thumbnailUrl,
31106
+ alt: u.tokenId,
31110
31107
  className: "gw-w-16 gw-h-16",
31111
31108
  height: "64",
31112
31109
  width: "64",
31113
- title: p.tokenName || p.name || p.tokenId
31110
+ title: u.tokenName || u.name || u.tokenId
31114
31111
  }
31115
31112
  )
31116
- ] }, p.tokenId)) }) })
31117
- ] }) }, u.toString()))
31113
+ ] }, u.tokenId)) }) })
31114
+ ] }) }, l.toString()))
31118
31115
  }
31119
31116
  ) }),
31120
31117
  /* @__PURE__ */ S("div", { className: "gw-flex gw-justify-center gw-items-center gw-w-full gw-text-brand-gray-500 gw-typography-body2 gw-flex-shrink-0 gw-mt-2", children: [
@@ -31122,10 +31119,10 @@ function TB() {
31122
31119
  /* @__PURE__ */ c(
31123
31120
  "a",
31124
31121
  {
31125
- href: i,
31122
+ href: o,
31126
31123
  target: "_blank",
31127
31124
  rel: "noopener noreferrer",
31128
- className: Jo({
31125
+ className: Yo({
31129
31126
  variant: "link-inline",
31130
31127
  size: "xs-inline",
31131
31128
  scale: !1
@@ -31137,8 +31134,8 @@ function TB() {
31137
31134
  ] }) : /* @__PURE__ */ c("div", { className: "gw-flex gw-justify-center gw-items-center gw-flex-1 gw-text-brand-gray-500 gw-typography-body2 gw-pr-4", children: r ? "No NFTs found" : "Loading..." })
31138
31135
  ] });
31139
31136
  }
31140
- function ui() {
31141
- const e = xr(No);
31137
+ function pi() {
31138
+ const e = xr(Bo);
31142
31139
  if (!e) throw new Error("useBalances must be used within GlyphProvider");
31143
31140
  const { balances: t, hasBalances: r, refreshBalances: n, fetchForAllNetworks: a, setFetchForAllNetworks: s, isBalancesLoading: o } = e;
31144
31141
  return { balances: t, hasBalances: r, refreshBalances: n, fetchForAllNetworks: a, setFetchForAllNetworks: s, isBalancesLoading: o };
@@ -31156,7 +31153,7 @@ const yr = ({
31156
31153
  alt: e.name,
31157
31154
  className: oe("gw-rounded-full gw-size-10", r)
31158
31155
  }
31159
- ) : /* @__PURE__ */ c(ai, { className: oe("gw-size-10 gw-rounded-full", r) }),
31156
+ ) : /* @__PURE__ */ c(si, { className: oe("gw-size-10 gw-rounded-full", r) }),
31160
31157
  t?.logoUrl && /* @__PURE__ */ c(
31161
31158
  "span",
31162
31159
  {
@@ -31176,11 +31173,11 @@ const yr = ({
31176
31173
  )
31177
31174
  ] });
31178
31175
  function UB() {
31179
- const e = ut.chains, { balances: t, hasBalances: r, fetchForAllNetworks: n } = ui(), a = t?.tokens || [], s = t?.wallet_value?.tokens;
31176
+ const e = ut.chains, { balances: t, hasBalances: r, fetchForAllNetworks: n } = pi(), a = t?.tokens || [], s = t?.wallet_value?.tokens;
31180
31177
  return /* @__PURE__ */ S("div", { className: "gw-pl-4 gw-pt-4 gw-flex gw-flex-col gw-h-full gw-min-h-0", children: [
31181
31178
  /* @__PURE__ */ S("div", { className: "gw-flex gw-justify-between gw-items-center gw-w-full gw-pr-4", children: [
31182
31179
  /* @__PURE__ */ c("h6", { children: "Tokens" }),
31183
- /* @__PURE__ */ c("div", { className: "gw-typography-body2", children: /* @__PURE__ */ c("span", { className: "amount", children: Ge(
31180
+ /* @__PURE__ */ c("div", { className: "gw-typography-body2", children: /* @__PURE__ */ c("span", { className: "amount", children: Ye(
31184
31181
  s,
31185
31182
  a[0]?.currency,
31186
31183
  a?.some((o) => BigInt(o.valueInWei) !== 0n)
@@ -31188,7 +31185,7 @@ function UB() {
31188
31185
  ] }),
31189
31186
  r && a?.length ? /* @__PURE__ */ c("div", { className: "gw-grid gw-grid-cols-1 gw-mt-2 gw-max-h-100 gw-min-h-0 gw-overflow-auto gw-pr-4", children: a.map((o, i) => {
31190
31187
  if (o?.hide) return null;
31191
- const l = o.logo ? /* @__PURE__ */ c("img", { src: o.logo, alt: o.symbol, className: "gw-size-10 gw-rounded-full" }) : /* @__PURE__ */ c(ai, { className: "gw-size-10" }), u = e.find((p) => p.id === o.chainId);
31188
+ const l = o.logo ? /* @__PURE__ */ c("img", { src: o.logo, alt: o.symbol, className: "gw-size-10 gw-rounded-full" }) : /* @__PURE__ */ c(si, { className: "gw-size-10" }), u = e.find((p) => p.id === o.chainId);
31192
31189
  return /* @__PURE__ */ S("div", { className: "gw-w-full", children: [
31193
31190
  /* @__PURE__ */ S("div", { className: "gw-flex gw-justify-between gw-items-center gw-w-full gw-py-2", children: [
31194
31191
  /* @__PURE__ */ S("div", { className: "gw-flex gw-items-center gw-space-x-3", children: [
@@ -31223,7 +31220,7 @@ function UB() {
31223
31220
  ] })
31224
31221
  ] }),
31225
31222
  /* @__PURE__ */ S("div", { className: "gw-flex gw-flex-col gw-items-between gw-justify-end gw-text-end", children: [
31226
- /* @__PURE__ */ c("span", { className: "gw-font-medium", children: Ge(o.amount, o.currency, BigInt(o.valueInWei) !== 0n) }),
31223
+ /* @__PURE__ */ c("span", { className: "gw-font-medium", children: Ye(o.amount, o.currency, BigInt(o.valueInWei) !== 0n) }),
31227
31224
  /* @__PURE__ */ S("span", { className: "gw-typography-caption gw-text-brand-gray-500 gw-flex gw-items-center gw-justify-end gw-gap-0.5 gw-flex-wrap", children: [
31228
31225
  /* @__PURE__ */ S("span", { children: [
31229
31226
  rn(o.valueInWei, o.decimals, o.displayDecimals),
@@ -31413,19 +31410,19 @@ function FB({ onBack: e }) {
31413
31410
  }
31414
31411
  );
31415
31412
  }
31416
- var MB = Object.defineProperty, xo = Object.getOwnPropertySymbols, ff = Object.prototype.hasOwnProperty, gf = Object.prototype.propertyIsEnumerable, Qu = (e, t, r) => t in e ? MB(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Kl = (e, t) => {
31413
+ var MB = Object.defineProperty, Eo = Object.getOwnPropertySymbols, ff = Object.prototype.hasOwnProperty, gf = Object.prototype.propertyIsEnumerable, Qu = (e, t, r) => t in e ? MB(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Kl = (e, t) => {
31417
31414
  for (var r in t || (t = {}))
31418
31415
  ff.call(t, r) && Qu(e, r, t[r]);
31419
- if (xo)
31420
- for (var r of xo(t))
31416
+ if (Eo)
31417
+ for (var r of Eo(t))
31421
31418
  gf.call(t, r) && Qu(e, r, t[r]);
31422
31419
  return e;
31423
31420
  }, zl = (e, t) => {
31424
31421
  var r = {};
31425
31422
  for (var n in e)
31426
31423
  ff.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
31427
- if (e != null && xo)
31428
- for (var n of xo(e))
31424
+ if (e != null && Eo)
31425
+ for (var n of Eo(e))
31429
31426
  t.indexOf(n) < 0 && gf.call(e, n) && (r[n] = e[n]);
31430
31427
  return r;
31431
31428
  };
@@ -32248,7 +32245,7 @@ var Sf = q.forwardRef(
32248
32245
  Sf.displayName = "QRCodeSVG";
32249
32246
  const GB = "data:image/png;base64,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", ZB = 5e3;
32250
32247
  function QB({ onBack: e }) {
32251
- const { ready: t, user: r } = Me(), { refreshBalances: n, balances: a } = ui();
32248
+ const { ready: t, user: r } = Me(), { refreshBalances: n, balances: a } = pi();
32252
32249
  return xe(() => {
32253
32250
  if (!t) return;
32254
32251
  const s = setInterval(
@@ -32309,7 +32306,7 @@ function QB({ onBack: e }) {
32309
32306
  {
32310
32307
  text: "Copy Wallet Address",
32311
32308
  textToCopy: r?.evmWallet,
32312
- className: Jo({
32309
+ className: Yo({
32313
32310
  variant: "default",
32314
32311
  size: "default",
32315
32312
  className: "gw-w-full"
@@ -32382,7 +32379,7 @@ const JB = ({
32382
32379
  onTokenSelect: e,
32383
32380
  selectedToken: t
32384
32381
  }) => {
32385
- const r = ut.chains || [], [n, a] = re(!1), s = Vt(), { switchChainAsync: o } = Hl(), { balances: i, hasBalances: l, fetchForAllNetworks: u, setFetchForAllNetworks: p } = ui(), d = u ? "all" : s, h = Fe(() => t?.chainId ? r.find((b) => b.id === t.chainId) : null, [t?.chainId]), [f] = Fe(() => d === "all" ? [null] : [r.find((x) => x.id === d)], [d]), y = To(null);
32382
+ const r = ut.chains || [], [n, a] = re(!1), s = Vt(), { switchChainAsync: o } = Hl(), { balances: i, hasBalances: l, fetchForAllNetworks: u, setFetchForAllNetworks: p } = pi(), d = u ? "all" : s, h = Fe(() => t?.chainId ? r.find((b) => b.id === t.chainId) : null, [t?.chainId]), [f] = Fe(() => d === "all" ? [null] : [r.find((x) => x.id === d)], [d]), y = Uo(null);
32386
32383
  xe(() => {
32387
32384
  y.current = document.querySelector(".gw-wallet-container");
32388
32385
  }, []);
@@ -32534,7 +32531,7 @@ const JB = ({
32534
32531
  ] })
32535
32532
  ] }),
32536
32533
  /* @__PURE__ */ S("div", { className: "gw-flex gw-flex-col gw-items-between gw-justify-end gw-h-full gw-text-right", children: [
32537
- /* @__PURE__ */ c("span", { className: "gw-typography-caption", children: Ge(
32534
+ /* @__PURE__ */ c("span", { className: "gw-typography-caption", children: Ye(
32538
32535
  b.amount,
32539
32536
  b.currency,
32540
32537
  BigInt(b.valueInWei) !== 0n
@@ -32558,7 +32555,7 @@ const JB = ({
32558
32555
  `${b.chainId}:${b.address}_token_list`
32559
32556
  );
32560
32557
  }) : l ? /* @__PURE__ */ c("div", { className: "gw-flex gw-justify-center gw-items-center gw-flex-1 gw-text-brand-gray-500 gw-typography-body2 gw-pr-4", children: "No tokens found" }) : new Array(3).fill(0).map((b, x) => /* @__PURE__ */ S("div", { className: "gw-w-full", children: [
32561
- /* @__PURE__ */ c(Ze, { className: "gw-flex gw-items-center gw-justify-center gw-h-14" }),
32558
+ /* @__PURE__ */ c(Ge, { className: "gw-flex gw-items-center gw-justify-center gw-h-14" }),
32562
32559
  x < 2 && /* @__PURE__ */ c("hr", { className: "gw-my-2 gw-border-muted gw-mx-2" })
32563
32560
  ] }, x)) })
32564
32561
  ] })
@@ -32694,7 +32691,7 @@ const JB = ({
32694
32691
  }) => {
32695
32692
  const { user: o } = Me();
32696
32693
  return xe(() => {
32697
- s || a && (ll(a, { strict: !1 }) || n("Please enter a valid recipient wallet address"));
32694
+ s || a && (cl(a, { strict: !1 }) || n("Please enter a valid recipient wallet address"));
32698
32695
  }, [a, s, n]), /* @__PURE__ */ c(
32699
32696
  Ct,
32700
32697
  {
@@ -32736,7 +32733,7 @@ const JB = ({
32736
32733
  value: a,
32737
32734
  onChange: (i) => {
32738
32735
  if (r(i.target.value), !i.target.value) return n("");
32739
- if (!ll(i.target.value, { strict: !1 }))
32736
+ if (!cl(i.target.value, { strict: !1 }))
32740
32737
  return n("Please enter a valid wallet address");
32741
32738
  if (o?.evmWallet && qa(i.target.value) === qa(o?.evmWallet))
32742
32739
  return n("You cannot send funds to your own wallet");
@@ -32970,13 +32967,13 @@ function oR({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
32970
32967
  let E;
32971
32968
  console.debug("Send - reached checkpoint 1");
32972
32969
  try {
32973
- const K = (Q || V === Number(v.value || 0)) && v.valueInWei ? BigInt(v.valueInWei || 0) : v?.address === vt ? T0(`${V}`) : Ri(V, v.decimals || 18);
32970
+ const K = (Q || V === Number(v.value || 0)) && v.valueInWei ? BigInt(v.valueInWei || 0) : v?.address === vt ? T0(`${V}`) : Fi(V, v.decimals || 18);
32974
32971
  v?.address === vt ? E = await R.estimateGas({
32975
32972
  account: a?.evmWallet,
32976
32973
  to: f,
32977
32974
  value: K
32978
32975
  }) : E = await R.estimateContractGas({
32979
- abi: fi,
32976
+ abi: gi,
32980
32977
  functionName: "transfer",
32981
32978
  args: [f, K],
32982
32979
  account: a?.evmWallet,
@@ -33001,7 +32998,7 @@ function oR({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
33001
32998
  H("Insufficient gas balance"), O(!1);
33002
32999
  return;
33003
33000
  }
33004
- I = Q || V === Number(v.value || 0) ? BigInt(v.valueInWei || 0) : Ri(V, v.decimals || 18);
33001
+ I = Q || V === Number(v.value || 0) ? BigInt(v.valueInWei || 0) : Fi(V, v.decimals || 18);
33005
33002
  }
33006
33003
  console.debug("Send - reached checkpoint 3");
33007
33004
  const W = Ya(
@@ -33016,13 +33013,13 @@ function oR({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
33016
33013
  gasPrice: se,
33017
33014
  receivable_amount: I,
33018
33015
  receivable_amount_in_token: W,
33019
- receivable_amount_in_currency: Ge(
33016
+ receivable_amount_in_currency: Ye(
33020
33017
  W * +(v.rateInCurrency || 0),
33021
33018
  a?.currency || "USD",
33022
33019
  I !== 0n
33023
33020
  ),
33024
33021
  estimated_fees_amount: $r(w, k?.decimals || 18),
33025
- estimated_fees_amount_in_currency: Ge(
33022
+ estimated_fees_amount_in_currency: Ye(
33026
33023
  +$r(w, k?.decimals || 18) * +(k?.rateInCurrency || 0),
33027
33024
  a?.currency || "USD",
33028
33025
  w !== 0n
@@ -33073,7 +33070,7 @@ function oR({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
33073
33070
  return () => clearInterval(ne);
33074
33071
  }, [J, j, Qt]);
33075
33072
  const pt = Fe(
33076
- () => ni(500, (ne) => {
33073
+ () => ai(500, (ne) => {
33077
33074
  M(null), X(Number(ne));
33078
33075
  }),
33079
33076
  []
@@ -33081,11 +33078,11 @@ function oR({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
33081
33078
  xe(() => (x === Tt.END && ke === "SUCCESS" && n(rr.SUCCESS), x === Tt.END && ke === "FAILED" && n(rr.ERROR), () => {
33082
33079
  n(void 0);
33083
33080
  }), [n, ke, x]);
33084
- const Xt = V > 0 && V <= Number(v?.value || "0"), ht = v?.logo ? /* @__PURE__ */ c("img", { src: v.logo, alt: v.symbol, className: "gw-w-6 gw-h-6 gw-mr-1 gw-rounded-full" }) : /* @__PURE__ */ c(ai, {}), nt = v ? rn(v?.valueInWei, v?.decimals, v?.displayDecimals) : void 0, xt = v ? v?.rateInCurrency ? Ge(
33081
+ const Xt = V > 0 && V <= Number(v?.value || "0"), ht = v?.logo ? /* @__PURE__ */ c("img", { src: v.logo, alt: v.symbol, className: "gw-w-6 gw-h-6 gw-mr-1 gw-rounded-full" }) : /* @__PURE__ */ c(si, {}), nt = v ? rn(v?.valueInWei, v?.decimals, v?.displayDecimals) : void 0, xt = v ? v?.rateInCurrency ? Ye(
33085
33082
  parseFloat($r(BigInt(v?.valueInWei || 0), v?.decimals ?? 18)) * parseFloat(v?.rateInCurrency),
33086
33083
  v?.currency,
33087
33084
  BigInt(v?.valueInWei || 0) > 0n
33088
- ) : Ge(v?.amount || 0, v?.currency, BigInt(v?.valueInWei || 0) !== 0n) : void 0;
33085
+ ) : Ye(v?.amount || 0, v?.currency, BigInt(v?.valueInWei || 0) !== 0n) : void 0;
33089
33086
  return /* @__PURE__ */ S(ve, { children: [
33090
33087
  x === Tt.ENTER_ADDRESS && /* @__PURE__ */ c(
33091
33088
  jB,
@@ -33181,7 +33178,7 @@ function oR({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
33181
33178
  },
33182
33179
  value: U,
33183
33180
  onChange: (ne) => {
33184
- const fe = yo(
33181
+ const fe = Co(
33185
33182
  ne.target.value,
33186
33183
  Math.min(
33187
33184
  v?.displayDecimals ?? mt,
@@ -33206,7 +33203,7 @@ function oR({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
33206
33203
  /* @__PURE__ */ c("span", { className: "gw-text-input gw-typography-h4-nr", children: v?.symbol || "" })
33207
33204
  ] }) }),
33208
33205
  /* @__PURE__ */ S("div", { className: "gw-flex gw-justify-center gw-items-center gw-mt-4 gw-gap-4", children: [
33209
- v?.rateInCurrency && /* @__PURE__ */ c("div", { className: "gw-text-brand-gray-600", children: Ge(
33206
+ v?.rateInCurrency && /* @__PURE__ */ c("div", { className: "gw-text-brand-gray-600", children: Ye(
33210
33207
  +v?.rateInCurrency * +U,
33211
33208
  v?.currency,
33212
33209
  Number(U) !== 0
@@ -33232,15 +33229,15 @@ function oR({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
33232
33229
  Xt ? /* @__PURE__ */ S("div", { className: "gw-typography-caption gw-mt-3 gw-w-full", children: [
33233
33230
  /* @__PURE__ */ S("div", { className: "gw-flex gw-justify-between gw-items-center gw-space-x-1", children: [
33234
33231
  /* @__PURE__ */ c("span", { children: "Transaction Time" }),
33235
- F || !T ? /* @__PURE__ */ c(Ze, { className: "gw-w-20 gw-h-4" }) : /* @__PURE__ */ c("span", { className: "gw-text-brand-gray-500 gw-text-right", children: "<1 min" })
33232
+ F || !T ? /* @__PURE__ */ c(Ge, { className: "gw-w-20 gw-h-4" }) : /* @__PURE__ */ c("span", { className: "gw-text-brand-gray-500 gw-text-right", children: "<1 min" })
33236
33233
  ] }),
33237
33234
  /* @__PURE__ */ S("div", { className: "gw-flex gw-justify-between gw-items-center gw-mt-2 gw-space-x-1", children: [
33238
33235
  /* @__PURE__ */ c("span", { children: "Network Fees" }),
33239
- /* @__PURE__ */ c("div", { className: "gw-text-brand-gray-500 gw-text-right", children: F || !T ? /* @__PURE__ */ c(Ze, { className: "gw-w-20 gw-h-4" }) : `${rn(Ri(T?.estimated_fees_amount || 0, k?.decimals || 18), k?.decimals || 18, k?.displayDecimals)} ${k?.symbol} (${T?.estimated_fees_amount_in_currency})` })
33236
+ /* @__PURE__ */ c("div", { className: "gw-text-brand-gray-500 gw-text-right", children: F || !T ? /* @__PURE__ */ c(Ge, { className: "gw-w-20 gw-h-4" }) : `${rn(Fi(T?.estimated_fees_amount || 0, k?.decimals || 18), k?.decimals || 18, k?.displayDecimals)} ${k?.symbol} (${T?.estimated_fees_amount_in_currency})` })
33240
33237
  ] }),
33241
33238
  /* @__PURE__ */ S("div", { className: "gw-flex gw-justify-between gw-items-center gw-mt-2 gw-space-x-1", children: [
33242
33239
  /* @__PURE__ */ c("span", { children: "Expected receivable amount" }),
33243
- /* @__PURE__ */ c("div", { className: "gw-text-brand-gray-500 gw-text-right", children: F || !T ? /* @__PURE__ */ c(Ze, { className: "gw-w-20 gw-h-4" }) : `${T?.receivable_amount_in_token} ${v?.symbol} (${T?.receivable_amount_in_currency} ${v?.currency})` })
33240
+ /* @__PURE__ */ c("div", { className: "gw-text-brand-gray-500 gw-text-right", children: F || !T ? /* @__PURE__ */ c(Ge, { className: "gw-w-20 gw-h-4" }) : `${T?.receivable_amount_in_token} ${v?.symbol} (${T?.receivable_amount_in_currency} ${v?.currency})` })
33244
33241
  ] })
33245
33242
  ] }) : /* @__PURE__ */ c("div", {})
33246
33243
  ]
@@ -33304,7 +33301,7 @@ function oR({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
33304
33301
  }), fe = ne;
33305
33302
  else {
33306
33303
  const je = await R.simulateContract({
33307
- abi: fi,
33304
+ abi: gi,
33308
33305
  functionName: "transfer",
33309
33306
  account: a?.evmWallet,
33310
33307
  address: v?.address,
@@ -33314,7 +33311,7 @@ function oR({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
33314
33311
  });
33315
33312
  try {
33316
33313
  const se = kp({
33317
- abi: fi,
33314
+ abi: gi,
33318
33315
  functionName: "transfer",
33319
33316
  args: [f, T?.receivable_amount]
33320
33317
  });
@@ -33386,7 +33383,7 @@ function oR({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
33386
33383
  ))
33387
33384
  ] });
33388
33385
  }
33389
- const Bf = So(void 0), us = () => {
33386
+ const Bf = To(void 0), us = () => {
33390
33387
  const e = xr(Bf);
33391
33388
  if (!e) throw new Error("useGlyphSwap must be used within GlyphSwapProvider");
33392
33389
  return e;
@@ -33414,7 +33411,7 @@ const Bf = So(void 0), us = () => {
33414
33411
  class Rf extends rc {
33415
33412
  constructor(t, r) {
33416
33413
  super(), this.finished = !1, this.destroyed = !1, Jp(t);
33417
- const n = Mo(r);
33414
+ const n = Vo(r);
33418
33415
  if (this.iHash = t.create(), typeof this.iHash.update != "function")
33419
33416
  throw new Error("Expected instance of class which extends utils.Hash");
33420
33417
  this.blockLen = this.iHash.blockLen, this.outputLen = this.iHash.outputLen;
@@ -33465,7 +33462,7 @@ function cR(e, t = {}) {
33465
33462
  return lR(e, t)?.extend(U0);
33466
33463
  }
33467
33464
  function dR(e) {
33468
- const r = (ut?.chains || []).map((n) => Po(n).viemChain);
33465
+ const r = (ut?.chains || []).map((n) => Jo(n).viemChain);
33469
33466
  return yn({
33470
33467
  chain: I0({ chains: r, id: e }),
33471
33468
  transport: Et()
@@ -33530,7 +33527,7 @@ const uR = (e) => {
33530
33527
  }
33531
33528
  }, [s, a, r, n, t?.evmWallet, e]);
33532
33529
  }, jr = "PRECHECK_FAILED", Wn = (e, t) => ({ code: e, message: t }), pR = () => {
33533
- const e = Vt(), { glyphApiFetch: t } = Zr(), { reportSwapFailed: r } = us(), n = Uo(), a = uR(n);
33530
+ const e = Vt(), { glyphApiFetch: t } = Zr(), { reportSwapFailed: r } = us(), n = Io(), a = uR(n);
33534
33531
  return V0({
33535
33532
  mutationFn: async ({ qt: s, onExecutionStart: o }) => {
33536
33533
  if (!n)
@@ -33538,7 +33535,7 @@ const uR = (e) => {
33538
33535
  if (!a)
33539
33536
  throw console.error("evmAdapter function not ready"), Wn(jr, Nt.WALLET_NOT_READY);
33540
33537
  const i = s.details?.currencyIn?.currency?.chainId;
33541
- if (i === Tl)
33538
+ if (i === oo)
33542
33539
  throw Wn(jr, Nt.SOLANA_NOT_IMPLEMENTED);
33543
33540
  if (!t)
33544
33541
  throw Wn(jr, Nt.NO_GLYPHAPIFETCH);
@@ -33557,9 +33554,22 @@ const uR = (e) => {
33557
33554
  o?.(p);
33558
33555
  let d;
33559
33556
  try {
33560
- d = await ut.actions.execute({
33561
- quote: p,
33562
- wallet: a
33557
+ let x;
33558
+ const A = (k) => {
33559
+ x && clearTimeout(x), x = setTimeout(() => {
33560
+ k(new Error("Swap execution timed out. Check blockchain for transaction status."));
33561
+ }, 18e4);
33562
+ };
33563
+ d = await new Promise((k, v) => {
33564
+ A(v), ut.actions.execute({
33565
+ quote: p,
33566
+ wallet: a,
33567
+ onProgress: (N) => {
33568
+ console.debug("onProgress", N), A(v);
33569
+ }
33570
+ }).then(k).catch(v).finally(() => {
33571
+ x && clearTimeout(x);
33572
+ });
33563
33573
  });
33564
33574
  } catch (b) {
33565
33575
  throw console.debug("error while executing", b), await r(u), b;
@@ -33578,14 +33588,14 @@ const uR = (e) => {
33578
33588
  }
33579
33589
  });
33580
33590
  }, mR = ({ intentRequestId: e, setTxStatus: t, setView: r, onError: n }) => {
33581
- const a = Uo(), [s, o] = re(), [i, l] = re(""), { refreshBalances: u, isBalancesLoading: p } = ui();
33591
+ const a = Io(), [s, o] = re(), [i, l] = re(""), { refreshBalances: u, isBalancesLoading: p } = pi();
33582
33592
  return xe(() => {
33583
33593
  if (!e) return;
33584
33594
  let d = !1;
33585
33595
  return (async () => {
33586
33596
  for (; !d; ) {
33587
33597
  try {
33588
- const f = await fetch(`${Go}/intents/status/v2?requestId=${e}`);
33598
+ const f = await fetch(`${Zo}/intents/status/v2?requestId=${e}`);
33589
33599
  if (!f.ok)
33590
33600
  throw new Error("Failed to get execution status");
33591
33601
  const y = await f.json(), C = y?.status;
@@ -33642,12 +33652,12 @@ const uR = (e) => {
33642
33652
  } catch {
33643
33653
  d = !1;
33644
33654
  }
33645
- const h = !!u && !!p && !!r && !!n && d && (e !== void 0 ? e : !0), f = su(r, n), y = f ? r?.address === vt ? "wrap" : "unwrap" : "swap";
33655
+ const h = r?.chainId === oo ? !!p : !!u && !!r && !!n && d && (e !== void 0 ? e : !0), f = su(r, n), y = f ? r?.address === vt ? "wrap" : "unwrap" : "swap";
33646
33656
  return { ...Da({
33647
33657
  queryKey: ["relayQuote", u, p, t],
33648
33658
  queryFn: async () => {
33649
33659
  Na(u), Na(p), Na(r), Na(n), Na(s);
33650
- const b = r.chainId === Tl ? p : u, x = n.chainId === Tl ? p : u;
33660
+ const b = r.chainId === oo ? p : u, x = n.chainId === oo ? p : u;
33651
33661
  return ut.actions.getQuote({
33652
33662
  tradeType: a,
33653
33663
  chainId: r.chainId,
@@ -33677,7 +33687,7 @@ const uR = (e) => {
33677
33687
  gcTime: 0,
33678
33688
  retry: 1
33679
33689
  }), appFeesWaived: f, operation: y };
33680
- }, co = (e, t) => {
33690
+ }, uo = (e, t) => {
33681
33691
  const { balances: r } = Me(), { glyphApiFetch: n } = Zr(), a = e && t ? r?.tokens?.find?.(
33682
33692
  (l) => l.chainId === t && qa(l.address) === qa(e)
33683
33693
  ) : void 0, { data: s, isLoading: o, error: i } = Da({
@@ -33700,7 +33710,7 @@ const uR = (e) => {
33700
33710
  error: i ? i.message : void 0
33701
33711
  };
33702
33712
  }, gR = async function(e, t) {
33703
- const r = new URL(`${Go}/currencies/v2`), n = await fetch(r.href, {
33713
+ const r = new URL(`${Zo}/currencies/v2`), n = await fetch(r.href, {
33704
33714
  method: "POST",
33705
33715
  headers: {
33706
33716
  "Content-Type": "application/json",
@@ -33731,15 +33741,15 @@ const bR = ({
33731
33741
  defaultChainId: r
33732
33742
  }) => {
33733
33743
  const n = ut.chains || [], a = Fe(() => n.map((U) => U.id), []), [s, o] = re(!1), [i, l] = re(r), u = Fe(() => t?.chainId ? n.find((U) => U.id === t.chainId) : null, [t?.chainId]), [p, d] = re(""), [h, f] = re(""), y = Fe(
33734
- () => ni(500, (U) => {
33744
+ () => ai(500, (U) => {
33735
33745
  f(U);
33736
33746
  }),
33737
33747
  []
33738
- ), C = ll(h), [b, x] = Fe(() => {
33748
+ ), C = cl(h), [b, x] = Fe(() => {
33739
33749
  if (!i) return [null, []];
33740
33750
  const U = n.find((V) => V.id === i), L = U?.featuredTokens || [];
33741
33751
  return [U, L];
33742
- }, [i]), A = To(null);
33752
+ }, [i]), A = Uo(null);
33743
33753
  xe(() => {
33744
33754
  A.current = document.querySelector(".gw-wallet-container");
33745
33755
  }, []);
@@ -33892,7 +33902,7 @@ const bR = ({
33892
33902
  /* @__PURE__ */ S("div", { className: "gw-flex gw-flex-col gw-gap-2", children: [
33893
33903
  /* @__PURE__ */ c("div", { className: "gw-typography-body2 gw-text-brand-gray-500", children: h ? "Search Results" : "Global 24H Volume" }),
33894
33904
  /* @__PURE__ */ c("div", { className: "gw-grid gw-grid-cols-1 gw-mt-2 gw-min-h-0 gw-overflow-auto", children: N ? new Array(12).fill(0).map((U, L) => /* @__PURE__ */ S("div", { className: "gw-w-full", children: [
33895
- /* @__PURE__ */ c(Ze, { className: "gw-flex gw-items-center gw-justify-center gw-h-14" }),
33905
+ /* @__PURE__ */ c(Ge, { className: "gw-flex gw-items-center gw-justify-center gw-h-14" }),
33896
33906
  L < 11 && /* @__PURE__ */ c("hr", { className: "gw-my-2 gw-border-muted gw-mx-2" })
33897
33907
  ] }, L)) : R ? /* @__PURE__ */ S("div", { className: "gw-flex gw-items-center gw-justify-center gw-h-full gw-text-destructive", children: [
33898
33908
  /* @__PURE__ */ c(lu, { className: "gw-size-5" }),
@@ -33992,7 +34002,7 @@ const bR = ({
33992
34002
  topUpDetails: n,
33993
34003
  quoteReady: a
33994
34004
  }) => {
33995
- const { balance: s } = co(vt, e), o = Ya(
34005
+ const { balance: s } = uo(vt, e), o = Ya(
33996
34006
  parseFloat(n?.amountFormatted || "0"),
33997
34007
  Math.min(n?.currency?.decimals || mt, mt)
33998
34008
  ), i = Number(n?.amountUsd || "0"), l = n?.currency;
@@ -34013,7 +34023,7 @@ const bR = ({
34013
34023
  ] }),
34014
34024
  /* @__PURE__ */ S("span", { children: [
34015
34025
  "(",
34016
- Ge(i, "USD"),
34026
+ Ye(i, "USD"),
34017
34027
  ")"
34018
34028
  ] }),
34019
34029
  l?.metadata?.logoURI && /* @__PURE__ */ c(
@@ -34288,7 +34298,7 @@ function SR({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
34288
34298
  tradeType: A === "EXACT_INPUT" ? "EXACT_OUTPUT" : "EXACT_INPUT"
34289
34299
  }), A === "EXACT_INPUT" ? P(E) : ee(w);
34290
34300
  }, z = Fe(
34291
- () => ni(500, (se, E) => {
34301
+ () => ai(500, (se, E) => {
34292
34302
  J(""), y({
34293
34303
  amount: se,
34294
34304
  tradeType: E
@@ -34327,15 +34337,15 @@ function SR({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
34327
34337
  balance: ie,
34328
34338
  isLoading: ce,
34329
34339
  error: ae
34330
- } = co(b?.address, b?.chainId), {
34340
+ } = uo(b?.address, b?.chainId), {
34331
34341
  balance: me,
34332
34342
  isLoading: Ce,
34333
34343
  error: Ne
34334
- } = co(x?.address, x?.chainId), Ve = U?.fees?.gas, ke = Ve?.currency?.address || vt, {
34344
+ } = uo(x?.address, x?.chainId), Ve = U?.fees?.gas, ke = Ve?.currency?.address || vt, {
34335
34345
  balance: de,
34336
34346
  isLoading: Wt,
34337
34347
  error: Qt
34338
- } = co(ke, b?.chainId), pt = b?.decimals && te && ie !== void 0 && Number($r(BigInt(ie), b?.decimals)) < Number(te) ? Nt.INSUFFICENT_BALANCE : null, Xt = Xu(
34348
+ } = uo(ke, b?.chainId), pt = b?.decimals && te && ie !== void 0 && Number($r(BigInt(ie), b?.decimals)) < Number(te) ? Nt.INSUFFICENT_BALANCE : null, Xt = Xu(
34339
34349
  ke,
34340
34350
  b,
34341
34351
  Ve?.amount || "0",
@@ -34388,7 +34398,7 @@ function SR({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
34388
34398
  value: te,
34389
34399
  onChange: (se) => {
34390
34400
  ee(() => {
34391
- const E = yo(
34401
+ const E = Co(
34392
34402
  se.target.value,
34393
34403
  Math.min(
34394
34404
  b?.decimals || mt,
@@ -34421,8 +34431,8 @@ function SR({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
34421
34431
  }
34422
34432
  ) }),
34423
34433
  /* @__PURE__ */ S("div", { className: "gw-flex gw-justify-between gw-items-center gw-w-full gw-text-brand-gray-500", children: [
34424
- at === void 0 ? /* @__PURE__ */ c("div", { className: "gw-h-4 gw-w-1" }) : /* @__PURE__ */ c("div", { className: "gw-typography-caption", children: at < 0.01 ? "<$0.01" : `${Ge(at || "0", "USD")}` }),
34425
- /* @__PURE__ */ c(ve, { children: ce ? /* @__PURE__ */ c("div", { className: "gw-typography-caption gw-flex gw-items-center gw-mr-4", children: /* @__PURE__ */ c(Ze, { className: "gw-h-4 gw-w-10 gw-inline-block gw-ml-0.5" }) }) : ie !== void 0 && b?.decimals ? /* @__PURE__ */ S("div", { className: "gw-typography-caption gw-flex gw-items-center gw-mr-4", children: [
34434
+ at === void 0 ? /* @__PURE__ */ c("div", { className: "gw-h-4 gw-w-1" }) : /* @__PURE__ */ c("div", { className: "gw-typography-caption", children: at < 0.01 ? "<$0.01" : `${Ye(at || "0", "USD")}` }),
34435
+ /* @__PURE__ */ c(ve, { children: ce ? /* @__PURE__ */ c("div", { className: "gw-typography-caption gw-flex gw-items-center gw-mr-4", children: /* @__PURE__ */ c(Ge, { className: "gw-h-4 gw-w-10 gw-inline-block gw-ml-0.5" }) }) : ie !== void 0 && b?.decimals ? /* @__PURE__ */ S("div", { className: "gw-typography-caption gw-flex gw-items-center gw-mr-4", children: [
34426
34436
  Ya(
34427
34437
  parseFloat(
34428
34438
  $r(BigInt(ie), b?.decimals)
@@ -34481,7 +34491,7 @@ function SR({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
34481
34491
  },
34482
34492
  value: H,
34483
34493
  onChange: (se) => P(() => {
34484
- const E = yo(
34494
+ const E = Co(
34485
34495
  se.target.value,
34486
34496
  Math.min(
34487
34497
  x?.decimals || mt,
@@ -34513,8 +34523,8 @@ function SR({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
34513
34523
  }
34514
34524
  ) }),
34515
34525
  /* @__PURE__ */ S("div", { className: "gw-flex gw-justify-between gw-items-center gw-w-full gw-text-brand-gray-500", children: [
34516
- je === void 0 ? /* @__PURE__ */ c("div", { className: "gw-h-4 gw-w-1" }) : /* @__PURE__ */ c("div", { className: "gw-typography-caption", children: je < 0.01 ? "<$0.01" : `${Ge(je || "0", "USD")}` }),
34517
- /* @__PURE__ */ c(ve, { children: Ce ? /* @__PURE__ */ c("div", { className: "gw-typography-caption gw-flex gw-items-center gw-mr-4", children: /* @__PURE__ */ c(Ze, { className: "gw-h-4 gw-w-10 gw-inline-block gw-ml-0.5" }) }) : me !== void 0 && x?.decimals ? /* @__PURE__ */ S("div", { className: "gw-typography-caption gw-flex gw-items-center gw-mr-4", children: [
34526
+ je === void 0 ? /* @__PURE__ */ c("div", { className: "gw-h-4 gw-w-1" }) : /* @__PURE__ */ c("div", { className: "gw-typography-caption", children: je < 0.01 ? "<$0.01" : `${Ye(je || "0", "USD")}` }),
34527
+ /* @__PURE__ */ c(ve, { children: Ce ? /* @__PURE__ */ c("div", { className: "gw-typography-caption gw-flex gw-items-center gw-mr-4", children: /* @__PURE__ */ c(Ge, { className: "gw-h-4 gw-w-10 gw-inline-block gw-ml-0.5" }) }) : me !== void 0 && x?.decimals ? /* @__PURE__ */ S("div", { className: "gw-typography-caption gw-flex gw-items-center gw-mr-4", children: [
34518
34528
  Ya(
34519
34529
  parseFloat(
34520
34530
  $r(BigInt(me), x?.decimals)
@@ -34562,15 +34572,15 @@ function SR({ onBack: e, onEnd: t, onShowActivity: r, setGradientType: n }) {
34562
34572
  "Fees ",
34563
34573
  Q ? "" : `(${S1 / 100}%)`
34564
34574
  ] }),
34565
- /* @__PURE__ */ c("div", { className: "gw-text-brand-gray-500", children: U ? Q ? "0" : xt < 0.01 ? "<$0.01" : `${Ge(xt || "0", "USD")}` : L ? /* @__PURE__ */ c(Ze, { className: "gw-w-6 gw-h-3.5" }) : "-" })
34575
+ /* @__PURE__ */ c("div", { className: "gw-text-brand-gray-500", children: U ? Q ? "0" : xt < 0.01 ? "<$0.01" : `${Ye(xt || "0", "USD")}` : L ? /* @__PURE__ */ c(Ge, { className: "gw-w-6 gw-h-3.5" }) : "-" })
34566
34576
  ] }),
34567
34577
  /* @__PURE__ */ S("div", { className: "gw-flex gw-justify-between gw-items-center gw-mt-1", children: [
34568
34578
  /* @__PURE__ */ c("span", { children: "Network Fees" }),
34569
- /* @__PURE__ */ c("div", { className: "gw-text-brand-gray-500", children: U ? fe < 0.01 ? "<$0.01" : `${Ge(fe || "0", "USD")}` : L ? /* @__PURE__ */ c(Ze, { className: "gw-w-6 gw-h-3.5" }) : "-" })
34579
+ /* @__PURE__ */ c("div", { className: "gw-text-brand-gray-500", children: U ? fe < 0.01 ? "<$0.01" : `${Ye(fe || "0", "USD")}` : L ? /* @__PURE__ */ c(Ge, { className: "gw-w-6 gw-h-3.5" }) : "-" })
34570
34580
  ] }),
34571
34581
  /* @__PURE__ */ S("div", { className: "gw-flex gw-justify-between gw-items-center gw-mt-1", children: [
34572
34582
  /* @__PURE__ */ c("span", { children: "Total" }),
34573
- /* @__PURE__ */ c("div", { className: "gw-text-foreground gw-font-medium", children: U && at ? at < 0.01 ? "<$0.01" : `${Ge(at || "0", "USD")}` : L ? /* @__PURE__ */ c(Ze, { className: "gw-w-6 gw-h-3.5" }) : "-" })
34583
+ /* @__PURE__ */ c("div", { className: "gw-text-foreground gw-font-medium", children: U && at ? at < 0.01 ? "<$0.01" : `${Ye(at || "0", "USD")}` : L ? /* @__PURE__ */ c(Ge, { className: "gw-w-6 gw-h-3.5" }) : "-" })
34574
34584
  ] })
34575
34585
  ] })
34576
34586
  ] }),
@@ -34661,7 +34671,7 @@ const ju = gt(
34661
34671
  ({
34662
34672
  setGradientType: e
34663
34673
  }) => {
34664
- const t = xr(Io);
34674
+ const t = xr(No);
34665
34675
  if (!t) throw new Error("GlyphWidgetWallet must be used within a GlyphViewProvider");
34666
34676
  const { walletMainViewTab: r, setWalletMainViewTab: n, walletView: a, setWalletView: s } = t, [o, i] = re(!1);
34667
34677
  return xe(() => {
@@ -34736,18 +34746,18 @@ const ju = gt(
34736
34746
  className: "gw-absolute gw-top-0 gw-left-0 gw-w-full gw-h-full gw-object-cover gw-object-left-bottom gw-z-0 gw-pointer-events-none gw-rounded-t-3xl md:gw-rounded-3xl"
34737
34747
  }
34738
34748
  ) : null, qM = ({ buttonProps: e }) => {
34739
- const t = "light", r = qx("(min-width: 768px)"), n = xr(Io);
34749
+ const t = "light", r = qx("(min-width: 768px)"), n = xr(No);
34740
34750
  if (!n) throw new Error("GlyphWidget must be used within a GlyphViewProvider");
34741
34751
  const { glyphView: a, setGlyphView: s } = n, { ready: o, authenticated: i, user: l, hideWidget: u } = Me();
34742
34752
  xe(() => {
34743
- (!o || !i) && s(Ye.CLOSED);
34753
+ (!o || !i) && s(Je.CLOSED);
34744
34754
  }, [o, i, s]);
34745
34755
  const [p, d] = re();
34746
34756
  return u ? /* @__PURE__ */ c("div", {}) : /* @__PURE__ */ c("div", { className: "glyph-widget gw-widget-container light", children: o && i && l ? /* @__PURE__ */ c(ve, { children: r ? /* @__PURE__ */ S(
34747
34757
  sI,
34748
34758
  {
34749
- open: a !== Ye.CLOSED,
34750
- onOpenChange: (h) => s(h ? Ye.OPEN : Ye.CLOSED),
34759
+ open: a !== Je.CLOSED,
34760
+ onOpenChange: (h) => s(h ? Je.OPEN : Je.CLOSED),
34751
34761
  children: [
34752
34762
  /* @__PURE__ */ c(oI, { children: /* @__PURE__ */ c(ou, { ...e || {} }) }),
34753
34763
  /* @__PURE__ */ S(iI, { sideOffset: 10, align: "end", className: "glyph-widget gw-wallet-container", children: [
@@ -34762,8 +34772,8 @@ const ju = gt(
34762
34772
  /* @__PURE__ */ S(
34763
34773
  bT,
34764
34774
  {
34765
- open: a !== Ye.CLOSED,
34766
- onOpenChange: (h) => s(h ? Ye.OPEN : Ye.CLOSED),
34775
+ open: a !== Je.CLOSED,
34776
+ onOpenChange: (h) => s(h ? Je.OPEN : Je.CLOSED),
34767
34777
  children: [
34768
34778
  /* @__PURE__ */ c(yT, { children: /* @__PURE__ */ c(ou, { ...e || {} }) }),
34769
34779
  /* @__PURE__ */ S(vT, { className: "glyph-widget", children: [
@@ -34821,7 +34831,7 @@ function UR({ children: e }) {
34821
34831
  return /* @__PURE__ */ c(Bf.Provider, { value: { ...r, update: a, reportSwapFailed: s }, children: e });
34822
34832
  }
34823
34833
  const jt = os("GlyphData");
34824
- let Yi = null;
34834
+ let Xi = null;
34825
34835
  const IR = ({ children: e }) => {
34826
34836
  const t = xr(_l);
34827
34837
  if (!t) throw new Error("GlyphUserDataProvider must be used within GlyphProvider");
@@ -34868,10 +34878,10 @@ const IR = ({ children: e }) => {
34868
34878
  enabled: r && n && !!a && !!u,
34869
34879
  refetchInterval: Lx,
34870
34880
  queryFn: async () => {
34871
- if (Yi?.abort?.(), !a)
34881
+ if (Xi?.abort?.(), !a)
34872
34882
  return jt.warn("widget balances fetch not available"), null;
34873
- Yi = new AbortController();
34874
- const A = Yi.signal;
34883
+ Xi = new AbortController();
34884
+ const A = Xi.signal;
34875
34885
  try {
34876
34886
  const k = await a(`/api/widget/balances?chainId=${l}`, {
34877
34887
  signal: A
@@ -34922,7 +34932,7 @@ const IR = ({ children: e }) => {
34922
34932
  [p]
34923
34933
  ), x = !!h;
34924
34934
  return /* @__PURE__ */ c(
34925
- No.Provider,
34935
+ Bo.Provider,
34926
34936
  {
34927
34937
  value: {
34928
34938
  user: u ?? null,
@@ -34940,50 +34950,50 @@ const IR = ({ children: e }) => {
34940
34950
  }
34941
34951
  );
34942
34952
  }, ep = Ue.MAIN, tp = Le.HOME, rp = os("GlyphViewProvider"), NR = ({ children: e }) => {
34943
- const t = xr(No);
34953
+ const t = xr(Bo);
34944
34954
  if (!t) throw new Error("GlyphViewProvider must be used within GlyphProvider");
34945
- const { user: r } = t, [n, a] = re(ep), [s, o] = re(tp), [i, l] = re(Ye.CLOSED);
34955
+ const { user: r } = t, [n, a] = re(ep), [s, o] = re(tp), [i, l] = re(Je.CLOSED);
34946
34956
  return xe(() => {
34947
34957
  switch (i) {
34948
- case Ye.CLOSED:
34958
+ case Je.CLOSED:
34949
34959
  break;
34950
34960
  // reset
34951
- case Ye.OPEN:
34961
+ case Je.OPEN:
34952
34962
  a(ep), o(tp);
34953
34963
  break;
34954
34964
  // non main views
34955
- case Ye.FUND:
34965
+ case Je.FUND:
34956
34966
  a(Ue.FUND);
34957
34967
  break;
34958
- case Ye.SWAP:
34968
+ case Je.SWAP:
34959
34969
  a(Ue.SWAP);
34960
34970
  break;
34961
- case Ye.SEND:
34971
+ case Je.SEND:
34962
34972
  a(Ue.SEND);
34963
34973
  break;
34964
- case Ye.RECEIVE:
34974
+ case Je.RECEIVE:
34965
34975
  a(Ue.RECEIVE);
34966
34976
  break;
34967
- case Ye.PROFILE:
34968
- r?.hasProfile ? a(Ue.PROFILE) : (rp.warn("Cannot open Profile view for a non-Glyph user - directing to Home view"), l(Ye.OPEN));
34977
+ case Je.PROFILE:
34978
+ r?.hasProfile ? a(Ue.PROFILE) : (rp.warn("Cannot open Profile view for a non-Glyph user - directing to Home view"), l(Je.OPEN));
34969
34979
  break;
34970
34980
  // MAIN by default uses HOME screen
34971
- case Ye.MAIN:
34972
- a(Ue.MAIN), o(Ye.HOME);
34981
+ case Je.MAIN:
34982
+ a(Ue.MAIN), o(Je.HOME);
34973
34983
  break;
34974
34984
  // these others are subviews of MAIN
34975
- case Ye.LINKED_ACCOUNTS:
34976
- r?.hasProfile ? (a(Ue.MAIN), o(Ye.LINKED_ACCOUNTS)) : (rp.warn("Cannot open Linked Accounts view for a non-Glyph user - directing to Home view"), l(Ye.OPEN));
34985
+ case Je.LINKED_ACCOUNTS:
34986
+ r?.hasProfile ? (a(Ue.MAIN), o(Je.LINKED_ACCOUNTS)) : (rp.warn("Cannot open Linked Accounts view for a non-Glyph user - directing to Home view"), l(Je.OPEN));
34977
34987
  break;
34978
- case Ye.HOME:
34979
- case Ye.ACTIVITY:
34980
- case Ye.TOKENS:
34981
- case Ye.NFTS:
34988
+ case Je.HOME:
34989
+ case Je.ACTIVITY:
34990
+ case Je.TOKENS:
34991
+ case Je.NFTS:
34982
34992
  a(Ue.MAIN), o(i);
34983
34993
  break;
34984
34994
  }
34985
34995
  }, [i, r?.hasProfile]), /* @__PURE__ */ c(
34986
- Io.Provider,
34996
+ No.Provider,
34987
34997
  {
34988
34998
  value: {
34989
34999
  glyphView: i,
@@ -35003,7 +35013,7 @@ const IR = ({ children: e }) => {
35003
35013
  useStagingTenant: n,
35004
35014
  ...a
35005
35015
  }) => {
35006
- const s = Uo();
35016
+ const s = Io();
35007
35017
  xe(() => {
35008
35018
  if (s.chains) {
35009
35019
  const p = new Set(ut.chains.map((f) => f.id)), d = new Set(s.chains.map((f) => f.id));
@@ -35038,7 +35048,7 @@ const IR = ({ children: e }) => {
35038
35048
  const l = await i.json();
35039
35049
  if (Array.isArray(l.supportedChains) && Array.isArray(l.chains) && l.supportedChains.length > 0 && l.chains.length > 0)
35040
35050
  r(l.supportedChains), a(
35041
- l.chains.map((u) => Po(u).viemChain)
35051
+ l.chains.map((u) => Jo(u).viemChain)
35042
35052
  ), ut.configure({
35043
35053
  chains: l.chains
35044
35054
  });
@@ -35082,7 +35092,7 @@ function GM() {
35082
35092
  }, [r, t]), isOwnershipCheckLoading: n };
35083
35093
  }
35084
35094
  const ZM = () => {
35085
- const e = xr(Io);
35095
+ const e = xr(No);
35086
35096
  if (e === void 0) throw new Error("useGlyphView must be used within a GlyphViewProvider");
35087
35097
  const { setGlyphView: t } = e;
35088
35098
  return {
@@ -35113,7 +35123,7 @@ var Wf = function(e, t, r, n) {
35113
35123
  if (r === "a" && !n) throw new TypeError("Private accessor was defined without a getter");
35114
35124
  if (typeof t == "function" ? e !== t || !n : !t.has(e)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
35115
35125
  return r === "m" ? n : r === "a" ? n.call(e) : n ? n.value : t.get(e);
35116
- }, Eo, Lf;
35126
+ }, vo, Lf;
35117
35127
  class $a extends Error {
35118
35128
  get docsBaseUrl() {
35119
35129
  return "https://wagmi.sh/core";
@@ -35122,7 +35132,7 @@ class $a extends Error {
35122
35132
  return VR();
35123
35133
  }
35124
35134
  constructor(t, r = {}) {
35125
- super(), Eo.add(this), Object.defineProperty(this, "details", {
35135
+ super(), vo.add(this), Object.defineProperty(this, "details", {
35126
35136
  enumerable: !0,
35127
35137
  configurable: !0,
35128
35138
  writable: !0,
@@ -35162,11 +35172,11 @@ class $a extends Error {
35162
35172
  `), r.cause && (this.cause = r.cause), this.details = n, this.docsPath = a, this.metaMessages = r.metaMessages, this.shortMessage = t;
35163
35173
  }
35164
35174
  walk(t) {
35165
- return Wf(this, Eo, "m", Lf).call(this, this, t);
35175
+ return Wf(this, vo, "m", Lf).call(this, this, t);
35166
35176
  }
35167
35177
  }
35168
- Eo = /* @__PURE__ */ new WeakSet(), Lf = function e(t, r) {
35169
- return r?.(t) ? t : t.cause ? Wf(this, Eo, "m", e).call(this, t.cause, r) : t;
35178
+ vo = /* @__PURE__ */ new WeakSet(), Lf = function e(t, r) {
35179
+ return r?.(t) ? t : t.cause ? Wf(this, vo, "m", e).call(this, t.cause, r) : t;
35170
35180
  };
35171
35181
  class WR extends $a {
35172
35182
  constructor() {
@@ -35178,7 +35188,7 @@ class WR extends $a {
35178
35188
  });
35179
35189
  }
35180
35190
  }
35181
- class Xi extends $a {
35191
+ class Hi extends $a {
35182
35192
  constructor() {
35183
35193
  super("Provider not found."), Object.defineProperty(this, "name", {
35184
35194
  enumerable: !0,
@@ -35194,7 +35204,7 @@ async function LR({ providerAppId: e, apiUrl: t }) {
35194
35204
  }
35195
35205
  /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
35196
35206
  const od = /* @__PURE__ */ BigInt(0), Dl = /* @__PURE__ */ BigInt(1);
35197
- function vo(e, t = "") {
35207
+ function Ao(e, t = "") {
35198
35208
  if (typeof e != "boolean") {
35199
35209
  const r = t && `"${t}"`;
35200
35210
  throw new Error(r + "expected boolean, got type=" + typeof e);
@@ -35202,7 +35212,7 @@ function vo(e, t = "") {
35202
35212
  return e;
35203
35213
  }
35204
35214
  function mn(e, t, r = "") {
35205
- const n = Fo(e), a = e?.length, s = t !== void 0;
35215
+ const n = Mo(e), a = e?.length, s = t !== void 0;
35206
35216
  if (!n || s && a !== t) {
35207
35217
  const o = r && `"${r}" `, i = s ? ` of length ${t}` : "", l = n ? `length=${a}` : `type=${typeof e}`;
35208
35218
  throw new Error(o + "expected Uint8Array" + i + ", got " + l);
@@ -35218,14 +35228,14 @@ function Of(e) {
35218
35228
  throw new Error("hex string expected, got " + typeof e);
35219
35229
  return e === "" ? od : BigInt("0x" + e);
35220
35230
  }
35221
- function pi(e) {
35231
+ function mi(e) {
35222
35232
  return Of(Kn(e));
35223
35233
  }
35224
35234
  function qf(e) {
35225
35235
  return Lr(e), Of(Kn(Uint8Array.from(e).reverse()));
35226
35236
  }
35227
35237
  function id(e, t) {
35228
- return uo(e.toString(16).padStart(t * 2, "0"));
35238
+ return po(e.toString(16).padStart(t * 2, "0"));
35229
35239
  }
35230
35240
  function Kf(e, t) {
35231
35241
  return id(e, t).reverse();
@@ -35234,19 +35244,19 @@ function Ut(e, t, r) {
35234
35244
  let n;
35235
35245
  if (typeof t == "string")
35236
35246
  try {
35237
- n = uo(t);
35247
+ n = po(t);
35238
35248
  } catch (a) {
35239
35249
  throw new Error(e + " must be hex string or Uint8Array, cause: " + a);
35240
35250
  }
35241
- else if (Fo(t))
35251
+ else if (Mo(t))
35242
35252
  n = Uint8Array.from(t);
35243
35253
  else
35244
35254
  throw new Error(e + " must be hex string or Uint8Array");
35245
35255
  return n.length, n;
35246
35256
  }
35247
- const Hi = (e) => typeof e == "bigint" && od <= e;
35257
+ const ji = (e) => typeof e == "bigint" && od <= e;
35248
35258
  function OR(e, t, r) {
35249
- return Hi(e) && Hi(t) && Hi(r) && t <= e && e < r;
35259
+ return ji(e) && ji(t) && ji(r) && t <= e && e < r;
35250
35260
  }
35251
35261
  function qR(e, t, r, n) {
35252
35262
  if (!OR(t, r, n))
@@ -35514,7 +35524,7 @@ function ms(e, t, r = !1, n = {}) {
35514
35524
  }
35515
35525
  if (h.length !== u)
35516
35526
  throw new Error("Field.fromBytes: expected " + u + " bytes, got " + h.length);
35517
- let y = r ? qf(h) : pi(h);
35527
+ let y = r ? qf(h) : mi(h);
35518
35528
  if (o && (y = $t(y, e)), !f && !d.isValid(y))
35519
35529
  throw new Error("invalid field element: outside of range 0..ORDER");
35520
35530
  return y;
@@ -35541,16 +35551,16 @@ function XR(e, t, r = !1) {
35541
35551
  const n = e.length, a = jf(t), s = _f(t);
35542
35552
  if (n < 16 || n < s || n > 1024)
35543
35553
  throw new Error("expected " + s + "-1024 bytes of input, got " + n);
35544
- const o = r ? qf(e) : pi(e), i = $t(o, t - kt) + kt;
35554
+ const o = r ? qf(e) : mi(e), i = $t(o, t - kt) + kt;
35545
35555
  return r ? Kf(i, a) : id(i, a);
35546
35556
  }
35547
35557
  /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
35548
35558
  const ra = BigInt(0), fn = BigInt(1);
35549
- function Ao(e, t) {
35559
+ function ko(e, t) {
35550
35560
  const r = t.negate();
35551
35561
  return e ? r : t;
35552
35562
  }
35553
- function ji(e, t) {
35563
+ function _i(e, t) {
35554
35564
  const r = Xf(e.Fp, t.map((n) => n.Z));
35555
35565
  return t.map((n, a) => e.fromAffine(n.toAffine(r[a])));
35556
35566
  }
@@ -35558,7 +35568,7 @@ function $f(e, t) {
35558
35568
  if (!Number.isSafeInteger(e) || e <= 0 || e > t)
35559
35569
  throw new Error("invalid window size, expected [1.." + t + "], got W=" + e);
35560
35570
  }
35561
- function _i(e, t) {
35571
+ function $i(e, t) {
35562
35572
  $f(e, t);
35563
35573
  const r = Math.ceil(t / e) + 1, n = 2 ** (e - 1), a = 2 ** e, s = ps(e), o = BigInt(e);
35564
35574
  return { windows: r, windowSize: n, mask: s, maxNumber: a, shiftBy: o };
@@ -35586,8 +35596,8 @@ function jR(e, t) {
35586
35596
  throw new Error("invalid scalar at index " + n);
35587
35597
  });
35588
35598
  }
35589
- const $i = /* @__PURE__ */ new WeakMap(), e0 = /* @__PURE__ */ new WeakMap();
35590
- function el(e) {
35599
+ const el = /* @__PURE__ */ new WeakMap(), e0 = /* @__PURE__ */ new WeakMap();
35600
+ function tl(e) {
35591
35601
  return e0.get(e) || 1;
35592
35602
  }
35593
35603
  function ip(e) {
@@ -35619,7 +35629,7 @@ class _R {
35619
35629
  * @returns precomputed point tables flattened to a single array
35620
35630
  */
35621
35631
  precomputeWindow(t, r) {
35622
- const { windows: n, windowSize: a } = _i(r, this.bits), s = [];
35632
+ const { windows: n, windowSize: a } = $i(r, this.bits), s = [];
35623
35633
  let o = t, i = o;
35624
35634
  for (let l = 0; l < n; l++) {
35625
35635
  i = o, s.push(i);
@@ -35639,10 +35649,10 @@ class _R {
35639
35649
  if (!this.Fn.isValid(n))
35640
35650
  throw new Error("invalid scalar");
35641
35651
  let a = this.ZERO, s = this.BASE;
35642
- const o = _i(t, this.bits);
35652
+ const o = $i(t, this.bits);
35643
35653
  for (let i = 0; i < o.windows; i++) {
35644
35654
  const { nextN: l, offset: u, isZero: p, isNeg: d, isNegF: h, offsetF: f } = op(n, i, o);
35645
- n = l, p ? s = s.add(Ao(h, r[f])) : a = a.add(Ao(d, r[u]));
35655
+ n = l, p ? s = s.add(ko(h, r[f])) : a = a.add(ko(d, r[u]));
35646
35656
  }
35647
35657
  return ip(n), { p: a, f: s };
35648
35658
  }
@@ -35652,7 +35662,7 @@ class _R {
35652
35662
  * @returns point
35653
35663
  */
35654
35664
  wNAFUnsafe(t, r, n, a = this.ZERO) {
35655
- const s = _i(t, this.bits);
35665
+ const s = $i(t, this.bits);
35656
35666
  for (let o = 0; o < s.windows && n !== ra; o++) {
35657
35667
  const { nextN: i, offset: l, isZero: u, isNeg: p } = op(n, o, s);
35658
35668
  if (n = i, !u) {
@@ -35663,25 +35673,25 @@ class _R {
35663
35673
  return ip(n), a;
35664
35674
  }
35665
35675
  getPrecomputes(t, r, n) {
35666
- let a = $i.get(r);
35667
- return a || (a = this.precomputeWindow(r, t), t !== 1 && (typeof n == "function" && (a = n(a)), $i.set(r, a))), a;
35676
+ let a = el.get(r);
35677
+ return a || (a = this.precomputeWindow(r, t), t !== 1 && (typeof n == "function" && (a = n(a)), el.set(r, a))), a;
35668
35678
  }
35669
35679
  cached(t, r, n) {
35670
- const a = el(t);
35680
+ const a = tl(t);
35671
35681
  return this.wNAF(a, this.getPrecomputes(a, t, n), r);
35672
35682
  }
35673
35683
  unsafe(t, r, n, a) {
35674
- const s = el(t);
35684
+ const s = tl(t);
35675
35685
  return s === 1 ? this._unsafeLadder(t, r, a) : this.wNAFUnsafe(s, this.getPrecomputes(s, t, n), r, a);
35676
35686
  }
35677
35687
  // We calculate precomputes for elliptic curve point multiplication
35678
35688
  // using windowed method. This specifies window size and
35679
35689
  // stores precomputed values. Usually only base point would be precomputed.
35680
35690
  createCache(t, r) {
35681
- $f(r, this.bits), e0.set(t, r), $i.delete(t);
35691
+ $f(r, this.bits), e0.set(t, r), el.delete(t);
35682
35692
  }
35683
35693
  hasCache(t) {
35684
- return el(t) !== 1;
35694
+ return tl(t) !== 1;
35685
35695
  }
35686
35696
  }
35687
35697
  function $R(e, t, r, n) {
@@ -35754,11 +35764,11 @@ function Gl(e) {
35754
35764
  throw new Error('Signature format must be "compact", "recovered", or "der"');
35755
35765
  return e;
35756
35766
  }
35757
- function tl(e, t) {
35767
+ function rl(e, t) {
35758
35768
  const r = {};
35759
35769
  for (let n of Object.keys(t))
35760
35770
  r[n] = e[n] === void 0 ? t[n] : e[n];
35761
- return vo(r.lowS, "lowS"), vo(r.prehash, "prehash"), r.format !== void 0 && Gl(r.format), r;
35771
+ return Ao(r.lowS, "lowS"), Ao(r.prehash, "prehash"), r.format !== void 0 && Gl(r.format), r;
35762
35772
  }
35763
35773
  class nF extends Error {
35764
35774
  constructor(t = "") {
@@ -35836,7 +35846,7 @@ const Rr = {
35836
35846
  throw new t("invalid signature integer: negative");
35837
35847
  if (e[0] === 0 && !(e[1] & 128))
35838
35848
  throw new t("invalid signature integer: unnecessary leading zero");
35839
- return pi(e);
35849
+ return mi(e);
35840
35850
  }
35841
35851
  },
35842
35852
  toSig(e) {
@@ -35893,7 +35903,7 @@ function sF(e, t = {}) {
35893
35903
  }
35894
35904
  function d(Z, T, M) {
35895
35905
  const { x: F, y: O } = T.toAffine(), z = n.toBytes(F);
35896
- if (vo(M, "isCompressed"), M) {
35906
+ if (Ao(M, "isCompressed"), M) {
35897
35907
  p();
35898
35908
  const G = !n.isOdd(O);
35899
35909
  return _r(r0(G), z);
@@ -35982,7 +35992,7 @@ function sF(e, t = {}) {
35982
35992
  return !0;
35983
35993
  });
35984
35994
  function L(Z, T, M, F, O) {
35985
- return M = new V(n.mul(M.X, Z), M.Y, M.Z), T = Ao(F, T), M = Ao(O, M), T.add(M);
35995
+ return M = new V(n.mul(M.X, Z), M.Y, M.Z), T = ko(F, T), M = ko(O, M), T.add(M);
35986
35996
  }
35987
35997
  class V {
35988
35998
  /** Does NOT validate if the point is valid. Use `.assertValidity()`. */
@@ -36087,7 +36097,7 @@ function sF(e, t = {}) {
36087
36097
  if (!a.isValidNot0(T))
36088
36098
  throw new Error("invalid scalar: out of range");
36089
36099
  let F, O;
36090
- const z = (G) => Q.cached(this, G, (J) => ji(V, J));
36100
+ const z = (G) => Q.cached(this, G, (J) => _i(V, J));
36091
36101
  if (M) {
36092
36102
  const { k1neg: G, k1: J, k2neg: _, k2: j } = N(T), { p: te, f: ee } = z(J), { p: H, f: P } = z(j);
36093
36103
  O = ee.add(P), F = L(M.beta, te, H, G, _);
@@ -36095,7 +36105,7 @@ function sF(e, t = {}) {
36095
36105
  const { p: G, f: J } = z(T);
36096
36106
  F = G, O = J;
36097
36107
  }
36098
- return ji(V, [F, O])[0];
36108
+ return _i(V, [F, O])[0];
36099
36109
  }
36100
36110
  /**
36101
36111
  * Non-constant-time multiplication. Uses double-and-add algorithm.
@@ -36145,7 +36155,7 @@ function sF(e, t = {}) {
36145
36155
  return this.multiplyUnsafe(o).is0();
36146
36156
  }
36147
36157
  toBytes(T = !0) {
36148
- return vo(T, "isCompressed"), this.assertValidity(), f(V, this, T);
36158
+ return Ao(T, "isCompressed"), this.assertValidity(), f(V, this, T);
36149
36159
  }
36150
36160
  toHex(T = !0) {
36151
36161
  return Kn(this.toBytes(T));
@@ -36170,7 +36180,7 @@ function sF(e, t = {}) {
36170
36180
  this.precompute(T);
36171
36181
  }
36172
36182
  static normalizeZ(T) {
36173
- return ji(V, T);
36183
+ return _i(V, T);
36174
36184
  }
36175
36185
  static msm(T, M) {
36176
36186
  return eF(V, a, T, M);
@@ -36300,7 +36310,7 @@ function iF(e, t, r = {}) {
36300
36310
  return new k(o.fromBytes(J), o.fromBytes(_), z);
36301
36311
  }
36302
36312
  static fromHex(F, O) {
36303
- return this.fromBytes(uo(F), O);
36313
+ return this.fromBytes(po(F), O);
36304
36314
  }
36305
36315
  addRecoveryBit(F) {
36306
36316
  return new k(this.r, this.s, F);
@@ -36325,7 +36335,7 @@ function iF(e, t, r = {}) {
36325
36335
  }
36326
36336
  toBytes(F = C) {
36327
36337
  if (Gl(F), F === "der")
36328
- return uo(Rr.hexFromSig(this));
36338
+ return po(Rr.hexFromSig(this));
36329
36339
  const O = o.toBytes(this.r), z = o.toBytes(this.s);
36330
36340
  if (F === "recovered") {
36331
36341
  if (this.recovery == null)
@@ -36365,7 +36375,7 @@ function iF(e, t, r = {}) {
36365
36375
  const v = r.bits2int || function(F) {
36366
36376
  if (F.length > 8192)
36367
36377
  throw new Error("input is too large");
36368
- const O = pi(F), z = F.length * 8 - l;
36378
+ const O = mi(F), z = F.length * 8 - l;
36369
36379
  return z > 0 ? O >> BigInt(z) : O;
36370
36380
  }, N = r.bits2int_modN || function(F) {
36371
36381
  return o.create(v(F));
@@ -36379,7 +36389,7 @@ function iF(e, t, r = {}) {
36379
36389
  function V(M, F, O) {
36380
36390
  if (["recovered", "canonical"].some((ie) => ie in O))
36381
36391
  throw new Error("sign() legacy options not supported");
36382
- const { lowS: z, prehash: G, extraEntropy: J } = tl(O, y);
36392
+ const { lowS: z, prehash: G, extraEntropy: J } = rl(O, y);
36383
36393
  M = L(M, G);
36384
36394
  const _ = N(M), j = qn(o, F), te = [U(j), U(_)];
36385
36395
  if (J != null && J !== !1) {
@@ -36409,7 +36419,7 @@ function iF(e, t, r = {}) {
36409
36419
  }
36410
36420
  function Q(M) {
36411
36421
  let F;
36412
- const O = typeof M == "string" || Fo(M), z = !O && M !== null && typeof M == "object" && typeof M.r == "bigint" && typeof M.s == "bigint";
36422
+ const O = typeof M == "string" || Mo(M), z = !O && M !== null && typeof M == "object" && typeof M.r == "bigint" && typeof M.s == "bigint";
36413
36423
  if (!O && !z)
36414
36424
  throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");
36415
36425
  if (z)
@@ -36431,7 +36441,7 @@ function iF(e, t, r = {}) {
36431
36441
  return F || !1;
36432
36442
  }
36433
36443
  function Z(M, F, O, z = {}) {
36434
- const { lowS: G, prehash: J, format: _ } = tl(z, y);
36444
+ const { lowS: G, prehash: J, format: _ } = rl(z, y);
36435
36445
  if (O = Ut("publicKey", O), F = L(Ut("message", F), J), "strict" in z)
36436
36446
  throw new Error("options.strict was renamed to lowS");
36437
36447
  const j = _ === void 0 ? Q(M) : k.fromBytes(Ut("sig", M), _);
@@ -36448,7 +36458,7 @@ function iF(e, t, r = {}) {
36448
36458
  }
36449
36459
  }
36450
36460
  function T(M, F, O = {}) {
36451
- const { prehash: z } = tl(O, y);
36461
+ const { prehash: z } = rl(O, y);
36452
36462
  return F = L(F, z), k.fromBytes(M, "recovered").recoverPublicKey(F).toBytes();
36453
36463
  }
36454
36464
  return Object.freeze({
@@ -36627,7 +36637,7 @@ function yF(e, t = "=") {
36627
36637
  }
36628
36638
  };
36629
36639
  }
36630
- const a0 = /* @__NO_SIDE_EFFECTS__ */ (e, t) => t ? /* @__PURE__ */ a0(t, e % t) : e, ko = /* @__NO_SIDE_EFFECTS__ */ (e, t) => e + (t - /* @__PURE__ */ a0(e, t));
36640
+ const a0 = /* @__NO_SIDE_EFFECTS__ */ (e, t) => t ? /* @__PURE__ */ a0(t, e % t) : e, So = /* @__NO_SIDE_EFFECTS__ */ (e, t) => e + (t - /* @__PURE__ */ a0(e, t));
36631
36641
  // @__NO_SIDE_EFFECTS__
36632
36642
  function up(e, t, r, n) {
36633
36643
  if (!Array.isArray(e))
@@ -36636,8 +36646,8 @@ function up(e, t, r, n) {
36636
36646
  throw new Error(`convertRadix2: wrong from=${t}`);
36637
36647
  if (r <= 0 || r > 32)
36638
36648
  throw new Error(`convertRadix2: wrong to=${r}`);
36639
- if (/* @__PURE__ */ ko(t, r) > 32)
36640
- throw new Error(`convertRadix2: carry overflow from=${t} to=${r} carryBits=${/* @__PURE__ */ ko(t, r)}`);
36649
+ if (/* @__PURE__ */ So(t, r) > 32)
36650
+ throw new Error(`convertRadix2: carry overflow from=${t} to=${r} carryBits=${/* @__PURE__ */ So(t, r)}`);
36641
36651
  let a = 0, s = 0;
36642
36652
  const o = 2 ** r - 1, i = [];
36643
36653
  for (const l of e) {
@@ -36659,7 +36669,7 @@ function up(e, t, r, n) {
36659
36669
  function CF(e, t = !1) {
36660
36670
  if (e <= 0 || e > 32)
36661
36671
  throw new Error("radix2: bits should be in (0..32]");
36662
- if (/* @__PURE__ */ ko(8, e) > 32 || /* @__PURE__ */ ko(e, 8) > 32)
36672
+ if (/* @__PURE__ */ So(8, e) > 32 || /* @__PURE__ */ So(e, 8) > 32)
36663
36673
  throw new Error("radix2: carry overflow");
36664
36674
  return {
36665
36675
  encode: (r) => {
@@ -36675,7 +36685,7 @@ function CF(e, t = !1) {
36675
36685
  };
36676
36686
  }
36677
36687
  const nr = /* @__PURE__ */ gF(/* @__PURE__ */ CF(6), /* @__PURE__ */ wF("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"), /* @__PURE__ */ yF(6), /* @__PURE__ */ bF(""));
36678
- var rl = {}, Fa = {}, pp;
36688
+ var nl = {}, Fa = {}, pp;
36679
36689
  function xF() {
36680
36690
  if (pp) return Fa;
36681
36691
  pp = 1, Fa.byteLength = i, Fa.toByteArray = u, Fa.fromByteArray = h;
@@ -37695,9 +37705,9 @@ function vF() {
37695
37705
  function se() {
37696
37706
  throw new Error("BigInt not supported");
37697
37707
  }
37698
- })(rl)), rl;
37708
+ })(nl)), nl;
37699
37709
  }
37700
- var AF = vF(), bt = Uint8Array, Kt = Uint16Array, ud = Int32Array, mi = new bt([
37710
+ var AF = vF(), bt = Uint8Array, Kt = Uint16Array, ud = Int32Array, hi = new bt([
37701
37711
  0,
37702
37712
  0,
37703
37713
  0,
@@ -37732,7 +37742,7 @@ var AF = vF(), bt = Uint8Array, Kt = Uint16Array, ud = Int32Array, mi = new bt([
37732
37742
  0,
37733
37743
  /* impossible */
37734
37744
  0
37735
- ]), hi = new bt([
37745
+ ]), fi = new bt([
37736
37746
  0,
37737
37747
  0,
37738
37748
  0,
@@ -37773,9 +37783,9 @@ var AF = vF(), bt = Uint8Array, Kt = Uint16Array, ud = Int32Array, mi = new bt([
37773
37783
  for (var s = r[n]; s < r[n + 1]; ++s)
37774
37784
  a[s] = s - r[n] << 5 | n;
37775
37785
  return { b: r, r: a };
37776
- }, o0 = s0(mi, 2), i0 = o0.b, Jl = o0.r;
37786
+ }, o0 = s0(hi, 2), i0 = o0.b, Jl = o0.r;
37777
37787
  i0[28] = 258, Jl[258] = 28;
37778
- var l0 = s0(hi, 0), kF = l0.b, fp = l0.r, Yl = new Kt(32768);
37788
+ var l0 = s0(fi, 0), kF = l0.b, fp = l0.r, Yl = new Kt(32768);
37779
37789
  for (var Xe = 0; Xe < 32768; ++Xe) {
37780
37790
  var Xr = (Xe & 43690) >> 1 | (Xe & 21845) << 1;
37781
37791
  Xr = (Xr & 52428) >> 2 | (Xr & 13107) << 2, Xr = (Xr & 61680) >> 4 | (Xr & 3855) << 4, Yl[Xe] = ((Xr & 65280) >> 8 | (Xr & 255) << 8) >> 1;
@@ -37810,14 +37820,14 @@ for (var Xe = 280; Xe < 288; ++Xe)
37810
37820
  var es = new bt(32);
37811
37821
  for (var Xe = 0; Xe < 32; ++Xe)
37812
37822
  es[Xe] = 5;
37813
- var SF = /* @__PURE__ */ Cr(sn, 9, 0), TF = /* @__PURE__ */ Cr(sn, 9, 1), UF = /* @__PURE__ */ Cr(es, 5, 0), IF = /* @__PURE__ */ Cr(es, 5, 1), nl = function(e) {
37823
+ var SF = /* @__PURE__ */ Cr(sn, 9, 0), TF = /* @__PURE__ */ Cr(sn, 9, 1), UF = /* @__PURE__ */ Cr(es, 5, 0), IF = /* @__PURE__ */ Cr(es, 5, 1), al = function(e) {
37814
37824
  for (var t = e[0], r = 1; r < e.length; ++r)
37815
37825
  e[r] > t && (t = e[r]);
37816
37826
  return t;
37817
37827
  }, _t = function(e, t, r) {
37818
37828
  var n = t / 8 | 0;
37819
37829
  return (e[n] | e[n + 1] << 8) >> (t & 7) & r;
37820
- }, al = function(e, t) {
37830
+ }, sl = function(e, t) {
37821
37831
  var r = t / 8 | 0;
37822
37832
  return (e[r] | e[r + 1] << 8 | e[r + 2] << 16) >> (t & 7);
37823
37833
  }, pd = function(e) {
@@ -37871,7 +37881,7 @@ var SF = /* @__PURE__ */ Cr(sn, 9, 0), TF = /* @__PURE__ */ Cr(sn, 9, 1), UF = /
37871
37881
  for (var V = new bt(L), X = new bt(19), Q = 0; Q < U; ++Q)
37872
37882
  X[Pl[Q]] = _t(e, d + Q * 3, 7);
37873
37883
  d += U * 3;
37874
- for (var Z = nl(X), T = (1 << Z) - 1, M = Cr(X, Z, 1), Q = 0; Q < L; ) {
37884
+ for (var Z = al(X), T = (1 << Z) - 1, M = Cr(X, Z, 1), Q = 0; Q < L; ) {
37875
37885
  var F = M[_t(e, d, T)];
37876
37886
  d += F & 15;
37877
37887
  var k = F >> 4;
@@ -37884,7 +37894,7 @@ var SF = /* @__PURE__ */ Cr(sn, 9, 0), TF = /* @__PURE__ */ Cr(sn, 9, 1), UF = /
37884
37894
  }
37885
37895
  }
37886
37896
  var G = V.subarray(0, R), J = V.subarray(R);
37887
- C = nl(G), b = nl(J), f = Cr(G, C, 1), y = Cr(J, b, 1);
37897
+ C = al(G), b = al(J), f = Cr(G, C, 1), y = Cr(J, b, 1);
37888
37898
  } else
37889
37899
  er(1);
37890
37900
  else {
@@ -37903,7 +37913,7 @@ var SF = /* @__PURE__ */ Cr(sn, 9, 0), TF = /* @__PURE__ */ Cr(sn, 9, 1), UF = /
37903
37913
  }
37904
37914
  i && u(h + 131072);
37905
37915
  for (var _ = (1 << C) - 1, j = (1 << b) - 1, te = d; ; te = d) {
37906
- var O = f[al(e, d) & _], ee = O >> 4;
37916
+ var O = f[sl(e, d) & _], ee = O >> 4;
37907
37917
  if (d += O & 15, d > x) {
37908
37918
  l && er(0);
37909
37919
  break;
@@ -37916,15 +37926,15 @@ var SF = /* @__PURE__ */ Cr(sn, 9, 0), TF = /* @__PURE__ */ Cr(sn, 9, 1), UF = /
37916
37926
  } else {
37917
37927
  var H = ee - 254;
37918
37928
  if (ee > 264) {
37919
- var Q = ee - 257, P = mi[Q];
37929
+ var Q = ee - 257, P = hi[Q];
37920
37930
  H = _t(e, d, (1 << P) - 1) + i0[Q], d += P;
37921
37931
  }
37922
- var ie = y[al(e, d) & j], ce = ie >> 4;
37932
+ var ie = y[sl(e, d) & j], ce = ie >> 4;
37923
37933
  ie || er(3), d += ie & 15;
37924
37934
  var J = kF[ce];
37925
37935
  if (ce > 3) {
37926
- var P = hi[ce];
37927
- J += al(e, d) & (1 << P) - 1, d += P;
37936
+ var P = fi[ce];
37937
+ J += sl(e, d) & (1 << P) - 1, d += P;
37928
37938
  }
37929
37939
  if (d > x) {
37930
37940
  l && er(0);
@@ -37952,7 +37962,7 @@ var SF = /* @__PURE__ */ Cr(sn, 9, 0), TF = /* @__PURE__ */ Cr(sn, 9, 1), UF = /
37952
37962
  r <<= t & 7;
37953
37963
  var n = t / 8 | 0;
37954
37964
  e[n] |= r, e[n + 1] |= r >> 8, e[n + 2] |= r >> 16;
37955
- }, sl = function(e, t) {
37965
+ }, ol = function(e, t) {
37956
37966
  for (var r = [], n = 0; n < e.length; ++n)
37957
37967
  e[n] && r.push({ s: n, f: e[n] });
37958
37968
  var a = r.length, s = r.slice();
@@ -38030,11 +38040,11 @@ var SF = /* @__PURE__ */ Cr(sn, 9, 0), TF = /* @__PURE__ */ Cr(sn, 9, 1), UF = /
38030
38040
  return (a + 4 + n) * 8;
38031
38041
  }, wp = function(e, t, r, n, a, s, o, i, l, u, p) {
38032
38042
  Ir(t, p++, r), ++a[256];
38033
- for (var d = sl(a, 15), h = d.t, f = d.l, y = sl(s, 15), C = y.t, b = y.l, x = gp(h), A = x.c, k = x.n, v = gp(C), N = v.c, R = v.n, U = new Kt(19), L = 0; L < A.length; ++L)
38043
+ for (var d = ol(a, 15), h = d.t, f = d.l, y = ol(s, 15), C = y.t, b = y.l, x = gp(h), A = x.c, k = x.n, v = gp(C), N = v.c, R = v.n, U = new Kt(19), L = 0; L < A.length; ++L)
38034
38044
  ++U[A[L] & 31];
38035
38045
  for (var L = 0; L < N.length; ++L)
38036
38046
  ++U[N[L] & 31];
38037
- for (var V = sl(U, 7), X = V.t, Q = V.l, Z = 19; Z > 4 && !X[Pl[Z - 1]]; --Z)
38047
+ for (var V = ol(U, 7), X = V.t, Q = V.l, Z = 19; Z > 4 && !X[Pl[Z - 1]]; --Z)
38038
38048
  ;
38039
38049
  var T = u + 5 << 3, M = Va(a, sn) + Va(s, es) + o, F = Va(a, h) + Va(s, C) + o + 14 + 3 * Z + Va(U, X) + 2 * U[16] + 3 * U[17] + 7 * U[18];
38040
38050
  if (l >= 0 && T <= M && T <= F)
@@ -38058,9 +38068,9 @@ var SF = /* @__PURE__ */ Cr(sn, 9, 0), TF = /* @__PURE__ */ Cr(sn, 9, 1), UF = /
38058
38068
  var P = n[L];
38059
38069
  if (P > 255) {
38060
38070
  var H = P >> 18 & 31;
38061
- Ma(t, p, O[H + 257]), p += z[H + 257], H > 7 && (Ir(t, p, P >> 23 & 31), p += mi[H]);
38071
+ Ma(t, p, O[H + 257]), p += z[H + 257], H > 7 && (Ir(t, p, P >> 23 & 31), p += hi[H]);
38062
38072
  var ie = P & 31;
38063
- Ma(t, p, G[ie]), p += J[ie], ie > 3 && (Ma(t, p, P >> 5 & 8191), p += hi[ie]);
38073
+ Ma(t, p, G[ie]), p += J[ie], ie > 3 && (Ma(t, p, P >> 5 & 8191), p += fi[ie]);
38064
38074
  } else
38065
38075
  Ma(t, p, O[P]), p += z[P];
38066
38076
  }
@@ -38102,7 +38112,7 @@ var SF = /* @__PURE__ */ Cr(sn, 9, 0), TF = /* @__PURE__ */ Cr(sn, 9, 1), UF = /
38102
38112
  if (J) {
38103
38113
  v[X++] = 268435456 | Jl[G] << 18 | fp[J];
38104
38114
  var Ne = Jl[G] & 31, Ve = fp[J] & 31;
38105
- L += mi[Ne] + hi[Ve], ++N[257 + Ne], ++R[Ve], Q = V + G, ++U;
38115
+ L += hi[Ne] + fi[Ve], ++N[257 + Ne], ++R[Ve], Q = V + G, ++U;
38106
38116
  } else
38107
38117
  v[X++] = e[V], ++N[e[V]];
38108
38118
  }
@@ -38355,10 +38365,10 @@ const _F = (e) => {
38355
38365
  try {
38356
38366
  return await t.sendRequest(o, i);
38357
38367
  } catch (l) {
38358
- throw l instanceof za && (l.action === "clear" && a(), l.code === void 0 && l.message === "User rejected request") ? new gi(Error("User rejected request"), { code: 4001, shortMessage: "User rejected request" }) : new gi(l, { code: l.code ?? -1, shortMessage: l.message });
38368
+ throw l instanceof za && (l.action === "clear" && a(), l.code === void 0 && l.message === "User rejected request") ? new wi(Error("User rejected request"), { code: 4001, shortMessage: "User rejected request" }) : new wi(l, { code: l.code ?? -1, shortMessage: l.message });
38359
38369
  }
38360
38370
  default:
38361
- throw new gi(Error("Unsupported method"), { code: 4200, shortMessage: `Unsupported method: ${o}` });
38371
+ throw new wi(Error("Unsupported method"), { code: 4200, shortMessage: `Unsupported method: ${o}` });
38362
38372
  }
38363
38373
  } };
38364
38374
  };
@@ -38383,11 +38393,11 @@ function f0(e, t) {
38383
38393
  n && (l.removeListener("chainChanged", n), n = void 0), s && (l.removeListener("disconnect", s), s = void 0), a || (a = this.onConnect.bind(this), l.on("connect", a)), await l.request({ method: "wallet_revokePermissions", params: [{ eth_accounts: {} }] }), this.onDisconnect();
38384
38394
  }, async getAccounts() {
38385
38395
  let l = await this.getProvider();
38386
- if (!l) throw new Xi();
38396
+ if (!l) throw new Hi();
38387
38397
  return (await l.request({ method: "eth_accounts" })).map(((u) => hd(u)));
38388
38398
  }, async getChainId() {
38389
38399
  let l = await this.getProvider();
38390
- if (!l) throw new Xi();
38400
+ if (!l) throw new Hi();
38391
38401
  return Number(await l.request({ method: "eth_chainId" }));
38392
38402
  }, getProvider: async () => (o || (o = _F({ chains: i.chains, transports: i.transports, providerAppId: e.id, apiUrl: e.apiUrl, smartWalletMode: e.smartWalletMode })), o), async isAuthorized() {
38393
38403
  try {
@@ -38397,7 +38407,7 @@ function f0(e, t) {
38397
38407
  }
38398
38408
  }, async switchChain({ chainId: l }) {
38399
38409
  let u = await this.getProvider();
38400
- if (!u) throw new Xi();
38410
+ if (!u) throw new Hi();
38401
38411
  let p = i.chains.find(((d) => d.id === l));
38402
38412
  if (!p) throw new N0(new WR());
38403
38413
  return l === Number(await u.request({ method: "eth_chainId" })) || (await u.request({ method: "wallet_switchEthereumChain", params: [{ chainId: `0x${l.toString(16)}` }] }), i.emitter.emit("change", { chainId: l })), p;
@@ -38434,7 +38444,7 @@ function tM(e = {}) {
38434
38444
  ...a,
38435
38445
  ...t,
38436
38446
  getProvider: async (i) => {
38437
- const l = i?.chainId ?? n.chains?.[0]?.id ?? Vo.id;
38447
+ const l = i?.chainId ?? n.chains?.[0]?.id ?? Wo.id;
38438
38448
  return await a.getProvider({
38439
38449
  chainId: l
38440
38450
  });
@@ -38646,7 +38656,7 @@ const rM = new Ip(), XM = ({
38646
38656
  children: e,
38647
38657
  useStagingTenant: t
38648
38658
  }) => {
38649
- const r = Uo(), { reconnect: n } = A0(), { ready: a, provider: s } = nM({
38659
+ const r = Io(), { reconnect: n } = A0(), { ready: a, provider: s } = nM({
38650
38660
  chains: r.chains,
38651
38661
  useStagingTenant: t
38652
38662
  }), [o, i] = re(!1), [l, u] = re(null), p = os("InjectWagmiConnector"), d = tt(
@@ -38694,7 +38704,7 @@ const rM = new Ip(), XM = ({
38694
38704
  transports: i.reduce(
38695
38705
  (p, d) => {
38696
38706
  const h = d.rpcUrls?.default?.webSocket?.[0], f = d.rpcUrls?.default?.http?.[0], y = [h && M0(h), f && Et(f)].filter((C) => !!C);
38697
- return p[d.id] = y.length ? il(y) : Et(), p;
38707
+ return p[d.id] = y.length ? ll(y) : Et(), p;
38698
38708
  },
38699
38709
  {}
38700
38710
  ),
@@ -38749,7 +38759,7 @@ export {
38749
38759
  zM as g,
38750
38760
  FM as h,
38751
38761
  MM as i,
38752
- ui as j,
38762
+ pi as j,
38753
38763
  Me as k,
38754
38764
  ZI as l,
38755
38765
  GN as m,
@@ -38758,7 +38768,7 @@ export {
38758
38768
  GM as p,
38759
38769
  ZM as q,
38760
38770
  qt as r,
38761
- Ye as s,
38771
+ Je as s,
38762
38772
  zn as t,
38763
38773
  Vf as u,
38764
38774
  T1 as v,