@kong-ui-public/entities-consumers 2.7.9 → 2.7.10

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,7 +1,7 @@
1
- import { defineComponent as W, ref as N, computed as x, watch as ve, renderSlot as Q, createCommentVNode as G, unref as m, onBeforeMount as kt, resolveComponent as U, openBlock as y, createBlock as R, createSlots as Te, withCtx as b, createElementVNode as F, createVNode as T, createTextVNode as H, toDisplayString as j, renderList as de, createElementBlock as E, withModifiers as ft, withDirectives as ke, vShow as Ce, Fragment as pe, normalizeClass as Ie, withKeys as kr, useSlots as Ct, resolveDynamicComponent as Ae, useCssVars as pn, inject as Cr, onMounted as wr, onUnmounted as Ir, normalizeStyle as Ze, normalizeProps as _r, guardReactiveProps as Sr, mergeProps as Ar, pushScopeId as Qe, popScopeId as Xe, reactive as Ut } from "vue";
1
+ import { defineComponent as W, ref as N, computed as x, watch as ve, renderSlot as Q, createCommentVNode as G, unref as m, onBeforeMount as kt, resolveComponent as U, openBlock as y, createBlock as P, createSlots as Te, withCtx as b, createElementVNode as F, createVNode as T, createTextVNode as H, toDisplayString as j, renderList as de, createElementBlock as E, withModifiers as ft, withDirectives as ke, vShow as Ce, Fragment as pe, normalizeClass as Ie, withKeys as kr, useSlots as Ct, resolveDynamicComponent as Ae, useCssVars as pn, inject as Cr, onMounted as wr, onUnmounted as Ir, normalizeStyle as Qe, normalizeProps as _r, guardReactiveProps as Sr, mergeProps as Ar, pushScopeId as Xe, popScopeId as et, reactive as Ut } from "vue";
2
2
  import { useRouter as wt } from "vue-router";
3
3
  import { createI18n as fn, i18nTComponent as mn } from "@kong-ui-public/i18n";
4
- import Pt from "axios";
4
+ import Rt from "axios";
5
5
  import { BadgeMethodAppearances as xr } from "@kong/kongponents";
