import { z as t } from "zod";
const h = t.enum([
  "image/png",
  "image/jpeg",
  "image/bmp",
  "image/gif",
  "image/vnd.microsoft.icon",
  "image/jpeg",
  "image/png",
  "image/svg+xml",
  "image/tiff",
  "image/webp",
  "text/markdown",
  "text/html",
  "audio/aac",
  "audio/midi audio/x-midi",
  "audio/mpeg",
  "audio/ogg",
  "audio/wav",
  "audio/webm",
  "video/x-msvideo",
  "video/mpeg",
  "video/ogg",
  "video/webm",
  "video/3gpp",
  "video/3gpp2"
]), a = t.object({
  contentType: t.string(),
  fileName: t.string(),
  url: t.string()
}), e = t.object({
  type: t.string(),
  content: t.string()
}), g = t.object({
  title: t.string(),
  tags: t.string(),
  content: e.optional(),
  media: a.optional()
});
t.object({
  id: t.string(),
  appId: t.record(t.string(), t.union([t.string(), t.undefined()])),
  locale: t.record(t.string(), g)
});
const i = Object.freeze({
  URL_IMAGE: "url:image",
  URL_VIDEO: "url:video",
  YOUTUBE_VIDEO: "youtube:video"
}), p = t.enum([
  i.URL_IMAGE,
  i.URL_VIDEO,
  i.YOUTUBE_VIDEO
]), n = t.object({
  type: p,
  content: t.string()
}), l = t.object({
  title: t.string(),
  media: t.array(a),
  excerpt: e.optional(),
  content: e.optional(),
  tags: t.string().optional()
}), u = t.object({
  id: t.string(),
  locale: t.record(t.string(), l),
  publishedAt: t.string(),
  lastUpdatedAt: t.string(),
  authorId: t.string().optional()
}), d = t.object({
  authorName: t.string().optional()
}), m = t.object({
  id: t.string(),
  locale: t.record(t.string(), d)
}), b = t.intersection(
  u,
  t.object({
    author: m.optional()
  })
);
t.object({
  data: t.array(b),
  paging: t.object({
    totalPage: t.number()
  })
});
t.object({
  itemId: t.string(),
  mainBackground: t.union([n, t.null()]).optional(),
  medias: t.array(n).optional(),
  miniLauncherUrl: t.string().optional(),
  launcherMainBackground: t.union([n, t.null()]).optional()
});
const j = t.object({
  title: t.string(),
  subtitle: t.string().optional(),
  content: e.optional(),
  icon: a.optional()
}), o = t.object({
  path: t.string(),
  locale: t.record(t.string(), j)
}), r = t.object({
  support: t.union([o, t.null()]),
  subPaths: t.array(t.string())
});
t.object({
  support: t.union([o, t.null()]),
  sub: t.record(t.string(), r),
  parents: t.array(o)
});
const v = t.object({
  support: o,
  sub: t.record(t.string(), r),
  parents: t.array(o)
});
t.object({
  data: t.array(v),
  paging: t.object({
    totalPage: t.number()
  })
});
class s extends Error {
  constructor(c) {
    super(c), Object.setPrototypeOf(this, s.prototype);
  }
}
export {
  m as Author,
  d as AuthorLocaleData,
  s as FeatureDecodeError,
  g as FeatureLocaleData,
  a as Media,
  h as MediaType,
  u as News,
  l as NewsLocaleData,
  b as NewsWithAuthor,
  r as SubSupportDirectRelative,
  o as Support,
  j as SupportLocaleData,
  v as SupportSearchItem,
  e as Text,
  n as UniversalMedia,
  p as UniversalMediaSupportedType,
  i as UniversalMediaType
};
