mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 03:01:04 +00:00
1 line
86 KiB
Plaintext
1 line
86 KiB
Plaintext
{"dependencies":[{"name":"../utils.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":31,"column":19,"index":1057},"end":{"line":31,"column":41,"index":1079}}],"key":"Yc7DmwhweSDBIC4bv+r2fO8xp6U=","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.isNegativeLE = void 0;\n exports.mod = mod;\n exports.pow = pow;\n exports.pow2 = pow2;\n exports.invert = invert;\n exports.tonelliShanks = tonelliShanks;\n exports.FpSqrt = FpSqrt;\n exports.validateField = validateField;\n exports.FpPow = FpPow;\n exports.FpInvertBatch = FpInvertBatch;\n exports.FpDiv = FpDiv;\n exports.FpLegendre = FpLegendre;\n exports.FpIsSquare = FpIsSquare;\n exports.nLength = nLength;\n exports.Field = Field;\n exports.FpSqrtOdd = FpSqrtOdd;\n exports.FpSqrtEven = FpSqrtEven;\n exports.hashToPrivateScalar = hashToPrivateScalar;\n exports.getFieldBytesLength = getFieldBytesLength;\n exports.getMinHashLength = getMinHashLength;\n exports.mapHashToField = mapHashToField;\n /**\n * Utils for modular division and fields.\n * Field over 11 is a finite (Galois) field is integer number operations `mod 11`.\n * There is no division: it is replaced by modular multiplicative inverse.\n * @module\n */\n /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */\n var utils_ts_1 = require(_dependencyMap[0], \"../utils.js\");\n // prettier-ignore\n var _0n = BigInt(0),\n _1n = BigInt(1),\n _2n = /* @__PURE__ */BigInt(2),\n _3n = /* @__PURE__ */BigInt(3);\n // prettier-ignore\n var _4n = /* @__PURE__ */BigInt(4),\n _5n = /* @__PURE__ */BigInt(5),\n _7n = /* @__PURE__ */BigInt(7);\n // prettier-ignore\n var _8n = /* @__PURE__ */BigInt(8),\n _9n = /* @__PURE__ */BigInt(9),\n _16n = /* @__PURE__ */BigInt(16);\n // Calculates a modulo b\n function mod(a, b) {\n var result = a % b;\n return result >= _0n ? result : b + result;\n }\n /**\n * Efficiently raise num to power and do modular division.\n * Unsafe in some contexts: uses ladder, so can expose bigint bits.\n * @example\n * pow(2n, 6n, 11n) // 64n % 11n == 9n\n */\n function pow(num, power, modulo) {\n return FpPow(Field(modulo), num, power);\n }\n /** Does `x^(2^power)` mod p. `pow2(30, 4)` == `30^(2^4)` */\n function pow2(x, power, modulo) {\n var res = x;\n while (power-- > _0n) {\n res *= res;\n res %= modulo;\n }\n return res;\n }\n /**\n * Inverses number over modulo.\n * Implemented using [Euclidean GCD](https://brilliant.org/wiki/extended-euclidean-algorithm/).\n */\n function invert(number, modulo) {\n if (number === _0n) throw new Error('invert: expected non-zero number');\n if (modulo <= _0n) throw new Error('invert: expected positive modulus, got ' + modulo);\n // Fermat's little theorem \"CT-like\" version inv(n) = n^(m-2) mod m is 30x slower.\n var a = mod(number, modulo);\n var b = modulo;\n // prettier-ignore\n var x = _0n,\n y = _1n,\n u = _1n,\n v = _0n;\n while (a !== _0n) {\n // JIT applies optimization if those two lines follow each other\n var q = b / a;\n var r = b % a;\n var m = x - u * q;\n var n = y - v * q;\n // prettier-ignore\n b = a, a = r, x = u, y = v, u = m, v = n;\n }\n var gcd = b;\n if (gcd !== _1n) throw new Error('invert: does not exist');\n return mod(x, modulo);\n }\n function assertIsSquare(Fp, root, n) {\n if (!Fp.eql(Fp.sqr(root), n)) throw new Error('Cannot find square root');\n }\n // Not all roots are possible! Example which will throw:\n // const NUM =\n // n = 72057594037927816n;\n // Fp = Field(BigInt('0x1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffaaab'));\n function sqrt3mod4(Fp, n) {\n var p1div4 = (Fp.ORDER + _1n) / _4n;\n var root = Fp.pow(n, p1div4);\n assertIsSquare(Fp, root, n);\n return root;\n }\n function sqrt5mod8(Fp, n) {\n var p5div8 = (Fp.ORDER - _5n) / _8n;\n var n2 = Fp.mul(n, _2n);\n var v = Fp.pow(n2, p5div8);\n var nv = Fp.mul(n, v);\n var i = Fp.mul(Fp.mul(nv, _2n), v);\n var root = Fp.mul(nv, Fp.sub(i, Fp.ONE));\n assertIsSquare(Fp, root, n);\n return root;\n }\n // Based on RFC9380, Kong algorithm\n // prettier-ignore\n function sqrt9mod16(P) {\n var Fp_ = Field(P);\n var tn = tonelliShanks(P);\n var c1 = tn(Fp_, Fp_.neg(Fp_.ONE)); // 1. c1 = sqrt(-1) in F, i.e., (c1^2) == -1 in F\n var c2 = tn(Fp_, c1); // 2. c2 = sqrt(c1) in F, i.e., (c2^2) == c1 in F\n var c3 = tn(Fp_, Fp_.neg(c1)); // 3. c3 = sqrt(-c1) in F, i.e., (c3^2) == -c1 in F\n var c4 = (P + _7n) / _16n; // 4. c4 = (q + 7) / 16 # Integer arithmetic\n return function (Fp, n) {\n var tv1 = Fp.pow(n, c4); // 1. tv1 = x^c4\n var tv2 = Fp.mul(tv1, c1); // 2. tv2 = c1 * tv1\n var tv3 = Fp.mul(tv1, c2); // 3. tv3 = c2 * tv1\n var tv4 = Fp.mul(tv1, c3); // 4. tv4 = c3 * tv1\n var e1 = Fp.eql(Fp.sqr(tv2), n); // 5. e1 = (tv2^2) == x\n var e2 = Fp.eql(Fp.sqr(tv3), n); // 6. e2 = (tv3^2) == x\n tv1 = Fp.cmov(tv1, tv2, e1); // 7. tv1 = CMOV(tv1, tv2, e1) # Select tv2 if (tv2^2) == x\n tv2 = Fp.cmov(tv4, tv3, e2); // 8. tv2 = CMOV(tv4, tv3, e2) # Select tv3 if (tv3^2) == x\n var e3 = Fp.eql(Fp.sqr(tv2), n); // 9. e3 = (tv2^2) == x\n var root = Fp.cmov(tv1, tv2, e3); // 10. z = CMOV(tv1, tv2, e3) # Select sqrt from tv1 & tv2\n assertIsSquare(Fp, root, n);\n return root;\n };\n }\n /**\n * Tonelli-Shanks square root search algorithm.\n * 1. https://eprint.iacr.org/2012/685.pdf (page 12)\n * 2. Square Roots from 1; 24, 51, 10 to Dan Shanks\n * @param P field order\n * @returns function that takes field Fp (created from P) and number n\n */\n function tonelliShanks(P) {\n // Initialization (precomputation).\n // Caching initialization could boost perf by 7%.\n if (P < _3n) throw new Error('sqrt is not defined for small field');\n // Factor P - 1 = Q * 2^S, where Q is odd\n var Q = P - _1n;\n var S = 0;\n while (Q % _2n === _0n) {\n Q /= _2n;\n S++;\n }\n // Find the first quadratic non-residue Z >= 2\n var Z = _2n;\n var _Fp = Field(P);\n while (FpLegendre(_Fp, Z) === 1) {\n // Basic primality test for P. After x iterations, chance of\n // not finding quadratic non-residue is 2^x, so 2^1000.\n if (Z++ > 1000) throw new Error('Cannot find square root: probably non-prime P');\n }\n // Fast-path; usually done before Z, but we do \"primality test\".\n if (S === 1) return sqrt3mod4;\n // Slow-path\n // TODO: test on Fp2 and others\n var cc = _Fp.pow(Z, Q); // c = z^Q\n var Q1div2 = (Q + _1n) / _2n;\n return function tonelliSlow(Fp, n) {\n if (Fp.is0(n)) return n;\n // Check if n is a quadratic residue using Legendre symbol\n if (FpLegendre(Fp, n) !== 1) throw new Error('Cannot find square root');\n // Initialize variables for the main loop\n var M = S;\n var c = Fp.mul(Fp.ONE, cc); // c = z^Q, move cc from field _Fp into field Fp\n var t = Fp.pow(n, Q); // t = n^Q, first guess at the fudge factor\n var R = Fp.pow(n, Q1div2); // R = n^((Q+1)/2), first guess at the square root\n // Main loop\n // while t != 1\n while (!Fp.eql(t, Fp.ONE)) {\n if (Fp.is0(t)) return Fp.ZERO; // if t=0 return R=0\n var i = 1;\n // Find the smallest i >= 1 such that t^(2^i) ≡ 1 (mod P)\n var t_tmp = Fp.sqr(t); // t^(2^1)\n while (!Fp.eql(t_tmp, Fp.ONE)) {\n i++;\n t_tmp = Fp.sqr(t_tmp); // t^(2^2)...\n if (i === M) throw new Error('Cannot find square root');\n }\n // Calculate the exponent for b: 2^(M - i - 1)\n var exponent = _1n << BigInt(M - i - 1); // bigint is important\n var b = Fp.pow(c, exponent); // b = 2^(M - i - 1)\n // Update variables\n M = i;\n c = Fp.sqr(b); // c = b^2\n t = Fp.mul(t, c); // t = (t * b^2)\n R = Fp.mul(R, b); // R = R*b\n }\n return R;\n };\n }\n /**\n * Square root for a finite field. Will try optimized versions first:\n *\n * 1. P ≡ 3 (mod 4)\n * 2. P ≡ 5 (mod 8)\n * 3. P ≡ 9 (mod 16)\n * 4. Tonelli-Shanks algorithm\n *\n * Different algorithms can give different roots, it is up to user to decide which one they want.\n * For example there is FpSqrtOdd/FpSqrtEven to choice root based on oddness (used for hash-to-curve).\n */\n function FpSqrt(P) {\n // P ≡ 3 (mod 4) => √n = n^((P+1)/4)\n if (P % _4n === _3n) return sqrt3mod4;\n // P ≡ 5 (mod 8) => Atkin algorithm, page 10 of https://eprint.iacr.org/2012/685.pdf\n if (P % _8n === _5n) return sqrt5mod8;\n // P ≡ 9 (mod 16) => Kong algorithm, page 11 of https://eprint.iacr.org/2012/685.pdf (algorithm 4)\n if (P % _16n === _9n) return sqrt9mod16(P);\n // Tonelli-Shanks algorithm\n return tonelliShanks(P);\n }\n // Little-endian check for first LE bit (last BE bit);\n var isNegativeLE = function isNegativeLE(num, modulo) {\n return (mod(num, modulo) & _1n) === _1n;\n };\n exports.isNegativeLE = isNegativeLE;\n // prettier-ignore\n var FIELD_FIELDS = ['create', 'isValid', 'is0', 'neg', 'inv', 'sqrt', 'sqr', 'eql', 'add', 'sub', 'mul', 'pow', 'div', 'addN', 'subN', 'mulN', 'sqrN'];\n function validateField(field) {\n var initial = {\n ORDER: 'bigint',\n MASK: 'bigint',\n BYTES: 'number',\n BITS: 'number'\n };\n var opts = FIELD_FIELDS.reduce(function (map, val) {\n map[val] = 'function';\n return map;\n }, initial);\n (0, utils_ts_1._validateObject)(field, opts);\n // const max = 16384;\n // if (field.BYTES < 1 || field.BYTES > max) throw new Error('invalid field');\n // if (field.BITS < 1 || field.BITS > 8 * max) throw new Error('invalid field');\n return field;\n }\n // Generic field functions\n /**\n * Same as `pow` but for Fp: non-constant-time.\n * Unsafe in some contexts: uses ladder, so can expose bigint bits.\n */\n function FpPow(Fp, num, power) {\n if (power < _0n) throw new Error('invalid exponent, negatives unsupported');\n if (power === _0n) return Fp.ONE;\n if (power === _1n) return num;\n var p = Fp.ONE;\n var d = num;\n while (power > _0n) {\n if (power & _1n) p = Fp.mul(p, d);\n d = Fp.sqr(d);\n power >>= _1n;\n }\n return p;\n }\n /**\n * Efficiently invert an array of Field elements.\n * Exception-free. Will return `undefined` for 0 elements.\n * @param passZero map 0 to 0 (instead of undefined)\n */\n function FpInvertBatch(Fp, nums) {\n var passZero = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var inverted = new Array(nums.length).fill(passZero ? Fp.ZERO : undefined);\n // Walk from first to last, multiply them by each other MOD p\n var multipliedAcc = nums.reduce(function (acc, num, i) {\n if (Fp.is0(num)) return acc;\n inverted[i] = acc;\n return Fp.mul(acc, num);\n }, Fp.ONE);\n // Invert last element\n var invertedAcc = Fp.inv(multipliedAcc);\n // Walk from last to first, multiply them by inverted each other MOD p\n nums.reduceRight(function (acc, num, i) {\n if (Fp.is0(num)) return acc;\n inverted[i] = Fp.mul(acc, inverted[i]);\n return Fp.mul(acc, num);\n }, invertedAcc);\n return inverted;\n }\n // TODO: remove\n function FpDiv(Fp, lhs, rhs) {\n return Fp.mul(lhs, typeof rhs === 'bigint' ? invert(rhs, Fp.ORDER) : Fp.inv(rhs));\n }\n /**\n * Legendre symbol.\n * Legendre constant is used to calculate Legendre symbol (a | p)\n * which denotes the value of a^((p-1)/2) (mod p).\n *\n * * (a | p) ≡ 1 if a is a square (mod p), quadratic residue\n * * (a | p) ≡ -1 if a is not a square (mod p), quadratic non residue\n * * (a | p) ≡ 0 if a ≡ 0 (mod p)\n */\n function FpLegendre(Fp, n) {\n // We can use 3rd argument as optional cache of this value\n // but seems unneeded for now. The operation is very fast.\n var p1mod2 = (Fp.ORDER - _1n) / _2n;\n var powered = Fp.pow(n, p1mod2);\n var yes = Fp.eql(powered, Fp.ONE);\n var zero = Fp.eql(powered, Fp.ZERO);\n var no = Fp.eql(powered, Fp.neg(Fp.ONE));\n if (!yes && !zero && !no) throw new Error('invalid Legendre symbol result');\n return yes ? 1 : zero ? 0 : -1;\n }\n // This function returns True whenever the value x is a square in the field F.\n function FpIsSquare(Fp, n) {\n var l = FpLegendre(Fp, n);\n return l === 1;\n }\n // CURVE.n lengths\n function nLength(n, nBitLength) {\n // Bit size, byte size of CURVE.n\n if (nBitLength !== undefined) (0, utils_ts_1.anumber)(nBitLength);\n var _nBitLength = nBitLength !== undefined ? nBitLength : n.toString(2).length;\n var nByteLength = Math.ceil(_nBitLength / 8);\n return {\n nBitLength: _nBitLength,\n nByteLength: nByteLength\n };\n }\n /**\n * Creates a finite field. Major performance optimizations:\n * * 1. Denormalized operations like mulN instead of mul.\n * * 2. Identical object shape: never add or remove keys.\n * * 3. `Object.freeze`.\n * Fragile: always run a benchmark on a change.\n * Security note: operations don't check 'isValid' for all elements for performance reasons,\n * it is caller responsibility to check this.\n * This is low-level code, please make sure you know what you're doing.\n *\n * Note about field properties:\n * * CHARACTERISTIC p = prime number, number of elements in main subgroup.\n * * ORDER q = similar to cofactor in curves, may be composite `q = p^m`.\n *\n * @param ORDER field order, probably prime, or could be composite\n * @param bitLen how many bits the field consumes\n * @param isLE (default: false) if encoding / decoding should be in little-endian\n * @param redef optional faster redefinitions of sqrt and other methods\n */\n function Field(ORDER, bitLenOrOpts) {\n var isLE = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var opts = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};\n if (ORDER <= _0n) throw new Error('invalid field: expected ORDER > 0, got ' + ORDER);\n var _nbitLength = undefined;\n var _sqrt = undefined;\n var modFromBytes = false;\n var allowedLengths = undefined;\n if (typeof bitLenOrOpts === 'object' && bitLenOrOpts != null) {\n if (opts.sqrt || isLE) throw new Error('cannot specify opts in two arguments');\n var _opts = bitLenOrOpts;\n if (_opts.BITS) _nbitLength = _opts.BITS;\n if (_opts.sqrt) _sqrt = _opts.sqrt;\n if (typeof _opts.isLE === 'boolean') isLE = _opts.isLE;\n if (typeof _opts.modFromBytes === 'boolean') modFromBytes = _opts.modFromBytes;\n allowedLengths = _opts.allowedLengths;\n } else {\n if (typeof bitLenOrOpts === 'number') _nbitLength = bitLenOrOpts;\n if (opts.sqrt) _sqrt = opts.sqrt;\n }\n var _nLength = nLength(ORDER, _nbitLength),\n BITS = _nLength.nBitLength,\n BYTES = _nLength.nByteLength;\n if (BYTES > 2048) throw new Error('invalid field: expected ORDER of <= 2048 bytes');\n var sqrtP; // cached sqrtP\n var f = Object.freeze({\n ORDER: ORDER,\n isLE: isLE,\n BITS: BITS,\n BYTES: BYTES,\n MASK: (0, utils_ts_1.bitMask)(BITS),\n ZERO: _0n,\n ONE: _1n,\n allowedLengths: allowedLengths,\n create: function create(num) {\n return mod(num, ORDER);\n },\n isValid: function isValid(num) {\n if (typeof num !== 'bigint') throw new Error('invalid field element: expected bigint, got ' + typeof num);\n return _0n <= num && num < ORDER; // 0 is valid element, but it's not invertible\n },\n is0: function is0(num) {\n return num === _0n;\n },\n // is valid and invertible\n isValidNot0: function isValidNot0(num) {\n return !f.is0(num) && f.isValid(num);\n },\n isOdd: function isOdd(num) {\n return (num & _1n) === _1n;\n },\n neg: function neg(num) {\n return mod(-num, ORDER);\n },\n eql: function eql(lhs, rhs) {\n return lhs === rhs;\n },\n sqr: function sqr(num) {\n return mod(num * num, ORDER);\n },\n add: function add(lhs, rhs) {\n return mod(lhs + rhs, ORDER);\n },\n sub: function sub(lhs, rhs) {\n return mod(lhs - rhs, ORDER);\n },\n mul: function mul(lhs, rhs) {\n return mod(lhs * rhs, ORDER);\n },\n pow: function pow(num, power) {\n return FpPow(f, num, power);\n },\n div: function div(lhs, rhs) {\n return mod(lhs * invert(rhs, ORDER), ORDER);\n },\n // Same as above, but doesn't normalize\n sqrN: function sqrN(num) {\n return num * num;\n },\n addN: function addN(lhs, rhs) {\n return lhs + rhs;\n },\n subN: function subN(lhs, rhs) {\n return lhs - rhs;\n },\n mulN: function mulN(lhs, rhs) {\n return lhs * rhs;\n },\n inv: function inv(num) {\n return invert(num, ORDER);\n },\n sqrt: _sqrt || function (n) {\n if (!sqrtP) sqrtP = FpSqrt(ORDER);\n return sqrtP(f, n);\n },\n toBytes: function toBytes(num) {\n return isLE ? (0, utils_ts_1.numberToBytesLE)(num, BYTES) : (0, utils_ts_1.numberToBytesBE)(num, BYTES);\n },\n fromBytes: function fromBytes(bytes) {\n var skipValidation = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n if (allowedLengths) {\n if (!allowedLengths.includes(bytes.length) || bytes.length > BYTES) {\n throw new Error('Field.fromBytes: expected ' + allowedLengths + ' bytes, got ' + bytes.length);\n }\n var padded = new Uint8Array(BYTES);\n // isLE add 0 to right, !isLE to the left.\n padded.set(bytes, isLE ? 0 : padded.length - bytes.length);\n bytes = padded;\n }\n if (bytes.length !== BYTES) throw new Error('Field.fromBytes: expected ' + BYTES + ' bytes, got ' + bytes.length);\n var scalar = isLE ? (0, utils_ts_1.bytesToNumberLE)(bytes) : (0, utils_ts_1.bytesToNumberBE)(bytes);\n if (modFromBytes) scalar = mod(scalar, ORDER);\n if (!skipValidation) if (!f.isValid(scalar)) throw new Error('invalid field element: outside of range 0..ORDER');\n // NOTE: we don't validate scalar here, please use isValid. This done such way because some\n // protocol may allow non-reduced scalar that reduced later or changed some other way.\n return scalar;\n },\n // TODO: we don't need it here, move out to separate fn\n invertBatch: function invertBatch(lst) {\n return FpInvertBatch(f, lst);\n },\n // We can't move this out because Fp6, Fp12 implement it\n // and it's unclear what to return in there.\n cmov: function cmov(a, b, c) {\n return c ? b : a;\n }\n });\n return Object.freeze(f);\n }\n // Generic random scalar, we can do same for other fields if via Fp2.mul(Fp2.ONE, Fp2.random)?\n // This allows unsafe methods like ignore bias or zero. These unsafe, but often used in different protocols (if deterministic RNG).\n // which mean we cannot force this via opts.\n // Not sure what to do with randomBytes, we can accept it inside opts if wanted.\n // Probably need to export getMinHashLength somewhere?\n // random(bytes?: Uint8Array, unsafeAllowZero = false, unsafeAllowBias = false) {\n // const LEN = !unsafeAllowBias ? getMinHashLength(ORDER) : BYTES;\n // if (bytes === undefined) bytes = randomBytes(LEN); // _opts.randomBytes?\n // const num = isLE ? bytesToNumberLE(bytes) : bytesToNumberBE(bytes);\n // // `mod(x, 11)` can sometimes produce 0. `mod(x, 10) + 1` is the same, but no 0\n // const reduced = unsafeAllowZero ? mod(num, ORDER) : mod(num, ORDER - _1n) + _1n;\n // return reduced;\n // },\n function FpSqrtOdd(Fp, elm) {\n if (!Fp.isOdd) throw new Error(\"Field doesn't have isOdd\");\n var root = Fp.sqrt(elm);\n return Fp.isOdd(root) ? root : Fp.neg(root);\n }\n function FpSqrtEven(Fp, elm) {\n if (!Fp.isOdd) throw new Error(\"Field doesn't have isOdd\");\n var root = Fp.sqrt(elm);\n return Fp.isOdd(root) ? Fp.neg(root) : root;\n }\n /**\n * \"Constant-time\" private key generation utility.\n * Same as mapKeyToField, but accepts less bytes (40 instead of 48 for 32-byte field).\n * Which makes it slightly more biased, less secure.\n * @deprecated use `mapKeyToField` instead\n */\n function hashToPrivateScalar(hash, groupOrder) {\n var isLE = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n hash = (0, utils_ts_1.ensureBytes)('privateHash', hash);\n var hashLen = hash.length;\n var minLen = nLength(groupOrder).nByteLength + 8;\n if (minLen < 24 || hashLen < minLen || hashLen > 1024) throw new Error('hashToPrivateScalar: expected ' + minLen + '-1024 bytes of input, got ' + hashLen);\n var num = isLE ? (0, utils_ts_1.bytesToNumberLE)(hash) : (0, utils_ts_1.bytesToNumberBE)(hash);\n return mod(num, groupOrder - _1n) + _1n;\n }\n /**\n * Returns total number of bytes consumed by the field element.\n * For example, 32 bytes for usual 256-bit weierstrass curve.\n * @param fieldOrder number of field elements, usually CURVE.n\n * @returns byte length of field\n */\n function getFieldBytesLength(fieldOrder) {\n if (typeof fieldOrder !== 'bigint') throw new Error('field order must be bigint');\n var bitLength = fieldOrder.toString(2).length;\n return Math.ceil(bitLength / 8);\n }\n /**\n * Returns minimal amount of bytes that can be safely reduced\n * by field order.\n * Should be 2^-128 for 128-bit curve such as P256.\n * @param fieldOrder number of field elements, usually CURVE.n\n * @returns byte length of target hash\n */\n function getMinHashLength(fieldOrder) {\n var length = getFieldBytesLength(fieldOrder);\n return length + Math.ceil(length / 2);\n }\n /**\n * \"Constant-time\" private key generation utility.\n * Can take (n + n/2) or more bytes of uniform input e.g. from CSPRNG or KDF\n * and convert them into private scalar, with the modulo bias being negligible.\n * Needs at least 48 bytes of input for 32-byte private key.\n * https://research.kudelskisecurity.com/2020/07/28/the-definitive-guide-to-modulo-bias-and-how-to-avoid-it/\n * FIPS 186-5, A.2 https://csrc.nist.gov/publications/detail/fips/186/5/final\n * RFC 9380, https://www.rfc-editor.org/rfc/rfc9380#section-5\n * @param hash hash output from SHA3 or a similar function\n * @param groupOrder size of subgroup - (e.g. secp256k1.CURVE.n)\n * @param isLE interpret hash bytes as LE num\n * @returns valid private scalar\n */\n function mapHashToField(key, fieldOrder) {\n var isLE = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n var len = key.length;\n var fieldLen = getFieldBytesLength(fieldOrder);\n var minLen = getMinHashLength(fieldOrder);\n // No small numbers: need to understand bias story. No huge numbers: easier to detect JS timings.\n if (len < 16 || len < minLen || len > 1024) throw new Error('expected ' + minLen + '-1024 bytes of input, got ' + len);\n var num = isLE ? (0, utils_ts_1.bytesToNumberLE)(key) : (0, utils_ts_1.bytesToNumberBE)(key);\n // `mod(x, 11)` can sometimes produce 0. `mod(x, 10) + 1` is the same, but no 0\n var reduced = mod(num, fieldOrder - _1n) + _1n;\n return isLE ? (0, utils_ts_1.numberToBytesLE)(reduced, fieldLen) : (0, utils_ts_1.numberToBytesBE)(reduced, fieldLen);\n }\n});","lineCount":572,"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,"isNegativeLE"],[7,22,3,20],[7,25,3,23],[7,30,3,28],[7,31,3,29],[8,2,4,0,"exports"],[8,9,4,7],[8,10,4,8,"mod"],[8,13,4,11],[8,16,4,14,"mod"],[8,19,4,17],[9,2,5,0,"exports"],[9,9,5,7],[9,10,5,8,"pow"],[9,13,5,11],[9,16,5,14,"pow"],[9,19,5,17],[10,2,6,0,"exports"],[10,9,6,7],[10,10,6,8,"pow2"],[10,14,6,12],[10,17,6,15,"pow2"],[10,21,6,19],[11,2,7,0,"exports"],[11,9,7,7],[11,10,7,8,"invert"],[11,16,7,14],[11,19,7,17,"invert"],[11,25,7,23],[12,2,8,0,"exports"],[12,9,8,7],[12,10,8,8,"tonelliShanks"],[12,23,8,21],[12,26,8,24,"tonelliShanks"],[12,39,8,37],[13,2,9,0,"exports"],[13,9,9,7],[13,10,9,8,"FpSqrt"],[13,16,9,14],[13,19,9,17,"FpSqrt"],[13,25,9,23],[14,2,10,0,"exports"],[14,9,10,7],[14,10,10,8,"validateField"],[14,23,10,21],[14,26,10,24,"validateField"],[14,39,10,37],[15,2,11,0,"exports"],[15,9,11,7],[15,10,11,8,"FpPow"],[15,15,11,13],[15,18,11,16,"FpPow"],[15,23,11,21],[16,2,12,0,"exports"],[16,9,12,7],[16,10,12,8,"FpInvertBatch"],[16,23,12,21],[16,26,12,24,"FpInvertBatch"],[16,39,12,37],[17,2,13,0,"exports"],[17,9,13,7],[17,10,13,8,"FpDiv"],[17,15,13,13],[17,18,13,16,"FpDiv"],[17,23,13,21],[18,2,14,0,"exports"],[18,9,14,7],[18,10,14,8,"FpLegendre"],[18,20,14,18],[18,23,14,21,"FpLegendre"],[18,33,14,31],[19,2,15,0,"exports"],[19,9,15,7],[19,10,15,8,"FpIsSquare"],[19,20,15,18],[19,23,15,21,"FpIsSquare"],[19,33,15,31],[20,2,16,0,"exports"],[20,9,16,7],[20,10,16,8,"nLength"],[20,17,16,15],[20,20,16,18,"nLength"],[20,27,16,25],[21,2,17,0,"exports"],[21,9,17,7],[21,10,17,8,"Field"],[21,15,17,13],[21,18,17,16,"Field"],[21,23,17,21],[22,2,18,0,"exports"],[22,9,18,7],[22,10,18,8,"FpSqrtOdd"],[22,19,18,17],[22,22,18,20,"FpSqrtOdd"],[22,31,18,29],[23,2,19,0,"exports"],[23,9,19,7],[23,10,19,8,"FpSqrtEven"],[23,20,19,18],[23,23,19,21,"FpSqrtEven"],[23,33,19,31],[24,2,20,0,"exports"],[24,9,20,7],[24,10,20,8,"hashToPrivateScalar"],[24,29,20,27],[24,32,20,30,"hashToPrivateScalar"],[24,51,20,49],[25,2,21,0,"exports"],[25,9,21,7],[25,10,21,8,"getFieldBytesLength"],[25,29,21,27],[25,32,21,30,"getFieldBytesLength"],[25,51,21,49],[26,2,22,0,"exports"],[26,9,22,7],[26,10,22,8,"getMinHashLength"],[26,26,22,24],[26,29,22,27,"getMinHashLength"],[26,45,22,43],[27,2,23,0,"exports"],[27,9,23,7],[27,10,23,8,"mapHashToField"],[27,24,23,22],[27,27,23,25,"mapHashToField"],[27,41,23,39],[28,2,24,0],[29,0,25,0],[30,0,26,0],[31,0,27,0],[32,0,28,0],[33,0,29,0],[34,2,30,0],[35,2,31,0],[35,6,31,6,"utils_ts_1"],[35,16,31,16],[35,19,31,19,"require"],[35,26,31,26],[35,27,31,26,"_dependencyMap"],[35,41,31,26],[35,59,31,40],[35,60,31,41],[36,2,32,0],[37,2,33,0],[37,6,33,6,"_0n"],[37,9,33,9],[37,12,33,12,"BigInt"],[37,18,33,18],[37,19,33,19],[37,20,33,20],[37,21,33,21],[38,4,33,23,"_1n"],[38,7,33,26],[38,10,33,29,"BigInt"],[38,16,33,35],[38,17,33,36],[38,18,33,37],[38,19,33,38],[39,4,33,40,"_2n"],[39,7,33,43],[39,10,33,46],[39,25,33,62,"BigInt"],[39,31,33,68],[39,32,33,69],[39,33,33,70],[39,34,33,71],[40,4,33,73,"_3n"],[40,7,33,76],[40,10,33,79],[40,25,33,95,"BigInt"],[40,31,33,101],[40,32,33,102],[40,33,33,103],[40,34,33,104],[41,2,34,0],[42,2,35,0],[42,6,35,6,"_4n"],[42,9,35,9],[42,12,35,12],[42,27,35,28,"BigInt"],[42,33,35,34],[42,34,35,35],[42,35,35,36],[42,36,35,37],[43,4,35,39,"_5n"],[43,7,35,42],[43,10,35,45],[43,25,35,61,"BigInt"],[43,31,35,67],[43,32,35,68],[43,33,35,69],[43,34,35,70],[44,4,35,72,"_7n"],[44,7,35,75],[44,10,35,78],[44,25,35,94,"BigInt"],[44,31,35,100],[44,32,35,101],[44,33,35,102],[44,34,35,103],[45,2,36,0],[46,2,37,0],[46,6,37,6,"_8n"],[46,9,37,9],[46,12,37,12],[46,27,37,28,"BigInt"],[46,33,37,34],[46,34,37,35],[46,35,37,36],[46,36,37,37],[47,4,37,39,"_9n"],[47,7,37,42],[47,10,37,45],[47,25,37,61,"BigInt"],[47,31,37,67],[47,32,37,68],[47,33,37,69],[47,34,37,70],[48,4,37,72,"_16n"],[48,8,37,76],[48,11,37,79],[48,26,37,95,"BigInt"],[48,32,37,101],[48,33,37,102],[48,35,37,104],[48,36,37,105],[49,2,38,0],[50,2,39,0],[50,11,39,9,"mod"],[50,14,39,12,"mod"],[50,15,39,13,"a"],[50,16,39,14],[50,18,39,16,"b"],[50,19,39,17],[50,21,39,19],[51,4,40,4],[51,8,40,10,"result"],[51,14,40,16],[51,17,40,19,"a"],[51,18,40,20],[51,21,40,23,"b"],[51,22,40,24],[52,4,41,4],[52,11,41,11,"result"],[52,17,41,17],[52,21,41,21,"_0n"],[52,24,41,24],[52,27,41,27,"result"],[52,33,41,33],[52,36,41,36,"b"],[52,37,41,37],[52,40,41,40,"result"],[52,46,41,46],[53,2,42,0],[54,2,43,0],[55,0,44,0],[56,0,45,0],[57,0,46,0],[58,0,47,0],[59,0,48,0],[60,2,49,0],[60,11,49,9,"pow"],[60,14,49,12,"pow"],[60,15,49,13,"num"],[60,18,49,16],[60,20,49,18,"power"],[60,25,49,23],[60,27,49,25,"modulo"],[60,33,49,31],[60,35,49,33],[61,4,50,4],[61,11,50,11,"FpPow"],[61,16,50,16],[61,17,50,17,"Field"],[61,22,50,22],[61,23,50,23,"modulo"],[61,29,50,29],[61,30,50,30],[61,32,50,32,"num"],[61,35,50,35],[61,37,50,37,"power"],[61,42,50,42],[61,43,50,43],[62,2,51,0],[63,2,52,0],[64,2,53,0],[64,11,53,9,"pow2"],[64,15,53,13,"pow2"],[64,16,53,14,"x"],[64,17,53,15],[64,19,53,17,"power"],[64,24,53,22],[64,26,53,24,"modulo"],[64,32,53,30],[64,34,53,32],[65,4,54,4],[65,8,54,8,"res"],[65,11,54,11],[65,14,54,14,"x"],[65,15,54,15],[66,4,55,4],[66,11,55,11,"power"],[66,16,55,16],[66,18,55,18],[66,21,55,21,"_0n"],[66,24,55,24],[66,26,55,26],[67,6,56,8,"res"],[67,9,56,11],[67,13,56,15,"res"],[67,16,56,18],[68,6,57,8,"res"],[68,9,57,11],[68,13,57,15,"modulo"],[68,19,57,21],[69,4,58,4],[70,4,59,4],[70,11,59,11,"res"],[70,14,59,14],[71,2,60,0],[72,2,61,0],[73,0,62,0],[74,0,63,0],[75,0,64,0],[76,2,65,0],[76,11,65,9,"invert"],[76,17,65,15,"invert"],[76,18,65,16,"number"],[76,24,65,22],[76,26,65,24,"modulo"],[76,32,65,30],[76,34,65,32],[77,4,66,4],[77,8,66,8,"number"],[77,14,66,14],[77,19,66,19,"_0n"],[77,22,66,22],[77,24,67,8],[77,30,67,14],[77,34,67,18,"Error"],[77,39,67,23],[77,40,67,24],[77,74,67,58],[77,75,67,59],[78,4,68,4],[78,8,68,8,"modulo"],[78,14,68,14],[78,18,68,18,"_0n"],[78,21,68,21],[78,23,69,8],[78,29,69,14],[78,33,69,18,"Error"],[78,38,69,23],[78,39,69,24],[78,80,69,65],[78,83,69,68,"modulo"],[78,89,69,74],[78,90,69,75],[79,4,70,4],[80,4,71,4],[80,8,71,8,"a"],[80,9,71,9],[80,12,71,12,"mod"],[80,15,71,15],[80,16,71,16,"number"],[80,22,71,22],[80,24,71,24,"modulo"],[80,30,71,30],[80,31,71,31],[81,4,72,4],[81,8,72,8,"b"],[81,9,72,9],[81,12,72,12,"modulo"],[81,18,72,18],[82,4,73,4],[83,4,74,4],[83,8,74,8,"x"],[83,9,74,9],[83,12,74,12,"_0n"],[83,15,74,15],[84,6,74,17,"y"],[84,7,74,18],[84,10,74,21,"_1n"],[84,13,74,24],[85,6,74,26,"u"],[85,7,74,27],[85,10,74,30,"_1n"],[85,13,74,33],[86,6,74,35,"v"],[86,7,74,36],[86,10,74,39,"_0n"],[86,13,74,42],[87,4,75,4],[87,11,75,11,"a"],[87,12,75,12],[87,17,75,17,"_0n"],[87,20,75,20],[87,22,75,22],[88,6,76,8],[89,6,77,8],[89,10,77,14,"q"],[89,11,77,15],[89,14,77,18,"b"],[89,15,77,19],[89,18,77,22,"a"],[89,19,77,23],[90,6,78,8],[90,10,78,14,"r"],[90,11,78,15],[90,14,78,18,"b"],[90,15,78,19],[90,18,78,22,"a"],[90,19,78,23],[91,6,79,8],[91,10,79,14,"m"],[91,11,79,15],[91,14,79,18,"x"],[91,15,79,19],[91,18,79,22,"u"],[91,19,79,23],[91,22,79,26,"q"],[91,23,79,27],[92,6,80,8],[92,10,80,14,"n"],[92,11,80,15],[92,14,80,18,"y"],[92,15,80,19],[92,18,80,22,"v"],[92,19,80,23],[92,22,80,26,"q"],[92,23,80,27],[93,6,81,8],[94,6,82,8,"b"],[94,7,82,9],[94,10,82,12,"a"],[94,11,82,13],[94,13,82,15,"a"],[94,14,82,16],[94,17,82,19,"r"],[94,18,82,20],[94,20,82,22,"x"],[94,21,82,23],[94,24,82,26,"u"],[94,25,82,27],[94,27,82,29,"y"],[94,28,82,30],[94,31,82,33,"v"],[94,32,82,34],[94,34,82,36,"u"],[94,35,82,37],[94,38,82,40,"m"],[94,39,82,41],[94,41,82,43,"v"],[94,42,82,44],[94,45,82,47,"n"],[94,46,82,48],[95,4,83,4],[96,4,84,4],[96,8,84,10,"gcd"],[96,11,84,13],[96,14,84,16,"b"],[96,15,84,17],[97,4,85,4],[97,8,85,8,"gcd"],[97,11,85,11],[97,16,85,16,"_1n"],[97,19,85,19],[97,21,86,8],[97,27,86,14],[97,31,86,18,"Error"],[97,36,86,23],[97,37,86,24],[97,61,86,48],[97,62,86,49],[98,4,87,4],[98,11,87,11,"mod"],[98,14,87,14],[98,15,87,15,"x"],[98,16,87,16],[98,18,87,18,"modulo"],[98,24,87,24],[98,25,87,25],[99,2,88,0],[100,2,89,0],[100,11,89,9,"assertIsSquare"],[100,25,89,23,"assertIsSquare"],[100,26,89,24,"Fp"],[100,28,89,26],[100,30,89,28,"root"],[100,34,89,32],[100,36,89,34,"n"],[100,37,89,35],[100,39,89,37],[101,4,90,4],[101,8,90,8],[101,9,90,9,"Fp"],[101,11,90,11],[101,12,90,12,"eql"],[101,15,90,15],[101,16,90,16,"Fp"],[101,18,90,18],[101,19,90,19,"sqr"],[101,22,90,22],[101,23,90,23,"root"],[101,27,90,27],[101,28,90,28],[101,30,90,30,"n"],[101,31,90,31],[101,32,90,32],[101,34,91,8],[101,40,91,14],[101,44,91,18,"Error"],[101,49,91,23],[101,50,91,24],[101,75,91,49],[101,76,91,50],[102,2,92,0],[103,2,93,0],[104,2,94,0],[105,2,95,0],[106,2,96,0],[107,2,97,0],[107,11,97,9,"sqrt3mod4"],[107,20,97,18,"sqrt3mod4"],[107,21,97,19,"Fp"],[107,23,97,21],[107,25,97,23,"n"],[107,26,97,24],[107,28,97,26],[108,4,98,4],[108,8,98,10,"p1div4"],[108,14,98,16],[108,17,98,19],[108,18,98,20,"Fp"],[108,20,98,22],[108,21,98,23,"ORDER"],[108,26,98,28],[108,29,98,31,"_1n"],[108,32,98,34],[108,36,98,38,"_4n"],[108,39,98,41],[109,4,99,4],[109,8,99,10,"root"],[109,12,99,14],[109,15,99,17,"Fp"],[109,17,99,19],[109,18,99,20,"pow"],[109,21,99,23],[109,22,99,24,"n"],[109,23,99,25],[109,25,99,27,"p1div4"],[109,31,99,33],[109,32,99,34],[110,4,100,4,"assertIsSquare"],[110,18,100,18],[110,19,100,19,"Fp"],[110,21,100,21],[110,23,100,23,"root"],[110,27,100,27],[110,29,100,29,"n"],[110,30,100,30],[110,31,100,31],[111,4,101,4],[111,11,101,11,"root"],[111,15,101,15],[112,2,102,0],[113,2,103,0],[113,11,103,9,"sqrt5mod8"],[113,20,103,18,"sqrt5mod8"],[113,21,103,19,"Fp"],[113,23,103,21],[113,25,103,23,"n"],[113,26,103,24],[113,28,103,26],[114,4,104,4],[114,8,104,10,"p5div8"],[114,14,104,16],[114,17,104,19],[114,18,104,20,"Fp"],[114,20,104,22],[114,21,104,23,"ORDER"],[114,26,104,28],[114,29,104,31,"_5n"],[114,32,104,34],[114,36,104,38,"_8n"],[114,39,104,41],[115,4,105,4],[115,8,105,10,"n2"],[115,10,105,12],[115,13,105,15,"Fp"],[115,15,105,17],[115,16,105,18,"mul"],[115,19,105,21],[115,20,105,22,"n"],[115,21,105,23],[115,23,105,25,"_2n"],[115,26,105,28],[115,27,105,29],[116,4,106,4],[116,8,106,10,"v"],[116,9,106,11],[116,12,106,14,"Fp"],[116,14,106,16],[116,15,106,17,"pow"],[116,18,106,20],[116,19,106,21,"n2"],[116,21,106,23],[116,23,106,25,"p5div8"],[116,29,106,31],[116,30,106,32],[117,4,107,4],[117,8,107,10,"nv"],[117,10,107,12],[117,13,107,15,"Fp"],[117,15,107,17],[117,16,107,18,"mul"],[117,19,107,21],[117,20,107,22,"n"],[117,21,107,23],[117,23,107,25,"v"],[117,24,107,26],[117,25,107,27],[118,4,108,4],[118,8,108,10,"i"],[118,9,108,11],[118,12,108,14,"Fp"],[118,14,108,16],[118,15,108,17,"mul"],[118,18,108,20],[118,19,108,21,"Fp"],[118,21,108,23],[118,22,108,24,"mul"],[118,25,108,27],[118,26,108,28,"nv"],[118,28,108,30],[118,30,108,32,"_2n"],[118,33,108,35],[118,34,108,36],[118,36,108,38,"v"],[118,37,108,39],[118,38,108,40],[119,4,109,4],[119,8,109,10,"root"],[119,12,109,14],[119,15,109,17,"Fp"],[119,17,109,19],[119,18,109,20,"mul"],[119,21,109,23],[119,22,109,24,"nv"],[119,24,109,26],[119,26,109,28,"Fp"],[119,28,109,30],[119,29,109,31,"sub"],[119,32,109,34],[119,33,109,35,"i"],[119,34,109,36],[119,36,109,38,"Fp"],[119,38,109,40],[119,39,109,41,"ONE"],[119,42,109,44],[119,43,109,45],[119,44,109,46],[120,4,110,4,"assertIsSquare"],[120,18,110,18],[120,19,110,19,"Fp"],[120,21,110,21],[120,23,110,23,"root"],[120,27,110,27],[120,29,110,29,"n"],[120,30,110,30],[120,31,110,31],[121,4,111,4],[121,11,111,11,"root"],[121,15,111,15],[122,2,112,0],[123,2,113,0],[124,2,114,0],[125,2,115,0],[125,11,115,9,"sqrt9mod16"],[125,21,115,19,"sqrt9mod16"],[125,22,115,20,"P"],[125,23,115,21],[125,25,115,23],[126,4,116,4],[126,8,116,10,"Fp_"],[126,11,116,13],[126,14,116,16,"Field"],[126,19,116,21],[126,20,116,22,"P"],[126,21,116,23],[126,22,116,24],[127,4,117,4],[127,8,117,10,"tn"],[127,10,117,12],[127,13,117,15,"tonelliShanks"],[127,26,117,28],[127,27,117,29,"P"],[127,28,117,30],[127,29,117,31],[128,4,118,4],[128,8,118,10,"c1"],[128,10,118,12],[128,13,118,15,"tn"],[128,15,118,17],[128,16,118,18,"Fp_"],[128,19,118,21],[128,21,118,23,"Fp_"],[128,24,118,26],[128,25,118,27,"neg"],[128,28,118,30],[128,29,118,31,"Fp_"],[128,32,118,34],[128,33,118,35,"ONE"],[128,36,118,38],[128,37,118,39],[128,38,118,40],[128,39,118,41],[128,40,118,42],[129,4,119,4],[129,8,119,10,"c2"],[129,10,119,12],[129,13,119,15,"tn"],[129,15,119,17],[129,16,119,18,"Fp_"],[129,19,119,21],[129,21,119,23,"c1"],[129,23,119,25],[129,24,119,26],[129,25,119,27],[129,26,119,28],[130,4,120,4],[130,8,120,10,"c3"],[130,10,120,12],[130,13,120,15,"tn"],[130,15,120,17],[130,16,120,18,"Fp_"],[130,19,120,21],[130,21,120,23,"Fp_"],[130,24,120,26],[130,25,120,27,"neg"],[130,28,120,30],[130,29,120,31,"c1"],[130,31,120,33],[130,32,120,34],[130,33,120,35],[130,34,120,36],[130,35,120,37],[131,4,121,4],[131,8,121,10,"c4"],[131,10,121,12],[131,13,121,15],[131,14,121,16,"P"],[131,15,121,17],[131,18,121,20,"_7n"],[131,21,121,23],[131,25,121,27,"_16n"],[131,29,121,31],[131,30,121,32],[131,31,121,33],[132,4,122,4],[132,11,122,11],[132,21,122,12,"Fp"],[132,23,122,14],[132,25,122,16,"n"],[132,26,122,17],[132,28,122,22],[133,6,123,8],[133,10,123,12,"tv1"],[133,13,123,15],[133,16,123,18,"Fp"],[133,18,123,20],[133,19,123,21,"pow"],[133,22,123,24],[133,23,123,25,"n"],[133,24,123,26],[133,26,123,28,"c4"],[133,28,123,30],[133,29,123,31],[133,30,123,32],[133,31,123,33],[134,6,124,8],[134,10,124,12,"tv2"],[134,13,124,15],[134,16,124,18,"Fp"],[134,18,124,20],[134,19,124,21,"mul"],[134,22,124,24],[134,23,124,25,"tv1"],[134,26,124,28],[134,28,124,30,"c1"],[134,30,124,32],[134,31,124,33],[134,32,124,34],[134,33,124,35],[135,6,125,8],[135,10,125,14,"tv3"],[135,13,125,17],[135,16,125,20,"Fp"],[135,18,125,22],[135,19,125,23,"mul"],[135,22,125,26],[135,23,125,27,"tv1"],[135,26,125,30],[135,28,125,32,"c2"],[135,30,125,34],[135,31,125,35],[135,32,125,36],[135,33,125,37],[136,6,126,8],[136,10,126,14,"tv4"],[136,13,126,17],[136,16,126,20,"Fp"],[136,18,126,22],[136,19,126,23,"mul"],[136,22,126,26],[136,23,126,27,"tv1"],[136,26,126,30],[136,28,126,32,"c3"],[136,30,126,34],[136,31,126,35],[136,32,126,36],[136,33,126,37],[137,6,127,8],[137,10,127,14,"e1"],[137,12,127,16],[137,15,127,19,"Fp"],[137,17,127,21],[137,18,127,22,"eql"],[137,21,127,25],[137,22,127,26,"Fp"],[137,24,127,28],[137,25,127,29,"sqr"],[137,28,127,32],[137,29,127,33,"tv2"],[137,32,127,36],[137,33,127,37],[137,35,127,39,"n"],[137,36,127,40],[137,37,127,41],[137,38,127,42],[137,39,127,43],[138,6,128,8],[138,10,128,14,"e2"],[138,12,128,16],[138,15,128,19,"Fp"],[138,17,128,21],[138,18,128,22,"eql"],[138,21,128,25],[138,22,128,26,"Fp"],[138,24,128,28],[138,25,128,29,"sqr"],[138,28,128,32],[138,29,128,33,"tv3"],[138,32,128,36],[138,33,128,37],[138,35,128,39,"n"],[138,36,128,40],[138,37,128,41],[138,38,128,42],[138,39,128,43],[139,6,129,8,"tv1"],[139,9,129,11],[139,12,129,14,"Fp"],[139,14,129,16],[139,15,129,17,"cmov"],[139,19,129,21],[139,20,129,22,"tv1"],[139,23,129,25],[139,25,129,27,"tv2"],[139,28,129,30],[139,30,129,32,"e1"],[139,32,129,34],[139,33,129,35],[139,34,129,36],[139,35,129,37],[140,6,130,8,"tv2"],[140,9,130,11],[140,12,130,14,"Fp"],[140,14,130,16],[140,15,130,17,"cmov"],[140,19,130,21],[140,20,130,22,"tv4"],[140,23,130,25],[140,25,130,27,"tv3"],[140,28,130,30],[140,30,130,32,"e2"],[140,32,130,34],[140,33,130,35],[140,34,130,36],[140,35,130,37],[141,6,131,8],[141,10,131,14,"e3"],[141,12,131,16],[141,15,131,19,"Fp"],[141,17,131,21],[141,18,131,22,"eql"],[141,21,131,25],[141,22,131,26,"Fp"],[141,24,131,28],[141,25,131,29,"sqr"],[141,28,131,32],[141,29,131,33,"tv2"],[141,32,131,36],[141,33,131,37],[141,35,131,39,"n"],[141,36,131,40],[141,37,131,41],[141,38,131,42],[141,39,131,43],[142,6,132,8],[142,10,132,14,"root"],[142,14,132,18],[142,17,132,21,"Fp"],[142,19,132,23],[142,20,132,24,"cmov"],[142,24,132,28],[142,25,132,29,"tv1"],[142,28,132,32],[142,30,132,34,"tv2"],[142,33,132,37],[142,35,132,39,"e3"],[142,37,132,41],[142,38,132,42],[142,39,132,43],[142,40,132,44],[143,6,133,8,"assertIsSquare"],[143,20,133,22],[143,21,133,23,"Fp"],[143,23,133,25],[143,25,133,27,"root"],[143,29,133,31],[143,31,133,33,"n"],[143,32,133,34],[143,33,133,35],[144,6,134,8],[144,13,134,15,"root"],[144,17,134,19],[145,4,135,4],[145,5,135,5],[146,2,136,0],[147,2,137,0],[148,0,138,0],[149,0,139,0],[150,0,140,0],[151,0,141,0],[152,0,142,0],[153,0,143,0],[154,2,144,0],[154,11,144,9,"tonelliShanks"],[154,24,144,22,"tonelliShanks"],[154,25,144,23,"P"],[154,26,144,24],[154,28,144,26],[155,4,145,4],[156,4,146,4],[157,4,147,4],[157,8,147,8,"P"],[157,9,147,9],[157,12,147,12,"_3n"],[157,15,147,15],[157,17,148,8],[157,23,148,14],[157,27,148,18,"Error"],[157,32,148,23],[157,33,148,24],[157,70,148,61],[157,71,148,62],[158,4,149,4],[159,4,150,4],[159,8,150,8,"Q"],[159,9,150,9],[159,12,150,12,"P"],[159,13,150,13],[159,16,150,16,"_1n"],[159,19,150,19],[160,4,151,4],[160,8,151,8,"S"],[160,9,151,9],[160,12,151,12],[160,13,151,13],[161,4,152,4],[161,11,152,11,"Q"],[161,12,152,12],[161,15,152,15,"_2n"],[161,18,152,18],[161,23,152,23,"_0n"],[161,26,152,26],[161,28,152,28],[162,6,153,8,"Q"],[162,7,153,9],[162,11,153,13,"_2n"],[162,14,153,16],[163,6,154,8,"S"],[163,7,154,9],[163,9,154,11],[164,4,155,4],[165,4,156,4],[166,4,157,4],[166,8,157,8,"Z"],[166,9,157,9],[166,12,157,12,"_2n"],[166,15,157,15],[167,4,158,4],[167,8,158,10,"_Fp"],[167,11,158,13],[167,14,158,16,"Field"],[167,19,158,21],[167,20,158,22,"P"],[167,21,158,23],[167,22,158,24],[168,4,159,4],[168,11,159,11,"FpLegendre"],[168,21,159,21],[168,22,159,22,"_Fp"],[168,25,159,25],[168,27,159,27,"Z"],[168,28,159,28],[168,29,159,29],[168,34,159,34],[168,35,159,35],[168,37,159,37],[169,6,160,8],[170,6,161,8],[171,6,162,8],[171,10,162,12,"Z"],[171,11,162,13],[171,13,162,15],[171,16,162,18],[171,20,162,22],[171,22,163,12],[171,28,163,18],[171,32,163,22,"Error"],[171,37,163,27],[171,38,163,28],[171,85,163,75],[171,86,163,76],[172,4,164,4],[173,4,165,4],[174,4,166,4],[174,8,166,8,"S"],[174,9,166,9],[174,14,166,14],[174,15,166,15],[174,17,167,8],[174,24,167,15,"sqrt3mod4"],[174,33,167,24],[175,4,168,4],[176,4,169,4],[177,4,170,4],[177,8,170,8,"cc"],[177,10,170,10],[177,13,170,13,"_Fp"],[177,16,170,16],[177,17,170,17,"pow"],[177,20,170,20],[177,21,170,21,"Z"],[177,22,170,22],[177,24,170,24,"Q"],[177,25,170,25],[177,26,170,26],[177,27,170,27],[177,28,170,28],[178,4,171,4],[178,8,171,10,"Q1div2"],[178,14,171,16],[178,17,171,19],[178,18,171,20,"Q"],[178,19,171,21],[178,22,171,24,"_1n"],[178,25,171,27],[178,29,171,31,"_2n"],[178,32,171,34],[179,4,172,4],[179,11,172,11],[179,20,172,20,"tonelliSlow"],[179,31,172,31,"tonelliSlow"],[179,32,172,32,"Fp"],[179,34,172,34],[179,36,172,36,"n"],[179,37,172,37],[179,39,172,39],[180,6,173,8],[180,10,173,12,"Fp"],[180,12,173,14],[180,13,173,15,"is0"],[180,16,173,18],[180,17,173,19,"n"],[180,18,173,20],[180,19,173,21],[180,21,174,12],[180,28,174,19,"n"],[180,29,174,20],[181,6,175,8],[182,6,176,8],[182,10,176,12,"FpLegendre"],[182,20,176,22],[182,21,176,23,"Fp"],[182,23,176,25],[182,25,176,27,"n"],[182,26,176,28],[182,27,176,29],[182,32,176,34],[182,33,176,35],[182,35,177,12],[182,41,177,18],[182,45,177,22,"Error"],[182,50,177,27],[182,51,177,28],[182,76,177,53],[182,77,177,54],[183,6,178,8],[184,6,179,8],[184,10,179,12,"M"],[184,11,179,13],[184,14,179,16,"S"],[184,15,179,17],[185,6,180,8],[185,10,180,12,"c"],[185,11,180,13],[185,14,180,16,"Fp"],[185,16,180,18],[185,17,180,19,"mul"],[185,20,180,22],[185,21,180,23,"Fp"],[185,23,180,25],[185,24,180,26,"ONE"],[185,27,180,29],[185,29,180,31,"cc"],[185,31,180,33],[185,32,180,34],[185,33,180,35],[185,34,180,36],[186,6,181,8],[186,10,181,12,"t"],[186,11,181,13],[186,14,181,16,"Fp"],[186,16,181,18],[186,17,181,19,"pow"],[186,20,181,22],[186,21,181,23,"n"],[186,22,181,24],[186,24,181,26,"Q"],[186,25,181,27],[186,26,181,28],[186,27,181,29],[186,28,181,30],[187,6,182,8],[187,10,182,12,"R"],[187,11,182,13],[187,14,182,16,"Fp"],[187,16,182,18],[187,17,182,19,"pow"],[187,20,182,22],[187,21,182,23,"n"],[187,22,182,24],[187,24,182,26,"Q1div2"],[187,30,182,32],[187,31,182,33],[187,32,182,34],[187,33,182,35],[188,6,183,8],[189,6,184,8],[190,6,185,8],[190,13,185,15],[190,14,185,16,"Fp"],[190,16,185,18],[190,17,185,19,"eql"],[190,20,185,22],[190,21,185,23,"t"],[190,22,185,24],[190,24,185,26,"Fp"],[190,26,185,28],[190,27,185,29,"ONE"],[190,30,185,32],[190,31,185,33],[190,33,185,35],[191,8,186,12],[191,12,186,16,"Fp"],[191,14,186,18],[191,15,186,19,"is0"],[191,18,186,22],[191,19,186,23,"t"],[191,20,186,24],[191,21,186,25],[191,23,187,16],[191,30,187,23,"Fp"],[191,32,187,25],[191,33,187,26,"ZERO"],[191,37,187,30],[191,38,187,31],[191,39,187,32],[192,8,188,12],[192,12,188,16,"i"],[192,13,188,17],[192,16,188,20],[192,17,188,21],[193,8,189,12],[194,8,190,12],[194,12,190,16,"t_tmp"],[194,17,190,21],[194,20,190,24,"Fp"],[194,22,190,26],[194,23,190,27,"sqr"],[194,26,190,30],[194,27,190,31,"t"],[194,28,190,32],[194,29,190,33],[194,30,190,34],[194,31,190,35],[195,8,191,12],[195,15,191,19],[195,16,191,20,"Fp"],[195,18,191,22],[195,19,191,23,"eql"],[195,22,191,26],[195,23,191,27,"t_tmp"],[195,28,191,32],[195,30,191,34,"Fp"],[195,32,191,36],[195,33,191,37,"ONE"],[195,36,191,40],[195,37,191,41],[195,39,191,43],[196,10,192,16,"i"],[196,11,192,17],[196,13,192,19],[197,10,193,16,"t_tmp"],[197,15,193,21],[197,18,193,24,"Fp"],[197,20,193,26],[197,21,193,27,"sqr"],[197,24,193,30],[197,25,193,31,"t_tmp"],[197,30,193,36],[197,31,193,37],[197,32,193,38],[197,33,193,39],[198,10,194,16],[198,14,194,20,"i"],[198,15,194,21],[198,20,194,26,"M"],[198,21,194,27],[198,23,195,20],[198,29,195,26],[198,33,195,30,"Error"],[198,38,195,35],[198,39,195,36],[198,64,195,61],[198,65,195,62],[199,8,196,12],[200,8,197,12],[201,8,198,12],[201,12,198,18,"exponent"],[201,20,198,26],[201,23,198,29,"_1n"],[201,26,198,32],[201,30,198,36,"BigInt"],[201,36,198,42],[201,37,198,43,"M"],[201,38,198,44],[201,41,198,47,"i"],[201,42,198,48],[201,45,198,51],[201,46,198,52],[201,47,198,53],[201,48,198,54],[201,49,198,55],[202,8,199,12],[202,12,199,18,"b"],[202,13,199,19],[202,16,199,22,"Fp"],[202,18,199,24],[202,19,199,25,"pow"],[202,22,199,28],[202,23,199,29,"c"],[202,24,199,30],[202,26,199,32,"exponent"],[202,34,199,40],[202,35,199,41],[202,36,199,42],[202,37,199,43],[203,8,200,12],[204,8,201,12,"M"],[204,9,201,13],[204,12,201,16,"i"],[204,13,201,17],[205,8,202,12,"c"],[205,9,202,13],[205,12,202,16,"Fp"],[205,14,202,18],[205,15,202,19,"sqr"],[205,18,202,22],[205,19,202,23,"b"],[205,20,202,24],[205,21,202,25],[205,22,202,26],[205,23,202,27],[206,8,203,12,"t"],[206,9,203,13],[206,12,203,16,"Fp"],[206,14,203,18],[206,15,203,19,"mul"],[206,18,203,22],[206,19,203,23,"t"],[206,20,203,24],[206,22,203,26,"c"],[206,23,203,27],[206,24,203,28],[206,25,203,29],[206,26,203,30],[207,8,204,12,"R"],[207,9,204,13],[207,12,204,16,"Fp"],[207,14,204,18],[207,15,204,19,"mul"],[207,18,204,22],[207,19,204,23,"R"],[207,20,204,24],[207,22,204,26,"b"],[207,23,204,27],[207,24,204,28],[207,25,204,29],[207,26,204,30],[208,6,205,8],[209,6,206,8],[209,13,206,15,"R"],[209,14,206,16],[210,4,207,4],[210,5,207,5],[211,2,208,0],[212,2,209,0],[213,0,210,0],[214,0,211,0],[215,0,212,0],[216,0,213,0],[217,0,214,0],[218,0,215,0],[219,0,216,0],[220,0,217,0],[221,0,218,0],[222,0,219,0],[223,2,220,0],[223,11,220,9,"FpSqrt"],[223,17,220,15,"FpSqrt"],[223,18,220,16,"P"],[223,19,220,17],[223,21,220,19],[224,4,221,4],[225,4,222,4],[225,8,222,8,"P"],[225,9,222,9],[225,12,222,12,"_4n"],[225,15,222,15],[225,20,222,20,"_3n"],[225,23,222,23],[225,25,223,8],[225,32,223,15,"sqrt3mod4"],[225,41,223,24],[226,4,224,4],[227,4,225,4],[227,8,225,8,"P"],[227,9,225,9],[227,12,225,12,"_8n"],[227,15,225,15],[227,20,225,20,"_5n"],[227,23,225,23],[227,25,226,8],[227,32,226,15,"sqrt5mod8"],[227,41,226,24],[228,4,227,4],[229,4,228,4],[229,8,228,8,"P"],[229,9,228,9],[229,12,228,12,"_16n"],[229,16,228,16],[229,21,228,21,"_9n"],[229,24,228,24],[229,26,229,8],[229,33,229,15,"sqrt9mod16"],[229,43,229,25],[229,44,229,26,"P"],[229,45,229,27],[229,46,229,28],[230,4,230,4],[231,4,231,4],[231,11,231,11,"tonelliShanks"],[231,24,231,24],[231,25,231,25,"P"],[231,26,231,26],[231,27,231,27],[232,2,232,0],[233,2,233,0],[234,2,234,0],[234,6,234,6,"isNegativeLE"],[234,18,234,18],[234,21,234,21],[234,30,234,6,"isNegativeLE"],[234,42,234,18,"isNegativeLE"],[234,43,234,22,"num"],[234,46,234,25],[234,48,234,27,"modulo"],[234,54,234,33],[235,4,234,33],[235,11,234,38],[235,12,234,39,"mod"],[235,15,234,42],[235,16,234,43,"num"],[235,19,234,46],[235,21,234,48,"modulo"],[235,27,234,54],[235,28,234,55],[235,31,234,58,"_1n"],[235,34,234,61],[235,40,234,67,"_1n"],[235,43,234,70],[236,2,234,70],[237,2,235,0,"exports"],[237,9,235,7],[237,10,235,8,"isNegativeLE"],[237,22,235,20],[237,25,235,23,"isNegativeLE"],[237,37,235,35],[238,2,236,0],[239,2,237,0],[239,6,237,6,"FIELD_FIELDS"],[239,18,237,18],[239,21,237,21],[239,22,238,4],[239,30,238,12],[239,32,238,14],[239,41,238,23],[239,43,238,25],[239,48,238,30],[239,50,238,32],[239,55,238,37],[239,57,238,39],[239,62,238,44],[239,64,238,46],[239,70,238,52],[239,72,238,54],[239,77,238,59],[239,79,239,4],[239,84,239,9],[239,86,239,11],[239,91,239,16],[239,93,239,18],[239,98,239,23],[239,100,239,25],[239,105,239,30],[239,107,239,32],[239,112,239,37],[239,114,239,39],[239,119,239,44],[239,121,240,4],[239,127,240,10],[239,129,240,12],[239,135,240,18],[239,137,240,20],[239,143,240,26],[239,145,240,28],[239,151,240,34],[239,152,241,1],[240,2,242,0],[240,11,242,9,"validateField"],[240,24,242,22,"validateField"],[240,25,242,23,"field"],[240,30,242,28],[240,32,242,30],[241,4,243,4],[241,8,243,10,"initial"],[241,15,243,17],[241,18,243,20],[242,6,244,8,"ORDER"],[242,11,244,13],[242,13,244,15],[242,21,244,23],[243,6,245,8,"MASK"],[243,10,245,12],[243,12,245,14],[243,20,245,22],[244,6,246,8,"BYTES"],[244,11,246,13],[244,13,246,15],[244,21,246,23],[245,6,247,8,"BITS"],[245,10,247,12],[245,12,247,14],[246,4,248,4],[246,5,248,5],[247,4,249,4],[247,8,249,10,"opts"],[247,12,249,14],[247,15,249,17,"FIELD_FIELDS"],[247,27,249,29],[247,28,249,30,"reduce"],[247,34,249,36],[247,35,249,37],[247,45,249,38,"map"],[247,48,249,41],[247,50,249,43,"val"],[247,53,249,46],[247,55,249,51],[248,6,250,8,"map"],[248,9,250,11],[248,10,250,12,"val"],[248,13,250,15],[248,14,250,16],[248,17,250,19],[248,27,250,29],[249,6,251,8],[249,13,251,15,"map"],[249,16,251,18],[250,4,252,4],[250,5,252,5],[250,7,252,7,"initial"],[250,14,252,14],[250,15,252,15],[251,4,253,4],[251,5,253,5],[251,6,253,6],[251,8,253,8,"utils_ts_1"],[251,18,253,18],[251,19,253,19,"_validateObject"],[251,34,253,34],[251,36,253,36,"field"],[251,41,253,41],[251,43,253,43,"opts"],[251,47,253,47],[251,48,253,48],[252,4,254,4],[253,4,255,4],[254,4,256,4],[255,4,257,4],[255,11,257,11,"field"],[255,16,257,16],[256,2,258,0],[257,2,259,0],[258,2,260,0],[259,0,261,0],[260,0,262,0],[261,0,263,0],[262,2,264,0],[262,11,264,9,"FpPow"],[262,16,264,14,"FpPow"],[262,17,264,15,"Fp"],[262,19,264,17],[262,21,264,19,"num"],[262,24,264,22],[262,26,264,24,"power"],[262,31,264,29],[262,33,264,31],[263,4,265,4],[263,8,265,8,"power"],[263,13,265,13],[263,16,265,16,"_0n"],[263,19,265,19],[263,21,266,8],[263,27,266,14],[263,31,266,18,"Error"],[263,36,266,23],[263,37,266,24],[263,78,266,65],[263,79,266,66],[264,4,267,4],[264,8,267,8,"power"],[264,13,267,13],[264,18,267,18,"_0n"],[264,21,267,21],[264,23,268,8],[264,30,268,15,"Fp"],[264,32,268,17],[264,33,268,18,"ONE"],[264,36,268,21],[265,4,269,4],[265,8,269,8,"power"],[265,13,269,13],[265,18,269,18,"_1n"],[265,21,269,21],[265,23,270,8],[265,30,270,15,"num"],[265,33,270,18],[266,4,271,4],[266,8,271,8,"p"],[266,9,271,9],[266,12,271,12,"Fp"],[266,14,271,14],[266,15,271,15,"ONE"],[266,18,271,18],[267,4,272,4],[267,8,272,8,"d"],[267,9,272,9],[267,12,272,12,"num"],[267,15,272,15],[268,4,273,4],[268,11,273,11,"power"],[268,16,273,16],[268,19,273,19,"_0n"],[268,22,273,22],[268,24,273,24],[269,6,274,8],[269,10,274,12,"power"],[269,15,274,17],[269,18,274,20,"_1n"],[269,21,274,23],[269,23,275,12,"p"],[269,24,275,13],[269,27,275,16,"Fp"],[269,29,275,18],[269,30,275,19,"mul"],[269,33,275,22],[269,34,275,23,"p"],[269,35,275,24],[269,37,275,26,"d"],[269,38,275,27],[269,39,275,28],[270,6,276,8,"d"],[270,7,276,9],[270,10,276,12,"Fp"],[270,12,276,14],[270,13,276,15,"sqr"],[270,16,276,18],[270,17,276,19,"d"],[270,18,276,20],[270,19,276,21],[271,6,277,8,"power"],[271,11,277,13],[271,16,277,18,"_1n"],[271,19,277,21],[272,4,278,4],[273,4,279,4],[273,11,279,11,"p"],[273,12,279,12],[274,2,280,0],[275,2,281,0],[276,0,282,0],[277,0,283,0],[278,0,284,0],[279,0,285,0],[280,2,286,0],[280,11,286,9,"FpInvertBatch"],[280,24,286,22,"FpInvertBatch"],[280,25,286,23,"Fp"],[280,27,286,25],[280,29,286,27,"nums"],[280,33,286,31],[280,35,286,51],[281,4,286,51],[281,8,286,33,"passZero"],[281,16,286,41],[281,19,286,41,"arguments"],[281,28,286,41],[281,29,286,41,"length"],[281,35,286,41],[281,43,286,41,"arguments"],[281,52,286,41],[281,60,286,41,"undefined"],[281,69,286,41],[281,72,286,41,"arguments"],[281,81,286,41],[281,87,286,44],[281,92,286,49],[282,4,287,4],[282,8,287,10,"inverted"],[282,16,287,18],[282,19,287,21],[282,23,287,25,"Array"],[282,28,287,30],[282,29,287,31,"nums"],[282,33,287,35],[282,34,287,36,"length"],[282,40,287,42],[282,41,287,43],[282,42,287,44,"fill"],[282,46,287,48],[282,47,287,49,"passZero"],[282,55,287,57],[282,58,287,60,"Fp"],[282,60,287,62],[282,61,287,63,"ZERO"],[282,65,287,67],[282,68,287,70,"undefined"],[282,77,287,79],[282,78,287,80],[283,4,288,4],[284,4,289,4],[284,8,289,10,"multipliedAcc"],[284,21,289,23],[284,24,289,26,"nums"],[284,28,289,30],[284,29,289,31,"reduce"],[284,35,289,37],[284,36,289,38],[284,46,289,39,"acc"],[284,49,289,42],[284,51,289,44,"num"],[284,54,289,47],[284,56,289,49,"i"],[284,57,289,50],[284,59,289,55],[285,6,290,8],[285,10,290,12,"Fp"],[285,12,290,14],[285,13,290,15,"is0"],[285,16,290,18],[285,17,290,19,"num"],[285,20,290,22],[285,21,290,23],[285,23,291,12],[285,30,291,19,"acc"],[285,33,291,22],[286,6,292,8,"inverted"],[286,14,292,16],[286,15,292,17,"i"],[286,16,292,18],[286,17,292,19],[286,20,292,22,"acc"],[286,23,292,25],[287,6,293,8],[287,13,293,15,"Fp"],[287,15,293,17],[287,16,293,18,"mul"],[287,19,293,21],[287,20,293,22,"acc"],[287,23,293,25],[287,25,293,27,"num"],[287,28,293,30],[287,29,293,31],[288,4,294,4],[288,5,294,5],[288,7,294,7,"Fp"],[288,9,294,9],[288,10,294,10,"ONE"],[288,13,294,13],[288,14,294,14],[289,4,295,4],[290,4,296,4],[290,8,296,10,"invertedAcc"],[290,19,296,21],[290,22,296,24,"Fp"],[290,24,296,26],[290,25,296,27,"inv"],[290,28,296,30],[290,29,296,31,"multipliedAcc"],[290,42,296,44],[290,43,296,45],[291,4,297,4],[292,4,298,4,"nums"],[292,8,298,8],[292,9,298,9,"reduceRight"],[292,20,298,20],[292,21,298,21],[292,31,298,22,"acc"],[292,34,298,25],[292,36,298,27,"num"],[292,39,298,30],[292,41,298,32,"i"],[292,42,298,33],[292,44,298,38],[293,6,299,8],[293,10,299,12,"Fp"],[293,12,299,14],[293,13,299,15,"is0"],[293,16,299,18],[293,17,299,19,"num"],[293,20,299,22],[293,21,299,23],[293,23,300,12],[293,30,300,19,"acc"],[293,33,300,22],[294,6,301,8,"inverted"],[294,14,301,16],[294,15,301,17,"i"],[294,16,301,18],[294,17,301,19],[294,20,301,22,"Fp"],[294,22,301,24],[294,23,301,25,"mul"],[294,26,301,28],[294,27,301,29,"acc"],[294,30,301,32],[294,32,301,34,"inverted"],[294,40,301,42],[294,41,301,43,"i"],[294,42,301,44],[294,43,301,45],[294,44,301,46],[295,6,302,8],[295,13,302,15,"Fp"],[295,15,302,17],[295,16,302,18,"mul"],[295,19,302,21],[295,20,302,22,"acc"],[295,23,302,25],[295,25,302,27,"num"],[295,28,302,30],[295,29,302,31],[296,4,303,4],[296,5,303,5],[296,7,303,7,"invertedAcc"],[296,18,303,18],[296,19,303,19],[297,4,304,4],[297,11,304,11,"inverted"],[297,19,304,19],[298,2,305,0],[299,2,306,0],[300,2,307,0],[300,11,307,9,"FpDiv"],[300,16,307,14,"FpDiv"],[300,17,307,15,"Fp"],[300,19,307,17],[300,21,307,19,"lhs"],[300,24,307,22],[300,26,307,24,"rhs"],[300,29,307,27],[300,31,307,29],[301,4,308,4],[301,11,308,11,"Fp"],[301,13,308,13],[301,14,308,14,"mul"],[301,17,308,17],[301,18,308,18,"lhs"],[301,21,308,21],[301,23,308,23],[301,30,308,30,"rhs"],[301,33,308,33],[301,38,308,38],[301,46,308,46],[301,49,308,49,"invert"],[301,55,308,55],[301,56,308,56,"rhs"],[301,59,308,59],[301,61,308,61,"Fp"],[301,63,308,63],[301,64,308,64,"ORDER"],[301,69,308,69],[301,70,308,70],[301,73,308,73,"Fp"],[301,75,308,75],[301,76,308,76,"inv"],[301,79,308,79],[301,80,308,80,"rhs"],[301,83,308,83],[301,84,308,84],[301,85,308,85],[302,2,309,0],[303,2,310,0],[304,0,311,0],[305,0,312,0],[306,0,313,0],[307,0,314,0],[308,0,315,0],[309,0,316,0],[310,0,317,0],[311,0,318,0],[312,2,319,0],[312,11,319,9,"FpLegendre"],[312,21,319,19,"FpLegendre"],[312,22,319,20,"Fp"],[312,24,319,22],[312,26,319,24,"n"],[312,27,319,25],[312,29,319,27],[313,4,320,4],[314,4,321,4],[315,4,322,4],[315,8,322,10,"p1mod2"],[315,14,322,16],[315,17,322,19],[315,18,322,20,"Fp"],[315,20,322,22],[315,21,322,23,"ORDER"],[315,26,322,28],[315,29,322,31,"_1n"],[315,32,322,34],[315,36,322,38,"_2n"],[315,39,322,41],[316,4,323,4],[316,8,323,10,"powered"],[316,15,323,17],[316,18,323,20,"Fp"],[316,20,323,22],[316,21,323,23,"pow"],[316,24,323,26],[316,25,323,27,"n"],[316,26,323,28],[316,28,323,30,"p1mod2"],[316,34,323,36],[316,35,323,37],[317,4,324,4],[317,8,324,10,"yes"],[317,11,324,13],[317,14,324,16,"Fp"],[317,16,324,18],[317,17,324,19,"eql"],[317,20,324,22],[317,21,324,23,"powered"],[317,28,324,30],[317,30,324,32,"Fp"],[317,32,324,34],[317,33,324,35,"ONE"],[317,36,324,38],[317,37,324,39],[318,4,325,4],[318,8,325,10,"zero"],[318,12,325,14],[318,15,325,17,"Fp"],[318,17,325,19],[318,18,325,20,"eql"],[318,21,325,23],[318,22,325,24,"powered"],[318,29,325,31],[318,31,325,33,"Fp"],[318,33,325,35],[318,34,325,36,"ZERO"],[318,38,325,40],[318,39,325,41],[319,4,326,4],[319,8,326,10,"no"],[319,10,326,12],[319,13,326,15,"Fp"],[319,15,326,17],[319,16,326,18,"eql"],[319,19,326,21],[319,20,326,22,"powered"],[319,27,326,29],[319,29,326,31,"Fp"],[319,31,326,33],[319,32,326,34,"neg"],[319,35,326,37],[319,36,326,38,"Fp"],[319,38,326,40],[319,39,326,41,"ONE"],[319,42,326,44],[319,43,326,45],[319,44,326,46],[320,4,327,4],[320,8,327,8],[320,9,327,9,"yes"],[320,12,327,12],[320,16,327,16],[320,17,327,17,"zero"],[320,21,327,21],[320,25,327,25],[320,26,327,26,"no"],[320,28,327,28],[320,30,328,8],[320,36,328,14],[320,40,328,18,"Error"],[320,45,328,23],[320,46,328,24],[320,78,328,56],[320,79,328,57],[321,4,329,4],[321,11,329,11,"yes"],[321,14,329,14],[321,17,329,17],[321,18,329,18],[321,21,329,21,"zero"],[321,25,329,25],[321,28,329,28],[321,29,329,29],[321,32,329,32],[321,33,329,33],[321,34,329,34],[322,2,330,0],[323,2,331,0],[324,2,332,0],[324,11,332,9,"FpIsSquare"],[324,21,332,19,"FpIsSquare"],[324,22,332,20,"Fp"],[324,24,332,22],[324,26,332,24,"n"],[324,27,332,25],[324,29,332,27],[325,4,333,4],[325,8,333,10,"l"],[325,9,333,11],[325,12,333,14,"FpLegendre"],[325,22,333,24],[325,23,333,25,"Fp"],[325,25,333,27],[325,27,333,29,"n"],[325,28,333,30],[325,29,333,31],[326,4,334,4],[326,11,334,11,"l"],[326,12,334,12],[326,17,334,17],[326,18,334,18],[327,2,335,0],[328,2,336,0],[329,2,337,0],[329,11,337,9,"nLength"],[329,18,337,16,"nLength"],[329,19,337,17,"n"],[329,20,337,18],[329,22,337,20,"nBitLength"],[329,32,337,30],[329,34,337,32],[330,4,338,4],[331,4,339,4],[331,8,339,8,"nBitLength"],[331,18,339,18],[331,23,339,23,"undefined"],[331,32,339,32],[331,34,340,8],[331,35,340,9],[331,36,340,10],[331,38,340,12,"utils_ts_1"],[331,48,340,22],[331,49,340,23,"anumber"],[331,56,340,30],[331,58,340,32,"nBitLength"],[331,68,340,42],[331,69,340,43],[332,4,341,4],[332,8,341,10,"_nBitLength"],[332,19,341,21],[332,22,341,24,"nBitLength"],[332,32,341,34],[332,37,341,39,"undefined"],[332,46,341,48],[332,49,341,51,"nBitLength"],[332,59,341,61],[332,62,341,64,"n"],[332,63,341,65],[332,64,341,66,"toString"],[332,72,341,74],[332,73,341,75],[332,74,341,76],[332,75,341,77],[332,76,341,78,"length"],[332,82,341,84],[333,4,342,4],[333,8,342,10,"nByteLength"],[333,19,342,21],[333,22,342,24,"Math"],[333,26,342,28],[333,27,342,29,"ceil"],[333,31,342,33],[333,32,342,34,"_nBitLength"],[333,43,342,45],[333,46,342,48],[333,47,342,49],[333,48,342,50],[334,4,343,4],[334,11,343,11],[335,6,343,13,"nBitLength"],[335,16,343,23],[335,18,343,25,"_nBitLength"],[335,29,343,36],[336,6,343,38,"nByteLength"],[336,17,343,49],[336,19,343,38,"nByteLength"],[337,4,343,50],[337,5,343,51],[338,2,344,0],[339,2,345,0],[340,0,346,0],[341,0,347,0],[342,0,348,0],[343,0,349,0],[344,0,350,0],[345,0,351,0],[346,0,352,0],[347,0,353,0],[348,0,354,0],[349,0,355,0],[350,0,356,0],[351,0,357,0],[352,0,358,0],[353,0,359,0],[354,0,360,0],[355,0,361,0],[356,0,362,0],[357,0,363,0],[358,2,364,0],[358,11,364,9,"Field"],[358,16,364,14,"Field"],[358,17,364,15,"ORDER"],[358,22,364,20],[358,24,364,22,"bitLenOrOpts"],[358,36,364,34],[358,38,365,25],[359,4,365,25],[359,8,365,0,"isLE"],[359,12,365,4],[359,15,365,4,"arguments"],[359,24,365,4],[359,25,365,4,"length"],[359,31,365,4],[359,39,365,4,"arguments"],[359,48,365,4],[359,56,365,4,"undefined"],[359,65,365,4],[359,68,365,4,"arguments"],[359,77,365,4],[359,83,365,7],[359,88,365,12],[360,4,365,12],[360,8,365,14,"opts"],[360,12,365,18],[360,15,365,18,"arguments"],[360,24,365,18],[360,25,365,18,"length"],[360,31,365,18],[360,39,365,18,"arguments"],[360,48,365,18],[360,56,365,18,"undefined"],[360,65,365,18],[360,68,365,18,"arguments"],[360,77,365,18],[360,83,365,21],[360,84,365,22],[360,85,365,23],[361,4,366,4],[361,8,366,8,"ORDER"],[361,13,366,13],[361,17,366,17,"_0n"],[361,20,366,20],[361,22,367,8],[361,28,367,14],[361,32,367,18,"Error"],[361,37,367,23],[361,38,367,24],[361,79,367,65],[361,82,367,68,"ORDER"],[361,87,367,73],[361,88,367,74],[362,4,368,4],[362,8,368,8,"_nbitLength"],[362,19,368,19],[362,22,368,22,"undefined"],[362,31,368,31],[363,4,369,4],[363,8,369,8,"_sqrt"],[363,13,369,13],[363,16,369,16,"undefined"],[363,25,369,25],[364,4,370,4],[364,8,370,8,"modFromBytes"],[364,20,370,20],[364,23,370,23],[364,28,370,28],[365,4,371,4],[365,8,371,8,"allowedLengths"],[365,22,371,22],[365,25,371,25,"undefined"],[365,34,371,34],[366,4,372,4],[366,8,372,8],[366,15,372,15,"bitLenOrOpts"],[366,27,372,27],[366,32,372,32],[366,40,372,40],[366,44,372,44,"bitLenOrOpts"],[366,56,372,56],[366,60,372,60],[366,64,372,64],[366,66,372,66],[367,6,373,8],[367,10,373,12,"opts"],[367,14,373,16],[367,15,373,17,"sqrt"],[367,19,373,21],[367,23,373,25,"isLE"],[367,27,373,29],[367,29,374,12],[367,35,374,18],[367,39,374,22,"Error"],[367,44,374,27],[367,45,374,28],[367,83,374,66],[367,84,374,67],[368,6,375,8],[368,10,375,14,"_opts"],[368,15,375,19],[368,18,375,22,"bitLenOrOpts"],[368,30,375,34],[369,6,376,8],[369,10,376,12,"_opts"],[369,15,376,17],[369,16,376,18,"BITS"],[369,20,376,22],[369,22,377,12,"_nbitLength"],[369,33,377,23],[369,36,377,26,"_opts"],[369,41,377,31],[369,42,377,32,"BITS"],[369,46,377,36],[370,6,378,8],[370,10,378,12,"_opts"],[370,15,378,17],[370,16,378,18,"sqrt"],[370,20,378,22],[370,22,379,12,"_sqrt"],[370,27,379,17],[370,30,379,20,"_opts"],[370,35,379,25],[370,36,379,26,"sqrt"],[370,40,379,30],[371,6,380,8],[371,10,380,12],[371,17,380,19,"_opts"],[371,22,380,24],[371,23,380,25,"isLE"],[371,27,380,29],[371,32,380,34],[371,41,380,43],[371,43,381,12,"isLE"],[371,47,381,16],[371,50,381,19,"_opts"],[371,55,381,24],[371,56,381,25,"isLE"],[371,60,381,29],[372,6,382,8],[372,10,382,12],[372,17,382,19,"_opts"],[372,22,382,24],[372,23,382,25,"modFromBytes"],[372,35,382,37],[372,40,382,42],[372,49,382,51],[372,51,383,12,"modFromBytes"],[372,63,383,24],[372,66,383,27,"_opts"],[372,71,383,32],[372,72,383,33,"modFromBytes"],[372,84,383,45],[373,6,384,8,"allowedLengths"],[373,20,384,22],[373,23,384,25,"_opts"],[373,28,384,30],[373,29,384,31,"allowedLengths"],[373,43,384,45],[374,4,385,4],[374,5,385,5],[374,11,386,9],[375,6,387,8],[375,10,387,12],[375,17,387,19,"bitLenOrOpts"],[375,29,387,31],[375,34,387,36],[375,42,387,44],[375,44,388,12,"_nbitLength"],[375,55,388,23],[375,58,388,26,"bitLenOrOpts"],[375,70,388,38],[376,6,389,8],[376,10,389,12,"opts"],[376,14,389,16],[376,15,389,17,"sqrt"],[376,19,389,21],[376,21,390,12,"_sqrt"],[376,26,390,17],[376,29,390,20,"opts"],[376,33,390,24],[376,34,390,25,"sqrt"],[376,38,390,29],[377,4,391,4],[378,4,392,4],[378,8,392,4,"_nLength"],[378,16,392,4],[378,19,392,53,"nLength"],[378,26,392,60],[378,27,392,61,"ORDER"],[378,32,392,66],[378,34,392,68,"_nbitLength"],[378,45,392,79],[378,46,392,80],[379,6,392,24,"BITS"],[379,10,392,28],[379,13,392,28,"_nLength"],[379,21,392,28],[379,22,392,12,"nBitLength"],[379,32,392,22],[380,6,392,43,"BYTES"],[380,11,392,48],[380,14,392,48,"_nLength"],[380,22,392,48],[380,23,392,30,"nByteLength"],[380,34,392,41],[381,4,393,4],[381,8,393,8,"BYTES"],[381,13,393,13],[381,16,393,16],[381,20,393,20],[381,22,394,8],[381,28,394,14],[381,32,394,18,"Error"],[381,37,394,23],[381,38,394,24],[381,86,394,72],[381,87,394,73],[382,4,395,4],[382,8,395,8,"sqrtP"],[382,13,395,13],[382,14,395,14],[382,15,395,15],[383,4,396,4],[383,8,396,10,"f"],[383,9,396,11],[383,12,396,14,"Object"],[383,18,396,20],[383,19,396,21,"freeze"],[383,25,396,27],[383,26,396,28],[384,6,397,8,"ORDER"],[384,11,397,13],[384,13,397,8,"ORDER"],[384,18,397,13],[385,6,398,8,"isLE"],[385,10,398,12],[385,12,398,8,"isLE"],[385,16,398,12],[386,6,399,8,"BITS"],[386,10,399,12],[386,12,399,8,"BITS"],[386,16,399,12],[387,6,400,8,"BYTES"],[387,11,400,13],[387,13,400,8,"BYTES"],[387,18,400,13],[388,6,401,8,"MASK"],[388,10,401,12],[388,12,401,14],[388,13,401,15],[388,14,401,16],[388,16,401,18,"utils_ts_1"],[388,26,401,28],[388,27,401,29,"bitMask"],[388,34,401,36],[388,36,401,38,"BITS"],[388,40,401,42],[388,41,401,43],[389,6,402,8,"ZERO"],[389,10,402,12],[389,12,402,14,"_0n"],[389,15,402,17],[390,6,403,8,"ONE"],[390,9,403,11],[390,11,403,13,"_1n"],[390,14,403,16],[391,6,404,8,"allowedLengths"],[391,20,404,22],[391,22,404,24,"allowedLengths"],[391,36,404,38],[392,6,405,8,"create"],[392,12,405,14],[392,14,405,16],[392,23,405,8,"create"],[392,29,405,14,"create"],[392,30,405,17,"num"],[392,33,405,20],[393,8,405,20],[393,15,405,25,"mod"],[393,18,405,28],[393,19,405,29,"num"],[393,22,405,32],[393,24,405,34,"ORDER"],[393,29,405,39],[393,30,405,40],[394,6,405,40],[395,6,406,8,"isValid"],[395,13,406,15],[395,15,406,17],[395,24,406,8,"isValid"],[395,31,406,15,"isValid"],[395,32,406,18,"num"],[395,35,406,21],[395,37,406,26],[396,8,407,12],[396,12,407,16],[396,19,407,23,"num"],[396,22,407,26],[396,27,407,31],[396,35,407,39],[396,37,408,16],[396,43,408,22],[396,47,408,26,"Error"],[396,52,408,31],[396,53,408,32],[396,99,408,78],[396,102,408,81],[396,109,408,88,"num"],[396,112,408,91],[396,113,408,92],[397,8,409,12],[397,15,409,19,"_0n"],[397,18,409,22],[397,22,409,26,"num"],[397,25,409,29],[397,29,409,33,"num"],[397,32,409,36],[397,35,409,39,"ORDER"],[397,40,409,44],[397,41,409,45],[397,42,409,46],[398,6,410,8],[398,7,410,9],[399,6,411,8,"is0"],[399,9,411,11],[399,11,411,13],[399,20,411,8,"is0"],[399,23,411,11,"is0"],[399,24,411,14,"num"],[399,27,411,17],[400,8,411,17],[400,15,411,22,"num"],[400,18,411,25],[400,23,411,30,"_0n"],[400,26,411,33],[401,6,411,33],[402,6,412,8],[403,6,413,8,"isValidNot0"],[403,17,413,19],[403,19,413,21],[403,28,413,8,"isValidNot0"],[403,39,413,19,"isValidNot0"],[403,40,413,22,"num"],[403,43,413,25],[404,8,413,25],[404,15,413,30],[404,16,413,31,"f"],[404,17,413,32],[404,18,413,33,"is0"],[404,21,413,36],[404,22,413,37,"num"],[404,25,413,40],[404,26,413,41],[404,30,413,45,"f"],[404,31,413,46],[404,32,413,47,"isValid"],[404,39,413,54],[404,40,413,55,"num"],[404,43,413,58],[404,44,413,59],[405,6,413,59],[406,6,414,8,"isOdd"],[406,11,414,13],[406,13,414,15],[406,22,414,8,"isOdd"],[406,27,414,13,"isOdd"],[406,28,414,16,"num"],[406,31,414,19],[407,8,414,19],[407,15,414,24],[407,16,414,25,"num"],[407,19,414,28],[407,22,414,31,"_1n"],[407,25,414,34],[407,31,414,40,"_1n"],[407,34,414,43],[408,6,414,43],[409,6,415,8,"neg"],[409,9,415,11],[409,11,415,13],[409,20,415,8,"neg"],[409,23,415,11,"neg"],[409,24,415,14,"num"],[409,27,415,17],[410,8,415,17],[410,15,415,22,"mod"],[410,18,415,25],[410,19,415,26],[410,20,415,27,"num"],[410,23,415,30],[410,25,415,32,"ORDER"],[410,30,415,37],[410,31,415,38],[411,6,415,38],[412,6,416,8,"eql"],[412,9,416,11],[412,11,416,13],[412,20,416,8,"eql"],[412,23,416,11,"eql"],[412,24,416,14,"lhs"],[412,27,416,17],[412,29,416,19,"rhs"],[412,32,416,22],[413,8,416,22],[413,15,416,27,"lhs"],[413,18,416,30],[413,23,416,35,"rhs"],[413,26,416,38],[414,6,416,38],[415,6,417,8,"sqr"],[415,9,417,11],[415,11,417,13],[415,20,417,8,"sqr"],[415,23,417,11,"sqr"],[415,24,417,14,"num"],[415,27,417,17],[416,8,417,17],[416,15,417,22,"mod"],[416,18,417,25],[416,19,417,26,"num"],[416,22,417,29],[416,25,417,32,"num"],[416,28,417,35],[416,30,417,37,"ORDER"],[416,35,417,42],[416,36,417,43],[417,6,417,43],[418,6,418,8,"add"],[418,9,418,11],[418,11,418,13],[418,20,418,8,"add"],[418,23,418,11,"add"],[418,24,418,14,"lhs"],[418,27,418,17],[418,29,418,19,"rhs"],[418,32,418,22],[419,8,418,22],[419,15,418,27,"mod"],[419,18,418,30],[419,19,418,31,"lhs"],[419,22,418,34],[419,25,418,37,"rhs"],[419,28,418,40],[419,30,418,42,"ORDER"],[419,35,418,47],[419,36,418,48],[420,6,418,48],[421,6,419,8,"sub"],[421,9,419,11],[421,11,419,13],[421,20,419,8,"sub"],[421,23,419,11,"sub"],[421,24,419,14,"lhs"],[421,27,419,17],[421,29,419,19,"rhs"],[421,32,419,22],[422,8,419,22],[422,15,419,27,"mod"],[422,18,419,30],[422,19,419,31,"lhs"],[422,22,419,34],[422,25,419,37,"rhs"],[422,28,419,40],[422,30,419,42,"ORDER"],[422,35,419,47],[422,36,419,48],[423,6,419,48],[424,6,420,8,"mul"],[424,9,420,11],[424,11,420,13],[424,20,420,8,"mul"],[424,23,420,11,"mul"],[424,24,420,14,"lhs"],[424,27,420,17],[424,29,420,19,"rhs"],[424,32,420,22],[425,8,420,22],[425,15,420,27,"mod"],[425,18,420,30],[425,19,420,31,"lhs"],[425,22,420,34],[425,25,420,37,"rhs"],[425,28,420,40],[425,30,420,42,"ORDER"],[425,35,420,47],[425,36,420,48],[426,6,420,48],[427,6,421,8,"pow"],[427,9,421,11],[427,11,421,13],[427,20,421,8,"pow"],[427,23,421,11,"pow"],[427,24,421,14,"num"],[427,27,421,17],[427,29,421,19,"power"],[427,34,421,24],[428,8,421,24],[428,15,421,29,"FpPow"],[428,20,421,34],[428,21,421,35,"f"],[428,22,421,36],[428,24,421,38,"num"],[428,27,421,41],[428,29,421,43,"power"],[428,34,421,48],[428,35,421,49],[429,6,421,49],[430,6,422,8,"div"],[430,9,422,11],[430,11,422,13],[430,20,422,8,"div"],[430,23,422,11,"div"],[430,24,422,14,"lhs"],[430,27,422,17],[430,29,422,19,"rhs"],[430,32,422,22],[431,8,422,22],[431,15,422,27,"mod"],[431,18,422,30],[431,19,422,31,"lhs"],[431,22,422,34],[431,25,422,37,"invert"],[431,31,422,43],[431,32,422,44,"rhs"],[431,35,422,47],[431,37,422,49,"ORDER"],[431,42,422,54],[431,43,422,55],[431,45,422,57,"ORDER"],[431,50,422,62],[431,51,422,63],[432,6,422,63],[433,6,423,8],[434,6,424,8,"sqrN"],[434,10,424,12],[434,12,424,14],[434,21,424,8,"sqrN"],[434,25,424,12,"sqrN"],[434,26,424,15,"num"],[434,29,424,18],[435,8,424,18],[435,15,424,23,"num"],[435,18,424,26],[435,21,424,29,"num"],[435,24,424,32],[436,6,424,32],[437,6,425,8,"addN"],[437,10,425,12],[437,12,425,14],[437,21,425,8,"addN"],[437,25,425,12,"addN"],[437,26,425,15,"lhs"],[437,29,425,18],[437,31,425,20,"rhs"],[437,34,425,23],[438,8,425,23],[438,15,425,28,"lhs"],[438,18,425,31],[438,21,425,34,"rhs"],[438,24,425,37],[439,6,425,37],[440,6,426,8,"subN"],[440,10,426,12],[440,12,426,14],[440,21,426,8,"subN"],[440,25,426,12,"subN"],[440,26,426,15,"lhs"],[440,29,426,18],[440,31,426,20,"rhs"],[440,34,426,23],[441,8,426,23],[441,15,426,28,"lhs"],[441,18,426,31],[441,21,426,34,"rhs"],[441,24,426,37],[442,6,426,37],[443,6,427,8,"mulN"],[443,10,427,12],[443,12,427,14],[443,21,427,8,"mulN"],[443,25,427,12,"mulN"],[443,26,427,15,"lhs"],[443,29,427,18],[443,31,427,20,"rhs"],[443,34,427,23],[444,8,427,23],[444,15,427,28,"lhs"],[444,18,427,31],[444,21,427,34,"rhs"],[444,24,427,37],[445,6,427,37],[446,6,428,8,"inv"],[446,9,428,11],[446,11,428,13],[446,20,428,8,"inv"],[446,23,428,11,"inv"],[446,24,428,14,"num"],[446,27,428,17],[447,8,428,17],[447,15,428,22,"invert"],[447,21,428,28],[447,22,428,29,"num"],[447,25,428,32],[447,27,428,34,"ORDER"],[447,32,428,39],[447,33,428,40],[448,6,428,40],[449,6,429,8,"sqrt"],[449,10,429,12],[449,12,429,14,"_sqrt"],[449,17,429,19],[449,21,430,13],[449,31,430,14,"n"],[449,32,430,15],[449,34,430,20],[450,8,431,16],[450,12,431,20],[450,13,431,21,"sqrtP"],[450,18,431,26],[450,20,432,20,"sqrtP"],[450,25,432,25],[450,28,432,28,"FpSqrt"],[450,34,432,34],[450,35,432,35,"ORDER"],[450,40,432,40],[450,41,432,41],[451,8,433,16],[451,15,433,23,"sqrtP"],[451,20,433,28],[451,21,433,29,"f"],[451,22,433,30],[451,24,433,32,"n"],[451,25,433,33],[451,26,433,34],[452,6,434,12],[452,7,434,14],[453,6,435,8,"toBytes"],[453,13,435,15],[453,15,435,17],[453,24,435,8,"toBytes"],[453,31,435,15,"toBytes"],[453,32,435,18,"num"],[453,35,435,21],[454,8,435,21],[454,15,435,27,"isLE"],[454,19,435,31],[454,22,435,34],[454,23,435,35],[454,24,435,36],[454,26,435,38,"utils_ts_1"],[454,36,435,48],[454,37,435,49,"numberToBytesLE"],[454,52,435,64],[454,54,435,66,"num"],[454,57,435,69],[454,59,435,71,"BYTES"],[454,64,435,76],[454,65,435,77],[454,68,435,80],[454,69,435,81],[454,70,435,82],[454,72,435,84,"utils_ts_1"],[454,82,435,94],[454,83,435,95,"numberToBytesBE"],[454,98,435,110],[454,100,435,112,"num"],[454,103,435,115],[454,105,435,117,"BYTES"],[454,110,435,122],[454,111,435,123],[455,6,435,123],[455,7,435,124],[456,6,436,8,"fromBytes"],[456,15,436,17],[456,17,436,19],[456,26,436,8,"fromBytes"],[456,35,436,17,"fromBytes"],[456,36,436,20,"bytes"],[456,41,436,25],[456,43,436,53],[457,8,436,53],[457,12,436,27,"skipValidation"],[457,26,436,41],[457,29,436,41,"arguments"],[457,38,436,41],[457,39,436,41,"length"],[457,45,436,41],[457,53,436,41,"arguments"],[457,62,436,41],[457,70,436,41,"undefined"],[457,79,436,41],[457,82,436,41,"arguments"],[457,91,436,41],[457,97,436,44],[457,101,436,48],[458,8,437,12],[458,12,437,16,"allowedLengths"],[458,26,437,30],[458,28,437,32],[459,10,438,16],[459,14,438,20],[459,15,438,21,"allowedLengths"],[459,29,438,35],[459,30,438,36,"includes"],[459,38,438,44],[459,39,438,45,"bytes"],[459,44,438,50],[459,45,438,51,"length"],[459,51,438,57],[459,52,438,58],[459,56,438,62,"bytes"],[459,61,438,67],[459,62,438,68,"length"],[459,68,438,74],[459,71,438,77,"BYTES"],[459,76,438,82],[459,78,438,84],[460,12,439,20],[460,18,439,26],[460,22,439,30,"Error"],[460,27,439,35],[460,28,439,36],[460,56,439,64],[460,59,439,67,"allowedLengths"],[460,73,439,81],[460,76,439,84],[460,90,439,98],[460,93,439,101,"bytes"],[460,98,439,106],[460,99,439,107,"length"],[460,105,439,113],[460,106,439,114],[461,10,440,16],[462,10,441,16],[462,14,441,22,"padded"],[462,20,441,28],[462,23,441,31],[462,27,441,35,"Uint8Array"],[462,37,441,45],[462,38,441,46,"BYTES"],[462,43,441,51],[462,44,441,52],[463,10,442,16],[464,10,443,16,"padded"],[464,16,443,22],[464,17,443,23,"set"],[464,20,443,26],[464,21,443,27,"bytes"],[464,26,443,32],[464,28,443,34,"isLE"],[464,32,443,38],[464,35,443,41],[464,36,443,42],[464,39,443,45,"padded"],[464,45,443,51],[464,46,443,52,"length"],[464,52,443,58],[464,55,443,61,"bytes"],[464,60,443,66],[464,61,443,67,"length"],[464,67,443,73],[464,68,443,74],[465,10,444,16,"bytes"],[465,15,444,21],[465,18,444,24,"padded"],[465,24,444,30],[466,8,445,12],[467,8,446,12],[467,12,446,16,"bytes"],[467,17,446,21],[467,18,446,22,"length"],[467,24,446,28],[467,29,446,33,"BYTES"],[467,34,446,38],[467,36,447,16],[467,42,447,22],[467,46,447,26,"Error"],[467,51,447,31],[467,52,447,32],[467,80,447,60],[467,83,447,63,"BYTES"],[467,88,447,68],[467,91,447,71],[467,105,447,85],[467,108,447,88,"bytes"],[467,113,447,93],[467,114,447,94,"length"],[467,120,447,100],[467,121,447,101],[468,8,448,12],[468,12,448,16,"scalar"],[468,18,448,22],[468,21,448,25,"isLE"],[468,25,448,29],[468,28,448,32],[468,29,448,33],[468,30,448,34],[468,32,448,36,"utils_ts_1"],[468,42,448,46],[468,43,448,47,"bytesToNumberLE"],[468,58,448,62],[468,60,448,64,"bytes"],[468,65,448,69],[468,66,448,70],[468,69,448,73],[468,70,448,74],[468,71,448,75],[468,73,448,77,"utils_ts_1"],[468,83,448,87],[468,84,448,88,"bytesToNumberBE"],[468,99,448,103],[468,101,448,105,"bytes"],[468,106,448,110],[468,107,448,111],[469,8,449,12],[469,12,449,16,"modFromBytes"],[469,24,449,28],[469,26,450,16,"scalar"],[469,32,450,22],[469,35,450,25,"mod"],[469,38,450,28],[469,39,450,29,"scalar"],[469,45,450,35],[469,47,450,37,"ORDER"],[469,52,450,42],[469,53,450,43],[470,8,451,12],[470,12,451,16],[470,13,451,17,"skipValidation"],[470,27,451,31],[470,29,452,16],[470,33,452,20],[470,34,452,21,"f"],[470,35,452,22],[470,36,452,23,"isValid"],[470,43,452,30],[470,44,452,31,"scalar"],[470,50,452,37],[470,51,452,38],[470,53,453,20],[470,59,453,26],[470,63,453,30,"Error"],[470,68,453,35],[470,69,453,36],[470,119,453,86],[470,120,453,87],[471,8,454,12],[472,8,455,12],[473,8,456,12],[473,15,456,19,"scalar"],[473,21,456,25],[474,6,457,8],[474,7,457,9],[475,6,458,8],[476,6,459,8,"invertBatch"],[476,17,459,19],[476,19,459,21],[476,28,459,8,"invertBatch"],[476,39,459,19,"invertBatch"],[476,40,459,22,"lst"],[476,43,459,25],[477,8,459,25],[477,15,459,30,"FpInvertBatch"],[477,28,459,43],[477,29,459,44,"f"],[477,30,459,45],[477,32,459,47,"lst"],[477,35,459,50],[477,36,459,51],[478,6,459,51],[479,6,460,8],[480,6,461,8],[481,6,462,8,"cmov"],[481,10,462,12],[481,12,462,14],[481,21,462,8,"cmov"],[481,25,462,12,"cmov"],[481,26,462,15,"a"],[481,27,462,16],[481,29,462,18,"b"],[481,30,462,19],[481,32,462,21,"c"],[481,33,462,22],[482,8,462,22],[482,15,462,28,"c"],[482,16,462,29],[482,19,462,32,"b"],[482,20,462,33],[482,23,462,36,"a"],[482,24,462,37],[483,6,462,37],[484,4,463,4],[484,5,463,5],[484,6,463,6],[485,4,464,4],[485,11,464,11,"Object"],[485,17,464,17],[485,18,464,18,"freeze"],[485,24,464,24],[485,25,464,25,"f"],[485,26,464,26],[485,27,464,27],[486,2,465,0],[487,2,466,0],[488,2,467,0],[489,2,468,0],[490,2,469,0],[491,2,470,0],[492,2,471,0],[493,2,472,0],[494,2,473,0],[495,2,474,0],[496,2,475,0],[497,2,476,0],[498,2,477,0],[499,2,478,0],[500,2,479,0],[500,11,479,9,"FpSqrtOdd"],[500,20,479,18,"FpSqrtOdd"],[500,21,479,19,"Fp"],[500,23,479,21],[500,25,479,23,"elm"],[500,28,479,26],[500,30,479,28],[501,4,480,4],[501,8,480,8],[501,9,480,9,"Fp"],[501,11,480,11],[501,12,480,12,"isOdd"],[501,17,480,17],[501,19,481,8],[501,25,481,14],[501,29,481,18,"Error"],[501,34,481,23],[501,35,481,24],[501,61,481,50],[501,62,481,51],[502,4,482,4],[502,8,482,10,"root"],[502,12,482,14],[502,15,482,17,"Fp"],[502,17,482,19],[502,18,482,20,"sqrt"],[502,22,482,24],[502,23,482,25,"elm"],[502,26,482,28],[502,27,482,29],[503,4,483,4],[503,11,483,11,"Fp"],[503,13,483,13],[503,14,483,14,"isOdd"],[503,19,483,19],[503,20,483,20,"root"],[503,24,483,24],[503,25,483,25],[503,28,483,28,"root"],[503,32,483,32],[503,35,483,35,"Fp"],[503,37,483,37],[503,38,483,38,"neg"],[503,41,483,41],[503,42,483,42,"root"],[503,46,483,46],[503,47,483,47],[504,2,484,0],[505,2,485,0],[505,11,485,9,"FpSqrtEven"],[505,21,485,19,"FpSqrtEven"],[505,22,485,20,"Fp"],[505,24,485,22],[505,26,485,24,"elm"],[505,29,485,27],[505,31,485,29],[506,4,486,4],[506,8,486,8],[506,9,486,9,"Fp"],[506,11,486,11],[506,12,486,12,"isOdd"],[506,17,486,17],[506,19,487,8],[506,25,487,14],[506,29,487,18,"Error"],[506,34,487,23],[506,35,487,24],[506,61,487,50],[506,62,487,51],[507,4,488,4],[507,8,488,10,"root"],[507,12,488,14],[507,15,488,17,"Fp"],[507,17,488,19],[507,18,488,20,"sqrt"],[507,22,488,24],[507,23,488,25,"elm"],[507,26,488,28],[507,27,488,29],[508,4,489,4],[508,11,489,11,"Fp"],[508,13,489,13],[508,14,489,14,"isOdd"],[508,19,489,19],[508,20,489,20,"root"],[508,24,489,24],[508,25,489,25],[508,28,489,28,"Fp"],[508,30,489,30],[508,31,489,31,"neg"],[508,34,489,34],[508,35,489,35,"root"],[508,39,489,39],[508,40,489,40],[508,43,489,43,"root"],[508,47,489,47],[509,2,490,0],[510,2,491,0],[511,0,492,0],[512,0,493,0],[513,0,494,0],[514,0,495,0],[515,0,496,0],[516,2,497,0],[516,11,497,9,"hashToPrivateScalar"],[516,30,497,28,"hashToPrivateScalar"],[516,31,497,29,"hash"],[516,35,497,33],[516,37,497,35,"groupOrder"],[516,47,497,45],[516,49,497,61],[517,4,497,61],[517,8,497,47,"isLE"],[517,12,497,51],[517,15,497,51,"arguments"],[517,24,497,51],[517,25,497,51,"length"],[517,31,497,51],[517,39,497,51,"arguments"],[517,48,497,51],[517,56,497,51,"undefined"],[517,65,497,51],[517,68,497,51,"arguments"],[517,77,497,51],[517,83,497,54],[517,88,497,59],[518,4,498,4,"hash"],[518,8,498,8],[518,11,498,11],[518,12,498,12],[518,13,498,13],[518,15,498,15,"utils_ts_1"],[518,25,498,25],[518,26,498,26,"ensureBytes"],[518,37,498,37],[518,39,498,39],[518,52,498,52],[518,54,498,54,"hash"],[518,58,498,58],[518,59,498,59],[519,4,499,4],[519,8,499,10,"hashLen"],[519,15,499,17],[519,18,499,20,"hash"],[519,22,499,24],[519,23,499,25,"length"],[519,29,499,31],[520,4,500,4],[520,8,500,10,"minLen"],[520,14,500,16],[520,17,500,19,"nLength"],[520,24,500,26],[520,25,500,27,"groupOrder"],[520,35,500,37],[520,36,500,38],[520,37,500,39,"nByteLength"],[520,48,500,50],[520,51,500,53],[520,52,500,54],[521,4,501,4],[521,8,501,8,"minLen"],[521,14,501,14],[521,17,501,17],[521,19,501,19],[521,23,501,23,"hashLen"],[521,30,501,30],[521,33,501,33,"minLen"],[521,39,501,39],[521,43,501,43,"hashLen"],[521,50,501,50],[521,53,501,53],[521,57,501,57],[521,59,502,8],[521,65,502,14],[521,69,502,18,"Error"],[521,74,502,23],[521,75,502,24],[521,107,502,56],[521,110,502,59,"minLen"],[521,116,502,65],[521,119,502,68],[521,147,502,96],[521,150,502,99,"hashLen"],[521,157,502,106],[521,158,502,107],[522,4,503,4],[522,8,503,10,"num"],[522,11,503,13],[522,14,503,16,"isLE"],[522,18,503,20],[522,21,503,23],[522,22,503,24],[522,23,503,25],[522,25,503,27,"utils_ts_1"],[522,35,503,37],[522,36,503,38,"bytesToNumberLE"],[522,51,503,53],[522,53,503,55,"hash"],[522,57,503,59],[522,58,503,60],[522,61,503,63],[522,62,503,64],[522,63,503,65],[522,65,503,67,"utils_ts_1"],[522,75,503,77],[522,76,503,78,"bytesToNumberBE"],[522,91,503,93],[522,93,503,95,"hash"],[522,97,503,99],[522,98,503,100],[523,4,504,4],[523,11,504,11,"mod"],[523,14,504,14],[523,15,504,15,"num"],[523,18,504,18],[523,20,504,20,"groupOrder"],[523,30,504,30],[523,33,504,33,"_1n"],[523,36,504,36],[523,37,504,37],[523,40,504,40,"_1n"],[523,43,504,43],[524,2,505,0],[525,2,506,0],[526,0,507,0],[527,0,508,0],[528,0,509,0],[529,0,510,0],[530,0,511,0],[531,2,512,0],[531,11,512,9,"getFieldBytesLength"],[531,30,512,28,"getFieldBytesLength"],[531,31,512,29,"fieldOrder"],[531,41,512,39],[531,43,512,41],[532,4,513,4],[532,8,513,8],[532,15,513,15,"fieldOrder"],[532,25,513,25],[532,30,513,30],[532,38,513,38],[532,40,514,8],[532,46,514,14],[532,50,514,18,"Error"],[532,55,514,23],[532,56,514,24],[532,84,514,52],[532,85,514,53],[533,4,515,4],[533,8,515,10,"bitLength"],[533,17,515,19],[533,20,515,22,"fieldOrder"],[533,30,515,32],[533,31,515,33,"toString"],[533,39,515,41],[533,40,515,42],[533,41,515,43],[533,42,515,44],[533,43,515,45,"length"],[533,49,515,51],[534,4,516,4],[534,11,516,11,"Math"],[534,15,516,15],[534,16,516,16,"ceil"],[534,20,516,20],[534,21,516,21,"bitLength"],[534,30,516,30],[534,33,516,33],[534,34,516,34],[534,35,516,35],[535,2,517,0],[536,2,518,0],[537,0,519,0],[538,0,520,0],[539,0,521,0],[540,0,522,0],[541,0,523,0],[542,0,524,0],[543,2,525,0],[543,11,525,9,"getMinHashLength"],[543,27,525,25,"getMinHashLength"],[543,28,525,26,"fieldOrder"],[543,38,525,36],[543,40,525,38],[544,4,526,4],[544,8,526,10,"length"],[544,14,526,16],[544,17,526,19,"getFieldBytesLength"],[544,36,526,38],[544,37,526,39,"fieldOrder"],[544,47,526,49],[544,48,526,50],[545,4,527,4],[545,11,527,11,"length"],[545,17,527,17],[545,20,527,20,"Math"],[545,24,527,24],[545,25,527,25,"ceil"],[545,29,527,29],[545,30,527,30,"length"],[545,36,527,36],[545,39,527,39],[545,40,527,40],[545,41,527,41],[546,2,528,0],[547,2,529,0],[548,0,530,0],[549,0,531,0],[550,0,532,0],[551,0,533,0],[552,0,534,0],[553,0,535,0],[554,0,536,0],[555,0,537,0],[556,0,538,0],[557,0,539,0],[558,0,540,0],[559,0,541,0],[560,2,542,0],[560,11,542,9,"mapHashToField"],[560,25,542,23,"mapHashToField"],[560,26,542,24,"key"],[560,29,542,27],[560,31,542,29,"fieldOrder"],[560,41,542,39],[560,43,542,55],[561,4,542,55],[561,8,542,41,"isLE"],[561,12,542,45],[561,15,542,45,"arguments"],[561,24,542,45],[561,25,542,45,"length"],[561,31,542,45],[561,39,542,45,"arguments"],[561,48,542,45],[561,56,542,45,"undefined"],[561,65,542,45],[561,68,542,45,"arguments"],[561,77,542,45],[561,83,542,48],[561,88,542,53],[562,4,543,4],[562,8,543,10,"len"],[562,11,543,13],[562,14,543,16,"key"],[562,17,543,19],[562,18,543,20,"length"],[562,24,543,26],[563,4,544,4],[563,8,544,10,"fieldLen"],[563,16,544,18],[563,19,544,21,"getFieldBytesLength"],[563,38,544,40],[563,39,544,41,"fieldOrder"],[563,49,544,51],[563,50,544,52],[564,4,545,4],[564,8,545,10,"minLen"],[564,14,545,16],[564,17,545,19,"getMinHashLength"],[564,33,545,35],[564,34,545,36,"fieldOrder"],[564,44,545,46],[564,45,545,47],[565,4,546,4],[566,4,547,4],[566,8,547,8,"len"],[566,11,547,11],[566,14,547,14],[566,16,547,16],[566,20,547,20,"len"],[566,23,547,23],[566,26,547,26,"minLen"],[566,32,547,32],[566,36,547,36,"len"],[566,39,547,39],[566,42,547,42],[566,46,547,46],[566,48,548,8],[566,54,548,14],[566,58,548,18,"Error"],[566,63,548,23],[566,64,548,24],[566,75,548,35],[566,78,548,38,"minLen"],[566,84,548,44],[566,87,548,47],[566,115,548,75],[566,118,548,78,"len"],[566,121,548,81],[566,122,548,82],[567,4,549,4],[567,8,549,10,"num"],[567,11,549,13],[567,14,549,16,"isLE"],[567,18,549,20],[567,21,549,23],[567,22,549,24],[567,23,549,25],[567,25,549,27,"utils_ts_1"],[567,35,549,37],[567,36,549,38,"bytesToNumberLE"],[567,51,549,53],[567,53,549,55,"key"],[567,56,549,58],[567,57,549,59],[567,60,549,62],[567,61,549,63],[567,62,549,64],[567,64,549,66,"utils_ts_1"],[567,74,549,76],[567,75,549,77,"bytesToNumberBE"],[567,90,549,92],[567,92,549,94,"key"],[567,95,549,97],[567,96,549,98],[568,4,550,4],[569,4,551,4],[569,8,551,10,"reduced"],[569,15,551,17],[569,18,551,20,"mod"],[569,21,551,23],[569,22,551,24,"num"],[569,25,551,27],[569,27,551,29,"fieldOrder"],[569,37,551,39],[569,40,551,42,"_1n"],[569,43,551,45],[569,44,551,46],[569,47,551,49,"_1n"],[569,50,551,52],[570,4,552,4],[570,11,552,11,"isLE"],[570,15,552,15],[570,18,552,18],[570,19,552,19],[570,20,552,20],[570,22,552,22,"utils_ts_1"],[570,32,552,32],[570,33,552,33,"numberToBytesLE"],[570,48,552,48],[570,50,552,50,"reduced"],[570,57,552,57],[570,59,552,59,"fieldLen"],[570,67,552,67],[570,68,552,68],[570,71,552,71],[570,72,552,72],[570,73,552,73],[570,75,552,75,"utils_ts_1"],[570,85,552,85],[570,86,552,86,"numberToBytesBE"],[570,101,552,101],[570,103,552,103,"reduced"],[570,110,552,110],[570,112,552,112,"fieldLen"],[570,120,552,120],[570,121,552,121],[571,2,553,0],[572,0,553,1],[572,3]],"functionMap":{"names":["<global>","mod","pow","pow2","invert","assertIsSquare","sqrt3mod4","sqrt5mod8","sqrt9mod16","<anonymous>","tonelliShanks","tonelliSlow","FpSqrt","isNegativeLE","validateField","FIELD_FIELDS.reduce$argument_0","FpPow","FpInvertBatch","nums.reduce$argument_0","nums.reduceRight$argument_0","FpDiv","FpLegendre","FpIsSquare","nLength","Field","f.create","f.isValid","f.is0","f.isValidNot0","f.isOdd","f.neg","f.eql","f.sqr","f.add","f.sub","f.mul","f.pow","f.div","f.sqrN","f.addN","f.subN","f.mulN","f.inv","f.toBytes","f.fromBytes","f.invertBatch","f.cmov","FpSqrtOdd","FpSqrtEven","hashToPrivateScalar","getFieldBytesLength","getMinHashLength","mapHashToField"],"mappings":"AAA;ACsC;CDG;AEO;CFE;AGE;CHO;AIK;CJuB;AKC;CLG;AMK;CNK;AOC;CPS;AQG;WCO;KDa;CRC;AUQ;WC4B;KDmC;CVC;AYY;CZY;qBaE,iDb;AcQ;qCCO;KDG;CdM;AgBM;ChBgB;AiBM;sCCG;KDK;qBEI;KFK;CjBE;AoBE;CpBE;AqBU;CrBW;AsBE;CtBG;AuBE;CvBO;AwBoB;gBCyC,wBD;iBEC;SFI;aGC,oBH;qBIE,sCJ;eKC,4BL;aMC,yBN;aOC,yBP;aQC,8BR;aSC,mCT;aUC,mCV;aWC,mCX;aYC,oCZ;aaC,kDb;ccE,kBd;ceC,uBf;cgBC,uBhB;ciBC,uBjB;akBC,2BlB;afE;aeI;iBmBC,2GnB;mBoBC;SpBqB;qBqBE,8BrB;csBG,wBtB;CxBG;A+Cc;C/CK;AgDC;ChDK;AiDO;CjDQ;AkDO;ClDK;AmDQ;CnDG;AoDc;CpDW"},"hasCjsExports":true},"type":"js/module"}]} |