"use client";
var h = (r) => r, o = {}, f = (r) => r === o, m = (r) => function e() {
  return arguments.length === 0 || arguments.length === 1 && f(arguments.length <= 0 ? void 0 : arguments[0]) ? e : r(...arguments);
}, g = (r, e) => r === 1 ? e : m(function() {
  for (var t = arguments.length, n = new Array(t), u = 0; u < t; u++)
    n[u] = arguments[u];
  var v = n.filter((i) => i !== o).length;
  return v >= r ? e(...n) : g(r - v, m(function() {
    for (var i = arguments.length, s = new Array(i), a = 0; a < i; a++)
      s[a] = arguments[a];
    var c = n.map((l) => f(l) ? s.shift() : l);
    return e(...c, ...s);
  }));
}), A = (r) => g(r.length, r), p = (r, e) => {
  for (var t = [], n = r; n < e; ++n)
    t[n - r] = n;
  return t;
}, d = A((r, e) => Array.isArray(e) ? e.map(r) : Object.keys(e).map((t) => e[t]).map(r)), w = function() {
  for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
    t[n] = arguments[n];
  if (!t.length)
    return h;
  var u = t.reverse(), v = u[0], i = u.slice(1);
  return function() {
    return i.reduce((s, a) => a(s), v(...arguments));
  };
}, L = (r) => Array.isArray(r) ? r.reverse() : r.split("").reverse().join(""), j = (r) => {
  var e = null, t = null;
  return function() {
    for (var n = arguments.length, u = new Array(n), v = 0; v < n; v++)
      u[v] = arguments[v];
    return e && u.every((i, s) => {
      var a;
      return i === ((a = e) === null || a === void 0 ? void 0 : a[s]);
    }) || (e = u, t = r(...u)), t;
  };
};
export {
  o as PLACE_HOLDER,
  w as compose,
  A as curry,
  d as map,
  j as memoize,
  p as range,
  L as reverse
};
