{"ast":null,"code":"const formatDistanceLocale = {\n  lessThanXSeconds: {\n    one: \"inqas minn sekonda\",\n    other: \"inqas minn {{count}} sekondi\"\n  },\n  xSeconds: {\n    one: \"sekonda\",\n    other: \"{{count}} sekondi\"\n  },\n  halfAMinute: \"nofs minuta\",\n  lessThanXMinutes: {\n    one: \"inqas minn minuta\",\n    other: \"inqas minn {{count}} minuti\"\n  },\n  xMinutes: {\n    one: \"minuta\",\n    other: \"{{count}} minuti\"\n  },\n  aboutXHours: {\n    one: \"madwar siegħa\",\n    other: \"madwar {{count}} siegħat\"\n  },\n  xHours: {\n    one: \"siegħa\",\n    other: \"{{count}} siegħat\"\n  },\n  xDays: {\n    one: \"ġurnata\",\n    other: \"{{count}} ġranet\"\n  },\n  aboutXWeeks: {\n    one: \"madwar ġimgħa\",\n    other: \"madwar {{count}} ġimgħat\"\n  },\n  xWeeks: {\n    one: \"ġimgħa\",\n    other: \"{{count}} ġimgħat\"\n  },\n  aboutXMonths: {\n    one: \"madwar xahar\",\n    other: \"madwar {{count}} xhur\"\n  },\n  xMonths: {\n    one: \"xahar\",\n    other: \"{{count}} xhur\"\n  },\n  aboutXYears: {\n    one: \"madwar sena\",\n    two: \"madwar sentejn\",\n    other: \"madwar {{count}} snin\"\n  },\n  xYears: {\n    one: \"sena\",\n    two: \"sentejn\",\n    other: \"{{count}} snin\"\n  },\n  overXYears: {\n    one: \"aktar minn sena\",\n    two: \"aktar minn sentejn\",\n    other: \"aktar minn {{count}} snin\"\n  },\n  almostXYears: {\n    one: \"kważi sena\",\n    two: \"kważi sentejn\",\n    other: \"kważi {{count}} snin\"\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 if (count === 2 && tokenValue.two) {\n    result = tokenValue.two;\n  } else {\n    result = tokenValue.other.replace(\"{{count}}\", String(count));\n  }\n  if (options?.addSuffix) {\n    if (options.comparison && options.comparison > 0) {\n      return \"f'\" + result;\n    } else {\n      return result + \" ilu\";\n    }\n  }\n  return result;\n};","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}