mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 11:11:01 +00:00
1 line
85 KiB
Plaintext
1 line
85 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 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 // 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, _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 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, _utilsJs.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, _utilsJs.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, _utilsJs.numberToBytesLE)(num, BYTES) : (0, _utilsJs.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, _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: 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, _utilsJs.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, _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 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, _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 var reduced = mod(num, fieldOrder - _1n) + _1n;\n return isLE ? (0, _utilsJs.numberToBytesLE)(reduced, fieldLen) : (0, _utilsJs.numberToBytesBE)(reduced, fieldLen);\n }\n});","lineCount":577,"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,6,10,6,"_0n"],[43,9,10,9],[43,12,10,12,"BigInt"],[43,18,10,18],[43,19,10,19],[43,20,10,20],[43,21,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,6,12,6,"_4n"],[48,9,12,9],[48,12,12,12],[48,27,12,28,"BigInt"],[48,33,12,34],[48,34,12,35],[48,35,12,36],[48,36,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,6,14,6,"_8n"],[52,9,14,9],[52,12,14,12],[52,27,14,28,"BigInt"],[52,33,14,34],[52,34,14,35],[52,35,14,36],[52,36,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,8,17,10,"result"],[57,14,17,16],[57,17,17,19,"a"],[57,18,17,20],[57,21,17,23,"b"],[57,22,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,10,54,14,"q"],[95,11,54,15],[95,14,54,18,"b"],[95,15,54,19],[95,18,54,22,"a"],[95,19,54,23],[96,6,55,8],[96,10,55,14,"r"],[96,11,55,15],[96,14,55,18,"b"],[96,15,55,19],[96,18,55,22,"a"],[96,19,55,23],[97,6,56,8],[97,10,56,14,"m"],[97,11,56,15],[97,14,56,18,"x"],[97,15,56,19],[97,18,56,22,"u"],[97,19,56,23],[97,22,56,26,"q"],[97,23,56,27],[98,6,57,8],[98,10,57,14,"n"],[98,11,57,15],[98,14,57,18,"y"],[98,15,57,19],[98,18,57,22,"v"],[98,19,57,23],[98,22,57,26,"q"],[98,23,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,8,61,10,"gcd"],[102,11,61,13],[102,14,61,16,"b"],[102,15,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,8,75,10,"p1div4"],[114,14,75,16],[114,17,75,19],[114,18,75,20,"Fp"],[114,20,75,22],[114,21,75,23,"ORDER"],[114,26,75,28],[114,29,75,31,"_1n"],[114,32,75,34],[114,36,75,38,"_4n"],[114,39,75,41],[115,4,76,4],[115,8,76,10,"root"],[115,12,76,14],[115,15,76,17,"Fp"],[115,17,76,19],[115,18,76,20,"pow"],[115,21,76,23],[115,22,76,24,"n"],[115,23,76,25],[115,25,76,27,"p1div4"],[115,31,76,33],[115,32,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,8,81,10,"p5div8"],[120,14,81,16],[120,17,81,19],[120,18,81,20,"Fp"],[120,20,81,22],[120,21,81,23,"ORDER"],[120,26,81,28],[120,29,81,31,"_5n"],[120,32,81,34],[120,36,81,38,"_8n"],[120,39,81,41],[121,4,82,4],[121,8,82,10,"n2"],[121,10,82,12],[121,13,82,15,"Fp"],[121,15,82,17],[121,16,82,18,"mul"],[121,19,82,21],[121,20,82,22,"n"],[121,21,82,23],[121,23,82,25,"_2n"],[121,26,82,28],[121,27,82,29],[122,4,83,4],[122,8,83,10,"v"],[122,9,83,11],[122,12,83,14,"Fp"],[122,14,83,16],[122,15,83,17,"pow"],[122,18,83,20],[122,19,83,21,"n2"],[122,21,83,23],[122,23,83,25,"p5div8"],[122,29,83,31],[122,30,83,32],[123,4,84,4],[123,8,84,10,"nv"],[123,10,84,12],[123,13,84,15,"Fp"],[123,15,84,17],[123,16,84,18,"mul"],[123,19,84,21],[123,20,84,22,"n"],[123,21,84,23],[123,23,84,25,"v"],[123,24,84,26],[123,25,84,27],[124,4,85,4],[124,8,85,10,"i"],[124,9,85,11],[124,12,85,14,"Fp"],[124,14,85,16],[124,15,85,17,"mul"],[124,18,85,20],[124,19,85,21,"Fp"],[124,21,85,23],[124,22,85,24,"mul"],[124,25,85,27],[124,26,85,28,"nv"],[124,28,85,30],[124,30,85,32,"_2n"],[124,33,85,35],[124,34,85,36],[124,36,85,38,"v"],[124,37,85,39],[124,38,85,40],[125,4,86,4],[125,8,86,10,"root"],[125,12,86,14],[125,15,86,17,"Fp"],[125,17,86,19],[125,18,86,20,"mul"],[125,21,86,23],[125,22,86,24,"nv"],[125,24,86,26],[125,26,86,28,"Fp"],[125,28,86,30],[125,29,86,31,"sub"],[125,32,86,34],[125,33,86,35,"i"],[125,34,86,36],[125,36,86,38,"Fp"],[125,38,86,40],[125,39,86,41,"ONE"],[125,42,86,44],[125,43,86,45],[125,44,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,8,93,10,"Fp_"],[132,11,93,13],[132,14,93,16,"Field"],[132,19,93,21],[132,20,93,22,"P"],[132,21,93,23],[132,22,93,24],[133,4,94,4],[133,8,94,10,"tn"],[133,10,94,12],[133,13,94,15,"tonelliShanks"],[133,26,94,28],[133,27,94,29,"P"],[133,28,94,30],[133,29,94,31],[134,4,95,4],[134,8,95,10,"c1"],[134,10,95,12],[134,13,95,15,"tn"],[134,15,95,17],[134,16,95,18,"Fp_"],[134,19,95,21],[134,21,95,23,"Fp_"],[134,24,95,26],[134,25,95,27,"neg"],[134,28,95,30],[134,29,95,31,"Fp_"],[134,32,95,34],[134,33,95,35,"ONE"],[134,36,95,38],[134,37,95,39],[134,38,95,40],[134,39,95,41],[134,40,95,42],[135,4,96,4],[135,8,96,10,"c2"],[135,10,96,12],[135,13,96,15,"tn"],[135,15,96,17],[135,16,96,18,"Fp_"],[135,19,96,21],[135,21,96,23,"c1"],[135,23,96,25],[135,24,96,26],[135,25,96,27],[135,26,96,28],[136,4,97,4],[136,8,97,10,"c3"],[136,10,97,12],[136,13,97,15,"tn"],[136,15,97,17],[136,16,97,18,"Fp_"],[136,19,97,21],[136,21,97,23,"Fp_"],[136,24,97,26],[136,25,97,27,"neg"],[136,28,97,30],[136,29,97,31,"c1"],[136,31,97,33],[136,32,97,34],[136,33,97,35],[136,34,97,36],[136,35,97,37],[137,4,98,4],[137,8,98,10,"c4"],[137,10,98,12],[137,13,98,15],[137,14,98,16,"P"],[137,15,98,17],[137,18,98,20,"_7n"],[137,21,98,23],[137,25,98,27,"_16n"],[137,29,98,31],[137,30,98,32],[137,31,98,33],[138,4,99,4],[138,11,99,11],[138,21,99,12,"Fp"],[138,23,99,14],[138,25,99,16,"n"],[138,26,99,17],[138,28,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,10,102,14,"tv3"],[141,13,102,17],[141,16,102,20,"Fp"],[141,18,102,22],[141,19,102,23,"mul"],[141,22,102,26],[141,23,102,27,"tv1"],[141,26,102,30],[141,28,102,32,"c2"],[141,30,102,34],[141,31,102,35],[141,32,102,36],[141,33,102,37],[142,6,103,8],[142,10,103,14,"tv4"],[142,13,103,17],[142,16,103,20,"Fp"],[142,18,103,22],[142,19,103,23,"mul"],[142,22,103,26],[142,23,103,27,"tv1"],[142,26,103,30],[142,28,103,32,"c3"],[142,30,103,34],[142,31,103,35],[142,32,103,36],[142,33,103,37],[143,6,104,8],[143,10,104,14,"e1"],[143,12,104,16],[143,15,104,19,"Fp"],[143,17,104,21],[143,18,104,22,"eql"],[143,21,104,25],[143,22,104,26,"Fp"],[143,24,104,28],[143,25,104,29,"sqr"],[143,28,104,32],[143,29,104,33,"tv2"],[143,32,104,36],[143,33,104,37],[143,35,104,39,"n"],[143,36,104,40],[143,37,104,41],[143,38,104,42],[143,39,104,43],[144,6,105,8],[144,10,105,14,"e2"],[144,12,105,16],[144,15,105,19,"Fp"],[144,17,105,21],[144,18,105,22,"eql"],[144,21,105,25],[144,22,105,26,"Fp"],[144,24,105,28],[144,25,105,29,"sqr"],[144,28,105,32],[144,29,105,33,"tv3"],[144,32,105,36],[144,33,105,37],[144,35,105,39,"n"],[144,36,105,40],[144,37,105,41],[144,38,105,42],[144,39,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,10,108,14,"e3"],[147,12,108,16],[147,15,108,19,"Fp"],[147,17,108,21],[147,18,108,22,"eql"],[147,21,108,25],[147,22,108,26,"Fp"],[147,24,108,28],[147,25,108,29,"sqr"],[147,28,108,32],[147,29,108,33,"tv2"],[147,32,108,36],[147,33,108,37],[147,35,108,39,"n"],[147,36,108,40],[147,37,108,41],[147,38,108,42],[147,39,108,43],[148,6,109,8],[148,10,109,14,"root"],[148,14,109,18],[148,17,109,21,"Fp"],[148,19,109,23],[148,20,109,24,"cmov"],[148,24,109,28],[148,25,109,29,"tv1"],[148,28,109,32],[148,30,109,34,"tv2"],[148,33,109,37],[148,35,109,39,"e3"],[148,37,109,41],[148,38,109,42],[148,39,109,43],[148,40,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,8,135,10,"_Fp"],[173,11,135,13],[173,14,135,16,"Field"],[173,19,135,21],[173,20,135,22,"P"],[173,21,135,23],[173,22,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,8,148,10,"Q1div2"],[184,14,148,16],[184,17,148,19],[184,18,148,20,"Q"],[184,19,148,21],[184,22,148,24,"_1n"],[184,25,148,27],[184,29,148,31,"_2n"],[184,32,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,12,175,18,"exponent"],[207,20,175,26],[207,23,175,29,"_1n"],[207,26,175,32],[207,30,175,36,"BigInt"],[207,36,175,42],[207,37,175,43,"M"],[207,38,175,44],[207,41,175,47,"i"],[207,42,175,48],[207,45,175,51],[207,46,175,52],[207,47,175,53],[207,48,175,54],[207,49,175,55],[208,8,176,12],[208,12,176,18,"b"],[208,13,176,19],[208,16,176,22,"Fp"],[208,18,176,24],[208,19,176,25,"pow"],[208,22,176,28],[208,23,176,29,"c"],[208,24,176,30],[208,26,176,32,"exponent"],[208,34,176,40],[208,35,176,41],[208,36,176,42],[208,37,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,6,211,13,"isNegativeLE"],[240,18,211,25],[240,21,211,28],[240,30,211,13,"isNegativeLE"],[240,42,211,25,"isNegativeLE"],[240,43,211,29,"num"],[240,46,211,32],[240,48,211,34,"modulo"],[240,54,211,40],[241,4,211,40],[241,11,211,45],[241,12,211,46,"mod"],[241,15,211,49],[241,16,211,50,"num"],[241,19,211,53],[241,21,211,55,"modulo"],[241,27,211,61],[241,28,211,62],[241,31,211,65,"_1n"],[241,34,211,68],[241,40,211,74,"_1n"],[241,43,211,77],[242,2,211,77],[243,2,212,0],[244,2,213,0],[244,6,213,6,"FIELD_FIELDS"],[244,18,213,18],[244,21,213,21],[244,22,214,4],[244,30,214,12],[244,32,214,14],[244,41,214,23],[244,43,214,25],[244,48,214,30],[244,50,214,32],[244,55,214,37],[244,57,214,39],[244,62,214,44],[244,64,214,46],[244,70,214,52],[244,72,214,54],[244,77,214,59],[244,79,215,4],[244,84,215,9],[244,86,215,11],[244,91,215,16],[244,93,215,18],[244,98,215,23],[244,100,215,25],[244,105,215,30],[244,107,215,32],[244,112,215,37],[244,114,215,39],[244,119,215,44],[244,121,216,4],[244,127,216,10],[244,129,216,12],[244,135,216,18],[244,137,216,20],[244,143,216,26],[244,145,216,28],[244,151,216,34],[244,152,217,1],[245,2,218,7],[245,11,218,16,"validateField"],[245,24,218,29,"validateField"],[245,25,218,30,"field"],[245,30,218,35],[245,32,218,37],[246,4,219,4],[246,8,219,10,"initial"],[246,15,219,17],[246,18,219,20],[247,6,220,8,"ORDER"],[247,11,220,13],[247,13,220,15],[247,21,220,23],[248,6,221,8,"MASK"],[248,10,221,12],[248,12,221,14],[248,20,221,22],[249,6,222,8,"BYTES"],[249,11,222,13],[249,13,222,15],[249,21,222,23],[250,6,223,8,"BITS"],[250,10,223,12],[250,12,223,14],[251,4,224,4],[251,5,224,5],[252,4,225,4],[252,8,225,10,"opts"],[252,12,225,14],[252,15,225,17,"FIELD_FIELDS"],[252,27,225,29],[252,28,225,30,"reduce"],[252,34,225,36],[252,35,225,37],[252,45,225,38,"map"],[252,48,225,41],[252,50,225,43,"val"],[252,53,225,46],[252,55,225,51],[253,6,226,8,"map"],[253,9,226,11],[253,10,226,12,"val"],[253,13,226,15],[253,14,226,16],[253,17,226,19],[253,27,226,29],[254,6,227,8],[254,13,227,15,"map"],[254,16,227,18],[255,4,228,4],[255,5,228,5],[255,7,228,7,"initial"],[255,14,228,14],[255,15,228,15],[256,4,229,4],[256,8,229,4,"_validateObject"],[256,16,229,19],[256,17,229,19,"_validateObject"],[256,32,229,19],[256,34,229,20,"field"],[256,39,229,25],[256,41,229,27,"opts"],[256,45,229,31],[256,46,229,32],[257,4,230,4],[258,4,231,4],[259,4,232,4],[260,4,233,4],[260,11,233,11,"field"],[260,16,233,16],[261,2,234,0],[262,2,235,0],[263,2,236,0],[264,0,237,0],[265,0,238,0],[266,0,239,0],[267,2,240,7],[267,11,240,16,"FpPow"],[267,16,240,21,"FpPow"],[267,17,240,22,"Fp"],[267,19,240,24],[267,21,240,26,"num"],[267,24,240,29],[267,26,240,31,"power"],[267,31,240,36],[267,33,240,38],[268,4,241,4],[268,8,241,8,"power"],[268,13,241,13],[268,16,241,16,"_0n"],[268,19,241,19],[268,21,242,8],[268,27,242,14],[268,31,242,18,"Error"],[268,36,242,23],[268,37,242,24],[268,78,242,65],[268,79,242,66],[269,4,243,4],[269,8,243,8,"power"],[269,13,243,13],[269,18,243,18,"_0n"],[269,21,243,21],[269,23,244,8],[269,30,244,15,"Fp"],[269,32,244,17],[269,33,244,18,"ONE"],[269,36,244,21],[270,4,245,4],[270,8,245,8,"power"],[270,13,245,13],[270,18,245,18,"_1n"],[270,21,245,21],[270,23,246,8],[270,30,246,15,"num"],[270,33,246,18],[271,4,247,4],[271,8,247,8,"p"],[271,9,247,9],[271,12,247,12,"Fp"],[271,14,247,14],[271,15,247,15,"ONE"],[271,18,247,18],[272,4,248,4],[272,8,248,8,"d"],[272,9,248,9],[272,12,248,12,"num"],[272,15,248,15],[273,4,249,4],[273,11,249,11,"power"],[273,16,249,16],[273,19,249,19,"_0n"],[273,22,249,22],[273,24,249,24],[274,6,250,8],[274,10,250,12,"power"],[274,15,250,17],[274,18,250,20,"_1n"],[274,21,250,23],[274,23,251,12,"p"],[274,24,251,13],[274,27,251,16,"Fp"],[274,29,251,18],[274,30,251,19,"mul"],[274,33,251,22],[274,34,251,23,"p"],[274,35,251,24],[274,37,251,26,"d"],[274,38,251,27],[274,39,251,28],[275,6,252,8,"d"],[275,7,252,9],[275,10,252,12,"Fp"],[275,12,252,14],[275,13,252,15,"sqr"],[275,16,252,18],[275,17,252,19,"d"],[275,18,252,20],[275,19,252,21],[276,6,253,8,"power"],[276,11,253,13],[276,16,253,18,"_1n"],[276,19,253,21],[277,4,254,4],[278,4,255,4],[278,11,255,11,"p"],[278,12,255,12],[279,2,256,0],[280,2,257,0],[281,0,258,0],[282,0,259,0],[283,0,260,0],[284,0,261,0],[285,2,262,7],[285,11,262,16,"FpInvertBatch"],[285,24,262,29,"FpInvertBatch"],[285,25,262,30,"Fp"],[285,27,262,32],[285,29,262,34,"nums"],[285,33,262,38],[285,35,262,58],[286,4,262,58],[286,8,262,40,"passZero"],[286,16,262,48],[286,19,262,48,"arguments"],[286,28,262,48],[286,29,262,48,"length"],[286,35,262,48],[286,43,262,48,"arguments"],[286,52,262,48],[286,60,262,48,"undefined"],[286,69,262,48],[286,72,262,48,"arguments"],[286,81,262,48],[286,87,262,51],[286,92,262,56],[287,4,263,4],[287,8,263,10,"inverted"],[287,16,263,18],[287,19,263,21],[287,23,263,25,"Array"],[287,28,263,30],[287,29,263,31,"nums"],[287,33,263,35],[287,34,263,36,"length"],[287,40,263,42],[287,41,263,43],[287,42,263,44,"fill"],[287,46,263,48],[287,47,263,49,"passZero"],[287,55,263,57],[287,58,263,60,"Fp"],[287,60,263,62],[287,61,263,63,"ZERO"],[287,65,263,67],[287,68,263,70,"undefined"],[287,77,263,79],[287,78,263,80],[288,4,264,4],[289,4,265,4],[289,8,265,10,"multipliedAcc"],[289,21,265,23],[289,24,265,26,"nums"],[289,28,265,30],[289,29,265,31,"reduce"],[289,35,265,37],[289,36,265,38],[289,46,265,39,"acc"],[289,49,265,42],[289,51,265,44,"num"],[289,54,265,47],[289,56,265,49,"i"],[289,57,265,50],[289,59,265,55],[290,6,266,8],[290,10,266,12,"Fp"],[290,12,266,14],[290,13,266,15,"is0"],[290,16,266,18],[290,17,266,19,"num"],[290,20,266,22],[290,21,266,23],[290,23,267,12],[290,30,267,19,"acc"],[290,33,267,22],[291,6,268,8,"inverted"],[291,14,268,16],[291,15,268,17,"i"],[291,16,268,18],[291,17,268,19],[291,20,268,22,"acc"],[291,23,268,25],[292,6,269,8],[292,13,269,15,"Fp"],[292,15,269,17],[292,16,269,18,"mul"],[292,19,269,21],[292,20,269,22,"acc"],[292,23,269,25],[292,25,269,27,"num"],[292,28,269,30],[292,29,269,31],[293,4,270,4],[293,5,270,5],[293,7,270,7,"Fp"],[293,9,270,9],[293,10,270,10,"ONE"],[293,13,270,13],[293,14,270,14],[294,4,271,4],[295,4,272,4],[295,8,272,10,"invertedAcc"],[295,19,272,21],[295,22,272,24,"Fp"],[295,24,272,26],[295,25,272,27,"inv"],[295,28,272,30],[295,29,272,31,"multipliedAcc"],[295,42,272,44],[295,43,272,45],[296,4,273,4],[297,4,274,4,"nums"],[297,8,274,8],[297,9,274,9,"reduceRight"],[297,20,274,20],[297,21,274,21],[297,31,274,22,"acc"],[297,34,274,25],[297,36,274,27,"num"],[297,39,274,30],[297,41,274,32,"i"],[297,42,274,33],[297,44,274,38],[298,6,275,8],[298,10,275,12,"Fp"],[298,12,275,14],[298,13,275,15,"is0"],[298,16,275,18],[298,17,275,19,"num"],[298,20,275,22],[298,21,275,23],[298,23,276,12],[298,30,276,19,"acc"],[298,33,276,22],[299,6,277,8,"inverted"],[299,14,277,16],[299,15,277,17,"i"],[299,16,277,18],[299,17,277,19],[299,20,277,22,"Fp"],[299,22,277,24],[299,23,277,25,"mul"],[299,26,277,28],[299,27,277,29,"acc"],[299,30,277,32],[299,32,277,34,"inverted"],[299,40,277,42],[299,41,277,43,"i"],[299,42,277,44],[299,43,277,45],[299,44,277,46],[300,6,278,8],[300,13,278,15,"Fp"],[300,15,278,17],[300,16,278,18,"mul"],[300,19,278,21],[300,20,278,22,"acc"],[300,23,278,25],[300,25,278,27,"num"],[300,28,278,30],[300,29,278,31],[301,4,279,4],[301,5,279,5],[301,7,279,7,"invertedAcc"],[301,18,279,18],[301,19,279,19],[302,4,280,4],[302,11,280,11,"inverted"],[302,19,280,19],[303,2,281,0],[304,2,282,0],[305,2,283,7],[305,11,283,16,"FpDiv"],[305,16,283,21,"FpDiv"],[305,17,283,22,"Fp"],[305,19,283,24],[305,21,283,26,"lhs"],[305,24,283,29],[305,26,283,31,"rhs"],[305,29,283,34],[305,31,283,36],[306,4,284,4],[306,11,284,11,"Fp"],[306,13,284,13],[306,14,284,14,"mul"],[306,17,284,17],[306,18,284,18,"lhs"],[306,21,284,21],[306,23,284,23],[306,30,284,30,"rhs"],[306,33,284,33],[306,38,284,38],[306,46,284,46],[306,49,284,49,"invert"],[306,55,284,55],[306,56,284,56,"rhs"],[306,59,284,59],[306,61,284,61,"Fp"],[306,63,284,63],[306,64,284,64,"ORDER"],[306,69,284,69],[306,70,284,70],[306,73,284,73,"Fp"],[306,75,284,75],[306,76,284,76,"inv"],[306,79,284,79],[306,80,284,80,"rhs"],[306,83,284,83],[306,84,284,84],[306,85,284,85],[307,2,285,0],[308,2,286,0],[309,0,287,0],[310,0,288,0],[311,0,289,0],[312,0,290,0],[313,0,291,0],[314,0,292,0],[315,0,293,0],[316,0,294,0],[317,2,295,7],[317,11,295,16,"FpLegendre"],[317,21,295,26,"FpLegendre"],[317,22,295,27,"Fp"],[317,24,295,29],[317,26,295,31,"n"],[317,27,295,32],[317,29,295,34],[318,4,296,4],[319,4,297,4],[320,4,298,4],[320,8,298,10,"p1mod2"],[320,14,298,16],[320,17,298,19],[320,18,298,20,"Fp"],[320,20,298,22],[320,21,298,23,"ORDER"],[320,26,298,28],[320,29,298,31,"_1n"],[320,32,298,34],[320,36,298,38,"_2n"],[320,39,298,41],[321,4,299,4],[321,8,299,10,"powered"],[321,15,299,17],[321,18,299,20,"Fp"],[321,20,299,22],[321,21,299,23,"pow"],[321,24,299,26],[321,25,299,27,"n"],[321,26,299,28],[321,28,299,30,"p1mod2"],[321,34,299,36],[321,35,299,37],[322,4,300,4],[322,8,300,10,"yes"],[322,11,300,13],[322,14,300,16,"Fp"],[322,16,300,18],[322,17,300,19,"eql"],[322,20,300,22],[322,21,300,23,"powered"],[322,28,300,30],[322,30,300,32,"Fp"],[322,32,300,34],[322,33,300,35,"ONE"],[322,36,300,38],[322,37,300,39],[323,4,301,4],[323,8,301,10,"zero"],[323,12,301,14],[323,15,301,17,"Fp"],[323,17,301,19],[323,18,301,20,"eql"],[323,21,301,23],[323,22,301,24,"powered"],[323,29,301,31],[323,31,301,33,"Fp"],[323,33,301,35],[323,34,301,36,"ZERO"],[323,38,301,40],[323,39,301,41],[324,4,302,4],[324,8,302,10,"no"],[324,10,302,12],[324,13,302,15,"Fp"],[324,15,302,17],[324,16,302,18,"eql"],[324,19,302,21],[324,20,302,22,"powered"],[324,27,302,29],[324,29,302,31,"Fp"],[324,31,302,33],[324,32,302,34,"neg"],[324,35,302,37],[324,36,302,38,"Fp"],[324,38,302,40],[324,39,302,41,"ONE"],[324,42,302,44],[324,43,302,45],[324,44,302,46],[325,4,303,4],[325,8,303,8],[325,9,303,9,"yes"],[325,12,303,12],[325,16,303,16],[325,17,303,17,"zero"],[325,21,303,21],[325,25,303,25],[325,26,303,26,"no"],[325,28,303,28],[325,30,304,8],[325,36,304,14],[325,40,304,18,"Error"],[325,45,304,23],[325,46,304,24],[325,78,304,56],[325,79,304,57],[326,4,305,4],[326,11,305,11,"yes"],[326,14,305,14],[326,17,305,17],[326,18,305,18],[326,21,305,21,"zero"],[326,25,305,25],[326,28,305,28],[326,29,305,29],[326,32,305,32],[326,33,305,33],[326,34,305,34],[327,2,306,0],[328,2,307,0],[329,2,308,7],[329,11,308,16,"FpIsSquare"],[329,21,308,26,"FpIsSquare"],[329,22,308,27,"Fp"],[329,24,308,29],[329,26,308,31,"n"],[329,27,308,32],[329,29,308,34],[330,4,309,4],[330,8,309,10,"l"],[330,9,309,11],[330,12,309,14,"FpLegendre"],[330,22,309,24],[330,23,309,25,"Fp"],[330,25,309,27],[330,27,309,29,"n"],[330,28,309,30],[330,29,309,31],[331,4,310,4],[331,11,310,11,"l"],[331,12,310,12],[331,17,310,17],[331,18,310,18],[332,2,311,0],[333,2,312,0],[334,2,313,7],[334,11,313,16,"nLength"],[334,18,313,23,"nLength"],[334,19,313,24,"n"],[334,20,313,25],[334,22,313,27,"nBitLength"],[334,32,313,37],[334,34,313,39],[335,4,314,4],[336,4,315,4],[336,8,315,8,"nBitLength"],[336,18,315,18],[336,23,315,23,"undefined"],[336,32,315,32],[336,34,316,8],[336,38,316,8,"anumber"],[336,46,316,15],[336,47,316,15,"anumber"],[336,54,316,15],[336,56,316,16,"nBitLength"],[336,66,316,26],[336,67,316,27],[337,4,317,4],[337,8,317,10,"_nBitLength"],[337,19,317,21],[337,22,317,24,"nBitLength"],[337,32,317,34],[337,37,317,39,"undefined"],[337,46,317,48],[337,49,317,51,"nBitLength"],[337,59,317,61],[337,62,317,64,"n"],[337,63,317,65],[337,64,317,66,"toString"],[337,72,317,74],[337,73,317,75],[337,74,317,76],[337,75,317,77],[337,76,317,78,"length"],[337,82,317,84],[338,4,318,4],[338,8,318,10,"nByteLength"],[338,19,318,21],[338,22,318,24,"Math"],[338,26,318,28],[338,27,318,29,"ceil"],[338,31,318,33],[338,32,318,34,"_nBitLength"],[338,43,318,45],[338,46,318,48],[338,47,318,49],[338,48,318,50],[339,4,319,4],[339,11,319,11],[340,6,319,13,"nBitLength"],[340,16,319,23],[340,18,319,25,"_nBitLength"],[340,29,319,36],[341,6,319,38,"nByteLength"],[341,17,319,49],[341,19,319,38,"nByteLength"],[342,4,319,50],[342,5,319,51],[343,2,320,0],[344,2,321,0],[345,0,322,0],[346,0,323,0],[347,0,324,0],[348,0,325,0],[349,0,326,0],[350,0,327,0],[351,0,328,0],[352,0,329,0],[353,0,330,0],[354,0,331,0],[355,0,332,0],[356,0,333,0],[357,0,334,0],[358,0,335,0],[359,0,336,0],[360,0,337,0],[361,0,338,0],[362,0,339,0],[363,2,340,7],[363,11,340,16,"Field"],[363,16,340,21,"Field"],[363,17,340,22,"ORDER"],[363,22,340,27],[363,24,340,29,"bitLenOrOpts"],[363,36,340,41],[363,38,341,25],[364,4,341,25],[364,8,341,0,"isLE"],[364,12,341,4],[364,15,341,4,"arguments"],[364,24,341,4],[364,25,341,4,"length"],[364,31,341,4],[364,39,341,4,"arguments"],[364,48,341,4],[364,56,341,4,"undefined"],[364,65,341,4],[364,68,341,4,"arguments"],[364,77,341,4],[364,83,341,7],[364,88,341,12],[365,4,341,12],[365,8,341,14,"opts"],[365,12,341,18],[365,15,341,18,"arguments"],[365,24,341,18],[365,25,341,18,"length"],[365,31,341,18],[365,39,341,18,"arguments"],[365,48,341,18],[365,56,341,18,"undefined"],[365,65,341,18],[365,68,341,18,"arguments"],[365,77,341,18],[365,83,341,21],[365,84,341,22],[365,85,341,23],[366,4,342,4],[366,8,342,8,"ORDER"],[366,13,342,13],[366,17,342,17,"_0n"],[366,20,342,20],[366,22,343,8],[366,28,343,14],[366,32,343,18,"Error"],[366,37,343,23],[366,38,343,24],[366,79,343,65],[366,82,343,68,"ORDER"],[366,87,343,73],[366,88,343,74],[367,4,344,4],[367,8,344,8,"_nbitLength"],[367,19,344,19],[367,22,344,22,"undefined"],[367,31,344,31],[368,4,345,4],[368,8,345,8,"_sqrt"],[368,13,345,13],[368,16,345,16,"undefined"],[368,25,345,25],[369,4,346,4],[369,8,346,8,"modFromBytes"],[369,20,346,20],[369,23,346,23],[369,28,346,28],[370,4,347,4],[370,8,347,8,"allowedLengths"],[370,22,347,22],[370,25,347,25,"undefined"],[370,34,347,34],[371,4,348,4],[371,8,348,8],[371,15,348,15,"bitLenOrOpts"],[371,27,348,27],[371,32,348,32],[371,40,348,40],[371,44,348,44,"bitLenOrOpts"],[371,56,348,56],[371,60,348,60],[371,64,348,64],[371,66,348,66],[372,6,349,8],[372,10,349,12,"opts"],[372,14,349,16],[372,15,349,17,"sqrt"],[372,19,349,21],[372,23,349,25,"isLE"],[372,27,349,29],[372,29,350,12],[372,35,350,18],[372,39,350,22,"Error"],[372,44,350,27],[372,45,350,28],[372,83,350,66],[372,84,350,67],[373,6,351,8],[373,10,351,14,"_opts"],[373,15,351,19],[373,18,351,22,"bitLenOrOpts"],[373,30,351,34],[374,6,352,8],[374,10,352,12,"_opts"],[374,15,352,17],[374,16,352,18,"BITS"],[374,20,352,22],[374,22,353,12,"_nbitLength"],[374,33,353,23],[374,36,353,26,"_opts"],[374,41,353,31],[374,42,353,32,"BITS"],[374,46,353,36],[375,6,354,8],[375,10,354,12,"_opts"],[375,15,354,17],[375,16,354,18,"sqrt"],[375,20,354,22],[375,22,355,12,"_sqrt"],[375,27,355,17],[375,30,355,20,"_opts"],[375,35,355,25],[375,36,355,26,"sqrt"],[375,40,355,30],[376,6,356,8],[376,10,356,12],[376,17,356,19,"_opts"],[376,22,356,24],[376,23,356,25,"isLE"],[376,27,356,29],[376,32,356,34],[376,41,356,43],[376,43,357,12,"isLE"],[376,47,357,16],[376,50,357,19,"_opts"],[376,55,357,24],[376,56,357,25,"isLE"],[376,60,357,29],[377,6,358,8],[377,10,358,12],[377,17,358,19,"_opts"],[377,22,358,24],[377,23,358,25,"modFromBytes"],[377,35,358,37],[377,40,358,42],[377,49,358,51],[377,51,359,12,"modFromBytes"],[377,63,359,24],[377,66,359,27,"_opts"],[377,71,359,32],[377,72,359,33,"modFromBytes"],[377,84,359,45],[378,6,360,8,"allowedLengths"],[378,20,360,22],[378,23,360,25,"_opts"],[378,28,360,30],[378,29,360,31,"allowedLengths"],[378,43,360,45],[379,4,361,4],[379,5,361,5],[379,11,362,9],[380,6,363,8],[380,10,363,12],[380,17,363,19,"bitLenOrOpts"],[380,29,363,31],[380,34,363,36],[380,42,363,44],[380,44,364,12,"_nbitLength"],[380,55,364,23],[380,58,364,26,"bitLenOrOpts"],[380,70,364,38],[381,6,365,8],[381,10,365,12,"opts"],[381,14,365,16],[381,15,365,17,"sqrt"],[381,19,365,21],[381,21,366,12,"_sqrt"],[381,26,366,17],[381,29,366,20,"opts"],[381,33,366,24],[381,34,366,25,"sqrt"],[381,38,366,29],[382,4,367,4],[383,4,368,4],[383,8,368,4,"_nLength"],[383,16,368,4],[383,19,368,53,"nLength"],[383,26,368,60],[383,27,368,61,"ORDER"],[383,32,368,66],[383,34,368,68,"_nbitLength"],[383,45,368,79],[383,46,368,80],[384,6,368,24,"BITS"],[384,10,368,28],[384,13,368,28,"_nLength"],[384,21,368,28],[384,22,368,12,"nBitLength"],[384,32,368,22],[385,6,368,43,"BYTES"],[385,11,368,48],[385,14,368,48,"_nLength"],[385,22,368,48],[385,23,368,30,"nByteLength"],[385,34,368,41],[386,4,369,4],[386,8,369,8,"BYTES"],[386,13,369,13],[386,16,369,16],[386,20,369,20],[386,22,370,8],[386,28,370,14],[386,32,370,18,"Error"],[386,37,370,23],[386,38,370,24],[386,86,370,72],[386,87,370,73],[387,4,371,4],[387,8,371,8,"sqrtP"],[387,13,371,13],[387,14,371,14],[387,15,371,15],[388,4,372,4],[388,8,372,10,"f"],[388,9,372,11],[388,12,372,14,"Object"],[388,18,372,20],[388,19,372,21,"freeze"],[388,25,372,27],[388,26,372,28],[389,6,373,8,"ORDER"],[389,11,373,13],[389,13,373,8,"ORDER"],[389,18,373,13],[390,6,374,8,"isLE"],[390,10,374,12],[390,12,374,8,"isLE"],[390,16,374,12],[391,6,375,8,"BITS"],[391,10,375,12],[391,12,375,8,"BITS"],[391,16,375,12],[392,6,376,8,"BYTES"],[392,11,376,13],[392,13,376,8,"BYTES"],[392,18,376,13],[393,6,377,8,"MASK"],[393,10,377,12],[393,12,377,14],[393,16,377,14,"bitMask"],[393,24,377,21],[393,25,377,21,"bitMask"],[393,32,377,21],[393,34,377,22,"BITS"],[393,38,377,26],[393,39,377,27],[394,6,378,8,"ZERO"],[394,10,378,12],[394,12,378,14,"_0n"],[394,15,378,17],[395,6,379,8,"ONE"],[395,9,379,11],[395,11,379,13,"_1n"],[395,14,379,16],[396,6,380,8,"allowedLengths"],[396,20,380,22],[396,22,380,24,"allowedLengths"],[396,36,380,38],[397,6,381,8,"create"],[397,12,381,14],[397,14,381,16],[397,23,381,8,"create"],[397,29,381,14,"create"],[397,30,381,17,"num"],[397,33,381,20],[398,8,381,20],[398,15,381,25,"mod"],[398,18,381,28],[398,19,381,29,"num"],[398,22,381,32],[398,24,381,34,"ORDER"],[398,29,381,39],[398,30,381,40],[399,6,381,40],[400,6,382,8,"isValid"],[400,13,382,15],[400,15,382,17],[400,24,382,8,"isValid"],[400,31,382,15,"isValid"],[400,32,382,18,"num"],[400,35,382,21],[400,37,382,26],[401,8,383,12],[401,12,383,16],[401,19,383,23,"num"],[401,22,383,26],[401,27,383,31],[401,35,383,39],[401,37,384,16],[401,43,384,22],[401,47,384,26,"Error"],[401,52,384,31],[401,53,384,32],[401,99,384,78],[401,102,384,81],[401,109,384,88,"num"],[401,112,384,91],[401,113,384,92],[402,8,385,12],[402,15,385,19,"_0n"],[402,18,385,22],[402,22,385,26,"num"],[402,25,385,29],[402,29,385,33,"num"],[402,32,385,36],[402,35,385,39,"ORDER"],[402,40,385,44],[402,41,385,45],[402,42,385,46],[403,6,386,8],[403,7,386,9],[404,6,387,8,"is0"],[404,9,387,11],[404,11,387,13],[404,20,387,8,"is0"],[404,23,387,11,"is0"],[404,24,387,14,"num"],[404,27,387,17],[405,8,387,17],[405,15,387,22,"num"],[405,18,387,25],[405,23,387,30,"_0n"],[405,26,387,33],[406,6,387,33],[407,6,388,8],[408,6,389,8,"isValidNot0"],[408,17,389,19],[408,19,389,21],[408,28,389,8,"isValidNot0"],[408,39,389,19,"isValidNot0"],[408,40,389,22,"num"],[408,43,389,25],[409,8,389,25],[409,15,389,30],[409,16,389,31,"f"],[409,17,389,32],[409,18,389,33,"is0"],[409,21,389,36],[409,22,389,37,"num"],[409,25,389,40],[409,26,389,41],[409,30,389,45,"f"],[409,31,389,46],[409,32,389,47,"isValid"],[409,39,389,54],[409,40,389,55,"num"],[409,43,389,58],[409,44,389,59],[410,6,389,59],[411,6,390,8,"isOdd"],[411,11,390,13],[411,13,390,15],[411,22,390,8,"isOdd"],[411,27,390,13,"isOdd"],[411,28,390,16,"num"],[411,31,390,19],[412,8,390,19],[412,15,390,24],[412,16,390,25,"num"],[412,19,390,28],[412,22,390,31,"_1n"],[412,25,390,34],[412,31,390,40,"_1n"],[412,34,390,43],[413,6,390,43],[414,6,391,8,"neg"],[414,9,391,11],[414,11,391,13],[414,20,391,8,"neg"],[414,23,391,11,"neg"],[414,24,391,14,"num"],[414,27,391,17],[415,8,391,17],[415,15,391,22,"mod"],[415,18,391,25],[415,19,391,26],[415,20,391,27,"num"],[415,23,391,30],[415,25,391,32,"ORDER"],[415,30,391,37],[415,31,391,38],[416,6,391,38],[417,6,392,8,"eql"],[417,9,392,11],[417,11,392,13],[417,20,392,8,"eql"],[417,23,392,11,"eql"],[417,24,392,14,"lhs"],[417,27,392,17],[417,29,392,19,"rhs"],[417,32,392,22],[418,8,392,22],[418,15,392,27,"lhs"],[418,18,392,30],[418,23,392,35,"rhs"],[418,26,392,38],[419,6,392,38],[420,6,393,8,"sqr"],[420,9,393,11],[420,11,393,13],[420,20,393,8,"sqr"],[420,23,393,11,"sqr"],[420,24,393,14,"num"],[420,27,393,17],[421,8,393,17],[421,15,393,22,"mod"],[421,18,393,25],[421,19,393,26,"num"],[421,22,393,29],[421,25,393,32,"num"],[421,28,393,35],[421,30,393,37,"ORDER"],[421,35,393,42],[421,36,393,43],[422,6,393,43],[423,6,394,8,"add"],[423,9,394,11],[423,11,394,13],[423,20,394,8,"add"],[423,23,394,11,"add"],[423,24,394,14,"lhs"],[423,27,394,17],[423,29,394,19,"rhs"],[423,32,394,22],[424,8,394,22],[424,15,394,27,"mod"],[424,18,394,30],[424,19,394,31,"lhs"],[424,22,394,34],[424,25,394,37,"rhs"],[424,28,394,40],[424,30,394,42,"ORDER"],[424,35,394,47],[424,36,394,48],[425,6,394,48],[426,6,395,8,"sub"],[426,9,395,11],[426,11,395,13],[426,20,395,8,"sub"],[426,23,395,11,"sub"],[426,24,395,14,"lhs"],[426,27,395,17],[426,29,395,19,"rhs"],[426,32,395,22],[427,8,395,22],[427,15,395,27,"mod"],[427,18,395,30],[427,19,395,31,"lhs"],[427,22,395,34],[427,25,395,37,"rhs"],[427,28,395,40],[427,30,395,42,"ORDER"],[427,35,395,47],[427,36,395,48],[428,6,395,48],[429,6,396,8,"mul"],[429,9,396,11],[429,11,396,13],[429,20,396,8,"mul"],[429,23,396,11,"mul"],[429,24,396,14,"lhs"],[429,27,396,17],[429,29,396,19,"rhs"],[429,32,396,22],[430,8,396,22],[430,15,396,27,"mod"],[430,18,396,30],[430,19,396,31,"lhs"],[430,22,396,34],[430,25,396,37,"rhs"],[430,28,396,40],[430,30,396,42,"ORDER"],[430,35,396,47],[430,36,396,48],[431,6,396,48],[432,6,397,8,"pow"],[432,9,397,11],[432,11,397,13],[432,20,397,8,"pow"],[432,23,397,11,"pow"],[432,24,397,14,"num"],[432,27,397,17],[432,29,397,19,"power"],[432,34,397,24],[433,8,397,24],[433,15,397,29,"FpPow"],[433,20,397,34],[433,21,397,35,"f"],[433,22,397,36],[433,24,397,38,"num"],[433,27,397,41],[433,29,397,43,"power"],[433,34,397,48],[433,35,397,49],[434,6,397,49],[435,6,398,8,"div"],[435,9,398,11],[435,11,398,13],[435,20,398,8,"div"],[435,23,398,11,"div"],[435,24,398,14,"lhs"],[435,27,398,17],[435,29,398,19,"rhs"],[435,32,398,22],[436,8,398,22],[436,15,398,27,"mod"],[436,18,398,30],[436,19,398,31,"lhs"],[436,22,398,34],[436,25,398,37,"invert"],[436,31,398,43],[436,32,398,44,"rhs"],[436,35,398,47],[436,37,398,49,"ORDER"],[436,42,398,54],[436,43,398,55],[436,45,398,57,"ORDER"],[436,50,398,62],[436,51,398,63],[437,6,398,63],[438,6,399,8],[439,6,400,8,"sqrN"],[439,10,400,12],[439,12,400,14],[439,21,400,8,"sqrN"],[439,25,400,12,"sqrN"],[439,26,400,15,"num"],[439,29,400,18],[440,8,400,18],[440,15,400,23,"num"],[440,18,400,26],[440,21,400,29,"num"],[440,24,400,32],[441,6,400,32],[442,6,401,8,"addN"],[442,10,401,12],[442,12,401,14],[442,21,401,8,"addN"],[442,25,401,12,"addN"],[442,26,401,15,"lhs"],[442,29,401,18],[442,31,401,20,"rhs"],[442,34,401,23],[443,8,401,23],[443,15,401,28,"lhs"],[443,18,401,31],[443,21,401,34,"rhs"],[443,24,401,37],[444,6,401,37],[445,6,402,8,"subN"],[445,10,402,12],[445,12,402,14],[445,21,402,8,"subN"],[445,25,402,12,"subN"],[445,26,402,15,"lhs"],[445,29,402,18],[445,31,402,20,"rhs"],[445,34,402,23],[446,8,402,23],[446,15,402,28,"lhs"],[446,18,402,31],[446,21,402,34,"rhs"],[446,24,402,37],[447,6,402,37],[448,6,403,8,"mulN"],[448,10,403,12],[448,12,403,14],[448,21,403,8,"mulN"],[448,25,403,12,"mulN"],[448,26,403,15,"lhs"],[448,29,403,18],[448,31,403,20,"rhs"],[448,34,403,23],[449,8,403,23],[449,15,403,28,"lhs"],[449,18,403,31],[449,21,403,34,"rhs"],[449,24,403,37],[450,6,403,37],[451,6,404,8,"inv"],[451,9,404,11],[451,11,404,13],[451,20,404,8,"inv"],[451,23,404,11,"inv"],[451,24,404,14,"num"],[451,27,404,17],[452,8,404,17],[452,15,404,22,"invert"],[452,21,404,28],[452,22,404,29,"num"],[452,25,404,32],[452,27,404,34,"ORDER"],[452,32,404,39],[452,33,404,40],[453,6,404,40],[454,6,405,8,"sqrt"],[454,10,405,12],[454,12,405,14,"_sqrt"],[454,17,405,19],[454,21,406,13],[454,31,406,14,"n"],[454,32,406,15],[454,34,406,20],[455,8,407,16],[455,12,407,20],[455,13,407,21,"sqrtP"],[455,18,407,26],[455,20,408,20,"sqrtP"],[455,25,408,25],[455,28,408,28,"FpSqrt"],[455,34,408,34],[455,35,408,35,"ORDER"],[455,40,408,40],[455,41,408,41],[456,8,409,16],[456,15,409,23,"sqrtP"],[456,20,409,28],[456,21,409,29,"f"],[456,22,409,30],[456,24,409,32,"n"],[456,25,409,33],[456,26,409,34],[457,6,410,12],[457,7,410,14],[458,6,411,8,"toBytes"],[458,13,411,15],[458,15,411,17],[458,24,411,8,"toBytes"],[458,31,411,15,"toBytes"],[458,32,411,18,"num"],[458,35,411,21],[459,8,411,21],[459,15,411,27,"isLE"],[459,19,411,31],[459,22,411,34],[459,26,411,34,"numberToBytesLE"],[459,34,411,49],[459,35,411,49,"numberToBytesLE"],[459,50,411,49],[459,52,411,50,"num"],[459,55,411,53],[459,57,411,55,"BYTES"],[459,62,411,60],[459,63,411,61],[459,66,411,64],[459,70,411,64,"numberToBytesBE"],[459,78,411,79],[459,79,411,79,"numberToBytesBE"],[459,94,411,79],[459,96,411,80,"num"],[459,99,411,83],[459,101,411,85,"BYTES"],[459,106,411,90],[459,107,411,91],[460,6,411,91],[460,7,411,92],[461,6,412,8,"fromBytes"],[461,15,412,17],[461,17,412,19],[461,26,412,8,"fromBytes"],[461,35,412,17,"fromBytes"],[461,36,412,20,"bytes"],[461,41,412,25],[461,43,412,53],[462,8,412,53],[462,12,412,27,"skipValidation"],[462,26,412,41],[462,29,412,41,"arguments"],[462,38,412,41],[462,39,412,41,"length"],[462,45,412,41],[462,53,412,41,"arguments"],[462,62,412,41],[462,70,412,41,"undefined"],[462,79,412,41],[462,82,412,41,"arguments"],[462,91,412,41],[462,97,412,44],[462,101,412,48],[463,8,413,12],[463,12,413,16,"allowedLengths"],[463,26,413,30],[463,28,413,32],[464,10,414,16],[464,14,414,20],[464,15,414,21,"allowedLengths"],[464,29,414,35],[464,30,414,36,"includes"],[464,38,414,44],[464,39,414,45,"bytes"],[464,44,414,50],[464,45,414,51,"length"],[464,51,414,57],[464,52,414,58],[464,56,414,62,"bytes"],[464,61,414,67],[464,62,414,68,"length"],[464,68,414,74],[464,71,414,77,"BYTES"],[464,76,414,82],[464,78,414,84],[465,12,415,20],[465,18,415,26],[465,22,415,30,"Error"],[465,27,415,35],[465,28,415,36],[465,56,415,64],[465,59,415,67,"allowedLengths"],[465,73,415,81],[465,76,415,84],[465,90,415,98],[465,93,415,101,"bytes"],[465,98,415,106],[465,99,415,107,"length"],[465,105,415,113],[465,106,415,114],[466,10,416,16],[467,10,417,16],[467,14,417,22,"padded"],[467,20,417,28],[467,23,417,31],[467,27,417,35,"Uint8Array"],[467,37,417,45],[467,38,417,46,"BYTES"],[467,43,417,51],[467,44,417,52],[468,10,418,16],[469,10,419,16,"padded"],[469,16,419,22],[469,17,419,23,"set"],[469,20,419,26],[469,21,419,27,"bytes"],[469,26,419,32],[469,28,419,34,"isLE"],[469,32,419,38],[469,35,419,41],[469,36,419,42],[469,39,419,45,"padded"],[469,45,419,51],[469,46,419,52,"length"],[469,52,419,58],[469,55,419,61,"bytes"],[469,60,419,66],[469,61,419,67,"length"],[469,67,419,73],[469,68,419,74],[470,10,420,16,"bytes"],[470,15,420,21],[470,18,420,24,"padded"],[470,24,420,30],[471,8,421,12],[472,8,422,12],[472,12,422,16,"bytes"],[472,17,422,21],[472,18,422,22,"length"],[472,24,422,28],[472,29,422,33,"BYTES"],[472,34,422,38],[472,36,423,16],[472,42,423,22],[472,46,423,26,"Error"],[472,51,423,31],[472,52,423,32],[472,80,423,60],[472,83,423,63,"BYTES"],[472,88,423,68],[472,91,423,71],[472,105,423,85],[472,108,423,88,"bytes"],[472,113,423,93],[472,114,423,94,"length"],[472,120,423,100],[472,121,423,101],[473,8,424,12],[473,12,424,16,"scalar"],[473,18,424,22],[473,21,424,25,"isLE"],[473,25,424,29],[473,28,424,32],[473,32,424,32,"bytesToNumberLE"],[473,40,424,47],[473,41,424,47,"bytesToNumberLE"],[473,56,424,47],[473,58,424,48,"bytes"],[473,63,424,53],[473,64,424,54],[473,67,424,57],[473,71,424,57,"bytesToNumberBE"],[473,79,424,72],[473,80,424,72,"bytesToNumberBE"],[473,95,424,72],[473,97,424,73,"bytes"],[473,102,424,78],[473,103,424,79],[474,8,425,12],[474,12,425,16,"modFromBytes"],[474,24,425,28],[474,26,426,16,"scalar"],[474,32,426,22],[474,35,426,25,"mod"],[474,38,426,28],[474,39,426,29,"scalar"],[474,45,426,35],[474,47,426,37,"ORDER"],[474,52,426,42],[474,53,426,43],[475,8,427,12],[475,12,427,16],[475,13,427,17,"skipValidation"],[475,27,427,31],[475,29,428,16],[475,33,428,20],[475,34,428,21,"f"],[475,35,428,22],[475,36,428,23,"isValid"],[475,43,428,30],[475,44,428,31,"scalar"],[475,50,428,37],[475,51,428,38],[475,53,429,20],[475,59,429,26],[475,63,429,30,"Error"],[475,68,429,35],[475,69,429,36],[475,119,429,86],[475,120,429,87],[476,8,430,12],[477,8,431,12],[478,8,432,12],[478,15,432,19,"scalar"],[478,21,432,25],[479,6,433,8],[479,7,433,9],[480,6,434,8],[481,6,435,8,"invertBatch"],[481,17,435,19],[481,19,435,21],[481,28,435,8,"invertBatch"],[481,39,435,19,"invertBatch"],[481,40,435,22,"lst"],[481,43,435,25],[482,8,435,25],[482,15,435,30,"FpInvertBatch"],[482,28,435,43],[482,29,435,44,"f"],[482,30,435,45],[482,32,435,47,"lst"],[482,35,435,50],[482,36,435,51],[483,6,435,51],[484,6,436,8],[485,6,437,8],[486,6,438,8,"cmov"],[486,10,438,12],[486,12,438,14],[486,21,438,8,"cmov"],[486,25,438,12,"cmov"],[486,26,438,15,"a"],[486,27,438,16],[486,29,438,18,"b"],[486,30,438,19],[486,32,438,21,"c"],[486,33,438,22],[487,8,438,22],[487,15,438,28,"c"],[487,16,438,29],[487,19,438,32,"b"],[487,20,438,33],[487,23,438,36,"a"],[487,24,438,37],[488,6,438,37],[489,4,439,4],[489,5,439,5],[489,6,439,6],[490,4,440,4],[490,11,440,11,"Object"],[490,17,440,17],[490,18,440,18,"freeze"],[490,24,440,24],[490,25,440,25,"f"],[490,26,440,26],[490,27,440,27],[491,2,441,0],[492,2,442,0],[493,2,443,0],[494,2,444,0],[495,2,445,0],[496,2,446,0],[497,2,447,0],[498,2,448,0],[499,2,449,0],[500,2,450,0],[501,2,451,0],[502,2,452,0],[503,2,453,0],[504,2,454,0],[505,2,455,7],[505,11,455,16,"FpSqrtOdd"],[505,20,455,25,"FpSqrtOdd"],[505,21,455,26,"Fp"],[505,23,455,28],[505,25,455,30,"elm"],[505,28,455,33],[505,30,455,35],[506,4,456,4],[506,8,456,8],[506,9,456,9,"Fp"],[506,11,456,11],[506,12,456,12,"isOdd"],[506,17,456,17],[506,19,457,8],[506,25,457,14],[506,29,457,18,"Error"],[506,34,457,23],[506,35,457,24],[506,61,457,50],[506,62,457,51],[507,4,458,4],[507,8,458,10,"root"],[507,12,458,14],[507,15,458,17,"Fp"],[507,17,458,19],[507,18,458,20,"sqrt"],[507,22,458,24],[507,23,458,25,"elm"],[507,26,458,28],[507,27,458,29],[508,4,459,4],[508,11,459,11,"Fp"],[508,13,459,13],[508,14,459,14,"isOdd"],[508,19,459,19],[508,20,459,20,"root"],[508,24,459,24],[508,25,459,25],[508,28,459,28,"root"],[508,32,459,32],[508,35,459,35,"Fp"],[508,37,459,37],[508,38,459,38,"neg"],[508,41,459,41],[508,42,459,42,"root"],[508,46,459,46],[508,47,459,47],[509,2,460,0],[510,2,461,7],[510,11,461,16,"FpSqrtEven"],[510,21,461,26,"FpSqrtEven"],[510,22,461,27,"Fp"],[510,24,461,29],[510,26,461,31,"elm"],[510,29,461,34],[510,31,461,36],[511,4,462,4],[511,8,462,8],[511,9,462,9,"Fp"],[511,11,462,11],[511,12,462,12,"isOdd"],[511,17,462,17],[511,19,463,8],[511,25,463,14],[511,29,463,18,"Error"],[511,34,463,23],[511,35,463,24],[511,61,463,50],[511,62,463,51],[512,4,464,4],[512,8,464,10,"root"],[512,12,464,14],[512,15,464,17,"Fp"],[512,17,464,19],[512,18,464,20,"sqrt"],[512,22,464,24],[512,23,464,25,"elm"],[512,26,464,28],[512,27,464,29],[513,4,465,4],[513,11,465,11,"Fp"],[513,13,465,13],[513,14,465,14,"isOdd"],[513,19,465,19],[513,20,465,20,"root"],[513,24,465,24],[513,25,465,25],[513,28,465,28,"Fp"],[513,30,465,30],[513,31,465,31,"neg"],[513,34,465,34],[513,35,465,35,"root"],[513,39,465,39],[513,40,465,40],[513,43,465,43,"root"],[513,47,465,47],[514,2,466,0],[515,2,467,0],[516,0,468,0],[517,0,469,0],[518,0,470,0],[519,0,471,0],[520,0,472,0],[521,2,473,7],[521,11,473,16,"hashToPrivateScalar"],[521,30,473,35,"hashToPrivateScalar"],[521,31,473,36,"hash"],[521,35,473,40],[521,37,473,42,"groupOrder"],[521,47,473,52],[521,49,473,68],[522,4,473,68],[522,8,473,54,"isLE"],[522,12,473,58],[522,15,473,58,"arguments"],[522,24,473,58],[522,25,473,58,"length"],[522,31,473,58],[522,39,473,58,"arguments"],[522,48,473,58],[522,56,473,58,"undefined"],[522,65,473,58],[522,68,473,58,"arguments"],[522,77,473,58],[522,83,473,61],[522,88,473,66],[523,4,474,4,"hash"],[523,8,474,8],[523,11,474,11],[523,15,474,11,"ensureBytes"],[523,23,474,22],[523,24,474,22,"ensureBytes"],[523,35,474,22],[523,37,474,23],[523,50,474,36],[523,52,474,38,"hash"],[523,56,474,42],[523,57,474,43],[524,4,475,4],[524,8,475,10,"hashLen"],[524,15,475,17],[524,18,475,20,"hash"],[524,22,475,24],[524,23,475,25,"length"],[524,29,475,31],[525,4,476,4],[525,8,476,10,"minLen"],[525,14,476,16],[525,17,476,19,"nLength"],[525,24,476,26],[525,25,476,27,"groupOrder"],[525,35,476,37],[525,36,476,38],[525,37,476,39,"nByteLength"],[525,48,476,50],[525,51,476,53],[525,52,476,54],[526,4,477,4],[526,8,477,8,"minLen"],[526,14,477,14],[526,17,477,17],[526,19,477,19],[526,23,477,23,"hashLen"],[526,30,477,30],[526,33,477,33,"minLen"],[526,39,477,39],[526,43,477,43,"hashLen"],[526,50,477,50],[526,53,477,53],[526,57,477,57],[526,59,478,8],[526,65,478,14],[526,69,478,18,"Error"],[526,74,478,23],[526,75,478,24],[526,107,478,56],[526,110,478,59,"minLen"],[526,116,478,65],[526,119,478,68],[526,147,478,96],[526,150,478,99,"hashLen"],[526,157,478,106],[526,158,478,107],[527,4,479,4],[527,8,479,10,"num"],[527,11,479,13],[527,14,479,16,"isLE"],[527,18,479,20],[527,21,479,23],[527,25,479,23,"bytesToNumberLE"],[527,33,479,38],[527,34,479,38,"bytesToNumberLE"],[527,49,479,38],[527,51,479,39,"hash"],[527,55,479,43],[527,56,479,44],[527,59,479,47],[527,63,479,47,"bytesToNumberBE"],[527,71,479,62],[527,72,479,62,"bytesToNumberBE"],[527,87,479,62],[527,89,479,63,"hash"],[527,93,479,67],[527,94,479,68],[528,4,480,4],[528,11,480,11,"mod"],[528,14,480,14],[528,15,480,15,"num"],[528,18,480,18],[528,20,480,20,"groupOrder"],[528,30,480,30],[528,33,480,33,"_1n"],[528,36,480,36],[528,37,480,37],[528,40,480,40,"_1n"],[528,43,480,43],[529,2,481,0],[530,2,482,0],[531,0,483,0],[532,0,484,0],[533,0,485,0],[534,0,486,0],[535,0,487,0],[536,2,488,7],[536,11,488,16,"getFieldBytesLength"],[536,30,488,35,"getFieldBytesLength"],[536,31,488,36,"fieldOrder"],[536,41,488,46],[536,43,488,48],[537,4,489,4],[537,8,489,8],[537,15,489,15,"fieldOrder"],[537,25,489,25],[537,30,489,30],[537,38,489,38],[537,40,490,8],[537,46,490,14],[537,50,490,18,"Error"],[537,55,490,23],[537,56,490,24],[537,84,490,52],[537,85,490,53],[538,4,491,4],[538,8,491,10,"bitLength"],[538,17,491,19],[538,20,491,22,"fieldOrder"],[538,30,491,32],[538,31,491,33,"toString"],[538,39,491,41],[538,40,491,42],[538,41,491,43],[538,42,491,44],[538,43,491,45,"length"],[538,49,491,51],[539,4,492,4],[539,11,492,11,"Math"],[539,15,492,15],[539,16,492,16,"ceil"],[539,20,492,20],[539,21,492,21,"bitLength"],[539,30,492,30],[539,33,492,33],[539,34,492,34],[539,35,492,35],[540,2,493,0],[541,2,494,0],[542,0,495,0],[543,0,496,0],[544,0,497,0],[545,0,498,0],[546,0,499,0],[547,0,500,0],[548,2,501,7],[548,11,501,16,"getMinHashLength"],[548,27,501,32,"getMinHashLength"],[548,28,501,33,"fieldOrder"],[548,38,501,43],[548,40,501,45],[549,4,502,4],[549,8,502,10,"length"],[549,14,502,16],[549,17,502,19,"getFieldBytesLength"],[549,36,502,38],[549,37,502,39,"fieldOrder"],[549,47,502,49],[549,48,502,50],[550,4,503,4],[550,11,503,11,"length"],[550,17,503,17],[550,20,503,20,"Math"],[550,24,503,24],[550,25,503,25,"ceil"],[550,29,503,29],[550,30,503,30,"length"],[550,36,503,36],[550,39,503,39],[550,40,503,40],[550,41,503,41],[551,2,504,0],[552,2,505,0],[553,0,506,0],[554,0,507,0],[555,0,508,0],[556,0,509,0],[557,0,510,0],[558,0,511,0],[559,0,512,0],[560,0,513,0],[561,0,514,0],[562,0,515,0],[563,0,516,0],[564,0,517,0],[565,2,518,7],[565,11,518,16,"mapHashToField"],[565,25,518,30,"mapHashToField"],[565,26,518,31,"key"],[565,29,518,34],[565,31,518,36,"fieldOrder"],[565,41,518,46],[565,43,518,62],[566,4,518,62],[566,8,518,48,"isLE"],[566,12,518,52],[566,15,518,52,"arguments"],[566,24,518,52],[566,25,518,52,"length"],[566,31,518,52],[566,39,518,52,"arguments"],[566,48,518,52],[566,56,518,52,"undefined"],[566,65,518,52],[566,68,518,52,"arguments"],[566,77,518,52],[566,83,518,55],[566,88,518,60],[567,4,519,4],[567,8,519,10,"len"],[567,11,519,13],[567,14,519,16,"key"],[567,17,519,19],[567,18,519,20,"length"],[567,24,519,26],[568,4,520,4],[568,8,520,10,"fieldLen"],[568,16,520,18],[568,19,520,21,"getFieldBytesLength"],[568,38,520,40],[568,39,520,41,"fieldOrder"],[568,49,520,51],[568,50,520,52],[569,4,521,4],[569,8,521,10,"minLen"],[569,14,521,16],[569,17,521,19,"getMinHashLength"],[569,33,521,35],[569,34,521,36,"fieldOrder"],[569,44,521,46],[569,45,521,47],[570,4,522,4],[571,4,523,4],[571,8,523,8,"len"],[571,11,523,11],[571,14,523,14],[571,16,523,16],[571,20,523,20,"len"],[571,23,523,23],[571,26,523,26,"minLen"],[571,32,523,32],[571,36,523,36,"len"],[571,39,523,39],[571,42,523,42],[571,46,523,46],[571,48,524,8],[571,54,524,14],[571,58,524,18,"Error"],[571,63,524,23],[571,64,524,24],[571,75,524,35],[571,78,524,38,"minLen"],[571,84,524,44],[571,87,524,47],[571,115,524,75],[571,118,524,78,"len"],[571,121,524,81],[571,122,524,82],[572,4,525,4],[572,8,525,10,"num"],[572,11,525,13],[572,14,525,16,"isLE"],[572,18,525,20],[572,21,525,23],[572,25,525,23,"bytesToNumberLE"],[572,33,525,38],[572,34,525,38,"bytesToNumberLE"],[572,49,525,38],[572,51,525,39,"key"],[572,54,525,42],[572,55,525,43],[572,58,525,46],[572,62,525,46,"bytesToNumberBE"],[572,70,525,61],[572,71,525,61,"bytesToNumberBE"],[572,86,525,61],[572,88,525,62,"key"],[572,91,525,65],[572,92,525,66],[573,4,526,4],[574,4,527,4],[574,8,527,10,"reduced"],[574,15,527,17],[574,18,527,20,"mod"],[574,21,527,23],[574,22,527,24,"num"],[574,25,527,27],[574,27,527,29,"fieldOrder"],[574,37,527,39],[574,40,527,42,"_1n"],[574,43,527,45],[574,44,527,46],[574,47,527,49,"_1n"],[574,50,527,52],[575,4,528,4],[575,11,528,11,"isLE"],[575,15,528,15],[575,18,528,18],[575,22,528,18,"numberToBytesLE"],[575,30,528,33],[575,31,528,33,"numberToBytesLE"],[575,46,528,33],[575,48,528,34,"reduced"],[575,55,528,41],[575,57,528,43,"fieldLen"],[575,65,528,51],[575,66,528,52],[575,69,528,55],[575,73,528,55,"numberToBytesBE"],[575,81,528,70],[575,82,528,70,"numberToBytesBE"],[575,97,528,70],[575,99,528,71,"reduced"],[575,106,528,78],[575,108,528,80,"fieldLen"],[575,116,528,88],[575,117,528,89],[576,2,529,0],[577,0,529,1],[577,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"}]} |