@kong-ui-public/entities-shared 3.1.4 → 3.1.5-pr.1382.b1312b14.0

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.
@@ -1,4 +1,4 @@
1
- import { inject as Fn, ref as K, unref as E, computed as A, watch as Ae, defineComponent as H, openBlock as m, createBlock as M, resolveDynamicComponent as pe, normalizeClass as de, withCtx as x, createElementBlock as I, createElementVNode as L, toDisplayString as O, createCommentVNode as D, Fragment as se, renderList as ae, resolveComponent as B, createVNode as R, createTextVNode as V, useCssVars as $t, useSlots as Xe, renderSlot as Y, createSlots as ke, normalizeProps as On, guardReactiveProps as $n, mergeProps as Ln, normalizeStyle as Oe, pushScopeId as $e, popScopeId as Le, onBeforeMount as Lt, withModifiers as ze, onMounted as Nn, onUnmounted as Rn, withDirectives as me, vShow as ge, withKeys as Bn, Teleport as Kn } from "vue";
1
+ import { inject as Fn, ref as B, unref as E, computed as w, watch as Ae, defineComponent as H, openBlock as g, createBlock as M, resolveDynamicComponent as pe, normalizeClass as de, withCtx as b, createElementBlock as I, createElementVNode as L, toDisplayString as $, createCommentVNode as U, Fragment as se, renderList as ae, resolveComponent as K, createVNode as R, createTextVNode as Y, useCssVars as $t, useSlots as et, renderSlot as z, createSlots as ke, normalizeProps as On, guardReactiveProps as $n, mergeProps as Ln, normalizeStyle as $e, pushScopeId as Le, popScopeId as Ne, onBeforeMount as Lt, withModifiers as We, onMounted as Nn, onUnmounted as Rn, withDirectives as he, vShow as me, withKeys as Bn, Teleport as Kn } from "vue";
2
2
  import st from "axios";
3
3
  import { createI18n as Mn, i18nTComponent as Dn } from "@kong-ui-public/i18n";
4
4
  import { BadgeMethodAppearances as Un } from "@kong/kongponents";
@@ -40,10 +40,12 @@ function Vn() {
40
40
  }
41
41
  };
42
42
  }
