{"ast":null,"code":"const formatDistanceLocale = {\n  lessThanXSeconds: {\n    one: \"minder as 1 sekonde\",\n    other: \"minder as {{count}} sekonden\"\n  },\n  xSeconds: {\n    one: \"1 sekonde\",\n    other: \"{{count}} sekonden\"\n  },\n  halfAMinute: \"oardel minút\",\n  lessThanXMinutes: {\n    one: \"minder as 1 minút\",\n    other: \"minder as {{count}} minuten\"\n  },\n  xMinutes: {\n    one: \"1 minút\",\n    other: \"{{count}} minuten\"\n  },\n  aboutXHours: {\n    one: \"sawat 1 oere\",\n    other: \"sawat {{count}} oere\"\n  },\n  xHours: {\n    one: \"1 oere\",\n    other: \"{{count}} oere\"\n  },\n  xDays: {\n    one: \"1 dei\",\n    other: \"{{count}} dagen\"\n  },\n  aboutXWeeks: {\n    one: \"sawat 1 wike\",\n    other: \"sawat {{count}} wiken\"\n  },\n  xWeeks: {\n    one: \"1 wike\",\n    other: \"{{count}} wiken\"\n  },\n  aboutXMonths: {\n    one: \"sawat 1 moanne\",\n    other: \"sawat {{count}} moannen\"\n  },\n  xMonths: {\n    one: \"1 moanne\",\n    other: \"{{count}} moannen\"\n  },\n  aboutXYears: {\n    one: \"sawat 1 jier\",\n    other: \"sawat {{count}} jier\"\n  },\n  xYears: {\n    one: \"1 jier\",\n    other: \"{{count}} jier\"\n  },\n  overXYears: {\n    one: \"mear as 1 jier\",\n    other: \"mear as {{count}}s jier\"\n  },\n  almostXYears: {\n    one: \"hast 1 jier\",\n    other: \"hast {{count}} jier\"\n  }\n};\nexport const formatDistance = (token, count, options) => {\n  let result;\n  const tokenValue = formatDistanceLocale[token];\n  if (typeof tokenValue === \"string\") {\n    result = tokenValue;\n  } else if (count === 1) {\n    result = tokenValue.one;\n  } else {\n    result = tokenValue.other.replace(\"{{count}}\", String(count));\n  }\n  if (options?.addSuffix) {\n    if (options.comparison && options.comparison > 0) {\n      return \"oer \" + result;\n    } else {\n      return result + \" lyn\";\n    }\n  }\n  return result;\n};","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}