mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 10:01:02 +00:00
1 line
5.1 KiB
Plaintext
1 line
5.1 KiB
Plaintext
{"dependencies":[],"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.typeSplit = typeSplit;\n function typeSplit(type) {\n const result = [];\n // these are the depths of the various tokens: <, [, {, (\n let c = 0;\n let f = 0;\n let s = 0;\n let t = 0;\n // current start position\n let start = 0;\n for (let i = 0, count = type.length; i < count; i++) {\n switch (type[i]) {\n // if we are not nested, add the type\n case ',':\n {\n if (!(c || f || s || t)) {\n result.push(type.substring(start, i).trim());\n start = i + 1;\n }\n break;\n }\n // adjust compact/vec (and friends) depth\n case '<':\n c++;\n break;\n case '>':\n c--;\n break;\n // adjust fixed vec depths\n case '[':\n f++;\n break;\n case ']':\n f--;\n break;\n // adjust struct depth\n case '{':\n s++;\n break;\n case '}':\n s--;\n break;\n // adjust tuple depth\n case '(':\n t++;\n break;\n case ')':\n t--;\n break;\n }\n }\n // ensure we have all the terminators taken care of\n if (c || f || s || t) {\n throw new Error(`Invalid definition (missing terminators) found in ${type}`);\n }\n // the final leg of the journey\n result.push(type.substring(start, type.length).trim());\n return result;\n }\n});","lineCount":66,"map":[[7,2,1,0,"exports"],[7,9,1,0],[7,10,1,0,"typeSplit"],[7,19,1,0],[7,22,1,0,"typeSplit"],[7,31,1,0],[8,2,1,7],[8,11,1,16,"typeSplit"],[8,20,1,25,"typeSplit"],[8,21,1,26,"type"],[8,25,1,30],[8,27,1,32],[9,4,2,4],[9,10,2,10,"result"],[9,16,2,16],[9,19,2,19],[9,21,2,21],[10,4,3,4],[11,4,4,4],[11,8,4,8,"c"],[11,9,4,9],[11,12,4,12],[11,13,4,13],[12,4,5,4],[12,8,5,8,"f"],[12,9,5,9],[12,12,5,12],[12,13,5,13],[13,4,6,4],[13,8,6,8,"s"],[13,9,6,9],[13,12,6,12],[13,13,6,13],[14,4,7,4],[14,8,7,8,"t"],[14,9,7,9],[14,12,7,12],[14,13,7,13],[15,4,8,4],[16,4,9,4],[16,8,9,8,"start"],[16,13,9,13],[16,16,9,16],[16,17,9,17],[17,4,10,4],[17,9,10,9],[17,13,10,13,"i"],[17,14,10,14],[17,17,10,17],[17,18,10,18],[17,20,10,20,"count"],[17,25,10,25],[17,28,10,28,"type"],[17,32,10,32],[17,33,10,33,"length"],[17,39,10,39],[17,41,10,41,"i"],[17,42,10,42],[17,45,10,45,"count"],[17,50,10,50],[17,52,10,52,"i"],[17,53,10,53],[17,55,10,55],[17,57,10,57],[18,6,11,8],[18,14,11,16,"type"],[18,18,11,20],[18,19,11,21,"i"],[18,20,11,22],[18,21,11,23],[19,8,12,12],[20,8,13,12],[20,13,13,17],[20,16,13,20],[21,10,13,22],[22,12,14,16],[22,16,14,20],[22,18,14,22,"c"],[22,19,14,23],[22,23,14,27,"f"],[22,24,14,28],[22,28,14,32,"s"],[22,29,14,33],[22,33,14,37,"t"],[22,34,14,38],[22,35,14,39],[22,37,14,41],[23,14,15,20,"result"],[23,20,15,26],[23,21,15,27,"push"],[23,25,15,31],[23,26,15,32,"type"],[23,30,15,36],[23,31,15,37,"substring"],[23,40,15,46],[23,41,15,47,"start"],[23,46,15,52],[23,48,15,54,"i"],[23,49,15,55],[23,50,15,56],[23,51,15,57,"trim"],[23,55,15,61],[23,56,15,62],[23,57,15,63],[23,58,15,64],[24,14,16,20,"start"],[24,19,16,25],[24,22,16,28,"i"],[24,23,16,29],[24,26,16,32],[24,27,16,33],[25,12,17,16],[26,12,18,16],[27,10,19,12],[28,8,20,12],[29,8,21,12],[29,13,21,17],[29,16,21,20],[30,10,22,16,"c"],[30,11,22,17],[30,13,22,19],[31,10,23,16],[32,8,24,12],[32,13,24,17],[32,16,24,20],[33,10,25,16,"c"],[33,11,25,17],[33,13,25,19],[34,10,26,16],[35,8,27,12],[36,8,28,12],[36,13,28,17],[36,16,28,20],[37,10,29,16,"f"],[37,11,29,17],[37,13,29,19],[38,10,30,16],[39,8,31,12],[39,13,31,17],[39,16,31,20],[40,10,32,16,"f"],[40,11,32,17],[40,13,32,19],[41,10,33,16],[42,8,34,12],[43,8,35,12],[43,13,35,17],[43,16,35,20],[44,10,36,16,"s"],[44,11,36,17],[44,13,36,19],[45,10,37,16],[46,8,38,12],[46,13,38,17],[46,16,38,20],[47,10,39,16,"s"],[47,11,39,17],[47,13,39,19],[48,10,40,16],[49,8,41,12],[50,8,42,12],[50,13,42,17],[50,16,42,20],[51,10,43,16,"t"],[51,11,43,17],[51,13,43,19],[52,10,44,16],[53,8,45,12],[53,13,45,17],[53,16,45,20],[54,10,46,16,"t"],[54,11,46,17],[54,13,46,19],[55,10,47,16],[56,6,48,8],[57,4,49,4],[58,4,50,4],[59,4,51,4],[59,8,51,8,"c"],[59,9,51,9],[59,13,51,13,"f"],[59,14,51,14],[59,18,51,18,"s"],[59,19,51,19],[59,23,51,23,"t"],[59,24,51,24],[59,26,51,26],[60,6,52,8],[60,12,52,14],[60,16,52,18,"Error"],[60,21,52,23],[60,22,52,24],[60,75,52,77,"type"],[60,79,52,81],[60,81,52,83],[60,82,52,84],[61,4,53,4],[62,4,54,4],[63,4,55,4,"result"],[63,10,55,10],[63,11,55,11,"push"],[63,15,55,15],[63,16,55,16,"type"],[63,20,55,20],[63,21,55,21,"substring"],[63,30,55,30],[63,31,55,31,"start"],[63,36,55,36],[63,38,55,38,"type"],[63,42,55,42],[63,43,55,43,"length"],[63,49,55,49],[63,50,55,50],[63,51,55,51,"trim"],[63,55,55,55],[63,56,55,56],[63,57,55,57],[63,58,55,58],[64,4,56,4],[64,11,56,11,"result"],[64,17,56,17],[65,2,57,0],[66,0,57,1],[66,3]],"functionMap":{"names":["<global>","typeSplit"],"mappings":"AAA,OC;CDwD"},"hasCjsExports":false},"type":"js/module"}]} |