@kong-ui-public/entities-keys 3.3.16 → 3.3.17

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 { defineComponent as Q, computed as _, openBlock as f, createBlock as V, resolveDynamicComponent as Ce, normalizeStyle as Ve, withCtx as k, createElementBlock as j, toDisplayString as O, createCommentVNode as z, pushScopeId as De, popScopeId as Pe, createElementVNode as R, ref as T, watch as he, renderSlot as ee, unref as m, resolveComponent as P, createVNode as A, createTextVNode as G, useCssVars as rn, useSlots as bt, createSlots as Me, normalizeProps as oi, guardReactiveProps as li, Fragment as me, renderList as fe, mergeProps as si, normalizeClass as $e, onBeforeMount as lt, withModifiers as yt, withDirectives as xe, vShow as Ie, withKeys as ci, inject as ui, onMounted as di, onUnmounted as pi, Teleport as fi, reactive as Tt } from "vue";
1
+ import { defineComponent as Q, computed as _, openBlock as f, createBlock as V, resolveDynamicComponent as Ce, normalizeStyle as Ve, withCtx as k, createElementBlock as j, toDisplayString as O, createCommentVNode as z, pushScopeId as De, popScopeId as Pe, createElementVNode as R, ref as N, watch as he, renderSlot as ee, unref as y, resolveComponent as P, createVNode as A, createTextVNode as G, useCssVars as rn, useSlots as bt, createSlots as Me, normalizeProps as oi, guardReactiveProps as li, Fragment as me, renderList as fe, mergeProps as si, normalizeClass as $e, onBeforeMount as lt, withModifiers as yt, withDirectives as xe, vShow as Ie, withKeys as ci, inject as ui, onMounted as di, onUnmounted as pi, Teleport as fi, reactive as Nt } from "vue";
2
2
  import { useRouter as Ct } from "vue-router";
3
3
  import { createI18n as on, i18nTComponent as ln } from "@kong-ui-public/i18n";
4
4
  import Ot from "axios";
@@ -359,10 +359,10 @@ const $i = {
359
359
  copyToClipboard: "Copied successfully!",
360
360
  copyToClipboardFailed: "Failed to copy to the clipboard"
361
361
  }
