@kong-ui-public/core 1.10.2-pr.1660.f7b54845b.0 → 1.10.2

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.
package/dist/core.es.js CHANGED
@@ -1,17 +1,17 @@
1
- import A from "axios";
2
- import { inject as Q, ref as T, readonly as C, computed as B, nextTick as Y, watchEffect as V } from "vue";
3
- function ae() {
1
+ import C from "axios";
2
+ import { inject as B, ref as T, readonly as Y, computed as V, nextTick as F, watchEffect as U } from "vue";
3
+ function ot() {
4
4
  return {
5
5
  getAxiosInstance: (n = {}) => {
6
6
  try {
7
- const r = Q("get-axios-instance", void 0);
8
- return typeof r == "function" ? r(n) : A.create({
7
+ const r = B("get-axios-instance", void 0);
8
+ return typeof r == "function" ? r(n) : C.create({
9
9
  withCredentials: !0,
10
10
  timeout: 3e4,
11
11
  ...n
12
12
  });
13
13
  } catch (r) {
14
- return console.warn("getAxiosInstance:", r.message || r), A.create({
14
+ return console.warn("getAxiosInstance:", r.message || r), C.create({
15
15
  withCredentials: !0,
16
16
  timeout: 3e4,
17
17
  ...n
@@ -24,39 +24,34 @@ function ae() {
24
24
  }
25
25
  };
26
26
  }
27
- function b(t) {
28
- const e = Object.prototype.toString.call(t);
29
- return t instanceof Date || typeof t == "object" && e === "[object Date]" ? new t.constructor(+t) : typeof t == "number" || e === "[object Number]" || typeof t == "string" || e === "[object String]" ? new Date(t) : /* @__PURE__ */ new Date(NaN);
27
+ const p = 6048e5, J = 864e5, L = Symbol.for("constructDateFrom");
28
+ function P(t, e) {
29
+ return typeof t == "function" ? t(e) : t && typeof t == "object" && L in t ? t[L](e) : t instanceof Date ? new t.constructor(e) : new Date(e);
30
30
  }
31
- function v(t, e) {
32
- return t instanceof Date ? new t.constructor(e) : new Date(e);
31
+ function b(t, e) {
32
+ return P(e || t, t);
33
33
  }
34
- const H = 6048e5, U = 864e5;
35
- let J = {};
36
- function k() {
37
- return J;
34
+ let $ = {};
35
+ function x() {
36
+ return $;
38
37
  }
39
38
  function M(t, e) {
40
- var u, i, d, f;
41
- const n = k(), r = (e == null ? void 0 : e.weekStartsOn) ?? ((i = (u = e == null ? void 0 : e.locale) == null ? void 0 : u.options) == null ? void 0 : i.weekStartsOn) ?? n.weekStartsOn ?? ((f = (d = n.locale) == null ? void 0 : d.options) == null ? void 0 : f.weekStartsOn) ?? 0, a = b(t), o = a.getDay(), c = (o < r ? 7 : 0) + o - r;
39
+ var u, o, d, f;
40
+ const n = x(), r = (e == null ? void 0 : e.weekStartsOn) ?? ((o = (u = e == null ? void 0 : e.locale) == null ? void 0 : u.options) == null ? void 0 : o.weekStartsOn) ?? n.weekStartsOn ?? ((f = (d = n.locale) == null ? void 0 : d.options) == null ? void 0 : f.weekStartsOn) ?? 0, a = b(t, e == null ? void 0 : e.in), i = a.getDay(), c = (i < r ? 7 : 0) + i - r;
42
41
  return a.setDate(a.getDate() - c), a.setHours(0, 0, 0, 0), a;
43
42
  }
44
- function p(t) {
45
- return M(t, { weekStartsOn: 1 });
43
+ function k(t, e) {
44
+ return M(t, { ...e, weekStartsOn: 1 });
46
45
  }
47
- function q(t) {
48
- const e = b(t), n = e.getFullYear(), r = v(t, 0);
49
- r.setFullYear(n + 1, 0, 4), r.setHours(0, 0, 0, 0);
50
- const a = p(r), o = v(t, 0);
51
- o.setFullYear(n, 0, 4), o.setHours(0, 0, 0, 0);
52
- const c = p(o);
53
- return e.getTime() >= a.getTime() ? n + 1 : e.getTime() >= c.getTime() ? n : n - 1;
46
+ function G(t, e) {
47
+ const n = b(t, e == null ? void 0 : e.in), r = n.getFullYear(), a = P(n, 0);
48
+ a.setFullYear(r + 1, 0, 4), a.setHours(0, 0, 0, 0);
49
+ const i = k(a), c = P(n, 0);
50
+ c.setFullYear(r, 0, 4), c.setHours(0, 0, 0, 0);
51
+ const u = k(c);
52
+ return n.getTime() >= i.getTime() ? r + 1 : n.getTime() >= u.getTime() ? r : r - 1;
54
53
  }
55
54
  function N(t) {
56
- const e = b(t);
57
- return e.setHours(0, 0, 0, 0), e;
58
- }
59
- function L(t) {
60
55
  const e = b(t), n = new Date(
61
56
  Date.UTC(
62
57
  e.getFullYear(),
@@ -70,28 +65,40 @@ function L(t) {
70
65
  );
71
66
  return n.setUTCFullYear(e.getFullYear()), +t - +n;
72
67
  }
73
- function $(t, e) {
74
- const n = N(t), r = N(e), a = +n - L(n), o = +r - L(r);
75
- return Math.round((a - o) / U);
68
+ function z(t, ...e) {
69
+ const n = P.bind(
70
+ null,
71
+ e.find((r) => typeof r == "object")
72
+ );
73
+ return e.map(n);
74
+ }
75
+ function _(t, e) {
76
+ const n = b(t, e == null ? void 0 : e.in);
77
+ return n.setHours(0, 0, 0, 0), n;
78
+ }
79
+ function K(t, e, n) {
80
+ const [r, a] = z(
81
+ n == null ? void 0 : n.in,
82
+ t,
83
+ e
84
+ ), i = _(r), c = _(a), u = +i - N(i), o = +c - N(c);
85
+ return Math.round((u - o) / J);
76
86
  }
77
- function K(t) {
78
- const e = q(t), n = v(t, 0);
79
- return n.setFullYear(e, 0, 4), n.setHours(0, 0, 0, 0), p(n);
87
+ function Z(t, e) {
88
+ const n = G(t, e), r = P(t, 0);
89
+ return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0), k(r);
80
90
  }
81
- function z(t) {
91
+ function ee(t) {
82
92
  return t instanceof Date || typeof t == "object" && Object.prototype.toString.call(t) === "[object Date]";
83
93
  }
84
- function Z(t) {
85
- if (!z(t) && typeof t != "number")
86
- return !1;
87
- const e = b(t);
88
- return !isNaN(Number(e));
94
+ function te(t) {
95
+ return !(!ee(t) && typeof t != "number" || isNaN(+b(t)));
89
96
  }
90
- function tt(t) {
91
- const e = b(t), n = v(t, 0);
92
- return n.setFullYear(e.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
97
+ function ne(t, e) {
98
+ const n = b(t, e == null ? void 0 : e.in);
99
+ return n.setFullYear(n.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
93
100
  }
94
- const et = {
101
+ const re = {
95
102
  lessThanXSeconds: {
96
103
  one: "less than a second",
97
104
  other: "less than {{count}} seconds"
@@ -153,53 +160,53 @@ const et = {
153
160
  one: "almost 1 year",
154
161
  other: "almost {{count}} years"
155
162
  }
156
- }, nt = (t, e, n) => {
163
+ }, ae = (t, e, n) => {
157
164
  let r;
158
- const a = et[t];
165
+ const a = re[t];
159
166
  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;
160
167
  };
161
- function E(t) {
168
+ function W(t) {
162
169
  return (e = {}) => {
163
170
  const n = e.width ? String(e.width) : t.defaultWidth;
164
171
  return t.formats[n] || t.formats[t.defaultWidth];
165
172
  };
166
173
  }
167
- const rt = {
174
+ const ie = {
168
175
  full: "EEEE, MMMM do, y",
169
176
  long: "MMMM do, y",
170
177
  medium: "MMM d, y",
171
178
  short: "MM/dd/yyyy"
172
- }, at = {
179
+ }, oe = {
173
180
  full: "h:mm:ss a zzzz",
174
181
  long: "h:mm:ss a z",
175
182
  medium: "h:mm:ss a",
176
183
  short: "h:mm a"
177
- }, ot = {
184
+ }, ce = {
178
185
  full: "{{date}} 'at' {{time}}",
179
186
  long: "{{date}} 'at' {{time}}",
180
187
  medium: "{{date}}, {{time}}",
181
188
  short: "{{date}}, {{time}}"
182
- }, it = {
183
- date: E({
184
- formats: rt,
189
+ }, ue = {
190
+ date: W({
191
+ formats: ie,
185
192
  defaultWidth: "full"
186
193
  }),
187
- time: E({
188
- formats: at,
194
+ time: W({
195
+ formats: oe,
189
196
  defaultWidth: "full"
190
197
  }),
191
- dateTime: E({
192
- formats: ot,
198
+ dateTime: W({
199
+ formats: ce,
193
200
  defaultWidth: "full"
194
201
  })
195
- }, ct = {
202
+ }, se = {
196
203
  lastWeek: "'last' eeee 'at' p",
197
204
  yesterday: "'yesterday at' p",
198
205
  today: "'today at' p",
199
206
  tomorrow: "'tomorrow at' p",
200
207
  nextWeek: "eeee 'at' p",
201
208
  other: "P"
202
- }, ut = (t, e, n, r) => ct[t];
209
+ }, de = (t, e, n, r) => se[t];
203
210
  function O(t) {
204
211
  return (e, n) => {
205
212
  const r = n != null && n.context ? String(n.context) : "standalone";
@@ -211,19 +218,19 @@ function O(t) {
211
218
  const c = t.defaultWidth, u = n != null && n.width ? String(n.width) : t.defaultWidth;
212
219
  a = t.values[u] || t.values[c];
213
220
  }
214
- const o = t.argumentCallback ? t.argumentCallback(e) : e;
215
- return a[o];
221
+ const i = t.argumentCallback ? t.argumentCallback(e) : e;
222
+ return a[i];
216
223
  };
217
224
  }
218
- const st = {
225
+ const fe = {
219
226
  narrow: ["B", "A"],
220
227
  abbreviated: ["BC", "AD"],
221
228
  wide: ["Before Christ", "Anno Domini"]
222
- }, dt = {
229
+ }, le = {
223
230
  narrow: ["1", "2", "3", "4"],
224
231
  abbreviated: ["Q1", "Q2", "Q3", "Q4"],
225
232
  wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
226
- }, ft = {
233
+ }, he = {
227
234
  narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
228
235
  abbreviated: [
229
236
  "Jan",
@@ -253,7 +260,7 @@ const st = {
253
260
  "November",
254
261
  "December"
255
262
  ]
256
- }, lt = {
263
+ }, me = {
257
264
  narrow: ["S", "M", "T", "W", "T", "F", "S"],
258
265
  short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
259
266
  abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
@@ -266,7 +273,7 @@ const st = {
266
273
  "Friday",
267
274
  "Saturday"
268
275
  ]
269
- }, ht = {
276
+ }, ge = {
270
277
  narrow: {
271
278
  am: "a",
272
279
  pm: "p",
@@ -297,7 +304,7 @@ const st = {
297
304
  evening: "evening",
298
305
  night: "night"
299
306
  }
300
- }, mt = {
307
+ }, we = {
301
308
  narrow: {
302
309
  am: "a",
303
310
  pm: "p",
@@ -328,7 +335,7 @@ const st = {
328
335
  evening: "in the evening",
329
336
  night: "at night"
330
337
  }
331
- }, gt = (t, e) => {
338
+ }, be = (t, e) => {
332
339
  const n = Number(t), r = n % 100;
333
340
  if (r > 20 || r < 10)
334
341
  switch (r % 10) {
@@ -340,89 +347,89 @@ const st = {
340
347
  return n + "rd";
341
348
  }
342
349
  return n + "th";
343
- }, wt = {
344
- ordinalNumber: gt,
350
+ }, ye = {
351
+ ordinalNumber: be,
345
352
  era: O({
346
- values: st,
353
+ values: fe,
347
354
  defaultWidth: "wide"
348
355
  }),
349
356
  quarter: O({
350
- values: dt,
357
+ values: le,
351
358
  defaultWidth: "wide",
352
359
  argumentCallback: (t) => t - 1
353
360
  }),
354
361
  month: O({
355
- values: ft,
362
+ values: he,
356
363
  defaultWidth: "wide"
357
364
  }),
358
365
  day: O({
359
- values: lt,
366
+ values: me,
360
367
  defaultWidth: "wide"
361
368
  }),
362
369
  dayPeriod: O({
363
- values: ht,
370
+ values: ge,
364
371
  defaultWidth: "wide",
365
- formattingValues: mt,
372
+ formattingValues: we,
366
373
  defaultFormattingWidth: "wide"
367
374
  })
368
375
  };
369
376
  function D(t) {
370
377
  return (e, n = {}) => {
371
- const r = n.width, a = r && t.matchPatterns[r] || t.matchPatterns[t.defaultMatchWidth], o = e.match(a);
372
- if (!o)
378
+ const r = n.width, a = r && t.matchPatterns[r] || t.matchPatterns[t.defaultMatchWidth], i = e.match(a);
379
+ if (!i)
373
380
  return null;
374
- const c = o[0], u = r && t.parsePatterns[r] || t.parsePatterns[t.defaultParseWidth], i = Array.isArray(u) ? yt(u, (g) => g.test(c)) : (
375
- // eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
376
- bt(u, (g) => g.test(c))
381
+ const c = i[0], u = r && t.parsePatterns[r] || t.parsePatterns[t.defaultParseWidth], o = Array.isArray(u) ? ve(u, (g) => g.test(c)) : (
382
+ // [TODO] -- I challenge you to fix the type
383
+ Pe(u, (g) => g.test(c))
377
384
  );
378
385
  let d;
379
- d = t.valueCallback ? t.valueCallback(i) : i, d = n.valueCallback ? (
380
- // eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
386
+ d = t.valueCallback ? t.valueCallback(o) : o, d = n.valueCallback ? (
387
+ // [TODO] -- I challenge you to fix the type
381
388
  n.valueCallback(d)
382
389
  ) : d;
383
390
  const f = e.slice(c.length);
384
391
  return { value: d, rest: f };
385
392
  };
386
393
  }
387
- function bt(t, e) {
394
+ function Pe(t, e) {
388
395
  for (const n in t)
389
396
  if (Object.prototype.hasOwnProperty.call(t, n) && e(t[n]))
390
397
  return n;
391
398
  }
392
- function yt(t, e) {
399
+ function ve(t, e) {
393
400
  for (let n = 0; n < t.length; n++)
394
401
  if (e(t[n]))
395
402
  return n;
396
403
  }
397
- function Pt(t) {
404
+ function Se(t) {
398
405
  return (e, n = {}) => {
399
406
  const r = e.match(t.matchPattern);
400
407
  if (!r) return null;
401
- const a = r[0], o = e.match(t.parsePattern);
402
- if (!o) return null;
403
- let c = t.valueCallback ? t.valueCallback(o[0]) : o[0];
408
+ const a = r[0], i = e.match(t.parsePattern);
409
+ if (!i) return null;
410
+ let c = t.valueCallback ? t.valueCallback(i[0]) : i[0];
404
411
  c = n.valueCallback ? n.valueCallback(c) : c;
405
412
  const u = e.slice(a.length);
406
413
  return { value: c, rest: u };
407
414
  };
408
415
  }
409
- const vt = /^(\d+)(th|st|nd|rd)?/i, St = /\d+/i, Ot = {
416
+ const Oe = /^(\d+)(th|st|nd|rd)?/i, De = /\d+/i, Me = {
410
417
  narrow: /^(b|a)/i,
411
418
  abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
412
419
  wide: /^(before christ|before common era|anno domini|common era)/i
413
- }, Dt = {
420
+ }, Te = {
414
421
  any: [/^b/i, /^(a|c)/i]
415
- }, Mt = {
422
+ }, ke = {
416
423
  narrow: /^[1234]/i,
417
424
  abbreviated: /^q[1234]/i,
418
425
  wide: /^[1234](th|st|nd|rd)? quarter/i
419
- }, Tt = {
426
+ }, xe = {
420
427
  any: [/1/i, /2/i, /3/i, /4/i]
421
- }, pt = {
428
+ }, Ee = {
422
429
  narrow: /^[jfmasond]/i,
423
430
  abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
424
431
  wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
425
- }, kt = {
432
+ }, We = {
426
433
  narrow: [
427
434
  /^j/i,
428
435
  /^f/i,
@@ -451,18 +458,18 @@ const vt = /^(\d+)(th|st|nd|rd)?/i, St = /\d+/i, Ot = {
451
458
  /^n/i,
452
459
  /^d/i
453
460
  ]
454
- }, xt = {
461
+ }, Ae = {
455
462
  narrow: /^[smtwf]/i,
456
463
  short: /^(su|mo|tu|we|th|fr|sa)/i,
457
464
  abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
458
465
  wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
459
- }, Et = {
466
+ }, Ce = {
460
467
  narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
461
468
  any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
462
- }, Wt = {
469
+ }, Ye = {
463
470
  narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
464
471
  any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
465
- }, At = {
472
+ }, Fe = {
466
473
  any: {
467
474
  am: /^a/i,
468
475
  pm: /^p/i,
@@ -473,80 +480,80 @@ const vt = /^(\d+)(th|st|nd|rd)?/i, St = /\d+/i, Ot = {
473
480
  evening: /evening/i,
474
481
  night: /night/i
475
482
  }
476
- }, Ct = {
477
- ordinalNumber: Pt({
478
- matchPattern: vt,
479
- parsePattern: St,
483
+ }, Le = {
484
+ ordinalNumber: Se({
485
+ matchPattern: Oe,
486
+ parsePattern: De,
480
487
  valueCallback: (t) => parseInt(t, 10)
481
488
  }),
482
489
  era: D({
483
- matchPatterns: Ot,
490
+ matchPatterns: Me,
484
491
  defaultMatchWidth: "wide",
485
- parsePatterns: Dt,
492
+ parsePatterns: Te,
486
493
  defaultParseWidth: "any"
487
494
  }),
488
495
  quarter: D({
489
- matchPatterns: Mt,
496
+ matchPatterns: ke,
490
497
  defaultMatchWidth: "wide",
491
- parsePatterns: Tt,
498
+ parsePatterns: xe,
492
499
  defaultParseWidth: "any",
493
500
  valueCallback: (t) => t + 1
494
501
  }),
495
502
  month: D({
496
- matchPatterns: pt,
503
+ matchPatterns: Ee,
497
504
  defaultMatchWidth: "wide",
498
- parsePatterns: kt,
505
+ parsePatterns: We,
499
506
  defaultParseWidth: "any"
500
507
  }),
501
508
  day: D({
502
- matchPatterns: xt,
509
+ matchPatterns: Ae,
503
510
  defaultMatchWidth: "wide",
504
- parsePatterns: Et,
511
+ parsePatterns: Ce,
505
512
  defaultParseWidth: "any"
506
513
  }),
507
514
  dayPeriod: D({
508
- matchPatterns: Wt,
515
+ matchPatterns: Ye,
509
516
  defaultMatchWidth: "any",
510
- parsePatterns: At,
517
+ parsePatterns: Fe,
511
518
  defaultParseWidth: "any"
512
519
  })
513
- }, Yt = {
520
+ }, Ne = {
514
521
  code: "en-US",
515
- formatDistance: nt,
516
- formatLong: it,
517
- formatRelative: ut,
518
- localize: wt,
519
- match: Ct,
522
+ formatDistance: ae,
523
+ formatLong: ue,
524
+ formatRelative: de,
525
+ localize: ye,
526
+ match: Le,
520
527
  options: {
521
528
  weekStartsOn: 0,
522
529
  firstWeekContainsDate: 1
523
530
  }
524
531
  };
525
- function Nt(t) {
526
- const e = b(t);
527
- return $(e, tt(e)) + 1;
532
+ function _e(t, e) {
533
+ const n = b(t, e == null ? void 0 : e.in);
534
+ return K(n, ne(n)) + 1;
528
535
  }
529
- function Lt(t) {
530
- const e = b(t), n = +p(e) - +K(e);
531
- return Math.round(n / H) + 1;
536
+ function Re(t, e) {
537
+ const n = b(t, e == null ? void 0 : e.in), r = +k(n) - +Z(n);
538
+ return Math.round(r / p) + 1;
532
539
  }
533
- function G(t, e) {
540
+ function j(t, e) {
534
541
  var f, g, h, w;
535
- const n = b(t), r = n.getFullYear(), a = k(), o = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((g = (f = e == null ? void 0 : e.locale) == null ? void 0 : f.options) == null ? void 0 : g.firstWeekContainsDate) ?? a.firstWeekContainsDate ?? ((w = (h = a.locale) == null ? void 0 : h.options) == null ? void 0 : w.firstWeekContainsDate) ?? 1, c = v(t, 0);
536
- c.setFullYear(r + 1, 0, o), c.setHours(0, 0, 0, 0);
537
- const u = M(c, e), i = v(t, 0);
538
- i.setFullYear(r, 0, o), i.setHours(0, 0, 0, 0);
539
- const d = M(i, e);
540
- return n.getTime() >= u.getTime() ? r + 1 : n.getTime() >= d.getTime() ? r : r - 1;
542
+ const n = b(t, e == null ? void 0 : e.in), r = n.getFullYear(), a = x(), i = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((g = (f = e == null ? void 0 : e.locale) == null ? void 0 : f.options) == null ? void 0 : g.firstWeekContainsDate) ?? a.firstWeekContainsDate ?? ((w = (h = a.locale) == null ? void 0 : h.options) == null ? void 0 : w.firstWeekContainsDate) ?? 1, c = P((e == null ? void 0 : e.in) || t, 0);
543
+ c.setFullYear(r + 1, 0, i), c.setHours(0, 0, 0, 0);
544
+ const u = M(c, e), o = P((e == null ? void 0 : e.in) || t, 0);
545
+ o.setFullYear(r, 0, i), o.setHours(0, 0, 0, 0);
546
+ const d = M(o, e);
547
+ return +n >= +u ? r + 1 : +n >= +d ? r : r - 1;
541
548
  }
542
- function Ft(t, e) {
543
- var u, i, d, f;
544
- const n = k(), r = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((i = (u = e == null ? void 0 : e.locale) == null ? void 0 : u.options) == null ? void 0 : i.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((f = (d = n.locale) == null ? void 0 : d.options) == null ? void 0 : f.firstWeekContainsDate) ?? 1, a = G(t, e), o = v(t, 0);
545
- return o.setFullYear(a, 0, r), o.setHours(0, 0, 0, 0), M(o, e);
549
+ function Ie(t, e) {
550
+ var u, o, d, f;
551
+ const n = x(), r = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((o = (u = e == null ? void 0 : e.locale) == null ? void 0 : u.options) == null ? void 0 : o.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((f = (d = n.locale) == null ? void 0 : d.options) == null ? void 0 : f.firstWeekContainsDate) ?? 1, a = j(t, e), i = P((e == null ? void 0 : e.in) || t, 0);
552
+ return i.setFullYear(a, 0, r), i.setHours(0, 0, 0, 0), M(i, e);
546
553
  }
547
- function _t(t, e) {
548
- const n = b(t), r = +M(n, e) - +Ft(n, e);
549
- return Math.round(r / H) + 1;
554
+ function He(t, e) {
555
+ const n = b(t, e == null ? void 0 : e.in), r = +M(n, e) - +Ie(n, e);
556
+ return Math.round(r / p) + 1;
550
557
  }
551
558
  function s(t, e) {
552
559
  const n = t < 0 ? "-" : "", r = Math.abs(t).toString().padStart(e, "0");
@@ -615,7 +622,7 @@ const y = {
615
622
  afternoon: "afternoon",
616
623
  evening: "evening",
617
624
  night: "night"
618
- }, F = {
625
+ }, R = {
619
626
  // Era
620
627
  G: function(t, e, n) {
621
628
  const r = t.getFullYear() > 0 ? 1 : 0;
@@ -641,16 +648,16 @@ const y = {
641
648
  },
642
649
  // Local week-numbering year
643
650
  Y: function(t, e, n, r) {
644
- const a = G(t, r), o = a > 0 ? a : 1 - a;
651
+ const a = j(t, r), i = a > 0 ? a : 1 - a;
645
652
  if (e === "YY") {
646
- const c = o % 100;
653
+ const c = i % 100;
647
654
  return s(c, 2);
648
655
  }
649
- return e === "Yo" ? n.ordinalNumber(o, { unit: "year" }) : s(o, e.length);
656
+ return e === "Yo" ? n.ordinalNumber(i, { unit: "year" }) : s(i, e.length);
650
657
  },
651
658
  // ISO week-numbering year
652
659
  R: function(t, e) {
653
- const n = q(t);
660
+ const n = G(t);
654
661
  return s(n, e.length);
655
662
  },
656
663
  // Extended year. This is a single number designating the year of this calendar system.
@@ -773,12 +780,12 @@ const y = {
773
780
  },
774
781
  // Local week of year
775
782
  w: function(t, e, n, r) {
776
- const a = _t(t, r);
783
+ const a = He(t, r);
777
784
  return e === "wo" ? n.ordinalNumber(a, { unit: "week" }) : s(a, e.length);
778
785
  },
779
786
  // ISO week of year
780
787
  I: function(t, e, n) {
781
- const r = Lt(t);
788
+ const r = Re(t);
782
789
  return e === "Io" ? n.ordinalNumber(r, { unit: "week" }) : s(r, e.length);
783
790
  },
784
791
  // Day of the month
@@ -787,7 +794,7 @@ const y = {
787
794
  },
788
795
  // Day of year
789
796
  D: function(t, e, n) {
790
- const r = Nt(t);
797
+ const r = _e(t);
791
798
  return e === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : s(r, e.length);
792
799
  },
793
800
  // Day of week
@@ -821,14 +828,14 @@ const y = {
821
828
  },
822
829
  // Local day of week
823
830
  e: function(t, e, n, r) {
824
- const a = t.getDay(), o = (a - r.weekStartsOn + 8) % 7 || 7;
831
+ const a = t.getDay(), i = (a - r.weekStartsOn + 8) % 7 || 7;
825
832
  switch (e) {
826
833
  case "e":
827
- return String(o);
834
+ return String(i);
828
835
  case "ee":
829
- return s(o, 2);
836
+ return s(i, 2);
830
837
  case "eo":
831
- return n.ordinalNumber(o, { unit: "day" });
838
+ return n.ordinalNumber(i, { unit: "day" });
832
839
  case "eee":
833
840
  return n.day(a, {
834
841
  width: "abbreviated",
@@ -854,14 +861,14 @@ const y = {
854
861
  },
855
862
  // Stand-alone local day of week
856
863
  c: function(t, e, n, r) {
857
- const a = t.getDay(), o = (a - r.weekStartsOn + 8) % 7 || 7;
864
+ const a = t.getDay(), i = (a - r.weekStartsOn + 8) % 7 || 7;
858
865
  switch (e) {
859
866
  case "c":
860
- return String(o);
867
+ return String(i);
861
868
  case "cc":
862
- return s(o, e.length);
869
+ return s(i, e.length);
863
870
  case "co":
864
- return n.ordinalNumber(o, { unit: "day" });
871
+ return n.ordinalNumber(i, { unit: "day" });
865
872
  case "ccc":
866
873
  return n.day(a, {
867
874
  width: "abbreviated",
@@ -1041,14 +1048,14 @@ const y = {
1041
1048
  return "Z";
1042
1049
  switch (e) {
1043
1050
  case "X":
1044
- return R(r);
1051
+ return H(r);
1045
1052
  case "XXXX":
1046
1053
  case "XX":
1047
- return P(r);
1054
+ return v(r);
1048
1055
  case "XXXXX":
1049
1056
  case "XXX":
1050
1057
  default:
1051
- return P(r, ":");
1058
+ return v(r, ":");
1052
1059
  }
1053
1060
  },
1054
1061
  // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
@@ -1056,14 +1063,14 @@ const y = {
1056
1063
  const r = t.getTimezoneOffset();
1057
1064
  switch (e) {
1058
1065
  case "x":
1059
- return R(r);
1066
+ return H(r);
1060
1067
  case "xxxx":
1061
1068
  case "xx":
1062
- return P(r);
1069
+ return v(r);
1063
1070
  case "xxxxx":
1064
1071
  case "xxx":
1065
1072
  default:
1066
- return P(r, ":");
1073
+ return v(r, ":");
1067
1074
  }
1068
1075
  },
1069
1076
  // Timezone (GMT)
@@ -1073,10 +1080,10 @@ const y = {
1073
1080
  case "O":
1074
1081
  case "OO":
1075
1082
  case "OOO":
1076
- return "GMT" + _(r, ":");
1083
+ return "GMT" + I(r, ":");
1077
1084
  case "OOOO":
1078
1085
  default:
1079
- return "GMT" + P(r, ":");
1086
+ return "GMT" + v(r, ":");
1080
1087
  }
1081
1088
  },
1082
1089
  // Timezone (specific non-location)
@@ -1086,35 +1093,34 @@ const y = {
1086
1093
  case "z":
1087
1094
  case "zz":
1088
1095
  case "zzz":
1089
- return "GMT" + _(r, ":");
1096
+ return "GMT" + I(r, ":");
1090
1097
  case "zzzz":
1091
1098
  default:
1092
- return "GMT" + P(r, ":");
1099
+ return "GMT" + v(r, ":");
1093
1100
  }
1094
1101
  },
1095
1102
  // Seconds timestamp
1096
1103
  t: function(t, e, n) {
1097
- const r = Math.trunc(t.getTime() / 1e3);
1104
+ const r = Math.trunc(+t / 1e3);
1098
1105
  return s(r, e.length);
1099
1106
  },
1100
1107
  // Milliseconds timestamp
1101
1108
  T: function(t, e, n) {
1102
- const r = t.getTime();
1103
- return s(r, e.length);
1109
+ return s(+t, e.length);
1104
1110
  }
1105
1111
  };
1106
- function _(t, e = "") {
1107
- const n = t > 0 ? "-" : "+", r = Math.abs(t), a = Math.trunc(r / 60), o = r % 60;
1108
- return o === 0 ? n + String(a) : n + String(a) + e + s(o, 2);
1112
+ function I(t, e = "") {
1113
+ const n = t > 0 ? "-" : "+", r = Math.abs(t), a = Math.trunc(r / 60), i = r % 60;
1114
+ return i === 0 ? n + String(a) : n + String(a) + e + s(i, 2);
1109
1115
  }
1110
- function R(t, e) {
1111
- return t % 60 === 0 ? (t > 0 ? "-" : "+") + s(Math.abs(t) / 60, 2) : P(t, e);
1116
+ function H(t, e) {
1117
+ return t % 60 === 0 ? (t > 0 ? "-" : "+") + s(Math.abs(t) / 60, 2) : v(t, e);
1112
1118
  }
1113
- function P(t, e = "") {
1114
- const n = t > 0 ? "-" : "+", r = Math.abs(t), a = s(Math.trunc(r / 60), 2), o = s(r % 60, 2);
1115
- return n + a + e + o;
1119
+ function v(t, e = "") {
1120
+ const n = t > 0 ? "-" : "+", r = Math.abs(t), a = s(Math.trunc(r / 60), 2), i = s(r % 60, 2);
1121
+ return n + a + e + i;
1116
1122
  }
1117
- const I = (t, e) => {
1123
+ const q = (t, e) => {
1118
1124
  switch (t) {
1119
1125
  case "P":
1120
1126
  return e.date({ width: "short" });
@@ -1126,7 +1132,7 @@ const I = (t, e) => {
1126
1132
  default:
1127
1133
  return e.date({ width: "full" });
1128
1134
  }
1129
- }, j = (t, e) => {
1135
+ }, X = (t, e) => {
1130
1136
  switch (t) {
1131
1137
  case "p":
1132
1138
  return e.time({ width: "short" });
@@ -1138,91 +1144,91 @@ const I = (t, e) => {
1138
1144
  default:
1139
1145
  return e.time({ width: "full" });
1140
1146
  }
1141
- }, Rt = (t, e) => {
1147
+ }, qe = (t, e) => {
1142
1148
  const n = t.match(/(P+)(p+)?/) || [], r = n[1], a = n[2];
1143
1149
  if (!a)
1144
- return I(t, e);
1145
- let o;
1150
+ return q(t, e);
1151
+ let i;
1146
1152
  switch (r) {
1147
1153
  case "P":
1148
- o = e.dateTime({ width: "short" });
1154
+ i = e.dateTime({ width: "short" });
1149
1155
  break;
1150
1156
  case "PP":
1151
- o = e.dateTime({ width: "medium" });
1157
+ i = e.dateTime({ width: "medium" });
1152
1158
  break;
1153
1159
  case "PPP":
1154
- o = e.dateTime({ width: "long" });
1160
+ i = e.dateTime({ width: "long" });
1155
1161
  break;
1156
1162
  case "PPPP":
1157
1163
  default:
1158
- o = e.dateTime({ width: "full" });
1164
+ i = e.dateTime({ width: "full" });
1159
1165
  break;
1160
1166
  }
1161
- return o.replace("{{date}}", I(r, e)).replace("{{time}}", j(a, e));
1162
- }, It = {
1163
- p: j,
1164
- P: Rt
1165
- }, Ht = /^D+$/, qt = /^Y+$/, Gt = ["D", "DD", "YY", "YYYY"];
1166
- function jt(t) {
1167
- return Ht.test(t);
1167
+ return i.replace("{{date}}", q(r, e)).replace("{{time}}", X(a, e));
1168
+ }, pe = {
1169
+ p: X,
1170
+ P: qe
1171
+ }, Ge = /^D+$/, je = /^Y+$/, Xe = ["D", "DD", "YY", "YYYY"];
1172
+ function Qe(t) {
1173
+ return Ge.test(t);
1168
1174
  }
1169
- function Xt(t) {
1170
- return qt.test(t);
1175
+ function Be(t) {
1176
+ return je.test(t);
1171
1177
  }
1172
- function Qt(t, e, n) {
1173
- const r = Bt(t, e, n);
1174
- if (console.warn(r), Gt.includes(t)) throw new RangeError(r);
1178
+ function Ve(t, e, n) {
1179
+ const r = Ue(t, e, n);
1180
+ if (console.warn(r), Xe.includes(t)) throw new RangeError(r);
1175
1181
  }
1176
- function Bt(t, e, n) {
1182
+ function Ue(t, e, n) {
1177
1183
  const r = t[0] === "Y" ? "years" : "days of the month";
1178
1184
  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`;
1179
1185
  }
1180
- const Vt = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Ut = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Jt = /^'([^]*?)'?$/, $t = /''/g, Kt = /[a-zA-Z]/;
1181
- function zt(t, e, n) {
1186
+ const Je = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, $e = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, ze = /^'([^]*?)'?$/, Ke = /''/g, Ze = /[a-zA-Z]/;
1187
+ function et(t, e, n) {
1182
1188
  var f, g, h, w;
1183
- const r = k(), a = r.locale ?? Yt, o = r.firstWeekContainsDate ?? ((g = (f = r.locale) == null ? void 0 : f.options) == null ? void 0 : g.firstWeekContainsDate) ?? 1, c = r.weekStartsOn ?? ((w = (h = r.locale) == null ? void 0 : h.options) == null ? void 0 : w.weekStartsOn) ?? 0, u = b(t);
1184
- if (!Z(u))
1189
+ const r = x(), a = r.locale ?? Ne, i = r.firstWeekContainsDate ?? ((g = (f = r.locale) == null ? void 0 : f.options) == null ? void 0 : g.firstWeekContainsDate) ?? 1, c = r.weekStartsOn ?? ((w = (h = r.locale) == null ? void 0 : h.options) == null ? void 0 : w.weekStartsOn) ?? 0, u = b(t, n == null ? void 0 : n.in);
1190
+ if (!te(u))
1185
1191
  throw new RangeError("Invalid time value");
1186
- let i = e.match(Ut).map((m) => {
1192
+ let o = e.match($e).map((m) => {
1187
1193
  const l = m[0];
1188
1194
  if (l === "p" || l === "P") {
1189
- const x = It[l];
1190
- return x(m, a.formatLong);
1195
+ const E = pe[l];
1196
+ return E(m, a.formatLong);
1191
1197
  }
1192
1198
  return m;
1193
- }).join("").match(Vt).map((m) => {
1199
+ }).join("").match(Je).map((m) => {
1194
1200
  if (m === "''")
1195
1201
  return { isToken: !1, value: "'" };
1196
1202
  const l = m[0];
1197
1203
  if (l === "'")
1198
- return { isToken: !1, value: Zt(m) };
1199
- if (F[l])
1204
+ return { isToken: !1, value: tt(m) };
1205
+ if (R[l])
1200
1206
  return { isToken: !0, value: m };
1201
- if (l.match(Kt))
1207
+ if (l.match(Ze))
1202
1208
  throw new RangeError(
1203
1209
  "Format string contains an unescaped latin alphabet character `" + l + "`"
1204
1210
  );
1205
1211
  return { isToken: !1, value: m };
1206
1212
  });
1207
- a.localize.preprocessor && (i = a.localize.preprocessor(u, i));
1213
+ a.localize.preprocessor && (o = a.localize.preprocessor(u, o));
1208
1214
  const d = {
1209
- firstWeekContainsDate: o,
1215
+ firstWeekContainsDate: i,
1210
1216
  weekStartsOn: c,
1211
1217
  locale: a
1212
1218
  };
1213
- return i.map((m) => {
1219
+ return o.map((m) => {
1214
1220
  if (!m.isToken) return m.value;
1215
1221
  const l = m.value;
1216
- (Xt(l) || jt(l)) && Qt(l, e, String(t));
1217
- const x = F[l[0]];
1218
- return x(u, l, a.localize, d);
1222
+ (Be(l) || Qe(l)) && Ve(l, e, String(t));
1223
+ const E = R[l[0]];
1224
+ return E(u, l, a.localize, d);
1219
1225
  }).join("");
1220
1226
  }
1221
- function Zt(t) {
1222
- const e = t.match(Jt);
1223
- return e ? e[1].replace($t, "'") : t;
1227
+ function tt(t) {
1228
+ const e = t.match(ze);
1229
+ return e ? e[1].replace(Ke, "'") : t;
1224
1230
  }
1225
- function oe() {
1231
+ function ct() {
1226
1232
  return {
1227
1233
  formatDateBy: (n, r = {}) => {
1228
1234
  if (isNaN(n))
@@ -1248,15 +1254,15 @@ function oe() {
1248
1254
  return "";
1249
1255
  const a = r ? "yyyy-MM-dd HH:mm:ss" : "yyyy-MM-dd HH:mm:ss XX";
1250
1256
  try {
1251
- const o = new Date(n * 1e3);
1252
- return zt(o, a);
1257
+ const i = new Date(n * 1e3);
1258
+ return et(i, a);
1253
1259
  } catch {
1254
1260
  return "";
1255
1261
  }
1256
1262
  }
1257
1263
  };
1258
1264
  }
1259
- function ie() {
1265
+ function ut() {
1260
1266
  return {
1261
1267
  debounce: (e, n) => {
1262
1268
  let r;
@@ -1268,9 +1274,9 @@ function ie() {
1268
1274
  }
1269
1275
  };
1270
1276
  }
1271
- function ce({ script: t, styles: e, onReady: n }) {
1272
- const r = T(!0), a = T(!0), o = async () => {
1273
- const { libName: i, url: d, type: f } = t;
1277
+ function st({ script: t, styles: e, onReady: n }) {
1278
+ const r = T(!0), a = T(!0), i = async () => {
1279
+ const { libName: o, url: d, type: f } = t;
1274
1280
  if ((f !== void 0 && ["umd", "es"].includes(f) ? f : "umd") === "es") {
1275
1281
  await import(
1276
1282
  /* @vite-ignore */
@@ -1278,7 +1284,7 @@ function ce({ script: t, styles: e, onReady: n }) {
1278
1284
  ), typeof n == "function" && await n();
1279
1285
  return;
1280
1286
  }
1281
- const h = i.startsWith("kong-ui-") ? i : `kong-ui-${i}`;
1287
+ const h = o.startsWith("kong-ui-") ? o : `kong-ui-${o}`;
1282
1288
  return window[h] || (window[h] = await new Promise((w, m) => {
1283
1289
  const l = document.createElement("script");
1284
1290
  l.async = !0, l.addEventListener("load", async () => {
@@ -1287,9 +1293,9 @@ function ce({ script: t, styles: e, onReady: n }) {
1287
1293
  m(new Error(`Could not load '${h}' from ${d}`));
1288
1294
  }), l.src = d, document.head.appendChild(l);
1289
1295
  })), window[h];
1290
- }, c = async (i, d) => {
1296
+ }, c = async (o, d) => {
1291
1297
  var f;
1292
- for (const g of i) {
1298
+ for (const g of o) {
1293
1299
  const h = document.createElement("link");
1294
1300
  h.type = "text/css", h.rel = "stylesheet", h.href = g;
1295
1301
  const w = d ? document.querySelector(d) : null, m = d ? (f = w == null ? void 0 : w.shadowRoot) == null ? void 0 : f.children[0] : null;
@@ -1307,29 +1313,29 @@ function ce({ script: t, styles: e, onReady: n }) {
1307
1313
  importPackage: async () => {
1308
1314
  var d, f;
1309
1315
  if (!t || !t.url || typeof window > "u" || typeof document > "u") return;
1310
- const i = B(() => !!(e && (e != null && e.urls) && (e != null && e.urls.length) && e.shadowRoot));
1311
- if ((!e || !(e != null && e.urls) || !((d = e == null ? void 0 : e.urls) != null && d.length)) && (a.value = !1), e != null && e.urls && ((f = e == null ? void 0 : e.urls) != null && f.length) && !i.value && (await c(e.urls), a.value = !1), (!t.type || t.type === "umd") && !i.value)
1312
- return await o();
1313
- await o(), await Y(), r.value = !1, e != null && e.urls && i.value && (await c(e.urls, e == null ? void 0 : e.shadowRoot), await Y(), a.value = !1);
1316
+ const o = V(() => !!(e && (e != null && e.urls) && (e != null && e.urls.length) && e.shadowRoot));
1317
+ if ((!e || !(e != null && e.urls) || !((d = e == null ? void 0 : e.urls) != null && d.length)) && (a.value = !1), e != null && e.urls && ((f = e == null ? void 0 : e.urls) != null && f.length) && !o.value && (await c(e.urls), a.value = !1), (!t.type || t.type === "umd") && !o.value)
1318
+ return await i();
1319
+ await i(), await F(), r.value = !1, e != null && e.urls && o.value && (await c(e.urls, e == null ? void 0 : e.shadowRoot), await F(), a.value = !1);
1314
1320
  },
1315
- loadingPackage: C(r),
1316
- loadingStyles: C(a)
1321
+ loadingPackage: Y(r),
1322
+ loadingStyles: Y(a)
1317
1323
  };
1318
1324
  }
1319
- var X = /* @__PURE__ */ ((t) => (t.VALIDATING = "VALIDATING", t.VALIDATING_HAS_DATA = "VALIDATING_HAS_DATA", t.PENDING = "PENDING", t.SUCCESS = "SUCCESS", t.SUCCESS_HAS_DATA = "SUCCESS_HAS_DATA", t.ERROR = "ERROR", t.STALE_IF_ERROR = "STALE_IF_ERROR", t))(X || {});
1320
- const te = (t) => {
1321
- var e, n, r, a, o;
1325
+ var Q = /* @__PURE__ */ ((t) => (t.VALIDATING = "VALIDATING", t.VALIDATING_HAS_DATA = "VALIDATING_HAS_DATA", t.PENDING = "PENDING", t.SUCCESS = "SUCCESS", t.SUCCESS_HAS_DATA = "SUCCESS_HAS_DATA", t.ERROR = "ERROR", t.STALE_IF_ERROR = "STALE_IF_ERROR", t))(Q || {});
1326
+ const nt = (t) => {
1327
+ var e, n, r, a, i;
1322
1328
  return t ? !!// TODO: revisit: currently only the first check ever matters?
1323
- ((e = Object.keys(t)) != null && e.length || (n = t.data) != null && n.length || (a = (r = t.data) == null ? void 0 : r.data) != null && a.length || !((o = t.data) != null && o.data) && typeof t.data == "object" && Object.keys(t == null ? void 0 : t.data).length) : !1;
1329
+ ((e = Object.keys(t)) != null && e.length || (n = t.data) != null && n.length || (a = (r = t.data) == null ? void 0 : r.data) != null && a.length || !((i = t.data) != null && i.data) && typeof t.data == "object" && Object.keys(t == null ? void 0 : t.data).length) : !1;
1324
1330
  };
1325
- function ue(t = T({}), e, n, r = te) {
1331
+ function dt(t = T({}), e, n, r = nt) {
1326
1332
  const a = T(
1327
1333
  "PENDING"
1328
1334
  /* PENDING */
1329
1335
  );
1330
- return V(() => {
1331
- const o = r(t.value);
1332
- if (t.value && o && n.value) {
1336
+ return U(() => {
1337
+ const i = r(t.value);
1338
+ if (t.value && i && n.value) {
1333
1339
  a.value = "VALIDATING_HAS_DATA";
1334
1340
  return;
1335
1341
  }
@@ -1345,7 +1351,7 @@ function ue(t = T({}), e, n, r = te) {
1345
1351
  a.value = "PENDING";
1346
1352
  return;
1347
1353
  }
1348
- if (t.value && !e.value && o) {
1354
+ if (t.value && !e.value && i) {
1349
1355
  a.value = "SUCCESS_HAS_DATA";
1350
1356
  return;
1351
1357
  }
@@ -1356,86 +1362,87 @@ function ue(t = T({}), e, n, r = te) {
1356
1362
  t.value === void 0 && e && (a.value = "ERROR");
1357
1363
  }), {
1358
1364
  state: a,
1359
- swrvState: X
1365
+ swrvState: Q
1360
1366
  };
1361
1367
  }
1362
- const W = "khcp-user-table-preferences", ee = {
1368
+ const A = "khcp-user-table-preferences", rt = {
1363
1369
  pageSize: 30,
1364
1370
  sortColumnKey: void 0,
1365
1371
  sortColumnOrder: void 0,
1372
+ columnWidths: {},
1366
1373
  columnVisibility: {}
1367
1374
  };
1368
- function se() {
1369
- const t = (o) => {
1370
- if (typeof o == "string")
1375
+ function ft() {
1376
+ const t = (i) => {
1377
+ if (typeof i == "string")
1371
1378
  try {
1372
- return JSON.parse(o);
1379
+ return JSON.parse(i);
1373
1380
  } catch (c) {
1374
1381
  console.error("useTablePreferences(tryParseJson)", c);
1375
1382
  return;
1376
1383
  }
1377
1384
  }, e = () => {
1378
- const o = t(localStorage.getItem(W));
1379
- return !o || !Object.keys(o).length ? /* @__PURE__ */ new Map() : new Map(Object.entries(o));
1385
+ const i = t(localStorage.getItem(A));
1386
+ return !i || !Object.keys(i).length ? /* @__PURE__ */ new Map() : new Map(Object.entries(i));
1380
1387
  };
1381
1388
  return {
1382
- setTablePreferences: (o, c) => {
1389
+ setTablePreferences: (i, c) => {
1383
1390
  try {
1384
1391
  const u = e();
1385
- u.set(o, c), localStorage.setItem(W, JSON.stringify(Object.fromEntries(u.entries())));
1392
+ u.set(i, c), localStorage.setItem(A, JSON.stringify(Object.fromEntries(u.entries())));
1386
1393
  } catch (u) {
1387
1394
  console.error("useTablePreferences(setTablePreferences)", u);
1388
1395
  }
1389
1396
  },
1390
- getTablePreferences: (o, c) => {
1397
+ getTablePreferences: (i, c) => {
1391
1398
  const u = e();
1392
- return (u == null ? void 0 : u.get(o)) || void 0 || c || ee;
1399
+ return (u == null ? void 0 : u.get(i)) || void 0 || c || rt;
1393
1400
  },
1394
1401
  deleteAllTablePreferences: () => {
1395
- localStorage.removeItem(W);
1402
+ localStorage.removeItem(A);
1396
1403
  }
1397
1404
  };
1398
1405
  }
1399
- function de() {
1406
+ function lt() {
1400
1407
  const t = () => {
1401
- var i;
1402
- return ((i = window == null ? void 0 : window.location) == null ? void 0 : i.search) || "";
1408
+ var o;
1409
+ return ((o = window == null ? void 0 : window.location) == null ? void 0 : o.search) || "";
1403
1410
  };
1404
1411
  return {
1405
1412
  getLocationSearch: t,
1406
1413
  getLocationHostname: () => {
1407
- var i;
1408
- return ((i = window == null ? void 0 : window.location) == null ? void 0 : i.hostname) || "";
1414
+ var o;
1415
+ return ((o = window == null ? void 0 : window.location) == null ? void 0 : o.hostname) || "";
1409
1416
  },
1410
1417
  getLocationHref: () => {
1411
- var i;
1412
- return ((i = window == null ? void 0 : window.location) == null ? void 0 : i.href) || "";
1418
+ var o;
1419
+ return ((o = window == null ? void 0 : window.location) == null ? void 0 : o.href) || "";
1413
1420
  },
1414
1421
  getLocationPathname: () => {
1415
- var i;
1416
- return ((i = window == null ? void 0 : window.location) == null ? void 0 : i.pathname) || "";
1422
+ var o;
1423
+ return ((o = window == null ? void 0 : window.location) == null ? void 0 : o.pathname) || "";
1417
1424
  },
1418
1425
  getLocationOrigin: () => {
1419
- var i;
1420
- return ((i = window == null ? void 0 : window.location) == null ? void 0 : i.origin) || "";
1426
+ var o;
1427
+ return ((o = window == null ? void 0 : window.location) == null ? void 0 : o.origin) || "";
1421
1428
  },
1422
1429
  getUrlSearchParams: () => new URLSearchParams(t()),
1423
- setLocationAssign: (i) => {
1424
- window.location.assign(i);
1430
+ setLocationAssign: (o) => {
1431
+ window.location.assign(o);
1425
1432
  },
1426
- setLocationReplace: (i) => {
1427
- window.location.replace(i);
1433
+ setLocationReplace: (o) => {
1434
+ window.location.replace(o);
1428
1435
  }
1429
1436
  };
1430
1437
  }
1431
1438
  export {
1432
- ee as DEFAULT_USER_TABLE_PREFERENCES,
1433
- W as USER_TABLE_PREFERENCES_LOCAL_STORAGE_KEY,
1434
- ae as useAxios,
1435
- oe as useDate,
1436
- ie as useDebounce,
1437
- ce as usePackage,
1438
- ue as useSwrvState,
1439
- se as useTablePreferences,
1440
- de as useWindow
1439
+ rt as DEFAULT_USER_TABLE_PREFERENCES,
1440
+ A as USER_TABLE_PREFERENCES_LOCAL_STORAGE_KEY,
1441
+ ot as useAxios,
1442
+ ct as useDate,
1443
+ ut as useDebounce,
1444
+ st as usePackage,
1445
+ dt as useSwrvState,
1446
+ ft as useTablePreferences,
1447
+ lt as useWindow
1441
1448
  };
package/dist/core.umd.js CHANGED
@@ -1 +1 @@
1
- (function(g,v){typeof exports=="object"&&typeof module<"u"?v(exports,require("axios"),require("vue")):typeof define=="function"&&define.amd?define(["exports","axios","vue"],v):(g=typeof globalThis<"u"?globalThis:g||self,v(g["kong-ui-core"]={},g.axios,g.Vue))})(this,function(g,v,y){"use strict";function X(){return{getAxiosInstance:(n={})=>{try{const r=y.inject("get-axios-instance",void 0);return typeof r=="function"?r(n):v.create({withCredentials:!0,timeout:3e4,...n})}catch(r){return console.warn("getAxiosInstance:",r.message||r),v.create({withCredentials:!0,timeout:3e4,...n})}},getTraceIdFromError:n=>{var r;return((r=n==null?void 0:n.response)==null?void 0:r.headers["x-datadog-trace-id"])||""}}}function P(e){const t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}function O(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}const Y=6048e5,Q=864e5;let U={};function p(){return U}function E(e,t){var u,i,d,f;const n=p(),r=(t==null?void 0:t.weekStartsOn)??((i=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:i.weekStartsOn)??n.weekStartsOn??((f=(d=n.locale)==null?void 0:d.options)==null?void 0:f.weekStartsOn)??0,a=P(e),o=a.getDay(),c=(o<r?7:0)+o-r;return a.setDate(a.getDate()-c),a.setHours(0,0,0,0),a}function x(e){return E(e,{weekStartsOn:1})}function L(e){const t=P(e),n=t.getFullYear(),r=O(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const a=x(r),o=O(e,0);o.setFullYear(n,0,4),o.setHours(0,0,0,0);const c=x(o);return t.getTime()>=a.getTime()?n+1:t.getTime()>=c.getTime()?n:n-1}function N(e){const t=P(e);return t.setHours(0,0,0,0),t}function F(e){const t=P(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function V(e,t){const n=N(e),r=N(t),a=+n-F(n),o=+r-F(r);return Math.round((a-o)/Q)}function J(e){const t=L(e),n=O(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),x(n)}function $(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function K(e){if(!$(e)&&typeof e!="number")return!1;const t=P(e);return!isNaN(Number(t))}function z(e){const t=P(e),n=O(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}const Z={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},ee=(e,t,n)=>{let r;const a=Z[e];return typeof a=="string"?r=a:t===1?r=a.one:r=a.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function A(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const te={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},ne={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},re={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},ae={date:A({formats:te,defaultWidth:"full"}),time:A({formats:ne,defaultWidth:"full"}),dateTime:A({formats:re,defaultWidth:"full"})},oe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},ie=(e,t,n,r)=>oe[e];function M(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let a;if(r==="formatting"&&e.formattingValues){const c=e.defaultFormattingWidth||e.defaultWidth,u=n!=null&&n.width?String(n.width):c;a=e.formattingValues[u]||e.formattingValues[c]}else{const c=e.defaultWidth,u=n!=null&&n.width?String(n.width):e.defaultWidth;a=e.values[u]||e.values[c]}const o=e.argumentCallback?e.argumentCallback(t):t;return a[o]}}const ce={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},ue={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},se={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},de={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},fe={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},le={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},he={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:M({values:ce,defaultWidth:"wide"}),quarter:M({values:ue,defaultWidth:"wide",argumentCallback:e=>e-1}),month:M({values:se,defaultWidth:"wide"}),day:M({values:de,defaultWidth:"wide"}),dayPeriod:M({values:fe,defaultWidth:"wide",formattingValues:le,defaultFormattingWidth:"wide"})};function k(e){return(t,n={})=>{const r=n.width,a=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(a);if(!o)return null;const c=o[0],u=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],i=Array.isArray(u)?ge(u,w=>w.test(c)):me(u,w=>w.test(c));let d;d=e.valueCallback?e.valueCallback(i):i,d=n.valueCallback?n.valueCallback(d):d;const f=t.slice(c.length);return{value:d,rest:f}}}function me(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function ge(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function we(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const a=r[0],o=t.match(e.parsePattern);if(!o)return null;let c=e.valueCallback?e.valueCallback(o[0]):o[0];c=n.valueCallback?n.valueCallback(c):c;const u=t.slice(a.length);return{value:c,rest:u}}}const be=/^(\d+)(th|st|nd|rd)?/i,ye=/\d+/i,Pe={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Se={any:[/^b/i,/^(a|c)/i]},Oe={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Te={any:[/1/i,/2/i,/3/i,/4/i]},ve={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},De={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],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]},Ee={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Me={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},ke={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},pe={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},xe={ordinalNumber:we({matchPattern:be,parsePattern:ye,valueCallback:e=>parseInt(e,10)}),era:k({matchPatterns:Pe,defaultMatchWidth:"wide",parsePatterns:Se,defaultParseWidth:"any"}),quarter:k({matchPatterns:Oe,defaultMatchWidth:"wide",parsePatterns:Te,defaultParseWidth:"any",valueCallback:e=>e+1}),month:k({matchPatterns:ve,defaultMatchWidth:"wide",parsePatterns:De,defaultParseWidth:"any"}),day:k({matchPatterns:Ee,defaultMatchWidth:"wide",parsePatterns:Me,defaultParseWidth:"any"}),dayPeriod:k({matchPatterns:ke,defaultMatchWidth:"any",parsePatterns:pe,defaultParseWidth:"any"})},We={code:"en-US",formatDistance:ee,formatLong:ae,formatRelative:ie,localize:he,match:xe,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Ae(e){const t=P(e);return V(t,z(t))+1}function Ce(e){const t=P(e),n=+x(t)-+J(t);return Math.round(n/Y)+1}function _(e,t){var f,w,h,b;const n=P(e),r=n.getFullYear(),a=p(),o=(t==null?void 0:t.firstWeekContainsDate)??((w=(f=t==null?void 0:t.locale)==null?void 0:f.options)==null?void 0:w.firstWeekContainsDate)??a.firstWeekContainsDate??((b=(h=a.locale)==null?void 0:h.options)==null?void 0:b.firstWeekContainsDate)??1,c=O(e,0);c.setFullYear(r+1,0,o),c.setHours(0,0,0,0);const u=E(c,t),i=O(e,0);i.setFullYear(r,0,o),i.setHours(0,0,0,0);const d=E(i,t);return n.getTime()>=u.getTime()?r+1:n.getTime()>=d.getTime()?r:r-1}function Ye(e,t){var u,i,d,f;const n=p(),r=(t==null?void 0:t.firstWeekContainsDate)??((i=(u=t==null?void 0:t.locale)==null?void 0:u.options)==null?void 0:i.firstWeekContainsDate)??n.firstWeekContainsDate??((f=(d=n.locale)==null?void 0:d.options)==null?void 0:f.firstWeekContainsDate)??1,a=_(e,t),o=O(e,0);return o.setFullYear(a,0,r),o.setHours(0,0,0,0),E(o,t)}function Le(e,t){const n=P(e),r=+E(n,t)-+Ye(n,t);return Math.round(r/Y)+1}function s(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const S={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return s(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):s(n+1,2)},d(e,t){return s(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return s(e.getHours()%12||12,t.length)},H(e,t){return s(e.getHours(),t.length)},m(e,t){return s(e.getMinutes(),t.length)},s(e,t){return s(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),a=Math.trunc(r*Math.pow(10,n-3));return s(a,t.length)}},D={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},R={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),a=r>0?r:1-r;return n.ordinalNumber(a,{unit:"year"})}return S.y(e,t)},Y:function(e,t,n,r){const a=_(e,r),o=a>0?a:1-a;if(t==="YY"){const c=o%100;return s(c,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):s(o,t.length)},R:function(e,t){const n=L(e);return s(n,t.length)},u:function(e,t){const n=e.getFullYear();return s(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return s(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return s(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return S.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return s(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const a=Le(e,r);return t==="wo"?n.ordinalNumber(a,{unit:"week"}):s(a,t.length)},I:function(e,t,n){const r=Ce(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):s(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):S.d(e,t)},D:function(e,t,n){const r=Ae(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):s(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const a=e.getDay(),o=(a-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return s(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});case"eeee":default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const a=e.getDay(),o=(a-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return s(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});case"cccc":default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),a=r===0?7:r;switch(t){case"i":return String(a);case"ii":return s(a,t.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const a=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let a;switch(r===12?a=D.noon:r===0?a=D.midnight:a=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let a;switch(r>=17?a=D.evening:r>=12?a=D.afternoon:r>=4?a=D.morning:a=D.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return S.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):S.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):s(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):s(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):S.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):S.s(e,t)},S:function(e,t){return S.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return H(r);case"XXXX":case"XX":return T(r);case"XXXXX":case"XXX":default:return T(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return H(r);case"xxxx":case"xx":return T(r);case"xxxxx":case"xxx":default:return T(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+I(r,":");case"OOOO":default:return"GMT"+T(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+I(r,":");case"zzzz":default:return"GMT"+T(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return s(r,t.length)},T:function(e,t,n){const r=e.getTime();return s(r,t.length)}};function I(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),a=Math.trunc(r/60),o=r%60;return o===0?n+String(a):n+String(a)+t+s(o,2)}function H(e,t){return e%60===0?(e>0?"-":"+")+s(Math.abs(e)/60,2):T(e,t)}function T(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),a=s(Math.trunc(r/60),2),o=s(r%60,2);return n+a+t+o}const q=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},j=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Ne={p:j,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],a=n[2];if(!a)return q(e,t);let o;switch(r){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",q(r,t)).replace("{{time}}",j(a,t))}},Fe=/^D+$/,_e=/^Y+$/,Re=["D","DD","YY","YYYY"];function Ie(e){return Fe.test(e)}function He(e){return _e.test(e)}function qe(e,t,n){const r=je(e,t,n);if(console.warn(r),Re.includes(e))throw new RangeError(r)}function je(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const Ge=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Be=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Xe=/^'([^]*?)'?$/,Qe=/''/g,Ue=/[a-zA-Z]/;function Ve(e,t,n){var f,w,h,b;const r=p(),a=r.locale??We,o=r.firstWeekContainsDate??((w=(f=r.locale)==null?void 0:f.options)==null?void 0:w.firstWeekContainsDate)??1,c=r.weekStartsOn??((b=(h=r.locale)==null?void 0:h.options)==null?void 0:b.weekStartsOn)??0,u=P(e);if(!K(u))throw new RangeError("Invalid time value");let i=t.match(Be).map(m=>{const l=m[0];if(l==="p"||l==="P"){const C=Ne[l];return C(m,a.formatLong)}return m}).join("").match(Ge).map(m=>{if(m==="''")return{isToken:!1,value:"'"};const l=m[0];if(l==="'")return{isToken:!1,value:Je(m)};if(R[l])return{isToken:!0,value:m};if(l.match(Ue))throw new RangeError("Format string contains an unescaped latin alphabet character `"+l+"`");return{isToken:!1,value:m}});a.localize.preprocessor&&(i=a.localize.preprocessor(u,i));const d={firstWeekContainsDate:o,weekStartsOn:c,locale:a};return i.map(m=>{if(!m.isToken)return m.value;const l=m.value;(He(l)||Ie(l))&&qe(l,t,String(e));const C=R[l[0]];return C(u,l,a.localize,d)}).join("")}function Je(e){const t=e.match(Xe);return t?t[1].replace(Qe,"'"):e}function $e(){return{formatDateBy:(n,r={})=>{if(isNaN(n))return null;try{return new Date(n*1e3).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric",weekday:"short",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1,...r})}catch{return null}},formatUnixToDate:(n,r)=>{if(!n)return"";const a=r?"yyyy-MM-dd HH:mm:ss":"yyyy-MM-dd HH:mm:ss XX";try{const o=new Date(n*1e3);return Ve(o,a)}catch{return""}}}}function Ke(){return{debounce:(t,n)=>{let r;return(...a)=>{clearTimeout(r),r=window==null?void 0:window.setTimeout(()=>{t(...a)},n)}}}}function ze({script:e,styles:t,onReady:n}){const r=y.ref(!0),a=y.ref(!0),o=async()=>{const{libName:i,url:d,type:f}=e;if((f!==void 0&&["umd","es"].includes(f)?f:"umd")==="es"){await import(d),typeof n=="function"&&await n();return}const h=i.startsWith("kong-ui-")?i:`kong-ui-${i}`;return window[h]||(window[h]=await new Promise((b,m)=>{const l=document.createElement("script");l.async=!0,l.addEventListener("load",async()=>{typeof n=="function"&&await n(),r.value=!1,b(window[h])}),l.addEventListener("error",()=>{m(new Error(`Could not load '${h}' from ${d}`))}),l.src=d,document.head.appendChild(l)})),window[h]},c=async(i,d)=>{var f;for(const w of i){const h=document.createElement("link");h.type="text/css",h.rel="stylesheet",h.href=w;const b=d?document.querySelector(d):null,m=d?(f=b==null?void 0:b.shadowRoot)==null?void 0:f.children[0]:null;if(b&&m)try{m.appendChild(h)}catch{document.head.appendChild(h)}else document.head.appendChild(h)}};return{importPackage:async()=>{var d,f;if(!e||!e.url||typeof window>"u"||typeof document>"u")return;const i=y.computed(()=>!!(t&&(t!=null&&t.urls)&&(t!=null&&t.urls.length)&&t.shadowRoot));if((!t||!(t!=null&&t.urls)||!((d=t==null?void 0:t.urls)!=null&&d.length))&&(a.value=!1),t!=null&&t.urls&&((f=t==null?void 0:t.urls)!=null&&f.length)&&!i.value&&(await c(t.urls),a.value=!1),(!e.type||e.type==="umd")&&!i.value)return await o();await o(),await y.nextTick(),r.value=!1,t!=null&&t.urls&&i.value&&(await c(t.urls,t==null?void 0:t.shadowRoot),await y.nextTick(),a.value=!1)},loadingPackage:y.readonly(r),loadingStyles:y.readonly(a)}}var G=(e=>(e.VALIDATING="VALIDATING",e.VALIDATING_HAS_DATA="VALIDATING_HAS_DATA",e.PENDING="PENDING",e.SUCCESS="SUCCESS",e.SUCCESS_HAS_DATA="SUCCESS_HAS_DATA",e.ERROR="ERROR",e.STALE_IF_ERROR="STALE_IF_ERROR",e))(G||{});const Ze=e=>{var t,n,r,a,o;return e?!!((t=Object.keys(e))!=null&&t.length||(n=e.data)!=null&&n.length||(a=(r=e.data)==null?void 0:r.data)!=null&&a.length||!((o=e.data)!=null&&o.data)&&typeof e.data=="object"&&Object.keys(e==null?void 0:e.data).length):!1};function et(e=y.ref({}),t,n,r=Ze){const a=y.ref("PENDING");return y.watchEffect(()=>{const o=r(e.value);if(e.value&&o&&n.value){a.value="VALIDATING_HAS_DATA";return}if(e.value&&n.value){a.value="VALIDATING";return}if(e.value&&t.value){a.value="STALE_IF_ERROR";return}if(e.value===void 0&&!t.value){a.value="PENDING";return}if(e.value&&!t.value&&o){a.value="SUCCESS_HAS_DATA";return}if(e.value&&!t.value){a.value="SUCCESS";return}e.value===void 0&&t&&(a.value="ERROR")}),{state:a,swrvState:G}}const W="khcp-user-table-preferences",B={pageSize:30,sortColumnKey:void 0,sortColumnOrder:void 0,columnVisibility:{}};function tt(){const e=o=>{if(typeof o=="string")try{return JSON.parse(o)}catch(c){console.error("useTablePreferences(tryParseJson)",c);return}},t=()=>{const o=e(localStorage.getItem(W));return!o||!Object.keys(o).length?new Map:new Map(Object.entries(o))};return{setTablePreferences:(o,c)=>{try{const u=t();u.set(o,c),localStorage.setItem(W,JSON.stringify(Object.fromEntries(u.entries())))}catch(u){console.error("useTablePreferences(setTablePreferences)",u)}},getTablePreferences:(o,c)=>{const u=t();return(u==null?void 0:u.get(o))||void 0||c||B},deleteAllTablePreferences:()=>{localStorage.removeItem(W)}}}function nt(){const e=()=>{var i;return((i=window==null?void 0:window.location)==null?void 0:i.search)||""};return{getLocationSearch:e,getLocationHostname:()=>{var i;return((i=window==null?void 0:window.location)==null?void 0:i.hostname)||""},getLocationHref:()=>{var i;return((i=window==null?void 0:window.location)==null?void 0:i.href)||""},getLocationPathname:()=>{var i;return((i=window==null?void 0:window.location)==null?void 0:i.pathname)||""},getLocationOrigin:()=>{var i;return((i=window==null?void 0:window.location)==null?void 0:i.origin)||""},getUrlSearchParams:()=>new URLSearchParams(e()),setLocationAssign:i=>{window.location.assign(i)},setLocationReplace:i=>{window.location.replace(i)}}}g.DEFAULT_USER_TABLE_PREFERENCES=B,g.USER_TABLE_PREFERENCES_LOCAL_STORAGE_KEY=W,g.useAxios=X,g.useDate=$e,g.useDebounce=Ke,g.usePackage=ze,g.useSwrvState=et,g.useTablePreferences=tt,g.useWindow=nt,Object.defineProperty(g,Symbol.toStringTag,{value:"Module"})});
1
+ (function(g,T){typeof exports=="object"&&typeof module<"u"?T(exports,require("axios"),require("vue")):typeof define=="function"&&define.amd?define(["exports","axios","vue"],T):(g=typeof globalThis<"u"?globalThis:g||self,T(g["kong-ui-core"]={},g.axios,g.Vue))})(this,function(g,T,y){"use strict";function Q(){return{getAxiosInstance:(n={})=>{try{const r=y.inject("get-axios-instance",void 0);return typeof r=="function"?r(n):T.create({withCredentials:!0,timeout:3e4,...n})}catch(r){return console.warn("getAxiosInstance:",r.message||r),T.create({withCredentials:!0,timeout:3e4,...n})}},getTraceIdFromError:n=>{var r;return((r=n==null?void 0:n.response)==null?void 0:r.headers["x-datadog-trace-id"])||""}}}const L=6048e5,U=864e5,F=Symbol.for("constructDateFrom");function S(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&F in t?t[F](e):t instanceof Date?new t.constructor(e):new Date(e)}function P(t,e){return S(e||t,t)}let V={};function x(){return V}function E(t,e){var c,o,d,f;const n=x(),r=(e==null?void 0:e.weekStartsOn)??((o=(c=e==null?void 0:e.locale)==null?void 0:c.options)==null?void 0:o.weekStartsOn)??n.weekStartsOn??((f=(d=n.locale)==null?void 0:d.options)==null?void 0:f.weekStartsOn)??0,a=P(t,e==null?void 0:e.in),i=a.getDay(),u=(i<r?7:0)+i-r;return a.setDate(a.getDate()-u),a.setHours(0,0,0,0),a}function W(t,e){return E(t,{...e,weekStartsOn:1})}function _(t,e){const n=P(t,e==null?void 0:e.in),r=n.getFullYear(),a=S(n,0);a.setFullYear(r+1,0,4),a.setHours(0,0,0,0);const i=W(a),u=S(n,0);u.setFullYear(r,0,4),u.setHours(0,0,0,0);const c=W(u);return n.getTime()>=i.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function N(t){const e=P(t),n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),+t-+n}function J(t,...e){const n=S.bind(null,e.find(r=>typeof r=="object"));return e.map(n)}function R(t,e){const n=P(t,e==null?void 0:e.in);return n.setHours(0,0,0,0),n}function $(t,e,n){const[r,a]=J(n==null?void 0:n.in,t,e),i=R(r),u=R(a),c=+i-N(i),o=+u-N(u);return Math.round((c-o)/U)}function z(t,e){const n=_(t,e),r=S(t,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),W(r)}function K(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function Z(t){return!(!K(t)&&typeof t!="number"||isNaN(+P(t)))}function ee(t,e){const n=P(t,e==null?void 0:e.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const te={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},ne=(t,e,n)=>{let r;const a=te[t];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};function C(t){return(e={})=>{const n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}const re={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},ae={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},ie={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},oe={date:C({formats:re,defaultWidth:"full"}),time:C({formats:ae,defaultWidth:"full"}),dateTime:C({formats:ie,defaultWidth:"full"})},ue={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},ce=(t,e,n,r)=>ue[t];function M(t){return(e,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let a;if(r==="formatting"&&t.formattingValues){const u=t.defaultFormattingWidth||t.defaultWidth,c=n!=null&&n.width?String(n.width):u;a=t.formattingValues[c]||t.formattingValues[u]}else{const u=t.defaultWidth,c=n!=null&&n.width?String(n.width):t.defaultWidth;a=t.values[c]||t.values[u]}const i=t.argumentCallback?t.argumentCallback(e):e;return a[i]}}const se={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},de={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},fe={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},le={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},he={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},me={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},ge={ordinalNumber:(t,e)=>{const n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:M({values:se,defaultWidth:"wide"}),quarter:M({values:de,defaultWidth:"wide",argumentCallback:t=>t-1}),month:M({values:fe,defaultWidth:"wide"}),day:M({values:le,defaultWidth:"wide"}),dayPeriod:M({values:he,defaultWidth:"wide",formattingValues:me,defaultFormattingWidth:"wide"})};function k(t){return(e,n={})=>{const r=n.width,a=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],i=e.match(a);if(!i)return null;const u=i[0],c=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],o=Array.isArray(c)?be(c,w=>w.test(u)):we(c,w=>w.test(u));let d;d=t.valueCallback?t.valueCallback(o):o,d=n.valueCallback?n.valueCallback(d):d;const f=e.slice(u.length);return{value:d,rest:f}}}function we(t,e){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return n}function be(t,e){for(let n=0;n<t.length;n++)if(e(t[n]))return n}function ye(t){return(e,n={})=>{const r=e.match(t.matchPattern);if(!r)return null;const a=r[0],i=e.match(t.parsePattern);if(!i)return null;let u=t.valueCallback?t.valueCallback(i[0]):i[0];u=n.valueCallback?n.valueCallback(u):u;const c=e.slice(a.length);return{value:u,rest:c}}}const Pe=/^(\d+)(th|st|nd|rd)?/i,Se=/\d+/i,Oe={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},ve={any:[/^b/i,/^(a|c)/i]},Te={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},De={any:[/1/i,/2/i,/3/i,/4/i]},Ee={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Me={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],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]},ke={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},xe={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},We={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Ae={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Ce={ordinalNumber:ye({matchPattern:Pe,parsePattern:Se,valueCallback:t=>parseInt(t,10)}),era:k({matchPatterns:Oe,defaultMatchWidth:"wide",parsePatterns:ve,defaultParseWidth:"any"}),quarter:k({matchPatterns:Te,defaultMatchWidth:"wide",parsePatterns:De,defaultParseWidth:"any",valueCallback:t=>t+1}),month:k({matchPatterns:Ee,defaultMatchWidth:"wide",parsePatterns:Me,defaultParseWidth:"any"}),day:k({matchPatterns:ke,defaultMatchWidth:"wide",parsePatterns:xe,defaultParseWidth:"any"}),dayPeriod:k({matchPatterns:We,defaultMatchWidth:"any",parsePatterns:Ae,defaultParseWidth:"any"})},Ye={code:"en-US",formatDistance:ne,formatLong:oe,formatRelative:ce,localize:ge,match:Ce,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Le(t,e){const n=P(t,e==null?void 0:e.in);return $(n,ee(n))+1}function Fe(t,e){const n=P(t,e==null?void 0:e.in),r=+W(n)-+z(n);return Math.round(r/L)+1}function I(t,e){var f,w,h,b;const n=P(t,e==null?void 0:e.in),r=n.getFullYear(),a=x(),i=(e==null?void 0:e.firstWeekContainsDate)??((w=(f=e==null?void 0:e.locale)==null?void 0:f.options)==null?void 0:w.firstWeekContainsDate)??a.firstWeekContainsDate??((b=(h=a.locale)==null?void 0:h.options)==null?void 0:b.firstWeekContainsDate)??1,u=S((e==null?void 0:e.in)||t,0);u.setFullYear(r+1,0,i),u.setHours(0,0,0,0);const c=E(u,e),o=S((e==null?void 0:e.in)||t,0);o.setFullYear(r,0,i),o.setHours(0,0,0,0);const d=E(o,e);return+n>=+c?r+1:+n>=+d?r:r-1}function _e(t,e){var c,o,d,f;const n=x(),r=(e==null?void 0:e.firstWeekContainsDate)??((o=(c=e==null?void 0:e.locale)==null?void 0:c.options)==null?void 0:o.firstWeekContainsDate)??n.firstWeekContainsDate??((f=(d=n.locale)==null?void 0:d.options)==null?void 0:f.firstWeekContainsDate)??1,a=I(t,e),i=S((e==null?void 0:e.in)||t,0);return i.setFullYear(a,0,r),i.setHours(0,0,0,0),E(i,e)}function Ne(t,e){const n=P(t,e==null?void 0:e.in),r=+E(n,e)-+_e(n,e);return Math.round(r/L)+1}function s(t,e){const n=t<0?"-":"",r=Math.abs(t).toString().padStart(e,"0");return n+r}const O={y(t,e){const n=t.getFullYear(),r=n>0?n:1-n;return s(e==="yy"?r%100:r,e.length)},M(t,e){const n=t.getMonth();return e==="M"?String(n+1):s(n+1,2)},d(t,e){return s(t.getDate(),e.length)},a(t,e){const n=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(t,e){return s(t.getHours()%12||12,e.length)},H(t,e){return s(t.getHours(),e.length)},m(t,e){return s(t.getMinutes(),e.length)},s(t,e){return s(t.getSeconds(),e.length)},S(t,e){const n=e.length,r=t.getMilliseconds(),a=Math.trunc(r*Math.pow(10,n-3));return s(a,e.length)}},D={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},H={G:function(t,e,n){const r=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(t,e,n){if(e==="yo"){const r=t.getFullYear(),a=r>0?r:1-r;return n.ordinalNumber(a,{unit:"year"})}return O.y(t,e)},Y:function(t,e,n,r){const a=I(t,r),i=a>0?a:1-a;if(e==="YY"){const u=i%100;return s(u,2)}return e==="Yo"?n.ordinalNumber(i,{unit:"year"}):s(i,e.length)},R:function(t,e){const n=_(t);return s(n,e.length)},u:function(t,e){const n=t.getFullYear();return s(n,e.length)},Q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return s(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,n){const r=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return s(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,n){const r=t.getMonth();switch(e){case"M":case"MM":return O.M(t,e);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,n){const r=t.getMonth();switch(e){case"L":return String(r+1);case"LL":return s(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,n,r){const a=Ne(t,r);return e==="wo"?n.ordinalNumber(a,{unit:"week"}):s(a,e.length)},I:function(t,e,n){const r=Fe(t);return e==="Io"?n.ordinalNumber(r,{unit:"week"}):s(r,e.length)},d:function(t,e,n){return e==="do"?n.ordinalNumber(t.getDate(),{unit:"date"}):O.d(t,e)},D:function(t,e,n){const r=Le(t);return e==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):s(r,e.length)},E:function(t,e,n){const r=t.getDay();switch(e){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,n,r){const a=t.getDay(),i=(a-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(i);case"ee":return s(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});case"eeee":default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(t,e,n,r){const a=t.getDay(),i=(a-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(i);case"cc":return s(i,e.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});case"cccc":default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(t,e,n){const r=t.getDay(),a=r===0?7:r;switch(e){case"i":return String(a);case"ii":return s(a,e.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,n){const a=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(t,e,n){const r=t.getHours();let a;switch(r===12?a=D.noon:r===0?a=D.midnight:a=r/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(t,e,n){const r=t.getHours();let a;switch(r>=17?a=D.evening:r>=12?a=D.afternoon:r>=4?a=D.morning:a=D.night,e){case"B":case"BB":case"BBB":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(t,e,n){if(e==="ho"){let r=t.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return O.h(t,e)},H:function(t,e,n){return e==="Ho"?n.ordinalNumber(t.getHours(),{unit:"hour"}):O.H(t,e)},K:function(t,e,n){const r=t.getHours()%12;return e==="Ko"?n.ordinalNumber(r,{unit:"hour"}):s(r,e.length)},k:function(t,e,n){let r=t.getHours();return r===0&&(r=24),e==="ko"?n.ordinalNumber(r,{unit:"hour"}):s(r,e.length)},m:function(t,e,n){return e==="mo"?n.ordinalNumber(t.getMinutes(),{unit:"minute"}):O.m(t,e)},s:function(t,e,n){return e==="so"?n.ordinalNumber(t.getSeconds(),{unit:"second"}):O.s(t,e)},S:function(t,e){return O.S(t,e)},X:function(t,e,n){const r=t.getTimezoneOffset();if(r===0)return"Z";switch(e){case"X":return G(r);case"XXXX":case"XX":return v(r);case"XXXXX":case"XXX":default:return v(r,":")}},x:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"x":return G(r);case"xxxx":case"xx":return v(r);case"xxxxx":case"xxx":default:return v(r,":")}},O:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+q(r,":");case"OOOO":default:return"GMT"+v(r,":")}},z:function(t,e,n){const r=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+q(r,":");case"zzzz":default:return"GMT"+v(r,":")}},t:function(t,e,n){const r=Math.trunc(+t/1e3);return s(r,e.length)},T:function(t,e,n){return s(+t,e.length)}};function q(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),a=Math.trunc(r/60),i=r%60;return i===0?n+String(a):n+String(a)+e+s(i,2)}function G(t,e){return t%60===0?(t>0?"-":"+")+s(Math.abs(t)/60,2):v(t,e)}function v(t,e=""){const n=t>0?"-":"+",r=Math.abs(t),a=s(Math.trunc(r/60),2),i=s(r%60,2);return n+a+e+i}const p=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},j=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},Re={p:j,P:(t,e)=>{const n=t.match(/(P+)(p+)?/)||[],r=n[1],a=n[2];if(!a)return p(t,e);let i;switch(r){case"P":i=e.dateTime({width:"short"});break;case"PP":i=e.dateTime({width:"medium"});break;case"PPP":i=e.dateTime({width:"long"});break;case"PPPP":default:i=e.dateTime({width:"full"});break}return i.replace("{{date}}",p(r,e)).replace("{{time}}",j(a,e))}},Ie=/^D+$/,He=/^Y+$/,qe=["D","DD","YY","YYYY"];function Ge(t){return Ie.test(t)}function pe(t){return He.test(t)}function je(t,e,n){const r=Be(t,e,n);if(console.warn(r),qe.includes(t))throw new RangeError(r)}function Be(t,e,n){const r=t[0]==="Y"?"years":"days of the month";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`}const Xe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Qe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ue=/^'([^]*?)'?$/,Ve=/''/g,Je=/[a-zA-Z]/;function $e(t,e,n){var f,w,h,b;const r=x(),a=r.locale??Ye,i=r.firstWeekContainsDate??((w=(f=r.locale)==null?void 0:f.options)==null?void 0:w.firstWeekContainsDate)??1,u=r.weekStartsOn??((b=(h=r.locale)==null?void 0:h.options)==null?void 0:b.weekStartsOn)??0,c=P(t,n==null?void 0:n.in);if(!Z(c))throw new RangeError("Invalid time value");let o=e.match(Qe).map(m=>{const l=m[0];if(l==="p"||l==="P"){const Y=Re[l];return Y(m,a.formatLong)}return m}).join("").match(Xe).map(m=>{if(m==="''")return{isToken:!1,value:"'"};const l=m[0];if(l==="'")return{isToken:!1,value:ze(m)};if(H[l])return{isToken:!0,value:m};if(l.match(Je))throw new RangeError("Format string contains an unescaped latin alphabet character `"+l+"`");return{isToken:!1,value:m}});a.localize.preprocessor&&(o=a.localize.preprocessor(c,o));const d={firstWeekContainsDate:i,weekStartsOn:u,locale:a};return o.map(m=>{if(!m.isToken)return m.value;const l=m.value;(pe(l)||Ge(l))&&je(l,e,String(t));const Y=H[l[0]];return Y(c,l,a.localize,d)}).join("")}function ze(t){const e=t.match(Ue);return e?e[1].replace(Ve,"'"):t}function Ke(){return{formatDateBy:(n,r={})=>{if(isNaN(n))return null;try{return new Date(n*1e3).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric",weekday:"short",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1,...r})}catch{return null}},formatUnixToDate:(n,r)=>{if(!n)return"";const a=r?"yyyy-MM-dd HH:mm:ss":"yyyy-MM-dd HH:mm:ss XX";try{const i=new Date(n*1e3);return $e(i,a)}catch{return""}}}}function Ze(){return{debounce:(e,n)=>{let r;return(...a)=>{clearTimeout(r),r=window==null?void 0:window.setTimeout(()=>{e(...a)},n)}}}}function et({script:t,styles:e,onReady:n}){const r=y.ref(!0),a=y.ref(!0),i=async()=>{const{libName:o,url:d,type:f}=t;if((f!==void 0&&["umd","es"].includes(f)?f:"umd")==="es"){await import(d),typeof n=="function"&&await n();return}const h=o.startsWith("kong-ui-")?o:`kong-ui-${o}`;return window[h]||(window[h]=await new Promise((b,m)=>{const l=document.createElement("script");l.async=!0,l.addEventListener("load",async()=>{typeof n=="function"&&await n(),r.value=!1,b(window[h])}),l.addEventListener("error",()=>{m(new Error(`Could not load '${h}' from ${d}`))}),l.src=d,document.head.appendChild(l)})),window[h]},u=async(o,d)=>{var f;for(const w of o){const h=document.createElement("link");h.type="text/css",h.rel="stylesheet",h.href=w;const b=d?document.querySelector(d):null,m=d?(f=b==null?void 0:b.shadowRoot)==null?void 0:f.children[0]:null;if(b&&m)try{m.appendChild(h)}catch{document.head.appendChild(h)}else document.head.appendChild(h)}};return{importPackage:async()=>{var d,f;if(!t||!t.url||typeof window>"u"||typeof document>"u")return;const o=y.computed(()=>!!(e&&(e!=null&&e.urls)&&(e!=null&&e.urls.length)&&e.shadowRoot));if((!e||!(e!=null&&e.urls)||!((d=e==null?void 0:e.urls)!=null&&d.length))&&(a.value=!1),e!=null&&e.urls&&((f=e==null?void 0:e.urls)!=null&&f.length)&&!o.value&&(await u(e.urls),a.value=!1),(!t.type||t.type==="umd")&&!o.value)return await i();await i(),await y.nextTick(),r.value=!1,e!=null&&e.urls&&o.value&&(await u(e.urls,e==null?void 0:e.shadowRoot),await y.nextTick(),a.value=!1)},loadingPackage:y.readonly(r),loadingStyles:y.readonly(a)}}var B=(t=>(t.VALIDATING="VALIDATING",t.VALIDATING_HAS_DATA="VALIDATING_HAS_DATA",t.PENDING="PENDING",t.SUCCESS="SUCCESS",t.SUCCESS_HAS_DATA="SUCCESS_HAS_DATA",t.ERROR="ERROR",t.STALE_IF_ERROR="STALE_IF_ERROR",t))(B||{});const tt=t=>{var e,n,r,a,i;return t?!!((e=Object.keys(t))!=null&&e.length||(n=t.data)!=null&&n.length||(a=(r=t.data)==null?void 0:r.data)!=null&&a.length||!((i=t.data)!=null&&i.data)&&typeof t.data=="object"&&Object.keys(t==null?void 0:t.data).length):!1};function nt(t=y.ref({}),e,n,r=tt){const a=y.ref("PENDING");return y.watchEffect(()=>{const i=r(t.value);if(t.value&&i&&n.value){a.value="VALIDATING_HAS_DATA";return}if(t.value&&n.value){a.value="VALIDATING";return}if(t.value&&e.value){a.value="STALE_IF_ERROR";return}if(t.value===void 0&&!e.value){a.value="PENDING";return}if(t.value&&!e.value&&i){a.value="SUCCESS_HAS_DATA";return}if(t.value&&!e.value){a.value="SUCCESS";return}t.value===void 0&&e&&(a.value="ERROR")}),{state:a,swrvState:B}}const A="khcp-user-table-preferences",X={pageSize:30,sortColumnKey:void 0,sortColumnOrder:void 0,columnWidths:{},columnVisibility:{}};function rt(){const t=i=>{if(typeof i=="string")try{return JSON.parse(i)}catch(u){console.error("useTablePreferences(tryParseJson)",u);return}},e=()=>{const i=t(localStorage.getItem(A));return!i||!Object.keys(i).length?new Map:new Map(Object.entries(i))};return{setTablePreferences:(i,u)=>{try{const c=e();c.set(i,u),localStorage.setItem(A,JSON.stringify(Object.fromEntries(c.entries())))}catch(c){console.error("useTablePreferences(setTablePreferences)",c)}},getTablePreferences:(i,u)=>{const c=e();return(c==null?void 0:c.get(i))||void 0||u||X},deleteAllTablePreferences:()=>{localStorage.removeItem(A)}}}function at(){const t=()=>{var o;return((o=window==null?void 0:window.location)==null?void 0:o.search)||""};return{getLocationSearch:t,getLocationHostname:()=>{var o;return((o=window==null?void 0:window.location)==null?void 0:o.hostname)||""},getLocationHref:()=>{var o;return((o=window==null?void 0:window.location)==null?void 0:o.href)||""},getLocationPathname:()=>{var o;return((o=window==null?void 0:window.location)==null?void 0:o.pathname)||""},getLocationOrigin:()=>{var o;return((o=window==null?void 0:window.location)==null?void 0:o.origin)||""},getUrlSearchParams:()=>new URLSearchParams(t()),setLocationAssign:o=>{window.location.assign(o)},setLocationReplace:o=>{window.location.replace(o)}}}g.DEFAULT_USER_TABLE_PREFERENCES=X,g.USER_TABLE_PREFERENCES_LOCAL_STORAGE_KEY=A,g.useAxios=Q,g.useDate=Ke,g.useDebounce=Ze,g.usePackage=et,g.useSwrvState=nt,g.useTablePreferences=rt,g.useWindow=at,Object.defineProperty(g,Symbol.toStringTag,{value:"Module"})});
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AAEzD,2DAA2D;AAC3D,eAAO,MAAM,wCAAwC,gCAAgC,CAAA;AAErF,eAAO,MAAM,8BAA8B,EAAE,gBAK5C,CAAA"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AAEzD,2DAA2D;AAC3D,eAAO,MAAM,wCAAwC,gCAAgC,CAAA;AAErF,eAAO,MAAM,8BAA8B,EAAE,gBAM5C,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kong-ui-public/core",
3
- "version": "1.10.2-pr.1660.f7b54845b.0",
3
+ "version": "1.10.2",
4
4
  "type": "module",
5
5
  "main": "./dist/core.umd.js",
6
6
  "module": "./dist/core.es.js",
@@ -40,7 +40,7 @@
40
40
  "vue": "^3.4.38"
41
41
  },
42
42
  "dependencies": {
43
- "date-fns": "^3.6.0"
43
+ "date-fns": "^4.1.0"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@kong/design-tokens": "1.17.2",