mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 15:41:01 +00:00
1 line
8.8 KiB
Plaintext
1 line
8.8 KiB
Plaintext
{"dependencies":[{"name":"@babel/runtime/helpers/asyncToGenerator","data":{"asyncType":null,"isESMImport":false,"locs":[],"key":"YisBBiy2Xm9DEVdFebZ2nbgAHBo=","exportNames":["*"],"imports":1}},{"name":"react-native","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":40,"index":40}}],"key":"KyzuX10g6ixS9UfynhmjlvCIG3g=","exportNames":["*"],"imports":1}},{"name":"buffer","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":2,"column":0,"index":41},"end":{"line":2,"column":32,"index":73}}],"key":"L2R9OUI0/cSYwzijo34ce4VujKY=","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 function _interopDefault(e) {\n return e && e.__esModule ? e : {\n default: e\n };\n }\n exports.fetchText = fetchText;\n var _babelRuntimeHelpersAsyncToGenerator = require(_dependencyMap[0], \"@babel/runtime/helpers/asyncToGenerator\");\n var _asyncToGenerator = _interopDefault(_babelRuntimeHelpersAsyncToGenerator);\n var _reactNative = require(_dependencyMap[1], \"react-native\");\n var _buffer = require(_dependencyMap[2], \"buffer\");\n function fetchText(_x) {\n return _fetchText.apply(this, arguments);\n }\n function _fetchText() {\n _fetchText = (0, _asyncToGenerator.default)(function* (uri) {\n if (!uri) {\n return null;\n }\n if (uri.startsWith('data:image/svg+xml;utf8') && _reactNative.Platform.OS === 'android') {\n return dataUriToXml(uri);\n } else if (uri.startsWith('data:image/svg+xml;base64')) {\n return decodeBase64Image(uri);\n } else {\n return fetchUriData(uri);\n }\n });\n return _fetchText.apply(this, arguments);\n }\n var decodeBase64Image = function decodeBase64Image(uri) {\n var decoded = decodeURIComponent(uri);\n var splitContent = decoded.split(';')[1].split(',');\n var dataType = splitContent[0];\n var content = splitContent.slice(1).join(',');\n return _buffer.Buffer.from(content, dataType).toString('utf-8');\n };\n function dataUriToXml(uri) {\n try {\n // decode and remove data:image/svg+xml;utf8, prefix\n return decodeURIComponent(uri).split(',').slice(1).join(',');\n } catch (error) {\n throw new Error(`Decoding ${uri} failed with error: ${error}`);\n }\n }\n function fetchUriData(_x2) {\n return _fetchUriData.apply(this, arguments);\n }\n function _fetchUriData() {\n _fetchUriData = (0, _asyncToGenerator.default)(function* (uri) {\n var response = yield fetch(uri);\n if (response.ok || response.status === 0 && uri.startsWith('file://')) {\n return yield response.text();\n }\n throw new Error(`Fetching ${uri} failed with status ${response.status}`);\n });\n return _fetchUriData.apply(this, arguments);\n }\n});","lineCount":63,"map":[[12,2,4,0,"exports"],[12,9,4,0],[12,10,4,0,"fetchText"],[12,19,4,0],[12,22,4,0,"fetchText"],[12,31,4,0],[13,2,15,1],[13,6,15,1,"_babelRuntimeHelpersAsyncToGenerator"],[13,42,15,1],[13,45,15,1,"require"],[13,52,15,1],[13,53,15,1,"_dependencyMap"],[13,67,15,1],[14,2,15,1],[14,6,15,1,"_asyncToGenerator"],[14,23,15,1],[14,26,15,1,"_interopDefault"],[14,41,15,1],[14,42,15,1,"_babelRuntimeHelpersAsyncToGenerator"],[14,78,15,1],[15,2,1,0],[15,6,1,0,"_reactNative"],[15,18,1,0],[15,21,1,0,"require"],[15,28,1,0],[15,29,1,0,"_dependencyMap"],[15,43,1,0],[16,2,2,0],[16,6,2,0,"_buffer"],[16,13,2,0],[16,16,2,0,"require"],[16,23,2,0],[16,24,2,0,"_dependencyMap"],[16,38,2,0],[17,2,2,32],[17,11,4,22,"fetchText"],[17,20,4,31,"fetchText"],[17,21,4,31,"_x"],[17,23,4,31],[18,4,4,31],[18,11,4,31,"_fetchText"],[18,21,4,31],[18,22,4,31,"apply"],[18,27,4,31],[18,34,4,31,"arguments"],[18,43,4,31],[19,2,4,31],[20,2,4,31],[20,11,4,31,"_fetchText"],[20,22,4,31],[21,4,4,31,"_fetchText"],[21,14,4,31],[21,21,4,31,"_asyncToGenerator"],[21,38,4,31],[21,39,4,31,"default"],[21,46,4,31],[21,48,4,7],[21,59,4,32,"uri"],[21,62,4,44],[21,64,4,70],[22,6,5,2],[22,10,5,6],[22,11,5,7,"uri"],[22,14,5,10],[22,16,5,12],[23,8,6,4],[23,15,6,11],[23,19,6,15],[24,6,7,2],[25,6,8,2],[25,10,8,6,"uri"],[25,13,8,9],[25,14,8,10,"startsWith"],[25,24,8,20],[25,25,8,21],[25,50,8,46],[25,51,8,47],[25,55,8,51,"Platform"],[25,67,8,59],[25,68,8,59,"Platform"],[25,76,8,59],[25,77,8,60,"OS"],[25,79,8,62],[25,84,8,67],[25,93,8,76],[25,95,8,78],[26,8,9,4],[26,15,9,11,"dataUriToXml"],[26,27,9,23],[26,28,9,24,"uri"],[26,31,9,27],[26,32,9,28],[27,6,10,2],[27,7,10,3],[27,13,10,9],[27,17,10,13,"uri"],[27,20,10,16],[27,21,10,17,"startsWith"],[27,31,10,27],[27,32,10,28],[27,59,10,55],[27,60,10,56],[27,62,10,58],[28,8,11,4],[28,15,11,11,"decodeBase64Image"],[28,32,11,28],[28,33,11,29,"uri"],[28,36,11,32],[28,37,11,33],[29,6,12,2],[29,7,12,3],[29,13,12,9],[30,8,13,4],[30,15,13,11,"fetchUriData"],[30,27,13,23],[30,28,13,24,"uri"],[30,31,13,27],[30,32,13,28],[31,6,14,2],[32,4,15,0],[32,5,15,1],[33,4,15,1],[33,11,15,1,"_fetchText"],[33,21,15,1],[33,22,15,1,"apply"],[33,27,15,1],[33,34,15,1,"arguments"],[33,43,15,1],[34,2,15,1],[35,2,17,0],[35,6,17,6,"decodeBase64Image"],[35,23,17,23],[35,26,17,26],[35,35,17,6,"decodeBase64Image"],[35,52,17,23,"decodeBase64Image"],[35,53,17,27,"uri"],[35,56,17,38],[35,58,17,43],[36,4,18,2],[36,8,18,8,"decoded"],[36,15,18,15],[36,18,18,18,"decodeURIComponent"],[36,36,18,36],[36,37,18,37,"uri"],[36,40,18,40],[36,41,18,41],[37,4,19,2],[37,8,19,8,"splitContent"],[37,20,19,20],[37,23,19,23,"decoded"],[37,30,19,30],[37,31,19,31,"split"],[37,36,19,36],[37,37,19,37],[37,40,19,40],[37,41,19,41],[37,42,19,42],[37,43,19,43],[37,44,19,44],[37,45,19,45,"split"],[37,50,19,50],[37,51,19,51],[37,54,19,54],[37,55,19,55],[38,4,20,2],[38,8,20,8,"dataType"],[38,16,20,16],[38,19,20,19,"splitContent"],[38,31,20,31],[38,32,20,32],[38,33,20,33],[38,34,20,52],[39,4,21,2],[39,8,21,8,"content"],[39,15,21,15],[39,18,21,18,"splitContent"],[39,30,21,30],[39,31,21,31,"slice"],[39,36,21,36],[39,37,21,37],[39,38,21,38],[39,39,21,39],[39,40,21,40,"join"],[39,44,21,44],[39,45,21,45],[39,48,21,48],[39,49,21,49],[40,4,23,2],[40,11,23,9,"Buffer"],[40,18,23,15],[40,19,23,15,"Buffer"],[40,25,23,15],[40,26,23,16,"from"],[40,30,23,20],[40,31,23,21,"content"],[40,38,23,28],[40,40,23,30,"dataType"],[40,48,23,38],[40,49,23,39],[40,50,23,40,"toString"],[40,58,23,48],[40,59,23,49],[40,66,23,56],[40,67,23,57],[41,2,24,0],[41,3,24,1],[42,2,26,0],[42,11,26,9,"dataUriToXml"],[42,23,26,21,"dataUriToXml"],[42,24,26,22,"uri"],[42,27,26,33],[42,29,26,50],[43,4,27,2],[43,8,27,6],[44,6,28,4],[45,6,29,4],[45,13,29,11,"decodeURIComponent"],[45,31,29,29],[45,32,29,30,"uri"],[45,35,29,33],[45,36,29,34],[45,37,29,35,"split"],[45,42,29,40],[45,43,29,41],[45,46,29,44],[45,47,29,45],[45,48,29,46,"slice"],[45,53,29,51],[45,54,29,52],[45,55,29,53],[45,56,29,54],[45,57,29,55,"join"],[45,61,29,59],[45,62,29,60],[45,65,29,63],[45,66,29,64],[46,4,30,2],[46,5,30,3],[46,6,30,4],[46,13,30,11,"error"],[46,18,30,16],[46,20,30,18],[47,6,31,4],[47,12,31,10],[47,16,31,14,"Error"],[47,21,31,19],[47,22,31,20],[47,34,31,32,"uri"],[47,37,31,35],[47,60,31,58,"error"],[47,65,31,63],[47,67,31,65],[47,68,31,66],[48,4,32,2],[49,2,33,0],[50,2,33,1],[50,11,35,15,"fetchUriData"],[50,23,35,27,"fetchUriData"],[50,24,35,27,"_x2"],[50,27,35,27],[51,4,35,27],[51,11,35,27,"_fetchUriData"],[51,24,35,27],[51,25,35,27,"apply"],[51,30,35,27],[51,37,35,27,"arguments"],[51,46,35,27],[52,2,35,27],[53,2,35,27],[53,11,35,27,"_fetchUriData"],[53,25,35,27],[54,4,35,27,"_fetchUriData"],[54,17,35,27],[54,24,35,27,"_asyncToGenerator"],[54,41,35,27],[54,42,35,27,"default"],[54,49,35,27],[54,51,35,0],[54,62,35,28,"uri"],[54,65,35,39],[54,67,35,41],[55,6,36,2],[55,10,36,8,"response"],[55,18,36,16],[55,27,36,25,"fetch"],[55,32,36,30],[55,33,36,31,"uri"],[55,36,36,34],[55,37,36,35],[56,6,37,2],[56,10,37,6,"response"],[56,18,37,14],[56,19,37,15,"ok"],[56,21,37,17],[56,25,37,22,"response"],[56,33,37,30],[56,34,37,31,"status"],[56,40,37,37],[56,45,37,42],[56,46,37,43],[56,50,37,47,"uri"],[56,53,37,50],[56,54,37,51,"startsWith"],[56,64,37,61],[56,65,37,62],[56,74,37,71],[56,75,37,73],[56,77,37,75],[57,8,38,4],[57,21,38,17,"response"],[57,29,38,25],[57,30,38,26,"text"],[57,34,38,30],[57,35,38,31],[57,36,38,32],[58,6,39,2],[59,6,40,2],[59,12,40,8],[59,16,40,12,"Error"],[59,21,40,17],[59,22,40,18],[59,34,40,30,"uri"],[59,37,40,33],[59,60,40,56,"response"],[59,68,40,64],[59,69,40,65,"status"],[59,75,40,71],[59,77,40,73],[59,78,40,74],[60,4,41,0],[60,5,41,1],[61,4,41,1],[61,11,41,1,"_fetchUriData"],[61,24,41,1],[61,25,41,1,"apply"],[61,30,41,1],[61,37,41,1,"arguments"],[61,46,41,1],[62,2,41,1],[63,0,41,1],[63,3]],"functionMap":{"names":["<global>","fetchText","decodeBase64Image","dataUriToXml","fetchUriData"],"mappings":"AAA;OCG;CDW;0BEE;CFO;AGE;CHO;AIE;CJM"},"hasCjsExports":false},"type":"js/module"}]} |