mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 21:31:02 +00:00
1 line
14 KiB
Plaintext
1 line
14 KiB
Plaintext
{"dependencies":[{"name":"@polkadot/x-bigint","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":44,"index":44}}],"key":"Xafw1y4jIaVcNbHtayie8UfNWW8=","exportNames":["*"],"imports":1}},{"name":"../bi/consts.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":2,"column":0,"index":45},"end":{"line":2,"column":38,"index":83}}],"key":"2Ho7uHFszSsnRf+RUgnuWnM5+Ng=","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 exports.u8aToBigInt = u8aToBigInt;\n var _polkadotXBigint = require(_dependencyMap[0], \"@polkadot/x-bigint\");\n var _biConstsJs = require(_dependencyMap[1], \"../bi/consts.js\");\n var U8_MAX = (0, _polkadotXBigint.BigInt)(256);\n var U16_MAX = (0, _polkadotXBigint.BigInt)(256 * 256);\n var U64_MAX = (0, _polkadotXBigint.BigInt)('0x10000000000000000');\n /**\n * @name u8aToBigInt\n * @summary Creates a BigInt from a Uint8Array object.\n */\n function u8aToBigInt(value) {\n var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},\n _ref$isLe = _ref.isLe,\n isLe = _ref$isLe === void 0 ? true : _ref$isLe,\n _ref$isNegative = _ref.isNegative,\n isNegative = _ref$isNegative === void 0 ? false : _ref$isNegative;\n // slice + reverse is expensive, however SCALE is LE by default so this is the path\n // we are most interested in (the BE is added for the sake of being comprehensive)\n if (!isLe) {\n value = value.slice().reverse();\n }\n var count = value.length;\n if (isNegative && count && value[count - 1] & 0x80) {\n switch (count) {\n case 0:\n return (0, _polkadotXBigint.BigInt)(0);\n case 1:\n return (0, _polkadotXBigint.BigInt)((value[0] ^ 0x000000ff) * -1 - 1);\n case 2:\n return (0, _polkadotXBigint.BigInt)((value[0] + (value[1] << 8) ^ 0x0000ffff) * -1 - 1);\n case 4:\n return (0, _polkadotXBigint.BigInt)((value[0] + (value[1] << 8) + (value[2] << 16) + value[3] * 0x1000000 ^ 0xffffffff) * -1 - 1);\n }\n var _dvI = new DataView(value.buffer, value.byteOffset);\n if (count === 8) {\n return _dvI.getBigInt64(0, true);\n }\n var result = (0, _polkadotXBigint.BigInt)(0);\n var mod = count % 2;\n for (var i = count - 2; i >= mod; i -= 2) {\n result = result * U16_MAX + (0, _polkadotXBigint.BigInt)(_dvI.getUint16(i, true) ^ 0xffff);\n }\n if (mod) {\n result = result * U8_MAX + (0, _polkadotXBigint.BigInt)(value[0] ^ 0xff);\n }\n return result * -_biConstsJs._1n - _biConstsJs._1n;\n }\n switch (count) {\n case 0:\n return (0, _polkadotXBigint.BigInt)(0);\n case 1:\n return (0, _polkadotXBigint.BigInt)(value[0]);\n case 2:\n return (0, _polkadotXBigint.BigInt)(value[0] + (value[1] << 8));\n case 4:\n return (0, _polkadotXBigint.BigInt)(value[0] + (value[1] << 8) + (value[2] << 16) + value[3] * 0x1000000);\n }\n var dvI = new DataView(value.buffer, value.byteOffset);\n switch (count) {\n case 8:\n return dvI.getBigUint64(0, true);\n case 16:\n return dvI.getBigUint64(8, true) * U64_MAX + dvI.getBigUint64(0, true);\n default:\n {\n var _result = (0, _polkadotXBigint.BigInt)(0);\n var _mod = count % 2;\n for (var _i = count - 2; _i >= _mod; _i -= 2) {\n _result = _result * U16_MAX + (0, _polkadotXBigint.BigInt)(dvI.getUint16(_i, true));\n }\n if (_mod) {\n _result = _result * U8_MAX + (0, _polkadotXBigint.BigInt)(value[0]);\n }\n return _result;\n }\n }\n }\n});","lineCount":84,"map":[[7,2,10,0,"exports"],[7,9,10,0],[7,10,10,0,"u8aToBigInt"],[7,21,10,0],[7,24,10,0,"u8aToBigInt"],[7,35,10,0],[8,2,1,0],[8,6,1,0,"_polkadotXBigint"],[8,22,1,0],[8,25,1,0,"require"],[8,32,1,0],[8,33,1,0,"_dependencyMap"],[8,47,1,0],[9,2,2,0],[9,6,2,0,"_biConstsJs"],[9,17,2,0],[9,20,2,0,"require"],[9,27,2,0],[9,28,2,0,"_dependencyMap"],[9,42,2,0],[10,2,3,0],[10,6,3,6,"U8_MAX"],[10,12,3,12],[10,15,3,15],[10,19,3,15,"BigInt"],[10,35,3,21],[10,36,3,21,"BigInt"],[10,42,3,21],[10,44,3,22],[10,47,3,25],[10,48,3,26],[11,2,4,0],[11,6,4,6,"U16_MAX"],[11,13,4,13],[11,16,4,16],[11,20,4,16,"BigInt"],[11,36,4,22],[11,37,4,22,"BigInt"],[11,43,4,22],[11,45,4,23],[11,48,4,26],[11,51,4,29],[11,54,4,32],[11,55,4,33],[12,2,5,0],[12,6,5,6,"U64_MAX"],[12,13,5,13],[12,16,5,16],[12,20,5,16,"BigInt"],[12,36,5,22],[12,37,5,22,"BigInt"],[12,43,5,22],[12,45,5,23],[12,66,5,44],[12,67,5,45],[13,2,6,0],[14,0,7,0],[15,0,8,0],[16,0,9,0],[17,2,10,7],[17,11,10,16,"u8aToBigInt"],[17,22,10,27,"u8aToBigInt"],[17,23,10,28,"value"],[17,28,10,33],[17,30,10,77],[18,4,10,77],[18,8,10,77,"_ref"],[18,12,10,77],[18,15,10,77,"arguments"],[18,24,10,77],[18,25,10,77,"length"],[18,31,10,77],[18,39,10,77,"arguments"],[18,48,10,77],[18,56,10,77,"undefined"],[18,65,10,77],[18,68,10,77,"arguments"],[18,77,10,77],[18,83,10,73],[18,84,10,74],[18,85,10,75],[19,6,10,75,"_ref$isLe"],[19,15,10,75],[19,18,10,75,"_ref"],[19,22,10,75],[19,23,10,37,"isLe"],[19,27,10,41],[20,6,10,37,"isLe"],[20,10,10,41],[20,13,10,41,"_ref$isLe"],[20,22,10,41],[20,36,10,44],[20,40,10,48],[20,43,10,48,"_ref$isLe"],[20,52,10,48],[21,6,10,48,"_ref$isNegative"],[21,21,10,48],[21,24,10,48,"_ref"],[21,28,10,48],[21,29,10,50,"isNegative"],[21,39,10,60],[22,6,10,50,"isNegative"],[22,16,10,60],[22,19,10,60,"_ref$isNegative"],[22,34,10,60],[22,48,10,63],[22,53,10,68],[22,56,10,68,"_ref$isNegative"],[22,71,10,68],[23,4,11,4],[24,4,12,4],[25,4,13,4],[25,8,13,8],[25,9,13,9,"isLe"],[25,13,13,13],[25,15,13,15],[26,6,14,8,"value"],[26,11,14,13],[26,14,14,16,"value"],[26,19,14,21],[26,20,14,22,"slice"],[26,25,14,27],[26,26,14,28],[26,27,14,29],[26,28,14,30,"reverse"],[26,35,14,37],[26,36,14,38],[26,37,14,39],[27,4,15,4],[28,4,16,4],[28,8,16,10,"count"],[28,13,16,15],[28,16,16,18,"value"],[28,21,16,23],[28,22,16,24,"length"],[28,28,16,30],[29,4,17,4],[29,8,17,8,"isNegative"],[29,18,17,18],[29,22,17,22,"count"],[29,27,17,27],[29,31,17,32,"value"],[29,36,17,37],[29,37,17,38,"count"],[29,42,17,43],[29,45,17,46],[29,46,17,47],[29,47,17,48],[29,50,17,51],[29,54,17,56],[29,56,17,58],[30,6,18,8],[30,14,18,16,"count"],[30,19,18,21],[31,8,19,12],[31,13,19,17],[31,14,19,18],[32,10,20,16],[32,17,20,23],[32,21,20,23,"BigInt"],[32,37,20,29],[32,38,20,29,"BigInt"],[32,44,20,29],[32,46,20,30],[32,47,20,31],[32,48,20,32],[33,8,21,12],[33,13,21,17],[33,14,21,18],[34,10,22,16],[34,17,22,23],[34,21,22,23,"BigInt"],[34,37,22,29],[34,38,22,29,"BigInt"],[34,44,22,29],[34,46,22,31],[34,47,22,32,"value"],[34,52,22,37],[34,53,22,38],[34,54,22,39],[34,55,22,40],[34,58,22,43],[34,68,22,54],[34,72,22,58],[34,73,22,59],[34,74,22,60],[34,77,22,64],[34,78,22,65],[34,79,22,66],[35,8,23,12],[35,13,23,17],[35,14,23,18],[36,10,24,16],[36,17,24,23],[36,21,24,23,"BigInt"],[36,37,24,29],[36,38,24,29,"BigInt"],[36,44,24,29],[36,46,24,31],[36,47,24,33,"value"],[36,52,24,38],[36,53,24,39],[36,54,24,40],[36,55,24,41],[36,59,24,45,"value"],[36,64,24,50],[36,65,24,51],[36,66,24,52],[36,67,24,53],[36,71,24,57],[36,72,24,58],[36,73,24,59],[36,76,24,63],[36,86,24,74],[36,90,24,78],[36,91,24,79],[36,92,24,80],[36,95,24,84],[36,96,24,85],[36,97,24,86],[37,8,25,12],[37,13,25,17],[37,14,25,18],[38,10,26,16],[38,17,26,23],[38,21,26,23,"BigInt"],[38,37,26,29],[38,38,26,29,"BigInt"],[38,44,26,29],[38,46,26,31],[38,47,26,33,"value"],[38,52,26,38],[38,53,26,39],[38,54,26,40],[38,55,26,41],[38,59,26,45,"value"],[38,64,26,50],[38,65,26,51],[38,66,26,52],[38,67,26,53],[38,71,26,57],[38,72,26,58],[38,73,26,59],[38,77,26,63,"value"],[38,82,26,68],[38,83,26,69],[38,84,26,70],[38,85,26,71],[38,89,26,75],[38,91,26,77],[38,92,26,78],[38,95,26,82,"value"],[38,100,26,87],[38,101,26,88],[38,102,26,89],[38,103,26,90],[38,106,26,93],[38,115,26,106],[38,118,26,110],[38,128,26,121],[38,132,26,125],[38,133,26,126],[38,134,26,127],[38,137,26,131],[38,138,26,132],[38,139,26,133],[39,6,27,8],[40,6,28,8],[40,10,28,14,"dvI"],[40,14,28,17],[40,17,28,20],[40,21,28,24,"DataView"],[40,29,28,32],[40,30,28,33,"value"],[40,35,28,38],[40,36,28,39,"buffer"],[40,42,28,45],[40,44,28,47,"value"],[40,49,28,52],[40,50,28,53,"byteOffset"],[40,60,28,63],[40,61,28,64],[41,6,29,8],[41,10,29,12,"count"],[41,15,29,17],[41,20,29,22],[41,21,29,23],[41,23,29,25],[42,8,30,12],[42,15,30,19,"dvI"],[42,19,30,22],[42,20,30,23,"getBigInt64"],[42,31,30,34],[42,32,30,35],[42,33,30,36],[42,35,30,38],[42,39,30,42],[42,40,30,43],[43,6,31,8],[44,6,32,8],[44,10,32,12,"result"],[44,16,32,18],[44,19,32,21],[44,23,32,21,"BigInt"],[44,39,32,27],[44,40,32,27,"BigInt"],[44,46,32,27],[44,48,32,28],[44,49,32,29],[44,50,32,30],[45,6,33,8],[45,10,33,14,"mod"],[45,13,33,17],[45,16,33,20,"count"],[45,21,33,25],[45,24,33,28],[45,25,33,29],[46,6,34,8],[46,11,34,13],[46,15,34,17,"i"],[46,16,34,18],[46,19,34,21,"count"],[46,24,34,26],[46,27,34,29],[46,28,34,30],[46,30,34,32,"i"],[46,31,34,33],[46,35,34,37,"mod"],[46,38,34,40],[46,40,34,42,"i"],[46,41,34,43],[46,45,34,47],[46,46,34,48],[46,48,34,50],[47,8,35,12,"result"],[47,14,35,18],[47,17,35,22,"result"],[47,23,35,28],[47,26,35,31,"U16_MAX"],[47,33,35,38],[47,36,35,42],[47,40,35,42,"BigInt"],[47,56,35,48],[47,57,35,48,"BigInt"],[47,63,35,48],[47,65,35,49,"dvI"],[47,69,35,52],[47,70,35,53,"getUint16"],[47,79,35,62],[47,80,35,63,"i"],[47,81,35,64],[47,83,35,66],[47,87,35,70],[47,88,35,71],[47,91,35,74],[47,97,35,80],[47,98,35,81],[48,6,36,8],[49,6,37,8],[49,10,37,12,"mod"],[49,13,37,15],[49,15,37,17],[50,8,38,12,"result"],[50,14,38,18],[50,17,38,22,"result"],[50,23,38,28],[50,26,38,31,"U8_MAX"],[50,32,38,37],[50,35,38,41],[50,39,38,41,"BigInt"],[50,55,38,47],[50,56,38,47,"BigInt"],[50,62,38,47],[50,64,38,48,"value"],[50,69,38,53],[50,70,38,54],[50,71,38,55],[50,72,38,56],[50,75,38,59],[50,79,38,63],[50,80,38,64],[51,6,39,8],[52,6,40,8],[52,13,40,16,"result"],[52,19,40,22],[52,22,40,25],[52,23,40,26,"_1n"],[52,34,40,29],[52,35,40,29,"_1n"],[52,38,40,29],[52,41,40,33,"_1n"],[52,52,40,36],[52,53,40,36,"_1n"],[52,56,40,36],[53,4,41,4],[54,4,42,4],[54,12,42,12,"count"],[54,17,42,17],[55,6,43,8],[55,11,43,13],[55,12,43,14],[56,8,44,12],[56,15,44,19],[56,19,44,19,"BigInt"],[56,35,44,25],[56,36,44,25,"BigInt"],[56,42,44,25],[56,44,44,26],[56,45,44,27],[56,46,44,28],[57,6,45,8],[57,11,45,13],[57,12,45,14],[58,8,46,12],[58,15,46,19],[58,19,46,19,"BigInt"],[58,35,46,25],[58,36,46,25,"BigInt"],[58,42,46,25],[58,44,46,26,"value"],[58,49,46,31],[58,50,46,32],[58,51,46,33],[58,52,46,34],[58,53,46,35],[59,6,47,8],[59,11,47,13],[59,12,47,14],[60,8,48,12],[60,15,48,19],[60,19,48,19,"BigInt"],[60,35,48,25],[60,36,48,25,"BigInt"],[60,42,48,25],[60,44,48,26,"value"],[60,49,48,31],[60,50,48,32],[60,51,48,33],[60,52,48,34],[60,56,48,38,"value"],[60,61,48,43],[60,62,48,44],[60,63,48,45],[60,64,48,46],[60,68,48,50],[60,69,48,51],[60,70,48,52],[60,71,48,53],[61,6,49,8],[61,11,49,13],[61,12,49,14],[62,8,50,12],[62,15,50,19],[62,19,50,19,"BigInt"],[62,35,50,25],[62,36,50,25,"BigInt"],[62,42,50,25],[62,44,50,26,"value"],[62,49,50,31],[62,50,50,32],[62,51,50,33],[62,52,50,34],[62,56,50,38,"value"],[62,61,50,43],[62,62,50,44],[62,63,50,45],[62,64,50,46],[62,68,50,50],[62,69,50,51],[62,70,50,52],[62,74,50,56,"value"],[62,79,50,61],[62,80,50,62],[62,81,50,63],[62,82,50,64],[62,86,50,68],[62,88,50,70],[62,89,50,71],[62,92,50,75,"value"],[62,97,50,80],[62,98,50,81],[62,99,50,82],[62,100,50,83],[62,103,50,86],[62,112,50,99],[62,113,50,100],[63,4,51,4],[64,4,52,4],[64,8,52,10,"dvI"],[64,11,52,13],[64,14,52,16],[64,18,52,20,"DataView"],[64,26,52,28],[64,27,52,29,"value"],[64,32,52,34],[64,33,52,35,"buffer"],[64,39,52,41],[64,41,52,43,"value"],[64,46,52,48],[64,47,52,49,"byteOffset"],[64,57,52,59],[64,58,52,60],[65,4,53,4],[65,12,53,12,"count"],[65,17,53,17],[66,6,54,8],[66,11,54,13],[66,12,54,14],[67,8,55,12],[67,15,55,19,"dvI"],[67,18,55,22],[67,19,55,23,"getBigUint64"],[67,31,55,35],[67,32,55,36],[67,33,55,37],[67,35,55,39],[67,39,55,43],[67,40,55,44],[68,6,56,8],[68,11,56,13],[68,13,56,15],[69,8,57,12],[69,15,57,20,"dvI"],[69,18,57,23],[69,19,57,24,"getBigUint64"],[69,31,57,36],[69,32,57,37],[69,33,57,38],[69,35,57,40],[69,39,57,44],[69,40,57,45],[69,43,57,48,"U64_MAX"],[69,50,57,55],[69,53,57,59,"dvI"],[69,56,57,62],[69,57,57,63,"getBigUint64"],[69,69,57,75],[69,70,57,76],[69,71,57,77],[69,73,57,79],[69,77,57,83],[69,78,57,84],[70,6,58,8],[71,8,58,17],[72,10,59,12],[72,14,59,16,"result"],[72,21,59,22],[72,24,59,25],[72,28,59,25,"BigInt"],[72,44,59,31],[72,45,59,31,"BigInt"],[72,51,59,31],[72,53,59,32],[72,54,59,33],[72,55,59,34],[73,10,60,12],[73,14,60,18,"mod"],[73,18,60,21],[73,21,60,24,"count"],[73,26,60,29],[73,29,60,32],[73,30,60,33],[74,10,61,12],[74,15,61,17],[74,19,61,21,"i"],[74,21,61,22],[74,24,61,25,"count"],[74,29,61,30],[74,32,61,33],[74,33,61,34],[74,35,61,36,"i"],[74,37,61,37],[74,41,61,41,"mod"],[74,45,61,44],[74,47,61,46,"i"],[74,49,61,47],[74,53,61,51],[74,54,61,52],[74,56,61,54],[75,12,62,16,"result"],[75,19,62,22],[75,22,62,26,"result"],[75,29,62,32],[75,32,62,35,"U16_MAX"],[75,39,62,42],[75,42,62,46],[75,46,62,46,"BigInt"],[75,62,62,52],[75,63,62,52,"BigInt"],[75,69,62,52],[75,71,62,53,"dvI"],[75,74,62,56],[75,75,62,57,"getUint16"],[75,84,62,66],[75,85,62,67,"i"],[75,87,62,68],[75,89,62,70],[75,93,62,74],[75,94,62,75],[75,95,62,76],[76,10,63,12],[77,10,64,12],[77,14,64,16,"mod"],[77,18,64,19],[77,20,64,21],[78,12,65,16,"result"],[78,19,65,22],[78,22,65,26,"result"],[78,29,65,32],[78,32,65,35,"U8_MAX"],[78,38,65,41],[78,41,65,45],[78,45,65,45,"BigInt"],[78,61,65,51],[78,62,65,51,"BigInt"],[78,68,65,51],[78,70,65,52,"value"],[78,75,65,57],[78,76,65,58],[78,77,65,59],[78,78,65,60],[78,79,65,61],[79,10,66,12],[80,10,67,12],[80,17,67,19,"result"],[80,24,67,25],[81,8,68,8],[82,4,69,4],[83,2,70,0],[84,0,70,1],[84,3]],"functionMap":{"names":["<global>","u8aToBigInt"],"mappings":"AAA;OCS;CD4D"},"hasCjsExports":false},"type":"js/module"}]} |