{"ast":null,"code":"const formatDistanceLocale = {\n  lessThanXSeconds: {\n    one: \"أقل من ثانية\",\n    two: \"أقل من ثانيتين\",\n    threeToTen: \"أقل من {{count}} ثواني\",\n    other: \"أقل من {{count}} ثانية\"\n  },\n  xSeconds: {\n    one: \"ثانية\",\n    two: \"ثانيتين\",\n    threeToTen: \"{{count}} ثواني\",\n    other: \"{{count}} ثانية\"\n  },\n  halfAMinute: \"نص دقيقة\",\n  lessThanXMinutes: {\n    one: \"أقل من دقيقة\",\n    two: \"أقل من دقيقتين\",\n    threeToTen: \"أقل من {{count}} دقايق\",\n    other: \"أقل من {{count}} دقيقة\"\n  },\n  xMinutes: {\n    one: \"دقيقة\",\n    two: \"دقيقتين\",\n    threeToTen: \"{{count}} دقايق\",\n    other: \"{{count}} دقيقة\"\n  },\n  aboutXHours: {\n    one: \"حوالي ساعة\",\n    two: \"حوالي ساعتين\",\n    threeToTen: \"حوالي {{count}} ساعات\",\n    other: \"حوالي {{count}} ساعة\"\n  },\n  xHours: {\n    one: \"ساعة\",\n    two: \"ساعتين\",\n    threeToTen: \"{{count}} ساعات\",\n    other: \"{{count}} ساعة\"\n  },\n  xDays: {\n    one: \"يوم\",\n    two: \"يومين\",\n    threeToTen: \"{{count}} أيام\",\n    other: \"{{count}} يوم\"\n  },\n  aboutXWeeks: {\n    one: \"حوالي أسبوع\",\n    two: \"حوالي أسبوعين\",\n    threeToTen: \"حوالي {{count}} أسابيع\",\n    other: \"حوالي {{count}} أسبوع\"\n  },\n  xWeeks: {\n    one: \"أسبوع\",\n    two: \"أسبوعين\",\n    threeToTen: \"{{count}} أسابيع\",\n    other: \"{{count}} أسبوع\"\n  },\n  aboutXMonths: {\n    one: \"حوالي شهر\",\n    two: \"حوالي شهرين\",\n    threeToTen: \"حوالي {{count}} أشهر\",\n    other: \"حوالي {{count}} شهر\"\n  },\n  xMonths: {\n    one: \"شهر\",\n    two: \"شهرين\",\n    threeToTen: \"{{count}} أشهر\",\n    other: \"{{count}} شهر\"\n  },\n  aboutXYears: {\n    one: \"حوالي سنة\",\n    two: \"حوالي سنتين\",\n    threeToTen: \"حوالي {{count}} سنين\",\n    other: \"حوالي {{count}} سنة\"\n  },\n  xYears: {\n    one: \"عام\",\n    two: \"عامين\",\n    threeToTen: \"{{count}} أعوام\",\n    other: \"{{count}} عام\"\n  },\n  overXYears: {\n    one: \"أكثر من سنة\",\n    two: \"أكثر من سنتين\",\n    threeToTen: \"أكثر من {{count}} سنين\",\n    other: \"أكثر من {{count}} سنة\"\n  },\n  almostXYears: {\n    one: \"عام تقريبًا\",\n    two: \"عامين تقريبًا\",\n    threeToTen: \"{{count}} أعوام تقريبًا\",\n    other: \"{{count}} عام تقريبًا\"\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) {\n    result = tokenValue.two;\n  } else if (count <= 10) {\n    result = tokenValue.threeToTen.replace(\"{{count}}\", String(count));\n  } else {\n    result = tokenValue.other.replace(\"{{count}}\", String(count));\n  }\n  if (options?.addSuffix) {\n    if (options.comparison && options.comparison > 0) {\n      return `في خلال ${result}`;\n    } else {\n      return `منذ ${result}`;\n    }\n  }\n  return result;\n};","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}