{"dependencies":[{"name":"@polkadot/util","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":9,"column":15,"index":322},"end":{"line":9,"column":40,"index":347}}],"key":"u0mzEw2nilnHoUWtEdZl0JKHutA=","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.compareRationals = compareRationals;\n exports.calcPassing = calcPassing;\n exports.calcVotes = calcVotes;\n exports.getStatus = getStatus;\n exports.getImageHashBounded = getImageHashBounded;\n exports.getImageHash = getImageHash;\n const util_1 = require(_dependencyMap[0], \"@polkadot/util\");\n function isOldInfo(info) {\n return !!info.proposalHash;\n }\n function isCurrentStatus(status) {\n return !!status.tally;\n }\n function compareRationals(n1, d1, n2, d2) {\n while (true) {\n const q1 = n1.div(d1);\n const q2 = n2.div(d2);\n if (q1.lt(q2)) {\n return true;\n } else if (q2.lt(q1)) {\n return false;\n }\n const r1 = n1.mod(d1);\n const r2 = n2.mod(d2);\n if (r2.isZero()) {\n return false;\n } else if (r1.isZero()) {\n return true;\n }\n n1 = d2;\n n2 = d1;\n d1 = r2;\n d2 = r1;\n }\n }\n function calcPassingOther(threshold, sqrtElectorate, {\n votedAye,\n votedNay,\n votedTotal\n }) {\n const sqrtVoters = (0, util_1.bnSqrt)(votedTotal);\n return sqrtVoters.isZero() ? false : threshold.isSuperMajorityApprove ? compareRationals(votedNay, sqrtVoters, votedAye, sqrtElectorate) : compareRationals(votedNay, sqrtElectorate, votedAye, sqrtVoters);\n }\n function calcPassing(threshold, sqrtElectorate, state) {\n return threshold.isSimpleMajority ? state.votedAye.gt(state.votedNay) : calcPassingOther(threshold, sqrtElectorate, state);\n }\n function calcVotesPrev(votesFor) {\n return votesFor.reduce((state, derived) => {\n const {\n balance,\n vote\n } = derived;\n const isDefault = vote.conviction.index === 0;\n const counted = balance.muln(isDefault ? 1 : vote.conviction.index).divn(isDefault ? 10 : 1);\n if (vote.isAye) {\n state.allAye.push(derived);\n state.voteCountAye++;\n state.votedAye.iadd(counted);\n } else {\n state.allNay.push(derived);\n state.voteCountNay++;\n state.votedNay.iadd(counted);\n }\n state.voteCount++;\n state.votedTotal.iadd(counted);\n return state;\n }, {\n allAye: [],\n allNay: [],\n voteCount: 0,\n voteCountAye: 0,\n voteCountNay: 0,\n votedAye: new util_1.BN(0),\n votedNay: new util_1.BN(0),\n votedTotal: new util_1.BN(0)\n });\n }\n function calcVotesCurrent(tally, votes) {\n const allAye = [];\n const allNay = [];\n votes.forEach(derived => {\n if (derived.vote.isAye) {\n allAye.push(derived);\n } else {\n allNay.push(derived);\n }\n });\n return {\n allAye,\n allNay,\n voteCount: allAye.length + allNay.length,\n voteCountAye: allAye.length,\n voteCountNay: allNay.length,\n votedAye: tally.ayes,\n votedNay: tally.nays,\n votedTotal: tally.turnout\n };\n }\n function calcVotes(sqrtElectorate, referendum, votes) {\n const state = isCurrentStatus(referendum.status) ? calcVotesCurrent(referendum.status.tally, votes) : calcVotesPrev(votes);\n return (0, util_1.objectSpread)({}, state, {\n isPassing: calcPassing(referendum.status.threshold, sqrtElectorate, state),\n votes\n });\n }\n function getStatus(info) {\n if (info.isNone) {\n return null;\n }\n const unwrapped = info.unwrap();\n return isOldInfo(unwrapped) ? unwrapped : unwrapped.isOngoing ? unwrapped.asOngoing\n // done, we don't include it here... only currently active\n : null;\n }\n function getImageHashBounded(hash) {\n return hash.isLegacy ? hash.asLegacy.hash_.toHex() : hash.isLookup ? hash.asLookup.hash_.toHex()\n // for inline, use the actual Bytes hash\n : hash.isInline ? hash.asInline.hash.toHex() : (0, util_1.isString)(hash) ? (0, util_1.isHex)(hash) ? hash : (0, util_1.stringToHex)(hash) : (0, util_1.isU8a)(hash) ? (0, util_1.u8aToHex)(hash) : hash.toHex();\n }\n function getImageHash(status) {\n return getImageHashBounded(status.proposal || status.proposalHash);\n }\n});","lineCount":129,"map":[[2,2,1,0],[2,14,1,12],[4,2,2,0,"Object"],[4,8,2,6],[4,9,2,7,"defineProperty"],[4,23,2,21],[4,24,2,22,"exports"],[4,31,2,29],[4,33,2,31],[4,45,2,43],[4,47,2,45],[5,4,2,47,"value"],[5,9,2,52],[5,11,2,54],[6,2,2,59],[6,3,2,60],[6,4,2,61],[7,2,3,0,"exports"],[7,9,3,7],[7,10,3,8,"compareRationals"],[7,26,3,24],[7,29,3,27,"compareRationals"],[7,45,3,43],[8,2,4,0,"exports"],[8,9,4,7],[8,10,4,8,"calcPassing"],[8,21,4,19],[8,24,4,22,"calcPassing"],[8,35,4,33],[9,2,5,0,"exports"],[9,9,5,7],[9,10,5,8,"calcVotes"],[9,19,5,17],[9,22,5,20,"calcVotes"],[9,31,5,29],[10,2,6,0,"exports"],[10,9,6,7],[10,10,6,8,"getStatus"],[10,19,6,17],[10,22,6,20,"getStatus"],[10,31,6,29],[11,2,7,0,"exports"],[11,9,7,7],[11,10,7,8,"getImageHashBounded"],[11,29,7,27],[11,32,7,30,"getImageHashBounded"],[11,51,7,49],[12,2,8,0,"exports"],[12,9,8,7],[12,10,8,8,"getImageHash"],[12,22,8,20],[12,25,8,23,"getImageHash"],[12,37,8,35],[13,2,9,0],[13,8,9,6,"util_1"],[13,14,9,12],[13,17,9,15,"require"],[13,24,9,22],[13,25,9,22,"_dependencyMap"],[13,39,9,22],[13,60,9,39],[13,61,9,40],[14,2,10,0],[14,11,10,9,"isOldInfo"],[14,20,10,18,"isOldInfo"],[14,21,10,19,"info"],[14,25,10,23],[14,27,10,25],[15,4,11,4],[15,11,11,11],[15,12,11,12],[15,13,11,13,"info"],[15,17,11,17],[15,18,11,18,"proposalHash"],[15,30,11,30],[16,2,12,0],[17,2,13,0],[17,11,13,9,"isCurrentStatus"],[17,26,13,24,"isCurrentStatus"],[17,27,13,25,"status"],[17,33,13,31],[17,35,13,33],[18,4,14,4],[18,11,14,11],[18,12,14,12],[18,13,14,13,"status"],[18,19,14,19],[18,20,14,20,"tally"],[18,25,14,25],[19,2,15,0],[20,2,16,0],[20,11,16,9,"compareRationals"],[20,27,16,25,"compareRationals"],[20,28,16,26,"n1"],[20,30,16,28],[20,32,16,30,"d1"],[20,34,16,32],[20,36,16,34,"n2"],[20,38,16,36],[20,40,16,38,"d2"],[20,42,16,40],[20,44,16,42],[21,4,17,4],[21,11,17,11],[21,15,17,15],[21,17,17,17],[22,6,18,8],[22,12,18,14,"q1"],[22,14,18,16],[22,17,18,19,"n1"],[22,19,18,21],[22,20,18,22,"div"],[22,23,18,25],[22,24,18,26,"d1"],[22,26,18,28],[22,27,18,29],[23,6,19,8],[23,12,19,14,"q2"],[23,14,19,16],[23,17,19,19,"n2"],[23,19,19,21],[23,20,19,22,"div"],[23,23,19,25],[23,24,19,26,"d2"],[23,26,19,28],[23,27,19,29],[24,6,20,8],[24,10,20,12,"q1"],[24,12,20,14],[24,13,20,15,"lt"],[24,15,20,17],[24,16,20,18,"q2"],[24,18,20,20],[24,19,20,21],[24,21,20,23],[25,8,21,12],[25,15,21,19],[25,19,21,23],[26,6,22,8],[26,7,22,9],[26,13,23,13],[26,17,23,17,"q2"],[26,19,23,19],[26,20,23,20,"lt"],[26,22,23,22],[26,23,23,23,"q1"],[26,25,23,25],[26,26,23,26],[26,28,23,28],[27,8,24,12],[27,15,24,19],[27,20,24,24],[28,6,25,8],[29,6,26,8],[29,12,26,14,"r1"],[29,14,26,16],[29,17,26,19,"n1"],[29,19,26,21],[29,20,26,22,"mod"],[29,23,26,25],[29,24,26,26,"d1"],[29,26,26,28],[29,27,26,29],[30,6,27,8],[30,12,27,14,"r2"],[30,14,27,16],[30,17,27,19,"n2"],[30,19,27,21],[30,20,27,22,"mod"],[30,23,27,25],[30,24,27,26,"d2"],[30,26,27,28],[30,27,27,29],[31,6,28,8],[31,10,28,12,"r2"],[31,12,28,14],[31,13,28,15,"isZero"],[31,19,28,21],[31,20,28,22],[31,21,28,23],[31,23,28,25],[32,8,29,12],[32,15,29,19],[32,20,29,24],[33,6,30,8],[33,7,30,9],[33,13,31,13],[33,17,31,17,"r1"],[33,19,31,19],[33,20,31,20,"isZero"],[33,26,31,26],[33,27,31,27],[33,28,31,28],[33,30,31,30],[34,8,32,12],[34,15,32,19],[34,19,32,23],[35,6,33,8],[36,6,34,8,"n1"],[36,8,34,10],[36,11,34,13,"d2"],[36,13,34,15],[37,6,35,8,"n2"],[37,8,35,10],[37,11,35,13,"d1"],[37,13,35,15],[38,6,36,8,"d1"],[38,8,36,10],[38,11,36,13,"r2"],[38,13,36,15],[39,6,37,8,"d2"],[39,8,37,10],[39,11,37,13,"r1"],[39,13,37,15],[40,4,38,4],[41,2,39,0],[42,2,40,0],[42,11,40,9,"calcPassingOther"],[42,27,40,25,"calcPassingOther"],[42,28,40,26,"threshold"],[42,37,40,35],[42,39,40,37,"sqrtElectorate"],[42,53,40,51],[42,55,40,53],[43,4,40,55,"votedAye"],[43,12,40,63],[44,4,40,65,"votedNay"],[44,12,40,73],[45,4,40,75,"votedTotal"],[46,2,40,86],[46,3,40,87],[46,5,40,89],[47,4,41,4],[47,10,41,10,"sqrtVoters"],[47,20,41,20],[47,23,41,23],[47,24,41,24],[47,25,41,25],[47,27,41,27,"util_1"],[47,33,41,33],[47,34,41,34,"bnSqrt"],[47,40,41,40],[47,42,41,42,"votedTotal"],[47,52,41,52],[47,53,41,53],[48,4,42,4],[48,11,42,11,"sqrtVoters"],[48,21,42,21],[48,22,42,22,"isZero"],[48,28,42,28],[48,29,42,29],[48,30,42,30],[48,33,43,10],[48,38,43,15],[48,41,44,10,"threshold"],[48,50,44,19],[48,51,44,20,"isSuperMajorityApprove"],[48,73,44,42],[48,76,45,14,"compareRationals"],[48,92,45,30],[48,93,45,31,"votedNay"],[48,101,45,39],[48,103,45,41,"sqrtVoters"],[48,113,45,51],[48,115,45,53,"votedAye"],[48,123,45,61],[48,125,45,63,"sqrtElectorate"],[48,139,45,77],[48,140,45,78],[48,143,46,14,"compareRationals"],[48,159,46,30],[48,160,46,31,"votedNay"],[48,168,46,39],[48,170,46,41,"sqrtElectorate"],[48,184,46,55],[48,186,46,57,"votedAye"],[48,194,46,65],[48,196,46,67,"sqrtVoters"],[48,206,46,77],[48,207,46,78],[49,2,47,0],[50,2,48,0],[50,11,48,9,"calcPassing"],[50,22,48,20,"calcPassing"],[50,23,48,21,"threshold"],[50,32,48,30],[50,34,48,32,"sqrtElectorate"],[50,48,48,46],[50,50,48,48,"state"],[50,55,48,53],[50,57,48,55],[51,4,49,4],[51,11,49,11,"threshold"],[51,20,49,20],[51,21,49,21,"isSimpleMajority"],[51,37,49,37],[51,40,50,10,"state"],[51,45,50,15],[51,46,50,16,"votedAye"],[51,54,50,24],[51,55,50,25,"gt"],[51,57,50,27],[51,58,50,28,"state"],[51,63,50,33],[51,64,50,34,"votedNay"],[51,72,50,42],[51,73,50,43],[51,76,51,10,"calcPassingOther"],[51,92,51,26],[51,93,51,27,"threshold"],[51,102,51,36],[51,104,51,38,"sqrtElectorate"],[51,118,51,52],[51,120,51,54,"state"],[51,125,51,59],[51,126,51,60],[52,2,52,0],[53,2,53,0],[53,11,53,9,"calcVotesPrev"],[53,24,53,22,"calcVotesPrev"],[53,25,53,23,"votesFor"],[53,33,53,31],[53,35,53,33],[54,4,54,4],[54,11,54,11,"votesFor"],[54,19,54,19],[54,20,54,20,"reduce"],[54,26,54,26],[54,27,54,27],[54,28,54,28,"state"],[54,33,54,33],[54,35,54,35,"derived"],[54,42,54,42],[54,47,54,47],[55,6,55,8],[55,12,55,14],[56,8,55,16,"balance"],[56,15,55,23],[57,8,55,25,"vote"],[58,6,55,30],[58,7,55,31],[58,10,55,34,"derived"],[58,17,55,41],[59,6,56,8],[59,12,56,14,"isDefault"],[59,21,56,23],[59,24,56,26,"vote"],[59,28,56,30],[59,29,56,31,"conviction"],[59,39,56,41],[59,40,56,42,"index"],[59,45,56,47],[59,50,56,52],[59,51,56,53],[60,6,57,8],[60,12,57,14,"counted"],[60,19,57,21],[60,22,57,24,"balance"],[60,29,57,31],[60,30,58,13,"muln"],[60,34,58,17],[60,35,58,18,"isDefault"],[60,44,58,27],[60,47,58,30],[60,48,58,31],[60,51,58,34,"vote"],[60,55,58,38],[60,56,58,39,"conviction"],[60,66,58,49],[60,67,58,50,"index"],[60,72,58,55],[60,73,58,56],[60,74,59,13,"divn"],[60,78,59,17],[60,79,59,18,"isDefault"],[60,88,59,27],[60,91,59,30],[60,93,59,32],[60,96,59,35],[60,97,59,36],[60,98,59,37],[61,6,60,8],[61,10,60,12,"vote"],[61,14,60,16],[61,15,60,17,"isAye"],[61,20,60,22],[61,22,60,24],[62,8,61,12,"state"],[62,13,61,17],[62,14,61,18,"allAye"],[62,20,61,24],[62,21,61,25,"push"],[62,25,61,29],[62,26,61,30,"derived"],[62,33,61,37],[62,34,61,38],[63,8,62,12,"state"],[63,13,62,17],[63,14,62,18,"voteCountAye"],[63,26,62,30],[63,28,62,32],[64,8,63,12,"state"],[64,13,63,17],[64,14,63,18,"votedAye"],[64,22,63,26],[64,23,63,27,"iadd"],[64,27,63,31],[64,28,63,32,"counted"],[64,35,63,39],[64,36,63,40],[65,6,64,8],[65,7,64,9],[65,13,65,13],[66,8,66,12,"state"],[66,13,66,17],[66,14,66,18,"allNay"],[66,20,66,24],[66,21,66,25,"push"],[66,25,66,29],[66,26,66,30,"derived"],[66,33,66,37],[66,34,66,38],[67,8,67,12,"state"],[67,13,67,17],[67,14,67,18,"voteCountNay"],[67,26,67,30],[67,28,67,32],[68,8,68,12,"state"],[68,13,68,17],[68,14,68,18,"votedNay"],[68,22,68,26],[68,23,68,27,"iadd"],[68,27,68,31],[68,28,68,32,"counted"],[68,35,68,39],[68,36,68,40],[69,6,69,8],[70,6,70,8,"state"],[70,11,70,13],[70,12,70,14,"voteCount"],[70,21,70,23],[70,23,70,25],[71,6,71,8,"state"],[71,11,71,13],[71,12,71,14,"votedTotal"],[71,22,71,24],[71,23,71,25,"iadd"],[71,27,71,29],[71,28,71,30,"counted"],[71,35,71,37],[71,36,71,38],[72,6,72,8],[72,13,72,15,"state"],[72,18,72,20],[73,4,73,4],[73,5,73,5],[73,7,73,7],[74,6,73,9,"allAye"],[74,12,73,15],[74,14,73,17],[74,16,73,19],[75,6,73,21,"allNay"],[75,12,73,27],[75,14,73,29],[75,16,73,31],[76,6,73,33,"voteCount"],[76,15,73,42],[76,17,73,44],[76,18,73,45],[77,6,73,47,"voteCountAye"],[77,18,73,59],[77,20,73,61],[77,21,73,62],[78,6,73,64,"voteCountNay"],[78,18,73,76],[78,20,73,78],[78,21,73,79],[79,6,73,81,"votedAye"],[79,14,73,89],[79,16,73,91],[79,20,73,95,"util_1"],[79,26,73,101],[79,27,73,102,"BN"],[79,29,73,104],[79,30,73,105],[79,31,73,106],[79,32,73,107],[80,6,73,109,"votedNay"],[80,14,73,117],[80,16,73,119],[80,20,73,123,"util_1"],[80,26,73,129],[80,27,73,130,"BN"],[80,29,73,132],[80,30,73,133],[80,31,73,134],[80,32,73,135],[81,6,73,137,"votedTotal"],[81,16,73,147],[81,18,73,149],[81,22,73,153,"util_1"],[81,28,73,159],[81,29,73,160,"BN"],[81,31,73,162],[81,32,73,163],[81,33,73,164],[82,4,73,166],[82,5,73,167],[82,6,73,168],[83,2,74,0],[84,2,75,0],[84,11,75,9,"calcVotesCurrent"],[84,27,75,25,"calcVotesCurrent"],[84,28,75,26,"tally"],[84,33,75,31],[84,35,75,33,"votes"],[84,40,75,38],[84,42,75,40],[85,4,76,4],[85,10,76,10,"allAye"],[85,16,76,16],[85,19,76,19],[85,21,76,21],[86,4,77,4],[86,10,77,10,"allNay"],[86,16,77,16],[86,19,77,19],[86,21,77,21],[87,4,78,4,"votes"],[87,9,78,9],[87,10,78,10,"forEach"],[87,17,78,17],[87,18,78,19,"derived"],[87,25,78,26],[87,29,78,31],[88,6,79,8],[88,10,79,12,"derived"],[88,17,79,19],[88,18,79,20,"vote"],[88,22,79,24],[88,23,79,25,"isAye"],[88,28,79,30],[88,30,79,32],[89,8,80,12,"allAye"],[89,14,80,18],[89,15,80,19,"push"],[89,19,80,23],[89,20,80,24,"derived"],[89,27,80,31],[89,28,80,32],[90,6,81,8],[90,7,81,9],[90,13,82,13],[91,8,83,12,"allNay"],[91,14,83,18],[91,15,83,19,"push"],[91,19,83,23],[91,20,83,24,"derived"],[91,27,83,31],[91,28,83,32],[92,6,84,8],[93,4,85,4],[93,5,85,5],[93,6,85,6],[94,4,86,4],[94,11,86,11],[95,6,87,8,"allAye"],[95,12,87,14],[96,6,88,8,"allNay"],[96,12,88,14],[97,6,89,8,"voteCount"],[97,15,89,17],[97,17,89,19,"allAye"],[97,23,89,25],[97,24,89,26,"length"],[97,30,89,32],[97,33,89,35,"allNay"],[97,39,89,41],[97,40,89,42,"length"],[97,46,89,48],[98,6,90,8,"voteCountAye"],[98,18,90,20],[98,20,90,22,"allAye"],[98,26,90,28],[98,27,90,29,"length"],[98,33,90,35],[99,6,91,8,"voteCountNay"],[99,18,91,20],[99,20,91,22,"allNay"],[99,26,91,28],[99,27,91,29,"length"],[99,33,91,35],[100,6,92,8,"votedAye"],[100,14,92,16],[100,16,92,18,"tally"],[100,21,92,23],[100,22,92,24,"ayes"],[100,26,92,28],[101,6,93,8,"votedNay"],[101,14,93,16],[101,16,93,18,"tally"],[101,21,93,23],[101,22,93,24,"nays"],[101,26,93,28],[102,6,94,8,"votedTotal"],[102,16,94,18],[102,18,94,20,"tally"],[102,23,94,25],[102,24,94,26,"turnout"],[103,4,95,4],[103,5,95,5],[104,2,96,0],[105,2,97,0],[105,11,97,9,"calcVotes"],[105,20,97,18,"calcVotes"],[105,21,97,19,"sqrtElectorate"],[105,35,97,33],[105,37,97,35,"referendum"],[105,47,97,45],[105,49,97,47,"votes"],[105,54,97,52],[105,56,97,54],[106,4,98,4],[106,10,98,10,"state"],[106,15,98,15],[106,18,98,18,"isCurrentStatus"],[106,33,98,33],[106,34,98,34,"referendum"],[106,44,98,44],[106,45,98,45,"status"],[106,51,98,51],[106,52,98,52],[106,55,99,10,"calcVotesCurrent"],[106,71,99,26],[106,72,99,27,"referendum"],[106,82,99,37],[106,83,99,38,"status"],[106,89,99,44],[106,90,99,45,"tally"],[106,95,99,50],[106,97,99,52,"votes"],[106,102,99,57],[106,103,99,58],[106,106,100,10,"calcVotesPrev"],[106,119,100,23],[106,120,100,24,"votes"],[106,125,100,29],[106,126,100,30],[107,4,101,4],[107,11,101,11],[107,12,101,12],[107,13,101,13],[107,15,101,15,"util_1"],[107,21,101,21],[107,22,101,22,"objectSpread"],[107,34,101,34],[107,36,101,36],[107,37,101,37],[107,38,101,38],[107,40,101,40,"state"],[107,45,101,45],[107,47,101,47],[108,6,102,8,"isPassing"],[108,15,102,17],[108,17,102,19,"calcPassing"],[108,28,102,30],[108,29,102,31,"referendum"],[108,39,102,41],[108,40,102,42,"status"],[108,46,102,48],[108,47,102,49,"threshold"],[108,56,102,58],[108,58,102,60,"sqrtElectorate"],[108,72,102,74],[108,74,102,76,"state"],[108,79,102,81],[108,80,102,82],[109,6,103,8,"votes"],[110,4,104,4],[110,5,104,5],[110,6,104,6],[111,2,105,0],[112,2,106,0],[112,11,106,9,"getStatus"],[112,20,106,18,"getStatus"],[112,21,106,19,"info"],[112,25,106,23],[112,27,106,25],[113,4,107,4],[113,8,107,8,"info"],[113,12,107,12],[113,13,107,13,"isNone"],[113,19,107,19],[113,21,107,21],[114,6,108,8],[114,13,108,15],[114,17,108,19],[115,4,109,4],[116,4,110,4],[116,10,110,10,"unwrapped"],[116,19,110,19],[116,22,110,22,"info"],[116,26,110,26],[116,27,110,27,"unwrap"],[116,33,110,33],[116,34,110,34],[116,35,110,35],[117,4,111,4],[117,11,111,11,"isOldInfo"],[117,20,111,20],[117,21,111,21,"unwrapped"],[117,30,111,30],[117,31,111,31],[117,34,112,10,"unwrapped"],[117,43,112,19],[117,46,113,10,"unwrapped"],[117,55,113,19],[117,56,113,20,"isOngoing"],[117,65,113,29],[117,68,114,14,"unwrapped"],[117,77,114,23],[117,78,114,24,"asOngoing"],[118,4,115,12],[119,4,115,12],[119,6,116,14],[119,10,116,18],[120,2,117,0],[121,2,118,0],[121,11,118,9,"getImageHashBounded"],[121,30,118,28,"getImageHashBounded"],[121,31,118,29,"hash"],[121,35,118,33],[121,37,118,35],[122,4,119,4],[122,11,119,11,"hash"],[122,15,119,15],[122,16,119,16,"isLegacy"],[122,24,119,24],[122,27,120,10,"hash"],[122,31,120,14],[122,32,120,15,"asLegacy"],[122,40,120,23],[122,41,120,24,"hash_"],[122,46,120,29],[122,47,120,30,"toHex"],[122,52,120,35],[122,53,120,36],[122,54,120,37],[122,57,121,10,"hash"],[122,61,121,14],[122,62,121,15,"isLookup"],[122,70,121,23],[122,73,122,14,"hash"],[122,77,122,18],[122,78,122,19,"asLookup"],[122,86,122,27],[122,87,122,28,"hash_"],[122,92,122,33],[122,93,122,34,"toHex"],[122,98,122,39],[122,99,122,40],[123,4,123,12],[124,4,123,12],[124,6,124,14,"hash"],[124,10,124,18],[124,11,124,19,"isInline"],[124,19,124,27],[124,22,125,18,"hash"],[124,26,125,22],[124,27,125,23,"asInline"],[124,35,125,31],[124,36,125,32,"hash"],[124,40,125,36],[124,41,125,37,"toHex"],[124,46,125,42],[124,47,125,43],[124,48,125,44],[124,51,126,18],[124,52,126,19],[124,53,126,20],[124,55,126,22,"util_1"],[124,61,126,28],[124,62,126,29,"isString"],[124,70,126,37],[124,72,126,39,"hash"],[124,76,126,43],[124,77,126,44],[124,80,127,22],[124,81,127,23],[124,82,127,24],[124,84,127,26,"util_1"],[124,90,127,32],[124,91,127,33,"isHex"],[124,96,127,38],[124,98,127,40,"hash"],[124,102,127,44],[124,103,127,45],[124,106,128,26,"hash"],[124,110,128,30],[124,113,129,26],[124,114,129,27],[124,115,129,28],[124,117,129,30,"util_1"],[124,123,129,36],[124,124,129,37,"stringToHex"],[124,135,129,48],[124,137,129,50,"hash"],[124,141,129,54],[124,142,129,55],[124,145,130,22],[124,146,130,23],[124,147,130,24],[124,149,130,26,"util_1"],[124,155,130,32],[124,156,130,33,"isU8a"],[124,161,130,38],[124,163,130,40,"hash"],[124,167,130,44],[124,168,130,45],[124,171,131,26],[124,172,131,27],[124,173,131,28],[124,175,131,30,"util_1"],[124,181,131,36],[124,182,131,37,"u8aToHex"],[124,190,131,45],[124,192,131,47,"hash"],[124,196,131,51],[124,197,131,52],[124,200,132,26,"hash"],[124,204,132,30],[124,205,132,31,"toHex"],[124,210,132,36],[124,211,132,37],[124,212,132,38],[125,2,133,0],[126,2,134,0],[126,11,134,9,"getImageHash"],[126,23,134,21,"getImageHash"],[126,24,134,22,"status"],[126,30,134,28],[126,32,134,30],[127,4,135,4],[127,11,135,11,"getImageHashBounded"],[127,30,135,30],[127,31,135,31,"status"],[127,37,135,37],[127,38,135,38,"proposal"],[127,46,135,46],[127,50,136,8,"status"],[127,56,136,14],[127,57,136,15,"proposalHash"],[127,69,136,27],[127,70,136,28],[128,2,137,0],[129,0,137,1],[129,3]],"functionMap":{"names":["","isOldInfo","isCurrentStatus","compareRationals","calcPassingOther","calcPassing","calcVotesPrev","votesFor.reduce$argument_0","calcVotesCurrent","votes.forEach$argument_0","calcVotes","getStatus","getImageHashBounded","getImageHash"],"mappings":"AAA;ACS;CDE;AEC;CFE;AGC;CHuB;AIC;CJO;AKC;CLI;AMC;2BCC;KDmB;CNC;AQC;kBCG;KDO;CRW;AUC;CVQ;AWC;CXW;AYC;CZe;AaC;CbG"},"hasCjsExports":true},"type":"js/module"}]}