Files
pezkuwi-mobile-app/frontend/.metro-cache/cache/bf/b15df209f915ccef58b0b4b9d8c2f769695622f30d6843bd41cdf9e66b29dbe6bcc3e1
T
2025-11-07 20:14:32 +00:00

1 line
11 KiB
Plaintext

{"dependencies":[{"name":"@polkadot/types-codec","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":4,"column":22,"index":144},"end":{"line":4,"column":54,"index":176}}],"key":"fW1yxuTjZe66ggmM4ihNuGjKSV0=","exportNames":["*"],"imports":1}},{"name":"@polkadot/util","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":5,"column":15,"index":193},"end":{"line":5,"column":40,"index":218}}],"key":"u0mzEw2nilnHoUWtEdZl0JKHutA=","exportNames":["*"],"imports":1}},{"name":"./class.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":6,"column":19,"index":239},"end":{"line":6,"column":40,"index":260}}],"key":"hr8SWx25kSzNXEy+30aPMG7zoCM=","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.createTypeUnsafe = createTypeUnsafe;\n const types_codec_1 = require(_dependencyMap[0], \"@polkadot/types-codec\");\n const util_1 = require(_dependencyMap[1], \"@polkadot/util\");\n const class_js_1 = require(_dependencyMap[2], \"./class.js\");\n function checkInstance(created, matcher) {\n const u8a = created.toU8a();\n const rawType = created.toRawType();\n const isOk =\n // full match, all ok\n (0, util_1.u8aEq)(u8a, matcher) ||\n // on a length-prefixed type, just check the actual length\n ['Bytes', 'Text', 'Type'].includes(rawType) && matcher.length === created.length ||\n // when the created is empty and matcher is also empty, let it slide...\n created.isEmpty && matcher.every(v => !v);\n if (!isOk) {\n throw new Error(`${rawType}:: Decoded input doesn't match input, received ${(0, util_1.u8aToHex)(matcher, 512)} (${matcher.length} bytes), created ${(0, util_1.u8aToHex)(u8a, 512)} (${u8a.length} bytes)`);\n }\n }\n function checkPedantic(created, [value]) {\n if ((0, util_1.isU8a)(value)) {\n checkInstance(created, value);\n } else if ((0, util_1.isHex)(value)) {\n checkInstance(created, (0, util_1.u8aToU8a)(value));\n }\n }\n function initType(registry, Type, params = [], {\n blockHash,\n isFallback,\n isOptional,\n isPedantic\n } = {}) {\n const created = new (isOptional ? types_codec_1.Option.with(Type) : Type)(registry, ...params);\n isPedantic && checkPedantic(created, params);\n if (blockHash) {\n created.createdAtHash = createTypeUnsafe(registry, 'BlockHash', [blockHash]);\n }\n if (isFallback) {\n created.isStorageFallback = true;\n }\n return created;\n }\n function createTypeUnsafe(registry, type, params = [], options = {}) {\n let Clazz = null;\n let firstError = null;\n try {\n Clazz = (0, class_js_1.createClassUnsafe)(registry, type);\n return initType(registry, Clazz, params, options);\n } catch (error) {\n firstError = new Error(`createType(${type}):: ${error.message}`);\n }\n if (Clazz?.__fallbackType) {\n try {\n Clazz = (0, class_js_1.createClassUnsafe)(registry, Clazz.__fallbackType);\n return initType(registry, Clazz, params, options);\n } catch {\n // swallow, we will throw the first error again\n }\n }\n throw firstError;\n }\n});","lineCount":67,"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,"createTypeUnsafe"],[7,26,3,24],[7,29,3,27,"createTypeUnsafe"],[7,45,3,43],[8,2,4,0],[8,8,4,6,"types_codec_1"],[8,21,4,19],[8,24,4,22,"require"],[8,31,4,29],[8,32,4,29,"_dependencyMap"],[8,46,4,29],[8,74,4,53],[8,75,4,54],[9,2,5,0],[9,8,5,6,"util_1"],[9,14,5,12],[9,17,5,15,"require"],[9,24,5,22],[9,25,5,22,"_dependencyMap"],[9,39,5,22],[9,60,5,39],[9,61,5,40],[10,2,6,0],[10,8,6,6,"class_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,60,6,39],[10,61,6,40],[11,2,7,0],[11,11,7,9,"checkInstance"],[11,24,7,22,"checkInstance"],[11,25,7,23,"created"],[11,32,7,30],[11,34,7,32,"matcher"],[11,41,7,39],[11,43,7,41],[12,4,8,4],[12,10,8,10,"u8a"],[12,13,8,13],[12,16,8,16,"created"],[12,23,8,23],[12,24,8,24,"toU8a"],[12,29,8,29],[12,30,8,30],[12,31,8,31],[13,4,9,4],[13,10,9,10,"rawType"],[13,17,9,17],[13,20,9,20,"created"],[13,27,9,27],[13,28,9,28,"toRawType"],[13,37,9,37],[13,38,9,38],[13,39,9,39],[14,4,10,4],[14,10,10,10,"isOk"],[14,14,10,14],[15,4,11,4],[16,4,12,4],[16,5,12,5],[16,6,12,6],[16,8,12,8,"util_1"],[16,14,12,14],[16,15,12,15,"u8aEq"],[16,20,12,20],[16,22,12,22,"u8a"],[16,25,12,25],[16,27,12,27,"matcher"],[16,34,12,34],[16,35,12,35],[17,4,14,8],[18,4,15,8],[18,5,15,9],[18,12,15,16],[18,14,15,18],[18,20,15,24],[18,22,15,26],[18,28,15,32],[18,29,15,33],[18,30,15,34,"includes"],[18,38,15,42],[18,39,15,43,"rawType"],[18,46,15,50],[18,47,15,51],[18,51,16,12,"matcher"],[18,58,16,19],[18,59,16,20,"length"],[18,65,16,26],[18,70,16,31,"created"],[18,77,16,38],[18,78,16,39,"length"],[18,84,16,46],[19,4,18,8],[20,4,19,8,"created"],[20,11,19,15],[20,12,19,16,"isEmpty"],[20,19,19,23],[20,23,20,12,"matcher"],[20,30,20,19],[20,31,20,20,"every"],[20,36,20,25],[20,37,20,27,"v"],[20,38,20,28],[20,42,20,33],[20,43,20,34,"v"],[20,44,20,35],[20,45,20,38],[21,4,21,4],[21,8,21,8],[21,9,21,9,"isOk"],[21,13,21,13],[21,15,21,15],[22,6,22,8],[22,12,22,14],[22,16,22,18,"Error"],[22,21,22,23],[22,22,22,24],[22,25,22,27,"rawType"],[22,32,22,34],[22,82,22,84],[22,83,22,85],[22,84,22,86],[22,86,22,88,"util_1"],[22,92,22,94],[22,93,22,95,"u8aToHex"],[22,101,22,103],[22,103,22,105,"matcher"],[22,110,22,112],[22,112,22,114],[22,115,22,117],[22,116,22,118],[22,121,22,123,"matcher"],[22,128,22,130],[22,129,22,131,"length"],[22,135,22,137],[22,155,22,157],[22,156,22,158],[22,157,22,159],[22,159,22,161,"util_1"],[22,165,22,167],[22,166,22,168,"u8aToHex"],[22,174,22,176],[22,176,22,178,"u8a"],[22,179,22,181],[22,181,22,183],[22,184,22,186],[22,185,22,187],[22,190,22,192,"u8a"],[22,193,22,195],[22,194,22,196,"length"],[22,200,22,202],[22,209,22,211],[22,210,22,212],[23,4,23,4],[24,2,24,0],[25,2,25,0],[25,11,25,9,"checkPedantic"],[25,24,25,22,"checkPedantic"],[25,25,25,23,"created"],[25,32,25,30],[25,34,25,32],[25,35,25,33,"value"],[25,40,25,38],[25,41,25,39],[25,43,25,41],[26,4,26,4],[26,8,26,8],[26,9,26,9],[26,10,26,10],[26,12,26,12,"util_1"],[26,18,26,18],[26,19,26,19,"isU8a"],[26,24,26,24],[26,26,26,26,"value"],[26,31,26,31],[26,32,26,32],[26,34,26,34],[27,6,27,8,"checkInstance"],[27,19,27,21],[27,20,27,22,"created"],[27,27,27,29],[27,29,27,31,"value"],[27,34,27,36],[27,35,27,37],[28,4,28,4],[28,5,28,5],[28,11,29,9],[28,15,29,13],[28,16,29,14],[28,17,29,15],[28,19,29,17,"util_1"],[28,25,29,23],[28,26,29,24,"isHex"],[28,31,29,29],[28,33,29,31,"value"],[28,38,29,36],[28,39,29,37],[28,41,29,39],[29,6,30,8,"checkInstance"],[29,19,30,21],[29,20,30,22,"created"],[29,27,30,29],[29,29,30,31],[29,30,30,32],[29,31,30,33],[29,33,30,35,"util_1"],[29,39,30,41],[29,40,30,42,"u8aToU8a"],[29,48,30,50],[29,50,30,52,"value"],[29,55,30,57],[29,56,30,58],[29,57,30,59],[30,4,31,4],[31,2,32,0],[32,2,33,0],[32,11,33,9,"initType"],[32,19,33,17,"initType"],[32,20,33,18,"registry"],[32,28,33,26],[32,30,33,28,"Type"],[32,34,33,32],[32,36,33,34,"params"],[32,42,33,40],[32,45,33,43],[32,47,33,45],[32,49,33,47],[33,4,33,49,"blockHash"],[33,13,33,58],[34,4,33,60,"isFallback"],[34,14,33,70],[35,4,33,72,"isOptional"],[35,14,33,82],[36,4,33,84,"isPedantic"],[37,2,33,95],[37,3,33,96],[37,6,33,99],[37,7,33,100],[37,8,33,101],[37,10,33,103],[38,4,34,4],[38,10,34,10,"created"],[38,17,34,17],[38,20,34,20],[38,25,34,25,"isOptional"],[38,35,34,35],[38,38,35,10,"types_codec_1"],[38,51,35,23],[38,52,35,24,"Option"],[38,58,35,30],[38,59,35,31,"with"],[38,63,35,35],[38,64,35,36,"Type"],[38,68,35,40],[38,69,35,41],[38,72,36,10,"Type"],[38,76,36,14],[38,78,36,16,"registry"],[38,86,36,24],[38,88,36,26],[38,91,36,29,"params"],[38,97,36,35],[38,98,36,36],[39,4,37,4,"isPedantic"],[39,14,37,14],[39,18,37,18,"checkPedantic"],[39,31,37,31],[39,32,37,32,"created"],[39,39,37,39],[39,41,37,41,"params"],[39,47,37,47],[39,48,37,48],[40,4,38,4],[40,8,38,8,"blockHash"],[40,17,38,17],[40,19,38,19],[41,6,39,8,"created"],[41,13,39,15],[41,14,39,16,"createdAtHash"],[41,27,39,29],[41,30,39,32,"createTypeUnsafe"],[41,46,39,48],[41,47,39,49,"registry"],[41,55,39,57],[41,57,39,59],[41,68,39,70],[41,70,39,72],[41,71,39,73,"blockHash"],[41,80,39,82],[41,81,39,83],[41,82,39,84],[42,4,40,4],[43,4,41,4],[43,8,41,8,"isFallback"],[43,18,41,18],[43,20,41,20],[44,6,42,8,"created"],[44,13,42,15],[44,14,42,16,"isStorageFallback"],[44,31,42,33],[44,34,42,36],[44,38,42,40],[45,4,43,4],[46,4,44,4],[46,11,44,11,"created"],[46,18,44,18],[47,2,45,0],[48,2,46,0],[48,11,46,9,"createTypeUnsafe"],[48,27,46,25,"createTypeUnsafe"],[48,28,46,26,"registry"],[48,36,46,34],[48,38,46,36,"type"],[48,42,46,40],[48,44,46,42,"params"],[48,50,46,48],[48,53,46,51],[48,55,46,53],[48,57,46,55,"options"],[48,64,46,62],[48,67,46,65],[48,68,46,66],[48,69,46,67],[48,71,46,69],[49,4,47,4],[49,8,47,8,"Clazz"],[49,13,47,13],[49,16,47,16],[49,20,47,20],[50,4,48,4],[50,8,48,8,"firstError"],[50,18,48,18],[50,21,48,21],[50,25,48,25],[51,4,49,4],[51,8,49,8],[52,6,50,8,"Clazz"],[52,11,50,13],[52,14,50,16],[52,15,50,17],[52,16,50,18],[52,18,50,20,"class_js_1"],[52,28,50,30],[52,29,50,31,"createClassUnsafe"],[52,46,50,48],[52,48,50,50,"registry"],[52,56,50,58],[52,58,50,60,"type"],[52,62,50,64],[52,63,50,65],[53,6,51,8],[53,13,51,15,"initType"],[53,21,51,23],[53,22,51,24,"registry"],[53,30,51,32],[53,32,51,34,"Clazz"],[53,37,51,39],[53,39,51,41,"params"],[53,45,51,47],[53,47,51,49,"options"],[53,54,51,56],[53,55,51,57],[54,4,52,4],[54,5,52,5],[54,6,53,4],[54,13,53,11,"error"],[54,18,53,16],[54,20,53,18],[55,6,54,8,"firstError"],[55,16,54,18],[55,19,54,21],[55,23,54,25,"Error"],[55,28,54,30],[55,29,54,31],[55,43,54,45,"type"],[55,47,54,49],[55,54,54,56,"error"],[55,59,54,61],[55,60,54,62,"message"],[55,67,54,69],[55,69,54,71],[55,70,54,72],[56,4,55,4],[57,4,56,4],[57,8,56,8,"Clazz"],[57,13,56,13],[57,15,56,15,"__fallbackType"],[57,29,56,29],[57,31,56,31],[58,6,57,8],[58,10,57,12],[59,8,58,12,"Clazz"],[59,13,58,17],[59,16,58,20],[59,17,58,21],[59,18,58,22],[59,20,58,24,"class_js_1"],[59,30,58,34],[59,31,58,35,"createClassUnsafe"],[59,48,58,52],[59,50,58,54,"registry"],[59,58,58,62],[59,60,58,64,"Clazz"],[59,65,58,69],[59,66,58,70,"__fallbackType"],[59,80,58,84],[59,81,58,85],[60,8,59,12],[60,15,59,19,"initType"],[60,23,59,27],[60,24,59,28,"registry"],[60,32,59,36],[60,34,59,38,"Clazz"],[60,39,59,43],[60,41,59,45,"params"],[60,47,59,51],[60,49,59,53,"options"],[60,56,59,60],[60,57,59,61],[61,6,60,8],[61,7,60,9],[61,8,61,8],[61,14,61,14],[62,8,62,12],[63,6,62,12],[64,4,64,4],[65,4,65,4],[65,10,65,10,"firstError"],[65,20,65,20],[66,2,66,0],[67,0,66,1],[67,3]],"functionMap":{"names":["<global>","checkInstance","matcher.every$argument_0","checkPedantic","initType","createTypeUnsafe"],"mappings":"AAA;ACM;0BCa,SD;CDI;AGC;CHO;AIC;CJY;AKC;CLoB"},"hasCjsExports":true},"type":"js/module"}]}