mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 20:21:01 +00:00
1 line
10 KiB
Plaintext
1 line
10 KiB
Plaintext
{"dependencies":[{"name":"@polkadot/util","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":4,"column":15,"index":119},"end":{"line":4,"column":40,"index":144}}],"key":"u0mzEw2nilnHoUWtEdZl0JKHutA=","exportNames":["*"],"imports":1}},{"name":"../abstract/Array.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":5,"column":19,"index":165},"end":{"line":5,"column":50,"index":196}}],"key":"6mEu3EU+b/IJjH94vVSmYQCsVqQ=","exportNames":["*"],"imports":1}},{"name":"../utils/index.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":6,"column":19,"index":217},"end":{"line":6,"column":47,"index":245}}],"key":"j8ZYB2+3ieHcvBXwesUJUzLi2Jo=","exportNames":["*"],"imports":1}},{"name":"./Vec.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":7,"column":17,"index":264},"end":{"line":7,"column":36,"index":283}}],"key":"uvcsToCu7tZRMk57ZZc026/tlnY=","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.VecFixed = void 0;\n const util_1 = require(_dependencyMap[0], \"@polkadot/util\");\n const Array_js_1 = require(_dependencyMap[1], \"../abstract/Array.js\");\n const index_js_1 = require(_dependencyMap[2], \"../utils/index.js\");\n const Vec_js_1 = require(_dependencyMap[3], \"./Vec.js\");\n /**\n * @name VecFixed\n * @description\n * This manages codec arrays of a fixed length\n */\n class VecFixed extends Array_js_1.AbstractArray {\n #Type;\n constructor(registry, Type, length, value = [], {\n definition,\n setDefinition = util_1.identity\n } = {}) {\n super(registry, length);\n this.#Type = definition || setDefinition((0, index_js_1.typeToConstructor)(registry, Type));\n this.initialU8aLength = ((0, util_1.isU8a)(value) ? (0, index_js_1.decodeU8aVec)(registry, this, value, 0, this.#Type) : (0, Vec_js_1.decodeVec)(registry, this, value, 0, this.#Type))[1];\n }\n static with(Type, length) {\n let definition;\n // eslint-disable-next-line no-return-assign\n const setDefinition = d => definition = d;\n return class extends VecFixed {\n constructor(registry, value) {\n super(registry, Type, length, value, {\n definition,\n setDefinition\n });\n }\n };\n }\n /**\n * @description The type for the items\n */\n get Type() {\n return new this.#Type(this.registry).toRawType();\n }\n /**\n * @description The length of the value when encoded as a Uint8Array\n */\n get encodedLength() {\n let total = 0;\n for (let i = 0, count = this.length; i < count; i++) {\n total += this[i].encodedLength;\n }\n return total;\n }\n /**\n * @description Returns a breakdown of the hex encoding for this Codec\n */\n inspect() {\n return {\n inner: this.inspectInner()\n };\n }\n toU8a() {\n // we override, we don't add the length prefix for ourselves, and at the same time we\n // ignore isBare on entries, since they should be properly encoded at all times\n const encoded = this.toU8aInner();\n return encoded.length ? (0, util_1.u8aConcatStrict)(encoded) : new Uint8Array([]);\n }\n /**\n * @description Returns the base runtime type name for this instance\n */\n toRawType() {\n return `[${this.Type};${this.length}]`;\n }\n }\n exports.VecFixed = VecFixed;\n});","lineCount":78,"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,"VecFixed"],[7,18,3,16],[7,21,3,19],[7,26,3,24],[7,27,3,25],[8,2,4,0],[8,8,4,6,"util_1"],[8,14,4,12],[8,17,4,15,"require"],[8,24,4,22],[8,25,4,22,"_dependencyMap"],[8,39,4,22],[8,60,4,39],[8,61,4,40],[9,2,5,0],[9,8,5,6,"Array_js_1"],[9,18,5,16],[9,21,5,19,"require"],[9,28,5,26],[9,29,5,26,"_dependencyMap"],[9,43,5,26],[9,70,5,49],[9,71,5,50],[10,2,6,0],[10,8,6,6,"index_js_1"],[10,18,6,16],[10,21,6,19,"require"],[10,28,6,26],[10,29,6,26,"_dependencyMap"],[10,43,6,26],[10,67,6,46],[10,68,6,47],[11,2,7,0],[11,8,7,6,"Vec_js_1"],[11,16,7,14],[11,19,7,17,"require"],[11,26,7,24],[11,27,7,24,"_dependencyMap"],[11,41,7,24],[11,56,7,35],[11,57,7,36],[12,2,8,0],[13,0,9,0],[14,0,10,0],[15,0,11,0],[16,0,12,0],[17,2,13,0],[17,8,13,6,"VecFixed"],[17,16,13,14],[17,25,13,23,"Array_js_1"],[17,35,13,33],[17,36,13,34,"AbstractArray"],[17,49,13,47],[17,50,13,48],[18,4,14,4],[18,5,14,5,"Type"],[18,9,14,9],[19,4,15,4,"constructor"],[19,15,15,15,"constructor"],[19,16,15,16,"registry"],[19,24,15,24],[19,26,15,26,"Type"],[19,30,15,30],[19,32,15,32,"length"],[19,38,15,38],[19,40,15,40,"value"],[19,45,15,45],[19,48,15,48],[19,50,15,50],[19,52,15,52],[20,6,15,54,"definition"],[20,16,15,64],[21,6,15,66,"setDefinition"],[21,19,15,79],[21,22,15,82,"util_1"],[21,28,15,88],[21,29,15,89,"identity"],[22,4,15,98],[22,5,15,99],[22,8,15,102],[22,9,15,103],[22,10,15,104],[22,12,15,106],[23,6,16,8],[23,11,16,13],[23,12,16,14,"registry"],[23,20,16,22],[23,22,16,24,"length"],[23,28,16,30],[23,29,16,31],[24,6,17,8],[24,10,17,12],[24,11,17,13],[24,12,17,14,"Type"],[24,16,17,18],[24,19,17,21,"definition"],[24,29,17,31],[24,33,17,35,"setDefinition"],[24,46,17,48],[24,47,17,49],[24,48,17,50],[24,49,17,51],[24,51,17,53,"index_js_1"],[24,61,17,63],[24,62,17,64,"typeToConstructor"],[24,79,17,81],[24,81,17,83,"registry"],[24,89,17,91],[24,91,17,93,"Type"],[24,95,17,97],[24,96,17,98],[24,97,17,99],[25,6,18,8],[25,10,18,12],[25,11,18,13,"initialU8aLength"],[25,27,18,29],[25,30,18,32],[25,31,18,33],[25,32,18,34],[25,33,18,35],[25,35,18,37,"util_1"],[25,41,18,43],[25,42,18,44,"isU8a"],[25,47,18,49],[25,49,18,51,"value"],[25,54,18,56],[25,55,18,57],[25,58,19,14],[25,59,19,15],[25,60,19,16],[25,62,19,18,"index_js_1"],[25,72,19,28],[25,73,19,29,"decodeU8aVec"],[25,85,19,41],[25,87,19,43,"registry"],[25,95,19,51],[25,97,19,53],[25,101,19,57],[25,103,19,59,"value"],[25,108,19,64],[25,110,19,66],[25,111,19,67],[25,113,19,69],[25,117,19,73],[25,118,19,74],[25,119,19,75,"Type"],[25,123,19,79],[25,124,19,80],[25,127,20,14],[25,128,20,15],[25,129,20,16],[25,131,20,18,"Vec_js_1"],[25,139,20,26],[25,140,20,27,"decodeVec"],[25,149,20,36],[25,151,20,38,"registry"],[25,159,20,46],[25,161,20,48],[25,165,20,52],[25,167,20,54,"value"],[25,172,20,59],[25,174,20,61],[25,175,20,62],[25,177,20,64],[25,181,20,68],[25,182,20,69],[25,183,20,70,"Type"],[25,187,20,74],[25,188,20,75],[25,190,20,77],[25,191,20,78],[25,192,20,79],[26,4,21,4],[27,4,22,4],[27,11,22,11,"with"],[27,15,22,15,"with"],[27,16,22,16,"Type"],[27,20,22,20],[27,22,22,22,"length"],[27,28,22,28],[27,30,22,30],[28,6,23,8],[28,10,23,12,"definition"],[28,20,23,22],[29,6,24,8],[30,6,25,8],[30,12,25,14,"setDefinition"],[30,25,25,27],[30,28,25,31,"d"],[30,29,25,32],[30,33,25,38,"definition"],[30,43,25,48],[30,46,25,51,"d"],[30,47,25,53],[31,6,26,8],[31,13,26,15],[31,27,26,29,"VecFixed"],[31,35,26,37],[31,36,26,38],[32,8,27,12,"constructor"],[32,19,27,23,"constructor"],[32,20,27,24,"registry"],[32,28,27,32],[32,30,27,34,"value"],[32,35,27,39],[32,37,27,41],[33,10,28,16],[33,15,28,21],[33,16,28,22,"registry"],[33,24,28,30],[33,26,28,32,"Type"],[33,30,28,36],[33,32,28,38,"length"],[33,38,28,44],[33,40,28,46,"value"],[33,45,28,51],[33,47,28,53],[34,12,28,55,"definition"],[34,22,28,65],[35,12,28,67,"setDefinition"],[36,10,28,81],[36,11,28,82],[36,12,28,83],[37,8,29,12],[38,6,30,8],[38,7,30,9],[39,4,31,4],[40,4,32,4],[41,0,33,0],[42,0,34,0],[43,4,35,4],[43,8,35,8,"Type"],[43,12,35,12,"Type"],[43,13,35,12],[43,15,35,15],[44,6,36,8],[44,13,36,15],[44,17,36,19],[44,21,36,23],[44,22,36,24],[44,23,36,25,"Type"],[44,27,36,29],[44,28,36,30],[44,32,36,34],[44,33,36,35,"registry"],[44,41,36,43],[44,42,36,44],[44,43,36,45,"toRawType"],[44,52,36,54],[44,53,36,55],[44,54,36,56],[45,4,37,4],[46,4,38,4],[47,0,39,0],[48,0,40,0],[49,4,41,4],[49,8,41,8,"encodedLength"],[49,21,41,21,"encodedLength"],[49,22,41,21],[49,24,41,24],[50,6,42,8],[50,10,42,12,"total"],[50,15,42,17],[50,18,42,20],[50,19,42,21],[51,6,43,8],[51,11,43,13],[51,15,43,17,"i"],[51,16,43,18],[51,19,43,21],[51,20,43,22],[51,22,43,24,"count"],[51,27,43,29],[51,30,43,32],[51,34,43,36],[51,35,43,37,"length"],[51,41,43,43],[51,43,43,45,"i"],[51,44,43,46],[51,47,43,49,"count"],[51,52,43,54],[51,54,43,56,"i"],[51,55,43,57],[51,57,43,59],[51,59,43,61],[52,8,44,12,"total"],[52,13,44,17],[52,17,44,21],[52,21,44,25],[52,22,44,26,"i"],[52,23,44,27],[52,24,44,28],[52,25,44,29,"encodedLength"],[52,38,44,42],[53,6,45,8],[54,6,46,8],[54,13,46,15,"total"],[54,18,46,20],[55,4,47,4],[56,4,48,4],[57,0,49,0],[58,0,50,0],[59,4,51,4,"inspect"],[59,11,51,11,"inspect"],[59,12,51,11],[59,14,51,14],[60,6,52,8],[60,13,52,15],[61,8,53,12,"inner"],[61,13,53,17],[61,15,53,19],[61,19,53,23],[61,20,53,24,"inspectInner"],[61,32,53,36],[61,33,53,37],[62,6,54,8],[62,7,54,9],[63,4,55,4],[64,4,56,4,"toU8a"],[64,9,56,9,"toU8a"],[64,10,56,9],[64,12,56,12],[65,6,57,8],[66,6,58,8],[67,6,59,8],[67,12,59,14,"encoded"],[67,19,59,21],[67,22,59,24],[67,26,59,28],[67,27,59,29,"toU8aInner"],[67,37,59,39],[67,38,59,40],[67,39,59,41],[68,6,60,8],[68,13,60,15,"encoded"],[68,20,60,22],[68,21,60,23,"length"],[68,27,60,29],[68,30,61,14],[68,31,61,15],[68,32,61,16],[68,34,61,18,"util_1"],[68,40,61,24],[68,41,61,25,"u8aConcatStrict"],[68,56,61,40],[68,58,61,42,"encoded"],[68,65,61,49],[68,66,61,50],[68,69,62,14],[68,73,62,18,"Uint8Array"],[68,83,62,28],[68,84,62,29],[68,86,62,31],[68,87,62,32],[69,4,63,4],[70,4,64,4],[71,0,65,0],[72,0,66,0],[73,4,67,4,"toRawType"],[73,13,67,13,"toRawType"],[73,14,67,13],[73,16,67,16],[74,6,68,8],[74,13,68,15],[74,17,68,19],[74,21,68,23],[74,22,68,24,"Type"],[74,26,68,28],[74,30,68,32],[74,34,68,36],[74,35,68,37,"length"],[74,41,68,43],[74,44,68,46],[75,4,69,4],[76,2,70,0],[77,2,71,0,"exports"],[77,9,71,7],[77,10,71,8,"VecFixed"],[77,18,71,16],[77,21,71,19,"VecFixed"],[77,29,71,27],[78,0,71,28],[78,3]],"functionMap":{"names":["<global>","VecFixed","constructor","_with","setDefinition","<anonymous>","get__Type","get__encodedLength","inspect","toU8a","toRawType"],"mappings":"AAA;ACY;ICE;KDM;IEC;8BCG,uBD;eEC;YHC;aGE;SFC;KFC;IKI;KLE;IMI;KNM;IOI;KPI;IQC;KRO;ISI;KTE;CDC"},"hasCjsExports":true},"type":"js/module"}]} |