mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 19:11:02 +00:00
1 line
9.0 KiB
Plaintext
1 line
9.0 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, \"CC_TO_UP\", {\n enumerable: true,\n get: function () {\n return CC_TO_UP;\n }\n });\n Object.defineProperty(exports, \"CC_TO_LO\", {\n enumerable: true,\n get: function () {\n return CC_TO_LO;\n }\n });\n Object.defineProperty(exports, \"stringCamelCase\", {\n enumerable: true,\n get: function () {\n return stringCamelCase;\n }\n });\n Object.defineProperty(exports, \"stringPascalCase\", {\n enumerable: true,\n get: function () {\n return stringPascalCase;\n }\n });\n const CC_TO_UP = new Array(256);\n const CC_TO_LO = new Array(256);\n for (let i = 0, count = CC_TO_UP.length; i < count; i++) {\n CC_TO_LO[i] = String.fromCharCode(i).toLowerCase();\n CC_TO_UP[i] = String.fromCharCode(i).toUpperCase();\n }\n /** @internal */\n function formatAllCaps(w) {\n return w.slice(0, w.length - 1).toLowerCase() + CC_TO_UP[w.charCodeAt(w.length - 1)];\n }\n /**\n * @internal\n *\n * Inspired by https://stackoverflow.com/a/2970667\n *\n * This is not as optimal as the original SO answer (we split into per-word),\n * however it does pass the tests (which the SO version doesn't) and is still\n * a major improvement over the original camelcase npm package -\n *\n * camelcase: 20.88 μs/op\n * this: 1.00 μs/op\n *\n * Caveat of this: only Ascii, but acceptable for the intended usecase\n */\n function converter(format) {\n return value => {\n const parts = value\n // replace all separators (including consequtive) with spaces\n .replace(/[-_., ]+/g, ' ')\n // we don't want leading or trailing spaces\n .trim()\n // split into words\n .split(' ');\n let result = '';\n for (let i = 0, count = parts.length; i < count; i++) {\n const w = parts[i];\n // apply the formatting\n result += format(/^[\\dA-Z]+$/.test(w)\n // all full uppercase + letters are changed to lowercase\n ? w.toLowerCase()\n // all consecutive capitals + letters are changed to lowercase\n // e.g. UUID64 -> uuid64, while preserving splits, eg. NFTOrder -> nftOrder\n : w.replace(/^[\\dA-Z]{2,}[^a-z]/, formatAllCaps), i);\n }\n return result;\n };\n }\n /**\n * @name stringCamelCase\n * @summary Convert a dash/dot/underscore/space separated Ascii string/String to camelCase\n */\n const stringCamelCase = /*#__PURE__*/converter((w, i) => (i ? CC_TO_UP[w.charCodeAt(0)] : CC_TO_LO[w.charCodeAt(0)]) + w.slice(1));\n /**\n * @name stringPascalCase\n * @summary Convert a dash/dot/underscore/space separated Ascii string/String to PascalCase\n */\n const stringPascalCase = /*#__PURE__*/converter(w => CC_TO_UP[w.charCodeAt(0)] + w.slice(1));\n});","lineCount":88,"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,"CC_TO_UP"],[10,21,1,0],[11,4,1,0],[12,2,1,0],[13,2,2,0,"Object"],[13,8,2,0],[13,9,2,0,"defineProperty"],[13,23,2,0],[13,24,2,0,"exports"],[13,31,2,0],[14,4,2,0,"enumerable"],[14,14,2,0],[15,4,2,0,"get"],[15,7,2,0],[15,18,2,0,"get"],[15,19,2,0],[16,6,2,0],[16,13,2,0,"CC_TO_LO"],[16,21,2,0],[17,4,2,0],[18,2,2,0],[19,2,52,0,"Object"],[19,8,52,0],[19,9,52,0,"defineProperty"],[19,23,52,0],[19,24,52,0,"exports"],[19,31,52,0],[20,4,52,0,"enumerable"],[20,14,52,0],[21,4,52,0,"get"],[21,7,52,0],[21,18,52,0,"get"],[21,19,52,0],[22,6,52,0],[22,13,52,0,"stringCamelCase"],[22,28,52,0],[23,4,52,0],[24,2,52,0],[25,2,58,0,"Object"],[25,8,58,0],[25,9,58,0,"defineProperty"],[25,23,58,0],[25,24,58,0,"exports"],[25,31,58,0],[26,4,58,0,"enumerable"],[26,14,58,0],[27,4,58,0,"get"],[27,7,58,0],[27,18,58,0,"get"],[27,19,58,0],[28,6,58,0],[28,13,58,0,"stringPascalCase"],[28,29,58,0],[29,4,58,0],[30,2,58,0],[31,2,1,7],[31,8,1,13,"CC_TO_UP"],[31,16,1,21],[31,19,1,24],[31,23,1,28,"Array"],[31,28,1,33],[31,29,1,34],[31,32,1,37],[31,33,1,38],[32,2,2,7],[32,8,2,13,"CC_TO_LO"],[32,16,2,21],[32,19,2,24],[32,23,2,28,"Array"],[32,28,2,33],[32,29,2,34],[32,32,2,37],[32,33,2,38],[33,2,3,0],[33,7,3,5],[33,11,3,9,"i"],[33,12,3,10],[33,15,3,13],[33,16,3,14],[33,18,3,16,"count"],[33,23,3,21],[33,26,3,24,"CC_TO_UP"],[33,34,3,32],[33,35,3,33,"length"],[33,41,3,39],[33,43,3,41,"i"],[33,44,3,42],[33,47,3,45,"count"],[33,52,3,50],[33,54,3,52,"i"],[33,55,3,53],[33,57,3,55],[33,59,3,57],[34,4,4,4,"CC_TO_LO"],[34,12,4,12],[34,13,4,13,"i"],[34,14,4,14],[34,15,4,15],[34,18,4,18,"String"],[34,24,4,24],[34,25,4,25,"fromCharCode"],[34,37,4,37],[34,38,4,38,"i"],[34,39,4,39],[34,40,4,40],[34,41,4,41,"toLowerCase"],[34,52,4,52],[34,53,4,53],[34,54,4,54],[35,4,5,4,"CC_TO_UP"],[35,12,5,12],[35,13,5,13,"i"],[35,14,5,14],[35,15,5,15],[35,18,5,18,"String"],[35,24,5,24],[35,25,5,25,"fromCharCode"],[35,37,5,37],[35,38,5,38,"i"],[35,39,5,39],[35,40,5,40],[35,41,5,41,"toUpperCase"],[35,52,5,52],[35,53,5,53],[35,54,5,54],[36,2,6,0],[37,2,7,0],[38,2,8,0],[38,11,8,9,"formatAllCaps"],[38,24,8,22,"formatAllCaps"],[38,25,8,23,"w"],[38,26,8,24],[38,28,8,26],[39,4,9,4],[39,11,9,11,"w"],[39,12,9,12],[39,13,9,13,"slice"],[39,18,9,18],[39,19,9,19],[39,20,9,20],[39,22,9,22,"w"],[39,23,9,23],[39,24,9,24,"length"],[39,30,9,30],[39,33,9,33],[39,34,9,34],[39,35,9,35],[39,36,9,36,"toLowerCase"],[39,47,9,47],[39,48,9,48],[39,49,9,49],[39,52,9,52,"CC_TO_UP"],[39,60,9,60],[39,61,9,61,"w"],[39,62,9,62],[39,63,9,63,"charCodeAt"],[39,73,9,73],[39,74,9,74,"w"],[39,75,9,75],[39,76,9,76,"length"],[39,82,9,82],[39,85,9,85],[39,86,9,86],[39,87,9,87],[39,88,9,88],[40,2,10,0],[41,2,11,0],[42,0,12,0],[43,0,13,0],[44,0,14,0],[45,0,15,0],[46,0,16,0],[47,0,17,0],[48,0,18,0],[49,0,19,0],[50,0,20,0],[51,0,21,0],[52,0,22,0],[53,0,23,0],[54,0,24,0],[55,2,25,0],[55,11,25,9,"converter"],[55,20,25,18,"converter"],[55,21,25,19,"format"],[55,27,25,25],[55,29,25,27],[56,4,26,4],[56,11,26,12,"value"],[56,16,26,17],[56,20,26,22],[57,6,27,8],[57,12,27,14,"parts"],[57,17,27,19],[57,20,27,22,"value"],[58,6,28,12],[59,6,28,12],[59,7,29,13,"replace"],[59,14,29,20],[59,15,29,21],[59,26,29,32],[59,28,29,34],[59,31,29,37],[60,6,30,12],[61,6,30,12],[61,7,31,13,"trim"],[61,11,31,17],[61,12,31,18],[62,6,32,12],[63,6,32,12],[63,7,33,13,"split"],[63,12,33,18],[63,13,33,19],[63,16,33,22],[63,17,33,23],[64,6,34,8],[64,10,34,12,"result"],[64,16,34,18],[64,19,34,21],[64,21,34,23],[65,6,35,8],[65,11,35,13],[65,15,35,17,"i"],[65,16,35,18],[65,19,35,21],[65,20,35,22],[65,22,35,24,"count"],[65,27,35,29],[65,30,35,32,"parts"],[65,35,35,37],[65,36,35,38,"length"],[65,42,35,44],[65,44,35,46,"i"],[65,45,35,47],[65,48,35,50,"count"],[65,53,35,55],[65,55,35,57,"i"],[65,56,35,58],[65,58,35,60],[65,60,35,62],[66,8,36,12],[66,14,36,18,"w"],[66,15,36,19],[66,18,36,22,"parts"],[66,23,36,27],[66,24,36,28,"i"],[66,25,36,29],[66,26,36,30],[67,8,37,12],[68,8,38,12,"result"],[68,14,38,18],[68,18,38,22,"format"],[68,24,38,28],[68,25,38,29],[68,37,38,41],[68,38,38,42,"test"],[68,42,38,46],[68,43,38,47,"w"],[68,44,38,48],[69,8,39,16],[70,8,39,16],[70,10,40,18,"w"],[70,11,40,19],[70,12,40,20,"toLowerCase"],[70,23,40,31],[70,24,40,32],[71,8,41,16],[72,8,42,16],[73,8,42,16],[73,10,43,18,"w"],[73,11,43,19],[73,12,43,20,"replace"],[73,19,43,27],[73,20,43,28],[73,40,43,48],[73,42,43,50,"formatAllCaps"],[73,55,43,63],[73,56,43,64],[73,58,43,66,"i"],[73,59,43,67],[73,60,43,68],[74,6,44,8],[75,6,45,8],[75,13,45,15,"result"],[75,19,45,21],[76,4,46,4],[76,5,46,5],[77,2,47,0],[78,2,48,0],[79,0,49,0],[80,0,50,0],[81,0,51,0],[82,2,52,7],[82,8,52,13,"stringCamelCase"],[82,23,52,28],[82,26,52,31],[82,39,52,45,"converter"],[82,48,52,54],[82,49,52,55],[82,50,52,56,"w"],[82,51,52,57],[82,53,52,59,"i"],[82,54,52,60],[82,59,53,0],[82,60,53,1,"i"],[82,61,53,2],[82,64,53,5,"CC_TO_UP"],[82,72,53,13],[82,73,53,14,"w"],[82,74,53,15],[82,75,53,16,"charCodeAt"],[82,85,53,26],[82,86,53,27],[82,87,53,28],[82,88,53,29],[82,89,53,30],[82,92,53,33,"CC_TO_LO"],[82,100,53,41],[82,101,53,42,"w"],[82,102,53,43],[82,103,53,44,"charCodeAt"],[82,113,53,54],[82,114,53,55],[82,115,53,56],[82,116,53,57],[82,117,53,58],[82,121,53,62,"w"],[82,122,53,63],[82,123,53,64,"slice"],[82,128,53,69],[82,129,53,70],[82,130,53,71],[82,131,53,72],[82,132,53,73],[83,2,54,0],[84,0,55,0],[85,0,56,0],[86,0,57,0],[87,2,58,7],[87,8,58,13,"stringPascalCase"],[87,24,58,29],[87,27,58,32],[87,40,58,46,"converter"],[87,49,58,55],[87,50,58,57,"w"],[87,51,58,58],[87,55,59,0,"CC_TO_UP"],[87,63,59,8],[87,64,59,9,"w"],[87,65,59,10],[87,66,59,11,"charCodeAt"],[87,76,59,21],[87,77,59,22],[87,78,59,23],[87,79,59,24],[87,80,59,25],[87,83,59,28,"w"],[87,84,59,29],[87,85,59,30,"slice"],[87,90,59,35],[87,91,59,36],[87,92,59,37],[87,93,59,38],[87,94,59,39],[88,0,59,40],[88,3]],"functionMap":{"names":["<global>","formatAllCaps","converter","<anonymous>","converter$argument_0"],"mappings":"AAA;ACO;CDE;AEe;WCC;KDoB;CFC;uDIK;wEJC;wDIK;sCJC"},"hasCjsExports":false},"type":"js/module"}]} |