@scbt-ecom/ui 0.61.5 → 0.61.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{index-DGoeevV2.js → index-BKXpPQ1s.js} +2 -2
- package/dist/{index-DGoeevV2.js.map → index-BKXpPQ1s.js.map} +1 -1
- package/dist/{index-CeBEX-QQ.js → index-agLtUw8q.js} +736 -724
- package/dist/index-agLtUw8q.js.map +1 -0
- package/dist/ui.js +3 -3
- package/dist/{utils-Cc0awqbk.js → utils-DaXd4sci.js} +7 -7
- package/dist/{utils-Cc0awqbk.js.map → utils-DaXd4sci.js.map} +1 -1
- package/dist/validation.js +2 -2
- package/dist/widget.js +579 -570
- package/dist/widget.js.map +1 -1
- package/package.json +1 -1
- package/dist/index-CeBEX-QQ.js.map +0 -1
|
@@ -11,7 +11,7 @@ import { g as aO } from "./_commonjsHelpers-C6fGbg64.js";
|
|
|
11
11
|
import * as pa from "react-dom";
|
|
12
12
|
import hx, { createPortal as eu, flushSync as Fi } from "react-dom";
|
|
13
13
|
import { m as Ha } from "./mergeRefs-qDToYXtM.js";
|
|
14
|
-
import { t as Dt, c as Vn, g as Og, m as lO, e as mx, h as gx, j as vx, k as yx, l as cO, n as uO, q as ph, i as hh, r as dO, u as fO, v as pO, w as hO, x as vf, y as
|
|
14
|
+
import { t as Dt, c as Vn, g as Og, m as lO, e as mx, h as gx, j as vx, k as yx, l as cO, n as uO, q as ph, i as hh, r as dO, u as fO, v as pO, w as hO, x as vf, y as mO, A as gO, B as Ku, C as Ps, E as As, F as vO, a as bx, b as xx, d as Ti, D as Ys, p as wx, f as qu, z as Gu } from "./utils-DaXd4sci.js";
|
|
15
15
|
function kx(t, e, n) {
|
|
16
16
|
const r = Dt(t, n == null ? void 0 : n.in);
|
|
17
17
|
if (isNaN(e)) return Vn(t, NaN);
|
|
@@ -1818,571 +1818,17 @@ function nM(t, e) {
|
|
|
1818
1818
|
timeZoneName: "long"
|
|
1819
1819
|
}).format(e).slice(12);
|
|
1820
1820
|
}
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
return n === 1 && r !== 11 ? t.singularNominative.replace("{{count}}", String(e)) : n >= 2 && n <= 4 && (r < 10 || r > 20) ? t.singularGenitive.replace("{{count}}", String(e)) : t.pluralGenitive.replace("{{count}}", String(e));
|
|
1826
|
-
}
|
|
1827
|
-
function tn(t) {
|
|
1828
|
-
return (e, n) => n != null && n.addSuffix ? n.comparison && n.comparison > 0 ? t.future ? Ns(t.future, e) : "через " + Ns(t.regular, e) : t.past ? Ns(t.past, e) : Ns(t.regular, e) + " назад" : Ns(t.regular, e);
|
|
1829
|
-
}
|
|
1830
|
-
const rM = {
|
|
1831
|
-
lessThanXSeconds: tn({
|
|
1832
|
-
regular: {
|
|
1833
|
-
one: "меньше секунды",
|
|
1834
|
-
singularNominative: "меньше {{count}} секунды",
|
|
1835
|
-
singularGenitive: "меньше {{count}} секунд",
|
|
1836
|
-
pluralGenitive: "меньше {{count}} секунд"
|
|
1837
|
-
},
|
|
1838
|
-
future: {
|
|
1839
|
-
one: "меньше, чем через секунду",
|
|
1840
|
-
singularNominative: "меньше, чем через {{count}} секунду",
|
|
1841
|
-
singularGenitive: "меньше, чем через {{count}} секунды",
|
|
1842
|
-
pluralGenitive: "меньше, чем через {{count}} секунд"
|
|
1843
|
-
}
|
|
1844
|
-
}),
|
|
1845
|
-
xSeconds: tn({
|
|
1846
|
-
regular: {
|
|
1847
|
-
singularNominative: "{{count}} секунда",
|
|
1848
|
-
singularGenitive: "{{count}} секунды",
|
|
1849
|
-
pluralGenitive: "{{count}} секунд"
|
|
1850
|
-
},
|
|
1851
|
-
past: {
|
|
1852
|
-
singularNominative: "{{count}} секунду назад",
|
|
1853
|
-
singularGenitive: "{{count}} секунды назад",
|
|
1854
|
-
pluralGenitive: "{{count}} секунд назад"
|
|
1855
|
-
},
|
|
1856
|
-
future: {
|
|
1857
|
-
singularNominative: "через {{count}} секунду",
|
|
1858
|
-
singularGenitive: "через {{count}} секунды",
|
|
1859
|
-
pluralGenitive: "через {{count}} секунд"
|
|
1860
|
-
}
|
|
1861
|
-
}),
|
|
1862
|
-
halfAMinute: (t, e) => e != null && e.addSuffix ? e.comparison && e.comparison > 0 ? "через полминуты" : "полминуты назад" : "полминуты",
|
|
1863
|
-
lessThanXMinutes: tn({
|
|
1864
|
-
regular: {
|
|
1865
|
-
one: "меньше минуты",
|
|
1866
|
-
singularNominative: "меньше {{count}} минуты",
|
|
1867
|
-
singularGenitive: "меньше {{count}} минут",
|
|
1868
|
-
pluralGenitive: "меньше {{count}} минут"
|
|
1869
|
-
},
|
|
1870
|
-
future: {
|
|
1871
|
-
one: "меньше, чем через минуту",
|
|
1872
|
-
singularNominative: "меньше, чем через {{count}} минуту",
|
|
1873
|
-
singularGenitive: "меньше, чем через {{count}} минуты",
|
|
1874
|
-
pluralGenitive: "меньше, чем через {{count}} минут"
|
|
1875
|
-
}
|
|
1876
|
-
}),
|
|
1877
|
-
xMinutes: tn({
|
|
1878
|
-
regular: {
|
|
1879
|
-
singularNominative: "{{count}} минута",
|
|
1880
|
-
singularGenitive: "{{count}} минуты",
|
|
1881
|
-
pluralGenitive: "{{count}} минут"
|
|
1882
|
-
},
|
|
1883
|
-
past: {
|
|
1884
|
-
singularNominative: "{{count}} минуту назад",
|
|
1885
|
-
singularGenitive: "{{count}} минуты назад",
|
|
1886
|
-
pluralGenitive: "{{count}} минут назад"
|
|
1887
|
-
},
|
|
1888
|
-
future: {
|
|
1889
|
-
singularNominative: "через {{count}} минуту",
|
|
1890
|
-
singularGenitive: "через {{count}} минуты",
|
|
1891
|
-
pluralGenitive: "через {{count}} минут"
|
|
1892
|
-
}
|
|
1893
|
-
}),
|
|
1894
|
-
aboutXHours: tn({
|
|
1895
|
-
regular: {
|
|
1896
|
-
singularNominative: "около {{count}} часа",
|
|
1897
|
-
singularGenitive: "около {{count}} часов",
|
|
1898
|
-
pluralGenitive: "около {{count}} часов"
|
|
1899
|
-
},
|
|
1900
|
-
future: {
|
|
1901
|
-
singularNominative: "приблизительно через {{count}} час",
|
|
1902
|
-
singularGenitive: "приблизительно через {{count}} часа",
|
|
1903
|
-
pluralGenitive: "приблизительно через {{count}} часов"
|
|
1904
|
-
}
|
|
1905
|
-
}),
|
|
1906
|
-
xHours: tn({
|
|
1907
|
-
regular: {
|
|
1908
|
-
singularNominative: "{{count}} час",
|
|
1909
|
-
singularGenitive: "{{count}} часа",
|
|
1910
|
-
pluralGenitive: "{{count}} часов"
|
|
1911
|
-
}
|
|
1912
|
-
}),
|
|
1913
|
-
xDays: tn({
|
|
1914
|
-
regular: {
|
|
1915
|
-
singularNominative: "{{count}} день",
|
|
1916
|
-
singularGenitive: "{{count}} дня",
|
|
1917
|
-
pluralGenitive: "{{count}} дней"
|
|
1918
|
-
}
|
|
1919
|
-
}),
|
|
1920
|
-
aboutXWeeks: tn({
|
|
1921
|
-
regular: {
|
|
1922
|
-
singularNominative: "около {{count}} недели",
|
|
1923
|
-
singularGenitive: "около {{count}} недель",
|
|
1924
|
-
pluralGenitive: "около {{count}} недель"
|
|
1925
|
-
},
|
|
1926
|
-
future: {
|
|
1927
|
-
singularNominative: "приблизительно через {{count}} неделю",
|
|
1928
|
-
singularGenitive: "приблизительно через {{count}} недели",
|
|
1929
|
-
pluralGenitive: "приблизительно через {{count}} недель"
|
|
1930
|
-
}
|
|
1931
|
-
}),
|
|
1932
|
-
xWeeks: tn({
|
|
1933
|
-
regular: {
|
|
1934
|
-
singularNominative: "{{count}} неделя",
|
|
1935
|
-
singularGenitive: "{{count}} недели",
|
|
1936
|
-
pluralGenitive: "{{count}} недель"
|
|
1937
|
-
}
|
|
1938
|
-
}),
|
|
1939
|
-
aboutXMonths: tn({
|
|
1940
|
-
regular: {
|
|
1941
|
-
singularNominative: "около {{count}} месяца",
|
|
1942
|
-
singularGenitive: "около {{count}} месяцев",
|
|
1943
|
-
pluralGenitive: "около {{count}} месяцев"
|
|
1944
|
-
},
|
|
1945
|
-
future: {
|
|
1946
|
-
singularNominative: "приблизительно через {{count}} месяц",
|
|
1947
|
-
singularGenitive: "приблизительно через {{count}} месяца",
|
|
1948
|
-
pluralGenitive: "приблизительно через {{count}} месяцев"
|
|
1949
|
-
}
|
|
1950
|
-
}),
|
|
1951
|
-
xMonths: tn({
|
|
1952
|
-
regular: {
|
|
1953
|
-
singularNominative: "{{count}} месяц",
|
|
1954
|
-
singularGenitive: "{{count}} месяца",
|
|
1955
|
-
pluralGenitive: "{{count}} месяцев"
|
|
1956
|
-
}
|
|
1957
|
-
}),
|
|
1958
|
-
aboutXYears: tn({
|
|
1959
|
-
regular: {
|
|
1960
|
-
singularNominative: "около {{count}} года",
|
|
1961
|
-
singularGenitive: "около {{count}} лет",
|
|
1962
|
-
pluralGenitive: "около {{count}} лет"
|
|
1963
|
-
},
|
|
1964
|
-
future: {
|
|
1965
|
-
singularNominative: "приблизительно через {{count}} год",
|
|
1966
|
-
singularGenitive: "приблизительно через {{count}} года",
|
|
1967
|
-
pluralGenitive: "приблизительно через {{count}} лет"
|
|
1968
|
-
}
|
|
1969
|
-
}),
|
|
1970
|
-
xYears: tn({
|
|
1971
|
-
regular: {
|
|
1972
|
-
singularNominative: "{{count}} год",
|
|
1973
|
-
singularGenitive: "{{count}} года",
|
|
1974
|
-
pluralGenitive: "{{count}} лет"
|
|
1975
|
-
}
|
|
1976
|
-
}),
|
|
1977
|
-
overXYears: tn({
|
|
1978
|
-
regular: {
|
|
1979
|
-
singularNominative: "больше {{count}} года",
|
|
1980
|
-
singularGenitive: "больше {{count}} лет",
|
|
1981
|
-
pluralGenitive: "больше {{count}} лет"
|
|
1982
|
-
},
|
|
1983
|
-
future: {
|
|
1984
|
-
singularNominative: "больше, чем через {{count}} год",
|
|
1985
|
-
singularGenitive: "больше, чем через {{count}} года",
|
|
1986
|
-
pluralGenitive: "больше, чем через {{count}} лет"
|
|
1987
|
-
}
|
|
1988
|
-
}),
|
|
1989
|
-
almostXYears: tn({
|
|
1990
|
-
regular: {
|
|
1991
|
-
singularNominative: "почти {{count}} год",
|
|
1992
|
-
singularGenitive: "почти {{count}} года",
|
|
1993
|
-
pluralGenitive: "почти {{count}} лет"
|
|
1994
|
-
},
|
|
1995
|
-
future: {
|
|
1996
|
-
singularNominative: "почти через {{count}} год",
|
|
1997
|
-
singularGenitive: "почти через {{count}} года",
|
|
1998
|
-
pluralGenitive: "почти через {{count}} лет"
|
|
1999
|
-
}
|
|
2000
|
-
})
|
|
2001
|
-
}, iM = (t, e, n) => rM[t](e, n), oM = {
|
|
2002
|
-
full: "EEEE, d MMMM y 'г.'",
|
|
2003
|
-
long: "d MMMM y 'г.'",
|
|
2004
|
-
medium: "d MMM y 'г.'",
|
|
2005
|
-
short: "dd.MM.y"
|
|
2006
|
-
}, sM = {
|
|
2007
|
-
full: "H:mm:ss zzzz",
|
|
2008
|
-
long: "H:mm:ss z",
|
|
2009
|
-
medium: "H:mm:ss",
|
|
2010
|
-
short: "H:mm"
|
|
2011
|
-
}, aM = {
|
|
2012
|
-
any: "{{date}}, {{time}}"
|
|
2013
|
-
}, lM = {
|
|
2014
|
-
date: Ku({
|
|
2015
|
-
formats: oM,
|
|
2016
|
-
defaultWidth: "full"
|
|
2017
|
-
}),
|
|
2018
|
-
time: Ku({
|
|
2019
|
-
formats: sM,
|
|
2020
|
-
defaultWidth: "full"
|
|
2021
|
-
}),
|
|
2022
|
-
dateTime: Ku({
|
|
2023
|
-
formats: aM,
|
|
2024
|
-
defaultWidth: "any"
|
|
2025
|
-
})
|
|
2026
|
-
}, mh = [
|
|
2027
|
-
"воскресенье",
|
|
2028
|
-
"понедельник",
|
|
2029
|
-
"вторник",
|
|
2030
|
-
"среду",
|
|
2031
|
-
"четверг",
|
|
2032
|
-
"пятницу",
|
|
2033
|
-
"субботу"
|
|
2034
|
-
];
|
|
2035
|
-
function cM(t) {
|
|
2036
|
-
const e = mh[t];
|
|
2037
|
-
switch (t) {
|
|
2038
|
-
case 0:
|
|
2039
|
-
return "'в прошлое " + e + " в' p";
|
|
2040
|
-
case 1:
|
|
2041
|
-
case 2:
|
|
2042
|
-
case 4:
|
|
2043
|
-
return "'в прошлый " + e + " в' p";
|
|
2044
|
-
case 3:
|
|
2045
|
-
case 5:
|
|
2046
|
-
case 6:
|
|
2047
|
-
return "'в прошлую " + e + " в' p";
|
|
2048
|
-
}
|
|
2049
|
-
}
|
|
2050
|
-
function Fg(t) {
|
|
2051
|
-
const e = mh[t];
|
|
2052
|
-
return t === 2 ? "'во " + e + " в' p" : "'в " + e + " в' p";
|
|
2053
|
-
}
|
|
2054
|
-
function uM(t) {
|
|
2055
|
-
const e = mh[t];
|
|
2056
|
-
switch (t) {
|
|
2057
|
-
case 0:
|
|
2058
|
-
return "'в следующее " + e + " в' p";
|
|
2059
|
-
case 1:
|
|
2060
|
-
case 2:
|
|
2061
|
-
case 4:
|
|
2062
|
-
return "'в следующий " + e + " в' p";
|
|
2063
|
-
case 3:
|
|
2064
|
-
case 5:
|
|
2065
|
-
case 6:
|
|
2066
|
-
return "'в следующую " + e + " в' p";
|
|
2067
|
-
}
|
|
2068
|
-
}
|
|
2069
|
-
const dM = {
|
|
2070
|
-
lastWeek: (t, e, n) => {
|
|
2071
|
-
const r = t.getDay();
|
|
2072
|
-
return Dg(t, e, n) ? Fg(r) : cM(r);
|
|
2073
|
-
},
|
|
2074
|
-
yesterday: "'вчера в' p",
|
|
2075
|
-
today: "'сегодня в' p",
|
|
2076
|
-
tomorrow: "'завтра в' p",
|
|
2077
|
-
nextWeek: (t, e, n) => {
|
|
2078
|
-
const r = t.getDay();
|
|
2079
|
-
return Dg(t, e, n) ? Fg(r) : uM(r);
|
|
2080
|
-
},
|
|
2081
|
-
other: "P"
|
|
2082
|
-
}, fM = (t, e, n, r) => {
|
|
2083
|
-
const i = dM[t];
|
|
2084
|
-
return typeof i == "function" ? i(e, n, r) : i;
|
|
2085
|
-
}, pM = {
|
|
2086
|
-
narrow: ["до н.э.", "н.э."],
|
|
2087
|
-
abbreviated: ["до н. э.", "н. э."],
|
|
2088
|
-
wide: ["до нашей эры", "нашей эры"]
|
|
2089
|
-
}, hM = {
|
|
2090
|
-
narrow: ["1", "2", "3", "4"],
|
|
2091
|
-
abbreviated: ["1-й кв.", "2-й кв.", "3-й кв.", "4-й кв."],
|
|
2092
|
-
wide: ["1-й квартал", "2-й квартал", "3-й квартал", "4-й квартал"]
|
|
2093
|
-
}, mM = {
|
|
2094
|
-
narrow: ["Я", "Ф", "М", "А", "М", "И", "И", "А", "С", "О", "Н", "Д"],
|
|
2095
|
-
abbreviated: [
|
|
2096
|
-
"янв.",
|
|
2097
|
-
"фев.",
|
|
2098
|
-
"март",
|
|
2099
|
-
"апр.",
|
|
2100
|
-
"май",
|
|
2101
|
-
"июнь",
|
|
2102
|
-
"июль",
|
|
2103
|
-
"авг.",
|
|
2104
|
-
"сент.",
|
|
2105
|
-
"окт.",
|
|
2106
|
-
"нояб.",
|
|
2107
|
-
"дек."
|
|
2108
|
-
],
|
|
2109
|
-
wide: [
|
|
2110
|
-
"январь",
|
|
2111
|
-
"февраль",
|
|
2112
|
-
"март",
|
|
2113
|
-
"апрель",
|
|
2114
|
-
"май",
|
|
2115
|
-
"июнь",
|
|
2116
|
-
"июль",
|
|
2117
|
-
"август",
|
|
2118
|
-
"сентябрь",
|
|
2119
|
-
"октябрь",
|
|
2120
|
-
"ноябрь",
|
|
2121
|
-
"декабрь"
|
|
2122
|
-
]
|
|
2123
|
-
}, gM = {
|
|
2124
|
-
narrow: ["Я", "Ф", "М", "А", "М", "И", "И", "А", "С", "О", "Н", "Д"],
|
|
2125
|
-
abbreviated: [
|
|
2126
|
-
"янв.",
|
|
2127
|
-
"фев.",
|
|
2128
|
-
"мар.",
|
|
2129
|
-
"апр.",
|
|
2130
|
-
"мая",
|
|
2131
|
-
"июн.",
|
|
2132
|
-
"июл.",
|
|
2133
|
-
"авг.",
|
|
2134
|
-
"сент.",
|
|
2135
|
-
"окт.",
|
|
2136
|
-
"нояб.",
|
|
2137
|
-
"дек."
|
|
2138
|
-
],
|
|
2139
|
-
wide: [
|
|
2140
|
-
"января",
|
|
2141
|
-
"февраля",
|
|
2142
|
-
"марта",
|
|
2143
|
-
"апреля",
|
|
2144
|
-
"мая",
|
|
2145
|
-
"июня",
|
|
2146
|
-
"июля",
|
|
2147
|
-
"августа",
|
|
2148
|
-
"сентября",
|
|
2149
|
-
"октября",
|
|
2150
|
-
"ноября",
|
|
2151
|
-
"декабря"
|
|
2152
|
-
]
|
|
2153
|
-
}, vM = {
|
|
2154
|
-
narrow: ["В", "П", "В", "С", "Ч", "П", "С"],
|
|
2155
|
-
short: ["вс", "пн", "вт", "ср", "чт", "пт", "сб"],
|
|
2156
|
-
abbreviated: ["вск", "пнд", "втр", "срд", "чтв", "птн", "суб"],
|
|
2157
|
-
wide: [
|
|
2158
|
-
"воскресенье",
|
|
2159
|
-
"понедельник",
|
|
2160
|
-
"вторник",
|
|
2161
|
-
"среда",
|
|
2162
|
-
"четверг",
|
|
2163
|
-
"пятница",
|
|
2164
|
-
"суббота"
|
|
2165
|
-
]
|
|
2166
|
-
}, yM = {
|
|
2167
|
-
narrow: {
|
|
2168
|
-
am: "ДП",
|
|
2169
|
-
pm: "ПП",
|
|
2170
|
-
midnight: "полн.",
|
|
2171
|
-
noon: "полд.",
|
|
2172
|
-
morning: "утро",
|
|
2173
|
-
afternoon: "день",
|
|
2174
|
-
evening: "веч.",
|
|
2175
|
-
night: "ночь"
|
|
2176
|
-
},
|
|
2177
|
-
abbreviated: {
|
|
2178
|
-
am: "ДП",
|
|
2179
|
-
pm: "ПП",
|
|
2180
|
-
midnight: "полн.",
|
|
2181
|
-
noon: "полд.",
|
|
2182
|
-
morning: "утро",
|
|
2183
|
-
afternoon: "день",
|
|
2184
|
-
evening: "веч.",
|
|
2185
|
-
night: "ночь"
|
|
2186
|
-
},
|
|
2187
|
-
wide: {
|
|
2188
|
-
am: "ДП",
|
|
2189
|
-
pm: "ПП",
|
|
2190
|
-
midnight: "полночь",
|
|
2191
|
-
noon: "полдень",
|
|
2192
|
-
morning: "утро",
|
|
2193
|
-
afternoon: "день",
|
|
2194
|
-
evening: "вечер",
|
|
2195
|
-
night: "ночь"
|
|
2196
|
-
}
|
|
2197
|
-
}, bM = {
|
|
2198
|
-
narrow: {
|
|
2199
|
-
am: "ДП",
|
|
2200
|
-
pm: "ПП",
|
|
2201
|
-
midnight: "полн.",
|
|
2202
|
-
noon: "полд.",
|
|
2203
|
-
morning: "утра",
|
|
2204
|
-
afternoon: "дня",
|
|
2205
|
-
evening: "веч.",
|
|
2206
|
-
night: "ночи"
|
|
2207
|
-
},
|
|
2208
|
-
abbreviated: {
|
|
2209
|
-
am: "ДП",
|
|
2210
|
-
pm: "ПП",
|
|
2211
|
-
midnight: "полн.",
|
|
2212
|
-
noon: "полд.",
|
|
2213
|
-
morning: "утра",
|
|
2214
|
-
afternoon: "дня",
|
|
2215
|
-
evening: "веч.",
|
|
2216
|
-
night: "ночи"
|
|
2217
|
-
},
|
|
2218
|
-
wide: {
|
|
2219
|
-
am: "ДП",
|
|
2220
|
-
pm: "ПП",
|
|
2221
|
-
midnight: "полночь",
|
|
2222
|
-
noon: "полдень",
|
|
2223
|
-
morning: "утра",
|
|
2224
|
-
afternoon: "дня",
|
|
2225
|
-
evening: "вечера",
|
|
2226
|
-
night: "ночи"
|
|
2227
|
-
}
|
|
2228
|
-
}, xM = (t, e) => {
|
|
2229
|
-
const n = Number(t), r = e == null ? void 0 : e.unit;
|
|
2230
|
-
let i;
|
|
2231
|
-
return r === "date" ? i = "-е" : r === "week" || r === "minute" || r === "second" ? i = "-я" : i = "-й", n + i;
|
|
2232
|
-
}, wM = {
|
|
2233
|
-
ordinalNumber: xM,
|
|
2234
|
-
era: Ps({
|
|
2235
|
-
values: pM,
|
|
2236
|
-
defaultWidth: "wide"
|
|
2237
|
-
}),
|
|
2238
|
-
quarter: Ps({
|
|
2239
|
-
values: hM,
|
|
2240
|
-
defaultWidth: "wide",
|
|
2241
|
-
argumentCallback: (t) => t - 1
|
|
2242
|
-
}),
|
|
2243
|
-
month: Ps({
|
|
2244
|
-
values: mM,
|
|
2245
|
-
defaultWidth: "wide",
|
|
2246
|
-
formattingValues: gM,
|
|
2247
|
-
defaultFormattingWidth: "wide"
|
|
2248
|
-
}),
|
|
2249
|
-
day: Ps({
|
|
2250
|
-
values: vM,
|
|
2251
|
-
defaultWidth: "wide"
|
|
2252
|
-
}),
|
|
2253
|
-
dayPeriod: Ps({
|
|
2254
|
-
values: yM,
|
|
2255
|
-
defaultWidth: "any",
|
|
2256
|
-
formattingValues: bM,
|
|
2257
|
-
defaultFormattingWidth: "wide"
|
|
2258
|
-
})
|
|
2259
|
-
}, kM = /^(\d+)(-?(е|я|й|ое|ье|ая|ья|ый|ой|ий|ый))?/i, SM = /\d+/i, EM = {
|
|
2260
|
-
narrow: /^((до )?н\.?\s?э\.?)/i,
|
|
2261
|
-
abbreviated: /^((до )?н\.?\s?э\.?)/i,
|
|
2262
|
-
wide: /^(до нашей эры|нашей эры|наша эра)/i
|
|
2263
|
-
}, CM = {
|
|
2264
|
-
any: [/^д/i, /^н/i]
|
|
2265
|
-
}, TM = {
|
|
2266
|
-
narrow: /^[1234]/i,
|
|
2267
|
-
abbreviated: /^[1234](-?[ыои]?й?)? кв.?/i,
|
|
2268
|
-
wide: /^[1234](-?[ыои]?й?)? квартал/i
|
|
2269
|
-
}, OM = {
|
|
2270
|
-
any: [/1/i, /2/i, /3/i, /4/i]
|
|
2271
|
-
}, MM = {
|
|
2272
|
-
narrow: /^[яфмаисонд]/i,
|
|
2273
|
-
abbreviated: /^(янв|фев|март?|апр|ма[йя]|июн[ья]?|июл[ья]?|авг|сент?|окт|нояб?|дек)\.?/i,
|
|
2274
|
-
wide: /^(январ[ья]|феврал[ья]|марта?|апрел[ья]|ма[йя]|июн[ья]|июл[ья]|августа?|сентябр[ья]|октябр[ья]|октябр[ья]|ноябр[ья]|декабр[ья])/i
|
|
2275
|
-
}, PM = {
|
|
2276
|
-
narrow: [
|
|
2277
|
-
/^я/i,
|
|
2278
|
-
/^ф/i,
|
|
2279
|
-
/^м/i,
|
|
2280
|
-
/^а/i,
|
|
2281
|
-
/^м/i,
|
|
2282
|
-
/^и/i,
|
|
2283
|
-
/^и/i,
|
|
2284
|
-
/^а/i,
|
|
2285
|
-
/^с/i,
|
|
2286
|
-
/^о/i,
|
|
2287
|
-
/^н/i,
|
|
2288
|
-
/^я/i
|
|
2289
|
-
],
|
|
2290
|
-
any: [
|
|
2291
|
-
/^я/i,
|
|
2292
|
-
/^ф/i,
|
|
2293
|
-
/^мар/i,
|
|
2294
|
-
/^ап/i,
|
|
2295
|
-
/^ма[йя]/i,
|
|
2296
|
-
/^июн/i,
|
|
2297
|
-
/^июл/i,
|
|
2298
|
-
/^ав/i,
|
|
2299
|
-
/^с/i,
|
|
2300
|
-
/^о/i,
|
|
2301
|
-
/^н/i,
|
|
2302
|
-
/^д/i
|
|
2303
|
-
]
|
|
2304
|
-
}, AM = {
|
|
2305
|
-
narrow: /^[впсч]/i,
|
|
2306
|
-
short: /^(вс|во|пн|по|вт|ср|чт|че|пт|пя|сб|су)\.?/i,
|
|
2307
|
-
abbreviated: /^(вск|вос|пнд|пон|втр|вто|срд|сре|чтв|чет|птн|пят|суб).?/i,
|
|
2308
|
-
wide: /^(воскресень[ея]|понедельника?|вторника?|сред[аы]|четверга?|пятниц[аы]|суббот[аы])/i
|
|
2309
|
-
}, DM = {
|
|
2310
|
-
narrow: [/^в/i, /^п/i, /^в/i, /^с/i, /^ч/i, /^п/i, /^с/i],
|
|
2311
|
-
any: [/^в[ос]/i, /^п[он]/i, /^в/i, /^ср/i, /^ч/i, /^п[ят]/i, /^с[уб]/i]
|
|
2312
|
-
}, RM = {
|
|
2313
|
-
narrow: /^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,
|
|
2314
|
-
abbreviated: /^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,
|
|
2315
|
-
wide: /^([дп]п|полночь|полдень|утр[оа]|день|дня|вечера?|ноч[ьи])/i
|
|
2316
|
-
}, NM = {
|
|
2317
|
-
any: {
|
|
2318
|
-
am: /^дп/i,
|
|
2319
|
-
pm: /^пп/i,
|
|
2320
|
-
midnight: /^полн/i,
|
|
2321
|
-
noon: /^полд/i,
|
|
2322
|
-
morning: /^у/i,
|
|
2323
|
-
afternoon: /^д[ен]/i,
|
|
2324
|
-
evening: /^в/i,
|
|
2325
|
-
night: /^н/i
|
|
2326
|
-
}
|
|
2327
|
-
}, IM = {
|
|
2328
|
-
ordinalNumber: mO({
|
|
2329
|
-
matchPattern: kM,
|
|
2330
|
-
parsePattern: SM,
|
|
2331
|
-
valueCallback: (t) => parseInt(t, 10)
|
|
2332
|
-
}),
|
|
2333
|
-
era: As({
|
|
2334
|
-
matchPatterns: EM,
|
|
2335
|
-
defaultMatchWidth: "wide",
|
|
2336
|
-
parsePatterns: CM,
|
|
2337
|
-
defaultParseWidth: "any"
|
|
2338
|
-
}),
|
|
2339
|
-
quarter: As({
|
|
2340
|
-
matchPatterns: TM,
|
|
2341
|
-
defaultMatchWidth: "wide",
|
|
2342
|
-
parsePatterns: OM,
|
|
2343
|
-
defaultParseWidth: "any",
|
|
2344
|
-
valueCallback: (t) => t + 1
|
|
2345
|
-
}),
|
|
2346
|
-
month: As({
|
|
2347
|
-
matchPatterns: MM,
|
|
2348
|
-
defaultMatchWidth: "wide",
|
|
2349
|
-
parsePatterns: PM,
|
|
2350
|
-
defaultParseWidth: "any"
|
|
2351
|
-
}),
|
|
2352
|
-
day: As({
|
|
2353
|
-
matchPatterns: AM,
|
|
2354
|
-
defaultMatchWidth: "wide",
|
|
2355
|
-
parsePatterns: DM,
|
|
2356
|
-
defaultParseWidth: "any"
|
|
2357
|
-
}),
|
|
2358
|
-
dayPeriod: As({
|
|
2359
|
-
matchPatterns: RM,
|
|
2360
|
-
defaultMatchWidth: "wide",
|
|
2361
|
-
parsePatterns: NM,
|
|
2362
|
-
defaultParseWidth: "any"
|
|
2363
|
-
})
|
|
2364
|
-
}, jM = {
|
|
2365
|
-
code: "ru",
|
|
2366
|
-
formatDistance: iM,
|
|
2367
|
-
formatLong: lM,
|
|
2368
|
-
formatRelative: fM,
|
|
2369
|
-
localize: wM,
|
|
2370
|
-
match: IM,
|
|
2371
|
-
options: {
|
|
2372
|
-
weekStartsOn: 1,
|
|
2373
|
-
firstWeekContainsDate: 1
|
|
2374
|
-
}
|
|
2375
|
-
}, Bg = 5, LM = 4;
|
|
2376
|
-
function _M(t, e) {
|
|
2377
|
-
const n = e.startOfMonth(t), r = n.getDay() > 0 ? n.getDay() : 7, i = e.addDays(t, -r + 1), o = e.addDays(i, Bg * 7 - 1);
|
|
2378
|
-
return e.getMonth(t) === e.getMonth(o) ? Bg : LM;
|
|
1821
|
+
const Fg = 5, rM = 4;
|
|
1822
|
+
function iM(t, e) {
|
|
1823
|
+
const n = e.startOfMonth(t), r = n.getDay() > 0 ? n.getDay() : 7, i = e.addDays(t, -r + 1), o = e.addDays(i, Fg * 7 - 1);
|
|
1824
|
+
return e.getMonth(t) === e.getMonth(o) ? Fg : rM;
|
|
2379
1825
|
}
|
|
2380
1826
|
function Mx(t, e) {
|
|
2381
1827
|
const n = e.startOfMonth(t), r = n.getDay();
|
|
2382
1828
|
return r === 1 ? n : r === 0 ? e.addDays(n, -1 * 6) : e.addDays(n, -1 * (r - 1));
|
|
2383
1829
|
}
|
|
2384
|
-
function
|
|
2385
|
-
const n = Mx(t, e), r =
|
|
1830
|
+
function oM(t, e) {
|
|
1831
|
+
const n = Mx(t, e), r = iM(t, e);
|
|
2386
1832
|
return e.addDays(n, r * 7 - 1);
|
|
2387
1833
|
}
|
|
2388
1834
|
class Ir {
|
|
@@ -2422,7 +1868,7 @@ class Ir {
|
|
|
2422
1868
|
return ((o = (i = this.overrides) == null ? void 0 : i.eachMonthOfInterval) == null ? void 0 : o.call(i, r)) ?? TO(r);
|
|
2423
1869
|
}, this.endOfBroadcastWeek = (r, i) => {
|
|
2424
1870
|
var o, s;
|
|
2425
|
-
return ((s = (o = this.overrides) == null ? void 0 : o.endOfBroadcastWeek) == null ? void 0 : s.call(o, r, i)) ??
|
|
1871
|
+
return ((s = (o = this.overrides) == null ? void 0 : o.endOfBroadcastWeek) == null ? void 0 : s.call(o, r, i)) ?? oM(r, this);
|
|
2426
1872
|
}, this.endOfISOWeek = (r) => {
|
|
2427
1873
|
var i, o;
|
|
2428
1874
|
return ((o = (i = this.overrides) == null ? void 0 : i.endOfISOWeek) == null ? void 0 : o.call(i, r)) ?? PO(r);
|
|
@@ -2459,7 +1905,7 @@ class Ir {
|
|
|
2459
1905
|
return ((s = (o = this.overrides) == null ? void 0 : o.isBefore) == null ? void 0 : s.call(o, r, i)) ?? VO(r, i);
|
|
2460
1906
|
}, this.isDate = (r) => {
|
|
2461
1907
|
var i, o;
|
|
2462
|
-
return ((o = (i = this.overrides) == null ? void 0 : i.isDate) == null ? void 0 : o.call(i, r)) ??
|
|
1908
|
+
return ((o = (i = this.overrides) == null ? void 0 : i.isDate) == null ? void 0 : o.call(i, r)) ?? mO(r);
|
|
2463
1909
|
}, this.isSameDay = (r, i) => {
|
|
2464
1910
|
var o, s;
|
|
2465
1911
|
return ((s = (o = this.overrides) == null ? void 0 : o.isSameDay) == null ? void 0 : s.call(o, r, i)) ?? kO(r, i);
|
|
@@ -2489,7 +1935,7 @@ class Ir {
|
|
|
2489
1935
|
return ((o = (i = this.overrides) == null ? void 0 : i.startOfDay) == null ? void 0 : o.call(i, r)) ?? ha(r);
|
|
2490
1936
|
}, this.startOfISOWeek = (r) => {
|
|
2491
1937
|
var i, o;
|
|
2492
|
-
return ((o = (i = this.overrides) == null ? void 0 : i.startOfISOWeek) == null ? void 0 : o.call(i, r)) ??
|
|
1938
|
+
return ((o = (i = this.overrides) == null ? void 0 : i.startOfISOWeek) == null ? void 0 : o.call(i, r)) ?? gO(r);
|
|
2493
1939
|
}, this.startOfMonth = (r) => {
|
|
2494
1940
|
var i, o;
|
|
2495
1941
|
return ((o = (i = this.overrides) == null ? void 0 : i.startOfMonth) == null ? void 0 : o.call(i, r)) ?? OO(r);
|
|
@@ -2535,16 +1981,16 @@ class Ir {
|
|
|
2535
1981
|
}
|
|
2536
1982
|
}
|
|
2537
1983
|
const jr = new Ir();
|
|
2538
|
-
function
|
|
1984
|
+
function sM(t, e, n = {}) {
|
|
2539
1985
|
return Object.entries(t).filter(([, i]) => i === !0).reduce((i, [o]) => (n[o] ? i.push(n[o]) : e[lt[o]] ? i.push(e[lt[o]]) : e[$n[o]] && i.push(e[$n[o]]), i), [e[Me.Day]]);
|
|
2540
1986
|
}
|
|
2541
|
-
function
|
|
1987
|
+
function aM(t) {
|
|
2542
1988
|
return ie.createElement("button", { ...t });
|
|
2543
1989
|
}
|
|
2544
|
-
function
|
|
1990
|
+
function lM(t) {
|
|
2545
1991
|
return ie.createElement("span", { ...t });
|
|
2546
1992
|
}
|
|
2547
|
-
function
|
|
1993
|
+
function cM(t) {
|
|
2548
1994
|
const { size: e = 24, orientation: n = "left", className: r } = t;
|
|
2549
1995
|
return ie.createElement(
|
|
2550
1996
|
"svg",
|
|
@@ -2555,18 +2001,18 @@ function zM(t) {
|
|
|
2555
2001
|
n === "right" && ie.createElement("polygon", { points: "8 18.612 14.1888889 12.5 8 6.37733333 9.91111111 4.5 18 12.5 9.91111111 20.5" })
|
|
2556
2002
|
);
|
|
2557
2003
|
}
|
|
2558
|
-
function
|
|
2004
|
+
function uM(t) {
|
|
2559
2005
|
const { day: e, modifiers: n, ...r } = t;
|
|
2560
2006
|
return ie.createElement("td", { ...r });
|
|
2561
2007
|
}
|
|
2562
|
-
function
|
|
2008
|
+
function dM(t) {
|
|
2563
2009
|
const { day: e, modifiers: n, ...r } = t, i = ie.useRef(null);
|
|
2564
2010
|
return ie.useEffect(() => {
|
|
2565
2011
|
var o;
|
|
2566
2012
|
n.focused && ((o = i.current) == null || o.focus());
|
|
2567
2013
|
}, [n.focused]), ie.createElement("button", { ref: i, ...r });
|
|
2568
2014
|
}
|
|
2569
|
-
function
|
|
2015
|
+
function fM(t) {
|
|
2570
2016
|
const { options: e, className: n, components: r, classNames: i, ...o } = t, s = [i[Me.Dropdown], n].join(" "), a = e == null ? void 0 : e.find(({ value: l }) => l === o.value);
|
|
2571
2017
|
return ie.createElement(
|
|
2572
2018
|
"span",
|
|
@@ -2580,24 +2026,24 @@ function UM(t) {
|
|
|
2580
2026
|
)
|
|
2581
2027
|
);
|
|
2582
2028
|
}
|
|
2583
|
-
function
|
|
2029
|
+
function pM(t) {
|
|
2584
2030
|
return ie.createElement("div", { ...t });
|
|
2585
2031
|
}
|
|
2586
|
-
function
|
|
2032
|
+
function hM(t) {
|
|
2587
2033
|
return ie.createElement("div", { ...t });
|
|
2588
2034
|
}
|
|
2589
|
-
function
|
|
2035
|
+
function mM(t) {
|
|
2590
2036
|
const { calendarMonth: e, displayIndex: n, ...r } = t;
|
|
2591
2037
|
return ie.createElement("div", { ...r }, t.children);
|
|
2592
2038
|
}
|
|
2593
|
-
function
|
|
2039
|
+
function gM(t) {
|
|
2594
2040
|
const { calendarMonth: e, displayIndex: n, ...r } = t;
|
|
2595
2041
|
return ie.createElement("div", { ...r });
|
|
2596
2042
|
}
|
|
2597
|
-
function
|
|
2043
|
+
function vM(t) {
|
|
2598
2044
|
return ie.createElement("table", { ...t });
|
|
2599
2045
|
}
|
|
2600
|
-
function
|
|
2046
|
+
function yM(t) {
|
|
2601
2047
|
return ie.createElement("div", { ...t });
|
|
2602
2048
|
}
|
|
2603
2049
|
const Px = yt(void 0);
|
|
@@ -2607,11 +2053,11 @@ function bo() {
|
|
|
2607
2053
|
throw new Error("useDayPicker() must be used within a custom component.");
|
|
2608
2054
|
return t;
|
|
2609
2055
|
}
|
|
2610
|
-
function
|
|
2056
|
+
function bM(t) {
|
|
2611
2057
|
const { components: e } = bo();
|
|
2612
2058
|
return ie.createElement(e.Dropdown, { ...t });
|
|
2613
2059
|
}
|
|
2614
|
-
function
|
|
2060
|
+
function xM(t) {
|
|
2615
2061
|
const { onPreviousClick: e, onNextClick: n, previousMonth: r, nextMonth: i, ...o } = t, { components: s, classNames: a, labels: { labelPrevious: l, labelNext: c } } = bo(), u = Ce((f) => {
|
|
2616
2062
|
i && (n == null || n(f));
|
|
2617
2063
|
}, [i, n]), d = Ce((f) => {
|
|
@@ -2632,88 +2078,88 @@ function ZM(t) {
|
|
|
2632
2078
|
)
|
|
2633
2079
|
);
|
|
2634
2080
|
}
|
|
2635
|
-
function
|
|
2081
|
+
function wM(t) {
|
|
2636
2082
|
const { components: e } = bo();
|
|
2637
2083
|
return ie.createElement(e.Button, { ...t });
|
|
2638
2084
|
}
|
|
2639
|
-
function
|
|
2085
|
+
function kM(t) {
|
|
2640
2086
|
return ie.createElement("option", { ...t });
|
|
2641
2087
|
}
|
|
2642
|
-
function
|
|
2088
|
+
function SM(t) {
|
|
2643
2089
|
const { components: e } = bo();
|
|
2644
2090
|
return ie.createElement(e.Button, { ...t });
|
|
2645
2091
|
}
|
|
2646
|
-
function
|
|
2092
|
+
function EM(t) {
|
|
2647
2093
|
const { rootRef: e, ...n } = t;
|
|
2648
2094
|
return ie.createElement("div", { ...n, ref: e });
|
|
2649
2095
|
}
|
|
2650
|
-
function
|
|
2096
|
+
function CM(t) {
|
|
2651
2097
|
return ie.createElement("select", { ...t });
|
|
2652
2098
|
}
|
|
2653
|
-
function
|
|
2099
|
+
function TM(t) {
|
|
2654
2100
|
const { week: e, ...n } = t;
|
|
2655
2101
|
return ie.createElement("tr", { ...n });
|
|
2656
2102
|
}
|
|
2657
|
-
function
|
|
2103
|
+
function OM(t) {
|
|
2658
2104
|
return ie.createElement("th", { ...t });
|
|
2659
2105
|
}
|
|
2660
|
-
function
|
|
2106
|
+
function MM(t) {
|
|
2661
2107
|
return ie.createElement(
|
|
2662
2108
|
"thead",
|
|
2663
2109
|
{ "aria-hidden": !0 },
|
|
2664
2110
|
ie.createElement("tr", { ...t })
|
|
2665
2111
|
);
|
|
2666
2112
|
}
|
|
2667
|
-
function
|
|
2113
|
+
function PM(t) {
|
|
2668
2114
|
const { week: e, ...n } = t;
|
|
2669
2115
|
return ie.createElement("th", { ...n });
|
|
2670
2116
|
}
|
|
2671
|
-
function
|
|
2117
|
+
function AM(t) {
|
|
2672
2118
|
return ie.createElement("th", { ...t });
|
|
2673
2119
|
}
|
|
2674
|
-
function
|
|
2120
|
+
function DM(t) {
|
|
2675
2121
|
return ie.createElement("tbody", { ...t });
|
|
2676
2122
|
}
|
|
2677
|
-
function
|
|
2123
|
+
function RM(t) {
|
|
2678
2124
|
const { components: e } = bo();
|
|
2679
2125
|
return ie.createElement(e.Dropdown, { ...t });
|
|
2680
2126
|
}
|
|
2681
|
-
const
|
|
2127
|
+
const NM = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2682
2128
|
__proto__: null,
|
|
2683
|
-
Button:
|
|
2684
|
-
CaptionLabel:
|
|
2685
|
-
Chevron:
|
|
2686
|
-
Day:
|
|
2687
|
-
DayButton:
|
|
2688
|
-
Dropdown:
|
|
2689
|
-
DropdownNav:
|
|
2690
|
-
Footer:
|
|
2691
|
-
Month:
|
|
2692
|
-
MonthCaption:
|
|
2693
|
-
MonthGrid:
|
|
2694
|
-
Months:
|
|
2695
|
-
MonthsDropdown:
|
|
2696
|
-
Nav:
|
|
2697
|
-
NextMonthButton:
|
|
2698
|
-
Option:
|
|
2699
|
-
PreviousMonthButton:
|
|
2700
|
-
Root:
|
|
2701
|
-
Select:
|
|
2702
|
-
Week:
|
|
2703
|
-
WeekNumber:
|
|
2704
|
-
WeekNumberHeader:
|
|
2705
|
-
Weekday:
|
|
2706
|
-
Weekdays:
|
|
2707
|
-
Weeks:
|
|
2708
|
-
YearsDropdown:
|
|
2129
|
+
Button: aM,
|
|
2130
|
+
CaptionLabel: lM,
|
|
2131
|
+
Chevron: cM,
|
|
2132
|
+
Day: uM,
|
|
2133
|
+
DayButton: dM,
|
|
2134
|
+
Dropdown: fM,
|
|
2135
|
+
DropdownNav: pM,
|
|
2136
|
+
Footer: hM,
|
|
2137
|
+
Month: mM,
|
|
2138
|
+
MonthCaption: gM,
|
|
2139
|
+
MonthGrid: vM,
|
|
2140
|
+
Months: yM,
|
|
2141
|
+
MonthsDropdown: bM,
|
|
2142
|
+
Nav: xM,
|
|
2143
|
+
NextMonthButton: wM,
|
|
2144
|
+
Option: kM,
|
|
2145
|
+
PreviousMonthButton: SM,
|
|
2146
|
+
Root: EM,
|
|
2147
|
+
Select: CM,
|
|
2148
|
+
Week: TM,
|
|
2149
|
+
WeekNumber: PM,
|
|
2150
|
+
WeekNumberHeader: AM,
|
|
2151
|
+
Weekday: OM,
|
|
2152
|
+
Weekdays: MM,
|
|
2153
|
+
Weeks: DM,
|
|
2154
|
+
YearsDropdown: RM
|
|
2709
2155
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2710
|
-
function
|
|
2156
|
+
function IM(t) {
|
|
2711
2157
|
return {
|
|
2712
|
-
...
|
|
2158
|
+
...NM,
|
|
2713
2159
|
...t
|
|
2714
2160
|
};
|
|
2715
2161
|
}
|
|
2716
|
-
function
|
|
2162
|
+
function jM(t) {
|
|
2717
2163
|
const e = {
|
|
2718
2164
|
"data-mode": t.mode ?? void 0,
|
|
2719
2165
|
"data-required": "required" in t ? t.required : void 0,
|
|
@@ -2725,7 +2171,7 @@ function hP(t) {
|
|
|
2725
2171
|
n.startsWith("data-") && (e[n] = r);
|
|
2726
2172
|
}), e;
|
|
2727
2173
|
}
|
|
2728
|
-
function
|
|
2174
|
+
function LM() {
|
|
2729
2175
|
const t = {};
|
|
2730
2176
|
for (const e in Me)
|
|
2731
2177
|
t[Me[e]] = `rdp-${Me[e]}`;
|
|
@@ -2740,44 +2186,44 @@ function mP() {
|
|
|
2740
2186
|
function Ax(t, e, n) {
|
|
2741
2187
|
return (n ?? new Ir(e)).format(t, "LLLL y");
|
|
2742
2188
|
}
|
|
2743
|
-
const
|
|
2744
|
-
function
|
|
2189
|
+
const _M = Ax;
|
|
2190
|
+
function FM(t, e, n) {
|
|
2745
2191
|
return (n ?? new Ir(e)).format(t, "d");
|
|
2746
2192
|
}
|
|
2747
|
-
function
|
|
2193
|
+
function BM(t, e = jr) {
|
|
2748
2194
|
return e.format(t, "LLLL");
|
|
2749
2195
|
}
|
|
2750
|
-
function
|
|
2196
|
+
function $M(t) {
|
|
2751
2197
|
return t < 10 ? `0${t.toLocaleString()}` : `${t.toLocaleString()}`;
|
|
2752
2198
|
}
|
|
2753
|
-
function
|
|
2199
|
+
function VM() {
|
|
2754
2200
|
return "";
|
|
2755
2201
|
}
|
|
2756
|
-
function
|
|
2202
|
+
function zM(t, e, n) {
|
|
2757
2203
|
return (n ?? new Ir(e)).format(t, "cccccc");
|
|
2758
2204
|
}
|
|
2759
2205
|
function Dx(t, e = jr) {
|
|
2760
2206
|
return e.format(t, "yyyy");
|
|
2761
2207
|
}
|
|
2762
|
-
const
|
|
2208
|
+
const WM = Dx, HM = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2763
2209
|
__proto__: null,
|
|
2764
2210
|
formatCaption: Ax,
|
|
2765
|
-
formatDay:
|
|
2766
|
-
formatMonthCaption:
|
|
2767
|
-
formatMonthDropdown:
|
|
2768
|
-
formatWeekNumber:
|
|
2769
|
-
formatWeekNumberHeader:
|
|
2770
|
-
formatWeekdayName:
|
|
2771
|
-
formatYearCaption:
|
|
2211
|
+
formatDay: FM,
|
|
2212
|
+
formatMonthCaption: _M,
|
|
2213
|
+
formatMonthDropdown: BM,
|
|
2214
|
+
formatWeekNumber: $M,
|
|
2215
|
+
formatWeekNumberHeader: VM,
|
|
2216
|
+
formatWeekdayName: zM,
|
|
2217
|
+
formatYearCaption: WM,
|
|
2772
2218
|
formatYearDropdown: Dx
|
|
2773
2219
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2774
|
-
function
|
|
2220
|
+
function UM(t) {
|
|
2775
2221
|
return t != null && t.formatMonthCaption && !t.formatCaption && (t.formatCaption = t.formatMonthCaption), t != null && t.formatYearCaption && !t.formatYearDropdown && (t.formatYearDropdown = t.formatYearCaption), {
|
|
2776
|
-
...
|
|
2222
|
+
...HM,
|
|
2777
2223
|
...t
|
|
2778
2224
|
};
|
|
2779
2225
|
}
|
|
2780
|
-
function
|
|
2226
|
+
function KM(t, e, n, r, i) {
|
|
2781
2227
|
const { startOfMonth: o, startOfYear: s, endOfYear: a, eachMonthOfInterval: l, getMonth: c } = i;
|
|
2782
2228
|
return l({
|
|
2783
2229
|
start: s(t),
|
|
@@ -2787,7 +2233,7 @@ function CP(t, e, n, r, i) {
|
|
|
2787
2233
|
return { value: h, label: p, disabled: m };
|
|
2788
2234
|
});
|
|
2789
2235
|
}
|
|
2790
|
-
function
|
|
2236
|
+
function qM(t, e = {}, n = {}) {
|
|
2791
2237
|
let r = { ...e == null ? void 0 : e[Me.Day] };
|
|
2792
2238
|
return Object.entries(t).filter(([, i]) => i === !0).forEach(([i]) => {
|
|
2793
2239
|
r = {
|
|
@@ -2796,7 +2242,7 @@ function TP(t, e = {}, n = {}) {
|
|
|
2796
2242
|
};
|
|
2797
2243
|
}), r;
|
|
2798
2244
|
}
|
|
2799
|
-
function
|
|
2245
|
+
function GM(t, e, n) {
|
|
2800
2246
|
const r = t.today(), i = e ? t.startOfISOWeek(r) : t.startOfWeek(r), o = [];
|
|
2801
2247
|
for (let s = 0; s < 7; s++) {
|
|
2802
2248
|
const a = t.addDays(i, s);
|
|
@@ -2804,7 +2250,7 @@ function OP(t, e, n) {
|
|
|
2804
2250
|
}
|
|
2805
2251
|
return o;
|
|
2806
2252
|
}
|
|
2807
|
-
function
|
|
2253
|
+
function YM(t, e, n, r) {
|
|
2808
2254
|
if (!t || !e)
|
|
2809
2255
|
return;
|
|
2810
2256
|
const { startOfYear: i, endOfYear: o, addYears: s, getYear: a, isBefore: l, isSameYear: c } = r, u = i(t), d = o(e), f = [];
|
|
@@ -2823,8 +2269,8 @@ function MP(t, e, n, r) {
|
|
|
2823
2269
|
function Rx(t, e, n) {
|
|
2824
2270
|
return (n ?? new Ir(e)).format(t, "LLLL y");
|
|
2825
2271
|
}
|
|
2826
|
-
const
|
|
2827
|
-
function
|
|
2272
|
+
const JM = Rx;
|
|
2273
|
+
function XM(t, e, n, r) {
|
|
2828
2274
|
let i = (r ?? new Ir(n)).format(t, "PPPP");
|
|
2829
2275
|
return e != null && e.today && (i = `Today, ${i}`), i;
|
|
2830
2276
|
}
|
|
@@ -2832,48 +2278,48 @@ function Nx(t, e, n, r) {
|
|
|
2832
2278
|
let i = (r ?? new Ir(n)).format(t, "PPPP");
|
|
2833
2279
|
return e.today && (i = `Today, ${i}`), e.selected && (i = `${i}, selected`), i;
|
|
2834
2280
|
}
|
|
2835
|
-
const
|
|
2836
|
-
function
|
|
2281
|
+
const QM = Nx;
|
|
2282
|
+
function ZM() {
|
|
2837
2283
|
return "";
|
|
2838
2284
|
}
|
|
2839
|
-
function
|
|
2285
|
+
function eP(t) {
|
|
2840
2286
|
return "Choose the Month";
|
|
2841
2287
|
}
|
|
2842
|
-
function
|
|
2288
|
+
function tP(t) {
|
|
2843
2289
|
return "Go to the Next Month";
|
|
2844
2290
|
}
|
|
2845
|
-
function
|
|
2291
|
+
function nP(t) {
|
|
2846
2292
|
return "Go to the Previous Month";
|
|
2847
2293
|
}
|
|
2848
|
-
function
|
|
2294
|
+
function rP(t, e, n) {
|
|
2849
2295
|
return (n ?? new Ir(e)).format(t, "cccc");
|
|
2850
2296
|
}
|
|
2851
|
-
function
|
|
2297
|
+
function iP(t, e) {
|
|
2852
2298
|
return `Week ${t}`;
|
|
2853
2299
|
}
|
|
2854
|
-
function
|
|
2300
|
+
function oP(t) {
|
|
2855
2301
|
return "Week Number";
|
|
2856
2302
|
}
|
|
2857
|
-
function
|
|
2303
|
+
function sP(t) {
|
|
2858
2304
|
return "Choose the Year";
|
|
2859
2305
|
}
|
|
2860
|
-
const
|
|
2306
|
+
const aP = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2861
2307
|
__proto__: null,
|
|
2862
|
-
labelCaption:
|
|
2863
|
-
labelDay:
|
|
2308
|
+
labelCaption: JM,
|
|
2309
|
+
labelDay: QM,
|
|
2864
2310
|
labelDayButton: Nx,
|
|
2865
2311
|
labelGrid: Rx,
|
|
2866
|
-
labelGridcell:
|
|
2867
|
-
labelMonthDropdown:
|
|
2868
|
-
labelNav:
|
|
2869
|
-
labelNext:
|
|
2870
|
-
labelPrevious:
|
|
2871
|
-
labelWeekNumber:
|
|
2872
|
-
labelWeekNumberHeader:
|
|
2873
|
-
labelWeekday:
|
|
2874
|
-
labelYearDropdown:
|
|
2312
|
+
labelGridcell: XM,
|
|
2313
|
+
labelMonthDropdown: eP,
|
|
2314
|
+
labelNav: ZM,
|
|
2315
|
+
labelNext: tP,
|
|
2316
|
+
labelPrevious: nP,
|
|
2317
|
+
labelWeekNumber: iP,
|
|
2318
|
+
labelWeekNumberHeader: oP,
|
|
2319
|
+
labelWeekday: rP,
|
|
2320
|
+
labelYearDropdown: sP
|
|
2875
2321
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2876
|
-
function
|
|
2322
|
+
function lP(t, e, { classNames: n, months: r, focused: i, dateLib: o }) {
|
|
2877
2323
|
const s = Se(null), a = Se(r), l = Se(!1);
|
|
2878
2324
|
mi(() => {
|
|
2879
2325
|
const c = a.current;
|
|
@@ -2921,7 +2367,7 @@ function VP(t, e, { classNames: n, months: r, focused: i, dateLib: o }) {
|
|
|
2921
2367
|
}
|
|
2922
2368
|
});
|
|
2923
2369
|
}
|
|
2924
|
-
function
|
|
2370
|
+
function cP(t, e, n, r) {
|
|
2925
2371
|
const i = t[0], o = t[t.length - 1], { ISOWeek: s, fixedWeeks: a, broadcastCalendar: l } = n ?? {}, { addDays: c, differenceInCalendarDays: u, differenceInCalendarMonths: d, endOfBroadcastWeek: f, endOfISOWeek: p, endOfMonth: h, endOfWeek: m, isAfter: g, startOfBroadcastWeek: v, startOfISOWeek: y, startOfWeek: k } = r, b = l ? v(i, r) : s ? y(i) : k(i), w = l ? f(o, r) : s ? p(h(o)) : m(h(o)), x = u(w, b), E = d(o, i) + 1, S = [];
|
|
2926
2372
|
for (let O = 0; O <= x; O++) {
|
|
2927
2373
|
const A = c(b, O);
|
|
@@ -2939,14 +2385,14 @@ function zP(t, e, n, r) {
|
|
|
2939
2385
|
}
|
|
2940
2386
|
return S;
|
|
2941
2387
|
}
|
|
2942
|
-
function
|
|
2388
|
+
function uP(t) {
|
|
2943
2389
|
const e = [];
|
|
2944
2390
|
return t.reduce((n, r) => {
|
|
2945
2391
|
const i = [], o = r.weeks.reduce((s, a) => [...s, ...a.days], i);
|
|
2946
2392
|
return [...n, ...o];
|
|
2947
2393
|
}, e);
|
|
2948
2394
|
}
|
|
2949
|
-
function
|
|
2395
|
+
function dP(t, e, n, r) {
|
|
2950
2396
|
const { numberOfMonths: i = 1 } = n, o = [];
|
|
2951
2397
|
for (let s = 0; s < i; s++) {
|
|
2952
2398
|
const a = r.addMonths(t, s);
|
|
@@ -2956,7 +2402,7 @@ function HP(t, e, n, r) {
|
|
|
2956
2402
|
}
|
|
2957
2403
|
return o;
|
|
2958
2404
|
}
|
|
2959
|
-
function
|
|
2405
|
+
function Bg(t, e) {
|
|
2960
2406
|
const { month: n, defaultMonth: r, today: i = e.today(), numberOfMonths: o = 1, endMonth: s, startMonth: a } = t;
|
|
2961
2407
|
let l = n || r || i;
|
|
2962
2408
|
const { differenceInCalendarMonths: c, addMonths: u, startOfMonth: d } = e;
|
|
@@ -2966,7 +2412,7 @@ function $g(t, e) {
|
|
|
2966
2412
|
}
|
|
2967
2413
|
return a && c(l, a) < 0 && (l = a), d(l);
|
|
2968
2414
|
}
|
|
2969
|
-
class
|
|
2415
|
+
class mh {
|
|
2970
2416
|
constructor(e, n, r = jr) {
|
|
2971
2417
|
this.date = e, this.displayMonth = n, this.outside = !!(n && !r.isSameMonth(e, n)), this.dateLib = r;
|
|
2972
2418
|
}
|
|
@@ -2978,17 +2424,17 @@ class gh {
|
|
|
2978
2424
|
return this.dateLib.isSameDay(e.date, this.date) && this.dateLib.isSameMonth(e.displayMonth, this.displayMonth);
|
|
2979
2425
|
}
|
|
2980
2426
|
}
|
|
2981
|
-
class
|
|
2427
|
+
class fP {
|
|
2982
2428
|
constructor(e, n) {
|
|
2983
2429
|
this.date = e, this.weeks = n;
|
|
2984
2430
|
}
|
|
2985
2431
|
}
|
|
2986
|
-
class
|
|
2432
|
+
class pP {
|
|
2987
2433
|
constructor(e, n) {
|
|
2988
2434
|
this.days = n, this.weekNumber = e;
|
|
2989
2435
|
}
|
|
2990
2436
|
}
|
|
2991
|
-
function
|
|
2437
|
+
function hP(t, e, n, r) {
|
|
2992
2438
|
const { addDays: i, endOfBroadcastWeek: o, endOfISOWeek: s, endOfMonth: a, endOfWeek: l, getISOWeek: c, getWeek: u, startOfBroadcastWeek: d, startOfISOWeek: f, startOfWeek: p } = r, h = t.reduce((m, g) => {
|
|
2993
2439
|
const v = n.broadcastCalendar ? d(g, r) : n.ISOWeek ? f(g) : p(g), y = n.broadcastCalendar ? o(g, r) : n.ISOWeek ? s(a(g)) : l(a(g)), k = e.filter((E) => E >= v && E <= y), b = n.broadcastCalendar ? 35 : 42;
|
|
2994
2440
|
if (n.fixedWeeks && k.length < b) {
|
|
@@ -2999,14 +2445,14 @@ function qP(t, e, n, r) {
|
|
|
2999
2445
|
k.push(...E);
|
|
3000
2446
|
}
|
|
3001
2447
|
const w = k.reduce((E, S) => {
|
|
3002
|
-
const C = n.ISOWeek ? c(S) : u(S), T = E.find((A) => A.weekNumber === C), O = new
|
|
3003
|
-
return T ? T.days.push(O) : E.push(new
|
|
3004
|
-
}, []), x = new
|
|
2448
|
+
const C = n.ISOWeek ? c(S) : u(S), T = E.find((A) => A.weekNumber === C), O = new mh(S, g, r);
|
|
2449
|
+
return T ? T.days.push(O) : E.push(new pP(C, [O])), E;
|
|
2450
|
+
}, []), x = new fP(g, w);
|
|
3005
2451
|
return m.push(x), m;
|
|
3006
2452
|
}, []);
|
|
3007
2453
|
return n.reverseMonths ? h.reverse() : h;
|
|
3008
2454
|
}
|
|
3009
|
-
function
|
|
2455
|
+
function mP(t, e) {
|
|
3010
2456
|
let { startMonth: n, endMonth: r } = t;
|
|
3011
2457
|
const { startOfYear: i, startOfDay: o, startOfMonth: s, endOfMonth: a, addYears: l, endOfYear: c, newDate: u, today: d } = e, { fromYear: f, toYear: p, fromMonth: h, toMonth: m } = t;
|
|
3012
2458
|
!n && h && (n = h), !n && f && (n = e.newDate(f, 0, 1)), !r && m && (r = m), !r && p && (r = u(p, 11, 31));
|
|
@@ -3016,7 +2462,7 @@ function GP(t, e) {
|
|
|
3016
2462
|
r && o(r)
|
|
3017
2463
|
];
|
|
3018
2464
|
}
|
|
3019
|
-
function
|
|
2465
|
+
function gP(t, e, n, r) {
|
|
3020
2466
|
if (n.disableNavigation)
|
|
3021
2467
|
return;
|
|
3022
2468
|
const { pagedNavigation: i, numberOfMonths: o = 1 } = n, { startOfMonth: s, addMonths: a, differenceInCalendarMonths: l } = r, c = i ? o : 1, u = s(t);
|
|
@@ -3025,7 +2471,7 @@ function YP(t, e, n, r) {
|
|
|
3025
2471
|
if (!(l(e, t) < o))
|
|
3026
2472
|
return a(u, c);
|
|
3027
2473
|
}
|
|
3028
|
-
function
|
|
2474
|
+
function vP(t, e, n, r) {
|
|
3029
2475
|
if (n.disableNavigation)
|
|
3030
2476
|
return;
|
|
3031
2477
|
const { pagedNavigation: i, numberOfMonths: o } = n, { startOfMonth: s, addMonths: a, differenceInCalendarMonths: l } = r, c = i ? o ?? 1 : 1, u = s(t);
|
|
@@ -3034,7 +2480,7 @@ function JP(t, e, n, r) {
|
|
|
3034
2480
|
if (!(l(u, e) <= 0))
|
|
3035
2481
|
return a(u, -c);
|
|
3036
2482
|
}
|
|
3037
|
-
function
|
|
2483
|
+
function yP(t) {
|
|
3038
2484
|
const e = [];
|
|
3039
2485
|
return t.reduce((n, r) => [...n, ...r.weeks], e);
|
|
3040
2486
|
}
|
|
@@ -3042,17 +2488,17 @@ function tu(t, e) {
|
|
|
3042
2488
|
const [n, r] = Le(t);
|
|
3043
2489
|
return [e === void 0 ? n : e, r];
|
|
3044
2490
|
}
|
|
3045
|
-
function
|
|
3046
|
-
const [n, r] =
|
|
2491
|
+
function bP(t, e) {
|
|
2492
|
+
const [n, r] = mP(t, e), { startOfMonth: i, endOfMonth: o } = e, s = Bg(t, e), [a, l] = tu(
|
|
3047
2493
|
s,
|
|
3048
2494
|
// initialMonth is always computed from props.month if provided
|
|
3049
2495
|
t.month ? s : void 0
|
|
3050
2496
|
);
|
|
3051
2497
|
Fe(() => {
|
|
3052
|
-
const x =
|
|
2498
|
+
const x = Bg(t, e);
|
|
3053
2499
|
l(x);
|
|
3054
2500
|
}, [t.timeZone]);
|
|
3055
|
-
const c =
|
|
2501
|
+
const c = dP(a, r, t, e), u = cP(c, t.endMonth ? o(t.endMonth) : void 0, t, e), d = hP(c, u, t, e), f = yP(d), p = uP(d), h = vP(a, n, t, e), m = gP(a, r, t, e), { disableNavigation: g, onMonthChange: v } = t, y = (x) => f.some((E) => E.days.some((S) => S.isEqualTo(x))), k = (x) => {
|
|
3056
2502
|
if (g)
|
|
3057
2503
|
return;
|
|
3058
2504
|
let E = i(x);
|
|
@@ -3072,7 +2518,7 @@ function QP(t, e) {
|
|
|
3072
2518
|
}
|
|
3073
2519
|
};
|
|
3074
2520
|
}
|
|
3075
|
-
function
|
|
2521
|
+
function xP(t, e, n, r) {
|
|
3076
2522
|
let i, o = 0, s = !1;
|
|
3077
2523
|
for (; o < t.length && !s; ) {
|
|
3078
2524
|
const a = t[o], l = e(a);
|
|
@@ -3091,7 +2537,7 @@ function kr(t, e, n = !1, r = jr) {
|
|
|
3091
2537
|
function Ix(t) {
|
|
3092
2538
|
return !!(t && typeof t == "object" && "before" in t && "after" in t);
|
|
3093
2539
|
}
|
|
3094
|
-
function
|
|
2540
|
+
function gh(t) {
|
|
3095
2541
|
return !!(t && typeof t == "object" && "from" in t);
|
|
3096
2542
|
}
|
|
3097
2543
|
function jx(t) {
|
|
@@ -3115,7 +2561,7 @@ function Sr(t, e, n = jr) {
|
|
|
3115
2561
|
return i(t, a);
|
|
3116
2562
|
if (Fx(a, n))
|
|
3117
2563
|
return a.includes(t);
|
|
3118
|
-
if (
|
|
2564
|
+
if (gh(a))
|
|
3119
2565
|
return kr(a, t, !1, n);
|
|
3120
2566
|
if (_x(a))
|
|
3121
2567
|
return Array.isArray(a.dayOfWeek) ? a.dayOfWeek.includes(t.getDay()) : a.dayOfWeek === t.getDay();
|
|
@@ -3126,7 +2572,7 @@ function Sr(t, e, n = jr) {
|
|
|
3126
2572
|
return jx(a) ? o(t, a.after) > 0 : Lx(a) ? o(a.before, t) > 0 : typeof a == "function" ? a(t) : !1;
|
|
3127
2573
|
});
|
|
3128
2574
|
}
|
|
3129
|
-
function
|
|
2575
|
+
function wP(t, e, n, r, i, o, s) {
|
|
3130
2576
|
const { ISOWeek: a, broadcastCalendar: l } = o, { addDays: c, addMonths: u, addWeeks: d, addYears: f, endOfBroadcastWeek: p, endOfISOWeek: h, endOfWeek: m, max: g, min: v, startOfBroadcastWeek: y, startOfISOWeek: k, startOfWeek: b } = s;
|
|
3131
2577
|
let x = {
|
|
3132
2578
|
day: c,
|
|
@@ -3141,7 +2587,7 @@ function eA(t, e, n, r, i, o, s) {
|
|
|
3141
2587
|
function Bx(t, e, n, r, i, o, s, a = 0) {
|
|
3142
2588
|
if (a > 365)
|
|
3143
2589
|
return;
|
|
3144
|
-
const l =
|
|
2590
|
+
const l = wP(
|
|
3145
2591
|
t,
|
|
3146
2592
|
e,
|
|
3147
2593
|
n.date,
|
|
@@ -3150,11 +2596,11 @@ function Bx(t, e, n, r, i, o, s, a = 0) {
|
|
|
3150
2596
|
i,
|
|
3151
2597
|
o,
|
|
3152
2598
|
s
|
|
3153
|
-
), c = !!(o.disabled && Sr(l, o.disabled, s)), u = !!(o.hidden && Sr(l, o.hidden, s)), d = l, f = new
|
|
2599
|
+
), c = !!(o.disabled && Sr(l, o.disabled, s)), u = !!(o.hidden && Sr(l, o.hidden, s)), d = l, f = new mh(l, d, s);
|
|
3154
2600
|
return !c && !u ? f : Bx(t, e, f, r, i, o, s, a + 1);
|
|
3155
2601
|
}
|
|
3156
|
-
function
|
|
3157
|
-
const { autoFocus: o } = t, [s, a] = Le(), l =
|
|
2602
|
+
function kP(t, e, n, r, i) {
|
|
2603
|
+
const { autoFocus: o } = t, [s, a] = Le(), l = xP(e.days, n, r || (() => !1), s), [c, u] = Le(o ? l : void 0);
|
|
3158
2604
|
return {
|
|
3159
2605
|
isFocusTarget: (m) => !!(l != null && l.isEqualTo(m)),
|
|
3160
2606
|
setFocused: u,
|
|
@@ -3170,7 +2616,7 @@ function tA(t, e, n, r, i) {
|
|
|
3170
2616
|
}
|
|
3171
2617
|
};
|
|
3172
2618
|
}
|
|
3173
|
-
function
|
|
2619
|
+
function SP(t, e, n) {
|
|
3174
2620
|
const { disabled: r, hidden: i, modifiers: o, showOutsideDays: s, broadcastCalendar: a, today: l } = e, { isSameDay: c, isSameMonth: u, startOfMonth: d, isBefore: f, endOfMonth: p, isAfter: h } = n, m = e.startMonth && d(e.startMonth), g = e.endMonth && p(e.endMonth), v = {
|
|
3175
2621
|
[lt.focused]: [],
|
|
3176
2622
|
[lt.outside]: [],
|
|
@@ -3207,7 +2653,7 @@ function nA(t, e, n) {
|
|
|
3207
2653
|
};
|
|
3208
2654
|
};
|
|
3209
2655
|
}
|
|
3210
|
-
function
|
|
2656
|
+
function EP(t, e) {
|
|
3211
2657
|
const { selected: n, required: r, onSelect: i } = t, [o, s] = tu(n, i ? n : void 0), a = i ? n : o, { isSameDay: l } = e, c = (p) => (a == null ? void 0 : a.some((h) => l(h, p))) ?? !1, { min: u, max: d } = t;
|
|
3212
2658
|
return {
|
|
3213
2659
|
selected: a,
|
|
@@ -3224,7 +2670,7 @@ function rA(t, e) {
|
|
|
3224
2670
|
isSelected: c
|
|
3225
2671
|
};
|
|
3226
2672
|
}
|
|
3227
|
-
function
|
|
2673
|
+
function CP(t, e, n = 0, r = 0, i = !1, o = jr) {
|
|
3228
2674
|
const { from: s, to: a } = e || {}, { isSameDay: l, isAfter: c, isBefore: u } = o;
|
|
3229
2675
|
let d;
|
|
3230
2676
|
if (!s && !a)
|
|
@@ -3252,7 +2698,7 @@ function iA(t, e, n = 0, r = 0, i = !1, o = jr) {
|
|
|
3252
2698
|
}
|
|
3253
2699
|
return d;
|
|
3254
2700
|
}
|
|
3255
|
-
function
|
|
2701
|
+
function TP(t, e, n = jr) {
|
|
3256
2702
|
const r = Array.isArray(e) ? e : [e];
|
|
3257
2703
|
let i = t.from;
|
|
3258
2704
|
const o = n.differenceInCalendarDays(t.to, t.from), s = Math.min(o, 6);
|
|
@@ -3263,12 +2709,12 @@ function oA(t, e, n = jr) {
|
|
|
3263
2709
|
}
|
|
3264
2710
|
return !1;
|
|
3265
2711
|
}
|
|
3266
|
-
function
|
|
2712
|
+
function $g(t, e, n = jr) {
|
|
3267
2713
|
return kr(t, e.from, !1, n) || kr(t, e.to, !1, n) || kr(e, t.from, !1, n) || kr(e, t.to, !1, n);
|
|
3268
2714
|
}
|
|
3269
|
-
function
|
|
2715
|
+
function OP(t, e, n = jr) {
|
|
3270
2716
|
const r = Array.isArray(e) ? e : [e];
|
|
3271
|
-
if (r.filter((a) => typeof a != "function").some((a) => typeof a == "boolean" ? a : n.isDate(a) ? kr(t, a, !1, n) : Fx(a, n) ? a.some((l) => kr(t, l, !1, n)) :
|
|
2717
|
+
if (r.filter((a) => typeof a != "function").some((a) => typeof a == "boolean" ? a : n.isDate(a) ? kr(t, a, !1, n) : Fx(a, n) ? a.some((l) => kr(t, l, !1, n)) : gh(a) ? a.from && a.to ? $g(t, { from: a.from, to: a.to }, n) : !1 : _x(a) ? TP(t, a.dayOfWeek, n) : Ix(a) ? n.isAfter(a.before, a.after) ? $g(t, {
|
|
3272
2718
|
from: n.addDays(a.after, 1),
|
|
3273
2719
|
to: n.addDays(a.before, -1)
|
|
3274
2720
|
}, n) : Sr(t.from, a, n) || Sr(t.to, a, n) : jx(a) || Lx(a) ? Sr(t.from, a, n) || Sr(t.to, a, n) : !1))
|
|
@@ -3285,18 +2731,18 @@ function sA(t, e, n = jr) {
|
|
|
3285
2731
|
}
|
|
3286
2732
|
return !1;
|
|
3287
2733
|
}
|
|
3288
|
-
function
|
|
2734
|
+
function MP(t, e) {
|
|
3289
2735
|
const { disabled: n, excludeDisabled: r, selected: i, required: o, onSelect: s } = t, [a, l] = tu(i, s ? i : void 0), c = s ? i : a;
|
|
3290
2736
|
return {
|
|
3291
2737
|
selected: c,
|
|
3292
2738
|
select: (f, p, h) => {
|
|
3293
|
-
const { min: m, max: g } = t, v = f ?
|
|
3294
|
-
return r && n && (v != null && v.from) && v.to &&
|
|
2739
|
+
const { min: m, max: g } = t, v = f ? CP(f, c, m, g, o, e) : void 0;
|
|
2740
|
+
return r && n && (v != null && v.from) && v.to && OP({ from: v.from, to: v.to }, n, e) && (v.from = f, v.to = void 0), s || l(v), s == null || s(v, f, p, h), v;
|
|
3295
2741
|
},
|
|
3296
2742
|
isSelected: (f) => c && kr(c, f, !1, e)
|
|
3297
2743
|
};
|
|
3298
2744
|
}
|
|
3299
|
-
function
|
|
2745
|
+
function PP(t, e) {
|
|
3300
2746
|
const { selected: n, required: r, onSelect: i } = t, [o, s] = tu(n, i ? n : void 0), a = i ? n : o, { isSameDay: l } = e;
|
|
3301
2747
|
return {
|
|
3302
2748
|
selected: a,
|
|
@@ -3307,8 +2753,8 @@ function lA(t, e) {
|
|
|
3307
2753
|
isSelected: (d) => a ? l(a, d) : !1
|
|
3308
2754
|
};
|
|
3309
2755
|
}
|
|
3310
|
-
function
|
|
3311
|
-
const n =
|
|
2756
|
+
function AP(t, e) {
|
|
2757
|
+
const n = PP(t, e), r = EP(t, e), i = MP(t, e);
|
|
3312
2758
|
switch (t.mode) {
|
|
3313
2759
|
case "single":
|
|
3314
2760
|
return n;
|
|
@@ -3320,7 +2766,7 @@ function cA(t, e) {
|
|
|
3320
2766
|
return;
|
|
3321
2767
|
}
|
|
3322
2768
|
}
|
|
3323
|
-
function
|
|
2769
|
+
function DP(t) {
|
|
3324
2770
|
const { components: e, formatters: n, labels: r, dateLib: i, locale: o, classNames: s } = je(() => {
|
|
3325
2771
|
const Oe = { ...ph, ...t.locale };
|
|
3326
2772
|
return {
|
|
@@ -3333,11 +2779,11 @@ function uA(t) {
|
|
|
3333
2779
|
timeZone: t.timeZone,
|
|
3334
2780
|
numerals: t.numerals
|
|
3335
2781
|
}, t.dateLib),
|
|
3336
|
-
components:
|
|
3337
|
-
formatters:
|
|
3338
|
-
labels: {
|
|
2782
|
+
components: IM(t.components),
|
|
2783
|
+
formatters: UM(t.formatters),
|
|
2784
|
+
labels: { ...aP, ...t.labels },
|
|
3339
2785
|
locale: Oe,
|
|
3340
|
-
classNames: { ...
|
|
2786
|
+
classNames: { ...LM(), ...t.classNames }
|
|
3341
2787
|
};
|
|
3342
2788
|
}, [
|
|
3343
2789
|
t.locale,
|
|
@@ -3353,7 +2799,7 @@ function uA(t) {
|
|
|
3353
2799
|
t.formatters,
|
|
3354
2800
|
t.labels,
|
|
3355
2801
|
t.classNames
|
|
3356
|
-
]), { captionLayout: a, mode: l, onDayBlur: c, onDayClick: u, onDayFocus: d, onDayKeyDown: f, onDayMouseEnter: p, onDayMouseLeave: h, onNextClick: m, onPrevClick: g, showWeekNumber: v, styles: y } = t, { formatCaption: k, formatDay: b, formatMonthDropdown: w, formatWeekNumber: x, formatWeekNumberHeader: E, formatWeekdayName: S, formatYearDropdown: C } = n, T =
|
|
2802
|
+
]), { captionLayout: a, mode: l, onDayBlur: c, onDayClick: u, onDayFocus: d, onDayKeyDown: f, onDayMouseEnter: p, onDayMouseLeave: h, onNextClick: m, onPrevClick: g, showWeekNumber: v, styles: y } = t, { formatCaption: k, formatDay: b, formatMonthDropdown: w, formatWeekNumber: x, formatWeekNumberHeader: E, formatWeekdayName: S, formatYearDropdown: C } = n, T = bP(t, i), { days: O, months: A, navStart: D, navEnd: I, previousMonth: B, nextMonth: _, goToMonth: j } = T, F = SP(O, t, i), { isSelected: V, select: M, selected: N } = AP(t, i) ?? {}, { blur: $, focused: L, isFocusTarget: z, moveFocus: K, setFocused: Y } = kP(t, T, F, V ?? (() => !1), i), { labelDayButton: Z, labelGridcell: U, labelGrid: X, labelMonthDropdown: se, labelNav: ne, labelWeekday: H, labelWeekNumber: fe, labelWeekNumberHeader: q, labelYearDropdown: re } = r, ge = je(() => GM(i, t.ISOWeek), [i, t.ISOWeek]), oe = l !== void 0 || u !== void 0, ce = Ce(() => {
|
|
3357
2803
|
B && (j(B), g == null || g(B));
|
|
3358
2804
|
}, [B, j, g]), ue = Ce(() => {
|
|
3359
2805
|
_ && (j(_), m == null || m(_));
|
|
@@ -3393,8 +2839,8 @@ function uA(t) {
|
|
|
3393
2839
|
}, [i, j]), { className: xe, style: Ee } = je(() => ({
|
|
3394
2840
|
className: [s[Me.Root], t.className].filter(Boolean).join(" "),
|
|
3395
2841
|
style: { ...y == null ? void 0 : y[Me.Root], ...t.style }
|
|
3396
|
-
}), [s, t.className, t.style, y]), Ne =
|
|
3397
|
-
|
|
2842
|
+
}), [s, t.className, t.style, y]), Ne = jM(t), bt = Se(null);
|
|
2843
|
+
lP(bt, !!t.animate, {
|
|
3398
2844
|
classNames: s,
|
|
3399
2845
|
months: A,
|
|
3400
2846
|
focused: L,
|
|
@@ -3427,15 +2873,27 @@ function uA(t) {
|
|
|
3427
2873
|
{ className: s[Me.Months], style: y == null ? void 0 : y[Me.Months] },
|
|
3428
2874
|
!t.hideNavigation && ie.createElement(e.Nav, { className: s[Me.Nav], style: y == null ? void 0 : y[Me.Nav], "aria-label": ne(), onPreviousClick: ce, onNextClick: ue, previousMonth: B, nextMonth: _ }),
|
|
3429
2875
|
A.map((Oe, Ue) => {
|
|
3430
|
-
const Ke =
|
|
2876
|
+
const Ke = KM(Oe.date, D, I, n, i), $t = YM(D, I, n, i);
|
|
3431
2877
|
return ie.createElement(
|
|
3432
2878
|
e.Month,
|
|
3433
2879
|
{ "data-animated-month": t.animate ? "true" : void 0, className: s[Me.Month], style: y == null ? void 0 : y[Me.Month], key: Ue, displayIndex: Ue, calendarMonth: Oe },
|
|
3434
2880
|
ie.createElement(e.MonthCaption, { "data-animated-caption": t.animate ? "true" : void 0, className: s[Me.MonthCaption], style: y == null ? void 0 : y[Me.MonthCaption], calendarMonth: Oe, displayIndex: Ue }, a != null && a.startsWith("dropdown") ? ie.createElement(
|
|
3435
2881
|
e.DropdownNav,
|
|
3436
2882
|
{ className: s[Me.Dropdowns], style: y == null ? void 0 : y[Me.Dropdowns] },
|
|
3437
|
-
a === "dropdown" || a === "dropdown-months" ? ie.createElement(e.MonthsDropdown, { className: s[Me.MonthsDropdown], "aria-label": se(), classNames: s, components: e, disabled: !!t.disableNavigation, onChange: pe(Oe.date), options: Ke, style: y == null ? void 0 : y[Me.Dropdown], value: i.getMonth(Oe.date) }) : ie.createElement("span",
|
|
3438
|
-
a === "dropdown" || a === "dropdown-years" ? ie.createElement(e.YearsDropdown, { className: s[Me.YearsDropdown], "aria-label": re(i.options), classNames: s, components: e, disabled: !!t.disableNavigation, onChange: ye(Oe.date), options: $t, style: y == null ? void 0 : y[Me.Dropdown], value: i.getYear(Oe.date) }) : ie.createElement("span",
|
|
2883
|
+
a === "dropdown" || a === "dropdown-months" ? ie.createElement(e.MonthsDropdown, { className: s[Me.MonthsDropdown], "aria-label": se(), classNames: s, components: e, disabled: !!t.disableNavigation, onChange: pe(Oe.date), options: Ke, style: y == null ? void 0 : y[Me.Dropdown], value: i.getMonth(Oe.date) }) : ie.createElement("span", null, w(Oe.date, i)),
|
|
2884
|
+
a === "dropdown" || a === "dropdown-years" ? ie.createElement(e.YearsDropdown, { className: s[Me.YearsDropdown], "aria-label": re(i.options), classNames: s, components: e, disabled: !!t.disableNavigation, onChange: ye(Oe.date), options: $t, style: y == null ? void 0 : y[Me.Dropdown], value: i.getYear(Oe.date) }) : ie.createElement("span", null, C(Oe.date, i)),
|
|
2885
|
+
ie.createElement("span", { role: "status", "aria-live": "polite", style: {
|
|
2886
|
+
border: 0,
|
|
2887
|
+
clip: "rect(0 0 0 0)",
|
|
2888
|
+
height: "1px",
|
|
2889
|
+
margin: "-1px",
|
|
2890
|
+
overflow: "hidden",
|
|
2891
|
+
padding: 0,
|
|
2892
|
+
position: "absolute",
|
|
2893
|
+
width: "1px",
|
|
2894
|
+
whiteSpace: "nowrap",
|
|
2895
|
+
wordWrap: "normal"
|
|
2896
|
+
} }, k(Oe.date, i.options, i))
|
|
3439
2897
|
) : ie.createElement(e.CaptionLabel, { className: s[Me.CaptionLabel], role: "status", "aria-live": "polite" }, k(Oe.date, i.options, i))),
|
|
3440
2898
|
ie.createElement(
|
|
3441
2899
|
e.MonthGrid,
|
|
@@ -3454,11 +2912,11 @@ function uA(t) {
|
|
|
3454
2912
|
}), className: s[Me.WeekNumber], scope: "row", role: "rowheader" }, x(xt.weekNumber)),
|
|
3455
2913
|
xt.days.map((ct) => {
|
|
3456
2914
|
const { date: ze } = ct, We = F(ct);
|
|
3457
|
-
if (We[lt.focused] = !We.hidden && !!(L != null && L.isEqualTo(ct)), We[$n.selected] = (V == null ? void 0 : V(ze)) || We.selected,
|
|
2915
|
+
if (We[lt.focused] = !We.hidden && !!(L != null && L.isEqualTo(ct)), We[$n.selected] = (V == null ? void 0 : V(ze)) || We.selected, gh(N)) {
|
|
3458
2916
|
const { from: Gn, to: _r } = N;
|
|
3459
2917
|
We[$n.range_start] = !!(Gn && _r && i.isSameDay(ze, Gn)), We[$n.range_end] = !!(Gn && _r && i.isSameDay(ze, _r)), We[$n.range_middle] = kr(N, ze, !0, i);
|
|
3460
2918
|
}
|
|
3461
|
-
const hr =
|
|
2919
|
+
const hr = qM(We, y, t.modifiersStyles), It = sM(We, s, t.modifiersClassNames), jn = !oe && !We.hidden ? U(ze, We, i.options, i) : void 0;
|
|
3462
2920
|
return ie.createElement(e.Day, { key: `${i.format(ze, "yyyy-MM-dd")}_${i.format(ct.displayMonth, "yyyy-MM")}`, day: ct, modifiers: We, className: It.join(" "), style: hr, role: "gridcell", "aria-selected": We.selected || void 0, "aria-label": jn, "data-day": i.format(ze, "yyyy-MM-dd"), "data-month": ct.outside ? i.format(ze, "yyyy-MM") : void 0, "data-selected": We.selected || void 0, "data-disabled": We.disabled || void 0, "data-hidden": We.hidden || void 0, "data-outside": ct.outside || void 0, "data-focused": We.focused || void 0, "data-today": We.today || void 0 }, !We.hidden && oe ? ie.createElement(e.DayButton, { className: s[Me.DayButton], style: y == null ? void 0 : y[Me.DayButton], type: "button", day: ct, modifiers: We, disabled: We.disabled || void 0, tabIndex: z(ct) ? 0 : -1, "aria-label": Z(ze, We, i.options, i), onClick: we(ct, We), onBlur: G(ct, We), onFocus: ae(ct, We), onKeyDown: ee(ct, We), onMouseEnter: J(ct, We), onMouseLeave: Q(ct, We) }, b(ze, i.options, i)) : !We.hidden && b(ct.date, i.options, i));
|
|
3463
2921
|
})
|
|
3464
2922
|
)))
|
|
@@ -3470,7 +2928,561 @@ function uA(t) {
|
|
|
3470
2928
|
)
|
|
3471
2929
|
);
|
|
3472
2930
|
}
|
|
3473
|
-
|
|
2931
|
+
function Ns(t, e) {
|
|
2932
|
+
if (t.one !== void 0 && e === 1)
|
|
2933
|
+
return t.one;
|
|
2934
|
+
const n = e % 10, r = e % 100;
|
|
2935
|
+
return n === 1 && r !== 11 ? t.singularNominative.replace("{{count}}", String(e)) : n >= 2 && n <= 4 && (r < 10 || r > 20) ? t.singularGenitive.replace("{{count}}", String(e)) : t.pluralGenitive.replace("{{count}}", String(e));
|
|
2936
|
+
}
|
|
2937
|
+
function tn(t) {
|
|
2938
|
+
return (e, n) => n != null && n.addSuffix ? n.comparison && n.comparison > 0 ? t.future ? Ns(t.future, e) : "через " + Ns(t.regular, e) : t.past ? Ns(t.past, e) : Ns(t.regular, e) + " назад" : Ns(t.regular, e);
|
|
2939
|
+
}
|
|
2940
|
+
const RP = {
|
|
2941
|
+
lessThanXSeconds: tn({
|
|
2942
|
+
regular: {
|
|
2943
|
+
one: "меньше секунды",
|
|
2944
|
+
singularNominative: "меньше {{count}} секунды",
|
|
2945
|
+
singularGenitive: "меньше {{count}} секунд",
|
|
2946
|
+
pluralGenitive: "меньше {{count}} секунд"
|
|
2947
|
+
},
|
|
2948
|
+
future: {
|
|
2949
|
+
one: "меньше, чем через секунду",
|
|
2950
|
+
singularNominative: "меньше, чем через {{count}} секунду",
|
|
2951
|
+
singularGenitive: "меньше, чем через {{count}} секунды",
|
|
2952
|
+
pluralGenitive: "меньше, чем через {{count}} секунд"
|
|
2953
|
+
}
|
|
2954
|
+
}),
|
|
2955
|
+
xSeconds: tn({
|
|
2956
|
+
regular: {
|
|
2957
|
+
singularNominative: "{{count}} секунда",
|
|
2958
|
+
singularGenitive: "{{count}} секунды",
|
|
2959
|
+
pluralGenitive: "{{count}} секунд"
|
|
2960
|
+
},
|
|
2961
|
+
past: {
|
|
2962
|
+
singularNominative: "{{count}} секунду назад",
|
|
2963
|
+
singularGenitive: "{{count}} секунды назад",
|
|
2964
|
+
pluralGenitive: "{{count}} секунд назад"
|
|
2965
|
+
},
|
|
2966
|
+
future: {
|
|
2967
|
+
singularNominative: "через {{count}} секунду",
|
|
2968
|
+
singularGenitive: "через {{count}} секунды",
|
|
2969
|
+
pluralGenitive: "через {{count}} секунд"
|
|
2970
|
+
}
|
|
2971
|
+
}),
|
|
2972
|
+
halfAMinute: (t, e) => e != null && e.addSuffix ? e.comparison && e.comparison > 0 ? "через полминуты" : "полминуты назад" : "полминуты",
|
|
2973
|
+
lessThanXMinutes: tn({
|
|
2974
|
+
regular: {
|
|
2975
|
+
one: "меньше минуты",
|
|
2976
|
+
singularNominative: "меньше {{count}} минуты",
|
|
2977
|
+
singularGenitive: "меньше {{count}} минут",
|
|
2978
|
+
pluralGenitive: "меньше {{count}} минут"
|
|
2979
|
+
},
|
|
2980
|
+
future: {
|
|
2981
|
+
one: "меньше, чем через минуту",
|
|
2982
|
+
singularNominative: "меньше, чем через {{count}} минуту",
|
|
2983
|
+
singularGenitive: "меньше, чем через {{count}} минуты",
|
|
2984
|
+
pluralGenitive: "меньше, чем через {{count}} минут"
|
|
2985
|
+
}
|
|
2986
|
+
}),
|
|
2987
|
+
xMinutes: tn({
|
|
2988
|
+
regular: {
|
|
2989
|
+
singularNominative: "{{count}} минута",
|
|
2990
|
+
singularGenitive: "{{count}} минуты",
|
|
2991
|
+
pluralGenitive: "{{count}} минут"
|
|
2992
|
+
},
|
|
2993
|
+
past: {
|
|
2994
|
+
singularNominative: "{{count}} минуту назад",
|
|
2995
|
+
singularGenitive: "{{count}} минуты назад",
|
|
2996
|
+
pluralGenitive: "{{count}} минут назад"
|
|
2997
|
+
},
|
|
2998
|
+
future: {
|
|
2999
|
+
singularNominative: "через {{count}} минуту",
|
|
3000
|
+
singularGenitive: "через {{count}} минуты",
|
|
3001
|
+
pluralGenitive: "через {{count}} минут"
|
|
3002
|
+
}
|
|
3003
|
+
}),
|
|
3004
|
+
aboutXHours: tn({
|
|
3005
|
+
regular: {
|
|
3006
|
+
singularNominative: "около {{count}} часа",
|
|
3007
|
+
singularGenitive: "около {{count}} часов",
|
|
3008
|
+
pluralGenitive: "около {{count}} часов"
|
|
3009
|
+
},
|
|
3010
|
+
future: {
|
|
3011
|
+
singularNominative: "приблизительно через {{count}} час",
|
|
3012
|
+
singularGenitive: "приблизительно через {{count}} часа",
|
|
3013
|
+
pluralGenitive: "приблизительно через {{count}} часов"
|
|
3014
|
+
}
|
|
3015
|
+
}),
|
|
3016
|
+
xHours: tn({
|
|
3017
|
+
regular: {
|
|
3018
|
+
singularNominative: "{{count}} час",
|
|
3019
|
+
singularGenitive: "{{count}} часа",
|
|
3020
|
+
pluralGenitive: "{{count}} часов"
|
|
3021
|
+
}
|
|
3022
|
+
}),
|
|
3023
|
+
xDays: tn({
|
|
3024
|
+
regular: {
|
|
3025
|
+
singularNominative: "{{count}} день",
|
|
3026
|
+
singularGenitive: "{{count}} дня",
|
|
3027
|
+
pluralGenitive: "{{count}} дней"
|
|
3028
|
+
}
|
|
3029
|
+
}),
|
|
3030
|
+
aboutXWeeks: tn({
|
|
3031
|
+
regular: {
|
|
3032
|
+
singularNominative: "около {{count}} недели",
|
|
3033
|
+
singularGenitive: "около {{count}} недель",
|
|
3034
|
+
pluralGenitive: "около {{count}} недель"
|
|
3035
|
+
},
|
|
3036
|
+
future: {
|
|
3037
|
+
singularNominative: "приблизительно через {{count}} неделю",
|
|
3038
|
+
singularGenitive: "приблизительно через {{count}} недели",
|
|
3039
|
+
pluralGenitive: "приблизительно через {{count}} недель"
|
|
3040
|
+
}
|
|
3041
|
+
}),
|
|
3042
|
+
xWeeks: tn({
|
|
3043
|
+
regular: {
|
|
3044
|
+
singularNominative: "{{count}} неделя",
|
|
3045
|
+
singularGenitive: "{{count}} недели",
|
|
3046
|
+
pluralGenitive: "{{count}} недель"
|
|
3047
|
+
}
|
|
3048
|
+
}),
|
|
3049
|
+
aboutXMonths: tn({
|
|
3050
|
+
regular: {
|
|
3051
|
+
singularNominative: "около {{count}} месяца",
|
|
3052
|
+
singularGenitive: "около {{count}} месяцев",
|
|
3053
|
+
pluralGenitive: "около {{count}} месяцев"
|
|
3054
|
+
},
|
|
3055
|
+
future: {
|
|
3056
|
+
singularNominative: "приблизительно через {{count}} месяц",
|
|
3057
|
+
singularGenitive: "приблизительно через {{count}} месяца",
|
|
3058
|
+
pluralGenitive: "приблизительно через {{count}} месяцев"
|
|
3059
|
+
}
|
|
3060
|
+
}),
|
|
3061
|
+
xMonths: tn({
|
|
3062
|
+
regular: {
|
|
3063
|
+
singularNominative: "{{count}} месяц",
|
|
3064
|
+
singularGenitive: "{{count}} месяца",
|
|
3065
|
+
pluralGenitive: "{{count}} месяцев"
|
|
3066
|
+
}
|
|
3067
|
+
}),
|
|
3068
|
+
aboutXYears: tn({
|
|
3069
|
+
regular: {
|
|
3070
|
+
singularNominative: "около {{count}} года",
|
|
3071
|
+
singularGenitive: "около {{count}} лет",
|
|
3072
|
+
pluralGenitive: "около {{count}} лет"
|
|
3073
|
+
},
|
|
3074
|
+
future: {
|
|
3075
|
+
singularNominative: "приблизительно через {{count}} год",
|
|
3076
|
+
singularGenitive: "приблизительно через {{count}} года",
|
|
3077
|
+
pluralGenitive: "приблизительно через {{count}} лет"
|
|
3078
|
+
}
|
|
3079
|
+
}),
|
|
3080
|
+
xYears: tn({
|
|
3081
|
+
regular: {
|
|
3082
|
+
singularNominative: "{{count}} год",
|
|
3083
|
+
singularGenitive: "{{count}} года",
|
|
3084
|
+
pluralGenitive: "{{count}} лет"
|
|
3085
|
+
}
|
|
3086
|
+
}),
|
|
3087
|
+
overXYears: tn({
|
|
3088
|
+
regular: {
|
|
3089
|
+
singularNominative: "больше {{count}} года",
|
|
3090
|
+
singularGenitive: "больше {{count}} лет",
|
|
3091
|
+
pluralGenitive: "больше {{count}} лет"
|
|
3092
|
+
},
|
|
3093
|
+
future: {
|
|
3094
|
+
singularNominative: "больше, чем через {{count}} год",
|
|
3095
|
+
singularGenitive: "больше, чем через {{count}} года",
|
|
3096
|
+
pluralGenitive: "больше, чем через {{count}} лет"
|
|
3097
|
+
}
|
|
3098
|
+
}),
|
|
3099
|
+
almostXYears: tn({
|
|
3100
|
+
regular: {
|
|
3101
|
+
singularNominative: "почти {{count}} год",
|
|
3102
|
+
singularGenitive: "почти {{count}} года",
|
|
3103
|
+
pluralGenitive: "почти {{count}} лет"
|
|
3104
|
+
},
|
|
3105
|
+
future: {
|
|
3106
|
+
singularNominative: "почти через {{count}} год",
|
|
3107
|
+
singularGenitive: "почти через {{count}} года",
|
|
3108
|
+
pluralGenitive: "почти через {{count}} лет"
|
|
3109
|
+
}
|
|
3110
|
+
})
|
|
3111
|
+
}, NP = (t, e, n) => RP[t](e, n), IP = {
|
|
3112
|
+
full: "EEEE, d MMMM y 'г.'",
|
|
3113
|
+
long: "d MMMM y 'г.'",
|
|
3114
|
+
medium: "d MMM y 'г.'",
|
|
3115
|
+
short: "dd.MM.y"
|
|
3116
|
+
}, jP = {
|
|
3117
|
+
full: "H:mm:ss zzzz",
|
|
3118
|
+
long: "H:mm:ss z",
|
|
3119
|
+
medium: "H:mm:ss",
|
|
3120
|
+
short: "H:mm"
|
|
3121
|
+
}, LP = {
|
|
3122
|
+
any: "{{date}}, {{time}}"
|
|
3123
|
+
}, _P = {
|
|
3124
|
+
date: Ku({
|
|
3125
|
+
formats: IP,
|
|
3126
|
+
defaultWidth: "full"
|
|
3127
|
+
}),
|
|
3128
|
+
time: Ku({
|
|
3129
|
+
formats: jP,
|
|
3130
|
+
defaultWidth: "full"
|
|
3131
|
+
}),
|
|
3132
|
+
dateTime: Ku({
|
|
3133
|
+
formats: LP,
|
|
3134
|
+
defaultWidth: "any"
|
|
3135
|
+
})
|
|
3136
|
+
}, vh = [
|
|
3137
|
+
"воскресенье",
|
|
3138
|
+
"понедельник",
|
|
3139
|
+
"вторник",
|
|
3140
|
+
"среду",
|
|
3141
|
+
"четверг",
|
|
3142
|
+
"пятницу",
|
|
3143
|
+
"субботу"
|
|
3144
|
+
];
|
|
3145
|
+
function FP(t) {
|
|
3146
|
+
const e = vh[t];
|
|
3147
|
+
switch (t) {
|
|
3148
|
+
case 0:
|
|
3149
|
+
return "'в прошлое " + e + " в' p";
|
|
3150
|
+
case 1:
|
|
3151
|
+
case 2:
|
|
3152
|
+
case 4:
|
|
3153
|
+
return "'в прошлый " + e + " в' p";
|
|
3154
|
+
case 3:
|
|
3155
|
+
case 5:
|
|
3156
|
+
case 6:
|
|
3157
|
+
return "'в прошлую " + e + " в' p";
|
|
3158
|
+
}
|
|
3159
|
+
}
|
|
3160
|
+
function Vg(t) {
|
|
3161
|
+
const e = vh[t];
|
|
3162
|
+
return t === 2 ? "'во " + e + " в' p" : "'в " + e + " в' p";
|
|
3163
|
+
}
|
|
3164
|
+
function BP(t) {
|
|
3165
|
+
const e = vh[t];
|
|
3166
|
+
switch (t) {
|
|
3167
|
+
case 0:
|
|
3168
|
+
return "'в следующее " + e + " в' p";
|
|
3169
|
+
case 1:
|
|
3170
|
+
case 2:
|
|
3171
|
+
case 4:
|
|
3172
|
+
return "'в следующий " + e + " в' p";
|
|
3173
|
+
case 3:
|
|
3174
|
+
case 5:
|
|
3175
|
+
case 6:
|
|
3176
|
+
return "'в следующую " + e + " в' p";
|
|
3177
|
+
}
|
|
3178
|
+
}
|
|
3179
|
+
const $P = {
|
|
3180
|
+
lastWeek: (t, e, n) => {
|
|
3181
|
+
const r = t.getDay();
|
|
3182
|
+
return Dg(t, e, n) ? Vg(r) : FP(r);
|
|
3183
|
+
},
|
|
3184
|
+
yesterday: "'вчера в' p",
|
|
3185
|
+
today: "'сегодня в' p",
|
|
3186
|
+
tomorrow: "'завтра в' p",
|
|
3187
|
+
nextWeek: (t, e, n) => {
|
|
3188
|
+
const r = t.getDay();
|
|
3189
|
+
return Dg(t, e, n) ? Vg(r) : BP(r);
|
|
3190
|
+
},
|
|
3191
|
+
other: "P"
|
|
3192
|
+
}, VP = (t, e, n, r) => {
|
|
3193
|
+
const i = $P[t];
|
|
3194
|
+
return typeof i == "function" ? i(e, n, r) : i;
|
|
3195
|
+
}, zP = {
|
|
3196
|
+
narrow: ["до н.э.", "н.э."],
|
|
3197
|
+
abbreviated: ["до н. э.", "н. э."],
|
|
3198
|
+
wide: ["до нашей эры", "нашей эры"]
|
|
3199
|
+
}, WP = {
|
|
3200
|
+
narrow: ["1", "2", "3", "4"],
|
|
3201
|
+
abbreviated: ["1-й кв.", "2-й кв.", "3-й кв.", "4-й кв."],
|
|
3202
|
+
wide: ["1-й квартал", "2-й квартал", "3-й квартал", "4-й квартал"]
|
|
3203
|
+
}, HP = {
|
|
3204
|
+
narrow: ["Я", "Ф", "М", "А", "М", "И", "И", "А", "С", "О", "Н", "Д"],
|
|
3205
|
+
abbreviated: [
|
|
3206
|
+
"янв.",
|
|
3207
|
+
"фев.",
|
|
3208
|
+
"март",
|
|
3209
|
+
"апр.",
|
|
3210
|
+
"май",
|
|
3211
|
+
"июнь",
|
|
3212
|
+
"июль",
|
|
3213
|
+
"авг.",
|
|
3214
|
+
"сент.",
|
|
3215
|
+
"окт.",
|
|
3216
|
+
"нояб.",
|
|
3217
|
+
"дек."
|
|
3218
|
+
],
|
|
3219
|
+
wide: [
|
|
3220
|
+
"январь",
|
|
3221
|
+
"февраль",
|
|
3222
|
+
"март",
|
|
3223
|
+
"апрель",
|
|
3224
|
+
"май",
|
|
3225
|
+
"июнь",
|
|
3226
|
+
"июль",
|
|
3227
|
+
"август",
|
|
3228
|
+
"сентябрь",
|
|
3229
|
+
"октябрь",
|
|
3230
|
+
"ноябрь",
|
|
3231
|
+
"декабрь"
|
|
3232
|
+
]
|
|
3233
|
+
}, UP = {
|
|
3234
|
+
narrow: ["Я", "Ф", "М", "А", "М", "И", "И", "А", "С", "О", "Н", "Д"],
|
|
3235
|
+
abbreviated: [
|
|
3236
|
+
"янв.",
|
|
3237
|
+
"фев.",
|
|
3238
|
+
"мар.",
|
|
3239
|
+
"апр.",
|
|
3240
|
+
"мая",
|
|
3241
|
+
"июн.",
|
|
3242
|
+
"июл.",
|
|
3243
|
+
"авг.",
|
|
3244
|
+
"сент.",
|
|
3245
|
+
"окт.",
|
|
3246
|
+
"нояб.",
|
|
3247
|
+
"дек."
|
|
3248
|
+
],
|
|
3249
|
+
wide: [
|
|
3250
|
+
"января",
|
|
3251
|
+
"февраля",
|
|
3252
|
+
"марта",
|
|
3253
|
+
"апреля",
|
|
3254
|
+
"мая",
|
|
3255
|
+
"июня",
|
|
3256
|
+
"июля",
|
|
3257
|
+
"августа",
|
|
3258
|
+
"сентября",
|
|
3259
|
+
"октября",
|
|
3260
|
+
"ноября",
|
|
3261
|
+
"декабря"
|
|
3262
|
+
]
|
|
3263
|
+
}, KP = {
|
|
3264
|
+
narrow: ["В", "П", "В", "С", "Ч", "П", "С"],
|
|
3265
|
+
short: ["вс", "пн", "вт", "ср", "чт", "пт", "сб"],
|
|
3266
|
+
abbreviated: ["вск", "пнд", "втр", "срд", "чтв", "птн", "суб"],
|
|
3267
|
+
wide: [
|
|
3268
|
+
"воскресенье",
|
|
3269
|
+
"понедельник",
|
|
3270
|
+
"вторник",
|
|
3271
|
+
"среда",
|
|
3272
|
+
"четверг",
|
|
3273
|
+
"пятница",
|
|
3274
|
+
"суббота"
|
|
3275
|
+
]
|
|
3276
|
+
}, qP = {
|
|
3277
|
+
narrow: {
|
|
3278
|
+
am: "ДП",
|
|
3279
|
+
pm: "ПП",
|
|
3280
|
+
midnight: "полн.",
|
|
3281
|
+
noon: "полд.",
|
|
3282
|
+
morning: "утро",
|
|
3283
|
+
afternoon: "день",
|
|
3284
|
+
evening: "веч.",
|
|
3285
|
+
night: "ночь"
|
|
3286
|
+
},
|
|
3287
|
+
abbreviated: {
|
|
3288
|
+
am: "ДП",
|
|
3289
|
+
pm: "ПП",
|
|
3290
|
+
midnight: "полн.",
|
|
3291
|
+
noon: "полд.",
|
|
3292
|
+
morning: "утро",
|
|
3293
|
+
afternoon: "день",
|
|
3294
|
+
evening: "веч.",
|
|
3295
|
+
night: "ночь"
|
|
3296
|
+
},
|
|
3297
|
+
wide: {
|
|
3298
|
+
am: "ДП",
|
|
3299
|
+
pm: "ПП",
|
|
3300
|
+
midnight: "полночь",
|
|
3301
|
+
noon: "полдень",
|
|
3302
|
+
morning: "утро",
|
|
3303
|
+
afternoon: "день",
|
|
3304
|
+
evening: "вечер",
|
|
3305
|
+
night: "ночь"
|
|
3306
|
+
}
|
|
3307
|
+
}, GP = {
|
|
3308
|
+
narrow: {
|
|
3309
|
+
am: "ДП",
|
|
3310
|
+
pm: "ПП",
|
|
3311
|
+
midnight: "полн.",
|
|
3312
|
+
noon: "полд.",
|
|
3313
|
+
morning: "утра",
|
|
3314
|
+
afternoon: "дня",
|
|
3315
|
+
evening: "веч.",
|
|
3316
|
+
night: "ночи"
|
|
3317
|
+
},
|
|
3318
|
+
abbreviated: {
|
|
3319
|
+
am: "ДП",
|
|
3320
|
+
pm: "ПП",
|
|
3321
|
+
midnight: "полн.",
|
|
3322
|
+
noon: "полд.",
|
|
3323
|
+
morning: "утра",
|
|
3324
|
+
afternoon: "дня",
|
|
3325
|
+
evening: "веч.",
|
|
3326
|
+
night: "ночи"
|
|
3327
|
+
},
|
|
3328
|
+
wide: {
|
|
3329
|
+
am: "ДП",
|
|
3330
|
+
pm: "ПП",
|
|
3331
|
+
midnight: "полночь",
|
|
3332
|
+
noon: "полдень",
|
|
3333
|
+
morning: "утра",
|
|
3334
|
+
afternoon: "дня",
|
|
3335
|
+
evening: "вечера",
|
|
3336
|
+
night: "ночи"
|
|
3337
|
+
}
|
|
3338
|
+
}, YP = (t, e) => {
|
|
3339
|
+
const n = Number(t), r = e == null ? void 0 : e.unit;
|
|
3340
|
+
let i;
|
|
3341
|
+
return r === "date" ? i = "-е" : r === "week" || r === "minute" || r === "second" ? i = "-я" : i = "-й", n + i;
|
|
3342
|
+
}, JP = {
|
|
3343
|
+
ordinalNumber: YP,
|
|
3344
|
+
era: Ps({
|
|
3345
|
+
values: zP,
|
|
3346
|
+
defaultWidth: "wide"
|
|
3347
|
+
}),
|
|
3348
|
+
quarter: Ps({
|
|
3349
|
+
values: WP,
|
|
3350
|
+
defaultWidth: "wide",
|
|
3351
|
+
argumentCallback: (t) => t - 1
|
|
3352
|
+
}),
|
|
3353
|
+
month: Ps({
|
|
3354
|
+
values: HP,
|
|
3355
|
+
defaultWidth: "wide",
|
|
3356
|
+
formattingValues: UP,
|
|
3357
|
+
defaultFormattingWidth: "wide"
|
|
3358
|
+
}),
|
|
3359
|
+
day: Ps({
|
|
3360
|
+
values: KP,
|
|
3361
|
+
defaultWidth: "wide"
|
|
3362
|
+
}),
|
|
3363
|
+
dayPeriod: Ps({
|
|
3364
|
+
values: qP,
|
|
3365
|
+
defaultWidth: "any",
|
|
3366
|
+
formattingValues: GP,
|
|
3367
|
+
defaultFormattingWidth: "wide"
|
|
3368
|
+
})
|
|
3369
|
+
}, XP = /^(\d+)(-?(е|я|й|ое|ье|ая|ья|ый|ой|ий|ый))?/i, QP = /\d+/i, ZP = {
|
|
3370
|
+
narrow: /^((до )?н\.?\s?э\.?)/i,
|
|
3371
|
+
abbreviated: /^((до )?н\.?\s?э\.?)/i,
|
|
3372
|
+
wide: /^(до нашей эры|нашей эры|наша эра)/i
|
|
3373
|
+
}, eA = {
|
|
3374
|
+
any: [/^д/i, /^н/i]
|
|
3375
|
+
}, tA = {
|
|
3376
|
+
narrow: /^[1234]/i,
|
|
3377
|
+
abbreviated: /^[1234](-?[ыои]?й?)? кв.?/i,
|
|
3378
|
+
wide: /^[1234](-?[ыои]?й?)? квартал/i
|
|
3379
|
+
}, nA = {
|
|
3380
|
+
any: [/1/i, /2/i, /3/i, /4/i]
|
|
3381
|
+
}, rA = {
|
|
3382
|
+
narrow: /^[яфмаисонд]/i,
|
|
3383
|
+
abbreviated: /^(янв|фев|март?|апр|ма[йя]|июн[ья]?|июл[ья]?|авг|сент?|окт|нояб?|дек)\.?/i,
|
|
3384
|
+
wide: /^(январ[ья]|феврал[ья]|марта?|апрел[ья]|ма[йя]|июн[ья]|июл[ья]|августа?|сентябр[ья]|октябр[ья]|октябр[ья]|ноябр[ья]|декабр[ья])/i
|
|
3385
|
+
}, iA = {
|
|
3386
|
+
narrow: [
|
|
3387
|
+
/^я/i,
|
|
3388
|
+
/^ф/i,
|
|
3389
|
+
/^м/i,
|
|
3390
|
+
/^а/i,
|
|
3391
|
+
/^м/i,
|
|
3392
|
+
/^и/i,
|
|
3393
|
+
/^и/i,
|
|
3394
|
+
/^а/i,
|
|
3395
|
+
/^с/i,
|
|
3396
|
+
/^о/i,
|
|
3397
|
+
/^н/i,
|
|
3398
|
+
/^я/i
|
|
3399
|
+
],
|
|
3400
|
+
any: [
|
|
3401
|
+
/^я/i,
|
|
3402
|
+
/^ф/i,
|
|
3403
|
+
/^мар/i,
|
|
3404
|
+
/^ап/i,
|
|
3405
|
+
/^ма[йя]/i,
|
|
3406
|
+
/^июн/i,
|
|
3407
|
+
/^июл/i,
|
|
3408
|
+
/^ав/i,
|
|
3409
|
+
/^с/i,
|
|
3410
|
+
/^о/i,
|
|
3411
|
+
/^н/i,
|
|
3412
|
+
/^д/i
|
|
3413
|
+
]
|
|
3414
|
+
}, oA = {
|
|
3415
|
+
narrow: /^[впсч]/i,
|
|
3416
|
+
short: /^(вс|во|пн|по|вт|ср|чт|че|пт|пя|сб|су)\.?/i,
|
|
3417
|
+
abbreviated: /^(вск|вос|пнд|пон|втр|вто|срд|сре|чтв|чет|птн|пят|суб).?/i,
|
|
3418
|
+
wide: /^(воскресень[ея]|понедельника?|вторника?|сред[аы]|четверга?|пятниц[аы]|суббот[аы])/i
|
|
3419
|
+
}, sA = {
|
|
3420
|
+
narrow: [/^в/i, /^п/i, /^в/i, /^с/i, /^ч/i, /^п/i, /^с/i],
|
|
3421
|
+
any: [/^в[ос]/i, /^п[он]/i, /^в/i, /^ср/i, /^ч/i, /^п[ят]/i, /^с[уб]/i]
|
|
3422
|
+
}, aA = {
|
|
3423
|
+
narrow: /^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,
|
|
3424
|
+
abbreviated: /^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,
|
|
3425
|
+
wide: /^([дп]п|полночь|полдень|утр[оа]|день|дня|вечера?|ноч[ьи])/i
|
|
3426
|
+
}, lA = {
|
|
3427
|
+
any: {
|
|
3428
|
+
am: /^дп/i,
|
|
3429
|
+
pm: /^пп/i,
|
|
3430
|
+
midnight: /^полн/i,
|
|
3431
|
+
noon: /^полд/i,
|
|
3432
|
+
morning: /^у/i,
|
|
3433
|
+
afternoon: /^д[ен]/i,
|
|
3434
|
+
evening: /^в/i,
|
|
3435
|
+
night: /^н/i
|
|
3436
|
+
}
|
|
3437
|
+
}, cA = {
|
|
3438
|
+
ordinalNumber: vO({
|
|
3439
|
+
matchPattern: XP,
|
|
3440
|
+
parsePattern: QP,
|
|
3441
|
+
valueCallback: (t) => parseInt(t, 10)
|
|
3442
|
+
}),
|
|
3443
|
+
era: As({
|
|
3444
|
+
matchPatterns: ZP,
|
|
3445
|
+
defaultMatchWidth: "wide",
|
|
3446
|
+
parsePatterns: eA,
|
|
3447
|
+
defaultParseWidth: "any"
|
|
3448
|
+
}),
|
|
3449
|
+
quarter: As({
|
|
3450
|
+
matchPatterns: tA,
|
|
3451
|
+
defaultMatchWidth: "wide",
|
|
3452
|
+
parsePatterns: nA,
|
|
3453
|
+
defaultParseWidth: "any",
|
|
3454
|
+
valueCallback: (t) => t + 1
|
|
3455
|
+
}),
|
|
3456
|
+
month: As({
|
|
3457
|
+
matchPatterns: rA,
|
|
3458
|
+
defaultMatchWidth: "wide",
|
|
3459
|
+
parsePatterns: iA,
|
|
3460
|
+
defaultParseWidth: "any"
|
|
3461
|
+
}),
|
|
3462
|
+
day: As({
|
|
3463
|
+
matchPatterns: oA,
|
|
3464
|
+
defaultMatchWidth: "wide",
|
|
3465
|
+
parsePatterns: sA,
|
|
3466
|
+
defaultParseWidth: "any"
|
|
3467
|
+
}),
|
|
3468
|
+
dayPeriod: As({
|
|
3469
|
+
matchPatterns: aA,
|
|
3470
|
+
defaultMatchWidth: "wide",
|
|
3471
|
+
parsePatterns: lA,
|
|
3472
|
+
defaultParseWidth: "any"
|
|
3473
|
+
})
|
|
3474
|
+
}, uA = {
|
|
3475
|
+
code: "ru",
|
|
3476
|
+
formatDistance: NP,
|
|
3477
|
+
formatLong: _P,
|
|
3478
|
+
formatRelative: VP,
|
|
3479
|
+
localize: JP,
|
|
3480
|
+
match: cA,
|
|
3481
|
+
options: {
|
|
3482
|
+
weekStartsOn: 1,
|
|
3483
|
+
firstWeekContainsDate: 1
|
|
3484
|
+
}
|
|
3485
|
+
}, dA = ({ className: t, ...e }) => /* @__PURE__ */ P.jsx(
|
|
3474
3486
|
"button",
|
|
3475
3487
|
{
|
|
3476
3488
|
...e,
|
|
@@ -3538,7 +3550,7 @@ const dA = ({ className: t, ...e }) => /* @__PURE__ */ P.jsx(
|
|
|
3538
3550
|
}
|
|
3539
3551
|
);
|
|
3540
3552
|
}, gA = ({ className: t, day: e, children: n, disabledAfterToday: r = !0, ...i }) => {
|
|
3541
|
-
const o = /* @__PURE__ */ new Date(), s = e.isEqualTo(new
|
|
3553
|
+
const o = /* @__PURE__ */ new Date(), s = e.isEqualTo(new mh(o, o)), a = e.date.getFullYear() > o.getFullYear();
|
|
3542
3554
|
return /* @__PURE__ */ P.jsxs(
|
|
3543
3555
|
"td",
|
|
3544
3556
|
{
|
|
@@ -8584,13 +8596,13 @@ const HI = (t, e) => Oh(t) ? new WI(e) : new zI(e, {
|
|
|
8584
8596
|
),
|
|
8585
8597
|
children: [
|
|
8586
8598
|
/* @__PURE__ */ P.jsx(
|
|
8587
|
-
|
|
8599
|
+
DP,
|
|
8588
8600
|
{
|
|
8589
8601
|
...l,
|
|
8590
8602
|
fixedWeeks: !0,
|
|
8591
8603
|
captionLayout: "dropdown",
|
|
8592
8604
|
showOutsideDays: e,
|
|
8593
|
-
locale:
|
|
8605
|
+
locale: uA,
|
|
8594
8606
|
classNames: u,
|
|
8595
8607
|
components: {
|
|
8596
8608
|
Day: (d) => /* @__PURE__ */ P.jsx(gA, { ...d, disabledAfterToday: s }),
|
|
@@ -42689,4 +42701,4 @@ export {
|
|
|
42689
42701
|
l9 as y,
|
|
42690
42702
|
IW as z
|
|
42691
42703
|
};
|
|
42692
|
-
//# sourceMappingURL=index-
|
|
42704
|
+
//# sourceMappingURL=index-agLtUw8q.js.map
|