@kong-ui-public/entities-consumers 2.0.4-pr.935.170f22cd.0 → 2.0.4

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 ee, ref as N, computed as M, watch as ye, renderSlot as Y, createCommentVNode as G, unref as g, useSlots as Ze, onBeforeMount as mt, resolveComponent as V, openBlock as m, createBlock as U, createSlots as be, withCtx as y, createElementVNode as K, createTextVNode as W, toDisplayString as $, createVNode as E, createElementBlock as T, renderList as ce, Fragment as pe, normalizeClass as Ae, withModifiers as Ge, withDirectives as Ue, vShow as De, useCssVars as fr, resolveDynamicComponent as Ne, normalizeProps as mr, guardReactiveProps as gr, mergeProps as st, onMounted as yr, onUnmounted as hr, normalizeStyle as ln, inject as vr, pushScopeId as un, popScopeId as cn, reactive as Ft } from "vue";
1
+ import { defineComponent as ee, ref as N, computed as M, watch as ve, renderSlot as Y, createCommentVNode as G, unref as g, useSlots as Ze, onBeforeMount as Xe, resolveComponent as V, openBlock as m, createBlock as U, createSlots as be, withCtx as y, createElementVNode as K, createTextVNode as W, toDisplayString as $, createVNode as E, createElementBlock as T, renderList as ce, Fragment as pe, normalizeClass as Ae, withModifiers as Ge, withDirectives as Ue, vShow as De, useCssVars as fr, resolveDynamicComponent as Ne, normalizeProps as mr, guardReactiveProps as gr, mergeProps as lt, onMounted as yr, onUnmounted as hr, normalizeStyle as ln, inject as vr, pushScopeId as un, popScopeId as cn, reactive as Ft } from "vue";
2
2
  import { useRouter as gt } from "vue-router";
3
3
  import { createI18n as yt, i18nTComponent as dn } from "@kong-ui-public/i18n";
4
4
  import br from "axios";
@@ -106,7 +106,7 @@ function _r() {
106
106
  // Translation component <i18n-t>
107
107
  };
108
108
  }
