import { __require as b } from "./conversions.js";
import { __require as q } from "./route.js";
var s, a;
function C() {
  if (a) return s;
  a = 1;
  const u = b(), v = q(), i = {}, l = Object.keys(u);
  function f(n) {
    const r = function(...t) {
      const e = t[0];
      return e == null ? e : (e.length > 1 && (t = e), n(t));
    };
    return "conversion" in n && (r.conversion = n.conversion), r;
  }
  function p(n) {
    const r = function(...t) {
      const e = t[0];
      if (e == null)
        return e;
      e.length > 1 && (t = e);
      const o = n(t);
      if (typeof o == "object")
        for (let h = o.length, c = 0; c < h; c++)
          o[c] = Math.round(o[c]);
      return o;
    };
    return "conversion" in n && (r.conversion = n.conversion), r;
  }
  return l.forEach((n) => {
    i[n] = {}, Object.defineProperty(i[n], "channels", { value: u[n].channels }), Object.defineProperty(i[n], "labels", { value: u[n].labels });
    const r = v(n);
    Object.keys(r).forEach((e) => {
      const o = r[e];
      i[n][e] = p(o), i[n][e].raw = f(o);
    });
  }), s = i, s;
}
export {
  C as __require
};
//# sourceMappingURL=index.js.map
