cdn.js 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690
  1. (() => {
  2. var _window$dateFns;function _typeof(o) {"@babel/helpers - typeof";return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {return typeof o;} : function (o) {return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;}, _typeof(o);}function ownKeys(e, r) {var t = Object.keys(e);if (Object.getOwnPropertySymbols) {var o = Object.getOwnPropertySymbols(e);r && (o = o.filter(function (r) {return Object.getOwnPropertyDescriptor(e, r).enumerable;})), t.push.apply(t, o);}return t;}function _objectSpread(e) {for (var r = 1; r < arguments.length; r++) {var t = null != arguments[r] ? arguments[r] : {};r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {_defineProperty(e, r, t[r]);}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));});}return e;}function _defineProperty(obj, key, value) {key = _toPropertyKey(key);if (key in obj) {Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true });} else {obj[key] = value;}return obj;}function _toPropertyKey(t) {var i = _toPrimitive(t, "string");return "symbol" == _typeof(i) ? i : String(i);}function _toPrimitive(t, r) {if ("object" != _typeof(t) || !t) return t;var e = t[Symbol.toPrimitive];if (void 0 !== e) {var i = e.call(t, r || "default");if ("object" != _typeof(i)) return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return ("string" === r ? String : Number)(t);}var __defProp = Object.defineProperty;
  3. var __export = function __export(target, all) {
  4. for (var name in all)
  5. __defProp(target, name, {
  6. get: all[name],
  7. enumerable: true,
  8. configurable: true,
  9. set: function set(newValue) {return all[name] = function () {return newValue;};}
  10. });
  11. };
  12. // lib/locale/sr-Latn/_lib/formatDistance.js
  13. var formatDistanceLocale = {
  14. lessThanXSeconds: {
  15. one: {
  16. standalone: "manje od 1 sekunde",
  17. withPrepositionAgo: "manje od 1 sekunde",
  18. withPrepositionIn: "manje od 1 sekundu"
  19. },
  20. dual: "manje od {{count}} sekunde",
  21. other: "manje od {{count}} sekundi"
  22. },
  23. xSeconds: {
  24. one: {
  25. standalone: "1 sekunda",
  26. withPrepositionAgo: "1 sekunde",
  27. withPrepositionIn: "1 sekundu"
  28. },
  29. dual: "{{count}} sekunde",
  30. other: "{{count}} sekundi"
  31. },
  32. halfAMinute: "pola minute",
  33. lessThanXMinutes: {
  34. one: {
  35. standalone: "manje od 1 minute",
  36. withPrepositionAgo: "manje od 1 minute",
  37. withPrepositionIn: "manje od 1 minutu"
  38. },
  39. dual: "manje od {{count}} minute",
  40. other: "manje od {{count}} minuta"
  41. },
  42. xMinutes: {
  43. one: {
  44. standalone: "1 minuta",
  45. withPrepositionAgo: "1 minute",
  46. withPrepositionIn: "1 minutu"
  47. },
  48. dual: "{{count}} minute",
  49. other: "{{count}} minuta"
  50. },
  51. aboutXHours: {
  52. one: {
  53. standalone: "oko 1 sat",
  54. withPrepositionAgo: "oko 1 sat",
  55. withPrepositionIn: "oko 1 sat"
  56. },
  57. dual: "oko {{count}} sata",
  58. other: "oko {{count}} sati"
  59. },
  60. xHours: {
  61. one: {
  62. standalone: "1 sat",
  63. withPrepositionAgo: "1 sat",
  64. withPrepositionIn: "1 sat"
  65. },
  66. dual: "{{count}} sata",
  67. other: "{{count}} sati"
  68. },
  69. xDays: {
  70. one: {
  71. standalone: "1 dan",
  72. withPrepositionAgo: "1 dan",
  73. withPrepositionIn: "1 dan"
  74. },
  75. dual: "{{count}} dana",
  76. other: "{{count}} dana"
  77. },
  78. aboutXWeeks: {
  79. one: {
  80. standalone: "oko 1 nedelju",
  81. withPrepositionAgo: "oko 1 nedelju",
  82. withPrepositionIn: "oko 1 nedelju"
  83. },
  84. dual: "oko {{count}} nedelje",
  85. other: "oko {{count}} nedelje"
  86. },
  87. xWeeks: {
  88. one: {
  89. standalone: "1 nedelju",
  90. withPrepositionAgo: "1 nedelju",
  91. withPrepositionIn: "1 nedelju"
  92. },
  93. dual: "{{count}} nedelje",
  94. other: "{{count}} nedelje"
  95. },
  96. aboutXMonths: {
  97. one: {
  98. standalone: "oko 1 mesec",
  99. withPrepositionAgo: "oko 1 mesec",
  100. withPrepositionIn: "oko 1 mesec"
  101. },
  102. dual: "oko {{count}} meseca",
  103. other: "oko {{count}} meseci"
  104. },
  105. xMonths: {
  106. one: {
  107. standalone: "1 mesec",
  108. withPrepositionAgo: "1 mesec",
  109. withPrepositionIn: "1 mesec"
  110. },
  111. dual: "{{count}} meseca",
  112. other: "{{count}} meseci"
  113. },
  114. aboutXYears: {
  115. one: {
  116. standalone: "oko 1 godinu",
  117. withPrepositionAgo: "oko 1 godinu",
  118. withPrepositionIn: "oko 1 godinu"
  119. },
  120. dual: "oko {{count}} godine",
  121. other: "oko {{count}} godina"
  122. },
  123. xYears: {
  124. one: {
  125. standalone: "1 godina",
  126. withPrepositionAgo: "1 godine",
  127. withPrepositionIn: "1 godinu"
  128. },
  129. dual: "{{count}} godine",
  130. other: "{{count}} godina"
  131. },
  132. overXYears: {
  133. one: {
  134. standalone: "preko 1 godinu",
  135. withPrepositionAgo: "preko 1 godinu",
  136. withPrepositionIn: "preko 1 godinu"
  137. },
  138. dual: "preko {{count}} godine",
  139. other: "preko {{count}} godina"
  140. },
  141. almostXYears: {
  142. one: {
  143. standalone: "gotovo 1 godinu",
  144. withPrepositionAgo: "gotovo 1 godinu",
  145. withPrepositionIn: "gotovo 1 godinu"
  146. },
  147. dual: "gotovo {{count}} godine",
  148. other: "gotovo {{count}} godina"
  149. }
  150. };
  151. var formatDistance = function formatDistance(token, count, options) {
  152. var result;
  153. var tokenValue = formatDistanceLocale[token];
  154. if (typeof tokenValue === "string") {
  155. result = tokenValue;
  156. } else if (count === 1) {
  157. if (options !== null && options !== void 0 && options.addSuffix) {
  158. if (options.comparison && options.comparison > 0) {
  159. result = tokenValue.one.withPrepositionIn;
  160. } else {
  161. result = tokenValue.one.withPrepositionAgo;
  162. }
  163. } else {
  164. result = tokenValue.one.standalone;
  165. }
  166. } else if (count % 10 > 1 && count % 10 < 5 && String(count).substr(-2, 1) !== "1") {
  167. result = tokenValue.dual.replace("{{count}}", String(count));
  168. } else {
  169. result = tokenValue.other.replace("{{count}}", String(count));
  170. }
  171. if (options !== null && options !== void 0 && options.addSuffix) {
  172. if (options.comparison && options.comparison > 0) {
  173. return "za " + result;
  174. } else {
  175. return "pre " + result;
  176. }
  177. }
  178. return result;
  179. };
  180. // lib/locale/_lib/buildFormatLongFn.js
  181. function buildFormatLongFn(args) {
  182. return function () {var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  183. var width = options.width ? String(options.width) : args.defaultWidth;
  184. var format = args.formats[width] || args.formats[args.defaultWidth];
  185. return format;
  186. };
  187. }
  188. // lib/locale/sr-Latn/_lib/formatLong.js
  189. var dateFormats = {
  190. full: "EEEE, d. MMMM yyyy.",
  191. long: "d. MMMM yyyy.",
  192. medium: "d. MMM yy.",
  193. short: "dd. MM. yy."
  194. };
  195. var timeFormats = {
  196. full: "HH:mm:ss (zzzz)",
  197. long: "HH:mm:ss z",
  198. medium: "HH:mm:ss",
  199. short: "HH:mm"
  200. };
  201. var dateTimeFormats = {
  202. full: "{{date}} 'u' {{time}}",
  203. long: "{{date}} 'u' {{time}}",
  204. medium: "{{date}} {{time}}",
  205. short: "{{date}} {{time}}"
  206. };
  207. var formatLong = {
  208. date: buildFormatLongFn({
  209. formats: dateFormats,
  210. defaultWidth: "full"
  211. }),
  212. time: buildFormatLongFn({
  213. formats: timeFormats,
  214. defaultWidth: "full"
  215. }),
  216. dateTime: buildFormatLongFn({
  217. formats: dateTimeFormats,
  218. defaultWidth: "full"
  219. })
  220. };
  221. // lib/locale/sr-Latn/_lib/formatRelative.js
  222. var formatRelativeLocale = {
  223. lastWeek: function lastWeek(date) {
  224. switch (date.getDay()) {
  225. case 0:
  226. return "'pro\u0161le nedelje u' p";
  227. case 3:
  228. return "'pro\u0161le srede u' p";
  229. case 6:
  230. return "'pro\u0161le subote u' p";
  231. default:
  232. return "'pro\u0161li' EEEE 'u' p";
  233. }
  234. },
  235. yesterday: "'ju\u010De u' p",
  236. today: "'danas u' p",
  237. tomorrow: "'sutra u' p",
  238. nextWeek: function nextWeek(date) {
  239. switch (date.getDay()) {
  240. case 0:
  241. return "'slede\u0107e nedelje u' p";
  242. case 3:
  243. return "'slede\u0107u sredu u' p";
  244. case 6:
  245. return "'slede\u0107u subotu u' p";
  246. default:
  247. return "'slede\u0107i' EEEE 'u' p";
  248. }
  249. },
  250. other: "P"
  251. };
  252. var formatRelative = function formatRelative(token, date, _baseDate, _options) {
  253. var format = formatRelativeLocale[token];
  254. if (typeof format === "function") {
  255. return format(date);
  256. }
  257. return format;
  258. };
  259. // lib/locale/_lib/buildLocalizeFn.js
  260. function buildLocalizeFn(args) {
  261. return function (value, options) {
  262. var context = options !== null && options !== void 0 && options.context ? String(options.context) : "standalone";
  263. var valuesArray;
  264. if (context === "formatting" && args.formattingValues) {
  265. var defaultWidth = args.defaultFormattingWidth || args.defaultWidth;
  266. var width = options !== null && options !== void 0 && options.width ? String(options.width) : defaultWidth;
  267. valuesArray = args.formattingValues[width] || args.formattingValues[defaultWidth];
  268. } else {
  269. var _defaultWidth = args.defaultWidth;
  270. var _width = options !== null && options !== void 0 && options.width ? String(options.width) : args.defaultWidth;
  271. valuesArray = args.values[_width] || args.values[_defaultWidth];
  272. }
  273. var index = args.argumentCallback ? args.argumentCallback(value) : value;
  274. return valuesArray[index];
  275. };
  276. }
  277. // lib/locale/sr-Latn/_lib/localize.js
  278. var eraValues = {
  279. narrow: ["pr.n.e.", "AD"],
  280. abbreviated: ["pr. Hr.", "po. Hr."],
  281. wide: ["Pre Hrista", "Posle Hrista"]
  282. };
  283. var quarterValues = {
  284. narrow: ["1.", "2.", "3.", "4."],
  285. abbreviated: ["1. kv.", "2. kv.", "3. kv.", "4. kv."],
  286. wide: ["1. kvartal", "2. kvartal", "3. kvartal", "4. kvartal"]
  287. };
  288. var monthValues = {
  289. narrow: [
  290. "1.",
  291. "2.",
  292. "3.",
  293. "4.",
  294. "5.",
  295. "6.",
  296. "7.",
  297. "8.",
  298. "9.",
  299. "10.",
  300. "11.",
  301. "12."],
  302. abbreviated: [
  303. "jan",
  304. "feb",
  305. "mar",
  306. "apr",
  307. "maj",
  308. "jun",
  309. "jul",
  310. "avg",
  311. "sep",
  312. "okt",
  313. "nov",
  314. "dec"],
  315. wide: [
  316. "januar",
  317. "februar",
  318. "mart",
  319. "april",
  320. "maj",
  321. "jun",
  322. "jul",
  323. "avgust",
  324. "septembar",
  325. "oktobar",
  326. "novembar",
  327. "decembar"]
  328. };
  329. var formattingMonthValues = {
  330. narrow: [
  331. "1.",
  332. "2.",
  333. "3.",
  334. "4.",
  335. "5.",
  336. "6.",
  337. "7.",
  338. "8.",
  339. "9.",
  340. "10.",
  341. "11.",
  342. "12."],
  343. abbreviated: [
  344. "jan",
  345. "feb",
  346. "mar",
  347. "apr",
  348. "maj",
  349. "jun",
  350. "jul",
  351. "avg",
  352. "sep",
  353. "okt",
  354. "nov",
  355. "dec"],
  356. wide: [
  357. "januar",
  358. "februar",
  359. "mart",
  360. "april",
  361. "maj",
  362. "jun",
  363. "jul",
  364. "avgust",
  365. "septembar",
  366. "oktobar",
  367. "novembar",
  368. "decembar"]
  369. };
  370. var dayValues = {
  371. narrow: ["N", "P", "U", "S", "\u010C", "P", "S"],
  372. short: ["ned", "pon", "uto", "sre", "\u010Det", "pet", "sub"],
  373. abbreviated: ["ned", "pon", "uto", "sre", "\u010Det", "pet", "sub"],
  374. wide: [
  375. "nedelja",
  376. "ponedeljak",
  377. "utorak",
  378. "sreda",
  379. "\u010Detvrtak",
  380. "petak",
  381. "subota"]
  382. };
  383. var formattingDayPeriodValues = {
  384. narrow: {
  385. am: "AM",
  386. pm: "PM",
  387. midnight: "pono\u0107",
  388. noon: "podne",
  389. morning: "ujutru",
  390. afternoon: "popodne",
  391. evening: "uve\u010De",
  392. night: "no\u0107u"
  393. },
  394. abbreviated: {
  395. am: "AM",
  396. pm: "PM",
  397. midnight: "pono\u0107",
  398. noon: "podne",
  399. morning: "ujutru",
  400. afternoon: "popodne",
  401. evening: "uve\u010De",
  402. night: "no\u0107u"
  403. },
  404. wide: {
  405. am: "AM",
  406. pm: "PM",
  407. midnight: "pono\u0107",
  408. noon: "podne",
  409. morning: "ujutru",
  410. afternoon: "posle podne",
  411. evening: "uve\u010De",
  412. night: "no\u0107u"
  413. }
  414. };
  415. var dayPeriodValues = {
  416. narrow: {
  417. am: "AM",
  418. pm: "PM",
  419. midnight: "pono\u0107",
  420. noon: "podne",
  421. morning: "ujutru",
  422. afternoon: "popodne",
  423. evening: "uve\u010De",
  424. night: "no\u0107u"
  425. },
  426. abbreviated: {
  427. am: "AM",
  428. pm: "PM",
  429. midnight: "pono\u0107",
  430. noon: "podne",
  431. morning: "ujutru",
  432. afternoon: "popodne",
  433. evening: "uve\u010De",
  434. night: "no\u0107u"
  435. },
  436. wide: {
  437. am: "AM",
  438. pm: "PM",
  439. midnight: "pono\u0107",
  440. noon: "podne",
  441. morning: "ujutru",
  442. afternoon: "posle podne",
  443. evening: "uve\u010De",
  444. night: "no\u0107u"
  445. }
  446. };
  447. var ordinalNumber = function ordinalNumber(dirtyNumber, _options) {
  448. var number = Number(dirtyNumber);
  449. return number + ".";
  450. };
  451. var localize = {
  452. ordinalNumber: ordinalNumber,
  453. era: buildLocalizeFn({
  454. values: eraValues,
  455. defaultWidth: "wide"
  456. }),
  457. quarter: buildLocalizeFn({
  458. values: quarterValues,
  459. defaultWidth: "wide",
  460. argumentCallback: function argumentCallback(quarter) {return quarter - 1;}
  461. }),
  462. month: buildLocalizeFn({
  463. values: monthValues,
  464. defaultWidth: "wide",
  465. formattingValues: formattingMonthValues,
  466. defaultFormattingWidth: "wide"
  467. }),
  468. day: buildLocalizeFn({
  469. values: dayValues,
  470. defaultWidth: "wide"
  471. }),
  472. dayPeriod: buildLocalizeFn({
  473. values: dayPeriodValues,
  474. defaultWidth: "wide",
  475. formattingValues: formattingDayPeriodValues,
  476. defaultFormattingWidth: "wide"
  477. })
  478. };
  479. // lib/locale/_lib/buildMatchFn.js
  480. function buildMatchFn(args) {
  481. return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  482. var width = options.width;
  483. var matchPattern = width && args.matchPatterns[width] || args.matchPatterns[args.defaultMatchWidth];
  484. var matchResult = string.match(matchPattern);
  485. if (!matchResult) {
  486. return null;
  487. }
  488. var matchedString = matchResult[0];
  489. var parsePatterns = width && args.parsePatterns[width] || args.parsePatterns[args.defaultParseWidth];
  490. var key = Array.isArray(parsePatterns) ? findIndex(parsePatterns, function (pattern) {return pattern.test(matchedString);}) : findKey(parsePatterns, function (pattern) {return pattern.test(matchedString);});
  491. var value;
  492. value = args.valueCallback ? args.valueCallback(key) : key;
  493. value = options.valueCallback ? options.valueCallback(value) : value;
  494. var rest = string.slice(matchedString.length);
  495. return { value: value, rest: rest };
  496. };
  497. }
  498. function findKey(object, predicate) {
  499. for (var key in object) {
  500. if (Object.prototype.hasOwnProperty.call(object, key) && predicate(object[key])) {
  501. return key;
  502. }
  503. }
  504. return;
  505. }
  506. function findIndex(array, predicate) {
  507. for (var key = 0; key < array.length; key++) {
  508. if (predicate(array[key])) {
  509. return key;
  510. }
  511. }
  512. return;
  513. }
  514. // lib/locale/_lib/buildMatchPatternFn.js
  515. function buildMatchPatternFn(args) {
  516. return function (string) {var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  517. var matchResult = string.match(args.matchPattern);
  518. if (!matchResult)
  519. return null;
  520. var matchedString = matchResult[0];
  521. var parseResult = string.match(args.parsePattern);
  522. if (!parseResult)
  523. return null;
  524. var value = args.valueCallback ? args.valueCallback(parseResult[0]) : parseResult[0];
  525. value = options.valueCallback ? options.valueCallback(value) : value;
  526. var rest = string.slice(matchedString.length);
  527. return { value: value, rest: rest };
  528. };
  529. }
  530. // lib/locale/sr-Latn/_lib/match.js
  531. var matchOrdinalNumberPattern = /^(\d+)\./i;
  532. var parseOrdinalNumberPattern = /\d+/i;
  533. var matchEraPatterns = {
  534. narrow: /^(pr\.n\.e\.|AD)/i,
  535. abbreviated: /^(pr\.\s?Hr\.|po\.\s?Hr\.)/i,
  536. wide: /^(Pre Hrista|pre nove ere|Posle Hrista|nova era)/i
  537. };
  538. var parseEraPatterns = {
  539. any: [/^pr/i, /^(po|nova)/i]
  540. };
  541. var matchQuarterPatterns = {
  542. narrow: /^[1234]/i,
  543. abbreviated: /^[1234]\.\s?kv\.?/i,
  544. wide: /^[1234]\. kvartal/i
  545. };
  546. var parseQuarterPatterns = {
  547. any: [/1/i, /2/i, /3/i, /4/i]
  548. };
  549. var matchMonthPatterns = {
  550. narrow: /^(10|11|12|[123456789])\./i,
  551. abbreviated: /^(jan|feb|mar|apr|maj|jun|jul|avg|sep|okt|nov|dec)/i,
  552. wide: /^((januar|januara)|(februar|februara)|(mart|marta)|(april|aprila)|(maj|maja)|(jun|juna)|(jul|jula)|(avgust|avgusta)|(septembar|septembra)|(oktobar|oktobra)|(novembar|novembra)|(decembar|decembra))/i
  553. };
  554. var parseMonthPatterns = {
  555. narrow: [
  556. /^1/i,
  557. /^2/i,
  558. /^3/i,
  559. /^4/i,
  560. /^5/i,
  561. /^6/i,
  562. /^7/i,
  563. /^8/i,
  564. /^9/i,
  565. /^10/i,
  566. /^11/i,
  567. /^12/i],
  568. any: [
  569. /^ja/i,
  570. /^f/i,
  571. /^mar/i,
  572. /^ap/i,
  573. /^maj/i,
  574. /^jun/i,
  575. /^jul/i,
  576. /^avg/i,
  577. /^s/i,
  578. /^o/i,
  579. /^n/i,
  580. /^d/i]
  581. };
  582. var matchDayPatterns = {
  583. narrow: /^[npusčc]/i,
  584. short: /^(ned|pon|uto|sre|(čet|cet)|pet|sub)/i,
  585. abbreviated: /^(ned|pon|uto|sre|(čet|cet)|pet|sub)/i,
  586. wide: /^(nedelja|ponedeljak|utorak|sreda|(četvrtak|cetvrtak)|petak|subota)/i
  587. };
  588. var parseDayPatterns = {
  589. narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
  590. any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
  591. };
  592. var matchDayPeriodPatterns = {
  593. any: /^(am|pm|ponoc|ponoć|(po)?podne|uvece|uveče|noću|posle podne|ujutru)/i
  594. };
  595. var parseDayPeriodPatterns = {
  596. any: {
  597. am: /^a/i,
  598. pm: /^p/i,
  599. midnight: /^pono/i,
  600. noon: /^pod/i,
  601. morning: /jutro/i,
  602. afternoon: /(posle\s|po)+podne/i,
  603. evening: /(uvece|uveče)/i,
  604. night: /(nocu|noću)/i
  605. }
  606. };
  607. var match = {
  608. ordinalNumber: buildMatchPatternFn({
  609. matchPattern: matchOrdinalNumberPattern,
  610. parsePattern: parseOrdinalNumberPattern,
  611. valueCallback: function valueCallback(value) {return parseInt(value, 10);}
  612. }),
  613. era: buildMatchFn({
  614. matchPatterns: matchEraPatterns,
  615. defaultMatchWidth: "wide",
  616. parsePatterns: parseEraPatterns,
  617. defaultParseWidth: "any"
  618. }),
  619. quarter: buildMatchFn({
  620. matchPatterns: matchQuarterPatterns,
  621. defaultMatchWidth: "wide",
  622. parsePatterns: parseQuarterPatterns,
  623. defaultParseWidth: "any",
  624. valueCallback: function valueCallback(index) {return index + 1;}
  625. }),
  626. month: buildMatchFn({
  627. matchPatterns: matchMonthPatterns,
  628. defaultMatchWidth: "wide",
  629. parsePatterns: parseMonthPatterns,
  630. defaultParseWidth: "any"
  631. }),
  632. day: buildMatchFn({
  633. matchPatterns: matchDayPatterns,
  634. defaultMatchWidth: "wide",
  635. parsePatterns: parseDayPatterns,
  636. defaultParseWidth: "any"
  637. }),
  638. dayPeriod: buildMatchFn({
  639. matchPatterns: matchDayPeriodPatterns,
  640. defaultMatchWidth: "any",
  641. parsePatterns: parseDayPeriodPatterns,
  642. defaultParseWidth: "any"
  643. })
  644. };
  645. // lib/locale/sr-Latn.js
  646. var srLatn = {
  647. code: "sr-Latn",
  648. formatDistance: formatDistance,
  649. formatLong: formatLong,
  650. formatRelative: formatRelative,
  651. localize: localize,
  652. match: match,
  653. options: {
  654. weekStartsOn: 1,
  655. firstWeekContainsDate: 1
  656. }
  657. };
  658. // lib/locale/sr-Latn/cdn.js
  659. window.dateFns = _objectSpread(_objectSpread({},
  660. window.dateFns), {}, {
  661. locale: _objectSpread(_objectSpread({}, (_window$dateFns =
  662. window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, {
  663. srLatn: srLatn }) });
  664. //# debugId=DED8BC96DEFEADFE64756E2164756E21
  665. //# sourceMappingURL=cdn.js.map
  666. })();