@amateescu/portal-ui-components 0.0.6 → 0.0.7-beta0

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.
@@ -0,0 +1,1285 @@
1
+ const E = Symbol.for("constructDateFrom");
2
+ function y(t, e) {
3
+ return typeof t == "function" ? t(e) : t && typeof t == "object" && E in t ? t[E](e) : t instanceof Date ? new t.constructor(e) : new Date(e);
4
+ }
5
+ function l(t, e) {
6
+ return y(e || t, t);
7
+ }
8
+ let X = {};
9
+ function F() {
10
+ return X;
11
+ }
12
+ function v(t, e) {
13
+ var u, c, d, m;
14
+ const n = F(), r = (e == null ? void 0 : e.weekStartsOn) ?? ((c = (u = e == null ? void 0 : e.locale) == null ? void 0 : u.options) == null ? void 0 : c.weekStartsOn) ?? n.weekStartsOn ?? ((m = (d = n.locale) == null ? void 0 : d.options) == null ? void 0 : m.weekStartsOn) ?? 0, a = l(t, e == null ? void 0 : e.in), i = a.getDay(), s = (i < r ? 7 : 0) + i - r;
15
+ return a.setDate(a.getDate() - s), a.setHours(0, 0, 0, 0), a;
16
+ }
17
+ function W(t, e) {
18
+ return v(t, { ...e, weekStartsOn: 1 });
19
+ }
20
+ function G(t, e) {
21
+ const n = l(t, e == null ? void 0 : e.in), r = n.getFullYear(), a = y(n, 0);
22
+ a.setFullYear(r + 1, 0, 4), a.setHours(0, 0, 0, 0);
23
+ const i = W(a), s = y(n, 0);
24
+ s.setFullYear(r, 0, 4), s.setHours(0, 0, 0, 0);
25
+ const u = W(s);
26
+ return n.getTime() >= i.getTime() ? r + 1 : n.getTime() >= u.getTime() ? r : r - 1;
27
+ }
28
+ function $(t) {
29
+ const e = l(t), n = new Date(
30
+ Date.UTC(
31
+ e.getFullYear(),
32
+ e.getMonth(),
33
+ e.getDate(),
34
+ e.getHours(),
35
+ e.getMinutes(),
36
+ e.getSeconds(),
37
+ e.getMilliseconds()
38
+ )
39
+ );
40
+ return n.setUTCFullYear(e.getFullYear()), +t - +n;
41
+ }
42
+ function _(t, ...e) {
43
+ const n = y.bind(
44
+ null,
45
+ e.find((r) => typeof r == "object")
46
+ );
47
+ return e.map(n);
48
+ }
49
+ function C(t, e) {
50
+ const n = l(t, e == null ? void 0 : e.in);
51
+ return n.setHours(0, 0, 0, 0), n;
52
+ }
53
+ function I(t, e, n) {
54
+ const [r, a] = _(
55
+ n == null ? void 0 : n.in,
56
+ t,
57
+ e
58
+ ), i = C(r), s = C(a), u = +i - $(i), c = +s - $(s);
59
+ return Math.round((u - c) / 864e5);
60
+ }
61
+ function j(t, e) {
62
+ const n = G(t, e), r = y(t, 0);
63
+ return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0), W(r);
64
+ }
65
+ function B(t) {
66
+ return t instanceof Date || typeof t == "object" && Object.prototype.toString.call(t) === "[object Date]";
67
+ }
68
+ function R(t) {
69
+ return !(!B(t) && typeof t != "number" || isNaN(+l(t)));
70
+ }
71
+ function A(t, e) {
72
+ const n = l(t, e == null ? void 0 : e.in);
73
+ return n.setFullYear(n.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
74
+ }
75
+ const J = {
76
+ lessThanXSeconds: {
77
+ one: "less than a second",
78
+ other: "less than {{count}} seconds"
79
+ },
80
+ xSeconds: {
81
+ one: "1 second",
82
+ other: "{{count}} seconds"
83
+ },
84
+ halfAMinute: "half a minute",
85
+ lessThanXMinutes: {
86
+ one: "less than a minute",
87
+ other: "less than {{count}} minutes"
88
+ },
89
+ xMinutes: {
90
+ one: "1 minute",
91
+ other: "{{count}} minutes"
92
+ },
93
+ aboutXHours: {
94
+ one: "about 1 hour",
95
+ other: "about {{count}} hours"
96
+ },
97
+ xHours: {
98
+ one: "1 hour",
99
+ other: "{{count}} hours"
100
+ },
101
+ xDays: {
102
+ one: "1 day",
103
+ other: "{{count}} days"
104
+ },
105
+ aboutXWeeks: {
106
+ one: "about 1 week",
107
+ other: "about {{count}} weeks"
108
+ },
109
+ xWeeks: {
110
+ one: "1 week",
111
+ other: "{{count}} weeks"
112
+ },
113
+ aboutXMonths: {
114
+ one: "about 1 month",
115
+ other: "about {{count}} months"
116
+ },
117
+ xMonths: {
118
+ one: "1 month",
119
+ other: "{{count}} months"
120
+ },
121
+ aboutXYears: {
122
+ one: "about 1 year",
123
+ other: "about {{count}} years"
124
+ },
125
+ xYears: {
126
+ one: "1 year",
127
+ other: "{{count}} years"
128
+ },
129
+ overXYears: {
130
+ one: "over 1 year",
131
+ other: "over {{count}} years"
132
+ },
133
+ almostXYears: {
134
+ one: "almost 1 year",
135
+ other: "almost {{count}} years"
136
+ }
137
+ }, U = (t, e, n) => {
138
+ let r;
139
+ const a = J[t];
140
+ return typeof a == "string" ? r = a : e === 1 ? r = a.one : r = a.other.replace("{{count}}", e.toString()), n != null && n.addSuffix ? n.comparison && n.comparison > 0 ? "in " + r : r + " ago" : r;
141
+ };
142
+ function T(t) {
143
+ return (e = {}) => {
144
+ const n = e.width ? String(e.width) : t.defaultWidth;
145
+ return t.formats[n] || t.formats[t.defaultWidth];
146
+ };
147
+ }
148
+ const z = {
149
+ full: "EEEE, MMMM do, y",
150
+ long: "MMMM do, y",
151
+ medium: "MMM d, y",
152
+ short: "MM/dd/yyyy"
153
+ }, K = {
154
+ full: "h:mm:ss a zzzz",
155
+ long: "h:mm:ss a z",
156
+ medium: "h:mm:ss a",
157
+ short: "h:mm a"
158
+ }, Z = {
159
+ full: "{{date}} 'at' {{time}}",
160
+ long: "{{date}} 'at' {{time}}",
161
+ medium: "{{date}}, {{time}}",
162
+ short: "{{date}}, {{time}}"
163
+ }, tt = {
164
+ date: T({
165
+ formats: z,
166
+ defaultWidth: "full"
167
+ }),
168
+ time: T({
169
+ formats: K,
170
+ defaultWidth: "full"
171
+ }),
172
+ dateTime: T({
173
+ formats: Z,
174
+ defaultWidth: "full"
175
+ })
176
+ }, et = {
177
+ lastWeek: "'last' eeee 'at' p",
178
+ yesterday: "'yesterday at' p",
179
+ today: "'today at' p",
180
+ tomorrow: "'tomorrow at' p",
181
+ nextWeek: "eeee 'at' p",
182
+ other: "P"
183
+ }, nt = (t, e, n, r) => et[t];
184
+ function S(t) {
185
+ return (e, n) => {
186
+ const r = n != null && n.context ? String(n.context) : "standalone";
187
+ let a;
188
+ if (r === "formatting" && t.formattingValues) {
189
+ const s = t.defaultFormattingWidth || t.defaultWidth, u = n != null && n.width ? String(n.width) : s;
190
+ a = t.formattingValues[u] || t.formattingValues[s];
191
+ } else {
192
+ const s = t.defaultWidth, u = n != null && n.width ? String(n.width) : t.defaultWidth;
193
+ a = t.values[u] || t.values[s];
194
+ }
195
+ const i = t.argumentCallback ? t.argumentCallback(e) : e;
196
+ return a[i];
197
+ };
198
+ }
199
+ const rt = {
200
+ narrow: ["B", "A"],
201
+ abbreviated: ["BC", "AD"],
202
+ wide: ["Before Christ", "Anno Domini"]
203
+ }, at = {
204
+ narrow: ["1", "2", "3", "4"],
205
+ abbreviated: ["Q1", "Q2", "Q3", "Q4"],
206
+ wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
207
+ }, it = {
208
+ narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
209
+ abbreviated: [
210
+ "Jan",
211
+ "Feb",
212
+ "Mar",
213
+ "Apr",
214
+ "May",
215
+ "Jun",
216
+ "Jul",
217
+ "Aug",
218
+ "Sep",
219
+ "Oct",
220
+ "Nov",
221
+ "Dec"
222
+ ],
223
+ wide: [
224
+ "January",
225
+ "February",
226
+ "March",
227
+ "April",
228
+ "May",
229
+ "June",
230
+ "July",
231
+ "August",
232
+ "September",
233
+ "October",
234
+ "November",
235
+ "December"
236
+ ]
237
+ }, st = {
238
+ narrow: ["S", "M", "T", "W", "T", "F", "S"],
239
+ short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
240
+ abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
241
+ wide: [
242
+ "Sunday",
243
+ "Monday",
244
+ "Tuesday",
245
+ "Wednesday",
246
+ "Thursday",
247
+ "Friday",
248
+ "Saturday"
249
+ ]
250
+ }, ot = {
251
+ narrow: {
252
+ am: "a",
253
+ pm: "p",
254
+ midnight: "mi",
255
+ noon: "n",
256
+ morning: "morning",
257
+ afternoon: "afternoon",
258
+ evening: "evening",
259
+ night: "night"
260
+ },
261
+ abbreviated: {
262
+ am: "AM",
263
+ pm: "PM",
264
+ midnight: "midnight",
265
+ noon: "noon",
266
+ morning: "morning",
267
+ afternoon: "afternoon",
268
+ evening: "evening",
269
+ night: "night"
270
+ },
271
+ wide: {
272
+ am: "a.m.",
273
+ pm: "p.m.",
274
+ midnight: "midnight",
275
+ noon: "noon",
276
+ morning: "morning",
277
+ afternoon: "afternoon",
278
+ evening: "evening",
279
+ night: "night"
280
+ }
281
+ }, ut = {
282
+ narrow: {
283
+ am: "a",
284
+ pm: "p",
285
+ midnight: "mi",
286
+ noon: "n",
287
+ morning: "in the morning",
288
+ afternoon: "in the afternoon",
289
+ evening: "in the evening",
290
+ night: "at night"
291
+ },
292
+ abbreviated: {
293
+ am: "AM",
294
+ pm: "PM",
295
+ midnight: "midnight",
296
+ noon: "noon",
297
+ morning: "in the morning",
298
+ afternoon: "in the afternoon",
299
+ evening: "in the evening",
300
+ night: "at night"
301
+ },
302
+ wide: {
303
+ am: "a.m.",
304
+ pm: "p.m.",
305
+ midnight: "midnight",
306
+ noon: "noon",
307
+ morning: "in the morning",
308
+ afternoon: "in the afternoon",
309
+ evening: "in the evening",
310
+ night: "at night"
311
+ }
312
+ }, ct = (t, e) => {
313
+ const n = Number(t), r = n % 100;
314
+ if (r > 20 || r < 10)
315
+ switch (r % 10) {
316
+ case 1:
317
+ return n + "st";
318
+ case 2:
319
+ return n + "nd";
320
+ case 3:
321
+ return n + "rd";
322
+ }
323
+ return n + "th";
324
+ }, dt = {
325
+ ordinalNumber: ct,
326
+ era: S({
327
+ values: rt,
328
+ defaultWidth: "wide"
329
+ }),
330
+ quarter: S({
331
+ values: at,
332
+ defaultWidth: "wide",
333
+ argumentCallback: (t) => t - 1
334
+ }),
335
+ month: S({
336
+ values: it,
337
+ defaultWidth: "wide"
338
+ }),
339
+ day: S({
340
+ values: st,
341
+ defaultWidth: "wide"
342
+ }),
343
+ dayPeriod: S({
344
+ values: ot,
345
+ defaultWidth: "wide",
346
+ formattingValues: ut,
347
+ defaultFormattingWidth: "wide"
348
+ })
349
+ };
350
+ function O(t) {
351
+ return (e, n = {}) => {
352
+ const r = n.width, a = r && t.matchPatterns[r] || t.matchPatterns[t.defaultMatchWidth], i = e.match(a);
353
+ if (!i)
354
+ return null;
355
+ const s = i[0], u = r && t.parsePatterns[r] || t.parsePatterns[t.defaultParseWidth], c = Array.isArray(u) ? mt(u, (g) => g.test(s)) : (
356
+ // [TODO] -- I challenge you to fix the type
357
+ ft(u, (g) => g.test(s))
358
+ );
359
+ let d;
360
+ d = t.valueCallback ? t.valueCallback(c) : c, d = n.valueCallback ? (
361
+ // [TODO] -- I challenge you to fix the type
362
+ n.valueCallback(d)
363
+ ) : d;
364
+ const m = e.slice(s.length);
365
+ return { value: d, rest: m };
366
+ };
367
+ }
368
+ function ft(t, e) {
369
+ for (const n in t)
370
+ if (Object.prototype.hasOwnProperty.call(t, n) && e(t[n]))
371
+ return n;
372
+ }
373
+ function mt(t, e) {
374
+ for (let n = 0; n < t.length; n++)
375
+ if (e(t[n]))
376
+ return n;
377
+ }
378
+ function ht(t) {
379
+ return (e, n = {}) => {
380
+ const r = e.match(t.matchPattern);
381
+ if (!r) return null;
382
+ const a = r[0], i = e.match(t.parsePattern);
383
+ if (!i) return null;
384
+ let s = t.valueCallback ? t.valueCallback(i[0]) : i[0];
385
+ s = n.valueCallback ? n.valueCallback(s) : s;
386
+ const u = e.slice(a.length);
387
+ return { value: s, rest: u };
388
+ };
389
+ }
390
+ const lt = /^(\d+)(th|st|nd|rd)?/i, gt = /\d+/i, wt = {
391
+ narrow: /^(b|a)/i,
392
+ abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
393
+ wide: /^(before christ|before common era|anno domini|common era)/i
394
+ }, yt = {
395
+ any: [/^b/i, /^(a|c)/i]
396
+ }, bt = {
397
+ narrow: /^[1234]/i,
398
+ abbreviated: /^q[1234]/i,
399
+ wide: /^[1234](th|st|nd|rd)? quarter/i
400
+ }, Pt = {
401
+ any: [/1/i, /2/i, /3/i, /4/i]
402
+ }, Mt = {
403
+ narrow: /^[jfmasond]/i,
404
+ abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
405
+ wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
406
+ }, xt = {
407
+ narrow: [
408
+ /^j/i,
409
+ /^f/i,
410
+ /^m/i,
411
+ /^a/i,
412
+ /^m/i,
413
+ /^j/i,
414
+ /^j/i,
415
+ /^a/i,
416
+ /^s/i,
417
+ /^o/i,
418
+ /^n/i,
419
+ /^d/i
420
+ ],
421
+ any: [
422
+ /^ja/i,
423
+ /^f/i,
424
+ /^mar/i,
425
+ /^ap/i,
426
+ /^may/i,
427
+ /^jun/i,
428
+ /^jul/i,
429
+ /^au/i,
430
+ /^s/i,
431
+ /^o/i,
432
+ /^n/i,
433
+ /^d/i
434
+ ]
435
+ }, Dt = {
436
+ narrow: /^[smtwf]/i,
437
+ short: /^(su|mo|tu|we|th|fr|sa)/i,
438
+ abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
439
+ wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
440
+ }, St = {
441
+ narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
442
+ any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
443
+ }, Ot = {
444
+ narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
445
+ any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
446
+ }, vt = {
447
+ any: {
448
+ am: /^a/i,
449
+ pm: /^p/i,
450
+ midnight: /^mi/i,
451
+ noon: /^no/i,
452
+ morning: /morning/i,
453
+ afternoon: /afternoon/i,
454
+ evening: /evening/i,
455
+ night: /night/i
456
+ }
457
+ }, kt = {
458
+ ordinalNumber: ht({
459
+ matchPattern: lt,
460
+ parsePattern: gt,
461
+ valueCallback: (t) => parseInt(t, 10)
462
+ }),
463
+ era: O({
464
+ matchPatterns: wt,
465
+ defaultMatchWidth: "wide",
466
+ parsePatterns: yt,
467
+ defaultParseWidth: "any"
468
+ }),
469
+ quarter: O({
470
+ matchPatterns: bt,
471
+ defaultMatchWidth: "wide",
472
+ parsePatterns: Pt,
473
+ defaultParseWidth: "any",
474
+ valueCallback: (t) => t + 1
475
+ }),
476
+ month: O({
477
+ matchPatterns: Mt,
478
+ defaultMatchWidth: "wide",
479
+ parsePatterns: xt,
480
+ defaultParseWidth: "any"
481
+ }),
482
+ day: O({
483
+ matchPatterns: Dt,
484
+ defaultMatchWidth: "wide",
485
+ parsePatterns: St,
486
+ defaultParseWidth: "any"
487
+ }),
488
+ dayPeriod: O({
489
+ matchPatterns: Ot,
490
+ defaultMatchWidth: "any",
491
+ parsePatterns: vt,
492
+ defaultParseWidth: "any"
493
+ })
494
+ }, Wt = {
495
+ code: "en-US",
496
+ formatDistance: U,
497
+ formatLong: tt,
498
+ formatRelative: nt,
499
+ localize: dt,
500
+ match: kt,
501
+ options: {
502
+ weekStartsOn: 0,
503
+ firstWeekContainsDate: 1
504
+ }
505
+ };
506
+ function Ft(t, e) {
507
+ const n = l(t, e == null ? void 0 : e.in);
508
+ return I(n, A(n)) + 1;
509
+ }
510
+ function Yt(t, e) {
511
+ const n = l(t, e == null ? void 0 : e.in), r = +W(n) - +j(n);
512
+ return Math.round(r / 6048e5) + 1;
513
+ }
514
+ function Q(t, e) {
515
+ var m, g, x, D;
516
+ const n = l(t, e == null ? void 0 : e.in), r = n.getFullYear(), a = F(), i = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((g = (m = e == null ? void 0 : e.locale) == null ? void 0 : m.options) == null ? void 0 : g.firstWeekContainsDate) ?? a.firstWeekContainsDate ?? ((D = (x = a.locale) == null ? void 0 : x.options) == null ? void 0 : D.firstWeekContainsDate) ?? 1, s = y((e == null ? void 0 : e.in) || t, 0);
517
+ s.setFullYear(r + 1, 0, i), s.setHours(0, 0, 0, 0);
518
+ const u = v(s, e), c = y((e == null ? void 0 : e.in) || t, 0);
519
+ c.setFullYear(r, 0, i), c.setHours(0, 0, 0, 0);
520
+ const d = v(c, e);
521
+ return +n >= +u ? r + 1 : +n >= +d ? r : r - 1;
522
+ }
523
+ function Tt(t, e) {
524
+ var u, c, d, m;
525
+ const n = F(), r = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((c = (u = e == null ? void 0 : e.locale) == null ? void 0 : u.options) == null ? void 0 : c.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((m = (d = n.locale) == null ? void 0 : d.options) == null ? void 0 : m.firstWeekContainsDate) ?? 1, a = Q(t, e), i = y((e == null ? void 0 : e.in) || t, 0);
526
+ return i.setFullYear(a, 0, r), i.setHours(0, 0, 0, 0), v(i, e);
527
+ }
528
+ function Nt(t, e) {
529
+ const n = l(t, e == null ? void 0 : e.in), r = +v(n, e) - +Tt(n, e);
530
+ return Math.round(r / 6048e5) + 1;
531
+ }
532
+ function o(t, e) {
533
+ const n = t < 0 ? "-" : "", r = Math.abs(t).toString().padStart(e, "0");
534
+ return n + r;
535
+ }
536
+ const w = {
537
+ // Year
538
+ y(t, e) {
539
+ const n = t.getFullYear(), r = n > 0 ? n : 1 - n;
540
+ return o(e === "yy" ? r % 100 : r, e.length);
541
+ },
542
+ // Month
543
+ M(t, e) {
544
+ const n = t.getMonth();
545
+ return e === "M" ? String(n + 1) : o(n + 1, 2);
546
+ },
547
+ // Day of the month
548
+ d(t, e) {
549
+ return o(t.getDate(), e.length);
550
+ },
551
+ // AM or PM
552
+ a(t, e) {
553
+ const n = t.getHours() / 12 >= 1 ? "pm" : "am";
554
+ switch (e) {
555
+ case "a":
556
+ case "aa":
557
+ return n.toUpperCase();
558
+ case "aaa":
559
+ return n;
560
+ case "aaaaa":
561
+ return n[0];
562
+ case "aaaa":
563
+ default:
564
+ return n === "am" ? "a.m." : "p.m.";
565
+ }
566
+ },
567
+ // Hour [1-12]
568
+ h(t, e) {
569
+ return o(t.getHours() % 12 || 12, e.length);
570
+ },
571
+ // Hour [0-23]
572
+ H(t, e) {
573
+ return o(t.getHours(), e.length);
574
+ },
575
+ // Minute
576
+ m(t, e) {
577
+ return o(t.getMinutes(), e.length);
578
+ },
579
+ // Second
580
+ s(t, e) {
581
+ return o(t.getSeconds(), e.length);
582
+ },
583
+ // Fraction of second
584
+ S(t, e) {
585
+ const n = e.length, r = t.getMilliseconds(), a = Math.trunc(
586
+ r * Math.pow(10, n - 3)
587
+ );
588
+ return o(a, e.length);
589
+ }
590
+ }, P = {
591
+ midnight: "midnight",
592
+ noon: "noon",
593
+ morning: "morning",
594
+ afternoon: "afternoon",
595
+ evening: "evening",
596
+ night: "night"
597
+ }, q = {
598
+ // Era
599
+ G: function(t, e, n) {
600
+ const r = t.getFullYear() > 0 ? 1 : 0;
601
+ switch (e) {
602
+ case "G":
603
+ case "GG":
604
+ case "GGG":
605
+ return n.era(r, { width: "abbreviated" });
606
+ case "GGGGG":
607
+ return n.era(r, { width: "narrow" });
608
+ case "GGGG":
609
+ default:
610
+ return n.era(r, { width: "wide" });
611
+ }
612
+ },
613
+ // Year
614
+ y: function(t, e, n) {
615
+ if (e === "yo") {
616
+ const r = t.getFullYear(), a = r > 0 ? r : 1 - r;
617
+ return n.ordinalNumber(a, { unit: "year" });
618
+ }
619
+ return w.y(t, e);
620
+ },
621
+ // Local week-numbering year
622
+ Y: function(t, e, n, r) {
623
+ const a = Q(t, r), i = a > 0 ? a : 1 - a;
624
+ if (e === "YY") {
625
+ const s = i % 100;
626
+ return o(s, 2);
627
+ }
628
+ return e === "Yo" ? n.ordinalNumber(i, { unit: "year" }) : o(i, e.length);
629
+ },
630
+ // ISO week-numbering year
631
+ R: function(t, e) {
632
+ const n = G(t);
633
+ return o(n, e.length);
634
+ },
635
+ // Extended year. This is a single number designating the year of this calendar system.
636
+ // The main difference between `y` and `u` localizers are B.C. years:
637
+ // | Year | `y` | `u` |
638
+ // |------|-----|-----|
639
+ // | AC 1 | 1 | 1 |
640
+ // | BC 1 | 1 | 0 |
641
+ // | BC 2 | 2 | -1 |
642
+ // Also `yy` always returns the last two digits of a year,
643
+ // while `uu` pads single digit years to 2 characters and returns other years unchanged.
644
+ u: function(t, e) {
645
+ const n = t.getFullYear();
646
+ return o(n, e.length);
647
+ },
648
+ // Quarter
649
+ Q: function(t, e, n) {
650
+ const r = Math.ceil((t.getMonth() + 1) / 3);
651
+ switch (e) {
652
+ case "Q":
653
+ return String(r);
654
+ case "QQ":
655
+ return o(r, 2);
656
+ case "Qo":
657
+ return n.ordinalNumber(r, { unit: "quarter" });
658
+ case "QQQ":
659
+ return n.quarter(r, {
660
+ width: "abbreviated",
661
+ context: "formatting"
662
+ });
663
+ case "QQQQQ":
664
+ return n.quarter(r, {
665
+ width: "narrow",
666
+ context: "formatting"
667
+ });
668
+ case "QQQQ":
669
+ default:
670
+ return n.quarter(r, {
671
+ width: "wide",
672
+ context: "formatting"
673
+ });
674
+ }
675
+ },
676
+ // Stand-alone quarter
677
+ q: function(t, e, n) {
678
+ const r = Math.ceil((t.getMonth() + 1) / 3);
679
+ switch (e) {
680
+ case "q":
681
+ return String(r);
682
+ case "qq":
683
+ return o(r, 2);
684
+ case "qo":
685
+ return n.ordinalNumber(r, { unit: "quarter" });
686
+ case "qqq":
687
+ return n.quarter(r, {
688
+ width: "abbreviated",
689
+ context: "standalone"
690
+ });
691
+ case "qqqqq":
692
+ return n.quarter(r, {
693
+ width: "narrow",
694
+ context: "standalone"
695
+ });
696
+ case "qqqq":
697
+ default:
698
+ return n.quarter(r, {
699
+ width: "wide",
700
+ context: "standalone"
701
+ });
702
+ }
703
+ },
704
+ // Month
705
+ M: function(t, e, n) {
706
+ const r = t.getMonth();
707
+ switch (e) {
708
+ case "M":
709
+ case "MM":
710
+ return w.M(t, e);
711
+ case "Mo":
712
+ return n.ordinalNumber(r + 1, { unit: "month" });
713
+ case "MMM":
714
+ return n.month(r, {
715
+ width: "abbreviated",
716
+ context: "formatting"
717
+ });
718
+ case "MMMMM":
719
+ return n.month(r, {
720
+ width: "narrow",
721
+ context: "formatting"
722
+ });
723
+ case "MMMM":
724
+ default:
725
+ return n.month(r, { width: "wide", context: "formatting" });
726
+ }
727
+ },
728
+ // Stand-alone month
729
+ L: function(t, e, n) {
730
+ const r = t.getMonth();
731
+ switch (e) {
732
+ case "L":
733
+ return String(r + 1);
734
+ case "LL":
735
+ return o(r + 1, 2);
736
+ case "Lo":
737
+ return n.ordinalNumber(r + 1, { unit: "month" });
738
+ case "LLL":
739
+ return n.month(r, {
740
+ width: "abbreviated",
741
+ context: "standalone"
742
+ });
743
+ case "LLLLL":
744
+ return n.month(r, {
745
+ width: "narrow",
746
+ context: "standalone"
747
+ });
748
+ case "LLLL":
749
+ default:
750
+ return n.month(r, { width: "wide", context: "standalone" });
751
+ }
752
+ },
753
+ // Local week of year
754
+ w: function(t, e, n, r) {
755
+ const a = Nt(t, r);
756
+ return e === "wo" ? n.ordinalNumber(a, { unit: "week" }) : o(a, e.length);
757
+ },
758
+ // ISO week of year
759
+ I: function(t, e, n) {
760
+ const r = Yt(t);
761
+ return e === "Io" ? n.ordinalNumber(r, { unit: "week" }) : o(r, e.length);
762
+ },
763
+ // Day of the month
764
+ d: function(t, e, n) {
765
+ return e === "do" ? n.ordinalNumber(t.getDate(), { unit: "date" }) : w.d(t, e);
766
+ },
767
+ // Day of year
768
+ D: function(t, e, n) {
769
+ const r = Ft(t);
770
+ return e === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : o(r, e.length);
771
+ },
772
+ // Day of week
773
+ E: function(t, e, n) {
774
+ const r = t.getDay();
775
+ switch (e) {
776
+ case "E":
777
+ case "EE":
778
+ case "EEE":
779
+ return n.day(r, {
780
+ width: "abbreviated",
781
+ context: "formatting"
782
+ });
783
+ case "EEEEE":
784
+ return n.day(r, {
785
+ width: "narrow",
786
+ context: "formatting"
787
+ });
788
+ case "EEEEEE":
789
+ return n.day(r, {
790
+ width: "short",
791
+ context: "formatting"
792
+ });
793
+ case "EEEE":
794
+ default:
795
+ return n.day(r, {
796
+ width: "wide",
797
+ context: "formatting"
798
+ });
799
+ }
800
+ },
801
+ // Local day of week
802
+ e: function(t, e, n, r) {
803
+ const a = t.getDay(), i = (a - r.weekStartsOn + 8) % 7 || 7;
804
+ switch (e) {
805
+ case "e":
806
+ return String(i);
807
+ case "ee":
808
+ return o(i, 2);
809
+ case "eo":
810
+ return n.ordinalNumber(i, { unit: "day" });
811
+ case "eee":
812
+ return n.day(a, {
813
+ width: "abbreviated",
814
+ context: "formatting"
815
+ });
816
+ case "eeeee":
817
+ return n.day(a, {
818
+ width: "narrow",
819
+ context: "formatting"
820
+ });
821
+ case "eeeeee":
822
+ return n.day(a, {
823
+ width: "short",
824
+ context: "formatting"
825
+ });
826
+ case "eeee":
827
+ default:
828
+ return n.day(a, {
829
+ width: "wide",
830
+ context: "formatting"
831
+ });
832
+ }
833
+ },
834
+ // Stand-alone local day of week
835
+ c: function(t, e, n, r) {
836
+ const a = t.getDay(), i = (a - r.weekStartsOn + 8) % 7 || 7;
837
+ switch (e) {
838
+ case "c":
839
+ return String(i);
840
+ case "cc":
841
+ return o(i, e.length);
842
+ case "co":
843
+ return n.ordinalNumber(i, { unit: "day" });
844
+ case "ccc":
845
+ return n.day(a, {
846
+ width: "abbreviated",
847
+ context: "standalone"
848
+ });
849
+ case "ccccc":
850
+ return n.day(a, {
851
+ width: "narrow",
852
+ context: "standalone"
853
+ });
854
+ case "cccccc":
855
+ return n.day(a, {
856
+ width: "short",
857
+ context: "standalone"
858
+ });
859
+ case "cccc":
860
+ default:
861
+ return n.day(a, {
862
+ width: "wide",
863
+ context: "standalone"
864
+ });
865
+ }
866
+ },
867
+ // ISO day of week
868
+ i: function(t, e, n) {
869
+ const r = t.getDay(), a = r === 0 ? 7 : r;
870
+ switch (e) {
871
+ case "i":
872
+ return String(a);
873
+ case "ii":
874
+ return o(a, e.length);
875
+ case "io":
876
+ return n.ordinalNumber(a, { unit: "day" });
877
+ case "iii":
878
+ return n.day(r, {
879
+ width: "abbreviated",
880
+ context: "formatting"
881
+ });
882
+ case "iiiii":
883
+ return n.day(r, {
884
+ width: "narrow",
885
+ context: "formatting"
886
+ });
887
+ case "iiiiii":
888
+ return n.day(r, {
889
+ width: "short",
890
+ context: "formatting"
891
+ });
892
+ case "iiii":
893
+ default:
894
+ return n.day(r, {
895
+ width: "wide",
896
+ context: "formatting"
897
+ });
898
+ }
899
+ },
900
+ // AM or PM
901
+ a: function(t, e, n) {
902
+ const a = t.getHours() / 12 >= 1 ? "pm" : "am";
903
+ switch (e) {
904
+ case "a":
905
+ case "aa":
906
+ return n.dayPeriod(a, {
907
+ width: "abbreviated",
908
+ context: "formatting"
909
+ });
910
+ case "aaa":
911
+ return n.dayPeriod(a, {
912
+ width: "abbreviated",
913
+ context: "formatting"
914
+ }).toLowerCase();
915
+ case "aaaaa":
916
+ return n.dayPeriod(a, {
917
+ width: "narrow",
918
+ context: "formatting"
919
+ });
920
+ case "aaaa":
921
+ default:
922
+ return n.dayPeriod(a, {
923
+ width: "wide",
924
+ context: "formatting"
925
+ });
926
+ }
927
+ },
928
+ // AM, PM, midnight, noon
929
+ b: function(t, e, n) {
930
+ const r = t.getHours();
931
+ let a;
932
+ switch (r === 12 ? a = P.noon : r === 0 ? a = P.midnight : a = r / 12 >= 1 ? "pm" : "am", e) {
933
+ case "b":
934
+ case "bb":
935
+ return n.dayPeriod(a, {
936
+ width: "abbreviated",
937
+ context: "formatting"
938
+ });
939
+ case "bbb":
940
+ return n.dayPeriod(a, {
941
+ width: "abbreviated",
942
+ context: "formatting"
943
+ }).toLowerCase();
944
+ case "bbbbb":
945
+ return n.dayPeriod(a, {
946
+ width: "narrow",
947
+ context: "formatting"
948
+ });
949
+ case "bbbb":
950
+ default:
951
+ return n.dayPeriod(a, {
952
+ width: "wide",
953
+ context: "formatting"
954
+ });
955
+ }
956
+ },
957
+ // in the morning, in the afternoon, in the evening, at night
958
+ B: function(t, e, n) {
959
+ const r = t.getHours();
960
+ let a;
961
+ switch (r >= 17 ? a = P.evening : r >= 12 ? a = P.afternoon : r >= 4 ? a = P.morning : a = P.night, e) {
962
+ case "B":
963
+ case "BB":
964
+ case "BBB":
965
+ return n.dayPeriod(a, {
966
+ width: "abbreviated",
967
+ context: "formatting"
968
+ });
969
+ case "BBBBB":
970
+ return n.dayPeriod(a, {
971
+ width: "narrow",
972
+ context: "formatting"
973
+ });
974
+ case "BBBB":
975
+ default:
976
+ return n.dayPeriod(a, {
977
+ width: "wide",
978
+ context: "formatting"
979
+ });
980
+ }
981
+ },
982
+ // Hour [1-12]
983
+ h: function(t, e, n) {
984
+ if (e === "ho") {
985
+ let r = t.getHours() % 12;
986
+ return r === 0 && (r = 12), n.ordinalNumber(r, { unit: "hour" });
987
+ }
988
+ return w.h(t, e);
989
+ },
990
+ // Hour [0-23]
991
+ H: function(t, e, n) {
992
+ return e === "Ho" ? n.ordinalNumber(t.getHours(), { unit: "hour" }) : w.H(t, e);
993
+ },
994
+ // Hour [0-11]
995
+ K: function(t, e, n) {
996
+ const r = t.getHours() % 12;
997
+ return e === "Ko" ? n.ordinalNumber(r, { unit: "hour" }) : o(r, e.length);
998
+ },
999
+ // Hour [1-24]
1000
+ k: function(t, e, n) {
1001
+ let r = t.getHours();
1002
+ return r === 0 && (r = 24), e === "ko" ? n.ordinalNumber(r, { unit: "hour" }) : o(r, e.length);
1003
+ },
1004
+ // Minute
1005
+ m: function(t, e, n) {
1006
+ return e === "mo" ? n.ordinalNumber(t.getMinutes(), { unit: "minute" }) : w.m(t, e);
1007
+ },
1008
+ // Second
1009
+ s: function(t, e, n) {
1010
+ return e === "so" ? n.ordinalNumber(t.getSeconds(), { unit: "second" }) : w.s(t, e);
1011
+ },
1012
+ // Fraction of second
1013
+ S: function(t, e) {
1014
+ return w.S(t, e);
1015
+ },
1016
+ // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
1017
+ X: function(t, e, n) {
1018
+ const r = t.getTimezoneOffset();
1019
+ if (r === 0)
1020
+ return "Z";
1021
+ switch (e) {
1022
+ case "X":
1023
+ return H(r);
1024
+ case "XXXX":
1025
+ case "XX":
1026
+ return b(r);
1027
+ case "XXXXX":
1028
+ case "XXX":
1029
+ default:
1030
+ return b(r, ":");
1031
+ }
1032
+ },
1033
+ // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
1034
+ x: function(t, e, n) {
1035
+ const r = t.getTimezoneOffset();
1036
+ switch (e) {
1037
+ case "x":
1038
+ return H(r);
1039
+ case "xxxx":
1040
+ case "xx":
1041
+ return b(r);
1042
+ case "xxxxx":
1043
+ case "xxx":
1044
+ default:
1045
+ return b(r, ":");
1046
+ }
1047
+ },
1048
+ // Timezone (GMT)
1049
+ O: function(t, e, n) {
1050
+ const r = t.getTimezoneOffset();
1051
+ switch (e) {
1052
+ case "O":
1053
+ case "OO":
1054
+ case "OOO":
1055
+ return "GMT" + p(r, ":");
1056
+ case "OOOO":
1057
+ default:
1058
+ return "GMT" + b(r, ":");
1059
+ }
1060
+ },
1061
+ // Timezone (specific non-location)
1062
+ z: function(t, e, n) {
1063
+ const r = t.getTimezoneOffset();
1064
+ switch (e) {
1065
+ case "z":
1066
+ case "zz":
1067
+ case "zzz":
1068
+ return "GMT" + p(r, ":");
1069
+ case "zzzz":
1070
+ default:
1071
+ return "GMT" + b(r, ":");
1072
+ }
1073
+ },
1074
+ // Seconds timestamp
1075
+ t: function(t, e, n) {
1076
+ const r = Math.trunc(+t / 1e3);
1077
+ return o(r, e.length);
1078
+ },
1079
+ // Milliseconds timestamp
1080
+ T: function(t, e, n) {
1081
+ return o(+t, e.length);
1082
+ }
1083
+ };
1084
+ function p(t, e = "") {
1085
+ const n = t > 0 ? "-" : "+", r = Math.abs(t), a = Math.trunc(r / 60), i = r % 60;
1086
+ return i === 0 ? n + String(a) : n + String(a) + e + o(i, 2);
1087
+ }
1088
+ function H(t, e) {
1089
+ return t % 60 === 0 ? (t > 0 ? "-" : "+") + o(Math.abs(t) / 60, 2) : b(t, e);
1090
+ }
1091
+ function b(t, e = "") {
1092
+ const n = t > 0 ? "-" : "+", r = Math.abs(t), a = o(Math.trunc(r / 60), 2), i = o(r % 60, 2);
1093
+ return n + a + e + i;
1094
+ }
1095
+ const L = (t, e) => {
1096
+ switch (t) {
1097
+ case "P":
1098
+ return e.date({ width: "short" });
1099
+ case "PP":
1100
+ return e.date({ width: "medium" });
1101
+ case "PPP":
1102
+ return e.date({ width: "long" });
1103
+ case "PPPP":
1104
+ default:
1105
+ return e.date({ width: "full" });
1106
+ }
1107
+ }, V = (t, e) => {
1108
+ switch (t) {
1109
+ case "p":
1110
+ return e.time({ width: "short" });
1111
+ case "pp":
1112
+ return e.time({ width: "medium" });
1113
+ case "ppp":
1114
+ return e.time({ width: "long" });
1115
+ case "pppp":
1116
+ default:
1117
+ return e.time({ width: "full" });
1118
+ }
1119
+ }, Et = (t, e) => {
1120
+ const n = t.match(/(P+)(p+)?/) || [], r = n[1], a = n[2];
1121
+ if (!a)
1122
+ return L(t, e);
1123
+ let i;
1124
+ switch (r) {
1125
+ case "P":
1126
+ i = e.dateTime({ width: "short" });
1127
+ break;
1128
+ case "PP":
1129
+ i = e.dateTime({ width: "medium" });
1130
+ break;
1131
+ case "PPP":
1132
+ i = e.dateTime({ width: "long" });
1133
+ break;
1134
+ case "PPPP":
1135
+ default:
1136
+ i = e.dateTime({ width: "full" });
1137
+ break;
1138
+ }
1139
+ return i.replace("{{date}}", L(r, e)).replace("{{time}}", V(a, e));
1140
+ }, $t = {
1141
+ p: V,
1142
+ P: Et
1143
+ }, Ct = /^D+$/, qt = /^Y+$/, pt = ["D", "DD", "YY", "YYYY"];
1144
+ function Ht(t) {
1145
+ return Ct.test(t);
1146
+ }
1147
+ function Lt(t) {
1148
+ return qt.test(t);
1149
+ }
1150
+ function Gt(t, e, n) {
1151
+ const r = Qt(t, e, n);
1152
+ if (console.warn(r), pt.includes(t)) throw new RangeError(r);
1153
+ }
1154
+ function Qt(t, e, n) {
1155
+ const r = t[0] === "Y" ? "years" : "days of the month";
1156
+ return `Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
1157
+ }
1158
+ const Vt = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Xt = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, _t = /^'([^]*?)'?$/, It = /''/g, jt = /[a-zA-Z]/;
1159
+ function N(t, e, n) {
1160
+ var m, g, x, D;
1161
+ const r = F(), a = r.locale ?? Wt, i = r.firstWeekContainsDate ?? ((g = (m = r.locale) == null ? void 0 : m.options) == null ? void 0 : g.firstWeekContainsDate) ?? 1, s = r.weekStartsOn ?? ((D = (x = r.locale) == null ? void 0 : x.options) == null ? void 0 : D.weekStartsOn) ?? 0, u = l(t, n == null ? void 0 : n.in);
1162
+ if (!R(u))
1163
+ throw new RangeError("Invalid time value");
1164
+ let c = e.match(Xt).map((h) => {
1165
+ const f = h[0];
1166
+ if (f === "p" || f === "P") {
1167
+ const Y = $t[f];
1168
+ return Y(h, a.formatLong);
1169
+ }
1170
+ return h;
1171
+ }).join("").match(Vt).map((h) => {
1172
+ if (h === "''")
1173
+ return { isToken: !1, value: "'" };
1174
+ const f = h[0];
1175
+ if (f === "'")
1176
+ return { isToken: !1, value: Bt(h) };
1177
+ if (q[f])
1178
+ return { isToken: !0, value: h };
1179
+ if (f.match(jt))
1180
+ throw new RangeError(
1181
+ "Format string contains an unescaped latin alphabet character `" + f + "`"
1182
+ );
1183
+ return { isToken: !1, value: h };
1184
+ });
1185
+ a.localize.preprocessor && (c = a.localize.preprocessor(u, c));
1186
+ const d = {
1187
+ firstWeekContainsDate: i,
1188
+ weekStartsOn: s,
1189
+ locale: a
1190
+ };
1191
+ return c.map((h) => {
1192
+ if (!h.isToken) return h.value;
1193
+ const f = h.value;
1194
+ (Lt(f) || Ht(f)) && Gt(f, e, String(t));
1195
+ const Y = q[f[0]];
1196
+ return Y(u, f, a.localize, d);
1197
+ }).join("");
1198
+ }
1199
+ function Bt(t) {
1200
+ const e = t.match(_t);
1201
+ return e ? e[1].replace(It, "'") : t;
1202
+ }
1203
+ const M = "en-US";
1204
+ function Rt(t, e) {
1205
+ let n = Math.abs(e).toLocaleString(M, {
1206
+ useGrouping: !1
1207
+ });
1208
+ return e < 0 ? n = `${t.settings.numbersPrefixNegative}${n}${t.settings.numbersSuffixNegative}` : n = `${t.settings.numbersPrefixPositive}${n}${t.settings.numbersSuffixPositive}`, k(n, t.settings.decimalSeparator, t.settings.thousandsSeparator);
1209
+ }
1210
+ function At(t, e) {
1211
+ let n = Math.abs(e).toLocaleString(M, {
1212
+ minimumFractionDigits: e < 0 ? t.settings.numbersDecimalPrecisionNegative : t.settings.numbersDecimalPrecisionPositive,
1213
+ useGrouping: !1
1214
+ });
1215
+ return e < 0 ? n = `${t.settings.numbersPrefixNegative}${n}${t.settings.numbersSuffixNegative}` : n = `${t.settings.numbersPrefixPositive}${n}${t.settings.numbersSuffixPositive}`, k(n, t.settings.decimalSeparator, t.settings.thousandsSeparator);
1216
+ }
1217
+ function Jt(t, e) {
1218
+ if (isNaN(e)) return "";
1219
+ let n = Math.abs(e).toLocaleString(M, {
1220
+ minimumFractionDigits: e < 0 ? t.settings.currencyNegMinimumFractionDigits : t.settings.currencyMinimumFractionDigits,
1221
+ minimumIntegerDigits: e < 0 ? t.settings.currencyNegMinimumIntegerDigits : t.settings.currencyMinimumIntegerDigits,
1222
+ useGrouping: !1
1223
+ });
1224
+ return e < 0 ? n = `${t.settings.currencyPrefixNegative}${n}${t.settings.currencySuffixNegative}` : n = `${t.settings.currencyPrefixPositive}${n}${t.settings.currencySuffixPositive}`, k(n, t.settings.decimalSeparator, t.settings.thousandsSeparator);
1225
+ }
1226
+ function Ut(t, e) {
1227
+ if (isNaN(e)) return "";
1228
+ const n = k(
1229
+ e.toLocaleString(M, {
1230
+ style: "currency",
1231
+ currency: t.settings.currencyCode,
1232
+ minimumFractionDigits: t.settings.fuelUnitPriceDecimalPrecisionPositive,
1233
+ useGrouping: !1
1234
+ }),
1235
+ t.settings.decimalSeparator,
1236
+ t.settings.thousandsSeparator
1237
+ );
1238
+ return `${t.settings.fuelUnitPricePrefixPositive}${n}${t.settings.fuelUnitPriceSuffixPositive}`;
1239
+ }
1240
+ function zt(t) {
1241
+ return isNaN(t) ? "" : t.toLocaleString(M, {
1242
+ minimumFractionDigits: 0,
1243
+ maximumFractionDigits: 2,
1244
+ useGrouping: !1
1245
+ });
1246
+ }
1247
+ function Kt(t, e, n) {
1248
+ isNaN(e) && (e = 0);
1249
+ let r = Math.abs(e).toLocaleString(M, {
1250
+ minimumFractionDigits: e < 0 ? t.settings.fuelVolumeDecimalPrecisionNegative : t.settings.fuelVolumeDecimalPrecisionPositive,
1251
+ useGrouping: !1
1252
+ });
1253
+ return r = k(
1254
+ r,
1255
+ t.settings.decimalSeparator,
1256
+ t.settings.thousandsSeparator
1257
+ ), r = `${e < 0 ? t.settings.fuelVolumePrefixNegative : t.settings.fuelVolumePrefixPositive}${r}${e < 0 ? t.settings.fuelVolumeSuffixNegative : t.settings.fuelVolumeSuffixPositive}`, r + (n ? "" : ` ${t.settings.fuelVolumeSign}`);
1258
+ }
1259
+ function Zt(t, e) {
1260
+ const n = t.settings.dateFormat;
1261
+ return N(new Date(e), n);
1262
+ }
1263
+ function te(t, e) {
1264
+ const n = t.settings.timeFormat;
1265
+ return N(new Date(e), `${n}`);
1266
+ }
1267
+ function ee(t, e) {
1268
+ const n = t.settings.dateFormat, r = t.settings.timeFormat;
1269
+ return N(new Date(e), `${n} ${r}`);
1270
+ }
1271
+ function k(t, e = ".", n = ",") {
1272
+ const [r, a] = t.split("."), i = r.replace(/\B(?=(\d{3})+(?!\d))/g, n);
1273
+ return a ? `${i}${e}${a}` : i;
1274
+ }
1275
+ export {
1276
+ Jt as currency,
1277
+ Zt as date,
1278
+ ee as datetime,
1279
+ At as decimal,
1280
+ Ut as fuelUnitPrice,
1281
+ Kt as fuelVolume,
1282
+ zt as hours,
1283
+ Rt as number,
1284
+ te as time
1285
+ };