Files
pezkuwi-mobile-app/frontend/.metro-cache/cache/3c/a2060efa4c846c0c9e61e0a6eaf0893a02f9b78c4ba3825db4ead991679c9a663e80d5
T
2025-11-08 07:19:17 +00:00

1 line
12 KiB
Plaintext

{"dependencies":[{"name":"rxjs","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":8,"column":15,"index":299},"end":{"line":8,"column":30,"index":314}}],"key":"atDzfUGaJNRNtwyVumomzH/5ygw=","exportNames":["*"],"imports":1}},{"name":"@polkadot/util","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":9,"column":15,"index":331},"end":{"line":9,"column":40,"index":356}}],"key":"u0mzEw2nilnHoUWtEdZl0JKHutA=","exportNames":["*"],"imports":1}},{"name":"../util/index.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":10,"column":19,"index":377},"end":{"line":10,"column":46,"index":404}}],"key":"H94lp+EitftSFqDHaenrSs5zKB0=","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.filterEras = filterEras;\n exports.erasHistoricApply = erasHistoricApply;\n exports.erasHistoricApplyAccount = erasHistoricApplyAccount;\n exports.singleEra = singleEra;\n exports.combineEras = combineEras;\n const rxjs_1 = require(_dependencyMap[0], \"rxjs\");\n const util_1 = require(_dependencyMap[1], \"@polkadot/util\");\n const index_js_1 = require(_dependencyMap[2], \"../util/index.js\");\n const ERA_CHUNK_SIZE = 14;\n function chunkEras(eras, fn) {\n const chunked = (0, util_1.arrayChunk)(eras, ERA_CHUNK_SIZE);\n let index = 0;\n const subject = new rxjs_1.BehaviorSubject(chunked[index]);\n return subject.pipe((0, rxjs_1.switchMap)(fn), (0, rxjs_1.tap)(() => {\n (0, util_1.nextTick)(() => {\n index++;\n index === chunked.length ? subject.complete() : subject.next(chunked[index]);\n });\n }), (0, rxjs_1.toArray)(), (0, rxjs_1.map)(util_1.arrayFlatten));\n }\n function filterEras(eras, list) {\n return eras.filter(e => !list.some(({\n era\n }) => e.eq(era)));\n }\n function erasHistoricApply(fn) {\n return (instanceId, api) =>\n // Cannot quite get the typing right, but it is right in the code\n // eslint-disable-next-line @typescript-eslint/no-unsafe-return\n (0, index_js_1.memo)(instanceId, (withActive = false) => api.derive.staking.erasHistoric(withActive).pipe((0, rxjs_1.switchMap)(e => api.derive.staking[fn](e, withActive))));\n }\n function erasHistoricApplyAccount(fn) {\n return (instanceId, api) =>\n // Cannot quite get the typing right, but it is right in the code\n // eslint-disable-next-line @typescript-eslint/no-unsafe-return\n (0, index_js_1.memo)(instanceId, (accountId, withActive = false, page) => api.derive.staking.erasHistoric(withActive).pipe((0, rxjs_1.switchMap)(e => api.derive.staking[fn](accountId, e, withActive, page || 0))));\n }\n function singleEra(fn) {\n return (instanceId, api) =>\n // Cannot quite get the typing right, but it is right in the code\n // eslint-disable-next-line @typescript-eslint/no-unsafe-return\n (0, index_js_1.memo)(instanceId, era => api.derive.staking[fn](era, true));\n }\n function combineEras(fn) {\n return (instanceId, api) =>\n // Cannot quite get the typing right, but it is right in the code\n // eslint-disable-next-line @typescript-eslint/no-unsafe-return\n (0, index_js_1.memo)(instanceId, (eras, withActive) => !eras.length ? (0, rxjs_1.of)([]) : chunkEras(eras, eras => (0, rxjs_1.combineLatest)(eras.map(e => api.derive.staking[fn](e, withActive)))));\n }\n});","lineCount":56,"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,"filterEras"],[7,20,3,18],[7,23,3,21,"filterEras"],[7,33,3,31],[8,2,4,0,"exports"],[8,9,4,7],[8,10,4,8,"erasHistoricApply"],[8,27,4,25],[8,30,4,28,"erasHistoricApply"],[8,47,4,45],[9,2,5,0,"exports"],[9,9,5,7],[9,10,5,8,"erasHistoricApplyAccount"],[9,34,5,32],[9,37,5,35,"erasHistoricApplyAccount"],[9,61,5,59],[10,2,6,0,"exports"],[10,9,6,7],[10,10,6,8,"singleEra"],[10,19,6,17],[10,22,6,20,"singleEra"],[10,31,6,29],[11,2,7,0,"exports"],[11,9,7,7],[11,10,7,8,"combineEras"],[11,21,7,19],[11,24,7,22,"combineEras"],[11,35,7,33],[12,2,8,0],[12,8,8,6,"rxjs_1"],[12,14,8,12],[12,17,8,15,"require"],[12,24,8,22],[12,25,8,22,"_dependencyMap"],[12,39,8,22],[12,50,8,29],[12,51,8,30],[13,2,9,0],[13,8,9,6,"util_1"],[13,14,9,12],[13,17,9,15,"require"],[13,24,9,22],[13,25,9,22,"_dependencyMap"],[13,39,9,22],[13,60,9,39],[13,61,9,40],[14,2,10,0],[14,8,10,6,"index_js_1"],[14,18,10,16],[14,21,10,19,"require"],[14,28,10,26],[14,29,10,26,"_dependencyMap"],[14,43,10,26],[14,66,10,45],[14,67,10,46],[15,2,11,0],[15,8,11,6,"ERA_CHUNK_SIZE"],[15,22,11,20],[15,25,11,23],[15,27,11,25],[16,2,12,0],[16,11,12,9,"chunkEras"],[16,20,12,18,"chunkEras"],[16,21,12,19,"eras"],[16,25,12,23],[16,27,12,25,"fn"],[16,29,12,27],[16,31,12,29],[17,4,13,4],[17,10,13,10,"chunked"],[17,17,13,17],[17,20,13,20],[17,21,13,21],[17,22,13,22],[17,24,13,24,"util_1"],[17,30,13,30],[17,31,13,31,"arrayChunk"],[17,41,13,41],[17,43,13,43,"eras"],[17,47,13,47],[17,49,13,49,"ERA_CHUNK_SIZE"],[17,63,13,63],[17,64,13,64],[18,4,14,4],[18,8,14,8,"index"],[18,13,14,13],[18,16,14,16],[18,17,14,17],[19,4,15,4],[19,10,15,10,"subject"],[19,17,15,17],[19,20,15,20],[19,24,15,24,"rxjs_1"],[19,30,15,30],[19,31,15,31,"BehaviorSubject"],[19,46,15,46],[19,47,15,47,"chunked"],[19,54,15,54],[19,55,15,55,"index"],[19,60,15,60],[19,61,15,61],[19,62,15,62],[20,4,16,4],[20,11,16,11,"subject"],[20,18,16,18],[20,19,16,19,"pipe"],[20,23,16,23],[20,24,16,24],[20,25,16,25],[20,26,16,26],[20,28,16,28,"rxjs_1"],[20,34,16,34],[20,35,16,35,"switchMap"],[20,44,16,44],[20,46,16,46,"fn"],[20,48,16,48],[20,49,16,49],[20,51,16,51],[20,52,16,52],[20,53,16,53],[20,55,16,55,"rxjs_1"],[20,61,16,61],[20,62,16,62,"tap"],[20,65,16,65],[20,67,16,67],[20,73,16,73],[21,6,17,8],[21,7,17,9],[21,8,17,10],[21,10,17,12,"util_1"],[21,16,17,18],[21,17,17,19,"nextTick"],[21,25,17,27],[21,27,17,29],[21,33,17,35],[22,8,18,12,"index"],[22,13,18,17],[22,15,18,19],[23,8,19,12,"index"],[23,13,19,17],[23,18,19,22,"chunked"],[23,25,19,29],[23,26,19,30,"length"],[23,32,19,36],[23,35,20,18,"subject"],[23,42,20,25],[23,43,20,26,"complete"],[23,51,20,34],[23,52,20,35],[23,53,20,36],[23,56,21,18,"subject"],[23,63,21,25],[23,64,21,26,"next"],[23,68,21,30],[23,69,21,31,"chunked"],[23,76,21,38],[23,77,21,39,"index"],[23,82,21,44],[23,83,21,45],[23,84,21,46],[24,6,22,8],[24,7,22,9],[24,8,22,10],[25,4,23,4],[25,5,23,5],[25,6,23,6],[25,8,23,8],[25,9,23,9],[25,10,23,10],[25,12,23,12,"rxjs_1"],[25,18,23,18],[25,19,23,19,"toArray"],[25,26,23,26],[25,28,23,28],[25,29,23,29],[25,31,23,31],[25,32,23,32],[25,33,23,33],[25,35,23,35,"rxjs_1"],[25,41,23,41],[25,42,23,42,"map"],[25,45,23,45],[25,47,23,47,"util_1"],[25,53,23,53],[25,54,23,54,"arrayFlatten"],[25,66,23,66],[25,67,23,67],[25,68,23,68],[26,2,24,0],[27,2,25,0],[27,11,25,9,"filterEras"],[27,21,25,19,"filterEras"],[27,22,25,20,"eras"],[27,26,25,24],[27,28,25,26,"list"],[27,32,25,30],[27,34,25,32],[28,4,26,4],[28,11,26,11,"eras"],[28,15,26,15],[28,16,26,16,"filter"],[28,22,26,22],[28,23,26,24,"e"],[28,24,26,25],[28,28,26,30],[28,29,26,31,"list"],[28,33,26,35],[28,34,26,36,"some"],[28,38,26,40],[28,39,26,41],[28,40,26,42],[29,6,26,44,"era"],[30,4,26,48],[30,5,26,49],[30,10,26,54,"e"],[30,11,26,55],[30,12,26,56,"eq"],[30,14,26,58],[30,15,26,59,"era"],[30,18,26,62],[30,19,26,63],[30,20,26,64],[30,21,26,65],[31,2,27,0],[32,2,28,0],[32,11,28,9,"erasHistoricApply"],[32,28,28,26,"erasHistoricApply"],[32,29,28,27,"fn"],[32,31,28,29],[32,33,28,31],[33,4,29,4],[33,11,29,11],[33,12,29,12,"instanceId"],[33,22,29,22],[33,24,29,24,"api"],[33,27,29,27],[34,4,30,4],[35,4,31,4],[36,4,32,4],[36,5,32,5],[36,6,32,6],[36,8,32,8,"index_js_1"],[36,18,32,18],[36,19,32,19,"memo"],[36,23,32,23],[36,25,32,25,"instanceId"],[36,35,32,35],[36,37,32,37],[36,38,32,38,"withActive"],[36,48,32,48],[36,51,32,51],[36,56,32,56],[36,61,32,61,"api"],[36,64,32,64],[36,65,32,65,"derive"],[36,71,32,71],[36,72,32,72,"staking"],[36,79,32,79],[36,80,32,80,"erasHistoric"],[36,92,32,92],[36,93,32,93,"withActive"],[36,103,32,103],[36,104,32,104],[36,105,32,105,"pipe"],[36,109,32,109],[36,110,32,110],[36,111,32,111],[36,112,32,112],[36,114,32,114,"rxjs_1"],[36,120,32,120],[36,121,32,121,"switchMap"],[36,130,32,130],[36,132,32,133,"e"],[36,133,32,134],[36,137,32,139,"api"],[36,140,32,142],[36,141,32,143,"derive"],[36,147,32,149],[36,148,32,150,"staking"],[36,155,32,157],[36,156,32,158,"fn"],[36,158,32,160],[36,159,32,161],[36,160,32,162,"e"],[36,161,32,163],[36,163,32,165,"withActive"],[36,173,32,175],[36,174,32,176],[36,175,32,177],[36,176,32,178],[36,177,32,179],[37,2,33,0],[38,2,34,0],[38,11,34,9,"erasHistoricApplyAccount"],[38,35,34,33,"erasHistoricApplyAccount"],[38,36,34,34,"fn"],[38,38,34,36],[38,40,34,38],[39,4,35,4],[39,11,35,11],[39,12,35,12,"instanceId"],[39,22,35,22],[39,24,35,24,"api"],[39,27,35,27],[40,4,36,4],[41,4,37,4],[42,4,38,4],[42,5,38,5],[42,6,38,6],[42,8,38,8,"index_js_1"],[42,18,38,18],[42,19,38,19,"memo"],[42,23,38,23],[42,25,38,25,"instanceId"],[42,35,38,35],[42,37,38,37],[42,38,38,38,"accountId"],[42,47,38,47],[42,49,38,49,"withActive"],[42,59,38,59],[42,62,38,62],[42,67,38,67],[42,69,38,69,"page"],[42,73,38,73],[42,78,38,78,"api"],[42,81,38,81],[42,82,38,82,"derive"],[42,88,38,88],[42,89,38,89,"staking"],[42,96,38,96],[42,97,38,97,"erasHistoric"],[42,109,38,109],[42,110,38,110,"withActive"],[42,120,38,120],[42,121,38,121],[42,122,38,122,"pipe"],[42,126,38,126],[42,127,38,127],[42,128,38,128],[42,129,38,129],[42,131,38,131,"rxjs_1"],[42,137,38,137],[42,138,38,138,"switchMap"],[42,147,38,147],[42,149,38,150,"e"],[42,150,38,151],[42,154,38,156,"api"],[42,157,38,159],[42,158,38,160,"derive"],[42,164,38,166],[42,165,38,167,"staking"],[42,172,38,174],[42,173,38,175,"fn"],[42,175,38,177],[42,176,38,178],[42,177,38,179,"accountId"],[42,186,38,188],[42,188,38,190,"e"],[42,189,38,191],[42,191,38,193,"withActive"],[42,201,38,203],[42,203,38,205,"page"],[42,207,38,209],[42,211,38,213],[42,212,38,214],[42,213,38,215],[42,214,38,216],[42,215,38,217],[42,216,38,218],[43,2,39,0],[44,2,40,0],[44,11,40,9,"singleEra"],[44,20,40,18,"singleEra"],[44,21,40,19,"fn"],[44,23,40,21],[44,25,40,23],[45,4,41,4],[45,11,41,11],[45,12,41,12,"instanceId"],[45,22,41,22],[45,24,41,24,"api"],[45,27,41,27],[46,4,42,4],[47,4,43,4],[48,4,44,4],[48,5,44,5],[48,6,44,6],[48,8,44,8,"index_js_1"],[48,18,44,18],[48,19,44,19,"memo"],[48,23,44,23],[48,25,44,25,"instanceId"],[48,35,44,35],[48,37,44,38,"era"],[48,40,44,41],[48,44,44,46,"api"],[48,47,44,49],[48,48,44,50,"derive"],[48,54,44,56],[48,55,44,57,"staking"],[48,62,44,64],[48,63,44,65,"fn"],[48,65,44,67],[48,66,44,68],[48,67,44,69,"era"],[48,70,44,72],[48,72,44,74],[48,76,44,78],[48,77,44,79],[48,78,44,80],[49,2,45,0],[50,2,46,0],[50,11,46,9,"combineEras"],[50,22,46,20,"combineEras"],[50,23,46,21,"fn"],[50,25,46,23],[50,27,46,25],[51,4,47,4],[51,11,47,11],[51,12,47,12,"instanceId"],[51,22,47,22],[51,24,47,24,"api"],[51,27,47,27],[52,4,48,4],[53,4,49,4],[54,4,50,4],[54,5,50,5],[54,6,50,6],[54,8,50,8,"index_js_1"],[54,18,50,18],[54,19,50,19,"memo"],[54,23,50,23],[54,25,50,25,"instanceId"],[54,35,50,35],[54,37,50,37],[54,38,50,38,"eras"],[54,42,50,42],[54,44,50,44,"withActive"],[54,54,50,54],[54,59,50,59],[54,60,50,60,"eras"],[54,64,50,64],[54,65,50,65,"length"],[54,71,50,71],[54,74,51,10],[54,75,51,11],[54,76,51,12],[54,78,51,14,"rxjs_1"],[54,84,51,20],[54,85,51,21,"of"],[54,87,51,23],[54,89,51,25],[54,91,51,27],[54,92,51,28],[54,95,52,10,"chunkEras"],[54,104,52,19],[54,105,52,20,"eras"],[54,109,52,24],[54,111,52,27,"eras"],[54,115,52,31],[54,119,52,36],[54,120,52,37],[54,121,52,38],[54,123,52,40,"rxjs_1"],[54,129,52,46],[54,130,52,47,"combineLatest"],[54,143,52,60],[54,145,52,62,"eras"],[54,149,52,66],[54,150,52,67,"map"],[54,153,52,70],[54,154,52,72,"e"],[54,155,52,73],[54,159,52,78,"api"],[54,162,52,81],[54,163,52,82,"derive"],[54,169,52,88],[54,170,52,89,"staking"],[54,177,52,96],[54,178,52,97,"fn"],[54,180,52,99],[54,181,52,100],[54,182,52,101,"e"],[54,183,52,102],[54,185,52,104,"withActive"],[54,195,52,114],[54,196,52,115],[54,197,52,116],[54,198,52,117],[54,199,52,118],[54,200,52,119],[55,2,53,0],[56,0,53,1],[56,3]],"functionMap":{"names":["<global>","chunkEras","<anonymous>","filterEras","eras.filter$argument_0","list.some$argument_0","erasHistoricApply","erasHistoricApplyAccount","singleEra","combineEras","chunkEras$argument_1","eras.map$argument_0"],"mappings":"AAA;ACW;mECI;KDO;CDC;AGC;uBCC,kBC,sBD,CD;CHC;AMC;WJC;mLIG;CNC;AOC;WLC;0NKG;CPC;AQC;WNC;gFMG;CRC;ASC;WPC;0BQK,6CC,4CD,ER,EO;CTC"},"hasCjsExports":true},"type":"js/module"}]}