const u=(n,e)=>{const t=[...n].reverse().findIndex((r,s)=>e(r,n.length-1-s));return t<0?t:n.length-1-t},c=(n,e)=>{const t=[];for(let r=0;r<n.length;r+=e)t.push(n.slice(r,r+e));return t};function i(n,e){const t=n.indexOf(e);return t===-1?n:[...n.slice(t),...n.slice(0,t)]}function f(n){return n[Math.floor(Math.random()*n.length)]}function l(n){return n.reduce((e,t)=>e+t,0)}function d(n){return o(n).sort(()=>Math.random()-.5)}function o(n){return JSON.parse(JSON.stringify(n))}export{f as a,c,u as f,l as g,i as r,d as s};
