@springmicro/auth 0.6.4 → 0.7.0

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.
Files changed (144) hide show
  1. package/.eslintrc.cjs +18 -18
  2. package/README.md +60 -60
  3. package/dist/{Index-64ac63ff-BZqOq8A-.js → Index-64ac63ff-ChMmeIY7.js} +1 -1
  4. package/dist/{Index-6c094240-MY1bN_-H.js → Index-6c094240-hn_S7Xeg.js} +1 -1
  5. package/dist/{Web3Auth-BZvmXZfr.js → Web3Auth-CGD96zai.js} +13692 -15050
  6. package/dist/alphawallet-B7eovdf-.js +0 -0
  7. package/dist/apexwallet-ysP20G9D.js +0 -0
  8. package/dist/atoken-BBnNTzcz.js +0 -0
  9. package/dist/bifrostwallet-CNNBO92h.js +0 -0
  10. package/dist/binance-DvPgAzCw.js +0 -0
  11. package/dist/bitget-DZOUrwgy.js +0 -0
  12. package/dist/bitpie-C_uxmEzw.js +0 -0
  13. package/dist/bitski-DpzkHNkv.js +0 -0
  14. package/dist/blockwallet-BL69cqkA.js +0 -0
  15. package/dist/brave-DnRzMQYW.js +0 -0
  16. package/dist/ccip-c78d2f16-DLcRlwod.js +0 -0
  17. package/dist/coin98wallet-CkFdOvXt.js +0 -0
  18. package/dist/coinbase-CaGNx5if.js +0 -0
  19. package/dist/core-9rK8tWud.js +0 -0
  20. package/dist/defiwallet-0AsgJBSy.js +0 -0
  21. package/dist/detected-CX_JZaUk.js +0 -0
  22. package/dist/echooo-CmaetT_Z.js +0 -0
  23. package/dist/enkrypt-BibtwvK7.js +0 -0
  24. package/dist/exodus-BxzkDWWP.js +0 -0
  25. package/dist/fordefi-CvKyVwhI.js +0 -0
  26. package/dist/foxwallet-D7c_LDTf.js +0 -0
  27. package/dist/frame-CDfNmjUy.js +0 -0
  28. package/dist/frontier-DqKNSj2z.js +0 -0
  29. package/dist/{hashMessage-DXQQ5wqb.js → hashMessage-Bdgmx0rg.js} +1 -1
  30. package/dist/huobiwallet-CxSwqa5L.js +0 -0
  31. package/dist/hyperpay-nmHE3WqM.js +0 -0
  32. package/dist/icon-2Zqy7pqQ.js +0 -0
  33. package/dist/icon-CGWI1Ies.js +0 -0
  34. package/dist/icon-C_O4nprO.js +0 -0
  35. package/dist/icon-DbgmZCnU.js +0 -0
  36. package/dist/icon-Dbjb6jc5.js +0 -0
  37. package/dist/icon-cAd7RhSC.js +0 -0
  38. package/dist/imtoken-yENtOTS3.js +0 -0
  39. package/dist/index-021f6a62-Zz543EDB.js +0 -0
  40. package/dist/index-40a497ea-Bn2mC0r7.js +0 -0
  41. package/dist/{index-BMS1BfQU.js → index-62liFLUM.js} +4 -4
  42. package/dist/{index-BwFS5ERT.js → index-BBx_mvyX.js} +1 -1
  43. package/dist/{index-CPg63-IP.js → index-C6leUA25.js} +2 -2
  44. package/dist/{index-CHbx8A-C.js → index-CAVvArYp.js} +2 -2
  45. package/dist/{index-wK6pELVV.js → index-Ct7cFdFm.js} +2 -2
  46. package/dist/{index-BcAl576H.js → index-DA32_Pfh.js} +770 -752
  47. package/dist/{index-D1pMMcC-.js → index-Dna0rycp.js} +1 -1
  48. package/dist/index.d.ts +0 -0
  49. package/dist/index.js +1 -1
  50. package/dist/index.umd.cjs +264 -273
  51. package/dist/infinitywallet-C8J4FUYw.js +0 -0
  52. package/dist/kayros-AIrUK1za.js +0 -0
  53. package/dist/keplr-CyLTca9B.js +0 -0
  54. package/dist/lif3wallet-C5D6r8pg.js +0 -0
  55. package/dist/liquality-nbCtErVq.js +0 -0
  56. package/dist/mathwallet-CWkivCXo.js +0 -0
  57. package/dist/meetone-kKmvI8md.js +0 -0
  58. package/dist/metamask-BN7yiDV1.js +0 -0
  59. package/dist/mykey-CQZ6UcLH.js +0 -0
  60. package/dist/native-FDN9oNjc.js +0 -0
  61. package/dist/{number-D6mr0b-k.js → number-C-98SESp.js} +1 -1
  62. package/dist/okxwallet-CJLVogh2.js +0 -0
  63. package/dist/oneInch-CciyZ4Pz.js +0 -0
  64. package/dist/onekey-Dal8kYjU.js +0 -0
  65. package/dist/opera-DnKg-TJU.js +0 -0
  66. package/dist/ownbit-BshJUVuW.js +0 -0
  67. package/dist/phantom-CJ8dIcov.js +0 -0
  68. package/dist/rabby-D4thTcd6.js +0 -0
  69. package/dist/rainbow-mXld6yWV.js +0 -0
  70. package/dist/roninwallet-ZyYrd-D1.js +0 -0
  71. package/dist/safeheron-Eg1Jb29V.js +0 -0
  72. package/dist/safepal-DVIKy94N.js +0 -0
  73. package/dist/sequence-BS2IbtDg.js +0 -0
  74. package/dist/stablewallet-jyB079Wb.js +0 -0
  75. package/dist/status-FrAvQjfn.js +0 -0
  76. package/dist/subwallet-DMvFqKyY.js +0 -0
  77. package/dist/talisman-Bp8zUXqB.js +0 -0
  78. package/dist/tallywallet-B4OS9nIr.js +0 -0
  79. package/dist/tokenary-C7jjcbQa.js +0 -0
  80. package/dist/tokenpocket-9ZRPmAFA.js +0 -0
  81. package/dist/tp-V2em5bdl.js +0 -0
  82. package/dist/transactionRequest-be6a8ea9-CUKWo5mx.js +0 -0
  83. package/dist/trust-SgHubMq7.js +0 -0
  84. package/dist/xdefi-COVIyGz4.js +0 -0
  85. package/dist/zeal-DxHbDqm0.js +0 -0
  86. package/dist/zerion-BfW0UElc.js +0 -0
  87. package/dist/zodiacpilot-CrId6F4w.js +0 -0
  88. package/index.html +13 -13
  89. package/package.json +2 -2
  90. package/src/auth/config.ts +0 -0
  91. package/src/components/SignUp.tsx +0 -0
  92. package/src/components/forms/AgreementModal.tsx +88 -88
  93. package/src/components/forms/CaptchaController.tsx +94 -94
  94. package/src/components/forms/CaptchaModal.jsx +171 -171
  95. package/src/components/forms/CaptchaWidget.jsx +146 -146
  96. package/src/components/forms/PasswordChecker.ts +88 -88
  97. package/src/components/forms/SendCodeInput.tsx +0 -0
  98. package/src/components/forms/SignUpFormItem.tsx +0 -0
  99. package/src/components/forms/util/application-api.ts +0 -0
  100. package/src/components/forms/util/auth-api.ts +198 -198
  101. package/src/components/forms/util/auth-util.tsx +346 -346
  102. package/src/components/forms/util/core.ts +493 -493
  103. package/src/components/forms/util/invitation-api.ts +132 -132
  104. package/src/components/forms/util/provider.tsx +603 -603
  105. package/src/components/forms/util/user-api.ts +0 -0
  106. package/src/components/provider/AdfsLoginButton.jsx +38 -38
  107. package/src/components/provider/AlipayLoginButton.jsx +38 -38
  108. package/src/components/provider/AppleLoginButton.jsx +38 -38
  109. package/src/components/provider/AzureADB2CLoginButton.jsx +38 -38
  110. package/src/components/provider/AzureADLoginButton.jsx +38 -38
  111. package/src/components/provider/BaiduLoginButton.jsx +38 -38
  112. package/src/components/provider/BilibiliLoginButton.jsx +37 -37
  113. package/src/components/provider/CasdoorLoginButton.jsx +38 -38
  114. package/src/components/provider/DingTalkLoginButton.jsx +37 -37
  115. package/src/components/provider/DouyinLoginButton.jsx +38 -38
  116. package/src/components/provider/FacebookLoginButton.jsx +37 -37
  117. package/src/components/provider/GitHubLoginButton.jsx +37 -37
  118. package/src/components/provider/GitLabLoginButton.jsx +38 -38
  119. package/src/components/provider/GiteeLoginButton.jsx +34 -34
  120. package/src/components/provider/GoogleLoginButton.jsx +68 -68
  121. package/src/components/provider/InfoflowLoginButton.jsx +38 -38
  122. package/src/components/provider/LarkLoginButton.jsx +38 -38
  123. package/src/components/provider/LinkedInLoginButton.jsx +37 -37
  124. package/src/components/provider/LoginButton.jsx +33 -33
  125. package/src/components/provider/OktaLoginButton.jsx +38 -38
  126. package/src/components/provider/Provider.jsx +3 -3
  127. package/src/components/provider/ProviderButton.jsx +327 -327
  128. package/src/components/provider/QqLoginButton.jsx +31 -31
  129. package/src/components/provider/SelfLoginButton.jsx +47 -47
  130. package/src/components/provider/SlackLoginButton.jsx +38 -38
  131. package/src/components/provider/SteamLoginButton.jsx +38 -38
  132. package/src/components/provider/WeComLoginButton.jsx +34 -34
  133. package/src/components/provider/Web3Auth.jsx +365 -365
  134. package/src/components/provider/WechatLoginButton.jsx +37 -37
  135. package/src/components/provider/WeiboLoginButton.jsx +34 -34
  136. package/src/components/util.tsx +0 -0
  137. package/src/i18n/en/signup.json +48 -48
  138. package/src/i18n/index.ts +17 -17
  139. package/src/index.tsx +0 -0
  140. package/src/vite-env.d.ts +1 -1
  141. package/tsconfig.json +23 -23
  142. package/tsconfig.node.json +10 -10
  143. package/vite.config.ts +33 -33
  144. package/springmicro-auth-0.6.1.tgz +0 -0
@@ -1,8 +1,8 @@
1
- import { bH as Xi, bI as qt, bJ as es, bK as Z, bL as de, bM as Wn, bN as Sa } from "./Web3Auth-BZvmXZfr.js";
2
- var ts = {}, gt = {}, Kt = {};
1
+ import { bH as es, bI as qt, bJ as ts, bK as Z, bL as Un, bM as Ca } from "./Web3Auth-CGD96zai.js";
2
+ var rs = {}, gt = {}, Kt = {};
3
3
  Object.defineProperty(Kt, "__esModule", { value: !0 });
4
4
  Kt.walletLogo = void 0;
5
- const Ca = (e, t) => {
5
+ const xa = (e, t) => {
6
6
  let r;
7
7
  switch (e) {
8
8
  case "standard":
@@ -21,8 +21,8 @@ const Ca = (e, t) => {
21
21
  return r = t, `data:image/svg+xml,%3Csvg width='${t}' height='${r}' viewBox='0 0 1024 1024' fill='none' xmlns='http://www.w3.org/2000/svg'%3E %3Crect width='1024' height='1024' fill='%230052FF'/%3E %3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M152 512C152 710.823 313.177 872 512 872C710.823 872 872 710.823 872 512C872 313.177 710.823 152 512 152C313.177 152 152 313.177 152 512ZM420 396C406.745 396 396 406.745 396 420V604C396 617.255 406.745 628 420 628H604C617.255 628 628 617.255 628 604V420C628 406.745 617.255 396 604 396H420Z' fill='white'/%3E %3C/svg%3E `;
22
22
  }
23
23
  };
24
- Kt.walletLogo = Ca;
25
- var zt = {}, rs = { exports: {} };
24
+ Kt.walletLogo = xa;
25
+ var zt = {}, ns = { exports: {} };
26
26
  (function(e) {
27
27
  var t = Object.prototype.hasOwnProperty, r = "~";
28
28
  function n() {
@@ -126,8 +126,8 @@ var zt = {}, rs = { exports: {} };
126
126
  var p;
127
127
  return d ? (p = r ? r + d : d, this._events[p] && a(this, p)) : (this._events = new n(), this._eventsCount = 0), this;
128
128
  }, o.prototype.off = o.prototype.removeListener, o.prototype.addListener = o.prototype.on, o.prefixed = r, o.EventEmitter = o, e.exports = o;
129
- })(rs);
130
- var xa = rs.exports, ye = {}, Ae = {};
129
+ })(ns);
130
+ var ka = ns.exports, ye = {}, Ae = {};
131
131
  Object.defineProperty(Ae, "__esModule", { value: !0 });
132
132
  Ae.errorValues = Ae.standardErrorCodes = void 0;
133
133
  Ae.standardErrorCodes = {
@@ -223,7 +223,7 @@ Ae.errorValues = {
223
223
  message: "Unrecognized chain ID."
224
224
  }
225
225
  };
226
- var Vt = {}, Un = {};
226
+ var Vt = {}, Hn = {};
227
227
  (function(e) {
228
228
  Object.defineProperty(e, "__esModule", { value: !0 }), e.serialize = e.getErrorCode = e.isValidCode = e.getMessageFromCode = e.JSON_RPC_SERVER_ERROR_MESSAGE = void 0;
229
229
  const t = Ae, r = "Unspecified error message.";
@@ -279,10 +279,10 @@ var Vt = {}, Un = {};
279
279
  function h(_, y) {
280
280
  return typeof _ == "object" && _ !== null && y in _ && typeof _[y] == "string";
281
281
  }
282
- })(Un);
282
+ })(Hn);
283
283
  Object.defineProperty(Vt, "__esModule", { value: !0 });
284
284
  Vt.standardErrors = void 0;
285
- const Y = Ae, ns = Un;
285
+ const Y = Ae, is = Hn;
286
286
  Vt.standardErrors = {
287
287
  rpc: {
288
288
  parse: (e) => ae(Y.standardErrorCodes.rpc.parse, e),
@@ -318,19 +318,19 @@ Vt.standardErrors = {
318
318
  const { code: t, message: r, data: n } = e;
319
319
  if (!r || typeof r != "string")
320
320
  throw new Error('"message" must be a nonempty string');
321
- return new as(t, r, n);
321
+ return new os(t, r, n);
322
322
  }
323
323
  }
324
324
  };
325
325
  function ae(e, t) {
326
- const [r, n] = is(t);
327
- return new ss(e, r || (0, ns.getMessageFromCode)(e), n);
326
+ const [r, n] = ss(t);
327
+ return new as(e, r || (0, is.getMessageFromCode)(e), n);
328
328
  }
329
329
  function Ze(e, t) {
330
- const [r, n] = is(t);
331
- return new as(e, r || (0, ns.getMessageFromCode)(e), n);
330
+ const [r, n] = ss(t);
331
+ return new os(e, r || (0, is.getMessageFromCode)(e), n);
332
332
  }