109
- const Xe = {
109
+ const Qe = {
110
110
  useI18n: _r
111
111
  }, Te = "/api/runtime_groups/{controlPlaneId}", $e = "/{workspace}", Se = {
112
112
  list: {
@@ -134,7 +134,7 @@ const Xe = {
134
134
  }
135
135
  }
136
136
  };
137
- var pn = /* @__PURE__ */ ((e) => (e.GatewayService = "service", e.Route = "route", e.Consumer = "consumer", e.ConsumerGroup = "consumer group", e.Plugin = "plugin", e.Upstream = "upstream", e.Certificate = "certificate", e.CACertificate = "ca certificate", e.SNI = "SNI", e.Key = "key", e.KeySet = "key set", e.Vault = "vault", e.Application = "application", e.Developer = "developer", e.acls = "ACL Credential", e["basic-auth"] = "Basic Auth Credential", e["key-auth"] = "Key Auth Credential", e["key-auth-enc"] = "Key Auth Encrypted Credential", e.oauth2 = "OAuth 2.0 Credential", e["hmac-auth"] = "HMAC Credential", e.jwt = "JWT Credential", e.Target = "target", e.Policy = "policy", e))(pn || {}), lt = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(lt || {}), _e = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(_e || {}), Q = /* @__PURE__ */ ((e) => (e.ID = "id", e.IdArray = "id-array", e.Text = "plain-text", e.Date = "date", e.Redacted = "redacted", e.RedactedArray = "redacted-array", e.Json = "json", e.JsonArray = "json-array", e.BadgeTag = "badge-tag", e.BadgeStatus = "badge-status", e.BadgeMethod = "badge-method", e.LinkInternal = "link-internal", e.LinkExternal = "link-external", e))(Q || {}), ue = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e))(ue || {});
137
+ var pn = /* @__PURE__ */ ((e) => (e.GatewayService = "service", e.Route = "route", e.Consumer = "consumer", e.ConsumerGroup = "consumer group", e.Plugin = "plugin", e.Upstream = "upstream", e.Certificate = "certificate", e.CACertificate = "ca certificate", e.SNI = "SNI", e.Key = "key", e.KeySet = "key set", e.Vault = "vault", e.Application = "application", e.Developer = "developer", e.acls = "ACL Credential", e["basic-auth"] = "Basic Auth Credential", e["key-auth"] = "Key Auth Credential", e["key-auth-enc"] = "Key Auth Encrypted Credential", e.oauth2 = "OAuth 2.0 Credential", e["hmac-auth"] = "HMAC Credential", e.jwt = "JWT Credential", e.Target = "target", e.Policy = "policy", e))(pn || {}), ut = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(ut || {}), _e = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(_e || {}), Q = /* @__PURE__ */ ((e) => (e.ID = "id", e.IdArray = "id-array", e.Text = "plain-text", e.Date = "date", e.Redacted = "redacted", e.RedactedArray = "redacted-array", e.Json = "json", e.JsonArray = "json-array", e.BadgeTag = "badge-tag", e.BadgeStatus = "badge-status", e.BadgeMethod = "badge-method", e.LinkInternal = "link-internal", e.LinkExternal = "link-external", e))(Q || {}), ue = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e))(ue || {});
138
138
  function ht(e = {}) {
139
139
  return {
140
140
  axiosInstance: br.create({
@@ -156,7 +156,7 @@ function Ir() {
156
156
  }
157
157
  };
158
158
  }
159
- const rt = "khcp-user-table-preferences", Ar = {
159
+ const at = "khcp-user-table-preferences", Ar = {
160
160
  pageSize: 30,
161
161
  sortColumnKey: void 0,
162
162
  sortColumnOrder: void 0
@@ -171,14 +171,14 @@ function Sr() {
171
171
  return;
172
172
  }
173
173
  }, n = () => {
174
- const t = e(localStorage.getItem(rt));
174
+ const t = e(localStorage.getItem(at));
175
175
  return !t || !Object.keys(t).length ? /* @__PURE__ */ new Map() : new Map(Object.entries(t));
176
176
  };
177
177
  return {
178
178
  setTablePreferences: (t, r) => {
179
179
  try {
180
180
  const a = n();
181
- a.set(t, r), localStorage.setItem(rt, JSON.stringify(Object.fromEntries(a.entries())));
181
+ a.set(t, r), localStorage.setItem(at, JSON.stringify(Object.fromEntries(a.entries())));
182
182
  } catch (a) {
183
183
  console.error("useTablePreferences(setTablePreferences)", a);
184
184
  }
@@ -188,7 +188,7 @@ function Sr() {
188
188
  return (r == null ? void 0 : r.get(t)) || void 0 || Ar;
189
189
  },
190
190
  deleteAllTablePreferences: () => {
191
- localStorage.removeItem(rt);
191
+ localStorage.removeItem(at);
192
192
  }
193
193
  };
194
194
  }
@@ -458,7 +458,7 @@ function Pr(e) {
458
458
  const n = window.location.origin, t = n.endsWith("/") ? n : `${n}/`;
459
459
  try {
460
460
  const r = e.join("/"), a = `${t}${r}`, o = e.some((i) => i.trim() === "");
461
- if (!/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,4}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/g.test(a) && !o && new URL(a))
461
+ if (/^(https:\/\/(www\.)?([a-zA-Z0-9-]+\.){1,}[a-zA-Z]{2,}(:[0-9]+)?(\/[^\/]+)*)$|^(https|http):\/\/localhost(:[0-9]+)?(\/[^\/]+)*$/.test(a) && !o && new URL(a))
462
462
  return `${t}${r}`;
463
463
  throw new Error("Invalid url");
464
464
  } catch (r) {
@@ -558,7 +558,7 @@ const gn = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
558
558
  const t = Kt(e), r = Kt(n), a = t.pop(), o = r.pop(), i = Lt(t, r);
559
559
  return i !== 0 ? i : a && o ? Lt(a.split("."), o.split(".")) : a || o ? a ? -1 : 1 : 0;
560
560
  }, Pt = (e, n, t) => {
561
- zr(t);
561
+ Hr(t);
562
562
  const r = Gr(e, n);
563
563
  return yn[t].includes(r);
564
564
  }, yn = {
@@ -568,18 +568,18 @@ const gn = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
568
568
  "<=": [-1, 0],
569
569
  "<": [-1],
570
570
  "!=": [-1, 1]
571
- }, Vt = Object.keys(yn), zr = (e) => {
571
+ }, Vt = Object.keys(yn), Hr = (e) => {
572
572
  if (typeof e != "string")
573
573
  throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);
574
574
  if (Vt.indexOf(e) === -1)
575
575
  throw new Error(`Invalid operator, expected one of ${Vt.join("|")}`);
576
- }, Hr = (e) => typeof e == "string" && /^[v\d]/.test(e) && gn.test(e);
576
+ }, zr = (e) => typeof e == "string" && /^[v\d]/.test(e) && gn.test(e);
577
577
  function Jr(e) {
578
578
  const { gatewayInfo: n, supportedRange: t } = e;
579
579
  if (!n)
580
580
  return !0;
581
581
  const { edition: r, version: a } = n;
582
- if (!Hr(a))
582
+ if (!zr(a))
583
583
  return console.error("Invalid version"), !1;
584
584
  const o = t[r];
585
585
  if (!o)
@@ -589,7 +589,7 @@ function Jr(e) {
589
589
  }
590
590
  function Yr(e) {
591
591
  const n = N(0), t = N(0), r = N(!1);
592
- return ye(e, (a) => {
592
+ return ve(e, (a) => {
593
593
  a && !r.value && (n.value = a.offsetWidth, t.value = a.scrollWidth, r.value = !0);
594
594
  }), {
595
595
  isTruncated: M(() => n.value < t.value)
@@ -802,7 +802,7 @@ const ae = {
802
802
  return (h, f) => {
803
803
  const I = V("KClipboardProvider");
804
804
  return m(), T("div", la, [
805
- e.format !== "hidden" ? (m(), U(Ne(e.idTooltip ? "KTooltip" : "div"), st({ key: 0 }, o.value, { "data-testid": "copy-id" }), {
805
+ e.format !== "hidden" ? (m(), U(Ne(e.idTooltip ? "KTooltip" : "div"), lt({ key: 0 }, o.value, { "data-testid": "copy-id" }), {
806
806
  default: y(() => [
807
807
  K("div", {
808
808
  class: Ae([
@@ -814,7 +814,7 @@ const ae = {
814
814
  ]),
815
815
  _: 1
816
816
  }, 16)) : G("", !0),
817
- (m(), U(Ne(e.tooltip ? "KTooltip" : "div"), st(l.value, { class: "uuid-icon-wrapper" }), {
817
+ (m(), U(Ne(e.tooltip ? "KTooltip" : "div"), lt(l.value, { class: "uuid-icon-wrapper" }), {
818
818
  default: y(() => [
819
819
  E(I, null, {
820
820
  default: y(({ copyToClipboard: b }) => [
@@ -1164,7 +1164,7 @@ const ae = {
1164
1164
  class: "copy-uuid-array",
1165
1165
  "data-testid": `${e.item.key}-copy-uuid-array`
1166
1166
  }, [
1167
- (m(!0), T(pe, null, ce(e.item.value, (k, S) => (m(), U(g(hn), st(d.value.childAttrs, {
1167
+ (m(!0), T(pe, null, ce(e.item.value, (k, S) => (m(), U(g(hn), lt(d.value.childAttrs, {
1168
1168
  key: `${e.item.key}-copy-uuid-${S}`,
1169
1169
  "data-testid": `${e.item.key}-copy-uuid-${S}`,
1170
1170
  uuid: k
@@ -1273,7 +1273,7 @@ qe.prototype.toString = function(e) {
1273
1273
  return this.name + ": " + Cn(this, e);
1274
1274
  };
1275
1275
  var se = qe;
1276
- function at(e, n, t, r, a) {
1276
+ function ot(e, n, t, r, a) {
1277
1277
  var o = "", i = "", s = Math.floor(a / 2) - 1;
1278
1278
  return r - n > s && (o = " ... ", n = r - s + o.length), t - r > s && (i = " ...", t = r + s - i.length), {
1279
1279
  str: o + e.slice(n, t).replace(/\t/g, "→") + i,
@@ -1281,7 +1281,7 @@ function at(e, n, t, r, a) {
1281
1281
  // relative position
1282
1282
  };
1283
1283
  }
1284
- function ot(e, n) {
1284
+ function it(e, n) {
1285
1285
  return ne.repeat(" ", n - e.length) + e;
1286
1286
  }
1287
1287
  function Ga(e, n) {
@@ -1293,28 +1293,28 @@ function Ga(e, n) {
1293
1293
  i < 0 && (i = r.length - 1);
1294
1294
  var s = "", l, c, d = Math.min(e.line + n.linesAfter, a.length).toString().length, u = n.maxLength - (n.indent + d + 3);
1295
1295
  for (l = 1; l <= n.linesBefore && !(i - l < 0); l++)
1296
- c = at(
1296
+ c = ot(
1297
1297
  e.buffer,
1298
1298
  r[i - l],
1299
1299
  a[i - l],
1300
1300
  e.position - (r[i] - r[i - l]),
1301
1301
  u
1302
- ), s = ne.repeat(" ", n.indent) + ot((e.line - l + 1).toString(), d) + " | " + c.str + `
1302
+ ), s = ne.repeat(" ", n.indent) + it((e.line - l + 1).toString(), d) + " | " + c.str + `
1303
1303
  ` + s;
1304
- for (c = at(e.buffer, r[i], a[i], e.position, u), s += ne.repeat(" ", n.indent) + ot((e.line + 1).toString(), d) + " | " + c.str + `
1304
+ for (c = ot(e.buffer, r[i], a[i], e.position, u), s += ne.repeat(" ", n.indent) + it((e.line + 1).toString(), d) + " | " + c.str + `
1305
1305
  `, s += ne.repeat("-", n.indent + d + 3 + c.pos) + `^
1306
1306
  `, l = 1; l <= n.linesAfter && !(i + l >= a.length); l++)
1307
- c = at(
1307
+ c = ot(
1308
1308
  e.buffer,
1309
1309
  r[i + l],
1310
1310
  a[i + l],
1311
1311
  e.position - (r[i] - r[i + l]),
1312
1312
  u
1313
- ), s += ne.repeat(" ", n.indent) + ot((e.line + l + 1).toString(), d) + " | " + c.str + `
1313
+ ), s += ne.repeat(" ", n.indent) + it((e.line + l + 1).toString(), d) + " | " + c.str + `
1314
1314
  `;
1315
1315
  return s.replace(/\n$/, "");
1316
1316
  }
1317
- var za = Ga, Ha = [
1317
+ var Ha = Ga, za = [
1318
1318
  "kind",
1319
1319
  "multi",
1320
1320
  "resolve",
@@ -1340,7 +1340,7 @@ function Ya(e) {
1340
1340
  }
1341
1341
  function Wa(e, n) {
1342
1342
  if (n = n || {}, Object.keys(n).forEach(function(t) {
1343
- if (Ha.indexOf(t) === -1)
1343
+ if (za.indexOf(t) === -1)
1344
1344
  throw new se('Unknown option "' + t + '" is met in definition of "' + e + '" YAML type.');
1345
1345
  }), this.options = n, this.tag = e, this.kind = n.kind || null, this.resolve = n.resolve || function() {
1346
1346
  return !0;
@@ -1379,10 +1379,10 @@ function Za() {
1379
1379
  arguments[n].forEach(r);
1380
1380
  return e;
1381
1381
  }
1382
- function ut(e) {
1382
+ function ct(e) {
1383
1383
  return this.extend(e);
1384
1384
  }
1385
- ut.prototype.extend = function(e) {
1385
+ ct.prototype.extend = function(e) {
1386
1386
  var n = [], t = [];
1387
1387
  if (e instanceof oe)
1388
1388
  t.push(e);
@@ -1403,10 +1403,10 @@ ut.prototype.extend = function(e) {
1403
1403
  if (!(a instanceof oe))
1404
1404
  throw new se("Specified list of YAML types (or a single Type object) contains a non-Type object.");
1405
1405
  });
1406
- var r = Object.create(ut.prototype);
1406
+ var r = Object.create(ct.prototype);
1407
1407
  return r.implicit = (this.implicit || []).concat(n), r.explicit = (this.explicit || []).concat(t), r.compiledImplicit = Dt(r, "implicit"), r.compiledExplicit = Dt(r, "explicit"), r.compiledTypeMap = Za(r.compiledImplicit, r.compiledExplicit), r;
1408
1408
  };
1409
- var kn = ut, wn = new oe("tag:yaml.org,2002:str", {
1409
+ var kn = ct, wn = new oe("tag:yaml.org,2002:str", {
1410
1410
  kind: "scalar",
1411
1411
  construct: function(e) {
1412
1412
  return e !== null ? e : "";
@@ -1812,8 +1812,8 @@ var Ln = new oe("tag:yaml.org,2002:set", {
1812
1812
  qn,
1813
1813
  Ln
1814
1814
  ]
1815
- }), ke = Object.prototype.hasOwnProperty, ze = 1, Pn = 2, Vn = 3, He = 4, it = 1, Fo = 2, Gt = 3, Ko = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Bo = /[\x85\u2028\u2029]/, qo = /[,\[\]\{\}]/, Rn = /^(?:!|!!|![a-z\-]+!)$/i, Un = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
1816
- function zt(e) {
1815
+ }), ke = Object.prototype.hasOwnProperty, He = 1, Pn = 2, Vn = 3, ze = 4, st = 1, Fo = 2, Gt = 3, Ko = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Bo = /[\x85\u2028\u2029]/, qo = /[,\[\]\{\}]/, Rn = /^(?:!|!!|![a-z\-]+!)$/i, Un = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
1816
+ function Ht(e) {
1817
1817
  return Object.prototype.toString.call(e);
1818
1818
  }
1819
1819
  function ge(e) {
@@ -1838,7 +1838,7 @@ function Po(e) {
1838
1838
  function Vo(e) {
1839
1839
  return 48 <= e && e <= 57 ? e - 48 : -1;
1840
1840
  }
1841
- function Ht(e) {
1841
+ function zt(e) {
1842
1842
  return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? `
1843
1843
  ` : 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" : "";
1844
1844
  }
@@ -1850,11 +1850,11 @@ function Ro(e) {
1850
1850
  }
1851
1851
  var Dn = new Array(256), Gn = new Array(256);
1852
1852
  for (var je = 0; je < 256; je++)
1853
- Dn[je] = Ht(je) ? 1 : 0, Gn[je] = Ht(je);
1853
+ Dn[je] = zt(je) ? 1 : 0, Gn[je] = zt(je);
1854
1854
  function Uo(e, n) {
1855
1855
  this.input = e, this.filename = n.filename || null, this.schema = n.schema || kt, this.onWarning = n.onWarning || null, this.legacy = n.legacy || !1, this.json = n.json || !1, this.listener = n.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 = [];
1856
1856
  }
1857
- function zn(e, n) {
1857
+ function Hn(e, n) {
1858
1858
  var t = {
1859
1859
  name: e.filename,
1860
1860
  buffer: e.input.slice(0, -1),
@@ -1863,13 +1863,13 @@ function zn(e, n) {
1863
1863
  line: e.line,
1864
1864
  column: e.position - e.lineStart
1865
1865
  };
1866
- return t.snippet = za(t), new se(n, t);
1866
+ return t.snippet = Ha(t), new se(n, t);
1867
1867
  }
1868
1868
  function j(e, n) {
1869
- throw zn(e, n);
1869
+ throw Hn(e, n);
1870
1870
  }
1871
1871
  function Je(e, n) {
1872
- e.onWarning && e.onWarning.call(null, zn(e, n));
1872
+ e.onWarning && e.onWarning.call(null, Hn(e, n));
1873
1873
  }
1874
1874
  var Jt = {
1875
1875
  YAML: function(e, n, t) {
@@ -1907,8 +1907,8 @@ function Ee(e, n, t, r, a, o, i, s, l) {
1907
1907
  var c, d;
1908
1908
  if (Array.isArray(a))
1909
1909
  for (a = Array.prototype.slice.call(a), c = 0, d = a.length; c < d; c += 1)
1910
- Array.isArray(a[c]) && j(e, "nested arrays are not supported inside keys"), typeof a == "object" && zt(a[c]) === "[object Object]" && (a[c] = "[object Object]");
1911
- if (typeof a == "object" && zt(a) === "[object Object]" && (a = "[object Object]"), a = String(a), n === null && (n = {}), r === "tag:yaml.org,2002:merge")
1910
+ Array.isArray(a[c]) && j(e, "nested arrays are not supported inside keys"), typeof a == "object" && Ht(a[c]) === "[object Object]" && (a[c] = "[object Object]");
1911
+ if (typeof a == "object" && Ht(a) === "[object Object]" && (a = "[object Object]"), a = String(a), n === null && (n = {}), r === "tag:yaml.org,2002:merge")
1912
1912
  if (Array.isArray(o))
1913
1913
  for (c = 0, d = o.length; c < d; c += 1)
1914
1914
  Yt(e, n, o[c], t);
@@ -1943,7 +1943,7 @@ function te(e, n, t) {
1943
1943
  }
1944
1944
  return t !== -1 && r !== 0 && e.lineIndent < t && Je(e, "deficient indentation"), r;
1945
1945
  }
1946
- function Qe(e) {
1946
+ function et(e) {
1947
1947
  var n = e.position, t;
1948
1948
  return t = e.input.charCodeAt(n), !!((t === 45 || t === 46) && t === e.input.charCodeAt(n + 1) && t === e.input.charCodeAt(n + 2) && (n += 3, t = e.input.charCodeAt(n), t === 0 || de(t)));
1949
1949
  }
@@ -1963,7 +1963,7 @@ function Do(e, n, t) {
1963
1963
  if (r = e.input.charCodeAt(e.position - 1), de(r))
1964
1964
  break;
1965
1965
  } else {
1966
- if (e.position === e.lineStart && Qe(e) || t && Oe(f))
1966
+ if (e.position === e.lineStart && et(e) || t && Oe(f))
1967
1967
  break;
1968
1968
  if (ge(f))
1969
1969
  if (l = e.line, c = e.lineStart, d = e.lineIndent, te(e, !1, -1), e.lineIndent >= n) {
@@ -1989,10 +1989,10 @@ function Go(e, n) {
1989
1989
  else
1990
1990
  return !0;
1991
1991
  else
1992
- ge(t) ? (Ce(e, r, a, !0), _t(e, te(e, !1, n)), r = a = e.position) : e.position === e.lineStart && Qe(e) ? j(e, "unexpected end of the document within a single quoted scalar") : (e.position++, a = e.position);
1992
+ ge(t) ? (Ce(e, r, a, !0), _t(e, te(e, !1, n)), r = a = e.position) : e.position === e.lineStart && et(e) ? j(e, "unexpected end of the document within a single quoted scalar") : (e.position++, a = e.position);
1993
1993
  j(e, "unexpected end of the stream within a single quoted scalar");
1994
1994
  }
1995
- function zo(e, n) {
1995
+ function Ho(e, n) {
1996
1996
  var t, r, a, o, i, s;
1997
1997
  if (s = e.input.charCodeAt(e.position), s !== 34)
1998
1998
  return !1;
@@ -2012,11 +2012,11 @@ function zo(e, n) {
2012
2012
  j(e, "unknown escape sequence");
2013
2013
  t = r = e.position;
2014
2014
  } else
2015
- ge(s) ? (Ce(e, t, r, !0), _t(e, te(e, !1, n)), t = r = e.position) : e.position === e.lineStart && Qe(e) ? j(e, "unexpected end of the document within a double quoted scalar") : (e.position++, r = e.position);
2015
+ ge(s) ? (Ce(e, t, r, !0), _t(e, te(e, !1, n)), t = r = e.position) : e.position === e.lineStart && et(e) ? j(e, "unexpected end of the document within a double quoted scalar") : (e.position++, r = e.position);
2016
2016
  }
2017
2017
  j(e, "unexpected end of the stream within a double quoted scalar");
2018
2018
  }
2019
- function Ho(e, n) {
2019
+ function zo(e, n) {
2020
2020
  var t = !0, r, a, o, i = e.tag, s, l = e.anchor, c, d, u, h, f, I = /* @__PURE__ */ Object.create(null), b, p, A, w;
2021
2021
  if (w = e.input.charCodeAt(e.position), w === 91)
2022
2022
  d = 93, f = !1, s = [];
@@ -2027,12 +2027,12 @@ function Ho(e, n) {
2027
2027
  for (e.anchor !== null && (e.anchorMap[e.anchor] = s), w = e.input.charCodeAt(++e.position); w !== 0; ) {
2028
2028
  if (te(e, !0, n), w = e.input.charCodeAt(e.position), w === d)
2029
2029
  return e.position++, e.tag = i, e.anchor = l, e.kind = f ? "mapping" : "sequence", e.result = s, !0;
2030
- t ? w === 44 && j(e, "expected the node content, but found ','") : j(e, "missed comma between flow collection entries"), p = b = A = null, u = h = !1, w === 63 && (c = e.input.charCodeAt(e.position + 1), de(c) && (u = h = !0, e.position++, te(e, !0, n))), r = e.line, a = e.lineStart, o = e.position, Fe(e, n, ze, !1, !0), p = e.tag, b = e.result, te(e, !0, n), w = e.input.charCodeAt(e.position), (h || e.line === r) && w === 58 && (u = !0, w = e.input.charCodeAt(++e.position), te(e, !0, n), Fe(e, n, ze, !1, !0), A = e.result), f ? Ee(e, s, I, p, b, A, r, a, o) : u ? s.push(Ee(e, null, I, p, b, A, r, a, o)) : s.push(b), te(e, !0, n), w = e.input.charCodeAt(e.position), w === 44 ? (t = !0, w = e.input.charCodeAt(++e.position)) : t = !1;
2030
+ t ? w === 44 && j(e, "expected the node content, but found ','") : j(e, "missed comma between flow collection entries"), p = b = A = null, u = h = !1, w === 63 && (c = e.input.charCodeAt(e.position + 1), de(c) && (u = h = !0, e.position++, te(e, !0, n))), r = e.line, a = e.lineStart, o = e.position, Fe(e, n, He, !1, !0), p = e.tag, b = e.result, te(e, !0, n), w = e.input.charCodeAt(e.position), (h || e.line === r) && w === 58 && (u = !0, w = e.input.charCodeAt(++e.position), te(e, !0, n), Fe(e, n, He, !1, !0), A = e.result), f ? Ee(e, s, I, p, b, A, r, a, o) : u ? s.push(Ee(e, null, I, p, b, A, r, a, o)) : s.push(b), te(e, !0, n), w = e.input.charCodeAt(e.position), w === 44 ? (t = !0, w = e.input.charCodeAt(++e.position)) : t = !1;
2031
2031
  }
2032
2032
  j(e, "unexpected end of the stream within a flow collection");
2033
2033
  }
2034
2034
  function Jo(e, n) {
2035
- var t, r, a = it, o = !1, i = !1, s = n, l = 0, c = !1, d, u;
2035
+ var t, r, a = st, o = !1, i = !1, s = n, l = 0, c = !1, d, u;
2036
2036
  if (u = e.input.charCodeAt(e.position), u === 124)
2037
2037
  r = !1;
2038
2038
  else if (u === 62)
@@ -2041,7 +2041,7 @@ function Jo(e, n) {
2041
2041
  return !1;
2042
2042
  for (e.kind = "scalar", e.result = ""; u !== 0; )
2043
2043
  if (u = e.input.charCodeAt(++e.position), u === 43 || u === 45)
2044
- it === a ? a = u === 43 ? Gt : Fo : j(e, "repeat of a chomping mode identifier");
2044
+ st === a ? a = u === 43 ? Gt : Fo : j(e, "repeat of a chomping mode identifier");
2045
2045
  else if ((d = Vo(u)) >= 0)
2046
2046
  d === 0 ? j(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : i ? j(e, "repeat of an indentation width identifier") : (s = n + d - 1, i = !0);
2047
2047
  else
@@ -2064,7 +2064,7 @@ function Jo(e, n) {
2064
2064
  }
2065
2065
  if (e.lineIndent < s) {
2066
2066
  a === Gt ? e.result += ne.repeat(`
2067
- `, o ? 1 + l : l) : a === it && o && (e.result += `
2067
+ `, o ? 1 + l : l) : a === st && o && (e.result += `
2068
2068
  `);
2069
2069
  break;
2070
2070
  }
@@ -2118,7 +2118,7 @@ function Yo(e, n, t) {
2118
2118
  else
2119
2119
  return e.tag = c, e.anchor = d, !0;
2120
2120
  }
2121
- if ((e.line === o || e.lineIndent > n) && (p && (i = e.line, s = e.lineStart, l = e.position), Fe(e, n, He, !0, a) && (p ? I = e.result : b = e.result), p || (Ee(e, u, h, f, I, b, i, s, l), f = I = b = null), te(e, !0, -1), w = e.input.charCodeAt(e.position)), (e.line === o || e.lineIndent > n) && w !== 0)
2121
+ if ((e.line === o || e.lineIndent > n) && (p && (i = e.line, s = e.lineStart, l = e.position), Fe(e, n, ze, !0, a) && (p ? I = e.result : b = e.result), p || (Ee(e, u, h, f, I, b, i, s, l), f = I = b = null), te(e, !0, -1), w = e.input.charCodeAt(e.position)), (e.line === o || e.lineIndent > n) && w !== 0)
2122
2122
  j(e, "bad indentation of a mapping entry");
2123
2123
  else if (e.lineIndent < n)
2124
2124
  break;
@@ -2165,10 +2165,10 @@ function Xo(e) {
2165
2165
  }
2166
2166
  function Fe(e, n, t, r, a) {
2167
2167
  var o, i, s, l = 1, c = !1, d = !1, u, h, f, I, b, p;
2168
- if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = i = s = He === t || Vn === t, r && te(e, !0, -1) && (c = !0, e.lineIndent > n ? l = 1 : e.lineIndent === n ? l = 0 : e.lineIndent < n && (l = -1)), l === 1)
2168
+ if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = i = s = ze === t || Vn === t, r && te(e, !0, -1) && (c = !0, e.lineIndent > n ? l = 1 : e.lineIndent === n ? l = 0 : e.lineIndent < n && (l = -1)), l === 1)
2169
2169
  for (; Wo(e) || Zo(e); )
2170
2170
  te(e, !0, -1) ? (c = !0, s = o, e.lineIndent > n ? l = 1 : e.lineIndent === n ? l = 0 : e.lineIndent < n && (l = -1)) : s = !1;
2171
- if (s && (s = c || a), (l === 1 || He === t) && (ze === t || Pn === t ? b = n : b = n + 1, p = e.position - e.lineStart, l === 1 ? s && (Wt(e, p) || Yo(e, p, b)) || Ho(e, b) ? d = !0 : (i && Jo(e, b) || Go(e, b) || zo(e, b) ? d = !0 : Xo(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && j(e, "alias node should not have any properties")) : Do(e, b, ze === t) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : l === 0 && (d = s && Wt(e, p))), e.tag === null)
2171
+ if (s && (s = c || a), (l === 1 || ze === t) && (He === t || Pn === t ? b = n : b = n + 1, p = e.position - e.lineStart, l === 1 ? s && (Wt(e, p) || Yo(e, p, b)) || zo(e, b) ? d = !0 : (i && Jo(e, b) || Go(e, b) || Ho(e, b) ? d = !0 : Xo(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && j(e, "alias node should not have any properties")) : Do(e, b, He === t) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : l === 0 && (d = s && Wt(e, p))), e.tag === null)
2172
2172
  e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
2173
2173
  else if (e.tag === "?") {
2174
2174
  for (e.result !== null && e.kind !== "scalar" && j(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), u = 0, h = e.implicitTypes.length; u < h; u += 1)
@@ -2211,7 +2211,7 @@ function Qo(e) {
2211
2211
  }
2212
2212
  i !== 0 && wt(e), ke.call(Jt, r) ? Jt[r](e, r, a) : Je(e, 'unknown document directive "' + r + '"');
2213
2213
  }
2214
- if (te(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, te(e, !0, -1)) : o && j(e, "directives end mark is expected"), Fe(e, e.lineIndent - 1, He, !1, !0), te(e, !0, -1), e.checkLineBreaks && Bo.test(e.input.slice(n, e.position)) && Je(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && Qe(e)) {
2214
+ if (te(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, te(e, !0, -1)) : o && j(e, "directives end mark is expected"), Fe(e, e.lineIndent - 1, ze, !1, !0), te(e, !0, -1), e.checkLineBreaks && Bo.test(e.input.slice(n, e.position)) && Je(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && et(e)) {
2215
2215
  e.input.charCodeAt(e.position) === 46 && (e.position += 3, te(e, !0, -1));
2216
2216
  return;
2217
2217
  }
@@ -2220,7 +2220,7 @@ function Qo(e) {
2220
2220
  else
2221
2221
  return;
2222
2222
  }
2223
- function Hn(e, n) {
2223
+ function zn(e, n) {
2224
2224
  e = String(e), n = n || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
2225
2225
  `), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
2226
2226
  var t = new Uo(e, n), r = e.indexOf("\0");
@@ -2232,14 +2232,14 @@ function Hn(e, n) {
2232
2232
  }
2233
2233
  function ei(e, n, t) {
2234
2234
  n !== null && typeof n == "object" && typeof t > "u" && (t = n, n = null);
2235
- var r = Hn(e, t);
2235
+ var r = zn(e, t);
2236
2236
  if (typeof n != "function")
2237
2237
  return r;
2238
2238
  for (var a = 0, o = r.length; a < o; a += 1)
2239
2239
  n(r[a]);
2240
2240
  }
2241
2241
  function ti(e, n) {
2242
- var t = Hn(e, n);
2242
+ var t = zn(e, n);
2243
2243
  if (t.length !== 0) {
2244
2244
  if (t.length === 1)
2245
2245
  return t[0];
@@ -2249,7 +2249,7 @@ function ti(e, n) {
2249
2249
  var ni = ei, ri = ti, Jn = {
2250
2250
  loadAll: ni,
2251
2251
  load: ri
2252
- }, Yn = Object.prototype.toString, Wn = Object.prototype.hasOwnProperty, It = 65279, ai = 9, Le = 10, oi = 13, ii = 32, si = 33, li = 34, ct = 35, ui = 37, ci = 38, di = 39, pi = 42, Zn = 44, fi = 45, Ye = 58, mi = 61, gi = 62, yi = 63, hi = 64, Xn = 91, Qn = 93, vi = 96, er = 123, bi = 124, tr = 125, ie = {};
2252
+ }, Yn = Object.prototype.toString, Wn = Object.prototype.hasOwnProperty, It = 65279, ai = 9, Le = 10, oi = 13, ii = 32, si = 33, li = 34, dt = 35, ui = 37, ci = 38, di = 39, pi = 42, Zn = 44, fi = 45, Ye = 58, mi = 61, gi = 62, yi = 63, hi = 64, Xn = 91, Qn = 93, vi = 96, er = 123, bi = 124, tr = 125, ie = {};
2253
2253
  ie[0] = "\\0";
2254
2254
  ie[7] = "\\a";
2255
2255
  ie[8] = "\\b";
@@ -2314,7 +2314,7 @@ function Zt(e, n) {
2314
2314
  ` && (o += t), o += i;
2315
2315
  return o;
2316
2316
  }
2317
- function dt(e, n) {
2317
+ function pt(e, n) {
2318
2318
  return `
2319
2319
  ` + ne.repeat(" ", e.indent * n);
2320
2320
  }
@@ -2341,11 +2341,11 @@ function Qt(e, n, t) {
2341
2341
  (t ? (
2342
2342
  // c = flow-in
2343
2343
  r
2344
- ) : r && e !== Zn && e !== Xn && e !== Qn && e !== er && e !== tr) && e !== ct && !(n === Ye && !a) || Xt(n) && !We(n) && e === ct || n === Ye && a
2344
+ ) : r && e !== Zn && e !== Xn && e !== Qn && e !== er && e !== tr) && e !== dt && !(n === Ye && !a) || Xt(n) && !We(n) && e === dt || n === Ye && a
2345
2345
  );
2346
2346
  }
2347
2347
  function xi(e) {
2348
- return Ve(e) && e !== It && !We(e) && e !== fi && e !== yi && e !== Ye && e !== Zn && e !== Xn && e !== Qn && e !== er && e !== tr && e !== ct && e !== ci && e !== pi && e !== si && e !== bi && e !== mi && e !== gi && e !== di && e !== li && e !== ui && e !== hi && e !== vi;
2348
+ return Ve(e) && e !== It && !We(e) && e !== fi && e !== yi && e !== Ye && e !== Zn && e !== Xn && e !== Qn && e !== er && e !== tr && e !== dt && e !== ci && e !== pi && e !== si && e !== bi && e !== mi && e !== gi && e !== di && e !== li && e !== ui && e !== hi && e !== vi;
2349
2349
  }
2350
2350
  function Ti(e) {
2351
2351
  return !We(e) && e !== Ye;
@@ -2358,7 +2358,7 @@ function nr(e) {
2358
2358
  var n = /^\n* /;
2359
2359
  return n.test(e);
2360
2360
  }
2361
- var rr = 1, pt = 2, ar = 3, or = 4, Me = 5;
2361
+ var rr = 1, ft = 2, ar = 3, or = 4, Me = 5;
2362
2362
  function $i(e, n, t, r, a, o, i, s) {
2363
2363
  var l, c = 0, d = null, u = !1, h = !1, f = r !== -1, I = -1, b = xi(Be(e, 0)) && Ti(Be(e, e.length - 1));
2364
2364
  if (n || i)
@@ -2378,7 +2378,7 @@ function $i(e, n, t, r, a, o, i, s) {
2378
2378
  }
2379
2379
  h = h || f && l - I - 1 > r && e[I + 1] !== " ";
2380
2380
  }
2381
- return !u && !h ? b && !i && !a(e) ? rr : o === Pe ? Me : pt : t > 9 && nr(e) ? Me : i ? o === Pe ? Me : pt : h ? or : ar;
2381
+ return !u && !h ? b && !i && !a(e) ? rr : o === Pe ? Me : ft : t > 9 && nr(e) ? Me : i ? o === Pe ? Me : ft : h ? or : ar;
2382
2382
  }
2383
2383
  function ji(e, n, t, r, a) {
2384
2384
  e.dump = function() {
@@ -2402,7 +2402,7 @@ function ji(e, n, t, r, a) {
2402
2402
  )) {
2403
2403
  case rr:
2404
2404
  return n;
2405
- case pt:
2405
+ case ft:
2406
2406
  return "'" + n.replace(/'/g, "''") + "'";
2407
2407
  case ar:
2408
2408
  return "|" + en(n, e.indent) + tn(Zt(n, o));
@@ -2458,19 +2458,19 @@ function Oi(e) {
2458
2458
  function Ei(e, n, t) {
2459
2459
  var r = "", a = e.tag, o, i, s;
2460
2460
  for (o = 0, i = t.length; o < i; o += 1)
2461
- s = t[o], e.replacer && (s = e.replacer.call(t, String(o), s)), (ve(e, n, s, !1, !1) || typeof s > "u" && ve(e, n, null, !1, !1)) && (r !== "" && (r += "," + (e.condenseFlow ? "" : " ")), r += e.dump);
2461
+ s = t[o], e.replacer && (s = e.replacer.call(t, String(o), s)), (he(e, n, s, !1, !1) || typeof s > "u" && he(e, n, null, !1, !1)) && (r !== "" && (r += "," + (e.condenseFlow ? "" : " ")), r += e.dump);
2462
2462
  e.tag = a, e.dump = "[" + r + "]";
2463
2463
  }
2464
2464
  function rn(e, n, t, r) {
2465
2465
  var a = "", o = e.tag, i, s, l;
2466
2466
  for (i = 0, s = t.length; i < s; i += 1)
2467
- l = t[i], e.replacer && (l = e.replacer.call(t, String(i), l)), (ve(e, n + 1, l, !0, !0, !1, !0) || typeof l > "u" && ve(e, n + 1, null, !0, !0, !1, !0)) && ((!r || a !== "") && (a += dt(e, n)), e.dump && Le === e.dump.charCodeAt(0) ? a += "-" : a += "- ", a += e.dump);
2467
+ l = t[i], e.replacer && (l = e.replacer.call(t, String(i), l)), (he(e, n + 1, l, !0, !0, !1, !0) || typeof l > "u" && he(e, n + 1, null, !0, !0, !1, !0)) && ((!r || a !== "") && (a += pt(e, n)), e.dump && Le === e.dump.charCodeAt(0) ? a += "-" : a += "- ", a += e.dump);
2468
2468
  e.tag = o, e.dump = a || "[]";
2469
2469
  }
2470
2470
  function Ni(e, n, t) {
2471
2471
  var r = "", a = e.tag, o = Object.keys(t), i, s, l, c, d;
2472
2472
  for (i = 0, s = o.length; i < s; i += 1)
2473
- d = "", r !== "" && (d += ", "), e.condenseFlow && (d += '"'), l = o[i], c = t[l], e.replacer && (c = e.replacer.call(t, l, c)), ve(e, n, l, !1, !1) && (e.dump.length > 1024 && (d += "? "), d += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), ve(e, n, c, !1, !1) && (d += e.dump, r += d));
2473
+ d = "", r !== "" && (d += ", "), e.condenseFlow && (d += '"'), l = o[i], c = t[l], e.replacer && (c = e.replacer.call(t, l, c)), he(e, n, l, !1, !1) && (e.dump.length > 1024 && (d += "? "), d += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), he(e, n, c, !1, !1) && (d += e.dump, r += d));
2474
2474
  e.tag = a, e.dump = "{" + r + "}";
2475
2475
  }
2476
2476
  function Fi(e, n, t, r) {
@@ -2482,7 +2482,7 @@ function Fi(e, n, t, r) {
2482
2482
  else if (e.sortKeys)
2483
2483
  throw new se("sortKeys must be a boolean or a function");
2484
2484
  for (s = 0, l = i.length; s < l; s += 1)
2485
- h = "", (!r || a !== "") && (h += dt(e, n)), c = i[s], d = t[c], e.replacer && (d = e.replacer.call(t, c, d)), ve(e, n + 1, c, !0, !0, !0) && (u = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, u && (e.dump && Le === e.dump.charCodeAt(0) ? h += "?" : h += "? "), h += e.dump, u && (h += dt(e, n)), ve(e, n + 1, d, !0, u) && (e.dump && Le === e.dump.charCodeAt(0) ? h += ":" : h += ": ", h += e.dump, a += h));
2485
+ h = "", (!r || a !== "") && (h += pt(e, n)), c = i[s], d = t[c], e.replacer && (d = e.replacer.call(t, c, d)), he(e, n + 1, c, !0, !0, !0) && (u = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, u && (e.dump && Le === e.dump.charCodeAt(0) ? h += "?" : h += "? "), h += e.dump, u && (h += pt(e, n)), he(e, n + 1, d, !0, u) && (e.dump && Le === e.dump.charCodeAt(0) ? h += ":" : h += ": ", h += e.dump, a += h));
2486
2486
  e.tag = o, e.dump = a || "{}";
2487
2487
  }
2488
2488
  function an(e, n, t) {
@@ -2502,7 +2502,7 @@ function an(e, n, t) {
2502
2502
  }
2503
2503
  return !1;
2504
2504
  }
2505
- function ve(e, n, t, r, a, o, i) {
2505
+ function he(e, n, t, r, a, o, i) {
2506
2506
  e.tag = null, e.dump = t, an(e, t, !1) || an(e, t, !0);
2507
2507
  var s = Yn.call(e.dump), l = r, c;
2508
2508
  r && (r = e.flowLevel < 0 || e.flowLevel > n);
@@ -2529,28 +2529,28 @@ function ve(e, n, t, r, a, o, i) {
2529
2529
  }
2530
2530
  function Ki(e, n) {
2531
2531
  var t = [], r = [], a, o;
2532
- for (ft(e, t, r), a = 0, o = r.length; a < o; a += 1)
2532
+ for (mt(e, t, r), a = 0, o = r.length; a < o; a += 1)
2533
2533
  n.duplicates.push(t[r[a]]);
2534
2534
  n.usedDuplicates = new Array(o);
2535
2535
  }
2536
- function ft(e, n, t) {
2536
+ function mt(e, n, t) {
2537
2537
  var r, a, o;
2538
2538
  if (e !== null && typeof e == "object")
2539
2539
  if (a = n.indexOf(e), a !== -1)
2540
2540
  t.indexOf(a) === -1 && t.push(a);
2541
2541
  else if (n.push(e), Array.isArray(e))
2542
2542
  for (a = 0, o = e.length; a < o; a += 1)
2543
- ft(e[a], n, t);
2543
+ mt(e[a], n, t);
2544
2544
  else
2545
2545
  for (r = Object.keys(e), a = 0, o = r.length; a < o; a += 1)
2546
- ft(e[r[a]], n, t);
2546
+ mt(e[r[a]], n, t);
2547
2547
  }
2548
2548
  function Bi(e, n) {
2549
2549
  n = n || {};
2550
2550
  var t = new Ai(n);
2551
2551
  t.noRefs || Ki(e, t);
2552
2552
  var r = e;
2553
- return t.replacer && (r = t.replacer.call({ "": r }, "", r)), ve(t, 0, r, !0, !0) ? t.dump + `
2553
+ return t.replacer && (r = t.replacer.call({ "": r }, "", r)), he(t, 0, r, !0, !0) ? t.dump + `
2554
2554
  ` : "";
2555
2555
  }
2556
2556
  var qi = Bi, Li = {
@@ -2561,7 +2561,7 @@ function At(e, n) {
2561
2561
  throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + n + " instead, which is now safe by default.");
2562
2562
  };
2563
2563
  }
2564
- var Pi = oe, Vi = kn, Ri = An, Ui = jn, Di = Mn, Gi = kt, zi = Jn.load, Hi = Jn.loadAll, Ji = Li.dump, Yi = se, Wi = {
2564
+ var Pi = oe, Vi = kn, Ri = An, Ui = jn, Di = Mn, Gi = kt, Hi = Jn.load, zi = Jn.loadAll, Ji = Li.dump, Yi = se, Wi = {
2565
2565
  binary: Kn,
2566
2566
  float: $n,
2567
2567
  map: In,
@@ -2582,8 +2582,8 @@ var Pi = oe, Vi = kn, Ri = An, Ui = jn, Di = Mn, Gi = kt, zi = Jn.load, Hi = Jn.
2582
2582
  JSON_SCHEMA: Ui,
2583
2583
  CORE_SCHEMA: Di,
2584
2584
  DEFAULT_SCHEMA: Gi,
2585
- load: zi,
2586
- loadAll: Hi,
2585
+ load: Hi,
2586
+ loadAll: zi,
2587
2587
  dump: Ji,
2588
2588
  YAMLException: Yi,
2589
2589
  types: Wi,
@@ -2630,7 +2630,7 @@ const ts = {
2630
2630
  },
2631
2631
  setup(e) {
2632
2632
  const n = e, t = Ze(), { i18n: { t: r } } = ae.useI18n(), a = (s) => !!(s.tooltip || t[`${s.key}-label-tooltip`]), o = N(""), i = N("");
2633
- return ye(() => n.format, (s) => {
2633
+ return ve(() => n.format, (s) => {
2634
2634
  s === "json" ? o.value = JSON.stringify(n.record, null, 2) : s === "yaml" && (i.value = es.dump(n.record));
2635
2635
  }, { immediate: !0 }), (s, l) => {
2636
2636
  const c = V("KCodeBlock");
@@ -2940,10 +2940,10 @@ const ts = {
2940
2940
  return F[1] - L[1];
2941
2941
  }), q.map((F) => {
2942
2942
  var L, D;
2943
- const Z = F[0], z = (L = p.value) == null ? void 0 : L[Z], X = ((D = r.configSchema) == null ? void 0 : D[Z]) || {}, le = h[Z];
2943
+ const Z = F[0], H = (L = p.value) == null ? void 0 : L[Z], X = ((D = r.configSchema) == null ? void 0 : D[Z]) || {}, le = h[Z];
2944
2944
  return {
2945
2945
  key: Z,
2946
- value: z,
2946
+ value: H,
2947
2947
  hidden: X.hidden || !1,
2948
2948
  type: X.type ?? ((le == null ? void 0 : le.type) || Q.Text),
2949
2949
  label: X.label ?? ((le == null ? void 0 : le.label) || s(Z)),
@@ -2965,14 +2965,14 @@ const ts = {
2965
2965
  return F[1] - L[1];
2966
2966
  }), _.map((F) => {
2967
2967
  var L;
2968
- const D = F[0], Z = B[D], z = ((L = r.pluginConfigSchema) == null ? void 0 : L[D]) || {};
2968
+ const D = F[0], Z = B[D], H = ((L = r.pluginConfigSchema) == null ? void 0 : L[D]) || {};
2969
2969
  return {
2970
2970
  key: D,
2971
2971
  value: Z,
2972
- hidden: z.hidden || !1,
2973
- type: z.type ?? Q.Text,
2974
- label: z.label ?? s(D),
2975
- tooltip: z.tooltip ?? void 0,
2972
+ hidden: H.hidden || !1,
2973
+ type: H.type ?? Q.Text,
2974
+ label: H.label ?? s(D),
2975
+ tooltip: H.tooltip ?? void 0,
2976
2976
  section: ue.Plugin
2977
2977
  };
2978
2978
  }).filter((F) => !F.hidden);
@@ -2993,9 +2993,9 @@ const ts = {
2993
2993
  }), R = (v) => {
2994
2994
  p.value && v(JSON.stringify(p.value)) ? n("copy:success", p.value) : n("copy:error");
2995
2995
  };
2996
- return ye(f, (v) => {
2996
+ return ve(f, (v) => {
2997
2997
  n("loading", v);
2998
- }, { immediate: !0 }), mt(async () => {
2998
+ }, { immediate: !0 }), Xe(async () => {
2999
2999
  I.value = !1, f.value = !0;
3000
3000
  try {
3001
3001
  const { data: v } = await l.get(P.value);
@@ -3056,12 +3056,12 @@ const ts = {
3056
3056
  _: 1
3057
3057
  })) : G("", !0),
3058
3058
  e.config.jsonYamlEnabled ? G("", !0) : (m(), U(F, { key: 3 }, {
3059
- default: y(({ copyToClipboard: z }) => [
3059
+ default: y(({ copyToClipboard: H }) => [
3060
3060
  !f.value && !I.value ? (m(), U(_, {
3061
3061
  key: 0,
3062
3062
  appearance: "tertiary",
3063
3063
  "data-testid": "json-copy-button",
3064
- onClick: (X) => R(z)
3064
+ onClick: (X) => R(H)
3065
3065
  }, {
3066
3066
  default: y(() => [
3067
3067
  W($(g(o)("baseConfigCard.actions.copy")), 1)
@@ -3096,10 +3096,10 @@ const ts = {
3096
3096
  "property-collections": k.value,
3097
3097
  record: p.value
3098
3098
  }, be({ _: 2 }, [
3099
- ce(Object.keys(v.$slots), (z) => ({
3100
- name: z,
3099
+ ce(Object.keys(v.$slots), (H) => ({
3100
+ name: H,
3101
3101
  fn: y(({ row: X, rowValue: le }) => [
3102
- Y(v.$slots, z, {
3102
+ Y(v.$slots, H, {
3103
3103
  row: X,
3104
3104
  rowValue: le
3105
3105
  }, void 0, !0)
@@ -3107,13 +3107,13 @@ const ts = {
3107
3107
  }))
3108
3108
  ]), 1032, ["format", "prop-list-types", "property-collections", "record"])
3109
3109
  ])) : (m(), T("div", bs, [
3110
- (m(!0), T(pe, null, ce(S.value, (z) => (m(), T("div", {
3111
- key: `config-card-details-${z}-props`,
3112
- class: Ae(`config-card-details-${z}-props`),
3113
- "data-testid": `config-card-details-${z}-props`
3110
+ (m(!0), T(pe, null, ce(S.value, (H) => (m(), T("div", {
3111
+ key: `config-card-details-${H}-props`,
3112
+ class: Ae(`config-card-details-${H}-props`),
3113
+ "data-testid": `config-card-details-${H}-props`
3114
3114
  }, [
3115
- z !== "basic" ? (m(), T("div", ks, $(z === "advanced" ? g(o)("baseConfigCard.sections.advanced") : g(o)("baseConfigCard.sections.plugin")), 1)) : G("", !0),
3116
- (m(!0), T(pe, null, ce(k.value[z], (X) => (m(), U(bt, {
3115
+ H !== "basic" ? (m(), T("div", ks, $(H === "advanced" ? g(o)("baseConfigCard.sections.advanced") : g(o)("baseConfigCard.sections.plugin")), 1)) : G("", !0),
3116
+ (m(!0), T(pe, null, ce(k.value[H], (X) => (m(), U(bt, {
3117
3117
  key: X.key,
3118
3118
  item: X
3119
3119
  }, be({
@@ -3223,9 +3223,9 @@ const ts = {
3223
3223
  }, b = () => {
3224
3224
  u.value || n("submit");
3225
3225
  };
3226
- return ye(() => l.value, (p) => {
3226
+ return ve(() => l.value, (p) => {
3227
3227
  n("loading", p);
3228
- }, { immediate: !0 }), mt(async () => {
3228
+ }, { immediate: !0 }), Xe(async () => {
3229
3229
  if (r.editId)
3230
3230
  try {
3231
3231
  c.value = !1, l.value = !0;
@@ -3333,7 +3333,7 @@ const ts = {
3333
3333
  }, s = () => {
3334
3334
  var b, p, A;
3335
3335
  c.value = ((b = r.value) == null ? void 0 : b.getBoundingClientRect().width) || 0, d.value = ((p = t.value) == null ? void 0 : p.clientWidth) || 0, u.value = ((A = l.value) == null ? void 0 : A.innerText) || "";
3336
- }, l = N({}), c = N(0), d = N(0), u = N(""), h = M(() => [r.value, t.value]), f = ye(
3336
+ }, l = N({}), c = N(0), d = N(0), u = N(""), h = M(() => [r.value, t.value]), f = ve(
3337
3337
  h,
3338
3338
  (b) => {
3339
3339
  if (a.value && (i(), "ResizeObserver" in window && window)) {
@@ -3787,7 +3787,7 @@ const ts = {
3787
3787
  }), Gs = {
3788
3788
  key: 1,
3789
3789
  class: "kong-ui-entity-filter"
3790
- }, zs = { class: "menu-item-title" }, Hs = { class: "menu-item-indicator" }, Js = { class: "menu-item-body" }, Ys = ["for"], Ws = { class: "menu-item-buttons" }, Zs = { class: "filter-clear-button-container" }, Xs = /* @__PURE__ */ ee({
3790
+ }, Hs = { class: "menu-item-title" }, zs = { class: "menu-item-indicator" }, Js = { class: "menu-item-body" }, Ys = ["for"], Ws = { class: "menu-item-buttons" }, Zs = { class: "filter-clear-button-container" }, Xs = /* @__PURE__ */ ee({
3791
3791
  __name: "EntityFilter",
3792
3792
  props: {
3793
3793
  // filter config, either exact match or fuzzy match
@@ -3819,7 +3819,7 @@ const ts = {
3819
3819
  value: A
3820
3820
  }));
3821
3821
  });
3822
- ye(() => t.modelValue, (p) => {
3822
+ ve(() => t.modelValue, (p) => {
3823
3823
  o.value = {}, new URLSearchParams(p).forEach((A, w) => {
3824
3824
  o.value[w] = A;
3825
3825
  });
@@ -3890,9 +3890,9 @@ const ts = {
3890
3890
  "last-menu-item": v === s.value.length - 1
3891
3891
  }, {
3892
3892
  itemTitle: y(() => [
3893
- K("span", zs, [
3893
+ K("span", Hs, [
3894
3894
  W($(R.label) + " ", 1),
3895
- Ue(K("span", Hs, null, 512), [
3895
+ Ue(K("span", zs, null, 512), [
3896
3896
  [De, i.value.includes(R.value)]
3897
3897
  ])
3898
3898
  ])
@@ -3995,7 +3995,7 @@ const ts = {
3995
3995
  },
3996
3996
  setup(e) {
3997
3997
  const n = e, t = N(void 0), r = M(() => t.value === !0 || t.value !== void 0 && n.forceShow === !0);
3998
- return ye(() => n.authFunction, async () => {
3998
+ return ve(() => n.authFunction, async () => {
3999
3999
  t.value = await n.authFunction();
4000
4000
  }, { immediate: !0 }), (a, o) => r.value ? Y(a.$slots, "default", {
4001
4001
  key: 0,
@@ -4086,7 +4086,7 @@ const dl = { class: "add-consumer-form-container" }, pl = { class: "add-consumer
4086
4086
  emits: ["cancel", "add:success", "add:partial-success", "error"],
4087
4087
  setup(e, { emit: n }) {
4088
4088
  var q;
4089
- const t = e, { i18n: { t: r } } = Xe.useI18n(), { axiosInstance: a } = St({
4089
+ const t = e, { i18n: { t: r } } = Qe.useI18n(), { axiosInstance: a } = St({
4090
4090
  headers: (q = t.config) == null ? void 0 : q.requestHeaders
4091
4091
  }), o = N([]), {
4092
4092
  debouncedQueryChange: i,
@@ -4153,11 +4153,11 @@ const dl = { class: "add-consumer-form-container" }, pl = { class: "add-consumer
4153
4153
  return (L = F.reason) == null ? void 0 : L.message;
4154
4154
  }).filter(Boolean);
4155
4155
  };
4156
- return ye(p, () => {
4156
+ return ve(p, () => {
4157
4157
  I.value++;
4158
- }, { immediate: !0, deep: !0 }), ye(() => t.visible, () => {
4159
- t.visible && d();
4160
- }, { immediate: !0 }), (_, F) => {
4158
+ }, { immediate: !0, deep: !0 }), Xe(async () => {
4159
+ await d();
4160
+ }), (_, F) => {
4161
4161
  const L = V("KMultiselect"), D = V("KAlert"), Z = V("KPrompt");
4162
4162
  return m(), U(Z, {
4163
4163
  "action-pending": S.value,
@@ -4173,7 +4173,7 @@ const dl = { class: "add-consumer-form-container" }, pl = { class: "add-consumer
4173
4173
  K("p", pl, $(g(r)("consumers.consumer_groups.add.ctaText")), 1),
4174
4174
  E(L, {
4175
4175
  modelValue: o.value,
4176
- "onUpdate:modelValue": F[0] || (F[0] = (z) => o.value = z),
4176
+ "onUpdate:modelValue": F[0] || (F[0] = (H) => o.value = H),
4177
4177
  autosuggest: "",
4178
4178
  "data-testid": "add-consumers-multiselect",
4179
4179
  "dropdown-footer-text": b.value ? g(r)("consumers.consumer_groups.add.footer") : void 0,
@@ -4186,9 +4186,9 @@ const dl = { class: "add-consumer-form-container" }, pl = { class: "add-consumer
4186
4186
  width: "100%",
4187
4187
  onQueryChange: g(i)
4188
4188
  }, {
4189
- "item-template": y(({ item: z }) => [
4190
- K("div", fl, $(z.label), 1),
4191
- h(z).data.username && h(z).data.custom_id ? (m(), T("div", ml, $(h(z).data.custom_id), 1)) : G("", !0)
4189
+ "item-template": y(({ item: H }) => [
4190
+ K("div", fl, $(H.label), 1),
4191
+ h(H).data.username && h(H).data.custom_id ? (m(), T("div", ml, $(h(H).data.custom_id), 1)) : G("", !0)
4192
4192
  ]),
4193
4193
  _: 1
4194
4194
  }, 8, ["modelValue", "dropdown-footer-text", "items", "label", "loading", "placeholder", "readonly", "onQueryChange"]),
@@ -4197,7 +4197,7 @@ const dl = { class: "add-consumer-form-container" }, pl = { class: "add-consumer
4197
4197
  alertMessage: y(() => [
4198
4198
  K("p", null, $(g(r)("consumers.errors.add")), 1),
4199
4199
  C.value.length ? (m(), T("ul", yl, [
4200
- (m(!0), T(pe, null, ce(C.value, (z, X) => (m(), T("li", { key: X }, $(z), 1))), 128))
4200
+ (m(!0), T(pe, null, ce(C.value, (H, X) => (m(), T("li", { key: X }, $(H), 1))), 128))
4201
4201
  ])) : G("", !0),
4202
4202
  K("div", null, $(x.value || f.value), 1)
4203
4203
  ]),
@@ -4216,7 +4216,7 @@ const xt = (e, n) => {
4216
4216
  for (const [r, a] of n)
4217
4217
  t[r] = a;
4218
4218
  return t;
4219
- }, vl = /* @__PURE__ */ xt(hl, [["__scopeId", "data-v-700894eb"]]), bl = { class: "kong-ui-entities-consumers-list" }, Cl = { key: 1 }, kl = /* @__PURE__ */ ee({
4219
+ }, vl = /* @__PURE__ */ xt(hl, [["__scopeId", "data-v-86f09821"]]), bl = { class: "kong-ui-entities-consumers-list" }, Cl = { key: 1 }, kl = /* @__PURE__ */ ee({
4220
4220
  __name: "ConsumerList",
4221
4221
  props: {
4222
4222
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -4258,7 +4258,7 @@ const xt = (e, n) => {
4258
4258
  emits: ["error", "copy:success", "copy:error", "delete:success", "add:success", "remove:success"],
4259
4259
  setup(e, { emit: n }) {
4260
4260
  var Et;
4261
- const t = e, { i18nT: r, i18n: { t: a } } = Xe.useI18n(), o = gt(), { axiosInstance: i } = St({
4261
+ const t = e, { i18nT: r, i18n: { t: a } } = Qe.useI18n(), o = gt(), { axiosInstance: i } = St({
4262
4262
  headers: (Et = t.config) == null ? void 0 : Et.requestHeaders
4263
4263
  }), s = N(1), l = M(() => !!t.config.consumerGroupId), c = M(() => t.config.app !== "kongManager" || !!t.config.disableSorting), d = {
4264
4264
  username: { label: a("consumers.list.table_headers.username"), searchable: !0, sortable: !0 },
@@ -4267,9 +4267,9 @@ const xt = (e, n) => {
4267
4267
  }, u = d, h = (O) => ({
4268
4268
  "data-testid": O.username ?? O.custom_id ?? O.id
4269
4269
  }), f = M(() => {
4270
- var H, re, fe, we;
4270
+ var z, re, fe, we;
4271
4271
  let O = `${t.config.apiBaseUrl}${Se.list[t.config.app][l.value ? "forConsumerGroup" : "all"]}`;
4272
- return t.config.app === "konnect" ? O = O.replace(/{controlPlaneId}/gi, ((H = t.config) == null ? void 0 : H.controlPlaneId) || "").replace(/{consumerGroupId}/gi, ((re = t.config) == null ? void 0 : re.consumerGroupId) || "") : t.config.app === "kongManager" && (O = O.replace(/\/{workspace}/gi, (fe = t.config) != null && fe.workspace ? `/${t.config.workspace}` : "").replace(/{consumerGroupId}/gi, ((we = t.config) == null ? void 0 : we.consumerGroupId) || "")), O;
4272
+ return t.config.app === "konnect" ? O = O.replace(/{controlPlaneId}/gi, ((z = t.config) == null ? void 0 : z.controlPlaneId) || "").replace(/{consumerGroupId}/gi, ((re = t.config) == null ? void 0 : re.consumerGroupId) || "") : t.config.app === "kongManager" && (O = O.replace(/\/{workspace}/gi, (fe = t.config) != null && fe.workspace ? `/${t.config.workspace}` : "").replace(/{consumerGroupId}/gi, ((we = t.config) == null ? void 0 : we.consumerGroupId) || "")), O;
4273
4273
  }), I = N(""), b = M(() => {
4274
4274
  const O = t.config.app === "konnect" || t.config.isExactMatch;
4275
4275
  return O ? {
@@ -4287,9 +4287,9 @@ const xt = (e, n) => {
4287
4287
  I.value = "";
4288
4288
  }, S = () => {
4289
4289
  s.value++;
4290
- }, x = (O) => O ?? "-", P = N(""), R = (O, H) => {
4290
+ }, x = (O) => O ?? "-", P = N(""), R = (O, z) => {
4291
4291
  const re = O.id;
4292
- if (!H(re)) {
4292
+ if (!z(re)) {
4293
4293
  n("copy:error", {
4294
4294
  entity: O,
4295
4295
  field: "id",
@@ -4302,9 +4302,9 @@ const xt = (e, n) => {
4302
4302
  field: "id",
4303
4303
  message: a("consumers.copy.success", { val: re })
4304
4304
  });
4305
- }, v = (O, H) => {
4305
+ }, v = (O, z) => {
4306
4306
  const re = JSON.stringify(O);
4307
- if (!H(re)) {
4307
+ if (!z(re)) {
4308
4308
  n("copy:error", {
4309
4309
  entity: O,
4310
4310
  message: a("consumers.errors.copy")
@@ -4324,44 +4324,44 @@ const xt = (e, n) => {
4324
4324
  }), q = (O) => ({
4325
4325
  label: a("consumers.actions.edit"),
4326
4326
  to: t.config.getEditRoute(O)
4327
- }), _ = N(void 0), F = N(!1), L = N(!1), D = N(""), Z = sl(t.config, f.value), z = (O) => {
4327
+ }), _ = N(void 0), F = N(!1), L = N(!1), D = N(""), Z = sl(t.config, f.value), H = (O) => {
4328
4328
  _.value = O, F.value = !0;
4329
4329
  }, X = () => {
4330
4330
  F.value = !1;
4331
4331
  }, le = async () => {
4332
- var O, H, re;
4332
+ var O, z, re;
4333
4333
  if ((O = _.value) != null && O.id) {
4334
4334
  L.value = !0;
4335
4335
  try {
4336
4336
  await i.delete(Z(_.value.id)), L.value = !1, F.value = !1, s.value++, n("delete:success", _.value);
4337
4337
  } catch (fe) {
4338
- D.value = ((re = (H = fe.response) == null ? void 0 : H.data) == null ? void 0 : re.message) || fe.message || a("consumers.errors.delete"), n("error", fe);
4338
+ D.value = ((re = (z = fe.response) == null ? void 0 : z.data) == null ? void 0 : re.message) || fe.message || a("consumers.errors.delete"), n("error", fe);
4339
4339
  } finally {
4340
4340
  L.value = !1;
4341
4341
  }
4342
4342
  }
4343
- }, et = N(!1), Tt = () => {
4344
- et.value = !0;
4343
+ }, tt = N(!1), Tt = () => {
4344
+ tt.value = !0;
4345
4345
  }, $t = () => {
4346
- et.value = !1;
4347
- }, jt = (O, H) => {
4348
- H || $t(), s.value++, n("add:success", O);
4346
+ tt.value = !1;
4347
+ }, jt = (O, z) => {
4348
+ z || $t(), s.value++, n("add:success", O);
4349
4349
  }, ir = () => {
4350
4350
  l.value && Tt();
4351
- }, he = N(void 0), tt = N(!1), sr = N(""), lr = (O) => {
4352
- he.value = O, tt.value = !0;
4351
+ }, ye = N(void 0), nt = N(!1), sr = N(""), lr = (O) => {
4352
+ ye.value = O, nt.value = !0;
4353
4353
  }, Mt = () => {
4354
- tt.value = !1, he.value = void 0;
4354
+ nt.value = !1, ye.value = void 0;
4355
4355
  }, ur = M(() => {
4356
- var H, re, fe, we;
4356
+ var z, re, fe, we;
4357
4357
  let O = `${t.config.apiBaseUrl}${Se.list[t.config.app].oneForConsumerGroup}`;
4358
- return t.config.app === "konnect" ? O = O.replace(/{controlPlaneId}/gi, ((H = t.config) == null ? void 0 : H.controlPlaneId) || "").replace(/{consumerGroupId}/gi, ((re = t.config) == null ? void 0 : re.consumerGroupId) || "") : t.config.app === "kongManager" && (O = O.replace(/\/{workspace}/gi, (fe = t.config) != null && fe.workspace ? `/${t.config.workspace}` : "").replace(/{consumerGroupId}/gi, ((we = t.config) == null ? void 0 : we.consumerGroupId) || "")), O;
4358
+ return t.config.app === "konnect" ? O = O.replace(/{controlPlaneId}/gi, ((z = t.config) == null ? void 0 : z.controlPlaneId) || "").replace(/{consumerGroupId}/gi, ((re = t.config) == null ? void 0 : re.consumerGroupId) || "") : t.config.app === "kongManager" && (O = O.replace(/\/{workspace}/gi, (fe = t.config) != null && fe.workspace ? `/${t.config.workspace}` : "").replace(/{consumerGroupId}/gi, ((we = t.config) == null ? void 0 : we.consumerGroupId) || "")), O;
4359
4359
  }), Ot = N(!1), cr = async () => {
4360
- if (he.value) {
4360
+ if (ye.value) {
4361
4361
  Ot.value = !0;
4362
4362
  try {
4363
- const O = ur.value.replace(/{consumerId}/gi, he.value.id);
4364
- await i.delete(O), n("remove:success", he.value), Mt(), s.value++;
4363
+ const O = ur.value.replace(/{consumerId}/gi, ye.value.id);
4364
+ await i.delete(O), n("remove:success", ye.value), Mt(), s.value++;
4365
4365
  } catch (O) {
4366
4366
  sr.value = O.message || a("consumers.errors.delete"), n("error", O);
4367
4367
  } finally {
@@ -4369,22 +4369,22 @@ const xt = (e, n) => {
4369
4369
  }
4370
4370
  }
4371
4371
  };
4372
- ye(w, (O) => {
4372
+ ve(w, (O) => {
4373
4373
  if (O.status === _e.Error) {
4374
4374
  P.value = a("consumers.errors.general"), n("error", O.error);
4375
4375
  return;
4376
4376
  }
4377
4377
  P.value = "";
4378
4378
  });
4379
- const nt = N({
4379
+ const rt = N({
4380
4380
  ctaPath: l.value ? void 0 : t.config.createRoute,
4381
4381
  ctaText: void 0,
4382
4382
  message: a("consumers.list.empty_state.description"),
4383
4383
  title: a("consumers.title")
4384
4384
  });
4385
- return mt(async () => {
4386
- await t.canCreate() && (nt.value.title = l.value ? a("consumers.list.empty_state.title_for_consumer_group") : a("consumers.list.empty_state.title"), nt.value.ctaText = l.value ? a("consumers.actions.add_consumer") : a("consumers.actions.create"));
4387
- }), (O, H) => {
4385
+ return Xe(async () => {
4386
+ await t.canCreate() && (rt.value.title = l.value ? a("consumers.list.empty_state.title_for_consumer_group") : a("consumers.list.empty_state.title"), rt.value.ctaText = l.value ? a("consumers.actions.add_consumer") : a("consumers.actions.create"));
4387
+ }), (O, z) => {
4388
4388
  const re = V("KButton"), fe = V("KBadge"), we = V("KTruncate"), Ke = V("KDropdownItem"), Nt = V("KClipboardProvider"), dr = V("KPrompt");
4389
4389
  return m(), T("div", bl, [
4390
4390
  E(g(Fs), {
@@ -4392,7 +4392,7 @@ const xt = (e, n) => {
4392
4392
  "disable-pagination": l.value,
4393
4393
  "disable-pagination-page-jump": "",
4394
4394
  "disable-sorting": c.value,
4395
- "empty-state-options": nt.value,
4395
+ "empty-state-options": rt.value,
4396
4396
  "enable-entity-actions": "",
4397
4397
  "error-message": P.value,
4398
4398
  fetcher: g(A),
@@ -4403,7 +4403,7 @@ const xt = (e, n) => {
4403
4403
  "row-attributes": h,
4404
4404
  "table-headers": g(u),
4405
4405
  onClearSearchInput: k,
4406
- "onClick:row": H[3] || (H[3] = (J) => C(J)),
4406
+ "onClick:row": z[3] || (z[3] = (J) => C(J)),
4407
4407
  onEmptyStateCtaClicked: ir,
4408
4408
  onSort: S
4409
4409
  }, {
@@ -4411,7 +4411,7 @@ const xt = (e, n) => {
4411
4411
  l.value ? G("", !0) : (m(), U(g(Qs), {
4412
4412
  key: 0,
4413
4413
  modelValue: I.value,
4414
- "onUpdate:modelValue": H[0] || (H[0] = (J) => I.value = J),
4414
+ "onUpdate:modelValue": z[0] || (z[0] = (J) => I.value = J),
4415
4415
  config: b.value
4416
4416
  }, null, 8, ["modelValue", "config"]))
4417
4417
  ]),
@@ -4425,7 +4425,7 @@ const xt = (e, n) => {
4425
4425
  "data-testid": "toolbar-add-consumer",
4426
4426
  icon: "plus",
4427
4427
  to: e.config.consumerGroupId ? void 0 : e.config.createRoute,
4428
- onClick: H[1] || (H[1] = () => e.config.consumerGroupId ? Tt() : void 0)
4428
+ onClick: z[1] || (z[1] = () => e.config.consumerGroupId ? Tt() : void 0)
4429
4429
  }, {
4430
4430
  default: y(() => [
4431
4431
  W($(e.config.consumerGroupId ? g(a)("consumers.actions.add_consumer") : g(a)("consumers.list.toolbar_actions.new_consumer")), 1)
@@ -4447,7 +4447,7 @@ const xt = (e, n) => {
4447
4447
  default: y(() => [
4448
4448
  (m(!0), T(pe, null, ce(J, (xe) => (m(), U(fe, {
4449
4449
  key: xe,
4450
- onClick: H[2] || (H[2] = Ge(() => {
4450
+ onClick: z[2] || (z[2] = Ge(() => {
4451
4451
  }, ["stop"]))
4452
4452
  }, {
4453
4453
  default: y(() => [
@@ -4519,7 +4519,7 @@ const xt = (e, n) => {
4519
4519
  danger: "",
4520
4520
  "data-testid": "action-entity-delete",
4521
4521
  "has-divider": "",
4522
- onClick: () => e.config.consumerGroupId ? lr(J) : z(J)
4522
+ onClick: () => e.config.consumerGroupId ? lr(J) : H(J)
4523
4523
  }, {
4524
4524
  default: y(() => [
4525
4525
  W($(e.config.consumerGroupId ? g(a)("consumers.actions.remove") : g(a)("consumers.actions.delete")), 1)
@@ -4548,15 +4548,15 @@ const xt = (e, n) => {
4548
4548
  key: 0,
4549
4549
  config: e.config,
4550
4550
  "data-testid": "add-consumer-modal",
4551
- visible: et.value,
4552
- "onAdd:partialSuccess": H[4] || (H[4] = (J) => jt(J, !0)),
4553
- "onAdd:success": H[5] || (H[5] = (J) => jt(J)),
4551
+ visible: tt.value,
4552
+ "onAdd:partialSuccess": z[4] || (z[4] = (J) => jt(J, !0)),
4553
+ "onAdd:success": z[5] || (z[5] = (J) => jt(J)),
4554
4554
  onCancel: $t
4555
4555
  }, null, 8, ["config", "visible"])) : G("", !0),
4556
- e.config.consumerGroupId && he.value ? (m(), U(dr, {
4556
+ e.config.consumerGroupId && ye.value ? (m(), U(dr, {
4557
4557
  key: 1,
4558
4558
  "data-testid": "remove-consumer-modal",
4559
- "is-visible": tt.value,
4559
+ "is-visible": nt.value,
4560
4560
  title: g(a)("consumers.consumer_groups.remove.title"),
4561
4561
  type: "danger",
4562
4562
  onCanceled: Mt,
@@ -4569,7 +4569,7 @@ const xt = (e, n) => {
4569
4569
  tag: "p"
4570
4570
  }, be({
4571
4571
  consumer: y(() => [
4572
- K("strong", null, $(he.value.username || he.value.custom_id || he.value.id), 1)
4572
+ K("strong", null, $(ye.value.username || ye.value.custom_id || ye.value.id), 1)
4573
4573
  ]),
4574
4574
  _: 2
4575
4575
  }, [
@@ -4608,7 +4608,7 @@ const ql = /* @__PURE__ */ xt(kl, [["__scopeId", "data-v-b084add6"]]), wl = { cl
4608
4608
  emits: ["update", "error", "loading"],
4609
4609
  setup(e, { emit: n }) {
4610
4610
  var S;
4611
- const t = e, { i18nT: r, i18n: { t: a } } = Xe.useI18n(), o = gt(), { axiosInstance: i } = St({
4611
+ const t = e, { i18nT: r, i18n: { t: a } } = Qe.useI18n(), o = gt(), { axiosInstance: i } = St({
4612
4612
  headers: (S = t.config) == null ? void 0 : S.requestHeaders
4613
4613
  }), { getMessageFromError: s } = ll(), l = Ft({
4614
4614
  fields: {
@@ -4637,7 +4637,7 @@ const ql = /* @__PURE__ */ xt(kl, [["__scopeId", "data-v-b084add6"]]), wl = { cl
4637
4637
  l.fields.username = ((R = x == null ? void 0 : x.item) == null ? void 0 : R.username) || (x == null ? void 0 : x.username) || "", l.fields.customId = ((v = x == null ? void 0 : x.item) == null ? void 0 : v.custom_id) || (x == null ? void 0 : x.custom_id) || "";
4638
4638
  const P = ((C = x == null ? void 0 : x.item) == null ? void 0 : C.tags) || (x == null ? void 0 : x.tags) || [];
4639
4639
  l.fields.tags = (P == null ? void 0 : P.join(", ")) || "", Object.assign(c, l.fields);
4640
- }, b = M(() => t.consumerId ? lt.Edit : lt.Create), p = (x) => {
4640
+ }, b = M(() => t.consumerId ? ut.Edit : ut.Create), p = (x) => {
4641
4641
  var R, v, C, B, q, _;
4642
4642
  let P = `${(R = t.config) == null ? void 0 : R.apiBaseUrl}${Se.form[(v = t.config) == null ? void 0 : v.app][x]}`;
4643
4643
  return ((C = t.config) == null ? void 0 : C.app) === "konnect" ? P = P.replace(/{controlPlaneId}/gi, ((B = t.config) == null ? void 0 : B.controlPlaneId) || "") : ((q = t.config) == null ? void 0 : q.app) === "kongManager" && (P = P.replace(/\/{workspace}/gi, (_ = t.config) != null && _.workspace ? `/${t.config.workspace}` : "")), P = P.replace(/{id}/gi, t.consumerId), P;
@@ -4800,7 +4800,7 @@ const Ll = /* @__PURE__ */ xt(Al, [["__scopeId", "data-v-335659fc"]]), Sl = { cl
4800
4800
  },
4801
4801
  emits: ["loading", "fetch:error", "fetch:success", "copy:success"],
4802
4802
  setup(e) {
4803
- const n = e, { i18n: { t }, i18nT: r } = Xe.useI18n(), a = M(() => Se.form[n.config.app].edit), o = N({
4803
+ const n = e, { i18n: { t }, i18nT: r } = Qe.useI18n(), a = M(() => Se.form[n.config.app].edit), o = N({
4804
4804
  id: {},
4805
4805
  username: {
4806
4806
  section: ue.Basic,