import { b as n } from "./chunk-W33JMRRN.js";
import { Type } from "@sinclair/typebox";
/*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/upstart-gg/upstart/blob/main/LICENSE */
function c(t) {
  return t.type === "object";
}
function l({ title: t, children: e, category: o = "settings", metadata: a, options: n2 }) {
  return c(e) ? Type.Composite([Type.Object({}), e], { title: t, metadata: { category: o, group: true, ...a }, ...n2 }) : Type.Object(e, { title: t, ...n2, metadata: { category: o, group: true, ...a } });
}
function P(t, e) {
  let o = { ...n, ...t }, { alignSelf: a, grow: n$1, ...p } = o, i = { ...p, ...e?.noAlignSelf ? {} : { alignSelf: a }, ...e?.noGrow ? {} : { grow: n$1 } };
  return Type.Object(i, { ...e, additionalProperties: false });
}
var T = Type.Array;
export {
  l as a,
  P as c,
  T as d
};
//# sourceMappingURL=chunk-3YVJ2ELD.js.map