362
- }, Ni = {
362
+ }, Ti = {
363
363
  message: "Are you sure you want to delete this {entityType}?",
364
364
  messageWithName: "Are you sure you want to delete this {entityType} {entityName}?"
365
- }, Ti = {
365
+ }, Ni = {
366
366
  actions: {
367
367
  viewConfiguration: "View Configuration",
368
368
  save: "Save",
@@ -427,12 +427,12 @@ const $i = {
427
427
  applyButtonText: "Apply",
428
428
  clearButtonText: "Clear",
429
429
  clearAllButtonText: "Clear all filters"
430
- }, Fi = {
430
+ }, qi = {
431
431
  errors: {
432
432
  fetch: "Could not fetch available items",
433
433
  invalid: "Please select a valid value"
434
434
  }
435
- }, qi = {
435
+ }, Fi = {
436
436
  unexpected: "An unexpected error has occurred",
437
437
  dataKeyUndefined: 'The data key "{dataKey}" does not exist in the response.'
438
438
  }, Bi = {
@@ -450,13 +450,13 @@ const $i = {
450
450
  }
451
451
  }, Li = {
452
452
  global: $i,
453
- deleteModal: Ni,
454
- baseForm: Ti,
453
+ deleteModal: Ti,
454
+ baseForm: Ni,
455
455
  baseTable: Oi,
456
456
  baseConfigCard: Ki,
457
457
  filter: Mi,
458
- debouncedFilter: Fi,
459
- errors: qi,
458
+ debouncedFilter: qi,
459
+ errors: Fi,
460
460
  validationErrors: Bi,
461
461
  toggleModal: Ei
462
462
  };
@@ -516,36 +516,33 @@ function Ri(e, t, n, i = {
516
516
  }) {
517
517
  n || (n = "1000");
518
518
  const { axiosInstance: a } = St(e.axiosRequestConfig), { i18n: { t: r } } = st(), { debounce: o } = Ii(), l = o(async (I) => {
519
- await v(I);
520
- }, 200), c = T(!1), u = T(""), s = T(""), d = T([]), h = T([]), y = T(void 0), S = _(() => {
521
- const I = `${e.apiBaseUrl}${m(t)}`;
519
+ await h(I);
520
+ }, 200), c = N(!1), u = N(""), s = N(""), d = N([]), v = N([]), m = N(void 0), S = _(() => {
521
+ const I = `${e.apiBaseUrl}${y(t)}`;
522
522
  return e.app === "konnect" ? I.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" ? I.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : "") : I;
523
523
  }), { isValidUuid: M } = cn(), x = async () => {
524
524
  try {
525
525
  c.value = !0;
526
526
  const { data: I } = await a.get(`${S.value}?size=${n}`);
527
- I != null && I.next || (y.value = i.fetchedItemsKey in I ? I[i.fetchedItemsKey] : []), h.value = i.fetchedItemsKey in I ? I[i.fetchedItemsKey] : [], d.value = h.value;
527
+ I != null && I.next || (m.value = i.fetchedItemsKey in I ? I[i.fetchedItemsKey] : []), v.value = i.fetchedItemsKey in I ? I[i.fetchedItemsKey] : [], d.value = v.value;
528
528
  } catch {
529
529
  d.value = [], u.value = r("debouncedFilter.errors.fetch");
530
530
  } finally {
531
531
  c.value = !1;
532
532
  }
533
- }, q = T(""), v = async (I) => {
533
+ }, F = N(""), h = async (I) => {
534
534
  var C, w, p;
535
- if (q.value !== I) {
536
- if (I === "") {
537
- d.value = h.value;
535
+ if (F.value !== I) {
536
+ if (F.value = I ?? "", !I) {
537
+ d.value = v.value;
538
538
  return;
539
- } else
540
- q.value = I || "";
541
- if (y.value === void 0)
539
+ }
540
+ if (m.value === void 0)
542
541
  try {
543
542
  if (c.value = !0, u.value = "", s.value = "", e.app === "konnect") {
544
- let g = S.value + "";
545
- I && (g += `/${I}`);
546
- const { data: B } = await a.get(`${g}?size=${n}`);
543
+ const g = `${S.value}/${I}`, { data: B } = await a.get(`${g}?size=${n}`);
547
544
  i.fetchedItemsKey in B ? d.value = B[i.fetchedItemsKey] : B != null && B[i.exactMatchKey ?? "id"] ? d.value = [B] : d.value = [];
548
- } else if (I) {
545
+ } else {
549
546
  const g = [];
550
547
  M(I) && i.searchKeys.includes("id") ? g.push((async () => {
551
548
  const { data: L } = await a.get(`${S.value}/${I}`);
@@ -559,19 +556,18 @@ function Ri(e, t, n, i = {
559
556
  const B = await Promise.all(g), K = /* @__PURE__ */ new Set();
560
557
  d.value = [], (C = B == null ? void 0 : B.forEach) == null || C.call(B, (L) => {
561
558
  var U;
562
- (U = L == null ? void 0 : L.forEach) == null || U.call(L, (F) => {
563
- K.has(F.id) || (K.add(F.id), d.value.push(F));
559
+ (U = L == null ? void 0 : L.forEach) == null || U.call(L, (q) => {
560
+ K.has(q.id) || (K.add(q.id), d.value.push(q));
564
561
  });
565
562
  });
566
- } else
567
- d.value = h.value;
563
+ }
568
564
  } catch (g) {
569
565
  ((w = g == null ? void 0 : g.response) == null ? void 0 : w.status) === 404 ? s.value = r("debouncedFilter.errors.invalid") : (d.value = [], u.value = r("debouncedFilter.errors.fetch"));
570
566
  } finally {
571
567
  c.value = !1;
572
568
  }
573
569
  else
574
- c.value = !0, s.value = "", I ? (d.value = (p = y.value) == null ? void 0 : p.filter((g) => {
570
+ c.value = !0, s.value = "", d.value = (p = m.value) == null ? void 0 : p.filter((g) => {
575
571
  var B;
576
572
  let K = !1;
577
573
  for (const L of i.searchKeys) {
@@ -579,7 +575,7 @@ function Ri(e, t, n, i = {
579
575
  U != null && U.includes(I.toLowerCase()) && (K = !0);
580
576
  }
581
577
  return K;
582
- }), (!d.value || !d.value.length) && (s.value = r("debouncedFilter.errors.invalid"))) : d.value = y.value, c.value = !1;
578
+ }), (!d.value || !d.value.length) && (s.value = r("debouncedFilter.errors.invalid")), c.value = !1;
583
579
  }
584
580
  };
585
581
  return {
@@ -587,13 +583,13 @@ function Ri(e, t, n, i = {
587
583
  error: u,
588
584
  validationError: s,
589
585
  results: d,
590
- allRecords: y,
586
+ allRecords: m,
591
587
  loadItems: x,
592
588
  debouncedQueryChange: l
593
589
  };
594
590
  }
595
591
  function Ui(e, t) {
596
- const n = m(t), i = _(
592
+ const n = y(t), i = _(
597
593
  () => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${n}`) : new URL(n)
598
594
  );
599
595
  return i.value.search = "", (a) => `${i.value.href}/${a}`;
@@ -640,25 +636,25 @@ function Di(e) {
640
636
  }
641
637
  }
642
638
  function un(e, t) {
643
- const n = T(m(e)), i = T(m(t)), a = _(
639
+ const n = N(y(e)), i = N(y(t)), a = _(
644
640
  () => !!(n.value.app === "konnect" || n.value.isExactMatch)
645
641
  ), r = _(
646
642
  () => i.value.startsWith("/") ? new URL(`${window.location.origin}${i.value}`) : new URL(i.value)
647
643
  );
648
644
  return (o) => {
649
- const { page: l, pageSize: c, offset: u, sortColumnKey: s, sortColumnOrder: d, query: h } = o;
645
+ const { page: l, pageSize: c, offset: u, sortColumnKey: s, sortColumnOrder: d, query: v } = o;
650
646
  try {
651
- let y = new URL(r.value.href);
652
- return a.value && h ? (y.search = "", y = n.value.isExactMatch ? new URL(`${y.href}/${h}/`) : new URL(`${y.href}?filter[name][contains]=${h}`)) : (a.value || new URLSearchParams(h).forEach((S, M) => {
653
- y.searchParams.append(M, S);
654
- }), s && y.searchParams.append("sort_by", s), d === "desc" && y.searchParams.append("sort_desc", "1"), y.searchParams.append("size", String(c))), u && l !== 1 && y.searchParams.append("offset", String(u)), y.href;
655
- } catch (y) {
656
- return console.error("RouteList(fetcher)", y), i.value;
647
+ let m = new URL(r.value.href);
648
+ return a.value && v ? (m.search = "", m = n.value.isExactMatch ? new URL(`${m.href}/${v}/`) : new URL(`${m.href}?filter[name][contains]=${v}`)) : (a.value || new URLSearchParams(v).forEach((S, M) => {
649
+ m.searchParams.append(M, S);
650
+ }), s && m.searchParams.append("sort_by", s), d === "desc" && m.searchParams.append("sort_desc", "1"), m.searchParams.append("size", String(c))), u && l !== 1 && m.searchParams.append("offset", String(u)), m.href;
651
+ } catch (m) {
652
+ return console.error("RouteList(fetcher)", m), i.value;
657
653
  }
658
654
  };
659
655
  }
660
656
  function Pi(e, t, n = "data") {
661
- const i = m(t), { axiosInstance: a } = St(e.axiosRequestConfig), r = un(e, i), o = T({
657
+ const i = y(t), { axiosInstance: a } = St(e.axiosRequestConfig), r = un(e, i), o = N({
662
658
  status: Oe.Idle
663
659
  });
664
660
  return { fetcher: async (l) => {
@@ -670,12 +666,12 @@ function Pi(e, t, n = "data") {
670
666
  const s = await a.get(u);
671
667
  if (s.status >= 400)
672
668
  throw s;
673
- const d = s.data, h = n && n.replace(/[^\w-_]/gi, "");
674
- let y;
675
- d[h] && Array.isArray(d[h]) ? y = d[h] : Array.isArray(d) ? y = d : y = Object.keys(d).length ? [d] : [];
669
+ const d = s.data, v = n && n.replace(/[^\w-_]/gi, "");
670
+ let m;
671
+ d[v] && Array.isArray(d[v]) ? m = d[v] : Array.isArray(d) ? m = d : m = Object.keys(d).length ? [d] : [];
676
672
  const S = {
677
- data: y,
678
- total: y.length,
673
+ data: m,
674
+ total: m.length,
679
675
  ...d.offset ? {
680
676
  pagination: {
681
677
  offset: d.offset
@@ -717,13 +713,13 @@ const dn = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
717
713
  if (!t)
718
714
  throw new Error(`Invalid argument not valid semver ('${e}' received)`);
719
715
  return t.shift(), t;
720
- }, Ft = (e) => e === "*" || e === "x" || e === "X", qt = (e) => {
716
+ }, qt = (e) => e === "*" || e === "x" || e === "X", Ft = (e) => {
721
717
  const t = parseInt(e, 10);
722
718
  return isNaN(t) ? e : t;
723
719
  }, Ji = (e, t) => typeof e != typeof t ? [String(e), String(t)] : [e, t], Hi = (e, t) => {
724
- if (Ft(e) || Ft(t))
720
+ if (qt(e) || qt(t))
725
721
  return 0;
726
- const [n, i] = Ji(qt(e), qt(t));
722
+ const [n, i] = Ji(Ft(e), Ft(t));
727
723
  return n > i ? 1 : n < i ? -1 : 0;
728
724
  }, Bt = (e, t) => {
729
725
  for (let n = 0; n < Math.max(e.length, t.length); n++) {
@@ -766,7 +762,7 @@ function Gi(e) {
766
762
  return !(o && Et(a, o, "<") || l && Et(a, l, ">"));
767
763
  }
768
764
  function Qi(e) {
769
- const t = T(0), n = T(0), i = T(!1);
765
+ const t = N(0), n = N(0), i = N(!1);
770
766
  return he(e, (a) => {
771
767
  a && !i.value && (t.value = a.offsetWidth, n.value = a.scrollWidth, i.value = !0);
772
768
  }), {
@@ -831,7 +827,7 @@ const ae = {
831
827
  key: `${a.value}-property-${d}`,
832
828
  item: {
833
829
  key: s,
834
- label: m(i)(s),
830
+ label: y(i)(s),
835
831
  value: o.value[s]
836
832
  }
837
833
  }, null, 8, ["item"]))), 128))
@@ -864,7 +860,7 @@ const ae = {
864
860
  onClick: i[0] || (i[0] = (r) => n.$emit("navigation-click", e.item))
865
861
  }, {
866
862
  default: k(() => [
867
- G(O(e.item.value || m(t)("baseConfigCard.commonFields.link")), 1)
863
+ G(O(e.item.value || y(t)("baseConfigCard.commonFields.link")), 1)
868
864
  ]),
869
865
  _: 1
870
866
  })
@@ -887,7 +883,7 @@ const ae = {
887
883
  appearance: e.status ? "success" : "neutral"
888
884
  }, {
889
885
  default: k(() => [
890
- G(O(e.status ? m(t)("baseConfigCard.statusBadge.enabledLabel") : m(t)("baseConfigCard.statusBadge.disabledLabel")), 1)
886
+ G(O(e.status ? y(t)("baseConfigCard.statusBadge.enabledLabel") : y(t)("baseConfigCard.statusBadge.disabledLabel")), 1)
891
887
  ]),
892
888
  _: 1
893
889
  }, 8, ["appearance"]);
@@ -917,7 +913,7 @@ const ae = {
917
913
  emits: ["navigation-click"],
918
914
  setup(e, { emit: t }) {
919
915
  rn((S) => ({
920
- "2f5b0492": s.value ? "none" : `solid ${m(la)} ${m(ra)}`,
916
+ "2f5b0492": s.value ? "none" : `solid ${y(la)} ${y(ra)}`,
921
917
  "5d59c22c": u.value && l.value ? "block" : "flex",
922
918
  aa41a894: u.value && l.value ? "100%" : n.slim ? "50%" : "25%",
923
919
  aa3d1cde: u.value && l.value ? "100%" : n.slim ? "50%" : "75%"
@@ -1043,9 +1039,9 @@ const ae = {
1043
1039
  text: n.item.value
1044
1040
  };
1045
1041
  }
1046
- }), h = T(), { isTruncated: y } = ae.useTruncationDetector(h);
1042
+ }), v = N(), { isTruncated: m } = ae.useTruncationDetector(v);
1047
1043
  return (S, M) => {
1048
- const x = P("KLabel"), q = P("KBadge"), v = P("KCopy"), I = P("KTooltip");
1044
+ const x = P("KLabel"), F = P("KBadge"), h = P("KCopy"), I = P("KTooltip");
1049
1045
  return f(), j("div", ca, [
1050
1046
  R("div", {
1051
1047
  class: "config-card-details-label",
@@ -1088,7 +1084,7 @@ const ae = {
1088
1084
  key: 0,
1089
1085
  "data-testid": `${e.item.key}-badge-tags`
1090
1086
  }, [
1091
- (f(!0), j(me, null, fe(e.item.value, (C, w) => (f(), V(q, {
1087
+ (f(!0), j(me, null, fe(e.item.value, (C, w) => (f(), V(F, {
1092
1088
  key: `${e.item.key}-badge-tag-${w}`,
1093
1089
  class: "config-badge",
1094
1090
  "data-testid": `${e.item.key}-badge-tag-${w}`,
@@ -1106,7 +1102,7 @@ const ae = {
1106
1102
  class: "copy-uuid-array",
1107
1103
  "data-testid": `${e.item.key}-copy-uuid-array`
1108
1104
  }, [
1109
- (f(!0), j(me, null, fe(e.item.value, (C, w) => (f(), V(v, si({ ref_for: !0 }, d.value.childAttrs, {
1105
+ (f(!0), j(me, null, fe(e.item.value, (C, w) => (f(), V(h, si({ ref_for: !0 }, d.value.childAttrs, {
1110
1106
  key: `${e.item.key}-copy-uuid-${w}`,
1111
1107
  "data-testid": `${e.item.key}-copy-uuid-${w}`,
1112
1108
  text: C
@@ -1116,9 +1112,9 @@ const ae = {
1116
1112
  class: "method-badge-array",
1117
1113
  "data-testid": `${e.item.key}-badge-methods`
1118
1114
  }, [
1119
- (f(!0), j(me, null, fe(e.item.value, (C, w) => (f(), V(q, {
1115
+ (f(!0), j(me, null, fe(e.item.value, (C, w) => (f(), V(F, {
1120
1116
  key: `${e.item.key}-badge-method-${w}`,
1121
- appearance: Object.values(m(yi)).includes(C.toLowerCase()) ? C.toLowerCase() : "custom",
1117
+ appearance: Object.values(y(yi)).includes(C.toLowerCase()) ? C.toLowerCase() : "custom",
1122
1118
  class: "config-badge",
1123
1119
  "data-testid": `${e.item.key}-badge-method-${w}`
1124
1120
  }, {
@@ -1140,12 +1136,12 @@ const ae = {
1140
1136
  }, null, 8, ["index", "item"]))), 128))
1141
1137
  ], 8, va)) : (f(), V(I, {
1142
1138
  key: 4,
1143
- text: m(y) ? e.item.value : ""
1139
+ text: y(m) ? e.item.value : ""
1144
1140
  }, {
1145
1141
  default: k(() => [
1146
1142
  R("span", {
1147
1143
  ref_key: "textContent",
1148
- ref: h,
1144
+ ref: v,
1149
1145
  class: $e(["attrs-data-text", { truncated: e.truncated }])
1150
1146
  }, O(d.value.text), 3)
1151
1147
  ]),
@@ -1262,11 +1258,11 @@ function Ia(e, t) {
1262
1258
  function Aa(e) {
1263
1259
  return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
1264
1260
  }
1265
- var ja = gn, $a = Sa, Na = _a, Ta = Ia, Oa = Aa, Ka = xa, ie = {
1261
+ var ja = gn, $a = Sa, Ta = _a, Na = Ia, Oa = Aa, Ka = xa, ie = {
1266
1262
  isNothing: ja,
1267
1263
  isObject: $a,
1268
- toArray: Na,
1269
- repeat: Ta,
1264
+ toArray: Ta,
1265
+ repeat: Na,
1270
1266
  isNegativeZero: Oa,
1271
1267
  extend: Ka
1272
1268
  };
@@ -1325,7 +1321,7 @@ function Ma(e, t) {
1325
1321
  `;
1326
1322
  return l.replace(/\n$/, "");
1327
1323
  }
1328
- var Fa = Ma, qa = [
1324
+ var qa = Ma, Fa = [
1329
1325
  "kind",
1330
1326
  "multi",
1331
1327
  "resolve",
@@ -1351,7 +1347,7 @@ function Ea(e) {
1351
1347
  }
1352
1348
  function La(e, t) {
1353
1349
  if (t = t || {}, Object.keys(t).forEach(function(n) {
1354
- if (qa.indexOf(n) === -1)
1350
+ if (Fa.indexOf(n) === -1)
1355
1351
  throw new ce('Unknown option "' + n + '" is met in definition of "' + e + '" YAML type.');
1356
1352
  }), this.options = t, this.tag = e, this.kind = t.kind || null, this.resolve = t.resolve || function() {
1357
1353
  return !0;
@@ -1658,15 +1654,15 @@ var In = new oe("tag:yaml.org,2002:float", {
1658
1654
  ]
1659
1655
  }), jn = An, $n = new RegExp(
1660
1656
  "^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"
1661
- ), Nn = new RegExp(
1657
+ ), Tn = new RegExp(
1662
1658
  "^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"
1663
1659
  );
1664
1660
  function rr(e) {
1665
- return e === null ? !1 : $n.exec(e) !== null || Nn.exec(e) !== null;
1661
+ return e === null ? !1 : $n.exec(e) !== null || Tn.exec(e) !== null;
1666
1662
  }
1667
1663
  function or(e) {
1668
- var t, n, i, a, r, o, l, c = 0, u = null, s, d, h;
1669
- if (t = $n.exec(e), t === null && (t = Nn.exec(e)), t === null) throw new Error("Date resolve error");
1664
+ var t, n, i, a, r, o, l, c = 0, u = null, s, d, v;
1665
+ if (t = $n.exec(e), t === null && (t = Tn.exec(e)), t === null) throw new Error("Date resolve error");
1670
1666
  if (n = +t[1], i = +t[2] - 1, a = +t[3], !t[4])
1671
1667
  return new Date(Date.UTC(n, i, a));
1672
1668
  if (r = +t[4], o = +t[5], l = +t[6], t[7]) {
@@ -1674,12 +1670,12 @@ function or(e) {
1674
1670
  c += "0";
1675
1671
  c = +c;
1676
1672
  }
1677
- return t[9] && (s = +t[10], d = +(t[11] || 0), u = (s * 60 + d) * 6e4, t[9] === "-" && (u = -u)), h = new Date(Date.UTC(n, i, a, r, o, l, c)), u && h.setTime(h.getTime() - u), h;
1673
+ return t[9] && (s = +t[10], d = +(t[11] || 0), u = (s * 60 + d) * 6e4, t[9] === "-" && (u = -u)), v = new Date(Date.UTC(n, i, a, r, o, l, c)), u && v.setTime(v.getTime() - u), v;
1678
1674
  }
1679
1675
  function lr(e) {
1680
1676
  return e.toISOString();
1681
1677
  }
1682
- var Tn = new oe("tag:yaml.org,2002:timestamp", {
1678
+ var Nn = new oe("tag:yaml.org,2002:timestamp", {
1683
1679
  kind: "scalar",
1684
1680
  resolve: rr,
1685
1681
  construct: or,
@@ -1765,7 +1761,7 @@ function kr(e) {
1765
1761
  i = o[t], a = Object.keys(i), r[t] = [a[0], i[a[0]]];
1766
1762
  return r;
1767
1763
  }
1768
- var Fn = new oe("tag:yaml.org,2002:pairs", {
1764
+ var qn = new oe("tag:yaml.org,2002:pairs", {
1769
1765
  kind: "sequence",
1770
1766
  resolve: vr,
1771
1767
  construct: kr
@@ -1781,22 +1777,22 @@ function Cr(e) {
1781
1777
  function wr(e) {
1782
1778
  return e !== null ? e : {};
1783
1779
  }
1784
- var qn = new oe("tag:yaml.org,2002:set", {
1780
+ var Fn = new oe("tag:yaml.org,2002:set", {
1785
1781
  kind: "mapping",
1786
1782
  resolve: Cr,
1787
1783
  construct: wr
1788
1784
  }), xt = jn.extend({
1789
1785
  implicit: [
1790
- Tn,
1786
+ Nn,
1791
1787
  On
1792
1788
  ],
1793
1789
  explicit: [
1794
1790
  Kn,
1795
1791
  Mn,
1796
- Fn,
1797
- qn
1792
+ qn,
1793
+ Fn
1798
1794
  ]
1799
- }), Ne = Object.prototype.hasOwnProperty, nt = 1, Bn = 2, En = 3, it = 4, ft = 1, Sr = 2, Ut = 3, _r = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, xr = /[\x85\u2028\u2029]/, Ir = /[,\[\]\{\}]/, Ln = /^(?:!|!!|![a-z\-]+!)$/i, Rn = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
1795
+ }), Te = Object.prototype.hasOwnProperty, nt = 1, Bn = 2, En = 3, it = 4, ft = 1, Sr = 2, Ut = 3, _r = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, xr = /[\x85\u2028\u2029]/, Ir = /[,\[\]\{\}]/, Ln = /^(?:!|!!|![a-z\-]+!)$/i, Rn = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
1800
1796
  function Vt(e) {
1801
1797
  return Object.prototype.toString.call(e);
1802
1798
  }
@@ -1826,7 +1822,7 @@ function Dt(e) {
1826
1822
  return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? `
1827
1823
  ` : e === 118 ? "\v" : e === 102 ? "\f" : e === 114 ? "\r" : e === 101 ? "\x1B" : e === 32 ? " " : e === 34 ? '"' : e === 47 ? "/" : e === 92 ? "\\" : e === 78 ? "…" : e === 95 ? " " : e === 76 ? "\u2028" : e === 80 ? "\u2029" : "";
1828
1824
  }
1829
- function Nr(e) {
1825
+ function Tr(e) {
1830
1826
  return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode(
1831
1827
  (e - 65536 >> 10) + 55296,
1832
1828
  (e - 65536 & 1023) + 56320
@@ -1835,7 +1831,7 @@ function Nr(e) {
1835
1831
  var Un = new Array(256), Vn = new Array(256);
1836
1832
  for (var Be = 0; Be < 256; Be++)
1837
1833
  Un[Be] = Dt(Be) ? 1 : 0, Vn[Be] = Dt(Be);
1838
- function Tr(e, t) {
1834
+ function Nr(e, t) {
1839
1835
  this.input = e, this.filename = t.filename || null, this.schema = t.schema || xt, 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 = [];
1840
1836
  }
1841
1837
  function Dn(e, t) {
@@ -1847,9 +1843,9 @@ function Dn(e, t) {
1847
1843
  line: e.line,
1848
1844
  column: e.position - e.lineStart
1849
1845
  };
1850
- return n.snippet = Fa(n), new ce(t, n);
1846
+ return n.snippet = qa(n), new ce(t, n);
1851
1847
  }
1852
- function N(e, t) {
1848
+ function T(e, t) {
1853
1849
  throw Dn(e, t);
1854
1850
  }
1855
1851
  function at(e, t) {
@@ -1858,15 +1854,15 @@ function at(e, t) {
1858
1854
  var Pt = {
1859
1855
  YAML: function(e, t, n) {
1860
1856
  var i, a, r;
1861
- e.version !== null && N(e, "duplication of %YAML directive"), n.length !== 1 && N(e, "YAML directive accepts exactly one argument"), i = /^([0-9]+)\.([0-9]+)$/.exec(n[0]), i === null && N(e, "ill-formed argument of the YAML directive"), a = parseInt(i[1], 10), r = parseInt(i[2], 10), a !== 1 && N(e, "unacceptable YAML version of the document"), e.version = n[0], e.checkLineBreaks = r < 2, r !== 1 && r !== 2 && at(e, "unsupported YAML version of the document");
1857
+ e.version !== null && T(e, "duplication of %YAML directive"), n.length !== 1 && T(e, "YAML directive accepts exactly one argument"), i = /^([0-9]+)\.([0-9]+)$/.exec(n[0]), i === null && T(e, "ill-formed argument of the YAML directive"), a = parseInt(i[1], 10), r = parseInt(i[2], 10), a !== 1 && T(e, "unacceptable YAML version of the document"), e.version = n[0], e.checkLineBreaks = r < 2, r !== 1 && r !== 2 && at(e, "unsupported YAML version of the document");
1862
1858
  },
1863
1859
  TAG: function(e, t, n) {
1864
1860
  var i, a;
1865
- n.length !== 2 && N(e, "TAG directive accepts exactly two arguments"), i = n[0], a = n[1], Ln.test(i) || N(e, "ill-formed tag handle (first argument) of the TAG directive"), Ne.call(e.tagMap, i) && N(e, 'there is a previously declared suffix for "' + i + '" tag handle'), Rn.test(a) || N(e, "ill-formed tag prefix (second argument) of the TAG directive");
1861
+ n.length !== 2 && T(e, "TAG directive accepts exactly two arguments"), i = n[0], a = n[1], Ln.test(i) || T(e, "ill-formed tag handle (first argument) of the TAG directive"), Te.call(e.tagMap, i) && T(e, 'there is a previously declared suffix for "' + i + '" tag handle'), Rn.test(a) || T(e, "ill-formed tag prefix (second argument) of the TAG directive");
1866
1862
  try {
1867
1863
  a = decodeURIComponent(a);
1868
1864
  } catch {
1869
- N(e, "tag prefix is malformed: " + a);
1865
+ T(e, "tag prefix is malformed: " + a);
1870
1866
  }
1871
1867
  e.tagMap[i] = a;
1872
1868
  }
@@ -1876,21 +1872,21 @@ function je(e, t, n, i) {
1876
1872
  if (t < n) {
1877
1873
  if (l = e.input.slice(t, n), i)
1878
1874
  for (a = 0, r = l.length; a < r; a += 1)
1879
- o = l.charCodeAt(a), o === 9 || 32 <= o && o <= 1114111 || N(e, "expected valid JSON character");
1880
- else _r.test(l) && N(e, "the stream contains non-printable characters");
1875
+ o = l.charCodeAt(a), o === 9 || 32 <= o && o <= 1114111 || T(e, "expected valid JSON character");
1876
+ else _r.test(l) && T(e, "the stream contains non-printable characters");
1881
1877
  e.result += l;
1882
1878
  }
1883
1879
  }
1884
1880
  function zt(e, t, n, i) {
1885
1881
  var a, r, o, l;
1886
- for (ie.isObject(n) || N(e, "cannot merge mappings; the provided source object is unacceptable"), a = Object.keys(n), o = 0, l = a.length; o < l; o += 1)
1887
- r = a[o], Ne.call(t, r) || (t[r] = n[r], i[r] = !0);
1882
+ for (ie.isObject(n) || T(e, "cannot merge mappings; the provided source object is unacceptable"), a = Object.keys(n), o = 0, l = a.length; o < l; o += 1)
1883
+ r = a[o], Te.call(t, r) || (t[r] = n[r], i[r] = !0);
1888
1884
  }
1889
1885
  function Re(e, t, n, i, a, r, o, l, c) {
1890
1886
  var u, s;
1891
1887
  if (Array.isArray(a))
1892
1888
  for (a = Array.prototype.slice.call(a), u = 0, s = a.length; u < s; u += 1)
1893
- Array.isArray(a[u]) && N(e, "nested arrays are not supported inside keys"), typeof a == "object" && Vt(a[u]) === "[object Object]" && (a[u] = "[object Object]");
1889
+ Array.isArray(a[u]) && T(e, "nested arrays are not supported inside keys"), typeof a == "object" && Vt(a[u]) === "[object Object]" && (a[u] = "[object Object]");
1894
1890
  if (typeof a == "object" && Vt(a) === "[object Object]" && (a = "[object Object]"), a = String(a), t === null && (t = {}), i === "tag:yaml.org,2002:merge")
1895
1891
  if (Array.isArray(r))
1896
1892
  for (u = 0, s = r.length; u < s; u += 1)
@@ -1898,7 +1894,7 @@ function Re(e, t, n, i, a, r, o, l, c) {
1898
1894
  else
1899
1895
  zt(e, t, r, n);
1900
1896
  else
1901
- !e.json && !Ne.call(n, a) && Ne.call(t, a) && (e.line = o || e.line, e.lineStart = l || e.lineStart, e.position = c || e.position, N(e, "duplicated mapping key")), a === "__proto__" ? Object.defineProperty(t, a, {
1897
+ !e.json && !Te.call(n, a) && Te.call(t, a) && (e.line = o || e.line, e.lineStart = l || e.lineStart, e.position = c || e.position, T(e, "duplicated mapping key")), a === "__proto__" ? Object.defineProperty(t, a, {
1902
1898
  configurable: !0,
1903
1899
  enumerable: !0,
1904
1900
  writable: !0,
@@ -1908,7 +1904,7 @@ function Re(e, t, n, i, a, r, o, l, c) {
1908
1904
  }
1909
1905
  function It(e) {
1910
1906
  var t;
1911
- t = e.input.charCodeAt(e.position), t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : N(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
1907
+ t = e.input.charCodeAt(e.position), t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : T(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
1912
1908
  }
1913
1909
  function ne(e, t, n) {
1914
1910
  for (var i = 0, a = e.input.charCodeAt(e.position); a !== 0; ) {
@@ -1935,31 +1931,31 @@ function At(e, t) {
1935
1931
  `, t - 1));
1936
1932
  }
1937
1933
  function Or(e, t, n) {
1938
- var i, a, r, o, l, c, u, s, d = e.kind, h = e.result, y;
1939
- if (y = e.input.charCodeAt(e.position), pe(y) || Le(y) || y === 35 || y === 38 || y === 42 || y === 33 || y === 124 || y === 62 || y === 39 || y === 34 || y === 37 || y === 64 || y === 96 || (y === 63 || y === 45) && (a = e.input.charCodeAt(e.position + 1), pe(a) || n && Le(a)))
1934
+ var i, a, r, o, l, c, u, s, d = e.kind, v = e.result, m;
1935
+ if (m = e.input.charCodeAt(e.position), pe(m) || Le(m) || m === 35 || m === 38 || m === 42 || m === 33 || m === 124 || m === 62 || m === 39 || m === 34 || m === 37 || m === 64 || m === 96 || (m === 63 || m === 45) && (a = e.input.charCodeAt(e.position + 1), pe(a) || n && Le(a)))
1940
1936
  return !1;
1941
- for (e.kind = "scalar", e.result = "", r = o = e.position, l = !1; y !== 0; ) {
1942
- if (y === 58) {
1937
+ for (e.kind = "scalar", e.result = "", r = o = e.position, l = !1; m !== 0; ) {
1938
+ if (m === 58) {
1943
1939
  if (a = e.input.charCodeAt(e.position + 1), pe(a) || n && Le(a))
1944
1940
  break;
1945
- } else if (y === 35) {
1941
+ } else if (m === 35) {
1946
1942
  if (i = e.input.charCodeAt(e.position - 1), pe(i))
1947
1943
  break;
1948
1944
  } else {
1949
- if (e.position === e.lineStart && ct(e) || n && Le(y))
1945
+ if (e.position === e.lineStart && ct(e) || n && Le(m))
1950
1946
  break;
1951
- if (ke(y))
1947
+ if (ke(m))
1952
1948
  if (c = e.line, u = e.lineStart, s = e.lineIndent, ne(e, !1, -1), e.lineIndent >= t) {
1953
- l = !0, y = e.input.charCodeAt(e.position);
1949
+ l = !0, m = e.input.charCodeAt(e.position);
1954
1950
  continue;
1955
1951
  } else {
1956
1952
  e.position = o, e.line = c, e.lineStart = u, e.lineIndent = s;
1957
1953
  break;
1958
1954
  }
1959
1955
  }
1960
- l && (je(e, r, o, !1), At(e, e.line - c), r = o = e.position, l = !1), Ke(y) || (o = e.position + 1), y = e.input.charCodeAt(++e.position);
1956
+ l && (je(e, r, o, !1), At(e, e.line - c), r = o = e.position, l = !1), Ke(m) || (o = e.position + 1), m = e.input.charCodeAt(++e.position);
1961
1957
  }
1962
- return je(e, r, o, !1), e.result ? !0 : (e.kind = d, e.result = h, !1);
1958
+ return je(e, r, o, !1), e.result ? !0 : (e.kind = d, e.result = v, !1);
1963
1959
  }
1964
1960
  function Kr(e, t) {
1965
1961
  var n, i, a;
@@ -1971,8 +1967,8 @@ function Kr(e, t) {
1971
1967
  i = e.position, e.position++, a = e.position;
1972
1968
  else
1973
1969
  return !0;
1974
- else ke(n) ? (je(e, i, a, !0), At(e, ne(e, !1, t)), i = a = e.position) : e.position === e.lineStart && ct(e) ? N(e, "unexpected end of the document within a single quoted scalar") : (e.position++, a = e.position);
1975
- N(e, "unexpected end of the stream within a single quoted scalar");
1970
+ else ke(n) ? (je(e, i, a, !0), At(e, ne(e, !1, t)), i = a = e.position) : e.position === e.lineStart && ct(e) ? T(e, "unexpected end of the document within a single quoted scalar") : (e.position++, a = e.position);
1971
+ T(e, "unexpected end of the stream within a single quoted scalar");
1976
1972
  }
1977
1973
  function Mr(e, t) {
1978
1974
  var n, i, a, r, o, l;
@@ -1988,31 +1984,31 @@ function Mr(e, t) {
1988
1984
  e.result += Vn[l], e.position++;
1989
1985
  else if ((o = jr(l)) > 0) {
1990
1986
  for (a = o, r = 0; a > 0; a--)
1991
- l = e.input.charCodeAt(++e.position), (o = Ar(l)) >= 0 ? r = (r << 4) + o : N(e, "expected hexadecimal character");
1992
- e.result += Nr(r), e.position++;
1987
+ l = e.input.charCodeAt(++e.position), (o = Ar(l)) >= 0 ? r = (r << 4) + o : T(e, "expected hexadecimal character");
1988
+ e.result += Tr(r), e.position++;
1993
1989
  } else
1994
- N(e, "unknown escape sequence");
1990
+ T(e, "unknown escape sequence");
1995
1991
  n = i = e.position;
1996
- } else ke(l) ? (je(e, n, i, !0), At(e, ne(e, !1, t)), n = i = e.position) : e.position === e.lineStart && ct(e) ? N(e, "unexpected end of the document within a double quoted scalar") : (e.position++, i = e.position);
1992
+ } else ke(l) ? (je(e, n, i, !0), At(e, ne(e, !1, t)), n = i = e.position) : e.position === e.lineStart && ct(e) ? T(e, "unexpected end of the document within a double quoted scalar") : (e.position++, i = e.position);
1997
1993
  }
1998
- N(e, "unexpected end of the stream within a double quoted scalar");
1994
+ T(e, "unexpected end of the stream within a double quoted scalar");
1999
1995
  }
2000
- function Fr(e, t) {
2001
- var n = !0, i, a, r, o = e.tag, l, c = e.anchor, u, s, d, h, y, S = /* @__PURE__ */ Object.create(null), M, x, q, v;
2002
- if (v = e.input.charCodeAt(e.position), v === 91)
2003
- s = 93, y = !1, l = [];
2004
- else if (v === 123)
2005
- s = 125, y = !0, l = {};
1996
+ function qr(e, t) {
1997
+ var n = !0, i, a, r, o = e.tag, l, c = e.anchor, u, s, d, v, m, S = /* @__PURE__ */ Object.create(null), M, x, F, h;
1998
+ if (h = e.input.charCodeAt(e.position), h === 91)
1999
+ s = 93, m = !1, l = [];
2000
+ else if (h === 123)
2001
+ s = 125, m = !0, l = {};
2006
2002
  else
2007
2003
  return !1;
2008
- for (e.anchor !== null && (e.anchorMap[e.anchor] = l), v = e.input.charCodeAt(++e.position); v !== 0; ) {
2009
- if (ne(e, !0, t), v = e.input.charCodeAt(e.position), v === s)
2010
- return e.position++, e.tag = o, e.anchor = c, e.kind = y ? "mapping" : "sequence", e.result = l, !0;
2011
- n ? v === 44 && N(e, "expected the node content, but found ','") : N(e, "missed comma between flow collection entries"), x = M = q = null, d = h = !1, v === 63 && (u = e.input.charCodeAt(e.position + 1), pe(u) && (d = h = !0, e.position++, ne(e, !0, t))), i = e.line, a = e.lineStart, r = e.position, Ue(e, t, nt, !1, !0), x = e.tag, M = e.result, ne(e, !0, t), v = e.input.charCodeAt(e.position), (h || e.line === i) && v === 58 && (d = !0, v = e.input.charCodeAt(++e.position), ne(e, !0, t), Ue(e, t, nt, !1, !0), q = e.result), y ? Re(e, l, S, x, M, q, i, a, r) : d ? l.push(Re(e, null, S, x, M, q, i, a, r)) : l.push(M), ne(e, !0, t), v = e.input.charCodeAt(e.position), v === 44 ? (n = !0, v = e.input.charCodeAt(++e.position)) : n = !1;
2004
+ for (e.anchor !== null && (e.anchorMap[e.anchor] = l), h = e.input.charCodeAt(++e.position); h !== 0; ) {
2005
+ if (ne(e, !0, t), h = e.input.charCodeAt(e.position), h === s)
2006
+ return e.position++, e.tag = o, e.anchor = c, e.kind = m ? "mapping" : "sequence", e.result = l, !0;
2007
+ n ? h === 44 && T(e, "expected the node content, but found ','") : T(e, "missed comma between flow collection entries"), x = M = F = null, d = v = !1, h === 63 && (u = e.input.charCodeAt(e.position + 1), pe(u) && (d = v = !0, e.position++, ne(e, !0, t))), i = e.line, a = e.lineStart, r = e.position, Ue(e, t, nt, !1, !0), x = e.tag, M = e.result, ne(e, !0, t), h = e.input.charCodeAt(e.position), (v || e.line === i) && h === 58 && (d = !0, h = e.input.charCodeAt(++e.position), ne(e, !0, t), Ue(e, t, nt, !1, !0), F = e.result), m ? Re(e, l, S, x, M, F, i, a, r) : d ? l.push(Re(e, null, S, x, M, F, i, a, r)) : l.push(M), ne(e, !0, t), h = e.input.charCodeAt(e.position), h === 44 ? (n = !0, h = e.input.charCodeAt(++e.position)) : n = !1;
2012
2008
  }
2013
- N(e, "unexpected end of the stream within a flow collection");
2009
+ T(e, "unexpected end of the stream within a flow collection");
2014
2010
  }
2015
- function qr(e, t) {
2011
+ function Fr(e, t) {
2016
2012
  var n, i, a = ft, r = !1, o = !1, l = t, c = 0, u = !1, s, d;
2017
2013
  if (d = e.input.charCodeAt(e.position), d === 124)
2018
2014
  i = !1;
@@ -2022,9 +2018,9 @@ function qr(e, t) {
2022
2018
  return !1;
2023
2019
  for (e.kind = "scalar", e.result = ""; d !== 0; )
2024
2020
  if (d = e.input.charCodeAt(++e.position), d === 43 || d === 45)
2025
- ft === a ? a = d === 43 ? Ut : Sr : N(e, "repeat of a chomping mode identifier");
2021
+ ft === a ? a = d === 43 ? Ut : Sr : T(e, "repeat of a chomping mode identifier");
2026
2022
  else if ((s = $r(d)) >= 0)
2027
- s === 0 ? N(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : o ? N(e, "repeat of an indentation width identifier") : (l = t + s - 1, o = !0);
2023
+ s === 0 ? T(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : o ? T(e, "repeat of an indentation width identifier") : (l = t + s - 1, o = !0);
2028
2024
  else
2029
2025
  break;
2030
2026
  if (Ke(d)) {
@@ -2062,106 +2058,106 @@ function qr(e, t) {
2062
2058
  function Jt(e, t) {
2063
2059
  var n, i = e.tag, a = e.anchor, r = [], o, l = !1, c;
2064
2060
  if (e.firstTabInLine !== -1) return !1;
2065
- for (e.anchor !== null && (e.anchorMap[e.anchor] = r), c = e.input.charCodeAt(e.position); c !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, N(e, "tab characters must not be used in indentation")), !(c !== 45 || (o = e.input.charCodeAt(e.position + 1), !pe(o)))); ) {
2061
+ for (e.anchor !== null && (e.anchorMap[e.anchor] = r), c = e.input.charCodeAt(e.position); c !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, T(e, "tab characters must not be used in indentation")), !(c !== 45 || (o = e.input.charCodeAt(e.position + 1), !pe(o)))); ) {
2066
2062
  if (l = !0, e.position++, ne(e, !0, -1) && e.lineIndent <= t) {
2067
2063
  r.push(null), c = e.input.charCodeAt(e.position);
2068
2064
  continue;
2069
2065
  }
2070
2066
  if (n = e.line, Ue(e, t, En, !1, !0), r.push(e.result), ne(e, !0, -1), c = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > t) && c !== 0)
2071
- N(e, "bad indentation of a sequence entry");
2067
+ T(e, "bad indentation of a sequence entry");
2072
2068
  else if (e.lineIndent < t)
2073
2069
  break;
2074
2070
  }
2075
2071
  return l ? (e.tag = i, e.anchor = a, e.kind = "sequence", e.result = r, !0) : !1;
2076
2072
  }
2077
2073
  function Br(e, t, n) {
2078
- var i, a, r, o, l, c, u = e.tag, s = e.anchor, d = {}, h = /* @__PURE__ */ Object.create(null), y = null, S = null, M = null, x = !1, q = !1, v;
2074
+ var i, a, r, o, l, c, u = e.tag, s = e.anchor, d = {}, v = /* @__PURE__ */ Object.create(null), m = null, S = null, M = null, x = !1, F = !1, h;
2079
2075
  if (e.firstTabInLine !== -1) return !1;
2080
- for (e.anchor !== null && (e.anchorMap[e.anchor] = d), v = e.input.charCodeAt(e.position); v !== 0; ) {
2081
- if (!x && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, N(e, "tab characters must not be used in indentation")), i = e.input.charCodeAt(e.position + 1), r = e.line, (v === 63 || v === 58) && pe(i))
2082
- v === 63 ? (x && (Re(e, d, h, y, S, null, o, l, c), y = S = M = null), q = !0, x = !0, a = !0) : x ? (x = !1, a = !0) : N(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, v = i;
2076
+ for (e.anchor !== null && (e.anchorMap[e.anchor] = d), h = e.input.charCodeAt(e.position); h !== 0; ) {
2077
+ if (!x && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, T(e, "tab characters must not be used in indentation")), i = e.input.charCodeAt(e.position + 1), r = e.line, (h === 63 || h === 58) && pe(i))
2078
+ h === 63 ? (x && (Re(e, d, v, m, S, null, o, l, c), m = S = M = null), F = !0, x = !0, a = !0) : x ? (x = !1, a = !0) : T(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, h = i;
2083
2079
  else {
2084
2080
  if (o = e.line, l = e.lineStart, c = e.position, !Ue(e, n, Bn, !1, !0))
2085
2081
  break;
2086
2082
  if (e.line === r) {
2087
- for (v = e.input.charCodeAt(e.position); Ke(v); )
2088
- v = e.input.charCodeAt(++e.position);
2089
- if (v === 58)
2090
- v = e.input.charCodeAt(++e.position), pe(v) || N(e, "a whitespace character is expected after the key-value separator within a block mapping"), x && (Re(e, d, h, y, S, null, o, l, c), y = S = M = null), q = !0, x = !1, a = !1, y = e.tag, S = e.result;
2091
- else if (q)
2092
- N(e, "can not read an implicit mapping pair; a colon is missed");
2083
+ for (h = e.input.charCodeAt(e.position); Ke(h); )
2084
+ h = e.input.charCodeAt(++e.position);
2085
+ if (h === 58)
2086
+ h = e.input.charCodeAt(++e.position), pe(h) || T(e, "a whitespace character is expected after the key-value separator within a block mapping"), x && (Re(e, d, v, m, S, null, o, l, c), m = S = M = null), F = !0, x = !1, a = !1, m = e.tag, S = e.result;
2087
+ else if (F)
2088
+ T(e, "can not read an implicit mapping pair; a colon is missed");
2093
2089
  else
2094
2090
  return e.tag = u, e.anchor = s, !0;
2095
- } else if (q)
2096
- N(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
2091
+ } else if (F)
2092
+ T(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
2097
2093
  else
2098
2094
  return e.tag = u, e.anchor = s, !0;
2099
2095
  }
2100
- if ((e.line === r || e.lineIndent > t) && (x && (o = e.line, l = e.lineStart, c = e.position), Ue(e, t, it, !0, a) && (x ? S = e.result : M = e.result), x || (Re(e, d, h, y, S, M, o, l, c), y = S = M = null), ne(e, !0, -1), v = e.input.charCodeAt(e.position)), (e.line === r || e.lineIndent > t) && v !== 0)
2101
- N(e, "bad indentation of a mapping entry");
2096
+ if ((e.line === r || e.lineIndent > t) && (x && (o = e.line, l = e.lineStart, c = e.position), Ue(e, t, it, !0, a) && (x ? S = e.result : M = e.result), x || (Re(e, d, v, m, S, M, o, l, c), m = S = M = null), ne(e, !0, -1), h = e.input.charCodeAt(e.position)), (e.line === r || e.lineIndent > t) && h !== 0)
2097
+ T(e, "bad indentation of a mapping entry");
2102
2098
  else if (e.lineIndent < t)
2103
2099
  break;
2104
2100
  }
2105
- return x && Re(e, d, h, y, S, null, o, l, c), q && (e.tag = u, e.anchor = s, e.kind = "mapping", e.result = d), q;
2101
+ return x && Re(e, d, v, m, S, null, o, l, c), F && (e.tag = u, e.anchor = s, e.kind = "mapping", e.result = d), F;
2106
2102
  }
2107
2103
  function Er(e) {
2108
2104
  var t, n = !1, i = !1, a, r, o;
2109
2105
  if (o = e.input.charCodeAt(e.position), o !== 33) return !1;
2110
- if (e.tag !== null && N(e, "duplication of a tag property"), o = e.input.charCodeAt(++e.position), o === 60 ? (n = !0, o = e.input.charCodeAt(++e.position)) : o === 33 ? (i = !0, a = "!!", o = e.input.charCodeAt(++e.position)) : a = "!", t = e.position, n) {
2106
+ if (e.tag !== null && T(e, "duplication of a tag property"), o = e.input.charCodeAt(++e.position), o === 60 ? (n = !0, o = e.input.charCodeAt(++e.position)) : o === 33 ? (i = !0, a = "!!", o = e.input.charCodeAt(++e.position)) : a = "!", t = e.position, n) {
2111
2107
  do
2112
2108
  o = e.input.charCodeAt(++e.position);
2113
2109
  while (o !== 0 && o !== 62);
2114
- e.position < e.length ? (r = e.input.slice(t, e.position), o = e.input.charCodeAt(++e.position)) : N(e, "unexpected end of the stream within a verbatim tag");
2110
+ e.position < e.length ? (r = e.input.slice(t, e.position), o = e.input.charCodeAt(++e.position)) : T(e, "unexpected end of the stream within a verbatim tag");
2115
2111
  } else {
2116
2112
  for (; o !== 0 && !pe(o); )
2117
- o === 33 && (i ? N(e, "tag suffix cannot contain exclamation marks") : (a = e.input.slice(t - 1, e.position + 1), Ln.test(a) || N(e, "named tag handle cannot contain such characters"), i = !0, t = e.position + 1)), o = e.input.charCodeAt(++e.position);
2118
- r = e.input.slice(t, e.position), Ir.test(r) && N(e, "tag suffix cannot contain flow indicator characters");
2113
+ o === 33 && (i ? T(e, "tag suffix cannot contain exclamation marks") : (a = e.input.slice(t - 1, e.position + 1), Ln.test(a) || T(e, "named tag handle cannot contain such characters"), i = !0, t = e.position + 1)), o = e.input.charCodeAt(++e.position);
2114
+ r = e.input.slice(t, e.position), Ir.test(r) && T(e, "tag suffix cannot contain flow indicator characters");
2119
2115
  }
2120
- r && !Rn.test(r) && N(e, "tag name cannot contain such characters: " + r);
2116
+ r && !Rn.test(r) && T(e, "tag name cannot contain such characters: " + r);
2121
2117
  try {
2122
2118
  r = decodeURIComponent(r);
2123
2119
  } catch {
2124
- N(e, "tag name is malformed: " + r);
2120
+ T(e, "tag name is malformed: " + r);
2125
2121
  }
2126
- return n ? e.tag = r : Ne.call(e.tagMap, a) ? e.tag = e.tagMap[a] + r : a === "!" ? e.tag = "!" + r : a === "!!" ? e.tag = "tag:yaml.org,2002:" + r : N(e, 'undeclared tag handle "' + a + '"'), !0;
2122
+ return n ? e.tag = r : Te.call(e.tagMap, a) ? e.tag = e.tagMap[a] + r : a === "!" ? e.tag = "!" + r : a === "!!" ? e.tag = "tag:yaml.org,2002:" + r : T(e, 'undeclared tag handle "' + a + '"'), !0;
2127
2123
  }
2128
2124
  function Lr(e) {
2129
2125
  var t, n;
2130
2126
  if (n = e.input.charCodeAt(e.position), n !== 38) return !1;
2131
- for (e.anchor !== null && N(e, "duplication of an anchor property"), n = e.input.charCodeAt(++e.position), t = e.position; n !== 0 && !pe(n) && !Le(n); )
2127
+ for (e.anchor !== null && T(e, "duplication of an anchor property"), n = e.input.charCodeAt(++e.position), t = e.position; n !== 0 && !pe(n) && !Le(n); )
2132
2128
  n = e.input.charCodeAt(++e.position);
2133
- return e.position === t && N(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(t, e.position), !0;
2129
+ return e.position === t && T(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(t, e.position), !0;
2134
2130
  }
2135
2131
  function Rr(e) {
2136
2132
  var t, n, i;
2137
2133
  if (i = e.input.charCodeAt(e.position), i !== 42) return !1;
2138
2134
  for (i = e.input.charCodeAt(++e.position), t = e.position; i !== 0 && !pe(i) && !Le(i); )
2139
2135
  i = e.input.charCodeAt(++e.position);
2140
- return e.position === t && N(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), Ne.call(e.anchorMap, n) || N(e, 'unidentified alias "' + n + '"'), e.result = e.anchorMap[n], ne(e, !0, -1), !0;
2136
+ return e.position === t && T(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), Te.call(e.anchorMap, n) || T(e, 'unidentified alias "' + n + '"'), e.result = e.anchorMap[n], ne(e, !0, -1), !0;
2141
2137
  }
2142
2138
  function Ue(e, t, n, i, a) {
2143
- var r, o, l, c = 1, u = !1, s = !1, d, h, y, S, M, x;
2139
+ var r, o, l, c = 1, u = !1, s = !1, d, v, m, S, M, x;
2144
2140
  if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, r = o = l = it === n || En === n, i && ne(e, !0, -1) && (u = !0, e.lineIndent > t ? c = 1 : e.lineIndent === t ? c = 0 : e.lineIndent < t && (c = -1)), c === 1)
2145
2141
  for (; Er(e) || Lr(e); )
2146
2142
  ne(e, !0, -1) ? (u = !0, l = r, e.lineIndent > t ? c = 1 : e.lineIndent === t ? c = 0 : e.lineIndent < t && (c = -1)) : l = !1;
2147
- if (l && (l = u || a), (c === 1 || it === n) && (nt === n || Bn === n ? M = t : M = t + 1, x = e.position - e.lineStart, c === 1 ? l && (Jt(e, x) || Br(e, x, M)) || Fr(e, M) ? s = !0 : (o && qr(e, M) || Kr(e, M) || Mr(e, M) ? s = !0 : Rr(e) ? (s = !0, (e.tag !== null || e.anchor !== null) && N(e, "alias node should not have any properties")) : Or(e, M, nt === n) && (s = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : c === 0 && (s = l && Jt(e, x))), e.tag === null)
2143
+ if (l && (l = u || a), (c === 1 || it === n) && (nt === n || Bn === n ? M = t : M = t + 1, x = e.position - e.lineStart, c === 1 ? l && (Jt(e, x) || Br(e, x, M)) || qr(e, M) ? s = !0 : (o && Fr(e, M) || Kr(e, M) || Mr(e, M) ? s = !0 : Rr(e) ? (s = !0, (e.tag !== null || e.anchor !== null) && T(e, "alias node should not have any properties")) : Or(e, M, nt === n) && (s = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : c === 0 && (s = l && Jt(e, x))), e.tag === null)
2148
2144
  e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
2149
2145
  else if (e.tag === "?") {
2150
- for (e.result !== null && e.kind !== "scalar" && N(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), d = 0, h = e.implicitTypes.length; d < h; d += 1)
2146
+ for (e.result !== null && e.kind !== "scalar" && T(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), d = 0, v = e.implicitTypes.length; d < v; d += 1)
2151
2147
  if (S = e.implicitTypes[d], S.resolve(e.result)) {
2152
2148
  e.result = S.construct(e.result), e.tag = S.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
2153
2149
  break;
2154
2150
  }
2155
2151
  } else if (e.tag !== "!") {
2156
- if (Ne.call(e.typeMap[e.kind || "fallback"], e.tag))
2152
+ if (Te.call(e.typeMap[e.kind || "fallback"], e.tag))
2157
2153
  S = e.typeMap[e.kind || "fallback"][e.tag];
2158
2154
  else
2159
- for (S = null, y = e.typeMap.multi[e.kind || "fallback"], d = 0, h = y.length; d < h; d += 1)
2160
- if (e.tag.slice(0, y[d].tag.length) === y[d].tag) {
2161
- S = y[d];
2155
+ for (S = null, m = e.typeMap.multi[e.kind || "fallback"], d = 0, v = m.length; d < v; d += 1)
2156
+ if (e.tag.slice(0, m[d].tag.length) === m[d].tag) {
2157
+ S = m[d];
2162
2158
  break;
2163
2159
  }
2164
- S || N(e, "unknown tag !<" + e.tag + ">"), e.result !== null && S.kind !== e.kind && N(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + S.kind + '", not "' + e.kind + '"'), S.resolve(e.result, e.tag) ? (e.result = S.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : N(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
2160
+ S || T(e, "unknown tag !<" + e.tag + ">"), e.result !== null && S.kind !== e.kind && T(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + S.kind + '", not "' + e.kind + '"'), S.resolve(e.result, e.tag) ? (e.result = S.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : T(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
2165
2161
  }
2166
2162
  return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || s;
2167
2163
  }
@@ -2170,7 +2166,7 @@ function Ur(e) {
2170
2166
  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 && (ne(e, !0, -1), o = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || o !== 37)); ) {
2171
2167
  for (r = !0, o = e.input.charCodeAt(++e.position), n = e.position; o !== 0 && !pe(o); )
2172
2168
  o = e.input.charCodeAt(++e.position);
2173
- for (i = e.input.slice(n, e.position), a = [], i.length < 1 && N(e, "directive name must not be less than one character in length"); o !== 0; ) {
2169
+ for (i = e.input.slice(n, e.position), a = [], i.length < 1 && T(e, "directive name must not be less than one character in length"); o !== 0; ) {
2174
2170
  for (; Ke(o); )
2175
2171
  o = e.input.charCodeAt(++e.position);
2176
2172
  if (o === 35) {
@@ -2184,22 +2180,22 @@ function Ur(e) {
2184
2180
  o = e.input.charCodeAt(++e.position);
2185
2181
  a.push(e.input.slice(n, e.position));
2186
2182
  }
2187
- o !== 0 && It(e), Ne.call(Pt, i) ? Pt[i](e, i, a) : at(e, 'unknown document directive "' + i + '"');
2183
+ o !== 0 && It(e), Te.call(Pt, i) ? Pt[i](e, i, a) : at(e, 'unknown document directive "' + i + '"');
2188
2184
  }
2189
- if (ne(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, ne(e, !0, -1)) : r && N(e, "directives end mark is expected"), Ue(e, e.lineIndent - 1, it, !1, !0), ne(e, !0, -1), e.checkLineBreaks && xr.test(e.input.slice(t, e.position)) && at(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && ct(e)) {
2185
+ if (ne(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, ne(e, !0, -1)) : r && T(e, "directives end mark is expected"), Ue(e, e.lineIndent - 1, it, !1, !0), ne(e, !0, -1), e.checkLineBreaks && xr.test(e.input.slice(t, e.position)) && at(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && ct(e)) {
2190
2186
  e.input.charCodeAt(e.position) === 46 && (e.position += 3, ne(e, !0, -1));
2191
2187
  return;
2192
2188
  }
2193
2189
  if (e.position < e.length - 1)
2194
- N(e, "end of the stream or a document separator is expected");
2190
+ T(e, "end of the stream or a document separator is expected");
2195
2191
  else
2196
2192
  return;
2197
2193
  }
2198
2194
  function Pn(e, t) {
2199
2195
  e = String(e), t = t || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
2200
2196
  `), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
2201
- var n = new Tr(e, t), i = e.indexOf("\0");
2202
- for (i !== -1 && (n.position = i, N(n, "null byte is not allowed in input")), n.input += "\0"; n.input.charCodeAt(n.position) === 32; )
2197
+ var n = new Nr(e, t), i = e.indexOf("\0");
2198
+ for (i !== -1 && (n.position = i, T(n, "null byte is not allowed in input")), n.input += "\0"; n.input.charCodeAt(n.position) === 32; )
2203
2199
  n.lineIndent += 1, n.position += 1;
2204
2200
  for (; n.position < n.length - 1; )
2205
2201
  Ur(n);
@@ -2334,7 +2330,7 @@ function Xn(e) {
2334
2330
  }
2335
2331
  var ei = 1, vt = 2, ti = 3, ni = 4, Ee = 5;
2336
2332
  function vo(e, t, n, i, a, r, o, l) {
2337
- var c, u = 0, s = null, d = !1, h = !1, y = i !== -1, S = -1, M = go(Je(e, 0)) && ho(Je(e, e.length - 1));
2333
+ var c, u = 0, s = null, d = !1, v = !1, m = i !== -1, S = -1, M = go(Je(e, 0)) && ho(Je(e, e.length - 1));
2338
2334
  if (t || o)
2339
2335
  for (c = 0; c < e.length; u >= 65536 ? c += 2 : c++) {
2340
2336
  if (u = Je(e, c), !Ze(u))
@@ -2344,15 +2340,15 @@ function vo(e, t, n, i, a, r, o, l) {
2344
2340
  else {
2345
2341
  for (c = 0; c < e.length; u >= 65536 ? c += 2 : c++) {
2346
2342
  if (u = Je(e, c), u === We)
2347
- d = !0, y && (h = h || // Foldable line = too long, and not more-indented.
2343
+ d = !0, m && (v = v || // Foldable line = too long, and not more-indented.
2348
2344
  c - S - 1 > i && e[S + 1] !== " ", S = c);
2349
2345
  else if (!Ze(u))
2350
2346
  return Ee;
2351
2347
  M = M && Yt(u, s, l), s = u;
2352
2348
  }
2353
- h = h || y && c - S - 1 > i && e[S + 1] !== " ";
2349
+ v = v || m && c - S - 1 > i && e[S + 1] !== " ";
2354
2350
  }
2355
- return !d && !h ? M && !o && !a(e) ? ei : r === Ye ? Ee : vt : n > 9 && Xn(e) ? Ee : o ? r === Ye ? Ee : vt : h ? ni : ti;
2351
+ return !d && !v ? M && !o && !a(e) ? ei : r === Ye ? Ee : vt : n > 9 && Xn(e) ? Ee : o ? r === Ye ? Ee : vt : v ? ni : ti;
2356
2352
  }
2357
2353
  function ko(e, t, n, i, a) {
2358
2354
  e.dump = function() {
@@ -2447,7 +2443,7 @@ function So(e, t, n) {
2447
2443
  e.tag = a, e.dump = "{" + i + "}";
2448
2444
  }
2449
2445
  function _o(e, t, n, i) {
2450
- var a = "", r = e.tag, o = Object.keys(n), l, c, u, s, d, h;
2446
+ var a = "", r = e.tag, o = Object.keys(n), l, c, u, s, d, v;
2451
2447
  if (e.sortKeys === !0)
2452
2448
  o.sort();
2453
2449
  else if (typeof e.sortKeys == "function")
@@ -2455,7 +2451,7 @@ function _o(e, t, n, i) {
2455
2451
  else if (e.sortKeys)
2456
2452
  throw new ce("sortKeys must be a boolean or a function");
2457
2453
  for (l = 0, c = o.length; l < c; l += 1)
2458
- h = "", (!i || a !== "") && (h += ht(e, t)), u = o[l], s = n[u], e.replacer && (s = e.replacer.call(n, u, s)), we(e, t + 1, u, !0, !0, !0) && (d = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, d && (e.dump && We === e.dump.charCodeAt(0) ? h += "?" : h += "? "), h += e.dump, d && (h += ht(e, t)), we(e, t + 1, s, !0, d) && (e.dump && We === e.dump.charCodeAt(0) ? h += ":" : h += ": ", h += e.dump, a += h));
2454
+ v = "", (!i || a !== "") && (v += ht(e, t)), u = o[l], s = n[u], e.replacer && (s = e.replacer.call(n, u, s)), we(e, t + 1, u, !0, !0, !0) && (d = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, d && (e.dump && We === e.dump.charCodeAt(0) ? v += "?" : v += "? "), v += e.dump, d && (v += ht(e, t)), we(e, t + 1, s, !0, d) && (e.dump && We === e.dump.charCodeAt(0) ? v += ":" : v += ": ", v += e.dump, a += v));
2459
2455
  e.tag = r, e.dump = a || "{}";
2460
2456
  }
2461
2457
  function en(e, t, n) {
@@ -2479,14 +2475,14 @@ function we(e, t, n, i, a, r, o) {
2479
2475
  e.tag = null, e.dump = n, en(e, n, !1) || en(e, n, !0);
2480
2476
  var l = Jn.call(e.dump), c = i, u;
2481
2477
  i && (i = e.flowLevel < 0 || e.flowLevel > t);
2482
- var s = l === "[object Object]" || l === "[object Array]", d, h;
2483
- if (s && (d = e.duplicates.indexOf(n), h = d !== -1), (e.tag !== null && e.tag !== "?" || h || e.indent !== 2 && t > 0) && (a = !1), h && e.usedDuplicates[d])
2478
+ var s = l === "[object Object]" || l === "[object Array]", d, v;
2479
+ if (s && (d = e.duplicates.indexOf(n), v = d !== -1), (e.tag !== null && e.tag !== "?" || v || e.indent !== 2 && t > 0) && (a = !1), v && e.usedDuplicates[d])
2484
2480
  e.dump = "*ref_" + d;
2485
2481
  else {
2486
- if (s && h && !e.usedDuplicates[d] && (e.usedDuplicates[d] = !0), l === "[object Object]")
2487
- i && Object.keys(e.dump).length !== 0 ? (_o(e, t, e.dump, a), h && (e.dump = "&ref_" + d + e.dump)) : (So(e, t, e.dump), h && (e.dump = "&ref_" + d + " " + e.dump));
2482
+ if (s && v && !e.usedDuplicates[d] && (e.usedDuplicates[d] = !0), l === "[object Object]")
2483
+ i && Object.keys(e.dump).length !== 0 ? (_o(e, t, e.dump, a), v && (e.dump = "&ref_" + d + e.dump)) : (So(e, t, e.dump), v && (e.dump = "&ref_" + d + " " + e.dump));
2488
2484
  else if (l === "[object Array]")
2489
- i && e.dump.length !== 0 ? (e.noArrayIndent && !o && t > 0 ? Xt(e, t - 1, e.dump, a) : Xt(e, t, e.dump, a), h && (e.dump = "&ref_" + d + e.dump)) : (wo(e, t, e.dump), h && (e.dump = "&ref_" + d + " " + e.dump));
2485
+ i && e.dump.length !== 0 ? (e.noArrayIndent && !o && t > 0 ? Xt(e, t - 1, e.dump, a) : Xt(e, t, e.dump, a), v && (e.dump = "&ref_" + d + e.dump)) : (wo(e, t, e.dump), v && (e.dump = "&ref_" + d + " " + e.dump));
2490
2486
  else if (l === "[object String]")
2491
2487
  e.tag !== "?" && ko(e, e.dump, t, r, c);
2492
2488
  else {
@@ -2533,14 +2529,14 @@ function $t(e, t) {
2533
2529
  throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + t + " instead, which is now safe by default.");
2534
2530
  };
2535
2531
  }
2536
- var $o = oe, No = vn, To = wn, Oo = An, Ko = jn, Mo = xt, Fo = zn.load, qo = zn.loadAll, Bo = jo.dump, Eo = ce, Lo = {
2532
+ var $o = oe, To = vn, No = wn, Oo = An, Ko = jn, Mo = xt, qo = zn.load, Fo = zn.loadAll, Bo = jo.dump, Eo = ce, Lo = {
2537
2533
  binary: Kn,
2538
2534
  float: In,
2539
2535
  map: Cn,
2540
2536
  null: Sn,
2541
- pairs: Fn,
2542
- set: qn,
2543
- timestamp: Tn,
2537
+ pairs: qn,
2538
+ set: Fn,
2539
+ timestamp: Nn,
2544
2540
  bool: _n,
2545
2541
  int: xn,
2546
2542
  merge: On,
@@ -2549,13 +2545,13 @@ var $o = oe, No = vn, To = wn, Oo = An, Ko = jn, Mo = xt, Fo = zn.load, qo = zn.
2549
2545
  str: kn
2550
2546
  }, Ro = $t("safeLoad", "load"), Uo = $t("safeLoadAll", "loadAll"), Vo = $t("safeDump", "dump"), Do = {
2551
2547
  Type: $o,
2552
- Schema: No,
2553
- FAILSAFE_SCHEMA: To,
2548
+ Schema: To,
2549
+ FAILSAFE_SCHEMA: No,
2554
2550
  JSON_SCHEMA: Oo,
2555
2551
  CORE_SCHEMA: Ko,
2556
2552
  DEFAULT_SCHEMA: Mo,
2557
- load: Fo,
2558
- loadAll: qo,
2553
+ load: qo,
2554
+ loadAll: Fo,
2559
2555
  dump: Bo,
2560
2556
  YAMLException: Eo,
2561
2557
  types: Lo,
@@ -2648,7 +2644,7 @@ const Po = { class: "yaml-config" }, ii = /* @__PURE__ */ Q({
2648
2644
  class: $e(`config-card-details-${c}-props`),
2649
2645
  "data-testid": `config-card-details-${c}-props`
2650
2646
  }, [
2651
- c !== "basic" ? (f(), j("div", Ho, O(c === "advanced" ? m(i)("baseConfigCard.sections.advanced") : m(i)("baseConfigCard.sections.plugin")), 1)) : z("", !0),
2647
+ c !== "basic" ? (f(), j("div", Ho, O(c === "advanced" ? y(i)("baseConfigCard.sections.advanced") : y(i)("baseConfigCard.sections.plugin")), 1)) : z("", !0),
2652
2648
  (f(!0), j(me, null, fe(e.propertyCollections[c], (u) => (f(), V(tt, {
2653
2649
  key: u.key,
2654
2650
  item: u
@@ -3195,7 +3191,7 @@ const Po = { class: "yaml-config" }, ii = /* @__PURE__ */ Q({
3195
3191
  }), xl = /* @__PURE__ */ Ge(_l, [["__scopeId", "data-v-d9894a05"]]), Il = {
3196
3192
  class: "config-card-title",
3197
3193
  "data-testid": "config-card-title"
3198
- }, Al = { class: "config-card-actions" }, jl = ["href"], $l = { class: "config-card-details-section" }, Nl = /* @__PURE__ */ Q({
3194
+ }, Al = { class: "config-card-actions" }, jl = ["href"], $l = { class: "config-card-details-section" }, Tl = /* @__PURE__ */ Q({
3199
3195
  __name: "EntityBaseConfigCard",
3200
3196
  props: {
3201
3197
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -3288,9 +3284,9 @@ const Po = { class: "yaml-config" }, ii = /* @__PURE__ */ Q({
3288
3284
  label: "YAML",
3289
3285
  value: "yaml"
3290
3286
  }
3291
- ], s = T("structured"), d = (p) => {
3287
+ ], s = N("structured"), d = (p) => {
3292
3288
  s.value = p == null ? void 0 : p.value;
3293
- }, h = {
3289
+ }, v = {
3294
3290
  id: {
3295
3291
  type: Z.ID,
3296
3292
  label: r("baseConfigCard.commonFields.id_label"),
@@ -3324,21 +3320,21 @@ const Po = { class: "yaml-config" }, ii = /* @__PURE__ */ Q({
3324
3320
  // the last property displayed
3325
3321
  section: se.Basic
3326
3322
  }
3327
- }, y = T(!1), S = T(!1), M = T(""), x = T({}), q = _(() => {
3323
+ }, m = N(!1), S = N(!1), M = N(""), x = N({}), F = _(() => {
3328
3324
  var p, g, B;
3329
3325
  if (!x.value)
3330
3326
  return [];
3331
3327
  const K = [], L = Object.keys(x.value).length;
3332
3328
  for (const U in x.value) {
3333
- const F = (g = (p = a.configSchema) == null ? void 0 : p[U]) == null ? void 0 : g.order, J = (B = h[U]) == null ? void 0 : B.order;
3329
+ const q = (g = (p = a.configSchema) == null ? void 0 : p[U]) == null ? void 0 : g.order, J = (B = v[U]) == null ? void 0 : B.order;
3334
3330
  let W = L;
3335
- (J || J === 0) && (W = J === -1 ? L + 1 : J), F && (W = F === -1 ? L + 1 : F), K.push([U, W]);
3331
+ (J || J === 0) && (W = J === -1 ? L + 1 : J), q && (W = q === -1 ? L + 1 : q), K.push([U, W]);
3336
3332
  }
3337
- return K.sort(function(U, F) {
3338
- return U[1] - F[1];
3333
+ return K.sort(function(U, q) {
3334
+ return U[1] - q[1];
3339
3335
  }), K.map((U) => {
3340
- var F, J;
3341
- const W = U[0], ue = (F = x.value) == null ? void 0 : F[W], de = ((J = a.configSchema) == null ? void 0 : J[W]) || {}, ye = h[W];
3336
+ var q, J;
3337
+ const W = U[0], ue = (q = x.value) == null ? void 0 : q[W], de = ((J = a.configSchema) == null ? void 0 : J[W]) || {}, ye = v[W];
3342
3338
  return {
3343
3339
  key: W,
3344
3340
  value: ue,
@@ -3349,21 +3345,21 @@ const Po = { class: "yaml-config" }, ii = /* @__PURE__ */ Q({
3349
3345
  section: de.section ?? ((ye == null ? void 0 : ye.section) || se.Advanced)
3350
3346
  };
3351
3347
  }).filter((U) => !U.hidden && U.key !== a.pluginConfigKey);
3352
- }), v = _(() => {
3348
+ }), h = _(() => {
3353
3349
  var p, g;
3354
3350
  if (!x.value || !a.pluginConfigKey)
3355
3351
  return [];
3356
3352
  const B = x.value[a.pluginConfigKey] || {}, K = Object.keys(B).length, L = [];
3357
3353
  for (const U in B) {
3358
- const F = (g = (p = a.pluginConfigSchema) == null ? void 0 : p[U]) == null ? void 0 : g.order, J = B[U];
3354
+ const q = (g = (p = a.pluginConfigSchema) == null ? void 0 : p[U]) == null ? void 0 : g.order, J = B[U];
3359
3355
  let W = J != null && J !== "" ? K - 1 : K;
3360
- F && (W = F === -1 ? K + 1 : F), L.push([U, W]);
3356
+ q && (W = q === -1 ? K + 1 : q), L.push([U, W]);
3361
3357
  }
3362
- return L.sort(function(U, F) {
3363
- return U[1] - F[1];
3358
+ return L.sort(function(U, q) {
3359
+ return U[1] - q[1];
3364
3360
  }), L.map((U) => {
3365
- var F;
3366
- const J = U[0], W = B[J], ue = ((F = a.pluginConfigSchema) == null ? void 0 : F[J]) || {};
3361
+ var q;
3362
+ const J = U[0], W = B[J], ue = ((q = a.pluginConfigSchema) == null ? void 0 : q[J]) || {};
3367
3363
  return {
3368
3364
  key: J,
3369
3365
  value: W,
@@ -3377,9 +3373,9 @@ const Po = { class: "yaml-config" }, ii = /* @__PURE__ */ Q({
3377
3373
  }), I = _(() => {
3378
3374
  var p, g, B, K;
3379
3375
  return {
3380
- basic: (p = q.value) == null ? void 0 : p.filter((L) => L.section === se.Basic),
3381
- advanced: (g = q.value) == null ? void 0 : g.filter((L) => L.section === se.Advanced),
3382
- plugin: (K = v.value) == null ? void 0 : K.concat((B = q.value) == null ? void 0 : B.filter((L) => L.section === se.Plugin))
3376
+ basic: (p = F.value) == null ? void 0 : p.filter((L) => L.section === se.Basic),
3377
+ advanced: (g = F.value) == null ? void 0 : g.filter((L) => L.section === se.Advanced),
3378
+ plugin: (K = h.value) == null ? void 0 : K.concat((B = F.value) == null ? void 0 : B.filter((L) => L.section === se.Plugin))
3383
3379
  };
3384
3380
  }), C = _(() => {
3385
3381
  const p = [];
@@ -3389,10 +3385,10 @@ const Po = { class: "yaml-config" }, ii = /* @__PURE__ */ Q({
3389
3385
  let B = `${a.config.apiBaseUrl}${a.fetchUrl}`;
3390
3386
  return a.config.app === "konnect" ? B = B.replace(/{controlPlaneId}/gi, ((p = a.config) == null ? void 0 : p.controlPlaneId) || "") : a.config.app === "kongManager" && (B = B.replace(/\/{workspace}/gi, (g = a.config) != null && g.workspace ? `/${a.config.workspace}` : "")), B = B.replace(/{id}/gi, a.config.entityId), B;
3391
3387
  });
3392
- return he(y, (p) => {
3388
+ return he(m, (p) => {
3393
3389
  i("loading", p);
3394
3390
  }, { immediate: !0 }), lt(async () => {
3395
- S.value = !1, y.value = !0;
3391
+ S.value = !1, m.value = !0;
3396
3392
  try {
3397
3393
  const { data: p } = await c.get(w.value);
3398
3394
  if (a.dataKey)
@@ -3409,10 +3405,10 @@ const Po = { class: "yaml-config" }, ii = /* @__PURE__ */ Q({
3409
3405
  const g = o(p);
3410
3406
  M.value = g.startsWith("code") ? r("baseConfigCard.errors.load") : g, S.value = !0, i("fetch:error", p);
3411
3407
  } finally {
3412
- y.value = !1;
3408
+ m.value = !1;
3413
3409
  }
3414
3410
  }), (p, g) => {
3415
- const B = P("KLabel"), K = P("KSelect"), L = P("KButton"), U = P("KSkeleton"), F = P("KEmptyState"), J = P("KCard");
3411
+ const B = P("KLabel"), K = P("KSelect"), L = P("KButton"), U = P("KSkeleton"), q = P("KEmptyState"), J = P("KCard");
3416
3412
  return f(), V(J, {
3417
3413
  class: "kong-ui-entity-base-config-card",
3418
3414
  "title-tag": e.titleTag
@@ -3446,7 +3442,7 @@ const Po = { class: "yaml-config" }, ii = /* @__PURE__ */ Q({
3446
3442
  rel: "noopener",
3447
3443
  target: "_blank"
3448
3444
  }, [
3449
- A(m(ll), { size: m(sa) }, null, 8, ["size"])
3445
+ A(y(ll), { size: y(sa) }, null, 8, ["size"])
3450
3446
  ], 8, jl)
3451
3447
  ]),
3452
3448
  _: 1
@@ -3454,12 +3450,12 @@ const Po = { class: "yaml-config" }, ii = /* @__PURE__ */ Q({
3454
3450
  ])
3455
3451
  ]),
3456
3452
  default: k(() => [
3457
- y.value ? (f(), V(U, {
3453
+ m.value ? (f(), V(U, {
3458
3454
  key: 0,
3459
3455
  "data-testid": "config-card-loader",
3460
3456
  "table-columns": 2,
3461
3457
  type: "table"
3462
- })) : S.value ? (f(), V(F, {
3458
+ })) : S.value ? (f(), V(q, {
3463
3459
  key: 1,
3464
3460
  "data-testid": "config-card-fetch-error",
3465
3461
  "icon-variant": "error"
@@ -3497,7 +3493,7 @@ const Po = { class: "yaml-config" }, ii = /* @__PURE__ */ Q({
3497
3493
  fn: k(() => [
3498
3494
  R("span", Il, [
3499
3495
  ee(p.$slots, "title", {}, () => [
3500
- G(O(m(r)("baseConfigCard.title")), 1)
3496
+ G(O(y(r)("baseConfigCard.title")), 1)
3501
3497
  ], !0)
3502
3498
  ])
3503
3499
  ]),
@@ -3506,7 +3502,7 @@ const Po = { class: "yaml-config" }, ii = /* @__PURE__ */ Q({
3506
3502
  ]), 1032, ["title-tag"]);
3507
3503
  };
3508
3504
  }
3509
- }), Tl = /* @__PURE__ */ ve(Nl, [["__scopeId", "data-v-f40a683b"]]), Ol = ["novalidate"], Kl = {
3505
+ }), Nl = /* @__PURE__ */ ve(Tl, [["__scopeId", "data-v-f40a683b"]]), Ol = ["novalidate"], Kl = {
3510
3506
  class: "form-actions",
3511
3507
  "data-testid": "form-actions"
3512
3508
  }, Ml = /* @__PURE__ */ Q({
@@ -3578,19 +3574,19 @@ const Po = { class: "yaml-config" }, ii = /* @__PURE__ */ Q({
3578
3574
  emits: ["loading", "fetch:success", "fetch:error", "submit", "cancel"],
3579
3575
  setup(e, { emit: t }) {
3580
3576
  var n;
3581
- const i = t, a = e, r = Ct(), { i18n: { t: o } } = ae.useI18n(), { getMessageFromError: l } = ae.useErrors(), { axiosInstance: c } = ae.useAxios((n = a.config) == null ? void 0 : n.axiosRequestConfig), u = T(!1), s = T(!1), d = T(""), h = _(() => a.canSubmit === !1 || a.isReadonly), y = T(!1), S = _(() => {
3577
+ const i = t, a = e, r = Ct(), { i18n: { t: o } } = ae.useI18n(), { getMessageFromError: l } = ae.useErrors(), { axiosInstance: c } = ae.useAxios((n = a.config) == null ? void 0 : n.axiosRequestConfig), u = N(!1), s = N(!1), d = N(""), v = _(() => a.canSubmit === !1 || a.isReadonly), m = N(!1), S = _(() => {
3582
3578
  var C, w;
3583
3579
  let p = `${a.config.apiBaseUrl}${a.fetchUrl}`;
3584
3580
  return a.config.app === "konnect" ? p = p.replace(/{controlPlaneId}/gi, ((C = a.config) == null ? void 0 : C.controlPlaneId) || "") : a.config.app === "kongManager" && (p = p.replace(/\/{workspace}/gi, (w = a.config) != null && w.workspace ? `/${a.config.workspace}` : "")), a.editId ? (p = p.replace(/{id}/gi, a.editId), p) : (p = p.replace(/\/{id}/gi, ""), p);
3585
3581
  }), M = () => {
3586
- y.value = !y.value;
3582
+ m.value = !m.value;
3587
3583
  }, x = () => {
3588
- a.config.cancelRoute ? r.push(a.config.cancelRoute) : q();
3589
- }, q = () => {
3584
+ a.config.cancelRoute ? r.push(a.config.cancelRoute) : F();
3585
+ }, F = () => {
3590
3586
  i("cancel");
3591
- }, v = () => {
3592
- h.value || i("submit");
3593
- }, I = T([
3587
+ }, h = () => {
3588
+ v.value || i("submit");
3589
+ }, I = N([
3594
3590
  {
3595
3591
  title: o("baseForm.configuration.yaml"),
3596
3592
  hash: "#yaml"
@@ -3623,7 +3619,7 @@ const Po = { class: "yaml-config" }, ii = /* @__PURE__ */ Q({
3623
3619
  type: "form"
3624
3620
  })) : s.value ? (f(), V(g, {
3625
3621
  key: 1,
3626
- "action-button-text": m(o)("baseForm.actions.back"),
3622
+ "action-button-text": y(o)("baseForm.actions.back"),
3627
3623
  "data-testid": "form-fetch-error",
3628
3624
  "icon-variant": "error",
3629
3625
  onClickAction: x
@@ -3636,8 +3632,8 @@ const Po = { class: "yaml-config" }, ii = /* @__PURE__ */ Q({
3636
3632
  key: 2,
3637
3633
  "data-testid": "form-content",
3638
3634
  novalidate: a.noValidate,
3639
- onReset: yt(q, ["prevent"]),
3640
- onSubmit: yt(v, ["prevent"])
3635
+ onReset: yt(F, ["prevent"]),
3636
+ onSubmit: yt(h, ["prevent"])
3641
3637
  }, [
3642
3638
  ee(C.$slots, "default", {}, void 0, !0),
3643
3639
  e.errorMessage ? (f(), V(B, {
@@ -3651,10 +3647,10 @@ const Po = { class: "yaml-config" }, ii = /* @__PURE__ */ Q({
3651
3647
  A(K, {
3652
3648
  appearance: "tertiary",
3653
3649
  "data-testid": "form-view-configuration",
3654
- onClick: w[0] || (w[0] = (F) => M())
3650
+ onClick: w[0] || (w[0] = (q) => M())
3655
3651
  }, {
3656
3652
  default: k(() => [
3657
- G(O(m(o)("baseForm.actions.viewConfiguration")), 1)
3653
+ G(O(y(o)("baseForm.actions.viewConfiguration")), 1)
3658
3654
  ]),
3659
3655
  _: 1
3660
3656
  }),
@@ -3665,18 +3661,18 @@ const Po = { class: "yaml-config" }, ii = /* @__PURE__ */ Q({
3665
3661
  type: "reset"
3666
3662
  }, {
3667
3663
  default: k(() => [
3668
- G(O(m(o)("baseForm.actions.cancel")), 1)
3664
+ G(O(y(o)("baseForm.actions.cancel")), 1)
3669
3665
  ]),
3670
3666
  _: 1
3671
3667
  }, 8, ["disabled"]),
3672
3668
  A(K, {
3673
3669
  appearance: "primary",
3674
3670
  "data-testid": "form-submit",
3675
- disabled: h.value,
3671
+ disabled: v.value,
3676
3672
  type: "submit"
3677
3673
  }, {
3678
3674
  default: k(() => [
3679
- G(O(m(o)("baseForm.actions.save")), 1)
3675
+ G(O(y(o)("baseForm.actions.save")), 1)
3680
3676
  ]),
3681
3677
  _: 1
3682
3678
  }, 8, ["disabled"])
@@ -3688,12 +3684,12 @@ const Po = { class: "yaml-config" }, ii = /* @__PURE__ */ Q({
3688
3684
  "data-testid": "form-view-configuration-slideout",
3689
3685
  "has-overlay": !1,
3690
3686
  "offset-top": 60,
3691
- title: m(o)("baseForm.configuration.title"),
3692
- visible: y.value,
3693
- onClose: w[1] || (w[1] = (F) => M())
3687
+ title: y(o)("baseForm.configuration.title"),
3688
+ visible: m.value,
3689
+ onClose: w[1] || (w[1] = (q) => M())
3694
3690
  }, {
3695
3691
  default: k(() => [
3696
- R("div", null, O(m(o)("baseForm.configuration.message")), 1),
3692
+ R("div", null, O(y(o)("baseForm.configuration.message")), 1),
3697
3693
  A(L, {
3698
3694
  "data-testid": "form-view-configuration-slideout-tabs",
3699
3695
  tabs: I.value
@@ -3721,7 +3717,7 @@ const Po = { class: "yaml-config" }, ii = /* @__PURE__ */ Q({
3721
3717
  });
3722
3718
  };
3723
3719
  }
3724
- }), Fl = /* @__PURE__ */ ve(Ml, [["__scopeId", "data-v-fd05df8e"]]), ql = ["data-truncate"], Bl = /* @__PURE__ */ Q({
3720
+ }), ql = /* @__PURE__ */ ve(Ml, [["__scopeId", "data-v-fd05df8e"]]), Fl = ["data-truncate"], Bl = /* @__PURE__ */ Q({
3725
3721
  __name: "EntityBaseTableCell",
3726
3722
  props: {
3727
3723
  keyName: {
@@ -3745,32 +3741,32 @@ const Po = { class: "yaml-config" }, ii = /* @__PURE__ */ Q({
3745
3741
  var x;
3746
3742
  return ((x = n.value) == null ? void 0 : x.querySelector('[data-truncate="true"]')) || null;
3747
3743
  }), a = _(() => {
3748
- var x, q;
3749
- const v = (x = t.rowEl) == null ? void 0 : x.querySelectorAll("td");
3750
- return v ? ((q = v[0]) == null ? void 0 : q.getAttribute("data-testid")) === t.keyName : !0;
3744
+ var x, F;
3745
+ const h = (x = t.rowEl) == null ? void 0 : x.querySelectorAll("td");
3746
+ return h ? ((F = h[0]) == null ? void 0 : F.getAttribute("data-testid")) === t.keyName : !0;
3751
3747
  }), r = _(() => a.value || t.tooltip);
3752
3748
  let o;
3753
3749
  const l = () => {
3754
3750
  o && (o.disconnect(), o = void 0);
3755
3751
  }, c = () => {
3756
- var x, q, v;
3752
+ var x, F, h;
3757
3753
  let I = ((x = n.value) == null ? void 0 : x.clientWidth) || 0;
3758
3754
  if (n.value && "getComputedStyle" in window) {
3759
3755
  const C = window.getComputedStyle(n.value);
3760
3756
  I -= (parseFloat(C.paddingLeft) || 0) + (parseFloat(C.paddingRight) || 0);
3761
3757
  }
3762
- s.value = ((q = i.value) == null ? void 0 : q.getBoundingClientRect().width) || 0, d.value = I, h.value = ((v = u.value) == null ? void 0 : v.innerText) || "";
3763
- }, u = T({}), s = T(0), d = T(0), h = T(""), y = _(() => [i.value, n.value]), S = he(
3764
- y,
3758
+ s.value = ((F = i.value) == null ? void 0 : F.getBoundingClientRect().width) || 0, d.value = I, v.value = ((h = u.value) == null ? void 0 : h.innerText) || "";
3759
+ }, u = N({}), s = N(0), d = N(0), v = N(""), m = _(() => [i.value, n.value]), S = he(
3760
+ m,
3765
3761
  (x) => {
3766
3762
  if (r.value && (l(), "ResizeObserver" in window && window)) {
3767
- o = new ResizeObserver((q) => {
3763
+ o = new ResizeObserver((F) => {
3768
3764
  window.requestAnimationFrame(() => {
3769
- !Array.isArray(q) || !q.length || c();
3765
+ !Array.isArray(F) || !F.length || c();
3770
3766
  });
3771
3767
  });
3772
- for (const q of x)
3773
- q && o.observe(q);
3768
+ for (const F of x)
3769
+ F && o.observe(F);
3774
3770
  }
3775
3771
  },
3776
3772
  { immediate: !0, flush: "post", deep: !0 }
@@ -3779,8 +3775,8 @@ const Po = { class: "yaml-config" }, ii = /* @__PURE__ */ Q({
3779
3775
  c();
3780
3776
  }), pi(() => {
3781
3777
  S();
3782
- }), (x, q) => {
3783
- const v = P("KTooltip");
3778
+ }), (x, F) => {
3779
+ const h = P("KTooltip");
3784
3780
  return f(), j("span", {
3785
3781
  ref_key: "contentRef",
3786
3782
  ref: u,
@@ -3790,17 +3786,17 @@ const Po = { class: "yaml-config" }, ii = /* @__PURE__ */ Q({
3790
3786
  key: 0,
3791
3787
  "data-truncate": r.value || void 0
3792
3788
  }, [
3793
- A(v, {
3789
+ A(h, {
3794
3790
  "max-width": "300",
3795
3791
  placement: "bottom-start",
3796
- text: M.value ? h.value : ""
3792
+ text: M.value ? v.value : ""
3797
3793
  }, {
3798
3794
  default: k(() => [
3799
3795
  ee(x.$slots, "default", {}, void 0, !0)
3800
3796
  ]),
3801
3797
  _: 3
3802
3798
  }, 8, ["text"])
3803
- ], 8, ql)) : ee(x.$slots, "default", { key: 1 }, void 0, !0)
3799
+ ], 8, Fl)) : ee(x.$slots, "default", { key: 1 }, void 0, !0)
3804
3800
  ], 512);
3805
3801
  };
3806
3802
  }
@@ -3954,10 +3950,10 @@ const Po = { class: "yaml-config" }, ii = /* @__PURE__ */ Q({
3954
3950
  "data-rowid": p.id,
3955
3951
  "data-testid": p.name,
3956
3952
  ...n.rowAttributes(p)
3957
- }), s = T({}), d = (p) => {
3953
+ }), s = N({}), d = (p) => {
3958
3954
  var g;
3959
3955
  return (g = s.value) == null ? void 0 : g.$el.querySelector(`[data-rowid="${p.id}"]`);
3960
- }, h = (p) => {
3956
+ }, v = (p) => {
3961
3957
  const g = {
3962
3958
  "data-testid": p.headerKey,
3963
3959
  ...n.cellAttributes(p)
@@ -3967,7 +3963,7 @@ const Po = { class: "yaml-config" }, ii = /* @__PURE__ */ Q({
3967
3963
  overflowX: "hidden",
3968
3964
  textOverflow: "ellipsis"
3969
3965
  }), g;
3970
- }, y = () => {
3966
+ }, m = () => {
3971
3967
  i("empty-state-cta-clicked"), S();
3972
3968
  }, S = () => {
3973
3969
  i("clear-search-input");
@@ -3975,8 +3971,8 @@ const Po = { class: "yaml-config" }, ii = /* @__PURE__ */ Q({
3975
3971
  i("click:row", g);
3976
3972
  }), x = (p) => {
3977
3973
  i("sort", p);
3978
- }, { setTablePreferences: q, getTablePreferences: v } = ji(), I = T(v(o.value)), C = _(() => {
3979
- const p = v(o.value);
3974
+ }, { setTablePreferences: F, getTablePreferences: h } = ji(), I = N(h(o.value)), C = _(() => {
3975
+ const p = h(o.value);
3980
3976
  return {
3981
3977
  ...n.initialFetcherParams,
3982
3978
  ...p
@@ -3984,7 +3980,7 @@ const Po = { class: "yaml-config" }, ii = /* @__PURE__ */ Q({
3984
3980
  }), w = (p) => {
3985
3981
  I.value = p, c.value.forEach((g) => {
3986
3982
  !("hidable" in g) || !I.value.columnVisibility || g.hidable === !1 && (I.value.columnVisibility[g.key] = !0);
3987
- }), o.value && q(o.value, p);
3983
+ }), o.value && F(o.value, p);
3988
3984
  };
3989
3985
  return (p, g) => {
3990
3986
  const B = P("KButton"), K = P("KDropdown"), L = P("KTable"), U = P("KCard");
@@ -3998,14 +3994,14 @@ const Po = { class: "yaml-config" }, ii = /* @__PURE__ */ Q({
3998
3994
  ref_key: "tableRefs",
3999
3995
  ref: s,
4000
3996
  "cache-identifier": o.value,
4001
- "cell-attrs": h,
3997
+ "cell-attrs": v,
4002
3998
  "client-sort": e.enableClientSort,
4003
3999
  "disable-pagination-page-jump": e.disablePaginationPageJump,
4004
- "empty-state-action-message": e.query ? m(a)("baseTable.emptyState.noSearchResultsCtaText") : e.emptyStateOptions.ctaText,
4000
+ "empty-state-action-message": e.query ? y(a)("baseTable.emptyState.noSearchResultsCtaText") : e.emptyStateOptions.ctaText,
4005
4001
  "empty-state-action-route": e.query ? void 0 : e.emptyStateOptions.ctaPath,
4006
4002
  "empty-state-icon-variant": e.query ? "search" : "kong",
4007
- "empty-state-message": e.query ? m(a)("baseTable.emptyState.noSearchResultsMessage") : e.emptyStateOptions.message,
4008
- "empty-state-title": e.query ? m(a)("baseTable.emptyState.noSearchResultsTitle") : e.emptyStateOptions.title,
4003
+ "empty-state-message": e.query ? y(a)("baseTable.emptyState.noSearchResultsMessage") : e.emptyStateOptions.message,
4004
+ "empty-state-title": e.query ? y(a)("baseTable.emptyState.noSearchResultsTitle") : e.emptyStateOptions.title,
4009
4005
  error: r.value.hasError,
4010
4006
  "error-state-message": r.value.message,
4011
4007
  "error-state-title": r.value.title,
@@ -4022,25 +4018,25 @@ const Po = { class: "yaml-config" }, ii = /* @__PURE__ */ Q({
4022
4018
  "sort-handler-function": e.enableClientSort ? e.sortHandlerFunction : void 0,
4023
4019
  sortable: !e.disableSorting,
4024
4020
  "table-preferences": I.value,
4025
- onEmptyStateActionClick: y,
4021
+ onEmptyStateActionClick: m,
4026
4022
  "onRow:click": M.value,
4027
- onSort: g[0] || (g[0] = (F) => x(F)),
4023
+ onSort: g[0] || (g[0] = (q) => x(q)),
4028
4024
  "onUpdate:tablePreferences": w
4029
4025
  }, Me({
4030
- toolbar: k(({ state: F }) => [
4026
+ toolbar: k(({ state: q }) => [
4031
4027
  xe(R("div", Ll, [
4032
4028
  ee(p.$slots, "toolbar-filter", {}, void 0, !0),
4033
4029
  p.$slots["toolbar-button"] ? (f(), j("div", Rl, [
4034
4030
  ee(p.$slots, "toolbar-button", {}, void 0, !0)
4035
4031
  ])) : z("", !0)
4036
4032
  ], 512), [
4037
- [Ie, l(F)]
4033
+ [Ie, l(q)]
4038
4034
  ])
4039
4035
  ]),
4040
- actions: k(({ row: F, rowKey: J, rowValue: W }) => [
4036
+ actions: k(({ row: q, rowKey: J, rowValue: W }) => [
4041
4037
  R("div", {
4042
4038
  class: "actions-container",
4043
- "data-testid": F.name
4039
+ "data-testid": q.name
4044
4040
  }, [
4045
4041
  A(K, {
4046
4042
  "kpop-attributes": { placement: "bottom-end" },
@@ -4048,7 +4044,7 @@ const Po = { class: "yaml-config" }, ii = /* @__PURE__ */ Q({
4048
4044
  }, {
4049
4045
  items: k(() => [
4050
4046
  ee(p.$slots, "actions", {
4051
- row: F,
4047
+ row: q,
4052
4048
  rowKey: J,
4053
4049
  rowValue: W
4054
4050
  }, void 0, !0)
@@ -4062,7 +4058,7 @@ const Po = { class: "yaml-config" }, ii = /* @__PURE__ */ Q({
4062
4058
  size: "small"
4063
4059
  }, {
4064
4060
  default: k(() => [
4065
- A(m(xl))
4061
+ A(y(xl))
4066
4062
  ]),
4067
4063
  _: 1
4068
4064
  })
@@ -4073,13 +4069,13 @@ const Po = { class: "yaml-config" }, ii = /* @__PURE__ */ Q({
4073
4069
  ]),
4074
4070
  _: 2
4075
4071
  }, [
4076
- fe(e.tableHeaders, (F, J) => ({
4072
+ fe(e.tableHeaders, (q, J) => ({
4077
4073
  name: J,
4078
4074
  fn: k(({ row: W, rowKey: ue, rowValue: de }) => [
4079
4075
  A(El, {
4080
4076
  "key-name": String(J),
4081
4077
  "row-el": d(W),
4082
- tooltip: F.tooltip
4078
+ tooltip: q.tooltip
4083
4079
  }, {
4084
4080
  default: k(() => [
4085
4081
  ee(p.$slots, J, {
@@ -4097,7 +4093,7 @@ const Po = { class: "yaml-config" }, ii = /* @__PURE__ */ Q({
4097
4093
  e.query ? void 0 : {
4098
4094
  name: "empty-state-action-icon",
4099
4095
  fn: k(() => [
4100
- A(m(tl))
4096
+ A(y(tl))
4101
4097
  ]),
4102
4098
  key: "0"
4103
4099
  }
@@ -4179,7 +4175,7 @@ const Po = { class: "yaml-config" }, ii = /* @__PURE__ */ Q({
4179
4175
  _: 1
4180
4176
  })
4181
4177
  ])) : z("", !0),
4182
- A(m(n), {
4178
+ A(y(n), {
4183
4179
  class: "message",
4184
4180
  keypath: i.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
4185
4181
  tag: "p"
@@ -4269,7 +4265,7 @@ const Po = { class: "yaml-config" }, ii = /* @__PURE__ */ Q({
4269
4265
  },
4270
4266
  emits: ["update:modelValue"],
4271
4267
  setup(e, { emit: t }) {
4272
- const { i18n: { t: n } } = ae.useI18n(), i = e, a = t, r = T(!1), o = T({}), l = T(/* @__PURE__ */ new Set()), c = _(() => {
4268
+ const { i18n: { t: n } } = ae.useI18n(), i = e, a = t, r = N(!1), o = N({}), l = N(/* @__PURE__ */ new Set()), c = _(() => {
4273
4269
  const C = [];
4274
4270
  return new URLSearchParams(i.modelValue).forEach((w, p) => {
4275
4271
  w !== "" && C.push(p);
@@ -4294,10 +4290,10 @@ const Po = { class: "yaml-config" }, ii = /* @__PURE__ */ Q({
4294
4290
  r.value = !r.value;
4295
4291
  }, d = (C) => {
4296
4292
  l.value.has(C) ? l.value.delete(C) : l.value.add(C);
4297
- }, h = (C) => {
4293
+ }, v = (C) => {
4298
4294
  a("update:modelValue", C);
4299
- }, y = () => {
4300
- h("");
4295
+ }, m = () => {
4296
+ v("");
4301
4297
  }, S = (C) => `filter-${C}`, M = (C) => {
4302
4298
  var w, p;
4303
4299
  return (((p = (w = i.config.schema) == null ? void 0 : w[C]) == null ? void 0 : p.values) ?? []).map((g) => ({
@@ -4307,12 +4303,12 @@ const Po = { class: "yaml-config" }, ii = /* @__PURE__ */ Q({
4307
4303
  }, x = (C) => {
4308
4304
  var w, p;
4309
4305
  return ((p = (w = i.config.schema) == null ? void 0 : w[C]) == null ? void 0 : p.type) ?? "text";
4310
- }, q = (C) => {
4306
+ }, F = (C) => {
4311
4307
  o.value = {
4312
4308
  ...o.value,
4313
4309
  [C]: ""
4314
4310
  }, I();
4315
- }, v = () => {
4311
+ }, h = () => {
4316
4312
  o.value = {}, I(!0);
4317
4313
  }, I = (C = !1) => {
4318
4314
  const w = Object.keys(o.value).reduce((p, g) => (o.value[g] && (p[g] = `${o.value[g]}`), p), {});
@@ -4327,15 +4323,15 @@ const Po = { class: "yaml-config" }, ii = /* @__PURE__ */ Q({
4327
4323
  "data-testid": "search-input",
4328
4324
  "model-value": e.modelValue,
4329
4325
  placeholder: e.config.placeholder,
4330
- "onUpdate:modelValue": h
4326
+ "onUpdate:modelValue": v
4331
4327
  }, {
4332
4328
  before: k(() => [
4333
4329
  A(tn)
4334
4330
  ]),
4335
4331
  after: k(() => [
4336
- xe(A(m(kl), {
4332
+ xe(A(y(kl), {
4337
4333
  class: "kong-ui-entity-filter-clear",
4338
- onClick: y
4334
+ onClick: m
4339
4335
  }, null, 512), [
4340
4336
  [Ie, e.modelValue !== ""]
4341
4337
  ])
@@ -4349,7 +4345,7 @@ const Po = { class: "yaml-config" }, ii = /* @__PURE__ */ Q({
4349
4345
  }, {
4350
4346
  default: k(() => [
4351
4347
  A(tn),
4352
- G(" " + O(m(n)("filter.filterButtonText")) + " " + O(c.value.length > 0 ? `(${c.value.length})` : ""), 1)
4348
+ G(" " + O(y(n)("filter.filterButtonText")) + " " + O(c.value.length > 0 ? `(${c.value.length})` : ""), 1)
4353
4349
  ]),
4354
4350
  _: 1
4355
4351
  }),
@@ -4371,37 +4367,37 @@ const Po = { class: "yaml-config" }, ii = /* @__PURE__ */ Q({
4371
4367
  class: $e(["menu-item-title", { expanded: l.value.has(K.value) }]),
4372
4368
  role: "button",
4373
4369
  tabindex: "0",
4374
- onClick: (F) => d(K.value),
4375
- onKeydown: ci((F) => d(K.value), ["enter"])
4370
+ onClick: (q) => d(K.value),
4371
+ onKeydown: ci((q) => d(K.value), ["enter"])
4376
4372
  }, [
4377
4373
  G(O(K.label) + " ", 1),
4378
4374
  xe(R("span", is, null, 512), [
4379
4375
  [Ie, c.value.includes(K.value)]
4380
4376
  ]),
4381
- A(m(fl), {
4377
+ A(y(fl), {
4382
4378
  class: $e(["menu-item-expand-icon", { expanded: l.value.has(K.value) }]),
4383
- color: m(oa)
4379
+ color: y(oa)
4384
4380
  }, null, 8, ["class", "color"])
4385
4381
  ], 42, ns),
4386
4382
  xe(R("div", as, [
4387
4383
  R("label", {
4388
4384
  class: "menu-item-label",
4389
4385
  for: S(K.value)
4390
- }, O(m(n)("filter.fieldLabel")), 9, rs),
4386
+ }, O(y(n)("filter.fieldLabel")), 9, rs),
4391
4387
  ((U = (L = e.config.schema) == null ? void 0 : L[K.value]) == null ? void 0 : U.type) === "select" ? (f(), V(B, {
4392
4388
  key: 0,
4393
4389
  id: S(K.value),
4394
4390
  modelValue: o.value[K.value],
4395
- "onUpdate:modelValue": (F) => o.value[K.value] = F,
4391
+ "onUpdate:modelValue": (q) => o.value[K.value] = q,
4396
4392
  items: M(K.value),
4397
- placeholder: m(n)("filter.selectPlaceholder")
4393
+ placeholder: y(n)("filter.selectPlaceholder")
4398
4394
  }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (f(), V(p, {
4399
4395
  key: 1,
4400
4396
  id: S(K.value),
4401
4397
  modelValue: o.value[K.value],
4402
- "onUpdate:modelValue": (F) => o.value[K.value] = F,
4398
+ "onUpdate:modelValue": (q) => o.value[K.value] = q,
4403
4399
  autocomplete: "off",
4404
- placeholder: m(n)("filter.inputPlaceholder"),
4400
+ placeholder: y(n)("filter.inputPlaceholder"),
4405
4401
  type: x(K.value)
4406
4402
  }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
4407
4403
  ], 512), [
@@ -4412,10 +4408,10 @@ const Po = { class: "yaml-config" }, ii = /* @__PURE__ */ Q({
4412
4408
  appearance: "tertiary",
4413
4409
  "data-testid": "apply-filter",
4414
4410
  size: "small",
4415
- onClick: w[0] || (w[0] = (F) => I(!0))
4411
+ onClick: w[0] || (w[0] = (q) => I(!0))
4416
4412
  }, {
4417
4413
  default: k(() => [
4418
- G(O(m(n)("filter.applyButtonText")), 1)
4414
+ G(O(y(n)("filter.applyButtonText")), 1)
4419
4415
  ]),
4420
4416
  _: 1
4421
4417
  }),
@@ -4423,10 +4419,10 @@ const Po = { class: "yaml-config" }, ii = /* @__PURE__ */ Q({
4423
4419
  appearance: "tertiary",
4424
4420
  "data-testid": "clear-filter",
4425
4421
  size: "small",
4426
- onClick: (F) => q(K.value)
4422
+ onClick: (q) => F(K.value)
4427
4423
  }, {
4428
4424
  default: k(() => [
4429
- G(O(m(n)("filter.clearButtonText")), 1)
4425
+ G(O(y(n)("filter.clearButtonText")), 1)
4430
4426
  ]),
4431
4427
  _: 2
4432
4428
  }, 1032, ["onClick"])
@@ -4439,10 +4435,10 @@ const Po = { class: "yaml-config" }, ii = /* @__PURE__ */ Q({
4439
4435
  A(g, {
4440
4436
  appearance: "tertiary",
4441
4437
  size: "small",
4442
- onClick: v
4438
+ onClick: h
4443
4439
  }, {
4444
4440
  default: k(() => [
4445
- G(O(m(n)("filter.clearAllButtonText")), 1)
4441
+ G(O(y(n)("filter.clearAllButtonText")), 1)
4446
4442
  ]),
4447
4443
  _: 1
4448
4444
  })
@@ -4475,7 +4471,7 @@ const Po = { class: "yaml-config" }, ii = /* @__PURE__ */ Q({
4475
4471
  }
4476
4472
  },
4477
4473
  setup(e) {
4478
- const t = e, n = T(void 0), i = _(() => n.value === !0 || n.value !== void 0 && t.forceShow === !0);
4474
+ const t = e, n = N(void 0), i = _(() => n.value === !0 || n.value !== void 0 && t.forceShow === !0);
4479
4475
  return he(() => t.authFunction, async () => {
4480
4476
  n.value = await t.authFunction();
4481
4477
  }, { immediate: !0 }), (a, r) => i.value ? ee(a.$slots, "default", {
@@ -4550,7 +4546,7 @@ const ms = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, hs = {
4550
4546
  setup(e) {
4551
4547
  const t = bt(), n = ys();
4552
4548
  return (i, a) => (f(), j("div", {
4553
- "aria-labelledby": e.title ? m(n) : void 0,
4549
+ "aria-labelledby": e.title ? y(n) : void 0,
4554
4550
  class: $e(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }]),
4555
4551
  role: "group"
4556
4552
  }, [
@@ -4561,7 +4557,7 @@ const ms = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, hs = {
4561
4557
  }, [
4562
4558
  e.title ? (f(), V(Ce(e.titleTag), {
4563
4559
  key: 0,
4564
- id: m(n),
4560
+ id: y(n),
4565
4561
  class: "form-section-title"
4566
4562
  }, {
4567
4563
  default: k(() => [
@@ -4569,12 +4565,12 @@ const ms = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, hs = {
4569
4565
  ]),
4570
4566
  _: 1
4571
4567
  }, 8, ["id"])) : z("", !0),
4572
- e.description || m(t).description ? (f(), j("div", hs, [
4568
+ e.description || y(t).description ? (f(), j("div", hs, [
4573
4569
  ee(i.$slots, "description", {}, () => [
4574
4570
  R("p", null, O(e.description), 1)
4575
4571
  ], !0)
4576
4572
  ])) : z("", !0),
4577
- m(t).footer ? (f(), j("div", vs, [
4573
+ y(t).footer ? (f(), j("div", vs, [
4578
4574
  ee(i.$slots, "footer", {}, void 0, !0)
4579
4575
  ])) : z("", !0)
4580
4576
  ], 2)),
@@ -4584,7 +4580,7 @@ const ms = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, hs = {
4584
4580
  ])
4585
4581
  ], 10, ms));
4586
4582
  }
4587
- }), an = /* @__PURE__ */ ve(bs, [["__scopeId", "data-v-b1f74200"]]), { useAxios: Nt, useDeleteUrlBuilder: Cs, useErrors: ws, useExternalLinkCreator: Ps, useFetchUrlBuilder: zs, useFetcher: Ss, useDebouncedFilter: _s, useStringHelpers: xs, useHelpers: Js, useGatewayFeatureSupported: Hs, useTruncationDetector: Ws, useValidators: Ys } = ae, Is = { class: "kong-ui-entities-keys-list" }, As = { key: 1 }, js = /* @__PURE__ */ Q({
4583
+ }), an = /* @__PURE__ */ ve(bs, [["__scopeId", "data-v-b1f74200"]]), { useAxios: Tt, useDeleteUrlBuilder: Cs, useErrors: ws, useExternalLinkCreator: Ps, useFetchUrlBuilder: zs, useFetcher: Ss, useDebouncedFilter: _s, useStringHelpers: xs, useHelpers: Js, useGatewayFeatureSupported: Hs, useTruncationDetector: Ws, useValidators: Ys } = ae, Is = { class: "kong-ui-entities-keys-list" }, As = { key: 1 }, js = /* @__PURE__ */ Q({
4588
4584
  __name: "KeyList",
4589
4585
  props: {
4590
4586
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -4631,7 +4627,7 @@ const ms = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, hs = {
4631
4627
  emits: ["error", "copy:success", "copy:error", "delete:success"],
4632
4628
  setup(e, { emit: t }) {
4633
4629
  var Qe;
4634
- const n = t, i = e, { i18n: { t: a } } = wt.useI18n(), r = Ct(), { axiosInstance: o } = Nt((Qe = i.config) == null ? void 0 : Qe.axiosRequestConfig), l = T(1), c = _(() => i.config.app !== "kongManager" || !!i.config.disableSorting), u = {
4630
+ const n = t, i = e, { i18n: { t: a } } = wt.useI18n(), r = Ct(), { axiosInstance: o } = Tt((Qe = i.config) == null ? void 0 : Qe.axiosRequestConfig), l = N(1), c = _(() => i.config.app !== "kongManager" || !!i.config.disableSorting), u = {
4635
4631
  // the Name column is non-hidable
4636
4632
  name: { label: a("keys.list.table_headers.name"), searchable: !0, sortable: !0, hidable: !1 },
4637
4633
  kid: { label: a("keys.list.table_headers.key_id"), sortable: !0 },
@@ -4641,7 +4637,7 @@ const ms = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, hs = {
4641
4637
  var b, $, H, te;
4642
4638
  let E = `${i.config.apiBaseUrl}${Ae.list[i.config.app][i.config.keySetId ? "forKeySet" : "all"]}`;
4643
4639
  return i.config.app === "konnect" ? E = E.replace(/{controlPlaneId}/gi, ((b = i.config) == null ? void 0 : b.controlPlaneId) || "").replace(/{keySetId}/gi, (($ = i.config) == null ? void 0 : $.keySetId) || "") : i.config.app === "kongManager" && (E = E.replace(/\/{workspace}/gi, (H = i.config) != null && H.workspace ? `/${i.config.workspace}` : "").replace(/{keySetId}/gi, ((te = i.config) == null ? void 0 : te.keySetId) || "")), E;
4644
- }), h = T(""), y = _(() => {
4640
+ }), v = N(""), m = _(() => {
4645
4641
  const E = i.config.app === "konnect" || i.config.isExactMatch;
4646
4642
  if (E)
4647
4643
  return {
@@ -4655,10 +4651,10 @@ const ms = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, hs = {
4655
4651
  schema: i.config.filterSchema
4656
4652
  };
4657
4653
  }), { fetcher: S, fetcherState: M } = Ss(i.config, d.value), x = () => {
4658
- h.value = "";
4659
- }, q = () => {
4654
+ v.value = "";
4655
+ }, F = () => {
4660
4656
  l.value++;
4661
- }, v = T(null), I = (E, b) => {
4657
+ }, h = N(null), I = (E, b) => {
4662
4658
  const $ = E.id;
4663
4659
  if (!b($)) {
4664
4660
  p(E, "id");
@@ -4699,67 +4695,67 @@ const ms = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, hs = {
4699
4695
  }), K = (E) => ({
4700
4696
  label: a("keys.actions.edit"),
4701
4697
  to: i.config.getEditRoute(E)
4702
- }), L = T(void 0), U = T(!1), F = T(!1), J = T(""), W = Cs(i.config, d.value), ue = (E) => {
4698
+ }), L = N(void 0), U = N(!1), q = N(!1), J = N(""), W = Cs(i.config, d.value), ue = (E) => {
4703
4699
  L.value = E, U.value = !0;
4704
4700
  }, de = () => {
4705
4701
  U.value = !1;
4706
4702
  }, ye = async () => {
4707
4703
  var E, b, $;
4708
4704
  if ((E = L.value) != null && E.id) {
4709
- F.value = !0;
4705
+ q.value = !0;
4710
4706
  try {
4711
- await o.delete(W(L.value.id)), F.value = !1, U.value = !1, l.value++, n("delete:success", L.value);
4707
+ await o.delete(W(L.value.id)), q.value = !1, U.value = !1, l.value++, n("delete:success", L.value);
4712
4708
  } catch (H) {
4713
4709
  J.value = (($ = (b = H.response) == null ? void 0 : b.data) == null ? void 0 : $.message) || H.message || a("keys.errors.delete"), n("error", H);
4714
4710
  } finally {
4715
- F.value = !1;
4711
+ q.value = !1;
4716
4712
  }
4717
4713
  }
4718
- }, Fe = T(!1);
4714
+ }, qe = N(!1);
4719
4715
  he(M, (E) => {
4720
4716
  var b, $, H, te;
4721
- if (Array.isArray((b = E == null ? void 0 : E.response) == null ? void 0 : b.data) && (Fe.value = E.response.data.length > 0), E.status === Oe.Error) {
4722
- v.value = {
4717
+ if (Array.isArray((b = E == null ? void 0 : E.response) == null ? void 0 : b.data) && (qe.value = E.response.data.length > 0), E.status === Oe.Error) {
4718
+ h.value = {
4723
4719
  title: a("keys.errors.general")
4724
- }, (te = (H = ($ = E.error) == null ? void 0 : $.response) == null ? void 0 : H.data) != null && te.message && (v.value.message = E.error.response.data.message), n("error", E.error);
4720
+ }, (te = (H = ($ = E.error) == null ? void 0 : $.response) == null ? void 0 : H.data) != null && te.message && (h.value.message = E.error.response.data.message), n("error", E.error);
4725
4721
  return;
4726
4722
  }
4727
- v.value = null;
4723
+ h.value = null;
4728
4724
  });
4729
- const qe = T({
4725
+ const Fe = N({
4730
4726
  ctaPath: i.config.createRoute,
4731
4727
  ctaText: void 0,
4732
4728
  message: `${a("keys.list.empty_state.description")}${i.config.additionMessageForEmptyState ? ` ${i.config.additionMessageForEmptyState}` : ""}`,
4733
4729
  title: a("keys.title")
4734
4730
  });
4735
4731
  return lt(async () => {
4736
- await i.canCreate() && (qe.value.title = a("keys.list.empty_state.title"), qe.value.ctaText = a("keys.actions.create"));
4732
+ await i.canCreate() && (Fe.value.title = a("keys.list.empty_state.title"), Fe.value.ctaText = a("keys.actions.create"));
4737
4733
  }), (E, b) => {
4738
4734
  const $ = P("KButton"), H = P("KCopy"), te = P("KBadge"), ge = P("KTruncate"), D = P("KDropdownItem"), Y = P("KClipboardProvider");
4739
4735
  return f(), j("div", Is, [
4740
- A(m(Dl), {
4736
+ A(y(Dl), {
4741
4737
  "cache-identifier": e.cacheIdentifier,
4742
4738
  "disable-pagination-page-jump": "",
4743
4739
  "disable-sorting": c.value,
4744
- "empty-state-options": qe.value,
4740
+ "empty-state-options": Fe.value,
4745
4741
  "enable-entity-actions": "",
4746
- "error-message": v.value,
4747
- fetcher: m(S),
4742
+ "error-message": h.value,
4743
+ fetcher: y(S),
4748
4744
  "fetcher-cache-key": l.value,
4749
4745
  "pagination-type": "offset",
4750
4746
  "preferences-storage-key": "kong-ui-entities-keys-list",
4751
- query: h.value,
4752
- "table-headers": m(s),
4747
+ query: v.value,
4748
+ "table-headers": y(s),
4753
4749
  "use-action-outside": e.useActionOutside,
4754
4750
  onClearSearchInput: x,
4755
4751
  "onClick:row": b[2] || (b[2] = (X) => g(X)),
4756
- onSort: q
4752
+ onSort: F
4757
4753
  }, {
4758
4754
  "toolbar-filter": k(() => [
4759
- A(m(cs), {
4760
- modelValue: h.value,
4761
- "onUpdate:modelValue": b[0] || (b[0] = (X) => h.value = X),
4762
- config: y.value
4755
+ A(y(cs), {
4756
+ modelValue: v.value,
4757
+ "onUpdate:modelValue": b[0] || (b[0] = (X) => v.value = X),
4758
+ config: m.value
4763
4759
  }, null, 8, ["modelValue", "config"])
4764
4760
  ]),
4765
4761
  "toolbar-button": k(() => [
@@ -4767,7 +4763,7 @@ const ms = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, hs = {
4767
4763
  disabled: !e.useActionOutside,
4768
4764
  to: "#kong-ui-app-page-header-action-button"
4769
4765
  }, [
4770
- A(m(Xe), {
4766
+ A(y(Xe), {
4771
4767
  "auth-function": () => e.canCreate()
4772
4768
  }, {
4773
4769
  default: k(() => [
@@ -4778,12 +4774,12 @@ const ms = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, hs = {
4778
4774
  to: e.config.createRoute
4779
4775
  }, {
4780
4776
  default: k(() => [
4781
- A(m(Ci)),
4782
- G(" " + O(m(a)("keys.list.toolbar_actions.new_key")), 1)
4777
+ A(y(Ci)),
4778
+ G(" " + O(y(a)("keys.list.toolbar_actions.new_key")), 1)
4783
4779
  ]),
4784
4780
  _: 1
4785
4781
  }, 8, ["to"]), [
4786
- [Ie, Fe.value]
4782
+ [Ie, qe.value]
4787
4783
  ])
4788
4784
  ]),
4789
4785
  _: 1
@@ -4799,13 +4795,13 @@ const ms = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, hs = {
4799
4795
  tags: k(({ rowValue: X }) => [
4800
4796
  (X == null ? void 0 : X.length) > 0 ? (f(), V(ge, { key: 0 }, {
4801
4797
  default: k(() => [
4802
- (f(!0), j(me, null, fe(X, (Te) => (f(), V(te, {
4803
- key: Te,
4798
+ (f(!0), j(me, null, fe(X, (Ne) => (f(), V(te, {
4799
+ key: Ne,
4804
4800
  onClick: b[1] || (b[1] = yt(() => {
4805
4801
  }, ["stop"]))
4806
4802
  }, {
4807
4803
  default: k(() => [
4808
- G(O(Te), 1)
4804
+ G(O(Ne), 1)
4809
4805
  ]),
4810
4806
  _: 2
4811
4807
  }, 1024))), 128))
@@ -4821,13 +4817,13 @@ const ms = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, hs = {
4821
4817
  ]),
4822
4818
  actions: k(({ row: X }) => [
4823
4819
  A(Y, null, {
4824
- default: k(({ copyToClipboard: Te }) => [
4820
+ default: k(({ copyToClipboard: Ne }) => [
4825
4821
  A(D, {
4826
4822
  "data-testid": "action-entity-copy-id",
4827
- onClick: (ri) => I(X, Te)
4823
+ onClick: (ri) => I(X, Ne)
4828
4824
  }, {
4829
4825
  default: k(() => [
4830
- G(O(m(a)("keys.actions.copy_id")), 1)
4826
+ G(O(y(a)("keys.actions.copy_id")), 1)
4831
4827
  ]),
4832
4828
  _: 2
4833
4829
  }, 1032, ["onClick"])
@@ -4835,20 +4831,20 @@ const ms = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, hs = {
4835
4831
  _: 2
4836
4832
  }, 1024),
4837
4833
  A(Y, null, {
4838
- default: k(({ copyToClipboard: Te }) => [
4834
+ default: k(({ copyToClipboard: Ne }) => [
4839
4835
  A(D, {
4840
4836
  "data-testid": "action-entity-copy-json",
4841
- onClick: (ri) => C(X, Te)
4837
+ onClick: (ri) => C(X, Ne)
4842
4838
  }, {
4843
4839
  default: k(() => [
4844
- G(O(m(a)("keys.actions.copy_json")), 1)
4840
+ G(O(y(a)("keys.actions.copy_json")), 1)
4845
4841
  ]),
4846
4842
  _: 2
4847
4843
  }, 1032, ["onClick"])
4848
4844
  ]),
4849
4845
  _: 2
4850
4846
  }, 1024),
4851
- A(m(Xe), {
4847
+ A(y(Xe), {
4852
4848
  "auth-function": () => e.canRetrieve(X)
4853
4849
  }, {
4854
4850
  default: k(() => [
@@ -4860,7 +4856,7 @@ const ms = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, hs = {
4860
4856
  ]),
4861
4857
  _: 2
4862
4858
  }, 1032, ["auth-function"]),
4863
- A(m(Xe), {
4859
+ A(y(Xe), {
4864
4860
  "auth-function": () => e.canEdit(X)
4865
4861
  }, {
4866
4862
  default: k(() => [
@@ -4871,7 +4867,7 @@ const ms = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, hs = {
4871
4867
  ]),
4872
4868
  _: 2
4873
4869
  }, 1032, ["auth-function"]),
4874
- A(m(Xe), {
4870
+ A(y(Xe), {
4875
4871
  "auth-function": () => e.canDelete(X)
4876
4872
  }, {
4877
4873
  default: k(() => [
@@ -4879,10 +4875,10 @@ const ms = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, hs = {
4879
4875
  danger: "",
4880
4876
  "data-testid": "action-entity-delete",
4881
4877
  "has-divider": "",
4882
- onClick: (Te) => ue(X)
4878
+ onClick: (Ne) => ue(X)
4883
4879
  }, {
4884
4880
  default: k(() => [
4885
- G(O(m(a)("keys.actions.delete")), 1)
4881
+ G(O(y(a)("keys.actions.delete")), 1)
4886
4882
  ]),
4887
4883
  _: 2
4888
4884
  }, 1032, ["onClick"])
@@ -4892,14 +4888,14 @@ const ms = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, hs = {
4892
4888
  ]),
4893
4889
  _: 1
4894
4890
  }, 8, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers", "use-action-outside"]),
4895
- A(m(Hl), {
4896
- "action-pending": F.value,
4897
- description: m(a)("keys.delete.description"),
4891
+ A(y(Hl), {
4892
+ "action-pending": q.value,
4893
+ description: y(a)("keys.delete.description"),
4898
4894
  "entity-name": L.value && (L.value.name || L.value.id),
4899
- "entity-type": m(sn).Key,
4895
+ "entity-type": y(sn).Key,
4900
4896
  error: J.value,
4901
4897
  "need-confirm": !1,
4902
- title: m(a)("keys.delete.title"),
4898
+ title: y(a)("keys.delete.title"),
4903
4899
  visible: U.value,
4904
4900
  onCancel: de,
4905
4901
  onProceed: ye
@@ -4912,11 +4908,11 @@ const ms = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, hs = {
4912
4908
  for (const [i, a] of t)
4913
4909
  n[i] = a;
4914
4910
  return n;
4915
- }, Zs = /* @__PURE__ */ ai(js, [["__scopeId", "data-v-58d43c7d"]]), $s = { class: "kong-ui-entities-keys-form" }, Ns = { "data-testid": "no-search-results" }, Ts = { class: "select-item-container" }, Os = { class: "select-item-label" }, Ks = { class: "select-item-description" }, Ms = {
4911
+ }, Zs = /* @__PURE__ */ ai(js, [["__scopeId", "data-v-58d43c7d"]]), $s = { class: "kong-ui-entities-keys-form" }, Ts = { "data-testid": "no-search-results" }, Ns = { class: "select-item-container" }, Os = { class: "select-item-label" }, Ks = { class: "select-item-description" }, Ms = {
4916
4912
  key: 0,
4917
4913
  class: "invalid-key-set-message",
4918
4914
  "data-testid": "invalid-key-set-message"
4919
- }, Fs = { "data-testid": "key-format-container" }, qs = /* @__PURE__ */ Q({
4915
+ }, qs = { "data-testid": "key-format-container" }, Fs = /* @__PURE__ */ Q({
4920
4916
  __name: "KeyForm",
4921
4917
  props: {
4922
4918
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -4947,7 +4943,7 @@ const ms = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, hs = {
4947
4943
  emits: ["update", "error", "loading"],
4948
4944
  setup(e, { emit: t }) {
4949
4945
  var E;
4950
- const n = t, i = e, a = Ct(), { i18n: { t: r } } = wt.useI18n(), { getMessageFromError: o } = ws(), { axiosInstance: l } = Nt((E = i.config) == null ? void 0 : E.axiosRequestConfig), c = _(() => i.keySetId ? Ae.form[i.config.app].edit.forKeySet.replace(/{keySetId}/gi, i.keySetId) : Ae.form[i.config.app].edit.all), u = _(() => i.keyId ? ze.Edit : ze.Create), s = Tt({
4946
+ const n = t, i = e, a = Ct(), { i18n: { t: r } } = wt.useI18n(), { getMessageFromError: o } = ws(), { axiosInstance: l } = Tt((E = i.config) == null ? void 0 : E.axiosRequestConfig), c = _(() => i.keySetId ? Ae.form[i.config.app].edit.forKeySet.replace(/{keySetId}/gi, i.keySetId) : Ae.form[i.config.app].edit.all), u = _(() => i.keyId ? ze.Edit : ze.Create), s = Nt({
4951
4947
  fields: {
4952
4948
  name: "",
4953
4949
  tags: "",
@@ -4960,7 +4956,7 @@ const ms = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, hs = {
4960
4956
  },
4961
4957
  isReadonly: !1,
4962
4958
  errorMessage: ""
4963
- }), d = Tt({
4959
+ }), d = Nt({
4964
4960
  name: "",
4965
4961
  tags: "",
4966
4962
  key_id: "",
@@ -4969,7 +4965,7 @@ const ms = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, hs = {
4969
4965
  jwk: "",
4970
4966
  private_key: "",
4971
4967
  public_key: ""
4972
- }), h = [
4968
+ }), v = [
4973
4969
  {
4974
4970
  label: r("keys.form.fields.key_format.options.jwk"),
4975
4971
  value: "jwk"
@@ -4978,16 +4974,16 @@ const ms = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, hs = {
4978
4974
  label: r("keys.form.fields.key_format.options.pem"),
4979
4975
  value: "pem"
4980
4976
  }
4981
- ], y = _(() => s.isReadonly || u.value === ze.Create && !!i.fixedKeySetId), S = _(() => !y.value);
4977
+ ], m = _(() => s.isReadonly || u.value === ze.Create && !!i.fixedKeySetId), S = _(() => !m.value);
4982
4978
  he(() => i.fixedKeySetId, (b) => {
4983
4979
  u.value === ze.Create && (s.fields.key_set = b);
4984
4980
  }, { immediate: !0 });
4985
4981
  const M = _(() => JSON.stringify(s.fields) !== JSON.stringify(d) && !!s.fields.key_id && !!s.fields.key_format && (s.fields.key_format === "jwk" && !!s.fields.jwk || s.fields.key_format === "pem" && !!s.fields.private_key && !!s.fields.public_key)), x = (b) => {
4986
4982
  var $, H, te, ge;
4987
4983
  s.fields.key_id = (b == null ? void 0 : b.kid) || "", s.fields.name = (b == null ? void 0 : b.name) || "", s.fields.tags = (($ = b == null ? void 0 : b.tags) == null ? void 0 : $.join(", ")) || "", s.fields.key_set = ((H = b == null ? void 0 : b.set) == null ? void 0 : H.id) || "", s.fields.key_format = b != null && b.pem ? "pem" : "jwk", s.fields.jwk = (b == null ? void 0 : b.jwk) || "", s.fields.private_key = ((te = b == null ? void 0 : b.pem) == null ? void 0 : te.private_key) || "", s.fields.public_key = ((ge = b == null ? void 0 : b.pem) == null ? void 0 : ge.public_key) || "", Object.assign(d, s.fields);
4988
- }, q = () => {
4984
+ }, F = () => {
4989
4985
  a.push(i.config.cancelRoute);
4990
- }, v = _(() => {
4986
+ }, h = _(() => {
4991
4987
  var $, H;
4992
4988
  let b = `${i.config.apiBaseUrl}${Ae.form[i.config.app][u.value][i.keySetId ? "forKeySet" : "all"]}`;
4993
4989
  return i.config.app === "konnect" ? b = b.replace(/{controlPlaneId}/gi, (($ = i.config) == null ? void 0 : $.controlPlaneId) || "") : i.config.app === "kongManager" && (b = b.replace(/\/{workspace}/gi, (H = i.config) != null && H.workspace ? `/${i.config.workspace}` : "")), b = b.replace(/{id}/gi, i.keyId).replace(/{keySetId}/gi, i.keySetId || ""), b;
@@ -5006,7 +5002,7 @@ const ms = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, hs = {
5006
5002
  try {
5007
5003
  s.isReadonly = !0;
5008
5004
  let D;
5009
- if (u.value === "create" ? D = await l.post(v.value, I.value) : u.value === "edit" && (D = ((b = i.config) == null ? void 0 : b.app) === "konnect" ? await l.put(v.value, I.value) : await l.patch(v.value, I.value)), D) {
5005
+ if (u.value === "create" ? D = await l.post(h.value, I.value) : u.value === "edit" && (D = ((b = i.config) == null ? void 0 : b.app) === "konnect" ? await l.put(h.value, I.value) : await l.patch(h.value, I.value)), D) {
5010
5006
  const { data: Y } = D;
5011
5007
  s.fields.key_id = (Y == null ? void 0 : Y.kid) || "", s.fields.name = (Y == null ? void 0 : Y.name) || "", s.fields.tags = (($ = Y == null ? void 0 : Y.tags) == null ? void 0 : $.join(", ")) || "", s.fields.key_set = ((H = Y == null ? void 0 : Y.set) == null ? void 0 : H.id) || "", s.fields.key_format = Y != null && Y.pem ? "pem" : "jwk", s.fields.jwk = (Y == null ? void 0 : Y.jwk) || "", s.fields.private_key = ((te = Y == null ? void 0 : Y.pem) == null ? void 0 : te.private_key) || "", s.fields.public_key = ((ge = Y == null ? void 0 : Y.pem) == null ? void 0 : ge.public_key) || "", Object.assign(d, s.fields), n("update", D == null ? void 0 : D.data);
5012
5008
  }
@@ -5026,12 +5022,12 @@ const ms = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, hs = {
5026
5022
  } = _s(i.config, Ae.form[i.config.app].keySets, void 0, {
5027
5023
  fetchedItemsKey: "data",
5028
5024
  searchKeys: ["id", "name"]
5029
- }), F = (b) => {
5025
+ }), q = (b) => {
5030
5026
  (!b || b !== s.fields.key_set && b !== d.key_set) && w(b);
5031
- }, J = _(() => B.value ? r("keys.errors.key_sets.fetch") : ""), W = _(() => K.value ? r("keys.errors.key_sets.invalid") : ""), ue = T(0), de = _(() => g.value === void 0), ye = _(() => {
5027
+ }, J = _(() => B.value ? r("keys.errors.key_sets.fetch") : ""), W = _(() => K.value ? r("keys.errors.key_sets.invalid") : ""), ue = N(0), de = _(() => g.value === void 0), ye = _(() => {
5032
5028
  if (de.value)
5033
5029
  return i.config.app === "konnect" ? r("keys.form.fields.key_set.footer") : void 0;
5034
- }), Fe = T(/* @__PURE__ */ new Set()), qe = _(() => Array.from(Fe.value).map(($) => ({
5030
+ }), qe = N(/* @__PURE__ */ new Set()), Fe = _(() => Array.from(qe.value).map(($) => ({
5035
5031
  name: $.name || "",
5036
5032
  // can't use name for label or it tries to search => 404
5037
5033
  label: "",
@@ -5039,21 +5035,21 @@ const ms = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, hs = {
5039
5035
  value: $.id,
5040
5036
  selected: s.fields.key_set === $.id
5041
5037
  }))), Qe = (b) => {
5042
- Fe.value.clear();
5038
+ qe.value.clear();
5043
5039
  let $;
5044
5040
  for ($ of b)
5045
- Fe.value.add($);
5041
+ qe.value.add($);
5046
5042
  };
5047
5043
  return he(U, (b) => {
5048
5044
  Qe(b);
5049
- }, { immediate: !0, deep: !0 }), he(qe, () => {
5045
+ }, { immediate: !0, deep: !0 }), he(Fe, () => {
5050
5046
  ue.value++;
5051
5047
  }, { immediate: !0, deep: !0 }), lt(async () => {
5052
5048
  await L();
5053
5049
  }), (b, $) => {
5054
5050
  const H = P("KInput"), te = P("KSelect"), ge = P("KTextArea");
5055
5051
  return f(), j("div", $s, [
5056
- A(m(Fl), {
5052
+ A(y(ql), {
5057
5053
  "can-submit": M.value,
5058
5054
  config: e.config,
5059
5055
  "edit-id": e.keyId,
@@ -5061,16 +5057,16 @@ const ms = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, hs = {
5061
5057
  "fetch-url": c.value,
5062
5058
  "form-fields": I.value,
5063
5059
  "is-readonly": s.isReadonly,
5064
- onCancel: q,
5060
+ onCancel: F,
5065
5061
  "onFetch:error": $[8] || ($[8] = (D) => b.$emit("error", D)),
5066
5062
  "onFetch:success": x,
5067
5063
  onLoading: $[9] || ($[9] = (D) => b.$emit("loading", D)),
5068
5064
  onSubmit: C
5069
5065
  }, {
5070
5066
  default: k(() => [
5071
- A(m(an), {
5072
- description: m(r)("keys.form.sections.general.description"),
5073
- title: m(r)("keys.form.sections.general.title")
5067
+ A(y(an), {
5068
+ description: y(r)("keys.form.sections.general.description"),
5069
+ title: y(r)("keys.form.sections.general.title")
5074
5070
  }, {
5075
5071
  default: k(() => [
5076
5072
  A(H, {
@@ -5079,10 +5075,10 @@ const ms = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, hs = {
5079
5075
  modelModifiers: { trim: !0 },
5080
5076
  autocomplete: "off",
5081
5077
  "data-testid": "key-form-id",
5082
- help: m(r)("keys.form.fields.id.help"),
5083
- label: m(r)("keys.form.fields.id.label"),
5084
- "label-attributes": { info: m(r)("keys.form.fields.id.tooltip") },
5085
- placeholder: m(r)("keys.form.fields.id.placeholder"),
5078
+ help: y(r)("keys.form.fields.id.help"),
5079
+ label: y(r)("keys.form.fields.id.label"),
5080
+ "label-attributes": { info: y(r)("keys.form.fields.id.tooltip") },
5081
+ placeholder: y(r)("keys.form.fields.id.placeholder"),
5086
5082
  readonly: s.isReadonly,
5087
5083
  required: "",
5088
5084
  type: "text"
@@ -5093,8 +5089,8 @@ const ms = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, hs = {
5093
5089
  modelModifiers: { trim: !0 },
5094
5090
  autocomplete: "off",
5095
5091
  "data-testid": "key-form-name",
5096
- label: m(r)("keys.form.fields.name.label"),
5097
- placeholder: m(r)("keys.form.fields.name.placeholder"),
5092
+ label: y(r)("keys.form.fields.name.label"),
5093
+ placeholder: y(r)("keys.form.fields.name.placeholder"),
5098
5094
  readonly: s.isReadonly,
5099
5095
  type: "text"
5100
5096
  }, null, 8, ["modelValue", "label", "placeholder", "readonly"]),
@@ -5106,25 +5102,25 @@ const ms = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, hs = {
5106
5102
  "dropdown-footer-text": ye.value,
5107
5103
  "enable-filtering": "",
5108
5104
  "filter-function": () => !0,
5109
- items: qe.value,
5110
- label: m(r)("keys.form.fields.key_set.label"),
5111
- loading: m(p),
5112
- placeholder: m(r)("keys.form.fields.key_set.placeholder"),
5113
- readonly: y.value,
5105
+ items: Fe.value,
5106
+ label: y(r)("keys.form.fields.key_set.label"),
5107
+ loading: y(p),
5108
+ placeholder: y(r)("keys.form.fields.key_set.placeholder"),
5109
+ readonly: m.value,
5114
5110
  width: "100%",
5115
- onQueryChange: F
5111
+ onQueryChange: q
5116
5112
  }, {
5117
5113
  loading: k(() => [
5118
- R("div", null, O(m(r)("keys.actions.loading")), 1)
5114
+ R("div", null, O(y(r)("keys.actions.loading")), 1)
5119
5115
  ]),
5120
5116
  empty: k(() => [
5121
- R("div", Ns, O(m(r)("keys.search.no_results")), 1)
5117
+ R("div", Ts, O(y(r)("keys.search.no_results")), 1)
5122
5118
  ]),
5123
5119
  "selected-item-template": k(({ item: D }) => [
5124
5120
  R("div", null, O(D.name), 1)
5125
5121
  ]),
5126
5122
  "item-template": k(({ item: D }) => [
5127
- R("div", Ts, [
5123
+ R("div", Ns, [
5128
5124
  R("div", Os, O(D.name), 1),
5129
5125
  R("div", Ks, O(D.value), 1)
5130
5126
  ])
@@ -5138,29 +5134,29 @@ const ms = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, hs = {
5138
5134
  modelModifiers: { trim: !0 },
5139
5135
  autocomplete: "off",
5140
5136
  "data-testid": "key-form-tags",
5141
- help: m(r)("keys.form.fields.tags.help"),
5142
- label: m(r)("keys.form.fields.tags.label"),
5143
- "label-attributes": { info: m(r)("keys.form.fields.tags.tooltip") },
5144
- placeholder: m(r)("keys.form.fields.tags.placeholder"),
5137
+ help: y(r)("keys.form.fields.tags.help"),
5138
+ label: y(r)("keys.form.fields.tags.label"),
5139
+ "label-attributes": { info: y(r)("keys.form.fields.tags.tooltip") },
5140
+ placeholder: y(r)("keys.form.fields.tags.placeholder"),
5145
5141
  readonly: s.isReadonly,
5146
5142
  type: "text"
5147
5143
  }, null, 8, ["modelValue", "help", "label", "label-attributes", "placeholder", "readonly"])
5148
5144
  ]),
5149
5145
  _: 1
5150
5146
  }, 8, ["description", "title"]),
5151
- A(m(an), {
5152
- description: m(r)("keys.form.sections.keys.description"),
5147
+ A(y(an), {
5148
+ description: y(r)("keys.form.sections.keys.description"),
5153
5149
  "has-divider": "",
5154
- title: m(r)("keys.form.sections.keys.title")
5150
+ title: y(r)("keys.form.sections.keys.title")
5155
5151
  }, {
5156
5152
  default: k(() => [
5157
- R("div", Fs, [
5153
+ R("div", qs, [
5158
5154
  A(te, {
5159
5155
  modelValue: s.fields.key_format,
5160
5156
  "onUpdate:modelValue": $[4] || ($[4] = (D) => s.fields.key_format = D),
5161
5157
  "data-testid": "key-form-key-format",
5162
- items: h,
5163
- label: m(r)("keys.form.fields.key_format.label"),
5158
+ items: v,
5159
+ label: y(r)("keys.form.fields.key_format.label"),
5164
5160
  readonly: s.isReadonly,
5165
5161
  required: "",
5166
5162
  width: "100%"
@@ -5173,9 +5169,9 @@ const ms = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, hs = {
5173
5169
  modelModifiers: { trim: !0 },
5174
5170
  class: "key-form-textarea",
5175
5171
  "data-testid": "key-form-jwk",
5176
- label: m(r)("keys.form.fields.jwk.label"),
5177
- "label-attributes": { info: m(r)("keys.form.fields.jwk.tooltip") },
5178
- placeholder: m(r)("keys.form.fields.jwk.placeholder"),
5172
+ label: y(r)("keys.form.fields.jwk.label"),
5173
+ "label-attributes": { info: y(r)("keys.form.fields.jwk.tooltip") },
5174
+ placeholder: y(r)("keys.form.fields.jwk.placeholder"),
5179
5175
  readonly: s.isReadonly,
5180
5176
  required: ""
5181
5177
  }, null, 8, ["modelValue", "label", "label-attributes", "placeholder", "readonly"])) : z("", !0),
@@ -5186,8 +5182,8 @@ const ms = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, hs = {
5186
5182
  modelModifiers: { trim: !0 },
5187
5183
  class: "key-form-textarea",
5188
5184
  "data-testid": "key-form-private-key",
5189
- label: m(r)("keys.form.fields.private_key.label"),
5190
- placeholder: m(r)("keys.form.fields.private_key.placeholder"),
5185
+ label: y(r)("keys.form.fields.private_key.label"),
5186
+ placeholder: y(r)("keys.form.fields.private_key.placeholder"),
5191
5187
  readonly: s.isReadonly,
5192
5188
  required: ""
5193
5189
  }, null, 8, ["modelValue", "label", "placeholder", "readonly"])) : z("", !0),
@@ -5198,8 +5194,8 @@ const ms = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, hs = {
5198
5194
  modelModifiers: { trim: !0 },
5199
5195
  class: "key-form-textarea",
5200
5196
  "data-testid": "key-form-public-key",
5201
- label: m(r)("keys.form.fields.public_key.label"),
5202
- placeholder: m(r)("keys.form.fields.public_key.placeholder"),
5197
+ label: y(r)("keys.form.fields.public_key.label"),
5198
+ placeholder: y(r)("keys.form.fields.public_key.placeholder"),
5203
5199
  readonly: s.isReadonly,
5204
5200
  required: ""
5205
5201
  }, null, 8, ["modelValue", "label", "placeholder", "readonly"])) : z("", !0)
@@ -5212,7 +5208,7 @@ const ms = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, hs = {
5212
5208
  ]);
5213
5209
  };
5214
5210
  }
5215
- }), Gs = /* @__PURE__ */ ai(qs, [["__scopeId", "data-v-e3c278d7"]]), Bs = { class: "kong-ui-entities-keys-entity-config-card" }, Es = { key: 2 }, Qs = /* @__PURE__ */ Q({
5211
+ }), Gs = /* @__PURE__ */ ai(Fs, [["__scopeId", "data-v-e3c278d7"]]), Bs = { class: "kong-ui-entities-keys-entity-config-card" }, Es = { key: 2 }, Qs = /* @__PURE__ */ Q({
5216
5212
  __name: "KeyConfigCard",
5217
5213
  props: {
5218
5214
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -5246,35 +5242,35 @@ const ms = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, hs = {
5246
5242
  },
5247
5243
  emits: ["loading", "fetch:error", "fetch:success", "navigation-click"],
5248
5244
  setup(e, { emit: t }) {
5249
- var q;
5250
- const n = t, i = e, { axiosInstance: a } = Nt((q = i.config) == null ? void 0 : q.axiosRequestConfig), { convertKeyToTitle: r } = xs(), { i18n: { t: o } } = wt.useI18n(), l = _(() => i.keySetId ? `${Ae.form[i.config.app].edit.forKeySet}`.replace(/{keySetId}/gi, i.keySetId) : Ae.form[i.config.app].edit.all), c = _(() => {
5251
- var v;
5252
- return (v = Ae.form[i.config.app]) == null ? void 0 : v.getKeySet;
5253
- }), u = T(), s = T({}), d = T(i.keySetId || ""), h = T(""), y = T(!1), S = async (v) => {
5245
+ var F;
5246
+ const n = t, i = e, { axiosInstance: a } = Tt((F = i.config) == null ? void 0 : F.axiosRequestConfig), { convertKeyToTitle: r } = xs(), { i18n: { t: o } } = wt.useI18n(), l = _(() => i.keySetId ? `${Ae.form[i.config.app].edit.forKeySet}`.replace(/{keySetId}/gi, i.keySetId) : Ae.form[i.config.app].edit.all), c = _(() => {
5247
+ var h;
5248
+ return (h = Ae.form[i.config.app]) == null ? void 0 : h.getKeySet;
5249
+ }), u = N(), s = N({}), d = N(i.keySetId || ""), v = N(""), m = N(!1), S = async (h) => {
5254
5250
  var I;
5255
- u.value = v, d.value = (I = v == null ? void 0 : v.set) == null ? void 0 : I.id, n("fetch:success", v), M(v);
5251
+ u.value = h, d.value = (I = h == null ? void 0 : h.set) == null ? void 0 : I.id, n("fetch:success", h), M(h);
5256
5252
  };
5257
5253
  he(d, async () => {
5258
5254
  var I, C;
5259
5255
  if (!d.value)
5260
5256
  return;
5261
- let v = `${i.config.apiBaseUrl}${c.value}`;
5262
- i.config.app === "konnect" ? v = v.replace(/{controlPlaneId}/gi, ((I = i.config) == null ? void 0 : I.controlPlaneId) || "").replace(/{keySetId}/gi, d.value || "") : i.config.app === "kongManager" && (v = v.replace(/\/{workspace}/gi, (C = i.config) != null && C.workspace ? `/${i.config.workspace}` : "").replace(/{keySetId}/gi, d.value || ""));
5257
+ let h = `${i.config.apiBaseUrl}${c.value}`;
5258
+ i.config.app === "konnect" ? h = h.replace(/{controlPlaneId}/gi, ((I = i.config) == null ? void 0 : I.controlPlaneId) || "").replace(/{keySetId}/gi, d.value || "") : i.config.app === "kongManager" && (h = h.replace(/\/{workspace}/gi, (C = i.config) != null && C.workspace ? `/${i.config.workspace}` : "").replace(/{keySetId}/gi, d.value || ""));
5263
5259
  try {
5264
- y.value = !0;
5265
- const { data: w } = await a.get(v);
5266
- h.value = (w == null ? void 0 : w.name) || (w == null ? void 0 : w.id);
5260
+ m.value = !0;
5261
+ const { data: w } = await a.get(h);
5262
+ v.value = (w == null ? void 0 : w.name) || (w == null ? void 0 : w.id);
5267
5263
  } catch (w) {
5268
5264
  n("fetch:error", w);
5269
5265
  } finally {
5270
- y.value = !1;
5266
+ m.value = !1;
5271
5267
  }
5272
5268
  }, { immediate: !0 });
5273
- const M = (v) => {
5269
+ const M = (h) => {
5274
5270
  var I, C;
5275
5271
  try {
5276
- if (v.jwk) {
5277
- const w = JSON.parse(v.jwk);
5272
+ if (h.jwk) {
5273
+ const w = JSON.parse(h.jwk);
5278
5274
  Object.keys(w).forEach((p) => {
5279
5275
  s.value = {
5280
5276
  ...s.value,
@@ -5283,14 +5279,14 @@ const ms = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, hs = {
5283
5279
  });
5284
5280
  } else
5285
5281
  s.value = {
5286
- "pem.public_key": (I = v == null ? void 0 : v.pem) == null ? void 0 : I.public_key,
5287
- "pem.private_key": (C = v == null ? void 0 : v.pem) == null ? void 0 : C.private_key
5282
+ "pem.public_key": (I = h == null ? void 0 : h.pem) == null ? void 0 : I.public_key,
5283
+ "pem.private_key": (C = h == null ? void 0 : h.pem) == null ? void 0 : C.private_key
5288
5284
  };
5289
5285
  } catch (w) {
5290
5286
  n("fetch:error", w);
5291
5287
  }
5292
5288
  return s;
5293
- }, x = T({
5289
+ }, x = N({
5294
5290
  id: {},
5295
5291
  name: {
5296
5292
  tooltip: o("keys.form.fields.name.tooltip")
@@ -5322,33 +5318,33 @@ const ms = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, hs = {
5322
5318
  type: Z.Json
5323
5319
  }
5324
5320
  });
5325
- return (v, I) => {
5321
+ return (h, I) => {
5326
5322
  var w, p;
5327
5323
  const C = P("KSkeleton");
5328
5324
  return f(), j("div", Bs, [
5329
- A(m(Tl), {
5325
+ A(y(Nl), {
5330
5326
  config: e.config,
5331
5327
  "config-card-doc": e.configCardDoc,
5332
5328
  "config-schema": x.value,
5333
5329
  "fetch-url": l.value,
5334
5330
  "hide-title": e.hideTitle,
5335
- "onFetch:error": I[0] || (I[0] = (g) => v.$emit("fetch:error", g)),
5331
+ "onFetch:error": I[0] || (I[0] = (g) => h.$emit("fetch:error", g)),
5336
5332
  "onFetch:success": S,
5337
- onLoading: I[1] || (I[1] = (g) => v.$emit("loading", g))
5333
+ onLoading: I[1] || (I[1] = (g) => h.$emit("loading", g))
5338
5334
  }, Me({
5339
5335
  set: k(({ row: g }) => [
5340
- y.value ? (f(), V(C, {
5336
+ m.value ? (f(), V(C, {
5341
5337
  key: 0,
5342
5338
  "data-testid": "key-set-name-loader",
5343
5339
  type: "spinner"
5344
- })) : g.value && g.value.id === d.value && h.value ? (f(), V(m(yn), {
5340
+ })) : g.value && g.value.id === d.value && v.value ? (f(), V(y(yn), {
5345
5341
  key: 1,
5346
5342
  item: {
5347
5343
  key: g.value.id,
5348
- value: h.value,
5349
- type: m(Z).LinkInternal
5344
+ value: v.value,
5345
+ type: y(Z).LinkInternal
5350
5346
  },
5351
- onClick: (B) => v.$emit("navigation-click", g.value.id, "key-sets")
5347
+ onClick: (B) => h.$emit("navigation-click", g.value.id, "key-sets")
5352
5348
  }, null, 8, ["item", "onClick"])) : (f(), j("div", Es, O("–")))
5353
5349
  ]),
5354
5350
  _: 2
@@ -5356,12 +5352,12 @@ const ms = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, hs = {
5356
5352
  (w = u.value) != null && w.jwk ? {
5357
5353
  name: "jwk",
5358
5354
  fn: k(() => [
5359
- (f(!0), j(me, null, fe(Object.keys(s.value), (g) => (f(), V(m(tt), {
5355
+ (f(!0), j(me, null, fe(Object.keys(s.value), (g) => (f(), V(y(tt), {
5360
5356
  key: g,
5361
5357
  "data-testid": `${g}`,
5362
5358
  item: {
5363
5359
  key: g,
5364
- label: m(r)(g),
5360
+ label: y(r)(g),
5365
5361
  value: s.value[g]
5366
5362
  }
5367
5363
  }, null, 8, ["data-testid", "item"]))), 128))
@@ -5371,12 +5367,12 @@ const ms = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, hs = {
5371
5367
  (p = u.value) != null && p.pem ? {
5372
5368
  name: "pem",
5373
5369
  fn: k(() => [
5374
- (f(!0), j(me, null, fe(Object.keys(s.value), (g) => (f(), V(m(tt), {
5370
+ (f(!0), j(me, null, fe(Object.keys(s.value), (g) => (f(), V(y(tt), {
5375
5371
  key: g,
5376
5372
  "data-testid": `${g}`,
5377
5373
  item: {
5378
5374
  key: g,
5379
- label: m(r)(g),
5375
+ label: y(r)(g),
5380
5376
  value: s.value[g]
5381
5377
  }
5382
5378
  }, null, 8, ["data-testid", "item"]))), 128))