@thenamespace/ens-components 1.1.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -5,12 +5,13 @@ import * as crypto$5 from 'crypto';
5
5
  import * as net from 'net';
6
6
  import * as viem from 'viem';
7
7
  import { ContractFunctionExecutionError, parseAbi, namehash as namehash$1, encodeFunctionData, toHex, toBytes as toBytes$1, pad, isAddress as isAddress$1, keccak256, formatEther, zeroAddress, zeroHash } from 'viem';
8
- import * as chains$2 from 'viem/chains';
8
+ import * as chains$1 from 'viem/chains';
9
9
  import { baseSepolia, sepolia, mainnet, optimism, base as base$3, zoraSepolia, zora, celoAlfajores, celo, polygonMumbai, polygon, arbitrumSepolia, arbitrum, optimismSepolia } from 'viem/chains';
10
10
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
11
11
  import * as React from 'react';
12
12
  import React__default, { forwardRef, createElement, useState, useRef, useEffect, useCallback, useLayoutEffect, useMemo, createContext, useContext } from 'react';
13
13
  import { useAccount, useSwitchChain, usePublicClient, useWalletClient } from 'wagmi';
14
+ import { createOffchainClient, ChainName, getCoinType } from '@thenamespace/offchain-manager';
14
15
  import { normalize } from 'viem/ens';
15
16
 
16
17
  const sizeToClass = {
@@ -6177,7 +6178,7 @@ function checksum(len, fn) {
6177
6178
  };
6178
6179
  }
6179
6180
  // prettier-ignore
6180
- const utils$b = {
6181
+ const utils$a = {
6181
6182
  alphabet: alphabet$2, chain, checksum, convertRadix, convertRadix2, radix, radix2, join, padding: padding$1,
6182
6183
  };
6183
6184
  /**
@@ -6418,7 +6419,7 @@ const createBase58VersionedDecoder = (p2pkhVersions, p2shVersions) => (source) =
6418
6419
  throw new Error("Unrecognised address format");
6419
6420
  };
6420
6421
 
6421
- const eosChecksum = utils$b.checksum(4, ripemd160$3);
6422
+ const eosChecksum = utils$a.checksum(4, ripemd160$3);
6422
6423
  const createEosEncoder = (prefix) => (source) => {
6423
6424
  const point = secp256k1$2.ProjectivePoint.fromHex(source);
6424
6425
  const checksummed = eosChecksum.encode(point.toRawBytes(true));
@@ -7206,14 +7207,14 @@ const sha512_256 = sha512_256$1;
7206
7207
 
7207
7208
  const base32Encode = base32$4.encode;
7208
7209
  const base32Decode = base32$4.decode;
7209
- const base32Unpadded = utils$b.chain(utils$b.radix2(5), utils$b.alphabet("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"), utils$b.join(""));
7210
+ const base32Unpadded = utils$a.chain(utils$a.radix2(5), utils$a.alphabet("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"), utils$a.join(""));
7210
7211
  const base32UnpaddedEncode = base32Unpadded.encode;
7211
7212
  const base32UnpaddedDecode = base32Unpadded.decode;
7212
7213
  const base32CrockfordNormalise = (source) => source.toUpperCase().replace(/O/g, "0").replace(/[IL]/g, "1");
7213
7214
 
7214
7215
  const name$1P = "algo";
7215
7216
  const coinType$1P = 283;
7216
- const algoChecksum = utils$b.checksum(4, (data) => sha512_256(data).slice(-4));
7217
+ const algoChecksum = utils$a.checksum(4, (data) => sha512_256(data).slice(-4));
7217
7218
  const encodeAlgoAddress = (source) => {
7218
7219
  const checksum = algoChecksum.encode(source);
7219
7220
  return base32UnpaddedEncode(checksum);
@@ -7417,8 +7418,8 @@ const prefix$7 = "bitcoincash";
7417
7418
  const prefixBytes = new Uint8Array([2, 9, 20, 3, 15, 9, 14, 3, 1, 19, 8, 0]); // bitcoincash + 0x00
7418
7419
  const hashSize = [160, 192, 224, 256, 320, 384, 448, 512];
7419
7420
  const hashSizeLookup = Object.fromEntries(hashSize.map((size, index) => [size, index]));
7420
- const radix5 = utils$b.radix2(5);
7421
- const bchBase32 = utils$b.chain(utils$b.alphabet("qpzry9x8gf2tvdw0s3jn54khce6mua7l"), utils$b.join(""));
7421
+ const radix5 = utils$a.radix2(5);
7422
+ const bchBase32 = utils$a.chain(utils$a.alphabet("qpzry9x8gf2tvdw0s3jn54khce6mua7l"), utils$a.join(""));
7422
7423
  const checksumToUint5Array = (checksum) => {
7423
7424
  const result = new Uint8Array(8);
7424
7425
  for (let i = 0; i < 8; i++) {
@@ -7766,7 +7767,7 @@ const xmr$1 = {
7766
7767
 
7767
7768
  const name$1G = "bcn";
7768
7769
  const coinType$1G = 204;
7769
- const bcnChecksum = utils$b.checksum(4, keccak_256);
7770
+ const bcnChecksum = utils$a.checksum(4, keccak_256);
7770
7771
  const encodeBcnAddress = (source) => {
7771
7772
  const checksum = keccak_256(source).slice(0, 4);
7772
7773
  return encodeXmrAddress(concatBytes(source, checksum));
@@ -8528,7 +8529,7 @@ const eth$1 = {
8528
8529
  const name$1h = "etn";
8529
8530
  const coinType$1h = 415;
8530
8531
  const type$1 = 18;
8531
- const etnChecksum = utils$b.checksum(4, keccak_256);
8532
+ const etnChecksum = utils$a.checksum(4, keccak_256);
8532
8533
  const encodeEtnAddress = (source) => {
8533
8534
  const sourceWithType = concatBytes(new Uint8Array([type$1]), source);
8534
8535
  const checksummed = etnChecksum.encode(sourceWithType);
@@ -9258,7 +9259,7 @@ const radixNano = {
9258
9259
  return Uint8Array.from(result);
9259
9260
  },
9260
9261
  };
9261
- const base32Nano = utils$b.chain(radixNano, utils$b.alphabet("13456789abcdefghijkmnopqrstuwxyz"), utils$b.join(""));
9262
+ const base32Nano = utils$a.chain(radixNano, utils$a.alphabet("13456789abcdefghijkmnopqrstuwxyz"), utils$a.join(""));
9262
9263
  const encodeNanoAddress = (source) => {
9263
9264
  const encoded = base32Nano.encode(source);
9264
9265
  const checksum = blake2b$1(source, { dkLen: 5 }).reverse();
@@ -9278,7 +9279,7 @@ const nano$1 = {
9278
9279
 
9279
9280
  const name$N = "nas";
9280
9281
  const coinType$N = 2718;
9281
- const nasChecksum = utils$b.checksum(4, sha3_256);
9282
+ const nasChecksum = utils$a.checksum(4, sha3_256);
9282
9283
  const encodeNasAddress = (source) => {
9283
9284
  const checksummed = nasChecksum.encode(source);
9284
9285
  return base58UncheckedEncode(checksummed);
@@ -9365,7 +9366,7 @@ const ibanCheck = (data) => {
9365
9366
  const nimChecksum = (source) => {
9366
9367
  return ("00" + (98 - ibanCheck(source + CCODE + "00"))).slice(-2);
9367
9368
  };
9368
- const base32Nim = utils$b.chain(utils$b.radix2(5), utils$b.alphabet("0123456789ABCDEFGHJKLMNPQRSTUVXY"), utils$b.padding(5), utils$b.join(""));
9369
+ const base32Nim = utils$a.chain(utils$a.radix2(5), utils$a.alphabet("0123456789ABCDEFGHJKLMNPQRSTUVXY"), utils$a.padding(5), utils$a.join(""));
9369
9370
  const encodeNimAddress = (source) => {
9370
9371
  const base32Part = base32Nim.encode(source);
9371
9372
  const checksummed = nimChecksum(base32Part);
@@ -9773,7 +9774,7 @@ const convertRadixStx = (data, from, to, padding) => {
9773
9774
  res.unshift(carry >>> 0);
9774
9775
  return res;
9775
9776
  };
9776
- const base32Stx = utils$b.chain(radixStx, utils$b.alphabet("0123456789ABCDEFGHJKMNPQRSTVWXYZ"), utils$b.join(""));
9777
+ const base32Stx = utils$a.chain(radixStx, utils$a.alphabet("0123456789ABCDEFGHJKMNPQRSTVWXYZ"), utils$a.join(""));
9777
9778
  const stxChecksum = (data) => sha256$2(sha256$2(data)).slice(0, checkumLength);
9778
9779
  const encodeStxAddress = (source) => {
9779
9780
  if (source.length !== length$2 + checkumLength)
@@ -10046,7 +10047,7 @@ const name$b = "waves";
10046
10047
  const coinType$b = 5741564;
10047
10048
  const checksumFn = (source) => keccak_256(blake2b$1(source, { dkLen: 32 }));
10048
10049
  const checksumLength = 4;
10049
- const wavesChecksum = utils$b.checksum(checksumLength, checksumFn);
10050
+ const wavesChecksum = utils$a.checksum(checksumLength, checksumFn);
10050
10051
  const encodeWavesAddress = base58UncheckedEncode;
10051
10052
  const decodeWavesAddress = (source) => {
10052
10053
  const decoded = base58UncheckedDecode(source);
@@ -10169,7 +10170,7 @@ const xlm$1 = {
10169
10170
 
10170
10171
  const name$5 = "xrp";
10171
10172
  const coinType$5 = 144;
10172
- const base58XrpCheck = utils$b.chain(utils$b.checksum(4, (data) => sha256$2(sha256$2(data))), base58xrp);
10173
+ const base58XrpCheck = utils$a.chain(utils$a.checksum(4, (data) => sha256$2(sha256$2(data))), base58xrp);
10173
10174
  const encodeXrpAddress = base58XrpCheck.encode;
10174
10175
  const decodeXrpAddress = base58XrpCheck.decode;
10175
10176
  const xrp$1 = {
@@ -10676,14 +10677,14 @@ const base58btc$1 = createMultibaseCoder({
10676
10677
  encode: base58$3.encode,
10677
10678
  decode: base58$3.decode,
10678
10679
  });
10679
- const customBase32 = utils$b.chain(utils$b.radix2(5), utils$b.alphabet("abcdefghijklmnopqrstuvwxyz234567"), utils$b.join(""));
10680
+ const customBase32 = utils$a.chain(utils$a.radix2(5), utils$a.alphabet("abcdefghijklmnopqrstuvwxyz234567"), utils$a.join(""));
10680
10681
  const base32$3 = createMultibaseCoder({
10681
10682
  name: "base32",
10682
10683
  prefix: "b",
10683
10684
  encode: (bytes) => customBase32.encode(bytes),
10684
10685
  decode: (multibase) => customBase32.decode(multibase),
10685
10686
  });
10686
- const base36Chain = utils$b.chain(utils$b.radix(36), utils$b.alphabet("0123456789abcdefghijklmnopqrstuvwxyz"), utils$b.join(""));
10687
+ const base36Chain = utils$a.chain(utils$a.radix(36), utils$a.alphabet("0123456789abcdefghijklmnopqrstuvwxyz"), utils$a.join(""));
10687
10688
  const base36$2 = createMultibaseCoder({
10688
10689
  name: "base36",
10689
10690
  prefix: "k",
@@ -14014,7 +14015,7 @@ var Cropper = /** @class */function (_super) {
14014
14015
  return Cropper;
14015
14016
  }(React.Component);
14016
14017
 
14017
- var dist$4 = {};
14018
+ var dist$3 = {};
14018
14019
 
14019
14020
  var client$1 = {};
14020
14021
 
@@ -18006,13 +18007,13 @@ function requireAxios () {
18006
18007
  return axios_1;
18007
18008
  }
18008
18009
 
18009
- var errors$2 = {};
18010
+ var errors$1 = {};
18010
18011
 
18011
- var hasRequiredErrors$2;
18012
+ var hasRequiredErrors$1;
18012
18013
 
18013
- function requireErrors$2 () {
18014
- if (hasRequiredErrors$2) return errors$2;
18015
- hasRequiredErrors$2 = 1;
18014
+ function requireErrors$1 () {
18015
+ if (hasRequiredErrors$1) return errors$1;
18016
+ hasRequiredErrors$1 = 1;
18016
18017
  (function (exports$1) {
18017
18018
  Object.defineProperty(exports$1, "__esModule", { value: true });
18018
18019
  exports$1.createError = exports$1.ErrorCodes = exports$1.AvatarSDKError = void 0;
@@ -18082,17 +18083,17 @@ function requireErrors$2 () {
18082
18083
  deleteFailed: (originalError) => new AvatarSDKError('Delete failed. Please try again.', exports$1.ErrorCodes.DELETE_FAILED, originalError),
18083
18084
  };
18084
18085
 
18085
- } (errors$2));
18086
- return errors$2;
18086
+ } (errors$1));
18087
+ return errors$1;
18087
18088
  }
18088
18089
 
18089
- var validation$1 = {};
18090
+ var validation = {};
18090
18091
 
18091
- var hasRequiredValidation$1;
18092
+ var hasRequiredValidation;
18092
18093
 
18093
- function requireValidation$1 () {
18094
- if (hasRequiredValidation$1) return validation$1;
18095
- hasRequiredValidation$1 = 1;
18094
+ function requireValidation () {
18095
+ if (hasRequiredValidation) return validation;
18096
+ hasRequiredValidation = 1;
18096
18097
  (function (exports$1) {
18097
18098
  Object.defineProperty(exports$1, "__esModule", { value: true });
18098
18099
  exports$1.ALLOWED_FORMATS = exports$1.HEADER_MAX_SIZE = exports$1.AVATAR_MAX_SIZE = void 0;
@@ -18100,7 +18101,7 @@ function requireValidation$1 () {
18100
18101
  exports$1.validateSubname = validateSubname;
18101
18102
  exports$1.validateAddress = validateAddress;
18102
18103
  exports$1.validateSIWEOptionsResolved = validateSIWEOptionsResolved;
18103
- const errors_1 = requireErrors$2();
18104
+ const errors_1 = requireErrors$1();
18104
18105
  /**
18105
18106
  * File size limits
18106
18107
  */
@@ -18203,8 +18204,8 @@ function requireValidation$1 () {
18203
18204
  }
18204
18205
  }
18205
18206
 
18206
- } (validation$1));
18207
- return validation$1;
18207
+ } (validation));
18208
+ return validation;
18208
18209
  }
18209
18210
 
18210
18211
  var siwe$1 = {};
@@ -27281,7 +27282,7 @@ function requireNodeExports () {
27281
27282
  return nodeExports;
27282
27283
  }
27283
27284
 
27284
- var utils$a = {};
27285
+ var utils$9 = {};
27285
27286
 
27286
27287
  var sha3$1 = {};
27287
27288
 
@@ -27384,7 +27385,7 @@ function require_u64$1 () {
27384
27385
  return _u64$1;
27385
27386
  }
27386
27387
 
27387
- var utils$9 = {};
27388
+ var utils$8 = {};
27388
27389
 
27389
27390
  var crypto$3 = {};
27390
27391
 
@@ -27400,11 +27401,11 @@ function requireCrypto$3 () {
27400
27401
  return crypto$3;
27401
27402
  }
27402
27403
 
27403
- var hasRequiredUtils$a;
27404
+ var hasRequiredUtils$9;
27404
27405
 
