UEA-PRODEM

This commit is contained in:
2026-06-10 12:14:46 -03:00
parent f54126b9d8
commit 9947565694
5319 changed files with 148520 additions and 129332 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
import type { FormatLongFn, FormatLongWidth } from "../types.js";
import type { FormatLongFn, FormatLongWidth } from "../types.ts";
export interface BuildFormatLongFnArgs<
DefaultMatchWidth extends FormatLongWidth,
> {
+1 -1
View File
@@ -1,4 +1,4 @@
import type { FormatLongFn, FormatLongWidth } from "../types.js";
import type { FormatLongFn, FormatLongWidth } from "../types.ts";
export interface BuildFormatLongFnArgs<
DefaultMatchWidth extends FormatLongWidth,
> {
+2 -2
View File
@@ -1,10 +1,10 @@
import type { Day, Era, Month, Quarter } from "../../types.js";
import type { Day, Era, Month, Quarter } from "../../types.ts";
import type {
LocaleDayPeriod,
LocaleUnitValue,
LocaleWidth,
LocalizeFn,
} from "../types.js";
} from "../types.ts";
export type BuildLocalizeFnArgs<
Value extends LocaleUnitValue,
ArgCallback extends LocalizeFnArgCallback<Value> | undefined,
+2 -2
View File
@@ -1,10 +1,10 @@
import type { Day, Era, Month, Quarter } from "../../types.js";
import type { Day, Era, Month, Quarter } from "../../types.ts";
import type {
LocaleDayPeriod,
LocaleUnitValue,
LocaleWidth,
LocalizeFn,
} from "../types.js";
} from "../types.ts";
export type BuildLocalizeFnArgs<
Value extends LocaleUnitValue,
ArgCallback extends LocalizeFnArgCallback<Value> | undefined,
+2 -2
View File
@@ -1,11 +1,11 @@
import type { Quarter, Era, Day, Month } from "../../types.js";
import type { Quarter, Era, Day, Month } from "../../types.ts";
import type {
LocaleUnitValue,
LocaleWidth,
LocaleDayPeriod,
MatchFn,
MatchValueCallback,
} from "../types.js";
} from "../types.ts";
export interface BuildMatchFnArgs<
Result extends LocaleUnitValue,
DefaultMatchWidth extends LocaleWidth,
+2 -2
View File
@@ -1,11 +1,11 @@
import type { Quarter, Era, Day, Month } from "../../types.js";
import type { Quarter, Era, Day, Month } from "../../types.ts";
import type {
LocaleUnitValue,
LocaleWidth,
LocaleDayPeriod,
MatchFn,
MatchValueCallback,
} from "../types.js";
} from "../types.ts";
export interface BuildMatchFnArgs<
Result extends LocaleUnitValue,
DefaultMatchWidth extends LocaleWidth,
+1 -1
View File
@@ -1,4 +1,4 @@
import type { MatchFn, MatchValueCallback } from "../types.js";
import type { MatchFn, MatchValueCallback } from "../types.ts";
export interface BuildMatchPatternFnArgs<Result> {
matchPattern: RegExp;
parsePattern: RegExp;
+1 -1
View File
@@ -1,4 +1,4 @@
import type { MatchFn, MatchValueCallback } from "../types.js";
import type { MatchFn, MatchValueCallback } from "../types.ts";
export interface BuildMatchPatternFnArgs<Result> {
matchPattern: RegExp;
parsePattern: RegExp;
+1 -1
View File
@@ -1,4 +1,4 @@
import type { Locale } from "./types.js";
import type { Locale } from "./types.ts";
/**
* @category Locales
* @summary Afrikaans locale.
+1 -1
View File
@@ -1,4 +1,4 @@
import type { Locale } from "./types.js";
import type { Locale } from "./types.ts";
/**
* @category Locales
* @summary Afrikaans locale.
+1 -1
View File
@@ -1,2 +1,2 @@
import type { FormatDistanceFn } from "../../types.js";
import type { FormatDistanceFn } from "../../types.ts";
export declare const formatDistance: FormatDistanceFn;
+1 -1
View File
@@ -1,2 +1,2 @@
import type { FormatDistanceFn } from "../../types.js";
import type { FormatDistanceFn } from "../../types.ts";
export declare const formatDistance: FormatDistanceFn;
+1 -1
View File
@@ -1,2 +1,2 @@
import type { FormatLong } from "../../types.js";
import type { FormatLong } from "../../types.ts";
export declare const formatLong: FormatLong;
+1 -1
View File
@@ -1,2 +1,2 @@
import type { FormatLong } from "../../types.js";
import type { FormatLong } from "../../types.ts";
export declare const formatLong: FormatLong;
+1 -1
View File
@@ -1,2 +1,2 @@
import type { FormatRelativeFn } from "../../types.js";
import type { FormatRelativeFn } from "../../types.ts";
export declare const formatRelative: FormatRelativeFn;
+1 -1
View File
@@ -1,2 +1,2 @@
import type { FormatRelativeFn } from "../../types.js";
import type { FormatRelativeFn } from "../../types.ts";
export declare const formatRelative: FormatRelativeFn;
+1 -1
View File
@@ -1,2 +1,2 @@
import type { Localize } from "../../types.js";
import type { Localize } from "../../types.ts";
export declare const localize: Localize;
+1 -1
View File
@@ -1,2 +1,2 @@
import type { Localize } from "../../types.js";
import type { Localize } from "../../types.ts";
export declare const localize: Localize;
+1 -1
View File
@@ -1,2 +1,2 @@
import type { Match } from "../../types.js";
import type { Match } from "../../types.ts";
export declare const match: Match;
+1 -1
View File
@@ -1,2 +1,2 @@
import type { Match } from "../../types.js";
import type { Match } from "../../types.ts";
export declare const match: Match;
+275 -226
View File
@@ -1,16 +1,5 @@
(() => {
var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(obj, key, value) {key = _toPropertyKey(key);if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : String(i);}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);}var __defProp = Object.defineProperty;
var __export = function __export(target, all) {
for (var name in all)
__defProp(target, name, {
get: all[name],
enumerable: true,
configurable: true,
set: function set(newValue) {return all[name] = function () {return newValue;};}
});
};
// lib/locale/af/_lib/formatDistance.js
var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/af/_lib/formatDistance.js
var formatDistanceLocale = {
lessThanXSeconds: {
one: "minder as 'n sekonde",
@@ -77,78 +66,94 @@ var formatDistanceLocale = {
var formatDistance = function formatDistance(token, count, options) {
var result;
var tokenValue = formatDistanceLocale[token];
if (typeof tokenValue === "string") {
result = tokenValue;
} else if (count === 1) {
result = tokenValue.one;
} else {
result = tokenValue.other.replace("{{count}}", String(count));
}
if (options !== null && options !== void 0 && options.addSuffix) {
if (options.comparison && options.comparison > 0) {
return "oor " + result;
} else {
return result + " gelede";
}
}
if (typeof tokenValue === "string") result = tokenValue;else
if (count === 1) result = tokenValue.one;else
result = tokenValue.other.replace("{{count}}", String(count));
if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "oor " + result;else
return result + " gelede";
return result;
};
// lib/locale/_lib/buildFormatLongFn.js
//#endregion
//#region dist/date-fns/locale/_lib/buildFormatLongFn.js
function buildFormatLongFn(args) {
return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
var width = options.width ? String(options.width) : args.defaultWidth;
var format = args.formats[width] || args.formats[args.defaultWidth];
return format;
return args.formats[width] || args.formats[args.defaultWidth];
};
}
// lib/locale/af/_lib/formatLong.js
var dateFormats = {
full: "EEEE, d MMMM yyyy",
long: "d MMMM yyyy",
medium: "d MMM yyyy",
short: "yyyy/MM/dd"
};
var timeFormats = {
full: "HH:mm:ss zzzz",
long: "HH:mm:ss z",
medium: "HH:mm:ss",
short: "HH:mm"
};
var dateTimeFormats = {
full: "{{date}} 'om' {{time}}",
long: "{{date}} 'om' {{time}}",
medium: "{{date}}, {{time}}",
short: "{{date}}, {{time}}"
};
var formatLong = {
date: buildFormatLongFn({
formats: dateFormats,
formats: {
full: "EEEE, d MMMM yyyy",
long: "d MMMM yyyy",
medium: "d MMM yyyy",
short: "yyyy/MM/dd"
},
defaultWidth: "full"
}),
time: buildFormatLongFn({
formats: timeFormats,
formats: {
full: "HH:mm:ss zzzz",
long: "HH:mm:ss z",
medium: "HH:mm:ss",
short: "HH:mm"
},
defaultWidth: "full"
}),
dateTime: buildFormatLongFn({
formats: dateTimeFormats,
formats: {
full: "{{date}} 'om' {{time}}",
long: "{{date}} 'om' {{time}}",
medium: "{{date}}, {{time}}",
short: "{{date}}, {{time}}"
},
defaultWidth: "full"
})
};
// lib/locale/af/_lib/formatRelative.js
//#endregion
//#region dist/date-fns/locale/af/_lib/formatRelative.js
var formatRelativeLocale = {
lastWeek: "'verlede' eeee 'om' p",
yesterday: "'gister om' p",
today: "'vandag om' p",
tomorrow: "'m\xF4re om' p",
tomorrow: "'môre om' p",
nextWeek: "eeee 'om' p",
other: "P"
};
var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];};
// lib/locale/_lib/buildLocalizeFn.js
//#endregion
//#region dist/date-fns/locale/_lib/buildLocalizeFn.js
/**
* The localize function argument callback which allows to convert raw value to
* the actual type.
*
* @param value - The value to convert
*
* @returns The converted value
*/
/**
* The map of localized values for each width.
*/
/**
* The index type of the locale unit value. It types conversion of units of
* values that don't start at 0 (i.e. quarters).
*/
/**
* Converts the unit value to the tuple of values.
*/
/**
* The tuple of localized era values. The first element represents BC,
* the second element represents AD.
*/
/**
* The tuple of localized quarter values. The first element represents Q1.
*/
/**
* The tuple of localized day values. The first element represents Sunday.
*/
/**
* The tuple of localized month values. The first element represents January.
*/
function buildLocalizeFn(args) {
return function (value, options) {
var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone";
@@ -166,20 +171,48 @@ function buildLocalizeFn(args) {
return valuesArray[index];
};
}
// lib/locale/af/_lib/localize.js
//#endregion
//#region dist/date-fns/locale/af/_lib/localize.js
var eraValues = {
narrow: ["vC", "nC"],
abbreviated: ["vC", "nC"],
wide: ["voor Christus", "na Christus"]
};
var quarterValues = {
narrow: ["1", "2", "3", "4"],
abbreviated: ["K1", "K2", "K3", "K4"],
wide: ["1ste kwartaal", "2de kwartaal", "3de kwartaal", "4de kwartaal"]
narrow: [
"1",
"2",
"3",
"4"],
abbreviated: [
"K1",
"K2",
"K3",
"K4"],
wide: [
"1ste kwartaal",
"2de kwartaal",
"3de kwartaal",
"4de kwartaal"]
};
var monthValues = {
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
narrow: [
"J",
"F",
"M",
"A",
"M",
"J",
"J",
"A",
"S",
"O",
"N",
"D"],
abbreviated: [
"Jan",
"Feb",
@@ -210,9 +243,33 @@ var monthValues = {
};
var dayValues = {
narrow: ["S", "M", "D", "W", "D", "V", "S"],
short: ["So", "Ma", "Di", "Wo", "Do", "Vr", "Sa"],
abbreviated: ["Son", "Maa", "Din", "Woe", "Don", "Vry", "Sat"],
narrow: [
"S",
"M",
"D",
"W",
"D",
"V",
"S"],
short: [
"So",
"Ma",
"Di",
"Wo",
"Do",
"Vr",
"Sa"],
abbreviated: [
"Son",
"Maa",
"Din",
"Woe",
"Don",
"Vry",
"Sat"],
wide: [
"Sondag",
"Maandag",
@@ -290,14 +347,10 @@ var formattingDayPeriodValues = {
var ordinalNumber = function ordinalNumber(dirtyNumber) {
var number = Number(dirtyNumber);
var rem100 = number % 100;
if (rem100 < 20) {
switch (rem100) {
case 1:
case 8:
return number + "ste";
default:
return number + "de";
}
if (rem100 < 20) switch (rem100) {
case 1:
case 8:return number + "ste";
default:return number + "de";
}
return number + "ste";
};
@@ -327,16 +380,14 @@ var localize = {
defaultFormattingWidth: "wide"
})
};
// lib/locale/_lib/buildMatchFn.js
//#endregion
//#region dist/date-fns/locale/_lib/buildMatchFn.js
function buildMatchFn(args) {
return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
var width = options.width;
var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth];
var matchResult = string.match(matchPattern);
if (!matchResult) {
return null;
}
if (!matchResult) return null;
var matchedString = matchResult[0];
var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth];
var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);});
@@ -344,176 +395,175 @@ function buildMatchFn(args) {
value = args.valueCallback ? args.valueCallback(key) : key;
value = options.valueCallback ? options.valueCallback(value) : value;
var rest = string.slice(matchedString.length);
return { value: value, rest: rest };
return {
value: value,
rest: rest
};
};
}
function findKey(object, predicate) {
for (var key in object) {
if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) {
return key;
}
}
return;
for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key;
}
function findIndex(array, predicate) {
for (var key = 0; key < array.length; key++) {
if (predicate(array[key])) {
return key;
}
}
return;
for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key;
}
// lib/locale/_lib/buildMatchPatternFn.js
//#endregion
//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js
function buildMatchPatternFn(args) {
return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
var matchResult = string.match(args.matchPattern);
if (!matchResult)
return null;
if (!matchResult) return null;
var matchedString = matchResult[0];
var parseResult = string.match(args.parsePattern);
if (!parseResult)
return null;
if (!parseResult) return null;
var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0];
value = options.valueCallback ? options.valueCallback(value) : value;
var rest = string.slice(matchedString.length);
return { value: value, rest: rest };
return {
value: value,
rest: rest
};
};
}
// lib/locale/af/_lib/match.js
var matchOrdinalNumberPattern = /^(\d+)(ste|de)?/i;
var parseOrdinalNumberPattern = /\d+/i;
var matchEraPatterns = {
narrow: /^([vn]\.? ?C\.?)/,
abbreviated: /^([vn]\. ?C\.?)/,
wide: /^((voor|na) Christus)/
};
var parseEraPatterns = {
any: [/^v/, /^n/]
};
var matchQuarterPatterns = {
narrow: /^[1234]/i,
abbreviated: /^K[1234]/i,
wide: /^[1234](st|d)e kwartaal/i
};
var parseQuarterPatterns = {
any: [/1/i, /2/i, /3/i, /4/i]
};
var matchMonthPatterns = {
narrow: /^[jfmasond]/i,
abbreviated: /^(Jan|Feb|Mrt|Apr|Mei|Jun|Jul|Aug|Sep|Okt|Nov|Dec)\.?/i,
wide: /^(Januarie|Februarie|Maart|April|Mei|Junie|Julie|Augustus|September|Oktober|November|Desember)/i
};
var parseMonthPatterns = {
narrow: [
/^J/i,
/^F/i,
/^M/i,
/^A/i,
/^M/i,
/^J/i,
/^J/i,
/^A/i,
/^S/i,
/^O/i,
/^N/i,
/^D/i],
any: [
/^Jan/i,
/^Feb/i,
/^Mrt/i,
/^Apr/i,
/^Mei/i,
/^Jun/i,
/^Jul/i,
/^Aug/i,
/^Sep/i,
/^Okt/i,
/^Nov/i,
/^Dec/i]
};
var matchDayPatterns = {
narrow: /^[smdwv]/i,
short: /^(So|Ma|Di|Wo|Do|Vr|Sa)/i,
abbreviated: /^(Son|Maa|Din|Woe|Don|Vry|Sat)/i,
wide: /^(Sondag|Maandag|Dinsdag|Woensdag|Donderdag|Vrydag|Saterdag)/i
};
var parseDayPatterns = {
narrow: [/^S/i, /^M/i, /^D/i, /^W/i, /^D/i, /^V/i, /^S/i],
any: [/^So/i, /^Ma/i, /^Di/i, /^Wo/i, /^Do/i, /^Vr/i, /^Sa/i]
};
var matchDayPeriodPatterns = {
any: /^(vm|nm|middernag|(?:uur )?die (oggend|middag|aand))/i
};
var parseDayPeriodPatterns = {
any: {
am: /^vm/i,
pm: /^nm/i,
midnight: /^middernag/i,
noon: /^middaguur/i,
morning: /oggend/i,
afternoon: /middag/i,
evening: /laat middag/i,
night: /aand/i
}
};
var match = {
ordinalNumber: buildMatchPatternFn({
matchPattern: matchOrdinalNumberPattern,
parsePattern: parseOrdinalNumberPattern,
valueCallback: function valueCallback(value) {return parseInt(value, 10);}
}),
era: buildMatchFn({
matchPatterns: matchEraPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseEraPatterns,
defaultParseWidth: "any"
}),
quarter: buildMatchFn({
matchPatterns: matchQuarterPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseQuarterPatterns,
defaultParseWidth: "any",
valueCallback: function valueCallback(index) {return index + 1;}
}),
month: buildMatchFn({
matchPatterns: matchMonthPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseMonthPatterns,
defaultParseWidth: "any"
}),
day: buildMatchFn({
matchPatterns: matchDayPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseDayPatterns,
defaultParseWidth: "any"
}),
dayPeriod: buildMatchFn({
matchPatterns: matchDayPeriodPatterns,
defaultMatchWidth: "any",
parsePatterns: parseDayPeriodPatterns,
defaultParseWidth: "any"
})
};
// lib/locale/af.js
//#endregion
//#region dist/date-fns/locale/af.js
/**
* @category Locales
* @summary Afrikaans locale.
* @language Afrikaans
* @iso-639-2 afr
* @author Marnus Weststrate [@marnusw](https://github.com/marnusw)
*/
var af = {
code: "af",
formatDistance: formatDistance,
formatLong: formatLong,
formatRelative: formatRelative,
localize: localize,
match: match,
match: {
ordinalNumber: buildMatchPatternFn({
matchPattern: /^(\d+)(ste|de)?/i,
parsePattern: /\d+/i,
valueCallback: function valueCallback(value) {return parseInt(value, 10);}
}),
era: buildMatchFn({
matchPatterns: {
narrow: /^([vn]\.? ?C\.?)/,
abbreviated: /^([vn]\. ?C\.?)/,
wide: /^((voor|na) Christus)/
},
defaultMatchWidth: "wide",
parsePatterns: { any: [/^v/, /^n/] },
defaultParseWidth: "any"
}),
quarter: buildMatchFn({
matchPatterns: {
narrow: /^[1234]/i,
abbreviated: /^K[1234]/i,
wide: /^[1234](st|d)e kwartaal/i
},
defaultMatchWidth: "wide",
parsePatterns: { any: [
/1/i,
/2/i,
/3/i,
/4/i]
},
defaultParseWidth: "any",
valueCallback: function valueCallback(index) {return index + 1;}
}),
month: buildMatchFn({
matchPatterns: {
narrow: /^[jfmasond]/i,
abbreviated: /^(Jan|Feb|Mrt|Apr|Mei|Jun|Jul|Aug|Sep|Okt|Nov|Dec)\.?/i,
wide: /^(Januarie|Februarie|Maart|April|Mei|Junie|Julie|Augustus|September|Oktober|November|Desember)/i
},
defaultMatchWidth: "wide",
parsePatterns: {
narrow: [
/^J/i,
/^F/i,
/^M/i,
/^A/i,
/^M/i,
/^J/i,
/^J/i,
/^A/i,
/^S/i,
/^O/i,
/^N/i,
/^D/i],
any: [
/^Jan/i,
/^Feb/i,
/^Mrt/i,
/^Apr/i,
/^Mei/i,
/^Jun/i,
/^Jul/i,
/^Aug/i,
/^Sep/i,
/^Okt/i,
/^Nov/i,
/^Dec/i]
},
defaultParseWidth: "any"
}),
day: buildMatchFn({
matchPatterns: {
narrow: /^[smdwv]/i,
short: /^(So|Ma|Di|Wo|Do|Vr|Sa)/i,
abbreviated: /^(Son|Maa|Din|Woe|Don|Vry|Sat)/i,
wide: /^(Sondag|Maandag|Dinsdag|Woensdag|Donderdag|Vrydag|Saterdag)/i
},
defaultMatchWidth: "wide",
parsePatterns: {
narrow: [
/^S/i,
/^M/i,
/^D/i,
/^W/i,
/^D/i,
/^V/i,
/^S/i],
any: [
/^So/i,
/^Ma/i,
/^Di/i,
/^Wo/i,
/^Do/i,
/^Vr/i,
/^Sa/i]
},
defaultParseWidth: "any"
}),
dayPeriod: buildMatchFn({
matchPatterns: { any: /^(vm|nm|middernag|(?:uur )?die (oggend|middag|aand))/i },
defaultMatchWidth: "any",
parsePatterns: { any: {
am: /^vm/i,
pm: /^nm/i,
midnight: /^middernag/i,
noon: /^middaguur/i,
morning: /oggend/i,
afternoon: /middag/i,
evening: /laat middag/i,
night: /aand/i
} },
defaultParseWidth: "any"
})
},
options: {
weekStartsOn: 0,
firstWeekContainsDate: 1
}
};
// lib/locale/af/cdn.js
//#endregion
//#region dist/date-fns/_entries/locale/af/cdn.js
window.dateFns = _objectSpread(_objectSpread({},
window.dateFns), {}, {
locale: _objectSpread(_objectSpread({}, (_window$dateFns =
@@ -521,8 +571,7 @@ window.dateFns), {}, {
af: af }) });
//#endregion
//# debugId=3CE5C1FE7ED8F20364756E2164756E21
//# sourceMappingURL=cdn.js.map
console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN");
})();
-1
View File
File diff suppressed because one or more lines are too long
+1 -3
View File
File diff suppressed because one or more lines are too long
-10
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -1,4 +1,4 @@
import type { Locale } from "./types.js";
import type { Locale } from "./types.ts";
/**
* @category Locales
* @summary Arabic locale (Algerian Arabic).
+1 -1
View File
@@ -1,4 +1,4 @@
import type { Locale } from "./types.js";
import type { Locale } from "./types.ts";
/**
* @category Locales
* @summary Arabic locale (Algerian Arabic).
+1 -1
View File
@@ -1,2 +1,2 @@
import type { FormatDistanceFn } from "../../types.js";
import type { FormatDistanceFn } from "../../types.ts";
export declare const formatDistance: FormatDistanceFn;
+1 -1
View File
@@ -1,2 +1,2 @@
import type { FormatDistanceFn } from "../../types.js";
import type { FormatDistanceFn } from "../../types.ts";
export declare const formatDistance: FormatDistanceFn;
+3 -3
View File
@@ -1,5 +1,5 @@
export declare const formatLong: {
date: import("../../types.js").FormatLongFn;
time: import("../../types.js").FormatLongFn;
dateTime: import("../../types.js").FormatLongFn;
date: import("../../types.ts").FormatLongFn;
time: import("../../types.ts").FormatLongFn;
dateTime: import("../../types.ts").FormatLongFn;
};
+3 -3
View File
@@ -1,5 +1,5 @@
export declare const formatLong: {
date: import("../../types.js").FormatLongFn;
time: import("../../types.js").FormatLongFn;
dateTime: import("../../types.js").FormatLongFn;
date: import("../../types.ts").FormatLongFn;
time: import("../../types.ts").FormatLongFn;
dateTime: import("../../types.ts").FormatLongFn;
};
+1 -1
View File
@@ -1,2 +1,2 @@
import type { FormatRelativeFn } from "../../types.js";
import type { FormatRelativeFn } from "../../types.ts";
export declare const formatRelative: FormatRelativeFn;
+1 -1
View File
@@ -1,2 +1,2 @@
import type { FormatRelativeFn } from "../../types.js";
import type { FormatRelativeFn } from "../../types.ts";
export declare const formatRelative: FormatRelativeFn;
+1 -1
View File
@@ -1,2 +1,2 @@
import type { Localize } from "../../types.js";
import type { Localize } from "../../types.ts";
export declare const localize: Localize;
+1 -1
View File
@@ -1,2 +1,2 @@
import type { Localize } from "../../types.js";
import type { Localize } from "../../types.ts";
export declare const localize: Localize;
+1 -1
View File
@@ -1,2 +1,2 @@
import type { Match } from "../../types.js";
import type { Match } from "../../types.ts";
export declare const match: Match;
+1 -1
View File
@@ -1,2 +1,2 @@
import type { Match } from "../../types.js";
import type { Match } from "../../types.ts";
export declare const match: Match;
+435 -381
View File
@@ -1,191 +1,194 @@
(() => {
var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(obj, key, value) {key = _toPropertyKey(key);if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : String(i);}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);}var __defProp = Object.defineProperty;
var __export = function __export(target, all) {
for (var name in all)
__defProp(target, name, {
get: all[name],
enumerable: true,
configurable: true,
set: function set(newValue) {return all[name] = function () {return newValue;};}
});
};
// lib/locale/ar-DZ/_lib/formatDistance.js
var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/ar-DZ/_lib/formatDistance.js
var formatDistanceLocale = {
lessThanXSeconds: {
one: "\u0623\u0642\u0644 \u0645\u0646 \u062B\u0627\u0646\u064A\u0629 \u0648\u0627\u062D\u062F\u0629",
two: "\u0623\u0642\u0644 \u0645\u0646 \u062B\u0627\u0646\u062A\u064A\u0646",
threeToTen: "\u0623\u0642\u0644 \u0645\u0646 {{count}} \u062B\u0648\u0627\u0646\u064A",
other: "\u0623\u0642\u0644 \u0645\u0646 {{count}} \u062B\u0627\u0646\u064A\u0629"
one: "أقل من ثانية واحدة",
two: "أقل من ثانتين",
threeToTen: "أقل من {{count}} ثواني",
other: "أقل من {{count}} ثانية"
},
xSeconds: {
one: "\u062B\u0627\u0646\u064A\u0629 \u0648\u0627\u062D\u062F\u0629",
two: "\u062B\u0627\u0646\u062A\u064A\u0646",
threeToTen: "{{count}} \u062B\u0648\u0627\u0646\u064A",
other: "{{count}} \u062B\u0627\u0646\u064A\u0629"
one: "ثانية واحدة",
two: "ثانتين",
threeToTen: "{{count}} ثواني",
other: "{{count}} ثانية"
},
halfAMinute: "\u0646\u0635\u0641 \u062F\u0642\u064A\u0642\u0629",
halfAMinute: "نصف دقيقة",
lessThanXMinutes: {
one: "\u0623\u0642\u0644 \u0645\u0646 \u062F\u0642\u064A\u0642\u0629",
two: "\u0623\u0642\u0644 \u0645\u0646 \u062F\u0642\u064A\u0642\u062A\u064A\u0646",
threeToTen: "\u0623\u0642\u0644 \u0645\u0646 {{count}} \u062F\u0642\u0627\u0626\u0642",
other: "\u0623\u0642\u0644 \u0645\u0646 {{count}} \u062F\u0642\u064A\u0642\u0629"
one: "أقل من دقيقة",
two: "أقل من دقيقتين",
threeToTen: "أقل من {{count}} دقائق",
other: "أقل من {{count}} دقيقة"
},
xMinutes: {
one: "\u062F\u0642\u064A\u0642\u0629 \u0648\u0627\u062D\u062F\u0629",
two: "\u062F\u0642\u064A\u0642\u062A\u064A\u0646",
threeToTen: "{{count}} \u062F\u0642\u0627\u0626\u0642",
other: "{{count}} \u062F\u0642\u064A\u0642\u0629"
one: "دقيقة واحدة",
two: "دقيقتين",
threeToTen: "{{count}} دقائق",
other: "{{count}} دقيقة"
},
aboutXHours: {
one: "\u0633\u0627\u0639\u0629 \u0648\u0627\u062D\u062F\u0629 \u062A\u0642\u0631\u064A\u0628\u0627\u064B",
two: "\u0633\u0627\u0639\u062A\u064A\u0646 \u062A\u0642\u0631\u064A\u0628\u0627\u064B",
threeToTen: "{{count}} \u0633\u0627\u0639\u0627\u062A \u062A\u0642\u0631\u064A\u0628\u0627\u064B",
other: "{{count}} \u0633\u0627\u0639\u0629 \u062A\u0642\u0631\u064A\u0628\u0627\u064B"
one: "ساعة واحدة تقريباً",
two: "ساعتين تقريباً",
threeToTen: "{{count}} ساعات تقريباً",
other: "{{count}} ساعة تقريباً"
},
xHours: {
one: "\u0633\u0627\u0639\u0629 \u0648\u0627\u062D\u062F\u0629",
two: "\u0633\u0627\u0639\u062A\u064A\u0646",
threeToTen: "{{count}} \u0633\u0627\u0639\u0627\u062A",
other: "{{count}} \u0633\u0627\u0639\u0629"
one: "ساعة واحدة",
two: "ساعتين",
threeToTen: "{{count}} ساعات",
other: "{{count}} ساعة"
},
xDays: {
one: "\u064A\u0648\u0645 \u0648\u0627\u062D\u062F",
two: "\u064A\u0648\u0645\u064A\u0646",
threeToTen: "{{count}} \u0623\u064A\u0627\u0645",
other: "{{count}} \u064A\u0648\u0645"
one: "يوم واحد",
two: "يومين",
threeToTen: "{{count}} أيام",
other: "{{count}} يوم"
},
aboutXWeeks: {
one: "\u0623\u0633\u0628\u0648\u0639 \u0648\u0627\u062D\u062F \u062A\u0642\u0631\u064A\u0628\u0627\u064B",
two: "\u0623\u0633\u0628\u0648\u0639\u064A\u0646 \u062A\u0642\u0631\u064A\u0628\u0627\u064B",
threeToTen: "{{count}} \u0623\u0633\u0627\u0628\u064A\u0639 \u062A\u0642\u0631\u064A\u0628\u0627\u064B",
other: "{{count}} \u0623\u0633\u0628\u0648\u0639 \u062A\u0642\u0631\u064A\u0628\u0627\u064B"
one: "أسبوع واحد تقريباً",
two: "أسبوعين تقريباً",
threeToTen: "{{count}} أسابيع تقريباً",
other: "{{count}} أسبوع تقريباً"
},
xWeeks: {
one: "\u0623\u0633\u0628\u0648\u0639 \u0648\u0627\u062D\u062F",
two: "\u0623\u0633\u0628\u0648\u0639\u064A\u0646",
threeToTen: "{{count}} \u0623\u0633\u0627\u0628\u064A\u0639",
other: "{{count}} \u0623\u0633\u0628\u0648\u0639"
one: "أسبوع واحد",
two: "أسبوعين",
threeToTen: "{{count}} أسابيع",
other: "{{count}} أسبوع"
},
aboutXMonths: {
one: "\u0634\u0647\u0631 \u0648\u0627\u062D\u062F \u062A\u0642\u0631\u064A\u0628\u0627\u064B",
two: "\u0634\u0647\u0631\u064A\u0646 \u062A\u0642\u0631\u064A\u0628\u0627\u064B",
threeToTen: "{{count}} \u0623\u0634\u0647\u0631 \u062A\u0642\u0631\u064A\u0628\u0627\u064B",
other: "{{count}} \u0634\u0647\u0631 \u062A\u0642\u0631\u064A\u0628\u0627\u064B"
one: "شهر واحد تقريباً",
two: "شهرين تقريباً",
threeToTen: "{{count}} أشهر تقريباً",
other: "{{count}} شهر تقريباً"
},
xMonths: {
one: "\u0634\u0647\u0631 \u0648\u0627\u062D\u062F",
two: "\u0634\u0647\u0631\u064A\u0646",
threeToTen: "{{count}} \u0623\u0634\u0647\u0631",
other: "{{count}} \u0634\u0647\u0631"
one: "شهر واحد",
two: "شهرين",
threeToTen: "{{count}} أشهر",
other: "{{count}} شهر"
},
aboutXYears: {
one: "\u0639\u0627\u0645 \u0648\u0627\u062D\u062F \u062A\u0642\u0631\u064A\u0628\u0627\u064B",
two: "\u0639\u0627\u0645\u064A\u0646 \u062A\u0642\u0631\u064A\u0628\u0627\u064B",
threeToTen: "{{count}} \u0623\u0639\u0648\u0627\u0645 \u062A\u0642\u0631\u064A\u0628\u0627\u064B",
other: "{{count}} \u0639\u0627\u0645 \u062A\u0642\u0631\u064A\u0628\u0627\u064B"
one: "عام واحد تقريباً",
two: "عامين تقريباً",
threeToTen: "{{count}} أعوام تقريباً",
other: "{{count}} عام تقريباً"
},
xYears: {
one: "\u0639\u0627\u0645 \u0648\u0627\u062D\u062F",
two: "\u0639\u0627\u0645\u064A\u0646",
threeToTen: "{{count}} \u0623\u0639\u0648\u0627\u0645",
other: "{{count}} \u0639\u0627\u0645"
one: "عام واحد",
two: "عامين",
threeToTen: "{{count}} أعوام",
other: "{{count}} عام"
},
overXYears: {
one: "\u0623\u0643\u062B\u0631 \u0645\u0646 \u0639\u0627\u0645",
two: "\u0623\u0643\u062B\u0631 \u0645\u0646 \u0639\u0627\u0645\u064A\u0646",
threeToTen: "\u0623\u0643\u062B\u0631 \u0645\u0646 {{count}} \u0623\u0639\u0648\u0627\u0645",
other: "\u0623\u0643\u062B\u0631 \u0645\u0646 {{count}} \u0639\u0627\u0645"
one: "أكثر من عام",
two: "أكثر من عامين",
threeToTen: "أكثر من {{count}} أعوام",
other: "أكثر من {{count}} عام"
},
almostXYears: {
one: "\u0639\u0627\u0645 \u0648\u0627\u062D\u062F \u062A\u0642\u0631\u064A\u0628\u0627\u064B",
two: "\u0639\u0627\u0645\u064A\u0646 \u062A\u0642\u0631\u064A\u0628\u0627\u064B",
threeToTen: "{{count}} \u0623\u0639\u0648\u0627\u0645 \u062A\u0642\u0631\u064A\u0628\u0627\u064B",
other: "{{count}} \u0639\u0627\u0645 \u062A\u0642\u0631\u064A\u0628\u0627\u064B"
one: "عام واحد تقريباً",
two: "عامين تقريباً",
threeToTen: "{{count}} أعوام تقريباً",
other: "{{count}} عام تقريباً"
}
};
var formatDistance = function formatDistance(token, count, options) {
options = options || {};
var usageGroup = formatDistanceLocale[token];
var result;
if (typeof usageGroup === "string") {
result = usageGroup;
} else if (count === 1) {
result = usageGroup.one;
} else if (count === 2) {
result = usageGroup.two;
} else if (count <= 10) {
result = usageGroup.threeToTen.replace("{{count}}", String(count));
} else {
result = usageGroup.other.replace("{{count}}", String(count));
}
if (options.addSuffix) {
if (options.comparison && options.comparison > 0) {
return "\u0641\u064A \u062E\u0644\u0627\u0644 " + result;
} else {
return "\u0645\u0646\u0630 " + result;
}
}
if (typeof usageGroup === "string") result = usageGroup;else
if (count === 1) result = usageGroup.one;else
if (count === 2) result = usageGroup.two;else
if (count <= 10) result = usageGroup.threeToTen.replace("{{count}}", String(count));else
result = usageGroup.other.replace("{{count}}", String(count));
if (options.addSuffix) if (options.comparison && options.comparison > 0) return "في خلال " + result;else
return "منذ " + result;
return result;
};
// lib/locale/_lib/buildFormatLongFn.js
//#endregion
//#region dist/date-fns/locale/_lib/buildFormatLongFn.js
function buildFormatLongFn(args) {
return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
var width = options.width ? String(options.width) : args.defaultWidth;
var format = args.formats[width] || args.formats[args.defaultWidth];
return format;
return args.formats[width] || args.formats[args.defaultWidth];
};
}
// lib/locale/ar-DZ/_lib/formatLong.js
var dateFormats = {
full: "EEEE, MMMM do, y",
long: "MMMM do, y",
medium: "MMM d, y",
short: "MM/dd/yyyy"
};
var timeFormats = {
full: "h:mm:ss a zzzz",
long: "h:mm:ss a z",
medium: "h:mm:ss a",
short: "h:mm a"
};
var dateTimeFormats = {
full: "{{date}} '\u0639\u0646\u062F' {{time}}",
long: "{{date}} '\u0639\u0646\u062F' {{time}}",
medium: "{{date}}, {{time}}",
short: "{{date}}, {{time}}"
};
var formatLong = {
date: buildFormatLongFn({
formats: dateFormats,
formats: {
full: "EEEE, MMMM do, y",
long: "MMMM do, y",
medium: "MMM d, y",
short: "MM/dd/yyyy"
},
defaultWidth: "full"
}),
time: buildFormatLongFn({
formats: timeFormats,
formats: {
full: "h:mm:ss a zzzz",
long: "h:mm:ss a z",
medium: "h:mm:ss a",
short: "h:mm a"
},
defaultWidth: "full"
}),
dateTime: buildFormatLongFn({
formats: dateTimeFormats,
formats: {
full: "{{date}} 'عند' {{time}}",
long: "{{date}} 'عند' {{time}}",
medium: "{{date}}, {{time}}",
short: "{{date}}, {{time}}"
},
defaultWidth: "full"
})
};
// lib/locale/ar-DZ/_lib/formatRelative.js
//#endregion
//#region dist/date-fns/locale/ar-DZ/_lib/formatRelative.js
var formatRelativeLocale = {
lastWeek: "'\u0623\u062E\u0631' eeee '\u0639\u0646\u062F' p",
yesterday: "'\u0623\u0645\u0633 \u0639\u0646\u062F' p",
today: "'\u0627\u0644\u064A\u0648\u0645 \u0639\u0646\u062F' p",
tomorrow: "'\u063A\u062F\u0627\u064B \u0639\u0646\u062F' p",
nextWeek: "eeee '\u0639\u0646\u062F' p",
lastWeek: "'أخر' eeee 'عند' p",
yesterday: "'أمس عند' p",
today: "'اليوم عند' p",
tomorrow: "'غداً عند' p",
nextWeek: "eeee 'عند' p",
other: "P"
};
var formatRelative = function formatRelative(token, _date, _baseDate, _options) {
return formatRelativeLocale[token];
};
// lib/locale/_lib/buildLocalizeFn.js
//#endregion
//#region dist/date-fns/locale/_lib/buildLocalizeFn.js
/**
* The localize function argument callback which allows to convert raw value to
* the actual type.
*
* @param value - The value to convert
*
* @returns The converted value
*/
/**
* The map of localized values for each width.
*/
/**
* The index type of the locale unit value. It types conversion of units of
* values that don't start at 0 (i.e. quarters).
*/
/**
* Converts the unit value to the tuple of values.
*/
/**
* The tuple of localized era values. The first element represents BC,
* the second element represents AD.
*/
/**
* The tuple of localized quarter values. The first element represents Q1.
*/
/**
* The tuple of localized day values. The first element represents Sunday.
*/
/**
* The tuple of localized month values. The first element represents January.
*/
function buildLocalizeFn(args) {
return function (value, options) {
var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone";
@@ -203,125 +206,177 @@ function buildLocalizeFn(args) {
return valuesArray[index];
};
}
// lib/locale/ar-DZ/_lib/localize.js
//#endregion
//#region dist/date-fns/locale/ar-DZ/_lib/localize.js
var eraValues = {
narrow: ["\u0642", "\u0628"],
abbreviated: ["\u0642.\u0645.", "\u0628.\u0645."],
wide: ["\u0642\u0628\u0644 \u0627\u0644\u0645\u064A\u0644\u0627\u062F", "\u0628\u0639\u062F \u0627\u0644\u0645\u064A\u0644\u0627\u062F"]
narrow: ["ق", "ب"],
abbreviated: ["ق.م.", "ب.م."],
wide: ["قبل الميلاد", "بعد الميلاد"]
};
var quarterValues = {
narrow: ["1", "2", "3", "4"],
abbreviated: ["\u06311", "\u06312", "\u06313", "\u06314"],
wide: ["\u0627\u0644\u0631\u0628\u0639 \u0627\u0644\u0623\u0648\u0644", "\u0627\u0644\u0631\u0628\u0639 \u0627\u0644\u062B\u0627\u0646\u064A", "\u0627\u0644\u0631\u0628\u0639 \u0627\u0644\u062B\u0627\u0644\u062B", "\u0627\u0644\u0631\u0628\u0639 \u0627\u0644\u0631\u0627\u0628\u0639"]
};
var monthValues = {
narrow: ["\u062C", "\u0641", "\u0645", "\u0623", "\u0645", "\u062C", "\u062C", "\u0623", "\u0633", "\u0623", "\u0646", "\u062F"],
narrow: [
"1",
"2",
"3",
"4"],
abbreviated: [
"\u062C\u0627\u0646\u0640",
"\u0641\u064A\u0641\u0640",
"\u0645\u0627\u0631\u0633",
"\u0623\u0641\u0631\u064A\u0644",
"\u0645\u0627\u064A\u0640",
"\u062C\u0648\u0627\u0646\u0640",
"\u062C\u0648\u064A\u0640",
"\u0623\u0648\u062A",
"\u0633\u0628\u062A\u0640",
"\u0623\u0643\u062A\u0640",
"\u0646\u0648\u0641\u0640",
"\u062F\u064A\u0633\u0640"],
"ر1",
"ر2",
"ر3",
"ر4"],
wide: [
"\u062C\u0627\u0646\u0641\u064A",
"\u0641\u064A\u0641\u0631\u064A",
"\u0645\u0627\u0631\u0633",
"\u0623\u0641\u0631\u064A\u0644",
"\u0645\u0627\u064A",
"\u062C\u0648\u0627\u0646",
"\u062C\u0648\u064A\u0644\u064A\u0629",
"\u0623\u0648\u062A",
"\u0633\u0628\u062A\u0645\u0628\u0631",
"\u0623\u0643\u062A\u0648\u0628\u0631",
"\u0646\u0648\u0641\u0645\u0628\u0631",
"\u062F\u064A\u0633\u0645\u0628\u0631"]
"الربع الأول",
"الربع الثاني",
"الربع الثالث",
"الربع الرابع"]
};
var monthValues = {
narrow: [
"ج",
"ف",
"م",
"أ",
"م",
"ج",
"ج",
"أ",
"س",
"أ",
"ن",
"د"],
abbreviated: [
"جانـ",
"فيفـ",
"مارس",
"أفريل",
"مايـ",
"جوانـ",
"جويـ",
"أوت",
"سبتـ",
"أكتـ",
"نوفـ",
"ديسـ"],
wide: [
"جانفي",
"فيفري",
"مارس",
"أفريل",
"ماي",
"جوان",
"جويلية",
"أوت",
"سبتمبر",
"أكتوبر",
"نوفمبر",
"ديسمبر"]
};
var dayValues = {
narrow: ["\u062D", "\u0646", "\u062B", "\u0631", "\u062E", "\u062C", "\u0633"],
short: ["\u0623\u062D\u062F", "\u0627\u062B\u0646\u064A\u0646", "\u062B\u0644\u0627\u062B\u0627\u0621", "\u0623\u0631\u0628\u0639\u0627\u0621", "\u062E\u0645\u064A\u0633", "\u062C\u0645\u0639\u0629", "\u0633\u0628\u062A"],
abbreviated: ["\u0623\u062D\u062F", "\u0627\u062B\u0646\u0640", "\u062B\u0644\u0627", "\u0623\u0631\u0628\u0640", "\u062E\u0645\u064A\u0640", "\u062C\u0645\u0639\u0629", "\u0633\u0628\u062A"],
narrow: [
"ح",
"ن",
"ث",
"ر",
"خ",
"ج",
"س"],
short: [
"أحد",
"اثنين",
"ثلاثاء",
"أربعاء",
"خميس",
"جمعة",
"سبت"],
abbreviated: [
"أحد",
"اثنـ",
"ثلا",
"أربـ",
"خميـ",
"جمعة",
"سبت"],
wide: [
"\u0627\u0644\u0623\u062D\u062F",
"\u0627\u0644\u0627\u062B\u0646\u064A\u0646",
"\u0627\u0644\u062B\u0644\u0627\u062B\u0627\u0621",
"\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621",
"\u0627\u0644\u062E\u0645\u064A\u0633",
"\u0627\u0644\u062C\u0645\u0639\u0629",
"\u0627\u0644\u0633\u0628\u062A"]
"الأحد",
"الاثنين",
"الثلاثاء",
"الأربعاء",
"الخميس",
"الجمعة",
"السبت"]
};
var dayPeriodValues = {
narrow: {
am: "\u0635",
pm: "\u0645",
midnight: "\u0646",
noon: "\u0638",
morning: "\u0635\u0628\u0627\u062D\u0627\u064B",
afternoon: "\u0628\u0639\u062F \u0627\u0644\u0638\u0647\u0631",
evening: "\u0645\u0633\u0627\u0621\u0627\u064B",
night: "\u0644\u064A\u0644\u0627\u064B"
am: "ص",
pm: "م",
midnight: "ن",
noon: "ظ",
morning: "صباحاً",
afternoon: "بعد الظهر",
evening: "مساءاً",
night: "ليلاً"
},
abbreviated: {
am: "\u0635",
pm: "\u0645",
midnight: "\u0646\u0635\u0641 \u0627\u0644\u0644\u064A\u0644",
noon: "\u0638\u0647\u0631",
morning: "\u0635\u0628\u0627\u062D\u0627\u064B",
afternoon: "\u0628\u0639\u062F \u0627\u0644\u0638\u0647\u0631",
evening: "\u0645\u0633\u0627\u0621\u0627\u064B",
night: "\u0644\u064A\u0644\u0627\u064B"
am: "ص",
pm: "م",
midnight: "نصف الليل",
noon: "ظهر",
morning: "صباحاً",
afternoon: "بعد الظهر",
evening: "مساءاً",
night: "ليلاً"
},
wide: {
am: "\u0635",
pm: "\u0645",
midnight: "\u0646\u0635\u0641 \u0627\u0644\u0644\u064A\u0644",
noon: "\u0638\u0647\u0631",
morning: "\u0635\u0628\u0627\u062D\u0627\u064B",
afternoon: "\u0628\u0639\u062F \u0627\u0644\u0638\u0647\u0631",
evening: "\u0645\u0633\u0627\u0621\u0627\u064B",
night: "\u0644\u064A\u0644\u0627\u064B"
am: "ص",
pm: "م",
midnight: "نصف الليل",
noon: "ظهر",
morning: "صباحاً",
afternoon: "بعد الظهر",
evening: "مساءاً",
night: "ليلاً"
}
};
var formattingDayPeriodValues = {
narrow: {
am: "\u0635",
pm: "\u0645",
midnight: "\u0646",
noon: "\u0638",
morning: "\u0641\u064A \u0627\u0644\u0635\u0628\u0627\u062D",
afternoon: "\u0628\u0639\u062F \u0627\u0644\u0638\u0640\u0647\u0631",
evening: "\u0641\u064A \u0627\u0644\u0645\u0633\u0627\u0621",
night: "\u0641\u064A \u0627\u0644\u0644\u064A\u0644"
am: "ص",
pm: "م",
midnight: "ن",
noon: "ظ",
morning: "في الصباح",
afternoon: "بعد الظـهر",
evening: "في المساء",
night: "في الليل"
},
abbreviated: {
am: "\u0635",
pm: "\u0645",
midnight: "\u0646\u0635\u0641 \u0627\u0644\u0644\u064A\u0644",
noon: "\u0638\u0647\u0631",
morning: "\u0641\u064A \u0627\u0644\u0635\u0628\u0627\u062D",
afternoon: "\u0628\u0639\u062F \u0627\u0644\u0638\u0647\u0631",
evening: "\u0641\u064A \u0627\u0644\u0645\u0633\u0627\u0621",
night: "\u0641\u064A \u0627\u0644\u0644\u064A\u0644"
am: "ص",
pm: "م",
midnight: "نصف الليل",
noon: "ظهر",
morning: "في الصباح",
afternoon: "بعد الظهر",
evening: "في المساء",
night: "في الليل"
},
wide: {
am: "\u0635",
pm: "\u0645",
midnight: "\u0646\u0635\u0641 \u0627\u0644\u0644\u064A\u0644",
noon: "\u0638\u0647\u0631",
morning: "\u0635\u0628\u0627\u062D\u0627\u064B",
afternoon: "\u0628\u0639\u062F \u0627\u0644\u0638\u0640\u0647\u0631",
evening: "\u0641\u064A \u0627\u0644\u0645\u0633\u0627\u0621",
night: "\u0641\u064A \u0627\u0644\u0644\u064A\u0644"
am: "ص",
pm: "م",
midnight: "نصف الليل",
noon: "ظهر",
morning: "صباحاً",
afternoon: "بعد الظـهر",
evening: "في المساء",
night: "في الليل"
}
};
var ordinalNumber = function ordinalNumber(dirtyNumber) {
@@ -353,33 +408,32 @@ var localize = {
defaultFormattingWidth: "wide"
})
};
// lib/locale/_lib/buildMatchPatternFn.js
//#endregion
//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js
function buildMatchPatternFn(args) {
return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
var matchResult = string.match(args.matchPattern);
if (!matchResult)
return null;
if (!matchResult) return null;
var matchedString = matchResult[0];
var parseResult = string.match(args.parsePattern);
if (!parseResult)
return null;
if (!parseResult) return null;
var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0];
value = options.valueCallback ? options.valueCallback(value) : value;
var rest = string.slice(matchedString.length);
return { value: value, rest: rest };
return {
value: value,
rest: rest
};
};
}
// lib/locale/_lib/buildMatchFn.js
//#endregion
//#region dist/date-fns/locale/_lib/buildMatchFn.js
function buildMatchFn(args) {
return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
var width = options.width;
var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth];
var matchResult = string.match(matchPattern);
if (!matchResult) {
return null;
}
if (!matchResult) return null;
var matchedString = matchResult[0];
var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth];
var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);});
@@ -387,169 +441,170 @@ function buildMatchFn(args) {
value = args.valueCallback ? args.valueCallback(key) : key;
value = options.valueCallback ? options.valueCallback(value) : value;
var rest = string.slice(matchedString.length);
return { value: value, rest: rest };
return {
value: value,
rest: rest
};
};
}
function findKey(object, predicate) {
for (var key in object) {
if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) {
return key;
}
}
return;
for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key;
}
function findIndex(array, predicate) {
for (var key = 0; key < array.length; key++) {
if (predicate(array[key])) {
return key;
}
}
return;
for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key;
}
// lib/locale/ar-DZ/_lib/match.js
var matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i;
var parseOrdinalNumberPattern = /\d+/i;
var matchEraPatterns = {
narrow: /^(ق|ب)/i,
abbreviated: /^(ق\.?\s?م\.?|ق\.?\s?م\.?\s?|a\.?\s?d\.?|c\.?\s?)/i,
wide: /^(قبل الميلاد|قبل الميلاد|بعد الميلاد|بعد الميلاد)/i
};
var parseEraPatterns = {
any: [/^قبل/i, /^بعد/i]
};
var matchQuarterPatterns = {
narrow: /^[1234]/i,
abbreviated: /^ر[1234]/i,
wide: /^الربع [1234]/i
};
var parseQuarterPatterns = {
any: [/1/i, /2/i, /3/i, /4/i]
};
var matchMonthPatterns = {
narrow: /^[جفمأسند]/i,
abbreviated: /^(جان|فيف|مار|أفر|ماي|جوا|جوي|أوت|سبت|أكت|نوف|ديس)/i,
wide: /^(جانفي|فيفري|مارس|أفريل|ماي|جوان|جويلية|أوت|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/i
};
var parseMonthPatterns = {
narrow: [
/^ج/i,
/^ف/i,
/^م/i,
/^أ/i,
/^م/i,
/^ج/i,
/^ج/i,
/^أ/i,
/^س/i,
/^أ/i,
/^ن/i,
/^د/i],
any: [
/^جان/i,
/^فيف/i,
/^مار/i,
/^أفر/i,
/^ماي/i,
/^جوا/i,
/^جوي/i,
/^أوت/i,
/^سبت/i,
/^أكت/i,
/^نوف/i,
/^ديس/i]
};
var matchDayPatterns = {
narrow: /^[حنثرخجس]/i,
short: /^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i,
abbreviated: /^(أحد|اثن|ثلا|أرب|خمي|جمعة|سبت)/i,
wide: /^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i
};
var parseDayPatterns = {
narrow: [/^ح/i, /^ن/i, /^ث/i, /^ر/i, /^خ/i, /^ج/i, /^س/i],
wide: [
/^الأحد/i,
/^الاثنين/i,
/^الثلاثاء/i,
/^الأربعاء/i,
/^الخميس/i,
/^الجمعة/i,
/^السبت/i],
any: [/^أح/i, /^اث/i, /^ث/i, /^أر/i, /^خ/i, /^ج/i, /^س/i]
};
var matchDayPeriodPatterns = {
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
};
var parseDayPeriodPatterns = {
any: {
am: /^a/i,
pm: /^p/i,
midnight: /^mi/i,
noon: /^no/i,
morning: /morning/i,
afternoon: /afternoon/i,
evening: /evening/i,
night: /night/i
}
};
var match = {
ordinalNumber: buildMatchPatternFn({
matchPattern: matchOrdinalNumberPattern,
parsePattern: parseOrdinalNumberPattern,
valueCallback: function valueCallback(value) {return parseInt(value, 10);}
}),
era: buildMatchFn({
matchPatterns: matchEraPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseEraPatterns,
defaultParseWidth: "any"
}),
quarter: buildMatchFn({
matchPatterns: matchQuarterPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseQuarterPatterns,
defaultParseWidth: "any",
valueCallback: function valueCallback(index) {return Number(index) + 1;}
}),
month: buildMatchFn({
matchPatterns: matchMonthPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseMonthPatterns,
defaultParseWidth: "any"
}),
day: buildMatchFn({
matchPatterns: matchDayPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseDayPatterns,
defaultParseWidth: "any"
}),
dayPeriod: buildMatchFn({
matchPatterns: matchDayPeriodPatterns,
defaultMatchWidth: "any",
parsePatterns: parseDayPeriodPatterns,
defaultParseWidth: "any"
})
};
// lib/locale/ar-DZ.js
//#endregion
//#region dist/date-fns/locale/ar-DZ.js
/**
* @category Locales
* @summary Arabic locale (Algerian Arabic).
* @language Algerian Arabic
* @iso-639-2 ara
* @author Badreddine Boumaza [@badre429](https://github.com/badre429)
* @author Ahmed ElShahat [@elshahat](https://github.com/elshahat)
*/
var arDZ = {
code: "ar-DZ",
formatDistance: formatDistance,
formatLong: formatLong,
formatRelative: formatRelative,
localize: localize,
match: match,
match: {
ordinalNumber: buildMatchPatternFn({
matchPattern: /^(\d+)(th|st|nd|rd)?/i,
parsePattern: /\d+/i,
valueCallback: function valueCallback(value) {return parseInt(value, 10);}
}),
era: buildMatchFn({
matchPatterns: {
narrow: /^(ق|ب)/i,
abbreviated: /^(ق\.?\s?م\.?|ق\.?\s?م\.?\s?|a\.?\s?d\.?|c\.?\s?)/i,
wide: /^(قبل الميلاد|قبل الميلاد|بعد الميلاد|بعد الميلاد)/i
},
defaultMatchWidth: "wide",
parsePatterns: { any: [/^قبل/i, /^بعد/i] },
defaultParseWidth: "any"
}),
quarter: buildMatchFn({
matchPatterns: {
narrow: /^[1234]/i,
abbreviated: /^ر[1234]/i,
wide: /^الربع [1234]/i
},
defaultMatchWidth: "wide",
parsePatterns: { any: [
/1/i,
/2/i,
/3/i,
/4/i]
},
defaultParseWidth: "any",
valueCallback: function valueCallback(index) {return Number(index) + 1;}
}),
month: buildMatchFn({
matchPatterns: {
narrow: /^[جفمأسند]/i,
abbreviated: /^(جان|فيف|مار|أفر|ماي|جوا|جوي|أوت|سبت|أكت|نوف|ديس)/i,
wide: /^(جانفي|فيفري|مارس|أفريل|ماي|جوان|جويلية|أوت|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/i
},
defaultMatchWidth: "wide",
parsePatterns: {
narrow: [
/^ج/i,
/^ف/i,
/^م/i,
/^أ/i,
/^م/i,
/^ج/i,
/^ج/i,
/^أ/i,
/^س/i,
/^أ/i,
/^ن/i,
/^د/i],
any: [
/^جان/i,
/^فيف/i,
/^مار/i,
/^أفر/i,
/^ماي/i,
/^جوا/i,
/^جوي/i,
/^أوت/i,
/^سبت/i,
/^أكت/i,
/^نوف/i,
/^ديس/i]
},
defaultParseWidth: "any"
}),
day: buildMatchFn({
matchPatterns: {
narrow: /^[حنثرخجس]/i,
short: /^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i,
abbreviated: /^(أحد|اثن|ثلا|أرب|خمي|جمعة|سبت)/i,
wide: /^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i
},
defaultMatchWidth: "wide",
parsePatterns: {
narrow: [
/^ح/i,
/^ن/i,
/^ث/i,
/^ر/i,
/^خ/i,
/^ج/i,
/^س/i],
wide: [
/^الأحد/i,
/^الاثنين/i,
/^الثلاثاء/i,
/^الأربعاء/i,
/^الخميس/i,
/^الجمعة/i,
/^السبت/i],
any: [
/^أح/i,
/^اث/i,
/^ث/i,
/^أر/i,
/^خ/i,
/^ج/i,
/^س/i]
},
defaultParseWidth: "any"
}),
dayPeriod: buildMatchFn({
matchPatterns: {
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
},
defaultMatchWidth: "any",
parsePatterns: { any: {
am: /^a/i,
pm: /^p/i,
midnight: /^mi/i,
noon: /^no/i,
morning: /morning/i,
afternoon: /afternoon/i,
evening: /evening/i,
night: /night/i
} },
defaultParseWidth: "any"
})
},
options: {
weekStartsOn: 0,
firstWeekContainsDate: 1
}
};
// lib/locale/ar-DZ/cdn.js
//#endregion
//#region dist/date-fns/_entries/locale/ar-DZ/cdn.js
window.dateFns = _objectSpread(_objectSpread({},
window.dateFns), {}, {
locale: _objectSpread(_objectSpread({}, (_window$dateFns =
@@ -557,8 +612,7 @@ window.dateFns), {}, {
arDZ: arDZ }) });
//#endregion
//# debugId=3CD8BDC99FECD03B64756E2164756E21
//# sourceMappingURL=cdn.js.map
console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN");
})();
File diff suppressed because one or more lines are too long
+1 -3
View File
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -1,4 +1,4 @@
import type { Locale } from "./types.js";
import type { Locale } from "./types.ts";
/**
* @category Locales
* @summary Arabic locale (Egypt).
+1 -1
View File
@@ -1,4 +1,4 @@
import type { Locale } from "./types.js";
import type { Locale } from "./types.ts";
/**
* @category Locales
* @summary Arabic locale (Egypt).
+1 -1
View File
@@ -1,2 +1,2 @@
import type { FormatDistanceFn } from "../../types.js";
import type { FormatDistanceFn } from "../../types.ts";
export declare const formatDistance: FormatDistanceFn;
+1 -1
View File
@@ -1,2 +1,2 @@
import type { FormatDistanceFn } from "../../types.js";
import type { FormatDistanceFn } from "../../types.ts";
export declare const formatDistance: FormatDistanceFn;
+1 -1
View File
@@ -1,2 +1,2 @@
import type { FormatLong } from "../../types.js";
import type { FormatLong } from "../../types.ts";
export declare const formatLong: FormatLong;
+1 -1
View File
@@ -1,2 +1,2 @@
import type { FormatLong } from "../../types.js";
import type { FormatLong } from "../../types.ts";
export declare const formatLong: FormatLong;
+1 -1
View File
@@ -1,2 +1,2 @@
import type { FormatRelativeFn } from "../../types.js";
import type { FormatRelativeFn } from "../../types.ts";
export declare const formatRelative: FormatRelativeFn;
+1 -1
View File
@@ -1,2 +1,2 @@
import type { FormatRelativeFn } from "../../types.js";
import type { FormatRelativeFn } from "../../types.ts";
export declare const formatRelative: FormatRelativeFn;
+1 -1
View File
@@ -1,2 +1,2 @@
import type { Localize } from "../../types.js";
import type { Localize } from "../../types.ts";
export declare const localize: Localize;
+1 -1
View File
@@ -1,2 +1,2 @@
import type { Localize } from "../../types.js";
import type { Localize } from "../../types.ts";
export declare const localize: Localize;
-1
View File
@@ -22,7 +22,6 @@ const matchQuarterPatterns = {
};
const parseQuarterPatterns = {
wide: [/الربع الأول/, /الربع الثاني/, /الربع الثالث/, /الربع الرابع/],
any: [/1/, /2/, /3/, /4/],
};
+1 -1
View File
@@ -1,2 +1,2 @@
import type { Match } from "../../types.js";
import type { Match } from "../../types.ts";
export declare const match: Match;
+1 -1
View File
@@ -1,2 +1,2 @@
import type { Match } from "../../types.js";
import type { Match } from "../../types.ts";
export declare const match: Match;
-1
View File
@@ -19,7 +19,6 @@ const matchQuarterPatterns = {
};
const parseQuarterPatterns = {
wide: [/الربع الأول/, /الربع الثاني/, /الربع الثالث/, /الربع الرابع/],
any: [/1/, /2/, /3/, /4/],
};
+437 -377
View File
@@ -1,188 +1,191 @@
(() => {
var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(obj, key, value) {key = _toPropertyKey(key);if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : String(i);}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);}var __defProp = Object.defineProperty;
var __export = function __export(target, all) {
for (var name in all)
__defProp(target, name, {
get: all[name],
enumerable: true,
configurable: true,
set: function set(newValue) {return all[name] = function () {return newValue;};}
});
};
// lib/locale/ar-EG/_lib/formatDistance.js
var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/ar-EG/_lib/formatDistance.js
var formatDistanceLocale = {
lessThanXSeconds: {
one: "\u0623\u0642\u0644 \u0645\u0646 \u062B\u0627\u0646\u064A\u0629",
two: "\u0623\u0642\u0644 \u0645\u0646 \u062B\u0627\u0646\u064A\u062A\u064A\u0646",
threeToTen: "\u0623\u0642\u0644 \u0645\u0646 {{count}} \u062B\u0648\u0627\u0646\u064A",
other: "\u0623\u0642\u0644 \u0645\u0646 {{count}} \u062B\u0627\u0646\u064A\u0629"
one: "أقل من ثانية",
two: "أقل من ثانيتين",
threeToTen: "أقل من {{count}} ثواني",
other: "أقل من {{count}} ثانية"
},
xSeconds: {
one: "\u062B\u0627\u0646\u064A\u0629",
two: "\u062B\u0627\u0646\u064A\u062A\u064A\u0646",
threeToTen: "{{count}} \u062B\u0648\u0627\u0646\u064A",
other: "{{count}} \u062B\u0627\u0646\u064A\u0629"
one: "ثانية",
two: "ثانيتين",
threeToTen: "{{count}} ثواني",
other: "{{count}} ثانية"
},
halfAMinute: "\u0646\u0635 \u062F\u0642\u064A\u0642\u0629",
halfAMinute: "نص دقيقة",
lessThanXMinutes: {
one: "\u0623\u0642\u0644 \u0645\u0646 \u062F\u0642\u064A\u0642\u0629",
two: "\u0623\u0642\u0644 \u0645\u0646 \u062F\u0642\u064A\u0642\u062A\u064A\u0646",
threeToTen: "\u0623\u0642\u0644 \u0645\u0646 {{count}} \u062F\u0642\u0627\u064A\u0642",
other: "\u0623\u0642\u0644 \u0645\u0646 {{count}} \u062F\u0642\u064A\u0642\u0629"
one: "أقل من دقيقة",
two: "أقل من دقيقتين",
threeToTen: "أقل من {{count}} دقايق",
other: "أقل من {{count}} دقيقة"
},
xMinutes: {
one: "\u062F\u0642\u064A\u0642\u0629",
two: "\u062F\u0642\u064A\u0642\u062A\u064A\u0646",
threeToTen: "{{count}} \u062F\u0642\u0627\u064A\u0642",
other: "{{count}} \u062F\u0642\u064A\u0642\u0629"
one: "دقيقة",
two: "دقيقتين",
threeToTen: "{{count}} دقايق",
other: "{{count}} دقيقة"
},
aboutXHours: {
one: "\u062D\u0648\u0627\u0644\u064A \u0633\u0627\u0639\u0629",
two: "\u062D\u0648\u0627\u0644\u064A \u0633\u0627\u0639\u062A\u064A\u0646",
threeToTen: "\u062D\u0648\u0627\u0644\u064A {{count}} \u0633\u0627\u0639\u0627\u062A",
other: "\u062D\u0648\u0627\u0644\u064A {{count}} \u0633\u0627\u0639\u0629"
one: "حوالي ساعة",
two: "حوالي ساعتين",
threeToTen: "حوالي {{count}} ساعات",
other: "حوالي {{count}} ساعة"
},
xHours: {
one: "\u0633\u0627\u0639\u0629",
two: "\u0633\u0627\u0639\u062A\u064A\u0646",
threeToTen: "{{count}} \u0633\u0627\u0639\u0627\u062A",
other: "{{count}} \u0633\u0627\u0639\u0629"
one: "ساعة",
two: "ساعتين",
threeToTen: "{{count}} ساعات",
other: "{{count}} ساعة"
},
xDays: {
one: "\u064A\u0648\u0645",
two: "\u064A\u0648\u0645\u064A\u0646",
threeToTen: "{{count}} \u0623\u064A\u0627\u0645",
other: "{{count}} \u064A\u0648\u0645"
one: "يوم",
two: "يومين",
threeToTen: "{{count}} أيام",
other: "{{count}} يوم"
},
aboutXWeeks: {
one: "\u062D\u0648\u0627\u0644\u064A \u0623\u0633\u0628\u0648\u0639",
two: "\u062D\u0648\u0627\u0644\u064A \u0623\u0633\u0628\u0648\u0639\u064A\u0646",
threeToTen: "\u062D\u0648\u0627\u0644\u064A {{count}} \u0623\u0633\u0627\u0628\u064A\u0639",
other: "\u062D\u0648\u0627\u0644\u064A {{count}} \u0623\u0633\u0628\u0648\u0639"
one: "حوالي أسبوع",
two: "حوالي أسبوعين",
threeToTen: "حوالي {{count}} أسابيع",
other: "حوالي {{count}} أسبوع"
},
xWeeks: {
one: "\u0623\u0633\u0628\u0648\u0639",
two: "\u0623\u0633\u0628\u0648\u0639\u064A\u0646",
threeToTen: "{{count}} \u0623\u0633\u0627\u0628\u064A\u0639",
other: "{{count}} \u0623\u0633\u0628\u0648\u0639"
one: "أسبوع",
two: "أسبوعين",
threeToTen: "{{count}} أسابيع",
other: "{{count}} أسبوع"
},
aboutXMonths: {
one: "\u062D\u0648\u0627\u0644\u064A \u0634\u0647\u0631",
two: "\u062D\u0648\u0627\u0644\u064A \u0634\u0647\u0631\u064A\u0646",
threeToTen: "\u062D\u0648\u0627\u0644\u064A {{count}} \u0623\u0634\u0647\u0631",
other: "\u062D\u0648\u0627\u0644\u064A {{count}} \u0634\u0647\u0631"
one: "حوالي شهر",
two: "حوالي شهرين",
threeToTen: "حوالي {{count}} أشهر",
other: "حوالي {{count}} شهر"
},
xMonths: {
one: "\u0634\u0647\u0631",
two: "\u0634\u0647\u0631\u064A\u0646",
threeToTen: "{{count}} \u0623\u0634\u0647\u0631",
other: "{{count}} \u0634\u0647\u0631"
one: "شهر",
two: "شهرين",
threeToTen: "{{count}} أشهر",
other: "{{count}} شهر"
},
aboutXYears: {
one: "\u062D\u0648\u0627\u0644\u064A \u0633\u0646\u0629",
two: "\u062D\u0648\u0627\u0644\u064A \u0633\u0646\u062A\u064A\u0646",
threeToTen: "\u062D\u0648\u0627\u0644\u064A {{count}} \u0633\u0646\u064A\u0646",
other: "\u062D\u0648\u0627\u0644\u064A {{count}} \u0633\u0646\u0629"
one: "حوالي سنة",
two: "حوالي سنتين",
threeToTen: "حوالي {{count}} سنين",
other: "حوالي {{count}} سنة"
},
xYears: {
one: "\u0639\u0627\u0645",
two: "\u0639\u0627\u0645\u064A\u0646",
threeToTen: "{{count}} \u0623\u0639\u0648\u0627\u0645",
other: "{{count}} \u0639\u0627\u0645"
one: "عام",
two: "عامين",
threeToTen: "{{count}} أعوام",
other: "{{count}} عام"
},
overXYears: {
one: "\u0623\u0643\u062B\u0631 \u0645\u0646 \u0633\u0646\u0629",
two: "\u0623\u0643\u062B\u0631 \u0645\u0646 \u0633\u0646\u062A\u064A\u0646",
threeToTen: "\u0623\u0643\u062B\u0631 \u0645\u0646 {{count}} \u0633\u0646\u064A\u0646",
other: "\u0623\u0643\u062B\u0631 \u0645\u0646 {{count}} \u0633\u0646\u0629"
one: "أكثر من سنة",
two: "أكثر من سنتين",
threeToTen: "أكثر من {{count}} سنين",
other: "أكثر من {{count}} سنة"
},
almostXYears: {
one: "\u0639\u0627\u0645 \u062A\u0642\u0631\u064A\u0628\u064B\u0627",
two: "\u0639\u0627\u0645\u064A\u0646 \u062A\u0642\u0631\u064A\u0628\u064B\u0627",
threeToTen: "{{count}} \u0623\u0639\u0648\u0627\u0645 \u062A\u0642\u0631\u064A\u0628\u064B\u0627",
other: "{{count}} \u0639\u0627\u0645 \u062A\u0642\u0631\u064A\u0628\u064B\u0627"
one: "عام تقريبًا",
two: "عامين تقريبًا",
threeToTen: "{{count}} أعوام تقريبًا",
other: "{{count}} عام تقريبًا"
}
};
var formatDistance = function formatDistance(token, count, options) {
var result;
var tokenValue = formatDistanceLocale[token];
if (typeof tokenValue === "string") {
result = tokenValue;
} else if (count === 1) {
result = tokenValue.one;
} else if (count === 2) {
result = tokenValue.two;
} else if (count <= 10) {
result = tokenValue.threeToTen.replace("{{count}}", String(count));
} else {
result = tokenValue.other.replace("{{count}}", String(count));
}
if (options !== null && options !== void 0 && options.addSuffix) {
if (options.comparison && options.comparison > 0) {
return "\u0641\u064A \u062E\u0644\u0627\u0644 ".concat(result);
} else {
return "\u0645\u0646\u0630 ".concat(result);
}
}
if (typeof tokenValue === "string") result = tokenValue;else
if (count === 1) result = tokenValue.one;else
if (count === 2) result = tokenValue.two;else
if (count <= 10) result = tokenValue.threeToTen.replace("{{count}}", String(count));else
result = tokenValue.other.replace("{{count}}", String(count));
if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "\u0641\u064A \u062E\u0644\u0627\u0644 ".concat(result);else
return "\u0645\u0646\u0630 ".concat(result);
return result;
};
// lib/locale/_lib/buildFormatLongFn.js
//#endregion
//#region dist/date-fns/locale/_lib/buildFormatLongFn.js
function buildFormatLongFn(args) {
return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
var width = options.width ? String(options.width) : args.defaultWidth;
var format = args.formats[width] || args.formats[args.defaultWidth];
return format;
return args.formats[width] || args.formats[args.defaultWidth];
};
}
// lib/locale/ar-EG/_lib/formatLong.js
var dateFormats = {
full: "EEEE\u060C do MMMM y",
long: "do MMMM y",
medium: "dd/MMM/y",
short: "d/MM/y"
};
var timeFormats = {
full: "h:mm:ss a zzzz",
long: "h:mm:ss a z",
medium: "h:mm:ss a",
short: "h:mm a"
};
var dateTimeFormats = {
full: "{{date}} '\u0627\u0644\u0633\u0627\u0639\u0629' {{time}}",
long: "{{date}} '\u0627\u0644\u0633\u0627\u0639\u0629' {{time}}",
medium: "{{date}}, {{time}}",
short: "{{date}}, {{time}}"
};
var formatLong = {
date: buildFormatLongFn({
formats: dateFormats,
formats: {
full: "EEEE، do MMMM y",
long: "do MMMM y",
medium: "dd/MMM/y",
short: "d/MM/y"
},
defaultWidth: "full"
}),
time: buildFormatLongFn({
formats: timeFormats,
formats: {
full: "h:mm:ss a zzzz",
long: "h:mm:ss a z",
medium: "h:mm:ss a",
short: "h:mm a"
},
defaultWidth: "full"
}),
dateTime: buildFormatLongFn({
formats: dateTimeFormats,
formats: {
full: "{{date}} 'الساعة' {{time}}",
long: "{{date}} 'الساعة' {{time}}",
medium: "{{date}}, {{time}}",
short: "{{date}}, {{time}}"
},
defaultWidth: "full"
})
};
// lib/locale/ar-EG/_lib/formatRelative.js
//#endregion
//#region dist/date-fns/locale/ar-EG/_lib/formatRelative.js
var formatRelativeLocale = {
lastWeek: "eeee '\u0627\u0644\u0644\u064A \u062C\u0627\u064A \u0627\u0644\u0633\u0627\u0639\u0629' p",
yesterday: "'\u0625\u0645\u0628\u0627\u0631\u062D \u0627\u0644\u0633\u0627\u0639\u0629' p",
today: "'\u0627\u0644\u0646\u0647\u0627\u0631\u062F\u0629 \u0627\u0644\u0633\u0627\u0639\u0629' p",
tomorrow: "'\u0628\u0643\u0631\u0629 \u0627\u0644\u0633\u0627\u0639\u0629' p",
nextWeek: "eeee '\u0627\u0644\u0633\u0627\u0639\u0629' p",
lastWeek: "eeee 'اللي جاي الساعة' p",
yesterday: "'إمبارح الساعة' p",
today: "'النهاردة الساعة' p",
tomorrow: "'بكرة الساعة' p",
nextWeek: "eeee 'الساعة' p",
other: "P"
};
var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];};
// lib/locale/_lib/buildLocalizeFn.js
//#endregion
//#region dist/date-fns/locale/_lib/buildLocalizeFn.js
/**
* The localize function argument callback which allows to convert raw value to
* the actual type.
*
* @param value - The value to convert
*
* @returns The converted value
*/
/**
* The map of localized values for each width.
*/
/**
* The index type of the locale unit value. It types conversion of units of
* values that don't start at 0 (i.e. quarters).
*/
/**
* Converts the unit value to the tuple of values.
*/
/**
* The tuple of localized era values. The first element represents BC,
* the second element represents AD.
*/
/**
* The tuple of localized quarter values. The first element represents Q1.
*/
/**
* The tuple of localized day values. The first element represents Sunday.
*/
/**
* The tuple of localized month values. The first element represents January.
*/
function buildLocalizeFn(args) {
return function (value, options) {
var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone";
@@ -200,125 +203,177 @@ function buildLocalizeFn(args) {
return valuesArray[index];
};
}
// lib/locale/ar-EG/_lib/localize.js
//#endregion
//#region dist/date-fns/locale/ar-EG/_lib/localize.js
var eraValues = {
narrow: ["\u0642", "\u0628"],
abbreviated: ["\u0642.\u0645", "\u0628.\u0645"],
wide: ["\u0642\u0628\u0644 \u0627\u0644\u0645\u064A\u0644\u0627\u062F", "\u0628\u0639\u062F \u0627\u0644\u0645\u064A\u0644\u0627\u062F"]
narrow: ["ق", "ب"],
abbreviated: ["ق.م", "ب.م"],
wide: ["قبل الميلاد", "بعد الميلاد"]
};
var quarterValues = {
narrow: ["1", "2", "3", "4"],
abbreviated: ["\u06311", "\u06312", "\u06313", "\u06314"],
wide: ["\u0627\u0644\u0631\u0628\u0639 \u0627\u0644\u0623\u0648\u0644", "\u0627\u0644\u0631\u0628\u0639 \u0627\u0644\u062B\u0627\u0646\u064A", "\u0627\u0644\u0631\u0628\u0639 \u0627\u0644\u062B\u0627\u0644\u062B", "\u0627\u0644\u0631\u0628\u0639 \u0627\u0644\u0631\u0627\u0628\u0639"]
};
var monthValues = {
narrow: ["\u064A", "\u0641", "\u0645", "\u0623", "\u0645", "\u064A", "\u064A", "\u0623", "\u0633", "\u0623", "\u0646", "\u062F"],
narrow: [
"1",
"2",
"3",
"4"],
abbreviated: [
"\u064A\u0646\u0627",
"\u0641\u0628\u0631",
"\u0645\u0627\u0631\u0633",
"\u0623\u0628\u0631\u064A\u0644",
"\u0645\u0627\u064A\u0648",
"\u064A\u0648\u0646\u0640",
"\u064A\u0648\u0644\u0640",
"\u0623\u063A\u0633\u0640",
"\u0633\u0628\u062A\u0640",
"\u0623\u0643\u062A\u0640",
"\u0646\u0648\u0641\u0640",
"\u062F\u064A\u0633\u0640"],
"ر1",
"ر2",
"ر3",
"ر4"],
wide: [
"\u064A\u0646\u0627\u064A\u0631",
"\u0641\u0628\u0631\u0627\u064A\u0631",
"\u0645\u0627\u0631\u0633",
"\u0623\u0628\u0631\u064A\u0644",
"\u0645\u0627\u064A\u0648",
"\u064A\u0648\u0646\u064A\u0648",
"\u064A\u0648\u0644\u064A\u0648",
"\u0623\u063A\u0633\u0637\u0633",
"\u0633\u0628\u062A\u0645\u0628\u0631",
"\u0623\u0643\u062A\u0648\u0628\u0631",
"\u0646\u0648\u0641\u0645\u0628\u0631",
"\u062F\u064A\u0633\u0645\u0628\u0631"]
"الربع الأول",
"الربع الثاني",
"الربع الثالث",
"الربع الرابع"]
};
var monthValues = {
narrow: [
"ي",
"ف",
"م",
"أ",
"م",
"ي",
"ي",
"أ",
"س",
"أ",
"ن",
"د"],
abbreviated: [
"ينا",
"فبر",
"مارس",
"أبريل",
"مايو",
"يونـ",
"يولـ",
"أغسـ",
"سبتـ",
"أكتـ",
"نوفـ",
"ديسـ"],
wide: [
"يناير",
"فبراير",
"مارس",
"أبريل",
"مايو",
"يونيو",
"يوليو",
"أغسطس",
"سبتمبر",
"أكتوبر",
"نوفمبر",
"ديسمبر"]
};
var dayValues = {
narrow: ["\u062D", "\u0646", "\u062B", "\u0631", "\u062E", "\u062C", "\u0633"],
short: ["\u0623\u062D\u062F", "\u0627\u062B\u0646\u064A\u0646", "\u062B\u0644\u0627\u062B\u0627\u0621", "\u0623\u0631\u0628\u0639\u0627\u0621", "\u062E\u0645\u064A\u0633", "\u062C\u0645\u0639\u0629", "\u0633\u0628\u062A"],
abbreviated: ["\u0623\u062D\u062F", "\u0627\u062B\u0646\u064A\u0646", "\u062B\u0644\u0627\u062B\u0627\u0621", "\u0623\u0631\u0628\u0639\u0627\u0621", "\u062E\u0645\u064A\u0633", "\u062C\u0645\u0639\u0629", "\u0633\u0628\u062A"],
narrow: [
"ح",
"ن",
"ث",
"ر",
"خ",
"ج",
"س"],
short: [
"أحد",
"اثنين",
"ثلاثاء",
"أربعاء",
"خميس",
"جمعة",
"سبت"],
abbreviated: [
"أحد",
"اثنين",
"ثلاثاء",
"أربعاء",
"خميس",
"جمعة",
"سبت"],
wide: [
"\u0627\u0644\u0623\u062D\u062F",
"\u0627\u0644\u0627\u062B\u0646\u064A\u0646",
"\u0627\u0644\u062B\u0644\u0627\u062B\u0627\u0621",
"\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621",
"\u0627\u0644\u062E\u0645\u064A\u0633",
"\u0627\u0644\u062C\u0645\u0639\u0629",
"\u0627\u0644\u0633\u0628\u062A"]
"الأحد",
"الاثنين",
"الثلاثاء",
"الأربعاء",
"الخميس",
"الجمعة",
"السبت"]
};
var dayPeriodValues = {
narrow: {
am: "\u0635",
pm: "\u0645",
midnight: "\u0646",
noon: "\u0638",
morning: "\u0635\u0628\u0627\u062D\u0627\u064B",
afternoon: "\u0628\u0639\u062F \u0627\u0644\u0638\u0647\u0631",
evening: "\u0645\u0633\u0627\u0621\u064B",
night: "\u0644\u064A\u0644\u0627\u064B"
am: "ص",
pm: "م",
midnight: "ن",
noon: "ظ",
morning: "صباحاً",
afternoon: "بعد الظهر",
evening: "مساءً",
night: "ليلاً"
},
abbreviated: {
am: "\u0635",
pm: "\u0645",
midnight: "\u0646\u0635\u0641 \u0627\u0644\u0644\u064A\u0644",
noon: "\u0638\u0647\u0631\u0627\u064B",
morning: "\u0635\u0628\u0627\u062D\u0627\u064B",
afternoon: "\u0628\u0639\u062F \u0627\u0644\u0638\u0647\u0631",
evening: "\u0645\u0633\u0627\u0621\u064B",
night: "\u0644\u064A\u0644\u0627\u064B"
am: "ص",
pm: "م",
midnight: "نصف الليل",
noon: "ظهراً",
morning: "صباحاً",
afternoon: "بعد الظهر",
evening: "مساءً",
night: "ليلاً"
},
wide: {
am: "\u0635",
pm: "\u0645",
midnight: "\u0646\u0635\u0641 \u0627\u0644\u0644\u064A\u0644",
noon: "\u0638\u0647\u0631\u0627\u064B",
morning: "\u0635\u0628\u0627\u062D\u0627\u064B",
afternoon: "\u0628\u0639\u062F \u0627\u0644\u0638\u0647\u0631",
evening: "\u0645\u0633\u0627\u0621\u064B",
night: "\u0644\u064A\u0644\u0627\u064B"
am: "ص",
pm: "م",
midnight: "نصف الليل",
noon: "ظهراً",
morning: "صباحاً",
afternoon: "بعد الظهر",
evening: "مساءً",
night: "ليلاً"
}
};
var formattingDayPeriodValues = {
narrow: {
am: "\u0635",
pm: "\u0645",
midnight: "\u0646",
noon: "\u0638",
morning: "\u0641\u064A \u0627\u0644\u0635\u0628\u0627\u062D",
afternoon: "\u0628\u0639\u062F \u0627\u0644\u0638\u0647\u0631",
evening: "\u0641\u064A \u0627\u0644\u0645\u0633\u0627\u0621",
night: "\u0641\u064A \u0627\u0644\u0644\u064A\u0644"
am: "ص",
pm: "م",
midnight: "ن",
noon: "ظ",
morning: "في الصباح",
afternoon: "بعد الظهر",
evening: "في المساء",
night: "في الليل"
},
abbreviated: {
am: "\u0635",
pm: "\u0645",
midnight: "\u0646\u0635\u0641 \u0627\u0644\u0644\u064A\u0644",
noon: "\u0638\u0647\u0631\u0627\u064B",
morning: "\u0641\u064A \u0627\u0644\u0635\u0628\u0627\u062D",
afternoon: "\u0628\u0639\u062F \u0627\u0644\u0638\u0647\u0631",
evening: "\u0641\u064A \u0627\u0644\u0645\u0633\u0627\u0621",
night: "\u0641\u064A \u0627\u0644\u0644\u064A\u0644"
am: "ص",
pm: "م",
midnight: "نصف الليل",
noon: "ظهراً",
morning: "في الصباح",
afternoon: "بعد الظهر",
evening: "في المساء",
night: "في الليل"
},
wide: {
am: "\u0635",
pm: "\u0645",
midnight: "\u0646\u0635\u0641 \u0627\u0644\u0644\u064A\u0644",
morning: "\u0641\u064A \u0627\u0644\u0635\u0628\u0627\u062D",
noon: "\u0638\u0647\u0631\u0627\u064B",
afternoon: "\u0628\u0639\u062F \u0627\u0644\u0638\u0647\u0631",
evening: "\u0641\u064A \u0627\u0644\u0645\u0633\u0627\u0621",
night: "\u0641\u064A \u0627\u0644\u0644\u064A\u0644"
am: "ص",
pm: "م",
midnight: "نصف الليل",
morning: "في الصباح",
noon: "ظهراً",
afternoon: "بعد الظهر",
evening: "في المساء",
night: "في الليل"
}
};
var ordinalNumber = function ordinalNumber(dirtyNumber, _options) {
@@ -350,16 +405,14 @@ var localize = {
defaultFormattingWidth: "wide"
})
};
// lib/locale/_lib/buildMatchFn.js
//#endregion
//#region dist/date-fns/locale/_lib/buildMatchFn.js
function buildMatchFn(args) {
return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
var width = options.width;
var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth];
var matchResult = string.match(matchPattern);
if (!matchResult) {
return null;
}
if (!matchResult) return null;
var matchedString = matchResult[0];
var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth];
var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);});
@@ -367,182 +420,190 @@ function buildMatchFn(args) {
value = args.valueCallback ? args.valueCallback(key) : key;
value = options.valueCallback ? options.valueCallback(value) : value;
var rest = string.slice(matchedString.length);
return { value: value, rest: rest };
return {
value: value,
rest: rest
};
};
}
function findKey(object, predicate) {
for (var key in object) {
if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) {
return key;
}
}
return;
for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key;
}
function findIndex(array, predicate) {
for (var key = 0; key < array.length; key++) {
if (predicate(array[key])) {
return key;
}
}
return;
for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key;
}
// lib/locale/_lib/buildMatchPatternFn.js
//#endregion
//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js
function buildMatchPatternFn(args) {
return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
var matchResult = string.match(args.matchPattern);
if (!matchResult)
return null;
if (!matchResult) return null;
var matchedString = matchResult[0];
var parseResult = string.match(args.parsePattern);
if (!parseResult)
return null;
if (!parseResult) return null;
var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0];
value = options.valueCallback ? options.valueCallback(value) : value;
var rest = string.slice(matchedString.length);
return { value: value, rest: rest };
return {
value: value,
rest: rest
};
};
}
// lib/locale/ar-EG/_lib/match.js
var matchOrdinalNumberPattern = /^(\d+)/;
var parseOrdinalNumberPattern = /\d+/i;
var matchEraPatterns = {
narrow: /^(ق|ب)/g,
abbreviated: /^(ق.م|ب.م)/g,
wide: /^(قبل الميلاد|بعد الميلاد)/g
};
var parseEraPatterns = {
any: [/^ق/g, /^ب/g]
};
var matchQuarterPatterns = {
narrow: /^[1234]/,
abbreviated: /^ر[1234]/,
wide: /^الربع (الأول|الثاني|الثالث|الرابع)/
};
var parseQuarterPatterns = {
wide: [/الربع الأول/, /الربع الثاني/, /الربع الثالث/, /الربع الرابع/],
any: [/1/, /2/, /3/, /4/]
};
var matchMonthPatterns = {
narrow: /^(ي|ف|م|أ|س|ن|د)/,
abbreviated: /^(ينا|فبر|مارس|أبريل|مايو|يونـ|يولـ|أغسـ|سبتـ|أكتـ|نوفـ|ديسـ)/,
wide: /^(يناير|فبراير|مارس|أبريل|مايو|يونيو|يوليو|أغسطس|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/
};
var parseMonthPatterns = {
narrow: [
/^ي/,
/^ف/,
/^م/,
/^أ/,
/^م/,
/^ي/,
/^ي/,
/^أ/,
/^س/,
/^أ/,
/^ن/,
/^د/],
any: [
/^ينا/,
/^فبر/,
/^مارس/,
/^أبريل/,
/^مايو/,
/^يون/,
/^يول/,
/^أغس/,
/^سبت/,
/^أكت/,
/^نوف/,
/^ديس/]
};
var matchDayPatterns = {
narrow: /^(ح|ن|ث|ر|خ|ج|س)/,
short: /^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/,
abbreviated: /^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/,
wide: /^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/
};
var parseDayPatterns = {
narrow: [/^ح/, /^ن/, /^ث/, /^ر/, /^خ/, /^ج/, /^س/],
any: [/أحد/, /اثنين/, /ثلاثاء/, /أربعاء/, /خميس/, /جمعة/, /سبت/]
};
var matchDayPeriodPatterns = {
narrow: /^(ص|م|ن|ظ|في الصباح|بعد الظهر|في المساء|في الليل)/,
abbreviated: /^(ص|م|نصف الليل|ظهراً|في الصباح|بعد الظهر|في المساء|في الليل)/,
wide: /^(ص|م|نصف الليل|في الصباح|ظهراً|بعد الظهر|في المساء|في الليل)/,
any: /^(ص|م|صباح|ظهر|مساء|ليل)/
};
var parseDayPeriodPatterns = {
any: {
am: /^ص/,
pm: /^م/,
midnight: /^ن/,
noon: /^ظ/,
morning: /^ص/,
afternoon: /^بعد/,
evening: /^م/,
night: /^ل/
}
};
var match = {
ordinalNumber: buildMatchPatternFn({
matchPattern: matchOrdinalNumberPattern,
parsePattern: parseOrdinalNumberPattern,
valueCallback: function valueCallback(value) {
return parseInt(value, 10);
}
}),
era: buildMatchFn({
matchPatterns: matchEraPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseEraPatterns,
defaultParseWidth: "any"
}),
quarter: buildMatchFn({
matchPatterns: matchQuarterPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseQuarterPatterns,
defaultParseWidth: "any",
valueCallback: function valueCallback(index) {return index + 1;}
}),
month: buildMatchFn({
matchPatterns: matchMonthPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseMonthPatterns,
defaultParseWidth: "any"
}),
day: buildMatchFn({
matchPatterns: matchDayPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseDayPatterns,
defaultParseWidth: "any"
}),
dayPeriod: buildMatchFn({
matchPatterns: matchDayPeriodPatterns,
defaultMatchWidth: "any",
parsePatterns: parseDayPeriodPatterns,
defaultParseWidth: "any"
})
};
// lib/locale/ar-EG.js
//#endregion
//#region dist/date-fns/locale/ar-EG.js
/**
* @category Locales
* @summary Arabic locale (Egypt).
* @language Arabic
* @iso-639-2 ara
* @author AbdAllah AbdElFattah [@AbdAllahAbdElFattah13](https://github.com/AbdAllahAbdElFattah13)
*/
var arEG = {
code: "ar-EG",
formatDistance: formatDistance,
formatLong: formatLong,
formatRelative: formatRelative,
localize: localize,
match: match,
match: {
ordinalNumber: buildMatchPatternFn({
matchPattern: /^(\d+)/,
parsePattern: /\d+/i,
valueCallback: function valueCallback(value) {
return parseInt(value, 10);
}
}),
era: buildMatchFn({
matchPatterns: {
narrow: /^(ق|ب)/g,
abbreviated: /^(ق.م|ب.م)/g,
wide: /^(قبل الميلاد|بعد الميلاد)/g
},
defaultMatchWidth: "wide",
parsePatterns: { any: [/^ق/g, /^ب/g] },
defaultParseWidth: "any"
}),
quarter: buildMatchFn({
matchPatterns: {
narrow: /^[1234]/,
abbreviated: /^ر[1234]/,
wide: /^الربع (الأول|الثاني|الثالث|الرابع)/
},
defaultMatchWidth: "wide",
parsePatterns: {
wide: [
/الربع الأول/,
/الربع الثاني/,
/الربع الثالث/,
/الربع الرابع/],
any: [
/1/,
/2/,
/3/,
/4/]
},
defaultParseWidth: "any",
valueCallback: function valueCallback(index) {return index + 1;}
}),
month: buildMatchFn({
matchPatterns: {
narrow: /^(ي|ف|م|أ|س|ن|د)/,
abbreviated: /^(ينا|فبر|مارس|أبريل|مايو|يونـ|يولـ|أغسـ|سبتـ|أكتـ|نوفـ|ديسـ)/,
wide: /^(يناير|فبراير|مارس|أبريل|مايو|يونيو|يوليو|أغسطس|سبتمبر|أكتوبر|نوفمبر|ديسمبر)/
},
defaultMatchWidth: "wide",
parsePatterns: {
narrow: [
/^ي/,
/^ف/,
/^م/,
/^أ/,
/^م/,
/^ي/,
/^ي/,
/^أ/,
/^س/,
/^أ/,
/^ن/,
/^د/],
any: [
/^ينا/,
/^فبر/,
/^مارس/,
/^أبريل/,
/^مايو/,
/^يون/,
/^يول/,
/^أغس/,
/^سبت/,
/^أكت/,
/^نوف/,
/^ديس/]
},
defaultParseWidth: "any"
}),
day: buildMatchFn({
matchPatterns: {
narrow: /^(ح|ن|ث|ر|خ|ج|س)/,
short: /^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/,
abbreviated: /^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/,
wide: /^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/
},
defaultMatchWidth: "wide",
parsePatterns: {
narrow: [
/^ح/,
/^ن/,
/^ث/,
/^ر/,
/^خ/,
/^ج/,
/^س/],
any: [
/أحد/,
/اثنين/,
/ثلاثاء/,
/أربعاء/,
/خميس/,
/جمعة/,
/سبت/]
},
defaultParseWidth: "any"
}),
dayPeriod: buildMatchFn({
matchPatterns: {
narrow: /^(ص|م|ن|ظ|في الصباح|بعد الظهر|في المساء|في الليل)/,
abbreviated: /^(ص|م|نصف الليل|ظهراً|في الصباح|بعد الظهر|في المساء|في الليل)/,
wide: /^(ص|م|نصف الليل|في الصباح|ظهراً|بعد الظهر|في المساء|في الليل)/,
any: /^(ص|م|صباح|ظهر|مساء|ليل)/
},
defaultMatchWidth: "any",
parsePatterns: { any: {
am: /^ص/,
pm: /^م/,
midnight: /^ن/,
noon: /^ظ/,
morning: /^ص/,
afternoon: /^بعد/,
evening: /^م/,
night: /^ل/
} },
defaultParseWidth: "any"
})
},
options: {
weekStartsOn: 0,
firstWeekContainsDate: 1
}
};
// lib/locale/ar-EG/cdn.js
//#endregion
//#region dist/date-fns/_entries/locale/ar-EG/cdn.js
window.dateFns = _objectSpread(_objectSpread({},
window.dateFns), {}, {
locale: _objectSpread(_objectSpread({}, (_window$dateFns =
@@ -550,8 +611,7 @@ window.dateFns), {}, {
arEG: arEG }) });
//#endregion
//# debugId=BE20592338806CCD64756E2164756E21
//# sourceMappingURL=cdn.js.map
console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN");
})();
File diff suppressed because one or more lines are too long
+1 -3
View File
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -1,4 +1,4 @@
import type { Locale } from "./types.js";
import type { Locale } from "./types.ts";
/**
* @category Locales
* @summary Arabic locale (Moroccan Arabic).
+1 -1
View File
@@ -1,4 +1,4 @@
import type { Locale } from "./types.js";
import type { Locale } from "./types.ts";
/**
* @category Locales
* @summary Arabic locale (Moroccan Arabic).
+1 -1
View File
@@ -1,2 +1,2 @@
import type { FormatDistanceFn } from "../../types.js";
import type { FormatDistanceFn } from "../../types.ts";
export declare const formatDistance: FormatDistanceFn;
+1 -1
View File
@@ -1,2 +1,2 @@
import type { FormatDistanceFn } from "../../types.js";
import type { FormatDistanceFn } from "../../types.ts";
export declare const formatDistance: FormatDistanceFn;
+3 -3
View File
@@ -1,5 +1,5 @@
export declare const formatLong: {
date: import("../../types.js").FormatLongFn;
time: import("../../types.js").FormatLongFn;
dateTime: import("../../types.js").FormatLongFn;
date: import("../../types.ts").FormatLongFn;
time: import("../../types.ts").FormatLongFn;
dateTime: import("../../types.ts").FormatLongFn;
};
+3 -3
View File
@@ -1,5 +1,5 @@
export declare const formatLong: {
date: import("../../types.js").FormatLongFn;
time: import("../../types.js").FormatLongFn;
dateTime: import("../../types.js").FormatLongFn;
date: import("../../types.ts").FormatLongFn;
time: import("../../types.ts").FormatLongFn;
dateTime: import("../../types.ts").FormatLongFn;
};
+1 -1
View File
@@ -1,2 +1,2 @@
import type { FormatRelativeFn } from "../../types.js";
import type { FormatRelativeFn } from "../../types.ts";
export declare const formatRelative: FormatRelativeFn;
+1 -1
View File
@@ -1,2 +1,2 @@
import type { FormatRelativeFn } from "../../types.js";
import type { FormatRelativeFn } from "../../types.ts";
export declare const formatRelative: FormatRelativeFn;
+1 -1
View File
@@ -1,2 +1,2 @@
import type { Localize } from "../../types.js";
import type { Localize } from "../../types.ts";
export declare const localize: Localize;
+1 -1
View File
@@ -1,2 +1,2 @@
import type { Localize } from "../../types.js";
import type { Localize } from "../../types.ts";
export declare const localize: Localize;
+1 -1
View File
@@ -1,2 +1,2 @@
import type { Match } from "../../types.js";
import type { Match } from "../../types.ts";
export declare const match: Match;
+1 -1
View File
@@ -1,2 +1,2 @@
import type { Match } from "../../types.js";
import type { Match } from "../../types.ts";
export declare const match: Match;
+434 -381
View File
@@ -1,191 +1,194 @@
(() => {
var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(obj, key, value) {key = _toPropertyKey(key);if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : String(i);}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);}var __defProp = Object.defineProperty;
var __export = function __export(target, all) {
for (var name in all)
__defProp(target, name, {
get: all[name],
enumerable: true,
configurable: true,
set: function set(newValue) {return all[name] = function () {return newValue;};}
});
};
// lib/locale/ar-MA/_lib/formatDistance.js
var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/ar-MA/_lib/formatDistance.js
var formatDistanceLocale = {
lessThanXSeconds: {
one: "\u0623\u0642\u0644 \u0645\u0646 \u062B\u0627\u0646\u064A\u0629 \u0648\u0627\u062D\u062F\u0629",
two: "\u0623\u0642\u0644 \u0645\u0646 \u062B\u0627\u0646\u062A\u064A\u0646",
threeToTen: "\u0623\u0642\u0644 \u0645\u0646 {{count}} \u062B\u0648\u0627\u0646\u064A",
other: "\u0623\u0642\u0644 \u0645\u0646 {{count}} \u062B\u0627\u0646\u064A\u0629"
one: "أقل من ثانية واحدة",
two: "أقل من ثانتين",
threeToTen: "أقل من {{count}} ثواني",
other: "أقل من {{count}} ثانية"
},
xSeconds: {
one: "\u062B\u0627\u0646\u064A\u0629 \u0648\u0627\u062D\u062F\u0629",
two: "\u062B\u0627\u0646\u062A\u064A\u0646",
threeToTen: "{{count}} \u062B\u0648\u0627\u0646\u064A",
other: "{{count}} \u062B\u0627\u0646\u064A\u0629"
one: "ثانية واحدة",
two: "ثانتين",
threeToTen: "{{count}} ثواني",
other: "{{count}} ثانية"
},
halfAMinute: "\u0646\u0635\u0641 \u062F\u0642\u064A\u0642\u0629",
halfAMinute: "نصف دقيقة",
lessThanXMinutes: {
one: "\u0623\u0642\u0644 \u0645\u0646 \u062F\u0642\u064A\u0642\u0629",
two: "\u0623\u0642\u0644 \u0645\u0646 \u062F\u0642\u064A\u0642\u062A\u064A\u0646",
threeToTen: "\u0623\u0642\u0644 \u0645\u0646 {{count}} \u062F\u0642\u0627\u0626\u0642",
other: "\u0623\u0642\u0644 \u0645\u0646 {{count}} \u062F\u0642\u064A\u0642\u0629"
one: "أقل من دقيقة",
two: "أقل من دقيقتين",
threeToTen: "أقل من {{count}} دقائق",
other: "أقل من {{count}} دقيقة"
},
xMinutes: {
one: "\u062F\u0642\u064A\u0642\u0629 \u0648\u0627\u062D\u062F\u0629",
two: "\u062F\u0642\u064A\u0642\u062A\u064A\u0646",
threeToTen: "{{count}} \u062F\u0642\u0627\u0626\u0642",
other: "{{count}} \u062F\u0642\u064A\u0642\u0629"
one: "دقيقة واحدة",
two: "دقيقتين",
threeToTen: "{{count}} دقائق",
other: "{{count}} دقيقة"
},
aboutXHours: {
one: "\u0633\u0627\u0639\u0629 \u0648\u0627\u062D\u062F\u0629 \u062A\u0642\u0631\u064A\u0628\u0627\u064B",
two: "\u0633\u0627\u0639\u062A\u064A\u0646 \u062A\u0642\u0631\u064A\u0628\u0627\u064B",
threeToTen: "{{count}} \u0633\u0627\u0639\u0627\u062A \u062A\u0642\u0631\u064A\u0628\u0627\u064B",
other: "{{count}} \u0633\u0627\u0639\u0629 \u062A\u0642\u0631\u064A\u0628\u0627\u064B"
one: "ساعة واحدة تقريباً",
two: "ساعتين تقريباً",
threeToTen: "{{count}} ساعات تقريباً",
other: "{{count}} ساعة تقريباً"
},
xHours: {
one: "\u0633\u0627\u0639\u0629 \u0648\u0627\u062D\u062F\u0629",
two: "\u0633\u0627\u0639\u062A\u064A\u0646",
threeToTen: "{{count}} \u0633\u0627\u0639\u0627\u062A",
other: "{{count}} \u0633\u0627\u0639\u0629"
one: "ساعة واحدة",
two: "ساعتين",
threeToTen: "{{count}} ساعات",
other: "{{count}} ساعة"
},
xDays: {
one: "\u064A\u0648\u0645 \u0648\u0627\u062D\u062F",
two: "\u064A\u0648\u0645\u064A\u0646",
threeToTen: "{{count}} \u0623\u064A\u0627\u0645",
other: "{{count}} \u064A\u0648\u0645"
one: "يوم واحد",
two: "يومين",
threeToTen: "{{count}} أيام",
other: "{{count}} يوم"
},
aboutXWeeks: {
one: "\u0623\u0633\u0628\u0648\u0639 \u0648\u0627\u062D\u062F \u062A\u0642\u0631\u064A\u0628\u0627\u064B",
two: "\u0623\u0633\u0628\u0648\u0639\u064A\u0646 \u062A\u0642\u0631\u064A\u0628\u0627\u064B",
threeToTen: "{{count}} \u0623\u0633\u0627\u0628\u064A\u0639 \u062A\u0642\u0631\u064A\u0628\u0627\u064B",
other: "{{count}} \u0623\u0633\u0628\u0648\u0639 \u062A\u0642\u0631\u064A\u0628\u0627\u064B"
one: "أسبوع واحد تقريباً",
two: "أسبوعين تقريباً",
threeToTen: "{{count}} أسابيع تقريباً",
other: "{{count}} أسبوع تقريباً"
},
xWeeks: {
one: "\u0623\u0633\u0628\u0648\u0639 \u0648\u0627\u062D\u062F",
two: "\u0623\u0633\u0628\u0648\u0639\u064A\u0646",
threeToTen: "{{count}} \u0623\u0633\u0627\u0628\u064A\u0639",
other: "{{count}} \u0623\u0633\u0628\u0648\u0639"
one: "أسبوع واحد",
two: "أسبوعين",
threeToTen: "{{count}} أسابيع",
other: "{{count}} أسبوع"
},
aboutXMonths: {
one: "\u0634\u0647\u0631 \u0648\u0627\u062D\u062F \u062A\u0642\u0631\u064A\u0628\u0627\u064B",
two: "\u0634\u0647\u0631\u064A\u0646 \u062A\u0642\u0631\u064A\u0628\u0627\u064B",
threeToTen: "{{count}} \u0623\u0634\u0647\u0631 \u062A\u0642\u0631\u064A\u0628\u0627\u064B",
other: "{{count}} \u0634\u0647\u0631 \u062A\u0642\u0631\u064A\u0628\u0627\u064B"
one: "شهر واحد تقريباً",
two: "شهرين تقريباً",
threeToTen: "{{count}} أشهر تقريباً",
other: "{{count}} شهر تقريباً"
},
xMonths: {
one: "\u0634\u0647\u0631 \u0648\u0627\u062D\u062F",
two: "\u0634\u0647\u0631\u064A\u0646",
threeToTen: "{{count}} \u0623\u0634\u0647\u0631",
other: "{{count}} \u0634\u0647\u0631"
one: "شهر واحد",
two: "شهرين",
threeToTen: "{{count}} أشهر",
other: "{{count}} شهر"
},
aboutXYears: {
one: "\u0639\u0627\u0645 \u0648\u0627\u062D\u062F \u062A\u0642\u0631\u064A\u0628\u0627\u064B",
two: "\u0639\u0627\u0645\u064A\u0646 \u062A\u0642\u0631\u064A\u0628\u0627\u064B",
threeToTen: "{{count}} \u0623\u0639\u0648\u0627\u0645 \u062A\u0642\u0631\u064A\u0628\u0627\u064B",
other: "{{count}} \u0639\u0627\u0645 \u062A\u0642\u0631\u064A\u0628\u0627\u064B"
one: "عام واحد تقريباً",
two: "عامين تقريباً",
threeToTen: "{{count}} أعوام تقريباً",
other: "{{count}} عام تقريباً"
},
xYears: {
one: "\u0639\u0627\u0645 \u0648\u0627\u062D\u062F",
two: "\u0639\u0627\u0645\u064A\u0646",
threeToTen: "{{count}} \u0623\u0639\u0648\u0627\u0645",
other: "{{count}} \u0639\u0627\u0645"
one: "عام واحد",
two: "عامين",
threeToTen: "{{count}} أعوام",
other: "{{count}} عام"
},
overXYears: {
one: "\u0623\u0643\u062B\u0631 \u0645\u0646 \u0639\u0627\u0645",
two: "\u0623\u0643\u062B\u0631 \u0645\u0646 \u0639\u0627\u0645\u064A\u0646",
threeToTen: "\u0623\u0643\u062B\u0631 \u0645\u0646 {{count}} \u0623\u0639\u0648\u0627\u0645",
other: "\u0623\u0643\u062B\u0631 \u0645\u0646 {{count}} \u0639\u0627\u0645"
one: "أكثر من عام",
two: "أكثر من عامين",
threeToTen: "أكثر من {{count}} أعوام",
other: "أكثر من {{count}} عام"
},
almostXYears: {
one: "\u0639\u0627\u0645 \u0648\u0627\u062D\u062F \u062A\u0642\u0631\u064A\u0628\u0627\u064B",
two: "\u0639\u0627\u0645\u064A\u0646 \u062A\u0642\u0631\u064A\u0628\u0627\u064B",
threeToTen: "{{count}} \u0623\u0639\u0648\u0627\u0645 \u062A\u0642\u0631\u064A\u0628\u0627\u064B",
other: "{{count}} \u0639\u0627\u0645 \u062A\u0642\u0631\u064A\u0628\u0627\u064B"
one: "عام واحد تقريباً",
two: "عامين تقريباً",
threeToTen: "{{count}} أعوام تقريباً",
other: "{{count}} عام تقريباً"
}
};
var formatDistance = function formatDistance(token, count, options) {
options = options || {};
var usageGroup = formatDistanceLocale[token];
var result;
if (typeof usageGroup === "string") {
result = usageGroup;
} else if (count === 1) {
result = usageGroup.one;
} else if (count === 2) {
result = usageGroup.two;
} else if (count <= 10) {
result = usageGroup.threeToTen.replace("{{count}}", String(count));
} else {
result = usageGroup.other.replace("{{count}}", String(count));
}
if (options.addSuffix) {
if (options.comparison && options.comparison > 0) {
return "\u0641\u064A \u062E\u0644\u0627\u0644 " + result;
} else {
return "\u0645\u0646\u0630 " + result;
}
}
if (typeof usageGroup === "string") result = usageGroup;else
if (count === 1) result = usageGroup.one;else
if (count === 2) result = usageGroup.two;else
if (count <= 10) result = usageGroup.threeToTen.replace("{{count}}", String(count));else
result = usageGroup.other.replace("{{count}}", String(count));
if (options.addSuffix) if (options.comparison && options.comparison > 0) return "في خلال " + result;else
return "منذ " + result;
return result;
};
// lib/locale/_lib/buildFormatLongFn.js
//#endregion
//#region dist/date-fns/locale/_lib/buildFormatLongFn.js
function buildFormatLongFn(args) {
return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
var width = options.width ? String(options.width) : args.defaultWidth;
var format = args.formats[width] || args.formats[args.defaultWidth];
return format;
return args.formats[width] || args.formats[args.defaultWidth];
};
}
// lib/locale/ar-MA/_lib/formatLong.js
var dateFormats = {
full: "EEEE, MMMM do, y",
long: "MMMM do, y",
medium: "MMM d, y",
short: "MM/dd/yyyy"
};
var timeFormats = {
full: "h:mm:ss a zzzz",
long: "h:mm:ss a z",
medium: "h:mm:ss a",
short: "h:mm a"
};
var dateTimeFormats = {
full: "{{date}} '\u0639\u0646\u062F' {{time}}",
long: "{{date}} '\u0639\u0646\u062F' {{time}}",
medium: "{{date}}, {{time}}",
short: "{{date}}, {{time}}"
};
var formatLong = {
date: buildFormatLongFn({
formats: dateFormats,
formats: {
full: "EEEE, MMMM do, y",
long: "MMMM do, y",
medium: "MMM d, y",
short: "MM/dd/yyyy"
},
defaultWidth: "full"
}),
time: buildFormatLongFn({
formats: timeFormats,
formats: {
full: "h:mm:ss a zzzz",
long: "h:mm:ss a z",
medium: "h:mm:ss a",
short: "h:mm a"
},
defaultWidth: "full"
}),
dateTime: buildFormatLongFn({
formats: dateTimeFormats,
formats: {
full: "{{date}} 'عند' {{time}}",
long: "{{date}} 'عند' {{time}}",
medium: "{{date}}, {{time}}",
short: "{{date}}, {{time}}"
},
defaultWidth: "full"
})
};
// lib/locale/ar-MA/_lib/formatRelative.js
//#endregion
//#region dist/date-fns/locale/ar-MA/_lib/formatRelative.js
var formatRelativeLocale = {
lastWeek: "'\u0623\u062E\u0631' eeee '\u0639\u0646\u062F' p",
yesterday: "'\u0623\u0645\u0633 \u0639\u0646\u062F' p",
today: "'\u0627\u0644\u064A\u0648\u0645 \u0639\u0646\u062F' p",
tomorrow: "'\u063A\u062F\u0627\u064B \u0639\u0646\u062F' p",
nextWeek: "eeee '\u0639\u0646\u062F' p",
lastWeek: "'أخر' eeee 'عند' p",
yesterday: "'أمس عند' p",
today: "'اليوم عند' p",
tomorrow: "'غداً عند' p",
nextWeek: "eeee 'عند' p",
other: "P"
};
var formatRelative = function formatRelative(token, _date, _baseDate, _options) {
return formatRelativeLocale[token];
};
// lib/locale/_lib/buildLocalizeFn.js
//#endregion
//#region dist/date-fns/locale/_lib/buildLocalizeFn.js
/**
* The localize function argument callback which allows to convert raw value to
* the actual type.
*
* @param value - The value to convert
*
* @returns The converted value
*/
/**
* The map of localized values for each width.
*/
/**
* The index type of the locale unit value. It types conversion of units of
* values that don't start at 0 (i.e. quarters).
*/
/**
* Converts the unit value to the tuple of values.
*/
/**
* The tuple of localized era values. The first element represents BC,
* the second element represents AD.
*/
/**
* The tuple of localized quarter values. The first element represents Q1.
*/
/**
* The tuple of localized day values. The first element represents Sunday.
*/
/**
* The tuple of localized month values. The first element represents January.
*/
function buildLocalizeFn(args) {
return function (value, options) {
var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone";
@@ -203,125 +206,177 @@ function buildLocalizeFn(args) {
return valuesArray[index];
};
}
// lib/locale/ar-MA/_lib/localize.js
//#endregion
//#region dist/date-fns/locale/ar-MA/_lib/localize.js
var eraValues = {
narrow: ["\u0642", "\u0628"],
abbreviated: ["\u0642.\u0645.", "\u0628.\u0645."],
wide: ["\u0642\u0628\u0644 \u0627\u0644\u0645\u064A\u0644\u0627\u062F", "\u0628\u0639\u062F \u0627\u0644\u0645\u064A\u0644\u0627\u062F"]
narrow: ["ق", "ب"],
abbreviated: ["ق.م.", "ب.م."],
wide: ["قبل الميلاد", "بعد الميلاد"]
};
var quarterValues = {
narrow: ["1", "2", "3", "4"],
abbreviated: ["\u06311", "\u06312", "\u06313", "\u06314"],
wide: ["\u0627\u0644\u0631\u0628\u0639 \u0627\u0644\u0623\u0648\u0644", "\u0627\u0644\u0631\u0628\u0639 \u0627\u0644\u062B\u0627\u0646\u064A", "\u0627\u0644\u0631\u0628\u0639 \u0627\u0644\u062B\u0627\u0644\u062B", "\u0627\u0644\u0631\u0628\u0639 \u0627\u0644\u0631\u0627\u0628\u0639"]
};
var monthValues = {
narrow: ["\u064A", "\u0641", "\u0645", "\u0623", "\u0645", "\u064A", "\u064A", "\u063A", "\u0634", "\u0623", "\u0646", "\u062F"],
narrow: [
"1",
"2",
"3",
"4"],
abbreviated: [
"\u064A\u0646\u0627",
"\u0641\u0628\u0631",
"\u0645\u0627\u0631\u0633",
"\u0623\u0628\u0631\u064A\u0644",
"\u0645\u0627\u064A",
"\u064A\u0648\u0646\u0640",
"\u064A\u0648\u0644\u0640",
"\u063A\u0634\u062A",
"\u0634\u062A\u0646\u0640",
"\u0623\u0643\u062A\u0640",
"\u0646\u0648\u0646\u0640",
"\u062F\u062C\u0646\u0640"],
"ر1",
"ر2",
"ر3",
"ر4"],
wide: [
"\u064A\u0646\u0627\u064A\u0631",
"\u0641\u0628\u0631\u0627\u064A\u0631",
"\u0645\u0627\u0631\u0633",
"\u0623\u0628\u0631\u064A\u0644",
"\u0645\u0627\u064A",
"\u064A\u0648\u0646\u064A\u0648",
"\u064A\u0648\u0644\u064A\u0648\u0632",
"\u063A\u0634\u062A",
"\u0634\u062A\u0646\u0628\u0631",
"\u0623\u0643\u062A\u0648\u0628\u0631",
"\u0646\u0648\u0646\u0628\u0631",
"\u062F\u062C\u0646\u0628\u0631"]
"الربع الأول",
"الربع الثاني",
"الربع الثالث",
"الربع الرابع"]
};
var monthValues = {
narrow: [
"ي",
"ف",
"م",
"أ",
"م",
"ي",
"ي",
"غ",
"ش",
"أ",
"ن",
"د"],
abbreviated: [
"ينا",
"فبر",
"مارس",
"أبريل",
"ماي",
"يونـ",
"يولـ",
"غشت",
"شتنـ",
"أكتـ",
"نونـ",
"دجنـ"],
wide: [
"يناير",
"فبراير",
"مارس",
"أبريل",
"ماي",
"يونيو",
"يوليوز",
"غشت",
"شتنبر",
"أكتوبر",
"نونبر",
"دجنبر"]
};
var dayValues = {
narrow: ["\u062D", "\u0646", "\u062B", "\u0631", "\u062E", "\u062C", "\u0633"],
short: ["\u0623\u062D\u062F", "\u0627\u062B\u0646\u064A\u0646", "\u062B\u0644\u0627\u062B\u0627\u0621", "\u0623\u0631\u0628\u0639\u0627\u0621", "\u062E\u0645\u064A\u0633", "\u062C\u0645\u0639\u0629", "\u0633\u0628\u062A"],
abbreviated: ["\u0623\u062D\u062F", "\u0627\u062B\u0646\u0640", "\u062B\u0644\u0627", "\u0623\u0631\u0628\u0640", "\u062E\u0645\u064A\u0640", "\u062C\u0645\u0639\u0629", "\u0633\u0628\u062A"],
narrow: [
"ح",
"ن",
"ث",
"ر",
"خ",
"ج",
"س"],
short: [
"أحد",
"اثنين",
"ثلاثاء",
"أربعاء",
"خميس",
"جمعة",
"سبت"],
abbreviated: [
"أحد",
"اثنـ",
"ثلا",
"أربـ",
"خميـ",
"جمعة",
"سبت"],
wide: [
"\u0627\u0644\u0623\u062D\u062F",
"\u0627\u0644\u0625\u062B\u0646\u064A\u0646",
"\u0627\u0644\u062B\u0644\u0627\u062B\u0627\u0621",
"\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621",
"\u0627\u0644\u062E\u0645\u064A\u0633",
"\u0627\u0644\u062C\u0645\u0639\u0629",
"\u0627\u0644\u0633\u0628\u062A"]
"الأحد",
"الإثنين",
"الثلاثاء",
"الأربعاء",
"الخميس",
"الجمعة",
"السبت"]
};
var dayPeriodValues = {
narrow: {
am: "\u0635",
pm: "\u0645",
midnight: "\u0646",
noon: "\u0638",
morning: "\u0635\u0628\u0627\u062D\u0627\u064B",
afternoon: "\u0628\u0639\u062F \u0627\u0644\u0638\u0647\u0631",
evening: "\u0645\u0633\u0627\u0621\u0627\u064B",
night: "\u0644\u064A\u0644\u0627\u064B"
am: "ص",
pm: "م",
midnight: "ن",
noon: "ظ",
morning: "صباحاً",
afternoon: "بعد الظهر",
evening: "مساءاً",
night: "ليلاً"
},
abbreviated: {
am: "\u0635",
pm: "\u0645",
midnight: "\u0646\u0635\u0641 \u0627\u0644\u0644\u064A\u0644",
noon: "\u0638\u0647\u0631",
morning: "\u0635\u0628\u0627\u062D\u0627\u064B",
afternoon: "\u0628\u0639\u062F \u0627\u0644\u0638\u0647\u0631",
evening: "\u0645\u0633\u0627\u0621\u0627\u064B",
night: "\u0644\u064A\u0644\u0627\u064B"
am: "ص",
pm: "م",
midnight: "نصف الليل",
noon: "ظهر",
morning: "صباحاً",
afternoon: "بعد الظهر",
evening: "مساءاً",
night: "ليلاً"
},
wide: {
am: "\u0635",
pm: "\u0645",
midnight: "\u0646\u0635\u0641 \u0627\u0644\u0644\u064A\u0644",
noon: "\u0638\u0647\u0631",
morning: "\u0635\u0628\u0627\u062D\u0627\u064B",
afternoon: "\u0628\u0639\u062F \u0627\u0644\u0638\u0647\u0631",
evening: "\u0645\u0633\u0627\u0621\u0627\u064B",
night: "\u0644\u064A\u0644\u0627\u064B"
am: "ص",
pm: "م",
midnight: "نصف الليل",
noon: "ظهر",
morning: "صباحاً",
afternoon: "بعد الظهر",
evening: "مساءاً",
night: "ليلاً"
}
};
var formattingDayPeriodValues = {
narrow: {
am: "\u0635",
pm: "\u0645",
midnight: "\u0646",
noon: "\u0638",
morning: "\u0641\u064A \u0627\u0644\u0635\u0628\u0627\u062D",
afternoon: "\u0628\u0639\u062F \u0627\u0644\u0638\u0640\u0647\u0631",
evening: "\u0641\u064A \u0627\u0644\u0645\u0633\u0627\u0621",
night: "\u0641\u064A \u0627\u0644\u0644\u064A\u0644"
am: "ص",
pm: "م",
midnight: "ن",
noon: "ظ",
morning: "في الصباح",
afternoon: "بعد الظـهر",
evening: "في المساء",
night: "في الليل"
},
abbreviated: {
am: "\u0635",
pm: "\u0645",
midnight: "\u0646\u0635\u0641 \u0627\u0644\u0644\u064A\u0644",
noon: "\u0638\u0647\u0631",
morning: "\u0641\u064A \u0627\u0644\u0635\u0628\u0627\u062D",
afternoon: "\u0628\u0639\u062F \u0627\u0644\u0638\u0647\u0631",
evening: "\u0641\u064A \u0627\u0644\u0645\u0633\u0627\u0621",
night: "\u0641\u064A \u0627\u0644\u0644\u064A\u0644"
am: "ص",
pm: "م",
midnight: "نصف الليل",
noon: "ظهر",
morning: "في الصباح",
afternoon: "بعد الظهر",
evening: "في المساء",
night: "في الليل"
},
wide: {
am: "\u0635",
pm: "\u0645",
midnight: "\u0646\u0635\u0641 \u0627\u0644\u0644\u064A\u0644",
noon: "\u0638\u0647\u0631",
morning: "\u0635\u0628\u0627\u062D\u0627\u064B",
afternoon: "\u0628\u0639\u062F \u0627\u0644\u0638\u0640\u0647\u0631",
evening: "\u0641\u064A \u0627\u0644\u0645\u0633\u0627\u0621",
night: "\u0641\u064A \u0627\u0644\u0644\u064A\u0644"
am: "ص",
pm: "م",
midnight: "نصف الليل",
noon: "ظهر",
morning: "صباحاً",
afternoon: "بعد الظـهر",
evening: "في المساء",
night: "في الليل"
}
};
var ordinalNumber = function ordinalNumber(dirtyNumber) {
@@ -353,33 +408,32 @@ var localize = {
defaultFormattingWidth: "wide"
})
};
// lib/locale/_lib/buildMatchPatternFn.js
//#endregion
//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js
function buildMatchPatternFn(args) {
return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
var matchResult = string.match(args.matchPattern);
if (!matchResult)
return null;
if (!matchResult) return null;
var matchedString = matchResult[0];
var parseResult = string.match(args.parsePattern);
if (!parseResult)
return null;
if (!parseResult) return null;
var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0];
value = options.valueCallback ? options.valueCallback(value) : value;
var rest = string.slice(matchedString.length);
return { value: value, rest: rest };
return {
value: value,
rest: rest
};
};
}
// lib/locale/_lib/buildMatchFn.js
//#endregion
//#region dist/date-fns/locale/_lib/buildMatchFn.js
function buildMatchFn(args) {
return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
var width = options.width;
var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth];
var matchResult = string.match(matchPattern);
if (!matchResult) {
return null;
}
if (!matchResult) return null;
var matchedString = matchResult[0];
var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth];
var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);});
@@ -387,169 +441,169 @@ function buildMatchFn(args) {
value = args.valueCallback ? args.valueCallback(key) : key;
value = options.valueCallback ? options.valueCallback(value) : value;
var rest = string.slice(matchedString.length);
return { value: value, rest: rest };
return {
value: value,
rest: rest
};
};
}
function findKey(object, predicate) {
for (var key in object) {
if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) {
return key;
}
}
return;
for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key;
}
function findIndex(array, predicate) {
for (var key = 0; key < array.length; key++) {
if (predicate(array[key])) {
return key;
}
}
return;
for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key;
}
// lib/locale/ar-MA/_lib/match.js
var matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i;
var parseOrdinalNumberPattern = /\d+/i;
var matchEraPatterns = {
narrow: /^(ق|ب)/i,
abbreviated: /^(ق\.?\s?م\.?|ق\.?\s?م\.?\s?|a\.?\s?d\.?|c\.?\s?)/i,
wide: /^(قبل الميلاد|قبل الميلاد|بعد الميلاد|بعد الميلاد)/i
};
var parseEraPatterns = {
any: [/^قبل/i, /^بعد/i]
};
var matchQuarterPatterns = {
narrow: /^[1234]/i,
abbreviated: /^ر[1234]/i,
wide: /^الربع [1234]/i
};
var parseQuarterPatterns = {
any: [/1/i, /2/i, /3/i, /4/i]
};
var matchMonthPatterns = {
narrow: /^[يفمأمسند]/i,
abbreviated: /^(ين|ف|مار|أب|ماي|يون|يول|غش|شت|أك|ن|د)/i,
wide: /^(ين|ف|مار|أب|ماي|يون|يول|غش|شت|أك|ن|د)/i
};
var parseMonthPatterns = {
narrow: [
/^ي/i,
/^ف/i,
/^م/i,
/^أ/i,
/^م/i,
/^ي/i,
/^ي/i,
/^غ/i,
/^ش/i,
/^أ/i,
/^ن/i,
/^د/i],
any: [
/^ين/i,
/^فب/i,
/^مار/i,
/^أب/i,
/^ماي/i,
/^يون/i,
/^يول/i,
/^غشت/i,
/^ش/i,
/^أك/i,
/^ن/i,
/^د/i]
};
var matchDayPatterns = {
narrow: /^[حنثرخجس]/i,
short: /^(أحد|إثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i,
abbreviated: /^(أحد|إثن|ثلا|أرب|خمي|جمعة|سبت)/i,
wide: /^(الأحد|الإثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i
};
var parseDayPatterns = {
narrow: [/^ح/i, /^ن/i, /^ث/i, /^ر/i, /^خ/i, /^ج/i, /^س/i],
wide: [
/^الأحد/i,
/^الإثنين/i,
/^الثلاثاء/i,
/^الأربعاء/i,
/^الخميس/i,
/^الجمعة/i,
/^السبت/i],
any: [/^أح/i, /^إث/i, /^ث/i, /^أر/i, /^خ/i, /^ج/i, /^س/i]
};
var matchDayPeriodPatterns = {
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
};
var parseDayPeriodPatterns = {
any: {
am: /^a/i,
pm: /^p/i,
midnight: /^mi/i,
noon: /^no/i,
morning: /morning/i,
afternoon: /afternoon/i,
evening: /evening/i,
night: /night/i
}
};
var match = {
ordinalNumber: buildMatchPatternFn({
matchPattern: matchOrdinalNumberPattern,
parsePattern: parseOrdinalNumberPattern,
valueCallback: function valueCallback(value) {return parseInt(value, 10);}
}),
era: buildMatchFn({
matchPatterns: matchEraPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseEraPatterns,
defaultParseWidth: "any"
}),
quarter: buildMatchFn({
matchPatterns: matchQuarterPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseQuarterPatterns,
defaultParseWidth: "any",
valueCallback: function valueCallback(index) {return Number(index) + 1;}
}),
month: buildMatchFn({
matchPatterns: matchMonthPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseMonthPatterns,
defaultParseWidth: "any"
}),
day: buildMatchFn({
matchPatterns: matchDayPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseDayPatterns,
defaultParseWidth: "any"
}),
dayPeriod: buildMatchFn({
matchPatterns: matchDayPeriodPatterns,
defaultMatchWidth: "any",
parsePatterns: parseDayPeriodPatterns,
defaultParseWidth: "any"
})
};
// lib/locale/ar-MA.js
//#endregion
//#region dist/date-fns/locale/ar-MA.js
/**
* @category Locales
* @summary Arabic locale (Moroccan Arabic).
* @language Moroccan Arabic
* @iso-639-2 ara
* @author Achraf Rrami [@rramiachraf](https://github.com/rramiachraf)
*/
var arMA = {
code: "ar-MA",
formatDistance: formatDistance,
formatLong: formatLong,
formatRelative: formatRelative,
localize: localize,
match: match,
match: {
ordinalNumber: buildMatchPatternFn({
matchPattern: /^(\d+)(th|st|nd|rd)?/i,
parsePattern: /\d+/i,
valueCallback: function valueCallback(value) {return parseInt(value, 10);}
}),
era: buildMatchFn({
matchPatterns: {
narrow: /^(ق|ب)/i,
abbreviated: /^(ق\.?\s?م\.?|ق\.?\s?م\.?\s?|a\.?\s?d\.?|c\.?\s?)/i,
wide: /^(قبل الميلاد|قبل الميلاد|بعد الميلاد|بعد الميلاد)/i
},
defaultMatchWidth: "wide",
parsePatterns: { any: [/^قبل/i, /^بعد/i] },
defaultParseWidth: "any"
}),
quarter: buildMatchFn({
matchPatterns: {
narrow: /^[1234]/i,
abbreviated: /^ر[1234]/i,
wide: /^الربع [1234]/i
},
defaultMatchWidth: "wide",
parsePatterns: { any: [
/1/i,
/2/i,
/3/i,
/4/i]
},
defaultParseWidth: "any",
valueCallback: function valueCallback(index) {return Number(index) + 1;}
}),
month: buildMatchFn({
matchPatterns: {
narrow: /^[يفمأمسند]/i,
abbreviated: /^(ين|ف|مار|أب|ماي|يون|يول|غش|شت|أك|ن|د)/i,
wide: /^(ين|ف|مار|أب|ماي|يون|يول|غش|شت|أك|ن|د)/i
},
defaultMatchWidth: "wide",
parsePatterns: {
narrow: [
/^ي/i,
/^ف/i,
/^م/i,
/^أ/i,
/^م/i,
/^ي/i,
/^ي/i,
/^غ/i,
/^ش/i,
/^أ/i,
/^ن/i,
/^د/i],
any: [
/^ين/i,
/^فب/i,
/^مار/i,
/^أب/i,
/^ماي/i,
/^يون/i,
/^يول/i,
/^غشت/i,
/^ش/i,
/^أك/i,
/^ن/i,
/^د/i]
},
defaultParseWidth: "any"
}),
day: buildMatchFn({
matchPatterns: {
narrow: /^[حنثرخجس]/i,
short: /^(أحد|إثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i,
abbreviated: /^(أحد|إثن|ثلا|أرب|خمي|جمعة|سبت)/i,
wide: /^(الأحد|الإثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i
},
defaultMatchWidth: "wide",
parsePatterns: {
narrow: [
/^ح/i,
/^ن/i,
/^ث/i,
/^ر/i,
/^خ/i,
/^ج/i,
/^س/i],
wide: [
/^الأحد/i,
/^الإثنين/i,
/^الثلاثاء/i,
/^الأربعاء/i,
/^الخميس/i,
/^الجمعة/i,
/^السبت/i],
any: [
/^أح/i,
/^إث/i,
/^ث/i,
/^أر/i,
/^خ/i,
/^ج/i,
/^س/i]
},
defaultParseWidth: "any"
}),
dayPeriod: buildMatchFn({
matchPatterns: {
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
},
defaultMatchWidth: "any",
parsePatterns: { any: {
am: /^a/i,
pm: /^p/i,
midnight: /^mi/i,
noon: /^no/i,
morning: /morning/i,
afternoon: /afternoon/i,
evening: /evening/i,
night: /night/i
} },
defaultParseWidth: "any"
})
},
options: {
weekStartsOn: 1,
firstWeekContainsDate: 1
}
};
// lib/locale/ar-MA/cdn.js
//#endregion
//#region dist/date-fns/_entries/locale/ar-MA/cdn.js
window.dateFns = _objectSpread(_objectSpread({},
window.dateFns), {}, {
locale: _objectSpread(_objectSpread({}, (_window$dateFns =
@@ -557,8 +611,7 @@ window.dateFns), {}, {
arMA: arMA }) });
//#endregion
//# debugId=53A4235796BA18DE64756E2164756E21
//# sourceMappingURL=cdn.js.map
console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN");
})();
File diff suppressed because one or more lines are too long
+1 -3
View File
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -1,4 +1,4 @@
import type { Locale } from "./types.js";
import type { Locale } from "./types.ts";
/**
* @category Locales
* @summary Arabic locale (Sauid Arabic).
+1 -1
View File
@@ -1,4 +1,4 @@
import type { Locale } from "./types.js";
import type { Locale } from "./types.ts";
/**
* @category Locales
* @summary Arabic locale (Sauid Arabic).
+1 -1
View File
@@ -1,2 +1,2 @@
import type { FormatDistanceFn } from "../../types.js";
import type { FormatDistanceFn } from "../../types.ts";
export declare const formatDistance: FormatDistanceFn;
+1 -1
View File
@@ -1,2 +1,2 @@
import type { FormatDistanceFn } from "../../types.js";
import type { FormatDistanceFn } from "../../types.ts";
export declare const formatDistance: FormatDistanceFn;
+1 -1
View File
@@ -1,2 +1,2 @@
import type { FormatLong } from "../../types.js";
import type { FormatLong } from "../../types.ts";
export declare const formatLong: FormatLong;
+1 -1
View File
@@ -1,2 +1,2 @@
import type { FormatLong } from "../../types.js";
import type { FormatLong } from "../../types.ts";
export declare const formatLong: FormatLong;
+1 -1
View File
@@ -1,2 +1,2 @@
import type { FormatRelativeFn } from "../../types.js";
import type { FormatRelativeFn } from "../../types.ts";
export declare const formatRelative: FormatRelativeFn;
+1 -1
View File
@@ -1,2 +1,2 @@
import type { FormatRelativeFn } from "../../types.js";
import type { FormatRelativeFn } from "../../types.ts";
export declare const formatRelative: FormatRelativeFn;
+1 -1
View File
@@ -1,2 +1,2 @@
import type { Localize } from "../../types.js";
import type { Localize } from "../../types.ts";
export declare const localize: Localize;
+1 -1
View File
@@ -1,2 +1,2 @@
import type { Localize } from "../../types.js";
import type { Localize } from "../../types.ts";
export declare const localize: Localize;
+1 -1
View File
@@ -1,2 +1,2 @@
import type { Match } from "../../types.js";
import type { Match } from "../../types.ts";
export declare const match: Match;
+1 -1
View File
@@ -1,2 +1,2 @@
import type { Match } from "../../types.js";
import type { Match } from "../../types.ts";
export declare const match: Match;
+434 -381
View File
@@ -1,188 +1,191 @@
(() => {
var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(obj, key, value) {key = _toPropertyKey(key);if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : String(i);}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);}var __defProp = Object.defineProperty;
var __export = function __export(target, all) {
for (var name in all)
__defProp(target, name, {
get: all[name],
enumerable: true,
configurable: true,
set: function set(newValue) {return all[name] = function () {return newValue;};}
});
};
// lib/locale/ar-SA/_lib/formatDistance.js
var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(e, r, t) {return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : i + "";}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);} //#region dist/date-fns/locale/ar-SA/_lib/formatDistance.js
var formatDistanceLocale = {
lessThanXSeconds: {
one: "\u0623\u0642\u0644 \u0645\u0646 \u062B\u0627\u0646\u064A\u0629 \u0648\u0627\u062D\u062F\u0629",
two: "\u0623\u0642\u0644 \u0645\u0646 \u062B\u0627\u0646\u062A\u064A\u0646",
threeToTen: "\u0623\u0642\u0644 \u0645\u0646 {{count}} \u062B\u0648\u0627\u0646\u064A",
other: "\u0623\u0642\u0644 \u0645\u0646 {{count}} \u062B\u0627\u0646\u064A\u0629"
one: "أقل من ثانية واحدة",
two: "أقل من ثانتين",
threeToTen: "أقل من {{count}} ثواني",
other: "أقل من {{count}} ثانية"
},
xSeconds: {
one: "\u062B\u0627\u0646\u064A\u0629 \u0648\u0627\u062D\u062F\u0629",
two: "\u062B\u0627\u0646\u062A\u064A\u0646",
threeToTen: "{{count}} \u062B\u0648\u0627\u0646\u064A",
other: "{{count}} \u062B\u0627\u0646\u064A\u0629"
one: "ثانية واحدة",
two: "ثانتين",
threeToTen: "{{count}} ثواني",
other: "{{count}} ثانية"
},
halfAMinute: "\u0646\u0635\u0641 \u062F\u0642\u064A\u0642\u0629",
halfAMinute: "نصف دقيقة",
lessThanXMinutes: {
one: "\u0623\u0642\u0644 \u0645\u0646 \u062F\u0642\u064A\u0642\u0629",
two: "\u0623\u0642\u0644 \u0645\u0646 \u062F\u0642\u064A\u0642\u062A\u064A\u0646",
threeToTen: "\u0623\u0642\u0644 \u0645\u0646 {{count}} \u062F\u0642\u0627\u0626\u0642",
other: "\u0623\u0642\u0644 \u0645\u0646 {{count}} \u062F\u0642\u064A\u0642\u0629"
one: "أقل من دقيقة",
two: "أقل من دقيقتين",
threeToTen: "أقل من {{count}} دقائق",
other: "أقل من {{count}} دقيقة"
},
xMinutes: {
one: "\u062F\u0642\u064A\u0642\u0629 \u0648\u0627\u062D\u062F\u0629",
two: "\u062F\u0642\u064A\u0642\u062A\u064A\u0646",
threeToTen: "{{count}} \u062F\u0642\u0627\u0626\u0642",
other: "{{count}} \u062F\u0642\u064A\u0642\u0629"
one: "دقيقة واحدة",
two: "دقيقتين",
threeToTen: "{{count}} دقائق",
other: "{{count}} دقيقة"
},
aboutXHours: {
one: "\u0633\u0627\u0639\u0629 \u0648\u0627\u062D\u062F\u0629 \u062A\u0642\u0631\u064A\u0628\u0627\u064B",
two: "\u0633\u0627\u0639\u062A\u064A\u0646 \u062A\u0642\u0631\u064A\u0628\u0627\u064B",
threeToTen: "{{count}} \u0633\u0627\u0639\u0627\u062A \u062A\u0642\u0631\u064A\u0628\u0627\u064B",
other: "{{count}} \u0633\u0627\u0639\u0629 \u062A\u0642\u0631\u064A\u0628\u0627\u064B"
one: "ساعة واحدة تقريباً",
two: "ساعتين تقريباً",
threeToTen: "{{count}} ساعات تقريباً",
other: "{{count}} ساعة تقريباً"
},
xHours: {
one: "\u0633\u0627\u0639\u0629 \u0648\u0627\u062D\u062F\u0629",
two: "\u0633\u0627\u0639\u062A\u064A\u0646",
threeToTen: "{{count}} \u0633\u0627\u0639\u0627\u062A",
other: "{{count}} \u0633\u0627\u0639\u0629"
one: "ساعة واحدة",
two: "ساعتين",
threeToTen: "{{count}} ساعات",
other: "{{count}} ساعة"
},
xDays: {
one: "\u064A\u0648\u0645 \u0648\u0627\u062D\u062F",
two: "\u064A\u0648\u0645\u064A\u0646",
threeToTen: "{{count}} \u0623\u064A\u0627\u0645",
other: "{{count}} \u064A\u0648\u0645"
one: "يوم واحد",
two: "يومين",
threeToTen: "{{count}} أيام",
other: "{{count}} يوم"
},
aboutXWeeks: {
one: "\u0623\u0633\u0628\u0648\u0639 \u0648\u0627\u062D\u062F \u062A\u0642\u0631\u064A\u0628\u0627\u064B",
two: "\u0623\u0633\u0628\u0648\u0639\u064A\u0646 \u062A\u0642\u0631\u064A\u0628\u0627\u064B",
threeToTen: "{{count}} \u0623\u0633\u0627\u0628\u064A\u0639 \u062A\u0642\u0631\u064A\u0628\u0627\u064B",
other: "{{count}} \u0623\u0633\u0628\u0648\u0639 \u062A\u0642\u0631\u064A\u0628\u0627\u064B"
one: "أسبوع واحد تقريباً",
two: "أسبوعين تقريباً",
threeToTen: "{{count}} أسابيع تقريباً",
other: "{{count}} أسبوع تقريباً"
},
xWeeks: {
one: "\u0623\u0633\u0628\u0648\u0639 \u0648\u0627\u062D\u062F",
two: "\u0623\u0633\u0628\u0648\u0639\u064A\u0646",
threeToTen: "{{count}} \u0623\u0633\u0627\u0628\u064A\u0639",
other: "{{count}} \u0623\u0633\u0628\u0648\u0639"
one: "أسبوع واحد",
two: "أسبوعين",
threeToTen: "{{count}} أسابيع",
other: "{{count}} أسبوع"
},
aboutXMonths: {
one: "\u0634\u0647\u0631 \u0648\u0627\u062D\u062F \u062A\u0642\u0631\u064A\u0628\u0627\u064B",
two: "\u0634\u0647\u0631\u064A\u0646 \u062A\u0642\u0631\u064A\u0628\u0627\u064B",
threeToTen: "{{count}} \u0623\u0634\u0647\u0631 \u062A\u0642\u0631\u064A\u0628\u0627\u064B",
other: "{{count}} \u0634\u0647\u0631 \u062A\u0642\u0631\u064A\u0628\u0627\u064B"
one: "شهر واحد تقريباً",
two: "شهرين تقريباً",
threeToTen: "{{count}} أشهر تقريباً",
other: "{{count}} شهر تقريباً"
},
xMonths: {
one: "\u0634\u0647\u0631 \u0648\u0627\u062D\u062F",
two: "\u0634\u0647\u0631\u064A\u0646",
threeToTen: "{{count}} \u0623\u0634\u0647\u0631",
other: "{{count}} \u0634\u0647\u0631"
one: "شهر واحد",
two: "شهرين",
threeToTen: "{{count}} أشهر",
other: "{{count}} شهر"
},
aboutXYears: {
one: "\u0639\u0627\u0645 \u0648\u0627\u062D\u062F \u062A\u0642\u0631\u064A\u0628\u0627\u064B",
two: "\u0639\u0627\u0645\u064A\u0646 \u062A\u0642\u0631\u064A\u0628\u0627\u064B",
threeToTen: "{{count}} \u0623\u0639\u0648\u0627\u0645 \u062A\u0642\u0631\u064A\u0628\u0627\u064B",
other: "{{count}} \u0639\u0627\u0645 \u062A\u0642\u0631\u064A\u0628\u0627\u064B"
one: "عام واحد تقريباً",
two: "عامين تقريباً",
threeToTen: "{{count}} أعوام تقريباً",
other: "{{count}} عام تقريباً"
},
xYears: {
one: "\u0639\u0627\u0645 \u0648\u0627\u062D\u062F",
two: "\u0639\u0627\u0645\u064A\u0646",
threeToTen: "{{count}} \u0623\u0639\u0648\u0627\u0645",
other: "{{count}} \u0639\u0627\u0645"
one: "عام واحد",
two: "عامين",
threeToTen: "{{count}} أعوام",
other: "{{count}} عام"
},
overXYears: {
one: "\u0623\u0643\u062B\u0631 \u0645\u0646 \u0639\u0627\u0645",
two: "\u0623\u0643\u062B\u0631 \u0645\u0646 \u0639\u0627\u0645\u064A\u0646",
threeToTen: "\u0623\u0643\u062B\u0631 \u0645\u0646 {{count}} \u0623\u0639\u0648\u0627\u0645",
other: "\u0623\u0643\u062B\u0631 \u0645\u0646 {{count}} \u0639\u0627\u0645"
one: "أكثر من عام",
two: "أكثر من عامين",
threeToTen: "أكثر من {{count}} أعوام",
other: "أكثر من {{count}} عام"
},
almostXYears: {
one: "\u0639\u0627\u0645 \u0648\u0627\u062D\u062F \u062A\u0642\u0631\u064A\u0628\u0627\u064B",
two: "\u0639\u0627\u0645\u064A\u0646 \u062A\u0642\u0631\u064A\u0628\u0627\u064B",
threeToTen: "{{count}} \u0623\u0639\u0648\u0627\u0645 \u062A\u0642\u0631\u064A\u0628\u0627\u064B",
other: "{{count}} \u0639\u0627\u0645 \u062A\u0642\u0631\u064A\u0628\u0627\u064B"
one: "عام واحد تقريباً",
two: "عامين تقريباً",
threeToTen: "{{count}} أعوام تقريباً",
other: "{{count}} عام تقريباً"
}
};
var formatDistance = function formatDistance(token, count, options) {
var result;
var tokenValue = formatDistanceLocale[token];
if (typeof tokenValue === "string") {
result = tokenValue;
} else if (count === 1) {
result = tokenValue.one;
} else if (count === 2) {
result = tokenValue.two;
} else if (count <= 10) {
result = tokenValue.threeToTen.replace("{{count}}", String(count));
} else {
result = tokenValue.other.replace("{{count}}", String(count));
}
if (options !== null && options !== void 0 && options.addSuffix) {
if (options.comparison && options.comparison > 0) {
return "\u0641\u064A \u062E\u0644\u0627\u0644 " + result;
} else {
return "\u0645\u0646\u0630 " + result;
}
}
if (typeof tokenValue === "string") result = tokenValue;else
if (count === 1) result = tokenValue.one;else
if (count === 2) result = tokenValue.two;else
if (count <= 10) result = tokenValue.threeToTen.replace("{{count}}", String(count));else
result = tokenValue.other.replace("{{count}}", String(count));
if (options !== null && options !== void 0 && options.addSuffix) if (options.comparison && options.comparison > 0) return "في خلال " + result;else
return "منذ " + result;
return result;
};
// lib/locale/_lib/buildFormatLongFn.js
//#endregion
//#region dist/date-fns/locale/_lib/buildFormatLongFn.js
function buildFormatLongFn(args) {
return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
var width = options.width ? String(options.width) : args.defaultWidth;
var format = args.formats[width] || args.formats[args.defaultWidth];
return format;
return args.formats[width] || args.formats[args.defaultWidth];
};
}
// lib/locale/ar-SA/_lib/formatLong.js
var dateFormats = {
full: "EEEE, MMMM do, y",
long: "MMMM do, y",
medium: "MMM d, y",
short: "MM/dd/yyyy"
};
var timeFormats = {
full: "h:mm:ss a zzzz",
long: "h:mm:ss a z",
medium: "h:mm:ss a",
short: "h:mm a"
};
var dateTimeFormats = {
full: "{{date}} '\u0639\u0646\u062F' {{time}}",
long: "{{date}} '\u0639\u0646\u062F' {{time}}",
medium: "{{date}}, {{time}}",
short: "{{date}}, {{time}}"
};
var formatLong = {
date: buildFormatLongFn({
formats: dateFormats,
formats: {
full: "EEEE, MMMM do, y",
long: "MMMM do, y",
medium: "MMM d, y",
short: "MM/dd/yyyy"
},
defaultWidth: "full"
}),
time: buildFormatLongFn({
formats: timeFormats,
formats: {
full: "h:mm:ss a zzzz",
long: "h:mm:ss a z",
medium: "h:mm:ss a",
short: "h:mm a"
},
defaultWidth: "full"
}),
dateTime: buildFormatLongFn({
formats: dateTimeFormats,
formats: {
full: "{{date}} 'عند' {{time}}",
long: "{{date}} 'عند' {{time}}",
medium: "{{date}}, {{time}}",
short: "{{date}}, {{time}}"
},
defaultWidth: "full"
})
};
// lib/locale/ar-SA/_lib/formatRelative.js
//#endregion
//#region dist/date-fns/locale/ar-SA/_lib/formatRelative.js
var formatRelativeLocale = {
lastWeek: "'\u0623\u062E\u0631' eeee '\u0639\u0646\u062F' p",
yesterday: "'\u0623\u0645\u0633 \u0639\u0646\u062F' p",
today: "'\u0627\u0644\u064A\u0648\u0645 \u0639\u0646\u062F' p",
tomorrow: "'\u063A\u062F\u0627\u064B \u0639\u0646\u062F' p",
nextWeek: "eeee '\u0639\u0646\u062F' p",
lastWeek: "'أخر' eeee 'عند' p",
yesterday: "'أمس عند' p",
today: "'اليوم عند' p",
tomorrow: "'غداً عند' p",
nextWeek: "eeee 'عند' p",
other: "P"
};
var formatRelative = function formatRelative(token, _date, _baseDate, _options) {return formatRelativeLocale[token];};
// lib/locale/_lib/buildLocalizeFn.js
//#endregion
//#region dist/date-fns/locale/_lib/buildLocalizeFn.js
/**
* The localize function argument callback which allows to convert raw value to
* the actual type.
*
* @param value - The value to convert
*
* @returns The converted value
*/
/**
* The map of localized values for each width.
*/
/**
* The index type of the locale unit value. It types conversion of units of
* values that don't start at 0 (i.e. quarters).
*/
/**
* Converts the unit value to the tuple of values.
*/
/**
* The tuple of localized era values. The first element represents BC,
* the second element represents AD.
*/
/**
* The tuple of localized quarter values. The first element represents Q1.
*/
/**
* The tuple of localized day values. The first element represents Sunday.
*/
/**
* The tuple of localized month values. The first element represents January.
*/
function buildLocalizeFn(args) {
return function (value, options) {
var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone";
@@ -200,125 +203,177 @@ function buildLocalizeFn(args) {
return valuesArray[index];
};
}
// lib/locale/ar-SA/_lib/localize.js
//#endregion
//#region dist/date-fns/locale/ar-SA/_lib/localize.js
var eraValues = {
narrow: ["\u0642", "\u0628"],
abbreviated: ["\u0642.\u0645.", "\u0628.\u0645."],
wide: ["\u0642\u0628\u0644 \u0627\u0644\u0645\u064A\u0644\u0627\u062F", "\u0628\u0639\u062F \u0627\u0644\u0645\u064A\u0644\u0627\u062F"]
narrow: ["ق", "ب"],
abbreviated: ["ق.م.", "ب.م."],
wide: ["قبل الميلاد", "بعد الميلاد"]
};
var quarterValues = {
narrow: ["1", "2", "3", "4"],
abbreviated: ["\u06311", "\u06312", "\u06313", "\u06314"],
wide: ["\u0627\u0644\u0631\u0628\u0639 \u0627\u0644\u0623\u0648\u0644", "\u0627\u0644\u0631\u0628\u0639 \u0627\u0644\u062B\u0627\u0646\u064A", "\u0627\u0644\u0631\u0628\u0639 \u0627\u0644\u062B\u0627\u0644\u062B", "\u0627\u0644\u0631\u0628\u0639 \u0627\u0644\u0631\u0627\u0628\u0639"]
};
var monthValues = {
narrow: ["\u064A", "\u0641", "\u0645", "\u0623", "\u0645", "\u064A", "\u064A", "\u0623", "\u0633", "\u0623", "\u0646", "\u062F"],
narrow: [
"1",
"2",
"3",
"4"],
abbreviated: [
"\u064A\u0646\u0627",
"\u0641\u0628\u0631",
"\u0645\u0627\u0631\u0633",
"\u0623\u0628\u0631\u064A\u0644",
"\u0645\u0627\u064A\u0648",
"\u064A\u0648\u0646\u0640",
"\u064A\u0648\u0644\u0640",
"\u0623\u063A\u0633\u0640",
"\u0633\u0628\u062A\u0640",
"\u0623\u0643\u062A\u0640",
"\u0646\u0648\u0641\u0640",
"\u062F\u064A\u0633\u0640"],
"ر1",
"ر2",
"ر3",
"ر4"],
wide: [
"\u064A\u0646\u0627\u064A\u0631",
"\u0641\u0628\u0631\u0627\u064A\u0631",
"\u0645\u0627\u0631\u0633",
"\u0623\u0628\u0631\u064A\u0644",
"\u0645\u0627\u064A\u0648",
"\u064A\u0648\u0646\u064A\u0648",
"\u064A\u0648\u0644\u064A\u0648",
"\u0623\u063A\u0633\u0637\u0633",
"\u0633\u0628\u062A\u0645\u0628\u0631",
"\u0623\u0643\u062A\u0648\u0628\u0631",
"\u0646\u0648\u0641\u0645\u0628\u0631",
"\u062F\u064A\u0633\u0645\u0628\u0631"]
"الربع الأول",
"الربع الثاني",
"الربع الثالث",
"الربع الرابع"]
};
var monthValues = {
narrow: [
"ي",
"ف",
"م",
"أ",
"م",
"ي",
"ي",
"أ",
"س",
"أ",
"ن",
"د"],
abbreviated: [
"ينا",
"فبر",
"مارس",
"أبريل",
"مايو",
"يونـ",
"يولـ",
"أغسـ",
"سبتـ",
"أكتـ",
"نوفـ",
"ديسـ"],
wide: [
"يناير",
"فبراير",
"مارس",
"أبريل",
"مايو",
"يونيو",
"يوليو",
"أغسطس",
"سبتمبر",
"أكتوبر",
"نوفمبر",
"ديسمبر"]
};
var dayValues = {
narrow: ["\u062D", "\u0646", "\u062B", "\u0631", "\u062E", "\u062C", "\u0633"],
short: ["\u0623\u062D\u062F", "\u0627\u062B\u0646\u064A\u0646", "\u062B\u0644\u0627\u062B\u0627\u0621", "\u0623\u0631\u0628\u0639\u0627\u0621", "\u062E\u0645\u064A\u0633", "\u062C\u0645\u0639\u0629", "\u0633\u0628\u062A"],
abbreviated: ["\u0623\u062D\u062F", "\u0627\u062B\u0646\u0640", "\u062B\u0644\u0627", "\u0623\u0631\u0628\u0640", "\u062E\u0645\u064A\u0640", "\u062C\u0645\u0639\u0629", "\u0633\u0628\u062A"],
narrow: [
"ح",
"ن",
"ث",
"ر",
"خ",
"ج",
"س"],
short: [
"أحد",
"اثنين",
"ثلاثاء",
"أربعاء",
"خميس",
"جمعة",
"سبت"],
abbreviated: [
"أحد",
"اثنـ",
"ثلا",
"أربـ",
"خميـ",
"جمعة",
"سبت"],
wide: [
"\u0627\u0644\u0623\u062D\u062F",
"\u0627\u0644\u0627\u062B\u0646\u064A\u0646",
"\u0627\u0644\u062B\u0644\u0627\u062B\u0627\u0621",
"\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621",
"\u0627\u0644\u062E\u0645\u064A\u0633",
"\u0627\u0644\u062C\u0645\u0639\u0629",
"\u0627\u0644\u0633\u0628\u062A"]
"الأحد",
"الاثنين",
"الثلاثاء",
"الأربعاء",
"الخميس",
"الجمعة",
"السبت"]
};
var dayPeriodValues = {
narrow: {
am: "\u0635",
pm: "\u0645",
midnight: "\u0646",
noon: "\u0638",
morning: "\u0635\u0628\u0627\u062D\u0627\u064B",
afternoon: "\u0628\u0639\u062F \u0627\u0644\u0638\u0647\u0631",
evening: "\u0645\u0633\u0627\u0621\u0627\u064B",
night: "\u0644\u064A\u0644\u0627\u064B"
am: "ص",
pm: "م",
midnight: "ن",
noon: "ظ",
morning: "صباحاً",
afternoon: "بعد الظهر",
evening: "مساءاً",
night: "ليلاً"
},
abbreviated: {
am: "\u0635",
pm: "\u0645",
midnight: "\u0646\u0635\u0641 \u0627\u0644\u0644\u064A\u0644",
noon: "\u0638\u0647\u0631",
morning: "\u0635\u0628\u0627\u062D\u0627\u064B",
afternoon: "\u0628\u0639\u062F \u0627\u0644\u0638\u0647\u0631",
evening: "\u0645\u0633\u0627\u0621\u0627\u064B",
night: "\u0644\u064A\u0644\u0627\u064B"
am: "ص",
pm: "م",
midnight: "نصف الليل",
noon: "ظهر",
morning: "صباحاً",
afternoon: "بعد الظهر",
evening: "مساءاً",
night: "ليلاً"
},
wide: {
am: "\u0635",
pm: "\u0645",
midnight: "\u0646\u0635\u0641 \u0627\u0644\u0644\u064A\u0644",
noon: "\u0638\u0647\u0631",
morning: "\u0635\u0628\u0627\u062D\u0627\u064B",
afternoon: "\u0628\u0639\u062F \u0627\u0644\u0638\u0647\u0631",
evening: "\u0645\u0633\u0627\u0621\u0627\u064B",
night: "\u0644\u064A\u0644\u0627\u064B"
am: "ص",
pm: "م",
midnight: "نصف الليل",
noon: "ظهر",
morning: "صباحاً",
afternoon: "بعد الظهر",
evening: "مساءاً",
night: "ليلاً"
}
};
var formattingDayPeriodValues = {
narrow: {
am: "\u0635",
pm: "\u0645",
midnight: "\u0646",
noon: "\u0638",
morning: "\u0641\u064A \u0627\u0644\u0635\u0628\u0627\u062D",
afternoon: "\u0628\u0639\u062F \u0627\u0644\u0638\u0640\u0647\u0631",
evening: "\u0641\u064A \u0627\u0644\u0645\u0633\u0627\u0621",
night: "\u0641\u064A \u0627\u0644\u0644\u064A\u0644"
am: "ص",
pm: "م",
midnight: "ن",
noon: "ظ",
morning: "في الصباح",
afternoon: "بعد الظـهر",
evening: "في المساء",
night: "في الليل"
},
abbreviated: {
am: "\u0635",
pm: "\u0645",
midnight: "\u0646\u0635\u0641 \u0627\u0644\u0644\u064A\u0644",
noon: "\u0638\u0647\u0631",
morning: "\u0641\u064A \u0627\u0644\u0635\u0628\u0627\u062D",
afternoon: "\u0628\u0639\u062F \u0627\u0644\u0638\u0647\u0631",
evening: "\u0641\u064A \u0627\u0644\u0645\u0633\u0627\u0621",
night: "\u0641\u064A \u0627\u0644\u0644\u064A\u0644"
am: "ص",
pm: "م",
midnight: "نصف الليل",
noon: "ظهر",
morning: "في الصباح",
afternoon: "بعد الظهر",
evening: "في المساء",
night: "في الليل"
},
wide: {
am: "\u0635",
pm: "\u0645",
midnight: "\u0646\u0635\u0641 \u0627\u0644\u0644\u064A\u0644",
noon: "\u0638\u0647\u0631",
morning: "\u0635\u0628\u0627\u062D\u0627\u064B",
afternoon: "\u0628\u0639\u062F \u0627\u0644\u0638\u0640\u0647\u0631",
evening: "\u0641\u064A \u0627\u0644\u0645\u0633\u0627\u0621",
night: "\u0641\u064A \u0627\u0644\u0644\u064A\u0644"
am: "ص",
pm: "م",
midnight: "نصف الليل",
noon: "ظهر",
morning: "صباحاً",
afternoon: "بعد الظـهر",
evening: "في المساء",
night: "في الليل"
}
};
var ordinalNumber = function ordinalNumber(dirtyNumber) {
@@ -350,16 +405,14 @@ var localize = {
defaultFormattingWidth: "wide"
})
};
// lib/locale/_lib/buildMatchFn.js
//#endregion
//#region dist/date-fns/locale/_lib/buildMatchFn.js
function buildMatchFn(args) {
return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
var width = options.width;
var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth];
var matchResult = string.match(matchPattern);
if (!matchResult) {
return null;
}
if (!matchResult) return null;
var matchedString = matchResult[0];
var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth];
var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);});
@@ -367,186 +420,187 @@ function buildMatchFn(args) {
value = args.valueCallback ? args.valueCallback(key) : key;
value = options.valueCallback ? options.valueCallback(value) : value;
var rest = string.slice(matchedString.length);
return { value: value, rest: rest };
return {
value: value,
rest: rest
};
};
}
function findKey(object, predicate) {
for (var key in object) {
if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) {
return key;
}
}
return;
for (var key in object) if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) return key;
}
function findIndex(array, predicate) {
for (var key = 0; key < array.length; key++) {
if (predicate(array[key])) {
return key;
}
}
return;
for (var key = 0; key < array.length; key++) if (predicate(array[key])) return key;
}
// lib/locale/_lib/buildMatchPatternFn.js
//#endregion
//#region dist/date-fns/locale/_lib/buildMatchPatternFn.js
function buildMatchPatternFn(args) {
return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
var matchResult = string.match(args.matchPattern);
if (!matchResult)
return null;
if (!matchResult) return null;
var matchedString = matchResult[0];
var parseResult = string.match(args.parsePattern);
if (!parseResult)
return null;
if (!parseResult) return null;
var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0];
value = options.valueCallback ? options.valueCallback(value) : value;
var rest = string.slice(matchedString.length);
return { value: value, rest: rest };
return {
value: value,
rest: rest
};
};
}
// lib/locale/ar-SA/_lib/match.js
var matchOrdinalNumberPattern = /^(\d+)(th|st|nd|rd)?/i;
var parseOrdinalNumberPattern = /\d+/i;
var matchEraPatterns = {
narrow: /^(ق|ب)/i,
abbreviated: /^(ق\.?\s?م\.?|ق\.?\s?م\.?\s?|a\.?\s?d\.?|c\.?\s?)/i,
wide: /^(قبل الميلاد|قبل الميلاد|بعد الميلاد|بعد الميلاد)/i
};
var parseEraPatterns = {
any: [/^قبل/i, /^بعد/i]
};
var matchQuarterPatterns = {
narrow: /^[1234]/i,
abbreviated: /^ر[1234]/i,
wide: /^الربع [1234]/i
};
var parseQuarterPatterns = {
any: [/1/i, /2/i, /3/i, /4/i]
};
var matchMonthPatterns = {
narrow: /^[يفمأمسند]/i,
abbreviated: /^(ين|ف|مار|أب|ماي|يون|يول|أغ|س|أك|ن|د)/i,
wide: /^(ين|ف|مار|أب|ماي|يون|يول|أغ|س|أك|ن|د)/i
};
var parseMonthPatterns = {
narrow: [
/^ي/i,
/^ف/i,
/^م/i,
/^أ/i,
/^م/i,
/^ي/i,
/^ي/i,
/^أ/i,
/^س/i,
/^أ/i,
/^ن/i,
/^د/i],
any: [
/^ين/i,
/^ف/i,
/^مار/i,
/^أب/i,
/^ماي/i,
/^يون/i,
/^يول/i,
/^أغ/i,
/^س/i,
/^أك/i,
/^ن/i,
/^د/i]
};
var matchDayPatterns = {
narrow: /^[حنثرخجس]/i,
short: /^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i,
abbreviated: /^(أحد|اثن|ثلا|أرب|خمي|جمعة|سبت)/i,
wide: /^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i
};
var parseDayPatterns = {
narrow: [/^ح/i, /^ن/i, /^ث/i, /^ر/i, /^خ/i, /^ج/i, /^س/i],
wide: [
/^الأحد/i,
/^الاثنين/i,
/^الثلاثاء/i,
/^الأربعاء/i,
/^الخميس/i,
/^الجمعة/i,
/^السبت/i],
any: [/^أح/i, /^اث/i, /^ث/i, /^أر/i, /^خ/i, /^ج/i, /^س/i]
};
var matchDayPeriodPatterns = {
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
};
var parseDayPeriodPatterns = {
any: {
am: /^a/i,
pm: /^p/i,
midnight: /^mi/i,
noon: /^no/i,
morning: /morning/i,
afternoon: /afternoon/i,
evening: /evening/i,
night: /night/i
}
};
var match = {
ordinalNumber: buildMatchPatternFn({
matchPattern: matchOrdinalNumberPattern,
parsePattern: parseOrdinalNumberPattern,
valueCallback: function valueCallback(value) {return parseInt(value, 10);}
}),
era: buildMatchFn({
matchPatterns: matchEraPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseEraPatterns,
defaultParseWidth: "any"
}),
quarter: buildMatchFn({
matchPatterns: matchQuarterPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseQuarterPatterns,
defaultParseWidth: "any",
valueCallback: function valueCallback(index) {return index + 1;}
}),
month: buildMatchFn({
matchPatterns: matchMonthPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseMonthPatterns,
defaultParseWidth: "any"
}),
day: buildMatchFn({
matchPatterns: matchDayPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseDayPatterns,
defaultParseWidth: "any"
}),
dayPeriod: buildMatchFn({
matchPatterns: matchDayPeriodPatterns,
defaultMatchWidth: "any",
parsePatterns: parseDayPeriodPatterns,
defaultParseWidth: "any"
})
};
// lib/locale/ar-SA.js
//#endregion
//#region dist/date-fns/locale/ar-SA.js
/**
* @category Locales
* @summary Arabic locale (Sauid Arabic).
* @language Arabic
* @iso-639-2 ara
* @author Dhaifallah Alwadani [@dalwadani](https://github.com/dalwadani)
*/
var arSA = {
code: "ar-SA",
formatDistance: formatDistance,
formatLong: formatLong,
formatRelative: formatRelative,
localize: localize,
match: match,
match: {
ordinalNumber: buildMatchPatternFn({
matchPattern: /^(\d+)(th|st|nd|rd)?/i,
parsePattern: /\d+/i,
valueCallback: function valueCallback(value) {return parseInt(value, 10);}
}),
era: buildMatchFn({
matchPatterns: {
narrow: /^(ق|ب)/i,
abbreviated: /^(ق\.?\s?م\.?|ق\.?\s?م\.?\s?|a\.?\s?d\.?|c\.?\s?)/i,
wide: /^(قبل الميلاد|قبل الميلاد|بعد الميلاد|بعد الميلاد)/i
},
defaultMatchWidth: "wide",
parsePatterns: { any: [/^قبل/i, /^بعد/i] },
defaultParseWidth: "any"
}),
quarter: buildMatchFn({
matchPatterns: {
narrow: /^[1234]/i,
abbreviated: /^ر[1234]/i,
wide: /^الربع [1234]/i
},
defaultMatchWidth: "wide",
parsePatterns: { any: [
/1/i,
/2/i,
/3/i,
/4/i]
},
defaultParseWidth: "any",
valueCallback: function valueCallback(index) {return index + 1;}
}),
month: buildMatchFn({
matchPatterns: {
narrow: /^[يفمأمسند]/i,
abbreviated: /^(ين|ف|مار|أب|ماي|يون|يول|أغ|س|أك|ن|د)/i,
wide: /^(ين|ف|مار|أب|ماي|يون|يول|أغ|س|أك|ن|د)/i
},
defaultMatchWidth: "wide",
parsePatterns: {
narrow: [
/^ي/i,
/^ف/i,
/^م/i,
/^أ/i,
/^م/i,
/^ي/i,
/^ي/i,
/^أ/i,
/^س/i,
/^أ/i,
/^ن/i,
/^د/i],
any: [
/^ين/i,
/^ف/i,
/^مار/i,
/^أب/i,
/^ماي/i,
/^يون/i,
/^يول/i,
/^أغ/i,
/^س/i,
/^أك/i,
/^ن/i,
/^د/i]
},
defaultParseWidth: "any"
}),
day: buildMatchFn({
matchPatterns: {
narrow: /^[حنثرخجس]/i,
short: /^(أحد|اثنين|ثلاثاء|أربعاء|خميس|جمعة|سبت)/i,
abbreviated: /^(أحد|اثن|ثلا|أرب|خمي|جمعة|سبت)/i,
wide: /^(الأحد|الاثنين|الثلاثاء|الأربعاء|الخميس|الجمعة|السبت)/i
},
defaultMatchWidth: "wide",
parsePatterns: {
narrow: [
/^ح/i,
/^ن/i,
/^ث/i,
/^ر/i,
/^خ/i,
/^ج/i,
/^س/i],
wide: [
/^الأحد/i,
/^الاثنين/i,
/^الثلاثاء/i,
/^الأربعاء/i,
/^الخميس/i,
/^الجمعة/i,
/^السبت/i],
any: [
/^أح/i,
/^اث/i,
/^ث/i,
/^أر/i,
/^خ/i,
/^ج/i,
/^س/i]
},
defaultParseWidth: "any"
}),
dayPeriod: buildMatchFn({
matchPatterns: {
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
},
defaultMatchWidth: "any",
parsePatterns: { any: {
am: /^a/i,
pm: /^p/i,
midnight: /^mi/i,
noon: /^no/i,
morning: /morning/i,
afternoon: /afternoon/i,
evening: /evening/i,
night: /night/i
} },
defaultParseWidth: "any"
})
},
options: {
weekStartsOn: 0,
firstWeekContainsDate: 1
}
};
// lib/locale/ar-SA/cdn.js
//#endregion
//#region dist/date-fns/_entries/locale/ar-SA/cdn.js
window.dateFns = _objectSpread(_objectSpread({},
window.dateFns), {}, {
locale: _objectSpread(_objectSpread({}, (_window$dateFns =
@@ -554,8 +608,7 @@ window.dateFns), {}, {
arSA: arSA }) });
//#endregion
//# debugId=24E495340A38FD6564756E2164756E21
//# sourceMappingURL=cdn.js.map
console.log("date-fns CDN files have moved to @date-fns/cdn. Please update your URLs. See: https://date-fns.org/docs/CDN");
})();
File diff suppressed because one or more lines are too long
+1 -3
View File
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -1,4 +1,4 @@
import type { Locale } from "./types.js";
import type { Locale } from "./types.ts";
/**
* @category Locales
* @summary Arabic locale (Tunisian Arabic).
+1 -1
View File
@@ -1,4 +1,4 @@
import type { Locale } from "./types.js";
import type { Locale } from "./types.ts";
/**
* @category Locales
* @summary Arabic locale (Tunisian Arabic).
+1 -1
View File
@@ -1,2 +1,2 @@
import type { FormatDistanceFn } from "../../types.js";
import type { FormatDistanceFn } from "../../types.ts";
export declare const formatDistance: FormatDistanceFn;
+1 -1
View File
@@ -1,2 +1,2 @@
import type { FormatDistanceFn } from "../../types.js";
import type { FormatDistanceFn } from "../../types.ts";
export declare const formatDistance: FormatDistanceFn;
+1 -1
View File
@@ -1,2 +1,2 @@
import type { FormatLong } from "../../types.js";
import type { FormatLong } from "../../types.ts";
export declare const formatLong: FormatLong;
+1 -1
View File
@@ -1,2 +1,2 @@
import type { FormatLong } from "../../types.js";
import type { FormatLong } from "../../types.ts";
export declare const formatLong: FormatLong;
+1 -1
View File
@@ -1,2 +1,2 @@
import type { FormatRelativeFn } from "../../types.js";
import type { FormatRelativeFn } from "../../types.ts";
export declare const formatRelative: FormatRelativeFn;
+1 -1
View File
@@ -1,2 +1,2 @@
import type { FormatRelativeFn } from "../../types.js";
import type { FormatRelativeFn } from "../../types.ts";
export declare const formatRelative: FormatRelativeFn;
+1 -1
View File
@@ -1,2 +1,2 @@
import type { Localize } from "../../types.js";
import type { Localize } from "../../types.ts";
export declare const localize: Localize;
+1 -1
View File
@@ -1,2 +1,2 @@
import type { Localize } from "../../types.js";
import type { Localize } from "../../types.ts";
export declare const localize: Localize;

Some files were not shown because too many files have changed in this diff Show More