chunk-TV3CFJQR.js 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. import {
  2. g,
  3. l
  4. } from "./chunk-5UVJ64RB.js";
  5. import {
  6. o
  7. } from "./chunk-HZRKBTHJ.js";
  8. import {
  9. x
  10. } from "./chunk-YXWMMD76.js";
  11. // node_modules/@arcgis/core/intl/date.js
  12. var r = { year: "numeric", month: "numeric", day: "numeric" };
  13. var n = { year: "numeric", month: "long", day: "numeric" };
  14. var a = { year: "numeric", month: "short", day: "numeric" };
  15. var h = { year: "numeric", month: "long", weekday: "long", day: "numeric" };
  16. var m = { hour: "numeric", minute: "numeric" };
  17. var i = { ...m, second: "numeric" };
  18. var s = { "short-date": r, "short-date-short-time": { ...r, ...m }, "short-date-short-time-24": { ...r, ...m, hour12: false }, "short-date-long-time": { ...r, ...i }, "short-date-long-time-24": { ...r, ...i, hour12: false }, "short-date-le": r, "short-date-le-short-time": { ...r, ...m }, "short-date-le-short-time-24": { ...r, ...m, hour12: false }, "short-date-le-long-time": { ...r, ...i }, "short-date-le-long-time-24": { ...r, ...i, hour12: false }, "long-month-day-year": n, "long-month-day-year-short-time": { ...n, ...m }, "long-month-day-year-short-time-24": { ...n, ...m, hour12: false }, "long-month-day-year-long-time": { ...n, ...i }, "long-month-day-year-long-time-24": { ...n, ...i, hour12: false }, "day-short-month-year": a, "day-short-month-year-short-time": { ...a, ...m }, "day-short-month-year-short-time-24": { ...a, ...m, hour12: false }, "day-short-month-year-long-time": { ...a, ...i }, "day-short-month-year-long-time-24": { ...a, ...i, hour12: false }, "long-date": h, "long-date-short-time": { ...h, ...m }, "long-date-short-time-24": { ...h, ...m, hour12: false }, "long-date-long-time": { ...h, ...i }, "long-date-long-time-24": { ...h, ...i, hour12: false }, "long-month-year": { month: "long", year: "numeric" }, "short-month-year": { month: "short", year: "numeric" }, year: { year: "numeric" }, "short-time": m, "long-time": i };
  19. var l2 = o()({ shortDate: "short-date", shortDateShortTime: "short-date-short-time", shortDateShortTime24: "short-date-short-time-24", shortDateLongTime: "short-date-long-time", shortDateLongTime24: "short-date-long-time-24", shortDateLE: "short-date-le", shortDateLEShortTime: "short-date-le-short-time", shortDateLEShortTime24: "short-date-le-short-time-24", shortDateLELongTime: "short-date-le-long-time", shortDateLELongTime24: "short-date-le-long-time-24", longMonthDayYear: "long-month-day-year", longMonthDayYearShortTime: "long-month-day-year-short-time", longMonthDayYearShortTime24: "long-month-day-year-short-time-24", longMonthDayYearLongTime: "long-month-day-year-long-time", longMonthDayYearLongTime24: "long-month-day-year-long-time-24", dayShortMonthYear: "day-short-month-year", dayShortMonthYearShortTime: "day-short-month-year-short-time", dayShortMonthYearShortTime24: "day-short-month-year-short-time-24", dayShortMonthYearLongTime: "day-short-month-year-long-time", dayShortMonthYearLongTime24: "day-short-month-year-long-time-24", longDate: "long-date", longDateShortTime: "long-date-short-time", longDateShortTime24: "long-date-short-time-24", longDateLongTime: "long-date-long-time", longDateLongTime24: "long-date-long-time-24", longMonthYear: "long-month-year", shortMonthYear: "short-month-year", year: "year" });
  20. var g2 = l2.apiValues;
  21. var y = l2.toJSON.bind(l2);
  22. var d = l2.fromJSON.bind(l2);
  23. var u = { ar: "ar-u-nu-latn-ca-gregory" };
  24. var c = /* @__PURE__ */ new WeakMap();
  25. var D = s["short-date-short-time"];
  26. function T(t) {
  27. const o3 = t || D;
  28. let r2 = c.get(o3);
  29. if (!r2) {
  30. const t2 = l(), n2 = u[l()] || t2;
  31. r2 = new Intl.DateTimeFormat(n2, o3), c.set(o3, r2);
  32. }
  33. return r2;
  34. }
  35. function S(t) {
  36. return t ? s[t] : null;
  37. }
  38. function L(t, o3) {
  39. return T(o3).format(t);
  40. }
  41. g(() => {
  42. c = /* @__PURE__ */ new WeakMap(), D = s["short-date-short-time"];
  43. });
  44. // node_modules/@arcgis/core/intl/number.js
  45. var a2 = { ar: "ar-u-nu-latn" };
  46. var e = /* @__PURE__ */ new WeakMap();
  47. var o2 = {};
  48. function i2(n2) {
  49. const i3 = n2 || o2;
  50. if (!e.has(i3)) {
  51. const t = l(), o3 = a2[l()] || t;
  52. e.set(i3, new Intl.NumberFormat(o3, n2));
  53. }
  54. return x(e.get(i3));
  55. }
  56. function u2(t = {}) {
  57. const n2 = {};
  58. return null != t.digitSeparator && (n2.useGrouping = t.digitSeparator), null != t.places && (n2.minimumFractionDigits = n2.maximumFractionDigits = t.places), n2;
  59. }
  60. function m2(t, n2) {
  61. return -0 === t && (t = 0), i2(n2).format(t);
  62. }
  63. g(() => {
  64. e = /* @__PURE__ */ new WeakMap(), o2 = {};
  65. });
  66. export {
  67. S,
  68. L,
  69. u2 as u,
  70. m2 as m
  71. };
  72. //# sourceMappingURL=chunk-TV3CFJQR.js.map