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

1 line
4.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 Object.defineProperty(exports, \"VALUE_BYTES_LIMIT\", {\n enumerable: true,\n get: function () {\n return VALUE_BYTES_LIMIT;\n }\n });\n exports.byteCountOverLimit = byteCountOverLimit;\n const VALUE_BYTES_LIMIT = 2048;\n // note this probably could be JS-engine dependent\n // inspired by https://stackoverflow.com/a/39488643\n function byteCountOverLimit(value, limit) {\n let bytes = 0;\n for (let i = 0; i < value.length; i++) {\n const codePoint = value.charCodeAt(i);\n // Lone surrogates cannot be passed to encodeURI\n if (codePoint >= 0xd800 && codePoint < 0xe000) {\n if (codePoint < 0xdc00 && i + 1 < value.length) {\n const next = value.charCodeAt(i + 1);\n if (next >= 0xdc00 && next < 0xe000) {\n bytes += 4;\n if (bytes > limit) {\n return true;\n }\n i++;\n continue;\n }\n }\n }\n bytes += codePoint < 0x80 ? 1 : codePoint < 0x800 ? 2 : 3;\n if (bytes > limit) {\n return true;\n }\n }\n return bytes > limit;\n }\n});","lineCount":42,"map":[[7,2,1,0,"Object"],[7,8,1,0],[7,9,1,0,"defineProperty"],[7,23,1,0],[7,24,1,0,"exports"],[7,31,1,0],[8,4,1,0,"enumerable"],[8,14,1,0],[9,4,1,0,"get"],[9,7,1,0],[9,18,1,0,"get"],[9,19,1,0],[10,6,1,0],[10,13,1,0,"VALUE_BYTES_LIMIT"],[10,30,1,0],[11,4,1,0],[12,2,1,0],[13,2,4,0,"exports"],[13,9,4,0],[13,10,4,0,"byteCountOverLimit"],[13,28,4,0],[13,31,4,0,"byteCountOverLimit"],[13,49,4,0],[14,2,1,7],[14,8,1,13,"VALUE_BYTES_LIMIT"],[14,25,1,30],[14,28,1,33],[14,32,1,37],[15,2,2,0],[16,2,3,0],[17,2,4,7],[17,11,4,16,"byteCountOverLimit"],[17,29,4,34,"byteCountOverLimit"],[17,30,4,35,"value"],[17,35,4,40],[17,37,4,42,"limit"],[17,42,4,47],[17,44,4,49],[18,4,5,4],[18,8,5,8,"bytes"],[18,13,5,13],[18,16,5,16],[18,17,5,17],[19,4,6,4],[19,9,6,9],[19,13,6,13,"i"],[19,14,6,14],[19,17,6,17],[19,18,6,18],[19,20,6,20,"i"],[19,21,6,21],[19,24,6,24,"value"],[19,29,6,29],[19,30,6,30,"length"],[19,36,6,36],[19,38,6,38,"i"],[19,39,6,39],[19,41,6,41],[19,43,6,43],[20,6,7,8],[20,12,7,14,"codePoint"],[20,21,7,23],[20,24,7,26,"value"],[20,29,7,31],[20,30,7,32,"charCodeAt"],[20,40,7,42],[20,41,7,43,"i"],[20,42,7,44],[20,43,7,45],[21,6,8,8],[22,6,9,8],[22,10,9,12,"codePoint"],[22,19,9,21],[22,23,9,25],[22,29,9,31],[22,33,9,35,"codePoint"],[22,42,9,44],[22,45,9,47],[22,51,9,53],[22,53,9,55],[23,8,10,12],[23,12,10,16,"codePoint"],[23,21,10,25],[23,24,10,28],[23,30,10,34],[23,34,10,38,"i"],[23,35,10,39],[23,38,10,42],[23,39,10,43],[23,42,10,46,"value"],[23,47,10,51],[23,48,10,52,"length"],[23,54,10,58],[23,56,10,60],[24,10,11,16],[24,16,11,22,"next"],[24,20,11,26],[24,23,11,29,"value"],[24,28,11,34],[24,29,11,35,"charCodeAt"],[24,39,11,45],[24,40,11,46,"i"],[24,41,11,47],[24,44,11,50],[24,45,11,51],[24,46,11,52],[25,10,12,16],[25,14,12,20,"next"],[25,18,12,24],[25,22,12,28],[25,28,12,34],[25,32,12,38,"next"],[25,36,12,42],[25,39,12,45],[25,45,12,51],[25,47,12,53],[26,12,13,20,"bytes"],[26,17,13,25],[26,21,13,29],[26,22,13,30],[27,12,14,20],[27,16,14,24,"bytes"],[27,21,14,29],[27,24,14,32,"limit"],[27,29,14,37],[27,31,14,39],[28,14,15,24],[28,21,15,31],[28,25,15,35],[29,12,16,20],[30,12,17,20,"i"],[30,13,17,21],[30,15,17,23],[31,12,18,20],[32,10,19,16],[33,8,20,12],[34,6,21,8],[35,6,22,8,"bytes"],[35,11,22,13],[35,15,22,17,"codePoint"],[35,24,22,26],[35,27,22,29],[35,31,22,33],[35,34,22,36],[35,35,22,37],[35,38,22,40,"codePoint"],[35,47,22,49],[35,50,22,52],[35,55,22,57],[35,58,22,60],[35,59,22,61],[35,62,22,64],[35,63,22,65],[36,6,23,8],[36,10,23,12,"bytes"],[36,15,23,17],[36,18,23,20,"limit"],[36,23,23,25],[36,25,23,27],[37,8,24,12],[37,15,24,19],[37,19,24,23],[38,6,25,8],[39,4,26,4],[40,4,27,4],[40,11,27,11,"bytes"],[40,16,27,16],[40,19,27,19,"limit"],[40,24,27,24],[41,2,28,0],[42,0,28,1],[42,3]],"functionMap":{"names":["<global>","byteCountOverLimit"],"mappings":"AAA;OCG;CDwB"},"hasCjsExports":false},"type":"js/module"}]}