@nexus-cross/crossx-sdk-core 2.3.9-beta.1 → 2.3.10-beta.2

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.2", 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.2 초기화 중..."), 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.2 초기화 완료"), 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.2",
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.2",
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,12 +5398,14 @@ 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)",
5404
5405
  borderMedium: "rgba(0,0,0,0.18)",
5405
5406
  titleColor: "#000000",
5407
+ contentHigh: "rgba(0,0,0,0.85)",
5408
+ // Figma content/high
5406
5409
  subtitleColor: "rgba(0,0,0,0.65)",
5407
5410
  labelColor: "rgba(0,0,0,0.65)",
5408
5411
  valueColor: "#000000",
@@ -5434,6 +5437,8 @@ const nt = "__crossx-confirm-style", M = "__crossx-confirm-overlay", Tr = {
5434
5437
  border: "rgba(255,255,255,0.07)",
5435
5438
  borderMedium: "rgba(255,255,255,0.18)",
5436
5439
  titleColor: "#FFFFFF",
5440
+ contentHigh: "rgba(255,255,255,0.85)",
5441
+ // Figma content/high
5437
5442
  subtitleColor: "rgba(255,255,255,0.65)",
5438
5443
  labelColor: "rgba(255,255,255,0.65)",
5439
5444
  valueColor: "#FFFFFF",
@@ -5477,7 +5482,9 @@ function at(i, e) {
5477
5482
  titleColor: t.textIconPrimary,
5478
5483
  valueColor: t.textIconPrimary,
5479
5484
  pillAmtColor: t.textIconPrimary,
5480
- closeColor: t.textIconPrimary
5485
+ closeColor: t.textIconPrimary,
5486
+ // Content/high 는 highest 의 85% 이지만 임의 색상의 알파를 계산할 수 없어 그대로 사용
5487
+ contentHigh: t.textIconPrimary
5481
5488
  },
5482
5489
  ...t.textIconSecondary !== void 0 && { subtitleColor: t.textIconSecondary },
5483
5490
  ...t.textIconTertiary !== void 0 && {
@@ -5497,7 +5504,7 @@ function at(i, e) {
5497
5504
  const Rr = `
5498
5505
  @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
5506
 
5500
- #${M} {
5507
+ #${F} {
5501
5508
  position: fixed;
5502
5509
  inset: 0;
5503
5510
  z-index: 2147483647;
@@ -6595,15 +6602,17 @@ const Rr = `
6595
6602
  margin: 0;
6596
6603
  width: 100%;
6597
6604
  }
6605
+ /* Figma: 본문은 Content/medium(--cx-subtitle), 링크는 한 단계 진한 본문색 + 상시 밑줄 */
6598
6606
  .__crossx-login-terms-link {
6599
- color: var(--cx-primary);
6600
- text-decoration: none;
6607
+ color: var(--cx-content-high);
6608
+ text-decoration: underline;
6609
+ text-underline-position: from-font;
6601
6610
  }
6602
6611
  .__crossx-login-terms-link:hover,
6603
6612
  .__crossx-login-terms-link:focus,
6604
6613
  .__crossx-login-terms-link:active {
6605
- color: var(--cx-primary) !important;
6606
- text-decoration: none !important;
6614
+ color: var(--cx-content-high) !important;
6615
+ text-decoration: underline !important;
6607
6616
  opacity: 1 !important;
6608
6617
  background: none !important;
6609
6618
  box-shadow: none !important;
@@ -7031,7 +7040,7 @@ button.__crossx-connect-other-block:active {
7031
7040
  }
7032
7041
  /* ── Mobile bottom sheet ───────────────────────────────────── */
7033
7042
  @media (max-width: 480px) {
7034
- #${M} {
7043
+ #${F} {
7035
7044
  align-items: flex-end;
7036
7045
  /*
7037
7046
  * iOS Safari 는 soft keyboard 가 떠도 layout viewport 를 축소시키지 않아
@@ -7330,7 +7339,7 @@ button.__crossx-connect-other-block:active {
7330
7339
 
7331
7340
  /* ── Landscape for signing/transaction modals ──────────── */
7332
7341
  @media (orientation: landscape) and (max-height: 500px) {
7333
- #${M} { align-items: center !important; overflow: hidden; }
7342
+ #${F} { align-items: center !important; overflow: hidden; }
7334
7343
  .__crossx-card--send-tx,
7335
7344
  .__crossx-card--sign-tx,
7336
7345
  .__crossx-card--sign-msg,
@@ -8093,12 +8102,12 @@ button.__crossx-connect-other-block:active {
8093
8102
  display: block;
8094
8103
  }
8095
8104
  `;
8096
- function G() {
8105
+ function K() {
8097
8106
  let i = document.getElementById(nt);
8098
8107
  i || (i = document.createElement("style"), i.id = nt, document.head.appendChild(i)), i.textContent = Rr;
8099
8108
  }
8100
- function Nr() {
8101
- const i = `#${M}`, e = (t) => {
8109
+ function Cr() {
8110
+ const i = `#${F}`, e = (t) => {
8102
8111
  var s, o;
8103
8112
  (o = (s = t.target) == null ? void 0 : s.closest) != null && o.call(s, i) && t.stopImmediatePropagation();
8104
8113
  }, r = (t) => {
@@ -8109,7 +8118,7 @@ function Nr() {
8109
8118
  document.removeEventListener("focusin", e, !0), document.removeEventListener("focusout", r, !0);
8110
8119
  };
8111
8120
  }
8112
- function K(i) {
8121
+ function z(i) {
8113
8122
  const e = i.querySelector(".__crossx-card");
8114
8123
  if (e) {
8115
8124
  const a = (e.getAttribute("style") ?? "").match(/--cx-bg:\s*([^;]+)/);
@@ -8137,7 +8146,7 @@ function K(i) {
8137
8146
  }
8138
8147
  n.preventDefault();
8139
8148
  }, { passive: !1 });
8140
- const t = Nr(), s = Pr(i), o = i.remove.bind(i);
8149
+ const t = Cr(), s = Pr(i), o = i.remove.bind(i);
8141
8150
  i.remove = () => {
8142
8151
  s(), t(), o();
8143
8152
  }, document.body.appendChild(i);
@@ -8157,7 +8166,7 @@ function Pr(i) {
8157
8166
  e.removeEventListener("resize", t), e.removeEventListener("scroll", t), i.style.removeProperty("--cx-keyboard-inset");
8158
8167
  };
8159
8168
  }
8160
- function Cr(i) {
8169
+ function Nr(i) {
8161
8170
  const e = Array.from(i.querySelectorAll(".__crossx-amount-tip"));
8162
8171
  if (!e.length) return;
8163
8172
  const r = document.createElement("div");
@@ -8182,7 +8191,7 @@ function Cr(i) {
8182
8191
  }, { passive: !0 });
8183
8192
  }
8184
8193
  const Or = () => /iPad|iPhone|iPod/.test(navigator.userAgent) || navigator.platform === "MacIntel" && navigator.maxTouchPoints > 1;
8185
- function re() {
8194
+ function se() {
8186
8195
  if (Or()) {
8187
8196
  const e = window.scrollY;
8188
8197
  return document.body.style.position = "fixed", document.body.style.top = `-${e}px`, document.body.style.left = "0", document.body.style.right = "0", () => {
@@ -8194,7 +8203,7 @@ function re() {
8194
8203
  document.body.style.overflow = i;
8195
8204
  };
8196
8205
  }
8197
- function Q(i) {
8206
+ function Z(i) {
8198
8207
  return i ? i.length <= 13 ? i : `${i.slice(0, 6)}…${i.slice(-4)}` : "—";
8199
8208
  }
8200
8209
  function ht(i) {
@@ -8205,10 +8214,10 @@ function ut(i, e = "ONE", r = 18, t = 6) {
8205
8214
  try {
8206
8215
  const s = BigInt(i);
8207
8216
  if (s === 0n) return null;
8208
- const o = Me(s, r, t);
8217
+ const o = $e(s, r, t);
8209
8218
  if (o === "0") return null;
8210
8219
  const n = De(s, r);
8211
- return $e(`${o} ${e}`, `${n} ${e}`);
8220
+ return Me(`${o} ${e}`, `${n} ${e}`);
8212
8221
  } catch {
8213
8222
  return null;
8214
8223
  }
@@ -8280,10 +8289,10 @@ function De(i, e) {
8280
8289
  const r = 10n ** BigInt(e), t = i / r, o = (i % r).toString().padStart(e, "0").replace(/0+$/, "");
8281
8290
  return o ? `${t}.${o}` : `${t}`;
8282
8291
  }
8283
- function $e(i, e) {
8292
+ function Me(i, e) {
8284
8293
  return i === e ? w(i) : `<span class="__crossx-amount-tip" data-full="${w(e)}">${w(i)}</span>`;
8285
8294
  }
8286
- function Me(i, e, r) {
8295
+ function $e(i, e, r) {
8287
8296
  if (i === 0n) return "0";
8288
8297
  const t = 10n ** BigInt(e), s = i / t, a = (i % t).toString().padStart(e, "0").slice(0, r).replace(/0+$/, "");
8289
8298
  return a ? `${s}.${a}` : `${s}`;
@@ -8303,7 +8312,7 @@ function Dr(i) {
8303
8312
  return i;
8304
8313
  }
8305
8314
  }
8306
- function $r(i, e) {
8315
+ function Mr(i, e) {
8307
8316
  const { gasLimit: r, gasPrice: t, maxFeePerGas: s, maxPriorityFeePerGas: o, nativeDecimals: n = 18 } = i, a = He(i.chainId, i.nativeSymbol ?? "ETH");
8308
8317
  if (!r) return null;
8309
8318
  try {
@@ -8312,8 +8321,8 @@ function $r(i, e) {
8312
8321
  const _ = l * BigInt(s);
8313
8322
  return {
8314
8323
  isDynamic: !0,
8315
- estTxFee: $e(
8316
- `${Me(_, n, e)} ${a}`,
8324
+ estTxFee: Me(
8325
+ `${$e(_, n, e)} ${a}`,
8317
8326
  `${De(_, n)} ${a}`
8318
8327
  ),
8319
8328
  maxFeeGwei: Re(s),
@@ -8325,8 +8334,8 @@ function $r(i, e) {
8325
8334
  const _ = l * BigInt(t);
8326
8335
  return {
8327
8336
  isDynamic: !1,
8328
- estTxFee: $e(
8329
- `${Me(_, n, e)} ${a}`,
8337
+ estTxFee: Me(
8338
+ `${$e(_, n, e)} ${a}`,
8330
8339
  `${De(_, n)} ${a}`
8331
8340
  ),
8332
8341
  gasPriceGwei: Re(t),
@@ -8339,24 +8348,24 @@ function $r(i, e) {
8339
8348
  }
8340
8349
  }
8341
8350
  function ft(i, e, r) {
8342
- const t = $r(i, e);
8351
+ const t = Mr(i, e);
8343
8352
  if (!t) return D((r == null ? void 0 : r.label_estimated_fee) ?? "Estimated fee", "<span>—</span>");
8344
8353
  let s = D((r == null ? void 0 : r.label_est_tx_fee) ?? "Est. Tx Fee", `<span>${t.estTxFee}</span>`);
8345
8354
  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
8355
  }
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">
8356
+ 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
8357
  <rect x="9" y="9" width="13" height="13" rx="2"/>
8349
8358
  <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">
8359
+ </svg>`, W = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round">
8351
8360
  <line x1="18" y1="6" x2="6" y2="18"/>
8352
8361
  <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">
8362
+ </svg>`, $r = `<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
8354
8363
  <circle cx="20" cy="20" r="20" fill="#00D5AA"/>
8355
8364
  <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
8365
+ </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 = {
8366
+ [ge.MetaMask]: Fr,
8367
+ [ge.Binance]: Br,
8368
+ [ge.CROSSx]: Wr
8360
8369
  }, 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
8370
  <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
8371
  </svg>`, Gr = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none">
@@ -8370,6 +8379,7 @@ function H(i) {
8370
8379
  `--cx-border:${i.border}`,
8371
8380
  `--cx-border-medium:${i.borderMedium}`,
8372
8381
  `--cx-title:${i.titleColor}`,
8382
+ `--cx-content-high:${i.contentHigh}`,
8373
8383
  `--cx-subtitle:${i.subtitleColor}`,
8374
8384
  `--cx-label:${i.labelColor}`,
8375
8385
  `--cx-value:${i.valueColor}`,
@@ -8407,13 +8417,13 @@ function D(i, e) {
8407
8417
  </div>`;
8408
8418
  }
8409
8419
  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 = `
8420
+ 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>
8421
+ <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");
8422
+ return g.id = F, g.innerHTML = `
8413
8423
  <div class="__crossx-card __crossx-card--migration __crossx-card--sign-tx" style="${H(s)}" role="dialog" aria-modal="true" aria-labelledby="__crossx-ttl">
8414
8424
  <div class="__crossx-header">
8415
8425
  <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>
8426
+ <button class="__crossx-close" id="__crossx-close-btn" aria-label="Close">${W}</button>
8417
8427
  </div>
8418
8428
  <hr class="__crossx-divider">
8419
8429
  <div class="__crossx-body">
@@ -8424,7 +8434,7 @@ function zr(i, e, r, t) {
8424
8434
  </p>
8425
8435
  <div class="__crossx-addr-pill">
8426
8436
  ${Ge}
8427
- <span class="__crossx-addr-pill-text">${Q(i.from)}</span>
8437
+ <span class="__crossx-addr-pill-text">${Z(i.from)}</span>
8428
8438
  </div>
8429
8439
  <p class="__crossx-warning">${w((t == null ? void 0 : t.signature_warning) ?? "After you sign, changes or cancellations are not possible.")}</p>
8430
8440
  </div>
@@ -8447,7 +8457,7 @@ function zr(i, e, r, t) {
8447
8457
  </div>
8448
8458
  `, g;
8449
8459
  }
8450
- const qr = /* @__PURE__ */ new Set([
8460
+ const Vr = /* @__PURE__ */ new Set([
8451
8461
  "0x095ea7b3",
8452
8462
  // approve(address,uint256) — ERC20 / ERC721
8453
8463
  "0xa22cb465",
@@ -8457,17 +8467,17 @@ const qr = /* @__PURE__ */ new Set([
8457
8467
  "0x8fcbaf0c"
8458
8468
  // permit(address,address,uint256,uint256,bool,uint8,bytes32,bytes32) — DAI 스타일
8459
8469
  ]);
8460
- function Vr(i) {
8461
- return i ? qr.has(i.slice(0, 10).toLowerCase()) : !1;
8470
+ function qr(i) {
8471
+ return i ? Vr.has(i.slice(0, 10).toLowerCase()) : !1;
8462
8472
  }
8463
8473
  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 = `
8474
+ 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>
8475
+ <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");
8476
+ return g.id = F, g.innerHTML = `
8467
8477
  <div class="__crossx-card __crossx-card--migration __crossx-card--send-tx" style="${H(s)}" role="dialog" aria-modal="true" aria-labelledby="__crossx-ttl">
8468
8478
  <div class="__crossx-header">
8469
8479
  <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>
8480
+ <button class="__crossx-close" id="__crossx-close-btn" aria-label="Close">${W}</button>
8471
8481
  </div>
8472
8482
  <hr class="__crossx-divider">
8473
8483
  <div class="__crossx-body">
@@ -8481,7 +8491,7 @@ function jr(i, e, r, t) {
8481
8491
  ${p}
8482
8492
  </div>
8483
8493
  <div class="__crossx-pill">
8484
- <span class="__crossx-pill-from">${Q(i.from)}</span>
8494
+ <span class="__crossx-pill-from">${Z(i.from)}</span>
8485
8495
  <span class="__crossx-pill-amount">${u}</span>
8486
8496
  </div>
8487
8497
  </div>
@@ -8490,7 +8500,7 @@ function jr(i, e, r, t) {
8490
8500
  </div>
8491
8501
  `, g;
8492
8502
  }
8493
- function Se(i) {
8503
+ function Ee(i) {
8494
8504
  var e;
8495
8505
  if (i) return i;
8496
8506
  try {
@@ -8526,28 +8536,28 @@ function Qr(i, e) {
8526
8536
  function mt(i, e) {
8527
8537
  return `<a class="__crossx-addr-text __crossx-row-link" href="${w(e)}" target="_blank" rel="noopener noreferrer">${w(i)}</a>`;
8528
8538
  }
8529
- function ye(i) {
8530
- return mt(Q(i), Zr(i));
8539
+ function be(i) {
8540
+ return mt(Z(i), Zr(i));
8531
8541
  }
8532
8542
  function yt(i, e) {
8533
- return mt(Q(e), Qr(i, e));
8543
+ return mt(Z(e), Qr(i, e));
8534
8544
  }
8535
8545
  function es(i, e, r) {
8536
8546
  const t = D(
8537
8547
  (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">
8548
+ `${be(i.from)}
8549
+ <button class="__crossx-copy-btn" data-copy="${w(i.from)}" title="Copy address">${J}</button>`
8550
+ ), s = i.to ? D((r == null ? void 0 : r.label_to) ?? "To", `${be(i.to)}
8551
+ <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)}
8552
+ <button class="__crossx-copy-btn" data-copy="${w(i.txHash)}" title="Copy hash">${J}</button>`) : "", l = i.total ? `<div class="__crossx-total-pill">
8543
8553
  <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
8554
  <span class="__crossx-total-amount">${w(i.total)}</span>
8545
8555
  </div>` : "", p = document.createElement("div");
8546
- return p.id = M, p.innerHTML = `
8556
+ return p.id = F, p.innerHTML = `
8547
8557
  <div class="__crossx-card __crossx-card--migration" style="${H(e)}" role="dialog" aria-modal="true" aria-labelledby="__crossx-ttl">
8548
8558
  <div class="__crossx-header">
8549
8559
  <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>
8560
+ <button class="__crossx-close" id="__crossx-close-btn" aria-label="Close">${W}</button>
8551
8561
  </div>
8552
8562
  <hr class="__crossx-divider">
8553
8563
  <div class="__crossx-body">
@@ -8566,7 +8576,7 @@ function es(i, e, r) {
8566
8576
  }
8567
8577
  function ts(i, e, r) {
8568
8578
  const t = document.createElement("div");
8569
- return t.id = M, t.innerHTML = `
8579
+ return t.id = F, t.innerHTML = `
8570
8580
  <div class="__crossx-card __crossx-card--migration" style="${H(e)}" role="dialog" aria-modal="true" aria-labelledby="__crossx-ttl">
8571
8581
  <div class="__crossx-header">
8572
8582
  <p class="__crossx-title" id="__crossx-ttl">${w((r == null ? void 0 : r.tx_progress_waiting_title) ?? "Waiting for confirmation")}</p>
@@ -8589,14 +8599,14 @@ function rs(i, e, r, t) {
8589
8599
  }
8590
8600
  if (a && !i.querySelector("#__crossx-close-btn")) {
8591
8601
  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);
8602
+ m.className = "__crossx-close", m.id = "__crossx-close-btn", m.setAttribute("aria-label", "Close"), m.innerHTML = W, a.appendChild(m);
8593
8603
  }
8594
8604
  const l = i.querySelector("#__crossx-progress-body");
8595
8605
  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">
8606
+ const p = e.from ? D((t == null ? void 0 : t.label_from) ?? "From", `${be(e.from)}
8607
+ <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)}
8608
+ <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)}
8609
+ <button class="__crossx-copy-btn" data-copy="${w(e.txHash)}" title="Copy hash">${J}</button>`) : "", f = e.total ? `<div class="__crossx-total-pill">
8600
8610
  <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
8611
  <span class="__crossx-total-amount">${w(e.total)}</span>
8602
8612
  </div>` : "";
@@ -8612,21 +8622,21 @@ function rs(i, e, r, t) {
8612
8622
  <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
8623
  `, l.querySelectorAll(".__crossx-copy-btn").forEach((m) => {
8614
8624
  m.addEventListener("click", (y) => {
8615
- var E;
8625
+ var S;
8616
8626
  y.stopPropagation();
8617
- const S = m.dataset.copy;
8618
- S && ((E = navigator.clipboard) == null || E.writeText(S).catch(() => {
8627
+ const E = m.dataset.copy;
8628
+ E && ((S = navigator.clipboard) == null || S.writeText(E).catch(() => {
8619
8629
  }));
8620
8630
  });
8621
8631
  });
8622
8632
  }
8623
8633
  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 = `
8634
+ const t = e, s = Ee(i.dappName), o = w(i.message), n = document.createElement("div");
8635
+ return n.id = F, n.innerHTML = `
8626
8636
  <div class="__crossx-card __crossx-card--migration __crossx-card--sign-msg" style="${H(t)}" role="dialog" aria-modal="true" aria-labelledby="__crossx-ttl">
8627
8637
  <div class="__crossx-header">
8628
8638
  <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>
8639
+ <button class="__crossx-close" id="__crossx-close-btn" aria-label="Close">${W}</button>
8630
8640
  </div>
8631
8641
  <hr class="__crossx-divider">
8632
8642
  <div class="__crossx-body">
@@ -8637,7 +8647,7 @@ function ss(i, e, r) {
8637
8647
  </p>
8638
8648
  <div class="__crossx-addr-pill">
8639
8649
  ${Ge}
8640
- <span class="__crossx-addr-pill-text">${Q(i.from)}</span>
8650
+ <span class="__crossx-addr-pill-text">${Z(i.from)}</span>
8641
8651
  </div>
8642
8652
  <p class="__crossx-warning">${w((r == null ? void 0 : r.signature_warning) ?? "After you sign, changes or cancellations are not possible.")}</p>
8643
8653
  </div>
@@ -8653,7 +8663,7 @@ function ss(i, e, r) {
8653
8663
  `, n;
8654
8664
  }
8655
8665
  function is(i, e, r) {
8656
- const t = e, s = Se(i.dappName);
8666
+ const t = e, s = Ee(i.dappName);
8657
8667
  let o = {};
8658
8668
  if (typeof i.typedData == "string")
8659
8669
  try {
@@ -8668,8 +8678,8 @@ function is(i, e, r) {
8668
8678
  <span class="__crossx-td-value">${w(n)}</span>
8669
8679
  </div>`;
8670
8680
  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>`;
8681
+ const x = Xr(u), f = Yr(u) ? `<span class="__crossx-addr-text">${Z(u)}</span>
8682
+ <button class="__crossx-copy-btn" data-copy="${w(String(u))}" title="Copy">${J}</button>` : `<span>${x}</span>`;
8673
8683
  l += `
8674
8684
  <div class="__crossx-td-row">
8675
8685
  <span class="__crossx-td-label">${w(_)}</span>
@@ -8677,11 +8687,11 @@ function is(i, e, r) {
8677
8687
  </div>`;
8678
8688
  }
8679
8689
  const p = document.createElement("div");
8680
- return p.id = M, p.innerHTML = `
8690
+ return p.id = F, p.innerHTML = `
8681
8691
  <div class="__crossx-card __crossx-card--migration __crossx-card--sign-typed" style="${H(t)}" role="dialog" aria-modal="true" aria-labelledby="__crossx-ttl">
8682
8692
  <div class="__crossx-header">
8683
8693
  <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>
8694
+ <button class="__crossx-close" id="__crossx-close-btn" aria-label="Close">${W}</button>
8685
8695
  </div>
8686
8696
  <hr class="__crossx-divider">
8687
8697
  <div class="__crossx-body">
@@ -8692,7 +8702,7 @@ function is(i, e, r) {
8692
8702
  </p>
8693
8703
  <div class="__crossx-addr-pill">
8694
8704
  ${Ge}
8695
- <span class="__crossx-addr-pill-text">${Q(i.from)}</span>
8705
+ <span class="__crossx-addr-pill-text">${Z(i.from)}</span>
8696
8706
  </div>
8697
8707
  <p class="__crossx-warning">${w((r == null ? void 0 : r.signature_warning) ?? "After you sign, changes or cancellations are not possible.")}</p>
8698
8708
  </div>
@@ -8733,7 +8743,7 @@ function ds(i, e, r, t) {
8733
8743
  ${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
8744
  </button>`;
8735
8745
  }).join(""), n = document.createElement("div");
8736
- return n.id = M, n.className = "__crossx-overlay--wallet-selector", n.innerHTML = `
8746
+ return n.id = F, n.className = "__crossx-overlay--wallet-selector", n.innerHTML = `
8737
8747
  <div class="__crossx-card __crossx-card--wallet-selector" style="${H(e)}" role="dialog" aria-modal="true" aria-labelledby="__crossx-ttl">
8738
8748
  <div class="__crossx-header">
8739
8749
  <span class="__crossx-wallet-sheet-handle" aria-hidden="true"></span>
@@ -8741,7 +8751,7 @@ function ds(i, e, r, t) {
8741
8751
  <p class="__crossx-title" id="__crossx-ttl">${w((t == null ? void 0 : t.wallet_selector_title) ?? "Select Connected Wallet")}</p>
8742
8752
  <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
8753
  </div>
8744
- <button class="__crossx-close" id="__crossx-close-btn" aria-label="Close">${B}</button>
8754
+ <button class="__crossx-close" id="__crossx-close-btn" aria-label="Close">${W}</button>
8745
8755
  </div>
8746
8756
  <hr class="__crossx-divider">
8747
8757
  <div class="__crossx-body __crossx-wallet-selector-body">
@@ -8767,7 +8777,7 @@ function ds(i, e, r, t) {
8767
8777
  }
8768
8778
  function ps(i, e) {
8769
8779
  const r = document.createElement("div");
8770
- r.id = M;
8780
+ r.id = F;
8771
8781
  const t = document.createElement("div");
8772
8782
  t.className = "__crossx-card __crossx-card--wallet-created", Kr(t, i), t.role = "dialog", t.ariaModal = "true", t.setAttribute("aria-labelledby", "__crossx-ttl");
8773
8783
  const s = document.createElement("div");
@@ -8777,7 +8787,7 @@ function ps(i, e) {
8777
8787
  const n = document.createElement("p");
8778
8788
  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
8789
  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);
8790
+ a.className = "__crossx-close", a.id = "__crossx-close-btn", a.type = "button", a.ariaLabel = "Close", a.innerHTML = W, s.append(o, n, a);
8781
8791
  const l = document.createElement("hr");
8782
8792
  l.className = "__crossx-divider";
8783
8793
  const p = document.createElement("div");
@@ -8842,14 +8852,14 @@ function gs(i, e = [], r) {
8842
8852
  <span class="__crossx-connect-other-desc __crossx-connect-other-summary">${xs(e)}</span>
8843
8853
  </span>
8844
8854
  </button>` : "", a = document.createElement("div");
8845
- return a.id = M, a.innerHTML = `
8855
+ return a.id = F, a.innerHTML = `
8846
8856
  <div class="__crossx-card __crossx-card--migration" style="${H(t)}" role="dialog" aria-modal="true" aria-labelledby="__crossx-ttl">
8847
8857
  <div class="__crossx-header">
8848
8858
  <div style="display:flex;flex-direction:column;gap:4px;padding-right:36px;">
8849
8859
  <p class="__crossx-title" id="__crossx-ttl" style="padding-right:0;">${w((r == null ? void 0 : r.login_selector_title) ?? Be)}</p>
8850
8860
  <p class="__crossx-subtitle">${w((r == null ? void 0 : r.login_selector_subtitle) ?? "Sign in instantly with your social account")}</p>
8851
8861
  </div>
8852
- <button class="__crossx-close" id="__crossx-close-btn" aria-label="Close">${B}</button>
8862
+ <button class="__crossx-close" id="__crossx-close-btn" aria-label="Close">${W}</button>
8853
8863
  </div>
8854
8864
  <hr class="__crossx-divider">
8855
8865
  <div class="__crossx-body">
@@ -8864,7 +8874,7 @@ function gs(i, e = [], r) {
8864
8874
  </button>
8865
8875
  </div>${n}
8866
8876
  <p class="__crossx-login-terms">
8867
- ${((r == null ? void 0 : r.login_selector_terms_template) ?? "By continuing, you agree to NEXUS {tos} and consent to its {pp}").replace("{tos}", `<a class="__crossx-login-terms-link" href="https://terms.crosstoken.io/docs/cross-terms-of-use" target="_blank" rel="noopener noreferrer">${w((r == null ? void 0 : r.login_selector_terms_tos) ?? "Terms of Service")}</a>`).replace("{pp}", `<a class="__crossx-login-terms-link" href="https://terms.crosstoken.io/docs/nexus-privacy-policy" target="_blank" rel="noopener noreferrer">${w((r == null ? void 0 : r.login_selector_terms_pp) ?? "Privacy Policy.")}</a>`)}
8877
+ ${((r == null ? void 0 : r.login_selector_terms_template) ?? "By continuing, you agree to NEXUS {tos} and consent to its {pp}").replace("{tos}", `<a class="__crossx-login-terms-link" href="https://terms.onechain.nexus/docs/terms-july-23-2026" target="_blank" rel="noopener noreferrer">${w((r == null ? void 0 : r.login_selector_terms_tos) ?? "Terms of Service")}</a>`).replace("{pp}", `<a class="__crossx-login-terms-link" href="https://terms.onechain.nexus/docs/pp-july-23-2026" target="_blank" rel="noopener noreferrer">${w((r == null ? void 0 : r.login_selector_terms_pp) ?? "Privacy Policy.")}</a>`)}
8868
8878
  </p>
8869
8879
  </div>
8870
8880
  </div>
@@ -8872,7 +8882,7 @@ function gs(i, e = [], r) {
8872
8882
  }
8873
8883
  function fs(i, e) {
8874
8884
  const r = i, t = document.createElement("div");
8875
- t.id = M;
8885
+ t.id = F;
8876
8886
  const s = w(e.message).replace(/\n/g, "<br>"), o = e.email ? `<div class="__crossx-session-account-card">
8877
8887
  <p class="__crossx-session-account-label">${w(e.accountLabel)}</p>
8878
8888
  <p class="__crossx-session-account-email">${w(e.email)}</p>
@@ -8881,7 +8891,7 @@ function fs(i, e) {
8881
8891
  <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
8892
  <div class="__crossx-header">
8883
8893
  <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>
8894
+ <button class="__crossx-close" id="__crossx-close-btn" aria-label="Close">${W}</button>
8885
8895
  </div>
8886
8896
  <hr class="__crossx-divider">
8887
8897
  <div class="__crossx-body" style="padding:20px 24px 24px;display:flex;flex-direction:column;gap:16px;">
@@ -8899,8 +8909,8 @@ function fs(i, e) {
8899
8909
  `, t;
8900
8910
  }
8901
8911
  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 = `
8912
+ 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");
8913
+ return o.id = F, o.innerHTML = `
8904
8914
  <div class="__crossx-card __crossx-card--migration" style="${H(r)}" role="dialog" aria-modal="true" aria-labelledby="__crossx-ttl">
8905
8915
  <div class="__crossx-header">
8906
8916
  <p class="__crossx-title" id="__crossx-ttl">Wallet Found on Social Account 🎉</p>
@@ -8914,7 +8924,7 @@ function ws(i, e = !0) {
8914
8924
  <p class="__crossx-mig-info-desc">It safely restores and integrates all your previous assets. Simply verify your PIN to get started.</p>
8915
8925
  </div>
8916
8926
  <button class="__crossx-recover-btn" id="__crossx-recover-btn">
8917
- <span class="__crossx-recover-icon">${Mr}</span>
8927
+ <span class="__crossx-recover-icon">${$r}</span>
8918
8928
  <span class="__crossx-recover-label">Import from Social Backup</span>
8919
8929
  </button>
8920
8930
  ${s}
@@ -8924,11 +8934,11 @@ function ws(i, e = !0) {
8924
8934
  }
8925
8935
  function ms(i, e) {
8926
8936
  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 = `
8937
+ return u.id = F, u.innerHTML = `
8928
8938
  <div class="__crossx-card __crossx-card--migration" style="${H(r)}" role="dialog" aria-modal="true" aria-labelledby="__crossx-ttl">
8929
8939
  <div class="__crossx-header">
8930
8940
  <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>
8941
+ <button class="__crossx-close" id="__crossx-close-btn" aria-label="Close">${W}</button>
8932
8942
  </div>
8933
8943
  <hr class="__crossx-divider">
8934
8944
  <div class="__crossx-pin-center">
@@ -8952,11 +8962,11 @@ function ys(i) {
8952
8962
  }
8953
8963
  function bs(i, e, r) {
8954
8964
  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 = `
8965
+ return a.id = F, a.innerHTML = `
8956
8966
  <div class="__crossx-card __crossx-card--migration" style="${H(t)}" role="dialog" aria-modal="true" aria-labelledby="__crossx-ttl">
8957
8967
  <div class="__crossx-header">
8958
8968
  <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>
8969
+ <button class="__crossx-close" id="__crossx-close-btn" aria-label="Close">${W}</button>
8960
8970
  </div>
8961
8971
  <hr class="__crossx-divider">
8962
8972
  <div class="__crossx-pin-center">
@@ -8993,7 +9003,7 @@ function vs(i) {
8993
9003
  <span class="__crossx-pin6-sheet-handle" aria-hidden="true"></span>
8994
9004
  <p class="__crossx-title" id="__crossx-ttl" style="padding-right:48px;">${w(i.title)}</p>
8995
9005
  <p class="__crossx-pw-subtitle">${w(i.headerSubtitle)}</p>
8996
- <button class="__crossx-close" id="__crossx-close-btn" aria-label="Close">${B}</button>
9006
+ <button class="__crossx-close" id="__crossx-close-btn" aria-label="Close">${W}</button>
8997
9007
  </div>
8998
9008
  <hr class="__crossx-divider">
8999
9009
  <div class="__crossx-pw-body">
@@ -9020,7 +9030,7 @@ function vs(i) {
9020
9030
  <div class="__crossx-home-indicator"></div>
9021
9031
  `;
9022
9032
  }
9023
- function Ne(i) {
9033
+ function Ce(i) {
9024
9034
  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
9035
  ${St}
9026
9036
  <span id="__crossx-pin6-lock-countdown"></span>
@@ -9058,7 +9068,7 @@ function Ne(i) {
9058
9068
  <span class="__crossx-pin6-sheet-handle" aria-hidden="true"></span>
9059
9069
  <p class="__crossx-title" id="__crossx-ttl" style="padding-right:48px;">${w(i.title)}</p>
9060
9070
  ${t}
9061
- <button class="__crossx-close" id="__crossx-close-btn" aria-label="Close">${B}</button>
9071
+ <button class="__crossx-close" id="__crossx-close-btn" aria-label="Close">${W}</button>
9062
9072
  </div>
9063
9073
  <hr class="__crossx-divider">
9064
9074
  <div class="__crossx-pin6-body"${r}>
@@ -9079,7 +9089,7 @@ function Ne(i) {
9079
9089
  }
9080
9090
  function lt(i, e) {
9081
9091
  const r = document.createElement("div");
9082
- return r.id = M, r.innerHTML = `
9092
+ return r.id = F, r.innerHTML = `
9083
9093
  <div class="__crossx-card __crossx-card--pin6" style="${H(i)}" role="dialog" aria-modal="true" aria-labelledby="__crossx-ttl">
9084
9094
  ${e}
9085
9095
  </div>
@@ -9097,87 +9107,87 @@ function Es(i) {
9097
9107
  return r > 0 ? `${r}h ${String(t).padStart(2, "0")}m` : `${String(t).padStart(2, "0")}:${String(s).padStart(2, "0")}`;
9098
9108
  }
9099
9109
  function Pe(i, e, r, t, s, o, n) {
9100
- var ze, qe;
9110
+ var ze, Ve;
9101
9111
  let a = !!(o && o > Date.now()), l = !1;
9102
9112
  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
9113
  b.dataset.digit = v, b.value = m;
9104
- }, S = (b) => {
9114
+ }, E = (b) => {
9105
9115
  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 = () => {
9116
+ }, S = (b) => b.dataset.digit ?? "", A = () => p().map(S).join(""), k = () => Array.from(i.querySelectorAll(".__crossx-pin6-dot")), T = () => {
9107
9117
  var I;
9108
9118
  const b = p(), v = k();
9109
- if (v.length && (v.forEach((R, O) => {
9110
- const $ = !!(b[O] && E(b[O]));
9119
+ if (v.length && (v.forEach((R, N) => {
9120
+ const $ = !!(b[N] && S(b[N]));
9111
9121
  R.classList.toggle("--filled", $), R.classList.toggle("--active", !1);
9112
9122
  }), !a && !l)) {
9113
- const R = b.findIndex(($) => !E($));
9123
+ const R = b.findIndex(($) => !S($));
9114
9124
  (I = v[R === -1 ? 5 : R]) == null || I.classList.add("--active");
9115
9125
  }
9116
- }, N = () => {
9126
+ }, O = () => {
9117
9127
  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) => {
9128
+ }, M = (b) => {
9119
9129
  a = b, p().forEach((v) => {
9120
9130
  v.disabled = b, v.classList.toggle("--locked", b);
9121
9131
  });
9122
- }, C = () => i.querySelector("#__crossx-pin6-attempt"), q = () => {
9132
+ }, G = () => i.querySelector("#__crossx-pin6-attempt"), P = () => {
9123
9133
  const b = u();
9124
9134
  b && (b.textContent = "");
9125
- }, z = () => n ?? "Your account will be locked after further failures.", P = () => i.querySelector("#__crossx-pin6-warning"), L = (b) => {
9135
+ }, ee = () => n ?? "Your account will be locked after further failures.", C = () => i.querySelector("#__crossx-pin6-warning"), L = (b) => {
9126
9136
  var I;
9127
- let v = P();
9137
+ let v = C();
9128
9138
  if (!v) {
9129
9139
  v = document.createElement("p"), v.className = "__crossx-pin6-warning", v.id = "__crossx-pin6-warning";
9130
9140
  const R = u();
9131
9141
  R ? R.insertAdjacentElement("afterend", v) : (I = f()) == null || I.appendChild(v);
9132
9142
  }
9133
9143
  v.textContent = b;
9134
- }, W = () => {
9135
- const b = P();
9144
+ }, U = () => {
9145
+ const b = C();
9136
9146
  b && (b.textContent = "");
9137
- }, ne = (b, v) => {
9147
+ }, ae = (b, v) => {
9138
9148
  var R;
9139
- let I = C();
9149
+ let I = G();
9140
9150
  if (!I) {
9141
9151
  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);
9152
+ const N = C() ?? u();
9153
+ N ? N.insertAdjacentElement("afterend", I) : (R = f()) == null || R.appendChild(I);
9144
9154
  }
9145
9155
  I.textContent = `${b}/${v}`;
9146
- }, ae = () => {
9147
- const b = C();
9156
+ }, pe = () => {
9157
+ const b = G();
9148
9158
  b && (b.textContent = "");
9149
- }, ge = (b) => {
9159
+ }, _e = (b) => {
9150
9160
  const v = u();
9151
9161
  v && (v.textContent = b);
9152
9162
  const I = _();
9153
- I == null || I.classList.add("--shake"), setTimeout(() => I == null ? void 0 : I.classList.remove("--shake"), 500), p().forEach(S), setTimeout(() => {
9163
+ I == null || I.classList.add("--shake"), setTimeout(() => I == null ? void 0 : I.classList.remove("--shake"), 500), p().forEach(E), setTimeout(() => {
9154
9164
  var R;
9155
9165
  (R = p()[0]) == null || R.focus(), T();
9156
9166
  }, 50);
9157
- }, ce = (b) => {
9167
+ }, he = (b) => {
9158
9168
  var $;
9159
- U(!0), p().forEach(S), N();
9169
+ M(!0), p().forEach(E), O();
9160
9170
  const v = u();
9161
9171
  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>`;
9172
+ const B = document.createElement("p");
9173
+ B.className = "__crossx-pin6-lock-msg", B.id = "__crossx-pin6-lock-msg", B.innerHTML = `${St}<span id="__crossx-pin6-lock-countdown"></span>`;
9164
9174
  const V = u();
9165
- V ? V.insertAdjacentElement("afterend", F) : ($ = f()) == null || $.appendChild(F);
9175
+ V ? V.insertAdjacentElement("afterend", B) : ($ = f()) == null || $.appendChild(B);
9166
9176
  }
9167
9177
  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)}`);
9178
+ var Q;
9179
+ const B = b - Date.now(), V = g();
9180
+ B <= 0 ? (clearInterval(R), M(!1), (Q = x()) == null || Q.remove(), v && (v.textContent = ""), O(), setTimeout(() => {
9181
+ var we;
9182
+ return (we = p()[0]) == null ? void 0 : we.focus();
9183
+ }, 50)) : V && (V.textContent = ` ${Es(B)}`);
9174
9184
  }, R = setInterval(I, 1e3);
9175
9185
  I();
9176
- const O = new MutationObserver(() => {
9177
- document.contains(i) || (clearInterval(R), O.disconnect());
9186
+ const N = new MutationObserver(() => {
9187
+ document.contains(i) || (clearInterval(R), N.disconnect());
9178
9188
  });
9179
- O.observe(document.body, { childList: !0, subtree: !1 });
9180
- }, Ee = async () => {
9189
+ N.observe(document.body, { childList: !0, subtree: !1 });
9190
+ }, te = async () => {
9181
9191
  if (a || l) return;
9182
9192
  const b = A();
9183
9193
  if (b.length === 6) {
@@ -9187,7 +9197,7 @@ function Pe(i, e, r, t, s, o, n) {
9187
9197
  try {
9188
9198
  if (s) {
9189
9199
  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()));
9200
+ 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
9201
  } else
9192
9202
  e(b);
9193
9203
  } catch (v) {
@@ -9199,76 +9209,76 @@ function Pe(i, e, r, t, s, o, n) {
9199
9209
  }
9200
9210
  }
9201
9211
  };
9202
- o && o > Date.now() ? ce(o) : setTimeout(() => {
9212
+ o && o > Date.now() ? he(o) : setTimeout(() => {
9203
9213
  var b;
9204
9214
  return (b = p()[0]) == null ? void 0 : b.focus();
9205
9215
  }, 100);
9206
9216
  const Ke = () => {
9207
9217
  if (a || l) return;
9208
- const b = p(), v = b.find((I) => !E(I)) ?? b[b.length - 1];
9218
+ const b = p(), v = b.find((I) => !S(I)) ?? b[b.length - 1];
9209
9219
  v == null || v.focus();
9210
9220
  };
9211
9221
  (ze = _()) == null || ze.addEventListener("click", (b) => {
9212
9222
  b.target.classList.contains("__crossx-pin6-box") || Ke();
9213
- }), (qe = f()) == null || qe.addEventListener("click", (b) => {
9223
+ }), (Ve = f()) == null || Ve.addEventListener("click", (b) => {
9214
9224
  const v = b.target;
9215
9225
  v.classList.contains("__crossx-pin6-box") || v.closest("button") || Ke();
9216
9226
  }), p().forEach((b, v) => {
9217
9227
  b.addEventListener("input", () => {
9218
9228
  var R;
9219
9229
  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);
9230
+ 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
9231
  }), b.addEventListener("keydown", (I) => {
9222
- var R, O;
9232
+ var R, N;
9223
9233
  if (I.key === "Backspace") {
9224
- if (I.preventDefault(), E(b))
9225
- S(b);
9234
+ if (I.preventDefault(), S(b))
9235
+ E(b);
9226
9236
  else if (v > 0) {
9227
9237
  const $ = p()[v - 1];
9228
- S($), $.focus();
9238
+ E($), $.focus();
9229
9239
  }
9230
9240
  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();
9241
+ } 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
9242
  }), b.addEventListener("paste", (I) => {
9233
- var $, F;
9243
+ var $, B;
9234
9244
  I.preventDefault();
9235
9245
  const R = ((($ = I.clipboardData) == null ? void 0 : $.getData("text")) ?? "").replace(/\D/g, "").slice(0, 6);
9236
9246
  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);
9247
+ const N = p();
9248
+ R.split("").forEach((V, Q) => {
9249
+ N[Q] && y(N[Q], V);
9250
+ }), (B = N[Math.min(R.length - 1, 5)]) == null || B.focus(), P(), T(), A().length === 6 && setTimeout(te, 80);
9241
9251
  }), b.addEventListener("focus", () => b.select());
9242
9252
  });
9243
- const _e = i.querySelector("#__crossx-pin6-numpad");
9244
- if (_e) {
9253
+ const ue = i.querySelector("#__crossx-pin6-numpad");
9254
+ if (ue) {
9245
9255
  let b = null;
9246
9256
  const v = () => {
9247
9257
  b && (b.classList.remove("--pressed"), b = null);
9248
9258
  };
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));
9259
+ ue.addEventListener("pointerdown", (R) => {
9260
+ const N = R.target.closest(".__crossx-pin6-numpad-key");
9261
+ !N || a || l || (v(), b = N, N.classList.add("--pressed"), N.setPointerCapture(R.pointerId));
9252
9262
  });
9253
9263
  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();
9264
+ const N = R.dataset.key;
9265
+ if (!N) return;
9266
+ if (N === "backspace") {
9267
+ const Q = [...p()].reverse().find((we) => S(we));
9268
+ Q && (E(Q), P()), T();
9259
9269
  return;
9260
9270
  }
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));
9271
+ if (!/^\d$/.test(N)) return;
9272
+ const B = p().find((V) => !S(V));
9273
+ B && (y(B, N), P(), T(), A().length === 6 && setTimeout(te, 80));
9264
9274
  };
9265
- _e.addEventListener("pointerup", (R) => {
9275
+ ue.addEventListener("pointerup", (R) => {
9266
9276
  if (!b) return;
9267
- const O = b;
9277
+ const N = b;
9268
9278
  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();
9279
+ const $ = N.getBoundingClientRect();
9280
+ R.clientX >= $.left && R.clientX <= $.right && R.clientY >= $.top && R.clientY <= $.bottom && !a && !l && I(N);
9281
+ }), ue.addEventListener("pointercancel", v), ue.addEventListener("pointerleave", v, !0), T(), o && o > Date.now() && O();
9272
9282
  }
9273
9283
  }
9274
9284
  const As = `<svg width="22" height="17" viewBox="0 0 22 17" fill="none" xmlns="http://www.w3.org/2000/svg">
@@ -9358,10 +9368,10 @@ class Rs {
9358
9368
  */
9359
9369
  showWalletSelector(e, r, t) {
9360
9370
  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);
9371
+ var S;
9372
+ K();
9373
+ const n = [...e], a = ds(n, this.tokens, t, this.messages), l = se();
9374
+ z(a);
9365
9375
  let p = !1;
9366
9376
  const _ = () => {
9367
9377
  p || (p = !0, a.remove(), l());
@@ -9375,8 +9385,8 @@ class Rs {
9375
9385
  (() => {
9376
9386
  a.querySelectorAll(".__crossx-wallet-item").forEach((A) => {
9377
9387
  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 });
9388
+ const k = A.dataset.walletAddress ?? "", T = parseInt(A.dataset.walletIndex ?? "0", 10), O = n.find((M) => M.index === T);
9389
+ x({ address: k, index: T, name: O == null ? void 0 : O.name });
9380
9390
  });
9381
9391
  });
9382
9392
  })();
@@ -9400,21 +9410,21 @@ class Rs {
9400
9410
  const k = A instanceof h && A.code === d.ADDRESS_LIMIT_EXCEEDED, T = this.resolveAddWalletErrorMessage(A);
9401
9411
  m && (m.textContent = T, m.hidden = !1), k ? (y.disabled = !0, y.setAttribute("aria-disabled", "true")) : y.disabled = !1, u = A;
9402
9412
  }
9403
- }), (E = a.querySelector("#__crossx-close-btn")) == null || E.addEventListener("click", g), a.addEventListener("click", (A) => {
9413
+ }), (S = a.querySelector("#__crossx-close-btn")) == null || S.addEventListener("click", g), a.addEventListener("click", (A) => {
9404
9414
  A.target === a && g();
9405
9415
  });
9406
- const S = (A) => {
9407
- A.key === "Escape" && (document.removeEventListener("keydown", S), g());
9416
+ const E = (A) => {
9417
+ A.key === "Escape" && (document.removeEventListener("keydown", E), g());
9408
9418
  };
9409
- document.addEventListener("keydown", S);
9419
+ document.addEventListener("keydown", E);
9410
9420
  });
9411
9421
  }
9412
9422
  showWalletCreatedPrompt() {
9413
9423
  return new Promise((e) => {
9414
9424
  var a, l;
9415
- G();
9416
- const r = ps(this.tokens, this.messages), t = re();
9417
- K(r);
9425
+ K();
9426
+ const r = ps(this.tokens, this.messages), t = se();
9427
+ z(r);
9418
9428
  let s = !1, o = null;
9419
9429
  const n = () => {
9420
9430
  s || (s = !0, o && document.removeEventListener("keydown", o), r.remove(), t(), e());
@@ -9436,7 +9446,7 @@ class Rs {
9436
9446
  resolveAddWalletErrorMessage(e) {
9437
9447
  const r = this.messages;
9438
9448
  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;
9449
+ const s = e.details, o = typeof (s == null ? void 0 : s.limit) == "number" ? s.limit : Ne;
9440
9450
  return ((r == null ? void 0 : r.wallet_selector_add_error_limit_exceeded) ?? "Account limit reached. Maximum {limit} accounts allowed.").replace("{limit}", String(o));
9441
9451
  }
9442
9452
  return (r == null ? void 0 : r.wallet_selector_add_error_generic) ?? "Failed to add a new account. Please try again.";
@@ -9449,13 +9459,13 @@ class Rs {
9449
9459
  showLoginSelector(e) {
9450
9460
  var t;
9451
9461
  const r = ((t = e == null ? void 0 : e.connectOtherWallets) == null ? void 0 : t.filter(
9452
- (s) => Object.values(ue).includes(s) && String(s).trim() !== ""
9462
+ (s) => Object.values(ge).includes(s) && String(s).trim() !== ""
9453
9463
  )) ?? [];
9454
9464
  return new Promise((s) => {
9455
9465
  var x, g, f, m;
9456
- G();
9457
- const o = gs(this.tokens, r, this.messages), n = re();
9458
- K(o);
9466
+ K();
9467
+ const o = gs(this.tokens, r, this.messages), n = se();
9468
+ z(o);
9459
9469
  const a = () => {
9460
9470
  o.remove(), n();
9461
9471
  }, l = (y) => {
@@ -9466,12 +9476,12 @@ class Rs {
9466
9476
  a(), s(null);
9467
9477
  };
9468
9478
  (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);
9479
+ const S = y.currentTarget.dataset.walletId ?? "";
9480
+ S && p(S);
9471
9481
  }), (m = o.querySelector("#__crossx-close-btn")) == null || m.addEventListener("click", _), o.addEventListener("click", (y) => {
9472
9482
  y.target === o && _();
9473
9483
  }), o.querySelectorAll(".__crossx-login-terms-link").forEach((y) => {
9474
- y.addEventListener("click", (S) => S.stopPropagation());
9484
+ y.addEventListener("click", (E) => E.stopPropagation());
9475
9485
  });
9476
9486
  const u = (y) => {
9477
9487
  y.key === "Escape" && (document.removeEventListener("keydown", u), _());
@@ -9482,7 +9492,7 @@ class Rs {
9482
9492
  showSessionAlert(e) {
9483
9493
  return new Promise((r) => {
9484
9494
  var _, u, x;
9485
- G();
9495
+ K();
9486
9496
  const t = this.messages, s = fs(this.tokens, {
9487
9497
  title: e.title,
9488
9498
  message: e.message,
@@ -9490,8 +9500,8 @@ class Rs {
9490
9500
  accountLabel: (t == null ? void 0 : t.session_alert_account_label) ?? "Account",
9491
9501
  signOutLabel: (t == null ? void 0 : t.session_alert_sign_out_button) ?? "Sign out",
9492
9502
  signInAgainLabel: (t == null ? void 0 : t.session_alert_sign_in_again_button) ?? "Sign in again"
9493
- }), o = re();
9494
- K(s);
9503
+ }), o = se();
9504
+ z(s);
9495
9505
  let n = !1;
9496
9506
  const a = () => {
9497
9507
  n || (n = !0, s.remove(), o());
@@ -9512,9 +9522,9 @@ class Rs {
9512
9522
  const r = (e == null ? void 0 : e.allowSkip) ?? !0;
9513
9523
  return new Promise((t) => {
9514
9524
  var a, l, p;
9515
- G();
9525
+ K();
9516
9526
  const s = ws(this.tokens, r);
9517
- K(s);
9527
+ z(s);
9518
9528
  const o = () => s.remove(), n = () => {
9519
9529
  o(), t("recover");
9520
9530
  };
@@ -9541,7 +9551,7 @@ class Rs {
9541
9551
  */
9542
9552
  showPinSetupPrompt(e) {
9543
9553
  return new Promise((r) => {
9544
- G();
9554
+ K();
9545
9555
  const t = this.messages, s = {
9546
9556
  title: (t == null ? void 0 : t.pin_setup_title) ?? "Create PIN",
9547
9557
  headerSubtitle: (t == null ? void 0 : t.pin_notice_header_subtitle) ?? "Required for transactions, PK/mnemonic export & account deletion.",
@@ -9560,13 +9570,13 @@ class Rs {
9560
9570
  title: (t == null ? void 0 : t.pin_setup_confirm_title) ?? "Confirm PIN",
9561
9571
  headerSubtitle: (t == null ? void 0 : t.pin_setup_header_subtitle) ?? "This PIN is used to authorize your transactions.",
9562
9572
  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);
9573
+ }, a = lt(this.tokens, vs(s)), l = se();
9574
+ z(a);
9565
9575
  let p = !1;
9566
9576
  const _ = () => {
9567
9577
  p || (p = !0, a.remove(), l());
9568
- }, u = (E) => {
9569
- _(), r(E);
9578
+ }, u = (S) => {
9579
+ _(), r(S);
9570
9580
  }, x = () => {
9571
9581
  _(), r(null);
9572
9582
  }, g = a.querySelector(".__crossx-card"), f = {
@@ -9575,67 +9585,67 @@ class Rs {
9575
9585
  repeatingDigit: (t == null ? void 0 : t.pin_validation_repeating_digit) ?? "Cannot use the same number 3+ times in a row.",
9576
9586
  sequential: (t == null ? void 0 : t.pin_validation_sequential) ?? "Sequential numbers (e.g., 123456) are not allowed.",
9577
9587
  alternatingPattern: (t == null ? void 0 : t.pin_validation_alternating_pattern) ?? "Repeating patterns (e.g., 121212) are not allowed."
9578
- }, m = (E) => {
9588
+ }, m = (S) => {
9579
9589
  var A;
9580
- g.innerHTML = Ne({
9590
+ g.innerHTML = Ce({
9581
9591
  title: n.title,
9582
9592
  headerSubtitle: n.headerSubtitle,
9583
9593
  subtitle: n.subtitle
9584
9594
  }), 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);
9595
+ k === S ? u(S) : y(o.mismatchError);
9586
9596
  }, x);
9587
- }, y = (E) => {
9597
+ }, y = (S) => {
9588
9598
  var A;
9589
- g.innerHTML = Ne({
9599
+ g.innerHTML = Ce({
9590
9600
  title: o.title,
9591
9601
  headerSubtitle: o.headerSubtitle,
9592
9602
  subtitle: o.subtitle,
9593
- errorMessage: E
9603
+ errorMessage: S
9594
9604
  }), this.applyPinKeyboardMode(g), (A = g.querySelector("#__crossx-close-btn")) == null || A.addEventListener("click", x), Pe(g, (k) => {
9595
9605
  const T = Ss(k, f);
9596
9606
  T ? y(T) : m(k);
9597
9607
  }, x);
9598
9608
  };
9599
9609
  (() => {
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();
9610
+ var ee;
9611
+ const S = Array.from(g.querySelectorAll(".__crossx-pw-notice-item")), A = g.querySelector("#__crossx-pin-notice-next"), k = /* @__PURE__ */ new Set();
9602
9612
  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) => {
9613
+ const T = A.dataset.nextLabel ?? "Next", O = A.dataset.submitLabel ?? "I Understand", M = () => {
9614
+ const C = k.size === S.length;
9615
+ A.classList.toggle("--disabled", !C), A.textContent = O || T;
9616
+ }, G = (C, L) => {
9607
9617
  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) => {
9618
+ const U = C.querySelector(`#__crossx-notice-check-${L}`);
9619
+ k.add(L), U.classList.add("--checked"), C.setAttribute("aria-checked", "true"), M();
9620
+ }, P = (C, L) => {
9611
9621
  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();
9622
+ const U = C.querySelector(`#__crossx-notice-check-${L}`);
9623
+ k.delete(L), U.classList.remove("--checked"), C.setAttribute("aria-checked", "false"), M();
9614
9624
  };
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));
9625
+ S.forEach((C) => {
9626
+ const L = parseInt(C.dataset.checkIndex ?? "0", 10);
9627
+ C.addEventListener("click", () => {
9628
+ k.has(L) ? P(C, L) : G(C, L);
9629
+ }), C.addEventListener("keydown", (U) => {
9630
+ (U.key === " " || U.key === "Enter") && (U.preventDefault(), k.has(L) ? P(C, L) : G(C, L));
9621
9631
  });
9622
9632
  }), A.addEventListener("click", () => {
9623
- if (k.size === E.length) {
9633
+ if (k.size === S.length) {
9624
9634
  y(e == null ? void 0 : e.errorMessage);
9625
9635
  return;
9626
9636
  }
9627
- const P = E.find((W) => {
9628
- const ne = parseInt(W.dataset.checkIndex ?? "0", 10);
9629
- return !k.has(ne);
9637
+ const C = S.find((U) => {
9638
+ const ae = parseInt(U.dataset.checkIndex ?? "0", 10);
9639
+ return !k.has(ae);
9630
9640
  });
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);
9641
+ if (!C) return;
9642
+ const L = parseInt(C.dataset.checkIndex ?? "0", 10);
9643
+ C.scrollIntoView({ behavior: "smooth", block: "nearest" }), C.classList.add("--highlight"), setTimeout(() => {
9644
+ C.classList.remove("--highlight"), G(C, L);
9635
9645
  }, 400);
9636
- }), (z = g.querySelector("#__crossx-close-btn")) == null || z.addEventListener("click", x);
9637
- })(), a.addEventListener("click", (E) => {
9638
- E.target === a && x();
9646
+ }), (ee = g.querySelector("#__crossx-close-btn")) == null || ee.addEventListener("click", x);
9647
+ })(), a.addEventListener("click", (S) => {
9648
+ S.target === a && x();
9639
9649
  });
9640
9650
  });
9641
9651
  }
@@ -9646,11 +9656,11 @@ class Rs {
9646
9656
  */
9647
9657
  showPinInputPrompt(e) {
9648
9658
  return new Promise((r, t) => {
9649
- var S;
9650
- G();
9659
+ var E;
9660
+ K();
9651
9661
  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
9662
  this.tokens,
9653
- Ne({
9663
+ Ce({
9654
9664
  title: n,
9655
9665
  headerSubtitle: a,
9656
9666
  errorMessage: e == null ? void 0 : e.errorMessage,
@@ -9659,20 +9669,20 @@ class Rs {
9659
9669
  attemptCount: e == null ? void 0 : e.attemptCount,
9660
9670
  maxAttempts: e == null ? void 0 : e.maxAttempts
9661
9671
  })
9662
- ), _ = re();
9663
- K(p);
9672
+ ), _ = se();
9673
+ z(p);
9664
9674
  let u = !1;
9665
9675
  const x = () => {
9666
9676
  u || (u = !0, p.remove(), _());
9667
- }, g = (E) => {
9668
- x(), r(E);
9677
+ }, g = (S) => {
9678
+ x(), r(S);
9669
9679
  }, f = () => {
9670
9680
  x(), r(null);
9671
- }, m = (E) => {
9672
- x(), t(E);
9681
+ }, m = (S) => {
9682
+ x(), t(S);
9673
9683
  }, 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();
9684
+ 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) => {
9685
+ S.target === p && f();
9676
9686
  });
9677
9687
  });
9678
9688
  }
@@ -9686,9 +9696,9 @@ class Rs {
9686
9696
  showRecoveryPinInputPrompt(e) {
9687
9697
  return new Promise((r) => {
9688
9698
  var l;
9689
- G();
9699
+ K();
9690
9700
  const t = ms(this.tokens, e);
9691
- K(t);
9701
+ z(t);
9692
9702
  const s = () => t.remove(), o = (p) => {
9693
9703
  s(), r(p);
9694
9704
  }, n = () => {
@@ -9708,9 +9718,9 @@ class Rs {
9708
9718
  showRecoveryPinLockedPrompt(e, r) {
9709
9719
  return new Promise((t) => {
9710
9720
  var p;
9711
- G();
9721
+ K();
9712
9722
  const { overlay: s, startCountdown: o } = bs(this.tokens, e, r);
9713
- K(s);
9723
+ z(s);
9714
9724
  const n = () => {
9715
9725
  l(), s.remove();
9716
9726
  }, a = () => {
@@ -9728,9 +9738,9 @@ class Rs {
9728
9738
  showTransactionComplete(e) {
9729
9739
  return new Promise((r) => {
9730
9740
  var a, l;
9731
- G();
9741
+ K();
9732
9742
  const t = es(e, this.tokens, this.messages);
9733
- K(t);
9743
+ z(t);
9734
9744
  const s = () => t.remove(), o = () => {
9735
9745
  s(), r();
9736
9746
  };
@@ -9757,9 +9767,9 @@ class Rs {
9757
9767
  */
9758
9768
  showTransactionProgress(e, r) {
9759
9769
  return new Promise((t) => {
9760
- G();
9770
+ K();
9761
9771
  const s = ts(e, this.tokens, this.messages);
9762
- K(s);
9772
+ z(s);
9763
9773
  const o = () => s.remove();
9764
9774
  let n = !1;
9765
9775
  const a = () => {
@@ -9782,11 +9792,11 @@ class Rs {
9782
9792
  requestConfirmation(e) {
9783
9793
  return new Promise((r) => {
9784
9794
  var p, _, u;
9785
- G();
9795
+ K();
9786
9796
  let t;
9787
9797
  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);
9798
+ const s = se();
9799
+ z(t);
9790
9800
  const o = () => {
9791
9801
  t.remove(), s();
9792
9802
  }, n = () => {
@@ -9802,7 +9812,7 @@ class Rs {
9802
9812
  f && ((m = navigator.clipboard) == null || m.writeText(f).catch(() => {
9803
9813
  }));
9804
9814
  });
9805
- }), Cr(t), t.addEventListener("click", (x) => {
9815
+ }), Nr(t), t.addEventListener("click", (x) => {
9806
9816
  x.target === t && a();
9807
9817
  });
9808
9818
  const l = (x) => {
@@ -9812,7 +9822,7 @@ class Rs {
9812
9822
  });
9813
9823
  }
9814
9824
  }
9815
- class Ns {
9825
+ class Cs {
9816
9826
  constructor(e, r, t, s = () => !1) {
9817
9827
  this.browserConfirmation = e, this.getBridge = r, this.getOrigin = t, this.isAuthenticatedViaRNBridge = s;
9818
9828
  }
@@ -10022,7 +10032,7 @@ Set the projectId field in SDKConfig when calling createCROSSxSDK().
10022
10032
  Example: createCROSSxSDK({ projectId: "your-project-id", ... })`
10023
10033
  );
10024
10034
  i.debug;
10025
- const r = pe.production, t = {
10035
+ const r = de.production, t = {
10026
10036
  ...i,
10027
10037
  oauthServiceUrl: r.oauthServiceUrl,
10028
10038
  authApiUrl: r.authApiUrl,
@@ -10036,9 +10046,9 @@ Example: createCROSSxSDK({ projectId: "your-project-id", ... })`
10036
10046
  "refresh_token이 평문 저장되지 않도록 세션 영속성이 제한됩니다.",
10037
10047
  "IndexedDB를 지원하는 브라우저 사용을 권장합니다."
10038
10048
  ), 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();
10049
+ const n = o ? new it(i.projectId) : new gr(), a = new yr(), l = new Er(), p = new ie(), _ = new Ps(), u = new pt();
10040
10050
  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(
10051
+ i.useMockWallet ? (c.log("[CROSSx] Mock Wallet Provider 사용"), x = new Ir(n, u)) : (c.log("[CROSSx] Remote Wallet Provider 사용"), x = new oe(
10042
10052
  s,
10043
10053
  n,
10044
10054
  l,
@@ -10047,36 +10057,36 @@ Example: createCROSSxSDK({ projectId: "your-project-id", ... })`
10047
10057
  ));
10048
10058
  let g = null;
10049
10059
  const f = () => {
10050
- var N;
10051
- return ((N = g == null ? void 0 : g.isAuthenticatedViaRNBridge) == null ? void 0 : N.call(g)) ?? !1;
10060
+ var O;
10061
+ return ((O = g == null ? void 0 : g.isAuthenticatedViaRNBridge) == null ? void 0 : O.call(g)) ?? !1;
10052
10062
  }, m = () => {
10053
- var N;
10054
- return (N = g == null ? void 0 : g.assertRNBridgeSessionActive) == null ? void 0 : N.call(g);
10063
+ var O;
10064
+ return (O = g == null ? void 0 : g.assertRNBridgeSessionActive) == null ? void 0 : O.call(g);
10055
10065
  };
10056
10066
  x = new kr(
10057
10067
  x,
10058
10068
  () => {
10059
- var N;
10060
- return (N = g == null ? void 0 : g.getRNBridge) == null ? void 0 : N.call(g);
10069
+ var O;
10070
+ return (O = g == null ? void 0 : g.getRNBridge) == null ? void 0 : O.call(g);
10061
10071
  },
10062
10072
  f,
10063
10073
  m,
10064
10074
  () => i.appName
10065
10075
  );
10066
- const y = new xe(s, l), S = new Rs(
10076
+ const y = new fe(s, l), E = new Rs(
10067
10077
  i.theme ?? "light",
10068
10078
  i.themeTokens,
10069
10079
  i.displayDecimals,
10070
10080
  i.pinKeyboard
10071
- ), E = new Ns(
10072
- S,
10081
+ ), S = new Cs(
10082
+ E,
10073
10083
  () => {
10074
- var N;
10075
- return (N = g == null ? void 0 : g.getRNBridge) == null ? void 0 : N.call(g);
10084
+ var O;
10085
+ return (O = g == null ? void 0 : g.getRNBridge) == null ? void 0 : O.call(g);
10076
10086
  },
10077
10087
  () => typeof window < "u" ? window.location.origin : "http://localhost",
10078
10088
  f
10079
- ), A = e != null && e.wrapConfirmation ? e.wrapConfirmation(E) : E, k = new Le(
10089
+ ), A = e != null && e.wrapConfirmation ? e.wrapConfirmation(S) : S, k = new Le(
10080
10090
  t,
10081
10091
  s,
10082
10092
  n,
@@ -10094,7 +10104,7 @@ Example: createCROSSxSDK({ projectId: "your-project-id", ... })`
10094
10104
  return T && typeof T.setFreshTokenCallback == "function" && T.setFreshTokenCallback(() => k.requestFreshFirebaseIdTokenFromBridge()), typeof window < "u" && (window.__crossxSDK = k), k;
10095
10105
  }
10096
10106
  function Hs(i) {
10097
- const e = Cs(i), r = Os(e), t = JSON.parse(r);
10107
+ const e = Ns(i), r = Os(e), t = JSON.parse(r);
10098
10108
  Ds(t);
10099
10109
  const { data: s } = t;
10100
10110
  return {
@@ -10109,7 +10119,7 @@ function Hs(i) {
10109
10119
  raw: t
10110
10120
  };
10111
10121
  }
10112
- function Cs(i) {
10122
+ function Ns(i) {
10113
10123
  if (i.includes("://") && i.includes("?")) {
10114
10124
  const e = new URL(i), r = e.searchParams.get("crossx_oauth_result");
10115
10125
  if (r) return r;
@@ -10151,14 +10161,14 @@ function Ds(i) {
10151
10161
  throw new Error("Deeplink data에 accessToken 필드가 없습니다");
10152
10162
  }
10153
10163
  export {
10154
- Mt as CONNECT_OTHER_WALLET_DISPLAY_ORDER,
10164
+ $t as CONNECT_OTHER_WALLET_DISPLAY_ORDER,
10155
10165
  h as CROSSxError,
10156
10166
  Ht as CROSSxEthereumProvider,
10157
10167
  Le as CROSSxSDK,
10158
10168
  Ws as ChainId,
10159
- ue as ConnectOtherWalletItem,
10169
+ ge as ConnectOtherWalletItem,
10160
10170
  d as ErrorCode,
10161
- Ce as MNEMONIC_ADDRESS_LIMIT,
10171
+ Ne as MNEMONIC_ADDRESS_LIMIT,
10162
10172
  pt as PinMemoryStore,
10163
10173
  Ps as TokenMemoryStore,
10164
10174
  Be as WALLET_BRAND_NAME,