const o = typeof HTMLElement < "u";
function l(n) {
  return o && n instanceof HTMLElement ? n : null;
}
function c(n) {
  return !o || !n || typeof n != "object" || !("$el" in n) ? !1 : n.$el instanceof HTMLElement;
}
function r(n) {
  return c(n) ? n.$el : null;
}
function i(n) {
  if (!n || typeof n != "object" || !("calendarRef" in n)) return null;
  const t = n.calendarRef, e = t == null ? void 0 : t.focusDate;
  return typeof e != "function" ? null : (f) => e.call(t, f);
}
export {
  r as a,
  i as g,
  c as i,
  l as t
};
//# sourceMappingURL=templateRefNarrowing-CeANDylX.js.map
