{"dependencies":[],"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.arrayShuffle = arrayShuffle;\n /**\n * @name arrayShuffle\n * @description Shuffles the input array (unlike sort, this is not done in-place)\n */\n function arrayShuffle(input) {\n const result = input.slice();\n let curr = result.length;\n // noop for the single entry\n if (curr === 1) {\n return result;\n }\n while (curr !== 0) {\n // ~~ is more performant than Math.floor\n const rand = ~~(Math.random() * curr);\n curr--;\n [result[curr], result[rand]] = [result[rand], result[curr]];\n }\n return result;\n }\n});","lineCount":27,"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,"arrayShuffle"],[7,22,3,20],[7,25,3,23,"arrayShuffle"],[7,37,3,35],[8,2,4,0],[9,0,5,0],[10,0,6,0],[11,0,7,0],[12,2,8,0],[12,11,8,9,"arrayShuffle"],[12,23,8,21,"arrayShuffle"],[12,24,8,22,"input"],[12,29,8,27],[12,31,8,29],[13,4,9,4],[13,10,9,10,"result"],[13,16,9,16],[13,19,9,19,"input"],[13,24,9,24],[13,25,9,25,"slice"],[13,30,9,30],[13,31,9,31],[13,32,9,32],[14,4,10,4],[14,8,10,8,"curr"],[14,12,10,12],[14,15,10,15,"result"],[14,21,10,21],[14,22,10,22,"length"],[14,28,10,28],[15,4,11,4],[16,4,12,4],[16,8,12,8,"curr"],[16,12,12,12],[16,17,12,17],[16,18,12,18],[16,20,12,20],[17,6,13,8],[17,13,13,15,"result"],[17,19,13,21],[18,4,14,4],[19,4,15,4],[19,11,15,11,"curr"],[19,15,15,15],[19,20,15,20],[19,21,15,21],[19,23,15,23],[20,6,16,8],[21,6,17,8],[21,12,17,14,"rand"],[21,16,17,18],[21,19,17,21],[21,20,17,22],[21,22,17,24,"Math"],[21,26,17,28],[21,27,17,29,"random"],[21,33,17,35],[21,34,17,36],[21,35,17,37],[21,38,17,40,"curr"],[21,42,17,44],[21,43,17,45],[22,6,18,8,"curr"],[22,10,18,12],[22,12,18,14],[23,6,19,8],[23,7,19,9,"result"],[23,13,19,15],[23,14,19,16,"curr"],[23,18,19,20],[23,19,19,21],[23,21,19,23,"result"],[23,27,19,29],[23,28,19,30,"rand"],[23,32,19,34],[23,33,19,35],[23,34,19,36],[23,37,19,39],[23,38,19,40,"result"],[23,44,19,46],[23,45,19,47,"rand"],[23,49,19,51],[23,50,19,52],[23,52,19,54,"result"],[23,58,19,60],[23,59,19,61,"curr"],[23,63,19,65],[23,64,19,66],[23,65,19,67],[24,4,20,4],[25,4,21,4],[25,11,21,11,"result"],[25,17,21,17],[26,2,22,0],[27,0,22,1],[27,3]],"functionMap":{"names":["","arrayShuffle"],"mappings":"AAA;ACO;CDc"},"hasCjsExports":true},"type":"js/module"}]}