auto-commit for 49610908-ca1e-46b7-8671-ad75c85b7aa2

This commit is contained in:
emergent-agent-e1
2025-11-08 11:08:44 +00:00
parent 0373b73c4f
commit 32d0877be4
340 changed files with 340 additions and 0 deletions
@@ -0,0 +1 @@
{"dependencies":[{"name":"./hasPrefix.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":46,"index":46}}],"key":"OXUEjaaOOEeWe4PR4mb9hsG8LSE=","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.hexAddPrefix = hexAddPrefix;\n var _hasPrefixJs = require(_dependencyMap[0], \"./hasPrefix.js\");\n /**\n * @name hexAddPrefix\n * @summary Adds the `0x` prefix to string values.\n * @description\n * Returns a `0x` prefixed string from the input value. If the input is already prefixed, it is returned unchanged.\n * @example\n * <BR>\n *\n * ```javascript\n * import { hexAddPrefix } from '@polkadot/util';\n *\n * console.log('With prefix', hexAddPrefix('0a0b12')); // => 0x0a0b12\n * ```\n */\n function hexAddPrefix(value) {\n return value && (0, _hasPrefixJs.hexHasPrefix)(value) ? value : `0x${value && value.length % 2 === 1 ? '0' : ''}${value || ''}`;\n }\n});","lineCount":26,"map":[[7,2,16,0,"exports"],[7,9,16,0],[7,10,16,0,"hexAddPrefix"],[7,22,16,0],[7,25,16,0,"hexAddPrefix"],[7,37,16,0],[8,2,1,0],[8,6,1,0,"_hasPrefixJs"],[8,18,1,0],[8,21,1,0,"require"],[8,28,1,0],[8,29,1,0,"_dependencyMap"],[8,43,1,0],[9,2,2,0],[10,0,3,0],[11,0,4,0],[12,0,5,0],[13,0,6,0],[14,0,7,0],[15,0,8,0],[16,0,9,0],[17,0,10,0],[18,0,11,0],[19,0,12,0],[20,0,13,0],[21,0,14,0],[22,0,15,0],[23,2,16,7],[23,11,16,16,"hexAddPrefix"],[23,23,16,28,"hexAddPrefix"],[23,24,16,29,"value"],[23,29,16,34],[23,31,16,36],[24,4,17,4],[24,11,17,11,"value"],[24,16,17,16],[24,20,17,20],[24,24,17,20,"hexHasPrefix"],[24,36,17,32],[24,37,17,32,"hexHasPrefix"],[24,49,17,32],[24,51,17,33,"value"],[24,56,17,38],[24,57,17,39],[24,60,18,10,"value"],[24,65,18,15],[24,68,19,10],[24,73,19,15,"value"],[24,78,19,20],[24,82,19,24,"value"],[24,87,19,29],[24,88,19,30,"length"],[24,94,19,36],[24,97,19,39],[24,98,19,40],[24,103,19,45],[24,104,19,46],[24,107,19,49],[24,110,19,52],[24,113,19,55],[24,115,19,57],[24,118,19,60,"value"],[24,123,19,65],[24,127,19,69],[24,129,19,71],[24,131,19,73],[25,2,20,0],[26,0,20,1],[26,3]],"functionMap":{"names":["<global>","hexAddPrefix"],"mappings":"AAA;OCe;CDI"},"hasCjsExports":false},"type":"js/module"}]}
@@ -0,0 +1 @@
{"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 exports.arrayShuffle = arrayShuffle;\n /**\n * @name arrayShuffle\n * @description Shuffles the input array (unlike sort, this is not done in-place)\n */\n function arrayShuffle(input) {\n const result = input.slice();\n let curr = result.length;\n // noop for the single entry\n if (curr === 1) {\n return result;\n }\n while (curr !== 0) {\n // ~~ is more performant than Math.floor\n const rand = ~~(Math.random() * curr);\n curr--;\n [result[curr], result[rand]] = [result[rand], result[curr]];\n }\n return result;\n }\n});","lineCount":27,"map":[[7,2,5,0,"exports"],[7,9,5,0],[7,10,5,0,"arrayShuffle"],[7,22,5,0],[7,25,5,0,"arrayShuffle"],[7,37,5,0],[8,2,1,0],[9,0,2,0],[10,0,3,0],[11,0,4,0],[12,2,5,7],[12,11,5,16,"arrayShuffle"],[12,23,5,28,"arrayShuffle"],[12,24,5,29,"input"],[12,29,5,34],[12,31,5,36],[13,4,6,4],[13,10,6,10,"result"],[13,16,6,16],[13,19,6,19,"input"],[13,24,6,24],[13,25,6,25,"slice"],[13,30,6,30],[13,31,6,31],[13,32,6,32],[14,4,7,4],[14,8,7,8,"curr"],[14,12,7,12],[14,15,7,15,"result"],[14,21,7,21],[14,22,7,22,"length"],[14,28,7,28],[15,4,8,4],[16,4,9,4],[16,8,9,8,"curr"],[16,12,9,12],[16,17,9,17],[16,18,9,18],[16,20,9,20],[17,6,10,8],[17,13,10,15,"result"],[17,19,10,21],[18,4,11,4],[19,4,12,4],[19,11,12,11,"curr"],[19,15,12,15],[19,20,12,20],[19,21,12,21],[19,23,12,23],[20,6,13,8],[21,6,14,8],[21,12,14,14,"rand"],[21,16,14,18],[21,19,14,21],[21,20,14,22],[21,22,14,24,"Math"],[21,26,14,28],[21,27,14,29,"random"],[21,33,14,35],[21,34,14,36],[21,35,14,37],[21,38,14,40,"curr"],[21,42,14,44],[21,43,14,45],[22,6,15,8,"curr"],[22,10,15,12],[22,12,15,14],[23,6,16,8],[23,7,16,9,"result"],[23,13,16,15],[23,14,16,16,"curr"],[23,18,16,20],[23,19,16,21],[23,21,16,23,"result"],[23,27,16,29],[23,28,16,30,"rand"],[23,32,16,34],[23,33,16,35],[23,34,16,36],[23,37,16,39],[23,38,16,40,"result"],[23,44,16,46],[23,45,16,47,"rand"],[23,49,16,51],[23,50,16,52],[23,52,16,54,"result"],[23,58,16,60],[23,59,16,61,"curr"],[23,63,16,65],[23,64,16,66],[23,65,16,67],[24,4,17,4],[25,4,18,4],[25,11,18,11,"result"],[25,17,18,17],[26,2,19,0],[27,0,19,1],[27,3]],"functionMap":{"names":["<global>","arrayShuffle"],"mappings":"AAA;OCI;CDc"},"hasCjsExports":false},"type":"js/module"}]}
File diff suppressed because one or more lines are too long