@nexus-cross/crossx-sdk-core 2.3.9-beta.1 → 2.3.10-beta.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,6 +1,6 @@
1
1
  import { createRemoteJWKSet as Et, jwtVerify as At, decodeJwt as It } from "jose";
2
2
  import { secp256k1 as kt } from "@noble/curves/secp256k1.js";
3
- import { keccak_256 as Ve } from "@noble/hashes/sha3.js";
3
+ import { keccak_256 as qe } from "@noble/hashes/sha3.js";
4
4
  import { bytesToHex as Tt } from "@noble/hashes/utils.js";
5
5
  var d = /* @__PURE__ */ ((i) => (i.AUTH_NOT_INITIALIZED = "AUTH_NOT_INITIALIZED", i.AUTH_FAILED = "AUTH_FAILED", i.AUTH_TOKEN_INVALID = "AUTH_TOKEN_INVALID", i.AUTH_TOKEN_EXPIRED = "AUTH_TOKEN_EXPIRED", i.AUTH_NOT_AUTHENTICATED = "AUTH_NOT_AUTHENTICATED", i.ALREADY_AUTHENTICATED = "ALREADY_AUTHENTICATED", i.SESSION_EXPIRED = "SESSION_EXPIRED", i.OAUTH_POPUP_BLOCKED = "OAUTH_POPUP_BLOCKED", i.WALLET_NOT_FOUND = "WALLET_NOT_FOUND", i.WALLET_CREATION_FAILED = "WALLET_CREATION_FAILED", i.WALLET_ALREADY_EXISTS = "WALLET_ALREADY_EXISTS", i.ADDRESS_LIMIT_EXCEEDED = "ADDRESS_LIMIT_EXCEEDED", i.SIGN_FAILED = "SIGN_FAILED", i.SIGN_REJECTED = "SIGN_REJECTED", i.TX_FAILED = "TX_FAILED", i.TX_REJECTED = "TX_REJECTED", i.BROADCAST_FAILED = "BROADCAST_FAILED", i.USER_REJECTED = "USER_REJECTED", i.TX_INVALID_PARAMS = "TX_INVALID_PARAMS", i.NETWORK_ERROR = "NETWORK_ERROR", i.NETWORK_NOT_CONFIGURED = "NETWORK_NOT_CONFIGURED", i.INVALID_CHAIN = "INVALID_CHAIN", i.CHAIN_NOT_SUPPORTED = "CHAIN_NOT_SUPPORTED", i.CHAIN_ADAPTER_NOT_FOUND = "CHAIN_ADAPTER_NOT_FOUND", i.NOT_IMPLEMENTED = "NOT_IMPLEMENTED", i.SIGNATURE_FAILED = "SIGNATURE_FAILED", i.TRANSACTION_FAILED = "TRANSACTION_FAILED", i.PREPARE_FAILED = "PREPARE_FAILED", i.PREPARE_EXPIRED = "PREPARE_EXPIRED", i.PREPARE_MISMATCH = "PREPARE_MISMATCH", i.MIGRATION_FAILED = "MIGRATION_FAILED", i.MIGRATION_BACKUP_EXISTS = "MIGRATION_BACKUP_EXISTS", i.MIGRATION_PIN_LOCKED = "MIGRATION_PIN_LOCKED", i.GATEWAY_INTERNAL_ERROR = "GATEWAY_INTERNAL_ERROR", i.GATEWAY_LOCK_CONFLICT = "GATEWAY_LOCK_CONFLICT", i.WALLET_INCONSISTENT_STATE = "WALLET_INCONSISTENT_STATE", i.PROJECT_ID_MISSING = "PROJECT_ID_MISSING", i.ORIGIN_NOT_ALLOWED = "ORIGIN_NOT_ALLOWED", i.APP_IDENTIFIER_MISSING = "APP_IDENTIFIER_MISSING", i.INVALID_APP_TYPE = "INVALID_APP_TYPE", i.PROJECT_NOT_REGISTERED = "PROJECT_NOT_REGISTERED", i.SIGNATURE_SIGNER_MISMATCH = "SIGNATURE_SIGNER_MISMATCH", i.GAS_ESTIMATION_FAILED = "GAS_ESTIMATION_FAILED", i.TYPED_DATA_CHAIN_ID_MISMATCH = "TYPED_DATA_CHAIN_ID_MISMATCH", i.PIN_NOT_SET = "PIN_NOT_SET", i.PIN_WRONG = "PIN_WRONG", i.PIN_INVALID = "PIN_INVALID", i.PIN_REPEATED_PATTERN = "PIN_REPEATED_PATTERN", i.PIN_CANCELLED = "PIN_CANCELLED", i.EXTERNAL_WALLET_REQUESTED = "EXTERNAL_WALLET_REQUESTED", i.PIN_LOCKED = "PIN_LOCKED", i.HMAC_REQUIRED = "HMAC_REQUIRED", i.HMAC_VERIFICATION_FAILED = "HMAC_VERIFICATION_FAILED", i.WITHDRAW_FAILED = "WITHDRAW_FAILED", i.USER_NOT_FOUND = "USER_NOT_FOUND", i.RN_BRIDGE_NOT_AVAILABLE = "RN_BRIDGE_NOT_AVAILABLE", i.RN_BRIDGE_HANDSHAKE_FAILED = "RN_BRIDGE_HANDSHAKE_FAILED", i.RN_NATIVE_SESSION_EXPIRED = "RN_NATIVE_SESSION_EXPIRED", i.INVALID_CONFIG = "INVALID_CONFIG", i.UNKNOWN_ERROR = "UNKNOWN_ERROR", i))(d || {});
6
6
  class h extends Error {
@@ -16,34 +16,34 @@ class h extends Error {
16
16
  };
17
17
  }
18
18
  }
