till download files, everything works
This commit is contained in:
1 parent
ce893a4185
commit
ed1a580b09
6050 files changed
+768543
-177
No files matched your search
+253
@@ -0,0 +1,253 @@
|
||||
"use strict";
|
||||
exports.formatDistance = void 0;
|
||||
|
||||
const formatDistanceLocale = {
|
||||
lessThanXSeconds: {
|
||||
regular: {
|
||||
one: "1 секундтан аз",
|
||||
singularNominative: "{{count}} секундтан аз",
|
||||
singularGenitive: "{{count}} секундтан аз",
|
||||
pluralGenitive: "{{count}} секундтан аз",
|
||||
},
|
||||
future: {
|
||||
one: "бір секундтан кейін",
|
||||
singularNominative: "{{count}} секундтан кейін",
|
||||
singularGenitive: "{{count}} секундтан кейін",
|
||||
pluralGenitive: "{{count}} секундтан кейін",
|
||||
},
|
||||
},
|
||||
|
||||
xSeconds: {
|
||||
regular: {
|
||||
singularNominative: "{{count}} секунд",
|
||||
singularGenitive: "{{count}} секунд",
|
||||
pluralGenitive: "{{count}} секунд",
|
||||
},
|
||||
past: {
|
||||
singularNominative: "{{count}} секунд бұрын",
|
||||
singularGenitive: "{{count}} секунд бұрын",
|
||||
pluralGenitive: "{{count}} секунд бұрын",
|
||||
},
|
||||
future: {
|
||||
singularNominative: "{{count}} секундтан кейін",
|
||||
singularGenitive: "{{count}} секундтан кейін",
|
||||
pluralGenitive: "{{count}} секундтан кейін",
|
||||
},
|
||||
},
|
||||
|
||||
halfAMinute: (options) => {
|
||||
if (options?.addSuffix) {
|
||||
if (options.comparison && options.comparison > 0) {
|
||||
return "жарты минут ішінде";
|
||||
} else {
|
||||
return "жарты минут бұрын";
|
||||
}
|
||||
}
|
||||
|
||||
return "жарты минут";
|
||||
},
|
||||
|
||||
lessThanXMinutes: {
|
||||
regular: {
|
||||
one: "1 минуттан аз",
|
||||
singularNominative: "{{count}} минуттан аз",
|
||||
singularGenitive: "{{count}} минуттан аз",
|
||||
pluralGenitive: "{{count}} минуттан аз",
|
||||
},
|
||||
future: {
|
||||
one: "минуттан кем ",
|
||||
singularNominative: "{{count}} минуттан кем",
|
||||
singularGenitive: "{{count}} минуттан кем",
|
||||
pluralGenitive: "{{count}} минуттан кем",
|
||||
},
|
||||
},
|
||||
|
||||
xMinutes: {
|
||||
regular: {
|
||||
singularNominative: "{{count}} минут",
|
||||
singularGenitive: "{{count}} минут",
|
||||
pluralGenitive: "{{count}} минут",
|
||||
},
|
||||
past: {
|
||||
singularNominative: "{{count}} минут бұрын",
|
||||
singularGenitive: "{{count}} минут бұрын",
|
||||
pluralGenitive: "{{count}} минут бұрын",
|
||||
},
|
||||
future: {
|
||||
singularNominative: "{{count}} минуттан кейін",
|
||||
singularGenitive: "{{count}} минуттан кейін",
|
||||
pluralGenitive: "{{count}} минуттан кейін",
|
||||
},
|
||||
},
|
||||
|
||||
aboutXHours: {
|
||||
regular: {
|
||||
singularNominative: "шамамен {{count}} сағат",
|
||||
singularGenitive: "шамамен {{count}} сағат",
|
||||
pluralGenitive: "шамамен {{count}} сағат",
|
||||
},
|
||||
future: {
|
||||
singularNominative: "шамамен {{count}} сағаттан кейін",
|
||||
singularGenitive: "шамамен {{count}} сағаттан кейін",
|
||||
pluralGenitive: "шамамен {{count}} сағаттан кейін",
|
||||
},
|
||||
},
|
||||
|
||||
xHours: {
|
||||
regular: {
|
||||
singularNominative: "{{count}} сағат",
|
||||
singularGenitive: "{{count}} сағат",
|
||||
pluralGenitive: "{{count}} сағат",
|
||||
},
|
||||
},
|
||||
|
||||
xDays: {
|
||||
regular: {
|
||||
singularNominative: "{{count}} күн",
|
||||
singularGenitive: "{{count}} күн",
|
||||
pluralGenitive: "{{count}} күн",
|
||||
},
|
||||
future: {
|
||||
singularNominative: "{{count}} күннен кейін",
|
||||
singularGenitive: "{{count}} күннен кейін",
|
||||
pluralGenitive: "{{count}} күннен кейін",
|
||||
},
|
||||
},
|
||||
|
||||
aboutXWeeks: {
|
||||
type: "weeks",
|
||||
one: "шамамен 1 апта",
|
||||
other: "шамамен {{count}} апта",
|
||||
},
|
||||
|
||||
xWeeks: {
|
||||
type: "weeks",
|
||||
one: "1 апта",
|
||||
other: "{{count}} апта",
|
||||
},
|
||||
|
||||
aboutXMonths: {
|
||||
regular: {
|
||||
singularNominative: "шамамен {{count}} ай",
|
||||
singularGenitive: "шамамен {{count}} ай",
|
||||
pluralGenitive: "шамамен {{count}} ай",
|
||||
},
|
||||
future: {
|
||||
singularNominative: "шамамен {{count}} айдан кейін",
|
||||
singularGenitive: "шамамен {{count}} айдан кейін",
|
||||
pluralGenitive: "шамамен {{count}} айдан кейін",
|
||||
},
|
||||
},
|
||||
|
||||
xMonths: {
|
||||
regular: {
|
||||
singularNominative: "{{count}} ай",
|
||||
singularGenitive: "{{count}} ай",
|
||||
pluralGenitive: "{{count}} ай",
|
||||
},
|
||||
},
|
||||
|
||||
aboutXYears: {
|
||||
regular: {
|
||||
singularNominative: "шамамен {{count}} жыл",
|
||||
singularGenitive: "шамамен {{count}} жыл",
|
||||
pluralGenitive: "шамамен {{count}} жыл",
|
||||
},
|
||||
future: {
|
||||
singularNominative: "шамамен {{count}} жылдан кейін",
|
||||
singularGenitive: "шамамен {{count}} жылдан кейін",
|
||||
pluralGenitive: "шамамен {{count}} жылдан кейін",
|
||||
},
|
||||
},
|
||||
|
||||
xYears: {
|
||||
regular: {
|
||||
singularNominative: "{{count}} жыл",
|
||||
singularGenitive: "{{count}} жыл",
|
||||
pluralGenitive: "{{count}} жыл",
|
||||
},
|
||||
future: {
|
||||
singularNominative: "{{count}} жылдан кейін",
|
||||
singularGenitive: "{{count}} жылдан кейін",
|
||||
pluralGenitive: "{{count}} жылдан кейін",
|
||||
},
|
||||
},
|
||||
|
||||
overXYears: {
|
||||
regular: {
|
||||
singularNominative: "{{count}} жылдан астам",
|
||||
singularGenitive: "{{count}} жылдан астам",
|
||||
pluralGenitive: "{{count}} жылдан астам",
|
||||
},
|
||||
future: {
|
||||
singularNominative: "{{count}} жылдан астам",
|
||||
singularGenitive: "{{count}} жылдан астам",
|
||||
pluralGenitive: "{{count}} жылдан астам",
|
||||
},
|
||||
},
|
||||
|
||||
almostXYears: {
|
||||
regular: {
|
||||
singularNominative: "{{count}} жылға жақын",
|
||||
singularGenitive: "{{count}} жылға жақын",
|
||||
pluralGenitive: "{{count}} жылға жақын",
|
||||
},
|
||||
future: {
|
||||
singularNominative: "{{count}} жылдан кейін",
|
||||
singularGenitive: "{{count}} жылдан кейін",
|
||||
pluralGenitive: "{{count}} жылдан кейін",
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
function declension(scheme, count) {
|
||||
// scheme for count=1 exists
|
||||
if (scheme.one && count === 1) return scheme.one;
|
||||
|
||||
const rem10 = count % 10;
|
||||
const rem100 = count % 100;
|
||||
|
||||
// 1, 21, 31, ...
|
||||
if (rem10 === 1 && rem100 !== 11) {
|
||||
return scheme.singularNominative.replace("{{count}}", String(count));
|
||||
|
||||
// 2, 3, 4, 22, 23, 24, 32 ...
|
||||
} else if (rem10 >= 2 && rem10 <= 4 && (rem100 < 10 || rem100 > 20)) {
|
||||
return scheme.singularGenitive.replace("{{count}}", String(count));
|
||||
|
||||
// 5, 6, 7, 8, 9, 10, 11, ...
|
||||
} else {
|
||||
return scheme.pluralGenitive.replace("{{count}}", String(count));
|
||||
}
|
||||
}
|
||||
|
||||
const formatDistance = (token, count, options) => {
|
||||
const tokenValue = formatDistanceLocale[token];
|
||||
|
||||
if (typeof tokenValue === "function") return tokenValue(options);
|
||||
|
||||
if (tokenValue.type === "weeks") {
|
||||
return count === 1
|
||||
? tokenValue.one
|
||||
: tokenValue.other.replace("{{count}}", String(count));
|
||||
}
|
||||
|
||||
if (options?.addSuffix) {
|
||||
if (options.comparison && options.comparison > 0) {
|
||||
if (tokenValue.future) {
|
||||
return declension(tokenValue.future, count);
|
||||
} else {
|
||||
return declension(tokenValue.regular, count) + " кейін";
|
||||
}
|
||||
} else {
|
||||
if (tokenValue.past) {
|
||||
return declension(tokenValue.past, count);
|
||||
} else {
|
||||
return declension(tokenValue.regular, count) + " бұрын";
|
||||
}
|
||||
}
|
||||
} else {
|
||||
return declension(tokenValue.regular, count);
|
||||
}
|
||||
};
|
||||
exports.formatDistance = formatDistance;
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
import type { FormatDistanceFn } from "../../types.js";
|
||||
export declare const formatDistance: FormatDistanceFn;
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
import type { FormatDistanceFn } from "../../types.js";
|
||||
export declare const formatDistance: FormatDistanceFn;
|
||||
+249
@@ -0,0 +1,249 @@
|
||||
const formatDistanceLocale = {
|
||||
lessThanXSeconds: {
|
||||
regular: {
|
||||
one: "1 секундтан аз",
|
||||
singularNominative: "{{count}} секундтан аз",
|
||||
singularGenitive: "{{count}} секундтан аз",
|
||||
pluralGenitive: "{{count}} секундтан аз",
|
||||
},
|
||||
future: {
|
||||
one: "бір секундтан кейін",
|
||||
singularNominative: "{{count}} секундтан кейін",
|
||||
singularGenitive: "{{count}} секундтан кейін",
|
||||
pluralGenitive: "{{count}} секундтан кейін",
|
||||
},
|
||||
},
|
||||
|
||||
xSeconds: {
|
||||
regular: {
|
||||
singularNominative: "{{count}} секунд",
|
||||
singularGenitive: "{{count}} секунд",
|
||||
pluralGenitive: "{{count}} секунд",
|
||||
},
|
||||
past: {
|
||||
singularNominative: "{{count}} секунд бұрын",
|
||||
singularGenitive: "{{count}} секунд бұрын",
|
||||
pluralGenitive: "{{count}} секунд бұрын",
|
||||
},
|
||||
future: {
|
||||
singularNominative: "{{count}} секундтан кейін",
|
||||
singularGenitive: "{{count}} секундтан кейін",
|
||||
pluralGenitive: "{{count}} секундтан кейін",
|
||||
},
|
||||
},
|
||||
|
||||
halfAMinute: (options) => {
|
||||
if (options?.addSuffix) {
|
||||
if (options.comparison && options.comparison > 0) {
|
||||
return "жарты минут ішінде";
|
||||
} else {
|
||||
return "жарты минут бұрын";
|
||||
}
|
||||
}
|
||||
|
||||
return "жарты минут";
|
||||
},
|
||||
|
||||
lessThanXMinutes: {
|
||||
regular: {
|
||||
one: "1 минуттан аз",
|
||||
singularNominative: "{{count}} минуттан аз",
|
||||
singularGenitive: "{{count}} минуттан аз",
|
||||
pluralGenitive: "{{count}} минуттан аз",
|
||||
},
|
||||
future: {
|
||||
one: "минуттан кем ",
|
||||
singularNominative: "{{count}} минуттан кем",
|
||||
singularGenitive: "{{count}} минуттан кем",
|
||||
pluralGenitive: "{{count}} минуттан кем",
|
||||
},
|
||||
},
|
||||
|
||||
xMinutes: {
|
||||
regular: {
|
||||
singularNominative: "{{count}} минут",
|
||||
singularGenitive: "{{count}} минут",
|
||||
pluralGenitive: "{{count}} минут",
|
||||
},
|
||||
past: {
|
||||
singularNominative: "{{count}} минут бұрын",
|
||||
singularGenitive: "{{count}} минут бұрын",
|
||||
pluralGenitive: "{{count}} минут бұрын",
|
||||
},
|
||||
future: {
|
||||
singularNominative: "{{count}} минуттан кейін",
|
||||
singularGenitive: "{{count}} минуттан кейін",
|
||||
pluralGenitive: "{{count}} минуттан кейін",
|
||||
},
|
||||
},
|
||||
|
||||
aboutXHours: {
|
||||
regular: {
|
||||
singularNominative: "шамамен {{count}} сағат",
|
||||
singularGenitive: "шамамен {{count}} сағат",
|
||||
pluralGenitive: "шамамен {{count}} сағат",
|
||||
},
|
||||
future: {
|
||||
singularNominative: "шамамен {{count}} сағаттан кейін",
|
||||
singularGenitive: "шамамен {{count}} сағаттан кейін",
|
||||
pluralGenitive: "шамамен {{count}} сағаттан кейін",
|
||||
},
|
||||
},
|
||||
|
||||
xHours: {
|
||||
regular: {
|
||||
singularNominative: "{{count}} сағат",
|
||||
singularGenitive: "{{count}} сағат",
|
||||
pluralGenitive: "{{count}} сағат",
|
||||
},
|
||||
},
|
||||
|
||||
xDays: {
|
||||
regular: {
|
||||
singularNominative: "{{count}} күн",
|
||||
singularGenitive: "{{count}} күн",
|
||||
pluralGenitive: "{{count}} күн",
|
||||
},
|
||||
future: {
|
||||
singularNominative: "{{count}} күннен кейін",
|
||||
singularGenitive: "{{count}} күннен кейін",
|
||||
pluralGenitive: "{{count}} күннен кейін",
|
||||
},
|
||||
},
|
||||
|
||||
aboutXWeeks: {
|
||||
type: "weeks",
|
||||
one: "шамамен 1 апта",
|
||||
other: "шамамен {{count}} апта",
|
||||
},
|
||||
|
||||
xWeeks: {
|
||||
type: "weeks",
|
||||
one: "1 апта",
|
||||
other: "{{count}} апта",
|
||||
},
|
||||
|
||||
aboutXMonths: {
|
||||
regular: {
|
||||
singularNominative: "шамамен {{count}} ай",
|
||||
singularGenitive: "шамамен {{count}} ай",
|
||||
pluralGenitive: "шамамен {{count}} ай",
|
||||
},
|
||||
future: {
|
||||
singularNominative: "шамамен {{count}} айдан кейін",
|
||||
singularGenitive: "шамамен {{count}} айдан кейін",
|
||||
pluralGenitive: "шамамен {{count}} айдан кейін",
|
||||
},
|
||||
},
|
||||
|
||||
xMonths: {
|
||||
regular: {
|
||||
singularNominative: "{{count}} ай",
|
||||
singularGenitive: "{{count}} ай",
|
||||
pluralGenitive: "{{count}} ай",
|
||||
},
|
||||
},
|
||||
|
||||
aboutXYears: {
|
||||
regular: {
|
||||
singularNominative: "шамамен {{count}} жыл",
|
||||
singularGenitive: "шамамен {{count}} жыл",
|
||||
pluralGenitive: "шамамен {{count}} жыл",
|
||||
},
|
||||
future: {
|
||||
singularNominative: "шамамен {{count}} жылдан кейін",
|
||||
singularGenitive: "шамамен {{count}} жылдан кейін",
|
||||
pluralGenitive: "шамамен {{count}} жылдан кейін",
|
||||
},
|
||||
},
|
||||
|
||||
xYears: {
|
||||
regular: {
|
||||
singularNominative: "{{count}} жыл",
|
||||
singularGenitive: "{{count}} жыл",
|
||||
pluralGenitive: "{{count}} жыл",
|
||||
},
|
||||
future: {
|
||||
singularNominative: "{{count}} жылдан кейін",
|
||||
singularGenitive: "{{count}} жылдан кейін",
|
||||
pluralGenitive: "{{count}} жылдан кейін",
|
||||
},
|
||||
},
|
||||
|
||||
overXYears: {
|
||||
regular: {
|
||||
singularNominative: "{{count}} жылдан астам",
|
||||
singularGenitive: "{{count}} жылдан астам",
|
||||
pluralGenitive: "{{count}} жылдан астам",
|
||||
},
|
||||
future: {
|
||||
singularNominative: "{{count}} жылдан астам",
|
||||
singularGenitive: "{{count}} жылдан астам",
|
||||
pluralGenitive: "{{count}} жылдан астам",
|
||||
},
|
||||
},
|
||||
|
||||
almostXYears: {
|
||||
regular: {
|
||||
singularNominative: "{{count}} жылға жақын",
|
||||
singularGenitive: "{{count}} жылға жақын",
|
||||
pluralGenitive: "{{count}} жылға жақын",
|
||||
},
|
||||
future: {
|
||||
singularNominative: "{{count}} жылдан кейін",
|
||||
singularGenitive: "{{count}} жылдан кейін",
|
||||
pluralGenitive: "{{count}} жылдан кейін",
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
function declension(scheme, count) {
|
||||
// scheme for count=1 exists
|
||||
if (scheme.one && count === 1) return scheme.one;
|
||||
|
||||
const rem10 = count % 10;
|
||||
const rem100 = count % 100;
|
||||
|
||||
// 1, 21, 31, ...
|
||||
if (rem10 === 1 && rem100 !== 11) {
|
||||
return scheme.singularNominative.replace("{{count}}", String(count));
|
||||
|
||||
// 2, 3, 4, 22, 23, 24, 32 ...
|
||||
} else if (rem10 >= 2 && rem10 <= 4 && (rem100 < 10 || rem100 > 20)) {
|
||||
return scheme.singularGenitive.replace("{{count}}", String(count));
|
||||
|
||||
// 5, 6, 7, 8, 9, 10, 11, ...
|
||||
} else {
|
||||
return scheme.pluralGenitive.replace("{{count}}", String(count));
|
||||
}
|
||||
}
|
||||
|
||||
export const formatDistance = (token, count, options) => {
|
||||
const tokenValue = formatDistanceLocale[token];
|
||||
|
||||
if (typeof tokenValue === "function") return tokenValue(options);
|
||||
|
||||
if (tokenValue.type === "weeks") {
|
||||
return count === 1
|
||||
? tokenValue.one
|
||||
: tokenValue.other.replace("{{count}}", String(count));
|
||||
}
|
||||
|
||||
if (options?.addSuffix) {
|
||||
if (options.comparison && options.comparison > 0) {
|
||||
if (tokenValue.future) {
|
||||
return declension(tokenValue.future, count);
|
||||
} else {
|
||||
return declension(tokenValue.regular, count) + " кейін";
|
||||
}
|
||||
} else {
|
||||
if (tokenValue.past) {
|
||||
return declension(tokenValue.past, count);
|
||||
} else {
|
||||
return declension(tokenValue.regular, count) + " бұрын";
|
||||
}
|
||||
}
|
||||
} else {
|
||||
return declension(tokenValue.regular, count);
|
||||
}
|
||||
};
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
"use strict";
|
||||
exports.formatLong = void 0;
|
||||
var _index = require("../../_lib/buildFormatLongFn.cjs");
|
||||
|
||||
const dateFormats = {
|
||||
full: "EEEE, do MMMM y 'ж.'",
|
||||
long: "do MMMM y 'ж.'",
|
||||
medium: "d MMM y 'ж.'",
|
||||
short: "dd.MM.yyyy",
|
||||
};
|
||||
|
||||
const timeFormats = {
|
||||
full: "H:mm:ss zzzz",
|
||||
long: "H:mm:ss z",
|
||||
medium: "H:mm:ss",
|
||||
short: "H:mm",
|
||||
};
|
||||
|
||||
const dateTimeFormats = {
|
||||
any: "{{date}}, {{time}}",
|
||||
};
|
||||
|
||||
const formatLong = (exports.formatLong = {
|
||||
date: (0, _index.buildFormatLongFn)({
|
||||
formats: dateFormats,
|
||||
defaultWidth: "full",
|
||||
}),
|
||||
|
||||
time: (0, _index.buildFormatLongFn)({
|
||||
formats: timeFormats,
|
||||
defaultWidth: "full",
|
||||
}),
|
||||
|
||||
dateTime: (0, _index.buildFormatLongFn)({
|
||||
formats: dateTimeFormats,
|
||||
defaultWidth: "any",
|
||||
}),
|
||||
});
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
import type { FormatLong } from "../../types.js";
|
||||
export declare const formatLong: FormatLong;
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
import type { FormatLong } from "../../types.js";
|
||||
export declare const formatLong: FormatLong;
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
import { buildFormatLongFn } from "../../_lib/buildFormatLongFn.js";
|
||||
|
||||
const dateFormats = {
|
||||
full: "EEEE, do MMMM y 'ж.'",
|
||||
long: "do MMMM y 'ж.'",
|
||||
medium: "d MMM y 'ж.'",
|
||||
short: "dd.MM.yyyy",
|
||||
};
|
||||
|
||||
const timeFormats = {
|
||||
full: "H:mm:ss zzzz",
|
||||
long: "H:mm:ss z",
|
||||
medium: "H:mm:ss",
|
||||
short: "H:mm",
|
||||
};
|
||||
|
||||
const dateTimeFormats = {
|
||||
any: "{{date}}, {{time}}",
|
||||
};
|
||||
|
||||
export const formatLong = {
|
||||
date: buildFormatLongFn({
|
||||
formats: dateFormats,
|
||||
defaultWidth: "full",
|
||||
}),
|
||||
|
||||
time: buildFormatLongFn({
|
||||
formats: timeFormats,
|
||||
defaultWidth: "full",
|
||||
}),
|
||||
|
||||
dateTime: buildFormatLongFn({
|
||||
formats: dateTimeFormats,
|
||||
defaultWidth: "any",
|
||||
}),
|
||||
};
|
||||
+65
@@ -0,0 +1,65 @@
|
||||
"use strict";
|
||||
exports.formatRelative = void 0;
|
||||
var _index = require("../../../isSameWeek.cjs");
|
||||
|
||||
const accusativeWeekdays = [
|
||||
"жексенбіде",
|
||||
"дүйсенбіде",
|
||||
"сейсенбіде",
|
||||
"сәрсенбіде",
|
||||
"бейсенбіде",
|
||||
"жұмада",
|
||||
"сенбіде",
|
||||
];
|
||||
|
||||
function lastWeek(day) {
|
||||
const weekday = accusativeWeekdays[day];
|
||||
|
||||
return "'өткен " + weekday + " сағат' p'-де'";
|
||||
}
|
||||
|
||||
function thisWeek(day) {
|
||||
const weekday = accusativeWeekdays[day];
|
||||
|
||||
return "'" + weekday + " сағат' p'-де'";
|
||||
}
|
||||
|
||||
function nextWeek(day) {
|
||||
const weekday = accusativeWeekdays[day];
|
||||
|
||||
return "'келесі " + weekday + " сағат' p'-де'";
|
||||
}
|
||||
|
||||
const formatRelativeLocale = {
|
||||
lastWeek: (date, baseDate, options) => {
|
||||
const day = date.getDay();
|
||||
if ((0, _index.isSameWeek)(date, baseDate, options)) {
|
||||
return thisWeek(day);
|
||||
} else {
|
||||
return lastWeek(day);
|
||||
}
|
||||
},
|
||||
yesterday: "'кеше сағат' p'-де'",
|
||||
today: "'бүгін сағат' p'-де'",
|
||||
tomorrow: "'ертең сағат' p'-де'",
|
||||
nextWeek: (date, baseDate, options) => {
|
||||
const day = date.getDay();
|
||||
if ((0, _index.isSameWeek)(date, baseDate, options)) {
|
||||
return thisWeek(day);
|
||||
} else {
|
||||
return nextWeek(day);
|
||||
}
|
||||
},
|
||||
other: "P",
|
||||
};
|
||||
|
||||
const formatRelative = (token, date, baseDate, options) => {
|
||||
const format = formatRelativeLocale[token];
|
||||
|
||||
if (typeof format === "function") {
|
||||
return format(date, baseDate, options);
|
||||
}
|
||||
|
||||
return format;
|
||||
};
|
||||
exports.formatRelative = formatRelative;
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
import type { FormatRelativeFn } from "../../types.js";
|
||||
export declare const formatRelative: FormatRelativeFn;
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
import type { FormatRelativeFn } from "../../types.js";
|
||||
export declare const formatRelative: FormatRelativeFn;
|
||||
+62
@@ -0,0 +1,62 @@
|
||||
import { isSameWeek } from "../../../isSameWeek.js";
|
||||
|
||||
const accusativeWeekdays = [
|
||||
"жексенбіде",
|
||||
"дүйсенбіде",
|
||||
"сейсенбіде",
|
||||
"сәрсенбіде",
|
||||
"бейсенбіде",
|
||||
"жұмада",
|
||||
"сенбіде",
|
||||
];
|
||||
|
||||
function lastWeek(day) {
|
||||
const weekday = accusativeWeekdays[day];
|
||||
|
||||
return "'өткен " + weekday + " сағат' p'-де'";
|
||||
}
|
||||
|
||||
function thisWeek(day) {
|
||||
const weekday = accusativeWeekdays[day];
|
||||
|
||||
return "'" + weekday + " сағат' p'-де'";
|
||||
}
|
||||
|
||||
function nextWeek(day) {
|
||||
const weekday = accusativeWeekdays[day];
|
||||
|
||||
return "'келесі " + weekday + " сағат' p'-де'";
|
||||
}
|
||||
|
||||
const formatRelativeLocale = {
|
||||
lastWeek: (date, baseDate, options) => {
|
||||
const day = date.getDay();
|
||||
if (isSameWeek(date, baseDate, options)) {
|
||||
return thisWeek(day);
|
||||
} else {
|
||||
return lastWeek(day);
|
||||
}
|
||||
},
|
||||
yesterday: "'кеше сағат' p'-де'",
|
||||
today: "'бүгін сағат' p'-де'",
|
||||
tomorrow: "'ертең сағат' p'-де'",
|
||||
nextWeek: (date, baseDate, options) => {
|
||||
const day = date.getDay();
|
||||
if (isSameWeek(date, baseDate, options)) {
|
||||
return thisWeek(day);
|
||||
} else {
|
||||
return nextWeek(day);
|
||||
}
|
||||
},
|
||||
other: "P",
|
||||
};
|
||||
|
||||
export const formatRelative = (token, date, baseDate, options) => {
|
||||
const format = formatRelativeLocale[token];
|
||||
|
||||
if (typeof format === "function") {
|
||||
return format(date, baseDate, options);
|
||||
}
|
||||
|
||||
return format;
|
||||
};
|
||||
+208
@@ -0,0 +1,208 @@
|
||||
"use strict";
|
||||
exports.localize = void 0;
|
||||
var _index = require("../../_lib/buildLocalizeFn.cjs");
|
||||
|
||||
const eraValues = {
|
||||
narrow: ["б.з.д.", "б.з."],
|
||||
abbreviated: ["б.з.д.", "б.з."],
|
||||
wide: ["біздің заманымызға дейін", "біздің заманымыз"],
|
||||
};
|
||||
|
||||
const quarterValues = {
|
||||
narrow: ["1", "2", "3", "4"],
|
||||
abbreviated: ["1-ші тоқ.", "2-ші тоқ.", "3-ші тоқ.", "4-ші тоқ."],
|
||||
wide: ["1-ші тоқсан", "2-ші тоқсан", "3-ші тоқсан", "4-ші тоқсан"],
|
||||
};
|
||||
|
||||
const monthValues = {
|
||||
narrow: ["Қ", "А", "Н", "С", "М", "М", "Ш", "Т", "Қ", "Қ", "Қ", "Ж"],
|
||||
abbreviated: [
|
||||
"қаң",
|
||||
"ақп",
|
||||
"нау",
|
||||
"сәу",
|
||||
"мам",
|
||||
"мау",
|
||||
"шіл",
|
||||
"там",
|
||||
"қыр",
|
||||
"қаз",
|
||||
"қар",
|
||||
"жел",
|
||||
],
|
||||
|
||||
wide: [
|
||||
"қаңтар",
|
||||
"ақпан",
|
||||
"наурыз",
|
||||
"сәуір",
|
||||
"мамыр",
|
||||
"маусым",
|
||||
"шілде",
|
||||
"тамыз",
|
||||
"қыркүйек",
|
||||
"қазан",
|
||||
"қараша",
|
||||
"желтоқсан",
|
||||
],
|
||||
};
|
||||
const formattingMonthValues = {
|
||||
narrow: ["Қ", "А", "Н", "С", "М", "М", "Ш", "Т", "Қ", "Қ", "Қ", "Ж"],
|
||||
abbreviated: [
|
||||
"қаң",
|
||||
"ақп",
|
||||
"нау",
|
||||
"сәу",
|
||||
"мам",
|
||||
"мау",
|
||||
"шіл",
|
||||
"там",
|
||||
"қыр",
|
||||
"қаз",
|
||||
"қар",
|
||||
"жел",
|
||||
],
|
||||
|
||||
wide: [
|
||||
"қаңтар",
|
||||
"ақпан",
|
||||
"наурыз",
|
||||
"сәуір",
|
||||
"мамыр",
|
||||
"маусым",
|
||||
"шілде",
|
||||
"тамыз",
|
||||
"қыркүйек",
|
||||
"қазан",
|
||||
"қараша",
|
||||
"желтоқсан",
|
||||
],
|
||||
};
|
||||
|
||||
const dayValues = {
|
||||
narrow: ["Ж", "Д", "С", "С", "Б", "Ж", "С"],
|
||||
short: ["жс", "дс", "сс", "ср", "бс", "жм", "сб"],
|
||||
abbreviated: ["жс", "дс", "сс", "ср", "бс", "жм", "сб"],
|
||||
wide: [
|
||||
"жексенбі",
|
||||
"дүйсенбі",
|
||||
"сейсенбі",
|
||||
"сәрсенбі",
|
||||
"бейсенбі",
|
||||
"жұма",
|
||||
"сенбі",
|
||||
],
|
||||
};
|
||||
|
||||
const dayPeriodValues = {
|
||||
narrow: {
|
||||
am: "ТД",
|
||||
pm: "ТК",
|
||||
midnight: "түн ортасы",
|
||||
noon: "түс",
|
||||
morning: "таң",
|
||||
afternoon: "күндіз",
|
||||
evening: "кеш",
|
||||
night: "түн",
|
||||
},
|
||||
wide: {
|
||||
am: "ТД",
|
||||
pm: "ТК",
|
||||
midnight: "түн ортасы",
|
||||
noon: "түс",
|
||||
morning: "таң",
|
||||
afternoon: "күндіз",
|
||||
evening: "кеш",
|
||||
night: "түн",
|
||||
},
|
||||
};
|
||||
|
||||
const formattingDayPeriodValues = {
|
||||
narrow: {
|
||||
am: "ТД",
|
||||
pm: "ТК",
|
||||
midnight: "түн ортасында",
|
||||
noon: "түс",
|
||||
morning: "таң",
|
||||
afternoon: "күн",
|
||||
evening: "кеш",
|
||||
night: "түн",
|
||||
},
|
||||
wide: {
|
||||
am: "ТД",
|
||||
pm: "ТК",
|
||||
midnight: "түн ортасында",
|
||||
noon: "түсте",
|
||||
morning: "таңертең",
|
||||
afternoon: "күндіз",
|
||||
evening: "кеште",
|
||||
night: "түнде",
|
||||
},
|
||||
};
|
||||
|
||||
const suffixes = {
|
||||
0: "-ші",
|
||||
1: "-ші",
|
||||
2: "-ші",
|
||||
3: "-ші",
|
||||
4: "-ші",
|
||||
5: "-ші",
|
||||
6: "-шы",
|
||||
7: "-ші",
|
||||
8: "-ші",
|
||||
9: "-шы",
|
||||
10: "-шы",
|
||||
20: "-шы",
|
||||
30: "-шы",
|
||||
40: "-шы",
|
||||
50: "-ші",
|
||||
60: "-шы",
|
||||
70: "-ші",
|
||||
80: "-ші",
|
||||
90: "-шы",
|
||||
100: "-ші",
|
||||
};
|
||||
|
||||
const ordinalNumber = (dirtyNumber, _options) => {
|
||||
const number = Number(dirtyNumber);
|
||||
const mod10 = number % 10;
|
||||
const b = number >= 100 ? 100 : null;
|
||||
const suffix =
|
||||
suffixes[number] || suffixes[mod10] || (b && suffixes[b]) || "";
|
||||
|
||||
return number + suffix;
|
||||
};
|
||||
|
||||
const localize = (exports.localize = {
|
||||
ordinalNumber,
|
||||
|
||||
era: (0, _index.buildLocalizeFn)({
|
||||
values: eraValues,
|
||||
defaultWidth: "wide",
|
||||
}),
|
||||
|
||||
quarter: (0, _index.buildLocalizeFn)({
|
||||
values: quarterValues,
|
||||
defaultWidth: "wide",
|
||||
argumentCallback: (quarter) => quarter - 1,
|
||||
}),
|
||||
|
||||
month: (0, _index.buildLocalizeFn)({
|
||||
values: monthValues,
|
||||
defaultWidth: "wide",
|
||||
formattingValues: formattingMonthValues,
|
||||
defaultFormattingWidth: "wide",
|
||||
}),
|
||||
|
||||
day: (0, _index.buildLocalizeFn)({
|
||||
values: dayValues,
|
||||
defaultWidth: "wide",
|
||||
}),
|
||||
|
||||
dayPeriod: (0, _index.buildLocalizeFn)({
|
||||
values: dayPeriodValues,
|
||||
defaultWidth: "any",
|
||||
formattingValues: formattingDayPeriodValues,
|
||||
defaultFormattingWidth: "wide",
|
||||
}),
|
||||
});
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
import type { Localize } from "../../types.js";
|
||||
export declare const localize: Localize;
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
import type { Localize } from "../../types.js";
|
||||
export declare const localize: Localize;
|
||||
+206
@@ -0,0 +1,206 @@
|
||||
import { buildLocalizeFn } from "../../_lib/buildLocalizeFn.js";
|
||||
|
||||
const eraValues = {
|
||||
narrow: ["б.з.д.", "б.з."],
|
||||
abbreviated: ["б.з.д.", "б.з."],
|
||||
wide: ["біздің заманымызға дейін", "біздің заманымыз"],
|
||||
};
|
||||
|
||||
const quarterValues = {
|
||||
narrow: ["1", "2", "3", "4"],
|
||||
abbreviated: ["1-ші тоқ.", "2-ші тоқ.", "3-ші тоқ.", "4-ші тоқ."],
|
||||
wide: ["1-ші тоқсан", "2-ші тоқсан", "3-ші тоқсан", "4-ші тоқсан"],
|
||||
};
|
||||
|
||||
const monthValues = {
|
||||
narrow: ["Қ", "А", "Н", "С", "М", "М", "Ш", "Т", "Қ", "Қ", "Қ", "Ж"],
|
||||
abbreviated: [
|
||||
"қаң",
|
||||
"ақп",
|
||||
"нау",
|
||||
"сәу",
|
||||
"мам",
|
||||
"мау",
|
||||
"шіл",
|
||||
"там",
|
||||
"қыр",
|
||||
"қаз",
|
||||
"қар",
|
||||
"жел",
|
||||
],
|
||||
|
||||
wide: [
|
||||
"қаңтар",
|
||||
"ақпан",
|
||||
"наурыз",
|
||||
"сәуір",
|
||||
"мамыр",
|
||||
"маусым",
|
||||
"шілде",
|
||||
"тамыз",
|
||||
"қыркүйек",
|
||||
"қазан",
|
||||
"қараша",
|
||||
"желтоқсан",
|
||||
],
|
||||
};
|
||||
const formattingMonthValues = {
|
||||
narrow: ["Қ", "А", "Н", "С", "М", "М", "Ш", "Т", "Қ", "Қ", "Қ", "Ж"],
|
||||
abbreviated: [
|
||||
"қаң",
|
||||
"ақп",
|
||||
"нау",
|
||||
"сәу",
|
||||
"мам",
|
||||
"мау",
|
||||
"шіл",
|
||||
"там",
|
||||
"қыр",
|
||||
"қаз",
|
||||
"қар",
|
||||
"жел",
|
||||
],
|
||||
|
||||
wide: [
|
||||
"қаңтар",
|
||||
"ақпан",
|
||||
"наурыз",
|
||||
"сәуір",
|
||||
"мамыр",
|
||||
"маусым",
|
||||
"шілде",
|
||||
"тамыз",
|
||||
"қыркүйек",
|
||||
"қазан",
|
||||
"қараша",
|
||||
"желтоқсан",
|
||||
],
|
||||
};
|
||||
|
||||
const dayValues = {
|
||||
narrow: ["Ж", "Д", "С", "С", "Б", "Ж", "С"],
|
||||
short: ["жс", "дс", "сс", "ср", "бс", "жм", "сб"],
|
||||
abbreviated: ["жс", "дс", "сс", "ср", "бс", "жм", "сб"],
|
||||
wide: [
|
||||
"жексенбі",
|
||||
"дүйсенбі",
|
||||
"сейсенбі",
|
||||
"сәрсенбі",
|
||||
"бейсенбі",
|
||||
"жұма",
|
||||
"сенбі",
|
||||
],
|
||||
};
|
||||
|
||||
const dayPeriodValues = {
|
||||
narrow: {
|
||||
am: "ТД",
|
||||
pm: "ТК",
|
||||
midnight: "түн ортасы",
|
||||
noon: "түс",
|
||||
morning: "таң",
|
||||
afternoon: "күндіз",
|
||||
evening: "кеш",
|
||||
night: "түн",
|
||||
},
|
||||
wide: {
|
||||
am: "ТД",
|
||||
pm: "ТК",
|
||||
midnight: "түн ортасы",
|
||||
noon: "түс",
|
||||
morning: "таң",
|
||||
afternoon: "күндіз",
|
||||
evening: "кеш",
|
||||
night: "түн",
|
||||
},
|
||||
};
|
||||
|
||||
const formattingDayPeriodValues = {
|
||||
narrow: {
|
||||
am: "ТД",
|
||||
pm: "ТК",
|
||||
midnight: "түн ортасында",
|
||||
noon: "түс",
|
||||
morning: "таң",
|
||||
afternoon: "күн",
|
||||
evening: "кеш",
|
||||
night: "түн",
|
||||
},
|
||||
wide: {
|
||||
am: "ТД",
|
||||
pm: "ТК",
|
||||
midnight: "түн ортасында",
|
||||
noon: "түсте",
|
||||
morning: "таңертең",
|
||||
afternoon: "күндіз",
|
||||
evening: "кеште",
|
||||
night: "түнде",
|
||||
},
|
||||
};
|
||||
|
||||
const suffixes = {
|
||||
0: "-ші",
|
||||
1: "-ші",
|
||||
2: "-ші",
|
||||
3: "-ші",
|
||||
4: "-ші",
|
||||
5: "-ші",
|
||||
6: "-шы",
|
||||
7: "-ші",
|
||||
8: "-ші",
|
||||
9: "-шы",
|
||||
10: "-шы",
|
||||
20: "-шы",
|
||||
30: "-шы",
|
||||
40: "-шы",
|
||||
50: "-ші",
|
||||
60: "-шы",
|
||||
70: "-ші",
|
||||
80: "-ші",
|
||||
90: "-шы",
|
||||
100: "-ші",
|
||||
};
|
||||
|
||||
const ordinalNumber = (dirtyNumber, _options) => {
|
||||
const number = Number(dirtyNumber);
|
||||
const mod10 = number % 10;
|
||||
const b = number >= 100 ? 100 : null;
|
||||
const suffix =
|
||||
suffixes[number] || suffixes[mod10] || (b && suffixes[b]) || "";
|
||||
|
||||
return number + suffix;
|
||||
};
|
||||
|
||||
export const localize = {
|
||||
ordinalNumber,
|
||||
|
||||
era: buildLocalizeFn({
|
||||
values: eraValues,
|
||||
defaultWidth: "wide",
|
||||
}),
|
||||
|
||||
quarter: buildLocalizeFn({
|
||||
values: quarterValues,
|
||||
defaultWidth: "wide",
|
||||
argumentCallback: (quarter) => quarter - 1,
|
||||
}),
|
||||
|
||||
month: buildLocalizeFn({
|
||||
values: monthValues,
|
||||
defaultWidth: "wide",
|
||||
formattingValues: formattingMonthValues,
|
||||
defaultFormattingWidth: "wide",
|
||||
}),
|
||||
|
||||
day: buildLocalizeFn({
|
||||
values: dayValues,
|
||||
defaultWidth: "wide",
|
||||
}),
|
||||
|
||||
dayPeriod: buildLocalizeFn({
|
||||
values: dayPeriodValues,
|
||||
defaultWidth: "any",
|
||||
formattingValues: formattingDayPeriodValues,
|
||||
defaultFormattingWidth: "wide",
|
||||
}),
|
||||
};
|
||||
+160
@@ -0,0 +1,160 @@
|
||||
"use strict";
|
||||
exports.match = void 0;
|
||||
|
||||
var _index = require("../../_lib/buildMatchFn.cjs");
|
||||
var _index2 = require("../../_lib/buildMatchPatternFn.cjs");
|
||||
|
||||
const matchOrdinalNumberPattern = /^(\d+)(-?(ші|шы))?/i;
|
||||
const parseOrdinalNumberPattern = /\d+/i;
|
||||
|
||||
const matchEraPatterns = {
|
||||
narrow: /^((б )?з\.?\s?д\.?)/i,
|
||||
abbreviated: /^((б )?з\.?\s?д\.?)/i,
|
||||
wide: /^(біздің заманымызға дейін|біздің заманымыз|біздің заманымыздан)/i,
|
||||
};
|
||||
const parseEraPatterns = {
|
||||
any: [/^б/i, /^з/i],
|
||||
};
|
||||
|
||||
const matchQuarterPatterns = {
|
||||
narrow: /^[1234]/i,
|
||||
abbreviated: /^[1234](-?ші)? тоқ.?/i,
|
||||
wide: /^[1234](-?ші)? тоқсан/i,
|
||||
};
|
||||
const parseQuarterPatterns = {
|
||||
any: [/1/i, /2/i, /3/i, /4/i],
|
||||
};
|
||||
|
||||
const matchMonthPatterns = {
|
||||
narrow: /^(қ|а|н|с|м|мау|ш|т|қыр|қаз|қар|ж)/i,
|
||||
abbreviated: /^(қаң|ақп|нау|сәу|мам|мау|шіл|там|қыр|қаз|қар|жел)/i,
|
||||
wide: /^(қаңтар|ақпан|наурыз|сәуір|мамыр|маусым|шілде|тамыз|қыркүйек|қазан|қараша|желтоқсан)/i,
|
||||
};
|
||||
const parseMonthPatterns = {
|
||||
narrow: [
|
||||
/^қ/i,
|
||||
/^а/i,
|
||||
/^н/i,
|
||||
/^с/i,
|
||||
/^м/i,
|
||||
/^м/i,
|
||||
/^ш/i,
|
||||
/^т/i,
|
||||
/^қ/i,
|
||||
/^қ/i,
|
||||
/^қ/i,
|
||||
/^ж/i,
|
||||
],
|
||||
|
||||
abbreviated: [
|
||||
/^қаң/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,
|
||||
],
|
||||
};
|
||||
|
||||
const matchDayPatterns = {
|
||||
narrow: /^(ж|д|с|с|б|ж|с)/i,
|
||||
short: /^(жс|дс|сс|ср|бс|жм|сб)/i,
|
||||
wide: /^(жексенбі|дүйсенбі|сейсенбі|сәрсенбі|бейсенбі|жұма|сенбі)/i,
|
||||
};
|
||||
const parseDayPatterns = {
|
||||
narrow: [/^ж/i, /^д/i, /^с/i, /^с/i, /^б/i, /^ж/i, /^с/i],
|
||||
short: [/^жс/i, /^дс/i, /^сс/i, /^ср/i, /^бс/i, /^жм/i, /^сб/i],
|
||||
any: [
|
||||
/^ж[ек]/i,
|
||||
/^д[үй]/i,
|
||||
/^сe[й]/i,
|
||||
/^сә[р]/i,
|
||||
/^б[ей]/i,
|
||||
/^ж[ұм]/i,
|
||||
/^се[н]/i,
|
||||
],
|
||||
};
|
||||
|
||||
const matchDayPeriodPatterns = {
|
||||
narrow:
|
||||
/^Т\.?\s?[ДК]\.?|түн ортасында|((түсте|таңертең|таңда|таңертең|таңмен|таң|күндіз|күн|кеште|кеш|түнде|түн)\.?)/i,
|
||||
wide: /^Т\.?\s?[ДК]\.?|түн ортасында|((түсте|таңертең|таңда|таңертең|таңмен|таң|күндіз|күн|кеште|кеш|түнде|түн)\.?)/i,
|
||||
any: /^Т\.?\s?[ДК]\.?|түн ортасында|((түсте|таңертең|таңда|таңертең|таңмен|таң|күндіз|күн|кеште|кеш|түнде|түн)\.?)/i,
|
||||
};
|
||||
const parseDayPeriodPatterns = {
|
||||
any: {
|
||||
am: /^ТД/i,
|
||||
pm: /^ТК/i,
|
||||
midnight: /^түн орта/i,
|
||||
noon: /^күндіз/i,
|
||||
morning: /таң/i,
|
||||
afternoon: /түс/i,
|
||||
evening: /кеш/i,
|
||||
night: /түн/i,
|
||||
},
|
||||
};
|
||||
|
||||
const match = (exports.match = {
|
||||
ordinalNumber: (0, _index2.buildMatchPatternFn)({
|
||||
matchPattern: matchOrdinalNumberPattern,
|
||||
parsePattern: parseOrdinalNumberPattern,
|
||||
valueCallback: (value) => parseInt(value, 10),
|
||||
}),
|
||||
|
||||
era: (0, _index.buildMatchFn)({
|
||||
matchPatterns: matchEraPatterns,
|
||||
defaultMatchWidth: "wide",
|
||||
parsePatterns: parseEraPatterns,
|
||||
defaultParseWidth: "any",
|
||||
}),
|
||||
|
||||
quarter: (0, _index.buildMatchFn)({
|
||||
matchPatterns: matchQuarterPatterns,
|
||||
defaultMatchWidth: "wide",
|
||||
parsePatterns: parseQuarterPatterns,
|
||||
defaultParseWidth: "any",
|
||||
valueCallback: (index) => index + 1,
|
||||
}),
|
||||
|
||||
month: (0, _index.buildMatchFn)({
|
||||
matchPatterns: matchMonthPatterns,
|
||||
defaultMatchWidth: "wide",
|
||||
parsePatterns: parseMonthPatterns,
|
||||
defaultParseWidth: "any",
|
||||
}),
|
||||
|
||||
day: (0, _index.buildMatchFn)({
|
||||
matchPatterns: matchDayPatterns,
|
||||
defaultMatchWidth: "wide",
|
||||
parsePatterns: parseDayPatterns,
|
||||
defaultParseWidth: "any",
|
||||
}),
|
||||
|
||||
dayPeriod: (0, _index.buildMatchFn)({
|
||||
matchPatterns: matchDayPeriodPatterns,
|
||||
defaultMatchWidth: "wide",
|
||||
parsePatterns: parseDayPeriodPatterns,
|
||||
defaultParseWidth: "any",
|
||||
}),
|
||||
});
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
import type { Match } from "../../types.js";
|
||||
export declare const match: Match;
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
import type { Match } from "../../types.js";
|
||||
export declare const match: Match;
|
||||
+157
@@ -0,0 +1,157 @@
|
||||
import { buildMatchFn } from "../../_lib/buildMatchFn.js";
|
||||
import { buildMatchPatternFn } from "../../_lib/buildMatchPatternFn.js";
|
||||
|
||||
const matchOrdinalNumberPattern = /^(\d+)(-?(ші|шы))?/i;
|
||||
const parseOrdinalNumberPattern = /\d+/i;
|
||||
|
||||
const matchEraPatterns = {
|
||||
narrow: /^((б )?з\.?\s?д\.?)/i,
|
||||
abbreviated: /^((б )?з\.?\s?д\.?)/i,
|
||||
wide: /^(біздің заманымызға дейін|біздің заманымыз|біздің заманымыздан)/i,
|
||||
};
|
||||
const parseEraPatterns = {
|
||||
any: [/^б/i, /^з/i],
|
||||
};
|
||||
|
||||
const matchQuarterPatterns = {
|
||||
narrow: /^[1234]/i,
|
||||
abbreviated: /^[1234](-?ші)? тоқ.?/i,
|
||||
wide: /^[1234](-?ші)? тоқсан/i,
|
||||
};
|
||||
const parseQuarterPatterns = {
|
||||
any: [/1/i, /2/i, /3/i, /4/i],
|
||||
};
|
||||
|
||||
const matchMonthPatterns = {
|
||||
narrow: /^(қ|а|н|с|м|мау|ш|т|қыр|қаз|қар|ж)/i,
|
||||
abbreviated: /^(қаң|ақп|нау|сәу|мам|мау|шіл|там|қыр|қаз|қар|жел)/i,
|
||||
wide: /^(қаңтар|ақпан|наурыз|сәуір|мамыр|маусым|шілде|тамыз|қыркүйек|қазан|қараша|желтоқсан)/i,
|
||||
};
|
||||
const parseMonthPatterns = {
|
||||
narrow: [
|
||||
/^қ/i,
|
||||
/^а/i,
|
||||
/^н/i,
|
||||
/^с/i,
|
||||
/^м/i,
|
||||
/^м/i,
|
||||
/^ш/i,
|
||||
/^т/i,
|
||||
/^қ/i,
|
||||
/^қ/i,
|
||||
/^қ/i,
|
||||
/^ж/i,
|
||||
],
|
||||
|
||||
abbreviated: [
|
||||
/^қаң/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,
|
||||
],
|
||||
};
|
||||
|
||||
const matchDayPatterns = {
|
||||
narrow: /^(ж|д|с|с|б|ж|с)/i,
|
||||
short: /^(жс|дс|сс|ср|бс|жм|сб)/i,
|
||||
wide: /^(жексенбі|дүйсенбі|сейсенбі|сәрсенбі|бейсенбі|жұма|сенбі)/i,
|
||||
};
|
||||
const parseDayPatterns = {
|
||||
narrow: [/^ж/i, /^д/i, /^с/i, /^с/i, /^б/i, /^ж/i, /^с/i],
|
||||
short: [/^жс/i, /^дс/i, /^сс/i, /^ср/i, /^бс/i, /^жм/i, /^сб/i],
|
||||
any: [
|
||||
/^ж[ек]/i,
|
||||
/^д[үй]/i,
|
||||
/^сe[й]/i,
|
||||
/^сә[р]/i,
|
||||
/^б[ей]/i,
|
||||
/^ж[ұм]/i,
|
||||
/^се[н]/i,
|
||||
],
|
||||
};
|
||||
|
||||
const matchDayPeriodPatterns = {
|
||||
narrow:
|
||||
/^Т\.?\s?[ДК]\.?|түн ортасында|((түсте|таңертең|таңда|таңертең|таңмен|таң|күндіз|күн|кеште|кеш|түнде|түн)\.?)/i,
|
||||
wide: /^Т\.?\s?[ДК]\.?|түн ортасында|((түсте|таңертең|таңда|таңертең|таңмен|таң|күндіз|күн|кеште|кеш|түнде|түн)\.?)/i,
|
||||
any: /^Т\.?\s?[ДК]\.?|түн ортасында|((түсте|таңертең|таңда|таңертең|таңмен|таң|күндіз|күн|кеште|кеш|түнде|түн)\.?)/i,
|
||||
};
|
||||
const parseDayPeriodPatterns = {
|
||||
any: {
|
||||
am: /^ТД/i,
|
||||
pm: /^ТК/i,
|
||||
midnight: /^түн орта/i,
|
||||
noon: /^күндіз/i,
|
||||
morning: /таң/i,
|
||||
afternoon: /түс/i,
|
||||
evening: /кеш/i,
|
||||
night: /түн/i,
|
||||
},
|
||||
};
|
||||
|
||||
export const match = {
|
||||
ordinalNumber: buildMatchPatternFn({
|
||||
matchPattern: matchOrdinalNumberPattern,
|
||||
parsePattern: parseOrdinalNumberPattern,
|
||||
valueCallback: (value) => parseInt(value, 10),
|
||||
}),
|
||||
|
||||
era: buildMatchFn({
|
||||
matchPatterns: matchEraPatterns,
|
||||
defaultMatchWidth: "wide",
|
||||
parsePatterns: parseEraPatterns,
|
||||
defaultParseWidth: "any",
|
||||
}),
|
||||
|
||||
quarter: buildMatchFn({
|
||||
matchPatterns: matchQuarterPatterns,
|
||||
defaultMatchWidth: "wide",
|
||||
parsePatterns: parseQuarterPatterns,
|
||||
defaultParseWidth: "any",
|
||||
valueCallback: (index) => 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: "wide",
|
||||
parsePatterns: parseDayPeriodPatterns,
|
||||
defaultParseWidth: "any",
|
||||
}),
|
||||
};
|
||||
+831
@@ -0,0 +1,831 @@
|
||||
(() => {
|
||||
var _window$dateFns;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);}function _slicedToArray(arr, i) {return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();}function _nonIterableRest() {throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(o, minLen) {if (!o) return;if (typeof o === "string") return _arrayLikeToArray(o, minLen);var n = Object.prototype.toString.call(o).slice(8, -1);if (n === "Object" && o.constructor) n = o.constructor.name;if (n === "Map" || n === "Set") return Array.from(o);if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);}function _arrayLikeToArray(arr, len) {if (len == null || len > arr.length) len = arr.length;for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];return arr2;}function _iterableToArrayLimit(r, l) {var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];if (null != t) {var e,n,i,u,a = [],f = !0,o = !1;try {if (i = (t = t.call(r)).next, 0 === l) {if (Object(t) !== t) return;f = !1;} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);} catch (r) {o = !0, n = r;} finally {try {if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;} finally {if (o) throw n;}}return a;}}function _arrayWithHoles(arr) {if (Array.isArray(arr)) return arr;}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);}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/kk/_lib/formatDistance.js
|
||||
function declension(scheme, count) {
|
||||
if (scheme.one && count === 1)
|
||||
return scheme.one;
|
||||
var rem10 = count % 10;
|
||||
var rem100 = count % 100;
|
||||
if (rem10 === 1 && rem100 !== 11) {
|
||||
return scheme.singularNominative.replace("{{count}}", String(count));
|
||||
} else if (rem10 >= 2 && rem10 <= 4 && (rem100 < 10 || rem100 > 20)) {
|
||||
return scheme.singularGenitive.replace("{{count}}", String(count));
|
||||
} else {
|
||||
return scheme.pluralGenitive.replace("{{count}}", String(count));
|
||||
}
|
||||
}
|
||||
var formatDistanceLocale = {
|
||||
lessThanXSeconds: {
|
||||
regular: {
|
||||
one: "1 \u0441\u0435\u043A\u0443\u043D\u0434\u0442\u0430\u043D \u0430\u0437",
|
||||
singularNominative: "{{count}} \u0441\u0435\u043A\u0443\u043D\u0434\u0442\u0430\u043D \u0430\u0437",
|
||||
singularGenitive: "{{count}} \u0441\u0435\u043A\u0443\u043D\u0434\u0442\u0430\u043D \u0430\u0437",
|
||||
pluralGenitive: "{{count}} \u0441\u0435\u043A\u0443\u043D\u0434\u0442\u0430\u043D \u0430\u0437"
|
||||
},
|
||||
future: {
|
||||
one: "\u0431\u0456\u0440 \u0441\u0435\u043A\u0443\u043D\u0434\u0442\u0430\u043D \u043A\u0435\u0439\u0456\u043D",
|
||||
singularNominative: "{{count}} \u0441\u0435\u043A\u0443\u043D\u0434\u0442\u0430\u043D \u043A\u0435\u0439\u0456\u043D",
|
||||
singularGenitive: "{{count}} \u0441\u0435\u043A\u0443\u043D\u0434\u0442\u0430\u043D \u043A\u0435\u0439\u0456\u043D",
|
||||
pluralGenitive: "{{count}} \u0441\u0435\u043A\u0443\u043D\u0434\u0442\u0430\u043D \u043A\u0435\u0439\u0456\u043D"
|
||||
}
|
||||
},
|
||||
xSeconds: {
|
||||
regular: {
|
||||
singularNominative: "{{count}} \u0441\u0435\u043A\u0443\u043D\u0434",
|
||||
singularGenitive: "{{count}} \u0441\u0435\u043A\u0443\u043D\u0434",
|
||||
pluralGenitive: "{{count}} \u0441\u0435\u043A\u0443\u043D\u0434"
|
||||
},
|
||||
past: {
|
||||
singularNominative: "{{count}} \u0441\u0435\u043A\u0443\u043D\u0434 \u0431\u04B1\u0440\u044B\u043D",
|
||||
singularGenitive: "{{count}} \u0441\u0435\u043A\u0443\u043D\u0434 \u0431\u04B1\u0440\u044B\u043D",
|
||||
pluralGenitive: "{{count}} \u0441\u0435\u043A\u0443\u043D\u0434 \u0431\u04B1\u0440\u044B\u043D"
|
||||
},
|
||||
future: {
|
||||
singularNominative: "{{count}} \u0441\u0435\u043A\u0443\u043D\u0434\u0442\u0430\u043D \u043A\u0435\u0439\u0456\u043D",
|
||||
singularGenitive: "{{count}} \u0441\u0435\u043A\u0443\u043D\u0434\u0442\u0430\u043D \u043A\u0435\u0439\u0456\u043D",
|
||||
pluralGenitive: "{{count}} \u0441\u0435\u043A\u0443\u043D\u0434\u0442\u0430\u043D \u043A\u0435\u0439\u0456\u043D"
|
||||
}
|
||||
},
|
||||
halfAMinute: function halfAMinute(options) {
|
||||
if (options !== null && options !== void 0 && options.addSuffix) {
|
||||
if (options.comparison && options.comparison > 0) {
|
||||
return "\u0436\u0430\u0440\u0442\u044B \u043C\u0438\u043D\u0443\u0442 \u0456\u0448\u0456\u043D\u0434\u0435";
|
||||
} else {
|
||||
return "\u0436\u0430\u0440\u0442\u044B \u043C\u0438\u043D\u0443\u0442 \u0431\u04B1\u0440\u044B\u043D";
|
||||
}
|
||||
}
|
||||
return "\u0436\u0430\u0440\u0442\u044B \u043C\u0438\u043D\u0443\u0442";
|
||||
},
|
||||
lessThanXMinutes: {
|
||||
regular: {
|
||||
one: "1 \u043C\u0438\u043D\u0443\u0442\u0442\u0430\u043D \u0430\u0437",
|
||||
singularNominative: "{{count}} \u043C\u0438\u043D\u0443\u0442\u0442\u0430\u043D \u0430\u0437",
|
||||
singularGenitive: "{{count}} \u043C\u0438\u043D\u0443\u0442\u0442\u0430\u043D \u0430\u0437",
|
||||
pluralGenitive: "{{count}} \u043C\u0438\u043D\u0443\u0442\u0442\u0430\u043D \u0430\u0437"
|
||||
},
|
||||
future: {
|
||||
one: "\u043C\u0438\u043D\u0443\u0442\u0442\u0430\u043D \u043A\u0435\u043C ",
|
||||
singularNominative: "{{count}} \u043C\u0438\u043D\u0443\u0442\u0442\u0430\u043D \u043A\u0435\u043C",
|
||||
singularGenitive: "{{count}} \u043C\u0438\u043D\u0443\u0442\u0442\u0430\u043D \u043A\u0435\u043C",
|
||||
pluralGenitive: "{{count}} \u043C\u0438\u043D\u0443\u0442\u0442\u0430\u043D \u043A\u0435\u043C"
|
||||
}
|
||||
},
|
||||
xMinutes: {
|
||||
regular: {
|
||||
singularNominative: "{{count}} \u043C\u0438\u043D\u0443\u0442",
|
||||
singularGenitive: "{{count}} \u043C\u0438\u043D\u0443\u0442",
|
||||
pluralGenitive: "{{count}} \u043C\u0438\u043D\u0443\u0442"
|
||||
},
|
||||
past: {
|
||||
singularNominative: "{{count}} \u043C\u0438\u043D\u0443\u0442 \u0431\u04B1\u0440\u044B\u043D",
|
||||
singularGenitive: "{{count}} \u043C\u0438\u043D\u0443\u0442 \u0431\u04B1\u0440\u044B\u043D",
|
||||
pluralGenitive: "{{count}} \u043C\u0438\u043D\u0443\u0442 \u0431\u04B1\u0440\u044B\u043D"
|
||||
},
|
||||
future: {
|
||||
singularNominative: "{{count}} \u043C\u0438\u043D\u0443\u0442\u0442\u0430\u043D \u043A\u0435\u0439\u0456\u043D",
|
||||
singularGenitive: "{{count}} \u043C\u0438\u043D\u0443\u0442\u0442\u0430\u043D \u043A\u0435\u0439\u0456\u043D",
|
||||
pluralGenitive: "{{count}} \u043C\u0438\u043D\u0443\u0442\u0442\u0430\u043D \u043A\u0435\u0439\u0456\u043D"
|
||||
}
|
||||
},
|
||||
aboutXHours: {
|
||||
regular: {
|
||||
singularNominative: "\u0448\u0430\u043C\u0430\u043C\u0435\u043D {{count}} \u0441\u0430\u0493\u0430\u0442",
|
||||
singularGenitive: "\u0448\u0430\u043C\u0430\u043C\u0435\u043D {{count}} \u0441\u0430\u0493\u0430\u0442",
|
||||
pluralGenitive: "\u0448\u0430\u043C\u0430\u043C\u0435\u043D {{count}} \u0441\u0430\u0493\u0430\u0442"
|
||||
},
|
||||
future: {
|
||||
singularNominative: "\u0448\u0430\u043C\u0430\u043C\u0435\u043D {{count}} \u0441\u0430\u0493\u0430\u0442\u0442\u0430\u043D \u043A\u0435\u0439\u0456\u043D",
|
||||
singularGenitive: "\u0448\u0430\u043C\u0430\u043C\u0435\u043D {{count}} \u0441\u0430\u0493\u0430\u0442\u0442\u0430\u043D \u043A\u0435\u0439\u0456\u043D",
|
||||
pluralGenitive: "\u0448\u0430\u043C\u0430\u043C\u0435\u043D {{count}} \u0441\u0430\u0493\u0430\u0442\u0442\u0430\u043D \u043A\u0435\u0439\u0456\u043D"
|
||||
}
|
||||
},
|
||||
xHours: {
|
||||
regular: {
|
||||
singularNominative: "{{count}} \u0441\u0430\u0493\u0430\u0442",
|
||||
singularGenitive: "{{count}} \u0441\u0430\u0493\u0430\u0442",
|
||||
pluralGenitive: "{{count}} \u0441\u0430\u0493\u0430\u0442"
|
||||
}
|
||||
},
|
||||
xDays: {
|
||||
regular: {
|
||||
singularNominative: "{{count}} \u043A\u04AF\u043D",
|
||||
singularGenitive: "{{count}} \u043A\u04AF\u043D",
|
||||
pluralGenitive: "{{count}} \u043A\u04AF\u043D"
|
||||
},
|
||||
future: {
|
||||
singularNominative: "{{count}} \u043A\u04AF\u043D\u043D\u0435\u043D \u043A\u0435\u0439\u0456\u043D",
|
||||
singularGenitive: "{{count}} \u043A\u04AF\u043D\u043D\u0435\u043D \u043A\u0435\u0439\u0456\u043D",
|
||||
pluralGenitive: "{{count}} \u043A\u04AF\u043D\u043D\u0435\u043D \u043A\u0435\u0439\u0456\u043D"
|
||||
}
|
||||
},
|
||||
aboutXWeeks: {
|
||||
type: "weeks",
|
||||
one: "\u0448\u0430\u043C\u0430\u043C\u0435\u043D 1 \u0430\u043F\u0442\u0430",
|
||||
other: "\u0448\u0430\u043C\u0430\u043C\u0435\u043D {{count}} \u0430\u043F\u0442\u0430"
|
||||
},
|
||||
xWeeks: {
|
||||
type: "weeks",
|
||||
one: "1 \u0430\u043F\u0442\u0430",
|
||||
other: "{{count}} \u0430\u043F\u0442\u0430"
|
||||
},
|
||||
aboutXMonths: {
|
||||
regular: {
|
||||
singularNominative: "\u0448\u0430\u043C\u0430\u043C\u0435\u043D {{count}} \u0430\u0439",
|
||||
singularGenitive: "\u0448\u0430\u043C\u0430\u043C\u0435\u043D {{count}} \u0430\u0439",
|
||||
pluralGenitive: "\u0448\u0430\u043C\u0430\u043C\u0435\u043D {{count}} \u0430\u0439"
|
||||
},
|
||||
future: {
|
||||
singularNominative: "\u0448\u0430\u043C\u0430\u043C\u0435\u043D {{count}} \u0430\u0439\u0434\u0430\u043D \u043A\u0435\u0439\u0456\u043D",
|
||||
singularGenitive: "\u0448\u0430\u043C\u0430\u043C\u0435\u043D {{count}} \u0430\u0439\u0434\u0430\u043D \u043A\u0435\u0439\u0456\u043D",
|
||||
pluralGenitive: "\u0448\u0430\u043C\u0430\u043C\u0435\u043D {{count}} \u0430\u0439\u0434\u0430\u043D \u043A\u0435\u0439\u0456\u043D"
|
||||
}
|
||||
},
|
||||
xMonths: {
|
||||
regular: {
|
||||
singularNominative: "{{count}} \u0430\u0439",
|
||||
singularGenitive: "{{count}} \u0430\u0439",
|
||||
pluralGenitive: "{{count}} \u0430\u0439"
|
||||
}
|
||||
},
|
||||
aboutXYears: {
|
||||
regular: {
|
||||
singularNominative: "\u0448\u0430\u043C\u0430\u043C\u0435\u043D {{count}} \u0436\u044B\u043B",
|
||||
singularGenitive: "\u0448\u0430\u043C\u0430\u043C\u0435\u043D {{count}} \u0436\u044B\u043B",
|
||||
pluralGenitive: "\u0448\u0430\u043C\u0430\u043C\u0435\u043D {{count}} \u0436\u044B\u043B"
|
||||
},
|
||||
future: {
|
||||
singularNominative: "\u0448\u0430\u043C\u0430\u043C\u0435\u043D {{count}} \u0436\u044B\u043B\u0434\u0430\u043D \u043A\u0435\u0439\u0456\u043D",
|
||||
singularGenitive: "\u0448\u0430\u043C\u0430\u043C\u0435\u043D {{count}} \u0436\u044B\u043B\u0434\u0430\u043D \u043A\u0435\u0439\u0456\u043D",
|
||||
pluralGenitive: "\u0448\u0430\u043C\u0430\u043C\u0435\u043D {{count}} \u0436\u044B\u043B\u0434\u0430\u043D \u043A\u0435\u0439\u0456\u043D"
|
||||
}
|
||||
},
|
||||
xYears: {
|
||||
regular: {
|
||||
singularNominative: "{{count}} \u0436\u044B\u043B",
|
||||
singularGenitive: "{{count}} \u0436\u044B\u043B",
|
||||
pluralGenitive: "{{count}} \u0436\u044B\u043B"
|
||||
},
|
||||
future: {
|
||||
singularNominative: "{{count}} \u0436\u044B\u043B\u0434\u0430\u043D \u043A\u0435\u0439\u0456\u043D",
|
||||
singularGenitive: "{{count}} \u0436\u044B\u043B\u0434\u0430\u043D \u043A\u0435\u0439\u0456\u043D",
|
||||
pluralGenitive: "{{count}} \u0436\u044B\u043B\u0434\u0430\u043D \u043A\u0435\u0439\u0456\u043D"
|
||||
}
|
||||
},
|
||||
overXYears: {
|
||||
regular: {
|
||||
singularNominative: "{{count}} \u0436\u044B\u043B\u0434\u0430\u043D \u0430\u0441\u0442\u0430\u043C",
|
||||
singularGenitive: "{{count}} \u0436\u044B\u043B\u0434\u0430\u043D \u0430\u0441\u0442\u0430\u043C",
|
||||
pluralGenitive: "{{count}} \u0436\u044B\u043B\u0434\u0430\u043D \u0430\u0441\u0442\u0430\u043C"
|
||||
},
|
||||
future: {
|
||||
singularNominative: "{{count}} \u0436\u044B\u043B\u0434\u0430\u043D \u0430\u0441\u0442\u0430\u043C",
|
||||
singularGenitive: "{{count}} \u0436\u044B\u043B\u0434\u0430\u043D \u0430\u0441\u0442\u0430\u043C",
|
||||
pluralGenitive: "{{count}} \u0436\u044B\u043B\u0434\u0430\u043D \u0430\u0441\u0442\u0430\u043C"
|
||||
}
|
||||
},
|
||||
almostXYears: {
|
||||
regular: {
|
||||
singularNominative: "{{count}} \u0436\u044B\u043B\u0493\u0430 \u0436\u0430\u049B\u044B\u043D",
|
||||
singularGenitive: "{{count}} \u0436\u044B\u043B\u0493\u0430 \u0436\u0430\u049B\u044B\u043D",
|
||||
pluralGenitive: "{{count}} \u0436\u044B\u043B\u0493\u0430 \u0436\u0430\u049B\u044B\u043D"
|
||||
},
|
||||
future: {
|
||||
singularNominative: "{{count}} \u0436\u044B\u043B\u0434\u0430\u043D \u043A\u0435\u0439\u0456\u043D",
|
||||
singularGenitive: "{{count}} \u0436\u044B\u043B\u0434\u0430\u043D \u043A\u0435\u0439\u0456\u043D",
|
||||
pluralGenitive: "{{count}} \u0436\u044B\u043B\u0434\u0430\u043D \u043A\u0435\u0439\u0456\u043D"
|
||||
}
|
||||
}
|
||||
};
|
||||
var formatDistance = function formatDistance(token, count, options) {
|
||||
var tokenValue = formatDistanceLocale[token];
|
||||
if (typeof tokenValue === "function")
|
||||
return tokenValue(options);
|
||||
if (tokenValue.type === "weeks") {
|
||||
return count === 1 ? tokenValue.one : tokenValue.other.replace("{{count}}", String(count));
|
||||
}
|
||||
if (options !== null && options !== void 0 && options.addSuffix) {
|
||||
if (options.comparison && options.comparison > 0) {
|
||||
if (tokenValue.future) {
|
||||
return declension(tokenValue.future, count);
|
||||
} else {
|
||||
return declension(tokenValue.regular, count) + " \u043A\u0435\u0439\u0456\u043D";
|
||||
}
|
||||
} else {
|
||||
if (tokenValue.past) {
|
||||
return declension(tokenValue.past, count);
|
||||
} else {
|
||||
return declension(tokenValue.regular, count) + " \u0431\u04B1\u0440\u044B\u043D";
|
||||
}
|
||||
}
|
||||
} else {
|
||||
return declension(tokenValue.regular, count);
|
||||
}
|
||||
};
|
||||
|
||||
// lib/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;
|
||||
};
|
||||
}
|
||||
|
||||
// lib/locale/kk/_lib/formatLong.js
|
||||
var dateFormats = {
|
||||
full: "EEEE, do MMMM y '\u0436.'",
|
||||
long: "do MMMM y '\u0436.'",
|
||||
medium: "d MMM y '\u0436.'",
|
||||
short: "dd.MM.yyyy"
|
||||
};
|
||||
var timeFormats = {
|
||||
full: "H:mm:ss zzzz",
|
||||
long: "H:mm:ss z",
|
||||
medium: "H:mm:ss",
|
||||
short: "H:mm"
|
||||
};
|
||||
var dateTimeFormats = {
|
||||
any: "{{date}}, {{time}}"
|
||||
};
|
||||
var formatLong = {
|
||||
date: buildFormatLongFn({
|
||||
formats: dateFormats,
|
||||
defaultWidth: "full"
|
||||
}),
|
||||
time: buildFormatLongFn({
|
||||
formats: timeFormats,
|
||||
defaultWidth: "full"
|
||||
}),
|
||||
dateTime: buildFormatLongFn({
|
||||
formats: dateTimeFormats,
|
||||
defaultWidth: "any"
|
||||
})
|
||||
};
|
||||
|
||||
// lib/constants.js
|
||||
var daysInWeek = 7;
|
||||
var daysInYear = 365.2425;
|
||||
var maxTime = Math.pow(10, 8) * 24 * 60 * 60 * 1000;
|
||||
var minTime = -maxTime;
|
||||
var millisecondsInWeek = 604800000;
|
||||
var millisecondsInDay = 86400000;
|
||||
var millisecondsInMinute = 60000;
|
||||
var millisecondsInHour = 3600000;
|
||||
var millisecondsInSecond = 1000;
|
||||
var minutesInYear = 525600;
|
||||
var minutesInMonth = 43200;
|
||||
var minutesInDay = 1440;
|
||||
var minutesInHour = 60;
|
||||
var monthsInQuarter = 3;
|
||||
var monthsInYear = 12;
|
||||
var quartersInYear = 4;
|
||||
var secondsInHour = 3600;
|
||||
var secondsInMinute = 60;
|
||||
var secondsInDay = secondsInHour * 24;
|
||||
var secondsInWeek = secondsInDay * 7;
|
||||
var secondsInYear = secondsInDay * daysInYear;
|
||||
var secondsInMonth = secondsInYear / 12;
|
||||
var secondsInQuarter = secondsInMonth * 3;
|
||||
var constructFromSymbol = Symbol.for("constructDateFrom");
|
||||
|
||||
// lib/constructFrom.js
|
||||
function constructFrom(date, value) {
|
||||
if (typeof date === "function")
|
||||
return date(value);
|
||||
if (date && _typeof(date) === "object" && constructFromSymbol in date)
|
||||
return date[constructFromSymbol](value);
|
||||
if (date instanceof Date)
|
||||
return new date.constructor(value);
|
||||
return new Date(value);
|
||||
}
|
||||
|
||||
// lib/_lib/normalizeDates.js
|
||||
function normalizeDates(context) {for (var _len = arguments.length, dates = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {dates[_key - 1] = arguments[_key];}
|
||||
var normalize = constructFrom.bind(null, context || dates.find(function (date) {return _typeof(date) === "object";}));
|
||||
return dates.map(normalize);
|
||||
}
|
||||
|
||||
// lib/_lib/defaultOptions.js
|
||||
function getDefaultOptions() {
|
||||
return defaultOptions;
|
||||
}
|
||||
function setDefaultOptions(newOptions) {
|
||||
defaultOptions = newOptions;
|
||||
}
|
||||
var defaultOptions = {};
|
||||
|
||||
// lib/toDate.js
|
||||
function toDate(argument, context) {
|
||||
return constructFrom(context || argument, argument);
|
||||
}
|
||||
|
||||
// lib/startOfWeek.js
|
||||
function startOfWeek(date, options) {var _ref, _ref2, _ref3, _options$weekStartsOn, _options$locale, _defaultOptions3$loca;
|
||||
var defaultOptions3 = getDefaultOptions();
|
||||
var weekStartsOn = (_ref = (_ref2 = (_ref3 = (_options$weekStartsOn = options === null || options === void 0 ? void 0 : options.weekStartsOn) !== null && _options$weekStartsOn !== void 0 ? _options$weekStartsOn : options === null || options === void 0 || (_options$locale = options.locale) === null || _options$locale === void 0 || (_options$locale = _options$locale.options) === null || _options$locale === void 0 ? void 0 : _options$locale.weekStartsOn) !== null && _ref3 !== void 0 ? _ref3 : defaultOptions3.weekStartsOn) !== null && _ref2 !== void 0 ? _ref2 : (_defaultOptions3$loca = defaultOptions3.locale) === null || _defaultOptions3$loca === void 0 || (_defaultOptions3$loca = _defaultOptions3$loca.options) === null || _defaultOptions3$loca === void 0 ? void 0 : _defaultOptions3$loca.weekStartsOn) !== null && _ref !== void 0 ? _ref : 0;
|
||||
var _date = toDate(date, options === null || options === void 0 ? void 0 : options.in);
|
||||
var day = _date.getDay();
|
||||
var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
|
||||
_date.setDate(_date.getDate() - diff);
|
||||
_date.setHours(0, 0, 0, 0);
|
||||
return _date;
|
||||
}
|
||||
|
||||
// lib/isSameWeek.js
|
||||
function isSameWeek(laterDate, earlierDate, options) {
|
||||
var _normalizeDates = normalizeDates(options === null || options === void 0 ? void 0 : options.in, laterDate, earlierDate),_normalizeDates2 = _slicedToArray(_normalizeDates, 2),laterDate_ = _normalizeDates2[0],earlierDate_ = _normalizeDates2[1];
|
||||
return +startOfWeek(laterDate_, options) === +startOfWeek(earlierDate_, options);
|
||||
}
|
||||
|
||||
// lib/locale/kk/_lib/formatRelative.js
|
||||
function _lastWeek(day) {
|
||||
var weekday = accusativeWeekdays[day];
|
||||
return "'\u04E9\u0442\u043A\u0435\u043D " + weekday + " \u0441\u0430\u0493\u0430\u0442' p'-\u0434\u0435'";
|
||||
}
|
||||
function thisWeek(day) {
|
||||
var weekday = accusativeWeekdays[day];
|
||||
return "'" + weekday + " \u0441\u0430\u0493\u0430\u0442' p'-\u0434\u0435'";
|
||||
}
|
||||
function _nextWeek(day) {
|
||||
var weekday = accusativeWeekdays[day];
|
||||
return "'\u043A\u0435\u043B\u0435\u0441\u0456 " + weekday + " \u0441\u0430\u0493\u0430\u0442' p'-\u0434\u0435'";
|
||||
}
|
||||
var accusativeWeekdays = [
|
||||
"\u0436\u0435\u043A\u0441\u0435\u043D\u0431\u0456\u0434\u0435",
|
||||
"\u0434\u04AF\u0439\u0441\u0435\u043D\u0431\u0456\u0434\u0435",
|
||||
"\u0441\u0435\u0439\u0441\u0435\u043D\u0431\u0456\u0434\u0435",
|
||||
"\u0441\u04D9\u0440\u0441\u0435\u043D\u0431\u0456\u0434\u0435",
|
||||
"\u0431\u0435\u0439\u0441\u0435\u043D\u0431\u0456\u0434\u0435",
|
||||
"\u0436\u04B1\u043C\u0430\u0434\u0430",
|
||||
"\u0441\u0435\u043D\u0431\u0456\u0434\u0435"];
|
||||
|
||||
var formatRelativeLocale = {
|
||||
lastWeek: function lastWeek(date, baseDate, options) {
|
||||
var day = date.getDay();
|
||||
if (isSameWeek(date, baseDate, options)) {
|
||||
return thisWeek(day);
|
||||
} else {
|
||||
return _lastWeek(day);
|
||||
}
|
||||
},
|
||||
yesterday: "'\u043A\u0435\u0448\u0435 \u0441\u0430\u0493\u0430\u0442' p'-\u0434\u0435'",
|
||||
today: "'\u0431\u04AF\u0433\u0456\u043D \u0441\u0430\u0493\u0430\u0442' p'-\u0434\u0435'",
|
||||
tomorrow: "'\u0435\u0440\u0442\u0435\u04A3 \u0441\u0430\u0493\u0430\u0442' p'-\u0434\u0435'",
|
||||
nextWeek: function nextWeek(date, baseDate, options) {
|
||||
var day = date.getDay();
|
||||
if (isSameWeek(date, baseDate, options)) {
|
||||
return thisWeek(day);
|
||||
} else {
|
||||
return _nextWeek(day);
|
||||
}
|
||||
},
|
||||
other: "P"
|
||||
};
|
||||
var formatRelative = function formatRelative(token, date, baseDate, options) {
|
||||
var format = formatRelativeLocale[token];
|
||||
if (typeof format === "function") {
|
||||
return format(date, baseDate, options);
|
||||
}
|
||||
return format;
|
||||
};
|
||||
|
||||
// lib/locale/_lib/buildLocalizeFn.js
|
||||
function buildLocalizeFn(args) {
|
||||
return function (value, options) {
|
||||
var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone";
|
||||
var valuesArray;
|
||||
if (context === "formatting" && args.formattingValues) {
|
||||
var defaultWidth = args.defaultFormattingWidth || args.defaultWidth;
|
||||
var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth;
|
||||
valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth];
|
||||
} else {
|
||||
var _defaultWidth = args.defaultWidth;
|
||||
var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth;
|
||||
valuesArray = args.values[_width] || args.values[_defaultWidth];
|
||||
}
|
||||
var index = args.argumentCallback ? args.argumentCallback(value) : value;
|
||||
return valuesArray[index];
|
||||
};
|
||||
}
|
||||
|
||||
// lib/locale/kk/_lib/localize.js
|
||||
var eraValues = {
|
||||
narrow: ["\u0431.\u0437.\u0434.", "\u0431.\u0437."],
|
||||
abbreviated: ["\u0431.\u0437.\u0434.", "\u0431.\u0437."],
|
||||
wide: ["\u0431\u0456\u0437\u0434\u0456\u04A3 \u0437\u0430\u043C\u0430\u043D\u044B\u043C\u044B\u0437\u0493\u0430 \u0434\u0435\u0439\u0456\u043D", "\u0431\u0456\u0437\u0434\u0456\u04A3 \u0437\u0430\u043C\u0430\u043D\u044B\u043C\u044B\u0437"]
|
||||
};
|
||||
var quarterValues = {
|
||||
narrow: ["1", "2", "3", "4"],
|
||||
abbreviated: ["1-\u0448\u0456 \u0442\u043E\u049B.", "2-\u0448\u0456 \u0442\u043E\u049B.", "3-\u0448\u0456 \u0442\u043E\u049B.", "4-\u0448\u0456 \u0442\u043E\u049B."],
|
||||
wide: ["1-\u0448\u0456 \u0442\u043E\u049B\u0441\u0430\u043D", "2-\u0448\u0456 \u0442\u043E\u049B\u0441\u0430\u043D", "3-\u0448\u0456 \u0442\u043E\u049B\u0441\u0430\u043D", "4-\u0448\u0456 \u0442\u043E\u049B\u0441\u0430\u043D"]
|
||||
};
|
||||
var monthValues = {
|
||||
narrow: ["\u049A", "\u0410", "\u041D", "\u0421", "\u041C", "\u041C", "\u0428", "\u0422", "\u049A", "\u049A", "\u049A", "\u0416"],
|
||||
abbreviated: [
|
||||
"\u049B\u0430\u04A3",
|
||||
"\u0430\u049B\u043F",
|
||||
"\u043D\u0430\u0443",
|
||||
"\u0441\u04D9\u0443",
|
||||
"\u043C\u0430\u043C",
|
||||
"\u043C\u0430\u0443",
|
||||
"\u0448\u0456\u043B",
|
||||
"\u0442\u0430\u043C",
|
||||
"\u049B\u044B\u0440",
|
||||
"\u049B\u0430\u0437",
|
||||
"\u049B\u0430\u0440",
|
||||
"\u0436\u0435\u043B"],
|
||||
|
||||
wide: [
|
||||
"\u049B\u0430\u04A3\u0442\u0430\u0440",
|
||||
"\u0430\u049B\u043F\u0430\u043D",
|
||||
"\u043D\u0430\u0443\u0440\u044B\u0437",
|
||||
"\u0441\u04D9\u0443\u0456\u0440",
|
||||
"\u043C\u0430\u043C\u044B\u0440",
|
||||
"\u043C\u0430\u0443\u0441\u044B\u043C",
|
||||
"\u0448\u0456\u043B\u0434\u0435",
|
||||
"\u0442\u0430\u043C\u044B\u0437",
|
||||
"\u049B\u044B\u0440\u043A\u04AF\u0439\u0435\u043A",
|
||||
"\u049B\u0430\u0437\u0430\u043D",
|
||||
"\u049B\u0430\u0440\u0430\u0448\u0430",
|
||||
"\u0436\u0435\u043B\u0442\u043E\u049B\u0441\u0430\u043D"]
|
||||
|
||||
};
|
||||
var formattingMonthValues = {
|
||||
narrow: ["\u049A", "\u0410", "\u041D", "\u0421", "\u041C", "\u041C", "\u0428", "\u0422", "\u049A", "\u049A", "\u049A", "\u0416"],
|
||||
abbreviated: [
|
||||
"\u049B\u0430\u04A3",
|
||||
"\u0430\u049B\u043F",
|
||||
"\u043D\u0430\u0443",
|
||||
"\u0441\u04D9\u0443",
|
||||
"\u043C\u0430\u043C",
|
||||
"\u043C\u0430\u0443",
|
||||
"\u0448\u0456\u043B",
|
||||
"\u0442\u0430\u043C",
|
||||
"\u049B\u044B\u0440",
|
||||
"\u049B\u0430\u0437",
|
||||
"\u049B\u0430\u0440",
|
||||
"\u0436\u0435\u043B"],
|
||||
|
||||
wide: [
|
||||
"\u049B\u0430\u04A3\u0442\u0430\u0440",
|
||||
"\u0430\u049B\u043F\u0430\u043D",
|
||||
"\u043D\u0430\u0443\u0440\u044B\u0437",
|
||||
"\u0441\u04D9\u0443\u0456\u0440",
|
||||
"\u043C\u0430\u043C\u044B\u0440",
|
||||
"\u043C\u0430\u0443\u0441\u044B\u043C",
|
||||
"\u0448\u0456\u043B\u0434\u0435",
|
||||
"\u0442\u0430\u043C\u044B\u0437",
|
||||
"\u049B\u044B\u0440\u043A\u04AF\u0439\u0435\u043A",
|
||||
"\u049B\u0430\u0437\u0430\u043D",
|
||||
"\u049B\u0430\u0440\u0430\u0448\u0430",
|
||||
"\u0436\u0435\u043B\u0442\u043E\u049B\u0441\u0430\u043D"]
|
||||
|
||||
};
|
||||
var dayValues = {
|
||||
narrow: ["\u0416", "\u0414", "\u0421", "\u0421", "\u0411", "\u0416", "\u0421"],
|
||||
short: ["\u0436\u0441", "\u0434\u0441", "\u0441\u0441", "\u0441\u0440", "\u0431\u0441", "\u0436\u043C", "\u0441\u0431"],
|
||||
abbreviated: ["\u0436\u0441", "\u0434\u0441", "\u0441\u0441", "\u0441\u0440", "\u0431\u0441", "\u0436\u043C", "\u0441\u0431"],
|
||||
wide: [
|
||||
"\u0436\u0435\u043A\u0441\u0435\u043D\u0431\u0456",
|
||||
"\u0434\u04AF\u0439\u0441\u0435\u043D\u0431\u0456",
|
||||
"\u0441\u0435\u0439\u0441\u0435\u043D\u0431\u0456",
|
||||
"\u0441\u04D9\u0440\u0441\u0435\u043D\u0431\u0456",
|
||||
"\u0431\u0435\u0439\u0441\u0435\u043D\u0431\u0456",
|
||||
"\u0436\u04B1\u043C\u0430",
|
||||
"\u0441\u0435\u043D\u0431\u0456"]
|
||||
|
||||
};
|
||||
var dayPeriodValues = {
|
||||
narrow: {
|
||||
am: "\u0422\u0414",
|
||||
pm: "\u0422\u041A",
|
||||
midnight: "\u0442\u04AF\u043D \u043E\u0440\u0442\u0430\u0441\u044B",
|
||||
noon: "\u0442\u04AF\u0441",
|
||||
morning: "\u0442\u0430\u04A3",
|
||||
afternoon: "\u043A\u04AF\u043D\u0434\u0456\u0437",
|
||||
evening: "\u043A\u0435\u0448",
|
||||
night: "\u0442\u04AF\u043D"
|
||||
},
|
||||
wide: {
|
||||
am: "\u0422\u0414",
|
||||
pm: "\u0422\u041A",
|
||||
midnight: "\u0442\u04AF\u043D \u043E\u0440\u0442\u0430\u0441\u044B",
|
||||
noon: "\u0442\u04AF\u0441",
|
||||
morning: "\u0442\u0430\u04A3",
|
||||
afternoon: "\u043A\u04AF\u043D\u0434\u0456\u0437",
|
||||
evening: "\u043A\u0435\u0448",
|
||||
night: "\u0442\u04AF\u043D"
|
||||
}
|
||||
};
|
||||
var formattingDayPeriodValues = {
|
||||
narrow: {
|
||||
am: "\u0422\u0414",
|
||||
pm: "\u0422\u041A",
|
||||
midnight: "\u0442\u04AF\u043D \u043E\u0440\u0442\u0430\u0441\u044B\u043D\u0434\u0430",
|
||||
noon: "\u0442\u04AF\u0441",
|
||||
morning: "\u0442\u0430\u04A3",
|
||||
afternoon: "\u043A\u04AF\u043D",
|
||||
evening: "\u043A\u0435\u0448",
|
||||
night: "\u0442\u04AF\u043D"
|
||||
},
|
||||
wide: {
|
||||
am: "\u0422\u0414",
|
||||
pm: "\u0422\u041A",
|
||||
midnight: "\u0442\u04AF\u043D \u043E\u0440\u0442\u0430\u0441\u044B\u043D\u0434\u0430",
|
||||
noon: "\u0442\u04AF\u0441\u0442\u0435",
|
||||
morning: "\u0442\u0430\u04A3\u0435\u0440\u0442\u0435\u04A3",
|
||||
afternoon: "\u043A\u04AF\u043D\u0434\u0456\u0437",
|
||||
evening: "\u043A\u0435\u0448\u0442\u0435",
|
||||
night: "\u0442\u04AF\u043D\u0434\u0435"
|
||||
}
|
||||
};
|
||||
var suffixes = {
|
||||
0: "-\u0448\u0456",
|
||||
1: "-\u0448\u0456",
|
||||
2: "-\u0448\u0456",
|
||||
3: "-\u0448\u0456",
|
||||
4: "-\u0448\u0456",
|
||||
5: "-\u0448\u0456",
|
||||
6: "-\u0448\u044B",
|
||||
7: "-\u0448\u0456",
|
||||
8: "-\u0448\u0456",
|
||||
9: "-\u0448\u044B",
|
||||
10: "-\u0448\u044B",
|
||||
20: "-\u0448\u044B",
|
||||
30: "-\u0448\u044B",
|
||||
40: "-\u0448\u044B",
|
||||
50: "-\u0448\u0456",
|
||||
60: "-\u0448\u044B",
|
||||
70: "-\u0448\u0456",
|
||||
80: "-\u0448\u0456",
|
||||
90: "-\u0448\u044B",
|
||||
100: "-\u0448\u0456"
|
||||
};
|
||||
var ordinalNumber = function ordinalNumber(dirtyNumber, _options) {
|
||||
var number = Number(dirtyNumber);
|
||||
var mod10 = number % 10;
|
||||
var b = number >= 100 ? 100 : null;
|
||||
var suffix = suffixes[number] || suffixes[mod10] || b && suffixes[b] || "";
|
||||
return number + suffix;
|
||||
};
|
||||
var localize = {
|
||||
ordinalNumber: ordinalNumber,
|
||||
era: buildLocalizeFn({
|
||||
values: eraValues,
|
||||
defaultWidth: "wide"
|
||||
}),
|
||||
quarter: buildLocalizeFn({
|
||||
values: quarterValues,
|
||||
defaultWidth: "wide",
|
||||
argumentCallback: function argumentCallback(quarter) {return quarter - 1;}
|
||||
}),
|
||||
month: buildLocalizeFn({
|
||||
values: monthValues,
|
||||
defaultWidth: "wide",
|
||||
formattingValues: formattingMonthValues,
|
||||
defaultFormattingWidth: "wide"
|
||||
}),
|
||||
day: buildLocalizeFn({
|
||||
values: dayValues,
|
||||
defaultWidth: "wide"
|
||||
}),
|
||||
dayPeriod: buildLocalizeFn({
|
||||
values: dayPeriodValues,
|
||||
defaultWidth: "any",
|
||||
formattingValues: formattingDayPeriodValues,
|
||||
defaultFormattingWidth: "wide"
|
||||
})
|
||||
};
|
||||
|
||||
// lib/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;
|
||||
}
|
||||
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);});
|
||||
var value;
|
||||
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 };
|
||||
};
|
||||
}
|
||||
function findKey(object, predicate) {
|
||||
for (var key in object) {
|
||||
if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) {
|
||||
return key;
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
function findIndex(array, predicate) {
|
||||
for (var key = 0; key < array.length; key++) {
|
||||
if (predicate(array[key])) {
|
||||
return key;
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
// lib/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;
|
||||
var matchedString = matchResult[0];
|
||||
var parseResult = string.match(args.parsePattern);
|
||||
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 };
|
||||
};
|
||||
}
|
||||
|
||||
// lib/locale/kk/_lib/match.js
|
||||
var matchOrdinalNumberPattern = /^(\d+)(-?(ші|шы))?/i;
|
||||
var parseOrdinalNumberPattern = /\d+/i;
|
||||
var matchEraPatterns = {
|
||||
narrow: /^((б )?з\.?\s?д\.?)/i,
|
||||
abbreviated: /^((б )?з\.?\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],
|
||||
|
||||
abbreviated: [
|
||||
/^қаң/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,
|
||||
wide: /^(жексенбі|дүйсенбі|сейсенбі|сәрсенбі|бейсенбі|жұма|сенбі)/i
|
||||
};
|
||||
var parseDayPatterns = {
|
||||
narrow: [/^ж/i, /^д/i, /^с/i, /^с/i, /^б/i, /^ж/i, /^с/i],
|
||||
short: [/^жс/i, /^дс/i, /^сс/i, /^ср/i, /^бс/i, /^жм/i, /^сб/i],
|
||||
any: [
|
||||
/^ж[ек]/i,
|
||||
/^д[үй]/i,
|
||||
/^сe[й]/i,
|
||||
/^сә[р]/i,
|
||||
/^б[ей]/i,
|
||||
/^ж[ұм]/i,
|
||||
/^се[н]/i]
|
||||
|
||||
};
|
||||
var matchDayPeriodPatterns = {
|
||||
narrow: /^Т\.?\s?[ДК]\.?|түн ортасында|((түсте|таңертең|таңда|таңертең|таңмен|таң|күндіз|күн|кеште|кеш|түнде|түн)\.?)/i,
|
||||
wide: /^Т\.?\s?[ДК]\.?|түн ортасында|((түсте|таңертең|таңда|таңертең|таңмен|таң|күндіз|күн|кеште|кеш|түнде|түн)\.?)/i,
|
||||
any: /^Т\.?\s?[ДК]\.?|түн ортасында|((түсте|таңертең|таңда|таңертең|таңмен|таң|күндіз|күн|кеште|кеш|түнде|түн)\.?)/i
|
||||
};
|
||||
var parseDayPeriodPatterns = {
|
||||
any: {
|
||||
am: /^ТД/i,
|
||||
pm: /^ТК/i,
|
||||
midnight: /^түн орта/i,
|
||||
noon: /^күндіз/i,
|
||||
morning: /таң/i,
|
||||
afternoon: /түс/i,
|
||||
evening: /кеш/i,
|
||||
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: "wide",
|
||||
parsePatterns: parseDayPeriodPatterns,
|
||||
defaultParseWidth: "any"
|
||||
})
|
||||
};
|
||||
|
||||
// lib/locale/kk.js
|
||||
var kk = {
|
||||
code: "kk",
|
||||
formatDistance: formatDistance,
|
||||
formatLong: formatLong,
|
||||
formatRelative: formatRelative,
|
||||
localize: localize,
|
||||
match: match,
|
||||
options: {
|
||||
weekStartsOn: 1,
|
||||
firstWeekContainsDate: 1
|
||||
}
|
||||
};
|
||||
|
||||
// lib/locale/kk/cdn.js
|
||||
window.dateFns = _objectSpread(_objectSpread({},
|
||||
window.dateFns), {}, {
|
||||
locale: _objectSpread(_objectSpread({}, (_window$dateFns =
|
||||
window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, {
|
||||
kk: kk }) });
|
||||
|
||||
|
||||
|
||||
//# debugId=CE0108605B17309A64756E2164756E21
|
||||
|
||||
//# sourceMappingURL=cdn.js.map
|
||||
})();
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"cdn.js","names":["__defProp","Object","defineProperty","__export","target","all","name","get","enumerable","configurable","set","newValue","declension","scheme","count","one","rem10","rem100","singularNominative","replace","String","singularGenitive","pluralGenitive","formatDistanceLocale","lessThanXSeconds","regular","future","xSeconds","past","halfAMinute","options","addSuffix","comparison","lessThanXMinutes","xMinutes","aboutXHours","xHours","xDays","aboutXWeeks","type","other","xWeeks","aboutXMonths","xMonths","aboutXYears","xYears","overXYears","almostXYears","formatDistance","token","tokenValue","buildFormatLongFn","args","arguments","length","undefined","width","defaultWidth","format","formats","dateFormats","full","long","medium","short","timeFormats","dateTimeFormats","any","formatLong","date","time","dateTime","daysInWeek","daysInYear","maxTime","Math","pow","minTime","millisecondsInWeek","millisecondsInDay","millisecondsInMinute","millisecondsInHour","millisecondsInSecond","minutesInYear","minutesInMonth","minutesInDay","minutesInHour","monthsInQuarter","monthsInYear","quartersInYear","secondsInHour","secondsInMinute","secondsInDay","secondsInWeek","secondsInYear","secondsInMonth","secondsInQuarter","constructFromSymbol","Symbol","for","constructFrom","value","_typeof","Date","constructor","normalizeDates","context","_len","dates","Array","_key","normalize","bind","find","map","getDefaultOptions","defaultOptions","setDefaultOptions","newOptions","toDate","argument","startOfWeek","_ref","_ref2","_ref3","_options$weekStartsOn","_options$locale","_defaultOptions3$loca","defaultOptions3","weekStartsOn","locale","_date","in","day","getDay","diff","setDate","getDate","setHours","isSameWeek","laterDate","earlierDate","_normalizeDates","_normalizeDates2","_slicedToArray","laterDate_","earlierDate_","lastWeek","weekday","accusativeWeekdays","thisWeek","nextWeek","formatRelativeLocale","baseDate","yesterday","today","tomorrow","formatRelative","buildLocalizeFn","valuesArray","formattingValues","defaultFormattingWidth","values","index","argumentCallback","eraValues","narrow","abbreviated","wide","quarterValues","monthValues","formattingMonthValues","dayValues","dayPeriodValues","am","pm","midnight","noon","morning","afternoon","evening","night","formattingDayPeriodValues","suffixes","ordinalNumber","dirtyNumber","_options","number","Number","mod10","b","suffix","localize","era","quarter","month","dayPeriod","buildMatchFn","string","matchPattern","matchPatterns","defaultMatchWidth","matchResult","match","matchedString","parsePatterns","defaultParseWidth","key","isArray","findIndex","pattern","test","findKey","valueCallback","rest","slice","object","predicate","prototype","hasOwnProperty","call","array","buildMatchPatternFn","parseResult","parsePattern","matchOrdinalNumberPattern","parseOrdinalNumberPattern","matchEraPatterns","parseEraPatterns","matchQuarterPatterns","parseQuarterPatterns","matchMonthPatterns","parseMonthPatterns","matchDayPatterns","parseDayPatterns","matchDayPeriodPatterns","parseDayPeriodPatterns","parseInt","kk","code","firstWeekContainsDate","window","dateFns","_objectSpread","_window$dateFns"],"sources":["cdn.js"],"sourcesContent":["var __defProp = Object.defineProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, {\n get: all[name],\n enumerable: true,\n configurable: true,\n set: (newValue) => all[name] = () => newValue\n });\n};\n\n// lib/locale/kk/_lib/formatDistance.js\nfunction declension(scheme, count) {\n if (scheme.one && count === 1)\n return scheme.one;\n const rem10 = count % 10;\n const rem100 = count % 100;\n if (rem10 === 1 && rem100 !== 11) {\n return scheme.singularNominative.replace(\"{{count}}\", String(count));\n } else if (rem10 >= 2 && rem10 <= 4 && (rem100 < 10 || rem100 > 20)) {\n return scheme.singularGenitive.replace(\"{{count}}\", String(count));\n } else {\n return scheme.pluralGenitive.replace(\"{{count}}\", String(count));\n }\n}\nvar formatDistanceLocale = {\n lessThanXSeconds: {\n regular: {\n one: \"1 \\u0441\\u0435\\u043A\\u0443\\u043D\\u0434\\u0442\\u0430\\u043D \\u0430\\u0437\",\n singularNominative: \"{{count}} \\u0441\\u0435\\u043A\\u0443\\u043D\\u0434\\u0442\\u0430\\u043D \\u0430\\u0437\",\n singularGenitive: \"{{count}} \\u0441\\u0435\\u043A\\u0443\\u043D\\u0434\\u0442\\u0430\\u043D \\u0430\\u0437\",\n pluralGenitive: \"{{count}} \\u0441\\u0435\\u043A\\u0443\\u043D\\u0434\\u0442\\u0430\\u043D \\u0430\\u0437\"\n },\n future: {\n one: \"\\u0431\\u0456\\u0440 \\u0441\\u0435\\u043A\\u0443\\u043D\\u0434\\u0442\\u0430\\u043D \\u043A\\u0435\\u0439\\u0456\\u043D\",\n singularNominative: \"{{count}} \\u0441\\u0435\\u043A\\u0443\\u043D\\u0434\\u0442\\u0430\\u043D \\u043A\\u0435\\u0439\\u0456\\u043D\",\n singularGenitive: \"{{count}} \\u0441\\u0435\\u043A\\u0443\\u043D\\u0434\\u0442\\u0430\\u043D \\u043A\\Line truncated
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
(()=>{var z;function S(G,J){var X=Object.keys(G);if(Object.getOwnPropertySymbols){var Z=Object.getOwnPropertySymbols(G);J&&(Z=Z.filter(function(B){return Object.getOwnPropertyDescriptor(G,B).enumerable})),X.push.apply(X,Z)}return X}function I(G){for(var J=1;J<arguments.length;J++){var X=arguments[J]!=null?arguments[J]:{};J%2?S(Object(X),!0).forEach(function(Z){F(G,Z,X[Z])}):Object.getOwnPropertyDescriptors?Object.defineProperties(G,Object.getOwnPropertyDescriptors(X)):S(Object(X)).forEach(function(Z){Object.defineProperty(G,Z,Object.getOwnPropertyDescriptor(X,Z))})}return G}function F(G,J,X){if(J=w(J),J in G)Object.defineProperty(G,J,{value:X,enumerable:!0,configurable:!0,writable:!0});else G[J]=X;return G}function w(G){var J=v(G,"string");return K(J)=="symbol"?J:String(J)}function v(G,J){if(K(G)!="object"||!G)return G;var X=G[Symbol.toPrimitive];if(X!==void 0){var Z=X.call(G,J||"default");if(K(Z)!="object")return Z;throw new TypeError("@@toPrimitive must return a primitive value.")}return(J==="string"?String:Number)(G)}function b(G,J){return _(G)||k(G,J)||f(G,J)||h()}function h(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function f(G,J){if(!G)return;if(typeof G==="string")return W(G,J);var X=Object.prototype.toString.call(G).slice(8,-1);if(X==="Object"&&G.constructor)X=G.constructor.name;if(X==="Map"||X==="Set")return Array.from(G);if(X==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(X))return W(G,J)}function W(G,J){if(J==null||J>G.length)J=G.length;for(var X=0,Z=new Array(J);X<J;X++)Z[X]=G[X];return Z}function k(G,J){var X=G==null?null:typeof Symbol!="undefined"&&G[Symbol.iterator]||G["@@iterator"];if(X!=null){var Z,B,C,U,H=[],Y=!0,Q=!1;try{if(C=(X=X.call(G)).next,J===0){if(Object(X)!==X)return;Y=!1}else for(;!(Y=(Z=C.call(X)).done)&&(H.push(Z.value),H.length!==J);Y=!0);}catch(q){Q=!0,B=q}finally{try{if(!Y&&X.return!=null&&(U=X.return(),Object(U)!==U))return}finally{if(Q)throw B}}return H}}function _(G){if(Array.isArray(G))return G}function K(G){return K=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(J){return typeof J}:function(J){return J&&typeof Symbol=="function"&&J.constructor===Symbol&&J!==Symbol.prototype?"symbol":typeof J},K(G)}var g=Object.defineProperty,FG=function G(J,X){for(var Z in X)g(J,Z,{get:X[Z],enumerable:!0,configurable:!0,set:function B(C){return X[Z]=function(){return C}}})};function N(G,J){if(G.one&&J===1)return G.one;var X=J%10,Z=J%100;if(X===1&&Z!==11)return G.singularNominative.replace("{{count}}",String(J));else if(X>=2&&X<=4&&(Z<10||Z>20))return G.singularGenitive.replace("{{count}}",String(J));else return G.pluralGenitive.replace("{{count}}",String(J))}var m={lessThanXSeconds:{regular:{one:"1 \u0441\u0435\u043A\u0443\u043D\u0434\u0442\u0430\u043D \u0430\u0437",singularNominative:"{{count}} \u0441\u0435\u043A\u0443\u043D\u0434\u0442\u0430\u043D \u0430\u0437",singularGenitive:"{{count}} \u0441\u0435\u043A\u0443\u043D\u0434\u0442\u0430\u043D \u0430\u0437",pluralGenitive:"{{count}} \u0441\u0435\u043A\u0443\u043D\u0434\u0442\u0430\u043D \u0430\u0437"},future:{one:"\u0431\u0456\u0440 \u0441\u0435\u043A\u0443\u043D\u0434\u0442\u0430\u043D \u043A\u0435\u0439\u0456\u043D",singularNominative:"{{count}} \u0441\u0435\u043A\u0443\u043D\u0434\u0442\u0430\u043D \u043A\u0435\u0439\u0456\u043D",singularGenitive:"{{count}} \u0441\u0435\u043A\u0443\u043D\u0434\u0442\u0430\u043D \u043A\u0435\u0439\u0456\u043D",pluralGenitive:"{{count}} \u0441\u0435\u043A\u0443\u043D\u0434\u0442\u0430\u043D \u043A\u0435\u0439\u0456\u043D"}},xSeconds:{regular:{singularNominative:"{{count}} \u0441\u0435\u043A\u0443\u043D\u0434",singularGenitive:"{{count}} \u0441\u0435\u043A\u0443\u043D\u0434",pluralGenitive:"{{count}} \u0441\u0435\u043A\u0443\u043D\u0434"},past:{singularNominative:"{{count}} \u0441\u0435\u043A\u0443\u043D\u0434 \u0431\u04B1\u0440\u044B\u043D",singularGenitive:"{{count}} \u0441\u0435\u043A\u0443\u043D\u0434 \u0431\u04B1\u0440\u044B\u043D",pluralGenitive:"{{count}} \u0441\u0435\u043A\u0443\u043D\u0434 \u0431\u04B1\u0440\u044B\u043D"},future:{singularNominative:"{{count}} \u0441\u0435\u043A\u0443\u043D\u0434\u0442\u0430\u043D \u043A\u0435\u0439\u0456\u043D",singularGenitive:"{{count}} \u0441\u0435\u043A\u0443\u043D\u0434\u0442\u0430\u043D \u043A\u0435\u0439\u0456\u043D",pluralGenitive:"{{count}} \u0441\u0435\u043A\u0443\u043D\u0434\u0442\u0430\u043D \u043A\u0435\u0439\u0456\u043D"}},halfAMinute:function G(J){if(J!==null&&J!==void 0&&J.addSuffix)if(J.comparison&&J.comparison>0)return"\u0436\u0430\u0440\u0442\u044B \u043C\u0438\u043D\u0443\u0442 \u0456\u0448\u0456\u043D\u0434\u0435";else return"\u0436\u0430\u0440\u0442\u044B \u043C\u0438\u043D\u0443\u0442 \u0431\u04B1\u0440\u044B\u043D";return"\u0436\u0430\u0440\u0442\u044B \u043C\u0438\u043D\u0443\u0442"},lessThanXMinutes:{regular:{one:"1 \u043C\u0438\u043D\u0443\u0442\u0442\u0430\u043D \u0430\u0437"Line truncated
|
||||
|
||||
//# debugId=CBB89493BFC262CF64756E2164756E21
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["lib/locale/kk/cdn.js"],
|
||||
"sourcesContent": [
|
||||
"(() => {\nvar _window$dateFns;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);}function _slicedToArray(arr, i) {return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();}function _nonIterableRest() {throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");}function _unsupportedIterableToArray(o, minLen) {if (!o) return;if (typeof o === \"string\") return _arrayLikeToArray(o, minLen);var n = Object.prototype.toString.call(o).slice(8, -1);if (n === \"Object\" && o.constructor) n = o.constructor.name;if (n === \"Map\" || n === \"Set\") return Array.from(o);if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);}function _arrayLikeToArray(arr, len) {if (len == null || len > arr.length) len = arr.length;for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];return arr2;}function _iterableToArrayLimit(r, l) {var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"];if (null != t) {var e,n,i,u,a = [],f = !0,o = !1;try {if (i = (t = t.call(r)).next, 0 === l) {if (Object(t) !== t) return;f = !1;} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);} catch (r) {o = !0, n = r;} finally {try {if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;} finally {if (o) throw n;}}return a;}}function _arrayWithHoles(arr) {if (Array.isArray(arr)) return arr;}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);}var __defProp = Object.defineProperty;\nvar __export = function __export(target, all) {\n for (var name in all)\n __defProp(target, name, {\n get: all[name],\n enumerable: true,\n configurable: true,\n set: function set(newValue) {return all[name] = function () {return newValue;};}\n });\n};\n\n// lib/locale/kk/_lib/formatDistance.js\nfunction declension(scheme, count) {\n if (scheme.one && count === 1)\n return scheme.one;\n var rem10 = count % 10;\n var rem100 = count % 100;\n if (rem10 === 1 && rem100 !== 11) {\n return scheme.singularNominative.replace(\"{{count}}\", String(count));\n } else if (rem10 >= 2 && rem10 <= 4 && (rem100 < 10 || rem100 > 20)) {\n return scheme.singularGenitive.replace(\"{{count}}\", String(count));\n } else {\n return scheme.pluralGenitive.replace(\"{{count}}\", String(count));\n }\n}\nvar formatDistanceLocale = {\n lessThanXSeconds: {\n regular: {\n one: \"1 \\u0441\\u0435\\u043A\\u0443\\u043D\\u0434\\u0442\\u0430\\u043D \\u0430\\u0437\",\n singularNominative: \"{{count}} \\u0441\\u0435\\u043A\\u0443\\u043D\\u0434\\u0442\\u0430\\u043D \\u0430\\u0437\",\n singularGenitive: \"{{count}} \\u0441\\u0435\\u043A\\u0443\\u043D\\u0434\\u0442\\u0430\\u043D \\u0430\\u0437\",\n pluralGenitive: \"{{count}} \\u0441\\u0435\\u043A\\u0443\\u043D\\u0434\\u0442\\u0430\\u043D \\u0430\\u0437\"\n },\n future: {\n one: \"\\u0431\\u0456\\u0440 \\u0441\\u0435\\u043A\\u0443\\u043D\\u0434\\u0442\\u0430\\u043D \\u043A\\u0435\\u0439\\u0456\\u043D\",\n singularNominative: \"{{count}} \\u0441\\u0435\\u043A\\u0443\\u043D\\u0434\\u0442\\u0430\\u043D \\u043A\\u0435\\u0439\\u0456\\u043D\",\n singularGenitive: \"{{count}} \\u0441\\u0435\\u043A\\u0443\\u043D\\u0434\\u0442\\u0430\\u043D \\Line truncated
|
||||
],
|
||||
"mappings": "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 truncated
|
||||
"debugId": "CBB89493BFC262CF64756E2164756E21",
|
||||
"names": []
|
||||
}
|
||||
Reference in new issue
Block a user