43
- const Pe = "khcp-user-table-preferences", Yn = {
43
+ const He = "khcp-user-table-preferences", Yn = {
44
44
  pageSize: 30,
45
45
  sortColumnKey: void 0,
46
- sortColumnOrder: void 0
46
+ sortColumnOrder: void 0,
47
+ columnWidths: {},
48
+ columnVisibility: {}
47
49
  };
48
50
  function zn() {
49
51
  const e = (n) => {
@@ -55,14 +57,14 @@ function zn() {
55
57
  return;
56
58
  }
57
59
  }, t = () => {
58
- const n = e(localStorage.getItem(Pe));
60
+ const n = e(localStorage.getItem(He));
59
61
  return !n || !Object.keys(n).length ? /* @__PURE__ */ new Map() : new Map(Object.entries(n));
60
62
  };
61
63
  return {
62
64
  setTablePreferences: (n, r) => {
63
65
  try {
64
66
  const i = t();
65
- i.set(n, r), localStorage.setItem(Pe, JSON.stringify(Object.fromEntries(i.entries())));
67
+ i.set(n, r), localStorage.setItem(He, JSON.stringify(Object.fromEntries(i.entries())));
66
68
  } catch (i) {
67
69
  console.error("useTablePreferences(setTablePreferences)", i);
68
70
  }
@@ -72,11 +74,11 @@ function zn() {
72
74
  return (r == null ? void 0 : r.get(n)) || void 0 || Yn;
73
75
  },
74
76
  deleteAllTablePreferences: () => {
75
- localStorage.removeItem(Pe);
77
+ localStorage.removeItem(He);
76
78
  }
77
79
  };
78
80
  }
79
- function et(e = {}) {
81
+ function tt(e = {}) {
80
82
  const { getAxiosInstance: t } = Hn();
81
83
  return {
82
84
  axiosInstance: t(e)
@@ -190,7 +192,7 @@ const Wn = {
190
192
  validationErrors: nr,
191
193
  toggleModal: rr
192
194
  };
193
- function je() {
195
+ function qe() {
194
196
  const e = Mn("en-us", ir);
195
197
  return {
196
198
  i18n: e,
@@ -247,85 +249,85 @@ function ar(e, t, n, r = {
247
249
  searchKeys: ["id"]
248
250
  }) {
249
251
  n || (n = "1000");
250
- const { axiosInstance: i } = et(e.axiosRequestConfig), { i18n: { t: a } } = je(), { debounce: o } = Vn(), l = o(async (p) => {
251
- await Z(p);
252
- }, 200), s = K(!1), u = K(""), d = K(""), c = K([]), h = K([]), f = K(void 0), v = E(t);
253
- let b = `${e.apiBaseUrl}${v}`;
254
- e.app === "konnect" ? b = b.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (b = b.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
252
+ const { axiosInstance: i } = tt(e.axiosRequestConfig), { i18n: { t: a } } = qe(), { debounce: o } = Vn(), l = o(async (h) => {
253
+ await Z(h);
254
+ }, 200), s = B(!1), u = B(""), d = B(""), c = B([]), m = B([]), p = B(void 0), y = E(t);
255
+ let v = `${e.apiBaseUrl}${y}`;
256
+ e.app === "konnect" ? v = v.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (v = v.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
255
257
  const { isValidUuid: _ } = Nt(), N = async () => {
256
258
  try {
257
259
  s.value = !0;
258
- const { data: p } = await i.get(`${b}?size=${n}`);
259
- p != null && p.next || (f.value = r.fetchedItemsKey in p ? p[r.fetchedItemsKey] : []), h.value = r.fetchedItemsKey in p ? p[r.fetchedItemsKey] : [], c.value = h.value;
260
+ const { data: h } = await i.get(`${v}?size=${n}`);
261
+ h != null && h.next || (p.value = r.fetchedItemsKey in h ? h[r.fetchedItemsKey] : []), m.value = r.fetchedItemsKey in h ? h[r.fetchedItemsKey] : [], c.value = m.value;
260
262
  } catch {
261
263
  c.value = [], u.value = a("debouncedFilter.errors.fetch");
262
264
  } finally {
263
265
  s.value = !1;
264
266
  }
265
- }, k = K(""), Z = async (p) => {
266
- var y, g, $;
267
- if (k.value !== p)
268
- if (k.value = p || "", f.value === void 0)
267
+ }, k = B(""), Z = async (h) => {
268
+ var A, f, S;
269
+ if (k.value !== h)
270
+ if (k.value = h || "", p.value === void 0)
269
271
  try {
270
272
  if (s.value = !0, u.value = "", d.value = "", e.app === "konnect") {
271
- let F = b + "";
272
- p && (F += `/${p}`);
273
- const { data: w } = await i.get(`${F}?size=${n}`);
274
- r.fetchedItemsKey in w ? c.value = w[r.fetchedItemsKey] : w != null && w.id ? c.value = [w] : c.value = [];
275
- } else if (p) {
276
- const F = [];
277
- _(p) && r.searchKeys.includes("id") ? F.push((async () => {
278
- const { data: T } = await i.get(`${b}/${p}`);
273
+ let O = v + "";
274
+ h && (O += `/${h}`);
275
+ const { data: x } = await i.get(`${O}?size=${n}`);
276
+ r.fetchedItemsKey in x ? c.value = x[r.fetchedItemsKey] : x != null && x.id ? c.value = [x] : c.value = [];
277
+ } else if (h) {
278
+ const O = [];
279
+ _(h) && r.searchKeys.includes("id") ? O.push((async () => {
280
+ const { data: T } = await i.get(`${v}/${h}`);
279
281
  return [T[r.fetchedItemsKey] ?? T];
280
- })()) : F.push(
282
+ })()) : O.push(
281
283
  ...r.searchKeys.filter((T) => T !== "id").map(async (T) => {
282
- const { data: S } = await i.get(`${b}?${T}=${p}`);
283
- return S[r.fetchedItemsKey];
284
+ const { data: F } = await i.get(`${v}?${T}=${h}`);
285
+ return F[r.fetchedItemsKey];
284
286
  })
285
287
  );
286
- const w = await Promise.all(F), U = /* @__PURE__ */ new Set();
287
- c.value = [], (y = w == null ? void 0 : w.forEach) == null || y.call(w, (T) => {
288
- var S;
289
- (S = T == null ? void 0 : T.forEach) == null || S.call(T, (j) => {
290
- U.has(j.id) || (U.add(j.id), c.value.push(j));
288
+ const x = await Promise.all(O), j = /* @__PURE__ */ new Set();
289
+ c.value = [], (A = x == null ? void 0 : x.forEach) == null || A.call(x, (T) => {
290
+ var F;
291
+ (F = T == null ? void 0 : T.forEach) == null || F.call(T, (D) => {
292
+ j.has(D.id) || (j.add(D.id), c.value.push(D));
291
293
  });
292
294
  });
293
295
  } else
294
- c.value = h.value;
295
- } catch (F) {
296
- ((g = F == null ? void 0 : F.response) == null ? void 0 : g.status) === 404 ? d.value = a("debouncedFilter.errors.invalid") : (c.value = [], u.value = a("debouncedFilter.errors.fetch"));
296
+ c.value = m.value;
297
+ } catch (O) {
298
+ ((f = O == null ? void 0 : O.response) == null ? void 0 : f.status) === 404 ? d.value = a("debouncedFilter.errors.invalid") : (c.value = [], u.value = a("debouncedFilter.errors.fetch"));
297
299
  } finally {
298
300
  s.value = !1;
299
301
  }
300
302
  else
301
- s.value = !0, d.value = "", p ? (c.value = ($ = f.value) == null ? void 0 : $.filter((F) => {
302
- var U;
303
- let w = !1;
303
+ s.value = !0, d.value = "", h ? (c.value = (S = p.value) == null ? void 0 : S.filter((O) => {
304
+ var j;
305
+ let x = !1;
304
306
  for (const T of r.searchKeys) {
305
- const S = typeof F[T] == "string" ? (U = F[T]) == null ? void 0 : U.toLowerCase() : F[T];
306
- S != null && S.includes(p.toLowerCase()) && (w = !0);
307
+ const F = typeof O[T] == "string" ? (j = O[T]) == null ? void 0 : j.toLowerCase() : O[T];
308
+ F != null && F.includes(h.toLowerCase()) && (x = !0);
307
309
  }
308
- return w;
309
- }), (!c.value || !c.value.length) && (d.value = a("debouncedFilter.errors.invalid"))) : c.value = f.value, s.value = !1;
310
+ return x;
311
+ }), (!c.value || !c.value.length) && (d.value = a("debouncedFilter.errors.invalid"))) : c.value = p.value, s.value = !1;
310
312
  };
311
313
  return {
312
314
  loading: s,
313
315
  error: u,
314
316
  validationError: d,
315
317
  results: c,
316
- allRecords: f,
318
+ allRecords: p,
317
319
  loadItems: N,
318
320
  debouncedQueryChange: l
319
321
  };
320
322
  }
321
323
  function or(e, t) {
322
- const n = E(t), r = A(
324
+ const n = E(t), r = w(
323
325
  () => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${n}`) : new URL(n)
324
326
  );
325
327
  return r.value.search = "", (i) => `${r.value.href}/${i}`;
326
328
  }
327
329
  function lr() {
328
- const { i18n: { t: e } } = je();
330
+ const { i18n: { t: e } } = qe();
329
331
  return {
330
332
  getMessageFromError: (n) => {
331
333
  var r, i, a, o;
@@ -366,25 +368,25 @@ function sr(e) {
366
368
  }
367
369
  }
368
370
  function Rt(e, t) {
369
- const n = K(E(e)), r = K(E(t)), i = A(
371
+ const n = B(E(e)), r = B(E(t)), i = w(
370
372
  () => !!(n.value.app === "konnect" || n.value.isExactMatch)
371
- ), a = A(
373
+ ), a = w(
372
374
  () => r.value.startsWith("/") ? new URL(`${window.location.origin}${r.value}`) : new URL(r.value)
373
375
  );
374
376
  return (o) => {
375
- const { page: l, pageSize: s, offset: u, sortColumnKey: d, sortColumnOrder: c, query: h } = o;
377
+ const { page: l, pageSize: s, offset: u, sortColumnKey: d, sortColumnOrder: c, query: m } = o;
376
378
  try {
377
- let f = new URL(a.value.href);
378
- return i.value && h ? (f.search = "", f = n.value.isExactMatch ? new URL(`${f.href}/${h}/`) : new URL(`${f.href}?filter[name][contains]=${h}`)) : (i.value || new URLSearchParams(h).forEach((v, b) => {
379
- f.searchParams.append(b, v);
380
- }), d && f.searchParams.append("sort_by", d), c === "desc" && f.searchParams.append("sort_desc", "1"), f.searchParams.append("size", String(s))), u && l !== 1 && f.searchParams.append("offset", String(u)), f.href;
381
- } catch (f) {
382
- return console.error("RouteList(fetcher)", f), r.value;
379
+ let p = new URL(a.value.href);
380
+ return i.value && m ? (p.search = "", p = n.value.isExactMatch ? new URL(`${p.href}/${m}/`) : new URL(`${p.href}?filter[name][contains]=${m}`)) : (i.value || new URLSearchParams(m).forEach((y, v) => {
381
+ p.searchParams.append(v, y);
382
+ }), d && p.searchParams.append("sort_by", d), c === "desc" && p.searchParams.append("sort_desc", "1"), p.searchParams.append("size", String(s))), u && l !== 1 && p.searchParams.append("offset", String(u)), p.href;
383
+ } catch (p) {
384
+ return console.error("RouteList(fetcher)", p), r.value;
383
385
  }
384
386
  };
385
387
  }
386
388
  function cr(e, t, n = "data") {
387
- const r = E(t), { axiosInstance: i } = et(e.axiosRequestConfig), a = Rt(e, r), o = K({
389
+ const r = E(t), { axiosInstance: i } = tt(e.axiosRequestConfig), a = Rt(e, r), o = B({
388
390
  status: be.Idle
389
391
  });
390
392
  return { fetcher: async (s) => {
@@ -396,22 +398,22 @@ function cr(e, t, n = "data") {
396
398
  const c = await i.get(d);
397
399
  if (c.status >= 400)
398
400
  throw c;
399
- const h = c.data, f = n && n.replace(/[^\w-_]/gi, "");
400
- let v;
401
- h[f] && Array.isArray(h[f]) ? v = h[f] : Array.isArray(h) ? v = h : v = Object.keys(h).length ? [h] : [];
402
- const b = {
403
- data: v,
404
- total: v.length,
405
- ...h.offset ? {
401
+ const m = c.data, p = n && n.replace(/[^\w-_]/gi, "");
402
+ let y;
403
+ m[p] && Array.isArray(m[p]) ? y = m[p] : Array.isArray(m) ? y = m : y = Object.keys(m).length ? [m] : [];
404
+ const v = {
405
+ data: y,
406
+ total: y.length,
407
+ ...m.offset ? {
406
408
  pagination: {
407
- offset: h.offset
409
+ offset: m.offset
408
410
  }
409
411
  } : null
410
412
  };
411
413
  return o.value = {
412
414
  status: be.Idle,
413
- response: b
414
- }, b;
415
+ response: v
416
+ }, v;
415
417
  } catch (d) {
416
418
  const c = {
417
419
  data: [],
@@ -492,21 +494,21 @@ function gr(e) {
492
494
  return !(o && pt(i, o, "<") || l && pt(i, l, ">"));
493
495
  }
494
496
  function yr(e) {
495
- const t = K(0), n = K(0), r = K(!1);
497
+ const t = B(0), n = B(0), r = B(!1);
496
498
  return Ae(e, (a) => {
497
499
  a && !r.value && (t.value = a.offsetWidth, n.value = a.scrollWidth, r.value = !0);
498
500
  }), {
499
- isTruncated: A(() => t.value < n.value)
501
+ isTruncated: w(() => t.value < n.value)
500
502
  };
501
503
  }
502
504
  function vr() {
503
- const { i18n: { t: e } } = je();
505
+ const { i18n: { t: e } } = qe();
504
506
  return {
505
507
  utf8Name: (n) => /^[\p{N}\p{L}.\-_~]*$/u.test(n) ? "" : e("validationErrors.utf8Name")
506
508
  };
507
509
  }
508
- const z = {
509
- useAxios: et,
510
+ const W = {
511
+ useAxios: tt,
510
512
  useDebouncedFilter: ar,
511
513
  useDeleteUrlBuilder: or,
512
514
  useErrors: lr,
@@ -515,7 +517,7 @@ const z = {
515
517
  useFetchUrlBuilder: Rt,
516
518
  useHelpers: Nt,
517
519
  useStringHelpers: ur,
518
- useI18n: je,
520
+ useI18n: qe,
519
521
  useGatewayFeatureSupported: gr,
520
522
  useTruncationDetector: yr,
521
523
  useValidators: vr
@@ -539,21 +541,21 @@ const z = {
539
541
  }
540
542
  },
541
543
  setup(e) {
542
- const t = e, { i18n: { t: n } } = z.useI18n(), { convertKeyToTitle: r } = z.useStringHelpers(), i = A(() => t.item.key ?? "json-array-item"), a = A(() => t.item.value ?? t.item), o = A(() => {
544
+ const t = e, { i18n: { t: n } } = W.useI18n(), { convertKeyToTitle: r } = W.useStringHelpers(), i = w(() => t.item.key ?? "json-array-item"), a = w(() => t.item.value ?? t.item), o = w(() => {
543
545
  const s = JSON.parse(JSON.stringify(a.value));
544
546
  return t.isArrayItem && delete s.name, s;
545
- }), l = A(() => {
547
+ }), l = w(() => {
546
548
  var s;
547
549
  return t.isArrayItem ? (s = a.value) != null && s.name ? r(a.value.name, "_") : n("baseConfigCard.general.entryTitle", { index: t.index }) : "";
548
550
  });
549
- return (s, u) => (m(), M(pe(e.isArrayItem ? "fieldset" : "div"), {
551
+ return (s, u) => (g(), M(pe(e.isArrayItem ? "fieldset" : "div"), {
550
552
  class: de(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
551
553
  }, {
552
- default: x(() => [
553
- e.isArrayItem ? (m(), I("legend", br, [
554
- L("b", null, O(l.value), 1)
555
- ])) : D("", !0),
556
- (m(!0), I(se, null, ae(Object.keys(o.value), (d, c) => (m(), M(Dt, {
554
+ default: b(() => [
555
+ e.isArrayItem ? (g(), I("legend", br, [
556
+ L("b", null, $(l.value), 1)
557
+ ])) : U("", !0),
558
+ (g(!0), I(se, null, ae(Object.keys(o.value), (d, c) => (g(), M(Dt, {
557
559
  key: `${i.value}-property-${c}`,
558
560
  item: {
559
561
  key: d,
@@ -580,17 +582,17 @@ const z = {
580
582
  },
581
583
  emits: ["navigation-click"],
582
584
  setup(e) {
583
- const { i18n: { t } } = z.useI18n();
585
+ const { i18n: { t } } = W.useI18n();
584
586
  return (n, r) => {
585
- const i = B("KButton");
586
- return m(), I("div", null, [
587
+ const i = K("KButton");
588
+ return g(), I("div", null, [
587
589
  R(i, {
588
590
  appearance: "tertiary",
589
591
  class: "navigation-button",
590
592
  onClick: r[0] || (r[0] = (a) => n.$emit("navigation-click", e.item))
591
593
  }, {
592
- default: x(() => [
593
- V(O(e.item.value || E(t)("baseConfigCard.commonFields.link")), 1)
594
+ default: b(() => [
595
+ Y($(e.item.value || E(t)("baseConfigCard.commonFields.link")), 1)
594
596
  ]),
595
597
  _: 1
596
598
  })
@@ -606,14 +608,14 @@ const z = {
606
608
  }
607
609
  },
608
610
  setup(e) {
609
- const { i18n: { t } } = z.useI18n();
611
+ const { i18n: { t } } = W.useI18n();
610
612
  return (n, r) => {
611
- const i = B("KBadge");
612
- return m(), M(i, {
613
+ const i = K("KBadge");
614
+ return g(), M(i, {
613
615
  appearance: e.status ? "success" : "neutral"
614
616
  }, {
615
- default: x(() => [
616
- V(O(e.status ? E(t)("baseConfigCard.statusBadge.enabledLabel") : E(t)("baseConfigCard.statusBadge.disabledLabel")), 1)
617
+ default: b(() => [
618
+ Y($(e.status ? E(t)("baseConfigCard.statusBadge.enabledLabel") : E(t)("baseConfigCard.statusBadge.disabledLabel")), 1)
617
619
  ]),
618
620
  _: 1
619
621
  }, 8, ["appearance"]);
@@ -642,13 +644,13 @@ const z = {
642
644
  },
643
645
  emits: ["navigation-click"],
644
646
  setup(e, { emit: t }) {
645
- $t((v) => ({
647
+ $t((y) => ({
646
648
  "07753575": d.value ? "none" : `solid ${E(Tr)} ${E(Ar)}`,
647
649
  "32d44ea8": u.value && l.value ? "block" : "flex",
648
650
  "5036b738": u.value && l.value ? "100%" : n.slim ? "50%" : "25%",
649
651
  "5038fd13": u.value && l.value ? "100%" : n.slim ? "50%" : "75%"
650
652
  }));
651
- const n = e, r = t, i = Xe(), { i18n: { t: a, formatUnixTimeStamp: o } } = z.useI18n(), l = A(() => n.item.value !== void 0 && n.item.value !== null && n.item.value !== ""), s = A(() => !!(n.item.tooltip || i["label-tooltip"])), u = A(() => n.item.type === P.Json || n.item.type === P.JsonArray), d = A(() => n.item.type === P.JsonArray), c = A(() => {
653
+ const n = e, r = t, i = et(), { i18n: { t: a, formatUnixTimeStamp: o } } = W.useI18n(), l = w(() => n.item.value !== void 0 && n.item.value !== null && n.item.value !== ""), s = w(() => !!(n.item.tooltip || i["label-tooltip"])), u = w(() => n.item.type === P.Json || n.item.type === P.JsonArray), d = w(() => n.item.type === P.JsonArray), c = w(() => {
652
654
  switch (n.item.type) {
653
655
  case P.ID:
654
656
  return {
@@ -718,8 +720,8 @@ const z = {
718
720
  attrs: {
719
721
  "data-testid": `${n.item.key}-internal-link`,
720
722
  item: n.item,
721
- onNavigationClick: (v) => {
722
- r("navigation-click", v);
723
+ onNavigationClick: (y) => {
724
+ r("navigation-click", y);
723
725
  }
724
726
  }
725
727
  };
@@ -758,29 +760,29 @@ const z = {
758
760
  text: n.item.value
759
761
  };
760
762
  }
761
- }), h = K(), { isTruncated: f } = z.useTruncationDetector(h);
762
- return (v, b) => {
763
- const _ = B("KLabel"), N = B("KBadge"), k = B("KCopy"), Z = B("KTooltip");
764
- return m(), I("div", $r, [
763
+ }), m = B(), { isTruncated: p } = W.useTruncationDetector(m);
764
+ return (y, v) => {
765
+ const _ = K("KLabel"), N = K("KBadge"), k = K("KCopy"), Z = K("KTooltip");
766
+ return g(), I("div", $r, [
765
767
  L("div", {
766
768
  class: "config-card-details-label",
767
769
  "data-testid": `${e.item.key}-label`
768
770
  }, [
769
- Y(v.$slots, "label", { item: e.item }, () => [
771
+ z(y.$slots, "label", { item: e.item }, () => [
770
772
  R(_, { "tooltip-attributes": { maxWidth: "500px" } }, ke({
771
- default: x(() => [
772
- V(O(e.item.label) + " ", 1)
773
+ default: b(() => [
774
+ Y($(e.item.label) + " ", 1)
773
775
  ]),
774
776
  _: 2
775
777
  }, [
776
778
  s.value ? {
777
779
  name: "tooltip",
778
- fn: x(() => [
780
+ fn: b(() => [
779
781
  L("div", {
780
782
  "data-testid": `${e.item.key}-label-tooltip`
781
783
  }, [
782
- Y(v.$slots, "label-tooltip", {}, () => [
783
- V(O(e.item.tooltip), 1)
784
+ z(y.$slots, "label-tooltip", {}, () => [
785
+ Y($(e.item.tooltip), 1)
784
786
  ], !0)
785
787
  ], 8, Nr)
786
788
  ]),
@@ -793,83 +795,83 @@ const z = {
793
795
  class: "config-card-details-value",
794
796
  "data-testid": `${e.item.key}-property-value`
795
797
  }, [
796
- Y(v.$slots, e.item.key, {
798
+ z(y.$slots, e.item.key, {
797
799
  rowValue: e.item.value
798
800
  }, () => [
799
- l.value ? (m(), I("div", Kr, [
800
- (m(), M(pe(c.value.tag), On($n(c.value.attrs)), {
801
- default: x(() => [
802
- c.value.additionalComponent === "KBadge" ? (m(), I("div", {
801
+ l.value ? (g(), I("div", Kr, [
802
+ (g(), M(pe(c.value.tag), On($n(c.value.attrs)), {
803
+ default: b(() => [
804
+ c.value.additionalComponent === "KBadge" ? (g(), I("div", {
803
805
  key: 0,
804
806
  "data-testid": `${e.item.key}-badge-tags`
805
807
  }, [
806
- (m(!0), I(se, null, ae(e.item.value, (p, y) => (m(), M(N, {
807
- key: `${e.item.key}-badge-tag-${y}`,
808
+ (g(!0), I(se, null, ae(e.item.value, (h, A) => (g(), M(N, {
809
+ key: `${e.item.key}-badge-tag-${A}`,
808
810
  class: "config-badge",
809
- "data-testid": `${e.item.key}-badge-tag-${y}`,
810
- tooltip: p,
811
+ "data-testid": `${e.item.key}-badge-tag-${A}`,
812
+ tooltip: h,
811
813
  "truncation-tooltip": ""
812
814
  }, {
813
- default: x(() => [
814
- V(O(p), 1)
815
+ default: b(() => [
816
+ Y($(h), 1)
815
817
  ]),
816
818
  _: 2
817
819
  }, 1032, ["data-testid", "tooltip"]))), 128))
818
- ], 8, Mr)) : D("", !0),
819
- c.value.additionalComponent === "KCopy" ? (m(), I("div", {
820
+ ], 8, Mr)) : U("", !0),
821
+ c.value.additionalComponent === "KCopy" ? (g(), I("div", {
820
822
  key: 1,
821
823
  class: "copy-uuid-array",
822
824
  "data-testid": `${e.item.key}-copy-uuid-array`
823
825
  }, [
824
- (m(!0), I(se, null, ae(e.item.value, (p, y) => (m(), M(k, Ln({ ref_for: !0 }, c.value.childAttrs, {
825
- key: `${e.item.key}-copy-uuid-${y}`,
826
- "data-testid": `${e.item.key}-copy-uuid-${y}`,
827
- text: p
826
+ (g(!0), I(se, null, ae(e.item.value, (h, A) => (g(), M(k, Ln({ ref_for: !0 }, c.value.childAttrs, {
827
+ key: `${e.item.key}-copy-uuid-${A}`,
828
+ "data-testid": `${e.item.key}-copy-uuid-${A}`,
829
+ text: h
828
830
  }), null, 16, ["data-testid", "text"]))), 128))
829
- ], 8, Dr)) : c.value.additionalComponent === "KMethodBadge" ? (m(), I("div", {
831
+ ], 8, Dr)) : c.value.additionalComponent === "KMethodBadge" ? (g(), I("div", {
830
832
  key: 2,
831
833
  class: "method-badge-array",
832
834
  "data-testid": `${e.item.key}-badge-methods`
833
835
  }, [
834
- (m(!0), I(se, null, ae(e.item.value, (p, y) => (m(), M(N, {
835
- key: `${e.item.key}-badge-method-${y}`,
836
- appearance: Object.values(E(Un)).includes(p.toLowerCase()) ? p.toLowerCase() : "custom",
836
+ (g(!0), I(se, null, ae(e.item.value, (h, A) => (g(), M(N, {
837
+ key: `${e.item.key}-badge-method-${A}`,
838
+ appearance: Object.values(E(Un)).includes(h.toLowerCase()) ? h.toLowerCase() : "custom",
837
839
  class: "config-badge",
838
- "data-testid": `${e.item.key}-badge-method-${y}`
840
+ "data-testid": `${e.item.key}-badge-method-${A}`
839
841
  }, {
840
- default: x(() => [
841
- V(O(p), 1)
842
+ default: b(() => [
843
+ Y($(h), 1)
842
844
  ]),
843
845
  _: 2
844
846
  }, 1032, ["appearance", "data-testid"]))), 128))
845
- ], 8, Ur)) : D("", !0),
846
- c.value.additionalComponent === "JsonCardItem" ? (m(), I("div", {
847
+ ], 8, Ur)) : U("", !0),
848
+ c.value.additionalComponent === "JsonCardItem" ? (g(), I("div", {
847
849
  key: 3,
848
850
  "data-testid": `${n.item.key}-json-array-content`
849
851
  }, [
850
- (m(!0), I(se, null, ae(e.item.value, (p, y) => (m(), M(Mt, {
851
- key: `json-array-item-${y}`,
852
- index: y,
852
+ (g(!0), I(se, null, ae(e.item.value, (h, A) => (g(), M(Mt, {
853
+ key: `json-array-item-${A}`,
854
+ index: A,
853
855
  "is-array-item": "",
854
- item: p
856
+ item: h
855
857
  }, null, 8, ["index", "item"]))), 128))
856
- ], 8, jr)) : (m(), M(Z, {
858
+ ], 8, jr)) : (g(), M(Z, {
857
859
  key: 4,
858
- text: E(f) ? e.item.value : ""
860
+ text: E(p) ? e.item.value : ""
859
861
  }, {
860
- default: x(() => [
862
+ default: b(() => [
861
863
  L("span", {
862
864
  ref_key: "textContent",
863
- ref: h,
865
+ ref: m,
864
866
  class: de(["attrs-data-text", { truncated: e.truncated }])
865
- }, O(c.value.text), 3)
867
+ }, $(c.value.text), 3)
866
868
  ]),
867
869
  _: 1
868
870
  }, 8, ["text"]))
869
871
  ]),
870
872
  _: 1
871
873
  }, 16))
872
- ])) : (m(), I("div", {
874
+ ])) : (g(), I("div", {
873
875
  key: 0,
874
876
  "data-testid": `${e.item.key}-no-value`
875
877
  }, " – ", 8, Br))
@@ -912,7 +914,7 @@ const z = {
912
914
  $t((i) => ({
913
915
  "4520e3ec": `${r.value}ch`
914
916
  }));
915
- const t = e, n = A(() => t.jsonRecord), r = A(() => {
917
+ const t = e, n = w(() => t.jsonRecord), r = w(() => {
916
918
  var o;
917
919
  if (!t.fetcherUrl)
918
920
  return 0;
@@ -920,14 +922,14 @@ const z = {
920
922
  return i.length < 2 ? 0 : 41 + (t.requestMethod === "post" ? i[i.length - 1] : i[i.length - 2]).length;
921
923
  });
922
924
  return (i, a) => {
923
- const o = B("KBadge"), l = B("KCodeBlock");
924
- return m(), I("div", Hr, [
925
- t.fetcherUrl ? (m(), I("div", Vr, [
925
+ const o = K("KBadge"), l = K("KCodeBlock");
926
+ return g(), I("div", Hr, [
927
+ t.fetcherUrl ? (g(), I("div", Vr, [
926
928
  R(o, {
927
929
  appearance: t.requestMethod
928
930
  }, {
929
- default: x(() => [
930
- V(O(t.requestMethod), 1)
931
+ default: b(() => [
932
+ Y($(t.requestMethod), 1)
931
933
  ]),
932
934
  _: 1
933
935
  }, 8, ["appearance"]),
@@ -938,15 +940,15 @@ const z = {
938
940
  "single-line": "",
939
941
  theme: "dark"
940
942
  }, null, 8, ["code"])
941
- ])) : D("", !0),
942
- t.jsonRecord ? (m(), M(l, {
943
+ ])) : U("", !0),
944
+ t.jsonRecord ? (g(), M(l, {
943
945
  key: 1,
944
946
  id: "json-codeblock",
945
947
  class: de({ "json-content": t.fetcherUrl }),
946
948
  code: JSON.stringify(n.value, null, 2),
947
949
  language: "json",
948
950
  theme: "dark"
949
- }, null, 8, ["class", "code"])) : D("", !0)
951
+ }, null, 8, ["class", "code"])) : U("", !0)
950
952
  ]);
951
953
  };
952
954
  }
@@ -991,16 +993,16 @@ function qt(e, t) {
991
993
 
992
994
  ` + e.mark.snippet), r + " " + n) : r;
993
995
  }
994
- function Ie(e, t) {
996
+ function Ee(e, t) {
995
997
  Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = t, this.message = qt(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || "";
996
998
  }
997
- Ie.prototype = Object.create(Error.prototype);
998
- Ie.prototype.constructor = Ie;
999
- Ie.prototype.toString = function(t) {
999
+ Ee.prototype = Object.create(Error.prototype);
1000
+ Ee.prototype.constructor = Ee;
1001
+ Ee.prototype.toString = function(t) {
1000
1002
  return this.name + ": " + qt(this, t);
1001
1003
  };
1002
- var te = Ie;
1003
- function He(e, t, n, r, i) {
1004
+ var te = Ee;
1005
+ function Ve(e, t, n, r, i) {
1004
1006
  var a = "", o = "", l = Math.floor(i / 2) - 1;
1005
1007
  return r - t > l && (a = " ... ", t = r - l + a.length), n - r > l && (o = " ...", n = r + l - o.length), {
1006
1008
  str: a + e.slice(t, n).replace(/\t/g, "→") + o,
@@ -1008,7 +1010,7 @@ function He(e, t, n, r, i) {
1008
1010
  // relative position
1009
1011
  };
1010
1012
  }
1011
- function Ve(e, t) {
1013
+ function Ye(e, t) {
1012
1014
  return G.repeat(" ", t - e.length) + e;
1013
1015
  }
1014
1016
  function ri(e, t) {
@@ -1020,24 +1022,24 @@ function ri(e, t) {
1020
1022
  o < 0 && (o = r.length - 1);
1021
1023
  var l = "", s, u, d = Math.min(e.line + t.linesAfter, i.length).toString().length, c = t.maxLength - (t.indent + d + 3);
1022
1024
  for (s = 1; s <= t.linesBefore && !(o - s < 0); s++)
1023
- u = He(
1025
+ u = Ve(
1024
1026
  e.buffer,
1025
1027
  r[o - s],
1026
1028
  i[o - s],
1027
1029
  e.position - (r[o] - r[o - s]),
1028
1030
  c
1029
- ), l = G.repeat(" ", t.indent) + Ve((e.line - s + 1).toString(), d) + " | " + u.str + `
1031
+ ), l = G.repeat(" ", t.indent) + Ye((e.line - s + 1).toString(), d) + " | " + u.str + `
1030
1032
  ` + l;
1031
- for (u = He(e.buffer, r[o], i[o], e.position, c), l += G.repeat(" ", t.indent) + Ve((e.line + 1).toString(), d) + " | " + u.str + `
1033
+ for (u = Ve(e.buffer, r[o], i[o], e.position, c), l += G.repeat(" ", t.indent) + Ye((e.line + 1).toString(), d) + " | " + u.str + `
1032
1034
  `, l += G.repeat("-", t.indent + d + 3 + u.pos) + `^
1033
1035
  `, s = 1; s <= t.linesAfter && !(o + s >= i.length); s++)
1034
- u = He(
1036
+ u = Ve(
1035
1037
  e.buffer,
1036
1038
  r[o + s],
1037
1039
  i[o + s],
1038
1040
  e.position - (r[o] - r[o + s]),
1039
1041
  c
1040
- ), l += G.repeat(" ", t.indent) + Ve((e.line + s + 1).toString(), d) + " | " + u.str + `
1042
+ ), l += G.repeat(" ", t.indent) + Ye((e.line + s + 1).toString(), d) + " | " + u.str + `
1041
1043
  `;
1042
1044
  return l.replace(/\n$/, "");
1043
1045
  }
@@ -1106,10 +1108,10 @@ function ci() {
1106
1108
  arguments[t].forEach(r);
1107
1109
  return e;
1108
1110
  }
1109
- function We(e) {
1111
+ function Je(e) {
1110
1112
  return this.extend(e);
1111
1113
  }
1112
- We.prototype.extend = function(t) {
1114
+ Je.prototype.extend = function(t) {
1113
1115
  var n = [], r = [];
1114
1116
  if (t instanceof X)
1115
1117
  r.push(t);
@@ -1130,10 +1132,10 @@ We.prototype.extend = function(t) {
1130
1132
  if (!(a instanceof X))
1131
1133
  throw new te("Specified list of YAML types (or a single Type object) contains a non-Type object.");
1132
1134
  });
1133
- var i = Object.create(We.prototype);
1135
+ var i = Object.create(Je.prototype);
1134
1136
  return i.implicit = (this.implicit || []).concat(n), i.explicit = (this.explicit || []).concat(r), i.compiledImplicit = mt(i, "implicit"), i.compiledExplicit = mt(i, "explicit"), i.compiledTypeMap = ci(i.compiledImplicit, i.compiledExplicit), i;
1135
1137
  };
1136
- var Pt = We, Ht = new X("tag:yaml.org,2002:str", {
1138
+ var Pt = Je, Ht = new X("tag:yaml.org,2002:str", {
1137
1139
  kind: "scalar",
1138
1140
  construct: function(e) {
1139
1141
  return e !== null ? e : "";
@@ -1394,7 +1396,7 @@ function Ei(e) {
1394
1396
  return e === null ? !1 : en.exec(e) !== null || tn.exec(e) !== null;
1395
1397
  }
1396
1398
  function Ti(e) {
1397
- var t, n, r, i, a, o, l, s = 0, u = null, d, c, h;
1399
+ var t, n, r, i, a, o, l, s = 0, u = null, d, c, m;
1398
1400
  if (t = en.exec(e), t === null && (t = tn.exec(e)), t === null)
1399
1401
  throw new Error("Date resolve error");
1400
1402
  if (n = +t[1], r = +t[2] - 1, i = +t[3], !t[4])
@@ -1404,7 +1406,7 @@ function Ti(e) {
1404
1406
  s += "0";
1405
1407
  s = +s;
1406
1408
  }
1407
- return t[9] && (d = +t[10], c = +(t[11] || 0), u = (d * 60 + c) * 6e4, t[9] === "-" && (u = -u)), h = new Date(Date.UTC(n, r, i, a, o, l, s)), u && h.setTime(h.getTime() - u), h;
1409
+ return t[9] && (d = +t[10], c = +(t[11] || 0), u = (d * 60 + c) * 6e4, t[9] === "-" && (u = -u)), m = new Date(Date.UTC(n, r, i, a, o, l, s)), u && m.setTime(m.getTime() - u), m;
1408
1410
  }
1409
1411
  function Fi(e) {
1410
1412
  return e.toISOString();
@@ -1422,12 +1424,12 @@ function Oi(e) {
1422
1424
  var rn = new X("tag:yaml.org,2002:merge", {
1423
1425
  kind: "scalar",
1424
1426
  resolve: Oi
1425
- }), tt = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
1427
+ }), nt = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
1426
1428
  \r`;
1427
1429
  function $i(e) {
1428
1430
  if (e === null)
1429
1431
  return !1;
1430
- var t, n, r = 0, i = e.length, a = tt;
1432
+ var t, n, r = 0, i = e.length, a = nt;
1431
1433
  for (n = 0; n < i; n++)
1432
1434
  if (t = a.indexOf(e.charAt(n)), !(t > 64)) {
1433
1435
  if (t < 0)
@@ -1437,13 +1439,13 @@ function $i(e) {
1437
1439
  return r % 8 === 0;
1438
1440
  }
1439
1441
  function Li(e) {
1440
- var t, n, r = e.replace(/[\r\n=]/g, ""), i = r.length, a = tt, o = 0, l = [];
1442
+ var t, n, r = e.replace(/[\r\n=]/g, ""), i = r.length, a = nt, o = 0, l = [];
1441
1443
  for (t = 0; t < i; t++)
1442
1444
  t % 4 === 0 && t && (l.push(o >> 16 & 255), l.push(o >> 8 & 255), l.push(o & 255)), o = o << 6 | a.indexOf(r.charAt(t));
1443
1445
  return n = i % 4 * 6, n === 0 ? (l.push(o >> 16 & 255), l.push(o >> 8 & 255), l.push(o & 255)) : n === 18 ? (l.push(o >> 10 & 255), l.push(o >> 2 & 255)) : n === 12 && l.push(o >> 4 & 255), new Uint8Array(l);
1444
1446
  }
1445
1447
  function Ni(e) {
1446
- var t = "", n = 0, r, i, a = e.length, o = tt;
1448
+ var t = "", n = 0, r, i, a = e.length, o = nt;
1447
1449
  for (r = 0; r < a; r++)
1448
1450
  r % 3 === 0 && r && (t += o[n >> 18 & 63], t += o[n >> 12 & 63], t += o[n >> 6 & 63], t += o[n & 63]), n = (n << 8) + e[r];
1449
1451
  return i = a % 3, i === 0 ? (t += o[n >> 18 & 63], t += o[n >> 12 & 63], t += o[n >> 6 & 63], t += o[n & 63]) : i === 2 ? (t += o[n >> 10 & 63], t += o[n >> 4 & 63], t += o[n << 2 & 63], t += o[64]) : i === 1 && (t += o[n >> 2 & 63], t += o[n << 4 & 63], t += o[64], t += o[64]), t;
@@ -1528,7 +1530,7 @@ var sn = new X("tag:yaml.org,2002:set", {
1528
1530
  kind: "mapping",
1529
1531
  resolve: Hi,
1530
1532
  construct: Vi
1531
- }), nt = Xt.extend({
1533
+ }), rt = Xt.extend({
1532
1534
  implicit: [
1533
1535
  nn,
1534
1536
  rn
@@ -1539,14 +1541,14 @@ var sn = new X("tag:yaml.org,2002:set", {
1539
1541
  ln,
1540
1542
  sn
1541
1543
  ]
1542
- }), fe = Object.prototype.hasOwnProperty, Be = 1, cn = 2, un = 3, Ke = 4, Ye = 1, Yi = 2, gt = 3, zi = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Wi = /[\x85\u2028\u2029]/, Ji = /[,\[\]\{\}]/, dn = /^(?:!|!!|![a-z\-]+!)$/i, fn = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
1544
+ }), fe = Object.prototype.hasOwnProperty, Ke = 1, cn = 2, un = 3, Me = 4, ze = 1, Yi = 2, gt = 3, zi = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Wi = /[\x85\u2028\u2029]/, Ji = /[,\[\]\{\}]/, dn = /^(?:!|!!|![a-z\-]+!)$/i, fn = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
1543
1545
  function yt(e) {
1544
1546
  return Object.prototype.toString.call(e);
1545
1547
  }
1546
1548
  function oe(e) {
1547
1549
  return e === 10 || e === 13;
1548
1550
  }
1549
- function ye(e) {
1551
+ function ge(e) {
1550
1552
  return e === 9 || e === 32;
1551
1553
  }
1552
1554
  function ne(e) {
@@ -1579,7 +1581,7 @@ var pn = new Array(256), hn = new Array(256);
1579
1581
  for (var ve = 0; ve < 256; ve++)
1580
1582
  pn[ve] = vt(ve) ? 1 : 0, hn[ve] = vt(ve);
1581
1583
  function ea(e, t) {
1582
- this.input = e, this.filename = t.filename || null, this.schema = t.schema || nt, this.onWarning = t.onWarning || null, this.legacy = t.legacy || !1, this.json = t.json || !1, this.listener = t.listener || null, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = e.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.firstTabInLine = -1, this.documents = [];
1584
+ this.input = e, this.filename = t.filename || null, this.schema = t.schema || rt, this.onWarning = t.onWarning || null, this.legacy = t.legacy || !1, this.json = t.json || !1, this.listener = t.listener || null, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = e.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.firstTabInLine = -1, this.documents = [];
1583
1585
  }
1584
1586
  function mn(e, t) {
1585
1587
  var n = {
@@ -1595,13 +1597,13 @@ function mn(e, t) {
1595
1597
  function C(e, t) {
1596
1598
  throw mn(e, t);
1597
1599
  }
1598
- function Me(e, t) {
1600
+ function De(e, t) {
1599
1601
  e.onWarning && e.onWarning.call(null, mn(e, t));
1600
1602
  }
1601
1603
  var bt = {
1602
1604
  YAML: function(t, n, r) {
1603
1605
  var i, a, o;
1604
- t.version !== null && C(t, "duplication of %YAML directive"), r.length !== 1 && C(t, "YAML directive accepts exactly one argument"), i = /^([0-9]+)\.([0-9]+)$/.exec(r[0]), i === null && C(t, "ill-formed argument of the YAML directive"), a = parseInt(i[1], 10), o = parseInt(i[2], 10), a !== 1 && C(t, "unacceptable YAML version of the document"), t.version = r[0], t.checkLineBreaks = o < 2, o !== 1 && o !== 2 && Me(t, "unsupported YAML version of the document");
1606
+ t.version !== null && C(t, "duplication of %YAML directive"), r.length !== 1 && C(t, "YAML directive accepts exactly one argument"), i = /^([0-9]+)\.([0-9]+)$/.exec(r[0]), i === null && C(t, "ill-formed argument of the YAML directive"), a = parseInt(i[1], 10), o = parseInt(i[2], 10), a !== 1 && C(t, "unacceptable YAML version of the document"), t.version = r[0], t.checkLineBreaks = o < 2, o !== 1 && o !== 2 && De(t, "unsupported YAML version of the document");
1605
1607
  },
1606
1608
  TAG: function(t, n, r) {
1607
1609
  var i, a;
@@ -1650,60 +1652,60 @@ function _e(e, t, n, r, i, a, o, l, s) {
1650
1652
  }) : t[i] = a, delete n[i];
1651
1653
  return t;
1652
1654
  }
1653
- function rt(e) {
1655
+ function it(e) {
1654
1656
  var t;
1655
1657
  t = e.input.charCodeAt(e.position), t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : C(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
1656
1658
  }
1657
- function W(e, t, n) {
1659
+ function J(e, t, n) {
1658
1660
  for (var r = 0, i = e.input.charCodeAt(e.position); i !== 0; ) {
1659
- for (; ye(i); )
1661
+ for (; ge(i); )
1660
1662
  i === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), i = e.input.charCodeAt(++e.position);
1661
1663
  if (t && i === 35)
1662
1664
  do
1663
1665
  i = e.input.charCodeAt(++e.position);
1664
1666
  while (i !== 10 && i !== 13 && i !== 0);
1665
1667
  if (oe(i))
1666
- for (rt(e), i = e.input.charCodeAt(e.position), r++, e.lineIndent = 0; i === 32; )
1668
+ for (it(e), i = e.input.charCodeAt(e.position), r++, e.lineIndent = 0; i === 32; )
1667
1669
  e.lineIndent++, i = e.input.charCodeAt(++e.position);
1668
1670
  else
1669
1671
  break;
1670
1672
  }
1671
- return n !== -1 && r !== 0 && e.lineIndent < n && Me(e, "deficient indentation"), r;
1673
+ return n !== -1 && r !== 0 && e.lineIndent < n && De(e, "deficient indentation"), r;
1672
1674
  }
1673
- function qe(e) {
1675
+ function Pe(e) {
1674
1676
  var t = e.position, n;
1675
1677
  return n = e.input.charCodeAt(t), !!((n === 45 || n === 46) && n === e.input.charCodeAt(t + 1) && n === e.input.charCodeAt(t + 2) && (t += 3, n = e.input.charCodeAt(t), n === 0 || ne(n)));
1676
1678
  }
1677
- function it(e, t) {
1679
+ function at(e, t) {
1678
1680
  t === 1 ? e.result += " " : t > 1 && (e.result += G.repeat(`
1679
1681
  `, t - 1));
1680
1682
  }
1681
1683
  function ta(e, t, n) {
1682
- var r, i, a, o, l, s, u, d, c = e.kind, h = e.result, f;
1683
- if (f = e.input.charCodeAt(e.position), ne(f) || Ce(f) || f === 35 || f === 38 || f === 42 || f === 33 || f === 124 || f === 62 || f === 39 || f === 34 || f === 37 || f === 64 || f === 96 || (f === 63 || f === 45) && (i = e.input.charCodeAt(e.position + 1), ne(i) || n && Ce(i)))
1684
+ var r, i, a, o, l, s, u, d, c = e.kind, m = e.result, p;
1685
+ if (p = e.input.charCodeAt(e.position), ne(p) || Ce(p) || p === 35 || p === 38 || p === 42 || p === 33 || p === 124 || p === 62 || p === 39 || p === 34 || p === 37 || p === 64 || p === 96 || (p === 63 || p === 45) && (i = e.input.charCodeAt(e.position + 1), ne(i) || n && Ce(i)))
1684
1686
  return !1;
1685
- for (e.kind = "scalar", e.result = "", a = o = e.position, l = !1; f !== 0; ) {
1686
- if (f === 58) {
1687
+ for (e.kind = "scalar", e.result = "", a = o = e.position, l = !1; p !== 0; ) {
1688
+ if (p === 58) {
1687
1689
  if (i = e.input.charCodeAt(e.position + 1), ne(i) || n && Ce(i))
1688
1690
  break;
1689
- } else if (f === 35) {
1691
+ } else if (p === 35) {
1690
1692
  if (r = e.input.charCodeAt(e.position - 1), ne(r))
1691
1693
  break;
1692
1694
  } else {
1693
- if (e.position === e.lineStart && qe(e) || n && Ce(f))
1695
+ if (e.position === e.lineStart && Pe(e) || n && Ce(p))
1694
1696
  break;
1695
- if (oe(f))
1696
- if (s = e.line, u = e.lineStart, d = e.lineIndent, W(e, !1, -1), e.lineIndent >= t) {
1697
- l = !0, f = e.input.charCodeAt(e.position);
1697
+ if (oe(p))
1698
+ if (s = e.line, u = e.lineStart, d = e.lineIndent, J(e, !1, -1), e.lineIndent >= t) {
1699
+ l = !0, p = e.input.charCodeAt(e.position);
1698
1700
  continue;
1699
1701
  } else {
1700
1702
  e.position = o, e.line = s, e.lineStart = u, e.lineIndent = d;
1701
1703
  break;
1702
1704
  }
1703
1705
  }
1704
- l && (ue(e, a, o, !1), it(e, e.line - s), a = o = e.position, l = !1), ye(f) || (o = e.position + 1), f = e.input.charCodeAt(++e.position);
1706
+ l && (ue(e, a, o, !1), at(e, e.line - s), a = o = e.position, l = !1), ge(p) || (o = e.position + 1), p = e.input.charCodeAt(++e.position);
1705
1707
  }
1706
- return ue(e, a, o, !1), e.result ? !0 : (e.kind = c, e.result = h, !1);
1708
+ return ue(e, a, o, !1), e.result ? !0 : (e.kind = c, e.result = m, !1);
1707
1709
  }
1708
1710
  function na(e, t) {
1709
1711
  var n, r, i;
@@ -1716,7 +1718,7 @@ function na(e, t) {
1716
1718
  else
1717
1719
  return !0;
1718
1720
  else
1719
- oe(n) ? (ue(e, r, i, !0), it(e, W(e, !1, t)), r = i = e.position) : e.position === e.lineStart && qe(e) ? C(e, "unexpected end of the document within a single quoted scalar") : (e.position++, i = e.position);
1721
+ oe(n) ? (ue(e, r, i, !0), at(e, J(e, !1, t)), r = i = e.position) : e.position === e.lineStart && Pe(e) ? C(e, "unexpected end of the document within a single quoted scalar") : (e.position++, i = e.position);
1720
1722
  C(e, "unexpected end of the stream within a single quoted scalar");
1721
1723
  }
1722
1724
  function ra(e, t) {
@@ -1728,7 +1730,7 @@ function ra(e, t) {
1728
1730
  return ue(e, n, e.position, !0), e.position++, !0;
1729
1731
  if (l === 92) {
1730
1732
  if (ue(e, n, e.position, !0), l = e.input.charCodeAt(++e.position), oe(l))
1731
- W(e, !1, t);
1733
+ J(e, !1, t);
1732
1734
  else if (l < 256 && pn[l])
1733
1735
  e.result += hn[l], e.position++;
1734
1736
  else if ((o = Zi(l)) > 0) {
@@ -1739,27 +1741,27 @@ function ra(e, t) {
1739
1741
  C(e, "unknown escape sequence");
1740
1742
  n = r = e.position;
1741
1743
  } else
1742
- oe(l) ? (ue(e, n, r, !0), it(e, W(e, !1, t)), n = r = e.position) : e.position === e.lineStart && qe(e) ? C(e, "unexpected end of the document within a double quoted scalar") : (e.position++, r = e.position);
1744
+ oe(l) ? (ue(e, n, r, !0), at(e, J(e, !1, t)), n = r = e.position) : e.position === e.lineStart && Pe(e) ? C(e, "unexpected end of the document within a double quoted scalar") : (e.position++, r = e.position);
1743
1745
  }
1744
1746
  C(e, "unexpected end of the stream within a double quoted scalar");
1745
1747
  }
1746
1748
  function ia(e, t) {
1747
- var n = !0, r, i, a, o = e.tag, l, s = e.anchor, u, d, c, h, f, v = /* @__PURE__ */ Object.create(null), b, _, N, k;
1749
+ var n = !0, r, i, a, o = e.tag, l, s = e.anchor, u, d, c, m, p, y = /* @__PURE__ */ Object.create(null), v, _, N, k;
1748
1750
  if (k = e.input.charCodeAt(e.position), k === 91)
1749
- d = 93, f = !1, l = [];
1751
+ d = 93, p = !1, l = [];
1750
1752
  else if (k === 123)
1751
- d = 125, f = !0, l = {};
1753
+ d = 125, p = !0, l = {};
1752
1754
  else
1753
1755
  return !1;
1754
1756
  for (e.anchor !== null && (e.anchorMap[e.anchor] = l), k = e.input.charCodeAt(++e.position); k !== 0; ) {
1755
- if (W(e, !0, t), k = e.input.charCodeAt(e.position), k === d)
1756
- return e.position++, e.tag = o, e.anchor = s, e.kind = f ? "mapping" : "sequence", e.result = l, !0;
1757
- n ? k === 44 && C(e, "expected the node content, but found ','") : C(e, "missed comma between flow collection entries"), _ = b = N = null, c = h = !1, k === 63 && (u = e.input.charCodeAt(e.position + 1), ne(u) && (c = h = !0, e.position++, W(e, !0, t))), r = e.line, i = e.lineStart, a = e.position, we(e, t, Be, !1, !0), _ = e.tag, b = e.result, W(e, !0, t), k = e.input.charCodeAt(e.position), (h || e.line === r) && k === 58 && (c = !0, k = e.input.charCodeAt(++e.position), W(e, !0, t), we(e, t, Be, !1, !0), N = e.result), f ? _e(e, l, v, _, b, N, r, i, a) : c ? l.push(_e(e, null, v, _, b, N, r, i, a)) : l.push(b), W(e, !0, t), k = e.input.charCodeAt(e.position), k === 44 ? (n = !0, k = e.input.charCodeAt(++e.position)) : n = !1;
1757
+ if (J(e, !0, t), k = e.input.charCodeAt(e.position), k === d)
1758
+ return e.position++, e.tag = o, e.anchor = s, e.kind = p ? "mapping" : "sequence", e.result = l, !0;
1759
+ n ? k === 44 && C(e, "expected the node content, but found ','") : C(e, "missed comma between flow collection entries"), _ = v = N = null, c = m = !1, k === 63 && (u = e.input.charCodeAt(e.position + 1), ne(u) && (c = m = !0, e.position++, J(e, !0, t))), r = e.line, i = e.lineStart, a = e.position, we(e, t, Ke, !1, !0), _ = e.tag, v = e.result, J(e, !0, t), k = e.input.charCodeAt(e.position), (m || e.line === r) && k === 58 && (c = !0, k = e.input.charCodeAt(++e.position), J(e, !0, t), we(e, t, Ke, !1, !0), N = e.result), p ? _e(e, l, y, _, v, N, r, i, a) : c ? l.push(_e(e, null, y, _, v, N, r, i, a)) : l.push(v), J(e, !0, t), k = e.input.charCodeAt(e.position), k === 44 ? (n = !0, k = e.input.charCodeAt(++e.position)) : n = !1;
1758
1760
  }
1759
1761
  C(e, "unexpected end of the stream within a flow collection");
1760
1762
  }
1761
1763
  function aa(e, t) {
1762
- var n, r, i = Ye, a = !1, o = !1, l = t, s = 0, u = !1, d, c;
1764
+ var n, r, i = ze, a = !1, o = !1, l = t, s = 0, u = !1, d, c;
1763
1765
  if (c = e.input.charCodeAt(e.position), c === 124)
1764
1766
  r = !1;
1765
1767
  else if (c === 62)
@@ -1768,22 +1770,22 @@ function aa(e, t) {
1768
1770
  return !1;
1769
1771
  for (e.kind = "scalar", e.result = ""; c !== 0; )
1770
1772
  if (c = e.input.charCodeAt(++e.position), c === 43 || c === 45)
1771
- Ye === i ? i = c === 43 ? gt : Yi : C(e, "repeat of a chomping mode identifier");
1773
+ ze === i ? i = c === 43 ? gt : Yi : C(e, "repeat of a chomping mode identifier");
1772
1774
  else if ((d = Qi(c)) >= 0)
1773
1775
  d === 0 ? C(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : o ? C(e, "repeat of an indentation width identifier") : (l = t + d - 1, o = !0);
1774
1776
  else
1775
1777
  break;
1776
- if (ye(c)) {
1778
+ if (ge(c)) {
1777
1779
  do
1778
1780
  c = e.input.charCodeAt(++e.position);
1779
- while (ye(c));
1781
+ while (ge(c));
1780
1782
  if (c === 35)
1781
1783
  do
1782
1784
  c = e.input.charCodeAt(++e.position);
1783
1785
  while (!oe(c) && c !== 0);
1784
1786
  }
1785
1787
  for (; c !== 0; ) {
1786
- for (rt(e), e.lineIndent = 0, c = e.input.charCodeAt(e.position); (!o || e.lineIndent < l) && c === 32; )
1788
+ for (it(e), e.lineIndent = 0, c = e.input.charCodeAt(e.position); (!o || e.lineIndent < l) && c === 32; )
1787
1789
  e.lineIndent++, c = e.input.charCodeAt(++e.position);
1788
1790
  if (!o && e.lineIndent > l && (l = e.lineIndent), oe(c)) {
1789
1791
  s++;
@@ -1791,11 +1793,11 @@ function aa(e, t) {
1791
1793
  }
1792
1794
  if (e.lineIndent < l) {
1793
1795
  i === gt ? e.result += G.repeat(`
1794
- `, a ? 1 + s : s) : i === Ye && a && (e.result += `
1796
+ `, a ? 1 + s : s) : i === ze && a && (e.result += `
1795
1797
  `);
1796
1798
  break;
1797
1799
  }
1798
- for (r ? ye(c) ? (u = !0, e.result += G.repeat(`
1800
+ for (r ? ge(c) ? (u = !0, e.result += G.repeat(`
1799
1801
  `, a ? 1 + s : s)) : u ? (u = !1, e.result += G.repeat(`
1800
1802
  `, s + 1)) : s === 0 ? a && (e.result += " ") : e.result += G.repeat(`
1801
1803
  `, s) : e.result += G.repeat(`
@@ -1810,11 +1812,11 @@ function Ct(e, t) {
1810
1812
  if (e.firstTabInLine !== -1)
1811
1813
  return !1;
1812
1814
  for (e.anchor !== null && (e.anchorMap[e.anchor] = a), s = e.input.charCodeAt(e.position); s !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, C(e, "tab characters must not be used in indentation")), !(s !== 45 || (o = e.input.charCodeAt(e.position + 1), !ne(o)))); ) {
1813
- if (l = !0, e.position++, W(e, !0, -1) && e.lineIndent <= t) {
1815
+ if (l = !0, e.position++, J(e, !0, -1) && e.lineIndent <= t) {
1814
1816
  a.push(null), s = e.input.charCodeAt(e.position);
1815
1817
  continue;
1816
1818
  }
1817
- if (n = e.line, we(e, t, un, !1, !0), a.push(e.result), W(e, !0, -1), s = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > t) && s !== 0)
1819
+ if (n = e.line, we(e, t, un, !1, !0), a.push(e.result), J(e, !0, -1), s = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > t) && s !== 0)
1818
1820
  C(e, "bad indentation of a sequence entry");
1819
1821
  else if (e.lineIndent < t)
1820
1822
  break;
@@ -1822,20 +1824,20 @@ function Ct(e, t) {
1822
1824
  return l ? (e.tag = r, e.anchor = i, e.kind = "sequence", e.result = a, !0) : !1;
1823
1825
  }
1824
1826
  function oa(e, t, n) {
1825
- var r, i, a, o, l, s, u = e.tag, d = e.anchor, c = {}, h = /* @__PURE__ */ Object.create(null), f = null, v = null, b = null, _ = !1, N = !1, k;
1827
+ var r, i, a, o, l, s, u = e.tag, d = e.anchor, c = {}, m = /* @__PURE__ */ Object.create(null), p = null, y = null, v = null, _ = !1, N = !1, k;
1826
1828
  if (e.firstTabInLine !== -1)
1827
1829
  return !1;
1828
1830
  for (e.anchor !== null && (e.anchorMap[e.anchor] = c), k = e.input.charCodeAt(e.position); k !== 0; ) {
1829
1831
  if (!_ && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, C(e, "tab characters must not be used in indentation")), r = e.input.charCodeAt(e.position + 1), a = e.line, (k === 63 || k === 58) && ne(r))
1830
- k === 63 ? (_ && (_e(e, c, h, f, v, null, o, l, s), f = v = b = null), N = !0, _ = !0, i = !0) : _ ? (_ = !1, i = !0) : C(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, k = r;
1832
+ k === 63 ? (_ && (_e(e, c, m, p, y, null, o, l, s), p = y = v = null), N = !0, _ = !0, i = !0) : _ ? (_ = !1, i = !0) : C(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, k = r;
1831
1833
  else {
1832
1834
  if (o = e.line, l = e.lineStart, s = e.position, !we(e, n, cn, !1, !0))
1833
1835
  break;
1834
1836
  if (e.line === a) {
1835
- for (k = e.input.charCodeAt(e.position); ye(k); )
1837
+ for (k = e.input.charCodeAt(e.position); ge(k); )
1836
1838
  k = e.input.charCodeAt(++e.position);
1837
1839
  if (k === 58)
1838
- k = e.input.charCodeAt(++e.position), ne(k) || C(e, "a whitespace character is expected after the key-value separator within a block mapping"), _ && (_e(e, c, h, f, v, null, o, l, s), f = v = b = null), N = !0, _ = !1, i = !1, f = e.tag, v = e.result;
1840
+ k = e.input.charCodeAt(++e.position), ne(k) || C(e, "a whitespace character is expected after the key-value separator within a block mapping"), _ && (_e(e, c, m, p, y, null, o, l, s), p = y = v = null), N = !0, _ = !1, i = !1, p = e.tag, y = e.result;
1839
1841
  else if (N)
1840
1842
  C(e, "can not read an implicit mapping pair; a colon is missed");
1841
1843
  else
@@ -1845,12 +1847,12 @@ function oa(e, t, n) {
1845
1847
  else
1846
1848
  return e.tag = u, e.anchor = d, !0;
1847
1849
  }
1848
- if ((e.line === a || e.lineIndent > t) && (_ && (o = e.line, l = e.lineStart, s = e.position), we(e, t, Ke, !0, i) && (_ ? v = e.result : b = e.result), _ || (_e(e, c, h, f, v, b, o, l, s), f = v = b = null), W(e, !0, -1), k = e.input.charCodeAt(e.position)), (e.line === a || e.lineIndent > t) && k !== 0)
1850
+ if ((e.line === a || e.lineIndent > t) && (_ && (o = e.line, l = e.lineStart, s = e.position), we(e, t, Me, !0, i) && (_ ? y = e.result : v = e.result), _ || (_e(e, c, m, p, y, v, o, l, s), p = y = v = null), J(e, !0, -1), k = e.input.charCodeAt(e.position)), (e.line === a || e.lineIndent > t) && k !== 0)
1849
1851
  C(e, "bad indentation of a mapping entry");
1850
1852
  else if (e.lineIndent < t)
1851
1853
  break;
1852
1854
  }
1853
- return _ && _e(e, c, h, f, v, null, o, l, s), N && (e.tag = u, e.anchor = d, e.kind = "mapping", e.result = c), N;
1855
+ return _ && _e(e, c, m, p, y, null, o, l, s), N && (e.tag = u, e.anchor = d, e.kind = "mapping", e.result = c), N;
1854
1856
  }
1855
1857
  function la(e) {
1856
1858
  var t, n = !1, r = !1, i, a, o;
@@ -1888,41 +1890,41 @@ function ca(e) {
1888
1890
  return !1;
1889
1891
  for (r = e.input.charCodeAt(++e.position), t = e.position; r !== 0 && !ne(r) && !Ce(r); )
1890
1892
  r = e.input.charCodeAt(++e.position);
1891
- return e.position === t && C(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), fe.call(e.anchorMap, n) || C(e, 'unidentified alias "' + n + '"'), e.result = e.anchorMap[n], W(e, !0, -1), !0;
1893
+ return e.position === t && C(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), fe.call(e.anchorMap, n) || C(e, 'unidentified alias "' + n + '"'), e.result = e.anchorMap[n], J(e, !0, -1), !0;
1892
1894
  }
1893
1895
  function we(e, t, n, r, i) {
1894
- var a, o, l, s = 1, u = !1, d = !1, c, h, f, v, b, _;
1895
- if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, a = o = l = Ke === n || un === n, r && W(e, !0, -1) && (u = !0, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)), s === 1)
1896
+ var a, o, l, s = 1, u = !1, d = !1, c, m, p, y, v, _;
1897
+ if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, a = o = l = Me === n || un === n, r && J(e, !0, -1) && (u = !0, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)), s === 1)
1896
1898
  for (; la(e) || sa(e); )
1897
- W(e, !0, -1) ? (u = !0, l = a, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)) : l = !1;
1898
- if (l && (l = u || i), (s === 1 || Ke === n) && (Be === n || cn === n ? b = t : b = t + 1, _ = e.position - e.lineStart, s === 1 ? l && (Ct(e, _) || oa(e, _, b)) || ia(e, b) ? d = !0 : (o && aa(e, b) || na(e, b) || ra(e, b) ? d = !0 : ca(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && C(e, "alias node should not have any properties")) : ta(e, b, Be === n) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : s === 0 && (d = l && Ct(e, _))), e.tag === null)
1899
+ J(e, !0, -1) ? (u = !0, l = a, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)) : l = !1;
1900
+ if (l && (l = u || i), (s === 1 || Me === n) && (Ke === n || cn === n ? v = t : v = t + 1, _ = e.position - e.lineStart, s === 1 ? l && (Ct(e, _) || oa(e, _, v)) || ia(e, v) ? d = !0 : (o && aa(e, v) || na(e, v) || ra(e, v) ? d = !0 : ca(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && C(e, "alias node should not have any properties")) : ta(e, v, Ke === n) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : s === 0 && (d = l && Ct(e, _))), e.tag === null)
1899
1901
  e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
1900
1902
  else if (e.tag === "?") {
1901
- for (e.result !== null && e.kind !== "scalar" && C(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), c = 0, h = e.implicitTypes.length; c < h; c += 1)
1902
- if (v = e.implicitTypes[c], v.resolve(e.result)) {
1903
- e.result = v.construct(e.result), e.tag = v.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
1903
+ for (e.result !== null && e.kind !== "scalar" && C(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), c = 0, m = e.implicitTypes.length; c < m; c += 1)
1904
+ if (y = e.implicitTypes[c], y.resolve(e.result)) {
1905
+ e.result = y.construct(e.result), e.tag = y.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
1904
1906
  break;
1905
1907
  }
1906
1908
  } else if (e.tag !== "!") {
1907
1909
  if (fe.call(e.typeMap[e.kind || "fallback"], e.tag))
1908
- v = e.typeMap[e.kind || "fallback"][e.tag];
1910
+ y = e.typeMap[e.kind || "fallback"][e.tag];
1909
1911
  else
1910
- for (v = null, f = e.typeMap.multi[e.kind || "fallback"], c = 0, h = f.length; c < h; c += 1)
1911
- if (e.tag.slice(0, f[c].tag.length) === f[c].tag) {
1912
- v = f[c];
1912
+ for (y = null, p = e.typeMap.multi[e.kind || "fallback"], c = 0, m = p.length; c < m; c += 1)
1913
+ if (e.tag.slice(0, p[c].tag.length) === p[c].tag) {
1914
+ y = p[c];
1913
1915
  break;
1914
1916
  }
1915
- v || C(e, "unknown tag !<" + e.tag + ">"), e.result !== null && v.kind !== e.kind && C(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + v.kind + '", not "' + e.kind + '"'), v.resolve(e.result, e.tag) ? (e.result = v.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : C(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
1917
+ y || C(e, "unknown tag !<" + e.tag + ">"), e.result !== null && y.kind !== e.kind && C(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + y.kind + '", not "' + e.kind + '"'), y.resolve(e.result, e.tag) ? (e.result = y.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : C(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
1916
1918
  }
1917
1919
  return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || d;
1918
1920
  }
1919
1921
  function ua(e) {
1920
1922
  var t = e.position, n, r, i, a = !1, o;
1921
- for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (o = e.input.charCodeAt(e.position)) !== 0 && (W(e, !0, -1), o = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || o !== 37)); ) {
1923
+ for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (o = e.input.charCodeAt(e.position)) !== 0 && (J(e, !0, -1), o = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || o !== 37)); ) {
1922
1924
  for (a = !0, o = e.input.charCodeAt(++e.position), n = e.position; o !== 0 && !ne(o); )
1923
1925
  o = e.input.charCodeAt(++e.position);
1924
1926
  for (r = e.input.slice(n, e.position), i = [], r.length < 1 && C(e, "directive name must not be less than one character in length"); o !== 0; ) {
1925
- for (; ye(o); )
1927
+ for (; ge(o); )
1926
1928
  o = e.input.charCodeAt(++e.position);
1927
1929
  if (o === 35) {
1928
1930
  do
@@ -1936,10 +1938,10 @@ function ua(e) {
1936
1938
  o = e.input.charCodeAt(++e.position);
1937
1939
  i.push(e.input.slice(n, e.position));
1938
1940
  }
1939
- o !== 0 && rt(e), fe.call(bt, r) ? bt[r](e, r, i) : Me(e, 'unknown document directive "' + r + '"');
1941
+ o !== 0 && it(e), fe.call(bt, r) ? bt[r](e, r, i) : De(e, 'unknown document directive "' + r + '"');
1940
1942
  }
1941
- if (W(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, W(e, !0, -1)) : a && C(e, "directives end mark is expected"), we(e, e.lineIndent - 1, Ke, !1, !0), W(e, !0, -1), e.checkLineBreaks && Wi.test(e.input.slice(t, e.position)) && Me(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && qe(e)) {
1942
- e.input.charCodeAt(e.position) === 46 && (e.position += 3, W(e, !0, -1));
1943
+ if (J(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, J(e, !0, -1)) : a && C(e, "directives end mark is expected"), we(e, e.lineIndent - 1, Me, !1, !0), J(e, !0, -1), e.checkLineBreaks && Wi.test(e.input.slice(t, e.position)) && De(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && Pe(e)) {
1944
+ e.input.charCodeAt(e.position) === 46 && (e.position += 3, J(e, !0, -1));
1943
1945
  return;
1944
1946
  }
1945
1947
  if (e.position < e.length - 1)
@@ -1976,7 +1978,7 @@ function fa(e, t) {
1976
1978
  var pa = da, ha = fa, yn = {
1977
1979
  loadAll: pa,
1978
1980
  load: ha
1979
- }, vn = Object.prototype.toString, bn = Object.prototype.hasOwnProperty, at = 65279, ma = 9, Ee = 10, ga = 13, ya = 32, va = 33, ba = 34, Je = 35, xa = 37, Ca = 38, _a = 39, ka = 42, xn = 44, wa = 45, De = 58, Aa = 61, Sa = 62, Ia = 63, Ea = 64, Cn = 91, _n = 93, Ta = 96, kn = 123, Fa = 124, wn = 125, ee = {};
1981
+ }, vn = Object.prototype.toString, bn = Object.prototype.hasOwnProperty, ot = 65279, ma = 9, Te = 10, ga = 13, ya = 32, va = 33, ba = 34, Ge = 35, xa = 37, Ca = 38, _a = 39, ka = 42, xn = 44, wa = 45, Ue = 58, Aa = 61, Sa = 62, Ia = 63, Ea = 64, Cn = 91, _n = 93, Ta = 96, kn = 123, Fa = 124, wn = 125, ee = {};
1980
1982
  ee[0] = "\\0";
1981
1983
  ee[7] = "\\a";
1982
1984
  ee[8] = "\\b";
@@ -2030,9 +2032,9 @@ function Na(e) {
2030
2032
  throw new te("code point within a string may not be greater than 0xFFFFFFFF");
2031
2033
  return "\\" + n + G.repeat("0", r - t.length) + t;
2032
2034
  }
2033
- var Ra = 1, Te = 2;
2035
+ var Ra = 1, Fe = 2;
2034
2036
  function Ba(e) {
2035
- this.schema = e.schema || nt, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = G.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = La(this.schema, e.styles || null), this.sortKeys = e.sortKeys || !1, this.lineWidth = e.lineWidth || 80, this.noRefs = e.noRefs || !1, this.noCompatMode = e.noCompatMode || !1, this.condenseFlow = e.condenseFlow || !1, this.quotingType = e.quotingType === '"' ? Te : Ra, this.forceQuotes = e.forceQuotes || !1, this.replacer = typeof e.replacer == "function" ? e.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null;
2037
+ this.schema = e.schema || rt, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = G.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = La(this.schema, e.styles || null), this.sortKeys = e.sortKeys || !1, this.lineWidth = e.lineWidth || 80, this.noRefs = e.noRefs || !1, this.noCompatMode = e.noCompatMode || !1, this.condenseFlow = e.condenseFlow || !1, this.quotingType = e.quotingType === '"' ? Fe : Ra, this.forceQuotes = e.forceQuotes || !1, this.replacer = typeof e.replacer == "function" ? e.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null;
2036
2038
  }
2037
2039
  function _t(e, t) {
2038
2040
  for (var n = G.repeat(" ", t), r = 0, i = -1, a = "", o, l = e.length; r < l; )
@@ -2041,7 +2043,7 @@ function _t(e, t) {
2041
2043
  ` && (a += n), a += o;
2042
2044
  return a;
2043
2045
  }
2044
- function Ge(e, t) {
2046
+ function Ze(e, t) {
2045
2047
  return `
2046
2048
  ` + G.repeat(" ", e.indent * t);
2047
2049
  }
@@ -2052,32 +2054,32 @@ function Ka(e, t) {
2052
2054
  return !0;
2053
2055
  return !1;
2054
2056
  }
2055
- function Ue(e) {
2057
+ function je(e) {
2056
2058
  return e === ya || e === ma;
2057
2059
  }
2058
- function Fe(e) {
2059
- return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== at || 65536 <= e && e <= 1114111;
2060
+ function Oe(e) {
2061
+ return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== ot || 65536 <= e && e <= 1114111;
2060
2062
  }
2061
2063
  function kt(e) {
2062
- return Fe(e) && e !== at && e !== ga && e !== Ee;
2064
+ return Oe(e) && e !== ot && e !== ga && e !== Te;
2063
2065
  }
2064
2066
  function wt(e, t, n) {
2065
- var r = kt(e), i = r && !Ue(e);
2067
+ var r = kt(e), i = r && !je(e);
2066
2068
  return (
2067
2069
  // ns-plain-safe
2068
2070
  (n ? (
2069
2071
  // c = flow-in
2070
2072
  r
2071
- ) : r && e !== xn && e !== Cn && e !== _n && e !== kn && e !== wn) && e !== Je && !(t === De && !i) || kt(t) && !Ue(t) && e === Je || t === De && i
2073
+ ) : r && e !== xn && e !== Cn && e !== _n && e !== kn && e !== wn) && e !== Ge && !(t === Ue && !i) || kt(t) && !je(t) && e === Ge || t === Ue && i
2072
2074
  );
2073
2075
  }
2074
2076
  function Ma(e) {
2075
- return Fe(e) && e !== at && !Ue(e) && e !== wa && e !== Ia && e !== De && e !== xn && e !== Cn && e !== _n && e !== kn && e !== wn && e !== Je && e !== Ca && e !== ka && e !== va && e !== Fa && e !== Aa && e !== Sa && e !== _a && e !== ba && e !== xa && e !== Ea && e !== Ta;
2077
+ return Oe(e) && e !== ot && !je(e) && e !== wa && e !== Ia && e !== Ue && e !== xn && e !== Cn && e !== _n && e !== kn && e !== wn && e !== Ge && e !== Ca && e !== ka && e !== va && e !== Fa && e !== Aa && e !== Sa && e !== _a && e !== ba && e !== xa && e !== Ea && e !== Ta;
2076
2078
  }
2077
2079
  function Da(e) {
2078
- return !Ue(e) && e !== De;
2080
+ return !je(e) && e !== Ue;
2079
2081
  }
2080
- function Se(e, t) {
2082
+ function Ie(e, t) {
2081
2083
  var n = e.charCodeAt(t), r;
2082
2084
  return n >= 55296 && n <= 56319 && t + 1 < e.length && (r = e.charCodeAt(t + 1), r >= 56320 && r <= 57343) ? (n - 55296) * 1024 + r - 56320 + 65536 : n;
2083
2085
  }
@@ -2085,34 +2087,34 @@ function An(e) {
2085
2087
  var t = /^\n* /;
2086
2088
  return t.test(e);
2087
2089
  }
2088
- var Sn = 1, Ze = 2, In = 3, En = 4, xe = 5;
2090
+ var Sn = 1, Qe = 2, In = 3, En = 4, xe = 5;
2089
2091
  function Ua(e, t, n, r, i, a, o, l) {
2090
- var s, u = 0, d = null, c = !1, h = !1, f = r !== -1, v = -1, b = Ma(Se(e, 0)) && Da(Se(e, e.length - 1));
2092
+ var s, u = 0, d = null, c = !1, m = !1, p = r !== -1, y = -1, v = Ma(Ie(e, 0)) && Da(Ie(e, e.length - 1));
2091
2093
  if (t || o)
2092
2094
  for (s = 0; s < e.length; u >= 65536 ? s += 2 : s++) {
2093
- if (u = Se(e, s), !Fe(u))
2095
+ if (u = Ie(e, s), !Oe(u))
2094
2096
  return xe;
2095
- b = b && wt(u, d, l), d = u;
2097
+ v = v && wt(u, d, l), d = u;
2096
2098
  }
2097
2099
  else {
2098
2100
  for (s = 0; s < e.length; u >= 65536 ? s += 2 : s++) {
2099
- if (u = Se(e, s), u === Ee)
2100
- c = !0, f && (h = h || // Foldable line = too long, and not more-indented.
2101
- s - v - 1 > r && e[v + 1] !== " ", v = s);
2102
- else if (!Fe(u))
2101
+ if (u = Ie(e, s), u === Te)
2102
+ c = !0, p && (m = m || // Foldable line = too long, and not more-indented.
2103
+ s - y - 1 > r && e[y + 1] !== " ", y = s);
2104
+ else if (!Oe(u))
2103
2105
  return xe;
2104
- b = b && wt(u, d, l), d = u;
2106
+ v = v && wt(u, d, l), d = u;
2105
2107
  }
2106
- h = h || f && s - v - 1 > r && e[v + 1] !== " ";
2108
+ m = m || p && s - y - 1 > r && e[y + 1] !== " ";
2107
2109
  }
2108
- return !c && !h ? b && !o && !i(e) ? Sn : a === Te ? xe : Ze : n > 9 && An(e) ? xe : o ? a === Te ? xe : Ze : h ? En : In;
2110
+ return !c && !m ? v && !o && !i(e) ? Sn : a === Fe ? xe : Qe : n > 9 && An(e) ? xe : o ? a === Fe ? xe : Qe : m ? En : In;
2109
2111
  }
2110
2112
  function ja(e, t, n, r, i) {
2111
2113
  e.dump = function() {
2112
2114
  if (t.length === 0)
2113
- return e.quotingType === Te ? '""' : "''";
2115
+ return e.quotingType === Fe ? '""' : "''";
2114
2116
  if (!e.noCompatMode && (Oa.indexOf(t) !== -1 || $a.test(t)))
2115
- return e.quotingType === Te ? '"' + t + '"' : "'" + t + "'";
2117
+ return e.quotingType === Fe ? '"' + t + '"' : "'" + t + "'";
2116
2118
  var a = e.indent * Math.max(1, n), o = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - a), l = r || e.flowLevel > -1 && n >= e.flowLevel;
2117
2119
  function s(u) {
2118
2120
  return Ka(e, u);
@@ -2129,7 +2131,7 @@ function ja(e, t, n, r, i) {
2129
2131
  )) {
2130
2132
  case Sn:
2131
2133
  return t;
2132
- case Ze:
2134
+ case Qe:
2133
2135
  return "'" + t.replace(/'/g, "''") + "'";
2134
2136
  case In:
2135
2137
  return "|" + At(t, e.indent) + St(_t(t, a));
@@ -2179,7 +2181,7 @@ function It(e, t) {
2179
2181
  }
2180
2182
  function Pa(e) {
2181
2183
  for (var t = "", n = 0, r, i = 0; i < e.length; n >= 65536 ? i += 2 : i++)
2182
- n = Se(e, i), r = ee[n], !r && Fe(n) ? (t += e[i], n >= 65536 && (t += e[i + 1])) : t += r || Na(n);
2184
+ n = Ie(e, i), r = ee[n], !r && Oe(n) ? (t += e[i], n >= 65536 && (t += e[i + 1])) : t += r || Na(n);
2183
2185
  return t;
2184
2186
  }
2185
2187
  function Ha(e, t, n) {
@@ -2191,7 +2193,7 @@ function Ha(e, t, n) {
2191
2193
  function Et(e, t, n, r) {
2192
2194
  var i = "", a = e.tag, o, l, s;
2193
2195
  for (o = 0, l = n.length; o < l; o += 1)
2194
- s = n[o], e.replacer && (s = e.replacer.call(n, String(o), s)), (ce(e, t + 1, s, !0, !0, !1, !0) || typeof s > "u" && ce(e, t + 1, null, !0, !0, !1, !0)) && ((!r || i !== "") && (i += Ge(e, t)), e.dump && Ee === e.dump.charCodeAt(0) ? i += "-" : i += "- ", i += e.dump);
2196
+ s = n[o], e.replacer && (s = e.replacer.call(n, String(o), s)), (ce(e, t + 1, s, !0, !0, !1, !0) || typeof s > "u" && ce(e, t + 1, null, !0, !0, !1, !0)) && ((!r || i !== "") && (i += Ze(e, t)), e.dump && Te === e.dump.charCodeAt(0) ? i += "-" : i += "- ", i += e.dump);
2195
2197
  e.tag = a, e.dump = i || "[]";
2196
2198
  }
2197
2199
  function Va(e, t, n) {
@@ -2201,7 +2203,7 @@ function Va(e, t, n) {
2201
2203
  e.tag = i, e.dump = "{" + r + "}";
2202
2204
  }
2203
2205
  function Ya(e, t, n, r) {
2204
- var i = "", a = e.tag, o = Object.keys(n), l, s, u, d, c, h;
2206
+ var i = "", a = e.tag, o = Object.keys(n), l, s, u, d, c, m;
2205
2207
  if (e.sortKeys === !0)
2206
2208
  o.sort();
2207
2209
  else if (typeof e.sortKeys == "function")
@@ -2209,7 +2211,7 @@ function Ya(e, t, n, r) {
2209
2211
  else if (e.sortKeys)
2210
2212
  throw new te("sortKeys must be a boolean or a function");
2211
2213
  for (l = 0, s = o.length; l < s; l += 1)
2212
- h = "", (!r || i !== "") && (h += Ge(e, t)), u = o[l], d = n[u], e.replacer && (d = e.replacer.call(n, u, d)), ce(e, t + 1, u, !0, !0, !0) && (c = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, c && (e.dump && Ee === e.dump.charCodeAt(0) ? h += "?" : h += "? "), h += e.dump, c && (h += Ge(e, t)), ce(e, t + 1, d, !0, c) && (e.dump && Ee === e.dump.charCodeAt(0) ? h += ":" : h += ": ", h += e.dump, i += h));
2214
+ m = "", (!r || i !== "") && (m += Ze(e, t)), u = o[l], d = n[u], e.replacer && (d = e.replacer.call(n, u, d)), ce(e, t + 1, u, !0, !0, !0) && (c = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, c && (e.dump && Te === e.dump.charCodeAt(0) ? m += "?" : m += "? "), m += e.dump, c && (m += Ze(e, t)), ce(e, t + 1, d, !0, c) && (e.dump && Te === e.dump.charCodeAt(0) ? m += ":" : m += ": ", m += e.dump, i += m));
2213
2215
  e.tag = a, e.dump = i || "{}";
2214
2216
  }
2215
2217
  function Tt(e, t, n) {
@@ -2233,14 +2235,14 @@ function ce(e, t, n, r, i, a, o) {
2233
2235
  e.tag = null, e.dump = n, Tt(e, n, !1) || Tt(e, n, !0);
2234
2236
  var l = vn.call(e.dump), s = r, u;
2235
2237
  r && (r = e.flowLevel < 0 || e.flowLevel > t);
2236
- var d = l === "[object Object]" || l === "[object Array]", c, h;
2237
- if (d && (c = e.duplicates.indexOf(n), h = c !== -1), (e.tag !== null && e.tag !== "?" || h || e.indent !== 2 && t > 0) && (i = !1), h && e.usedDuplicates[c])
2238
+ var d = l === "[object Object]" || l === "[object Array]", c, m;
2239
+ if (d && (c = e.duplicates.indexOf(n), m = c !== -1), (e.tag !== null && e.tag !== "?" || m || e.indent !== 2 && t > 0) && (i = !1), m && e.usedDuplicates[c])
2238
2240
  e.dump = "*ref_" + c;
2239
2241
  else {
2240
- if (d && h && !e.usedDuplicates[c] && (e.usedDuplicates[c] = !0), l === "[object Object]")
2241
- r && Object.keys(e.dump).length !== 0 ? (Ya(e, t, e.dump, i), h && (e.dump = "&ref_" + c + e.dump)) : (Va(e, t, e.dump), h && (e.dump = "&ref_" + c + " " + e.dump));
2242
+ if (d && m && !e.usedDuplicates[c] && (e.usedDuplicates[c] = !0), l === "[object Object]")
2243
+ r && Object.keys(e.dump).length !== 0 ? (Ya(e, t, e.dump, i), m && (e.dump = "&ref_" + c + e.dump)) : (Va(e, t, e.dump), m && (e.dump = "&ref_" + c + " " + e.dump));
2242
2244
  else if (l === "[object Array]")
2243
- r && e.dump.length !== 0 ? (e.noArrayIndent && !o && t > 0 ? Et(e, t - 1, e.dump, i) : Et(e, t, e.dump, i), h && (e.dump = "&ref_" + c + e.dump)) : (Ha(e, t, e.dump), h && (e.dump = "&ref_" + c + " " + e.dump));
2245
+ r && e.dump.length !== 0 ? (e.noArrayIndent && !o && t > 0 ? Et(e, t - 1, e.dump, i) : Et(e, t, e.dump, i), m && (e.dump = "&ref_" + c + e.dump)) : (Ha(e, t, e.dump), m && (e.dump = "&ref_" + c + " " + e.dump));
2244
2246
  else if (l === "[object String]")
2245
2247
  e.tag !== "?" && ja(e, e.dump, t, a, s);
2246
2248
  else {
@@ -2258,21 +2260,21 @@ function ce(e, t, n, r, i, a, o) {
2258
2260
  }
2259
2261
  function za(e, t) {
2260
2262
  var n = [], r = [], i, a;
2261
- for (Qe(e, n, r), i = 0, a = r.length; i < a; i += 1)
2263
+ for (Xe(e, n, r), i = 0, a = r.length; i < a; i += 1)
2262
2264
  t.duplicates.push(n[r[i]]);
2263
2265
  t.usedDuplicates = new Array(a);
2264
2266
  }
2265
- function Qe(e, t, n) {
2267
+ function Xe(e, t, n) {
2266
2268
  var r, i, a;
2267
2269
  if (e !== null && typeof e == "object")
2268
2270
  if (i = t.indexOf(e), i !== -1)
2269
2271
  n.indexOf(i) === -1 && n.push(i);
2270
2272
  else if (t.push(e), Array.isArray(e))
2271
2273
  for (i = 0, a = e.length; i < a; i += 1)
2272
- Qe(e[i], t, n);
2274
+ Xe(e[i], t, n);
2273
2275
  else
2274
2276
  for (r = Object.keys(e), i = 0, a = r.length; i < a; i += 1)
2275
- Qe(e[r[i]], t, n);
2277
+ Xe(e[r[i]], t, n);
2276
2278
  }
2277
2279
  function Wa(e, t) {
2278
2280
  t = t || {};
@@ -2285,12 +2287,12 @@ function Wa(e, t) {
2285
2287
  var Ja = Wa, Ga = {
2286
2288
  dump: Ja
2287
2289
  };
2288
- function ot(e, t) {
2290
+ function lt(e, t) {
2289
2291
  return function() {
2290
2292
  throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + t + " instead, which is now safe by default.");
2291
2293
  };
2292
2294
  }
2293
- var Za = X, Qa = Pt, Xa = zt, eo = Qt, to = Xt, no = nt, ro = yn.load, io = yn.loadAll, ao = Ga.dump, oo = te, lo = {
2295
+ var Za = X, Qa = Pt, Xa = zt, eo = Qt, to = Xt, no = rt, ro = yn.load, io = yn.loadAll, ao = Ga.dump, oo = te, lo = {
2294
2296
  binary: an,
2295
2297
  float: Zt,
2296
2298
  map: Yt,
@@ -2304,7 +2306,7 @@ var Za = X, Qa = Pt, Xa = zt, eo = Qt, to = Xt, no = nt, ro = yn.load, io = yn.l
2304
2306
  omap: on,
2305
2307
  seq: Vt,
2306
2308
  str: Ht
2307
- }, so = ot("safeLoad", "load"), co = ot("safeLoadAll", "loadAll"), uo = ot("safeDump", "dump"), fo = {
2309
+ }, so = lt("safeLoad", "load"), co = lt("safeLoadAll", "loadAll"), uo = lt("safeDump", "dump"), fo = {
2308
2310
  Type: Za,
2309
2311
  Schema: Qa,
2310
2312
  FAILSAFE_SCHEMA: Xa,
@@ -2330,20 +2332,20 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
2330
2332
  }
2331
2333
  },
2332
2334
  setup(e) {
2333
- const t = e, n = A(() => {
2335
+ const t = e, n = w(() => {
2334
2336
  const r = Object.fromEntries(Object.entries(t.yamlRecord).filter(([, i]) => i !== null && i !== "" && (Array.isArray(i) ? i.length !== 0 : !0)));
2335
2337
  return Object.keys(r).length === 0 && r.constructor === Object ? "" : fo.dump(r).trim();
2336
2338
  });
2337
2339
  return (r, i) => {
2338
- const a = B("KCodeBlock");
2339
- return m(), I("div", po, [
2340
- t.yamlRecord ? (m(), M(a, {
2340
+ const a = K("KCodeBlock");
2341
+ return g(), I("div", po, [
2342
+ t.yamlRecord ? (g(), M(a, {
2341
2343
  key: 0,
2342
2344
  id: "yaml-codeblock",
2343
2345
  code: n.value,
2344
2346
  language: "yaml",
2345
2347
  theme: "dark"
2346
- }, null, 8, ["code"])) : D("", !0)
2348
+ }, null, 8, ["code"])) : U("", !0)
2347
2349
  ]);
2348
2350
  };
2349
2351
  }
@@ -2392,29 +2394,29 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
2392
2394
  }
2393
2395
  },
2394
2396
  setup(e) {
2395
- const t = e, n = Xe(), { i18n: { t: r } } = z.useI18n(), i = (o) => !!(o.tooltip || n[`${o.key}-label-tooltip`]), a = A(() => {
2397
+ const t = e, n = et(), { i18n: { t: r } } = W.useI18n(), i = (o) => !!(o.tooltip || n[`${o.key}-label-tooltip`]), a = w(() => {
2396
2398
  if (!t.record)
2397
2399
  return t.record;
2398
2400
  const o = JSON.parse(JSON.stringify(t.record));
2399
2401
  return delete o.created_at, delete o.updated_at, o;
2400
2402
  });
2401
- return (o, l) => (m(), I(se, null, [
2402
- e.format === "structured" ? (m(), I("div", ho, [
2403
- (m(!0), I(se, null, ae(e.propListTypes, (s) => (m(), I("div", {
2403
+ return (o, l) => (g(), I(se, null, [
2404
+ e.format === "structured" ? (g(), I("div", ho, [
2405
+ (g(!0), I(se, null, ae(e.propListTypes, (s) => (g(), I("div", {
2404
2406
  key: `config-card-details-${s}-props`,
2405
2407
  class: de(`config-card-details-${s}-props`),
2406
2408
  "data-testid": `config-card-details-${s}-props`
2407
2409
  }, [
2408
- s !== "basic" ? (m(), I("div", go, O(s === "advanced" ? E(r)("baseConfigCard.sections.advanced") : E(r)("baseConfigCard.sections.plugin")), 1)) : D("", !0),
2409
- (m(!0), I(se, null, ae(e.propertyCollections[s], (u) => (m(), M(Dt, {
2410
+ s !== "basic" ? (g(), I("div", go, $(s === "advanced" ? E(r)("baseConfigCard.sections.advanced") : E(r)("baseConfigCard.sections.plugin")), 1)) : U("", !0),
2411
+ (g(!0), I(se, null, ae(e.propertyCollections[s], (u) => (g(), M(Dt, {
2410
2412
  key: u.key,
2411
2413
  item: u
2412
2414
  }, ke({
2413
- label: x(() => [
2414
- Y(o.$slots, `${u.key}-label`, { row: u }, void 0, !0)
2415
+ label: b(() => [
2416
+ z(o.$slots, `${u.key}-label`, { row: u }, void 0, !0)
2415
2417
  ]),
2416
- [u.key]: x(({ rowValue: d }) => [
2417
- Y(o.$slots, u.key, {
2418
+ [u.key]: b(({ rowValue: d }) => [
2419
+ z(o.$slots, u.key, {
2418
2420
  row: u,
2419
2421
  rowValue: d
2420
2422
  }, void 0, !0)
@@ -2423,33 +2425,33 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
2423
2425
  }, [
2424
2426
  i(u) ? {
2425
2427
  name: "label-tooltip",
2426
- fn: x(() => [
2427
- Y(o.$slots, `${u.key}-label-tooltip`, { row: u }, void 0, !0)
2428
+ fn: b(() => [
2429
+ z(o.$slots, `${u.key}-label-tooltip`, { row: u }, void 0, !0)
2428
2430
  ]),
2429
2431
  key: "0"
2430
2432
  } : void 0
2431
2433
  ]), 1032, ["item"]))), 128))
2432
2434
  ], 10, mo))), 128))
2433
- ])) : D("", !0),
2434
- e.format === "json" && t.record ? (m(), M(Ut, {
2435
+ ])) : U("", !0),
2436
+ e.format === "json" && t.record ? (g(), M(Ut, {
2435
2437
  key: 1,
2436
2438
  config: t.config,
2437
2439
  "fetcher-url": t.fetcherUrl,
2438
2440
  "json-record": a.value,
2439
2441
  "request-method": "get"
2440
- }, null, 8, ["config", "fetcher-url", "json-record"])) : D("", !0),
2441
- e.format === "yaml" && t.record ? (m(), M(Tn, {
2442
+ }, null, 8, ["config", "fetcher-url", "json-record"])) : U("", !0),
2443
+ e.format === "yaml" && t.record ? (g(), M(Tn, {
2442
2444
  key: 2,
2443
2445
  "yaml-record": a.value
2444
- }, null, 8, ["yaml-record"])) : D("", !0)
2446
+ }, null, 8, ["yaml-record"])) : U("", !0)
2445
2447
  ], 64));
2446
2448
  }
2447
- }), vo = /* @__PURE__ */ ie(yo, [["__scopeId", "data-v-147a2f70"]]), le = "24px", Ne = (e, t) => {
2449
+ }), vo = /* @__PURE__ */ ie(yo, [["__scopeId", "data-v-147a2f70"]]), le = "24px", Re = (e, t) => {
2448
2450
  const n = e.__vccOpts || e;
2449
2451
  for (const [r, i] of t)
2450
2452
  n[r] = i;
2451
2453
  return n;
2452
- }, bo = (e) => ($e("data-v-1d2a8d30"), e = e(), Le(), e), xo = ["aria-hidden"], Co = {
2454
+ }, bo = (e) => (Le("data-v-1d2a8d30"), e = e(), Ne(), e), xo = ["aria-hidden"], Co = {
2453
2455
  key: 0,
2454
2456
  "data-testid": "kui-icon-svg-title"
2455
2457
  }, _o = /* @__PURE__ */ bo(() => /* @__PURE__ */ L("path", {
@@ -2507,7 +2509,7 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
2507
2509
  }
2508
2510
  },
2509
2511
  setup(e) {
2510
- const t = e, n = A(() => {
2512
+ const t = e, n = w(() => {
2511
2513
  if (typeof t.size == "number" && t.size > 0)
2512
2514
  return `${t.size}px`;
2513
2515
  if (typeof t.size == "string") {
@@ -2516,7 +2518,7 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
2516
2518
  return `${a}px`;
2517
2519
  }
2518
2520
  return le;
2519
- }), r = A(() => ({
2521
+ }), r = w(() => ({
2520
2522
  boxSizing: "border-box",
2521
2523
  color: t.color,
2522
2524
  display: t.display,
@@ -2524,14 +2526,14 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
2524
2526
  lineHeight: "0",
2525
2527
  width: n.value
2526
2528
  }));
2527
- return (i, a) => (m(), M(pe(e.as), {
2529
+ return (i, a) => (g(), M(pe(e.as), {
2528
2530
  "aria-hidden": e.decorative ? "true" : void 0,
2529
2531
  class: "kui-icon add-icon",
2530
2532
  "data-testid": "kui-icon-wrapper-add-icon",
2531
- style: Oe(r.value)
2533
+ style: $e(r.value)
2532
2534
  }, {
2533
- default: x(() => [
2534
- (m(), I("svg", {
2535
+ default: b(() => [
2536
+ (g(), I("svg", {
2535
2537
  "aria-hidden": e.decorative ? "true" : void 0,
2536
2538
  "data-testid": "kui-icon-svg-add-icon",
2537
2539
  fill: "none",
@@ -2541,14 +2543,14 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
2541
2543
  width: "100%",
2542
2544
  xmlns: "http://www.w3.org/2000/svg"
2543
2545
  }, [
2544
- e.title ? (m(), I("title", Co, O(e.title), 1)) : D("", !0),
2546
+ e.title ? (g(), I("title", Co, $(e.title), 1)) : U("", !0),
2545
2547
  _o
2546
2548
  ], 8, xo))
2547
2549
  ]),
2548
2550
  _: 1
2549
2551
  }, 8, ["aria-hidden", "style"]));
2550
2552
  }
2551
- }), wo = /* @__PURE__ */ Ne(ko, [["__scopeId", "data-v-1d2a8d30"]]), Ao = (e) => ($e("data-v-929b4762"), e = e(), Le(), e), So = ["aria-hidden"], Io = {
2553
+ }), wo = /* @__PURE__ */ Re(ko, [["__scopeId", "data-v-1d2a8d30"]]), Ao = (e) => (Le("data-v-929b4762"), e = e(), Ne(), e), So = ["aria-hidden"], Io = {
2552
2554
  key: 0,
2553
2555
  "data-testid": "kui-icon-svg-title"
2554
2556
  }, Eo = /* @__PURE__ */ Ao(() => /* @__PURE__ */ L("path", {
@@ -2606,7 +2608,7 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
2606
2608
  }
2607
2609
  },
2608
2610
  setup(e) {
2609
- const t = e, n = A(() => {
2611
+ const t = e, n = w(() => {
2610
2612
  if (typeof t.size == "number" && t.size > 0)
2611
2613
  return `${t.size}px`;
2612
2614
  if (typeof t.size == "string") {
@@ -2615,7 +2617,7 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
2615
2617
  return `${a}px`;
2616
2618
  }
2617
2619
  return le;
2618
- }), r = A(() => ({
2620
+ }), r = w(() => ({
2619
2621
  boxSizing: "border-box",
2620
2622
  color: t.color,
2621
2623
  display: t.display,
@@ -2623,14 +2625,14 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
2623
2625
  lineHeight: "0",
2624
2626
  width: n.value
2625
2627
  }));
2626
- return (i, a) => (m(), M(pe(e.as), {
2628
+ return (i, a) => (g(), M(pe(e.as), {
2627
2629
  "aria-hidden": e.decorative ? "true" : void 0,
2628
2630
  class: "kui-icon book-icon",
2629
2631
  "data-testid": "kui-icon-wrapper-book-icon",
2630
- style: Oe(r.value)
2632
+ style: $e(r.value)
2631
2633
  }, {
2632
- default: x(() => [
2633
- (m(), I("svg", {
2634
+ default: b(() => [
2635
+ (g(), I("svg", {
2634
2636
  "aria-hidden": e.decorative ? "true" : void 0,
2635
2637
  "data-testid": "kui-icon-svg-book-icon",
2636
2638
  fill: "none",
@@ -2640,14 +2642,14 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
2640
2642
  width: "100%",
2641
2643
  xmlns: "http://www.w3.org/2000/svg"
2642
2644
  }, [
2643
- e.title ? (m(), I("title", Io, O(e.title), 1)) : D("", !0),
2645
+ e.title ? (g(), I("title", Io, $(e.title), 1)) : U("", !0),
2644
2646
  Eo
2645
2647
  ], 8, So))
2646
2648
  ]),
2647
2649
  _: 1
2648
2650
  }, 8, ["aria-hidden", "style"]));
2649
2651
  }
2650
- }), Fo = /* @__PURE__ */ Ne(To, [["__scopeId", "data-v-929b4762"]]), Oo = (e) => ($e("data-v-219f8484"), e = e(), Le(), e), $o = ["aria-hidden"], Lo = {
2652
+ }), Fo = /* @__PURE__ */ Re(To, [["__scopeId", "data-v-929b4762"]]), Oo = (e) => (Le("data-v-219f8484"), e = e(), Ne(), e), $o = ["aria-hidden"], Lo = {
2651
2653
  key: 0,
2652
2654
  "data-testid": "kui-icon-svg-title"
2653
2655
  }, No = /* @__PURE__ */ Oo(() => /* @__PURE__ */ L("path", {
@@ -2705,7 +2707,7 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
2705
2707
  }
2706
2708
  },
2707
2709
  setup(e) {
2708
- const t = e, n = A(() => {
2710
+ const t = e, n = w(() => {
2709
2711
  if (typeof t.size == "number" && t.size > 0)
2710
2712
  return `${t.size}px`;
2711
2713
  if (typeof t.size == "string") {
@@ -2714,7 +2716,7 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
2714
2716
  return `${a}px`;
2715
2717
  }
2716
2718
  return le;
2717
- }), r = A(() => ({
2719
+ }), r = w(() => ({
2718
2720
  boxSizing: "border-box",
2719
2721
  color: t.color,
2720
2722
  display: t.display,
@@ -2722,14 +2724,14 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
2722
2724
  lineHeight: "0",
2723
2725
  width: n.value
2724
2726
  }));
2725
- return (i, a) => (m(), M(pe(e.as), {
2727
+ return (i, a) => (g(), M(pe(e.as), {
2726
2728
  "aria-hidden": e.decorative ? "true" : void 0,
2727
2729
  class: "kui-icon chevron-down-icon",
2728
2730
  "data-testid": "kui-icon-wrapper-chevron-down-icon",
2729
- style: Oe(r.value)
2731
+ style: $e(r.value)
2730
2732
  }, {
2731
- default: x(() => [
2732
- (m(), I("svg", {
2733
+ default: b(() => [
2734
+ (g(), I("svg", {
2733
2735
  "aria-hidden": e.decorative ? "true" : void 0,
2734
2736
  "data-testid": "kui-icon-svg-chevron-down-icon",
2735
2737
  fill: "none",
@@ -2739,14 +2741,14 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
2739
2741
  width: "100%",
2740
2742
  xmlns: "http://www.w3.org/2000/svg"
2741
2743
  }, [
2742
- e.title ? (m(), I("title", Lo, O(e.title), 1)) : D("", !0),
2744
+ e.title ? (g(), I("title", Lo, $(e.title), 1)) : U("", !0),
2743
2745
  No
2744
2746
  ], 8, $o))
2745
2747
  ]),
2746
2748
  _: 1
2747
2749
  }, 8, ["aria-hidden", "style"]));
2748
2750
  }
2749
- }), Bo = /* @__PURE__ */ Ne(Ro, [["__scopeId", "data-v-219f8484"]]), Ko = (e) => ($e("data-v-ed11facd"), e = e(), Le(), e), Mo = ["aria-hidden"], Do = {
2751
+ }), Bo = /* @__PURE__ */ Re(Ro, [["__scopeId", "data-v-219f8484"]]), Ko = (e) => (Le("data-v-ed11facd"), e = e(), Ne(), e), Mo = ["aria-hidden"], Do = {
2750
2752
  key: 0,
2751
2753
  "data-testid": "kui-icon-svg-title"
2752
2754
  }, Uo = /* @__PURE__ */ Ko(() => /* @__PURE__ */ L("path", {
@@ -2804,7 +2806,7 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
2804
2806
  }
2805
2807
  },
2806
2808
  setup(e) {
2807
- const t = e, n = A(() => {
2809
+ const t = e, n = w(() => {
2808
2810
  if (typeof t.size == "number" && t.size > 0)
2809
2811
  return `${t.size}px`;
2810
2812
  if (typeof t.size == "string") {
@@ -2813,7 +2815,7 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
2813
2815
  return `${a}px`;
2814
2816
  }
2815
2817
  return le;
2816
- }), r = A(() => ({
2818
+ }), r = w(() => ({
2817
2819
  boxSizing: "border-box",
2818
2820
  color: t.color,
2819
2821
  display: t.display,
@@ -2821,14 +2823,14 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
2821
2823
  lineHeight: "0",
2822
2824
  width: n.value
2823
2825
  }));
2824
- return (i, a) => (m(), M(pe(e.as), {
2826
+ return (i, a) => (g(), M(pe(e.as), {
2825
2827
  "aria-hidden": e.decorative ? "true" : void 0,
2826
2828
  class: "kui-icon close-icon",
2827
2829
  "data-testid": "kui-icon-wrapper-close-icon",
2828
- style: Oe(r.value)
2830
+ style: $e(r.value)
2829
2831
  }, {
2830
- default: x(() => [
2831
- (m(), I("svg", {
2832
+ default: b(() => [
2833
+ (g(), I("svg", {
2832
2834
  "aria-hidden": e.decorative ? "true" : void 0,
2833
2835
  "data-testid": "kui-icon-svg-close-icon",
2834
2836
  fill: "none",
@@ -2838,14 +2840,14 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
2838
2840
  width: "100%",
2839
2841
  xmlns: "http://www.w3.org/2000/svg"
2840
2842
  }, [
2841
- e.title ? (m(), I("title", Do, O(e.title), 1)) : D("", !0),
2843
+ e.title ? (g(), I("title", Do, $(e.title), 1)) : U("", !0),
2842
2844
  Uo
2843
2845
  ], 8, Mo))
2844
2846
  ]),
2845
2847
  _: 1
2846
2848
  }, 8, ["aria-hidden", "style"]));
2847
2849
  }
2848
- }), qo = /* @__PURE__ */ Ne(jo, [["__scopeId", "data-v-ed11facd"]]), Po = (e) => ($e("data-v-4399d24a"), e = e(), Le(), e), Ho = ["aria-hidden"], Vo = {
2850
+ }), qo = /* @__PURE__ */ Re(jo, [["__scopeId", "data-v-ed11facd"]]), Po = (e) => (Le("data-v-4399d24a"), e = e(), Ne(), e), Ho = ["aria-hidden"], Vo = {
2849
2851
  key: 0,
2850
2852
  "data-testid": "kui-icon-svg-title"
2851
2853
  }, Yo = /* @__PURE__ */ Po(() => /* @__PURE__ */ L("path", {
@@ -2903,7 +2905,7 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
2903
2905
  }
2904
2906
  },
2905
2907
  setup(e) {
2906
- const t = e, n = A(() => {
2908
+ const t = e, n = w(() => {
2907
2909
  if (typeof t.size == "number" && t.size > 0)
2908
2910
  return `${t.size}px`;
2909
2911
  if (typeof t.size == "string") {
@@ -2912,7 +2914,7 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
2912
2914
  return `${a}px`;
2913
2915
  }
2914
2916
  return le;
2915
- }), r = A(() => ({
2917
+ }), r = w(() => ({
2916
2918
  boxSizing: "border-box",
2917
2919
  color: t.color,
2918
2920
  display: t.display,
@@ -2920,14 +2922,14 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
2920
2922
  lineHeight: "0",
2921
2923
  width: n.value
2922
2924
  }));
2923
- return (i, a) => (m(), M(pe(e.as), {
2925
+ return (i, a) => (g(), M(pe(e.as), {
2924
2926
  "aria-hidden": e.decorative ? "true" : void 0,
2925
2927
  class: "kui-icon copy-icon",
2926
2928
  "data-testid": "kui-icon-wrapper-copy-icon",
2927
- style: Oe(r.value)
2929
+ style: $e(r.value)
2928
2930
  }, {
2929
- default: x(() => [
2930
- (m(), I("svg", {
2931
+ default: b(() => [
2932
+ (g(), I("svg", {
2931
2933
  "aria-hidden": e.decorative ? "true" : void 0,
2932
2934
  "data-testid": "kui-icon-svg-copy-icon",
2933
2935
  fill: "none",
@@ -2937,14 +2939,14 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
2937
2939
  width: "100%",
2938
2940
  xmlns: "http://www.w3.org/2000/svg"
2939
2941
  }, [
2940
- e.title ? (m(), I("title", Vo, O(e.title), 1)) : D("", !0),
2942
+ e.title ? (g(), I("title", Vo, $(e.title), 1)) : U("", !0),
2941
2943
  Yo
2942
2944
  ], 8, Ho))
2943
2945
  ]),
2944
2946
  _: 1
2945
2947
  }, 8, ["aria-hidden", "style"]));
2946
2948
  }
2947
- }), Wo = /* @__PURE__ */ Ne(zo, [["__scopeId", "data-v-4399d24a"]]), Jo = {
2949
+ }), Wo = /* @__PURE__ */ Re(zo, [["__scopeId", "data-v-4399d24a"]]), Jo = {
2948
2950
  class: "config-card-title",
2949
2951
  "data-testid": "config-card-title"
2950
2952
  }, Go = { class: "config-card-actions" }, Zo = ["href"], Qo = { class: "config-card-details-section" }, Xo = /* @__PURE__ */ H({
@@ -3025,8 +3027,8 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
3025
3027
  },
3026
3028
  emits: ["loading", "fetch:success", "fetch:error"],
3027
3029
  setup(e, { emit: t }) {
3028
- var y;
3029
- const n = t, r = e, { i18n: { t: i } } = z.useI18n(), { getMessageFromError: a } = z.useErrors(), { convertKeyToTitle: o } = z.useStringHelpers(), { axiosInstance: l } = z.useAxios((y = r.config) == null ? void 0 : y.axiosRequestConfig), s = [
3030
+ var A;
3031
+ const n = t, r = e, { i18n: { t: i } } = W.useI18n(), { getMessageFromError: a } = W.useErrors(), { convertKeyToTitle: o } = W.useStringHelpers(), { axiosInstance: l } = W.useAxios((A = r.config) == null ? void 0 : A.axiosRequestConfig), s = [
3030
3032
  {
3031
3033
  label: i("baseConfigCard.general.structuredFormat"),
3032
3034
  value: "structured",
@@ -3040,8 +3042,8 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
3040
3042
  label: "YAML",
3041
3043
  value: "yaml"
3042
3044
  }
3043
- ], u = K("structured"), d = (g) => {
3044
- u.value = g == null ? void 0 : g.value;
3045
+ ], u = B("structured"), d = (f) => {
3046
+ u.value = f == null ? void 0 : f.value;
3045
3047
  }, c = {
3046
3048
  id: {
3047
3049
  type: P.ID,
@@ -3076,123 +3078,123 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
3076
3078
  // the last property displayed
3077
3079
  section: re.Basic
3078
3080
  }
3079
- }, h = K(!1), f = K(!1), v = K(""), b = K({}), _ = A(() => {
3080
- var F, w, U;
3081
- if (!b.value)
3081
+ }, m = B(!1), p = B(!1), y = B(""), v = B({}), _ = w(() => {
3082
+ var O, x, j;
3083
+ if (!v.value)
3082
3084
  return [];
3083
- const g = [], $ = Object.keys(b.value).length;
3084
- for (const T in b.value) {
3085
- const S = (w = (F = r.configSchema) == null ? void 0 : F[T]) == null ? void 0 : w.order, j = (U = c[T]) == null ? void 0 : U.order;
3086
- let q = $;
3087
- (j || j === 0) && (q = j === -1 ? $ + 1 : j), S && (q = S === -1 ? $ + 1 : S), g.push([T, q]);
3085
+ const f = [], S = Object.keys(v.value).length;
3086
+ for (const T in v.value) {
3087
+ const F = (x = (O = r.configSchema) == null ? void 0 : O[T]) == null ? void 0 : x.order, D = (j = c[T]) == null ? void 0 : j.order;
3088
+ let q = S;
3089
+ (D || D === 0) && (q = D === -1 ? S + 1 : D), F && (q = F === -1 ? S + 1 : F), f.push([T, q]);
3088
3090
  }
3089
- return g.sort(function(T, S) {
3090
- return T[1] - S[1];
3091
- }), g.map((T) => {
3092
- var he, lt;
3093
- const S = T[0], j = (he = b.value) == null ? void 0 : he[S], q = ((lt = r.configSchema) == null ? void 0 : lt[S]) || {}, J = c[S];
3091
+ return f.sort(function(T, F) {
3092
+ return T[1] - F[1];
3093
+ }), f.map((T) => {
3094
+ var ye, Se;
3095
+ const F = T[0], D = (ye = v.value) == null ? void 0 : ye[F], q = ((Se = r.configSchema) == null ? void 0 : Se[F]) || {}, V = c[F];
3094
3096
  return {
3095
- key: S,
3096
- value: j,
3097
+ key: F,
3098
+ value: D,
3097
3099
  hidden: q.hidden || !1,
3098
- type: q.type ?? ((J == null ? void 0 : J.type) || P.Text),
3099
- label: q.label ?? ((J == null ? void 0 : J.label) || o(S)),
3100
- tooltip: q.tooltip ?? ((J == null ? void 0 : J.tooltip) || void 0),
3101
- section: q.section ?? ((J == null ? void 0 : J.section) || re.Advanced)
3100
+ type: q.type ?? ((V == null ? void 0 : V.type) || P.Text),
3101
+ label: q.label ?? ((V == null ? void 0 : V.label) || o(F)),
3102
+ tooltip: q.tooltip ?? ((V == null ? void 0 : V.tooltip) || void 0),
3103
+ section: q.section ?? ((V == null ? void 0 : V.section) || re.Advanced)
3102
3104
  };
3103
3105
  }).filter((T) => !T.hidden && T.key !== r.pluginConfigKey);
3104
- }), N = A(() => {
3105
- var w, U;
3106
- if (!b.value || !r.pluginConfigKey)
3106
+ }), N = w(() => {
3107
+ var x, j;
3108
+ if (!v.value || !r.pluginConfigKey)
3107
3109
  return [];
3108
- const g = b.value[r.pluginConfigKey] || {}, $ = Object.keys(g).length, F = [];
3109
- for (const T in g) {
3110
- const S = (U = (w = r.pluginConfigSchema) == null ? void 0 : w[T]) == null ? void 0 : U.order, j = g[T];
3111
- let q = j != null && j !== "" ? $ - 1 : $;
3112
- S && (q = S === -1 ? $ + 1 : S), F.push([T, q]);
3110
+ const f = v.value[r.pluginConfigKey] || {}, S = Object.keys(f).length, O = [];
3111
+ for (const T in f) {
3112
+ const F = (j = (x = r.pluginConfigSchema) == null ? void 0 : x[T]) == null ? void 0 : j.order, D = f[T];
3113
+ let q = D != null && D !== "" ? S - 1 : S;
3114
+ F && (q = F === -1 ? S + 1 : F), O.push([T, q]);
3113
3115
  }
3114
- return F.sort(function(T, S) {
3115
- return T[1] - S[1];
3116
- }), F.map((T) => {
3117
- var J;
3118
- const S = T[0], j = g[S], q = ((J = r.pluginConfigSchema) == null ? void 0 : J[S]) || {};
3116
+ return O.sort(function(T, F) {
3117
+ return T[1] - F[1];
3118
+ }), O.map((T) => {
3119
+ var V;
3120
+ const F = T[0], D = f[F], q = ((V = r.pluginConfigSchema) == null ? void 0 : V[F]) || {};
3119
3121
  return {
3120
- key: S,
3121
- value: j,
3122
+ key: F,
3123
+ value: D,
3122
3124
  hidden: q.hidden || !1,
3123
3125
  type: q.type ?? P.Text,
3124
- label: q.label ?? o(S),
3126
+ label: q.label ?? o(F),
3125
3127
  tooltip: q.tooltip ?? void 0,
3126
3128
  section: re.Plugin
3127
3129
  };
3128
3130
  }).filter((T) => !T.hidden);
3129
- }), k = A(() => {
3130
- var g, $, F, w;
3131
+ }), k = w(() => {
3132
+ var f, S, O, x;
3131
3133
  return {
3132
- basic: (g = _.value) == null ? void 0 : g.filter((U) => U.section === re.Basic),
3133
- advanced: ($ = _.value) == null ? void 0 : $.filter((U) => U.section === re.Advanced),
3134
- plugin: (w = N.value) == null ? void 0 : w.concat((F = _.value) == null ? void 0 : F.filter((U) => U.section === re.Plugin))
3134
+ basic: (f = _.value) == null ? void 0 : f.filter((j) => j.section === re.Basic),
3135
+ advanced: (S = _.value) == null ? void 0 : S.filter((j) => j.section === re.Advanced),
3136
+ plugin: (x = N.value) == null ? void 0 : x.concat((O = _.value) == null ? void 0 : O.filter((j) => j.section === re.Plugin))
3135
3137
  };
3136
- }), Z = A(() => {
3137
- const g = [];
3138
- return k.value.basic.length && g.push("basic"), k.value.advanced.length && g.push("advanced"), k.value.plugin.length && g.push("plugin"), g;
3139
- }), p = A(() => {
3140
- var $, F;
3141
- let g = `${r.config.apiBaseUrl}${r.fetchUrl}`;
3142
- return r.config.app === "konnect" ? g = g.replace(/{controlPlaneId}/gi, (($ = r.config) == null ? void 0 : $.controlPlaneId) || "") : r.config.app === "kongManager" && (g = g.replace(/\/{workspace}/gi, (F = r.config) != null && F.workspace ? `/${r.config.workspace}` : "")), g = g.replace(/{id}/gi, r.config.entityId), g;
3138
+ }), Z = w(() => {
3139
+ const f = [];
3140
+ return k.value.basic.length && f.push("basic"), k.value.advanced.length && f.push("advanced"), k.value.plugin.length && f.push("plugin"), f;
3141
+ }), h = w(() => {
3142
+ var S, O;
3143
+ let f = `${r.config.apiBaseUrl}${r.fetchUrl}`;
3144
+ return r.config.app === "konnect" ? f = f.replace(/{controlPlaneId}/gi, ((S = r.config) == null ? void 0 : S.controlPlaneId) || "") : r.config.app === "kongManager" && (f = f.replace(/\/{workspace}/gi, (O = r.config) != null && O.workspace ? `/${r.config.workspace}` : "")), f = f.replace(/{id}/gi, r.config.entityId), f;
3143
3145
  });
3144
- return Ae(h, (g) => {
3145
- n("loading", g);
3146
+ return Ae(m, (f) => {
3147
+ n("loading", f);
3146
3148
  }, { immediate: !0 }), Lt(async () => {
3147
- f.value = !1, h.value = !0;
3149
+ p.value = !1, m.value = !0;
3148
3150
  try {
3149
- const { data: g } = await l.get(p.value);
3151
+ const { data: f } = await l.get(h.value);
3150
3152
  if (r.dataKey)
3151
- if (typeof g[r.dataKey] < "u")
3152
- b.value = { ...g[r.dataKey] };
3153
+ if (typeof f[r.dataKey] < "u")
3154
+ v.value = { ...f[r.dataKey] };
3153
3155
  else
3154
3156
  throw new Error(i("errors.dataKeyUndefined", { dataKey: r.dataKey }));
3155
3157
  else
3156
- b.value = { ...g };
3157
- Object.keys(r.configSchema).filter((F) => r.configSchema[F].forceShow).forEach((F) => {
3158
- b.value && typeof b.value[F] > "u" && (b.value[F] = null);
3159
- }), n("fetch:success", g);
3160
- } catch (g) {
3161
- const $ = a(g);
3162
- v.value = $.startsWith("code") ? i("baseConfigCard.errors.load") : $, f.value = !0, n("fetch:error", g);
3158
+ v.value = { ...f };
3159
+ Object.keys(r.configSchema).filter((O) => r.configSchema[O].forceShow).forEach((O) => {
3160
+ v.value && typeof v.value[O] > "u" && (v.value[O] = null);
3161
+ }), n("fetch:success", f);
3162
+ } catch (f) {
3163
+ const S = a(f);
3164
+ y.value = S.startsWith("code") ? i("baseConfigCard.errors.load") : S, p.value = !0, n("fetch:error", f);
3163
3165
  } finally {
3164
- h.value = !1;
3166
+ m.value = !1;
3165
3167
  }
3166
- }), (g, $) => {
3167
- const F = B("KLabel"), w = B("KSelect"), U = B("KButton"), T = B("KSkeleton"), S = B("KEmptyState"), j = B("KCard");
3168
- return m(), M(j, {
3168
+ }), (f, S) => {
3169
+ const O = K("KLabel"), x = K("KSelect"), j = K("KButton"), T = K("KSkeleton"), F = K("KEmptyState"), D = K("KCard");
3170
+ return g(), M(D, {
3169
3171
  class: "kong-ui-entity-base-config-card",
3170
3172
  "title-tag": e.titleTag
3171
3173
  }, ke({
3172
- actions: x(() => [
3174
+ actions: b(() => [
3173
3175
  L("div", Go, [
3174
- Y(g.$slots, "actions", {}, void 0, !0),
3175
- R(F, {
3176
+ z(f.$slots, "actions", {}, void 0, !0),
3177
+ R(O, {
3176
3178
  class: "config-format-select-label",
3177
3179
  "data-testid": "config-format-select-label"
3178
3180
  }, {
3179
- default: x(() => [
3180
- V(O(e.label), 1)
3181
+ default: b(() => [
3182
+ Y($(e.label), 1)
3181
3183
  ]),
3182
3184
  _: 1
3183
3185
  }),
3184
- R(w, {
3186
+ R(x, {
3185
3187
  "data-testid": "select-config-format",
3186
3188
  items: s,
3187
3189
  onChange: d
3188
3190
  }),
3189
- e.configCardDoc ? (m(), M(U, {
3191
+ e.configCardDoc ? (g(), M(j, {
3190
3192
  key: 0,
3191
3193
  appearance: "tertiary",
3192
3194
  class: "book-icon",
3193
3195
  "data-testid": "book-icon"
3194
3196
  }, {
3195
- default: x(() => [
3197
+ default: b(() => [
3196
3198
  L("a", {
3197
3199
  href: e.configCardDoc,
3198
3200
  rel: "noopener",
@@ -3202,40 +3204,40 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
3202
3204
  ], 8, Zo)
3203
3205
  ]),
3204
3206
  _: 1
3205
- })) : D("", !0)
3207
+ })) : U("", !0)
3206
3208
  ])
3207
3209
  ]),
3208
- default: x(() => [
3209
- h.value ? (m(), M(T, {
3210
+ default: b(() => [
3211
+ m.value ? (g(), M(T, {
3210
3212
  key: 0,
3211
3213
  "data-testid": "config-card-loader",
3212
3214
  "table-columns": 2,
3213
3215
  type: "table"
3214
- })) : f.value ? (m(), M(S, {
3216
+ })) : p.value ? (g(), M(F, {
3215
3217
  key: 1,
3216
3218
  "data-testid": "config-card-fetch-error",
3217
3219
  "icon-variant": "error"
3218
3220
  }, {
3219
- default: x(() => [
3220
- L("h3", null, O(v.value), 1)
3221
+ default: b(() => [
3222
+ L("h3", null, $(y.value), 1)
3221
3223
  ]),
3222
3224
  _: 1
3223
- })) : D("", !0),
3225
+ })) : U("", !0),
3224
3226
  L("div", Qo, [
3225
3227
  R(vo, {
3226
3228
  config: e.config,
3227
- "fetcher-url": p.value,
3229
+ "fetcher-url": h.value,
3228
3230
  format: u.value,
3229
3231
  "prop-list-types": Z.value,
3230
3232
  "property-collections": k.value,
3231
- record: b.value
3233
+ record: v.value
3232
3234
  }, ke({ _: 2 }, [
3233
- ae(Object.keys(g.$slots), (q) => ({
3235
+ ae(Object.keys(f.$slots), (q) => ({
3234
3236
  name: q,
3235
- fn: x(({ row: J, rowValue: he }) => [
3236
- Y(g.$slots, q, {
3237
- row: J,
3238
- rowValue: he
3237
+ fn: b(({ row: V, rowValue: ye }) => [
3238
+ z(f.$slots, q, {
3239
+ row: V,
3240
+ rowValue: ye
3239
3241
  }, void 0, !0)
3240
3242
  ])
3241
3243
  }))
@@ -3246,10 +3248,10 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
3246
3248
  }, [
3247
3249
  e.hideTitle ? void 0 : {
3248
3250
  name: "title",
3249
- fn: x(() => [
3251
+ fn: b(() => [
3250
3252
  L("span", Jo, [
3251
- Y(g.$slots, "title", {}, () => [
3252
- V(O(E(i)("baseConfigCard.title")), 1)
3253
+ z(f.$slots, "title", {}, () => [
3254
+ Y($(E(i)("baseConfigCard.title")), 1)
3253
3255
  ], !0)
3254
3256
  ])
3255
3257
  ]),
@@ -3323,19 +3325,19 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
3323
3325
  emits: ["loading", "fetch:success", "fetch:error", "submit", "cancel"],
3324
3326
  setup(e, { emit: t }) {
3325
3327
  var Z;
3326
- const n = t, r = e, i = jn(), { i18n: { t: a } } = z.useI18n(), { getMessageFromError: o } = z.useErrors(), { axiosInstance: l } = z.useAxios((Z = r.config) == null ? void 0 : Z.axiosRequestConfig), s = K(!1), u = K(!1), d = K(""), c = A(() => r.canSubmit === !1 || r.isReadonly), h = K(!1), f = A(() => {
3327
- var y, g;
3328
- let p = `${r.config.apiBaseUrl}${r.fetchUrl}`;
3329
- return r.config.app === "konnect" ? p = p.replace(/{controlPlaneId}/gi, ((y = r.config) == null ? void 0 : y.controlPlaneId) || "") : r.config.app === "kongManager" && (p = p.replace(/\/{workspace}/gi, (g = r.config) != null && g.workspace ? `/${r.config.workspace}` : "")), r.editId ? (p = p.replace(/{id}/gi, r.editId), p) : (p = p.replace(/\/{id}/gi, ""), p);
3330
- }), v = () => {
3331
- h.value = !h.value;
3332
- }, b = () => {
3328
+ const n = t, r = e, i = jn(), { i18n: { t: a } } = W.useI18n(), { getMessageFromError: o } = W.useErrors(), { axiosInstance: l } = W.useAxios((Z = r.config) == null ? void 0 : Z.axiosRequestConfig), s = B(!1), u = B(!1), d = B(""), c = w(() => r.canSubmit === !1 || r.isReadonly), m = B(!1), p = w(() => {
3329
+ var A, f;
3330
+ let h = `${r.config.apiBaseUrl}${r.fetchUrl}`;
3331
+ return r.config.app === "konnect" ? h = h.replace(/{controlPlaneId}/gi, ((A = r.config) == null ? void 0 : A.controlPlaneId) || "") : r.config.app === "kongManager" && (h = h.replace(/\/{workspace}/gi, (f = r.config) != null && f.workspace ? `/${r.config.workspace}` : "")), r.editId ? (h = h.replace(/{id}/gi, r.editId), h) : (h = h.replace(/\/{id}/gi, ""), h);
3332
+ }), y = () => {
3333
+ m.value = !m.value;
3334
+ }, v = () => {
3333
3335
  r.config.cancelRoute ? i.push(r.config.cancelRoute) : _();
3334
3336
  }, _ = () => {
3335
3337
  n("cancel");
3336
3338
  }, N = () => {
3337
3339
  c.value || n("submit");
3338
- }, k = K([
3340
+ }, k = B([
3339
3341
  {
3340
3342
  title: a("baseForm.configuration.yaml"),
3341
3343
  hash: "#yaml"
@@ -3345,83 +3347,83 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
3345
3347
  hash: "#json"
3346
3348
  }
3347
3349
  ]);
3348
- return Ae(() => s.value, (p) => {
3349
- n("loading", p);
3350
+ return Ae(() => s.value, (h) => {
3351
+ n("loading", h);
3350
3352
  }, { immediate: !0 }), Lt(async () => {
3351
3353
  if (r.editId)
3352
3354
  try {
3353
3355
  u.value = !1, s.value = !0;
3354
- const { data: p } = await l.get(f.value);
3355
- n("fetch:success", p);
3356
- } catch (p) {
3357
- const y = o(p);
3358
- d.value = y.startsWith("code") ? a("baseForm.errors.edit") : y, u.value = !0, n("fetch:error", p);
3356
+ const { data: h } = await l.get(p.value);
3357
+ n("fetch:success", h);
3358
+ } catch (h) {
3359
+ const A = o(h);
3360
+ d.value = A.startsWith("code") ? a("baseForm.errors.edit") : A, u.value = !0, n("fetch:error", h);
3359
3361
  } finally {
3360
3362
  s.value = !1;
3361
3363
  }
3362
- }), (p, y) => {
3363
- const g = B("KSkeleton"), $ = B("KEmptyState"), F = B("KAlert"), w = B("KButton"), U = B("KTabs"), T = B("KSlideout"), S = B("KCard");
3364
- return m(), M(S, { class: "kong-ui-entity-base-form" }, {
3365
- default: x(() => [
3366
- s.value ? (m(), M(g, {
3364
+ }), (h, A) => {
3365
+ const f = K("KSkeleton"), S = K("KEmptyState"), O = K("KAlert"), x = K("KButton"), j = K("KTabs"), T = K("KSlideout"), F = K("KCard");
3366
+ return g(), M(F, { class: "kong-ui-entity-base-form" }, {
3367
+ default: b(() => [
3368
+ s.value ? (g(), M(f, {
3367
3369
  key: 0,
3368
3370
  type: "form"
3369
- })) : u.value ? (m(), M($, {
3371
+ })) : u.value ? (g(), M(S, {
3370
3372
  key: 1,
3371
3373
  "action-button-text": E(a)("baseForm.actions.back"),
3372
3374
  "data-testid": "form-fetch-error",
3373
3375
  "icon-variant": "error",
3374
- onClickAction: b
3376
+ onClickAction: v
3375
3377
  }, {
3376
- default: x(() => [
3377
- L("h3", null, O(d.value), 1)
3378
+ default: b(() => [
3379
+ L("h3", null, $(d.value), 1)
3378
3380
  ]),
3379
3381
  _: 1
3380
- }, 8, ["action-button-text"])) : (m(), I("form", {
3382
+ }, 8, ["action-button-text"])) : (g(), I("form", {
3381
3383
  key: 2,
3382
3384
  "data-testid": "form-content",
3383
3385
  novalidate: r.noValidate,
3384
- onReset: ze(_, ["prevent"]),
3385
- onSubmit: ze(N, ["prevent"])
3386
+ onReset: We(_, ["prevent"]),
3387
+ onSubmit: We(N, ["prevent"])
3386
3388
  }, [
3387
- Y(p.$slots, "default", {}, void 0, !0),
3388
- e.errorMessage ? (m(), M(F, {
3389
+ z(h.$slots, "default", {}, void 0, !0),
3390
+ e.errorMessage ? (g(), M(O, {
3389
3391
  key: 0,
3390
3392
  appearance: "danger",
3391
3393
  "data-testid": "form-error",
3392
3394
  message: e.errorMessage
3393
- }, null, 8, ["message"])) : D("", !0),
3395
+ }, null, 8, ["message"])) : U("", !0),
3394
3396
  L("div", tl, [
3395
- Y(p.$slots, "form-actions", {}, () => [
3396
- R(w, {
3397
+ z(h.$slots, "form-actions", {}, () => [
3398
+ R(x, {
3397
3399
  appearance: "tertiary",
3398
3400
  "data-testid": "form-view-configuration",
3399
- onClick: y[0] || (y[0] = (j) => v())
3401
+ onClick: A[0] || (A[0] = (D) => y())
3400
3402
  }, {
3401
- default: x(() => [
3402
- V(O(E(a)("baseForm.actions.viewConfiguration")), 1)
3403
+ default: b(() => [
3404
+ Y($(E(a)("baseForm.actions.viewConfiguration")), 1)
3403
3405
  ]),
3404
3406
  _: 1
3405
3407
  }),
3406
- R(w, {
3408
+ R(x, {
3407
3409
  appearance: "secondary",
3408
3410
  "data-testid": "form-cancel",
3409
3411
  disabled: e.isReadonly,
3410
3412
  type: "reset"
3411
3413
  }, {
3412
- default: x(() => [
3413
- V(O(E(a)("baseForm.actions.cancel")), 1)
3414
+ default: b(() => [
3415
+ Y($(E(a)("baseForm.actions.cancel")), 1)
3414
3416
  ]),
3415
3417
  _: 1
3416
3418
  }, 8, ["disabled"]),
3417
- R(w, {
3419
+ R(x, {
3418
3420
  appearance: "primary",
3419
3421
  "data-testid": "form-submit",
3420
3422
  disabled: c.value,
3421
3423
  type: "submit"
3422
3424
  }, {
3423
- default: x(() => [
3424
- V(O(E(a)("baseForm.actions.save")), 1)
3425
+ default: b(() => [
3426
+ Y($(E(a)("baseForm.actions.save")), 1)
3425
3427
  ]),
3426
3428
  _: 1
3427
3429
  }, 8, ["disabled"])
@@ -3434,24 +3436,24 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
3434
3436
  "has-overlay": !1,
3435
3437
  "offset-top": 60,
3436
3438
  title: E(a)("baseForm.configuration.title"),
3437
- visible: h.value,
3438
- onClose: y[1] || (y[1] = (j) => v())
3439
+ visible: m.value,
3440
+ onClose: A[1] || (A[1] = (D) => y())
3439
3441
  }, {
3440
- default: x(() => [
3441
- L("div", null, O(E(a)("baseForm.configuration.message")), 1),
3442
- R(U, {
3442
+ default: b(() => [
3443
+ L("div", null, $(E(a)("baseForm.configuration.message")), 1),
3444
+ R(j, {
3443
3445
  "data-testid": "form-view-configuration-slideout-tabs",
3444
3446
  tabs: k.value
3445
3447
  }, {
3446
- json: x(() => [
3448
+ json: b(() => [
3447
3449
  R(Ut, {
3448
3450
  config: e.config,
3449
- "fetcher-url": f.value,
3451
+ "fetcher-url": p.value,
3450
3452
  "json-record": r.formFields,
3451
3453
  "request-method": r.editId ? "put" : "post"
3452
3454
  }, null, 8, ["config", "fetcher-url", "json-record", "request-method"])
3453
3455
  ]),
3454
- yaml: x(() => [
3456
+ yaml: b(() => [
3455
3457
  R(Tn, {
3456
3458
  "yaml-record": r.formFields
3457
3459
  }, null, 8, ["yaml-record"])
@@ -3483,17 +3485,17 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
3483
3485
  }
3484
3486
  },
3485
3487
  setup(e) {
3486
- const t = e, n = A(() => {
3488
+ const t = e, n = w(() => {
3487
3489
  var _;
3488
3490
  return ((_ = t.rowEl) == null ? void 0 : _.querySelector(`[data-testid="${t.keyName}"]`)) || null;
3489
- }), r = A(() => {
3491
+ }), r = w(() => {
3490
3492
  var _;
3491
3493
  return ((_ = n.value) == null ? void 0 : _.querySelector('[data-truncate="true"]')) || null;
3492
- }), i = A(() => {
3494
+ }), i = w(() => {
3493
3495
  var N, k;
3494
3496
  const _ = (N = t.rowEl) == null ? void 0 : N.querySelectorAll("td");
3495
3497
  return _ ? ((k = _[0]) == null ? void 0 : k.getAttribute("data-testid")) === t.keyName : !1;
3496
- }), a = A(() => i.value || t.tooltip);
3498
+ }), a = w(() => i.value || t.tooltip);
3497
3499
  let o;
3498
3500
  const l = () => {
3499
3501
  o && (o.disconnect(), o = void 0);
@@ -3501,12 +3503,12 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
3501
3503
  var N, k, Z;
3502
3504
  let _ = ((N = n.value) == null ? void 0 : N.clientWidth) || 0;
3503
3505
  if (n.value && "getComputedStyle" in window) {
3504
- const p = window.getComputedStyle(n.value);
3505
- _ -= (parseFloat(p.paddingLeft) || 0) + (parseFloat(p.paddingRight) || 0);
3506
+ const h = window.getComputedStyle(n.value);
3507
+ _ -= (parseFloat(h.paddingLeft) || 0) + (parseFloat(h.paddingRight) || 0);
3506
3508
  }
3507
- d.value = ((k = r.value) == null ? void 0 : k.getBoundingClientRect().width) || 0, c.value = _, h.value = ((Z = u.value) == null ? void 0 : Z.innerText) || "";
3508
- }, u = K({}), d = K(0), c = K(0), h = K(""), f = A(() => [r.value, n.value]), v = Ae(
3509
- f,
3509
+ d.value = ((k = r.value) == null ? void 0 : k.getBoundingClientRect().width) || 0, c.value = _, m.value = ((Z = u.value) == null ? void 0 : Z.innerText) || "";
3510
+ }, u = B({}), d = B(0), c = B(0), m = B(""), p = w(() => [r.value, n.value]), y = Ae(
3511
+ p,
3510
3512
  (_) => {
3511
3513
  if (a.value && (l(), "ResizeObserver" in window && window)) {
3512
3514
  o = new ResizeObserver((N) => {
@@ -3519,33 +3521,33 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
3519
3521
  }
3520
3522
  },
3521
3523
  { immediate: !0, flush: "post", deep: !0 }
3522
- ), b = A(() => a.value ? d.value > c.value : !1);
3524
+ ), v = w(() => a.value ? d.value > c.value : !1);
3523
3525
  return Nn(() => {
3524
3526
  s();
3525
3527
  }), Rn(() => {
3526
- v();
3528
+ y();
3527
3529
  }), (_, N) => {
3528
- const k = B("KTooltip");
3529
- return m(), I("span", {
3530
+ const k = K("KTooltip");
3531
+ return g(), I("span", {
3530
3532
  ref_key: "contentRef",
3531
3533
  ref: u,
3532
3534
  class: "content-wrapper"
3533
3535
  }, [
3534
- a.value ? (m(), I("span", {
3536
+ a.value ? (g(), I("span", {
3535
3537
  key: 0,
3536
3538
  "data-truncate": a.value || void 0
3537
3539
  }, [
3538
3540
  R(k, {
3539
3541
  "max-width": "300",
3540
3542
  placement: "bottomStart",
3541
- text: b.value ? h.value : ""
3543
+ text: v.value ? m.value : ""
3542
3544
  }, {
3543
- default: x(() => [
3544
- Y(_.$slots, "default", {}, void 0, !0)
3545
+ default: b(() => [
3546
+ z(_.$slots, "default", {}, void 0, !0)
3545
3547
  ]),
3546
3548
  _: 3
3547
3549
  }, 8, ["text"])
3548
- ], 8, rl)) : Y(_.$slots, "default", { key: 1 }, void 0, !0)
3550
+ ], 8, rl)) : z(_.$slots, "default", { key: 1 }, void 0, !0)
3549
3551
  ], 512);
3550
3552
  };
3551
3553
  }
@@ -3670,77 +3672,78 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
3670
3672
  },
3671
3673
  emits: ["click:row", "sort", "clear-search-input", "empty-state-cta-clicked"],
3672
3674
  setup(e, { emit: t }) {
3673
- const n = e, r = t, { i18n: { t: i } } = z.useI18n(), a = A(() => {
3674
- var y, g;
3675
+ const n = e, r = t, { i18n: { t: i } } = W.useI18n(), a = w(() => {
3676
+ var f, S;
3675
3677
  return typeof n.errorMessage == "string" ? {
3676
3678
  hasError: !!n.errorMessage,
3677
3679
  title: n.errorMessage,
3678
3680
  message: void 0
3679
3681
  } : {
3680
3682
  hasError: !!n.errorMessage,
3681
- title: (y = n.errorMessage) == null ? void 0 : y.title,
3682
- message: (g = n.errorMessage) == null ? void 0 : g.message
3683
+ title: (f = n.errorMessage) == null ? void 0 : f.title,
3684
+ message: (S = n.errorMessage) == null ? void 0 : S.message
3683
3685
  };
3684
- }), o = A(() => n.cacheIdentifier || n.preferencesStorageKey), l = (y) => y.hasData || !!n.query, s = A(() => {
3685
- const y = [];
3686
- return Object.keys(n.tableHeaders).forEach(($) => {
3687
- const F = n.tableHeaders[$];
3688
- y.push({
3689
- label: F.label ?? $,
3690
- key: $,
3691
- sortable: F.sortable ?? !1
3686
+ }), o = w(() => n.cacheIdentifier || n.preferencesStorageKey), l = (f) => f.hasData || !!n.query, s = w(() => {
3687
+ const f = [];
3688
+ return Object.keys(n.tableHeaders).forEach((O) => {
3689
+ const x = n.tableHeaders[O];
3690
+ f.push({
3691
+ label: x.label ?? O,
3692
+ key: O,
3693
+ sortable: x.sortable ?? !1,
3694
+ hidable: !0
3692
3695
  });
3693
- }), n.enableEntityActions && y.push({
3696
+ }), n.enableEntityActions && f.push({
3694
3697
  key: "actions",
3695
3698
  hideLabel: !0
3696
- }), y;
3697
- }), u = (y) => ({
3698
- "data-rowid": y.id,
3699
- "data-testid": y.name,
3700
- ...n.rowAttributes(y)
3701
- }), d = K({}), c = (y) => {
3702
- var g;
3703
- return (g = d.value) == null ? void 0 : g.$el.querySelector(`[data-rowid="${y.id}"]`);
3704
- }, h = (y) => {
3705
- const g = {
3706
- "data-testid": y.headerKey,
3707
- ...n.cellAttributes(y)
3699
+ }), f;
3700
+ }), u = (f) => ({
3701
+ "data-rowid": f.id,
3702
+ "data-testid": f.name,
3703
+ ...n.rowAttributes(f)
3704
+ }), d = B({}), c = (f) => {
3705
+ var S;
3706
+ return (S = d.value) == null ? void 0 : S.$el.querySelector(`[data-rowid="${f.id}"]`);
3707
+ }, m = (f) => {
3708
+ const S = {
3709
+ "data-testid": f.headerKey,
3710
+ ...n.cellAttributes(f)
3708
3711
  };
3709
- return y.colIndex === 0 && (g.style = {
3712
+ return f.colIndex === 0 && (S.style = {
3710
3713
  maxWidth: "250px",
3711
3714
  overflowX: "hidden",
3712
3715
  textOverflow: "ellipsis"
3713
- }), g;
3714
- }, f = () => {
3715
- r("empty-state-cta-clicked"), v();
3716
- }, v = () => {
3716
+ }), S;
3717
+ }, p = () => {
3718
+ r("empty-state-cta-clicked"), y();
3719
+ }, y = () => {
3717
3720
  r("clear-search-input");
3718
- }, b = A(() => n.disableRowClick ? void 0 : (y, g) => {
3719
- r("click:row", g);
3720
- }), _ = (y) => {
3721
- r("sort", y);
3722
- }, { setTablePreferences: N, getTablePreferences: k } = zn(), Z = A(() => {
3723
- const y = k(n.preferencesStorageKey);
3721
+ }, v = w(() => n.disableRowClick ? void 0 : (f, S) => {
3722
+ r("click:row", S);
3723
+ }), _ = (f) => {
3724
+ r("sort", f);
3725
+ }, { setTablePreferences: N, getTablePreferences: k } = zn(), Z = B(k(o.value)), h = w(() => {
3726
+ const f = k(o.value);
3724
3727
  return {
3725
3728
  ...n.initialFetcherParams,
3726
- ...y
3729
+ ...f
3727
3730
  };
3728
- }), p = (y) => {
3729
- n.preferencesStorageKey && N(n.preferencesStorageKey, y);
3731
+ }), A = (f) => {
3732
+ Z.value = f, o.value && N(o.value, f);
3730
3733
  };
3731
- return (y, g) => {
3732
- const $ = B("KIcon"), F = B("KButton"), w = B("KDropdown"), U = B("KTable"), T = B("KCard");
3733
- return m(), M(T, {
3734
+ return (f, S) => {
3735
+ const O = K("KIcon"), x = K("KButton"), j = K("KDropdown"), T = K("KTable"), F = K("KCard");
3736
+ return g(), M(F, {
3734
3737
  class: "kong-ui-entity-base-table",
3735
3738
  title: e.title,
3736
3739
  "title-tag": e.titleTag
3737
3740
  }, {
3738
- default: x(() => [
3739
- R(U, {
3741
+ default: b(() => [
3742
+ R(T, {
3740
3743
  ref_key: "tableRefs",
3741
3744
  ref: d,
3742
3745
  "cache-identifier": o.value,
3743
- "cell-attrs": h,
3746
+ "cell-attrs": m,
3744
3747
  "client-sort": e.enableClientSort,
3745
3748
  "disable-pagination-page-jump": e.disablePaginationPageJump,
3746
3749
  "empty-state-action-message": e.query ? E(i)("baseTable.emptyState.noSearchResultsCtaText") : e.emptyStateOptions.ctaText,
@@ -3755,52 +3758,55 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
3755
3758
  "fetcher-cache-key": String(e.fetcherCacheKey),
3756
3759
  headers: s.value,
3757
3760
  "hide-pagination-when-optional": "",
3758
- "initial-fetcher-params": Z.value,
3761
+ "initial-fetcher-params": h.value,
3759
3762
  loading: e.isLoading,
3760
3763
  "pagination-offset": e.paginationType === "offset",
3764
+ "resize-columns": "",
3761
3765
  "row-attrs": u,
3762
3766
  "search-input": e.query,
3763
3767
  "sort-handler-function": e.enableClientSort ? e.sortHandlerFunction : void 0,
3764
3768
  sortable: !e.disableSorting,
3765
- onEmptyStateActionClick: f,
3766
- "onRow:click": b.value,
3767
- onSort: g[0] || (g[0] = (S) => _(S)),
3768
- "onUpdate:tablePreferences": p
3769
+ "table-preferences": Z.value,
3770
+ onEmptyStateActionClick: p,
3771
+ onKtableEmptyStateCtaClicked: p,
3772
+ "onRow:click": v.value,
3773
+ onSort: S[0] || (S[0] = (D) => _(D)),
3774
+ "onUpdate:tablePreferences": A
3769
3775
  }, ke({
3770
- toolbar: x(({ state: S }) => [
3771
- me(L("div", ol, [
3772
- Y(y.$slots, "toolbar-filter", {}, void 0, !0),
3773
- y.$slots["toolbar-button"] ? (m(), I("div", ll, [
3774
- Y(y.$slots, "toolbar-button", {}, void 0, !0)
3775
- ])) : D("", !0)
3776
+ toolbar: b(({ state: D }) => [
3777
+ he(L("div", ol, [
3778
+ z(f.$slots, "toolbar-filter", {}, void 0, !0),
3779
+ f.$slots["toolbar-button"] ? (g(), I("div", ll, [
3780
+ z(f.$slots, "toolbar-button", {}, void 0, !0)
3781
+ ])) : U("", !0)
3776
3782
  ], 512), [
3777
- [ge, l(S)]
3783
+ [me, l(D)]
3778
3784
  ])
3779
3785
  ]),
3780
- actions: x(({ row: S, rowKey: j, rowValue: q }) => [
3786
+ actions: b(({ row: D, rowKey: q, rowValue: V }) => [
3781
3787
  L("div", {
3782
3788
  class: "actions-container",
3783
- "data-testid": S.name
3789
+ "data-testid": D.name
3784
3790
  }, [
3785
- R(w, {
3791
+ R(j, {
3786
3792
  "kpop-attributes": { placement: "bottomEnd" },
3787
3793
  width: e.dropdownMenuWidth
3788
3794
  }, {
3789
- items: x(() => [
3790
- Y(y.$slots, "actions", {
3791
- row: S,
3792
- rowKey: j,
3793
- rowValue: q
3795
+ items: b(() => [
3796
+ z(f.$slots, "actions", {
3797
+ row: D,
3798
+ rowKey: q,
3799
+ rowValue: V
3794
3800
  }, void 0, !0)
3795
3801
  ]),
3796
- default: x(() => [
3797
- R(F, {
3802
+ default: b(() => [
3803
+ R(x, {
3798
3804
  class: "actions-trigger",
3799
3805
  "data-testid": "overflow-actions-button",
3800
3806
  size: "small"
3801
3807
  }, {
3802
- icon: x(() => [
3803
- R($, {
3808
+ icon: b(() => [
3809
+ R(O, {
3804
3810
  color: E(Sr),
3805
3811
  icon: "more",
3806
3812
  size: "16"
@@ -3815,21 +3821,21 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
3815
3821
  ]),
3816
3822
  _: 2
3817
3823
  }, [
3818
- ae(e.tableHeaders, (S, j) => ({
3819
- name: j,
3820
- fn: x(({ row: q, rowKey: J, rowValue: he }) => [
3824
+ ae(e.tableHeaders, (D, q) => ({
3825
+ name: q,
3826
+ fn: b(({ row: V, rowKey: ye, rowValue: Se }) => [
3821
3827
  R(al, {
3822
- "key-name": String(j),
3823
- "row-el": c(q),
3824
- tooltip: S.tooltip
3828
+ "key-name": String(q),
3829
+ "row-el": c(V),
3830
+ tooltip: D.tooltip
3825
3831
  }, {
3826
- default: x(() => [
3827
- Y(y.$slots, j, {
3828
- row: q,
3829
- rowKey: J,
3830
- rowValue: he
3832
+ default: b(() => [
3833
+ z(f.$slots, q, {
3834
+ row: V,
3835
+ rowKey: ye,
3836
+ rowValue: Se
3831
3837
  }, () => [
3832
- V(O(he), 1)
3838
+ Y($(Se), 1)
3833
3839
  ], !0)
3834
3840
  ]),
3835
3841
  _: 2
@@ -3838,18 +3844,18 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
3838
3844
  })),
3839
3845
  e.query ? void 0 : {
3840
3846
  name: "empty-state-action-icon",
3841
- fn: x(() => [
3847
+ fn: b(() => [
3842
3848
  R(E(wo))
3843
3849
  ]),
3844
3850
  key: "0"
3845
3851
  }
3846
- ]), 1032, ["cache-identifier", "client-sort", "disable-pagination-page-jump", "empty-state-action-message", "empty-state-action-route", "empty-state-icon-variant", "empty-state-message", "empty-state-title", "error", "error-state-message", "error-state-title", "fetcher", "fetcher-cache-key", "headers", "initial-fetcher-params", "loading", "pagination-offset", "search-input", "sort-handler-function", "sortable", "onRow:click"])
3852
+ ]), 1032, ["cache-identifier", "client-sort", "disable-pagination-page-jump", "empty-state-action-message", "empty-state-action-route", "empty-state-icon-variant", "empty-state-message", "empty-state-title", "error", "error-state-message", "error-state-title", "fetcher", "fetcher-cache-key", "headers", "initial-fetcher-params", "loading", "pagination-offset", "search-input", "sort-handler-function", "sortable", "table-preferences", "onRow:click"])
3847
3853
  ]),
3848
3854
  _: 3
3849
3855
  }, 8, ["title", "title-tag"]);
3850
3856
  };
3851
3857
  }
3852
- }), Zl = /* @__PURE__ */ ie(cl, [["__scopeId", "data-v-c22e19cf"]]), ul = {
3858
+ }), Zl = /* @__PURE__ */ ie(cl, [["__scopeId", "data-v-5f6ee734"]]), ul = {
3853
3859
  key: 0,
3854
3860
  class: "kong-ui-entity-delete-error"
3855
3861
  }, dl = {
@@ -3894,14 +3900,14 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
3894
3900
  },
3895
3901
  emits: ["cancel", "proceed"],
3896
3902
  setup(e, { emit: t }) {
3897
- const { i18nT: n } = z.useI18n(), r = e, i = t, a = A(() => r.needConfirm ? r.entityName : ""), o = () => {
3903
+ const { i18nT: n } = W.useI18n(), r = e, i = t, a = w(() => r.needConfirm ? r.entityName : ""), o = () => {
3898
3904
  i("cancel");
3899
3905
  }, l = () => {
3900
3906
  i("proceed");
3901
3907
  };
3902
3908
  return (s, u) => {
3903
- const d = B("KAlert"), c = B("KPrompt");
3904
- return m(), M(c, {
3909
+ const d = K("KAlert"), c = K("KPrompt");
3910
+ return g(), M(c, {
3905
3911
  "action-button-appearance": "danger",
3906
3912
  "action-button-disabled": e.actionPending,
3907
3913
  "action-button-text": "Yes, delete",
@@ -3912,38 +3918,38 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
3912
3918
  onCancel: o,
3913
3919
  onProceed: l
3914
3920
  }, {
3915
- default: x(() => [
3916
- e.error ? (m(), I("div", ul, [
3921
+ default: b(() => [
3922
+ e.error ? (g(), I("div", ul, [
3917
3923
  R(d, { appearance: "danger" }, {
3918
- default: x(() => [
3919
- V(O(e.error), 1)
3924
+ default: b(() => [
3925
+ Y($(e.error), 1)
3920
3926
  ]),
3921
3927
  _: 1
3922
3928
  })
3923
- ])) : D("", !0),
3929
+ ])) : U("", !0),
3924
3930
  R(E(n), {
3925
3931
  class: "message",
3926
3932
  keypath: r.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
3927
3933
  tag: "p"
3928
3934
  }, ke({
3929
- entityType: x(() => [
3930
- V(O(r.entityType), 1)
3935
+ entityType: b(() => [
3936
+ Y($(r.entityType), 1)
3931
3937
  ]),
3932
3938
  _: 2
3933
3939
  }, [
3934
3940
  r.entityName ? {
3935
3941
  name: "entityName",
3936
- fn: x(() => [
3937
- L("strong", null, O(r.entityName), 1)
3942
+ fn: b(() => [
3943
+ L("strong", null, $(r.entityName), 1)
3938
3944
  ]),
3939
3945
  key: "0"
3940
3946
  } : void 0
3941
3947
  ]), 1032, ["keypath"]),
3942
- r.description || s.$slots.description ? (m(), I("div", dl, [
3943
- Y(s.$slots, "description", {}, () => [
3944
- L("p", null, O(r.description), 1)
3948
+ r.description || s.$slots.description ? (g(), I("div", dl, [
3949
+ z(s.$slots, "description", {}, () => [
3950
+ L("p", null, $(r.description), 1)
3945
3951
  ], !0)
3946
- ])) : D("", !0)
3952
+ ])) : U("", !0)
3947
3953
  ]),
3948
3954
  _: 3
3949
3955
  }, 8, ["action-button-disabled", "confirmation-text", "title", "visible"]);
@@ -3972,7 +3978,7 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
3972
3978
  }
3973
3979
  },
3974
3980
  setup(e) {
3975
- return (t, n) => (m(), I("svg", pl, [
3981
+ return (t, n) => (g(), I("svg", pl, [
3976
3982
  L("mask", hl, [
3977
3983
  L("rect", {
3978
3984
  fill: e.color,
@@ -4011,186 +4017,186 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
4011
4017
  },
4012
4018
  emits: ["update:modelValue"],
4013
4019
  setup(e, { emit: t }) {
4014
- const { i18n: { t: n } } = z.useI18n(), r = e, i = t, a = K(!1), o = K({}), l = K(/* @__PURE__ */ new Set()), s = A(() => {
4015
- const p = [];
4016
- return new URLSearchParams(r.modelValue).forEach((y, g) => {
4017
- y !== "" && p.push(g);
4018
- }), p;
4019
- }), u = A(() => {
4020
- const p = r.config.fields;
4021
- return Object.keys(p).filter((y) => {
4022
- var g;
4023
- return (g = p == null ? void 0 : p[y]) == null ? void 0 : g.searchable;
4024
- }).map((y) => ({
4025
- label: p[y].label || y,
4026
- value: y,
4020
+ const { i18n: { t: n } } = W.useI18n(), r = e, i = t, a = B(!1), o = B({}), l = B(/* @__PURE__ */ new Set()), s = w(() => {
4021
+ const h = [];
4022
+ return new URLSearchParams(r.modelValue).forEach((A, f) => {
4023
+ A !== "" && h.push(f);
4024
+ }), h;
4025
+ }), u = w(() => {
4026
+ const h = r.config.fields;
4027
+ return Object.keys(h).filter((A) => {
4028
+ var f;
4029
+ return (f = h == null ? void 0 : h[A]) == null ? void 0 : f.searchable;
4030
+ }).map((A) => ({
4031
+ label: h[A].label || A,
4032
+ value: A,
4027
4033
  expanded: !1
4028
4034
  }));
4029
4035
  });
4030
- Ae(() => r.modelValue, (p) => {
4031
- o.value = {}, new URLSearchParams(p).forEach((y, g) => {
4032
- o.value[g] = y;
4036
+ Ae(() => r.modelValue, (h) => {
4037
+ o.value = {}, new URLSearchParams(h).forEach((A, f) => {
4038
+ o.value[f] = A;
4033
4039
  });
4034
4040
  });
4035
4041
  const d = () => {
4036
4042
  a.value = !a.value;
4037
- }, c = (p) => {
4038
- l.value.has(p) ? l.value.delete(p) : l.value.add(p);
4039
- }, h = (p) => {
4040
- i("update:modelValue", p);
4041
- }, f = () => {
4042
- h("");
4043
- }, v = (p) => `filter-${p}`, b = (p) => {
4044
- var y, g;
4045
- return (((g = (y = r.config.schema) == null ? void 0 : y[p]) == null ? void 0 : g.values) ?? []).map(($) => ({
4046
- value: $,
4047
- label: $
4043
+ }, c = (h) => {
4044
+ l.value.has(h) ? l.value.delete(h) : l.value.add(h);
4045
+ }, m = (h) => {
4046
+ i("update:modelValue", h);
4047
+ }, p = () => {
4048
+ m("");
4049
+ }, y = (h) => `filter-${h}`, v = (h) => {
4050
+ var A, f;
4051
+ return (((f = (A = r.config.schema) == null ? void 0 : A[h]) == null ? void 0 : f.values) ?? []).map((S) => ({
4052
+ value: S,
4053
+ label: S
4048
4054
  }));
4049
- }, _ = (p) => {
4050
- var y, g;
4051
- return ((g = (y = r.config.schema) == null ? void 0 : y[p]) == null ? void 0 : g.type) ?? "text";
4052
- }, N = (p) => {
4055
+ }, _ = (h) => {
4056
+ var A, f;
4057
+ return ((f = (A = r.config.schema) == null ? void 0 : A[h]) == null ? void 0 : f.type) ?? "text";
4058
+ }, N = (h) => {
4053
4059
  o.value = {
4054
4060
  ...o.value,
4055
- [p]: ""
4061
+ [h]: ""
4056
4062
  }, Z();
4057
4063
  }, k = () => {
4058
4064
  o.value = {}, Z(!0);
4059
- }, Z = (p = !1) => {
4060
- const y = Object.keys(o.value).reduce((g, $) => (o.value[$] && (g[$] = `${o.value[$]}`), g), {});
4061
- p && (a.value = !1), i("update:modelValue", new URLSearchParams(y).toString());
4065
+ }, Z = (h = !1) => {
4066
+ const A = Object.keys(o.value).reduce((f, S) => (o.value[S] && (f[S] = `${o.value[S]}`), f), {});
4067
+ h && (a.value = !1), i("update:modelValue", new URLSearchParams(A).toString());
4062
4068
  };
4063
- return (p, y) => {
4064
- const g = B("KInput"), $ = B("KButton"), F = B("KSelect");
4065
- return e.config.isExactMatch ? (m(), M(g, {
4069
+ return (h, A) => {
4070
+ const f = K("KInput"), S = K("KButton"), O = K("KSelect");
4071
+ return e.config.isExactMatch ? (g(), M(f, {
4066
4072
  key: 0,
4067
4073
  autocomplete: "off",
4068
4074
  class: "kong-ui-entity-filter-input",
4069
4075
  "data-testid": "search-input",
4070
4076
  "model-value": e.modelValue,
4071
4077
  placeholder: e.config.placeholder,
4072
- "onUpdate:modelValue": h
4078
+ "onUpdate:modelValue": m
4073
4079
  }, {
4074
- before: x(() => [
4080
+ before: b(() => [
4075
4081
  R(Ft)
4076
4082
  ]),
4077
- after: x(() => [
4078
- me(R(E(qo), {
4083
+ after: b(() => [
4084
+ he(R(E(qo), {
4079
4085
  class: "kong-ui-entity-filter-clear",
4080
- onClick: f
4086
+ onClick: p
4081
4087
  }, null, 512), [
4082
- [ge, e.modelValue !== ""]
4088
+ [me, e.modelValue !== ""]
4083
4089
  ])
4084
4090
  ]),
4085
4091
  _: 1
4086
- }, 8, ["model-value", "placeholder"])) : (m(), I("div", vl, [
4087
- R($, {
4092
+ }, 8, ["model-value", "placeholder"])) : (g(), I("div", vl, [
4093
+ R(S, {
4088
4094
  appearance: "tertiary",
4089
4095
  "data-testid": "filter-button",
4090
4096
  onClick: d
4091
4097
  }, {
4092
- default: x(() => [
4098
+ default: b(() => [
4093
4099
  R(Ft),
4094
- V(" " + O(E(n)("filter.filterButtonText")) + " " + O(s.value.length > 0 ? `(${s.value.length})` : ""), 1)
4100
+ Y(" " + $(E(n)("filter.filterButtonText")) + " " + $(s.value.length > 0 ? `(${s.value.length})` : ""), 1)
4095
4101
  ]),
4096
4102
  _: 1
4097
4103
  }),
4098
- me(L("div", {
4104
+ he(L("div", {
4099
4105
  class: "kong-ui-entity-filter-backdrop",
4100
4106
  onClick: d
4101
4107
  }, null, 512), [
4102
- [ge, a.value]
4108
+ [me, a.value]
4103
4109
  ]),
4104
- me(L("div", bl, [
4105
- (m(!0), I(se, null, ae(u.value, (w) => {
4106
- var U, T;
4107
- return m(), I("div", {
4108
- key: w.value,
4110
+ he(L("div", bl, [
4111
+ (g(!0), I(se, null, ae(u.value, (x) => {
4112
+ var j, T;
4113
+ return g(), I("div", {
4114
+ key: x.value,
4109
4115
  class: "kong-ui-entity-filter-menu-item",
4110
- "data-testid": w.value
4116
+ "data-testid": x.value
4111
4117
  }, [
4112
4118
  L("span", {
4113
- class: de(["menu-item-title", { expanded: l.value.has(w.value) }]),
4119
+ class: de(["menu-item-title", { expanded: l.value.has(x.value) }]),
4114
4120
  role: "button",
4115
4121
  tabindex: "0",
4116
- onClick: (S) => c(w.value),
4117
- onKeydown: Bn((S) => c(w.value), ["enter"])
4122
+ onClick: (F) => c(x.value),
4123
+ onKeydown: Bn((F) => c(x.value), ["enter"])
4118
4124
  }, [
4119
- V(O(w.label) + " ", 1),
4120
- me(L("span", _l, null, 512), [
4121
- [ge, s.value.includes(w.value)]
4125
+ Y($(x.label) + " ", 1),
4126
+ he(L("span", _l, null, 512), [
4127
+ [me, s.value.includes(x.value)]
4122
4128
  ]),
4123
4129
  R(E(Bo), {
4124
- class: de(["menu-item-expand-icon", { expanded: l.value.has(w.value) }]),
4130
+ class: de(["menu-item-expand-icon", { expanded: l.value.has(x.value) }]),
4125
4131
  color: E(Ir)
4126
4132
  }, null, 8, ["class", "color"])
4127
4133
  ], 42, Cl),
4128
- me(L("div", kl, [
4134
+ he(L("div", kl, [
4129
4135
  L("label", {
4130
4136
  class: "menu-item-label",
4131
- for: v(w.value)
4132
- }, O(E(n)("filter.fieldLabel")), 9, wl),
4133
- ((T = (U = e.config.schema) == null ? void 0 : U[w.value]) == null ? void 0 : T.type) === "select" ? (m(), M(F, {
4137
+ for: y(x.value)
4138
+ }, $(E(n)("filter.fieldLabel")), 9, wl),
4139
+ ((T = (j = e.config.schema) == null ? void 0 : j[x.value]) == null ? void 0 : T.type) === "select" ? (g(), M(O, {
4134
4140
  key: 0,
4135
- id: v(w.value),
4136
- modelValue: o.value[w.value],
4137
- "onUpdate:modelValue": (S) => o.value[w.value] = S,
4138
- items: b(w.value),
4141
+ id: y(x.value),
4142
+ modelValue: o.value[x.value],
4143
+ "onUpdate:modelValue": (F) => o.value[x.value] = F,
4144
+ items: v(x.value),
4139
4145
  placeholder: E(n)("filter.selectPlaceholder")
4140
- }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (m(), M(g, {
4146
+ }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (g(), M(f, {
4141
4147
  key: 1,
4142
- id: v(w.value),
4143
- modelValue: o.value[w.value],
4144
- "onUpdate:modelValue": (S) => o.value[w.value] = S,
4148
+ id: y(x.value),
4149
+ modelValue: o.value[x.value],
4150
+ "onUpdate:modelValue": (F) => o.value[x.value] = F,
4145
4151
  autocomplete: "off",
4146
4152
  placeholder: E(n)("filter.inputPlaceholder"),
4147
- type: _(w.value)
4153
+ type: _(x.value)
4148
4154
  }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
4149
4155
  ], 512), [
4150
- [ge, l.value.has(w.value)]
4156
+ [me, l.value.has(x.value)]
4151
4157
  ]),
4152
- me(L("div", Al, [
4153
- R($, {
4158
+ he(L("div", Al, [
4159
+ R(S, {
4154
4160
  appearance: "tertiary",
4155
4161
  "data-testid": "apply-filter",
4156
4162
  size: "small",
4157
- onClick: y[0] || (y[0] = (S) => Z(!0))
4163
+ onClick: A[0] || (A[0] = (F) => Z(!0))
4158
4164
  }, {
4159
- default: x(() => [
4160
- V(O(E(n)("filter.applyButtonText")), 1)
4165
+ default: b(() => [
4166
+ Y($(E(n)("filter.applyButtonText")), 1)
4161
4167
  ]),
4162
4168
  _: 1
4163
4169
  }),
4164
- R($, {
4170
+ R(S, {
4165
4171
  appearance: "tertiary",
4166
4172
  "data-testid": "clear-filter",
4167
4173
  size: "small",
4168
- onClick: (S) => N(w.value)
4174
+ onClick: (F) => N(x.value)
4169
4175
  }, {
4170
- default: x(() => [
4171
- V(O(E(n)("filter.clearButtonText")), 1)
4176
+ default: b(() => [
4177
+ Y($(E(n)("filter.clearButtonText")), 1)
4172
4178
  ]),
4173
4179
  _: 2
4174
4180
  }, 1032, ["onClick"])
4175
4181
  ], 512), [
4176
- [ge, l.value.has(w.value)]
4182
+ [me, l.value.has(x.value)]
4177
4183
  ])
4178
4184
  ], 8, xl);
4179
4185
  }), 128)),
4180
4186
  L("div", Sl, [
4181
- R($, {
4187
+ R(S, {
4182
4188
  appearance: "tertiary",
4183
4189
  size: "small",
4184
4190
  onClick: k
4185
4191
  }, {
4186
- default: x(() => [
4187
- V(O(E(n)("filter.clearAllButtonText")), 1)
4192
+ default: b(() => [
4193
+ Y($(E(n)("filter.clearAllButtonText")), 1)
4188
4194
  ]),
4189
4195
  _: 1
4190
4196
  })
4191
4197
  ])
4192
4198
  ], 512), [
4193
- [ge, a.value]
4199
+ [me, a.value]
4194
4200
  ])
4195
4201
  ]));
4196
4202
  };
@@ -4227,9 +4233,9 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
4227
4233
  },
4228
4234
  emits: ["cancel", "proceed"],
4229
4235
  setup(e, { emit: t }) {
4230
- const { i18n: { t: n }, i18nT: r } = z.useI18n(), i = e, a = t, o = K(!1), l = A(
4236
+ const { i18n: { t: n }, i18nT: r } = W.useI18n(), i = e, a = t, o = B(!1), l = w(
4231
4237
  () => i.action === "enable" ? n("toggleModal.enable.title", { entityType: i.entityType }) : n("toggleModal.disable.title", { entityType: i.entityType })
4232
- ), s = A(
4238
+ ), s = w(
4233
4239
  () => i.action === "enable" ? n("toggleModal.enable.confirmText") : n("toggleModal.disable.confirmText")
4234
4240
  ), u = () => a("cancel"), d = async () => {
4235
4241
  if (i.onConfirm) {
@@ -4243,10 +4249,10 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
4243
4249
  }
4244
4250
  }
4245
4251
  };
4246
- return (c, h) => {
4247
- const f = B("KPrompt");
4248
- return m(), M(Kn, { to: "body" }, [
4249
- R(f, {
4252
+ return (c, m) => {
4253
+ const p = K("KPrompt");
4254
+ return g(), M(Kn, { to: "body" }, [
4255
+ R(p, {
4250
4256
  "action-button-disabled": o.value,
4251
4257
  "action-button-text": s.value,
4252
4258
  "data-testid": `${e.entityType}-${e.entityId}-toggle-prompt`,
@@ -4255,16 +4261,16 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
4255
4261
  onCancel: u,
4256
4262
  onProceed: d
4257
4263
  }, {
4258
- default: x(() => [
4264
+ default: b(() => [
4259
4265
  R(E(r), {
4260
4266
  keypath: `toggleModal.${i.action}.message`,
4261
4267
  scope: "global"
4262
4268
  }, {
4263
- entityType: x(() => [
4264
- V(O(e.entityType), 1)
4269
+ entityType: b(() => [
4270
+ Y($(e.entityType), 1)
4265
4271
  ]),
4266
- entityName: x(() => [
4267
- L("strong", null, O(e.entityName), 1)
4272
+ entityName: b(() => [
4273
+ L("strong", null, $(e.entityName), 1)
4268
4274
  ]),
4269
4275
  _: 1
4270
4276
  }, 8, ["keypath"])
@@ -4296,21 +4302,21 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
4296
4302
  }
4297
4303
  },
4298
4304
  setup(e) {
4299
- const t = e, n = K(void 0), r = A(() => n.value === !0 || n.value !== void 0 && t.forceShow === !0);
4305
+ const t = e, n = B(void 0), r = w(() => n.value === !0 || n.value !== void 0 && t.forceShow === !0);
4300
4306
  return Ae(() => t.authFunction, async () => {
4301
4307
  n.value = await t.authFunction();
4302
- }, { immediate: !0 }), (i, a) => r.value ? Y(i.$slots, "default", {
4308
+ }, { immediate: !0 }), (i, a) => r.value ? z(i.$slots, "default", {
4303
4309
  key: 0,
4304
4310
  isAllowed: n.value
4305
- }) : D("", !0);
4311
+ }) : U("", !0);
4306
4312
  }
4307
4313
  });
4308
- let Re;
4314
+ let Be;
4309
4315
  const El = new Uint8Array(16);
4310
4316
  function Tl() {
4311
- if (!Re && (Re = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !Re))
4317
+ if (!Be && (Be = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !Be))
4312
4318
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
4313
- return Re(El);
4319
+ return Be(El);
4314
4320
  }
4315
4321
  const Q = [];
4316
4322
  for (let e = 0; e < 256; ++e)
@@ -4363,38 +4369,38 @@ const Ll = ["aria-labelledby"], Nl = { class: "form-section-wrapper" }, Rl = {
4363
4369
  }
4364
4370
  },
4365
4371
  setup(e) {
4366
- const t = Xe(), n = $l();
4367
- return (r, i) => (m(), I("div", {
4372
+ const t = et(), n = $l();
4373
+ return (r, i) => (g(), I("div", {
4368
4374
  "aria-labelledby": e.title ? E(n) : void 0,
4369
4375
  class: de(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }]),
4370
4376
  role: "group"
4371
4377
  }, [
4372
4378
  L("div", Nl, [
4373
- e.hideInfoHeader ? D("", !0) : (m(), I("div", {
4379
+ e.hideInfoHeader ? U("", !0) : (g(), I("div", {
4374
4380
  key: 0,
4375
4381
  class: de(["form-section-info", { sticky: e.stickyInfoHeader }])
4376
4382
  }, [
4377
- e.title ? (m(), M(pe(e.titleTag), {
4383
+ e.title ? (g(), M(pe(e.titleTag), {
4378
4384
  key: 0,
4379
4385
  id: E(n),
4380
4386
  class: "form-section-title"
4381
4387
  }, {
4382
- default: x(() => [
4383
- V(O(e.title), 1)
4388
+ default: b(() => [
4389
+ Y($(e.title), 1)
4384
4390
  ]),
4385
4391
  _: 1
4386
- }, 8, ["id"])) : D("", !0),
4387
- e.description || E(t).description ? (m(), I("div", Rl, [
4388
- Y(r.$slots, "description", {}, () => [
4389
- L("p", null, O(e.description), 1)
4392
+ }, 8, ["id"])) : U("", !0),
4393
+ e.description || E(t).description ? (g(), I("div", Rl, [
4394
+ z(r.$slots, "description", {}, () => [
4395
+ L("p", null, $(e.description), 1)
4390
4396
  ], !0)
4391
- ])) : D("", !0),
4392
- E(t).footer ? (m(), I("div", Bl, [
4393
- Y(r.$slots, "footer", {}, void 0, !0)
4394
- ])) : D("", !0)
4397
+ ])) : U("", !0),
4398
+ E(t).footer ? (g(), I("div", Bl, [
4399
+ z(r.$slots, "footer", {}, void 0, !0)
4400
+ ])) : U("", !0)
4395
4401
  ], 2)),
4396
4402
  L("div", Kl, [
4397
- Y(r.$slots, "default", {}, void 0, !0)
4403
+ z(r.$slots, "default", {}, void 0, !0)
4398
4404
  ])
4399
4405
  ])
4400
4406
  ], 10, Ll));
@@ -4429,10 +4435,10 @@ const Ll = ["aria-labelledby"], Nl = { class: "form-section-wrapper" }, Rl = {
4429
4435
  }
4430
4436
  },
4431
4437
  setup(e) {
4432
- const t = e, n = K(), { isTruncated: r } = z.useTruncationDetector(n), { i18n: { t: i } } = z.useI18n(), a = i("global.actions.copyId"), o = K(a), l = A(() => t.entityLinkData.deleted ?? !1), s = A(() => {
4438
+ const t = e, n = B(), { isTruncated: r } = W.useTruncationDetector(n), { i18n: { t: i } } = W.useI18n(), a = i("global.actions.copyId"), o = B(a), l = w(() => t.entityLinkData.deleted ?? !1), s = w(() => {
4433
4439
  var c;
4434
4440
  return (c = t.entityLinkData.id) != null && c.toString().includes(":") ? t.entityLinkData.id.toString().split(":")[1] : t.entityLinkData.id;
4435
- }), u = A(() => {
4441
+ }), u = w(() => {
4436
4442
  var c;
4437
4443
  return `${(c = s.value) == null ? void 0 : c.toString().slice(0, 5)} (deleted)`;
4438
4444
  }), d = async (c) => {
@@ -4440,45 +4446,45 @@ const Ll = ["aria-labelledby"], Nl = { class: "form-section-wrapper" }, Rl = {
4440
4446
  o.value = a;
4441
4447
  }, 1800));
4442
4448
  };
4443
- return (c, h) => {
4444
- const f = B("KTooltip"), v = B("KExternalLink"), b = B("KClipboardProvider");
4445
- return m(), I("div", Dl, [
4446
- l.value ? (m(), I("div", Ul, O(u.value), 1)) : s.value ? s.value ? (m(), M(v, {
4449
+ return (c, m) => {
4450
+ const p = K("KTooltip"), y = K("KExternalLink"), v = K("KClipboardProvider");
4451
+ return g(), I("div", Dl, [
4452
+ l.value ? (g(), I("div", Ul, $(u.value), 1)) : s.value ? s.value ? (g(), M(y, {
4447
4453
  key: 2,
4448
4454
  class: "entity-link",
4449
4455
  "hide-icon": !e.newWindow,
4450
4456
  href: e.externalLink,
4451
4457
  target: e.newWindow ? "_blank" : "_self"
4452
4458
  }, {
4453
- default: x(() => [
4454
- R(f, {
4459
+ default: b(() => [
4460
+ R(p, {
4455
4461
  text: E(r) && e.entityLinkData.label || ""
4456
4462
  }, {
4457
- default: x(() => [
4463
+ default: b(() => [
4458
4464
  L("span", {
4459
4465
  ref_key: "textContent",
4460
4466
  ref: n,
4461
4467
  class: "entity-link-label"
4462
- }, O(e.entityLinkData.label), 513)
4468
+ }, $(e.entityLinkData.label), 513)
4463
4469
  ]),
4464
4470
  _: 1
4465
4471
  }, 8, ["text"])
4466
4472
  ]),
4467
4473
  _: 1
4468
- }, 8, ["hide-icon", "href", "target"])) : D("", !0) : (m(), I("div", jl, O(" – "))),
4469
- s.value && e.allowCopy ? (m(), M(f, {
4474
+ }, 8, ["hide-icon", "href", "target"])) : U("", !0) : (g(), I("div", jl, $(" – "))),
4475
+ s.value && e.allowCopy ? (g(), M(p, {
4470
4476
  key: o.value,
4471
4477
  class: "copy-uuid-tooltip",
4472
4478
  "max-width": "160",
4473
4479
  placement: "bottomEnd",
4474
4480
  text: o.value
4475
4481
  }, {
4476
- default: x(() => [
4477
- R(b, null, {
4478
- default: x(({ copyToClipboard: _ }) => [
4482
+ default: b(() => [
4483
+ R(v, null, {
4484
+ default: b(({ copyToClipboard: _ }) => [
4479
4485
  L("span", {
4480
4486
  class: "entity-link-copy-id",
4481
- onClick: ze((N) => d(_), ["stop"])
4487
+ onClick: We((N) => d(_), ["stop"])
4482
4488
  }, [
4483
4489
  R(E(Wo), {
4484
4490
  class: "copy-icon",
@@ -4492,11 +4498,11 @@ const Ll = ["aria-labelledby"], Nl = { class: "form-section-wrapper" }, Rl = {
4492
4498
  })
4493
4499
  ]),
4494
4500
  _: 1
4495
- }, 8, ["text"])) : D("", !0)
4501
+ }, 8, ["text"])) : U("", !0)
4496
4502
  ]);
4497
4503
  };
4498
4504
  }
4499
- }), rs = /* @__PURE__ */ ie(Pl, [["__scopeId", "data-v-be5bda4c"]]), { useAxios: is, useDeleteUrlBuilder: as, useErrors: os, useExternalLinkCreator: ls, useFetchUrlBuilder: ss, useFetcher: cs, useDebouncedFilter: us, useStringHelpers: ds, useHelpers: fs, useGatewayFeatureSupported: ps, useTruncationDetector: hs, useValidators: ms } = z;
4505
+ }), rs = /* @__PURE__ */ ie(Pl, [["__scopeId", "data-v-be5bda4c"]]), { useAxios: is, useDeleteUrlBuilder: as, useErrors: os, useExternalLinkCreator: ls, useFetchUrlBuilder: ss, useFetcher: cs, useDebouncedFilter: us, useStringHelpers: ds, useHelpers: fs, useGatewayFeatureSupported: ps, useTruncationDetector: hs, useValidators: ms } = W;
4500
4506
  export {
4501
4507
  vo as ConfigCardDisplay,
4502
4508
  Dt as ConfigCardItem,