19
- const Rt = 2e3, je = 6e4, Nt = 1e3, Pt = 1e4, Ct = "0x77359400", Ye = "0x3B9ACA00", Xe = 130, Fe = 6, Je = 18, Ze = 3e4, Ot = 5 * 60 * 1e3, Lt = 30 * 1e3, Ce = 100, Dt = "crossx-sdk-js/2.3.9-beta.1", Be = "ONEwallet";
20
- var ue = /* @__PURE__ */ ((i) => (i.MetaMask = "io.metamask", i.Binance = "com.binance.wallet", i.CROSSx = "crossx", i))(ue || {});
21
- const $t = {
19
+ const Rt = 2e3, je = 6e4, Ct = 1e3, Pt = 1e4, Nt = "0x77359400", Ye = "0x3B9ACA00", Xe = 130, Fe = 6, Je = 18, Ze = 3e4, Ot = 5 * 60 * 1e3, Lt = 30 * 1e3, Ne = 100, Dt = "crossx-sdk-js/2.3.10-beta.1", Be = "ONEwallet";
20
+ var ge = /* @__PURE__ */ ((i) => (i.MetaMask = "io.metamask", i.Binance = "com.binance.wallet", i.CROSSx = "crossx", i))(ge || {});
21
+ const Mt = {
22
22
  "io.metamask": "MetaMask",
23
23
  "com.binance.wallet": "Binance Wallet",
24
24
  crossx: Be
25
- }, Mt = [
25
+ }, $t = [
26
26
  "crossx",
27
27
  "io.metamask",
28
28
  "com.binance.wallet"
29
29
  /* Binance */
30
30
  ];
31
31
  function Ft(i) {
32
- return $t[i] ?? i;
32
+ return Mt[i] ?? i;
33
33
  }
34
34
  function Bt(i) {
35
- return Array.isArray(i.connectOtherWallets) && i.connectOtherWallets.length > 0 ? [...i.connectOtherWallets] : i.showConnectOtherWallets === !0 ? [...Mt] : [];
35
+ return Array.isArray(i.connectOtherWallets) && i.connectOtherWallets.length > 0 ? [...i.connectOtherWallets] : i.showConnectOtherWallets === !0 ? [...$t] : [];
36
36
  }
37
- const ve = {
37
+ const Se = {
38
38
  // ─── CROSS ────────────────────────────────────────────
39
- ONE_MAINNET: {
39
+ CROSS_MAINNET: {
40
40
  caipId: "eip155:612055",
41
41
  chainId: 612055,
42
- name: "ONEchain Mainnet",
43
- nativeCurrency: { symbol: "ONE", decimals: 18 },
42
+ name: "CROSS Mainnet",
43
+ nativeCurrency: { symbol: "CROSS", decimals: 18 },
44
44
  rpcUrl: "https://mainnet.crosstoken.io:22001"
45
45
  },
46
- ONE_TESTNET: {
46
+ CROSS_TESTNET: {
47
47
  caipId: "eip155:612044",
48
48
  chainId: 612044,
49
49
  name: "ONEchain Testnet",
@@ -84,12 +84,12 @@ const ve = {
84
84
  testnet: !0
85
85
  }
86
86
  }, Ws = Object.fromEntries(
87
- Object.entries(ve).map(([i, e]) => [i, e.caipId])
87
+ Object.entries(Se).map(([i, e]) => [i, e.caipId])
88
88
  ), Wt = new Map(
89
- Object.values(ve).map((i) => [i.caipId, i])
89
+ Object.values(Se).map((i) => [i.caipId, i])
90
90
  );
91
91
  new Map(
92
- Object.values(ve).map((i) => [i.chainId, i])
92
+ Object.values(Se).map((i) => [i.chainId, i])
93
93
  );
94
94
  const Ut = { symbol: "", decimals: 18 };
95
95
  function Ae(i) {
@@ -185,34 +185,34 @@ class Ht {
185
185
  };
186
186
  }
187
187
  }
188
- let X = null;
188
+ let Y = null;
189
189
  function Qe(i) {
190
- X = i;
190
+ Y = i;
191
191
  }
192
192
  const c = {
193
193
  /** 빌드 모드와 무관하게 항상 출력되는 정보성 로그 (SDK 수명주기 등) */
194
194
  info(...i) {
195
- if (X) {
196
- X.log(...i);
195
+ if (Y) {
196
+ Y.log(...i);
197
197
  return;
198
198
  }
199
199
  console.log(...i);
200
200
  },
201
201
  log(...i) {
202
- if (X) {
203
- X.log(...i);
202
+ if (Y) {
203
+ Y.log(...i);
204
204
  return;
205
205
  }
206
206
  },
207
207
  warn(...i) {
208
- if (X) {
209
- X.warn(...i);
208
+ if (Y) {
209
+ Y.warn(...i);
210
210
  return;
211
211
  }
212
212
  },
213
213
  error(...i) {
214
- if (X) {
215
- X.error(...i);
214
+ if (Y) {
215
+ Y.error(...i);
216
216
  return;
217
217
  }
218
218
  }
@@ -463,13 +463,13 @@ For security, you must continue with the same account.`,
463
463
  ko: Gt,
464
464
  en: dt
465
465
  };
466
- function J(i = "en", e) {
466
+ function X(i = "en", e) {
467
467
  return Kt[i] ?? dt;
468
468
  }
469
469
  function zt(i) {
470
470
  return i === "ko" || i === "en" ? i : typeof navigator < "u" && (navigator.language ?? "").toLowerCase().startsWith("ko") ? "ko" : "en";
471
471
  }
472
- const et = "crossx_access_token", tt = "crossx_refresh_token", rt = "crossx_user_info", be = class be {
472
+ const et = "crossx_access_token", tt = "crossx_refresh_token", rt = "crossx_user_info", ve = class ve {
473
473
  constructor(e, r, t, s, o, n, a, l, p = () => {
474
474
  }) {
475
475
  this.config = e, this.storage = r, this.crypto = t, this.oauth = s, this.transport = o, this.walletProvider = n, this.tokenStore = a, this.requestFreshTokenFromBridge = l, this.getLocale = p, this._refreshPromise = null, this._migrated = !1;
@@ -677,20 +677,20 @@ const et = "crossx_access_token", tt = "crossx_refresh_token", rt = "crossx_user
677
677
  const { authApiUrl: _ } = this.config, { accessToken: u, refreshToken: x } = await this.exchangeFirebaseToken(e, _);
678
678
  let g, f, m;
679
679
  try {
680
- const S = this.crypto.decodeJWT(e);
681
- c.log("[CROSSx] Firebase JWT 필드:", Object.keys(S).join(", ")), f = (o = S.firebase) == null ? void 0 : o.sign_in_provider;
682
- const E = ((n = S.firebase) == null ? void 0 : n.identities) ?? {};
683
- m = S.email ?? ((a = E.email) == null ? void 0 : a[0]), f === "google.com" ? g = (l = E["google.com"]) == null ? void 0 : l[0] : f === "apple.com" && (g = (p = E["apple.com"]) == null ? void 0 : p[0]), c.log("[CROSSx] OAuth provider sub 추출 — provider:", f, "hasProviderSub:", !!g, "email:", m ?? "(없음)");
680
+ const E = this.crypto.decodeJWT(e);
681
+ c.log("[CROSSx] Firebase JWT 필드:", Object.keys(E).join(", ")), f = (o = E.firebase) == null ? void 0 : o.sign_in_provider;
682
+ const S = ((n = E.firebase) == null ? void 0 : n.identities) ?? {};
683
+ m = E.email ?? ((a = S.email) == null ? void 0 : a[0]), f === "google.com" ? g = (l = S["google.com"]) == null ? void 0 : l[0] : f === "apple.com" && (g = (p = S["apple.com"]) == null ? void 0 : p[0]), c.log("[CROSSx] OAuth provider sub 추출 — provider:", f, "hasProviderSub:", !!g, "email:", m ?? "(없음)");
684
684
  } catch {
685
685
  c.warn("[CROSSx] firebaseToken에서 providerSub 추출 실패");
686
686
  }
687
687
  if (u) {
688
- const S = this.crypto.decodeJWT(u);
689
- c.log("[CROSSx] access_token 디코딩 — sub:", S.sub, "exp:", S.exp, "필드:", Object.keys(S).join(", "));
690
- const E = await this.crypto.verifyJWT(u);
691
- if (s = E.signatureVerified ?? !1, !E.valid)
688
+ const E = this.crypto.decodeJWT(u);
689
+ c.log("[CROSSx] access_token 디코딩 — sub:", E.sub, "exp:", E.exp, "필드:", Object.keys(E).join(", "));
690
+ const S = await this.crypto.verifyJWT(u);
691
+ if (s = S.signatureVerified ?? !1, !S.valid)
692
692
  throw c.error("[CROSSx] access_token 검증 실패"), new Error("유효하지 않은 access token");
693
- const A = E.payload, k = A.email ?? m ?? r;
693
+ const A = S.payload, k = A.email ?? m ?? r;
694
694
  c.log(
695
695
  "[CROSSx] email 소스 — CROSSx JWT:",
696
696
  A.email ?? "(없음)",
@@ -707,10 +707,10 @@ const et = "crossx_access_token", tt = "crossx_refresh_token", rt = "crossx_user
707
707
  providerSub: g
708
708
  }, this.tokenStore.set(u), this.useCookieAuth || (await this.storage.set(this.STORAGE_KEY_ACCESS_TOKEN, u), x && this.config.secureStorageAvailable !== !1 ? await this.storage.set(this.STORAGE_KEY_REFRESH_TOKEN, x) : x && c.warn("[CROSSx] 안전한 스토리지 미사용 — refresh_token 영속 저장을 건너뜁니다"));
709
709
  } else {
710
- const S = this.crypto.decodeJWT(e);
710
+ const E = this.crypto.decodeJWT(e);
711
711
  t = {
712
- id: S.sub,
713
- email: S.email ?? r,
712
+ id: E.sub,
713
+ email: E.email ?? r,
714
714
  signInProvider: f,
715
715
  providerSub: g
716
716
  }, c.log("[CROSSx] Cookie 모드 — Firebase 토큰에서 사용자 정보 추출 — id:", t.id);
@@ -915,7 +915,7 @@ const et = "crossx_access_token", tt = "crossx_refresh_token", rt = "crossx_user
915
915
  c.log("[CROSSx] silentRefresh 응답 — status:", n.status);
916
916
  const a = n.data, l = this.extractResponseErrorCode(a);
917
917
  if (l) {
918
- const _ = be.REFRESH_RELOGIN_CODES.has(l.code);
918
+ const _ = ve.REFRESH_RELOGIN_CODES.has(l.code);
919
919
  throw new h(
920
920
  _ ? d.SESSION_EXPIRED : d.AUTH_FAILED,
921
921
  `토큰 갱신 실패 (코드 ${l.code}): ${l.message}`
@@ -1051,9 +1051,9 @@ const et = "crossx_access_token", tt = "crossx_refresh_token", rt = "crossx_user
1051
1051
  return c.log("[CROSSx] loadWallet 결과 — address:", t, "needsMigration:", s), { success: !0, address: t, user: e, needsMigration: s, tokenSignatureVerified: r };
1052
1052
  }
1053
1053
  };
1054
- be.REFRESH_RELOGIN_CODES = /* @__PURE__ */ new Set([1007, 1008]);
1055
- let Oe = be;
1056
- class qt {
1054
+ ve.REFRESH_RELOGIN_CODES = /* @__PURE__ */ new Set([1007, 1008]);
1055
+ let Oe = ve;
1056
+ class Vt {
1057
1057
  constructor(e, r, t) {
1058
1058
  this.config = e, this.storage = r, this.tokenStore = t;
1059
1059
  const s = e.projectId;
@@ -1063,7 +1063,7 @@ class qt {
1063
1063
  this.tokenStore.clear(), this.config.authMode !== "cookie" && (await this.storage.remove(this.STORAGE_KEY_ACCESS_TOKEN), await this.storage.remove(this.STORAGE_KEY_REFRESH_TOKEN)), await this.storage.remove(this.STORAGE_KEY_USER), await this.storage.clear();
1064
1064
  }
1065
1065
  }
1066
- class Vt {
1066
+ class qt {
1067
1067
  constructor(e, r) {
1068
1068
  this.storage = e, this.walletProvider = r;
1069
1069
  }
@@ -1184,7 +1184,7 @@ function Xt() {
1184
1184
  }
1185
1185
  return require("crypto").randomBytes(16).toString("hex");
1186
1186
  }
1187
- class Y {
1187
+ class j {
1188
1188
  constructor(e) {
1189
1189
  this.config = e, this.context = null;
1190
1190
  }
@@ -1221,7 +1221,7 @@ class Y {
1221
1221
  * Initialize and activate bridge
1222
1222
  */
1223
1223
  async initialize() {
1224
- if (await Y.waitForBridgeReady(5e3) || c.warn("[RNBridge] Bridge did not become ready in time"), this.bridge = Y.getBridge(), !this.bridge)
1224
+ if (await j.waitForBridgeReady(5e3) || c.warn("[RNBridge] Bridge did not become ready in time"), this.bridge = j.getBridge(), !this.bridge)
1225
1225
  throw new h(
1226
1226
  d.AUTH_NOT_INITIALIZED,
1227
1227
  "RN Bridge not available in this environment"
@@ -1410,23 +1410,24 @@ class Y {
1410
1410
  );
1411
1411
  }
1412
1412
  }
1413
- const pe = {
1413
+ const de = {
1414
1414
  production: {
1415
- oauthServiceUrl: "https://cross-wallet-oauth.onechain.nexus",
1415
+ oauthServiceUrl: "https://one-wallet-oauth.onechain.nexus",
1416
1416
  authApiUrl: "https://cross-auth.crosstoken.io",
1417
1417
  walletGatewayUrl: "https://embedded-wallet-gateway.crosstoken.io/api/v1",
1418
1418
  portraitBaseUrl: "https://portrait.crosstoken.io",
1419
1419
  contentsBaseUrl: "https://contents.crosstoken.io/frontend/common/app-launcher"
1420
1420
  },
1421
1421
  staging: {
1422
- oauthServiceUrl: "https://stg-cross-wallet-oauth.onechain.nexus",
1422
+ // TEST(one-wallet-rebrand): onechain 호스트 검증용 임시 변경 (원복 예정)
1423
+ oauthServiceUrl: "https://stg-one-wallet-oauth.onechain.nexus",
1423
1424
  authApiUrl: "https://stg-cross-auth.crosstoken.io",
1424
1425
  walletGatewayUrl: "https://stg-embedded-wallet-gateway.crosstoken.io/api/v1",
1425
1426
  portraitBaseUrl: "https://dev-portrait.crosstoken.io",
1426
1427
  contentsBaseUrl: "https://stg-contents.crosstoken.io/frontend/common/app-launcher"
1427
1428
  },
1428
1429
  development: {
1429
- oauthServiceUrl: "https://dev-cross-wallet-oauth.onechain.nexus",
1430
+ oauthServiceUrl: "https://dev-one-wallet-oauth.onechain.nexus",
1430
1431
  authApiUrl: "https://dev-cross-auth.crosstoken.io",
1431
1432
  walletGatewayUrl: "https://dev-embedded-wallet-gateway.crosstoken.io/api/v1",
1432
1433
  portraitBaseUrl: "https://dev-portrait.crosstoken.io",
@@ -1435,7 +1436,7 @@ const pe = {
1435
1436
  };
1436
1437
  function Jt(i) {
1437
1438
  const e = i.environment;
1438
- return e && e in pe ? pe[e] : null;
1439
+ return e && e in de ? de[e] : null;
1439
1440
  }
1440
1441
  function We() {
1441
1442
  try {
@@ -1447,11 +1448,11 @@ function We() {
1447
1448
  }
1448
1449
  try {
1449
1450
  const i = process.env.NEXT_PUBLIC_CROSSX_ENVIRONMENT;
1450
- if (i && i in pe)
1451
- return pe[i];
1451
+ if (i && i in de)
1452
+ return de[i];
1452
1453
  } catch {
1453
1454
  }
1454
- return pe.production;
1455
+ return de.production;
1455
1456
  }
1456
1457
  function _t(i) {
1457
1458
  let e = i.length;
@@ -1469,7 +1470,7 @@ function Zt(i, e = Fe) {
1469
1470
  return "?";
1470
1471
  }
1471
1472
  }
1472
- function we(i, e, r, t = Fe) {
1473
+ function me(i, e, r, t = Fe) {
1473
1474
  if (!(!i || i === "0x" || i === "0x0"))
1474
1475
  try {
1475
1476
  const s = BigInt(i);
@@ -1540,7 +1541,7 @@ function rr(i) {
1540
1541
  const t = Number(r);
1541
1542
  return Number.isFinite(t) ? t : void 0;
1542
1543
  }
1543
- class de {
1544
+ class le {
1544
1545
  constructor(e) {
1545
1546
  this.deps = e, this.verifyPinMutex = null;
1546
1547
  }
@@ -1581,7 +1582,7 @@ class de {
1581
1582
  this.verifyPinMutex = new Promise((_, u) => {
1582
1583
  o = _, n = u;
1583
1584
  });
1584
- const a = J(this.deps.getLocale() ?? "en");
1585
+ const a = X(this.deps.getLocale() ?? "en");
1585
1586
  try {
1586
1587
  if (typeof this.deps.walletProvider.verifyPin != "function") {
1587
1588
  const u = await this.deps.confirmation.showPinInputPrompt({
@@ -1616,7 +1617,7 @@ class de {
1616
1617
  if (x.code === d.PIN_INVALID)
1617
1618
  return { ok: !1, error: x.message };
1618
1619
  if (x.code === d.PIN_LOCKED)
1619
- return de.buildPinLockedResult(x, a);
1620
+ return le.buildPinLockedResult(x, a);
1620
1621
  }
1621
1622
  throw x;
1622
1623
  }
@@ -1630,7 +1631,7 @@ class de {
1630
1631
  this.deps.pinStore.set(_), c.log("[CROSSx] PIN 갱신 완료 (verify 모달 닫힘)"), o();
1631
1632
  } catch (_) {
1632
1633
  if (_ instanceof h && (_.code === d.AUTH_NOT_AUTHENTICATED || _.code === d.AUTH_TOKEN_EXPIRED || _.code === d.SESSION_EXPIRED) && _.code !== d.SESSION_EXPIRED) {
1633
- const u = J(this.deps.getLocale() ?? "en"), x = this.deps.getUserEmail();
1634
+ const u = X(this.deps.getLocale() ?? "en"), x = this.deps.getUserEmail();
1634
1635
  if (await this.deps.confirmation.showSessionAlert({
1635
1636
  title: u.session_alert_title,
1636
1637
  message: u.alert_session_expired,
@@ -1644,13 +1645,13 @@ class de {
1644
1645
  }
1645
1646
  }
1646
1647
  async withPinRetry(e) {
1647
- const r = J(this.deps.getLocale() ?? "en");
1648
+ const r = X(this.deps.getLocale() ?? "en");
1648
1649
  let t = null;
1649
1650
  try {
1650
1651
  return await e();
1651
1652
  } catch (s) {
1652
1653
  if (s instanceof h) {
1653
- if (t = de.parsePinError(s, r), !t) throw s;
1654
+ if (t = le.parsePinError(s, r), !t) throw s;
1654
1655
  } else
1655
1656
  throw s;
1656
1657
  }
@@ -1664,7 +1665,7 @@ class de {
1664
1665
  try {
1665
1666
  return await e();
1666
1667
  } catch (s) {
1667
- if (s instanceof h && (t = de.parsePinError(s, r), t))
1668
+ if (s instanceof h && (t = le.parsePinError(s, r), t))
1668
1669
  continue;
1669
1670
  throw s;
1670
1671
  }
@@ -1689,7 +1690,7 @@ class de {
1689
1690
  return null;
1690
1691
  }
1691
1692
  static buildPinLockedResult(e, r) {
1692
- const t = de.parsePinError(e, r);
1693
+ const t = le.parsePinError(e, r);
1693
1694
  if (!t) return { ok: !1, error: e.message };
1694
1695
  const { errorMessage: s, ...o } = t;
1695
1696
  return { ok: !1, error: s, ...o };
@@ -1745,7 +1746,7 @@ class or {
1745
1746
  "[CROSSx] signInAgain: providerSub/userId 불일치 — 잘못된 계정으로 로그인됨"
1746
1747
  ), await this.deps.executeSignOut().catch(() => {
1747
1748
  });
1748
- const p = J(this.deps.getLocale() ?? "en");
1749
+ const p = X(this.deps.getLocale() ?? "en");
1749
1750
  return await this.deps.showSessionAlert({
1750
1751
  title: p.session_alert_title,
1751
1752
  message: p.alert_different_account,
@@ -1770,7 +1771,7 @@ class or {
1770
1771
  try {
1771
1772
  return await e();
1772
1773
  } catch (r) {
1773
- const t = J(this.deps.getLocale() ?? "en"), { userEmail: s } = this.deps.getSessionSnapshot(), o = s ? this.deps.maskEmail(s, t.session_alert_apple_account) : void 0;
1774
+ const t = X(this.deps.getLocale() ?? "en"), { userEmail: s } = this.deps.getSessionSnapshot(), o = s ? this.deps.maskEmail(s, t.session_alert_apple_account) : void 0;
1774
1775
  if (r instanceof h && r.code === d.WITHDRAW_FAILED) {
1775
1776
  if (c.warn("[CROSSx] WITHDRAW_FAILED — 로컬 인증 초기화"), await this.deps.showSessionAlert({
1776
1777
  title: t.session_alert_title,
@@ -1925,7 +1926,7 @@ class ar {
1925
1926
  c.warn(
1926
1927
  "[CROSSx][Migration Phase 4] 세션 만료 — 재로그인 후 PIN 입력 재시도"
1927
1928
  );
1928
- const x = J(this.deps.getLocale() ?? "en"), g = this.deps.getUserEmail();
1929
+ const x = X(this.deps.getLocale() ?? "en"), g = this.deps.getUserEmail();
1929
1930
  if (await this.deps.confirmation.showSessionAlert({
1930
1931
  title: x.session_alert_title,
1931
1932
  message: x.alert_session_expired,
@@ -1983,7 +1984,7 @@ class ar {
1983
1984
  c.warn(
1984
1985
  "[CROSSx][Migration Phase 5] 세션 만료 — 재로그인 후 마이그레이션 재시도"
1985
1986
  );
1986
- const u = J(this.deps.getLocale() ?? "en"), x = this.deps.getUserEmail();
1987
+ const u = X(this.deps.getLocale() ?? "en"), x = this.deps.getUserEmail();
1987
1988
  if (await this.deps.confirmation.showSessionAlert({
1988
1989
  title: u.session_alert_title,
1989
1990
  message: u.alert_session_expired,
@@ -2050,7 +2051,7 @@ class cr {
2050
2051
  "maxPriorityFeePerGas: 1 Gwei"
2051
2052
  );
2052
2053
  } else
2053
- l.gasPrice = Ct, c.log("[CROSSx] Legacy 체인 감지 — gasPrice: 2 Gwei");
2054
+ l.gasPrice = Nt, c.log("[CROSSx] Legacy 체인 감지 — gasPrice: 2 Gwei");
2054
2055
  }
2055
2056
  return !n && a && (l.maxPriorityFeePerGas = Ye, c.log("[CROSSx] maxPriorityFeePerGas 비어있음 → 1 Gwei 기본값 적용")), l;
2056
2057
  }
@@ -2385,7 +2386,7 @@ function Ie(i, e = "Apple account") {
2385
2386
  const t = i.substring(0, r), s = i.substring(r);
2386
2387
  return t.length <= 1 ? `${t}${"*".repeat(Math.max(t.length, 1))}${s}` : `${t[0]}${"*".repeat(t.length - 1)}${s}`;
2387
2388
  }
2388
- const oe = class oe extends Yt {
2389
+ const ne = class ne extends Yt {
2389
2390
  constructor(e, r, t, s, o, n, a, l, p, _, u) {
2390
2391
  var x, g;
2391
2392
  super(), this.storage = t, this.crypto = s, this.transport = o, this.oauth = n, this.walletProvider = a, this.tokenStore = l, this.initialized = !1, this._initPromise = null, this.authenticated = !1, this.userId = null, this.address = null, this.activeWalletIndex = 0, this.userEmail = null, this.loginType = null, this.providerSub = null, this.tokenSignatureVerified = !1, this._themeMediaCleanup = null, this._isRecoveringSession = !1, this._rnBridgeService = null, this._providers = /* @__PURE__ */ new Map(), this._isAuthenticatedViaRNBridge = !1, this._bridgeSessionRestorePromise = null, this._config = Object.freeze({ ...e }), this.internalConfig = e, this.adapterConfig = r, e.logger && Qe(e.logger), this.confirmation = p, this.pinStore = u ?? new pt(), this.stateManager = new pr({
@@ -2394,17 +2395,17 @@ const oe = class oe extends Yt {
2394
2395
  },
2395
2396
  getIsRecoveringSession: () => this._isRecoveringSession,
2396
2397
  emitAddressChanged: ({ address: f, index: m, walletName: y }) => {
2397
- const S = { address: f, index: m };
2398
- y !== void 0 && (S.walletName = y), this.emit("addressChanged", S);
2398
+ const E = { address: f, index: m };
2399
+ y !== void 0 && (E.walletName = y), this.emit("addressChanged", E);
2399
2400
  },
2400
2401
  emitAuthChanged: ({ isAuthenticated: f, address: m, userId: y }) => {
2401
2402
  this.emit("authChanged", { isAuthenticated: f, address: m, userId: y });
2402
2403
  },
2403
2404
  shouldPersistWalletPreference: () => this._config.persistWalletPreference !== !1,
2404
- walletPreferenceKey: oe.WALLET_PREF_KEY,
2405
+ walletPreferenceKey: ne.WALLET_PREF_KEY,
2405
2406
  storage: this.storage,
2406
2407
  pinStore: this.pinStore
2407
- }), this.pinOrchestrator = new de({
2408
+ }), this.pinOrchestrator = new le({
2408
2409
  confirmation: this.confirmation,
2409
2410
  walletProvider: this.walletProvider,
2410
2411
  pinStore: this.pinStore,
@@ -2504,7 +2505,7 @@ const oe = class oe extends Yt {
2504
2505
  l,
2505
2506
  void 0,
2506
2507
  () => this._config.locale
2507
- ), this.signOutUseCase = new qt(this.internalConfig, t, l), this.migrateWalletUseCase = new Vt(t, a), (x = a.setOnUnauthorized) == null || x.call(a, () => this.forceLogout()), (g = a.setTokenRefresher) == null || g.call(
2508
+ ), this.signOutUseCase = new Vt(this.internalConfig, t, l), this.migrateWalletUseCase = new qt(t, a), (x = a.setOnUnauthorized) == null || x.call(a, () => this.forceLogout()), (g = a.setTokenRefresher) == null || g.call(
2508
2509
  a,
2509
2510
  () => this.signInUseCase.refreshAccessToken()
2510
2511
  ), e.autoDetectTheme && this._setupAutoDetectTheme();
@@ -2546,12 +2547,12 @@ const oe = class oe extends Yt {
2546
2547
  }
2547
2548
  async _doInitialize(e) {
2548
2549
  var r, t;
2549
- c.log("[CROSSx SDK] v2.3.9-beta.1 초기화 중..."), this.confirmation.setMessages(J(this._config.locale));
2550
+ c.log("[CROSSx SDK] v2.3.10-beta.1 초기화 중..."), this.confirmation.setMessages(X(this._config.locale));
2550
2551
  try {
2551
2552
  const s = We();
2552
2553
  this.internalConfig.oauthServiceUrl = s.oauthServiceUrl, this.internalConfig.authApiUrl = s.authApiUrl, this.internalConfig.walletGatewayUrl = s.walletGatewayUrl, this.adapterConfig.gatewayUrl = s.walletGatewayUrl, (t = (r = this.crypto).setJWKSEndpoint) == null || t.call(r, `${s.authApiUrl}/.well-known/jwks.json`);
2553
2554
  const o = this._config.persistWalletPreference !== !1 ? await this.storage.get(
2554
- oe.WALLET_PREF_KEY
2555
+ ne.WALLET_PREF_KEY
2555
2556
  ).catch(() => null) : null, n = (e == null ? void 0 : e.preferredWalletIndex) ?? (o == null ? void 0 : o.index);
2556
2557
  let a = (e == null ? void 0 : e.preferredWalletAddress) ?? (o == null ? void 0 : o.address), l = await this.tryRNBridgeBootstrap();
2557
2558
  if (this._rnBridgeWalletAddress && ((a == null ? void 0 : a.toLowerCase()) !== this._rnBridgeWalletAddress.toLowerCase() && c.log("[CROSSx] RN Bridge active wallet으로 preferredWalletAddress 갱신:", this._rnBridgeWalletAddress), a = this._rnBridgeWalletAddress), l || (l = await this.signInUseCase.restoreSession()), l != null && l.success) {
@@ -2582,7 +2583,7 @@ const oe = class oe extends Yt {
2582
2583
  throw u;
2583
2584
  }
2584
2585
  }
2585
- return this.initialized = !0, c.info("[CROSSx SDK] v2.3.9-beta.1 초기화 완료"), this.emit("initialized", { restored: !!(l != null && l.success) }), l ?? null;
2586
+ return this.initialized = !0, c.info("[CROSSx SDK] v2.3.10-beta.1 초기화 완료"), this.emit("initialized", { restored: !!(l != null && l.success) }), l ?? null;
2586
2587
  } catch (s) {
2587
2588
  throw new h(d.AUTH_NOT_INITIALIZED, "SDK 초기화에 실패했습니다", s);
2588
2589
  }
@@ -2597,20 +2598,20 @@ const oe = class oe extends Yt {
2597
2598
  * → 사용자가 signIn() 을 호출할 때 bridge 로그인을 시도한다.
2598
2599
  */
2599
2600
  async tryRNBridgeBootstrap() {
2600
- if (!Y.isAvailable()) return null;
2601
+ if (!j.isAvailable()) return null;
2601
2602
  try {
2602
2603
  c.log("[CROSSx] RN Bridge 감지 — Handshake 시도"), c.info("[CROSSx][RNBridge trace] Bootstrap config", {
2603
2604
  appId: this._config.projectId,
2604
2605
  appVersion: "1.0.0",
2605
- sdkVersion: "2.3.9-beta.1",
2606
+ sdkVersion: "2.3.10-beta.1",
2606
2607
  keyId: "key-id-1",
2607
2608
  userIdHash: "user-hash-placeholder",
2608
2609
  projectId: this._config.projectId
2609
2610
  });
2610
- const e = new Y({
2611
+ const e = new j({
2611
2612
  appId: this._config.projectId,
2612
2613
  appVersion: "1.0.0",
2613
- sdkVersion: "2.3.9-beta.1",
2614
+ sdkVersion: "2.3.10-beta.1",
2614
2615
  keyId: "key-id-1",
2615
2616
  userIdHash: "user-hash-placeholder",
2616
2617
  projectId: this._config.projectId
@@ -2709,7 +2710,7 @@ const oe = class oe extends Yt {
2709
2710
  * @internal
2710
2711
  */
2711
2712
  getRNBridge() {
2712
- return Y.getBridge();
2713
+ return j.getBridge();
2713
2714
  }
2714
2715
  async signIn(e) {
2715
2716
  if (this.ensureInitialized(), this.authenticated)
@@ -2864,7 +2865,7 @@ const oe = class oe extends Yt {
2864
2865
  this.ensureInitialized();
2865
2866
  try {
2866
2867
  await this.signOutUseCase.execute(), this.clearAuthState();
2867
- const e = Y.getBridge();
2868
+ const e = j.getBridge();
2868
2869
  if (e != null && e.signOut)
2869
2870
  try {
2870
2871
  await e.signOut(), c.log("[CROSSx] RN Bridge signOut 통보 완료 — native trust cache 무효화");
@@ -3204,7 +3205,7 @@ const oe = class oe extends Yt {
3204
3205
  * sdk.applyLocale('ko');
3205
3206
  */
3206
3207
  applyLocale(e = this._config.locale ?? "en") {
3207
- this._config = Object.freeze({ ...this._config, locale: e }), this.confirmation.setMessages(J(e));
3208
+ this._config = Object.freeze({ ...this._config, locale: e }), this.confirmation.setMessages(X(e));
3208
3209
  }
3209
3210
  /**
3210
3211
  * PIN 입력 모달의 키보드 방식을 런타임에 변경합니다.
@@ -3247,7 +3248,7 @@ const oe = class oe extends Yt {
3247
3248
  return this.withSessionRecovery(() => this._signMessage(e, r, t));
3248
3249
  }
3249
3250
  async _signMessage(e, r, t) {
3250
- const s = Y.getBridge();
3251
+ const s = j.getBridge();
3251
3252
  if (s != null && s.signMessage) {
3252
3253
  const n = await s.signMessage({
3253
3254
  chainId: e,
@@ -3379,7 +3380,7 @@ const oe = class oe extends Yt {
3379
3380
  * });
3380
3381
  */
3381
3382
  async signTypedDataOffchain(e, r) {
3382
- return this.signTypedData(oe.OFFCHAIN_CHAIN_ID, e, r);
3383
+ return this.signTypedData(ne.OFFCHAIN_CHAIN_ID, e, r);
3383
3384
  }
3384
3385
  // ============================================================================
3385
3386
  // 트랜잭션
@@ -3529,7 +3530,7 @@ const oe = class oe extends Yt {
3529
3530
  * @param opts.timeoutMs 최대 대기 시간 (기본 60000ms)
3530
3531
  */
3531
3532
  async waitForTxAndGetReceipt(e, r, t = {}) {
3532
- const s = t.intervalMs ?? Nt, o = Pt, n = t.timeoutMs ?? je, a = Date.now() + n;
3533
+ const s = t.intervalMs ?? Ct, o = Pt, n = t.timeoutMs ?? je, a = Date.now() + n;
3533
3534
  let l = s;
3534
3535
  for (; Date.now() < a; ) {
3535
3536
  const p = await this.getTransactionReceipt(e, r);
@@ -3559,32 +3560,32 @@ const oe = class oe extends Yt {
3559
3560
  async sendTransactionWithWaitForReceipt(e, r, t = {}) {
3560
3561
  var m, y;
3561
3562
  if (this._isAuthenticatedViaRNBridge) {
3562
- const S = Y.getBridge();
3563
- if (S != null && S.sendTransactionWithWaitForReceipt)
3564
- return this.bridgeSendTransactionWithWaitForReceipt(S, e, r, t);
3563
+ const E = j.getBridge();
3564
+ if (E != null && E.sendTransactionWithWaitForReceipt)
3565
+ return this.bridgeSendTransactionWithWaitForReceipt(E, e, r, t);
3565
3566
  }
3566
3567
  const { intervalMs: s, timeoutMs: o, ...n } = t, { txHash: a } = await this.sendTransaction(e, r, n), l = s ?? ((m = this._config.receiptPolling) == null ? void 0 : m.intervalMs) ?? Rt, p = o ?? ((y = this._config.receiptPolling) == null ? void 0 : y.timeoutMs) ?? je, _ = Ae(e), u = r.from ?? "";
3567
3568
  let x, g;
3568
- const f = this.waitForTxAndGetReceipt(a, e, { intervalMs: l, timeoutMs: p }).then((S) => {
3569
- x = S;
3570
- const E = BigInt(S.gasUsed) * BigInt(S.effectiveGasPrice), A = r.value ? BigInt(r.value) : 0n, k = we(r.value, _.symbol, _.decimals, this._config.displayDecimals), T = we("0x" + E.toString(16), _.symbol, _.decimals, this._config.displayDecimals), N = we("0x" + (A + E).toString(16), _.symbol, _.decimals, this._config.displayDecimals);
3569
+ const f = this.waitForTxAndGetReceipt(a, e, { intervalMs: l, timeoutMs: p }).then((E) => {
3570
+ x = E;
3571
+ const S = BigInt(E.gasUsed) * BigInt(E.effectiveGasPrice), A = r.value ? BigInt(r.value) : 0n, k = me(r.value, _.symbol, _.decimals, this._config.displayDecimals), T = me("0x" + S.toString(16), _.symbol, _.decimals, this._config.displayDecimals), O = me("0x" + (A + S).toString(16), _.symbol, _.decimals, this._config.displayDecimals);
3571
3572
  return {
3572
3573
  chainId: e,
3573
3574
  txHash: a,
3574
- from: S.from,
3575
- to: S.to ?? r.to,
3575
+ from: E.from,
3576
+ to: E.to ?? r.to,
3576
3577
  amount: k,
3577
3578
  fees: T,
3578
- total: N,
3579
+ total: O,
3579
3580
  nativeSymbol: _.symbol,
3580
- status: S.status === "0x1" ? "success" : "reverted"
3581
+ status: E.status === "0x1" ? "success" : "reverted"
3581
3582
  };
3582
- }).catch((S) => (g = S instanceof Error ? S : new Error(String(S)), {
3583
+ }).catch((E) => (g = E instanceof Error ? E : new Error(String(E)), {
3583
3584
  chainId: e,
3584
3585
  txHash: a,
3585
3586
  from: u,
3586
3587
  to: r.to,
3587
- amount: we(r.value, _.symbol, _.decimals, this._config.displayDecimals),
3588
+ amount: me(r.value, _.symbol, _.decimals, this._config.displayDecimals),
3588
3589
  nativeSymbol: _.symbol,
3589
3590
  status: "timeout"
3590
3591
  }));
@@ -3906,7 +3907,7 @@ const oe = class oe extends Yt {
3906
3907
  * 보안: bridge.isActivated() 가 false 이거나 payload sanitize 실패 시 이벤트 무시.
3907
3908
  */
3908
3909
  subscribeBridgeWalletChanged() {
3909
- const e = Y.getBridge();
3910
+ const e = j.getBridge();
3910
3911
  if (!(e != null && e.onEvent)) {
3911
3912
  c.warn("[CROSSx] bridge.onEvent 미지원 — walletChanged 구독 불가");
3912
3913
  return;
@@ -4081,8 +4082,8 @@ const oe = class oe extends Yt {
4081
4082
  };
4082
4083
  }
4083
4084
  };
4084
- oe.WALLET_PREF_KEY = "wallet_preference", oe.OFFCHAIN_CHAIN_ID = "0";
4085
- let Le = oe;
4085
+ ne.WALLET_PREF_KEY = "wallet_preference", ne.OFFCHAIN_CHAIN_ID = "0";
4086
+ let Le = ne;
4086
4087
  class gr {
4087
4088
  constructor() {
4088
4089
  this.prefix = "crossx_";
@@ -4120,7 +4121,7 @@ class gr {
4120
4121
  }
4121
4122
  }
4122
4123
  }
4123
- const ke = "crossx-sdk", fr = 1, j = "data", te = "keys", me = "aes-primary", wr = 12;
4124
+ const ke = "crossx-sdk", fr = 1, q = "data", re = "keys", ye = "aes-primary", wr = 12;
4124
4125
  class it {
4125
4126
  constructor(e) {
4126
4127
  this.db = null, this.cryptoKey = null, this.initPromise = null, this.dbName = `crossx-sdk-${e}`;
@@ -4133,7 +4134,7 @@ class it {
4133
4134
  const s = indexedDB.open(e, fr);
4134
4135
  s.onupgradeneeded = () => {
4135
4136
  const o = s.result;
4136
- o.objectStoreNames.contains(j) || o.createObjectStore(j), o.objectStoreNames.contains(te) || o.createObjectStore(te);
4137
+ o.objectStoreNames.contains(q) || o.createObjectStore(q), o.objectStoreNames.contains(re) || o.createObjectStore(re);
4137
4138
  }, s.onsuccess = () => r(s.result), s.onerror = () => t(s.error);
4138
4139
  });
4139
4140
  }
@@ -4163,7 +4164,7 @@ class it {
4163
4164
  }
4164
4165
  async init() {
4165
4166
  this.db = await this.openDB();
4166
- const e = await this.idbGet(te, me);
4167
+ const e = await this.idbGet(re, ye);
4167
4168
  if (e) {
4168
4169
  this.cryptoKey = e;
4169
4170
  return;
@@ -4177,7 +4178,7 @@ class it {
4177
4178
  { name: "AES-GCM", length: 256 },
4178
4179
  !1,
4179
4180
  ["encrypt", "decrypt"]
4180
- ), await this.idbPut(te, me, this.cryptoKey);
4181
+ ), await this.idbPut(re, ye, this.cryptoKey);
4181
4182
  }
4182
4183
  /**
4183
4184
  * 레거시 DB('crossx-sdk')에서 projectId 스코프 DB로 암호키·데이터 마이그레이션.
@@ -4186,12 +4187,12 @@ class it {
4186
4187
  async migrateFromLegacyDB() {
4187
4188
  if (this.dbName === ke) return null;
4188
4189
  try {
4189
- const e = await this.openDB(ke), r = e.transaction([te, j], "readonly"), t = r.objectStore(te).get(me), s = await new Promise((p, _) => {
4190
+ const e = await this.openDB(ke), r = e.transaction([re, q], "readonly"), t = r.objectStore(re).get(ye), s = await new Promise((p, _) => {
4190
4191
  t.onsuccess = () => p(t.result), t.onerror = () => _(t.error);
4191
4192
  });
4192
4193
  if (!s)
4193
4194
  return e.close(), null;
4194
- const o = r.objectStore(j).getAll(), n = r.objectStore(j).getAllKeys(), [a, l] = await Promise.all([
4195
+ const o = r.objectStore(q).getAll(), n = r.objectStore(q).getAllKeys(), [a, l] = await Promise.all([
4195
4196
  new Promise((p, _) => {
4196
4197
  o.onsuccess = () => p(o.result), o.onerror = () => _(o.error);
4197
4198
  }),
@@ -4199,9 +4200,9 @@ class it {
4199
4200
  n.onsuccess = () => p(n.result), n.onerror = () => _(n.error);
4200
4201
  })
4201
4202
  ]);
4202
- e.close(), await this.idbPut(te, me, s);
4203
+ e.close(), await this.idbPut(re, ye, s);
4203
4204
  for (let p = 0; p < l.length; p++)
4204
- await this.idbPut(j, String(l[p]), a[p]);
4205
+ await this.idbPut(q, String(l[p]), a[p]);
4205
4206
  return indexedDB.deleteDatabase(ke), c.log("[CROSSx] IndexedDB 레거시 DB 마이그레이션 완료"), s;
4206
4207
  } catch (e) {
4207
4208
  return c.warn("[CROSSx] IndexedDB 레거시 DB 마이그레이션 실패:", e), null;
@@ -4229,7 +4230,7 @@ class it {
4229
4230
  try {
4230
4231
  await this.ensureReady();
4231
4232
  const t = JSON.stringify(r), s = await this.encrypt(t);
4232
- await this.idbPut(j, e, s);
4233
+ await this.idbPut(q, e, s);
4233
4234
  } catch (t) {
4234
4235
  throw c.error("[CROSSx] IndexedDB set error:", t), t;
4235
4236
  }
@@ -4237,7 +4238,7 @@ class it {
4237
4238
  async get(e) {
4238
4239
  try {
4239
4240
  await this.ensureReady();
4240
- const r = await this.idbGet(j, e);
4241
+ const r = await this.idbGet(q, e);
4241
4242
  if (!r) return null;
4242
4243
  const t = await this.decrypt(r);
4243
4244
  return JSON.parse(t);
@@ -4247,14 +4248,14 @@ class it {
4247
4248
  }
4248
4249
  async remove(e) {
4249
4250
  try {
4250
- await this.ensureReady(), await this.idbDelete(j, e);
4251
+ await this.ensureReady(), await this.idbDelete(q, e);
4251
4252
  } catch (r) {
4252
4253
  throw c.error("[CROSSx] IndexedDB remove error:", r), r;
4253
4254
  }
4254
4255
  }
4255
4256
  async clear() {
4256
4257
  try {
4257
- await this.ensureReady(), await this.idbClear(j);
4258
+ await this.ensureReady(), await this.idbClear(q);
4258
4259
  } catch (e) {
4259
4260
  throw c.error("[CROSSx] IndexedDB clear error:", e), e;
4260
4261
  }
@@ -4331,13 +4332,13 @@ class yr {
4331
4332
  ${t.length}`
4332
4333
  ), o = new Uint8Array(s.length + t.length);
4333
4334
  o.set(s, 0), o.set(t, s.length);
4334
- const n = Ve(o), a = r.startsWith("0x") ? r.slice(2) : r;
4335
+ const n = qe(o), a = r.startsWith("0x") ? r.slice(2) : r;
4335
4336
  if (a.length !== 130)
4336
4337
  throw new Error(`서명 길이가 유효하지 않습니다: 130 hex 문자 예상, 현재 ${a.length}`);
4337
4338
  const l = br(a), p = l.slice(0, 32), _ = l.slice(32, 64), u = l[64], x = u >= 27 ? u - 27 : u, m = new kt.Signature(
4338
4339
  ot(p),
4339
4340
  ot(_)
4340
- ).addRecoveryBit(x).recoverPublicKey(n).toBytes(!1).slice(1), y = Ve(m);
4341
+ ).addRecoveryBit(x).recoverPublicKey(n).toBytes(!1).slice(1), y = qe(m);
4341
4342
  return "0x" + Tt(y.slice(12));
4342
4343
  }
4343
4344
  }
@@ -4403,11 +4404,11 @@ const Ar = /* @__PURE__ */ new Set([
4403
4404
  "https://cross-wallet-oauth.crosstoken.io",
4404
4405
  "https://stg-cross-wallet-oauth.crosstoken.io",
4405
4406
  "https://dev-cross-wallet-oauth.crosstoken.io",
4406
- "https://cross-wallet-oauth.onechain.nexus",
4407
- "https://stg-cross-wallet-oauth.onechain.nexus",
4408
- "https://dev-cross-wallet-oauth.onechain.nexus"
4407
+ "https://one-wallet-oauth.onechain.nexus",
4408
+ "https://stg-one-wallet-oauth.onechain.nexus",
4409
+ "https://dev-one-wallet-oauth.onechain.nexus"
4409
4410
  ]);
4410
- class se {
4411
+ class ie {
4411
4412
  static generateRandom16Hex() {
4412
4413
  const e = new Uint8Array(16);
4413
4414
  return crypto.getRandomValues(e), Array.from(e, (r) => r.toString(16).padStart(2, "0")).join("");
@@ -4431,7 +4432,7 @@ class se {
4431
4432
  * - Google 및 기타: originalNonce === jwt.nonce
4432
4433
  */
4433
4434
  static async verifyIdTokenNonce(e, r) {
4434
- const t = se.parseJwtPayload(e), s = t.nonce, o = typeof t.iss == "string" ? t.iss : "(unknown)";
4435
+ const t = ie.parseJwtPayload(e), s = t.nonce, o = typeof t.iss == "string" ? t.iss : "(unknown)";
4435
4436
  if (c.log("[CROSSx] nonce 검증 시작 —", {
4436
4437
  iss: o,
4437
4438
  nonceClaimType: typeof s,
@@ -4453,7 +4454,7 @@ class se {
4453
4454
  return;
4454
4455
  }
4455
4456
  if (o.includes("appleid.apple.com")) {
4456
- const n = await se.sha256Hex(r);
4457
+ const n = await ie.sha256Hex(r);
4457
4458
  if (c.log("[CROSSx] Apple nonce 검증 —", {
4458
4459
  expectedHashLength: n.length,
4459
4460
  receivedHashLength: s.length,
@@ -4470,87 +4471,87 @@ class se {
4470
4471
  }
4471
4472
  openAuth(e) {
4472
4473
  return new Promise((r, t) => {
4473
- const s = Math.max(e.width ?? 500, 500), o = Math.max(e.height ?? 700, 700), n = window.screenX + (window.outerWidth - s) / 2, a = window.screenY + (window.outerHeight - o) / 2, l = se.generateRandom16Hex(), p = se.generateRandom16Hex(), _ = e.authUrl.includes("?") ? "&" : "?", u = `${e.authUrl}${_}state=${l}&nonce=${p}`;
4474
+ const s = Math.max(e.width ?? 500, 500), o = Math.max(e.height ?? 700, 700), n = window.screenX + (window.outerWidth - s) / 2, a = window.screenY + (window.outerHeight - o) / 2, l = ie.generateRandom16Hex(), p = ie.generateRandom16Hex(), _ = e.authUrl.includes("?") ? "&" : "?", u = encodeURIComponent(window.location.origin), x = `${e.authUrl}${_}state=${l}&nonce=${p}&origin=${u}`;
4474
4475
  c.log("[CROSSx] OAuth 팝업 열기 — state, nonce 생성 완료:", {
4475
4476
  stateLength: l.length,
4476
4477
  nonceLength: p.length,
4477
4478
  authUrlBase: e.authUrl
4478
4479
  });
4479
- const x = window.open(
4480
- u,
4480
+ const g = window.open(
4481
+ x,
4481
4482
  "CROSSx OAuth",
4482
4483
  `width=${s},height=${o},left=${n},top=${a}`
4483
4484
  );
4484
- if (!x) {
4485
+ if (!g) {
4485
4486
  t(new Error("팝업 창을 열 수 없습니다. 팝업 차단을 해제해 주세요."));
4486
4487
  return;
4487
4488
  }
4488
- const g = setTimeout(() => {
4489
- c.warn("[CROSSx] OAuth 타임아웃 (5분) — postMessage를 수신하지 못했습니다"), k(), t(new Error("Authentication timeout"));
4490
- }, 5 * 60 * 1e3), f = 10, m = 30;
4491
- let y = 0, S = null;
4492
- const E = () => {
4493
- clearInterval(A), c.warn("[CROSSx] COOP 감지 — OAuth 서버 응답을 " + m + "초간 대기합니다"), S = setTimeout(() => {
4494
- k(), t(new Error(
4489
+ const f = setTimeout(() => {
4490
+ c.warn("[CROSSx] OAuth 타임아웃 (5분) — postMessage를 수신하지 못했습니다"), T(), t(new Error("Authentication timeout"));
4491
+ }, 5 * 60 * 1e3), m = 10, y = 30;
4492
+ let E = 0, S = null;
4493
+ const A = () => {
4494
+ clearInterval(k), c.warn("[CROSSx] COOP 감지 — OAuth 서버 응답을 " + y + "초간 대기합니다"), S = setTimeout(() => {
4495
+ T(), t(new Error(
4495
4496
  "OAuth 서버로부터 응답을 받지 못했습니다. 브라우저 보안 정책(COOP)으로 인해 팝업 통신이 차단되었을 수 있습니다. 다시 시도해 주세요."
4496
4497
  ));
4497
- }, m * 1e3);
4498
- }, A = setInterval(() => {
4499
- y++;
4498
+ }, y * 1e3);
4499
+ }, k = setInterval(() => {
4500
+ E++;
4500
4501
  try {
4501
- if (!x.closed) return;
4502
- const N = typeof document < "u" && document.hasFocus();
4503
- y <= f && !N ? E() : (k(), t(new Error("로그인이 취소되었습니다")));
4502
+ if (!g.closed) return;
4503
+ const M = typeof document < "u" && document.hasFocus();
4504
+ E <= m && !M ? A() : (T(), t(new Error("로그인이 취소되었습니다")));
4504
4505
  } catch {
4505
- E();
4506
+ A();
4506
4507
  }
4507
- }, 1e3), k = () => {
4508
- clearTimeout(g), clearInterval(A), S && clearTimeout(S), window.removeEventListener("message", T);
4509
- }, T = (N) => {
4510
- if (!Ar.has(N.origin)) return;
4511
- k();
4512
- const U = typeof N.data.status == "string", C = U ? N.data.data ?? {} : N.data;
4508
+ }, 1e3), T = () => {
4509
+ clearTimeout(f), clearInterval(k), S && clearTimeout(S), window.removeEventListener("message", O);
4510
+ }, O = (M) => {
4511
+ if (!Ar.has(M.origin)) return;
4512
+ T();
4513
+ const G = typeof M.data.status == "string", P = G ? M.data.data ?? {} : M.data;
4513
4514
  c.log("[CROSSx] OAuth postMessage 수신 —", {
4514
- format: U ? "wrapped" : "flat",
4515
- status: U ? N.data.status : "(flat)"
4515
+ format: G ? "wrapped" : "flat",
4516
+ status: G ? M.data.status : "(flat)"
4516
4517
  });
4517
- const q = (C == null ? void 0 : C.state) ?? N.data.state;
4518
- if (!q || q !== l) {
4518
+ const ee = (P == null ? void 0 : P.state) ?? M.data.state;
4519
+ if (!ee || ee !== l) {
4519
4520
  t(new Error("OAuth state mismatch — possible CSRF attack"));
4520
4521
  return;
4521
4522
  }
4522
- if (U && N.data.status !== "success") {
4523
- c.error("[CROSSx] OAuth 실패:", C == null ? void 0 : C.error), t(new Error((C == null ? void 0 : C.error) || "Authentication failed"));
4523
+ if (G && M.data.status !== "success") {
4524
+ c.error("[CROSSx] OAuth 실패:", P == null ? void 0 : P.error), t(new Error((P == null ? void 0 : P.error) || "Authentication failed"));
4524
4525
  return;
4525
4526
  }
4526
- if (!U && (C != null && C.error)) {
4527
- c.error("[CROSSx] OAuth 실패:", C.error), t(new Error(C.error || "Authentication failed"));
4527
+ if (!G && (P != null && P.error)) {
4528
+ c.error("[CROSSx] OAuth 실패:", P.error), t(new Error(P.error || "Authentication failed"));
4528
4529
  return;
4529
4530
  }
4530
- const z = C == null ? void 0 : C.idToken, P = C == null ? void 0 : C.accessToken, L = P ?? z, W = (C == null ? void 0 : C.email) || void 0;
4531
+ const C = P == null ? void 0 : P.idToken, L = P == null ? void 0 : P.accessToken, U = L ?? C, ae = (P == null ? void 0 : P.email) || void 0;
4531
4532
  if (c.log("[CROSSx] OAuth 토큰 수신:", {
4532
- hasAccessToken: !!P,
4533
- hasIdToken: !!z,
4534
- hasEmail: !!W
4535
- }), !L) {
4536
- c.error("[CROSSx] 토큰을 찾을 수 없음:", N.data), t(new Error("Token not found in response"));
4533
+ hasAccessToken: !!L,
4534
+ hasIdToken: !!C,
4535
+ hasEmail: !!ae
4536
+ }), !U) {
4537
+ c.error("[CROSSx] 토큰을 찾을 수 없음:", M.data), t(new Error("Token not found in response"));
4537
4538
  return;
4538
4539
  }
4539
- const ne = { token: L, email: W }, ae = (ge) => {
4540
- se.verifyIdTokenNonce(ge, p).then(() => r(ne)).catch((ce) => {
4541
- c.error("[CROSSx] nonce 검증 실패:", ce), t(ce instanceof Error ? ce : new Error("nonce verification failed"));
4540
+ const pe = { token: U, email: ae }, _e = (he) => {
4541
+ ie.verifyIdTokenNonce(he, p).then(() => r(pe)).catch((te) => {
4542
+ c.error("[CROSSx] nonce 검증 실패:", te), t(te instanceof Error ? te : new Error("nonce verification failed"));
4542
4543
  });
4543
4544
  };
4544
- P ? P.split(".").length === 3 ? ae(P) : z ? ae(z) : (c.warn(
4545
+ L ? L.split(".").length === 3 ? _e(L) : C ? _e(C) : (c.warn(
4545
4546
  "[CROSSx] opaque accessToken만 수신 (idToken 없음) — nonce 검증 불가.",
4546
4547
  "서버 측 nonce 검증이 필요합니다."
4547
- ), r(ne)) : z ? ae(z) : t(new Error("Token not found in response"));
4548
+ ), r(pe)) : C ? _e(C) : t(new Error("Token not found in response"));
4548
4549
  };
4549
- window.addEventListener("message", T);
4550
+ window.addEventListener("message", O);
4550
4551
  });
4551
4552
  }
4552
4553
  }
4553
- const he = "crossx_wallet_data", le = "crossx_mock_pin_hash";
4554
+ const xe = "crossx_wallet_data", ce = "crossx_mock_pin_hash";
4554
4555
  class Ir {
4555
4556
  constructor(e, r) {
4556
4557
  this.storage = e, this.pinStore = r ?? null;
@@ -4564,13 +4565,13 @@ class Ir {
4564
4565
  async checkWallet() {
4565
4566
  if (this.migrateScenario !== void 0)
4566
4567
  return c.log("[Mock] checkWallet → migration_required"), "migration_required";
4567
- const r = await this.storage.get(he) ? "exists" : "not_found";
4568
+ const r = await this.storage.get(xe) ? "exists" : "not_found";
4568
4569
  return c.log(`[Mock] checkWallet → ${r}`), r;
4569
4570
  }
4570
4571
  async getOrCreateWallet(e) {
4571
4572
  var r;
4572
4573
  try {
4573
- const t = await this.storage.get(he);
4574
+ const t = await this.storage.get(xe);
4574
4575
  if (t) return t;
4575
4576
  const s = {
4576
4577
  id: e,
@@ -4578,16 +4579,16 @@ class Ir {
4578
4579
  derivationPath: "m/44'/60'/0'/0/0",
4579
4580
  createdAt: Date.now()
4580
4581
  };
4581
- await this.storage.set(he, s);
4582
+ await this.storage.set(xe, s);
4582
4583
  const o = (r = this.pinStore) == null ? void 0 : r.get();
4583
- return o && (await this.storage.set(le, o), c.log("[Mock] 지갑 생성 — PIN 저장됨")), s;
4584
+ return o && (await this.storage.set(ce, o), c.log("[Mock] 지갑 생성 — PIN 저장됨")), s;
4584
4585
  } catch (t) {
4585
4586
  throw new h(d.WALLET_CREATION_FAILED, "지갑 생성에 실패했습니다", t);
4586
4587
  }
4587
4588
  }
4588
4589
  /** GET /mnemonic/addresses 모킹 — PIN 불필요, 캐시된 주소 반환 */
4589
4590
  async getAddresses(e) {
4590
- const r = await this.storage.get(he);
4591
+ const r = await this.storage.get(xe);
4591
4592
  return r ? [{ address: r.address, index: 0 }] : [];
4592
4593
  }
4593
4594
  async getAddress(e, r) {
@@ -4622,8 +4623,8 @@ class Ir {
4622
4623
  var t;
4623
4624
  if (c.log("[Mock] verifyPin"), this.pinScenario === "wrong")
4624
4625
  return !1;
4625
- const r = await this.storage.get(le);
4626
- return r && r !== e ? !1 : (r || await this.storage.set(le, e), (t = this.pinStore) == null || t.set(e), c.log("[Mock] verifyPin → 성공"), !0);
4626
+ const r = await this.storage.get(ce);
4627
+ return r && r !== e ? !1 : (r || await this.storage.set(ce, e), (t = this.pinStore) == null || t.set(e), c.log("[Mock] verifyPin → 성공"), !0);
4627
4628
  }
4628
4629
  /**
4629
4630
  * POST /mnemonic/change-password 모킹
@@ -4633,10 +4634,10 @@ class Ir {
4633
4634
  var o;
4634
4635
  if (c.log("[Mock] changePin"), this.pinScenario === "wrong")
4635
4636
  throw new h(d.PIN_WRONG, "Incorrect PIN.");
4636
- const t = (o = this.pinStore) == null ? void 0 : o.get(), s = await this.storage.get(le);
4637
+ const t = (o = this.pinStore) == null ? void 0 : o.get(), s = await this.storage.get(ce);
4637
4638
  if (s && t && s !== t)
4638
4639
  throw new h(d.PIN_WRONG, "Incorrect PIN.");
4639
- await this.storage.set(le, r), c.log("[Mock] changePin 완료");
4640
+ await this.storage.set(ce, r), c.log("[Mock] changePin 완료");
4640
4641
  }
4641
4642
  async migrateWallet(e, r) {
4642
4643
  var o;
@@ -4667,9 +4668,9 @@ class Ir {
4667
4668
  derivationPath: "m/44'/60'/0'/0/0",
4668
4669
  createdAt: Date.now()
4669
4670
  };
4670
- await this.storage.set(he, t);
4671
+ await this.storage.set(xe, t);
4671
4672
  const s = (o = this.pinStore) == null ? void 0 : o.get();
4672
- return s && (await this.storage.set(le, s), c.log("[Mock] 마이그레이션 — PIN 저장됨")), t;
4673
+ return s && (await this.storage.set(ce, s), c.log("[Mock] 마이그레이션 — PIN 저장됨")), t;
4673
4674
  }
4674
4675
  /**
4675
4676
  * POST /mnemonic/share-c 모킹
@@ -4696,7 +4697,7 @@ class Ir {
4696
4697
  ).join("");
4697
4698
  }
4698
4699
  }
4699
- class ie {
4700
+ class oe {
4700
4701
  constructor(e, r, t, s, o) {
4701
4702
  this._refreshPromise = null, this._walletStatusCache = null, this.adapterConfig = e, this.projectId = e.projectId, this.storage = r, this.transport = t, this.tokenStore = s, this.pinStore = o ?? null;
4702
4703
  }
@@ -4773,7 +4774,7 @@ class ie {
4773
4774
  url: n,
4774
4775
  method: e
4775
4776
  });
4776
- const m = ie.mapGatewayError(g.code, g.data);
4777
+ const m = oe.mapGatewayError(g.code, g.data);
4777
4778
  if (m === d.AUTH_NOT_AUTHENTICATED && !s && this._onTokenRefresh) {
4778
4779
  if (c.warn("[CROSSx] Gateway -10002 감지 — 토큰 갱신 후 재시도"), await this.deduplicatedRefresh())
4779
4780
  return this.request(e, r, t, !0);
@@ -4782,11 +4783,11 @@ class ie {
4782
4783
  if (m === d.USER_NOT_FOUND)
4783
4784
  throw c.warn("[CROSSx] Gateway -10033 감지 — 유저 미존재, 강제 로그아웃"), (l = this._onUnauthorized) == null || l.call(this), new h(
4784
4785
  d.USER_NOT_FOUND,
4785
- ie.getGatewayErrorMessage(g.code, f)
4786
+ oe.getGatewayErrorMessage(g.code, f)
4786
4787
  );
4787
- const y = m === d.AUTH_NOT_AUTHENTICATED ? d.SESSION_EXPIRED : m, S = y === d.SESSION_EXPIRED ? "인증 세션이 만료되었습니다. 다시 로그인해 주세요." : ie.getGatewayErrorMessage(g.code, f), E = g.data;
4788
+ const y = m === d.AUTH_NOT_AUTHENTICATED ? d.SESSION_EXPIRED : m, E = y === d.SESSION_EXPIRED ? "인증 세션이 만료되었습니다. 다시 로그인해 주세요." : oe.getGatewayErrorMessage(g.code, f), S = g.data;
4788
4789
  let A;
4789
- throw m === d.PIN_LOCKED ? A = ie.extractLockDetails(E) : m === d.ADDRESS_LIMIT_EXCEEDED ? A = { limit: Ce, raw: E } : A = E ?? void 0, new h(y, S, A);
4790
+ throw m === d.PIN_LOCKED ? A = oe.extractLockDetails(S) : m === d.ADDRESS_LIMIT_EXCEEDED ? A = { limit: Ne, raw: S } : A = S ?? void 0, new h(y, E, A);
4790
4791
  }
4791
4792
  return c.log("[CROSSx] Wallet Gateway API 성공:", { code: g.code, url: n, method: e }), g.data ?? g;
4792
4793
  }
@@ -5103,7 +5104,7 @@ class ie {
5103
5104
  case -10025:
5104
5105
  return d.INVALID_APP_TYPE;
5105
5106
  case -10028:
5106
- return ie.hasLockInfo(r) ? d.PIN_LOCKED : d.PIN_WRONG;
5107
+ return oe.hasLockInfo(r) ? d.PIN_LOCKED : d.PIN_WRONG;
5107
5108
  case -10029:
5108
5109
  return d.PIN_INVALID;
5109
5110
  case -10031:
@@ -5174,7 +5175,7 @@ class ie {
5174
5175
  case -10033:
5175
5176
  return "User not found. You have been signed out.";
5176
5177
  case -10036:
5177
- return `Account limit reached. Maximum ${Ce} accounts allowed.`;
5178
+ return `Account limit reached. Maximum ${Ne} accounts allowed.`;
5178
5179
  case -10040:
5179
5180
  return "HMAC signature header is required.";
5180
5181
  case -10041:
@@ -5300,7 +5301,7 @@ class kr {
5300
5301
  (t = (r = this.inner).setTokenRefresher) == null || t.call(r, e);
5301
5302
  }
5302
5303
  }
5303
- class xe {
5304
+ class fe {
5304
5305
  constructor(e, r) {
5305
5306
  this.cache = /* @__PURE__ */ new Map(), this.loadedAt = 0, this.usingFallback = !1, this._fetchPromise = null, this.adapterConfig = e, this.projectId = e.projectId, this.transport = r;
5306
5307
  }
@@ -5321,7 +5322,7 @@ class xe {
5321
5322
  const r = e.data.chains;
5322
5323
  return this.populateCache(r, !1), r;
5323
5324
  } catch {
5324
- const e = xe.fallbackChains();
5325
+ const e = fe.fallbackChains();
5325
5326
  return this.populateCache(e, !0), e;
5326
5327
  }
5327
5328
  }
@@ -5357,13 +5358,13 @@ class xe {
5357
5358
  if (e.code < 0) {
5358
5359
  const r = typeof e.data == "string" ? e.data : e.message ?? "체인 레지스트리 요청에 실패했습니다";
5359
5360
  throw new h(
5360
- xe.mapErrorCode(e.code),
5361
+ fe.mapErrorCode(e.code),
5361
5362
  r
5362
5363
  );
5363
5364
  }
5364
5365
  }
5365
5366
  fallbackOrThrow(e) {
5366
- const r = xe.fallbackChains().find(
5367
+ const r = fe.fallbackChains().find(
5367
5368
  (t) => t.chainId === e
5368
5369
  );
5369
5370
  if (r) return r;
@@ -5373,7 +5374,7 @@ class xe {
5373
5374
  );
5374
5375
  }
5375
5376
  static fallbackChains() {
5376
- return Object.values(ve).map((e) => ({
5377
+ return Object.values(Se).map((e) => ({
5377
5378
  chainId: e.caipId,
5378
5379
  rpcUrl: e.rpcUrl
5379
5380
  }));
@@ -5397,7 +5398,7 @@ class xe {
5397
5398
  }
5398
5399
  }
5399
5400
  }
5400
- const nt = "__crossx-confirm-style", M = "__crossx-confirm-overlay", Tr = {
5401
+ const nt = "__crossx-confirm-style", F = "__crossx-confirm-overlay", Tr = {
5401
5402
  light: {
5402
5403
  bg: "#FFFFFF",
5403
5404
  border: "rgba(0,0,0,0.07)",
@@ -5497,7 +5498,7 @@ function at(i, e) {
5497
5498
  const Rr = `
5498
5499
  @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400&family=Sora:wght@400;600&display=swap');
5499
5500
 
5500
- #${M} {
5501
+ #${F} {
5501
5502
  position: fixed;
5502
5503
  inset: 0;
5503
5504
  z-index: 2147483647;
@@ -7031,7 +7032,7 @@ button.__crossx-connect-other-block:active {
7031
7032
  }
7032
7033
  /* ── Mobile bottom sheet ───────────────────────────────────── */
7033
7034
  @media (max-width: 480px) {
7034
- #${M} {
7035
+ #${F} {
7035
7036
  align-items: flex-end;
7036
7037
  /*
7037
7038
  * iOS Safari 는 soft keyboard 가 떠도 layout viewport 를 축소시키지 않아
@@ -7330,7 +7331,7 @@ button.__crossx-connect-other-block:active {
7330
7331
 
7331
7332
  /* ── Landscape for signing/transaction modals ──────────── */
7332
7333
  @media (orientation: landscape) and (max-height: 500px) {
7333
- #${M} { align-items: center !important; overflow: hidden; }
7334
+ #${F} { align-items: center !important; overflow: hidden; }
7334
7335
  .__crossx-card--send-tx,
7335
7336
  .__crossx-card--sign-tx,
7336
7337
  .__crossx-card--sign-msg,
@@ -8093,12 +8094,12 @@ button.__crossx-connect-other-block:active {
8093
8094
  display: block;
8094
8095
  }
8095
8096
  `;
8096
- function G() {
8097
+ function K() {
8097
8098
  let i = document.getElementById(nt);
8098
8099
  i || (i = document.createElement("style"), i.id = nt, document.head.appendChild(i)), i.textContent = Rr;
8099
8100
  }
8100
- function Nr() {
8101
- const i = `#${M}`, e = (t) => {
8101
+ function Cr() {
8102
+ const i = `#${F}`, e = (t) => {
8102
8103
  var s, o;
8103
8104
  (o = (s = t.target) == null ? void 0 : s.closest) != null && o.call(s, i) && t.stopImmediatePropagation();
8104
8105
  }, r = (t) => {
@@ -8109,7 +8110,7 @@ function Nr() {
8109
8110
  document.removeEventListener("focusin", e, !0), document.removeEventListener("focusout", r, !0);
8110
8111
  };
8111
8112
  }
8112
- function K(i) {
8113
+ function z(i) {
8113
8114
  const e = i.querySelector(".__crossx-card");
8114
8115
  if (e) {
8115
8116
  const a = (e.getAttribute("style") ?? "").match(/--cx-bg:\s*([^;]+)/);
@@ -8137,7 +8138,7 @@ function K(i) {
8137
8138
  }
8138
8139
  n.preventDefault();
8139
8140
  }, { passive: !1 });
8140
- const t = Nr(), s = Pr(i), o = i.remove.bind(i);
8141
+ const t = Cr(), s = Pr(i), o = i.remove.bind(i);
8141
8142
  i.remove = () => {
8142
8143
  s(), t(), o();
8143
8144
  }, document.body.appendChild(i);
@@ -8157,7 +8158,7 @@ function Pr(i) {
8157
8158
  e.removeEventListener("resize", t), e.removeEventListener("scroll", t), i.style.removeProperty("--cx-keyboard-inset");
8158
8159
  };
8159
8160
  }
8160
- function Cr(i) {
8161
+ function Nr(i) {
8161
8162
  const e = Array.from(i.querySelectorAll(".__crossx-amount-tip"));
8162
8163
  if (!e.length) return;
8163
8164
  const r = document.createElement("div");
@@ -8182,7 +8183,7 @@ function Cr(i) {
8182
8183
  }, { passive: !0 });
8183
8184
  }
8184
8185
  const Or = () => /iPad|iPhone|iPod/.test(navigator.userAgent) || navigator.platform === "MacIntel" && navigator.maxTouchPoints > 1;
8185
- function re() {
8186
+ function se() {
8186
8187
  if (Or()) {
8187
8188
  const e = window.scrollY;
8188
8189
  return document.body.style.position = "fixed", document.body.style.top = `-${e}px`, document.body.style.left = "0", document.body.style.right = "0", () => {
@@ -8194,7 +8195,7 @@ function re() {
8194
8195
  document.body.style.overflow = i;
8195
8196
  };
8196
8197
  }
8197
- function Q(i) {
8198
+ function Z(i) {
8198
8199
  return i ? i.length <= 13 ? i : `${i.slice(0, 6)}…${i.slice(-4)}` : "—";
8199
8200
  }
8200
8201
  function ht(i) {
@@ -8205,10 +8206,10 @@ function ut(i, e = "ONE", r = 18, t = 6) {
8205
8206
  try {
8206
8207
  const s = BigInt(i);
8207
8208
  if (s === 0n) return null;
8208
- const o = Me(s, r, t);
8209
+ const o = $e(s, r, t);
8209
8210
  if (o === "0") return null;
8210
8211
  const n = De(s, r);
8211
- return $e(`${o} ${e}`, `${n} ${e}`);
8212
+ return Me(`${o} ${e}`, `${n} ${e}`);
8212
8213
  } catch {
8213
8214
  return null;
8214
8215
  }
@@ -8280,10 +8281,10 @@ function De(i, e) {
8280
8281
  const r = 10n ** BigInt(e), t = i / r, o = (i % r).toString().padStart(e, "0").replace(/0+$/, "");
8281
8282
  return o ? `${t}.${o}` : `${t}`;
8282
8283
  }
8283
- function $e(i, e) {
8284
+ function Me(i, e) {
8284
8285
  return i === e ? w(i) : `<span class="__crossx-amount-tip" data-full="${w(e)}">${w(i)}</span>`;
8285
8286
  }
8286
- function Me(i, e, r) {
8287
+ function $e(i, e, r) {
8287
8288
  if (i === 0n) return "0";
8288
8289
  const t = 10n ** BigInt(e), s = i / t, a = (i % t).toString().padStart(e, "0").slice(0, r).replace(/0+$/, "");
8289
8290
  return a ? `${s}.${a}` : `${s}`;
@@ -8303,7 +8304,7 @@ function Dr(i) {
8303
8304
  return i;
8304
8305
  }
8305
8306
  }
8306
- function $r(i, e) {
8307
+ function Mr(i, e) {
8307
8308
  const { gasLimit: r, gasPrice: t, maxFeePerGas: s, maxPriorityFeePerGas: o, nativeDecimals: n = 18 } = i, a = He(i.chainId, i.nativeSymbol ?? "ETH");
8308
8309
  if (!r) return null;
8309
8310
  try {
@@ -8312,8 +8313,8 @@ function $r(i, e) {
8312
8313
  const _ = l * BigInt(s);
8313
8314
  return {
8314
8315
  isDynamic: !0,
8315
- estTxFee: $e(
8316
- `${Me(_, n, e)} ${a}`,
8316
+ estTxFee: Me(
8317
+ `${$e(_, n, e)} ${a}`,
8317
8318
  `${De(_, n)} ${a}`
8318
8319
  ),
8319
8320
  maxFeeGwei: Re(s),
@@ -8325,8 +8326,8 @@ function $r(i, e) {
8325
8326
  const _ = l * BigInt(t);
8326
8327
  return {
8327
8328
  isDynamic: !1,
8328
- estTxFee: $e(
8329
- `${Me(_, n, e)} ${a}`,
8329
+ estTxFee: Me(
8330
+ `${$e(_, n, e)} ${a}`,
8330
8331
  `${De(_, n)} ${a}`
8331
8332
  ),
8332
8333
  gasPriceGwei: Re(t),
@@ -8339,24 +8340,24 @@ function $r(i, e) {
8339
8340
  }
8340
8341
  }
8341
8342
  function ft(i, e, r) {
8342
- const t = $r(i, e);
8343
+ const t = Mr(i, e);
8343
8344
  if (!t) return D((r == null ? void 0 : r.label_estimated_fee) ?? "Estimated fee", "<span>—</span>");
8344
8345
  let s = D((r == null ? void 0 : r.label_est_tx_fee) ?? "Est. Tx Fee", `<span>${t.estTxFee}</span>`);
8345
8346
  return t.isDynamic ? (t.maxPriorityFeeGwei !== void 0 && (s += D((r == null ? void 0 : r.label_max_priority_fee) ?? "Max Priority Fee", `<span>${t.maxPriorityFeeGwei} Gwei</span>`)), t.maxFeeGwei !== void 0 && (s += D((r == null ? void 0 : r.label_max_gas_fee) ?? "Max Gas Fee", `<span>${t.maxFeeGwei} Gwei</span>`))) : t.gasPriceGwei !== void 0 && (s += D((r == null ? void 0 : r.label_gas_price) ?? "Gas Price", `<span>${t.gasPriceGwei} Gwei</span>`)), t.gasLimitFormatted && (s += D((r == null ? void 0 : r.label_gas_limit) ?? "Gas Limit", `<span>${t.gasLimitFormatted}</span>`)), s;
8346
8347
  }
8347
- const Z = `<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
8348
+ const J = `<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
8348
8349
  <rect x="9" y="9" width="13" height="13" rx="2"/>
8349
8350
  <path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/>
8350
- </svg>`, B = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round">
8351
+ </svg>`, W = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round">
8351
8352
  <line x1="18" y1="6" x2="6" y2="18"/>
8352
8353
  <line x1="6" y1="6" x2="18" y2="18"/>
8353
- </svg>`, Mr = `<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
8354
+ </svg>`, $r = `<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
8354
8355
  <circle cx="20" cy="20" r="20" fill="#00D5AA"/>
8355
8356
  <path fill-rule="evenodd" clip-rule="evenodd" d="M20.3225 2.85742L23.7249 6.25982V11.8301L28.1175 7.43757L32.9292 12.2493L28.5806 16.5979H20.3225C18.4435 16.5979 16.9201 18.1212 16.9201 20.0003C16.9201 21.8794 18.4434 23.4027 20.3225 23.4027H28.5372L32.9293 27.7948L28.1176 32.6066L23.7249 28.2139V33.7407L20.3225 37.1431L16.9201 33.7407V28.2584L12.5719 32.6066L7.76022 27.7948L12.1524 23.4027H6.58209L3.17969 20.0003L6.58209 16.5979H12.1089L7.76035 12.2493L12.5721 7.43757L16.9201 11.7857V6.25982L20.3225 2.85742Z" fill="#121212"/>
8356
- </svg>`, Fr = '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 318.6 318.6" aria-hidden="true"><style>.st1,.st6{fill:#e4761b;stroke:#e4761b;stroke-linecap:round;stroke-linejoin:round}.st6{fill:#f6851b;stroke:#f6851b}</style><path fill="#e2761b" stroke="#e2761b" stroke-linecap="round" stroke-linejoin="round" d="m274.1 35.5-99.5 73.9L193 65.8z"/><path d="m44.4 35.5 98.7 74.6-17.5-44.3zm193.9 171.3-26.5 40.6 56.7 15.6 16.3-55.3zm-204.4.9L50.1 263l56.7-15.6-26.5-40.6z" class="st1"/><path d="m103.6 138.2-15.8 23.9 56.3 2.5-2-60.5zm111.3 0-39-34.8-1.3 61.2 56.2-2.5zM106.8 247.4l33.8-16.5-29.2-22.8zm71.1-16.5 33.9 16.5-4.7-39.3z" class="st1"/><path fill="#d7c1b3" stroke="#d7c1b3" stroke-linecap="round" stroke-linejoin="round" d="m211.8 247.4-33.9-16.5 2.7 22.1-.3 9.3zm-105 0 31.5 14.9-.2-9.3 2.5-22.1z"/><path fill="#233447" stroke="#233447" stroke-linecap="round" stroke-linejoin="round" d="m138.8 193.5-28.2-8.3 19.9-9.1zm40.9 0 8.3-17.4 20 9.1z"/><path fill="#cd6116" stroke="#cd6116" stroke-linecap="round" stroke-linejoin="round" d="m106.8 247.4 4.8-40.6-31.3.9zM207 206.8l4.8 40.6 26.5-39.7zm23.8-44.7-56.2 2.5 5.2 28.9 8.3-17.4 20 9.1zm-120.2 23.1 20-9.1 8.2 17.4 5.3-28.9-56.3-2.5z"/><path fill="#e4751f" stroke="#e4751f" stroke-linecap="round" stroke-linejoin="round" d="m87.8 162.1 23.6 46-.8-22.9zm120.3 23.1-1 22.9 23.7-46zm-64-20.6-5.3 28.9 6.6 34.1 1.5-44.9zm30.5 0-2.7 18 1.2 45 6.7-34.1z"/><path d="m179.8 193.5-6.7 34.1 4.8 3.3 29.2-22.8 1-22.9zm-69.2-8.3.8 22.9 29.2 22.8 4.8-3.3-6.6-34.1z" class="st6"/><path fill="#c0ad9e" stroke="#c0ad9e" stroke-linecap="round" stroke-linejoin="round" d="m180.3 262.3.3-9.3-2.5-2.2h-37.7l-2.3 2.2.2 9.3-31.5-14.9 11 9 22.3 15.5h38.3l22.4-15.5 11-9z"/><path fill="#161616" stroke="#161616" stroke-linecap="round" stroke-linejoin="round" d="m177.9 230.9-4.8-3.3h-27.7l-4.8 3.3-2.5 22.1 2.3-2.2h37.7l2.5 2.2z"/><path fill="#763d16" stroke="#763d16" stroke-linecap="round" stroke-linejoin="round" d="m278.3 114.2 8.5-40.8-12.7-37.9-96.2 71.4 37 31.3 52.3 15.3 11.6-13.5-5-3.6 8-7.3-6.2-4.8 8-6.1zM31.8 73.4l8.5 40.8-5.4 4 8 6.1-6.1 4.8 8 7.3-5 3.6 11.5 13.5 52.3-15.3 37-31.3-96.2-71.4z"/><path d="m267.2 153.5-52.3-15.3 15.9 23.9-23.7 46 31.2-.4h46.5zm-163.6-15.3-52.3 15.3-17.4 54.2h46.4l31.1.4-23.6-46zm71 26.4 3.3-57.7 15.2-41.1h-67.5l15 41.1 3.5 57.7 1.2 18.2.1 44.8h27.7l.2-44.8z" class="st6"/></svg>', Br = '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 126.611 126.611" aria-hidden="true"><polygon fill="#F3BA2F" points="38.171,53.203 62.759,28.616 87.36,53.216 101.667,38.909 62.759,0 23.864,38.896 "/><rect x="3.644" y="53.188" transform="matrix(0.7071 0.7071 -0.7071 0.7071 48.7933 8.8106)" fill="#F3BA2F" width="20.233" height="20.234"/><polygon fill="#F3BA2F" points="38.171,73.408 62.759,97.995 87.359,73.396 101.674,87.695 101.667,87.703 62.759,126.611 23.863,87.716 23.843,87.696 "/><rect x="101.64" y="53.189" transform="matrix(-0.7071 0.7071 -0.7071 -0.7071 235.5457 29.0503)" fill="#F3BA2F" width="20.234" height="20.233"/><polygon fill="#F3BA2F" points="77.271,63.298 77.277,63.298 62.759,48.78 52.03,59.509 52.029,59.509 50.797,60.742 48.254,63.285 48.254,63.285 48.234,63.305 48.254,63.326 62.759,77.831 77.277,63.313 77.284,63.305 "/></svg>', Wr = '<svg width="16" height="16" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><circle cx="20" cy="20" r="20" fill="#00D5AA"/><path fill-rule="evenodd" clip-rule="evenodd" d="M20.3225 2.85742L23.7249 6.25982V11.8301L28.1175 7.43757L32.9292 12.2493L28.5806 16.5979H20.3225C18.4435 16.5979 16.9201 18.1212 16.9201 20.0003C16.9201 21.8794 18.4434 23.4027 20.3225 23.4027H28.5372L32.9293 27.7948L28.1176 32.6066L23.7249 28.2139V33.7407L20.3225 37.1431L16.9201 33.7407V28.2584L12.5719 32.6066L7.76022 27.7948L12.1524 23.4027H6.58209L3.17969 20.0003L6.58209 16.5979H12.1089L7.76035 12.2493L12.5721 7.43757L16.9201 11.7857V6.25982L20.3225 2.85742Z" fill="#121212"/></svg>', Ur = {
8357
- [ue.MetaMask]: Fr,
8358
- [ue.Binance]: Br,
8359
- [ue.CROSSx]: Wr
8357
+ </svg>`, Fr = '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 318.6 318.6" aria-hidden="true"><style>.st1,.st6{fill:#e4761b;stroke:#e4761b;stroke-linecap:round;stroke-linejoin:round}.st6{fill:#f6851b;stroke:#f6851b}</style><path fill="#e2761b" stroke="#e2761b" stroke-linecap="round" stroke-linejoin="round" d="m274.1 35.5-99.5 73.9L193 65.8z"/><path d="m44.4 35.5 98.7 74.6-17.5-44.3zm193.9 171.3-26.5 40.6 56.7 15.6 16.3-55.3zm-204.4.9L50.1 263l56.7-15.6-26.5-40.6z" class="st1"/><path d="m103.6 138.2-15.8 23.9 56.3 2.5-2-60.5zm111.3 0-39-34.8-1.3 61.2 56.2-2.5zM106.8 247.4l33.8-16.5-29.2-22.8zm71.1-16.5 33.9 16.5-4.7-39.3z" class="st1"/><path fill="#d7c1b3" stroke="#d7c1b3" stroke-linecap="round" stroke-linejoin="round" d="m211.8 247.4-33.9-16.5 2.7 22.1-.3 9.3zm-105 0 31.5 14.9-.2-9.3 2.5-22.1z"/><path fill="#233447" stroke="#233447" stroke-linecap="round" stroke-linejoin="round" d="m138.8 193.5-28.2-8.3 19.9-9.1zm40.9 0 8.3-17.4 20 9.1z"/><path fill="#cd6116" stroke="#cd6116" stroke-linecap="round" stroke-linejoin="round" d="m106.8 247.4 4.8-40.6-31.3.9zM207 206.8l4.8 40.6 26.5-39.7zm23.8-44.7-56.2 2.5 5.2 28.9 8.3-17.4 20 9.1zm-120.2 23.1 20-9.1 8.2 17.4 5.3-28.9-56.3-2.5z"/><path fill="#e4751f" stroke="#e4751f" stroke-linecap="round" stroke-linejoin="round" d="m87.8 162.1 23.6 46-.8-22.9zm120.3 23.1-1 22.9 23.7-46zm-64-20.6-5.3 28.9 6.6 34.1 1.5-44.9zm30.5 0-2.7 18 1.2 45 6.7-34.1z"/><path d="m179.8 193.5-6.7 34.1 4.8 3.3 29.2-22.8 1-22.9zm-69.2-8.3.8 22.9 29.2 22.8 4.8-3.3-6.6-34.1z" class="st6"/><path fill="#c0ad9e" stroke="#c0ad9e" stroke-linecap="round" stroke-linejoin="round" d="m180.3 262.3.3-9.3-2.5-2.2h-37.7l-2.3 2.2.2 9.3-31.5-14.9 11 9 22.3 15.5h38.3l22.4-15.5 11-9z"/><path fill="#161616" stroke="#161616" stroke-linecap="round" stroke-linejoin="round" d="m177.9 230.9-4.8-3.3h-27.7l-4.8 3.3-2.5 22.1 2.3-2.2h37.7l2.5 2.2z"/><path fill="#763d16" stroke="#763d16" stroke-linecap="round" stroke-linejoin="round" d="m278.3 114.2 8.5-40.8-12.7-37.9-96.2 71.4 37 31.3 52.3 15.3 11.6-13.5-5-3.6 8-7.3-6.2-4.8 8-6.1zM31.8 73.4l8.5 40.8-5.4 4 8 6.1-6.1 4.8 8 7.3-5 3.6 11.5 13.5 52.3-15.3 37-31.3-96.2-71.4z"/><path d="m267.2 153.5-52.3-15.3 15.9 23.9-23.7 46 31.2-.4h46.5zm-163.6-15.3-52.3 15.3-17.4 54.2h46.4l31.1.4-23.6-46zm71 26.4 3.3-57.7 15.2-41.1h-67.5l15 41.1 3.5 57.7 1.2 18.2.1 44.8h27.7l.2-44.8z" class="st6"/></svg>', Br = '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 126.611 126.611" aria-hidden="true"><polygon fill="#F3BA2F" points="38.171,53.203 62.759,28.616 87.36,53.216 101.667,38.909 62.759,0 23.864,38.896 "/><rect x="3.644" y="53.188" transform="matrix(0.7071 0.7071 -0.7071 0.7071 48.7933 8.8106)" fill="#F3BA2F" width="20.233" height="20.234"/><polygon fill="#F3BA2F" points="38.171,73.408 62.759,97.995 87.359,73.396 101.674,87.695 101.667,87.703 62.759,126.611 23.863,87.716 23.843,87.696 "/><rect x="101.64" y="53.189" transform="matrix(-0.7071 0.7071 -0.7071 -0.7071 235.5457 29.0503)" fill="#F3BA2F" width="20.234" height="20.233"/><polygon fill="#F3BA2F" points="77.271,63.298 77.277,63.298 62.759,48.78 52.03,59.509 52.029,59.509 50.797,60.742 48.254,63.285 48.254,63.285 48.234,63.305 48.254,63.326 62.759,77.831 77.277,63.313 77.284,63.305 "/></svg>', Wr = '<svg width="16" height="16" viewBox="0 0 229 229" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><g clip-path="url(#clip0_74746_12130)"><rect width="228.273" height="228.273" rx="87" fill="white"/><path d="M228.307 -0.0644531H0.0332031V228.209H228.307V-0.0644531Z" fill="#CE3E35"/><path d="M33.9219 43.7533C33.9219 31.934 43.5033 22.3527 55.3225 22.3527H173.019C184.838 22.3527 194.419 31.9341 194.419 43.7533V123.107H33.9219V43.7533Z" fill="white"/><g filter="url(#filter0_d_74746_12130)"><path d="M228.241 228.21H0.0332031V56.5961C0.0332031 48.7166 6.4208 42.329 14.3003 42.329H77.9502C84.6851 42.329 90.1926 47.3831 94.2527 52.7566C98.8699 58.8676 106.06 62.7958 114.137 62.7958C122.214 62.7958 129.404 58.8676 134.021 52.7566C138.081 47.3831 143.589 42.329 150.324 42.329H213.974C221.854 42.329 228.241 48.7166 228.241 56.5961V228.21Z" fill="url(#paint0_linear_74746_12130)"/></g><path d="M79.7598 228.096H228.24V64.7367L79.7598 159.851V228.096Z" fill="url(#paint1_linear_74746_12130)"/><path d="M79.7694 228.209H0.0332031V75.9257L79.7694 160.218V228.209Z" fill="url(#paint2_linear_74746_12130)"/><g filter="url(#filter1_d_74746_12130)"><path d="M113.105 89.2908L81.3322 107.655C75.7279 110.878 73.7862 118.118 77.0076 123.724C80.229 129.331 87.4661 131.273 93.0704 128.051L119.945 112.511L107.147 126.241V180.098C107.147 186.588 112.443 191.885 118.93 191.885C125.417 191.885 130.712 186.588 130.712 180.098V99.4884C130.712 97.237 130.006 95.0297 129.124 93.5729C125.814 88.0106 118.665 86.024 113.061 89.2466L113.105 89.2908Z" fill="white"/></g></g><defs><filter id="filter0_d_74746_12130" x="-7.10034" y="33.4121" width="242.474" height="200.148" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/><feOffset dy="-1.78339"/><feGaussianBlur stdDeviation="3.56677"/><feComposite in2="hardAlpha" operator="out"/><feColorMatrix type="matrix" values="0 0 0 0 0.892803 0 0 0 0 0.220099 0 0 0 0 0.293135 0 0 0 0.5 0"/><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_74746_12130"/><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_74746_12130" result="shape"/></filter><filter id="filter1_d_74746_12130" x="67.9009" y="80.1489" width="75.3839" height="124.308" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/><feOffset dx="2.51084" dy="2.51084"/><feGaussianBlur stdDeviation="5.03056"/><feColorMatrix type="matrix" values="0 0 0 0 0.831373 0 0 0 0 0.113725 0 0 0 0 0.356863 0 0 0 0.3 0"/><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_74746_12130"/><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_74746_12130" result="shape"/></filter><linearGradient id="paint0_linear_74746_12130" x1="-26.3993" y1="19.4879" x2="193.409" y2="286.17" gradientUnits="userSpaceOnUse"><stop stop-color="#F3752D"/><stop offset="1" stop-color="#EC1272"/></linearGradient><linearGradient id="paint1_linear_74746_12130" x1="56.978" y1="73.7355" x2="168.096" y2="169.248" gradientUnits="userSpaceOnUse"><stop stop-color="white" stop-opacity="0.5"/><stop offset="1" stop-color="white" stop-opacity="0"/></linearGradient><linearGradient id="paint2_linear_74746_12130" x1="142.362" y1="29.5078" x2="37.3384" y2="166.255" gradientUnits="userSpaceOnUse"><stop stop-color="white" stop-opacity="0.5"/><stop offset="1" stop-color="white" stop-opacity="0"/></linearGradient><clipPath id="clip0_74746_12130"><rect width="228.273" height="228.273" rx="87" fill="white"/></clipPath></defs></svg>', Ur = {
8358
+ [ge.MetaMask]: Fr,
8359
+ [ge.Binance]: Br,
8360
+ [ge.CROSSx]: Wr
8360
8361
  }, wt = '<path d="M22.6667 11.8333V10.1667C22.6667 9.2475 21.9192 8.5 21.0001 8.5H10.1667C8.78841 8.5 7.66675 9.62167 7.66675 11V21C7.66675 22.8342 9.16175 23.5 10.1667 23.5H22.6667C23.5859 23.5 24.3334 22.7525 24.3334 21.8333V13.5C24.3334 12.5808 23.5859 11.8333 22.6667 11.8333ZM21.0001 19.3333H19.3334V16H21.0001V19.3333ZM10.1667 11.8333C9.95218 11.8237 9.74959 11.7317 9.60114 11.5765C9.4527 11.4213 9.36986 11.2148 9.36986 11C9.36986 10.7852 9.4527 10.5787 9.60114 10.4235C9.74959 10.2683 9.95218 10.1763 10.1667 10.1667H21.0001V11.8333H10.1667Z"/>', Ge = `<svg width="20" height="20" viewBox="0 0 32 32" fill="currentColor" xmlns="http://www.w3.org/2000/svg">${wt}</svg>`, Hr = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none">
8361
8362
  <path d="M12 0C18.6274 0 24 5.37258 24 12C23.9999 18.6273 18.6274 24 12 24C5.37264 24 9.89594e-05 18.6273 0 12C0 5.37258 5.37258 0 12 0ZM10.875 15.127V17.377H13.125V15.127H10.875ZM10.875 6.62207V13.627H13.125V6.62207H10.875Z" fill="var(--cx-error)"/>
8362
8363
  </svg>`, Gr = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none">
@@ -8407,13 +8408,13 @@ function D(i, e) {
8407
8408
  </div>`;
8408
8409
  }
8409
8410
  function zr(i, e, r, t) {
8410
- const s = e, o = He(i.chainId, i.nativeSymbol ?? "ETH"), n = i.nativeDecimals ?? 18, a = Se(i.dappName), l = i.to ? `<span class="__crossx-addr-text">${Q(i.to)}</span>
8411
- <button class="__crossx-copy-btn" data-copy="${w(i.to)}" title="Copy address">${Z}</button>` : "<span>—</span>", p = ft(i, r, t), _ = ut(i.value, o, n, r), u = _ ? D((t == null ? void 0 : t.label_value) ?? "Value", `<span>${_}</span>`) : "", x = i.data ?? "0x", g = document.createElement("div");
8412
- return g.id = M, g.innerHTML = `
8411
+ const s = e, o = He(i.chainId, i.nativeSymbol ?? "ETH"), n = i.nativeDecimals ?? 18, a = Ee(i.dappName), l = i.to ? `<span class="__crossx-addr-text">${Z(i.to)}</span>
8412
+ <button class="__crossx-copy-btn" data-copy="${w(i.to)}" title="Copy address">${J}</button>` : "<span>—</span>", p = ft(i, r, t), _ = ut(i.value, o, n, r), u = _ ? D((t == null ? void 0 : t.label_value) ?? "Value", `<span>${_}</span>`) : "", x = i.data ?? "0x", g = document.createElement("div");
8413
+ return g.id = F, g.innerHTML = `
8413
8414
  <div class="__crossx-card __crossx-card--migration __crossx-card--sign-tx" style="${H(s)}" role="dialog" aria-modal="true" aria-labelledby="__crossx-ttl">
8414
8415
  <div class="__crossx-header">
8415
8416
  <p class="__crossx-title" id="__crossx-ttl">${w((t == null ? void 0 : t.sign_transaction_title) ?? "Signature Request")}</p>
8416
- <button class="__crossx-close" id="__crossx-close-btn" aria-label="Close">${B}</button>
8417
+ <button class="__crossx-close" id="__crossx-close-btn" aria-label="Close">${W}</button>
8417
8418
  </div>
8418
8419
  <hr class="__crossx-divider">
8419
8420
  <div class="__crossx-body">
@@ -8424,7 +8425,7 @@ function zr(i, e, r, t) {
8424
8425
  </p>
8425
8426
  <div class="__crossx-addr-pill">
8426
8427
  ${Ge}
8427
- <span class="__crossx-addr-pill-text">${Q(i.from)}</span>
8428
+ <span class="__crossx-addr-pill-text">${Z(i.from)}</span>
8428
8429
  </div>
8429
8430
  <p class="__crossx-warning">${w((t == null ? void 0 : t.signature_warning) ?? "After you sign, changes or cancellations are not possible.")}</p>
8430
8431
  </div>
@@ -8447,7 +8448,7 @@ function zr(i, e, r, t) {
8447
8448
  </div>
8448
8449
  `, g;
8449
8450
  }
8450
- const qr = /* @__PURE__ */ new Set([
8451
+ const Vr = /* @__PURE__ */ new Set([
8451
8452
  "0x095ea7b3",
8452
8453
  // approve(address,uint256) — ERC20 / ERC721
8453
8454
  "0xa22cb465",
@@ -8457,17 +8458,17 @@ const qr = /* @__PURE__ */ new Set([
8457
8458
  "0x8fcbaf0c"
8458
8459
  // permit(address,address,uint256,uint256,bool,uint8,bytes32,bytes32) — DAI 스타일
8459
8460
  ]);
8460
- function Vr(i) {
8461
- return i ? qr.has(i.slice(0, 10).toLowerCase()) : !1;
8461
+ function qr(i) {
8462
+ return i ? Vr.has(i.slice(0, 10).toLowerCase()) : !1;
8462
8463
  }
8463
8464
  function jr(i, e, r, t) {
8464
- const s = e, o = He(i.chainId, i.nativeSymbol ?? "ETH"), n = i.nativeDecimals ?? 18, a = Se(i.dappName), l = i.to ? `<span class="__crossx-addr-text">${Q(i.to)}</span>
8465
- <button class="__crossx-copy-btn" data-copy="${w(i.to)}" title="Copy address">${Z}</button>` : "<span>—</span>", p = ft(i, r, t), u = ut(i.value, o, n, r) ?? "—", x = Vr(i.data) ? (t == null ? void 0 : t.send_tx_approve_button) ?? "Approve" : (t == null ? void 0 : t.send_tx_confirm_button) ?? "Confirm", g = document.createElement("div");
8466
- return g.id = M, g.innerHTML = `
8465
+ const s = e, o = He(i.chainId, i.nativeSymbol ?? "ETH"), n = i.nativeDecimals ?? 18, a = Ee(i.dappName), l = i.to ? `<span class="__crossx-addr-text">${Z(i.to)}</span>
8466
+ <button class="__crossx-copy-btn" data-copy="${w(i.to)}" title="Copy address">${J}</button>` : "<span>—</span>", p = ft(i, r, t), u = ut(i.value, o, n, r) ?? "—", x = qr(i.data) ? (t == null ? void 0 : t.send_tx_approve_button) ?? "Approve" : (t == null ? void 0 : t.send_tx_confirm_button) ?? "Confirm", g = document.createElement("div");
8467
+ return g.id = F, g.innerHTML = `
8467
8468
  <div class="__crossx-card __crossx-card--migration __crossx-card--send-tx" style="${H(s)}" role="dialog" aria-modal="true" aria-labelledby="__crossx-ttl">
8468
8469
  <div class="__crossx-header">
8469
8470
  <p class="__crossx-title" id="__crossx-ttl">${w((t == null ? void 0 : t.send_transaction_title) ?? "Approve transaction")}</p>
8470
- <button class="__crossx-close" id="__crossx-close-btn" aria-label="Close">${B}</button>
8471
+ <button class="__crossx-close" id="__crossx-close-btn" aria-label="Close">${W}</button>
8471
8472
  </div>
8472
8473
  <hr class="__crossx-divider">
8473
8474
  <div class="__crossx-body">
@@ -8481,7 +8482,7 @@ function jr(i, e, r, t) {
8481
8482
  ${p}
8482
8483
  </div>
8483
8484
  <div class="__crossx-pill">
8484
- <span class="__crossx-pill-from">${Q(i.from)}</span>
8485
+ <span class="__crossx-pill-from">${Z(i.from)}</span>
8485
8486
  <span class="__crossx-pill-amount">${u}</span>
8486
8487
  </div>
8487
8488
  </div>
@@ -8490,7 +8491,7 @@ function jr(i, e, r, t) {
8490
8491
  </div>
8491
8492
  `, g;
8492
8493
  }
8493
- function Se(i) {
8494
+ function Ee(i) {
8494
8495
  var e;
8495
8496
  if (i) return i;
8496
8497
  try {
@@ -8526,28 +8527,28 @@ function Qr(i, e) {
8526
8527
  function mt(i, e) {
8527
8528
  return `<a class="__crossx-addr-text __crossx-row-link" href="${w(e)}" target="_blank" rel="noopener noreferrer">${w(i)}</a>`;
8528
8529
  }
8529
- function ye(i) {
8530
- return mt(Q(i), Zr(i));
8530
+ function be(i) {
8531
+ return mt(Z(i), Zr(i));
8531
8532
  }
8532
8533
  function yt(i, e) {
8533
- return mt(Q(e), Qr(i, e));
8534
+ return mt(Z(e), Qr(i, e));
8534
8535
  }
8535
8536
  function es(i, e, r) {
8536
8537
  const t = D(
8537
8538
  (r == null ? void 0 : r.label_from) ?? "From",
8538
- `${ye(i.from)}
8539
- <button class="__crossx-copy-btn" data-copy="${w(i.from)}" title="Copy address">${Z}</button>`
8540
- ), s = i.to ? D((r == null ? void 0 : r.label_to) ?? "To", `${ye(i.to)}
8541
- <button class="__crossx-copy-btn" data-copy="${w(i.to)}" title="Copy address">${Z}</button>`) : "", o = i.amount ? D((r == null ? void 0 : r.label_transfer) ?? "Transfer", `<span>${w(i.amount)}</span>`) : "", n = i.fees ? D((r == null ? void 0 : r.label_tx_fee) ?? "Tx Fee", `<span>${w(i.fees)}</span>`) : "", a = i.txHash ? D((r == null ? void 0 : r.label_tx_hash) ?? "Tx Hash", `${yt(i.chainId, i.txHash)}
8542
- <button class="__crossx-copy-btn" data-copy="${w(i.txHash)}" title="Copy hash">${Z}</button>`) : "", l = i.total ? `<div class="__crossx-total-pill">
8539
+ `${be(i.from)}
8540
+ <button class="__crossx-copy-btn" data-copy="${w(i.from)}" title="Copy address">${J}</button>`
8541
+ ), s = i.to ? D((r == null ? void 0 : r.label_to) ?? "To", `${be(i.to)}
8542
+ <button class="__crossx-copy-btn" data-copy="${w(i.to)}" title="Copy address">${J}</button>`) : "", o = i.amount ? D((r == null ? void 0 : r.label_transfer) ?? "Transfer", `<span>${w(i.amount)}</span>`) : "", n = i.fees ? D((r == null ? void 0 : r.label_tx_fee) ?? "Tx Fee", `<span>${w(i.fees)}</span>`) : "", a = i.txHash ? D((r == null ? void 0 : r.label_tx_hash) ?? "Tx Hash", `${yt(i.chainId, i.txHash)}
8543
+ <button class="__crossx-copy-btn" data-copy="${w(i.txHash)}" title="Copy hash">${J}</button>`) : "", l = i.total ? `<div class="__crossx-total-pill">
8543
8544
  <span class="__crossx-total-label">${w((r == null ? void 0 : r.label_total) ?? "Total")}<br>${w((r == null ? void 0 : r.label_including_fees) ?? "(including fees)")}</span>
8544
8545
  <span class="__crossx-total-amount">${w(i.total)}</span>
8545
8546
  </div>` : "", p = document.createElement("div");
8546
- return p.id = M, p.innerHTML = `
8547
+ return p.id = F, p.innerHTML = `
8547
8548
  <div class="__crossx-card __crossx-card--migration" style="${H(e)}" role="dialog" aria-modal="true" aria-labelledby="__crossx-ttl">
8548
8549
  <div class="__crossx-header">
8549
8550
  <p class="__crossx-title" id="__crossx-ttl">${w((r == null ? void 0 : r.tx_success) ?? "Transaction complete")}</p>
8550
- <button class="__crossx-close" id="__crossx-close-btn" aria-label="Close">${B}</button>
8551
+ <button class="__crossx-close" id="__crossx-close-btn" aria-label="Close">${W}</button>
8551
8552
  </div>
8552
8553
  <hr class="__crossx-divider">
8553
8554
  <div class="__crossx-body">
@@ -8566,7 +8567,7 @@ function es(i, e, r) {
8566
8567
  }
8567
8568
  function ts(i, e, r) {
8568
8569
  const t = document.createElement("div");
8569
- return t.id = M, t.innerHTML = `
8570
+ return t.id = F, t.innerHTML = `
8570
8571
  <div class="__crossx-card __crossx-card--migration" style="${H(e)}" role="dialog" aria-modal="true" aria-labelledby="__crossx-ttl">
8571
8572
  <div class="__crossx-header">
8572
8573
  <p class="__crossx-title" id="__crossx-ttl">${w((r == null ? void 0 : r.tx_progress_waiting_title) ?? "Waiting for confirmation")}</p>
@@ -8589,14 +8590,14 @@ function rs(i, e, r, t) {
8589
8590
  }
8590
8591
  if (a && !i.querySelector("#__crossx-close-btn")) {
8591
8592
  const m = document.createElement("button");
8592
- m.className = "__crossx-close", m.id = "__crossx-close-btn", m.setAttribute("aria-label", "Close"), m.innerHTML = B, a.appendChild(m);
8593
+ m.className = "__crossx-close", m.id = "__crossx-close-btn", m.setAttribute("aria-label", "Close"), m.innerHTML = W, a.appendChild(m);
8593
8594
  }
8594
8595
  const l = i.querySelector("#__crossx-progress-body");
8595
8596
  if (!l) return;
8596
- const p = e.from ? D((t == null ? void 0 : t.label_from) ?? "From", `${ye(e.from)}
8597
- <button class="__crossx-copy-btn" data-copy="${w(e.from)}" title="Copy address">${Z}</button>`) : "", _ = e.to ? D((t == null ? void 0 : t.label_to) ?? "To", `${ye(e.to)}
8598
- <button class="__crossx-copy-btn" data-copy="${w(e.to)}" title="Copy address">${Z}</button>`) : "", u = e.amount ? D((t == null ? void 0 : t.label_transfer) ?? "Transfer", `<span>${w(e.amount)}</span>`) : "", x = e.fees ? D((t == null ? void 0 : t.label_tx_fee) ?? "Tx Fee", `<span>${w(e.fees)}</span>`) : "", g = e.txHash ? D((t == null ? void 0 : t.label_tx_hash) ?? "Tx Hash", `${yt(e.chainId, e.txHash)}
8599
- <button class="__crossx-copy-btn" data-copy="${w(e.txHash)}" title="Copy hash">${Z}</button>`) : "", f = e.total ? `<div class="__crossx-total-pill">
8597
+ const p = e.from ? D((t == null ? void 0 : t.label_from) ?? "From", `${be(e.from)}
8598
+ <button class="__crossx-copy-btn" data-copy="${w(e.from)}" title="Copy address">${J}</button>`) : "", _ = e.to ? D((t == null ? void 0 : t.label_to) ?? "To", `${be(e.to)}
8599
+ <button class="__crossx-copy-btn" data-copy="${w(e.to)}" title="Copy address">${J}</button>`) : "", u = e.amount ? D((t == null ? void 0 : t.label_transfer) ?? "Transfer", `<span>${w(e.amount)}</span>`) : "", x = e.fees ? D((t == null ? void 0 : t.label_tx_fee) ?? "Tx Fee", `<span>${w(e.fees)}</span>`) : "", g = e.txHash ? D((t == null ? void 0 : t.label_tx_hash) ?? "Tx Hash", `${yt(e.chainId, e.txHash)}
8600
+ <button class="__crossx-copy-btn" data-copy="${w(e.txHash)}" title="Copy hash">${J}</button>`) : "", f = e.total ? `<div class="__crossx-total-pill">
8600
8601
  <span class="__crossx-total-label">${w((t == null ? void 0 : t.label_total) ?? "Total")}<br>${w((t == null ? void 0 : t.label_including_fees) ?? "(including fees)")}</span>
8601
8602
  <span class="__crossx-total-amount">${w(e.total)}</span>
8602
8603
  </div>` : "";
@@ -8612,21 +8613,21 @@ function rs(i, e, r, t) {
8612
8613
  <button class="__crossx-approve-btn" id="__crossx-done-btn">${w((t == null ? void 0 : t.tx_complete_done_button) ?? (s ? "All Done" : "Done"))}</button>
8613
8614
  `, l.querySelectorAll(".__crossx-copy-btn").forEach((m) => {
8614
8615
  m.addEventListener("click", (y) => {
8615
- var E;
8616
+ var S;
8616
8617
  y.stopPropagation();
8617
- const S = m.dataset.copy;
8618
- S && ((E = navigator.clipboard) == null || E.writeText(S).catch(() => {
8618
+ const E = m.dataset.copy;
8619
+ E && ((S = navigator.clipboard) == null || S.writeText(E).catch(() => {
8619
8620
  }));
8620
8621
  });
8621
8622
  });
8622
8623
  }
8623
8624
  function ss(i, e, r) {
8624
- const t = e, s = Se(i.dappName), o = w(i.message), n = document.createElement("div");
8625
- return n.id = M, n.innerHTML = `
8625
+ const t = e, s = Ee(i.dappName), o = w(i.message), n = document.createElement("div");
8626
+ return n.id = F, n.innerHTML = `
8626
8627
  <div class="__crossx-card __crossx-card--migration __crossx-card--sign-msg" style="${H(t)}" role="dialog" aria-modal="true" aria-labelledby="__crossx-ttl">
8627
8628
  <div class="__crossx-header">
8628
8629
  <p class="__crossx-title" id="__crossx-ttl">${w((r == null ? void 0 : r.sign_message_title) ?? "Signature Request")}</p>
8629
- <button class="__crossx-close" id="__crossx-close-btn" aria-label="Close">${B}</button>
8630
+ <button class="__crossx-close" id="__crossx-close-btn" aria-label="Close">${W}</button>
8630
8631
  </div>
8631
8632
  <hr class="__crossx-divider">
8632
8633
  <div class="__crossx-body">
@@ -8637,7 +8638,7 @@ function ss(i, e, r) {
8637
8638
  </p>
8638
8639
  <div class="__crossx-addr-pill">
8639
8640
  ${Ge}
8640
- <span class="__crossx-addr-pill-text">${Q(i.from)}</span>
8641
+ <span class="__crossx-addr-pill-text">${Z(i.from)}</span>
8641
8642
  </div>
8642
8643
  <p class="__crossx-warning">${w((r == null ? void 0 : r.signature_warning) ?? "After you sign, changes or cancellations are not possible.")}</p>
8643
8644
  </div>
@@ -8653,7 +8654,7 @@ function ss(i, e, r) {
8653
8654
  `, n;
8654
8655
  }
8655
8656
  function is(i, e, r) {
8656
- const t = e, s = Se(i.dappName);
8657
+ const t = e, s = Ee(i.dappName);
8657
8658
  let o = {};
8658
8659
  if (typeof i.typedData == "string")
8659
8660
  try {
@@ -8668,8 +8669,8 @@ function is(i, e, r) {
8668
8669
  <span class="__crossx-td-value">${w(n)}</span>
8669
8670
  </div>`;
8670
8671
  for (const [_, u] of Object.entries(a)) {
8671
- const x = Xr(u), f = Yr(u) ? `<span class="__crossx-addr-text">${Q(u)}</span>
8672
- <button class="__crossx-copy-btn" data-copy="${w(String(u))}" title="Copy">${Z}</button>` : `<span>${x}</span>`;
8672
+ const x = Xr(u), f = Yr(u) ? `<span class="__crossx-addr-text">${Z(u)}</span>
8673
+ <button class="__crossx-copy-btn" data-copy="${w(String(u))}" title="Copy">${J}</button>` : `<span>${x}</span>`;
8673
8674
  l += `
8674
8675
  <div class="__crossx-td-row">
8675
8676
  <span class="__crossx-td-label">${w(_)}</span>
@@ -8677,11 +8678,11 @@ function is(i, e, r) {
8677
8678
  </div>`;
8678
8679
  }
8679
8680
  const p = document.createElement("div");
8680
- return p.id = M, p.innerHTML = `
8681
+ return p.id = F, p.innerHTML = `
8681
8682
  <div class="__crossx-card __crossx-card--migration __crossx-card--sign-typed" style="${H(t)}" role="dialog" aria-modal="true" aria-labelledby="__crossx-ttl">
8682
8683
  <div class="__crossx-header">
8683
8684
  <p class="__crossx-title" id="__crossx-ttl">${w((r == null ? void 0 : r.sign_typed_data_title) ?? "Signature Request")}</p>
8684
- <button class="__crossx-close" id="__crossx-close-btn" aria-label="Close">${B}</button>
8685
+ <button class="__crossx-close" id="__crossx-close-btn" aria-label="Close">${W}</button>
8685
8686
  </div>
8686
8687
  <hr class="__crossx-divider">
8687
8688
  <div class="__crossx-body">
@@ -8692,7 +8693,7 @@ function is(i, e, r) {
8692
8693
  </p>
8693
8694
  <div class="__crossx-addr-pill">
8694
8695
  ${Ge}
8695
- <span class="__crossx-addr-pill-text">${Q(i.from)}</span>
8696
+ <span class="__crossx-addr-pill-text">${Z(i.from)}</span>
8696
8697
  </div>
8697
8698
  <p class="__crossx-warning">${w((r == null ? void 0 : r.signature_warning) ?? "After you sign, changes or cancellations are not possible.")}</p>
8698
8699
  </div>
@@ -8733,7 +8734,7 @@ function ds(i, e, r, t) {
8733
8734
  ${vt(a.address, a.index, e.bg)}<span class="__crossx-wallet-info"><span class="__crossx-wallet-idx">${w(bt(a))}</span><span class="__crossx-wallet-addr">${ht(a.address)}</span></span>${_}
8734
8735
  </button>`;
8735
8736
  }).join(""), n = document.createElement("div");
8736
- return n.id = M, n.className = "__crossx-overlay--wallet-selector", n.innerHTML = `
8737
+ return n.id = F, n.className = "__crossx-overlay--wallet-selector", n.innerHTML = `
8737
8738
  <div class="__crossx-card __crossx-card--wallet-selector" style="${H(e)}" role="dialog" aria-modal="true" aria-labelledby="__crossx-ttl">
8738
8739
  <div class="__crossx-header">
8739
8740
  <span class="__crossx-wallet-sheet-handle" aria-hidden="true"></span>
@@ -8741,7 +8742,7 @@ function ds(i, e, r, t) {
8741
8742
  <p class="__crossx-title" id="__crossx-ttl">${w((t == null ? void 0 : t.wallet_selector_title) ?? "Select Connected Wallet")}</p>
8742
8743
  <p class="__crossx-subtitle--body">${w((t == null ? void 0 : t.wallet_selector_description) ?? "Please select the wallet you previously used for this game to continue.")}</p>
8743
8744
  </div>
8744
- <button class="__crossx-close" id="__crossx-close-btn" aria-label="Close">${B}</button>
8745
+ <button class="__crossx-close" id="__crossx-close-btn" aria-label="Close">${W}</button>
8745
8746
  </div>
8746
8747
  <hr class="__crossx-divider">
8747
8748
  <div class="__crossx-body __crossx-wallet-selector-body">
@@ -8767,7 +8768,7 @@ function ds(i, e, r, t) {
8767
8768
  }
8768
8769
  function ps(i, e) {
8769
8770
  const r = document.createElement("div");
8770
- r.id = M;
8771
+ r.id = F;
8771
8772
  const t = document.createElement("div");
8772
8773
  t.className = "__crossx-card __crossx-card--wallet-created", Kr(t, i), t.role = "dialog", t.ariaModal = "true", t.setAttribute("aria-labelledby", "__crossx-ttl");
8773
8774
  const s = document.createElement("div");
@@ -8777,7 +8778,7 @@ function ps(i, e) {
8777
8778
  const n = document.createElement("p");
8778
8779
  n.className = "__crossx-title", n.id = "__crossx-ttl", n.style.paddingRight = "48px", n.textContent = (e == null ? void 0 : e.wallet_created_title) ?? "Wallet Created!";
8779
8780
  const a = document.createElement("button");
8780
- a.className = "__crossx-close", a.id = "__crossx-close-btn", a.type = "button", a.ariaLabel = "Close", a.innerHTML = B, s.append(o, n, a);
8781
+ a.className = "__crossx-close", a.id = "__crossx-close-btn", a.type = "button", a.ariaLabel = "Close", a.innerHTML = W, s.append(o, n, a);
8781
8782
  const l = document.createElement("hr");
8782
8783
  l.className = "__crossx-divider";
8783
8784
  const p = document.createElement("div");
@@ -8842,14 +8843,14 @@ function gs(i, e = [], r) {
8842
8843
  <span class="__crossx-connect-other-desc __crossx-connect-other-summary">${xs(e)}</span>
8843
8844
  </span>
8844
8845
  </button>` : "", a = document.createElement("div");
8845
- return a.id = M, a.innerHTML = `
8846
+ return a.id = F, a.innerHTML = `
8846
8847
  <div class="__crossx-card __crossx-card--migration" style="${H(t)}" role="dialog" aria-modal="true" aria-labelledby="__crossx-ttl">
8847
8848
  <div class="__crossx-header">
8848
8849
  <div style="display:flex;flex-direction:column;gap:4px;padding-right:36px;">
8849
8850
  <p class="__crossx-title" id="__crossx-ttl" style="padding-right:0;">${w((r == null ? void 0 : r.login_selector_title) ?? Be)}</p>
8850
8851
  <p class="__crossx-subtitle">${w((r == null ? void 0 : r.login_selector_subtitle) ?? "Sign in instantly with your social account")}</p>
8851
8852
  </div>
8852
- <button class="__crossx-close" id="__crossx-close-btn" aria-label="Close">${B}</button>
8853
+ <button class="__crossx-close" id="__crossx-close-btn" aria-label="Close">${W}</button>
8853
8854
  </div>
8854
8855
  <hr class="__crossx-divider">
8855
8856
  <div class="__crossx-body">
@@ -8872,7 +8873,7 @@ function gs(i, e = [], r) {
8872
8873
  }
8873
8874
  function fs(i, e) {
8874
8875
  const r = i, t = document.createElement("div");
8875
- t.id = M;
8876
+ t.id = F;
8876
8877
  const s = w(e.message).replace(/\n/g, "<br>"), o = e.email ? `<div class="__crossx-session-account-card">
8877
8878
  <p class="__crossx-session-account-label">${w(e.accountLabel)}</p>
8878
8879
  <p class="__crossx-session-account-email">${w(e.email)}</p>
@@ -8881,7 +8882,7 @@ function fs(i, e) {
8881
8882
  <div class="__crossx-card __crossx-card--migration" style="${H(r)}" role="alertdialog" aria-modal="true" aria-labelledby="__crossx-session-header-title" aria-describedby="__crossx-session-msg">
8882
8883
  <div class="__crossx-header">
8883
8884
  <p class="__crossx-title" id="__crossx-session-header-title">${w(e.title)}</p>
8884
- <button class="__crossx-close" id="__crossx-close-btn" aria-label="Close">${B}</button>
8885
+ <button class="__crossx-close" id="__crossx-close-btn" aria-label="Close">${W}</button>
8885
8886
  </div>
8886
8887
  <hr class="__crossx-divider">
8887
8888
  <div class="__crossx-body" style="padding:20px 24px 24px;display:flex;flex-direction:column;gap:16px;">
@@ -8899,8 +8900,8 @@ function fs(i, e) {
8899
8900
  `, t;
8900
8901
  }
8901
8902
  function ws(i, e = !0) {
8902
- const r = i, t = e ? `<button class="__crossx-close" id="__crossx-close-btn" aria-label="Close">${B}</button>` : "", s = e ? '<button class="__crossx-skip-btn" id="__crossx-skip-btn">Skip for Now</button>' : "", o = document.createElement("div");
8903
- return o.id = M, o.innerHTML = `
8903
+ const r = i, t = e ? `<button class="__crossx-close" id="__crossx-close-btn" aria-label="Close">${W}</button>` : "", s = e ? '<button class="__crossx-skip-btn" id="__crossx-skip-btn">Skip for Now</button>' : "", o = document.createElement("div");
8904
+ return o.id = F, o.innerHTML = `
8904
8905
  <div class="__crossx-card __crossx-card--migration" style="${H(r)}" role="dialog" aria-modal="true" aria-labelledby="__crossx-ttl">
8905
8906
  <div class="__crossx-header">
8906
8907
  <p class="__crossx-title" id="__crossx-ttl">Wallet Found on Social Account 🎉</p>
@@ -8914,7 +8915,7 @@ function ws(i, e = !0) {
8914
8915
  <p class="__crossx-mig-info-desc">It safely restores and integrates all your previous assets. Simply verify your PIN to get started.</p>
8915
8916
  </div>
8916
8917
  <button class="__crossx-recover-btn" id="__crossx-recover-btn">
8917
- <span class="__crossx-recover-icon">${Mr}</span>
8918
+ <span class="__crossx-recover-icon">${$r}</span>
8918
8919
  <span class="__crossx-recover-label">Import from Social Backup</span>
8919
8920
  </button>
8920
8921
  ${s}
@@ -8924,11 +8925,11 @@ function ws(i, e = !0) {
8924
8925
  }
8925
8926
  function ms(i, e) {
8926
8927
  const r = i, { errorMessage: t, attemptCount: s, maxAttempts: o = 5 } = e ?? {}, n = !!t, a = n ? " --error" : "", l = s != null && s > 0 ? `<p class="__crossx-pin-attempt">${s}/${o}</p>` : "", p = s != null && s >= 3 ? '<p class="__crossx-pin-warning">Your account will be locked after further failures.</p>' : "", _ = n ? `<p class="__crossx-pin-error-text">${t}</p>` : "", u = document.createElement("div");
8927
- return u.id = M, u.innerHTML = `
8928
+ return u.id = F, u.innerHTML = `
8928
8929
  <div class="__crossx-card __crossx-card--migration" style="${H(r)}" role="dialog" aria-modal="true" aria-labelledby="__crossx-ttl">
8929
8930
  <div class="__crossx-header">
8930
8931
  <p class="__crossx-title" id="__crossx-ttl">Import from Social Backup</p>
8931
- <button class="__crossx-close" id="__crossx-close-btn" aria-label="Close">${B}</button>
8932
+ <button class="__crossx-close" id="__crossx-close-btn" aria-label="Close">${W}</button>
8932
8933
  </div>
8933
8934
  <hr class="__crossx-divider">
8934
8935
  <div class="__crossx-pin-center">
@@ -8952,11 +8953,11 @@ function ys(i) {
8952
8953
  }
8953
8954
  function bs(i, e, r) {
8954
8955
  const t = i, s = e <= 0, o = s ? null : Date.now() + e * 1e3, n = o ? ys(o) : null, a = document.createElement("div");
8955
- return a.id = M, a.innerHTML = `
8956
+ return a.id = F, a.innerHTML = `
8956
8957
  <div class="__crossx-card __crossx-card--migration" style="${H(t)}" role="dialog" aria-modal="true" aria-labelledby="__crossx-ttl">
8957
8958
  <div class="__crossx-header">
8958
8959
  <p class="__crossx-title" id="__crossx-ttl">Import from Social Backup</p>
8959
- <button class="__crossx-close" id="__crossx-close-btn" aria-label="Close">${B}</button>
8960
+ <button class="__crossx-close" id="__crossx-close-btn" aria-label="Close">${W}</button>
8960
8961
  </div>
8961
8962
  <hr class="__crossx-divider">
8962
8963
  <div class="__crossx-pin-center">
@@ -8993,7 +8994,7 @@ function vs(i) {
8993
8994
  <span class="__crossx-pin6-sheet-handle" aria-hidden="true"></span>
8994
8995
  <p class="__crossx-title" id="__crossx-ttl" style="padding-right:48px;">${w(i.title)}</p>
8995
8996
  <p class="__crossx-pw-subtitle">${w(i.headerSubtitle)}</p>
8996
- <button class="__crossx-close" id="__crossx-close-btn" aria-label="Close">${B}</button>
8997
+ <button class="__crossx-close" id="__crossx-close-btn" aria-label="Close">${W}</button>
8997
8998
  </div>
8998
8999
  <hr class="__crossx-divider">
8999
9000
  <div class="__crossx-pw-body">
@@ -9020,7 +9021,7 @@ function vs(i) {
9020
9021
  <div class="__crossx-home-indicator"></div>
9021
9022
  `;
9022
9023
  }
9023
- function Ne(i) {
9024
+ function Ce(i) {
9024
9025
  const e = !!i.lockExpiresAt && i.lockExpiresAt > Date.now(), r = i.lockExpiresAt ? ` data-lock-expires="${i.lockExpiresAt}"` : "", t = i.headerSubtitle ? `<p class="__crossx-pin6-header-sub">${w(i.headerSubtitle)}</p>` : "", s = i.subtitle ? `<p class="__crossx-pin6-subtitle">${w(i.subtitle)}</p>` : "", o = i.errorMessage ? `<p class="__crossx-pin6-error" id="__crossx-pin6-error">${w(i.errorMessage)}</p>` : '<p class="__crossx-pin6-error" id="__crossx-pin6-error"></p>', n = e ? `<p class="__crossx-pin6-lock-msg" id="__crossx-pin6-lock-msg">
9025
9026
  ${St}
9026
9027
  <span id="__crossx-pin6-lock-countdown"></span>
@@ -9058,7 +9059,7 @@ function Ne(i) {
9058
9059
  <span class="__crossx-pin6-sheet-handle" aria-hidden="true"></span>
9059
9060
  <p class="__crossx-title" id="__crossx-ttl" style="padding-right:48px;">${w(i.title)}</p>
9060
9061
  ${t}
9061
- <button class="__crossx-close" id="__crossx-close-btn" aria-label="Close">${B}</button>
9062
+ <button class="__crossx-close" id="__crossx-close-btn" aria-label="Close">${W}</button>
9062
9063
  </div>
9063
9064
  <hr class="__crossx-divider">
9064
9065
  <div class="__crossx-pin6-body"${r}>
@@ -9079,7 +9080,7 @@ function Ne(i) {
9079
9080
  }
9080
9081
  function lt(i, e) {
9081
9082
  const r = document.createElement("div");
9082
- return r.id = M, r.innerHTML = `
9083
+ return r.id = F, r.innerHTML = `
9083
9084
  <div class="__crossx-card __crossx-card--pin6" style="${H(i)}" role="dialog" aria-modal="true" aria-labelledby="__crossx-ttl">
9084
9085
  ${e}
9085
9086
  </div>
@@ -9097,87 +9098,87 @@ function Es(i) {
9097
9098
  return r > 0 ? `${r}h ${String(t).padStart(2, "0")}m` : `${String(t).padStart(2, "0")}:${String(s).padStart(2, "0")}`;
9098
9099
  }
9099
9100
  function Pe(i, e, r, t, s, o, n) {
9100
- var ze, qe;
9101
+ var ze, Ve;
9101
9102
  let a = !!(o && o > Date.now()), l = !1;
9102
9103
  const p = () => Array.from(i.querySelectorAll(".__crossx-pin6-box")), _ = () => i.querySelector("#__crossx-pin6-boxes"), u = () => i.querySelector("#__crossx-pin6-error"), x = () => i.querySelector("#__crossx-pin6-lock-msg"), g = () => i.querySelector("#__crossx-pin6-lock-countdown"), f = () => i.querySelector(".__crossx-pin6-body"), m = "●", y = (b, v) => {
9103
9104
  b.dataset.digit = v, b.value = m;
9104
- }, S = (b) => {
9105
+ }, E = (b) => {
9105
9106
  delete b.dataset.digit, b.value = "";
9106
- }, E = (b) => b.dataset.digit ?? "", A = () => p().map(E).join(""), k = () => Array.from(i.querySelectorAll(".__crossx-pin6-dot")), T = () => {
9107
+ }, S = (b) => b.dataset.digit ?? "", A = () => p().map(S).join(""), k = () => Array.from(i.querySelectorAll(".__crossx-pin6-dot")), T = () => {
9107
9108
  var I;
9108
9109
  const b = p(), v = k();
9109
- if (v.length && (v.forEach((R, O) => {
9110
- const $ = !!(b[O] && E(b[O]));
9110
+ if (v.length && (v.forEach((R, N) => {
9111
+ const $ = !!(b[N] && S(b[N]));
9111
9112
  R.classList.toggle("--filled", $), R.classList.toggle("--active", !1);
9112
9113
  }), !a && !l)) {
9113
- const R = b.findIndex(($) => !E($));
9114
+ const R = b.findIndex(($) => !S($));
9114
9115
  (I = v[R === -1 ? 5 : R]) == null || I.classList.add("--active");
9115
9116
  }
9116
- }, N = () => {
9117
+ }, O = () => {
9117
9118
  i.querySelectorAll(".__crossx-pin6-numpad-key[data-key]").forEach((v) => v.classList.toggle("--disabled", a)), k().forEach((v) => v.classList.toggle("--locked", a)), T();
9118
- }, U = (b) => {
9119
+ }, M = (b) => {
9119
9120
  a = b, p().forEach((v) => {
9120
9121
  v.disabled = b, v.classList.toggle("--locked", b);
9121
9122
  });
9122
- }, C = () => i.querySelector("#__crossx-pin6-attempt"), q = () => {
9123
+ }, G = () => i.querySelector("#__crossx-pin6-attempt"), P = () => {
9123
9124
  const b = u();
9124
9125
  b && (b.textContent = "");
9125
- }, z = () => n ?? "Your account will be locked after further failures.", P = () => i.querySelector("#__crossx-pin6-warning"), L = (b) => {
9126
+ }, ee = () => n ?? "Your account will be locked after further failures.", C = () => i.querySelector("#__crossx-pin6-warning"), L = (b) => {
9126
9127
  var I;
9127
- let v = P();
9128
+ let v = C();
9128
9129
  if (!v) {
9129
9130
  v = document.createElement("p"), v.className = "__crossx-pin6-warning", v.id = "__crossx-pin6-warning";
9130
9131
  const R = u();
9131
9132
  R ? R.insertAdjacentElement("afterend", v) : (I = f()) == null || I.appendChild(v);
9132
9133
  }
9133
9134
  v.textContent = b;
9134
- }, W = () => {
9135
- const b = P();
9135
+ }, U = () => {
9136
+ const b = C();
9136
9137
  b && (b.textContent = "");
9137
- }, ne = (b, v) => {
9138
+ }, ae = (b, v) => {
9138
9139
  var R;
9139
- let I = C();
9140
+ let I = G();
9140
9141
  if (!I) {
9141
9142
  I = document.createElement("p"), I.className = "__crossx-pin6-attempt", I.id = "__crossx-pin6-attempt";
9142
- const O = P() ?? u();
9143
- O ? O.insertAdjacentElement("afterend", I) : (R = f()) == null || R.appendChild(I);
9143
+ const N = C() ?? u();
9144
+ N ? N.insertAdjacentElement("afterend", I) : (R = f()) == null || R.appendChild(I);
9144
9145
  }
9145
9146
  I.textContent = `${b}/${v}`;
9146
- }, ae = () => {
9147
- const b = C();
9147
+ }, pe = () => {
9148
+ const b = G();
9148
9149
  b && (b.textContent = "");
9149
- }, ge = (b) => {
9150
+ }, _e = (b) => {
9150
9151
  const v = u();
9151
9152
  v && (v.textContent = b);
9152
9153
  const I = _();
9153
- I == null || I.classList.add("--shake"), setTimeout(() => I == null ? void 0 : I.classList.remove("--shake"), 500), p().forEach(S), setTimeout(() => {
9154
+ I == null || I.classList.add("--shake"), setTimeout(() => I == null ? void 0 : I.classList.remove("--shake"), 500), p().forEach(E), setTimeout(() => {
9154
9155
  var R;
9155
9156
  (R = p()[0]) == null || R.focus(), T();
9156
9157
  }, 50);
9157
- }, ce = (b) => {
9158
+ }, he = (b) => {
9158
9159
  var $;
9159
- U(!0), p().forEach(S), N();
9160
+ M(!0), p().forEach(E), O();
9160
9161
  const v = u();
9161
9162
  if (v && (v.textContent = "Too many failed attempts. Please wait."), !x()) {
9162
- const F = document.createElement("p");
9163
- F.className = "__crossx-pin6-lock-msg", F.id = "__crossx-pin6-lock-msg", F.innerHTML = `${St}<span id="__crossx-pin6-lock-countdown"></span>`;
9163
+ const B = document.createElement("p");
9164
+ B.className = "__crossx-pin6-lock-msg", B.id = "__crossx-pin6-lock-msg", B.innerHTML = `${St}<span id="__crossx-pin6-lock-countdown"></span>`;
9164
9165
  const V = u();
9165
- V ? V.insertAdjacentElement("afterend", F) : ($ = f()) == null || $.appendChild(F);
9166
+ V ? V.insertAdjacentElement("afterend", B) : ($ = f()) == null || $.appendChild(B);
9166
9167
  }
9167
9168
  const I = () => {
9168
- var ee;
9169
- const F = b - Date.now(), V = g();
9170
- F <= 0 ? (clearInterval(R), U(!1), (ee = x()) == null || ee.remove(), v && (v.textContent = ""), N(), setTimeout(() => {
9171
- var fe;
9172
- return (fe = p()[0]) == null ? void 0 : fe.focus();
9173
- }, 50)) : V && (V.textContent = ` ${Es(F)}`);
9169
+ var Q;
9170
+ const B = b - Date.now(), V = g();
9171
+ B <= 0 ? (clearInterval(R), M(!1), (Q = x()) == null || Q.remove(), v && (v.textContent = ""), O(), setTimeout(() => {
9172
+ var we;
9173
+ return (we = p()[0]) == null ? void 0 : we.focus();
9174
+ }, 50)) : V && (V.textContent = ` ${Es(B)}`);
9174
9175
  }, R = setInterval(I, 1e3);
9175
9176
  I();
9176
- const O = new MutationObserver(() => {
9177
- document.contains(i) || (clearInterval(R), O.disconnect());
9177
+ const N = new MutationObserver(() => {
9178
+ document.contains(i) || (clearInterval(R), N.disconnect());
9178
9179
  });
9179
- O.observe(document.body, { childList: !0, subtree: !1 });
9180
- }, Ee = async () => {
9180
+ N.observe(document.body, { childList: !0, subtree: !1 });
9181
+ }, te = async () => {
9181
9182
  if (a || l) return;
9182
9183
  const b = A();
9183
9184
  if (b.length === 6) {
@@ -9187,7 +9188,7 @@ function Pe(i, e, r, t, s, o, n) {
9187
9188
  try {
9188
9189
  if (s) {
9189
9190
  const v = await s(b);
9190
- v.ok ? e(b) : v.lockExpiresAt ? (ae(), ce(v.lockExpiresAt)) : (ge(v.error ?? "Incorrect PIN. Please try again."), v.attemptCount != null && v.maxAttempts != null ? (L(z()), ne(v.attemptCount, v.maxAttempts)) : (W(), ae()));
9191
+ v.ok ? e(b) : v.lockExpiresAt ? (pe(), he(v.lockExpiresAt)) : (_e(v.error ?? "Incorrect PIN. Please try again."), v.attemptCount != null && v.maxAttempts != null ? (L(ee()), ae(v.attemptCount, v.maxAttempts)) : (U(), pe()));
9191
9192
  } else
9192
9193
  e(b);
9193
9194
  } catch (v) {
@@ -9199,76 +9200,76 @@ function Pe(i, e, r, t, s, o, n) {
9199
9200
  }
9200
9201
  }
9201
9202
  };
9202
- o && o > Date.now() ? ce(o) : setTimeout(() => {
9203
+ o && o > Date.now() ? he(o) : setTimeout(() => {
9203
9204
  var b;
9204
9205
  return (b = p()[0]) == null ? void 0 : b.focus();
9205
9206
  }, 100);
9206
9207
  const Ke = () => {
9207
9208
  if (a || l) return;
9208
- const b = p(), v = b.find((I) => !E(I)) ?? b[b.length - 1];
9209
+ const b = p(), v = b.find((I) => !S(I)) ?? b[b.length - 1];
9209
9210
  v == null || v.focus();
9210
9211
  };
9211
9212
  (ze = _()) == null || ze.addEventListener("click", (b) => {
9212
9213
  b.target.classList.contains("__crossx-pin6-box") || Ke();
9213
- }), (qe = f()) == null || qe.addEventListener("click", (b) => {
9214
+ }), (Ve = f()) == null || Ve.addEventListener("click", (b) => {
9214
9215
  const v = b.target;
9215
9216
  v.classList.contains("__crossx-pin6-box") || v.closest("button") || Ke();
9216
9217
  }), p().forEach((b, v) => {
9217
9218
  b.addEventListener("input", () => {
9218
9219
  var R;
9219
9220
  const I = b.value.replace(/\D/g, "").slice(-1);
9220
- I ? y(b, I) : S(b), q(), I && v < 5 && ((R = p()[v + 1]) == null || R.focus()), T(), A().length === 6 && setTimeout(Ee, 80);
9221
+ I ? y(b, I) : E(b), P(), I && v < 5 && ((R = p()[v + 1]) == null || R.focus()), T(), A().length === 6 && setTimeout(te, 80);
9221
9222
  }), b.addEventListener("keydown", (I) => {
9222
- var R, O;
9223
+ var R, N;
9223
9224
  if (I.key === "Backspace") {
9224
- if (I.preventDefault(), E(b))
9225
- S(b);
9225
+ if (I.preventDefault(), S(b))
9226
+ E(b);
9226
9227
  else if (v > 0) {
9227
9228
  const $ = p()[v - 1];
9228
- S($), $.focus();
9229
+ E($), $.focus();
9229
9230
  }
9230
9231
  T();
9231
- } else I.key === "ArrowLeft" && v > 0 ? (I.preventDefault(), (R = p()[v - 1]) == null || R.focus()) : I.key === "ArrowRight" && v < 5 ? (I.preventDefault(), (O = p()[v + 1]) == null || O.focus()) : I.key === "Escape" && r();
9232
+ } else I.key === "ArrowLeft" && v > 0 ? (I.preventDefault(), (R = p()[v - 1]) == null || R.focus()) : I.key === "ArrowRight" && v < 5 ? (I.preventDefault(), (N = p()[v + 1]) == null || N.focus()) : I.key === "Escape" && r();
9232
9233
  }), b.addEventListener("paste", (I) => {
9233
- var $, F;
9234
+ var $, B;
9234
9235
  I.preventDefault();
9235
9236
  const R = ((($ = I.clipboardData) == null ? void 0 : $.getData("text")) ?? "").replace(/\D/g, "").slice(0, 6);
9236
9237
  if (!R) return;
9237
- const O = p();
9238
- R.split("").forEach((V, ee) => {
9239
- O[ee] && y(O[ee], V);
9240
- }), (F = O[Math.min(R.length - 1, 5)]) == null || F.focus(), q(), T(), A().length === 6 && setTimeout(Ee, 80);
9238
+ const N = p();
9239
+ R.split("").forEach((V, Q) => {
9240
+ N[Q] && y(N[Q], V);
9241
+ }), (B = N[Math.min(R.length - 1, 5)]) == null || B.focus(), P(), T(), A().length === 6 && setTimeout(te, 80);
9241
9242
  }), b.addEventListener("focus", () => b.select());
9242
9243
  });
9243
- const _e = i.querySelector("#__crossx-pin6-numpad");
9244
- if (_e) {
9244
+ const ue = i.querySelector("#__crossx-pin6-numpad");
9245
+ if (ue) {
9245
9246
  let b = null;
9246
9247
  const v = () => {
9247
9248
  b && (b.classList.remove("--pressed"), b = null);
9248
9249
  };
9249
- _e.addEventListener("pointerdown", (R) => {
9250
- const O = R.target.closest(".__crossx-pin6-numpad-key");
9251
- !O || a || l || (v(), b = O, O.classList.add("--pressed"), O.setPointerCapture(R.pointerId));
9250
+ ue.addEventListener("pointerdown", (R) => {
9251
+ const N = R.target.closest(".__crossx-pin6-numpad-key");
9252
+ !N || a || l || (v(), b = N, N.classList.add("--pressed"), N.setPointerCapture(R.pointerId));
9252
9253
  });
9253
9254
  const I = (R) => {
9254
- const O = R.dataset.key;
9255
- if (!O) return;
9256
- if (O === "backspace") {
9257
- const ee = [...p()].reverse().find((fe) => E(fe));
9258
- ee && (S(ee), q()), T();
9255
+ const N = R.dataset.key;
9256
+ if (!N) return;
9257
+ if (N === "backspace") {
9258
+ const Q = [...p()].reverse().find((we) => S(we));
9259
+ Q && (E(Q), P()), T();
9259
9260
  return;
9260
9261
  }
9261
- if (!/^\d$/.test(O)) return;
9262
- const F = p().find((V) => !E(V));
9263
- F && (y(F, O), q(), T(), A().length === 6 && setTimeout(Ee, 80));
9262
+ if (!/^\d$/.test(N)) return;
9263
+ const B = p().find((V) => !S(V));
9264
+ B && (y(B, N), P(), T(), A().length === 6 && setTimeout(te, 80));
9264
9265
  };
9265
- _e.addEventListener("pointerup", (R) => {
9266
+ ue.addEventListener("pointerup", (R) => {
9266
9267
  if (!b) return;
9267
- const O = b;
9268
+ const N = b;
9268
9269
  v();
9269
- const $ = O.getBoundingClientRect();
9270
- R.clientX >= $.left && R.clientX <= $.right && R.clientY >= $.top && R.clientY <= $.bottom && !a && !l && I(O);
9271
- }), _e.addEventListener("pointercancel", v), _e.addEventListener("pointerleave", v, !0), T(), o && o > Date.now() && N();
9270
+ const $ = N.getBoundingClientRect();
9271
+ R.clientX >= $.left && R.clientX <= $.right && R.clientY >= $.top && R.clientY <= $.bottom && !a && !l && I(N);
9272
+ }), ue.addEventListener("pointercancel", v), ue.addEventListener("pointerleave", v, !0), T(), o && o > Date.now() && O();
9272
9273
  }
9273
9274
  }
9274
9275
  const As = `<svg width="22" height="17" viewBox="0 0 22 17" fill="none" xmlns="http://www.w3.org/2000/svg">
@@ -9358,10 +9359,10 @@ class Rs {
9358
9359
  */
9359
9360
  showWalletSelector(e, r, t) {
9360
9361
  return new Promise((s, o) => {
9361
- var E;
9362
- G();
9363
- const n = [...e], a = ds(n, this.tokens, t, this.messages), l = re();
9364
- K(a);
9362
+ var S;
9363
+ K();
9364
+ const n = [...e], a = ds(n, this.tokens, t, this.messages), l = se();
9365
+ z(a);
9365
9366
  let p = !1;
9366
9367
  const _ = () => {
9367
9368
  p || (p = !0, a.remove(), l());
@@ -9375,8 +9376,8 @@ class Rs {
9375
9376
  (() => {
9376
9377
  a.querySelectorAll(".__crossx-wallet-item").forEach((A) => {
9377
9378
  A.addEventListener("click", () => {
9378
- const k = A.dataset.walletAddress ?? "", T = parseInt(A.dataset.walletIndex ?? "0", 10), N = n.find((U) => U.index === T);
9379
- x({ address: k, index: T, name: N == null ? void 0 : N.name });
9379
+ const k = A.dataset.walletAddress ?? "", T = parseInt(A.dataset.walletIndex ?? "0", 10), O = n.find((M) => M.index === T);
9380
+ x({ address: k, index: T, name: O == null ? void 0 : O.name });
9380
9381
  });
9381
9382
  });
9382
9383
  })();
@@ -9400,21 +9401,21 @@ class Rs {
9400
9401
  const k = A instanceof h && A.code === d.ADDRESS_LIMIT_EXCEEDED, T = this.resolveAddWalletErrorMessage(A);
9401
9402
  m && (m.textContent = T, m.hidden = !1), k ? (y.disabled = !0, y.setAttribute("aria-disabled", "true")) : y.disabled = !1, u = A;
9402
9403
  }
9403
- }), (E = a.querySelector("#__crossx-close-btn")) == null || E.addEventListener("click", g), a.addEventListener("click", (A) => {
9404
+ }), (S = a.querySelector("#__crossx-close-btn")) == null || S.addEventListener("click", g), a.addEventListener("click", (A) => {
9404
9405
  A.target === a && g();
9405
9406
  });
9406
- const S = (A) => {
9407
- A.key === "Escape" && (document.removeEventListener("keydown", S), g());
9407
+ const E = (A) => {
9408
+ A.key === "Escape" && (document.removeEventListener("keydown", E), g());
9408
9409
  };
9409
- document.addEventListener("keydown", S);
9410
+ document.addEventListener("keydown", E);
9410
9411
  });
9411
9412
  }
9412
9413
  showWalletCreatedPrompt() {
9413
9414
  return new Promise((e) => {
9414
9415
  var a, l;
9415
- G();
9416
- const r = ps(this.tokens, this.messages), t = re();
9417
- K(r);
9416
+ K();
9417
+ const r = ps(this.tokens, this.messages), t = se();
9418
+ z(r);
9418
9419
  let s = !1, o = null;
9419
9420
  const n = () => {
9420
9421
  s || (s = !0, o && document.removeEventListener("keydown", o), r.remove(), t(), e());
@@ -9436,7 +9437,7 @@ class Rs {
9436
9437
  resolveAddWalletErrorMessage(e) {
9437
9438
  const r = this.messages;
9438
9439
  if (e instanceof h && e.code === d.ADDRESS_LIMIT_EXCEEDED) {
9439
- const s = e.details, o = typeof (s == null ? void 0 : s.limit) == "number" ? s.limit : Ce;
9440
+ const s = e.details, o = typeof (s == null ? void 0 : s.limit) == "number" ? s.limit : Ne;
9440
9441
  return ((r == null ? void 0 : r.wallet_selector_add_error_limit_exceeded) ?? "Account limit reached. Maximum {limit} accounts allowed.").replace("{limit}", String(o));
9441
9442
  }
9442
9443
  return (r == null ? void 0 : r.wallet_selector_add_error_generic) ?? "Failed to add a new account. Please try again.";
@@ -9449,13 +9450,13 @@ class Rs {
9449
9450
  showLoginSelector(e) {
9450
9451
  var t;
9451
9452
  const r = ((t = e == null ? void 0 : e.connectOtherWallets) == null ? void 0 : t.filter(
9452
- (s) => Object.values(ue).includes(s) && String(s).trim() !== ""
9453
+ (s) => Object.values(ge).includes(s) && String(s).trim() !== ""
9453
9454
  )) ?? [];
9454
9455
  return new Promise((s) => {
9455
9456
  var x, g, f, m;
9456
- G();
9457
- const o = gs(this.tokens, r, this.messages), n = re();
9458
- K(o);
9457
+ K();
9458
+ const o = gs(this.tokens, r, this.messages), n = se();
9459
+ z(o);
9459
9460
  const a = () => {
9460
9461
  o.remove(), n();
9461
9462
  }, l = (y) => {
@@ -9466,12 +9467,12 @@ class Rs {
9466
9467
  a(), s(null);
9467
9468
  };
9468
9469
  (x = o.querySelector("#__crossx-apple-btn")) == null || x.addEventListener("click", () => l("apple")), (g = o.querySelector("#__crossx-google-btn")) == null || g.addEventListener("click", () => l("google")), (f = o.querySelector("#__crossx-connect-other-wallet-btn")) == null || f.addEventListener("click", (y) => {
9469
- const E = y.currentTarget.dataset.walletId ?? "";
9470
- E && p(E);
9470
+ const S = y.currentTarget.dataset.walletId ?? "";
9471
+ S && p(S);
9471
9472
  }), (m = o.querySelector("#__crossx-close-btn")) == null || m.addEventListener("click", _), o.addEventListener("click", (y) => {
9472
9473
  y.target === o && _();
9473
9474
  }), o.querySelectorAll(".__crossx-login-terms-link").forEach((y) => {
9474
- y.addEventListener("click", (S) => S.stopPropagation());
9475
+ y.addEventListener("click", (E) => E.stopPropagation());
9475
9476
  });
9476
9477
  const u = (y) => {
9477
9478
  y.key === "Escape" && (document.removeEventListener("keydown", u), _());
@@ -9482,7 +9483,7 @@ class Rs {
9482
9483
  showSessionAlert(e) {
9483
9484
  return new Promise((r) => {
9484
9485
  var _, u, x;
9485
- G();
9486
+ K();
9486
9487
  const t = this.messages, s = fs(this.tokens, {
9487
9488
  title: e.title,
9488
9489
  message: e.message,
@@ -9490,8 +9491,8 @@ class Rs {
9490
9491
  accountLabel: (t == null ? void 0 : t.session_alert_account_label) ?? "Account",
9491
9492
  signOutLabel: (t == null ? void 0 : t.session_alert_sign_out_button) ?? "Sign out",
9492
9493
  signInAgainLabel: (t == null ? void 0 : t.session_alert_sign_in_again_button) ?? "Sign in again"
9493
- }), o = re();
9494
- K(s);
9494
+ }), o = se();
9495
+ z(s);
9495
9496
  let n = !1;
9496
9497
  const a = () => {
9497
9498
  n || (n = !0, s.remove(), o());
@@ -9512,9 +9513,9 @@ class Rs {
9512
9513
  const r = (e == null ? void 0 : e.allowSkip) ?? !0;
9513
9514
  return new Promise((t) => {
9514
9515
  var a, l, p;
9515
- G();
9516
+ K();
9516
9517
  const s = ws(this.tokens, r);
9517
- K(s);
9518
+ z(s);
9518
9519
  const o = () => s.remove(), n = () => {
9519
9520
  o(), t("recover");
9520
9521
  };
@@ -9541,7 +9542,7 @@ class Rs {
9541
9542
  */
9542
9543
  showPinSetupPrompt(e) {
9543
9544
  return new Promise((r) => {
9544
- G();
9545
+ K();
9545
9546
  const t = this.messages, s = {
9546
9547
  title: (t == null ? void 0 : t.pin_setup_title) ?? "Create PIN",
9547
9548
  headerSubtitle: (t == null ? void 0 : t.pin_notice_header_subtitle) ?? "Required for transactions, PK/mnemonic export & account deletion.",
@@ -9560,13 +9561,13 @@ class Rs {
9560
9561
  title: (t == null ? void 0 : t.pin_setup_confirm_title) ?? "Confirm PIN",
9561
9562
  headerSubtitle: (t == null ? void 0 : t.pin_setup_header_subtitle) ?? "This PIN is used to authorize your transactions.",
9562
9563
  subtitle: (t == null ? void 0 : t.pin_setup_confirm_subtitle) ?? "Confirm your 6-digit PIN"
9563
- }, a = lt(this.tokens, vs(s)), l = re();
9564
- K(a);
9564
+ }, a = lt(this.tokens, vs(s)), l = se();
9565
+ z(a);
9565
9566
  let p = !1;
9566
9567
  const _ = () => {
9567
9568
  p || (p = !0, a.remove(), l());
9568
- }, u = (E) => {
9569
- _(), r(E);
9569
+ }, u = (S) => {
9570
+ _(), r(S);
9570
9571
  }, x = () => {
9571
9572
  _(), r(null);
9572
9573
  }, g = a.querySelector(".__crossx-card"), f = {
@@ -9575,67 +9576,67 @@ class Rs {
9575
9576
  repeatingDigit: (t == null ? void 0 : t.pin_validation_repeating_digit) ?? "Cannot use the same number 3+ times in a row.",
9576
9577
  sequential: (t == null ? void 0 : t.pin_validation_sequential) ?? "Sequential numbers (e.g., 123456) are not allowed.",
9577
9578
  alternatingPattern: (t == null ? void 0 : t.pin_validation_alternating_pattern) ?? "Repeating patterns (e.g., 121212) are not allowed."
9578
- }, m = (E) => {
9579
+ }, m = (S) => {
9579
9580
  var A;
9580
- g.innerHTML = Ne({
9581
+ g.innerHTML = Ce({
9581
9582
  title: n.title,
9582
9583
  headerSubtitle: n.headerSubtitle,
9583
9584
  subtitle: n.subtitle
9584
9585
  }), this.applyPinKeyboardMode(g), (A = g.querySelector("#__crossx-close-btn")) == null || A.addEventListener("click", x), Pe(g, (k) => {
9585
- k === E ? u(E) : y(o.mismatchError);
9586
+ k === S ? u(S) : y(o.mismatchError);
9586
9587
  }, x);
9587
- }, y = (E) => {
9588
+ }, y = (S) => {
9588
9589
  var A;
9589
- g.innerHTML = Ne({
9590
+ g.innerHTML = Ce({
9590
9591
  title: o.title,
9591
9592
  headerSubtitle: o.headerSubtitle,
9592
9593
  subtitle: o.subtitle,
9593
- errorMessage: E
9594
+ errorMessage: S
9594
9595
  }), this.applyPinKeyboardMode(g), (A = g.querySelector("#__crossx-close-btn")) == null || A.addEventListener("click", x), Pe(g, (k) => {
9595
9596
  const T = Ss(k, f);
9596
9597
  T ? y(T) : m(k);
9597
9598
  }, x);
9598
9599
  };
9599
9600
  (() => {
9600
- var z;
9601
- const E = Array.from(g.querySelectorAll(".__crossx-pw-notice-item")), A = g.querySelector("#__crossx-pin-notice-next"), k = /* @__PURE__ */ new Set();
9601
+ var ee;
9602
+ const S = Array.from(g.querySelectorAll(".__crossx-pw-notice-item")), A = g.querySelector("#__crossx-pin-notice-next"), k = /* @__PURE__ */ new Set();
9602
9603
  A.removeAttribute("disabled");
9603
- const T = A.dataset.nextLabel ?? "Next", N = A.dataset.submitLabel ?? "I Understand", U = () => {
9604
- const P = k.size === E.length;
9605
- A.classList.toggle("--disabled", !P), A.textContent = N || T;
9606
- }, C = (P, L) => {
9604
+ const T = A.dataset.nextLabel ?? "Next", O = A.dataset.submitLabel ?? "I Understand", M = () => {
9605
+ const C = k.size === S.length;
9606
+ A.classList.toggle("--disabled", !C), A.textContent = O || T;
9607
+ }, G = (C, L) => {
9607
9608
  if (k.has(L)) return;
9608
- const W = P.querySelector(`#__crossx-notice-check-${L}`);
9609
- k.add(L), W.classList.add("--checked"), P.setAttribute("aria-checked", "true"), U();
9610
- }, q = (P, L) => {
9609
+ const U = C.querySelector(`#__crossx-notice-check-${L}`);
9610
+ k.add(L), U.classList.add("--checked"), C.setAttribute("aria-checked", "true"), M();
9611
+ }, P = (C, L) => {
9611
9612
  if (!k.has(L)) return;
9612
- const W = P.querySelector(`#__crossx-notice-check-${L}`);
9613
- k.delete(L), W.classList.remove("--checked"), P.setAttribute("aria-checked", "false"), U();
9613
+ const U = C.querySelector(`#__crossx-notice-check-${L}`);
9614
+ k.delete(L), U.classList.remove("--checked"), C.setAttribute("aria-checked", "false"), M();
9614
9615
  };
9615
- E.forEach((P) => {
9616
- const L = parseInt(P.dataset.checkIndex ?? "0", 10);
9617
- P.addEventListener("click", () => {
9618
- k.has(L) ? q(P, L) : C(P, L);
9619
- }), P.addEventListener("keydown", (W) => {
9620
- (W.key === " " || W.key === "Enter") && (W.preventDefault(), k.has(L) ? q(P, L) : C(P, L));
9616
+ S.forEach((C) => {
9617
+ const L = parseInt(C.dataset.checkIndex ?? "0", 10);
9618
+ C.addEventListener("click", () => {
9619
+ k.has(L) ? P(C, L) : G(C, L);
9620
+ }), C.addEventListener("keydown", (U) => {
9621
+ (U.key === " " || U.key === "Enter") && (U.preventDefault(), k.has(L) ? P(C, L) : G(C, L));
9621
9622
  });
9622
9623
  }), A.addEventListener("click", () => {
9623
- if (k.size === E.length) {
9624
+ if (k.size === S.length) {
9624
9625
  y(e == null ? void 0 : e.errorMessage);
9625
9626
  return;
9626
9627
  }
9627
- const P = E.find((W) => {
9628
- const ne = parseInt(W.dataset.checkIndex ?? "0", 10);
9629
- return !k.has(ne);
9628
+ const C = S.find((U) => {
9629
+ const ae = parseInt(U.dataset.checkIndex ?? "0", 10);
9630
+ return !k.has(ae);
9630
9631
  });
9631
- if (!P) return;
9632
- const L = parseInt(P.dataset.checkIndex ?? "0", 10);
9633
- P.scrollIntoView({ behavior: "smooth", block: "nearest" }), P.classList.add("--highlight"), setTimeout(() => {
9634
- P.classList.remove("--highlight"), C(P, L);
9632
+ if (!C) return;
9633
+ const L = parseInt(C.dataset.checkIndex ?? "0", 10);
9634
+ C.scrollIntoView({ behavior: "smooth", block: "nearest" }), C.classList.add("--highlight"), setTimeout(() => {
9635
+ C.classList.remove("--highlight"), G(C, L);
9635
9636
  }, 400);
9636
- }), (z = g.querySelector("#__crossx-close-btn")) == null || z.addEventListener("click", x);
9637
- })(), a.addEventListener("click", (E) => {
9638
- E.target === a && x();
9637
+ }), (ee = g.querySelector("#__crossx-close-btn")) == null || ee.addEventListener("click", x);
9638
+ })(), a.addEventListener("click", (S) => {
9639
+ S.target === a && x();
9639
9640
  });
9640
9641
  });
9641
9642
  }
@@ -9646,11 +9647,11 @@ class Rs {
9646
9647
  */
9647
9648
  showPinInputPrompt(e) {
9648
9649
  return new Promise((r, t) => {
9649
- var S;
9650
- G();
9650
+ var E;
9651
+ K();
9651
9652
  const s = this.messages, o = (e == null ? void 0 : e.verifyMode) === !0, n = o ? (s == null ? void 0 : s.verify_pin_title) ?? "Verify Your PIN" : (s == null ? void 0 : s.pin_input_title) ?? "Enter PIN", a = o ? (s == null ? void 0 : s.verify_pin_subtitle) ?? "Enter your PIN to authorize this transaction." : (s == null ? void 0 : s.pin_input_subtitle) ?? "Enter your 6-digit PIN to continue.", l = (s == null ? void 0 : s.pin_locked_failure_warning) ?? "Your account will be locked after further failures.", p = lt(
9652
9653
  this.tokens,
9653
- Ne({
9654
+ Ce({
9654
9655
  title: n,
9655
9656
  headerSubtitle: a,
9656
9657
  errorMessage: e == null ? void 0 : e.errorMessage,
@@ -9659,20 +9660,20 @@ class Rs {
9659
9660
  attemptCount: e == null ? void 0 : e.attemptCount,
9660
9661
  maxAttempts: e == null ? void 0 : e.maxAttempts
9661
9662
  })
9662
- ), _ = re();
9663
- K(p);
9663
+ ), _ = se();
9664
+ z(p);
9664
9665
  let u = !1;
9665
9666
  const x = () => {
9666
9667
  u || (u = !0, p.remove(), _());
9667
- }, g = (E) => {
9668
- x(), r(E);
9668
+ }, g = (S) => {
9669
+ x(), r(S);
9669
9670
  }, f = () => {
9670
9671
  x(), r(null);
9671
- }, m = (E) => {
9672
- x(), t(E);
9672
+ }, m = (S) => {
9673
+ x(), t(S);
9673
9674
  }, y = p.querySelector(".__crossx-card");
9674
- this.applyPinKeyboardMode(y), (S = y.querySelector("#__crossx-close-btn")) == null || S.addEventListener("click", f), Pe(y, g, f, m, e == null ? void 0 : e.onSubmit, e == null ? void 0 : e.lockExpiresAt, l), p.addEventListener("click", (E) => {
9675
- E.target === p && f();
9675
+ this.applyPinKeyboardMode(y), (E = y.querySelector("#__crossx-close-btn")) == null || E.addEventListener("click", f), Pe(y, g, f, m, e == null ? void 0 : e.onSubmit, e == null ? void 0 : e.lockExpiresAt, l), p.addEventListener("click", (S) => {
9676
+ S.target === p && f();
9676
9677
  });
9677
9678
  });
9678
9679
  }
@@ -9686,9 +9687,9 @@ class Rs {
9686
9687
  showRecoveryPinInputPrompt(e) {
9687
9688
  return new Promise((r) => {
9688
9689
  var l;
9689
- G();
9690
+ K();
9690
9691
  const t = ms(this.tokens, e);
9691
- K(t);
9692
+ z(t);
9692
9693
  const s = () => t.remove(), o = (p) => {
9693
9694
  s(), r(p);
9694
9695
  }, n = () => {
@@ -9708,9 +9709,9 @@ class Rs {
9708
9709
  showRecoveryPinLockedPrompt(e, r) {
9709
9710
  return new Promise((t) => {
9710
9711
  var p;
9711
- G();
9712
+ K();
9712
9713
  const { overlay: s, startCountdown: o } = bs(this.tokens, e, r);
9713
- K(s);
9714
+ z(s);
9714
9715
  const n = () => {
9715
9716
  l(), s.remove();
9716
9717
  }, a = () => {
@@ -9728,9 +9729,9 @@ class Rs {
9728
9729
  showTransactionComplete(e) {
9729
9730
  return new Promise((r) => {
9730
9731
  var a, l;
9731
- G();
9732
+ K();
9732
9733
  const t = es(e, this.tokens, this.messages);
9733
- K(t);
9734
+ z(t);
9734
9735
  const s = () => t.remove(), o = () => {
9735
9736
  s(), r();
9736
9737
  };
@@ -9757,9 +9758,9 @@ class Rs {
9757
9758
  */
9758
9759
  showTransactionProgress(e, r) {
9759
9760
  return new Promise((t) => {
9760
- G();
9761
+ K();
9761
9762
  const s = ts(e, this.tokens, this.messages);
9762
- K(s);
9763
+ z(s);
9763
9764
  const o = () => s.remove();
9764
9765
  let n = !1;
9765
9766
  const a = () => {
@@ -9782,11 +9783,11 @@ class Rs {
9782
9783
  requestConfirmation(e) {
9783
9784
  return new Promise((r) => {
9784
9785
  var p, _, u;
9785
- G();
9786
+ K();
9786
9787
  let t;
9787
9788
  e.type === "sign-message" ? t = ss(e, this.tokens, this.messages) : e.type === "sign-typed-data" ? t = is(e, this.tokens, this.messages) : e.type === "sign" ? t = zr(e, this.tokens, this.displayDecimals, this.messages) : t = jr(e, this.tokens, this.displayDecimals, this.messages);
9788
- const s = re();
9789
- K(t);
9789
+ const s = se();
9790
+ z(t);
9790
9791
  const o = () => {
9791
9792
  t.remove(), s();
9792
9793
  }, n = () => {
@@ -9802,7 +9803,7 @@ class Rs {
9802
9803
  f && ((m = navigator.clipboard) == null || m.writeText(f).catch(() => {
9803
9804
  }));
9804
9805
  });
9805
- }), Cr(t), t.addEventListener("click", (x) => {
9806
+ }), Nr(t), t.addEventListener("click", (x) => {
9806
9807
  x.target === t && a();
9807
9808
  });
9808
9809
  const l = (x) => {
@@ -9812,7 +9813,7 @@ class Rs {
9812
9813
  });
9813
9814
  }
9814
9815
  }
9815
- class Ns {
9816
+ class Cs {
9816
9817
  constructor(e, r, t, s = () => !1) {
9817
9818
  this.browserConfirmation = e, this.getBridge = r, this.getOrigin = t, this.isAuthenticatedViaRNBridge = s;
9818
9819
  }
@@ -10022,7 +10023,7 @@ Set the projectId field in SDKConfig when calling createCROSSxSDK().
10022
10023
  Example: createCROSSxSDK({ projectId: "your-project-id", ... })`
10023
10024
  );
10024
10025
  i.debug;
10025
- const r = pe.production, t = {
10026
+ const r = de.production, t = {
10026
10027
  ...i,
10027
10028
  oauthServiceUrl: r.oauthServiceUrl,
10028
10029
  authApiUrl: r.authApiUrl,
@@ -10036,9 +10037,9 @@ Example: createCROSSxSDK({ projectId: "your-project-id", ... })`
10036
10037
  "refresh_token이 평문 저장되지 않도록 세션 영속성이 제한됩니다.",
10037
10038
  "IndexedDB를 지원하는 브라우저 사용을 권장합니다."
10038
10039
  ), t.secureStorageAvailable = o;
10039
- const n = o ? new it(i.projectId) : new gr(), a = new yr(), l = new Er(), p = new se(), _ = new Ps(), u = new pt();
10040
+ const n = o ? new it(i.projectId) : new gr(), a = new yr(), l = new Er(), p = new ie(), _ = new Ps(), u = new pt();
10040
10041
  let x;
10041
- i.useMockWallet ? (c.log("[CROSSx] Mock Wallet Provider 사용"), x = new Ir(n, u)) : (c.log("[CROSSx] Remote Wallet Provider 사용"), x = new ie(
10042
+ i.useMockWallet ? (c.log("[CROSSx] Mock Wallet Provider 사용"), x = new Ir(n, u)) : (c.log("[CROSSx] Remote Wallet Provider 사용"), x = new oe(
10042
10043
  s,
10043
10044
  n,
10044
10045
  l,
@@ -10047,36 +10048,36 @@ Example: createCROSSxSDK({ projectId: "your-project-id", ... })`
10047
10048
  ));
10048
10049
  let g = null;
10049
10050
  const f = () => {
10050
- var N;
10051
- return ((N = g == null ? void 0 : g.isAuthenticatedViaRNBridge) == null ? void 0 : N.call(g)) ?? !1;
10051
+ var O;
10052
+ return ((O = g == null ? void 0 : g.isAuthenticatedViaRNBridge) == null ? void 0 : O.call(g)) ?? !1;
10052
10053
  }, m = () => {
10053
- var N;
10054
- return (N = g == null ? void 0 : g.assertRNBridgeSessionActive) == null ? void 0 : N.call(g);
10054
+ var O;
10055
+ return (O = g == null ? void 0 : g.assertRNBridgeSessionActive) == null ? void 0 : O.call(g);
10055
10056
  };
10056
10057
  x = new kr(
10057
10058
  x,
10058
10059
  () => {
10059
- var N;
10060
- return (N = g == null ? void 0 : g.getRNBridge) == null ? void 0 : N.call(g);
10060
+ var O;
10061
+ return (O = g == null ? void 0 : g.getRNBridge) == null ? void 0 : O.call(g);
10061
10062
  },
10062
10063
  f,
10063
10064
  m,
10064
10065
  () => i.appName
10065
10066
  );
10066
- const y = new xe(s, l), S = new Rs(
10067
+ const y = new fe(s, l), E = new Rs(
10067
10068
  i.theme ?? "light",
10068
10069
  i.themeTokens,
10069
10070
  i.displayDecimals,
10070
10071
  i.pinKeyboard
10071
- ), E = new Ns(
10072
- S,
10072
+ ), S = new Cs(
10073
+ E,
10073
10074
  () => {
10074
- var N;
10075
- return (N = g == null ? void 0 : g.getRNBridge) == null ? void 0 : N.call(g);
10075
+ var O;
10076
+ return (O = g == null ? void 0 : g.getRNBridge) == null ? void 0 : O.call(g);
10076
10077
  },
10077
10078
  () => typeof window < "u" ? window.location.origin : "http://localhost",
10078
10079
  f
10079
- ), A = e != null && e.wrapConfirmation ? e.wrapConfirmation(E) : E, k = new Le(
10080
+ ), A = e != null && e.wrapConfirmation ? e.wrapConfirmation(S) : S, k = new Le(
10080
10081
  t,
10081
10082
  s,
10082
10083
  n,
@@ -10094,7 +10095,7 @@ Example: createCROSSxSDK({ projectId: "your-project-id", ... })`
10094
10095
  return T && typeof T.setFreshTokenCallback == "function" && T.setFreshTokenCallback(() => k.requestFreshFirebaseIdTokenFromBridge()), typeof window < "u" && (window.__crossxSDK = k), k;
10095
10096
  }
10096
10097
  function Hs(i) {
10097
- const e = Cs(i), r = Os(e), t = JSON.parse(r);
10098
+ const e = Ns(i), r = Os(e), t = JSON.parse(r);
10098
10099
  Ds(t);
10099
10100
  const { data: s } = t;
10100
10101
  return {
@@ -10109,7 +10110,7 @@ function Hs(i) {
10109
10110
  raw: t
10110
10111
  };
10111
10112
  }
10112
- function Cs(i) {
10113
+ function Ns(i) {
10113
10114
  if (i.includes("://") && i.includes("?")) {
10114
10115
  const e = new URL(i), r = e.searchParams.get("crossx_oauth_result");
10115
10116
  if (r) return r;
@@ -10151,14 +10152,14 @@ function Ds(i) {
10151
10152
  throw new Error("Deeplink data에 accessToken 필드가 없습니다");
10152
10153
  }
10153
10154
  export {
10154
- Mt as CONNECT_OTHER_WALLET_DISPLAY_ORDER,
10155
+ $t as CONNECT_OTHER_WALLET_DISPLAY_ORDER,
10155
10156
  h as CROSSxError,
10156
10157
  Ht as CROSSxEthereumProvider,
10157
10158
  Le as CROSSxSDK,
10158
10159
  Ws as ChainId,
10159
- ue as ConnectOtherWalletItem,
10160
+ ge as ConnectOtherWalletItem,
10160
10161
  d as ErrorCode,
10161
- Ce as MNEMONIC_ADDRESS_LIMIT,
10162
+ Ne as MNEMONIC_ADDRESS_LIMIT,
10162
10163
  pt as PinMemoryStore,
10163
10164
  Ps as TokenMemoryStore,
10164
10165
  Be as WALLET_BRAND_NAME,