{"version":3,"sources":["../../src/utils/string/constants.ts","../../src/utils/collection/constants.ts","../../src/utils/hash/constants.ts"],"names":["STRING_CONSTANTS","FORMAT_CONSTANTS","COLLECTION_CONSTANTS","FNV_CONSTANTS","HASH_SEED_CONSTANTS","HASH_DISTRIBUTION_CONSTANTS","SHA_CONSTANTS","MD5_CONSTANTS","HASH_ENCODING","HASH_ALGORITHMS","MURMUR_CONSTANTS","CRC_CONSTANTS"],"mappings":";AAYO,IAAMA,CAAAA,CAAmB,CAI9B,mBAAA,CAAqB,CAAA,CAKrB,oBAAA,CAAsB,CAAA,CAKtB,sBAAA,CAAwB,EAAA,CAKxB,aAAA,CAAe,CAAA,CAKf,iBAAA,CAAmB,CACrB,CAAA,CAKaC,CAAAA,CAAmB,CAI9B,kBAAA,CAAoB,CAAA,CAKpB,kBAAA,CAAoB,CAAA,CAKpB,QAAA,CAAU,CAAA,CAKV,eAAA,CAAiB,EAAA,CAKjB,mBAAA,CAAqB,GAAA,CAKrB,gBAAA,CAAkB,OAAA,CAKlB,cAAA,CAAgB;AAAA,CAAA,CAChB,gBAAA,CAAkB,CAAA;AAAA,CAAA,CAKlB,cAAA,CAAgB,QAChB,YAAA,CAAc,KAAA,CACd,aAAc,KAAA,CACd,aAAA,CAAe,MAAA,CACf,aAAA,CAAe,MAAA,CACf,aAAA,CAAe,OACf,cAAA,CAAgB,OAAA,CAChB,YAAA,CAAc,KAAA,CACd,aAAA,CAAe,MAAA,CACf,eAAgB,OAAA,CAKhB,YAAA,CAAc,GAAA,CACd,YAAA,CAAc,GAAA,CACd,QAAA,CAAU,IAKV,KAAA,CAAO,GAAA,CACP,UAAW,GAAA,CACX,KAAA,CAAO,IACP,GAAA,CAAK,GAAA,CACL,KAAA,CAAO,GAAA,CACP,SAAA,CAAW,IAAA,CACX,WAAY,GAAA,CACZ,MAAA,CAAQ,GAAA,CACR,IAAA,CAAM,GAAA,CACN,KAAA,CAAO,IACP,YAAA,CAAc,EAAA,CAKd,GAAA,CAAK,G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R,MAAA,CAAQ,SAKR,MAAA,CAAQ,QAAA,CAKR,SAAU,UAAA,CAKV,QAAA,CAAU,UAAA,CAKV,QAAA,CAAU,WAKV,OAAA,CAAS,SAAA,CAKT,OAAA,CAAS,SAAA,CAKT,SAAU,UAAA,CAKV,QAAA,CAAU,UACZ,CAAA,CAKaC,EAAmB,CAI9B,eAAA,CAAiB,EAKjB,aAAA,CAAe,UAAA,CAKf,cAAe,SAAA,CAKf,aAAA,CAAe,EAAA,CAKf,aAAA,CAAe,GAKf,YAAA,CAAc,CAAA,CAKd,YAAA,CAAc,UAChB,EAKaC,CAAAA,CAAgB,CAI3B,gBAAA,CAAkB,UAAA,CAKlB,cAAe,UAAA,CAKf,gBAAA,CAAkB,WAKlB,gBAAA,CAAkB,KAAA,CAKlB,cAAe,CACjB","file":"index.mjs","sourcesContent":["/**\n * String Manipulation Constants\n *\n * Constants used for string generation, manipulation,\n * and UUID-related operations.\n *\n * @module utils/string/constants\n */\n\n/**\n * String generation and manipulation constants\n */\nexport const STRING_CONSTANTS = {\n  /**\n   * Starting position for random string extraction\n   */\n  RANDOM_STRING_START: 2,\n\n  /**\n   * Length of random string segment\n   */\n  RANDOM_STRING_LENGTH: 9,\n\n  /**\n   * Multiplier for UUID random value generation\n   */\n  UUID_RANDOM_MULTIPLIER: 16,\n\n  /**\n   * Hexadecimal mask for UUID generation\n   */\n  UUID_HEX_MASK: 0x3,\n\n  /**\n   * OR value for UUID hexadecimal operations\n   */\n  UUID_HEX_OR_VALUE: 0x8,\n} as const;\n\n/**\n * Formatting and serialization constants\n */\nexport const FORMAT_CONSTANTS = {\n  /**\n   * Default indentation for JSON stringification (spaces)\n   */\n  JSON_INDENT_SPACES: 2,\n\n  /**\n   * Default indentation for code formatting (spaces)\n   */\n  CODE_INDENT_SPACES: 2,\n\n  /**\n   * Tab size in spaces\n   */\n  TAB_SIZE: 4,\n\n  /**\n   * Maximum line length for code formatting\n   */\n  MAX_LINE_LENGTH: 80,\n\n  /**\n   * Maximum line length for prettier\n   */\n  PRETTIER_LINE_WIDTH: 100,\n\n  /**\n   * Default encoding for text files\n   */\n  DEFAULT_ENCODING: 'utf-8',\n\n  /**\n   * Line endings\n   */\n  LINE_ENDING_LF: '\\n',\n  LINE_ENDING_CRLF: '\\r\\n',\n\n  /**\n   * Common file extensions\n   */\n  EXTENSION_JSON: '.json',\n  EXTENSION_JS: '.js',\n  EXTENSION_TS: '.ts',\n  EXTENSION_TSX: '.tsx',\n  EXTENSION_JSX: '.jsx',\n  EXTENSION_CSS: '.css',\n  EXTENSION_SCSS: '.scss',\n  EXTENSION_MD: '.md',\n  EXTENSION_YML: '.yml',\n  EXTENSION_YAML: '.yaml',\n\n  /**\n   * Quote styles\n   */\n  SINGLE_QUOTE: \"'\",\n  DOUBLE_QUOTE: '\"',\n  BACKTICK: '`',\n\n  /**\n   * Common separators\n   */\n  COMMA: ',',\n  SEMICOLON: ';',\n  COLON: ':',\n  DOT: '.',\n  SLASH: '/',\n  BACKSLASH: '\\\\',\n  UNDERSCORE: '_',\n  HYPHEN: '-',\n  PIPE: '|',\n  SPACE: ' ',\n  EMPTY_STRING: '',\n\n  /**\n   * Whitespace characters\n   */\n  TAB: '\\t',\n  NEWLINE: '\\n',\n  CARRIAGE_RETURN: '\\r',\n  FORM_FEED: '\\f',\n  VERTICAL_TAB: '\\v',\n\n  /**\n   * Common brackets\n   */\n  OPEN_PAREN: '(',\n  CLOSE_PAREN: ')',\n  OPEN_BRACKET: '[',\n  CLOSE_BRACKET: ']',\n  OPEN_BRACE: '{',\n  CLOSE_BRACE: '}',\n  OPEN_ANGLE: '<',\n  CLOSE_ANGLE: '>',\n} as const;\n\n/**\n * Type for string constant values\n */\nexport type StringConstant = (typeof STRING_CONSTANTS)[keyof typeof STRING_CONSTANTS];\n\n/**\n * Type for format constant values\n */\nexport type FormatConstant = (typeof FORMAT_CONSTANTS)[keyof typeof FORMAT_CONSTANTS];\n","/**\n * Collection and Array Constants\n *\n * Constants for array operations, pagination,\n * and collection manipulation.\n *\n * @module utils/collection/constants\n */\n\n/**\n * Array and collection operation constants\n */\nexport const COLLECTION_CONSTANTS = {\n  /**\n   * Center point for array splitting (50%)\n   */\n  ARRAY_SPLIT_CENTER: 0.5,\n\n  /**\n   * Default page size for pagination\n   */\n  DEFAULT_PAGE_SIZE: 10,\n\n  /**\n   * Default maximum number of retries for operations\n   */\n  DEFAULT_MAX_RETRIES: 3,\n\n  /**\n   * Constant for three items (used in various contexts)\n   */\n  THREE_ITEMS: 3,\n} as const;\n\n/**\n * Type for collection constant values\n */\nexport type CollectionConstant = (typeof COLLECTION_CONSTANTS)[keyof typeof COLLECTION_CONSTANTS];\n","/**\n * Hash Algorithm Constants\n *\n * Constants used for various hash algorithms including FNV-1a,\n * SHA, and other cryptographic operations.\n *\n * @module utils/hash/constants\n */\n\n/**\n * FNV (Fowler-Noll-Vo) Hash Algorithm Constants\n *\n * FNV-1a is a non-cryptographic hash function created by Glenn Fowler,\n * Landon Curt Noll, and Kiem-Phong Vo. It's designed to be fast while\n * maintaining a low collision rate.\n */\nexport const FNV_CONSTANTS = {\n  /**\n   * FNV-1a 32-bit prime number\n   * Used as the multiplication factor in the hash algorithm\n   * Decimal: 16777619\n   */\n  FNV_32_PRIME: 0x01000193,\n\n  /**\n   * FNV-1a 32-bit offset basis\n   * Initial hash value for FNV-1a 32-bit\n   * Decimal: 2166136261\n   */\n  FNV_32_OFFSET: 0x811c9dc5,\n\n  /**\n   * FNV-1a 64-bit prime number (as BigInt)\n   * Used for 64-bit hash calculations\n   * Decimal: 1099511628211\n   */\n  FNV_64_PRIME: BigInt('0x100000001b3'),\n\n  /**\n   * FNV-1a 64-bit offset basis (as BigInt)\n   * Initial hash value for FNV-1a 64-bit\n   * Decimal: 14695981039346656037\n   */\n  FNV_64_OFFSET: BigInt('0xcbf29ce484222325'),\n\n  /**\n   * Mask for 32-bit operations\n   */\n  MASK_32: 0xffffffff,\n\n  /**\n   * Number of bits for 32-bit hash\n   */\n  BITS_32: 32,\n\n  /**\n   * Number of bits for 64-bit hash\n   */\n  BITS_64: 64,\n} as const;\n\n/**\n * Hash Seed Constants\n *\n * Constants for deterministic random seed generation\n */\nexport const HASH_SEED_CONSTANTS = {\n  /**\n   * Maximum safe seed value for 31-bit positive integer\n   * Used for compatibility with libraries expecting positive signed 32-bit integers\n   * Value: 2^31 - 1 = 2147483647\n   */\n  MAX_SAFE_SEED: 0x7fffffff,\n\n  /**\n   * Maximum 32-bit unsigned integer\n   * Value: 2^32 - 1 = 4294967295\n   */\n  MAX_UINT32: 0xffffffff,\n} as const;\n\n/**\n * Hash Distribution Constants\n *\n * Constants for hash distribution and bucketing\n */\nexport const HASH_DISTRIBUTION_CONSTANTS = {\n  /**\n   * Default number of buckets for hash distribution\n   */\n  DEFAULT_BUCKET_COUNT: 10,\n\n  /**\n   * Default total buckets for percentage-based distribution\n   * Same as MATH_CONSTANTS.PERCENTAGE_MAX for consistency\n   */\n  DEFAULT_PERCENTAGE_BUCKETS: 100,\n\n  /**\n   * Bit shift amount for simple hash algorithms\n   * Used in polynomial rolling hash\n   */\n  HASH_SHIFT: 5,\n} as const;\n\n/**\n * SHA (Secure Hash Algorithm) constants\n */\nexport const SHA_CONSTANTS = {\n  /**\n   * SHA-1 output length in bytes\n   */\n  SHA1_LENGTH: 20,\n\n  /**\n   * SHA-256 output length in bytes\n   */\n  SHA256_LENGTH: 32,\n\n  /**\n   * SHA-384 output length in bytes\n   */\n  SHA384_LENGTH: 48,\n\n  /**\n   * SHA-512 output length in bytes\n   */\n  SHA512_LENGTH: 64,\n\n  /**\n   * SHA block size in bytes\n   */\n  SHA_BLOCK_SIZE: 64,\n\n  /**\n   * SHA-512 block size in bytes\n   */\n  SHA512_BLOCK_SIZE: 128,\n} as const;\n\n/**\n * MD5 hash algorithm constants\n */\nexport const MD5_CONSTANTS = {\n  /**\n   * MD5 output length in bytes\n   */\n  MD5_LENGTH: 16,\n\n  /**\n   * MD5 block size in bytes\n   */\n  MD5_BLOCK_SIZE: 64,\n} as const;\n\n/**\n * Hash encoding formats\n */\nexport const HASH_ENCODING = {\n  /**\n   * Hexadecimal encoding\n   */\n  HEX: 'hex',\n\n  /**\n   * Base64 encoding\n   */\n  BASE64: 'base64',\n\n  /**\n   * Base64 URL-safe encoding\n   */\n  BASE64URL: 'base64url',\n\n  /**\n   * Binary encoding\n   */\n  BINARY: 'binary',\n\n  /**\n   * UTF-8 encoding\n   */\n  UTF8: 'utf8',\n} as const;\n\n/**\n * Hash algorithm names\n */\nexport const HASH_ALGORITHMS = {\n  /**\n   * MD5 algorithm (deprecated for security, use only for checksums)\n   */\n  MD5: 'md5',\n\n  /**\n   * SHA-1 algorithm (deprecated for security)\n   */\n  SHA1: 'sha1',\n\n  /**\n   * SHA-256 algorithm\n   */\n  SHA256: 'sha256',\n\n  /**\n   * SHA-384 algorithm\n   */\n  SHA384: 'sha384',\n\n  /**\n   * SHA-512 algorithm\n   */\n  SHA512: 'sha512',\n\n  /**\n   * SHA3-256 algorithm\n   */\n  SHA3_256: 'sha3-256',\n\n  /**\n   * SHA3-384 algorithm\n   */\n  SHA3_384: 'sha3-384',\n\n  /**\n   * SHA3-512 algorithm\n   */\n  SHA3_512: 'sha3-512',\n\n  /**\n   * BLAKE2b algorithm\n   */\n  BLAKE2B: 'blake2b',\n\n  /**\n   * BLAKE2s algorithm\n   */\n  BLAKE2S: 'blake2s',\n\n  /**\n   * FNV-1a 32-bit algorithm\n   */\n  FNV1A_32: 'fnv1a-32',\n\n  /**\n   * FNV-1a 64-bit algorithm\n   */\n  FNV1A_64: 'fnv1a-64',\n} as const;\n\n/**\n * Murmur hash constants\n */\nexport const MURMUR_CONSTANTS = {\n  /**\n   * MurmurHash3 32-bit seed\n   */\n  MURMUR3_32_SEED: 0,\n\n  /**\n   * MurmurHash3 32-bit c1 constant\n   */\n  MURMUR3_32_C1: 0xcc9e2d51,\n\n  /**\n   * MurmurHash3 32-bit c2 constant\n   */\n  MURMUR3_32_C2: 0x1b873593,\n\n  /**\n   * MurmurHash3 32-bit r1 rotation\n   */\n  MURMUR3_32_R1: 15,\n\n  /**\n   * MurmurHash3 32-bit r2 rotation\n   */\n  MURMUR3_32_R2: 13,\n\n  /**\n   * MurmurHash3 32-bit m constant\n   */\n  MURMUR3_32_M: 5,\n\n  /**\n   * MurmurHash3 32-bit n constant\n   */\n  MURMUR3_32_N: 0xe6546b64,\n} as const;\n\n/**\n * CRC (Cyclic Redundancy Check) constants\n */\nexport const CRC_CONSTANTS = {\n  /**\n   * CRC-32 polynomial\n   */\n  CRC32_POLYNOMIAL: 0xedb88320,\n\n  /**\n   * CRC-32 initial value\n   */\n  CRC32_INITIAL: 0xffffffff,\n\n  /**\n   * CRC-32 XOR output\n   */\n  CRC32_XOR_OUTPUT: 0xffffffff,\n\n  /**\n   * CRC-16 polynomial\n   */\n  CRC16_POLYNOMIAL: 0xa001,\n\n  /**\n   * CRC-16 initial value\n   */\n  CRC16_INITIAL: 0x0000,\n} as const;\n\n/**\n * Type exports\n */\nexport type FnvConstant = (typeof FNV_CONSTANTS)[keyof typeof FNV_CONSTANTS];\nexport type HashSeedConstant = (typeof HASH_SEED_CONSTANTS)[keyof typeof HASH_SEED_CONSTANTS];\nexport type HashDistributionConstant =\n  (typeof HASH_DISTRIBUTION_CONSTANTS)[keyof typeof HASH_DISTRIBUTION_CONSTANTS];\nexport type SHAConstant = (typeof SHA_CONSTANTS)[keyof typeof SHA_CONSTANTS];\nexport type MD5Constant = (typeof MD5_CONSTANTS)[keyof typeof MD5_CONSTANTS];\nexport type HashEncoding = (typeof HASH_ENCODING)[keyof typeof HASH_ENCODING];\nexport type HashAlgorithm = (typeof HASH_ALGORITHMS)[keyof typeof HASH_ALGORITHMS];\nexport type MurmurConstant = (typeof MURMUR_CONSTANTS)[keyof typeof MURMUR_CONSTANTS];\nexport type CRCConstant = (typeof CRC_CONSTANTS)[keyof typeof CRC_CONSTANTS];\n"]}