@genexus/genexus-ide-ui 1.1.42 → 1.1.44

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.
Files changed (100) hide show
  1. package/dist/cjs/genexus-ide-ui.cjs.js +1 -1
  2. package/dist/cjs/gx-ide-ai-message.cjs.entry.js +1 -1
  3. package/dist/cjs/gx-ide-dashboard-home.cjs.entry.js +1 -1
  4. package/dist/cjs/gx-ide-new-environment.cjs.entry.js +1 -1
  5. package/dist/cjs/gx-ide-new-kb.cjs.entry.js +1 -1
  6. package/dist/cjs/gx-ide-object-selector.cjs.entry.js +1 -1
  7. package/dist/cjs/gx-ide-start-page.cjs.entry.js +33 -20
  8. package/dist/cjs/gx-ide-start-page.cjs.entry.js.map +1 -1
  9. package/dist/cjs/gx-ide-team-dev-bring-changes.cjs.entry.js +2 -2
  10. package/dist/cjs/gx-ide-team-dev-commit.cjs.entry.js +2 -2
  11. package/dist/cjs/gx-ide-team-dev-history.cjs.entry.js +1 -1
  12. package/dist/cjs/gx-ide-team-dev-update-partial-selection.cjs.entry.js +1 -1
  13. package/dist/cjs/gx-ide-team-dev-update.cjs.entry.js +4 -5
  14. package/dist/cjs/gx-ide-team-dev-update.cjs.entry.js.map +1 -1
  15. package/dist/cjs/gx-ide-ww-files.cjs.entry.js +1 -1
  16. package/dist/cjs/gx-ide-ww-images.cjs.entry.js +1 -1
  17. package/dist/cjs/{helpers-21c9cd02.js → helpers-263b5f4e.js} +3 -7
  18. package/dist/cjs/helpers-263b5f4e.js.map +1 -0
  19. package/dist/cjs/loader.cjs.js +1 -1
  20. package/dist/cjs/{tabular-grid-render-4350dbaf.js → tabular-grid-render-b1767da2.js} +2 -2
  21. package/dist/cjs/{tabular-grid-render-4350dbaf.js.map → tabular-grid-render-b1767da2.js.map} +1 -1
  22. package/dist/collection/common/helpers.js +3 -7
  23. package/dist/collection/common/helpers.js.map +1 -1
  24. package/dist/collection/components/start-page/gx-ide-assets/start-page/langs/start-page.lang.en.json +4 -0
  25. package/dist/collection/components/start-page/gx-ide-assets/start-page/langs/start-page.lang.ja.json +4 -0
  26. package/dist/collection/components/start-page/gx-ide-assets/start-page/langs/start-page.lang.zh.json +4 -0
  27. package/dist/collection/components/start-page/start-page.css +78 -13
  28. package/dist/collection/components/start-page/start-page.js +104 -44
  29. package/dist/collection/components/start-page/start-page.js.map +1 -1
  30. package/dist/collection/components/team-dev/update/update.js +2 -3
  31. package/dist/collection/components/team-dev/update/update.js.map +1 -1
  32. package/dist/components/gx-ide-start-page.js +38 -23
  33. package/dist/components/gx-ide-start-page.js.map +1 -1
  34. package/dist/components/gx-ide-team-dev-update.js +2 -3
  35. package/dist/components/gx-ide-team-dev-update.js.map +1 -1
  36. package/dist/components/helpers.js +2 -6
  37. package/dist/components/helpers.js.map +1 -1
  38. package/dist/esm/genexus-ide-ui.js +1 -1
  39. package/dist/esm/gx-ide-ai-message.entry.js +1 -1
  40. package/dist/esm/gx-ide-dashboard-home.entry.js +1 -1
  41. package/dist/esm/gx-ide-new-environment.entry.js +1 -1
  42. package/dist/esm/gx-ide-new-kb.entry.js +1 -1
  43. package/dist/esm/gx-ide-object-selector.entry.js +1 -1
  44. package/dist/esm/gx-ide-start-page.entry.js +33 -20
  45. package/dist/esm/gx-ide-start-page.entry.js.map +1 -1
  46. package/dist/esm/gx-ide-team-dev-bring-changes.entry.js +2 -2
  47. package/dist/esm/gx-ide-team-dev-commit.entry.js +2 -2
  48. package/dist/esm/gx-ide-team-dev-history.entry.js +1 -1
  49. package/dist/esm/gx-ide-team-dev-update-partial-selection.entry.js +1 -1
  50. package/dist/esm/gx-ide-team-dev-update.entry.js +4 -5
  51. package/dist/esm/gx-ide-team-dev-update.entry.js.map +1 -1
  52. package/dist/esm/gx-ide-ww-files.entry.js +1 -1
  53. package/dist/esm/gx-ide-ww-images.entry.js +1 -1
  54. package/dist/esm/{helpers-7960f084.js → helpers-b180a2d1.js} +3 -7
  55. package/dist/esm/helpers-b180a2d1.js.map +1 -0
  56. package/dist/esm/loader.js +1 -1
  57. package/dist/esm/{tabular-grid-render-f7eb612b.js → tabular-grid-render-96d67a8c.js} +2 -2
  58. package/dist/esm/{tabular-grid-render-f7eb612b.js.map → tabular-grid-render-96d67a8c.js.map} +1 -1
  59. package/dist/genexus-ide-ui/genexus-ide-ui.esm.js +1 -1
  60. package/dist/genexus-ide-ui/genexus-ide-ui.esm.js.map +1 -1
  61. package/dist/genexus-ide-ui/gx-ide-assets/start-page/langs/start-page.lang.en.json +4 -0
  62. package/dist/genexus-ide-ui/gx-ide-assets/start-page/langs/start-page.lang.ja.json +4 -0
  63. package/dist/genexus-ide-ui/gx-ide-assets/start-page/langs/start-page.lang.zh.json +4 -0
  64. package/dist/genexus-ide-ui/{p-8c867f9a.entry.js → p-072419f9.entry.js} +2 -2
  65. package/dist/genexus-ide-ui/{p-e1a2550e.entry.js → p-083d8e94.entry.js} +5 -5
  66. package/dist/genexus-ide-ui/{p-e1a2550e.entry.js.map → p-083d8e94.entry.js.map} +1 -1
  67. package/dist/genexus-ide-ui/{p-646ddf49.entry.js → p-11a60dbe.entry.js} +2 -2
  68. package/dist/genexus-ide-ui/{p-12b563fe.entry.js → p-137a252f.entry.js} +2 -2
  69. package/dist/genexus-ide-ui/{p-8c15538c.js → p-1972b953.js} +10 -13
  70. package/dist/genexus-ide-ui/p-1972b953.js.map +1 -0
  71. package/dist/genexus-ide-ui/{p-59908901.entry.js → p-24573081.entry.js} +2 -2
  72. package/dist/genexus-ide-ui/{p-7f091892.entry.js → p-31c1b79d.entry.js} +2 -2
  73. package/dist/genexus-ide-ui/{p-5624d287.entry.js → p-3ccd331f.entry.js} +2 -2
  74. package/dist/genexus-ide-ui/{p-2b38e18e.entry.js → p-57ed2623.entry.js} +2 -2
  75. package/dist/genexus-ide-ui/{p-c1ad1cc6.entry.js → p-7a28161f.entry.js} +2 -2
  76. package/dist/genexus-ide-ui/{p-4e3ad78d.entry.js → p-a58048e9.entry.js} +3 -3
  77. package/dist/genexus-ide-ui/{p-4b680e46.entry.js → p-af975c83.entry.js} +2 -2
  78. package/dist/genexus-ide-ui/{p-77c2e69d.js → p-c8270f7d.js} +2 -2
  79. package/dist/genexus-ide-ui/{p-a7883e6b.entry.js → p-d18c51fe.entry.js} +3 -3
  80. package/dist/genexus-ide-ui/{p-e2b0ee82.entry.js → p-d67ff6a5.entry.js} +566 -543
  81. package/dist/genexus-ide-ui/p-d67ff6a5.entry.js.map +1 -0
  82. package/dist/types/components/start-page/start-page.d.ts +32 -19
  83. package/dist/types/components.d.ts +18 -2
  84. package/package.json +1 -1
  85. package/dist/cjs/helpers-21c9cd02.js.map +0 -1
  86. package/dist/esm/helpers-7960f084.js.map +0 -1
  87. package/dist/genexus-ide-ui/p-8c15538c.js.map +0 -1
  88. package/dist/genexus-ide-ui/p-e2b0ee82.entry.js.map +0 -1
  89. /package/dist/genexus-ide-ui/{p-8c867f9a.entry.js.map → p-072419f9.entry.js.map} +0 -0
  90. /package/dist/genexus-ide-ui/{p-646ddf49.entry.js.map → p-11a60dbe.entry.js.map} +0 -0
  91. /package/dist/genexus-ide-ui/{p-12b563fe.entry.js.map → p-137a252f.entry.js.map} +0 -0
  92. /package/dist/genexus-ide-ui/{p-59908901.entry.js.map → p-24573081.entry.js.map} +0 -0
  93. /package/dist/genexus-ide-ui/{p-7f091892.entry.js.map → p-31c1b79d.entry.js.map} +0 -0
  94. /package/dist/genexus-ide-ui/{p-5624d287.entry.js.map → p-3ccd331f.entry.js.map} +0 -0
  95. /package/dist/genexus-ide-ui/{p-2b38e18e.entry.js.map → p-57ed2623.entry.js.map} +0 -0
  96. /package/dist/genexus-ide-ui/{p-c1ad1cc6.entry.js.map → p-7a28161f.entry.js.map} +0 -0
  97. /package/dist/genexus-ide-ui/{p-4e3ad78d.entry.js.map → p-a58048e9.entry.js.map} +0 -0
  98. /package/dist/genexus-ide-ui/{p-4b680e46.entry.js.map → p-af975c83.entry.js.map} +0 -0
  99. /package/dist/genexus-ide-ui/{p-77c2e69d.js.map → p-c8270f7d.js.map} +0 -0
  100. /package/dist/genexus-ide-ui/{p-a7883e6b.entry.js.map → p-d18c51fe.entry.js.map} +0 -0
@@ -1,9 +1,11 @@
1
- import { r as e, h as t, H as n, a } from "./p-97107ecc.js";
1
+ import { r as n, h as e, H as t, a } from "./p-97107ecc.js";
2
2
 
3
- import { g as o } from "./p-401bfc97.js";
3
+ import { g as i } from "./p-401bfc97.js";
4
4
 
5
5
  import { L as r } from "./p-311eedf3.js";
6
6
 
7
+ import { f as o } from "./p-1972b953.js";
8
+
7
9
  /**
8
10
  * @module constants
9
11
  * @summary Useful constants
@@ -24,13 +26,13 @@ import { L as r } from "./p-311eedf3.js";
24
26
  * @constant
25
27
  * @name minutesInMonth
26
28
  * @summary Minutes in 1 month.
27
- */ const i = 43200;
29
+ */ const s = 43200;
28
30
 
29
31
  /**
30
32
  * @constant
31
33
  * @name minutesInDay
32
34
  * @summary Minutes in 1 day.
33
- */ const s = 1440;
35
+ */ const c = 1440;
34
36
 
35
37
  /**
36
38
  * @constant
@@ -42,7 +44,7 @@ import { L as r } from "./p-311eedf3.js";
42
44
  * from the reference date to the new date. It's useful for extensions like
43
45
  * [`TZDate`](https://github.com/date-fns/tz) that accept a time zone as
44
46
  * a constructor argument.
45
- */ const c = Symbol.for("constructDateFrom");
47
+ */ const d = Symbol.for("constructDateFrom");
46
48
 
