auto-commit for 3a02b3dd-cebb-4882-bfc5-dbb637e71a6d

This commit is contained in:
emergent-agent-e1
2025-11-08 10:27:44 +00:00
parent 0a8c0df2e1
commit 7ae3a6d0ec
1906 changed files with 1906 additions and 0 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -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.u8aFixLength = u8aFixLength;\n /**\n * @name u8aFixLength\n * @summary Shifts a Uint8Array to a specific bitLength\n * @description\n * Returns a uint8Array with the specified number of bits contained in the return value. (If bitLength is -1, length checking is not done). Values with more bits are trimmed to the specified length.\n * @example\n * <BR>\n *\n * ```javascript\n * import { u8aFixLength } from '@polkadot/util';\n *\n * u8aFixLength('0x12') // => 0x12\n * u8aFixLength('0x12', 16) // => 0x0012\n * u8aFixLength('0x1234', 8) // => 0x12\n * ```\n */\n function u8aFixLength(value, bitLength = -1, atStart = false) {\n const byteLength = Math.ceil(bitLength / 8);\n if (bitLength === -1 || value.length === byteLength) {\n return value;\n } else if (value.length > byteLength) {\n return value.subarray(0, byteLength);\n }\n const result = new Uint8Array(byteLength);\n result.set(value, atStart ? 0 : byteLength - value.length);\n return result;\n }\n});","lineCount":35,"map":[[2,2,1,0],[2,14,1,12],[4,2,2,0,"Object"],[4,8,2,6],[4,9,2,7,"defineProperty"],[4,23,2,21],[4,24,2,22,"exports"],[4,31,2,29],[4,33,2,31],[4,45,2,43],[4,47,2,45],[5,4,2,47,"value"],[5,9,2,52],[5,11,2,54],[6,2,2,59],[6,3,2,60],[6,4,2,61],[7,2,3,0,"exports"],[7,9,3,7],[7,10,3,8,"u8aFixLength"],[7,22,3,20],[7,25,3,23,"u8aFixLength"],[7,37,3,35],[8,2,4,0],[9,0,5,0],[10,0,6,0],[11,0,7,0],[12,0,8,0],[13,0,9,0],[14,0,10,0],[15,0,11,0],[16,0,12,0],[17,0,13,0],[18,0,14,0],[19,0,15,0],[20,0,16,0],[21,0,17,0],[22,0,18,0],[23,0,19,0],[24,2,20,0],[24,11,20,9,"u8aFixLength"],[24,23,20,21,"u8aFixLength"],[24,24,20,22,"value"],[24,29,20,27],[24,31,20,29,"bitLength"],[24,40,20,38],[24,43,20,41],[24,44,20,42],[24,45,20,43],[24,47,20,45,"atStart"],[24,54,20,52],[24,57,20,55],[24,62,20,60],[24,64,20,62],[25,4,21,4],[25,10,21,10,"byteLength"],[25,20,21,20],[25,23,21,23,"Math"],[25,27,21,27],[25,28,21,28,"ceil"],[25,32,21,32],[25,33,21,33,"bitLength"],[25,42,21,42],[25,45,21,45],[25,46,21,46],[25,47,21,47],[26,4,22,4],[26,8,22,8,"bitLength"],[26,17,22,17],[26,22,22,22],[26,23,22,23],[26,24,22,24],[26,28,22,28,"value"],[26,33,22,33],[26,34,22,34,"length"],[26,40,22,40],[26,45,22,45,"byteLength"],[26,55,22,55],[26,57,22,57],[27,6,23,8],[27,13,23,15,"value"],[27,18,23,20],[28,4,24,4],[28,5,24,5],[28,11,25,9],[28,15,25,13,"value"],[28,20,25,18],[28,21,25,19,"length"],[28,27,25,25],[28,30,25,28,"byteLength"],[28,40,25,38],[28,42,25,40],[29,6,26,8],[29,13,26,15,"value"],[29,18,26,20],[29,19,26,21,"subarray"],[29,27,26,29],[29,28,26,30],[29,29,26,31],[29,31,26,33,"byteLength"],[29,41,26,43],[29,42,26,44],[30,4,27,4],[31,4,28,4],[31,10,28,10,"result"],[31,16,28,16],[31,19,28,19],[31,23,28,23,"Uint8Array"],[31,33,28,33],[31,34,28,34,"byteLength"],[31,44,28,44],[31,45,28,45],[32,4,29,4,"result"],[32,10,29,10],[32,11,29,11,"set"],[32,14,29,14],[32,15,29,15,"value"],[32,20,29,20],[32,22,29,22,"atStart"],[32,29,29,29],[32,32,29,32],[32,33,29,33],[32,36,29,37,"byteLength"],[32,46,29,47],[32,49,29,50,"value"],[32,54,29,55],[32,55,29,56,"length"],[32,61,29,63],[32,62,29,64],[33,4,30,4],[33,11,30,11,"result"],[33,17,30,17],[34,2,31,0],[35,0,31,1],[35,3]],"functionMap":{"names":["<global>","u8aFixLength"],"mappings":"AAA;ACmB;CDW"},"hasCjsExports":true},"type":"js/module"}]}