mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 15:41:01 +00:00
1 line
9.1 KiB
Plaintext
1 line
9.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, \"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 var CC_TO_UP = new Array(256);\n var CC_TO_LO = new Array(256);\n for (var 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 function (value) {\n var 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 var result = '';\n for (var _i = 0, _count = parts.length; _i < _count; _i++) {\n var 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 var stringCamelCase = /*#__PURE__*/converter(function (w, i) {\n return (i ? CC_TO_UP[w.charCodeAt(0)] : CC_TO_LO[w.charCodeAt(0)]) + w.slice(1);\n });\n /**\n * @name stringPascalCase\n * @summary Convert a dash/dot/underscore/space separated Ascii string/String to PascalCase\n */\n var stringPascalCase = /*#__PURE__*/converter(function (w) {\n return CC_TO_UP[w.charCodeAt(0)] + w.slice(1);\n });\n});","lineCount":92,"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,6,1,13,"CC_TO_UP"],[31,14,1,21],[31,17,1,24],[31,21,1,28,"Array"],[31,26,1,33],[31,27,1,34],[31,30,1,37],[31,31,1,38],[32,2,2,7],[32,6,2,13,"CC_TO_LO"],[32,14,2,21],[32,17,2,24],[32,21,2,28,"Array"],[32,26,2,33],[32,27,2,34],[32,30,2,37],[32,31,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,11],[56,21,26,12,"value"],[56,26,26,17],[56,28,26,22],[57,6,27,8],[57,10,27,14,"parts"],[57,15,27,19],[57,18,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,17,35,18],[65,20,35,21],[65,21,35,22],[65,23,35,24,"count"],[65,29,35,29],[65,32,35,32,"parts"],[65,37,35,37],[65,38,35,38,"length"],[65,44,35,44],[65,46,35,46,"i"],[65,48,35,47],[65,51,35,50,"count"],[65,57,35,55],[65,59,35,57,"i"],[65,61,35,58],[65,63,35,60],[65,65,35,62],[66,8,36,12],[66,12,36,18,"w"],[66,13,36,19],[66,16,36,22,"parts"],[66,21,36,27],[66,22,36,28,"i"],[66,24,36,29],[66,25,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,60,43,67],[73,61,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,6,52,13,"stringCamelCase"],[82,21,52,28],[82,24,52,31],[82,37,52,45,"converter"],[82,46,52,54],[82,47,52,55],[82,57,52,56,"w"],[82,58,52,57],[82,60,52,59,"i"],[82,61,52,60],[83,4,52,60],[83,11,53,0],[83,12,53,1,"i"],[83,13,53,2],[83,16,53,5,"CC_TO_UP"],[83,24,53,13],[83,25,53,14,"w"],[83,26,53,15],[83,27,53,16,"charCodeAt"],[83,37,53,26],[83,38,53,27],[83,39,53,28],[83,40,53,29],[83,41,53,30],[83,44,53,33,"CC_TO_LO"],[83,52,53,41],[83,53,53,42,"w"],[83,54,53,43],[83,55,53,44,"charCodeAt"],[83,65,53,54],[83,66,53,55],[83,67,53,56],[83,68,53,57],[83,69,53,58],[83,73,53,62,"w"],[83,74,53,63],[83,75,53,64,"slice"],[83,80,53,69],[83,81,53,70],[83,82,53,71],[83,83,53,72],[84,2,53,72],[84,4,53,73],[85,2,54,0],[86,0,55,0],[87,0,56,0],[88,0,57,0],[89,2,58,7],[89,6,58,13,"stringPascalCase"],[89,22,58,29],[89,25,58,32],[89,38,58,46,"converter"],[89,47,58,55],[89,48,58,56],[89,58,58,57,"w"],[89,59,58,58],[90,4,58,58],[90,11,59,0,"CC_TO_UP"],[90,19,59,8],[90,20,59,9,"w"],[90,21,59,10],[90,22,59,11,"charCodeAt"],[90,32,59,21],[90,33,59,22],[90,34,59,23],[90,35,59,24],[90,36,59,25],[90,39,59,28,"w"],[90,40,59,29],[90,41,59,30,"slice"],[90,46,59,35],[90,47,59,36],[90,48,59,37],[90,49,59,38],[91,2,59,38],[91,4,59,39],[92,0,59,40],[92,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"}]} |