mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 01:51:03 +00:00
1 line
15 KiB
Plaintext
1 line
15 KiB
Plaintext
{"dependencies":[{"name":"@polkadot/util","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":102,"index":102}}],"key":"ISHU1ovvPMrCldqRjtd1JhW9dyo=","exportNames":["*"],"imports":1}},{"name":"../native/Raw.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":2,"column":0,"index":103},"end":{"line":2,"column":39,"index":142}}],"key":"Q6Cn/2n+VmZe38UbZ4ft55xX/UY=","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, \"BitVec\", {\n enumerable: true,\n get: function () {\n return BitVec;\n }\n });\n var _polkadotUtil = require(_dependencyMap[0], \"@polkadot/util\");\n var _nativeRawJs = require(_dependencyMap[1], \"../native/Raw.js\");\n /** @internal */\n function decodeBitVecU8a(value) {\n if (!value?.length) {\n return [0, new Uint8Array()];\n }\n // handle all other Uint8Array inputs, these do have a length prefix which is the number of bits encoded\n const [offset, length] = (0, _polkadotUtil.compactFromU8aLim)(value);\n const total = offset + Math.ceil(length / 8);\n if (total > value.length) {\n throw new Error(`BitVec: required length less than remainder, expected at least ${total}, found ${value.length}`);\n }\n return [length, value.subarray(offset, total)];\n }\n /** @internal */\n function decodeBitVec(value) {\n if (Array.isArray(value) || (0, _polkadotUtil.isString)(value)) {\n const u8a = (0, _polkadotUtil.u8aToU8a)(value);\n return [u8a.length * 8, u8a];\n }\n return decodeBitVecU8a(value);\n }\n /**\n * @name BitVec\n * @description\n * A BitVec that represents an array of bits. The bits are however stored encoded. The difference between this\n * and a normal Bytes would be that the length prefix indicates the number of bits encoded, not the bytes\n */\n class BitVec extends _nativeRawJs.Raw {\n #decodedLength;\n #isMsb;\n // In lieu of having the Msb/Lsb identifiers passed through, we default to assuming\n // we are dealing with Lsb, which is the default (as of writing) BitVec format used\n // in the Polkadot code (this only affects the toHuman displays)\n constructor(registry, value, isMsb = false) {\n const [decodedLength, u8a] = decodeBitVec(value);\n super(registry, u8a);\n this.#decodedLength = decodedLength;\n this.#isMsb = isMsb;\n }\n /**\n * @description The length of the value when encoded as a Uint8Array\n */\n get encodedLength() {\n return this.length + (0, _polkadotUtil.compactToU8a)(this.#decodedLength).length;\n }\n /**\n * @description Returns a breakdown of the hex encoding for this Codec\n */\n inspect() {\n return {\n outer: [(0, _polkadotUtil.compactToU8a)(this.#decodedLength), super.toU8a()]\n };\n }\n /**\n * @description Creates a boolean array of the bit values\n */\n toBoolArray() {\n const map = [...this.toU8a(true)].map(v => [!!(v & 0b1000_0000), !!(v & 0b0100_0000), !!(v & 0b0010_0000), !!(v & 0b0001_0000), !!(v & 0b0000_1000), !!(v & 0b0000_0100), !!(v & 0b0000_0010), !!(v & 0b0000_0001)]);\n const count = map.length;\n const result = new Array(8 * count);\n for (let i = 0; i < count; i++) {\n const off = i * 8;\n const v = map[i];\n for (let j = 0; j < 8; j++) {\n result[off + j] = this.#isMsb ? v[j] : v[7 - j];\n }\n }\n return result;\n }\n /**\n * @description Converts the Object to to a human-friendly JSON, with additional fields, expansion and formatting of information\n */\n toHuman() {\n return `0b${[...this.toU8a(true)].map(d => `00000000${d.toString(2)}`.slice(-8)).map(s => this.#isMsb ? s : s.split('').reverse().join('')).join('_')}`;\n }\n /**\n * @description Returns the base runtime type name for this instance\n */\n toRawType() {\n return 'BitVec';\n }\n /**\n * @description Encodes the value as a Uint8Array as per the SCALE specifications\n * @param isBare true when the value has none of the type-specific prefixes (internal)\n */\n toU8a(isBare) {\n const bitVec = super.toU8a(isBare);\n return isBare ? bitVec : (0, _polkadotUtil.u8aConcatStrict)([(0, _polkadotUtil.compactToU8a)(this.#decodedLength), bitVec]);\n }\n }\n});","lineCount":105,"map":[[7,2,30,0,"Object"],[7,8,30,0],[7,9,30,0,"defineProperty"],[7,23,30,0],[7,24,30,0,"exports"],[7,31,30,0],[8,4,30,0,"enumerable"],[8,14,30,0],[9,4,30,0,"get"],[9,7,30,0],[9,18,30,0,"get"],[9,19,30,0],[10,6,30,0],[10,13,30,0,"BitVec"],[10,19,30,0],[11,4,30,0],[12,2,30,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,"_nativeRawJs"],[14,18,2,0],[14,21,2,0,"require"],[14,28,2,0],[14,29,2,0,"_dependencyMap"],[14,43,2,0],[15,2,3,0],[16,2,4,0],[16,11,4,9,"decodeBitVecU8a"],[16,26,4,24,"decodeBitVecU8a"],[16,27,4,25,"value"],[16,32,4,30],[16,34,4,32],[17,4,5,4],[17,8,5,8],[17,9,5,9,"value"],[17,14,5,14],[17,16,5,16,"length"],[17,22,5,22],[17,24,5,24],[18,6,6,8],[18,13,6,15],[18,14,6,16],[18,15,6,17],[18,17,6,19],[18,21,6,23,"Uint8Array"],[18,31,6,33],[18,32,6,34],[18,33,6,35],[18,34,6,36],[19,4,7,4],[20,4,8,4],[21,4,9,4],[21,10,9,10],[21,11,9,11,"offset"],[21,17,9,17],[21,19,9,19,"length"],[21,25,9,25],[21,26,9,26],[21,29,9,29],[21,33,9,29,"compactFromU8aLim"],[21,46,9,46],[21,47,9,46,"compactFromU8aLim"],[21,64,9,46],[21,66,9,47,"value"],[21,71,9,52],[21,72,9,53],[22,4,10,4],[22,10,10,10,"total"],[22,15,10,15],[22,18,10,18,"offset"],[22,24,10,24],[22,27,10,27,"Math"],[22,31,10,31],[22,32,10,32,"ceil"],[22,36,10,36],[22,37,10,37,"length"],[22,43,10,43],[22,46,10,46],[22,47,10,47],[22,48,10,48],[23,4,11,4],[23,8,11,8,"total"],[23,13,11,13],[23,16,11,16,"value"],[23,21,11,21],[23,22,11,22,"length"],[23,28,11,28],[23,30,11,30],[24,6,12,8],[24,12,12,14],[24,16,12,18,"Error"],[24,21,12,23],[24,22,12,24],[24,88,12,90,"total"],[24,93,12,95],[24,104,12,106,"value"],[24,109,12,111],[24,110,12,112,"length"],[24,116,12,118],[24,118,12,120],[24,119,12,121],[25,4,13,4],[26,4,14,4],[26,11,14,11],[26,12,14,12,"length"],[26,18,14,18],[26,20,14,20,"value"],[26,25,14,25],[26,26,14,26,"subarray"],[26,34,14,34],[26,35,14,35,"offset"],[26,41,14,41],[26,43,14,43,"total"],[26,48,14,48],[26,49,14,49],[26,50,14,50],[27,2,15,0],[28,2,16,0],[29,2,17,0],[29,11,17,9,"decodeBitVec"],[29,23,17,21,"decodeBitVec"],[29,24,17,22,"value"],[29,29,17,27],[29,31,17,29],[30,4,18,4],[30,8,18,8,"Array"],[30,13,18,13],[30,14,18,14,"isArray"],[30,21,18,21],[30,22,18,22,"value"],[30,27,18,27],[30,28,18,28],[30,32,18,32],[30,36,18,32,"isString"],[30,49,18,40],[30,50,18,40,"isString"],[30,58,18,40],[30,60,18,41,"value"],[30,65,18,46],[30,66,18,47],[30,68,18,49],[31,6,19,8],[31,12,19,14,"u8a"],[31,15,19,17],[31,18,19,20],[31,22,19,20,"u8aToU8a"],[31,35,19,28],[31,36,19,28,"u8aToU8a"],[31,44,19,28],[31,46,19,29,"value"],[31,51,19,34],[31,52,19,35],[32,6,20,8],[32,13,20,15],[32,14,20,16,"u8a"],[32,17,20,19],[32,18,20,20,"length"],[32,24,20,26],[32,27,20,29],[32,28,20,30],[32,30,20,32,"u8a"],[32,33,20,35],[32,34,20,36],[33,4,21,4],[34,4,22,4],[34,11,22,11,"decodeBitVecU8a"],[34,26,22,26],[34,27,22,27,"value"],[34,32,22,32],[34,33,22,33],[35,2,23,0],[36,2,24,0],[37,0,25,0],[38,0,26,0],[39,0,27,0],[40,0,28,0],[41,0,29,0],[42,2,30,7],[42,8,30,13,"BitVec"],[42,14,30,19],[42,23,30,28,"Raw"],[42,35,30,31],[42,36,30,31,"Raw"],[42,39,30,31],[42,40,30,32],[43,4,31,4],[43,5,31,5,"decodedLength"],[43,18,31,18],[44,4,32,4],[44,5,32,5,"isMsb"],[44,10,32,10],[45,4,33,4],[46,4,34,4],[47,4,35,4],[48,4,36,4,"constructor"],[48,15,36,15,"constructor"],[48,16,36,16,"registry"],[48,24,36,24],[48,26,36,26,"value"],[48,31,36,31],[48,33,36,33,"isMsb"],[48,38,36,38],[48,41,36,41],[48,46,36,46],[48,48,36,48],[49,6,37,8],[49,12,37,14],[49,13,37,15,"decodedLength"],[49,26,37,28],[49,28,37,30,"u8a"],[49,31,37,33],[49,32,37,34],[49,35,37,37,"decodeBitVec"],[49,47,37,49],[49,48,37,50,"value"],[49,53,37,55],[49,54,37,56],[50,6,38,8],[50,11,38,13],[50,12,38,14,"registry"],[50,20,38,22],[50,22,38,24,"u8a"],[50,25,38,27],[50,26,38,28],[51,6,39,8],[51,10,39,12],[51,11,39,13],[51,12,39,14,"decodedLength"],[51,25,39,27],[51,28,39,30,"decodedLength"],[51,41,39,43],[52,6,40,8],[52,10,40,12],[52,11,40,13],[52,12,40,14,"isMsb"],[52,17,40,19],[52,20,40,22,"isMsb"],[52,25,40,27],[53,4,41,4],[54,4,42,4],[55,0,43,0],[56,0,44,0],[57,4,45,4],[57,8,45,8,"encodedLength"],[57,21,45,21,"encodedLength"],[57,22,45,21],[57,24,45,24],[58,6,46,8],[58,13,46,15],[58,17,46,19],[58,18,46,20,"length"],[58,24,46,26],[58,27,46,29],[58,31,46,29,"compactToU8a"],[58,44,46,41],[58,45,46,41,"compactToU8a"],[58,57,46,41],[58,59,46,42],[58,63,46,46],[58,64,46,47],[58,65,46,48,"decodedLength"],[58,78,46,61],[58,79,46,62],[58,80,46,63,"length"],[58,86,46,69],[59,4,47,4],[60,4,48,4],[61,0,49,0],[62,0,50,0],[63,4,51,4,"inspect"],[63,11,51,11,"inspect"],[63,12,51,11],[63,14,51,14],[64,6,52,8],[64,13,52,15],[65,8,53,12,"outer"],[65,13,53,17],[65,15,53,19],[65,16,53,20],[65,20,53,20,"compactToU8a"],[65,33,53,32],[65,34,53,32,"compactToU8a"],[65,46,53,32],[65,48,53,33],[65,52,53,37],[65,53,53,38],[65,54,53,39,"decodedLength"],[65,67,53,52],[65,68,53,53],[65,70,53,55],[65,75,53,60],[65,76,53,61,"toU8a"],[65,81,53,66],[65,82,53,67],[65,83,53,68],[66,6,54,8],[66,7,54,9],[67,4,55,4],[68,4,56,4],[69,0,57,0],[70,0,58,0],[71,4,59,4,"toBoolArray"],[71,15,59,15,"toBoolArray"],[71,16,59,15],[71,18,59,18],[72,6,60,8],[72,12,60,14,"map"],[72,15,60,17],[72,18,60,20],[72,19,60,21],[72,22,60,24],[72,26,60,28],[72,27,60,29,"toU8a"],[72,32,60,34],[72,33,60,35],[72,37,60,39],[72,38,60,40],[72,39,60,41],[72,40,60,42,"map"],[72,43,60,45],[72,44,60,47,"v"],[72,45,60,48],[72,49,60,53],[72,50,61,12],[72,51,61,13],[72,53,61,15,"v"],[72,54,61,16],[72,57,61,19],[72,68,61,30],[72,69,61,31],[72,71,62,12],[72,72,62,13],[72,74,62,15,"v"],[72,75,62,16],[72,78,62,19],[72,89,62,30],[72,90,62,31],[72,92,63,12],[72,93,63,13],[72,95,63,15,"v"],[72,96,63,16],[72,99,63,19],[72,110,63,30],[72,111,63,31],[72,113,64,12],[72,114,64,13],[72,116,64,15,"v"],[72,117,64,16],[72,120,64,19],[72,131,64,30],[72,132,64,31],[72,134,65,12],[72,135,65,13],[72,137,65,15,"v"],[72,138,65,16],[72,141,65,19],[72,152,65,30],[72,153,65,31],[72,155,66,12],[72,156,66,13],[72,158,66,15,"v"],[72,159,66,16],[72,162,66,19],[72,173,66,30],[72,174,66,31],[72,176,67,12],[72,177,67,13],[72,179,67,15,"v"],[72,180,67,16],[72,183,67,19],[72,194,67,30],[72,195,67,31],[72,197,68,12],[72,198,68,13],[72,200,68,15,"v"],[72,201,68,16],[72,204,68,19],[72,215,68,30],[72,216,68,31],[72,217,69,9],[72,218,69,10],[73,6,70,8],[73,12,70,14,"count"],[73,17,70,19],[73,20,70,22,"map"],[73,23,70,25],[73,24,70,26,"length"],[73,30,70,32],[74,6,71,8],[74,12,71,14,"result"],[74,18,71,20],[74,21,71,23],[74,25,71,27,"Array"],[74,30,71,32],[74,31,71,33],[74,32,71,34],[74,35,71,37,"count"],[74,40,71,42],[74,41,71,43],[75,6,72,8],[75,11,72,13],[75,15,72,17,"i"],[75,16,72,18],[75,19,72,21],[75,20,72,22],[75,22,72,24,"i"],[75,23,72,25],[75,26,72,28,"count"],[75,31,72,33],[75,33,72,35,"i"],[75,34,72,36],[75,36,72,38],[75,38,72,40],[76,8,73,12],[76,14,73,18,"off"],[76,17,73,21],[76,20,73,24,"i"],[76,21,73,25],[76,24,73,28],[76,25,73,29],[77,8,74,12],[77,14,74,18,"v"],[77,15,74,19],[77,18,74,22,"map"],[77,21,74,25],[77,22,74,26,"i"],[77,23,74,27],[77,24,74,28],[78,8,75,12],[78,13,75,17],[78,17,75,21,"j"],[78,18,75,22],[78,21,75,25],[78,22,75,26],[78,24,75,28,"j"],[78,25,75,29],[78,28,75,32],[78,29,75,33],[78,31,75,35,"j"],[78,32,75,36],[78,34,75,38],[78,36,75,40],[79,10,76,16,"result"],[79,16,76,22],[79,17,76,23,"off"],[79,20,76,26],[79,23,76,29,"j"],[79,24,76,30],[79,25,76,31],[79,28,76,34],[79,32,76,38],[79,33,76,39],[79,34,76,40,"isMsb"],[79,39,76,45],[79,42,77,22,"v"],[79,43,77,23],[79,44,77,24,"j"],[79,45,77,25],[79,46,77,26],[79,49,78,22,"v"],[79,50,78,23],[79,51,78,24],[79,52,78,25],[79,55,78,28,"j"],[79,56,78,29],[79,57,78,30],[80,8,79,12],[81,6,80,8],[82,6,81,8],[82,13,81,15,"result"],[82,19,81,21],[83,4,82,4],[84,4,83,4],[85,0,84,0],[86,0,85,0],[87,4,86,4,"toHuman"],[87,11,86,11,"toHuman"],[87,12,86,11],[87,14,86,14],[88,6,87,8],[88,13,87,15],[88,18,87,20],[88,19,87,21],[88,22,87,24],[88,26,87,28],[88,27,87,29,"toU8a"],[88,32,87,34],[88,33,87,35],[88,37,87,39],[88,38,87,40],[88,39,87,41],[88,40,88,13,"map"],[88,43,88,16],[88,44,88,18,"d"],[88,45,88,19],[88,49,88,24],[88,60,88,35,"d"],[88,61,88,36],[88,62,88,37,"toString"],[88,70,88,45],[88,71,88,46],[88,72,88,47],[88,73,88,48],[88,75,88,50],[88,76,88,51,"slice"],[88,81,88,56],[88,82,88,57],[88,83,88,58],[88,84,88,59],[88,85,88,60],[88,86,88,61],[88,87,89,13,"map"],[88,90,89,16],[88,91,89,18,"s"],[88,92,89,19],[88,96,89,24],[88,100,89,28],[88,101,89,29],[88,102,89,30,"isMsb"],[88,107,89,35],[88,110,89,38,"s"],[88,111,89,39],[88,114,89,42,"s"],[88,115,89,43],[88,116,89,44,"split"],[88,121,89,49],[88,122,89,50],[88,124,89,52],[88,125,89,53],[88,126,89,54,"reverse"],[88,133,89,61],[88,134,89,62],[88,135,89,63],[88,136,89,64,"join"],[88,140,89,68],[88,141,89,69],[88,143,89,71],[88,144,89,72],[88,145,89,73],[88,146,90,13,"join"],[88,150,90,17],[88,151,90,18],[88,154,90,21],[88,155,90,22],[88,157,90,24],[89,4,91,4],[90,4,92,4],[91,0,93,0],[92,0,94,0],[93,4,95,4,"toRawType"],[93,13,95,13,"toRawType"],[93,14,95,13],[93,16,95,16],[94,6,96,8],[94,13,96,15],[94,21,96,23],[95,4,97,4],[96,4,98,4],[97,0,99,0],[98,0,100,0],[99,0,101,0],[100,4,102,4,"toU8a"],[100,9,102,9,"toU8a"],[100,10,102,10,"isBare"],[100,16,102,16],[100,18,102,18],[101,6,103,8],[101,12,103,14,"bitVec"],[101,18,103,20],[101,21,103,23],[101,26,103,28],[101,27,103,29,"toU8a"],[101,32,103,34],[101,33,103,35,"isBare"],[101,39,103,41],[101,40,103,42],[102,6,104,8],[102,13,104,15,"isBare"],[102,19,104,21],[102,22,105,14,"bitVec"],[102,28,105,20],[102,31,106,14],[102,35,106,14,"u8aConcatStrict"],[102,48,106,29],[102,49,106,29,"u8aConcatStrict"],[102,64,106,29],[102,66,106,30],[102,67,106,31],[102,71,106,31,"compactToU8a"],[102,84,106,43],[102,85,106,43,"compactToU8a"],[102,97,106,43],[102,99,106,44],[102,103,106,48],[102,104,106,49],[102,105,106,50,"decodedLength"],[102,118,106,63],[102,119,106,64],[102,121,106,66,"bitVec"],[102,127,106,72],[102,128,106,73],[102,129,106,74],[103,4,107,4],[104,2,108,0],[105,0,108,1],[105,3]],"functionMap":{"names":["<global>","decodeBitVecU8a","decodeBitVec","BitVec","constructor","get__encodedLength","inspect","toBoolArray","map$argument_0","toHuman","map.map$argument_0","toRawType","toU8a"],"mappings":"AAA;ACG;CDW;AEE;CFM;OGO;ICM;KDK;IEI;KFE;IGI;KHI;III;8CCC;SDS;KJa;IMI;iBDE,2CC;iBCC,uDD;KNE;IQI;KRE;ISK;KTK;CHC"},"hasCjsExports":false},"type":"js/module"}]} |