Files
pezkuwi-mobile-app/frontend/.metro-cache/cache/d0/89704f3f3a4f42d8532fe025c2ecc2b0e5d76e184ca5629d20f9fd47564f994526b164
T
2025-10-24 02:48:32 +00:00

1 line
9.3 KiB
Plaintext

{"dependencies":[{"name":"@polkadot/util","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":129,"index":129}}],"key":"ISHU1ovvPMrCldqRjtd1JhW9dyo=","exportNames":["*"],"imports":1}},{"name":"../blake2/asU8a.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":2,"column":0,"index":130},"end":{"line":2,"column":49,"index":179}}],"key":"HnNMKKBRIayEACsqI9OZSkOYCOw=","exportNames":["*"],"imports":1}},{"name":"../bn.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":3,"column":0,"index":180},"end":{"line":3,"column":42,"index":222}}],"key":"XiEl6l/fr4LlRM707ehJh41iiMk=","exportNames":["*"],"imports":1}}],"output":[{"data":{"code":"__d(function (global, require, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {\n \"use strict\";\n\n Object.defineProperty(exports, '__esModule', {\n value: true\n });\n Object.defineProperty(exports, \"DeriveJunction\", {\n enumerable: true,\n get: function () {\n return DeriveJunction;\n }\n });\n var _polkadotUtil = require(_dependencyMap[0], \"@polkadot/util\");\n var _blake2AsU8aJs = require(_dependencyMap[1], \"../blake2/asU8a.js\");\n var _bnJs = require(_dependencyMap[2], \"../bn.js\");\n const RE_NUMBER = /^\\d+$/;\n const JUNCTION_ID_LEN = 32;\n class DeriveJunction {\n #chainCode = new Uint8Array(32);\n #isHard = false;\n static from(value) {\n const result = new DeriveJunction();\n const [code, isHard] = value.startsWith('/') ? [value.substring(1), true] : [value, false];\n result.soft(RE_NUMBER.test(code) ? new _polkadotUtil.BN(code, 10) : code);\n return isHard ? result.harden() : result;\n }\n get chainCode() {\n return this.#chainCode;\n }\n get isHard() {\n return this.#isHard;\n }\n get isSoft() {\n return !this.#isHard;\n }\n hard(value) {\n return this.soft(value).harden();\n }\n harden() {\n this.#isHard = true;\n return this;\n }\n soft(value) {\n if ((0, _polkadotUtil.isNumber)(value) || (0, _polkadotUtil.isBn)(value) || (0, _polkadotUtil.isBigInt)(value)) {\n return this.soft((0, _polkadotUtil.bnToU8a)(value, _bnJs.BN_LE_256_OPTS));\n } else if ((0, _polkadotUtil.isHex)(value)) {\n return this.soft((0, _polkadotUtil.hexToU8a)(value));\n } else if ((0, _polkadotUtil.isString)(value)) {\n return this.soft((0, _polkadotUtil.compactAddLength)((0, _polkadotUtil.stringToU8a)(value)));\n } else if (value.length > JUNCTION_ID_LEN) {\n return this.soft((0, _blake2AsU8aJs.blake2AsU8a)(value));\n }\n this.#chainCode.fill(0);\n this.#chainCode.set(value, 0);\n return this;\n }\n soften() {\n this.#isHard = false;\n return this;\n }\n }\n});","lineCount":62,"map":[[7,2,6,0,"Object"],[7,8,6,0],[7,9,6,0,"defineProperty"],[7,23,6,0],[7,24,6,0,"exports"],[7,31,6,0],[8,4,6,0,"enumerable"],[8,14,6,0],[9,4,6,0,"get"],[9,7,6,0],[9,18,6,0,"get"],[9,19,6,0],[10,6,6,0],[10,13,6,0,"DeriveJunction"],[10,27,6,0],[11,4,6,0],[12,2,6,0],[13,2,1,0],[13,6,1,0,"_polkadotUtil"],[13,19,1,0],[13,22,1,0,"require"],[13,29,1,0],[13,30,1,0,"_dependencyMap"],[13,44,1,0],[14,2,2,0],[14,6,2,0,"_blake2AsU8aJs"],[14,20,2,0],[14,23,2,0,"require"],[14,30,2,0],[14,31,2,0,"_dependencyMap"],[14,45,2,0],[15,2,3,0],[15,6,3,0,"_bnJs"],[15,11,3,0],[15,14,3,0,"require"],[15,21,3,0],[15,22,3,0,"_dependencyMap"],[15,36,3,0],[16,2,4,0],[16,8,4,6,"RE_NUMBER"],[16,17,4,15],[16,20,4,18],[16,27,4,25],[17,2,5,0],[17,8,5,6,"JUNCTION_ID_LEN"],[17,23,5,21],[17,26,5,24],[17,28,5,26],[18,2,6,7],[18,8,6,13,"DeriveJunction"],[18,22,6,27],[18,23,6,28],[19,4,7,4],[19,5,7,5,"chainCode"],[19,14,7,14],[19,17,7,17],[19,21,7,21,"Uint8Array"],[19,31,7,31],[19,32,7,32],[19,34,7,34],[19,35,7,35],[20,4,8,4],[20,5,8,5,"isHard"],[20,11,8,11],[20,14,8,14],[20,19,8,19],[21,4,9,4],[21,11,9,11,"from"],[21,15,9,15,"from"],[21,16,9,16,"value"],[21,21,9,21],[21,23,9,23],[22,6,10,8],[22,12,10,14,"result"],[22,18,10,20],[22,21,10,23],[22,25,10,27,"DeriveJunction"],[22,39,10,41],[22,40,10,42],[22,41,10,43],[23,6,11,8],[23,12,11,14],[23,13,11,15,"code"],[23,17,11,19],[23,19,11,21,"isHard"],[23,25,11,27],[23,26,11,28],[23,29,11,31,"value"],[23,34,11,36],[23,35,11,37,"startsWith"],[23,45,11,47],[23,46,11,48],[23,49,11,51],[23,50,11,52],[23,53,12,14],[23,54,12,15,"value"],[23,59,12,20],[23,60,12,21,"substring"],[23,69,12,30],[23,70,12,31],[23,71,12,32],[23,72,12,33],[23,74,12,35],[23,78,12,39],[23,79,12,40],[23,82,13,14],[23,83,13,15,"value"],[23,88,13,20],[23,90,13,22],[23,95,13,27],[23,96,13,28],[24,6,14,8,"result"],[24,12,14,14],[24,13,14,15,"soft"],[24,17,14,19],[24,18,14,20,"RE_NUMBER"],[24,27,14,29],[24,28,14,30,"test"],[24,32,14,34],[24,33,14,35,"code"],[24,37,14,39],[24,38,14,40],[24,41,15,14],[24,45,15,18,"BN"],[24,58,15,20],[24,59,15,20,"BN"],[24,61,15,20],[24,62,15,21,"code"],[24,66,15,25],[24,68,15,27],[24,70,15,29],[24,71,15,30],[24,74,16,14,"code"],[24,78,16,18],[24,79,16,19],[25,6,17,8],[25,13,17,15,"isHard"],[25,19,17,21],[25,22,18,14,"result"],[25,28,18,20],[25,29,18,21,"harden"],[25,35,18,27],[25,36,18,28],[25,37,18,29],[25,40,19,14,"result"],[25,46,19,20],[26,4,20,4],[27,4,21,4],[27,8,21,8,"chainCode"],[27,17,21,17,"chainCode"],[27,18,21,17],[27,20,21,20],[28,6,22,8],[28,13,22,15],[28,17,22,19],[28,18,22,20],[28,19,22,21,"chainCode"],[28,28,22,30],[29,4,23,4],[30,4,24,4],[30,8,24,8,"isHard"],[30,14,24,14,"isHard"],[30,15,24,14],[30,17,24,17],[31,6,25,8],[31,13,25,15],[31,17,25,19],[31,18,25,20],[31,19,25,21,"isHard"],[31,25,25,27],[32,4,26,4],[33,4,27,4],[33,8,27,8,"isSoft"],[33,14,27,14,"isSoft"],[33,15,27,14],[33,17,27,17],[34,6,28,8],[34,13,28,15],[34,14,28,16],[34,18,28,20],[34,19,28,21],[34,20,28,22,"isHard"],[34,26,28,28],[35,4,29,4],[36,4,30,4,"hard"],[36,8,30,8,"hard"],[36,9,30,9,"value"],[36,14,30,14],[36,16,30,16],[37,6,31,8],[37,13,31,15],[37,17,31,19],[37,18,31,20,"soft"],[37,22,31,24],[37,23,31,25,"value"],[37,28,31,30],[37,29,31,31],[37,30,31,32,"harden"],[37,36,31,38],[37,37,31,39],[37,38,31,40],[38,4,32,4],[39,4,33,4,"harden"],[39,10,33,10,"harden"],[39,11,33,10],[39,13,33,13],[40,6,34,8],[40,10,34,12],[40,11,34,13],[40,12,34,14,"isHard"],[40,18,34,20],[40,21,34,23],[40,25,34,27],[41,6,35,8],[41,13,35,15],[41,17,35,19],[42,4,36,4],[43,4,37,4,"soft"],[43,8,37,8,"soft"],[43,9,37,9,"value"],[43,14,37,14],[43,16,37,16],[44,6,38,8],[44,10,38,12],[44,14,38,12,"isNumber"],[44,27,38,20],[44,28,38,20,"isNumber"],[44,36,38,20],[44,38,38,21,"value"],[44,43,38,26],[44,44,38,27],[44,48,38,31],[44,52,38,31,"isBn"],[44,65,38,35],[44,66,38,35,"isBn"],[44,70,38,35],[44,72,38,36,"value"],[44,77,38,41],[44,78,38,42],[44,82,38,46],[44,86,38,46,"isBigInt"],[44,99,38,54],[44,100,38,54,"isBigInt"],[44,108,38,54],[44,110,38,55,"value"],[44,115,38,60],[44,116,38,61],[44,118,38,63],[45,8,39,12],[45,15,39,19],[45,19,39,23],[45,20,39,24,"soft"],[45,24,39,28],[45,25,39,29],[45,29,39,29,"bnToU8a"],[45,42,39,36],[45,43,39,36,"bnToU8a"],[45,50,39,36],[45,52,39,37,"value"],[45,57,39,42],[45,59,39,44,"BN_LE_256_OPTS"],[45,64,39,58],[45,65,39,58,"BN_LE_256_OPTS"],[45,79,39,58],[45,80,39,59],[45,81,39,60],[46,6,40,8],[46,7,40,9],[46,13,41,13],[46,17,41,17],[46,21,41,17,"isHex"],[46,34,41,22],[46,35,41,22,"isHex"],[46,40,41,22],[46,42,41,23,"value"],[46,47,41,28],[46,48,41,29],[46,50,41,31],[47,8,42,12],[47,15,42,19],[47,19,42,23],[47,20,42,24,"soft"],[47,24,42,28],[47,25,42,29],[47,29,42,29,"hexToU8a"],[47,42,42,37],[47,43,42,37,"hexToU8a"],[47,51,42,37],[47,53,42,38,"value"],[47,58,42,43],[47,59,42,44],[47,60,42,45],[48,6,43,8],[48,7,43,9],[48,13,44,13],[48,17,44,17],[48,21,44,17,"isString"],[48,34,44,25],[48,35,44,25,"isString"],[48,43,44,25],[48,45,44,26,"value"],[48,50,44,31],[48,51,44,32],[48,53,44,34],[49,8,45,12],[49,15,45,19],[49,19,45,23],[49,20,45,24,"soft"],[49,24,45,28],[49,25,45,29],[49,29,45,29,"compactAddLength"],[49,42,45,45],[49,43,45,45,"compactAddLength"],[49,59,45,45],[49,61,45,46],[49,65,45,46,"stringToU8a"],[49,78,45,57],[49,79,45,57,"stringToU8a"],[49,90,45,57],[49,92,45,58,"value"],[49,97,45,63],[49,98,45,64],[49,99,45,65],[49,100,45,66],[50,6,46,8],[50,7,46,9],[50,13,47,13],[50,17,47,17,"value"],[50,22,47,22],[50,23,47,23,"length"],[50,29,47,29],[50,32,47,32,"JUNCTION_ID_LEN"],[50,47,47,47],[50,49,47,49],[51,8,48,12],[51,15,48,19],[51,19,48,23],[51,20,48,24,"soft"],[51,24,48,28],[51,25,48,29],[51,29,48,29,"blake2AsU8a"],[51,43,48,40],[51,44,48,40,"blake2AsU8a"],[51,55,48,40],[51,57,48,41,"value"],[51,62,48,46],[51,63,48,47],[51,64,48,48],[52,6,49,8],[53,6,50,8],[53,10,50,12],[53,11,50,13],[53,12,50,14,"chainCode"],[53,21,50,23],[53,22,50,24,"fill"],[53,26,50,28],[53,27,50,29],[53,28,50,30],[53,29,50,31],[54,6,51,8],[54,10,51,12],[54,11,51,13],[54,12,51,14,"chainCode"],[54,21,51,23],[54,22,51,24,"set"],[54,25,51,27],[54,26,51,28,"value"],[54,31,51,33],[54,33,51,35],[54,34,51,36],[54,35,51,37],[55,6,52,8],[55,13,52,15],[55,17,52,19],[56,4,53,4],[57,4,54,4,"soften"],[57,10,54,10,"soften"],[57,11,54,10],[57,13,54,13],[58,6,55,8],[58,10,55,12],[58,11,55,13],[58,12,55,14,"isHard"],[58,18,55,20],[58,21,55,23],[58,26,55,28],[59,6,56,8],[59,13,56,15],[59,17,56,19],[60,4,57,4],[61,2,58,0],[62,0,58,1],[62,3]],"functionMap":{"names":["<global>","DeriveJunction","from","get__chainCode","get__isHard","get__isSoft","hard","harden","soft","soften"],"mappings":"AAA;OCK;ICG;KDW;IEC;KFE;IGC;KHE;IIC;KJE;IKC;KLE;IMC;KNG;IOC;KPgB;IQC;KRG;CDC"},"hasCjsExports":false},"type":"js/module"}]}