47
49
  /**
48
50
  * @name constructFrom
@@ -78,11 +80,11 @@ import { L as r } from "./p-311eedf3.js";
78
80
  * date.getTime() // Use the date value to create a new date
79
81
  * );
80
82
  * }
81
- */ function constructFrom(e, t) {
82
- if (typeof e === "function") return e(t);
83
- if (e && typeof e === "object" && c in e) return e[c](t);
84
- if (e instanceof Date) return new e.constructor(t);
85
- return new Date(t);
83
+ */ function constructFrom(n, e) {
84
+ if (typeof n === "function") return n(e);
85
+ if (n && typeof n === "object" && d in n) return n[d](e);
86
+ if (n instanceof Date) return new n.constructor(e);
87
+ return new Date(e);
86
88
  }
87
89
 
88
90
  /**
@@ -122,15 +124,15 @@ import { L as r } from "./p-311eedf3.js";
122
124
  * // Convert the timestamp to date:
123
125
  * const result = toDate(1392098430000)
124
126
  * //=> Tue Feb 11 2014 11:30:30
125
- */ function toDate(e, t) {
127
+ */ function toDate(n, e) {
126
128
  // [TODO] Get rid of `toDate` or `constructFrom`?
127
- return constructFrom(t || e, e);
129
+ return constructFrom(e || n, n);
128
130
  }
129
131
 
130
- let d = {};
132
+ let l = {};
131
133
 
132
134
  function getDefaultOptions() {
133
- return d;
135
+ return l;
134
136
  }
135
137
 
136
138
  /**
@@ -162,15 +164,15 @@ function getDefaultOptions() {
162
164
  * // If the week starts on Monday, the start of the week for 2 September 2014 11:55:00:
163
165
  * const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 })
164
166
  * //=> Mon Sep 01 2014 00:00:00
165
- */ function startOfWeek(e, t) {
166
- const n = getDefaultOptions();
167
- const a = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0;
168
- const o = toDate(e, t?.in);
169
- const r = o.getDay();
170
- const i = (r < a ? 7 : 0) + r - a;
171
- o.setDate(o.getDate() - i);
172
- o.setHours(0, 0, 0, 0);
173
- return o;
167
+ */ function startOfWeek(n, e) {
168
+ const t = getDefaultOptions();
169
+ const a = e?.weekStartsOn ?? e?.locale?.options?.weekStartsOn ?? t.weekStartsOn ?? t.locale?.options?.weekStartsOn ?? 0;
170
+ const i = toDate(n, e?.in);
171
+ const r = i.getDay();
172
+ const o = (r < a ? 7 : 0) + r - a;
173
+ i.setDate(i.getDate() - o);
174
+ i.setHours(0, 0, 0, 0);
175
+ return i;
174
176
  }
175
177
 
176
178
  /**
@@ -183,16 +185,16 @@ function getDefaultOptions() {
183
185
  * which would lead to incorrect calculations.
184
186
  *
185
187
  * This function returns the timezone offset in milliseconds that takes seconds in account.
186
- */ function getTimezoneOffsetInMilliseconds(e) {
187
- const t = toDate(e);
188
- const n = new Date(Date.UTC(t.getFullYear(), t.getMonth(), t.getDate(), t.getHours(), t.getMinutes(), t.getSeconds(), t.getMilliseconds()));
189
- n.setUTCFullYear(t.getFullYear());
190
- return +e - +n;
188
+ */ function getTimezoneOffsetInMilliseconds(n) {
189
+ const e = toDate(n);
190
+ const t = new Date(Date.UTC(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()));
191
+ t.setUTCFullYear(e.getFullYear());
192
+ return +n - +t;
191
193
  }
192
194
 
193
- function normalizeDates(e, ...t) {
194
- const n = constructFrom.bind(null, e || t.find((e => typeof e === "object")));
195
- return t.map(n);
195
+ function normalizeDates(n, ...e) {
196
+ const t = constructFrom.bind(null, n || e.find((n => typeof n === "object")));
197
+ return e.map(t);
196
198
  }
197
199
 
198
200
  /**
@@ -226,11 +228,11 @@ function normalizeDates(e, ...t) {
226
228
  * // Mon Jul 10 1989 00:00:00,
227
229
  * // Sun Jul 02 1995 00:00:00
228
230
  * // ]
229
- */ function compareAsc(e, t) {
230
- const n = +toDate(e) - +toDate(t);
231
- if (n < 0) return -1; else if (n > 0) return 1;
231
+ */ function compareAsc(n, e) {
232
+ const t = +toDate(n) - +toDate(e);
233
+ if (t < 0) return -1; else if (t > 0) return 1;
232
234
  // Return 0 if diff is 0; return NaN if diff is NaN
233
- return n;
235
+ return t;
234
236
  }
235
237
 
236
238
  /**
@@ -260,8 +262,8 @@ function normalizeDates(e, ...t) {
260
262
  * // differently in different timezones and return false for the same date.
261
263
  * return isSameDay(date, constructNow(date));
262
264
  * }
263
- */ function constructNow(e) {
264
- return constructFrom(e, Date.now());
265
+ */ function constructNow(n) {
266
+ return constructFrom(n, Date.now());
265
267
  }
266
268
 
267
269
  /**
@@ -288,17 +290,17 @@ function normalizeDates(e, ...t) {
288
290
  * new Date(2014, 0, 31)
289
291
  * )
290
292
  * //=> 8
291
- */ function differenceInCalendarMonths(e, t, n) {
292
- const [a, o] = normalizeDates(n?.in, e, t);
293
- const r = a.getFullYear() - o.getFullYear();
294
- const i = a.getMonth() - o.getMonth();
295
- return r * 12 + i;
293
+ */ function differenceInCalendarMonths(n, e, t) {
294
+ const [a, i] = normalizeDates(t?.in, n, e);
295
+ const r = a.getFullYear() - i.getFullYear();
296
+ const o = a.getMonth() - i.getMonth();
297
+ return r * 12 + o;
296
298
  }
297
299
 
298
- function getRoundingMethod(e) {
299
- return t => {
300
- const n = e ? Math[e] : Math.trunc;
301
- const a = n(t);
300
+ function getRoundingMethod(n) {
301
+ return e => {
302
+ const t = n ? Math[n] : Math.trunc;
303
+ const a = t(e);
302
304
  // Prevent negative zero
303
305
  return a === 0 ? 0 : a;
304
306
  };
@@ -325,8 +327,8 @@ function getRoundingMethod(e) {
325
327
  * new Date(2014, 6, 2, 12, 30, 20, 600)
326
328
  * )
327
329
  * //=> 1100
328
- */ function differenceInMilliseconds(e, t) {
329
- return +toDate(e) - +toDate(t);
330
+ */ function differenceInMilliseconds(n, e) {
331
+ return +toDate(n) - +toDate(e);
330
332
  }
331
333
 
332
334
  /**
@@ -353,10 +355,10 @@ function getRoundingMethod(e) {
353
355
  * // The end of a day for 2 September 2014 11:55:00:
354
356
  * const result = endOfDay(new Date(2014, 8, 2, 11, 55, 0))
355
357
  * //=> Tue Sep 02 2014 23:59:59.999
356
- */ function endOfDay(e, t) {
357
- const n = toDate(e, t?.in);
358
- n.setHours(23, 59, 59, 999);
359
- return n;
358
+ */ function endOfDay(n, e) {
359
+ const t = toDate(n, e?.in);
360
+ t.setHours(23, 59, 59, 999);
361
+ return t;
360
362
  }
361
363
 
362
364
  /**
@@ -383,12 +385,12 @@ function getRoundingMethod(e) {
383
385
  * // The end of a month for 2 September 2014 11:55:00:
384
386
  * const result = endOfMonth(new Date(2014, 8, 2, 11, 55, 0))
385
387
  * //=> Tue Sep 30 2014 23:59:59.999
386
- */ function endOfMonth(e, t) {
387
- const n = toDate(e, t?.in);
388
- const a = n.getMonth();
389
- n.setFullYear(n.getFullYear(), a + 1, 0);
390
- n.setHours(23, 59, 59, 999);
391
- return n;
388
+ */ function endOfMonth(n, e) {
389
+ const t = toDate(n, e?.in);
390
+ const a = t.getMonth();
391
+ t.setFullYear(t.getFullYear(), a + 1, 0);
392
+ t.setHours(23, 59, 59, 999);
393
+ return t;
392
394
  }
393
395
 
394
396
  /**
@@ -408,9 +410,9 @@ function getRoundingMethod(e) {
408
410
  * // Is 28 February 2014 the last day of a month?
409
411
  * const result = isLastDayOfMonth(new Date(2014, 1, 28))
410
412
  * //=> true
411
- */ function isLastDayOfMonth(e, t) {
412
- const n = toDate(e, t?.in);
413
- return +endOfDay(n, t) === +endOfMonth(n, t);
413
+ */ function isLastDayOfMonth(n, e) {
414
+ const t = toDate(n, e?.in);
415
+ return +endOfDay(t, e) === +endOfMonth(t, e);
414
416
  }
415
417
 
416
418
  /**
@@ -431,18 +433,18 @@ function getRoundingMethod(e) {
431
433
  * // How many full months are between 31 January 2014 and 1 September 2014?
432
434
  * const result = differenceInMonths(new Date(2014, 8, 1), new Date(2014, 0, 31))
433
435
  * //=> 7
434
- */ function differenceInMonths(e, t, n) {
435
- const [a, o, r] = normalizeDates(n?.in, e, e, t);
436
- const i = compareAsc(o, r);
437
- const s = Math.abs(differenceInCalendarMonths(o, r));
436
+ */ function differenceInMonths(n, e, t) {
437
+ const [a, i, r] = normalizeDates(t?.in, n, n, e);
438
+ const o = compareAsc(i, r);
439
+ const s = Math.abs(differenceInCalendarMonths(i, r));
438
440
  if (s < 1) return 0;
439
- if (o.getMonth() === 1 && o.getDate() > 27) o.setDate(30);
440
- o.setMonth(o.getMonth() - i * s);
441
- let c = compareAsc(o, r) === -i;
441
+ if (i.getMonth() === 1 && i.getDate() > 27) i.setDate(30);
442
+ i.setMonth(i.getMonth() - o * s);
443
+ let c = compareAsc(i, r) === -o;
442
444
  if (isLastDayOfMonth(a) && s === 1 && compareAsc(a, r) === 1) {
443
445
  c = false;
444
446
  }
445
- const d = i * (s - +c);
447
+ const d = o * (s - +c);
446
448
  return d === 0 ? 0 : d;
447
449
  }
448
450
 
@@ -471,12 +473,12 @@ function getRoundingMethod(e) {
471
473
  * new Date(2014, 6, 2, 12, 30, 7, 999)
472
474
  * )
473
475
  * //=> 12
474
- */ function differenceInSeconds(e, t, n) {
475
- const a = differenceInMilliseconds(e, t) / 1e3;
476
- return getRoundingMethod(n?.roundingMethod)(a);
476
+ */ function differenceInSeconds(n, e, t) {
477
+ const a = differenceInMilliseconds(n, e) / 1e3;
478
+ return getRoundingMethod(t?.roundingMethod)(a);
477
479
  }
478
480
 
479
- const l = {
481
+ const u = {
480
482
  lessThanXSeconds: {
481
483
  one: "less than a second",
482
484
  other: "less than {{count}} seconds"
@@ -540,18 +542,18 @@ const l = {
540
542
  }
541
543
  };
542
544
 
543
- const formatDistance$3 = (e, t, n) => {
545
+ const formatDistance$3 = (n, e, t) => {
544
546
  let a;
545
- const o = l[e];
546
- if (typeof o === "string") {
547
- a = o;
548
- } else if (t === 1) {
549
- a = o.one;
547
+ const i = u[n];
548
+ if (typeof i === "string") {
549
+ a = i;
550
+ } else if (e === 1) {
551
+ a = i.one;
550
552
  } else {
551
- a = o.other.replace("{{count}}", t.toString());
553
+ a = i.other.replace("{{count}}", e.toString());
552
554
  }
553
- if (n?.addSuffix) {
554
- if (n.comparison && n.comparison > 0) {
555
+ if (t?.addSuffix) {
556
+ if (t.comparison && t.comparison > 0) {
555
557
  return "in " + a;
556
558
  } else {
557
559
  return a + " ago";
@@ -560,52 +562,52 @@ const formatDistance$3 = (e, t, n) => {
560
562
  return a;
561
563
  };
562
564
 
563
- function buildFormatLongFn(e) {
564
- return (t = {}) => {
565
+ function buildFormatLongFn(n) {
566
+ return (e = {}) => {
565
567
  // TODO: Remove String()
566
- const n = t.width ? String(t.width) : e.defaultWidth;
567
- const a = e.formats[n] || e.formats[e.defaultWidth];
568
+ const t = e.width ? String(e.width) : n.defaultWidth;
569
+ const a = n.formats[t] || n.formats[n.defaultWidth];
568
570
  return a;
569
571
  };
570
572
  }
571
573
 
572
- const u = {
574
+ const h = {
573
575
  full: "EEEE, MMMM do, y",
574
576
  long: "MMMM do, y",
575
577
  medium: "MMM d, y",
576
578
  short: "MM/dd/yyyy"
577
579
  };
578
580
 
579
- const h = {
581
+ const m = {
580
582
  full: "h:mm:ss a zzzz",
581
583
  long: "h:mm:ss a z",
582
584
  medium: "h:mm:ss a",
583
585
  short: "h:mm a"
584
586
  };
585
587
 
586
- const m = {
588
+ const f = {
587
589
  full: "{{date}} 'at' {{time}}",
588
590
  long: "{{date}} 'at' {{time}}",
589
591
  medium: "{{date}}, {{time}}",
590
592
  short: "{{date}}, {{time}}"
591
593
  };
592
594
 
593
- const f = {
595
+ const g = {
594
596
  date: buildFormatLongFn({
595
- formats: u,
597
+ formats: h,
596
598
  defaultWidth: "full"
597
599
  }),
598
600
  time: buildFormatLongFn({
599
- formats: h,
601
+ formats: m,
600
602
  defaultWidth: "full"
601
603
  }),
602
604
  dateTime: buildFormatLongFn({
603
- formats: m,
605
+ formats: f,
604
606
  defaultWidth: "full"
605
607
  })
606
608
  };
607
609
 
608
- const g = {
610
+ const b = {
609
611
  lastWeek: "'last' eeee 'at' p",
610
612
  yesterday: "'yesterday at' p",
611
613
  today: "'today at' p",
@@ -614,7 +616,7 @@ const g = {
614
616
  other: "P"
615
617
  };
616
618
 
617
- const formatRelative$2 = (e, t, n, a) => g[e]
619
+ const formatRelative$2 = (n, e, t, a) => b[n]
618
620
  /**
619
621
  * The localize function argument callback which allows to convert raw value to
620
622
  * the actual type.
@@ -647,32 +649,32 @@ const formatRelative$2 = (e, t, n, a) => g[e]
647
649
  * The tuple of localized month values. The first element represents January.
648
650
  */;
649
651
 
650
- function buildLocalizeFn(e) {
651
- return (t, n) => {
652
- const a = n?.context ? String(n.context) : "standalone";
653
- let o;
654
- if (a === "formatting" && e.formattingValues) {
655
- const t = e.defaultFormattingWidth || e.defaultWidth;
656
- const a = n?.width ? String(n.width) : t;
657
- o = e.formattingValues[a] || e.formattingValues[t];
652
+ function buildLocalizeFn(n) {
653
+ return (e, t) => {
654
+ const a = t?.context ? String(t.context) : "standalone";
655
+ let i;
656
+ if (a === "formatting" && n.formattingValues) {
657
+ const e = n.defaultFormattingWidth || n.defaultWidth;
658
+ const a = t?.width ? String(t.width) : e;
659
+ i = n.formattingValues[a] || n.formattingValues[e];
658
660
  } else {
659
- const t = e.defaultWidth;
660
- const a = n?.width ? String(n.width) : e.defaultWidth;
661
- o = e.values[a] || e.values[t];
661
+ const e = n.defaultWidth;
662
+ const a = t?.width ? String(t.width) : n.defaultWidth;
663
+ i = n.values[a] || n.values[e];
662
664
  }
663
- const r = e.argumentCallback ? e.argumentCallback(t) : t;
665
+ const r = n.argumentCallback ? n.argumentCallback(e) : e;
664
666
  // @ts-expect-error - For some reason TypeScript just don't want to match it, no matter how hard we try. I challenge you to try to remove it!
665
- return o[r];
667
+ return i[r];
666
668
  };
667
669
  }
668
670
 
669
- const b = {
671
+ const p = {
670
672
  narrow: [ "B", "A" ],
671
673
  abbreviated: [ "BC", "AD" ],
672
674
  wide: [ "Before Christ", "Anno Domini" ]
673
675
  };
674
676
 
675
- const p = {
677
+ const y = {
676
678
  narrow: [ "1", "2", "3", "4" ],
677
679
  abbreviated: [ "Q1", "Q2", "Q3", "Q4" ],
678
680
  wide: [ "1st quarter", "2nd quarter", "3rd quarter", "4th quarter" ]
@@ -682,20 +684,20 @@ const p = {
682
684
  // If you are making a new locale based on this one, check if the same is true for the language you're working on.
683
685
  // Generally, formatted dates should look like they are in the middle of a sentence,
684
686
  // e.g. in Spanish language the weekdays and months should be in the lowercase.
685
- const y = {
687
+ const w = {
686
688
  narrow: [ "J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D" ],
687
689
  abbreviated: [ "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" ],
688
690
  wide: [ "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" ]
689
691
  };
690
692
 
691
- const w = {
693
+ const v = {
692
694
  narrow: [ "S", "M", "T", "W", "T", "F", "S" ],
693
695
  short: [ "Su", "Mo", "Tu", "We", "Th", "Fr", "Sa" ],
694
696
  abbreviated: [ "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" ],
695
697
  wide: [ "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" ]
696
698
  };
697
699
 
698
- const v = {
700
+ const _ = {
699
701
  narrow: {
700
702
  am: "a",
701
703
  pm: "p",
@@ -761,74 +763,74 @@ const M = {
761
763
  }
762
764
  };
763
765
 
764
- const ordinalNumber$2 = (e, t) => {
765
- const n = Number(e);
766
+ const ordinalNumber$2 = (n, e) => {
767
+ const t = Number(n);
766
768
  // If ordinal numbers depend on context, for example,
767
769
  // if they are different for different grammatical genders,
768
770
  // use `options.unit`.
769
771
 
770
772
  // `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear',
771
773
  // 'day', 'hour', 'minute', 'second'.
772
- const a = n % 100;
774
+ const a = t % 100;
773
775
  if (a > 20 || a < 10) {
774
776
  switch (a % 10) {
775
777
  case 1:
776
- return n + "st";
778
+ return t + "st";
777
779
 
778
780
  case 2:
779
- return n + "nd";
781
+ return t + "nd";
780
782
 
781
783
  case 3:
782
- return n + "rd";
784
+ return t + "rd";
783
785
  }
784
786
  }
785
- return n + "th";
787
+ return t + "th";
786
788
  };
787
789
 
788
- const _ = {
790
+ const k = {
789
791
  ordinalNumber: ordinalNumber$2,
790
792
  era: buildLocalizeFn({
791
- values: b,
793
+ values: p,
792
794
  defaultWidth: "wide"
793
795
  }),
794
796
  quarter: buildLocalizeFn({
795
- values: p,
797
+ values: y,
796
798
  defaultWidth: "wide",
797
- argumentCallback: e => e - 1
799
+ argumentCallback: n => n - 1
798
800
  }),
799
801
  month: buildLocalizeFn({
800
- values: y,
802
+ values: w,
801
803
  defaultWidth: "wide"
802
804
  }),
803
805
  day: buildLocalizeFn({
804
- values: w,
806
+ values: v,
805
807
  defaultWidth: "wide"
806
808
  }),
807
809
  dayPeriod: buildLocalizeFn({
808
- values: v,
810
+ values: _,
809
811
  defaultWidth: "wide",
810
812
  formattingValues: M,
811
813
  defaultFormattingWidth: "wide"
812
814
  })
813
815
  };
814
816
 
815
- function buildMatchFn(e) {
816
- return (t, n = {}) => {
817
- const a = n.width;
818
- const o = a && e.matchPatterns[a] || e.matchPatterns[e.defaultMatchWidth];
819
- const r = t.match(o);
817
+ function buildMatchFn(n) {
818
+ return (e, t = {}) => {
819
+ const a = t.width;
820
+ const i = a && n.matchPatterns[a] || n.matchPatterns[n.defaultMatchWidth];
821
+ const r = e.match(i);
820
822
  if (!r) {
821
823
  return null;
822
824
  }
823
- const i = r[0];
824
- const s = a && e.parsePatterns[a] || e.parsePatterns[e.defaultParseWidth];
825
- const c = Array.isArray(s) ? findIndex(s, (e => e.test(i))) : // [TODO] -- I challenge you to fix the type
826
- findKey(s, (e => e.test(i)));
825
+ const o = r[0];
826
+ const s = a && n.parsePatterns[a] || n.parsePatterns[n.defaultParseWidth];
827
+ const c = Array.isArray(s) ? findIndex(s, (n => n.test(o))) : // [TODO] -- I challenge you to fix the type
828
+ findKey(s, (n => n.test(o)));
827
829
  let d;
828
- d = e.valueCallback ? e.valueCallback(c) : c;
829
- d = n.valueCallback ? // [TODO] -- I challenge you to fix the type
830
- n.valueCallback(d) : d;
831
- const l = t.slice(i.length);
830
+ d = n.valueCallback ? n.valueCallback(c) : c;
831
+ d = t.valueCallback ? // [TODO] -- I challenge you to fix the type
832
+ t.valueCallback(d) : d;
833
+ const l = e.slice(o.length);
832
834
  return {
833
835
  value: d,
834
836
  rest: l
@@ -836,78 +838,78 @@ function buildMatchFn(e) {
836
838
  };
837
839
  }
838
840
 
839
- function findKey(e, t) {
840
- for (const n in e) {
841
- if (Object.prototype.hasOwnProperty.call(e, n) && t(e[n])) {
842
- return n;
841
+ function findKey(n, e) {
842
+ for (const t in n) {
843
+ if (Object.prototype.hasOwnProperty.call(n, t) && e(n[t])) {
844
+ return t;
843
845
  }
844
846
  }
845
847
  return undefined;
846
848
  }
847
849
 
848
- function findIndex(e, t) {
849
- for (let n = 0; n < e.length; n++) {
850
- if (t(e[n])) {
851
- return n;
850
+ function findIndex(n, e) {
851
+ for (let t = 0; t < n.length; t++) {
852
+ if (e(n[t])) {
853
+ return t;
852
854
  }
853
855
  }
854
856
  return undefined;
855
857
  }
856
858
 
857
- function buildMatchPatternFn(e) {
858
- return (t, n = {}) => {
859
- const a = t.match(e.matchPattern);
859
+ function buildMatchPatternFn(n) {
860
+ return (e, t = {}) => {
861
+ const a = e.match(n.matchPattern);
860
862
  if (!a) return null;
861
- const o = a[0];
862
- const r = t.match(e.parsePattern);
863
+ const i = a[0];
864
+ const r = e.match(n.parsePattern);
863
865
  if (!r) return null;
864
- let i = e.valueCallback ? e.valueCallback(r[0]) : r[0];
866
+ let o = n.valueCallback ? n.valueCallback(r[0]) : r[0];
865
867
  // [TODO] I challenge you to fix the type
866
- i = n.valueCallback ? n.valueCallback(i) : i;
867
- const s = t.slice(o.length);
868
+ o = t.valueCallback ? t.valueCallback(o) : o;
869
+ const s = e.slice(i.length);
868
870
  return {
869
- value: i,
871
+ value: o,
870
872
  rest: s
871
873
  };
872
874
  };
873
875
  }
874
876
 
875
- const k = /^(\d+)(th|st|nd|rd)?/i;
877
+ const W = /^(\d+)(th|st|nd|rd)?/i;
876
878
 
877
- const W = /\d+/i;
879
+ const x = /\d+/i;
878
880
 
879
- const x = {
881
+ const F = {
880
882
  narrow: /^(b|a)/i,
881
883
  abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
882
884
  wide: /^(before christ|before common era|anno domini|common era)/i
883
885
  };
884
886
 
885
- const F = {
887
+ const P = {
886
888
  any: [ /^b/i, /^(a|c)/i ]
887
889
  };
888
890
 
889
- const P = {
891
+ const z = {
890
892
  narrow: /^[1234]/i,
891
893
  abbreviated: /^q[1234]/i,
892
894
  wide: /^[1234](th|st|nd|rd)? quarter/i
893
895
  };
894
896
 
895
- const z = {
897
+ const D = {
896
898
  any: [ /1/i, /2/i, /3/i, /4/i ]
897
899
  };
898
900
 
899
- const D = {
901
+ const S = {
900
902
  narrow: /^[jfmasond]/i,
901
903
  abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
902
904
  wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
903
905
  };
904
906
 
905
- const S = {
907
+ const T = {
906
908
  narrow: [ /^j/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i ],
907
909
  any: [ /^ja/i, /^f/i, /^mar/i, /^ap/i, /^may/i, /^jun/i, /^jul/i, /^au/i, /^s/i, /^o/i, /^n/i, /^d/i ]
908
910
  };
909
911
 
910
- const T = {
912
+ const C = {
911
913
  narrow: /^[smtwf]/i,
912
914
  short: /^(su|mo|tu|we|th|fr|sa)/i,
913
915
  abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
@@ -919,12 +921,12 @@ const X = {
919
921
  any: [ /^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i ]
920
922
  };
921
923
 
922
- const C = {
924
+ const L = {
923
925
  narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
924
926
  any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
925
927
  };
926
928
 
927
- const L = {
929
+ const j = {
928
930
  any: {
929
931
  am: /^a/i,
930
932
  pm: /^p/i,
@@ -939,39 +941,39 @@ const L = {
939
941
 
940
942
  const A = {
941
943
  ordinalNumber: buildMatchPatternFn({
942
- matchPattern: k,
943
- parsePattern: W,
944
- valueCallback: e => parseInt(e, 10)
944
+ matchPattern: W,
945
+ parsePattern: x,
946
+ valueCallback: n => parseInt(n, 10)
945
947
  }),
946
948
  era: buildMatchFn({
947
- matchPatterns: x,
949
+ matchPatterns: F,
948
950
  defaultMatchWidth: "wide",
949
- parsePatterns: F,
951
+ parsePatterns: P,
950
952
  defaultParseWidth: "any"
951
953
  }),
952
954
  quarter: buildMatchFn({
953
- matchPatterns: P,
955
+ matchPatterns: z,
954
956
  defaultMatchWidth: "wide",
955
- parsePatterns: z,
957
+ parsePatterns: D,
956
958
  defaultParseWidth: "any",
957
- valueCallback: e => e + 1
959
+ valueCallback: n => n + 1
958
960
  }),
959
961
  month: buildMatchFn({
960
- matchPatterns: D,
962
+ matchPatterns: S,
961
963
  defaultMatchWidth: "wide",
962
- parsePatterns: S,
964
+ parsePatterns: T,
963
965
  defaultParseWidth: "any"
964
966
  }),
965
967
  day: buildMatchFn({
966
- matchPatterns: T,
968
+ matchPatterns: C,
967
969
  defaultMatchWidth: "wide",
968
970
  parsePatterns: X,
969
971
  defaultParseWidth: "any"
970
972
  }),
971
973
  dayPeriod: buildMatchFn({
972
- matchPatterns: C,
974
+ matchPatterns: L,
973
975
  defaultMatchWidth: "any",
974
- parsePatterns: L,
976
+ parsePatterns: j,
975
977
  defaultParseWidth: "any"
976
978
  })
977
979
  };
@@ -983,12 +985,12 @@ const A = {
983
985
  * @iso-639-2 eng
984
986
  * @author Sasha Koss [@kossnocorp](https://github.com/kossnocorp)
985
987
  * @author Lesha Koss [@leshakoss](https://github.com/leshakoss)
986
- */ const j = {
988
+ */ const I = {
987
989
  code: "en-US",
988
990
  formatDistance: formatDistance$3,
989
- formatLong: f,
991
+ formatLong: g,
990
992
  formatRelative: formatRelative$2,
991
- localize: _,
993
+ localize: k,
992
994
  match: A,
993
995
  options: {
994
996
  weekStartsOn: 0 /* Sunday */ ,
@@ -1076,84 +1078,84 @@ const A = {
1076
1078
  * locale: eoLocale
1077
1079
  * })
1078
1080
  * //=> 'pli ol 1 jaro'
1079
- */ function formatDistance$2(e, t, n) {
1081
+ */ function formatDistance$2(n, e, t) {
1080
1082
  const a = getDefaultOptions();
1081
- const o = n?.locale ?? a.locale ?? j;
1083
+ const i = t?.locale ?? a.locale ?? I;
1082
1084
  const r = 2520;
1083
- const c = compareAsc(e, t);
1084
- if (isNaN(c)) throw new RangeError("Invalid time value");
1085
- const d = Object.assign({}, n, {
1086
- addSuffix: n?.addSuffix,
1087
- comparison: c
1085
+ const o = compareAsc(n, e);
1086
+ if (isNaN(o)) throw new RangeError("Invalid time value");
1087
+ const d = Object.assign({}, t, {
1088
+ addSuffix: t?.addSuffix,
1089
+ comparison: o
1088
1090
  });
1089
- const [l, u] = normalizeDates(n?.in, ...c > 0 ? [ t, e ] : [ e, t ]);
1091
+ const [l, u] = normalizeDates(t?.in, ...o > 0 ? [ e, n ] : [ n, e ]);
1090
1092
  const h = differenceInSeconds(u, l);
1091
1093
  const m = (getTimezoneOffsetInMilliseconds(u) - getTimezoneOffsetInMilliseconds(l)) / 1e3;
1092
1094
  const f = Math.round((h - m) / 60);
1093
1095
  let g;
1094
1096
  // 0 up to 2 mins
1095
1097
  if (f < 2) {
1096
- if (n?.includeSeconds) {
1098
+ if (t?.includeSeconds) {
1097
1099
  if (h < 5) {
1098
- return o.formatDistance("lessThanXSeconds", 5, d);
1100
+ return i.formatDistance("lessThanXSeconds", 5, d);
1099
1101
  } else if (h < 10) {
1100
- return o.formatDistance("lessThanXSeconds", 10, d);
1102
+ return i.formatDistance("lessThanXSeconds", 10, d);
1101
1103
  } else if (h < 20) {
1102
- return o.formatDistance("lessThanXSeconds", 20, d);
1104
+ return i.formatDistance("lessThanXSeconds", 20, d);
1103
1105
  } else if (h < 40) {
1104
- return o.formatDistance("halfAMinute", 0, d);
1106
+ return i.formatDistance("halfAMinute", 0, d);
1105
1107
  } else if (h < 60) {
1106
- return o.formatDistance("lessThanXMinutes", 1, d);
1108
+ return i.formatDistance("lessThanXMinutes", 1, d);
1107
1109
  } else {
1108
- return o.formatDistance("xMinutes", 1, d);
1110
+ return i.formatDistance("xMinutes", 1, d);
1109
1111
  }
1110
1112
  } else {
1111
1113
  if (f === 0) {
1112
- return o.formatDistance("lessThanXMinutes", 1, d);
1114
+ return i.formatDistance("lessThanXMinutes", 1, d);
1113
1115
  } else {
1114
- return o.formatDistance("xMinutes", f, d);
1116
+ return i.formatDistance("xMinutes", f, d);
1115
1117
  }
1116
1118
  }
1117
1119
  // 2 mins up to 0.75 hrs
1118
1120
  } else if (f < 45) {
1119
- return o.formatDistance("xMinutes", f, d);
1121
+ return i.formatDistance("xMinutes", f, d);
1120
1122
  // 0.75 hrs up to 1.5 hrs
1121
1123
  } else if (f < 90) {
1122
- return o.formatDistance("aboutXHours", 1, d);
1124
+ return i.formatDistance("aboutXHours", 1, d);
1123
1125
  // 1.5 hrs up to 24 hrs
1124
- } else if (f < s) {
1125
- const e = Math.round(f / 60);
1126
- return o.formatDistance("aboutXHours", e, d);
1126
+ } else if (f < c) {
1127
+ const n = Math.round(f / 60);
1128
+ return i.formatDistance("aboutXHours", n, d);
1127
1129
  // 1 day up to 1.75 days
1128
1130
  } else if (f < r) {
1129
- return o.formatDistance("xDays", 1, d);
1131
+ return i.formatDistance("xDays", 1, d);
1130
1132
  // 1.75 days up to 30 days
1131
- } else if (f < i) {
1132
- const e = Math.round(f / s);
1133
- return o.formatDistance("xDays", e, d);
1133
+ } else if (f < s) {
1134
+ const n = Math.round(f / c);
1135
+ return i.formatDistance("xDays", n, d);
1134
1136
  // 1 month up to 2 months
1135
- } else if (f < i * 2) {
1136
- g = Math.round(f / i);
1137
- return o.formatDistance("aboutXMonths", g, d);
1137
+ } else if (f < s * 2) {
1138
+ g = Math.round(f / s);
1139
+ return i.formatDistance("aboutXMonths", g, d);
1138
1140
  }
1139
1141
  g = differenceInMonths(u, l);
1140
1142
  // 2 months up to 12 months
1141
1143
  if (g < 12) {
1142
- const e = Math.round(f / i);
1143
- return o.formatDistance("xMonths", e, d);
1144
+ const n = Math.round(f / s);
1145
+ return i.formatDistance("xMonths", n, d);
1144
1146
  // 1 year up to max Date
1145
1147
  } else {
1146
- const e = g % 12;
1147
- const t = Math.trunc(g / 12);
1148
+ const n = g % 12;
1149
+ const e = Math.trunc(g / 12);
1148
1150
  // N years up to 1 years 3 months
1149
- if (e < 3) {
1150
- return o.formatDistance("aboutXYears", t, d);
1151
+ if (n < 3) {
1152
+ return i.formatDistance("aboutXYears", e, d);
1151
1153
  // N years 3 months up to N years 9 months
1152
- } else if (e < 9) {
1153
- return o.formatDistance("overXYears", t, d);
1154
+ } else if (n < 9) {
1155
+ return i.formatDistance("overXYears", e, d);
1154
1156
  // N years 9 months up to N year 12 months
1155
1157
  } else {
1156
- return o.formatDistance("almostXYears", t + 1, d);
1158
+ return i.formatDistance("almostXYears", e + 1, d);
1157
1159
  }
1158
1160
  }
1159
1161
  }
@@ -1241,8 +1243,8 @@ const A = {
1241
1243
  * {locale: eoLocale}
1242
1244
  * )
1243
1245
  * //=> 'pli ol 1 jaro'
1244
- */ function formatDistanceToNow(e, t) {
1245
- return formatDistance$2(e, constructNow(e), t);
1246
+ */ function formatDistanceToNow(n, e) {
1247
+ return formatDistance$2(n, constructNow(n), e);
1246
1248
  }
1247
1249
 
1248
1250
  /**
@@ -1279,12 +1281,12 @@ const A = {
1279
1281
  * // Are 1 January 2014 and 1 January 2015 in the same week?
1280
1282
  * const result = isSameWeek(new Date(2014, 0, 1), new Date(2015, 0, 1))
1281
1283
  * //=> false
1282
- */ function isSameWeek(e, t, n) {
1283
- const [a, o] = normalizeDates(n?.in, e, t);
1284
- return +startOfWeek(a, n) === +startOfWeek(o, n);
1284
+ */ function isSameWeek(n, e, t) {
1285
+ const [a, i] = normalizeDates(t?.in, n, e);
1286
+ return +startOfWeek(a, t) === +startOfWeek(i, t);
1285
1287
  }
1286
1288
 
1287
- const I = {
1289
+ const O = {
1288
1290
  lessThanXSeconds: {
1289
1291
  one: "1秒未満",
1290
1292
  other: "{{count}}秒未満",
@@ -1352,27 +1354,27 @@ const I = {
1352
1354
  }
1353
1355
  };
1354
1356
 
1355
- const formatDistance$1 = (e, t, n) => {
1356
- n = n || {};
1357
+ const formatDistance$1 = (n, e, t) => {
1358
+ t = t || {};
1357
1359
  let a;
1358
- const o = I[e];
1359
- if (typeof o === "string") {
1360
- a = o;
1361
- } else if (t === 1) {
1362
- if (n.addSuffix && o.oneWithSuffix) {
1363
- a = o.oneWithSuffix;
1360
+ const i = O[n];
1361
+ if (typeof i === "string") {
1362
+ a = i;
1363
+ } else if (e === 1) {
1364
+ if (t.addSuffix && i.oneWithSuffix) {
1365
+ a = i.oneWithSuffix;
1364
1366
  } else {
1365
- a = o.one;
1367
+ a = i.one;
1366
1368
  }
1367
1369
  } else {
1368
- if (n.addSuffix && o.otherWithSuffix) {
1369
- a = o.otherWithSuffix.replace("{{count}}", String(t));
1370
+ if (t.addSuffix && i.otherWithSuffix) {
1371
+ a = i.otherWithSuffix.replace("{{count}}", String(e));
1370
1372
  } else {
1371
- a = o.other.replace("{{count}}", String(t));
1373
+ a = i.other.replace("{{count}}", String(e));
1372
1374
  }
1373
1375
  }
1374
- if (n.addSuffix) {
1375
- if (n.comparison && n.comparison > 0) {
1376
+ if (t.addSuffix) {
1377
+ if (t.comparison && t.comparison > 0) {
1376
1378
  return a + "後";
1377
1379
  } else {
1378
1380
  return a + "前";
@@ -1381,38 +1383,38 @@ const formatDistance$1 = (e, t, n) => {
1381
1383
  return a;
1382
1384
  };
1383
1385
 
1384
- const O = {
1386
+ const N = {
1385
1387
  full: "y年M月d日EEEE",
1386
1388
  long: "y年M月d日",
1387
1389
  medium: "y/MM/dd",
1388
1390
  short: "y/MM/dd"
1389
1391
  };
1390
1392
 
1391
- const N = {
1393
+ const E = {
1392
1394
  full: "H時mm分ss秒 zzzz",
1393
1395
  long: "H:mm:ss z",
1394
1396
  medium: "H:mm:ss",
1395
1397
  short: "H:mm"
1396
1398
  };
1397
1399
 
1398
- const E = {
1400
+ const Y = {
1399
1401
  full: "{{date}} {{time}}",
1400
1402
  long: "{{date}} {{time}}",
1401
1403
  medium: "{{date}} {{time}}",
1402
1404
  short: "{{date}} {{time}}"
1403
1405
  };
1404
1406
 
1405
- const Y = {
1407
+ const q = {
1406
1408
  date: buildFormatLongFn({
1407
- formats: O,
1409
+ formats: N,
1408
1410
  defaultWidth: "full"
1409
1411
  }),
1410
1412
  time: buildFormatLongFn({
1411
- formats: N,
1413
+ formats: E,
1412
1414
  defaultWidth: "full"
1413
1415
  }),
1414
1416
  dateTime: buildFormatLongFn({
1415
- formats: E,
1417
+ formats: Y,
1416
1418
  defaultWidth: "full"
1417
1419
  })
1418
1420
  };
@@ -1426,34 +1428,34 @@ const H = {
1426
1428
  other: "P"
1427
1429
  };
1428
1430
 
1429
- const formatRelative$1 = (e, t, n, a) => H[e];
1431
+ const formatRelative$1 = (n, e, t, a) => H[n];
1430
1432
 
1431
- const q = {
1433
+ const $ = {
1432
1434
  narrow: [ "BC", "AC" ],
1433
1435
  abbreviated: [ "紀元前", "西暦" ],
1434
1436
  wide: [ "紀元前", "西暦" ]
1435
1437
  };
1436
1438
 
1437
- const $ = {
1439
+ const J = {
1438
1440
  narrow: [ "1", "2", "3", "4" ],
1439
1441
  abbreviated: [ "Q1", "Q2", "Q3", "Q4" ],
1440
1442
  wide: [ "第1四半期", "第2四半期", "第3四半期", "第4四半期" ]
1441
1443
  };
1442
1444
 
1443
- const J = {
1445
+ const Q = {
1444
1446
  narrow: [ "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12" ],
1445
1447
  abbreviated: [ "1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月" ],
1446
1448
  wide: [ "1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月" ]
1447
1449
  };
1448
1450
 
1449
- const Q = {
1451
+ const R = {
1450
1452
  narrow: [ "日", "月", "火", "水", "木", "金", "土" ],
1451
1453
  short: [ "日", "月", "火", "水", "木", "金", "土" ],
1452
1454
  abbreviated: [ "日", "月", "火", "水", "木", "金", "土" ],
1453
1455
  wide: [ "日曜日", "月曜日", "火曜日", "水曜日", "木曜日", "金曜日", "土曜日" ]
1454
1456
  };
1455
1457
 
1456
- const R = {
1458
+ const B = {
1457
1459
  narrow: {
1458
1460
  am: "午前",
1459
1461
  pm: "午後",
@@ -1486,7 +1488,7 @@ const R = {
1486
1488
  }
1487
1489
  };
1488
1490
 
1489
- const B = {
1491
+ const V = {
1490
1492
  narrow: {
1491
1493
  am: "午前",
1492
1494
  pm: "午後",
@@ -1519,117 +1521,117 @@ const B = {
1519
1521
  }
1520
1522
  };
1521
1523
 
1522
- const ordinalNumber$1 = (e, t) => {
1523
- const n = Number(e);
1524
- const a = String(t?.unit);
1524
+ const ordinalNumber$1 = (n, e) => {
1525
+ const t = Number(n);
1526
+ const a = String(e?.unit);
1525
1527
  switch (a) {
1526
1528
  case "year":
1527
- return `${n}年`;
1529
+ return `${t}年`;
1528
1530
 
1529
1531
  case "quarter":
1530
- return `第${n}四半期`;
1532
+ return `第${t}四半期`;
1531
1533
 
1532
1534
  case "month":
1533
- return `${n}月`;
1535
+ return `${t}月`;
1534
1536
 
1535
1537
  case "week":
1536
- return `第${n}週`;
1538
+ return `第${t}週`;
1537
1539
 
1538
1540
  case "date":
1539
- return `${n}日`;
1541
+ return `${t}日`;
1540
1542
 
1541
1543
  case "hour":
1542
- return `${n}時`;
1544
+ return `${t}時`;
1543
1545
 
1544
1546
  case "minute":
1545
- return `${n}分`;
1547
+ return `${t}分`;
1546
1548
 
1547
1549
  case "second":
1548
- return `${n}秒`;
1550
+ return `${t}秒`;
1549
1551
 
1550
1552
  default:
1551
- return `${n}`;
1553
+ return `${t}`;
1552
1554
  }
1553
1555
  };
1554
1556
 
1555
- const V = {
1557
+ const K = {
1556
1558
  ordinalNumber: ordinalNumber$1,
1557
1559
  era: buildLocalizeFn({
1558
- values: q,
1560
+ values: $,
1559
1561
  defaultWidth: "wide"
1560
1562
  }),
1561
1563
  quarter: buildLocalizeFn({
1562
- values: $,
1564
+ values: J,
1563
1565
  defaultWidth: "wide",
1564
- argumentCallback: e => Number(e) - 1
1566
+ argumentCallback: n => Number(n) - 1
1565
1567
  }),
1566
1568
  month: buildLocalizeFn({
1567
- values: J,
1569
+ values: Q,
1568
1570
  defaultWidth: "wide"
1569
1571
  }),
1570
1572
  day: buildLocalizeFn({
1571
- values: Q,
1573
+ values: R,
1572
1574
  defaultWidth: "wide"
1573
1575
  }),
1574
1576
  dayPeriod: buildLocalizeFn({
1575
- values: R,
1577
+ values: B,
1576
1578
  defaultWidth: "wide",
1577
- formattingValues: B,
1579
+ formattingValues: V,
1578
1580
  defaultFormattingWidth: "wide"
1579
1581
  })
1580
1582
  };
1581
1583
 
1582
- const K = /^第?\d+(年|四半期|月|週|日|時|分|秒)?/i;
1584
+ const G = /^第?\d+(年|四半期|月|週|日|時|分|秒)?/i;
1583
1585
 
1584
- const G = /\d+/i;
1586
+ const U = /\d+/i;
1585
1587
 
1586
- const U = {
1588
+ const Z = {
1587
1589
  narrow: /^(B\.?C\.?|A\.?D\.?)/i,
1588
1590
  abbreviated: /^(紀元[前後]|西暦)/i,
1589
1591
  wide: /^(紀元[前後]|西暦)/i
1590
1592
  };
1591
1593
 
1592
- const Z = {
1594
+ const nn = {
1593
1595
  narrow: [ /^B/i, /^A/i ],
1594
1596
  any: [ /^(紀元前)/i, /^(西暦|紀元後)/i ]
1595
1597
  };
1596
1598
 
1597
- const ee = {
1599
+ const en = {
1598
1600
  narrow: /^[1234]/i,
1599
1601
  abbreviated: /^Q[1234]/i,
1600
1602
  wide: /^第[1234一二三四1234]四半期/i
1601
1603
  };
1602
1604
 
1603
- const te = {
1605
+ const tn = {
1604
1606
  any: [ /(1|一|1)/i, /(2|二|2)/i, /(3|三|3)/i, /(4|四|4)/i ]
1605
1607
  };
1606
1608
 
1607
- const ne = {
1609
+ const an = {
1608
1610
  narrow: /^([123456789]|1[012])/,
1609
1611
  abbreviated: /^([123456789]|1[012])月/i,
1610
1612
  wide: /^([123456789]|1[012])月/i
1611
1613
  };
1612
1614
 
1613
- const ae = {
1615
+ const rn = {
1614
1616
  any: [ /^1\D/, /^2/, /^3/, /^4/, /^5/, /^6/, /^7/, /^8/, /^9/, /^10/, /^11/, /^12/ ]
1615
1617
  };
1616
1618
 
1617
- const oe = {
1619
+ const on = {
1618
1620
  narrow: /^[日月火水木金土]/,
1619
1621
  short: /^[日月火水木金土]/,
1620
1622
  abbreviated: /^[日月火水木金土]/,
1621
1623
  wide: /^[日月火水木金土]曜日/
1622
1624
  };
1623
1625
 
1624
- const re = {
1626
+ const sn = {
1625
1627
  any: [ /^日/, /^月/, /^火/, /^水/, /^木/, /^金/, /^土/ ]
1626
1628
  };
1627
1629
 
1628
- const ie = {
1630
+ const cn = {
1629
1631
  any: /^(AM|PM|午前|午後|正午|深夜|真夜中|夜|朝)/i
1630
1632
  };
1631
1633
 
1632
- const se = {
1634
+ const dn = {
1633
1635
  any: {
1634
1636
  am: /^(A|午前)/i,
1635
1637
  pm: /^(P|午後)/i,
@@ -1642,43 +1644,43 @@ const se = {
1642
1644
  }
1643
1645
  };
1644
1646
 
1645
- const ce = {
1647
+ const ln = {
1646
1648
  ordinalNumber: buildMatchPatternFn({
1647
- matchPattern: K,
1648
- parsePattern: G,
1649
- valueCallback: function(e) {
1650
- return parseInt(e, 10);
1649
+ matchPattern: G,
1650
+ parsePattern: U,
1651
+ valueCallback: function(n) {
1652
+ return parseInt(n, 10);
1651
1653
  }
1652
1654
  }),
1653
1655
  era: buildMatchFn({
1654
- matchPatterns: U,
1656
+ matchPatterns: Z,
1655
1657
  defaultMatchWidth: "wide",
1656
- parsePatterns: Z,
1658
+ parsePatterns: nn,
1657
1659
  defaultParseWidth: "any"
1658
1660
  }),
1659
1661
  quarter: buildMatchFn({
1660
- matchPatterns: ee,
1662
+ matchPatterns: en,
1661
1663
  defaultMatchWidth: "wide",
1662
- parsePatterns: te,
1664
+ parsePatterns: tn,
1663
1665
  defaultParseWidth: "any",
1664
- valueCallback: e => e + 1
1666
+ valueCallback: n => n + 1
1665
1667
  }),
1666
1668
  month: buildMatchFn({
1667
- matchPatterns: ne,
1669
+ matchPatterns: an,
1668
1670
  defaultMatchWidth: "wide",
1669
- parsePatterns: ae,
1671
+ parsePatterns: rn,
1670
1672
  defaultParseWidth: "any"
1671
1673
  }),
1672
1674
  day: buildMatchFn({
1673
- matchPatterns: oe,
1675
+ matchPatterns: on,
1674
1676
  defaultMatchWidth: "wide",
1675
- parsePatterns: re,
1677
+ parsePatterns: sn,
1676
1678
  defaultParseWidth: "any"
1677
1679
  }),
1678
1680
  dayPeriod: buildMatchFn({
1679
- matchPatterns: ie,
1681
+ matchPatterns: cn,
1680
1682
  defaultMatchWidth: "any",
1681
- parsePatterns: se,
1683
+ parsePatterns: dn,
1682
1684
  defaultParseWidth: "any"
1683
1685
  })
1684
1686
  };
@@ -1693,20 +1695,20 @@ const ce = {
1693
1695
  * @author Luca Ban [@mesqueeb](https://github.com/mesqueeb)
1694
1696
  * @author Terrence Lam [@skyuplam](https://github.com/skyuplam)
1695
1697
  * @author Taiki IKeda [@so99ynoodles](https://github.com/so99ynoodles)
1696
- */ const de = {
1698
+ */ const un = {
1697
1699
  code: "ja",
1698
1700
  formatDistance: formatDistance$1,
1699
- formatLong: Y,
1701
+ formatLong: q,
1700
1702
  formatRelative: formatRelative$1,
1701
- localize: V,
1702
- match: ce,
1703
+ localize: K,
1704
+ match: ln,
1703
1705
  options: {
1704
1706
  weekStartsOn: 0 /* Sunday */ ,
1705
1707
  firstWeekContainsDate: 1
1706
1708
  }
1707
1709
  };
1708
1710
 
1709
- const le = {
1711
+ const hn = {
1710
1712
  lessThanXSeconds: {
1711
1713
  one: "不到 1 秒",
1712
1714
  other: "不到 {{count}} 秒"
@@ -1770,18 +1772,18 @@ const le = {
1770
1772
  }
1771
1773
  };
1772
1774
 
1773
- const formatDistance = (e, t, n) => {
1775
+ const formatDistance = (n, e, t) => {
1774
1776
  let a;
1775
- const o = le[e];
1776
- if (typeof o === "string") {
1777
- a = o;
1778
- } else if (t === 1) {
1779
- a = o.one;
1777
+ const i = hn[n];
1778
+ if (typeof i === "string") {
1779
+ a = i;
1780
+ } else if (e === 1) {
1781
+ a = i.one;
1780
1782
  } else {
1781
- a = o.other.replace("{{count}}", String(t));
1783
+ a = i.other.replace("{{count}}", String(e));
1782
1784
  }
1783
- if (n?.addSuffix) {
1784
- if (n.comparison && n.comparison > 0) {
1785
+ if (t?.addSuffix) {
1786
+ if (t.comparison && t.comparison > 0) {
1785
1787
  return a + "内";
1786
1788
  } else {
1787
1789
  return a + "前";
@@ -1790,48 +1792,48 @@ const formatDistance = (e, t, n) => {
1790
1792
  return a;
1791
1793
  };
1792
1794
 
1793
- const ue = {
1795
+ const mn = {
1794
1796
  full: "y'年'M'月'd'日' EEEE",
1795
1797
  long: "y'年'M'月'd'日'",
1796
1798
  medium: "yyyy-MM-dd",
1797
1799
  short: "yy-MM-dd"
1798
1800
  };
1799
1801
 
1800
- const he = {
1802
+ const fn = {
1801
1803
  full: "zzzz a h:mm:ss",
1802
1804
  long: "z a h:mm:ss",
1803
1805
  medium: "a h:mm:ss",
1804
1806
  short: "a h:mm"
1805
1807
  };
1806
1808
 
1807
- const me = {
1809
+ const gn = {
1808
1810
  full: "{{date}} {{time}}",
1809
1811
  long: "{{date}} {{time}}",
1810
1812
  medium: "{{date}} {{time}}",
1811
1813
  short: "{{date}} {{time}}"
1812
1814
  };
1813
1815
 
1814
- const fe = {
1816
+ const bn = {
1815
1817
  date: buildFormatLongFn({
1816
- formats: ue,
1818
+ formats: mn,
1817
1819
  defaultWidth: "full"
1818
1820
  }),
1819
1821
  time: buildFormatLongFn({
1820
- formats: he,
1822
+ formats: fn,
1821
1823
  defaultWidth: "full"
1822
1824
  }),
1823
1825
  dateTime: buildFormatLongFn({
1824
- formats: me,
1826
+ formats: gn,
1825
1827
  defaultWidth: "full"
1826
1828
  })
1827
1829
  };
1828
1830
 
1829
- function checkWeek(e, t, n) {
1831
+ function checkWeek(n, e, t) {
1830
1832
  const a = "eeee p";
1831
- if (isSameWeek(e, t, n)) {
1833
+ if (isSameWeek(n, e, t)) {
1832
1834
  return a;
1833
1835
  // in same week
1834
- } else if (e.getTime() > t.getTime()) {
1836
+ } else if (n.getTime() > e.getTime()) {
1835
1837
  return "'下个'" + a;
1836
1838
  // in next week
1837
1839
  }
@@ -1839,7 +1841,7 @@ function checkWeek(e, t, n) {
1839
1841
  // in last week
1840
1842
  }
1841
1843
 
1842
- const ge = {
1844
+ const pn = {
1843
1845
  lastWeek: checkWeek,
1844
1846
  // days before yesterday, maybe in this week or last week
1845
1847
  yesterday: "'昨天' p",
@@ -1850,40 +1852,40 @@ const ge = {
1850
1852
  other: "PP p"
1851
1853
  };
1852
1854
 
1853
- const formatRelative = (e, t, n, a) => {
1854
- const o = ge[e];
1855
- if (typeof o === "function") {
1856
- return o(t, n, a);
1855
+ const formatRelative = (n, e, t, a) => {
1856
+ const i = pn[n];
1857
+ if (typeof i === "function") {
1858
+ return i(e, t, a);
1857
1859
  }
1858
- return o;
1860
+ return i;
1859
1861
  };
1860
1862
 
1861
- const be = {
1863
+ const yn = {
1862
1864
  narrow: [ "前", "公元" ],
1863
1865
  abbreviated: [ "前", "公元" ],
1864
1866
  wide: [ "公元前", "公元" ]
1865
1867
  };
1866
1868
 
1867
- const pe = {
1869
+ const wn = {
1868
1870
  narrow: [ "1", "2", "3", "4" ],
1869
1871
  abbreviated: [ "第一季", "第二季", "第三季", "第四季" ],
1870
1872
  wide: [ "第一季度", "第二季度", "第三季度", "第四季度" ]
1871
1873
  };
1872
1874
 
1873
- const ye = {
1875
+ const vn = {
1874
1876
  narrow: [ "一", "二", "三", "四", "五", "六", "七", "八", "九", "十", "十一", "十二" ],
1875
1877
  abbreviated: [ "1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月" ],
1876
1878
  wide: [ "一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月" ]
1877
1879
  };
1878
1880
 
1879
- const we = {
1881
+ const _n = {
1880
1882
  narrow: [ "日", "一", "二", "三", "四", "五", "六" ],
1881
1883
  short: [ "日", "一", "二", "三", "四", "五", "六" ],
1882
1884
  abbreviated: [ "周日", "周一", "周二", "周三", "周四", "周五", "周六" ],
1883
1885
  wide: [ "星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六" ]
1884
1886
  };
1885
1887
 
1886
- const ve = {
1888
+ const Mn = {
1887
1889
  narrow: {
1888
1890
  am: "上",
1889
1891
  pm: "下",
@@ -1916,7 +1918,7 @@ const ve = {
1916
1918
  }
1917
1919
  };
1918
1920
 
1919
- const Me = {
1921
+ const kn = {
1920
1922
  narrow: {
1921
1923
  am: "上",
1922
1924
  pm: "下",
@@ -1949,104 +1951,104 @@ const Me = {
1949
1951
  }
1950
1952
  };
1951
1953
 
1952
- const ordinalNumber = (e, t) => {
1953
- const n = Number(e);
1954
- switch (t?.unit) {
1954
+ const ordinalNumber = (n, e) => {
1955
+ const t = Number(n);
1956
+ switch (e?.unit) {
1955
1957
  case "date":
1956
- return n.toString() + "日";
1958
+ return t.toString() + "日";
1957
1959
 
1958
1960
  case "hour":
1959
- return n.toString() + "时";
1961
+ return t.toString() + "时";
1960
1962
 
1961
1963
  case "minute":
1962
- return n.toString() + "分";
1964
+ return t.toString() + "分";
1963
1965
 
1964
1966
  case "second":
1965
- return n.toString() + "秒";
1967
+ return t.toString() + "秒";
1966
1968
 
1967
1969
  default:
1968
- return "第 " + n.toString();
1970
+ return "第 " + t.toString();
1969
1971
  }
1970
1972
  };
1971
1973
 
1972
- const _e = {
1974
+ const Wn = {
1973
1975
  ordinalNumber,
1974
1976
  era: buildLocalizeFn({
1975
- values: be,
1977
+ values: yn,
1976
1978
  defaultWidth: "wide"
1977
1979
  }),
1978
1980
  quarter: buildLocalizeFn({
1979
- values: pe,
1981
+ values: wn,
1980
1982
  defaultWidth: "wide",
1981
- argumentCallback: e => e - 1
1983
+ argumentCallback: n => n - 1
1982
1984
  }),
1983
1985
  month: buildLocalizeFn({
1984
- values: ye,
1986
+ values: vn,
1985
1987
  defaultWidth: "wide"
1986
1988
  }),
1987
1989
  day: buildLocalizeFn({
1988
- values: we,
1990
+ values: _n,
1989
1991
  defaultWidth: "wide"
1990
1992
  }),
1991
1993
  dayPeriod: buildLocalizeFn({
1992
- values: ve,
1994
+ values: Mn,
1993
1995
  defaultWidth: "wide",
1994
- formattingValues: Me,
1996
+ formattingValues: kn,
1995
1997
  defaultFormattingWidth: "wide"
1996
1998
  })
1997
1999
  };
1998
2000
 
1999
- const ke = /^(第\s*)?\d+(日|时|分|秒)?/i;
2001
+ const xn = /^(第\s*)?\d+(日|时|分|秒)?/i;
2000
2002
 
2001
- const We = /\d+/i;
2003
+ const Fn = /\d+/i;
2002
2004
 
2003
- const xe = {
2005
+ const Pn = {
2004
2006
  narrow: /^(前)/i,
2005
2007
  abbreviated: /^(前)/i,
2006
2008
  wide: /^(公元前|公元)/i
2007
2009
  };
2008
2010
 
2009
- const Fe = {
2011
+ const zn = {
2010
2012
  any: [ /^(前)/i, /^(公元)/i ]
2011
2013
  };
2012
2014
 
2013
- const Pe = {
2015
+ const Dn = {
2014
2016
  narrow: /^[1234]/i,
2015
2017
  abbreviated: /^第[一二三四]刻/i,
2016
2018
  wide: /^第[一二三四]刻钟/i
2017
2019
  };
2018
2020
 
2019
- const ze = {
2021
+ const Sn = {
2020
2022
  any: [ /(1|一)/i, /(2|二)/i, /(3|三)/i, /(4|四)/i ]
2021
2023
  };
2022
2024
 
2023
- const De = {
2025
+ const Tn = {
2024
2026
  narrow: /^(一|二|三|四|五|六|七|八|九|十[二一])/i,
2025
2027
  abbreviated: /^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,
2026
2028
  wide: /^(一|二|三|四|五|六|七|八|九|十[二一])月/i
2027
2029
  };
2028
2030
 
2029
- const Se = {
2031
+ const Cn = {
2030
2032
  narrow: [ /^一/i, /^二/i, /^三/i, /^四/i, /^五/i, /^六/i, /^七/i, /^八/i, /^九/i, /^十(?!(一|二))/i, /^十一/i, /^十二/i ],
2031
2033
  any: [ /^一|1/i, /^二|2/i, /^三|3/i, /^四|4/i, /^五|5/i, /^六|6/i, /^七|7/i, /^八|8/i, /^九|9/i, /^十(?!(一|二))|10/i, /^十一|11/i, /^十二|12/i ]
2032
2034
  };
2033
2035
 
2034
- const Te = {
2036
+ const Xn = {
2035
2037
  narrow: /^[一二三四五六日]/i,
2036
2038
  short: /^[一二三四五六日]/i,
2037
2039
  abbreviated: /^周[一二三四五六日]/i,
2038
2040
  wide: /^星期[一二三四五六日]/i
2039
2041
  };
2040
2042
 
2041
- const Xe = {
2043
+ const Ln = {
2042
2044
  any: [ /日/i, /一/i, /二/i, /三/i, /四/i, /五/i, /六/i ]
2043
2045
  };
2044
2046
 
2045
- const Ce = {
2047
+ const jn = {
2046
2048
  any: /^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i
2047
2049
  };
2048
2050
 
2049
- const Le = {
2051
+ const An = {
2050
2052
  any: {
2051
2053
  am: /^上午?/i,
2052
2054
  pm: /^下午?/i,
@@ -2059,41 +2061,41 @@ const Le = {
2059
2061
  }
2060
2062
  };
2061
2063
 
2062
- const Ae = {
2064
+ const In = {
2063
2065
  ordinalNumber: buildMatchPatternFn({
2064
- matchPattern: ke,
2065
- parsePattern: We,
2066
- valueCallback: e => parseInt(e, 10)
2066
+ matchPattern: xn,
2067
+ parsePattern: Fn,
2068
+ valueCallback: n => parseInt(n, 10)
2067
2069
  }),
2068
2070
  era: buildMatchFn({
2069
- matchPatterns: xe,
2071
+ matchPatterns: Pn,
2070
2072
  defaultMatchWidth: "wide",
2071
- parsePatterns: Fe,
2073
+ parsePatterns: zn,
2072
2074
  defaultParseWidth: "any"
2073
2075
  }),
2074
2076
  quarter: buildMatchFn({
2075
- matchPatterns: Pe,
2077
+ matchPatterns: Dn,
2076
2078
  defaultMatchWidth: "wide",
2077
- parsePatterns: ze,
2079
+ parsePatterns: Sn,
2078
2080
  defaultParseWidth: "any",
2079
- valueCallback: e => e + 1
2081
+ valueCallback: n => n + 1
2080
2082
  }),
2081
2083
  month: buildMatchFn({
2082
- matchPatterns: De,
2084
+ matchPatterns: Tn,
2083
2085
  defaultMatchWidth: "wide",
2084
- parsePatterns: Se,
2086
+ parsePatterns: Cn,
2085
2087
  defaultParseWidth: "any"
2086
2088
  }),
2087
2089
  day: buildMatchFn({
2088
- matchPatterns: Te,
2090
+ matchPatterns: Xn,
2089
2091
  defaultMatchWidth: "wide",
2090
- parsePatterns: Xe,
2092
+ parsePatterns: Ln,
2091
2093
  defaultParseWidth: "any"
2092
2094
  }),
2093
2095
  dayPeriod: buildMatchFn({
2094
- matchPatterns: Ce,
2096
+ matchPatterns: jn,
2095
2097
  defaultMatchWidth: "any",
2096
- parsePatterns: Le,
2098
+ parsePatterns: An,
2097
2099
  defaultParseWidth: "any"
2098
2100
  })
2099
2101
  };
@@ -2108,293 +2110,314 @@ const Ae = {
2108
2110
  * @author sabrinaM [@sabrinamiao](https://github.com/sabrinamiao)
2109
2111
  * @author Carney Wu [@cubicwork](https://github.com/cubicwork)
2110
2112
  * @author Terrence Lam [@skyuplam](https://github.com/skyuplam)
2111
- */ const je = {
2113
+ */ const On = {
2112
2114
  code: "zh-CN",
2113
2115
  formatDistance,
2114
- formatLong: fe,
2116
+ formatLong: bn,
2115
2117
  formatRelative,
2116
- localize: _e,
2117
- match: Ae,
2118
+ localize: Wn,
2119
+ match: In,
2118
2120
  options: {
2119
2121
  weekStartsOn: 1 /* Monday */ ,
2120
2122
  firstWeekContainsDate: 4
2121
2123
  }
2122
2124
  };
2123
2125
 
2124
- const Ie = ":host{display:grid;block-size:100%;overflow:auto}.main{animation:fadeIn var(--mer-timing--fast) forwards;display:grid;block-size:100%;overflow:auto;opacity:0;grid-template-rows:max-content 1fr;gap:var(--mer-spacing--xl);min-block-size:635px}@keyframes bounce{0%{transform:translateY(0)}100%{transform:translateY(-30px)}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}.section-create-new-kb__actions,.section-secondary__actions{display:grid;grid-auto-flow:column;gap:var(--mer-spacing--md);overflow-x:auto;padding-block-end:var(--mer-spacing--xs)}.card-filled,.card-outlined{display:grid;gap:var(--mer-spacing--xl);align-content:space-between;border:var(--mer-border__width--sm) solid var(--mer-border-color__on-surface);border-radius:var(--mer-border__radius--sm);padding:var(--mer-spacing--lg)}.card-filled{background-color:var(--mer-surface__elevation--01)}.icon-capsule{pointer-events:none;display:inline-flex;block-size:40px;inline-size:40px;justify-content:center;align-items:center;border-radius:50%;border:var(--mer-border__width--sm) dashed var(--mer-border-color__on-elevation--02)}.card__header{display:grid;gap:var(--mer-spacing--sm)}.card__header-description{display:grid;gap:var(--mer-spacing--2xs)}.section-create-new-kb{display:grid;grid-auto-rows:max-content;gap:var(--mer-spacing--lg)}.section-create-new-kb__header{display:grid;gap:var(--mer-spacing--2xs)}.section-create-new-kb__actions{display:grid;gap:var(--mer-spacing--md);overflow-x:auto;grid-auto-flow:column;grid-auto-columns:430px}.section-secondary{display:grid;block-size:100%;position:relative;overflow:auto}.section-secondary__actions{display:grid;gap:var(--mer-spacing--sm)}.section-secondary__actions--two-cards{grid-template-columns:repeat(2, minmax(430px, 1fr))}.section-secondary__actions--multiple-cards{grid-auto-columns:670px}.section-kbs{background-color:var(--mer-surface__elevation--01);border-radius:var(--mer-border__radius--sm);padding:var(--mer-spacing--sm);display:grid;grid-template-rows:auto 1fr;overflow:hidden}.section-kbs__header{display:grid;grid-template-columns:max-content 230px;align-items:center;gap:var(--mer-spacing--xl);border-block-end:var(--mer-border__width--sm) solid var(--mer-border-color__on-elevation--03);padding-block-end:var(--mer-spacing--sm)}.section-kbs__header--no-border{border-block-end-color:transparent !important}.section-kbs__title{align-items:center;display:flex;min-block-size:31px}.section-kbs__filter--hidden{opacity:0}.section-kbs__list{display:grid;grid-auto-rows:max-content;grid-template-columns:1fr 1fr;row-gap:var(--mer-spacing--xs);column-gap:var(--mer-spacing--md);overflow:auto;position:relative;padding-block-start:var(--mer-spacing--sm)}.section-kbs__list--empty{grid-template-columns:1fr;grid-auto-rows:1fr;overflow:hidden}.kb__item{background-color:var(--mer-surface__elevation--02);padding:var(--mer-spacing--sm);display:grid;grid-template-columns:284px 1fr;gap:var(--mer-spacing--md)}.kb__details{display:grid;grid-template-columns:max-content 1fr;align-items:center;gap:var(--mer-spacing--sm)}.kb__name{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-decoration:underline;cursor:pointer}.kb__name:hover{color:var(--mer-text__bright)}.kb__modified{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.hiChar{color:var(--mer-color__primary--200);filter:brightness(1.3)}.loader{border:var(--mer-border__width--sm) solid var(--mer-border-color__on-surface)}.heading-2,.heading-3{margin:0;font-weight:600 !important;color:#ffffff !important}.card-filled .heading-3{color:var(--mer-text__on-surface) !important}.text-body-regular-m,.card__footer{font-weight:var(--mer-font__weight--light) !important;--control__font-weight--regular:var(--mer-font__weight--light)}";
2126
+ const Nn = '/*Gx Ide*/\n/*@container queries*/\n/* hiChar styles\nFound on /common/helpers.tsx hiChar function is used to add a span/class to every character that matches a search value. It is used to help the user see why the filter results are filtered. The span/class on the characters are useless without proper styling.\n*/\n:host {\n --spacing-body-block-start: var(--mer-spacing--lg);\n --spacing-body-block-end: var(--mer-spacing--lg);\n --spacing-body-inline-start: var(--mer-spacing--lg);\n --spacing-body-inline-end: var(--mer-spacing--lg);\n display: grid;\n block-size: 100%;\n overflow: auto;\n}\n\n.main {\n animation: fadeIn var(--mer-timing--fast) forwards;\n display: grid;\n block-size: 100%;\n overflow: auto;\n opacity: 0;\n grid-template-rows: max-content 1fr;\n gap: var(--mer-spacing--lg);\n}\n\n@keyframes bounce {\n 0% {\n transform: translateY(0);\n }\n 100% {\n transform: translateY(-30px);\n }\n}\n@keyframes fadeIn {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n.section-create-new-kb__actions,\n.section-secondary__actions {\n display: grid;\n grid-auto-flow: column;\n gap: var(--mer-spacing--md);\n overflow-x: auto;\n padding-block-end: var(--mer-spacing--xs);\n}\n\n.card-filled,\n.card-outlined {\n display: grid;\n gap: var(--mer-spacing--md);\n align-content: space-between;\n border-radius: var(--mer-border__radius--md);\n}\n\n.card-filled {\n background-color: var(--mer-surface__elevation--01);\n padding: var(--mer-spacing--md);\n}\n\n.card-outlined {\n border: var(--mer-border__width--sm) solid var(--mer-border-color__on-surface);\n grid-template-columns: max-content 1fr;\n align-items: center;\n padding: var(--mer-spacing--md) var(--mer-spacing--md) var(--mer-spacing--xs) var(--mer-spacing--md);\n}\n\n.icon-capsule {\n pointer-events: none;\n display: inline-flex;\n block-size: 40px;\n inline-size: 40px;\n justify-content: center;\n align-items: center;\n border-radius: 50%;\n border: var(--mer-border__width--sm) dashed var(--mer-border-color__on-elevation--02);\n}\n.icon-capsule .icon-circular {\n --ch-image-size: 20px;\n}\n\n.card__header {\n display: grid;\n gap: var(--mer-spacing--sm);\n justify-items: self-start;\n}\n\n.card__header-description {\n display: grid;\n gap: var(--mer-spacing--xs);\n --font-weight-regular: 300;\n}\n\n.section-create-new-kb {\n display: grid;\n grid-auto-rows: max-content;\n gap: var(--mer-spacing--lg);\n}\n.section-create-new-kb__header {\n display: grid;\n gap: var(--mer-spacing--xs);\n}\n.section-create-new-kb__title {\n color: var(--mer-text__bright);\n font-weight: 500;\n}\n.section-create-new-kb__actions {\n display: grid;\n gap: var(--mer-spacing--md);\n overflow-x: auto;\n grid-auto-flow: column;\n grid-auto-columns: 372px;\n}\n\n.samples-buttons-container {\n flex-wrap: wrap;\n}\n\n.section-secondary {\n display: grid;\n block-size: 100%;\n position: relative;\n overflow: auto;\n}\n.section-secondary__title {\n display: grid;\n grid-template-columns: 1fr max-content 1fr;\n gap: var(--mer-spacing--md);\n align-items: center;\n font-weight: 300;\n}\n.section-secondary__title::before, .section-secondary__title::after {\n content: "";\n block-size: var(--mer-border__width--sm);\n background-color: var(--mer-border-color__on-elevation--01);\n}\n.section-secondary__actions {\n display: grid;\n}\n.section-secondary__actions--two-cards {\n grid-template-columns: repeat(2, minmax(430px, 1fr));\n}\n.section-secondary__actions--multiple-cards {\n grid-auto-columns: 670px;\n}\n\n.section-no-kbs {\n display: grid;\n block-size: 100%;\n position: relative;\n overflow: auto;\n grid-template-rows: max-content max-content;\n gap: var(--mer-spacing--md);\n}\n\n.section-kbs {\n background-color: var(--mer-surface__elevation--01);\n border-radius: var(--mer-border__radius--sm);\n padding: var(--mer-spacing--sm);\n display: grid;\n container-type: inline-size;\n grid-template-rows: auto 1fr;\n overflow: hidden;\n}\n.section-kbs__header {\n display: grid;\n grid-template-columns: max-content 230px;\n align-items: center;\n gap: var(--mer-spacing--xl);\n border-block-end: var(--mer-border__width--sm) solid var(--mer-border-color__on-elevation--01);\n padding-block-end: var(--mer-spacing--sm);\n}\n.section-kbs__header--no-border {\n border-block-end-color: transparent !important;\n}\n.section-kbs__title {\n align-items: center;\n display: flex;\n min-block-size: 31px;\n}\n.section-kbs__filter--hidden {\n opacity: 0;\n}\n.section-kbs__list {\n display: grid;\n grid-auto-rows: max-content;\n grid-template-columns: 1fr 1fr;\n row-gap: var(--mer-spacing--xs);\n column-gap: var(--mer-spacing--md);\n overflow: auto;\n position: relative;\n padding-block-start: var(--mer-spacing--sm);\n}\n.section-kbs__list--empty {\n grid-template-columns: 1fr;\n grid-auto-rows: 1fr;\n overflow: hidden;\n}\n@container (max-width: 768px) {\n .section-kbs__list {\n grid-template-columns: 1fr;\n }\n}\n\n.kb__item {\n --font-weight-regular: 300;\n background-color: var(--mer-surface__elevation--02);\n padding: var(--mer-spacing--sm);\n display: grid;\n grid-template-columns: auto max-content;\n gap: var(--mer-spacing--3xl);\n}\n.kb__details {\n display: grid;\n grid-template-columns: max-content 1fr;\n align-items: center;\n gap: var(--mer-spacing--sm);\n}\n.kb__name {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n text-decoration: underline;\n cursor: pointer;\n display: inline-block;\n}\n.kb__name:hover {\n color: var(--mer-text__bright);\n}\n.kb__modified {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n text-align: end;\n font-variant-numeric: tabular-nums;\n}\n\n.hiChar {\n color: var(--mer-color__primary--200);\n filter: brightness(1.3);\n}\n\n.loader {\n border: var(--mer-border__width--sm) solid var(--mer-border-color__on-surface);\n}\n\n.heading-2,\n.heading-3 {\n margin: 0;\n font-weight: 600 !important;\n color: #ffffff !important;\n}\n\n.card-filled .heading-3 {\n color: var(--mer-text__on-surface) !important;\n}\n\n.text-body-regular-m,\n.card__footer {\n font-weight: var(--mer-font__weight--light) !important;\n --control__font-weight--regular: var(--mer-font__weight--light);\n}\n\n.card__header-description {\n --line-height-tight: 1.7;\n --font-weight-regular: 300;\n}\n\n.card__header-title {\n color: var(--mer-text__bright);\n}\n\n.button-tertiary-no-padding-inline-start.button-tertiary {\n padding-inline-start: 0;\n}';
2125
2127
 
2126
- var Oe = undefined && undefined.__classPrivateFieldGet || function(e, t, n, a) {
2127
- if (n === "a" && !a) throw new TypeError("Private accessor was defined without a getter");
2128
- if (typeof t === "function" ? e !== t || !a : !t.has(e)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
2129
- return n === "m" ? a : n === "a" ? a.call(e) : a ? a.value : t.get(e);
2128
+ var En = undefined && undefined.__classPrivateFieldGet || function(n, e, t, a) {
2129
+ if (t === "a" && !a) throw new TypeError("Private accessor was defined without a getter");
2130
+ if (typeof e === "function" ? n !== e || !a : !e.has(n)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
2131
+ return t === "m" ? a : t === "a" ? a.call(n) : a ? a.value : e.get(n);
2130
2132
  };
2131
2133
 
2132
- var Ne = undefined && undefined.__classPrivateFieldSet || function(e, t, n, a, o) {
2134
+ var Yn = undefined && undefined.__classPrivateFieldSet || function(n, e, t, a, i) {
2133
2135
  if (a === "m") throw new TypeError("Private method is not writable");
2134
- if (a === "a" && !o) throw new TypeError("Private accessor was defined without a setter");
2135
- if (typeof t === "function" ? e !== t || !o : !t.has(e)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
2136
- return a === "a" ? o.call(e, n) : o ? o.value = n : t.set(e, n), n;
2136
+ if (a === "a" && !i) throw new TypeError("Private accessor was defined without a setter");
2137
+ if (typeof e === "function" ? n !== e || !i : !e.has(n)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
2138
+ return a === "a" ? i.call(n, t) : i ? i.value = t : e.set(n, t), t;
2137
2139
  };
2138
2140
 
2139
- var Ee, Ye, He, qe, $e, Je, Qe, Re, Be, Ve;
2141
+ var qn, Hn, $n, Jn, Qn, Rn, Bn, Vn, Kn, Gn;
2140
2142
 
2141
- // const locale = enUS; // use `zhCN` for Chinese, `ja` for Japanese, `enUS` for English
2142
- const Ke = {
2143
- en: j,
2144
- ja: de,
2145
- "zh-CN": je,
2146
- "zh-TW": je,
2147
- "zh-HK": je
2143
+ const Un = {
2144
+ en: I,
2145
+ ja: un,
2146
+ "zh-CN": On,
2147
+ "zh-TW": On,
2148
+ "zh-HK": On
2148
2149
  };
2149
2150
 
2150
- const Ge = o({
2151
+ const Zn = i({
2151
2152
  category: "system",
2152
2153
  name: "detail",
2153
2154
  colorType: "primary"
2154
2155
  });
2155
2156
 
2156
- const Ue = o({
2157
+ const ne = i({
2157
2158
  category: "window-tools",
2158
2159
  name: "filter",
2159
2160
  colorType: "on-elevation"
2160
2161
  });
2161
2162
 
2162
- const Ze = o({
2163
+ const ee = i({
2163
2164
  category: "objects",
2164
2165
  name: "knowledge-base"
2165
2166
  });
2166
2167
 
2167
- const et = o({
2168
+ const te = i({
2168
2169
  category: "system",
2169
2170
  name: "search",
2170
2171
  colorType: "on-elevation"
2171
2172
  });
2172
2173
 
2173
- const tt = [ "resets/box-sizing", "utils/typography", "utils/layout", "components/edit", "components/icon", "components/button", "chameleon/scrollbar", "utils/typography" ];
2174
+ const ae = [ "resets/box-sizing", "utils/typography", "utils/layout", "components/edit", "components/icon", "components/button", "chameleon/scrollbar", "utils/typography" ];
2174
2175
 
2175
- const nt = class {
2176
- constructor(n) {
2177
- e(this, n);
2178
- Ee.add(this);
2176
+ const ie = class {
2177
+ constructor(t) {
2178
+ n(this, t);
2179
+ qn.add(this);
2179
2180
  /**
2180
2181
  * The component hard-coded strings translations.
2181
2182
  */
2182
2183
  // eslint-disable-next-line @stencil-community/own-props-must-be-private
2183
- Ye.set(this, void 0);
2184
- He.set(this, void 0);
2185
- qe.set(this, (e => t => {
2186
- t.stopPropagation();
2187
- this.createKBCallback(e);
2184
+ Hn.set(this, void 0);
2185
+ $n.set(this, void 0);
2186
+ Jn.set(this, (n => e => {
2187
+ e.stopPropagation();
2188
+ this.createKBCallback(n);
2188
2189
  }));
2189
- $e.set(this, (e => t => {
2190
- t.stopPropagation();
2191
- this.openKbCallback(e);
2190
+ Qn.set(this, (n => {
2191
+ this.kbFilterValue = n.detail;
2192
2192
  }));
2193
- Je.set(this, (e => {
2194
- this.kbFilterValue = e.detail;
2193
+ Rn.set(this, (n => e => {
2194
+ e.stopPropagation();
2195
+ this.openKbCallback(n);
2195
2196
  }));
2196
- Qe.set(this, (() => {
2197
- const e = this.kbs.length < this.kbsFilterThreshold;
2198
- const n = this.filteredKbs.length === 0;
2197
+ Vn.set(this, (() => {
2198
+ const n = this.kbs.length < this.kbsFilterThreshold;
2199
+ const t = this.filteredKbs.length === 0;
2199
2200
  let a;
2200
2201
  // Evaluate what is the content to display.
2201
2202
  if (this.filteredKbs.length > 0) {
2202
- a = Oe(this, Re, "f").call(this);
2203
+ a = En(this, Kn, "f").call(this);
2203
2204
  } else {
2204
2205
  // No kb has pass the filter. Display an empty-state.
2205
- a = t("gx-ide-empty-state", {
2206
+ a = e("gx-ide-empty-state", {
2206
2207
  isAnimated: true,
2207
- stateIconSrc: Ue,
2208
- stateTitle: Oe(this, Ye, "f").recentKBs.noMatches
2208
+ stateIconSrc: ne,
2209
+ stateTitle: En(this, Hn, "f").recentKBs.noMatches
2209
2210
  });
2210
2211
  }
2211
- return t("section", {
2212
+ return e("section", {
2212
2213
  class: "section-kbs"
2213
- }, t("header", {
2214
+ }, e("header", {
2214
2215
  class: {
2215
2216
  "section-kbs__header": true
2216
2217
  }
2217
- }, t("label", {
2218
+ }, e("label", {
2218
2219
  class: "subtitle-regular-s section-kbs__title",
2219
2220
  htmlFor: "filter-kbs"
2220
- }, Oe(this, Ye, "f").recentKBs.title), t("ch-edit", {
2221
+ }, En(this, Hn, "f").recentKBs.title), e("ch-edit", {
2221
2222
  // Render always, and display or hide, ro prevent FOUC, and also prevent
2222
2223
  // the header block-size from growing a little bit when the input renders.
2223
2224
  id: "filter-kbs",
2224
2225
  value: this.kbFilterValue,
2225
2226
  class: {
2226
2227
  input: true,
2227
- "section-kbs__filter--hidden": e
2228
+ "section-kbs__filter--hidden": n
2228
2229
  },
2229
- startImgSrc: et,
2230
- placeholder: Oe(this, Ye, "f").recentKBs.filterKbsPlaceholder,
2231
- onInput: !e && Oe(this, Je, "f"),
2232
- disabled: e
2233
- })), t("div", {
2230
+ startImgSrc: te,
2231
+ placeholder: En(this, Hn, "f").recentKBs.filterKbsPlaceholder,
2232
+ onInput: !n && En(this, Qn, "f"),
2233
+ disabled: n
2234
+ })), e("div", {
2234
2235
  class: {
2235
2236
  "section-kbs__list": true,
2236
- "section-kbs__list--empty": n,
2237
+ "section-kbs__list--empty": t,
2237
2238
  scrollable: true
2238
2239
  }
2239
- }, this.filteredKbs.length > 0 ? Oe(this, Re, "f").call(this) : a));
2240
+ }, this.filteredKbs.length > 0 ? En(this, Kn, "f").call(this) : a));
2240
2241
  }));
2241
- Re.set(this, (() => {
2242
- var e;
2243
- return (e = this.filteredKbs) === null || e === void 0 ? void 0 : e.map(((e, n) => {
2242
+ Kn.set(this, (() => {
2243
+ var n;
2244
+ return (n = this.filteredKbs) === null || n === void 0 ? void 0 : n.map(((n, t) => {
2244
2245
  // relative time ago
2245
2246
  var a;
2246
- const o = e.lastOpenedDate ? formatDistanceToNow(new Date(e.lastOpenedDate), {
2247
+ const i = n.lastOpenedDate ? formatDistanceToNow(new Date(n.lastOpenedDate), {
2247
2248
  addSuffix: true,
2248
- locale: Oe(this, He, "f")
2249
+ locale: En(this, $n, "f")
2249
2250
  }) : undefined;
2251
+ // convert date to date format, since toISOString() requires date as Date.
2252
+ const r = n.lastOpenedDate ? new Date(n.lastOpenedDate) : undefined;
2253
+ let s = o(r, "date-time-short");
2250
2254
  // icon
2251
- const r = (a = e.icon) !== null && a !== void 0 ? a : Ze;
2252
- return t("article", {
2255
+ const c = (a = n.icon) !== null && a !== void 0 ? a : ee;
2256
+ return e("article", {
2253
2257
  class: "kb__item",
2254
- key: n
2255
- }, t("div", {
2258
+ key: t
2259
+ }, e("div", {
2256
2260
  class: "kb__details"
2257
- }, t("ch-image", {
2261
+ }, e("ch-image", {
2258
2262
  class: "icon-md",
2259
- src: r
2260
- }), t("p", {
2263
+ src: c
2264
+ }), e("button", {
2261
2265
  class: "body-regular-m kb__name",
2262
- onClick: Oe(this, $e, "f").call(this, e.id)
2263
- }, e.name)), o && t("div", {
2266
+ onClick: En(this, Rn, "f").call(this, n.id)
2267
+ }, n.name)), i && e("p", {
2264
2268
  class: "body-regular-m kb__modified"
2265
- }, `${Oe(this, Ye, "f").recentKBs.opened} ${o}`));
2269
+ }, `${En(this, Hn, "f").recentKBs.opened}`, " ", e("time", {
2270
+ dateTime: s
2271
+ }, s)));
2266
2272
  }));
2267
2273
  }));
2268
- Ve.set(this, (() => {
2274
+ Gn.set(this, (() => {
2269
2275
  if (!this.secondarySection) {
2270
2276
  return null;
2271
2277
  }
2272
- const e = this.secondarySection.cards.length > 2;
2273
- return t("section", {
2278
+ const n = this.secondarySection.cards.length > 2;
2279
+ return e("section", {
2274
2280
  // Recent Knowledge Bases
2275
- class: "section-secondary"
2276
- }, t("header", null, t("h2", {
2277
- class: "subtitle-regular-s"
2278
- }, this.secondarySection.title)), t("section", {
2281
+ class: "section-no-kbs"
2282
+ }, e("header", null, e("h2", {
2283
+ class: "body-regular-s section-secondary__title"
2284
+ }, this.secondarySection.title)), e("section", {
2279
2285
  class: {
2280
2286
  "section-secondary__actions": true,
2281
- "section-secondary__actions--two-cards": !e,
2282
- "section-secondary__actions--multiple-cards": e,
2287
+ "section-secondary__actions--two-cards": !n,
2288
+ "section-secondary__actions--multiple-cards": n,
2283
2289
  scrollable: true
2284
2290
  }
2285
- }, this.secondarySection.cards.map(((e, n) => t("article", {
2291
+ }, this.secondarySection.cards.map(((n, t) => e("article", {
2286
2292
  class: "card card-outlined",
2287
- key: n
2288
- }, t("header", {
2289
- class: "card__header"
2290
- }, t("span", {
2293
+ key: t
2294
+ }, e("span", {
2291
2295
  class: "icon-capsule"
2292
- }, t("ch-image", {
2296
+ }, e("ch-image", {
2293
2297
  class: "icon-md icon-circular",
2294
- src: e.icon.src,
2295
- "aria-label": e.icon.ariaLabel
2296
- })), t("div", {
2297
- class: "card__header-description"
2298
- }, t("h2", {
2299
- class: "subtitle-regular-s"
2300
- }, e.title), e.description.map((e => t("p", {
2301
- class: "body-regular-m"
2302
- }, e))))), t("footer", {
2303
- class: "card__footer"
2304
- }, e.action && t("button", {
2305
- class: "button-tertiary button-icon-and-text",
2306
- onClick: e.action.callback && e.action.callback
2307
- }, t("ch-image", {
2298
+ src: n.icon.src,
2299
+ "aria-label": n.icon.ariaLabel
2300
+ })), e("header", {
2301
+ class: "card__header"
2302
+ }, e("h2", {
2303
+ class: "subtitle-semi-bold-xs card__header-title"
2304
+ }, n.title), n.description.map((n => e("p", {
2305
+ class: "body-regular-s card__header-description"
2306
+ }, n))), n.action && e("button", {
2307
+ class: "button-tertiary button-icon-and-text button-tertiary-no-padding-inline-start",
2308
+ onClick: n.action.callback && n.action.callback
2309
+ }, e("ch-image", {
2308
2310
  class: "icon-md",
2309
- src: Ge
2310
- }), e.action.caption)))))));
2311
+ src: Zn
2312
+ }), n.action.caption)))))));
2311
2313
  }));
2312
- this.kbFilterValue = "";
2313
2314
  this.filteredKbs = undefined;
2315
+ this.kbFilterValue = "";
2314
2316
  this.loading = true;
2315
2317
  this.createKBCallback = undefined;
2316
- this.openKbCallback = undefined;
2317
- this.secondarySection = undefined;
2318
2318
  this.kbs = undefined;
2319
2319
  this.kbsFilterThreshold = undefined;
2320
+ this.openKbCallback = undefined;
2321
+ this.openSampleCallback = undefined;
2322
+ this.samples = undefined;
2323
+ this.secondarySection = undefined;
2320
2324
  }
2321
- kbFilterValueChanged(e) {
2322
- this.filteredKbs = this.kbs.filter((t => t.name.toLowerCase().includes(e.toLocaleLowerCase())));
2325
+ kbFilterValueChanged(n) {
2326
+ this.filteredKbs = this.kbs.filter((e => e.name.toLowerCase().includes(n.toLocaleLowerCase())));
2323
2327
  }
2324
- kbsChanged(e) {
2325
- this.filteredKbs = e;
2328
+ kbsChanged(n) {
2329
+ this.filteredKbs = n;
2326
2330
  this.kbFilterValue = "";
2327
2331
  // clear filter
2328
2332
  }
2329
2333
  async componentWillLoad() {
2330
- Ne(this, Ye, await r.getComponentStrings(this.el), "f");
2334
+ Yn(this, Hn, await r.getComponentStrings(this.el), "f");
2331
2335
  // initialize filteredKbs
2332
2336
  this.kbsChanged(this.kbs);
2333
2337
  // get user language to display the kb "last opened" value in the appropriate language.
2334
- const e = document.documentElement.lang;
2335
- Ne(this, He, Ke[e], "f");
2338
+ const n = document.documentElement.lang;
2339
+ Yn(this, $n, Un[n], "f");
2336
2340
  }
2337
2341
  render() {
2338
- var e;
2339
- this.loading = (!this.kbs || ((e = this.kbs) === null || e === void 0 ? void 0 : e.length) === 0) && !this.secondarySection;
2340
- return t(n, {
2341
- class: "widget scrollable spacing-body"
2342
- }, t("ch-theme", {
2343
- model: tt
2344
- }), t("main", {
2342
+ var n, a;
2343
+ this.loading = (!this.kbs || ((n = this.kbs) === null || n === void 0 ? void 0 : n.length) === 0) && !this.secondarySection;
2344
+ const i = ((a = this.samples) === null || a === void 0 ? void 0 : a.length) && this.openSampleCallback;
2345
+ return e(t, {
2346
+ class: "scrollable"
2347
+ }, e("ch-theme", {
2348
+ model: ae
2349
+ }), e("main", {
2345
2350
  class: "main scrollable"
2346
- }, t("section", {
2351
+ }, e("section", {
2347
2352
  // Create a new Knowledge Base
2348
2353
  class: "section-create-new-kb"
2349
- }, t("header", {
2354
+ }, e("header", {
2350
2355
  // main header
2351
- class: "section-create-new__header"
2352
- }, t("h1", {
2353
- class: "heading-4"
2354
- }, Oe(this, Ye, "f").createKB.title), t("p", {
2356
+ class: "section-create-new-kb__header"
2357
+ }, e("h1", {
2358
+ class: "heading-5 section-create-new-kb__title"
2359
+ }, En(this, Hn, "f").createKB.title), e("p", {
2355
2360
  class: "body-regular-m"
2356
- }, Oe(this, Ye, "f").createKB.description)), t("section", {
2361
+ }, En(this, Hn, "f").createKB.description)), e("section", {
2357
2362
  class: "section-create-new-kb__actions scrollable"
2358
- }, t("article", {
2363
+ }, e("article", {
2359
2364
  // create project
2360
2365
  class: "card card-filled"
2361
- }, t("header", {
2366
+ }, e("header", {
2362
2367
  class: "card__header"
2363
- }, t("div", {
2368
+ }, e("div", {
2364
2369
  class: "card__header-description"
2365
- }, t("h2", {
2366
- class: "subtitle-regular-s"
2367
- }, Oe(this, Ye, "f").createProject.title), t("p", {
2368
- class: "body-regular-m"
2369
- }, Oe(this, Ye, "f").createProject.description))), t("footer", {
2370
+ }, e("h2", {
2371
+ class: "subtitle-semi-bold-xs card__header-title"
2372
+ }, En(this, Hn, "f").createProject.title), e("p", {
2373
+ class: "body-regular-s"
2374
+ }, En(this, Hn, "f").createProject.description))), e("footer", {
2370
2375
  class: "card__footer"
2371
- }, t("button", {
2376
+ }, e("button", {
2372
2377
  class: "button-primary",
2373
- onClick: Oe(this, qe, "f").call(this, false)
2374
- }, Oe(this, Ye, "f").createProject.buttonCaption))), t("article", {
2378
+ onClick: En(this, Jn, "f").call(this, false)
2379
+ }, En(this, Hn, "f").createProject.buttonCaption))), e("article", {
2375
2380
  // open existing project
2376
2381
  class: "card-filled"
2377
- }, t("header", {
2382
+ }, e("header", {
2378
2383
  class: "card__header"
2379
- }, t("div", {
2384
+ }, e("div", {
2380
2385
  class: "card__header-description"
2381
- }, t("h2", {
2382
- class: "subtitle-regular-s"
2383
- }, Oe(this, Ye, "f").openExistingProject.title), t("p", {
2384
- class: "body-regular-m"
2385
- }, Oe(this, Ye, "f").openExistingProject.description))), t("footer", {
2386
+ }, e("h2", {
2387
+ class: "subtitle-semi-bold-xs"
2388
+ }, En(this, Hn, "f").openExistingProject.title), e("p", {
2389
+ class: "body-regular-s"
2390
+ }, En(this, Hn, "f").openExistingProject.description))), e("footer", {
2386
2391
  class: "card__footer"
2387
- }, t("button", {
2392
+ }, e("button", {
2388
2393
  class: "button-secondary cancel-btn",
2389
- onClick: Oe(this, qe, "f").call(this, true)
2390
- }, Oe(this, Ye, "f").openExistingProject.buttonCaption))))), t("section", {
2394
+ onClick: En(this, Jn, "f").call(this, true)
2395
+ }, En(this, Hn, "f").openExistingProject.buttonCaption))), i ? e("article", {
2396
+ // view samples
2397
+ class: "card-filled"
2398
+ }, e("header", {
2399
+ class: "card__header"
2400
+ }, e("div", {
2401
+ class: "card__header-description"
2402
+ }, e("h2", {
2403
+ class: "subtitle-semi-bold-xs"
2404
+ }, En(this, Hn, "f").viewSamples.title), e("p", {
2405
+ class: "body-regular-s"
2406
+ }, En(this, Hn, "f").viewSamples.description))), e("footer", {
2407
+ class: "card__footer"
2408
+ }, e("div", {
2409
+ class: "buttons-spacer samples-buttons-container"
2410
+ }, this.samples.map((n => e("button", {
2411
+ class: "button-secondary",
2412
+ onClick: () => this.openSampleCallback(n)
2413
+ }, n.name)))))) : null)), e("section", {
2391
2414
  class: "section-secondary scrollable"
2392
- }, this.loading ? t("gx-ide-loader", {
2415
+ }, this.loading ? e("gx-ide-loader", {
2393
2416
  class: "loader",
2394
- loaderTitle: Oe(this, Ye, "f").recentKBs.loaderTitle,
2395
- description: Oe(this, Ye, "f").recentKBs.loaderDescription,
2417
+ loaderTitle: En(this, Hn, "f").recentKBs.loaderTitle,
2418
+ description: En(this, Hn, "f").recentKBs.loaderDescription,
2396
2419
  show: true
2397
- }) : Oe(this, Ee, "m", Be).call(this))));
2420
+ }) : En(this, qn, "m", Bn).call(this))));
2398
2421
  }
2399
2422
  static get assetsDirs() {
2400
2423
  return [ "gx-ide-assets/start-page" ];
@@ -2410,12 +2433,12 @@ const nt = class {
2410
2433
  }
2411
2434
  };
2412
2435
 
2413
- Ye = new WeakMap, He = new WeakMap, qe = new WeakMap, $e = new WeakMap, Je = new WeakMap,
2414
- Qe = new WeakMap, Re = new WeakMap, Ve = new WeakMap, Ee = new WeakSet, Be = function _GxIdeStartPage_evaluateContentToRender() {
2415
- return this.kbs && this.kbs.length > 0 ? Oe(this, Qe, "f").call(this) : Oe(this, Ve, "f").call(this);
2436
+ Hn = new WeakMap, $n = new WeakMap, Jn = new WeakMap, Qn = new WeakMap, Rn = new WeakMap,
2437
+ Vn = new WeakMap, Kn = new WeakMap, Gn = new WeakMap, qn = new WeakSet, Bn = function _GxIdeStartPage_evaluateContentToRender() {
2438
+ return this.kbs && this.kbs.length > 0 ? En(this, Vn, "f").call(this) : En(this, Gn, "f").call(this);
2416
2439
  };
2417
2440
 
2418
- nt.style = Ie;
2441
+ ie.style = Nn;
2419
2442
 
2420
- export { nt as gx_ide_start_page };
2421
- //# sourceMappingURL=p-e2b0ee82.entry.js.map
2443
+ export { ie as gx_ide_start_page };
2444
+ //# sourceMappingURL=p-d67ff6a5.entry.js.map