27405
- function requireUtils$a () {
27406
- if (hasRequiredUtils$a) return utils$9;
27407
- hasRequiredUtils$a = 1;
27406
+ function requireUtils$9 () {
27407
+ if (hasRequiredUtils$9) return utils$8;
27408
+ hasRequiredUtils$9 = 1;
27408
27409
  (function (exports$1) {
27409
27410
  /**
27410
27411
  * Utilities for hex, bytes, CSPRNG.
@@ -27718,8 +27719,8 @@ function requireUtils$a () {
27718
27719
  throw new Error('crypto.getRandomValues must be defined');
27719
27720
  }
27720
27721
 
27721
- } (utils$9));
27722
- return utils$9;
27722
+ } (utils$8));
27723
+ return utils$8;
27723
27724
  }
27724
27725
 
27725
27726
  var hasRequiredSha3$1;
@@ -27743,7 +27744,7 @@ function requireSha3$1 () {
27743
27744
  */
27744
27745
  const _u64_ts_1 = require_u64$1();
27745
27746
  // prettier-ignore
27746
- const utils_ts_1 = /*@__PURE__*/ requireUtils$a();
27747
+ const utils_ts_1 = /*@__PURE__*/ requireUtils$9();
27747
27748
  // No __PURE__ annotations in sha3 header:
27748
27749
  // EVERYTHING is in fact used on every export.
27749
27750
  // Various per round constants calculations
@@ -27968,15 +27969,15 @@ function requireSha3$1 () {
27968
27969
  return sha3$1;
27969
27970
  }
27970
27971
 
27971
- var hasRequiredUtils$9;
27972
+ var hasRequiredUtils$8;
27972
27973
 
27973
- function requireUtils$9 () {
27974
- if (hasRequiredUtils$9) return utils$a;
27975
- hasRequiredUtils$9 = 1;
27976
- Object.defineProperty(utils$a, "__esModule", { value: true });
27977
- utils$a.parseIntegerNumber = utils$a.isEIP55Address = void 0;
27974
+ function requireUtils$8 () {
27975
+ if (hasRequiredUtils$8) return utils$9;
27976
+ hasRequiredUtils$8 = 1;
27977
+ Object.defineProperty(utils$9, "__esModule", { value: true });
27978
+ utils$9.parseIntegerNumber = utils$9.isEIP55Address = void 0;
27978
27979
  const sha3_1 = /*@__PURE__*/ requireSha3$1();
27979
- const utils_1 = /*@__PURE__*/ requireUtils$a();
27980
+ const utils_1 = /*@__PURE__*/ requireUtils$9();
27980
27981
  /**
27981
27982
  * This method is supposed to check if an address is conforming to EIP-55.
27982
27983
  * @param address Address to be checked if conforms with EIP-55.
@@ -27999,7 +28000,7 @@ function requireUtils$9 () {
27999
28000
  }
28000
28001
  return address === ret;
28001
28002
  };
28002
- utils$a.isEIP55Address = isEIP55Address;
28003
+ utils$9.isEIP55Address = isEIP55Address;
28003
28004
  const parseIntegerNumber = (number) => {
28004
28005
  const parsed = parseInt(number);
28005
28006
  if (isNaN(parsed))
@@ -28008,8 +28009,8 @@ function requireUtils$9 () {
28008
28009
  throw new Error("Invalid number.");
28009
28010
  return parsed;
28010
28011
  };
28011
- utils$a.parseIntegerNumber = parseIntegerNumber;
28012
- return utils$a;
28012
+ utils$9.parseIntegerNumber = parseIntegerNumber;
28013
+ return utils$9;
28013
28014
  }
28014
28015
 
28015
28016
  var hasRequiredCallbacks;
@@ -28025,7 +28026,7 @@ function requireCallbacks () {
28025
28026
  const node_exports_1 = __importDefault(requireNodeExports());
28026
28027
  const utils = node_exports_1.default.utils;
28027
28028
  const id = node_exports_1.default.ids;
28028
- const utils_1 = requireUtils$9();
28029
+ const utils_1 = requireUtils$8();
28029
28030
  /* copied from siwe/lib/utils.ts */
28030
28031
  const ISO8601 = /^(?<date>[0-9]{4}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01]))[Tt]([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(.[0-9]+)?(([Zz])|([+|-]([01][0-9]|2[0-3]):[0-5][0-9]))$/;
28031
28032
  const isValidISO8601Date = (inputDate) => {
@@ -28616,7 +28617,7 @@ function requireParsers () {
28616
28617
  Object.defineProperty(exports$1, "ParsedMessage", { enumerable: true, get: function () { return abnf_1.ParsedMessage; } });
28617
28618
  const abnf_2 = requireAbnf();
28618
28619
  Object.defineProperty(exports$1, "isUri", { enumerable: true, get: function () { return abnf_2.isUri; } });
28619
- __exportStar(requireUtils$9(), exports$1);
28620
+ __exportStar(requireUtils$8(), exports$1);
28620
28621
  } (parsers));
28621
28622
  return parsers;
28622
28623
  }
@@ -29059,13 +29060,13 @@ var abi$1 = {};
29059
29060
 
29060
29061
  var abiCoder = {};
29061
29062
 
29062
- var utils$8 = {};
29063
+ var utils$7 = {};
29063
29064
 
29064
29065
  var base58$2 = {};
29065
29066
 
29066
29067
  var data = {};
29067
29068
 
29068
- var errors$1 = {};
29069
+ var errors = {};
29069
29070
 
29070
29071
  var properties = {};
29071
29072
 
@@ -29135,11 +29136,11 @@ function requireProperties () {
29135
29136
  return properties;
29136
29137
  }
29137
29138
 
29138
- var hasRequiredErrors$1;
29139
+ var hasRequiredErrors;
29139
29140
 
29140
- function requireErrors$1 () {
29141
- if (hasRequiredErrors$1) return errors$1;
29142
- hasRequiredErrors$1 = 1;
29141
+ function requireErrors () {
29142
+ if (hasRequiredErrors) return errors;
29143
+ hasRequiredErrors = 1;
29143
29144
  /**
29144
29145
  * All errors in ethers include properties to ensure they are both
29145
29146
  * human-readable (i.e. ``.message``) and machine-readable (i.e. ``.code``).
@@ -29149,8 +29150,8 @@ function requireErrors$1 () {
29149
29150
  *
29150
29151
  * @_section: api/utils/errors:Errors [about-errors]
29151
29152
  */
29152
- Object.defineProperty(errors$1, "__esModule", { value: true });
29153
- errors$1.assertPrivate = errors$1.assertNormalize = errors$1.assertArgumentCount = errors$1.assertArgument = errors$1.assert = errors$1.makeError = errors$1.isCallException = errors$1.isError = void 0;
29153
+ Object.defineProperty(errors, "__esModule", { value: true });
29154
+ errors.assertPrivate = errors.assertNormalize = errors.assertArgumentCount = errors.assertArgument = errors.assert = errors.makeError = errors.isCallException = errors.isError = void 0;
29154
29155
  const _version_js_1 = require_version();
29155
29156
  const properties_js_1 = requireProperties();
29156
29157
  function stringify(value, seen) {
@@ -29220,14 +29221,14 @@ function requireErrors$1 () {
29220
29221
  function isError(error, code) {
29221
29222
  return (error && error.code === code);
29222
29223
  }
29223
- errors$1.isError = isError;
29224
+ errors.isError = isError;
29224
29225
  /**
29225
29226
  * Returns true if %%error%% is a [[CallExceptionError].
29226
29227
  */
29227
29228
  function isCallException(error) {
29228
29229
  return isError(error, "CALL_EXCEPTION");
29229
29230
  }
29230
- errors$1.isCallException = isCallException;
29231
+ errors.isCallException = isCallException;
29231
29232
  /**
29232
29233
  * Returns a new Error configured to the format ethers emits errors, with
29233
29234
  * the %%message%%, [[api:ErrorCode]] %%code%% and additional properties
@@ -29286,7 +29287,7 @@ function requireErrors$1 () {
29286
29287
  }
29287
29288
  return error;
29288
29289
  }
29289
- errors$1.makeError = makeError;
29290
+ errors.makeError = makeError;
29290
29291
  /**
29291
29292
  * Throws an EthersError with %%message%%, %%code%% and additional error
29292
29293
  * %%info%% when %%check%% is falsish..
@@ -29298,7 +29299,7 @@ function requireErrors$1 () {
29298
29299
  throw makeError(message, code, info);
29299
29300
  }
29300
29301
  }
29301
- errors$1.assert = assert;
29302
+ errors.assert = assert;
29302
29303
  /**
29303
29304
  * A simple helper to simply ensuring provided arguments match expected
29304
29305
  * constraints, throwing if not.
@@ -29309,7 +29310,7 @@ function requireErrors$1 () {
29309
29310
  function assertArgument(check, message, name, value) {
29310
29311
  assert(check, message, "INVALID_ARGUMENT", { argument: name, value: value });
29311
29312
  }
29312
- errors$1.assertArgument = assertArgument;
29313
+ errors.assertArgument = assertArgument;
29313
29314
  function assertArgumentCount(count, expectedCount, message) {
29314
29315
  if (message == null) {
29315
29316
  message = "";
@@ -29326,7 +29327,7 @@ function requireErrors$1 () {
29326
29327
  expectedCount: expectedCount
29327
29328
  });
29328
29329
  }
29329
- errors$1.assertArgumentCount = assertArgumentCount;
29330
+ errors.assertArgumentCount = assertArgumentCount;
29330
29331
  const _normalizeForms = ["NFD", "NFC", "NFKD", "NFKC"].reduce((accum, form) => {
29331
29332
  try {
29332
29333
  // General test for normalize
@@ -29358,7 +29359,7 @@ function requireErrors$1 () {
29358
29359
  operation: "String.prototype.normalize", info: { form }
29359
29360
  });
29360
29361
  }
29361
- errors$1.assertNormalize = assertNormalize;
29362
+ errors.assertNormalize = assertNormalize;
29362
29363
  /**
29363
29364
  * Many classes use file-scoped values to guard the constructor,
29364
29365
  * making it effectively private. This facilitates that pattern
@@ -29380,9 +29381,9 @@ function requireErrors$1 () {
29380
29381
  });
29381
29382
  }
29382
29383
  }
29383
- errors$1.assertPrivate = assertPrivate;
29384
+ errors.assertPrivate = assertPrivate;
29384
29385
 
29385
- return errors$1;
29386
+ return errors;
29386
29387
  }
29387
29388
 
29388
29389
  var hasRequiredData;
@@ -29398,7 +29399,7 @@ function requireData () {
29398
29399
  *
29399
29400
  * @_subsection api/utils:Data Helpers [about-data]
29400
29401
  */
29401
- const errors_js_1 = requireErrors$1();
29402
+ const errors_js_1 = requireErrors();
29402
29403
  function _getBytes(value, name, copy) {
29403
29404
  if (value instanceof Uint8Array) {
29404
29405
  if (copy) {
@@ -29592,7 +29593,7 @@ function requireMaths () {
29592
29593
  * @_subsection: api/utils:Math Helpers [about-maths]
29593
29594
  */
29594
29595
  const data_js_1 = requireData();
29595
- const errors_js_1 = requireErrors$1();
29596
+ const errors_js_1 = requireErrors();
29596
29597
  const BN_0 = BigInt(0);
29597
29598
  const BN_1 = BigInt(1);
29598
29599
  //const BN_Max256 = (BN_1 << BigInt(256)) - BN_1;
@@ -29852,7 +29853,7 @@ function requireBase58$1 () {
29852
29853
  Object.defineProperty(base58$2, "__esModule", { value: true });
29853
29854
  base58$2.decodeBase58 = base58$2.encodeBase58 = void 0;
29854
29855
  const data_js_1 = requireData();
29855
- const errors_js_1 = requireErrors$1();
29856
+ const errors_js_1 = requireErrors();
29856
29857
  const maths_js_1 = requireMaths();
29857
29858
  const Alphabet = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";
29858
29859
  let Lookup = null;
@@ -30048,7 +30049,7 @@ function requireUtf8 () {
30048
30049
  * @_subsection api/utils:Strings and UTF-8 [about-strings]
30049
30050
  */
30050
30051
  const data_js_1 = requireData();
30051
- const errors_js_1 = requireErrors$1();
30052
+ const errors_js_1 = requireErrors();
30052
30053
  function errorFunc(reason, offset, bytes, output, badCodepoint) {
30053
30054
  (0, errors_js_1.assertArgument)(false, `invalid codepoint at offset ${offset}; ${reason}`, "bytes", bytes);
30054
30055
  }
@@ -30278,7 +30279,7 @@ function requireGeturl () {
30278
30279
  const http_1 = tslib_1.__importDefault(http);
30279
30280
  const https_1 = tslib_1.__importDefault(https);
30280
30281
  const zlib_1 = zlib;
30281
- const errors_js_1 = requireErrors$1();
30282
+ const errors_js_1 = requireErrors();
30282
30283
  const data_js_1 = requireData();
30283
30284
  /**
30284
30285
  * @_ignore:
@@ -30429,7 +30430,7 @@ function requireFetch () {
30429
30430
  */
30430
30431
  const base64_js_1 = requireBase64$1();
30431
30432
  const data_js_1 = requireData();
30432
- const errors_js_1 = requireErrors$1();
30433
+ const errors_js_1 = requireErrors();
30433
30434
  const properties_js_1 = requireProperties();
30434
30435
  const utf8_js_1 = requireUtf8();
30435
30436
  const geturl_js_1 = requireGeturl();
@@ -31283,7 +31284,7 @@ function requireFixednumber () {
31283
31284
  * @_section: api/utils/fixed-point-math:Fixed-Point Maths [about-fixed-point-math]
31284
31285
  */
31285
31286
  const data_js_1 = requireData();
31286
- const errors_js_1 = requireErrors$1();
31287
+ const errors_js_1 = requireErrors();
31287
31288
  const maths_js_1 = requireMaths();
31288
31289
  const properties_js_1 = requireProperties();
31289
31290
  const BN_N1 = BigInt(-1);
@@ -31811,7 +31812,7 @@ function requireRlpDecode () {
31811
31812
  Object.defineProperty(rlpDecode, "__esModule", { value: true });
31812
31813
  rlpDecode.decodeRlp = void 0;
31813
31814
  const data_js_1 = requireData();
31814
- const errors_js_1 = requireErrors$1();
31815
+ const errors_js_1 = requireErrors();
31815
31816
  const data_js_2 = requireData();
31816
31817
  function hexlifyByte(value) {
31817
31818
  let result = value.toString(16);
@@ -31984,7 +31985,7 @@ function requireUnits () {
31984
31985
  *
31985
31986
  * @_subsection api/utils:Unit Conversion [about-units]
31986
31987
  */
31987
- const errors_js_1 = requireErrors$1();
31988
+ const errors_js_1 = requireErrors();
31988
31989
  const fixednumber_js_1 = requireFixednumber();
31989
31990
  const maths_js_1 = requireMaths();
31990
31991
  const names = [
@@ -32096,11 +32097,11 @@ function requireUuid () {
32096
32097
  return uuid;
32097
32098
  }
32098
32099
 
32099
- var hasRequiredUtils$8;
32100
+ var hasRequiredUtils$7;
32100
32101
 
32101
- function requireUtils$8 () {
32102
- if (hasRequiredUtils$8) return utils$8;
32103
- hasRequiredUtils$8 = 1;
32102
+ function requireUtils$7 () {
32103
+ if (hasRequiredUtils$7) return utils$7;
32104
+ hasRequiredUtils$7 = 1;
32104
32105
  (function (exports$1) {
32105
32106
  /**
32106
32107
  * There are many simple utilities required to interact with
@@ -32130,7 +32131,7 @@ function requireUtils$8 () {
32130
32131
  Object.defineProperty(exports$1, "stripZerosLeft", { enumerable: true, get: function () { return data_js_1.stripZerosLeft; } });
32131
32132
  Object.defineProperty(exports$1, "zeroPadValue", { enumerable: true, get: function () { return data_js_1.zeroPadValue; } });
32132
32133
  Object.defineProperty(exports$1, "zeroPadBytes", { enumerable: true, get: function () { return data_js_1.zeroPadBytes; } });
32133
- var errors_js_1 = requireErrors$1();
32134
+ var errors_js_1 = requireErrors();
32134
32135
  Object.defineProperty(exports$1, "isCallException", { enumerable: true, get: function () { return errors_js_1.isCallException; } });
32135
32136
  Object.defineProperty(exports$1, "isError", { enumerable: true, get: function () { return errors_js_1.isError; } });
32136
32137
  Object.defineProperty(exports$1, "assert", { enumerable: true, get: function () { return errors_js_1.assert; } });
@@ -32179,8 +32180,8 @@ function requireUtils$8 () {
32179
32180
  var uuid_js_1 = requireUuid();
32180
32181
  Object.defineProperty(exports$1, "uuidV4", { enumerable: true, get: function () { return uuid_js_1.uuidV4; } });
32181
32182
 
32182
- } (utils$8));
32183
- return utils$8;
32183
+ } (utils$7));
32184
+ return utils$7;
32184
32185
  }
32185
32186
 
32186
32187
  var abstractCoder = {};
@@ -32193,7 +32194,7 @@ function requireAbstractCoder () {
32193
32194
  (function (exports$1) {
32194
32195
  Object.defineProperty(exports$1, "__esModule", { value: true });
32195
32196
  exports$1.Reader = exports$1.Writer = exports$1.Coder = exports$1.checkResultErrors = exports$1.Result = exports$1.WordSize = void 0;
32196
- const index_js_1 = requireUtils$8();
32197
+ const index_js_1 = requireUtils$7();
32197
32198
  /**
32198
32199
  * @_ignore:
32199
32200
  */
@@ -32712,7 +32713,7 @@ function requireHmac$2 () {
32712
32713
  * @_subsection: api/crypto:HMAC [about-hmac]
32713
32714
  */
32714
32715
  const crypto_js_1 = requireCrypto$2();
32715
- const index_js_1 = requireUtils$8();
32716
+ const index_js_1 = requireUtils$7();
32716
32717
  let locked = false;
32717
32718
  const _computeHmac = function (algorithm, key, data) {
32718
32719
  return (0, crypto_js_1.createHmac)(algorithm, key).update(data).digest();
@@ -32906,7 +32907,7 @@ function require_u64 () {
32906
32907
  return _u64;
32907
32908
  }
32908
32909
 
32909
- var utils$7 = {};
32910
+ var utils$6 = {};
32910
32911
 
32911
32912
  var crypto = {};
32912
32913
 
@@ -32922,11 +32923,11 @@ function requireCrypto$1 () {
32922
32923
  return crypto;
32923
32924
  }
32924
32925
 
32925
- var hasRequiredUtils$7;
32926
+ var hasRequiredUtils$6;
32926
32927
 
32927
- function requireUtils$7 () {
32928
- if (hasRequiredUtils$7) return utils$7;
32929
- hasRequiredUtils$7 = 1;
32928
+ function requireUtils$6 () {
32929
+ if (hasRequiredUtils$6) return utils$6;
32930
+ hasRequiredUtils$6 = 1;
32930
32931
  (function (exports$1) {
32931
32932
  /*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
32932
32933
  Object.defineProperty(exports$1, "__esModule", { value: true });
@@ -33101,8 +33102,8 @@ function requireUtils$7 () {
33101
33102
  }
33102
33103
  exports$1.randomBytes = randomBytes;
33103
33104
 
33104
- } (utils$7));
33105
- return utils$7;
33105
+ } (utils$6));
33106
+ return utils$6;
33106
33107
  }
33107
33108
 
33108
33109
  var hasRequiredSha3;
@@ -33114,7 +33115,7 @@ function requireSha3 () {
33114
33115
  sha3.shake256 = sha3.shake128 = sha3.keccak_512 = sha3.keccak_384 = sha3.keccak_256 = sha3.keccak_224 = sha3.sha3_512 = sha3.sha3_384 = sha3.sha3_256 = sha3.sha3_224 = sha3.Keccak = sha3.keccakP = void 0;
33115
33116
  const _assert_js_1 = require_assert();
33116
33117
  const _u64_js_1 = require_u64();
33117
- const utils_js_1 = requireUtils$7();
33118
+ const utils_js_1 = requireUtils$6();
33118
33119
  // SHA3 (keccak) is based on a new design: basically, the internal state is bigger than output size.
33119
33120
  // It's called a sponge function.
33120
33121
  // Various per round constants calculations
@@ -33338,7 +33339,7 @@ function requireKeccak () {
33338
33339
  Object.defineProperty(keccak, "__esModule", { value: true });
33339
33340
  keccak.keccak256 = void 0;
33340
33341
  const sha3_1 = /*@__PURE__*/ requireSha3();
33341
- const index_js_1 = requireUtils$8();
33342
+ const index_js_1 = requireUtils$7();
33342
33343
  let locked = false;
33343
33344
  const _keccak256 = function (data) {
33344
33345
  return (0, sha3_1.keccak_256)(data);
@@ -33398,7 +33399,7 @@ function require_sha2 () {
33398
33399
  Object.defineProperty(_sha2, "__esModule", { value: true });
33399
33400
  _sha2.SHA2 = void 0;
33400
33401
  const _assert_js_1 = require_assert();
33401
- const utils_js_1 = requireUtils$7();
33402
+ const utils_js_1 = requireUtils$6();
33402
33403
  // Polyfill for Safari 14
33403
33404
  function setBigUint64(view, byteOffset, value, isLE) {
33404
33405
  if (typeof view.setBigUint64 === 'function')
@@ -33523,7 +33524,7 @@ function requireRipemd160$2 () {
33523
33524
  Object.defineProperty(ripemd160$1, "__esModule", { value: true });
33524
33525
  ripemd160$1.ripemd160 = ripemd160$1.RIPEMD160 = void 0;
33525
33526
  const _sha2_js_1 = require_sha2();
33526
- const utils_js_1 = requireUtils$7();
33527
+ const utils_js_1 = requireUtils$6();
33527
33528
  // https://homes.esat.kuleuven.be/~bosselae/ripemd160.html
33528
33529
  // https://homes.esat.kuleuven.be/~bosselae/ripemd160/pdf/AB-9601/AB-9601.pdf
33529
33530
  const Rho = /* @__PURE__ */ new Uint8Array([7, 4, 13, 1, 10, 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8]);
@@ -33638,7 +33639,7 @@ function requireRipemd160$1 () {
33638
33639
  Object.defineProperty(ripemd160$2, "__esModule", { value: true });
33639
33640
  ripemd160$2.ripemd160 = void 0;
33640
33641
  const ripemd160_1 = /*@__PURE__*/ requireRipemd160$2();
33641
- const index_js_1 = requireUtils$8();
33642
+ const index_js_1 = requireUtils$7();
33642
33643
  let locked = false;
33643
33644
  const _ripemd160 = function (data) {
33644
33645
  return (0, ripemd160_1.ripemd160)(data);
@@ -33696,7 +33697,7 @@ function requirePbkdf2$1 () {
33696
33697
  Object.defineProperty(pbkdf2$1, "__esModule", { value: true });
33697
33698
  pbkdf2$1.pbkdf2 = void 0;
33698
33699
  const crypto_js_1 = requireCrypto$2();
33699
- const index_js_1 = requireUtils$8();
33700
+ const index_js_1 = requireUtils$7();
33700
33701
  let locked = false;
33701
33702
  const _pbkdf2 = function (password, salt, iterations, keylen, algo) {
33702
33703
  return (0, crypto_js_1.pbkdf2Sync)(password, salt, iterations, keylen, algo);
@@ -33802,7 +33803,7 @@ function requireSha256$1 () {
33802
33803
  Object.defineProperty(sha256$1, "__esModule", { value: true });
33803
33804
  sha256$1.sha224 = sha256$1.sha256 = void 0;
33804
33805
  const _sha2_js_1 = require_sha2();
33805
- const utils_js_1 = requireUtils$7();
33806
+ const utils_js_1 = requireUtils$6();
33806
33807
  // SHA2-256 need to try 2^128 hashes to execute birthday attack.
33807
33808
  // BTC network is doing 2^67 hashes/sec as per early 2023.
33808
33809
  // Choice: a ? b : c
@@ -33943,7 +33944,7 @@ function requireHmac$1 () {
33943
33944
  Object.defineProperty(exports$1, "__esModule", { value: true });
33944
33945
  exports$1.hmac = exports$1.HMAC = void 0;
33945
33946
  const _assert_js_1 = require_assert();
33946
- const utils_js_1 = requireUtils$7();
33947
+ const utils_js_1 = requireUtils$6();
33947
33948
  // HMAC (RFC 2104)
33948
33949
  class HMAC extends utils_js_1.Hash {
33949
33950
  constructor(hash, _key) {
@@ -34034,7 +34035,7 @@ function requirePbkdf2 () {
34034
34035
  pbkdf2.pbkdf2Async = pbkdf2.pbkdf2 = void 0;
34035
34036
  const _assert_js_1 = require_assert();
34036
34037
  const hmac_js_1 = requireHmac$1();
34037
- const utils_js_1 = requireUtils$7();
34038
+ const utils_js_1 = requireUtils$6();
34038
34039
  // Common prologue and epilogue for sync/async functions
34039
34040
  function pbkdf2Init(hash, _password, _salt, _opts) {
34040
34041
  (0, _assert_js_1.hash)(hash);
@@ -34133,7 +34134,7 @@ function requireScrypt$1 () {
34133
34134
  const _assert_js_1 = require_assert();
34134
34135
  const sha256_js_1 = requireSha256$1();
34135
34136
  const pbkdf2_js_1 = requirePbkdf2();
34136
- const utils_js_1 = requireUtils$7();
34137
+ const utils_js_1 = requireUtils$6();
34137
34138
  // RFC 7914 Scrypt KDF
34138
34139
  // Left rotate for uint32
34139
34140
  const rotl = (a, b) => (a << b) | (a >>> (32 - b));
@@ -34361,7 +34362,7 @@ function requireScrypt () {
34361
34362
  Object.defineProperty(scrypt$1, "__esModule", { value: true });
34362
34363
  scrypt$1.scryptSync = scrypt$1.scrypt = void 0;
34363
34364
  const scrypt_1 = /*@__PURE__*/ requireScrypt$1();
34364
- const index_js_1 = requireUtils$8();
34365
+ const index_js_1 = requireUtils$7();
34365
34366
  let lockedSync = false, lockedAsync = false;
34366
34367
  const _scryptAsync = async function (passwd, salt, N, r, p, dkLen, onProgress) {
34367
34368
  return await (0, scrypt_1.scryptAsync)(passwd, salt, { N, r, p, dkLen, onProgress });
@@ -34474,7 +34475,7 @@ function requireSha2$1 () {
34474
34475
  Object.defineProperty(sha2$1, "__esModule", { value: true });
34475
34476
  sha2$1.sha512 = sha2$1.sha256 = void 0;
34476
34477
  const crypto_js_1 = requireCrypto$2();
34477
- const index_js_1 = requireUtils$8();
34478
+ const index_js_1 = requireUtils$7();
34478
34479
  const _sha256 = function (data) {
34479
34480
  return (0, crypto_js_1.createHash)("sha256").update(data).digest();
34480
34481
  };
@@ -34555,15 +34556,15 @@ var secp256k1$1 = {};
34555
34556
 
34556
34557
  var modular$1 = {};
34557
34558
 
34558
- var utils$6 = {};
34559
+ var utils$5 = {};
34559
34560
 
34560
- var hasRequiredUtils$6;
34561
+ var hasRequiredUtils$5;
34561
34562
 
34562
- function requireUtils$6 () {
34563
- if (hasRequiredUtils$6) return utils$6;
34564
- hasRequiredUtils$6 = 1;
34565
- Object.defineProperty(utils$6, "__esModule", { value: true });
34566
- utils$6.validateObject = utils$6.createHmacDrbg = utils$6.bitMask = utils$6.bitSet = utils$6.bitGet = utils$6.bitLen = utils$6.utf8ToBytes = utils$6.equalBytes = utils$6.concatBytes = utils$6.ensureBytes = utils$6.numberToVarBytesBE = utils$6.numberToBytesLE = utils$6.numberToBytesBE = utils$6.bytesToNumberLE = utils$6.bytesToNumberBE = utils$6.hexToBytes = utils$6.hexToNumber = utils$6.numberToHexUnpadded = utils$6.bytesToHex = void 0;
34563
+ function requireUtils$5 () {
34564
+ if (hasRequiredUtils$5) return utils$5;
34565
+ hasRequiredUtils$5 = 1;
34566
+ Object.defineProperty(utils$5, "__esModule", { value: true });
34567
+ utils$5.validateObject = utils$5.createHmacDrbg = utils$5.bitMask = utils$5.bitSet = utils$5.bitGet = utils$5.bitLen = utils$5.utf8ToBytes = utils$5.equalBytes = utils$5.concatBytes = utils$5.ensureBytes = utils$5.numberToVarBytesBE = utils$5.numberToBytesLE = utils$5.numberToBytesBE = utils$5.bytesToNumberLE = utils$5.bytesToNumberBE = utils$5.hexToBytes = utils$5.hexToNumber = utils$5.numberToHexUnpadded = utils$5.bytesToHex = void 0;
34567
34568
  /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
34568
34569
  // 100 lines of code in the file are duplicated from noble-hashes (utils).
34569
34570
  // This is OK: `abstract` directory does not use noble-hashes.
@@ -34587,19 +34588,19 @@ function requireUtils$6 () {
34587
34588
  }
34588
34589
  return hex;
34589
34590
  }
34590
- utils$6.bytesToHex = bytesToHex;
34591
+ utils$5.bytesToHex = bytesToHex;
34591
34592
  function numberToHexUnpadded(num) {
34592
34593
  const hex = num.toString(16);
34593
34594
  return hex.length & 1 ? `0${hex}` : hex;
34594
34595
  }
34595
- utils$6.numberToHexUnpadded = numberToHexUnpadded;
34596
+ utils$5.numberToHexUnpadded = numberToHexUnpadded;
34596
34597
  function hexToNumber(hex) {
34597
34598
  if (typeof hex !== 'string')
34598
34599
  throw new Error('hex string expected, got ' + typeof hex);
34599
34600
  // Big Endian
34600
34601
  return BigInt(hex === '' ? '0' : `0x${hex}`);
34601
34602
  }
34602
- utils$6.hexToNumber = hexToNumber;
34603
+ utils$5.hexToNumber = hexToNumber;
34603
34604
  /**
34604
34605
  * @example hexToBytes('cafe0123') // Uint8Array.from([0xca, 0xfe, 0x01, 0x23])
34605
34606
  */
@@ -34620,31 +34621,31 @@ function requireUtils$6 () {
34620
34621
  }
34621
34622
  return array;
34622
34623
  }
34623
- utils$6.hexToBytes = hexToBytes;
34624
+ utils$5.hexToBytes = hexToBytes;
34624
34625
  // BE: Big Endian, LE: Little Endian
34625
34626
  function bytesToNumberBE(bytes) {
34626
34627
  return hexToNumber(bytesToHex(bytes));
34627
34628
  }
34628
- utils$6.bytesToNumberBE = bytesToNumberBE;
34629
+ utils$5.bytesToNumberBE = bytesToNumberBE;
34629
34630
  function bytesToNumberLE(bytes) {
34630
34631
  if (!u8a(bytes))
34631
34632
  throw new Error('Uint8Array expected');
34632
34633
  return hexToNumber(bytesToHex(Uint8Array.from(bytes).reverse()));
34633
34634
  }
34634
- utils$6.bytesToNumberLE = bytesToNumberLE;
34635
+ utils$5.bytesToNumberLE = bytesToNumberLE;
34635
34636
  function numberToBytesBE(n, len) {
34636
34637
  return hexToBytes(n.toString(16).padStart(len * 2, '0'));
34637
34638
  }
34638
- utils$6.numberToBytesBE = numberToBytesBE;
34639
+ utils$5.numberToBytesBE = numberToBytesBE;
34639
34640
  function numberToBytesLE(n, len) {
34640
34641
  return numberToBytesBE(n, len).reverse();
34641
34642
  }
34642
- utils$6.numberToBytesLE = numberToBytesLE;
34643
+ utils$5.numberToBytesLE = numberToBytesLE;
34643
34644
  // Unpadded, rarely used
34644
34645
  function numberToVarBytesBE(n) {
34645
34646
  return hexToBytes(numberToHexUnpadded(n));
34646
34647
  }
34647
- utils$6.numberToVarBytesBE = numberToVarBytesBE;
34648
+ utils$5.numberToVarBytesBE = numberToVarBytesBE;
34648
34649
  /**
34649
34650
  * Takes hex string or Uint8Array, converts to Uint8Array.
34650
34651
  * Validates output length.
@@ -34677,7 +34678,7 @@ function requireUtils$6 () {
34677
34678
  throw new Error(`${title} expected ${expectedLength} bytes, got ${len}`);
34678
34679
  return res;
34679
34680
  }
34680
- utils$6.ensureBytes = ensureBytes;
34681
+ utils$5.ensureBytes = ensureBytes;
34681
34682
  /**
34682
34683
  * Copies several Uint8Arrays into one.
34683
34684
  */
@@ -34692,7 +34693,7 @@ function requireUtils$6 () {
34692
34693
  });
34693
34694
  return r;
34694
34695
  }
34695
- utils$6.concatBytes = concatBytes;
34696
+ utils$5.concatBytes = concatBytes;
34696
34697
  function equalBytes(b1, b2) {
34697
34698
  // We don't care about timing attacks here
34698
34699
  if (b1.length !== b2.length)
@@ -34702,7 +34703,7 @@ function requireUtils$6 () {
34702
34703
  return false;
34703
34704
  return true;
34704
34705
  }
34705
- utils$6.equalBytes = equalBytes;
34706
+ utils$5.equalBytes = equalBytes;
34706
34707
  /**
34707
34708
  * @example utf8ToBytes('abc') // new Uint8Array([97, 98, 99])
34708
34709
  */
@@ -34711,7 +34712,7 @@ function requireUtils$6 () {
34711
34712
  throw new Error(`utf8ToBytes expected string, got ${typeof str}`);
34712
34713
  return new Uint8Array(new TextEncoder().encode(str)); // https://bugzil.la/1681809
34713
34714
  }
34714
- utils$6.utf8ToBytes = utf8ToBytes;
34715
+ utils$5.utf8ToBytes = utf8ToBytes;
34715
34716
  // Bit operations
34716
34717
  /**
34717
34718
  * Calculates amount of bits in a bigint.
@@ -34723,7 +34724,7 @@ function requireUtils$6 () {
34723
34724
  ;
34724
34725
  return len;
34725
34726
  }
34726
- utils$6.bitLen = bitLen;
34727
+ utils$5.bitLen = bitLen;
34727
34728
  /**
34728
34729
  * Gets single bit at position.
34729
34730
  * NOTE: first bit position is 0 (same as arrays)
@@ -34732,20 +34733,20 @@ function requireUtils$6 () {
34732
34733
  function bitGet(n, pos) {
34733
34734
  return (n >> BigInt(pos)) & _1n;
34734
34735
  }
34735
- utils$6.bitGet = bitGet;
34736
+ utils$5.bitGet = bitGet;
34736
34737
  /**
34737
34738
  * Sets single bit at position.
34738
34739
  */
34739
34740
  const bitSet = (n, pos, value) => {
34740
34741
  return n | ((value ? _1n : _0n) << BigInt(pos));
34741
34742
  };
34742
- utils$6.bitSet = bitSet;
34743
+ utils$5.bitSet = bitSet;
34743
34744
  /**
34744
34745
  * Calculate mask for N bits. Not using ** operator with bigints because of old engines.
34745
34746
  * Same as BigInt(`0b${Array(i).fill('1').join('')}`)
34746
34747
  */
34747
34748
  const bitMask = (n) => (_2n << BigInt(n - 1)) - _1n;
34748
- utils$6.bitMask = bitMask;
34749
+ utils$5.bitMask = bitMask;
34749
34750
  // DRBG
34750
34751
  const u8n = (data) => new Uint8Array(data); // creates Uint8Array
34751
34752
  const u8fr = (arr) => Uint8Array.from(arr); // another shortcut
@@ -34807,7 +34808,7 @@ function requireUtils$6 () {
34807
34808
  };
34808
34809
  return genUntil;
34809
34810
  }
34810
- utils$6.createHmacDrbg = createHmacDrbg;
34811
+ utils$5.createHmacDrbg = createHmacDrbg;
34811
34812
  // Validating curves and fields
34812
34813
  const validatorFns = {
34813
34814
  bigint: (val) => typeof val === 'bigint',
@@ -34839,7 +34840,7 @@ function requireUtils$6 () {
34839
34840
  checkField(fieldName, type, true);
34840
34841
  return object;
34841
34842
  }
34842
- utils$6.validateObject = validateObject;
34843
+ utils$5.validateObject = validateObject;
34843
34844
  // validate type tests
34844
34845
  // const o: { a: number; b: number; c: number } = { a: 1, b: 5, c: 6 };
34845
34846
  // const z0 = validateObject(o, { a: 'isSafeInteger' }, { c: 'bigint' }); // Ok!
@@ -34849,7 +34850,7 @@ function requireUtils$6 () {
34849
34850
  // const z3 = validateObject(o, { test: 'boolean', z: 'bug' });
34850
34851
  // const z4 = validateObject(o, { a: 'boolean', z: 'bug' });
34851
34852
 
34852
- return utils$6;
34853
+ return utils$5;
34853
34854
  }
34854
34855
 
34855
34856
  var hasRequiredModular$1;
@@ -34861,7 +34862,7 @@ function requireModular$1 () {
34861
34862
  modular$1.mapHashToField = modular$1.getMinHashLength = modular$1.getFieldBytesLength = modular$1.hashToPrivateScalar = modular$1.FpSqrtEven = modular$1.FpSqrtOdd = modular$1.Field = modular$1.nLength = modular$1.FpIsSquare = modular$1.FpDiv = modular$1.FpInvertBatch = modular$1.FpPow = modular$1.validateField = modular$1.isNegativeLE = modular$1.FpSqrt = modular$1.tonelliShanks = modular$1.invert = modular$1.pow2 = modular$1.pow = modular$1.mod = void 0;
34862
34863
  /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
34863
34864
  // Utilities for modular arithmetics and finite fields
34864
- const utils_js_1 = requireUtils$6();
34865
+ const utils_js_1 = requireUtils$5();
34865
34866
  // prettier-ignore
34866
34867
  const _0n = BigInt(0), _1n = BigInt(1), _2n = BigInt(2), _3n = BigInt(3);
34867
34868
  // prettier-ignore
@@ -35289,7 +35290,7 @@ function requireCurve$1 () {
35289
35290
  /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
35290
35291
  // Abelian group utilities
35291
35292
  const modular_js_1 = requireModular$1();
35292
- const utils_js_1 = requireUtils$6();
35293
+ const utils_js_1 = requireUtils$5();
35293
35294
  const _0n = BigInt(0);
35294
35295
  const _1n = BigInt(1);
35295
35296
  // Elliptic curve multiplication of Point by scalar. Fragile.
@@ -35458,8 +35459,8 @@ function requireWeierstrass$1 () {
35458
35459
  /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
35459
35460
  // Short Weierstrass curve. The formula is: y² = x³ + ax + b
35460
35461
  const mod = requireModular$1();
35461
- const ut = requireUtils$6();
35462
- const utils_js_1 = requireUtils$6();
35462
+ const ut = requireUtils$5();
35463
+ const utils_js_1 = requireUtils$5();
35463
35464
  const curve_js_1 = requireCurve$1();
35464
35465
  function validatePointOpts(curve) {
35465
35466
  const opts = (0, curve_js_1.validateBasic)(curve);
@@ -36529,7 +36530,7 @@ function requireHashToCurve$1 () {
36529
36530
  Object.defineProperty(hashToCurve$1, "__esModule", { value: true });
36530
36531
  hashToCurve$1.createHasher = hashToCurve$1.isogenyMap = hashToCurve$1.hash_to_field = hashToCurve$1.expand_message_xof = hashToCurve$1.expand_message_xmd = void 0;
36531
36532
  const modular_js_1 = requireModular$1();
36532
- const utils_js_1 = requireUtils$6();
36533
+ const utils_js_1 = requireUtils$5();
36533
36534
  function validateDST(dst) {
36534
36535
  if (dst instanceof Uint8Array)
36535
36536
  return dst;
@@ -36720,7 +36721,7 @@ function require_shortw_utils$1 () {
36720
36721
  _shortw_utils$1.createCurve = _shortw_utils$1.getHash = void 0;
36721
36722
  /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
36722
36723
  const hmac_1 = requireHmac$1();
36723
- const utils_1 = requireUtils$7();
36724
+ const utils_1 = requireUtils$6();
36724
36725
  const weierstrass_js_1 = requireWeierstrass$1();
36725
36726
  // connects noble-curves to noble-hashes
36726
36727
  function getHash(hash) {
@@ -36750,10 +36751,10 @@ function requireSecp256k1$1 () {
36750
36751
  exports$1.encodeToCurve = exports$1.hashToCurve = exports$1.schnorr = exports$1.secp256k1 = void 0;
36751
36752
  /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
36752
36753
  const sha256_1 = requireSha256$1();
36753
- const utils_1 = requireUtils$7();
36754
+ const utils_1 = requireUtils$6();
36754
36755
  const modular_js_1 = requireModular$1();
36755
36756
  const weierstrass_js_1 = requireWeierstrass$1();
36756
- const utils_js_1 = requireUtils$6();
36757
+ const utils_js_1 = requireUtils$5();
36757
36758
  const hash_to_curve_js_1 = requireHashToCurve$1();
36758
36759
  const _shortw_utils_js_1 = require_shortw_utils$1();
36759
36760
  const secp256k1P = BigInt('0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f');
@@ -37156,7 +37157,7 @@ function requireSignature () {
37156
37157
  Object.defineProperty(signature, "__esModule", { value: true });
37157
37158
  signature.Signature = void 0;
37158
37159
  const index_js_1 = requireConstants$4();
37159
- const index_js_2 = requireUtils$8();
37160
+ const index_js_2 = requireUtils$7();
37160
37161
  // Constants
37161
37162
  const BN_0 = BigInt(0);
37162
37163
  const BN_1 = BigInt(1);
@@ -37517,7 +37518,7 @@ function requireSigningKey () {
37517
37518
  Object.defineProperty(signingKey, "__esModule", { value: true });
37518
37519
  signingKey.SigningKey = void 0;
37519
37520
  const secp256k1_1 = /*@__PURE__*/ requireSecp256k1$1();
37520
- const index_js_1 = requireUtils$8();
37521
+ const index_js_1 = requireUtils$7();
37521
37522
  const signature_js_1 = requireSignature();
37522
37523
  /**
37523
37524
  * A **SigningKey** provides high-level access to the elliptic curve
@@ -37746,7 +37747,7 @@ function requireAddress$3 () {
37746
37747
  Object.defineProperty(address$1, "__esModule", { value: true });
37747
37748
  address$1.getIcapAddress = address$1.getAddress = void 0;
37748
37749
  const index_js_1 = requireCrypto();
37749
- const index_js_2 = requireUtils$8();
37750
+ const index_js_2 = requireUtils$7();
37750
37751
  const BN_0 = BigInt(0);
37751
37752
  const BN_36 = BigInt(36);
37752
37753
  function getChecksumAddress(address) {
@@ -37914,7 +37915,7 @@ function requireContractAddress () {
37914
37915
  Object.defineProperty(contractAddress, "__esModule", { value: true });
37915
37916
  contractAddress.getCreate2Address = contractAddress.getCreateAddress = void 0;
37916
37917
  const index_js_1 = requireCrypto();
37917
- const index_js_2 = requireUtils$8();
37918
+ const index_js_2 = requireUtils$7();
37918
37919
  const address_js_1 = requireAddress$3();
37919
37920
  // http://ethereum.stackexchange.com/questions/760/how-is-the-address-of-an-ethereum-contract-computed
37920
37921
  /**
@@ -37996,7 +37997,7 @@ function requireChecks () {
37996
37997
  hasRequiredChecks = 1;
37997
37998
  Object.defineProperty(checks, "__esModule", { value: true });
37998
37999
  checks.resolveAddress = checks.isAddress = checks.isAddressable = void 0;
37999
- const index_js_1 = requireUtils$8();
38000
+ const index_js_1 = requireUtils$7();
38000
38001
  const address_js_1 = requireAddress$3();
38001
38002
  /**
38002
38003
  * Returns true if %%value%% is an object which implements the
@@ -38176,7 +38177,7 @@ function requireTyped () {
38176
38177
  */
38177
38178
  Object.defineProperty(typed, "__esModule", { value: true });
38178
38179
  typed.Typed = void 0;
38179
- const index_js_1 = requireUtils$8();
38180
+ const index_js_1 = requireUtils$7();
38180
38181
  const _gaurd = {};
38181
38182
  function n(value, width) {
38182
38183
  let signed = false;
@@ -38851,7 +38852,7 @@ function requireArray () {
38851
38852
  hasRequiredArray = 1;
38852
38853
  Object.defineProperty(array, "__esModule", { value: true });
38853
38854
  array.ArrayCoder = array.unpack = array.pack = void 0;
38854
- const index_js_1 = requireUtils$8();
38855
+ const index_js_1 = requireUtils$7();
38855
38856
  const typed_js_1 = requireTyped();
38856
38857
  const abstract_coder_js_1 = requireAbstractCoder();
38857
38858
  const anonymous_js_1 = requireAnonymous();
@@ -39059,7 +39060,7 @@ function requireBytes$1 () {
39059
39060
  hasRequiredBytes$1 = 1;
39060
39061
  Object.defineProperty(bytes$1, "__esModule", { value: true });
39061
39062
  bytes$1.BytesCoder = bytes$1.DynamicBytesCoder = void 0;
39062
- const index_js_1 = requireUtils$8();
39063
+ const index_js_1 = requireUtils$7();
39063
39064
  const abstract_coder_js_1 = requireAbstractCoder();
39064
39065
  /**
39065
39066
  * @_ignore
@@ -39107,7 +39108,7 @@ function requireFixedBytes () {
39107
39108
  hasRequiredFixedBytes = 1;
39108
39109
  Object.defineProperty(fixedBytes, "__esModule", { value: true });
39109
39110
  fixedBytes.FixedBytesCoder = void 0;
39110
- const index_js_1 = requireUtils$8();
39111
+ const index_js_1 = requireUtils$7();
39111
39112
  const typed_js_1 = requireTyped();
39112
39113
  const abstract_coder_js_1 = requireAbstractCoder();
39113
39114
  /**
@@ -39185,7 +39186,7 @@ function requireNumber () {
39185
39186
  hasRequiredNumber = 1;
39186
39187
  Object.defineProperty(number, "__esModule", { value: true });
39187
39188
  number.NumberCoder = void 0;
39188
- const index_js_1 = requireUtils$8();
39189
+ const index_js_1 = requireUtils$7();
39189
39190
  const typed_js_1 = requireTyped();
39190
39191
  const abstract_coder_js_1 = requireAbstractCoder();
39191
39192
  const BN_0 = BigInt(0);
@@ -39362,7 +39363,7 @@ function requireAccesslist () {
39362
39363
  Object.defineProperty(accesslist, "__esModule", { value: true });
39363
39364
  accesslist.accessListify = void 0;
39364
39365
  const index_js_1 = requireAddress$2();
39365
- const index_js_2 = requireUtils$8();
39366
+ const index_js_2 = requireUtils$7();
39366
39367
  function accessSetify(addr, storageKeys) {
39367
39368
  return {
39368
39369
  address: (0, index_js_1.getAddress)(addr),
@@ -39413,7 +39414,7 @@ function requireAuthorization$1 () {
39413
39414
  authorization.authorizationify = void 0;
39414
39415
  const index_js_1 = requireAddress$2();
39415
39416
  const index_js_2 = requireCrypto();
39416
- const index_js_3 = requireUtils$8();
39417
+ const index_js_3 = requireUtils$7();
39417
39418
  function authorizationify(auth) {
39418
39419
  return {
39419
39420
  address: (0, index_js_1.getAddress)(auth.address),
@@ -39478,7 +39479,7 @@ function requireTransaction$1 () {
39478
39479
  const index_js_1 = requireAddress$2();
39479
39480
  const addresses_js_1 = requireAddresses$1();
39480
39481
  const index_js_2 = requireCrypto();
39481
- const index_js_3 = requireUtils$8();
39482
+ const index_js_3 = requireUtils$7();
39482
39483
  const accesslist_js_1 = requireAccesslist();
39483
39484
  const authorization_js_1 = requireAuthorization$1();
39484
39485
  const address_js_1 = requireAddress();
@@ -40805,7 +40806,7 @@ function requireAuthorization () {
40805
40806
  const index_js_1 = requireAddress$2();
40806
40807
  const index_js_2 = requireCrypto();
40807
40808
  const index_js_3 = requireTransaction();
40808
- const index_js_4 = requireUtils$8();
40809
+ const index_js_4 = requireUtils$7();
40809
40810
  /**
40810
40811
  * Computes the [[link-eip-7702]] authorization digest to sign.
40811
40812
  */
@@ -40842,7 +40843,7 @@ function requireId () {
40842
40843
  Object.defineProperty(id, "__esModule", { value: true });
40843
40844
  id.id = void 0;
40844
40845
  const index_js_1 = requireCrypto();
40845
- const index_js_2 = requireUtils$8();
40846
+ const index_js_2 = requireUtils$7();
40846
40847
  /**
40847
40848
  * A simple hashing function which operates on UTF-8 strings to
40848
40849
  * compute an 32-byte identifier.
@@ -40864,13 +40865,13 @@ function requireId () {
40864
40865
 
40865
40866
  var namehash = {};
40866
40867
 
40867
- var dist$3 = {};
40868
+ var dist$2 = {};
40868
40869
 
40869
- var hasRequiredDist$4;
40870
+ var hasRequiredDist$3;
40870
40871
 
40871
- function requireDist$4 () {
40872
- if (hasRequiredDist$4) return dist$3;
40873
- hasRequiredDist$4 = 1;
40872
+ function requireDist$3 () {
40873
+ if (hasRequiredDist$3) return dist$2;
40874
+ hasRequiredDist$3 = 1;
40874
40875
 
40875
40876
  // created 2023-09-25T01:01:55.148Z
40876
40877
  // compressed base64-encoded blob for include-ens data
@@ -42111,18 +42112,18 @@ function requireDist$4 () {
42111
42112
  return tokens;
42112
42113
  }
42113
42114
 
42114
- dist$3.ens_beautify = ens_beautify;
42115
- dist$3.ens_emoji = ens_emoji;
42116
- dist$3.ens_normalize = ens_normalize;
42117
- dist$3.ens_normalize_fragment = ens_normalize_fragment;
42118
- dist$3.ens_split = ens_split;
42119
- dist$3.ens_tokenize = ens_tokenize;
42120
- dist$3.is_combining_mark = is_combining_mark;
42121
- dist$3.nfc = nfc;
42122
- dist$3.nfd = nfd;
42123
- dist$3.safe_str_from_cps = safe_str_from_cps;
42124
- dist$3.should_escape = should_escape;
42125
- return dist$3;
42115
+ dist$2.ens_beautify = ens_beautify;
42116
+ dist$2.ens_emoji = ens_emoji;
42117
+ dist$2.ens_normalize = ens_normalize;
42118
+ dist$2.ens_normalize_fragment = ens_normalize_fragment;
42119
+ dist$2.ens_split = ens_split;
42120
+ dist$2.ens_tokenize = ens_tokenize;
42121
+ dist$2.is_combining_mark = is_combining_mark;
42122
+ dist$2.nfc = nfc;
42123
+ dist$2.nfd = nfd;
42124
+ dist$2.safe_str_from_cps = safe_str_from_cps;
42125
+ dist$2.should_escape = should_escape;
42126
+ return dist$2;
42126
42127
  }
42127
42128
 
42128
42129
  var hasRequiredNamehash;
@@ -42133,8 +42134,8 @@ function requireNamehash () {
42133
42134
  Object.defineProperty(namehash, "__esModule", { value: true });
42134
42135
  namehash.dnsEncode = namehash.namehash = namehash.isValidName = namehash.ensNormalize = void 0;
42135
42136
  const index_js_1 = requireCrypto();
42136
- const index_js_2 = requireUtils$8();
42137
- const ens_normalize_1 = requireDist$4();
42137
+ const index_js_2 = requireUtils$7();
42138
+ const ens_normalize_1 = requireDist$3();
42138
42139
  const Zeros = new Uint8Array(32);
42139
42140
  Zeros.fill(0);
42140
42141
  function checkComponent(comp) {
@@ -42235,7 +42236,7 @@ function requireMessage () {
42235
42236
  const index_js_1 = requireCrypto();
42236
42237
  const index_js_2 = requireConstants$4();
42237
42238
  const index_js_3 = requireTransaction();
42238
- const index_js_4 = requireUtils$8();
42239
+ const index_js_4 = requireUtils$7();
42239
42240
  /**
42240
42241
  * Computes the [[link-eip-191]] personal-sign message digest to sign.
42241
42242
  *
@@ -42299,7 +42300,7 @@ function requireSolidity () {
42299
42300
  solidity.solidityPackedSha256 = solidity.solidityPackedKeccak256 = solidity.solidityPacked = void 0;
42300
42301
  const index_js_1 = requireAddress$2();
42301
42302
  const index_js_2 = requireCrypto();
42302
- const index_js_3 = requireUtils$8();
42303
+ const index_js_3 = requireUtils$7();
42303
42304
  const regexBytes = new RegExp("^bytes([0-9]+)$");
42304
42305
  const regexNumber = new RegExp("^(u?int)([0-9]*)$");
42305
42306
  const regexArray = new RegExp("^(.*)\\[([0-9]*)\\]$");
@@ -42419,7 +42420,7 @@ function requireTypedData () {
42419
42420
  const index_js_1 = requireAddress$2();
42420
42421
  const index_js_2 = requireCrypto();
42421
42422
  const index_js_3 = requireTransaction();
42422
- const index_js_4 = requireUtils$8();
42423
+ const index_js_4 = requireUtils$7();
42423
42424
  const id_js_1 = requireId();
42424
42425
  const padding = new Uint8Array(32);
42425
42426
  padding.fill(0);
@@ -42994,7 +42995,7 @@ function requireFragments () {
42994
42995
  */
42995
42996
  Object.defineProperty(fragments, "__esModule", { value: true });
42996
42997
  fragments.StructFragment = fragments.FunctionFragment = fragments.FallbackFragment = fragments.ConstructorFragment = fragments.EventFragment = fragments.ErrorFragment = fragments.NamedFragment = fragments.Fragment = fragments.ParamType = void 0;
42997
- const index_js_1 = requireUtils$8();
42998
+ const index_js_1 = requireUtils$7();
42998
42999
  const index_js_2 = requireHash();
42999
43000
  // [ "a", "b" ] => { "a": 1, "b": 1 }
43000
43001
  function setify(items) {
@@ -44333,7 +44334,7 @@ function requireAbiCoder () {
44333
44334
  Object.defineProperty(abiCoder, "__esModule", { value: true });
44334
44335
  abiCoder.AbiCoder = void 0;
44335
44336
  // See: https://github.com/ethereum/wiki/wiki/Ethereum-Contract-ABI
44336
- const index_js_1 = requireUtils$8();
44337
+ const index_js_1 = requireUtils$7();
44337
44338
  const abstract_coder_js_1 = requireAbstractCoder();
44338
44339
  const address_js_1 = requireAddress$1();
44339
44340
  const array_js_1 = requireArray();
@@ -44346,7 +44347,7 @@ function requireAbiCoder () {
44346
44347
  const tuple_js_1 = requireTuple();
44347
44348
  const fragments_js_1 = requireFragments();
44348
44349
  const index_js_2 = requireAddress$2();
44349
- const index_js_3 = requireUtils$8();
44350
+ const index_js_3 = requireUtils$7();
44350
44351
  // https://docs.soliditylang.org/en/v0.8.17/control-structures.html
44351
44352
  const PanicReasons = new Map();
44352
44353
  PanicReasons.set(0x00, "GENERIC_PANIC");
@@ -44544,7 +44545,7 @@ function requireBytes32 () {
44544
44545
  */
44545
44546
  Object.defineProperty(bytes32, "__esModule", { value: true });
44546
44547
  bytes32.decodeBytes32String = bytes32.encodeBytes32String = void 0;
44547
- const index_js_1 = requireUtils$8();
44548
+ const index_js_1 = requireUtils$7();
44548
44549
  /**
44549
44550
  * Encodes %%text%% as a Bytes32 string.
44550
44551
  */
@@ -44607,7 +44608,7 @@ function require_interface () {
44607
44608
  exports$1.Interface = exports$1.Indexed = exports$1.ErrorDescription = exports$1.TransactionDescription = exports$1.LogDescription = exports$1.Result = exports$1.checkResultErrors = void 0;
44608
44609
  const index_js_1 = requireCrypto();
44609
44610
  const index_js_2 = requireHash();
44610
- const index_js_3 = requireUtils$8();
44611
+ const index_js_3 = requireUtils$7();
44611
44612
  const abi_coder_js_1 = requireAbiCoder();
44612
44613
  const abstract_coder_js_1 = requireAbstractCoder();
44613
44614
  Object.defineProperty(exports$1, "checkResultErrors", { enumerable: true, get: function () { return abstract_coder_js_1.checkResultErrors; } });
@@ -45768,7 +45769,7 @@ function requireProvider () {
45768
45769
  Object.defineProperty(provider, "__esModule", { value: true });
45769
45770
  provider.TransactionResponse = provider.TransactionReceipt = provider.Log = provider.Block = provider.copyRequest = provider.FeeData = void 0;
45770
45771
  //import { resolveAddress } from "@ethersproject/address";
45771
- const index_js_1 = requireUtils$8();
45772
+ const index_js_1 = requireUtils$7();
45772
45773
  const index_js_2 = requireTransaction();
45773
45774
  const BN_0 = BigInt(0);
45774
45775
  // -----------------------
@@ -47102,7 +47103,7 @@ function requireWrappers () {
47102
47103
  // import from provider.ts instead of index.ts to prevent circular dep
47103
47104
  // from EtherscanProvider
47104
47105
  const provider_js_1 = requireProvider();
47105
- const index_js_1 = requireUtils$8();
47106
+ const index_js_1 = requireUtils$7();
47106
47107
  /**
47107
47108
  * An **EventLog** contains additional properties parsed from the [[Log]].
47108
47109
  */
@@ -47297,7 +47298,7 @@ function requireContract$1 () {
47297
47298
  // import from provider.ts instead of index.ts to prevent circular dep
47298
47299
  // from EtherscanProvider
47299
47300
  const provider_js_1 = requireProvider();
47300
- const index_js_3 = requireUtils$8();
47301
+ const index_js_3 = requireUtils$7();
47301
47302
  const wrappers_js_1 = requireWrappers();
47302
47303
  const BN_0 = BigInt(0);
47303
47304
  function canCall(value) {
@@ -48263,7 +48264,7 @@ function requireFactory () {
48263
48264
  factory.ContractFactory = void 0;
48264
48265
  const index_js_1 = requireAbi$1();
48265
48266
  const index_js_2 = requireAddress$2();
48266
- const index_js_3 = requireUtils$8();
48267
+ const index_js_3 = requireUtils$7();
48267
48268
  const contract_js_1 = requireContract$1();
48268
48269
  // A = Arguments to the constructor
48269
48270
  // I = Interface of deployed contracts
@@ -48433,7 +48434,7 @@ function requireEnsResolver () {
48433
48434
  const index_js_2 = requireConstants$4();
48434
48435
  const index_js_3 = requireContract();
48435
48436
  const index_js_4 = requireHash();
48436
- const index_js_5 = requireUtils$8();
48437
+ const index_js_5 = requireUtils$7();
48437
48438
  // @TODO: This should use the fetch-data:ipfs gateway
48438
48439
  // Trim off the ipfs:// prefix and return the default gateway URL
48439
48440
  function getIpfsLink(link) {
@@ -48938,7 +48939,7 @@ function requireFormat () {
48938
48939
  const index_js_1 = requireAddress$2();
48939
48940
  const index_js_2 = requireCrypto();
48940
48941
  const index_js_3 = requireTransaction();
48941
- const index_js_4 = requireUtils$8();
48942
+ const index_js_4 = requireUtils$7();
48942
48943
  const BN_0 = BigInt(0);
48943
48944
  function allowNull(format, nullValue) {
48944
48945
  return (function (value) {
@@ -49256,7 +49257,7 @@ function requirePluginsNetwork () {
49256
49257
  Object.defineProperty(pluginsNetwork, "__esModule", { value: true });
49257
49258
  pluginsNetwork.FetchUrlFeeDataNetworkPlugin = pluginsNetwork.FeeDataNetworkPlugin = pluginsNetwork.EnsPlugin = pluginsNetwork.GasCostPlugin = pluginsNetwork.NetworkPlugin = void 0;
49258
49259
  const properties_js_1 = requireProperties();
49259
- const index_js_1 = requireUtils$8();
49260
+ const index_js_1 = requireUtils$7();
49260
49261
  const EnsAddress = "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";
49261
49262
  /**
49262
49263
  * A **NetworkPlugin** provides additional functionality on a [[Network]].
@@ -49485,7 +49486,7 @@ function requireNetwork () {
49485
49486
  Object.defineProperty(network, "__esModule", { value: true });
49486
49487
  network.Network = void 0;
49487
49488
  const index_js_1 = requireTransaction();
49488
- const index_js_2 = requireUtils$8();
49489
+ const index_js_2 = requireUtils$7();
49489
49490
  const plugins_network_js_1 = requirePluginsNetwork();
49490
49491
  /* * * *
49491
49492
  // Networks which operation against an L2 can use this plugin to
@@ -49856,7 +49857,7 @@ function requireSubscriberPolling () {
49856
49857
  hasRequiredSubscriberPolling = 1;
49857
49858
  Object.defineProperty(subscriberPolling, "__esModule", { value: true });
49858
49859
  subscriberPolling.PollingEventSubscriber = subscriberPolling.PollingTransactionSubscriber = subscriberPolling.PollingOrphanSubscriber = subscriberPolling.PollingBlockTagSubscriber = subscriberPolling.OnBlockSubscriber = subscriberPolling.PollingBlockSubscriber = subscriberPolling.getPollingSubscriber = void 0;
49859
- const index_js_1 = requireUtils$8();
49860
+ const index_js_1 = requireUtils$7();
49860
49861
  function copy(obj) {
49861
49862
  return JSON.parse(JSON.stringify(obj));
49862
49863
  }
@@ -50184,7 +50185,7 @@ function requireAbstractProvider () {
50184
50185
  const index_js_3 = requireContract();
50185
50186
  const index_js_4 = requireHash();
50186
50187
  const index_js_5 = requireTransaction();
50187
- const index_js_6 = requireUtils$8();
50188
+ const index_js_6 = requireUtils$7();
50188
50189
  const ens_resolver_js_1 = requireEnsResolver();
50189
50190
  const format_js_1 = requireFormat();
50190
50191
  const network_js_1 = requireNetwork();
@@ -51591,7 +51592,7 @@ function requireAbstractSigner () {
51591
51592
  */
51592
51593
  const index_js_1 = requireAddress$2();
51593
51594
  const index_js_2 = requireTransaction();
51594
- const index_js_3 = requireUtils$8();
51595
+ const index_js_3 = requireUtils$7();
51595
51596
  const provider_js_1 = requireProvider();
51596
51597
  function checkProvider(signer, operation) {
51597
51598
  if (signer.provider) {
@@ -51895,7 +51896,7 @@ function requireSubscriberFilterid () {
51895
51896
  hasRequiredSubscriberFilterid = 1;
51896
51897
  Object.defineProperty(subscriberFilterid, "__esModule", { value: true });
51897
51898
  subscriberFilterid.FilterIdPendingSubscriber = subscriberFilterid.FilterIdEventSubscriber = subscriberFilterid.FilterIdSubscriber = void 0;
51898
- const index_js_1 = requireUtils$8();
51899
+ const index_js_1 = requireUtils$7();
51899
51900
  const subscriber_polling_js_1 = requireSubscriberPolling();
51900
51901
  function copy(obj) {
51901
51902
  return JSON.parse(JSON.stringify(obj));
@@ -52100,7 +52101,7 @@ function requireProviderJsonrpc () {
52100
52101
  const index_js_2 = requireAddress$2();
52101
52102
  const index_js_3 = requireHash();
52102
52103
  const index_js_4 = requireTransaction();
52103
- const index_js_5 = requireUtils$8();
52104
+ const index_js_5 = requireUtils$7();
52104
52105
  const abstract_provider_js_1 = requireAbstractProvider();
52105
52106
  const abstract_signer_js_1 = requireAbstractSigner();
52106
52107
  const network_js_1 = requireNetwork();
@@ -53094,7 +53095,7 @@ function requireProviderAnkr () {
53094
53095
  *
53095
53096
  * @_subsection: api/providers/thirdparty:Ankr [providers-ankr]
53096
53097
  */
53097
- const index_js_1 = requireUtils$8();
53098
+ const index_js_1 = requireUtils$7();
53098
53099
  const community_js_1 = requireCommunity();
53099
53100
  const network_js_1 = requireNetwork();
53100
53101
  const provider_jsonrpc_js_1 = requireProviderJsonrpc();
@@ -53245,7 +53246,7 @@ function requireProviderAlchemy () {
53245
53246
  */
53246
53247
  Object.defineProperty(providerAlchemy, "__esModule", { value: true });
53247
53248
  providerAlchemy.AlchemyProvider = void 0;
53248
- const index_js_1 = requireUtils$8();
53249
+ const index_js_1 = requireUtils$7();
53249
53250
  const community_js_1 = requireCommunity();
53250
53251
  const network_js_1 = requireNetwork();
53251
53252
  const provider_jsonrpc_js_1 = requireProviderJsonrpc();
@@ -53394,7 +53395,7 @@ function requireProviderChainstack () {
53394
53395
  *
53395
53396
  * @_subsection: api/providers/thirdparty:Chainstack [providers-chainstack]
53396
53397
  */
53397
- const index_js_1 = requireUtils$8();
53398
+ const index_js_1 = requireUtils$7();
53398
53399
  const community_js_1 = requireCommunity();
53399
53400
  const network_js_1 = requireNetwork();
53400
53401
  const provider_jsonrpc_js_1 = requireProviderJsonrpc();
@@ -53497,7 +53498,7 @@ function requireProviderCloudflare () {
53497
53498
  */
53498
53499
  Object.defineProperty(providerCloudflare, "__esModule", { value: true });
53499
53500
  providerCloudflare.CloudflareProvider = void 0;
53500
- const index_js_1 = requireUtils$8();
53501
+ const index_js_1 = requireUtils$7();
53501
53502
  const network_js_1 = requireNetwork();
53502
53503
  const provider_jsonrpc_js_1 = requireProviderJsonrpc();
53503
53504
  /**
@@ -53555,7 +53556,7 @@ function requireProviderEtherscan () {
53555
53556
  const index_js_1 = requireAbi$1();
53556
53557
  const index_js_2 = requireContract();
53557
53558
  const index_js_3 = requireTransaction();
53558
- const index_js_4 = requireUtils$8();
53559
+ const index_js_4 = requireUtils$7();
53559
53560
  const abstract_provider_js_1 = requireAbstractProvider();
53560
53561
  const network_js_1 = requireNetwork();
53561
53562
  const plugins_network_js_1 = requirePluginsNetwork();
@@ -54129,7 +54130,7 @@ function requireProviderSocket () {
54129
54130
  Object.defineProperty(providerSocket, "__esModule", { value: true });
54130
54131
  providerSocket.SocketProvider = providerSocket.SocketEventSubscriber = providerSocket.SocketPendingSubscriber = providerSocket.SocketBlockSubscriber = providerSocket.SocketSubscriber = void 0;
54131
54132
  const abstract_provider_js_1 = requireAbstractProvider();
54132
- const index_js_1 = requireUtils$8();
54133
+ const index_js_1 = requireUtils$7();
54133
54134
  const provider_jsonrpc_js_1 = requireProviderJsonrpc();
54134
54135
  /**
54135
54136
  * A **SocketSubscriber** uses a socket transport to handle events and
@@ -54549,7 +54550,7 @@ function requireProviderInfura () {
54549
54550
  *
54550
54551
  * @_subsection: api/providers/thirdparty:INFURA [providers-infura]
54551
54552
  */
54552
- const index_js_1 = requireUtils$8();
54553
+ const index_js_1 = requireUtils$7();
54553
54554
  const community_js_1 = requireCommunity();
54554
54555
  const network_js_1 = requireNetwork();
54555
54556
  const provider_jsonrpc_js_1 = requireProviderJsonrpc();
@@ -54761,7 +54762,7 @@ function requireProviderQuicknode () {
54761
54762
  */
54762
54763
  Object.defineProperty(providerQuicknode, "__esModule", { value: true });
54763
54764
  providerQuicknode.QuickNodeProvider = void 0;
54764
- const index_js_1 = requireUtils$8();
54765
+ const index_js_1 = requireUtils$7();
54765
54766
  const community_js_1 = requireCommunity();
54766
54767
  const network_js_1 = requireNetwork();
54767
54768
  const provider_jsonrpc_js_1 = requireProviderJsonrpc();
@@ -54913,7 +54914,7 @@ function requireProviderFallback () {
54913
54914
  *
54914
54915
  * @_section: api/providers/fallback-provider:Fallback Provider [about-fallback-provider]
54915
54916
  */
54916
- const index_js_1 = requireUtils$8();
54917
+ const index_js_1 = requireUtils$7();
54917
54918
  const abstract_provider_js_1 = requireAbstractProvider();
54918
54919
  const network_js_1 = requireNetwork();
54919
54920
  const BN_1 = BigInt("1");
@@ -55537,7 +55538,7 @@ function requireDefaultProvider () {
55537
55538
  hasRequiredDefaultProvider = 1;
55538
55539
  Object.defineProperty(defaultProvider, "__esModule", { value: true });
55539
55540
  defaultProvider.getDefaultProvider = void 0;
55540
- const index_js_1 = requireUtils$8();
55541
+ const index_js_1 = requireUtils$7();
55541
55542
  const provider_ankr_js_1 = requireProviderAnkr();
55542
55543
  const provider_alchemy_js_1 = requireProviderAlchemy();
55543
55544
  //import { BlockscoutProvider } from "./provider-blockscout.js";
@@ -55746,7 +55747,7 @@ function requireSignerNoncemanager () {
55746
55747
  hasRequiredSignerNoncemanager = 1;
55747
55748
  Object.defineProperty(signerNoncemanager, "__esModule", { value: true });
55748
55749
  signerNoncemanager.NonceManager = void 0;
55749
- const index_js_1 = requireUtils$8();
55750
+ const index_js_1 = requireUtils$7();
55750
55751
  const abstract_signer_js_1 = requireAbstractSigner();
55751
55752
  /**
55752
55753
  * A **NonceManager** wraps another [[Signer]] and automatically manages
@@ -55833,7 +55834,7 @@ function requireProviderBrowser () {
55833
55834
  hasRequiredProviderBrowser = 1;
55834
55835
  Object.defineProperty(providerBrowser, "__esModule", { value: true });
55835
55836
  providerBrowser.BrowserProvider = void 0;
55836
- const index_js_1 = requireUtils$8();
55837
+ const index_js_1 = requireUtils$7();
55837
55838
  const provider_jsonrpc_js_1 = requireProviderJsonrpc();
55838
55839
  /**
55839
55840
  * A **BrowserProvider** is intended to wrap an injected provider which
@@ -56065,7 +56066,7 @@ function requireProviderBlockscout () {
56065
56066
  *
56066
56067
  * @_subsection: api/providers/thirdparty:Blockscout [providers-blockscout]
56067
56068
  */
56068
- const index_js_1 = requireUtils$8();
56069
+ const index_js_1 = requireUtils$7();
56069
56070
  const network_js_1 = requireNetwork();
56070
56071
  const provider_jsonrpc_js_1 = requireProviderJsonrpc();
56071
56072
  function getUrl(name) {
@@ -56212,7 +56213,7 @@ function requireProviderPocket () {
56212
56213
  *
56213
56214
  * @_subsection: api/providers/thirdparty:Pocket [providers-pocket]
56214
56215
  */
56215
- const index_js_1 = requireUtils$8();
56216
+ const index_js_1 = requireUtils$7();
56216
56217
  const community_js_1 = requireCommunity();
56217
56218
  const network_js_1 = requireNetwork();
56218
56219
  const provider_jsonrpc_js_1 = requireProviderJsonrpc();
@@ -56497,7 +56498,7 @@ function requireBaseWallet () {
56497
56498
  const index_js_2 = requireHash();
56498
56499
  const index_js_3 = requireProviders();
56499
56500
  const index_js_4 = requireTransaction();
56500
- const index_js_5 = requireUtils$8();
56501
+ const index_js_5 = requireUtils$7();
56501
56502
  /**
56502
56503
  * The **BaseWallet** is a stream-lined implementation of a
56503
56504
  * [[Signer]] that operates with a private key.
@@ -56635,7 +56636,7 @@ function requireDecodeOwl () {
56635
56636
  hasRequiredDecodeOwl = 1;
56636
56637
  Object.defineProperty(decodeOwl, "__esModule", { value: true });
56637
56638
  decodeOwl.decodeOwl = decodeOwl.decode = void 0;
56638
- const index_js_1 = requireUtils$8();
56639
+ const index_js_1 = requireUtils$7();
56639
56640
  const subsChrs = " !#$%&'()*+,-./<=>?@[]^_`{|}~";
56640
56641
  const Word = /^[a-z]*$/i;
56641
56642
  function unfold(words, sep) {
@@ -56704,7 +56705,7 @@ function requireWordlist () {
56704
56705
  hasRequiredWordlist = 1;
56705
56706
  Object.defineProperty(wordlist, "__esModule", { value: true });
56706
56707
  wordlist.Wordlist = void 0;
56707
- const index_js_1 = requireUtils$8();
56708
+ const index_js_1 = requireUtils$7();
56708
56709
  /**
56709
56710
  * A Wordlist represents a collection of language-specific
56710
56711
  * words used to encode and devoce [[link-bip-39]] encoded data
@@ -56760,7 +56761,7 @@ function requireWordlistOwl () {
56760
56761
  Object.defineProperty(wordlistOwl, "__esModule", { value: true });
56761
56762
  wordlistOwl.WordlistOwl = void 0;
56762
56763
  const index_js_1 = requireHash();
56763
- const index_js_2 = requireUtils$8();
56764
+ const index_js_2 = requireUtils$7();
56764
56765
  const decode_owl_js_1 = requireDecodeOwl();
56765
56766
  const wordlist_js_1 = requireWordlist();
56766
56767
  /**
@@ -56879,7 +56880,7 @@ function requireMnemonic () {
56879
56880
  Object.defineProperty(mnemonic, "__esModule", { value: true });
56880
56881
  mnemonic.Mnemonic = void 0;
56881
56882
  const index_js_1 = requireCrypto();
56882
- const index_js_2 = requireUtils$8();
56883
+ const index_js_2 = requireUtils$7();
56883
56884
  const lang_en_js_1 = requireLangEn();
56884
56885
  // Returns a byte with the MSB bits set
56885
56886
  function getUpperMask(bits) {
@@ -57729,26 +57730,26 @@ function requireLib_commonjs$1 () {
57729
57730
  return lib_commonjs;
57730
57731
  }
57731
57732
 
57732
- var utils$5 = {};
57733
+ var utils$4 = {};
57733
57734
 
57734
- var hasRequiredUtils$5;
57735
+ var hasRequiredUtils$4;
57735
57736
 
57736
- function requireUtils$5 () {
57737
- if (hasRequiredUtils$5) return utils$5;
57738
- hasRequiredUtils$5 = 1;
57737
+ function requireUtils$4 () {
57738
+ if (hasRequiredUtils$4) return utils$4;
57739
+ hasRequiredUtils$4 = 1;
57739
57740
  /**
57740
57741
  * @_ignore
57741
57742
  */
57742
- Object.defineProperty(utils$5, "__esModule", { value: true });
57743
- utils$5.spelunk = utils$5.getPassword = utils$5.zpad = utils$5.looseArrayify = void 0;
57744
- const index_js_1 = requireUtils$8();
57743
+ Object.defineProperty(utils$4, "__esModule", { value: true });
57744
+ utils$4.spelunk = utils$4.getPassword = utils$4.zpad = utils$4.looseArrayify = void 0;
57745
+ const index_js_1 = requireUtils$7();
57745
57746
  function looseArrayify(hexString) {
57746
57747
  if (typeof (hexString) === "string" && !hexString.startsWith("0x")) {
57747
57748
  hexString = "0x" + hexString;
57748
57749
  }
57749
57750
  return (0, index_js_1.getBytesCopy)(hexString);
57750
57751
  }
57751
- utils$5.looseArrayify = looseArrayify;
57752
+ utils$4.looseArrayify = looseArrayify;
57752
57753
  function zpad(value, length) {
57753
57754
  value = String(value);
57754
57755
  while (value.length < length) {
@@ -57756,14 +57757,14 @@ function requireUtils$5 () {
57756
57757
  }
57757
57758
  return value;
57758
57759
  }
57759
- utils$5.zpad = zpad;
57760
+ utils$4.zpad = zpad;
57760
57761
  function getPassword(password) {
57761
57762
  if (typeof (password) === 'string') {
57762
57763
  return (0, index_js_1.toUtf8Bytes)(password, "NFKC");
57763
57764
  }
57764
57765
  return (0, index_js_1.getBytesCopy)(password);
57765
57766
  }
57766
- utils$5.getPassword = getPassword;
57767
+ utils$4.getPassword = getPassword;
57767
57768
  function spelunk(object, _path) {
57768
57769
  const match = _path.match(/^([a-z0-9$_.-]*)(:([a-z]+))?(!)?$/i);
57769
57770
  (0, index_js_1.assertArgument)(match != null, "invalid path", "path", _path);
@@ -57826,7 +57827,7 @@ function requireUtils$5 () {
57826
57827
  }
57827
57828
  return cur;
57828
57829
  }
57829
- utils$5.spelunk = spelunk;
57830
+ utils$4.spelunk = spelunk;
57830
57831
  /*
57831
57832
  export function follow(object: any, path: string): null | string {
57832
57833
  let currentChild = object;
@@ -57884,7 +57885,7 @@ function requireUtils$5 () {
57884
57885
  }
57885
57886
  */
57886
57887
 
57887
- return utils$5;
57888
+ return utils$4;
57888
57889
  }
57889
57890
 
57890
57891
  var hasRequiredJsonKeystore;
@@ -57908,8 +57909,8 @@ function requireJsonKeystore () {
57908
57909
  const index_js_1 = requireAddress$2();
57909
57910
  const index_js_2 = requireCrypto();
57910
57911
  const index_js_3 = requireTransaction();
57911
- const index_js_4 = requireUtils$8();
57912
- const utils_js_1 = requireUtils$5();
57912
+ const index_js_4 = requireUtils$7();
57913
+ const utils_js_1 = requireUtils$4();
57913
57914
  const _version_js_1 = require_version();
57914
57915
  const defaultPath = "m/44'/60'/0'/0/0";
57915
57916
  /**
@@ -58205,7 +58206,7 @@ function requireHdwallet () {
58205
58206
  const index_js_1 = requireCrypto();
58206
58207
  const index_js_2 = requireProviders();
58207
58208
  const index_js_3 = requireTransaction();
58208
- const index_js_4 = requireUtils$8();
58209
+ const index_js_4 = requireUtils$7();
58209
58210
  const lang_en_js_1 = requireLangEn();
58210
58211
  const base_wallet_js_1 = requireBaseWallet();
58211
58212
  const mnemonic_js_1 = requireMnemonic();
@@ -58720,8 +58721,8 @@ function requireJsonCrowdsale () {
58720
58721
  const index_js_1 = requireAddress$2();
58721
58722
  const index_js_2 = requireCrypto();
58722
58723
  const index_js_3 = requireHash();
58723
- const index_js_4 = requireUtils$8();
58724
- const utils_js_1 = requireUtils$5();
58724
+ const index_js_4 = requireUtils$7();
58725
+ const utils_js_1 = requireUtils$4();
58725
58726
  /**
58726
58727
  * Returns true if %%json%% is a valid JSON Crowdsale wallet.
58727
58728
  */
@@ -58783,7 +58784,7 @@ function requireWallet$1 () {
58783
58784
  Object.defineProperty(wallet, "__esModule", { value: true });
58784
58785
  wallet.Wallet = void 0;
58785
58786
  const index_js_1 = requireCrypto();
58786
- const index_js_2 = requireUtils$8();
58787
+ const index_js_2 = requireUtils$7();
58787
58788
  const base_wallet_js_1 = requireBaseWallet();
58788
58789
  const hdwallet_js_1 = requireHdwallet();
58789
58790
  const json_crowdsale_js_1 = requireJsonCrowdsale();
@@ -59040,7 +59041,7 @@ function requireDecodeOwla () {
59040
59041
  hasRequiredDecodeOwla = 1;
59041
59042
  Object.defineProperty(decodeOwla, "__esModule", { value: true });
59042
59043
  decodeOwla.decodeOwlA = void 0;
59043
- const index_js_1 = requireUtils$8();
59044
+ const index_js_1 = requireUtils$7();
59044
59045
  const bit_reader_js_1 = requireBitReader();
59045
59046
  const decode_owl_js_1 = requireDecodeOwl();
59046
59047
  /**
@@ -59265,7 +59266,7 @@ function requireLangJa () {
59265
59266
  Object.defineProperty(langJa, "__esModule", { value: true });
59266
59267
  langJa.LangJa = void 0;
59267
59268
  const index_js_1 = requireHash();
59268
- const index_js_2 = requireUtils$8();
59269
+ const index_js_2 = requireUtils$7();
59269
59270
  const wordlist_js_1 = requireWordlist();
59270
59271
  const data = [
59271
59272
  // 4-kana words
@@ -59432,7 +59433,7 @@ function requireLangKo () {
59432
59433
  Object.defineProperty(langKo, "__esModule", { value: true });
59433
59434
  langKo.LangKo = void 0;
59434
59435
  const index_js_1 = requireHash();
59435
- const index_js_2 = requireUtils$8();
59436
+ const index_js_2 = requireUtils$7();
59436
59437
  const wordlist_js_1 = requireWordlist();
59437
59438
  const data = [
59438
59439
  "OYAa",
@@ -59622,7 +59623,7 @@ function requireLangZh () {
59622
59623
  Object.defineProperty(langZh, "__esModule", { value: true });
59623
59624
  langZh.LangZh = void 0;
59624
59625
  const index_js_1 = requireHash();
59625
- const index_js_2 = requireUtils$8();
59626
+ const index_js_2 = requireUtils$7();
59626
59627
  const wordlist_js_1 = requireWordlist();
59627
59628
  const data = "}aE#4A=Yv&co#4N#6G=cJ&SM#66|/Z#4t&kn~46#4K~4q%b9=IR#7l,mB#7W_X2*dl}Uo~7s}Uf&Iw#9c&cw~6O&H6&wx&IG%v5=IQ~8a&Pv#47$PR&50%Ko&QM&3l#5f,D9#4L|/H&tQ;v0~6n]nN<di,AM=W5%QO&ka&ua,hM^tm=zV=JA=wR&+X]7P&NB#4J#5L|/b[dA}tJ<Do&6m&u2[U1&Kb.HM&mC=w0&MW<rY,Hq#6M}QG,13&wP}Jp]Ow%ue&Kg<HP<D9~4k~9T&I2_c6$9T#9/[C5~7O~4a=cs&O7=KK=An&l9$6U$8A&uD&QI|/Y&bg}Ux&F2#6b}E2&JN&kW&kp=U/&bb=Xl<Cj}k+~5J#6L&5z&9i}b4&Fo,ho(X0_g3~4O$Fz&QE<HN=Ww]6/%GF-Vw=tj&/D&PN#9g=YO}cL&Of&PI~5I&Ip=vU=IW#9G;0o-wU}ss&QR<BT&R9=tk$PY_dh&Pq-yh]7T,nj.Xu=EP&76=cI&Fs*Xg}z7$Gb&+I=DF,AF=cA}rL#7j=Dz&3y<Aa$52=PQ}b0(iY$Fa}oL&xV#6U=ec=WZ,xh%RY<dp#9N&Fl&44=WH*A7=sh&TB&8P=07;u+&PK}uh}J5#72)V/=xC,AB$k0&f6;1E|+5=1B,3v]6n&wR%b+&xx]7f=Ol}fl;+D^wG]7E;nB;uh^Ir&l5=JL,nS=cf=g5;u6|/Q$Gc=MH%Hg#5d%M6^86=U+$Gz,l/,ir^5y&Ba&/F-IY&FI&be%IZ#77&PW_Nu$kE(Yf&NX]7Z,Jy&FJ(Xo&Nz#/d=y7&MX<Ag}Z+;nE]Dt(iG#4D=13&Pj~4c%v8&Zo%OL&/X#4W<HR&ie~6J_1O(Y2=y5=Ad*cv_eB#6k&PX:BU#7A;uk&Ft&Fx_dD=U2;vB=U5=4F}+O&GN.HH:9s=b0%NV(jO&IH=JT}Z9=VZ<Af,Kx^4m&uJ%c6,6r;9m#+L}cf%Kh&F3~4H=vP}bu,Hz|++,1w]nv}k6;uu$jw*Kl*WX&uM[x7&Fr[m7$NO&QN]hu=JN}nR^8g#/h(ps|KC;vd}xz=V0}p6&FD$G1#7K<bG_4p~8g&cf;u4=tl}+k%5/}fz;uw<cA=u1}gU}VM=LJ=eX&+L&Pr#4U}p2:nC,2K]7H:jF&9x}uX#9O=MB<fz~8X~5m&4D&kN&u5%E/(h7(ZF&VG<de(qM|/e-Wt=3x(a+,/R]f/&ND$Ro&nU}0g=KA%kH&NK$Ke<dS}cB&IX~5g$TN]6m=Uv,Is&Py=Ef%Kz#+/%bi&+A<F4$OG&4C&FL#9V<Zk=2I_eE&6c]nw&kq$HG}y+&A8$P3}OH=XP]70%IS(AJ_gH%GZ&tY&AZ=vb~6y&/r=VI=Wv<Zi=fl=xf&eL}c8}OL=MJ=g8$F7=YT}9u=0+^xC}JH&nL^N0~4T]K2,Cy%OC#6s;vG(AC^xe^cG&MF}Br#9P;wD-7h$O/&xA}Fn^PC]6i]7G&8V$Qs;vl(TB~73~4l<mW&6V=2y&uY&+3)aP}XF;LP&kx$wU=t7;uy<FN&lz)7E=Oo*Y+;wI}9q}le;J6&Ri&4t&Qr#8B=cb&vG=J5|Ql(h5<Yy~4+}QD,Lx=wn%K/&RK=dO&Pw,Q9=co%4u;9u}g0@6a^4I%b0=zo|/c&tX=dQ=OS#+b=yz_AB&wB&Pm=W9$HP_gR=62=AO=ti=hI,oA&jr&dH=tm&b6$P2(x8=zi;nG~7F;05]0n[Ix&3m}rg=Xp=cd&uz]7t;97=cN;vV<jf&FF&F1=6Q&Ik*Kk&P4,2z=fQ]7D&3u,H0=d/}Uw<ZN<7R}Kv;0f$H7,MD]7n$F0#88~9Z%da=by;+T#/u=VF&fO&kr^kf<AB]sU,I5$Ng&Pz;0i&QD&vM=Yl:BM;nJ_xJ]U7&Kf&30,3f|Z9*dC)je_jA&Q4&Kp$NH(Yz#6S&Id%Ib=KX,AD=KV%dP}tW&Pk^+E_Ni=cq,3R}VZ(Si=b+}rv;0j}rZ]uA,/w(Sx&Jv$w9&4d&wE,NJ$Gy=J/]Ls#7k<ZQ<Y/&uj]Ov$PM;v3,2F&+u:up=On&3e,Jv;90=J+&Qm]6q}bK#+d~8Y(h2]hA;99&AS=I/}qB&dQ}yJ-VM}Vl&ui,iB&G3|Dc]7d=eQ%dX%JC_1L~4d^NP;vJ&/1)ZI#7N]9X[bQ&PL=0L(UZ,Lm&kc&IR}n7(iR<AQ<dg=33=vN}ft}au]7I,Ba=x9=dR~6R&Tq=Xi,3d$Nr&Bc}DI&ku&vf]Dn,/F&iD,Ll&Nw=0y&I7=Ls=/A&tU=Qe}Ua&uk&+F=g4=gh=Vj#+1&Qn}Uy*44#5F,Pc&Rz*Xn=oh=5W;0n_Nf(iE<Y7=vr=Zu]oz#5Z%mI=kN=Bv_Jp(T2;vt_Ml<FS&uI=L/&6P]64$M7}86<bo%QX(SI%IY&VK=Al&Ux;vv;ut*E/%uh<ZE|O3,M2(yc]yu=Wk&tp:Ex}hr,Cl&WE)+Z=8U}I2_4Q,hA_si=iw=OM=tM=yZ%Ia=U7;wT}b+;uo=Za}yS!5x}HD}fb#5O_dA;Nv%uB(yB;01(Sf}Fk;v7}Pt#8v<mZ#7L,/r&Pl~4w&f5=Ph$Fw_LF&8m,bL=yJ&BH}p/*Jn}tU~5Q;wB(h6]Df]8p^+B;E4&Wc=d+;Ea&bw$8C&FN,DM=Yf}mP~5w=fT#6V=mC=Fi=AV}jB&AN}lW}aH#/D)dZ;hl;vE}/7,CJ;31&w8,hj%u9_Js=jJ&4M~8k=TN&eC}nL&uc-wi&lX}dj=Mv=e2#6u=cr$uq$6G]8W}Jb:nm=Yg<b3(UA;vX&6n&xF=KT,jC,De&R8&oY=Zv&oB]7/=Z2&Oa}bf,hh(4h^tZ&72&Nx;D2&xL~5h~40)ZG)h+=OJ&RA]Bv$yB=Oq=df,AQ%Jn}OJ;11,3z&Tl&tj;v+^Hv,Dh(id=s+]7N&N3)9Q~8f,S4=uW=w4&uX,LX&3d]CJ&yp&8x<b2_do&lP=y/<cy_dG=Oi=7R(VH(lt_1T,Iq_AA;12^6T%k6#8K[B1{oO<AU[Bt;1b$9S&Ps<8T=St{bY,jB(Zp&63&Uv$9V,PM]6v&Af}zW[bW_oq}sm}nB&Kq&gC&ff_eq_2m&5F&TI}rf}Gf;Zr_z9;ER&jk}iz_sn<BN~+n&vo=Vi%97|ZR=Wc,WE&6t]6z%85(ly#84=KY)6m_5/=aX,N3}Tm&he&6K]tR_B2-I3;u/&hU&lH<AP=iB&IA=XL;/5&Nh=wv<BH#79=vS=zl<AA=0X_RG}Bw&9p$NW,AX&kP_Lp&/Z(Tc]Mu}hs#6I}5B&cI<bq&H9#6m=K9}vH(Y1(Y0#4B&w6,/9&gG<bE,/O=zb}I4_l8<B/;wL%Qo<HO[Mq=XX}0v&BP&F4(mG}0i}nm,EC=9u{I3,xG&/9=JY*DK&hR)BX=EI=cx=b/{6k}yX%A+&wa}Xb=la;wi^lL;0t}jo&Qb=xg=XB}iO<qo{bR=NV&8f=a0&Jy;0v=uK)HK;vN#6h&jB(h/%ud&NI%wY.X7=Pt}Cu-uL&Gs_hl%mH,tm]78=Lb^Q0#7Y=1u<Bt&+Q=Co_RH,w3;1e}ux<aU;ui}U3&Q5%bt]63&UQ|0l&uL}O7&3o,AV&dm|Nj(Xt*5+(Uu&Hh(p7(UF=VR=Bp^Jl&Hd[ix)9/=Iq]C8<67]66}mB%6f}bb}JI]8T$HA}db=YM&pa=2J}tS&Y0=PS&y4=cX$6E,hX,XP&nR;04,FQ&l0&Vm_Dv#5Y~8Z=Bi%MA]6x=JO:+p,Az&9q,Hj~6/}SD=K1:EJ}nA;Qo#/E]9R,Ie&6X%W3]61&v4=xX_MC=0q;06(Xq=fs}IG}Dv=0l}o7$iZ;9v&LH&DP-7a&OY,SZ,Kz,Cv&dh=fx|Nh,F/~7q=XF&w+;9n&Gw;0h}Z7<7O&JK(S7&LS<AD<ac=wo<Dt&zw%4B=4v#8P;9o~6p*vV=Tm,Or&I6=1q}nY=P0=gq&Bl&Uu,Ch%yb}UY=zh}dh}rl(T4_xk(YA#8R*xH,IN}Jn]7V}C4&Ty}j3]7p=cL=3h&wW%Qv<Z3=f0&RI&+S(ic_zq}oN&/Y=z1;Td=LW=0e=OI(Vc,+b^ju(UL;0r:Za%8v=Rp=zw&58&73&wK}qX]6y&8E)a2}WR=wP^ur&nQ<cH}Re=Aq&wk}Q0&+q=PP,Gc|/d^k5,Fw]8Y}Pg]p3=ju=ed}r5_yf&Cs]7z$/G<Cm&Jp&54_1G_gP_Ll}JZ;0u]k8_7k(Sg]65{9i=LN&Sx&WK,iW&fD&Lk{9a}Em-9c#8N&io=sy]8d&nT&IK(lx#7/$lW(Td<s8~49,3o<7Y=MW(T+_Jr&Wd,iL}Ct=xh&5V;v4&8n%Kx=iF&l2_0B{B+,If(J0,Lv;u8=Kx-vB=HC&vS=Z6&fU&vE^xK;3D=4h=MR#45:Jw;0d}iw=LU}I5=I0]gB*im,K9}GU,1k_4U&Tt=Vs(iX&lU(TF#7y,ZO}oA&m5#5P}PN}Uz=hM<B1&FB<aG,e6~7T<tP(UQ_ZT=wu&F8)aQ]iN,1r_Lo&/g:CD}84{J1_Ki&Na&3n$jz&FE=dc;uv;va}in}ll=fv(h1&3h}fp=Cy}BM(+E~8m}lo%v7=hC(T6$cj=BQ=Bw(DR,2j=Ks,NS|F+;00=fU=70}Mb(YU;+G&m7&hr=Sk%Co]t+(X5_Jw}0r}gC(AS-IP&QK<Z2#8Q$WC]WX}T2&pG_Ka,HC=R4&/N;Z+;ch(C7,D4$3p_Mk&B2$8D=n9%Ky#5z(CT&QJ#7B]DC]gW}nf~5M;Iw#80}Tc_1F#4Z-aC}Hl=ph=fz,/3=aW}JM}nn;DG;vm}wn,4P}T3;wx&RG$u+}zK=0b;+J_Ek{re<aZ=AS}yY#5D]7q,Cp}xN=VP*2C}GZ}aG~+m_Cs=OY#6r]6g<GS}LC(UB=3A=Bo}Jy<c4}Is;1P<AG}Op<Z1}ld}nS=1Z,yM&95&98=CJ(4t:2L$Hk=Zo}Vc;+I}np&N1}9y=iv}CO*7p=jL)px]tb^zh&GS&Vl%v/;vR=14=zJ&49|/f]hF}WG;03=8P}o/&Gg&rp;DB,Kv}Ji&Pb;aA^ll(4j%yt}+K$Ht#4y&hY]7Y<F1,eN}bG(Uh%6Z]t5%G7;+F_RE;it}tL=LS&Da=Xx(S+(4f=8G=yI}cJ}WP=37=jS}pX}hd)fp<A8=Jt~+o$HJ=M6}iX=g9}CS=dv=Cj(mP%Kd,xq|+9&LD(4/=Xm&QP=Lc}LX&fL;+K=Op(lu=Qs.qC:+e&L+=Jj#8w;SL]7S(b+#4I=c1&nG_Lf&uH;+R)ZV<bV%B/,TE&0H&Jq&Ah%OF&Ss(p2,Wv&I3=Wl}Vq;1L&lJ#9b_1H=8r=b8=JH(SZ=hD=J2#7U,/U#/X~6P,FU<eL=jx,mG=hG=CE&PU=Se(qX&LY=X6=y4&tk&QQ&tf=4g&xI}W+&mZ=Dc#7w}Lg;DA;wQ_Kb(cJ=hR%yX&Yb,hw{bX_4X;EP;1W_2M}Uc=b5(YF,CM&Tp^OJ{DD]6s=vF=Yo~8q}XH}Fu%P5(SJ=Qt;MO]s8<F3&B3&8T(Ul-BS*dw&dR<87}/8]62$PZ]Lx<Au}9Q]7c=ja=KR,Go,Us&v6(qk}pG&G2=ev^GM%w4&H4]7F&dv]J6}Ew:9w=sj-ZL}Ym$+h(Ut(Um~4n=Xs(U7%eE=Qc_JR<CA#6t<Fv|/I,IS,EG<F2(Xy$/n<Fa(h9}+9_2o&N4#7X<Zq|+f_Dp=dt&na,Ca=NJ)jY=8C=YG=s6&Q+<DO}D3=xB&R1(lw;Qn<bF(Cu|/B}HV=SS&n7,10&u0]Dm%A6^4Q=WR(TD=Xo<GH,Rj(l8)bP&n/=LM&CF,F5&ml=PJ;0k=LG=tq,Rh,D6@4i=1p&+9=YC%er_Mh;nI;0q=Fw]80=xq=FM$Gv;v6&nc;wK%H2&Kj;vs,AA=YP,66}bI(qR~5U=6q~4b$Ni=K5.X3$So&Iu(p+]8G=Cf=RY(TS_O3(iH&57=fE=Dg_Do#9z#7H;FK{qd_2k%JR}en&gh_z8;Rx}9p<cN_Ne,DO;LN_7o~/p=NF=5Y}gN<ce<C1,QE]Wv=3u<BC}GK]yq}DY&u/_hj=II(pz&rC,jV&+Z}ut=NQ;Cg-SR_ZS,+o=u/;Oy_RK_QF(Fx&xP}Wr&TA,Uh&g1=yr{ax[VF$Pg(YB;Ox=Vy;+W(Sp}XV%dd&33(l/]l4#4Y}OE=6c=bw(A7&9t%wd&N/&mo,JH&Qe)fm=Ao}fu=tH";
59628
59629
  const deltaData = "FAZDC6BALcLZCA+GBARCW8wNCcDDZ8LVFBOqqDUiou+M42TFAyERXFb7EjhP+vmBFpFrUpfDV2F7eB+eCltCHJFWLFCED+pWTojEIHFXc3aFn4F68zqjEuKidS1QBVPDEhE7NA4mhMF7oThD49ot3FgtzHFCK0acW1x8DH1EmLoIlrWFBLE+y5+NA3Cx65wJHTaEZVaK1mWAmPGxgYCdxwOjTDIt/faOEhTl1vqNsKtJCOhJWuio2g07KLZEQsFBUpNtwEByBgxFslFheFbiEPvi61msDvApxCzB6rBCzox7joYA5UdDc+Cb4FSgIabpXFAj3bjkmFAxCZE+mD/SFf/0ELecYCt3nLoxC6WEZf2tKDB4oZvrEmqFkKk7BwILA7gtYBpsTq//D4jD0F0wEB9pyQ1BD5Ba0oYHDI+sbDFhvrHXdDHfgFEIJLi5r8qercNFBgFLC4bo5ERJtamWBDFy73KCEb6M8VpmEt330ygCTK58EIIFkYgF84gtGA9Uyh3m68iVrFbWFbcbqiCYHZ9J1jeRPbL8yswhMiDbhEhdNoSwFbZrLT740ABEqgCkO8J1BLd1VhKKR4sD1yUo0z+FF59Mvg71CFbyEhbHSFBKEIKyoQNgQppq9T0KAqePu0ZFGrXOHdKJqkoTFhYvpDNyuuznrN84thJbsCoO6Cu6Xlvntvy0QYuAExQEYtTUBf3CoCqwgGFZ4u1HJFzDVwEy3cjcpV4QvsPaBC3rCGyCF23o4K3pp2gberGgFEJEHo4nHICtyKH2ZqyxhN05KBBJIQlKh/Oujv/DH32VrlqFdIFC7Fz9Ct4kaqFME0UETLprnN9kfy+kFmtQBB0+5CFu0N9Ij8l/VvJDh2oq3hT6EzjTHKFN7ZjZwoTsAZ4Exsko6Fpa6WC+sduz8jyrLpegTv2h1EBeYpLpm2czQW0KoCcS0bCVXCmuWJDBjN1nQNLdF58SFJ0h7i3pC3oEOKy/FjBklL70XvBEEIWp2yZ04xObzAWDDJG7f+DbqBEA7LyiR95j7MDVdDViz2RE5vWlBMv5e4+VfhP3aXNPhvLSynb9O2x4uFBV+3jqu6d5pCG28/sETByvmu/+IJ0L3wb4rj9DNOLBF6XPIODr4L19U9RRofAG6Nxydi8Bki8BhGJbBAJKzbJxkZSlF9Q2Cu8oKqggB9hBArwLLqEBWEtFowy8XK8bEyw9snT+BeyFk1ZCSrdmgfEwFePTgCjELBEnIbjaDDPJm36rG9pztcEzT8dGk23SBhXBB1H4z+OWze0ooFzz8pDBYFvp9j9tvFByf9y4EFdVnz026CGR5qMr7fxMHN8UUdlyJAzlTBDRC28k+L4FB8078ljyD91tUj1ocnTs8vdEf7znbzm+GIjEZnoZE5rnLL700Xc7yHfz05nWxy03vBB9YGHYOWxgMQGBCR24CVYNE1hpfKxN0zKnfJDmmMgMmBWqNbjfSyFCBWSCGCgR8yFXiHyEj+VtD1FB3FpC1zI0kFbzifiKTLm9yq5zFmur+q8FHqjoOBWsBPiDbnCC2ErunV6cJ6TygXFYHYp7MKN9RUlSIS8/xBAGYLzeqUnBF4QbsTuUkUqGs6CaiDWKWjQK9EJkjpkTmNCPYXL";
@@ -59947,7 +59948,7 @@ function requireEthers () {
59947
59948
  Object.defineProperty(exports$1, "computeAddress", { enumerable: true, get: function () { return index_js_8.computeAddress; } });
59948
59949
  Object.defineProperty(exports$1, "recoverAddress", { enumerable: true, get: function () { return index_js_8.recoverAddress; } });
59949
59950
  Object.defineProperty(exports$1, "Transaction", { enumerable: true, get: function () { return index_js_8.Transaction; } });
59950
- var index_js_9 = requireUtils$8();
59951
+ var index_js_9 = requireUtils$7();
59951
59952
  Object.defineProperty(exports$1, "decodeBase58", { enumerable: true, get: function () { return index_js_9.decodeBase58; } });
59952
59953
  Object.defineProperty(exports$1, "encodeBase58", { enumerable: true, get: function () { return index_js_9.encodeBase58; } });
59953
59954
  Object.defineProperty(exports$1, "decodeBase64", { enumerable: true, get: function () { return index_js_9.decodeBase64; } });
@@ -60147,7 +60148,7 @@ function requireTypes$1 () {
60147
60148
  return types$1;
60148
60149
  }
60149
60150
 
60150
- var utils$4 = {};
60151
+ var utils$3 = {};
60151
60152
 
60152
60153
  var random = {};
60153
60154
 
@@ -60970,13 +60971,13 @@ function requireRandom () {
60970
60971
  return random;
60971
60972
  }
60972
60973
 
60973
- var hasRequiredUtils$4;
60974
+ var hasRequiredUtils$3;
60974
60975
 
60975
- function requireUtils$4 () {
60976
- if (hasRequiredUtils$4) return utils$4;
60977
- hasRequiredUtils$4 = 1;
60978
- Object.defineProperty(utils$4, "__esModule", { value: true });
60979
- utils$4.checkInvalidKeys = utils$4.isValidISO8601Date = utils$4.generateNonce = utils$4.checkContractWalletSignature = void 0;
60976
+ function requireUtils$3 () {
60977
+ if (hasRequiredUtils$3) return utils$3;
60978
+ hasRequiredUtils$3 = 1;
60979
+ Object.defineProperty(utils$3, "__esModule", { value: true });
60980
+ utils$3.checkInvalidKeys = utils$3.isValidISO8601Date = utils$3.generateNonce = utils$3.checkContractWalletSignature = void 0;
60980
60981
  const random_1 = requireRandom();
60981
60982
  // @ts-expect-error -- ethers v6 compatibility hack
60982
60983
  const ethers_1 = /*@__PURE__*/ requireLib_commonjs();
@@ -61002,7 +61003,7 @@ function requireUtils$4 () {
61002
61003
  const res = await walletContract.isValidSignature(hashedMessage, signature);
61003
61004
  return res === EIP1271_MAGICVALUE;
61004
61005
  };
61005
- utils$4.checkContractWalletSignature = checkContractWalletSignature;
61006
+ utils$3.checkContractWalletSignature = checkContractWalletSignature;
61006
61007
  /**
61007
61008
  * This method leverages a native CSPRNG with support for both browser and Node.js
61008
61009
  * environments in order generate a cryptographically secure nonce for use in the
@@ -61021,7 +61022,7 @@ function requireUtils$4 () {
61021
61022
  }
61022
61023
  return nonce;
61023
61024
  };
61024
- utils$4.generateNonce = generateNonce;
61025
+ utils$3.generateNonce = generateNonce;
61025
61026
  /**
61026
61027
  * This method matches the given date string against the ISO-8601 regex and also
61027
61028
  * performs checks if it's a valid date.
@@ -61042,7 +61043,7 @@ function requireUtils$4 () {
61042
61043
  /* Compare remaining fields */
61043
61044
  return inputMatch.groups.date === parsedInputMatch.groups.date;
61044
61045
  };
61045
- utils$4.isValidISO8601Date = isValidISO8601Date;
61046
+ utils$3.isValidISO8601Date = isValidISO8601Date;
61046
61047
  const checkInvalidKeys = (obj, keys) => {
61047
61048
  const invalidKeys = [];
61048
61049
  Object.keys(obj).forEach(key => {
@@ -61052,8 +61053,8 @@ function requireUtils$4 () {
61052
61053
  });
61053
61054
  return invalidKeys;
61054
61055
  };
61055
- utils$4.checkInvalidKeys = checkInvalidKeys;
61056
- return utils$4;
61056
+ utils$3.checkInvalidKeys = checkInvalidKeys;
61057
+ return utils$3;
61057
61058
  }
61058
61059
 
61059
61060
  var hasRequiredClient$1;
@@ -61067,7 +61068,7 @@ function requireClient$1 () {
61067
61068
  const siwe_parser_1 = requireParsers();
61068
61069
  const ethersCompat_1 = requireEthersCompat();
61069
61070
  const types_1 = requireTypes$1();
61070
- const utils_1 = requireUtils$4();
61071
+ const utils_1 = requireUtils$3();
61071
61072
  class SiweMessage {
61072
61073
  /**
61073
61074
  * Creates a parsed Sign-In with Ethereum Message (EIP-4361) object from a
@@ -61362,7 +61363,7 @@ function requireSiwe$1 () {
61362
61363
  Object.defineProperty(exports$1, "__esModule", { value: true });
61363
61364
  __exportStar(requireClient$1(), exports$1);
61364
61365
  __exportStar(requireTypes$1(), exports$1);
61365
- __exportStar(requireUtils$4(), exports$1);
61366
+ __exportStar(requireUtils$3(), exports$1);
61366
61367
  } (siwe));
61367
61368
  return siwe;
61368
61369
  }
@@ -61380,7 +61381,7 @@ function requireSiwe () {
61380
61381
  siwe$1.isNonceExpired = isNonceExpired;
61381
61382
  siwe$1.getDefaultChainId = getDefaultChainId;
61382
61383
  const siwe_1 = requireSiwe$1();
61383
- const validation_1 = requireValidation$1();
61384
+ const validation_1 = requireValidation();
61384
61385
  /**
61385
61386
  * Generate SIWE message with resolved options
61386
61387
  * @param options - Fully resolved SIWE options with domain guaranteed
@@ -61619,8 +61620,8 @@ function requireClient () {
61619
61620
  Object.defineProperty(client$1, "__esModule", { value: true });
61620
61621
  client$1.createAvatarClient = createAvatarClient;
61621
61622
  const axios_1 = __importStar(/*@__PURE__*/ requireAxios());
61622
- const errors_1 = requireErrors$2();
61623
- const validation_1 = requireValidation$1();
61623
+ const errors_1 = requireErrors$1();
61624
+ const validation_1 = requireValidation();
61624
61625
  const siwe_1 = requireSiwe();
61625
61626
  const wallet_adapters_1 = requireWalletAdapters();
61626
61627
  /**
@@ -61941,11 +61942,11 @@ function requireClient () {
61941
61942
  return client$1;
61942
61943
  }
61943
61944
 
61944
- var hasRequiredDist$3;
61945
+ var hasRequiredDist$2;
61945
61946
 
61946
- function requireDist$3 () {
61947
- if (hasRequiredDist$3) return dist$4;
61948
- hasRequiredDist$3 = 1;
61947
+ function requireDist$2 () {
61948
+ if (hasRequiredDist$2) return dist$3;
61949
+ hasRequiredDist$2 = 1;
61949
61950
  (function (exports$1) {
61950
61951
  /**
61951
61952
  * @fileoverview Namespace SDK - ENS Images
@@ -61989,12 +61990,12 @@ function requireDist$3 () {
61989
61990
  var client_1 = requireClient();
61990
61991
  Object.defineProperty(exports$1, "createAvatarClient", { enumerable: true, get: function () { return client_1.createAvatarClient; } });
61991
61992
  // Error exports
61992
- var errors_1 = requireErrors$2();
61993
+ var errors_1 = requireErrors$1();
61993
61994
  Object.defineProperty(exports$1, "AvatarSDKError", { enumerable: true, get: function () { return errors_1.AvatarSDKError; } });
61994
61995
  Object.defineProperty(exports$1, "ErrorCodes", { enumerable: true, get: function () { return errors_1.ErrorCodes; } });
61995
61996
  Object.defineProperty(exports$1, "createError", { enumerable: true, get: function () { return errors_1.createError; } });
61996
61997
  // Utility exports
61997
- var validation_1 = requireValidation$1();
61998
+ var validation_1 = requireValidation();
61998
61999
  Object.defineProperty(exports$1, "validateFile", { enumerable: true, get: function () { return validation_1.validateFile; } });
61999
62000
  Object.defineProperty(exports$1, "validateSubname", { enumerable: true, get: function () { return validation_1.validateSubname; } });
62000
62001
  Object.defineProperty(exports$1, "validateAddress", { enumerable: true, get: function () { return validation_1.validateAddress; } });
@@ -62014,13 +62015,13 @@ function requireDist$3 () {
62014
62015
  Object.defineProperty(exports$1, "isNonceExpired", { enumerable: true, get: function () { return siwe_1.isNonceExpired; } });
62015
62016
  Object.defineProperty(exports$1, "getDefaultChainId", { enumerable: true, get: function () { return siwe_1.getDefaultChainId; } });
62016
62017
 
62017
- } (dist$4));
62018
- return dist$4;
62018
+ } (dist$3));
62019
+ return dist$3;
62019
62020
  }
62020
62021
 
62021
- var distExports$3 = requireDist$3();
62022
+ var distExports$2 = requireDist$2();
62022
62023
 
62023
- var dist$2 = {};
62024
+ var dist$1 = {};
62024
62025
 
62025
62026
  var addresses = {};
62026
62027
 
@@ -62111,11 +62112,11 @@ function requireAddresses () {
62111
62112
  return addresses;
62112
62113
  }
62113
62114
 
62114
- var hasRequiredDist$2;
62115
+ var hasRequiredDist$1;
62115
62116
 
62116
- function requireDist$2 () {
62117
- if (hasRequiredDist$2) return dist$2;
62118
- hasRequiredDist$2 = 1;
62117
+ function requireDist$1 () {
62118
+ if (hasRequiredDist$1) return dist$1;
62119
+ hasRequiredDist$1 = 1;
62119
62120
  (function (exports$1) {
62120
62121
  Object.defineProperty(exports$1, "__esModule", { value: true });
62121
62122
  exports$1.getEnsContracts = exports$1.getL2NamespaceContracts = exports$1.getL1NamespaceContracts = void 0;
@@ -62123,11 +62124,11 @@ function requireDist$2 () {
62123
62124
  Object.defineProperty(exports$1, "getL1NamespaceContracts", { enumerable: true, get: function () { return addresses_1.getL1NamespaceContracts; } });
62124
62125
  Object.defineProperty(exports$1, "getL2NamespaceContracts", { enumerable: true, get: function () { return addresses_1.getL2NamespaceContracts; } });
62125
62126
  Object.defineProperty(exports$1, "getEnsContracts", { enumerable: true, get: function () { return addresses_1.getEnsContracts; } });
62126
- } (dist$2));
62127
- return dist$2;
62127
+ } (dist$1));
62128
+ return dist$1;
62128
62129
  }
62129
62130
 
62130
- var distExports$2 = requireDist$2();
62131
+ var distExports$1 = requireDist$1();
62131
62132
 
62132
62133
  var ETH_REGISTRAR_CONTOLLER = [
62133
62134
  {
@@ -63849,13 +63850,13 @@ const useRegisterENS = ({ isTestnet }) => {
63849
63850
  };
63850
63851
  };
63851
63852
  const getEthController = () => {
63852
- return distExports$2.getEnsContracts(isTestnet).ethRegistrarController;
63853
+ return distExports$1.getEnsContracts(isTestnet).ethRegistrarController;
63853
63854
  };
63854
63855
  const getEnsRegistry = () => {
63855
- return distExports$2.getEnsContracts(isTestnet).ensRegistry;
63856
+ return distExports$1.getEnsContracts(isTestnet).ensRegistry;
63856
63857
  };
63857
63858
  const getPublicResolver = () => {
63858
- return distExports$2.getEnsContracts(isTestnet).publicResolver;
63859
+ return distExports$1.getEnsContracts(isTestnet).publicResolver;
63859
63860
  };
63860
63861
  const getRegReferrer = (request) => {
63861
63862
  const referrerAddress = request.referrer && isAddress$1(request.referrer) ? request.referrer : NAMESPACE_REFERRER_ADDRESS;
@@ -64001,10 +64002,10 @@ const useENSResolver = ({
64001
64002
  }
64002
64003
  };
64003
64004
  const getEnsRegistry = () => {
64004
- return distExports$2.getEnsContracts(isTestnet).ensRegistry;
64005
+ return distExports$1.getEnsContracts(isTestnet).ensRegistry;
64005
64006
  };
64006
64007
  const getEnsPublicResolver = () => {
64007
- return distExports$2.getEnsContracts(isTestnet).publicResolver;
64008
+ return distExports$1.getEnsContracts(isTestnet).publicResolver;
64008
64009
  };
64009
64010
  return {
64010
64011
  getResolverAddress,
@@ -64013,7 +64014,7 @@ const useENSResolver = ({
64013
64014
  };
64014
64015
  };
64015
64016
 
64016
- var dist$1 = {};
64017
+ var dist = {};
64017
64018
 
64018
64019
  var mintClient = {};
64019
64020
 
@@ -64039,17 +64040,17 @@ function requireEnv () {
64039
64040
  return env;
64040
64041
  }
64041
64042
 
64042
- var chains$1 = {};
64043
+ var chains = {};
64043
64044
 
64044
- var hasRequiredChains$1;
64045
+ var hasRequiredChains;
64045
64046
 
64046
- function requireChains$1 () {
64047
- if (hasRequiredChains$1) return chains$1;
64048
- hasRequiredChains$1 = 1;
64047
+ function requireChains () {
64048
+ if (hasRequiredChains) return chains;
64049
+ hasRequiredChains = 1;
64049
64050
  (function (exports$1) {
64050
64051
  Object.defineProperty(exports$1, "__esModule", { value: true });
64051
64052
  exports$1.getChainName = exports$1.getChain = exports$1.getChainId = exports$1.ListingChain = void 0;
64052
- const chains_1 = chains$2;
64053
+ const chains_1 = chains$1;
64053
64054
  /**
64054
64055
  * Supported networks for listing/minting operations.
64055
64056
  */
@@ -64090,8 +64091,8 @@ function requireChains$1 () {
64090
64091
  throw new Error("Unsupported chain provided: " + chainId);
64091
64092
  };
64092
64093
  exports$1.getChainName = getChainName;
64093
- } (chains$1));
64094
- return chains$1;
64094
+ } (chains));
64095
+ return chains;
64095
64096
  }
64096
64097
 
64097
64098
  var abi = {};
@@ -65556,7 +65557,7 @@ function requireAbi () {
65556
65557
  return abi;
65557
65558
  }
65558
65559
 
65559
- var utils$3 = {};
65560
+ var utils$2 = {};
65560
65561
 
65561
65562
  var cjs = {};
65562
65563
 
@@ -65586,7 +65587,7 @@ function require_md () {
65586
65587
  * Internal Merkle-Damgard hash utils.
65587
65588
  * @module
65588
65589
  */
65589
- const utils_ts_1 = /*@__PURE__*/ requireUtils$a();
65590
+ const utils_ts_1 = /*@__PURE__*/ requireUtils$9();
65590
65591
  /** Polyfill for Safari 14. https://caniuse.com/mdn-javascript_builtins_dataview_setbiguint64 */
65591
65592
  function setBigUint64(view, byteOffset, value, isLE) {
65592
65593
  if (typeof view.setBigUint64 === 'function')
@@ -65757,7 +65758,7 @@ function requireSha2 () {
65757
65758
  */
65758
65759
  const _md_ts_1 = require_md();
65759
65760
  const u64 = require_u64$1();
65760
- const utils_ts_1 = /*@__PURE__*/ requireUtils$a();
65761
+ const utils_ts_1 = /*@__PURE__*/ requireUtils$9();
65761
65762
  /**
65762
65763
  * Round constants:
65763
65764
  * First 32 bits of fractional parts of the cube roots of the first 64 primes 2..311)
@@ -66150,7 +66151,7 @@ function requireHmac () {
66150
66151
  * HMAC: RFC2104 message authentication code.
66151
66152
  * @module
66152
66153
  */
66153
- const utils_ts_1 = /*@__PURE__*/ requireUtils$a();
66154
+ const utils_ts_1 = /*@__PURE__*/ requireUtils$9();
66154
66155
  class HMAC extends utils_ts_1.Hash {
66155
66156
  constructor(hash, _key) {
66156
66157
  super();
@@ -66238,13 +66239,13 @@ function requireHmac () {
66238
66239
  return hmac;
66239
66240
  }
66240
66241
 
66241
- var utils$2 = {};
66242
+ var utils$1 = {};
66242
66243
 
66243
- var hasRequiredUtils$3;
66244
+ var hasRequiredUtils$2;
66244
66245
 
66245
- function requireUtils$3 () {
66246
- if (hasRequiredUtils$3) return utils$2;
66247
- hasRequiredUtils$3 = 1;
66246
+ function requireUtils$2 () {
66247
+ if (hasRequiredUtils$2) return utils$1;
66248
+ hasRequiredUtils$2 = 1;
66248
66249
  (function (exports$1) {
66249
66250
  Object.defineProperty(exports$1, "__esModule", { value: true });
66250
66251
  exports$1.notImplemented = exports$1.bitMask = exports$1.utf8ToBytes = exports$1.randomBytes = exports$1.isBytes = exports$1.hexToBytes = exports$1.concatBytes = exports$1.bytesToUtf8 = exports$1.bytesToHex = exports$1.anumber = exports$1.abytes = void 0;
@@ -66277,8 +66278,8 @@ function requireUtils$3 () {
66277
66278
  * @module
66278
66279
  */
66279
66280
  /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
66280
- const utils_js_1 = /*@__PURE__*/ requireUtils$a();
66281
- var utils_js_2 = /*@__PURE__*/ requireUtils$a();
66281
+ const utils_js_1 = /*@__PURE__*/ requireUtils$9();
66282
+ var utils_js_2 = /*@__PURE__*/ requireUtils$9();
66282
66283
  Object.defineProperty(exports$1, "abytes", { enumerable: true, get: function () { return utils_js_2.abytes; } });
66283
66284
  Object.defineProperty(exports$1, "anumber", { enumerable: true, get: function () { return utils_js_2.anumber; } });
66284
66285
  Object.defineProperty(exports$1, "bytesToHex", { enumerable: true, get: function () { return utils_js_2.bytesToHex; } });
@@ -66605,8 +66606,8 @@ function requireUtils$3 () {
66605
66606
  };
66606
66607
  }
66607
66608
 
66608
- } (utils$2));
66609
- return utils$2;
66609
+ } (utils$1));
66610
+ return utils$1;
66610
66611
  }
66611
66612
 
66612
66613
  var curve = {};
@@ -66647,7 +66648,7 @@ function requireModular () {
66647
66648
  * @module
66648
66649
  */
66649
66650
  /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
66650
- const utils_ts_1 = requireUtils$3();
66651
+ const utils_ts_1 = requireUtils$2();
66651
66652
  // prettier-ignore
66652
66653
  const _0n = BigInt(0), _1n = BigInt(1), _2n = /* @__PURE__ */ BigInt(2), _3n = /* @__PURE__ */ BigInt(3);
66653
66654
  // prettier-ignore
@@ -67193,7 +67194,7 @@ function requireCurve () {
67193
67194
  * @module
67194
67195
  */
67195
67196
  /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
67196
- const utils_ts_1 = requireUtils$3();
67197
+ const utils_ts_1 = requireUtils$2();
67197
67198
  const modular_ts_1 = requireModular();
67198
67199
  const _0n = BigInt(0);
67199
67200
  const _1n = BigInt(1);
@@ -67702,8 +67703,8 @@ function requireWeierstrass () {
67702
67703
  */
67703
67704
  /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
67704
67705
  const hmac_js_1 = /*@__PURE__*/ requireHmac();
67705
- const utils_1 = /*@__PURE__*/ requireUtils$a();
67706
- const utils_ts_1 = requireUtils$3();
67706
+ const utils_1 = /*@__PURE__*/ requireUtils$9();
67707
+ const utils_ts_1 = requireUtils$2();
67707
67708
  const curve_ts_1 = requireCurve();
67708
67709
  const modular_ts_1 = requireModular();
67709
67710
  // We construct basis in such way that den is always positive and equals n, but num sign depends on basis (not on secret value)
@@ -69134,7 +69135,7 @@ function requireHashToCurve () {
69134
69135
  exports$1.hash_to_field = hash_to_field;
69135
69136
  exports$1.isogenyMap = isogenyMap;
69136
69137
  exports$1.createHasher = createHasher;
69137
- const utils_ts_1 = requireUtils$3();
69138
+ const utils_ts_1 = requireUtils$2();
69138
69139
  const modular_ts_1 = requireModular();
69139
69140
  // Octet Stream to Integer. "spec" implementation of os2ip is 2.5x slower vs bytesToNumberBE.
69140
69141
  const os2ip = utils_ts_1.bytesToNumberBE;
@@ -69358,12 +69359,12 @@ function requireSecp256k1 () {
69358
69359
  */
69359
69360
  /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
69360
69361
  const sha2_js_1 = requireSha2();
69361
- const utils_js_1 = /*@__PURE__*/ requireUtils$a();
69362
+ const utils_js_1 = /*@__PURE__*/ requireUtils$9();
69362
69363
  const _shortw_utils_ts_1 = require_shortw_utils();
69363
69364
  const hash_to_curve_ts_1 = requireHashToCurve();
69364
69365
  const modular_ts_1 = requireModular();
69365
69366
  const weierstrass_ts_1 = requireWeierstrass();
69366
- const utils_ts_1 = requireUtils$3();
69367
+ const utils_ts_1 = requireUtils$2();
69367
69368
  // Seems like generator was produced from some seed:
69368
69369
  // `Point.BASE.multiply(Point.Fn.inv(2n, N)).toAffine().x`
69369
69370
  // // gives short x 0x3b78ce563f89a0ed9414f5aa28ad0d96d6795f9c63n
@@ -69669,7 +69670,7 @@ function requireLegacy () {
69669
69670
  * @module
69670
69671
  */
69671
69672
  const _md_ts_1 = require_md();
69672
- const utils_ts_1 = /*@__PURE__*/ requireUtils$a();
69673
+ const utils_ts_1 = /*@__PURE__*/ requireUtils$9();
69673
69674
  /** Initial SHA1 state */
69674
69675
  const SHA1_IV = /* @__PURE__ */ Uint32Array.from([
69675
69676
  0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0,
@@ -70735,7 +70736,7 @@ function requireBase58 () {
70735
70736
  Object.defineProperty(exports$1, "__esModule", { value: true });
70736
70737
  exports$1.createBase58VersionedDecoder = exports$1.createBase58VersionedEncoder = exports$1.base58CheckDecode = exports$1.base58CheckEncode = exports$1.base58UncheckedDecode = exports$1.base58UncheckedEncode = void 0;
70737
70738
  const sha256_1 = /*@__PURE__*/ requireSha256();
70738
- const utils_1 = /*@__PURE__*/ requireUtils$a();
70739
+ const utils_1 = /*@__PURE__*/ requireUtils$9();
70739
70740
  const base_1 = /*@__PURE__*/ requireLib$1();
70740
70741
  const base58Unchecked = base_1.base58;
70741
70742
  exports$1.base58UncheckedEncode = base58Unchecked.encode;
@@ -70846,7 +70847,7 @@ function requireBech32 () {
70846
70847
  hasRequiredBech32 = 1;
70847
70848
  Object.defineProperty(bech32, "__esModule", { value: true });
70848
70849
  bech32.createBech32SegwitDecoder = bech32.createBech32SegwitEncoder = bech32.createBech32mDecoder = bech32.createBech32mEncoder = bech32.createBech32Decoder = bech32.createBech32Encoder = void 0;
70849
- const utils_1 = /*@__PURE__*/ requireUtils$a();
70850
+ const utils_1 = /*@__PURE__*/ requireUtils$9();
70850
70851
  const base_1 = /*@__PURE__*/ requireLib$1();
70851
70852
  const createInternalBech32Encoder = ({ bechLib, hrp, limit }) => (source) => {
70852
70853
  return bechLib.encode(hrp, bechLib.toWords(source), limit);
@@ -71564,7 +71565,7 @@ function requireAe () {
71564
71565
  (function (exports$1) {
71565
71566
  Object.defineProperty(exports$1, "__esModule", { value: true });
71566
71567
  exports$1.ae = exports$1.decodeAeAddress = exports$1.encodeAeAddress = void 0;
71567
- const utils_1 = /*@__PURE__*/ requireUtils$a();
71568
+ const utils_1 = /*@__PURE__*/ requireUtils$9();
71568
71569
  const base58_js_1 = requireBase58();
71569
71570
  const name = "ae";
71570
71571
  const coinType = 457;
@@ -71626,7 +71627,7 @@ function requireBytes () {
71626
71627
  hasRequiredBytes = 1;
71627
71628
  Object.defineProperty(bytes, "__esModule", { value: true });
71628
71629
  bytes.hexWithoutPrefixToBytes = bytes.bytesToHexWithoutPrefix = bytes.base10ToBytes = bytes.bytesToBase10 = bytes.bytesToHex = bytes.stringToBytes = bytes.bytesToString = bytes.hexToString = bytes.hexToBytes = void 0;
71629
- const utils_1 = /*@__PURE__*/ requireUtils$a();
71630
+ const utils_1 = /*@__PURE__*/ requireUtils$9();
71630
71631
  function hexToBytes(hex_) {
71631
71632
  let hex = hex_;
71632
71633
  let hexString = hex.slice(2);
@@ -72123,7 +72124,7 @@ function requireBch$1 () {
72123
72124
  hasRequiredBch$1 = 1;
72124
72125
  Object.defineProperty(bch, "__esModule", { value: true });
72125
72126
  bch.decodeBchAddressToTypeAndHash = bch.encodeBchAddressWithVersion = void 0;
72126
- const utils_1 = /*@__PURE__*/ requireUtils$a();
72127
+ const utils_1 = /*@__PURE__*/ requireUtils$9();
72127
72128
  const base_1 = /*@__PURE__*/ requireLib$1();
72128
72129
  const prefix = "bitcoincash";
72129
72130
  const prefixBytes = new Uint8Array([2, 9, 20, 3, 15, 9, 14, 3, 1, 19, 8, 0]);
@@ -72217,7 +72218,7 @@ function requireBch () {
72217
72218
  (function (exports$1) {
72218
72219
  Object.defineProperty(exports$1, "__esModule", { value: true });
72219
72220
  exports$1.bch = exports$1.decodeBchAddress = exports$1.encodeBchAddress = void 0;
72220
- const utils_1 = /*@__PURE__*/ requireUtils$a();
72221
+ const utils_1 = /*@__PURE__*/ requireUtils$9();
72221
72222
  const base58_js_1 = requireBase58();
72222
72223
  const bch_js_1 = requireBch$1();
72223
72224
  const name = "bch";
@@ -72268,86 +72269,86 @@ function requireBch () {
72268
72269
 
72269
72270
  var bcn = {};
72270
72271
 
72271
- var utils$1 = {};
72272
+ var utils = {};
72272
72273
 
72273
- var hasRequiredUtils$2;
72274
+ var hasRequiredUtils$1;
72274
72275
 
72275
- function requireUtils$2 () {
72276
- if (hasRequiredUtils$2) return utils$1;
72277
- hasRequiredUtils$2 = 1;
72278
- Object.defineProperty(utils$1, "__esModule", { value: true });
72279
- utils$1.isHash = utils$1.validateObject = utils$1.memoized = utils$1.notImplemented = utils$1.createHmacDrbg = utils$1.bitMask = utils$1.bitSet = utils$1.bitGet = utils$1.bitLen = utils$1.aInRange = utils$1.inRange = utils$1.asciiToBytes = utils$1.copyBytes = utils$1.equalBytes = utils$1.ensureBytes = utils$1.numberToVarBytesBE = utils$1.numberToBytesLE = utils$1.numberToBytesBE = utils$1.bytesToNumberLE = utils$1.bytesToNumberBE = utils$1.hexToNumber = utils$1.numberToHexUnpadded = utils$1.abool = utils$1.utf8ToBytes = utils$1.randomBytes = utils$1.isBytes = utils$1.hexToBytes = utils$1.concatBytes = utils$1.bytesToUtf8 = utils$1.bytesToHex = utils$1.anumber = utils$1.abytes = void 0;
72276
+ function requireUtils$1 () {
72277
+ if (hasRequiredUtils$1) return utils;
72278
+ hasRequiredUtils$1 = 1;
72279
+ Object.defineProperty(utils, "__esModule", { value: true });
72280
+ utils.isHash = utils.validateObject = utils.memoized = utils.notImplemented = utils.createHmacDrbg = utils.bitMask = utils.bitSet = utils.bitGet = utils.bitLen = utils.aInRange = utils.inRange = utils.asciiToBytes = utils.copyBytes = utils.equalBytes = utils.ensureBytes = utils.numberToVarBytesBE = utils.numberToBytesLE = utils.numberToBytesBE = utils.bytesToNumberLE = utils.bytesToNumberBE = utils.hexToNumber = utils.numberToHexUnpadded = utils.abool = utils.utf8ToBytes = utils.randomBytes = utils.isBytes = utils.hexToBytes = utils.concatBytes = utils.bytesToUtf8 = utils.bytesToHex = utils.anumber = utils.abytes = void 0;
72280
72281
  /**
72281
72282
  * Deprecated module: moved from curves/abstract/utils.js to curves/utils.js
72282
72283
  * @module
72283
72284
  */
72284
- const u = requireUtils$3();
72285
+ const u = requireUtils$2();
72285
72286
  /** @deprecated moved to `@noble/curves/utils.js` */
72286
- utils$1.abytes = u.abytes;
72287
+ utils.abytes = u.abytes;
72287
72288
  /** @deprecated moved to `@noble/curves/utils.js` */
72288
- utils$1.anumber = u.anumber;
72289
+ utils.anumber = u.anumber;
72289
72290
  /** @deprecated moved to `@noble/curves/utils.js` */
72290
- utils$1.bytesToHex = u.bytesToHex;
72291
+ utils.bytesToHex = u.bytesToHex;
72291
72292
  /** @deprecated moved to `@noble/curves/utils.js` */
72292
- utils$1.bytesToUtf8 = u.bytesToUtf8;
72293
+ utils.bytesToUtf8 = u.bytesToUtf8;
72293
72294
  /** @deprecated moved to `@noble/curves/utils.js` */
72294
- utils$1.concatBytes = u.concatBytes;
72295
+ utils.concatBytes = u.concatBytes;
72295
72296
  /** @deprecated moved to `@noble/curves/utils.js` */
72296
- utils$1.hexToBytes = u.hexToBytes;
72297
+ utils.hexToBytes = u.hexToBytes;
72297
72298
  /** @deprecated moved to `@noble/curves/utils.js` */
72298
- utils$1.isBytes = u.isBytes;
72299
+ utils.isBytes = u.isBytes;
72299
72300
  /** @deprecated moved to `@noble/curves/utils.js` */
72300
- utils$1.randomBytes = u.randomBytes;
72301
+ utils.randomBytes = u.randomBytes;
72301
72302
  /** @deprecated moved to `@noble/curves/utils.js` */
72302
- utils$1.utf8ToBytes = u.utf8ToBytes;
72303
+ utils.utf8ToBytes = u.utf8ToBytes;
72303
72304
  /** @deprecated moved to `@noble/curves/utils.js` */
72304
- utils$1.abool = u.abool;
72305
+ utils.abool = u.abool;
72305
72306
  /** @deprecated moved to `@noble/curves/utils.js` */
72306
- utils$1.numberToHexUnpadded = u.numberToHexUnpadded;
72307
+ utils.numberToHexUnpadded = u.numberToHexUnpadded;
72307
72308
  /** @deprecated moved to `@noble/curves/utils.js` */
72308
- utils$1.hexToNumber = u.hexToNumber;
72309
+ utils.hexToNumber = u.hexToNumber;
72309
72310
  /** @deprecated moved to `@noble/curves/utils.js` */
72310
- utils$1.bytesToNumberBE = u.bytesToNumberBE;
72311
+ utils.bytesToNumberBE = u.bytesToNumberBE;
72311
72312
  /** @deprecated moved to `@noble/curves/utils.js` */
72312
- utils$1.bytesToNumberLE = u.bytesToNumberLE;
72313
+ utils.bytesToNumberLE = u.bytesToNumberLE;
72313
72314
  /** @deprecated moved to `@noble/curves/utils.js` */
72314
- utils$1.numberToBytesBE = u.numberToBytesBE;
72315
+ utils.numberToBytesBE = u.numberToBytesBE;
72315
72316
  /** @deprecated moved to `@noble/curves/utils.js` */
72316
- utils$1.numberToBytesLE = u.numberToBytesLE;
72317
+ utils.numberToBytesLE = u.numberToBytesLE;
72317
72318
  /** @deprecated moved to `@noble/curves/utils.js` */
72318
- utils$1.numberToVarBytesBE = u.numberToVarBytesBE;
72319
+ utils.numberToVarBytesBE = u.numberToVarBytesBE;
72319
72320
  /** @deprecated moved to `@noble/curves/utils.js` */
72320
- utils$1.ensureBytes = u.ensureBytes;
72321
+ utils.ensureBytes = u.ensureBytes;
72321
72322
  /** @deprecated moved to `@noble/curves/utils.js` */
72322
- utils$1.equalBytes = u.equalBytes;
72323
+ utils.equalBytes = u.equalBytes;
72323
72324
  /** @deprecated moved to `@noble/curves/utils.js` */
72324
- utils$1.copyBytes = u.copyBytes;
72325
+ utils.copyBytes = u.copyBytes;
72325
72326
  /** @deprecated moved to `@noble/curves/utils.js` */
72326
- utils$1.asciiToBytes = u.asciiToBytes;
72327
+ utils.asciiToBytes = u.asciiToBytes;
72327
72328
  /** @deprecated moved to `@noble/curves/utils.js` */
72328
- utils$1.inRange = u.inRange;
72329
+ utils.inRange = u.inRange;
72329
72330
  /** @deprecated moved to `@noble/curves/utils.js` */
72330
- utils$1.aInRange = u.aInRange;
72331
+ utils.aInRange = u.aInRange;
72331
72332
  /** @deprecated moved to `@noble/curves/utils.js` */
72332
- utils$1.bitLen = u.bitLen;
72333
+ utils.bitLen = u.bitLen;
72333
72334
  /** @deprecated moved to `@noble/curves/utils.js` */
72334
- utils$1.bitGet = u.bitGet;
72335
+ utils.bitGet = u.bitGet;
72335
72336
  /** @deprecated moved to `@noble/curves/utils.js` */
72336
- utils$1.bitSet = u.bitSet;
72337
+ utils.bitSet = u.bitSet;
72337
72338
  /** @deprecated moved to `@noble/curves/utils.js` */
72338
- utils$1.bitMask = u.bitMask;
72339
+ utils.bitMask = u.bitMask;
72339
72340
  /** @deprecated moved to `@noble/curves/utils.js` */
72340
- utils$1.createHmacDrbg = u.createHmacDrbg;
72341
+ utils.createHmacDrbg = u.createHmacDrbg;
72341
72342
  /** @deprecated moved to `@noble/curves/utils.js` */
72342
- utils$1.notImplemented = u.notImplemented;
72343
+ utils.notImplemented = u.notImplemented;
72343
72344
  /** @deprecated moved to `@noble/curves/utils.js` */
72344
- utils$1.memoized = u.memoized;
72345
+ utils.memoized = u.memoized;
72345
72346
  /** @deprecated moved to `@noble/curves/utils.js` */
72346
- utils$1.validateObject = u.validateObject;
72347
+ utils.validateObject = u.validateObject;
72347
72348
  /** @deprecated moved to `@noble/curves/utils.js` */
72348
- utils$1.isHash = u.isHash;
72349
+ utils.isHash = u.isHash;
72349
72350
 
72350
- return utils$1;
72351
+ return utils;
72351
72352
  }
72352
72353
 
72353
72354
  var xmr = {};
@@ -72384,9 +72385,9 @@ function requireBcn () {
72384
72385
  (function (exports$1) {
72385
72386
  Object.defineProperty(exports$1, "__esModule", { value: true });
72386
72387
  exports$1.bcn = exports$1.decodeBcnAddress = exports$1.encodeBcnAddress = void 0;
72387
- const utils_1 = /*@__PURE__*/ requireUtils$2();
72388
+ const utils_1 = /*@__PURE__*/ requireUtils$1();
72388
72389
  const sha3_1 = /*@__PURE__*/ requireSha3$1();
72389
- const utils_2 = /*@__PURE__*/ requireUtils$a();
72390
+ const utils_2 = /*@__PURE__*/ requireUtils$9();
72390
72391
  const base_1 = /*@__PURE__*/ requireLib$1();
72391
72392
  const xmr_js_1 = requireXmr();
72392
72393
  const name = "bcn";
@@ -72509,7 +72510,7 @@ function requireBsv () {
72509
72510
  (function (exports$1) {
72510
72511
  Object.defineProperty(exports$1, "__esModule", { value: true });
72511
72512
  exports$1.bsv = exports$1.decodeBsvAddress = exports$1.encodeBsvAddress = void 0;
72512
- const utils_1 = /*@__PURE__*/ requireUtils$a();
72513
+ const utils_1 = /*@__PURE__*/ requireUtils$9();
72513
72514
  const base58_js_1 = requireBase58();
72514
72515
  const name = "bsv";
72515
72516
  const coinType = 236;
@@ -73044,7 +73045,7 @@ function require_blake () {
73044
73045
  * Internal helpers for blake hash.
73045
73046
  * @module
73046
73047
  */
73047
- const utils_ts_1 = /*@__PURE__*/ requireUtils$a();
73048
+ const utils_ts_1 = /*@__PURE__*/ requireUtils$9();
73048
73049
  /**
73049
73050
  * Internal blake variable.
73050
73051
  * For BLAKE2b, the two extra permutations for rounds 10 and 11 are SIGMA[10..11] = SIGMA[0..1].
@@ -73105,7 +73106,7 @@ function requireBlake2 () {
73105
73106
  const _md_ts_1 = require_md();
73106
73107
  const u64 = require_u64$1();
73107
73108
  // prettier-ignore
73108
- const utils_ts_1 = /*@__PURE__*/ requireUtils$a();
73109
+ const utils_ts_1 = /*@__PURE__*/ requireUtils$9();
73109
73110
  // Same as SHA512_IV, but swapped endianness: LE instead of BE. iv[1] is iv[0], etc.
73110
73111
  const B2B_IV = /* @__PURE__ */ Uint32Array.from([
73111
73112
  0xf3bcc908, 0x6a09e667, 0x84caa73b, 0xbb67ae85, 0xfe94f82b, 0x3c6ef372, 0x5f1d36f1, 0xa54ff53a,
@@ -73543,9 +73544,9 @@ function requireDot$1 () {
73543
73544
  hasRequiredDot$1 = 1;
73544
73545
  Object.defineProperty(dot, "__esModule", { value: true });
73545
73546
  dot.createDotAddressDecoder = dot.createDotAddressEncoder = void 0;
73546
- const utils_1 = /*@__PURE__*/ requireUtils$2();
73547
+ const utils_1 = /*@__PURE__*/ requireUtils$1();
73547
73548
  const blake2b_1 = /*@__PURE__*/ requireBlake2b();
73548
- const utils_2 = /*@__PURE__*/ requireUtils$a();
73549
+ const utils_2 = /*@__PURE__*/ requireUtils$9();
73549
73550
  const base58_js_1 = requireBase58();
73550
73551
  const prefixStringBytes = new Uint8Array([
73551
73552
  0x53, 0x53, 0x35, 0x38, 0x50, 0x52, 0x45,
@@ -73740,7 +73741,7 @@ function requireEtn () {
73740
73741
  Object.defineProperty(exports$1, "__esModule", { value: true });
73741
73742
  exports$1.etn = exports$1.decodeEtnAddress = exports$1.encodeEtnAddress = void 0;
73742
73743
  const sha3_1 = /*@__PURE__*/ requireSha3$1();
73743
- const utils_1 = /*@__PURE__*/ requireUtils$a();
73744
+ const utils_1 = /*@__PURE__*/ requireUtils$9();
73744
73745
  const base_1 = /*@__PURE__*/ requireLib$1();
73745
73746
  const xmr_js_1 = requireXmr();
73746
73747
  const name = "etn";
@@ -73846,9 +73847,9 @@ function requireFil () {
73846
73847
  (function (exports$1) {
73847
73848
  Object.defineProperty(exports$1, "__esModule", { value: true });
73848
73849
  exports$1.fil = exports$1.decodeFilAddress = exports$1.encodeFilAddress = void 0;
73849
- const utils_1 = /*@__PURE__*/ requireUtils$2();
73850
+ const utils_1 = /*@__PURE__*/ requireUtils$1();
73850
73851
  const blake2b_1 = /*@__PURE__*/ requireBlake2b();
73851
- const utils_2 = /*@__PURE__*/ requireUtils$a();
73852
+ const utils_2 = /*@__PURE__*/ requireUtils$9();
73852
73853
  const base32_js_1 = requireBase32();
73853
73854
  const leb128_js_1 = requireLeb128();
73854
73855
  const name = "fil";
@@ -74445,7 +74446,7 @@ function requireHnt () {
74445
74446
  (function (exports$1) {
74446
74447
  Object.defineProperty(exports$1, "__esModule", { value: true });
74447
74448
  exports$1.hnt = exports$1.decodeHntAddress = exports$1.encodeHntAddress = void 0;
74448
- const utils_1 = /*@__PURE__*/ requireUtils$a();
74449
+ const utils_1 = /*@__PURE__*/ requireUtils$9();
74449
74450
  const base58_js_1 = requireBase58();
74450
74451
  const name = "hnt";
74451
74452
  const coinType = 904;
@@ -74483,7 +74484,7 @@ function requireIcx () {
74483
74484
  (function (exports$1) {
74484
74485
  Object.defineProperty(exports$1, "__esModule", { value: true });
74485
74486
  exports$1.icx = exports$1.decodeIcxAddress = exports$1.encodeIcxAddress = void 0;
74486
- const utils_1 = /*@__PURE__*/ requireUtils$a();
74487
+ const utils_1 = /*@__PURE__*/ requireUtils$9();
74487
74488
  const bytes_js_1 = requireBytes();
74488
74489
  const name = "icx";
74489
74490
  const coinType = 74;
@@ -74555,7 +74556,7 @@ function requireIota () {
74555
74556
  (function (exports$1) {
74556
74557
  Object.defineProperty(exports$1, "__esModule", { value: true });
74557
74558
  exports$1.iota = exports$1.decodeIotaAddress = exports$1.encodeIotaAddress = void 0;
74558
- const utils_1 = /*@__PURE__*/ requireUtils$a();
74559
+ const utils_1 = /*@__PURE__*/ requireUtils$9();
74559
74560
  const bech32_js_1 = requireBech32();
74560
74561
  const name = "iota";
74561
74562
  const coinType = 4218;
@@ -75302,7 +75303,7 @@ function requireNuls () {
75302
75303
  (function (exports$1) {
75303
75304
  Object.defineProperty(exports$1, "__esModule", { value: true });
75304
75305
  exports$1.nuls = exports$1.decodeNulsAddress = exports$1.encodeNulsAddress = void 0;
75305
- const utils_1 = /*@__PURE__*/ requireUtils$a();
75306
+ const utils_1 = /*@__PURE__*/ requireUtils$9();
75306
75307
  const base58_js_1 = requireBase58();
75307
75308
  const name = "nuls";
75308
75309
  const coinType = 8964;
@@ -75410,7 +75411,7 @@ function requireOnt () {
75410
75411
  (function (exports$1) {
75411
75412
  Object.defineProperty(exports$1, "__esModule", { value: true });
75412
75413
  exports$1.ont = exports$1.decodeOntAddress = exports$1.encodeOntAddress = void 0;
75413
- const utils_1 = /*@__PURE__*/ requireUtils$a();
75414
+ const utils_1 = /*@__PURE__*/ requireUtils$9();
75414
75415
  const base58_js_1 = requireBase58();
75415
75416
  const name = "ont";
75416
75417
  const coinType = 1024;
@@ -75638,9 +75639,9 @@ function requireSc () {
75638
75639
  (function (exports$1) {
75639
75640
  Object.defineProperty(exports$1, "__esModule", { value: true });
75640
75641
  exports$1.sc = exports$1.decodeScAddress = exports$1.encodeScAddress = void 0;
75641
- const utils_1 = /*@__PURE__*/ requireUtils$2();
75642
+ const utils_1 = /*@__PURE__*/ requireUtils$1();
75642
75643
  const blake2b_1 = /*@__PURE__*/ requireBlake2b();
75643
- const utils_2 = /*@__PURE__*/ requireUtils$a();
75644
+ const utils_2 = /*@__PURE__*/ requireUtils$9();
75644
75645
  const bytes_js_1 = requireBytes();
75645
75646
  const name = "sc";
75646
75647
  const coinType = 1991;
@@ -75891,9 +75892,9 @@ function requireStx () {
75891
75892
  (function (exports$1) {
75892
75893
  Object.defineProperty(exports$1, "__esModule", { value: true });
75893
75894
  exports$1.stx = exports$1.decodeStxAddress = exports$1.encodeStxAddress = void 0;
75894
- const utils_1 = /*@__PURE__*/ requireUtils$2();
75895
+ const utils_1 = /*@__PURE__*/ requireUtils$1();
75895
75896
  const sha256_1 = /*@__PURE__*/ requireSha256();
75896
- const utils_2 = /*@__PURE__*/ requireUtils$a();
75897
+ const utils_2 = /*@__PURE__*/ requireUtils$9();
75897
75898
  const base_1 = /*@__PURE__*/ requireLib$1();
75898
75899
  const base32_js_1 = requireBase32();
75899
75900
  const name = "stx";
@@ -76313,7 +76314,7 @@ function requireVsys () {
76313
76314
  (function (exports$1) {
76314
76315
  Object.defineProperty(exports$1, "__esModule", { value: true });
76315
76316
  exports$1.vsys = exports$1.decodeVsysAddress = exports$1.encodeVsysAddress = void 0;
76316
- const utils_1 = /*@__PURE__*/ requireUtils$2();
76317
+ const utils_1 = /*@__PURE__*/ requireUtils$1();
76317
76318
  const blake2b_1 = /*@__PURE__*/ requireBlake2b();
76318
76319
  const sha3_1 = /*@__PURE__*/ requireSha3$1();
76319
76320
  const base58_js_1 = requireBase58();
@@ -76581,8 +76582,8 @@ function requireXlm () {
76581
76582
  (function (exports$1) {
76582
76583
  Object.defineProperty(exports$1, "__esModule", { value: true });
76583
76584
  exports$1.xlm = exports$1.decodeXlmAddress = exports$1.encodeXlmAddress = void 0;
76584
- const utils_1 = /*@__PURE__*/ requireUtils$2();
76585
- const utils_2 = /*@__PURE__*/ requireUtils$a();
76585
+ const utils_1 = /*@__PURE__*/ requireUtils$1();
76586
+ const utils_2 = /*@__PURE__*/ requireUtils$9();
76586
76587
  const base32_js_1 = requireBase32();
76587
76588
  const bytes_js_1 = requireBytes();
76588
76589
  const name = "xlm";
@@ -76674,7 +76675,7 @@ function requireXtz () {
76674
76675
  (function (exports$1) {
76675
76676
  Object.defineProperty(exports$1, "__esModule", { value: true });
76676
76677
  exports$1.xtz = exports$1.decodeXtzAddress = exports$1.encodeXtzAddress = void 0;
76677
- const utils_1 = /*@__PURE__*/ requireUtils$a();
76678
+ const utils_1 = /*@__PURE__*/ requireUtils$9();
76678
76679
  const base58_js_1 = requireBase58();
76679
76680
  const name = "xtz";
76680
76681
  const coinType = 1729;
@@ -76800,7 +76801,7 @@ function requireZen () {
76800
76801
  (function (exports$1) {
76801
76802
  Object.defineProperty(exports$1, "__esModule", { value: true });
76802
76803
  exports$1.zen = exports$1.decodeZenAddress = exports$1.encodeZenAddress = void 0;
76803
- const utils_1 = /*@__PURE__*/ requireUtils$2();
76804
+ const utils_1 = /*@__PURE__*/ requireUtils$1();
76804
76805
  const base58_js_1 = requireBase58();
76805
76806
  const name = "zen";
76806
76807
  const coinType = 121;
@@ -87701,13 +87702,13 @@ function requireSrc () {
87701
87702
  return src;
87702
87703
  }
87703
87704
 
87704
- var hasRequiredUtils$1;
87705
+ var hasRequiredUtils;
87705
87706
 
87706
- function requireUtils$1 () {
87707
- if (hasRequiredUtils$1) return utils$3;
87708
- hasRequiredUtils$1 = 1;
87709
- Object.defineProperty(utils$3, "__esModule", { value: true });
87710
- utils$3.convertEnsRecordsToResolverData = void 0;
87707
+ function requireUtils () {
87708
+ if (hasRequiredUtils) return utils$2;
87709
+ hasRequiredUtils = 1;
87710
+ Object.defineProperty(utils$2, "__esModule", { value: true });
87711
+ utils$2.convertEnsRecordsToResolverData = void 0;
87711
87712
  const viem_1 = viem;
87712
87713
  const address_encoder_1 = /*@__PURE__*/ requireCjs();
87713
87714
  const address_records_1 = requireAddressRecords();
@@ -87786,8 +87787,8 @@ function requireUtils$1 () {
87786
87787
  }
87787
87788
  return resolverData;
87788
87789
  };
87789
- utils$3.convertEnsRecordsToResolverData = convertEnsRecordsToResolverData;
87790
- return utils$3;
87790
+ utils$2.convertEnsRecordsToResolverData = convertEnsRecordsToResolverData;
87791
+ return utils$2;
87791
87792
  }
87792
87793
 
87793
87794
  var hasRequiredMintClient;
@@ -87803,10 +87804,10 @@ function requireMintClient () {
87803
87804
  const axios_1 = __importDefault(/*@__PURE__*/ requireAxios());
87804
87805
  const env_1 = requireEnv();
87805
87806
  const viem_1 = viem;
87806
- const chains_1 = requireChains$1();
87807
+ const chains_1 = requireChains();
87807
87808
  const abi_1 = requireAbi();
87808
- const addresses_1 = requireDist$2();
87809
- const utils_1 = requireUtils$1();
87809
+ const addresses_1 = requireDist$1();
87810
+ const utils_1 = requireUtils();
87810
87811
  // Listing cache time
87811
87812
  // 15 minutes
87812
87813
  const DEFAULT_LISTING_CACHE = 15 * 60 * 1000;
@@ -88017,11 +88018,11 @@ function requireContenthashRecord () {
88017
88018
  return contenthashRecord;
88018
88019
  }
88019
88020
 
88020
- var hasRequiredDist$1;
88021
+ var hasRequiredDist;
88021
88022
 
88022
- function requireDist$1 () {
88023
- if (hasRequiredDist$1) return dist$1;
88024
- hasRequiredDist$1 = 1;
88023
+ function requireDist () {
88024
+ if (hasRequiredDist) return dist;
88025
+ hasRequiredDist = 1;
88025
88026
  (function (exports$1) {
88026
88027
  Object.defineProperty(exports$1, "__esModule", { value: true });
88027
88028
  exports$1.ContenthashType = exports$1.ChainName = exports$1.createMintClient = void 0;
@@ -88031,18 +88032,18 @@ function requireDist$1 () {
88031
88032
  Object.defineProperty(exports$1, "ChainName", { enumerable: true, get: function () { return address_records_1.ChainName; } });
88032
88033
  var contenthash_record_1 = requireContenthashRecord();
88033
88034
  Object.defineProperty(exports$1, "ContenthashType", { enumerable: true, get: function () { return contenthash_record_1.ContenthashType; } });
88034
- } (dist$1));
88035
- return dist$1;
88035
+ } (dist));
88036
+ return dist;
88036
88037
  }
88037
88038
 
88038
- var distExports$1 = requireDist$1();
88039
+ var distExports = requireDist();
88039
88040
 
88040
88041
  const LIST_MANAGER_API = "https://list-manager.namespace.ninja";
88041
88042
  const LIST_MANAGER_TESTNET_API = "https://staging.list-manager.namespace.ninja";
88042
88043
  const useMintManager = ({ isTestnet }) => {
88043
88044
  const mintClient = useMemo(() => {
88044
88045
  console.info(`Creating a mint clinet, testnet: ${isTestnet}`);
88045
- return distExports$1.createMintClient({
88046
+ return distExports.createMintClient({
88046
88047
  cursomRpcUrls: {},
88047
88048
  isTestnet: isTestnet || false
88048
88049
  });
@@ -88125,1277 +88126,10 @@ const useMintSubname = ({ chainId }) => {
88125
88126
  };
88126
88127
  };
88127
88128
 
88128
- var dist = {};
88129
-
88130
- var offchainClient = {};
88131
-
88132
- var privateActions = {};
88133
-
88134
- var utils = {};
88135
-
88136
- var dto = {};
88137
-
88138
- var chains = {};
88139
-
88140
- var hasRequiredChains;
88141
-
88142
- function requireChains () {
88143
- if (hasRequiredChains) return chains;
88144
- hasRequiredChains = 1;
88145
- (function (exports$1) {
88146
- Object.defineProperty(exports$1, "__esModule", { value: true });
88147
- exports$1.getCoinType = exports$1.chainMetadata = exports$1.ChainName = void 0;
88148
- /**
88149
- * Supported blockchain networks for address records.
88150
- * Each chain has a corresponding coin type used internally for ENS address records.
88151
- *
88152
- * @example
88153
- * ```typescript
88154
- * import { ChainName } from '@thenamespace/offchain-manager';
88155
- *
88156
- * // Use in address records
88157
- * const addressRecord = {
88158
- * chain: ChainName.Ethereum,
88159
- * value: '0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045'
88160
- * };
88161
- * ```
88162
- */
88163
- var ChainName;
88164
- (function (ChainName) {
88165
- /** Ethereum mainnet */
88166
- ChainName["Ethereum"] = "eth";
88167
- /** Default (EVM-compatible) */
88168
- ChainName["Default"] = "default";
88169
- /** Solana */
88170
- ChainName["Solana"] = "sol";
88171
- /** Arbitrum One */
88172
- ChainName["Arbitrum"] = "arb";
88173
- /** Optimism */
88174
- ChainName["Optimism"] = "op";
88175
- /** Base */
88176
- ChainName["Base"] = "base";
88177
- /** Polygon (formerly Matic) */
88178
- ChainName["Polygon"] = "polygon";
88179
- /** BNB Smart Chain (formerly BSC) */
88180
- ChainName["Bsc"] = "bsc";
88181
- /** Avalanche C-Chain */
88182
- ChainName["Avalanche"] = "avax";
88183
- /** Gnosis Chain (formerly xDai) */
88184
- ChainName["Gnosis"] = "gnosis";
88185
- /** zkSync Era */
88186
- ChainName["Zksync"] = "zksync";
88187
- /** Cosmos Hub */
88188
- ChainName["Cosmos"] = "cosmos";
88189
- /** NEAR Protocol */
88190
- ChainName["Near"] = "near";
88191
- /** Linea */
88192
- ChainName["Linea"] = "linea";
88193
- /** Scroll */
88194
- ChainName["Scroll"] = "scroll";
88195
- /** Bitcoin */
88196
- ChainName["Bitcoin"] = "btc";
88197
- /** Starknet */
88198
- ChainName["Starknet"] = "starknet";
88199
- /** Sui Network */
88200
- ChainName["Sui"] = "sui";
88201
- /** Unichain */
88202
- ChainName["Unichain"] = "unichain";
88203
- /** Berachain */
88204
- ChainName["Berachain"] = "berachain";
88205
- /** WorldChain */
88206
- ChainName["WorldChain"] = "world_chain";
88207
- /** Zora */
88208
- ChainName["Zora"] = "zora";
88209
- /** Celo */
88210
- ChainName["Celo"] = "celo";
88211
- /** Aptos */
88212
- ChainName["Aptos"] = "aptos";
88213
- /** Algorand */
88214
- ChainName["Algorand"] = "algorand";
88215
- /** Monad */
88216
- ChainName["Monad"] = "monad";
88217
- /** Push Chain */
88218
- ChainName["Push"] = "push";
88219
- })(ChainName || (exports$1.ChainName = ChainName = {}));
88220
- exports$1.chainMetadata = {
88221
- eth: {
88222
- label: "Ethereum",
88223
- coin: 60,
88224
- evm: true,
88225
- },
88226
- default: {
88227
- label: "Default",
88228
- coin: 2147483648,
88229
- evm: true,
88230
- },
88231
- base: {
88232
- label: "Base",
88233
- coin: 8453,
88234
- evm: true,
88235
- },
88236
- op: {
88237
- label: "Optimism",
88238
- coin: 10,
88239
- evm: true,
88240
- },
88241
- arb: {
88242
- label: "Arbitrum",
88243
- coin: 42161,
88244
- evm: true,
88245
- },
88246
- bsc: {
88247
- label: "BNB",
88248
- coin: 56,
88249
- evm: true,
88250
- },
88251
- polygon: {
88252
- label: "Polygon",
88253
- coin: 137,
88254
- evm: true,
88255
- },
88256
- avax: {
88257
- label: "Avax",
88258
- coin: 43114,
88259
- evm: true,
88260
- },
88261
- gnosis: {
88262
- label: "Gnosis",
88263
- coin: 100,
88264
- evm: true,
88265
- },
88266
- zksync: {
88267
- label: "ZkSync",
88268
- coin: 324,
88269
- evm: true,
88270
- },
88271
- starknet: {
88272
- label: "Starknet",
88273
- coin: 9004,
88274
- },
88275
- sol: {
88276
- label: "Solana",
88277
- coin: 501,
88278
- },
88279
- btc: {
88280
- label: "Bitcoin",
88281
- coin: 0,
88282
- },
88283
- cosmos: {
88284
- label: "Cosmos",
88285
- coin: 118,
88286
- },
88287
- near: {
88288
- label: "Near",
88289
- coin: 397,
88290
- },
88291
- linea: {
88292
- label: "Linea",
88293
- coin: 59144,
88294
- evm: true,
88295
- },
88296
- scroll: {
88297
- label: "Scroll",
88298
- coin: 534352,
88299
- evm: true,
88300
- },
88301
- sui: {
88302
- label: "Sui",
88303
- coin: 784,
88304
- },
88305
- unichain: {
88306
- label: "Unichain",
88307
- coin: 130,
88308
- evm: true,
88309
- },
88310
- berachain: {
88311
- label: "Berachain",
88312
- coin: 80094,
88313
- evm: true,
88314
- },
88315
- world_chain: {
88316
- label: "WorldChain",
88317
- coin: 480,
88318
- evm: true,
88319
- },
88320
- zora: {
88321
- label: "Zora",
88322
- coin: 7777777,
88323
- evm: true,
88324
- },
88325
- celo: {
88326
- label: "Celo",
88327
- coin: 42220,
88328
- evm: true,
88329
- },
88330
- aptos: {
88331
- label: "Aptos",
88332
- coin: 22,
88333
- },
88334
- algorand: {
88335
- label: "Algorand",
88336
- coin: 8,
88337
- },
88338
- monad: {
88339
- label: "Monad",
88340
- coin: 143,
88341
- evm: true,
88342
- },
88343
- push: {
88344
- label: "Push Chain",
88345
- coin: 42101,
88346
- evm: true,
88347
- },
88348
- };
88349
- /**
88350
- * Get the SLIP-0044 coin type for a given blockchain network.
88351
- * This coin type is used internally for ENS address records.
88352
- *
88353
- * @param chain - The blockchain network to get the coin type for
88354
- * @returns The SLIP-0044 coin type number
88355
- *
88356
- * @example
88357
- * ```typescript
88358
- * import { getCoinType, ChainName } from '@thenamespace/offchain-manager';
88359
- *
88360
- * const ethCoinType = getCoinType(ChainName.Ethereum); // Returns 60
88361
- * const baseCoinType = getCoinType(ChainName.Base); // Returns 8453
88362
- * ```
88363
- */
88364
- const getCoinType = (chain) => {
88365
- return exports$1.chainMetadata[chain].coin;
88366
- };
88367
- exports$1.getCoinType = getCoinType;
88368
- } (chains));
88369
- return chains;
88370
- }
88371
-
88372
- var createSubnameRequest_dto = {};
88373
-
88374
- var hasRequiredCreateSubnameRequest_dto;
88375
-
88376
- function requireCreateSubnameRequest_dto () {
88377
- if (hasRequiredCreateSubnameRequest_dto) return createSubnameRequest_dto;
88378
- hasRequiredCreateSubnameRequest_dto = 1;
88379
- Object.defineProperty(createSubnameRequest_dto, "__esModule", { value: true });
88380
- return createSubnameRequest_dto;
88381
- }
88382
-
88383
- var subname_dto = {};
88384
-
88385
- var hasRequiredSubname_dto;
88386
-
88387
- function requireSubname_dto () {
88388
- if (hasRequiredSubname_dto) return subname_dto;
88389
- hasRequiredSubname_dto = 1;
88390
- Object.defineProperty(subname_dto, "__esModule", { value: true });
88391
- return subname_dto;
88392
- }
88393
-
88394
- var updateSubnameRequest_dto = {};
88395
-
88396
- var hasRequiredUpdateSubnameRequest_dto;
88397
-
88398
- function requireUpdateSubnameRequest_dto () {
88399
- if (hasRequiredUpdateSubnameRequest_dto) return updateSubnameRequest_dto;
88400
- hasRequiredUpdateSubnameRequest_dto = 1;
88401
- Object.defineProperty(updateSubnameRequest_dto, "__esModule", { value: true });
88402
- return updateSubnameRequest_dto;
88403
- }
88404
-
88405
- var hasRequiredDto;
88406
-
88407
- function requireDto () {
88408
- if (hasRequiredDto) return dto;
88409
- hasRequiredDto = 1;
88410
- (function (exports$1) {
88411
- var __createBinding = (dto && dto.__createBinding) || (Object.create ? (function(o, m, k, k2) {
88412
- if (k2 === undefined) k2 = k;
88413
- var desc = Object.getOwnPropertyDescriptor(m, k);
88414
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
88415
- desc = { enumerable: true, get: function() { return m[k]; } };
88416
- }
88417
- Object.defineProperty(o, k2, desc);
88418
- }) : (function(o, m, k, k2) {
88419
- if (k2 === undefined) k2 = k;
88420
- o[k2] = m[k];
88421
- }));
88422
- var __exportStar = (dto && dto.__exportStar) || function(m, exports$1) {
88423
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports$1, p)) __createBinding(exports$1, m, p);
88424
- };
88425
- Object.defineProperty(exports$1, "__esModule", { value: true });
88426
- __exportStar(requireChains(), exports$1);
88427
- __exportStar(requireCreateSubnameRequest_dto(), exports$1);
88428
- __exportStar(requireSubname_dto(), exports$1);
88429
- __exportStar(requireUpdateSubnameRequest_dto(), exports$1);
88430
- } (dto));
88431
- return dto;
88432
- }
88433
-
88434
- var hasRequiredUtils;
88435
-
88436
- function requireUtils () {
88437
- if (hasRequiredUtils) return utils;
88438
- hasRequiredUtils = 1;
88439
- Object.defineProperty(utils, "__esModule", { value: true });
88440
- utils.subnameResponseToRequest = utils.mapAddrMapToAddressRecords = utils.mapTextMapToTextRecords = utils.mapAddressesToInternal = void 0;
88441
- const dto_1 = requireDto();
88442
- const mapAddressesToInternal = (addrs) => {
88443
- const _addr = addrs.map((addr) => {
88444
- const _internalAddr = {
88445
- coin: (0, dto_1.getCoinType)(addr.chain),
88446
- value: addr.value,
88447
- };
88448
- return _internalAddr;
88449
- });
88450
- return _addr;
88451
- };
88452
- utils.mapAddressesToInternal = mapAddressesToInternal;
88453
- const mapTextMapToTextRecords = (txtMap) => {
88454
- return Object.keys(txtMap).map((txtKey) => {
88455
- return {
88456
- key: txtKey,
88457
- value: txtMap[txtKey],
88458
- };
88459
- });
88460
- };
88461
- utils.mapTextMapToTextRecords = mapTextMapToTextRecords;
88462
- const mapAddrMapToAddressRecords = (addrMap) => {
88463
- return Object.keys(addrMap).map((addrKey) => {
88464
- return {
88465
- coin: parseInt(addrKey),
88466
- value: addrMap[addrKey],
88467
- };
88468
- });
88469
- };
88470
- utils.mapAddrMapToAddressRecords = mapAddrMapToAddressRecords;
88471
- const subnameResponseToRequest = (response) => {
88472
- const addrs = [];
88473
- const texts = [];
88474
- if (response.addresses) {
88475
- Object.keys(response.addresses).forEach((addrCoin) => {
88476
- try {
88477
- const coin = parseInt(addrCoin);
88478
- const value = response.addresses[addrCoin];
88479
- addrs.push({ coin: coin, value: value });
88480
- }
88481
- catch (err) { }
88482
- });
88483
- }
88484
- if (response.texts) {
88485
- Object.keys(response.texts).forEach((txt) => {
88486
- texts.push({
88487
- key: txt,
88488
- value: response.texts[txt],
88489
- });
88490
- });
88491
- }
88492
- return {
88493
- label: response.label,
88494
- parentName: response.parentName,
88495
- addresses: addrs,
88496
- texts: texts,
88497
- contenthash: response.contenthash,
88498
- metadata: Object.keys(response.metadata || {}).map((data) => {
88499
- return {
88500
- key: data,
88501
- value: response.metadata[data],
88502
- };
88503
- }),
88504
- ttl: response.ttl,
88505
- };
88506
- };
88507
- utils.subnameResponseToRequest = subnameResponseToRequest;
88508
- return utils;
88509
- }
88510
-
88511
- var publicActions = {};
88512
-
88513
- var hasRequiredPublicActions;
88514
-
88515
- function requirePublicActions () {
88516
- if (hasRequiredPublicActions) return publicActions;
88517
- hasRequiredPublicActions = 1;
88518
- Object.defineProperty(publicActions, "__esModule", { value: true });
88519
- publicActions._getFilteredSubnames = publicActions._getSingleSubname = publicActions._getDataRecord = publicActions._getDataRecords = publicActions._getTextRecord = publicActions._getTextRecords = publicActions._isSubnameAvailable = void 0;
88520
- const axios_1 = /*@__PURE__*/ requireAxios();
88521
- const _isSubnameAvailable = async (client, fullSubname) => {
88522
- try {
88523
- const { data } = await client.get(`/api/v1/subnames/${fullSubname}`);
88524
- return { isAvailable: !data };
88525
- }
88526
- catch (err) {
88527
- if (err instanceof axios_1.AxiosError) {
88528
- const axiosErr = err;
88529
- if (axiosErr.response?.status === 404) {
88530
- return { isAvailable: true };
88531
- }
88532
- }
88533
- throw err;
88534
- }
88535
- };
88536
- publicActions._isSubnameAvailable = _isSubnameAvailable;
88537
- const _getTextRecords = async (client, fullSubname) => {
88538
- const subname = await client
88539
- .get(`/api/v1/subnames/${fullSubname}`)
88540
- .then((res) => res.data);
88541
- return subname.texts;
88542
- };
88543
- publicActions._getTextRecords = _getTextRecords;
88544
- const _getTextRecord = async (client, fullSubname, key) => {
88545
- const subname = await client
88546
- .get(`/api/v1/subnames/${fullSubname}`)
88547
- .then((res) => res.data);
88548
- return { record: subname.texts[key] };
88549
- };
88550
- publicActions._getTextRecord = _getTextRecord;
88551
- const _getDataRecords = async (client, fullSubname) => {
88552
- const subname = await client
88553
- .get(`/api/v1/subnames/${fullSubname}`)
88554
- .then((res) => res.data);
88555
- return subname.metadata;
88556
- };
88557
- publicActions._getDataRecords = _getDataRecords;
88558
- const _getDataRecord = async (client, fullSubname, key) => {
88559
- const subname = await client
88560
- .get(`/api/v1/subnames/${fullSubname}`)
88561
- .then((res) => res.data);
88562
- return { record: subname.metadata[key] };
88563
- };
88564
- publicActions._getDataRecord = _getDataRecord;
88565
- const _getSingleSubname = (client, fullSubname) => {
88566
- return client
88567
- .get(`/api/v1/subnames/${fullSubname}`)
88568
- .then((res) => res.data);
88569
- };
88570
- publicActions._getSingleSubname = _getSingleSubname;
88571
- const _getFilteredSubnames = async (client, query) => {
88572
- if (query.parentName) {
88573
- query.parentName;
88574
- }
88575
- if (query.page) {
88576
- query.page;
88577
- }
88578
- if (query.size) {
88579
- query.size;
88580
- }
88581
- if (query.parentNames && query.parentNames.length > 0) {
88582
- query.parentNames;
88583
- }
88584
- if (query.labelSearch) {
88585
- query.labelSearch;
88586
- }
88587
- if (query.metadata) {
88588
- JSON.stringify(query.metadata);
88589
- }
88590
- return client
88591
- .post(`/api/v1/subnames/search`, query)
88592
- .then((res) => res.data);
88593
- };
88594
- publicActions._getFilteredSubnames = _getFilteredSubnames;
88595
- return publicActions;
88596
- }
88597
-
88598
- var hasRequiredPrivateActions;
88599
-
88600
- function requirePrivateActions () {
88601
- if (hasRequiredPrivateActions) return privateActions;
88602
- hasRequiredPrivateActions = 1;
88603
- Object.defineProperty(privateActions, "__esModule", { value: true });
88604
- privateActions._setDefaultEthereumAddress = privateActions._deleteDataRecord = privateActions._addDataRecord = privateActions._deleteTextRecord = privateActions._addTextRecord = privateActions._deleteSubname = privateActions._deleteAddressRecord = privateActions._addAddressRecord = privateActions._updateSubname = privateActions._createSubname = void 0;
88605
- const utils_1 = requireUtils();
88606
- const chains_1 = requireChains();
88607
- const public_actions_1 = requirePublicActions();
88608
- const AUTH_HEADER = "x-auth-token";
88609
- const _createSubname = (client, apiKey, createRequest, customHeaders) => {
88610
- const request = {
88611
- label: createRequest.label,
88612
- parentName: createRequest.parentName,
88613
- addresses: (0, utils_1.mapAddressesToInternal)(createRequest.addresses || []),
88614
- contenthash: createRequest.contenthash,
88615
- metadata: createRequest.metadata,
88616
- texts: createRequest.texts,
88617
- ttl: createRequest.ttl,
88618
- owner: createRequest.owner
88619
- };
88620
- return client.post("/api/v1/subnames", request, {
88621
- headers: createAuthorizationHeaders(apiKey, customHeaders),
88622
- });
88623
- };
88624
- privateActions._createSubname = _createSubname;
88625
- const _updateSubname = async (client, apiKey, fullSubname, updateRequest, customHeaders) => {
88626
- const subname = await (0, public_actions_1._getSingleSubname)(client, fullSubname);
88627
- const request = {
88628
- label: subname.label,
88629
- parentName: subname.parentName,
88630
- addresses: (0, utils_1.mapAddressesToInternal)(updateRequest.addresses || []),
88631
- contenthash: updateRequest.contenthash,
88632
- metadata: updateRequest.metadata,
88633
- texts: updateRequest.texts,
88634
- ttl: updateRequest.ttl,
88635
- };
88636
- return client
88637
- .post("/api/v1/subnames", request, {
88638
- headers: createAuthorizationHeaders(apiKey, customHeaders),
88639
- })
88640
- .then((res) => res.data);
88641
- };
88642
- privateActions._updateSubname = _updateSubname;
88643
- const _addAddressRecord = async (client, apiKey, fullSubname, coin, value, customHeaders) => {
88644
- const subname = await (0, public_actions_1._getSingleSubname)(client, fullSubname);
88645
- const addresses = subname.addresses || {};
88646
- addresses[coin] = value;
88647
- const _req = (0, utils_1.subnameResponseToRequest)(subname);
88648
- const request = {
88649
- ..._req,
88650
- addresses: (0, utils_1.mapAddrMapToAddressRecords)(addresses),
88651
- };
88652
- return client.post(`/api/v1/subnames`, request, {
88653
- headers: createAuthorizationHeaders(apiKey, customHeaders),
88654
- });
88655
- };
88656
- privateActions._addAddressRecord = _addAddressRecord;
88657
- const _deleteAddressRecord = async (client, apiKey, fullSubname, coin, customHeaders) => {
88658
- const subname = await (0, public_actions_1._getSingleSubname)(client, fullSubname);
88659
- const addresses = subname.addresses || {};
88660
- delete addresses[coin];
88661
- const _req = (0, utils_1.subnameResponseToRequest)(subname);
88662
- const request = {
88663
- ..._req,
88664
- addresses: (0, utils_1.mapAddrMapToAddressRecords)(addresses),
88665
- };
88666
- return client.post(`/api/v1/subnames`, request, {
88667
- headers: createAuthorizationHeaders(apiKey, customHeaders),
88668
- });
88669
- };
88670
- privateActions._deleteAddressRecord = _deleteAddressRecord;
88671
- const _deleteSubname = (client, apiKey, fullSubname, customHeaders) => {
88672
- return client.delete(`/api/v1/subnames/${fullSubname}`, {
88673
- headers: createAuthorizationHeaders(apiKey, customHeaders),
88674
- });
88675
- };
88676
- privateActions._deleteSubname = _deleteSubname;
88677
- const _addTextRecord = async (client, apiKey, fullSubname, key, value, customHeaders) => {
88678
- const subname = await (0, public_actions_1._getSingleSubname)(client, fullSubname);
88679
- const _req = (0, utils_1.subnameResponseToRequest)(subname);
88680
- const texts = subname.texts || {};
88681
- texts[key] = value;
88682
- const request = {
88683
- ..._req,
88684
- texts: (0, utils_1.mapTextMapToTextRecords)(texts),
88685
- };
88686
- return client.post(`/api/v1/subnames`, request, {
88687
- headers: createAuthorizationHeaders(apiKey, customHeaders),
88688
- });
88689
- };
88690
- privateActions._addTextRecord = _addTextRecord;
88691
- const _deleteTextRecord = async (client, apiKey, fullSubname, key, customHeaders) => {
88692
- const subname = await (0, public_actions_1._getSingleSubname)(client, fullSubname);
88693
- const texts = subname.texts || {};
88694
- delete texts[key];
88695
- const _req = (0, utils_1.subnameResponseToRequest)(subname);
88696
- const request = {
88697
- ..._req,
88698
- texts: (0, utils_1.mapTextMapToTextRecords)(texts),
88699
- };
88700
- return client.post(`/api/v1/subnames`, request, {
88701
- headers: createAuthorizationHeaders(apiKey, customHeaders),
88702
- });
88703
- };
88704
- privateActions._deleteTextRecord = _deleteTextRecord;
88705
- const _addDataRecord = async (client, apiKey, fullSubname, key, value, customHeaders) => {
88706
- const subname = await (0, public_actions_1._getSingleSubname)(client, fullSubname);
88707
- const metadata = subname.metadata || {};
88708
- metadata[key] = value;
88709
- const _req = (0, utils_1.subnameResponseToRequest)(subname);
88710
- const request = {
88711
- ..._req,
88712
- metadata: (0, utils_1.mapTextMapToTextRecords)(metadata),
88713
- };
88714
- return client.post(`/api/v1/subnames`, request, {
88715
- headers: createAuthorizationHeaders(apiKey, customHeaders),
88716
- });
88717
- };
88718
- privateActions._addDataRecord = _addDataRecord;
88719
- const _deleteDataRecord = async (client, apiKey, fullSubname, key, customHeaders) => {
88720
- const subname = await client
88721
- .get(`/api/v1/subnames/${fullSubname}`, {
88722
- headers: customHeaders,
88723
- })
88724
- .then((res) => res.data);
88725
- const updatedData = Object.entries(subname.metadata)
88726
- .filter(([dataKey]) => dataKey !== key)
88727
- .map(([dataKey, dataValue]) => ({ key: dataKey, value: dataValue }));
88728
- const _req = (0, utils_1.subnameResponseToRequest)(subname);
88729
- const request = {
88730
- ..._req,
88731
- metadata: updatedData,
88732
- };
88733
- return client.post(`/api/v1/subnames`, request, {
88734
- headers: createAuthorizationHeaders(apiKey, customHeaders),
88735
- });
88736
- };
88737
- privateActions._deleteDataRecord = _deleteDataRecord;
88738
- const _setDefaultEthereumAddress = async (client, apiKey, fullSubname, value, customHeaders) => {
88739
- const subname = await (0, public_actions_1._getSingleSubname)(client, fullSubname);
88740
- const addresses = subname.addresses || {};
88741
- // Derive EVM chains from shared chainMetadata (evm=true)
88742
- Object.values(chains_1.chainMetadata)
88743
- .filter((meta) => meta.evm)
88744
- .forEach((meta) => {
88745
- addresses[meta.coin] = value;
88746
- });
88747
- const _req = (0, utils_1.subnameResponseToRequest)(subname);
88748
- const request = {
88749
- ..._req,
88750
- addresses: (0, utils_1.mapAddrMapToAddressRecords)(addresses),
88751
- };
88752
- return client.post(`/api/v1/subnames`, request, {
88753
- headers: createAuthorizationHeaders(apiKey, customHeaders),
88754
- });
88755
- };
88756
- privateActions._setDefaultEthereumAddress = _setDefaultEthereumAddress;
88757
- const createAuthorizationHeaders = (apiKey, customHeaders) => {
88758
- const base = {
88759
- [AUTH_HEADER]: `${apiKey}`,
88760
- };
88761
- if (!customHeaders) {
88762
- return base;
88763
- }
88764
- // NOTE: If customHeaders includes the same auth header key (x-auth-token),
88765
- // it will explicitly override the API key value.
88766
- return {
88767
- ...base,
88768
- ...customHeaders,
88769
- };
88770
- };
88771
- return privateActions;
88772
- }
88773
-
88774
- var hasRequiredOffchainClient;
88775
-
88776
- function requireOffchainClient () {
88777
- if (hasRequiredOffchainClient) return offchainClient;
88778
- hasRequiredOffchainClient = 1;
88779
- var __createBinding = (offchainClient && offchainClient.__createBinding) || (Object.create ? (function(o, m, k, k2) {
88780
- if (k2 === undefined) k2 = k;
88781
- var desc = Object.getOwnPropertyDescriptor(m, k);
88782
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
88783
- desc = { enumerable: true, get: function() { return m[k]; } };
88784
- }
88785
- Object.defineProperty(o, k2, desc);
88786
- }) : (function(o, m, k, k2) {
88787
- if (k2 === undefined) k2 = k;
88788
- o[k2] = m[k];
88789
- }));
88790
- var __setModuleDefault = (offchainClient && offchainClient.__setModuleDefault) || (Object.create ? (function(o, v) {
88791
- Object.defineProperty(o, "default", { enumerable: true, value: v });
88792
- }) : function(o, v) {
88793
- o["default"] = v;
88794
- });
88795
- var __importStar = (offchainClient && offchainClient.__importStar) || (function () {
88796
- var ownKeys = function(o) {
88797
- ownKeys = Object.getOwnPropertyNames || function (o) {
88798
- var ar = [];
88799
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
88800
- return ar;
88801
- };
88802
- return ownKeys(o);
88803
- };
88804
- return function (mod) {
88805
- if (mod && mod.__esModule) return mod;
88806
- var result = {};
88807
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
88808
- __setModuleDefault(result, mod);
88809
- return result;
88810
- };
88811
- })();
88812
- Object.defineProperty(offchainClient, "__esModule", { value: true });
88813
- offchainClient.createOffchainClient = void 0;
88814
- const axios_1 = __importStar(/*@__PURE__*/ requireAxios());
88815
- const private_actions_1 = requirePrivateActions();
88816
- const public_actions_1 = requirePublicActions();
88817
- const dto_1 = requireDto();
88818
- /** Backend URI mappings for different network modes */
88819
- const backendUris = {
88820
- mainnet: "https://offchain-manager.namespace.ninja",
88821
- sepolia: "https://staging.offchain-manager.namespace.ninja",
88822
- };
88823
- class HttpOffchainClient {
88824
- constructor(config = {}) {
88825
- this.config = config;
88826
- this.apiKeys = {};
88827
- this.fetchApiKeyForName = (name, isSubname = true) => {
88828
- const extractParent = () => {
88829
- const split = name.split(".");
88830
- const splitLen = split.length;
88831
- if (splitLen < 2) {
88832
- throw Error(`Invalid ENS name: ${name}`);
88833
- }
88834
- if (splitLen === 2) {
88835
- return name;
88836
- }
88837
- return split[splitLen - 2] + "." + split[splitLen - 1];
88838
- };
88839
- let parentName = isSubname ? extractParent() : name;
88840
- if (this.apiKeys[parentName]) {
88841
- return this.apiKeys[parentName];
88842
- }
88843
- if (this.defaultApiKey) {
88844
- return this.defaultApiKey;
88845
- }
88846
- throw new Error(`Api key is not present for name: ${parentName}. Use setApiKey() or setDefaultApiKey() to configure authentication.`);
88847
- };
88848
- const mode = config.mode || "mainnet";
88849
- const uri = config.backendUri || backendUris[mode];
88850
- this.HTTP = axios_1.default.create({
88851
- ...this.config,
88852
- baseURL: uri,
88853
- });
88854
- // Initialize authentication from config if provided
88855
- if (config.defaultApiKey) {
88856
- this.setDefaultApiKey(config.defaultApiKey);
88857
- }
88858
- if (config.domainApiKeys) {
88859
- for (const [ensName, apiKey] of Object.entries(config.domainApiKeys)) {
88860
- this.setApiKey(ensName, apiKey);
88861
- }
88862
- }
88863
- if (config.customHeaders) {
88864
- this.setCustomHeaders(config.customHeaders);
88865
- }
88866
- }
88867
- async updateSubname(subname, request) {
88868
- return (0, private_actions_1._updateSubname)(this.HTTP, this.fetchApiKeyForName(subname), subname, request, this.customHeaders);
88869
- }
88870
- async addAddressRecord(subname, chain, value) {
88871
- const coin = (0, dto_1.getCoinType)(chain);
88872
- if (coin === undefined) {
88873
- throw Error(`Unsupported address: ${chain}`);
88874
- }
88875
- await (0, private_actions_1._addAddressRecord)(this.HTTP, this.fetchApiKeyForName(subname), subname, coin, value, this.customHeaders);
88876
- }
88877
- async deleteAddressRecord(subname, chain) {
88878
- const coin = (0, dto_1.getCoinType)(chain);
88879
- if (coin === undefined) {
88880
- throw Error(`Unsupported address: ${chain}`);
88881
- }
88882
- await (0, private_actions_1._deleteAddressRecord)(this.HTTP, this.fetchApiKeyForName(subname), subname, coin, this.customHeaders);
88883
- }
88884
- async setDefaultEvmAddress(subname, value) {
88885
- await (0, private_actions_1._setDefaultEthereumAddress)(this.HTTP, this.fetchApiKeyForName(subname), subname, value, this.customHeaders);
88886
- }
88887
- async getSingleSubname(fullSubname) {
88888
- try {
88889
- return (0, public_actions_1._getSingleSubname)(this.HTTP, fullSubname);
88890
- }
88891
- catch (err) {
88892
- if (err instanceof axios_1.AxiosError) {
88893
- const axiosErr = err;
88894
- if (axiosErr.response?.status === 404) {
88895
- return null;
88896
- }
88897
- }
88898
- throw err;
88899
- }
88900
- }
88901
- async getTextRecords(fullSubname) {
88902
- return await (0, public_actions_1._getTextRecords)(this.HTTP, fullSubname);
88903
- }
88904
- async getTextRecord(fullSubname, key) {
88905
- return await (0, public_actions_1._getTextRecord)(this.HTTP, fullSubname, key);
88906
- }
88907
- async getDataRecords(fullSubname) {
88908
- return await (0, public_actions_1._getDataRecords)(this.HTTP, fullSubname);
88909
- }
88910
- async getDataRecord(fullSubname, key) {
88911
- return await (0, public_actions_1._getDataRecord)(this.HTTP, fullSubname, key);
88912
- }
88913
- async isSubnameAvailable(fullSubname) {
88914
- return await (0, public_actions_1._isSubnameAvailable)(this.HTTP, fullSubname);
88915
- }
88916
- async createSubname(request) {
88917
- await (0, private_actions_1._createSubname)(this.HTTP, this.fetchApiKeyForName(request.parentName, false), request, this.customHeaders);
88918
- }
88919
- async deleteSubname(fullSubname) {
88920
- await (0, private_actions_1._deleteSubname)(this.HTTP, this.fetchApiKeyForName(fullSubname), fullSubname, this.customHeaders);
88921
- }
88922
- async addTextRecord(subname, key, value) {
88923
- await (0, private_actions_1._addTextRecord)(this.HTTP, this.fetchApiKeyForName(subname), subname, key, value, this.customHeaders);
88924
- }
88925
- async deleteTextRecord(fullSubname, key) {
88926
- await (0, private_actions_1._deleteTextRecord)(this.HTTP, this.fetchApiKeyForName(fullSubname), fullSubname, key, this.customHeaders);
88927
- }
88928
- async addDataRecord(subname, key, value) {
88929
- await (0, private_actions_1._addDataRecord)(this.HTTP, this.fetchApiKeyForName(subname), subname, key, value, this.customHeaders);
88930
- }
88931
- async deleteDataRecord(fullSubname, key) {
88932
- await (0, private_actions_1._deleteDataRecord)(this.HTTP, this.fetchApiKeyForName(fullSubname), fullSubname, key, this.customHeaders);
88933
- }
88934
- async getFilteredSubnames(query) {
88935
- return (0, public_actions_1._getFilteredSubnames)(this.HTTP, query);
88936
- }
88937
- setCustomHeaders(headers) {
88938
- this.customHeaders = headers || {};
88939
- // Apply custom headers as Axios defaults so they are sent with all requests
88940
- this.HTTP.defaults.headers.common = {
88941
- ...(this.HTTP.defaults.headers.common || {}),
88942
- ...this.customHeaders,
88943
- };
88944
- }
88945
- setApiKey(ensName, apiKey) {
88946
- this.apiKeys[ensName] = apiKey;
88947
- }
88948
- setDefaultApiKey(apiKey) {
88949
- this.defaultApiKey = apiKey;
88950
- }
88951
- }
88952
- /**
88953
- * Create a new OffchainClient instance for managing ENS subnames.
88954
- *
88955
- * @param config - Optional configuration options including network mode, HTTP settings, and API keys
88956
- * @returns A configured OffchainClient instance
88957
- *
88958
- * @example
88959
- * ```typescript
88960
- * import { createOffchainClient } from '@thenamespace/offchain-manager';
88961
- *
88962
- * // 1. No-arg initialization (defaults to mainnet)
88963
- * const client = createOffchainClient();
88964
- *
88965
- * // 2. Configure network mode
88966
- * const client = createOffchainClient({ mode: 'sepolia' });
88967
- *
88968
- * // 3. Initialize with address-based API key (works with all your ENS domains)
88969
- * const client = createOffchainClient({
88970
- * mode: 'sepolia',
88971
- * defaultApiKey: 'your-address-based-api-key'
88972
- * });
88973
- *
88974
- * // 4. Initialize with domain-based API keys (for specific ENS domains)
88975
- * const client = createOffchainClient({
88976
- * mode: 'sepolia',
88977
- * domainApiKeys: {
88978
- * 'example.eth': 'your-domain-based-api-key',
88979
- * 'test.eth': 'another-domain-key'
88980
- * }
88981
- * });
88982
- *
88983
- * // 5. Initialize with both default and domain API keys
88984
- * const client = createOffchainClient({
88985
- * mode: 'sepolia',
88986
- * defaultApiKey: 'your-address-based-api-key',
88987
- * domainApiKeys: {
88988
- * 'example.eth': 'your-domain-based-api-key'
88989
- * }
88990
- * });
88991
- *
88992
- * // You can also set/update keys after initialization
88993
- * client.setDefaultApiKey('your-api-key');
88994
- * client.setApiKey('example.eth', 'your-domain-key');
88995
- * ```
88996
- */
88997
- const createOffchainClient = (config = {}) => {
88998
- return new HttpOffchainClient(config);
88999
- };
89000
- offchainClient.createOffchainClient = createOffchainClient;
89001
- return offchainClient;
89002
- }
89003
-
89004
- var validation = {};
89005
-
89006
- var errors = {};
89007
-
89008
- var hasRequiredErrors;
89009
-
89010
- function requireErrors () {
89011
- if (hasRequiredErrors) return errors;
89012
- hasRequiredErrors = 1;
89013
- Object.defineProperty(errors, "__esModule", { value: true });
89014
- errors.RateLimitError = errors.SubnameAlreadyExistsError = errors.SubnameNotFoundError = errors.ValidationError = errors.AuthenticationError = errors.NamespaceSDKError = void 0;
89015
- class NamespaceSDKError extends Error {
89016
- constructor(message, code) {
89017
- super(message);
89018
- this.code = code;
89019
- this.name = 'NamespaceSDKError';
89020
- }
89021
- }
89022
- errors.NamespaceSDKError = NamespaceSDKError;
89023
- class AuthenticationError extends NamespaceSDKError {
89024
- constructor(message = 'Authentication failed. Please check your API key.') {
89025
- super(message, 'AUTH_ERROR');
89026
- this.name = 'AuthenticationError';
89027
- }
89028
- }
89029
- errors.AuthenticationError = AuthenticationError;
89030
- class ValidationError extends NamespaceSDKError {
89031
- constructor(message) {
89032
- super(message, 'VALIDATION_ERROR');
89033
- this.name = 'ValidationError';
89034
- }
89035
- }
89036
- errors.ValidationError = ValidationError;
89037
- class SubnameNotFoundError extends NamespaceSDKError {
89038
- constructor(subname) {
89039
- super(`Subname not found: ${subname}`, 'SUBDOMAIN_NOT_FOUND');
89040
- this.name = 'SubnameNotFoundError';
89041
- }
89042
- }
89043
- errors.SubnameNotFoundError = SubnameNotFoundError;
89044
- class SubnameAlreadyExistsError extends NamespaceSDKError {
89045
- constructor(subname) {
89046
- super(`Subname already exists: ${subname}`, 'SUBDOMAIN_EXISTS');
89047
- this.name = 'SubnameAlreadyExistsError';
89048
- }
89049
- }
89050
- errors.SubnameAlreadyExistsError = SubnameAlreadyExistsError;
89051
- class RateLimitError extends NamespaceSDKError {
89052
- constructor(message = 'Rate limit exceeded. Please try again later.') {
89053
- super(message, 'RATE_LIMIT');
89054
- this.name = 'RateLimitError';
89055
- }
89056
- }
89057
- errors.RateLimitError = RateLimitError;
89058
- return errors;
89059
- }
89060
-
89061
- var hasRequiredValidation;
89062
-
89063
- function requireValidation () {
89064
- if (hasRequiredValidation) return validation;
89065
- hasRequiredValidation = 1;
89066
- (function (exports$1) {
89067
- Object.defineProperty(exports$1, "__esModule", { value: true });
89068
- exports$1.validateApiKey = exports$1.validateAddress = exports$1.validateSubname = exports$1.validateEnsName = void 0;
89069
- const errors_1 = requireErrors();
89070
- const dto_1 = requireDto();
89071
- /**
89072
- * Validates that a string is a properly formatted ENS domain name.
89073
- * ENS supports many TLDs including .eth, .com, .art, .xyz, and others through ENS import.
89074
- *
89075
- * Validation follows ENS normalization rules:
89076
- * - Names must be lowercase
89077
- * - Variation selectors (U+FE00-U+FE0F) are not allowed
89078
- * - Zero-width characters are not allowed (prevents homoglyph attacks)
89079
- * - Supports emojis, accented characters, and many Unicode characters
89080
- *
89081
- * @param name - The ENS name to validate (e.g., 'example.eth', 'mysite.com', 'art.gallery.art')
89082
- * @throws {ValidationError} When the name format is invalid
89083
- *
89084
- * @example
89085
- * ```typescript
89086
- * import { validateEnsName } from '@thenamespace/offchain-manager';
89087
- *
89088
- * validateEnsName('example.eth'); // ✅ Valid
89089
- * validateEnsName('mysite.com'); // ✅ Valid (ENS supports imported domains)
89090
- * validateEnsName('gallery.art'); // ✅ Valid
89091
- * validateEnsName('sub.example.eth'); // ✅ Valid
89092
- * validateEnsName('🚀.eth'); // ✅ Valid (emojis supported)
89093
- * validateEnsName('café.eth'); // ✅ Valid (accented characters supported)
89094
- * validateEnsName('Example.eth'); // ❌ Throws ValidationError (uppercase not allowed)
89095
- * validateEnsName('invalid..domain'); // ❌ Throws ValidationError
89096
- * ```
89097
- */
89098
- const validateEnsName = (name) => {
89099
- if (!name || typeof name !== 'string') {
89100
- throw new errors_1.ValidationError('ENS name must be a non-empty string');
89101
- }
89102
- // Check for uppercase characters (ENS normalizes to lowercase)
89103
- if (name !== name.toLowerCase()) {
89104
- throw new errors_1.ValidationError(`Invalid ENS domain format: ${name}. ENS names must be lowercase.`);
89105
- }
89106
- // Check for variation selectors (U+FE00 to U+FE0F) - these are stripped in ENS normalization
89107
- const variationSelectorRegex = /[\uFE00-\uFE0F]/;
89108
- if (variationSelectorRegex.test(name)) {
89109
- throw new errors_1.ValidationError(`Invalid ENS domain format: ${name}. Variation selectors are not allowed in ENS names.`);
89110
- }
89111
- // Check for zero-width characters that could be used for homoglyph attacks
89112
- const zeroWidthChars = /[\u200B-\u200D\uFEFF\u2060]/;
89113
- if (zeroWidthChars.test(name)) {
89114
- throw new errors_1.ValidationError(`Invalid ENS domain format: ${name}. Zero-width characters are not allowed in ENS names.`);
89115
- }
89116
- // Basic domain name validation - ENS supports many characters including emojis
89117
- // Must have at least one dot and proper structure
89118
- // Allow any character except dots, and ensure proper domain structure
89119
- const domainRegex = /^[^.]+\.[^.]+(\.[^.]+)*$/;
89120
- if (!domainRegex.test(name)) {
89121
- throw new errors_1.ValidationError(`Invalid ENS domain format: ${name}. Must be a valid domain name with at least one TLD (e.g., example.eth, mysite.com, gallery.art).`);
89122
- }
89123
- // Check for invalid patterns
89124
- if (name.includes('..') || name.startsWith('.') || name.endsWith('.')) {
89125
- throw new errors_1.ValidationError(`Invalid ENS domain format: ${name}. Cannot have consecutive dots or start/end with dots.`);
89126
- }
89127
- // Check length constraints (ENS has some practical limits)
89128
- if (name.length > 253) {
89129
- throw new errors_1.ValidationError(`ENS domain name too long: ${name}. Maximum length is 253 characters.`);
89130
- }
89131
- // Check individual label lengths (max 63 characters per label)
89132
- const labels = name.split('.');
89133
- for (const label of labels) {
89134
- if (label.length === 0) {
89135
- throw new errors_1.ValidationError(`Invalid ENS domain format: ${name}. Empty labels are not allowed.`);
89136
- }
89137
- if (label.length > 63) {
89138
- throw new errors_1.ValidationError(`Invalid ENS domain format: ${name}. Label '${label}' exceeds 63 character limit.`);
89139
- }
89140
- }
89141
- };
89142
- exports$1.validateEnsName = validateEnsName;
89143
- /**
89144
- * Validates that a string is a properly formatted ENS subname.
89145
- * A subname must have at least one label before the parent domain.
89146
- * Supports all ENS-compatible TLDs (.eth, .com, .art, .xyz, etc.).
89147
- *
89148
- * @param subname - The subname to validate (e.g., 'alice.example.eth', 'app.mysite.com')
89149
- * @throws {ValidationError} When the subname format is invalid
89150
- *
89151
- * @example
89152
- * ```typescript
89153
- * import { validateSubname } from '@thenamespace/offchain-manager';
89154
- *
89155
- * validateSubname('alice.example.eth'); // ✅ Valid
89156
- * validateSubname('app.mysite.com'); // ✅ Valid
89157
- * validateSubname('user.gallery.art'); // ✅ Valid
89158
- * validateSubname('app.subdomain.example.eth'); // ✅ Valid
89159
- * validateSubname('example.eth'); // ❌ Throws ValidationError (not a subname, just 2 parts)
89160
- * validateSubname('.example.eth'); // ❌ Throws ValidationError (empty label)
89161
- * ```
89162
- */
89163
- const validateSubname = (subname) => {
89164
- if (!subname || typeof subname !== 'string') {
89165
- throw new errors_1.ValidationError('Subname must be a non-empty string');
89166
- }
89167
- // Normalize to lowercase for validation
89168
- const normalizedSubname = subname.toLowerCase();
89169
- // Subname should be in format: label.parent.tld (minimum 3 parts)
89170
- const parts = normalizedSubname.split('.');
89171
- if (parts.length < 3) {
89172
- throw new errors_1.ValidationError(`Invalid subname format: ${subname}. Expected format: label.parent.tld (e.g., alice.example.eth, app.mysite.com)`);
89173
- }
89174
- const label = parts[0];
89175
- if (!label || label.length === 0) {
89176
- throw new errors_1.ValidationError('Subname label cannot be empty');
89177
- }
89178
- // Validate the parent domain (everything after the first label)
89179
- const parent = parts.slice(1).join('.');
89180
- (0, exports$1.validateEnsName)(parent);
89181
- };
89182
- exports$1.validateSubname = validateSubname;
89183
- /**
89184
- * Validates that an address is properly formatted for the specified blockchain network.
89185
- * Each blockchain has its own address format and validation rules.
89186
- *
89187
- * @param address - The wallet address to validate
89188
- * @param chain - The blockchain network this address belongs to
89189
- * @throws {ValidationError} When the address format is invalid for the specified chain
89190
- *
89191
- * @example
89192
- * ```typescript
89193
- * import { validateAddress, ChainName } from '@thenamespace/offchain-manager';
89194
- *
89195
- * // Ethereum-style addresses (40 hex characters)
89196
- * validateAddress('0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045', ChainName.Ethereum); // ✅
89197
- * validateAddress('0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045', ChainName.Base); // ✅
89198
- *
89199
- * // Solana addresses (base58 encoded)
89200
- * validateAddress('9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM', ChainName.Solana); // ✅
89201
- *
89202
- * // NEAR addresses (.near suffix)
89203
- * validateAddress('alice.near', ChainName.Near); // ✅
89204
- *
89205
- * // Invalid examples
89206
- * validateAddress('invalid', ChainName.Ethereum); // ❌ Throws ValidationError
89207
- * validateAddress('0x123', ChainName.Ethereum); // ❌ Throws ValidationError (too short)
89208
- * ```
89209
- */
89210
- const validateAddress = (address, chain) => {
89211
- if (!address || typeof address !== 'string') {
89212
- throw new errors_1.ValidationError('Address must be a non-empty string');
89213
- }
89214
- // Basic address validation based on chain
89215
- switch (chain) {
89216
- case dto_1.ChainName.Ethereum:
89217
- case dto_1.ChainName.Default:
89218
- case dto_1.ChainName.Arbitrum:
89219
- case dto_1.ChainName.Optimism:
89220
- case dto_1.ChainName.Base:
89221
- case dto_1.ChainName.Polygon:
89222
- case dto_1.ChainName.Bsc:
89223
- case dto_1.ChainName.Avalanche:
89224
- case dto_1.ChainName.Gnosis:
89225
- case dto_1.ChainName.Zksync:
89226
- case dto_1.ChainName.Linea:
89227
- case dto_1.ChainName.Scroll:
89228
- case dto_1.ChainName.Unichain:
89229
- case dto_1.ChainName.Berachain:
89230
- case dto_1.ChainName.WorldChain:
89231
- case dto_1.ChainName.Zora:
89232
- case dto_1.ChainName.Celo:
89233
- case dto_1.ChainName.Monad:
89234
- case dto_1.ChainName.Push:
89235
- // Ethereum-style addresses (EVM chains)
89236
- if (!/^0x[a-fA-F0-9]{40}$/.test(address)) {
89237
- throw new errors_1.ValidationError(`Invalid Ethereum-style address: ${address}`);
89238
- }
89239
- break;
89240
- case dto_1.ChainName.Starknet:
89241
- // Starknet addresses are up to 64 hex characters (leading zeros can be omitted)
89242
- if (!/^0x[a-fA-F0-9]{1,64}$/.test(address)) {
89243
- throw new errors_1.ValidationError(`Invalid Starknet address: ${address}`);
89244
- }
89245
- break;
89246
- case dto_1.ChainName.Solana:
89247
- // Solana addresses are base58 encoded, typically 32-44 characters
89248
- if (!/^[1-9A-HJ-NP-Za-km-z]{32,44}$/.test(address)) {
89249
- throw new errors_1.ValidationError(`Invalid Solana address: ${address}`);
89250
- }
89251
- break;
89252
- case dto_1.ChainName.Bitcoin:
89253
- // Bitcoin addresses - supports Legacy (P2PKH), Script (P2SH), Bech32 (P2WPKH/P2WSH), and Taproot (P2TR)
89254
- const bitcoinRegex = /^([13][a-km-zA-HJ-NP-Z1-9]{25,34}|bc1[a-z0-9]{39,59})$/;
89255
- if (!bitcoinRegex.test(address)) {
89256
- throw new errors_1.ValidationError(`Invalid Bitcoin address: ${address}`);
89257
- }
89258
- break;
89259
- case dto_1.ChainName.Cosmos:
89260
- // Cosmos addresses use bech32 format with 'cosmos' prefix
89261
- if (!/^cosmos1[a-z0-9]{38}$/.test(address)) {
89262
- throw new errors_1.ValidationError(`Invalid Cosmos address: ${address}`);
89263
- }
89264
- break;
89265
- case dto_1.ChainName.Near:
89266
- // NEAR addresses: either implicit (64 hex chars) or named accounts ending with .near
89267
- const nearImplicit = /^[a-f0-9]{64}$/;
89268
- const nearNamed = /^[a-z0-9._-]+\.near$/;
89269
- if (!nearImplicit.test(address) && !nearNamed.test(address)) {
89270
- throw new errors_1.ValidationError(`Invalid NEAR address: ${address}`);
89271
- }
89272
- break;
89273
- case dto_1.ChainName.Sui:
89274
- // Sui addresses are up to 64 hex characters (leading zeros can be omitted)
89275
- if (!/^0x[a-fA-F0-9]{1,64}$/.test(address)) {
89276
- throw new errors_1.ValidationError(`Invalid Sui address: ${address}`);
89277
- }
89278
- break;
89279
- case dto_1.ChainName.Aptos:
89280
- // Aptos addresses are up to 64 hex characters (leading zeros can be omitted)
89281
- if (!/^0x[a-fA-F0-9]{1,64}$/.test(address)) {
89282
- throw new errors_1.ValidationError(`Invalid Aptos address: ${address}`);
89283
- }
89284
- break;
89285
- case dto_1.ChainName.Algorand:
89286
- // Algorand addresses are 58-character Base32 strings (A-Z, 2-7)
89287
- if (!/^[A-Z2-7]{58}$/.test(address)) {
89288
- throw new errors_1.ValidationError(`Invalid Algorand address: ${address}`);
89289
- }
89290
- break;
89291
- default:
89292
- throw new errors_1.ValidationError(`Unsupported chain: ${chain}`);
89293
- }
89294
- };
89295
- exports$1.validateAddress = validateAddress;
89296
- /**
89297
- * Validates that an API key appears to be in the correct format.
89298
- * This performs basic sanity checks but doesn't verify the key with the server.
89299
- *
89300
- * @param apiKey - The API key to validate
89301
- * @throws {ValidationError} When the API key format appears invalid
89302
- *
89303
- * @example
89304
- * ```typescript
89305
- * import { validateApiKey } from '@thenamespace/offchain-manager';
89306
- *
89307
- * validateApiKey('ns-123fcc-1126-1234-1234-c63047985fe2'); // ✅ Valid format
89308
- * validateApiKey('short'); // ❌ Throws ValidationError (too short)
89309
- * validateApiKey(''); // ❌ Throws ValidationError (empty)
89310
- * ```
89311
- */
89312
- const validateApiKey = (apiKey) => {
89313
- if (!apiKey || typeof apiKey !== 'string') {
89314
- throw new errors_1.ValidationError('API key must be a non-empty string');
89315
- }
89316
- if (apiKey.length < 10) {
89317
- throw new errors_1.ValidationError('API key appears to be too short');
89318
- }
89319
- };
89320
- exports$1.validateApiKey = validateApiKey;
89321
- } (validation));
89322
- return validation;
89323
- }
89324
-
89325
- var hasRequiredDist;
89326
-
89327
- function requireDist () {
89328
- if (hasRequiredDist) return dist;
89329
- hasRequiredDist = 1;
89330
- (function (exports$1) {
89331
- /**
89332
- * @fileoverview Namespace SDK - Offchain Manager
89333
- *
89334
- * A TypeScript SDK for managing ENS subnames off-chain using the Namespace API.
89335
- * This library provides a simple interface for creating, updating, deleting, and querying
89336
- * ENS subnames and their associated records (addresses, text records, metadata).
89337
- *
89338
- * Supports all ENS-compatible domains including:
89339
- * - Native ENS domains (.eth)
89340
- * - Imported web2 domains (.com, .org, .net, etc.)
89341
- * - Alternative TLDs (.art, .xyz, .club, etc.)
89342
- *
89343
- * @example
89344
- * ```typescript
89345
- * import { createOffchainClient, ChainName } from '@thenamespace/offchain-manager';
89346
- *
89347
- * // Initialize client with API key inline
89348
- * const client = createOffchainClient({
89349
- * mode: 'sepolia',
89350
- * defaultApiKey: 'your-address-based-api-key'
89351
- * });
89352
- *
89353
- * // Create a subname
89354
- * await client.createSubname({
89355
- * parentName: 'example.eth',
89356
- * label: 'alice',
89357
- * addresses: [{ chain: ChainName.Ethereum, value: '0x...' }],
89358
- * texts: [{ key: 'com.twitter', value: 'alice' }]
89359
- * });
89360
- * ```
89361
- *
89362
- * @author Namespace Team
89363
- * @version 3.0.6
89364
- * @license MIT
89365
- */
89366
- Object.defineProperty(exports$1, "__esModule", { value: true });
89367
- exports$1.RateLimitError = exports$1.SubnameAlreadyExistsError = exports$1.SubnameNotFoundError = exports$1.ValidationError = exports$1.AuthenticationError = exports$1.NamespaceSDKError = exports$1.validateApiKey = exports$1.validateAddress = exports$1.validateSubname = exports$1.validateEnsName = exports$1.getCoinType = exports$1.ChainName = exports$1.createOffchainClient = void 0;
89368
- // Core client exports
89369
- var offchain_client_1 = requireOffchainClient();
89370
- Object.defineProperty(exports$1, "createOffchainClient", { enumerable: true, get: function () { return offchain_client_1.createOffchainClient; } });
89371
- // Data transfer objects
89372
- var dto_1 = requireDto();
89373
- Object.defineProperty(exports$1, "ChainName", { enumerable: true, get: function () { return dto_1.ChainName; } });
89374
- Object.defineProperty(exports$1, "getCoinType", { enumerable: true, get: function () { return dto_1.getCoinType; } });
89375
- // Validation utilities (for advanced usage)
89376
- var validation_1 = requireValidation();
89377
- Object.defineProperty(exports$1, "validateEnsName", { enumerable: true, get: function () { return validation_1.validateEnsName; } });
89378
- Object.defineProperty(exports$1, "validateSubname", { enumerable: true, get: function () { return validation_1.validateSubname; } });
89379
- Object.defineProperty(exports$1, "validateAddress", { enumerable: true, get: function () { return validation_1.validateAddress; } });
89380
- Object.defineProperty(exports$1, "validateApiKey", { enumerable: true, get: function () { return validation_1.validateApiKey; } });
89381
- // Error classes (for error handling)
89382
- var errors_1 = requireErrors();
89383
- Object.defineProperty(exports$1, "NamespaceSDKError", { enumerable: true, get: function () { return errors_1.NamespaceSDKError; } });
89384
- Object.defineProperty(exports$1, "AuthenticationError", { enumerable: true, get: function () { return errors_1.AuthenticationError; } });
89385
- Object.defineProperty(exports$1, "ValidationError", { enumerable: true, get: function () { return errors_1.ValidationError; } });
89386
- Object.defineProperty(exports$1, "SubnameNotFoundError", { enumerable: true, get: function () { return errors_1.SubnameNotFoundError; } });
89387
- Object.defineProperty(exports$1, "SubnameAlreadyExistsError", { enumerable: true, get: function () { return errors_1.SubnameAlreadyExistsError; } });
89388
- Object.defineProperty(exports$1, "RateLimitError", { enumerable: true, get: function () { return errors_1.RateLimitError; } });
89389
- } (dist));
89390
- return dist;
89391
- }
89392
-
89393
- var distExports = requireDist();
89394
-
89395
88129
  const useOffchainManager = (name, apiKeyOrToken, isTestnet = false) => {
89396
88130
  const client = useMemo(() => {
89397
88131
  const key = { [name]: apiKeyOrToken };
89398
- return distExports.createOffchainClient({
88132
+ return createOffchainClient({
89399
88133
  domainApiKeys: key,
89400
88134
  mode: isTestnet ? "sepolia" : "mainnet"
89401
88135
  });
@@ -89422,19 +88156,19 @@ const getAvatarUploadErrorMessage = (err) => {
89422
88156
  };
89423
88157
  const getImageUploadErrorMessage = (err, imageType = "avatar") => {
89424
88158
  const defaultFailedMessage = imageType === "avatar" ? "Failed to upload avatar." : "Failed to upload header image.";
89425
- if (err instanceof distExports$3.AvatarSDKError) {
88159
+ if (err instanceof distExports$2.AvatarSDKError) {
89426
88160
  switch (err.code) {
89427
- case distExports$3.ErrorCodes.MISSING_PROVIDER:
88161
+ case distExports$2.ErrorCodes.MISSING_PROVIDER:
89428
88162
  return imageType === "avatar" ? "Please connect your wallet to upload avatar." : "Please connect your wallet to upload header image.";
89429
- case distExports$3.ErrorCodes.NOT_SUBNAME_OWNER:
88163
+ case distExports$2.ErrorCodes.NOT_SUBNAME_OWNER:
89430
88164
  return "You do not own this ENS name.";
89431
- case distExports$3.ErrorCodes.FILE_TOO_LARGE:
88165
+ case distExports$2.ErrorCodes.FILE_TOO_LARGE:
89432
88166
  return "Image is too large.";
89433
- case distExports$3.ErrorCodes.INVALID_FILE_TYPE:
88167
+ case distExports$2.ErrorCodes.INVALID_FILE_TYPE:
89434
88168
  return "Unsupported image type.";
89435
- case distExports$3.ErrorCodes.EXPIRED_NONCE:
88169
+ case distExports$2.ErrorCodes.EXPIRED_NONCE:
89436
88170
  return "Signature expired. Please try again.";
89437
- case distExports$3.ErrorCodes.INVALID_SIGNATURE:
88171
+ case distExports$2.ErrorCodes.INVALID_SIGNATURE:
89438
88172
  return "Wallet signature verification failed.";
89439
88173
  default:
89440
88174
  return err.message || defaultFailedMessage;
@@ -89466,7 +88200,7 @@ const useAvatarClient = ({ isTestnet, domain }) => {
89466
88200
  };
89467
88201
  }, [walletClient, address, fallbackChainId]);
89468
88202
  const client = useMemo(() => {
89469
- return distExports$3.createAvatarClient({
88203
+ return distExports$2.createAvatarClient({
89470
88204
  network: isTestnet ? "sepolia" : "mainnet",
89471
88205
  domain: resolvedDomain,
89472
88206
  provider
@@ -89585,13 +88319,13 @@ const IMAGE_UPLOAD_MODAL_LOG_PREFIX = "[ImageUploadModal]";
89585
88319
  const IMAGE_CONFIG = {
89586
88320
  avatar: {
89587
88321
  label: "avatar",
89588
- maxSize: distExports$3.AVATAR_MAX_SIZE,
88322
+ maxSize: distExports$2.AVATAR_MAX_SIZE,
89589
88323
  cropAspect: 1,
89590
88324
  cropShape: "round"
89591
88325
  },
89592
88326
  header: {
89593
88327
  label: "header",
89594
- maxSize: distExports$3.HEADER_MAX_SIZE,
88328
+ maxSize: distExports$2.HEADER_MAX_SIZE,
89595
88329
  cropAspect: 3,
89596
88330
  cropShape: "rect"
89597
88331
  }
@@ -89661,7 +88395,7 @@ const ImageUploadModal = ({
89661
88395
  setUploadProgress(0);
89662
88396
  }, [isOpen]);
89663
88397
  const acceptedTypes = useMemo(() => {
89664
- return distExports$3.ALLOWED_FORMATS.join(",");
88398
+ return distExports$2.ALLOWED_FORMATS.join(",");
89665
88399
  }, []);
89666
88400
  const openFilePicker = () => {
89667
88401
  if (!fileInputRef.current) {
@@ -89675,7 +88409,7 @@ const ImageUploadModal = ({
89675
88409
  return;
89676
88410
  }
89677
88411
  setError(null);
89678
- if (!distExports$3.ALLOWED_FORMATS.includes(file.type)) {
88412
+ if (!distExports$2.ALLOWED_FORMATS.includes(file.type)) {
89679
88413
  setError(
89680
88414
  "Unsupported file type. Please use JPEG, PNG, GIF, WebP, or SVG."
89681
88415
  );
@@ -90635,16 +89369,40 @@ const TransactionPendingScreen = ({
90635
89369
  return () => clearInterval(int);
90636
89370
  }, [progressStep, isCompleted]);
90637
89371
  return /* @__PURE__ */ jsxs("div", { className: "ns-text-center", children: [
90638
- /* @__PURE__ */ jsxs(Text, { weight: "medium", children: [
89372
+ /* @__PURE__ */ jsxs(Text, { weight: "bold", size: "lg", children: [
90639
89373
  "Transaction ",
90640
89374
  !isCompleted ? "in Progress" : "Completed!"
90641
89375
  ] }),
90642
89376
  /* @__PURE__ */ jsx(Text, { color: "grey", size: "xs", className: "mt-2", children: message || "Your transaction has been sent!" }),
90643
89377
  /* @__PURE__ */ jsx(ProgressBar, { progress: progressStep }),
90644
- /* @__PURE__ */ jsx("a", { href: getBlockExplorerTransactionUrl(effectiveChainId, hash), target: "_blank", rel: "noopener noreferrer", children: /* @__PURE__ */ jsxs(Text, { className: "mt-2", size: "xs", color: "grey", children: [
90645
- "Check on ",
90646
- getBlockExplorerName(effectiveChainId)
90647
- ] }) })
89378
+ /* @__PURE__ */ jsxs(
89379
+ "a",
89380
+ {
89381
+ href: getBlockExplorerTransactionUrl(effectiveChainId, hash),
89382
+ target: "_blank",
89383
+ rel: "noopener noreferrer",
89384
+ style: {
89385
+ display: "inline-flex",
89386
+ alignItems: "center",
89387
+ gap: 6,
89388
+ marginTop: 12,
89389
+ padding: "6px 14px",
89390
+ borderRadius: 999,
89391
+ border: "1px solid var(--ns-color-border)",
89392
+ background: "var(--ns-color-bg-secondary, var(--ns-color-bg))",
89393
+ textDecoration: "none",
89394
+ color: "var(--ns-color-text-secondary)",
89395
+ fontSize: 12,
89396
+ fontWeight: 500,
89397
+ transition: "border-color 0.15s, color 0.15s"
89398
+ },
89399
+ children: [
89400
+ /* @__PURE__ */ jsx(Icon, { name: "globe", size: 13 }),
89401
+ "View on ",
89402
+ getBlockExplorerName(effectiveChainId)
89403
+ ]
89404
+ }
89405
+ )
90648
89406
  ] });
90649
89407
  };
90650
89408
 
@@ -92029,7 +90787,6 @@ const EnsNameRegistrationForm = (props) => {
92029
90787
  isTaken: false
92030
90788
  });
92031
90789
  const [showProfile, setShowProfile] = useState(false);
92032
- const { address } = useAccount();
92033
90790
  const [ensRecordTemplate, setEnsRecordsTemplate] = useState({
92034
90791
  addresses: [],
92035
90792
  texts: []
@@ -92041,7 +90798,7 @@ const EnsNameRegistrationForm = (props) => {
92041
90798
  const hasRecordsDifference = useMemo(() => {
92042
90799
  return getEnsRecordsDiff(ensRecords, ensRecordTemplate).isDifferent;
92043
90800
  }, [ensRecords, ensRecordTemplate]);
92044
- const [successData, setSuccessData] = useState(null);
90801
+ const [successData, setSuccessData] = useState();
92045
90802
  const handleSaveRecords = () => {
92046
90803
  setEnsRecords(deepCopy(ensRecordTemplate));
92047
90804
  setShowProfile(false);
@@ -94037,79 +92794,6 @@ const SubnameMintFormContent = ({
94037
92794
  ] });
94038
92795
  };
94039
92796
 
94040
- const coinTypeToChainName = (_coinType) => {
94041
- const chainNames = Object.values(distExports.ChainName);
94042
- for (const chainName of chainNames) {
94043
- try {
94044
- const coinType = distExports.getCoinType(chainName);
94045
- if (_coinType === coinType || convertEVMChainIdToCoinType(coinType) === _coinType) {
94046
- return chainName;
94047
- }
94048
- } catch (e) {
94049
- continue;
94050
- }
94051
- }
94052
- return null;
94053
- };
94054
- const parseContenthash = (contenthash) => {
94055
- if (!contenthash) return void 0;
94056
- for (const record of supportedContenthashRecords) {
94057
- if (contenthash.startsWith(record.protocolPrefix)) {
94058
- const value = contenthash.substring(record.protocolPrefix.length);
94059
- return {
94060
- protocol: record.protocol,
94061
- value
94062
- };
94063
- }
94064
- }
94065
- if (contenthash.startsWith("Qm") || contenthash.startsWith("bafy")) {
94066
- return {
94067
- protocol: ContenthashProtocol.Ipfs,
94068
- value: contenthash
94069
- };
94070
- }
94071
- return void 0;
94072
- };
94073
- const offchainRecordsToEnsRecords = (subname) => {
94074
- const ensRecords = {
94075
- addresses: [],
94076
- texts: []
94077
- };
94078
- if (subname.texts) {
94079
- Object.keys(subname.texts).forEach((key) => {
94080
- ensRecords.texts.push({ key, value: subname.texts[key] });
94081
- });
94082
- }
94083
- if (subname.addresses) {
94084
- Object.keys(subname.addresses).forEach((keyStr) => {
94085
- const keyNum = parseInt(keyStr, 10);
94086
- const value = subname.addresses[keyStr];
94087
- if (isNaN(keyNum) || !value) return;
94088
- let coinType;
94089
- if (keyNum >= 2147483648) {
94090
- coinType = keyNum;
94091
- } else {
94092
- const evmChain = supportedAddresses.find(
94093
- (addr) => addr.chainId === keyNum && addr.isEMV
94094
- );
94095
- if (evmChain) {
94096
- coinType = convertEVMChainIdToCoinType(keyNum);
94097
- } else {
94098
- coinType = keyNum;
94099
- }
94100
- }
94101
- ensRecords.addresses.push({ coinType, value });
94102
- });
94103
- }
94104
- if (subname.contenthash) {
94105
- const parsedContenthash = parseContenthash(subname.contenthash);
94106
- if (parsedContenthash) {
94107
- ensRecords.contenthash = parsedContenthash;
94108
- }
94109
- }
94110
- return ensRecords;
94111
- };
94112
-
94113
92797
  const SuccessScreen = ({ fullSubname, isUpdateMode, onContinue }) => {
94114
92798
  const actionText = isUpdateMode ? "updated" : "created";
94115
92799
  return /* @__PURE__ */ jsx("div", { className: "ns-offchain-subname-form", children: /* @__PURE__ */ jsx("div", { style: { padding: 15 }, children: /* @__PURE__ */ jsxs("div", { className: "ns-text-center", children: [
@@ -94139,15 +92823,16 @@ const SuccessScreen = ({ fullSubname, isUpdateMode, onContinue }) => {
94139
92823
  ] }) }) });
94140
92824
  };
94141
92825
 
94142
- const FormHeader = ({ isUpdateMode, label, parentName, showFullName }) => {
94143
- const smallTitle = isUpdateMode ? "Update subname" : "Create subname";
92826
+ const FormHeader = ({ isUpdateMode, label, parentName, showFullName, title, subtitle }) => {
92827
+ const defaultTitle = isUpdateMode ? "Update subname" : "Create subname";
94144
92828
  return /* @__PURE__ */ jsxs("div", { className: "ns-text-center mb-3", children: [
94145
- /* @__PURE__ */ jsx(Text, { size: "sm", color: "grey", className: "mb-1", children: smallTitle }),
92829
+ /* @__PURE__ */ jsx(Text, { size: "sm", color: "grey", className: "mb-1", children: title ?? defaultTitle }),
94146
92830
  showFullName && /* @__PURE__ */ jsxs(Text, { size: "lg", weight: "bold", children: [
94147
92831
  label,
94148
92832
  ".",
94149
92833
  parentName
94150
- ] })
92834
+ ] }),
92835
+ subtitle && /* @__PURE__ */ jsx(Text, { size: "xs", color: "grey", className: "mt-1", children: subtitle })
94151
92836
  ] });
94152
92837
  };
94153
92838
 
@@ -94233,6 +92918,79 @@ const useOwnerValidation = () => {
94233
92918
  };
94234
92919
  };
94235
92920
 
92921
+ const coinTypeToChainName = (_coinType) => {
92922
+ const chainNames = Object.values(ChainName);
92923
+ for (const chainName of chainNames) {
92924
+ try {
92925
+ const coinType = getCoinType(chainName);
92926
+ if (_coinType === coinType || convertEVMChainIdToCoinType(coinType) === _coinType) {
92927
+ return chainName;
92928
+ }
92929
+ } catch (e) {
92930
+ continue;
92931
+ }
92932
+ }
92933
+ return null;
92934
+ };
92935
+ const parseContenthash = (contenthash) => {
92936
+ if (!contenthash) return void 0;
92937
+ for (const record of supportedContenthashRecords) {
92938
+ if (contenthash.startsWith(record.protocolPrefix)) {
92939
+ const value = contenthash.substring(record.protocolPrefix.length);
92940
+ return {
92941
+ protocol: record.protocol,
92942
+ value
92943
+ };
92944
+ }
92945
+ }
92946
+ if (contenthash.startsWith("Qm") || contenthash.startsWith("bafy")) {
92947
+ return {
92948
+ protocol: ContenthashProtocol.Ipfs,
92949
+ value: contenthash
92950
+ };
92951
+ }
92952
+ return void 0;
92953
+ };
92954
+ const offchainRecordsToEnsRecords = (subname) => {
92955
+ const ensRecords = {
92956
+ addresses: [],
92957
+ texts: []
92958
+ };
92959
+ if (subname.texts) {
92960
+ Object.keys(subname.texts).forEach((key) => {
92961
+ ensRecords.texts.push({ key, value: subname.texts[key] });
92962
+ });
92963
+ }
92964
+ if (subname.addresses) {
92965
+ Object.keys(subname.addresses).forEach((keyStr) => {
92966
+ const keyNum = parseInt(keyStr, 10);
92967
+ const value = subname.addresses[keyStr];
92968
+ if (isNaN(keyNum) || !value) return;
92969
+ let coinType;
92970
+ if (keyNum >= 2147483648) {
92971
+ coinType = keyNum;
92972
+ } else {
92973
+ const evmChain = supportedAddresses.find(
92974
+ (addr) => addr.chainId === keyNum && addr.isEMV
92975
+ );
92976
+ if (evmChain) {
92977
+ coinType = convertEVMChainIdToCoinType(keyNum);
92978
+ } else {
92979
+ coinType = keyNum;
92980
+ }
92981
+ }
92982
+ ensRecords.addresses.push({ coinType, value });
92983
+ });
92984
+ }
92985
+ if (subname.contenthash) {
92986
+ const parsedContenthash = parseContenthash(subname.contenthash);
92987
+ if (parsedContenthash) {
92988
+ ensRecords.contenthash = parsedContenthash;
92989
+ }
92990
+ }
92991
+ return ensRecords;
92992
+ };
92993
+
94236
92994
  const useSubnameChecker = (client, parentName) => {
94237
92995
  const [isLoadingSubname, setIsLoadingSubname] = useState(false);
94238
92996
  const [error, setError] = useState(null);
@@ -94301,16 +93059,19 @@ const buildSubnameRequest = (ensRecords, ownerAddress) => {
94301
93059
 
94302
93060
  const MIN_ENS_LEN = 1;
94303
93061
  const OffchainSubnameForm = ({
94304
- apiKeyOrToken,
93062
+ offchainManager,
94305
93063
  name,
94306
93064
  label: propLabel,
93065
+ title,
93066
+ subtitle,
94307
93067
  hideTitle = false,
94308
93068
  isTestnet,
94309
93069
  avatarUploadDomain,
94310
93070
  onCancel,
94311
- onSuccess
93071
+ onSubnameCreated,
93072
+ onSubnameUpdated
94312
93073
  }) => {
94313
- const client = useOffchainManager(name, apiKeyOrToken, isTestnet);
93074
+ const client = offchainManager;
94314
93075
  const [label, setLabel] = useState(propLabel || "");
94315
93076
  const [showProfile, setShowProfile] = useState(false);
94316
93077
  const [createStep, setCreateStep] = useState("form" /* Form */);
@@ -94433,18 +93194,21 @@ const OffchainSubnameForm = ({
94433
93194
  }
94434
93195
  }
94435
93196
  const requestData = buildSubnameRequest(ensRecords, ownerAddress);
93197
+ const data = {
93198
+ label,
93199
+ parentName: name,
93200
+ fullSubname: `${label}.${name}`,
93201
+ addresses: requestData.addresses,
93202
+ texts: requestData.texts,
93203
+ owner: requestData.owner
93204
+ };
94436
93205
  if (isUpdateMode) {
94437
- const fullSubname = `${label}.${name}`;
94438
- await client.updateSubname(fullSubname, requestData);
93206
+ await onSubnameUpdated?.(data);
94439
93207
  } else {
94440
- const createRequest = {
94441
- parentName: name,
94442
- label,
94443
- ...requestData
94444
- };
94445
- await client.createSubname(createRequest);
93208
+ await onSubnameCreated?.(data);
94446
93209
  }
94447
- await refreshSubnameData();
93210
+ setSuccessData(data);
93211
+ setCreateStep("success" /* Success */);
94448
93212
  } catch (err) {
94449
93213
  console.error("Create/Update error:", err);
94450
93214
  setCreateError(err?.message || `Failed to ${isUpdateMode ? "update" : "create"} subname`);
@@ -94452,27 +93216,6 @@ const OffchainSubnameForm = ({
94452
93216
  setIsCreating(false);
94453
93217
  }
94454
93218
  };
94455
- const refreshSubnameData = async () => {
94456
- const fullSubname = `${label}.${name}`;
94457
- const updatedSubname = await client.getSingleSubname(fullSubname);
94458
- const latestRecords = updatedSubname ? offchainRecordsToEnsRecords(updatedSubname) : ensRecords;
94459
- setBaselineRecords(deepCopy(latestRecords));
94460
- setEnsRecords(latestRecords);
94461
- setEnsRecordsTemplate(deepCopy(latestRecords));
94462
- const latestOwner = updatedSubname?.owner || (ownerAddress && ownerAddress.trim() !== "" ? ownerAddress : "");
94463
- setInitialOwner(latestOwner);
94464
- setOwnerAddress(latestOwner);
94465
- const data = {
94466
- label,
94467
- parentName: name,
94468
- fullSubname: `${label}.${name}`,
94469
- records: latestRecords,
94470
- ownerAddress: latestOwner || void 0
94471
- };
94472
- setSuccessData(data);
94473
- setCreateStep("success" /* Success */);
94474
- onSuccess?.(data);
94475
- };
94476
93219
  const handleCreateAnother = () => {
94477
93220
  setSuccessData(null);
94478
93221
  setCreateError(null);
@@ -94533,7 +93276,9 @@ const OffchainSubnameForm = ({
94533
93276
  isUpdateMode,
94534
93277
  label,
94535
93278
  parentName: name,
94536
- showFullName
93279
+ showFullName,
93280
+ title,
93281
+ subtitle
94537
93282
  }
94538
93283
  ),
94539
93284
  /* @__PURE__ */ jsx(
@@ -94629,5 +93374,5 @@ const useTheme = () => {
94629
93374
  return ctx;
94630
93375
  };
94631
93376
 
94632
- export { Accordion, Alert, Button, Card, ChainIcon, ConnectAndSetChain, ContenthashIcon, ContenthashProtocol, ContractErrorLabel, Dropdown, ENS_RESOLVER_ABI, EnsNameRegistrationForm, EnsRecordsForm, Icon, Input, ListingNetwork, ListingType, MULTICALL, Modal, OffchainSubnameForm, PricingDisplay, ProfileHeader, ProgressBar, SET_ADDRESS_FUNC, SET_CONTENTHASH_FUNC, SET_TEXT_FUNC, SelectRecordsForm, ShurikenSpinner, SubnameMintForm, Text, TextRecordCategory, Textarea, ThemeProvider, Tooltip, TxProgress, capitalize, convertEVMChainIdToCoinType, convertToMulticallResolverData, convertToResolverData, createEnsReferer, debounce, deepCopy, diffToEnsRecords, ensureFloatInput, equalsIgnoreCase, formatFloat, getAvatarUploadErrorMessage, getBlockExplorer, getBlockExplorerAddressUrl, getBlockExplorerName, getBlockExplorerTransactionUrl, getChainIdForListingNetwork, getEnsAppUrl, getEnsRecordsDiff, getImageUploadErrorMessage, getSupportedAddressByChainId, getSupportedAddressByCoin, getSupportedAddressByName, getSupportedAddressMap, getSupportedChashByProtocol, getSupportedText, isCommitmentToNewErr, isContenthashValid, isUserDeniedError, supportedAddresses, supportedContenthashRecords, supportedTexts, useAvatarClient, useENSResolver, useMintManager, useMintSubname, useOffchainManager, useRegisterENS, useTheme, useWaitTransaction, validateEnsRecords, wait };
93377
+ export { Accordion, Alert, Button, Card, ChainIcon, ConnectAndSetChain, ContenthashIcon, ContenthashProtocol, ContractErrorLabel, Dropdown, ENS_RESOLVER_ABI, EnsNameRegistrationForm, EnsRecordsForm, Icon, Input, ListingNetwork, ListingType, MULTICALL, Modal, OffchainSubnameForm, PricingDisplay, ProfileHeader, ProgressBar, SET_ADDRESS_FUNC, SET_CONTENTHASH_FUNC, SET_TEXT_FUNC, SelectRecordsForm, ShurikenSpinner, SubnameMintForm, Text, TextRecordCategory, Textarea, ThemeProvider, Tooltip, TransactionPendingScreen, TxProgress, capitalize, convertEVMChainIdToCoinType, convertToMulticallResolverData, convertToResolverData, createEnsReferer, debounce, deepCopy, diffToEnsRecords, ensureFloatInput, equalsIgnoreCase, formatFloat, getAvatarUploadErrorMessage, getBlockExplorer, getBlockExplorerAddressUrl, getBlockExplorerName, getBlockExplorerTransactionUrl, getChainIdForListingNetwork, getEnsAppUrl, getEnsRecordsDiff, getImageUploadErrorMessage, getSupportedAddressByChainId, getSupportedAddressByCoin, getSupportedAddressByName, getSupportedAddressMap, getSupportedChashByProtocol, getSupportedText, isCommitmentToNewErr, isContenthashValid, isUserDeniedError, supportedAddresses, supportedContenthashRecords, supportedTexts, useAvatarClient, useENSResolver, useMintManager, useMintSubname, useOffchainManager, useRegisterENS, useTheme, useWaitTransaction, validateEnsRecords, wait };
94633
93378
  //# sourceMappingURL=index.js.map