400 lines
12 KiB
JavaScript
400 lines
12 KiB
JavaScript
// Metro module 3411 (f3412).
|
|
function $mk72087($env) {
|
|
return function(a0, a1) {
|
|
let r26, r75, r143, one, one2, one3, one4;
|
|
L84: {
|
|
const r7 = $env;
|
|
if (a1 && a1.addSuffix) {
|
|
if (a1.comparison && a1.comparison > 0) {
|
|
const r108 = r7[0];
|
|
if (r108.future) {
|
|
L81: {
|
|
const future = r108.future;
|
|
if (future.one !== void 0 && a0 === 1) {
|
|
one4 = future.one;
|
|
} else {
|
|
const r149 = a0 % 10;
|
|
const r151 = a0 % 100;
|
|
if (r149 === 1 && r151 !== 11) {
|
|
one4 = future.singularNominative.replace("{{count}}", String(a0));
|
|
} else {
|
|
L75: {
|
|
if (2 <= r149 && r149 <= 4) {
|
|
if (!(r151 < 10) && !(20 < r151)) {
|
|
break L75;
|
|
}
|
|
one4 = future.singularGenitive.replace("{{count}}", String(a0));
|
|
break L81;
|
|
}
|
|
}
|
|
one4 = future.pluralGenitive.replace("{{count}}", String(a0));
|
|
}
|
|
}
|
|
}
|
|
r143 = one4;
|
|
} else {
|
|
L66: {
|
|
const regular3 = r108.regular;
|
|
if (regular3.one !== void 0 && a0 === 1) {
|
|
one3 = regular3.one;
|
|
} else {
|
|
const r115 = a0 % 10;
|
|
const r117 = a0 % 100;
|
|
if (r115 === 1 && r117 !== 11) {
|
|
one3 = regular3.singularNominative.replace("{{count}}", String(a0));
|
|
} else {
|
|
L60: {
|
|
if (2 <= r115 && r115 <= 4) {
|
|
if (!(r117 < 10) && !(20 < r117)) {
|
|
break L60;
|
|
}
|
|
one3 = regular3.singularGenitive.replace("{{count}}", String(a0));
|
|
break L66;
|
|
}
|
|
}
|
|
one3 = regular3.pluralGenitive.replace("{{count}}", String(a0));
|
|
}
|
|
}
|
|
}
|
|
r143 = "за " + one3;
|
|
}
|
|
r75 = r143;
|
|
} else {
|
|
const r41 = r7[0];
|
|
if (r41.past) {
|
|
L49: {
|
|
const past = r41.past;
|
|
if (past.one !== void 0 && a0 === 1) {
|
|
one2 = past.one;
|
|
} else {
|
|
const r81 = a0 % 10;
|
|
const r83 = a0 % 100;
|
|
if (r81 === 1 && r83 !== 11) {
|
|
one2 = past.singularNominative.replace("{{count}}", String(a0));
|
|
} else {
|
|
L43: {
|
|
if (2 <= r81 && r81 <= 4) {
|
|
if (!(r83 < 10) && !(20 < r83)) {
|
|
break L43;
|
|
}
|
|
one2 = past.singularGenitive.replace("{{count}}", String(a0));
|
|
break L49;
|
|
}
|
|
}
|
|
one2 = past.pluralGenitive.replace("{{count}}", String(a0));
|
|
}
|
|
}
|
|
}
|
|
r75 = one2;
|
|
} else {
|
|
L34: {
|
|
const regular2 = r41.regular;
|
|
if (regular2.one !== void 0 && a0 === 1) {
|
|
one = regular2.one;
|
|
} else {
|
|
const r48 = a0 % 10;
|
|
const r50 = a0 % 100;
|
|
if (r48 === 1 && r50 !== 11) {
|
|
one = regular2.singularNominative.replace("{{count}}", String(a0));
|
|
} else {
|
|
L28: {
|
|
if (2 <= r48 && r48 <= 4) {
|
|
if (!(r50 < 10) && !(20 < r50)) {
|
|
break L28;
|
|
}
|
|
one = regular2.singularGenitive.replace("{{count}}", String(a0));
|
|
break L34;
|
|
}
|
|
}
|
|
one = regular2.pluralGenitive.replace("{{count}}", String(a0));
|
|
}
|
|
}
|
|
}
|
|
r75 = one + " тому";
|
|
}
|
|
}
|
|
r26 = r75;
|
|
} else {
|
|
const regular = r7[0].regular;
|
|
if (regular.one !== void 0 && a0 === 1) {
|
|
r26 = regular.one;
|
|
} else {
|
|
const r3 = a0 % 10;
|
|
const r18 = a0 % 100;
|
|
if (r3 === 1 && r18 !== 11) {
|
|
r26 = regular.singularNominative.replace("{{count}}", String(a0));
|
|
} else {
|
|
L10: {
|
|
if (2 <= r3 && r3 <= 4) {
|
|
if (!(r18 < 10) && !(20 < r18)) {
|
|
break L10;
|
|
}
|
|
r26 = regular.singularGenitive.replace("{{count}}", String(a0));
|
|
break L84;
|
|
}
|
|
}
|
|
r26 = regular.pluralGenitive.replace("{{count}}", String(a0));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return r26;
|
|
};
|
|
}
|
|
let c1759_0, c1760_0, c1761_0, c1762_0, c1763_0, c1764_0, c1765_0, c1766_0, c1767_0, c1768_0, c1769_0, c1770_0, c1771_0;
|
|
let c1756_0;
|
|
let env1757;
|
|
let env1758;
|
|
let env1759;
|
|
let env1760;
|
|
let env1761;
|
|
let env1762;
|
|
let env1763;
|
|
let env1764;
|
|
let env1765;
|
|
let env1766;
|
|
let env1767;
|
|
let env1768;
|
|
let env1769;
|
|
let env1770;
|
|
let env1771;
|
|
const r10 = {
|
|
regular: {
|
|
one: "менше секунди",
|
|
singularNominative: "менше {{count}} секунди",
|
|
singularGenitive: "менше {{count}} секунд",
|
|
pluralGenitive: "менше {{count}} секунд"
|
|
},
|
|
future: {
|
|
one: "менше, ніж за секунду",
|
|
singularNominative: "менше, ніж за {{count}} секунду",
|
|
singularGenitive: "менше, ніж за {{count}} секунди",
|
|
pluralGenitive: "менше, ніж за {{count}} секунд"
|
|
}
|
|
};
|
|
const r12 = env1757 = {};
|
|
const c1757_0 = r10;
|
|
const r14 = {
|
|
lessThanXSeconds: $mk72087(r12),
|
|
xSeconds: null,
|
|
halfAMinute: null,
|
|
lessThanXMinutes: null,
|
|
xMinutes: null,
|
|
aboutXHours: null,
|
|
xHours: null,
|
|
xDays: null,
|
|
aboutXWeeks: null,
|
|
xWeeks: null,
|
|
aboutXMonths: null,
|
|
xMonths: null,
|
|
aboutXYears: null,
|
|
xYears: null,
|
|
overXYears: null,
|
|
almostXYears: null
|
|
};
|
|
const r16 = {
|
|
regular: {
|
|
singularNominative: "{{count}} секунда",
|
|
singularGenitive: "{{count}} секунди",
|
|
pluralGenitive: "{{count}} секунд"
|
|
},
|
|
past: {
|
|
singularNominative: "{{count}} секунду тому",
|
|
singularGenitive: "{{count}} секунди тому",
|
|
pluralGenitive: "{{count}} секунд тому"
|
|
},
|
|
future: {
|
|
singularNominative: "за {{count}} секунду",
|
|
singularGenitive: "за {{count}} секунди",
|
|
pluralGenitive: "за {{count}} секунд"
|
|
}
|
|
};
|
|
const r19 = env1758 = {};
|
|
const c1758_0 = r16;
|
|
r14.xSeconds = $mk72087(r19);
|
|
r14.halfAMinute = function halfAtMinute(a0, a1) {
|
|
return a1 ? a1.addSuffix ? a1.comparison ? a1.comparison > 0 ? "за півхвилини" : "півхвилини тому" : "півхвилини тому" : "півхвилини" : "півхвилини";
|
|
};
|
|
const r23 = {
|
|
regular: {
|
|
one: "менше хвилини",
|
|
singularNominative: "менше {{count}} хвилини",
|
|
singularGenitive: "менше {{count}} хвилин",
|
|
pluralGenitive: "менше {{count}} хвилин"
|
|
},
|
|
future: {
|
|
one: "менше, ніж за хвилину",
|
|
singularNominative: "менше, ніж за {{count}} хвилину",
|
|
singularGenitive: "менше, ніж за {{count}} хвилини",
|
|
pluralGenitive: "менше, ніж за {{count}} хвилин"
|
|
}
|
|
};
|
|
const r25 = env1759 = {};
|
|
c1759_0 = r23;
|
|
r14.lessThanXMinutes = $mk72087(r25);
|
|
const r28 = {
|
|
regular: {
|
|
singularNominative: "{{count}} хвилина",
|
|
singularGenitive: "{{count}} хвилини",
|
|
pluralGenitive: "{{count}} хвилин"
|
|
},
|
|
past: {
|
|
singularNominative: "{{count}} хвилину тому",
|
|
singularGenitive: "{{count}} хвилини тому",
|
|
pluralGenitive: "{{count}} хвилин тому"
|
|
},
|
|
future: {
|
|
singularNominative: "за {{count}} хвилину",
|
|
singularGenitive: "за {{count}} хвилини",
|
|
pluralGenitive: "за {{count}} хвилин"
|
|
}
|
|
};
|
|
const r31 = env1760 = {};
|
|
c1760_0 = r28;
|
|
r14.xMinutes = $mk72087(r31);
|
|
const r34 = {
|
|
regular: {
|
|
singularNominative: "близько {{count}} години",
|
|
singularGenitive: "близько {{count}} годин",
|
|
pluralGenitive: "близько {{count}} годин"
|
|
},
|
|
future: {
|
|
singularNominative: "приблизно за {{count}} годину",
|
|
singularGenitive: "приблизно за {{count}} години",
|
|
pluralGenitive: "приблизно за {{count}} годин"
|
|
}
|
|
};
|
|
const r36 = env1761 = {};
|
|
c1761_0 = r34;
|
|
r14.aboutXHours = $mk72087(r36);
|
|
const r39 = {
|
|
regular: {
|
|
singularNominative: "{{count}} годину",
|
|
singularGenitive: "{{count}} години",
|
|
pluralGenitive: "{{count}} годин"
|
|
}
|
|
};
|
|
const r40 = env1762 = {};
|
|
c1762_0 = r39;
|
|
r14.xHours = $mk72087(r40);
|
|
const r43 = {
|
|
regular: {
|
|
singularNominative: "{{count}} день",
|
|
singularGenitive: "{{count}} днi",
|
|
pluralGenitive: "{{count}} днів"
|
|
}
|
|
};
|
|
const r44 = env1763 = {};
|
|
c1763_0 = r43;
|
|
r14.xDays = $mk72087(r44);
|
|
const r47 = {
|
|
regular: {
|
|
singularNominative: "близько {{count}} тижня",
|
|
singularGenitive: "близько {{count}} тижнів",
|
|
pluralGenitive: "близько {{count}} тижнів"
|
|
},
|
|
future: {
|
|
singularNominative: "приблизно за {{count}} тиждень",
|
|
singularGenitive: "приблизно за {{count}} тижні",
|
|
pluralGenitive: "приблизно за {{count}} тижнів"
|
|
}
|
|
};
|
|
const r49 = env1764 = {};
|
|
c1764_0 = r47;
|
|
r14.aboutXWeeks = $mk72087(r49);
|
|
const r52 = {
|
|
regular: {
|
|
singularNominative: "{{count}} тиждень",
|
|
singularGenitive: "{{count}} тижні",
|
|
pluralGenitive: "{{count}} тижнів"
|
|
}
|
|
};
|
|
const r53 = env1765 = {};
|
|
c1765_0 = r52;
|
|
r14.xWeeks = $mk72087(r53);
|
|
const r56 = {
|
|
regular: {
|
|
singularNominative: "близько {{count}} місяця",
|
|
singularGenitive: "близько {{count}} місяців",
|
|
pluralGenitive: "близько {{count}} місяців"
|
|
},
|
|
future: {
|
|
singularNominative: "приблизно за {{count}} місяць",
|
|
singularGenitive: "приблизно за {{count}} місяці",
|
|
pluralGenitive: "приблизно за {{count}} місяців"
|
|
}
|
|
};
|
|
const r58 = env1766 = {};
|
|
c1766_0 = r56;
|
|
r14.aboutXMonths = $mk72087(r58);
|
|
const r61 = {
|
|
regular: {
|
|
singularNominative: "{{count}} місяць",
|
|
singularGenitive: "{{count}} місяці",
|
|
pluralGenitive: "{{count}} місяців"
|
|
}
|
|
};
|
|
const r62 = env1767 = {};
|
|
c1767_0 = r61;
|
|
r14.xMonths = $mk72087(r62);
|
|
const r65 = {
|
|
regular: {
|
|
singularNominative: "близько {{count}} року",
|
|
singularGenitive: "близько {{count}} років",
|
|
pluralGenitive: "близько {{count}} років"
|
|
},
|
|
future: {
|
|
singularNominative: "приблизно за {{count}} рік",
|
|
singularGenitive: "приблизно за {{count}} роки",
|
|
pluralGenitive: "приблизно за {{count}} років"
|
|
}
|
|
};
|
|
const r67 = env1768 = {};
|
|
c1768_0 = r65;
|
|
r14.aboutXYears = $mk72087(r67);
|
|
const r70 = {
|
|
regular: {
|
|
singularNominative: "{{count}} рік",
|
|
singularGenitive: "{{count}} роки",
|
|
pluralGenitive: "{{count}} років"
|
|
}
|
|
};
|
|
const r71 = env1769 = {};
|
|
c1769_0 = r70;
|
|
r14.xYears = $mk72087(r71);
|
|
const r74 = {
|
|
regular: {
|
|
singularNominative: "більше {{count}} року",
|
|
singularGenitive: "більше {{count}} років",
|
|
pluralGenitive: "більше {{count}} років"
|
|
},
|
|
future: {
|
|
singularNominative: "більше, ніж за {{count}} рік",
|
|
singularGenitive: "більше, ніж за {{count}} роки",
|
|
pluralGenitive: "більше, ніж за {{count}} років"
|
|
}
|
|
};
|
|
const r76 = env1770 = {};
|
|
c1770_0 = r74;
|
|
r14.overXYears = $mk72087(r76);
|
|
const r79 = {
|
|
regular: {
|
|
singularNominative: "майже {{count}} рік",
|
|
singularGenitive: "майже {{count}} роки",
|
|
pluralGenitive: "майже {{count}} років"
|
|
},
|
|
future: {
|
|
singularNominative: "майже за {{count}} рік",
|
|
singularGenitive: "майже за {{count}} роки",
|
|
pluralGenitive: "майже за {{count}} років"
|
|
}
|
|
};
|
|
const r81 = env1771 = {};
|
|
c1771_0 = r79;
|
|
r14.almostXYears = $mk72087(r81);
|
|
c1756_0 = r14;
|
|
export default function formatDistance(a0, a1, a2) {
|
|
return c1756_0[a0](a1, a2 ? a2 : {});
|
|
};
|
|
module.exports = exports.default;
|