mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 07:41:01 +00:00
1 line
81 KiB
Plaintext
1 line
81 KiB
Plaintext
{"dependencies":[{"name":"../utils.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":8,"column":0,"index":290},"end":{"line":8,"column":146,"index":436}}],"key":"dGswK136diHRCgUa8xpQUn/UMbc=","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.mod = mod;\n exports.pow = pow;\n exports.pow2 = pow2;\n exports.invert = invert;\n exports.tonelliShanks = tonelliShanks;\n exports.FpSqrt = FpSqrt;\n Object.defineProperty(exports, \"isNegativeLE\", {\n enumerable: true,\n get: function () {\n return isNegativeLE;\n }\n });\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 var _utilsJs = require(_dependencyMap[0], \"../utils.js\");\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\n // prettier-ignore\n const _0n = BigInt(0),\n _1n = BigInt(1),\n _2n = /* @__PURE__ */BigInt(2),\n _3n = /* @__PURE__ */BigInt(3);\n // prettier-ignore\n const _4n = /* @__PURE__ */BigInt(4),\n _5n = /* @__PURE__ */BigInt(5),\n _7n = /* @__PURE__ */BigInt(7);\n // prettier-ignore\n const _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 const 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 let 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 let a = mod(number, modulo);\n let b = modulo;\n // prettier-ignore\n let 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 const q = b / a;\n const r = b % a;\n const m = x - u * q;\n const n = y - v * q;\n // prettier-ignore\n b = a, a = r, x = u, y = v, u = m, v = n;\n }\n const 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 const p1div4 = (Fp.ORDER + _1n) / _4n;\n const root = Fp.pow(n, p1div4);\n assertIsSquare(Fp, root, n);\n return root;\n }\n function sqrt5mod8(Fp, n) {\n const p5div8 = (Fp.ORDER - _5n) / _8n;\n const n2 = Fp.mul(n, _2n);\n const v = Fp.pow(n2, p5div8);\n const nv = Fp.mul(n, v);\n const i = Fp.mul(Fp.mul(nv, _2n), v);\n const 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 const Fp_ = Field(P);\n const tn = tonelliShanks(P);\n const c1 = tn(Fp_, Fp_.neg(Fp_.ONE)); // 1. c1 = sqrt(-1) in F, i.e., (c1^2) == -1 in F\n const c2 = tn(Fp_, c1); // 2. c2 = sqrt(c1) in F, i.e., (c2^2) == c1 in F\n const c3 = tn(Fp_, Fp_.neg(c1)); // 3. c3 = sqrt(-c1) in F, i.e., (c3^2) == -c1 in F\n const c4 = (P + _7n) / _16n; // 4. c4 = (q + 7) / 16 # Integer arithmetic\n return (Fp, n) => {\n let tv1 = Fp.pow(n, c4); // 1. tv1 = x^c4\n let tv2 = Fp.mul(tv1, c1); // 2. tv2 = c1 * tv1\n const tv3 = Fp.mul(tv1, c2); // 3. tv3 = c2 * tv1\n const tv4 = Fp.mul(tv1, c3); // 4. tv4 = c3 * tv1\n const e1 = Fp.eql(Fp.sqr(tv2), n); // 5. e1 = (tv2^2) == x\n const 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 const e3 = Fp.eql(Fp.sqr(tv2), n); // 9. e3 = (tv2^2) == x\n const 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 let Q = P - _1n;\n let S = 0;\n while (Q % _2n === _0n) {\n Q /= _2n;\n S++;\n }\n // Find the first quadratic non-residue Z >= 2\n let Z = _2n;\n const _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 let cc = _Fp.pow(Z, Q); // c = z^Q\n const 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 let M = S;\n let c = Fp.mul(Fp.ONE, cc); // c = z^Q, move cc from field _Fp into field Fp\n let t = Fp.pow(n, Q); // t = n^Q, first guess at the fudge factor\n let 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 let i = 1;\n // Find the smallest i >= 1 such that t^(2^i) ≡ 1 (mod P)\n let 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 const exponent = _1n << BigInt(M - i - 1); // bigint is important\n const 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 const isNegativeLE = (num, modulo) => (mod(num, modulo) & _1n) === _1n;\n // prettier-ignore\n const FIELD_FIELDS = ['create', 'isValid', 'is0', 'neg', 'inv', 'sqrt', 'sqr', 'eql', 'add', 'sub', 'mul', 'pow', 'div', 'addN', 'subN', 'mulN', 'sqrN'];\n function validateField(field) {\n const initial = {\n ORDER: 'bigint',\n MASK: 'bigint',\n BYTES: 'number',\n BITS: 'number'\n };\n const opts = FIELD_FIELDS.reduce((map, val) => {\n map[val] = 'function';\n return map;\n }, initial);\n (0, _utilsJs._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 let p = Fp.ONE;\n let 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, passZero = false) {\n const inverted = new Array(nums.length).fill(passZero ? Fp.ZERO : undefined);\n // Walk from first to last, multiply them by each other MOD p\n const multipliedAcc = nums.reduce((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 const invertedAcc = Fp.inv(multipliedAcc);\n // Walk from last to first, multiply them by inverted each other MOD p\n nums.reduceRight((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 const p1mod2 = (Fp.ORDER - _1n) / _2n;\n const powered = Fp.pow(n, p1mod2);\n const yes = Fp.eql(powered, Fp.ONE);\n const zero = Fp.eql(powered, Fp.ZERO);\n const 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 const 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, _utilsJs.anumber)(nBitLength);\n const _nBitLength = nBitLength !== undefined ? nBitLength : n.toString(2).length;\n const nByteLength = Math.ceil(_nBitLength / 8);\n return {\n nBitLength: _nBitLength,\n 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 // TODO: use opts only in v2?\n isLE = false, opts = {}) {\n if (ORDER <= _0n) throw new Error('invalid field: expected ORDER > 0, got ' + ORDER);\n let _nbitLength = undefined;\n let _sqrt = undefined;\n let modFromBytes = false;\n let allowedLengths = undefined;\n if (typeof bitLenOrOpts === 'object' && bitLenOrOpts != null) {\n if (opts.sqrt || isLE) throw new Error('cannot specify opts in two arguments');\n const _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 const {\n nBitLength: BITS,\n nByteLength: BYTES\n } = nLength(ORDER, _nbitLength);\n if (BYTES > 2048) throw new Error('invalid field: expected ORDER of <= 2048 bytes');\n let sqrtP; // cached sqrtP\n const f = Object.freeze({\n ORDER,\n isLE,\n BITS,\n BYTES,\n MASK: (0, _utilsJs.bitMask)(BITS),\n ZERO: _0n,\n ONE: _1n,\n allowedLengths: allowedLengths,\n create: num => mod(num, ORDER),\n 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: num => num === _0n,\n // is valid and invertible\n isValidNot0: num => !f.is0(num) && f.isValid(num),\n isOdd: num => (num & _1n) === _1n,\n neg: num => mod(-num, ORDER),\n eql: (lhs, rhs) => lhs === rhs,\n sqr: num => mod(num * num, ORDER),\n add: (lhs, rhs) => mod(lhs + rhs, ORDER),\n sub: (lhs, rhs) => mod(lhs - rhs, ORDER),\n mul: (lhs, rhs) => mod(lhs * rhs, ORDER),\n pow: (num, power) => FpPow(f, num, power),\n div: (lhs, rhs) => mod(lhs * invert(rhs, ORDER), ORDER),\n // Same as above, but doesn't normalize\n sqrN: num => num * num,\n addN: (lhs, rhs) => lhs + rhs,\n subN: (lhs, rhs) => lhs - rhs,\n mulN: (lhs, rhs) => lhs * rhs,\n inv: num => invert(num, ORDER),\n sqrt: _sqrt || (n => {\n if (!sqrtP) sqrtP = FpSqrt(ORDER);\n return sqrtP(f, n);\n }),\n toBytes: num => isLE ? (0, _utilsJs.numberToBytesLE)(num, BYTES) : (0, _utilsJs.numberToBytesBE)(num, BYTES),\n fromBytes: (bytes, skipValidation = 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 const 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 let scalar = isLE ? (0, _utilsJs.bytesToNumberLE)(bytes) : (0, _utilsJs.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: lst => FpInvertBatch(f, lst),\n // We can't move this out because Fp6, Fp12 implement it\n // and it's unclear what to return in there.\n cmov: (a, b, c) => c ? b : a\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 const 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 const 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, isLE = false) {\n hash = (0, _utilsJs.ensureBytes)('privateHash', hash);\n const hashLen = hash.length;\n const 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 const num = isLE ? (0, _utilsJs.bytesToNumberLE)(hash) : (0, _utilsJs.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 const 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 const 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, isLE = false) {\n const len = key.length;\n const fieldLen = getFieldBytesLength(fieldOrder);\n const 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 const num = isLE ? (0, _utilsJs.bytesToNumberLE)(key) : (0, _utilsJs.bytesToNumberBE)(key);\n // `mod(x, 11)` can sometimes produce 0. `mod(x, 10) + 1` is the same, but no 0\n const reduced = mod(num, fieldOrder - _1n) + _1n;\n return isLE ? (0, _utilsJs.numberToBytesLE)(reduced, fieldLen) : (0, _utilsJs.numberToBytesBE)(reduced, fieldLen);\n }\n});","lineCount":532,"map":[[7,2,16,0,"exports"],[7,9,16,0],[7,10,16,0,"mod"],[7,13,16,0],[7,16,16,0,"mod"],[7,19,16,0],[8,2,26,0,"exports"],[8,9,26,0],[8,10,26,0,"pow"],[8,13,26,0],[8,16,26,0,"pow"],[8,19,26,0],[9,2,30,0,"exports"],[9,9,30,0],[9,10,30,0,"pow2"],[9,14,30,0],[9,17,30,0,"pow2"],[9,21,30,0],[10,2,42,0,"exports"],[10,9,42,0],[10,10,42,0,"invert"],[10,16,42,0],[10,19,42,0,"invert"],[10,25,42,0],[11,2,121,0,"exports"],[11,9,121,0],[11,10,121,0,"tonelliShanks"],[11,23,121,0],[11,26,121,0,"tonelliShanks"],[11,39,121,0],[12,2,197,0,"exports"],[12,9,197,0],[12,10,197,0,"FpSqrt"],[12,16,197,0],[12,19,197,0,"FpSqrt"],[12,25,197,0],[13,2,211,0,"Object"],[13,8,211,0],[13,9,211,0,"defineProperty"],[13,23,211,0],[13,24,211,0,"exports"],[13,31,211,0],[14,4,211,0,"enumerable"],[14,14,211,0],[15,4,211,0,"get"],[15,7,211,0],[15,18,211,0,"get"],[15,19,211,0],[16,6,211,0],[16,13,211,0,"isNegativeLE"],[16,25,211,0],[17,4,211,0],[18,2,211,0],[19,2,218,0,"exports"],[19,9,218,0],[19,10,218,0,"validateField"],[19,23,218,0],[19,26,218,0,"validateField"],[19,39,218,0],[20,2,240,0,"exports"],[20,9,240,0],[20,10,240,0,"FpPow"],[20,15,240,0],[20,18,240,0,"FpPow"],[20,23,240,0],[21,2,262,0,"exports"],[21,9,262,0],[21,10,262,0,"FpInvertBatch"],[21,23,262,0],[21,26,262,0,"FpInvertBatch"],[21,39,262,0],[22,2,283,0,"exports"],[22,9,283,0],[22,10,283,0,"FpDiv"],[22,15,283,0],[22,18,283,0,"FpDiv"],[22,23,283,0],[23,2,295,0,"exports"],[23,9,295,0],[23,10,295,0,"FpLegendre"],[23,20,295,0],[23,23,295,0,"FpLegendre"],[23,33,295,0],[24,2,308,0,"exports"],[24,9,308,0],[24,10,308,0,"FpIsSquare"],[24,20,308,0],[24,23,308,0,"FpIsSquare"],[24,33,308,0],[25,2,313,0,"exports"],[25,9,313,0],[25,10,313,0,"nLength"],[25,17,313,0],[25,20,313,0,"nLength"],[25,27,313,0],[26,2,340,0,"exports"],[26,9,340,0],[26,10,340,0,"Field"],[26,15,340,0],[26,18,340,0,"Field"],[26,23,340,0],[27,2,455,0,"exports"],[27,9,455,0],[27,10,455,0,"FpSqrtOdd"],[27,19,455,0],[27,22,455,0,"FpSqrtOdd"],[27,31,455,0],[28,2,461,0,"exports"],[28,9,461,0],[28,10,461,0,"FpSqrtEven"],[28,20,461,0],[28,23,461,0,"FpSqrtEven"],[28,33,461,0],[29,2,473,0,"exports"],[29,9,473,0],[29,10,473,0,"hashToPrivateScalar"],[29,29,473,0],[29,32,473,0,"hashToPrivateScalar"],[29,51,473,0],[30,2,488,0,"exports"],[30,9,488,0],[30,10,488,0,"getFieldBytesLength"],[30,29,488,0],[30,32,488,0,"getFieldBytesLength"],[30,51,488,0],[31,2,501,0,"exports"],[31,9,501,0],[31,10,501,0,"getMinHashLength"],[31,26,501,0],[31,29,501,0,"getMinHashLength"],[31,45,501,0],[32,2,518,0,"exports"],[32,9,518,0],[32,10,518,0,"mapHashToField"],[32,24,518,0],[32,27,518,0,"mapHashToField"],[32,41,518,0],[33,2,8,0],[33,6,8,0,"_utilsJs"],[33,14,8,0],[33,17,8,0,"require"],[33,24,8,0],[33,25,8,0,"_dependencyMap"],[33,39,8,0],[34,2,1,0],[35,0,2,0],[36,0,3,0],[37,0,4,0],[38,0,5,0],[39,0,6,0],[40,2,7,0],[42,2,9,0],[43,2,10,0],[43,8,10,6,"_0n"],[43,11,10,9],[43,14,10,12,"BigInt"],[43,20,10,18],[43,21,10,19],[43,22,10,20],[43,23,10,21],[44,4,10,23,"_1n"],[44,7,10,26],[44,10,10,29,"BigInt"],[44,16,10,35],[44,17,10,36],[44,18,10,37],[44,19,10,38],[45,4,10,40,"_2n"],[45,7,10,43],[45,10,10,46],[45,25,10,62,"BigInt"],[45,31,10,68],[45,32,10,69],[45,33,10,70],[45,34,10,71],[46,4,10,73,"_3n"],[46,7,10,76],[46,10,10,79],[46,25,10,95,"BigInt"],[46,31,10,101],[46,32,10,102],[46,33,10,103],[46,34,10,104],[47,2,11,0],[48,2,12,0],[48,8,12,6,"_4n"],[48,11,12,9],[48,14,12,12],[48,29,12,28,"BigInt"],[48,35,12,34],[48,36,12,35],[48,37,12,36],[48,38,12,37],[49,4,12,39,"_5n"],[49,7,12,42],[49,10,12,45],[49,25,12,61,"BigInt"],[49,31,12,67],[49,32,12,68],[49,33,12,69],[49,34,12,70],[50,4,12,72,"_7n"],[50,7,12,75],[50,10,12,78],[50,25,12,94,"BigInt"],[50,31,12,100],[50,32,12,101],[50,33,12,102],[50,34,12,103],[51,2,13,0],[52,2,14,0],[52,8,14,6,"_8n"],[52,11,14,9],[52,14,14,12],[52,29,14,28,"BigInt"],[52,35,14,34],[52,36,14,35],[52,37,14,36],[52,38,14,37],[53,4,14,39,"_9n"],[53,7,14,42],[53,10,14,45],[53,25,14,61,"BigInt"],[53,31,14,67],[53,32,14,68],[53,33,14,69],[53,34,14,70],[54,4,14,72,"_16n"],[54,8,14,76],[54,11,14,79],[54,26,14,95,"BigInt"],[54,32,14,101],[54,33,14,102],[54,35,14,104],[54,36,14,105],[55,2,15,0],[56,2,16,7],[56,11,16,16,"mod"],[56,14,16,19,"mod"],[56,15,16,20,"a"],[56,16,16,21],[56,18,16,23,"b"],[56,19,16,24],[56,21,16,26],[57,4,17,4],[57,10,17,10,"result"],[57,16,17,16],[57,19,17,19,"a"],[57,20,17,20],[57,23,17,23,"b"],[57,24,17,24],[58,4,18,4],[58,11,18,11,"result"],[58,17,18,17],[58,21,18,21,"_0n"],[58,24,18,24],[58,27,18,27,"result"],[58,33,18,33],[58,36,18,36,"b"],[58,37,18,37],[58,40,18,40,"result"],[58,46,18,46],[59,2,19,0],[60,2,20,0],[61,0,21,0],[62,0,22,0],[63,0,23,0],[64,0,24,0],[65,0,25,0],[66,2,26,7],[66,11,26,16,"pow"],[66,14,26,19,"pow"],[66,15,26,20,"num"],[66,18,26,23],[66,20,26,25,"power"],[66,25,26,30],[66,27,26,32,"modulo"],[66,33,26,38],[66,35,26,40],[67,4,27,4],[67,11,27,11,"FpPow"],[67,16,27,16],[67,17,27,17,"Field"],[67,22,27,22],[67,23,27,23,"modulo"],[67,29,27,29],[67,30,27,30],[67,32,27,32,"num"],[67,35,27,35],[67,37,27,37,"power"],[67,42,27,42],[67,43,27,43],[68,2,28,0],[69,2,29,0],[70,2,30,7],[70,11,30,16,"pow2"],[70,15,30,20,"pow2"],[70,16,30,21,"x"],[70,17,30,22],[70,19,30,24,"power"],[70,24,30,29],[70,26,30,31,"modulo"],[70,32,30,37],[70,34,30,39],[71,4,31,4],[71,8,31,8,"res"],[71,11,31,11],[71,14,31,14,"x"],[71,15,31,15],[72,4,32,4],[72,11,32,11,"power"],[72,16,32,16],[72,18,32,18],[72,21,32,21,"_0n"],[72,24,32,24],[72,26,32,26],[73,6,33,8,"res"],[73,9,33,11],[73,13,33,15,"res"],[73,16,33,18],[74,6,34,8,"res"],[74,9,34,11],[74,13,34,15,"modulo"],[74,19,34,21],[75,4,35,4],[76,4,36,4],[76,11,36,11,"res"],[76,14,36,14],[77,2,37,0],[78,2,38,0],[79,0,39,0],[80,0,40,0],[81,0,41,0],[82,2,42,7],[82,11,42,16,"invert"],[82,17,42,22,"invert"],[82,18,42,23,"number"],[82,24,42,29],[82,26,42,31,"modulo"],[82,32,42,37],[82,34,42,39],[83,4,43,4],[83,8,43,8,"number"],[83,14,43,14],[83,19,43,19,"_0n"],[83,22,43,22],[83,24,44,8],[83,30,44,14],[83,34,44,18,"Error"],[83,39,44,23],[83,40,44,24],[83,74,44,58],[83,75,44,59],[84,4,45,4],[84,8,45,8,"modulo"],[84,14,45,14],[84,18,45,18,"_0n"],[84,21,45,21],[84,23,46,8],[84,29,46,14],[84,33,46,18,"Error"],[84,38,46,23],[84,39,46,24],[84,80,46,65],[84,83,46,68,"modulo"],[84,89,46,74],[84,90,46,75],[85,4,47,4],[86,4,48,4],[86,8,48,8,"a"],[86,9,48,9],[86,12,48,12,"mod"],[86,15,48,15],[86,16,48,16,"number"],[86,22,48,22],[86,24,48,24,"modulo"],[86,30,48,30],[86,31,48,31],[87,4,49,4],[87,8,49,8,"b"],[87,9,49,9],[87,12,49,12,"modulo"],[87,18,49,18],[88,4,50,4],[89,4,51,4],[89,8,51,8,"x"],[89,9,51,9],[89,12,51,12,"_0n"],[89,15,51,15],[90,6,51,17,"y"],[90,7,51,18],[90,10,51,21,"_1n"],[90,13,51,24],[91,6,51,26,"u"],[91,7,51,27],[91,10,51,30,"_1n"],[91,13,51,33],[92,6,51,35,"v"],[92,7,51,36],[92,10,51,39,"_0n"],[92,13,51,42],[93,4,52,4],[93,11,52,11,"a"],[93,12,52,12],[93,17,52,17,"_0n"],[93,20,52,20],[93,22,52,22],[94,6,53,8],[95,6,54,8],[95,12,54,14,"q"],[95,13,54,15],[95,16,54,18,"b"],[95,17,54,19],[95,20,54,22,"a"],[95,21,54,23],[96,6,55,8],[96,12,55,14,"r"],[96,13,55,15],[96,16,55,18,"b"],[96,17,55,19],[96,20,55,22,"a"],[96,21,55,23],[97,6,56,8],[97,12,56,14,"m"],[97,13,56,15],[97,16,56,18,"x"],[97,17,56,19],[97,20,56,22,"u"],[97,21,56,23],[97,24,56,26,"q"],[97,25,56,27],[98,6,57,8],[98,12,57,14,"n"],[98,13,57,15],[98,16,57,18,"y"],[98,17,57,19],[98,20,57,22,"v"],[98,21,57,23],[98,24,57,26,"q"],[98,25,57,27],[99,6,58,8],[100,6,59,8,"b"],[100,7,59,9],[100,10,59,12,"a"],[100,11,59,13],[100,13,59,15,"a"],[100,14,59,16],[100,17,59,19,"r"],[100,18,59,20],[100,20,59,22,"x"],[100,21,59,23],[100,24,59,26,"u"],[100,25,59,27],[100,27,59,29,"y"],[100,28,59,30],[100,31,59,33,"v"],[100,32,59,34],[100,34,59,36,"u"],[100,35,59,37],[100,38,59,40,"m"],[100,39,59,41],[100,41,59,43,"v"],[100,42,59,44],[100,45,59,47,"n"],[100,46,59,48],[101,4,60,4],[102,4,61,4],[102,10,61,10,"gcd"],[102,13,61,13],[102,16,61,16,"b"],[102,17,61,17],[103,4,62,4],[103,8,62,8,"gcd"],[103,11,62,11],[103,16,62,16,"_1n"],[103,19,62,19],[103,21,63,8],[103,27,63,14],[103,31,63,18,"Error"],[103,36,63,23],[103,37,63,24],[103,61,63,48],[103,62,63,49],[104,4,64,4],[104,11,64,11,"mod"],[104,14,64,14],[104,15,64,15,"x"],[104,16,64,16],[104,18,64,18,"modulo"],[104,24,64,24],[104,25,64,25],[105,2,65,0],[106,2,66,0],[106,11,66,9,"assertIsSquare"],[106,25,66,23,"assertIsSquare"],[106,26,66,24,"Fp"],[106,28,66,26],[106,30,66,28,"root"],[106,34,66,32],[106,36,66,34,"n"],[106,37,66,35],[106,39,66,37],[107,4,67,4],[107,8,67,8],[107,9,67,9,"Fp"],[107,11,67,11],[107,12,67,12,"eql"],[107,15,67,15],[107,16,67,16,"Fp"],[107,18,67,18],[107,19,67,19,"sqr"],[107,22,67,22],[107,23,67,23,"root"],[107,27,67,27],[107,28,67,28],[107,30,67,30,"n"],[107,31,67,31],[107,32,67,32],[107,34,68,8],[107,40,68,14],[107,44,68,18,"Error"],[107,49,68,23],[107,50,68,24],[107,75,68,49],[107,76,68,50],[108,2,69,0],[109,2,70,0],[110,2,71,0],[111,2,72,0],[112,2,73,0],[113,2,74,0],[113,11,74,9,"sqrt3mod4"],[113,20,74,18,"sqrt3mod4"],[113,21,74,19,"Fp"],[113,23,74,21],[113,25,74,23,"n"],[113,26,74,24],[113,28,74,26],[114,4,75,4],[114,10,75,10,"p1div4"],[114,16,75,16],[114,19,75,19],[114,20,75,20,"Fp"],[114,22,75,22],[114,23,75,23,"ORDER"],[114,28,75,28],[114,31,75,31,"_1n"],[114,34,75,34],[114,38,75,38,"_4n"],[114,41,75,41],[115,4,76,4],[115,10,76,10,"root"],[115,14,76,14],[115,17,76,17,"Fp"],[115,19,76,19],[115,20,76,20,"pow"],[115,23,76,23],[115,24,76,24,"n"],[115,25,76,25],[115,27,76,27,"p1div4"],[115,33,76,33],[115,34,76,34],[116,4,77,4,"assertIsSquare"],[116,18,77,18],[116,19,77,19,"Fp"],[116,21,77,21],[116,23,77,23,"root"],[116,27,77,27],[116,29,77,29,"n"],[116,30,77,30],[116,31,77,31],[117,4,78,4],[117,11,78,11,"root"],[117,15,78,15],[118,2,79,0],[119,2,80,0],[119,11,80,9,"sqrt5mod8"],[119,20,80,18,"sqrt5mod8"],[119,21,80,19,"Fp"],[119,23,80,21],[119,25,80,23,"n"],[119,26,80,24],[119,28,80,26],[120,4,81,4],[120,10,81,10,"p5div8"],[120,16,81,16],[120,19,81,19],[120,20,81,20,"Fp"],[120,22,81,22],[120,23,81,23,"ORDER"],[120,28,81,28],[120,31,81,31,"_5n"],[120,34,81,34],[120,38,81,38,"_8n"],[120,41,81,41],[121,4,82,4],[121,10,82,10,"n2"],[121,12,82,12],[121,15,82,15,"Fp"],[121,17,82,17],[121,18,82,18,"mul"],[121,21,82,21],[121,22,82,22,"n"],[121,23,82,23],[121,25,82,25,"_2n"],[121,28,82,28],[121,29,82,29],[122,4,83,4],[122,10,83,10,"v"],[122,11,83,11],[122,14,83,14,"Fp"],[122,16,83,16],[122,17,83,17,"pow"],[122,20,83,20],[122,21,83,21,"n2"],[122,23,83,23],[122,25,83,25,"p5div8"],[122,31,83,31],[122,32,83,32],[123,4,84,4],[123,10,84,10,"nv"],[123,12,84,12],[123,15,84,15,"Fp"],[123,17,84,17],[123,18,84,18,"mul"],[123,21,84,21],[123,22,84,22,"n"],[123,23,84,23],[123,25,84,25,"v"],[123,26,84,26],[123,27,84,27],[124,4,85,4],[124,10,85,10,"i"],[124,11,85,11],[124,14,85,14,"Fp"],[124,16,85,16],[124,17,85,17,"mul"],[124,20,85,20],[124,21,85,21,"Fp"],[124,23,85,23],[124,24,85,24,"mul"],[124,27,85,27],[124,28,85,28,"nv"],[124,30,85,30],[124,32,85,32,"_2n"],[124,35,85,35],[124,36,85,36],[124,38,85,38,"v"],[124,39,85,39],[124,40,85,40],[125,4,86,4],[125,10,86,10,"root"],[125,14,86,14],[125,17,86,17,"Fp"],[125,19,86,19],[125,20,86,20,"mul"],[125,23,86,23],[125,24,86,24,"nv"],[125,26,86,26],[125,28,86,28,"Fp"],[125,30,86,30],[125,31,86,31,"sub"],[125,34,86,34],[125,35,86,35,"i"],[125,36,86,36],[125,38,86,38,"Fp"],[125,40,86,40],[125,41,86,41,"ONE"],[125,44,86,44],[125,45,86,45],[125,46,86,46],[126,4,87,4,"assertIsSquare"],[126,18,87,18],[126,19,87,19,"Fp"],[126,21,87,21],[126,23,87,23,"root"],[126,27,87,27],[126,29,87,29,"n"],[126,30,87,30],[126,31,87,31],[127,4,88,4],[127,11,88,11,"root"],[127,15,88,15],[128,2,89,0],[129,2,90,0],[130,2,91,0],[131,2,92,0],[131,11,92,9,"sqrt9mod16"],[131,21,92,19,"sqrt9mod16"],[131,22,92,20,"P"],[131,23,92,21],[131,25,92,23],[132,4,93,4],[132,10,93,10,"Fp_"],[132,13,93,13],[132,16,93,16,"Field"],[132,21,93,21],[132,22,93,22,"P"],[132,23,93,23],[132,24,93,24],[133,4,94,4],[133,10,94,10,"tn"],[133,12,94,12],[133,15,94,15,"tonelliShanks"],[133,28,94,28],[133,29,94,29,"P"],[133,30,94,30],[133,31,94,31],[134,4,95,4],[134,10,95,10,"c1"],[134,12,95,12],[134,15,95,15,"tn"],[134,17,95,17],[134,18,95,18,"Fp_"],[134,21,95,21],[134,23,95,23,"Fp_"],[134,26,95,26],[134,27,95,27,"neg"],[134,30,95,30],[134,31,95,31,"Fp_"],[134,34,95,34],[134,35,95,35,"ONE"],[134,38,95,38],[134,39,95,39],[134,40,95,40],[134,41,95,41],[134,42,95,42],[135,4,96,4],[135,10,96,10,"c2"],[135,12,96,12],[135,15,96,15,"tn"],[135,17,96,17],[135,18,96,18,"Fp_"],[135,21,96,21],[135,23,96,23,"c1"],[135,25,96,25],[135,26,96,26],[135,27,96,27],[135,28,96,28],[136,4,97,4],[136,10,97,10,"c3"],[136,12,97,12],[136,15,97,15,"tn"],[136,17,97,17],[136,18,97,18,"Fp_"],[136,21,97,21],[136,23,97,23,"Fp_"],[136,26,97,26],[136,27,97,27,"neg"],[136,30,97,30],[136,31,97,31,"c1"],[136,33,97,33],[136,34,97,34],[136,35,97,35],[136,36,97,36],[136,37,97,37],[137,4,98,4],[137,10,98,10,"c4"],[137,12,98,12],[137,15,98,15],[137,16,98,16,"P"],[137,17,98,17],[137,20,98,20,"_7n"],[137,23,98,23],[137,27,98,27,"_16n"],[137,31,98,31],[137,32,98,32],[137,33,98,33],[138,4,99,4],[138,11,99,11],[138,12,99,12,"Fp"],[138,14,99,14],[138,16,99,16,"n"],[138,17,99,17],[138,22,99,22],[139,6,100,8],[139,10,100,12,"tv1"],[139,13,100,15],[139,16,100,18,"Fp"],[139,18,100,20],[139,19,100,21,"pow"],[139,22,100,24],[139,23,100,25,"n"],[139,24,100,26],[139,26,100,28,"c4"],[139,28,100,30],[139,29,100,31],[139,30,100,32],[139,31,100,33],[140,6,101,8],[140,10,101,12,"tv2"],[140,13,101,15],[140,16,101,18,"Fp"],[140,18,101,20],[140,19,101,21,"mul"],[140,22,101,24],[140,23,101,25,"tv1"],[140,26,101,28],[140,28,101,30,"c1"],[140,30,101,32],[140,31,101,33],[140,32,101,34],[140,33,101,35],[141,6,102,8],[141,12,102,14,"tv3"],[141,15,102,17],[141,18,102,20,"Fp"],[141,20,102,22],[141,21,102,23,"mul"],[141,24,102,26],[141,25,102,27,"tv1"],[141,28,102,30],[141,30,102,32,"c2"],[141,32,102,34],[141,33,102,35],[141,34,102,36],[141,35,102,37],[142,6,103,8],[142,12,103,14,"tv4"],[142,15,103,17],[142,18,103,20,"Fp"],[142,20,103,22],[142,21,103,23,"mul"],[142,24,103,26],[142,25,103,27,"tv1"],[142,28,103,30],[142,30,103,32,"c3"],[142,32,103,34],[142,33,103,35],[142,34,103,36],[142,35,103,37],[143,6,104,8],[143,12,104,14,"e1"],[143,14,104,16],[143,17,104,19,"Fp"],[143,19,104,21],[143,20,104,22,"eql"],[143,23,104,25],[143,24,104,26,"Fp"],[143,26,104,28],[143,27,104,29,"sqr"],[143,30,104,32],[143,31,104,33,"tv2"],[143,34,104,36],[143,35,104,37],[143,37,104,39,"n"],[143,38,104,40],[143,39,104,41],[143,40,104,42],[143,41,104,43],[144,6,105,8],[144,12,105,14,"e2"],[144,14,105,16],[144,17,105,19,"Fp"],[144,19,105,21],[144,20,105,22,"eql"],[144,23,105,25],[144,24,105,26,"Fp"],[144,26,105,28],[144,27,105,29,"sqr"],[144,30,105,32],[144,31,105,33,"tv3"],[144,34,105,36],[144,35,105,37],[144,37,105,39,"n"],[144,38,105,40],[144,39,105,41],[144,40,105,42],[144,41,105,43],[145,6,106,8,"tv1"],[145,9,106,11],[145,12,106,14,"Fp"],[145,14,106,16],[145,15,106,17,"cmov"],[145,19,106,21],[145,20,106,22,"tv1"],[145,23,106,25],[145,25,106,27,"tv2"],[145,28,106,30],[145,30,106,32,"e1"],[145,32,106,34],[145,33,106,35],[145,34,106,36],[145,35,106,37],[146,6,107,8,"tv2"],[146,9,107,11],[146,12,107,14,"Fp"],[146,14,107,16],[146,15,107,17,"cmov"],[146,19,107,21],[146,20,107,22,"tv4"],[146,23,107,25],[146,25,107,27,"tv3"],[146,28,107,30],[146,30,107,32,"e2"],[146,32,107,34],[146,33,107,35],[146,34,107,36],[146,35,107,37],[147,6,108,8],[147,12,108,14,"e3"],[147,14,108,16],[147,17,108,19,"Fp"],[147,19,108,21],[147,20,108,22,"eql"],[147,23,108,25],[147,24,108,26,"Fp"],[147,26,108,28],[147,27,108,29,"sqr"],[147,30,108,32],[147,31,108,33,"tv2"],[147,34,108,36],[147,35,108,37],[147,37,108,39,"n"],[147,38,108,40],[147,39,108,41],[147,40,108,42],[147,41,108,43],[148,6,109,8],[148,12,109,14,"root"],[148,16,109,18],[148,19,109,21,"Fp"],[148,21,109,23],[148,22,109,24,"cmov"],[148,26,109,28],[148,27,109,29,"tv1"],[148,30,109,32],[148,32,109,34,"tv2"],[148,35,109,37],[148,37,109,39,"e3"],[148,39,109,41],[148,40,109,42],[148,41,109,43],[148,42,109,44],[149,6,110,8,"assertIsSquare"],[149,20,110,22],[149,21,110,23,"Fp"],[149,23,110,25],[149,25,110,27,"root"],[149,29,110,31],[149,31,110,33,"n"],[149,32,110,34],[149,33,110,35],[150,6,111,8],[150,13,111,15,"root"],[150,17,111,19],[151,4,112,4],[151,5,112,5],[152,2,113,0],[153,2,114,0],[154,0,115,0],[155,0,116,0],[156,0,117,0],[157,0,118,0],[158,0,119,0],[159,0,120,0],[160,2,121,7],[160,11,121,16,"tonelliShanks"],[160,24,121,29,"tonelliShanks"],[160,25,121,30,"P"],[160,26,121,31],[160,28,121,33],[161,4,122,4],[162,4,123,4],[163,4,124,4],[163,8,124,8,"P"],[163,9,124,9],[163,12,124,12,"_3n"],[163,15,124,15],[163,17,125,8],[163,23,125,14],[163,27,125,18,"Error"],[163,32,125,23],[163,33,125,24],[163,70,125,61],[163,71,125,62],[164,4,126,4],[165,4,127,4],[165,8,127,8,"Q"],[165,9,127,9],[165,12,127,12,"P"],[165,13,127,13],[165,16,127,16,"_1n"],[165,19,127,19],[166,4,128,4],[166,8,128,8,"S"],[166,9,128,9],[166,12,128,12],[166,13,128,13],[167,4,129,4],[167,11,129,11,"Q"],[167,12,129,12],[167,15,129,15,"_2n"],[167,18,129,18],[167,23,129,23,"_0n"],[167,26,129,26],[167,28,129,28],[168,6,130,8,"Q"],[168,7,130,9],[168,11,130,13,"_2n"],[168,14,130,16],[169,6,131,8,"S"],[169,7,131,9],[169,9,131,11],[170,4,132,4],[171,4,133,4],[172,4,134,4],[172,8,134,8,"Z"],[172,9,134,9],[172,12,134,12,"_2n"],[172,15,134,15],[173,4,135,4],[173,10,135,10,"_Fp"],[173,13,135,13],[173,16,135,16,"Field"],[173,21,135,21],[173,22,135,22,"P"],[173,23,135,23],[173,24,135,24],[174,4,136,4],[174,11,136,11,"FpLegendre"],[174,21,136,21],[174,22,136,22,"_Fp"],[174,25,136,25],[174,27,136,27,"Z"],[174,28,136,28],[174,29,136,29],[174,34,136,34],[174,35,136,35],[174,37,136,37],[175,6,137,8],[176,6,138,8],[177,6,139,8],[177,10,139,12,"Z"],[177,11,139,13],[177,13,139,15],[177,16,139,18],[177,20,139,22],[177,22,140,12],[177,28,140,18],[177,32,140,22,"Error"],[177,37,140,27],[177,38,140,28],[177,85,140,75],[177,86,140,76],[178,4,141,4],[179,4,142,4],[180,4,143,4],[180,8,143,8,"S"],[180,9,143,9],[180,14,143,14],[180,15,143,15],[180,17,144,8],[180,24,144,15,"sqrt3mod4"],[180,33,144,24],[181,4,145,4],[182,4,146,4],[183,4,147,4],[183,8,147,8,"cc"],[183,10,147,10],[183,13,147,13,"_Fp"],[183,16,147,16],[183,17,147,17,"pow"],[183,20,147,20],[183,21,147,21,"Z"],[183,22,147,22],[183,24,147,24,"Q"],[183,25,147,25],[183,26,147,26],[183,27,147,27],[183,28,147,28],[184,4,148,4],[184,10,148,10,"Q1div2"],[184,16,148,16],[184,19,148,19],[184,20,148,20,"Q"],[184,21,148,21],[184,24,148,24,"_1n"],[184,27,148,27],[184,31,148,31,"_2n"],[184,34,148,34],[185,4,149,4],[185,11,149,11],[185,20,149,20,"tonelliSlow"],[185,31,149,31,"tonelliSlow"],[185,32,149,32,"Fp"],[185,34,149,34],[185,36,149,36,"n"],[185,37,149,37],[185,39,149,39],[186,6,150,8],[186,10,150,12,"Fp"],[186,12,150,14],[186,13,150,15,"is0"],[186,16,150,18],[186,17,150,19,"n"],[186,18,150,20],[186,19,150,21],[186,21,151,12],[186,28,151,19,"n"],[186,29,151,20],[187,6,152,8],[188,6,153,8],[188,10,153,12,"FpLegendre"],[188,20,153,22],[188,21,153,23,"Fp"],[188,23,153,25],[188,25,153,27,"n"],[188,26,153,28],[188,27,153,29],[188,32,153,34],[188,33,153,35],[188,35,154,12],[188,41,154,18],[188,45,154,22,"Error"],[188,50,154,27],[188,51,154,28],[188,76,154,53],[188,77,154,54],[189,6,155,8],[190,6,156,8],[190,10,156,12,"M"],[190,11,156,13],[190,14,156,16,"S"],[190,15,156,17],[191,6,157,8],[191,10,157,12,"c"],[191,11,157,13],[191,14,157,16,"Fp"],[191,16,157,18],[191,17,157,19,"mul"],[191,20,157,22],[191,21,157,23,"Fp"],[191,23,157,25],[191,24,157,26,"ONE"],[191,27,157,29],[191,29,157,31,"cc"],[191,31,157,33],[191,32,157,34],[191,33,157,35],[191,34,157,36],[192,6,158,8],[192,10,158,12,"t"],[192,11,158,13],[192,14,158,16,"Fp"],[192,16,158,18],[192,17,158,19,"pow"],[192,20,158,22],[192,21,158,23,"n"],[192,22,158,24],[192,24,158,26,"Q"],[192,25,158,27],[192,26,158,28],[192,27,158,29],[192,28,158,30],[193,6,159,8],[193,10,159,12,"R"],[193,11,159,13],[193,14,159,16,"Fp"],[193,16,159,18],[193,17,159,19,"pow"],[193,20,159,22],[193,21,159,23,"n"],[193,22,159,24],[193,24,159,26,"Q1div2"],[193,30,159,32],[193,31,159,33],[193,32,159,34],[193,33,159,35],[194,6,160,8],[195,6,161,8],[196,6,162,8],[196,13,162,15],[196,14,162,16,"Fp"],[196,16,162,18],[196,17,162,19,"eql"],[196,20,162,22],[196,21,162,23,"t"],[196,22,162,24],[196,24,162,26,"Fp"],[196,26,162,28],[196,27,162,29,"ONE"],[196,30,162,32],[196,31,162,33],[196,33,162,35],[197,8,163,12],[197,12,163,16,"Fp"],[197,14,163,18],[197,15,163,19,"is0"],[197,18,163,22],[197,19,163,23,"t"],[197,20,163,24],[197,21,163,25],[197,23,164,16],[197,30,164,23,"Fp"],[197,32,164,25],[197,33,164,26,"ZERO"],[197,37,164,30],[197,38,164,31],[197,39,164,32],[198,8,165,12],[198,12,165,16,"i"],[198,13,165,17],[198,16,165,20],[198,17,165,21],[199,8,166,12],[200,8,167,12],[200,12,167,16,"t_tmp"],[200,17,167,21],[200,20,167,24,"Fp"],[200,22,167,26],[200,23,167,27,"sqr"],[200,26,167,30],[200,27,167,31,"t"],[200,28,167,32],[200,29,167,33],[200,30,167,34],[200,31,167,35],[201,8,168,12],[201,15,168,19],[201,16,168,20,"Fp"],[201,18,168,22],[201,19,168,23,"eql"],[201,22,168,26],[201,23,168,27,"t_tmp"],[201,28,168,32],[201,30,168,34,"Fp"],[201,32,168,36],[201,33,168,37,"ONE"],[201,36,168,40],[201,37,168,41],[201,39,168,43],[202,10,169,16,"i"],[202,11,169,17],[202,13,169,19],[203,10,170,16,"t_tmp"],[203,15,170,21],[203,18,170,24,"Fp"],[203,20,170,26],[203,21,170,27,"sqr"],[203,24,170,30],[203,25,170,31,"t_tmp"],[203,30,170,36],[203,31,170,37],[203,32,170,38],[203,33,170,39],[204,10,171,16],[204,14,171,20,"i"],[204,15,171,21],[204,20,171,26,"M"],[204,21,171,27],[204,23,172,20],[204,29,172,26],[204,33,172,30,"Error"],[204,38,172,35],[204,39,172,36],[204,64,172,61],[204,65,172,62],[205,8,173,12],[206,8,174,12],[207,8,175,12],[207,14,175,18,"exponent"],[207,22,175,26],[207,25,175,29,"_1n"],[207,28,175,32],[207,32,175,36,"BigInt"],[207,38,175,42],[207,39,175,43,"M"],[207,40,175,44],[207,43,175,47,"i"],[207,44,175,48],[207,47,175,51],[207,48,175,52],[207,49,175,53],[207,50,175,54],[207,51,175,55],[208,8,176,12],[208,14,176,18,"b"],[208,15,176,19],[208,18,176,22,"Fp"],[208,20,176,24],[208,21,176,25,"pow"],[208,24,176,28],[208,25,176,29,"c"],[208,26,176,30],[208,28,176,32,"exponent"],[208,36,176,40],[208,37,176,41],[208,38,176,42],[208,39,176,43],[209,8,177,12],[210,8,178,12,"M"],[210,9,178,13],[210,12,178,16,"i"],[210,13,178,17],[211,8,179,12,"c"],[211,9,179,13],[211,12,179,16,"Fp"],[211,14,179,18],[211,15,179,19,"sqr"],[211,18,179,22],[211,19,179,23,"b"],[211,20,179,24],[211,21,179,25],[211,22,179,26],[211,23,179,27],[212,8,180,12,"t"],[212,9,180,13],[212,12,180,16,"Fp"],[212,14,180,18],[212,15,180,19,"mul"],[212,18,180,22],[212,19,180,23,"t"],[212,20,180,24],[212,22,180,26,"c"],[212,23,180,27],[212,24,180,28],[212,25,180,29],[212,26,180,30],[213,8,181,12,"R"],[213,9,181,13],[213,12,181,16,"Fp"],[213,14,181,18],[213,15,181,19,"mul"],[213,18,181,22],[213,19,181,23,"R"],[213,20,181,24],[213,22,181,26,"b"],[213,23,181,27],[213,24,181,28],[213,25,181,29],[213,26,181,30],[214,6,182,8],[215,6,183,8],[215,13,183,15,"R"],[215,14,183,16],[216,4,184,4],[216,5,184,5],[217,2,185,0],[218,2,186,0],[219,0,187,0],[220,0,188,0],[221,0,189,0],[222,0,190,0],[223,0,191,0],[224,0,192,0],[225,0,193,0],[226,0,194,0],[227,0,195,0],[228,0,196,0],[229,2,197,7],[229,11,197,16,"FpSqrt"],[229,17,197,22,"FpSqrt"],[229,18,197,23,"P"],[229,19,197,24],[229,21,197,26],[230,4,198,4],[231,4,199,4],[231,8,199,8,"P"],[231,9,199,9],[231,12,199,12,"_4n"],[231,15,199,15],[231,20,199,20,"_3n"],[231,23,199,23],[231,25,200,8],[231,32,200,15,"sqrt3mod4"],[231,41,200,24],[232,4,201,4],[233,4,202,4],[233,8,202,8,"P"],[233,9,202,9],[233,12,202,12,"_8n"],[233,15,202,15],[233,20,202,20,"_5n"],[233,23,202,23],[233,25,203,8],[233,32,203,15,"sqrt5mod8"],[233,41,203,24],[234,4,204,4],[235,4,205,4],[235,8,205,8,"P"],[235,9,205,9],[235,12,205,12,"_16n"],[235,16,205,16],[235,21,205,21,"_9n"],[235,24,205,24],[235,26,206,8],[235,33,206,15,"sqrt9mod16"],[235,43,206,25],[235,44,206,26,"P"],[235,45,206,27],[235,46,206,28],[236,4,207,4],[237,4,208,4],[237,11,208,11,"tonelliShanks"],[237,24,208,24],[237,25,208,25,"P"],[237,26,208,26],[237,27,208,27],[238,2,209,0],[239,2,210,0],[240,2,211,7],[240,8,211,13,"isNegativeLE"],[240,20,211,25],[240,23,211,28,"isNegativeLE"],[240,24,211,29,"num"],[240,27,211,32],[240,29,211,34,"modulo"],[240,35,211,40],[240,40,211,45],[240,41,211,46,"mod"],[240,44,211,49],[240,45,211,50,"num"],[240,48,211,53],[240,50,211,55,"modulo"],[240,56,211,61],[240,57,211,62],[240,60,211,65,"_1n"],[240,63,211,68],[240,69,211,74,"_1n"],[240,72,211,77],[241,2,212,0],[242,2,213,0],[242,8,213,6,"FIELD_FIELDS"],[242,20,213,18],[242,23,213,21],[242,24,214,4],[242,32,214,12],[242,34,214,14],[242,43,214,23],[242,45,214,25],[242,50,214,30],[242,52,214,32],[242,57,214,37],[242,59,214,39],[242,64,214,44],[242,66,214,46],[242,72,214,52],[242,74,214,54],[242,79,214,59],[242,81,215,4],[242,86,215,9],[242,88,215,11],[242,93,215,16],[242,95,215,18],[242,100,215,23],[242,102,215,25],[242,107,215,30],[242,109,215,32],[242,114,215,37],[242,116,215,39],[242,121,215,44],[242,123,216,4],[242,129,216,10],[242,131,216,12],[242,137,216,18],[242,139,216,20],[242,145,216,26],[242,147,216,28],[242,153,216,34],[242,154,217,1],[243,2,218,7],[243,11,218,16,"validateField"],[243,24,218,29,"validateField"],[243,25,218,30,"field"],[243,30,218,35],[243,32,218,37],[244,4,219,4],[244,10,219,10,"initial"],[244,17,219,17],[244,20,219,20],[245,6,220,8,"ORDER"],[245,11,220,13],[245,13,220,15],[245,21,220,23],[246,6,221,8,"MASK"],[246,10,221,12],[246,12,221,14],[246,20,221,22],[247,6,222,8,"BYTES"],[247,11,222,13],[247,13,222,15],[247,21,222,23],[248,6,223,8,"BITS"],[248,10,223,12],[248,12,223,14],[249,4,224,4],[249,5,224,5],[250,4,225,4],[250,10,225,10,"opts"],[250,14,225,14],[250,17,225,17,"FIELD_FIELDS"],[250,29,225,29],[250,30,225,30,"reduce"],[250,36,225,36],[250,37,225,37],[250,38,225,38,"map"],[250,41,225,41],[250,43,225,43,"val"],[250,46,225,46],[250,51,225,51],[251,6,226,8,"map"],[251,9,226,11],[251,10,226,12,"val"],[251,13,226,15],[251,14,226,16],[251,17,226,19],[251,27,226,29],[252,6,227,8],[252,13,227,15,"map"],[252,16,227,18],[253,4,228,4],[253,5,228,5],[253,7,228,7,"initial"],[253,14,228,14],[253,15,228,15],[254,4,229,4],[254,8,229,4,"_validateObject"],[254,16,229,19],[254,17,229,19,"_validateObject"],[254,32,229,19],[254,34,229,20,"field"],[254,39,229,25],[254,41,229,27,"opts"],[254,45,229,31],[254,46,229,32],[255,4,230,4],[256,4,231,4],[257,4,232,4],[258,4,233,4],[258,11,233,11,"field"],[258,16,233,16],[259,2,234,0],[260,2,235,0],[261,2,236,0],[262,0,237,0],[263,0,238,0],[264,0,239,0],[265,2,240,7],[265,11,240,16,"FpPow"],[265,16,240,21,"FpPow"],[265,17,240,22,"Fp"],[265,19,240,24],[265,21,240,26,"num"],[265,24,240,29],[265,26,240,31,"power"],[265,31,240,36],[265,33,240,38],[266,4,241,4],[266,8,241,8,"power"],[266,13,241,13],[266,16,241,16,"_0n"],[266,19,241,19],[266,21,242,8],[266,27,242,14],[266,31,242,18,"Error"],[266,36,242,23],[266,37,242,24],[266,78,242,65],[266,79,242,66],[267,4,243,4],[267,8,243,8,"power"],[267,13,243,13],[267,18,243,18,"_0n"],[267,21,243,21],[267,23,244,8],[267,30,244,15,"Fp"],[267,32,244,17],[267,33,244,18,"ONE"],[267,36,244,21],[268,4,245,4],[268,8,245,8,"power"],[268,13,245,13],[268,18,245,18,"_1n"],[268,21,245,21],[268,23,246,8],[268,30,246,15,"num"],[268,33,246,18],[269,4,247,4],[269,8,247,8,"p"],[269,9,247,9],[269,12,247,12,"Fp"],[269,14,247,14],[269,15,247,15,"ONE"],[269,18,247,18],[270,4,248,4],[270,8,248,8,"d"],[270,9,248,9],[270,12,248,12,"num"],[270,15,248,15],[271,4,249,4],[271,11,249,11,"power"],[271,16,249,16],[271,19,249,19,"_0n"],[271,22,249,22],[271,24,249,24],[272,6,250,8],[272,10,250,12,"power"],[272,15,250,17],[272,18,250,20,"_1n"],[272,21,250,23],[272,23,251,12,"p"],[272,24,251,13],[272,27,251,16,"Fp"],[272,29,251,18],[272,30,251,19,"mul"],[272,33,251,22],[272,34,251,23,"p"],[272,35,251,24],[272,37,251,26,"d"],[272,38,251,27],[272,39,251,28],[273,6,252,8,"d"],[273,7,252,9],[273,10,252,12,"Fp"],[273,12,252,14],[273,13,252,15,"sqr"],[273,16,252,18],[273,17,252,19,"d"],[273,18,252,20],[273,19,252,21],[274,6,253,8,"power"],[274,11,253,13],[274,16,253,18,"_1n"],[274,19,253,21],[275,4,254,4],[276,4,255,4],[276,11,255,11,"p"],[276,12,255,12],[277,2,256,0],[278,2,257,0],[279,0,258,0],[280,0,259,0],[281,0,260,0],[282,0,261,0],[283,2,262,7],[283,11,262,16,"FpInvertBatch"],[283,24,262,29,"FpInvertBatch"],[283,25,262,30,"Fp"],[283,27,262,32],[283,29,262,34,"nums"],[283,33,262,38],[283,35,262,40,"passZero"],[283,43,262,48],[283,46,262,51],[283,51,262,56],[283,53,262,58],[284,4,263,4],[284,10,263,10,"inverted"],[284,18,263,18],[284,21,263,21],[284,25,263,25,"Array"],[284,30,263,30],[284,31,263,31,"nums"],[284,35,263,35],[284,36,263,36,"length"],[284,42,263,42],[284,43,263,43],[284,44,263,44,"fill"],[284,48,263,48],[284,49,263,49,"passZero"],[284,57,263,57],[284,60,263,60,"Fp"],[284,62,263,62],[284,63,263,63,"ZERO"],[284,67,263,67],[284,70,263,70,"undefined"],[284,79,263,79],[284,80,263,80],[285,4,264,4],[286,4,265,4],[286,10,265,10,"multipliedAcc"],[286,23,265,23],[286,26,265,26,"nums"],[286,30,265,30],[286,31,265,31,"reduce"],[286,37,265,37],[286,38,265,38],[286,39,265,39,"acc"],[286,42,265,42],[286,44,265,44,"num"],[286,47,265,47],[286,49,265,49,"i"],[286,50,265,50],[286,55,265,55],[287,6,266,8],[287,10,266,12,"Fp"],[287,12,266,14],[287,13,266,15,"is0"],[287,16,266,18],[287,17,266,19,"num"],[287,20,266,22],[287,21,266,23],[287,23,267,12],[287,30,267,19,"acc"],[287,33,267,22],[288,6,268,8,"inverted"],[288,14,268,16],[288,15,268,17,"i"],[288,16,268,18],[288,17,268,19],[288,20,268,22,"acc"],[288,23,268,25],[289,6,269,8],[289,13,269,15,"Fp"],[289,15,269,17],[289,16,269,18,"mul"],[289,19,269,21],[289,20,269,22,"acc"],[289,23,269,25],[289,25,269,27,"num"],[289,28,269,30],[289,29,269,31],[290,4,270,4],[290,5,270,5],[290,7,270,7,"Fp"],[290,9,270,9],[290,10,270,10,"ONE"],[290,13,270,13],[290,14,270,14],[291,4,271,4],[292,4,272,4],[292,10,272,10,"invertedAcc"],[292,21,272,21],[292,24,272,24,"Fp"],[292,26,272,26],[292,27,272,27,"inv"],[292,30,272,30],[292,31,272,31,"multipliedAcc"],[292,44,272,44],[292,45,272,45],[293,4,273,4],[294,4,274,4,"nums"],[294,8,274,8],[294,9,274,9,"reduceRight"],[294,20,274,20],[294,21,274,21],[294,22,274,22,"acc"],[294,25,274,25],[294,27,274,27,"num"],[294,30,274,30],[294,32,274,32,"i"],[294,33,274,33],[294,38,274,38],[295,6,275,8],[295,10,275,12,"Fp"],[295,12,275,14],[295,13,275,15,"is0"],[295,16,275,18],[295,17,275,19,"num"],[295,20,275,22],[295,21,275,23],[295,23,276,12],[295,30,276,19,"acc"],[295,33,276,22],[296,6,277,8,"inverted"],[296,14,277,16],[296,15,277,17,"i"],[296,16,277,18],[296,17,277,19],[296,20,277,22,"Fp"],[296,22,277,24],[296,23,277,25,"mul"],[296,26,277,28],[296,27,277,29,"acc"],[296,30,277,32],[296,32,277,34,"inverted"],[296,40,277,42],[296,41,277,43,"i"],[296,42,277,44],[296,43,277,45],[296,44,277,46],[297,6,278,8],[297,13,278,15,"Fp"],[297,15,278,17],[297,16,278,18,"mul"],[297,19,278,21],[297,20,278,22,"acc"],[297,23,278,25],[297,25,278,27,"num"],[297,28,278,30],[297,29,278,31],[298,4,279,4],[298,5,279,5],[298,7,279,7,"invertedAcc"],[298,18,279,18],[298,19,279,19],[299,4,280,4],[299,11,280,11,"inverted"],[299,19,280,19],[300,2,281,0],[301,2,282,0],[302,2,283,7],[302,11,283,16,"FpDiv"],[302,16,283,21,"FpDiv"],[302,17,283,22,"Fp"],[302,19,283,24],[302,21,283,26,"lhs"],[302,24,283,29],[302,26,283,31,"rhs"],[302,29,283,34],[302,31,283,36],[303,4,284,4],[303,11,284,11,"Fp"],[303,13,284,13],[303,14,284,14,"mul"],[303,17,284,17],[303,18,284,18,"lhs"],[303,21,284,21],[303,23,284,23],[303,30,284,30,"rhs"],[303,33,284,33],[303,38,284,38],[303,46,284,46],[303,49,284,49,"invert"],[303,55,284,55],[303,56,284,56,"rhs"],[303,59,284,59],[303,61,284,61,"Fp"],[303,63,284,63],[303,64,284,64,"ORDER"],[303,69,284,69],[303,70,284,70],[303,73,284,73,"Fp"],[303,75,284,75],[303,76,284,76,"inv"],[303,79,284,79],[303,80,284,80,"rhs"],[303,83,284,83],[303,84,284,84],[303,85,284,85],[304,2,285,0],[305,2,286,0],[306,0,287,0],[307,0,288,0],[308,0,289,0],[309,0,290,0],[310,0,291,0],[311,0,292,0],[312,0,293,0],[313,0,294,0],[314,2,295,7],[314,11,295,16,"FpLegendre"],[314,21,295,26,"FpLegendre"],[314,22,295,27,"Fp"],[314,24,295,29],[314,26,295,31,"n"],[314,27,295,32],[314,29,295,34],[315,4,296,4],[316,4,297,4],[317,4,298,4],[317,10,298,10,"p1mod2"],[317,16,298,16],[317,19,298,19],[317,20,298,20,"Fp"],[317,22,298,22],[317,23,298,23,"ORDER"],[317,28,298,28],[317,31,298,31,"_1n"],[317,34,298,34],[317,38,298,38,"_2n"],[317,41,298,41],[318,4,299,4],[318,10,299,10,"powered"],[318,17,299,17],[318,20,299,20,"Fp"],[318,22,299,22],[318,23,299,23,"pow"],[318,26,299,26],[318,27,299,27,"n"],[318,28,299,28],[318,30,299,30,"p1mod2"],[318,36,299,36],[318,37,299,37],[319,4,300,4],[319,10,300,10,"yes"],[319,13,300,13],[319,16,300,16,"Fp"],[319,18,300,18],[319,19,300,19,"eql"],[319,22,300,22],[319,23,300,23,"powered"],[319,30,300,30],[319,32,300,32,"Fp"],[319,34,300,34],[319,35,300,35,"ONE"],[319,38,300,38],[319,39,300,39],[320,4,301,4],[320,10,301,10,"zero"],[320,14,301,14],[320,17,301,17,"Fp"],[320,19,301,19],[320,20,301,20,"eql"],[320,23,301,23],[320,24,301,24,"powered"],[320,31,301,31],[320,33,301,33,"Fp"],[320,35,301,35],[320,36,301,36,"ZERO"],[320,40,301,40],[320,41,301,41],[321,4,302,4],[321,10,302,10,"no"],[321,12,302,12],[321,15,302,15,"Fp"],[321,17,302,17],[321,18,302,18,"eql"],[321,21,302,21],[321,22,302,22,"powered"],[321,29,302,29],[321,31,302,31,"Fp"],[321,33,302,33],[321,34,302,34,"neg"],[321,37,302,37],[321,38,302,38,"Fp"],[321,40,302,40],[321,41,302,41,"ONE"],[321,44,302,44],[321,45,302,45],[321,46,302,46],[322,4,303,4],[322,8,303,8],[322,9,303,9,"yes"],[322,12,303,12],[322,16,303,16],[322,17,303,17,"zero"],[322,21,303,21],[322,25,303,25],[322,26,303,26,"no"],[322,28,303,28],[322,30,304,8],[322,36,304,14],[322,40,304,18,"Error"],[322,45,304,23],[322,46,304,24],[322,78,304,56],[322,79,304,57],[323,4,305,4],[323,11,305,11,"yes"],[323,14,305,14],[323,17,305,17],[323,18,305,18],[323,21,305,21,"zero"],[323,25,305,25],[323,28,305,28],[323,29,305,29],[323,32,305,32],[323,33,305,33],[323,34,305,34],[324,2,306,0],[325,2,307,0],[326,2,308,7],[326,11,308,16,"FpIsSquare"],[326,21,308,26,"FpIsSquare"],[326,22,308,27,"Fp"],[326,24,308,29],[326,26,308,31,"n"],[326,27,308,32],[326,29,308,34],[327,4,309,4],[327,10,309,10,"l"],[327,11,309,11],[327,14,309,14,"FpLegendre"],[327,24,309,24],[327,25,309,25,"Fp"],[327,27,309,27],[327,29,309,29,"n"],[327,30,309,30],[327,31,309,31],[328,4,310,4],[328,11,310,11,"l"],[328,12,310,12],[328,17,310,17],[328,18,310,18],[329,2,311,0],[330,2,312,0],[331,2,313,7],[331,11,313,16,"nLength"],[331,18,313,23,"nLength"],[331,19,313,24,"n"],[331,20,313,25],[331,22,313,27,"nBitLength"],[331,32,313,37],[331,34,313,39],[332,4,314,4],[333,4,315,4],[333,8,315,8,"nBitLength"],[333,18,315,18],[333,23,315,23,"undefined"],[333,32,315,32],[333,34,316,8],[333,38,316,8,"anumber"],[333,46,316,15],[333,47,316,15,"anumber"],[333,54,316,15],[333,56,316,16,"nBitLength"],[333,66,316,26],[333,67,316,27],[334,4,317,4],[334,10,317,10,"_nBitLength"],[334,21,317,21],[334,24,317,24,"nBitLength"],[334,34,317,34],[334,39,317,39,"undefined"],[334,48,317,48],[334,51,317,51,"nBitLength"],[334,61,317,61],[334,64,317,64,"n"],[334,65,317,65],[334,66,317,66,"toString"],[334,74,317,74],[334,75,317,75],[334,76,317,76],[334,77,317,77],[334,78,317,78,"length"],[334,84,317,84],[335,4,318,4],[335,10,318,10,"nByteLength"],[335,21,318,21],[335,24,318,24,"Math"],[335,28,318,28],[335,29,318,29,"ceil"],[335,33,318,33],[335,34,318,34,"_nBitLength"],[335,45,318,45],[335,48,318,48],[335,49,318,49],[335,50,318,50],[336,4,319,4],[336,11,319,11],[337,6,319,13,"nBitLength"],[337,16,319,23],[337,18,319,25,"_nBitLength"],[337,29,319,36],[338,6,319,38,"nByteLength"],[339,4,319,50],[339,5,319,51],[340,2,320,0],[341,2,321,0],[342,0,322,0],[343,0,323,0],[344,0,324,0],[345,0,325,0],[346,0,326,0],[347,0,327,0],[348,0,328,0],[349,0,329,0],[350,0,330,0],[351,0,331,0],[352,0,332,0],[353,0,333,0],[354,0,334,0],[355,0,335,0],[356,0,336,0],[357,0,337,0],[358,0,338,0],[359,0,339,0],[360,2,340,7],[360,11,340,16,"Field"],[360,16,340,21,"Field"],[360,17,340,22,"ORDER"],[360,22,340,27],[360,24,340,29,"bitLenOrOpts"],[360,36,340,41],[361,2,340,43],[362,2,341,0,"isLE"],[362,6,341,4],[362,9,341,7],[362,14,341,12],[362,16,341,14,"opts"],[362,20,341,18],[362,23,341,21],[362,24,341,22],[362,25,341,23],[362,27,341,25],[363,4,342,4],[363,8,342,8,"ORDER"],[363,13,342,13],[363,17,342,17,"_0n"],[363,20,342,20],[363,22,343,8],[363,28,343,14],[363,32,343,18,"Error"],[363,37,343,23],[363,38,343,24],[363,79,343,65],[363,82,343,68,"ORDER"],[363,87,343,73],[363,88,343,74],[364,4,344,4],[364,8,344,8,"_nbitLength"],[364,19,344,19],[364,22,344,22,"undefined"],[364,31,344,31],[365,4,345,4],[365,8,345,8,"_sqrt"],[365,13,345,13],[365,16,345,16,"undefined"],[365,25,345,25],[366,4,346,4],[366,8,346,8,"modFromBytes"],[366,20,346,20],[366,23,346,23],[366,28,346,28],[367,4,347,4],[367,8,347,8,"allowedLengths"],[367,22,347,22],[367,25,347,25,"undefined"],[367,34,347,34],[368,4,348,4],[368,8,348,8],[368,15,348,15,"bitLenOrOpts"],[368,27,348,27],[368,32,348,32],[368,40,348,40],[368,44,348,44,"bitLenOrOpts"],[368,56,348,56],[368,60,348,60],[368,64,348,64],[368,66,348,66],[369,6,349,8],[369,10,349,12,"opts"],[369,14,349,16],[369,15,349,17,"sqrt"],[369,19,349,21],[369,23,349,25,"isLE"],[369,27,349,29],[369,29,350,12],[369,35,350,18],[369,39,350,22,"Error"],[369,44,350,27],[369,45,350,28],[369,83,350,66],[369,84,350,67],[370,6,351,8],[370,12,351,14,"_opts"],[370,17,351,19],[370,20,351,22,"bitLenOrOpts"],[370,32,351,34],[371,6,352,8],[371,10,352,12,"_opts"],[371,15,352,17],[371,16,352,18,"BITS"],[371,20,352,22],[371,22,353,12,"_nbitLength"],[371,33,353,23],[371,36,353,26,"_opts"],[371,41,353,31],[371,42,353,32,"BITS"],[371,46,353,36],[372,6,354,8],[372,10,354,12,"_opts"],[372,15,354,17],[372,16,354,18,"sqrt"],[372,20,354,22],[372,22,355,12,"_sqrt"],[372,27,355,17],[372,30,355,20,"_opts"],[372,35,355,25],[372,36,355,26,"sqrt"],[372,40,355,30],[373,6,356,8],[373,10,356,12],[373,17,356,19,"_opts"],[373,22,356,24],[373,23,356,25,"isLE"],[373,27,356,29],[373,32,356,34],[373,41,356,43],[373,43,357,12,"isLE"],[373,47,357,16],[373,50,357,19,"_opts"],[373,55,357,24],[373,56,357,25,"isLE"],[373,60,357,29],[374,6,358,8],[374,10,358,12],[374,17,358,19,"_opts"],[374,22,358,24],[374,23,358,25,"modFromBytes"],[374,35,358,37],[374,40,358,42],[374,49,358,51],[374,51,359,12,"modFromBytes"],[374,63,359,24],[374,66,359,27,"_opts"],[374,71,359,32],[374,72,359,33,"modFromBytes"],[374,84,359,45],[375,6,360,8,"allowedLengths"],[375,20,360,22],[375,23,360,25,"_opts"],[375,28,360,30],[375,29,360,31,"allowedLengths"],[375,43,360,45],[376,4,361,4],[376,5,361,5],[376,11,362,9],[377,6,363,8],[377,10,363,12],[377,17,363,19,"bitLenOrOpts"],[377,29,363,31],[377,34,363,36],[377,42,363,44],[377,44,364,12,"_nbitLength"],[377,55,364,23],[377,58,364,26,"bitLenOrOpts"],[377,70,364,38],[378,6,365,8],[378,10,365,12,"opts"],[378,14,365,16],[378,15,365,17,"sqrt"],[378,19,365,21],[378,21,366,12,"_sqrt"],[378,26,366,17],[378,29,366,20,"opts"],[378,33,366,24],[378,34,366,25,"sqrt"],[378,38,366,29],[379,4,367,4],[380,4,368,4],[380,10,368,10],[381,6,368,12,"nBitLength"],[381,16,368,22],[381,18,368,24,"BITS"],[381,22,368,28],[382,6,368,30,"nByteLength"],[382,17,368,41],[382,19,368,43,"BYTES"],[383,4,368,49],[383,5,368,50],[383,8,368,53,"nLength"],[383,15,368,60],[383,16,368,61,"ORDER"],[383,21,368,66],[383,23,368,68,"_nbitLength"],[383,34,368,79],[383,35,368,80],[384,4,369,4],[384,8,369,8,"BYTES"],[384,13,369,13],[384,16,369,16],[384,20,369,20],[384,22,370,8],[384,28,370,14],[384,32,370,18,"Error"],[384,37,370,23],[384,38,370,24],[384,86,370,72],[384,87,370,73],[385,4,371,4],[385,8,371,8,"sqrtP"],[385,13,371,13],[385,14,371,14],[385,15,371,15],[386,4,372,4],[386,10,372,10,"f"],[386,11,372,11],[386,14,372,14,"Object"],[386,20,372,20],[386,21,372,21,"freeze"],[386,27,372,27],[386,28,372,28],[387,6,373,8,"ORDER"],[387,11,373,13],[388,6,374,8,"isLE"],[388,10,374,12],[389,6,375,8,"BITS"],[389,10,375,12],[390,6,376,8,"BYTES"],[390,11,376,13],[391,6,377,8,"MASK"],[391,10,377,12],[391,12,377,14],[391,16,377,14,"bitMask"],[391,24,377,21],[391,25,377,21,"bitMask"],[391,32,377,21],[391,34,377,22,"BITS"],[391,38,377,26],[391,39,377,27],[392,6,378,8,"ZERO"],[392,10,378,12],[392,12,378,14,"_0n"],[392,15,378,17],[393,6,379,8,"ONE"],[393,9,379,11],[393,11,379,13,"_1n"],[393,14,379,16],[394,6,380,8,"allowedLengths"],[394,20,380,22],[394,22,380,24,"allowedLengths"],[394,36,380,38],[395,6,381,8,"create"],[395,12,381,14],[395,14,381,17,"num"],[395,17,381,20],[395,21,381,25,"mod"],[395,24,381,28],[395,25,381,29,"num"],[395,28,381,32],[395,30,381,34,"ORDER"],[395,35,381,39],[395,36,381,40],[396,6,382,8,"isValid"],[396,13,382,15],[396,15,382,18,"num"],[396,18,382,21],[396,22,382,26],[397,8,383,12],[397,12,383,16],[397,19,383,23,"num"],[397,22,383,26],[397,27,383,31],[397,35,383,39],[397,37,384,16],[397,43,384,22],[397,47,384,26,"Error"],[397,52,384,31],[397,53,384,32],[397,99,384,78],[397,102,384,81],[397,109,384,88,"num"],[397,112,384,91],[397,113,384,92],[398,8,385,12],[398,15,385,19,"_0n"],[398,18,385,22],[398,22,385,26,"num"],[398,25,385,29],[398,29,385,33,"num"],[398,32,385,36],[398,35,385,39,"ORDER"],[398,40,385,44],[398,41,385,45],[398,42,385,46],[399,6,386,8],[399,7,386,9],[400,6,387,8,"is0"],[400,9,387,11],[400,11,387,14,"num"],[400,14,387,17],[400,18,387,22,"num"],[400,21,387,25],[400,26,387,30,"_0n"],[400,29,387,33],[401,6,388,8],[402,6,389,8,"isValidNot0"],[402,17,389,19],[402,19,389,22,"num"],[402,22,389,25],[402,26,389,30],[402,27,389,31,"f"],[402,28,389,32],[402,29,389,33,"is0"],[402,32,389,36],[402,33,389,37,"num"],[402,36,389,40],[402,37,389,41],[402,41,389,45,"f"],[402,42,389,46],[402,43,389,47,"isValid"],[402,50,389,54],[402,51,389,55,"num"],[402,54,389,58],[402,55,389,59],[403,6,390,8,"isOdd"],[403,11,390,13],[403,13,390,16,"num"],[403,16,390,19],[403,20,390,24],[403,21,390,25,"num"],[403,24,390,28],[403,27,390,31,"_1n"],[403,30,390,34],[403,36,390,40,"_1n"],[403,39,390,43],[404,6,391,8,"neg"],[404,9,391,11],[404,11,391,14,"num"],[404,14,391,17],[404,18,391,22,"mod"],[404,21,391,25],[404,22,391,26],[404,23,391,27,"num"],[404,26,391,30],[404,28,391,32,"ORDER"],[404,33,391,37],[404,34,391,38],[405,6,392,8,"eql"],[405,9,392,11],[405,11,392,13,"eql"],[405,12,392,14,"lhs"],[405,15,392,17],[405,17,392,19,"rhs"],[405,20,392,22],[405,25,392,27,"lhs"],[405,28,392,30],[405,33,392,35,"rhs"],[405,36,392,38],[406,6,393,8,"sqr"],[406,9,393,11],[406,11,393,14,"num"],[406,14,393,17],[406,18,393,22,"mod"],[406,21,393,25],[406,22,393,26,"num"],[406,25,393,29],[406,28,393,32,"num"],[406,31,393,35],[406,33,393,37,"ORDER"],[406,38,393,42],[406,39,393,43],[407,6,394,8,"add"],[407,9,394,11],[407,11,394,13,"add"],[407,12,394,14,"lhs"],[407,15,394,17],[407,17,394,19,"rhs"],[407,20,394,22],[407,25,394,27,"mod"],[407,28,394,30],[407,29,394,31,"lhs"],[407,32,394,34],[407,35,394,37,"rhs"],[407,38,394,40],[407,40,394,42,"ORDER"],[407,45,394,47],[407,46,394,48],[408,6,395,8,"sub"],[408,9,395,11],[408,11,395,13,"sub"],[408,12,395,14,"lhs"],[408,15,395,17],[408,17,395,19,"rhs"],[408,20,395,22],[408,25,395,27,"mod"],[408,28,395,30],[408,29,395,31,"lhs"],[408,32,395,34],[408,35,395,37,"rhs"],[408,38,395,40],[408,40,395,42,"ORDER"],[408,45,395,47],[408,46,395,48],[409,6,396,8,"mul"],[409,9,396,11],[409,11,396,13,"mul"],[409,12,396,14,"lhs"],[409,15,396,17],[409,17,396,19,"rhs"],[409,20,396,22],[409,25,396,27,"mod"],[409,28,396,30],[409,29,396,31,"lhs"],[409,32,396,34],[409,35,396,37,"rhs"],[409,38,396,40],[409,40,396,42,"ORDER"],[409,45,396,47],[409,46,396,48],[410,6,397,8,"pow"],[410,9,397,11],[410,11,397,13,"pow"],[410,12,397,14,"num"],[410,15,397,17],[410,17,397,19,"power"],[410,22,397,24],[410,27,397,29,"FpPow"],[410,32,397,34],[410,33,397,35,"f"],[410,34,397,36],[410,36,397,38,"num"],[410,39,397,41],[410,41,397,43,"power"],[410,46,397,48],[410,47,397,49],[411,6,398,8,"div"],[411,9,398,11],[411,11,398,13,"div"],[411,12,398,14,"lhs"],[411,15,398,17],[411,17,398,19,"rhs"],[411,20,398,22],[411,25,398,27,"mod"],[411,28,398,30],[411,29,398,31,"lhs"],[411,32,398,34],[411,35,398,37,"invert"],[411,41,398,43],[411,42,398,44,"rhs"],[411,45,398,47],[411,47,398,49,"ORDER"],[411,52,398,54],[411,53,398,55],[411,55,398,57,"ORDER"],[411,60,398,62],[411,61,398,63],[412,6,399,8],[413,6,400,8,"sqrN"],[413,10,400,12],[413,12,400,15,"num"],[413,15,400,18],[413,19,400,23,"num"],[413,22,400,26],[413,25,400,29,"num"],[413,28,400,32],[414,6,401,8,"addN"],[414,10,401,12],[414,12,401,14,"addN"],[414,13,401,15,"lhs"],[414,16,401,18],[414,18,401,20,"rhs"],[414,21,401,23],[414,26,401,28,"lhs"],[414,29,401,31],[414,32,401,34,"rhs"],[414,35,401,37],[415,6,402,8,"subN"],[415,10,402,12],[415,12,402,14,"subN"],[415,13,402,15,"lhs"],[415,16,402,18],[415,18,402,20,"rhs"],[415,21,402,23],[415,26,402,28,"lhs"],[415,29,402,31],[415,32,402,34,"rhs"],[415,35,402,37],[416,6,403,8,"mulN"],[416,10,403,12],[416,12,403,14,"mulN"],[416,13,403,15,"lhs"],[416,16,403,18],[416,18,403,20,"rhs"],[416,21,403,23],[416,26,403,28,"lhs"],[416,29,403,31],[416,32,403,34,"rhs"],[416,35,403,37],[417,6,404,8,"inv"],[417,9,404,11],[417,11,404,14,"num"],[417,14,404,17],[417,18,404,22,"invert"],[417,24,404,28],[417,25,404,29,"num"],[417,28,404,32],[417,30,404,34,"ORDER"],[417,35,404,39],[417,36,404,40],[418,6,405,8,"sqrt"],[418,10,405,12],[418,12,405,14,"_sqrt"],[418,17,405,19],[418,22,406,14,"n"],[418,23,406,15],[418,27,406,20],[419,8,407,16],[419,12,407,20],[419,13,407,21,"sqrtP"],[419,18,407,26],[419,20,408,20,"sqrtP"],[419,25,408,25],[419,28,408,28,"FpSqrt"],[419,34,408,34],[419,35,408,35,"ORDER"],[419,40,408,40],[419,41,408,41],[420,8,409,16],[420,15,409,23,"sqrtP"],[420,20,409,28],[420,21,409,29,"f"],[420,22,409,30],[420,24,409,32,"n"],[420,25,409,33],[420,26,409,34],[421,6,410,12],[421,7,410,13],[421,8,410,14],[422,6,411,8,"toBytes"],[422,13,411,15],[422,15,411,18,"num"],[422,18,411,21],[422,22,411,27,"isLE"],[422,26,411,31],[422,29,411,34],[422,33,411,34,"numberToBytesLE"],[422,41,411,49],[422,42,411,49,"numberToBytesLE"],[422,57,411,49],[422,59,411,50,"num"],[422,62,411,53],[422,64,411,55,"BYTES"],[422,69,411,60],[422,70,411,61],[422,73,411,64],[422,77,411,64,"numberToBytesBE"],[422,85,411,79],[422,86,411,79,"numberToBytesBE"],[422,101,411,79],[422,103,411,80,"num"],[422,106,411,83],[422,108,411,85,"BYTES"],[422,113,411,90],[422,114,411,92],[423,6,412,8,"fromBytes"],[423,15,412,17],[423,17,412,19,"fromBytes"],[423,18,412,20,"bytes"],[423,23,412,25],[423,25,412,27,"skipValidation"],[423,39,412,41],[423,42,412,44],[423,46,412,48],[423,51,412,53],[424,8,413,12],[424,12,413,16,"allowedLengths"],[424,26,413,30],[424,28,413,32],[425,10,414,16],[425,14,414,20],[425,15,414,21,"allowedLengths"],[425,29,414,35],[425,30,414,36,"includes"],[425,38,414,44],[425,39,414,45,"bytes"],[425,44,414,50],[425,45,414,51,"length"],[425,51,414,57],[425,52,414,58],[425,56,414,62,"bytes"],[425,61,414,67],[425,62,414,68,"length"],[425,68,414,74],[425,71,414,77,"BYTES"],[425,76,414,82],[425,78,414,84],[426,12,415,20],[426,18,415,26],[426,22,415,30,"Error"],[426,27,415,35],[426,28,415,36],[426,56,415,64],[426,59,415,67,"allowedLengths"],[426,73,415,81],[426,76,415,84],[426,90,415,98],[426,93,415,101,"bytes"],[426,98,415,106],[426,99,415,107,"length"],[426,105,415,113],[426,106,415,114],[427,10,416,16],[428,10,417,16],[428,16,417,22,"padded"],[428,22,417,28],[428,25,417,31],[428,29,417,35,"Uint8Array"],[428,39,417,45],[428,40,417,46,"BYTES"],[428,45,417,51],[428,46,417,52],[429,10,418,16],[430,10,419,16,"padded"],[430,16,419,22],[430,17,419,23,"set"],[430,20,419,26],[430,21,419,27,"bytes"],[430,26,419,32],[430,28,419,34,"isLE"],[430,32,419,38],[430,35,419,41],[430,36,419,42],[430,39,419,45,"padded"],[430,45,419,51],[430,46,419,52,"length"],[430,52,419,58],[430,55,419,61,"bytes"],[430,60,419,66],[430,61,419,67,"length"],[430,67,419,73],[430,68,419,74],[431,10,420,16,"bytes"],[431,15,420,21],[431,18,420,24,"padded"],[431,24,420,30],[432,8,421,12],[433,8,422,12],[433,12,422,16,"bytes"],[433,17,422,21],[433,18,422,22,"length"],[433,24,422,28],[433,29,422,33,"BYTES"],[433,34,422,38],[433,36,423,16],[433,42,423,22],[433,46,423,26,"Error"],[433,51,423,31],[433,52,423,32],[433,80,423,60],[433,83,423,63,"BYTES"],[433,88,423,68],[433,91,423,71],[433,105,423,85],[433,108,423,88,"bytes"],[433,113,423,93],[433,114,423,94,"length"],[433,120,423,100],[433,121,423,101],[434,8,424,12],[434,12,424,16,"scalar"],[434,18,424,22],[434,21,424,25,"isLE"],[434,25,424,29],[434,28,424,32],[434,32,424,32,"bytesToNumberLE"],[434,40,424,47],[434,41,424,47,"bytesToNumberLE"],[434,56,424,47],[434,58,424,48,"bytes"],[434,63,424,53],[434,64,424,54],[434,67,424,57],[434,71,424,57,"bytesToNumberBE"],[434,79,424,72],[434,80,424,72,"bytesToNumberBE"],[434,95,424,72],[434,97,424,73,"bytes"],[434,102,424,78],[434,103,424,79],[435,8,425,12],[435,12,425,16,"modFromBytes"],[435,24,425,28],[435,26,426,16,"scalar"],[435,32,426,22],[435,35,426,25,"mod"],[435,38,426,28],[435,39,426,29,"scalar"],[435,45,426,35],[435,47,426,37,"ORDER"],[435,52,426,42],[435,53,426,43],[436,8,427,12],[436,12,427,16],[436,13,427,17,"skipValidation"],[436,27,427,31],[436,29,428,16],[436,33,428,20],[436,34,428,21,"f"],[436,35,428,22],[436,36,428,23,"isValid"],[436,43,428,30],[436,44,428,31,"scalar"],[436,50,428,37],[436,51,428,38],[436,53,429,20],[436,59,429,26],[436,63,429,30,"Error"],[436,68,429,35],[436,69,429,36],[436,119,429,86],[436,120,429,87],[437,8,430,12],[438,8,431,12],[439,8,432,12],[439,15,432,19,"scalar"],[439,21,432,25],[440,6,433,8],[440,7,433,9],[441,6,434,8],[442,6,435,8,"invertBatch"],[442,17,435,19],[442,19,435,22,"lst"],[442,22,435,25],[442,26,435,30,"FpInvertBatch"],[442,39,435,43],[442,40,435,44,"f"],[442,41,435,45],[442,43,435,47,"lst"],[442,46,435,50],[442,47,435,51],[443,6,436,8],[444,6,437,8],[445,6,438,8,"cmov"],[445,10,438,12],[445,12,438,14,"cmov"],[445,13,438,15,"a"],[445,14,438,16],[445,16,438,18,"b"],[445,17,438,19],[445,19,438,21,"c"],[445,20,438,22],[445,25,438,28,"c"],[445,26,438,29],[445,29,438,32,"b"],[445,30,438,33],[445,33,438,36,"a"],[446,4,439,4],[446,5,439,5],[446,6,439,6],[447,4,440,4],[447,11,440,11,"Object"],[447,17,440,17],[447,18,440,18,"freeze"],[447,24,440,24],[447,25,440,25,"f"],[447,26,440,26],[447,27,440,27],[448,2,441,0],[449,2,442,0],[450,2,443,0],[451,2,444,0],[452,2,445,0],[453,2,446,0],[454,2,447,0],[455,2,448,0],[456,2,449,0],[457,2,450,0],[458,2,451,0],[459,2,452,0],[460,2,453,0],[461,2,454,0],[462,2,455,7],[462,11,455,16,"FpSqrtOdd"],[462,20,455,25,"FpSqrtOdd"],[462,21,455,26,"Fp"],[462,23,455,28],[462,25,455,30,"elm"],[462,28,455,33],[462,30,455,35],[463,4,456,4],[463,8,456,8],[463,9,456,9,"Fp"],[463,11,456,11],[463,12,456,12,"isOdd"],[463,17,456,17],[463,19,457,8],[463,25,457,14],[463,29,457,18,"Error"],[463,34,457,23],[463,35,457,24],[463,61,457,50],[463,62,457,51],[464,4,458,4],[464,10,458,10,"root"],[464,14,458,14],[464,17,458,17,"Fp"],[464,19,458,19],[464,20,458,20,"sqrt"],[464,24,458,24],[464,25,458,25,"elm"],[464,28,458,28],[464,29,458,29],[465,4,459,4],[465,11,459,11,"Fp"],[465,13,459,13],[465,14,459,14,"isOdd"],[465,19,459,19],[465,20,459,20,"root"],[465,24,459,24],[465,25,459,25],[465,28,459,28,"root"],[465,32,459,32],[465,35,459,35,"Fp"],[465,37,459,37],[465,38,459,38,"neg"],[465,41,459,41],[465,42,459,42,"root"],[465,46,459,46],[465,47,459,47],[466,2,460,0],[467,2,461,7],[467,11,461,16,"FpSqrtEven"],[467,21,461,26,"FpSqrtEven"],[467,22,461,27,"Fp"],[467,24,461,29],[467,26,461,31,"elm"],[467,29,461,34],[467,31,461,36],[468,4,462,4],[468,8,462,8],[468,9,462,9,"Fp"],[468,11,462,11],[468,12,462,12,"isOdd"],[468,17,462,17],[468,19,463,8],[468,25,463,14],[468,29,463,18,"Error"],[468,34,463,23],[468,35,463,24],[468,61,463,50],[468,62,463,51],[469,4,464,4],[469,10,464,10,"root"],[469,14,464,14],[469,17,464,17,"Fp"],[469,19,464,19],[469,20,464,20,"sqrt"],[469,24,464,24],[469,25,464,25,"elm"],[469,28,464,28],[469,29,464,29],[470,4,465,4],[470,11,465,11,"Fp"],[470,13,465,13],[470,14,465,14,"isOdd"],[470,19,465,19],[470,20,465,20,"root"],[470,24,465,24],[470,25,465,25],[470,28,465,28,"Fp"],[470,30,465,30],[470,31,465,31,"neg"],[470,34,465,34],[470,35,465,35,"root"],[470,39,465,39],[470,40,465,40],[470,43,465,43,"root"],[470,47,465,47],[471,2,466,0],[472,2,467,0],[473,0,468,0],[474,0,469,0],[475,0,470,0],[476,0,471,0],[477,0,472,0],[478,2,473,7],[478,11,473,16,"hashToPrivateScalar"],[478,30,473,35,"hashToPrivateScalar"],[478,31,473,36,"hash"],[478,35,473,40],[478,37,473,42,"groupOrder"],[478,47,473,52],[478,49,473,54,"isLE"],[478,53,473,58],[478,56,473,61],[478,61,473,66],[478,63,473,68],[479,4,474,4,"hash"],[479,8,474,8],[479,11,474,11],[479,15,474,11,"ensureBytes"],[479,23,474,22],[479,24,474,22,"ensureBytes"],[479,35,474,22],[479,37,474,23],[479,50,474,36],[479,52,474,38,"hash"],[479,56,474,42],[479,57,474,43],[480,4,475,4],[480,10,475,10,"hashLen"],[480,17,475,17],[480,20,475,20,"hash"],[480,24,475,24],[480,25,475,25,"length"],[480,31,475,31],[481,4,476,4],[481,10,476,10,"minLen"],[481,16,476,16],[481,19,476,19,"nLength"],[481,26,476,26],[481,27,476,27,"groupOrder"],[481,37,476,37],[481,38,476,38],[481,39,476,39,"nByteLength"],[481,50,476,50],[481,53,476,53],[481,54,476,54],[482,4,477,4],[482,8,477,8,"minLen"],[482,14,477,14],[482,17,477,17],[482,19,477,19],[482,23,477,23,"hashLen"],[482,30,477,30],[482,33,477,33,"minLen"],[482,39,477,39],[482,43,477,43,"hashLen"],[482,50,477,50],[482,53,477,53],[482,57,477,57],[482,59,478,8],[482,65,478,14],[482,69,478,18,"Error"],[482,74,478,23],[482,75,478,24],[482,107,478,56],[482,110,478,59,"minLen"],[482,116,478,65],[482,119,478,68],[482,147,478,96],[482,150,478,99,"hashLen"],[482,157,478,106],[482,158,478,107],[483,4,479,4],[483,10,479,10,"num"],[483,13,479,13],[483,16,479,16,"isLE"],[483,20,479,20],[483,23,479,23],[483,27,479,23,"bytesToNumberLE"],[483,35,479,38],[483,36,479,38,"bytesToNumberLE"],[483,51,479,38],[483,53,479,39,"hash"],[483,57,479,43],[483,58,479,44],[483,61,479,47],[483,65,479,47,"bytesToNumberBE"],[483,73,479,62],[483,74,479,62,"bytesToNumberBE"],[483,89,479,62],[483,91,479,63,"hash"],[483,95,479,67],[483,96,479,68],[484,4,480,4],[484,11,480,11,"mod"],[484,14,480,14],[484,15,480,15,"num"],[484,18,480,18],[484,20,480,20,"groupOrder"],[484,30,480,30],[484,33,480,33,"_1n"],[484,36,480,36],[484,37,480,37],[484,40,480,40,"_1n"],[484,43,480,43],[485,2,481,0],[486,2,482,0],[487,0,483,0],[488,0,484,0],[489,0,485,0],[490,0,486,0],[491,0,487,0],[492,2,488,7],[492,11,488,16,"getFieldBytesLength"],[492,30,488,35,"getFieldBytesLength"],[492,31,488,36,"fieldOrder"],[492,41,488,46],[492,43,488,48],[493,4,489,4],[493,8,489,8],[493,15,489,15,"fieldOrder"],[493,25,489,25],[493,30,489,30],[493,38,489,38],[493,40,490,8],[493,46,490,14],[493,50,490,18,"Error"],[493,55,490,23],[493,56,490,24],[493,84,490,52],[493,85,490,53],[494,4,491,4],[494,10,491,10,"bitLength"],[494,19,491,19],[494,22,491,22,"fieldOrder"],[494,32,491,32],[494,33,491,33,"toString"],[494,41,491,41],[494,42,491,42],[494,43,491,43],[494,44,491,44],[494,45,491,45,"length"],[494,51,491,51],[495,4,492,4],[495,11,492,11,"Math"],[495,15,492,15],[495,16,492,16,"ceil"],[495,20,492,20],[495,21,492,21,"bitLength"],[495,30,492,30],[495,33,492,33],[495,34,492,34],[495,35,492,35],[496,2,493,0],[497,2,494,0],[498,0,495,0],[499,0,496,0],[500,0,497,0],[501,0,498,0],[502,0,499,0],[503,0,500,0],[504,2,501,7],[504,11,501,16,"getMinHashLength"],[504,27,501,32,"getMinHashLength"],[504,28,501,33,"fieldOrder"],[504,38,501,43],[504,40,501,45],[505,4,502,4],[505,10,502,10,"length"],[505,16,502,16],[505,19,502,19,"getFieldBytesLength"],[505,38,502,38],[505,39,502,39,"fieldOrder"],[505,49,502,49],[505,50,502,50],[506,4,503,4],[506,11,503,11,"length"],[506,17,503,17],[506,20,503,20,"Math"],[506,24,503,24],[506,25,503,25,"ceil"],[506,29,503,29],[506,30,503,30,"length"],[506,36,503,36],[506,39,503,39],[506,40,503,40],[506,41,503,41],[507,2,504,0],[508,2,505,0],[509,0,506,0],[510,0,507,0],[511,0,508,0],[512,0,509,0],[513,0,510,0],[514,0,511,0],[515,0,512,0],[516,0,513,0],[517,0,514,0],[518,0,515,0],[519,0,516,0],[520,0,517,0],[521,2,518,7],[521,11,518,16,"mapHashToField"],[521,25,518,30,"mapHashToField"],[521,26,518,31,"key"],[521,29,518,34],[521,31,518,36,"fieldOrder"],[521,41,518,46],[521,43,518,48,"isLE"],[521,47,518,52],[521,50,518,55],[521,55,518,60],[521,57,518,62],[522,4,519,4],[522,10,519,10,"len"],[522,13,519,13],[522,16,519,16,"key"],[522,19,519,19],[522,20,519,20,"length"],[522,26,519,26],[523,4,520,4],[523,10,520,10,"fieldLen"],[523,18,520,18],[523,21,520,21,"getFieldBytesLength"],[523,40,520,40],[523,41,520,41,"fieldOrder"],[523,51,520,51],[523,52,520,52],[524,4,521,4],[524,10,521,10,"minLen"],[524,16,521,16],[524,19,521,19,"getMinHashLength"],[524,35,521,35],[524,36,521,36,"fieldOrder"],[524,46,521,46],[524,47,521,47],[525,4,522,4],[526,4,523,4],[526,8,523,8,"len"],[526,11,523,11],[526,14,523,14],[526,16,523,16],[526,20,523,20,"len"],[526,23,523,23],[526,26,523,26,"minLen"],[526,32,523,32],[526,36,523,36,"len"],[526,39,523,39],[526,42,523,42],[526,46,523,46],[526,48,524,8],[526,54,524,14],[526,58,524,18,"Error"],[526,63,524,23],[526,64,524,24],[526,75,524,35],[526,78,524,38,"minLen"],[526,84,524,44],[526,87,524,47],[526,115,524,75],[526,118,524,78,"len"],[526,121,524,81],[526,122,524,82],[527,4,525,4],[527,10,525,10,"num"],[527,13,525,13],[527,16,525,16,"isLE"],[527,20,525,20],[527,23,525,23],[527,27,525,23,"bytesToNumberLE"],[527,35,525,38],[527,36,525,38,"bytesToNumberLE"],[527,51,525,38],[527,53,525,39,"key"],[527,56,525,42],[527,57,525,43],[527,60,525,46],[527,64,525,46,"bytesToNumberBE"],[527,72,525,61],[527,73,525,61,"bytesToNumberBE"],[527,88,525,61],[527,90,525,62,"key"],[527,93,525,65],[527,94,525,66],[528,4,526,4],[529,4,527,4],[529,10,527,10,"reduced"],[529,17,527,17],[529,20,527,20,"mod"],[529,23,527,23],[529,24,527,24,"num"],[529,27,527,27],[529,29,527,29,"fieldOrder"],[529,39,527,39],[529,42,527,42,"_1n"],[529,45,527,45],[529,46,527,46],[529,49,527,49,"_1n"],[529,52,527,52],[530,4,528,4],[530,11,528,11,"isLE"],[530,15,528,15],[530,18,528,18],[530,22,528,18,"numberToBytesLE"],[530,30,528,33],[530,31,528,33,"numberToBytesLE"],[530,46,528,33],[530,48,528,34,"reduced"],[530,55,528,41],[530,57,528,43,"fieldLen"],[530,65,528,51],[530,66,528,52],[530,69,528,55],[530,73,528,55,"numberToBytesBE"],[530,81,528,70],[530,82,528,70,"numberToBytesBE"],[530,97,528,70],[530,99,528,71,"reduced"],[530,106,528,78],[530,108,528,80,"fieldLen"],[530,116,528,88],[530,117,528,89],[531,2,529,0],[532,0,529,1],[532,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;OCe;CDG;OEO;CFE;OGE;CHO;OIK;CJuB;AKC;CLG;AMK;CNK;AOC;CPS;AQG;WCO;KDa;CRC;OUQ;WC4B;KDmC;CVC;OYY;CZY;4BaE,iDb;OcO;qCCO;KDG;CdM;OgBM;ChBgB;OiBM;sCCG;KDK;qBEI;KFK;CjBE;OoBE;CpBE;OqBU;CrBW;OsBE;CtBG;OuBE;CvBO;OwBoB;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,2EnB;mBoBC;SpBqB;qBqBE,8BrB;csBG,wBtB;CxBG;O+Cc;C/CK;OgDC;ChDK;OiDO;CjDQ;OkDO;ClDK;OmDQ;CnDG;OoDc;CpDW"},"hasCjsExports":false},"type":"js/module"}]} |