cdn.js 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704
  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/hr/_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 tjedan",
  81. withPrepositionAgo: "oko 1 tjedan",
  82. withPrepositionIn: "oko 1 tjedan"
  83. },
  84. dual: "oko {{count}} tjedna",
  85. other: "oko {{count}} tjedana"
  86. },
  87. xWeeks: {
  88. one: {
  89. standalone: "1 tjedan",
  90. withPrepositionAgo: "1 tjedan",
  91. withPrepositionIn: "1 tjedan"
  92. },
  93. dual: "{{count}} tjedna",
  94. other: "{{count}} tjedana"
  95. },
  96. aboutXMonths: {
  97. one: {
  98. standalone: "oko 1 mjesec",
  99. withPrepositionAgo: "oko 1 mjesec",
  100. withPrepositionIn: "oko 1 mjesec"
  101. },
  102. dual: "oko {{count}} mjeseca",
  103. other: "oko {{count}} mjeseci"
  104. },
  105. xMonths: {
  106. one: {
  107. standalone: "1 mjesec",
  108. withPrepositionAgo: "1 mjesec",
  109. withPrepositionIn: "1 mjesec"
  110. },
  111. dual: "{{count}} mjeseca",
  112. other: "{{count}} mjeseci"
  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 "prije " + 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/hr/_lib/formatLong.js
  189. var dateFormats = {
  190. full: "EEEE, d. MMMM y.",
  191. long: "d. MMMM y.",
  192. medium: "d. MMM y.",
  193. short: "dd. MM. y."
  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/hr/_lib/formatRelative.js
  222. var formatRelativeLocale = {
  223. lastWeek: function lastWeek(date) {
  224. switch (date.getDay()) {
  225. case 0:
  226. return "'pro\u0161lu nedjelju u' p";
  227. case 3:
  228. return "'pro\u0161lu srijedu u' p";
  229. case 6:
  230. return "'pro\u0161lu subotu u' p";
  231. default:
  232. return "'pro\u0161li' EEEE 'u' p";
  233. }
  234. },
  235. yesterday: "'ju\u010Der 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 "'idu\u0107u nedjelju u' p";
  242. case 3:
  243. return "'idu\u0107u srijedu u' p";
  244. case 6:
  245. return "'idu\u0107u subotu u' p";
  246. default:
  247. return "'pro\u0161li' 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/hr/_lib/localize.js
  278. var eraValues = {
  279. narrow: ["pr.n.e.", "AD"],
  280. abbreviated: ["pr. Kr.", "po. Kr."],
  281. wide: ["Prije Krista", "Poslije Krista"]
  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. "sij",
  304. "velj",
  305. "o\u017Eu",
  306. "tra",
  307. "svi",
  308. "lip",
  309. "srp",
  310. "kol",
  311. "ruj",
  312. "lis",
  313. "stu",
  314. "pro"],
  315. wide: [
  316. "sije\u010Danj",
  317. "velja\u010Da",
  318. "o\u017Eujak",
  319. "travanj",
  320. "svibanj",
  321. "lipanj",
  322. "srpanj",
  323. "kolovoz",
  324. "rujan",
  325. "listopad",
  326. "studeni",
  327. "prosinac"]
  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. "sij",
  345. "velj",
  346. "o\u017Eu",
  347. "tra",
  348. "svi",
  349. "lip",
  350. "srp",
  351. "kol",
  352. "ruj",
  353. "lis",
  354. "stu",
  355. "pro"],
  356. wide: [
  357. "sije\u010Dnja",
  358. "velja\u010De",
  359. "o\u017Eujka",
  360. "travnja",
  361. "svibnja",
  362. "lipnja",
  363. "srpnja",
  364. "kolovoza",
  365. "rujna",
  366. "listopada",
  367. "studenog",
  368. "prosinca"]
  369. };
  370. var dayValues = {
  371. narrow: ["N", "P", "U", "S", "\u010C", "P", "S"],
  372. short: ["ned", "pon", "uto", "sri", "\u010Det", "pet", "sub"],
  373. abbreviated: ["ned", "pon", "uto", "sri", "\u010Det", "pet", "sub"],
  374. wide: [
  375. "nedjelja",
  376. "ponedjeljak",
  377. "utorak",
  378. "srijeda",
  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: "ujutro",
  390. afternoon: "popodne",
  391. evening: "nave\u010Der",
  392. night: "no\u0107u"
  393. },
  394. abbreviated: {
  395. am: "AM",
  396. pm: "PM",
  397. midnight: "pono\u0107",
  398. noon: "podne",
  399. morning: "ujutro",
  400. afternoon: "popodne",
  401. evening: "nave\u010Der",
  402. night: "no\u0107u"
  403. },
  404. wide: {
  405. am: "AM",
  406. pm: "PM",
  407. midnight: "pono\u0107",
  408. noon: "podne",
  409. morning: "ujutro",
  410. afternoon: "poslije podne",
  411. evening: "nave\u010Der",
  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: "ujutro",
  422. afternoon: "popodne",
  423. evening: "nave\u010Der",
  424. night: "no\u0107u"
  425. },
  426. abbreviated: {
  427. am: "AM",
  428. pm: "PM",
  429. midnight: "pono\u0107",
  430. noon: "podne",
  431. morning: "ujutro",
  432. afternoon: "popodne",
  433. evening: "nave\u010Der",
  434. night: "no\u0107u"
  435. },
  436. wide: {
  437. am: "AM",
  438. pm: "PM",
  439. midnight: "pono\u0107",
  440. noon: "podne",
  441. morning: "ujutro",
  442. afternoon: "poslije podne",
  443. evening: "nave\u010Der",
  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/hr/_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?Kr\.|po\.\s?Kr\.)/i,
  536. wide: /^(Prije Krista|prije nove ere|Poslije Krista|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: /^(sij|velj|(ožu|ozu)|tra|svi|lip|srp|kol|ruj|lis|stu|pro)/i,
  552. wide: /^((siječanj|siječnja|sijecanj|sijecnja)|(veljača|veljače|veljaca|veljace)|(ožujak|ožujka|ozujak|ozujka)|(travanj|travnja)|(svibanj|svibnja)|(lipanj|lipnja)|(srpanj|srpnja)|(kolovoz|kolovoza)|(rujan|rujna)|(listopad|listopada)|(studeni|studenog)|(prosinac|prosinca))/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. abbreviated: [
  569. /^sij/i,
  570. /^velj/i,
  571. /^(ožu|ozu)/i,
  572. /^tra/i,
  573. /^svi/i,
  574. /^lip/i,
  575. /^srp/i,
  576. /^kol/i,
  577. /^ruj/i,
  578. /^lis/i,
  579. /^stu/i,
  580. /^pro/i],
  581. wide: [
  582. /^sij/i,
  583. /^velj/i,
  584. /^(ožu|ozu)/i,
  585. /^tra/i,
  586. /^svi/i,
  587. /^lip/i,
  588. /^srp/i,
  589. /^kol/i,
  590. /^ruj/i,
  591. /^lis/i,
  592. /^stu/i,
  593. /^pro/i]
  594. };
  595. var matchDayPatterns = {
  596. narrow: /^[npusčc]/i,
  597. short: /^(ned|pon|uto|sri|(čet|cet)|pet|sub)/i,
  598. abbreviated: /^(ned|pon|uto|sri|(čet|cet)|pet|sub)/i,
  599. wide: /^(nedjelja|ponedjeljak|utorak|srijeda|(četvrtak|cetvrtak)|petak|subota)/i
  600. };
  601. var parseDayPatterns = {
  602. narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
  603. any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
  604. };
  605. var matchDayPeriodPatterns = {
  606. any: /^(am|pm|ponoc|ponoć|(po)?podne|navecer|navečer|noću|poslije podne|ujutro)/i
  607. };
  608. var parseDayPeriodPatterns = {
  609. any: {
  610. am: /^a/i,
  611. pm: /^p/i,
  612. midnight: /^pono/i,
  613. noon: /^pod/i,
  614. morning: /jutro/i,
  615. afternoon: /(poslije\s|po)+podne/i,
  616. evening: /(navece|naveče)/i,
  617. night: /(nocu|noću)/i
  618. }
  619. };
  620. var match = {
  621. ordinalNumber: buildMatchPatternFn({
  622. matchPattern: matchOrdinalNumberPattern,
  623. parsePattern: parseOrdinalNumberPattern,
  624. valueCallback: function valueCallback(value) {return parseInt(value, 10);}
  625. }),
  626. era: buildMatchFn({
  627. matchPatterns: matchEraPatterns,
  628. defaultMatchWidth: "wide",
  629. parsePatterns: parseEraPatterns,
  630. defaultParseWidth: "any"
  631. }),
  632. quarter: buildMatchFn({
  633. matchPatterns: matchQuarterPatterns,
  634. defaultMatchWidth: "wide",
  635. parsePatterns: parseQuarterPatterns,
  636. defaultParseWidth: "any",
  637. valueCallback: function valueCallback(index) {return index + 1;}
  638. }),
  639. month: buildMatchFn({
  640. matchPatterns: matchMonthPatterns,
  641. defaultMatchWidth: "wide",
  642. parsePatterns: parseMonthPatterns,
  643. defaultParseWidth: "wide"
  644. }),
  645. day: buildMatchFn({
  646. matchPatterns: matchDayPatterns,
  647. defaultMatchWidth: "wide",
  648. parsePatterns: parseDayPatterns,
  649. defaultParseWidth: "any"
  650. }),
  651. dayPeriod: buildMatchFn({
  652. matchPatterns: matchDayPeriodPatterns,
  653. defaultMatchWidth: "any",
  654. parsePatterns: parseDayPeriodPatterns,
  655. defaultParseWidth: "any"
  656. })
  657. };
  658. // lib/locale/hr.js
  659. var hr = {
  660. code: "hr",
  661. formatDistance: formatDistance,
  662. formatLong: formatLong,
  663. formatRelative: formatRelative,
  664. localize: localize,
  665. match: match,
  666. options: {
  667. weekStartsOn: 1,
  668. firstWeekContainsDate: 1
  669. }
  670. };
  671. // lib/locale/hr/cdn.js
  672. window.dateFns = _objectSpread(_objectSpread({},
  673. window.dateFns), {}, {
  674. locale: _objectSpread(_objectSpread({}, (_window$dateFns =
  675. window.dateFns) === null || _window$dateFns === void 0 ? void 0 : _window$dateFns.locale), {}, {
  676. hr: hr }) });
  677. //# debugId=88964C95E5383B8564756E2164756E21
  678. //# sourceMappingURL=cdn.js.map
  679. })();