333
- function is(e) {
333
+ function ss(e) {
334
334
  if (e) {
335
335
  if (typeof e == "string")
336
336
  return [e];
@@ -343,7 +343,7 @@ function is(e) {
343
343
  }
344
344
  return [];
345
345
  }
346
- class ss extends Error {
346
+ class as extends Error {
347
347
  constructor(t, r, n) {
348
348
  if (!Number.isInteger(t))
349
349
  throw new Error('"code" must be an integer.');
@@ -352,18 +352,18 @@ class ss extends Error {
352
352
  super(r), this.code = t, n !== void 0 && (this.data = n);
353
353
  }
354
354
  }
355
- class as extends ss {
355
+ class os extends as {
356
356
  /**
357
357
  * Create an Ethereum Provider JSON-RPC error.
358
358
  * `code` must be an integer in the 1000 <= 4999 range.
359
359
  */
360
360
  constructor(t, r, n) {
361
- if (!ka(t))
361
+ if (!Ra(t))
362
362
  throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');
363
363
  super(t, r, n);
364
364
  }
365
365
  }
366
- function ka(e) {
366
+ function Ra(e) {
367
367
  return Number.isInteger(e) && e >= 1e3 && e <= 4999;
368
368
  }
369
369
  (function(e) {
@@ -380,33 +380,33 @@ function ka(e) {
380
380
  var Gt = {}, at = {};
381
381
  Object.defineProperty(at, "__esModule", { value: !0 });
382
382
  at.isErrorResponse = void 0;
383
- function Ra(e) {
383
+ function Ia(e) {
384
384
  return e.errorMessage !== void 0;
385
385
  }
386
- at.isErrorResponse = Ra;
386
+ at.isErrorResponse = Ia;
387
387
  var He = {};
388
388
  Object.defineProperty(He, "__esModule", { value: !0 });
389
389
  He.LIB_VERSION = void 0;
390
390
  He.LIB_VERSION = "4.0.3";
391
391
  Object.defineProperty(Gt, "__esModule", { value: !0 });
392
392
  Gt.serializeError = void 0;
393
- const Ia = at, Ma = He, Aa = Ae, La = Un;
394
- function Ta(e, t) {
395
- const r = (0, La.serialize)(Pa(e), {
393
+ const Ma = at, Aa = He, La = Ae, Ta = Hn;
394
+ function Pa(e, t) {
395
+ const r = (0, Ta.serialize)(Na(e), {
396
396
  shouldIncludeStack: !0
397
397
  }), n = new URL("https://docs.cloud.coinbase.com/wallet-sdk/docs/errors");
398
- n.searchParams.set("version", Ma.LIB_VERSION), n.searchParams.set("code", r.code.toString());
399
- const i = Na(r.data, t);
398
+ n.searchParams.set("version", Aa.LIB_VERSION), n.searchParams.set("code", r.code.toString());
399
+ const i = Oa(r.data, t);
400
400
  return i && n.searchParams.set("method", i), n.searchParams.set("message", r.message), Object.assign(Object.assign({}, r), { docUrl: n.href });
401
401
  }
402
- Gt.serializeError = Ta;
403
- function Pa(e) {
402
+ Gt.serializeError = Pa;
403
+ function Na(e) {
404
404
  return typeof e == "string" ? {
405
405
  message: e,
406
- code: Aa.standardErrorCodes.rpc.internal
407
- } : (0, Ia.isErrorResponse)(e) ? Object.assign(Object.assign({}, e), { message: e.errorMessage, code: e.errorCode, data: { method: e.method } }) : e;
406
+ code: La.standardErrorCodes.rpc.internal
407
+ } : (0, Ma.isErrorResponse)(e) ? Object.assign(Object.assign({}, e), { message: e.errorMessage, code: e.errorCode, data: { method: e.method } }) : e;
408
408
  }
409
- function Na(e, t) {
409
+ function Oa(e, t) {
410
410
  const r = e == null ? void 0 : e.method;
411
411
  if (r)
412
412
  return r;
@@ -437,79 +437,79 @@ J.RegExpString = vt();
437
437
  var M = {};
438
438
  Object.defineProperty(M, "__esModule", { value: !0 });
439
439
  M.areAddressArraysEqual = M.getFavicon = M.range = M.isBigNumber = M.ensureParsedJSONObject = M.ensureBigInt = M.ensureRegExpString = M.ensureIntNumber = M.ensureBuffer = M.ensureAddressString = M.ensureEvenLengthHexString = M.ensureHexString = M.isHexString = M.prepend0x = M.strip0x = M.has0xPrefix = M.hexStringFromIntNumber = M.intNumberFromHexString = M.bigIntStringFromBigInt = M.hexStringFromBuffer = M.hexStringToUint8Array = M.uint8ArrayToHex = M.randomBytesHex = void 0;
440
- const $e = ye, ce = J, os = /^[0-9]*$/, cs = /^[a-f0-9]*$/;
441
- function Oa(e) {
442
- return ls(crypto.getRandomValues(new Uint8Array(e)));
440
+ const $e = ye, ce = J, cs = /^[0-9]*$/, ls = /^[a-f0-9]*$/;
441
+ function Ba(e) {
442
+ return us(crypto.getRandomValues(new Uint8Array(e)));
443
443
  }
444
- M.randomBytesHex = Oa;
445
- function ls(e) {
444
+ M.randomBytesHex = Ba;
445
+ function us(e) {
446
446
  return [...e].map((t) => t.toString(16).padStart(2, "0")).join("");
447
447
  }
448
- M.uint8ArrayToHex = ls;
449
- function Ba(e) {
448
+ M.uint8ArrayToHex = us;
449
+ function ja(e) {
450
450
  return new Uint8Array(e.match(/.{1,2}/g).map((t) => parseInt(t, 16)));
451
451
  }
452
- M.hexStringToUint8Array = Ba;
453
- function ja(e, t = !1) {
452
+ M.hexStringToUint8Array = ja;
453
+ function Wa(e, t = !1) {
454
454
  const r = e.toString("hex");
455
455
  return (0, ce.HexString)(t ? `0x${r}` : r);
456
456
  }
457
- M.hexStringFromBuffer = ja;
458
- function Wa(e) {
457
+ M.hexStringFromBuffer = Wa;
458
+ function Ua(e) {
459
459
  return (0, ce.BigIntString)(e.toString(10));
460
460
  }
461
- M.bigIntStringFromBigInt = Wa;
462
- function Ua(e) {
461
+ M.bigIntStringFromBigInt = Ua;
462
+ function Ha(e) {
463
463
  return (0, ce.IntNumber)(Number(BigInt(wt(e, !0))));
464
464
  }
465
- M.intNumberFromHexString = Ua;
466
- function Ha(e) {
465
+ M.intNumberFromHexString = Ha;
466
+ function $a(e) {
467
467
  return (0, ce.HexString)(`0x${BigInt(e).toString(16)}`);
468
468
  }
469
- M.hexStringFromIntNumber = Ha;
470
- function Hn(e) {
469
+ M.hexStringFromIntNumber = $a;
470
+ function $n(e) {
471
471
  return e.startsWith("0x") || e.startsWith("0X");
472
472
  }
473
- M.has0xPrefix = Hn;
473
+ M.has0xPrefix = $n;
474
474
  function Zt(e) {
475
- return Hn(e) ? e.slice(2) : e;
475
+ return $n(e) ? e.slice(2) : e;
476
476
  }
477
477
  M.strip0x = Zt;
478
- function us(e) {
479
- return Hn(e) ? `0x${e.slice(2)}` : `0x${e}`;
478
+ function ds(e) {
479
+ return $n(e) ? `0x${e.slice(2)}` : `0x${e}`;
480
480
  }
481
- M.prepend0x = us;
481
+ M.prepend0x = ds;
482
482
  function mt(e) {
483
483
  if (typeof e != "string")
484
484
  return !1;
485
485
  const t = Zt(e).toLowerCase();
486
- return cs.test(t);
486
+ return ls.test(t);
487
487
  }
488
488
  M.isHexString = mt;
489
- function ds(e, t = !1) {
489
+ function hs(e, t = !1) {
490
490
  if (typeof e == "string") {
491
491
  const r = Zt(e).toLowerCase();
492
- if (cs.test(r))
492
+ if (ls.test(r))
493
493
  return (0, ce.HexString)(t ? `0x${r}` : r);
494
494
  }
495
495
  throw $e.standardErrors.rpc.invalidParams(`"${String(e)}" is not a hexadecimal string`);
496
496
  }
497
- M.ensureHexString = ds;
497
+ M.ensureHexString = hs;
498
498
  function wt(e, t = !1) {
499
- let r = ds(e, !1);
499
+ let r = hs(e, !1);
500
500
  return r.length % 2 === 1 && (r = (0, ce.HexString)(`0${r}`)), t ? (0, ce.HexString)(`0x${r}`) : r;
501
501
  }
502
502
  M.ensureEvenLengthHexString = wt;
503
- function $a(e) {
503
+ function Fa(e) {
504
504
  if (typeof e == "string") {
505
505
  const t = Zt(e).toLowerCase();
506
506
  if (mt(t) && t.length === 40)
507
- return (0, ce.AddressString)(us(t));
507
+ return (0, ce.AddressString)(ds(t));
508
508
  }
509
509
  throw $e.standardErrors.rpc.invalidParams(`Invalid Ethereum address: ${String(e)}`);
510
510
  }
511
- M.ensureAddressString = $a;
512
- function Fa(e) {
511
+ M.ensureAddressString = Fa;
512
+ function qa(e) {
513
513
  if (Buffer.isBuffer(e))
514
514
  return e;
515
515
  if (typeof e == "string") {
@@ -521,79 +521,79 @@ function Fa(e) {
521
521
  }
522
522
  throw $e.standardErrors.rpc.invalidParams(`Not binary data: ${String(e)}`);
523
523
  }
524
- M.ensureBuffer = Fa;
525
- function hs(e) {
524
+ M.ensureBuffer = qa;
525
+ function fs(e) {
526
526
  if (typeof e == "number" && Number.isInteger(e))
527
527
  return (0, ce.IntNumber)(e);
528
528
  if (typeof e == "string") {
529
- if (os.test(e))
529
+ if (cs.test(e))
530
530
  return (0, ce.IntNumber)(Number(e));
531
531
  if (mt(e))
532
532
  return (0, ce.IntNumber)(Number(BigInt(wt(e, !0))));
533
533
  }
534
534
  throw $e.standardErrors.rpc.invalidParams(`Not an integer: ${String(e)}`);
535
535
  }
536
- M.ensureIntNumber = hs;
537
- function qa(e) {
536
+ M.ensureIntNumber = fs;
537
+ function Ka(e) {
538
538
  if (e instanceof RegExp)
539
539
  return (0, ce.RegExpString)(e.toString());
540
540
  throw $e.standardErrors.rpc.invalidParams(`Not a RegExp: ${String(e)}`);
541
541
  }
542
- M.ensureRegExpString = qa;
543
- function Ka(e) {
544
- if (e !== null && (typeof e == "bigint" || fs(e)))
542
+ M.ensureRegExpString = Ka;
543
+ function za(e) {
544
+ if (e !== null && (typeof e == "bigint" || _s(e)))
545
545
  return BigInt(e.toString(10));
546
546
  if (typeof e == "number")
547
- return BigInt(hs(e));
547
+ return BigInt(fs(e));
548
548
  if (typeof e == "string") {
549
- if (os.test(e))
549
+ if (cs.test(e))
550
550
  return BigInt(e);
551
551
  if (mt(e))
552
552
  return BigInt(wt(e, !0));
553
553
  }
554
554
  throw $e.standardErrors.rpc.invalidParams(`Not an integer: ${String(e)}`);
555
555
  }
556
- M.ensureBigInt = Ka;
557
- function za(e) {
556
+ M.ensureBigInt = za;
557
+ function Va(e) {
558
558
  if (typeof e == "string")
559
559
  return JSON.parse(e);
560
560
  if (typeof e == "object")
561
561
  return e;
562
562
  throw $e.standardErrors.rpc.invalidParams(`Not a JSON string or an object: ${String(e)}`);
563
563
  }
564
- M.ensureParsedJSONObject = za;
565
- function fs(e) {
564
+ M.ensureParsedJSONObject = Va;
565
+ function _s(e) {
566
566
  if (e == null || typeof e.constructor != "function")
567
567
  return !1;
568
568
  const { constructor: t } = e;
569
569
  return typeof t.config == "function" && typeof t.EUCLID == "number";
570
570
  }
571
- M.isBigNumber = fs;
572
- function Va(e, t) {
571
+ M.isBigNumber = _s;
572
+ function Ga(e, t) {
573
573
  return Array.from({ length: t - e }, (r, n) => e + n);
574
574
  }
575
- M.range = Va;
576
- function Ga() {
575
+ M.range = Ga;
576
+ function Za() {
577
577
  const e = document.querySelector('link[sizes="192x192"]') || document.querySelector('link[sizes="180x180"]') || document.querySelector('link[rel="icon"]') || document.querySelector('link[rel="shortcut icon"]'), { protocol: t, host: r } = document.location, n = e ? e.getAttribute("href") : null;
578
578
  return !n || n.startsWith("javascript:") || n.startsWith("vbscript:") ? null : n.startsWith("http://") || n.startsWith("https://") || n.startsWith("data:") ? n : n.startsWith("//") ? t + n : `${t}//${r}${n}`;
579
579
  }
580
- M.getFavicon = Ga;
581
- function Za(e, t) {
580
+ M.getFavicon = Za;
581
+ function Ya(e, t) {
582
582
  return e.length === t.length && e.every((r, n) => r === t[n]);
583
583
  }
584
- M.areAddressArraysEqual = Za;
584
+ M.areAddressArraysEqual = Ya;
585
585
  var pe = {}, Yt = {}, Jt = {}, z = {};
586
586
  Object.defineProperty(z, "__esModule", { value: !0 });
587
587
  z.decryptContent = z.encryptContent = z.importKeyFromHexString = z.exportKeyToHexString = z.decrypt = z.encrypt = z.deriveSharedSecret = z.generateKeyPair = void 0;
588
- const _s = M;
589
- async function Ya() {
588
+ const ps = M;
589
+ async function Ja() {
590
590
  return crypto.subtle.generateKey({
591
591
  name: "ECDH",
592
592
  namedCurve: "P-256"
593
593
  }, !0, ["deriveKey"]);
594
594
  }
595
- z.generateKeyPair = Ya;
596
- async function Ja(e, t) {
595
+ z.generateKeyPair = Ja;
596
+ async function Qa(e, t) {
597
597
  return crypto.subtle.deriveKey({
598
598
  name: "ECDH",
599
599
  public: t
@@ -602,24 +602,24 @@ async function Ja(e, t) {
602
602
  length: 256
603
603
  }, !1, ["encrypt", "decrypt"]);
604
604
  }
605
- z.deriveSharedSecret = Ja;
606
- async function ps(e, t) {
605
+ z.deriveSharedSecret = Qa;
606
+ async function gs(e, t) {
607
607
  const r = crypto.getRandomValues(new Uint8Array(12)), n = await crypto.subtle.encrypt({
608
608
  name: "AES-GCM",
609
609
  iv: r
610
610
  }, e, new TextEncoder().encode(t));
611
611
  return { iv: r, cipherText: n };
612
612
  }
613
- z.encrypt = ps;
614
- async function gs(e, { iv: t, cipherText: r }) {
613
+ z.encrypt = gs;
614
+ async function bs(e, { iv: t, cipherText: r }) {
615
615
  const n = await crypto.subtle.decrypt({
616
616
  name: "AES-GCM",
617
617
  iv: t
618
618
  }, e, r);
619
619
  return new TextDecoder().decode(n);
620
620
  }
621
- z.decrypt = gs;
622
- function bs(e) {
621
+ z.decrypt = bs;
622
+ function ys(e) {
623
623
  switch (e) {
624
624
  case "public":
625
625
  return "spki";
@@ -627,33 +627,33 @@ function bs(e) {
627
627
  return "pkcs8";
628
628
  }
629
629
  }
630
- async function Qa(e, t) {
631
- const r = bs(e), n = await crypto.subtle.exportKey(r, t);
632
- return (0, _s.uint8ArrayToHex)(new Uint8Array(n));
633
- }
634
- z.exportKeyToHexString = Qa;
635
630
  async function Xa(e, t) {
636
- const r = bs(e), n = (0, _s.hexStringToUint8Array)(t).buffer;
631
+ const r = ys(e), n = await crypto.subtle.exportKey(r, t);
632
+ return (0, ps.uint8ArrayToHex)(new Uint8Array(n));
633
+ }
634
+ z.exportKeyToHexString = Xa;
635
+ async function eo(e, t) {
636
+ const r = ys(e), n = (0, ps.hexStringToUint8Array)(t).buffer;
637
637
  return await crypto.subtle.importKey(r, n, {
638
638
  name: "ECDH",
639
639
  namedCurve: "P-256"
640
640
  }, !0, e === "private" ? ["deriveKey"] : []);
641
641
  }
642
- z.importKeyFromHexString = Xa;
643
- async function eo(e, t) {
642
+ z.importKeyFromHexString = eo;
643
+ async function to(e, t) {
644
644
  const r = JSON.stringify(e, (n, i) => {
645
645
  if (!(i instanceof Error))
646
646
  return i;
647
647
  const s = i;
648
648
  return Object.assign(Object.assign({}, s.code ? { code: s.code } : {}), { message: s.message });
649
649
  });
650
- return ps(t, r);
650
+ return gs(t, r);
651
651
  }
652
- z.encryptContent = eo;
653
- async function to(e, t) {
654
- return JSON.parse(await gs(t, e));
652
+ z.encryptContent = to;
653
+ async function ro(e, t) {
654
+ return JSON.parse(await bs(t, e));
655
655
  }
656
- z.decryptContent = to;
656
+ z.decryptContent = ro;
657
657
  var ve = {};
658
658
  Object.defineProperty(ve, "__esModule", { value: !0 });
659
659
  ve.ScopedLocalStorage = void 0;
@@ -688,7 +688,7 @@ class Ht {
688
688
  ve.ScopedLocalStorage = Ht;
689
689
  Object.defineProperty(Jt, "__esModule", { value: !0 });
690
690
  Jt.SCWKeyManager = void 0;
691
- const At = z, ro = ve, fn = {
691
+ const At = z, no = ve, fn = {
692
692
  storageKey: "ownPrivateKey",
693
693
  keyType: "private"
694
694
  }, _n = {
@@ -698,9 +698,9 @@ const At = z, ro = ve, fn = {
698
698
  storageKey: "peerPublicKey",
699
699
  keyType: "public"
700
700
  };
701
- class no {
701
+ class io {
702
702
  constructor() {
703
- this.storage = new ro.ScopedLocalStorage("CBWSDK", "SCWKeyManager"), this.ownPrivateKey = null, this.ownPublicKey = null, this.peerPublicKey = null, this.sharedSecret = null;
703
+ this.storage = new no.ScopedLocalStorage("CBWSDK", "SCWKeyManager"), this.ownPrivateKey = null, this.ownPublicKey = null, this.peerPublicKey = null, this.sharedSecret = null;
704
704
  }
705
705
  async getOwnPublicKey() {
706
706
  return await this.loadKeysIfNeeded(), this.ownPublicKey;
@@ -736,12 +736,12 @@ class no {
736
736
  this.storage.setItem(t.storageKey, n);
737
737
  }
738
738
  }
739
- Jt.SCWKeyManager = no;
739
+ Jt.SCWKeyManager = io;
740
740
  var Qt = {};
741
741
  Object.defineProperty(Qt, "__esModule", { value: !0 });
742
742
  Qt.SCWStateManager = void 0;
743
- const io = ve, Xn = "accounts", ei = "activeChain", ti = "availableChains", ri = "walletCapabilities";
744
- class so {
743
+ const so = ve, ei = "accounts", ti = "activeChain", ri = "availableChains", ni = "walletCapabilities";
744
+ class ao {
745
745
  get accounts() {
746
746
  return this._accounts;
747
747
  }
@@ -753,8 +753,8 @@ class so {
753
753
  }
754
754
  constructor(t) {
755
755
  var r, n;
756
- this.storage = new io.ScopedLocalStorage("CBWSDK", "SCWStateManager"), this.updateListener = t.updateListener, this.availableChains = this.loadItemFromStorage(ti), this._walletCapabilities = this.loadItemFromStorage(ri);
757
- const i = this.loadItemFromStorage(Xn), s = this.loadItemFromStorage(ei);
756
+ this.storage = new so.ScopedLocalStorage("CBWSDK", "SCWStateManager"), this.updateListener = t.updateListener, this.availableChains = this.loadItemFromStorage(ri), this._walletCapabilities = this.loadItemFromStorage(ni);
757
+ const i = this.loadItemFromStorage(ei), s = this.loadItemFromStorage(ti);
758
758
  i && this.updateListener.onAccountsUpdate({
759
759
  accounts: i,
760
760
  source: "storage"
@@ -764,7 +764,7 @@ class so {
764
764
  }), this._accounts = i || [], this._activeChain = s || { id: (n = (r = t.appChainIds) === null || r === void 0 ? void 0 : r[0]) !== null && n !== void 0 ? n : 1 };
765
765
  }
766
766
  updateAccounts(t) {
767
- this._accounts = t, this.storeItemToStorage(Xn, t), this.updateListener.onAccountsUpdate({
767
+ this._accounts = t, this.storeItemToStorage(ei, t), this.updateListener.onAccountsUpdate({
768
768
  accounts: t,
769
769
  source: "wallet"
770
770
  });
@@ -772,7 +772,7 @@ class so {
772
772
  switchChain(t) {
773
773
  var r;
774
774
  const n = (r = this.availableChains) === null || r === void 0 ? void 0 : r.find((i) => i.id === t);
775
- return n ? (n === this._activeChain || (this._activeChain = n, this.storeItemToStorage(ei, n), this.updateListener.onChainUpdate({
775
+ return n ? (n === this._activeChain || (this._activeChain = n, this.storeItemToStorage(ti, n), this.updateListener.onChainUpdate({
776
776
  chain: n,
777
777
  source: "wallet"
778
778
  })), !0) : !1;
@@ -781,10 +781,10 @@ class so {
781
781
  if (!t || Object.keys(t).length === 0)
782
782
  return;
783
783
  const r = Object.entries(t).map(([n, i]) => ({ id: Number(n), rpcUrl: i }));
784
- this.availableChains = r, this.storeItemToStorage(ti, r), this.switchChain(this._activeChain.id);
784
+ this.availableChains = r, this.storeItemToStorage(ri, r), this.switchChain(this._activeChain.id);
785
785
  }
786
786
  updateWalletCapabilities(t) {
787
- this._walletCapabilities = t, this.storeItemToStorage(ri, t);
787
+ this._walletCapabilities = t, this.storeItemToStorage(ni, t);
788
788
  }
789
789
  storeItemToStorage(t, r) {
790
790
  this.storage.setItem(t, JSON.stringify(r));
@@ -797,13 +797,13 @@ class so {
797
797
  this.storage.clear();
798
798
  }
799
799
  }
800
- Qt.SCWStateManager = so;
800
+ Qt.SCWStateManager = ao;
801
801
  Object.defineProperty(Yt, "__esModule", { value: !0 });
802
802
  Yt.SCWSigner = void 0;
803
- const ao = Jt, oo = Qt, Lt = ye, ni = M, Tt = z;
804
- class co {
803
+ const oo = Jt, co = Qt, Lt = ye, ii = M, Tt = z;
804
+ class lo {
805
805
  constructor(t) {
806
- this.metadata = t.metadata, this.communicator = t.communicator, this.keyManager = new ao.SCWKeyManager(), this.stateManager = new oo.SCWStateManager({
806
+ this.metadata = t.metadata, this.communicator = t.communicator, this.keyManager = new oo.SCWKeyManager(), this.stateManager = new co.SCWStateManager({
807
807
  appChainIds: this.metadata.appChainIds,
808
808
  updateListener: t.updateListener
809
809
  }), this.handshake = this.handshake.bind(this), this.request = this.request.bind(this), this.createRequestMessage = this.createRequestMessage.bind(this), this.decryptResponseMessage = this.decryptResponseMessage.bind(this);
@@ -851,7 +851,7 @@ class co {
851
851
  const n = t.params;
852
852
  if (!n || !(!((r = n[0]) === null || r === void 0) && r.chainId))
853
853
  throw Lt.standardErrors.rpc.invalidParams();
854
- const i = (0, ni.ensureIntNumber)(n[0].chainId);
854
+ const i = (0, ii.ensureIntNumber)(n[0].chainId);
855
855
  return this.stateManager.switchChain(i) ? null : void 0;
856
856
  }
857
857
  case "wallet_getCapabilities": {
@@ -909,18 +909,18 @@ class co {
909
909
  case "wallet_switchEthereumChain": {
910
910
  if (o.value !== null)
911
911
  return;
912
- const c = t.params, d = (0, ni.ensureIntNumber)(c[0].chainId);
912
+ const c = t.params, d = (0, ii.ensureIntNumber)(c[0].chainId);
913
913
  this.stateManager.switchChain(d);
914
914
  break;
915
915
  }
916
916
  }
917
917
  }
918
918
  }
919
- Yt.SCWSigner = co;
920
- var Xt = {}, An = { exports: {} }, ys = Xi.EventEmitter, gn, ii;
921
- function lo() {
922
- if (ii) return gn;
923
- ii = 1;
919
+ Yt.SCWSigner = lo;
920
+ var Xt = {}, An = { exports: {} }, vs = es.EventEmitter, gn, si;
921
+ function uo() {
922
+ if (si) return gn;
923
+ si = 1;
924
924
  function e(w, k) {
925
925
  var m = Object.keys(w);
926
926
  if (Object.getOwnPropertySymbols) {
@@ -972,7 +972,7 @@ function lo() {
972
972
  }
973
973
  return (k === "string" ? String : Number)(w);
974
974
  }
975
- var c = qt, d = c.Buffer, p = es, h = p.inspect, _ = h && h.custom || "inspect";
975
+ var c = qt, d = c.Buffer, p = ts, h = p.inspect, _ = h && h.custom || "inspect";
976
976
  function y(w, k, m) {
977
977
  d.prototype.copy.call(w, k, m);
978
978
  }
@@ -1082,52 +1082,52 @@ function lo() {
1082
1082
  }]), w;
1083
1083
  }(), gn;
1084
1084
  }
1085
- function uo(e, t) {
1085
+ function ho(e, t) {
1086
1086
  var r = this, n = this._readableState && this._readableState.destroyed, i = this._writableState && this._writableState.destroyed;
1087
1087
  return n || i ? (t ? t(e) : e && (this._writableState ? this._writableState.errorEmitted || (this._writableState.errorEmitted = !0, process.nextTick(Ln, this, e)) : process.nextTick(Ln, this, e)), this) : (this._readableState && (this._readableState.destroyed = !0), this._writableState && (this._writableState.destroyed = !0), this._destroy(e || null, function(s) {
1088
- !t && s ? r._writableState ? r._writableState.errorEmitted ? process.nextTick(jt, r) : (r._writableState.errorEmitted = !0, process.nextTick(si, r, s)) : process.nextTick(si, r, s) : t ? (process.nextTick(jt, r), t(s)) : process.nextTick(jt, r);
1088
+ !t && s ? r._writableState ? r._writableState.errorEmitted ? process.nextTick(jt, r) : (r._writableState.errorEmitted = !0, process.nextTick(ai, r, s)) : process.nextTick(ai, r, s) : t ? (process.nextTick(jt, r), t(s)) : process.nextTick(jt, r);
1089
1089
  }), this);
1090
1090
  }
1091
- function si(e, t) {
1091
+ function ai(e, t) {
1092
1092
  Ln(e, t), jt(e);
1093
1093
  }
1094
1094
  function jt(e) {
1095
1095
  e._writableState && !e._writableState.emitClose || e._readableState && !e._readableState.emitClose || e.emit("close");
1096
1096
  }
1097
- function ho() {
1097
+ function fo() {
1098
1098
  this._readableState && (this._readableState.destroyed = !1, this._readableState.reading = !1, this._readableState.ended = !1, this._readableState.endEmitted = !1), this._writableState && (this._writableState.destroyed = !1, this._writableState.ended = !1, this._writableState.ending = !1, this._writableState.finalCalled = !1, this._writableState.prefinished = !1, this._writableState.finished = !1, this._writableState.errorEmitted = !1);
1099
1099
  }
1100
1100
  function Ln(e, t) {
1101
1101
  e.emit("error", t);
1102
1102
  }
1103
- function fo(e, t) {
1103
+ function _o(e, t) {
1104
1104
  var r = e._readableState, n = e._writableState;
1105
1105
  r && r.autoDestroy || n && n.autoDestroy ? e.destroy(t) : e.emit("error", t);
1106
1106
  }
1107
- var vs = {
1108
- destroy: uo,
1109
- undestroy: ho,
1110
- errorOrDestroy: fo
1107
+ var ms = {
1108
+ destroy: ho,
1109
+ undestroy: fo,
1110
+ errorOrDestroy: _o
1111
1111
  }, Fe = {};
1112
- function _o(e, t) {
1112
+ function po(e, t) {
1113
1113
  e.prototype = Object.create(t.prototype), e.prototype.constructor = e, e.__proto__ = t;
1114
1114
  }
1115
- var ms = {};
1115
+ var ws = {};
1116
1116
  function le(e, t, r) {
1117
1117
  r || (r = Error);
1118
1118
  function n(s, a, o) {
1119
1119
  return typeof t == "string" ? t : t(s, a, o);
1120
1120
  }
1121
1121
  var i = /* @__PURE__ */ function(s) {
1122
- _o(a, s);
1122
+ po(a, s);
1123
1123
  function a(o, c, d) {
1124
1124
  return s.call(this, n(o, c, d)) || this;
1125
1125
  }
1126
1126
  return a;
1127
1127
  }(r);
1128
- i.prototype.name = r.name, i.prototype.code = e, ms[e] = i;
1128
+ i.prototype.name = r.name, i.prototype.code = e, ws[e] = i;
1129
1129
  }
1130
- function ai(e, t) {
1130
+ function oi(e, t) {
1131
1131
  if (Array.isArray(e)) {
1132
1132
  var r = e.length;
1133
1133
  return e = e.map(function(n) {
@@ -1136,13 +1136,13 @@ function ai(e, t) {
1136
1136
  } else
1137
1137
  return "of ".concat(t, " ").concat(String(e));
1138
1138
  }
1139
- function po(e, t, r) {
1139
+ function go(e, t, r) {
1140
1140
  return e.substr(0, t.length) === t;
1141
1141
  }
1142
- function go(e, t, r) {
1142
+ function bo(e, t, r) {
1143
1143
  return (r === void 0 || r > e.length) && (r = e.length), e.substring(r - t.length, r) === t;
1144
1144
  }
1145
- function bo(e, t, r) {
1145
+ function yo(e, t, r) {
1146
1146
  return typeof r != "number" && (r = 0), r + t.length > e.length ? !1 : e.indexOf(t, r) !== -1;
1147
1147
  }
1148
1148
  le("ERR_INVALID_OPT_VALUE", function(e, t) {
@@ -1150,13 +1150,13 @@ le("ERR_INVALID_OPT_VALUE", function(e, t) {
1150
1150
  }, TypeError);
1151
1151
  le("ERR_INVALID_ARG_TYPE", function(e, t, r) {
1152
1152
  var n;
1153
- typeof t == "string" && po(t, "not ") ? (n = "must not be", t = t.replace(/^not /, "")) : n = "must be";
1153
+ typeof t == "string" && go(t, "not ") ? (n = "must not be", t = t.replace(/^not /, "")) : n = "must be";
1154
1154
  var i;
1155
- if (go(e, " argument"))
1156
- i = "The ".concat(e, " ").concat(n, " ").concat(ai(t, "type"));
1155
+ if (bo(e, " argument"))
1156
+ i = "The ".concat(e, " ").concat(n, " ").concat(oi(t, "type"));
1157
1157
  else {
1158
- var s = bo(e, ".") ? "property" : "argument";
1159
- i = 'The "'.concat(e, '" ').concat(s, " ").concat(n, " ").concat(ai(t, "type"));
1158
+ var s = yo(e, ".") ? "property" : "argument";
1159
+ i = 'The "'.concat(e, '" ').concat(s, " ").concat(n, " ").concat(oi(t, "type"));
1160
1160
  }
1161
1161
  return i += ". Received type ".concat(typeof r), i;
1162
1162
  }, TypeError);
@@ -1176,26 +1176,44 @@ le("ERR_UNKNOWN_ENCODING", function(e) {
1176
1176
  return "Unknown encoding: " + e;
1177
1177
  }, TypeError);
1178
1178
  le("ERR_STREAM_UNSHIFT_AFTER_END_EVENT", "stream.unshift() after end event");
1179
- Fe.codes = ms;
1180
- var yo = Fe.codes.ERR_INVALID_OPT_VALUE;
1181
- function vo(e, t, r) {
1179
+ Fe.codes = ws;
1180
+ var vo = Fe.codes.ERR_INVALID_OPT_VALUE;
1181
+ function mo(e, t, r) {
1182
1182
  return e.highWaterMark != null ? e.highWaterMark : t ? e[r] : null;
1183
1183
  }
1184
- function mo(e, t, r, n) {
1185
- var i = vo(t, n, r);
1184
+ function wo(e, t, r, n) {
1185
+ var i = mo(t, n, r);
1186
1186
  if (i != null) {
1187
1187
  if (!(isFinite(i) && Math.floor(i) === i) || i < 0) {
1188
1188
  var s = n ? r : "highWaterMark";
1189
- throw new yo(s, i);
1189
+ throw new vo(s, i);
1190
1190
  }
1191
1191
  return Math.floor(i);
1192
1192
  }
1193
1193
  return e.objectMode ? 16 : 16 * 1024;
1194
1194
  }
1195
- var ws = {
1196
- getHighWaterMark: mo
1197
- }, wo = Eo;
1198
- function Eo(e, t) {
1195
+ var Es = {
1196
+ getHighWaterMark: wo
1197
+ }, Tn = { exports: {} };
1198
+ typeof Object.create == "function" ? Tn.exports = function(t, r) {
1199
+ r && (t.super_ = r, t.prototype = Object.create(r.prototype, {
1200
+ constructor: {
1201
+ value: t,
1202
+ enumerable: !1,
1203
+ writable: !0,
1204
+ configurable: !0
1205
+ }
1206
+ }));
1207
+ } : Tn.exports = function(t, r) {
1208
+ if (r) {
1209
+ t.super_ = r;
1210
+ var n = function() {
1211
+ };
1212
+ n.prototype = r.prototype, t.prototype = new n(), t.prototype.constructor = t;
1213
+ }
1214
+ };
1215
+ var de = Tn.exports, Eo = So;
1216
+ function So(e, t) {
1199
1217
  if (bn("noDeprecation"))
1200
1218
  return e;
1201
1219
  var r = !1;
@@ -1218,10 +1236,10 @@ function bn(e) {
1218
1236
  var t = Z.localStorage[e];
1219
1237
  return t == null ? !1 : String(t).toLowerCase() === "true";
1220
1238
  }
1221
- var yn, oi;
1222
- function Es() {
1223
- if (oi) return yn;
1224
- oi = 1, yn = P;
1239
+ var yn, ci;
1240
+ function Ss() {
1241
+ if (ci) return yn;
1242
+ ci = 1, yn = P;
1225
1243
  function e(b) {
1226
1244
  var g = this;
1227
1245
  this.next = null, this.entry = null, this.finish = function() {
@@ -1231,8 +1249,8 @@ function Es() {
1231
1249
  var t;
1232
1250
  P.WritableState = A;
1233
1251
  var r = {
1234
- deprecate: wo
1235
- }, n = ys, i = qt.Buffer, s = (typeof Z < "u" ? Z : typeof window < "u" ? window : typeof self < "u" ? self : {}).Uint8Array || function() {
1252
+ deprecate: Eo
1253
+ }, n = vs, i = qt.Buffer, s = (typeof Z < "u" ? Z : typeof window < "u" ? window : typeof self < "u" ? self : {}).Uint8Array || function() {
1236
1254
  };
1237
1255
  function a(b) {
1238
1256
  return i.from(b);
@@ -1240,15 +1258,15 @@ function Es() {
1240
1258
  function o(b) {
1241
1259
  return i.isBuffer(b) || b instanceof s;
1242
1260
  }
1243
- var c = vs, d = ws, p = d.getHighWaterMark, h = Fe.codes, _ = h.ERR_INVALID_ARG_TYPE, y = h.ERR_METHOD_NOT_IMPLEMENTED, w = h.ERR_MULTIPLE_CALLBACK, k = h.ERR_STREAM_CANNOT_PIPE, m = h.ERR_STREAM_DESTROYED, f = h.ERR_STREAM_NULL_VALUES, v = h.ERR_STREAM_WRITE_AFTER_END, E = h.ERR_UNKNOWN_ENCODING, S = c.errorOrDestroy;
1244
- de()(P, n);
1261
+ var c = ms, d = Es, p = d.getHighWaterMark, h = Fe.codes, _ = h.ERR_INVALID_ARG_TYPE, y = h.ERR_METHOD_NOT_IMPLEMENTED, w = h.ERR_MULTIPLE_CALLBACK, k = h.ERR_STREAM_CANNOT_PIPE, m = h.ERR_STREAM_DESTROYED, f = h.ERR_STREAM_NULL_VALUES, v = h.ERR_STREAM_WRITE_AFTER_END, E = h.ERR_UNKNOWN_ENCODING, S = c.errorOrDestroy;
1262
+ de(P, n);
1245
1263
  function R() {
1246
1264
  }
1247
1265
  function A(b, g, x) {
1248
1266
  t = t || tt(), b = b || {}, typeof x != "boolean" && (x = g instanceof t), this.objectMode = !!b.objectMode, x && (this.objectMode = this.objectMode || !!b.writableObjectMode), this.highWaterMark = p(this, b, "writableHighWaterMark", x), this.finalCalled = !1, this.needDrain = !1, this.ending = !1, this.ended = !1, this.finished = !1, this.destroyed = !1;
1249
1267
  var L = b.decodeStrings === !1;
1250
- this.decodeStrings = !L, this.defaultEncoding = b.defaultEncoding || "utf8", this.length = 0, this.writing = !1, this.corked = 0, this.sync = !0, this.bufferProcessing = !1, this.onwrite = function(D) {
1251
- Pe(g, D);
1268
+ this.decodeStrings = !L, this.defaultEncoding = b.defaultEncoding || "utf8", this.length = 0, this.writing = !1, this.corked = 0, this.sync = !0, this.bufferProcessing = !1, this.onwrite = function(O) {
1269
+ Pe(g, O);
1252
1270
  }, this.writecb = null, this.writelen = 0, this.bufferedRequest = null, this.lastBufferedRequest = null, this.pendingcb = 0, this.prefinished = !1, this.errorEmitted = !1, this.emitClose = b.emitClose !== !1, this.autoDestroy = !!b.autoDestroy, this.bufferedRequestCount = 0, this.corkedRequestsFree = new e(this);
1253
1271
  }
1254
1272
  A.prototype.getBuffer = function() {
@@ -1287,12 +1305,12 @@ function Es() {
1287
1305
  S(b, x), process.nextTick(g, x);
1288
1306
  }
1289
1307
  function H(b, g, x, L) {
1290
- var D;
1291
- return x === null ? D = new f() : typeof x != "string" && !g.objectMode && (D = new _("chunk", ["string", "Buffer"], x)), D ? (S(b, D), process.nextTick(L, D), !1) : !0;
1308
+ var O;
1309
+ return x === null ? O = new f() : typeof x != "string" && !g.objectMode && (O = new _("chunk", ["string", "Buffer"], x)), O ? (S(b, O), process.nextTick(L, O), !1) : !0;
1292
1310
  }
1293
1311
  P.prototype.write = function(b, g, x) {
1294
- var L = this._writableState, D = !1, l = !L.objectMode && o(b);
1295
- return l && !i.isBuffer(b) && (b = a(b)), typeof g == "function" && (x = g, g = null), l ? g = "buffer" : g || (g = L.defaultEncoding), typeof x != "function" && (x = R), L.ending ? T(this, x) : (l || H(this, L, b, x)) && (L.pendingcb++, D = me(this, L, l, b, g, x)), D;
1312
+ var L = this._writableState, O = !1, l = !L.objectMode && o(b);
1313
+ return l && !i.isBuffer(b) && (b = a(b)), typeof g == "function" && (x = g, g = null), l ? g = "buffer" : g || (g = L.defaultEncoding), typeof x != "function" && (x = R), L.ending ? T(this, x) : (l || H(this, L, b, x)) && (L.pendingcb++, O = me(this, L, l, b, g, x)), O;
1296
1314
  }, P.prototype.cork = function() {
1297
1315
  this._writableState.corked++;
1298
1316
  }, P.prototype.uncork = function() {
@@ -1322,10 +1340,10 @@ function Es() {
1322
1340
  return this._writableState.highWaterMark;
1323
1341
  }
1324
1342
  });
1325
- function me(b, g, x, L, D, l) {
1343
+ function me(b, g, x, L, O, l) {
1326
1344
  if (!x) {
1327
- var u = Q(g, L, D);
1328
- L !== u && (x = !0, D = "buffer", L = u);
1345
+ var u = Q(g, L, O);
1346
+ L !== u && (x = !0, O = "buffer", L = u);
1329
1347
  }
1330
1348
  var C = g.objectMode ? 1 : L.length;
1331
1349
  g.length += C;
@@ -1334,31 +1352,31 @@ function Es() {
1334
1352
  var $ = g.lastBufferedRequest;
1335
1353
  g.lastBufferedRequest = {
1336
1354
  chunk: L,
1337
- encoding: D,
1355
+ encoding: O,
1338
1356
  isBuf: x,
1339
1357
  callback: l,
1340
1358
  next: null
1341
1359
  }, $ ? $.next = g.lastBufferedRequest : g.bufferedRequest = g.lastBufferedRequest, g.bufferedRequestCount += 1;
1342
1360
  } else
1343
- q(b, g, !1, C, L, D, l);
1361
+ q(b, g, !1, C, L, O, l);
1344
1362
  return I;
1345
1363
  }
1346
- function q(b, g, x, L, D, l, u) {
1347
- g.writelen = L, g.writecb = u, g.writing = !0, g.sync = !0, g.destroyed ? g.onwrite(new m("write")) : x ? b._writev(D, g.onwrite) : b._write(D, l, g.onwrite), g.sync = !1;
1364
+ function q(b, g, x, L, O, l, u) {
1365
+ g.writelen = L, g.writecb = u, g.writing = !0, g.sync = !0, g.destroyed ? g.onwrite(new m("write")) : x ? b._writev(O, g.onwrite) : b._write(O, l, g.onwrite), g.sync = !1;
1348
1366
  }
1349
- function ee(b, g, x, L, D) {
1350
- --g.pendingcb, x ? (process.nextTick(D, L), process.nextTick(re, b, g), b._writableState.errorEmitted = !0, S(b, L)) : (D(L), b._writableState.errorEmitted = !0, S(b, L), re(b, g));
1367
+ function ee(b, g, x, L, O) {
1368
+ --g.pendingcb, x ? (process.nextTick(O, L), process.nextTick(re, b, g), b._writableState.errorEmitted = !0, S(b, L)) : (O(L), b._writableState.errorEmitted = !0, S(b, L), re(b, g));
1351
1369
  }
1352
1370
  function te(b) {
1353
1371
  b.writing = !1, b.writecb = null, b.length -= b.writelen, b.writelen = 0;
1354
1372
  }
1355
1373
  function Pe(b, g) {
1356
- var x = b._writableState, L = x.sync, D = x.writecb;
1357
- if (typeof D != "function") throw new w();
1358
- if (te(x), g) ee(b, x, L, g, D);
1374
+ var x = b._writableState, L = x.sync, O = x.writecb;
1375
+ if (typeof O != "function") throw new w();
1376
+ if (te(x), g) ee(b, x, L, g, O);
1359
1377
  else {
1360
1378
  var l = Ee(x) || b.destroyed;
1361
- !l && !x.corked && !x.bufferProcessing && x.bufferedRequest && se(b, x), L ? process.nextTick(ie, b, x, l, D) : ie(b, x, l, D);
1379
+ !l && !x.corked && !x.bufferProcessing && x.bufferedRequest && se(b, x), L ? process.nextTick(ie, b, x, l, O) : ie(b, x, l, O);
1362
1380
  }
1363
1381
  }
1364
1382
  function ie(b, g, x, L) {
@@ -1371,11 +1389,11 @@ function Es() {
1371
1389
  g.bufferProcessing = !0;
1372
1390
  var x = g.bufferedRequest;
1373
1391
  if (b._writev && x && x.next) {
1374
- var L = g.bufferedRequestCount, D = new Array(L), l = g.corkedRequestsFree;
1392
+ var L = g.bufferedRequestCount, O = new Array(L), l = g.corkedRequestsFree;
1375
1393
  l.entry = x;
1376
1394
  for (var u = 0, C = !0; x; )
1377
- D[u] = x, x.isBuf || (C = !1), x = x.next, u += 1;
1378
- D.allBuffers = C, q(b, g, !0, g.length, D, "", l.finish), g.pendingcb++, g.lastBufferedRequest = null, l.next ? (g.corkedRequestsFree = l.next, l.next = null) : g.corkedRequestsFree = new e(g), g.bufferedRequestCount = 0;
1395
+ O[u] = x, x.isBuf || (C = !1), x = x.next, u += 1;
1396
+ O.allBuffers = C, q(b, g, !0, g.length, O, "", l.finish), g.pendingcb++, g.lastBufferedRequest = null, l.next ? (g.corkedRequestsFree = l.next, l.next = null) : g.corkedRequestsFree = new e(g), g.bufferedRequestCount = 0;
1379
1397
  } else {
1380
1398
  for (; x; ) {
1381
1399
  var I = x.chunk, $ = x.encoding, N = x.callback, B = g.objectMode ? 1 : I.length;
@@ -1390,7 +1408,7 @@ function Es() {
1390
1408
  x(new y("_write()"));
1391
1409
  }, P.prototype._writev = null, P.prototype.end = function(b, g, x) {
1392
1410
  var L = this._writableState;
1393
- return typeof b == "function" ? (x = b, b = null, g = null) : typeof g == "function" && (x = g, g = null), b != null && this.write(b, g), L.corked && (L.corked = 1, this.uncork()), L.ending || De(this, L, x), this;
1411
+ return typeof b == "function" ? (x = b, b = null, g = null) : typeof g == "function" && (x = g, g = null), b != null && this.write(b, g), L.corked && (L.corked = 1, this.uncork()), L.ending || Oe(this, L, x), this;
1394
1412
  }, Object.defineProperty(P.prototype, "writableLength", {
1395
1413
  // making it explicit this property is not enumerable
1396
1414
  // because otherwise some prototype manipulation in
@@ -1419,14 +1437,14 @@ function Es() {
1419
1437
  }
1420
1438
  return x;
1421
1439
  }
1422
- function De(b, g, x) {
1440
+ function Oe(b, g, x) {
1423
1441
  g.ending = !0, re(b, g), x && (g.finished ? process.nextTick(x) : b.once("finish", x)), g.ended = !0, b.writable = !1;
1424
1442
  }
1425
1443
  function Ce(b, g, x) {
1426
1444
  var L = b.entry;
1427
1445
  for (b.entry = null; L; ) {
1428
- var D = L.callback;
1429
- g.pendingcb--, D(x), L = L.next;
1446
+ var O = L.callback;
1447
+ g.pendingcb--, O(x), L = L.next;
1430
1448
  }
1431
1449
  g.corkedRequestsFree.next = b;
1432
1450
  }
@@ -1445,18 +1463,18 @@ function Es() {
1445
1463
  g(b);
1446
1464
  }, yn;
1447
1465
  }
1448
- var vn, ci;
1466
+ var vn, li;
1449
1467
  function tt() {
1450
- if (ci) return vn;
1451
- ci = 1;
1468
+ if (li) return vn;
1469
+ li = 1;
1452
1470
  var e = Object.keys || function(d) {
1453
1471
  var p = [];
1454
1472
  for (var h in d) p.push(h);
1455
1473
  return p;
1456
1474
  };
1457
1475
  vn = a;
1458
- var t = Cs(), r = Es();
1459
- de()(a, t);
1476
+ var t = xs(), r = Ss();
1477
+ de(a, t);
1460
1478
  for (var n = e(r.prototype), i = 0; i < n.length; i++) {
1461
1479
  var s = n[i];
1462
1480
  a.prototype[s] || (a.prototype[s] = r.prototype[s]);
@@ -1509,7 +1527,7 @@ function tt() {
1509
1527
  }
1510
1528
  }), vn;
1511
1529
  }
1512
- var mn = {}, Tn = { exports: {} };
1530
+ var mn = {}, Pn = { exports: {} };
1513
1531
  /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
1514
1532
  (function(e, t) {
1515
1533
  var r = qt, n = r.Buffer;
@@ -1539,11 +1557,11 @@ var mn = {}, Tn = { exports: {} };
1539
1557
  throw new TypeError("Argument must be a number");
1540
1558
  return r.SlowBuffer(a);
1541
1559
  };
1542
- })(Tn, Tn.exports);
1543
- var Be = Tn.exports, li;
1544
- function ui() {
1545
- if (li) return mn;
1546
- li = 1;
1560
+ })(Pn, Pn.exports);
1561
+ var Be = Pn.exports, ui;
1562
+ function di() {
1563
+ if (ui) return mn;
1564
+ ui = 1;
1547
1565
  var e = Be.Buffer, t = e.isEncoding || function(f) {
1548
1566
  switch (f = "" + f, f && f.toLowerCase()) {
1549
1567
  case "hex":
@@ -1698,8 +1716,8 @@ function ui() {
1698
1716
  }
1699
1717
  return mn;
1700
1718
  }
1701
- var di = Fe.codes.ERR_STREAM_PREMATURE_CLOSE;
1702
- function So(e) {
1719
+ var hi = Fe.codes.ERR_STREAM_PREMATURE_CLOSE;
1720
+ function Co(e) {
1703
1721
  var t = !1;
1704
1722
  return function() {
1705
1723
  if (!t) {
@@ -1710,14 +1728,14 @@ function So(e) {
1710
1728
  }
1711
1729
  };
1712
1730
  }
1713
- function Co() {
1731
+ function xo() {
1714
1732
  }
1715
- function xo(e) {
1733
+ function ko(e) {
1716
1734
  return e.setHeader && typeof e.abort == "function";
1717
1735
  }
1718
- function Ss(e, t, r) {
1719
- if (typeof t == "function") return Ss(e, null, t);
1720
- t || (t = {}), r = So(r || Co);
1736
+ function Cs(e, t, r) {
1737
+ if (typeof t == "function") return Cs(e, null, t);
1738
+ t || (t = {}), r = Co(r || xo);
1721
1739
  var n = t.readable || t.readable !== !1 && e.readable, i = t.writable || t.writable !== !1 && e.writable, s = function() {
1722
1740
  e.writable || o();
1723
1741
  }, a = e._writableState && e._writableState.finished, o = function() {
@@ -1729,20 +1747,20 @@ function Ss(e, t, r) {
1729
1747
  }, h = function() {
1730
1748
  var w;
1731
1749
  if (n && !c)
1732
- return (!e._readableState || !e._readableState.ended) && (w = new di()), r.call(e, w);
1750
+ return (!e._readableState || !e._readableState.ended) && (w = new hi()), r.call(e, w);
1733
1751
  if (i && !a)
1734
- return (!e._writableState || !e._writableState.ended) && (w = new di()), r.call(e, w);
1752
+ return (!e._writableState || !e._writableState.ended) && (w = new hi()), r.call(e, w);
1735
1753
  }, _ = function() {
1736
1754
  e.req.on("finish", o);
1737
1755
  };
1738
- return xo(e) ? (e.on("complete", o), e.on("abort", h), e.req ? _() : e.on("request", _)) : i && !e._writableState && (e.on("end", s), e.on("close", s)), e.on("end", d), e.on("finish", o), t.error !== !1 && e.on("error", p), e.on("close", h), function() {
1756
+ return ko(e) ? (e.on("complete", o), e.on("abort", h), e.req ? _() : e.on("request", _)) : i && !e._writableState && (e.on("end", s), e.on("close", s)), e.on("end", d), e.on("finish", o), t.error !== !1 && e.on("error", p), e.on("close", h), function() {
1739
1757
  e.removeListener("complete", o), e.removeListener("abort", h), e.removeListener("request", _), e.req && e.req.removeListener("finish", o), e.removeListener("end", s), e.removeListener("close", s), e.removeListener("finish", o), e.removeListener("end", d), e.removeListener("error", p), e.removeListener("close", h);
1740
1758
  };
1741
1759
  }
1742
- var $n = Ss, wn, hi;
1743
- function ko() {
1744
- if (hi) return wn;
1745
- hi = 1;
1760
+ var Fn = Cs, wn, fi;
1761
+ function Ro() {
1762
+ if (fi) return wn;
1763
+ fi = 1;
1746
1764
  var e;
1747
1765
  function t(E, S, R) {
1748
1766
  return S = r(S), S in E ? Object.defineProperty(E, S, { value: R, enumerable: !0, configurable: !0, writable: !0 }) : E[S] = R, E;
@@ -1761,7 +1779,7 @@ function ko() {
1761
1779
  }
1762
1780
  return (S === "string" ? String : Number)(E);
1763
1781
  }
1764
- var i = $n, s = Symbol("lastResolve"), a = Symbol("lastReject"), o = Symbol("error"), c = Symbol("ended"), d = Symbol("lastPromise"), p = Symbol("handlePromise"), h = Symbol("stream");
1782
+ var i = Fn, s = Symbol("lastResolve"), a = Symbol("lastReject"), o = Symbol("error"), c = Symbol("ended"), d = Symbol("lastPromise"), p = Symbol("handlePromise"), h = Symbol("stream");
1765
1783
  function _(E, S) {
1766
1784
  return {
1767
1785
  value: E,
@@ -1865,21 +1883,21 @@ function ko() {
1865
1883
  };
1866
1884
  return wn = v, wn;
1867
1885
  }
1868
- var En, fi;
1869
- function Ro() {
1870
- return fi || (fi = 1, En = function() {
1886
+ var En, _i;
1887
+ function Io() {
1888
+ return _i || (_i = 1, En = function() {
1871
1889
  throw new Error("Readable.from is not available in the browser");
1872
1890
  }), En;
1873
1891
  }
1874
- var Sn, _i;
1875
- function Cs() {
1876
- if (_i) return Sn;
1877
- _i = 1, Sn = T;
1892
+ var Sn, pi;
1893
+ function xs() {
1894
+ if (pi) return Sn;
1895
+ pi = 1, Sn = T;
1878
1896
  var e;
1879
- T.ReadableState = P, Xi.EventEmitter;
1897
+ T.ReadableState = P, es.EventEmitter;
1880
1898
  var t = function(u, C) {
1881
1899
  return u.listeners(C).length;
1882
- }, r = ys, n = qt.Buffer, i = (typeof Z < "u" ? Z : typeof window < "u" ? window : typeof self < "u" ? self : {}).Uint8Array || function() {
1900
+ }, r = vs, n = qt.Buffer, i = (typeof Z < "u" ? Z : typeof window < "u" ? window : typeof self < "u" ? self : {}).Uint8Array || function() {
1883
1901
  };
1884
1902
  function s(l) {
1885
1903
  return n.from(l);
@@ -1887,18 +1905,18 @@ function Cs() {
1887
1905
  function a(l) {
1888
1906
  return n.isBuffer(l) || l instanceof i;
1889
1907
  }
1890
- var o = es, c;
1908
+ var o = ts, c;
1891
1909
  o && o.debuglog ? c = o.debuglog("stream") : c = function() {
1892
1910
  };
1893
- var d = lo(), p = vs, h = ws, _ = h.getHighWaterMark, y = Fe.codes, w = y.ERR_INVALID_ARG_TYPE, k = y.ERR_STREAM_PUSH_AFTER_EOF, m = y.ERR_METHOD_NOT_IMPLEMENTED, f = y.ERR_STREAM_UNSHIFT_AFTER_END_EVENT, v, E, S;
1894
- de()(T, r);
1911
+ var d = uo(), p = ms, h = Es, _ = h.getHighWaterMark, y = Fe.codes, w = y.ERR_INVALID_ARG_TYPE, k = y.ERR_STREAM_PUSH_AFTER_EOF, m = y.ERR_METHOD_NOT_IMPLEMENTED, f = y.ERR_STREAM_UNSHIFT_AFTER_END_EVENT, v, E, S;
1912
+ de(T, r);
1895
1913
  var R = p.errorOrDestroy, A = ["error", "close", "destroy", "pause", "resume"];
1896
1914
  function j(l, u, C) {
1897
1915
  if (typeof l.prependListener == "function") return l.prependListener(u, C);
1898
1916
  !l._events || !l._events[u] ? l.on(u, C) : Array.isArray(l._events[u]) ? l._events[u].unshift(C) : l._events[u] = [C, l._events[u]];
1899
1917
  }
1900
1918
  function P(l, u, C) {
1901
- e = e || tt(), l = l || {}, typeof C != "boolean" && (C = u instanceof e), this.objectMode = !!l.objectMode, C && (this.objectMode = this.objectMode || !!l.readableObjectMode), this.highWaterMark = _(this, l, "readableHighWaterMark", C), this.buffer = new d(), this.length = 0, this.pipes = null, this.pipesCount = 0, this.flowing = null, this.ended = !1, this.endEmitted = !1, this.reading = !1, this.sync = !0, this.needReadable = !1, this.emittedReadable = !1, this.readableListening = !1, this.resumeScheduled = !1, this.paused = !0, this.emitClose = l.emitClose !== !1, this.autoDestroy = !!l.autoDestroy, this.destroyed = !1, this.defaultEncoding = l.defaultEncoding || "utf8", this.awaitDrain = 0, this.readingMore = !1, this.decoder = null, this.encoding = null, l.encoding && (v || (v = ui().StringDecoder), this.decoder = new v(l.encoding), this.encoding = l.encoding);
1919
+ e = e || tt(), l = l || {}, typeof C != "boolean" && (C = u instanceof e), this.objectMode = !!l.objectMode, C && (this.objectMode = this.objectMode || !!l.readableObjectMode), this.highWaterMark = _(this, l, "readableHighWaterMark", C), this.buffer = new d(), this.length = 0, this.pipes = null, this.pipesCount = 0, this.flowing = null, this.ended = !1, this.endEmitted = !1, this.reading = !1, this.sync = !0, this.needReadable = !1, this.emittedReadable = !1, this.readableListening = !1, this.resumeScheduled = !1, this.paused = !0, this.emitClose = l.emitClose !== !1, this.autoDestroy = !!l.autoDestroy, this.destroyed = !1, this.defaultEncoding = l.defaultEncoding || "utf8", this.awaitDrain = 0, this.readingMore = !1, this.decoder = null, this.encoding = null, l.encoding && (v || (v = di().StringDecoder), this.decoder = new v(l.encoding), this.encoding = l.encoding);
1902
1920
  }
1903
1921
  function T(l) {
1904
1922
  if (e = e || tt(), !(this instanceof T)) return new T(l);
@@ -1957,7 +1975,7 @@ function Cs() {
1957
1975
  T.prototype.isPaused = function() {
1958
1976
  return this._readableState.flowing === !1;
1959
1977
  }, T.prototype.setEncoding = function(l) {
1960
- v || (v = ui().StringDecoder);
1978
+ v || (v = di().StringDecoder);
1961
1979
  var u = new v(l);
1962
1980
  this._readableState.decoder = u, this._readableState.encoding = this._readableState.decoder.encoding;
1963
1981
  for (var C = this._readableState.buffer.head, I = ""; C !== null; )
@@ -2027,7 +2045,7 @@ function Cs() {
2027
2045
  break;
2028
2046
  }
2029
2047
  I.pipesCount += 1, c("pipe count=%d opts=%j", I.pipesCount, u);
2030
- var $ = (!u || u.end !== !1) && l !== process.stdout && l !== process.stderr, N = $ ? xe : Oe;
2048
+ var $ = (!u || u.end !== !1) && l !== process.stdout && l !== process.stderr, N = $ ? xe : De;
2031
2049
  I.endEmitted ? process.nextTick(N) : C.once("end", N), l.on("unpipe", B);
2032
2050
  function B(ke, he) {
2033
2051
  c("onunpipe"), ke === C && he && he.hasUnpiped === !1 && (he.hasUnpiped = !0, Mt());
@@ -2039,27 +2057,27 @@ function Cs() {
2039
2057
  l.on("drain", je);
2040
2058
  var ut = !1;
2041
2059
  function Mt() {
2042
- c("cleanup"), l.removeListener("close", Ve), l.removeListener("finish", Ge), l.removeListener("drain", je), l.removeListener("error", ze), l.removeListener("unpipe", B), C.removeListener("end", xe), C.removeListener("end", Oe), C.removeListener("data", dt), ut = !0, I.awaitDrain && (!l._writableState || l._writableState.needDrain) && je();
2060
+ c("cleanup"), l.removeListener("close", Ve), l.removeListener("finish", Ge), l.removeListener("drain", je), l.removeListener("error", ze), l.removeListener("unpipe", B), C.removeListener("end", xe), C.removeListener("end", De), C.removeListener("data", dt), ut = !0, I.awaitDrain && (!l._writableState || l._writableState.needDrain) && je();
2043
2061
  }
2044
2062
  C.on("data", dt);
2045
2063
  function dt(ke) {
2046
2064
  c("ondata");
2047
2065
  var he = l.write(ke);
2048
- c("dest.write", he), he === !1 && ((I.pipesCount === 1 && I.pipes === l || I.pipesCount > 1 && D(I.pipes, l) !== -1) && !ut && (c("false write response, pause", I.awaitDrain), I.awaitDrain++), C.pause());
2066
+ c("dest.write", he), he === !1 && ((I.pipesCount === 1 && I.pipes === l || I.pipesCount > 1 && O(I.pipes, l) !== -1) && !ut && (c("false write response, pause", I.awaitDrain), I.awaitDrain++), C.pause());
2049
2067
  }
2050
2068
  function ze(ke) {
2051
- c("onerror", ke), Oe(), l.removeListener("error", ze), t(l, "error") === 0 && R(l, ke);
2069
+ c("onerror", ke), De(), l.removeListener("error", ze), t(l, "error") === 0 && R(l, ke);
2052
2070
  }
2053
2071
  j(l, "error", ze);
2054
2072
  function Ve() {
2055
- l.removeListener("finish", Ge), Oe();
2073
+ l.removeListener("finish", Ge), De();
2056
2074
  }
2057
2075
  l.once("close", Ve);
2058
2076
  function Ge() {
2059
- c("onfinish"), l.removeListener("close", Ve), Oe();
2077
+ c("onfinish"), l.removeListener("close", Ve), De();
2060
2078
  }
2061
2079
  l.once("finish", Ge);
2062
- function Oe() {
2080
+ function De() {
2063
2081
  c("unpipe"), C.unpipe(l);
2064
2082
  }
2065
2083
  return l.emit("pipe", C), I.flowing || (c("pipe resume"), C.resume()), l;
@@ -2085,7 +2103,7 @@ function Cs() {
2085
2103
  });
2086
2104
  return this;
2087
2105
  }
2088
- var B = D(u.pipes, l);
2106
+ var B = O(u.pipes, l);
2089
2107
  return B === -1 ? this : (u.pipes.splice(B, 1), u.pipesCount -= 1, u.pipesCount === 1 && (u.pipes = u.pipes[0]), l.emit("unpipe", this, C), this);
2090
2108
  }, T.prototype.on = function(l, u) {
2091
2109
  var C = r.prototype.on.call(this, l, u), I = this._readableState;
@@ -2106,9 +2124,9 @@ function Cs() {
2106
2124
  }
2107
2125
  T.prototype.resume = function() {
2108
2126
  var l = this._readableState;
2109
- return l.flowing || (c("resume"), l.flowing = !l.readableListening, De(this, l)), l.paused = !1, this;
2127
+ return l.flowing || (c("resume"), l.flowing = !l.readableListening, Oe(this, l)), l.paused = !1, this;
2110
2128
  };
2111
- function De(l, u) {
2129
+ function Oe(l, u) {
2112
2130
  u.resumeScheduled || (u.resumeScheduled = !0, process.nextTick(Ce, l, u));
2113
2131
  }
2114
2132
  function Ce(l, u) {
@@ -2147,7 +2165,7 @@ function Cs() {
2147
2165
  c("wrapped _read", B), I && (I = !1, l.resume());
2148
2166
  }, this;
2149
2167
  }, typeof Symbol == "function" && (T.prototype[Symbol.asyncIterator] = function() {
2150
- return E === void 0 && (E = ko()), E(this);
2168
+ return E === void 0 && (E = Ro()), E(this);
2151
2169
  }), Object.defineProperty(T.prototype, "readableHighWaterMark", {
2152
2170
  // making it explicit this property is not enumerable
2153
2171
  // because otherwise some prototype manipulation in
@@ -2200,23 +2218,23 @@ function Cs() {
2200
2218
  }
2201
2219
  }
2202
2220
  typeof Symbol == "function" && (T.from = function(l, u) {
2203
- return S === void 0 && (S = Ro()), S(T, l, u);
2221
+ return S === void 0 && (S = Io()), S(T, l, u);
2204
2222
  });
2205
- function D(l, u) {
2223
+ function O(l, u) {
2206
2224
  for (var C = 0, I = l.length; C < I; C++)
2207
2225
  if (l[C] === u) return C;
2208
2226
  return -1;
2209
2227
  }
2210
2228
  return Sn;
2211
2229
  }
2212
- var xs = Le, er = Fe.codes, Io = er.ERR_METHOD_NOT_IMPLEMENTED, Mo = er.ERR_MULTIPLE_CALLBACK, Ao = er.ERR_TRANSFORM_ALREADY_TRANSFORMING, Lo = er.ERR_TRANSFORM_WITH_LENGTH_0, tr = tt();
2213
- de()(Le, tr);
2214
- function To(e, t) {
2230
+ var ks = Le, er = Fe.codes, Mo = er.ERR_METHOD_NOT_IMPLEMENTED, Ao = er.ERR_MULTIPLE_CALLBACK, Lo = er.ERR_TRANSFORM_ALREADY_TRANSFORMING, To = er.ERR_TRANSFORM_WITH_LENGTH_0, tr = tt();
2231
+ de(Le, tr);
2232
+ function Po(e, t) {
2215
2233
  var r = this._transformState;
2216
2234
  r.transforming = !1;
2217
2235
  var n = r.writecb;
2218
2236
  if (n === null)
2219
- return this.emit("error", new Mo());
2237
+ return this.emit("error", new Ao());
2220
2238
  r.writechunk = null, r.writecb = null, t != null && this.push(t), n(e);
2221
2239
  var i = this._readableState;
2222
2240
  i.reading = !1, (i.needReadable || i.length < i.highWaterMark) && this._read(i.highWaterMark);
@@ -2224,25 +2242,25 @@ function To(e, t) {
2224
2242
  function Le(e) {
2225
2243
  if (!(this instanceof Le)) return new Le(e);
2226
2244
  tr.call(this, e), this._transformState = {
2227
- afterTransform: To.bind(this),
2245
+ afterTransform: Po.bind(this),
2228
2246
  needTransform: !1,
2229
2247
  transforming: !1,
2230
2248
  writecb: null,
2231
2249
  writechunk: null,
2232
2250
  writeencoding: null
2233
- }, this._readableState.needReadable = !0, this._readableState.sync = !1, e && (typeof e.transform == "function" && (this._transform = e.transform), typeof e.flush == "function" && (this._flush = e.flush)), this.on("prefinish", Po);
2251
+ }, this._readableState.needReadable = !0, this._readableState.sync = !1, e && (typeof e.transform == "function" && (this._transform = e.transform), typeof e.flush == "function" && (this._flush = e.flush)), this.on("prefinish", No);
2234
2252
  }
2235
- function Po() {
2253
+ function No() {
2236
2254
  var e = this;
2237
2255
  typeof this._flush == "function" && !this._readableState.destroyed ? this._flush(function(t, r) {
2238
- pi(e, t, r);
2239
- }) : pi(this, null, null);
2256
+ gi(e, t, r);
2257
+ }) : gi(this, null, null);
2240
2258
  }
2241
2259
  Le.prototype.push = function(e, t) {
2242
2260
  return this._transformState.needTransform = !1, tr.prototype.push.call(this, e, t);
2243
2261
  };
2244
2262
  Le.prototype._transform = function(e, t, r) {
2245
- r(new Io("_transform()"));
2263
+ r(new Mo("_transform()"));
2246
2264
  };
2247
2265
  Le.prototype._write = function(e, t, r) {
2248
2266
  var n = this._transformState;
@@ -2260,17 +2278,17 @@ Le.prototype._destroy = function(e, t) {
2260
2278
  t(r);
2261
2279
  });
2262
2280
  };
2263
- function pi(e, t, r) {
2281
+ function gi(e, t, r) {
2264
2282
  if (t) return e.emit("error", t);
2265
- if (r != null && e.push(r), e._writableState.length) throw new Lo();
2266
- if (e._transformState.transforming) throw new Ao();
2283
+ if (r != null && e.push(r), e._writableState.length) throw new To();
2284
+ if (e._transformState.transforming) throw new Lo();
2267
2285
  return e.push(null);
2268
2286
  }
2269
- var No = bt, ks = xs;
2270
- de()(bt, ks);
2287
+ var Oo = bt, Rs = ks;
2288
+ de(bt, Rs);
2271
2289
  function bt(e) {
2272
2290
  if (!(this instanceof bt)) return new bt(e);
2273
- ks.call(this, e);
2291
+ Rs.call(this, e);
2274
2292
  }
2275
2293
  bt.prototype._transform = function(e, t, r) {
2276
2294
  r(null, e);
@@ -2282,19 +2300,19 @@ function Do(e) {
2282
2300
  t || (t = !0, e.apply(void 0, arguments));
2283
2301
  };
2284
2302
  }
2285
- var Rs = Fe.codes, Oo = Rs.ERR_MISSING_ARGS, Bo = Rs.ERR_STREAM_DESTROYED;
2286
- function gi(e) {
2303
+ var Is = Fe.codes, Bo = Is.ERR_MISSING_ARGS, jo = Is.ERR_STREAM_DESTROYED;
2304
+ function bi(e) {
2287
2305
  if (e) throw e;
2288
2306
  }
2289
- function jo(e) {
2307
+ function Wo(e) {
2290
2308
  return e.setHeader && typeof e.abort == "function";
2291
2309
  }
2292
- function Wo(e, t, r, n) {
2310
+ function Uo(e, t, r, n) {
2293
2311
  n = Do(n);
2294
2312
  var i = !1;
2295
2313
  e.on("close", function() {
2296
2314
  i = !0;
2297
- }), Cn === void 0 && (Cn = $n), Cn(e, {
2315
+ }), Cn === void 0 && (Cn = Fn), Cn(e, {
2298
2316
  readable: t,
2299
2317
  writable: r
2300
2318
  }, function(a) {
@@ -2304,42 +2322,42 @@ function Wo(e, t, r, n) {
2304
2322
  var s = !1;
2305
2323
  return function(a) {
2306
2324
  if (!i && !s) {
2307
- if (s = !0, jo(e)) return e.abort();
2325
+ if (s = !0, Wo(e)) return e.abort();
2308
2326
  if (typeof e.destroy == "function") return e.destroy();
2309
- n(a || new Bo("pipe"));
2327
+ n(a || new jo("pipe"));
2310
2328
  }
2311
2329
  };
2312
2330
  }
2313
- function bi(e) {
2331
+ function yi(e) {
2314
2332
  e();
2315
2333
  }
2316
- function Uo(e, t) {
2334
+ function Ho(e, t) {
2317
2335
  return e.pipe(t);
2318
2336
  }
2319
- function Ho(e) {
2320
- return !e.length || typeof e[e.length - 1] != "function" ? gi : e.pop();
2337
+ function $o(e) {
2338
+ return !e.length || typeof e[e.length - 1] != "function" ? bi : e.pop();
2321
2339
  }
2322
- function $o() {
2340
+ function Fo() {
2323
2341
  for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
2324
2342
  t[r] = arguments[r];
2325
- var n = Ho(t);
2343
+ var n = $o(t);
2326
2344
  if (Array.isArray(t[0]) && (t = t[0]), t.length < 2)
2327
- throw new Oo("streams");
2345
+ throw new Bo("streams");
2328
2346
  var i, s = t.map(function(a, o) {
2329
2347
  var c = o < t.length - 1, d = o > 0;
2330
- return Wo(a, c, d, function(p) {
2331
- i || (i = p), p && s.forEach(bi), !c && (s.forEach(bi), n(i));
2348
+ return Uo(a, c, d, function(p) {
2349
+ i || (i = p), p && s.forEach(yi), !c && (s.forEach(yi), n(i));
2332
2350
  });
2333
2351
  });
2334
- return t.reduce(Uo);
2352
+ return t.reduce(Ho);
2335
2353
  }
2336
- var Fo = $o;
2354
+ var qo = Fo;
2337
2355
  (function(e, t) {
2338
- t = e.exports = Cs(), t.Stream = t, t.Readable = t, t.Writable = Es(), t.Duplex = tt(), t.Transform = xs, t.PassThrough = No, t.finished = $n, t.pipeline = Fo;
2356
+ t = e.exports = xs(), t.Stream = t, t.Readable = t, t.Writable = Ss(), t.Duplex = tt(), t.Transform = ks, t.PassThrough = Oo, t.finished = Fn, t.pipeline = qo;
2339
2357
  })(An, An.exports);
2340
- var Is = An.exports;
2341
- const { Transform: qo } = Is;
2342
- var Ko = (e) => class Ms extends qo {
2358
+ var Ms = An.exports;
2359
+ const { Transform: Ko } = Ms;
2360
+ var zo = (e) => class As extends Ko {
2343
2361
  constructor(r, n, i, s, a) {
2344
2362
  super(a), this._rate = r, this._capacity = n, this._delimitedSuffix = i, this._hashBitLength = s, this._options = a, this._state = new e(), this._state.initialize(r, n), this._finalized = !1;
2345
2363
  }
@@ -2378,12 +2396,12 @@ var Ko = (e) => class Ms extends qo {
2378
2396
  }
2379
2397
  // because sometimes we need hash right now and little later
2380
2398
  _clone() {
2381
- const r = new Ms(this._rate, this._capacity, this._delimitedSuffix, this._hashBitLength, this._options);
2399
+ const r = new As(this._rate, this._capacity, this._delimitedSuffix, this._hashBitLength, this._options);
2382
2400
  return this._state.copy(r._state), r._finalized = this._finalized, r;
2383
2401
  }
2384
2402
  };
2385
- const { Transform: zo } = Is;
2386
- var Vo = (e) => class As extends zo {
2403
+ const { Transform: Vo } = Ms;
2404
+ var Go = (e) => class Ls extends Vo {
2387
2405
  constructor(r, n, i, s) {
2388
2406
  super(s), this._rate = r, this._capacity = n, this._delimitedSuffix = i, this._options = s, this._state = new e(), this._state.initialize(r, n), this._finalized = !1;
2389
2407
  }
@@ -2415,13 +2433,13 @@ var Vo = (e) => class As extends zo {
2415
2433
  return this._state.initialize(this._rate, this._capacity), this;
2416
2434
  }
2417
2435
  _clone() {
2418
- const r = new As(this._rate, this._capacity, this._delimitedSuffix, this._options);
2436
+ const r = new Ls(this._rate, this._capacity, this._delimitedSuffix, this._options);
2419
2437
  return this._state.copy(r._state), r._finalized = this._finalized, r;
2420
2438
  }
2421
2439
  };
2422
- const Go = Ko, Zo = Vo;
2423
- var Yo = function(e) {
2424
- const t = Go(e), r = Zo(e);
2440
+ const Zo = zo, Yo = Go;
2441
+ var Jo = function(e) {
2442
+ const t = Zo(e), r = Yo(e);
2425
2443
  return function(n, i) {
2426
2444
  switch (typeof n == "string" ? n.toLowerCase() : n) {
2427
2445
  case "keccak224":
@@ -2448,9 +2466,9 @@ var Yo = function(e) {
2448
2466
  throw new Error("Invald algorithm: " + n);
2449
2467
  }
2450
2468
  };
2451
- }, Ls = {};
2452
- const yi = [1, 0, 32898, 0, 32906, 2147483648, 2147516416, 2147483648, 32907, 0, 2147483649, 0, 2147516545, 2147483648, 32777, 2147483648, 138, 0, 136, 0, 2147516425, 0, 2147483658, 0, 2147516555, 0, 139, 2147483648, 32905, 2147483648, 32771, 2147483648, 32770, 2147483648, 128, 2147483648, 32778, 0, 2147483658, 2147483648, 2147516545, 2147483648, 32896, 2147483648, 2147483649, 0, 2147516424, 2147483648];
2453
- Ls.p1600 = function(e) {
2469
+ }, Ts = {};
2470
+ const vi = [1, 0, 32898, 0, 32906, 2147483648, 2147516416, 2147483648, 32907, 0, 2147483649, 0, 2147516545, 2147483648, 32777, 2147483648, 138, 0, 136, 0, 2147516425, 0, 2147483658, 0, 2147516555, 0, 139, 2147483648, 32905, 2147483648, 32771, 2147483648, 32770, 2147483648, 128, 2147483648, 32778, 0, 2147483658, 2147483648, 2147516545, 2147483648, 32896, 2147483648, 2147483649, 0, 2147516424, 2147483648];
2471
+ Ts.p1600 = function(e) {
2454
2472
  for (let t = 0; t < 24; ++t) {
2455
2473
  const r = e[0] ^ e[10] ^ e[20] ^ e[30] ^ e[40], n = e[1] ^ e[11] ^ e[21] ^ e[31] ^ e[41], i = e[2] ^ e[12] ^ e[22] ^ e[32] ^ e[42], s = e[3] ^ e[13] ^ e[23] ^ e[33] ^ e[43], a = e[4] ^ e[14] ^ e[24] ^ e[34] ^ e[44], o = e[5] ^ e[15] ^ e[25] ^ e[35] ^ e[45], c = e[6] ^ e[16] ^ e[26] ^ e[36] ^ e[46], d = e[7] ^ e[17] ^ e[27] ^ e[37] ^ e[47], p = e[8] ^ e[18] ^ e[28] ^ e[38] ^ e[48], h = e[9] ^ e[19] ^ e[29] ^ e[39] ^ e[49];
2456
2474
  let _ = p ^ (i << 1 | s >>> 31), y = h ^ (s << 1 | i >>> 31);
@@ -2458,15 +2476,15 @@ Ls.p1600 = function(e) {
2458
2476
  _ = r ^ (a << 1 | o >>> 31), y = n ^ (o << 1 | a >>> 31);
2459
2477
  const P = e[2] ^ _, T = e[3] ^ y, H = e[12] ^ _, Q = e[13] ^ y, me = e[22] ^ _, q = e[23] ^ y, ee = e[32] ^ _, te = e[33] ^ y, Pe = e[42] ^ _, ie = e[43] ^ y;
2460
2478
  _ = i ^ (c << 1 | d >>> 31), y = s ^ (d << 1 | c >>> 31);
2461
- const we = e[4] ^ _, se = e[5] ^ y, Ee = e[14] ^ _, Ne = e[15] ^ y, Se = e[24] ^ _, re = e[25] ^ y, De = e[34] ^ _, Ce = e[35] ^ y, b = e[44] ^ _, g = e[45] ^ y;
2479
+ const we = e[4] ^ _, se = e[5] ^ y, Ee = e[14] ^ _, Ne = e[15] ^ y, Se = e[24] ^ _, re = e[25] ^ y, Oe = e[34] ^ _, Ce = e[35] ^ y, b = e[44] ^ _, g = e[45] ^ y;
2462
2480
  _ = a ^ (p << 1 | h >>> 31), y = o ^ (h << 1 | p >>> 31);
2463
- const x = e[6] ^ _, L = e[7] ^ y, D = e[16] ^ _, l = e[17] ^ y, u = e[26] ^ _, C = e[27] ^ y, I = e[36] ^ _, $ = e[37] ^ y, N = e[46] ^ _, B = e[47] ^ y;
2481
+ const x = e[6] ^ _, L = e[7] ^ y, O = e[16] ^ _, l = e[17] ^ y, u = e[26] ^ _, C = e[27] ^ y, I = e[36] ^ _, $ = e[37] ^ y, N = e[46] ^ _, B = e[47] ^ y;
2464
2482
  _ = c ^ (r << 1 | n >>> 31), y = d ^ (n << 1 | r >>> 31);
2465
- const xe = e[8] ^ _, je = e[9] ^ y, ut = e[18] ^ _, Mt = e[19] ^ y, dt = e[28] ^ _, ze = e[29] ^ y, Ve = e[38] ^ _, Ge = e[39] ^ y, Oe = e[48] ^ _, ke = e[49] ^ y, he = w, br = k, yr = f << 4 | m >>> 28, vr = m << 4 | f >>> 28, mr = v << 3 | E >>> 29, wr = E << 3 | v >>> 29, Er = R << 9 | S >>> 23, Sr = S << 9 | R >>> 23, Cr = A << 18 | j >>> 14, xr = j << 18 | A >>> 14, kr = P << 1 | T >>> 31, Rr = T << 1 | P >>> 31, Ir = Q << 12 | H >>> 20, Mr = H << 12 | Q >>> 20, Ar = me << 10 | q >>> 22, Lr = q << 10 | me >>> 22, Tr = te << 13 | ee >>> 19, Pr = ee << 13 | te >>> 19, Nr = Pe << 2 | ie >>> 30, Dr = ie << 2 | Pe >>> 30, Or = se << 30 | we >>> 2, Br = we << 30 | se >>> 2, jr = Ee << 6 | Ne >>> 26, Wr = Ne << 6 | Ee >>> 26, Ur = re << 11 | Se >>> 21, Hr = Se << 11 | re >>> 21, $r = De << 15 | Ce >>> 17, Fr = Ce << 15 | De >>> 17, qr = g << 29 | b >>> 3, Kr = b << 29 | g >>> 3, zr = x << 28 | L >>> 4, Vr = L << 28 | x >>> 4, Gr = l << 23 | D >>> 9, Zr = D << 23 | l >>> 9, Yr = u << 25 | C >>> 7, Jr = C << 25 | u >>> 7, Qr = I << 21 | $ >>> 11, Xr = $ << 21 | I >>> 11, en = B << 24 | N >>> 8, tn = N << 24 | B >>> 8, rn = xe << 27 | je >>> 5, nn = je << 27 | xe >>> 5, sn = ut << 20 | Mt >>> 12, an = Mt << 20 | ut >>> 12, on = ze << 7 | dt >>> 25, cn = dt << 7 | ze >>> 25, ln = Ve << 8 | Ge >>> 24, un = Ge << 8 | Ve >>> 24, dn = Oe << 14 | ke >>> 18, hn = ke << 14 | Oe >>> 18;
2466
- e[0] = he ^ ~Ir & Ur, e[1] = br ^ ~Mr & Hr, e[10] = zr ^ ~sn & mr, e[11] = Vr ^ ~an & wr, e[20] = kr ^ ~jr & Yr, e[21] = Rr ^ ~Wr & Jr, e[30] = rn ^ ~yr & Ar, e[31] = nn ^ ~vr & Lr, e[40] = Or ^ ~Gr & on, e[41] = Br ^ ~Zr & cn, e[2] = Ir ^ ~Ur & Qr, e[3] = Mr ^ ~Hr & Xr, e[12] = sn ^ ~mr & Tr, e[13] = an ^ ~wr & Pr, e[22] = jr ^ ~Yr & ln, e[23] = Wr ^ ~Jr & un, e[32] = yr ^ ~Ar & $r, e[33] = vr ^ ~Lr & Fr, e[42] = Gr ^ ~on & Er, e[43] = Zr ^ ~cn & Sr, e[4] = Ur ^ ~Qr & dn, e[5] = Hr ^ ~Xr & hn, e[14] = mr ^ ~Tr & qr, e[15] = wr ^ ~Pr & Kr, e[24] = Yr ^ ~ln & Cr, e[25] = Jr ^ ~un & xr, e[34] = Ar ^ ~$r & en, e[35] = Lr ^ ~Fr & tn, e[44] = on ^ ~Er & Nr, e[45] = cn ^ ~Sr & Dr, e[6] = Qr ^ ~dn & he, e[7] = Xr ^ ~hn & br, e[16] = Tr ^ ~qr & zr, e[17] = Pr ^ ~Kr & Vr, e[26] = ln ^ ~Cr & kr, e[27] = un ^ ~xr & Rr, e[36] = $r ^ ~en & rn, e[37] = Fr ^ ~tn & nn, e[46] = Er ^ ~Nr & Or, e[47] = Sr ^ ~Dr & Br, e[8] = dn ^ ~he & Ir, e[9] = hn ^ ~br & Mr, e[18] = qr ^ ~zr & sn, e[19] = Kr ^ ~Vr & an, e[28] = Cr ^ ~kr & jr, e[29] = xr ^ ~Rr & Wr, e[38] = en ^ ~rn & yr, e[39] = tn ^ ~nn & vr, e[48] = Nr ^ ~Or & Gr, e[49] = Dr ^ ~Br & Zr, e[0] ^= yi[t * 2], e[1] ^= yi[t * 2 + 1];
2483
+ const xe = e[8] ^ _, je = e[9] ^ y, ut = e[18] ^ _, Mt = e[19] ^ y, dt = e[28] ^ _, ze = e[29] ^ y, Ve = e[38] ^ _, Ge = e[39] ^ y, De = e[48] ^ _, ke = e[49] ^ y, he = w, br = k, yr = f << 4 | m >>> 28, vr = m << 4 | f >>> 28, mr = v << 3 | E >>> 29, wr = E << 3 | v >>> 29, Er = R << 9 | S >>> 23, Sr = S << 9 | R >>> 23, Cr = A << 18 | j >>> 14, xr = j << 18 | A >>> 14, kr = P << 1 | T >>> 31, Rr = T << 1 | P >>> 31, Ir = Q << 12 | H >>> 20, Mr = H << 12 | Q >>> 20, Ar = me << 10 | q >>> 22, Lr = q << 10 | me >>> 22, Tr = te << 13 | ee >>> 19, Pr = ee << 13 | te >>> 19, Nr = Pe << 2 | ie >>> 30, Or = ie << 2 | Pe >>> 30, Dr = se << 30 | we >>> 2, Br = we << 30 | se >>> 2, jr = Ee << 6 | Ne >>> 26, Wr = Ne << 6 | Ee >>> 26, Ur = re << 11 | Se >>> 21, Hr = Se << 11 | re >>> 21, $r = Oe << 15 | Ce >>> 17, Fr = Ce << 15 | Oe >>> 17, qr = g << 29 | b >>> 3, Kr = b << 29 | g >>> 3, zr = x << 28 | L >>> 4, Vr = L << 28 | x >>> 4, Gr = l << 23 | O >>> 9, Zr = O << 23 | l >>> 9, Yr = u << 25 | C >>> 7, Jr = C << 25 | u >>> 7, Qr = I << 21 | $ >>> 11, Xr = $ << 21 | I >>> 11, en = B << 24 | N >>> 8, tn = N << 24 | B >>> 8, rn = xe << 27 | je >>> 5, nn = je << 27 | xe >>> 5, sn = ut << 20 | Mt >>> 12, an = Mt << 20 | ut >>> 12, on = ze << 7 | dt >>> 25, cn = dt << 7 | ze >>> 25, ln = Ve << 8 | Ge >>> 24, un = Ge << 8 | Ve >>> 24, dn = De << 14 | ke >>> 18, hn = ke << 14 | De >>> 18;
2484
+ e[0] = he ^ ~Ir & Ur, e[1] = br ^ ~Mr & Hr, e[10] = zr ^ ~sn & mr, e[11] = Vr ^ ~an & wr, e[20] = kr ^ ~jr & Yr, e[21] = Rr ^ ~Wr & Jr, e[30] = rn ^ ~yr & Ar, e[31] = nn ^ ~vr & Lr, e[40] = Dr ^ ~Gr & on, e[41] = Br ^ ~Zr & cn, e[2] = Ir ^ ~Ur & Qr, e[3] = Mr ^ ~Hr & Xr, e[12] = sn ^ ~mr & Tr, e[13] = an ^ ~wr & Pr, e[22] = jr ^ ~Yr & ln, e[23] = Wr ^ ~Jr & un, e[32] = yr ^ ~Ar & $r, e[33] = vr ^ ~Lr & Fr, e[42] = Gr ^ ~on & Er, e[43] = Zr ^ ~cn & Sr, e[4] = Ur ^ ~Qr & dn, e[5] = Hr ^ ~Xr & hn, e[14] = mr ^ ~Tr & qr, e[15] = wr ^ ~Pr & Kr, e[24] = Yr ^ ~ln & Cr, e[25] = Jr ^ ~un & xr, e[34] = Ar ^ ~$r & en, e[35] = Lr ^ ~Fr & tn, e[44] = on ^ ~Er & Nr, e[45] = cn ^ ~Sr & Or, e[6] = Qr ^ ~dn & he, e[7] = Xr ^ ~hn & br, e[16] = Tr ^ ~qr & zr, e[17] = Pr ^ ~Kr & Vr, e[26] = ln ^ ~Cr & kr, e[27] = un ^ ~xr & Rr, e[36] = $r ^ ~en & rn, e[37] = Fr ^ ~tn & nn, e[46] = Er ^ ~Nr & Dr, e[47] = Sr ^ ~Or & Br, e[8] = dn ^ ~he & Ir, e[9] = hn ^ ~br & Mr, e[18] = qr ^ ~zr & sn, e[19] = Kr ^ ~Vr & an, e[28] = Cr ^ ~kr & jr, e[29] = xr ^ ~Rr & Wr, e[38] = en ^ ~rn & yr, e[39] = tn ^ ~nn & vr, e[48] = Nr ^ ~Dr & Gr, e[49] = Or ^ ~Br & Zr, e[0] ^= vi[t * 2], e[1] ^= vi[t * 2 + 1];
2467
2485
  }
2468
2486
  };
2469
- const $t = Ls;
2487
+ const $t = Ts;
2470
2488
  function ot() {
2471
2489
  this.state = [
2472
2490
  0,
@@ -2518,15 +2536,15 @@ ot.prototype.copy = function(e) {
2518
2536
  for (let t = 0; t < 50; ++t) e.state[t] = this.state[t];
2519
2537
  e.blockSize = this.blockSize, e.count = this.count, e.squeezing = this.squeezing;
2520
2538
  };
2521
- var Jo = ot, Qo = Yo(Jo);
2522
- const Xo = Qo;
2523
- function Ts(e) {
2539
+ var Qo = ot, Xo = Jo(Qo);
2540
+ const ec = Xo;
2541
+ function Ps(e) {
2524
2542
  return Buffer.allocUnsafe(e).fill(0);
2525
2543
  }
2526
- function ec(e) {
2544
+ function tc(e) {
2527
2545
  return e.toString(2).length;
2528
2546
  }
2529
- function Ps(e, t) {
2547
+ function Ns(e, t) {
2530
2548
  let r = e.toString(16);
2531
2549
  r.length % 2 !== 0 && (r = "0" + r);
2532
2550
  const n = r.match(/.{1,2}/g).map((i) => parseInt(i, 16));
@@ -2534,7 +2552,7 @@ function Ps(e, t) {
2534
2552
  n.unshift(0);
2535
2553
  return Buffer.from(n);
2536
2554
  }
2537
- function tc(e, t) {
2555
+ function rc(e, t) {
2538
2556
  const r = e < 0n;
2539
2557
  let n;
2540
2558
  if (r) {
@@ -2544,71 +2562,71 @@ function tc(e, t) {
2544
2562
  n = e;
2545
2563
  return n &= (1n << BigInt(t)) - 1n, n;
2546
2564
  }
2547
- function Ns(e, t, r) {
2548
- const n = Ts(t);
2565
+ function Os(e, t, r) {
2566
+ const n = Ps(t);
2549
2567
  return e = rr(e), r ? e.length < t ? (e.copy(n), n) : e.slice(0, t) : e.length < t ? (e.copy(n, t - e.length), n) : e.slice(-t);
2550
2568
  }
2551
- function rc(e, t) {
2552
- return Ns(e, t, !0);
2569
+ function nc(e, t) {
2570
+ return Os(e, t, !0);
2553
2571
  }
2554
2572
  function rr(e) {
2555
2573
  if (!Buffer.isBuffer(e))
2556
2574
  if (Array.isArray(e))
2557
2575
  e = Buffer.from(e);
2558
2576
  else if (typeof e == "string")
2559
- Ds(e) ? e = Buffer.from(sc(Os(e)), "hex") : e = Buffer.from(e);
2577
+ Ds(e) ? e = Buffer.from(ac(Bs(e)), "hex") : e = Buffer.from(e);
2560
2578
  else if (typeof e == "number")
2561
2579
  e = intToBuffer(e);
2562
2580
  else if (e == null)
2563
2581
  e = Buffer.allocUnsafe(0);
2564
2582
  else if (typeof e == "bigint")
2565
- e = Ps(e);
2583
+ e = Ns(e);
2566
2584
  else if (e.toArray)
2567
2585
  e = Buffer.from(e.toArray());
2568
2586
  else
2569
2587
  throw new Error("invalid type");
2570
2588
  return e;
2571
2589
  }
2572
- function nc(e) {
2590
+ function ic(e) {
2573
2591
  return e = rr(e), "0x" + e.toString("hex");
2574
2592
  }
2575
- function ic(e, t) {
2576
- return e = rr(e), t || (t = 256), Xo("keccak" + t).update(e).digest();
2593
+ function sc(e, t) {
2594
+ return e = rr(e), t || (t = 256), ec("keccak" + t).update(e).digest();
2577
2595
  }
2578
- function sc(e) {
2596
+ function ac(e) {
2579
2597
  return e.length % 2 ? "0" + e : e;
2580
2598
  }
2581
2599
  function Ds(e) {
2582
2600
  return typeof e == "string" && e.match(/^0x[0-9A-Fa-f]*$/);
2583
2601
  }
2584
- function Os(e) {
2602
+ function Bs(e) {
2585
2603
  return typeof e == "string" && e.startsWith("0x") ? e.slice(2) : e;
2586
2604
  }
2587
- var Bs = {
2588
- zeros: Ts,
2589
- setLength: Ns,
2590
- setLengthRight: rc,
2605
+ var js = {
2606
+ zeros: Ps,
2607
+ setLength: Os,
2608
+ setLengthRight: nc,
2591
2609
  isHexString: Ds,
2592
- stripHexPrefix: Os,
2610
+ stripHexPrefix: Bs,
2593
2611
  toBuffer: rr,
2594
- bufferToHex: nc,
2595
- keccak: ic,
2596
- bitLengthFromBigInt: ec,
2597
- bufferBEFromBigInt: Ps,
2598
- twosFromBigInt: tc
2612
+ bufferToHex: ic,
2613
+ keccak: sc,
2614
+ bitLengthFromBigInt: tc,
2615
+ bufferBEFromBigInt: Ns,
2616
+ twosFromBigInt: rc
2599
2617
  };
2600
- const X = Bs;
2601
- function js(e) {
2618
+ const X = js;
2619
+ function Ws(e) {
2602
2620
  return e.startsWith("int[") ? "int256" + e.slice(3) : e === "int" ? "int256" : e.startsWith("uint[") ? "uint256" + e.slice(4) : e === "uint" ? "uint256" : e.startsWith("fixed[") ? "fixed128x128" + e.slice(5) : e === "fixed" ? "fixed128x128" : e.startsWith("ufixed[") ? "ufixed128x128" + e.slice(6) : e === "ufixed" ? "ufixed128x128" : e;
2603
2621
  }
2604
2622
  function et(e) {
2605
2623
  return parseInt(/^\D+(\d+)$/.exec(e)[1], 10);
2606
2624
  }
2607
- function vi(e) {
2625
+ function mi(e) {
2608
2626
  var t = /^\D+(\d+)x(\d+)$/.exec(e);
2609
2627
  return [parseInt(t[1], 10), parseInt(t[2], 10)];
2610
2628
  }
2611
- function Ws(e) {
2629
+ function Us(e) {
2612
2630
  var t = e.match(/(.*)\[(.*?)\]$/);
2613
2631
  return t ? t[2] === "" ? "dynamic" : parseInt(t[2], 10) : null;
2614
2632
  }
@@ -2628,10 +2646,10 @@ function fe(e, t) {
2628
2646
  return fe("uint8", t ? 1 : 0);
2629
2647
  if (e === "string")
2630
2648
  return fe("bytes", new Buffer(t, "utf8"));
2631
- if (oc(e)) {
2649
+ if (cc(e)) {
2632
2650
  if (typeof t.length > "u")
2633
2651
  throw new Error("Not an array?");
2634
- if (r = Ws(e), r !== "dynamic" && r !== 0 && t.length > r)
2652
+ if (r = Us(e), r !== "dynamic" && r !== 0 && t.length > r)
2635
2653
  throw new Error("Elements exceed array size: " + r);
2636
2654
  i = [], e = e.slice(0, e.lastIndexOf("[")), typeof t == "string" && (t = JSON.parse(t));
2637
2655
  for (s in t)
@@ -2668,33 +2686,33 @@ function fe(e, t) {
2668
2686
  const c = X.twosFromBigInt(n, 256);
2669
2687
  return X.bufferBEFromBigInt(c, 32);
2670
2688
  } else if (e.startsWith("ufixed")) {
2671
- if (r = vi(e), n = We(t), n < 0)
2689
+ if (r = mi(e), n = We(t), n < 0)
2672
2690
  throw new Error("Supplied ufixed is negative");
2673
2691
  return fe("uint256", n * BigInt(2) ** BigInt(r[1]));
2674
2692
  } else if (e.startsWith("fixed"))
2675
- return r = vi(e), fe("int256", We(t) * BigInt(2) ** BigInt(r[1]));
2693
+ return r = mi(e), fe("int256", We(t) * BigInt(2) ** BigInt(r[1]));
2676
2694
  }
2677
2695
  throw new Error("Unsupported or invalid type: " + e);
2678
2696
  }
2679
- function ac(e) {
2680
- return e === "string" || e === "bytes" || Ws(e) === "dynamic";
2681
- }
2682
2697
  function oc(e) {
2698
+ return e === "string" || e === "bytes" || Us(e) === "dynamic";
2699
+ }
2700
+ function cc(e) {
2683
2701
  return e.lastIndexOf("]") === e.length - 1;
2684
2702
  }
2685
- function cc(e, t) {
2703
+ function lc(e, t) {
2686
2704
  var r = [], n = [], i = 32 * e.length;
2687
2705
  for (var s in e) {
2688
- var a = js(e[s]), o = t[s], c = fe(a, o);
2689
- ac(a) ? (r.push(fe("uint256", i)), n.push(c), i += c.length) : r.push(c);
2706
+ var a = Ws(e[s]), o = t[s], c = fe(a, o);
2707
+ oc(a) ? (r.push(fe("uint256", i)), n.push(c), i += c.length) : r.push(c);
2690
2708
  }
2691
2709
  return Buffer.concat(r.concat(n));
2692
2710
  }
2693
- function Us(e, t) {
2711
+ function Hs(e, t) {
2694
2712
  if (e.length !== t.length)
2695
2713
  throw new Error("Number of types are not matching the values");
2696
2714
  for (var r, n, i = [], s = 0; s < e.length; s++) {
2697
- var a = js(e[s]), o = t[s];
2715
+ var a = Ws(e[s]), o = t[s];
2698
2716
  if (a === "bytes")
2699
2717
  i.push(o);
2700
2718
  else if (a === "string")
@@ -2729,15 +2747,15 @@ function Us(e, t) {
2729
2747
  }
2730
2748
  return Buffer.concat(i);
2731
2749
  }
2732
- function lc(e, t) {
2733
- return X.keccak(Us(e, t));
2750
+ function uc(e, t) {
2751
+ return X.keccak(Hs(e, t));
2734
2752
  }
2735
- var uc = {
2736
- rawEncode: cc,
2737
- solidityPack: Us,
2738
- soliditySHA3: lc
2753
+ var dc = {
2754
+ rawEncode: lc,
2755
+ solidityPack: Hs,
2756
+ soliditySHA3: uc
2739
2757
  };
2740
- const ue = Bs, ft = uc, Hs = {
2758
+ const ue = js, ft = dc, $s = {
2741
2759
  type: "object",
2742
2760
  properties: {
2743
2761
  types: {
@@ -2874,7 +2892,7 @@ const ue = Bs, ft = uc, Hs = {
2874
2892
  */
2875
2893
  sanitizeData(e) {
2876
2894
  const t = {};
2877
- for (const r in Hs.properties)
2895
+ for (const r in $s.properties)
2878
2896
  e[r] && (t[r] = e[r]);
2879
2897
  return t.types && (t.types = Object.assign({ EIP712Domain: [] }, t.types)), t;
2880
2898
  },
@@ -2889,11 +2907,11 @@ const ue = Bs, ft = uc, Hs = {
2889
2907
  return n.push(this.hashStruct("EIP712Domain", r.domain, r.types, t)), r.primaryType !== "EIP712Domain" && n.push(this.hashStruct(r.primaryType, r.message, r.types, t)), ue.keccak(Buffer.concat(n));
2890
2908
  }
2891
2909
  };
2892
- var dc = {
2893
- TYPED_MESSAGE_SCHEMA: Hs,
2910
+ var hc = {
2911
+ TYPED_MESSAGE_SCHEMA: $s,
2894
2912
  TypedDataUtils: xn,
2895
2913
  hashForSignTypedDataLegacy: function(e) {
2896
- return hc(e.data);
2914
+ return fc(e.data);
2897
2915
  },
2898
2916
  hashForSignTypedData_v3: function(e) {
2899
2917
  return xn.hash(e.data, !1);
@@ -2902,7 +2920,7 @@ var dc = {
2902
2920
  return xn.hash(e.data);
2903
2921
  }
2904
2922
  };
2905
- function hc(e) {
2923
+ function fc(e) {
2906
2924
  const t = new Error("Expect argument to be non-empty array");
2907
2925
  if (typeof e != "object" || !e.length) throw t;
2908
2926
  const r = e.map(function(s) {
@@ -2930,23 +2948,23 @@ ge.APP_VERSION_KEY = "AppVersion";
2930
2948
  var Et = {};
2931
2949
  Object.defineProperty(Et, "__esModule", { value: !0 });
2932
2950
  Et.RelayEventManager = void 0;
2933
- const fc = M;
2934
- class _c {
2951
+ const _c = M;
2952
+ class pc {
2935
2953
  constructor() {
2936
2954
  this._nextRequestId = 0, this.callbacks = /* @__PURE__ */ new Map();
2937
2955
  }
2938
2956
  makeRequestId() {
2939
2957
  this._nextRequestId = (this._nextRequestId + 1) % 2147483647;
2940
- const t = this._nextRequestId, r = (0, fc.prepend0x)(t.toString(16));
2958
+ const t = this._nextRequestId, r = (0, _c.prepend0x)(t.toString(16));
2941
2959
  return this.callbacks.get(r) && this.callbacks.delete(r), t;
2942
2960
  }
2943
2961
  }
2944
- Et.RelayEventManager = _c;
2962
+ Et.RelayEventManager = pc;
2945
2963
  var nr = {}, ir = {}, sr = {};
2946
2964
  Object.defineProperty(sr, "__esModule", { value: !0 });
2947
2965
  sr.WalletLinkCipher = void 0;
2948
2966
  const Pt = M;
2949
- class pc {
2967
+ class gc {
2950
2968
  // @param secret hex representation of 32-byte secret
2951
2969
  constructor(t) {
2952
2970
  this.secret = t;
@@ -2993,11 +3011,11 @@ class pc {
2993
3011
  });
2994
3012
  }
2995
3013
  }
2996
- sr.WalletLinkCipher = pc;
3014
+ sr.WalletLinkCipher = gc;
2997
3015
  var ar = {};
2998
3016
  Object.defineProperty(ar, "__esModule", { value: !0 });
2999
3017
  ar.WalletLinkHTTP = void 0;
3000
- class gc {
3018
+ class bc {
3001
3019
  constructor(t, r, n) {
3002
3020
  this.linkAPIUrl = t, this.sessionId = r;
3003
3021
  const i = `${r}:${n}`;
@@ -3035,7 +3053,7 @@ class gc {
3035
3053
  throw new Error(`Check unseen events failed: ${r.status}`);
3036
3054
  }
3037
3055
  }
3038
- ar.WalletLinkHTTP = gc;
3056
+ ar.WalletLinkHTTP = bc;
3039
3057
  var rt = {};
3040
3058
  Object.defineProperty(rt, "__esModule", { value: !0 });
3041
3059
  rt.WalletLinkWebSocket = rt.ConnectionState = void 0;
@@ -3043,7 +3061,7 @@ var Xe;
3043
3061
  (function(e) {
3044
3062
  e[e.DISCONNECTED = 0] = "DISCONNECTED", e[e.CONNECTING = 1] = "CONNECTING", e[e.CONNECTED = 2] = "CONNECTED";
3045
3063
  })(Xe || (rt.ConnectionState = Xe = {}));
3046
- class bc {
3064
+ class yc {
3047
3065
  setConnectionStateListener(t) {
3048
3066
  this.connectionStateListener = t;
3049
3067
  }
@@ -3126,11 +3144,11 @@ class bc {
3126
3144
  t && (this.webSocket = null, t.onclose = null, t.onerror = null, t.onmessage = null, t.onopen = null);
3127
3145
  }
3128
3146
  }
3129
- rt.WalletLinkWebSocket = bc;
3147
+ rt.WalletLinkWebSocket = yc;
3130
3148
  Object.defineProperty(ir, "__esModule", { value: !0 });
3131
3149
  ir.WalletLinkConnection = void 0;
3132
- const mi = ge, yc = sr, vc = ar, Nt = rt, Ye = J, wi = 1e4, mc = 6e4;
3133
- class wc {
3150
+ const wi = ge, vc = sr, mc = ar, Nt = rt, Ye = J, Ei = 1e4, wc = 6e4;
3151
+ class Ec {
3134
3152
  /**
3135
3153
  * Constructor
3136
3154
  * @param session Session
@@ -3171,16 +3189,16 @@ class wc {
3171
3189
  (c = this.listener) === null || c === void 0 || c.metadataUpdated(a, d);
3172
3190
  }
3173
3191
  }, this.handleWalletUsernameUpdated = async (a) => {
3174
- this.handleMetadataUpdated(mi.WALLET_USER_NAME_KEY, a);
3192
+ this.handleMetadataUpdated(wi.WALLET_USER_NAME_KEY, a);
3175
3193
  }, this.handleAppVersionUpdated = async (a) => {
3176
- this.handleMetadataUpdated(mi.APP_VERSION_KEY, a);
3194
+ this.handleMetadataUpdated(wi.APP_VERSION_KEY, a);
3177
3195
  }, this.handleChainUpdated = async (a, o) => {
3178
3196
  var c;
3179
3197
  {
3180
3198
  const d = await this.cipher.decrypt(a), p = await this.cipher.decrypt(o);
3181
3199
  (c = this.listener) === null || c === void 0 || c.chainUpdated(d, p);
3182
3200
  }
3183
- }, this.session = t, this.cipher = new yc.WalletLinkCipher(t.secret), this.listener = n;
3201
+ }, this.session = t, this.cipher = new vc.WalletLinkCipher(t.secret), this.listener = n;
3184
3202
  const s = new Nt.WalletLinkWebSocket(`${r}/rpc`, i);
3185
3203
  s.setConnectionStateListener(async (a) => {
3186
3204
  let o = !1;
@@ -3202,7 +3220,7 @@ class wc {
3202
3220
  }
3203
3221
  this.updateLastHeartbeat(), setInterval(() => {
3204
3222
  this.heartbeat();
3205
- }, wi), this.shouldFetchUnseenEventsOnConnect && this.fetchUnseenEventsAPI();
3223
+ }, Ei), this.shouldFetchUnseenEventsOnConnect && this.fetchUnseenEventsAPI();
3206
3224
  break;
3207
3225
  case Nt.ConnectionState.CONNECTING:
3208
3226
  break;
@@ -3231,7 +3249,7 @@ class wc {
3231
3249
  }
3232
3250
  }
3233
3251
  a.id !== void 0 && ((o = this.requestResolutions.get(a.id)) === null || o === void 0 || o(a));
3234
- }), this.ws = s, this.http = new vc.WalletLinkHTTP(r, t.id, t.key);
3252
+ }), this.ws = s, this.http = new mc.WalletLinkHTTP(r, t.id, t.key);
3235
3253
  }
3236
3254
  /**
3237
3255
  * Make a connection to the server
@@ -3352,7 +3370,7 @@ class wc {
3352
3370
  this.lastHeartbeatResponse = Date.now();
3353
3371
  }
3354
3372
  heartbeat() {
3355
- if (Date.now() - this.lastHeartbeatResponse > wi * 2) {
3373
+ if (Date.now() - this.lastHeartbeatResponse > Ei * 2) {
3356
3374
  this.ws.disconnect();
3357
3375
  return;
3358
3376
  }
@@ -3361,7 +3379,7 @@ class wc {
3361
3379
  } catch {
3362
3380
  }
3363
3381
  }
3364
- async makeRequest(t, r = mc) {
3382
+ async makeRequest(t, r = wc) {
3365
3383
  const n = t.id;
3366
3384
  this.sendData(t);
3367
3385
  let i;
@@ -3405,13 +3423,13 @@ class wc {
3405
3423
  this.sendData(t);
3406
3424
  }
3407
3425
  }
3408
- ir.WalletLinkConnection = wc;
3409
- var or = {}, $s = { exports: {} }, Fs = Be.Buffer;
3426
+ ir.WalletLinkConnection = Ec;
3427
+ var or = {}, Fs = { exports: {} }, qs = Be.Buffer;
3410
3428
  function cr(e, t) {
3411
- this._block = Fs.alloc(e), this._finalSize = t, this._blockSize = e, this._len = 0;
3429
+ this._block = qs.alloc(e), this._finalSize = t, this._blockSize = e, this._len = 0;
3412
3430
  }
3413
3431
  cr.prototype.update = function(e, t) {
3414
- typeof e == "string" && (t = t || "utf8", e = Fs.from(e, t));
3432
+ typeof e == "string" && (t = t || "utf8", e = qs.from(e, t));
3415
3433
  for (var r = this._block, n = this._blockSize, i = e.length, s = this._len, a = 0; a < i; ) {
3416
3434
  for (var o = s % n, c = Math.min(i - a, n - o), d = 0; d < c; d++)
3417
3435
  r[o + d] = e[a + d];
@@ -3436,80 +3454,80 @@ cr.prototype.digest = function(e) {
3436
3454
  cr.prototype._update = function() {
3437
3455
  throw new Error("_update must be implemented by subclass");
3438
3456
  };
3439
- var ct = cr, Ec = de(), qs = ct, Sc = Be.Buffer, Cc = [
3457
+ var ct = cr, Sc = de, Ks = ct, Cc = Be.Buffer, xc = [
3440
3458
  1518500249,
3441
3459
  1859775393,
3442
3460
  -1894007588,
3443
3461
  -899497514
3444
- ], xc = new Array(80);
3462
+ ], kc = new Array(80);
3445
3463
  function St() {
3446
- this.init(), this._w = xc, qs.call(this, 64, 56);
3464
+ this.init(), this._w = kc, Ks.call(this, 64, 56);
3447
3465
  }
3448
- Ec(St, qs);
3466
+ Sc(St, Ks);
3449
3467
  St.prototype.init = function() {
3450
3468
  return this._a = 1732584193, this._b = 4023233417, this._c = 2562383102, this._d = 271733878, this._e = 3285377520, this;
3451
3469
  };
3452
- function kc(e) {
3470
+ function Rc(e) {
3453
3471
  return e << 5 | e >>> 27;
3454
3472
  }
3455
- function Rc(e) {
3473
+ function Ic(e) {
3456
3474
  return e << 30 | e >>> 2;
3457
3475
  }
3458
- function Ic(e, t, r, n) {
3476
+ function Mc(e, t, r, n) {
3459
3477
  return e === 0 ? t & r | ~t & n : e === 2 ? t & r | t & n | r & n : t ^ r ^ n;
3460
3478
  }
3461
3479
  St.prototype._update = function(e) {
3462
3480
  for (var t = this._w, r = this._a | 0, n = this._b | 0, i = this._c | 0, s = this._d | 0, a = this._e | 0, o = 0; o < 16; ++o) t[o] = e.readInt32BE(o * 4);
3463
3481
  for (; o < 80; ++o) t[o] = t[o - 3] ^ t[o - 8] ^ t[o - 14] ^ t[o - 16];
3464
3482
  for (var c = 0; c < 80; ++c) {
3465
- var d = ~~(c / 20), p = kc(r) + Ic(d, n, i, s) + a + t[c] + Cc[d] | 0;
3466
- a = s, s = i, i = Rc(n), n = r, r = p;
3483
+ var d = ~~(c / 20), p = Rc(r) + Mc(d, n, i, s) + a + t[c] + xc[d] | 0;
3484
+ a = s, s = i, i = Ic(n), n = r, r = p;
3467
3485
  }
3468
3486
  this._a = r + this._a | 0, this._b = n + this._b | 0, this._c = i + this._c | 0, this._d = s + this._d | 0, this._e = a + this._e | 0;
3469
3487
  };
3470
3488
  St.prototype._hash = function() {
3471
- var e = Sc.allocUnsafe(20);
3489
+ var e = Cc.allocUnsafe(20);
3472
3490
  return e.writeInt32BE(this._a | 0, 0), e.writeInt32BE(this._b | 0, 4), e.writeInt32BE(this._c | 0, 8), e.writeInt32BE(this._d | 0, 12), e.writeInt32BE(this._e | 0, 16), e;
3473
3491
  };
3474
- var Mc = St, Ac = de(), Ks = ct, Lc = Be.Buffer, Tc = [
3492
+ var Ac = St, Lc = de, zs = ct, Tc = Be.Buffer, Pc = [
3475
3493
  1518500249,
3476
3494
  1859775393,
3477
3495
  -1894007588,
3478
3496
  -899497514
3479
- ], Pc = new Array(80);
3497
+ ], Nc = new Array(80);
3480
3498
  function Ct() {
3481
- this.init(), this._w = Pc, Ks.call(this, 64, 56);
3499
+ this.init(), this._w = Nc, zs.call(this, 64, 56);
3482
3500
  }
3483
- Ac(Ct, Ks);
3501
+ Lc(Ct, zs);
3484
3502
  Ct.prototype.init = function() {
3485
3503
  return this._a = 1732584193, this._b = 4023233417, this._c = 2562383102, this._d = 271733878, this._e = 3285377520, this;
3486
3504
  };
3487
- function Nc(e) {
3505
+ function Oc(e) {
3488
3506
  return e << 1 | e >>> 31;
3489
3507
  }
3490
3508
  function Dc(e) {
3491
3509
  return e << 5 | e >>> 27;
3492
3510
  }
3493
- function Oc(e) {
3511
+ function Bc(e) {
3494
3512
  return e << 30 | e >>> 2;
3495
3513
  }
3496
- function Bc(e, t, r, n) {
3514
+ function jc(e, t, r, n) {
3497
3515
  return e === 0 ? t & r | ~t & n : e === 2 ? t & r | t & n | r & n : t ^ r ^ n;
3498
3516
  }
3499
3517
  Ct.prototype._update = function(e) {
3500
3518
  for (var t = this._w, r = this._a | 0, n = this._b | 0, i = this._c | 0, s = this._d | 0, a = this._e | 0, o = 0; o < 16; ++o) t[o] = e.readInt32BE(o * 4);
3501
- for (; o < 80; ++o) t[o] = Nc(t[o - 3] ^ t[o - 8] ^ t[o - 14] ^ t[o - 16]);
3519
+ for (; o < 80; ++o) t[o] = Oc(t[o - 3] ^ t[o - 8] ^ t[o - 14] ^ t[o - 16]);
3502
3520
  for (var c = 0; c < 80; ++c) {
3503
- var d = ~~(c / 20), p = Dc(r) + Bc(d, n, i, s) + a + t[c] + Tc[d] | 0;
3504
- a = s, s = i, i = Oc(n), n = r, r = p;
3521
+ var d = ~~(c / 20), p = Dc(r) + jc(d, n, i, s) + a + t[c] + Pc[d] | 0;
3522
+ a = s, s = i, i = Bc(n), n = r, r = p;
3505
3523
  }
3506
3524
  this._a = r + this._a | 0, this._b = n + this._b | 0, this._c = i + this._c | 0, this._d = s + this._d | 0, this._e = a + this._e | 0;
3507
3525
  };
3508
3526
  Ct.prototype._hash = function() {
3509
- var e = Lc.allocUnsafe(20);
3527
+ var e = Tc.allocUnsafe(20);
3510
3528
  return e.writeInt32BE(this._a | 0, 0), e.writeInt32BE(this._b | 0, 4), e.writeInt32BE(this._c | 0, 8), e.writeInt32BE(this._d | 0, 12), e.writeInt32BE(this._e | 0, 16), e;
3511
3529
  };
3512
- var jc = Ct, Wc = de(), zs = ct, Uc = Be.Buffer, Hc = [
3530
+ var Wc = Ct, Uc = de, Vs = ct, Hc = Be.Buffer, $c = [
3513
3531
  1116352408,
3514
3532
  1899447441,
3515
3533
  3049323471,
@@ -3574,58 +3592,58 @@ var jc = Ct, Wc = de(), zs = ct, Uc = Be.Buffer, Hc = [
3574
3592
  2756734187,
3575
3593
  3204031479,
3576
3594
  3329325298
3577
- ], $c = new Array(64);
3595
+ ], Fc = new Array(64);
3578
3596
  function xt() {
3579
- this.init(), this._w = $c, zs.call(this, 64, 56);
3597
+ this.init(), this._w = Fc, Vs.call(this, 64, 56);
3580
3598
  }
3581
- Wc(xt, zs);
3599
+ Uc(xt, Vs);
3582
3600
  xt.prototype.init = function() {
3583
3601
  return this._a = 1779033703, this._b = 3144134277, this._c = 1013904242, this._d = 2773480762, this._e = 1359893119, this._f = 2600822924, this._g = 528734635, this._h = 1541459225, this;
3584
3602
  };
3585
- function Fc(e, t, r) {
3603
+ function qc(e, t, r) {
3586
3604
  return r ^ e & (t ^ r);
3587
3605
  }
3588
- function qc(e, t, r) {
3606
+ function Kc(e, t, r) {
3589
3607
  return e & t | r & (e | t);
3590
3608
  }
3591
- function Kc(e) {
3609
+ function zc(e) {
3592
3610
  return (e >>> 2 | e << 30) ^ (e >>> 13 | e << 19) ^ (e >>> 22 | e << 10);
3593
3611
  }
3594
- function zc(e) {
3612
+ function Vc(e) {
3595
3613
  return (e >>> 6 | e << 26) ^ (e >>> 11 | e << 21) ^ (e >>> 25 | e << 7);
3596
3614
  }
3597
- function Vc(e) {
3615
+ function Gc(e) {
3598
3616
  return (e >>> 7 | e << 25) ^ (e >>> 18 | e << 14) ^ e >>> 3;
3599
3617
  }
3600
- function Gc(e) {
3618
+ function Zc(e) {
3601
3619
  return (e >>> 17 | e << 15) ^ (e >>> 19 | e << 13) ^ e >>> 10;
3602
3620
  }
3603
3621
  xt.prototype._update = function(e) {
3604
3622
  for (var t = this._w, r = this._a | 0, n = this._b | 0, i = this._c | 0, s = this._d | 0, a = this._e | 0, o = this._f | 0, c = this._g | 0, d = this._h | 0, p = 0; p < 16; ++p) t[p] = e.readInt32BE(p * 4);
3605
- for (; p < 64; ++p) t[p] = Gc(t[p - 2]) + t[p - 7] + Vc(t[p - 15]) + t[p - 16] | 0;
3623
+ for (; p < 64; ++p) t[p] = Zc(t[p - 2]) + t[p - 7] + Gc(t[p - 15]) + t[p - 16] | 0;
3606
3624
  for (var h = 0; h < 64; ++h) {
3607
- var _ = d + zc(a) + Fc(a, o, c) + Hc[h] + t[h] | 0, y = Kc(r) + qc(r, n, i) | 0;
3625
+ var _ = d + Vc(a) + qc(a, o, c) + $c[h] + t[h] | 0, y = zc(r) + Kc(r, n, i) | 0;
3608
3626
  d = c, c = o, o = a, a = s + _ | 0, s = i, i = n, n = r, r = _ + y | 0;
3609
3627
  }
3610
3628
  this._a = r + this._a | 0, this._b = n + this._b | 0, this._c = i + this._c | 0, this._d = s + this._d | 0, this._e = a + this._e | 0, this._f = o + this._f | 0, this._g = c + this._g | 0, this._h = d + this._h | 0;
3611
3629
  };
3612
3630
  xt.prototype._hash = function() {
3613
- var e = Uc.allocUnsafe(32);
3631
+ var e = Hc.allocUnsafe(32);
3614
3632
  return e.writeInt32BE(this._a, 0), e.writeInt32BE(this._b, 4), e.writeInt32BE(this._c, 8), e.writeInt32BE(this._d, 12), e.writeInt32BE(this._e, 16), e.writeInt32BE(this._f, 20), e.writeInt32BE(this._g, 24), e.writeInt32BE(this._h, 28), e;
3615
3633
  };
3616
- var Vs = xt, Zc = de(), Yc = Vs, Jc = ct, Qc = Be.Buffer, Xc = new Array(64);
3634
+ var Gs = xt, Yc = de, Jc = Gs, Qc = ct, Xc = Be.Buffer, el = new Array(64);
3617
3635
  function lr() {
3618
- this.init(), this._w = Xc, Jc.call(this, 64, 56);
3636
+ this.init(), this._w = el, Qc.call(this, 64, 56);
3619
3637
  }
3620
- Zc(lr, Yc);
3638
+ Yc(lr, Jc);
3621
3639
  lr.prototype.init = function() {
3622
3640
  return this._a = 3238371032, this._b = 914150663, this._c = 812702999, this._d = 4144912697, this._e = 4290775857, this._f = 1750603025, this._g = 1694076839, this._h = 3204075428, this;
3623
3641
  };
3624
3642
  lr.prototype._hash = function() {
3625
- var e = Qc.allocUnsafe(28);
3643
+ var e = Xc.allocUnsafe(28);
3626
3644
  return e.writeInt32BE(this._a, 0), e.writeInt32BE(this._b, 4), e.writeInt32BE(this._c, 8), e.writeInt32BE(this._d, 12), e.writeInt32BE(this._e, 16), e.writeInt32BE(this._f, 20), e.writeInt32BE(this._g, 24), e;
3627
3645
  };
3628
- var el = lr, tl = de(), Gs = ct, rl = Be.Buffer, Ei = [
3646
+ var tl = lr, rl = de, Zs = ct, nl = Be.Buffer, Si = [
3629
3647
  1116352408,
3630
3648
  3609767458,
3631
3649
  1899447441,
@@ -3786,36 +3804,36 @@ var el = lr, tl = de(), Gs = ct, rl = Be.Buffer, Ei = [
3786
3804
  987167468,
3787
3805
  1816402316,
3788
3806
  1246189591
3789
- ], nl = new Array(160);
3807
+ ], il = new Array(160);
3790
3808
  function kt() {
3791
- this.init(), this._w = nl, Gs.call(this, 128, 112);
3809
+ this.init(), this._w = il, Zs.call(this, 128, 112);
3792
3810
  }
3793
- tl(kt, Gs);
3811
+ rl(kt, Zs);
3794
3812
  kt.prototype.init = function() {
3795
3813
  return this._ah = 1779033703, this._bh = 3144134277, this._ch = 1013904242, this._dh = 2773480762, this._eh = 1359893119, this._fh = 2600822924, this._gh = 528734635, this._hh = 1541459225, this._al = 4089235720, this._bl = 2227873595, this._cl = 4271175723, this._dl = 1595750129, this._el = 2917565137, this._fl = 725511199, this._gl = 4215389547, this._hl = 327033209, this;
3796
3814
  };
3797
- function Si(e, t, r) {
3815
+ function Ci(e, t, r) {
3798
3816
  return r ^ e & (t ^ r);
3799
3817
  }
3800
- function Ci(e, t, r) {
3818
+ function xi(e, t, r) {
3801
3819
  return e & t | r & (e | t);
3802
3820
  }
3803
- function xi(e, t) {
3821
+ function ki(e, t) {
3804
3822
  return (e >>> 28 | t << 4) ^ (t >>> 2 | e << 30) ^ (t >>> 7 | e << 25);
3805
3823
  }
3806
- function ki(e, t) {
3824
+ function Ri(e, t) {
3807
3825
  return (e >>> 14 | t << 18) ^ (e >>> 18 | t << 14) ^ (t >>> 9 | e << 23);
3808
3826
  }
3809
- function il(e, t) {
3827
+ function sl(e, t) {
3810
3828
  return (e >>> 1 | t << 31) ^ (e >>> 8 | t << 24) ^ e >>> 7;
3811
3829
  }
3812
- function sl(e, t) {
3830
+ function al(e, t) {
3813
3831
  return (e >>> 1 | t << 31) ^ (e >>> 8 | t << 24) ^ (e >>> 7 | t << 25);
3814
3832
  }
3815
- function al(e, t) {
3833
+ function ol(e, t) {
3816
3834
  return (e >>> 19 | t << 13) ^ (t >>> 29 | e << 3) ^ e >>> 6;
3817
3835
  }
3818
- function ol(e, t) {
3836
+ function cl(e, t) {
3819
3837
  return (e >>> 19 | t << 13) ^ (t >>> 29 | e << 3) ^ (e >>> 6 | t << 26);
3820
3838
  }
3821
3839
  function V(e, t) {
@@ -3825,65 +3843,65 @@ kt.prototype._update = function(e) {
3825
3843
  for (var t = this._w, r = this._ah | 0, n = this._bh | 0, i = this._ch | 0, s = this._dh | 0, a = this._eh | 0, o = this._fh | 0, c = this._gh | 0, d = this._hh | 0, p = this._al | 0, h = this._bl | 0, _ = this._cl | 0, y = this._dl | 0, w = this._el | 0, k = this._fl | 0, m = this._gl | 0, f = this._hl | 0, v = 0; v < 32; v += 2)
3826
3844
  t[v] = e.readInt32BE(v * 4), t[v + 1] = e.readInt32BE(v * 4 + 4);
3827
3845
  for (; v < 160; v += 2) {
3828
- var E = t[v - 30], S = t[v - 15 * 2 + 1], R = il(E, S), A = sl(S, E);
3846
+ var E = t[v - 30], S = t[v - 15 * 2 + 1], R = sl(E, S), A = al(S, E);
3829
3847
  E = t[v - 2 * 2], S = t[v - 2 * 2 + 1];
3830
- var j = al(E, S), P = ol(S, E), T = t[v - 7 * 2], H = t[v - 7 * 2 + 1], Q = t[v - 16 * 2], me = t[v - 16 * 2 + 1], q = A + H | 0, ee = R + T + V(q, A) | 0;
3848
+ var j = ol(E, S), P = cl(S, E), T = t[v - 7 * 2], H = t[v - 7 * 2 + 1], Q = t[v - 16 * 2], me = t[v - 16 * 2 + 1], q = A + H | 0, ee = R + T + V(q, A) | 0;
3831
3849
  q = q + P | 0, ee = ee + j + V(q, P) | 0, q = q + me | 0, ee = ee + Q + V(q, me) | 0, t[v] = ee, t[v + 1] = q;
3832
3850
  }
3833
3851
  for (var te = 0; te < 160; te += 2) {
3834
3852
  ee = t[te], q = t[te + 1];
3835
- var Pe = Ci(r, n, i), ie = Ci(p, h, _), we = xi(r, p), se = xi(p, r), Ee = ki(a, w), Ne = ki(w, a), Se = Ei[te], re = Ei[te + 1], De = Si(a, o, c), Ce = Si(w, k, m), b = f + Ne | 0, g = d + Ee + V(b, f) | 0;
3836
- b = b + Ce | 0, g = g + De + V(b, Ce) | 0, b = b + re | 0, g = g + Se + V(b, re) | 0, b = b + q | 0, g = g + ee + V(b, q) | 0;
3853
+ var Pe = xi(r, n, i), ie = xi(p, h, _), we = ki(r, p), se = ki(p, r), Ee = Ri(a, w), Ne = Ri(w, a), Se = Si[te], re = Si[te + 1], Oe = Ci(a, o, c), Ce = Ci(w, k, m), b = f + Ne | 0, g = d + Ee + V(b, f) | 0;
3854
+ b = b + Ce | 0, g = g + Oe + V(b, Ce) | 0, b = b + re | 0, g = g + Se + V(b, re) | 0, b = b + q | 0, g = g + ee + V(b, q) | 0;
3837
3855
  var x = se + ie | 0, L = we + Pe + V(x, se) | 0;
3838
3856
  d = c, f = m, c = o, m = k, o = a, k = w, w = y + b | 0, a = s + g + V(w, y) | 0, s = i, y = _, i = n, _ = h, n = r, h = p, p = b + x | 0, r = g + L + V(p, b) | 0;
3839
3857
  }
3840
3858
  this._al = this._al + p | 0, this._bl = this._bl + h | 0, this._cl = this._cl + _ | 0, this._dl = this._dl + y | 0, this._el = this._el + w | 0, this._fl = this._fl + k | 0, this._gl = this._gl + m | 0, this._hl = this._hl + f | 0, this._ah = this._ah + r + V(this._al, p) | 0, this._bh = this._bh + n + V(this._bl, h) | 0, this._ch = this._ch + i + V(this._cl, _) | 0, this._dh = this._dh + s + V(this._dl, y) | 0, this._eh = this._eh + a + V(this._el, w) | 0, this._fh = this._fh + o + V(this._fl, k) | 0, this._gh = this._gh + c + V(this._gl, m) | 0, this._hh = this._hh + d + V(this._hl, f) | 0;
3841
3859
  };
3842
3860
  kt.prototype._hash = function() {
3843
- var e = rl.allocUnsafe(64);
3861
+ var e = nl.allocUnsafe(64);
3844
3862
  function t(r, n, i) {
3845
3863
  e.writeInt32BE(r, i), e.writeInt32BE(n, i + 4);
3846
3864
  }
3847
3865
  return t(this._ah, this._al, 0), t(this._bh, this._bl, 8), t(this._ch, this._cl, 16), t(this._dh, this._dl, 24), t(this._eh, this._el, 32), t(this._fh, this._fl, 40), t(this._gh, this._gl, 48), t(this._hh, this._hl, 56), e;
3848
3866
  };
3849
- var Zs = kt, cl = de(), ll = Zs, ul = ct, dl = Be.Buffer, hl = new Array(160);
3867
+ var Ys = kt, ll = de, ul = Ys, dl = ct, hl = Be.Buffer, fl = new Array(160);
3850
3868
  function ur() {
3851
- this.init(), this._w = hl, ul.call(this, 128, 112);
3869
+ this.init(), this._w = fl, dl.call(this, 128, 112);
3852
3870
  }
3853
- cl(ur, ll);
3871
+ ll(ur, ul);
3854
3872
  ur.prototype.init = function() {
3855
3873
  return this._ah = 3418070365, this._bh = 1654270250, this._ch = 2438529370, this._dh = 355462360, this._eh = 1731405415, this._fh = 2394180231, this._gh = 3675008525, this._hh = 1203062813, this._al = 3238371032, this._bl = 914150663, this._cl = 812702999, this._dl = 4144912697, this._el = 4290775857, this._fl = 1750603025, this._gl = 1694076839, this._hl = 3204075428, this;
3856
3874
  };
3857
3875
  ur.prototype._hash = function() {
3858
- var e = dl.allocUnsafe(48);
3876
+ var e = hl.allocUnsafe(48);
3859
3877
  function t(r, n, i) {
3860
3878
  e.writeInt32BE(r, i), e.writeInt32BE(n, i + 4);
3861
3879
  }
3862
3880
  return t(this._ah, this._al, 0), t(this._bh, this._bl, 8), t(this._ch, this._cl, 16), t(this._dh, this._dl, 24), t(this._eh, this._el, 32), t(this._fh, this._fl, 40), e;
3863
3881
  };
3864
- var fl = ur, qe = $s.exports = function(t) {
3882
+ var _l = ur, qe = Fs.exports = function(t) {
3865
3883
  t = t.toLowerCase();
3866
3884
  var r = qe[t];
3867
3885
  if (!r) throw new Error(t + " is not supported (we accept pull requests)");
3868
3886
  return new r();
3869
3887
  };
3870
- qe.sha = Mc;
3871
- qe.sha1 = jc;
3872
- qe.sha224 = el;
3873
- qe.sha256 = Vs;
3874
- qe.sha384 = fl;
3875
- qe.sha512 = Zs;
3876
- var _l = $s.exports;
3888
+ qe.sha = Ac;
3889
+ qe.sha1 = Wc;
3890
+ qe.sha224 = tl;
3891
+ qe.sha256 = Gs;
3892
+ qe.sha384 = _l;
3893
+ qe.sha512 = Ys;
3894
+ var pl = Fs.exports;
3877
3895
  Object.defineProperty(or, "__esModule", { value: !0 });
3878
3896
  or.WalletLinkSession = void 0;
3879
- const pl = _l, Ri = M, Ii = "session:id", Mi = "session:secret", Ai = "session:linked";
3880
- class Fn {
3897
+ const gl = pl, Ii = M, Mi = "session:id", Ai = "session:secret", Li = "session:linked";
3898
+ class qn {
3881
3899
  constructor(t, r, n, i) {
3882
- this._storage = t, this._id = r || (0, Ri.randomBytesHex)(16), this._secret = n || (0, Ri.randomBytesHex)(32), this._key = new pl.sha256().update(`${this._id}, ${this._secret} WalletLink`).digest("hex"), this._linked = !!i;
3900
+ this._storage = t, this._id = r || (0, Ii.randomBytesHex)(16), this._secret = n || (0, Ii.randomBytesHex)(32), this._key = new gl.sha256().update(`${this._id}, ${this._secret} WalletLink`).digest("hex"), this._linked = !!i;
3883
3901
  }
3884
3902
  static load(t) {
3885
- const r = t.getItem(Ii), n = t.getItem(Ai), i = t.getItem(Mi);
3886
- return r && i ? new Fn(t, r, i, n === "1") : null;
3903
+ const r = t.getItem(Mi), n = t.getItem(Li), i = t.getItem(Ai);
3904
+ return r && i ? new qn(t, r, i, n === "1") : null;
3887
3905
  }
3888
3906
  get id() {
3889
3907
  return this._id;
@@ -3901,17 +3919,17 @@ class Fn {
3901
3919
  this._linked = t, this.persistLinked();
3902
3920
  }
3903
3921
  save() {
3904
- return this._storage.setItem(Ii, this._id), this._storage.setItem(Mi, this._secret), this.persistLinked(), this;
3922
+ return this._storage.setItem(Mi, this._id), this._storage.setItem(Ai, this._secret), this.persistLinked(), this;
3905
3923
  }
3906
3924
  persistLinked() {
3907
- this._storage.setItem(Ai, this._linked ? "1" : "0");
3925
+ this._storage.setItem(Li, this._linked ? "1" : "0");
3908
3926
  }
3909
3927
  }
3910
- or.WalletLinkSession = Fn;
3928
+ or.WalletLinkSession = qn;
3911
3929
  var ne = {};
3912
3930
  Object.defineProperty(ne, "__esModule", { value: !0 });
3913
3931
  ne.isDarkMode = ne.isMobileWeb = ne.getLocation = ne.createQrUrl = void 0;
3914
- function gl(e, t, r, n, i, s) {
3932
+ function bl(e, t, r, n, i, s) {
3915
3933
  const a = n ? "parent-id" : "id", o = new URLSearchParams({
3916
3934
  [a]: e,
3917
3935
  secret: t,
@@ -3921,82 +3939,82 @@ function gl(e, t, r, n, i, s) {
3921
3939
  }).toString();
3922
3940
  return `${r}/#/link?${o}`;
3923
3941
  }
3924
- ne.createQrUrl = gl;
3925
- function bl() {
3942
+ ne.createQrUrl = bl;
3943
+ function yl() {
3926
3944
  try {
3927
3945
  return window.frameElement !== null;
3928
3946
  } catch {
3929
3947
  return !1;
3930
3948
  }
3931
3949
  }
3932
- function yl() {
3950
+ function vl() {
3933
3951
  try {
3934
- return bl() && window.top ? window.top.location : window.location;
3952
+ return yl() && window.top ? window.top.location : window.location;
3935
3953
  } catch {
3936
3954
  return window.location;
3937
3955
  }
3938
3956
  }
3939
- ne.getLocation = yl;
3940
- function vl() {
3957
+ ne.getLocation = vl;
3958
+ function ml() {
3941
3959
  var e;
3942
3960
  return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test((e = window == null ? void 0 : window.navigator) === null || e === void 0 ? void 0 : e.userAgent);
3943
3961
  }
3944
- ne.isMobileWeb = vl;
3945
- function ml() {
3962
+ ne.isMobileWeb = ml;
3963
+ function wl() {
3946
3964
  var e, t;
3947
3965
  return (t = (e = window == null ? void 0 : window.matchMedia) === null || e === void 0 ? void 0 : e.call(window, "(prefers-color-scheme: dark)").matches) !== null && t !== void 0 ? t : !1;
3948
3966
  }
3949
- ne.isDarkMode = ml;
3950
- var dr = {}, Rt = {}, qn = {};
3951
- Object.defineProperty(qn, "__esModule", { value: !0 });
3952
- qn.default = '@namespace svg "http://www.w3.org/2000/svg";.-cbwsdk-css-reset,.-cbwsdk-css-reset *{animation:none;animation-delay:0;animation-direction:normal;animation-duration:0;animation-fill-mode:none;animation-iteration-count:1;animation-name:none;animation-play-state:running;animation-timing-function:ease;backface-visibility:visible;background:0;background-attachment:scroll;background-clip:border-box;background-color:rgba(0,0,0,0);background-image:none;background-origin:padding-box;background-position:0 0;background-position-x:0;background-position-y:0;background-repeat:repeat;background-size:auto auto;border:0;border-style:none;border-width:medium;border-color:inherit;border-bottom:0;border-bottom-color:inherit;border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-style:none;border-bottom-width:medium;border-collapse:separate;border-image:none;border-left:0;border-left-color:inherit;border-left-style:none;border-left-width:medium;border-radius:0;border-right:0;border-right-color:inherit;border-right-style:none;border-right-width:medium;border-spacing:0;border-top:0;border-top-color:inherit;border-top-left-radius:0;border-top-right-radius:0;border-top-style:none;border-top-width:medium;box-shadow:none;box-sizing:border-box;caption-side:top;clear:none;clip:auto;color:inherit;columns:auto;column-count:auto;column-fill:balance;column-gap:normal;column-rule:medium none currentColor;column-rule-color:currentColor;column-rule-style:none;column-rule-width:none;column-span:1;column-width:auto;counter-increment:none;counter-reset:none;direction:ltr;empty-cells:show;float:none;font:normal;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;height:auto;hyphens:none;letter-spacing:normal;line-height:normal;list-style:none;list-style-image:none;list-style-position:outside;list-style-type:disc;margin:0;margin-bottom:0;margin-left:0;margin-right:0;margin-top:0;opacity:1;orphans:0;outline:0;outline-color:invert;outline-style:none;outline-width:medium;overflow:visible;overflow-x:visible;overflow-y:visible;padding:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0;page-break-after:auto;page-break-before:auto;page-break-inside:auto;perspective:none;perspective-origin:50% 50%;pointer-events:auto;position:static;quotes:"\\201C" "\\201D" "\\2018" "\\2019";tab-size:8;table-layout:auto;text-align:inherit;text-align-last:auto;text-decoration:none;text-decoration-color:inherit;text-decoration-line:none;text-decoration-style:solid;text-indent:0;text-shadow:none;text-transform:none;transform:none;transform-style:flat;transition:none;transition-delay:0s;transition-duration:0s;transition-property:none;transition-timing-function:ease;unicode-bidi:normal;vertical-align:baseline;visibility:visible;white-space:normal;widows:0;word-spacing:normal;z-index:auto}.-cbwsdk-css-reset strong{font-weight:bold}.-cbwsdk-css-reset *{box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;line-height:1}.-cbwsdk-css-reset [class*=container]{margin:0;padding:0}.-cbwsdk-css-reset style{display:none}';
3953
- var wl = Z && Z.__importDefault || function(e) {
3967
+ ne.isDarkMode = wl;
3968
+ var dr = {}, Rt = {}, Kn = {};
3969
+ Object.defineProperty(Kn, "__esModule", { value: !0 });
3970
+ Kn.default = '@namespace svg "http://www.w3.org/2000/svg";.-cbwsdk-css-reset,.-cbwsdk-css-reset *{animation:none;animation-delay:0;animation-direction:normal;animation-duration:0;animation-fill-mode:none;animation-iteration-count:1;animation-name:none;animation-play-state:running;animation-timing-function:ease;backface-visibility:visible;background:0;background-attachment:scroll;background-clip:border-box;background-color:rgba(0,0,0,0);background-image:none;background-origin:padding-box;background-position:0 0;background-position-x:0;background-position-y:0;background-repeat:repeat;background-size:auto auto;border:0;border-style:none;border-width:medium;border-color:inherit;border-bottom:0;border-bottom-color:inherit;border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-style:none;border-bottom-width:medium;border-collapse:separate;border-image:none;border-left:0;border-left-color:inherit;border-left-style:none;border-left-width:medium;border-radius:0;border-right:0;border-right-color:inherit;border-right-style:none;border-right-width:medium;border-spacing:0;border-top:0;border-top-color:inherit;border-top-left-radius:0;border-top-right-radius:0;border-top-style:none;border-top-width:medium;box-shadow:none;box-sizing:border-box;caption-side:top;clear:none;clip:auto;color:inherit;columns:auto;column-count:auto;column-fill:balance;column-gap:normal;column-rule:medium none currentColor;column-rule-color:currentColor;column-rule-style:none;column-rule-width:none;column-span:1;column-width:auto;counter-increment:none;counter-reset:none;direction:ltr;empty-cells:show;float:none;font:normal;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;height:auto;hyphens:none;letter-spacing:normal;line-height:normal;list-style:none;list-style-image:none;list-style-position:outside;list-style-type:disc;margin:0;margin-bottom:0;margin-left:0;margin-right:0;margin-top:0;opacity:1;orphans:0;outline:0;outline-color:invert;outline-style:none;outline-width:medium;overflow:visible;overflow-x:visible;overflow-y:visible;padding:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0;page-break-after:auto;page-break-before:auto;page-break-inside:auto;perspective:none;perspective-origin:50% 50%;pointer-events:auto;position:static;quotes:"\\201C" "\\201D" "\\2018" "\\2019";tab-size:8;table-layout:auto;text-align:inherit;text-align-last:auto;text-decoration:none;text-decoration-color:inherit;text-decoration-line:none;text-decoration-style:solid;text-indent:0;text-shadow:none;text-transform:none;transform:none;transform-style:flat;transition:none;transition-delay:0s;transition-duration:0s;transition-property:none;transition-timing-function:ease;unicode-bidi:normal;vertical-align:baseline;visibility:visible;white-space:normal;widows:0;word-spacing:normal;z-index:auto}.-cbwsdk-css-reset strong{font-weight:bold}.-cbwsdk-css-reset *{box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;line-height:1}.-cbwsdk-css-reset [class*=container]{margin:0;padding:0}.-cbwsdk-css-reset style{display:none}';
3971
+ var El = Z && Z.__importDefault || function(e) {
3954
3972
  return e && e.__esModule ? e : { default: e };
3955
3973
  };
3956
3974
  Object.defineProperty(Rt, "__esModule", { value: !0 });
3957
3975
  Rt.injectCssReset = void 0;
3958
- const El = wl(qn);
3959
- function Sl() {
3976
+ const Sl = El(Kn);
3977
+ function Cl() {
3960
3978
  const e = document.createElement("style");
3961
- e.type = "text/css", e.appendChild(document.createTextNode(El.default)), document.documentElement.appendChild(e);
3979
+ e.type = "text/css", e.appendChild(document.createTextNode(Sl.default)), document.documentElement.appendChild(e);
3962
3980
  }
3963
- Rt.injectCssReset = Sl;
3964
- var Kn = {};
3965
- function Ys(e) {
3981
+ Rt.injectCssReset = Cl;
3982
+ var zn = {};
3983
+ function Js(e) {
3966
3984
  var t, r, n = "";
3967
3985
  if (typeof e == "string" || typeof e == "number") n += e;
3968
- else if (typeof e == "object") if (Array.isArray(e)) for (t = 0; t < e.length; t++) e[t] && (r = Ys(e[t])) && (n && (n += " "), n += r);
3986
+ else if (typeof e == "object") if (Array.isArray(e)) for (t = 0; t < e.length; t++) e[t] && (r = Js(e[t])) && (n && (n += " "), n += r);
3969
3987
  else for (t in e) e[t] && (n && (n += " "), n += t);
3970
3988
  return n;
3971
3989
  }
3972
- function Li() {
3973
- for (var e, t, r = 0, n = ""; r < arguments.length; ) (e = arguments[r++]) && (t = Ys(e)) && (n && (n += " "), n += t);
3990
+ function Ti() {
3991
+ for (var e, t, r = 0, n = ""; r < arguments.length; ) (e = arguments[r++]) && (t = Js(e)) && (n && (n += " "), n += t);
3974
3992
  return n;
3975
3993
  }
3976
- const Cl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3994
+ const xl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3977
3995
  __proto__: null,
3978
- clsx: Li,
3979
- default: Li
3980
- }, Symbol.toStringTag, { value: "Module" })), Js = /* @__PURE__ */ Wn(Cl);
3981
- var It, U, Qs, Xs, Ue, Ti, ea, Pn, zn, Nn, Dn, ta, yt = {}, ra = [], xl = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, hr = Array.isArray;
3996
+ clsx: Ti,
3997
+ default: Ti
3998
+ }, Symbol.toStringTag, { value: "Module" })), Qs = /* @__PURE__ */ Un(xl);
3999
+ var It, U, Xs, ea, Ue, Pi, ta, Nn, Vn, On, Dn, ra, yt = {}, na = [], kl = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, hr = Array.isArray;
3982
4000
  function Me(e, t) {
3983
4001
  for (var r in t) e[r] = t[r];
3984
4002
  return e;
3985
4003
  }
3986
- function na(e) {
4004
+ function ia(e) {
3987
4005
  e && e.parentNode && e.parentNode.removeChild(e);
3988
4006
  }
3989
- function On(e, t, r) {
4007
+ function Bn(e, t, r) {
3990
4008
  var n, i, s, a = {};
3991
4009
  for (s in t) s == "key" ? n = t[s] : s == "ref" ? i = t[s] : a[s] = t[s];
3992
4010
  if (arguments.length > 2 && (a.children = arguments.length > 3 ? It.call(arguments, 2) : r), typeof e == "function" && e.defaultProps != null) for (s in e.defaultProps) a[s] === void 0 && (a[s] = e.defaultProps[s]);
3993
4011
  return _t(e, a, n, i, null);
3994
4012
  }
3995
4013
  function _t(e, t, r, n, i) {
3996
- var s = { type: e, props: t, key: r, ref: n, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, constructor: void 0, __v: i ?? ++Qs, __i: -1, __u: 0 };
4014
+ var s = { type: e, props: t, key: r, ref: n, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, constructor: void 0, __v: i ?? ++Xs, __i: -1, __u: 0 };
3997
4015
  return i == null && U.vnode != null && U.vnode(s), s;
3998
4016
  }
3999
- function kl() {
4017
+ function Rl() {
4000
4018
  return { current: null };
4001
4019
  }
4002
4020
  function lt(e) {
@@ -4010,38 +4028,38 @@ function nt(e, t) {
4010
4028
  for (var r; t < e.__k.length; t++) if ((r = e.__k[t]) != null && r.__e != null) return r.__e;
4011
4029
  return typeof e.type == "function" ? nt(e) : null;
4012
4030
  }
4013
- function ia(e) {
4031
+ function sa(e) {
4014
4032
  var t, r;
4015
4033
  if ((e = e.__) != null && e.__c != null) {
4016
4034
  for (e.__e = e.__c.base = null, t = 0; t < e.__k.length; t++) if ((r = e.__k[t]) != null && r.__e != null) {
4017
4035
  e.__e = e.__c.base = r.__e;
4018
4036
  break;
4019
4037
  }
4020
- return ia(e);
4038
+ return sa(e);
4021
4039
  }
4022
4040
  }
4023
- function Bn(e) {
4024
- (!e.__d && (e.__d = !0) && Ue.push(e) && !Ft.__r++ || Ti !== U.debounceRendering) && ((Ti = U.debounceRendering) || ea)(Ft);
4041
+ function jn(e) {
4042
+ (!e.__d && (e.__d = !0) && Ue.push(e) && !Ft.__r++ || Pi !== U.debounceRendering) && ((Pi = U.debounceRendering) || ta)(Ft);
4025
4043
  }
4026
4044
  function Ft() {
4027
4045
  var e, t, r, n, i, s, a, o;
4028
- for (Ue.sort(Pn); e = Ue.shift(); ) e.__d && (t = Ue.length, n = void 0, s = (i = (r = e).__v).__e, a = [], o = [], r.__P && ((n = Me({}, i)).__v = i.__v + 1, U.vnode && U.vnode(n), Vn(r.__P, n, i, r.__n, r.__P.namespaceURI, 32 & i.__u ? [s] : null, a, s ?? nt(i), !!(32 & i.__u), o), n.__v = i.__v, n.__.__k[n.__i] = n, ca(a, n, o), n.__e != s && ia(n)), Ue.length > t && Ue.sort(Pn));
4046
+ for (Ue.sort(Nn); e = Ue.shift(); ) e.__d && (t = Ue.length, n = void 0, s = (i = (r = e).__v).__e, a = [], o = [], r.__P && ((n = Me({}, i)).__v = i.__v + 1, U.vnode && U.vnode(n), Gn(r.__P, n, i, r.__n, r.__P.namespaceURI, 32 & i.__u ? [s] : null, a, s ?? nt(i), !!(32 & i.__u), o), n.__v = i.__v, n.__.__k[n.__i] = n, la(a, n, o), n.__e != s && sa(n)), Ue.length > t && Ue.sort(Nn));
4029
4047
  Ft.__r = 0;
4030
4048
  }
4031
- function sa(e, t, r, n, i, s, a, o, c, d, p) {
4032
- var h, _, y, w, k, m = n && n.__k || ra, f = t.length;
4033
- for (r.__d = c, Rl(r, t, m), c = r.__d, h = 0; h < f; h++) (y = r.__k[h]) != null && (_ = y.__i === -1 ? yt : m[y.__i] || yt, y.__i = h, Vn(e, y, _, i, s, a, o, c, d, p), w = y.__e, y.ref && _.ref != y.ref && (_.ref && Gn(_.ref, null, y), p.push(y.ref, y.__c || w, y)), k == null && w != null && (k = w), 65536 & y.__u || _.__k === y.__k ? c = aa(y, c, e) : typeof y.type == "function" && y.__d !== void 0 ? c = y.__d : w && (c = w.nextSibling), y.__d = void 0, y.__u &= -196609);
4049
+ function aa(e, t, r, n, i, s, a, o, c, d, p) {
4050
+ var h, _, y, w, k, m = n && n.__k || na, f = t.length;
4051
+ for (r.__d = c, Il(r, t, m), c = r.__d, h = 0; h < f; h++) (y = r.__k[h]) != null && (_ = y.__i === -1 ? yt : m[y.__i] || yt, y.__i = h, Gn(e, y, _, i, s, a, o, c, d, p), w = y.__e, y.ref && _.ref != y.ref && (_.ref && Zn(_.ref, null, y), p.push(y.ref, y.__c || w, y)), k == null && w != null && (k = w), 65536 & y.__u || _.__k === y.__k ? c = oa(y, c, e) : typeof y.type == "function" && y.__d !== void 0 ? c = y.__d : w && (c = w.nextSibling), y.__d = void 0, y.__u &= -196609);
4034
4052
  r.__d = c, r.__e = k;
4035
4053
  }
4036
- function Rl(e, t, r) {
4054
+ function Il(e, t, r) {
4037
4055
  var n, i, s, a, o, c = t.length, d = r.length, p = d, h = 0;
4038
- for (e.__k = [], n = 0; n < c; n++) (i = t[n]) != null && typeof i != "boolean" && typeof i != "function" ? (a = n + h, (i = e.__k[n] = typeof i == "string" || typeof i == "number" || typeof i == "bigint" || i.constructor == String ? _t(null, i, null, null, null) : hr(i) ? _t(lt, { children: i }, null, null, null) : i.constructor === void 0 && i.__b > 0 ? _t(i.type, i.props, i.key, i.ref ? i.ref : null, i.__v) : i).__ = e, i.__b = e.__b + 1, s = null, (o = i.__i = Il(i, r, a, p)) !== -1 && (p--, (s = r[o]) && (s.__u |= 131072)), s == null || s.__v === null ? (o == -1 && h--, typeof i.type != "function" && (i.__u |= 65536)) : o !== a && (o == a - 1 ? h-- : o == a + 1 ? h++ : (o > a ? h-- : h++, i.__u |= 65536))) : i = e.__k[n] = null;
4039
- if (p) for (n = 0; n < d; n++) (s = r[n]) != null && !(131072 & s.__u) && (s.__e == e.__d && (e.__d = nt(s)), la(s, s));
4056
+ for (e.__k = [], n = 0; n < c; n++) (i = t[n]) != null && typeof i != "boolean" && typeof i != "function" ? (a = n + h, (i = e.__k[n] = typeof i == "string" || typeof i == "number" || typeof i == "bigint" || i.constructor == String ? _t(null, i, null, null, null) : hr(i) ? _t(lt, { children: i }, null, null, null) : i.constructor === void 0 && i.__b > 0 ? _t(i.type, i.props, i.key, i.ref ? i.ref : null, i.__v) : i).__ = e, i.__b = e.__b + 1, s = null, (o = i.__i = Ml(i, r, a, p)) !== -1 && (p--, (s = r[o]) && (s.__u |= 131072)), s == null || s.__v === null ? (o == -1 && h--, typeof i.type != "function" && (i.__u |= 65536)) : o !== a && (o == a - 1 ? h-- : o == a + 1 ? h++ : (o > a ? h-- : h++, i.__u |= 65536))) : i = e.__k[n] = null;
4057
+ if (p) for (n = 0; n < d; n++) (s = r[n]) != null && !(131072 & s.__u) && (s.__e == e.__d && (e.__d = nt(s)), ua(s, s));
4040
4058
  }
4041
- function aa(e, t, r) {
4059
+ function oa(e, t, r) {
4042
4060
  var n, i;
4043
4061
  if (typeof e.type == "function") {
4044
- for (n = e.__k, i = 0; n && i < n.length; i++) n[i] && (n[i].__ = e, t = aa(n[i], t, r));
4062
+ for (n = e.__k, i = 0; n && i < n.length; i++) n[i] && (n[i].__ = e, t = oa(n[i], t, r));
4045
4063
  return t;
4046
4064
  }
4047
4065
  e.__e != t && (t && e.type && !r.contains(t) && (t = nt(e)), r.insertBefore(e.__e, t || null), t = e.__e);
@@ -4050,12 +4068,12 @@ function aa(e, t, r) {
4050
4068
  while (t != null && t.nodeType === 8);
4051
4069
  return t;
4052
4070
  }
4053
- function oa(e, t) {
4071
+ function ca(e, t) {
4054
4072
  return t = t || [], e == null || typeof e == "boolean" || (hr(e) ? e.some(function(r) {
4055
- oa(r, t);
4073
+ ca(r, t);
4056
4074
  }) : t.push(e)), t;
4057
4075
  }
4058
- function Il(e, t, r, n) {
4076
+ function Ml(e, t, r, n) {
4059
4077
  var i = e.key, s = e.type, a = r - 1, o = r + 1, c = t[r];
4060
4078
  if (c === null || c && i == c.key && s === c.type && !(131072 & c.__u)) return r;
4061
4079
  if ((typeof s != "function" || s === lt || i) && n > (c != null && !(131072 & c.__u) ? 1 : 0)) for (; a >= 0 || o < t.length; ) {
@@ -4070,17 +4088,17 @@ function Il(e, t, r, n) {
4070
4088
  }
4071
4089
  return -1;
4072
4090
  }
4073
- function Pi(e, t, r) {
4074
- t[0] === "-" ? e.setProperty(t, r ?? "") : e[t] = r == null ? "" : typeof r != "number" || xl.test(t) ? r : r + "px";
4091
+ function Ni(e, t, r) {
4092
+ t[0] === "-" ? e.setProperty(t, r ?? "") : e[t] = r == null ? "" : typeof r != "number" || kl.test(t) ? r : r + "px";
4075
4093
  }
4076
- function Dt(e, t, r, n, i) {
4094
+ function Ot(e, t, r, n, i) {
4077
4095
  var s;
4078
4096
  e: if (t === "style") if (typeof r == "string") e.style.cssText = r;
4079
4097
  else {
4080
- if (typeof n == "string" && (e.style.cssText = n = ""), n) for (t in n) r && t in r || Pi(e.style, t, "");
4081
- if (r) for (t in r) n && r[t] === n[t] || Pi(e.style, t, r[t]);
4098
+ if (typeof n == "string" && (e.style.cssText = n = ""), n) for (t in n) r && t in r || Ni(e.style, t, "");
4099
+ if (r) for (t in r) n && r[t] === n[t] || Ni(e.style, t, r[t]);
4082
4100
  }
4083
- else if (t[0] === "o" && t[1] === "n") s = t !== (t = t.replace(/(PointerCapture)$|Capture$/i, "$1")), t = t.toLowerCase() in e || t === "onFocusOut" || t === "onFocusIn" ? t.toLowerCase().slice(2) : t.slice(2), e.l || (e.l = {}), e.l[t + s] = r, r ? n ? r.u = n.u : (r.u = zn, e.addEventListener(t, s ? Dn : Nn, s)) : e.removeEventListener(t, s ? Dn : Nn, s);
4101
+ else if (t[0] === "o" && t[1] === "n") s = t !== (t = t.replace(/(PointerCapture)$|Capture$/i, "$1")), t = t.toLowerCase() in e || t === "onFocusOut" || t === "onFocusIn" ? t.toLowerCase().slice(2) : t.slice(2), e.l || (e.l = {}), e.l[t + s] = r, r ? n ? r.u = n.u : (r.u = Vn, e.addEventListener(t, s ? Dn : On, s)) : e.removeEventListener(t, s ? Dn : On, s);
4084
4102
  else {
4085
4103
  if (i == "http://www.w3.org/2000/svg") t = t.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
4086
4104
  else if (t != "width" && t != "height" && t != "href" && t != "list" && t != "form" && t != "tabIndex" && t != "download" && t != "rowSpan" && t != "colSpan" && t != "role" && t != "popover" && t in e) try {
@@ -4091,22 +4109,22 @@ function Dt(e, t, r, n, i) {
4091
4109
  typeof r == "function" || (r == null || r === !1 && t[4] !== "-" ? e.removeAttribute(t) : e.setAttribute(t, t == "popover" && r == 1 ? "" : r));
4092
4110
  }
4093
4111
  }
4094
- function Ni(e) {
4112
+ function Oi(e) {
4095
4113
  return function(t) {
4096
4114
  if (this.l) {
4097
4115
  var r = this.l[t.type + e];
4098
- if (t.t == null) t.t = zn++;
4116
+ if (t.t == null) t.t = Vn++;
4099
4117
  else if (t.t < r.u) return;
4100
4118
  return U.event && (t = U.event(t)), "handleEvent" in r ? r.handleEvent(t) : r(t);
4101
4119
  }
4102
4120
  };
4103
4121
  }
4104
- function Vn(e, t, r, n, i, s, a, o, c, d) {
4122
+ function Gn(e, t, r, n, i, s, a, o, c, d) {
4105
4123
  var p, h, _, y, w, k, m, f, v, E, S, R, A, j, P, T, H = t.type;
4106
4124
  if (t.constructor !== void 0) return null;
4107
4125
  128 & r.__u && (c = !!(32 & r.__u), s = [o = t.__e = r.__e]), (p = U.__b) && p(t);
4108
4126
  e: if (typeof H == "function") try {
4109
- if (f = t.props, v = "prototype" in H && H.prototype.render, E = (p = H.contextType) && n[p.__c], S = p ? E ? E.props.value : p.__ : n, r.__c ? m = (h = t.__c = r.__c).__ = h.__E : (v ? t.__c = h = new H(f, S) : (t.__c = h = new pt(f, S), h.constructor = H, h.render = Al), E && E.sub(h), h.props = f, h.state || (h.state = {}), h.context = S, h.__n = n, _ = h.__d = !0, h.__h = [], h._sb = []), v && h.__s == null && (h.__s = h.state), v && H.getDerivedStateFromProps != null && (h.__s == h.state && (h.__s = Me({}, h.__s)), Me(h.__s, H.getDerivedStateFromProps(f, h.__s))), y = h.props, w = h.state, h.__v = t, _) v && H.getDerivedStateFromProps == null && h.componentWillMount != null && h.componentWillMount(), v && h.componentDidMount != null && h.__h.push(h.componentDidMount);
4127
+ if (f = t.props, v = "prototype" in H && H.prototype.render, E = (p = H.contextType) && n[p.__c], S = p ? E ? E.props.value : p.__ : n, r.__c ? m = (h = t.__c = r.__c).__ = h.__E : (v ? t.__c = h = new H(f, S) : (t.__c = h = new pt(f, S), h.constructor = H, h.render = Ll), E && E.sub(h), h.props = f, h.state || (h.state = {}), h.context = S, h.__n = n, _ = h.__d = !0, h.__h = [], h._sb = []), v && h.__s == null && (h.__s = h.state), v && H.getDerivedStateFromProps != null && (h.__s == h.state && (h.__s = Me({}, h.__s)), Me(h.__s, H.getDerivedStateFromProps(f, h.__s))), y = h.props, w = h.state, h.__v = t, _) v && H.getDerivedStateFromProps == null && h.componentWillMount != null && h.componentWillMount(), v && h.componentDidMount != null && h.__h.push(h.componentDidMount);
4110
4128
  else {
4111
4129
  if (v && H.getDerivedStateFromProps == null && f !== y && h.componentWillReceiveProps != null && h.componentWillReceiveProps(f, S), !h.__e && (h.shouldComponentUpdate != null && h.shouldComponentUpdate(f, h.__s, S) === !1 || t.__v === r.__v)) {
4112
4130
  for (t.__v !== r.__v && (h.props = f, h.state = h.__s, h.__d = !1), t.__e = r.__e, t.__k = r.__k, t.__k.some(function(Q) {
@@ -4125,7 +4143,7 @@ function Vn(e, t, r, n, i, s, a, o, c, d) {
4125
4143
  } else do
4126
4144
  h.__d = !1, A && A(t), p = h.render(h.props, h.state, h.context), h.state = h.__s;
4127
4145
  while (h.__d && ++j < 25);
4128
- h.state = h.__s, h.getChildContext != null && (n = Me(Me({}, n), h.getChildContext())), v && !_ && h.getSnapshotBeforeUpdate != null && (k = h.getSnapshotBeforeUpdate(y, w)), sa(e, hr(T = p != null && p.type === lt && p.key == null ? p.props.children : p) ? T : [T], t, r, n, i, s, a, o, c, d), h.base = t.__e, t.__u &= -161, h.__h.length && a.push(h), m && (h.__E = h.__ = null);
4146
+ h.state = h.__s, h.getChildContext != null && (n = Me(Me({}, n), h.getChildContext())), v && !_ && h.getSnapshotBeforeUpdate != null && (k = h.getSnapshotBeforeUpdate(y, w)), aa(e, hr(T = p != null && p.type === lt && p.key == null ? p.props.children : p) ? T : [T], t, r, n, i, s, a, o, c, d), h.base = t.__e, t.__u &= -161, h.__h.length && a.push(h), m && (h.__E = h.__ = null);
4129
4147
  } catch (Q) {
4130
4148
  if (t.__v = null, c || s != null) {
4131
4149
  for (t.__u |= c ? 160 : 128; o && o.nodeType === 8 && o.nextSibling; ) o = o.nextSibling;
@@ -4133,12 +4151,12 @@ function Vn(e, t, r, n, i, s, a, o, c, d) {
4133
4151
  } else t.__e = r.__e, t.__k = r.__k;
4134
4152
  U.__e(Q, t, r);
4135
4153
  }
4136
- else s == null && t.__v === r.__v ? (t.__k = r.__k, t.__e = r.__e) : t.__e = Ml(r.__e, t, r, n, i, s, a, c, d);
4154
+ else s == null && t.__v === r.__v ? (t.__k = r.__k, t.__e = r.__e) : t.__e = Al(r.__e, t, r, n, i, s, a, c, d);
4137
4155
  (p = U.diffed) && p(t);
4138
4156
  }
4139
- function ca(e, t, r) {
4157
+ function la(e, t, r) {
4140
4158
  t.__d = void 0;
4141
- for (var n = 0; n < r.length; n++) Gn(r[n], r[++n], r[++n]);
4159
+ for (var n = 0; n < r.length; n++) Zn(r[n], r[++n], r[++n]);
4142
4160
  U.__c && U.__c(t, e), e.some(function(i) {
4143
4161
  try {
4144
4162
  e = i.__h, i.__h = [], e.some(function(s) {
@@ -4149,7 +4167,7 @@ function ca(e, t, r) {
4149
4167
  }
4150
4168
  });
4151
4169
  }
4152
- function Ml(e, t, r, n, i, s, a, o, c) {
4170
+ function Al(e, t, r, n, i, s, a, o, c) {
4153
4171
  var d, p, h, _, y, w, k, m = r.props, f = t.props, v = t.type;
4154
4172
  if (v === "svg" ? i = "http://www.w3.org/2000/svg" : v === "math" ? i = "http://www.w3.org/1998/Math/MathML" : i || (i = "http://www.w3.org/1999/xhtml"), s != null) {
4155
4173
  for (d = 0; d < s.length; d++) if ((y = s[d]) && "setAttribute" in y == !!v && (v ? y.localName === v : y.nodeType === 3)) {
@@ -4168,17 +4186,17 @@ function Ml(e, t, r, n, i, s, a, o, c) {
4168
4186
  if (d == "dangerouslySetInnerHTML") h = y;
4169
4187
  else if (!(d in f)) {
4170
4188
  if (d == "value" && "defaultValue" in f || d == "checked" && "defaultChecked" in f) continue;
4171
- Dt(e, d, null, y, i);
4189
+ Ot(e, d, null, y, i);
4172
4190
  }
4173
4191
  }
4174
- for (d in f) y = f[d], d == "children" ? _ = y : d == "dangerouslySetInnerHTML" ? p = y : d == "value" ? w = y : d == "checked" ? k = y : o && typeof y != "function" || m[d] === y || Dt(e, d, y, m[d], i);
4192
+ for (d in f) y = f[d], d == "children" ? _ = y : d == "dangerouslySetInnerHTML" ? p = y : d == "value" ? w = y : d == "checked" ? k = y : o && typeof y != "function" || m[d] === y || Ot(e, d, y, m[d], i);
4175
4193
  if (p) o || h && (p.__html === h.__html || p.__html === e.innerHTML) || (e.innerHTML = p.__html), t.__k = [];
4176
- else if (h && (e.innerHTML = ""), sa(e, hr(_) ? _ : [_], t, r, n, v === "foreignObject" ? "http://www.w3.org/1999/xhtml" : i, s, a, s ? s[0] : r.__k && nt(r, 0), o, c), s != null) for (d = s.length; d--; ) na(s[d]);
4177
- o || (d = "value", v === "progress" && w == null ? e.removeAttribute("value") : w !== void 0 && (w !== e[d] || v === "progress" && !w || v === "option" && w !== m[d]) && Dt(e, d, w, m[d], i), d = "checked", k !== void 0 && k !== e[d] && Dt(e, d, k, m[d], i));
4194
+ else if (h && (e.innerHTML = ""), aa(e, hr(_) ? _ : [_], t, r, n, v === "foreignObject" ? "http://www.w3.org/1999/xhtml" : i, s, a, s ? s[0] : r.__k && nt(r, 0), o, c), s != null) for (d = s.length; d--; ) ia(s[d]);
4195
+ o || (d = "value", v === "progress" && w == null ? e.removeAttribute("value") : w !== void 0 && (w !== e[d] || v === "progress" && !w || v === "option" && w !== m[d]) && Ot(e, d, w, m[d], i), d = "checked", k !== void 0 && k !== e[d] && Ot(e, d, k, m[d], i));
4178
4196
  }
4179
4197
  return e;
4180
4198
  }
4181
- function Gn(e, t, r) {
4199
+ function Zn(e, t, r) {
4182
4200
  try {
4183
4201
  if (typeof e == "function") {
4184
4202
  var n = typeof e.__u == "function";
@@ -4188,9 +4206,9 @@ function Gn(e, t, r) {
4188
4206
  U.__e(i, r);
4189
4207
  }
4190
4208
  }
4191
- function la(e, t, r) {
4209
+ function ua(e, t, r) {
4192
4210
  var n, i;
4193
- if (U.unmount && U.unmount(e), (n = e.ref) && (n.current && n.current !== e.__e || Gn(n, null, t)), (n = e.__c) != null) {
4211
+ if (U.unmount && U.unmount(e), (n = e.ref) && (n.current && n.current !== e.__e || Zn(n, null, t)), (n = e.__c) != null) {
4194
4212
  if (n.componentWillUnmount) try {
4195
4213
  n.componentWillUnmount();
4196
4214
  } catch (s) {
@@ -4198,26 +4216,26 @@ function la(e, t, r) {
4198
4216
  }
4199
4217
  n.base = n.__P = null;
4200
4218
  }
4201
- if (n = e.__k) for (i = 0; i < n.length; i++) n[i] && la(n[i], t, r || typeof e.type != "function");
4202
- r || na(e.__e), e.__c = e.__ = e.__e = e.__d = void 0;
4219
+ if (n = e.__k) for (i = 0; i < n.length; i++) n[i] && ua(n[i], t, r || typeof e.type != "function");
4220
+ r || ia(e.__e), e.__c = e.__ = e.__e = e.__d = void 0;
4203
4221
  }
4204
- function Al(e, t, r) {
4222
+ function Ll(e, t, r) {
4205
4223
  return this.constructor(e, r);
4206
4224
  }
4207
- function ua(e, t, r) {
4225
+ function da(e, t, r) {
4208
4226
  var n, i, s, a;
4209
- U.__ && U.__(e, t), i = (n = typeof r == "function") ? null : r && r.__k || t.__k, s = [], a = [], Vn(t, e = (!n && r || t).__k = On(lt, null, [e]), i || yt, yt, t.namespaceURI, !n && r ? [r] : i ? null : t.firstChild ? It.call(t.childNodes) : null, s, !n && r ? r : i ? i.__e : t.firstChild, n, a), ca(s, e, a);
4227
+ U.__ && U.__(e, t), i = (n = typeof r == "function") ? null : r && r.__k || t.__k, s = [], a = [], Gn(t, e = (!n && r || t).__k = Bn(lt, null, [e]), i || yt, yt, t.namespaceURI, !n && r ? [r] : i ? null : t.firstChild ? It.call(t.childNodes) : null, s, !n && r ? r : i ? i.__e : t.firstChild, n, a), la(s, e, a);
4210
4228
  }
4211
- function da(e, t) {
4212
- ua(e, t, da);
4229
+ function ha(e, t) {
4230
+ da(e, t, ha);
4213
4231
  }
4214
- function Ll(e, t, r) {
4232
+ function Tl(e, t, r) {
4215
4233
  var n, i, s, a, o = Me({}, e.props);
4216
4234
  for (s in e.type && e.type.defaultProps && (a = e.type.defaultProps), t) s == "key" ? n = t[s] : s == "ref" ? i = t[s] : o[s] = t[s] === void 0 && a !== void 0 ? a[s] : t[s];
4217
4235
  return arguments.length > 2 && (o.children = arguments.length > 3 ? It.call(arguments, 2) : r), _t(e.type, o, n || e.key, i || e.ref, null);
4218
4236
  }
4219
- function Tl(e, t) {
4220
- var r = { __c: t = "__cC" + ta++, __: e, Consumer: function(n, i) {
4237
+ function Pl(e, t) {
4238
+ var r = { __c: t = "__cC" + ra++, __: e, Consumer: function(n, i) {
4221
4239
  return n.children(i);
4222
4240
  }, Provider: function(n) {
4223
4241
  var i, s;
@@ -4227,7 +4245,7 @@ function Tl(e, t) {
4227
4245
  i = null;
4228
4246
  }, this.shouldComponentUpdate = function(a) {
4229
4247
  this.props.value !== a.value && i.forEach(function(o) {
4230
- o.__e = !0, Bn(o);
4248
+ o.__e = !0, jn(o);
4231
4249
  });
4232
4250
  }, this.sub = function(a) {
4233
4251
  i.add(a);
@@ -4239,54 +4257,54 @@ function Tl(e, t) {
4239
4257
  } };
4240
4258
  return r.Provider.__ = r.Consumer.contextType = r;
4241
4259
  }
4242
- It = ra.slice, U = { __e: function(e, t, r, n) {
4260
+ It = na.slice, U = { __e: function(e, t, r, n) {
4243
4261
  for (var i, s, a; t = t.__; ) if ((i = t.__c) && !i.__) try {
4244
4262
  if ((s = i.constructor) && s.getDerivedStateFromError != null && (i.setState(s.getDerivedStateFromError(e)), a = i.__d), i.componentDidCatch != null && (i.componentDidCatch(e, n || {}), a = i.__d), a) return i.__E = i;
4245
4263
  } catch (o) {
4246
4264
  e = o;
4247
4265
  }
4248
4266
  throw e;
4249
- } }, Qs = 0, Xs = function(e) {
4267
+ } }, Xs = 0, ea = function(e) {
4250
4268
  return e != null && e.constructor == null;
4251
4269
  }, pt.prototype.setState = function(e, t) {
4252
4270
  var r;
4253
- r = this.__s != null && this.__s !== this.state ? this.__s : this.__s = Me({}, this.state), typeof e == "function" && (e = e(Me({}, r), this.props)), e && Me(r, e), e != null && this.__v && (t && this._sb.push(t), Bn(this));
4271
+ r = this.__s != null && this.__s !== this.state ? this.__s : this.__s = Me({}, this.state), typeof e == "function" && (e = e(Me({}, r), this.props)), e && Me(r, e), e != null && this.__v && (t && this._sb.push(t), jn(this));
4254
4272
  }, pt.prototype.forceUpdate = function(e) {
4255
- this.__v && (this.__e = !0, e && this.__h.push(e), Bn(this));
4256
- }, pt.prototype.render = lt, Ue = [], ea = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, Pn = function(e, t) {
4273
+ this.__v && (this.__e = !0, e && this.__h.push(e), jn(this));
4274
+ }, pt.prototype.render = lt, Ue = [], ta = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, Nn = function(e, t) {
4257
4275
  return e.__v.__b - t.__v.__b;
4258
- }, Ft.__r = 0, zn = 0, Nn = Ni(!1), Dn = Ni(!0), ta = 0;
4259
- const Pl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4276
+ }, Ft.__r = 0, Vn = 0, On = Oi(!1), Dn = Oi(!0), ra = 0;
4277
+ const Nl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4260
4278
  __proto__: null,
4261
4279
  Component: pt,
4262
4280
  Fragment: lt,
4263
- cloneElement: Ll,
4264
- createContext: Tl,
4265
- createElement: On,
4266
- createRef: kl,
4267
- h: On,
4268
- hydrate: da,
4281
+ cloneElement: Tl,
4282
+ createContext: Pl,
4283
+ createElement: Bn,
4284
+ createRef: Rl,
4285
+ h: Bn,
4286
+ hydrate: ha,
4269
4287
  get isValidElement() {
4270
- return Xs;
4288
+ return ea;
4271
4289
  },
4272
4290
  get options() {
4273
4291
  return U;
4274
4292
  },
4275
- render: ua,
4276
- toChildArray: oa
4277
- }, Symbol.toStringTag, { value: "Module" })), ha = /* @__PURE__ */ Wn(Pl);
4278
- var Te, W, kn, Di, it = 0, fa = [], F = U, Oi = F.__b, Bi = F.__r, ji = F.diffed, Wi = F.__c, Ui = F.unmount, Hi = F.__;
4293
+ render: da,
4294
+ toChildArray: ca
4295
+ }, Symbol.toStringTag, { value: "Module" })), fa = /* @__PURE__ */ Un(Nl);
4296
+ var Te, W, kn, Di, it = 0, _a = [], F = U, Bi = F.__b, ji = F.__r, Wi = F.diffed, Ui = F.__c, Hi = F.unmount, $i = F.__;
4279
4297
  function Ke(e, t) {
4280
4298
  F.__h && F.__h(W, e, it || t), it = 0;
4281
4299
  var r = W.__H || (W.__H = { __: [], __h: [] });
4282
4300
  return e >= r.__.length && r.__.push({}), r.__[e];
4283
4301
  }
4284
- function _a(e) {
4285
- return it = 1, pa(ba, e);
4302
+ function pa(e) {
4303
+ return it = 1, ga(ya, e);
4286
4304
  }
4287
- function pa(e, t, r) {
4305
+ function ga(e, t, r) {
4288
4306
  var n = Ke(Te++, 2);
4289
- if (n.t = e, !n.__c && (n.__ = [r ? r(t) : ba(void 0, t), function(o) {
4307
+ if (n.t = e, !n.__c && (n.__ = [r ? r(t) : ya(void 0, t), function(o) {
4290
4308
  var c = n.__N ? n.__N[0] : n.__[0], d = n.t(c, o);
4291
4309
  c !== d && (n.__N = [d, n.__[1]], n.__c.setState({}));
4292
4310
  }], n.__c = W, !W.u)) {
@@ -4318,21 +4336,21 @@ function pa(e, t, r) {
4318
4336
  }
4319
4337
  return n.__N || n.__;
4320
4338
  }
4321
- function Nl(e, t) {
4339
+ function Ol(e, t) {
4322
4340
  var r = Ke(Te++, 3);
4323
- !F.__s && Yn(r.__H, t) && (r.__ = e, r.i = t, W.__H.__h.push(r));
4341
+ !F.__s && Jn(r.__H, t) && (r.__ = e, r.i = t, W.__H.__h.push(r));
4324
4342
  }
4325
- function ga(e, t) {
4343
+ function ba(e, t) {
4326
4344
  var r = Ke(Te++, 4);
4327
- !F.__s && Yn(r.__H, t) && (r.__ = e, r.i = t, W.__h.push(r));
4345
+ !F.__s && Jn(r.__H, t) && (r.__ = e, r.i = t, W.__h.push(r));
4328
4346
  }
4329
4347
  function Dl(e) {
4330
- return it = 5, Zn(function() {
4348
+ return it = 5, Yn(function() {
4331
4349
  return { current: e };
4332
4350
  }, []);
4333
4351
  }
4334
- function Ol(e, t, r) {
4335
- it = 6, ga(function() {
4352
+ function Bl(e, t, r) {
4353
+ it = 6, ba(function() {
4336
4354
  return typeof e == "function" ? (e(t()), function() {
4337
4355
  return e(null);
4338
4356
  }) : e ? (e.current = t(), function() {
@@ -4340,31 +4358,31 @@ function Ol(e, t, r) {
4340
4358
  }) : void 0;
4341
4359
  }, r == null ? r : r.concat(e));
4342
4360
  }
4343
- function Zn(e, t) {
4361
+ function Yn(e, t) {
4344
4362
  var r = Ke(Te++, 7);
4345
- return Yn(r.__H, t) && (r.__ = e(), r.__H = t, r.__h = e), r.__;
4363
+ return Jn(r.__H, t) && (r.__ = e(), r.__H = t, r.__h = e), r.__;
4346
4364
  }
4347
- function Bl(e, t) {
4348
- return it = 8, Zn(function() {
4365
+ function jl(e, t) {
4366
+ return it = 8, Yn(function() {
4349
4367
  return e;
4350
4368
  }, t);
4351
4369
  }
4352
- function jl(e) {
4370
+ function Wl(e) {
4353
4371
  var t = W.context[e.__c], r = Ke(Te++, 9);
4354
4372
  return r.c = e, t ? (r.__ == null && (r.__ = !0, t.sub(W)), t.props.value) : e.__;
4355
4373
  }
4356
- function Wl(e, t) {
4374
+ function Ul(e, t) {
4357
4375
  F.useDebugValue && F.useDebugValue(t ? t(e) : e);
4358
4376
  }
4359
- function Ul(e) {
4360
- var t = Ke(Te++, 10), r = _a();
4377
+ function Hl(e) {
4378
+ var t = Ke(Te++, 10), r = pa();
4361
4379
  return t.__ = e, W.componentDidCatch || (W.componentDidCatch = function(n, i) {
4362
4380
  t.__ && t.__(n, i), r[1](n);
4363
4381
  }), [r[0], function() {
4364
4382
  r[1](void 0);
4365
4383
  }];
4366
4384
  }
4367
- function Hl() {
4385
+ function $l() {
4368
4386
  var e = Ke(Te++, 11);
4369
4387
  if (!e.__) {
4370
4388
  for (var t = W.__v; t !== null && !t.__m && t.__ !== null; ) t = t.__;
@@ -4373,43 +4391,43 @@ function Hl() {
4373
4391
  }
4374
4392
  return e.__;
4375
4393
  }
4376
- function $l() {
4377
- for (var e; e = fa.shift(); ) if (e.__P && e.__H) try {
4378
- e.__H.__h.forEach(Wt), e.__H.__h.forEach(jn), e.__H.__h = [];
4394
+ function Fl() {
4395
+ for (var e; e = _a.shift(); ) if (e.__P && e.__H) try {
4396
+ e.__H.__h.forEach(Wt), e.__H.__h.forEach(Wn), e.__H.__h = [];
4379
4397
  } catch (t) {
4380
4398
  e.__H.__h = [], F.__e(t, e.__v);
4381
4399
  }
4382
4400
  }
4383
4401
  F.__b = function(e) {
4384
- W = null, Oi && Oi(e);
4402
+ W = null, Bi && Bi(e);
4385
4403
  }, F.__ = function(e, t) {
4386
- e && t.__k && t.__k.__m && (e.__m = t.__k.__m), Hi && Hi(e, t);
4404
+ e && t.__k && t.__k.__m && (e.__m = t.__k.__m), $i && $i(e, t);
4387
4405
  }, F.__r = function(e) {
4388
- Bi && Bi(e), Te = 0;
4406
+ ji && ji(e), Te = 0;
4389
4407
  var t = (W = e.__c).__H;
4390
4408
  t && (kn === W ? (t.__h = [], W.__h = [], t.__.forEach(function(r) {
4391
4409
  r.__N && (r.__ = r.__N), r.i = r.__N = void 0;
4392
- })) : (t.__h.forEach(Wt), t.__h.forEach(jn), t.__h = [], Te = 0)), kn = W;
4410
+ })) : (t.__h.forEach(Wt), t.__h.forEach(Wn), t.__h = [], Te = 0)), kn = W;
4393
4411
  }, F.diffed = function(e) {
4394
- ji && ji(e);
4412
+ Wi && Wi(e);
4395
4413
  var t = e.__c;
4396
- t && t.__H && (t.__H.__h.length && (fa.push(t) !== 1 && Di === F.requestAnimationFrame || ((Di = F.requestAnimationFrame) || Fl)($l)), t.__H.__.forEach(function(r) {
4414
+ t && t.__H && (t.__H.__h.length && (_a.push(t) !== 1 && Di === F.requestAnimationFrame || ((Di = F.requestAnimationFrame) || ql)(Fl)), t.__H.__.forEach(function(r) {
4397
4415
  r.i && (r.__H = r.i), r.i = void 0;
4398
4416
  })), kn = W = null;
4399
4417
  }, F.__c = function(e, t) {
4400
4418
  t.some(function(r) {
4401
4419
  try {
4402
4420
  r.__h.forEach(Wt), r.__h = r.__h.filter(function(n) {
4403
- return !n.__ || jn(n);
4421
+ return !n.__ || Wn(n);
4404
4422
  });
4405
4423
  } catch (n) {
4406
4424
  t.some(function(i) {
4407
4425
  i.__h && (i.__h = []);
4408
4426
  }), t = [], F.__e(n, r.__v);
4409
4427
  }
4410
- }), Wi && Wi(e, t);
4428
+ }), Ui && Ui(e, t);
4411
4429
  }, F.unmount = function(e) {
4412
- Ui && Ui(e);
4430
+ Hi && Hi(e);
4413
4431
  var t, r = e.__c;
4414
4432
  r && r.__H && (r.__H.__.forEach(function(n) {
4415
4433
  try {
@@ -4419,53 +4437,53 @@ F.__b = function(e) {
4419
4437
  }
4420
4438
  }), r.__H = void 0, t && F.__e(t, r.__v));
4421
4439
  };
4422
- var $i = typeof requestAnimationFrame == "function";
4423
- function Fl(e) {
4440
+ var Fi = typeof requestAnimationFrame == "function";
4441
+ function ql(e) {
4424
4442
  var t, r = function() {
4425
- clearTimeout(n), $i && cancelAnimationFrame(t), setTimeout(e);
4443
+ clearTimeout(n), Fi && cancelAnimationFrame(t), setTimeout(e);
4426
4444
  }, n = setTimeout(r, 100);
4427
- $i && (t = requestAnimationFrame(r));
4445
+ Fi && (t = requestAnimationFrame(r));
4428
4446
  }
4429
4447
  function Wt(e) {
4430
4448
  var t = W, r = e.__c;
4431
4449
  typeof r == "function" && (e.__c = void 0, r()), W = t;
4432
4450
  }
4433
- function jn(e) {
4451
+ function Wn(e) {
4434
4452
  var t = W;
4435
4453
  e.__c = e.__(), W = t;
4436
4454
  }
4437
- function Yn(e, t) {
4455
+ function Jn(e, t) {
4438
4456
  return !e || e.length !== t.length || t.some(function(r, n) {
4439
4457
  return r !== e[n];
4440
4458
  });
4441
4459
  }
4442
- function ba(e, t) {
4460
+ function ya(e, t) {
4443
4461
  return typeof t == "function" ? t(e) : t;
4444
4462
  }
4445
- const ql = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4463
+ const Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4446
4464
  __proto__: null,
4447
- useCallback: Bl,
4448
- useContext: jl,
4449
- useDebugValue: Wl,
4450
- useEffect: Nl,
4451
- useErrorBoundary: Ul,
4452
- useId: Hl,
4453
- useImperativeHandle: Ol,
4454
- useLayoutEffect: ga,
4455
- useMemo: Zn,
4456
- useReducer: pa,
4465
+ useCallback: jl,
4466
+ useContext: Wl,
4467
+ useDebugValue: Ul,
4468
+ useEffect: Ol,
4469
+ useErrorBoundary: Hl,
4470
+ useId: $l,
4471
+ useImperativeHandle: Bl,
4472
+ useLayoutEffect: ba,
4473
+ useMemo: Yn,
4474
+ useReducer: ga,
4457
4475
  useRef: Dl,
4458
- useState: _a
4459
- }, Symbol.toStringTag, { value: "Module" })), Kl = /* @__PURE__ */ Wn(ql);
4460
- var Jn = {};
4461
- Object.defineProperty(Jn, "__esModule", { value: !0 });
4462
- Jn.default = ".-cbwsdk-css-reset .-gear-container{margin-left:16px !important;margin-right:9px !important;display:flex;align-items:center;justify-content:center;width:24px;height:24px;transition:opacity .25s}.-cbwsdk-css-reset .-gear-container *{user-select:none}.-cbwsdk-css-reset .-gear-container svg{opacity:0;position:absolute}.-cbwsdk-css-reset .-gear-icon{height:12px;width:12px;z-index:10000}.-cbwsdk-css-reset .-cbwsdk-snackbar{align-items:flex-end;display:flex;flex-direction:column;position:fixed;right:0;top:0;z-index:2147483647}.-cbwsdk-css-reset .-cbwsdk-snackbar *{user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance{display:flex;flex-direction:column;margin:8px 16px 0 16px;overflow:visible;text-align:left;transform:translateX(0);transition:opacity .25s,transform .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header:hover .-gear-container svg{opacity:1}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header{display:flex;align-items:center;background:#fff;overflow:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-cblogo{margin:8px 8px 8px 8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-message{color:#000;font-size:13px;line-height:1.5;user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu{background:#fff;transition:opacity .25s ease-in-out,transform .25s linear,visibility 0s;visibility:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;opacity:0;flex-direction:column;padding-left:8px;padding-right:8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:last-child{margin-bottom:8px !important}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover{background:#f5f7f8;border-radius:6px;transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover span{color:#050f19;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover svg path{fill:#000;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item{visibility:inherit;height:35px;margin-top:8px;margin-bottom:0;display:flex;flex-direction:row;align-items:center;padding:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item *{visibility:inherit;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover{background:rgba(223,95,103,.2);transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover svg path{fill:#df5f67;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover span{color:#df5f67;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-info{color:#aaa;font-size:13px;margin:0 8px 0 32px;position:absolute}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-hidden{opacity:0;text-align:left;transform:translateX(25%);transition:opacity .5s linear}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-expanded .-cbwsdk-snackbar-instance-menu{opacity:1;display:flex;transform:translateY(8px);visibility:visible}";
4476
+ useState: pa
4477
+ }, Symbol.toStringTag, { value: "Module" })), zl = /* @__PURE__ */ Un(Kl);
4478
+ var Qn = {};
4479
+ Object.defineProperty(Qn, "__esModule", { value: !0 });
4480
+ Qn.default = ".-cbwsdk-css-reset .-gear-container{margin-left:16px !important;margin-right:9px !important;display:flex;align-items:center;justify-content:center;width:24px;height:24px;transition:opacity .25s}.-cbwsdk-css-reset .-gear-container *{user-select:none}.-cbwsdk-css-reset .-gear-container svg{opacity:0;position:absolute}.-cbwsdk-css-reset .-gear-icon{height:12px;width:12px;z-index:10000}.-cbwsdk-css-reset .-cbwsdk-snackbar{align-items:flex-end;display:flex;flex-direction:column;position:fixed;right:0;top:0;z-index:2147483647}.-cbwsdk-css-reset .-cbwsdk-snackbar *{user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance{display:flex;flex-direction:column;margin:8px 16px 0 16px;overflow:visible;text-align:left;transform:translateX(0);transition:opacity .25s,transform .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header:hover .-gear-container svg{opacity:1}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header{display:flex;align-items:center;background:#fff;overflow:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-cblogo{margin:8px 8px 8px 8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-message{color:#000;font-size:13px;line-height:1.5;user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu{background:#fff;transition:opacity .25s ease-in-out,transform .25s linear,visibility 0s;visibility:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;opacity:0;flex-direction:column;padding-left:8px;padding-right:8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:last-child{margin-bottom:8px !important}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover{background:#f5f7f8;border-radius:6px;transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover span{color:#050f19;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover svg path{fill:#000;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item{visibility:inherit;height:35px;margin-top:8px;margin-bottom:0;display:flex;flex-direction:row;align-items:center;padding:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item *{visibility:inherit;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover{background:rgba(223,95,103,.2);transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover svg path{fill:#df5f67;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover span{color:#df5f67;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-info{color:#aaa;font-size:13px;margin:0 8px 0 32px;position:absolute}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-hidden{opacity:0;text-align:left;transform:translateX(25%);transition:opacity .5s linear}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-expanded .-cbwsdk-snackbar-instance-menu{opacity:1;display:flex;transform:translateY(8px);visibility:visible}";
4463
4481
  (function(e) {
4464
4482
  var t = Z && Z.__importDefault || function(_) {
4465
4483
  return _ && _.__esModule ? _ : { default: _ };
4466
4484
  };
4467
4485
  Object.defineProperty(e, "__esModule", { value: !0 }), e.SnackbarInstance = e.SnackbarContainer = e.Snackbar = void 0;
4468
- const r = t(Js), n = ha, i = Kl, s = ne, a = t(Jn), o = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEuNDkyIDEwLjQxOWE4LjkzIDguOTMgMCAwMTguOTMtOC45M2gxMS4xNjNhOC45MyA4LjkzIDAgMDE4LjkzIDguOTN2MTEuMTYzYTguOTMgOC45MyAwIDAxLTguOTMgOC45M0gxMC40MjJhOC45MyA4LjkzIDAgMDEtOC45My04LjkzVjEwLjQxOXoiIGZpbGw9IiMxNjUyRjAiLz48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTEwLjQxOSAwSDIxLjU4QzI3LjMzNSAwIDMyIDQuNjY1IDMyIDEwLjQxOVYyMS41OEMzMiAyNy4zMzUgMjcuMzM1IDMyIDIxLjU4MSAzMkgxMC40MkM0LjY2NSAzMiAwIDI3LjMzNSAwIDIxLjU4MVYxMC40MkMwIDQuNjY1IDQuNjY1IDAgMTAuNDE5IDB6bTAgMS40ODhhOC45MyA4LjkzIDAgMDAtOC45MyA4LjkzdjExLjE2M2E4LjkzIDguOTMgMCAwMDguOTMgOC45M0gyMS41OGE4LjkzIDguOTMgMCAwMDguOTMtOC45M1YxMC40MmE4LjkzIDguOTMgMCAwMC04LjkzLTguOTNIMTAuNDJ6IiBmaWxsPSIjZmZmIi8+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNS45OTggMjYuMDQ5Yy01LjU0OSAwLTEwLjA0Ny00LjQ5OC0xMC4wNDctMTAuMDQ3IDAtNS41NDggNC40OTgtMTAuMDQ2IDEwLjA0Ny0xMC4wNDYgNS41NDggMCAxMC4wNDYgNC40OTggMTAuMDQ2IDEwLjA0NiAwIDUuNTQ5LTQuNDk4IDEwLjA0Ny0xMC4wNDYgMTAuMDQ3eiIgZmlsbD0iI2ZmZiIvPjxwYXRoIGQ9Ik0xMi43NjIgMTQuMjU0YzAtLjgyMi42NjctMS40ODkgMS40ODktMS40ODloMy40OTdjLjgyMiAwIDEuNDg4LjY2NiAxLjQ4OCAxLjQ4OXYzLjQ5N2MwIC44MjItLjY2NiAxLjQ4OC0xLjQ4OCAxLjQ4OGgtMy40OTdhMS40ODggMS40ODggMCAwMS0xLjQ4OS0xLjQ4OHYtMy40OTh6IiBmaWxsPSIjMTY1MkYwIi8+PC9zdmc+", c = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyIDYuNzV2LTEuNWwtMS43Mi0uNTdjLS4wOC0uMjctLjE5LS41Mi0uMzItLjc3bC44MS0xLjYyLTEuMDYtMS4wNi0xLjYyLjgxYy0uMjQtLjEzLS41LS4yNC0uNzctLjMyTDYuNzUgMGgtMS41bC0uNTcgMS43MmMtLjI3LjA4LS41My4xOS0uNzcuMzJsLTEuNjItLjgxLTEuMDYgMS4wNi44MSAxLjYyYy0uMTMuMjQtLjI0LjUtLjMyLjc3TDAgNS4yNXYxLjVsMS43Mi41N2MuMDguMjcuMTkuNTMuMzIuNzdsLS44MSAxLjYyIDEuMDYgMS4wNiAxLjYyLS44MWMuMjQuMTMuNS4yMy43Ny4zMkw1LjI1IDEyaDEuNWwuNTctMS43MmMuMjctLjA4LjUyLS4xOS43Ny0uMzJsMS42Mi44MSAxLjA2LTEuMDYtLjgxLTEuNjJjLjEzLS4yNC4yMy0uNS4zMi0uNzdMMTIgNi43NXpNNiA4LjVhMi41IDIuNSAwIDAxMC01IDIuNSAyLjUgMCAwMTAgNXoiIGZpbGw9IiMwNTBGMTkiLz48L3N2Zz4=";
4486
+ const r = t(Qs), n = fa, i = zl, s = ne, a = t(Qn), o = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEuNDkyIDEwLjQxOWE4LjkzIDguOTMgMCAwMTguOTMtOC45M2gxMS4xNjNhOC45MyA4LjkzIDAgMDE4LjkzIDguOTN2MTEuMTYzYTguOTMgOC45MyAwIDAxLTguOTMgOC45M0gxMC40MjJhOC45MyA4LjkzIDAgMDEtOC45My04LjkzVjEwLjQxOXoiIGZpbGw9IiMxNjUyRjAiLz48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTEwLjQxOSAwSDIxLjU4QzI3LjMzNSAwIDMyIDQuNjY1IDMyIDEwLjQxOVYyMS41OEMzMiAyNy4zMzUgMjcuMzM1IDMyIDIxLjU4MSAzMkgxMC40MkM0LjY2NSAzMiAwIDI3LjMzNSAwIDIxLjU4MVYxMC40MkMwIDQuNjY1IDQuNjY1IDAgMTAuNDE5IDB6bTAgMS40ODhhOC45MyA4LjkzIDAgMDAtOC45MyA4LjkzdjExLjE2M2E4LjkzIDguOTMgMCAwMDguOTMgOC45M0gyMS41OGE4LjkzIDguOTMgMCAwMDguOTMtOC45M1YxMC40MmE4LjkzIDguOTMgMCAwMC04LjkzLTguOTNIMTAuNDJ6IiBmaWxsPSIjZmZmIi8+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNS45OTggMjYuMDQ5Yy01LjU0OSAwLTEwLjA0Ny00LjQ5OC0xMC4wNDctMTAuMDQ3IDAtNS41NDggNC40OTgtMTAuMDQ2IDEwLjA0Ny0xMC4wNDYgNS41NDggMCAxMC4wNDYgNC40OTggMTAuMDQ2IDEwLjA0NiAwIDUuNTQ5LTQuNDk4IDEwLjA0Ny0xMC4wNDYgMTAuMDQ3eiIgZmlsbD0iI2ZmZiIvPjxwYXRoIGQ9Ik0xMi43NjIgMTQuMjU0YzAtLjgyMi42NjctMS40ODkgMS40ODktMS40ODloMy40OTdjLjgyMiAwIDEuNDg4LjY2NiAxLjQ4OCAxLjQ4OXYzLjQ5N2MwIC44MjItLjY2NiAxLjQ4OC0xLjQ4OCAxLjQ4OGgtMy40OTdhMS40ODggMS40ODggMCAwMS0xLjQ4OS0xLjQ4OHYtMy40OTh6IiBmaWxsPSIjMTY1MkYwIi8+PC9zdmc+", c = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyIDYuNzV2LTEuNWwtMS43Mi0uNTdjLS4wOC0uMjctLjE5LS41Mi0uMzItLjc3bC44MS0xLjYyLTEuMDYtMS4wNi0xLjYyLjgxYy0uMjQtLjEzLS41LS4yNC0uNzctLjMyTDYuNzUgMGgtMS41bC0uNTcgMS43MmMtLjI3LjA4LS41My4xOS0uNzcuMzJsLTEuNjItLjgxLTEuMDYgMS4wNi44MSAxLjYyYy0uMTMuMjQtLjI0LjUtLjMyLjc3TDAgNS4yNXYxLjVsMS43Mi41N2MuMDguMjcuMTkuNTMuMzIuNzdsLS44MSAxLjYyIDEuMDYgMS4wNiAxLjYyLS44MWMuMjQuMTMuNS4yMy43Ny4zMkw1LjI1IDEyaDEuNWwuNTctMS43MmMuMjctLjA4LjUyLS4xOS43Ny0uMzJsMS42Mi44MSAxLjA2LTEuMDYtLjgxLTEuNjJjLjEzLS4yNC4yMy0uNS4zMi0uNzdMMTIgNi43NXpNNiA4LjVhMi41IDIuNSAwIDAxMC01IDIuNSAyLjUgMCAwMTAgNXoiIGZpbGw9IiMwNTBGMTkiLz48L3N2Zz4=";
4469
4487
  class d {
4470
4488
  constructor() {
4471
4489
  this.items = /* @__PURE__ */ new Map(), this.nextItemKey = 0, this.root = null, this.darkMode = (0, s.isDarkMode)();
@@ -4549,19 +4567,19 @@ Jn.default = ".-cbwsdk-css-reset .-gear-container{margin-left:16px !important;ma
4549
4567
  );
4550
4568
  };
4551
4569
  e.SnackbarInstance = h;
4552
- })(Kn);
4570
+ })(zn);
4553
4571
  Object.defineProperty(dr, "__esModule", { value: !0 });
4554
4572
  dr.WalletLinkRelayUI = void 0;
4555
- const zl = Rt, Vl = Kn;
4556
- class Gl {
4573
+ const Vl = Rt, Gl = zn;
4574
+ class Zl {
4557
4575
  constructor() {
4558
- this.attached = !1, this.snackbar = new Vl.Snackbar();
4576
+ this.attached = !1, this.snackbar = new Gl.Snackbar();
4559
4577
  }
4560
4578
  attach() {
4561
4579
  if (this.attached)
4562
4580
  throw new Error("Coinbase Wallet SDK UI is already attached");
4563
4581
  const t = document.documentElement, r = document.createElement("div");
4564
- r.className = "-cbwsdk-css-reset", t.appendChild(r), this.snackbar.attach(r), this.attached = !0, (0, zl.injectCssReset)();
4582
+ r.className = "-cbwsdk-css-reset", t.appendChild(r), this.snackbar.attach(r), this.attached = !0, (0, Vl.injectCssReset)();
4565
4583
  }
4566
4584
  showConnecting(t) {
4567
4585
  let r;
@@ -4607,23 +4625,23 @@ class Gl {
4607
4625
  }, this.snackbar.presentItem(r);
4608
4626
  }
4609
4627
  }
4610
- dr.WalletLinkRelayUI = Gl;
4611
- var fr = {}, _r = {}, Qn = {};
4612
- Object.defineProperty(Qn, "__esModule", { value: !0 });
4613
- Qn.default = ".-cbwsdk-css-reset .-cbwsdk-redirect-dialog-backdrop{position:fixed;top:0;left:0;right:0;bottom:0;transition:opacity .25s;background-color:rgba(10,11,13,.5)}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-backdrop-hidden{opacity:0}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box{display:block;position:fixed;top:50%;left:50%;transform:translate(-50%, -50%);padding:20px;border-radius:8px;background-color:#fff;color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box p{display:block;font-weight:400;font-size:14px;line-height:20px;padding-bottom:12px;color:#5b636e}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box button{appearance:none;border:none;background:none;color:#0052ff;padding:0;text-decoration:none;display:block;font-weight:600;font-size:16px;line-height:24px}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.dark{background-color:#0a0b0d;color:#fff}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.dark button{color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.light{background-color:#fff;color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.light button{color:#0052ff}";
4614
- var ya = Z && Z.__importDefault || function(e) {
4628
+ dr.WalletLinkRelayUI = Zl;
4629
+ var fr = {}, _r = {}, Xn = {};
4630
+ Object.defineProperty(Xn, "__esModule", { value: !0 });
4631
+ Xn.default = ".-cbwsdk-css-reset .-cbwsdk-redirect-dialog-backdrop{position:fixed;top:0;left:0;right:0;bottom:0;transition:opacity .25s;background-color:rgba(10,11,13,.5)}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-backdrop-hidden{opacity:0}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box{display:block;position:fixed;top:50%;left:50%;transform:translate(-50%, -50%);padding:20px;border-radius:8px;background-color:#fff;color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box p{display:block;font-weight:400;font-size:14px;line-height:20px;padding-bottom:12px;color:#5b636e}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box button{appearance:none;border:none;background:none;color:#0052ff;padding:0;text-decoration:none;display:block;font-weight:600;font-size:16px;line-height:24px}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.dark{background-color:#0a0b0d;color:#fff}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.dark button{color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.light{background-color:#fff;color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-redirect-dialog-box.light button{color:#0052ff}";
4632
+ var va = Z && Z.__importDefault || function(e) {
4615
4633
  return e && e.__esModule ? e : { default: e };
4616
4634
  };
4617
4635
  Object.defineProperty(_r, "__esModule", { value: !0 });
4618
4636
  _r.RedirectDialog = void 0;
4619
- const Zl = ya(Js), _e = ha, Yl = Rt, Jl = Kn, Ql = ne, Xl = ya(Qn);
4620
- class eu {
4637
+ const Yl = va(Qs), _e = fa, Jl = Rt, Ql = zn, Xl = ne, eu = va(Xn);
4638
+ class tu {
4621
4639
  constructor() {
4622
- this.root = null, this.darkMode = (0, Ql.isDarkMode)();
4640
+ this.root = null, this.darkMode = (0, Xl.isDarkMode)();
4623
4641
  }
4624
4642
  attach() {
4625
4643
  const t = document.documentElement;
4626
- this.root = document.createElement("div"), this.root.className = "-cbwsdk-css-reset", t.appendChild(this.root), (0, Yl.injectCssReset)();
4644
+ this.root = document.createElement("div"), this.root.className = "-cbwsdk-css-reset", t.appendChild(this.root), (0, Jl.injectCssReset)();
4627
4645
  }
4628
4646
  present(t) {
4629
4647
  this.render(t);
@@ -4632,25 +4650,25 @@ class eu {
4632
4650
  this.render(null);
4633
4651
  }
4634
4652
  render(t) {
4635
- this.root && ((0, _e.render)(null, this.root), t && (0, _e.render)((0, _e.h)(tu, Object.assign({}, t, { onDismiss: () => {
4653
+ this.root && ((0, _e.render)(null, this.root), t && (0, _e.render)((0, _e.h)(ru, Object.assign({}, t, { onDismiss: () => {
4636
4654
  this.clear();
4637
4655
  }, darkMode: this.darkMode })), this.root));
4638
4656
  }
4639
4657
  }
4640
- _r.RedirectDialog = eu;
4641
- const tu = ({ title: e, buttonText: t, darkMode: r, onButtonClick: n, onDismiss: i }) => {
4658
+ _r.RedirectDialog = tu;
4659
+ const ru = ({ title: e, buttonText: t, darkMode: r, onButtonClick: n, onDismiss: i }) => {
4642
4660
  const s = r ? "dark" : "light";
4643
4661
  return (0, _e.h)(
4644
- Jl.SnackbarContainer,
4662
+ Ql.SnackbarContainer,
4645
4663
  { darkMode: r },
4646
4664
  (0, _e.h)(
4647
4665
  "div",
4648
4666
  { class: "-cbwsdk-redirect-dialog" },
4649
- (0, _e.h)("style", null, Xl.default),
4667
+ (0, _e.h)("style", null, eu.default),
4650
4668
  (0, _e.h)("div", { class: "-cbwsdk-redirect-dialog-backdrop", onClick: i }),
4651
4669
  (0, _e.h)(
4652
4670
  "div",
4653
- { class: (0, Zl.default)("-cbwsdk-redirect-dialog-box", s) },
4671
+ { class: (0, Yl.default)("-cbwsdk-redirect-dialog-box", s) },
4654
4672
  (0, _e.h)("p", null, e),
4655
4673
  (0, _e.h)("button", { onClick: n }, t)
4656
4674
  )
@@ -4665,10 +4683,10 @@ be.WALLETLINK_URL = "https://www.walletlink.org";
4665
4683
  be.CBW_MOBILE_DEEPLINK_URL = "https://go.cb-w.com/walletlink";
4666
4684
  Object.defineProperty(fr, "__esModule", { value: !0 });
4667
4685
  fr.WLMobileRelayUI = void 0;
4668
- const ru = _r, nu = ne, iu = be;
4669
- class su {
4686
+ const nu = _r, iu = ne, su = be;
4687
+ class au {
4670
4688
  constructor() {
4671
- this.attached = !1, this.redirectDialog = new ru.RedirectDialog();
4689
+ this.attached = !1, this.redirectDialog = new nu.RedirectDialog();
4672
4690
  }
4673
4691
  attach() {
4674
4692
  if (this.attached)
@@ -4676,8 +4694,8 @@ class su {
4676
4694
  this.redirectDialog.attach(), this.attached = !0;
4677
4695
  }
4678
4696
  redirectToCoinbaseWallet(t) {
4679
- const r = new URL(iu.CBW_MOBILE_DEEPLINK_URL);
4680
- r.searchParams.append("redirect_url", (0, nu.getLocation)().href), t && r.searchParams.append("wl_url", t);
4697
+ const r = new URL(su.CBW_MOBILE_DEEPLINK_URL);
4698
+ r.searchParams.append("redirect_url", (0, iu.getLocation)().href), t && r.searchParams.append("wl_url", t);
4681
4699
  const n = document.createElement("a");
4682
4700
  n.target = "cbw-opener", n.href = r.href, n.rel = "noreferrer noopener", n.click();
4683
4701
  }
@@ -4698,15 +4716,15 @@ class su {
4698
4716
  };
4699
4717
  }
4700
4718
  }
4701
- fr.WLMobileRelayUI = su;
4719
+ fr.WLMobileRelayUI = au;
4702
4720
  Object.defineProperty(nr, "__esModule", { value: !0 });
4703
4721
  nr.WalletLinkRelay = void 0;
4704
- const au = ir, ou = ge, cu = Et, Rn = or, Je = at, lu = ne, uu = dr, Fi = fr, du = ye, K = M, hu = ve;
4722
+ const ou = ir, cu = ge, lu = Et, Rn = or, Je = at, uu = ne, du = dr, qi = fr, hu = ye, K = M, fu = ve;
4705
4723
  class Ie {
4706
4724
  constructor(t) {
4707
- this.accountsCallback = null, this.chainCallbackParams = { chainId: "", jsonRpcUrl: "" }, this.chainCallback = null, this.dappDefaultChain = 1, this.isMobileWeb = (0, lu.isMobileWeb)(), this.appName = "", this.appLogoUrl = null, this.linkedUpdated = (s) => {
4725
+ this.accountsCallback = null, this.chainCallbackParams = { chainId: "", jsonRpcUrl: "" }, this.chainCallback = null, this.dappDefaultChain = 1, this.isMobileWeb = (0, uu.isMobileWeb)(), this.appName = "", this.appLogoUrl = null, this.linkedUpdated = (s) => {
4708
4726
  this.isLinked = s;
4709
- const a = this.storage.getItem(ou.LOCAL_STORAGE_ADDRESSES_KEY);
4727
+ const a = this.storage.getItem(cu.LOCAL_STORAGE_ADDRESSES_KEY);
4710
4728
  if (s && (this._session.linked = s), this.isUnlinkedErrorState = !1, a) {
4711
4729
  const o = a.split(" "), c = this.storage.getItem("IsStandaloneSigning") === "true";
4712
4730
  o[0] !== "" && !s && this._session.linked && !c && (this.isUnlinkedErrorState = !0);
@@ -4732,14 +4750,14 @@ class Ie {
4732
4750
  }), Ie.accountRequestCallbackIds.clear());
4733
4751
  }, this.resetAndReload = this.resetAndReload.bind(this), this.linkAPIUrl = t.linkAPIUrl, this.storage = t.storage;
4734
4752
  const { session: r, ui: n, connection: i } = this.subscribe();
4735
- this._session = r, this.connection = i, this.relayEventManager = new cu.RelayEventManager(), this.ui = n;
4753
+ this._session = r, this.connection = i, this.relayEventManager = new lu.RelayEventManager(), this.ui = n;
4736
4754
  }
4737
4755
  subscribe() {
4738
- const t = Rn.WalletLinkSession.load(this.storage) || new Rn.WalletLinkSession(this.storage).save(), { linkAPIUrl: r } = this, n = new au.WalletLinkConnection({
4756
+ const t = Rn.WalletLinkSession.load(this.storage) || new Rn.WalletLinkSession(this.storage).save(), { linkAPIUrl: r } = this, n = new ou.WalletLinkConnection({
4739
4757
  session: t,
4740
4758
  linkAPIUrl: r,
4741
4759
  listener: this
4742
- }), i = this.isMobileWeb ? new Fi.WLMobileRelayUI() : new uu.WalletLinkRelayUI();
4760
+ }), i = this.isMobileWeb ? new qi.WLMobileRelayUI() : new du.WalletLinkRelayUI();
4743
4761
  return n.connect(), { session: t, ui: i, connection: n };
4744
4762
  }
4745
4763
  attachUI() {
@@ -4752,7 +4770,7 @@ class Ie {
4752
4770
  ]).then(() => {
4753
4771
  this.connection.destroy();
4754
4772
  const t = Rn.WalletLinkSession.load(this.storage);
4755
- (t == null ? void 0 : t.id) === this._session.id && hu.ScopedLocalStorage.clearAll(), document.location.reload();
4773
+ (t == null ? void 0 : t.id) === this._session.id && fu.ScopedLocalStorage.clearAll(), document.location.reload();
4756
4774
  }).catch((t) => {
4757
4775
  });
4758
4776
  }
@@ -4897,7 +4915,7 @@ class Ie {
4897
4915
  }
4898
4916
  // copied from MobileRelay
4899
4917
  openCoinbaseWalletDeeplink(t) {
4900
- if (this.ui instanceof Fi.WLMobileRelayUI)
4918
+ if (this.ui instanceof qi.WLMobileRelayUI)
4901
4919
  switch (t) {
4902
4920
  case "requestEthereumAccounts":
4903
4921
  case "switchEthereumChain":
@@ -5029,7 +5047,7 @@ class Ie {
5029
5047
  return new Promise((s, a) => {
5030
5048
  this.relayEventManager.callbacks.set(i, (o) => {
5031
5049
  if ((0, Je.isErrorResponse)(o) && o.errorCode)
5032
- return a(du.standardErrors.provider.custom({
5050
+ return a(hu.standardErrors.provider.custom({
5033
5051
  code: o.errorCode,
5034
5052
  message: "Unrecognized chain ID. Try adding the chain using addEthereumChain first."
5035
5053
  }));
@@ -5042,22 +5060,22 @@ class Ie {
5042
5060
  }
5043
5061
  nr.WalletLinkRelay = Ie;
5044
5062
  Ie.accountRequestCallbackIds = /* @__PURE__ */ new Set();
5045
- var fu = Z && Z.__importDefault || function(e) {
5063
+ var _u = Z && Z.__importDefault || function(e) {
5046
5064
  return e && e.__esModule ? e : { default: e };
5047
5065
  };
5048
5066
  Object.defineProperty(Xt, "__esModule", { value: !0 });
5049
5067
  Xt.WalletLinkSigner = void 0;
5050
- const In = fu(dc), qi = ge, _u = Et, Re = at, pu = nr, Ki = be, G = ye, O = M, gu = ve, Mn = "DefaultChainId", zi = "DefaultJsonRpcUrl";
5051
- class bu {
5068
+ const In = _u(hc), Ki = ge, pu = Et, Re = at, gu = nr, zi = be, G = ye, D = M, bu = ve, Mn = "DefaultChainId", Vi = "DefaultJsonRpcUrl";
5069
+ class yu {
5052
5070
  constructor(t) {
5053
5071
  var r, n;
5054
5072
  this._relay = null, this._addresses = [], this.hasMadeFirstChainChangedEmission = !1;
5055
5073
  const { appName: i, appLogoUrl: s } = t.metadata;
5056
- this._appName = i, this._appLogoUrl = s, this._storage = new gu.ScopedLocalStorage("walletlink", Ki.WALLETLINK_URL), this.updateListener = t.updateListener, this._relayEventManager = new _u.RelayEventManager(), this._jsonRpcUrlFromOpts = "";
5057
- const a = this._storage.getItem(qi.LOCAL_STORAGE_ADDRESSES_KEY);
5074
+ this._appName = i, this._appLogoUrl = s, this._storage = new bu.ScopedLocalStorage("walletlink", zi.WALLETLINK_URL), this.updateListener = t.updateListener, this._relayEventManager = new pu.RelayEventManager(), this._jsonRpcUrlFromOpts = "";
5075
+ const a = this._storage.getItem(Ki.LOCAL_STORAGE_ADDRESSES_KEY);
5058
5076
  if (a) {
5059
5077
  const c = a.split(" ");
5060
- c[0] !== "" && (this._addresses = c.map((d) => (0, O.ensureAddressString)(d)), (r = this.updateListener) === null || r === void 0 || r.onAccountsUpdate({
5078
+ c[0] !== "" && (this._addresses = c.map((d) => (0, D.ensureAddressString)(d)), (r = this.updateListener) === null || r === void 0 || r.onAccountsUpdate({
5061
5079
  accounts: this._addresses,
5062
5080
  source: "storage"
5063
5081
  }));
@@ -5082,16 +5100,16 @@ class bu {
5082
5100
  }
5083
5101
  get jsonRpcUrl() {
5084
5102
  var t;
5085
- return (t = this._storage.getItem(zi)) !== null && t !== void 0 ? t : this._jsonRpcUrlFromOpts;
5103
+ return (t = this._storage.getItem(Vi)) !== null && t !== void 0 ? t : this._jsonRpcUrlFromOpts;
5086
5104
  }
5087
5105
  set jsonRpcUrl(t) {
5088
- this._storage.setItem(zi, t);
5106
+ this._storage.setItem(Vi, t);
5089
5107
  }
5090
5108
  updateProviderInfo(t, r) {
5091
5109
  var n;
5092
5110
  this.jsonRpcUrl = t;
5093
5111
  const i = this.getChainId();
5094
- this._storage.setItem(Mn, r.toString(10)), ((0, O.ensureIntNumber)(r) !== i || !this.hasMadeFirstChainChangedEmission) && ((n = this.updateListener) === null || n === void 0 || n.onChainUpdate({
5112
+ this._storage.setItem(Mn, r.toString(10)), ((0, D.ensureIntNumber)(r) !== i || !this.hasMadeFirstChainChangedEmission) && ((n = this.updateListener) === null || n === void 0 || n.onChainUpdate({
5095
5113
  chain: { id: r, rpcUrl: t },
5096
5114
  source: "wallet"
5097
5115
  }), this.hasMadeFirstChainChangedEmission = !0);
@@ -5102,7 +5120,7 @@ class bu {
5102
5120
  }
5103
5121
  async addEthereumChain(t, r, n, i, s, a) {
5104
5122
  var o, c;
5105
- if ((0, O.ensureIntNumber)(t) === this.getChainId())
5123
+ if ((0, D.ensureIntNumber)(t) === this.getChainId())
5106
5124
  return !1;
5107
5125
  const d = this.initializeRelay();
5108
5126
  this._isAuthorized() || await d.requestEthereumAccounts();
@@ -5163,11 +5181,11 @@ class bu {
5163
5181
  var n;
5164
5182
  if (!Array.isArray(t))
5165
5183
  throw new Error("addresses is not an array");
5166
- const i = t.map((s) => (0, O.ensureAddressString)(s));
5184
+ const i = t.map((s) => (0, D.ensureAddressString)(s));
5167
5185
  JSON.stringify(i) !== JSON.stringify(this._addresses) && (this._addresses = i, (n = this.updateListener) === null || n === void 0 || n.onAccountsUpdate({
5168
5186
  accounts: i,
5169
5187
  source: "wallet"
5170
- }), this._storage.setItem(qi.LOCAL_STORAGE_ADDRESSES_KEY, i.join(" ")));
5188
+ }), this._storage.setItem(Ki.LOCAL_STORAGE_ADDRESSES_KEY, i.join(" ")));
5171
5189
  }
5172
5190
  _sendRequestAsync(t) {
5173
5191
  return new Promise((r, n) => {
@@ -5240,8 +5258,8 @@ class bu {
5240
5258
  }
5241
5259
  _isKnownAddress(t) {
5242
5260
  try {
5243
- const r = (0, O.ensureAddressString)(t);
5244
- return this._addresses.map((i) => (0, O.ensureAddressString)(i)).includes(r);
5261
+ const r = (0, D.ensureAddressString)(t);
5262
+ return this._addresses.map((i) => (0, D.ensureAddressString)(i)).includes(r);
5245
5263
  } catch {
5246
5264
  }
5247
5265
  return !1;
@@ -5251,11 +5269,11 @@ class bu {
5251
5269
  throw new Error("Unknown Ethereum address");
5252
5270
  }
5253
5271
  _prepareTransactionParams(t) {
5254
- const r = t.from ? (0, O.ensureAddressString)(t.from) : this.selectedAddress;
5272
+ const r = t.from ? (0, D.ensureAddressString)(t.from) : this.selectedAddress;
5255
5273
  if (!r)
5256
5274
  throw new Error("Ethereum address is unavailable");
5257
5275
  this._ensureKnownAddress(r);
5258
- const n = t.to ? (0, O.ensureAddressString)(t.to) : null, i = t.value != null ? (0, O.ensureBigInt)(t.value) : BigInt(0), s = t.data ? (0, O.ensureBuffer)(t.data) : Buffer.alloc(0), a = t.nonce != null ? (0, O.ensureIntNumber)(t.nonce) : null, o = t.gasPrice != null ? (0, O.ensureBigInt)(t.gasPrice) : null, c = t.maxFeePerGas != null ? (0, O.ensureBigInt)(t.maxFeePerGas) : null, d = t.maxPriorityFeePerGas != null ? (0, O.ensureBigInt)(t.maxPriorityFeePerGas) : null, p = t.gas != null ? (0, O.ensureBigInt)(t.gas) : null, h = t.chainId ? (0, O.ensureIntNumber)(t.chainId) : this.getChainId();
5276
+ const n = t.to ? (0, D.ensureAddressString)(t.to) : null, i = t.value != null ? (0, D.ensureBigInt)(t.value) : BigInt(0), s = t.data ? (0, D.ensureBuffer)(t.data) : Buffer.alloc(0), a = t.nonce != null ? (0, D.ensureIntNumber)(t.nonce) : null, o = t.gasPrice != null ? (0, D.ensureBigInt)(t.gasPrice) : null, c = t.maxFeePerGas != null ? (0, D.ensureBigInt)(t.maxFeePerGas) : null, d = t.maxPriorityFeePerGas != null ? (0, D.ensureBigInt)(t.maxPriorityFeePerGas) : null, p = t.gas != null ? (0, D.ensureBigInt)(t.gas) : null, h = t.chainId ? (0, D.ensureIntNumber)(t.chainId) : this.getChainId();
5259
5277
  return {
5260
5278
  fromAddress: r,
5261
5279
  toAddress: n,
@@ -5306,14 +5324,14 @@ class bu {
5306
5324
  return this.getChainId().toString(10);
5307
5325
  }
5308
5326
  _eth_chainId() {
5309
- return (0, O.hexStringFromIntNumber)(this.getChainId());
5327
+ return (0, D.hexStringFromIntNumber)(this.getChainId());
5310
5328
  }
5311
5329
  getChainId() {
5312
5330
  const t = this._storage.getItem(Mn);
5313
5331
  if (!t)
5314
- return (0, O.ensureIntNumber)(1);
5332
+ return (0, D.ensureIntNumber)(1);
5315
5333
  const r = parseInt(t, 10);
5316
- return (0, O.ensureIntNumber)(r);
5334
+ return (0, D.ensureIntNumber)(r);
5317
5335
  }
5318
5336
  async _eth_requestAccounts() {
5319
5337
  if (this._isAuthorized())
@@ -5335,20 +5353,20 @@ class bu {
5335
5353
  }
5336
5354
  _eth_sign(t) {
5337
5355
  this._requireAuthorization();
5338
- const r = (0, O.ensureAddressString)(t[0]), n = (0, O.ensureBuffer)(t[1]);
5356
+ const r = (0, D.ensureAddressString)(t[0]), n = (0, D.ensureBuffer)(t[1]);
5339
5357
  return this._signEthereumMessage(n, r, !1);
5340
5358
  }
5341
5359
  _eth_ecRecover(t) {
5342
- const r = (0, O.ensureBuffer)(t[0]), n = (0, O.ensureBuffer)(t[1]);
5360
+ const r = (0, D.ensureBuffer)(t[0]), n = (0, D.ensureBuffer)(t[1]);
5343
5361
  return this._ethereumAddressFromSignedMessage(r, n, !1);
5344
5362
  }
5345
5363
  _personal_sign(t) {
5346
5364
  this._requireAuthorization();
5347
- const r = (0, O.ensureBuffer)(t[0]), n = (0, O.ensureAddressString)(t[1]);
5365
+ const r = (0, D.ensureBuffer)(t[0]), n = (0, D.ensureAddressString)(t[1]);
5348
5366
  return this._signEthereumMessage(r, n, !0);
5349
5367
  }
5350
5368
  _personal_ecRecover(t) {
5351
- const r = (0, O.ensureBuffer)(t[0]), n = (0, O.ensureBuffer)(t[1]);
5369
+ const r = (0, D.ensureBuffer)(t[0]), n = (0, D.ensureBuffer)(t[1]);
5352
5370
  return this._ethereumAddressFromSignedMessage(r, n, !0);
5353
5371
  }
5354
5372
  async _eth_signTransaction(t) {
@@ -5364,7 +5382,7 @@ class bu {
5364
5382
  }
5365
5383
  }
5366
5384
  async _eth_sendRawTransaction(t) {
5367
- const r = (0, O.ensureBuffer)(t[0]), i = await this.initializeRelay().submitEthereumTransaction(r, this.getChainId());
5385
+ const r = (0, D.ensureBuffer)(t[0]), i = await this.initializeRelay().submitEthereumTransaction(r, this.getChainId());
5368
5386
  if ((0, Re.isErrorResponse)(i))
5369
5387
  throw new Error(i.errorMessage);
5370
5388
  return { jsonrpc: "2.0", id: 0, result: i.result };
@@ -5383,21 +5401,21 @@ class bu {
5383
5401
  }
5384
5402
  async _eth_signTypedData_v1(t) {
5385
5403
  this._requireAuthorization();
5386
- const r = (0, O.ensureParsedJSONObject)(t[0]), n = (0, O.ensureAddressString)(t[1]);
5404
+ const r = (0, D.ensureParsedJSONObject)(t[0]), n = (0, D.ensureAddressString)(t[1]);
5387
5405
  this._ensureKnownAddress(n);
5388
5406
  const i = In.default.hashForSignTypedDataLegacy({ data: r }), s = JSON.stringify(r, null, 2);
5389
5407
  return this._signEthereumMessage(i, n, !1, s);
5390
5408
  }
5391
5409
  async _eth_signTypedData_v3(t) {
5392
5410
  this._requireAuthorization();
5393
- const r = (0, O.ensureAddressString)(t[0]), n = (0, O.ensureParsedJSONObject)(t[1]);
5411
+ const r = (0, D.ensureAddressString)(t[0]), n = (0, D.ensureParsedJSONObject)(t[1]);
5394
5412
  this._ensureKnownAddress(r);
5395
5413
  const i = In.default.hashForSignTypedData_v3({ data: n }), s = JSON.stringify(n, null, 2);
5396
5414
  return this._signEthereumMessage(i, r, !1, s);
5397
5415
  }
5398
5416
  async _eth_signTypedData_v4(t) {
5399
5417
  this._requireAuthorization();
5400
- const r = (0, O.ensureAddressString)(t[0]), n = (0, O.ensureParsedJSONObject)(t[1]);
5418
+ const r = (0, D.ensureAddressString)(t[0]), n = (0, D.ensureParsedJSONObject)(t[1]);
5401
5419
  this._ensureKnownAddress(r);
5402
5420
  const i = In.default.hashForSignTypedData_v4({ data: n }), s = JSON.stringify(n, null, 2);
5403
5421
  return this._signEthereumMessage(i, r, !1, s);
@@ -5441,8 +5459,8 @@ class bu {
5441
5459
  }
5442
5460
  initializeRelay() {
5443
5461
  if (!this._relay) {
5444
- const t = new pu.WalletLinkRelay({
5445
- linkAPIUrl: Ki.WALLETLINK_URL,
5462
+ const t = new gu.WalletLinkRelay({
5463
+ linkAPIUrl: zi.WALLETLINK_URL,
5446
5464
  storage: this._storage
5447
5465
  });
5448
5466
  t.setAppInfo(this._appName, this._appLogoUrl), t.attachUI(), t.setAccountsCallback((r, n) => this._setAddresses(r, n)), t.setChainCallback((r, n) => {
@@ -5452,12 +5470,12 @@ class bu {
5452
5470
  return this._relay;
5453
5471
  }
5454
5472
  }
5455
- Xt.WalletLinkSigner = bu;
5473
+ Xt.WalletLinkSigner = yu;
5456
5474
  var oe = {};
5457
5475
  Object.defineProperty(oe, "__esModule", { value: !0 });
5458
5476
  oe.checkErrorForInvalidRequestArgs = oe.getCoinbaseInjectedProvider = oe.getCoinbaseInjectedSigner = oe.fetchRPCRequest = void 0;
5459
- const yu = He, Ut = ye;
5460
- async function vu(e, t) {
5477
+ const vu = He, Ut = ye;
5478
+ async function mu(e, t) {
5461
5479
  if (!t.rpcUrl)
5462
5480
  throw Ut.standardErrors.rpc.internal("No RPC URL set for chain");
5463
5481
  const r = Object.assign(Object.assign({}, e), { jsonrpc: "2.0", id: crypto.randomUUID() });
@@ -5465,19 +5483,19 @@ async function vu(e, t) {
5465
5483
  method: "POST",
5466
5484
  body: JSON.stringify(r),
5467
5485
  mode: "cors",
5468
- headers: { "Content-Type": "application/json", "X-Cbw-Sdk-Version": yu.LIB_VERSION }
5486
+ headers: { "Content-Type": "application/json", "X-Cbw-Sdk-Version": vu.LIB_VERSION }
5469
5487
  })).json()).result;
5470
5488
  }
5471
- oe.fetchRPCRequest = vu;
5472
- function va() {
5489
+ oe.fetchRPCRequest = mu;
5490
+ function ma() {
5473
5491
  return globalThis.coinbaseWalletSigner;
5474
5492
  }
5475
- oe.getCoinbaseInjectedSigner = va;
5476
- function mu({ metadata: e, preference: t }) {
5493
+ oe.getCoinbaseInjectedSigner = ma;
5494
+ function wu({ metadata: e, preference: t }) {
5477
5495
  var r, n, i;
5478
5496
  const s = globalThis;
5479
5497
  if (t.options !== "smartWalletOnly") {
5480
- if (va())
5498
+ if (ma())
5481
5499
  return;
5482
5500
  const c = s.coinbaseWalletExtension;
5483
5501
  if (c) {
@@ -5489,8 +5507,8 @@ function mu({ metadata: e, preference: t }) {
5489
5507
  if (a != null && a.isCoinbaseBrowser)
5490
5508
  return a;
5491
5509
  }
5492
- oe.getCoinbaseInjectedProvider = mu;
5493
- function wu(e) {
5510
+ oe.getCoinbaseInjectedProvider = wu;
5511
+ function Eu(e) {
5494
5512
  if (!e || typeof e != "object" || Array.isArray(e))
5495
5513
  return Ut.standardErrors.rpc.invalidParams({
5496
5514
  message: "Expected a single, non-array, object argument.",
@@ -5508,21 +5526,21 @@ function wu(e) {
5508
5526
  data: e
5509
5527
  });
5510
5528
  }
5511
- oe.checkErrorForInvalidRequestArgs = wu;
5529
+ oe.checkErrorForInvalidRequestArgs = Eu;
5512
5530
  Object.defineProperty(pe, "__esModule", { value: !0 });
5513
5531
  pe.createSigner = pe.fetchSignerType = pe.storeSignerType = pe.loadSignerType = void 0;
5514
- const Eu = Yt, ma = Xt, Su = ye, Cu = oe, xu = ve, wa = "SignerType", Ea = new xu.ScopedLocalStorage("CBWSDK", "SignerConfigurator");
5515
- function ku() {
5516
- return Ea.getItem(wa);
5532
+ const Su = Yt, wa = Xt, Cu = ye, xu = oe, ku = ve, Ea = "SignerType", Sa = new ku.ScopedLocalStorage("CBWSDK", "SignerConfigurator");
5533
+ function Ru() {
5534
+ return Sa.getItem(Ea);
5517
5535
  }
5518
- pe.loadSignerType = ku;
5519
- function Ru(e) {
5520
- Ea.setItem(wa, e);
5536
+ pe.loadSignerType = Ru;
5537
+ function Iu(e) {
5538
+ Sa.setItem(Ea, e);
5521
5539
  }
5522
- pe.storeSignerType = Ru;
5523
- async function Iu(e) {
5540
+ pe.storeSignerType = Iu;
5541
+ async function Mu(e) {
5524
5542
  const { communicator: t, metadata: r } = e;
5525
- Au(t, r).catch(() => {
5543
+ Lu(t, r).catch(() => {
5526
5544
  });
5527
5545
  const n = {
5528
5546
  id: crypto.randomUUID(),
@@ -5531,33 +5549,33 @@ async function Iu(e) {
5531
5549
  }, { data: i } = await t.postRequestAndWaitForResponse(n);
5532
5550
  return i;
5533
5551
  }
5534
- pe.fetchSignerType = Iu;
5535
- function Mu(e) {
5552
+ pe.fetchSignerType = Mu;
5553
+ function Au(e) {
5536
5554
  const { signerType: t, metadata: r, communicator: n, updateListener: i } = e;
5537
5555
  switch (t) {
5538
5556
  case "scw":
5539
- return new Eu.SCWSigner({
5557
+ return new Su.SCWSigner({
5540
5558
  metadata: r,
5541
5559
  updateListener: i,
5542
5560
  communicator: n
5543
5561
  });
5544
5562
  case "walletlink":
5545
- return new ma.WalletLinkSigner({
5563
+ return new wa.WalletLinkSigner({
5546
5564
  metadata: r,
5547
5565
  updateListener: i
5548
5566
  });
5549
5567
  case "extension": {
5550
- const s = (0, Cu.getCoinbaseInjectedSigner)();
5568
+ const s = (0, xu.getCoinbaseInjectedSigner)();
5551
5569
  if (!s)
5552
- throw Su.standardErrors.rpc.internal("injected signer not found");
5570
+ throw Cu.standardErrors.rpc.internal("injected signer not found");
5553
5571
  return s;
5554
5572
  }
5555
5573
  }
5556
5574
  }
5557
- pe.createSigner = Mu;
5558
- async function Au(e, t) {
5575
+ pe.createSigner = Au;
5576
+ async function Lu(e, t) {
5559
5577
  await e.onMessage(({ event: n }) => n === "WalletLinkSessionRequest");
5560
- const r = new ma.WalletLinkSigner({
5578
+ const r = new wa.WalletLinkSigner({
5561
5579
  metadata: t
5562
5580
  });
5563
5581
  e.postMessage({
@@ -5571,22 +5589,22 @@ async function Au(e, t) {
5571
5589
  var pr = {}, st = {};
5572
5590
  Object.defineProperty(st, "__esModule", { value: !0 });
5573
5591
  st.closePopup = st.openPopup = void 0;
5574
- const Lu = ye, Vi = 420, Gi = 540;
5575
- function Tu(e) {
5576
- const t = (window.innerWidth - Vi) / 2 + window.screenX, r = (window.innerHeight - Gi) / 2 + window.screenY, n = window.open(e, "Smart Wallet", `width=${Vi}, height=${Gi}, left=${t}, top=${r}`);
5592
+ const Tu = ye, Gi = 420, Zi = 540;
5593
+ function Pu(e) {
5594
+ const t = (window.innerWidth - Gi) / 2 + window.screenX, r = (window.innerHeight - Zi) / 2 + window.screenY, n = window.open(e, "Smart Wallet", `width=${Gi}, height=${Zi}, left=${t}, top=${r}`);
5577
5595
  if (n == null || n.focus(), !n)
5578
- throw Lu.standardErrors.rpc.internal("Pop up window failed to open");
5596
+ throw Tu.standardErrors.rpc.internal("Pop up window failed to open");
5579
5597
  return n;
5580
5598
  }
5581
- st.openPopup = Tu;
5582
- function Pu(e) {
5599
+ st.openPopup = Pu;
5600
+ function Nu(e) {
5583
5601
  e && !e.closed && e.close();
5584
5602
  }
5585
- st.closePopup = Pu;
5603
+ st.closePopup = Nu;
5586
5604
  Object.defineProperty(pr, "__esModule", { value: !0 });
5587
5605
  pr.Communicator = void 0;
5588
- const Nu = He, Zi = st, Du = be, Yi = ye;
5589
- class Ou {
5606
+ const Ou = He, Yi = st, Du = be, Ji = ye;
5607
+ class Bu {
5590
5608
  constructor(t = Du.CB_KEYS_URL) {
5591
5609
  this.popup = null, this.listeners = /* @__PURE__ */ new Map(), this.postMessage = async (r) => {
5592
5610
  (await this.waitForPopupLoaded()).postMessage(r, this.url.origin);
@@ -5602,27 +5620,27 @@ class Ou {
5602
5620
  };
5603
5621
  window.addEventListener("message", s), this.listeners.set(s, { reject: i });
5604
5622
  }), this.disconnect = () => {
5605
- (0, Zi.closePopup)(this.popup), this.popup = null, this.listeners.forEach(({ reject: r }, n) => {
5606
- r(Yi.standardErrors.provider.userRejectedRequest("Request rejected")), window.removeEventListener("message", n);
5623
+ (0, Yi.closePopup)(this.popup), this.popup = null, this.listeners.forEach(({ reject: r }, n) => {
5624
+ r(Ji.standardErrors.provider.userRejectedRequest("Request rejected")), window.removeEventListener("message", n);
5607
5625
  }), this.listeners.clear();
5608
- }, this.waitForPopupLoaded = async () => this.popup && !this.popup.closed ? this.popup : (this.popup = (0, Zi.openPopup)(this.url), this.onMessage(({ event: r }) => r === "PopupUnload").then(this.disconnect).catch(() => {
5626
+ }, this.waitForPopupLoaded = async () => this.popup && !this.popup.closed ? this.popup : (this.popup = (0, Yi.openPopup)(this.url), this.onMessage(({ event: r }) => r === "PopupUnload").then(this.disconnect).catch(() => {
5609
5627
  }), this.onMessage(({ event: r }) => r === "PopupLoaded").then((r) => {
5610
5628
  this.postMessage({
5611
5629
  requestId: r.id,
5612
- data: { version: Nu.LIB_VERSION }
5630
+ data: { version: Ou.LIB_VERSION }
5613
5631
  });
5614
5632
  }).then(() => {
5615
5633
  if (!this.popup)
5616
- throw Yi.standardErrors.rpc.internal();
5634
+ throw Ji.standardErrors.rpc.internal();
5617
5635
  return this.popup;
5618
5636
  })), this.url = new URL(t);
5619
5637
  }
5620
5638
  }
5621
- pr.Communicator = Ou;
5639
+ pr.Communicator = Bu;
5622
5640
  var gr = {};
5623
5641
  Object.defineProperty(gr, "__esModule", { value: !0 });
5624
5642
  gr.determineMethodCategory = void 0;
5625
- const Ji = {
5643
+ const Qi = {
5626
5644
  handshake: ["eth_requestAccounts"],
5627
5645
  sign: [
5628
5646
  "eth_ecRecover",
@@ -5652,38 +5670,38 @@ const Ji = {
5652
5670
  unsupported: ["eth_subscribe", "eth_unsubscribe"],
5653
5671
  fetch: []
5654
5672
  };
5655
- function Bu(e) {
5656
- for (const t in Ji) {
5673
+ function ju(e) {
5674
+ for (const t in Qi) {
5657
5675
  const r = t;
5658
- if (Ji[r].includes(e))
5676
+ if (Qi[r].includes(e))
5659
5677
  return r;
5660
5678
  }
5661
5679
  }
5662
- gr.determineMethodCategory = Bu;
5663
- var ju = Z && Z.__rest || function(e, t) {
5680
+ gr.determineMethodCategory = ju;
5681
+ var Wu = Z && Z.__rest || function(e, t) {
5664
5682
  var r = {};
5665
5683
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
5666
5684
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
5667
5685
  for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
5668
5686
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
5669
5687
  return r;
5670
- }, Wu = Z && Z.__importDefault || function(e) {
5688
+ }, Uu = Z && Z.__importDefault || function(e) {
5671
5689
  return e && e.__esModule ? e : { default: e };
5672
5690
  };
5673
5691
  Object.defineProperty(zt, "__esModule", { value: !0 });
5674
5692
  zt.CoinbaseWalletProvider = void 0;
5675
- const Uu = Wu(xa), Qe = ye, Hu = Gt, Ot = J, ht = M, Bt = pe, Qi = oe, $u = pr, Fu = gr, qu = ve;
5676
- class Ku extends Uu.default {
5693
+ const Hu = Uu(ka), Qe = ye, $u = Gt, Dt = J, ht = M, Bt = pe, Xi = oe, Fu = pr, qu = gr, Ku = ve;
5694
+ class zu extends Hu.default {
5677
5695
  constructor(t) {
5678
- var r, n, { metadata: i } = t, s = t.preference, { keysUrl: a } = s, o = ju(s, ["keysUrl"]);
5696
+ var r, n, { metadata: i } = t, s = t.preference, { keysUrl: a } = s, o = Wu(s, ["keysUrl"]);
5679
5697
  super(), this.accounts = [], this.handlers = {
5680
5698
  // eth_requestAccounts
5681
5699
  handshake: async (d) => {
5682
5700
  try {
5683
5701
  if (this.connected)
5684
- return this.emit("connect", { chainId: (0, ht.hexStringFromIntNumber)((0, Ot.IntNumber)(this.chain.id)) }), this.accounts;
5702
+ return this.emit("connect", { chainId: (0, ht.hexStringFromIntNumber)((0, Dt.IntNumber)(this.chain.id)) }), this.accounts;
5685
5703
  const p = await this.requestSignerSelection(), h = this.initSigner(p), _ = await h.handshake();
5686
- return this.signer = h, (0, Bt.storeSignerType)(p), this.emit("connect", { chainId: (0, ht.hexStringFromIntNumber)((0, Ot.IntNumber)(this.chain.id)) }), _;
5704
+ return this.signer = h, (0, Bt.storeSignerType)(p), this.emit("connect", { chainId: (0, ht.hexStringFromIntNumber)((0, Dt.IntNumber)(this.chain.id)) }), _;
5687
5705
  } catch (p) {
5688
5706
  throw this.handleUnauthorizedError(p), p;
5689
5707
  }
@@ -5697,7 +5715,7 @@ class Ku extends Uu.default {
5697
5715
  throw this.handleUnauthorizedError(p), p;
5698
5716
  }
5699
5717
  },
5700
- fetch: (d) => (0, Qi.fetchRPCRequest)(d, this.chain),
5718
+ fetch: (d) => (0, Xi.fetchRPCRequest)(d, this.chain),
5701
5719
  state: (d) => {
5702
5720
  const p = () => {
5703
5721
  if (this.connected)
@@ -5706,7 +5724,7 @@ class Ku extends Uu.default {
5706
5724
  };
5707
5725
  switch (d.method) {
5708
5726
  case "eth_chainId":
5709
- return (0, ht.hexStringFromIntNumber)((0, Ot.IntNumber)(this.chain.id));
5727
+ return (0, ht.hexStringFromIntNumber)((0, Dt.IntNumber)(this.chain.id));
5710
5728
  case "net_version":
5711
5729
  return this.chain.id;
5712
5730
  case "eth_accounts":
@@ -5728,9 +5746,9 @@ class Ku extends Uu.default {
5728
5746
  (0, ht.areAddressArraysEqual)(this.accounts, d) || (this.accounts = d, p !== "storage" && this.emit("accountsChanged", this.accounts));
5729
5747
  },
5730
5748
  onChainUpdate: ({ chain: d, source: p }) => {
5731
- d.id === this.chain.id && d.rpcUrl === this.chain.rpcUrl || (this.chain = d, p !== "storage" && this.emit("chainChanged", (0, ht.hexStringFromIntNumber)((0, Ot.IntNumber)(d.id))));
5749
+ d.id === this.chain.id && d.rpcUrl === this.chain.rpcUrl || (this.chain = d, p !== "storage" && this.emit("chainChanged", (0, ht.hexStringFromIntNumber)((0, Dt.IntNumber)(d.id))));
5732
5750
  }
5733
- }, this.metadata = i, this.preference = o, this.communicator = new $u.Communicator(a), this.chain = {
5751
+ }, this.metadata = i, this.preference = o, this.communicator = new Fu.Communicator(a), this.chain = {
5734
5752
  id: (n = (r = i.appChainIds) === null || r === void 0 ? void 0 : r[0]) !== null && n !== void 0 ? n : 1
5735
5753
  };
5736
5754
  const c = (0, Bt.loadSignerType)();
@@ -5742,13 +5760,13 @@ class Ku extends Uu.default {
5742
5760
  async request(t) {
5743
5761
  var r;
5744
5762
  try {
5745
- const n = (0, Qi.checkErrorForInvalidRequestArgs)(t);
5763
+ const n = (0, Xi.checkErrorForInvalidRequestArgs)(t);
5746
5764
  if (n)
5747
5765
  throw n;
5748
- const i = (r = (0, Fu.determineMethodCategory)(t.method)) !== null && r !== void 0 ? r : "fetch";
5766
+ const i = (r = (0, qu.determineMethodCategory)(t.method)) !== null && r !== void 0 ? r : "fetch";
5749
5767
  return this.handlers[i](t);
5750
5768
  } catch (n) {
5751
- return Promise.reject((0, Hu.serializeError)(n, t.method));
5769
+ return Promise.reject((0, $u.serializeError)(n, t.method));
5752
5770
  }
5753
5771
  }
5754
5772
  handleUnauthorizedError(t) {
@@ -5761,7 +5779,7 @@ class Ku extends Uu.default {
5761
5779
  });
5762
5780
  }
5763
5781
  async disconnect() {
5764
- this.accounts = [], this.chain = { id: 1 }, qu.ScopedLocalStorage.clearAll(), this.emit("disconnect", Qe.standardErrors.provider.disconnected("User initiated disconnection"));
5782
+ this.accounts = [], this.chain = { id: 1 }, Ku.ScopedLocalStorage.clearAll(), this.emit("disconnect", Qe.standardErrors.provider.disconnected("User initiated disconnection"));
5765
5783
  }
5766
5784
  requestSignerSelection() {
5767
5785
  return (0, Bt.fetchSignerType)({
@@ -5779,22 +5797,22 @@ class Ku extends Uu.default {
5779
5797
  });
5780
5798
  }
5781
5799
  }
5782
- zt.CoinbaseWalletProvider = Ku;
5800
+ zt.CoinbaseWalletProvider = zu;
5783
5801
  Object.defineProperty(gt, "__esModule", { value: !0 });
5784
5802
  gt.CoinbaseWalletSDK = void 0;
5785
- const zu = Kt, Vu = zt, Gu = ve, Zu = He, Yu = M, Ju = oe;
5786
- class Qu {
5803
+ const Vu = Kt, Gu = zt, Zu = ve, Yu = He, Ju = M, Qu = oe;
5804
+ class Xu {
5787
5805
  constructor(t) {
5788
5806
  this.metadata = {
5789
5807
  appName: t.appName || "Dapp",
5790
- appLogoUrl: t.appLogoUrl || (0, Yu.getFavicon)(),
5808
+ appLogoUrl: t.appLogoUrl || (0, Ju.getFavicon)(),
5791
5809
  appChainIds: t.appChainIds || []
5792
5810
  }, this.storeLatestVersion();
5793
5811
  }
5794
5812
  makeWeb3Provider(t = { options: "all" }) {
5795
5813
  var r;
5796
5814
  const n = { metadata: this.metadata, preference: t };
5797
- return (r = (0, Ju.getCoinbaseInjectedProvider)(n)) !== null && r !== void 0 ? r : new Vu.CoinbaseWalletProvider(n);
5815
+ return (r = (0, Qu.getCoinbaseInjectedProvider)(n)) !== null && r !== void 0 ? r : new Gu.CoinbaseWalletProvider(n);
5798
5816
  }
5799
5817
  /**
5800
5818
  * Official Coinbase Wallet logo for developers to use on their frontend
@@ -5803,13 +5821,13 @@ class Qu {
5803
5821
  * @returns SVG Data URI
5804
5822
  */
5805
5823
  getCoinbaseWalletLogo(t, r = 240) {
5806
- return (0, zu.walletLogo)(t, r);
5824
+ return (0, Vu.walletLogo)(t, r);
5807
5825
  }
5808
5826
  storeLatestVersion() {
5809
- new Gu.ScopedLocalStorage("CBWSDK").setItem("VERSION", Zu.LIB_VERSION);
5827
+ new Zu.ScopedLocalStorage("CBWSDK").setItem("VERSION", Yu.LIB_VERSION);
5810
5828
  }
5811
5829
  }
5812
- gt.CoinbaseWalletSDK = Qu;
5830
+ gt.CoinbaseWalletSDK = Xu;
5813
5831
  (function(e) {
5814
5832
  Object.defineProperty(e, "__esModule", { value: !0 }), e.CoinbaseWalletSDK = void 0;
5815
5833
  const t = gt;
@@ -5818,11 +5836,11 @@ gt.CoinbaseWalletSDK = Qu;
5818
5836
  Object.defineProperty(e, "CoinbaseWalletSDK", { enumerable: !0, get: function() {
5819
5837
  return r.CoinbaseWalletSDK;
5820
5838
  } });
5821
- })(ts);
5822
- const Xu = /* @__PURE__ */ Sa(ts), td = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5839
+ })(rs);
5840
+ const ed = /* @__PURE__ */ Ca(rs), rd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5823
5841
  __proto__: null,
5824
- default: Xu
5842
+ default: ed
5825
5843
  }, Symbol.toStringTag, { value: "Module" }));
5826
5844
  export {
5827
- td as i
5845
+ rd as i
5828
5846
  };