6
6
  const $r = {
7
7
  list: {
@@ -109,31 +109,31 @@ function jr() {
109
109
  // Translation component <i18n-t>
110
110
  };
111
111
  }
112
- const et = {
112
+ const tt = {
113
113
  useI18n: jr
114
- }, st = "/api/runtime_groups/{controlPlaneId}", Oe = "/{workspace}", je = {
114
+ }, Oe = "/v2/control-planes/{controlPlaneId}/core-entities", Ee = "/{workspace}", je = {
115
115
  list: {
116
116
  konnect: {
117
- all: "/v2/control-planes/{controlPlaneId}/core-entities/consumers",
118
- forConsumerGroup: "/v2/control-planes/{controlPlaneId}/core-entities/consumer_groups/{consumerGroupId}/consumers",
119
- oneForConsumerGroup: "/v2/control-planes/{controlPlaneId}/core-entities/consumer_groups/{consumerGroupId}/consumers/{consumerId}"
120
- },
121
- kongManager: {
122
117
  all: `${Oe}/consumers`,
123
118
  forConsumerGroup: `${Oe}/consumer_groups/{consumerGroupId}/consumers`,
124
119
  oneForConsumerGroup: `${Oe}/consumer_groups/{consumerGroupId}/consumers/{consumerId}`
120
+ },
121
+ kongManager: {
122
+ all: `${Ee}/consumers`,
123
+ forConsumerGroup: `${Ee}/consumer_groups/{consumerGroupId}/consumers`,
124
+ oneForConsumerGroup: `${Ee}/consumer_groups/{consumerGroupId}/consumers/{consumerId}`
125
125
  }
126
126
  },
127
127
  form: {
128
128
  konnect: {
129
- validate: `${st}/v1/schemas/json/consumer/validate`,
130
- create: `${st}/consumers`,
131
- edit: `${st}/consumers/{id}`
132
- },
133
- kongManager: {
134
- validate: `${Oe}/schemas/consumers/validate`,
129
+ validate: `${Oe}/v1/schemas/json/consumer/validate`,
135
130
  create: `${Oe}/consumers`,
136
131
  edit: `${Oe}/consumers/{id}`
132
+ },
133
+ kongManager: {
134
+ validate: `${Ee}/schemas/consumers/validate`,
135
+ create: `${Ee}/consumers`,
136
+ edit: `${Ee}/consumers/{id}`
137
137
  }
138
138
  }
139
139
  };
@@ -143,13 +143,13 @@ function Mr() {
143
143
  getAxiosInstance: (e = {}) => {
144
144
  try {
145
145
  const t = Cr("get-axios-instance", void 0);
146
- return typeof t == "function" ? t(e) : Pt.create({
146
+ return typeof t == "function" ? t(e) : Rt.create({
147
147
  withCredentials: !0,
148
148
  timeout: 3e4,
149
149
  ...e
150
150
  });
151
151
  } catch (t) {
152
- return console.warn("getAxiosInstance:", t.message || t), Pt.create({
152
+ return console.warn("getAxiosInstance:", t.message || t), Rt.create({
153
153
  withCredentials: !0,
154
154
  timeout: 3e4,
155
155
  ...e
@@ -291,12 +291,12 @@ const Fr = {
291
291
  applyButtonText: "Apply",
292
292
  clearButtonText: "Clear",
293
293
  clearAllButtonText: "Clear all filters"
294
- }, Pr = {
294
+ }, Rr = {
295
295
  errors: {
296
296
  fetch: "Could not fetch available items",
297
297
  invalid: "Please select a valid value"
298
298
  }
299
- }, Rr = {
299
+ }, Pr = {
300
300
  unexpected: "An unexpected error has occurred",
301
301
  dataKeyUndefined: 'The data key "{dataKey}" does not exist in the response.'
302
302
  }, Vr = {
@@ -319,12 +319,12 @@ const Fr = {
319
319
  baseTable: Br,
320
320
  baseConfigCard: Lr,
321
321
  filter: Ur,
322
- debouncedFilter: Pr,
323
- errors: Rr,
322
+ debouncedFilter: Rr,
323
+ errors: Pr,
324
324
  validationErrors: Vr,
325
325
  toggleModal: Dr
326
326
  };
327
- function tt() {
327
+ function nt() {
328
328
  const e = fn("en-us", zr);
329
329
  return {
330
330
  i18n: e,
@@ -383,12 +383,12 @@ function Gr(e, t, n, r = {
383
383
  n || (n = "1000");
384
384
  const { axiosInstance: a } = It({
385
385
  headers: e.requestHeaders
386
- }), { i18n: { t: i } } = tt(), { debounce: o } = Or(), l = o(async (C) => {
386
+ }), { i18n: { t: i } } = nt(), { debounce: o } = Or(), l = o(async (C) => {
387
387
  await Z(C);
388
388
  }, 200), s = N(!1), u = N(""), d = N(""), c = N([]), v = N([]), g = N(void 0), I = m(t);
389
389
  let w = `${e.apiBaseUrl}${I}`;
390
390
  e.app === "konnect" ? w = w.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (w = w.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
391
- const { isValidUuid: _ } = hn(), P = async () => {
391
+ const { isValidUuid: _ } = hn(), R = async () => {
392
392
  try {
393
393
  s.value = !0;
394
394
  const { data: C } = await a.get(`${w}?size=${n}`);
@@ -450,7 +450,7 @@ function Gr(e, t, n, r = {
450
450
  validationError: d,
451
451
  results: c,
452
452
  allRecords: g,
453
- loadItems: P,
453
+ loadItems: R,
454
454
  debouncedQueryChange: l
455
455
  };
456
456
  }
@@ -461,7 +461,7 @@ function Hr(e, t) {
461
461
  return r.value.search = "", (a) => `${r.value.href}/${a}`;
462
462
  }
463
463
  function Jr() {
464
- const { i18n: { t: e } } = tt();
464
+ const { i18n: { t: e } } = nt();
465
465
  return {
466
466
  getMessageFromError: (t) => {
467
467
  var n, r, a, i;
@@ -576,7 +576,7 @@ function Zr() {
576
576
  convertKeyToTitle: e
577
577
  };
578
578
  }
579
- const vn = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, Rt = (e) => {
579
+ const vn = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, Pt = (e) => {
580
580
  if (typeof e != "string")
581
581
  throw new TypeError("Invalid argument expected string");
582
582
  const t = e.match(vn);
@@ -599,7 +599,7 @@ const vn = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
599
599
  }
600
600
  return 0;
601
601
  }, ea = (e, t) => {
602
- const n = Rt(e), r = Rt(t), a = n.pop(), i = r.pop(), o = zt(n, r);
602
+ const n = Pt(e), r = Pt(t), a = n.pop(), i = r.pop(), o = zt(n, r);
603
603
  return o !== 0 ? o : a && i ? zt(a.split("."), i.split(".")) : a || i ? a ? -1 : 1 : 0;
604
604
  }, Gt = (e, t, n) => {
605
605
  ta(n);
@@ -640,7 +640,7 @@ function aa(e) {
640
640
  };
641
641
  }
642
642
  function ia() {
643
- const { i18n: { t: e } } = tt();
643
+ const { i18n: { t: e } } = nt();
644
644
  return {
645
645
  utf8Name: (t) => /^[\p{N}\p{L}.\-_~]*$/u.test(t) ? "" : e("validationErrors.utf8Name")
646
646
  };
@@ -655,7 +655,7 @@ const ne = {
655
655
  useFetchUrlBuilder: yn,
656
656
  useHelpers: hn,
657
657
  useStringHelpers: Zr,
658
- useI18n: tt,
658
+ useI18n: nt,
659
659
  useGatewayFeatureSupported: ra,
660
660
  useTruncationDetector: aa,
661
661
  useValidators: ia
@@ -686,14 +686,14 @@ const ne = {
686
686
  var s;
687
687
  return t.isArrayItem ? (s = i.value) != null && s.name ? r(i.value.name, "_") : n("baseConfigCard.general.entryTitle", { index: t.index }) : "";
688
688
  });
689
- return (s, u) => (y(), R(Ae(e.isArrayItem ? "fieldset" : "div"), {
689
+ return (s, u) => (y(), P(Ae(e.isArrayItem ? "fieldset" : "div"), {
690
690
  class: Ie(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
691
691
  }, {
692
692
  default: b(() => [
693
693
  e.isArrayItem ? (y(), E("legend", oa, [
694
694
  F("b", null, j(l.value), 1)
695
695
  ])) : G("", !0),
696
- (y(!0), E(pe, null, de(Object.keys(o.value), (d, c) => (y(), R(Cn, {
696
+ (y(!0), E(pe, null, de(Object.keys(o.value), (d, c) => (y(), P(Cn, {
697
697
  key: `${a.value}-property-${c}`,
698
698
  item: {
699
699
  key: d,
@@ -749,7 +749,7 @@ const ne = {
749
749
  const { i18n: { t } } = ne.useI18n();
750
750
  return (n, r) => {
751
751
  const a = U("KBadge");
752
- return y(), R(a, {
752
+ return y(), P(a, {
753
753
  appearance: e.status ? "success" : "neutral"
754
754
  }, {
755
755
  default: b(() => [
@@ -900,7 +900,7 @@ const ne = {
900
900
  }
901
901
  }), v = N(), { isTruncated: g } = ne.useTruncationDetector(v);
902
902
  return (I, w) => {
903
- const _ = U("KLabel"), P = U("KBadge"), q = U("KCopy"), Z = U("KTooltip");
903
+ const _ = U("KLabel"), R = U("KBadge"), q = U("KCopy"), Z = U("KTooltip");
904
904
  return y(), E("div", ya, [
905
905
  F("div", {
906
906
  class: "config-card-details-label",
@@ -937,13 +937,13 @@ const ne = {
937
937
  rowValue: e.item.value
938
938
  }, () => [
939
939
  l.value ? (y(), E("div", wa, [
940
- (y(), R(Ae(c.value.tag), _r(Sr(c.value.attrs)), {
940
+ (y(), P(Ae(c.value.tag), _r(Sr(c.value.attrs)), {
941
941
  default: b(() => [
942
942
  c.value.additionalComponent === "KBadge" ? (y(), E("div", {
943
943
  key: 0,
944
944
  "data-testid": `${e.item.key}-badge-tags`
945
945
  }, [
946
- (y(!0), E(pe, null, de(e.item.value, (C, h) => (y(), R(P, {
946
+ (y(!0), E(pe, null, de(e.item.value, (C, h) => (y(), P(R, {
947
947
  key: `${e.item.key}-badge-tag-${h}`,
948
948
  class: "config-badge",
949
949
  "data-testid": `${e.item.key}-badge-tag-${h}`,
@@ -961,7 +961,7 @@ const ne = {
961
961
  class: "copy-uuid-array",
962
962
  "data-testid": `${e.item.key}-copy-uuid-array`
963
963
  }, [
964
- (y(!0), E(pe, null, de(e.item.value, (C, h) => (y(), R(q, Ar(c.value.childAttrs, {
964
+ (y(!0), E(pe, null, de(e.item.value, (C, h) => (y(), P(q, Ar(c.value.childAttrs, {
965
965
  key: `${e.item.key}-copy-uuid-${h}`,
966
966
  "data-testid": `${e.item.key}-copy-uuid-${h}`,
967
967
  text: C
@@ -971,7 +971,7 @@ const ne = {
971
971
  class: "method-badge-array",
972
972
  "data-testid": `${e.item.key}-badge-methods`
973
973
  }, [
974
- (y(!0), E(pe, null, de(e.item.value, (C, h) => (y(), R(P, {
974
+ (y(!0), E(pe, null, de(e.item.value, (C, h) => (y(), P(R, {
975
975
  key: `${e.item.key}-badge-method-${h}`,
976
976
  appearance: Object.values(m(xr)).includes(C.toLowerCase()) ? C.toLowerCase() : "custom",
977
977
  class: "config-badge",
@@ -987,13 +987,13 @@ const ne = {
987
987
  key: 3,
988
988
  "data-testid": `${n.item.key}-json-array-content`
989
989
  }, [
990
- (y(!0), E(pe, null, de(e.item.value, (C, h) => (y(), R(kn, {
990
+ (y(!0), E(pe, null, de(e.item.value, (C, h) => (y(), P(kn, {
991
991
  key: `json-array-item-${h}`,
992
992
  index: h,
993
993
  "is-array-item": "",
994
994
  item: C
995
995
  }, null, 8, ["index", "item"]))), 128))
996
- ], 8, Aa)) : (y(), R(Z, {
996
+ ], 8, Aa)) : (y(), P(Z, {
997
997
  key: 4,
998
998
  text: m(g) ? e.item.value : ""
999
999
  }, {
@@ -1079,7 +1079,7 @@ const ne = {
1079
1079
  theme: "dark"
1080
1080
  }, null, 8, ["code"])
1081
1081
  ])) : G("", !0),
1082
- t.jsonRecord ? (y(), R(l, {
1082
+ t.jsonRecord ? (y(), P(l, {
1083
1083
  key: 1,
1084
1084
  id: "json-codeblock",
1085
1085
  class: Ie({ "json-content": t.fetcherUrl }),
@@ -1117,13 +1117,13 @@ function Na(e, t) {
1117
1117
  function Fa(e) {
1118
1118
  return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
1119
1119
  }
1120
- var qa = In, Ka = Ma, Ba = Oa, La = Na, Ua = Fa, Pa = Ea, te = {
1120
+ var qa = In, Ka = Ma, Ba = Oa, La = Na, Ua = Fa, Ra = Ea, te = {
1121
1121
  isNothing: qa,
1122
1122
  isObject: Ka,
1123
1123
  toArray: Ba,
1124
1124
  repeat: La,
1125
1125
  isNegativeZero: Ua,
1126
- extend: Pa
1126
+ extend: Ra
1127
1127
  };
1128
1128
  function _n(e, t) {
1129
1129
  var n = "", r = e.reason || "(unknown reason)";
@@ -1131,15 +1131,15 @@ function _n(e, t) {
1131
1131
 
1132
1132
  ` + e.mark.snippet), r + " " + n) : r;
1133
1133
  }
1134
- function Ue(e, t) {
1134
+ function Re(e, t) {
1135
1135
  Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = t, this.message = _n(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || "";
1136
1136
  }
1137
- Ue.prototype = Object.create(Error.prototype);
1138
- Ue.prototype.constructor = Ue;
1139
- Ue.prototype.toString = function(e) {
1137
+ Re.prototype = Object.create(Error.prototype);
1138
+ Re.prototype.constructor = Re;
1139
+ Re.prototype.toString = function(e) {
1140
1140
  return this.name + ": " + _n(this, e);
1141
1141
  };
1142
- var le = Ue;
1142
+ var le = Re;
1143
1143
  function ct(e, t, n, r, a) {
1144
1144
  var i = "", o = "", l = Math.floor(a / 2) - 1;
1145
1145
  return r - t > l && (i = " ... ", t = r - l + i.length), n - r > l && (o = " ...", n = r + l - o.length), {
@@ -1151,7 +1151,7 @@ function ct(e, t, n, r, a) {
1151
1151
  function dt(e, t) {
1152
1152
  return te.repeat(" ", t - e.length) + e;
1153
1153
  }
1154
- function Ra(e, t) {
1154
+ function Pa(e, t) {
1155
1155
  if (t = Object.create(t || null), !e.buffer)
1156
1156
  return null;
1157
1157
  t.maxLength || (t.maxLength = 79), typeof t.indent != "number" && (t.indent = 1), typeof t.linesBefore != "number" && (t.linesBefore = 3), typeof t.linesAfter != "number" && (t.linesAfter = 2);
@@ -1181,7 +1181,7 @@ function Ra(e, t) {
1181
1181
  `;
1182
1182
  return l.replace(/\n$/, "");
1183
1183
  }
1184
- var Va = Ra, Da = [
1184
+ var Va = Pa, Da = [
1185
1185
  "kind",
1186
1186
  "multi",
1187
1187
  "resolve",
@@ -1623,7 +1623,7 @@ function Ii(e) {
1623
1623
  function _i(e) {
1624
1624
  return e !== null ? e : [];
1625
1625
  }
1626
- var Pn = new ae("tag:yaml.org,2002:omap", {
1626
+ var Rn = new ae("tag:yaml.org,2002:omap", {
1627
1627
  kind: "sequence",
1628
1628
  resolve: Ii,
1629
1629
  construct: _i
@@ -1647,7 +1647,7 @@ function xi(e) {
1647
1647
  r = o[t], a = Object.keys(r), i[t] = [a[0], r[a[0]]];
1648
1648
  return i;
1649
1649
  }
1650
- var Rn = new ae("tag:yaml.org,2002:pairs", {
1650
+ var Pn = new ae("tag:yaml.org,2002:pairs", {
1651
1651
  kind: "sequence",
1652
1652
  resolve: Ai,
1653
1653
  construct: xi
@@ -1675,11 +1675,11 @@ var Vn = new ae("tag:yaml.org,2002:set", {
1675
1675
  ],
1676
1676
  explicit: [
1677
1677
  Un,
1678
- Pn,
1679
1678
  Rn,
1679
+ Pn,
1680
1680
  Vn
1681
1681
  ]
1682
- }), _e = Object.prototype.hasOwnProperty, Ge = 1, Dn = 2, zn = 3, He = 4, pt = 1, Mi = 2, Wt = 3, Oi = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Ei = /[\x85\u2028\u2029]/, Ni = /[,\[\]\{\}]/, Gn = /^(?:!|!!|![a-z\-]+!)$/i, Hn = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
1682
+ }), _e = Object.prototype.hasOwnProperty, He = 1, Dn = 2, zn = 3, Je = 4, pt = 1, Mi = 2, Wt = 3, Oi = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Ei = /[\x85\u2028\u2029]/, Ni = /[,\[\]\{\}]/, Gn = /^(?:!|!!|![a-z\-]+!)$/i, Hn = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
1683
1683
  function Yt(e) {
1684
1684
  return Object.prototype.toString.call(e);
1685
1685
  }
@@ -1692,7 +1692,7 @@ function $e(e) {
1692
1692
  function ce(e) {
1693
1693
  return e === 9 || e === 32 || e === 10 || e === 13;
1694
1694
  }
1695
- function Fe(e) {
1695
+ function qe(e) {
1696
1696
  return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
1697
1697
  }
1698
1698
  function Fi(e) {
@@ -1716,8 +1716,8 @@ function Bi(e) {
1716
1716
  );
1717
1717
  }
1718
1718
  var Jn = new Array(256), Wn = new Array(256);
1719
- for (var Ee = 0; Ee < 256; Ee++)
1720
- Jn[Ee] = Zt(Ee) ? 1 : 0, Wn[Ee] = Zt(Ee);
1719
+ for (var Ne = 0; Ne < 256; Ne++)
1720
+ Jn[Ne] = Zt(Ne) ? 1 : 0, Wn[Ne] = Zt(Ne);
1721
1721
  function Li(e, t) {
1722
1722
  this.input = e, this.filename = t.filename || null, this.schema = t.schema || St, 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 = [];
1723
1723
  }
@@ -1735,13 +1735,13 @@ function Yn(e, t) {
1735
1735
  function O(e, t) {
1736
1736
  throw Yn(e, t);
1737
1737
  }
1738
- function Je(e, t) {
1738
+ function We(e, t) {
1739
1739
  e.onWarning && e.onWarning.call(null, Yn(e, t));
1740
1740
  }
1741
1741
  var Qt = {
1742
1742
  YAML: function(e, t, n) {
1743
1743
  var r, a, i;
1744
- e.version !== null && O(e, "duplication of %YAML directive"), n.length !== 1 && O(e, "YAML directive accepts exactly one argument"), r = /^([0-9]+)\.([0-9]+)$/.exec(n[0]), r === null && O(e, "ill-formed argument of the YAML directive"), a = parseInt(r[1], 10), i = parseInt(r[2], 10), a !== 1 && O(e, "unacceptable YAML version of the document"), e.version = n[0], e.checkLineBreaks = i < 2, i !== 1 && i !== 2 && Je(e, "unsupported YAML version of the document");
1744
+ e.version !== null && O(e, "duplication of %YAML directive"), n.length !== 1 && O(e, "YAML directive accepts exactly one argument"), r = /^([0-9]+)\.([0-9]+)$/.exec(n[0]), r === null && O(e, "ill-formed argument of the YAML directive"), a = parseInt(r[1], 10), i = parseInt(r[2], 10), a !== 1 && O(e, "unacceptable YAML version of the document"), e.version = n[0], e.checkLineBreaks = i < 2, i !== 1 && i !== 2 && We(e, "unsupported YAML version of the document");
1745
1745
  },
1746
1746
  TAG: function(e, t, n) {
1747
1747
  var r, a;
@@ -1770,7 +1770,7 @@ function Xt(e, t, n, r) {
1770
1770
  for (te.isObject(n) || O(e, "cannot merge mappings; the provided source object is unacceptable"), a = Object.keys(n), o = 0, l = a.length; o < l; o += 1)
1771
1771
  i = a[o], _e.call(t, i) || (t[i] = n[i], r[i] = !0);
1772
1772
  }
1773
- function qe(e, t, n, r, a, i, o, l, s) {
1773
+ function Ke(e, t, n, r, a, i, o, l, s) {
1774
1774
  var u, d;
1775
1775
  if (Array.isArray(a))
1776
1776
  for (a = Array.prototype.slice.call(a), u = 0, d = a.length; u < d; u += 1)
@@ -1808,9 +1808,9 @@ function ee(e, t, n) {
1808
1808
  else
1809
1809
  break;
1810
1810
  }
1811
- return n !== -1 && r !== 0 && e.lineIndent < n && Je(e, "deficient indentation"), r;
1811
+ return n !== -1 && r !== 0 && e.lineIndent < n && We(e, "deficient indentation"), r;
1812
1812
  }
1813
- function nt(e) {
1813
+ function rt(e) {
1814
1814
  var t = e.position, n;
1815
1815
  return n = e.input.charCodeAt(t), !!((n === 45 || n === 46) && n === e.input.charCodeAt(t + 1) && n === e.input.charCodeAt(t + 2) && (t += 3, n = e.input.charCodeAt(t), n === 0 || ce(n)));
1816
1816
  }
@@ -1820,17 +1820,17 @@ function xt(e, t) {
1820
1820
  }
1821
1821
  function Ui(e, t, n) {
1822
1822
  var r, a, i, o, l, s, u, d, c = e.kind, v = e.result, g;
1823
- if (g = e.input.charCodeAt(e.position), ce(g) || Fe(g) || g === 35 || g === 38 || g === 42 || g === 33 || g === 124 || g === 62 || g === 39 || g === 34 || g === 37 || g === 64 || g === 96 || (g === 63 || g === 45) && (a = e.input.charCodeAt(e.position + 1), ce(a) || n && Fe(a)))
1823
+ if (g = e.input.charCodeAt(e.position), ce(g) || qe(g) || g === 35 || g === 38 || g === 42 || g === 33 || g === 124 || g === 62 || g === 39 || g === 34 || g === 37 || g === 64 || g === 96 || (g === 63 || g === 45) && (a = e.input.charCodeAt(e.position + 1), ce(a) || n && qe(a)))
1824
1824
  return !1;
1825
1825
  for (e.kind = "scalar", e.result = "", i = o = e.position, l = !1; g !== 0; ) {
1826
1826
  if (g === 58) {
1827
- if (a = e.input.charCodeAt(e.position + 1), ce(a) || n && Fe(a))
1827
+ if (a = e.input.charCodeAt(e.position + 1), ce(a) || n && qe(a))
1828
1828
  break;
1829
1829
  } else if (g === 35) {
1830
1830
  if (r = e.input.charCodeAt(e.position - 1), ce(r))
1831
1831
  break;
1832
1832
  } else {
1833
- if (e.position === e.lineStart && nt(e) || n && Fe(g))
1833
+ if (e.position === e.lineStart && rt(e) || n && qe(g))
1834
1834
  break;
1835
1835
  if (he(g))
1836
1836
  if (s = e.line, u = e.lineStart, d = e.lineIndent, ee(e, !1, -1), e.lineIndent >= t) {
@@ -1845,7 +1845,7 @@ function Ui(e, t, n) {
1845
1845
  }
1846
1846
  return we(e, i, o, !1), e.result ? !0 : (e.kind = c, e.result = v, !1);
1847
1847
  }
1848
- function Pi(e, t) {
1848
+ function Ri(e, t) {
1849
1849
  var n, r, a;
1850
1850
  if (n = e.input.charCodeAt(e.position), n !== 39)
1851
1851
  return !1;
@@ -1856,10 +1856,10 @@ function Pi(e, t) {
1856
1856
  else
1857
1857
  return !0;
1858
1858
  else
1859
- he(n) ? (we(e, r, a, !0), xt(e, ee(e, !1, t)), r = a = e.position) : e.position === e.lineStart && nt(e) ? O(e, "unexpected end of the document within a single quoted scalar") : (e.position++, a = e.position);
1859
+ he(n) ? (we(e, r, a, !0), xt(e, ee(e, !1, t)), r = a = e.position) : e.position === e.lineStart && rt(e) ? O(e, "unexpected end of the document within a single quoted scalar") : (e.position++, a = e.position);
1860
1860
  O(e, "unexpected end of the stream within a single quoted scalar");
1861
1861
  }
1862
- function Ri(e, t) {
1862
+ function Pi(e, t) {
1863
1863
  var n, r, a, i, o, l;
1864
1864
  if (l = e.input.charCodeAt(e.position), l !== 34)
1865
1865
  return !1;
@@ -1879,12 +1879,12 @@ function Ri(e, t) {
1879
1879
  O(e, "unknown escape sequence");
1880
1880
  n = r = e.position;
1881
1881
  } else
1882
- he(l) ? (we(e, n, r, !0), xt(e, ee(e, !1, t)), n = r = e.position) : e.position === e.lineStart && nt(e) ? O(e, "unexpected end of the document within a double quoted scalar") : (e.position++, r = e.position);
1882
+ he(l) ? (we(e, n, r, !0), xt(e, ee(e, !1, t)), n = r = e.position) : e.position === e.lineStart && rt(e) ? O(e, "unexpected end of the document within a double quoted scalar") : (e.position++, r = e.position);
1883
1883
  }
1884
1884
  O(e, "unexpected end of the stream within a double quoted scalar");
1885
1885
  }
1886
1886
  function Vi(e, t) {
1887
- var n = !0, r, a, i, o = e.tag, l, s = e.anchor, u, d, c, v, g, I = /* @__PURE__ */ Object.create(null), w, _, P, q;
1887
+ var n = !0, r, a, i, o = e.tag, l, s = e.anchor, u, d, c, v, g, I = /* @__PURE__ */ Object.create(null), w, _, R, q;
1888
1888
  if (q = e.input.charCodeAt(e.position), q === 91)
1889
1889
  d = 93, g = !1, l = [];
1890
1890
  else if (q === 123)
@@ -1894,7 +1894,7 @@ function Vi(e, t) {
1894
1894
  for (e.anchor !== null && (e.anchorMap[e.anchor] = l), q = e.input.charCodeAt(++e.position); q !== 0; ) {
1895
1895
  if (ee(e, !0, t), q = e.input.charCodeAt(e.position), q === d)
1896
1896
  return e.position++, e.tag = o, e.anchor = s, e.kind = g ? "mapping" : "sequence", e.result = l, !0;
1897
- n ? q === 44 && O(e, "expected the node content, but found ','") : O(e, "missed comma between flow collection entries"), _ = w = P = null, c = v = !1, q === 63 && (u = e.input.charCodeAt(e.position + 1), ce(u) && (c = v = !0, e.position++, ee(e, !0, t))), r = e.line, a = e.lineStart, i = e.position, Ke(e, t, Ge, !1, !0), _ = e.tag, w = e.result, ee(e, !0, t), q = e.input.charCodeAt(e.position), (v || e.line === r) && q === 58 && (c = !0, q = e.input.charCodeAt(++e.position), ee(e, !0, t), Ke(e, t, Ge, !1, !0), P = e.result), g ? qe(e, l, I, _, w, P, r, a, i) : c ? l.push(qe(e, null, I, _, w, P, r, a, i)) : l.push(w), ee(e, !0, t), q = e.input.charCodeAt(e.position), q === 44 ? (n = !0, q = e.input.charCodeAt(++e.position)) : n = !1;
1897
+ n ? q === 44 && O(e, "expected the node content, but found ','") : O(e, "missed comma between flow collection entries"), _ = w = R = null, c = v = !1, q === 63 && (u = e.input.charCodeAt(e.position + 1), ce(u) && (c = v = !0, e.position++, ee(e, !0, t))), r = e.line, a = e.lineStart, i = e.position, Be(e, t, He, !1, !0), _ = e.tag, w = e.result, ee(e, !0, t), q = e.input.charCodeAt(e.position), (v || e.line === r) && q === 58 && (c = !0, q = e.input.charCodeAt(++e.position), ee(e, !0, t), Be(e, t, He, !1, !0), R = e.result), g ? Ke(e, l, I, _, w, R, r, a, i) : c ? l.push(Ke(e, null, I, _, w, R, r, a, i)) : l.push(w), ee(e, !0, t), q = e.input.charCodeAt(e.position), q === 44 ? (n = !0, q = e.input.charCodeAt(++e.position)) : n = !1;
1898
1898
  }
1899
1899
  O(e, "unexpected end of the stream within a flow collection");
1900
1900
  }
@@ -1954,7 +1954,7 @@ function en(e, t) {
1954
1954
  i.push(null), s = e.input.charCodeAt(e.position);
1955
1955
  continue;
1956
1956
  }
1957
- if (n = e.line, Ke(e, t, zn, !1, !0), i.push(e.result), ee(e, !0, -1), s = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > t) && s !== 0)
1957
+ if (n = e.line, Be(e, t, zn, !1, !0), i.push(e.result), ee(e, !0, -1), s = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > t) && s !== 0)
1958
1958
  O(e, "bad indentation of a sequence entry");
1959
1959
  else if (e.lineIndent < t)
1960
1960
  break;
@@ -1962,35 +1962,35 @@ function en(e, t) {
1962
1962
  return l ? (e.tag = r, e.anchor = a, e.kind = "sequence", e.result = i, !0) : !1;
1963
1963
  }
1964
1964
  function zi(e, t, n) {
1965
- var r, a, i, o, l, s, u = e.tag, d = e.anchor, c = {}, v = /* @__PURE__ */ Object.create(null), g = null, I = null, w = null, _ = !1, P = !1, q;
1965
+ var r, a, i, o, l, s, u = e.tag, d = e.anchor, c = {}, v = /* @__PURE__ */ Object.create(null), g = null, I = null, w = null, _ = !1, R = !1, q;
1966
1966
  if (e.firstTabInLine !== -1)
1967
1967
  return !1;
1968
1968
  for (e.anchor !== null && (e.anchorMap[e.anchor] = c), q = e.input.charCodeAt(e.position); q !== 0; ) {
1969
1969
  if (!_ && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, O(e, "tab characters must not be used in indentation")), r = e.input.charCodeAt(e.position + 1), i = e.line, (q === 63 || q === 58) && ce(r))
1970
- q === 63 ? (_ && (qe(e, c, v, g, I, null, o, l, s), g = I = w = null), P = !0, _ = !0, a = !0) : _ ? (_ = !1, a = !0) : O(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, q = r;
1970
+ q === 63 ? (_ && (Ke(e, c, v, g, I, null, o, l, s), g = I = w = null), R = !0, _ = !0, a = !0) : _ ? (_ = !1, a = !0) : O(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, q = r;
1971
1971
  else {
1972
- if (o = e.line, l = e.lineStart, s = e.position, !Ke(e, n, Dn, !1, !0))
1972
+ if (o = e.line, l = e.lineStart, s = e.position, !Be(e, n, Dn, !1, !0))
1973
1973
  break;
1974
1974
  if (e.line === i) {
1975
1975
  for (q = e.input.charCodeAt(e.position); $e(q); )
1976
1976
  q = e.input.charCodeAt(++e.position);
1977
1977
  if (q === 58)
1978
- q = e.input.charCodeAt(++e.position), ce(q) || O(e, "a whitespace character is expected after the key-value separator within a block mapping"), _ && (qe(e, c, v, g, I, null, o, l, s), g = I = w = null), P = !0, _ = !1, a = !1, g = e.tag, I = e.result;
1979
- else if (P)
1978
+ q = e.input.charCodeAt(++e.position), ce(q) || O(e, "a whitespace character is expected after the key-value separator within a block mapping"), _ && (Ke(e, c, v, g, I, null, o, l, s), g = I = w = null), R = !0, _ = !1, a = !1, g = e.tag, I = e.result;
1979
+ else if (R)
1980
1980
  O(e, "can not read an implicit mapping pair; a colon is missed");
1981
1981
  else
1982
1982
  return e.tag = u, e.anchor = d, !0;
1983
- } else if (P)
1983
+ } else if (R)
1984
1984
  O(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
1985
1985
  else
1986
1986
  return e.tag = u, e.anchor = d, !0;
1987
1987
  }
1988
- if ((e.line === i || e.lineIndent > t) && (_ && (o = e.line, l = e.lineStart, s = e.position), Ke(e, t, He, !0, a) && (_ ? I = e.result : w = e.result), _ || (qe(e, c, v, g, I, w, o, l, s), g = I = w = null), ee(e, !0, -1), q = e.input.charCodeAt(e.position)), (e.line === i || e.lineIndent > t) && q !== 0)
1988
+ if ((e.line === i || e.lineIndent > t) && (_ && (o = e.line, l = e.lineStart, s = e.position), Be(e, t, Je, !0, a) && (_ ? I = e.result : w = e.result), _ || (Ke(e, c, v, g, I, w, o, l, s), g = I = w = null), ee(e, !0, -1), q = e.input.charCodeAt(e.position)), (e.line === i || e.lineIndent > t) && q !== 0)
1989
1989
  O(e, "bad indentation of a mapping entry");
1990
1990
  else if (e.lineIndent < t)
1991
1991
  break;
1992
1992
  }
1993
- return _ && qe(e, c, v, g, I, null, o, l, s), P && (e.tag = u, e.anchor = d, e.kind = "mapping", e.result = c), P;
1993
+ return _ && Ke(e, c, v, g, I, null, o, l, s), R && (e.tag = u, e.anchor = d, e.kind = "mapping", e.result = c), R;
1994
1994
  }
1995
1995
  function Gi(e) {
1996
1996
  var t, n = !1, r = !1, a, i, o;
@@ -2018,7 +2018,7 @@ function Hi(e) {
2018
2018
  var t, n;
2019
2019
  if (n = e.input.charCodeAt(e.position), n !== 38)
2020
2020
  return !1;
2021
- for (e.anchor !== null && O(e, "duplication of an anchor property"), n = e.input.charCodeAt(++e.position), t = e.position; n !== 0 && !ce(n) && !Fe(n); )
2021
+ for (e.anchor !== null && O(e, "duplication of an anchor property"), n = e.input.charCodeAt(++e.position), t = e.position; n !== 0 && !ce(n) && !qe(n); )
2022
2022
  n = e.input.charCodeAt(++e.position);
2023
2023
  return e.position === t && O(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(t, e.position), !0;
2024
2024
  }
@@ -2026,16 +2026,16 @@ function Ji(e) {
2026
2026
  var t, n, r;
2027
2027
  if (r = e.input.charCodeAt(e.position), r !== 42)
2028
2028
  return !1;
2029
- for (r = e.input.charCodeAt(++e.position), t = e.position; r !== 0 && !ce(r) && !Fe(r); )
2029
+ for (r = e.input.charCodeAt(++e.position), t = e.position; r !== 0 && !ce(r) && !qe(r); )
2030
2030
  r = e.input.charCodeAt(++e.position);
2031
2031
  return e.position === t && O(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), _e.call(e.anchorMap, n) || O(e, 'unidentified alias "' + n + '"'), e.result = e.anchorMap[n], ee(e, !0, -1), !0;
2032
2032
  }
2033
- function Ke(e, t, n, r, a) {
2033
+ function Be(e, t, n, r, a) {
2034
2034
  var i, o, l, s = 1, u = !1, d = !1, c, v, g, I, w, _;
2035
- if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, i = o = l = He === n || zn === n, r && ee(e, !0, -1) && (u = !0, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)), s === 1)
2035
+ if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, i = o = l = Je === n || zn === n, r && ee(e, !0, -1) && (u = !0, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)), s === 1)
2036
2036
  for (; Gi(e) || Hi(e); )
2037
2037
  ee(e, !0, -1) ? (u = !0, l = i, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)) : l = !1;
2038
- if (l && (l = u || a), (s === 1 || He === n) && (Ge === n || Dn === n ? w = t : w = t + 1, _ = e.position - e.lineStart, s === 1 ? l && (en(e, _) || zi(e, _, w)) || Vi(e, w) ? d = !0 : (o && Di(e, w) || Pi(e, w) || Ri(e, w) ? d = !0 : Ji(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && O(e, "alias node should not have any properties")) : Ui(e, w, Ge === n) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : s === 0 && (d = l && en(e, _))), e.tag === null)
2038
+ if (l && (l = u || a), (s === 1 || Je === n) && (He === n || Dn === n ? w = t : w = t + 1, _ = e.position - e.lineStart, s === 1 ? l && (en(e, _) || zi(e, _, w)) || Vi(e, w) ? d = !0 : (o && Di(e, w) || Ri(e, w) || Pi(e, w) ? d = !0 : Ji(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && O(e, "alias node should not have any properties")) : Ui(e, w, He === n) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : s === 0 && (d = l && en(e, _))), e.tag === null)
2039
2039
  e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
2040
2040
  else if (e.tag === "?") {
2041
2041
  for (e.result !== null && e.kind !== "scalar" && O(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), c = 0, v = e.implicitTypes.length; c < v; c += 1)
@@ -2076,9 +2076,9 @@ function Wi(e) {
2076
2076
  o = e.input.charCodeAt(++e.position);
2077
2077
  a.push(e.input.slice(n, e.position));
2078
2078
  }
2079
- o !== 0 && At(e), _e.call(Qt, r) ? Qt[r](e, r, a) : Je(e, 'unknown document directive "' + r + '"');
2079
+ o !== 0 && At(e), _e.call(Qt, r) ? Qt[r](e, r, a) : We(e, 'unknown document directive "' + r + '"');
2080
2080
  }
2081
- if (ee(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, ee(e, !0, -1)) : i && O(e, "directives end mark is expected"), Ke(e, e.lineIndent - 1, He, !1, !0), ee(e, !0, -1), e.checkLineBreaks && Ei.test(e.input.slice(t, e.position)) && Je(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && nt(e)) {
2081
+ if (ee(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, ee(e, !0, -1)) : i && O(e, "directives end mark is expected"), Be(e, e.lineIndent - 1, Je, !1, !0), ee(e, !0, -1), e.checkLineBreaks && Ei.test(e.input.slice(t, e.position)) && We(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && rt(e)) {
2082
2082
  e.input.charCodeAt(e.position) === 46 && (e.position += 3, ee(e, !0, -1));
2083
2083
  return;
2084
2084
  }
@@ -2116,7 +2116,7 @@ function Zi(e, t) {
2116
2116
  var Qi = Yi, Xi = Zi, Qn = {
2117
2117
  loadAll: Qi,
2118
2118
  load: Xi
2119
- }, Xn = Object.prototype.toString, er = Object.prototype.hasOwnProperty, $t = 65279, eo = 9, Pe = 10, to = 13, no = 32, ro = 33, ao = 34, ht = 35, io = 37, oo = 38, lo = 39, so = 42, tr = 44, uo = 45, We = 58, co = 61, po = 62, fo = 63, mo = 64, nr = 91, rr = 93, go = 96, ar = 123, ho = 124, ir = 125, oe = {};
2119
+ }, Xn = Object.prototype.toString, er = Object.prototype.hasOwnProperty, $t = 65279, eo = 9, Pe = 10, to = 13, no = 32, ro = 33, ao = 34, ht = 35, io = 37, oo = 38, lo = 39, so = 42, tr = 44, uo = 45, Ye = 58, co = 61, po = 62, fo = 63, mo = 64, nr = 91, rr = 93, go = 96, ar = 123, ho = 124, ir = 125, oe = {};
2120
2120
  oe[0] = "\\0";
2121
2121
  oe[7] = "\\a";
2122
2122
  oe[8] = "\\b";
@@ -2170,9 +2170,9 @@ function ko(e) {
2170
2170
  throw new le("code point within a string may not be greater than 0xFFFFFFFF");
2171
2171
  return "\\" + n + te.repeat("0", r - t.length) + t;
2172
2172
  }
2173
- var Co = 1, Re = 2;
2173
+ var Co = 1, Ve = 2;
2174
2174
  function wo(e) {
2175
- this.schema = e.schema || St, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = te.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = bo(this.schema, e.styles || null), this.sortKeys = e.sortKeys || !1, this.lineWidth = e.lineWidth || 80, this.noRefs = e.noRefs || !1, this.noCompatMode = e.noCompatMode || !1, this.condenseFlow = e.condenseFlow || !1, this.quotingType = e.quotingType === '"' ? Re : Co, this.forceQuotes = e.forceQuotes || !1, this.replacer = typeof e.replacer == "function" ? e.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null;
2175
+ this.schema = e.schema || St, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = te.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = bo(this.schema, e.styles || null), this.sortKeys = e.sortKeys || !1, this.lineWidth = e.lineWidth || 80, this.noRefs = e.noRefs || !1, this.noCompatMode = e.noCompatMode || !1, this.condenseFlow = e.condenseFlow || !1, this.quotingType = e.quotingType === '"' ? Ve : Co, this.forceQuotes = e.forceQuotes || !1, this.replacer = typeof e.replacer == "function" ? e.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null;
2176
2176
  }
2177
2177
  function tn(e, t) {
2178
2178
  for (var n = te.repeat(" ", t), r = 0, a = -1, i = "", o, l = e.length; r < l; )
@@ -2192,32 +2192,32 @@ function Io(e, t) {
2192
2192
  return !0;
2193
2193
  return !1;
2194
2194
  }
2195
- function Ye(e) {
2195
+ function Ze(e) {
2196
2196
  return e === no || e === eo;
2197
2197
  }
2198
- function Ve(e) {
2198
+ function De(e) {
2199
2199
  return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== $t || 65536 <= e && e <= 1114111;
2200
2200
  }
2201
2201
  function nn(e) {
2202
- return Ve(e) && e !== $t && e !== to && e !== Pe;
2202
+ return De(e) && e !== $t && e !== to && e !== Pe;
2203
2203
  }
2204
2204
  function rn(e, t, n) {
2205
- var r = nn(e), a = r && !Ye(e);
2205
+ var r = nn(e), a = r && !Ze(e);
2206
2206
  return (
2207
2207
  // ns-plain-safe
2208
2208
  (n ? (
2209
2209
  // c = flow-in
2210
2210
  r
2211
- ) : r && e !== tr && e !== nr && e !== rr && e !== ar && e !== ir) && e !== ht && !(t === We && !a) || nn(t) && !Ye(t) && e === ht || t === We && a
2211
+ ) : r && e !== tr && e !== nr && e !== rr && e !== ar && e !== ir) && e !== ht && !(t === Ye && !a) || nn(t) && !Ze(t) && e === ht || t === Ye && a
2212
2212
  );
2213
2213
  }
2214
2214
  function _o(e) {
2215
- return Ve(e) && e !== $t && !Ye(e) && e !== uo && e !== fo && e !== We && e !== tr && e !== nr && e !== rr && e !== ar && e !== ir && e !== ht && e !== oo && e !== so && e !== ro && e !== ho && e !== co && e !== po && e !== lo && e !== ao && e !== io && e !== mo && e !== go;
2215
+ return De(e) && e !== $t && !Ze(e) && e !== uo && e !== fo && e !== Ye && e !== tr && e !== nr && e !== rr && e !== ar && e !== ir && e !== ht && e !== oo && e !== so && e !== ro && e !== ho && e !== co && e !== po && e !== lo && e !== ao && e !== io && e !== mo && e !== go;
2216
2216
  }
2217
2217
  function So(e) {
2218
- return !Ye(e) && e !== We;
2218
+ return !Ze(e) && e !== Ye;
2219
2219
  }
2220
- function Le(e, t) {
2220
+ function Ue(e, t) {
2221
2221
  var n = e.charCodeAt(t), r;
2222
2222
  return n >= 55296 && n <= 56319 && t + 1 < e.length && (r = e.charCodeAt(t + 1), r >= 56320 && r <= 57343) ? (n - 55296) * 1024 + r - 56320 + 65536 : n;
2223
2223
  }
@@ -2225,34 +2225,34 @@ function or(e) {
2225
2225
  var t = /^\n* /;
2226
2226
  return t.test(e);
2227
2227
  }
2228
- var lr = 1, vt = 2, sr = 3, ur = 4, Ne = 5;
2228
+ var lr = 1, vt = 2, sr = 3, ur = 4, Fe = 5;
2229
2229
  function Ao(e, t, n, r, a, i, o, l) {
2230
- var s, u = 0, d = null, c = !1, v = !1, g = r !== -1, I = -1, w = _o(Le(e, 0)) && So(Le(e, e.length - 1));
2230
+ var s, u = 0, d = null, c = !1, v = !1, g = r !== -1, I = -1, w = _o(Ue(e, 0)) && So(Ue(e, e.length - 1));
2231
2231
  if (t || o)
2232
2232
  for (s = 0; s < e.length; u >= 65536 ? s += 2 : s++) {
2233
- if (u = Le(e, s), !Ve(u))
2234
- return Ne;
2233
+ if (u = Ue(e, s), !De(u))
2234
+ return Fe;
2235
2235
  w = w && rn(u, d, l), d = u;
2236
2236
  }
2237
2237
  else {
2238
2238
  for (s = 0; s < e.length; u >= 65536 ? s += 2 : s++) {
2239
- if (u = Le(e, s), u === Pe)
2239
+ if (u = Ue(e, s), u === Pe)
2240
2240
  c = !0, g && (v = v || // Foldable line = too long, and not more-indented.
2241
2241
  s - I - 1 > r && e[I + 1] !== " ", I = s);
2242
- else if (!Ve(u))
2243
- return Ne;
2242
+ else if (!De(u))
2243
+ return Fe;
2244
2244
  w = w && rn(u, d, l), d = u;
2245
2245
  }
2246
2246
  v = v || g && s - I - 1 > r && e[I + 1] !== " ";
2247
2247
  }
2248
- return !c && !v ? w && !o && !a(e) ? lr : i === Re ? Ne : vt : n > 9 && or(e) ? Ne : o ? i === Re ? Ne : vt : v ? ur : sr;
2248
+ return !c && !v ? w && !o && !a(e) ? lr : i === Ve ? Fe : vt : n > 9 && or(e) ? Fe : o ? i === Ve ? Fe : vt : v ? ur : sr;
2249
2249
  }
2250
2250
  function xo(e, t, n, r, a) {
2251
2251
  e.dump = function() {
2252
2252
  if (t.length === 0)
2253
- return e.quotingType === Re ? '""' : "''";
2253
+ return e.quotingType === Ve ? '""' : "''";
2254
2254
  if (!e.noCompatMode && (yo.indexOf(t) !== -1 || vo.test(t)))
2255
- return e.quotingType === Re ? '"' + t + '"' : "'" + t + "'";
2255
+ return e.quotingType === Ve ? '"' + t + '"' : "'" + t + "'";
2256
2256
  var i = e.indent * Math.max(1, n), o = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - i), l = r || e.flowLevel > -1 && n >= e.flowLevel;
2257
2257
  function s(u) {
2258
2258
  return Io(e, u);
@@ -2275,7 +2275,7 @@ function xo(e, t, n, r, a) {
2275
2275
  return "|" + an(t, e.indent) + on(tn(t, i));
2276
2276
  case ur:
2277
2277
  return ">" + an(t, e.indent) + on(tn($o(t, o), i));
2278
- case Ne:
2278
+ case Fe:
2279
2279
  return '"' + To(t) + '"';
2280
2280
  default:
2281
2281
  throw new le("impossible error: invalid scalar style");
@@ -2319,7 +2319,7 @@ function ln(e, t) {
2319
2319
  }
2320
2320
  function To(e) {
2321
2321
  for (var t = "", n = 0, r, a = 0; a < e.length; n >= 65536 ? a += 2 : a++)
2322
- n = Le(e, a), r = oe[n], !r && Ve(n) ? (t += e[a], n >= 65536 && (t += e[a + 1])) : t += r || ko(n);
2322
+ n = Ue(e, a), r = oe[n], !r && De(n) ? (t += e[a], n >= 65536 && (t += e[a + 1])) : t += r || ko(n);
2323
2323
  return t;
2324
2324
  }
2325
2325
  function jo(e, t, n) {
@@ -2428,18 +2428,18 @@ function Tt(e, t) {
2428
2428
  throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + t + " instead, which is now safe by default.");
2429
2429
  };
2430
2430
  }
2431
- var Ko = ae, Bo = Sn, Lo = Tn, Uo = Nn, Po = Fn, Ro = St, Vo = Qn.load, Do = Qn.loadAll, zo = qo.dump, Go = le, Ho = {
2431
+ var Ko = ae, Bo = Sn, Lo = Tn, Uo = Nn, Ro = Fn, Po = St, Vo = Qn.load, Do = Qn.loadAll, zo = qo.dump, Go = le, Ho = {
2432
2432
  binary: Un,
2433
2433
  float: En,
2434
2434
  map: $n,
2435
2435
  null: jn,
2436
- pairs: Rn,
2436
+ pairs: Pn,
2437
2437
  set: Vn,
2438
2438
  timestamp: Bn,
2439
2439
  bool: Mn,
2440
2440
  int: On,
2441
2441
  merge: Ln,
2442
- omap: Pn,
2442
+ omap: Rn,
2443
2443
  seq: xn,
2444
2444
  str: An
2445
2445
  }, Jo = Tt("safeLoad", "load"), Wo = Tt("safeLoadAll", "loadAll"), Yo = Tt("safeDump", "dump"), Zo = {
@@ -2447,8 +2447,8 @@ var Ko = ae, Bo = Sn, Lo = Tn, Uo = Nn, Po = Fn, Ro = St, Vo = Qn.load, Do = Qn.
2447
2447
  Schema: Bo,
2448
2448
  FAILSAFE_SCHEMA: Lo,
2449
2449
  JSON_SCHEMA: Uo,
2450
- CORE_SCHEMA: Po,
2451
- DEFAULT_SCHEMA: Ro,
2450
+ CORE_SCHEMA: Ro,
2451
+ DEFAULT_SCHEMA: Po,
2452
2452
  load: Vo,
2453
2453
  loadAll: Do,
2454
2454
  dump: zo,
@@ -2475,7 +2475,7 @@ const Qo = { class: "yaml-config" }, cr = /* @__PURE__ */ W({
2475
2475
  return (r, a) => {
2476
2476
  const i = U("KCodeBlock");
2477
2477
  return y(), E("div", Qo, [
2478
- t.yamlRecord ? (y(), R(i, {
2478
+ t.yamlRecord ? (y(), P(i, {
2479
2479
  key: 0,
2480
2480
  id: "yaml-codeblock",
2481
2481
  code: n.value,
@@ -2544,7 +2544,7 @@ const Qo = { class: "yaml-config" }, cr = /* @__PURE__ */ W({
2544
2544
  "data-testid": `config-card-details-${s}-props`
2545
2545
  }, [
2546
2546
  s !== "basic" ? (y(), E("div", tl, j(s === "advanced" ? m(r)("baseConfigCard.sections.advanced") : m(r)("baseConfigCard.sections.plugin")), 1)) : G("", !0),
2547
- (y(!0), E(pe, null, de(e.propertyCollections[s], (u) => (y(), R(Cn, {
2547
+ (y(!0), E(pe, null, de(e.propertyCollections[s], (u) => (y(), P(Cn, {
2548
2548
  key: u.key,
2549
2549
  item: u
2550
2550
  }, Te({
@@ -2569,25 +2569,25 @@ const Qo = { class: "yaml-config" }, cr = /* @__PURE__ */ W({
2569
2569
  ]), 1032, ["item"]))), 128))
2570
2570
  ], 10, el))), 128))
2571
2571
  ])) : G("", !0),
2572
- e.format === "json" && t.record ? (y(), R(wn, {
2572
+ e.format === "json" && t.record ? (y(), P(wn, {
2573
2573
  key: 1,
2574
2574
  config: t.config,
2575
2575
  "fetcher-url": t.fetcherUrl,
2576
2576
  "json-record": i.value,
2577
2577
  "request-method": "get"
2578
2578
  }, null, 8, ["config", "fetcher-url", "json-record"])) : G("", !0),
2579
- e.format === "yaml" && t.record ? (y(), R(cr, {
2579
+ e.format === "yaml" && t.record ? (y(), P(cr, {
2580
2580
  key: 2,
2581
2581
  "yaml-record": i.value
2582
2582
  }, null, 8, ["yaml-record"])) : G("", !0)
2583
2583
  ], 64));
2584
2584
  }
2585
- }), rl = /* @__PURE__ */ fe(nl, [["__scopeId", "data-v-147a2f70"]]), Se = "24px", rt = (e, t) => {
2585
+ }), rl = /* @__PURE__ */ fe(nl, [["__scopeId", "data-v-147a2f70"]]), Se = "24px", at = (e, t) => {
2586
2586
  const n = e.__vccOpts || e;
2587
2587
  for (const [r, a] of t)
2588
2588
  n[r] = a;
2589
2589
  return n;
2590
- }, al = (e) => (Qe("data-v-2295e0fb"), e = e(), Xe(), e), il = ["aria-hidden"], ol = {
2590
+ }, al = (e) => (Xe("data-v-2295e0fb"), e = e(), et(), e), il = ["aria-hidden"], ol = {
2591
2591
  key: 0,
2592
2592
  "data-testid": "kui-icon-svg-title"
2593
2593
  }, ll = /* @__PURE__ */ al(() => /* @__PURE__ */ F("path", {
@@ -2662,11 +2662,11 @@ const Qo = { class: "yaml-config" }, cr = /* @__PURE__ */ W({
2662
2662
  lineHeight: "0",
2663
2663
  width: n.value
2664
2664
  }));
2665
- return (a, i) => (y(), R(Ae(e.as), {
2665
+ return (a, i) => (y(), P(Ae(e.as), {
2666
2666
  "aria-hidden": e.decorative ? "true" : void 0,
2667
2667
  class: "kui-icon add-icon",
2668
2668
  "data-testid": "kui-icon-wrapper-add-icon",
2669
- style: Ze(r.value)
2669
+ style: Qe(r.value)
2670
2670
  }, {
2671
2671
  default: b(() => [
2672
2672
  (y(), E("svg", {
@@ -2686,7 +2686,7 @@ const Qo = { class: "yaml-config" }, cr = /* @__PURE__ */ W({
2686
2686
  _: 1
2687
2687
  }, 8, ["aria-hidden", "style"]));
2688
2688
  }
2689
- }), ul = /* @__PURE__ */ rt(sl, [["__scopeId", "data-v-2295e0fb"]]), cl = (e) => (Qe("data-v-40a7f387"), e = e(), Xe(), e), dl = ["aria-hidden"], pl = {
2689
+ }), ul = /* @__PURE__ */ at(sl, [["__scopeId", "data-v-2295e0fb"]]), cl = (e) => (Xe("data-v-40a7f387"), e = e(), et(), e), dl = ["aria-hidden"], pl = {
2690
2690
  key: 0,
2691
2691
  "data-testid": "kui-icon-svg-title"
2692
2692
  }, fl = /* @__PURE__ */ cl(() => /* @__PURE__ */ F("path", {
@@ -2761,11 +2761,11 @@ const Qo = { class: "yaml-config" }, cr = /* @__PURE__ */ W({
2761
2761
  lineHeight: "0",
2762
2762
  width: n.value
2763
2763
  }));
2764
- return (a, i) => (y(), R(Ae(e.as), {
2764
+ return (a, i) => (y(), P(Ae(e.as), {
2765
2765
  "aria-hidden": e.decorative ? "true" : void 0,
2766
2766
  class: "kui-icon book-icon",
2767
2767
  "data-testid": "kui-icon-wrapper-book-icon",
2768
- style: Ze(r.value)
2768
+ style: Qe(r.value)
2769
2769
  }, {
2770
2770
  default: b(() => [
2771
2771
  (y(), E("svg", {
@@ -2785,7 +2785,7 @@ const Qo = { class: "yaml-config" }, cr = /* @__PURE__ */ W({
2785
2785
  _: 1
2786
2786
  }, 8, ["aria-hidden", "style"]));
2787
2787
  }
2788
- }), gl = /* @__PURE__ */ rt(ml, [["__scopeId", "data-v-40a7f387"]]), hl = (e) => (Qe("data-v-98c34919"), e = e(), Xe(), e), yl = ["aria-hidden"], vl = {
2788
+ }), gl = /* @__PURE__ */ at(ml, [["__scopeId", "data-v-40a7f387"]]), hl = (e) => (Xe("data-v-98c34919"), e = e(), et(), e), yl = ["aria-hidden"], vl = {
2789
2789
  key: 0,
2790
2790
  "data-testid": "kui-icon-svg-title"
2791
2791
  }, bl = /* @__PURE__ */ hl(() => /* @__PURE__ */ F("path", {
@@ -2860,11 +2860,11 @@ const Qo = { class: "yaml-config" }, cr = /* @__PURE__ */ W({
2860
2860
  lineHeight: "0",
2861
2861
  width: n.value
2862
2862
  }));
2863
- return (a, i) => (y(), R(Ae(e.as), {
2863
+ return (a, i) => (y(), P(Ae(e.as), {
2864
2864
  "aria-hidden": e.decorative ? "true" : void 0,
2865
2865
  class: "kui-icon chevron-down-icon",
2866
2866
  "data-testid": "kui-icon-wrapper-chevron-down-icon",
2867
- style: Ze(r.value)
2867
+ style: Qe(r.value)
2868
2868
  }, {
2869
2869
  default: b(() => [
2870
2870
  (y(), E("svg", {
@@ -2884,7 +2884,7 @@ const Qo = { class: "yaml-config" }, cr = /* @__PURE__ */ W({
2884
2884
  _: 1
2885
2885
  }, 8, ["aria-hidden", "style"]));
2886
2886
  }
2887
- }), Cl = /* @__PURE__ */ rt(kl, [["__scopeId", "data-v-98c34919"]]), wl = (e) => (Qe("data-v-19f4cbbe"), e = e(), Xe(), e), Il = ["aria-hidden"], _l = {
2887
+ }), Cl = /* @__PURE__ */ at(kl, [["__scopeId", "data-v-98c34919"]]), wl = (e) => (Xe("data-v-19f4cbbe"), e = e(), et(), e), Il = ["aria-hidden"], _l = {
2888
2888
  key: 0,
2889
2889
  "data-testid": "kui-icon-svg-title"
2890
2890
  }, Sl = /* @__PURE__ */ wl(() => /* @__PURE__ */ F("path", {
@@ -2959,11 +2959,11 @@ const Qo = { class: "yaml-config" }, cr = /* @__PURE__ */ W({
2959
2959
  lineHeight: "0",
2960
2960
  width: n.value
2961
2961
  }));
2962
- return (a, i) => (y(), R(Ae(e.as), {
2962
+ return (a, i) => (y(), P(Ae(e.as), {
2963
2963
  "aria-hidden": e.decorative ? "true" : void 0,
2964
2964
  class: "kui-icon close-icon",
2965
2965
  "data-testid": "kui-icon-wrapper-close-icon",
2966
- style: Ze(r.value)
2966
+ style: Qe(r.value)
2967
2967
  }, {
2968
2968
  default: b(() => [
2969
2969
  (y(), E("svg", {
@@ -2983,7 +2983,7 @@ const Qo = { class: "yaml-config" }, cr = /* @__PURE__ */ W({
2983
2983
  _: 1
2984
2984
  }, 8, ["aria-hidden", "style"]));
2985
2985
  }
2986
- }), xl = /* @__PURE__ */ rt(Al, [["__scopeId", "data-v-19f4cbbe"]]), $l = {
2986
+ }), xl = /* @__PURE__ */ at(Al, [["__scopeId", "data-v-19f4cbbe"]]), $l = {
2987
2987
  class: "config-card-title",
2988
2988
  "data-testid": "config-card-title"
2989
2989
  }, Tl = { class: "config-card-actions" }, jl = ["href"], Ml = { class: "config-card-details-section" }, Ol = /* @__PURE__ */ W({
@@ -3019,7 +3019,7 @@ const Qo = { class: "yaml-config" }, cr = /* @__PURE__ */ W({
3019
3019
  * Value should NOT contain config.apiBaseUrl, as we auto include this. Typically this will just an entry from
3020
3020
  * the endpoints file.
3021
3021
  *
3022
- * ex. `/api/runtime_groups/{controlPlaneId}/snis/{id}`
3022
+ * ex. `/v2/control-planes/{controlPlaneId}/core-entities/snis/{id}`
3023
3023
  */
3024
3024
  fetchUrl: {
3025
3025
  type: String,
@@ -3117,7 +3117,7 @@ const Qo = { class: "yaml-config" }, cr = /* @__PURE__ */ W({
3117
3117
  // the last property displayed
3118
3118
  section: ue.Basic
3119
3119
  }
3120
- }, g = N(!1), I = N(!1), w = N(""), _ = N({}), P = x(() => {
3120
+ }, g = N(!1), I = N(!1), w = N(""), _ = N({}), R = x(() => {
3121
3121
  var f, L, k;
3122
3122
  if (!_.value)
3123
3123
  return [];
@@ -3170,9 +3170,9 @@ const Qo = { class: "yaml-config" }, cr = /* @__PURE__ */ W({
3170
3170
  }), Z = x(() => {
3171
3171
  var f, L, k, p;
3172
3172
  return {
3173
- basic: (f = P.value) == null ? void 0 : f.filter((K) => K.section === ue.Basic),
3174
- advanced: (L = P.value) == null ? void 0 : L.filter((K) => K.section === ue.Advanced),
3175
- plugin: (p = q.value) == null ? void 0 : p.concat((k = P.value) == null ? void 0 : k.filter((K) => K.section === ue.Plugin))
3173
+ basic: (f = R.value) == null ? void 0 : f.filter((K) => K.section === ue.Basic),
3174
+ advanced: (L = R.value) == null ? void 0 : L.filter((K) => K.section === ue.Advanced),
3175
+ plugin: (p = q.value) == null ? void 0 : p.concat((k = R.value) == null ? void 0 : k.filter((K) => K.section === ue.Plugin))
3176
3176
  };
3177
3177
  }), C = x(() => {
3178
3178
  const f = [];
@@ -3206,7 +3206,7 @@ const Qo = { class: "yaml-config" }, cr = /* @__PURE__ */ W({
3206
3206
  }
3207
3207
  }), (f, L) => {
3208
3208
  const k = U("KLabel"), p = U("KSelect"), K = U("KButton"), M = U("KSkeleton"), S = U("KEmptyState"), A = U("KCard");
3209
- return y(), R(A, {
3209
+ return y(), P(A, {
3210
3210
  class: "kong-ui-entity-base-config-card",
3211
3211
  "title-tag": e.titleTag
3212
3212
  }, Te({
@@ -3227,7 +3227,7 @@ const Qo = { class: "yaml-config" }, cr = /* @__PURE__ */ W({
3227
3227
  items: u,
3228
3228
  onChange: c
3229
3229
  }),
3230
- e.configCardDoc ? (y(), R(K, {
3230
+ e.configCardDoc ? (y(), P(K, {
3231
3231
  key: 0,
3232
3232
  appearance: "tertiary",
3233
3233
  class: "book-icon",
@@ -3247,12 +3247,12 @@ const Qo = { class: "yaml-config" }, cr = /* @__PURE__ */ W({
3247
3247
  ])
3248
3248
  ]),
3249
3249
  default: b(() => [
3250
- g.value ? (y(), R(M, {
3250
+ g.value ? (y(), P(M, {
3251
3251
  key: 0,
3252
3252
  "data-testid": "config-card-loader",
3253
3253
  "table-columns": 2,
3254
3254
  type: "table"
3255
- })) : I.value ? (y(), R(S, {
3255
+ })) : I.value ? (y(), P(S, {
3256
3256
  key: 1,
3257
3257
  "data-testid": "config-card-fetch-error",
3258
3258
  "icon-variant": "error"
@@ -3299,7 +3299,7 @@ const Qo = { class: "yaml-config" }, cr = /* @__PURE__ */ W({
3299
3299
  ]), 1032, ["title-tag"]);
3300
3300
  };
3301
3301
  }
3302
- }), El = /* @__PURE__ */ fe(Ol, [["__scopeId", "data-v-7c5b607d"]]), Nl = {
3302
+ }), El = /* @__PURE__ */ fe(Ol, [["__scopeId", "data-v-3c3b1eb5"]]), Nl = {
3303
3303
  class: "form-actions",
3304
3304
  "data-testid": "form-actions"
3305
3305
  }, Fl = /* @__PURE__ */ W({
@@ -3323,7 +3323,7 @@ const Qo = { class: "yaml-config" }, cr = /* @__PURE__ */ W({
3323
3323
  * the endpoints file.
3324
3324
  * Required if `editId` is specified.
3325
3325
  *
3326
- * ex. `/api/runtime_groups/{controlPlaneId}/snis/{id}`
3326
+ * ex. `/v2/control-planes/{controlPlaneId}/core-entities/snis/{id}`
3327
3327
  */
3328
3328
  fetchUrl: {
3329
3329
  type: String,
@@ -3366,8 +3366,8 @@ const Qo = { class: "yaml-config" }, cr = /* @__PURE__ */ W({
3366
3366
  }), w = () => {
3367
3367
  g.value = !g.value;
3368
3368
  }, _ = () => {
3369
- a.config.cancelRoute ? i.push(a.config.cancelRoute) : P();
3370
- }, P = () => {
3369
+ a.config.cancelRoute ? i.push(a.config.cancelRoute) : R();
3370
+ }, R = () => {
3371
3371
  r("cancel");
3372
3372
  }, q = () => {
3373
3373
  v.value || r("submit");
@@ -3397,12 +3397,12 @@ const Qo = { class: "yaml-config" }, cr = /* @__PURE__ */ W({
3397
3397
  }
3398
3398
  }), (C, h) => {
3399
3399
  const f = U("KSkeleton"), L = U("KEmptyState"), k = U("KAlert"), p = U("KButton"), K = U("KTabs"), M = U("KSlideout"), S = U("KCard");
3400
- return y(), R(S, { class: "kong-ui-entity-base-form" }, {
3400
+ return y(), P(S, { class: "kong-ui-entity-base-form" }, {
3401
3401
  default: b(() => [
3402
- u.value ? (y(), R(f, {
3402
+ u.value ? (y(), P(f, {
3403
3403
  key: 0,
3404
3404
  type: "form"
3405
- })) : d.value ? (y(), R(L, {
3405
+ })) : d.value ? (y(), P(L, {
3406
3406
  key: 1,
3407
3407
  "action-button-text": m(o)("baseForm.actions.back"),
3408
3408
  "data-testid": "form-fetch-error",
@@ -3416,11 +3416,11 @@ const Qo = { class: "yaml-config" }, cr = /* @__PURE__ */ W({
3416
3416
  }, 8, ["action-button-text"])) : (y(), E("form", {
3417
3417
  key: 2,
3418
3418
  "data-testid": "form-content",
3419
- onReset: ft(P, ["prevent"]),
3419
+ onReset: ft(R, ["prevent"]),
3420
3420
  onSubmit: ft(q, ["prevent"])
3421
3421
  }, [
3422
3422
  Q(C.$slots, "default", {}, void 0, !0),
3423
- e.errorMessage ? (y(), R(k, {
3423
+ e.errorMessage ? (y(), P(k, {
3424
3424
  key: 0,
3425
3425
  appearance: "danger",
3426
3426
  "data-testid": "form-error",
@@ -3501,7 +3501,7 @@ const Qo = { class: "yaml-config" }, cr = /* @__PURE__ */ W({
3501
3501
  });
3502
3502
  };
3503
3503
  }
3504
- }), ql = /* @__PURE__ */ fe(Fl, [["__scopeId", "data-v-1d932d98"]]), Kl = {
3504
+ }), ql = /* @__PURE__ */ fe(Fl, [["__scopeId", "data-v-4c62c7d5"]]), Kl = {
3505
3505
  key: 0,
3506
3506
  "data-testid": "first-col"
3507
3507
  }, Bl = /* @__PURE__ */ W({
@@ -3525,15 +3525,15 @@ const Qo = { class: "yaml-config" }, cr = /* @__PURE__ */ W({
3525
3525
  return ((w = n.value) == null ? void 0 : w.querySelector('[data-testid="first-col"]')) || null;
3526
3526
  }), a = x(() => {
3527
3527
  var w, _;
3528
- const P = (w = t.rowEl) == null ? void 0 : w.querySelectorAll("td");
3529
- return P ? ((_ = P[0]) == null ? void 0 : _.getAttribute("data-testid")) === t.keyName : !1;
3528
+ const R = (w = t.rowEl) == null ? void 0 : w.querySelectorAll("td");
3529
+ return R ? ((_ = R[0]) == null ? void 0 : _.getAttribute("data-testid")) === t.keyName : !1;
3530
3530
  });
3531
3531
  let i;
3532
3532
  const o = () => {
3533
3533
  i && (i.disconnect(), i = void 0);
3534
3534
  }, l = () => {
3535
- var w, _, P;
3536
- u.value = ((w = r.value) == null ? void 0 : w.getBoundingClientRect().width) || 0, d.value = ((_ = n.value) == null ? void 0 : _.clientWidth) || 0, c.value = ((P = s.value) == null ? void 0 : P.innerText) || "";
3535
+ var w, _, R;
3536
+ u.value = ((w = r.value) == null ? void 0 : w.getBoundingClientRect().width) || 0, d.value = ((_ = n.value) == null ? void 0 : _.clientWidth) || 0, c.value = ((R = s.value) == null ? void 0 : R.innerText) || "";
3537
3537
  }, s = N({}), u = N(0), d = N(0), c = N(""), v = x(() => [r.value, n.value]), g = ve(
3538
3538
  v,
3539
3539
  (w) => {
@@ -3554,14 +3554,14 @@ const Qo = { class: "yaml-config" }, cr = /* @__PURE__ */ W({
3554
3554
  }), Ir(() => {
3555
3555
  g();
3556
3556
  }), (w, _) => {
3557
- const P = U("KTooltip");
3557
+ const R = U("KTooltip");
3558
3558
  return y(), E("span", {
3559
3559
  ref_key: "contentRef",
3560
3560
  ref: s,
3561
3561
  class: "content-wrapper"
3562
3562
  }, [
3563
3563
  a.value ? (y(), E("span", Kl, [
3564
- T(P, {
3564
+ T(R, {
3565
3565
  "max-width": "300",
3566
3566
  placement: "bottomStart",
3567
3567
  text: I.value ? c.value : ""
@@ -3575,10 +3575,10 @@ const Qo = { class: "yaml-config" }, cr = /* @__PURE__ */ W({
3575
3575
  ], 512);
3576
3576
  };
3577
3577
  }
3578
- }), Ll = /* @__PURE__ */ fe(Bl, [["__scopeId", "data-v-c4379fd4"]]), Ul = { class: "toolbar-container" }, Pl = {
3578
+ }), Ll = /* @__PURE__ */ fe(Bl, [["__scopeId", "data-v-c4379fd4"]]), Ul = { class: "toolbar-container" }, Rl = {
3579
3579
  key: 0,
3580
3580
  class: "toolbar-button-container"
3581
- }, Rl = ["data-testid"], Vl = /* @__PURE__ */ W({
3581
+ }, Pl = ["data-testid"], Vl = /* @__PURE__ */ W({
3582
3582
  __name: "EntityBaseTable",
3583
3583
  props: {
3584
3584
  // table header configuration
@@ -3741,18 +3741,18 @@ const Qo = { class: "yaml-config" }, cr = /* @__PURE__ */ W({
3741
3741
  r("click:row", f);
3742
3742
  }), _ = (h) => {
3743
3743
  r("sort", h);
3744
- }, { setTablePreferences: P, getTablePreferences: q } = Nr(), Z = x(() => {
3744
+ }, { setTablePreferences: R, getTablePreferences: q } = Nr(), Z = x(() => {
3745
3745
  const h = q(n.preferencesStorageKey);
3746
3746
  return {
3747
3747
  ...n.initialFetcherParams,
3748
3748
  ...h
3749
3749
  };
3750
3750
  }), C = (h) => {
3751
- n.preferencesStorageKey && P(n.preferencesStorageKey, h);
3751
+ n.preferencesStorageKey && R(n.preferencesStorageKey, h);
3752
3752
  };
3753
3753
  return (h, f) => {
3754
3754
  const L = U("KIcon"), k = U("KButton"), p = U("KDropdown"), K = U("KTable"), M = U("KCard");
3755
- return y(), R(M, {
3755
+ return y(), P(M, {
3756
3756
  class: "kong-ui-entity-base-table",
3757
3757
  title: e.title,
3758
3758
  "title-tag": e.titleTag
@@ -3791,7 +3791,7 @@ const Qo = { class: "yaml-config" }, cr = /* @__PURE__ */ W({
3791
3791
  toolbar: b(({ state: S }) => [
3792
3792
  ke(F("div", Ul, [
3793
3793
  Q(h.$slots, "toolbar-filter", {}, void 0, !0),
3794
- h.$slots["toolbar-button"] ? (y(), E("div", Pl, [
3794
+ h.$slots["toolbar-button"] ? (y(), E("div", Rl, [
3795
3795
  Q(h.$slots, "toolbar-button", {}, void 0, !0)
3796
3796
  ])) : G("", !0)
3797
3797
  ], 512), [
@@ -3832,7 +3832,7 @@ const Qo = { class: "yaml-config" }, cr = /* @__PURE__ */ W({
3832
3832
  ]),
3833
3833
  _: 2
3834
3834
  }, 1032, ["width"])
3835
- ], 8, Rl)
3835
+ ], 8, Pl)
3836
3836
  ]),
3837
3837
  _: 2
3838
3838
  }, [
@@ -3921,7 +3921,7 @@ const Qo = { class: "yaml-config" }, cr = /* @__PURE__ */ W({
3921
3921
  };
3922
3922
  return (s, u) => {
3923
3923
  const d = U("KAlert"), c = U("KPrompt");
3924
- return y(), R(c, {
3924
+ return y(), P(c, {
3925
3925
  "action-button-appearance": "danger",
3926
3926
  "action-button-disabled": e.actionPending,
3927
3927
  "action-button-text": "Yes, delete",
@@ -4066,7 +4066,7 @@ const Qo = { class: "yaml-config" }, cr = /* @__PURE__ */ W({
4066
4066
  }, _ = (C) => {
4067
4067
  var h, f;
4068
4068
  return ((f = (h = r.config.schema) == null ? void 0 : h[C]) == null ? void 0 : f.type) ?? "text";
4069
- }, P = (C) => {
4069
+ }, R = (C) => {
4070
4070
  o.value = {
4071
4071
  ...o.value,
4072
4072
  [C]: ""
@@ -4079,7 +4079,7 @@ const Qo = { class: "yaml-config" }, cr = /* @__PURE__ */ W({
4079
4079
  };
4080
4080
  return (C, h) => {
4081
4081
  const f = U("KInput"), L = U("KButton"), k = U("KSelect");
4082
- return e.config.isExactMatch ? (y(), R(f, {
4082
+ return e.config.isExactMatch ? (y(), P(f, {
4083
4083
  key: 0,
4084
4084
  autocomplete: "off",
4085
4085
  class: "kong-ui-entity-filter-input",
@@ -4147,14 +4147,14 @@ const Qo = { class: "yaml-config" }, cr = /* @__PURE__ */ W({
4147
4147
  class: "menu-item-label",
4148
4148
  for: I(p.value)
4149
4149
  }, j(m(n)("filter.fieldLabel")), 9, os),
4150
- ((M = (K = e.config.schema) == null ? void 0 : K[p.value]) == null ? void 0 : M.type) === "select" ? (y(), R(k, {
4150
+ ((M = (K = e.config.schema) == null ? void 0 : K[p.value]) == null ? void 0 : M.type) === "select" ? (y(), P(k, {
4151
4151
  key: 0,
4152
4152
  id: I(p.value),
4153
4153
  modelValue: o.value[p.value],
4154
4154
  "onUpdate:modelValue": (S) => o.value[p.value] = S,
4155
4155
  items: w(p.value),
4156
4156
  placeholder: m(n)("filter.selectPlaceholder")
4157
- }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (y(), R(f, {
4157
+ }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (y(), P(f, {
4158
4158
  key: 1,
4159
4159
  id: I(p.value),
4160
4160
  modelValue: o.value[p.value],
@@ -4182,7 +4182,7 @@ const Qo = { class: "yaml-config" }, cr = /* @__PURE__ */ W({
4182
4182
  appearance: "tertiary",
4183
4183
  "data-testid": "clear-filter",
4184
4184
  size: "small",
4185
- onClick: (S) => P(p.value)
4185
+ onClick: (S) => R(p.value)
4186
4186
  }, {
4187
4187
  default: b(() => [
4188
4188
  H(j(m(n)("filter.clearButtonText")), 1)
@@ -4212,7 +4212,7 @@ const Qo = { class: "yaml-config" }, cr = /* @__PURE__ */ W({
4212
4212
  ]));
4213
4213
  };
4214
4214
  }
4215
- }), cs = /* @__PURE__ */ fe(us, [["__scopeId", "data-v-8cfadde3"]]), De = /* @__PURE__ */ W({
4215
+ }), cs = /* @__PURE__ */ fe(us, [["__scopeId", "data-v-8cfadde3"]]), ze = /* @__PURE__ */ W({
4216
4216
  __name: "PermissionsWrapper",
4217
4217
  props: {
4218
4218
  /**
@@ -4286,7 +4286,7 @@ const Qo = { class: "yaml-config" }, cr = /* @__PURE__ */ W({
4286
4286
  key: 0,
4287
4287
  class: Ie(["form-section-info", { sticky: e.stickyInfoHeader }])
4288
4288
  }, [
4289
- e.title ? (y(), R(Ae(e.titleTag), {
4289
+ e.title ? (y(), P(Ae(e.titleTag), {
4290
4290
  key: 0,
4291
4291
  class: "form-section-title"
4292
4292
  }, {
@@ -4334,7 +4334,7 @@ const Qo = { class: "yaml-config" }, cr = /* @__PURE__ */ W({
4334
4334
  emits: ["cancel", "add:success", "add:partial-success", "error"],
4335
4335
  setup(e, { emit: t }) {
4336
4336
  var S;
4337
- const { i18n: { t: n } } = et.useI18n(), r = e, a = t, { axiosInstance: i } = jt({
4337
+ const { i18n: { t: n } } = tt.useI18n(), r = e, a = t, { axiosInstance: i } = jt({
4338
4338
  headers: (S = r.config) == null ? void 0 : S.requestHeaders
4339
4339
  }), o = N([]), {
4340
4340
  debouncedQueryChange: l,
@@ -4351,7 +4351,7 @@ const Qo = { class: "yaml-config" }, cr = /* @__PURE__ */ W({
4351
4351
  fetchedItemsKey: "data",
4352
4352
  searchKeys: ["username", "id"]
4353
4353
  }
4354
- ), g = (A) => A, I = x(() => d.value ? n("consumers.errors.general") : ""), w = N(0), _ = x(() => u.value === void 0), P = x(() => v.value.map((A) => ({
4354
+ ), g = (A) => A, I = x(() => d.value ? n("consumers.errors.general") : ""), w = N(0), _ = x(() => u.value === void 0), R = x(() => v.value.map((A) => ({
4355
4355
  label: A.username || A.customId,
4356
4356
  value: A.id,
4357
4357
  selected: o.value.includes(A.id),
@@ -4401,13 +4401,13 @@ const Qo = { class: "yaml-config" }, cr = /* @__PURE__ */ W({
4401
4401
  return (V = B.reason) == null ? void 0 : V.message;
4402
4402
  }).filter(Boolean);
4403
4403
  };
4404
- return ve(P, () => {
4404
+ return ve(R, () => {
4405
4405
  w.value++;
4406
4406
  }, { immediate: !0, deep: !0 }), ve(() => r.visible, () => {
4407
4407
  r.visible && c();
4408
4408
  }, { immediate: !0 }), (A, B) => {
4409
4409
  const V = U("KMultiselect"), D = U("KAlert"), ie = U("KPrompt");
4410
- return y(), R(ie, {
4410
+ return y(), P(ie, {
4411
4411
  "action-button-disabled": h.value,
4412
4412
  class: "kong-ui-entities-add-consumers-modal",
4413
4413
  "data-testid": "add-consumer-modal",
@@ -4425,7 +4425,7 @@ const Qo = { class: "yaml-config" }, cr = /* @__PURE__ */ W({
4425
4425
  autosuggest: "",
4426
4426
  "data-testid": "add-consumers-multiselect",
4427
4427
  "dropdown-footer-text": _.value ? m(n)("consumers.consumer_groups.add.footer") : void 0,
4428
- items: P.value,
4428
+ items: R.value,
4429
4429
  label: m(n)("consumers.consumer_groups.add.consumers_label"),
4430
4430
  loading: m(s),
4431
4431
  placeholder: m(n)("consumers.consumer_groups.add.consumer_placeholder"),
@@ -4445,7 +4445,7 @@ const Qo = { class: "yaml-config" }, cr = /* @__PURE__ */ W({
4445
4445
  default: b(() => [
4446
4446
  F("p", null, j(m(n)("consumers.errors.add")), 1),
4447
4447
  K.value.length ? (y(), E("ul", As, [
4448
- (y(!0), E(pe, null, de(K.value, (me, at) => (y(), E("li", { key: at }, j(me), 1))), 128))
4448
+ (y(!0), E(pe, null, de(K.value, (me, it) => (y(), E("li", { key: it }, j(me), 1))), 128))
4449
4449
  ])) : G("", !0),
4450
4450
  F("div", null, j(f.value || I.value), 1)
4451
4451
  ]),
@@ -4510,7 +4510,7 @@ const Qo = { class: "yaml-config" }, cr = /* @__PURE__ */ W({
4510
4510
  emits: ["error", "copy:success", "copy:error", "delete:success", "add:success", "remove:success"],
4511
4511
  setup(e, { emit: t }) {
4512
4512
  var Bt;
4513
- const n = t, r = e, { i18nT: a, i18n: { t: i } } = et.useI18n(), o = wt(), { axiosInstance: l } = jt({
4513
+ const n = t, r = e, { i18nT: a, i18n: { t: i } } = tt.useI18n(), o = wt(), { axiosInstance: l } = jt({
4514
4514
  headers: (Bt = r.config) == null ? void 0 : Bt.requestHeaders
4515
4515
  }), s = N(1), u = x(() => !!r.config.consumerGroupId), d = x(
4516
4516
  () => u.value ? "kong-ui-entities-consumers-list-in-group-page" : "kong-ui-entities-consumers-list"
@@ -4524,7 +4524,7 @@ const Qo = { class: "yaml-config" }, cr = /* @__PURE__ */ W({
4524
4524
  var z, X, se, ge;
4525
4525
  let $ = `${r.config.apiBaseUrl}${je.list[r.config.app][u.value ? "forConsumerGroup" : "all"]}`;
4526
4526
  return r.config.app === "konnect" ? $ = $.replace(/{controlPlaneId}/gi, ((z = r.config) == null ? void 0 : z.controlPlaneId) || "").replace(/{consumerGroupId}/gi, ((X = r.config) == null ? void 0 : X.consumerGroupId) || "") : r.config.app === "kongManager" && ($ = $.replace(/\/{workspace}/gi, (se = r.config) != null && se.workspace ? `/${r.config.workspace}` : "").replace(/{consumerGroupId}/gi, ((ge = r.config) == null ? void 0 : ge.consumerGroupId) || "")), $;
4527
- }), _ = N(""), P = x(() => {
4527
+ }), _ = N(""), R = x(() => {
4528
4528
  const $ = r.config.app === "konnect" || r.config.isExactMatch;
4529
4529
  return $ ? {
4530
4530
  isExactMatch: $,
@@ -4578,7 +4578,7 @@ const Qo = { class: "yaml-config" }, cr = /* @__PURE__ */ W({
4578
4578
  }), A = ($) => ({
4579
4579
  label: i("consumers.actions.edit"),
4580
4580
  to: r.config.getEditRoute($)
4581
- }), B = N(void 0), V = N(!1), D = N(!1), ie = N(""), me = ys(r.config, w.value), at = ($) => {
4581
+ }), B = N(void 0), V = N(!1), D = N(!1), ie = N(""), me = ys(r.config, w.value), it = ($) => {
4582
4582
  B.value = $, V.value = !0;
4583
4583
  }, dr = () => {
4584
4584
  V.value = !1;
@@ -4594,18 +4594,18 @@ const Qo = { class: "yaml-config" }, cr = /* @__PURE__ */ W({
4594
4594
  D.value = !1;
4595
4595
  }
4596
4596
  }
4597
- }, it = N(!1), Ot = () => {
4598
- it.value = !0;
4597
+ }, ot = N(!1), Ot = () => {
4598
+ ot.value = !0;
4599
4599
  }, Et = () => {
4600
- it.value = !1;
4600
+ ot.value = !1;
4601
4601
  }, Nt = ($, z) => {
4602
4602
  z || Et(), s.value++, n("add:success", $);
4603
4603
  }, fr = () => {
4604
4604
  u.value && Ot();
4605
- }, ye = N(void 0), ot = N(!1), mr = N(""), gr = ($) => {
4606
- ye.value = $, ot.value = !0;
4605
+ }, ye = N(void 0), lt = N(!1), mr = N(""), gr = ($) => {
4606
+ ye.value = $, lt.value = !0;
4607
4607
  }, Ft = () => {
4608
- ot.value = !1, ye.value = void 0;
4608
+ lt.value = !1, ye.value = void 0;
4609
4609
  }, hr = x(() => {
4610
4610
  var z, X, se, ge;
4611
4611
  let $ = `${r.config.apiBaseUrl}${je.list[r.config.app].oneForConsumerGroup}`;
@@ -4633,23 +4633,23 @@ const Qo = { class: "yaml-config" }, cr = /* @__PURE__ */ W({
4633
4633
  }
4634
4634
  k.value = null;
4635
4635
  });
4636
- const lt = N({
4636
+ const st = N({
4637
4637
  ctaPath: u.value ? void 0 : r.config.createRoute,
4638
4638
  ctaText: void 0,
4639
4639
  message: `${i("consumers.list.empty_state.description")}${r.config.additionMessageForEmptyState ? ` ${r.config.additionMessageForEmptyState}` : ""}`,
4640
4640
  title: i("consumers.title")
4641
4641
  });
4642
4642
  return kt(async () => {
4643
- await r.canCreate() && (lt.value.title = u.value ? i("consumers.list.empty_state.title_for_consumer_group") : i("consumers.list.empty_state.title"), lt.value.ctaText = u.value ? i("consumers.actions.add_consumer") : i("consumers.actions.create"));
4643
+ await r.canCreate() && (st.value.title = u.value ? i("consumers.list.empty_state.title_for_consumer_group") : i("consumers.list.empty_state.title"), st.value.ctaText = u.value ? i("consumers.actions.add_consumer") : i("consumers.actions.create"));
4644
4644
  }), ($, z) => {
4645
- const X = U("KButton"), se = U("KBadge"), ge = U("KTruncate"), Be = U("KDropdownItem"), Lt = U("KClipboardProvider"), vr = U("KPrompt");
4645
+ const X = U("KButton"), se = U("KBadge"), ge = U("KTruncate"), Le = U("KDropdownItem"), Lt = U("KClipboardProvider"), vr = U("KPrompt");
4646
4646
  return y(), E("div", Ts, [
4647
4647
  T(m(Dl), {
4648
4648
  "cache-identifier": e.cacheIdentifier,
4649
4649
  "disable-pagination": u.value && !e.config.paginatedEndpoint,
4650
4650
  "disable-pagination-page-jump": "",
4651
4651
  "disable-sorting": c.value,
4652
- "empty-state-options": lt.value,
4652
+ "empty-state-options": st.value,
4653
4653
  "enable-entity-actions": "",
4654
4654
  "error-message": k.value,
4655
4655
  fetcher: m(Z),
@@ -4666,19 +4666,19 @@ const Qo = { class: "yaml-config" }, cr = /* @__PURE__ */ W({
4666
4666
  onSort: f
4667
4667
  }, {
4668
4668
  "toolbar-filter": b(() => [
4669
- u.value ? G("", !0) : (y(), R(m(cs), {
4669
+ u.value ? G("", !0) : (y(), P(m(cs), {
4670
4670
  key: 0,
4671
4671
  modelValue: _.value,
4672
4672
  "onUpdate:modelValue": z[0] || (z[0] = (J) => _.value = J),
4673
- config: P.value
4673
+ config: R.value
4674
4674
  }, null, 8, ["modelValue", "config"]))
4675
4675
  ]),
4676
4676
  "toolbar-button": b(() => [
4677
- (y(), R(Ae(e.useActionOutside ? "Teleport" : "div"), {
4677
+ (y(), P(Ae(e.useActionOutside ? "Teleport" : "div"), {
4678
4678
  to: e.useActionOutside ? "#kong-ui-app-page-header-action-button" : void 0
4679
4679
  }, {
4680
4680
  default: b(() => [
4681
- T(m(De), {
4681
+ T(m(ze), {
4682
4682
  "auth-function": () => e.canCreate()
4683
4683
  }, {
4684
4684
  default: b(() => [
@@ -4711,9 +4711,9 @@ const Qo = { class: "yaml-config" }, cr = /* @__PURE__ */ W({
4711
4711
  H(j(L(J)), 1)
4712
4712
  ]),
4713
4713
  tags: b(({ rowValue: J }) => [
4714
- J && J.length > 0 ? (y(), R(ge, { key: 0 }, {
4714
+ J && J.length > 0 ? (y(), P(ge, { key: 0 }, {
4715
4715
  default: b(() => [
4716
- (y(!0), E(pe, null, de(J, (Me) => (y(), R(se, {
4716
+ (y(!0), E(pe, null, de(J, (Me) => (y(), P(se, {
4717
4717
  key: Me,
4718
4718
  onClick: z[2] || (z[2] = ft(() => {
4719
4719
  }, ["stop"]))
@@ -4730,7 +4730,7 @@ const Qo = { class: "yaml-config" }, cr = /* @__PURE__ */ W({
4730
4730
  actions: b(({ row: J }) => [
4731
4731
  T(Lt, null, {
4732
4732
  default: b(({ copyToClipboard: Me }) => [
4733
- T(Be, {
4733
+ T(Le, {
4734
4734
  "data-testid": "action-entity-copy-id",
4735
4735
  onClick: (br) => p(J, Me)
4736
4736
  }, {
@@ -4744,7 +4744,7 @@ const Qo = { class: "yaml-config" }, cr = /* @__PURE__ */ W({
4744
4744
  }, 1024),
4745
4745
  T(Lt, null, {
4746
4746
  default: b(({ copyToClipboard: Me }) => [
4747
- T(Be, {
4747
+ T(Le, {
4748
4748
  "data-testid": "action-entity-copy-json",
4749
4749
  onClick: (br) => K(J, Me)
4750
4750
  }, {
@@ -4756,11 +4756,11 @@ const Qo = { class: "yaml-config" }, cr = /* @__PURE__ */ W({
4756
4756
  ]),
4757
4757
  _: 2
4758
4758
  }, 1024),
4759
- T(m(De), {
4759
+ T(m(ze), {
4760
4760
  "auth-function": () => e.canRetrieve(J)
4761
4761
  }, {
4762
4762
  default: b(() => [
4763
- T(Be, {
4763
+ T(Le, {
4764
4764
  "data-testid": "action-entity-view",
4765
4765
  "has-divider": "",
4766
4766
  item: S(J.id)
@@ -4768,26 +4768,26 @@ const Qo = { class: "yaml-config" }, cr = /* @__PURE__ */ W({
4768
4768
  ]),
4769
4769
  _: 2
4770
4770
  }, 1032, ["auth-function"]),
4771
- T(m(De), {
4771
+ T(m(ze), {
4772
4772
  "auth-function": () => e.canEdit(J)
4773
4773
  }, {
4774
4774
  default: b(() => [
4775
- T(Be, {
4775
+ T(Le, {
4776
4776
  "data-testid": "action-entity-edit",
4777
4777
  item: A(J.id)
4778
4778
  }, null, 8, ["item"])
4779
4779
  ]),
4780
4780
  _: 2
4781
4781
  }, 1032, ["auth-function"]),
4782
- T(m(De), {
4782
+ T(m(ze), {
4783
4783
  "auth-function": () => e.canDelete(J)
4784
4784
  }, {
4785
4785
  default: b(() => [
4786
- T(Be, {
4786
+ T(Le, {
4787
4787
  danger: "",
4788
4788
  "data-testid": "action-entity-delete",
4789
4789
  "has-divider": "",
4790
- onClick: () => e.config.consumerGroupId ? gr(J) : at(J)
4790
+ onClick: () => e.config.consumerGroupId ? gr(J) : it(J)
4791
4791
  }, {
4792
4792
  default: b(() => [
4793
4793
  H(j(e.config.consumerGroupId ? m(i)("consumers.actions.remove") : m(i)("consumers.actions.delete")), 1)
@@ -4812,21 +4812,21 @@ const Qo = { class: "yaml-config" }, cr = /* @__PURE__ */ W({
4812
4812
  onCancel: dr,
4813
4813
  onProceed: pr
4814
4814
  }, null, 8, ["action-button-disabled", "description", "entity-name", "entity-type", "error", "title", "visible"]),
4815
- e.config.consumerGroupId ? (y(), R($s, {
4815
+ e.config.consumerGroupId ? (y(), P($s, {
4816
4816
  key: 0,
4817
4817
  config: e.config,
4818
4818
  "data-testid": "add-consumer-modal",
4819
- visible: it.value,
4819
+ visible: ot.value,
4820
4820
  "onAdd:partialSuccess": z[4] || (z[4] = (J) => Nt(J, !0)),
4821
4821
  "onAdd:success": z[5] || (z[5] = (J) => Nt(J)),
4822
4822
  onCancel: Et
4823
4823
  }, null, 8, ["config", "visible"])) : G("", !0),
4824
- e.config.consumerGroupId && ye.value ? (y(), R(vr, {
4824
+ e.config.consumerGroupId && ye.value ? (y(), P(vr, {
4825
4825
  key: 1,
4826
4826
  "action-button-appearance": "danger",
4827
4827
  "data-testid": "remove-consumer-modal",
4828
4828
  title: m(i)("consumers.consumer_groups.remove.title"),
4829
- visible: ot.value,
4829
+ visible: lt.value,
4830
4830
  onCancel: Ft,
4831
4831
  onProceed: yr
4832
4832
  }, {
@@ -4857,12 +4857,12 @@ const Qo = { class: "yaml-config" }, cr = /* @__PURE__ */ W({
4857
4857
  };
4858
4858
  }
4859
4859
  }), tu = /* @__PURE__ */ Mt(Ms, [["__scopeId", "data-v-2be5223c"]]);
4860
- let ze;
4860
+ let Ge;
4861
4861
  const Os = new Uint8Array(16);
4862
4862
  function Es() {
4863
- if (!ze && (ze = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !ze))
4863
+ if (!Ge && (Ge = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !Ge))
4864
4864
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
4865
- return ze(Os);
4865
+ return Ge(Os);
4866
4866
  }
4867
4867
  const re = [];
4868
4868
  for (let e = 0; e < 256; ++e)
@@ -4886,7 +4886,7 @@ function qs(e, t, n) {
4886
4886
  }
4887
4887
  return Ns(r);
4888
4888
  }
4889
- const Ks = { class: "kong-ui-entities-consumer-form" }, Bs = ["id"], Ls = { class: "fields-group-text" }, Us = ["aria-labelledby"], Ps = /* @__PURE__ */ W({
4889
+ const Ks = { class: "kong-ui-entities-consumer-form" }, Bs = ["id"], Ls = { class: "fields-group-text" }, Us = ["aria-labelledby"], Rs = /* @__PURE__ */ W({
4890
4890
  __name: "ConsumerForm",
4891
4891
  props: {
4892
4892
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -4905,7 +4905,7 @@ const Ks = { class: "kong-ui-entities-consumer-form" }, Bs = ["id"], Ls = { clas
4905
4905
  emits: ["update", "error", "loading"],
4906
4906
  setup(e, { emit: t }) {
4907
4907
  var L;
4908
- const n = e, r = t, { i18nT: a, i18n: { t: i } } = et.useI18n(), o = wt(), { axiosInstance: l } = jt({
4908
+ const n = e, r = t, { i18nT: a, i18n: { t: i } } = tt.useI18n(), o = wt(), { axiosInstance: l } = jt({
4909
4909
  headers: (L = n.config) == null ? void 0 : L.requestHeaders
4910
4910
  }), { getMessageFromError: s } = vs(), u = qs(), d = Ut({
4911
4911
  fields: {
@@ -4934,7 +4934,7 @@ const Ks = { class: "kong-ui-entities-consumer-form" }, Bs = ["id"], Ls = { clas
4934
4934
  d.fields.username = ((K = k == null ? void 0 : k.item) == null ? void 0 : K.username) || (k == null ? void 0 : k.username) || "", d.fields.customId = ((M = k == null ? void 0 : k.item) == null ? void 0 : M.custom_id) || (k == null ? void 0 : k.custom_id) || "";
4935
4935
  const p = ((S = k == null ? void 0 : k.item) == null ? void 0 : S.tags) || (k == null ? void 0 : k.tags) || [];
4936
4936
  d.fields.tags = (p == null ? void 0 : p.join(", ")) || "", Object.assign(c, d.fields);
4937
- }, P = x(() => n.consumerId ? mt.Edit : mt.Create), q = (k) => {
4937
+ }, R = x(() => n.consumerId ? mt.Edit : mt.Create), q = (k) => {
4938
4938
  var K, M, S, A, B, V;
4939
4939
  let p = `${(K = n.config) == null ? void 0 : K.apiBaseUrl}${je.form[(M = n.config) == null ? void 0 : M.app][k]}`;
4940
4940
  return ((S = n.config) == null ? void 0 : S.app) === "konnect" ? p = p.replace(/{controlPlaneId}/gi, ((A = n.config) == null ? void 0 : A.controlPlaneId) || "") : ((B = n.config) == null ? void 0 : B.app) === "kongManager" && (p = p.replace(/\/{workspace}/gi, (V = n.config) != null && V.workspace ? `/${n.config.workspace}` : "")), p = p.replace(/{id}/gi, n.consumerId), p;
@@ -4950,7 +4950,7 @@ const Ks = { class: "kong-ui-entities-consumer-form" }, Bs = ["id"], Ls = { clas
4950
4950
  try {
4951
4951
  d.readonly = !0;
4952
4952
  let p;
4953
- await l.post(q("validate"), h.value), P.value === "create" ? p = await l.post(q("create"), h.value) : P.value === "edit" && (p = ((k = n.config) == null ? void 0 : k.app) === "konnect" ? await l.put(q("edit"), h.value) : await l.patch(q("edit"), h.value)), _(p == null ? void 0 : p.data), r("update", p == null ? void 0 : p.data);
4953
+ await l.post(q("validate"), h.value), R.value === "create" ? p = await l.post(q("create"), h.value) : R.value === "edit" && (p = ((k = n.config) == null ? void 0 : k.app) === "konnect" ? await l.put(q("edit"), h.value) : await l.patch(q("edit"), h.value)), _(p == null ? void 0 : p.data), r("update", p == null ? void 0 : p.data);
4954
4954
  } catch (p) {
4955
4955
  d.errorMessage = s(p), r("error", p);
4956
4956
  } finally {
@@ -5079,7 +5079,7 @@ const Ks = { class: "kong-ui-entities-consumer-form" }, Bs = ["id"], Ls = { clas
5079
5079
  ]);
5080
5080
  };
5081
5081
  }
5082
- }), nu = /* @__PURE__ */ Mt(Ps, [["__scopeId", "data-v-0e9580ff"]]), Rs = { class: "kong-ui-consumer-entity-config-card" }, ru = /* @__PURE__ */ W({
5082
+ }), nu = /* @__PURE__ */ Mt(Rs, [["__scopeId", "data-v-0e9580ff"]]), Ps = { class: "kong-ui-consumer-entity-config-card" }, ru = /* @__PURE__ */ W({
5083
5083
  __name: "ConsumerConfigCard",
5084
5084
  props: {
5085
5085
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -5106,7 +5106,7 @@ const Ks = { class: "kong-ui-entities-consumer-form" }, Bs = ["id"], Ls = { clas
5106
5106
  },
5107
5107
  emits: ["loading", "fetch:error", "fetch:success"],
5108
5108
  setup(e) {
5109
- const t = e, { i18n: { t: n }, i18nT: r } = et.useI18n(), a = x(() => je.form[t.config.app].edit), i = N({
5109
+ const t = e, { i18n: { t: n }, i18nT: r } = tt.useI18n(), a = x(() => je.form[t.config.app].edit), i = N({
5110
5110
  id: {},
5111
5111
  username: {
5112
5112
  section: ue.Basic,
@@ -5131,7 +5131,7 @@ const Ks = { class: "kong-ui-entities-consumer-form" }, Bs = ["id"], Ls = { clas
5131
5131
  hidden: !0
5132
5132
  }
5133
5133
  });
5134
- return (o, l) => (y(), E("div", Rs, [
5134
+ return (o, l) => (y(), E("div", Ps, [
5135
5135
  T(m(El), {
5136
5136
  config: e.config,
5137
5137
  "config-card-doc": e.configCardDoc,