const n = (s, e) => Math.ceil(s / e), l = (s, e, t) => {
  const f = i(s, e, t), c = d(f, t), r = h(Math.min(t, e), c);
  return r.includes(1) || (r.includes(2) || r.unshift(-1), r.unshift(1)), r.includes(e) || (r.includes(e - 1) || r.push(-1), r.push(e)), r;
}, i = (s, e, t) => {
  const f = Math.floor(t / 2), c = f;
  return s + c > e ? e : s + f <= t ? t : s + c;
}, d = (s, e) => s - e + 1 > 0 ? s - e + 1 : 1, h = (s, e = 0) => new Array(s).fill(null).map((t, f) => f + e);
export {
  n as getNumberOfPages,
  l as getPageRangeList
};
