@eclesia/indexer-engine 2.14.4 → 2.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/rolldown_runtime.cjs +20 -15
- package/dist/_virtual/rolldown_runtime.mjs +10 -30
- package/dist/constants.cjs +31 -2
- package/dist/constants.cjs.map +1 -1
- package/dist/constants.d.cts +27 -3
- package/dist/constants.d.cts.map +1 -1
- package/dist/constants.d.mts +27 -3
- package/dist/constants.d.mts.map +1 -1
- package/dist/constants.mjs +27 -3
- package/dist/constants.mjs.map +1 -1
- package/dist/emitter/index.cjs +25 -7
- package/dist/emitter/index.cjs.map +1 -1
- package/dist/emitter/index.d.cts +8 -1
- package/dist/emitter/index.d.cts.map +1 -1
- package/dist/emitter/index.d.mts +8 -1
- package/dist/emitter/index.d.mts.map +1 -1
- package/dist/emitter/index.mjs +25 -7
- package/dist/emitter/index.mjs.map +1 -1
- package/dist/index.cjs +6 -0
- package/dist/index.d.cts +3 -3
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +3 -3
- package/dist/indexer/index.cjs +498 -225
- package/dist/indexer/index.cjs.map +1 -1
- package/dist/indexer/index.d.cts +111 -7
- package/dist/indexer/index.d.cts.map +1 -1
- package/dist/indexer/index.d.mts +111 -7
- package/dist/indexer/index.d.mts.map +1 -1
- package/dist/indexer/index.mjs +496 -224
- package/dist/indexer/index.mjs.map +1 -1
- package/dist/metrics/index.cjs +14 -0
- package/dist/metrics/index.cjs.map +1 -1
- package/dist/metrics/index.d.cts +7 -0
- package/dist/metrics/index.d.cts.map +1 -1
- package/dist/metrics/index.d.mts +7 -0
- package/dist/metrics/index.d.mts.map +1 -1
- package/dist/metrics/index.mjs +14 -0
- package/dist/metrics/index.mjs.map +1 -1
- package/dist/mocks/index.cjs +3 -1
- package/dist/mocks/index.cjs.map +1 -1
- package/dist/mocks/index.d.cts +2 -2
- package/dist/mocks/index.d.mts +2 -2
- package/dist/mocks/index.mjs +4 -2
- package/dist/mocks/index.mjs.map +1 -1
- package/dist/mocks/rpc-client.cjs +185 -20
- package/dist/mocks/rpc-client.cjs.map +1 -1
- package/dist/mocks/rpc-client.d.cts +26 -10
- package/dist/mocks/rpc-client.d.cts.map +1 -1
- package/dist/mocks/rpc-client.d.mts +26 -10
- package/dist/mocks/rpc-client.d.mts.map +1 -1
- package/dist/mocks/rpc-client.mjs +184 -22
- package/dist/mocks/rpc-client.mjs.map +1 -1
- package/dist/promise-queue/index.cjs +10 -4
- package/dist/promise-queue/index.cjs.map +1 -1
- package/dist/promise-queue/index.d.cts +1 -4
- package/dist/promise-queue/index.d.cts.map +1 -1
- package/dist/promise-queue/index.d.mts +1 -4
- package/dist/promise-queue/index.d.mts.map +1 -1
- package/dist/promise-queue/index.mjs +10 -4
- package/dist/promise-queue/index.mjs.map +1 -1
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.cts +28 -5
- package/dist/types/index.d.cts.map +1 -1
- package/dist/types/index.d.mts +28 -5
- package/dist/types/index.d.mts.map +1 -1
- package/dist/types/index.mjs.map +1 -1
- package/dist/utils/index.cjs +6 -1
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.cts +3 -2
- package/dist/utils/index.d.mts +3 -2
- package/dist/utils/index.mjs +7 -2
- package/dist/utils/index.mjs.map +1 -1
- package/dist/utils/text.cjs +31 -0
- package/dist/utils/text.cjs.map +1 -1
- package/dist/utils/text.d.cts +24 -1
- package/dist/utils/text.d.cts.map +1 -1
- package/dist/utils/text.d.mts +24 -1
- package/dist/utils/text.d.mts.map +1 -1
- package/dist/utils/text.mjs +30 -1
- package/dist/utils/text.mjs.map +1 -1
- package/dist/utils/timeout.cjs +32 -0
- package/dist/utils/timeout.cjs.map +1 -0
- package/dist/utils/timeout.d.cts +18 -0
- package/dist/utils/timeout.d.cts.map +1 -0
- package/dist/utils/timeout.d.mts +18 -0
- package/dist/utils/timeout.d.mts.map +1 -0
- package/dist/utils/timeout.mjs +30 -0
- package/dist/utils/timeout.mjs.map +1 -0
- package/package.json +35 -34
- package/dist/node_modules/.pnpm/@cosmjs_encoding@0.36.0/node_modules/@cosmjs/encoding/build/ascii.cjs +0 -32
- package/dist/node_modules/.pnpm/@cosmjs_encoding@0.36.0/node_modules/@cosmjs/encoding/build/ascii.cjs.map +0 -1
- package/dist/node_modules/.pnpm/@cosmjs_encoding@0.36.0/node_modules/@cosmjs/encoding/build/ascii.mjs +0 -29
- package/dist/node_modules/.pnpm/@cosmjs_encoding@0.36.0/node_modules/@cosmjs/encoding/build/ascii.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@cosmjs_encoding@0.36.0/node_modules/@cosmjs/encoding/build/base64.cjs +0 -67
- package/dist/node_modules/.pnpm/@cosmjs_encoding@0.36.0/node_modules/@cosmjs/encoding/build/base64.cjs.map +0 -1
- package/dist/node_modules/.pnpm/@cosmjs_encoding@0.36.0/node_modules/@cosmjs/encoding/build/base64.mjs +0 -64
- package/dist/node_modules/.pnpm/@cosmjs_encoding@0.36.0/node_modules/@cosmjs/encoding/build/base64.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@cosmjs_encoding@0.36.0/node_modules/@cosmjs/encoding/build/bech32.cjs +0 -80
- package/dist/node_modules/.pnpm/@cosmjs_encoding@0.36.0/node_modules/@cosmjs/encoding/build/bech32.cjs.map +0 -1
- package/dist/node_modules/.pnpm/@cosmjs_encoding@0.36.0/node_modules/@cosmjs/encoding/build/bech32.mjs +0 -77
- package/dist/node_modules/.pnpm/@cosmjs_encoding@0.36.0/node_modules/@cosmjs/encoding/build/bech32.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@cosmjs_encoding@0.36.0/node_modules/@cosmjs/encoding/build/hex.cjs +0 -33
- package/dist/node_modules/.pnpm/@cosmjs_encoding@0.36.0/node_modules/@cosmjs/encoding/build/hex.cjs.map +0 -1
- package/dist/node_modules/.pnpm/@cosmjs_encoding@0.36.0/node_modules/@cosmjs/encoding/build/hex.mjs +0 -30
- package/dist/node_modules/.pnpm/@cosmjs_encoding@0.36.0/node_modules/@cosmjs/encoding/build/hex.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@cosmjs_encoding@0.36.0/node_modules/@cosmjs/encoding/build/index.cjs +0 -106
- package/dist/node_modules/.pnpm/@cosmjs_encoding@0.36.0/node_modules/@cosmjs/encoding/build/index.cjs.map +0 -1
- package/dist/node_modules/.pnpm/@cosmjs_encoding@0.36.0/node_modules/@cosmjs/encoding/build/index.mjs +0 -103
- package/dist/node_modules/.pnpm/@cosmjs_encoding@0.36.0/node_modules/@cosmjs/encoding/build/index.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@cosmjs_encoding@0.36.0/node_modules/@cosmjs/encoding/build/rfc3339.cjs +0 -52
- package/dist/node_modules/.pnpm/@cosmjs_encoding@0.36.0/node_modules/@cosmjs/encoding/build/rfc3339.cjs.map +0 -1
- package/dist/node_modules/.pnpm/@cosmjs_encoding@0.36.0/node_modules/@cosmjs/encoding/build/rfc3339.mjs +0 -49
- package/dist/node_modules/.pnpm/@cosmjs_encoding@0.36.0/node_modules/@cosmjs/encoding/build/rfc3339.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@cosmjs_encoding@0.36.0/node_modules/@cosmjs/encoding/build/utf8.cjs +0 -31
- package/dist/node_modules/.pnpm/@cosmjs_encoding@0.36.0/node_modules/@cosmjs/encoding/build/utf8.cjs.map +0 -1
- package/dist/node_modules/.pnpm/@cosmjs_encoding@0.36.0/node_modules/@cosmjs/encoding/build/utf8.mjs +0 -28
- package/dist/node_modules/.pnpm/@cosmjs_encoding@0.36.0/node_modules/@cosmjs/encoding/build/utf8.mjs.map +0 -1
- package/dist/node_modules/.pnpm/base64-js@1.5.1/node_modules/base64-js/index.cjs +0 -98
- package/dist/node_modules/.pnpm/base64-js@1.5.1/node_modules/base64-js/index.cjs.map +0 -1
- package/dist/node_modules/.pnpm/base64-js@1.5.1/node_modules/base64-js/index.mjs +0 -95
- package/dist/node_modules/.pnpm/base64-js@1.5.1/node_modules/base64-js/index.mjs.map +0 -1
package/package.json
CHANGED
|
@@ -1,20 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eclesia/indexer-engine",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.16.0",
|
|
4
4
|
"description": "Core eclesia indexer engine",
|
|
5
|
-
"scripts": {
|
|
6
|
-
"build": "tsc --noEmit && tsdown",
|
|
7
|
-
"bench": "vitest bench --config benchmarks/vitest.config.ts",
|
|
8
|
-
"lint": "eslint",
|
|
9
|
-
"lint:fix": "eslint --fix",
|
|
10
|
-
"test": "vitest",
|
|
11
|
-
"typecheck": "tsc --noEmit",
|
|
12
|
-
"start": "node dist/index.mjs"
|
|
13
|
-
},
|
|
14
5
|
"files": [
|
|
15
|
-
"dist/"
|
|
16
|
-
"scripts/",
|
|
17
|
-
"templates"
|
|
6
|
+
"dist/"
|
|
18
7
|
],
|
|
19
8
|
"engines": {
|
|
20
9
|
"node": ">=20"
|
|
@@ -24,37 +13,41 @@
|
|
|
24
13
|
"contributors": [
|
|
25
14
|
"Alex M.<alex.megalokonomos@tendermint.com>"
|
|
26
15
|
],
|
|
27
|
-
"license": "
|
|
16
|
+
"license": "SEE LICENSE IN LICENSE.md",
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "git+https://github.com/allinbits/eclesia-indexer-core.git",
|
|
20
|
+
"directory": "packages/indexer-engine"
|
|
21
|
+
},
|
|
22
|
+
"homepage": "https://github.com/allinbits/eclesia-indexer-core#readme",
|
|
23
|
+
"bugs": {
|
|
24
|
+
"url": "https://github.com/allinbits/eclesia-indexer-core/issues"
|
|
25
|
+
},
|
|
28
26
|
"devDependencies": {
|
|
29
|
-
"@arethetypeswrong/core": "^0.18.
|
|
30
|
-
"@
|
|
31
|
-
"@eslint
|
|
32
|
-
"@
|
|
33
|
-
"
|
|
34
|
-
"@types/stream-chain": "^2.1.0",
|
|
35
|
-
"@types/stream-json": "^1.7.8",
|
|
36
|
-
"@types/uuid": "^11.0.0",
|
|
37
|
-
"eslint": "^9.39.1",
|
|
27
|
+
"@arethetypeswrong/core": "^0.18.5",
|
|
28
|
+
"@eslint/js": "^9.39.5",
|
|
29
|
+
"@stylistic/eslint-plugin": "^5.10.0",
|
|
30
|
+
"@types/node": "^24.13.3",
|
|
31
|
+
"eslint": "^9.39.5",
|
|
38
32
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
39
|
-
"tsdown": "^0.16.
|
|
33
|
+
"tsdown": "^0.16.8",
|
|
40
34
|
"typescript": "^5.9.3",
|
|
41
|
-
"typescript-eslint": "^8.
|
|
42
|
-
"vitest": "^4.
|
|
35
|
+
"typescript-eslint": "^8.70.0",
|
|
36
|
+
"vitest": "^4.1.11"
|
|
43
37
|
},
|
|
44
38
|
"publishConfig": {
|
|
45
39
|
"access": "public"
|
|
46
40
|
},
|
|
47
41
|
"dependencies": {
|
|
48
|
-
"@cosmjs/
|
|
42
|
+
"@cosmjs/encoding": "^0.36.2",
|
|
43
|
+
"@cosmjs/tendermint-rpc": "^0.36.2",
|
|
49
44
|
"bech32": "^2.0.0",
|
|
50
45
|
"cosmjs-types": "^0.10.1",
|
|
51
|
-
"
|
|
52
|
-
"fastify": "^5.6.1",
|
|
46
|
+
"fastify": "^5.12.3",
|
|
53
47
|
"prom-client": "^15.1.3",
|
|
54
|
-
"stream-chain": "^
|
|
55
|
-
"stream-json": "^
|
|
56
|
-
"
|
|
57
|
-
"winston": "^3.18.3"
|
|
48
|
+
"stream-chain": "^4.2.5",
|
|
49
|
+
"stream-json": "^3.6.0",
|
|
50
|
+
"winston": "^3.19.0"
|
|
58
51
|
},
|
|
59
52
|
"exports": {
|
|
60
53
|
".": {
|
|
@@ -71,5 +64,13 @@
|
|
|
71
64
|
},
|
|
72
65
|
"main": "dist/index.cjs",
|
|
73
66
|
"module": "dist/index.mjs",
|
|
74
|
-
"types": "dist/index.d.mts"
|
|
67
|
+
"types": "dist/index.d.mts",
|
|
68
|
+
"scripts": {
|
|
69
|
+
"build": "tsc --noEmit && tsdown",
|
|
70
|
+
"bench": "vitest bench --config benchmarks/vitest.config.ts",
|
|
71
|
+
"lint": "eslint",
|
|
72
|
+
"lint:fix": "eslint --fix",
|
|
73
|
+
"test": "vitest run",
|
|
74
|
+
"typecheck": "tsc --noEmit"
|
|
75
|
+
}
|
|
75
76
|
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
const require_rolldown_runtime = require('../../../../../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
|
|
3
|
-
//#region ../../node_modules/.pnpm/@cosmjs+encoding@0.36.0/node_modules/@cosmjs/encoding/build/ascii.js
|
|
4
|
-
var require_ascii = /* @__PURE__ */ require_rolldown_runtime.__commonJS({ "../../node_modules/.pnpm/@cosmjs+encoding@0.36.0/node_modules/@cosmjs/encoding/build/ascii.js": ((exports) => {
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.toAscii = toAscii;
|
|
7
|
-
exports.fromAscii = fromAscii;
|
|
8
|
-
function toAscii(input) {
|
|
9
|
-
const toNums = (str) => str.split("").map((x) => {
|
|
10
|
-
const charCode = x.charCodeAt(0);
|
|
11
|
-
if (charCode < 32 || charCode > 126) throw new Error(`Cannot encode character that is out of printable ASCII range: ${charCode}`);
|
|
12
|
-
return charCode;
|
|
13
|
-
});
|
|
14
|
-
return Uint8Array.from(toNums(input));
|
|
15
|
-
}
|
|
16
|
-
function fromAscii(data) {
|
|
17
|
-
const fromNums = (listOfNumbers) => listOfNumbers.map((x) => {
|
|
18
|
-
if (x < 32 || x > 126) throw new Error(`Cannot decode character that is out of printable ASCII range: ${x}`);
|
|
19
|
-
return String.fromCharCode(x);
|
|
20
|
-
});
|
|
21
|
-
return fromNums(Array.from(data)).join("");
|
|
22
|
-
}
|
|
23
|
-
}) });
|
|
24
|
-
|
|
25
|
-
//#endregion
|
|
26
|
-
Object.defineProperty(exports, 'default', {
|
|
27
|
-
enumerable: true,
|
|
28
|
-
get: function () {
|
|
29
|
-
return require_ascii();
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
//# sourceMappingURL=ascii.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ascii.cjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/@cosmjs+encoding@0.36.0/node_modules/@cosmjs/encoding/build/ascii.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.toAscii = toAscii;\nexports.fromAscii = fromAscii;\nfunction toAscii(input) {\n const toNums = (str) => str.split(\"\").map((x) => {\n const charCode = x.charCodeAt(0);\n // 0x00–0x1F control characters\n // 0x20–0x7E printable characters\n // 0x7F delete character\n // 0x80–0xFF out of 7 bit ascii range\n if (charCode < 0x20 || charCode > 0x7e) {\n throw new Error(`Cannot encode character that is out of printable ASCII range: ${charCode}`);\n }\n return charCode;\n });\n return Uint8Array.from(toNums(input));\n}\nfunction fromAscii(data) {\n const fromNums = (listOfNumbers) => listOfNumbers.map((x) => {\n // 0x00–0x1F control characters\n // 0x20–0x7E printable characters\n // 0x7F delete character\n // 0x80–0xFF out of 7 bit ascii range\n if (x < 0x20 || x > 0x7e) {\n throw new Error(`Cannot decode character that is out of printable ASCII range: ${x}`);\n }\n return String.fromCharCode(x);\n });\n return fromNums(Array.from(data)).join(\"\");\n}\n//# sourceMappingURL=ascii.js.map"],"x_google_ignoreList":[0],"mappings":";;;;AACA,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;AAC7D,SAAQ,UAAU;AAClB,SAAQ,YAAY;CACpB,SAAS,QAAQ,OAAO;EACpB,MAAM,UAAU,QAAQ,IAAI,MAAM,GAAG,CAAC,KAAK,MAAM;GAC7C,MAAM,WAAW,EAAE,WAAW,EAAE;AAKhC,OAAI,WAAW,MAAQ,WAAW,IAC9B,OAAM,IAAI,MAAM,iEAAiE,WAAW;AAEhG,UAAO;IACT;AACF,SAAO,WAAW,KAAK,OAAO,MAAM,CAAC;;CAEzC,SAAS,UAAU,MAAM;EACrB,MAAM,YAAY,kBAAkB,cAAc,KAAK,MAAM;AAKzD,OAAI,IAAI,MAAQ,IAAI,IAChB,OAAM,IAAI,MAAM,iEAAiE,IAAI;AAEzF,UAAO,OAAO,aAAa,EAAE;IAC/B;AACF,SAAO,SAAS,MAAM,KAAK,KAAK,CAAC,CAAC,KAAK,GAAG"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { __commonJS } from "../../../../../../../_virtual/rolldown_runtime.mjs";
|
|
2
|
-
|
|
3
|
-
//#region ../../node_modules/.pnpm/@cosmjs+encoding@0.36.0/node_modules/@cosmjs/encoding/build/ascii.js
|
|
4
|
-
var require_ascii = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@cosmjs+encoding@0.36.0/node_modules/@cosmjs/encoding/build/ascii.js": ((exports) => {
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.toAscii = toAscii;
|
|
7
|
-
exports.fromAscii = fromAscii;
|
|
8
|
-
function toAscii(input) {
|
|
9
|
-
const toNums = (str) => str.split("").map((x) => {
|
|
10
|
-
const charCode = x.charCodeAt(0);
|
|
11
|
-
if (charCode < 32 || charCode > 126) throw new Error(`Cannot encode character that is out of printable ASCII range: ${charCode}`);
|
|
12
|
-
return charCode;
|
|
13
|
-
});
|
|
14
|
-
return Uint8Array.from(toNums(input));
|
|
15
|
-
}
|
|
16
|
-
function fromAscii(data) {
|
|
17
|
-
const fromNums = (listOfNumbers) => listOfNumbers.map((x) => {
|
|
18
|
-
if (x < 32 || x > 126) throw new Error(`Cannot decode character that is out of printable ASCII range: ${x}`);
|
|
19
|
-
return String.fromCharCode(x);
|
|
20
|
-
});
|
|
21
|
-
return fromNums(Array.from(data)).join("");
|
|
22
|
-
}
|
|
23
|
-
}) });
|
|
24
|
-
|
|
25
|
-
//#endregion
|
|
26
|
-
export default require_ascii();
|
|
27
|
-
|
|
28
|
-
export { require_ascii };
|
|
29
|
-
//# sourceMappingURL=ascii.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ascii.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/@cosmjs+encoding@0.36.0/node_modules/@cosmjs/encoding/build/ascii.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.toAscii = toAscii;\nexports.fromAscii = fromAscii;\nfunction toAscii(input) {\n const toNums = (str) => str.split(\"\").map((x) => {\n const charCode = x.charCodeAt(0);\n // 0x00–0x1F control characters\n // 0x20–0x7E printable characters\n // 0x7F delete character\n // 0x80–0xFF out of 7 bit ascii range\n if (charCode < 0x20 || charCode > 0x7e) {\n throw new Error(`Cannot encode character that is out of printable ASCII range: ${charCode}`);\n }\n return charCode;\n });\n return Uint8Array.from(toNums(input));\n}\nfunction fromAscii(data) {\n const fromNums = (listOfNumbers) => listOfNumbers.map((x) => {\n // 0x00–0x1F control characters\n // 0x20–0x7E printable characters\n // 0x7F delete character\n // 0x80–0xFF out of 7 bit ascii range\n if (x < 0x20 || x > 0x7e) {\n throw new Error(`Cannot decode character that is out of printable ASCII range: ${x}`);\n }\n return String.fromCharCode(x);\n });\n return fromNums(Array.from(data)).join(\"\");\n}\n//# sourceMappingURL=ascii.js.map"],"x_google_ignoreList":[0],"mappings":";;;;AACA,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;AAC7D,SAAQ,UAAU;AAClB,SAAQ,YAAY;CACpB,SAAS,QAAQ,OAAO;EACpB,MAAM,UAAU,QAAQ,IAAI,MAAM,GAAG,CAAC,KAAK,MAAM;GAC7C,MAAM,WAAW,EAAE,WAAW,EAAE;AAKhC,OAAI,WAAW,MAAQ,WAAW,IAC9B,OAAM,IAAI,MAAM,iEAAiE,WAAW;AAEhG,UAAO;IACT;AACF,SAAO,WAAW,KAAK,OAAO,MAAM,CAAC;;CAEzC,SAAS,UAAU,MAAM;EACrB,MAAM,YAAY,kBAAkB,cAAc,KAAK,MAAM;AAKzD,OAAI,IAAI,MAAQ,IAAI,IAChB,OAAM,IAAI,MAAM,iEAAiE,IAAI;AAEzF,UAAO,OAAO,aAAa,EAAE;IAC/B;AACF,SAAO,SAAS,MAAM,KAAK,KAAK,CAAC,CAAC,KAAK,GAAG"}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
const require_rolldown_runtime = require('../../../../../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
const require_index = require('../../../../../base64-js@1.5.1/node_modules/base64-js/index.cjs');
|
|
3
|
-
|
|
4
|
-
//#region ../../node_modules/.pnpm/@cosmjs+encoding@0.36.0/node_modules/@cosmjs/encoding/build/base64.js
|
|
5
|
-
var require_base64 = /* @__PURE__ */ require_rolldown_runtime.__commonJS({ "../../node_modules/.pnpm/@cosmjs+encoding@0.36.0/node_modules/@cosmjs/encoding/build/base64.js": ((exports) => {
|
|
6
|
-
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
7
|
-
if (k2 === void 0) k2 = k;
|
|
8
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
9
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) desc = {
|
|
10
|
-
enumerable: true,
|
|
11
|
-
get: function() {
|
|
12
|
-
return m[k];
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
Object.defineProperty(o, k2, desc);
|
|
16
|
-
}) : (function(o, m, k, k2) {
|
|
17
|
-
if (k2 === void 0) k2 = k;
|
|
18
|
-
o[k2] = m[k];
|
|
19
|
-
}));
|
|
20
|
-
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? (function(o, v) {
|
|
21
|
-
Object.defineProperty(o, "default", {
|
|
22
|
-
enumerable: true,
|
|
23
|
-
value: v
|
|
24
|
-
});
|
|
25
|
-
}) : function(o, v) {
|
|
26
|
-
o["default"] = v;
|
|
27
|
-
});
|
|
28
|
-
var __importStar = exports && exports.__importStar || (function() {
|
|
29
|
-
var ownKeys = function(o) {
|
|
30
|
-
ownKeys = Object.getOwnPropertyNames || function(o$1) {
|
|
31
|
-
var ar = [];
|
|
32
|
-
for (var k in o$1) if (Object.prototype.hasOwnProperty.call(o$1, k)) ar[ar.length] = k;
|
|
33
|
-
return ar;
|
|
34
|
-
};
|
|
35
|
-
return ownKeys(o);
|
|
36
|
-
};
|
|
37
|
-
return function(mod) {
|
|
38
|
-
if (mod && mod.__esModule) return mod;
|
|
39
|
-
var result = {};
|
|
40
|
-
if (mod != null) {
|
|
41
|
-
for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
42
|
-
}
|
|
43
|
-
__setModuleDefault(result, mod);
|
|
44
|
-
return result;
|
|
45
|
-
};
|
|
46
|
-
})();
|
|
47
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
-
exports.toBase64 = toBase64;
|
|
49
|
-
exports.fromBase64 = fromBase64;
|
|
50
|
-
const base64js = __importStar(require_index.default);
|
|
51
|
-
function toBase64(data) {
|
|
52
|
-
return base64js.fromByteArray(data);
|
|
53
|
-
}
|
|
54
|
-
function fromBase64(base64String) {
|
|
55
|
-
if (!base64String.match(/^[a-zA-Z0-9+/]*={0,2}$/)) throw new Error("Invalid base64 string format");
|
|
56
|
-
return base64js.toByteArray(base64String);
|
|
57
|
-
}
|
|
58
|
-
}) });
|
|
59
|
-
|
|
60
|
-
//#endregion
|
|
61
|
-
Object.defineProperty(exports, 'default', {
|
|
62
|
-
enumerable: true,
|
|
63
|
-
get: function () {
|
|
64
|
-
return require_base64();
|
|
65
|
-
}
|
|
66
|
-
});
|
|
67
|
-
//# sourceMappingURL=base64.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"base64.cjs","names":["o"],"sources":["../../../../../../../../../../node_modules/.pnpm/@cosmjs+encoding@0.36.0/node_modules/@cosmjs/encoding/build/base64.js"],"sourcesContent":["\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || (function () {\n var ownKeys = function(o) {\n ownKeys = Object.getOwnPropertyNames || function (o) {\n var ar = [];\n for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;\n return ar;\n };\n return ownKeys(o);\n };\n return function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== \"default\") __createBinding(result, mod, k[i]);\n __setModuleDefault(result, mod);\n return result;\n };\n})();\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.toBase64 = toBase64;\nexports.fromBase64 = fromBase64;\nconst base64js = __importStar(require(\"base64-js\"));\nfunction toBase64(data) {\n return base64js.fromByteArray(data);\n}\nfunction fromBase64(base64String) {\n if (!base64String.match(/^[a-zA-Z0-9+/]*={0,2}$/)) {\n throw new Error(\"Invalid base64 string format\");\n }\n return base64js.toByteArray(base64String);\n}\n//# sourceMappingURL=base64.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;CACA,IAAI,qCAAgC,oBAAqB,OAAO,UAAU,SAAS,GAAG,GAAG,GAAG,IAAI;AAC5F,MAAI,OAAO,OAAW,MAAK;EAC3B,IAAI,OAAO,OAAO,yBAAyB,GAAG,EAAE;AAChD,MAAI,CAAC,SAAS,SAAS,OAAO,CAAC,EAAE,aAAa,KAAK,YAAY,KAAK,cAClE,QAAO;GAAE,YAAY;GAAM,KAAK,WAAW;AAAE,WAAO,EAAE;;GAAO;AAE/D,SAAO,eAAe,GAAG,IAAI,KAAK;OAChC,SAAS,GAAG,GAAG,GAAG,IAAI;AACxB,MAAI,OAAO,OAAW,MAAK;AAC3B,IAAE,MAAM,EAAE;;CAEd,IAAI,wCAAmC,uBAAwB,OAAO,UAAU,SAAS,GAAG,GAAG;AAC3F,SAAO,eAAe,GAAG,WAAW;GAAE,YAAY;GAAM,OAAO;GAAG,CAAC;MAClE,SAAS,GAAG,GAAG;AAChB,IAAE,aAAa;;CAEnB,IAAI,kCAA6B,iBAAkB,WAAY;EAC3D,IAAI,UAAU,SAAS,GAAG;AACtB,aAAU,OAAO,uBAAuB,SAAU,KAAG;IACjD,IAAI,KAAK,EAAE;AACX,SAAK,IAAI,KAAKA,IAAG,KAAI,OAAO,UAAU,eAAe,KAAKA,KAAG,EAAE,CAAE,IAAG,GAAG,UAAU;AACjF,WAAO;;AAEX,UAAO,QAAQ,EAAE;;AAErB,SAAO,SAAU,KAAK;AAClB,OAAI,OAAO,IAAI,WAAY,QAAO;GAClC,IAAI,SAAS,EAAE;AACf,OAAI,OAAO,MAAM;SAAK,IAAI,IAAI,QAAQ,IAAI,EAAE,IAAI,GAAG,IAAI,EAAE,QAAQ,IAAK,KAAI,EAAE,OAAO,UAAW,iBAAgB,QAAQ,KAAK,EAAE,GAAG;;AAChI,sBAAmB,QAAQ,IAAI;AAC/B,UAAO;;KAEX;AACJ,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;AAC7D,SAAQ,WAAW;AACnB,SAAQ,aAAa;CACrB,MAAM,WAAW,mCAAkC;CACnD,SAAS,SAAS,MAAM;AACpB,SAAO,SAAS,cAAc,KAAK;;CAEvC,SAAS,WAAW,cAAc;AAC9B,MAAI,CAAC,aAAa,MAAM,yBAAyB,CAC7C,OAAM,IAAI,MAAM,+BAA+B;AAEnD,SAAO,SAAS,YAAY,aAAa"}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { __commonJS } from "../../../../../../../_virtual/rolldown_runtime.mjs";
|
|
2
|
-
import { require_base64_js } from "../../../../../base64-js@1.5.1/node_modules/base64-js/index.mjs";
|
|
3
|
-
|
|
4
|
-
//#region ../../node_modules/.pnpm/@cosmjs+encoding@0.36.0/node_modules/@cosmjs/encoding/build/base64.js
|
|
5
|
-
var require_base64 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@cosmjs+encoding@0.36.0/node_modules/@cosmjs/encoding/build/base64.js": ((exports) => {
|
|
6
|
-
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
7
|
-
if (k2 === void 0) k2 = k;
|
|
8
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
9
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) desc = {
|
|
10
|
-
enumerable: true,
|
|
11
|
-
get: function() {
|
|
12
|
-
return m[k];
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
Object.defineProperty(o, k2, desc);
|
|
16
|
-
}) : (function(o, m, k, k2) {
|
|
17
|
-
if (k2 === void 0) k2 = k;
|
|
18
|
-
o[k2] = m[k];
|
|
19
|
-
}));
|
|
20
|
-
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? (function(o, v) {
|
|
21
|
-
Object.defineProperty(o, "default", {
|
|
22
|
-
enumerable: true,
|
|
23
|
-
value: v
|
|
24
|
-
});
|
|
25
|
-
}) : function(o, v) {
|
|
26
|
-
o["default"] = v;
|
|
27
|
-
});
|
|
28
|
-
var __importStar = exports && exports.__importStar || (function() {
|
|
29
|
-
var ownKeys = function(o) {
|
|
30
|
-
ownKeys = Object.getOwnPropertyNames || function(o$1) {
|
|
31
|
-
var ar = [];
|
|
32
|
-
for (var k in o$1) if (Object.prototype.hasOwnProperty.call(o$1, k)) ar[ar.length] = k;
|
|
33
|
-
return ar;
|
|
34
|
-
};
|
|
35
|
-
return ownKeys(o);
|
|
36
|
-
};
|
|
37
|
-
return function(mod) {
|
|
38
|
-
if (mod && mod.__esModule) return mod;
|
|
39
|
-
var result = {};
|
|
40
|
-
if (mod != null) {
|
|
41
|
-
for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
42
|
-
}
|
|
43
|
-
__setModuleDefault(result, mod);
|
|
44
|
-
return result;
|
|
45
|
-
};
|
|
46
|
-
})();
|
|
47
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
-
exports.toBase64 = toBase64;
|
|
49
|
-
exports.fromBase64 = fromBase64;
|
|
50
|
-
const base64js = __importStar(require_base64_js());
|
|
51
|
-
function toBase64(data) {
|
|
52
|
-
return base64js.fromByteArray(data);
|
|
53
|
-
}
|
|
54
|
-
function fromBase64(base64String) {
|
|
55
|
-
if (!base64String.match(/^[a-zA-Z0-9+/]*={0,2}$/)) throw new Error("Invalid base64 string format");
|
|
56
|
-
return base64js.toByteArray(base64String);
|
|
57
|
-
}
|
|
58
|
-
}) });
|
|
59
|
-
|
|
60
|
-
//#endregion
|
|
61
|
-
export default require_base64();
|
|
62
|
-
|
|
63
|
-
export { require_base64 };
|
|
64
|
-
//# sourceMappingURL=base64.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"base64.mjs","names":["o"],"sources":["../../../../../../../../../../node_modules/.pnpm/@cosmjs+encoding@0.36.0/node_modules/@cosmjs/encoding/build/base64.js"],"sourcesContent":["\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || (function () {\n var ownKeys = function(o) {\n ownKeys = Object.getOwnPropertyNames || function (o) {\n var ar = [];\n for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;\n return ar;\n };\n return ownKeys(o);\n };\n return function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== \"default\") __createBinding(result, mod, k[i]);\n __setModuleDefault(result, mod);\n return result;\n };\n})();\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.toBase64 = toBase64;\nexports.fromBase64 = fromBase64;\nconst base64js = __importStar(require(\"base64-js\"));\nfunction toBase64(data) {\n return base64js.fromByteArray(data);\n}\nfunction fromBase64(base64String) {\n if (!base64String.match(/^[a-zA-Z0-9+/]*={0,2}$/)) {\n throw new Error(\"Invalid base64 string format\");\n }\n return base64js.toByteArray(base64String);\n}\n//# sourceMappingURL=base64.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;CACA,IAAI,qCAAgC,oBAAqB,OAAO,UAAU,SAAS,GAAG,GAAG,GAAG,IAAI;AAC5F,MAAI,OAAO,OAAW,MAAK;EAC3B,IAAI,OAAO,OAAO,yBAAyB,GAAG,EAAE;AAChD,MAAI,CAAC,SAAS,SAAS,OAAO,CAAC,EAAE,aAAa,KAAK,YAAY,KAAK,cAClE,QAAO;GAAE,YAAY;GAAM,KAAK,WAAW;AAAE,WAAO,EAAE;;GAAO;AAE/D,SAAO,eAAe,GAAG,IAAI,KAAK;OAChC,SAAS,GAAG,GAAG,GAAG,IAAI;AACxB,MAAI,OAAO,OAAW,MAAK;AAC3B,IAAE,MAAM,EAAE;;CAEd,IAAI,wCAAmC,uBAAwB,OAAO,UAAU,SAAS,GAAG,GAAG;AAC3F,SAAO,eAAe,GAAG,WAAW;GAAE,YAAY;GAAM,OAAO;GAAG,CAAC;MAClE,SAAS,GAAG,GAAG;AAChB,IAAE,aAAa;;CAEnB,IAAI,kCAA6B,iBAAkB,WAAY;EAC3D,IAAI,UAAU,SAAS,GAAG;AACtB,aAAU,OAAO,uBAAuB,SAAU,KAAG;IACjD,IAAI,KAAK,EAAE;AACX,SAAK,IAAI,KAAKA,IAAG,KAAI,OAAO,UAAU,eAAe,KAAKA,KAAG,EAAE,CAAE,IAAG,GAAG,UAAU;AACjF,WAAO;;AAEX,UAAO,QAAQ,EAAE;;AAErB,SAAO,SAAU,KAAK;AAClB,OAAI,OAAO,IAAI,WAAY,QAAO;GAClC,IAAI,SAAS,EAAE;AACf,OAAI,OAAO,MAAM;SAAK,IAAI,IAAI,QAAQ,IAAI,EAAE,IAAI,GAAG,IAAI,EAAE,QAAQ,IAAK,KAAI,EAAE,OAAO,UAAW,iBAAgB,QAAQ,KAAK,EAAE,GAAG;;AAChI,sBAAmB,QAAQ,IAAI;AAC/B,UAAO;;KAEX;AACJ,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;AAC7D,SAAQ,WAAW;AACnB,SAAQ,aAAa;CACrB,MAAM,WAAW,iCAAkC;CACnD,SAAS,SAAS,MAAM;AACpB,SAAO,SAAS,cAAc,KAAK;;CAEvC,SAAS,WAAW,cAAc;AAC9B,MAAI,CAAC,aAAa,MAAM,yBAAyB,CAC7C,OAAM,IAAI,MAAM,+BAA+B;AAEnD,SAAO,SAAS,YAAY,aAAa"}
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
const require_rolldown_runtime = require('../../../../../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
|
|
3
|
-
//#region ../../node_modules/.pnpm/@cosmjs+encoding@0.36.0/node_modules/@cosmjs/encoding/build/bech32.js
|
|
4
|
-
var require_bech32 = /* @__PURE__ */ require_rolldown_runtime.__commonJS({ "../../node_modules/.pnpm/@cosmjs+encoding@0.36.0/node_modules/@cosmjs/encoding/build/bech32.js": ((exports) => {
|
|
5
|
-
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === void 0) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) desc = {
|
|
9
|
-
enumerable: true,
|
|
10
|
-
get: function() {
|
|
11
|
-
return m[k];
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(o, k2, desc);
|
|
15
|
-
}) : (function(o, m, k, k2) {
|
|
16
|
-
if (k2 === void 0) k2 = k;
|
|
17
|
-
o[k2] = m[k];
|
|
18
|
-
}));
|
|
19
|
-
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? (function(o, v) {
|
|
20
|
-
Object.defineProperty(o, "default", {
|
|
21
|
-
enumerable: true,
|
|
22
|
-
value: v
|
|
23
|
-
});
|
|
24
|
-
}) : function(o, v) {
|
|
25
|
-
o["default"] = v;
|
|
26
|
-
});
|
|
27
|
-
var __importStar = exports && exports.__importStar || (function() {
|
|
28
|
-
var ownKeys = function(o) {
|
|
29
|
-
ownKeys = Object.getOwnPropertyNames || function(o$1) {
|
|
30
|
-
var ar = [];
|
|
31
|
-
for (var k in o$1) if (Object.prototype.hasOwnProperty.call(o$1, k)) ar[ar.length] = k;
|
|
32
|
-
return ar;
|
|
33
|
-
};
|
|
34
|
-
return ownKeys(o);
|
|
35
|
-
};
|
|
36
|
-
return function(mod) {
|
|
37
|
-
if (mod && mod.__esModule) return mod;
|
|
38
|
-
var result = {};
|
|
39
|
-
if (mod != null) {
|
|
40
|
-
for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
41
|
-
}
|
|
42
|
-
__setModuleDefault(result, mod);
|
|
43
|
-
return result;
|
|
44
|
-
};
|
|
45
|
-
})();
|
|
46
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
47
|
-
exports.toBech32 = toBech32;
|
|
48
|
-
exports.fromBech32 = fromBech32;
|
|
49
|
-
exports.normalizeBech32 = normalizeBech32;
|
|
50
|
-
const bech32 = __importStar(require("bech32"));
|
|
51
|
-
function toBech32(prefix, data, limit) {
|
|
52
|
-
return bech32.encode(prefix, bech32.toWords(data), limit);
|
|
53
|
-
}
|
|
54
|
-
function fromBech32(address, limit = Infinity) {
|
|
55
|
-
const decodedAddress = bech32.decode(address, limit);
|
|
56
|
-
return {
|
|
57
|
-
prefix: decodedAddress.prefix,
|
|
58
|
-
data: new Uint8Array(bech32.fromWords(decodedAddress.words))
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Takes a bech32 address and returns a normalized (i.e. lower case) representation of it.
|
|
63
|
-
*
|
|
64
|
-
* The input is validated along the way, which makes this significantly safer than
|
|
65
|
-
* using `address.toLowerCase()`.
|
|
66
|
-
*/
|
|
67
|
-
function normalizeBech32(address) {
|
|
68
|
-
const { prefix, data } = fromBech32(address);
|
|
69
|
-
return toBech32(prefix, data);
|
|
70
|
-
}
|
|
71
|
-
}) });
|
|
72
|
-
|
|
73
|
-
//#endregion
|
|
74
|
-
Object.defineProperty(exports, 'default', {
|
|
75
|
-
enumerable: true,
|
|
76
|
-
get: function () {
|
|
77
|
-
return require_bech32();
|
|
78
|
-
}
|
|
79
|
-
});
|
|
80
|
-
//# sourceMappingURL=bech32.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bech32.cjs","names":["o"],"sources":["../../../../../../../../../../node_modules/.pnpm/@cosmjs+encoding@0.36.0/node_modules/@cosmjs/encoding/build/bech32.js"],"sourcesContent":["\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || (function () {\n var ownKeys = function(o) {\n ownKeys = Object.getOwnPropertyNames || function (o) {\n var ar = [];\n for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;\n return ar;\n };\n return ownKeys(o);\n };\n return function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== \"default\") __createBinding(result, mod, k[i]);\n __setModuleDefault(result, mod);\n return result;\n };\n})();\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.toBech32 = toBech32;\nexports.fromBech32 = fromBech32;\nexports.normalizeBech32 = normalizeBech32;\nconst bech32 = __importStar(require(\"bech32\"));\nfunction toBech32(prefix, data, limit) {\n const address = bech32.encode(prefix, bech32.toWords(data), limit);\n return address;\n}\nfunction fromBech32(address, limit = Infinity) {\n const decodedAddress = bech32.decode(address, limit);\n return {\n prefix: decodedAddress.prefix,\n data: new Uint8Array(bech32.fromWords(decodedAddress.words)),\n };\n}\n/**\n * Takes a bech32 address and returns a normalized (i.e. lower case) representation of it.\n *\n * The input is validated along the way, which makes this significantly safer than\n * using `address.toLowerCase()`.\n */\nfunction normalizeBech32(address) {\n const { prefix, data } = fromBech32(address);\n return toBech32(prefix, data);\n}\n//# sourceMappingURL=bech32.js.map"],"x_google_ignoreList":[0],"mappings":";;;;CACA,IAAI,qCAAgC,oBAAqB,OAAO,UAAU,SAAS,GAAG,GAAG,GAAG,IAAI;AAC5F,MAAI,OAAO,OAAW,MAAK;EAC3B,IAAI,OAAO,OAAO,yBAAyB,GAAG,EAAE;AAChD,MAAI,CAAC,SAAS,SAAS,OAAO,CAAC,EAAE,aAAa,KAAK,YAAY,KAAK,cAClE,QAAO;GAAE,YAAY;GAAM,KAAK,WAAW;AAAE,WAAO,EAAE;;GAAO;AAE/D,SAAO,eAAe,GAAG,IAAI,KAAK;OAChC,SAAS,GAAG,GAAG,GAAG,IAAI;AACxB,MAAI,OAAO,OAAW,MAAK;AAC3B,IAAE,MAAM,EAAE;;CAEd,IAAI,wCAAmC,uBAAwB,OAAO,UAAU,SAAS,GAAG,GAAG;AAC3F,SAAO,eAAe,GAAG,WAAW;GAAE,YAAY;GAAM,OAAO;GAAG,CAAC;MAClE,SAAS,GAAG,GAAG;AAChB,IAAE,aAAa;;CAEnB,IAAI,kCAA6B,iBAAkB,WAAY;EAC3D,IAAI,UAAU,SAAS,GAAG;AACtB,aAAU,OAAO,uBAAuB,SAAU,KAAG;IACjD,IAAI,KAAK,EAAE;AACX,SAAK,IAAI,KAAKA,IAAG,KAAI,OAAO,UAAU,eAAe,KAAKA,KAAG,EAAE,CAAE,IAAG,GAAG,UAAU;AACjF,WAAO;;AAEX,UAAO,QAAQ,EAAE;;AAErB,SAAO,SAAU,KAAK;AAClB,OAAI,OAAO,IAAI,WAAY,QAAO;GAClC,IAAI,SAAS,EAAE;AACf,OAAI,OAAO,MAAM;SAAK,IAAI,IAAI,QAAQ,IAAI,EAAE,IAAI,GAAG,IAAI,EAAE,QAAQ,IAAK,KAAI,EAAE,OAAO,UAAW,iBAAgB,QAAQ,KAAK,EAAE,GAAG;;AAChI,sBAAmB,QAAQ,IAAI;AAC/B,UAAO;;KAEX;AACJ,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;AAC7D,SAAQ,WAAW;AACnB,SAAQ,aAAa;AACrB,SAAQ,kBAAkB;CAC1B,MAAM,SAAS,aAAa,QAAQ,SAAS,CAAC;CAC9C,SAAS,SAAS,QAAQ,MAAM,OAAO;AAEnC,SADgB,OAAO,OAAO,QAAQ,OAAO,QAAQ,KAAK,EAAE,MAAM;;CAGtE,SAAS,WAAW,SAAS,QAAQ,UAAU;EAC3C,MAAM,iBAAiB,OAAO,OAAO,SAAS,MAAM;AACpD,SAAO;GACH,QAAQ,eAAe;GACvB,MAAM,IAAI,WAAW,OAAO,UAAU,eAAe,MAAM,CAAC;GAC/D;;;;;;;;CAQL,SAAS,gBAAgB,SAAS;EAC9B,MAAM,EAAE,QAAQ,SAAS,WAAW,QAAQ;AAC5C,SAAO,SAAS,QAAQ,KAAK"}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { __commonJS, __require } from "../../../../../../../_virtual/rolldown_runtime.mjs";
|
|
2
|
-
|
|
3
|
-
//#region ../../node_modules/.pnpm/@cosmjs+encoding@0.36.0/node_modules/@cosmjs/encoding/build/bech32.js
|
|
4
|
-
var require_bech32 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@cosmjs+encoding@0.36.0/node_modules/@cosmjs/encoding/build/bech32.js": ((exports) => {
|
|
5
|
-
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === void 0) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) desc = {
|
|
9
|
-
enumerable: true,
|
|
10
|
-
get: function() {
|
|
11
|
-
return m[k];
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(o, k2, desc);
|
|
15
|
-
}) : (function(o, m, k, k2) {
|
|
16
|
-
if (k2 === void 0) k2 = k;
|
|
17
|
-
o[k2] = m[k];
|
|
18
|
-
}));
|
|
19
|
-
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? (function(o, v) {
|
|
20
|
-
Object.defineProperty(o, "default", {
|
|
21
|
-
enumerable: true,
|
|
22
|
-
value: v
|
|
23
|
-
});
|
|
24
|
-
}) : function(o, v) {
|
|
25
|
-
o["default"] = v;
|
|
26
|
-
});
|
|
27
|
-
var __importStar = exports && exports.__importStar || (function() {
|
|
28
|
-
var ownKeys = function(o) {
|
|
29
|
-
ownKeys = Object.getOwnPropertyNames || function(o$1) {
|
|
30
|
-
var ar = [];
|
|
31
|
-
for (var k in o$1) if (Object.prototype.hasOwnProperty.call(o$1, k)) ar[ar.length] = k;
|
|
32
|
-
return ar;
|
|
33
|
-
};
|
|
34
|
-
return ownKeys(o);
|
|
35
|
-
};
|
|
36
|
-
return function(mod) {
|
|
37
|
-
if (mod && mod.__esModule) return mod;
|
|
38
|
-
var result = {};
|
|
39
|
-
if (mod != null) {
|
|
40
|
-
for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
41
|
-
}
|
|
42
|
-
__setModuleDefault(result, mod);
|
|
43
|
-
return result;
|
|
44
|
-
};
|
|
45
|
-
})();
|
|
46
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
47
|
-
exports.toBech32 = toBech32;
|
|
48
|
-
exports.fromBech32 = fromBech32;
|
|
49
|
-
exports.normalizeBech32 = normalizeBech32;
|
|
50
|
-
const bech32 = __importStar(__require("bech32"));
|
|
51
|
-
function toBech32(prefix, data, limit) {
|
|
52
|
-
return bech32.encode(prefix, bech32.toWords(data), limit);
|
|
53
|
-
}
|
|
54
|
-
function fromBech32(address, limit = Infinity) {
|
|
55
|
-
const decodedAddress = bech32.decode(address, limit);
|
|
56
|
-
return {
|
|
57
|
-
prefix: decodedAddress.prefix,
|
|
58
|
-
data: new Uint8Array(bech32.fromWords(decodedAddress.words))
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Takes a bech32 address and returns a normalized (i.e. lower case) representation of it.
|
|
63
|
-
*
|
|
64
|
-
* The input is validated along the way, which makes this significantly safer than
|
|
65
|
-
* using `address.toLowerCase()`.
|
|
66
|
-
*/
|
|
67
|
-
function normalizeBech32(address) {
|
|
68
|
-
const { prefix, data } = fromBech32(address);
|
|
69
|
-
return toBech32(prefix, data);
|
|
70
|
-
}
|
|
71
|
-
}) });
|
|
72
|
-
|
|
73
|
-
//#endregion
|
|
74
|
-
export default require_bech32();
|
|
75
|
-
|
|
76
|
-
export { require_bech32 };
|
|
77
|
-
//# sourceMappingURL=bech32.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bech32.mjs","names":["o"],"sources":["../../../../../../../../../../node_modules/.pnpm/@cosmjs+encoding@0.36.0/node_modules/@cosmjs/encoding/build/bech32.js"],"sourcesContent":["\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || (function () {\n var ownKeys = function(o) {\n ownKeys = Object.getOwnPropertyNames || function (o) {\n var ar = [];\n for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;\n return ar;\n };\n return ownKeys(o);\n };\n return function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== \"default\") __createBinding(result, mod, k[i]);\n __setModuleDefault(result, mod);\n return result;\n };\n})();\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.toBech32 = toBech32;\nexports.fromBech32 = fromBech32;\nexports.normalizeBech32 = normalizeBech32;\nconst bech32 = __importStar(require(\"bech32\"));\nfunction toBech32(prefix, data, limit) {\n const address = bech32.encode(prefix, bech32.toWords(data), limit);\n return address;\n}\nfunction fromBech32(address, limit = Infinity) {\n const decodedAddress = bech32.decode(address, limit);\n return {\n prefix: decodedAddress.prefix,\n data: new Uint8Array(bech32.fromWords(decodedAddress.words)),\n };\n}\n/**\n * Takes a bech32 address and returns a normalized (i.e. lower case) representation of it.\n *\n * The input is validated along the way, which makes this significantly safer than\n * using `address.toLowerCase()`.\n */\nfunction normalizeBech32(address) {\n const { prefix, data } = fromBech32(address);\n return toBech32(prefix, data);\n}\n//# sourceMappingURL=bech32.js.map"],"x_google_ignoreList":[0],"mappings":";;;;CACA,IAAI,qCAAgC,oBAAqB,OAAO,UAAU,SAAS,GAAG,GAAG,GAAG,IAAI;AAC5F,MAAI,OAAO,OAAW,MAAK;EAC3B,IAAI,OAAO,OAAO,yBAAyB,GAAG,EAAE;AAChD,MAAI,CAAC,SAAS,SAAS,OAAO,CAAC,EAAE,aAAa,KAAK,YAAY,KAAK,cAClE,QAAO;GAAE,YAAY;GAAM,KAAK,WAAW;AAAE,WAAO,EAAE;;GAAO;AAE/D,SAAO,eAAe,GAAG,IAAI,KAAK;OAChC,SAAS,GAAG,GAAG,GAAG,IAAI;AACxB,MAAI,OAAO,OAAW,MAAK;AAC3B,IAAE,MAAM,EAAE;;CAEd,IAAI,wCAAmC,uBAAwB,OAAO,UAAU,SAAS,GAAG,GAAG;AAC3F,SAAO,eAAe,GAAG,WAAW;GAAE,YAAY;GAAM,OAAO;GAAG,CAAC;MAClE,SAAS,GAAG,GAAG;AAChB,IAAE,aAAa;;CAEnB,IAAI,kCAA6B,iBAAkB,WAAY;EAC3D,IAAI,UAAU,SAAS,GAAG;AACtB,aAAU,OAAO,uBAAuB,SAAU,KAAG;IACjD,IAAI,KAAK,EAAE;AACX,SAAK,IAAI,KAAKA,IAAG,KAAI,OAAO,UAAU,eAAe,KAAKA,KAAG,EAAE,CAAE,IAAG,GAAG,UAAU;AACjF,WAAO;;AAEX,UAAO,QAAQ,EAAE;;AAErB,SAAO,SAAU,KAAK;AAClB,OAAI,OAAO,IAAI,WAAY,QAAO;GAClC,IAAI,SAAS,EAAE;AACf,OAAI,OAAO,MAAM;SAAK,IAAI,IAAI,QAAQ,IAAI,EAAE,IAAI,GAAG,IAAI,EAAE,QAAQ,IAAK,KAAI,EAAE,OAAO,UAAW,iBAAgB,QAAQ,KAAK,EAAE,GAAG;;AAChI,sBAAmB,QAAQ,IAAI;AAC/B,UAAO;;KAEX;AACJ,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;AAC7D,SAAQ,WAAW;AACnB,SAAQ,aAAa;AACrB,SAAQ,kBAAkB;CAC1B,MAAM,SAAS,uBAAqB,SAAS,CAAC;CAC9C,SAAS,SAAS,QAAQ,MAAM,OAAO;AAEnC,SADgB,OAAO,OAAO,QAAQ,OAAO,QAAQ,KAAK,EAAE,MAAM;;CAGtE,SAAS,WAAW,SAAS,QAAQ,UAAU;EAC3C,MAAM,iBAAiB,OAAO,OAAO,SAAS,MAAM;AACpD,SAAO;GACH,QAAQ,eAAe;GACvB,MAAM,IAAI,WAAW,OAAO,UAAU,eAAe,MAAM,CAAC;GAC/D;;;;;;;;CAQL,SAAS,gBAAgB,SAAS;EAC9B,MAAM,EAAE,QAAQ,SAAS,WAAW,QAAQ;AAC5C,SAAO,SAAS,QAAQ,KAAK"}
|
package/dist/node_modules/.pnpm/@cosmjs_encoding@0.36.0/node_modules/@cosmjs/encoding/build/hex.cjs
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
const require_rolldown_runtime = require('../../../../../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
|
|
3
|
-
//#region ../../node_modules/.pnpm/@cosmjs+encoding@0.36.0/node_modules/@cosmjs/encoding/build/hex.js
|
|
4
|
-
var require_hex = /* @__PURE__ */ require_rolldown_runtime.__commonJS({ "../../node_modules/.pnpm/@cosmjs+encoding@0.36.0/node_modules/@cosmjs/encoding/build/hex.js": ((exports) => {
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.toHex = toHex;
|
|
7
|
-
exports.fromHex = fromHex;
|
|
8
|
-
function toHex(data) {
|
|
9
|
-
let out = "";
|
|
10
|
-
for (const byte of data) out += ("0" + byte.toString(16)).slice(-2);
|
|
11
|
-
return out;
|
|
12
|
-
}
|
|
13
|
-
function fromHex(hexstring) {
|
|
14
|
-
if (hexstring.length % 2 !== 0) throw new Error("hex string length must be a multiple of 2");
|
|
15
|
-
const out = new Uint8Array(hexstring.length / 2);
|
|
16
|
-
for (let i = 0; i < out.length; i++) {
|
|
17
|
-
const j = 2 * i;
|
|
18
|
-
const hexByteAsString = hexstring.slice(j, j + 2);
|
|
19
|
-
if (!hexByteAsString.match(/[0-9a-f]{2}/i)) throw new Error("hex string contains invalid characters");
|
|
20
|
-
out[i] = parseInt(hexByteAsString, 16);
|
|
21
|
-
}
|
|
22
|
-
return out;
|
|
23
|
-
}
|
|
24
|
-
}) });
|
|
25
|
-
|
|
26
|
-
//#endregion
|
|
27
|
-
Object.defineProperty(exports, 'default', {
|
|
28
|
-
enumerable: true,
|
|
29
|
-
get: function () {
|
|
30
|
-
return require_hex();
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
//# sourceMappingURL=hex.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hex.cjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/@cosmjs+encoding@0.36.0/node_modules/@cosmjs/encoding/build/hex.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.toHex = toHex;\nexports.fromHex = fromHex;\nfunction toHex(data) {\n let out = \"\";\n for (const byte of data) {\n out += (\"0\" + byte.toString(16)).slice(-2);\n }\n return out;\n}\nfunction fromHex(hexstring) {\n if (hexstring.length % 2 !== 0) {\n throw new Error(\"hex string length must be a multiple of 2\");\n }\n const out = new Uint8Array(hexstring.length / 2);\n for (let i = 0; i < out.length; i++) {\n const j = 2 * i;\n const hexByteAsString = hexstring.slice(j, j + 2);\n if (!hexByteAsString.match(/[0-9a-f]{2}/i)) {\n throw new Error(\"hex string contains invalid characters\");\n }\n out[i] = parseInt(hexByteAsString, 16);\n }\n return out;\n}\n//# sourceMappingURL=hex.js.map"],"x_google_ignoreList":[0],"mappings":";;;;AACA,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;AAC7D,SAAQ,QAAQ;AAChB,SAAQ,UAAU;CAClB,SAAS,MAAM,MAAM;EACjB,IAAI,MAAM;AACV,OAAK,MAAM,QAAQ,KACf,SAAQ,MAAM,KAAK,SAAS,GAAG,EAAE,MAAM,GAAG;AAE9C,SAAO;;CAEX,SAAS,QAAQ,WAAW;AACxB,MAAI,UAAU,SAAS,MAAM,EACzB,OAAM,IAAI,MAAM,4CAA4C;EAEhE,MAAM,MAAM,IAAI,WAAW,UAAU,SAAS,EAAE;AAChD,OAAK,IAAI,IAAI,GAAG,IAAI,IAAI,QAAQ,KAAK;GACjC,MAAM,IAAI,IAAI;GACd,MAAM,kBAAkB,UAAU,MAAM,GAAG,IAAI,EAAE;AACjD,OAAI,CAAC,gBAAgB,MAAM,eAAe,CACtC,OAAM,IAAI,MAAM,yCAAyC;AAE7D,OAAI,KAAK,SAAS,iBAAiB,GAAG;;AAE1C,SAAO"}
|
package/dist/node_modules/.pnpm/@cosmjs_encoding@0.36.0/node_modules/@cosmjs/encoding/build/hex.mjs
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { __commonJS } from "../../../../../../../_virtual/rolldown_runtime.mjs";
|
|
2
|
-
|
|
3
|
-
//#region ../../node_modules/.pnpm/@cosmjs+encoding@0.36.0/node_modules/@cosmjs/encoding/build/hex.js
|
|
4
|
-
var require_hex = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@cosmjs+encoding@0.36.0/node_modules/@cosmjs/encoding/build/hex.js": ((exports) => {
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.toHex = toHex;
|
|
7
|
-
exports.fromHex = fromHex;
|
|
8
|
-
function toHex(data) {
|
|
9
|
-
let out = "";
|
|
10
|
-
for (const byte of data) out += ("0" + byte.toString(16)).slice(-2);
|
|
11
|
-
return out;
|
|
12
|
-
}
|
|
13
|
-
function fromHex(hexstring) {
|
|
14
|
-
if (hexstring.length % 2 !== 0) throw new Error("hex string length must be a multiple of 2");
|
|
15
|
-
const out = new Uint8Array(hexstring.length / 2);
|
|
16
|
-
for (let i = 0; i < out.length; i++) {
|
|
17
|
-
const j = 2 * i;
|
|
18
|
-
const hexByteAsString = hexstring.slice(j, j + 2);
|
|
19
|
-
if (!hexByteAsString.match(/[0-9a-f]{2}/i)) throw new Error("hex string contains invalid characters");
|
|
20
|
-
out[i] = parseInt(hexByteAsString, 16);
|
|
21
|
-
}
|
|
22
|
-
return out;
|
|
23
|
-
}
|
|
24
|
-
}) });
|
|
25
|
-
|
|
26
|
-
//#endregion
|
|
27
|
-
export default require_hex();
|
|
28
|
-
|
|
29
|
-
export { require_hex };
|
|
30
|
-
//# sourceMappingURL=hex.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hex.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/@cosmjs+encoding@0.36.0/node_modules/@cosmjs/encoding/build/hex.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.toHex = toHex;\nexports.fromHex = fromHex;\nfunction toHex(data) {\n let out = \"\";\n for (const byte of data) {\n out += (\"0\" + byte.toString(16)).slice(-2);\n }\n return out;\n}\nfunction fromHex(hexstring) {\n if (hexstring.length % 2 !== 0) {\n throw new Error(\"hex string length must be a multiple of 2\");\n }\n const out = new Uint8Array(hexstring.length / 2);\n for (let i = 0; i < out.length; i++) {\n const j = 2 * i;\n const hexByteAsString = hexstring.slice(j, j + 2);\n if (!hexByteAsString.match(/[0-9a-f]{2}/i)) {\n throw new Error(\"hex string contains invalid characters\");\n }\n out[i] = parseInt(hexByteAsString, 16);\n }\n return out;\n}\n//# sourceMappingURL=hex.js.map"],"x_google_ignoreList":[0],"mappings":";;;;AACA,QAAO,eAAe,SAAS,cAAc,EAAE,OAAO,MAAM,CAAC;AAC7D,SAAQ,QAAQ;AAChB,SAAQ,UAAU;CAClB,SAAS,MAAM,MAAM;EACjB,IAAI,MAAM;AACV,OAAK,MAAM,QAAQ,KACf,SAAQ,MAAM,KAAK,SAAS,GAAG,EAAE,MAAM,GAAG;AAE9C,SAAO;;CAEX,SAAS,QAAQ,WAAW;AACxB,MAAI,UAAU,SAAS,MAAM,EACzB,OAAM,IAAI,MAAM,4CAA4C;EAEhE,MAAM,MAAM,IAAI,WAAW,UAAU,SAAS,EAAE;AAChD,OAAK,IAAI,IAAI,GAAG,IAAI,IAAI,QAAQ,KAAK;GACjC,MAAM,IAAI,IAAI;GACd,MAAM,kBAAkB,UAAU,MAAM,GAAG,IAAI,EAAE;AACjD,OAAI,CAAC,gBAAgB,MAAM,eAAe,CACtC,OAAM,IAAI,MAAM,yCAAyC;AAE7D,OAAI,KAAK,SAAS,iBAAiB,GAAG;;AAE1C,SAAO"}
|