Files
pezkuwi-mobile-app/frontend/.metro-cache/cache/a6/d249e4eb9c5ed3c867fde1908cdb072dd695d6d49cfd23ddb088f6a53719fab29a2c75
T
2025-11-08 10:27:44 +00:00

1 line
2.9 KiB
Plaintext

{"dependencies":[{"name":"./fromU8a.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":4,"column":21,"index":147},"end":{"line":4,"column":44,"index":170}}],"key":"lpUVNuaYPWUPfqKdGaLcE9Eo3ow=","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.compactStripLength = compactStripLength;\n const fromU8a_js_1 = require(_dependencyMap[0], \"./fromU8a.js\");\n /**\n * @name compactStripLength\n * @description Removes the length prefix, returning both the total length (including the value + compact encoding) and the decoded value with the correct length\n * @example\n * <BR>\n *\n * ```javascript\n * import { compactStripLength } from '@polkadot/util';\n *\n * console.log(compactStripLength(new Uint8Array([2 << 2, 0xde, 0xad]))); // [2, Uint8Array[0xde, 0xad]]\n * ```\n */\n function compactStripLength(input) {\n const [offset, length] = (0, fromU8a_js_1.compactFromU8a)(input);\n const total = offset + length.toNumber();\n return [total, input.subarray(offset, total)];\n }\n});","lineCount":26,"map":[[2,2,1,0],[2,14,1,12],[4,2,2,0,"Object"],[4,8,2,6],[4,9,2,7,"defineProperty"],[4,23,2,21],[4,24,2,22,"exports"],[4,31,2,29],[4,33,2,31],[4,45,2,43],[4,47,2,45],[5,4,2,47,"value"],[5,9,2,52],[5,11,2,54],[6,2,2,59],[6,3,2,60],[6,4,2,61],[7,2,3,0,"exports"],[7,9,3,7],[7,10,3,8,"compactStripLength"],[7,28,3,26],[7,31,3,29,"compactStripLength"],[7,49,3,47],[8,2,4,0],[8,8,4,6,"fromU8a_js_1"],[8,20,4,18],[8,23,4,21,"require"],[8,30,4,28],[8,31,4,28,"_dependencyMap"],[8,45,4,28],[8,64,4,43],[8,65,4,44],[9,2,5,0],[10,0,6,0],[11,0,7,0],[12,0,8,0],[13,0,9,0],[14,0,10,0],[15,0,11,0],[16,0,12,0],[17,0,13,0],[18,0,14,0],[19,0,15,0],[20,0,16,0],[21,2,17,0],[21,11,17,9,"compactStripLength"],[21,29,17,27,"compactStripLength"],[21,30,17,28,"input"],[21,35,17,33],[21,37,17,35],[22,4,18,4],[22,10,18,10],[22,11,18,11,"offset"],[22,17,18,17],[22,19,18,19,"length"],[22,25,18,25],[22,26,18,26],[22,29,18,29],[22,30,18,30],[22,31,18,31],[22,33,18,33,"fromU8a_js_1"],[22,45,18,45],[22,46,18,46,"compactFromU8a"],[22,60,18,60],[22,62,18,62,"input"],[22,67,18,67],[22,68,18,68],[23,4,19,4],[23,10,19,10,"total"],[23,15,19,15],[23,18,19,18,"offset"],[23,24,19,24],[23,27,19,27,"length"],[23,33,19,33],[23,34,19,34,"toNumber"],[23,42,19,42],[23,43,19,43],[23,44,19,44],[24,4,20,4],[24,11,20,11],[24,12,21,8,"total"],[24,17,21,13],[24,19,22,8,"input"],[24,24,22,13],[24,25,22,14,"subarray"],[24,33,22,22],[24,34,22,23,"offset"],[24,40,22,29],[24,42,22,31,"total"],[24,47,22,36],[24,48,22,37],[24,49,23,5],[25,2,24,0],[26,0,24,1],[26,3]],"functionMap":{"names":["<global>","compactStripLength"],"mappings":"AAA;ACgB;CDO"},"hasCjsExports":true},"type":"js/module"}]}