{"ast":null,"code":"const formatDistanceLocale = {\n  lessThanXSeconds: {\n    one: \"unnit go ovtta sekundda\",\n    other: \"unnit go {{count}} sekundda\"\n  },\n  xSeconds: {\n    one: \"sekundda\",\n    other: \"{{count}} sekundda\"\n  },\n  halfAMinute: \"bealle minuhta\",\n  lessThanXMinutes: {\n    one: \"unnit go bealle minuhta\",\n    other: \"unnit go {{count}} minuhta\"\n  },\n  xMinutes: {\n    one: \"minuhta\",\n    other: \"{{count}} minuhta\"\n  },\n  aboutXHours: {\n    one: \"sullii ovtta diimmu\",\n    other: \"sullii {{count}} diimmu\"\n  },\n  xHours: {\n    one: \"diimmu\",\n    other: \"{{count}} diimmu\"\n  },\n  xDays: {\n    one: \"beaivvi\",\n    other: \"{{count}} beaivvi\"\n  },\n  aboutXWeeks: {\n    one: \"sullii ovtta vahku\",\n    other: \"sullii {{count}} vahku\"\n  },\n  xWeeks: {\n    one: \"vahku\",\n    other: \"{{count}} vahku\"\n  },\n  aboutXMonths: {\n    one: \"sullii ovtta mánu\",\n    other: \"sullii {{count}} mánu\"\n  },\n  xMonths: {\n    one: \"mánu\",\n    other: \"{{count}} mánu\"\n  },\n  aboutXYears: {\n    one: \"sullii ovtta jagi\",\n    other: \"sullii {{count}} jagi\"\n  },\n  xYears: {\n    one: \"jagi\",\n    other: \"{{count}} jagi\"\n  },\n  overXYears: {\n    one: \"guhkit go jagi\",\n    other: \"guhkit go {{count}} jagi\"\n  },\n  almostXYears: {\n    one: \"measta jagi\",\n    other: \"measta {{count}} jagi\"\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 \"geahčen \" + result;\n    } else {\n      return result + \" áigi\";\n    }\n  }\n  return result;\n};","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}