function a(e) {
  if (!e.trim())
    return e;
  const r = new Date(e);
  if (Number.isNaN(r.getTime()))
    return e;
  const n = new Intl.DateTimeFormat("en-GB", {
    day: "2-digit",
    month: "2-digit",
    year: "numeric",
    hour: "2-digit",
    minute: "2-digit",
    second: "2-digit",
    hour12: !1,
    timeZoneName: "short"
  }).formatToParts(r), t = (i) => n.find((o) => o.type === i)?.value ?? "";
  return `${t("day")}-${t("month")}-${t("year")} ${t("hour")}:${t("minute")}:${t("second")} (${t("timeZoneName")})`;
}
function s({ namespace: e, buildTime: r, version: n }) {
  const t = globalThis.window ?? globalThis, i = t.B2X_VERSIONS ?? {}, o = a(r);
  i[e] || (t.B2X_VERSIONS = {
    [e]: `${e}@${n}-${o}`,
    ...i
  });
}
export {
  a as formatBuildTime,
  s as registerBuildMetadata
};
//# sourceMappingURL=metadata.mjs.map
